this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var b=a.prototype;b.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},b.stopPropagation=function(){this.propagationStopped=!0},b.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},b.remove=function(){this.removed=!0},b.clone=function(){return new a(this.type,this.bubbles,this.cancelable)},b.set=function(a){for(var b in a)this[b]=a[b];return this},b.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this._listeners=null,this._captureListeners=null}var b=a.prototype;a.initialize=function(a){a.addEventListener=b.addEventListener,a.on=b.on,a.removeEventListener=a.off=b.removeEventListener,a.removeAllEventListeners=b.removeAllEventListeners,a.hasEventListener=b.hasEventListener,a.dispatchEvent=b.dispatchEvent,a._dispatchEvent=b._dispatchEvent,a.willTrigger=b.willTrigger},b.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},b.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},b.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},b.off=b.removeEventListener,b.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},b.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},b.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},b.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},b.toString=function(){return"[EventDispatcher]"},b._dispatchEvent=function(a,b){var c,d=1==b?this._captureListeners:this._listeners;if(a&&d){var e=d[a.type];if(!e||!(c=e.length))return;try{a.currentTarget=this}catch(f){}try{a.eventPhase=b}catch(f){}a.removed=!1,e=e.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=e[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}},createjs.EventDispatcher=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Ticker cannot be instantiated."}a.RAF_SYNCHED="synched",a.RAF="raf",a.TIMEOUT="timeout",a.useRAF=!1,a.timingMode=null,a.maxDelta=0,a.paused=!1,a.removeEventListener=null,a.removeAllEventListeners=null,a.dispatchEvent=null,a.hasEventListener=null,a._listeners=null,createjs.EventDispatcher.initialize(a),a._addEventListener=a.addEventListener,a.addEventListener=function(){return!a._inited&&a.init(),a._addEventListener.apply(a,arguments)},a._inited=!1,a._startTime=0,a._pausedTime=0,a._ticks=0,a._pausedTicks=0,a._interval=50,a._lastTime=0,a._times=null,a._tickTimes=null,a._timerId=null,a._raf=!0,a.setInterval=function(b){a._interval=b,a._inited&&a._setupTick()},a.getInterval=function(){return a._interval},a.setFPS=function(b){a.setInterval(1e3/b)},a.getFPS=function(){return 1e3/a._interval};try{Object.defineProperties(a,{interval:{get:a.getInterval,set:a.setInterval},framerate:{get:a.getFPS,set:a.setFPS}})}catch(b){console.log(b)}a.init=function(){a._inited||(a._inited=!0,a._times=[],a._tickTimes=[],a._startTime=a._getTime(),a._times.push(a._lastTime=0),a.interval=a._interval)},a.reset=function(){if(a._raf){var b=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;b&&b(a._timerId)}else clearTimeout(a._timerId);a.removeAllEventListeners("tick"),a._timerId=a._times=a._tickTimes=null,a._startTime=a._lastTime=a._ticks=0,a._inited=!1},a.getMeasuredTickTime=function(b){var c=0,d=a._tickTimes;if(!d||d.length<1)return-1;b=Math.min(d.length,b||0|a.getFPS());for(var e=0;b>e;e++)c+=d[e];return c/b},a.getMeasuredFPS=function(b){var c=a._times;return!c||c.length<2?-1:(b=Math.min(c.length-1,b||0|a.getFPS()),1e3/((c[0]-c[b])/b))},a.setPaused=function(b){a.paused=b},a.getPaused=function(){return a.paused},a.getTime=function(b){return a._startTime?a._getTime()-(b?a._pausedTime:0):-1},a.getEventTime=function(b){return a._startTime?(a._lastTime||a._startTime)-(b?a._pausedTime:0):-1},a.getTicks=function(b){return a._ticks-(b?a._pausedTicks:0)},a._handleSynch=function(){a._timerId=null,a._setupTick(),a._getTime()-a._lastTime>=.97*(a._interval-1)&&a._tick()},a._handleRAF=function(){a._timerId=null,a._setupTick(),a._tick()},a._handleTimeout=function(){a._timerId=null,a._setupTick(),a._tick()},a._setupTick=function(){if(null==a._timerId){var b=a.timingMode||a.useRAF&&a.RAF_SYNCHED;if(b==a.RAF_SYNCHED||b==a.RAF){var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(c)return a._timerId=c(b==a.RAF?a._handleRAF:a._handleSynch),void(a._raf=!0)}a._raf=!1,a._timerId=setTimeout(a._handleTimeout,a._interval)}},a._tick=function(){var b=a.paused,c=a._getTime(),d=c-a._lastTime;if(a._lastTime=c,a._ticks++,b&&(a._pausedTicks++,a._pausedTime+=d),a.hasEventListener("tick")){var e=new createjs.Event("tick"),f=a.maxDelta;e.delta=f&&d>f?f:d,e.paused=b,e.time=c,e.runTime=c-a._pausedTime,a.dispatchEvent(e)}for(a._tickTimes.unshift(a._getTime()-c);a._tickTimes.length>100;)a._tickTimes.pop();for(a._times.unshift(c);a._times.length>100;)a._times.pop()};var c=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);a._getTime=function(){return(c&&c.call(performance)||(new Date).getTime())-a._startTime},createjs.Ticker=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(b,c,d){this.ignoreGlobalPause=!1,this.loop=!1,this.duration=0,this.pluginData=d||{},this.target=b,this.position=null,this.passive=!1,this._paused=!1,this._curQueueProps={},this._initQueueProps={},this._steps=[],this._actions=[],this._prevPosition=0,this._stepPosition=0,this._prevPos=-1,this._target=b,this._useTicks=!1,this._inited=!1,this._registered=!1,c&&(this._useTicks=c.useTicks,this.ignoreGlobalPause=c.ignoreGlobalPause,this.loop=c.loop,c.onChange&&this.addEventListener("change",c.onChange),c.override&&a.removeTweens(b)),c&&c.paused?this._paused=!0:createjs.Tween._register(this,!0),c&&null!=c.position&&this.setPosition(c.position,a.NONE)}var b=createjs.extend(a,createjs.EventDispatcher);a.NONE=0,a.LOOP=1,a.REVERSE=2,a.IGNORE={},a._tweens=[],a._plugins={},a.get=function(b,c,d,e){return e&&a.removeTweens(b),new a(b,c,d)},a.tick=function(b,c){for(var d=a._tweens.slice(),e=d.length-1;e>=0;e--){var f=d[e];c&&!f.ignoreGlobalPause||f._paused||f.tick(f._useTicks?1:b)}},a.handleEvent=function(a){"tick"==a.type&&this.tick(a.delta,a.paused)},a.removeTweens=function(b){if(b.tweenjs_count){for(var c=a._tweens,d=c.length-1;d>=0;d--){var e=c[d];e._target==b&&(e._paused=!0,c.splice(d,1))}b.tweenjs_count=0}},a.removeAllTweens=function(){for(var b=a._tweens,c=0,d=b.length;d>c;c++){var e=b[c];e._paused=!0,e.target&&(e.target.tweenjs_count=0)}b.length=0},a.hasActiveTweens=function(b){return b?null!=b.tweenjs_count&&!!b.tweenjs_count:a._tweens&&!!a._tweens.length},a.installPlugin=function(b,c){var d=b.priority;null==d&&(b.priority=d=0);for(var e=0,f=c.length,g=a._plugins;f>e;e++){var h=c[e];if(g[h]){for(var i=g[h],j=0,k=i.length;k>j&&!(d=a)return this;var c=this._cloneProps(this._curQueueProps);return this._addStep({d:a,p0:c,e:this._linearEase,p1:c,v:b})},b.to=function(a,b,c){return(isNaN(b)||0>b)&&(b=0),this._addStep({d:b||0,p0:this._cloneProps(this._curQueueProps),e:c,p1:this._cloneProps(this._appendQueueProps(a))})},b.call=function(a,b,c){return this._addAction({f:a,p:b?b:[this],o:c?c:this._target})},b.set=function(a,b){return this._addAction({f:this._set,o:this,p:[a,b?b:this._target]})},b.play=function(a){return a||(a=this),this.call(a.setPaused,[!1],a)},b.pause=function(a){return a||(a=this),this.call(a.setPaused,[!0],a)},b.setPosition=function(a,b){0>a&&(a=0),null==b&&(b=1);var c=a,d=!1;if(c>=this.duration&&(this.loop?c%=this.duration:(c=this.duration,d=!0)),c==this._prevPos)return d;var e=this._prevPos;if(this.position=this._prevPos=c,this._prevPosition=a,this._target)if(d)this._updateTargetProps(null,1);else if(this._steps.length>0){for(var f=0,g=this._steps.length;g>f&&!(this._steps[f].t>c);f++);var h=this._steps[f-1];this._updateTargetProps(h,(this._stepPosition=c-h.t)/h.d)}return 0!=b&&this._actions.length>0&&(this._useTicks?this._runActions(c,c):1==b&&e>c?(e!=this.duration&&this._runActions(e,this.duration),this._runActions(0,c,!0)):this._runActions(e,c)),d&&this.setPaused(!0),this.dispatchEvent("change"),d},b.tick=function(a){this._paused||this.setPosition(this._prevPosition+a)},b.setPaused=function(b){return this._paused===!!b?this:(this._paused=!!b,a._register(this,!b),this)},b.w=b.wait,b.t=b.to,b.c=b.call,b.s=b.set,b.toString=function(){return"[Tween]"},b.clone=function(){throw"Tween can not be cloned."},b._updateTargetProps=function(b,c){var d,e,f,g,h,i;if(b||1!=c){if(this.passive=!!b.v,this.passive)return;b.e&&(c=b.e(c,0,1,1)),d=b.p0,e=b.p1}else this.passive=!1,d=e=this._curQueueProps;for(var j in this._initQueueProps){null==(g=d[j])&&(d[j]=g=this._initQueueProps[j]),null==(h=e[j])&&(e[j]=h=g),f=g==h||0==c||1==c||"number"!=typeof g?1==c?h:g:g+(h-g)*c;var k=!1;if(i=a._plugins[j])for(var l=0,m=i.length;m>l;l++){var n=i[l].tween(this,j,f,d,e,c,!!b&&d==e,!b);n==a.IGNORE?k=!0:f=n}k||(this._target[j]=f)}},b._runActions=function(a,b,c){var d=a,e=b,f=-1,g=this._actions.length,h=1;for(a>b&&(d=b,e=a,f=g,g=h=-1);(f+=h)!=g;){var i=this._actions[f],j=i.t;(j==e||j>d&&e>j||c&&j==a)&&i.f.apply(i.o,i.p)}},b._appendQueueProps=function(b){var c,d,e,f,g;for(var h in b)if(void 0===this._initQueueProps[h]){if(d=this._target[h],c=a._plugins[h])for(e=0,f=c.length;f>e;e++)d=c[e].init(this,h,d);this._initQueueProps[h]=this._curQueueProps[h]=void 0===d?null:d}else d=this._curQueueProps[h];for(var h in b){if(d=this._curQueueProps[h],c=a._plugins[h])for(g=g||{},e=0,f=c.length;f>e;e++)c[e].step&&c[e].step(this,h,d,b[h],g);this._curQueueProps[h]=b[h]}return g&&this._appendQueueProps(g),this._curQueueProps},b._cloneProps=function(a){var b={};for(var c in a)b[c]=a[c];return b},b._addStep=function(a){return a.d>0&&(this._steps.push(a),a.t=this.duration,this.duration+=a.d),this},b._addAction=function(a){return a.t=this.duration,this._actions.push(a),this},b._set=function(a,b){for(var c in a)b[c]=a[c]},createjs.Tween=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.duration=0,this.loop=!1,this.position=null,this._paused=!1,this._tweens=[],this._labels=null,this._labelList=null,this._prevPosition=0,this._prevPos=-1,this._useTicks=!1,this._registered=!1,c&&(this._useTicks=c.useTicks,this.loop=c.loop,this.ignoreGlobalPause=c.ignoreGlobalPause,c.onChange&&this.addEventListener("change",c.onChange)),a&&this.addTween.apply(this,a),this.setLabels(b),c&&c.paused?this._paused=!0:createjs.Tween._register(this,!0),c&&null!=c.position&&this.setPosition(c.position,createjs.Tween.NONE)}var b=createjs.extend(a,createjs.EventDispatcher);b.addTween=function(a){var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addTween(arguments[c]);return arguments[0]}return 0==b?null:(this.removeTween(a),this._tweens.push(a),a.setPaused(!0),a._paused=!1,a._useTicks=this._useTicks,a.duration>this.duration&&(this.duration=a.duration),this._prevPos>=0&&a.setPosition(this._prevPos,createjs.Tween.NONE),a)},b.removeTween=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeTween(arguments[d]);return c}if(0==b)return!1;for(var e=this._tweens,d=e.length;d--;)if(e[d]==a)return e.splice(d,1),a.duration>=this.duration&&this.updateDuration(),!0;return!1},b.addLabel=function(a,b){this._labels[a]=b;var c=this._labelList;if(c){for(var d=0,e=c.length;e>d&&!(bd&&!(b=this.duration;if(c==this._prevPos)return d;this._prevPosition=a,this.position=this._prevPos=c;for(var e=0,f=this._tweens.length;f>e;e++)if(this._tweens[e].setPosition(c,b),c!=this._prevPos)return!1;return d&&this.setPaused(!0),this.dispatchEvent("change"),d},b.setPaused=function(a){this._paused=!!a,createjs.Tween._register(this,!a)},b.updateDuration=function(){this.duration=0;for(var a=0,b=this._tweens.length;b>a;a++){var c=this._tweens[a];c.duration>this.duration&&(this.duration=c.duration)}},b.tick=function(a){this.setPosition(this._prevPosition+a)},b.resolve=function(a){var b=Number(a);return isNaN(b)&&(b=this._labels[a]),b},b.toString=function(){return"[Timeline]"},b.clone=function(){throw"Timeline can not be cloned."},b._goto=function(a){var b=this.resolve(a);null!=b&&this.setPosition(b)},b._calcPosition=function(a){return 0>a?0:aa&&(a=-1),a>1&&(a=1),function(b){return 0==a?b:0>a?b*(b*-a+1+a):b*((2-b)*a+(1-a))}},a.getPowIn=function(a){return function(b){return Math.pow(b,a)}},a.getPowOut=function(a){return function(b){return 1-Math.pow(1-b,a)}},a.getPowInOut=function(a){return function(b){return(b*=2)<1?.5*Math.pow(b,a):1-.5*Math.abs(Math.pow(2-b,a))}},a.quadIn=a.getPowIn(2),a.quadOut=a.getPowOut(2),a.quadInOut=a.getPowInOut(2),a.cubicIn=a.getPowIn(3),a.cubicOut=a.getPowOut(3),a.cubicInOut=a.getPowInOut(3),a.quartIn=a.getPowIn(4),a.quartOut=a.getPowOut(4),a.quartInOut=a.getPowInOut(4),a.quintIn=a.getPowIn(5),a.quintOut=a.getPowOut(5),a.quintInOut=a.getPowInOut(5),a.sineIn=function(a){return 1-Math.cos(a*Math.PI/2)},a.sineOut=function(a){return Math.sin(a*Math.PI/2)},a.sineInOut=function(a){return-.5*(Math.cos(Math.PI*a)-1)},a.getBackIn=function(a){return function(b){return b*b*((a+1)*b-a)}},a.backIn=a.getBackIn(1.7),a.getBackOut=function(a){return function(b){return--b*b*((a+1)*b+a)+1}},a.backOut=a.getBackOut(1.7),a.getBackInOut=function(a){return a*=1.525,function(b){return(b*=2)<1?.5*(b*b*((a+1)*b-a)):.5*((b-=2)*b*((a+1)*b+a)+2)}},a.backInOut=a.getBackInOut(1.7),a.circIn=function(a){return-(Math.sqrt(1-a*a)-1)},a.circOut=function(a){return Math.sqrt(1- --a*a)},a.circInOut=function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},a.bounceIn=function(b){return 1-a.bounceOut(1-b)},a.bounceOut=function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},a.bounceInOut=function(b){return.5>b?.5*a.bounceIn(2*b):.5*a.bounceOut(2*b-1)+.5},a.getElasticIn=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return-(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b))}},a.elasticIn=a.getElasticIn(1,.3),a.getElasticOut=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return a*Math.pow(2,-10*d)*Math.sin((d-e)*c/b)+1}},a.elasticOut=a.getElasticOut(1,.3),a.getElasticInOut=function(a,b){var c=2*Math.PI;return function(d){var e=b/c*Math.asin(1/a);return(d*=2)<1?-.5*(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b)):a*Math.pow(2,-10*(d-=1))*Math.sin((d-e)*c/b)*.5+1}},a.elasticInOut=a.getElasticInOut(1,.3*1.5),createjs.Ease=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"MotionGuidePlugin cannot be instantiated."}a.priority=0,a._rotOffS,a._rotOffE,a._rotNormS,a._rotNormE,a.install=function(){return createjs.Tween.installPlugin(a,["guide","x","y","rotation"]),createjs.Tween.IGNORE},a.init=function(a,b,c){var d=a.target;return d.hasOwnProperty("x")||(d.x=0),d.hasOwnProperty("y")||(d.y=0),d.hasOwnProperty("rotation")||(d.rotation=0),"rotation"==b&&(a.__needsRot=!0),"guide"==b?null:c},a.step=function(b,c,d,e,f){if("rotation"==c&&(b.__rotGlobalS=d,b.__rotGlobalE=e,a.testRotData(b,f)),"guide"!=c)return e;var g,h=e;h.hasOwnProperty("path")||(h.path=[]);var i=h.path;if(h.hasOwnProperty("end")||(h.end=1),h.hasOwnProperty("start")||(h.start=d&&d.hasOwnProperty("end")&&d.path===i?d.end:0),h.hasOwnProperty("_segments")&&h._length)return e;var j=i.length,k=10;if(!(j>=6&&(j-2)%4==0))throw"invalid 'path' data, please see documentation for valid paths";h._segments=[],h._length=0;for(var l=2;j>l;l+=4){for(var m,n,o=i[l-2],p=i[l-1],q=i[l+0],r=i[l+1],s=i[l+2],t=i[l+3],u=o,v=p,w=0,x=[],y=1;k>=y;y++){var z=y/k,A=1-z;m=A*A*o+2*A*z*q+z*z*s,n=A*A*p+2*A*z*r+z*z*t,w+=x[x.push(Math.sqrt((g=m-u)*g+(g=n-v)*g))-1],u=m,v=n}h._segments.push(w),h._segments.push(x),h._length+=w}g=h.orient,h.orient=!0;var B={};return a.calc(h,h.start,B),b.__rotPathS=Number(B.rotation.toFixed(5)),a.calc(h,h.end,B),b.__rotPathE=Number(B.rotation.toFixed(5)),h.orient=!1,a.calc(h,h.end,f),h.orient=g,h.orient?(b.__guideData=h,a.testRotData(b,f),e):e},a.testRotData=function(a,b){if(void 0===a.__rotGlobalS||void 0===a.__rotGlobalE){if(a.__needsRot)return;void 0!==a._curQueueProps.rotation?a.__rotGlobalS=a.__rotGlobalE=a._curQueueProps.rotation:a.__rotGlobalS=a.__rotGlobalE=b.rotation=a.target.rotation||0}if(void 0!==a.__guideData){var c=a.__guideData,d=a.__rotGlobalE-a.__rotGlobalS,e=a.__rotPathE-a.__rotPathS,f=d-e;if("auto"==c.orient)f>180?f-=360:-180>f&&(f+=360);else if("cw"==c.orient){for(;0>f;)f+=360;0==f&&d>0&&180!=d&&(f+=360)}else if("ccw"==c.orient){for(f=d-(e>180?360-e:e);f>0;)f-=360;0==f&&0>d&&-180!=d&&(f-=360)}c.rotDelta=f,c.rotOffS=a.__rotGlobalS-a.__rotPathS,a.__rotGlobalS=a.__rotGlobalE=a.__guideData=a.__needsRot=void 0}},a.tween=function(b,c,d,e,f,g,h,i){var j=f.guide;if(void 0==j||j===e.guide)return d;if(j.lastRatio!=g){var k=(j.end-j.start)*(h?j.end:g)+j.start;switch(a.calc(j,k,b.target),j.orient){case"cw":case"ccw":case"auto":b.target.rotation+=j.rotOffS+j.rotDelta*g;break;case"fixed":default:b.target.rotation+=j.rotOffS}j.lastRatio=g}return"rotation"!=c||j.orient&&"false"!=j.orient?b.target[c]:d},a.calc=function(a,b,c){if(void 0==a._segments)throw"Missing critical pre-calculated information, please file a bug";void 0==c&&(c={x:0,y:0,rotation:0});for(var d=a._segments,e=a.path,f=a._length*b,g=d.length-2,h=0;f>d[h]&&g>h;)f-=d[h],h+=2;var i=d[h+1],j=0;for(g=i.length-1;f>i[j]&&g>j;)f-=i[j],j++;var k=j/++g+f/(g*i[j]);h=2*h+2;var l=1-k;return c.x=l*l*e[h-2]+2*l*k*e[h+0]+k*k*e[h+2],c.y=l*l*e[h-1]+2*l*k*e[h+1]+k*k*e[h+3],a.orient&&(c.rotation=57.2957795*Math.atan2((e[h+1]-e[h-1])*l+(e[h+3]-e[h+1])*k,(e[h+0]-e[h-2])*l+(e[h+2]-e[h+0])*k)),c},createjs.MotionGuidePlugin=a}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.TweenJS=createjs.TweenJS||{};a.version="0.6.2",a.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.PIXI=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=0&&a.length%1===0}function l(a,b){for(var c=-1,d=a.length;++cd?d:null}):(c=Q(a),b=c.length,function(){return d++,b>d?c[d]:null})}function s(a,b){return b=null==b?a.length-1:+b,function(){for(var c=Math.max(arguments.length-b,0),d=Array(c),e=0;c>e;e++)d[e]=arguments[e+b];switch(b){case 0:return a.call(this,d);case 1:return a.call(this,arguments[0],d)}}}function t(a){return function(b,c,d){return a(b,d)}}function u(a){return function(b,c,d){d=j(d||e),b=b||[];var f=r(b);if(0>=a)return d(null);var g=!1,h=0,k=!1;!function l(){if(g&&0>=h)return d(null);for(;a>h&&!k;){var e=f();if(null===e)return g=!0,void(0>=h&&d(null));h+=1,c(b[e],e,i(function(a){h-=1,a?(d(a),k=!0):l()}))}}()}}function v(a){return function(b,c,d){return a(L.eachOf,b,c,d)}}function w(a){return function(b,c,d,e){return a(u(c),b,d,e)}}function x(a){return function(b,c,d){return a(L.eachOfSeries,b,c,d)}}function y(a,b,c,d){d=j(d||e),b=b||[];var f=k(b)?[]:{};a(b,function(a,b,d){c(a,function(a,c){f[b]=c,d(a)})},function(a){d(a,f)})}function z(a,b,c,d){var e=[];a(b,function(a,b,d){c(a,function(c){c&&e.push({index:b,value:a}),d()})},function(){d(m(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})}function A(a,b,c,d){z(a,b,function(a,b){c(a,function(a){b(!a)})},d)}function B(a,b,c){return function(d,e,f,g){function h(){g&&g(c(!1,void 0))}function i(a,d,e){return g?void f(a,function(d){g&&b(d)&&(g(c(!0,a)),g=f=!1),e()}):e()}arguments.length>3?a(d,e,i,h):(g=f,f=e,a(d,i,h))}}function C(a,b){return b}function D(a,b,c){c=c||e;var d=k(b)?[]:{};a(b,function(a,b,c){a(s(function(a,e){e.length<=1&&(e=e[0]),d[b]=e,c(a)}))},function(a){c(a,d)})}function E(a,b,c,d){var e=[];a(b,function(a,b,d){c(a,function(a,b){e=e.concat(b||[]),d(a)})},function(a){d(a,e)})}function F(a,b,c){function d(a,b,c,d){if(null!=d&&"function"!=typeof d)throw new Error("task callback must be a function");return a.started=!0,O(b)||(b=[b]),0===b.length&&a.idle()?L.setImmediate(function(){a.drain()}):(l(b,function(b){var f={data:b,callback:d||e};c?a.tasks.unshift(f):a.tasks.push(f),a.tasks.length===a.concurrency&&a.saturated()}),void L.setImmediate(a.process))}function f(a,b){return function(){g-=1;var c=!1,d=arguments;l(b,function(a){l(h,function(b,d){b!==a||c||(h.splice(d,1),c=!0)}),a.callback.apply(a,d)}),a.tasks.length+g===0&&a.drain(),a.process()}}if(null==b)b=1;else if(0===b)throw new Error("Concurrency must not be zero");var g=0,h=[],j={tasks:[],concurrency:b,payload:c,saturated:e,empty:e,drain:e,started:!1,paused:!1,push:function(a,b){d(j,a,!1,b)},kill:function(){j.drain=e,j.tasks=[]},unshift:function(a,b){d(j,a,!0,b)},process:function(){for(;!j.paused&&g=b;b++)L.setImmediate(j.process)}}};return j}function G(a){return s(function(b,c){b.apply(null,c.concat([s(function(b,c){"object"==typeof console&&(b?console.error&&console.error(b):console[a]&&l(c,function(b){console[a](b)}))})]))})}function H(a){return function(b,c,d){a(n(b),c,d)}}function I(a){return s(function(b,c){var d=s(function(c){var d=this,e=c.pop();return a(b,function(a,b,e){a.apply(d,c.concat([e]))},e)});return c.length?d.apply(this,c):d})}function J(a){return s(function(b){var c=b.pop();b.push(function(){var a=arguments;d?L.setImmediate(function(){c.apply(null,a)}):c.apply(null,a)});var d=!0;a.apply(this,b),d=!1})}var K,L={},M="object"==typeof self&&self.self===self&&self||"object"==typeof d&&d.global===d&&d||this;null!=M&&(K=M.async),L.noConflict=function(){return M.async=K,L};var N=Object.prototype.toString,O=Array.isArray||function(a){return"[object Array]"===N.call(a)},P=function(a){var b=typeof a;return"function"===b||"object"===b&&!!a},Q=Object.keys||function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},R="function"==typeof setImmediate&&setImmediate,S=R?function(a){R(a)}:function(a){setTimeout(a,0)};"object"==typeof b&&"function"==typeof b.nextTick?L.nextTick=b.nextTick:L.nextTick=S,L.setImmediate=R?S:L.nextTick,L.forEach=L.each=function(a,b,c){return L.eachOf(a,t(b),c)},L.forEachSeries=L.eachSeries=function(a,b,c){return L.eachOfSeries(a,t(b),c)},L.forEachLimit=L.eachLimit=function(a,b,c,d){return u(b)(a,t(c),d)},L.forEachOf=L.eachOf=function(a,b,c){function d(a){h--,a?c(a):null===f&&0>=h&&c(null)}c=j(c||e),a=a||[];for(var f,g=r(a),h=0;null!=(f=g());)h+=1,b(a[f],f,i(d));0===h&&c(null)},L.forEachOfSeries=L.eachOfSeries=function(a,b,c){function d(){var e=!0;return null===g?c(null):(b(a[g],g,i(function(a){if(a)c(a);else{if(g=f(),null===g)return c(null);e?L.setImmediate(d):d()}})),void(e=!1))}c=j(c||e),a=a||[];var f=r(a),g=f();d()},L.forEachOfLimit=L.eachOfLimit=function(a,b,c,d){u(b)(a,c,d)},L.map=v(y),L.mapSeries=x(y),L.mapLimit=w(y),L.inject=L.foldl=L.reduce=function(a,b,c,d){L.eachOfSeries(a,function(a,d,e){c(b,a,function(a,c){b=c,e(a)})},function(a){d(a,b)})},L.foldr=L.reduceRight=function(a,b,c,d){var e=m(a,f).reverse();L.reduce(e,b,c,d)},L.transform=function(a,b,c,d){3===arguments.length&&(d=c,c=b,b=O(a)?[]:{}),L.eachOf(a,function(a,d,e){c(b,a,d,e)},function(a){d(a,b)})},L.select=L.filter=v(z),L.selectLimit=L.filterLimit=w(z),L.selectSeries=L.filterSeries=x(z),L.reject=v(A),L.rejectLimit=w(A),L.rejectSeries=x(A),L.any=L.some=B(L.eachOf,g,f),L.someLimit=B(L.eachOfLimit,g,f),L.all=L.every=B(L.eachOf,h,h),L.everyLimit=B(L.eachOfLimit,h,h),L.detect=B(L.eachOf,f,C),L.detectSeries=B(L.eachOfSeries,f,C),L.detectLimit=B(L.eachOfLimit,f,C),L.sortBy=function(a,b,c){function d(a,b){var c=a.criteria,d=b.criteria;return d>c?-1:c>d?1:0}L.map(a,function(a,c){b(a,function(b,d){b?c(b):c(null,{value:a,criteria:d})})},function(a,b){return a?c(a):void c(null,m(b.sort(d),function(a){return a.value}))})},L.auto=function(a,b,c){function d(a){r.unshift(a)}function f(a){var b=q(r,a);b>=0&&r.splice(b,1)}function g(){i--,l(r.slice(0),function(a){a()})}"function"==typeof arguments[1]&&(c=b,b=null),c=j(c||e);var h=Q(a),i=h.length;if(!i)return c(null);b||(b=i);var k={},m=0,n=!1,r=[];d(function(){i||c(null,k)}),l(h,function(e){function h(){return b>m&&o(t,function(a,b){return a&&k.hasOwnProperty(b)},!0)&&!k.hasOwnProperty(e)}function i(){h()&&(m++,f(i),l[l.length-1](r,k))}if(!n){for(var j,l=O(a[e])?a[e]:[a[e]],r=s(function(a,b){if(m--,b.length<=1&&(b=b[0]),a){var d={};p(k,function(a,b){d[b]=a}),d[e]=b,n=!0,c(a,d)}else k[e]=b,L.setImmediate(g)}),t=l.slice(0,l.length-1),u=t.length;u--;){if(!(j=a[t[u]]))throw new Error("Has nonexistent dependency in "+t.join(", "));if(O(j)&&q(j,e)>=0)throw new Error("Has cyclic dependencies")}h()?(m++,l[l.length-1](r,k)):d(i)}})},L.retry=function(a,b,c){function d(a,b){if("number"==typeof b)a.times=parseInt(b,10)||f;else{if("object"!=typeof b)throw new Error("Unsupported argument type for 'times': "+typeof b);a.times=parseInt(b.times,10)||f,a.interval=parseInt(b.interval,10)||g}}function e(a,b){function c(a,c){return function(d){a(function(a,b){d(!a||c,{err:a,result:b})},b)}}function d(a){return function(b){setTimeout(function(){b(null)},a)}}for(;i.times;){var e=!(i.times-=1);h.push(c(i.task,e)),!e&&i.interval>0&&h.push(d(i.interval))}L.series(h,function(b,c){c=c[c.length-1],(a||i.callback)(c.err,c.result)})}var f=5,g=0,h=[],i={times:f,interval:g},j=arguments.length;if(1>j||j>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");return 2>=j&&"function"==typeof a&&(c=b,b=a),"function"!=typeof a&&d(i,a),i.callback=c,i.task=b,i.callback?e():e},L.waterfall=function(a,b){function c(a){return s(function(d,e){if(d)b.apply(null,[d].concat(e));else{var f=a.next();f?e.push(c(f)):e.push(b),J(a).apply(null,e)}})}if(b=j(b||e),!O(a)){var d=new Error("First argument to waterfall must be an array of functions");return b(d)}return a.length?void c(L.iterator(a))():b()},L.parallel=function(a,b){D(L.eachOf,a,b)},L.parallelLimit=function(a,b,c){D(u(b),a,c)},L.series=function(a,b){D(L.eachOfSeries,a,b)},L.iterator=function(a){function b(c){function d(){return a.length&&a[c].apply(null,arguments),d.next()}return d.next=function(){return cd;){var f=d+(e-d+1>>>1);c(b,a[f])>=0?d=f:e=f-1}return d}function f(a,b,f,g){if(null!=g&&"function"!=typeof g)throw new Error("task callback must be a function");return a.started=!0,O(b)||(b=[b]),0===b.length?L.setImmediate(function(){a.drain()}):void l(b,function(b){var h={data:b,priority:f,callback:"function"==typeof g?g:e};a.tasks.splice(d(a.tasks,h,c)+1,0,h),a.tasks.length===a.concurrency&&a.saturated(),L.setImmediate(a.process)})}var g=L.queue(a,b);return g.push=function(a,b,c){f(g,a,b,c)},delete g.unshift,g},L.cargo=function(a,b){return F(a,1,b)},L.log=G("log"),L.dir=G("dir"),L.memoize=function(a,b){var c={},d={},e=Object.prototype.hasOwnProperty;b=b||f;var g=s(function(f){var g=f.pop(),h=b.apply(null,f);e.call(c,h)?L.setImmediate(function(){g.apply(null,c[h])}):e.call(d,h)?d[h].push(g):(d[h]=[g],a.apply(null,f.concat([s(function(a){c[h]=a;var b=d[h];delete d[h];for(var e=0,f=b.length;f>e;e++)b[e].apply(null,a)})])))});return g.memo=c,g.unmemoized=a,g},L.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},L.times=H(L.map),L.timesSeries=H(L.mapSeries),L.timesLimit=function(a,b,c,d){return L.mapLimit(n(a),b,c,d)},L.seq=function(){var a=arguments;return s(function(b){var c=this,d=b[b.length-1];"function"==typeof d?b.pop():d=e,L.reduce(a,b,function(a,b,d){b.apply(c,a.concat([s(function(a,b){d(a,b)})]))},function(a,b){d.apply(c,[a].concat(b))})})},L.compose=function(){return L.seq.apply(null,Array.prototype.reverse.call(arguments))},L.applyEach=I(L.eachOf),L.applyEachSeries=I(L.eachOfSeries),L.forever=function(a,b){function c(a){return a?d(a):void f(c)}var d=i(b||e),f=J(a);c()},L.ensureAsync=J,L.constant=s(function(a){var b=[null].concat(a);return function(a){return a.apply(this,b)}}),L.wrapSync=L.asyncify=function(a){return s(function(b){var c,d=b.pop();try{c=a.apply(this,b)}catch(e){return d(e)}P(c)&&"function"==typeof c.then?c.then(function(a){d(null,a)})["catch"](function(a){d(a.message?a:new Error(a))}):d(null,c)})},"object"==typeof c&&c.exports?c.exports=L:"function"==typeof a&&a.amd?a([],function(){return L}):M.async=L}()}).call(this,b("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:3}],2:[function(a,b,c){(function(a){function b(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(c=g+"/"+c,e="/"===g.charAt(0))}return c=b(d(c.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+c||"."},c.normalize=function(a){var e=c.isAbsolute(a),f="/"===g(a,-1);return a=b(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},c.isAbsolute=function(a){return"/"===a.charAt(0)},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},c.relative=function(a,b){function d(a){for(var b=0;b=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;ib&&(b=a.length+b),a.substr(b,c)}}).call(this,a("_process"))},{_process:3}],3:[function(a,b,c){function d(){k=!1,h.length?j=h.concat(j):l=-1,j.length&&e()}function e(){if(!k){var a=setTimeout(d);k=!0;for(var b=j.length;b;){for(h=j,j=[];++l1)for(var c=1;c1&&(d=c[0]+"@",a=c[1]),a=a.replace(H,".");var e=a.split("."),f=g(e,b).join(".");return d+f}function i(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function j(a){return g(a,function(a){var b="";return a>65535&&(a-=65536,b+=L(a>>>10&1023|55296),a=56320|1023&a),b+=L(a)}).join("")}function k(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:x}function l(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function m(a,b,c){var d=0;for(a=c?K(a/B):a>>1,a+=K(a/b);a>J*z>>1;d+=x)a=K(a/J);return K(d+(J+1)*a/(a+A))}function n(a){var b,c,d,e,g,h,i,l,n,o,p=[],q=a.length,r=0,s=D,t=C;for(c=a.lastIndexOf(E),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&f("not-basic"),p.push(a.charCodeAt(d));for(e=c>0?c+1:0;q>e;){for(g=r,h=1,i=x;e>=q&&f("invalid-input"),l=k(a.charCodeAt(e++)),(l>=x||l>K((w-r)/h))&&f("overflow"),r+=l*h,n=t>=i?y:i>=t+z?z:i-t,!(n>l);i+=x)o=x-n,h>K(w/o)&&f("overflow"),h*=o;b=p.length+1,t=m(r-g,b,0==g),K(r/b)>w-s&&f("overflow"),s+=K(r/b),r%=b,p.splice(r++,0,s)}return j(p)}function o(a){var b,c,d,e,g,h,j,k,n,o,p,q,r,s,t,u=[];for(a=i(a),q=a.length,b=D,c=0,g=C,h=0;q>h;++h)p=a[h],128>p&&u.push(L(p));for(d=e=u.length,e&&u.push(E);q>d;){for(j=w,h=0;q>h;++h)p=a[h],p>=b&&j>p&&(j=p);for(r=d+1,j-b>K((w-c)/r)&&f("overflow"),c+=(j-b)*r,b=j,h=0;q>h;++h)if(p=a[h],b>p&&++c>w&&f("overflow"),p==b){for(k=c,n=x;o=g>=n?y:n>=g+z?z:n-g,!(o>k);n+=x)t=k-o,s=x-o,u.push(L(l(o+t%s,0))),k=K(t/s);u.push(L(l(k,0))),g=m(c,r,d==e),c=0,++d}++c,++b}return u.join("")}function p(a){return h(a,function(a){return F.test(a)?n(a.slice(4).toLowerCase()):a})}function q(a){return h(a,function(a){return G.test(a)?"xn--"+o(a):a})}var r="object"==typeof d&&d&&!d.nodeType&&d,s="object"==typeof c&&c&&!c.nodeType&&c,t="object"==typeof b&&b;t.global!==t&&t.window!==t&&t.self!==t||(e=t);var u,v,w=2147483647,x=36,y=1,z=26,A=38,B=700,C=72,D=128,E="-",F=/^xn--/,G=/[^\x20-\x7E]/,H=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=x-y,K=Math.floor,L=String.fromCharCode;if(u={version:"1.3.2",ucs2:{decode:i,encode:j},decode:n,encode:o,toASCII:q,toUnicode:p},"function"==typeof a&&"object"==typeof a.amd&&a.amd)a("punycode",function(){return u});else if(r&&s)if(c.exports==r)s.exports=u;else for(v in u)u.hasOwnProperty(v)&&(r[v]=u[v]);else e.punycode=u}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],6:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("querystring");d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;jk)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;jk)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;jj;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{punycode:4,querystring:7}],9:[function(a,b,c){"use strict";function d(a,b,c){c=c||2;var d=b&&b.length,f=d?b[0]*c:a.length,h=e(a,0,f,c,!0),i=[];if(!h)return i;var j,k,m,n,o,p,q;if(d&&(h=l(a,b,h,c)),a.length>80*c){j=m=a[0],k=n=a[1];for(var r=c;f>r;r+=c)o=a[r],p=a[r+1],j>o&&(j=o),k>p&&(k=p),o>m&&(m=o),p>n&&(n=p);q=Math.max(m-j,n-k)}return g(h,i,c,j,k,q),i}function e(a,b,c,d,e){var f,g,h,i=0;for(f=b,g=c-d;c>f;f+=d)i+=(a[g]-a[f])*(a[f+1]+a[g+1]),g=f;if(e===i>0)for(f=b;c>f;f+=d)h=C(f,a[f],a[f+1],h);else for(f=c-d;f>=b;f-=d)h=C(f,a[f],a[f+1],h);return h}function f(a,b){if(!a)return a;b||(b=a);var c,d=a;do if(c=!1,d.steiner||!w(d,d.next)&&0!==v(d.prev,d,d.next))d=d.next;else{if(D(d),d=b=d.prev,d===d.next)return null;c=!0}while(c||d!==b);return b}function g(a,b,c,d,e,l,m){if(a){!m&&l&&p(a,d,e,l);for(var n,o,q=a;a.prev!==a.next;)if(n=a.prev,o=a.next,l?i(a,d,e,l):h(a))b.push(n.i/c),b.push(a.i/c),b.push(o.i/c),D(a),a=o.next,q=o.next;else if(a=o,a===q){m?1===m?(a=j(a,b,c),g(a,b,c,d,e,l,2)):2===m&&k(a,b,c,d,e,l):g(f(a),b,c,d,e,l,1);break}}}function h(a){var b=a.prev,c=a,d=a.next;if(v(b,c,d)>=0)return!1;for(var e=a.next.next;e!==a.prev;){if(t(b.x,b.y,c.x,c.y,d.x,d.y,e.x,e.y)&&v(e.prev,e,e.next)>=0)return!1;e=e.next}return!0}function i(a,b,c,d){var e=a.prev,f=a,g=a.next;if(v(e,f,g)>=0)return!1;for(var h=e.xf.x?e.x>g.x?e.x:g.x:f.x>g.x?f.x:g.x,k=e.y>f.y?e.y>g.y?e.y:g.y:f.y>g.y?f.y:g.y,l=r(h,i,b,c,d),m=r(j,k,b,c,d),n=a.nextZ;n&&n.z<=m;){if(n!==a.prev&&n!==a.next&&t(e.x,e.y,f.x,f.y,g.x,g.y,n.x,n.y)&&v(n.prev,n,n.next)>=0)return!1;n=n.nextZ}for(n=a.prevZ;n&&n.z>=l;){if(n!==a.prev&&n!==a.next&&t(e.x,e.y,f.x,f.y,g.x,g.y,n.x,n.y)&&v(n.prev,n,n.next)>=0)return!1;n=n.prevZ}return!0}function j(a,b,c){var d=a;do{var e=d.prev,f=d.next.next;x(e,d,d.next,f)&&z(e,f)&&z(f,e)&&(b.push(e.i/c),b.push(d.i/c),b.push(f.i/c),D(d),D(d.next),d=a=f),d=d.next}while(d!==a);return d}function k(a,b,c,d,e,h){var i=a;do{for(var j=i.next.next;j!==i.prev;){if(i.i!==j.i&&u(i,j)){var k=B(i,j);return i=f(i,i.next),k=f(k,k.next),g(i,b,c,d,e,h),void g(k,b,c,d,e,h)}j=j.next}i=i.next}while(i!==a)}function l(a,b,c,d){var g,h,i,j,k,l=[];for(g=0,h=b.length;h>g;g++)i=b[g]*d,j=h-1>g?b[g+1]*d:a.length,k=e(a,i,j,d,!1),k===k.next&&(k.steiner=!0),l.push(s(k));for(l.sort(m),g=0;g=d.next.y){var h=d.x+(f-d.y)*(d.next.x-d.x)/(d.next.y-d.y);e>=h&&h>g&&(g=h,c=d.x=d.x&&d.x>=c.x&&t(fi||i===k&&d.x>c.x)&&z(d,a)&&(c=d,k=i)),d=d.next;return c}function p(a,b,c,d){var e=a;do null===e.z&&(e.z=r(e.x,e.y,b,c,d)),e.prevZ=e.prev,e.nextZ=e.next,e=e.next;while(e!==a);e.prevZ.nextZ=null,e.prevZ=null,q(e)}function q(a){var b,c,d,e,f,g,h,i,j=1;do{for(c=a,a=null,f=null,g=0;c;){for(g++,d=c,h=0,b=0;j>b&&(h++,d=d.nextZ,d);b++);for(i=j;h>0||i>0&&d;)0===h?(e=d,d=d.nextZ,i--):0!==i&&d?c.z<=d.z?(e=c,c=c.nextZ,h--):(e=d,d=d.nextZ,i--):(e=c,c=c.nextZ,h--),f?f.nextZ=e:a=e,e.prevZ=f,f=e;c=d}f.nextZ=null,j*=2}while(g>1);return a}function r(a,b,c,d,e){return a=32767*(a-c)/e,b=32767*(b-d)/e,a=16711935&(a|a<<8),a=252645135&(a|a<<4),a=858993459&(a|a<<2),a=1431655765&(a|a<<1),b=16711935&(b|b<<8),b=252645135&(b|b<<4),b=858993459&(b|b<<2),b=1431655765&(b|b<<1),a|b<<1}function s(a){var b=a,c=a;do b.x=0&&(a-g)*(d-h)-(c-g)*(b-h)>=0&&(c-g)*(f-h)-(e-g)*(d-h)>=0}function u(a,b){return w(a,b)||a.next.i!==b.i&&a.prev.i!==b.i&&!y(a,b)&&z(a,b)&&z(b,a)&&A(a,b)}function v(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function w(a,b){return a.x===b.x&&a.y===b.y}function x(a,b,c,d){return v(a,b,c)>0!=v(a,b,d)>0&&v(c,d,a)>0!=v(c,d,b)>0}function y(a,b){var c=a;do{if(c.i!==a.i&&c.next.i!==a.i&&c.i!==b.i&&c.next.i!==b.i&&x(c,c.next,a,b))return!0;c=c.next}while(c!==a);return!1}function z(a,b){return v(a.prev,a,a.next)<0?v(a,b,a.next)>=0&&v(a,a.prev,b)>=0:v(a,b,a.prev)<0||v(a,a.next,b)<0}function A(a,b){var c=a,d=!1,e=(a.x+b.x)/2,f=(a.y+b.y)/2;do c.y>f!=c.next.y>f&&e<(c.next.x-c.x)*(f-c.y)/(c.next.y-c.y)+c.x&&(d=!d),c=c.next;while(c!==a);return d}function B(a,b){var c=new E(a.i,a.x,a.y),d=new E(b.i,b.x,b.y),e=a.next,f=b.prev;return a.next=b,b.prev=a,c.next=e,e.prev=c,d.next=c,c.prev=d,f.next=d,d.prev=f,d}function C(a,b,c,d){var e=new E(a,b,c);return d?(e.next=d.next,e.prev=d,d.next.prev=e,d.next=e):(e.prev=e,e.next=e),e}function D(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function E(a,b,c){this.i=a,this.x=b,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}b.exports=d},{}],10:[function(a,b,c){"use strict";function d(a,b,c){this.fn=a,this.context=b,this.once=c||!1}function e(){}var f="function"!=typeof Object.create?"~":!1;e.prototype._events=void 0,e.prototype.listeners=function(a,b){var c=f?f+a:a,d=this._events&&this._events[c];if(b)return!!d;if(!d)return[];if(d.fn)return[d.fn];for(var e=0,g=d.length,h=new Array(g);g>e;e++)h[e]=d[e].fn;return h},e.prototype.emit=function(a,b,c,d,e,g){var h=f?f+a:a;if(!this._events||!this._events[h])return!1;var i,j,k=this._events[h],l=arguments.length;if("function"==typeof k.fn){switch(k.once&&this.removeListener(a,k.fn,void 0,!0),l){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,b),!0;case 3:return k.fn.call(k.context,b,c),!0;case 4:return k.fn.call(k.context,b,c,d),!0;case 5:return k.fn.call(k.context,b,c,d,e),!0;case 6:return k.fn.call(k.context,b,c,d,e,g),!0}for(j=1,i=new Array(l-1);l>j;j++)i[j-1]=arguments[j];k.fn.apply(k.context,i)}else{var m,n=k.length;for(j=0;n>j;j++)switch(k[j].once&&this.removeListener(a,k[j].fn,void 0,!0),l){case 1:k[j].fn.call(k[j].context);break;case 2:k[j].fn.call(k[j].context,b);break;case 3:k[j].fn.call(k[j].context,b,c);break;default:if(!i)for(m=1,i=new Array(l-1);l>m;m++)i[m-1]=arguments[m];k[j].fn.apply(k[j].context,i)}}return!0},e.prototype.on=function(a,b,c){var e=new d(b,c||this),g=f?f+a:a;return this._events||(this._events=f?{}:Object.create(null)),this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],e]:this._events[g].push(e):this._events[g]=e,this},e.prototype.once=function(a,b,c){var e=new d(b,c||this,!0),g=f?f+a:a;return this._events||(this._events=f?{}:Object.create(null)),this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],e]:this._events[g].push(e):this._events[g]=e,this},e.prototype.removeListener=function(a,b,c,d){var e=f?f+a:a;if(!this._events||!this._events[e])return this;var g=this._events[e],h=[];if(b)if(g.fn)(g.fn!==b||d&&!g.once||c&&g.context!==c)&&h.push(g);else for(var i=0,j=g.length;j>i;i++)(g[i].fn!==b||d&&!g[i].once||c&&g[i].context!==c)&&h.push(g[i]);return h.length?this._events[e]=1===h.length?h[0]:h:delete this._events[e],this},e.prototype.removeAllListeners=function(a){return this._events?(a?delete this._events[f?f+a:a]:this._events=f?{}:Object.create(null),this):this},e.prototype.off=e.prototype.removeListener,e.prototype.addListener=e.prototype.on,e.prototype.setMaxListeners=function(){return this},e.prefixed=f,"undefined"!=typeof b&&(b.exports=e)},{}],11:[function(a,b,c){"use strict";function d(a){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}var e=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;b.exports=Object.assign||function(a,b){for(var c,g,h=d(a),i=1;i=a.length&&c())}if(c=c||function(){},!a.length)return c();var f=0;j(a,function(a){b(a,d(e))})},g.forEach=g.each,g.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c():e())})};e()},g.forEachSeries=g.eachSeries,g.eachLimit=function(a,b,c,d){var e=n(b);e.apply(null,[a,c,d])},g.forEachLimit=g.eachLimit;var n=function(a){return function(b,c,d){if(d=d||function(){},!b.length||0>=a)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;a>g&&f=b.length?d():h())})}()}},o=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[g.each].concat(b))}},p=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[n(a)].concat(c))}},q=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[g.eachSeries].concat(b))}},r=function(a,b,c,d){if(b=k(b,function(a,b){return{index:b,value:a}}),d){var e=[];a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})}else a(b,function(a,b){c(a.value,function(a){b(a)})})};g.map=o(r),g.mapSeries=q(r),g.mapLimit=function(a,b,c,d){return s(b)(a,c,d)};var s=function(a){return p(a,r)};g.reduce=function(a,b,c,d){g.eachSeries(a,function(a,d){c(b,a,function(a,c){b=c,d(a)})},function(a){d(a,b)})},g.inject=g.reduce,g.foldl=g.reduce,g.reduceRight=function(a,b,c,d){var e=k(a,function(a){return a}).reverse();g.reduce(e,b,c,d)},g.foldr=g.reduceRight;var t=function(a,b,c,d){var e=[];b=k(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(a){d(k(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};g.filter=o(t),g.filterSeries=q(t),g.select=g.filter,g.selectSeries=g.filterSeries;var u=function(a,b,c,d){var e=[];b=k(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(a){d(k(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};g.reject=o(u),g.rejectSeries=q(u);var v=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(a){d()})};g.detect=o(v),g.detectSeries=q(v),g.some=function(a,b,c){g.each(a,function(a,d){b(a,function(a){a&&(c(!0),c=function(){}),d()})},function(a){c(!1)})},g.any=g.some,g.every=function(a,b,c){g.each(a,function(a,d){b(a,function(a){a||(c(!1),c=function(){}),d()})},function(a){c(!0)})},g.all=g.every,g.sortBy=function(a,b,c){g.map(a,function(a,c){b(a,function(b,d){b?c(b):c(null,{value:a,criteria:d})})},function(a,b){if(a)return c(a);var d=function(a,b){var c=a.criteria,d=b.criteria;return d>c?-1:c>d?1:0};c(null,k(b.sort(d),function(a){return a.value}))})},g.auto=function(a,b){b=b||function(){};var c=m(a),d=c.length;if(!d)return b();var e={},f=[],h=function(a){f.unshift(a)},k=function(a){for(var b=0;bd;){var f=d+(e-d+1>>>1);c(b,a[f])>=0?d=f:e=f-1}return d}function e(a,b,e,f){return a.started||(a.started=!0),i(b)||(b=[b]),0==b.length?g.setImmediate(function(){a.drain&&a.drain()}):void j(b,function(b){var h={data:b,priority:e,callback:"function"==typeof f?f:null};a.tasks.splice(d(a.tasks,h,c)+1,0,h),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),g.setImmediate(a.process)})}var f=g.queue(a,b);return f.push=function(a,b,c){e(f,a,b,c)},delete f.unshift,f},g.cargo=function(a,b){var c=!1,d=[],e={tasks:d,payload:b,saturated:null,empty:null,drain:null,drained:!0,push:function(a,c){i(a)||(a=[a]),j(a,function(a){d.push({data:a,callback:"function"==typeof c?c:null}),e.drained=!1,e.saturated&&d.length===b&&e.saturated()}),g.setImmediate(e.process)},process:function f(){if(!c){if(0===d.length)return e.drain&&!e.drained&&e.drain(),void(e.drained=!0);var g="number"==typeof b?d.splice(0,b):d.splice(0,d.length),h=k(g,function(a){return a.data});e.empty&&e.empty(),c=!0,a(h,function(){c=!1;var a=arguments;j(g,function(b){b.callback&&b.callback.apply(null,a)}),f()})}},length:function(){return d.length},running:function(){return c}};return e};var y=function(a){return function(b){var c=Array.prototype.slice.call(arguments,1);b.apply(null,c.concat([function(b){var c=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(b?console.error&&console.error(b):console[a]&&j(c,function(b){console[a](b)}))}]))}};g.log=y("log"),g.dir=y("dir"),g.memoize=function(a,b){var c={},d={};b=b||function(a){return a};var e=function(){var e=Array.prototype.slice.call(arguments),f=e.pop(),h=b.apply(null,e);h in c?g.nextTick(function(){f.apply(null,c[h])}):h in d?d[h].push(f):(d[h]=[f],a.apply(null,e.concat([function(){c[h]=arguments;var a=d[h];delete d[h];for(var b=0,e=a.length;e>b;b++)a[b].apply(null,arguments)}])))};return e.memo=c,e.unmemoized=a,e},g.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},g.times=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return g.map(d,b,c)},g.timesSeries=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return g.mapSeries(d,b,c)},g.seq=function(){var a=arguments;return function(){var b=this,c=Array.prototype.slice.call(arguments),d=c.pop();g.reduce(a,c,function(a,c,d){c.apply(b,a.concat([function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);d(a,b)}]))},function(a,c){d.apply(b,[a].concat(c))})}},g.compose=function(){return g.seq.apply(null,Array.prototype.reverse.call(arguments))};var z=function(a,b){var c=function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();return a(b,function(a,b){a.apply(c,d.concat([b]))},e)};if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return c.apply(this,d)}return c};g.applyEach=o(z),g.applyEachSeries=q(z),g.forever=function(a,b){function c(d){if(d){if(b)return b(d);throw d}a(c)}c()},"undefined"!=typeof c&&c.exports?c.exports=g:"undefined"!=typeof a&&a.amd?a([],function(){return g}):e.async=g}()}).call(this,b("_process"))},{_process:3}],13:[function(a,b,c){function d(a,b){h.call(this),b=b||10,this.baseUrl=a||"",this.progress=0,this.loading=!1,this._progressChunk=0,this._beforeMiddleware=[],this._afterMiddleware=[],this._boundLoadResource=this._loadResource.bind(this),this._boundOnLoad=this._onLoad.bind(this),this._buffer=[],this._numToLoad=0,this._queue=e.queue(this._boundLoadResource,b),this.resources={}}var e=a("async"),f=a("url"),g=a("./Resource"),h=a("eventemitter3");d.prototype=Object.create(h.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.add=d.prototype.enqueue=function(a,b,c,d){if(Array.isArray(a)){for(var e=0;e0)if(this.xhrType===d.XHR_RESPONSE_TYPE.TEXT)this.data=a.responseText;else if(this.xhrType===d.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(a.responseText),this.isJson=!0}catch(c){this.error=new Error("Error trying to parse loaded json:",c)}else if(this.xhrType===d.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var e=new DOMParser;this.data=e.parseFromString(a.responseText,"text/xml")}else{var f=document.createElement("div");f.innerHTML=a.responseText,this.data=f}this.isXml=!0}catch(c){this.error=new Error("Error trying to parse loaded xml:",c)}else this.data=a.response||a.responseText;else this.error=new Error("["+a.status+"]"+a.statusText+":"+a.responseURL);this.complete()},d.prototype._determineCrossOrigin=function(a,b){if(0===a.indexOf("data:"))return"";b=b||window.location,j||(j=document.createElement("a")),j.href=a,a=h.parse(j.href);var c=!a.port&&""===b.port||a.port===b.port;return a.hostname===b.hostname&&c&&a.protocol===b.protocol?"":"anonymous"},d.prototype._determineXhrType=function(){return d._xhrTypeMap[this._getExtension()]||d.XHR_RESPONSE_TYPE.TEXT},d.prototype._determineLoadType=function(){return d._loadTypeMap[this._getExtension()]||d.LOAD_TYPE.XHR},d.prototype._getExtension=function(){var a,b=this.url;if(this.isDataUrl){var c=b.indexOf("/");a=b.substring(c+1,b.indexOf(";",c))}else{var d=b.indexOf("?");-1!==d&&(b=b.substring(0,d)),a=b.substring(b.lastIndexOf(".")+1)}return a},d.prototype._getMimeFromXhrType=function(a){switch(a){case d.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case d.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case d.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case d.XHR_RESPONSE_TYPE.JSON:return"application/json";case d.XHR_RESPONSE_TYPE.DEFAULT:case d.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},d.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},d.XHR_READY_STATE={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},d._loadTypeMap={gif:d.LOAD_TYPE.IMAGE,png:d.LOAD_TYPE.IMAGE,bmp:d.LOAD_TYPE.IMAGE,jpg:d.LOAD_TYPE.IMAGE,jpeg:d.LOAD_TYPE.IMAGE,tif:d.LOAD_TYPE.IMAGE,tiff:d.LOAD_TYPE.IMAGE,webp:d.LOAD_TYPE.IMAGE,tga:d.LOAD_TYPE.IMAGE},d._xhrTypeMap={xhtml:d.XHR_RESPONSE_TYPE.DOCUMENT,html:d.XHR_RESPONSE_TYPE.DOCUMENT,htm:d.XHR_RESPONSE_TYPE.DOCUMENT,xml:d.XHR_RESPONSE_TYPE.DOCUMENT,tmx:d.XHR_RESPONSE_TYPE.DOCUMENT,tsx:d.XHR_RESPONSE_TYPE.DOCUMENT,svg:d.XHR_RESPONSE_TYPE.DOCUMENT,gif:d.XHR_RESPONSE_TYPE.BLOB,png:d.XHR_RESPONSE_TYPE.BLOB,bmp:d.XHR_RESPONSE_TYPE.BLOB,jpg:d.XHR_RESPONSE_TYPE.BLOB,jpeg:d.XHR_RESPONSE_TYPE.BLOB,tif:d.XHR_RESPONSE_TYPE.BLOB,tiff:d.XHR_RESPONSE_TYPE.BLOB,webp:d.XHR_RESPONSE_TYPE.BLOB,tga:d.XHR_RESPONSE_TYPE.BLOB,json:d.XHR_RESPONSE_TYPE.JSON,text:d.XHR_RESPONSE_TYPE.TEXT,txt:d.XHR_RESPONSE_TYPE.TEXT},d.setExtensionLoadType=function(a,b){f(d._loadTypeMap,a,b)},d.setExtensionXhrType=function(a,b){f(d._xhrTypeMap,a,b)}},{eventemitter3:10,url:8}],15:[function(a,b,c){b.exports={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encodeBinary:function(a){for(var b,c="",d=new Array(4),e=0,f=0,g=0;e>2,d[1]=(3&b[0])<<4|b[1]>>4,d[2]=(15&b[1])<<2|b[2]>>6,d[3]=63&b[2],g=e-(a.length-1)){case 2:d[3]=64,d[2]=64;break;case 1:d[3]=64}for(f=0;f=0;c--)this.updateAccessibleObjects(b[c])},d.prototype.update=function(){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var a=this.renderer.view.getBoundingClientRect(),b=a.width/this.renderer.width,c=a.height/this.renderer.height,d=this.div;d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.width=this.renderer.width+"px",d.style.height=this.renderer.height+"px";for(var f=0;fthis.renderer.width&&(a.width=this.renderer.width-a.x),a.y+a.height>this.renderer.height&&(a.height=this.renderer.height-a.y)},d.prototype.addChild=function(a){var b=this.pool.pop();b||(b=document.createElement("button"),b.style.width="100px",b.style.height="100px",b.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",b.style.position="absolute",b.style.zIndex=2,b.style.borderStyle="none",b.addEventListener("click",this._onClick.bind(this)),b.addEventListener("focus",this._onFocus.bind(this)),b.addEventListener("focusout",this._onFocusOut.bind(this))),b.title=a.accessibleTitle||"displayObject "+this.tabIndex,a._accessibleActive=!0,a._accessibleDiv=b,b.displayObject=a,this.children.push(a),this.div.appendChild(a._accessibleDiv),a._accessibleDiv.tabIndex=a.tabIndex},d.prototype._onClick=function(a){var b=this.renderer.plugins.interaction;b.dispatchEvent(a.target.displayObject,"click",b.eventData)},d.prototype._onFocus=function(a){var b=this.renderer.plugins.interaction;b.dispatchEvent(a.target.displayObject,"mouseover",b.eventData)},d.prototype._onFocusOut=function(a){var b=this.renderer.plugins.interaction;b.dispatchEvent(a.target.displayObject,"mouseout",b.eventData)},d.prototype._onKeyDown=function(a){9===a.keyCode&&this.activate()},d.prototype._onMouseMove=function(){this.deactivate()},d.prototype.destroy=function(){this.div=null;for(var a=0;a1)for(var c=0;b>c;c++)this.addChild(arguments[c]);else a.parent&&a.parent.removeChild(a),a.parent=this,this.children.push(a),this.onChildrenChange(this.children.length-1),a.emit("added",this);return a},d.prototype.addChildAt=function(a,b){if(b>=0&&b<=this.children.length)return a.parent&&a.parent.removeChild(a),a.parent=this,this.children.splice(b,0,a),this.onChildrenChange(b),a.emit("added",this),a;throw new Error(a+"addChildAt: The index "+b+" supplied is out of bounds "+this.children.length)},d.prototype.swapChildren=function(a,b){if(a!==b){var c=this.getChildIndex(a),d=this.getChildIndex(b);if(0>c||0>d)throw new Error("swapChildren: Both the supplied DisplayObjects must be children of the caller.");this.children[c]=b,this.children[d]=a,this.onChildrenChange(d>c?c:d)}},d.prototype.getChildIndex=function(a){var b=this.children.indexOf(a);if(-1===b)throw new Error("The supplied DisplayObject must be a child of the caller");return b},d.prototype.setChildIndex=function(a,b){if(0>b||b>=this.children.length)throw new Error("The supplied index is out of bounds");var c=this.getChildIndex(a);f.removeItems(this.children,c,1),this.children.splice(b,0,a),this.onChildrenChange(b)},d.prototype.getChildAt=function(a){if(0>a||a>=this.children.length)throw new Error("getChildAt: Supplied index "+a+" does not exist in the child list, or the supplied DisplayObject is not a child of the caller");return this.children[a]},d.prototype.removeChild=function(a){var b=arguments.length;if(b>1)for(var c=0;b>c;c++)this.removeChild(arguments[c]);else{var d=this.children.indexOf(a);if(-1===d)return;a.parent=null,f.removeItems(this.children,d,1),this.onChildrenChange(d),a.emit("removed",this)}return a},d.prototype.removeChildAt=function(a){var b=this.getChildAt(a);return b.parent=null,f.removeItems(this.children,a,1),this.onChildrenChange(a),b.emit("removed",this),b},d.prototype.removeChildren=function(a,b){var c,d,e=a||0,f="number"==typeof b?b:this.children.length,g=f-e;if(g>0&&f>=g){for(c=this.children.splice(e,g),d=0;da;++a)this.children[a].updateTransform()}},d.prototype.containerUpdateTransform=d.prototype.updateTransform,d.prototype.getBounds=function(){if(!this._currentBounds){if(0===this.children.length)return e.Rectangle.EMPTY;for(var a,b,c,d=1/0,f=1/0,g=-(1/0),h=-(1/0),i=!1,j=0,k=this.children.length;k>j;++j){var l=this.children[j];l.visible&&(i=!0,a=this.children[j].getBounds(),d=db?g:b,h=h>c?h:c)}if(!i)return e.Rectangle.EMPTY;var m=this._bounds;m.x=d,m.y=f,m.width=g-d,m.height=h-f,this._currentBounds=m}return this._currentBounds},d.prototype.containerGetBounds=d.prototype.getBounds,d.prototype.getLocalBounds=function(){var a=this.worldTransform;this.worldTransform=e.Matrix.IDENTITY;for(var b=0,c=this.children.length;c>b;++b)this.children[b].updateTransform();return this.worldTransform=a,this._currentBounds=null,this.getBounds(e.Matrix.IDENTITY)},d.prototype.renderWebGL=function(a){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){var b,c;if(this._mask||this._filters){for(a.currentRenderer.flush(),this._filters&&this._filters.length&&a.filterManager.pushFilter(this,this._filters),this._mask&&a.maskManager.pushMask(this,this._mask),a.currentRenderer.start(),this._renderWebGL(a),b=0,c=this.children.length;c>b;b++)this.children[b].renderWebGL(a);a.currentRenderer.flush(),this._mask&&a.maskManager.popMask(this,this._mask),this._filters&&a.filterManager.popFilter(),a.currentRenderer.start()}else for(this._renderWebGL(a),b=0,c=this.children.length;c>b;++b)this.children[b].renderWebGL(a)}},d.prototype._renderWebGL=function(a){},d.prototype._renderCanvas=function(a){},d.prototype.renderCanvas=function(a){if(this.visible&&!(this.alpha<=0)&&this.renderable){this._mask&&a.maskManager.pushMask(this._mask,a),this._renderCanvas(a);for(var b=0,c=this.children.length;c>b;++b)this.children[b].renderCanvas(a);this._mask&&a.maskManager.popMask(a)}},d.prototype.destroy=function(a){if(g.prototype.destroy.call(this),a)for(var b=0,c=this.children.length;c>b;++b)this.children[b].destroy(a);this.removeChildren(),this.children=null}},{"../math":33,"../textures/RenderTexture":71,"../utils":77,"./DisplayObject":24}],24:[function(a,b,c){function d(){g.call(this),this.position=new e.Point,this.scale=new e.Point(1,1),this.pivot=new e.Point(0,0),this.skew=new e.Point(0,0),this.rotation=0,this.alpha=1,this.visible=!0,this.renderable=!0,this.parent=null,this.worldAlpha=1,this.worldTransform=new e.Matrix,this.filterArea=null,this._sr=0,this._cr=1,this._bounds=new e.Rectangle(0,0,1,1),this._currentBounds=null,this._mask=null}var e=a("../math"),f=a("../textures/RenderTexture"),g=a("eventemitter3"),h=a("../const"),i=new e.Matrix,j={worldTransform:new e.Matrix,worldAlpha:1,children:[]};d.prototype=Object.create(g.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{x:{get:function(){return this.position.x},set:function(a){this.position.x=a}},y:{get:function(){return this.position.y},set:function(a){this.position.y=a}},worldVisible:{get:function(){var a=this;do{if(!a.visible)return!1;a=a.parent}while(a);return!0}},mask:{get:function(){return this._mask},set:function(a){this._mask&&(this._mask.renderable=!0),this._mask=a,this._mask&&(this._mask.renderable=!1)}},filters:{get:function(){return this._filters&&this._filters.slice()},set:function(a){this._filters=a&&a.slice()}}}),d.prototype.updateTransform=function(){var a,b,c,d,e,f,g=this.parent.worldTransform,j=this.worldTransform;this.skew.x||this.skew.y?(i.setTransform(this.position.x,this.position.y,this.pivot.x,this.pivot.y,this.scale.x,this.scale.y,this.rotation,this.skew.x,this.skew.y),j.a=i.a*g.a+i.b*g.c,j.b=i.a*g.b+i.b*g.d,j.c=i.c*g.a+i.d*g.c,j.d=i.c*g.b+i.d*g.d,j.tx=i.tx*g.a+i.ty*g.c+g.tx,j.ty=i.tx*g.b+i.ty*g.d+g.ty):this.rotation%h.PI_2?(this.rotation!==this.rotationCache&&(this.rotationCache=this.rotation,this._sr=Math.sin(this.rotation),this._cr=Math.cos(this.rotation)),a=this._cr*this.scale.x,b=this._sr*this.scale.x,c=-this._sr*this.scale.y,d=this._cr*this.scale.y,e=this.position.x,f=this.position.y,(this.pivot.x||this.pivot.y)&&(e-=this.pivot.x*a+this.pivot.y*c,f-=this.pivot.x*b+this.pivot.y*d),j.a=a*g.a+b*g.c,j.b=a*g.b+b*g.d,j.c=c*g.a+d*g.c,j.d=c*g.b+d*g.d,j.tx=e*g.a+f*g.c+g.tx,j.ty=e*g.b+f*g.d+g.ty):(a=this.scale.x,d=this.scale.y,e=this.position.x-this.pivot.x*a,f=this.position.y-this.pivot.y*d,j.a=a*g.a,j.b=a*g.b,j.c=d*g.c,j.d=d*g.d,j.tx=e*g.a+f*g.c+g.tx,j.ty=e*g.b+f*g.d+g.ty),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._currentBounds=null},d.prototype.displayObjectUpdateTransform=d.prototype.updateTransform,d.prototype.getBounds=function(a){return e.Rectangle.EMPTY},d.prototype.getLocalBounds=function(){return this.getBounds(e.Matrix.IDENTITY)},d.prototype.toGlobal=function(a){return this.parent?this.displayObjectUpdateTransform():(this.parent=j,this.displayObjectUpdateTransform(),this.parent=null),this.worldTransform.apply(a)},d.prototype.toLocal=function(a,b,c){return b&&(a=b.toGlobal(a)),this.parent?this.displayObjectUpdateTransform():(this.parent=j,this.displayObjectUpdateTransform(),this.parent=null),this.worldTransform.applyInverse(a,c)},d.prototype.renderWebGL=function(a){},d.prototype.renderCanvas=function(a){},d.prototype.generateTexture=function(a,b,c){var d=this.getLocalBounds(),e=new f(a,0|d.width,0|d.height,b,c);return i.tx=-d.x,i.ty=-d.y,e.render(this,i),e},d.prototype.setParent=function(a){if(!a||!a.addChild)throw new Error("setParent: Argument must be a Container");return a.addChild(this),a},d.prototype.setTransform=function(a,b,c,d,e,f,g,h,i){ return this.position.x=a||0,this.position.y=b||0,this.scale.x=c?c:1,this.scale.y=d?d:1,this.rotation=e||0,this.skew.x=f||0,this.skew.y=g||0,this.pivot.x=h||0,this.pivot.y=i||0,this},d.prototype.destroy=function(){this.position=null,this.scale=null,this.pivot=null,this.skew=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.worldTransform=null,this.filterArea=null}},{"../const":22,"../math":33,"../textures/RenderTexture":71,eventemitter3:10}],25:[function(a,b,c){function d(){e.call(this),this.fillAlpha=1,this.lineWidth=0,this.lineColor=0,this.graphicsData=[],this.tint=16777215,this._prevTint=16777215,this.blendMode=k.BLEND_MODES.NORMAL,this.currentPath=null,this._webGL={},this.isMask=!1,this.boundsPadding=0,this._localBounds=new j.Rectangle(0,0,1,1),this.dirty=!0,this.glDirty=!1,this.boundsDirty=!0,this.cachedSpriteDirty=!1}var e=a("../display/Container"),f=a("../textures/Texture"),g=a("../renderers/canvas/utils/CanvasBuffer"),h=a("../renderers/canvas/utils/CanvasGraphics"),i=a("./GraphicsData"),j=a("../math"),k=a("../const"),l=new j.Point;d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.clone=function(){var a=new d;a.renderable=this.renderable,a.fillAlpha=this.fillAlpha,a.lineWidth=this.lineWidth,a.lineColor=this.lineColor,a.tint=this.tint,a.blendMode=this.blendMode,a.isMask=this.isMask,a.boundsPadding=this.boundsPadding,a.dirty=!0,a.glDirty=!0,a.cachedSpriteDirty=this.cachedSpriteDirty;for(var b=0;b=l;++l)k=l/g,e=i+(a-i)*k,f=j+(b-j)*k,h.push(e+(a+(c-a)*k-e)*k,f+(b+(d-b)*k-f)*k);return this.dirty=this.boundsDirty=!0,this},d.prototype.bezierCurveTo=function(a,b,c,d,e,f){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);for(var g,h,i,j,k,l=20,m=this.currentPath.shape.points,n=m[m.length-2],o=m[m.length-1],p=0,q=1;l>=q;++q)p=q/l,g=1-p,h=g*g,i=h*g,j=p*p,k=j*p,m.push(i*n+3*h*p*a+3*g*j*c+k*e,i*o+3*h*p*b+3*g*j*d+k*f);return this.dirty=this.boundsDirty=!0,this},d.prototype.arcTo=function(a,b,c,d,e){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(a,b):this.moveTo(a,b);var f=this.currentPath.shape.points,g=f[f.length-2],h=f[f.length-1],i=h-b,j=g-a,k=d-b,l=c-a,m=Math.abs(i*l-j*k);if(1e-8>m||0===e)f[f.length-2]===a&&f[f.length-1]===b||f.push(a,b);else{var n=i*i+j*j,o=k*k+l*l,p=i*k+j*l,q=e*Math.sqrt(n)/m,r=e*Math.sqrt(o)/m,s=q*p/n,t=r*p/o,u=q*l+r*j,v=q*k+r*i,w=j*(r+s),x=i*(r+s),y=l*(q+t),z=k*(q+t),A=Math.atan2(x-v,w-u),B=Math.atan2(z-v,y-u);this.arc(u+a,v+b,e,A,B,j*k>l*i)}return this.dirty=this.boundsDirty=!0,this},d.prototype.arc=function(a,b,c,d,e,f){if(f=f||!1,d===e)return this;!f&&d>=e?e+=2*Math.PI:f&&e>=d&&(d+=2*Math.PI);var g=f?-1*(d-e):e-d,h=40*Math.ceil(Math.abs(g)/(2*Math.PI));if(0===g)return this;var i=a+Math.cos(d)*c,j=b+Math.sin(d)*c;this.currentPath?this.currentPath.shape.points.push(i,j):this.moveTo(i,j);for(var k=this.currentPath.shape.points,l=g/(2*h),m=2*l,n=Math.cos(l),o=Math.sin(l),p=h-1,q=p%1/p,r=0;p>=r;r++){var s=r+q*r,t=l+d+m*s,u=Math.cos(t),v=-Math.sin(t);k.push((n*u+o*v)*c+a,(n*-v+o*u)*c+b)}return this.dirty=this.boundsDirty=!0,this},d.prototype.beginFill=function(a,b){return this.filling=!0,this.fillColor=a||0,this.fillAlpha=void 0===b?1:b,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},d.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},d.prototype.drawRect=function(a,b,c,d){return this.drawShape(new j.Rectangle(a,b,c,d)),this},d.prototype.drawRoundedRect=function(a,b,c,d,e){return this.drawShape(new j.RoundedRectangle(a,b,c,d,e)),this},d.prototype.drawCircle=function(a,b,c){return this.drawShape(new j.Circle(a,b,c)),this},d.prototype.drawEllipse=function(a,b,c,d){return this.drawShape(new j.Ellipse(a,b,c,d)),this},d.prototype.drawPolygon=function(a){var b=a,c=!0;if(b instanceof j.Polygon&&(c=b.closed,b=b.points),!Array.isArray(b)){b=new Array(arguments.length);for(var d=0;dq?q:y,y=y>s?s:y,y=y>u?u:y,z=z>r?r:z,z=z>t?t:z,z=z>v?v:z,w=q>w?q:w,w=s>w?s:w,w=u>w?u:w,x=r>x?r:x,x=t>x?t:x,x=v>x?v:x,this._bounds.x=y,this._bounds.width=w-y,this._bounds.y=z,this._bounds.height=x-z,this._currentBounds=this._bounds}return this._currentBounds},d.prototype.containsPoint=function(a){this.worldTransform.applyInverse(a,l);for(var b=this.graphicsData,c=0;cg?g:a,b=g+i>b?g+i:b,c=c>h?h:c,d=h+j>d?h+j:d;else if(n===k.SHAPES.CIRC)g=e.x,h=e.y,i=e.radius+o/2,j=e.radius+o/2,a=a>g-i?g-i:a,b=g+i>b?g+i:b,c=c>h-j?h-j:c,d=h+j>d?h+j:d;else if(n===k.SHAPES.ELIP)g=e.x,h=e.y,i=e.width+o/2,j=e.height+o/2,a=a>g-i?g-i:a,b=g+i>b?g+i:b,c=c>h-j?h-j:c,d=h+j>d?h+j:d;else{f=e.points;for(var p=0;pg-o?g-o:a,b=g+o>b?g+o:b,c=c>h-o?h-o:c,d=h+o>d?h+o:d}}else a=0,b=0,c=0,d=0;var q=this.boundsPadding;this._localBounds.x=a-q,this._localBounds.width=b-a+2*q,this._localBounds.y=c-q,this._localBounds.height=d-c+2*q},d.prototype.drawShape=function(a){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var b=new i(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,a);return this.graphicsData.push(b),b.type===k.SHAPES.POLY&&(b.shape.closed=b.shape.closed||this.filling,this.currentPath=b),this.dirty=this.boundsDirty=!0,b},d.prototype.destroy=function(){e.prototype.destroy.apply(this,arguments);for(var a=0;ah;h++)b=g.data[h],1===g.data[h].mode?(c.stencilManager.pushStencil(a,b),d.uniform1f(c.shaderManager.complexPrimitiveShader.uniforms.alpha._location,a.worldAlpha*b.alpha),d.drawElements(d.TRIANGLE_FAN,4,d.UNSIGNED_SHORT,2*(b.indices.length-4)),c.stencilManager.popStencil(a,b)):(f=c.shaderManager.primitiveShader,c.shaderManager.setShader(f),d.uniformMatrix3fv(f.uniforms.translationMatrix._location,!1,a.worldTransform.toArray(!0)),d.uniformMatrix3fv(f.uniforms.projectionMatrix._location,!1,c.currentRenderTarget.projectionMatrix.toArray(!0)),d.uniform3fv(f.uniforms.tint._location,e.hex2rgb(a.tint)),d.uniform1f(f.uniforms.alpha._location,a.worldAlpha),d.bindBuffer(d.ARRAY_BUFFER,b.buffer),d.vertexAttribPointer(f.attributes.aVertexPosition,2,d.FLOAT,!1,24,0),d.vertexAttribPointer(f.attributes.aColor,4,d.FLOAT,!1,24,8),d.bindBuffer(d.ELEMENT_ARRAY_BUFFER,b.indexBuffer),d.drawElements(d.TRIANGLE_STRIP,b.indices.length,d.UNSIGNED_SHORT,0)),c.drawCount++},d.prototype.updateGraphics=function(a){var b=this.renderer.gl,c=a._webGL[b.id];c||(c=a._webGL[b.id]={lastIndex:0,data:[],gl:b}),a.dirty=!1;var d;if(a.clearDirty){for(a.clearDirty=!1,d=0;d=6)if(h.points.length<2*this.maximumSimplePolySize){f=this.switchMode(c,0);var i=this.buildPoly(h,f);i||(f=this.switchMode(c,1),this.buildComplexPoly(h,f))}else f=this.switchMode(c,1),this.buildComplexPoly(h,f);h.lineWidth>0&&(f=this.switchMode(c,0),this.buildLine(h,f))}else f=this.switchMode(c,0),h.type===g.SHAPES.RECT?this.buildRectangle(h,f):h.type===g.SHAPES.CIRC||h.type===g.SHAPES.ELIP?this.buildCircle(h,f):h.type===g.SHAPES.RREC&&this.buildRoundedRectangle(h,f);c.lastIndex++}for(d=0;d32e4||c.mode!==b||1===b)&&(c=this.graphicsDataPool.pop()||new j(a.gl),c.mode=b,a.data.push(c))):(c=this.graphicsDataPool.pop()||new j(a.gl),c.mode=b,a.data.push(c)),c.dirty=!0,c},d.prototype.buildRectangle=function(a,b){var c=a.shape,d=c.x,f=c.y,g=c.width,h=c.height;if(a.fill){var i=e.hex2rgb(a.fillColor),j=a.fillAlpha,k=i[0]*j,l=i[1]*j,m=i[2]*j,n=b.points,o=b.indices,p=n.length/6;n.push(d,f),n.push(k,l,m,j),n.push(d+g,f),n.push(k,l,m,j),n.push(d,f+h),n.push(k,l,m,j),n.push(d+g,f+h),n.push(k,l,m,j),o.push(p,p,p+1,p+2,p+3,p+3)}if(a.lineWidth){var q=a.points;a.points=[d,f,d+g,f,d+g,f+h,d,f+h,d,f],this.buildLine(a,b),a.points=q}},d.prototype.buildRoundedRectangle=function(a,b){var c=a.shape,d=c.x,f=c.y,g=c.width,h=c.height,i=c.radius,j=[];if(j.push(d,f+i),this.quadraticBezierCurve(d,f+h-i,d,f+h,d+i,f+h,j),this.quadraticBezierCurve(d+g-i,f+h,d+g,f+h,d+g,f+h-i,j),this.quadraticBezierCurve(d+g,f+i,d+g,f,d+g-i,f,j),this.quadraticBezierCurve(d+i,f,d,f,d,f+i+1e-10,j),a.fill){var l=e.hex2rgb(a.fillColor),m=a.fillAlpha,n=l[0]*m,o=l[1]*m,p=l[2]*m,q=b.points,r=b.indices,s=q.length/6,t=k(j,null,2),u=0;for(u=0;u=r;r++)q=r/o,i=h(a,c,q),j=h(b,d,q),k=h(c,e,q),l=h(d,f,q),m=h(i,k,q),n=h(j,l,q),p.push(m,n);return p},d.prototype.buildCircle=function(a,b){var c,d,f=a.shape,h=f.x,i=f.y;a.type===g.SHAPES.CIRC?(c=f.radius,d=f.radius):(c=f.width,d=f.height);var j=Math.floor(30*Math.sqrt(f.radius))||Math.floor(15*Math.sqrt(f.width+f.height)),k=2*Math.PI/j,l=0;if(a.fill){var m=e.hex2rgb(a.fillColor),n=a.fillAlpha,o=m[0]*n,p=m[1]*n,q=m[2]*n,r=b.points,s=b.indices,t=r.length/6;for(s.push(t),l=0;j+1>l;l++)r.push(h,i,o,p,q,n),r.push(h+Math.sin(k*l)*c,i+Math.cos(k*l)*d,o,p,q,n),s.push(t++,t++);s.push(t-1)}if(a.lineWidth){var u=a.points;for(a.points=[],l=0;j+1>l;l++)a.points.push(h+Math.sin(k*l)*c,i+Math.cos(k*l)*d);this.buildLine(a,b),a.points=u}},d.prototype.buildLine=function(a,b){var c=0,d=a.points;if(0!==d.length){var g=new f.Point(d[0],d[1]),h=new f.Point(d[d.length-2],d[d.length-1]);if(g.x===h.x&&g.y===h.y){d=d.slice(),d.pop(),d.pop(),h=new f.Point(d[d.length-2],d[d.length-1]);var i=h.x+.5*(g.x-h.x),j=h.y+.5*(g.y-h.y);d.unshift(i,j),d.push(i,j)}var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H=b.points,I=b.indices,J=d.length/2,K=d.length,L=H.length/6,M=a.lineWidth/2,N=e.hex2rgb(a.lineColor),O=a.lineAlpha,P=N[0]*O,Q=N[1]*O,R=N[2]*O;for(m=d[0],n=d[1],o=d[2],p=d[3],s=-(n-p),t=m-o,G=Math.sqrt(s*s+t*t),s/=G,t/=G,s*=M,t*=M,H.push(m-s,n-t,P,Q,R,O),H.push(m+s,n+t,P,Q,R,O),c=1;J-1>c;c++)m=d[2*(c-1)],n=d[2*(c-1)+1],o=d[2*c],p=d[2*c+1],q=d[2*(c+1)],r=d[2*(c+1)+1],s=-(n-p),t=m-o,G=Math.sqrt(s*s+t*t),s/=G,t/=G,s*=M,t*=M,u=-(p-r),v=o-q,G=Math.sqrt(u*u+v*v),u/=G,v/=G,u*=M,v*=M,y=-t+n-(-t+p),z=-s+o-(-s+m),A=(-s+m)*(-t+p)-(-s+o)*(-t+n),B=-v+r-(-v+p),C=-u+o-(-u+q),D=(-u+q)*(-v+p)-(-u+o)*(-v+r),E=y*C-B*z,Math.abs(E)<.1?(E+=10.1,H.push(o-s,p-t,P,Q,R,O),H.push(o+s,p+t,P,Q,R,O)):(k=(z*D-C*A)/E,l=(B*A-y*D)/E,F=(k-o)*(k-o)+(l-p)*(l-p),F>19600?(w=s-u,x=t-v,G=Math.sqrt(w*w+x*x),w/=G,x/=G,w*=M,x*=M,H.push(o-w,p-x),H.push(P,Q,R,O),H.push(o+w,p+x),H.push(P,Q,R,O),H.push(o-w,p-x),H.push(P,Q,R,O),K++):(H.push(k,l),H.push(P,Q,R,O),H.push(o-(k-o),p-(l-p)),H.push(P,Q,R,O)));for(m=d[2*(J-2)],n=d[2*(J-2)+1],o=d[2*(J-1)],p=d[2*(J-1)+1],s=-(n-p),t=m-o,G=Math.sqrt(s*s+t*t),s/=G,t/=G,s*=M,t*=M,H.push(o-s,p-t),H.push(P,Q,R,O),H.push(o+s,p+t),H.push(P,Q,R,O),I.push(L),c=0;K>c;c++)I.push(L++);I.push(L-1)}},d.prototype.buildComplexPoly=function(a,b){var c=a.points.slice();if(!(c.length<6)){var d=b.indices;b.points=c,b.alpha=a.fillAlpha,b.color=e.hex2rgb(a.fillColor);for(var f,g,h=1/0,i=-(1/0),j=1/0,k=-(1/0),l=0;lf?f:h,i=f>i?f:i,j=j>g?g:j,k=g>k?g:k;c.push(h,j,i,j,i,k,h,k);var m=c.length/2;for(l=0;m>l;l++)d.push(l)}},d.prototype.buildPoly=function(a,b){var c=a.points;if(!(c.length<6)){var d=b.points,f=b.indices,g=c.length/2,h=e.hex2rgb(a.fillColor),i=a.fillAlpha,j=h[0]*i,l=h[1]*i,m=h[2]*i,n=k(c,null,2);if(!n)return!1;var o=d.length/6,p=0;for(p=0;pp;p++)d.push(c[2*p],c[2*p+1],j,l,m,i);return!0}}},{"../../const":22,"../../math":33,"../../renderers/webgl/WebGLRenderer":49,"../../renderers/webgl/utils/ObjectRenderer":63,"../../utils":77,"./WebGLGraphicsData":28,earcut:9}],28:[function(a,b,c){function d(a){this.gl=a,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=a.createBuffer(),this.indexBuffer=a.createBuffer(),this.mode=1,this.alpha=1,this.dirty=!0,this.glPoints=null,this.glIndices=null}d.prototype.constructor=d,b.exports=d,d.prototype.reset=function(){this.points.length=0,this.indices.length=0},d.prototype.upload=function(){var a=this.gl;this.glPoints=new Float32Array(this.points),a.bindBuffer(a.ARRAY_BUFFER,this.buffer),a.bufferData(a.ARRAY_BUFFER,this.glPoints,a.STATIC_DRAW),this.glIndices=new Uint16Array(this.indices),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.glIndices,a.STATIC_DRAW),this.dirty=!1},d.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.gl.deleteBuffer(this.buffer),this.gl.deleteBuffer(this.indexBuffer),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null}},{}],29:[function(a,b,c){var d=b.exports=Object.assign(a("./const"),a("./math"),{utils:a("./utils"),ticker:a("./ticker"),DisplayObject:a("./display/DisplayObject"),Container:a("./display/Container"),Sprite:a("./sprites/Sprite"),ParticleContainer:a("./particles/ParticleContainer"),SpriteRenderer:a("./sprites/webgl/SpriteRenderer"),ParticleRenderer:a("./particles/webgl/ParticleRenderer"),Text:a("./text/Text"),Graphics:a("./graphics/Graphics"),GraphicsData:a("./graphics/GraphicsData"),GraphicsRenderer:a("./graphics/webgl/GraphicsRenderer"),Texture:a("./textures/Texture"),BaseTexture:a("./textures/BaseTexture"),RenderTexture:a("./textures/RenderTexture"),VideoBaseTexture:a("./textures/VideoBaseTexture"),TextureUvs:a("./textures/TextureUvs"),CanvasRenderer:a("./renderers/canvas/CanvasRenderer"),CanvasGraphics:a("./renderers/canvas/utils/CanvasGraphics"),CanvasBuffer:a("./renderers/canvas/utils/CanvasBuffer"),WebGLRenderer:a("./renderers/webgl/WebGLRenderer"),WebGLManager:a("./renderers/webgl/managers/WebGLManager"),ShaderManager:a("./renderers/webgl/managers/ShaderManager"),Shader:a("./renderers/webgl/shaders/Shader"),TextureShader:a("./renderers/webgl/shaders/TextureShader"),PrimitiveShader:a("./renderers/webgl/shaders/PrimitiveShader"),ComplexPrimitiveShader:a("./renderers/webgl/shaders/ComplexPrimitiveShader"),ObjectRenderer:a("./renderers/webgl/utils/ObjectRenderer"),RenderTarget:a("./renderers/webgl/utils/RenderTarget"),AbstractFilter:a("./renderers/webgl/filters/AbstractFilter"),FXAAFilter:a("./renderers/webgl/filters/FXAAFilter"),SpriteMaskFilter:a("./renderers/webgl/filters/SpriteMaskFilter"),autoDetectRenderer:function(a,b,c,e){return a=a||800,b=b||600,!e&&d.utils.isWebGLSupported()?new d.WebGLRenderer(a,b,c):new d.CanvasRenderer(a,b,c)}})},{"./const":22,"./display/Container":23,"./display/DisplayObject":24,"./graphics/Graphics":25,"./graphics/GraphicsData":26,"./graphics/webgl/GraphicsRenderer":27,"./math":33,"./particles/ParticleContainer":39,"./particles/webgl/ParticleRenderer":41,"./renderers/canvas/CanvasRenderer":44,"./renderers/canvas/utils/CanvasBuffer":45,"./renderers/canvas/utils/CanvasGraphics":46,"./renderers/webgl/WebGLRenderer":49,"./renderers/webgl/filters/AbstractFilter":50,"./renderers/webgl/filters/FXAAFilter":51,"./renderers/webgl/filters/SpriteMaskFilter":52,"./renderers/webgl/managers/ShaderManager":56,"./renderers/webgl/managers/WebGLManager":58,"./renderers/webgl/shaders/ComplexPrimitiveShader":59,"./renderers/webgl/shaders/PrimitiveShader":60,"./renderers/webgl/shaders/Shader":61,"./renderers/webgl/shaders/TextureShader":62,"./renderers/webgl/utils/ObjectRenderer":63,"./renderers/webgl/utils/RenderTarget":65,"./sprites/Sprite":67,"./sprites/webgl/SpriteRenderer":68,"./text/Text":69,"./textures/BaseTexture":70,"./textures/RenderTexture":71,"./textures/Texture":72,"./textures/TextureUvs":73,"./textures/VideoBaseTexture":74,"./ticker":76,"./utils":77}],30:[function(a,b,c){function d(a){return 0>a?-1:a>0?1:0}function e(){for(var a=0;16>a;a++){var b=[];l.push(b);for(var c=0;16>c;c++)for(var e=d(f[a]*f[c]+h[a]*g[c]),m=d(g[a]*f[c]+i[a]*g[c]),n=d(f[a]*h[c]+h[a]*i[c]),o=d(g[a]*h[c]+i[a]*i[c]),p=0;16>p;p++)if(f[p]===e&&g[p]===m&&h[p]===n&&i[p]===o){b.push(p);break}}for(a=0;16>a;a++){var q=new k;q.set(f[a],g[a],h[a],i[a],0,0),j.push(q)}}var f=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],g=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],h=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],i=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],j=[],k=a("./Matrix"),l=[];e();var m={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(a){return f[a]},uY:function(a){return g[a]},vX:function(a){return h[a]},vY:function(a){return i[a]},inv:function(a){return 8&a?15&a:7&-a},add:function(a,b){return l[a][b]},sub:function(a,b){return l[a][m.inv(b)]},rotate180:function(a){return 4^a},isSwapWidthHeight:function(a){return 2===(3&a)},byDirection:function(a,b){return 2*Math.abs(a)<=Math.abs(b)?b>=0?m.S:m.N:2*Math.abs(b)<=Math.abs(a)?a>0?m.E:m.W:b>0?a>0?m.SE:m.SW:a>0?m.NE:m.NW},matrixAppendRotationInv:function(a,b,c,d){var e=j[m.inv(b)];c=c||0,d=d||0,e.tx=c,e.ty=d,a.append(e)}};b.exports=m},{"./Matrix":31}],31:[function(a,b,c){function d(){this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0}var e=a("./Point");d.prototype.constructor=d,b.exports=d,d.prototype.fromArray=function(a){this.a=a[0],this.b=a[1],this.c=a[3],this.d=a[4],this.tx=a[2],this.ty=a[5]},d.prototype.set=function(a,b,c,d,e,f){return this.a=a,this.b=b,this.c=c,this.d=d,this.tx=e,this.ty=f,this},d.prototype.toArray=function(a,b){this.array||(this.array=new Float32Array(9));var c=b||this.array;return a?(c[0]=this.a,c[1]=this.b,c[2]=0,c[3]=this.c,c[4]=this.d,c[5]=0,c[6]=this.tx,c[7]=this.ty,c[8]=1):(c[0]=this.a,c[1]=this.c,c[2]=this.tx,c[3]=this.b,c[4]=this.d,c[5]=this.ty,c[6]=0,c[7]=0,c[8]=1),c},d.prototype.apply=function(a,b){b=b||new e;var c=a.x,d=a.y;return b.x=this.a*c+this.c*d+this.tx,b.y=this.b*c+this.d*d+this.ty,b},d.prototype.applyInverse=function(a,b){b=b||new e;var c=1/(this.a*this.d+this.c*-this.b),d=a.x,f=a.y;return b.x=this.d*c*d+-this.c*c*f+(this.ty*this.c-this.tx*this.d)*c,b.y=this.a*c*f+-this.b*c*d+(-this.ty*this.a+this.tx*this.b)*c,b},d.prototype.translate=function(a,b){return this.tx+=a,this.ty+=b,this},d.prototype.scale=function(a,b){return this.a*=a,this.d*=b,this.c*=a,this.b*=b,this.tx*=a,this.ty*=b,this},d.prototype.rotate=function(a){var b=Math.cos(a),c=Math.sin(a),d=this.a,e=this.c,f=this.tx;return this.a=d*b-this.b*c,this.b=d*c+this.b*b,this.c=e*b-this.d*c,this.d=e*c+this.d*b,this.tx=f*b-this.ty*c,this.ty=f*c+this.ty*b,this},d.prototype.append=function(a){var b=this.a,c=this.b,d=this.c,e=this.d;return this.a=a.a*b+a.b*d,this.b=a.a*c+a.b*e,this.c=a.c*b+a.d*d,this.d=a.c*c+a.d*e,this.tx=a.tx*b+a.ty*d+this.tx,this.ty=a.tx*c+a.ty*e+this.ty,this},d.prototype.setTransform=function(a,b,c,d,e,f,g,h,i){var j,k,l,m,n,o,p,q,r,s;return n=Math.sin(g),o=Math.cos(g),p=Math.cos(i),q=Math.sin(i),r=-Math.sin(h),s=Math.cos(h),j=o*e,k=n*e,l=-n*f,m=o*f,this.a=p*j+q*l,this.b=p*k+q*m,this.c=r*j+s*l,this.d=r*k+s*m,this.tx=a+(c*j+d*l),this.ty=b+(c*k+d*m),this},d.prototype.prepend=function(a){var b=this.tx;if(1!==a.a||0!==a.b||0!==a.c||1!==a.d){var c=this.a,d=this.c;this.a=c*a.a+this.b*a.c,this.b=c*a.b+this.b*a.d,this.c=d*a.a+this.d*a.c,this.d=d*a.b+this.d*a.d}return this.tx=b*a.a+this.ty*a.c+a.tx,this.ty=b*a.b+this.ty*a.d+a.ty,this},d.prototype.invert=function(){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.tx,f=a*d-b*c;return this.a=d/f,this.b=-b/f,this.c=-c/f,this.d=a/f,this.tx=(c*this.ty-d*e)/f,this.ty=-(a*this.ty-b*e)/f,this},d.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},d.prototype.clone=function(){var a=new d;return a.a=this.a,a.b=this.b,a.c=this.c,a.d=this.d,a.tx=this.tx,a.ty=this.ty,a},d.prototype.copy=function(a){return a.a=this.a,a.b=this.b,a.c=this.c,a.d=this.d,a.tx=this.tx,a.ty=this.ty,a},d.IDENTITY=new d,d.TEMP_MATRIX=new d},{"./Point":32}],32:[function(a,b,c){function d(a,b){this.x=a||0,this.y=b||0}d.prototype.constructor=d,b.exports=d,d.prototype.clone=function(){return new d(this.x,this.y)},d.prototype.copy=function(a){this.set(a.x,a.y)},d.prototype.equals=function(a){return a.x===this.x&&a.y===this.y},d.prototype.set=function(a,b){this.x=a||0,this.y=b||(0!==b?this.x:0)}},{}],33:[function(a,b,c){b.exports={Point:a("./Point"),Matrix:a("./Matrix"),GroupD8:a("./GroupD8"),Circle:a("./shapes/Circle"),Ellipse:a("./shapes/Ellipse"),Polygon:a("./shapes/Polygon"),Rectangle:a("./shapes/Rectangle"),RoundedRectangle:a("./shapes/RoundedRectangle")}},{"./GroupD8":30,"./Matrix":31,"./Point":32,"./shapes/Circle":34,"./shapes/Ellipse":35,"./shapes/Polygon":36,"./shapes/Rectangle":37,"./shapes/RoundedRectangle":38}],34:[function(a,b,c){function d(a,b,c){this.x=a||0,this.y=b||0,this.radius=c||0,this.type=f.SHAPES.CIRC}var e=a("./Rectangle"),f=a("../../const");d.prototype.constructor=d,b.exports=d,d.prototype.clone=function(){return new d(this.x,this.y,this.radius)},d.prototype.contains=function(a,b){if(this.radius<=0)return!1;var c=this.x-a,d=this.y-b,e=this.radius*this.radius;return c*=c,d*=d,e>=c+d},d.prototype.getBounds=function(){return new e(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}},{"../../const":22,"./Rectangle":37}],35:[function(a,b,c){function d(a,b,c,d){this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0,this.type=f.SHAPES.ELIP}var e=a("./Rectangle"),f=a("../../const");d.prototype.constructor=d,b.exports=d,d.prototype.clone=function(){return new d(this.x,this.y,this.width,this.height)},d.prototype.contains=function(a,b){if(this.width<=0||this.height<=0)return!1;var c=(a-this.x)/this.width,d=(b-this.y)/this.height;return c*=c,d*=d,1>=c+d},d.prototype.getBounds=function(){return new e(this.x-this.width,this.y-this.height,this.width,this.height)}},{"../../const":22,"./Rectangle":37}],36:[function(a,b,c){function d(a){var b=a;if(!Array.isArray(b)){b=new Array(arguments.length);for(var c=0;cg;g++)d.push(b[g].x,b[g].y);b=d}this.closed=!0,this.points=b,this.type=f.SHAPES.POLY}var e=a("../Point"),f=a("../../const");d.prototype.constructor=d,b.exports=d,d.prototype.clone=function(){return new d(this.points.slice())},d.prototype.contains=function(a,b){for(var c=!1,d=this.points.length/2,e=0,f=d-1;d>e;f=e++){var g=this.points[2*e],h=this.points[2*e+1],i=this.points[2*f],j=this.points[2*f+1],k=h>b!=j>b&&(i-g)*(b-h)/(j-h)+g>a;k&&(c=!c)}return c}},{"../../const":22,"../Point":32}],37:[function(a,b,c){function d(a,b,c,d){this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0,this.type=e.SHAPES.RECT}var e=a("../../const");d.prototype.constructor=d,b.exports=d,d.EMPTY=new d(0,0,0,0),d.prototype.clone=function(){return new d(this.x,this.y,this.width,this.height)},d.prototype.contains=function(a,b){return this.width<=0||this.height<=0?!1:a>=this.x&&a=this.y&&b=this.x&&a<=this.x+this.width&&b>=this.y&&b<=this.y+this.height}},{"../../const":22}],39:[function(a,b,c){function d(a,b,c){e.call(this),c=c||15e3,a=a||15e3;var d=16384;c>d&&(c=d),c>a&&(c=a),this._properties=[!1,!0,!1,!1,!1],this._maxSize=a,this._batchSize=c,this._buffers=null,this._bufferToUpdate=0,this.interactiveChildren=!1,this.blendMode=f.BLEND_MODES.NORMAL,this.roundPixels=!0,this.setProperties(b)}var e=a("../display/Container"),f=a("../const");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.setProperties=function(a){a&&(this._properties[0]="scale"in a?!!a.scale:this._properties[0],this._properties[1]="position"in a?!!a.position:this._properties[1],this._properties[2]="rotation"in a?!!a.rotation:this._properties[2],this._properties[3]="uvs"in a?!!a.uvs:this._properties[3],this._properties[4]="alpha"in a?!!a.alpha:this._properties[4])},d.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},d.prototype.renderWebGL=function(a){this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(a.setObjectRenderer(a.plugins.particle),a.plugins.particle.render(this))},d.prototype.onChildrenChange=function(a){var b=Math.floor(a/this._batchSize);bc;c+=6,d+=4)this.indices[c+0]=d+0,this.indices[c+1]=d+1,this.indices[c+2]=d+2,this.indices[c+3]=d+0,this.indices[c+4]=d+2,this.indices[c+5]=d+3;this.shader=null,this.indexBuffer=null,this.properties=null,this.tempMatrix=new i.Matrix}var e=a("../../renderers/webgl/utils/ObjectRenderer"),f=a("../../renderers/webgl/WebGLRenderer"),g=a("./ParticleShader"),h=a("./ParticleBuffer"),i=a("../../math");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,f.registerPlugin("particle",d),d.prototype.onContextChange=function(){var a=this.renderer.gl;this.shader=new g(this.renderer.shaderManager),this.indexBuffer=a.createBuffer(),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,uploadFunction:this.uploadAlpha,offset:0}]},d.prototype.start=function(){var a=this.renderer.gl;a.activeTexture(a.TEXTURE0),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var b=this.shader;this.renderer.shaderManager.setShader(b)},d.prototype.render=function(a){var b=a.children,c=b.length,d=a._maxSize,e=a._batchSize;if(0!==c){c>d&&(c=d),a._buffers||(a._buffers=this.generateBuffers(a)),this.renderer.blendModeManager.setBlendMode(a.blendMode);var f=this.renderer.gl,g=a.worldTransform.copy(this.tempMatrix);g.prepend(this.renderer.currentRenderTarget.projectionMatrix),f.uniformMatrix3fv(this.shader.uniforms.projectionMatrix._location,!1,g.toArray(!0)),f.uniform1f(this.shader.uniforms.uAlpha._location,a.worldAlpha);var h=b[0]._texture.baseTexture;if(h._glTextures[f.id])f.bindTexture(f.TEXTURE_2D,h._glTextures[f.id]);else{if(!this.renderer.updateTexture(h))return;a._properties[0]&&a._properties[3]||(a._bufferToUpdate=0)}for(var i=0,j=0;c>i;i+=e,j+=1){var k=c-i;k>e&&(k=e);var l=a._buffers[j];l.uploadDynamic(b,i,k),a._bufferToUpdate===j&&(l.uploadStatic(b,i,k),a._bufferToUpdate=j+1),l.bind(this.shader),f.drawElements(f.TRIANGLES,6*k,f.UNSIGNED_SHORT,0),this.renderer.drawCount++}}},d.prototype.generateBuffers=function(a){var b,c=this.renderer.gl,d=[],e=a._maxSize,f=a._batchSize,g=a._properties;for(b=0;e>b;b+=f)d.push(new h(c,this.properties,g,f));return d},d.prototype.uploadVertices=function(a,b,c,d,e,f){for(var g,h,i,j,k,l,m,n,o,p=0;c>p;p++)g=a[b+p],h=g._texture,j=g.scale.x,k=g.scale.y,h.trim?(i=h.trim,m=i.x-g.anchor.x*i.width,l=m+h.crop.width,o=i.y-g.anchor.y*i.height,n=o+h.crop.height):(l=h._frame.width*(1-g.anchor.x),m=h._frame.width*-g.anchor.x,n=h._frame.height*(1-g.anchor.y),o=h._frame.height*-g.anchor.y),d[f]=m*j,d[f+1]=o*k,d[f+e]=l*j,d[f+e+1]=o*k,d[f+2*e]=l*j,d[f+2*e+1]=n*k,d[f+3*e]=m*j,d[f+3*e+1]=n*k,f+=4*e},d.prototype.uploadPosition=function(a,b,c,d,e,f){for(var g=0;c>g;g++){var h=a[b+g].position;d[f]=h.x,d[f+1]=h.y,d[f+e]=h.x,d[f+e+1]=h.y,d[f+2*e]=h.x,d[f+2*e+1]=h.y,d[f+3*e]=h.x,d[f+3*e+1]=h.y,f+=4*e}},d.prototype.uploadRotation=function(a,b,c,d,e,f){for(var g=0;c>g;g++){var h=a[b+g].rotation;d[f]=h,d[f+e]=h,d[f+2*e]=h,d[f+3*e]=h,f+=4*e}},d.prototype.uploadUvs=function(a,b,c,d,e,f){for(var g=0;c>g;g++){var h=a[b+g]._texture._uvs;h?(d[f]=h.x0,d[f+1]=h.y0,d[f+e]=h.x1,d[f+e+1]=h.y1,d[f+2*e]=h.x2,d[f+2*e+1]=h.y2,d[f+3*e]=h.x3,d[f+3*e+1]=h.y3,f+=4*e):(d[f]=0,d[f+1]=0,d[f+e]=0,d[f+e+1]=0,d[f+2*e]=0,d[f+2*e+1]=0,d[f+3*e]=0,d[f+3*e+1]=0,f+=4*e)}},d.prototype.uploadAlpha=function(a,b,c,d,e,f){for(var g=0;c>g;g++){var h=a[b+g].alpha;d[f]=h,d[f+e]=h,d[f+2*e]=h,d[f+3*e]=h,f+=4*e}},d.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),e.prototype.destroy.apply(this,arguments),this.shader.destroy(),this.indices=null,this.tempMatrix=null}},{"../../math":33,"../../renderers/webgl/WebGLRenderer":49,"../../renderers/webgl/utils/ObjectRenderer":63,"./ParticleBuffer":40,"./ParticleShader":42}],42:[function(a,b,c){function d(a){e.call(this,a,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying float vColor;","void main(void){"," vec2 v = aVertexPosition;"," v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"].join("\n"),["precision lowp float;","varying vec2 vTextureCoord;","varying float vColor;","uniform sampler2D uSampler;","uniform float uAlpha;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor * uAlpha;"," if (color.a == 0.0) discard;"," gl_FragColor = color;","}"].join("\n"),{uAlpha:{type:"1f",value:1}},{aPositionCoord:0,aRotation:0})}var e=a("../../renderers/webgl/shaders/TextureShader");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d},{"../../renderers/webgl/shaders/TextureShader":62}],43:[function(a,b,c){function d(a,b,c,d){if(h.call(this),e.sayHello(a),d)for(var i in g.DEFAULT_RENDER_OPTIONS)"undefined"==typeof d[i]&&(d[i]=g.DEFAULT_RENDER_OPTIONS[i]);else d=g.DEFAULT_RENDER_OPTIONS;this.type=g.RENDERER_TYPE.UNKNOWN,this.width=b||800,this.height=c||600,this.view=d.view||document.createElement("canvas"),this.resolution=d.resolution,this.transparent=d.transparent,this.autoResize=d.autoResize||!1,this.blendModes=null,this.preserveDrawingBuffer=d.preserveDrawingBuffer,this.clearBeforeRender=d.clearBeforeRender,this.roundPixels=d.roundPixels,this._backgroundColor=0,this._backgroundColorRgb=[0,0,0],this._backgroundColorString="#000000",this.backgroundColor=d.backgroundColor||this._backgroundColor,this._tempDisplayObjectParent={worldTransform:new f.Matrix,worldAlpha:1,children:[]},this._lastObjectRendered=this._tempDisplayObjectParent}var e=a("../utils"),f=a("../math"),g=a("../const"),h=a("eventemitter3");d.prototype=Object.create(h.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{backgroundColor:{get:function(){return this._backgroundColor},set:function(a){this._backgroundColor=a,this._backgroundColorString=e.hex2string(a),e.hex2rgb(a,this._backgroundColorRgb)}}}),d.prototype.resize=function(a,b){this.width=a*this.resolution,this.height=b*this.resolution,this.view.width=this.width,this.view.height=this.height,this.autoResize&&(this.view.style.width=this.width/this.resolution+"px",this.view.style.height=this.height/this.resolution+"px")},d.prototype.destroy=function(a){a&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=g.RENDERER_TYPE.UNKNOWN,this.width=0,this.height=0,this.view=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgb=null,this._backgroundColorString=null}},{"../const":22,"../math":33,"../utils":77,eventemitter3:10}],44:[function(a,b,c){function d(a,b,c){c=c||{},e.call(this,"Canvas",a,b,c),this.type=i.RENDERER_TYPE.CANVAS,this.context=this.view.getContext("2d",{alpha:this.transparent}),this.refresh=!0,this.maskManager=new f,this.smoothProperty="imageSmoothingEnabled",this.context.imageSmoothingEnabled||(this.context.webkitImageSmoothingEnabled?this.smoothProperty="webkitImageSmoothingEnabled":this.context.mozImageSmoothingEnabled?this.smoothProperty="mozImageSmoothingEnabled":this.context.oImageSmoothingEnabled?this.smoothProperty="oImageSmoothingEnabled":this.context.msImageSmoothingEnabled&&(this.smoothProperty="msImageSmoothingEnabled")),this.initPlugins(),this._mapBlendModes(),this._tempDisplayObjectParent={worldTransform:new h.Matrix,worldAlpha:1},this.resize(a,b)}var e=a("../SystemRenderer"),f=a("./utils/CanvasMaskManager"),g=a("../../utils"),h=a("../../math"),i=a("../../const");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,g.pluginTarget.mixin(d),d.prototype.render=function(a){this.emit("prerender");var b=a.parent;this._lastObjectRendered=a,a.parent=this._tempDisplayObjectParent,a.updateTransform(),a.parent=b,this.context.setTransform(1,0,0,1,0,0),this.context.globalAlpha=1,this.context.globalCompositeOperation=this.blendModes[i.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(this.context.fillStyle="black",this.context.clear()),this.clearBeforeRender&&(this.transparent?this.context.clearRect(0,0,this.width,this.height):(this.context.fillStyle=this._backgroundColorString,this.context.fillRect(0,0,this.width,this.height))),this.renderDisplayObject(a,this.context),this.emit("postrender")},d.prototype.destroy=function(a){this.destroyPlugins(),e.prototype.destroy.call(this,a),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},d.prototype.renderDisplayObject=function(a,b){var c=this.context;this.context=b,a.renderCanvas(this),this.context=c},d.prototype.resize=function(a,b){e.prototype.resize.call(this,a,b),this.smoothProperty&&(this.context[this.smoothProperty]=i.SCALE_MODES.DEFAULT===i.SCALE_MODES.LINEAR)},d.prototype._mapBlendModes=function(){this.blendModes||(this.blendModes={},g.canUseNewCanvasBlendModes()?(this.blendModes[i.BLEND_MODES.NORMAL]="source-over",this.blendModes[i.BLEND_MODES.ADD]="lighter",this.blendModes[i.BLEND_MODES.MULTIPLY]="multiply",this.blendModes[i.BLEND_MODES.SCREEN]="screen",this.blendModes[i.BLEND_MODES.OVERLAY]="overlay",this.blendModes[i.BLEND_MODES.DARKEN]="darken",this.blendModes[i.BLEND_MODES.LIGHTEN]="lighten",this.blendModes[i.BLEND_MODES.COLOR_DODGE]="color-dodge",this.blendModes[i.BLEND_MODES.COLOR_BURN]="color-burn",this.blendModes[i.BLEND_MODES.HARD_LIGHT]="hard-light",this.blendModes[i.BLEND_MODES.SOFT_LIGHT]="soft-light",this.blendModes[i.BLEND_MODES.DIFFERENCE]="difference",this.blendModes[i.BLEND_MODES.EXCLUSION]="exclusion",this.blendModes[i.BLEND_MODES.HUE]="hue",this.blendModes[i.BLEND_MODES.SATURATION]="saturate",this.blendModes[i.BLEND_MODES.COLOR]="color",this.blendModes[i.BLEND_MODES.LUMINOSITY]="luminosity"):(this.blendModes[i.BLEND_MODES.NORMAL]="source-over",this.blendModes[i.BLEND_MODES.ADD]="lighter",this.blendModes[i.BLEND_MODES.MULTIPLY]="source-over",this.blendModes[i.BLEND_MODES.SCREEN]="source-over",this.blendModes[i.BLEND_MODES.OVERLAY]="source-over",this.blendModes[i.BLEND_MODES.DARKEN]="source-over",this.blendModes[i.BLEND_MODES.LIGHTEN]="source-over",this.blendModes[i.BLEND_MODES.COLOR_DODGE]="source-over",this.blendModes[i.BLEND_MODES.COLOR_BURN]="source-over",this.blendModes[i.BLEND_MODES.HARD_LIGHT]="source-over",this.blendModes[i.BLEND_MODES.SOFT_LIGHT]="source-over",this.blendModes[i.BLEND_MODES.DIFFERENCE]="source-over",this.blendModes[i.BLEND_MODES.EXCLUSION]="source-over",this.blendModes[i.BLEND_MODES.HUE]="source-over",this.blendModes[i.BLEND_MODES.SATURATION]="source-over",this.blendModes[i.BLEND_MODES.COLOR]="source-over",this.blendModes[i.BLEND_MODES.LUMINOSITY]="source-over"))}},{"../../const":22,"../../math":33,"../../utils":77,"../SystemRenderer":43,"./utils/CanvasMaskManager":47}],45:[function(a,b,c){function d(a,b){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.canvas.width=a,this.canvas.height=b}d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{width:{get:function(){return this.canvas.width},set:function(a){this.canvas.width=a}},height:{get:function(){return this.canvas.height},set:function(a){this.canvas.height=a}}}),d.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},d.prototype.resize=function(a,b){this.canvas.width=a,this.canvas.height=b},d.prototype.destroy=function(){this.context=null,this.canvas=null}},{}],46:[function(a,b,c){var d=a("../../../const"),e={};b.exports=e,e.renderGraphics=function(a,b){var c=a.worldAlpha;a.dirty&&(this.updateGraphicsTint(a),a.dirty=!1);for(var e=0;eB?B:A,b.beginPath(),b.moveTo(w,x+A),b.lineTo(w,x+z-A),b.quadraticCurveTo(w,x+z,w+A,x+z),b.lineTo(w+y-A,x+z),b.quadraticCurveTo(w+y,x+z,w+y,x+z-A),b.lineTo(w+y,x+A),b.quadraticCurveTo(w+y,x,w+y-A,x),b.lineTo(w+A,x),b.quadraticCurveTo(w,x,w,x+A),b.closePath(),(f.fillColor||0===f.fillColor)&&(b.globalAlpha=f.fillAlpha*c,b.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),b.fill()),f.lineWidth&&(b.globalAlpha=f.lineAlpha*c,b.strokeStyle="#"+("00000"+(0|i).toString(16)).substr(-6),b.stroke())}}},e.renderGraphicsMask=function(a,b){var c=a.graphicsData.length;if(0!==c){b.beginPath();for(var e=0;c>e;e++){var f=a.graphicsData[e],g=f.shape;if(f.type===d.SHAPES.POLY){var h=g.points;b.moveTo(h[0],h[1]);for(var i=1;iz?z:y,b.moveTo(u,v+y),b.lineTo(u,v+x-y),b.quadraticCurveTo(u,v+x,u+y,v+x),b.lineTo(u+w-y,v+x),b.quadraticCurveTo(u+w,v+x,u+w,v+x-y),b.lineTo(u+w,v+y),b.quadraticCurveTo(u+w,v,u+w-y,v),b.lineTo(u+y,v),b.quadraticCurveTo(u,v,u,v+y),b.closePath()}}}},e.updateGraphicsTint=function(a){if(16777215!==a.tint||a._prevTint!==a.tint){a._prevTint=a.tint;for(var b=(a.tint>>16&255)/255,c=(a.tint>>8&255)/255,d=(255&a.tint)/255,e=0;e>16&255)/255*b*255<<16)+((g>>8&255)/255*c*255<<8)+(255&g)/255*d*255,f._lineTint=((h>>16&255)/255*b*255<<16)+((h>>8&255)/255*c*255<<8)+(255&h)/255*d*255}}}},{"../../../const":22}],47:[function(a,b,c){function d(){}var e=a("./CanvasGraphics");d.prototype.constructor=d,b.exports=d,d.prototype.pushMask=function(a,b){b.context.save();var c=a.alpha,d=a.worldTransform,f=b.resolution;b.context.setTransform(d.a*f,d.b*f,d.c*f,d.d*f,d.tx*f,d.ty*f),a.texture||(e.renderGraphicsMask(a,b.context),b.context.clip()),a.worldAlpha=c},d.prototype.popMask=function(a){a.context.restore()},d.prototype.destroy=function(){}},{"./CanvasGraphics":46}],48:[function(a,b,c){var d=a("../../../utils"),e={};b.exports=e,e.getTintedTexture=function(a,b){var c=a.texture;b=e.roundColor(b);var d="#"+("00000"+(0|b).toString(16)).substr(-6);if(c.tintCache=c.tintCache||{},c.tintCache[d])return c.tintCache[d];var f=e.canvas||document.createElement("canvas");if(e.tintMethod(c,b,f),e.convertTintToImage){var g=new Image;g.src=f.toDataURL(),c.tintCache[d]=g}else c.tintCache[d]=f,e.canvas=null;return f},e.tintWithMultiply=function(a,b,c){var d=c.getContext("2d"),e=a.baseTexture.resolution,f=a.crop.clone();f.x*=e,f.y*=e,f.width*=e,f.height*=e,c.width=f.width,c.height=f.height,d.fillStyle="#"+("00000"+(0|b).toString(16)).substr(-6),d.fillRect(0,0,f.width,f.height),d.globalCompositeOperation="multiply",d.drawImage(a.baseTexture.source,f.x,f.y,f.width,f.height,0,0,f.width,f.height),d.globalCompositeOperation="destination-atop",d.drawImage(a.baseTexture.source,f.x,f.y,f.width,f.height,0,0,f.width,f.height)},e.tintWithOverlay=function(a,b,c){var d=c.getContext("2d"),e=a.baseTexture.resolution,f=a.crop.clone();f.x*=e,f.y*=e,f.width*=e,f.height*=e,c.width=f.width,c.height=f.height,d.globalCompositeOperation="copy",d.fillStyle="#"+("00000"+(0|b).toString(16)).substr(-6),d.fillRect(0,0,f.width,f.height),d.globalCompositeOperation="destination-atop",d.drawImage(a.baseTexture.source,f.x,f.y,f.width,f.height,0,0,f.width,f.height)},e.tintWithPerPixel=function(a,b,c){var e=c.getContext("2d"),f=a.baseTexture.resolution,g=a.crop.clone();g.x*=f,g.y*=f,g.width*=f,g.height*=f,c.width=g.width,c.height=g.height,e.globalCompositeOperation="copy",e.drawImage(a.baseTexture.source,g.x,g.y,g.width,g.height,0,0,g.width,g.height);for(var h=d.hex2rgb(b),i=h[0],j=h[1],k=h[2],l=e.getImageData(0,0,g.width,g.height),m=l.data,n=0;nb;++b)this.shaders[b].syncUniform(a)}},{"../shaders/TextureShader":62}],51:[function(a,b,c){function d(){e.call(this,"\nprecision mediump float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform vec2 resolution;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvarying vec2 vResolution;\n\n//texcoords computed in vertex step\n//to avoid dependent texture reads\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n vResolution = resolution;\n\n //compute the texture coords and send them to varyings\n texcoords(aTextureCoord * resolution, resolution, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'precision lowp float;\n\n\n/**\nBasic FXAA implementation based on the code on geeks3d.com with the\nmodification that the texture2DLod stuff was removed since it\'s\nunsupported by WebGL.\n\n--\n\nFrom:\nhttps://github.com/mitsuhiko/webgl-meincraft\n\nCopyright (c) 2011 by Armin Ronacher.\n\nSome rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef FXAA_REDUCE_MIN\n #define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n #define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n #define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vResolution;\n\n//texcoords computed in vertex step\n//to avoid dependent texture reads\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform sampler2D uSampler;\n\n\nvoid main(void){\n\n gl_FragColor = fxaa(uSampler, vTextureCoord * vResolution, vResolution, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n}\n',{ resolution:{type:"v2",value:{x:1,y:1}}})}var e=a("./AbstractFilter");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c){var d=a.filterManager,e=this.getShader(a);d.applyFilter(e,b,c)}},{"./AbstractFilter":50}],52:[function(a,b,c){function d(a){var b=new f.Matrix;e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform sampler2D mask;\n\nvoid main(void)\n{\n // check clip! this will stop the mask bleeding out from the edges\n vec2 text = abs( vMaskCoord - 0.5 );\n text = step(0.5, text);\n float clip = 1.0 - max(text.y, text.x);\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n original *= (masky.r * masky.a * alpha * clip);\n gl_FragColor = original;\n}\n",{mask:{type:"sampler2D",value:a._texture},alpha:{type:"f",value:1},otherMatrix:{type:"mat3",value:b.toArray(!0)}}),this.maskSprite=a,this.maskMatrix=b}var e=a("./AbstractFilter"),f=a("../../../math");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c){var d=a.filterManager;this.uniforms.mask.value=this.maskSprite._texture,d.calculateMappedMatrix(b.frame,this.maskSprite,this.maskMatrix),this.uniforms.otherMatrix.value=this.maskMatrix.toArray(!0),this.uniforms.alpha.value=this.maskSprite.worldAlpha;var e=this.getShader(a);d.applyFilter(e,b,c)},Object.defineProperties(d.prototype,{map:{get:function(){return this.uniforms.mask.value},set:function(a){this.uniforms.mask.value=a}},offset:{get:function(){return this.uniforms.offset.value},set:function(a){this.uniforms.offset.value=a}}})},{"../../../math":33,"./AbstractFilter":50}],53:[function(a,b,c){function d(a){e.call(this,a),this.currentBlendMode=99999}var e=a("./WebGLManager");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.setBlendMode=function(a){if(this.currentBlendMode===a)return!1;this.currentBlendMode=a;var b=this.renderer.blendModes[this.currentBlendMode];return this.renderer.gl.blendFunc(b[0],b[1]),!0}},{"./WebGLManager":58}],54:[function(a,b,c){function d(a){e.call(this,a),this.filterStack=[],this.filterStack.push({renderTarget:a.currentRenderTarget,filter:[],bounds:null}),this.texturePool=[],this.textureSize=new i.Rectangle(0,0,a.width,a.height),this.currentFrame=null}var e=a("./WebGLManager"),f=a("../utils/RenderTarget"),g=a("../../../const"),h=a("../utils/Quad"),i=a("../../../math");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.onContextChange=function(){this.texturePool.length=0;var a=this.renderer.gl;this.quad=new h(a)},d.prototype.setFilterStack=function(a){this.filterStack=a},d.prototype.pushFilter=function(a,b){var c=a.filterArea?a.filterArea.clone():a.getBounds();c.x=0|c.x,c.y=0|c.y,c.width=0|c.width,c.height=0|c.height;var d=0|b[0].padding;if(c.x-=d,c.y-=d,c.width+=2*d,c.height+=2*d,this.renderer.currentRenderTarget.transform){var e=this.renderer.currentRenderTarget.transform;c.x+=e.tx,c.y+=e.ty,this.capFilterArea(c),c.x-=e.tx,c.y-=e.ty}else this.capFilterArea(c);if(c.width>0&&c.height>0){this.currentFrame=c;var f=this.getRenderTarget();this.renderer.setRenderTarget(f),f.clear(),this.filterStack.push({renderTarget:f,filter:b})}else this.filterStack.push({renderTarget:null,filter:b})},d.prototype.popFilter=function(){var a=this.filterStack.pop(),b=this.filterStack[this.filterStack.length-1],c=a.renderTarget;if(a.renderTarget){var d=b.renderTarget,e=this.renderer.gl;this.currentFrame=c.frame,this.quad.map(this.textureSize,c.frame),e.bindBuffer(e.ARRAY_BUFFER,this.quad.vertexBuffer),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.quad.indexBuffer);var f=a.filter;if(e.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aVertexPosition,2,e.FLOAT,!1,0,0),e.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aTextureCoord,2,e.FLOAT,!1,0,32),e.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aColor,4,e.FLOAT,!1,0,64),this.renderer.blendModeManager.setBlendMode(g.BLEND_MODES.NORMAL),1===f.length)f[0].uniforms.dimensions&&(f[0].uniforms.dimensions.value[0]=this.renderer.width,f[0].uniforms.dimensions.value[1]=this.renderer.height,f[0].uniforms.dimensions.value[2]=this.quad.vertices[0],f[0].uniforms.dimensions.value[3]=this.quad.vertices[5]),f[0].applyFilter(this.renderer,c,d),this.returnRenderTarget(c);else{for(var h=c,i=this.getRenderTarget(!0),j=0;jthis.textureSize.width&&(a.width=this.textureSize.width-a.x),a.y+a.height>this.textureSize.height&&(a.height=this.textureSize.height-a.y)},d.prototype.resize=function(a,b){this.textureSize.width=a,this.textureSize.height=b;for(var c=0;cb;++b)a._array[2*b]=f[b].x,a._array[2*b+1]=f[b].y;g.uniform2fv(d,a._array);break;case"v3v":for(a._array||(a._array=new Float32Array(3*f.length)),b=0,c=f.length;c>b;++b)a._array[3*b]=f[b].x,a._array[3*b+1]=f[b].y,a._array[3*b+2]=f[b].z;g.uniform3fv(d,a._array);break;case"v4v":for(a._array||(a._array=new Float32Array(4*f.length)),b=0,c=f.length;c>b;++b)a._array[4*b]=f[b].x,a._array[4*b+1]=f[b].y,a._array[4*b+2]=f[b].z,a._array[4*b+3]=f[b].w;g.uniform4fv(d,a._array);break;case"t":case"sampler2D":if(!a.value||!a.value.baseTexture.hasLoaded)break;g.activeTexture(g["TEXTURE"+this.textureCount]);var h=a.value.baseTexture._glTextures[g.id];h||(this.initSampler2D(a),h=a.value.baseTexture._glTextures[g.id]),g.bindTexture(g.TEXTURE_2D,h),g.uniform1i(a._location,this.textureCount),this.textureCount++;break;default:console.warn("Pixi.js Shader Warning: Unknown uniform type: "+a.type)}},d.prototype.syncUniforms=function(){this.textureCount=1;for(var a in this.uniforms)this.syncUniform(this.uniforms[a])},d.prototype.initSampler2D=function(a){var b=this.gl,c=a.value.baseTexture;if(c.hasLoaded)if(a.textureData){var d=a.textureData;c._glTextures[b.id]=b.createTexture(),b.bindTexture(b.TEXTURE_2D,c._glTextures[b.id]),b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,c.premultipliedAlpha),b.texImage2D(b.TEXTURE_2D,0,d.luminance?b.LUMINANCE:b.RGBA,b.RGBA,b.UNSIGNED_BYTE,c.source),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,d.magFilter?d.magFilter:b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,d.wrapS?d.wrapS:b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,d.wrapS?d.wrapS:b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,d.wrapT?d.wrapT:b.CLAMP_TO_EDGE)}else this.shaderManager.renderer.updateTexture(c)},d.prototype.destroy=function(){this.gl.deleteProgram(this.program),this.gl=null,this.uniforms=null,this.attributes=null,this.vertexSrc=null,this.fragmentSrc=null},d.prototype._glCompile=function(a,b){var c=this.gl.createShader(a);return this.gl.shaderSource(c,b),this.gl.compileShader(c),this.gl.getShaderParameter(c,this.gl.COMPILE_STATUS)?c:(console.log(this.gl.getShaderInfoLog(c)),null)}},{"../../../utils":77}],62:[function(a,b,c){function d(a,b,c,f,g){var h={uSampler:{type:"sampler2D",value:0},projectionMatrix:{type:"mat3",value:new Float32Array([1,0,0,0,1,0,0,0,1])}};if(f)for(var i in f)h[i]=f[i];var j={aVertexPosition:0,aTextureCoord:0,aColor:0};if(g)for(var k in g)j[k]=g[k];b=b||d.defaultVertexSrc,c=c||d.defaultFragmentSrc,e.call(this,a,b,c,h,j)}var e=a("./Shader");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.defaultVertexSrc=["precision lowp float;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = vec4(aColor.rgb * aColor.a, aColor.a);","}"].join("\n"),d.defaultFragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){"," gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;","}"].join("\n")},{"./Shader":61}],63:[function(a,b,c){function d(a){e.call(this,a)}var e=a("../managers/WebGLManager");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.start=function(){},d.prototype.stop=function(){this.flush()},d.prototype.flush=function(){},d.prototype.render=function(a){}},{"../managers/WebGLManager":58}],64:[function(a,b,c){function d(a){this.gl=a,this.vertices=new Float32Array([0,0,200,0,200,200,0,200]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.colors=new Float32Array([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.indices=new Uint16Array([0,1,2,0,3,2]),this.vertexBuffer=a.createBuffer(),this.indexBuffer=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bufferData(a.ARRAY_BUFFER,128,a.DYNAMIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW),this.upload()}d.prototype.constructor=d,d.prototype.map=function(a,b){var c=0,d=0;this.uvs[0]=c,this.uvs[1]=d,this.uvs[2]=c+b.width/a.width,this.uvs[3]=d,this.uvs[4]=c+b.width/a.width,this.uvs[5]=d+b.height/a.height,this.uvs[6]=c,this.uvs[7]=d+b.height/a.height,c=b.x,d=b.y,this.vertices[0]=c,this.vertices[1]=d,this.vertices[2]=c+b.width,this.vertices[3]=d,this.vertices[4]=c+b.width,this.vertices[5]=d+b.height,this.vertices[6]=c,this.vertices[7]=d+b.height,this.upload()},d.prototype.upload=function(){var a=this.gl;a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bufferSubData(a.ARRAY_BUFFER,0,this.vertices),a.bufferSubData(a.ARRAY_BUFFER,32,this.uvs),a.bufferSubData(a.ARRAY_BUFFER,64,this.colors)},d.prototype.destroy=function(){var a=this.gl;a.deleteBuffer(this.vertexBuffer),a.deleteBuffer(this.indexBuffer)},b.exports=d},{}],65:[function(a,b,c){var d=a("../../../math"),e=a("../../../utils"),f=a("../../../const"),g=a("./StencilMaskStack"),h=function(a,b,c,h,i,j){if(this.gl=a,this.frameBuffer=null,this.texture=null,this.size=new d.Rectangle(0,0,1,1),this.resolution=i||f.RESOLUTION,this.projectionMatrix=new d.Matrix,this.transform=null,this.frame=null,this.stencilBuffer=null,this.stencilMaskStack=new g,this.filterStack=[{renderTarget:this,filter:[],bounds:this.size}],this.scaleMode=h||f.SCALE_MODES.DEFAULT,this.root=j,!this.root){this.frameBuffer=a.createFramebuffer(),this.texture=a.createTexture(),a.bindTexture(a.TEXTURE_2D,this.texture),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,h===f.SCALE_MODES.LINEAR?a.LINEAR:a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,h===f.SCALE_MODES.LINEAR?a.LINEAR:a.NEAREST);var k=e.isPowerOfTwo(b,c);k?(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT)):(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE)),a.bindFramebuffer(a.FRAMEBUFFER,this.frameBuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.texture,0)}this.resize(b,c)};h.prototype.constructor=h,b.exports=h,h.prototype.clear=function(a){var b=this.gl;a&&b.bindFramebuffer(b.FRAMEBUFFER,this.frameBuffer),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT)},h.prototype.attachStencilBuffer=function(){if(!this.stencilBuffer&&!this.root){var a=this.gl;this.stencilBuffer=a.createRenderbuffer(),a.bindRenderbuffer(a.RENDERBUFFER,this.stencilBuffer),a.framebufferRenderbuffer(a.FRAMEBUFFER,a.DEPTH_STENCIL_ATTACHMENT,a.RENDERBUFFER,this.stencilBuffer),a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,this.size.width*this.resolution,this.size.height*this.resolution)}},h.prototype.activate=function(){var a=this.gl;a.bindFramebuffer(a.FRAMEBUFFER,this.frameBuffer);var b=this.frame||this.size;this.calculateProjection(b),this.transform&&this.projectionMatrix.append(this.transform),a.viewport(0,0,b.width*this.resolution,b.height*this.resolution)},h.prototype.calculateProjection=function(a){var b=this.projectionMatrix;b.identity(),this.root?(b.a=1/a.width*2,b.d=-1/a.height*2,b.tx=-1-a.x*b.a,b.ty=1-a.y*b.d):(b.a=1/a.width*2,b.d=1/a.height*2,b.tx=-1-a.x*b.a,b.ty=-1-a.y*b.d)},h.prototype.resize=function(a,b){if(a=0|a,b=0|b,this.size.width!==a||this.size.height!==b){if(this.size.width=a,this.size.height=b,!this.root){var c=this.gl;c.bindTexture(c.TEXTURE_2D,this.texture),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,a*this.resolution,b*this.resolution,0,c.RGBA,c.UNSIGNED_BYTE,null),this.stencilBuffer&&(c.bindRenderbuffer(c.RENDERBUFFER,this.stencilBuffer),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,a*this.resolution,b*this.resolution))}var d=this.frame||this.size;this.calculateProjection(d)}},h.prototype.destroy=function(){var a=this.gl;a.deleteRenderbuffer(this.stencilBuffer),a.deleteFramebuffer(this.frameBuffer),a.deleteTexture(this.texture),this.frameBuffer=null,this.texture=null}},{"../../../const":22,"../../../math":33,"../../../utils":77,"./StencilMaskStack":66}],66:[function(a,b,c){function d(){this.stencilStack=[],this.reverse=!0,this.count=0}d.prototype.constructor=d,b.exports=d},{}],67:[function(a,b,c){function d(a){g.call(this),this.anchor=new e.Point,this._texture=null,this._width=0,this._height=0,this.tint=16777215,this.blendMode=j.BLEND_MODES.NORMAL,this.shader=null,this.cachedTint=16777215,this.texture=a||f.EMPTY}var e=a("../math"),f=a("../textures/Texture"),g=a("../display/Container"),h=a("../renderers/canvas/utils/CanvasTinter"),i=a("../utils"),j=a("../const"),k=new e.Point,l=e.GroupD8,m=new e.Matrix;d.prototype=Object.create(g.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{width:{get:function(){return Math.abs(this.scale.x)*this.texture._frame.width},set:function(a){var b=i.sign(this.scale.x)||1;this.scale.x=b*a/this.texture._frame.width,this._width=a}},height:{get:function(){return Math.abs(this.scale.y)*this.texture._frame.height},set:function(a){var b=i.sign(this.scale.y)||1;this.scale.y=b*a/this.texture._frame.height,this._height=a}},texture:{get:function(){return this._texture},set:function(a){this._texture!==a&&(this._texture=a,this.cachedTint=16777215,a&&(a.baseTexture.hasLoaded?this._onTextureUpdate():a.once("update",this._onTextureUpdate,this)))}}}),d.prototype._onTextureUpdate=function(){this._width&&(this.scale.x=i.sign(this.scale.x)*this._width/this.texture.frame.width),this._height&&(this.scale.y=i.sign(this.scale.y)*this._height/this.texture.frame.height)},d.prototype._renderWebGL=function(a){a.setObjectRenderer(a.plugins.sprite),a.plugins.sprite.render(this)},d.prototype.getBounds=function(a){if(!this._currentBounds){var b,c,d,e,f=this._texture._frame.width,g=this._texture._frame.height,h=f*(1-this.anchor.x),i=f*-this.anchor.x,j=g*(1-this.anchor.y),k=g*-this.anchor.y,l=a||this.worldTransform,m=l.a,n=l.b,o=l.c,p=l.d,q=l.tx,r=l.ty,s=m*i+o*k+q,t=p*k+n*i+r,u=m*h+o*k+q,v=p*k+n*h+r,w=m*h+o*j+q,x=p*j+n*h+r,y=m*i+o*j+q,z=p*j+n*i+r;if(b=s,b=b>u?u:b,b=b>w?w:b,b=b>y?y:b,d=t,d=d>v?v:d,d=d>x?x:d,d=d>z?z:d,c=s,c=u>c?u:c,c=w>c?w:c,c=y>c?y:c,e=t,e=v>e?v:e,e=x>e?x:e,e=z>e?z:e,this.children.length){var A=this.containerGetBounds();h=A.x,i=A.x+A.width,j=A.y,k=A.y+A.height,b=h>b?b:h,d=j>d?d:j,c=c>i?c:i,e=e>k?e:k}var B=this._bounds;B.x=b,B.width=c-b,B.y=d,B.height=e-d,this._currentBounds=B}return this._currentBounds},d.prototype.getLocalBounds=function(){return this._bounds.x=-this._texture._frame.width*this.anchor.x,this._bounds.y=-this._texture._frame.height*this.anchor.y,this._bounds.width=this._texture._frame.width,this._bounds.height=this._texture._frame.height,this._bounds},d.prototype.containsPoint=function(a){this.worldTransform.applyInverse(a,k);var b,c=this._texture._frame.width,d=this._texture._frame.height,e=-c*this.anchor.x;return k.x>e&&k.xb&&k.yd;d+=6,f+=4)this.indices[d+0]=f+0,this.indices[d+1]=f+1,this.indices[d+2]=f+2,this.indices[d+3]=f+0,this.indices[d+4]=f+2,this.indices[d+5]=f+3;this.currentBatchSize=0,this.sprites=[],this.shader=null}var e=a("../../renderers/webgl/utils/ObjectRenderer"),f=a("../../renderers/webgl/WebGLRenderer"),g=a("../../const");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,f.registerPlugin("sprite",d),d.prototype.onContextChange=function(){var a=this.renderer.gl;this.shader=this.renderer.shaderManager.defaultShader,this.vertexBuffer=a.createBuffer(),this.indexBuffer=a.createBuffer(),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.indices,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bufferData(a.ARRAY_BUFFER,this.vertices,a.DYNAMIC_DRAW),this.currentBlendMode=99999},d.prototype.render=function(a){var b=a._texture;this.currentBatchSize>=this.size&&this.flush();var c=b._uvs;if(c){var d,e,f,g,h=a.anchor.x,i=a.anchor.y;if(b.trim&&void 0===a.tileScale){var j=b.trim;e=j.x-h*j.width,d=e+b.crop.width,g=j.y-i*j.height,f=g+b.crop.height}else d=b._frame.width*(1-h),e=b._frame.width*-h,f=b._frame.height*(1-i),g=b._frame.height*-i;var k=this.currentBatchSize*this.vertByteSize,l=a.worldTransform,m=l.a,n=l.b,o=l.c,p=l.d,q=l.tx,r=l.ty,s=this.colors,t=this.positions;if(this.renderer.roundPixels){var u=this.renderer.resolution;t[k]=((m*e+o*g+q)*u|0)/u,t[k+1]=((p*g+n*e+r)*u|0)/u,t[k+5]=((m*d+o*g+q)*u|0)/u,t[k+6]=((p*g+n*d+r)*u|0)/u,t[k+10]=((m*d+o*f+q)*u|0)/u,t[k+11]=((p*f+n*d+r)*u|0)/u,t[k+15]=((m*e+o*f+q)*u|0)/u,t[k+16]=((p*f+n*e+r)*u|0)/u}else t[k]=m*e+o*g+q,t[k+1]=p*g+n*e+r,t[k+5]=m*d+o*g+q,t[k+6]=p*g+n*d+r,t[k+10]=m*d+o*f+q,t[k+11]=p*f+n*d+r,t[k+15]=m*e+o*f+q,t[k+16]=p*f+n*e+r;t[k+2]=c.x0,t[k+3]=c.y0,t[k+7]=c.x1,t[k+8]=c.y1,t[k+12]=c.x2,t[k+13]=c.y2,t[k+17]=c.x3,t[k+18]=c.y3;var v=a.tint;s[k+4]=s[k+9]=s[k+14]=s[k+19]=(v>>16)+(65280&v)+((255&v)<<16)+(255*a.worldAlpha<<24),this.sprites[this.currentBatchSize++]=a}},d.prototype.flush=function(){if(0!==this.currentBatchSize){var a,b=this.renderer.gl;if(this.currentBatchSize>.5*this.size)b.bufferSubData(b.ARRAY_BUFFER,0,this.vertices);else{var c=this.positions.subarray(0,this.currentBatchSize*this.vertByteSize);b.bufferSubData(b.ARRAY_BUFFER,0,c)}for(var d,e,f,g,h=0,i=0,j=null,k=this.renderer.blendModeManager.currentBlendMode,l=null,m=!1,n=!1,o=0,p=this.currentBatchSize;p>o;o++)g=this.sprites[o],d=g._texture.baseTexture,e=g.blendMode,f=g.shader||this.shader,m=k!==e,n=l!==f,(j!==d||m||n)&&(this.renderBatch(j,h,i),i=o,h=0,j=d,m&&(k=e,this.renderer.blendModeManager.setBlendMode(k)),n&&(l=f,a=l.shaders?l.shaders[b.id]:l,a||(a=l.getShader(this.renderer)),this.renderer.shaderManager.setShader(a),a.uniforms.projectionMatrix.value=this.renderer.currentRenderTarget.projectionMatrix.toArray(!0),a.syncUniforms(),b.activeTexture(b.TEXTURE0))),h++;this.renderBatch(j,h,i),this.currentBatchSize=0}},d.prototype.renderBatch=function(a,b,c){if(0!==b){var d=this.renderer.gl;a._glTextures[d.id]?d.bindTexture(d.TEXTURE_2D,a._glTextures[d.id]):this.renderer.updateTexture(a),d.drawElements(d.TRIANGLES,6*b,d.UNSIGNED_SHORT,6*c*2),this.renderer.drawCount++}},d.prototype.start=function(){var a=this.renderer.gl;a.bindBuffer(a.ARRAY_BUFFER,this.vertexBuffer),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.indexBuffer);var b=this.vertByteSize;a.vertexAttribPointer(this.shader.attributes.aVertexPosition,2,a.FLOAT,!1,b,0),a.vertexAttribPointer(this.shader.attributes.aTextureCoord,2,a.FLOAT,!1,b,8),a.vertexAttribPointer(this.shader.attributes.aColor,4,a.UNSIGNED_BYTE,!0,b,16)},d.prototype.destroy=function(){this.renderer.gl.deleteBuffer(this.vertexBuffer),this.renderer.gl.deleteBuffer(this.indexBuffer),e.prototype.destroy.call(this),this.shader.destroy(),this.renderer=null,this.vertices=null,this.positions=null,this.colors=null,this.indices=null,this.vertexBuffer=null,this.indexBuffer=null,this.sprites=null,this.shader=null}},{"../../const":22,"../../renderers/webgl/WebGLRenderer":49,"../../renderers/webgl/utils/ObjectRenderer":63}],69:[function(a,b,c){function d(a,b,c){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=c||i.RESOLUTION,this._text=null,this._style=null;var d=f.fromCanvas(this.canvas);d.trim=new g.Rectangle,e.call(this,d),this.text=a,this.style=b}var e=a("../sprites/Sprite"),f=a("../textures/Texture"),g=a("../math"),h=a("../utils"),i=a("../const");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.fontPropertiesCache={},d.fontPropertiesCanvas=document.createElement("canvas"),d.fontPropertiesContext=d.fontPropertiesCanvas.getContext("2d"),Object.defineProperties(d.prototype,{width:{get:function(){return this.dirty&&this.updateText(),this.scale.x*this._texture._frame.width},set:function(a){this.scale.x=a/this._texture._frame.width,this._width=a}},height:{get:function(){return this.dirty&&this.updateText(),this.scale.y*this._texture._frame.height},set:function(a){this.scale.y=a/this._texture._frame.height,this._height=a}},style:{get:function(){return this._style},set:function(a){a=a||{},"number"==typeof a.fill&&(a.fill=h.hex2string(a.fill)),"number"==typeof a.stroke&&(a.stroke=h.hex2string(a.stroke)),"number"==typeof a.dropShadowColor&&(a.dropShadowColor=h.hex2string(a.dropShadowColor)),a.font=a.font||"bold 20pt Arial",a.fill=a.fill||"black",a.align=a.align||"left",a.stroke=a.stroke||"black",a.strokeThickness=a.strokeThickness||0,a.wordWrap=a.wordWrap||!1,a.wordWrapWidth=a.wordWrapWidth||100,a.breakWords=a.breakWords||!1,a.letterSpacing=a.letterSpacing||0,a.dropShadow=a.dropShadow||!1,a.dropShadowColor=a.dropShadowColor||"#000000",a.dropShadowAngle=void 0!==a.dropShadowAngle?a.dropShadowAngle:Math.PI/6,a.dropShadowDistance=void 0!==a.dropShadowDistance?a.dropShadowDistance:5,a.dropShadowBlur=void 0!==a.dropShadowBlur?a.dropShadowBlur:0,a.padding=a.padding||0,a.textBaseline=a.textBaseline||"alphabetic",a.lineJoin=a.lineJoin||"miter",a.miterLimit=a.miterLimit||10,this._style=a,this.dirty=!0}},text:{get:function(){return this._text},set:function(a){a=a.toString()||" ",this._text!==a&&(this._text=a,this.dirty=!0)}}}),d.prototype.updateText=function(){var a=this._style;this.context.font=a.font;for(var b=a.wordWrap?this.wordWrap(this._text):this._text,c=b.split(/(?:\r\n|\r|\n)/),d=new Array(c.length),e=0,f=this.determineFontProperties(a.font),g=0;g0?(this.context.shadowColor=a.dropShadowColor,this.context.shadowBlur=a.dropShadowBlur):this.context.fillStyle=a.dropShadowColor;var n=Math.cos(a.dropShadowAngle)*a.dropShadowDistance,o=Math.sin(a.dropShadowAngle)*a.dropShadowDistance;for(g=0;gi;i++){for(j=0;m>j;j+=4)if(255!==k[n+j]){o=!0;break}if(o)break;n+=m}for(b.ascent=g-i,n=l-m,o=!1,i=h;i>g;i--){for(j=0;m>j;j+=4)if(255!==k[n+j]){o=!0;break}if(o)break;n-=m}b.descent=i-g,b.fontSize=b.ascent+b.descent,d.fontPropertiesCache[a]=b}return b},d.prototype.wordWrap=function(a){for(var b="",c=a.split("\n"),d=this._style.wordWrapWidth,e=0;ed)for(var j=g[h].split(""),k=0;kf?(b+="\n"+j[k],f=d-l):(0===k&&(b+=" "),b+=j[k],f-=l)}else{var m=i+this.context.measureText(" ").width;0===h||m>f?(h>0&&(b+="\n"),b+=g[h],f=d-i):(f-=m,b+=" "+g[h])}}e0&&b>0,this.width=this._frame.width=this.crop.width=a,this.height=this._frame.height=this.crop.height=b,c&&(this.baseTexture.width=this.width,this.baseTexture.height=this.height),this.valid&&(this.textureBuffer.resize(this.width,this.height),this.filterManager&&this.filterManager.resize(this.width,this.height)))},d.prototype.clear=function(){this.valid&&(this.renderer.type===k.RENDERER_TYPE.WEBGL&&this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER,this.textureBuffer.frameBuffer),this.textureBuffer.clear())},d.prototype.renderWebGL=function(a,b,c,d){if(this.valid){if(d=void 0!==d?d:!0,this.textureBuffer.transform=b,this.textureBuffer.activate(),a.worldAlpha=1,d){a.worldTransform.identity(),a.currentBounds=null;var e,f,g=a.children;for(e=0,f=g.length;f>e;++e)g[e].updateTransform()}var h=this.renderer.filterManager;this.renderer.filterManager=this.filterManager,this.renderer.renderDisplayObject(a,this.textureBuffer,c),this.renderer.filterManager=h}},d.prototype.renderCanvas=function(a,b,c,d){if(this.valid){d=!!d;var e=l;e.identity(),b&&e.append(b);var f=a.worldTransform;a.worldTransform=e,a.worldAlpha=1;var g,h,i=a.children;for(g=0,h=i.length;h>g;++g)i[g].updateTransform();c&&this.textureBuffer.clear();var j=this.textureBuffer.context,k=this.renderer.resolution;this.renderer.resolution=this.resolution,this.renderer.renderDisplayObject(a,j),this.renderer.resolution=k,a.worldTransform===e&&(a.worldTransform=f)}},d.prototype.destroy=function(){f.prototype.destroy.call(this,!0),this.textureBuffer.destroy(),this.filterManager&&this.filterManager.destroy(),this.renderer=null},d.prototype.getImage=function(){var a=new Image;return a.src=this.getBase64(),a},d.prototype.getBase64=function(){return this.getCanvas().toDataURL()},d.prototype.getCanvas=function(){if(this.renderer.type===k.RENDERER_TYPE.WEBGL){var a=this.renderer.gl,b=this.textureBuffer.size.width,c=this.textureBuffer.size.height,d=new Uint8Array(4*b*c);a.bindFramebuffer(a.FRAMEBUFFER,this.textureBuffer.frameBuffer),a.readPixels(0,0,b,c,a.RGBA,a.UNSIGNED_BYTE,d),a.bindFramebuffer(a.FRAMEBUFFER,null);var e=new i(b,c),f=e.context.getImageData(0,0,b,c);return f.data.set(d),e.context.putImageData(f,0,0),e.canvas}return this.textureBuffer.canvas},d.prototype.getPixels=function(){var a,b;if(this.renderer.type===k.RENDERER_TYPE.WEBGL){var c=this.renderer.gl;a=this.textureBuffer.size.width,b=this.textureBuffer.size.height;var d=new Uint8Array(4*a*b);return c.bindFramebuffer(c.FRAMEBUFFER,this.textureBuffer.frameBuffer),c.readPixels(0,0,a,b,c.RGBA,c.UNSIGNED_BYTE,d),c.bindFramebuffer(c.FRAMEBUFFER,null),d}return a=this.textureBuffer.canvas.width,b=this.textureBuffer.canvas.height,this.textureBuffer.canvas.getContext("2d").getImageData(0,0,a,b).data},d.prototype.getPixel=function(a,b){if(this.renderer.type===k.RENDERER_TYPE.WEBGL){var c=this.renderer.gl,d=new Uint8Array(4);return c.bindFramebuffer(c.FRAMEBUFFER,this.textureBuffer.frameBuffer),c.readPixels(a,b,1,1,c.RGBA,c.UNSIGNED_BYTE,d),c.bindFramebuffer(c.FRAMEBUFFER,null),d}return this.textureBuffer.canvas.getContext("2d").getImageData(a,b,1,1).data}},{"../const":22,"../math":33,"../renderers/canvas/utils/CanvasBuffer":45,"../renderers/webgl/managers/FilterManager":54,"../renderers/webgl/utils/RenderTarget":65,"./BaseTexture":70,"./Texture":72}],72:[function(a,b,c){function d(a,b,c,e,f){if(h.call(this),this.noFrame=!1,b||(this.noFrame=!0,b=new i.Rectangle(0,0,1,1)),a instanceof d&&(a=a.baseTexture),this.baseTexture=a,this._frame=b,this.trim=e,this.valid=!1,this.requiresUpdate=!1,this._uvs=null,this.width=0,this.height=0,this.crop=c||b,this._rotate=+(f||0),f===!0)this._rotate=2;else if(this._rotate%2!==0)throw"attempt to use diamond-shaped UVs. If you are sure, set rotation manually";a.hasLoaded?(this.noFrame&&(b=new i.Rectangle(0,0,a.width,a.height),a.on("update",this.onBaseTextureUpdated,this)),this.frame=b):a.once("loaded",this.onBaseTextureLoaded,this)}var e=a("./BaseTexture"),f=a("./VideoBaseTexture"),g=a("./TextureUvs"),h=a("eventemitter3"),i=a("../math"),j=a("../utils");d.prototype=Object.create(h.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{frame:{get:function(){return this._frame},set:function(a){if(this._frame=a,this.noFrame=!1,this.width=a.width,this.height=a.height,!this.trim&&!this.rotate&&(a.x+a.width>this.baseTexture.width||a.y+a.height>this.baseTexture.height))throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.valid=a&&a.width&&a.height&&this.baseTexture.hasLoaded,this.trim?(this.width=this.trim.width,this.height=this.trim.height,this._frame.width=this.trim.width,this._frame.height=this.trim.height):this.crop=a,this.valid&&this._updateUvs()}},rotate:{get:function(){return this._rotate},set:function(a){this._rotate=a,this.valid&&this._updateUvs()}}}),d.prototype.update=function(){this.baseTexture.update()},d.prototype.onBaseTextureLoaded=function(a){this.noFrame?this.frame=new i.Rectangle(0,0,a.width,a.height):this.frame=this._frame,this.emit("update",this)},d.prototype.onBaseTextureUpdated=function(a){this._frame.width=a.width,this._frame.height=a.height,this.emit("update",this)},d.prototype.destroy=function(a){this.baseTexture&&(a&&this.baseTexture.destroy(),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.crop=null,this.valid=!1,this.off("dispose",this.dispose,this),this.off("update",this.update,this)},d.prototype.clone=function(){return new d(this.baseTexture,this.frame,this.crop,this.trim,this.rotate)},d.prototype._updateUvs=function(){this._uvs||(this._uvs=new g),this._uvs.set(this.crop,this.baseTexture,this.rotate)},d.fromImage=function(a,b,c){var f=j.TextureCache[a];return f||(f=new d(e.fromImage(a,b,c)),j.TextureCache[a]=f),f},d.fromFrame=function(a){var b=j.TextureCache[a];if(!b)throw new Error('The frameId "'+a+'" does not exist in the texture cache');return b},d.fromCanvas=function(a,b){return new d(e.fromCanvas(a,b))},d.fromVideo=function(a,b){return"string"==typeof a?d.fromVideoUrl(a,b):new d(f.fromVideo(a,b))},d.fromVideoUrl=function(a,b){return new d(f.fromUrl(a,b))},d.addTextureToCache=function(a,b){j.TextureCache[b]=a},d.removeTextureFromCache=function(a){var b=j.TextureCache[a];return delete j.TextureCache[a],delete j.BaseTextureCache[a],b},d.EMPTY=new d(new e)},{"../math":33,"../utils":77,"./BaseTexture":70,"./TextureUvs":73,"./VideoBaseTexture":74,eventemitter3:10}],73:[function(a,b,c){function d(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1}b.exports=d;var e=a("../math/GroupD8");d.prototype.set=function(a,b,c){var d=b.width,f=b.height;if(c){var g=e.isSwapWidthHeight(c),h=(g?a.height:a.width)/2/d,i=(g?a.width:a.height)/2/f,j=a.x/d+h,k=a.y/f+i;c=e.add(c,e.NW),this.x0=j+h*e.uX(c),this.y0=k+i*e.uY(c),c=e.add(c,2),this.x1=j+h*e.uX(c),this.y1=k+i*e.uY(c),c=e.add(c,2),this.x2=j+h*e.uX(c),this.y2=k+i*e.uY(c),c=e.add(c,2),this.x3=j+h*e.uX(c),this.y3=k+i*e.uY(c)}else this.x0=a.x/d,this.y0=a.y/f,this.x1=(a.x+a.width)/d,this.y1=a.y/f,this.x2=(a.x+a.width)/d,this.y2=(a.y+a.height)/f,this.x3=a.x/d,this.y3=(a.y+a.height)/f}},{"../math/GroupD8":30}],74:[function(a,b,c){function d(a,b){if(!a)throw new Error("No video source element specified.");(a.readyState===a.HAVE_ENOUGH_DATA||a.readyState===a.HAVE_FUTURE_DATA)&&a.width&&a.height&&(a.complete=!0),f.call(this,a,b),this.autoUpdate=!1,this._onUpdate=this._onUpdate.bind(this),this._onCanPlay=this._onCanPlay.bind(this),a.complete||(a.addEventListener("canplay",this._onCanPlay),a.addEventListener("canplaythrough",this._onCanPlay),a.addEventListener("play",this._onPlayStart.bind(this)),a.addEventListener("pause",this._onPlayStop.bind(this))),this.__loaded=!1}function e(a,b){b||(b="video/"+a.substr(a.lastIndexOf(".")+1));var c=document.createElement("source");return c.src=a,c.type=b,c}var f=a("./BaseTexture"),g=a("../utils");d.prototype=Object.create(f.prototype),d.prototype.constructor=d,b.exports=d,d.prototype._onUpdate=function(){this.autoUpdate&&(window.requestAnimationFrame(this._onUpdate),this.update())},d.prototype._onPlayStart=function(){this.autoUpdate||(window.requestAnimationFrame(this._onUpdate),this.autoUpdate=!0)},d.prototype._onPlayStop=function(){this.autoUpdate=!1},d.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.source.play(),this.__loaded||(this.__loaded=!0,this.emit("loaded",this)))},d.prototype.destroy=function(){this.source&&this.source._pixiId&&(delete g.BaseTextureCache[this.source._pixiId],delete this.source._pixiId),f.prototype.destroy.call(this)},d.fromVideo=function(a,b){a._pixiId||(a._pixiId="video_"+g.uid());var c=g.BaseTextureCache[a._pixiId];return c||(c=new d(a,b),g.BaseTextureCache[a._pixiId]=c),c},d.fromUrl=function(a,b){var c=document.createElement("video");if(Array.isArray(a))for(var f=0;fthis._maxElapsedMS&&(b=this._maxElapsedMS),this.deltaTime=b*e.TARGET_FPMS*this.speed,this._emitter.emit(g,this.deltaTime),this.lastTime=a},b.exports=d},{"../const":22,eventemitter3:10}],76:[function(a,b,c){var d=a("./Ticker"),e=new d;e.autoStart=!0,b.exports={shared:e,Ticker:d}},{"./Ticker":75}],77:[function(a,b,c){var d=a("../const"),e=b.exports={_uid:0,_saidHello:!1,EventEmitter:a("eventemitter3"),pluginTarget:a("./pluginTarget"),async:a("async"),uid:function(){return++e._uid},hex2rgb:function(a,b){return b=b||[],b[0]=(a>>16&255)/255,b[1]=(a>>8&255)/255,b[2]=(255&a)/255,b},hex2string:function(a){return a=a.toString(16),a="000000".substr(0,6-a.length)+a,"#"+a},rgb2hex:function(a){return(255*a[0]<<16)+(255*a[1]<<8)+255*a[2]},canUseNewCanvasBlendModes:function(){if("undefined"==typeof document)return!1;var a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",b="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",c=new Image;c.src=a+"AP804Oa6"+b;var d=new Image;d.src=a+"/wCKxvRF"+b;var e=document.createElement("canvas");e.width=6,e.height=1;var f=e.getContext("2d");f.globalCompositeOperation="multiply",f.drawImage(c,0,0),f.drawImage(d,2,0);var g=f.getImageData(2,0,1,1).data;return 255===g[0]&&0===g[1]&&0===g[2]},getNextPowerOfTwo:function(a){if(a>0&&0===(a&a-1))return a;for(var b=1;a>b;)b<<=1;return b},isPowerOfTwo:function(a,b){return a>0&&0===(a&a-1)&&b>0&&0===(b&b-1)},getResolutionOfUrl:function(a){var b=d.RETINA_PREFIX.exec(a);return b?parseFloat(b[1]):1},sayHello:function(a){if(!e._saidHello){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var b=["\n %c %c %c Pixi.js "+d.VERSION+" - ✰ "+a+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,b)}else window.console&&window.console.log("Pixi.js "+d.VERSION+" - "+a+" - http://www.pixijs.com/");e._saidHello=!0}},isWebGLSupported:function(){var a={stencil:!0};try{if(!window.WebGLRenderingContext)return!1;var b=document.createElement("canvas"),c=b.getContext("webgl",a)||b.getContext("experimental-webgl",a);return!(!c||!c.getContextAttributes().stencil)}catch(d){return!1}},sign:function(a){return a?0>a?-1:1:0},removeItems:function(a,b,c){var d=a.length;if(!(b>=d||0===c)){c=b+c>d?d-b:c;for(var e=b,f=d-c;f>e;++e)a[e]=a[e+c];a.length=f}},TextureCache:{},BaseTextureCache:{}}},{"../const":22,"./pluginTarget":78,async:1,eventemitter3:10}],78:[function(a,b,c){function d(a){a.__plugins={},a.registerPlugin=function(b,c){a.__plugins[b]=c},a.prototype.initPlugins=function(){this.plugins=this.plugins||{};for(var b in a.__plugins)this.plugins[b]=new a.__plugins[b](this)},a.prototype.destroyPlugins=function(){for(var a in this.plugins)this.plugins[a].destroy(),this.plugins[a]=null;this.plugins=null}}b.exports={mixin:function(a){d(a)}}},{}],79:[function(a,b,c){var d=a("./core"),e=a("./mesh"),f=a("./extras"),g=a("./filters");d.SpriteBatch=function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")},d.AssetLoader=function(){throw new ReferenceError("The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.")},Object.defineProperties(d,{Stage:{get:function(){return console.warn("You do not need to use a PIXI Stage any more, you can simply render any container."),d.Container}},DisplayObjectContainer:{get:function(){return console.warn("DisplayObjectContainer has been shortened to Container, please use Container from now on."),d.Container}},Strip:{get:function(){return console.warn("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),e.Mesh}},Rope:{get:function(){return console.warn("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),e.Rope}},MovieClip:{get:function(){return console.warn("The MovieClip class has been moved to extras.MovieClip, please use extras.MovieClip from now on."),f.MovieClip}},TilingSprite:{get:function(){return console.warn("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),f.TilingSprite}},BitmapText:{get:function(){return console.warn("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),f.BitmapText}},blendModes:{get:function(){return console.warn("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),d.BLEND_MODES}},scaleModes:{get:function(){return console.warn("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),d.SCALE_MODES}},BaseTextureCache:{get:function(){return console.warn("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),d.utils.BaseTextureCache}},TextureCache:{get:function(){return console.warn("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),d.utils.TextureCache}},math:{get:function(){return console.warn("The math namespace is deprecated, please access members already accessible on PIXI."),d}}}),d.Sprite.prototype.setTexture=function(a){ this.texture=a,console.warn("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},f.BitmapText.prototype.setText=function(a){this.text=a,console.warn("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")},d.Text.prototype.setText=function(a){this.text=a,console.warn("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},d.Text.prototype.setStyle=function(a){this.style=a,console.warn("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},d.Texture.prototype.setFrame=function(a){this.frame=a,console.warn("setFrame is now deprecated, please use the frame property, e.g : myTexture.frame = frame;")},Object.defineProperties(g,{AbstractFilter:{get:function(){return console.warn("filters.AbstractFilter is an undocumented alias, please use AbstractFilter from now on."),d.AbstractFilter}},FXAAFilter:{get:function(){return console.warn("filters.FXAAFilter is an undocumented alias, please use FXAAFilter from now on."),d.FXAAFilter}},SpriteMaskFilter:{get:function(){return console.warn("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),d.SpriteMaskFilter}}}),d.utils.uuid=function(){return console.warn("utils.uuid() is deprecated, please use utils.uid() from now on."),d.utils.uid()}},{"./core":29,"./extras":86,"./filters":103,"./mesh":128}],80:[function(a,b,c){function d(a,b){e.Container.call(this),b=b||{},this.textWidth=0,this.textHeight=0,this._glyphs=[],this._font={tint:void 0!==b.tint?b.tint:16777215,align:b.align||"left",name:null,size:0},this.font=b.font,this._text=a,this.maxWidth=0,this.maxLineHeight=0,this.dirty=!1,this.updateText()}var e=a("../core");d.prototype=Object.create(e.Container.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{tint:{get:function(){return this._font.tint},set:function(a){this._font.tint="number"==typeof a&&a>=0?a:16777215,this.dirty=!0}},align:{get:function(){return this._font.align},set:function(a){this._font.align=a||"left",this.dirty=!0}},font:{get:function(){return this._font},set:function(a){a&&("string"==typeof a?(a=a.split(" "),this._font.name=1===a.length?a[0]:a.slice(1).join(" "),this._font.size=a.length>=2?parseInt(a[0],10):d.fonts[this._font.name].size):(this._font.name=a.name,this._font.size="number"==typeof a.size?a.size:parseInt(a.size,10)),this.dirty=!0)}},text:{get:function(){return this._text},set:function(a){a=a.toString()||" ",this._text!==a&&(this._text=a,this.dirty=!0)}}}),d.prototype.updateText=function(){for(var a=d.fonts[this._font.name],b=new e.Point,c=null,f=[],g=0,h=0,i=[],j=0,k=this._font.size/a.size,l=-1,m=0,n=0;n0&&b.x*k>this.maxWidth)e.utils.removeItems(f,l,n-l),n=l,l=-1,i.push(g),h=Math.max(h,g),j++,b.x=0,b.y+=a.lineHeight,c=null;else{var p=a.chars[o];p&&(c&&p.kerning[c]&&(b.x+=p.kerning[c]),f.push({texture:p.texture,line:j,charCode:o,position:new e.Point(b.x+p.xOffset,b.y+p.yOffset)}),g=b.x+(p.texture.width+p.xOffset),b.x+=p.xAdvance,m=Math.max(m,p.yOffset+p.texture.height),c=o)}}i.push(g),h=Math.max(h,g);var q=[];for(n=0;j>=n;n++){var r=0;"right"===this._font.align?r=h-i[n]:"center"===this._font.align&&(r=(h-i[n])/2),q.push(r)}var s=f.length,t=this.tint;for(n=0;s>n;n++){var u=this._glyphs[n];u?u.texture=f[n].texture:(u=new e.Sprite(f[n].texture),this._glyphs.push(u)),u.position.x=(f[n].position.x+q[f[n].line])*k,u.position.y=f[n].position.y*k,u.scale.x=u.scale.y=k,u.tint=t,u.parent||this.addChild(u)}for(n=s;na&&(a+=this._textures.length),a}}}),d.prototype.stop=function(){this.playing&&(this.playing=!1,e.ticker.shared.remove(this.update,this))},d.prototype.play=function(){this.playing||(this.playing=!0,e.ticker.shared.add(this.update,this))},d.prototype.gotoAndStop=function(a){this.stop(),this._currentTime=a,this._texture=this._textures[this.currentFrame]},d.prototype.gotoAndPlay=function(a){this._currentTime=a,this.play()},d.prototype.update=function(a){var b=this.animationSpeed*a;if(null!==this._durations){var c=this._currentTime%1*this._durations[this.currentFrame];for(c+=b/60*1e3;0>c;)this._currentTime--,c+=this._durations[this.currentFrame];var d=Math.sign(this.animationSpeed*a);for(this._currentTime=Math.floor(this._currentTime);c>=this._durations[this.currentFrame];)c-=this._durations[this.currentFrame]*d,this._currentTime+=d;this._currentTime+=c/this._durations[this.currentFrame]}else this._currentTime+=b;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):this._texture=this._textures[this.currentFrame]},d.prototype.destroy=function(){this.stop(),e.Sprite.prototype.destroy.call(this)},d.fromFrames=function(a){for(var b=[],c=0;ct?t:a,a=a>v?v:a,a=a>x?x:a,c=s,c=c>u?u:c,c=c>w?w:c,c=c>y?y:c,b=r,b=t>b?t:b,b=v>b?v:b,b=x>b?x:b,d=s,d=u>d?u:d,d=w>d?w:d,d=y>d?y:d;var z=this._bounds;return z.x=a,z.width=b-a,z.y=c,z.height=d-c,this._currentBounds=z,z},d.prototype.containsPoint=function(a){this.worldTransform.applyInverse(a,f);var b,c=this._width,d=this._height,e=-c*this.anchor.x;return f.x>e&&f.xb&&f.y 0.2) n = 65600.0; // :\n if (gray > 0.3) n = 332772.0; // *\n if (gray > 0.4) n = 15255086.0; // o\n if (gray > 0.5) n = 23385164.0; // &\n if (gray > 0.6) n = 15252014.0; // 8\n if (gray > 0.7) n = 13199452.0; // @\n if (gray > 0.8) n = 11512810.0; // #\n\n vec2 p = mod( uv / ( pixelSize * 0.5 ), 2.0) - vec2(1.0);\n col = col * character(n, p);\n\n gl_FragColor = vec4(col, 1.0);\n}\n",{dimensions:{type:"4fv",value:new Float32Array([0,0,0,0])},pixelSize:{type:"1f",value:8}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{size:{get:function(){return this.uniforms.pixelSize.value},set:function(a){this.uniforms.pixelSize.value=a}}})},{"../../core":29}],88:[function(a,b,c){function d(){e.AbstractFilter.call(this),this.blurXFilter=new f,this.blurYFilter=new g,this.defaultFilter=new e.AbstractFilter}var e=a("../../core"),f=a("../blur/BlurXFilter"),g=a("../blur/BlurYFilter");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c){var d=a.filterManager.getRenderTarget(!0);this.defaultFilter.applyFilter(a,b,c),this.blurXFilter.applyFilter(a,b,d),a.blendModeManager.setBlendMode(e.BLEND_MODES.SCREEN),this.blurYFilter.applyFilter(a,d,c),a.blendModeManager.setBlendMode(e.BLEND_MODES.NORMAL),a.filterManager.returnRenderTarget(d)},Object.defineProperties(d.prototype,{blur:{get:function(){return this.blurXFilter.blur},set:function(a){this.blurXFilter.blur=this.blurYFilter.blur=a}},blurX:{get:function(){return this.blurXFilter.blur},set:function(a){this.blurXFilter.blur=a}},blurY:{get:function(){return this.blurYFilter.blur},set:function(a){this.blurYFilter.blur=a}}})},{"../../core":29,"../blur/BlurXFilter":91,"../blur/BlurYFilter":92}],89:[function(a,b,c){function d(a,b){e.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform float dirX;\nuniform float dirY;\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[3];\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n\n vBlurTexCoords[0] = aTextureCoord + vec2( (0.004 * strength) * dirX, (0.004 * strength) * dirY );\n vBlurTexCoords[1] = aTextureCoord + vec2( (0.008 * strength) * dirX, (0.008 * strength) * dirY );\n vBlurTexCoords[2] = aTextureCoord + vec2( (0.012 * strength) * dirX, (0.012 * strength) * dirY );\n\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[3];\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = vec4(0.0);\n\n gl_FragColor += texture2D(uSampler, vTextureCoord ) * 0.3989422804014327;\n gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 0]) * 0.2419707245191454;\n gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 1]) * 0.05399096651318985;\n gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 2]) * 0.004431848411938341;\n}\n",{strength:{type:"1f",value:1},dirX:{type:"1f",value:a||0},dirY:{type:"1f",value:b||0}}),this.defaultFilter=new e.AbstractFilter,this.passes=1,this.dirX=a||0,this.dirY=b||0,this.strength=4}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c,d){var e=this.getShader(a);if(this.uniforms.strength.value=this.strength/4/this.passes*(b.frame.width/b.size.width),1===this.passes)a.filterManager.applyFilter(e,b,c,d);else{var f=a.filterManager.getRenderTarget(!0);a.filterManager.applyFilter(e,b,f,d);for(var g=0;g>16&255)/255,g=(c>>8&255)/255,h=(255&c)/255,i=(d>>16&255)/255,j=(d>>8&255)/255,k=(255&d)/255,l=[.3,.59,.11,0,0,f,g,h,a,0,i,j,k,b,0,f-i,g-j,h-k,0,0];this._loadMatrix(l,e)},d.prototype.night=function(a,b){a=a||.1;var c=[-2*a,-a,0,0,0,-a,0,a,0,0,0,a,2*a,0,0,0,0,0,1,0];this._loadMatrix(c,b)},d.prototype.predator=function(a,b){var c=[11.224130630493164*a,-4.794486999511719*a,-2.8746118545532227*a,0*a,.40342438220977783*a,-3.6330697536468506*a,9.193157196044922*a,-2.951810836791992*a,0*a,-1.316135048866272*a,-3.2184197902679443*a,-4.2375030517578125*a,7.476448059082031*a,0*a,.8044459223747253*a,0,0,0,1,0];this._loadMatrix(c,b)},d.prototype.lsd=function(a){var b=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(b,a)},d.prototype.reset=function(){var a=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(a,!1)},Object.defineProperties(d.prototype,{matrix:{get:function(){return this.uniforms.m.value},set:function(a){this.uniforms.m.value=a}}})},{"../../core":29}],95:[function(a,b,c){function d(){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float step;\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n color = floor(color * step) / step;\n\n gl_FragColor = color;\n}\n",{step:{type:"1f",value:5}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{step:{get:function(){return this.uniforms.step.value},set:function(a){this.uniforms.step.value=a}}})},{"../../core":29}],96:[function(a,b,c){function d(a,b,c){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n gl_FragColor =\n c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n gl_FragColor.a = c22.a;\n}\n",{matrix:{type:"1fv",value:new Float32Array(a)},texelSize:{type:"v2",value:{x:1/b,y:1/c}}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{matrix:{get:function(){return this.uniforms.matrix.value},set:function(a){this.uniforms.matrix.value=new Float32Array(a)}},width:{get:function(){return 1/this.uniforms.texelSize.value.x},set:function(a){this.uniforms.texelSize.value.x=1/a}},height:{get:function(){return 1/this.uniforms.texelSize.value.y},set:function(a){this.uniforms.texelSize.value.y=1/a}}})},{"../../core":29}],97:[function(a,b,c){function d(){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n if (lum < 1.00)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.75)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.50)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.3)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n}\n")}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d},{"../../core":29}],98:[function(a,b,c){function d(a,b){var c=new e.Matrix;a.renderable=!1,e.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMapCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vMapCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision mediump float;\n\nvarying vec2 vMapCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vMapCoord);\n\n map -= 0.5;\n map.xy *= scale;\n\n gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y));\n}\n",{mapSampler:{type:"sampler2D",value:a.texture},otherMatrix:{type:"mat3",value:c.toArray(!0)},scale:{type:"v2",value:{x:1,y:1}}}),this.maskSprite=a,this.maskMatrix=c,null!==b&&void 0!==b||(b=20),this.scale=new e.Point(b,b)}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c){var d=a.filterManager;d.calculateMappedMatrix(b.frame,this.maskSprite,this.maskMatrix),this.uniforms.otherMatrix.value=this.maskMatrix.toArray(!0),this.uniforms.scale.value.x=this.scale.x*(1/b.frame.width),this.uniforms.scale.value.y=this.scale.y*(1/b.frame.height);var e=this.getShader(a);d.applyFilter(e,b,c)},Object.defineProperties(d.prototype,{map:{get:function(){return this.uniforms.mapSampler.value},set:function(a){this.uniforms.mapSampler.value=a}}})},{"../../core":29}],99:[function(a,b,c){function d(){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 dimensions;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n float s = sin(angle), c = cos(angle);\n vec2 tex = vTextureCoord * dimensions.xy;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float average = (color.r + color.g + color.b) / 3.0;\n gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n",{scale:{type:"1f",value:1},angle:{type:"1f",value:5},dimensions:{type:"4fv",value:[0,0,0,0]}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{scale:{get:function(){return this.uniforms.scale.value},set:function(a){this.uniforms.scale.value=a}},angle:{get:function(){return this.uniforms.angle.value},set:function(a){this.uniforms.angle.value=a}}})},{"../../core":29}],100:[function(a,b,c){function d(){e.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform vec2 offset;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[6];\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3((aVertexPosition+offset), 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n\n vBlurTexCoords[ 0] = aTextureCoord + vec2(0.0, -0.012 * strength);\n vBlurTexCoords[ 1] = aTextureCoord + vec2(0.0, -0.008 * strength);\n vBlurTexCoords[ 2] = aTextureCoord + vec2(0.0, -0.004 * strength);\n vBlurTexCoords[ 3] = aTextureCoord + vec2(0.0, 0.004 * strength);\n vBlurTexCoords[ 4] = aTextureCoord + vec2(0.0, 0.008 * strength);\n vBlurTexCoords[ 5] = aTextureCoord + vec2(0.0, 0.012 * strength);\n\n vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[6];\nvarying vec4 vColor;\n\nuniform vec3 color;\nuniform float alpha;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n vec4 sum = vec4(0.0);\n\n sum += texture2D(uSampler, vBlurTexCoords[ 0])*0.004431848411938341;\n sum += texture2D(uSampler, vBlurTexCoords[ 1])*0.05399096651318985;\n sum += texture2D(uSampler, vBlurTexCoords[ 2])*0.2419707245191454;\n sum += texture2D(uSampler, vTextureCoord )*0.3989422804014327;\n sum += texture2D(uSampler, vBlurTexCoords[ 3])*0.2419707245191454;\n sum += texture2D(uSampler, vBlurTexCoords[ 4])*0.05399096651318985;\n sum += texture2D(uSampler, vBlurTexCoords[ 5])*0.004431848411938341;\n\n gl_FragColor = vec4( color.rgb * sum.a * alpha, sum.a * alpha );\n}\n",{blur:{type:"1f",value:1/512},color:{type:"c",value:[0,0,0]},alpha:{type:"1f",value:.7},offset:{type:"2f",value:[5,5]},strength:{type:"1f",value:1}}),this.passes=1,this.strength=4}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c,d){var e=this.getShader(a);if(this.uniforms.strength.value=this.strength/4/this.passes*(b.frame.height/b.size.height),1===this.passes)a.filterManager.applyFilter(e,b,c,d);else{for(var f=a.filterManager.getRenderTarget(!0),g=b,h=f,i=0;i= (time - params.z)) )\n {\n float diff = (dist - time);\n float powDiff = 1.0 - pow(abs(diff*params.x), params.y);\n\n float diffTime = diff * powDiff;\n vec2 diffUV = normalize(uv - center);\n texCoord = uv + (diffUV * diffTime);\n }\n\n gl_FragColor = texture2D(uSampler, texCoord);\n}\n",{center:{type:"v2",value:{x:.5,y:.5}},params:{type:"v3",value:{x:10,y:.8,z:.1}},time:{type:"1f",value:0}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{center:{get:function(){return this.uniforms.center.value},set:function(a){this.uniforms.center.value=a}},params:{get:function(){return this.uniforms.params.value},set:function(a){this.uniforms.params.value=a}},time:{get:function(){return this.uniforms.time.value},set:function(a){this.uniforms.time.value=a}}})},{"../../core":29}],110:[function(a,b,c){function d(){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n for (float t = -30.0; t <= 30.0; t++)\n {\n float percent = (t + offset - 0.5) / 30.0;\n float weight = 1.0 - abs(percent);\n vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n sample.rgb *= sample.a;\n color += sample * weight;\n total += weight;\n }\n\n gl_FragColor = color / total;\n gl_FragColor.rgb /= gl_FragColor.a + 0.00001;\n}\n",{blur:{type:"1f",value:100},gradientBlur:{type:"1f",value:600},start:{type:"v2",value:{x:0,y:window.innerHeight/2}},end:{type:"v2",value:{x:600,y:window.innerHeight/2}},delta:{type:"v2",value:{x:30,y:30}},texSize:{type:"v2",value:{x:window.innerWidth,y:window.innerHeight}}}),this.updateDelta()}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.updateDelta=function(){this.uniforms.delta.value.x=0,this.uniforms.delta.value.y=0},Object.defineProperties(d.prototype,{blur:{get:function(){return this.uniforms.blur.value},set:function(a){this.uniforms.blur.value=a}},gradientBlur:{get:function(){return this.uniforms.gradientBlur.value},set:function(a){this.uniforms.gradientBlur.value=a}},start:{get:function(){return this.uniforms.start.value},set:function(a){this.uniforms.start.value=a,this.updateDelta()}},end:{get:function(){return this.uniforms.end.value},set:function(a){this.uniforms.end.value=a,this.updateDelta()}}})},{"../../core":29}],111:[function(a,b,c){function d(){e.AbstractFilter.call(this),this.tiltShiftXFilter=new f,this.tiltShiftYFilter=new g}var e=a("../../core"),f=a("./TiltShiftXFilter"),g=a("./TiltShiftYFilter");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.applyFilter=function(a,b,c){var d=a.filterManager.getRenderTarget(!0);this.tiltShiftXFilter.applyFilter(a,b,d),this.tiltShiftYFilter.applyFilter(a,d,c),a.filterManager.returnRenderTarget(d)},Object.defineProperties(d.prototype,{blur:{get:function(){return this.tiltShiftXFilter.blur},set:function(a){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=a}},gradientBlur:{get:function(){return this.tiltShiftXFilter.gradientBlur},set:function(a){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=a}},start:{get:function(){return this.tiltShiftXFilter.start},set:function(a){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=a}},end:{get:function(){return this.tiltShiftXFilter.end},set:function(a){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=a}}})},{"../../core":29,"./TiltShiftXFilter":112,"./TiltShiftYFilter":113}],112:[function(a,b,c){function d(){e.call(this)}var e=a("./TiltShiftAxisFilter");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.updateDelta=function(){var a=this.uniforms.end.value.x-this.uniforms.start.value.x,b=this.uniforms.end.value.y-this.uniforms.start.value.y,c=Math.sqrt(a*a+b*b);this.uniforms.delta.value.x=a/c,this.uniforms.delta.value.y=b/c}},{"./TiltShiftAxisFilter":110}],113:[function(a,b,c){function d(){e.call(this)}var e=a("./TiltShiftAxisFilter");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.updateDelta=function(){var a=this.uniforms.end.value.x-this.uniforms.start.value.x,b=this.uniforms.end.value.y-this.uniforms.start.value.y,c=Math.sqrt(a*a+b*b);this.uniforms.delta.value.x=-b/c,this.uniforms.delta.value.y=a/c}},{"./TiltShiftAxisFilter":110}],114:[function(a,b,c){function d(){e.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord - offset;\n float dist = length(coord);\n\n if (dist < radius)\n {\n float ratio = (radius - dist) / radius;\n float angleMod = ratio * ratio * angle;\n float s = sin(angleMod);\n float c = cos(angleMod);\n coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n }\n\n gl_FragColor = texture2D(uSampler, coord+offset);\n}\n",{radius:{type:"1f",value:.5},angle:{type:"1f",value:5},offset:{type:"v2",value:{x:.5,y:.5}}})}var e=a("../../core");d.prototype=Object.create(e.AbstractFilter.prototype),d.prototype.constructor=d,b.exports=d,Object.defineProperties(d.prototype,{offset:{get:function(){return this.uniforms.offset.value},set:function(a){this.uniforms.offset.value=a}},radius:{get:function(){return this.uniforms.radius.value},set:function(a){this.uniforms.radius.value=a}},angle:{get:function(){return this.uniforms.angle.value},set:function(a){this.uniforms.angle.value=a}}})},{"../../core":29}],115:[function(a,b,c){(function(c){a("./polyfill");var d=b.exports=a("./core");d.extras=a("./extras"),d.filters=a("./filters"),d.interaction=a("./interaction"),d.loaders=a("./loaders"),d.mesh=a("./mesh"),d.accessibility=a("./accessibility"),d.loader=new d.loaders.Loader,Object.assign(d,a("./deprecation")),c.PIXI=d}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accessibility":21,"./core":29,"./deprecation":79,"./extras":86,"./filters":103,"./interaction":118,"./loaders":121,"./mesh":128,"./polyfill":133}],116:[function(a,b,c){function d(){this.global=new e.Point,this.target=null,this.originalEvent=null}var e=a("../core");d.prototype.constructor=d,b.exports=d,d.prototype.getLocalPosition=function(a,b,c){return a.worldTransform.applyInverse(c||this.global,b)}},{"../core":29}],117:[function(a,b,c){function d(a,b){b=b||{},this.renderer=a,this.autoPreventDefault=void 0!==b.autoPreventDefault?b.autoPreventDefault:!0,this.interactionFrequency=b.interactionFrequency||10,this.mouse=new f,this.eventData={stopped:!1,target:null,type:null,data:this.mouse,stopPropagation:function(){this.stopped=!0}},this.interactiveDataPool=[],this.interactionDOMElement=null,this.moveWhenInside=!1,this.eventsAdded=!1,this.onMouseUp=this.onMouseUp.bind(this),this.processMouseUp=this.processMouseUp.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.processMouseDown=this.processMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.processMouseMove=this.processMouseMove.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.processMouseOverOut=this.processMouseOverOut.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.processTouchStart=this.processTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.processTouchEnd=this.processTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.processTouchMove=this.processTouchMove.bind(this),this.last=0,this.currentCursorStyle="inherit",this._tempPoint=new e.Point,this.resolution=1,this.setTargetElement(this.renderer.view,this.renderer.resolution)}var e=a("../core"),f=a("./InteractionData");Object.assign(e.DisplayObject.prototype,a("./interactiveTarget")),d.prototype.constructor=d,b.exports=d,d.prototype.setTargetElement=function(a,b){this.removeEvents(),this.interactionDOMElement=a,this.resolution=b||1,this.addEvents()},d.prototype.addEvents=function(){this.interactionDOMElement&&(e.ticker.shared.add(this.update,this),window.navigator.msPointerEnabled&&(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"),window.document.addEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.addEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.addEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.addEventListener("touchmove",this.onTouchMove,!0),window.addEventListener("mouseup",this.onMouseUp,!0),this.eventsAdded=!0)},d.prototype.removeEvents=function(){this.interactionDOMElement&&(e.ticker.shared.remove(this.update),window.navigator.msPointerEnabled&&(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""),window.document.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0),this.interactionDOMElement=null,window.removeEventListener("mouseup",this.onMouseUp,!0),this.eventsAdded=!1)},d.prototype.update=function(a){if(this._deltaTime+=a,!(this._deltaTime=0;i--){var j=h[i];if(this.processInteractive(a,j,c,d,g)){if(!j.parent)continue;f=!0,g=!1,d=!1}}return e&&(d&&!f&&(b.hitArea?(b.worldTransform.applyInverse(a,this._tempPoint),f=b.hitArea.contains(this._tempPoint.x,this._tempPoint.y)):b.containsPoint&&(f=b.containsPoint(a))),b.interactive&&c(b,f)),f},d.prototype.onMouseDown=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.autoPreventDefault&&this.mouse.originalEvent.preventDefault(),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseDown,!0)},d.prototype.processMouseDown=function(a,b){var c=this.mouse.originalEvent,d=2===c.button||3===c.which;b&&(a[d?"_isRightDown":"_isLeftDown"]=!0,this.dispatchEvent(a,d?"rightdown":"mousedown",this.eventData))},d.prototype.onMouseUp=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseUp,!0)},d.prototype.processMouseUp=function(a,b){var c=this.mouse.originalEvent,d=2===c.button||3===c.which,e=d?"_isRightDown":"_isLeftDown";b?(this.dispatchEvent(a,d?"rightup":"mouseup",this.eventData),a[e]&&(a[e]=!1,this.dispatchEvent(a,d?"rightclick":"click",this.eventData))):a[e]&&(a[e]=!1,this.dispatchEvent(a,d?"rightupoutside":"mouseupoutside",this.eventData))},d.prototype.onMouseMove=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.didMove=!0,this.cursor="inherit",this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseMove,!0),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor)},d.prototype.processMouseMove=function(a,b){this.processMouseOverOut(a,b),this.moveWhenInside&&!b||this.dispatchEvent(a,"mousemove",this.eventData)},d.prototype.onMouseOut=function(a){this.mouse.originalEvent=a,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.interactionDOMElement.style.cursor="inherit",this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!1)},d.prototype.processMouseOverOut=function(a,b){b?(a._over||(a._over=!0,this.dispatchEvent(a,"mouseover",this.eventData)),a.buttonMode&&(this.cursor=a.defaultCursor)):a._over&&(a._over=!1,this.dispatchEvent(a,"mouseout",this.eventData))},d.prototype.onTouchStart=function(a){this.autoPreventDefault&&a.preventDefault();for(var b=a.changedTouches,c=b.length,d=0;c>d;d++){var e=b[d],f=this.getTouchData(e);f.originalEvent=a,this.eventData.data=f,this.eventData.stopped=!1,this.processInteractive(f.global,this.renderer._lastObjectRendered,this.processTouchStart,!0),this.returnTouchData(f)}},d.prototype.processTouchStart=function(a,b){b&&(a._touchDown=!0,this.dispatchEvent(a,"touchstart",this.eventData))},d.prototype.onTouchEnd=function(a){this.autoPreventDefault&&a.preventDefault();for(var b=a.changedTouches,c=b.length,d=0;c>d;d++){var e=b[d],f=this.getTouchData(e);f.originalEvent=a,this.eventData.data=f,this.eventData.stopped=!1,this.processInteractive(f.global,this.renderer._lastObjectRendered,this.processTouchEnd,!0),this.returnTouchData(f)}},d.prototype.processTouchEnd=function(a,b){b?(this.dispatchEvent(a,"touchend",this.eventData),a._touchDown&&(a._touchDown=!1,this.dispatchEvent(a,"tap",this.eventData))):a._touchDown&&(a._touchDown=!1,this.dispatchEvent(a,"touchendoutside",this.eventData))},d.prototype.onTouchMove=function(a){this.autoPreventDefault&&a.preventDefault();for(var b=a.changedTouches,c=b.length,d=0;c>d;d++){var e=b[d],f=this.getTouchData(e);f.originalEvent=a,this.eventData.data=f,this.eventData.stopped=!1,this.processInteractive(f.global,this.renderer._lastObjectRendered,this.processTouchMove,this.moveWhenInside),this.returnTouchData(f)}},d.prototype.processTouchMove=function(a,b){this.moveWhenInside&&!b||this.dispatchEvent(a,"touchmove",this.eventData)},d.prototype.getTouchData=function(a){var b=this.interactiveDataPool.pop();return b||(b=new f),b.identifier=a.identifier,this.mapPositionToPoint(b.global,a.clientX,a.clientY),navigator.isCocoonJS&&(b.global.x=b.global.x/this.resolution,b.global.y=b.global.y/this.resolution),a.globalX=b.global.x,a.globalY=b.global.y,b},d.prototype.returnTouchData=function(a){this.interactiveDataPool.push(a)},d.prototype.destroy=function(){this.removeEvents(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactiveDataPool=null,this.interactionDOMElement=null,this.onMouseUp=null,this.processMouseUp=null,this.onMouseDown=null,this.processMouseDown=null,this.onMouseMove=null,this.processMouseMove=null,this.onMouseOut=null,this.processMouseOverOut=null,this.onTouchStart=null,this.processTouchStart=null,this.onTouchEnd=null,this.processTouchEnd=null,this.onTouchMove=null,this.processTouchMove=null,this._tempPoint=null},e.WebGLRenderer.registerPlugin("interaction",d),e.CanvasRenderer.registerPlugin("interaction",d)},{"../core":29,"./InteractionData":116,"./interactiveTarget":119}],118:[function(a,b,c){b.exports={InteractionData:a("./InteractionData"),InteractionManager:a("./InteractionManager"),interactiveTarget:a("./interactiveTarget")}},{"./InteractionData":116,"./InteractionManager":117,"./interactiveTarget":119}],119:[function(a,b,c){var d={interactive:!1,buttonMode:!1,interactiveChildren:!0,defaultCursor:"pointer",_over:!1,_touchDown:!1};b.exports=d},{}],120:[function(a,b,c){function d(a,b){var c={},d=a.data.getElementsByTagName("info")[0],e=a.data.getElementsByTagName("common")[0];c.font=d.getAttribute("face"),c.size=parseInt(d.getAttribute("size"),10),c.lineHeight=parseInt(e.getAttribute("lineHeight"),10),c.chars={};for(var h=a.data.getElementsByTagName("char"),i=0;ie-b&&ee;e++){var f=2*e;this._renderCanvasDrawTriangle(a,b,c,f,f+2,f+4)}},d.prototype._renderCanvasTriangles=function(a){for(var b=this.vertices,c=this.uvs,d=this.indices,e=d.length,f=0;e>f;f+=3){var g=2*d[f],h=2*d[f+1],i=2*d[f+2];this._renderCanvasDrawTriangle(a,b,c,g,h,i)}},d.prototype._renderCanvasDrawTriangle=function(a,b,c,d,e,f){var g=this._texture.baseTexture,h=g.source,i=g.width,j=g.height,k=b[d],l=b[e],m=b[f],n=b[d+1],o=b[e+1],p=b[f+1],q=c[d]*g.width,r=c[e]*g.width,s=c[f]*g.width,t=c[d+1]*g.height,u=c[e+1]*g.height,v=c[f+1]*g.height;if(this.canvasPadding>0){var w=this.canvasPadding/this.worldTransform.a,x=this.canvasPadding/this.worldTransform.d,y=(k+l+m)/3,z=(n+o+p)/3,A=k-y,B=n-z,C=Math.sqrt(A*A+B*B);k=y+A/C*(C+w),n=z+B/C*(C+x),A=l-y,B=o-z,C=Math.sqrt(A*A+B*B),l=y+A/C*(C+w),o=z+B/C*(C+x),A=m-y,B=p-z,C=Math.sqrt(A*A+B*B),m=y+A/C*(C+w),p=z+B/C*(C+x)}a.save(),a.beginPath(),a.moveTo(k,n),a.lineTo(l,o),a.lineTo(m,p),a.closePath(),a.clip();var D=q*u+t*s+r*v-u*s-t*r-q*v,E=k*u+t*m+l*v-u*m-t*l-k*v,F=q*l+k*s+r*m-l*s-k*r-q*m,G=q*u*m+t*l*s+k*r*v-k*u*s-t*r*m-q*l*v,H=n*u+t*p+o*v-u*p-t*o-n*v,I=q*o+n*s+r*p-o*s-n*r-q*p,J=q*u*p+t*o*s+n*r*v-n*u*s-t*r*p-q*o*v;a.transform(E/D,H/D,F/D,I/D,G/D,J/D),a.drawImage(h,0,0,i*g.resolution,j*g.resolution,0,0,i,j),a.restore()},d.prototype.renderMeshFlat=function(a){var b=this.context,c=a.vertices,d=c.length/2;b.beginPath();for(var e=1;d-2>e;e++){var f=2*e,g=c[f],h=c[f+2],i=c[f+4],j=c[f+1],k=c[f+3],l=c[f+5];b.moveTo(g,j),b.lineTo(h,k),b.lineTo(i,l)}b.fillStyle="#FF0000",b.fill(),b.closePath()},d.prototype._onTextureUpdate=function(){this.updateFrame=!0},d.prototype.getBounds=function(a){if(!this._currentBounds){for(var b=a||this.worldTransform,c=b.a,d=b.b,f=b.c,g=b.d,h=b.tx,i=b.ty,j=-(1/0),k=-(1/0),l=1/0,m=1/0,n=this.vertices,o=0,p=n.length;p>o;o+=2){var q=n[o],r=n[o+1],s=c*q+f*r+h,t=g*r+d*q+i;l=l>s?s:l,m=m>t?t:m,j=s>j?s:j,k=t>k?t:k}if(l===-(1/0)||k===1/0)return e.Rectangle.EMPTY;var u=this._bounds;u.x=l,u.width=j-l,u.y=m,u.height=k-m,this._currentBounds=u}return this._currentBounds},d.prototype.containsPoint=function(a){if(!this.getBounds().contains(a.x,a.y))return!1;this.worldTransform.applyInverse(a,f);var b,c,e=this.vertices,h=g.points;if(this.drawMode===d.DRAW_MODES.TRIANGLES){var i=this.indices;for(c=this.indices.length,b=0;c>b;b+=3){var j=2*i[b],k=2*i[b+1],l=2*i[b+2];if(h[0]=e[j],h[1]=e[j+1],h[2]=e[k],h[3]=e[k+1],h[4]=e[l],h[5]=e[l+1],g.contains(f.x,f.y))return!0}}else for(c=e.length,b=0;c>b;b+=6)if(h[0]=e[b],h[1]=e[b+1],h[2]=e[b+2],h[3]=e[b+3],h[4]=e[b+4],h[5]=e[b+5],g.contains(f.x,f.y))return!0;return!1},d.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},{"../core":29}],126:[function(a,b,c){function d(a,b,c){e.call(this,a),this._ready=!0,this.segmentsX=b||10,this.segmentsY=c||10,this.drawMode=e.DRAW_MODES.TRIANGLES,this.refresh()}var e=a("./Mesh");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.refresh=function(){var a=this.segmentsX*this.segmentsY,b=[],c=[],d=[],e=[],f=this.texture,g=this.segmentsX-1,h=this.segmentsY-1,i=0,j=f.width/g,k=f.height/h;for(i=0;a>i;i++){var l=i%this.segmentsX,m=i/this.segmentsX|0;b.push(l*j,m*k),d.push(f._uvs.x0+(f._uvs.x1-f._uvs.x0)*(l/(this.segmentsX-1)),f._uvs.y0+(f._uvs.y3-f._uvs.y0)*(m/(this.segmentsY-1)))}var n=g*h;for(i=0;n>i;i++){var o=i%g,p=i/g|0,q=p*this.segmentsX+o,r=p*this.segmentsX+o+1,s=(p+1)*this.segmentsX+o,t=(p+1)*this.segmentsX+o+1;e.push(q,r,s),e.push(r,t,s)}this.vertices=new Float32Array(b),this.uvs=new Float32Array(d),this.colors=new Float32Array(c),this.indices=new Uint16Array(e)},d.prototype._onTextureUpdate=function(){e.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()}},{"./Mesh":125}],127:[function(a,b,c){function d(a,b){e.call(this,a),this.points=b,this.vertices=new Float32Array(4*b.length),this.uvs=new Float32Array(4*b.length),this.colors=new Float32Array(2*b.length),this.indices=new Uint16Array(2*b.length),this._ready=!0,this.refresh()}var e=a("./Mesh"),f=a("../core");d.prototype=Object.create(e.prototype),d.prototype.constructor=d,b.exports=d,d.prototype.refresh=function(){var a=this.points;if(!(a.length<1)&&this._texture._uvs){var b=this.uvs,c=this.indices,d=this.colors,e=this._texture._uvs,g=new f.Point(e.x0,e.y0),h=new f.Point(e.x2-e.x0,e.y2-e.y0);b[0]=0+g.x,b[1]=0+g.y,b[2]=0+g.x,b[3]=1*h.y+g.y,d[0]=1,d[1]=1,c[0]=0,c[1]=1;for(var i,j,k,l=a.length,m=1;l>m;m++)i=a[m],j=4*m,k=m/(l-1),b[j]=k*h.x+g.x,b[j+1]=0+g.y,b[j+2]=k*h.x+g.x,b[j+3]=1*h.y+g.y,j=2*m,d[j]=1,d[j+1]=1,j=2*m,c[j]=j,c[j+1]=j+1;this.dirty=!0}},d.prototype._onTextureUpdate=function(){e.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},d.prototype.updateTransform=function(){var a=this.points;if(!(a.length<1)){for(var b,c,d,e,f,g,h=a[0],i=0,j=0,k=this.vertices,l=a.length,m=0;l>m;m++)c=a[m],d=4*m,b=m1&&(e=1),f=Math.sqrt(i*i+j*j),g=this._texture.height/2,i/=f,j/=f,i*=g,j*=g,k[d]=c.x+i,k[d+1]=c.y+j,k[d+2]=c.x-i,k[d+3]=c.y-j,h=c;this.containerUpdateTransform()}}},{"../core":29,"./Mesh":125}],128:[function(a,b,c){b.exports={Mesh:a("./Mesh"),Plane:a("./Plane"),Rope:a("./Rope"),MeshRenderer:a("./webgl/MeshRenderer"),MeshShader:a("./webgl/MeshShader")}},{"./Mesh":125,"./Plane":126,"./Rope":127,"./webgl/MeshRenderer":129,"./webgl/MeshShader":130}],129:[function(a,b,c){function d(a){e.ObjectRenderer.call(this,a),this.indices=new Uint16Array(15e3);for(var b=0,c=0;15e3>b;b+=6,c+=4)this.indices[b+0]=c+0,this.indices[b+1]=c+1,this.indices[b+2]=c+2,this.indices[b+3]=c+0,this.indices[b+4]=c+2,this.indices[b+5]=c+3;this.currentShader=null}var e=a("../../core"),f=a("../Mesh");d.prototype=Object.create(e.ObjectRenderer.prototype),d.prototype.constructor=d,b.exports=d,e.WebGLRenderer.registerPlugin("mesh",d),d.prototype.onContextChange=function(){},d.prototype.render=function(a){a._vertexBuffer||this._initWebGL(a);var b=this.renderer,c=b.gl,d=a._texture.baseTexture,e=a.shader,g=a.drawMode===f.DRAW_MODES.TRIANGLE_MESH?c.TRIANGLE_STRIP:c.TRIANGLES;b.blendModeManager.setBlendMode(a.blendMode),e=e?e.shaders[c.id]||e.getShader(b):b.shaderManager.plugins.meshShader,this.renderer.shaderManager.setShader(e),e.uniforms.translationMatrix.value=a.worldTransform.toArray(!0),e.uniforms.projectionMatrix.value=b.currentRenderTarget.projectionMatrix.toArray(!0),e.uniforms.alpha.value=a.worldAlpha,e.syncUniforms(),a.dirty?(a.dirty=!1,c.bindBuffer(c.ARRAY_BUFFER,a._vertexBuffer),c.bufferData(c.ARRAY_BUFFER,a.vertices,c.STATIC_DRAW),c.vertexAttribPointer(e.attributes.aVertexPosition,2,c.FLOAT,!1,0,0),c.bindBuffer(c.ARRAY_BUFFER,a._uvBuffer),c.bufferData(c.ARRAY_BUFFER,a.uvs,c.STATIC_DRAW),c.vertexAttribPointer(e.attributes.aTextureCoord,2,c.FLOAT,!1,0,0),c.activeTexture(c.TEXTURE0),d._glTextures[c.id]?c.bindTexture(c.TEXTURE_2D,d._glTextures[c.id]):this.renderer.updateTexture(d),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,a._indexBuffer),c.bufferData(c.ELEMENT_ARRAY_BUFFER,a.indices,c.STATIC_DRAW)):(c.bindBuffer(c.ARRAY_BUFFER,a._vertexBuffer),c.bufferSubData(c.ARRAY_BUFFER,0,a.vertices),c.vertexAttribPointer(e.attributes.aVertexPosition,2,c.FLOAT,!1,0,0),c.bindBuffer(c.ARRAY_BUFFER,a._uvBuffer),c.vertexAttribPointer(e.attributes.aTextureCoord,2,c.FLOAT,!1,0,0),c.activeTexture(c.TEXTURE0),d._glTextures[c.id]?c.bindTexture(c.TEXTURE_2D,d._glTextures[c.id]):this.renderer.updateTexture(d),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,a._indexBuffer),c.bufferSubData(c.ELEMENT_ARRAY_BUFFER,0,a.indices)),c.drawElements(g,a.indices.length,c.UNSIGNED_SHORT,0)},d.prototype._initWebGL=function(a){var b=this.renderer.gl;a._vertexBuffer=b.createBuffer(),a._indexBuffer=b.createBuffer(),a._uvBuffer=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,a._vertexBuffer),b.bufferData(b.ARRAY_BUFFER,a.vertices,b.DYNAMIC_DRAW),b.bindBuffer(b.ARRAY_BUFFER,a._uvBuffer),b.bufferData(b.ARRAY_BUFFER,a.uvs,b.STATIC_DRAW),a.colors&&(a._colorBuffer=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,a._colorBuffer),b.bufferData(b.ARRAY_BUFFER,a.colors,b.STATIC_DRAW)),b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,a._indexBuffer),b.bufferData(b.ELEMENT_ARRAY_BUFFER,a.indices,b.STATIC_DRAW)},d.prototype.flush=function(){},d.prototype.start=function(){this.currentShader=null},d.prototype.destroy=function(){e.ObjectRenderer.prototype.destroy.call(this)}},{"../../core":29,"../Mesh":125}],130:[function(a,b,c){function d(a){e.Shader.call(this,a,["precision lowp float;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;","}"].join("\n"),["precision lowp float;","varying vec2 vTextureCoord;","uniform float alpha;","uniform sampler2D uSampler;","void main(void){"," gl_FragColor = texture2D(uSampler, vTextureCoord) * alpha ;","}"].join("\n"),{alpha:{type:"1f",value:0},translationMatrix:{type:"mat3",value:new Float32Array(9)},projectionMatrix:{type:"mat3",value:new Float32Array(9)}},{aVertexPosition:0,aTextureCoord:0})}var e=a("../../core");d.prototype=Object.create(e.Shader.prototype),d.prototype.constructor=d,b.exports=d,e.ShaderManager.registerPlugin("meshShader",d)},{"../../core":29}],131:[function(a,b,c){Math.sign||(Math.sign=function(a){return a=+a,0===a||isNaN(a)?a:a>0?1:-1})},{}],132:[function(a,b,c){Object.assign||(Object.assign=a("object-assign"))},{"object-assign":11}],133:[function(a,b,c){a("./Object.assign"),a("./requestAnimationFrame"),a("./Math.sign")},{"./Math.sign":131,"./Object.assign":132,"./requestAnimationFrame":134}],134:[function(a,b,c){(function(a){if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!a.performance||!a.performance.now){var b=Date.now();a.performance||(a.performance={}),a.performance.now=function(){return Date.now()-b}}for(var c=Date.now(),d=["ms","moz","webkit","o"],e=0;ed&&(d=0),c=b,setTimeout(function(){c=Date.now(),a(performance.now())},d)}),a.cancelAnimationFrame||(a.cancelAnimationFrame=function(a){clearTimeout(a)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[115])(115)});var signaljs=signaljs||{};!function(){"use strict";function a(){this.functions=[]}a.prototype.add=function(a){this.functions.push(a)},a.prototype.remove=function(a){this.functions.splice(this.functions.indexOf(a),1)},a.prototype.clear=function(){this.functions.length=0},a.prototype.emit=function(){var a;for(a=0;aa&&(a=0),0>e&&(e=0),0>f&&(f=0),h||i||j)b.call(this,null,c,d),this.isTintOnly=!1,this.uniforms.m.value=[a,0,0,0,h/255,0,e,0,0,i/255,0,0,f,0,j/255,0,0,0,g,k/255];else{var l=255;this.isTintOnly=!0,this.tint=Math.round(a*l)<<16|Math.round(e*l)<<8|Math.round(f*l)}},f=b.prototype;e.prototype=Object.create(f);pixiflash.ColorFilter=e}(),function(a){var b=function(a,b,c,d){this.brightness=a||0,this.contrast=b||0,this.saturation=c||0,this.hue=d||0};pixiflash.ColorMatrix=b}(),function(a){var b=PIXI.AbstractFilter,c=(PIXI.filters.ColorMatrixFilter,"precision mediump float;varying vec2 vTextureCoord;uniform sampler2D uSampler;uniform float m[25];void main(void){vec4 c = texture2D(uSampler, vTextureCoord);gl_FragColor.r = (m[0] * c.r); gl_FragColor.r += (m[1] * c.g); gl_FragColor.r += (m[2] * c.b); gl_FragColor.r += (m[3] * c.a); gl_FragColor.r += m[4] * c.a;gl_FragColor.g = (m[5] * c.r); gl_FragColor.g += (m[6] * c.g); gl_FragColor.g += (m[7] * c.b); gl_FragColor.g += (m[8] * c.a); gl_FragColor.g += m[9] * c.a; gl_FragColor.b = (m[10] * c.r); gl_FragColor.b += (m[11] * c.g); gl_FragColor.b += (m[12] * c.b); gl_FragColor.b += (m[13] * c.a); gl_FragColor.b += m[14] * c.a; gl_FragColor.a = (m[15] * c.r); gl_FragColor.a += (m[16] * c.g); gl_FragColor.a += (m[17] * c.b); gl_FragColor.a += (m[18] * c.a); gl_FragColor.a += m[19] * c.a;}"),d={m:{type:"1fv",value:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]}},e=function(a){if(b.call(this,null,c,d),0!==a.hue&&this.hue(a.hue,!0),0!==a.contrast&&this.contrast(a.contrast/100,!0),0!==a.brightness){var e=a.brightness/255,f=[1,0,0,0,e,0,1,0,0,e,0,0,1,0,e,0,0,0,1,0];this._loadMatrix(f,!0)}0!==a.saturation&&this.saturate(a.saturation/100,!0)},f=b.prototype;e.prototype=Object.create(f);pixiflash.ColorMatrixFilter=e}(),function(a){var b=PIXI.filters.BlurFilter,c=function(a,c,d){b.call(this),this.blurX=a,this.blurY=c,this.passes=d,this.padding=.5*Math.max(Math.abs(a),Math.abs(c))},d=b.prototype;c.prototype=Object.create(d);pixiflash.BlurFilter=c}(),function(a){var b=PIXI.Point,c=pixiflash.ColorFilter,d=0,e=function(){this.id=++d,this._isPixiFlash=!0,this.skew=new b,this._rotation=0,this._srB=0,this._srC=0,this._crA=1,this._crD=1,this._cachedRotY=0,this._cachedRotX=0,this.tickEnabled=!0,this.removeAllListeners(),this.boundMaskChanged=!1,this._lastComputedTint=this._lastSelfTint=this._lastParentTint=this._selfTint=16777215,this.__filters=null},f=e.prototype,g=Math.PI/180,h=180/Math.PI,i=2*Math.PI;Object.defineProperties(f,{_filters:{enumerable:!0,get:function(){return this.__filters},set:function(a){if(a)if(1==a.length&&a[0]instanceof c&&a[0].isTintOnly)this.tint=a[0].tint,this.__filters=null;else{this.__filters=[];for(var b=0;b>16&255,f=c>>8&255,g=255&c,h=b>>16&255,i=b>>8&255,j=255&b;this._lastComputedTint=Math.round(e*h/d)<<16|Math.round(f*i/d)<<8|Math.round(g*j/d)}return this._lastSelfTint=b,this._lastParentTint=c,this._lastComputedTint}return this._selfTint},set:function(a){this._selfTint=a}},skewX:{enumerable:!0,get:function(){return this.skew.x*h},set:function(a){this.skew.x=a*g}},skewY:{enumerable:!0,get:function(){return this.skew.y*h},set:function(a){this.skew.y=a*g}},rotation:{enumerable:!0,get:function(){return this._rotation*h},set:function(a){this._rotation=a*g}},scaleX:{enumerable:!0,get:function(){return this.scale.x},set:function(a){this.scale.x=a}},scaleY:{enumerable:!0,get:function(){return this.scale.y},set:function(a){this.scale.y=a}},regX:{enumerable:!0,get:function(){return this.pivot.x},set:function(a){this.pivot.x=a}},regY:{enumerable:!0,get:function(){return this.pivot.y},set:function(a){this.pivot.y=a}},mask:{enumerable:!0,get:function(){return this._mask},set:function(a){var b=this._maskShape;b&&a!=b&&(--b._maskUses<1&&b.parent&&b.parent.removeChild(b),b.off("graphicsChanged",this.onShapeChanged)),this._mask&&(this._mask.renderable=!0),a&&a instanceof pixiflash.Shape?(this.boundMaskChanged||(this.boundMaskChanged=!0,this.onShapeChanged=this.onShapeChanged.bind(this),this.onAddedWithMask=this.onAddedWithMask.bind(this)),b!=a&&(b=this._maskShape=a,++b._maskUses,b.on("graphicsChanged",this.onShapeChanged)),a.graphics.graphicsData.length?this._mask=a.graphics:this._mask=null):this._mask=a,a||this._hasAddedEvent&&(this.off("added",this.onAddedWithMask),this._hasAddedEvent=!1),this._mask&&(this.parent?a.parent!=this.parent&&this.parent.addChild(a):this._hasAddedEvent||(this._hasAddedEvent=!0,this.once("added",this.onAddedWithMask)),this._mask.renderable=!1)}}}),f.onAddedWithMask=function(){if(this._mask){var a=this._maskShape||this._mask;a.parent!=this.parent&&this.parent.addChild(a)}},f.cache=function(){},f.onShapeChanged=function(a){this.mask=a},f.displayObjectUpdateTransform=function(){var a,b,c,d,e,f,g=this.parent.worldTransform,h=this.worldTransform,j=this.scale,k=this.skew,l=this.position,m=this.pivot,n=this._rotation+k.y,o=this._rotation+k.x;n%i||o%i?(o===this._cachedRotX&&n===this._cachedRotY||(this._cachedRotX=o,this._cachedRotY=n,this._crA=Math.cos(n),this._srB=Math.sin(n),this._srC=Math.sin(-o),this._crD=Math.cos(o)),a=this._crA*j.x,b=this._srB*j.x,c=this._srC*j.y,d=this._crD*j.y,e=l.x,f=l.y,(m.x||m.y)&&(e-=m.x*a+m.y*c,f-=m.x*b+m.y*d),h.a=a*g.a+b*g.c,h.b=a*g.b+b*g.d,h.c=c*g.a+d*g.c,h.d=c*g.b+d*g.d,h.tx=e*g.a+f*g.c+g.tx,h.ty=e*g.b+f*g.d+g.ty):(a=j.x,d=j.y,e=l.x-m.x*a,f=l.y-m.y*d,h.a=a*g.a,h.b=a*g.b,h.c=d*g.c,h.d=d*g.d,h.tx=e*g.a+f*g.c+g.tx,h.ty=e*g.b+f*g.d+g.ty),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._currentBounds=null},f.setTransform=function(a,b,c,d,e,f,g,h,i){return this.position.x=a||0,this.position.y=b||0,this.scale.x=c?c:1,this.scale.y=d?d:1,this.rotation=e||0,this.skewX=f||0,this.skewY=g||0,this.pivot.x=h||0,this.pivot.y=i||0,this},e.mixin=function(a){for(var b in f){var c=Object.getOwnPropertyDescriptor(f,b);c?Object.defineProperty(a,b,c):a[b]=f[b]}},pixiflash.DisplayObject=e}(),function(a){var b=PIXI.Container,c=pixiflash.DisplayObject,d=PIXI.ticker.shared,e=function(){b.call(this),c.call(this),this.tickChildren=!0,this.once("added",function(){this._tickListener=this._tickListener.bind(this),this._onAdded(),this._onAdded=this._onAdded.bind(this),this._onRemoved=this._onRemoved.bind(this),this.on("added",this._onAdded),this.on("removed",this._onRemoved)}.bind(this))},f=b.prototype,g=e.prototype=Object.create(f);c.mixin(g),g.initialize=e,g.__Container_addChild=g.addChild,g.addChild=function(a){for(var b=0;b=0;b--){var c=this.children[b];c.tickEnabled&&c._tick?c._tick(a):c.tickChildren&&c.Container__tick&&c.Container__tick(a)}},g.__Container_destroy=g.destroy,g.destroy=function(a){this._tickListener&&(d.remove(this._tickListener),this._tickListener=null),this.__Container_destroy(a)},pixiflash.Container=e}(),function(a){var b=PIXI.Sprite,c=pixiflash.DisplayObject,d=function(a){b.call(this,a),c.call(this); },e=d.prototype=Object.create(b.prototype);c.mixin(e),e.initialize=d,pixiflash.Bitmap=d}(),function(a){function b(){throw"MovieClipPlugin cannot be instantiated."}var c=PIXI.Container,d=pixiflash.DisplayObject,e=createjs.Timeline,f=createjs.Tween,g=PIXI.ticker.shared,h=function(a,b,f,g){h.inited||h.init(),c.call(this),d.call(this),this.tickChildren=!0,this.mode=a||h.INDEPENDENT,this.startPosition=b||0,this.loop=f,this.currentFrame=0,this.timeline=new e(null,g,{paused:!0,position:b,useTicks:!0}),this.paused=!1,this.actionsEnabled=!0,this.autoReset=!0,this._synchOffset=0,this._prevPos=-1,this._prevPosition=0,this._t=0,this._framerate=0,this._duration=0,this._managed={},this.once("added",function(){this._tickListener=this._tickListener.bind(this),this._onAdded(),this._onAdded=this._onAdded.bind(this),this._onRemoved=this._onRemoved.bind(this),this.on("added",this._onAdded),this.on("removed",this._onRemoved)}.bind(this))};h.inited=!1,h.init=function(){h.inited||(b.install(),h.inited=!0)},h.INDEPENDENT="independent",h.SINGLE_FRAME="single",h.SYNCHED="synched";var i=h.prototype=Object.create(c.prototype);d.mixin(i),i.initialize=h,i._onAdded=function(){this.parent._isPixiFlash||g.add(this._tickListener)},i._tickListener=function(a){var b=a/g.speed/PIXI.TARGET_FPMS;this._tick(b)},i._onRemoved=function(){this._tickListener&&g.remove(this._tickListener)},i.getLabels=function(){return this.timeline.getLabels()},i.getCurrentLabel=function(){return this._updateTimeline(),this.timeline.getCurrentLabel()};try{Object.defineProperties(i,{labels:{get:i.getLabels},currentLabel:{get:i.getCurrentLabel}})}catch(j){}Object.defineProperty(i,"elapsedTime",{get:function(){return this._t},set:function(a){this._t=a}}),Object.defineProperty(i,"framerate",{get:function(){return this._framerate},set:function(a){a>0?(this._framerate=a,this._duration=a?this.timeline.duration/a:0):this._framerate=this._duration=0}}),i.play=function(){this.paused=!1},i.stop=function(){this.paused=!0},i.gotoAndPlay=function(a){this.paused=!1,this._goto(a)},i.gotoAndStop=function(a){this.paused=!0,this._goto(a)},i.advance=function(a){var b=h.INDEPENDENT;if(this.mode==b){if(!this._framerate){for(var c=this,d=c._framerate;(c=c.parent)&&!d;)c.mode==b&&(d=c._framerate);this.framerate=d}this.paused||(this._framerate>0?(a&&(this._t+=.001*a),this._t>this._duration&&(this._t=this.timeline.loop?this._t-this._duration:this._duration),this._prevPosition=Math.floor(this._t*this._framerate+1e-8),this._prevPosition>this.timeline.duration&&(this._prevPosition=this.timeline.duration)):this._prevPosition=this._prevPos<0?0:this._prevPosition+1)}},i._tick=function(a){this.tickEnabled&&this.advance(a),this._updateTimeline(),this.Container__tick(a)},i.Container__tick=function(a){if(this.tickChildren)for(var b=this.children.length-1;b>=0;b--){var c=this.children[b];c.tickEnabled&&c._tick?c._tick(a):c.tickChildren&&c.Container__tick&&c.Container__tick(a)}},i._goto=function(b){var c=this.timeline.resolve(b);null!==c&&c!==a&&(-1==this._prevPos&&(this._prevPos=NaN),this._prevPosition=c,this._framerate>0?this._t=c/this._framerate:this._t=0,this._updateTimeline())},i._reset=function(){this._prevPos=-1,this._t=0,this.currentFrame=0},i._updateTimeline=function(){var a=this.timeline;if(a){var b=this.mode!=h.INDEPENDENT;if(a.loop=null==this.loop?!0:this.loop,b?a.setPosition(this.startPosition+(this.mode==h.SINGLE_FRAME?0:this._synchOffset),f.NONE):a.setPosition(this._prevPos<0?0:this._prevPosition,this.actionsEnabled?null:f.NONE),this._prevPosition=a._prevPosition,this._prevPos!=a._prevPos){this.currentFrame=this._prevPos=a._prevPos;for(var d in this._managed)this._managed[d]=1;for(var e=a._tweens,g=0,i=e.length;i>g;g++){var j=e[g],k=j._target;if(k!=this&&!j.passive){var l=j._stepPosition;k instanceof c?this._addManagedChild(k,l):this._setState(k.state,l)}}var m=this.children;for(g=m.length-1;g>=0;g--){var n=m[g].id;1==this._managed[n]&&(this.removeChildAt(g),delete this._managed[n])}}}},i._setState=function(a,b){if(a)for(var c=a.length-1;c>=0;c--){var d=a[c],e=d.t,f=d.p;for(var g in f)e[g]=f[g];this._addManagedChild(e,b)}},i._addManagedChild=function(a,b){a._off||(this.addChildAt(a,0),a instanceof h&&(a._synchOffset=b,a._updateTimeline(),a.mode==h.INDEPENDENT&&a.autoReset&&!this._managed[a.id]&&a._reset()),this._managed[a.id]=2)},i.__Container_destroy=i.destroy,i.destroy=function(a){this._tickListener&&(g.remove(this._tickListener),this._tickListener=null),this.__Container_destroy(a)},pixiflash.MovieClip=h,b.priority=100,b.install=function(){f.installPlugin(b,["startPosition"])},b.init=function(a,b,c){return c},b.step=function(){},b.tween=function(a,b,c,d,e,f,g,i){return a.target instanceof h?1==f?e[b]:d[b]:c}}(),function(){var a=PIXI.Rectangle,b=PIXI.Texture,c=PIXI.loaders.Loader,d=function(a){this.frames=[],this._id=null,a&&this._addFrames(a)},e=d.prototype;e._addFrames=function(c){for(var d,e=0;e-1&&(e=f.substr(k+1)),e=e.substr(0,e.lastIndexOf(".")),g.addToGlobal(e)}i.once("complete",function(a,c){for(var d in c){var e=h.images.indexOf(d);h.images[e]=c[d].texture.baseTexture}g._addFrames(h),b(g)}),i.load()},pixiflash.SpriteSheet=d}(),function(a){var b=PIXI.Sprite,c=pixiflash.DisplayObject,d=function(){b.call(this),c.call(this),this.spriteSheet=null},e=d.prototype=Object.create(b.prototype);c.mixin(e),e.initialize=d,e.gotoAndStop=function(a){if(!this._initialized){var b=this.spriteSheet;this.initialize(),this.spriteSheet=b,this._initialized=!0}if(!this.spriteSheet)throw"Sprite doesn't have a spriteSheet";this.texture=this.spriteSheet.getFrame(a)},pixiflash.Sprite=d}(),function(a){var b=PIXI.Graphics,c=pixiflash.utils,d=pixiflash.DisplayObject,e=function(){b.call(this),d.call(this)},f=b.prototype,g=e.prototype=Object.create(f);d.mixin(g),g.initialize=e,pixiflash.Graphics=e;var h={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63};g.mt=g.moveTo,g.lt=function(a,b){return this.op().lineTo(a,b)},g.bt=function(a,b,c,d,e,f){return this.op().bezierCurveTo(a,b,c,d,e,f)},g.dr=g.r=g.drawRect,g.rr=g.drawRoundedRect,g.rc=function(a,b,c,d,e,f,g,h){return console.warn("Complex rounded rectangles not supported"),this.rr(a,b,c,d,e)},g.dc=g.drawCircle,g.a=function(a,b,c,d,e,f){return this.op().arc(a,b,c,d,e,f)},g.at=function(a,b,c,d,e){return this.op().arcTo(a,b,c,d,e)},g.de=function(a,b,c,d){return this.drawEllipse(a+c/2,b+d/2,c/2,d/2)},g.qt=function(a,b,c,d){return this.op().quadraticCurveTo(a,b,c,d)},g.cp=function(){var a=this.currentPath;return a&&a.shape&&(a.shape.closed=!0),this},g.op=function(){var a=this.currentPath;return a&&a.shape&&(a.shape.closed=!1),this},g.f=function(a){if(a){var b=c.colorToHex(a),d=i(a);this.beginFill(b,d)}else this.beginFill(0,0);return this},g.lf=function(a){return console.warn("Linear gradient fills are not supported"),this.f(a[0])},g.rf=function(a){return console.warn("Radial gradient fills are not supported"),this.f(a[0])},g.bf=function(){return console.warn("Bitmap fills are not supported"),this.f("#000000")},g.sd=function(){return console.warn("Dashed strokes are not supported"),this},g.bs=function(){return console.warn("Bitmap strokes are not supported"),this},g.ls=function(){return console.warn("Linear gradient strokes are not supported"),this},g.rs=function(){return console.warn("Radial gradient strokes are not supported"),this},g.ss=function(a,b,c,d,e){return this.lineWidth=a,this},g.s=function(a){return a&&(this.lineColor=c.colorToHex(a),this.lineAlpha=1),this},g.p=function(a){this.filling||this.beginFill();for(var b=[this.mt,this.lt,this.qt,this.bt,this.cp],c=[2,2,4,6,0],d=0,e=a.length,f=[],g=0,i=0,j=h;e>d;){var k=a.charAt(d),l=j[k],m=l>>3,n=b[m];if(!n||3&l)throw"bad path data (@"+d+"): "+k;var o=c[m];m||(g=i=0),f.length=0,d++;for(var p=(l>>2&1)+2,q=0;o>q;q++){var r=j[a.charAt(d)],s=r>>5?-1:1;r=(31&r)<<6|j[a.charAt(d+1)],3==p&&(r=r<<6|j[a.charAt(d+2)]),r=s*r/10,q%2?g=r+=g:i=r+=i,f[q]=r,d+=p}n.apply(this,f)}return this};var i=function(a){return/^rgba\(/.test(a)?parseFloat(a.substring(a.lastIndexOf(",")+1,a.lastIndexOf(")"))):1}}(),function(a){var b=PIXI.Container,c=pixiflash.Graphics,d=pixiflash.DisplayObject,e=function(){b.call(this),d.call(this),this.graphics=new c,this._maskUses=0},f=b.prototype,g=e.prototype=Object.create(f);d.mixin(g),g.initialize=e,pixiflash.Shape=e,Object.defineProperty(g,"graphics",{get:function(){return this._graphics},set:function(a){this._graphics&&this.removeChild(this._graphics),this._graphics=a,a&&this.addChild(a),this.emit("graphicsChanged",this)}}),g.destroy=function(a){this.graphics=null,f.destroy.call(this,a)}}(),function(a){var b=PIXI.Text,c=pixiflash.DisplayObject,d=function(a,d,e){b.call(this,a,{font:d,fill:e,padding:10}),c.call(this)},e=d.prototype=Object.create(b.prototype);Object.defineProperties(e,{textAlign:{set:function(a){"center"==a?this.anchor.x=.5:"right"==a?this.anchor.x=1:this.anchor.x=0,this.style.align=a},get:function(){return this.style.align}},lineHeight:{set:function(a){this.style.lineHeight=a},get:function(){return this.style.lineHeight}},lineWidth:{set:function(a){this.style.wordWrapWidth=a},get:function(){return this.style.wordWrapWidth}},shadow:{set:function(a){this.style.dropShadow=!!a,a&&(this.style.dropShadowColor=a.color)}}}),c.mixin(e),e.initialize=d,pixiflash.Text=d}(),function(a){var b=(pixiflash.utils,function(a,b,c,d){this.color=a});b.prototype;pixiflash.Shadow=b}(),Array.prototype.shuffle||Object.defineProperty(Array.prototype,"shuffle",{enumerable:!1,writable:!1,value:function(){for(var a,b,c=this.length;c;a=Math.floor(Math.random()*c),b=this[--c],this[c]=this[a],this[a]=b);return this}}),Array.prototype.random||Object.defineProperty(Array.prototype,"random",{enumerable:!1,writable:!1,value:function(){return this[Math.floor(Math.random()*this.length)]}}),function(){"use strict";var a="undefined"!=typeof window?window:GLOBAL,b={};if("undefined"!=typeof module&&module.exports)"undefined"==typeof PIXI&&require("pixi.js"),module.exports=b;else if("undefined"==typeof PIXI)throw"pixi-particles requires pixi.js to be loaded first";a.PIXI.particles=a.PIXI.particles||b}(),function(a,b){"use strict";var c=a.BLEND_MODES||a.blendModes,d=a.Texture,e={},f=e.DEG_TO_RADS=Math.PI/180;e.useAPI3=!1;var g=a.VERSION;g&&parseInt(g.substring(0,g.indexOf(".")))>=3&&(e.useAPI3=!0);var h=e.EMPTY_TEXTURE=null;if(e.useAPI3)h=e.EMPTY_TEXTURE=d.EMPTY,h.on=h.destroy=h.once=h.emit=function(){};else{var i=document.createElement("canvas");i.width=i.height=1,h=e.EMPTY_TEXTURE=a.Texture.fromCanvas(i),h.baseTexture.hasLoaded=!1,h.on=h.destroy=h.once=h.emit=function(){}}e.rotatePoint=function(a,b){if(a){a*=f;var c=Math.sin(a),d=Math.cos(a),e=b.x*d-b.y*c,g=b.x*c+b.y*d;b.x=e,b.y=g}},e.combineRGBComponents=function(a,b,c){return a<<16|b<<8|c},e.normalize=function(a){var b=1/e.length(a);a.x*=b,a.y*=b},e.scaleBy=function(a,b){a.x*=b,a.y*=b},e.length=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)},e.hexToRGB=function(a,b){b?b.length=0:b=[],"#"==a.charAt(0)?a=a.substr(1):0===a.indexOf("0x")&&(a=a.substr(2));var c;return 8==a.length&&(c=a.substr(0,2),a=a.substr(2)),b.push(parseInt(a.substr(0,2),16)),b.push(parseInt(a.substr(2,2),16)),b.push(parseInt(a.substr(4,2),16)),c&&b.push(parseInt(c,16)),b},e.generateEase=function(a){var b=a.length,c=1/b,d=function(d){var e,f,g=b*d|0;return e=(d-g*c)*b,f=a[g]||a[b-1],f.s+e*(2*(1-e)*(f.cp-f.s)+e*(f.e-f.s))};return d},e.getBlendMode=function(a){if(!a)return c.NORMAL;for(a=a.toUpperCase();a.indexOf(" ")>=0;)a=a.replace(" ","_");return c[a]||c.NORMAL},a.particles.ParticleUtils=e}(PIXI),function(a,b){"use strict";var c=a.particles.ParticleUtils,d=a.Sprite,e=c.useAPI3,f=function(b){e?d.call(this):d.call(this,c.EMPTY_TEXTURE),this.emitter=b,this.anchor.x=this.anchor.y=.5,this.velocity=new a.Point,this.maxLife=0,this.age=0,this.ease=null,this.extraData=null,this.startAlpha=0,this.endAlpha=0,this.startSpeed=0,this.endSpeed=0,this.acceleration=new a.Point,this.startScale=0,this.endScale=0,this.startColor=null,this._sR=0,this._sG=0,this._sB=0,this.endColor=null,this._eR=0,this._eG=0,this._eB=0,this._doAlpha=!1,this._doScale=!1,this._doSpeed=!1,this._doAcceleration=!1,this._doColor=!1,this._doNormalMovement=!1,this._oneOverLife=0,this.next=null,this.prev=null,this.init=this.init,this.Particle_init=this.Particle_init,this.update=this.update,this.Particle_update=this.Particle_update,this.applyArt=this.applyArt,this.kill=this.kill},g=f.prototype=Object.create(d.prototype);g.init=g.Particle_init=function(){this.age=0,this.velocity.x=this.startSpeed,this.velocity.y=0,c.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=c.DEG_TO_RADS,this.rotationSpeed*=c.DEG_TO_RADS,this.alpha=this.startAlpha,this.scale.x=this.scale.y=this.startScale,this.startColor&&(this._sR=this.startColor[0],this._sG=this.startColor[1],this._sB=this.startColor[2],this.endColor&&(this._eR=this.endColor[0],this._eG=this.endColor[1],this._eB=this.endColor[2])),this._doAlpha=this.startAlpha!=this.endAlpha,this._doSpeed=this.startSpeed!=this.endSpeed,this._doScale=this.startScale!=this.endScale,this._doColor=!!this.endColor,this._doAcceleration=0!==this.acceleration.x||0!==this.acceleration.y,this._doNormalMovement=this._doSpeed||0!==this.startSpeed||this._doAcceleration,this._oneOverLife=1/this.maxLife,this.tint=c.combineRGBComponents(this._sR,this._sG,this._sB),this.visible=!0},g.applyArt=function(a){e?this.texture=a||c.EMPTY_TEXTURE:this.setTexture(a||c.EMPTY_TEXTURE)},g.update=g.Particle_update=function(a){if(this.age+=a,this.age>=this.maxLife)return this.kill(),-1;var b=this.age*this._oneOverLife;if(this.ease&&(b=4==this.ease.length?this.ease(b,0,1,1):this.ease(b)),this._doAlpha&&(this.alpha=(this.endAlpha-this.startAlpha)*b+this.startAlpha),this._doScale){var d=(this.endScale-this.startScale)*b+this.startScale;this.scale.x=this.scale.y=d}if(this._doNormalMovement){if(this._doSpeed){var e=(this.endSpeed-this.startSpeed)*b+this.startSpeed;c.normalize(this.velocity),c.scaleBy(this.velocity,e)}else this._doAcceleration&&(this.velocity.x+=this.acceleration.x*a,this.velocity.y+=this.acceleration.y*a);this.position.x+=this.velocity.x*a,this.position.y+=this.velocity.y*a}if(this._doColor){var f=(this._eR-this._sR)*b+this._sR,g=(this._eG-this._sG)*b+this._sG,h=(this._eB-this._sB)*b+this._sB;this.tint=c.combineRGBComponents(f,g,h)}return 0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*a:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),b},g.kill=function(){this.emitter.recycle(this)},g.Sprite_Destroy=d.prototype.destroy,g.destroy=function(){this.parent&&this.parent.removeChild(this),this.Sprite_Destroy&&this.Sprite_Destroy(),this.emitter=this.velocity=this.startColor=this.endColor=this.ease=this.next=this.prev=null},f.parseArt=function(b){var c;for(c=b.length;c>=0;--c)"string"==typeof b[c]&&(b[c]=a.Texture.fromImage(b[c]));for(c=b.length-1;c>0;--c)if(b[c].baseTexture!=b[c-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return b},f.parseData=function(a){return a},a.particles.Particle=f}(PIXI),function(a,b){"use strict";var c=a.particles.ParticleUtils,d=a.particles.Particle,e=a.particles.ParticleContainer||a.ParticleContainer,f=function(a,b,c){this._particleConstructor=d,this.particleImages=null,this.startAlpha=1,this.endAlpha=1,this.startSpeed=0,this.endSpeed=0,this.acceleration=null,this.startScale=1,this.endScale=1,this.minimumScaleMultiplier=1,this.startColor=null,this.endColor=null,this.minLifetime=0,this.maxLifetime=0,this.minStartRotation=0,this.maxStartRotation=0,this.noRotation=!1,this.minRotationSpeed=0,this.maxRotationSpeed=0,this.particleBlendMode=0,this.customEase=null,this.extraData=null,this._frequency=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=null,this.spawnType=null,this._spawnFunc=null,this.spawnRect=null,this.spawnCircle=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0,this.rotation=0,this.ownerPos=null,this._prevEmitterPos=null,this._prevPosIsValid=!1,this._posChanged=!1,this._parentIsPC=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._origArt=null,this.parent=a,b&&c&&this.init(b,c),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos},g=f.prototype={},h=new a.Point;Object.defineProperty(g,"frequency",{get:function(){return this._frequency},set:function(a){"number"==typeof a&&a>0?this._frequency=a:this._frequency=1}}),Object.defineProperty(g,"particleConstructor",{get:function(){return this._particleConstructor},set:function(a){if(a!=this._particleConstructor){this._particleConstructor=a,this.cleanup();for(var b=this._poolFirst;b;b=b.next)b.destroy();this._poolFirst=null,this._origConfig&&this._origArt&&this.init(this._origArt,this._origConfig)}}}),Object.defineProperty(g,"parent",{get:function(){return this._parent},set:function(a){if(this._parentIsPC)for(var b=this._poolFirst;b;b=b.next)b.parent&&b.parent.removeChild(b);this.cleanup(),this._parent=a,this._parentIsPC=e&&a&&a instanceof e}}),g.init=function(d,e){if(d&&e){this.cleanup(),this._origConfig=e,this._origArt=d,d=Array.isArray(d)?d.slice():[d];var f=this._particleConstructor;this.particleImages=f.parseArt?f.parseArt(d):d,e.alpha?(this.startAlpha=e.alpha.start,this.endAlpha=e.alpha.end):this.startAlpha=this.endAlpha=1,e.speed?(this.startSpeed=e.speed.start,this.endSpeed=e.speed.end):this.startSpeed=this.endSpeed=0;var g=e.acceleration;g&&(g.x||g.y)?(this.endSpeed=this.startSpeed,this.acceleration=new a.Point(g.x,g.y)):this.acceleration=new a.Point,e.scale?(this.startScale=e.scale.start,this.endScale=e.scale.end,this.minimumScaleMultiplier=e.scale.minimumScaleMultiplier||1):this.startScale=this.endScale=this.minimumScaleMultiplier=1,e.color&&(this.startColor=c.hexToRGB(e.color.start),e.color.start!=e.color.end?this.endColor=c.hexToRGB(e.color.end):this.endColor=null),e.startRotation?(this.minStartRotation=e.startRotation.min,this.maxStartRotation=e.startRotation.max):this.minStartRotation=this.maxStartRotation=0,e.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!e.noRotation:this.noRotation=!1,e.rotationSpeed?(this.minRotationSpeed=e.rotationSpeed.min,this.maxRotationSpeed=e.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.minLifetime=e.lifetime.min,this.maxLifetime=e.lifetime.max,this.particleBlendMode=c.getBlendMode(e.blendMode),e.ease?this.customEase="function"==typeof e.ease?e.ease:c.generateEase(e.ease):this.customEase=null,f.parseData?this.extraData=f.parseData(e.extraData):this.extraData=e.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0;var h;switch(e.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var i=e.spawnRect;this.spawnRect=new a.Rectangle(i.x,i.y,i.w,i.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,h=e.spawnCircle,this.spawnCircle=new a.Circle(h.x,h.y,h.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,h=e.spawnCircle,this.spawnCircle=new a.Circle(h.x,h.y,h.r),this.spawnCircle.minRadius=h.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particlesPerWave=e.particlesPerWave,this.particleSpacing=e.particleSpacing,this.angleStart=e.angleStart?e.angleStart:0;break;case"point":this.spawnType="point",this._spawnFunc=this._spawnPoint;break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}this.frequency=e.frequency,this.emitterLifetime=e.emitterLifetime||-1,this.maxParticles=e.maxParticles>0?e.maxParticles:1e3,this.addAtBack=!!e.addAtBack,this.rotation=0,this.ownerPos=new a.Point,this.spawnPos=new a.Point(e.pos.x,e.pos.y),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=e.emit===b?!0:!!e.emit}},g.recycle=function(a){a.next&&(a.next.prev=a.prev),a.prev&&(a.prev.next=a.next),a==this._activeParticlesLast&&(this._activeParticlesLast=a.prev),a==this._activeParticlesFirst&&(this._activeParticlesFirst=a.next),a.prev=null,a.next=this._poolFirst,this._poolFirst=a,this._parentIsPC?(a.alpha=0,a.visible=!1):a.parent&&a.parent.removeChild(a),--this.particleCount},g.rotate=function(a){if(this.rotation!=a){var b=a-this.rotation;this.rotation=a,c.rotatePoint(b,this.spawnPos),this._posChanged=!0}},g.updateSpawnPos=function(a,b){this._posChanged=!0,this.spawnPos.x=a,this.spawnPos.y=b},g.updateOwnerPos=function(a,b){this._posChanged=!0,this.ownerPos.x=a,this.ownerPos.y=b},g.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(g,"emit",{get:function(){return this._emit},set:function(a){this._emit=!!a,this._emitterLife=this.emitterLifetime}}),g.update=function(a){if(this._parent){var b,c,d;for(c=this._activeParticlesFirst;c;c=d)d=c.next,c.update(a);var e,f;this._prevPosIsValid&&(e=this._prevEmitterPos.x,f=this._prevEmitterPos.y);var g=this.ownerPos.x+this.spawnPos.x,h=this.ownerPos.y+this.spawnPos.y;if(this.emit)for(this._spawnTimer-=a;this._spawnTimer<=0;){if(this._emitterLife>0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles)this._spawnTimer+=this._frequency;else{var i;if(i=this.minLifetime==this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimerb;++b){var n;if(this._poolFirst?(n=this._poolFirst,this._poolFirst=this._poolFirst.next,n.next=null):n=new this.particleConstructor(this),this.particleImages.length>1?n.applyArt(this.particleImages.random()):n.applyArt(this.particleImages[0]),n.startAlpha=this.startAlpha,n.endAlpha=this.endAlpha,n.startSpeed=this.startSpeed,n.endSpeed=this.endSpeed,n.acceleration.x=this.acceleration.x,n.acceleration.y=this.acceleration.y,1!=this.minimumScaleMultiplier){var o=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier;n.startScale=this.startScale*o,n.endScale=this.endScale*o}else n.startScale=this.startScale,n.endScale=this.endScale;if(n.startColor=this.startColor,n.endColor=this.endColor,this.minRotationSpeed==this.maxRotationSpeed?n.rotationSpeed=this.minRotationSpeed:n.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,n.noRotation=this.noRotation,n.maxLife=i,n.blendMode=this.particleBlendMode,n.ease=this.customEase,n.extraData=this.extraData,this._spawnFunc(n,j,k,b),n.init(),n.update(-this._spawnTimer),this._parentIsPC&&n.parent){var p=this._parent.children;if(p[0]==n)p.shift();else if(p[p.length-1]==n)p.pop();else{var q=p.indexOf(n);p.splice(q,1)}this.addAtBack?p.unshift(n):p.push(n)}else this.addAtBack?this._parent.addChildAt(n,0):this._parent.addChild(n);this._activeParticlesLast?(this._activeParticlesLast.next=n,n.prev=this._activeParticlesLast,this._activeParticlesLast=n):this._activeParticlesLast=this._activeParticlesFirst=n,++this.particleCount}}this._spawnTimer+=this._frequency}}this._posChanged&&(this._prevEmitterPos.x=g,this._prevEmitterPos.y=h,this._prevPosIsValid=!0,this._posChanged=!1)}},g._spawnPoint=function(a,b,c,d){this.minStartRotation==this.maxStartRotation?a.rotation=this.minStartRotation+this.rotation:a.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,a.position.x=b,a.position.y=c},g._spawnRect=function(a,b,d,e){this.minStartRotation==this.maxStartRotation?a.rotation=this.minStartRotation+this.rotation:a.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,h.x=Math.random()*this.spawnRect.width+this.spawnRect.x,h.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&c.rotatePoint(this.rotation,h),a.position.x=b+h.x,a.position.y=d+h.y},g._spawnCircle=function(a,b,d,e){this.minStartRotation==this.maxStartRotation?a.rotation=this.minStartRotation+this.rotation:a.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,h.x=Math.random()*this.spawnCircle.radius,h.y=0,c.rotatePoint(360*Math.random(),h),h.x+=this.spawnCircle.x,h.y+=this.spawnCircle.y,0!==this.rotation&&c.rotatePoint(this.rotation,h),a.position.x=b+h.x,a.position.y=d+h.y},g._spawnRing=function(a,b,d,e){var f=this.spawnCircle;this.minStartRotation==this.maxStartRotation?a.rotation=this.minStartRotation+this.rotation:a.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,f.minRadius==f.radius?h.x=Math.random()*(f.radius-f.minRadius)+f.minRadius:h.x=f.radius,h.y=0;var g=360*Math.random();a.rotation+=g,c.rotatePoint(g,h),h.x+=this.spawnCircle.x,h.y+=this.spawnCircle.y,0!==this.rotation&&c.rotatePoint(this.rotation,h),a.position.x=b+h.x,a.position.y=d+h.y},g._spawnBurst=function(a,b,c,d){0===this.particleSpacing?a.rotation=360*Math.random():a.rotation=this.angleStart+this.particleSpacing*d+this.rotation,a.position.x=b,a.position.y=c},g.cleanup=function(){var a,b;for(a=this._activeParticlesFirst;a;a=b)b=a.next,this.recycle(a),a.parent&&a.parent.removeChild(a);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},g.destroy=function(){this.cleanup();for(var a,b=this._poolFirst;b;b=a)a=b.next,b.destroy();this._poolFirst=this._parent=this.particleImages=this.spawnPos=this.ownerPos=this.startColor=this.endColor=this.customEase=null},a.particles.Emitter=f}(PIXI),function(a){var b="undefined"!=typeof window?window:GLOBAL;"undefined"==typeof cloudkid&&(b.cloudkid={}),Object.defineProperties(b.cloudkid,{AnimatedParticle:{get:function(){return console.warn("cloudkid namespace is deprecated, please use PIXI.particles"),PIXI.particles.AnimatedParticle}},Emitter:{get:function(){return console.warn("cloudkid namespace is deprecated, please use PIXI.particles"),PIXI.particles.Emitter}},Particle:{get:function(){return console.warn("cloudkid namespace is deprecated, please use PIXI.particles"),PIXI.particles.Particle}},ParticleUtils:{get:function(){return console.warn("cloudkid namespace is deprecated, please use PIXI.particles"),PIXI.particles.ParticleUtils}},PathParticle:{get:function(){return console.warn("cloudkid namespace is deprecated, please use PIXI.particles"),PIXI.particles.PathParticle}}})}(),function(a,b){"use strict";var c=a.particles.ParticleUtils,d=a.particles.Particle,e=a.Texture,f=c.useAPI3,g=function(a){d.call(this,a),this.textures=null,this.duration=0,this.framerate=0,this.elapsed=0,this.loop=!1},h=d.prototype,i=g.prototype=Object.create(h);i.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},i.applyArt=function(a){this.textures=a.textures,this.framerate=a.framerate,this.duration=a.duration,this.loop=a.loop},i.update=function(a){if(this.Particle_update(a)>=0){this.elapsed+=a,this.elapsed>this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6);var b=this.elapsed*this.framerate+1e-7|0;f?this.texture=this.textures[b]||c.EMPTY_TEXTURE:this.setTexture(this.textures[b]||c.EMPTY_TEXTURE)}},i.Particle_destroy=d.prototype.destroy,i.destroy=function(){this.Particle_destroy(),this.textures=null},g.parseArt=function(a){var b,c,d,f,g,h,i=[];for(b=0;b0;--j)h.push(g)}"matchLife"==c.framerate?(i.framerate=-1,i.duration=0,i.loop=!1):(i.loop=!!c.loop,i.framerate=c.framerate>0?c.framerate:60,i.duration=h.length/i.framerate)}return a},a.particles.AnimatedParticle=g}(PIXI),function(PIXI,undefined){"use strict";var ParticleUtils=PIXI.particles.ParticleUtils,Particle=PIXI.particles.Particle,PathParticle=function(a){Particle.call(this,a),this.path=null,this.initialRotation=0,this.initialPosition=new PIXI.Point,this.movement=0},s=Particle.prototype,p=PathParticle.prototype=Object.create(s),helperPoint=new PIXI.Point;p.init=function(){this.initialRotation=this.rotation,this.Particle_init(),this.path=this.extraData.path,this._doNormalMovement=!this.path,this.movement=0,this.initialPosition.x=this.position.x,this.initialPosition.y=this.position.y};for(var MATH_FUNCS=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],WHITELISTER="[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]",index=MATH_FUNCS.length-1;index>=0;--index)WHITELISTER+="|"+MATH_FUNCS[index];WHITELISTER=new RegExp(WHITELISTER,"g");var parsePath=function(pathString){for(var rtn,matches=pathString.match(WHITELISTER),i=matches.length-1;i>=0;--i)MATH_FUNCS.indexOf(matches[i])>=0&&(matches[i]="Math."+matches[i]);return pathString=matches.join(""),eval("rtn = function(x){ return "+pathString+"; };"),rtn};p.update=function(a){var b=this.Particle_update(a);if(b>=0&&this.path){var c=(this.endSpeed-this.startSpeed)*b+this.startSpeed;this.movement+=c*a,helperPoint.x=this.movement,helperPoint.y=this.path(this.movement),ParticleUtils.rotatePoint(this.initialRotation,helperPoint),this.position.x=this.initialPosition.x+helperPoint.x,this.position.y=this.initialPosition.y+helperPoint.y}},p.Particle_destroy=Particle.prototype.destroy,p.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},PathParticle.parseArt=function(a){return Particle.parseArt(a)},PathParticle.parseData=function(a){var b={};if(a&&a.path)try{b.path=parsePath(a.path)}catch(c){console.error("PathParticle: error in parsing path expression"),b.path=null}else console.error("PathParticle requires a path string in extraData!"),b.path=null;return b},PIXI.particles.PathParticle=PathParticle}(PIXI),this.createjs=this.createjs||{},function(){var a=createjs.SoundJS=createjs.SoundJS||{};a.version="0.6.2",a.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},createjs.indexOf=function(a,b){"use strict";for(var c=0,d=a.length;d>c;c++)if(b===a[c])return c;return-1},this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){return a.apply(b,Array.prototype.slice.call(arguments,0).concat(c)); }}}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"BrowserDetect cannot be instantiated"}var b=a.agent=window.navigator.userAgent;a.isWindowPhone=b.indexOf("IEMobile")>-1||b.indexOf("Windows Phone")>-1,a.isFirefox=b.indexOf("Firefox")>-1,a.isOpera=null!=window.opera,a.isChrome=b.indexOf("Chrome")>-1,a.isIOS=(b.indexOf("iPod")>-1||b.indexOf("iPhone")>-1||b.indexOf("iPad")>-1)&&!a.isWindowPhone,a.isAndroid=b.indexOf("Android")>-1&&!a.isWindowPhone,a.isBlackberry=b.indexOf("Blackberry")>-1,createjs.BrowserDetect=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this._listeners=null,this._captureListeners=null}var b=a.prototype;a.initialize=function(a){a.addEventListener=b.addEventListener,a.on=b.on,a.removeEventListener=a.off=b.removeEventListener,a.removeAllEventListeners=b.removeAllEventListeners,a.hasEventListener=b.hasEventListener,a.dispatchEvent=b.dispatchEvent,a._dispatchEvent=b._dispatchEvent,a.willTrigger=b.willTrigger},b.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},b.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},b.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},b.off=b.removeEventListener,b.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},b.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},b.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},b.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},b.toString=function(){return"[EventDispatcher]"},b._dispatchEvent=function(a,b){var c,d=1==b?this._captureListeners:this._listeners;if(a&&d){var e=d[a.type];if(!e||!(c=e.length))return;try{a.currentTarget=this}catch(f){}try{a.eventPhase=b}catch(f){}a.removed=!1,e=e.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=e[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}},createjs.EventDispatcher=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var b=a.prototype;b.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},b.stopPropagation=function(){this.propagationStopped=!0},b.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},b.remove=function(){this.removed=!0},b.clone=function(){return new a(this.type,this.bubbles,this.cancelable)},b.set=function(a){for(var b in a)this[b]=a[b];return this},b.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.Event_constructor("error"),this.title=a,this.message=b,this.data=c}var b=createjs.extend(a,createjs.Event);b.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(a,"Event")}(),this.createjs=this.createjs||{},function(a){"use strict";function b(a,b){this.Event_constructor("progress"),this.loaded=a,this.total=null==b?1:b,this.progress=0==b?0:this.loaded/this.total}var c=createjs.extend(b,createjs.Event);c.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(b,"Event")}(window),this.createjs=this.createjs||{},function(){"use strict";function a(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.LoadItem.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=c.LOAD_TIMEOUT_DEFAULT}var b=a.prototype={},c=a;c.LOAD_TIMEOUT_DEFAULT=8e3,c.create=function(b){if("string"==typeof b){var d=new a;return d.src=b,d}if(b instanceof c)return b;if(b instanceof Object&&b.src)return null==b.loadTimeout&&(b.loadTimeout=c.LOAD_TIMEOUT_DEFAULT),b;throw new Error("Type not recognized.")},b.set=function(a){for(var b in a)this[b]=a[b];return this},createjs.LoadItem=c}(),function(){var a={};a.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i,a.RELATIVE_PATT=/^[.\/]*?\//i,a.EXTENSION_PATT=/\/?[^\/]+\.(\w{1,5})$/i,a.parseURI=function(b){var c={absolute:!1,relative:!1};if(null==b)return c;var d=b.indexOf("?");d>-1&&(b=b.substr(0,d));var e;return a.ABSOLUTE_PATT.test(b)?c.absolute=!0:a.RELATIVE_PATT.test(b)&&(c.relative=!0),(e=b.match(a.EXTENSION_PATT))&&(c.extension=e[1].toLowerCase()),c},a.formatQueryString=function(a,b){if(null==a)throw new Error("You must specify data.");var c=[];for(var d in a)c.push(d+"="+escape(a[d]));return b&&(c=c.concat(b)),c.join("&")},a.buildPath=function(a,b){if(null==b)return a;var c=[],d=a.indexOf("?");if(-1!=d){var e=a.slice(d+1);c=c.concat(e.split("&"))}return-1!=d?a.slice(0,d)+"?"+this.formatQueryString(b,c):a+"?"+this.formatQueryString(b,c)},a.isCrossDomain=function(a){var b=document.createElement("a");b.href=a.src;var c=document.createElement("a");c.href=location.href;var d=""!=b.hostname&&(b.port!=c.port||b.protocol!=c.protocol||b.hostname!=c.hostname);return d},a.isLocal=function(a){var b=document.createElement("a");return b.href=a.src,""==b.hostname&&"file:"==b.protocol},a.isBinary=function(a){switch(a){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}},a.isImageTag=function(a){return a instanceof HTMLImageElement},a.isAudioTag=function(a){return window.HTMLAudioElement?a instanceof HTMLAudioElement:!1},a.isVideoTag=function(a){return window.HTMLVideoElement?a instanceof HTMLVideoElement:!1},a.isText=function(a){switch(a){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}},a.getTypeByExtension=function(a){if(null==a)return createjs.AbstractLoader.TEXT;switch(a.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}},createjs.RequestUtils=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=c,this.resultFormatter=null,a?this._item=createjs.LoadItem.create(a):this._item=null,this._preferXHR=b,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var b=createjs.extend(a,createjs.EventDispatcher),c=a;c.POST="POST",c.GET="GET",c.BINARY="binary",c.CSS="css",c.IMAGE="image",c.JAVASCRIPT="javascript",c.JSON="json",c.JSONP="jsonp",c.MANIFEST="manifest",c.SOUND="sound",c.VIDEO="video",c.SPRITESHEET="spritesheet",c.SVG="svg",c.TEXT="text",c.XML="xml",b.getItem=function(){return this._item},b.getResult=function(a){return a?this._rawResult:this._result},b.getTag=function(){return this._tag},b.setTag=function(a){this._tag=a},b.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var a=new createjs.Event("initialize");a.loader=this._request,this.dispatchEvent(a),this._request.load()},b.cancel=function(){this.canceled=!0,this.destroy()},b.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},b.getLoadedItems=function(){return this._loadedItems},b._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},b._createTag=function(a){return null},b._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},b._sendProgress=function(a){if(!this._isCanceled()){var b=null;"number"==typeof a?(this.progress=a,b=new createjs.ProgressEvent(this.progress)):(b=a,this.progress=a.loaded/a.total,b.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(b)}},b._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var a=new createjs.Event("complete");a.rawResult=this._rawResult,null!=this._result&&(a.result=this._result),this.dispatchEvent(a)}},b._sendError=function(a){!this._isCanceled()&&this.hasEventListener("error")&&(null==a&&(a=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(a))},b._isCanceled=function(){return!(null!=window.createjs&&!this.canceled)},b.resultFormatter=null,b.handleEvent=function(a){switch(a.type){case"complete":this._rawResult=a.target._response;var b=this.resultFormatter&&this.resultFormatter(this);b instanceof Function?b.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=b||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(a);break;case"error":this._sendError(a);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+a.type.toUpperCase()+"_ERROR"))}},b._resultFormatSuccess=function(a){this._result=a,this._sendComplete()},b._resultFormatFailed=function(a){this._sendError(a)},b.buildPath=function(a,b){return createjs.RequestUtils.buildPath(a,b)},b.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractLoader_constructor(a,b,c),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var b=createjs.extend(a,createjs.AbstractLoader);b.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},b._createTag=function(){},b._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},b._updateXHR=function(a){a.loader.setResponseType&&a.loader.setResponseType("blob")},b._formatResult=function(a){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var b=window.URL||window.webkitURL,c=a.getResult(!0);a.getTag().src=b.createObjectURL(c)}return a.getTag()},createjs.AbstractMediaLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(a){this._item=a},b=createjs.extend(a,createjs.EventDispatcher);b.load=function(){},b.destroy=function(){},b.cancel=function(){},createjs.AbstractRequest=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1,this._startTagVisibility=null}var b=createjs.extend(a,createjs.AbstractRequest);b.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var a=new createjs.Event("initialize");a.loader=this._tag,this.dispatchEvent(a),this._hideTag(),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)},b.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},b._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;"loaded"!=a.readyState&&"complete"!=a.readyState||this._handleTagComplete()},b._handleError=function(){this._clean(),this.dispatchEvent("error")},b._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this._showTag(),this.dispatchEvent("complete")},b._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},b._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},b._hideTag=function(){this._startTagVisibility=this._tag.style.visibility,this._tag.style.visibility="hidden"},b._showTag=function(){this._tag.style.visibility=this._startTagVisibility},b._handleStalled=function(){},createjs.TagRequest=createjs.promote(a,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var b=createjs.extend(a,createjs.TagRequest);b.load=function(){var a=createjs.proxy(this._handleStalled,this);this._stalledCallback=a;var b=createjs.proxy(this._handleProgress,this);this._handleProgress=b,this._tag.addEventListener("stalled",a),this._tag.addEventListener("progress",b),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},b._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;"loaded"!=a.readyState&&"complete"!=a.readyState||this._handleTagComplete()},b._handleStalled=function(){},b._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},b._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(a,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractRequest_constructor(a),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),!this._createXHR(a)}var b=createjs.extend(a,createjs.AbstractRequest);a.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b.getResult=function(a){return a&&this._rawResponse?this._rawResponse:this._response},b.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},b.load=function(){if(null==this._request)return void this._handleError();null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(a){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,a))}},b.setResponseType=function(a){"blob"===a&&(a=window.URL?"blob":"arraybuffer",this._responseType=a),this._request.responseType=a},b.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},b.getResponseHeader=function(a){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(a):null},b._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},b._handleLoadStart=function(a){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},b._handleAbort=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,a))},b._handleError=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(a.message))},b._handleReadyStateChange=function(a){4==this._request.readyState&&this._handleLoad()},b._handleLoad=function(a){if(!this.loaded){this.loaded=!0;var b=this._checkError();if(b)return void this._handleError(b);if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(c){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===c.name&&window.BlobBuilder){var d=new BlobBuilder;d.append(this._response),this._response=d.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},b._handleTimeout=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,a))},b._checkError=function(){var a=parseInt(this._request.status);switch(a){case 404:case 0:return new Error(a)}return null},b._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(a){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(a){}return null},b._createXHR=function(a){var b=createjs.RequestUtils.isCrossDomain(a),c={},d=null;if(window.XMLHttpRequest)d=new XMLHttpRequest,b&&void 0===d.withCredentials&&window.XDomainRequest&&(d=new XDomainRequest);else{for(var e=0,f=s.ACTIVEX_VERSIONS.length;f>e;e++){var g=s.ACTIVEX_VERSIONS[e];try{d=new ActiveXObject(g);break}catch(h){}}if(null==d)return!1}null==a.mimeType&&createjs.RequestUtils.isText(a.type)&&(a.mimeType="text/plain; charset=utf-8"),a.mimeType&&d.overrideMimeType&&d.overrideMimeType(a.mimeType),this._xhrLevel="string"==typeof d.responseType?2:1;var i=null;if(i=a.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(a.src,a.values):a.src,d.open(a.method||createjs.AbstractLoader.GET,i,!0),b&&d instanceof XMLHttpRequest&&1==this._xhrLevel&&(c.Origin=location.origin),a.values&&a.method==createjs.AbstractLoader.POST&&(c["Content-Type"]="application/x-www-form-urlencoded"),b||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest"),a.headers)for(var j in a.headers)c[j]=a.headers[j];for(j in c)d.setRequestHeader(j,c[j]);return d instanceof XMLHttpRequest&&void 0!==a.withCredentials&&(d.withCredentials=a.withCredentials),this._request=d,!0},b._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},b.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(a,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractMediaLoader_constructor(a,b,createjs.AbstractLoader.SOUND),createjs.RequestUtils.isAudioTag(a)?this._tag=a:createjs.RequestUtils.isAudioTag(a.src)?this._tag=a:createjs.RequestUtils.isAudioTag(a.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(a)?a:a.src),null!=this._tag&&(this._preferXHR=!1)}var b=createjs.extend(a,createjs.AbstractMediaLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.AbstractLoader.SOUND},b._createTag=function(a){var b=document.createElement("audio");return b.autoplay=!1,b.preload="none",b.src=a,b},createjs.SoundLoader=createjs.promote(a,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},b=a.prototype={},c=a;c.create=function(a){if(a instanceof c||a instanceof Object){var b=new createjs.PlayPropsConfig;return b.set(a),b}throw new Error("Type not recognized.")},b.set=function(a){for(var b in a)this[b]=a[b];return this},b.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=c}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Sound cannot be instantiated"}function b(a,b){this.init(a,b)}var c=a;c.INTERRUPT_ANY="any",c.INTERRUPT_EARLY="early",c.INTERRUPT_LATE="late",c.INTERRUPT_NONE="none",c.PLAY_INITED="playInited",c.PLAY_SUCCEEDED="playSucceeded",c.PLAY_INTERRUPTED="playInterrupted",c.PLAY_FINISHED="playFinished",c.PLAY_FAILED="playFailed",c.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],c.EXTENSION_MAP={m4a:"mp4"},c.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/,c.defaultInterruptBehavior=c.INTERRUPT_NONE,c.alternateExtensions=[],c.activePlugin=null,c._masterVolume=1,Object.defineProperty(c,"volume",{get:function(){return this._masterVolume},set:function(a){if(null==Number(a))return!1;if(a=Math.max(0,Math.min(1,a)),c._masterVolume=a,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(a))for(var b=this._instances,d=0,e=b.length;e>d;d++)b[d].setMasterVolume(a)}}),c._masterMute=!1,Object.defineProperty(c,"muted",{get:function(){return this._masterMute},set:function(a){if(null==a)return!1;if(this._masterMute=a,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(a))for(var b=this._instances,c=0,d=b.length;d>c;c++)b[c].setMasterMute(a);return!0}}),Object.defineProperty(c,"capabilities",{get:function(){return null==c.activePlugin?null:c.activePlugin._capabilities},set:function(a){return!1}}),c._pluginsRegistered=!1,c._lastID=0,c._instances=[],c._idHash={},c._preloadHash={},c._defaultPlayPropsHash={},c.addEventListener=null,c.removeEventListener=null,c.removeAllEventListeners=null,c.dispatchEvent=null,c.hasEventListener=null,c._listeners=null,createjs.EventDispatcher.initialize(c),c.getPreloadHandlers=function(){return{callback:createjs.proxy(c.initLoad,c),types:["sound"],extensions:c.SUPPORTED_EXTENSIONS}},c._handleLoadComplete=function(a){var b=a.target.getItem().src;if(c._preloadHash[b])for(var d=0,e=c._preloadHash[b].length;e>d;d++){var f=c._preloadHash[b][d];if(c._preloadHash[b][d]=!0,c.hasEventListener("fileload")){var a=new createjs.Event("fileload");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,c.dispatchEvent(a)}}},c._handleLoadError=function(a){var b=a.target.getItem().src;if(c._preloadHash[b])for(var d=0,e=c._preloadHash[b].length;e>d;d++){var f=c._preloadHash[b][d];if(c._preloadHash[b][d]=!1,c.hasEventListener("fileerror")){var a=new createjs.Event("fileerror");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,c.dispatchEvent(a)}}},c._registerPlugin=function(a){return a.isSupported()?(c.activePlugin=new a,!0):!1},c.registerPlugins=function(a){c._pluginsRegistered=!0;for(var b=0,d=a.length;d>b;b++)if(c._registerPlugin(a[b]))return!0;return!1},c.initializeDefaultPlugins=function(){return null!=c.activePlugin?!0:c._pluginsRegistered?!1:!!c.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])},c.isReady=function(){return null!=c.activePlugin},c.getCapabilities=function(){return null==c.activePlugin?null:c.activePlugin._capabilities},c.getCapability=function(a){return null==c.activePlugin?null:c.activePlugin._capabilities[a]},c.initLoad=function(a){return c._registerSound(a)},c._registerSound=function(a){if(!c.initializeDefaultPlugins())return!1;var d;if(a.src instanceof Object?(d=c._parseSrc(a.src),d.src=a.path+d.src):d=c._parsePath(a.src),null==d)return!1;a.src=d.src,a.type="sound";var e=a.data,f=null;if(null!=e&&(isNaN(e.channels)?isNaN(e)||(f=parseInt(e)):f=parseInt(e.channels),e.audioSprite))for(var g,h=e.audioSprite.length;h--;)g=e.audioSprite[h],c._idHash[g.id]={src:a.src,startTime:parseInt(g.startTime),duration:parseInt(g.duration)},g.defaultPlayProps&&(c._defaultPlayPropsHash[g.id]=createjs.PlayPropsConfig.create(g.defaultPlayProps));null!=a.id&&(c._idHash[a.id]={src:a.src});var i=c.activePlugin.register(a);return b.create(a.src,f),null!=e&&isNaN(e)?a.data.channels=f||b.maxPerChannel():a.data=f||b.maxPerChannel(),i.type&&(a.type=i.type),a.defaultPlayProps&&(c._defaultPlayPropsHash[a.src]=createjs.PlayPropsConfig.create(a.defaultPlayProps)),i},c.registerSound=function(a,b,d,e,f){var g={src:a,id:b,data:d,defaultPlayProps:f};a instanceof Object&&a.src&&(e=b,g=a),g=createjs.LoadItem.create(g),g.path=e,null==e||g.src instanceof Object||(g.src=e+a);var h=c._registerSound(g);if(!h)return!1;if(c._preloadHash[g.src]||(c._preloadHash[g.src]=[]),c._preloadHash[g.src].push(g),1==c._preloadHash[g.src].length)h.on("complete",createjs.proxy(this._handleLoadComplete,this)),h.on("error",createjs.proxy(this._handleLoadError,this)),c.activePlugin.preload(h);else if(1==c._preloadHash[g.src][0])return!0;return g},c.registerSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.registerSound(a[d].src,a[d].id,a[d].data,b,a[d].defaultPlayProps);return c},c.removeSound=function(a,d){if(null==c.activePlugin)return!1;a instanceof Object&&a.src&&(a=a.src);var e;if(a instanceof Object?e=c._parseSrc(a):(a=c._getSrcById(a).src,e=c._parsePath(a)),null==e)return!1;a=e.src,null!=d&&(a=d+a);for(var f in c._idHash)c._idHash[f].src==a&&delete c._idHash[f];return b.removeSrc(a),delete c._preloadHash[a],c.activePlugin.removeSound(a),!0},c.removeSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.removeSound(a[d].src,b);return c},c.removeAllSounds=function(){c._idHash={},c._preloadHash={},b.removeAll(),c.activePlugin&&c.activePlugin.removeAllSounds()},c.loadComplete=function(a){if(!c.isReady())return!1;var b=c._parsePath(a);return a=b?c._getSrcById(b.src).src:c._getSrcById(a).src,void 0==c._preloadHash[a]?!1:1==c._preloadHash[a][0]},c._parsePath=function(a){"string"!=typeof a&&(a=a.toString());var b=a.match(c.FILE_PATTERN);if(null==b)return!1;for(var d=b[4],e=b[5],f=c.capabilities,g=0;!f[e];)if(e=c.alternateExtensions[g++],g>c.alternateExtensions.length)return null;a=a.replace("."+b[5],"."+e);var h={name:d,src:a,extension:e};return h},c._parseSrc=function(a){var b={name:void 0,src:void 0,extension:void 0},d=c.capabilities;for(var e in a)if(a.hasOwnProperty(e)&&d[e]){b.src=a[e],b.extension=e;break}if(!b.src)return!1;var f=b.src.lastIndexOf("/");return-1!=f?b.name=b.src.slice(f+1):b.name=b.src,b},c.play=function(a,b,d,e,f,g,h,i,j){var k;k=b instanceof Object||b instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(b):createjs.PlayPropsConfig.create({interrupt:b,delay:d,offset:e,loop:f,volume:g,pan:h,startTime:i,duration:j});var l=c.createInstance(a,k.startTime,k.duration),m=c._playInstance(l,k);return m||l._playFailed(),l},c.createInstance=function(a,d,e){if(!c.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(a,d,e);var f=c._defaultPlayPropsHash[a];a=c._getSrcById(a);var g=c._parsePath(a.src),h=null;return null!=g&&null!=g.src?(b.create(g.src),null==d&&(d=a.startTime),h=c.activePlugin.create(g.src,d,e||a.duration),f=f||c._defaultPlayPropsHash[g.src],f&&h.applyPlayProps(f)):h=new createjs.DefaultSoundInstance(a,d,e),h.uniqueId=c._lastID++,h},c.stop=function(){for(var a=this._instances,b=a.length;b--;)a[b].stop()},c.setVolume=function(a){if(null==Number(a))return!1;if(a=Math.max(0,Math.min(1,a)),c._masterVolume=a,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(a))for(var b=this._instances,d=0,e=b.length;e>d;d++)b[d].setMasterVolume(a)},c.getVolume=function(){return this._masterVolume},c.setMute=function(a){if(null==a)return!1;if(this._masterMute=a,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(a))for(var b=this._instances,c=0,d=b.length;d>c;c++)b[c].setMasterMute(a);return!0},c.getMute=function(){return this._masterMute},c.setDefaultPlayProps=function(a,b){a=c._getSrcById(a),c._defaultPlayPropsHash[c._parsePath(a.src).src]=createjs.PlayPropsConfig.create(b)},c.getDefaultPlayProps=function(a){return a=c._getSrcById(a),c._defaultPlayPropsHash[c._parsePath(a.src).src]},c._playInstance=function(a,b){var d=c._defaultPlayPropsHash[a.src]||{};if(null==b.interrupt&&(b.interrupt=d.interrupt||c.defaultInterruptBehavior),null==b.delay&&(b.delay=d.delay||0),null==b.offset&&(b.offset=a.getPosition()),null==b.loop&&(b.loop=a.loop),null==b.volume&&(b.volume=a.volume),null==b.pan&&(b.pan=a.pan),0==b.delay){var e=c._beginPlaying(a,b);if(!e)return!1}else{ var f=setTimeout(function(){c._beginPlaying(a,b)},b.delay);a.delayTimeoutId=f}return this._instances.push(a),!0},c._beginPlaying=function(a,c){if(!b.add(a,c.interrupt))return!1;var d=a._beginPlaying(c);if(!d){var e=createjs.indexOf(this._instances,a);return e>-1&&this._instances.splice(e,1),!1}return!0},c._getSrcById=function(a){return c._idHash[a]||{src:a}},c._playFinished=function(a){b.remove(a);var c=createjs.indexOf(this._instances,a);c>-1&&this._instances.splice(c,1)},createjs.Sound=a,b.channels={},b.create=function(a,c){var d=b.get(a);return null==d?(b.channels[a]=new b(a,c),!0):!1},b.removeSrc=function(a){var c=b.get(a);return null==c?!1:(c._removeAll(),delete b.channels[a],!0)},b.removeAll=function(){for(var a in b.channels)b.channels[a]._removeAll();b.channels={}},b.add=function(a,c){var d=b.get(a.src);return null==d?!1:d._add(a,c)},b.remove=function(a){var c=b.get(a.src);return null==c?!1:(c._remove(a),!0)},b.maxPerChannel=function(){return d.maxDefault},b.get=function(a){return b.channels[a]};var d=b.prototype;d.constructor=b,d.src=null,d.max=null,d.maxDefault=100,d.length=0,d.init=function(a,b){this.src=a,this.max=b||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},d._get=function(a){return this._instances[a]},d._add=function(a,b){return this._getSlot(b,a)?(this._instances.push(a),this.length++,!0):!1},d._remove=function(a){var b=createjs.indexOf(this._instances,a);return-1==b?!1:(this._instances.splice(b,1),this.length--,!0)},d._removeAll=function(){for(var a=this.length-1;a>=0;a--)this._instances[a].stop()},d._getSlot=function(b,c){var d,e;if(b!=a.INTERRUPT_NONE&&(e=this._get(0),null==e))return!0;for(var f=0,g=this.max;g>f;f++){if(d=this._get(f),null==d)return!0;if(d.playState==a.PLAY_FINISHED||d.playState==a.PLAY_INTERRUPTED||d.playState==a.PLAY_FAILED){e=d;break}b!=a.INTERRUPT_NONE&&(b==a.INTERRUPT_EARLY&&d.getPosition()e.getPosition())&&(e=d)}return null!=e?(e._interrupt(),this._remove(e),!0):!1},d.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(a,b,c,d){this.EventDispatcher_constructor(),this.src=a,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume}),this._pan=0,Object.defineProperty(this,"pan",{get:this.getPan,set:this.setPan}),this._startTime=Math.max(0,b||0),Object.defineProperty(this,"startTime",{get:this.getStartTime,set:this.setStartTime}),this._duration=Math.max(0,c||0),Object.defineProperty(this,"duration",{get:this.getDuration,set:this.setDuration}),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this.getPlaybackResource,set:this.setPlaybackResource}),d!==!1&&d!==!0&&this.setPlaybackResource(d),this._position=0,Object.defineProperty(this,"position",{get:this.getPosition,set:this.setPosition}),this._loop=0,Object.defineProperty(this,"loop",{get:this.getLoop,set:this.setLoop}),this._muted=!1,Object.defineProperty(this,"muted",{get:this.getMuted,set:this.setMuted}),this._paused=!1,Object.defineProperty(this,"paused",{get:this.getPaused,set:this.setPaused})},b=createjs.extend(a,createjs.EventDispatcher);b.play=function(a,b,c,d,e,f){var g;return g=a instanceof Object||a instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(a):createjs.PlayPropsConfig.create({interrupt:a,delay:b,offset:c,loop:d,volume:e,pan:f}),this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(g),void(this._paused&&this.setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,g),this)},b.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},b.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},b.applyPlayProps=function(a){return null!=a.offset&&this.setPosition(a.offset),null!=a.loop&&this.setLoop(a.loop),null!=a.volume&&this.setVolume(a.volume),null!=a.pan&&this.setPan(a.pan),null!=a.startTime&&(this.setStartTime(a.startTime),this.setDuration(a.duration)),this},b.toString=function(){return"[AbstractSoundInstance]"},b.getPaused=function(){return this._paused},b.setPaused=function(a){return a!==!0&&a!==!1||this._paused==a||1==a&&this.playState!=createjs.Sound.PLAY_SUCCEEDED?void 0:(this._paused=a,a?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)},b.setVolume=function(a){return a==this._volume?this:(this._volume=Math.max(0,Math.min(1,a)),this._muted||this._updateVolume(),this)},b.getVolume=function(){return this._volume},b.setMuted=function(a){return a===!0||a===!1?(this._muted=a,this._updateVolume(),this):void 0},b.getMuted=function(){return this._muted},b.setPan=function(a){return a==this._pan?this:(this._pan=Math.max(-1,Math.min(1,a)),this._updatePan(),this)},b.getPan=function(){return this._pan},b.getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},b.setPosition=function(a){return this._position=Math.max(0,a),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},b.getStartTime=function(){return this._startTime},b.setStartTime=function(a){return a==this._startTime?this:(this._startTime=Math.max(0,a||0),this._updateStartTime(),this)},b.getDuration=function(){return this._duration},b.setDuration=function(a){return a==this._duration?this:(this._duration=Math.max(0,a||0),this._updateDuration(),this)},b.setPlaybackResource=function(a){return this._playbackResource=a,0==this._duration&&this._setDurationFromSource(),this},b.getPlaybackResource=function(){return this._playbackResource},b.getLoop=function(){return this._loop},b.setLoop=function(a){null!=this._playbackResource&&(0!=this._loop&&0==a?this._removeLooping(a):0==this._loop&&0!=a&&this._addLooping(a)),this._loop=a},b._sendEvent=function(a){var b=new createjs.Event(a);this.dispatchEvent(b)},b._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},b._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},b._beginPlaying=function(a){return this.setPosition(a.offset),this.setLoop(a.loop),this.setVolume(a.volume),this.setPan(a.pan),null!=a.startTime&&(this.setStartTime(a.startTime),this.setDuration(a.duration)),null!=this._playbackResource&&this._positionc;c++){var e=this._soundInstances[b][c];e.setPlaybackResource(this._audioSources[b])}},b._handlePreloadError=function(a){},b._updateVolume=function(){},createjs.AbstractPlugin=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.AbstractLoader.SOUND)}var b=createjs.extend(a,createjs.AbstractLoader);a.context=null,b.toString=function(){return"[WebAudioLoader]"},b._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},b._sendComplete=function(b){a.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},b._handleAudioDecoded=function(a){this._result=a,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,d,e){this.AbstractSoundInstance_constructor(a,b,d,e),this.gainNode=c.context.createGain(),this.panNode=c.context.createPanner(),this.panNode.panningModel=c._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var b=createjs.extend(a,createjs.AbstractSoundInstance),c=a;c.context=null,c._scratchBuffer=null,c.destinationNode=null,c._panningModel="equalpower",b.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},b.toString=function(){return"[WebAudioSoundInstance]"},b._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},b._removeLooping=function(a){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},b._addLooping=function(a){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},b._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},b._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},b._cleanUpAudioNode=function(a){if(a){a.stop(0),a.disconnect(0);try{a.buffer=c._scratchBuffer}catch(b){}a=null}return a},b._handleSoundReady=function(a){this.gainNode.connect(c.destinationNode);var b=.001*this._duration,d=.001*this._position;d>b&&(d=b),this.sourceNode=this._createAndPlayAudioNode(c.context.currentTime-b,d),this._playbackStartTime=this.sourceNode.startTime-d,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(b-d)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},b._createAndPlayAudioNode=function(a,b){var d=c.context.createBufferSource();d.buffer=this.playbackResource,d.connect(this.panNode);var e=.001*this._duration;return d.startTime=a+e,d.start(d.startTime,b+.001*this._startTime,e-b),d},b._pause=function(){this._position=1e3*(c.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},b._resume=function(){this._handleSoundReady()},b._updateVolume=function(){var a=this._muted?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},b._calculateCurrentPosition=function(){return 1e3*(c.context.currentTime-this._playbackStartTime)},b._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},b._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},b._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(a,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.AbstractPlugin_constructor(),this._panningModel=c._panningModel,this.context=c.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=c._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var b=createjs.extend(a,createjs.AbstractPlugin),c=a;c._capabilities=null,c._panningModel="equalpower",c.context=null,c._scratchBuffer=null,c._unlocked=!1,c.isSupported=function(){var a=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return"file:"!=location.protocol||a||this._isFileXHRSupported()?(c._generateCapabilities(),null!=c.context):!1},c.playEmptySound=function(){if(null!=c.context){var a=c.context.createBufferSource();a.buffer=c._scratchBuffer,a.connect(c.context.destination),a.start(0,0,0)}},c._isFileXHRSupported=function(){var a=!0,b=new XMLHttpRequest;try{b.open("GET","WebAudioPluginTest.fail",!1)}catch(c){return a=!1}b.onerror=function(){a=!1},b.onload=function(){a=404==this.status||200==this.status||0==this.status&&""!=this.response};try{b.send()}catch(c){a=!1}return a},c._generateCapabilities=function(){if(null==c._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;if(null==c.context)if(window.AudioContext)c.context=new AudioContext;else{if(!window.webkitAudioContext)return null;c.context=new webkitAudioContext}null==c._scratchBuffer&&(c._scratchBuffer=c.context.createBuffer(1,1,22050)),c._compatibilitySetUp(),"ontouchstart"in window&&"running"!=c.context.state&&(c._unlock(),document.addEventListener("mousedown",c._unlock,!0),document.addEventListener("touchend",c._unlock,!0)),c._capabilities={panning:!0,volume:!0,tracks:-1};for(var b=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=b.length;f>e;e++){var g=b[e],h=d[g]||g;c._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}c.context.destination.numberOfChannels<2&&(c._capabilities.panning=!1)}},c._compatibilitySetUp=function(){if(c._panningModel="equalpower",!c.context.createGain){c.context.createGain=c.context.createGainNode;var a=c.context.createBufferSource();a.__proto__.start=a.__proto__.noteGrainOn,a.__proto__.stop=a.__proto__.noteOff,c._panningModel=0}},c._unlock=function(){c._unlocked||(c.playEmptySound(),"running"==c.context.state&&(document.removeEventListener("mousedown",c._unlock,!0),document.removeEventListener("touchend",c._unlock,!0),c._unlocked=!0))},b.toString=function(){return"[WebAudioPlugin]"},b._addPropsToClasses=function(){var a=this._soundInstanceClass;a.context=this.context,a._scratchBuffer=c._scratchBuffer,a.destinationNode=this.gainNode,a._panningModel=this._panningModel,this._loaderClass.context=this.context},b._updateVolume=function(){var a=createjs.Sound._masterMute?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},createjs.WebAudioPlugin=createjs.promote(a,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"HTMLAudioTagPool cannot be instantiated"}function b(a){this._tags=[]}var c=a;c._tags={},c._tagPool=new b,c._tagUsed={},c.get=function(a){var b=c._tags[a];return null==b?(b=c._tags[a]=c._tagPool.get(),b.src=a):c._tagUsed[a]?(b=c._tagPool.get(),b.src=a):c._tagUsed[a]=!0,b},c.set=function(a,b){b==c._tags[a]?c._tagUsed[a]=!1:c._tagPool.set(b)},c.remove=function(a){var b=c._tags[a];return null==b?!1:(c._tagPool.set(b),delete c._tags[a],delete c._tagUsed[a],!0)},c.getDuration=function(a){var b=c._tags[a];return null!=b&&b.duration?1e3*b.duration:0},createjs.HTMLAudioTagPool=a;var d=b.prototype;d.constructor=b,d.get=function(){var a;return a=0==this._tags.length?this._createTag():this._tags.pop(),null==a.parentNode&&document.body.appendChild(a),a},d.set=function(a){var b=createjs.indexOf(this._tags,a);-1==b&&(this._tags.src=null,this._tags.push(a))},d.toString=function(){return"[TagPool]"},d._createTag=function(){var a=document.createElement("audio");return a.autoplay=!1,a.preload="none",a}}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.AbstractSoundInstance_constructor(a,b,c,d),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),c?this._audioSpriteStopTime=.001*(b+c):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var b=createjs.extend(a,createjs.AbstractSoundInstance);b.setMasterVolume=function(a){this._updateVolume()},b.setMasterMute=function(a){this._updateVolume()},b.toString=function(){return"[HTMLAudioSoundInstance]"},b._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},b._handleCleanUp=function(){var a=this._playbackResource;if(null!=a){a.pause(),a.loop=!1,a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{a.currentTime=this._startTime}catch(b){}createjs.HTMLAudioTagPool.set(this.src,a),this._playbackResource=null}},b._beginPlaying=function(a){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(a)},b._handleSoundReady=function(a){if(4!==this._playbackResource.readyState){var b=this._playbackResource;return b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),b.preload="auto",void b.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},b._handleTagReady=function(a){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},b._pause=function(){this._playbackResource.pause()},b._resume=function(){this._playbackResource.play()},b._updateVolume=function(){if(null!=this._playbackResource){var a=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;a!=this._playbackResource.volume&&(this._playbackResource.volume=a)}},b._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},b._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(a){this._handleSetPositionSeek(null)}},b._handleSetPositionSeek=function(a){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._handleAudioSpriteLoop=function(a){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},b._handleLoop=function(a){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},b._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},b._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(a,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.AbstractPlugin_constructor(),this.defaultNumChannels=2,this._capabilities=c._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var b=createjs.extend(a,createjs.AbstractPlugin),c=a;c.MAX_INSTANCES=30,c._AUDIO_READY="canplaythrough",c._AUDIO_ENDED="ended",c._AUDIO_SEEKED="seeked",c._AUDIO_STALLED="stalled",c._TIME_UPDATE="timeupdate",c._capabilities=null,c.isSupported=function(){return c._generateCapabilities(),null!=c._capabilities},c._generateCapabilities=function(){if(null==c._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;c._capabilities={panning:!1,volume:!0,tracks:-1};for(var b=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=b.length;f>e;e++){var g=b[e],h=d[g]||g;c._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}}},b.register=function(a){var b=createjs.HTMLAudioTagPool.get(a.src),c=this.AbstractPlugin_register(a);return c.setTag(b),c},b.removeSound=function(a){this.AbstractPlugin_removeSound(a),createjs.HTMLAudioTagPool.remove(a)},b.create=function(a,b,c){var d=this.AbstractPlugin_create(a,b,c);return d.setPlaybackResource(null),d},b.toString=function(){return"[HTMLAudioPlugin]"},b.setVolume=b.getVolume=b.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(a,"AbstractPlugin")}();var wonbats=wonbats||{},game=game||{};!function(){"use strict";function a(){this.sounds={}}a.prototype.load=function(){return createjs.Sound.initializeDefaultPlugins()?(createjs.Sound.muted=JSON.parse(localStorage.getItem("mute")),void console.log("createjs.Sound.muted: "+createjs.Sound.muted)):void console.log("this browser doesn't support sound")},a.prototype.play=function(a,b){var c,d,e=game.config.sound.manifest;if(void 0!==this.sounds[a]&&null!==this.sounds[a]||(console.log(a+" sound not pooled"),d=createjs.Sound.play(a),console.log(a+": "+d.playState),null===d||void 0===d||d.playState===createjs.Sound.PLAY_FAILED?console.log("resource "+a+" doesn't exist"):this.sounds[a]=d),void 0!==this.sounds[a]&&null!==this.sounds[a])for(this.sounds[a].play(),c=0;c0?this.screens[this.screens.length-1]:null},c.prototype.update=function(a){var b=this.getLastScreen();b&&b.exitKillData?(this.screens.pop(),b.exit(),this.createScreen.apply(this,b.exitKillData)):b&&this.getLastScreen().update(a)},screenflow.Manager=c}(),function(a,b){"use strict";function c(a){return document.createElement(a)}function d(a,b){for(var c in b)try{a.style[c]=b[c]}catch(d){}return a}function e(a){return null==a?String(a):"object"==typeof a||"function"==typeof a?Object.prototype.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof a}function f(a,b){if("array"!==e(b))return-1;if(b.indexOf)return b.indexOf(a);for(var c=0,d=b.length;d>c;c++)if(b[c]===a)return c;return-1}function g(){var a=arguments;for(var b in a[1])if(a[1].hasOwnProperty(b))switch(e(a[1][b])){case"object":a[0][b]=g({},a[0][b],a[1][b]);break;case"array":a[0][b]=a[1][b].slice(0);break;default:a[0][b]=a[1][b]}return a.length>2?g.apply(null,[a[0]].concat(Array.prototype.slice.call(a,2))):a[0]}function h(a,b,c){var d,e,f,g,h,j,k,l,m;return g=.5>=c?c*(1+b):c+b-c*b,0===g?"#000":(h=2*c-g,j=(g-h)/g,a=6*a,k=Math.floor(a),l=a-k,m=g*j*l,0===k||6===k?(d=g,e=h+m,f=h):1===k?(d=g-m,e=g,f=h):2===k?(d=h,e=g,f=h+m):3===k?(d=h,e=g-m,f=g):4===k?(d=h+m,e=h,f=g):(d=g,e=h,f=g-m),"#"+i(d)+i(e)+i(f))}function i(a){return a=Math.round(255*a).toString(16),1===a.length?"0"+a:a}function j(a,b,c,d){a.addEventListener?a[d?"removeEventListener":"addEventListener"](b,c,!1):a.attachEvent&&a[d?"detachEvent":"attachEvent"]("on"+b,c)}function k(a,i){function r(){for(I=L.history;I--;)U[I]=0===I?K.fps:U[I-1],V[I]=0===I?K.duration:V[I-1]}function s(a,b,c,d){return C[0|a][Math.round(Math.min((b-c)/(d-c)*O,O))]}function t(){M.legend.fps!==W&&(M.legend.fps=W,M.legend[o]=W?"FPS":"ms"),H=W?K.fps:K.duration,M.count[o]=H>999?"999+":H.toFixed(H>99?0:L.decimals)}function u(){if(D=l(),T=I;I++)C[J][I]=h(.33/O*I,B.heatmaps[J].saturation,B.heatmaps[J].lightness);B.compiledHeatmaps=C}}function z(){M.container&&x(),y(),M.container=d(c("div"),B.container),M.count=M.container.appendChild(d(c("div"),B.count)),M.legend=M.container.appendChild(d(c("div"),B.legend)),M.graph=L.graph?M.container.appendChild(d(c("div"),B.graph)):0,P.length=0;for(var b in M)M[b]&&B[b].heatOn&&P.push({name:b,el:M[b]});if(N.length=0,M.graph)for(M.graph.style.width=L.history*B.column.width+(L.history-1)*B.column.spacing+"px",I=0;IS?R:D-S,T=D},K.pause=function(){return E&&(K.isPaused=1,clearTimeout(E),m(E),m(F),E=F=0),K},K.resume=function(){return E||(K.isPaused=0,v()),K},K.set=function(a,b){return L[a]=b,W="fps"===L.show,-1!==f(a,p)&&z(),-1!==f(a,q)&&A(),K},K.showDuration=function(){return K.set("show","ms"),K},K.showFps=function(){return K.set("show","fps"),K},K.toggle=function(){return K.set("show",W?"ms":"fps"),K},K.hide=function(){return K.pause(),M.container.style.display="none",K},K.show=function(){return K.resume(),M.container.style.display="block",K},K.destroy=function(){K.pause(),x(),K.tick=K.tickStart=function(){}},function(){z(),v()}()}var l;!function(){var b=a.performance;if(b&&(b.now||b.webkitNow)){var c=b.now?"now":"webkitNow";l=b[c].bind(b)}else l=function(){return+new Date}}();var m=a.cancelAnimationFrame||a.cancelRequestAnimationFrame,n=a.requestAnimationFrame;!function(){for(var b=["moz","webkit","o"],c=0,d=0,e=b.length;e>d&&!m;++d)m=a[b[d]+"CancelAnimationFrame"]||a[b[d]+"CancelRequestAnimationFrame"],n=m&&a[b[d]+"RequestAnimationFrame"];m||(n=function(b){var d=l(),e=Math.max(0,16-(d-c));return c=d+e,a.setTimeout(function(){b(d+e)},e)},m=function(a){clearTimeout(a)})}();var o="string"===e(document.createElement("div").textContent)?"textContent":"innerText";k.extend=g,window.FPSMeter=k,k.defaults={interval:100,smoothing:10,show:"fps",toggleOn:"click",decimals:1,maxFps:60,threshold:100,position:"absolute",zIndex:10,left:"5px",top:"5px",right:"auto",bottom:"auto",margin:"0 0 0 0",theme:"dark",heat:0,graph:0,history:20};var p=["toggleOn","theme","heat","graph","history"],q=["position","zIndex","left","top","right","bottom","margin"]}(window),function(a,b,c){"use strict";b.theme={};var d=b.theme.base={heatmaps:[],container:{heatOn:null,heatmap:null,padding:"5px",minWidth:"95px",height:"30px",lineHeight:"30px",textAlign:"right",textShadow:"none"},count:{heatOn:null,heatmap:null,position:"absolute",top:0,right:0,padding:"5px 10px",height:"30px",fontSize:"24px",fontFamily:"Consolas, Andale Mono, monospace",zIndex:2},legend:{heatOn:null,heatmap:null,position:"absolute",top:0,left:0,padding:"5px 10px",height:"30px",fontSize:"12px",lineHeight:"32px",fontFamily:"sans-serif",textAlign:"left",zIndex:2},graph:{heatOn:null,heatmap:null,position:"relative",boxSizing:"padding-box",MozBoxSizing:"padding-box",height:"100%",zIndex:1},column:{width:4,spacing:1,heatOn:null,heatmap:null}};b.theme.dark=b.extend({},d,{heatmaps:[{saturation:.8,lightness:.8}],container:{background:"#222",color:"#fff",border:"1px solid #1a1a1a",textShadow:"1px 1px 0 #222"},count:{heatOn:"color"},column:{background:"#3f3f3f"}}),b.theme.light=b.extend({},d,{heatmaps:[{saturation:.5,lightness:.5}],container:{color:"#666",background:"#fff",textShadow:"1px 1px 0 rgba(255,255,255,.5), -1px -1px 0 rgba(255,255,255,.5)",boxShadow:"0 0 0 1px rgba(0,0,0,.1)"},count:{heatOn:"color"},column:{background:"#eaeaea"}}),b.theme.colorful=b.extend({},d,{heatmaps:[{saturation:.5,lightness:.6}],container:{heatOn:"backgroundColor",background:"#888",color:"#fff",textShadow:"1px 1px 0 rgba(0,0,0,.2)",boxShadow:"0 0 0 1px rgba(0,0,0,.1)"},column:{background:"#777",backgroundColor:"rgba(0,0,0,.2)"}}),b.theme.transparent=b.extend({},d,{heatmaps:[{saturation:.8,lightness:.5}],container:{padding:0,color:"#fff",textShadow:"1px 1px 0 rgba(0,0,0,.5)"},count:{padding:"0 5px",height:"40px",lineHeight:"40px"},legend:{padding:"0 5px",height:"40px",lineHeight:"42px"},graph:{height:"40px"},column:{width:5,background:"#999",heatOn:"backgroundColor",opacity:.5}})}(window,FPSMeter),function(a,b,c,d){var e,f;a.properties={width:800,height:450,fps:30,color:"#CCCCCC",manifest:[]},(a.hitbox=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(0)}).prototype=e=new c.Sprite,(a.x_button_base_2_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(1)}).prototype=e=new c.Sprite,(a.x_button_base_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(2)}).prototype=e=new c.Sprite,(a.x_button_top_2_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(3)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_2_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(4)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(5)}).prototype=e=new c.Sprite,(a.x_button_top_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(6)}).prototype=e=new c.Sprite,(a.x_icon_fullscreen_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(7)}).prototype=e=new c.Sprite,(a.x_icon_home_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(8)}).prototype=e=new c.Sprite,(a.x_icon_map_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(9)}).prototype=e=new c.Sprite,(a.x_icon_musicOFF_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(10)}).prototype=e=new c.Sprite,(a.x_icon_musicON_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(11)}).prototype=e=new c.Sprite,(a.x_icon_next_png=function(){this.spriteSheet=d.hud_atlas_,this.gotoAndStop(12)}).prototype=e=new c.Sprite,(a.x_icon_next=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_next_png,this.instance.setTransform(-21.9,-26),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-21.9,-26,54,56.1),e.frameBounds=[f],(a.x_icon_musicON=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicON_png,this.instance.setTransform(-22.5,-24.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.5,-24.6,47.3,55.1),e.frameBounds=[f],(a.x_icon_musicOFF=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicOFF_png,this.instance.setTransform(-21.5,-24.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-21.5,-24.6,46.3,54.4),e.frameBounds=[f],(a.x_icon_map=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_map_png,this.instance.setTransform(-26.3,-27.3),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-26.3,-27.3,54,57),e.frameBounds=[f],(a.x_icon_home=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_home_png,this.instance.setTransform(-25.7,-26),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-25.7,-26,54,50.4),e.frameBounds=[f],(a.x_icon_fullscreen=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_fullscreen_png,this.instance.setTransform(-26.3,-27.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-26.3,-27.2,55.1,55),e.frameBounds=[f],(a.x_button_top_highlight_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_2_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top_highlight=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_2_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_base_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_2_png,this.instance.setTransform(-40.2,-19.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81,65.3),e.frameBounds=[f],(a.x_button_base=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_png,this.instance.setTransform(-40.2,-19.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81,65.3),e.frameBounds=[f],(a.hitboxbutton=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.hitbox,this.instance.setTransform(-51.4,-49.3,1.097,1.116),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f],(a.NextButton=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_next,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:5,regY:2,x:5,y:3.7},0).wait(1).to({y:3.4},0).wait(1).to({y:2.9},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:5,regY:2,x:5,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:5,regY:2,x:5,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:5,regY:2,x:5,y:2.4},0).wait(1).to({y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.HomeBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_home,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:.6},0).wait(1).to({y:.3},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.3,regY:-1.1,x:1.3,y:-.7},0).wait(1).to({y:.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.FullscreenBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_fullscreen,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.2,regY:.3,x:1.2,y:2},0).wait(1).to({y:1.7},0).wait(1).to({y:1.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.2,regY:.3,x:1.2,y:1.1},0).wait(1).to({regX:0,regY:0,x:0},0).wait(1).to({regX:1.2,regY:.3,x:1.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.2,regY:.3,x:1.2,y:.7},0).wait(1).to({y:1.6},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.ExitBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_map,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:.6,regY:1.1,x:.6,y:2.8},0).wait(1).to({y:2.5},0).wait(1).to({y:2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.6,regY:1.1,x:.6,y:1.9},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.6,regY:1.1,x:.6,y:1.9},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.6,regY:1.1,x:.6,y:1.5},0).wait(1).to({y:2.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.button_music_off=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicOFF,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:4.1},0).wait(1).to({y:3.8},0).wait(1).to({y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:3.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:3.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.4,regY:2.4,x:1.4,y:2.8},0).wait(1).to({y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top_2,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight_2,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base_2,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.button_music=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicON,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1,regY:2.9,x:1,y:4.6},0).wait(1).to({y:4.3},0).wait(1).to({y:3.8},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1,regY:2.9,x:1,y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1,regY:2.9,x:1,y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1,regY:2.9,x:1,y:3.3},0).wait(1).to({y:4.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.SoundBtn=function(b,d,e){this.initialize(b,d,e,{}),this.soundOn=new a.button_music,this.timeline.addTween(c.Tween.get(this.soundOn).wait(1)),this.soundOff=new a.button_music_off,this.timeline.addTween(c.Tween.get(this.soundOff).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f],(a.HUDLevelSelector=function(b,d,e){this.initialize(b,d,e,{}),this.soundBtn=new a.SoundBtn,this.soundBtn.setTransform(51.3,47.1),this.fullscreenBtn=new a.FullscreenBtn,this.fullscreenBtn.setTransform(753.2,50.1),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.fullscreenBtn},{t:this.soundBtn}]}).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-.2,-2.2,802.9,105.7),e.frameBounds=[f],(a.HUD=function(b,d,e){this.initialize(b,d,e,{"in":0,out:12}),this.frame_11=function(){this.stop()},this.frame_24=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(11).call(this.frame_11).wait(13).call(this.frame_24).wait(1)),this.fullscreenBtn=new a.FullscreenBtn,this.fullscreenBtn.setTransform(836.7,-132.5,.618,.618),this.timeline.addTween(c.Tween.get(this.fullscreenBtn).wait(1).to({regX:-1,regY:2,x:818.9,y:-131.2},0).wait(1).to({x:803.4},0).wait(1).to({x:789.9},0).wait(1).to({x:778.5},0).wait(1).to({x:769.3},0).wait(1).to({x:762.5},0).wait(1).to({x:758.3},0).wait(1).to({regX:0,regY:0,x:757.4,y:-132.5},0).wait(1).to({regX:-1,regY:2,x:757.6,y:-131.2},0).wait(1).to({x:761.1},0).wait(1).to({regX:0,regY:0,x:763.9,y:-132.5},0).wait(1).to({regX:-1,regY:2,x:762.6,y:-131.2},0).wait(1).to({x:760.2},0).wait(1).to({x:757.6},0).wait(1).to({regX:0,regY:0,x:757.4,y:-132.5},0).wait(1).to({regX:-1,regY:2,x:757.3,y:-131.2},0).wait(1).to({x:759},0).wait(1).to({x:762.2},0).wait(1).to({x:767},0).wait(1).to({x:774},0).wait(1).to({x:783.7},0).wait(1).to({x:797},0).wait(1).to({x:814.6},0).wait(1).to({regX:0,regY:0,x:836.7,y:-132.5},0).wait(1)),this.exitBtn=new a.ExitBtn,this.exitBtn.setTransform(-39,31.2,.618,.618),this.timeline.addTween(c.Tween.get(this.exitBtn).wait(1).to({regX:-1,regY:2,x:-22.4,y:32.5},0).wait(1).to({x:-6.9},0).wait(1).to({x:6.6},0).wait(1).to({x:18},0).wait(1).to({x:27.2},0).wait(1).to({x:34},0).wait(1).to({x:38.2},0).wait(1).to({regX:0,regY:0,x:40.3,y:31.2},0).wait(1).to({regX:-1,regY:2,x:38.9,y:32.5},0).wait(1).to({x:35.4},0).wait(1).to({regX:0,regY:0,x:33.8,y:31.2},0).wait(1).to({regX:-1,regY:2,x:33.9,y:32.5},0).wait(1).to({x:36.3},0).wait(1).to({x:38.9},0).wait(1).to({regX:0,regY:0,x:40.3,y:31.2},0).wait(1).to({regX:-1,regY:2,x:39.2,y:32.5},0).wait(1).to({x:37.5},0).wait(1).to({x:34.3},0).wait(1).to({x:29.5},0).wait(1).to({x:22.5},0).wait(1).to({x:12.7},0).wait(1).to({x:-.5},0).wait(1).to({x:-18.1},0).wait(1).to({regX:0,regY:0,x:-39,y:31.2},0).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-70.8,-162.9,938,227.1),e.frameBounds=[f,new c.Rectangle(-53.6,-162.9,903.7,227.2),new c.Rectangle(-38.2,-162.9,872.8,227.2),new c.Rectangle(-24.6,-162.9,845.7,227.2),new c.Rectangle(-13.2,-162.9,822.9,227.2),new c.Rectangle(-4,-162.9,804.5,227.2),new c.Rectangle(2.8,-162.9,790.9,227.2),new c.Rectangle(7.1,-162.9,782.4,227.2),new c.Rectangle(8.5,-162.9,779.5,227.1),new c.Rectangle(7.7,-162.9,781.1,227.2),new c.Rectangle(4.2,-162.9,788.2,227.2),new c.Rectangle(2,-162.9,792.5,227.1),new c.Rectangle(2.8,-162.9,791,227.2),new c.Rectangle(5.1,-162.9,786.3,227.2),new c.Rectangle(7.7,-162.9,781.2,227.2),new c.Rectangle(8.5,-162.9,779.5,227.1),new c.Rectangle(8,-162.9,780.6,227.2),new c.Rectangle(6.3,-162.9,784,227.2),new c.Rectangle(3.1,-162.9,790.2,227.2),new c.Rectangle(-1.7,-162.9,799.9,227.2),new c.Rectangle(-8.7,-162.9,813.9,227.2),new c.Rectangle(-18.4,-162.9,833.4,227.2),new c.Rectangle(-31.7,-162.9,859.9,227.2),new c.Rectangle(-49.3,-162.9,895.1,227.2),new c.Rectangle(-70.8,-162.9,938,227.1)], (a.hud=function(a,b,c){this.initialize(a,b,c,{})}).prototype=e=new c.MovieClip,e.nominalBounds=f=null,e.frameBounds=[f]}(pixiflash_lib=pixiflash_lib||{},pixiflash_images=pixiflash_images||{},pixiflash=pixiflash||{},ss=ss||{});var pixiflash_lib,pixiflash_images,pixiflash,ss;!function(a,b,c,d){var e,f;a.properties={width:800,height:450,fps:30,color:"#333333",manifest:[]},(a.hitbox=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(0)}).prototype=e=new c.Sprite,(a.levelselection_bg=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(1)}).prototype=e=new c.Sprite,(a.levelselection_board=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(2)}).prototype=e=new c.Sprite,(a.levelselection_selection_1=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(3)}).prototype=e=new c.Sprite,(a.levelselection_selection_2=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(4)}).prototype=e=new c.Sprite,(a.postit_1=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(5)}).prototype=e=new c.Sprite,(a.postit_10=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(6)}).prototype=e=new c.Sprite,(a.postit_11=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(7)}).prototype=e=new c.Sprite,(a.postit_12=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(8)}).prototype=e=new c.Sprite,(a.postit_2=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(9)}).prototype=e=new c.Sprite,(a.postit_3=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(10)}).prototype=e=new c.Sprite,(a.postit_4=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(11)}).prototype=e=new c.Sprite,(a.postit_5=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(12)}).prototype=e=new c.Sprite,(a.postit_6=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(13)}).prototype=e=new c.Sprite,(a.postit_7=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(14)}).prototype=e=new c.Sprite,(a.postit_8=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(15)}).prototype=e=new c.Sprite,(a.postit_9=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(16)}).prototype=e=new c.Sprite,(a.x_button_base_2_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(17)}).prototype=e=new c.Sprite,(a.x_button_base_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(18)}).prototype=e=new c.Sprite,(a.x_button_top_2_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(19)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_2_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(20)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(21)}).prototype=e=new c.Sprite,(a.x_button_top_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(22)}).prototype=e=new c.Sprite,(a.x_flashgfx_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(23)}).prototype=e=new c.Sprite,(a.x_icon_fullscreen_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(24)}).prototype=e=new c.Sprite,(a.x_icon_home_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(25)}).prototype=e=new c.Sprite,(a.x_icon_musicOFF_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(26)}).prototype=e=new c.Sprite,(a.x_icon_musicON_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(27)}).prototype=e=new c.Sprite,(a.x_white_png=function(){this.spriteSheet=d.levelselection_atlas_,this.gotoAndStop(28)}).prototype=e=new c.Sprite,(a.x_white=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_white_png,this.instance.setTransform(-32,-32),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-32,-32,64,64),e.frameBounds=[f],(a.x_icon_musicON=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicON_png,this.instance.setTransform(-22.5,-24.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.5,-24.6,47.3,55.1),e.frameBounds=[f],(a.x_icon_musicOFF=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicOFF_png,this.instance.setTransform(-21.5,-24.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-21.5,-24.6,46.3,54.4),e.frameBounds=[f],(a.x_icon_home=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_home_png,this.instance.setTransform(-25.7,-26),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-25.7,-26,54,50.4),e.frameBounds=[f],(a.x_icon_fullscreen=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_fullscreen_png,this.instance.setTransform(-26.3,-27.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-26.3,-27.2,55.1,55),e.frameBounds=[f],(a.x_flashgfx=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_flashgfx_png,this.instance.setTransform(-32,-32),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-32,-32,64,64),e.frameBounds=[f],(a.x_button_top_highlight_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_2_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top_highlight=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_2_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_top=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_png,this.instance.setTransform(-39,-39.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-39.7,79.2,77.3),e.frameBounds=[f],(a.x_button_base_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_2_png,this.instance.setTransform(-40.2,-19.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81,65.3),e.frameBounds=[f],(a.x_button_base=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_png,this.instance.setTransform(-40.2,-19.2),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81,65.3),e.frameBounds=[f],(a.selectionCorner=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.levelselection_selection_2,this.instance.setTransform(-12,-11),this.instance_1=new a.levelselection_selection_1,this.instance_1.setTransform(-11.5,-10.4),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},5).wait(5))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-12,-11,24,22),e.frameBounds=[f,f,f,f,f,f=new c.Rectangle(-11.5,-10.4,23,20),f,f,f,f],(a.selection_bg=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.levelselection_bg,this.instance.setTransform(400.3,-225,1,1,0,0,180),this.instance_1=new a.levelselection_bg,this.instance_1.setTransform(-400,-225),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-400,-225,800.3,450),e.frameBounds=[f],(a.board=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.levelselection_board,this.instance.setTransform(-389,-221),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-389,-221,778,442),e.frameBounds=[f],(a.hitboxbutton=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.hitbox,this.instance.setTransform(-51.4,-49.3,1.097,1.116),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f],(a.white=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_white,this.instance.setTransform(399,220.1,13.159,7.52),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.1,-20.5,842.2,481.3),e.frameBounds=[f],(a.selection_flash=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_flashgfx,this.instance.setTransform(399,220.1,13.159,7.52),this.instance.compositeOperation="lighter",this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.1,-20.5,842.2,481.3),e.frameBounds=[f],(a.postit_12_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(35.2,121.2,.854,1,0,88,-92),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-30.3,121.1,.896,.896,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(32.4,12.6,1,1,0,-.8,179.2),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-31.3,13.3),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_12,this.instance_4.setTransform(-51.1,-3.4),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.1,-3.4,103,145),e.frameBounds=[f,f],(a.postit_11_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(34,118.2,.914,.914,0,90,-92.4),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-34.3,118.9,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(35.5,10.4,.886,.886,0,0,180),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-34.2,8.3,.808,.808,1),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_11,this.instance_4.setTransform(-56.6,-4.2),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-56.6,-4.2,106,141),e.frameBounds=[f,f],(a.postit_10_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(35.4,120.7,1.001,1,0,90,-92),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-32.1,121.1,.908,.908,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(32.6,9.9,.873,.873,0,0,180),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-36.6,10.1,.842,.842),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_10,this.instance_4.setTransform(-52.9,-2.7),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.9,-2.7,103,145),e.frameBounds=[f,f],(a.postit_9_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(34.3,120.2,.913,.913,0,90,-90),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-38.1,120.9,.933,.933,-86.8),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(34.3,12.1,1,1,0,-1.2,178.8),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-32.2,11.8,1,1,1.7),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_9,this.instance_4.setTransform(-52.1,-3.4),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.1,-3.4,106,145),e.frameBounds=[f,f],(a.postit_8_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(36.2,121.4,.879,.879,0,90,-90),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-33,120.3,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(33.5,11.6,1,1,0,0,180),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-32.2,12.6),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_8,this.instance_4.setTransform(-55.5,-3.9),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-55.5,-3.9,106,146),e.frameBounds=[f,f],(a.postit_7_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(32.9,120.6,.944,1,0,87.5,-93),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-34,119.9,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(34.6,10.7,1,1,0,0,180),this.instance_2.alpha=.91,this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-32.2,10.5,1,1,2.7),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_7,this.instance_4.setTransform(-56.5,-4),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-56.5,-4,106,143),e.frameBounds=[f,f],(a.postit_6_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(35.2,121,.877,1,0,90,-90),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-33.2,121.2,1.002,1,0,-90,-86.8),this.instance_1.alpha=.93,this.instance_2=new a.selectionCorner,this.instance_2.setTransform(31.5,10.9,1,1,0,-1.7,178.3),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-33.2,12.6),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_6,this.instance_4.setTransform(-50.3,-3.5),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-50.3,-3.5,106,143),e.frameBounds=[f,f],(a.postit_5_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(32.6,119.2,1,1,0,89,-91),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-34.5,120.6,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(33.2,9.3,1,1,0,-2.1,177.9),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-31.5,11.6),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_5,this.instance_4.setTransform(-49.9,-4.9),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-49.9,-4.9,104,147),e.frameBounds=[f,f],(a.postit_4_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(38.5,119.9,1.007,1,0,90,-96.5),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-30.6,121.2,1.001,1,0,-90,-92.9),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(33.5,11.9,1,1,0,-1,179),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-33.5,11.6),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_4,this.instance_4.setTransform(-52.7,-3.4),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.7,-3.4,106,145),e.frameBounds=[f,f],(a.postit_3_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(30.6,119.9,1,1,0,90,-90),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-36.5,120.9,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(33.5,11.6,1,1,0,-1,179),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-34.2,10.5,.817,.9,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_3,this.instance_4.setTransform(-51.7,-3.4),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.7,-3.4,103,145),e.frameBounds=[f,f],(a.postit_2_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(36.3,119,1.002,1,0,90,-93.5),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-32.9,119.7,.875,.873,0,-90,-85.8),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(34.6,11.6,1,1.002,0,-3.3,180),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-32.9,12.1),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_2,this.instance_4.setTransform(-48.7,-3.6),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-48.7,-3.6,106,141),e.frameBounds=[f,f],(a.postit_1_1=function(b,d,e){this.initialize(b,d,e,{off:0,on:1}),this.frame_0=function(){this.stop()},this.frame_1=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(1).call(this.frame_1).wait(1)),this.instance=new a.selectionCorner,this.instance.setTransform(31.2,119.9,1,1,0,90,-90),this.instance_1=new a.selectionCorner,this.instance_1.setTransform(-36.5,120.9,1,1,-90),this.instance_2=new a.selectionCorner,this.instance_2.setTransform(33.5,11.6,1,1,0,0,180),this.instance_3=new a.selectionCorner,this.instance_3.setTransform(-32.2,12.6),this.timeline.addTween(c.Tween.get({}).to({state:[]}).to({state:[{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]},1).wait(1)),this.instance_4=new a.postit_1,this.instance_4.setTransform(-51.5,-3.6),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.5,-3.6,103,145),e.frameBounds=[f,f],(a.LightningOut=function(b,d,e){this.initialize(b,d,e,{}),this.frame_27=function(){this.stop(),this.signal.emit("exit")},this.timeline.addTween(c.Tween.get(this).wait(27).call(this.frame_27).wait(1)),this.instance=new a.white,this.timeline.addTween(c.Tween.get(this.instance).to({alpha:0},15).to({_off:!0},1).wait(12)),this.instance_1=new a.selection_flash,this.timeline.addTween(c.Tween.get(this.instance_1).wait(2).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.919},0).wait(1).to({alpha:.847},0).wait(1).to({alpha:.786},0).wait(1).to({alpha:.737},0).wait(1).to({alpha:.699},0).wait(1).to({alpha:.672},0).wait(1).to({alpha:.655},0).wait(1).to({alpha:.648},0).wait(2).to({alpha:.654},0).wait(1).to({alpha:.667},0).wait(1).to({alpha:.685},0).wait(1).to({alpha:.707},0).wait(1).to({alpha:.732},0).wait(1).to({alpha:.755},0).wait(1).to({alpha:.772},0).wait(1).to({alpha:.78},0).wait(1).to({alpha:.776},0).wait(1).to({alpha:.755},0).wait(1).to({alpha:.706},0).wait(1).to({alpha:.598},0).wait(1).to({alpha:.334},0).wait(1).to({alpha:.08},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:0},0).to({_off:!0},1).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.1,-20.5,842.2,481.3),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=null,f],(a.LightningIn=function(b,d,e){this.initialize(b,d,e,{}),this.frame_43=function(){this.stop(),this.signal.emit("exit")},this.timeline.addTween(c.Tween.get(this).wait(43).call(this.frame_43).wait(1)),this.instance=new a.white,this.instance._off=!0,this.timeline.addTween(c.Tween.get(this.instance).wait(43).to({_off:!1},0).wait(1)),this.instance_1=new a.selection_flash,this.instance_1.alpha=0,this.instance_1._off=!0,this.timeline.addTween(c.Tween.get(this.instance_1).wait(27).to({_off:!1},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.126},0).wait(1).to({alpha:.225},0).wait(1).to({alpha:.294},0).wait(1).to({alpha:.336},0).wait(1).to({alpha:.352},0).wait(1).to({alpha:.349},0).wait(1).to({alpha:.33},0).wait(1).to({alpha:.298},0).wait(1).to({alpha:.258},0).wait(1).to({alpha:.228},0).wait(1).to({alpha:.221},0).wait(1).to({alpha:.252},0).wait(1).to({alpha:.373},0).wait(1).to({alpha:.8},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:1},0).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=null,e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=new c.Rectangle(-22.1,-20.5,842.2,481.3),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.HomeBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_home,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:.6},0).wait(1).to({y:.3},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1.3,regY:-1.1,x:1.3,y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.3,regY:-1.1,x:1.3,y:-.7},0).wait(1).to({y:.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.FullscreenBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_fullscreen,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.2,regY:.3,x:1.2,y:2},0).wait(1).to({y:1.7},0).wait(1).to({y:1.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.2,regY:.3,x:1.2,y:1.1},0).wait(1).to({regX:0,regY:0,x:0},0).wait(1).to({regX:1.2,regY:.3,x:1.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.2,regY:.3,x:1.2,y:.7},0).wait(1).to({y:1.6},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.button_music_off=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicOFF,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:4.1},0).wait(1).to({y:3.8},0).wait(1).to({y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:3.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1.4,regY:2.4,x:1.4,y:3.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.4,regY:2.4,x:1.4,y:2.8},0).wait(1).to({y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top_2,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight_2,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base_2,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.button_music=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicON,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1,regY:2.9,x:1,y:4.6},0).wait(1).to({y:4.3},0).wait(1).to({y:3.8},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1,regY:2.9,x:1,y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1,regY:2.9,x:1,y:3.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1,regY:2.9,x:1,y:3.3},0).wait(1).to({y:4.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top, this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.4,regY:-1.2,x:.4,y:.5},0).wait(1).to({y:.2},0).wait(1).to({y:-.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.4,regY:-1.2,x:.4,y:-.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.4,regY:-1.2,x:.4,y:-.8},0).wait(1).to({y:.1},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_12=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_12_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:.4,regY:69.1,skewX:-1.1,x:1.8,y:69.1},0).wait(1).to({x:1.7},0).wait(1).to({skewX:-.9,x:1.5},0).wait(1).to({skewX:-.7,x:1.2},0).wait(1).to({skewX:-.4,x:.9},0).wait(1).to({skewX:-.2,x:.6},0).wait(1).to({skewX:0,x:.5},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.4,regY:69.1,x:.5,y:69.1},0).wait(1).to({skewX:-.2,x:.6},0).wait(1).to({skewX:-.4,x:.9},0).wait(1).to({skewX:-.7,x:1.2},0).wait(1).to({skewX:-.9,x:1.6},0).wait(1).to({skewX:-1.1,x:1.8},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.2,-3.4,106,145),e.frameBounds=[f,f=new c.Rectangle(-51.2,-3.4,105.6,145),f,new c.Rectangle(-51.2,-3.4,105,145),new c.Rectangle(-51.2,-3.4,104.4,145),new c.Rectangle(-51.1,-3.4,103.7,145),new c.Rectangle(-51.1,-3.4,103.1,145),f=new c.Rectangle(-51.1,-3.4,103,145),f,f,new c.Rectangle(-51.1,-3.4,103.1,145),new c.Rectangle(-51.1,-3.4,103.7,145),new c.Rectangle(-51.2,-3.4,104.4,145),new c.Rectangle(-51.2,-3.4,105,145),new c.Rectangle(-51.2,-3.4,105.6,145),f=new c.Rectangle(-51.2,-3.4,106,145),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_11=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_11_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:-3.6,regY:66.3,skewX:-1.1,x:-2.3,y:66.3},0).wait(1).to({scaleY:1,y:66.4},0).wait(1).to({skewX:-.9,x:-2.5},0).wait(1).to({scaleY:1,skewX:-.7,x:-2.8},0).wait(1).to({scaleY:1,skewX:-.4,x:-3.1,y:66.5},0).wait(1).to({skewX:-.2,x:-3.4},0).wait(1).to({scaleY:1,skewX:0,x:-3.5,y:66.6},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:-3.6,regY:66.3,x:-3.5,y:66.6},0).wait(1).to({scaleY:1,skewX:-.2,x:-3.4,y:66.5},0).wait(1).to({skewX:-.4,x:-3.1},0).wait(1).to({scaleY:1,skewX:-.7,x:-2.8,y:66.4},0).wait(1).to({scaleY:1,skewX:-.9,x:-2.5},0).wait(1).to({scaleY:1,skewX:-1.1,x:-2.3,y:66.3},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-56.7,-4.2,108.9,141),e.frameBounds=[f,new c.Rectangle(-56.7,-4.2,108.6,141),new c.Rectangle(-56.7,-4.2,108.5,141),new c.Rectangle(-56.7,-4.2,108,141.1),new c.Rectangle(-56.7,-4.2,107.4,141.3),new c.Rectangle(-56.6,-4.2,106.7,141.4),new c.Rectangle(-56.6,-4.2,106.1,141.5),f=new c.Rectangle(-56.6,-4.2,106,141.5),f,f,new c.Rectangle(-56.6,-4.2,106.1,141.5),new c.Rectangle(-56.6,-4.2,106.7,141.4),new c.Rectangle(-56.7,-4.2,107.4,141.3),new c.Rectangle(-56.7,-4.2,108,141.1),new c.Rectangle(-56.7,-4.2,108.6,141),f=new c.Rectangle(-56.7,-4.2,108.9,141),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_10=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_10_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:-1.4,regY:69.8,skewX:-1.1,y:69.8},0).wait(1).to({scaleY:1,x:-.1,y:69.9},0).wait(1).to({scaleY:1,skewX:-.9,x:-.3,y:70},0).wait(1).to({scaleY:1,skewX:-.7,x:-.6,y:70.1},0).wait(1).to({scaleY:1.01,skewX:-.4,x:-.9,y:70.3},0).wait(1).to({scaleY:1.01,skewX:-.2,x:-1.2,y:70.4},0).wait(1).to({scaleY:1.01,skewX:0,x:-1.3,y:70.5},0).wait(1).to({regX:0,regY:0,x:0,y:.1},0).wait(1).to({regX:-1.4,regY:69.8,x:-1.3,y:70.5},0).wait(1).to({scaleY:1.01,skewX:-.2,x:-1.2,y:70.4},0).wait(1).to({scaleY:1.01,skewX:-.4,x:-.9,y:70.3},0).wait(1).to({scaleY:1,skewX:-.7,x:-.5,y:70.1},0).wait(1).to({scaleY:1,skewX:-.9,x:-.2,y:70},0).wait(1).to({scaleY:1,skewX:-1.1,x:0,y:69.9},0).wait(1).to({regX:0,regY:0,scaleY:1,skewX:-1.2,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.9,-2.7,106,145),e.frameBounds=[f,new c.Rectangle(-52.9,-2.7,105.6,145.1),new c.Rectangle(-52.9,-2.7,105.6,145.2),new c.Rectangle(-52.9,-2.7,105,145.4),new c.Rectangle(-52.9,-2.7,104.4,145.7),new c.Rectangle(-52.9,-2.7,103.7,146),new c.Rectangle(-52.9,-2.7,103.1,146.3),f=new c.Rectangle(-52.9,-2.7,103,146.5),f,f,new c.Rectangle(-52.9,-2.7,103.1,146.3),new c.Rectangle(-52.9,-2.7,103.8,146),new c.Rectangle(-52.9,-2.7,104.4,145.7),new c.Rectangle(-52.9,-2.7,105,145.3),new c.Rectangle(-52.9,-2.7,105.6,145.1),f=new c.Rectangle(-52.9,-2.7,106,145),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_9=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_9_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:.9,regY:69.1,skewX:-1.1,x:2.3,y:69.1},0).wait(1).to({x:2.2},0).wait(1).to({skewX:-.9,x:2},0).wait(1).to({skewX:-.7,x:1.7},0).wait(1).to({skewX:-.4,x:1.4},0).wait(1).to({skewX:-.2,x:1.1},0).wait(1).to({skewX:0,x:1},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.9,regY:69.1,x:1,y:69.1},0).wait(1).to({skewX:-.2,x:1.1},0).wait(1).to({skewX:-.4,x:1.4},0).wait(1).to({skewX:-.7,x:1.7},0).wait(1).to({skewX:-.9,x:2.1},0).wait(1).to({skewX:-1.1,x:2.3},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.2,-3.4,109,145),e.frameBounds=[f,f=new c.Rectangle(-52.2,-3.4,108.6,145),f,new c.Rectangle(-52.2,-3.4,108,145),new c.Rectangle(-52.2,-3.4,107.4,145),new c.Rectangle(-52.1,-3.4,106.7,145),new c.Rectangle(-52.1,-3.4,106.1,145),f=new c.Rectangle(-52.1,-3.4,106,145),f,f,new c.Rectangle(-52.1,-3.4,106.1,145),new c.Rectangle(-52.1,-3.4,106.7,145),new c.Rectangle(-52.2,-3.4,107.4,145),new c.Rectangle(-52.2,-3.4,108,145),new c.Rectangle(-52.2,-3.4,108.6,145),f=new c.Rectangle(-52.2,-3.4,109,145),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_8=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_8_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:-2.6,regY:69.1,skewX:-1.1,x:-1.2,y:69.1},0).wait(1).to({x:-1.3},0).wait(1).to({skewX:-.9,x:-1.5},0).wait(1).to({skewX:-.7,x:-1.8},0).wait(1).to({skewX:-.4,x:-2.1},0).wait(1).to({skewX:-.2,x:-2.4},0).wait(1).to({skewX:0,x:-2.5},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:-2.6,regY:69.1,x:-2.5,y:69.1},0).wait(1).to({skewX:-.2,x:-2.4},0).wait(1).to({skewX:-.4,x:-2.1},0).wait(1).to({skewX:-.7,x:-1.8},0).wait(1).to({skewX:-.9,x:-1.4},0).wait(1).to({skewX:-1.1,x:-1.2},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-55.6,-3.9,109,146),e.frameBounds=[f,new c.Rectangle(-55.6,-3.9,108.7,146),new c.Rectangle(-55.6,-3.9,108.6,146),new c.Rectangle(-55.6,-3.9,108,146),new c.Rectangle(-55.6,-3.9,107.4,146),new c.Rectangle(-55.5,-3.9,106.7,146),new c.Rectangle(-55.5,-3.9,106.1,146),f=new c.Rectangle(-55.5,-3.9,106,146),f,f,new c.Rectangle(-55.5,-3.9,106.1,146),new c.Rectangle(-55.5,-3.9,106.8,146),new c.Rectangle(-55.6,-3.9,107.4,146),new c.Rectangle(-55.6,-3.9,108.1,146),new c.Rectangle(-55.6,-3.9,108.6,146),f=new c.Rectangle(-55.6,-3.9,109,146),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_7=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_7_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:-3.6,regY:67.4,skewX:-1.1,x:-2.2,y:67.4},0).wait(1).to({x:-2.3},0).wait(1).to({skewX:-.9,x:-2.5},0).wait(1).to({skewX:-.7,x:-2.8},0).wait(1).to({skewX:-.4,x:-3.1},0).wait(1).to({skewX:-.2,x:-3.4},0).wait(1).to({skewX:0,x:-3.5},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:-3.6,regY:67.4,x:-3.5,y:67.4},0).wait(1).to({skewX:-.2,x:-3.4},0).wait(1).to({skewX:-.4,x:-3.1},0).wait(1).to({skewX:-.7,x:-2.8},0).wait(1).to({skewX:-.9,x:-2.5},0).wait(1).to({skewX:-1.1,x:-2.3},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-56.6,-4,109,143),e.frameBounds=[f,f=new c.Rectangle(-56.6,-4,108.6,143),f,new c.Rectangle(-56.6,-4,108,143),new c.Rectangle(-56.6,-4,107.4,143),new c.Rectangle(-56.5,-4,106.7,143),new c.Rectangle(-56.5,-4,106.1,143),f=new c.Rectangle(-56.5,-4,106,143),f,f,new c.Rectangle(-56.5,-4,106.1,143),new c.Rectangle(-56.5,-4,106.7,143),new c.Rectangle(-56.6,-4,107.4,143),new c.Rectangle(-56.6,-4,108,143),new c.Rectangle(-56.6,-4,108.6,143),f=new c.Rectangle(-56.6,-4,109,143),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_6=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_6_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:2.6,regY:67.9,scaleY:1,skewX:-1.1,x:4,y:68},0).wait(1).to({scaleY:1,x:3.9,y:68.1},0).wait(1).to({scaleY:1.01,skewX:-1,x:3.8,y:68.3},0).wait(1).to({scaleY:1.01,skewX:-.8,x:3.6,y:68.7},0).wait(1).to({scaleY:1.02,skewX:-.7,x:3.4,y:69.1},0).wait(1).to({scaleY:1.02,skewX:-.5,x:3.2,y:69.5},0).wait(1).to({scaleY:1.02,skewX:-.4,x:3.1,y:69.6},0).wait(1).to({regX:0,regY:0,scaleY:1.02,x:0,y:.1},0).wait(1).to({regX:2.6,regY:67.9,scaleY:1.02,x:3.1,y:69.6},0).wait(1).to({scaleY:1.02,skewX:-.5,x:3.2,y:69.4},0).wait(1).to({scaleY:1.02,skewX:-.7,x:3.4,y:69.1},0).wait(1).to({scaleY:1.01,skewX:-.8,x:3.6,y:68.6},0).wait(1).to({scaleY:1,skewX:-1,x:3.8,y:68.3},0).wait(1).to({scaleY:1,skewX:-1.1,x:4,y:68},0).wait(1).to({regX:0,regY:0,scaleY:1,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-50.4,-3.5,108.9,143),e.frameBounds=[f,new c.Rectangle(-50.4,-3.5,108.6,143.1),new c.Rectangle(-50.4,-3.5,108.6,143.3),new c.Rectangle(-50.4,-3.5,108.1,143.8),new c.Rectangle(-50.4,-3.5,108,144.6),new c.Rectangle(-50.4,-3.5,107.4,145.4),new c.Rectangle(-50.4,-3.5,107.3,146.1),new c.Rectangle(-50.3,-3.5,106.8,146.5),new c.Rectangle(-50.4,-3.5,107.1,146.6),new c.Rectangle(-50.3,-3.5,106.8,146.5),new c.Rectangle(-50.4,-3.5,107.3,146.1),new c.Rectangle(-50.4,-3.5,107.4,145.4),new c.Rectangle(-50.4,-3.5,108,144.5),new c.Rectangle(-50.4,-3.5,108.5,143.7),new c.Rectangle(-50.4,-3.5,108.6,143.2),f=new c.Rectangle(-50.4,-3.5,108.9,143),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_5=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_5_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:2,regY:68.6,scaleY:1,x:3.4,y:68.7},0).wait(1).to({scaleY:1,skewX:-1.1,y:68.8},0).wait(1).to({scaleY:1,y:68.9},0).wait(1).to({scaleY:1.01,x:3.3,y:69.2},0).wait(1).to({scaleY:1.01,y:69.6},0).wait(1).to({scaleY:1.02,skewX:-1,y:69.9},0).wait(1).to({scaleY:1.02,y:70.1},0).wait(1).to({regX:0,regY:0,x:.1,y:.1},0).wait(1).to({regX:2,regY:68.6,x:3.3,y:70.1},0).wait(1).to({scaleY:1.02,y:69.9},0).wait(1).to({scaleY:1.01,skewX:-1.1,x:3.4,y:69.6},0).wait(1).to({scaleY:1.01,x:3.3,y:69.2},0).wait(1).to({scaleY:1,x:3.4,y:68.9},0).wait(1).to({scaleY:1,skewX:-1.2,y:68.7},0).wait(1).to({regX:0,regY:0,scaleY:1,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-50,-4.9,107,147),e.frameBounds=[f,new c.Rectangle(-50,-4.9,106.7,147),new c.Rectangle(-50,-4.9,106.7,147.3),new c.Rectangle(-50,-4.9,106.7,147.7),new c.Rectangle(-50,-4.9,106.7,148.4),new c.Rectangle(-50,-4.9,106.7,149),new c.Rectangle(-49.9,-4.9,106.6,149.6),new c.Rectangle(-49.9,-4.9,106.2,150),new c.Rectangle(-49.9,-4.9,106.6,150.1),new c.Rectangle(-49.9,-4.9,106.2,150),new c.Rectangle(-49.9,-4.9,106.6,149.6),new c.Rectangle(-50,-4.9,106.7,149),new c.Rectangle(-50,-4.9,106.7,148.3),new c.Rectangle(-50,-4.9,106.7,147.6),new c.Rectangle(-50,-4.9,106.7,147.1),f=new c.Rectangle(-50,-4.9,107,147),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_4=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_4_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:.3,regY:69.1,skewX:-1.1,x:1.7,y:69.1},0).wait(1).to({x:1.6},0).wait(1).to({skewX:-.9,x:1.4},0).wait(1).to({skewX:-.7,x:1.1},0).wait(1).to({skewX:-.4,x:.8},0).wait(1).to({skewX:-.2,x:.5},0).wait(1).to({skewX:0,x:.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.3,regY:69.1,x:.4,y:69.1},0).wait(1).to({skewX:-.2,x:.5},0).wait(1).to({skewX:-.4,x:.8},0).wait(1).to({skewX:-.7,x:1.1},0).wait(1).to({skewX:-.9,x:1.5},0).wait(1).to({skewX:-1.1,x:1.7},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.7,-3.4,109,145),e.frameBounds=[f,f=new c.Rectangle(-52.7,-3.4,108.6,145),f,new c.Rectangle(-52.7,-3.4,108,145),new c.Rectangle(-52.7,-3.4,107.4,145),new c.Rectangle(-52.7,-3.4,106.7,145),new c.Rectangle(-52.7,-3.4,106.1,145),f=new c.Rectangle(-52.7,-3.4,106,145),f,f,new c.Rectangle(-52.7,-3.4,106.1,145),new c.Rectangle(-52.7,-3.4,106.7,145),new c.Rectangle(-52.7,-3.4,107.4,145),new c.Rectangle(-52.7,-3.4,108,145),new c.Rectangle(-52.7,-3.4,108.6,145),f=new c.Rectangle(-52.7,-3.4,109,145),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_3=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_3_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:-.3,regY:69.1,skewX:-1.1,x:1.1,y:69.1},0).wait(1).to({x:1},0).wait(1).to({skewX:-.9,x:.8},0).wait(1).to({skewX:-.7,x:.5},0).wait(1).to({skewX:-.4,x:.2},0).wait(1).to({skewX:-.2,x:-.1},0).wait(1).to({skewX:0,x:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:-.3,regY:69.1,x:-.2,y:69.1},0).wait(1).to({skewX:-.2,x:-.1},0).wait(1).to({skewX:-.4,x:.2},0).wait(1).to({skewX:-.7,x:.5},0).wait(1).to({skewX:-.9,x:.9},0).wait(1).to({skewX:-1.1,x:1.1},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.8,-3.4,106,145),e.frameBounds=[f,f=new c.Rectangle(-51.8,-3.4,105.6,145),f,new c.Rectangle(-51.8,-3.4,105,145),new c.Rectangle(-51.8,-3.4,104.4,145),new c.Rectangle(-51.7,-3.4,103.7,145),new c.Rectangle(-51.7,-3.4,103.1,145),f=new c.Rectangle(-51.7,-3.4,103,145),f,f,new c.Rectangle(-51.7,-3.4,103.1,145),new c.Rectangle(-51.7,-3.4,103.7,145),new c.Rectangle(-51.8,-3.4,104.4,145),new c.Rectangle(-51.8,-3.4,105,145),new c.Rectangle(-51.8,-3.4,105.6,145),f=new c.Rectangle(-51.8,-3.4,106,145),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_2=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_2_1,this.postit.setTransform(0,0,1,1,0,-1.2,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regX:4.3,regY:66.8,skewX:-1.1,x:5.7,y:66.8},0).wait(1).to({x:5.6},0).wait(1).to({skewX:-.9,x:5.4},0).wait(1).to({skewX:-.7,x:5.1},0).wait(1).to({skewX:-.4,x:4.8},0).wait(1).to({skewX:-.2,x:4.5},0).wait(1).to({skewX:0,x:4.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:4.3,regY:66.8,x:4.4,y:66.8},0).wait(1).to({skewX:-.2,x:4.5},0).wait(1).to({skewX:-.4,x:4.8},0).wait(1).to({skewX:-.7,x:5.1},0).wait(1).to({skewX:-.9,x:5.4},0).wait(1).to({skewX:-1.1,x:5.6},0).wait(1).to({regX:0,regY:0,skewX:-1.2,x:0,y:0},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-48.8,-3.6,108.9,141),e.frameBounds=[f,new c.Rectangle(-48.8,-3.6,108.6,141),new c.Rectangle(-48.8,-3.6,108.5,141),new c.Rectangle(-48.8,-3.6,108,141),new c.Rectangle(-48.8,-3.6,107.4,141),new c.Rectangle(-48.7,-3.6,106.7,141),new c.Rectangle(-48.7,-3.6,106.1,141),f=new c.Rectangle(-48.7,-3.6,106,141),f,f,new c.Rectangle(-48.7,-3.6,106.1,141),new c.Rectangle(-48.7,-3.6,106.7,141),new c.Rectangle(-48.8,-3.6,107.4,141),new c.Rectangle(-48.8,-3.6,108,141),new c.Rectangle(-48.8,-3.6,108.6,141),f=new c.Rectangle(-48.8,-3.6,108.9,141),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.levelPostIt_1=function(b,d,e){this.initialize(b,d,e,{out:0,over:8,down:15,locked:20,disabled:30}),this.frame_7=function(){this.stop()},this.frame_14=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_29=function(){this.stop()},this.frame_39=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(7).call(this.frame_7).wait(7).call(this.frame_14).wait(5).call(this.frame_19).wait(10).call(this.frame_29).wait(10).call(this.frame_39).wait(1)),this.postit=new a.postit_1_1,this.postit.setTransform(.1,.1,1,1.018,0,-1.6,0),this.timeline.addTween(c.Tween.get(this.postit).wait(1).to({regY:68.8,x:2,y:70},0).wait(1).to({scaleY:1.02,y:69.9},0).wait(1).to({scaleY:1.01,skewX:-1.5,x:1.9,y:69.7},0).wait(1).to({scaleY:1.01,skewX:-1.4,x:1.8,y:69.5},0).wait(1).to({scaleY:1.01,skewX:-1.3,x:1.6,y:69.2},0).wait(1).to({scaleY:1,skewX:-1.2,x:1.5,y:69},0).wait(1).to({scaleY:1,x:1.4,y:68.9},0).wait(1).to({regY:0,scaleY:1,x:0,y:0},0).wait(1).to({regY:68.8,scaleY:1,x:1.4,y:68.9},0).wait(1).to({scaleY:1,x:1.5,y:69},0).wait(1).to({scaleY:1.01,skewX:-1.3,x:1.6,y:69.2},0).wait(1).to({scaleY:1.01,skewX:-1.4,x:1.8,y:69.5},0).wait(1).to({scaleY:1.01,skewX:-1.5,x:1.9,y:69.8},0).wait(1).to({scaleY:1.02,skewX:-1.6,x:2,y:70},0).wait(1).to({regY:0,scaleY:1.02,x:.1,y:.1},0).wait(5).to({alpha:0},0).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.5,-3.6,107.2,147.6),e.frameBounds=[f,new c.Rectangle(-51.5,-3.6,107,147.5),new c.Rectangle(-51.5,-3.6,106.9,147.3),new c.Rectangle(-51.5,-3.6,106.9,146.9),new c.Rectangle(-51.5,-3.6,106.3,146.4),new c.Rectangle(-51.5,-3.6,106.3,145.9),new c.Rectangle(-51.5,-3.6,105.7,145.4),new c.Rectangle(-51.5,-3.6,105.7,145.1),new c.Rectangle(-51.5,-3.6,106,145),new c.Rectangle(-51.5,-3.6,105.7,145.1),new c.Rectangle(-51.5,-3.6,105.7,145.3),new c.Rectangle(-51.5,-3.6,106.2,145.8),new c.Rectangle(-51.5,-3.6,106.3,146.5),new c.Rectangle(-51.5,-3.6,106.9,147.1),new c.Rectangle(-51.5,-3.6,107,147.5),f=new c.Rectangle(-51.5,-3.6,107.2,147.6),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.SoundBtn=function(b,d,e){this.initialize(b,d,e,{}),this.soundOn=new a.button_music,this.timeline.addTween(c.Tween.get(this.soundOn).wait(1)),this.soundOff=new a.button_music_off,this.timeline.addTween(c.Tween.get(this.soundOff).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-51.4,-49.3,100.9,102.7),e.frameBounds=[f],(a.LevelSelection=function(b,d,e){this.initialize(b,d,e,{"in":0,out:44}),this.frame_43=function(){this.stop()},this.frame_56=function(){this.stop(),this.signal.emit("exit")},this.timeline.addTween(c.Tween.get(this).wait(43).call(this.frame_43).wait(13).call(this.frame_56).wait(1)),this.instance=new a.white,this.timeline.addTween(c.Tween.get(this.instance).to({_off:!0},1).wait(55).to({_off:!1},0).wait(1)),this.instance_1=new a.selection_flash,this.instance_1._off=!0,this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({_off:!1},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.783},0).wait(1).to({alpha:.627},0).wait(1).to({alpha:.527},0).wait(1).to({alpha:.468},0).wait(1).to({alpha:.441},0).wait(1).to({alpha:.436},0).wait(1).to({alpha:.45},0).wait(1).to({alpha:.479},0).wait(1).to({alpha:.52},0).wait(1).to({alpha:.555},0).wait(1).to({alpha:.525},0).wait(1).to({alpha:.435},0).wait(1).to({alpha:.311},0).wait(1).to({alpha:.185},0).wait(1).to({alpha:.084},0).wait(1).to({alpha:.021},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:0},0).wait(2).to({alpha:.32},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.267},0).wait(1).to({alpha:.222},0).wait(1).to({alpha:.184},0).wait(1).to({alpha:.156},0).wait(1).to({alpha:.137},0).wait(1).to({alpha:.127},0).wait(1).to({alpha:.124},0).wait(1).to({alpha:.128},0).wait(1).to({alpha:.138},0).wait(1).to({alpha:.152},0).wait(1).to({alpha:.15},0).wait(1).to({alpha:.135},0).wait(1).to({alpha:.112},0).wait(1).to({alpha:.083},0).wait(1).to({alpha:.052},0).wait(1).to({alpha:.023},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:0},0).to({_off:!0},1).wait(6).to({_off:!1},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.165},0).wait(1).to({alpha:.278},0).wait(1).to({alpha:.338},0).wait(1).to({alpha:.353},0).wait(1).to({alpha:.334},0).wait(1).to({alpha:.291},0).wait(1).to({alpha:.24},0).wait(1).to({alpha:.22},0).wait(1).to({alpha:.272},0).wait(1).to({alpha:.601},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:1},0).wait(2)),this.homeBtn=new a.HomeBtn,this.homeBtn.setTransform(-37.4,33.2,.6,.6,0,0,0,-.9,-1.3),this.timeline.addTween(c.Tween.get(this.homeBtn).wait(1).to({regX:-1,regY:2,x:-29.2,y:35.2},0).wait(1).to({x:-20.8},0).wait(1).to({x:-12.2},0).wait(1).to({x:-3.7},0).wait(1).to({x:4.4},0).wait(1).to({x:12},0).wait(1).to({x:18.9},0).wait(1).to({x:25},0).wait(1).to({x:30.3},0).wait(1).to({x:34.7},0).wait(1).to({x:38.2},0).wait(1).to({x:40.9},0).wait(1).to({x:42.8},0).wait(1).to({x:43.9},0).wait(1).to({regX:-.9,regY:-1.3,x:44.3,y:33.2},0).wait(1).to({regX:-1,regY:2,x:43.9,y:35.2},0).wait(1).to({x:42.7},0).wait(1).to({x:40.6},0).wait(1).to({x:38.4},0).wait(1).to({x:37.1},0).wait(1).to({regX:-.9,regY:-1.3,x:36.8,y:33.2},0).wait(24).to({regX:-1,regY:2,x:38.1,y:35.2},0).wait(1).to({x:42.8},0).wait(1).to({regX:-.9,regY:-1.3,x:44.3,y:33.2},0).wait(1).to({regX:-1,regY:2,x:43.5,y:35.2},0).wait(1).to({x:41.2},0).wait(1).to({x:37.2},0).wait(1).to({x:31.4},0).wait(1).to({x:23.5},0).wait(1).to({x:13.3},0).wait(1).to({x:.4},0).wait(1).to({x:-16},0).wait(1).to({regX:-.9,regY:-1.3,x:-37.4,y:33.2},0).wait(1)),this.fullscreenBtn=new a.FullscreenBtn,this.fullscreenBtn.setTransform(832.8,-89.6,.6,.6,0,0,0,-3.3,3.9),this.timeline.addTween(c.Tween.get(this.fullscreenBtn).wait(4).to({regX:-1,regY:2,x:826.4,y:-90.8},0).wait(1).to({x:818.3},0).wait(1).to({x:810.1},0).wait(1).to({x:802},0).wait(1).to({x:794.3},0).wait(1).to({x:787},0).wait(1).to({x:780.4},0).wait(1).to({x:774.6},0).wait(1).to({x:769.6},0).wait(1).to({x:765.4},0).wait(1).to({x:762},0).wait(1).to({x:759.4},0).wait(1).to({x:757.7},0).wait(1).to({x:756.6},0).wait(1).to({regX:-3.3,regY:3.9,x:754.9,y:-89.6},0).wait(1).to({regX:-1,regY:2,x:756.6,y:-90.8},0).wait(1).to({x:757.5},0).wait(1).to({x:759.2},0).wait(1).to({x:761},0).wait(1).to({x:762},0).wait(1).to({regX:-3.3,regY:3.9,x:760.9,y:-89.6},0).wait(21).to({regX:-1,regY:2,y:-90.8},0).wait(1).to({x:756.2},0).wait(1).to({regX:-3.3,regY:3.9,x:753.4,y:-89.6},0).wait(1).to({regX:-1,regY:2,x:755.5,y:-90.8},0).wait(1).to({x:757.8},0).wait(1).to({x:761.6},0).wait(1).to({x:767.3},0).wait(1).to({x:774.9},0).wait(1).to({x:784.8},0).wait(1).to({x:797.4},0).wait(1).to({x:813.3},0).wait(1).to({regX:-3.3,regY:3.9,x:832.8,y:-89.6},0).wait(1)),this.soundBtn=new a.SoundBtn,this.soundBtn.setTransform(832.8,36.4,.6,.6,0,0,0,-3.3,3.9),this.timeline.addTween(c.Tween.get(this.soundBtn).wait(8).to({regX:-1,regY:2,x:826.4,y:35.2},0).wait(1).to({x:818.3},0).wait(1).to({x:810.1},0).wait(1).to({x:802},0).wait(1).to({x:794.3},0).wait(1).to({x:787},0).wait(1).to({x:780.4},0).wait(1).to({x:774.6},0).wait(1).to({x:769.6},0).wait(1).to({x:765.4},0).wait(1).to({x:762},0).wait(1).to({x:759.4},0).wait(1).to({x:757.7},0).wait(1).to({x:756.6},0).wait(1).to({regX:-3.3,regY:3.9,x:754.9,y:36.4},0).wait(1).to({regX:-1,regY:2,x:756.6,y:35.2},0).wait(1).to({x:757.5},0).wait(1).to({x:759.2},0).wait(1).to({x:761},0).wait(1).to({x:762},0).wait(1).to({regX:-3.3,regY:3.9,x:760.9,y:36.4},0).wait(17).to({regX:-1,regY:2,y:35.2},0).wait(1).to({x:756.2},0).wait(1).to({regX:-3.3,regY:3.9,x:753.4,y:36.4},0).wait(1).to({regX:-1,regY:2,x:755.5,y:35.2},0).wait(1).to({x:757.8},0).wait(1).to({x:761.6},0).wait(1).to({x:767.3},0).wait(1).to({x:774.9},0).wait(1).to({x:784.8},0).wait(1).to({x:797.4},0).wait(1).to({x:813.3},0).wait(1).to({regX:-3.3,regY:3.9,x:832.8,y:36.4},0).wait(1)),this.level12=new a.levelPostIt_12,this.level12.setTransform(643.5,304.4,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level12).wait(1).to({regX:1.8,regY:69.1,x:645.6,y:369.2},0).wait(1).to({y:361.6},0).wait(1).to({y:354.7},0).wait(1).to({y:348.6},0).wait(1).to({y:343.2},0).wait(1).to({y:338.6},0).wait(1).to({y:334.8},0).wait(1).to({y:331.8},0).wait(1).to({y:329.6},0).wait(1).to({y:328.3},0).wait(1).to({regX:-.3,regY:-4.2,x:643.5,y:254.5},0).wait(1).to({regX:1.8,regY:69.1,x:645.6,y:328},0).wait(1).to({y:328.7},0).wait(1).to({y:329.9},0).wait(1).to({y:331.6},0).wait(1).to({y:333},0).wait(1).to({y:333.9},0).wait(1).to({regX:-.3,regY:-4.2,x:643.5,y:260.8},0).wait(27).to({regX:1.8,regY:69.1,x:645.6,y:333.6},0).wait(1).to({y:331.9},0).wait(1).to({y:329.4},0).wait(1).to({y:327.6},0).wait(1).to({regX:-.3,regY:-4.2,x:643.5,y:253.8},0).wait(1).to({regX:1.8,regY:69.1,x:645.6,y:327.7},0).wait(1).to({y:329.7},0).wait(1).to({y:333.2},0).wait(1).to({y:338.4},0).wait(1).to({y:345.4},0).wait(1).to({y:354.4},0).wait(1).to({regX:-.3,regY:-4.2,x:643.5,y:291.7},0).wait(1)),this.level10=new a.levelPostIt_10,this.level10.setTransform(544.1,144.2,1,1,0,0,0,-.4,-4.2),this.timeline.addTween(c.Tween.get(this.level10).wait(1).to({regX:0,regY:70.5,x:544.5,y:210.4},0).wait(1).to({y:202.8},0).wait(1).to({y:195.9},0).wait(1).to({y:189.8},0).wait(1).to({y:184.4},0).wait(1).to({y:179.8},0).wait(1).to({y:176},0).wait(1).to({y:173},0).wait(1).to({y:170.8},0).wait(1).to({y:169.5},0).wait(1).to({regX:-.4,regY:-4.2,x:544.1,y:94.3},0).wait(1).to({regX:0,regY:70.5,x:544.5,y:169.2},0).wait(1).to({y:169.9},0).wait(1).to({y:171.1},0).wait(1).to({y:172.8},0).wait(1).to({y:174.2},0).wait(1).to({y:175.1},0).wait(1).to({regX:-.4,regY:-4.2,x:544.1,y:100.6},0).wait(27).to({regX:0,regY:70.5,x:544.5,y:174.8},0).wait(1).to({y:173.1},0).wait(1).to({y:170.6},0).wait(1).to({y:168.8},0).wait(1).to({regX:-.4,regY:-4.2,x:544.1,y:93.6},0).wait(1).to({regX:0,regY:70.5,x:544.5,y:168.9},0).wait(1).to({y:170.9},0).wait(1).to({y:174.4},0).wait(1).to({y:179.6},0).wait(1).to({y:186.6},0).wait(1).to({y:195.6},0).wait(1).to({regX:-.4,regY:-4.2,x:544.1, y:131.5},0).wait(1)),this.level11=new a.levelPostIt_11,this.level11.setTransform(641,159.6,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level11).wait(1).to({regX:-2.3,regY:66.6,x:639,y:222},0).wait(1).to({y:214.3},0).wait(1).to({y:207.4},0).wait(1).to({y:201.3},0).wait(1).to({y:196},0).wait(1).to({y:191.4},0).wait(1).to({y:187.6},0).wait(1).to({y:184.5},0).wait(1).to({y:182.3},0).wait(1).to({y:181},0).wait(1).to({regX:-.3,regY:-4.2,x:641,y:109.8},0).wait(1).to({regX:-2.3,regY:66.6,x:639,y:180.7},0).wait(1).to({y:181.4},0).wait(1).to({y:182.6},0).wait(1).to({y:184.3},0).wait(1).to({y:185.8},0).wait(1).to({y:186.6},0).wait(1).to({regX:-.3,regY:-4.2,x:641,y:116.1},0).wait(27).to({regX:-2.3,regY:66.6,x:639,y:186.4},0).wait(1).to({y:184.7},0).wait(1).to({y:182.1},0).wait(1).to({y:180.3},0).wait(1).to({regX:-.3,regY:-4.2,x:641,y:109.1},0).wait(1).to({regX:-2.3,regY:66.6,x:639,y:180.5},0).wait(1).to({y:182.4},0).wait(1).to({y:185.9},0).wait(1).to({y:191.1},0).wait(1).to({y:198.2},0).wait(1).to({y:207.1},0).wait(1).to({regX:-.3,regY:-4.2,x:641,y:147},0).wait(1)),this.level9=new a.levelPostIt_9,this.level9.setTransform(540.3,308.4,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level9).wait(1).to({regX:2.3,regY:69.1,x:542.9,y:373.3},0).wait(1).to({y:365.6},0).wait(1).to({y:358.7},0).wait(1).to({y:352.6},0).wait(1).to({y:347.3},0).wait(1).to({y:342.7},0).wait(1).to({y:338.9},0).wait(1).to({y:335.8},0).wait(1).to({y:333.6},0).wait(1).to({y:332.3},0).wait(1).to({regX:-.3,regY:-4.2,x:540.3,y:258.6},0).wait(1).to({regX:2.3,regY:69.1,x:542.9,y:332},0).wait(1).to({y:332.7},0).wait(1).to({y:333.9},0).wait(1).to({y:335.6},0).wait(1).to({y:337.1},0).wait(1).to({y:337.9},0).wait(1).to({regX:-.3,regY:-4.2,x:540.3,y:264.9},0).wait(27).to({regX:2.3,regY:69.1,x:542.9,y:337.7},0).wait(1).to({y:336},0).wait(1).to({y:333.4},0).wait(1).to({y:331.6},0).wait(1).to({regX:-.3,regY:-4.2,x:540.3,y:257.9},0).wait(1).to({regX:2.3,regY:69.1,x:542.9,y:331.8},0).wait(1).to({y:333.7},0).wait(1).to({y:337.2},0).wait(1).to({y:342.4},0).wait(1).to({y:349.5},0).wait(1).to({y:358.4},0).wait(1).to({regX:-.3,regY:-4.2,x:540.3,y:295.8},0).wait(1)),this.level8=new a.levelPostIt_8,this.level8.setTransform(433.6,304.7,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level8).wait(1).to({regX:-1.1,regY:69.1,x:432.8,y:369.6},0).wait(1).to({y:361.9},0).wait(1).to({y:355},0).wait(1).to({y:348.9},0).wait(1).to({y:343.6},0).wait(1).to({y:339},0).wait(1).to({y:335.2},0).wait(1).to({y:332.1},0).wait(1).to({y:329.9},0).wait(1).to({y:328.6},0).wait(1).to({regX:-.3,regY:-4.2,x:433.6,y:254.9},0).wait(1).to({regX:-1.1,regY:69.1,x:432.8,y:328.3},0).wait(1).to({y:329},0).wait(1).to({y:330.2},0).wait(1).to({y:331.9},0).wait(1).to({y:333.4},0).wait(1).to({y:334.2},0).wait(1).to({regX:-.3,regY:-4.2,x:433.6,y:261.2},0).wait(27).to({regX:-1.1,regY:69.1,x:432.8,y:334},0).wait(1).to({y:332.3},0).wait(1).to({y:329.7},0).wait(1).to({y:327.9},0).wait(1).to({regX:-.3,regY:-4.2,x:433.6,y:254.2},0).wait(1).to({regX:-1.1,regY:69.1,x:432.8,y:328.1},0).wait(1).to({y:330},0).wait(1).to({y:333.5},0).wait(1).to({y:338.7},0).wait(1).to({y:345.8},0).wait(1).to({y:354.7},0).wait(1).to({regX:-.3,regY:-4.2,x:433.6,y:292.1},0).wait(1)),this.level5=new a.levelPostIt_5,this.level5.setTransform(345,160.2,1,1,0,0,0,-.4,-4.1),this.timeline.addTween(c.Tween.get(this.level5).wait(1).to({regX:3.4,regY:70.1,x:348.8,y:226},0).wait(1).to({y:218.3},0).wait(1).to({y:211.4},0).wait(1).to({y:205.3},0).wait(1).to({y:200},0).wait(1).to({y:195.4},0).wait(1).to({y:191.6},0).wait(1).to({y:188.5},0).wait(1).to({y:186.3},0).wait(1).to({y:185},0).wait(1).to({regX:-.4,regY:-4.1,x:345,y:110.4},0).wait(1).to({regX:3.4,regY:70.1,x:348.8,y:184.7},0).wait(1).to({y:185.4},0).wait(1).to({y:186.6},0).wait(1).to({y:188.3},0).wait(1).to({y:189.8},0).wait(1).to({y:190.6},0).wait(1).to({regX:-.4,regY:-4.1,x:345,y:116.7},0).wait(27).to({regX:3.4,regY:70.1,x:348.8,y:190.4},0).wait(1).to({y:188.7},0).wait(1).to({y:186.1},0).wait(1).to({y:184.3},0).wait(1).to({regX:-.4,regY:-4.1,x:345,y:109.7},0).wait(1).to({regX:3.4,regY:70.1,x:348.8,y:184.5},0).wait(1).to({y:186.4},0).wait(1).to({y:189.9},0).wait(1).to({y:195.1},0).wait(1).to({y:202.2},0).wait(1).to({y:211.1},0).wait(1).to({regX:-.4,regY:-4.1,x:345,y:147.6},0).wait(1)),this.level6=new a.levelPostIt_6,this.level6.setTransform(443.3,152.9,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level6).wait(1).to({regX:4,regY:69.8,x:447.6,y:218.4},0).wait(1).to({y:210.8},0).wait(1).to({y:203.9},0).wait(1).to({y:197.8},0).wait(1).to({y:192.4},0).wait(1).to({y:187.8},0).wait(1).to({y:184},0).wait(1).to({y:181},0).wait(1).to({y:178.8},0).wait(1).to({y:177.5},0).wait(1).to({regX:-.3,regY:-4.2,x:443.3,y:103},0).wait(1).to({regX:4,regY:69.8,x:447.6,y:177.2},0).wait(1).to({y:177.9},0).wait(1).to({y:179.1},0).wait(1).to({y:180.8},0).wait(1).to({y:182.2},0).wait(1).to({y:183.1},0).wait(1).to({regX:-.3,regY:-4.2,x:443.3,y:109.3},0).wait(27).to({regX:4,regY:69.8,x:447.6,y:182.8},0).wait(1).to({y:181.1},0).wait(1).to({y:178.6},0).wait(1).to({y:176.8},0).wait(1).to({regX:-.3,regY:-4.2,x:443.3,y:102.3},0).wait(1).to({regX:4,regY:69.8,x:447.6,y:176.9},0).wait(1).to({y:178.9},0).wait(1).to({y:182.4},0).wait(1).to({y:187.6},0).wait(1).to({y:194.6},0).wait(1).to({y:203.6},0).wait(1).to({regX:-.3,regY:-4.2,x:443.3,y:140.2},0).wait(1)),this.level4=new a.levelPostIt_4,this.level4.setTransform(241.1,159.5,1,1,0,0,0,-.3,-4.1),this.timeline.addTween(c.Tween.get(this.level4).wait(1).to({regX:1.7,regY:69.1,x:243.1,y:224.2},0).wait(1).to({y:216.6},0).wait(1).to({y:209.7},0).wait(1).to({y:203.6},0).wait(1).to({y:198.2},0).wait(1).to({y:193.6},0).wait(1).to({y:189.8},0).wait(1).to({y:186.8},0).wait(1).to({y:184.6},0).wait(1).to({y:183.3},0).wait(1).to({regX:-.3,regY:-4.1,x:241.1,y:109.6},0).wait(1).to({regX:1.7,regY:69.1,x:243.1,y:183},0).wait(1).to({y:183.7},0).wait(1).to({y:184.9},0).wait(1).to({y:186.6},0).wait(1).to({y:188},0).wait(1).to({y:188.9},0).wait(1).to({regX:-.3,regY:-4.1,x:241.1,y:115.9},0).wait(27).to({regX:1.7,regY:69.1,x:243.1,y:188.6},0).wait(1).to({y:186.9},0).wait(1).to({y:184.4},0).wait(1).to({y:182.6},0).wait(1).to({regX:-.3,regY:-4.1,x:241.1,y:108.9},0).wait(1).to({regX:1.7,regY:69.1,x:243.1,y:182.7},0).wait(1).to({y:184.7},0).wait(1).to({y:188.2},0).wait(1).to({y:193.4},0).wait(1).to({y:200.4},0).wait(1).to({y:209.4},0).wait(1).to({regX:-.3,regY:-4.1,x:241.1,y:146.8},0).wait(1)),this.level3=new a.levelPostIt_3,this.level3.setTransform(241.7,317.1,1,1,0,0,0,-.3,-4.1),this.timeline.addTween(c.Tween.get(this.level3).wait(1).to({regX:1.2,regY:69.1,x:243.2,y:381.9},0).wait(1).to({y:374.2},0).wait(1).to({y:367.3},0).wait(1).to({y:361.2},0).wait(1).to({y:355.9},0).wait(1).to({y:351.3},0).wait(1).to({y:347.5},0).wait(1).to({y:344.4},0).wait(1).to({y:342.2},0).wait(1).to({y:340.9},0).wait(1).to({regX:-.3,regY:-4.1,x:241.7,y:267.3},0).wait(1).to({regX:1.2,regY:69.1,x:243.2,y:340.6},0).wait(1).to({y:341.3},0).wait(1).to({y:342.5},0).wait(1).to({y:344.2},0).wait(1).to({y:345.7},0).wait(1).to({y:346.5},0).wait(1).to({regX:-.3,regY:-4.1,x:241.7,y:273.6},0).wait(27).to({regX:1.2,regY:69.1,x:243.2,y:346.3},0).wait(1).to({y:344.6},0).wait(1).to({y:342},0).wait(1).to({y:340.2},0).wait(1).to({regX:-.3,regY:-4.1,x:241.7,y:266.6},0).wait(1).to({regX:1.2,regY:69.1,x:243.2,y:340.4},0).wait(1).to({y:342.3},0).wait(1).to({y:345.8},0).wait(1).to({y:351},0).wait(1).to({y:358.1},0).wait(1).to({y:367},0).wait(1).to({regX:-.3,regY:-4.1,x:241.7,y:304.5},0).wait(1)),this.level7=new a.levelPostIt_7,this.level7.setTransform(327.2,304.3,1,1,0,0,0,-.3,-4.2),this.timeline.addTween(c.Tween.get(this.level7).wait(1).to({regX:-2.2,regY:67.5,x:325.3,y:367.6},0).wait(1).to({y:359.9},0).wait(1).to({y:353},0).wait(1).to({y:346.9},0).wait(1).to({y:341.6},0).wait(1).to({y:337},0).wait(1).to({y:333.2},0).wait(1).to({y:330.1},0).wait(1).to({y:327.9},0).wait(1).to({y:326.6},0).wait(1).to({regX:-.3,regY:-4.2,x:327.2,y:254.5},0).wait(1).to({regX:-2.2,regY:67.5,x:325.3,y:326.3},0).wait(1).to({y:327},0).wait(1).to({y:328.2},0).wait(1).to({y:329.9},0).wait(1).to({y:331.4},0).wait(1).to({y:332.2},0).wait(1).to({regX:-.3,regY:-4.2,x:327.2,y:260.8},0).wait(27).to({regX:-2.2,regY:67.5,x:325.3,y:332},0).wait(1).to({y:330.3},0).wait(1).to({y:327.7},0).wait(1).to({y:325.9},0).wait(1).to({regX:-.3,regY:-4.2,x:327.2,y:253.8},0).wait(1).to({regX:-2.2,regY:67.5,x:325.3,y:326.1},0).wait(1).to({y:328},0).wait(1).to({y:331.5},0).wait(1).to({y:336.7},0).wait(1).to({y:343.8},0).wait(1).to({y:352.7},0).wait(1).to({regX:-.3,regY:-4.2,x:327.2,y:291.7},0).wait(1)),this.level2=new a.levelPostIt_2,this.level2.setTransform(143.1,305.4,1,1,0,0,0,-.4,-4.1),this.timeline.addTween(c.Tween.get(this.level2).wait(1).to({regX:5.6,regY:66.9,x:149.1,y:367.9},0).wait(1).to({y:360.3},0).wait(1).to({y:353.4},0).wait(1).to({y:347.3},0).wait(1).to({y:341.9},0).wait(1).to({y:337.3},0).wait(1).to({y:333.5},0).wait(1).to({y:330.5},0).wait(1).to({y:328.3},0).wait(1).to({y:327},0).wait(1).to({regX:-.4,regY:-4.1,x:143.1,y:255.5},0).wait(1).to({regX:5.6,regY:66.9,x:149.1,y:326.7},0).wait(1).to({y:327.4},0).wait(1).to({y:328.6},0).wait(1).to({y:330.3},0).wait(1).to({y:331.7},0).wait(1).to({y:332.6},0).wait(1).to({regX:-.4,regY:-4.1,x:143.1,y:261.8},0).wait(27).to({regX:5.6,regY:66.9,x:149.1,y:332.3},0).wait(1).to({y:330.6},0).wait(1).to({y:328.1},0).wait(1).to({y:326.3},0).wait(1).to({regX:-.4,regY:-4.1,x:143.1,y:254.8},0).wait(1).to({regX:5.6,regY:66.9,x:149.1,y:326.4},0).wait(1).to({y:328.4},0).wait(1).to({y:331.9},0).wait(1).to({y:337.1},0).wait(1).to({y:344.1},0).wait(1).to({y:353.1},0).wait(1).to({regX:-.4,regY:-4.1,x:143.1,y:292.7},0).wait(1)),this.level1=new a.levelPostIt_1,this.level1.setTransform(140.6,146.5,1,1,0,0,0,-.3,-4.1),this.timeline.addTween(c.Tween.get(this.level1).wait(1).to({regX:2,regY:70.1,x:142.9,y:212.3},0).wait(1).to({y:204.6},0).wait(1).to({y:197.7},0).wait(1).to({y:191.6},0).wait(1).to({y:186.3},0).wait(1).to({y:181.7},0).wait(1).to({y:177.9},0).wait(1).to({y:174.8},0).wait(1).to({y:172.6},0).wait(1).to({y:171.3},0).wait(1).to({regX:-.3,regY:-4.1,x:140.6,y:96.7},0).wait(1).to({regX:2,regY:70.1,x:142.9,y:171},0).wait(1).to({y:171.7},0).wait(1).to({y:172.9},0).wait(1).to({y:174.6},0).wait(1).to({y:176.1},0).wait(1).to({y:176.9},0).wait(1).to({regX:-.3,regY:-4.1,x:140.6,y:103},0).wait(27).to({regX:2,regY:70.1,x:142.9,y:176.7},0).wait(1).to({y:175},0).wait(1).to({y:172.4},0).wait(1).to({y:170.6},0).wait(1).to({regX:-.3,regY:-4.1,x:140.6,y:96},0).wait(1).to({regX:2,regY:70.1,x:142.9,y:170.8},0).wait(1).to({y:172.7},0).wait(1).to({y:176.2},0).wait(1).to({y:181.4},0).wait(1).to({y:188.5},0).wait(1).to({y:197.4},0).wait(1).to({regX:-.3,regY:-4.1,x:140.6,y:133.9},0).wait(1)),this.instance_2=new a.board,this.instance_2.setTransform(400.2,274.1),this.timeline.addTween(c.Tween.get(this.instance_2).wait(1).to({y:265.6},0).wait(1).to({y:258},0).wait(1).to({y:251.1},0).wait(1).to({y:245},0).wait(1).to({y:239.6},0).wait(1).to({y:235},0).wait(1).to({y:231.2},0).wait(1).to({y:228.2},0).wait(1).to({y:226},0).wait(1).to({y:224.7},0).wait(1).to({y:224.2},0).wait(1).to({y:224.4},0).wait(1).to({y:225.1},0).wait(1).to({y:226.3},0).wait(1).to({y:228},0).wait(1).to({y:229.4},0).wait(1).to({y:230.3},0).wait(1).to({y:230.5},0).wait(27).to({y:230},0).wait(1).to({y:228.3},0).wait(1).to({y:225.8},0).wait(1).to({y:224},0).wait(1).to({y:223.5},0).wait(1).to({y:224.1},0).wait(1).to({y:226.1},0).wait(1).to({y:229.6},0).wait(1).to({y:234.8},0).wait(1).to({y:241.8},0).wait(1).to({y:250.8},0).wait(1).to({y:261.4},0).wait(1)),this.instance_3=new a.selection_bg,this.instance_3.setTransform(400,225),this.timeline.addTween(c.Tween.get(this.instance_3).wait(57))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-67.7,-121.6,932.2,616.7),e.frameBounds=[f,new c.Rectangle(-59.6,-121.6,924,608.3),new c.Rectangle(-51.1,-121.6,915.5,600.6),new c.Rectangle(-42.5,-121.6,907,593.7),new c.Rectangle(-34,-121.6,898.5,587.6),new c.Rectangle(-25.9,-121.6,890.4,582.4),f=new c.Rectangle(-22.1,-121.6,886.5,582.4),f,new c.Rectangle(-22.1,-121.6,878.7,582.4),new c.Rectangle(-22.1,-121.6,870.7,582.4),new c.Rectangle(-22.1,-121.6,862.5,582.4),new c.Rectangle(-22.1,-121.6,854.4,582.4),new c.Rectangle(-22.1,-121.6,846.7,582.4),f=new c.Rectangle(-22.1,-121.6,842.2,582.4),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=new c.Rectangle(0,-121.6,800.3,573.1),f,f,f,f,f,f=new c.Rectangle(-22.1,-121.6,842.2,582.4),f,f,f,f,f,f,f,f,f,new c.Rectangle(-29.9,-121.6,857.6,584.5),new c.Rectangle(-46.3,-121.6,890,593.4),new c.Rectangle(-67.7,-121.6,932.2,604)],(a.levelselection=function(a,b,c){this.initialize(a,b,c,{})}).prototype=e=new c.MovieClip,e.nominalBounds=f=null,e.frameBounds=[f]}(pixiflash_lib=pixiflash_lib||{},pixiflash_images=pixiflash_images||{},pixiflash=pixiflash||{},ss=ss||{});var pixiflash_lib,pixiflash_images,pixiflash,ss;!function(a,b,c,d){var e,f;a.properties={width:800,height:450,fps:30,color:"#333333",manifest:[]},(a.menu_balloon_cosin=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(0)}).prototype=e=new c.Sprite,(a.menu_balloon_head=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(1)}).prototype=e=new c.Sprite,(a.menu_balloon_string=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(2)}).prototype=e=new c.Sprite,(a.menu_bat_body=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(3)}).prototype=e=new c.Sprite,(a.menu_bat_wing1=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(4)}).prototype=e=new c.Sprite,(a.menu_bat_wing2=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(5)}).prototype=e=new c.Sprite,(a.menu_bg=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(6)}).prototype=e=new c.Sprite,(a.menu_jeff_arm1=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(7)}).prototype=e=new c.Sprite,(a.menu_jeff_arm2=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(8)}).prototype=e=new c.Sprite,(a.menu_jeff_body=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(9)}).prototype=e=new c.Sprite,(a.menu_jeff_hand=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(10)}).prototype=e=new c.Sprite,(a.menu_jeff_head=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(11)}).prototype=e=new c.Sprite,(a.menu_jeff_pupil=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(12)}).prototype=e=new c.Sprite,(a.menu_jeff_sword=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(13)}).prototype=e=new c.Sprite,(a.menu_pumpkin_1=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(14)}).prototype=e=new c.Sprite,(a.menu_pumpkin_2=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(15)}).prototype=e=new c.Sprite,(a.menu_pumpkin_antena=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(16)}).prototype=e=new c.Sprite,(a.menu_title_english=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(17)}).prototype=e=new c.Sprite,(a.menu_title_portuguese=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(18)}).prototype=e=new c.Sprite,(a.menu_title_spanish=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(19)}).prototype=e=new c.Sprite,(a.menu_title_usa=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(20)}).prototype=e=new c.Sprite,(a.menu_tree_left=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(21)}).prototype=e=new c.Sprite,(a.menu_tree_left_lights_1=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(22)}).prototype=e=new c.Sprite,(a.menu_tree_left_lights_2=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(23)}).prototype=e=new c.Sprite,(a.menu_tree_right=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(24)}).prototype=e=new c.Sprite,(a.menu_tree_right_lights_1=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(25)}).prototype=e=new c.Sprite,(a.menu_tree_right_lights_2=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(26)}).prototype=e=new c.Sprite,(a.menu_wonby=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(27)}).prototype=e=new c.Sprite,(a.menu_wonby_over=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(28)}).prototype=e=new c.Sprite,(a.x_button_base_2_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(29)}).prototype=e=new c.Sprite,(a.x_button_base_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(30)}).prototype=e=new c.Sprite,(a.x_button_top_2_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(31)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_2_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(32)}).prototype=e=new c.Sprite,(a.x_button_top_highlight_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(33)}).prototype=e=new c.Sprite,(a.x_button_top_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(34)}).prototype=e=new c.Sprite,(a.x_flashgfx_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(35)}).prototype=e=new c.Sprite,(a.x_icon_fullscreen_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(36)}).prototype=e=new c.Sprite,(a.x_icon_musicOFF_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(37)}).prototype=e=new c.Sprite,(a.x_icon_musicON_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(38)}).prototype=e=new c.Sprite,(a.x_icon_next_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(39)}).prototype=e=new c.Sprite,(a.x_white_png=function(){this.spriteSheet=d.mainmenu_atlas_,this.gotoAndStop(40)}).prototype=e=new c.Sprite,(a.x_white=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_white_png,this.instance.setTransform(-32,-32),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-32,-32,64,64),e.frameBounds=[f],(a.x_icon_next=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_next_png,this.instance.setTransform(-22,-26),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22,-26,54,56.1),e.frameBounds=[f],(a.x_icon_musicON=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicON_png,this.instance.setTransform(-23,-25),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-23,-25,47.8,55.5),e.frameBounds=[f],(a.x_icon_musicOFF=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_musicOFF_png,this.instance.setTransform(-22,-25),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22,-25,46.8,54.8),e.frameBounds=[f],(a.x_icon_fullscreen=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_icon_fullscreen_png,this.instance.setTransform(-26,-27),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-26.3,-27.2,55.3,55.3),e.frameBounds=[f],(a.x_flashgfx=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_flashgfx_png,this.instance.setTransform(-32,-32),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-32,-32,64,64),e.frameBounds=[f],(a.x_button_top_highlight_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_2_png,this.instance.setTransform(-39,-40),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-40,79.2,77.6),e.frameBounds=[f],(a.x_button_top_highlight=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_highlight_png,this.instance.setTransform(-39,-40),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-40,79.2,77.6),e.frameBounds=[f],(a.x_button_top_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_2_png,this.instance.setTransform(-39,-40),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-40,79.2,77.6),e.frameBounds=[f],(a.x_button_top=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_top_png,this.instance.setTransform(-39,-40),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-39,-40,79.2,77.6),e.frameBounds=[f],(a.x_button_base_2=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_2_png,this.instance.setTransform(-40,-19),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81.3,65.3),e.frameBounds=[f],(a.x_button_base=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_button_base_png,this.instance.setTransform(-40,-19),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40.2,-19.2,81.3,65.3),e.frameBounds=[f],(a.wonbyover=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_wonby_over,this.instance.setTransform(-42.7,-35.5),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-42.7,-35.5,85,71),e.frameBounds=[f],(a.tree_right=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_tree_right_lights_2,this.instance.setTransform(-246.9,4),this.instance._off=!0,this.timeline.addTween(c.Tween.get(this.instance).wait(14).to({_off:!1},0).wait(16)),this.instance_1=new a.menu_tree_right_lights_1,this.instance_1.setTransform(-258.7,25.4),this.timeline.addTween(c.Tween.get(this.instance_1).to({_off:!0},14).wait(16)),this.instance_2=new a.menu_tree_right,this.instance_2.setTransform(-388.1,-56),this.timeline.addTween(c.Tween.get(this.instance_2).wait(30))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-388.1,-56,389,561),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.tree_left=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_tree_left_lights_2,this.instance.setTransform(.9,37.8),this.instance._off=!0,this.timeline.addTween(c.Tween.get(this.instance).wait(15).to({_off:!1},0).wait(15)),this.instance_1=new a.menu_tree_left_lights_1,this.instance_1.setTransform(-.1,-11),this.timeline.addTween(c.Tween.get(this.instance_1).to({_off:!0},15).wait(15)),this.instance_2=new a.menu_tree_left,this.instance_2.setTransform(0,-54.9),this.timeline.addTween(c.Tween.get(this.instance_2).wait(30))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-.1,-54.9,430.1,561),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=new c.Rectangle(0,-54.9,430,561),f,f,f,f,f,f,f,f,f,f,f,f,f,f],(a.title=function(b,d,e){this.initialize(b,d,e,{english:0,portuguese:9,spanish:19,usa:28}),this.frame_0=function(){this.stop()},this.frame_9=function(){this.stop()},this.frame_19=function(){this.stop()},this.frame_28=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).call(this.frame_0).wait(9).call(this.frame_9).wait(10).call(this.frame_19).wait(9).call(this.frame_28).wait(9)),this.instance=new a.menu_title_english,this.instance.setTransform(-287.8,-66),this.instance_1=new a.menu_title_portuguese,this.instance_1.setTransform(-286.7,-69.3),this.instance_2=new a.menu_title_spanish,this.instance_2.setTransform(-287.7,-72.8),this.instance_3=new a.menu_title_usa,this.instance_3.setTransform(-263.4,-42.5,1.022,1.022),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},9).to({state:[{t:this.instance_2}]},10).to({state:[{t:this.instance_3}]},9).wait(9))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-287.8,-66,503,136),e.frameBounds=[f,f,f,f,f,f,f,f,f,f=new c.Rectangle(-286.7,-69.3,546,123),f,f,f,f,f,f,f,f,f,f=new c.Rectangle(-287.7,-72.8,530,130),f,f,f,f,f,f,f,f,f=new c.Rectangle(-263.4,-42.5,302.4,82.8),f,f,f,f,f,f,f,f],(a.menu_pumpkin_antena_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_pumpkin_antena,this.instance.setTransform(-9,-97.1),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-9,-97.1,72,116),e.frameBounds=[f],(a.menu_pumpkin_2_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_pumpkin_2,this.instance.setTransform(-156.7,-100.3),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-156.7,-100.3,178,134),e.frameBounds=[f],(a.menu_pumpkin_1_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_pumpkin_1,this.instance.setTransform(-135,-58.5),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-135,-58.5,270,117),e.frameBounds=[f],(a.menu_jeff_sword_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_sword,this.instance.setTransform(-180.9,-368),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-180.9,-368,494,475),e.frameBounds=[f],(a.menu_jeff_pupil_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_pupil,this.instance.setTransform(-13,-12),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-13,-12,26,24),e.frameBounds=[f],(a.menu_jeff_hand_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_hand,this.instance.setTransform(-54.2,-63.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-54.2,-63.7,76,86),e.frameBounds=[f],(a.menu_jeff_body_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_body,this.instance.setTransform(-49.1,-124),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-49.1,-124,86,174),e.frameBounds=[f],(a.menu_jeff_arm2_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_arm2,this.instance.setTransform(-154.1,-24),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-154.1,-24,167,85),e.frameBounds=[f],(a.menu_jeff_arm1_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_arm1,this.instance.setTransform(-178.3,-14.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-178.3,-14.6,193,110),e.frameBounds=[f],(a.menu_bat_wing2_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_bat_wing2,this.instance.setTransform(-52.2,-33.5),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-52.2,-33.5,60,86),e.frameBounds=[f],(a.menu_bat_wing1_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_bat_wing1,this.instance.setTransform(-10.4,-39.1),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-10.4,-39.1,83,87),e.frameBounds=[f],(a.menu_bat_body_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_bat_body,this.instance.setTransform(-46,-6.6),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-46,-6.6,101,213),e.frameBounds=[f],(a.menu_balloon_string_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_balloon_string,this.instance.setTransform(-55,-47),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-55,-47,110,94),e.frameBounds=[f],(a.menu_balloon_head_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_balloon_head,this.instance.setTransform(-41.1,-76.2,1,1,11.5),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-67.6,-76.2,135.3,152.5),e.frameBounds=[f],(a.menu_balloon_cosin_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_balloon_cosin,this.instance.setTransform(-11.5,-10),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-11.5,-10,23,20),e.frameBounds=[f],(a.bg=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_bg,this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(0,0,800,450),e.frameBounds=[f],(a.hitboxbutton=function(a,b,c){this.initialize(a,b,c,{})}).prototype=e=new c.MovieClip,e.nominalBounds=f=null,e.frameBounds=[f],(a.white=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_white,this.instance.setTransform(399,220.1,13.159,7.52),this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.1,-20.5,842.2,481.3),e.frameBounds=[f],(a.pupilanimeta=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_pupil_1,this.instance.setTransform(0,0,.821,.821),this.timeline.addTween(c.Tween.get(this.instance).to({scaleX:.72,scaleY:.72},4).to({scaleX:.82,scaleY:.82},4).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-10.6,-9.8,21.3,19.7),e.frameBounds=[f,new c.Rectangle(-10.3,-9.5,20.7,19.1),new c.Rectangle(-10,-9.2,20.1,18.5),new c.Rectangle(-9.7,-8.9,19.4,18),new c.Rectangle(-9.4,-8.6,18.8,17.3),new c.Rectangle(-9.7,-8.9,19.4,18),new c.Rectangle(-10,-9.2,20.1,18.5),new c.Rectangle(-10.3,-9.5,20.7,19.1),new c.Rectangle(-10.6,-9.8,21.3,19.7)],(a.pumpkin=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_pumpkin_2_1,this.instance.setTransform(58.4,25.8),this.timeline.addTween(c.Tween.get(this.instance).to({rotation:1.5},8).to({rotation:0},9).to({rotation:1.2},7).to({rotation:0},9).wait(8)),this.instance_1=new a.menu_pumpkin_1_1,this.instance_1.setTransform(-2.5,83.4),this.timeline.addTween(c.Tween.get(this.instance_1).to({y:81.7},17).to({y:83.4},23).wait(1)),this.instance_2=new a.menu_pumpkin_antena_1,this.instance_2.setTransform(60.9,-15),this.timeline.addTween(c.Tween.get(this.instance_2).to({rotation:-3.7},8).to({rotation:4},12).to({rotation:-2.5},11).to({rotation:0},9).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-137.5,-112.1,270,254),e.frameBounds=[f,new c.Rectangle(-137.5,-112.5,270,254.3),new c.Rectangle(-137.5,-113,270,254.7),new c.Rectangle(-137.5,-113.5,270,255.1),new c.Rectangle(-137.5,-114,270,255.5),new c.Rectangle(-137.5,-114.5,270,255.9),new c.Rectangle(-137.5,-115,270,256.3),new c.Rectangle(-137.5,-115.3,270,256.5),new c.Rectangle(-137.5,-116,270,257.1),new c.Rectangle(-137.5,-115.3,270,256.3),new c.Rectangle(-137.5,-114.6,270,255.6),new c.Rectangle(-137.5,-114,270,254.9),new c.Rectangle(-137.5,-113.3,270,254.1),new c.Rectangle(-137.5,-112.5,270,253.1),f=new c.Rectangle(-137.5,-112.2,270,252.7),f,new c.Rectangle(-137.5,-112.3,270,252.7),new c.Rectangle(-137.5,-112.4,270,252.6),new c.Rectangle(-137.5,-112.4,270,252.7),new c.Rectangle(-137.5,-112.5,270,252.9),new c.Rectangle(-137.5,-112.5,270,253),new c.Rectangle(-137.5,-112.4,270,253),new c.Rectangle(-137.5,-112.5,270,253.1),new c.Rectangle(-137.5,-112.4,270,253.1),f=new c.Rectangle(-137.5,-112.3,270,253.1),f,new c.Rectangle(-137.5,-112.1,270,253),new c.Rectangle(-137.5,-112.1,270,253.1),new c.Rectangle(-137.5,-112.7,270,253.8),new c.Rectangle(-137.5,-113.5,270,254.6),new c.Rectangle(-137.5,-114,270,255.2),new c.Rectangle(-137.5,-114.7,270,256),new c.Rectangle(-137.5,-114.3,270,255.6),new c.Rectangle(-137.5,-114,270,255.4),new c.Rectangle(-137.5,-113.8,270,255.2),new c.Rectangle(-137.5,-113.5,270,255),new c.Rectangle(-137.5,-113.3,270,254.9),new c.Rectangle(-137.5,-113,270,254.7),new c.Rectangle(-137.5,-112.7,270,254.4),new c.Rectangle(-137.5,-112.4,270,254.2),new c.Rectangle(-137.5,-112.1,270,254)], (a.NextButton=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_next,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:5,regY:2,x:5,y:3.7},0).wait(1).to({y:3.4},0).wait(1).to({y:2.9},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:5,regY:2,x:5,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:5,regY:2,x:5,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:5,regY:2,x:5,y:2.4},0).wait(1).to({y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.5,regY:-1.5,x:.5,y:.2},0).wait(1).to({y:-.1},0).wait(1).to({y:-.6},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.5,regY:-1.5,x:.5,y:-1.1},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40,-38.2,81,84.3),e.frameBounds=[f,new c.Rectangle(-40,-38.3,81,84.4),new c.Rectangle(-40,-38.6,81,84.6),new c.Rectangle(-40,-39.1,81,85.2),new c.Rectangle(-40,-40,81,86),new c.Rectangle(-40,-39.2,81,85.2),new c.Rectangle(-40,-38.9,81,85),new c.Rectangle(-40,-39.2,81,85.2),f=new c.Rectangle(-40,-40,81,86),f,new c.Rectangle(-40,-39.6,81,85.7),new c.Rectangle(-40,-38.6,81,84.7),new c.Rectangle(-40,-38.2,81,84.3),f=new c.Rectangle(-40,-36.8,81,82.9),f,f,f,f,f,f],(a.menu_jeff_head_1=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.pupilanimeta,this.instance.setTransform(-85.1,-88.1,.812,.812),this.instance_1=new a.pupilanimeta,this.instance_1.setTransform(9.2,-114.5,.812,.812),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1)),this.instance_2=new a.menu_jeff_head,this.instance_2.setTransform(-170.8,-234),this.timeline.addTween(c.Tween.get(this.instance_2).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-170.8,-234,288,270),e.frameBounds=[f],(a.jeff=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_jeff_hand_1,this.instance.setTransform(-56.4,165.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:-16.3,regY:-20.8,rotation:.1,x:-72.7,y:144.7},0).wait(1).to({rotation:.4,x:-72.8,y:143.6},0).wait(1).to({rotation:1,x:-72.9,y:141.5},0).wait(1).to({rotation:1.9,x:-73.1,y:138.6},0).wait(1).to({rotation:2.7,x:-73.3,y:135.5},0).wait(1).to({rotation:3.4,x:-73.4,y:133.2},0).wait(1).to({rotation:3.9,x:-73.5,y:131.7},0).wait(1).to({rotation:4.1,y:130.9},0).wait(1).to({regX:0,regY:0,rotation:4.2,x:-58.8,y:152.6},0).wait(1).to({regX:-16.3,regY:-20.8,rotation:4.1,x:-73.5,y:130.9},0).wait(1).to({rotation:3.8,y:132.1},0).wait(1).to({rotation:3.2,x:-73.4,y:134.1},0).wait(1).to({rotation:2.3,x:-73.2,y:137},0).wait(1).to({rotation:1.5,x:-73,y:140},0).wait(1).to({rotation:.8,x:-72.8,y:142.4},0).wait(1).to({rotation:.3,y:143.9},0).wait(1).to({rotation:.1,x:-72.7,y:144.8},0).wait(1).to({regX:0,regY:0,rotation:0,x:-56.4,y:165.8},0).wait(1)),this.instance_1=new a.menu_jeff_head_1,this.instance_1.setTransform(74.7,104.5),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:-26.8,regY:-99.1,rotation:.1,x:48.1,y:5.4},0).wait(1).to({rotation:.4,x:48.8,y:5.3},0).wait(1).to({rotation:.8,x:50,y:5.1},0).wait(1).to({rotation:1.2,x:51,y:4.9},0).wait(1).to({rotation:1.4,x:51.5,y:4.8},0).wait(1).to({regX:0,regY:0,x:76,y:104.5},0).wait(1).to({regX:-26.8,regY:-99.1,x:51.7,y:4.8},0).wait(1).to({x:51.5},0).wait(1).to({rotation:1.3,x:51.2},0).wait(1).to({rotation:1.1,x:50.8,y:4.9},0).wait(1).to({rotation:.9,x:50.2,y:5},0).wait(1).to({rotation:.7,x:49.6,y:5.1},0).wait(1).to({rotation:.4,x:49,y:5.2},0).wait(1).to({rotation:.3,x:48.6,y:5.3},0).wait(1).to({rotation:.1,x:48.3,y:5.4},0).wait(1).to({x:48.1},0).wait(1).to({rotation:0,x:47.9},0).wait(1).to({regX:0,regY:0,x:74.7,y:104.5},0).wait(1)),this.instance_2=new a.menu_jeff_arm1_1,this.instance_2.setTransform(117.5,122.4,1.011,1),this.timeline.addTween(c.Tween.get(this.instance_2).wait(1).to({regX:-81.8,regY:40.3,rotation:.1,x:34.8,y:162.5},0).wait(1).to({rotation:.4,x:34.5,y:162},0).wait(1).to({scaleX:1.01,rotation:1,x:34.1,y:161.1},0).wait(1).to({rotation:1.9,x:33.6,y:159.8},0).wait(1).to({scaleX:1.01,rotation:2.7,x:33,y:158.4},0).wait(1).to({rotation:3.4,x:32.6,y:157.3},0).wait(1).to({rotation:3.9,x:32.3,y:156.5},0).wait(1).to({rotation:4.1,x:32.2,y:156.2},0).wait(1).to({regX:0,regY:0,scaleX:1.01,rotation:4.2,x:117.8,y:122},0).wait(1).to({regX:-81.8,regY:40.3,scaleX:1.01,rotation:4.1,x:32.2,y:156.2},0).wait(1).to({rotation:3.8,x:32.4,y:156.7},0).wait(1).to({rotation:3.2,x:32.7,y:157.7},0).wait(1).to({scaleX:1.01,rotation:2.3,x:33.3,y:159},0).wait(1).to({rotation:1.5,x:33.9,y:160.4},0).wait(1).to({rotation:.8,x:34.3,y:161.5},0).wait(1).to({scaleX:1.01,rotation:.3,x:34.6,y:162.2},0).wait(1).to({rotation:.1,x:34.8,y:162.5},0).wait(1).to({regX:0,regY:0,rotation:0,x:117.5,y:122.4},0).wait(1)),this.instance_3=new a.menu_jeff_body_1,this.instance_3.setTransform(108.1,218),this.timeline.addTween(c.Tween.get(this.instance_3).wait(1).to({regX:-6.1,regY:-37,x:102,y:180.9},0).wait(1).to({y:180.7},0).wait(1).to({y:180.4},0).wait(1).to({y:180},0).wait(1).to({y:179.5},0).wait(1).to({y:179.1},0).wait(1).to({y:178.7},0).wait(1).to({y:178.5},0).wait(1).to({y:178.4},0).wait(1).to({regX:0,regY:0,x:108.1,y:215.4},0).wait(1).to({regX:-6.1,regY:-37,x:102,y:178.4},0).wait(1).to({y:178.7},0).wait(1).to({y:179.2},0).wait(1).to({y:179.8},0).wait(1).to({y:180.3},0).wait(1).to({y:180.7},0).wait(1).to({y:180.9},0).wait(1).to({regX:0,regY:0,x:108.1,y:218},0).wait(1)),this.instance_4=new a.menu_jeff_arm2_1,this.instance_4.setTransform(72.6,146),this.timeline.addTween(c.Tween.get(this.instance_4).wait(1).to({regX:-70.6,regY:18.5,rotation:.1,x:1.9,y:164.3},0).wait(1).to({rotation:.4,x:1.7,y:163.6},0).wait(1).to({rotation:1,x:1.3,y:162.3},0).wait(1).to({rotation:1.9,x:.9,y:160.5},0).wait(1).to({rotation:2.7,x:.4,y:158.6},0).wait(1).to({rotation:3.4,x:0,y:157.1},0).wait(1).to({rotation:3.9,x:-.3,y:156.1},0).wait(1).to({rotation:4.1,x:-.4,y:155.6},0).wait(1).to({regX:0,regY:0,rotation:4.2,x:71.3,y:142.2},0).wait(1).to({regX:-70.6,regY:18.5,rotation:4.1,x:-.4,y:155.7},0).wait(1).to({rotation:3.8,x:-.2,y:156.4},0).wait(1).to({rotation:3.2,x:.1,y:157.7},0).wait(1).to({rotation:2.3,x:.6,y:159.5},0).wait(1).to({rotation:1.5,x:1.1,y:161.3},0).wait(1).to({rotation:.8,x:1.5,y:162.8},0).wait(1).to({rotation:.3,x:1.8,y:163.8},0).wait(1).to({rotation:.1,x:2,y:164.3},0).wait(1).to({regX:0,regY:0,rotation:0,x:72.6,y:146},0).wait(1)),this.instance_5=new a.menu_jeff_sword_1,this.instance_5.setTransform(-66.3,120.9),this.timeline.addTween(c.Tween.get(this.instance_5).wait(1).to({regX:66.1,regY:-130.6,rotation:.1,x:0,y:-10},0).wait(1).to({rotation:.4,x:.8,y:-10.6},0).wait(1).to({rotation:1,x:2.4,y:-11.9},0).wait(1).to({rotation:1.9,x:4.4,y:-13.7},0).wait(1).to({rotation:2.7,x:6.6,y:-15.5},0).wait(1).to({rotation:3.4,x:8.3,y:-16.9},0).wait(1).to({rotation:3.9,x:9.4,y:-17.7},0).wait(1).to({rotation:4.1,x:10,y:-18.2},0).wait(1).to({regX:0,regY:0,rotation:4.2,x:-65.4,y:107.1},0).wait(1).to({regX:66.1,regY:-130.6,rotation:4.1,x:9.9,y:-18.1},0).wait(1).to({rotation:3.8,x:9.1,y:-17.5},0).wait(1).to({rotation:3.2,x:7.7,y:-16.3},0).wait(1).to({rotation:2.3,x:5.6,y:-14.6},0).wait(1).to({rotation:1.5,x:3.4,y:-12.8},0).wait(1).to({rotation:.8,x:1.7,y:-11.3},0).wait(1).to({rotation:.3,x:.6,y:-10.4},0).wait(1).to({rotation:.1,x:0,y:-9.9},0).wait(1).to({regX:0,regY:0,rotation:0,x:-66.3,y:120.9},0).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-247.2,-247.2,494,515.2),e.frameBounds=[f,new c.Rectangle(-247.3,-247.5,494.2,515.5),new c.Rectangle(-247.6,-249.5,496.4,517.3),new c.Rectangle(-248.8,-253.6,502.3,521.1),new c.Rectangle(-250.1,-258.7,508.5,525.7),new c.Rectangle(-251.2,-263.9,514.7,530.4),new c.Rectangle(-252.2,-268.2,520.4,534.3),new c.Rectangle(-252.9,-271,524.2,536.8),new c.Rectangle(-253.3,-272.4,526.1,537.9),new c.Rectangle(-253.6,-273.2,527.5,538.7),new c.Rectangle(-253.3,-272.3,526,537.7),new c.Rectangle(-253.1,-270.6,524,536.1),new c.Rectangle(-252,-266.7,518.5,532.4),new c.Rectangle(-250.8,-261.7,512.4,527.8),new c.Rectangle(-249.3,-256,504.7,522.8),new c.Rectangle(-248.5,-252,500.2,519.4),new c.Rectangle(-247.7,-249,496.2,516.8),new c.Rectangle(-247.3,-247.5,494.2,515.5),new c.Rectangle(-247.2,-247.2,494,515.2)],(a.headballon=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_balloon_head_1,this.instance.setTransform(0,0,1,1,-10.2),this.timeline.addTween(c.Tween.get(this.instance).wait(2).to({scaleX:1},0).wait(2).to({scaleX:1,scaleY:1,y:.1},0).wait(1).to({scaleX:1},0).wait(1).to({scaleX:1,scaleY:1,y:.2},0).wait(1).to({scaleX:1.01,scaleY:1},0).wait(1).to({scaleX:1.01,scaleY:1,x:.1,y:.3},0).wait(1).to({scaleX:1.01,scaleY:1,y:.4},0).wait(1).to({scaleX:1.02,scaleY:.99,y:.5},0).wait(1).to({scaleX:1.02,scaleY:.99,y:.6},0).wait(1).to({scaleX:1.02,scaleY:.99,y:.7},0).wait(1).to({scaleX:1.03,scaleY:.99,x:.2,y:.9},0).wait(1).to({scaleX:1.03,scaleY:.99,y:1},0).wait(1).to({scaleX:1.04,scaleY:.99,y:1.1},0).wait(1).to({scaleX:1.04,scaleY:.98,y:1.2},0).wait(1).to({scaleX:1.05,scaleY:.98,y:1.4},0).wait(1).to({scaleX:1.05,scaleY:.98,x:.3},0).wait(1).to({scaleX:1.05,scaleY:.98,y:1.5},0).wait(1).to({scaleX:1.05,y:1.6},0).wait(1).to({scaleX:1.05,scaleY:.98},0).wait(1).to({scaleX:1.06,y:1.7},0).wait(1).to({scaleY:.98},0).wait(1).to({scaleX:1.06},0).wait(2).to({y:1.6},0).wait(2).to({scaleX:1.06},0).wait(1).to({scaleX:1.06,scaleY:.98},0).wait(1).to({scaleX:1.05},0).wait(1).to({scaleX:1.05,scaleY:.98,y:1.5},0).wait(1).to({scaleX:1.05},0).wait(1).to({scaleX:1.05,scaleY:.98,y:1.4},0).wait(1).to({scaleX:1.05,scaleY:.98,x:.2},0).wait(1).to({scaleX:1.04,scaleY:.98,y:1.3},0).wait(1).to({scaleX:1.04,scaleY:.98,y:1.2},0).wait(1).to({scaleX:1.04,scaleY:.99,y:1.1},0).wait(1).to({scaleX:1.03,scaleY:.99,y:1},0).wait(1).to({scaleX:1.03,scaleY:.99,y:.9},0).wait(1).to({scaleX:1.03,scaleY:.99,x:.1,y:.7},0).wait(1).to({scaleX:1.02,scaleY:.99,y:.6},0).wait(1).to({scaleX:1.02,scaleY:.99,y:.5},0).wait(1).to({scaleX:1.01,scaleY:.99,y:.4},0).wait(1).to({scaleX:1.01,scaleY:1,y:.3},0).wait(1).to({scaleX:1.01,scaleY:1,x:0,y:.2},0).wait(1).to({scaleX:1.01,y:.1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1,scaleY:1,y:0},0).wait(1).to({scaleX:1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1},0).wait(3))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-80.1,-87,160.3,174.1),e.frameBounds=[f,new c.Rectangle(-57.1,-67.8,114.2,135.6),new c.Rectangle(-57.1,-67.7,114.3,135.6),new c.Rectangle(-57.2,-67.7,114.4,135.6),new c.Rectangle(-57.3,-67.6,114.5,135.5),new c.Rectangle(-57.3,-67.6,114.7,135.4),new c.Rectangle(-57.4,-67.5,115,135.3),new c.Rectangle(-57.5,-67.3,115.2,135.1),new c.Rectangle(-57.7,-67.1,115.6,135),new c.Rectangle(-57.9,-66.9,116,134.7),new c.Rectangle(-58.1,-66.7,116.5,134.5),new c.Rectangle(-58.4,-66.4,117.1,134.2),new c.Rectangle(-58.7,-66.2,117.7,133.9),new c.Rectangle(-58.9,-65.9,118.3,133.6),new c.Rectangle(-59.2,-65.5,118.9,133.3),new c.Rectangle(-59.6,-65.3,119.6,132.9),new c.Rectangle(-59.8,-65,120.1,132.6),new c.Rectangle(-60,-64.8,120.6,132.4),new c.Rectangle(-60.2,-64.6,121,132.1),new c.Rectangle(-60.4,-64.4,121.4,132),new c.Rectangle(-60.5,-64.3,121.7,131.8),new c.Rectangle(-60.6,-64.1,121.9,131.7),new c.Rectangle(-60.7,-64.1,122,131.7),new c.Rectangle(-60.7,-64,122.1,131.6),new c.Rectangle(-60.8,-64,122.2,131.6),new c.Rectangle(-83.3,-84.4,167.2,172.2),f=new c.Rectangle(-60.8,-64,122.2,131.6),f,new c.Rectangle(-60.7,-64.1,122.1,131.6),new c.Rectangle(-60.7,-64.1,122,131.7),new c.Rectangle(-60.6,-64.2,121.8,131.7),new c.Rectangle(-60.5,-64.3,121.7,131.8),new c.Rectangle(-60.4,-64.4,121.4,132),new c.Rectangle(-60.3,-64.5,121.2,132.1),new c.Rectangle(-60.1,-64.7,120.8,132.2),new c.Rectangle(-60,-64.8,120.5,132.5),new c.Rectangle(-59.8,-65,120,132.7),new c.Rectangle(-59.6,-65.3,119.6,132.9),new c.Rectangle(-59.3,-65.6,119,133.1),new c.Rectangle(-59,-65.8,118.5,133.5),new c.Rectangle(-58.7,-66.1,117.9,133.8),new c.Rectangle(-58.6,-66.4,117.4,134.1),new c.Rectangle(-58.3,-66.6,116.8,134.3),new c.Rectangle(-58,-66.8,116.3,134.6),new c.Rectangle(-57.8,-67,115.9,134.8),new c.Rectangle(-57.6,-67.2,115.5,135),new c.Rectangle(-57.5,-67.3,115.2,135.2),new c.Rectangle(-57.4,-67.5,114.9,135.3),new c.Rectangle(-57.3,-67.6,114.7,135.4),new c.Rectangle(-57.2,-67.7,114.5,135.5),new c.Rectangle(-57.2,-67.7,114.4,135.6),new c.Rectangle(-57.1,-67.7,114.3,135.6),new c.Rectangle(-57.1,-67.8,114.2,135.6),new c.Rectangle(-80.1,-87,160.3,174.1)],(a.FullscreenBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_fullscreen,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1.5,regY:.5,x:1.5,y:2.2},0).wait(1).to({y:1.9},0).wait(1).to({y:1.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1.5,regY:.5,x:1.5,y:1.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1.5,regY:.5,x:1.5,y:1.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1.5,regY:.5,x:1.5,y:.9},0).wait(1).to({y:1.8},0).wait(1).to({regX:0,regY:0,x:0},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.5,regY:-1.5,x:.5,y:.2},0).wait(1).to({y:-.1},0).wait(1).to({y:-.6},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.5,regY:-1.5,x:.5,y:-1.1},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40,-38.2,81,84.3),e.frameBounds=[f,new c.Rectangle(-40,-38.3,81,84.4),new c.Rectangle(-40,-38.6,81,84.6),new c.Rectangle(-40,-39.1,81,85.2),new c.Rectangle(-40,-40,81,86),new c.Rectangle(-40,-39.2,81,85.2),new c.Rectangle(-40,-38.9,81,85),new c.Rectangle(-40,-39.2,81,85.2),f=new c.Rectangle(-40,-40,81,86),f,new c.Rectangle(-40,-39.6,81,85.7),new c.Rectangle(-40,-38.6,81,84.7),new c.Rectangle(-40,-38.2,81,84.3),f=new c.Rectangle(-40,-36.8,81,82.9),f,f,f,f,f,f],(a.flash=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.x_flashgfx,this.instance.setTransform(399,220.1,13.159,7.52),this.instance.compositeOperation="lighter",this.timeline.addTween(c.Tween.get(this.instance).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-22.1,-20.5,842.2,481.3),e.frameBounds=[f],(a.button_music_off=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicOFF,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:1,regY:2,x:1,y:3.7},0).wait(1).to({y:3.4},0).wait(1).to({y:2.9},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:1,regY:2,x:1,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:1,regY:2,x:1,y:2.8},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:1,regY:2,x:1,y:2.4},0).wait(1).to({y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top_2,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight_2,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.5,regY:-1.5,x:.5,y:.2},0).wait(1).to({y:-.1},0).wait(1).to({y:-.6},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.5,regY:-1.5,x:.5,y:-1.1},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base_2,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40,-38.2,81,84.3),e.frameBounds=[f,new c.Rectangle(-40,-38.3,81,84.4),new c.Rectangle(-40,-38.6,81,84.6),new c.Rectangle(-40,-39.1,81,85.2),new c.Rectangle(-40,-40,81,86),new c.Rectangle(-40,-39.2,81,85.2),new c.Rectangle(-40,-38.9,81,85),new c.Rectangle(-40,-39.2,81,85.2),f=new c.Rectangle(-40,-40,81,86),f,new c.Rectangle(-40,-39.6,81,85.7),new c.Rectangle(-40,-38.6,81,84.7),new c.Rectangle(-40,-38.2,81,84.3),f=new c.Rectangle(-40,-36.8,81,82.9),f,f,f,f,f,f],(a.button_music=function(b,d,e){this.initialize(b,d,e,{out:0,over:9,down:13}),this.frame_8=function(){this.stop()},this.frame_12=function(){this.stop()},this.frame_19=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(8).call(this.frame_8).wait(4).call(this.frame_12).wait(7).call(this.frame_19).wait(1)),this.instance=new a.x_icon_musicON,this.instance.setTransform(0,1.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:.5,regY:2.5,x:.5,y:4.2},0).wait(1).to({y:3.9},0).wait(1).to({y:3.4},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.5,regY:2.5,x:.5,y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.5,regY:2.5,x:.5,y:3.3},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.5,regY:2.5,x:.5,y:2.9},0).wait(1).to({y:3.8},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).wait(1).to({y:3.2},0).wait(7)),this.instance_1=new a.x_button_top,this.instance_1.setTransform(0,1.8),this.instance_2=new a.x_button_top_highlight,this.instance_2.setTransform(0,3.2),this.timeline.addTween(c.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).wait(7)),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:.5,regY:-1.5,x:.5,y:.2},0).wait(1).to({y:-.1},0).wait(1).to({y:-.6},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:1.1},0).wait(1).to({regX:.5,regY:-1.5,x:.5,y:-.7},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(2).to({regX:.5,regY:-1.5,x:.5,y:-1.1},0).wait(1).to({y:-.2},0).wait(1).to({regX:0,regY:0,x:0,y:1.8},0).to({_off:!0},1).wait(7)),this.instance_3=new a.x_button_base,this.timeline.addTween(c.Tween.get(this.instance_3).wait(20)),this.instance_4=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_4).wait(20))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40,-38.2,81,84.3),e.frameBounds=[f,new c.Rectangle(-40,-38.3,81,84.4),new c.Rectangle(-40,-38.6,81,84.6),new c.Rectangle(-40,-39.1,81,85.2),new c.Rectangle(-40,-40,81,86),new c.Rectangle(-40,-39.2,81,85.2),new c.Rectangle(-40,-38.9,81,85),new c.Rectangle(-40,-39.2,81,85.2),f=new c.Rectangle(-40,-40,81,86),f,new c.Rectangle(-40,-39.6,81,85.7),new c.Rectangle(-40,-38.6,81,84.7),new c.Rectangle(-40,-38.2,81,84.3),f=new c.Rectangle(-40,-36.8,81,82.9),f,f,f,f,f,f],(a.CreditsBtn=function(b,d,e){this.initialize(b,d,e,{out:0,over:6,down:12,disabled:19}),this.frame_5=function(){this.stop()},this.frame_11=function(){this.stop()},this.frame_18=function(){this.stop()},this.frame_24=function(){this.stop()},this.timeline.addTween(c.Tween.get(this).wait(5).call(this.frame_5).wait(6).call(this.frame_11).wait(7).call(this.frame_18).wait(6).call(this.frame_24).wait(1)),this.instance=new a.wonbyover,this.instance.setTransform(-1.9,3.3),this.timeline.addTween(c.Tween.get(this.instance).to({alpha:0},6).to({alpha:1},5).to({_off:!0},8).wait(6)),this.instance_1=new a.menu_wonby,this.instance_1.setTransform(-45.5,-32.8),this.timeline.addTween(c.Tween.get(this.instance_1).to({_off:!0},19).wait(6)),this.instance_2=new a.hitboxbutton,this.timeline.addTween(c.Tween.get(this.instance_2).wait(25))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-45.5,-32.8,85.9,86),e.frameBounds=[f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=null,f,f,f,f,f],(a.bat=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.menu_bat_wing1_1,this.instance.setTransform(46.2,141.8),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:31,regY:4.4,rotation:-.1,x:77.2,y:146.2},0).wait(1).to({rotation:-.2,y:146.4},0).wait(1).to({rotation:-.6,x:77.3,y:146.8},0).wait(1).to({rotation:-1.1,y:147.4},0).wait(1).to({rotation:-1.9,x:77.4,y:148.3},0).wait(1).to({rotation:-2.9,y:149.4},0).wait(1).to({rotation:-4,y:150.7},0).wait(1).to({rotation:-5,x:77.5,y:151.8},0).wait(1).to({rotation:-5.8,y:152.7},0).wait(1).to({rotation:-6.4,y:153.3},0).wait(1).to({rotation:-6.7,y:153.6},0).wait(1).to({rotation:-6.9,y:153.9},0).wait(1).to({regX:0,regY:0,rotation:-7,x:46.2,y:153.4},0).wait(1).to({regX:31,regY:4.4,rotation:-6.9,x:77.5,y:153.9},0).wait(1).to({rotation:-6.8,y:153.7},0).wait(1).to({rotation:-6.6,y:153.5},0).wait(1).to({rotation:-6.3,y:153.1},0).wait(1).to({rotation:-5.8,y:152.7},0).wait(1).to({rotation:-5.2,y:152},0).wait(1).to({rotation:-4.4,y:151.1},0).wait(1).to({rotation:-3.5,x:77.4,y:150.1},0).wait(1).to({rotation:-2.6,y:149.1},0).wait(1).to({rotation:-1.8,y:148.2},0).wait(1).to({rotation:-1.2,x:77.3,y:147.5},0).wait(1).to({rotation:-.7,y:146.9},0).wait(1).to({rotation:-.4,y:146.6},0).wait(1).to({rotation:-.2,x:77.2,y:146.3},0).wait(1).to({rotation:0,y:146.2},0).wait(1).to({regX:0,regY:0,x:46.2,y:141.8},0).wait(1)),this.instance_1=new a.menu_bat_body_1,this.instance_1.setTransform(-.9,4.7),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({regX:4.4,regY:99.9,x:3.5,y:104.6},0).wait(1).to({y:104.9},0).wait(1).to({y:105.5},0).wait(1).to({y:106.4},0).wait(1).to({y:107.7},0).wait(1).to({y:109.4},0).wait(1).to({y:111.2},0).wait(1).to({y:112.9},0).wait(1).to({y:114.2},0).wait(1).to({y:115.2},0).wait(1).to({y:115.7},0).wait(1).to({y:116.1},0).wait(1).to({regX:0,regY:0,x:-.9,y:16.3},0).wait(1).to({regX:4.4,regY:99.9,x:3.5,y:116.1},0).wait(1).to({y:115.9},0).wait(1).to({y:115.5},0).wait(1).to({y:115},0).wait(1).to({y:114.2},0).wait(1).to({y:113.2},0).wait(1).to({y:111.9},0).wait(1).to({y:110.4},0).wait(1).to({y:108.9},0).wait(1).to({y:107.6},0).wait(1).to({y:106.6},0).wait(1).to({y:105.7},0).wait(1).to({y:105.2},0).wait(1).to({y:104.8},0).wait(1).to({y:104.6},0).wait(1).to({regX:0,regY:0,x:-.9,y:4.7},0).wait(1)),this.instance_2=new a.menu_bat_wing2_1,this.instance_2.setTransform(-35.1,138.1),this.timeline.addTween(c.Tween.get(this.instance_2).wait(1).to({regX:-22.2,regY:9.5,rotation:.1,x:-57.3,y:147.6},0).wait(1).to({rotation:.3,y:147.8},0).wait(1).to({rotation:.8,x:-57.4,y:148.2},0).wait(1).to({rotation:1.5,x:-57.5,y:148.8},0).wait(1).to({rotation:2.5,x:-57.7,y:149.8},0).wait(1).to({rotation:3.8,x:-57.9,y:150.9},0).wait(1).to({rotation:5.3,x:-58.1,y:152.1},0).wait(1).to({rotation:6.6,x:-58.2,y:153.3},0).wait(1).to({rotation:7.7,x:-58.3,y:154.2},0).wait(1).to({rotation:8.4,x:-58.4,y:154.8},0).wait(1).to({rotation:8.9,x:-58.5,y:155.2},0).wait(1).to({rotation:9.2,y:155.4},0).wait(1).to({regX:0,regY:0,x:-35.1,y:149.7},0).wait(1).to({regX:-22.2,regY:9.5,x:-58.5,y:155.4},0).wait(1).to({rotation:9,y:155.3},0).wait(1).to({rotation:8.7,y:155},0).wait(1).to({rotation:8.3,x:-58.4,y:154.7},0).wait(1).to({rotation:7.7,x:-58.3,y:154.2},0).wait(1).to({rotation:6.9,y:153.5},0).wait(1).to({rotation:5.8,x:-58.1,y:152.6},0).wait(1).to({rotation:4.7,x:-58,y:151.6},0).wait(1).to({rotation:3.5,x:-57.8,y:150.6},0).wait(1).to({rotation:2.4,x:-57.7,y:149.7},0).wait(1).to({rotation:1.6,x:-57.5,y:149},0).wait(1).to({rotation:1,x:-57.4,y:148.4},0).wait(1).to({rotation:.5,y:148},0).wait(1).to({rotation:.2,x:-57.3,y:147.7},0).wait(1).to({rotation:0,y:147.6},0).wait(1).to({regX:0,regY:0,x:-35.1,y:138.1},0).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-87.3,-1.9,206.1,213),e.frameBounds=[f,new c.Rectangle(-87.3,-1.8,206.1,213),new c.Rectangle(-87.5,-1.5,206.4,213),new c.Rectangle(-88,-1,207.2,213),new c.Rectangle(-88.5,-.1,208.1,213),new c.Rectangle(-89.5,1.2,209.8,213),new c.Rectangle(-90.6,2.9,211.7,213),new c.Rectangle(-91.8,4.7,213.7,213),new c.Rectangle(-92.9,6.4,215.6,213),new c.Rectangle(-93.7,7.7,216.9,213),new c.Rectangle(-94.3,8.7,217.8,213),new c.Rectangle(-94.6,9.3,218.4,213),new c.Rectangle(-94.9,9.6,218.9,213),new c.Rectangle(-95,9.7,219,213),new c.Rectangle(-94.8,9.6,218.8,213),new c.Rectangle(-94.9,9.4,218.8,213),new c.Rectangle(-94.4,9.1,218.2,213),new c.Rectangle(-94.3,8.5,217.9,213),new c.Rectangle(-93.7,7.7,216.9,213),new c.Rectangle(-93.1,6.7,215.7,213),new c.Rectangle(-92.3,5.4,214.6,213),new c.Rectangle(-91.2,3.9,212.7,213),new c.Rectangle(-90.1,2.5,210.9,213),new c.Rectangle(-89.3,1.1,209.5,213),new c.Rectangle(-88.7,.1,208.4,213),new c.Rectangle(-88,-.7,207.2,213),new c.Rectangle(-87.5,-1.3,206.5,213),new c.Rectangle(-87.3,-1.7,206.1,213),new c.Rectangle(-87.2,-1.9,206,213),new c.Rectangle(-87.3,-1.9,206.1,213)],(a.balloon=function(b,d,e){this.initialize(b,d,e,{}),this.instance=new a.headballon,this.instance.setTransform(4,-41.7),this.timeline.addTween(c.Tween.get(this.instance).wait(1).to({regX:.3,regY:.4,x:4.3,y:-41.3},0).wait(1).to({y:-41.4},0).wait(1).to({y:-41.6},0).wait(1).to({y:-42},0).wait(1).to({y:-42.5},0).wait(1).to({y:-43.1},0).wait(1).to({y:-43.8},0).wait(1).to({y:-44.6},0).wait(1).to({y:-45.4},0).wait(1).to({y:-46.1},0).wait(1).to({y:-46.5},0).wait(1).to({y:-46.9},0).wait(1).to({y:-47},0).wait(1).to({regX:0,regY:0,x:4,y:-47.5},0).wait(1).to({regX:.3,regY:.4,x:4.3,y:-47.1},0).wait(1).to({y:-47},0).wait(1).to({y:-46.9},0).wait(1).to({y:-46.8},0).wait(1).to({y:-46.6},0).wait(1).to({y:-46.4},0).wait(1).to({y:-46.1},0).wait(1).to({y:-45.7},0).wait(1).to({y:-45.3},0).wait(1).to({y:-44.8},0).wait(1).to({y:-44.3},0).wait(1).to({y:-43.7},0).wait(1).to({y:-43.2},0).wait(1).to({y:-42.7},0).wait(1).to({y:-42.3},0).wait(1).to({y:-42},0).wait(1).to({y:-41.7},0).wait(1).to({y:-41.5},0).wait(1).to({y:-41.3},0).wait(2).to({regX:0,regY:0,x:4,y:-41.7},0).wait(1)),this.instance_1=new a.menu_balloon_cosin_1,this.instance_1.setTransform(24.9,23.5),this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({x:24.8,y:23.4},0).wait(2).to({y:23.2},0).wait(1).to({y:23},0).wait(1).to({x:24.7,y:22.8},0).wait(1).to({x:24.6,y:22.4},0).wait(1).to({x:24.5,y:22},0).wait(1).to({x:24.4,y:21.5},0).wait(1).to({x:24.3,y:21.1},0).wait(1).to({x:24.2,y:20.7},0).wait(1).to({x:24.1,y:20.4},0).wait(1).to({y:20.2},0).wait(1).to({y:20.1},0).wait(4).to({y:20.2},0).wait(1).to({y:20.3},0).wait(1).to({y:20.4},0).wait(1).to({y:20.5},0).wait(1).to({x:24.2,y:20.7},0).wait(1).to({y:20.9},0).wait(1).to({x:24.3,y:21.1},0).wait(1).to({x:24.4,y:21.4},0).wait(1).to({y:21.7},0).wait(1).to({x:24.5,y:22},0).wait(1).to({x:24.6,y:22.3},0).wait(1).to({y:22.6},0).wait(1).to({x:24.7,y:22.8},0).wait(1).to({x:24.8,y:23},0).wait(1).to({y:23.2},0).wait(1).to({y:23.3},0).wait(1).to({y:23.4},0).wait(2).to({x:24.9,y:23.5},0).wait(1)),this.instance_2=new a.menu_balloon_string_1,this.instance_2.setTransform(-4,65.2),this.timeline.addTween(c.Tween.get(this.instance_2).wait(1).to({x:-4.1,y:65.1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1,scaleY:1,x:-4.2,y:65},0).wait(1).to({scaleX:1,scaleY:1.01,x:-4.3,y:64.8},0).wait(1).to({scaleX:.99,scaleY:1.01,x:-4.5,y:64.6},0).wait(1).to({scaleX:.99,scaleY:1.02,x:-4.7,y:64.4},0).wait(1).to({scaleX:.98,scaleY:1.02,x:-4.9,y:64.1},0).wait(1).to({scaleX:.98,scaleY:1.03,x:-5.2,y:63.7},0).wait(1).to({scaleX:.97,scaleY:1.04,x:-5.5,y:63.4},0).wait(1).to({scaleX:.97,scaleY:1.04,x:-5.7,y:63.1},0).wait(1).to({scaleX:.97,scaleY:1.05,x:-5.9,y:62.9},0).wait(1).to({scaleX:.96,scaleY:1.05,x:-6,y:62.7},0).wait(1).to({scaleX:.96,scaleY:1.05,x:-6.1},0).wait(1).to({scaleX:.96},0).wait(2).to({scaleX:.96},0).wait(1).to({scaleY:1.05,x:-6},0).wait(1).to({scaleX:.96,scaleY:1.05,y:62.8},0).wait(1).to({scaleX:.97,scaleY:1.05,x:-5.9,y:62.9},0).wait(1).to({scaleX:.97,scaleY:1.05,x:-5.8,y:63},0).wait(1).to({scaleX:.97,scaleY:1.04,x:-5.7,y:63.1},0).wait(1).to({scaleX:.97,scaleY:1.04,x:-5.6,y:63.2},0).wait(1).to({scaleX:.97,scaleY:1.04,x:-5.5,y:63.4},0).wait(1).to({scaleX:.98,scaleY:1.03,x:-5.3,y:63.6},0).wait(1).to({scaleX:.98,scaleY:1.03,x:-5.1,y:63.9},0).wait(1).to({scaleX:.98,scaleY:1.02,x:-4.9,y:64.1},0).wait(1).to({scaleX:.99,scaleY:1.02,x:-4.7,y:64.3},0).wait(1).to({scaleX:.99,scaleY:1.01,x:-4.6,y:64.5},0).wait(1).to({scaleX:.99,scaleY:1.01,x:-4.4,y:64.7},0).wait(1).to({scaleX:1, scaleY:1.01,x:-4.3,y:64.8},0).wait(1).to({scaleX:1,scaleY:1,x:-4.2,y:65},0).wait(1).to({scaleX:1,scaleY:1,x:-4.1,y:65.1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({x:-4,y:65.2},0).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-76.1,-128.7,160.3,240.9),e.frameBounds=[f,new c.Rectangle(-59,-109.4,120,221.7),new c.Rectangle(-59,-109.5,120,221.8),new c.Rectangle(-59,-109.8,120,222),new c.Rectangle(-59,-110.1,120,222.3),new c.Rectangle(-59,-110.6,119.9,222.8),new c.Rectangle(-59,-111.2,120,223.3),new c.Rectangle(-59,-111.9,120,224.1),new c.Rectangle(-59,-112.7,120,224.9),new c.Rectangle(-59,-113.5,120,225.8),new c.Rectangle(-59,-114.2,120,226.4),new c.Rectangle(-59,-114.7,119.9,226.9),new c.Rectangle(-59,-115,119.9,227.2),new c.Rectangle(-59,-115.2,120,227.3),new c.Rectangle(-76.1,-134.5,160.3,246.7),f=new c.Rectangle(-59,-115.2,120,227.4),f,new c.Rectangle(-59,-115.1,120,227.2),new c.Rectangle(-59,-114.9,120,227.2),new c.Rectangle(-59,-114.7,119.9,226.9),new c.Rectangle(-59,-114.5,120,226.7),new c.Rectangle(-59,-114.2,120,226.4),new c.Rectangle(-59,-113.8,119.9,226),new c.Rectangle(-58.9,-113.4,119.9,225.6),new c.Rectangle(-59,-112.9,120,225.2),new c.Rectangle(-59,-112.4,119.9,224.5),new c.Rectangle(-59,-111.9,119.9,224.1),new c.Rectangle(-59,-111.3,120,223.5),new c.Rectangle(-59,-110.8,120,223),new c.Rectangle(-59,-110.4,120,222.6),new c.Rectangle(-59,-110.1,120,222.2),new c.Rectangle(-59,-109.8,119.9,221.9),new c.Rectangle(-59,-109.6,120,221.8),new c.Rectangle(-59,-109.5,120,221.7),new c.Rectangle(-59,-109.4,120,221.6),new c.Rectangle(-76.1,-128.7,160.3,240.9)],(a.SoundBtn=function(b,d,e){this.initialize(b,d,e,{}),this.soundOn=new a.button_music,this.timeline.addTween(c.Tween.get(this.soundOn).wait(1)),this.soundOff=new a.button_music_off,this.timeline.addTween(c.Tween.get(this.soundOff).wait(1))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-40,-38.2,81,84.3),e.frameBounds=[f],(a.MainMenu=function(b,d,e){this.initialize(b,d,e,{"in":0,out:44}),this.frame_43=function(){this.stop(),this.signal.emit("ready")},this.frame_59=function(){this.stop(),this.signal.emit("exit")},this.timeline.addTween(c.Tween.get(this).wait(43).call(this.frame_43).wait(16).call(this.frame_59).wait(1)),this.instance=new a.white,this.timeline.addTween(c.Tween.get(this.instance).to({_off:!0},1).wait(57).to({_off:!1},0).wait(2)),this.instance_1=new a.flash,this.instance_1._off=!0,this.timeline.addTween(c.Tween.get(this.instance_1).wait(1).to({_off:!1},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.783},0).wait(1).to({alpha:.627},0).wait(1).to({alpha:.527},0).wait(1).to({alpha:.468},0).wait(1).to({alpha:.441},0).wait(1).to({alpha:.436},0).wait(1).to({alpha:.45},0).wait(1).to({alpha:.479},0).wait(1).to({alpha:.52},0).wait(1).to({alpha:.555},0).wait(1).to({alpha:.525},0).wait(1).to({alpha:.435},0).wait(1).to({alpha:.311},0).wait(1).to({alpha:.185},0).wait(1).to({alpha:.084},0).wait(1).to({alpha:.021},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:0},0).wait(2).to({alpha:.32},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.267},0).wait(1).to({alpha:.222},0).wait(1).to({alpha:.184},0).wait(1).to({alpha:.156},0).wait(1).to({alpha:.137},0).wait(1).to({alpha:.127},0).wait(1).to({alpha:.124},0).wait(1).to({alpha:.128},0).wait(1).to({alpha:.138},0).wait(1).to({alpha:.152},0).wait(1).to({alpha:.15},0).wait(1).to({alpha:.135},0).wait(1).to({alpha:.112},0).wait(1).to({alpha:.083},0).wait(1).to({alpha:.052},0).wait(1).to({alpha:.023},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:0},0).to({_off:!0},1).wait(6).to({_off:!1},0).wait(1).to({regX:399,regY:220.1,x:399,y:220.1,alpha:.144},0).wait(1).to({alpha:.269},0).wait(1).to({alpha:.355},0).wait(1).to({alpha:.398},0).wait(1).to({alpha:.405},0).wait(1).to({alpha:.387},0).wait(1).to({alpha:.352},0).wait(1).to({alpha:.31},0).wait(1).to({alpha:.285},0).wait(1).to({alpha:.287},0).wait(1).to({alpha:.335},0).wait(1).to({alpha:.483},0).wait(1).to({alpha:.822},0).wait(1).to({regX:0,regY:0,x:0,y:0,alpha:1},0).wait(2)),this.soundBtn=new a.SoundBtn,this.soundBtn.setTransform(892.1,39.6,.5,.5,0,0,0,-.9,-1.2),this.timeline.addTween(c.Tween.get(this.soundBtn).wait(6).to({x:899},0).wait(1).to({regX:.5,regY:3,x:846.5,y:41.7},0).wait(1).to({x:809},0).wait(1).to({x:782.9},0).wait(1).to({x:765.7},0).wait(1).to({x:756.2},0).wait(1).to({regX:-.9,regY:-1.2,x:752.5,y:39.6},0).wait(1).to({regX:.5,regY:3,x:753.6,y:41.7},0).wait(1).to({x:755.1},0).wait(1).to({x:758},0).wait(1).to({x:761},0).wait(1).to({x:762.7},0).wait(1).to({regX:-.9,regY:-1.2,x:762.5,y:39.6},0).wait(27).to({regX:.5,regY:3,x:763.2,y:46.5},0).wait(1).to({regX:-.9,regY:-1.2,x:762.5,y:49.6},0).wait(1).to({regX:.5,regY:3,x:763.2,y:49},0).wait(1).to({y:40.4},0).wait(1).to({y:24.6},0).wait(1).to({y:-.5},0).wait(1).to({regX:-.9,regY:-1.2,x:762.5,y:-42.5},0).wait(9)),this.creditsBtn=new a.CreditsBtn,this.creditsBtn.setTransform(791,215.6,1.119,1.119,0,0,0,-1,-1.2),this.timeline.addTween(c.Tween.get(this.creditsBtn).wait(2).to({regX:-2.6,regY:10.2,scaleX:1.09,scaleY:1.09,x:780.8,y:227.9},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:774.2,y:227.5},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:768.7,y:227.3},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:764.2,y:227},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:760.3,y:226.9},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:757,y:226.7},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:754.3,y:226.6},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:752.1,y:226.4},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:750.4,y:226.3},0).wait(1).to({scaleX:1,scaleY:1,x:749.2},0).wait(1).to({scaleX:1,scaleY:1,x:748.4},0).wait(1).to({regX:-.9,regY:-1.2,scaleX:1,scaleY:1,x:749.9,y:214.9},0).wait(32).to({regX:-2.6,regY:10.2,scaleX:1,scaleY:1,x:748.5,y:226.4},0).wait(1).to({scaleX:1,scaleY:1,x:749.5,y:227},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:751,y:227.8},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:753,y:228.9},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:755.4,y:230.2},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:758.2,y:231.8},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:761.3,y:233.5},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:764.8,y:235.3},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:768.4,y:237.4},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:772.4,y:239.5},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:776.6,y:241.8},0).wait(1).to({scaleX:1.09,scaleY:1.09,x:781.1,y:244.3},0).wait(1).to({scaleX:1.11,scaleY:1.11,x:785.8,y:246.8},0).wait(1).to({regX:-1,regY:-1.2,scaleX:1.12,scaleY:1.12,x:792.6,y:236.8},0).wait(2)),this.fullscreenBtn=new a.FullscreenBtn,this.fullscreenBtn.setTransform(1101.8,39.6,.5,.5,0,0,0,-.9,-1.2),this.timeline.addTween(c.Tween.get(this.fullscreenBtn).wait(9).to({x:1108.7},0).wait(1).to({regX:.5,regY:3,x:1056.2,y:41.7},0).wait(1).to({x:1018.7},0).wait(1).to({x:992.6},0).wait(1).to({x:975.4},0).wait(1).to({x:965.9},0).wait(1).to({regX:-.9,regY:-1.2,x:962.2,y:39.6},0).wait(1).to({regX:.5,regY:3,x:963.3,y:41.7},0).wait(1).to({x:964.8},0).wait(1).to({x:967.7},0).wait(1).to({x:970.7},0).wait(1).to({x:972.4},0).wait(1).to({regX:-.9,regY:-1.2,x:972.2,y:39.6},0).wait(24).to({regX:.5,regY:3,x:972.9,y:46.5},0).wait(1).to({regX:-.9,regY:-1.2,x:972.2,y:49.6},0).wait(1).to({regX:.5,regY:3,x:972.9,y:49},0).wait(1).to({y:40.4},0).wait(1).to({y:24.6},0).wait(1).to({y:-.5},0).wait(1).to({regX:-.9,regY:-1.2,x:972.2,y:-42.5},0).wait(9)),this.playBtn=new a.NextButton,this.playBtn.setTransform(741.7,504.4,1,1,0,0,0,1.5,-1.2),this.timeline.addTween(c.Tween.get(this.playBtn).wait(13).to({y:499.5},0).wait(1).to({regX:.5,regY:3,x:740.7,y:455.8},0).wait(1).to({y:422.1},0).wait(1).to({y:398.5},0).wait(1).to({y:383.1},0).wait(1).to({y:374.5},0).wait(1).to({regX:1.5,regY:-1.2,x:741.7,y:367.6},0).wait(1).to({regX:.5,regY:3,x:740.7,y:373.1},0).wait(1).to({y:377.8},0).wait(1).to({y:385.2},0).wait(1).to({y:390.4},0).wait(1).to({regX:1.5,regY:-1.2,x:741.7,y:387.6},0).wait(21).to({regX:.5,regY:3,x:740.7,y:387},0).wait(1).to({regX:1.5,regY:-1.2,x:741.7,y:377.6},0).wait(1).to({regX:.5,regY:3,x:740.7,y:385.2},0).wait(1).to({y:396.1},0).wait(1).to({y:416.1},0).wait(1).to({y:448},0).wait(1).to({regX:1.5,regY:-1.2,x:741.7,y:494.5},0).wait(9)),this.title=new a.title,this.title.setTransform(296.5,-42.4,1.022,1.022),this.timeline.addTween(c.Tween.get(this.title).wait(5).to({regX:-14.3,regY:-1.5,scaleX:1.02,scaleY:1.02,x:282.3,y:-27.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:282.7,y:-14.1},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:283,y:-2.4},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:283.2,y:7.9},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:283.5,y:17},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:283.7,y:25.1},0).wait(1).to({scaleX:1,scaleY:1,x:283.9,y:32.1},0).wait(1).to({scaleX:1,scaleY:1,x:284,y:37.9},0).wait(1).to({scaleX:1,scaleY:1,x:284.2,y:42.7},0).wait(1).to({scaleX:1,scaleY:1,x:284.3,y:46.3},0).wait(1).to({scaleX:1,scaleY:1,y:48.5},0).wait(1).to({regX:0,regY:0,x:298.7,y:50.8},0).wait(29).to({regX:-14.3,regY:-1.5,x:284.4,y:49.3},0).wait(1).to({scaleX:1,scaleY:1,x:284.3},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:284.2},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:284.1},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:284},0).wait(1).to({scaleX:1.03,scaleY:1.03},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:283.9},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:283.8},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:283.7},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:283.6,y:49.2},0).wait(1).to({regX:0,regY:0,scaleX:1.06,scaleY:1.06,x:298.7,y:50.8},0).wait(2)),this.instance_2=new a.jeff,this.instance_2.setTransform(249.6,225.7,1.103,1.103),this.timeline.addTween(c.Tween.get(this.instance_2).wait(2).to({regX:10.1,regY:-2.7,scaleX:1.09,scaleY:1.09,x:261.1,y:222.7},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:261.4,y:222.8},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:261.7},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:261.9,y:222.9},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:262.1},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:262.3},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:262.5},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:262.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,y:223},0).wait(1).to({scaleX:1,scaleY:1,x:262.8},0).wait(1).to({scaleX:1,scaleY:1,x:262.9},0).wait(1).to({regX:0,regY:0,scaleX:1,scaleY:1,x:252.8,y:225.7},0).wait(32).to({regX:10.1,regY:-2.7,scaleX:1,scaleY:1,x:262.9,y:223},0).wait(1).to({scaleX:1,scaleY:1,x:262.8},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:262.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:262.6,y:222.9},0).wait(1).to({scaleX:1.02,scaleY:1.02},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:262.4},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:262.2},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:262.1},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:261.9,y:222.8},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:261.7},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:261.5},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:261.2},0).wait(1).to({scaleX:1.09,scaleY:1.09,x:261,y:222.7},0).wait(1).to({regX:0,regY:0,scaleX:1.1,scaleY:1.1,x:249.6,y:225.7},0).wait(2)),this.instance_3=new a.tree_left,this.instance_3.setTransform(-47.5,-26.7,1.119,1.119),this.timeline.addTween(c.Tween.get(this.instance_3).wait(2).to({regX:214.9,regY:225.6,scaleX:1.1,scaleY:1.1,x:196.7,y:225.7},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:200},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:202.7},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:205.2},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:207.4},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:209.2},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:210.9},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:212.3,y:225.6},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:213.4,y:225.7},0).wait(1).to({scaleX:1,scaleY:1,x:214.2,y:225.6},0).wait(1).to({scaleX:1,scaleY:1,x:214.7,y:225.7},0).wait(1).to({regX:0,regY:0,scaleX:1,scaleY:1,x:0,y:0},0).wait(32).to({regX:214.9,regY:225.6,scaleX:1,scaleY:1,x:214.8,y:225.8},0).wait(1).to({scaleX:1,scaleY:1,x:214.2,y:226.6},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:213.4,y:227.8},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:212.4,y:229.3},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:211.2,y:231.2},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:209.7,y:233.4},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:208.1,y:235.7},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:206.3,y:238.4},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:204.5,y:241.2},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:202.4,y:244.3},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:200.2,y:247.5},0).wait(1).to({scaleX:1.09,scaleY:1.09,x:197.9,y:251},0).wait(1).to({scaleX:1.11,scaleY:1.11,x:195.4,y:254.6},0).wait(1).to({regX:0,regY:0,scaleX:1.12,scaleY:1.12,x:-47.5,y:6},0).wait(2)),this.instance_4=new a.tree_right,this.instance_4.setTransform(847.5,-26.7,1.119,1.119),this.timeline.addTween(c.Tween.get(this.instance_4).wait(2).to({regX:-193.7,regY:224.4,scaleX:1.1,scaleY:1.1,x:626.5,y:224.4},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:623},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:619.9},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:617.2},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:614.8},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:612.7},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:610.8},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:609.3},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:608,y:224.5},0).wait(1).to({scaleX:1,scaleY:1,x:607.1,y:224.4},0).wait(1).to({scaleX:1,scaleY:1,x:606.5,y:224.5},0).wait(1).to({regX:0,regY:0,scaleX:1,scaleY:1,x:800,y:0},0).wait(32).to({regX:-193.7,regY:224.4,scaleX:1,scaleY:1,x:606.5,y:224.6},0).wait(1).to({scaleX:1,scaleY:1,x:607.1,y:225.2},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:608,y:226},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:609.1,y:227},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:610.5,y:228.3},0).wait(1).to({scaleX:1.03,scaleY:1.03,x:612.1,y:229.8},0).wait(1).to({scaleX:1.04,scaleY:1.04,x:613.9,y:231.5},0).wait(1).to({scaleX:1.05,scaleY:1.05,x:615.9,y:233.3},0).wait(1).to({scaleX:1.06,scaleY:1.06,x:618,y:235.3},0).wait(1).to({scaleX:1.07,scaleY:1.07,x:620.3,y:237.4},0).wait(1).to({scaleX:1.08,scaleY:1.08,x:622.7,y:239.7},0).wait(1).to({scaleX:1.09,scaleY:1.09,x:625.3,y:242},0).wait(1).to({scaleX:1.11,scaleY:1.11,x:628,y:244.5},0).wait(1).to({regX:0,regY:0,scaleX:1.12,scaleY:1.12,x:847.5,y:-3.9},0).wait(2)),this.instance_5=new a.balloon,this.instance_5.setTransform(65.7,295.8,.929,.929),this.timeline.addTween(c.Tween.get(this.instance_5).wait(2).to({regX:4.3,regY:-11.2,scaleX:.94,scaleY:.94,x:75.4,y:285},0).wait(1).to({scaleX:.95,scaleY:.95,x:80.2,y:284.7},0).wait(1).to({scaleX:.96,scaleY:.96,x:84.3,y:284.4},0).wait(1).to({scaleX:.97,scaleY:.97,x:87.9,y:284.1},0).wait(1).to({scaleX:.98,scaleY:.98,x:91.2,y:283.9},0).wait(1).to({scaleX:.98,scaleY:.98,x:94,y:283.7},0).wait(1).to({scaleX:.99,scaleY:.99,x:96.5,y:283.5},0).wait(1).to({scaleX:.99,scaleY:.99,x:98.6,y:283.4},0).wait(1).to({scaleX:1,scaleY:1,x:100.3,y:283.3},0).wait(1).to({scaleX:1,scaleY:1,x:101.5,y:283.2},0).wait(1).to({scaleX:1,scaleY:1,x:102.3,y:283.1},0).wait(1).to({regX:0,regY:0,scaleX:1,scaleY:1,x:98.3,y:294.3},0).wait(32).to({regX:4.3,regY:-11.2,scaleX:1,scaleY:1,x:102.3,y:283.1},0).wait(1).to({scaleX:1,scaleY:1,x:101.6,y:283.2},0).wait(1).to({scaleX:1,scaleY:1,x:100.4,y:283.3},0).wait(1).to({scaleX:.99,scaleY:.99,x:98.8,y:283.4},0).wait(1).to({scaleX:.99,scaleY:.99,x:97,y:283.5},0).wait(1).to({scaleX:.98,scaleY:.98,x:94.8,y:283.7},0).wait(1).to({scaleX:.98,scaleY:.98,x:92.4,y:283.8},0).wait(1).to({scaleX:.97,scaleY:.97,x:89.8,y:284},0).wait(1).to({scaleX:.97,scaleY:.97,x:86.9,y:284.2},0).wait(1).to({scaleX:.96,scaleY:.96,x:83.8,y:284.4},0).wait(1).to({scaleX:.95,scaleY:.95,x:80.5,y:284.7},0).wait(1).to({scaleX:.95,scaleY:.95,x:77.1,y:284.9},0).wait(1).to({scaleX:.94,scaleY:.94,x:73.5,y:285.1},0).wait(1).to({regX:0,regY:0,scaleX:.93,scaleY:.93,x:65.7,y:295.8},0).wait(2)),this.instance_6=new a.bat,this.instance_6.setTransform(554.9,12.1,1.023,1.023),this.timeline.addTween(c.Tween.get(this.instance_6).wait(2).to({regX:14.5,regY:110.4,scaleX:1.02,scaleY:1.02,x:566.2,y:126.5},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:563.3,y:127.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:560.8,y:128.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:558.5,y:129.7},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:556.5,y:130.5},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:554.8,y:131.2},0).wait(1).to({scaleX:1,scaleY:1,x:553.3,y:131.8},0).wait(1).to({scaleX:1,scaleY:1,x:552.1,y:132.3},0).wait(1).to({scaleX:1,scaleY:1,x:551,y:132.8},0).wait(1).to({scaleX:1,scaleY:1,x:550.2,y:133.1},0).wait(1).to({scaleX:1,scaleY:1,x:549.8,y:133.3},0).wait(1).to({regX:0,regY:0,x:535.1,y:23},0).wait(32).to({regX:14.5,regY:110.4,scaleX:1,scaleY:1,x:549.7,y:133.3},0).wait(1).to({scaleX:1,scaleY:1,x:549.9},0).wait(1).to({scaleX:1,scaleY:1,x:550.2},0).wait(1).to({scaleX:.99,scaleY:.99,x:550.6,y:133.1},0).wait(1).to({scaleX:.99,scaleY:.99,x:551.1},0).wait(1).to({scaleX:.98,scaleY:.98,x:551.7,y:133},0).wait(1).to({scaleX:.98,scaleY:.98,x:552.4,y:132.8},0).wait(1).to({scaleX:.97,scaleY:.97,x:553,y:132.7},0).wait(1).to({scaleX:.97,scaleY:.97,x:553.8,y:132.5},0).wait(1).to({scaleX:.96,scaleY:.96,x:554.7,y:132.4},0).wait(1).to({scaleX:.95,scaleY:.95,x:555.5,y:132.2},0).wait(1).to({scaleX:.95,scaleY:.95,x:556.4,y:132},0).wait(1).to({scaleX:.94,scaleY:.94,x:557.4,y:131.9},0).wait(1).to({regX:0,regY:0,scaleX:.93,scaleY:.93,x:545,y:28.9},0).wait(2)),this.instance_7=new a.pumpkin,this.instance_7.setTransform(569.8,340.1,.957,.957),this.timeline.addTween(c.Tween.get(this.instance_7).wait(2).to({regX:-2.5,regY:12.9,scaleX:.97,scaleY:.97,x:563.7,y:352.1},0).wait(1).to({scaleX:.97,scaleY:.97,x:560.5,y:351.8},0).wait(1).to({scaleX:.98,scaleY:.98,x:557.8,y:351.6},0).wait(1).to({scaleX:.98,scaleY:.98,x:555.5,y:351.3},0).wait(1).to({scaleX:.99,scaleY:.99,x:553.4,y:351.1},0).wait(1).to({scaleX:.99,scaleY:.99,x:551.5,y:351},0).wait(1).to({scaleX:.99,scaleY:.99,x:549.9,y:350.9},0).wait(1).to({scaleX:1,scaleY:1,x:548.5,y:350.7},0).wait(1).to({scaleX:1,scaleY:1,x:547.4,y:350.6},0).wait(1).to({scaleX:1,scaleY:1,x:546.6},0).wait(1).to({scaleX:1,scaleY:1,x:546.1,y:350.5},0).wait(1).to({regX:0,regY:0,x:548.4,y:337.6},0).wait(32).to({regX:-2.5,regY:12.9,x:546.1,y:350.5},0).wait(1).to({scaleX:1,scaleY:1,x:546.6,y:350.6},0).wait(1).to({scaleX:1,scaleY:1,x:547.3},0).wait(1).to({scaleX:1,scaleY:1,x:548.4,y:350.7},0).wait(1).to({scaleX:.99,scaleY:.99,x:549.6,y:350.8},0).wait(1).to({scaleX:.99,scaleY:.99,x:551,y:350.9},0).wait(1).to({scaleX:.99,scaleY:.99,x:552.6,y:351.1},0).wait(1).to({scaleX:.98,scaleY:.98,x:554.3,y:351.3},0).wait(1).to({scaleX:.98,scaleY:.98,x:556.2,y:351.4},0).wait(1).to({scaleX:.98,scaleY:.98,x:558.2,y:351.6},0).wait(1).to({scaleX:.97,scaleY:.97,x:560.3,y:351.8},0).wait(1).to({scaleX:.97,scaleY:.97,x:562.6,y:351.9},0).wait(1).to({scaleX:.96,scaleY:.96,x:564.9,y:352.2},0).wait(1).to({regX:0,regY:0,scaleX:.96,scaleY:.96,x:569.8,y:340.1},0).wait(2)),this.instance_8=new a.bg,this.instance_8.setTransform(-8.7,-4.9,1.022,1.022),this.timeline.addTween(c.Tween.get(this.instance_8).wait(2).to({regX:400,regY:225,scaleX:1.02,scaleY:1.02,x:400,y:225.1},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.01,scaleY:1.01,y:225},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.01,scaleY:1.01,y:225.1},0).wait(1).to({scaleX:1.01,scaleY:1.01,y:225},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1,scaleY:1,y:225.1},0).wait(1).to({scaleX:1,scaleY:1},0).wait(1).to({scaleX:1,scaleY:1,x:400.1,y:225},0).wait(1).to({scaleX:1,scaleY:1,x:400,y:225.1},0).wait(1).to({regX:0,regY:0,x:0,y:0},0).wait(32).to({regX:400,regY:225,x:400,y:225.1},0).wait(1).to({scaleX:1,scaleY:1,y:225},0).wait(1).to({x:400.1,y:225.1},0).wait(1).to({scaleX:1,scaleY:1,y:225},0).wait(1).to({scaleX:1,scaleY:1,y:225.1},0).wait(1).to({scaleX:1,scaleY:1,x:400,y:225},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:400.1},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.01,scaleY:1.01,x:400,y:225.1},0).wait(1).to({scaleX:1.01,scaleY:1.01},0).wait(1).to({scaleX:1.01,scaleY:1.01,y:225},0).wait(1).to({scaleX:1.02,scaleY:1.02,x:400.1,y:225.1},0).wait(1).to({scaleX:1.02,scaleY:1.02,y:225},0).wait(1).to({regX:0,regY:0,scaleX:1.02,scaleY:1.02,x:-8.7,y:-4.9},0).wait(2))}).prototype=e=new c.MovieClip,e.nominalBounds=f=new c.Rectangle(-47.6,-109.9,1170.4,661.5),e.frameBounds=[f,f,new c.Rectangle(-39.3,-109.9,1162.1,661.5),new c.Rectangle(-32.5,-109.9,1155.3,661.5),new c.Rectangle(-26.5,-109.9,1149.3,661.5),new c.Rectangle(-22.1,-93.4,1144.9,645),new c.Rectangle(-22.1,-79.7,1144.9,631.3),new c.Rectangle(-22.1,-67.8,1144.9,619.3),new c.Rectangle(-22.1,-62.3,1144.9,613.8),new c.Rectangle(-22.1,-60.1,1151.8,611.7),new c.Rectangle(-22.1,-58.4,1098.6,609.9),new c.Rectangle(-22.1,-57.1,1061.1,608.7),new c.Rectangle(-22.1,-56.4,1034.9,607.9),new c.Rectangle(-22.1,-56,1017.8,602.7),new c.Rectangle(-22.1,-56,1008.2,562.2),new c.Rectangle(-22.1,-56,1005.2,562.2),new c.Rectangle(-22.1,-56,1005.7,562.2),new c.Rectangle(-22.1,-56,1007.2,562.2),new c.Rectangle(-22.1,-56,1010,562.2),new c.Rectangle(-22.1,-56,1013,562.2),new c.Rectangle(-22.1,-56,1014.7,562.2),f=new c.Rectangle(-22.1,-56,1015.2,562.2),f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f=new c.Rectangle(-.1,-56,993.2,562.2),f,f,f,f,f,new c.Rectangle(-22.1,-56,1015.2,562.2),new c.Rectangle(-22.1,-56.1,1015.2,562.8),new c.Rectangle(-22.1,-56.3,1015.2,564.6),new c.Rectangle(-22.1,-56.7,1015.2,567.3),new c.Rectangle(-22.1,-57.2,1015.2,571),new c.Rectangle(-22.1,-57.9,1015.2,575.3),new c.Rectangle(-22.1,-58.5,1015.2,580.3),f=new c.Rectangle(-22.1,-61.1,1015.2,602.8),f,new c.Rectangle(-22.8,-61.1,1015.9,602.8),new c.Rectangle(-27.2,-62.1,1020.3,605.9),new c.Rectangle(-31.9,-63.1,1025.1,613.5),new c.Rectangle(-36.9,-64.2,1030,621.5),new c.Rectangle(-42.1,-65.4,1035.3,630),f=new c.Rectangle(-47.6,-66.6,1040.8,638.8),f],(a.mainmenu=function(a,b,c){this.initialize(a,b,c,{})}).prototype=e=new c.MovieClip,e.nominalBounds=f=null,e.frameBounds=[f]}(pixiflash_lib=pixiflash_lib||{},pixiflash_images=pixiflash_images||{},pixiflash=pixiflash||{},ss=ss||{});var pixiflash_lib,pixiflash_images,pixiflash,ss;!function(a,b,c,d){var e;a.webFontTxtFilters={};var f;a.properties={width:800,height:450,fps:30,color:"#FFFFFF",webfonts:{},manifest:[]},a.webfontAvailable=function(b){a.properties.webfonts[b]=!0;for(var c=a.webFontTxtFilters&&a.webFontTxtFilters[b]||[],d=0;d-1;b-=1)a[b].dispose&&a[b].dispose(),a.splice(b,1)},a.prototype.loopAndDisposeContainer=function(a){var b;for(console.log("length: ",a.children.length),b=a.children.length-1;b>-1;b-=1)a.children[b].gameObject&&a.children[b].gameObject.dispose&&a.children[b].gameObject.dispose()},a.prototype.getClassName=function(a){return a.constructor.name},wonbats.WObjects=a}();var wonbats=wonbats||{},game=game||{};!function(){"use strict";function a(){}a.prototype.clamp=function(a,b,c){return Math.max(Math.min(a,c),b)},a.prototype.degreesToRadians=function(a){return a*(Math.PI/180)},a.prototype.randomFromArray=function(a){var b=Math.floor(a.length*Math.random());return a[b]},wonbats.WMath=a}();var wonbats=wonbats||{},game=game||{};!function(){"use strict";function a(){this.nodeTiles=[],this.gameObjects=[],this.pool=[],this.moveCheck=new signaljs.Signal,this.overlapCheck=new signaljs.Signal}a.prototype.create=function(a,b,c,d,e){var f=game.config;switch(a){case f.WALL_BACK_LEFT:return this.createProp(a,b,c,"Floor_Props",26,30);case f.WALL_BACK_RIGHT:return this.createProp(a,b,c,"Floor_Props",31,35);case f.WALL_BACK_CENTER:return this.createProp(a,b,c,"Floor_Props",21,25);case f.PROP_BLOOD_1:return this.createProp(a,b,c,"Floor_Props",1,1);case f.PROP_BLOOD_3:return this.createProp(a,b,c,"Floor_Props",3,3);case f.PROP_BONE:return this.createProp(a,b,c,"Floor_Props",4,7);case f.PROP_SPIDERWEB_LEFT:return this.createProp(a,b,c,"Floor_Props",8,11);case f.PROP_SPIDERWEB_RIGHT:return this.createProp(a,b,c,"Floor_Props",12,15);case f.PROP_SPIDERWEB_TILE:return this.createProp(a,b,c,"Floor_Props",16,19);case f.PROP_SPRAY:return this.createProp(a,b,c,"Floor_Props",20,20);case f.FLOOR_CONCRETE:return this.createFloor(a,b,c,d);case f.JEFF:return this.createPlayer(a,b,c,f.jeff,f.anims.jeff,e);case f.SKULL:return this.createEnemy(a,b,c,f.skull,f.anims.bat);case f.PIG:return this.createEnemy(f.PIG,b,c,f.pig,f.anims.pumpkin,f.directions.DOWN);case f.PIG_LEFT:return this.createEnemy(f.PIG,b,c,f.pig,f.anims.pumpkin,f.directions.LEFT);case f.PIG_RIGHT:return this.createEnemy(f.PIG,b,c,f.pig,f.anims.pumpkin,f.directions.RIGHT);case f.PIG_UP:return this.createEnemy(f.PIG,b,c,f.pig,f.anims.pumpkin,f.directions.UP);case f.SLIME:return this.createEnemy(a,b,c,f.slime,f.anims.balloon);case f.TOMBSTONE:return this.createBreakeableObject(a,b,c,f.tombstone,f.anims.tombstone);case f.EXIT:return this.createExit(a,b,c,f.exit,game.config.anims.goal);case f.EXIT_FINAL:return this.createExit(a,b,c,f.exit,game.config.anims.goal_final);case f.BUTTON:return this.createTrigger(a,b,c,f.button,f.anims.button);case f.HIDDEN_BUTTON:return this.createTrigger(a,b,c,f.hidden_button,f.anims.button);case f.DOOR:return this.createBlocker(a,b,c,f.blocker,!1,f.anims.blocker);case f.OPEN_DOOR:return this.createBlocker(f.DOOR,b,c,f.blocker,!0,f.anims.blocker);case f.TRAP_FIRE_A:return this.createTrap(f.TRAP_FIRE_A,b,c,f.trapfireA,f.anims.trap);case f.TRAP_FIRE_B:return this.createTrap(f.TRAP_FIRE_A,b,c,f.trapfireB,f.anims.trap);case f.TRAP_FIRE_C:return this.createTrap(f.TRAP_FIRE_A,b,c,f.trapfireC,f.anims.trap)}},a.prototype.getFrames=function(a,b,c){if(this.cachedFrames||(this.cachedFrames={}),!this.cachedFrames[a]){this.cachedFrames[a]=[];for(var d=b;c+1>d;d++)this.cachedFrames[a].push(PIXI.Texture.fromFrame(a+("0000"+d).slice(-4)+".png"))}return this.cachedFrames[a]},a.prototype.createTrap=function(a,b,c,d,e){var f=new PIXI.extras.MovieClip(this.getFrames(e.settings.framePrefix,e.settings.frameIndex.from,e.settings.frameIndex.to)),g=new game.Trap(a,b,c,f,d,e),h=game.config.collisionBits;return g.categoryBits=h.TRAP,g.maskBits=h.PLAYER|h.ENEMY,this.gameObjects.push(g),g},a.prototype.createTrigger=function(a,b,c,d,e){var f=new PIXI.extras.MovieClip(this.getFrames(e.settings.framePrefix,e.settings.frameIndex.from,e.settings.frameIndex.to)),g=new game.Trigger(a,b,c,f,d,e),h=game.config.collisionBits;return g.categoryBits=h.TRIGGER,g.maskBits=h.PLAYER,this.gameObjects.push(g),g},a.prototype.createBlocker=function(a,b,c,d,e,f){var g=new PIXI.extras.MovieClip(this.getFrames(f.settings.framePrefix,f.settings.frameIndex.from,f.settings.frameIndex.to)),h=new game.Blocker(a,b,c,g,d,e,f),i=game.config.collisionBits;return h.categoryBits=i.TRIGGER,h.maskBits=i.PLAYER|i.ENEMY,h.blockerMaskBits=h.maskBits,e?h.disable(!0):h.enable(!0),this.gameObjects.push(h),h},a.prototype.createExit=function(a,b,c,d,e){var f=new PIXI.Sprite(PIXI.Texture.fromFrame(e.settings.framePrefix+".png")),g=new game.GameObjectMC(a,b,c,f,d,e),h=game.config.collisionBits;return g.categoryBits=h.TRIGGER,g.maskBits=h.PLAYER,this.gameObjects.push(g),g},a.prototype.createPlayer=function(a,b,c,d,e,f){var g=new PIXI.extras.MovieClip(this.getFrames(e.settings.framePrefix,e.settings.frameIndex.from,e.settings.frameIndex.to)),h=new game.Player(a,b,c,g,d,e,f),i=game.config.collisionBits;return h.moveCheck.add(this.tryToMove.bind(this)),h.overlapCheck.add(this.tryToOverlap.bind(this)),h.categoryBits=i.PLAYER,h.maskBits=i.ENEMY|i.DESTROYABLE|i.TRIGGER|i.TRAP,this.gameObjects.push(h),h},a.prototype.createEnemy=function(a,b,c,d,e,f){var g=this.getFirstAvailable(a),h=game.config.collisionBits;if(g)console.log("reset",game.WObjects.getClassName(g)),g.reset(b,c);else{var i=new PIXI.extras.MovieClip(this.getFrames(e.settings.framePrefix,e.settings.frameIndex.from,e.settings.frameIndex.to));g=new game.Enemy(a,b,c,i,d,e),g.moveCheck.add(this.tryToMove.bind(this)),g.overlapCheck.add(this.tryToOverlap.bind(this)), console.log("creating: ",game.WObjects.getClassName(g))}return f&&g.updateLook(f),g.categoryBits=h.ENEMY,g.maskBits=h.PLAYER|h.TRAP,this.gameObjects.push(g),g},a.prototype.createBreakeableObject=function(a,b,c,d,e){var f=new PIXI.extras.MovieClip(this.getFrames(e.settings.framePrefix,e.settings.frameIndex.from,e.settings.frameIndex.to)),g=new game.GameObjectMC(a,b,c,f,d,e),h=game.config.collisionBits;return g.asset.gotoAndStop(Math.floor(Math.random()*e.settings.frameIndex.to)),g.categoryBits=h.DESTROYABLE,g.maskBits=h.PLAYER|h.DESTROYABLE,g.asset.tickChildren=!1,g.asset.tickEnabled=!1,this.gameObjects.push(g),g},a.prototype.createProp=function(a,b,c,d,e,f){var g=e+Math.floor(Math.random()*(f-e)),h=PIXI.Texture.fromFrame(d+("0000"+g).slice(-4)+".png"),i=new PIXI.Sprite(h);return i.anchor.x=.5,i.anchor.y=.5,a===game.config.WALL_BACK_LEFT?i.depthType=game.config.BOTTOM_2:a===game.config.WALL_BACK_CENTER?i.depthType=game.config.BOTTOM_2:a===game.config.WALL_BACK_RIGHT?i.depthType=game.config.BOTTOM_2:i.depthType=game.config.BOTTOM_3,i.x=b*game.config.TILE_WIDTH,i.y=c*game.config.TILE_HEIGHT,i},a.prototype.createFloor=function(a,b,c,d){var e,f=game.config,g=this.createNodeView(d),h=game.config.anims.concrete.settings,i=this.getFrames(h.framePrefix,h.frameIndex.from,h.frameIndex.to),j=new PIXI.Sprite(i[Math.floor(Math.random()*i.length)]);return void 0!==g?(e=new game.NodeTile(a,b,c,j,{},game.config.anims.concrete),e.nodeGid=d,f.SHOW_NODES===!0&&e.asset.addChild(g),this.nodeTiles.push(e)):e=new game.GameObjectMC(a,b,c,j,{},game.config.anims.concrete),e.asset.depthType=game.config.BOTTOM_1,e},a.prototype.createNodeView=function(a){game.config;return new PIXI.Container},a.prototype.tryToMove=function(a,b){this.moveCheck.emit(a,b)},a.prototype.tryToOverlap=function(a,b){this.overlapCheck.emit(a)},a.prototype.getFirstAvailable=function(a){var b,c;for(b=0;b-1;c-=1)j=this.debugView.getChildAt(c),j.background.clear(),this.debugView.removeChild(j);for(c=0;c-1;e-=1)if(!s[e].isDead()){for(s[e].onTurnStart(),s[e].updateLook(a),c=0;c=p[c].g)continue;p[c].parent=h,p[c].g=i,p[c].f=p[c].g+p[c].h,i=0}p=[],i=0}if(void 0!==g)for(m=this.reconstructPath(m,g),game.config.debug.pathfinding&&(this.debugView.cacheAsBitmap=!1),c=0;c0&&s[e].canMove()?(k=m.length,m.splice(2,m.length-1),t.push({enemy:s[e],distanceToTarget:k,actualNode:m[0],nextNode:m[1]})):s[e].canMove()?s[e].onTurnEnd():s[e].onTurnEnd(),o.push({enemy:s[e],col:s[e].col,row:s[e].row}),f=void 0,m.length=0,l.length=0}for(t.sort(function(a,b){return a.distanceToTarget-b.distanceToTarget}).reverse(),c=t.length-1;c>-1;c-=1){if(w=t[c].enemy.hasToRotate(this.calculateDirection(t[c].nextNode,t[c].enemy)),v=!1,this.player&&this.player.kill)return void t[c].enemy.onTurnEnd();for(e=0;e-1;c-=1)a[c].enemy===b.enemy&&a[c].col===b.actualNode.col&&a[c].row===b.actualNode.row&&a.splice(c,1)},a.prototype.isTileOccupied=function(a,b){var c;for(c=0;c-1;c-=1)this.crosses[c].disable();for(c=0;c=a&&a>=-m&&m>=b&&b>=-m&&(g[c].hasToRotate(game.config.directions.LEFT)||l.push({col:g[c].col-1,row:g[c].row,enemy:g[c]}),g[c].hasToRotate(game.config.directions.RIGHT)||l.push({col:g[c].col+1,row:g[c].row,enemy:g[c]}),g[c].hasToRotate(game.config.directions.DOWN)||l.push({col:g[c].col,row:g[c].row+1,enemy:g[c]}),g[c].hasToRotate(game.config.directions.UP)||l.push({col:g[c].col,row:g[c].row-1,enemy:g[c]})));for(c=l.length-1;c>-1;c-=1){for(d=l.length-1;d>-1;d-=1)if(void 0!==l[c]&&l[c]!==l[d]&&l[c].col===l[d].col&&l[c].row===l[d].row){l.splice(c,1);break}if(void 0!==l[c]){for(k=!1,d=i.length-1;d>-1;d-=1)if(l[c].col===i[d].col&&l[c].row===i[d].row){k=!0;break}k||l.splice(c,1)}if(void 0!==l[c])for(d=h.length-1;d>-1;d-=1)if(!(h[d]instanceof game.Player||h[d]instanceof game.Blocker&&h[d].isOpen||h[d]instanceof game.Trigger||h[d]instanceof game.Trap||h[d]instanceof game.Enemy&&h[d].isDead()||l[c].col!==h[d].col||l[c].row!==h[d].row)){l.splice(c,1);break}}for(c=this.crossContainer.children.length-1;c>-1;c-=1){var n=!1;for(d=l.length-1;d>-1;d-=1)if(this.crossContainer.children[c].gameObject&&this.crossContainer.children[c].gameObject instanceof game.Cross&&this.crossContainer.children[c].gameObject.alive&&this.crossContainer.children[c].gameObject.col===l[d].col&&this.crossContainer.children[c].gameObject.row===l[d].row){n=!0,l.splice(d,1);break}}for(c=l.length-1;c>-1;c-=1)e=this.getCross(l[c].col,l[c].row,l[c].enemy,!1),f=this.getCross(l[c].col,l[c].row,l[c].enemy,!0),-1===this.crossContainer.children.indexOf(e.asset)&&(this.crossContainer.addChild(e.asset),e.asset.depthType=game.config.CROSS_BOTTOM),-1===this.crossContainer.children.indexOf(f.asset)&&(this.crossContainer.addChild(f.asset),f.asset.depthType=game.config.CROSS_TOP)},a.prototype.getCross=function(a,b,c,d){var e,f,g,h=d?game.config.anims.cross_top:game.config.anims.cross_bottom;for(f=this.crosses.length-1;f>-1;f-=1){if(e=this.crosses[f],e.isTop===d&&!e.alive)return e.reset(a,b),e.enemy=c,e;e=void 0}return g=this.gameobjectFactory.getFrames(h.settings.framePrefix,h.settings.frameIndex.from,h.settings.frameIndex.to),e=new game.Cross(0,0,0,new PIXI.extras.MovieClip(g),h,d),e.reset(a,b),e.enemy=c,this.crosses.push(e),e},a.prototype.calculateDirection=function(a,b){var c,d=a.col-b.col,e=a.row-b.row;return 1===d?c=game.config.directions.RIGHT:-1===d?c=game.config.directions.LEFT:1===e?c=game.config.directions.DOWN:-1===e&&(c=game.config.directions.UP),c},a.prototype.calculateH=function(a,b){return Math.ceil(Math.sqrt((a.col-b.col)*(a.col-b.col)+(a.row-b.row)*(a.row-b.row)))},a.prototype.getLowerFCostNode=function(a){return a.sort(function(a,b){return a.f-b.f}),a[0]},a.prototype.reconstructPath=function(a,b){var c,d,e=b.parent;for(c=a.length-1;c>-1;c-=1)d=a[c],d!==e?a.splice(a.indexOf(d),1):e=d.parent;return a.length>0&&a.push(b),a},a.prototype.getNeighbors=function(a,b){var c,d=[];for(c=0;c-1;b-=1)c=f[b],c.inTurn&&!d&&(d=!0);if(!d){if(this.turnsElapsed>0)for(b=0;b0&&(this.fxShakeDuration-=a,this.fxShakeDuration<=0?(this.fxShakeOffset.x=0,this.fxShakeOffset.y=0):(this.fxShakeDirection!==game.config.camera.SHAKE_BOTH_AXES&&this.fxShakeDirection!==game.config.camera.SHAKE_HORIZONTAL_ONLY||(this.fxShakeOffset.x=Math.random()*this.fxShakeIntensity*this.width*2-this.fxShakeIntensity*this.width),this.fxShakeDirection!==game.config.camera.SHAKE_BOTH_AXES&&this.fxShakeDirection!==game.config.camera.SHAKE_VERTICAL_ONLY||(this.fxShakeOffset.y=Math.random()*this.fxShakeIntensity*this.height*2-this.fxShakeIntensity*this.height))),this.sequence.length>0)if(d=this.sequence[0],e=d[0],d.length>0){if(e.wait)e.wait>0?e.wait-=a:d.splice(0,1);else if(e.target)b=e.target,c=e.speed,f=this.x-this.previousPos.x,g=this.y-this.previousPos.y,void 0===this.targetInside&&(this.targetInside=!1),Math.abs(f)<=3&&Math.abs(g)<=3&&(this.targetInside===!0||this.target.isInsideCamera&&b===this.target)&&(this.targetInside=void 0,d.splice(0,1)),this.targetInside===!1&&b!==this.target&&(this.target=b),c&&c!==this.speed&&(this.speed=c);else if(e.callback){for(h=0;h-1;i-=1)this.finalSequenceCallback[i](),this.finalSequenceCallback.splice(i,1);else this.sequence.push([{target:this.primaryTarget,speed:.1}]);this.previousPos.x=this.x,this.previousPos.y=this.y},a.prototype.shake=function(a,b,c,d){a||(a=.05),b||(b=.5),c||(c=!0),d||(d=game.config.camera.SHAKE_BOTH_AXES),(c||0===this.fxShakeOffset.x&&0===this.fxShakeOffset.y)&&(this.fxShakeIntensity=a,this.fxShakeDuration=b,this.fxShakeDirection=d,this.fxShakeOffset.x=0,this.fxShakeOffset.y=0)},a.prototype.isInside=function(a){var b,c,d,e=this.x+this.width/2,f=this.y+this.height/2;return a.anchor?(b=a.x-a.anchor.x*a.width+a.width/2,c=a.y-a.anchor.y*a.height+a.height/2):(b=a.x,c=a.y),d=Math.sqrt(Math.pow(b-e,2)+Math.pow(c-f,2)),d=this.config.turns.length&&(this.currentTurn=0))},a.prototype.onTurnStart=function(){var a,b,c,d;if(this.inTurn=!0,this.config&&this.config.turns&&(a=this.config.turns[this.currentTurn],a.call))for(b=0;b=this.animations[this.currentAnimation].to&&(this.animations[this.currentAnimation].event&&this.asset.signal.emit(this.animations[this.currentAnimation].event,this.currentAnimation),this.animations[this.currentAnimation].next?this.gotoAndStop({label:this.animations[this.currentAnimation].next}):this.asset.gotoAndStop(this.animations[this.currentAnimation].to)))},game.GameObjectMC=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f){this.moveCheck=new signaljs.Signal,game.GameObjectMC.call(this,a,b,c,d,e,f)}a.prototype=Object.create(game.GameObjectMC.prototype),a.prototype.constructor=a,a.prototype.reset=function(a,b){this.direction=game.config.directions.NONE,this.inputDirection=game.config.directions.NONE,this.moveDelay=0,this.maxDelay=0,this.diffCol=0,this.diffRow=0,this.delay=0,this.moving=!1,this.moveList=[],this.previousDirection=void 0===this.config||void 0===this.config.direction?game.config.directions.DOWN:this.config.direction,this.gotoAndStop({label:0}),game.GameObjectMC.prototype.reset.call(this,a,b)},a.prototype.move=function(a){if(this.direction===game.config.directions.NONE){var b,c=this.col,d=this.row;a===game.config.directions.LEFT?c=this.col-this.config.move.step:a===game.config.directions.RIGHT?c=this.col+this.config.move.step:a===game.config.directions.UP?d=this.row-this.config.move.step:a===game.config.directions.DOWN&&(d=this.row+this.config.move.step),this.direction=a,this.moveList=[{col:c,row:d}],b=this.config.move,this.maxDelay=b.delay,this.moveDelay=this.maxDelay,this.moving=!0,this.moveAnimation(b,a),this.playSound(this.config.move.sound)}this.previousDirection=a},a.prototype.moveAnimation=function(a,b){a&&this.gotoAndStop(a.anims[this.getDirectionString(b)])},a.prototype.bounce=function(a){if(this.direction===game.config.directions.NONE){var b,c=this.col,d=this.row;a===game.config.directions.LEFT?c=this.col-this.config.bounce.step:a===game.config.directions.RIGHT?c=this.col+this.config.bounce.step:a===game.config.directions.UP?d=this.row-this.config.bounce.step:a===game.config.directions.DOWN&&(d=this.row+this.config.bounce.step),b=this.config.bounce,b||window.alert("missing BOUNCE CONFIG in "+this.constructor.name),this.direction=a,this.previousDirection=a,this.moveList=[{col:c,row:d},{col:this.col,row:this.row}],this.maxDelay=b.delay,this.moveDelay=this.maxDelay,this.gotoAndStop(b.anims[this.getDirectionString(a)]),this.playSound(b.sound)}},a.prototype.warning=function(){this.gotoAndStop(this.config.warning.anims[this.getDirectionString(this.previousDirection)])},a.prototype.update=function(a){var b,c=!1;game.GameObjectMC.prototype.update.call(this,a),this.reachsTheTile=!1,this.direction!==game.config.directions.NONE&&(b=this.moveList[0],this.moveDelay-=a,this.moveDelay=Math.max(0,this.moveDelay),0===this.moveDelay&&(this.reachsTheTile=!0,this.col=b.col,this.row=b.row,this.moveDelay=this.maxDelay,this.moveList.splice(0,1),0===this.moveList.length?(this.direction=game.config.directions.NONE,c=this.currentAnimConfig.endTurn,!c&&this.moving&&this.onTurnEnd(),this.moving=!1):(b=this.moveList[0],b.col>this.col?this.direction=game.config.directions.RIGHT:b.colthis.row?this.direction=game.config.directions.DOWN:b.row=this.config.input.SWIPE_DISTANCE?this.automoveDirection=game.config.directions.RIGHT:b<=-this.config.input.SWIPE_DISTANCE?this.automoveDirection=game.config.directions.LEFT:c>=this.config.input.SWIPE_DISTANCE?this.automoveDirection=game.config.directions.DOWN:c<=-this.config.input.SWIPE_DISTANCE&&(this.automoveDirection=game.config.directions.UP))}},a.prototype.onMouseUp=function(a){this.pressed=!1,this.swiped=!1,this.automoveDirection=game.config.directions.NONE,console.log("mouse up")},a.prototype.tryToMove=function(a){this.inputEnabled&&!this.locked&&this.inTurn&&game.BasePlayer.prototype.tryToMove.call(this,a),this.swiped=!0},a.prototype.overlap=function(a){a.gid===game.config.EXIT_FINAL&&(this.winLabel="win_final",console.log(this.asset),a.gid=game.config.EXIT),a.gid===game.config.EXIT&&(console.log("Player overlaps EXIT"),a.hp=0,a.kill=!0,this.reachExit=!0)},a.prototype.lock=function(){this.locked=!0},a.prototype.unlock=function(){this.locked=!1},a.prototype.hit=function(a,b){this.inputEnabled=!1,game.BasePlayer.prototype.hit.call(this,a,b)},a.prototype.die=function(){this.locked=!0,game.BasePlayer.prototype.die.call(this)},a.prototype.update=function(a){this.keys[this.config.input.LEFT]&&(this.automoveDirection=game.config.directions.LEFT),this.keys[this.config.input.DOWN]&&(this.automoveDirection=game.config.directions.DOWN),this.keys[this.config.input.RIGHT]&&(this.automoveDirection=game.config.directions.RIGHT),this.keys[this.config.input.UP]&&(this.automoveDirection=game.config.directions.UP),this.automoveDirection!==game.config.directions.NONE&&this.tryToMove(this.automoveDirection),game.BasePlayer.prototype.update.call(this,a)},a.prototype.win=function(){this.lock(),this.gotoAndStop({label:this.winLabel})},a.prototype.dispose=function(){game.BasePlayer.prototype.dispose.call(this),this.interactiveLayer.touchstart=null,this.interactiveLayer.touchmove=null,this.interactiveLayer.touchend=null,this.interactiveLayer.touchendoutside=null,this.interactiveLayer=null,window.onkeydown=null,window.onkeyup=null,this.inputPos=null,this.keys=null,this.winLabel=null},game.Player=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f){game.BasePlayer.call(this,a,b,c,d,e,f)}a.prototype=Object.create(game.BasePlayer.prototype),a.prototype.constructor=a,a.prototype.move=function(a){a!==this.previousDirection&&this.config.rotate?this.rotate(a):game.BasePlayer.prototype.move.call(this,a)},a.prototype.hasToRotate=function(a){return a!==this.previousDirection&&this.config.rotate},a.prototype.rotate=function(a){var b,c,d=[game.config.directions.DOWN,game.config.directions.UP],e=[game.config.directions.RIGHT,game.config.directions.LEFT],f=this.previousDirection;a===game.config.directions.DOWN?this.previousDirection===game.config.directions.LEFT||this.previousDirection===game.config.directions.RIGHT?this.previousDirection=a:this.previousDirection===game.config.directions.UP&&(this.previousDirection=game.WMath.randomFromArray(e)):a===game.config.directions.UP?this.previousDirection===game.config.directions.LEFT||this.previousDirection===game.config.directions.RIGHT?this.previousDirection=a:this.previousDirection===game.config.directions.DOWN&&(this.previousDirection=game.WMath.randomFromArray(e)):a===game.config.directions.LEFT?this.previousDirection===game.config.directions.UP||this.previousDirection===game.config.directions.DOWN?this.previousDirection=a:this.previousDirection===game.config.directions.RIGHT&&(this.previousDirection=game.WMath.randomFromArray(d)):a===game.config.directions.RIGHT&&(this.previousDirection===game.config.directions.UP||this.previousDirection===game.config.directions.DOWN?this.previousDirection=a:this.previousDirection===game.config.directions.LEFT&&(this.previousDirection=game.WMath.randomFromArray(d))),b=this.getDirectionString(f),c=this.getDirectionString(this.previousDirection),this.gotoAndStop(this.config.rotate.anims[b+"_to_"+c]),this.onTurnEnd()},a.prototype.hit=function(a,b){game.BasePlayer.prototype.hit.call(this,a,b),this.bounce(b)},a.prototype.collide=function(a,b){a instanceof game.Enemy||game.BasePlayer.prototype.collide.call(this,a,b)},a.prototype.updateLook=function(a){if(this.gid===game.config.SKULL&&a instanceof game.Player){var b=a.col-this.col;0>b?this.asset.scaleX=-1:b>0&&(this.asset.scaleX=1)}else this.gid!==game.config.PIG||!a||a instanceof game.Player||(this.previousDirection=a,this.gotoAndStop({label:this.getDirectionString(a)+"_idle"}))},game.Enemy=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f){game.GameObjectMC.call(this,a,b,c,d,e,f),this.enabled=!1}a.prototype=Object.create(game.GameObjectMC.prototype),a.prototype.constructor=a,a.prototype.init=function(){game.GameObject.prototype.init.call(this),this.gotoAndStop({label:"unpressed"})},a.prototype.overlap=function(a){this.enabled=!0,this.maskBits=game.config.collisionBits.NOTHING,this.config.overlap&&this.playSound(this.config.overlap.sound),this.gotoAndStop({label:"pressed"})},a.prototype.canTrigger=function(){return this.enabled},a.prototype.disable=function(){this.enabled=!1},game.Trigger=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f,g){game.GameObjectMC.call(this,a,b,c,d,e,g),this.disableCount=0,this.isOpen=f}a.prototype=Object.create(game.GameObjectMC.prototype),a.prototype.constructor=a,a.prototype.init=function(){game.GameObjectMC.prototype.init.call(this)},a.prototype.addDisableCount=function(){this.disableCount+=1},a.prototype.minusDisableCount=function(){return this.disableCount-=1,0===this.disableCount},a.prototype.toggle=function(){this.isOpen?(this.enable(),this.playSound("gate_up")):(this.disable(),this.playSound("gate_down"))},a.prototype.disable=function(a){this.blockerMaskBits=this.maskBits,this.maskBits=game.config.collisionBits.NOTHING,this.isOpen=!0,a?this.gotoAndStop({label:"open"}):this.gotoAndStop({label:"down"})},a.prototype.enable=function(a){this.maskBits=this.blockerMaskBits,this.isOpen=!1,a?this.gotoAndStop({label:"closed"}):this.gotoAndStop({label:"up"})},a.prototype.collide=function(a,b){},game.Blocker=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f){game.GameObjectMC.call(this,a,b,c,d,void 0,e),this.enemy=void 0,this.isTop=f}a.prototype=Object.create(game.GameObjectMC.prototype),a.prototype.constructor=a,a.prototype.reset=function(a,b){game.GameObjectMC.prototype.reset.call(this,a,b),this.enemy=void 0,this.asset.visible=!0,this.gotoAndStop({label:"on"})},a.prototype.onAssetSignal=function(){var a=arguments;game.GameObject.prototype.onAssetSignal.call(this,a),"animationFinished"===a[0]&&("on"===a[1]?this.gotoAndStop({label:"idle"}):"off"===a[1]&&(this.asset.visible=!1))},a.prototype.disable=function(){game.GameObject.prototype.disable.call(this),this.alive&&(this.alive=!1,this.enemy=void 0,"off"!==this.currentAnimation&&this.gotoAndStop({label:"off"}))},a.prototype.dispose=function(){this.enemy=null,game.GameObjectMC.prototype.dispose.call(this)},game.Cross=a}();var game=game||{};!function(){"use strict";function a(a,b,c,d,e,f){game.GameObjectMC.call(this,a,b,c,d,e,f)}a.prototype=Object.create(game.GameObjectMC.prototype),a.prototype.constructor=a,a.prototype.overlap=function(a){game.GameObject.prototype.overlap.call(this,a),this.config.turns[this.currentTurn].damage&&a.collide(this)},a.prototype.onTurnEnd=function(){game.GameObject.prototype.onTurnEnd.call(this),this.overlapCheck.emit(this)},game.Trap=a}();var game=game||{},images=images||{},ss=ss||{};game.screens=game.screens||{},function(){"use strict";function a(){screenflow.Screen.call(this)}a.prototype=Object.create(screenflow.Screen.prototype),a.prototype.constructor=a,a.prototype.enter=function(a){screenflow.Screen.prototype.enter.call(this,a),this.view=new pixiflash_lib.CinematicIntro,this.view.signal=new signaljs.Signal,this.view.signal.add(this.onSignal.bind(this)),this.addButton("skip",this.view.skipBtn,this.onMouseDown.bind(this)),this.asset.addChild(this.view),this.enableInput(!0)},a.prototype.onKeyDown=function(a){13===a.keyCode&&this.buttons.skip.mousedown.call(this.buttons.skip)},a.prototype.onMouseDown=function(){this.enableInput(!1),this.transitionSignal.emit(this.name,"exit")},a.prototype.onSignal=function(a,b){"exit"===a?this.transitionSignal.emit(this.name,"exit"):"sound"===a&&(console.log("sound",b),game.soundManager.playSfx(b))},a.prototype.exit=function(){this.view.signal.clear(),this.view.signal=null,this.view.mousedown=null,screenflow.Screen.prototype.exit.call(this,name)},game.screens.Intro=a}();var game=game||{},images=images||{},ss=ss||{};game.screens=game.screens||{},function(){"use strict";function a(){screenflow.Screen.call(this)}a.prototype=Object.create(screenflow.Screen.prototype),a.prototype.constructor=a,a.prototype.enter=function(a){screenflow.Screen.prototype.enter.call(this,a),this.view=new pixiflash_lib.CinematicOutro,this.view.signal=new signaljs.Signal,this.view.signal.add(this.onSignal.bind(this)),this.addButton("home",this.view.homeBtn,this.onMouseDown.bind(this)),this.asset.addChild(this.view),game.soundManager.playSfx("thunder")},a.prototype.onMouseDown=function(){this.enableInput(!1),this.transitionSignal.emit(this.name,"exit")},a.prototype.onSignal=function(a,b){"exit"===a?this.transitionSignal.emit(this.name,"exit"):"sound"===a?game.soundManager.playSfx(b):"music"===a&&(game.soundManager.play(b),game.soundManager.getSound(b).volume=0,game.soundManager.restoreVolume(b,1e3))},a.prototype.exit=function(){game.soundManager.stop("cinematic_credits"),game.soundManager.stop("cinematic_win"),this.view.signal.clear(),this.view.signal=null,this.view.mousedown=null,screenflow.Screen.prototype.exit.call(this,name)},game.screens.Ending=a}();var game=game||{},images=images||{},ss=ss||{};game.screens=game.screens||{},function(){"use strict";function a(){screenflow.Screen.call(this)}a.prototype=Object.create(screenflow.Screen.prototype),a.prototype.constructor=a,a.prototype.enter=function(a){screenflow.Screen.prototype.enter.call(this,a),this.view=new pixiflash_lib.Credits,this.view.signal=new signaljs.Signal,this.view.signal.add(this.onSignal.bind(this)),this.addButton("home",this.view,this.onMouseDown.bind(this)),this.asset.addChild(this.view),game.soundManager.getSound("music_ingame_1").volume=0,game.soundManager.play("cinematic_credits")},a.prototype.onMouseDown=function(){this.enableInput(!1),this.transitionSignal.emit(this.name,"exit")},a.prototype.onSignal=function(a){"exit"===a&&this.transitionSignal.emit(this.name,"exit")},a.prototype.exit=function(){game.soundManager.stop("cinematic_credits"),this.view.signal.clear(),this.view.signal=null,this.view.mousedown=null,screenflow.Screen.prototype.exit.call(this,name)},game.screens.Credits=a}();var game=game||{},images=images||{},ss=ss||{};game.screens=game.screens||{},function(){"use strict";function a(){screenflow.Screen.call(this)}a.prototype=Object.create(screenflow.Screen.prototype),a.prototype.constructor=a,a.prototype.enter=function(a,b,c,d){screenflow.Screen.prototype.enter.call(this,a);var e,f,g;for(this.levelIndex=b,this.levelDataId=c,this.levelData=PIXI.loader.resources[c].data,this.isLastLevel=b===game.config.levels.manifest.length-1,this.gameobjectFactory=new wonbats.GameObjectFactory,this.gameObjectContainer=new PIXI.Container,this.envContainter=new PIXI.ParticleContainer,this.gameContainer=new PIXI.Container,this.levelData.properties&&this.levelData.properties.inside?this.backgroundContainer=new PIXI.extras.TilingSprite(PIXI.Texture.fromFrame("Background_Tile_Inside.png"),this.levelData.width*this.levelData.tilewidth+128,this.levelData.height*this.levelData.tileheight+128):this.backgroundContainer=new PIXI.extras.TilingSprite(PIXI.Texture.fromFrame("Background_Tile_Outside.png"),this.levelData.width*this.levelData.tilewidth+128,this.levelData.height*this.levelData.tileheight+128),this.asset.addChild(this.gameContainer),this.overlay=new PIXI.Sprite(PIXI.Texture.fromFrame("Overlay.png")),this.overlay.anchor.x=this.overlay.anchor.y=.5,this.overlay.x=400,this.overlay.y=225,this.overlay.scale.x=this.overlay.scale.y=1.1,this.asset.addChild(this.overlay),this.thunder=new game.Lightning(800,450,"0x25FFC9"),this.thunder.signal.add(this.onLightningOutSignal.bind(this)),this.asset.addChild(this.thunder),this.thunder.start(500,1e3),this.backgroundContainer&&(this.gameContainer.addChild(this.backgroundContainer),this.backgroundContainer.x=-64,this.backgroundContainer.y=-64),this.gameContainer.addChild(this.gameObjectContainer),this.gameContainer.addChild(this.envContainter),this.createEmitters(),this.interactionLayer=new PIXI.Graphics,this.interactionLayer.beginFill(16711680,0),this.interactionLayer.drawRect(0,0,800,480),this.interactionLayer.endFill(),this.interactionLayer.cacheAsBitmap=!0,this.interactionLayer.interactive=!0,this.gameContainer.addChild(this.interactionLayer),this.board=new wonbats.Board(this.gameobjectFactory,this.gameObjectContainer),game.config.debug.pathfinding&&this.gameContainer.addChild(this.board.debugView),this.parseLevel(this.levelData),this.parseDecorations(this.levelData.layers[this.levelData.layers.length-1],this.levelData.tilesets[1],this.gameObjectContainer),this.camera=new wonbats.Camera(0,0,800,480,this.levelData.width*this.levelData.tilewidth,this.levelData.height*this.levelData.tileheight,this.gameContainer),f=this.board.player=this.board.gameobjectFactory.getGameObjects(game.Player)[0],f.lock(),this.camera.setTarget(f,!0),this.hudContainer=new pixiflash_lib.HUD,this.asset.addChild(this.hudContainer),this.addButton("fullscreen",this.hudContainer.fullscreenBtn,this.onFullscreen.bind(this)),this.addButton("exit",this.hudContainer.exitBtn,this.onExit.bind(this)),this.hudContainer.gotoAndStop(0),this.initialPos={jeff:{col:f.col,row:f.row},camera:{x:this.camera.x,y:this.camera.y}},this.tasks=[],d?(game.soundManager.stop("music_ingame_1"),game.soundManager.stop("music_ingame_2"),game.soundManager.play("music_ingame_1"),game.soundManager.getSound("music_ingame_1").volume=0,game.soundManager.play("music_ingame_2"),game.soundManager.getSound("music_ingame_2").volume=0,game.soundManager.restoreVolume("music_ingame_1",700),game.soundManager.restoreVolume("music_ingame_2",700)):(game.soundManager.restoreVolume("music_ingame_1",2e3),game.soundManager.restoreVolume("music_ingame_2",2e3),this.board.player.asset.alpha=0,createjs.Tween.get(this.board.player.asset).to({alpha:1},1e3,createjs.Ease.sineIn)),this.backgroundContainer&&(this.backgroundContainer.alpha=0,createjs.Tween.get(this.backgroundContainer).to({alpha:1},1e3,createjs.Ease.sineIn)),e=0;e0;){for(b=0;b0&&(d=d.concat(a[b].children.concat()));a.length=0,a=d.concat(),d.length=0}return c},a.prototype.activateChildren=function(a){var b,c,d,e=a.children,f=!1;if(0!==e.length){for(c=0;c-1;b-=1)c=this.gameobjectFactory.gameObjects[b],c.isStruck&&(d=null,c.gid===game.config.SLIME?d=this.balloonEmitter:c.gid===game.config.SKULL?d=this.batEmitter:c.gid===game.config.PIG?d=this.pumkinEmitter:c.gid===game.config.TOMBSTONE&&(d=this.tombstoneEmitter),d&&(d.updateSpawnPos(c.asset.x,c.asset.y),d.resetPositionTracking(),d.emit=!0)),c.update(a),c.cameraShake&&(this.camera.shake(c.cameraShake[0],c.cameraShake[1],c.cameraShake[2],c.cameraShake[3]),c.cameraShake=void 0),c.gid!==game.config.BUTTON&&c.gid!==game.config.HIDDEN_BUTTON||!c.canTrigger()||(this.platformEmitter.updateSpawnPos(c.asset.x-32,c.asset.y-16),this.platformEmitter.resetPositionTracking(),this.platformEmitter.emit=!0,this.activateChildren(c),c.disable()),c.isDead()&&this.activateChildren(c),c.kill&&(this.gameobjectFactory.recycle(c),this.board.player===c&&(this.board.player=void 0));this.updateTasks(a),this.interactionLayer.x=this.camera.x,this.interactionLayer.y=this.camera.y,this.board.update(a),this.spawnEmitter.update(a),this.envEmitter.update(a),this.stepEmitter.update(a),this.platformEmitter.update(a),this.tombstoneEmitter.update(a),this.batEmitter.update(a),this.pumkinEmitter.update(a),this.balloonEmitter.update(a),this.board.player&&!this.levelEnd&&(this.envEmitter.updateSpawnPos(this.board.player.asset.x-640,this.board.player.asset.y-512),this.stepEmitter.updateSpawnPos(this.board.player.asset.x,this.board.player.asset.y),this.board.player.moveDelay0&&(c=this.tasks[0],c.finished?d=!0:c.wait?(c.wait-=a,c.wait<=0&&(d=!0)):c.spawn&&(b=this.gameobjectFactory.create(c.spawn.gid,c.spawn.col,c.spawn.row,0,this.interactionLayer),void 0!==b&&(b.asset.parent||this.gameObjectContainer.addChild(b.asset),b.gid!==game.config.BUTTON?(game.soundManager.playSfx("spawn"),this.spawnEmitter.updateSpawnPos(b.asset.x,b.asset.y),this.spawnEmitter.resetPositionTracking(),this.spawnEmitter.emit=!0):(game.soundManager.playSfx("spawn"),this.platformEmitter.updateSpawnPos(b.asset.x-32,b.asset.y-16),this.platformEmitter.resetPositionTracking(),this.platformEmitter.emit=!0),b.children=c.spawn.children||[]),d=!0),d&&(c=null,this.tasks.splice(0,1)),0===this.tasks.length&&this.board.player&&(console.log("all tasks finished"),this.board.updateCrosses(),this.board.player.unlock()))},a.prototype.orderView=function(){var a,b,c,d=[],e=[],f=[],g=0,h=[[],[],[]];if(0===this.backgroundSortOrder.length){for(a=0;a0;)this.gameObjectContainer.setChildIndex(e[0],this.backgroundSortOrder.length+g-e.length),e.splice(0,1);for(g+=d.length;d.length>0;)this.gameObjectContainer.setChildIndex(d[0],this.backgroundSortOrder.length+g-d.length),d.splice(0,1);for(g+=f.length;f.length>0;)this.gameObjectContainer.setChildIndex(f[0],this.backgroundSortOrder.length+g-f.length),f.splice(0,1)},a.prototype.depthCompare=function(a,b){return a.yb.y?1:a.x>b.x?1:a.xc;c+=1)a.push(0);localStorage.setItem("levels",JSON.stringify(a)),console.log("unlockAllLevels cheat activated!!!"),console.log("unlocked "+b+" new levels!!!")}},a.prototype.frame=function(a){this.fixedUpdate(this.step*this.slow),PIXI.ticker.shared.update(this.step*this.slow*1e3),this.update(this.step*this.slow)},a.prototype.fixedUpdate=function(a){this.screenFlow.update(a)},a.prototype.update=function(a){game.config.FPS_METER&&this.meter.tickStart(),this.renderer.render(this.stage),game.config.FPS_METER&&this.meter.tick()},a.prototype.resize=function(){var a=Math.min(window.innerWidth/this.GAME_WIDTH,window.innerHeight/this.GAME_HEIGHT);this.stage.scale.x=this.stage.scale.y=a,this.renderer.resize(Math.ceil(this.GAME_WIDTH*a),Math.ceil(this.GAME_HEIGHT*a))},game.Main=a,game.toggleFullScreen=b}();