ore.js 346 KB

12345678
  1. function getInt(e){return Math.floor(1e5*Math.random())%e}function getDistanceF(e,t,s,i){return Math.sqrt((e-s)*(e-s)+(t-i)*(t-i))}function getDistanceP(e,t){return getDistanceF(e.x,e.y,t.x,t.y)}function removeClip(e){e&&e.parent&&e.parent.removeChild(e)}function isMobile(){var e=navigator.userAgent||navigator.vendor;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|android|ipad|playbook|silk|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))}function cjp(e,t){return new createjs.Point(e,t)}function createSpriteFromSpritesheet(e,t){if(void 0===t&&(t=0),!App.game.atlases[t].getAnimation(e)){for(var s=!1,i=App.game.atlases.length,r=0;i>r;++r)if(App.game.atlases[r].getAnimation(e)){s=!0,t=r;break}if(!s)return null}var a=new createjs.Sprite(App.game.atlases[t],e);return a.gotoAndStop(e),a.framerate=30,a}function isIE(){var e=navigator.userAgent.toLowerCase();return isMobile()?!1:-1!=e.indexOf("msie")?parseInt(e.split("msie")[1]):!1}function getSpritesheetByName(e){for(var t=!1,s=App.game.atlases.length,i=0;s>i;++i)if(App.game.atlases[i].getAnimation(e))return i;return t?void 0:0}function safeTrackEvent(){}function addChild(e,t){t.addChild(e)}function createBitmap(e){var t=new createjs.Bitmap(App.game.preloader.loader.getResult(e));return t}function setReg(e,t,s,i){void 0===t&&(t=.5),void 0===s&&(s=.5),void 0===i&&(i=!0),e.regX=(i?e.getBounds().width:1)*t,e.regY=(i?e.getBounds().height:1)*s}function limitDt(e){return e}function limit(e,t,s){return t>e&&(e=t),e>s&&(e=s),e}function lerp(e,t,s){return e+s*(t-e)}function lerpAngle(e,t,s){var i=Math.abs(t-e);i>180&&(t>e?e+=360:t+=360);var r=e+(t-e)*s;return normalizeAngle(r)}function angleBetween(e,t,s,i){return Math.atan2(i-t,s-e)}function normalizeAngle(e,t,s){for(void 0===t&&(t=0),void 0===s&&(s=360);e>s;)e-=360;for(;t>e;)e+=360;return e}function sign(e){return e>0?1:-1}function rotatePoint(e,t){t*=Math.PI/180;var s=Math.sin(t),i=Math.cos(t),r=e.x*i-e.y*s,a=e.x*s+e.y*i;e.x=r,e.y=a}function createAnimation(e,t,s,i,r,a,n,o,c,h){void 0===a&&(a=1),void 0===n&&(n=null),void 0===o&&(o=0),void 0===c&&(c=1),void 0===h&&(h=4);for(var l=[],p=i;r>=p;p+=c){for(var u="",d=h+(9>=p?-1:-2),y=0;d>y;y++)u+="0";var g=e.animations[s+u+p][0];if(void 0!=g&&null!=g&&!isNaN(g))for(var d=1+(p==r?o:0),y=0;d>y;++y)l.push(g)}e.animations[t]={frames:l,next:n?n:t,speed:a}}function linePoint(e,t,s,i){i.x=e.x+s*(t.x-e.x),i.y=e.y+s*(t.y-e.y)}function createFontFrames(e){for(var t="abcdefghijklmnopqrstuvwxyz1234567890!-./:%@,.",s=0;s<t.length;++s){var i=t.charCodeAt(s),r=t.charAt(s),a=r.toUpperCase().charCodeAt(0),n=e.animations[i.toString()],o=e.animations[a.toString()],c=n?n:o;c&&(e.animations[r.toLowerCase()]=e.animations[r.toUpperCase()]=c)}}function getTextSize(e){for(var t=e.text.length,s=e.letterSpacing,i=0,r=0,a=0;t>a;++a){var n=e.text.charAt(a),o=e._getFrame(n,e.spriteSheet);" "==n?i+=e.spaceWidth:(r=Math.max(r,o.rect.height),i+=o.rect.width+(0==a?0:s))}return textSize.x=i,textSize.y=r,textSize}function getArray(e){var t=tempArrays[e];return t.length=0,t}function touchHandlerDummy(e){return e.preventDefault(),!1}function getButtonAnimation(e){var t=new AnimatedNode(App.game.animationManager.getAnimation("buttons anim"),1/30,new SingleFlameSelector(e));return t.addAction(t.totalFrames-1,0),t}function isOrientationLocked(){return!1}var AwardManager=function(){function e(){}return e.addGem=function(t){void 0===t&&(t=1),e.gemCount+=t,e.gemCount>=200&&apiInstance&&(e.gemCount=-1e4,GameAPI.Award.submit({award:"award3"}))},e.onLevelComplete=function(e){apiInstance&&(2==e?GameAPI.Award.submit({award:"award1"}):e==LevelManager.LEVEL_AMOUNT-1?GameAPI.Award.submit({award:"award5"}):e==Math.round(LevelManager.LEVEL_AMOUNT/2)&&GameAPI.Award.submit({award:"award4"}))},e.addArtifact=function(t){void 0===t&&(t=1),e.artifactsDropped+=t,e.artifactsDropped>=5&&apiInstance&&(e.artifactsDropped=-1e4,GameAPI.Award.submit({award:"award2"}))},e.gemCount=0,e.artifactsDropped=0,e}(),__extends=this.__extends||function(e,t){function s(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);s.prototype=t.prototype,e.prototype=new s},GameObject=function(){function e(){this.sprite=null,this.isDestroyed=!1,this.isWaitingForDestruction=!1,this.isLocked=!1,this.stage=App.game.stage,this.level=Match3Level.instance}return e.prototype.canBeVisible=function(){return!0},e.prototype.update=function(){},e.prototype.destroy=function(){removeClip(this.sprite),this.sprite=null,this.isDestroyed=!0},e}(),AnimationObject=function(e){function t(t,s){void 0===s&&(s=null),e.call(this),this.frameTime=1/30,this.animPos=new createjs.Point(0,0),this.currentFrame=0,this.isPlaying=!1,this.animationPower=1,this.animationSpeed=1,this.stopSpeed=0,this.resetFrame=-1,this.resetStopFrame=!1,this.destroyOnReset=!1,this.playAnimationIn=-1,this.animationToPlay=0,this.handlePos=!1,this.hasRotation=!1,this.initSpritePos=cjp(0,0),this.stopFrame=-1,s&&(this.sprite=s,this.initSpritePos=cjp(s.x,s.y)),this.animationFrames=t,this.animationLen=t.length}return __extends(t,e),t.prototype.initAnim=function(){this.animPos.x=this.animPos.y=0,this.animationPower=1,this.animationSpeed=1},t.prototype.setFrame=function(e,t){void 0===t&&(t=!0);var s=this.animationLen,i=0>e||e>=s?null:this.animationFrames[e],r=0>e+1||e+1>=s?null:this.animationFrames[e+1],a=null==i?0:i.length,n=null==r?0:r.length,o=null==i||0>=a,c=!o&&null!=r&&n>0,h=this.currentFrame-e,l=this.animationPower;if(o){if(this.resetFrame>0)return this.setFrame(this.resetFrame),void(this.isPlaying=!1);if(this.resetStopFrame)return this.setFrame(e-1),void(this.isPlaying=!1);if(this.destroyOnReset)return void this.destroy();this.animPos.x=0,this.animPos.y=0,this.sprite.scaleX=1,this.sprite.scaleY=1,this.sprite.skewX=0,this.sprite.skewY=0,this.sprite.alpha=1,this.sprite.rotation=0}else if(t){var p=!c;this.animPos.x=Match3Level.TILE_SIZE_FACTOR*(p?i[0]*l:l*(i[0]+h*(r[0]-i[0]))),this.animPos.y=Match3Level.TILE_SIZE_FACTOR*(p?i[1]*l:l*(i[1]+h*(r[1]-i[1]))),this.sprite.scaleX=p?1+(i[2]-1)*l:1+(i[2]+h*(r[2]-i[2])-1)*l,this.sprite.scaleY=p?1+(i[3]-1)*l:1+(i[3]+h*(r[3]-i[3])-1)*l,this.hasRotation?(this.sprite.skewX=p?i[4]*l:l*(i[4]+h*(r[4]-i[4])),this.sprite.skewY=p?i[5]*l:l*(i[5]+h*(r[5]-i[5]))):this.sprite.rotation=i[4],a>=7&&n>=7&&(this.sprite.alpha=p?1+(i[6]-1)*l:1+(i[6]+h*(r[6]-i[6])-1)*l)}o&&(this.isPlaying=!1,this.currentFrame=0)},t.prototype.playAnimation=function(e,t,s){void 0===t&&(t=1),void 0===s&&(s=1),this.animationPower=t,this.animationSpeed=s,this.currentFrame=e,this.isPlaying=!0,this.setFrame(e)},t.prototype.prepareToPlayAnimation=function(e,t){this.playAnimationIn=e,this.animationToPlay=t},t.prototype.update=function(e){if(!this.isDestroyed){if(this.sprite){if(this.isPlaying)for(var t=e*this.animationSpeed;t>0&&(this.stopFrame<0||~~this.currentFrame!=this.stopFrame)&&this.isPlaying;)this.currentFrame+=t>=this.frameTime?1:t/this.frameTime,t-=this.frameTime,this.setFrame(~~this.currentFrame,t<=this.frameTime);if(this.isDestroyed)return;this.playAnimationIn>0&&(this.playAnimationIn-=e,this.playAnimationIn<=0&&(this.sprite.visible=!0,this.playAnimation(this.animationToPlay,1,1)))}this.handlePos&&(this.sprite.x=this.initSpritePos.x+this.animPos.x,this.sprite.y=this.initSpritePos.y+this.animPos.y)}},t}(GameObject),GemNode=function(){function e(){}return e.prototype.cut=function(){this.next=null,this.prev=null,this.cell=null},e.prototype.isEmpty=function(){return null==this.cell},e}(),GemList=function(){function e(){this.length=0,this.head=new GemNode,this.tail=this.head}return e.prototype.isEmpty=function(){return null==this.head.cell},e.prototype.cut=function(){this.head.cut(),this.tail=this.head,this.length=0},e.prototype.recalcLen=function(){this.length=0;for(var e=this.head;e;e=e.next)e.cell&&this.length++},e.prototype.add=function(e){if(this.length++,this.head.isEmpty())this.head.cell=e;else{var t=new GemNode;t.cell=e,this.head==this.tail?(this.head.next=t,t.prev=this.head):(this.tail.next=t,t.prev=this.tail),this.tail=t}},e}(),GemChain=function(e){function t(t,s){e.call(this),this.links=[],this.crosses=[],this.isLocked=!1,this.needRemove=!1,this.isRemoving=!1,this.linkAlpha=0,this.color=0,this.list=new GemList,this.gems=t.concat(),this.color=s;for(var i=0;i<t.length;++i){var r="chain_"+FieldObject.assetNames[0],a=createSpriteFromSpritesheet(r);a.stop(),a.framerate=24,a.regX=81,a.regY=49,this.links.push(a),this.list.add(t[i])}createjs.Tween.get(this,{loop:!1}).to({linkAlpha:1},300,createjs.Ease.quadInOut)}return __extends(t,e),t.prototype.isEqual=function(e){if(this.isRemoving)return!1;for(var t=e.length,s=0;t>s;++s)if(-1==this.gems.indexOf(e[s]))return!1;return!0},t.prototype.type=function(){for(var e=this.list.head;e;){if(e.cell)return e.cell.colorType;e=e.next}return-1},t.prototype.length=function(){return this.list.length},t.prototype.getAvgPos=function(){for(var e=0,t=new createjs.Point,s=this.list.head;s;)s.cell&&!s.cell.isDestroyed&&e++,s=s.next;return t.x=Math.floor(t.x/e),t.y=Math.floor(t.y/e),t},t.prototype.remove=function(){var e=this;this.isRemoving||(this.isRemoving=!0,createjs.Tween.removeTweens(this),createjs.Tween.get(this,{loop:!1}).to({linkAlpha:0},180,createjs.Ease.quadInOut).call(function(){return e.destroy()}))},t.prototype.update=function(s){if(e.prototype.update.call(this,s),!this.isLocked){if(this.isRemoving)return void(this.linkAlpha<.01&&this.destroy());var i=0;if(!this.isRemoving)for(var r=0,a=0,n=null,o=0,c=this.list.head;null!=c;c=c.next)if(c.cell){var h="chain_"+FieldObject.assetNames[this.color];if(this.lastAnimName=h,n){var l=this.links[r];l.parent||(this.level.downChainLayer.addChild(l),l.gotoAndPlay(h)),l.x=(n.sprite.x+c.cell.sprite.x)/2,l.y=(n.sprite.y+c.cell.sprite.y)/2,l.rotation=angleBetween(n.sprite.x,n.sprite.y+o,c.cell.sprite.x,c.cell.sprite.y+o)/DEG_TO_RAD;var p=getDistanceF(n.sprite.x,n.sprite.y,c.cell.sprite.x,c.cell.sprite.y),u=.9*p/t.CHAIN_WIDTH;i=Math.max(p,i),l.scaleX=u,r++,a++}null==c.next&&a++,n=c.cell}for(var d=this.links.length,r=0;d>r;++r)this.links[r].alpha=this.linkAlpha,this.links[r].visible=this.isRemoving||400>i;for(var d=this.links.length;d>r&&this.links[r].parent;r++)removeClip(this.links[r])}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.isRemoving&&this.links.length>0&&this.links[0].visible},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(!this.isDestroyed){this.list.cut(),this.list=null;for(var t=0;t<this.links.length;++t)removeClip(this.links[t]);this.links=null;for(var t=0;t<this.crosses.length;++t)removeClip(this.crosses[t]);this.crosses=null,e.prototype.destroy.call(this)}},t.CHAIN_WIDTH=100,t}(GameObject),ore_atlas_alpha={images:["art.png"],frames:[[732,726,27,41,0,-0,-39,27,80],[343,1750,26,29,0,-0,-51,26,80],[780,1623,22,59,0,-0,-37,22,96],[536,1995,28,41,0,-0,-53,28,94],[712,1780,24,41,0,-0,-39,24,80],[1007,1075,17,39,0,-0,-41,17,80],[737,1778,23,41,0,-0,-50,23,91],[730,840,29,41,0,-0,-39,29,80],[763,106,13,43,0,-0,-37,13,80],[80,2017,37,29,0,-0,-51,37,80],[397,1750,25,29,0,-0,-51,25,80],[732,810,27,29,0,-0,-51,27,80],[732,768,27,41,0,-0,-52,27,93],[996,54,28,43,0,-0,-50,28,93],[370,1750,26,29,0,-0,-51,26,80],[423,1750,25,29,0,-0,-51,25,80],[996,98,28,43,0,-0,-37,28,80],[25,2017,28,30,0,-0,-51,28,81],[730,882,29,30,0,-0,-51,29,81],[232,1461,41,30,0,-0,-51,41,81],[729,1016,30,30,0,-0,-51,30,81],[842,1447,35,42,0,-0,-52,35,94],[729,1047,30,29,0,-0,-51,30,80],[760,214,16,43,0,-0,-37,16,80],[763,170,12,43,0,-0,-37,12,80],[760,258,16,43,0,-0,-37,16,80],[594,2034,22,12,0,-0,-57,22,69],[743,594,15,43,0,-0,-37,15,80],[743,556,16,20,0,-0,-35,16,55],[94,1470,39,40,0,-0,-39,39,79],[510,1995,25,43,0,-0,-37,25,80],[232,1417,41,43,0,-0,-37,41,80],[454,1655,34,43,0,-0,-37,34,80],[414,580,10,15,0,-0,-37,10,52],[1009,899,15,43,0,-0,-37,15,80],[1009,943,15,43,0,-0,-37,15,80],[681,2028,20,20,0,-0,-37,20,57],[138,2015,34,32,0,-0,-46,34,78],[1006,1189,14,16,0,-0,-70,14,86],[172,2004,22,10,0,-0,-58,22,68],[760,302,12,10,0,-0,-73,12,83],[456,1999,26,43,0,-0,-37,26,80],[727,1077,32,43,0,-0,-37,32,80],[732,638,27,43,0,-0,-37,27,80],[94,1591,38,43,0,-0,-37,38,80],[993,1312,31,43,0,-0,-37,31,80],[993,1356,31,43,0,-0,-37,31,80],[727,1121,32,43,0,-0,-37,32,80],[729,972,30,43,0,-0,-37,30,80],[723,1222,35,43,0,-0,-37,35,80],[993,1400,31,43,0,-0,-37,31,80],[723,1266,35,43,0,-0,-37,35,80],[1006,1159,14,29,0,-0,-49,14,78],[411,653,12,30,0,-0,-50,12,80],[702,2018,20,24,0,-0,-54,20,78],[797,1683,27,22,0,-0,-55,27,77],[723,2018,20,24,0,-0,-54,20,78],[732,682,27,43,0,-0,-39,27,82],[94,1511,39,39,0,-0,-41,39,80],[324,2003,32,43,0,-0,-37,32,80],[722,1310,35,43,0,-0,-37,35,80],[440,1699,34,43,0,-0,-37,34,80],[468,1388,41,43,0,-0,-37,41,80],[996,142,28,43,0,-0,-37,28,80],[553,724,36,43,0,-0,-37,36,80],[553,768,36,43,0,-0,-37,36,80],[255,2003,34,43,0,-0,-37,34,80],[1007,1031,17,43,0,-0,-37,17,80],[357,2e3,32,43,0,-0,-37,32,80],[94,1635,38,43,0,-0,-37,38,80],[290,2003,33,43,0,-0,-37,33,80],[543,812,44,43,0,-0,-37,44,80],[454,1600,35,43,0,-0,-37,35,80],[228,1573,38,43,0,-0,-37,38,80],[390,2e3,32,43,0,-0,-37,32,80],[462,1518,38,43,0,-0,-37,38,80],[423,1999,32,43,0,-0,-37,32,80],[977,1444,35,43,0,-0,-37,35,80],[977,1488,35,43,0,-0,-37,35,80],[94,1717,37,43,0,-0,-37,37,80],[468,1432,41,43,0,-0,-37,41,80],[195,2004,59,43,0,-0,-37,59,80],[543,856,44,43,0,-0,-37,44,80],[231,1528,39,44,0,-0,-37,39,81],[94,1344,43,43,0,-0,-37,43,80],[1009,987,15,43,0,-0,-37,15,80],[483,1999,26,43,0,-0,-37,26,80],[1007,1115,15,43,0,-0,-37,15,80],[627,2031,23,15,0,-0,-42,23,57],[454,1644,35,10,0,-0,-73,35,83],[411,684,12,14,0,-0,-41,12,55],[574,1690,23,29,0,-0,-52,23,81],[565,1995,28,41,0,-0,-39,28,80],[54,2017,25,30,0,-0,-51,25,81],[0,2017,24,31,0,-0,-2,24,35],[594,1993,32,40,0,-0,-0,32,40],[723,1165,35,56,0,-0,-0,35,56],[777,273,39,42,0,-0,-0,39,42],[582,1281,139,52,0,-10,-22,161,98],[817,273,140,39,0,-10,-26,161,98],[588,815,141,45,0,-9,-22,161,98],[141,1046,140,48,0,-10,-21,161,98],[760,940,140,52,0,-10,-20,161,98],[586,1057,140,50,0,-10,-23,161,98],[0,1145,140,46,0,-10,-30,161,98],[376,1107,140,45,0,-10,-23,161,98],[590,717,141,48,0,-9,-19,161,98],[0,850,141,43,0,-9,-26,161,98],[760,1098,140,50,0,-10,-21,161,98],[140,1239,139,51,0,-10,-20,161,98],[788,1710,59,58,0,-37,-36,132,132],[958,253,64,62,0,-34,-35,132,132],[899,1312,93,93,0,-22,-21,132,132],[280,1247,93,93,0,-22,-21,132,132],[280,1341,93,93,0,-22,-21,132,132],[517,1131,64,62,0,-34,-35,132,132],[517,1194,64,62,0,-34,-35,132,132],[94,1388,42,40,0,-45,-43,132,132],[221,1692,37,35,0,-47,-45,132,132],[536,2037,20,10,0,-60,-45,132,132],[745,1820,71,71,0,-6,-3,80,80],[958,186,66,66,0,-11,-8,90,88],[133,1653,87,98,0,-0,-1,90,101],[435,204,324,351,0,-1,-0,326,351],[760,573,146,225,0,-0,-0,146,225],[760,316,264,256,0,-0,-0,264,256],[0,1720,86,200,0,-0,-1,86,201],[590,632,141,84,0,-0,-9,141,93],[302,304,124,199,0,-0,-0,124,199],[901,1120,104,191,0,-0,-0,104,192],[468,1476,41,41,0,-0,-0,41,41],[730,943,29,28,0,-3,-3,35,34],[768,1683,28,26,0,-4,-4,35,34],[657,1690,27,28,0,-4,-3,35,34],[628,1690,28,28,0,-4,-3,35,34],[598,1690,29,28,0,-3,-3,35,34],[730,913,29,29,0,-3,-2,35,34],[517,1257,64,62,0,-34,-35,132,132],[514,1320,64,62,0,-34,-35,132,132],[0,1344,93,93,0,-22,-21,132,132],[138,1371,93,93,0,-22,-21,132,132],[0,1438,93,93,0,-22,-21,132,132],[514,1383,64,62,0,-34,-35,132,132],[510,1446,64,62,0,-34,-35,132,132],[94,1388,42,40,0,-45,-43,132,132],[221,1692,37,35,0,-47,-45,132,132],[536,2037,20,10,0,-60,-45,132,132],[517,1062,68,68,0,-0,-0,68,68],[232,1371,41,45,0,-2,-3,46,52],[533,900,54,53,0,-0,-0,54,53],[585,1912,80,80,0,-0,-0,80,80],[664,1831,80,80,0,-0,-0,80,80],[0,557,292,292,0,-4,-4,300,300],[659,1623,60,66,0,-28,-24,129,119],[87,1761,71,72,0,-23,-20,129,119],[501,1914,83,80,0,-16,-16,129,119],[271,1529,93,77,0,-11,-20,129,119],[365,1576,88,89,0,-14,-14,129,119],[907,573,113,111,0,-3,-1,129,119],[907,685,112,111,0,-4,-0,129,119],[901,1006,105,113,0,-8,-6,129,119],[302,206,125,97,0,-4,-11,129,119],[293,759,107,95,0,-3,-11,129,119],[907,797,107,101,0,-2,-7,129,119],[293,653,117,105,0,-0,-7,129,119],[302,504,122,75,0,-0,-21,129,119],[744,1912,76,77,0,-20,-20,129,119],[666,1912,77,78,0,-19,-19,129,119],[1017,0,1,1,0,-0,-0,129,119],[627,1993,26,37,0,-3,-3,30,45],[744,1683,23,34,0,-4,-5,30,45],[449,1743,25,36,0,-3,-4,30,45],[654,1993,26,37,0,-2,-3,30,45],[449,1743,25,36,0,-3,-4,30,45],[491,1780,70,51,0,-7,-4,100,60],[562,1780,74,50,0,-2,-5,100,60],[562,1780,74,50,0,-2,-5,100,60],[637,1780,74,50,0,-2,-6,100,60],[462,1562,38,37,0,-0,-0,38,38],[759,1290,139,52,0,-10,-22,163,99],[376,1245,140,39,0,-10,-26,163,99],[588,861,141,45,0,-9,-22,163,99],[0,1047,140,48,0,-10,-21,163,99],[588,951,140,52,0,-10,-20,163,99],[0,894,140,50,0,-10,-23,163,99],[0,1192,140,46,0,-10,-30,163,99],[141,1193,140,45,0,-10,-23,163,99],[411,724,141,48,0,-9,-19,163,99],[142,850,141,43,0,-9,-26,163,99],[141,894,140,50,0,-10,-21,163,99],[140,1291,139,51,0,-10,-20,163,99],[720,1623,59,59,0,-37,-36,132,132],[665,1719,62,60,0,-34,-35,132,132],[579,1334,93,93,0,-22,-21,132,132],[579,1428,93,93,0,-22,-21,132,132],[374,1388,93,93,0,-22,-21,132,132],[475,1723,59,56,0,-37,-39,132,132],[535,1723,59,56,0,-37,-39,132,132],[94,1388,42,40,0,-45,-43,132,132],[221,1692,37,35,0,-47,-45,132,132],[536,2037,20,10,0,-60,-45,132,132],[841,1490,71,71,0,-6,-3,80,80],[0,1921,85,95,0,-0,-0,85,95],[0,206,301,350,0,-0,-0,301,350],[902,899,106,106,0,-0,-0,106,106],[730,1991,23,23,0,-0,-0,23,23],[293,580,120,72,0,-0,-0,120,72],[763,150,13,19,0,-0,-0,13,19],[673,1334,20,18,0,-0,-0,20,18],[118,2015,19,33,0,-0,-0,19,33],[694,1334,19,17,0,-0,-0,19,17],[231,1492,40,35,0,-0,-0,40,35],[533,954,54,53,0,-0,-0,54,53],[173,2015,21,21,0,-0,-0,21,21],[0,0,434,205,0,-0,-0,434,205],[743,577,16,16,0,-0,-0,19,24],[958,161,29,24,0,-6,-0,35,24],[86,1921,85,93,0,-0,-0,85,93],[777,161,180,111,0,-2,-2,184,115],[435,0,341,105,0,-0,-0,341,105],[501,1569,73,69,0,-0,-0,73,69],[817,1841,70,70,0,-0,-0,70,70],[913,1532,73,69,0,-0,-0,73,69],[888,1841,70,70,0,-0,-0,70,70],[532,1008,53,53,0,-2,-0,55,56],[590,556,152,75,0,-0,-0,152,75],[777,54,218,106,0,-0,-0,218,106],[673,1354,84,100,0,-0,-0,84,100],[140,1343,136,27,0,-4,-6,142,38],[681,1991,20,36,0,-1,-1,22,39],[758,1343,139,52,0,-10,-22,162,98],[582,1201,140,39,0,-10,-26,162,98],[760,848,141,45,0,-9,-22,162,98],[141,1095,140,48,0,-10,-21,162,98],[588,1004,140,52,0,-10,-20,162,98],[0,945,140,50,0,-10,-23,162,98],[376,1060,140,46,0,-10,-30,162,98],[376,1153,140,45,0,-10,-23,162,98],[590,766,141,48,0,-9,-19,162,98],[391,869,141,43,0,-9,-26,162,98],[141,945,140,50,0,-10,-21,162,98],[0,1292,139,51,0,-10,-20,162,98],[803,1623,59,58,0,-37,-36,132,132],[819,1990,60,58,0,-36,-36,132,132],[274,1435,93,93,0,-22,-21,132,132],[137,1465,93,93,0,-22,-21,132,132],[0,1532,93,93,0,-22,-21,132,132],[315,1780,58,54,0,-37,-39,132,132],[374,1780,58,54,0,-37,-39,132,132],[94,1388,42,40,0,-45,-43,132,132],[221,1692,37,35,0,-47,-45,132,132],[536,2037,20,10,0,-60,-45,132,132],[817,1769,71,71,0,-6,-3,80,80],[713,1690,30,27,0,-0,-0,30,27],[221,1728,27,23,0,-0,-0,27,23],[685,1690,27,28,0,-0,-0,27,28],[761,1778,32,22,0,-0,-0,32,22],[702,1991,27,26,0,-0,-0,27,26],[0,1239,139,52,0,-10,-22,163,98],[759,1196,140,39,0,-10,-26,163,98],[760,894,141,45,0,-9,-22,163,98],[0,1096,140,48,0,-10,-21,163,98],[760,993,140,52,0,-10,-20,163,98],[376,1009,140,50,0,-10,-23,163,98],[586,1108,140,46,0,-10,-30,163,98],[582,1155,140,45,0,-10,-23,163,98],[760,799,141,48,0,-9,-19,163,98],[391,913,141,43,0,-9,-26,163,98],[0,996,140,50,0,-10,-21,163,98],[374,1285,139,51,0,-10,-20,163,98],[510,1509,64,59,0,-34,-36,132,132],[595,1720,69,59,0,-32,-36,132,132],[134,1559,93,93,0,-22,-21,132,132],[0,1626,93,93,0,-22,-21,132,132],[368,1482,93,93,0,-22,-21,132,132],[743,1564,64,58,0,-34,-37,132,132],[754,1990,64,58,0,-34,-37,132,132],[94,1388,42,40,0,-45,-43,132,132],[221,1692,37,35,0,-47,-45,132,132],[536,2037,20,10,0,-60,-45,132,132],[821,1912,71,71,0,-6,-3,80,80],[284,855,106,106,0,-0,-0,106,106],[267,1607,88,88,0,-0,-0,88,89],[938,1602,73,69,0,-0,-0,73,69],[867,1602,70,70,0,-0,-0,70,70],[938,1672,73,69,0,-0,-0,73,69],[889,1754,70,70,0,-0,-0,70,70],[425,556,164,167,0,-9,-8,183,184],[87,1836,82,83,0,-2,-2,86,86],[94,1551,39,39,0,-0,-0,39,39],[419,1835,80,81,0,-1,-1,83,83],[420,1917,80,81,0,-1,-1,83,83],[500,1832,80,81,0,-1,-1,83,83],[338,1918,81,81,0,-1,-1,83,83],[255,1920,82,82,0,-0,-1,83,83],[336,1835,82,82,0,-0,-1,83,83],[170,1836,82,83,0,-0,-0,83,83],[172,1920,82,83,0,-0,-0,83,83],[253,1836,82,83,0,-0,-0,83,83],[758,1396,83,83,0,-0,-0,83,83],[673,1455,83,83,0,-0,-0,83,83],[575,1522,83,83,0,-0,-0,83,83],[893,1406,83,83,0,-0,-0,83,83],[757,1480,83,83,0,-0,-0,83,83],[659,1539,83,83,0,-0,-0,83,83],[575,1606,83,83,0,-0,-0,83,83],[490,1639,83,83,0,-0,-0,83,83],[356,1666,83,83,0,-0,-0,83,83],[259,1696,83,83,0,-0,-0,83,83],[173,1752,83,83,0,-0,-0,83,83],[435,106,327,97,0,-0,-0,327,97],[228,1617,38,37,0,-1,-1,40,39],[94,1679,38,37,0,-1,-1,40,39],[581,1831,82,80,0,-2,-2,86,84],[777,0,239,53,0,-7,-0,250,53],[842,1396,50,50,0,-0,-0,50,50],[759,1236,139,53,0,-10,-22,162,98],[582,1241,140,39,0,-10,-26,162,98],[401,822,141,46,0,-9,-22,162,98],[141,1144,140,48,0,-10,-21,162,98],[391,957,140,51,0,-10,-21,162,98],[141,996,140,49,0,-10,-24,162,98],[760,1149,140,46,0,-10,-30,162,98],[376,1199,140,45,0,-10,-23,162,98],[401,773,141,48,0,-9,-19,162,98],[588,907,141,43,0,-9,-26,162,98],[760,1046,140,51,0,-10,-21,162,98],[374,1337,139,50,0,-10,-21,162,98],[808,1564,58,58,0,-38,-36,132,132],[728,1718,59,59,0,-37,-36,132,132],[282,962,93,94,0,-22,-20,132,132],[282,1057,93,94,0,-22,-20,132,132],[282,1152,93,94,0,-22,-20,132,132],[257,1780,57,55,0,-38,-39,132,132],[433,1780,57,54,0,-38,-39,132,132],[94,1429,42,40,0,-45,-43,132,132],[221,1655,37,36,0,-47,-44,132,132],[173,2037,20,11,0,-60,-44,132,132],[848,1682,71,71,0,-6,-3,80,80]],animations:{100:[0],101:[1],102:[2],103:[3],104:[4],105:[5],106:[6],107:[7],108:[8],109:[9],110:[10],111:[11],112:[12],113:[13],114:[14],115:[15],116:[16],117:[17],118:[18],119:[19],120:[20],121:[21],122:[22],123:[23],124:[24],125:[25],126:[26],33:[27],34:[28],35:[29],36:[30],37:[31],38:[32],39:[33],40:[34],41:[35],42:[36],43:[37],44:[38],45:[39],46:[40],47:[41],48:[42],49:[43],50:[44],51:[45],52:[46],53:[47],54:[48],55:[49],56:[50],57:[51],58:[52],59:[53],60:[54],61:[55],62:[56],63:[57],64:[58],65:[59],66:[60],67:[61],68:[62],69:[63],70:[64],71:[65],72:[66],73:[67],74:[68],75:[69],76:[70],77:[71],78:[72],79:[73],80:[74],81:[75],82:[76],83:[77],84:[78],85:[79],86:[80],87:[81],88:[82],89:[83],90:[84],91:[85],92:[86],93:[87],94:[88],95:[89],96:[90],97:[91],98:[92],99:[93],arrow:[94],block_particle1:[95],block_particle2:[96],block_particle3:[97],blue0001:[98],blue0003:[99],blue0005:[100],blue0007:[101],blue0009:[102],blue0011:[103],blue0013:[104],blue0015:[105],blue0017:[106],blue0019:[107],blue0021:[108],blue0023:[109],blue_gone0001:[110],blue_gone0002:[111],blue_gone0003:[112],blue_gone0004:[113],blue_gone0005:[114],blue_gone0006:[115],blue_gone0007:[116],blue_gone0008:[117],blue_gone0009:[118],blue_gone0010:[119],blue_gradient:[120],bonus_particle:[121],cage:[122],"characterAnimation 180_t":[123],"characterAnimation 300_t":[124],"characterAnimation 320_t":[125],"characterAnimation 340_t":[126],"characterAnimation 360_t":[127],"characterAnimation 380_t":[128],"characterAnimation 400_t":[129],chest_icon:[130],cir_fire1:[131],cir_fire2:[132],cir_fire3:[133],cir_fire4:[134],cir_fire5:[135],cir_fire6:[136],color_gone0001:[137],color_gone0002:[138],color_gone0003:[139],color_gone0004:[140],color_gone0005:[141],color_gone0006:[142],color_gone0007:[143],color_gone0008:[144],color_gone0009:[145],color_gone0010:[146],credits_button:[147],crystal_icon:[148],current_level:[149],dirt1:[150],dirt2:[151],"explosion bomb":[152],explosion0006:[153],explosion0007:[154],explosion0008:[155],explosion0009:[156],explosion0010:[157],explosion0011:[158],explosion0012:[159],explosion0013:[160],explosion0014:[161],explosion0015:[162],explosion0016:[163],explosion0017:[164],explosion0018:[165],explosion0019:[166],explosion0020:[167],explosion0021:[168],fire1:[169],fire2:[170],fire3:[171],fire4:[172],fire5:[173],fireball1:[174],fireball2:[175],fireball3:[176],fireball4:[177],"gloss animGloss0_t":[178],green0001:[179],green0003:[180],green0005:[181],green0007:[182],green0009:[183],green0011:[184],green0013:[185],green0015:[186],green0017:[187],green0019:[188],green0021:[189],green0023:[190],green_gone0001:[191],green_gone0002:[192],green_gone0003:[193],green_gone0004:[194],green_gone0005:[195],green_gone0006:[196],green_gone0007:[197],green_gone0008:[198],green_gone0009:[199],green_gone0010:[200],green_gradient:[201],hand:[202],hint_dude:[203],home_button:[204],hud_star_off:[205],info_bar:[206],leaf1:[207],leaf2:[208],leaf3:[209],leaf4:[210],leaf5:[211],level2:[212],level_inactive:[213],"logo-logo_animlogo-xlogo-Animation 10_t":[214],menu_line_part1:[215],menu_line_part2:[216],monster_shell:[217],more:[218],moves_text:[219],music_off:[220],music_off2:[221],music_on:[222],music_on2:[223],pause_button:[224],play:[225],play_next_btn:[226],"pointerTween 110_t":[227],progress_bar:[228],"progressbar star":[229],purple0001:[230],purple0003:[231],purple0005:[232],purple0007:[233],purple0009:[234],purple0011:[235],purple0013:[236],purple0015:[237],purple0017:[238],purple0019:[239],purple0021:[240],purple0023:[241],purple_gone0001:[242],purple_gone0002:[243],purple_gone0003:[244],purple_gone0004:[245],purple_gone0005:[246],purple_gone0006:[247],purple_gone0007:[248],purple_gone0008:[249],purple_gone0009:[250],purple_gone0010:[251],purple_gradient:[252],quest1:[253],quest2:[254],quest3:[255],quest4:[256],quest5:[257],red0001:[258],red0003:[259],red0005:[260],red0007:[261],red0009:[262],red0011:[263],red0013:[264],red0015:[265],red0017:[266],red0019:[267],red0021:[268],red0023:[269],red_gone0001:[270],red_gone0002:[271],red_gone0003:[272],red_gone0004:[273],red_gone0005:[274],red_gone0006:[275],red_gone0007:[276],red_gone0008:[277],red_gone0009:[278],red_gone0010:[279],red_gradient:[280],restart_button:[281],select_spell:[282],sound_off:[283],sound_off2:[284],sound_on:[285],sound_on2:[286],"star glow":[287],star_target:[288],time:[289],tutorial_effect0001:[290],tutorial_effect0002:[291],tutorial_effect0003:[292],tutorial_effect0004:[293],tutorial_effect0005:[294],tutorial_effect0006:[295],tutorial_effect0007:[296],tutorial_effect0008:[297],tutorial_effect0009:[298],tutorial_effect0010:[299],tutorial_effect0011:[300],tutorial_effect0012:[301],tutorial_effect0013:[302],tutorial_effect0014:[303],tutorial_effect0015:[304],tutorial_effect0016:[305],tutorial_effect0017:[306],tutorial_effect0018:[307],tutorial_effect0019:[308],tutorial_effect0020:[309],victory:[310],victory_star:[311],victory_star2:[312],victory_star_large:[313],well:[314],white:[315],yellow0001:[316],yellow0003:[317],yellow0005:[318],yellow0007:[319],yellow0009:[320],yellow0011:[321],yellow0013:[322],yellow0015:[323],yellow0017:[324],yellow0019:[325],yellow0021:[326],yellow0023:[327],yellow_gone0001:[328],yellow_gone0002:[329],yellow_gone0003:[330],yellow_gone0004:[331],yellow_gone0005:[332],yellow_gone0006:[333],yellow_gone0007:[334],yellow_gone0008:[335],yellow_gone0009:[336],yellow_gone0010:[337],yellow_gradient:[338]},texturepacker:["SmartUpdateHash: $TexturePacker:SmartUpdate:fcc4da710151dab3b16e5a3eb9bb1d92:591aef722dcab5946477a4b64fa43f9c:9eb3a69878084614b39dbba1d72c6cfc$","EaselJS Extended Exporter - Trim support"]},transition_anim={name:"transition",l:[{flashName:"RIGHT2",name:"Animation 10",d:{anchorX:"0.5",anchorY:"0.49976470588235294",name:"transitionAnimation 100_t.png"},f:[{r:"0.0000000000",x:"280.6445800781",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"255.3916076660",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"232.0285583496",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"210.5194335937",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"190.8822326660",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"173.1169555664",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"157.2236022949",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"143.1841735840",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"131.0346679688",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"120.7570861816",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"112.3334289551",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"105.7996948242",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"101.1198852539",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"98.3119995117",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.3760375977",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"98.6539855957",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"102.4698303223",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"108.8235717773",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"117.7332092285",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"129.1987426758",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"143.2021728516",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"159.7434997559",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"178.8227233887",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"200.4578430176",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"224.6488586426",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"251.3777709961",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"280.6445800781",y:"177.5627746582",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"LEFT2",name:"Animation 7",d:{anchorX:"0.49864048338368583",anchorY:"0.49976470588235294",name:"transitionAnimation 70_t.png"},f:[{r:"0.0000000000",x:"-40.9843322754",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-12.5994873047",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"13.6794433594",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"37.8524597168",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"59.9375610352",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"79.9167480469",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"97.7720214844",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"113.5393798828",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"127.2188232422",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"138.7743530273",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"148.2419677734",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"155.5856689453",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"160.8414550781",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"164.0093261719",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.0532836914",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"163.6313415527",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"159.3295166016",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"152.1658081055",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"142.1582153320",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"129.2887390137",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"113.5393798828",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"94.9461364746",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"73.4730102539",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"49.1559997559",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"21.9771057129",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-8.0816711426",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-40.9843322754",y:"172.3249877930",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"RIGHT",name:"Animation 6",d:{anchorX:"0.49859550561797755",anchorY:"0.49976470588235294",name:"transitionAnimation 30_t.png"},f:[{r:"0.0000000000",x:"320.2609680176",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"308.1474609375",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"296.4659362793",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"285.2163940430",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"274.3988342285",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"263.9772583008",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"254.0056640625",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"244.4480529785",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"235.3044250488",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"226.6107788086",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"218.3131164551",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"210.4654357910",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"203.0317382813",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"196.0300231934",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"189.4422912598",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"183.2865417480",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"177.5447753906",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"172.2349914551",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"167.3571899414",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"162.8933715820",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"158.8615356445",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"155.2436828613",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"152.0578125000",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"149.3039245605",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"146.9640197754",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"145.0560974121",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"143.5621582031",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"142.5002014160",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"141.8702270508",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"141.6542358398",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"141.6542358398",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"141.6542358398",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"141.8522277832",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"142.4462036133",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"143.4361633301",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"144.8221069336",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"146.6220336914",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"148.7999450684",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"151.3738403320",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"154.3617187500",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"157.7275817871",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"161.5074279785",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"165.6652587891",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"170.2370727539",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"175.1868713379",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"180.5506530762",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"186.3104187012",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"192.4661682129",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"198.9999023437",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"205.9476196289",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"213.2913208008",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"221.0310058594",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"229.1666748047",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"237.6983276367",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"246.6259643555",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"255.9675842285",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"265.6871887207",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"275.8027770996",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"286.3143493652",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"297.2399047852",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"308.5434448242",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"320.2609680176",y:"173.8549255371",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"LEFT",name:"Animation 5",d:{anchorX:"0.4987562189054726",anchorY:"0.49976470588235294",name:"transitionAnimation 10_t.png"},f:[{r:"0.0000000000",x:"-102.8658142090",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-89.0963745117",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-75.8129150391",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-63.0154357910",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-50.7039367676",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-38.8604187012",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-27.5028808594",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-16.6493225098",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-6.2457458496",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"3.6538513184",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"13.0674682617",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"21.9951049805",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"30.4547607422",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"38.4284362793",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"45.9161315918",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"52.9178466797",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"59.4335815430",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"65.4813354492",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"71.0251098633",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"76.1009033203",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"80.6907165527",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"84.7945495605",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"88.4304016113",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"91.5622741699",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"94.2261657715",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"96.3860778809",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"98.0780090332",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"99.2839599609",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"100.0219299316",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"100.2559204102",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"100.2559204102",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"100.2559204102",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"100.0219299316",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"99.3559570313",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"98.2220031738",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"96.6380676270",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"94.6041503906",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"92.1382507324",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"89.2043701172",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"85.8205078125",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"81.9686645508",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"77.6848388672",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"72.9510314941",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"67.7672424316",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"62.1154724121",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"56.0137207031",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"49.4799865723",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"42.4782714844",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"35.0265747070",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"27.1248962402",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"18.7732360840",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"9.9715942383",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"0.7199707031",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-8.9816345215",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-19.1332214355",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-29.7347900391",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-40.8043395996",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-52.3058715820",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-64.2753845215",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-76.6768798828",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-89.5463562012",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-102.8658142090",y:"155.7116638184",scX:"1.0000000000",scY:"1.0000000000"}]}]},button_anim={name:"button",l:{flashName:"Layer 1",name:"GUI/Btn_Play",d:{anchorX:"0.5",anchorY:"0.497907949790795",name:"GUI-buttonGUI-Btn_Play0_t.png"},f:[{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"NaN",x:"120.2000000000",y:"121.5000000000",scX:"1.0140380859",scY:"0.9834594727"},{r:"NaN",x:"122.4500000000",y:"128.0500000000",scX:"1.0600738525",scY:"0.9291687012"},{r:"NaN",x:"124.6500000000",y:"134.4500000000",scX:"1.1050262451",scY:"0.8762969971"},{r:"NaN",x:"123.9000000000",y:"133.2000000000",scX:"1.0925750732",scY:"0.8870239258"},{r:"NaN",x:"120.9500000000",y:"128.2500000000",scX:"1.0450744629",scY:"0.9283752441"},{r:"NaN",x:"116.2500000000",y:"120.4000000000",scX:"0.9693603516",scY:"0.9942474365"},{r:"NaN",x:"113.2000000000",y:"115.3000000000",scX:"0.9207153320",scY:"1.0364379883"},{r:"NaN",x:"112.4000000000",y:"114.0000000000",scX:"0.9079437256",scY:"1.0477142334"},{r:"NaN",x:"112.5000000000",y:"114.3000000000",scX:"0.9107818604",scY:"1.0450744629"},{r:"NaN",x:"112.7500000000",y:"115.3500000000",scX:"0.9210968018",scY:"1.0360717773"},{r:"NaN",x:"113.2500000000",y:"117.4000000000",scX:"0.9412536621",scY:"1.0185089111"},{r:"NaN",x:"114.0500000000",y:"120.1000000000",scX:"0.9675292969",scY:"0.9956665039"},{r:"NaN",x:"114.7000000000",y:"122.2000000000",scX:"0.9881134033",scY:"0.9777374268"},{r:"NaN",x:"114.8500000000",y:"123.3000000000",scX:"0.9986877441",scY:"0.9685363770"},{r:"NaN",x:"115.0000000000",y:"123.6500000000",scX:"1.0016326904",scY:"0.9661102295"},{r:"NaN",x:"115.1000000000",y:"123.4500000000",scX:"1.0003967285",scY:"0.9673614502"},{r:"NaN",x:"115.4500000000",y:"122.9000000000",scX:"0.9959869385",scY:"0.9722747803"},{r:"NaN",x:"116.2000000000",y:"121.7000000000",scX:"0.9873657227",scY:"0.9817962646"},{r:"NaN",x:"117.2000000000",y:"120.0500000000",scX:"0.9747009277",scY:"0.9959106445"},{r:"NaN",x:"118.3500000000",y:"118.3500000000",scX:"0.9618988037",scY:"1.0101470947"},{r:"NaN",x:"119.0000000000",y:"117.1500000000",scX:"0.9530639648",scY:"1.0199584961"},{r:"NaN",x:"119.4000000000",y:"116.5500000000",scX:"0.9485626221",scY:"1.0249328613"},{r:"0",x:"119.5000000000",y:"116.3500000000",scX:"0.9472808838",scY:"1.0263671875"},{r:"NaN",x:"119.5500000000",y:"116.4500000000",scX:"0.9481964111",scY:"1.0257568359"},{r:"NaN",x:"119.6500000000",y:"116.6500000000",scX:"0.9512939453",scY:"1.0236511230"},{r:"NaN",x:"119.9000000000",y:"117.1500000000",scX:"0.9572143555",scY:"1.0197448730"},{r:"NaN",x:"120.3000000000",y:"117.9000000000",scX:"0.9665069580",scY:"1.0135498047"},{r:"NaN",x:"120.8000000000",y:"118.9000000000",scX:"0.9791412354",scY:"1.0051116943"},{r:"NaN",x:"121.3500000000",y:"120.0500000000",scX:"0.9933929443",scY:"0.9956054688"},{r:"NaN",x:"121.8500000000",y:"121.1000000000",scX:"1.0062255859",scY:"0.9870758057"},{r:"NaN",x:"122.2500000000",y:"121.9000000000",scX:"1.0157318115",scY:"0.9807281494"},{r:"NaN",x:"122.5000000000",y:"122.3500000000",scX:"1.0218048096",scY:"0.9766693115"},{r:"NaN",x:"122.6000000000",y:"122.6000000000",scX:"1.0249938965",scY:"0.9745178223"},{r:"NaN",x:"122.6500000000",y:"122.6500000000",scX:"1.0259399414",scY:"0.9739837646"},{r:"NaN",x:"122.5500000000",y:"122.6000000000",scX:"1.0256652832",scY:"0.9741516113"},{r:"NaN",x:"122.4500000000",y:"122.5500000000",scX:"1.0248260498",scY:"0.9750213623"},{r:"NaN",x:"122.3000000000",y:"122.3500000000",scX:"1.0232391357",scY:"0.9766235352"},{r:"NaN",x:"122.0000000000",y:"122.0000000000",scX:"1.0207366943",scY:"0.9791412354"},{r:"NaN",x:"121.5500000000",y:"121.6500000000",scX:"1.0172729492",scY:"0.9825897217"},{r:"NaN",x:"121.1000000000",y:"121.0500000000",scX:"1.0130767822",scY:"0.9868316650"},{r:"NaN",x:"120.5500000000",y:"120.5500000000",scX:"1.0088500977",scY:"0.9910736084"},{r:"NaN",x:"120.1500000000",y:"120.1000000000",scX:"1.0053100586",scY:"0.9946594238"},{r:"NaN",x:"119.8500000000",y:"119.8000000000",scX:"1.0027465820",scY:"0.9971923828"},{r:"NaN",x:"119.6500000000",y:"119.6500000000",scX:"1.0011138916",scY:"0.9988403320"},{r:"NaN",x:"119.5500000000",y:"119.5500000000",scX:"1.0002441406",scY:"0.9997406006"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"119.5000000000",y:"161.1000000000",scX:"1.7673187256",scY:"0.6111450195"},{r:"0",x:"119.5000000000",y:"170.3500000000",scX:"1.9373626709",scY:"0.5249633789"},{r:"0",x:"119.5000000000",y:"172.8500000000",scX:"1.9837646484",scY:"0.5014495850"},{a:"88.0000000000",r:"0",x:"145.3000000000",y:"165.5500000000",scX:"1.7975769043",scY:"0.6877136230"},{a:"61.0000000000",r:"0",x:"200.2500000000",y:"150.0000000000",scX:"1.4008331299",scY:"1.0846252441"},{a:"29.0000000000",r:"0",x:"265.5500000000",y:"131.5500000000",scX:"0.9295501709",scY:"1.5560760498"},{a:"0.0000000000",r:"0",x:"324.8500000000",y:"114.8000000000",scX:"0.5013427734",scY:"1.9844665527"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{v:"false"},{a:"0.0000000000",r:"0",x:"119.5000000000",y:"119.5000000000",scX:"0.5142211914",scY:"0.5142211914"},{a:"78.0000000000",r:"0",x:"119.5000000000",y:"119.5000000000",scX:"0.8931274414",scY:"0.8931274414"},{a:"95.0000000000",r:"0",x:"119.5000000000",y:"119.5000000000",scX:"0.9770812988",scY:"0.9770812988"},{r:"0",x:"119.5000000000",y:"119.5000000000",scX:"1.0000000000",scY:"1.0000000000"}]}},logo_anim={name:"logo_anim",skew:"true",l:{flashName:"Layer1",name:"logo/logo-logo-logo-logo-Animation 2",d:{anchorX:"0.5",anchorY:"0.5",name:"logo-logo_animlogo-xlogo-Animation 10_t.png"},f:[{r:"0",x:"217.0000000000",y:"102.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.0113677978515625",x:"217.0000000000",y:"102.5000000000",scX:"0.9994812012",scY:"0.9994812012"},{r:"-0.0236053466796875",x:"217.0000000000",y:"102.5000000000",scX:"0.9989471436",scY:"0.9989471436"},{r:"-0.03497314453125",x:"217.0000000000",y:"102.5000000000",scX:"0.9984130859",scY:"0.9984130859"},{r:"-0.0463409423828125",x:"217.0000000000",y:"102.5000000000",scX:"0.9978942871",scY:"0.9978942871"},{r:"-0.0585784912109375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9973754883",scY:"0.9973754883"},{r:"-0.2570343017578125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9968719482",scY:"0.9968719482"},{r:"-0.2692718505859375",x:"217.0000000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9963531494",scY:"0.9963531494"},{r:"-0.2806396484375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9958190918",scY:"0.9958190918"},{r:"-0.2920074462890625",x:"216.9500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9953002930",scY:"0.9953002930"},{r:"-0.3042449951171875",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9947814941",scY:"0.9947814941"},{r:"-0.502685546875",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9942474365",scY:"0.9942474365"},{r:"-0.514923095703125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9937286377",scY:"0.9937286377"},{r:"-0.5262908935546875",x:"216.9500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9931945801",scY:"0.9931945801"},{r:"-0.5385284423828125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9926757813",scY:"0.9926757813"},{r:"-0.549896240234375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9921569824",scY:"0.9921569824"},{r:"-0.5612640380859375",x:"216.9500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9916381836",scY:"0.9916381836"},{r:"-0.76055908203125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9910888672",scY:"0.9910888672"},{r:"-0.7719268798828125",x:"217.0500000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9905548096",scY:"0.9905548096"},{r:"-0.783294677734375",x:"217.0000000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9900512695",scY:"0.9900512695"},{r:"-0.7964019775390625",x:"217.0000000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9895172119",scY:"0.9895172119"},{r:"-0.8069000244140625",x:"217.0500000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9889984131",scY:"0.9889984131"},{r:"-1.0061798095703125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9884643555",scY:"0.9884643555"},{r:"-1.0175323486328125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9879302979",scY:"0.9879302979"},{r:"-1.028900146484375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9874114990",scY:"0.9874114990"},{r:"-1.0411376953125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9868927002",scY:"0.9868927002"},{r:"-1.053375244140625",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9863891602",scY:"0.9863891602"},{r:"-1.25262451171875",x:"216.9500000000",y:"102.4500000000",skX:"0",skY:"0",scX:"0.9858551025",scY:"0.9858551025"},{r:"-1.26397705078125",x:"216.9500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9853210449",scY:"0.9853210449"},{r:"-1.2753448486328125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9848175049",scY:"0.9848175049"},{r:"-1.3968048095703125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9843444824",scY:"0.9843444824"},{r:"-1.276214599609375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9848327637",scY:"0.9848327637"},{r:"-1.26397705078125",x:"216.9500000000",y:"102.5500000000",skX:"0",skY:"0",scX:"0.9853668213",scY:"0.9853668213"},{r:"-1.2517547607421875",x:"217.0000000000",y:"102.5500000000",skX:"0",skY:"0",scX:"0.9859008789",scY:"0.9859008789"},{r:"-1.050750732421875",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9864501953",scY:"0.9864501953"},{r:"-1.0393829345703125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9869842529",scY:"0.9869842529"},{r:"-1.0280303955078125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9875183105",scY:"0.9875183105"},{r:"-1.0149078369140625",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9880676270",scY:"0.9880676270"},{r:"-1.002685546875",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9885864258",scY:"0.9885864258"},{r:"-0.8042755126953125",x:"217.0500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9891357422",scY:"0.9891357422"},{r:"-0.7911529541015625",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9897003174",scY:"0.9897003174"},{r:"-0.7789154052734375",x:"217.0500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9902343750",scY:"0.9902343750"},{r:"-0.7684326171875",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9907836914",scY:"0.9907836914"},{r:"-0.756195068359375",x:"217.0500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9913177490",scY:"0.9913177490"},{r:"-0.5560150146484375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9918670654",scY:"0.9918670654"},{r:"-0.544647216796875",x:"216.9500000000",y:"102.5500000000",skX:"0",skY:"0",scX:"0.9924316406",scY:"0.9924316406"},{r:"-0.5315399169921875",x:"217.0500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9929656982",scY:"0.9929656982"},{r:"-0.5193023681640625",x:"216.9500000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9934844971",scY:"0.9934844971"},{r:"-0.5070648193359375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9940490723",scY:"0.9940490723"},{r:"-0.3086090087890625",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9945831299",scY:"0.9945831299"},{r:"-0.2963714599609375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9951477051",scY:"0.9951477051"},{r:"-0.285003662109375",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9956817627",scY:"0.9956817627"},{r:"-0.27276611328125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9962158203",scY:"0.9962158203"},{r:"-0.260528564453125",x:"217.0000000000",y:"102.5000000000",skX:"0",skY:"0",scX:"0.9967651367",scY:"0.9967651367"},{r:"-0.0603179931640625",x:"217.0500000000",y:"102.5500000000",skX:"0",skY:"0",scX:"0.9972839355",scY:"0.9972839355"},{r:"-0.0489654541015625",x:"216.9500000000",y:"102.5500000000",scX:"0.9978027344",scY:"0.9978027344"},{r:"-0.036712646484375",x:"217.0500000000",y:"102.5500000000",scX:"0.9983520508",scY:"0.9983520508"},{r:"-0.02447509765625",x:"217.0000000000",y:"102.5000000000",scX:"0.9989013672",scY:"0.9989013672"},{r:"-0.0131072998046875",x:"217.0000000000",y:"102.5000000000",scX:"0.9994506836",scY:"0.9994506836"},{r:"0",x:"217.0000000000",y:"102.5000000000",scX:"1.0000000000",scY:"1.0000000000"}]}},char_anim={name:"character",l:[{flashName:"Layer6",name:"Animation 40",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 400_t.png"},f:[{r:"0.0000000000",x:"70.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0061187744",x:"70.4000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0118026733",x:"70.4500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0179214478",x:"70.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.0236053467",x:"70.6000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.0297241211",x:"70.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1293869019",x:"70.8000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1350708008",x:"70.8500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1411895752",x:"70.9500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001220703"},{r:"0.1473159790",x:"71.0000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001373291"},{r:"0.1529922485",x:"71.1000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.2526550293",x:"71.2000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.2587738037",x:"71.2500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001678467"},{r:"0.2644577026",x:"71.3500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2705764771",x:"71.4000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2766952515",x:"71.5000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.3763504028",x:"71.5500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001983643"},{r:"0.3820343018",x:"71.6500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.3881530762",x:"71.7500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.3938293457",x:"71.8000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.3999481201",x:"71.9500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002593994"},{r:"0.4056320190",x:"71.9500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002746582"},{r:"0.5052719116",x:"72.0500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.5113906860",x:"72.1500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.5175094604",x:"72.2000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003204346"},{r:"0.5231857300",x:"72.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003509521"},{r:"0.5293045044",x:"72.3500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003509521"},{r:"0.6293716431",x:"72.4500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003662109"},{r:"0.6350479126",x:"72.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6411666870",x:"72.6000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6468429565",x:"72.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6529617310",x:"72.7500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004425049"},{r:"0.7525711060",x:"72.8500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.7586822510",x:"72.9500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.7643661499",x:"73.0000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004577637"},{r:"0.7704772949",x:"73.1000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.7761535645",x:"73.1500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004882813"},{r:"0.8757400513",x:"73.2500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004577637"},{r:"0.8818511963",x:"73.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.8875274658",x:"73.4000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.8936462402",x:"73.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005035400"},{r:"0.8993225098",x:"73.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.9054336548",x:"73.6500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"1.0054244995",x:"73.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005645752"},{r:"1.0442810059",x:"73.8000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0006866455"},{r:"1.0054244995",x:"73.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005645752"},{r:"0.9058761597",x:"73.6500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8997573853",x:"73.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8940811157",x:"73.5000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0005035400"},{r:"0.8884048462",x:"73.4000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.8827285767",x:"73.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.8766098022",x:"73.2500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.7774658203",x:"73.2000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004882813"},{r:"0.7713546753",x:"73.1000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.7656707764",x:"73.0000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004425049"},{r:"0.7599945068",x:"72.9500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.7543182373",x:"72.8000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.6547088623",x:"72.7500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0004425049"},{r:"0.6490325928",x:"72.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6429138184",x:"72.6500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6372299194",x:"72.5000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.6315536499",x:"72.5000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003662109"},{r:"0.6258773804",x:"72.3500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003509521"},{r:"0.5258102417",x:"72.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003509521"},{r:"0.5201263428",x:"72.2500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0003204346"},{r:"0.5140151978",x:"72.1500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.5083312988",x:"72.0500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.5026473999",x:"72.0000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0002746582"},{r:"0.4030075073",x:"71.9500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002746582"},{r:"0.3973312378",x:"71.8500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002593994"},{r:"0.3916473389",x:"71.8000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002593994"},{r:"0.3855285645",x:"71.7000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.3798446655",x:"71.5500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.2801895142",x:"71.5000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.2745132446",x:"71.4500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.2688293457",x:"71.4000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2627105713",x:"71.3000000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2570266724",x:"71.2500000000",y:"144.9500000000",scX:"1.0000000000",scY:"1.0001678467"},{r:"0.2513427734",x:"71.1000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.1516799927",x:"71.0500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.1460037231",x:"71.0000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001373291"},{r:"0.1403198242",x:"70.9000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0001220703"},{r:"0.1342010498",x:"70.8500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1285171509",x:"70.7500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.0288543701",x:"70.7000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.0231704712",x:"70.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.0174865723",x:"70.5500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.0118026733",x:"70.4500000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0056838989",x:"70.4000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"70.3000000000",y:"145.0000000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"Layer7",name:"Animation 38",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 380_t.png"},f:[{r:"0.0000000000",x:"-21.0000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0065536499",x:"-20.9000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0131149292",x:"-20.8000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0196685791",x:"-20.7500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.0262298584",x:"-20.6500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1263275146",x:"-20.5500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1328887939",x:"-20.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1394424438",x:"-20.3500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0001373291"},{r:"0.1460037231",x:"-20.2500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.1525573730",x:"-20.2000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.2530899048",x:"-20.1000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001678467"},{r:"0.2592086792",x:"-20.0000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2657699585",x:"-19.9000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.2723236084",x:"-19.8000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.2788848877",x:"-19.7500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.3794097900",x:"-19.6500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.3859634399",x:"-19.5500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002593994"},{r:"0.3925170898",x:"-19.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.3990783691",x:"-19.3500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.4056320190",x:"-19.2500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.5057067871",x:"-19.2000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003356934"},{r:"0.5122604370",x:"-19.1000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003356934"},{r:"0.5188217163",x:"-19.0000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003509521"},{r:"0.5258102417",x:"-18.9000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003662109"},{r:"0.6258773804",x:"-18.8000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0003814697"},{r:"0.6324310303",x:"-18.7500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004119873"},{r:"0.6389846802",x:"-18.6500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004425049"},{r:"0.6455383301",x:"-18.5500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004425049"},{r:"0.6520919800",x:"-18.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004577637"},{r:"0.7521286011",x:"-18.3500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.7586822510",x:"-18.2500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004882813"},{r:"0.7652359009",x:"-18.2000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005035400"},{r:"0.7717895508",x:"-18.1000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005035400"},{r:"0.7783432007",x:"-18.0000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0005493164"},{r:"0.8787994385",x:"-17.9000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8849105835",x:"-17.8000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8914642334",x:"-17.7500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8980102539",x:"-17.6500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005798340"},{r:"0.9045639038",x:"-17.5500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0005950928"},{r:"1.0054244995",x:"-17.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006256104"},{r:"1.0119781494",x:"-17.3500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006408691"},{r:"1.0185241699",x:"-17.2500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006561279"},{r:"1.0246353149",x:"-17.2000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006866455"},{r:"1.0311889648",x:"-17.1000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0007019043"},{r:"1.1507873535",x:"-17.0000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0008239746"},{r:"1.1250381470",x:"-17.1000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0007019043"},{r:"1.0250778198",x:"-17.2500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006866455"},{r:"1.0189590454",x:"-17.2500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006561279"},{r:"1.0124130249",x:"-17.3500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006408691"},{r:"1.0058670044",x:"-17.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0006256104"},{r:"0.9054336548",x:"-17.5500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0005950928"},{r:"0.8993225098",x:"-17.6000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005950928"},{r:"0.8927688599",x:"-17.7000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8862228394",x:"-17.8500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.8801040649",x:"-17.9000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.7800903320",x:"-18.0500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0005493164"},{r:"0.7735366821",x:"-18.0500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0005340576"},{r:"0.7674179077",x:"-18.1500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0005035400"},{r:"0.7608642578",x:"-18.2500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004882813"},{r:"0.7543182373",x:"-18.4000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.6542739868",x:"-18.4000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004730225"},{r:"0.6481552124",x:"-18.5500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004577637"},{r:"0.6416015625",x:"-18.6500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.6350479126",x:"-18.7000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0004272461"},{r:"0.6289291382",x:"-18.8000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0003814697"},{r:"0.5288696289",x:"-18.8500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0003967285"},{r:"0.5223159790",x:"-18.9500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003662109"},{r:"0.5157623291",x:"-19.0500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003356934"},{r:"0.5092086792",x:"-19.2000000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003204346"},{r:"0.5026473999",x:"-19.2500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0003051758"},{r:"0.4025726318",x:"-19.3500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.3964538574",x:"-19.4500000000",y:"175.0500000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0.3899002075",x:"-19.5000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002593994"},{r:"0.3833389282",x:"-19.6000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002441406"},{r:"0.3772201538",x:"-19.6500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0.2771301270",x:"-19.7500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.2705764771",x:"-19.8500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0002288818"},{r:"0.2640228271",x:"-20.0000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2579040527",x:"-20.0000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0.2513427734",x:"-20.1000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001678467"},{r:"0.1512451172",x:"-20.2500000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.1446914673",x:"-20.3000000000",y:"174.9500000000",scX:"1.0000000000",scY:"1.0001525879"},{r:"0.1385726929",x:"-20.4000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0001220703"},{r:"0.1320114136",x:"-20.4500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.1258926392",x:"-20.6000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000915527"},{r:"0.0253524780",x:"-20.6500000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.0192337036",x:"-20.8000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.0126800537",x:"-20.8000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0065536499",x:"-20.9000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"-21.0000000000",y:"175.0000000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"HAND3",name:"Animation 36",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 360_t.png"},f:[{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"123.9500000000",y:"-50.9500000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"HAND2",name:"Animation 34",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 340_t.png"},f:[{r:"0.0000000000",x:"163.3000000000",y:"-111.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0270996094",x:"163.4000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.0533294678",x:"163.5500000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.2675170898",x:"163.6500000000",y:"-111.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.2946319580",x:"163.7500000000",y:"-111.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.5088043213",x:"163.9000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.5350341797",x:"164.0000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.5621337891",x:"164.1000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.7763061523",x:"164.2500000000",y:"-111.9500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"0.8033905029",x:"164.3500000000",y:"-111.9500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"1.0175323486",x:"164.4500000000",y:"-111.9500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"1.0437622070",x:"164.6000000000",y:"-111.9500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"1.2578582764",x:"164.7000000000",y:"-111.9500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"1.2849578857",x:"164.8000000000",y:"-111.9500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"1.3120422363",x:"164.9000000000",y:"-111.9500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"1.5261077881",x:"165.0500000000",y:"-111.9500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.5531921387",x:"165.1500000000",y:"-111.9500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.7671966553",x:"165.2500000000",y:"-111.9500000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"1.7934112549",x:"165.4000000000",y:"-111.9500000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"2.0082397461",x:"165.5000000000",y:"-111.9500000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"2.0353088379",x:"165.6000000000",y:"-111.9500000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"2.0614929199",x:"165.7500000000",y:"-111.9500000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"2.2753906250",x:"165.8500000000",y:"-112.0000000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"2.3024444580",x:"165.9500000000",y:"-112.0000000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"2.5171356201",x:"166.1000000000",y:"-112.0000000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.5433044434",x:"166.2000000000",y:"-112.0500000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.7579193115",x:"166.3000000000",y:"-112.0000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"2.7840881348",x:"166.4500000000",y:"-112.0000000000",scX:"0.9998626709",scY:"0.9998626709"},{r:"2.8111267090",x:"166.5500000000",y:"-112.0000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.0256347656",x:"166.6500000000",y:"-112.0500000000",scX:"0.9998626709",scY:"0.9998626709"},{r:"3.0526580811",x:"166.8000000000",y:"-112.0000000000",scX:"0.9998626709",scY:"0.9998626709"},{r:"3.2670745850",x:"166.9000000000",y:"-112.0000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.2940979004",x:"167.0000000000",y:"-112.0000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.5075378418",x:"167.1500000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.5345306396",x:"167.2500000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.5615234375",x:"167.3500000000",y:"-112.0000000000",scX:"0.9998016357",scY:"0.9998016357"},{r:"3.7757110596",x:"167.4500000000",y:"-112.0000000000",scX:"0.9998016357",scY:"0.9998016357"},{r:"3.8027038574",x:"167.6000000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"4.0167694092",x:"167.7000000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"4.0437316895",x:"167.8000000000",y:"-112.0000000000",scX:"0.9998016357",scY:"0.9998016357"},{r:"4.2585449219",x:"167.9500000000",y:"-112.0000000000",scX:"0.9997711182",scY:"0.9997711182"},{r:"4.2846374512",x:"168.0500000000",y:"-112.0000000000",scX:"0.9997558594",scY:"0.9997558594"},{r:"4.3115844727",x:"168.1500000000",y:"-112.0000000000",scX:"0.9997711182",scY:"0.9997711182"},{r:"4.5253753662",x:"168.3000000000",y:"-112.0000000000",scX:"0.9997406006",scY:"0.9997406006"},{r:"4.7051696777",x:"168.4000000000",y:"-112.0000000000",scX:"1.0000152588",scY:"1.0000152588"},{r:"4.5271148682",x:"168.3000000000",y:"-111.9500000000",scX:"0.9997406006",scY:"0.9997406006"},{r:"4.3133239746",x:"168.1500000000",y:"-112.0500000000",scX:"0.9997711182",scY:"0.9997711182"},{r:"4.2872467041",x:"168.1000000000",y:"-112.0500000000",scX:"0.9997711182",scY:"0.9997711182"},{r:"4.2611541748",x:"168.0000000000",y:"-112.0500000000",scX:"0.9997863770",scY:"0.9997863770"},{r:"4.0472259521",x:"167.8500000000",y:"-112.0500000000",scX:"0.9998016357",scY:"0.9998016357"},{r:"4.0211181641",x:"167.7000000000",y:"-112.0000000000",scX:"0.9998016357",scY:"0.9998016357"},{r:"3.8061828613",x:"167.6500000000",y:"-112.0500000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.7800750732",x:"167.5500000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.7548217773",x:"167.4500000000",y:"-112.0500000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.5397491455",x:"167.2500000000",y:"-112.0500000000",scX:"0.9997863770",scY:"0.9997863770"},{r:"3.5153656006",x:"167.1500000000",y:"-112.0000000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.3001861572",x:"167.0500000000",y:"-112.1000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.2749176025",x:"166.9500000000",y:"-112.0500000000",scX:"0.9998168945",scY:"0.9998168945"},{r:"3.0613861084",x:"166.8000000000",y:"-112.0500000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.0343475342",x:"166.7000000000",y:"-112.0500000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"3.0081939697",x:"166.6000000000",y:"-112.1000000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"2.7936859131",x:"166.4500000000",y:"-112.0000000000",scX:"0.9998321533",scY:"0.9998321533"},{r:"2.7675170898",x:"166.3500000000",y:"-112.0000000000",scX:"0.9998626709",scY:"0.9998626709"},{r:"2.5537872314",x:"166.2500000000",y:"-112.0000000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.5276031494",x:"166.1500000000",y:"-112.0500000000",scX:"0.9998474121",scY:"0.9998474121"},{r:"2.5014343262",x:"166.0000000000",y:"-112.0500000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.2884826660",x:"165.9500000000",y:"-112.0000000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"2.2614135742",x:"165.8000000000",y:"-112.0000000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.0492706299",x:"165.6500000000",y:"-111.9500000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"2.0222015381",x:"165.5000000000",y:"-112.0000000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"1.8091278076",x:"165.4500000000",y:"-112.0000000000",scX:"0.9998779297",scY:"0.9998779297"},{r:"1.7820434570",x:"165.3500000000",y:"-112.0000000000",scX:"0.9998626709",scY:"0.9998626709"},{r:"1.7558441162",x:"165.2500000000",y:"-111.9500000000",scX:"0.9998931885",scY:"0.9998931885"},{r:"1.5427093506",x:"165.0500000000",y:"-111.9500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.5164947510",x:"164.9500000000",y:"-111.9500000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"1.3041839600",x:"164.9000000000",y:"-112.0000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.2770843506",x:"164.7500000000",y:"-112.0000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"1.2508697510",x:"164.6500000000",y:"-112.0000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.0376434326",x:"164.6000000000",y:"-111.9500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"1.0114135742",x:"164.5000000000",y:"-112.0000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"0.7972717285",x:"164.2500000000",y:"-112.0000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"0.7719268799",x:"164.1500000000",y:"-112.0000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"0.5577697754",x:"164.1000000000",y:"-112.0000000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"0.5315399170",x:"164.0000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.5044403076",x:"163.8500000000",y:"-112.0000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.2920074463",x:"163.7500000000",y:"-111.9500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.2657775879",x:"163.6500000000",y:"-112.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0524597168",x:"163.5500000000",y:"-112.0000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.0262298584",x:"163.4000000000",y:"-111.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.0000000000",x:"163.3000000000",y:"-111.9500000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"body",name:"Animation 32",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 320_t.png"},f:[{r:"0.0000000000",x:"0.0000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0026245117",x:"-0.0500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0048065186",x:"-0.1000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0074310303",x:"-0.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"0.9999847412"},{r:"0.0100555420",x:"-0.2000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0126800537",x:"-0.2000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0148620605",x:"-0.2500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0174865723",x:"-0.3000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0201110840",x:"-0.3500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0227279663",x:"-0.4000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0249176025",x:"-0.4500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0275421143",x:"-0.5000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0301589966",x:"-0.5500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.1263275146",x:"-0.6000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1289520264",x:"-0.6000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1315765381",x:"-0.6500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1337585449",x:"-0.7000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1363830566",x:"-0.7500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1390075684",x:"-0.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1416320801",x:"-0.8500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1438140869",x:"-0.9000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1464385986",x:"-0.9500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1490631104",x:"-0.9500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1516799927",x:"-1.0000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1538696289",x:"-1.0500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2504730225",x:"-1.1000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2526550293",x:"-1.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2552795410",x:"-1.2000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2579040527",x:"-1.2500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2600860596",x:"-1.3000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2627105713",x:"-1.3500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2653350830",x:"-1.3500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2679519653",x:"-1.4000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2701416016",x:"-1.4500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2727584839",x:"-1.5000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2753829956",x:"-1.5500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2780075073",x:"-1.6000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2801895142",x:"-1.6500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000762939"},{r:"0.3767852783",x:"-1.7000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.3789749146",x:"-1.7500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.3815917969",x:"-1.7500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.3842163086",x:"-1.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.3868408203",x:"-1.8500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.3890228271",x:"-1.9000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.4419021606",x:"-1.9500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0001068115"},{r:"0.3890228271",x:"-1.9000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.3868408203",x:"-1.8500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.3842163086",x:"-1.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.3820343018",x:"-1.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.3794097900",x:"-1.7500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.3767852783",x:"-1.7000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2806320190",x:"-1.6500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000762939"},{r:"0.2784423828",x:"-1.6000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2758255005",x:"-1.5500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2732009888",x:"-1.5000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2710113525",x:"-1.4500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2683944702",x:"-1.4500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2662048340",x:"-1.4000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2635803223",x:"-1.3500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2609634399",x:"-1.3000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2587738037",x:"-1.2500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.2561492920",x:"-1.2000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2539672852",x:"-1.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.2513427734",x:"-1.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000457764"},{r:"0.1551818848",x:"-1.1000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1525573730",x:"-1.0500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1503753662",x:"-1.0000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000610352"},{r:"0.1477508545",x:"-0.9500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1451263428",x:"-0.9000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1429443359",x:"-0.8500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1403198242",x:"-0.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1381301880",x:"-0.8000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1355133057",x:"-0.7500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1328887939",x:"-0.7000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1306991577",x:"-0.6500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1280822754",x:"-0.6000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.1254577637",x:"-0.5500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0.0292892456",x:"-0.5000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0270996094",x:"-0.5000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0244827271",x:"-0.4500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0222930908",x:"-0.4000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0196685791",x:"-0.3500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0170516968",x:"-0.3000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0148620605",x:"-0.2500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0122375488",x:"-0.2000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0096206665",x:"-0.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0074310303",x:"-0.1500000000",y:"0.0000000000",scX:"1.0000000000",scY:"0.9999847412"},{r:"0.0048065186",x:"-0.1000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0026245117",x:"-0.0500000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0.0000000000",x:"0.0000000000",y:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"hand",name:"Animation 30",d:{anchorX:"0.3821917808219178",anchorY:"0.5",name:"characterAnimation 300_t.png"},f:[{r:"0.0000000000",x:"-100.6500000000",y:"24.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.0183563232",x:"-100.5500000000",y:"23.9000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0340957642",x:"-100.4500000000",y:"23.8500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0507049561",x:"-100.3500000000",y:"23.7500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2552795410",x:"-100.2500000000",y:"23.7000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2718963623",x:"-100.2000000000",y:"23.6000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2889404297",x:"-100.1000000000",y:"23.5000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.3995285034",x:"-100.0000000000",y:"23.4500000000",scX:"0.9999847412",scY:"1.0000000000"},{r:"-0.5105590820",x:"-99.9000000000",y:"23.3500000000",scX:"0.9999847412",scY:"1.0000000000"},{r:"-0.5276031494",x:"-99.8000000000",y:"23.2500000000",scX:"0.9999847412",scY:"1.0000000000"},{r:"-0.5446472168",x:"-99.7000000000",y:"23.2000000000",scX:"0.9999694824",scY:"1.0000000000"},{r:"-0.6552276611",x:"-99.6000000000",y:"23.1000000000",scX:"0.9999694824",scY:"1.0000000000"},{r:"-0.7658081055",x:"-99.5000000000",y:"23.0500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.7824172974",x:"-99.4000000000",y:"22.9500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.8934249878",x:"-99.3500000000",y:"22.8500000000",scX:"0.9999542236",scY:"0.9999694824"},{r:"-0.9100341797",x:"-99.2500000000",y:"22.8000000000",scX:"0.9999542236",scY:"0.9999694824"},{r:"-1.0205917358",x:"-99.1500000000",y:"22.7000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0376358032",x:"-99.0500000000",y:"22.6500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.1481857300",x:"-98.9500000000",y:"22.5500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.1652297974",x:"-98.8500000000",y:"22.4500000000",scX:"0.9999542236",scY:"0.9999694824"},{r:"-1.2762145996",x:"-98.7500000000",y:"22.4000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.3871765137",x:"-98.6500000000",y:"22.3000000000",scX:"0.9999389648",scY:"0.9999542236"},{r:"-1.4042205811",x:"-98.5500000000",y:"22.2500000000",scX:"0.9999389648",scY:"0.9999694824"},{r:"-1.4203872681",x:"-98.5000000000",y:"22.1500000000",scX:"0.9999389648",scY:"0.9999694824"},{r:"-1.5317840576",x:"-98.4000000000",y:"22.0500000000",scX:"0.9999237061",scY:"0.9999542236"},{r:"-1.6422805786",x:"-98.3000000000",y:"22.0000000000",scX:"0.9999084473",scY:"0.9999542236"},{r:"-1.6593170166",x:"-98.2000000000",y:"21.9000000000",scX:"0.9998931885",scY:"0.9999542236"},{r:"-1.6763534546",x:"-98.1000000000",y:"21.8000000000",scX:"0.9998931885",scY:"0.9999542236"},{r:"-1.8807296753",x:"-98.0000000000",y:"21.7500000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"-1.8977661133",x:"-97.9500000000",y:"21.6500000000",scX:"0.9999084473",scY:"0.9999237061"},{r:"-1.9143524170",x:"-97.8000000000",y:"21.6000000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"-2.0252304077",x:"-97.7500000000",y:"21.5000000000",scX:"0.9999084473",scY:"0.9999237061"},{r:"-2.1356964111",x:"-97.6500000000",y:"21.4000000000",scX:"0.9999084473",scY:"0.9999237061"},{r:"-2.1527175903",x:"-97.5500000000",y:"21.3500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-2.1697540283",x:"-97.4500000000",y:"21.2500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-2.2805938721",x:"-97.3500000000",y:"21.2000000000",scX:"0.9998931885",scY:"0.9999237061"},{r:"-2.3910217285",x:"-97.2500000000",y:"21.1000000000",scX:"0.9998931885",scY:"0.9999084473"},{r:"-2.4076004028",x:"-97.1500000000",y:"21.0000000000",scX:"0.9998779297",scY:"0.9999389648"},{r:"-2.5184020996",x:"-97.0500000000",y:"20.9500000000",scX:"0.9998779297",scY:"0.9999389648"},{r:"-2.5354080200",x:"-96.9500000000",y:"20.8500000000",scX:"0.9998779297",scY:"0.9999237061"},{r:"-2.6466827393",x:"-96.9000000000",y:"20.7500000000",scX:"0.9998779297",scY:"0.9999084473"},{r:"-2.6632537842",x:"-96.8000000000",y:"20.7000000000",scX:"0.9998626709",scY:"0.9999084473"},{r:"-2.7740097046",x:"-96.7000000000",y:"20.6000000000",scX:"0.9998779297",scY:"0.9999084473"},{r:"-2.7905807495",x:"-96.6000000000",y:"20.5500000000",scX:"0.9998779297",scY:"0.9998931885"},{r:"-2.9806900024",x:"-96.5000000000",y:"20.4500000000",scX:"1.0000305176",scY:"1.0000457764"},{r:"-2.7923202515",x:"-96.6000000000",y:"20.5500000000",scX:"0.9998626709",scY:"0.9998931885"},{r:"-2.7753143311",x:"-96.7000000000",y:"20.6500000000",scX:"0.9998626709",scY:"0.9998931885"},{r:"-2.6654434204",x:"-96.8000000000",y:"20.7500000000",scX:"0.9998626709",scY:"0.9998931885"},{r:"-2.6488647461",x:"-96.8500000000",y:"20.7500000000",scX:"0.9998626709",scY:"0.9998931885"},{r:"-2.5375976563",x:"-96.9500000000",y:"20.9000000000",scX:"0.9998474121",scY:"0.9999084473"},{r:"-2.5214614868",x:"-97.0500000000",y:"20.9000000000",scX:"0.9998474121",scY:"0.9999237061"},{r:"-2.4119644165",x:"-97.1500000000",y:"21.0000000000",scX:"0.9998779297",scY:"0.9999389648"},{r:"-2.3953857422",x:"-97.2500000000",y:"21.1500000000",scX:"0.9998779297",scY:"0.9999084473"},{r:"-2.2849578857",x:"-97.3500000000",y:"21.2000000000",scX:"0.9998779297",scY:"0.9999237061"},{r:"-2.1745529175",x:"-97.4000000000",y:"21.3000000000",scX:"0.9999084473",scY:"0.9999237061"},{r:"-2.1584014893",x:"-97.5000000000",y:"21.3500000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"-2.1418151855",x:"-97.6000000000",y:"21.4500000000",scX:"0.9998779297",scY:"0.9999084473"},{r:"-2.0309066772",x:"-97.6500000000",y:"21.5000000000",scX:"0.9998779297",scY:"0.9998931885"},{r:"-1.9204711914",x:"-97.7500000000",y:"21.5500000000",scX:"0.9998931885",scY:"0.9999084473"},{r:"-1.9038696289",x:"-97.8500000000",y:"21.7000000000",scX:"0.9998931885",scY:"0.9999084473"},{r:"-1.8864135742",x:"-97.9000000000",y:"21.7500000000",scX:"0.9998931885",scY:"0.9999084473"},{r:"-1.6837768555",x:"-98.0500000000",y:"21.8000000000",scX:"0.9998779297",scY:"0.9999389648"},{r:"-1.6667404175",x:"-98.1500000000",y:"21.9000000000",scX:"0.9998931885",scY:"0.9999389648"},{r:"-1.6505889893",x:"-98.2500000000",y:"22.0000000000",scX:"0.9998931885",scY:"0.9999389648"},{r:"-1.6344223022",x:"-98.3500000000",y:"22.1000000000",scX:"0.9998931885",scY:"0.9999389648"},{r:"-1.4295501709",x:"-98.4000000000",y:"22.1500000000",scX:"0.9999237061",scY:"0.9999847412"},{r:"-1.4129562378",x:"-98.5500000000",y:"22.2500000000",scX:"0.9999237061",scY:"0.9999694824"},{r:"-1.3963546753",x:"-98.6000000000",y:"22.2500000000",scX:"0.9999237061",scY:"0.9999694824"},{r:"-1.2858276367",x:"-98.7500000000",y:"22.4000000000",scX:"0.9999542236",scY:"0.9999389648"},{r:"-1.1748428345",x:"-98.8000000000",y:"22.4500000000",scX:"0.9999389648",scY:"0.9999542236"},{r:"-1.1586685181",x:"-98.8500000000",y:"22.5500000000",scX:"0.9999542236",scY:"0.9999389648"},{r:"-1.1420669556",x:"-98.9500000000",y:"22.6500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0323944092",x:"-99.0500000000",y:"22.7000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.9226989746",x:"-99.1000000000",y:"22.8000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.9060974121",x:"-99.2000000000",y:"22.8500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7950897217",x:"-99.3000000000",y:"22.9500000000",scX:"0.9999694824",scY:"0.9999542236"},{r:"-0.7784805298",x:"-99.4000000000",y:"23.0500000000",scX:"0.9999694824",scY:"0.9999542236"},{r:"-0.6679000854",x:"-99.5500000000",y:"23.1500000000",scX:"0.9999694824",scY:"0.9999847412"},{r:"-0.6512985229",x:"-99.6500000000",y:"23.2000000000",scX:"0.9999542236",scY:"0.9999847412"},{r:"-0.5415878296",x:"-99.7500000000",y:"23.2500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5249786377",x:"-99.8000000000",y:"23.3500000000",scX:"0.9999847412",scY:"1.0000000000"},{r:"-0.4139556885",x:"-99.9000000000",y:"23.4000000000",scX:"0.9999694824",scY:"1.0000000000"},{r:"-0.3038101196",x:"-100.0000000000",y:"23.4500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2872009277",x:"-100.0500000000",y:"23.5500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2710189819",x:"-100.1500000000",y:"23.6500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.1604309082",x:"-100.2500000000",y:"23.7000000000",scX:"0.9999847412",scY:"0.9999694824"},{r:"-0.0507049561",x:"-100.3000000000",y:"23.7500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.0340957642",x:"-100.4500000000",y:"23.9000000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.0183563232",x:"-100.5500000000",y:"23.9000000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"0.0000000000",x:"-100.6500000000",y:"24.0000000000",scX:"1.0000000000",scY:"1.0000000000"}]},{flashName:"head",name:"Animation 18",d:{anchorX:"0.5",anchorY:"0.5",name:"characterAnimation 180_t.png"},f:[{r:"0.0000000000",x:"-7.6500000000",y:"-205.8500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.0096130371",x:"-7.7500000000",y:"-205.9000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.0201110840",x:"-7.8500000000",y:"-205.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0297241211",x:"-7.9000000000",y:"-206.0000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0393371582",x:"-8.0000000000",y:"-206.0500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0498352051",x:"-8.1000000000",y:"-206.1000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0594482422",x:"-8.2000000000",y:"-206.1000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2570343018",x:"-8.3000000000",y:"-206.1500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2666473389",x:"-8.4000000000",y:"-206.2000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2771453857",x:"-8.4500000000",y:"-206.2500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2867584229",x:"-8.5500000000",y:"-206.3000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2963714600",x:"-8.6500000000",y:"-206.3500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.3068695068",x:"-8.7500000000",y:"-206.4000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.5035705566",x:"-8.8500000000",y:"-206.4500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5140533447",x:"-8.9000000000",y:"-206.5000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5236663818",x:"-9.0000000000",y:"-206.5500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5332794189",x:"-9.1000000000",y:"-206.6000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5437774658",x:"-9.2000000000",y:"-206.6000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5533905029",x:"-9.3000000000",y:"-206.6500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.7509460449",x:"-9.4000000000",y:"-206.7000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7605590820",x:"-9.4500000000",y:"-206.7500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7701873779",x:"-9.5500000000",y:"-206.8000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7806701660",x:"-9.6500000000",y:"-206.8500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7902832031",x:"-9.7500000000",y:"-206.9000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7998962402",x:"-9.8500000000",y:"-206.9500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.8103942871",x:"-9.9000000000",y:"-207.0000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0079193115",x:"-10.0000000000",y:"-207.0500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0175323486",x:"-10.1000000000",y:"-207.1000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0271453857",x:"-10.2000000000",y:"-207.1000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0376434326",x:"-10.3000000000",y:"-207.1500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0472564697",x:"-10.4000000000",y:"-207.2000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0568695068",x:"-10.4500000000",y:"-207.2500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.2543640137",x:"-10.5500000000",y:"-207.3000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2639770508",x:"-10.6500000000",y:"-207.3500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2744598389",x:"-10.7500000000",y:"-207.4000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.2840728760",x:"-10.8500000000",y:"-207.4500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2936859131",x:"-10.9000000000",y:"-207.5000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.3050537109",x:"-11.0000000000",y:"-207.5500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.5016479492",x:"-11.1000000000",y:"-207.6000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5121307373",x:"-11.2000000000",y:"-207.6000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5217285156",x:"-11.3000000000",y:"-207.6500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5313415527",x:"-11.4000000000",y:"-207.7000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5418243408",x:"-11.4500000000",y:"-207.7500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5514373779",x:"-11.5500000000",y:"-207.8000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.7444915771",x:"-11.6500000000",y:"-207.8500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-1.5523071289",x:"-11.5000000000",y:"-207.8500000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5427093506",x:"-11.4000000000",y:"-207.8000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5330963135",x:"-11.4000000000",y:"-207.7000000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"-1.5234832764",x:"-11.2500000000",y:"-207.7000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5138702393",x:"-11.1500000000",y:"-207.7000000000",scX:"0.9999237061",scY:"0.9999237061"},{r:"-1.5042572021",x:"-11.1000000000",y:"-207.6000000000",scX:"0.9999084473",scY:"0.9999084473"},{r:"-1.3067932129",x:"-11.0000000000",y:"-207.5000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2963104248",x:"-10.9500000000",y:"-207.4500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2866973877",x:"-10.8500000000",y:"-207.4000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2770843506",x:"-10.7000000000",y:"-207.3500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2674713135",x:"-10.6000000000",y:"-207.3000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.2578582764",x:"-10.6000000000",y:"-207.2500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0603637695",x:"-10.4500000000",y:"-207.2500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0498809814",x:"-10.4000000000",y:"-207.2500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0402526855",x:"-10.2500000000",y:"-207.2000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0306396484",x:"-10.2000000000",y:"-207.1500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0210266113",x:"-10.1500000000",y:"-207.1000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-1.0114135742",x:"-10.0500000000",y:"-207.0500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-1.0018005371",x:"-9.9000000000",y:"-207.0000000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-0.8060150146",x:"-9.8500000000",y:"-207.0000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7955322266",x:"-9.7500000000",y:"-206.9000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7867889404",x:"-9.6500000000",y:"-206.8500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-0.7771759033",x:"-9.6000000000",y:"-206.8500000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7675628662",x:"-9.4500000000",y:"-206.8000000000",scX:"0.9999542236",scY:"0.9999542236"},{r:"-0.7579498291",x:"-9.4000000000",y:"-206.7500000000",scX:"0.9999389648",scY:"0.9999389648"},{r:"-0.5603790283",x:"-9.3000000000",y:"-206.7000000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.5498962402",x:"-9.2000000000",y:"-206.6500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5402832031",x:"-9.1500000000",y:"-206.6000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5306701660",x:"-9.0500000000",y:"-206.5500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.5210418701",x:"-8.9500000000",y:"-206.5000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5114288330",x:"-8.9000000000",y:"-206.4500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.5018157959",x:"-8.8000000000",y:"-206.4500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.3042449951",x:"-8.7000000000",y:"-206.4500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2946319580",x:"-8.6500000000",y:"-206.4000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2850036621",x:"-8.5000000000",y:"-206.3500000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2753906250",x:"-8.4000000000",y:"-206.3000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.2657775879",x:"-8.3500000000",y:"-206.1500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.2561645508",x:"-8.2000000000",y:"-206.1000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"-0.0594482422",x:"-8.2000000000",y:"-206.1000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0489654541",x:"-8.1000000000",y:"-206.0500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0393371582",x:"-7.9500000000",y:"-206.0500000000",scX:"0.9999694824",scY:"0.9999694824"},{r:"-0.0297241211",x:"-7.9000000000",y:"-206.0000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0201110840",x:"-7.8500000000",y:"-205.9500000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"-0.0104980469",x:"-7.7000000000",y:"-205.9000000000",scX:"0.9999847412",scY:"0.9999847412"},{r:"0.0000000000",x:"-7.6500000000",y:"-205.8500000000",scX:"1.0000000000",scY:"1.0000000000"}]}]},pointer_anim={name:"pointer",l:{flashName:"Layer 1",name:"Tween 11",d:{anchorX:"0.5",anchorY:"0.5",name:"pointerTween 110_t.png"},f:[{r:"0",x:"-2.5000000000",y:"-136.3500000000",skX:"0.0000000000",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"},{r:"0",x:"-24.4000000000",y:"-131.9000000000",skX:"-9.2872924805",skY:"0.0000000000",scX:"1.0752563477",scY:"0.9809112549"},{r:"0",x:"-30.7500000000",y:"-130.0500000000",skX:"-12.0935668945",skY:"0.0000000000",scX:"1.0970153809",scY:"0.9760284424"},{r:"0",x:"-20.8000000000",y:"-131.4000000000",skX:"-7.7954406738",skY:"0.0000000000",scX:"1.0772399902",scY:"0.9733123779"},{r:"0",x:"6.8500000000",y:"-131.4000000000",skX:"4.0602722168",skY:"0.0000000000",scX:"1.0197448730",scY:"0.9668579102"},{r:"0",x:"16.9000000000",y:"-130.0500000000",skX:"8.4089660645",skY:"0.0000000000",scX:"1.0000000000",scY:"0.9647521973"},{r:"0",x:"13.2000000000",y:"-130.9000000000",skX:"6.7881927490",skY:"0.0000000000",scX:"1.0030364990",scY:"0.9672698975"},{r:"0",x:"-0.0500000000",y:"-133.3000000000",skX:"1.0586090088",skY:"0.0000000000",scX:"1.0143585205",scY:"0.9782562256"},{r:"0",x:"-12.7500000000",y:"-134.4000000000",skX:"-4.2941894531",skY:"0.0000000000",scX:"1.0256805420",scY:"0.9887237549"},{r:"0",x:"-16.7500000000",y:"-134.5000000000",skX:"-5.9428253174",skY:"0.0000000000",scX:"1.0287170410",scY:"0.9918365479"},{r:"0",x:"-15.8000000000",y:"-134.6000000000",skX:"-5.5351715088",skY:"0.0000000000",scX:"1.0274658203",scY:"0.9918975830"},{r:"0",x:"-12.9000000000",y:"-135.0500000000",skX:"-4.3054962158",skY:"0.0000000000",scX:"1.0228576660",scY:"0.9933166504"},{r:"0",x:"-8.0000000000",y:"-135.7000000000",skX:"-2.2675323486",skY:"0.0000000000",scX:"1.0143585205",scY:"0.9959411621"},{r:"0",x:"-2.7000000000",y:"-136.2000000000",skX:"-0.0410919189",skY:"0.0000000000",scX:"1.0058288574",scY:"0.9985504150"},{r:"0",x:"-0.6000000000",y:"-136.3500000000",skX:"0.8121337891",skY:"0.0000000000",scX:"1.0012512207",scY:"0.9998779297"},{r:"0",x:"0.6500000000",y:"-136.3500000000",skX:"1.3120422363",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0002899170"},{r:"0",x:"0.5000000000",y:"-136.3500000000",skX:"1.2552490234",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0002136230"},{r:"0",x:"0.0000000000",y:"-136.3500000000",skX:"1.0306396484",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0001831055"},{r:"0",x:"-0.6500000000",y:"-136.3500000000",skX:"0.7719268799",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0001373291"},{r:"0",x:"-1.8000000000",y:"-136.3500000000",skX:"0.3059844971",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0001068115"},{r:"0",x:"-2.4000000000",y:"-136.3500000000",skX:"0.0472106934",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0000305176"},{r:"0",x:"-2.5000000000",y:"-136.3500000000",skX:"0.0104980469",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0000152588"},{r:"0",x:"-2.5000000000",y:"-136.3500000000",skX:"0.0000000000",skY:"0.0000000000",scX:"1.0000000000",scY:"1.0000000000"}]}},ore_atlas_font={images:["art_font.png"],frames:[[0,268,23,34,0,-0,-48,23,82],[211,199,23,25,0,-0,-57,23,82],[236,179,20,47,0,-0,-47,20,94],[82,186,24,35,0,-0,-58,24,93],[23,278,21,34,0,-0,-48,21,82],[189,266,16,32,0,-0,-50,16,82],[211,249,20,35,0,-0,-56,20,91],[138,175,24,34,0,-0,-48,24,82],[243,104,13,35,0,-0,-47,13,82],[193,35,31,25,0,-0,-57,31,82],[101,234,22,25,0,-0,-57,22,82],[211,224,23,25,0,-0,-57,23,82],[162,191,23,34,0,-0,-58,23,92],[148,140,25,35,0,-0,-57,25,92],[74,247,22,25,0,-0,-57,22,82],[47,255,22,25,0,-0,-57,22,82],[53,200,24,35,0,-0,-47,24,82],[77,221,24,26,0,-0,-57,24,83],[211,174,25,25,0,-0,-57,25,82],[66,35,33,25,0,-0,-57,33,82],[0,207,26,26,0,-0,-57,26,83],[223,70,30,34,0,-0,-58,30,92],[113,175,25,25,0,-0,-57,25,82],[142,250,16,35,0,-0,-47,16,82],[185,191,12,35,0,-0,-47,12,82],[123,255,16,35,0,-0,-47,16,82],[231,283,19,12,0,-0,-62,19,74],[197,196,14,35,0,-0,-47,14,82],[69,272,15,19,0,-0,-45,15,64],[33,35,33,33,0,-0,-48,33,81],[24,243,23,35,0,-0,-47,23,82],[191,0,34,35,0,-0,-47,34,82],[128,70,29,35,0,-0,-47,29,82],[173,140,10,14,0,-0,-47,10,61],[158,250,15,35,0,-0,-47,15,82],[197,231,14,35,0,-0,-47,14,82],[238,161,18,18,0,-0,-47,18,65],[183,130,28,26,0,-0,-54,28,80],[198,181,13,15,0,-0,-72,13,87],[123,244,19,11,0,-0,-62,19,73],[185,226,12,12,0,-0,-73,12,85],[234,226,22,35,0,-0,-47,22,82],[94,116,27,35,0,-0,-47,27,82],[26,208,24,35,0,-0,-47,24,82],[99,35,32,35,0,-0,-47,32,82],[60,130,27,35,0,-0,-47,27,82],[87,151,26,35,0,-0,-47,26,82],[29,138,27,35,0,-0,-47,27,82],[56,165,26,35,0,-0,-47,26,82],[224,35,30,35,0,-0,-47,30,82],[27,173,26,35,0,-0,-47,26,82],[98,81,29,35,0,-0,-47,29,82],[44,280,14,24,0,-0,-56,14,80],[198,156,13,25,0,-0,-57,13,82],[231,261,19,22,0,-0,-59,19,81],[50,235,24,20,0,-0,-60,24,80],[238,139,18,22,0,-0,-59,18,81],[0,233,24,35,0,-0,-48,24,83],[0,70,32,32,0,-0,-50,32,82],[215,104,28,35,0,-0,-47,28,82],[65,95,29,35,0,-0,-47,29,82],[127,105,28,35,0,-0,-47,28,82],[0,35,33,35,0,-0,-47,33,82],[173,156,25,35,0,-0,-47,25,82],[225,0,31,35,0,-0,-47,31,82],[0,102,31,35,0,-0,-47,31,82],[31,103,29,35,0,-0,-47,29,82],[173,252,16,35,0,-0,-47,16,82],[155,105,28,35,0,-0,-47,28,82],[131,35,31,35,0,-0,-47,31,82],[0,172,27,35,0,-0,-47,27,82],[47,0,37,35,0,-0,-47,37,82],[0,137,29,35,0,-0,-47,29,82],[162,35,31,35,0,-0,-47,31,82],[211,139,27,35,0,-0,-47,27,82],[66,60,32,35,0,-0,-47,32,82],[121,140,27,35,0,-0,-47,27,82],[157,70,29,35,0,-0,-47,29,82],[186,95,29,35,0,-0,-47,29,82],[193,60,30,35,0,-0,-47,30,82],[156,0,35,35,0,-0,-47,35,82],[0,0,47,35,0,-0,-47,47,82],[84,0,36,35,0,-0,-47,36,82],[33,68,32,35,0,-0,-47,32,82],[120,0,36,35,0,-0,-47,36,82],[205,284,15,35,0,-0,-47,15,82],[130,209,22,35,0,-0,-47,22,82],[96,259,15,35,0,-0,-47,15,82],[173,238,20,14,0,-0,-51,20,65],[98,70,30,11,0,-0,-73,30,84],[173,225,12,13,0,-0,-50,12,63],[152,225,21,25,0,-0,-58,21,83],[106,200,24,34,0,-0,-48,24,82],[0,302,21,26,0,-0,-57,21,83]],animations:{100:[0],101:[1],102:[2],103:[3],104:[4],105:[5],106:[6],107:[7],108:[8],109:[9],110:[10],111:[11],112:[12],113:[13],114:[14],115:[15],116:[16],117:[17],118:[18],119:[19],120:[20],121:[21],122:[22],123:[23],124:[24],125:[25],126:[26],33:[27],34:[28],35:[29],36:[30],37:[31],38:[32],39:[33],40:[34],41:[35],42:[36],43:[37],44:[38],45:[39],46:[40],47:[41],48:[42],49:[43],50:[44],51:[45],52:[46],53:[47],54:[48],55:[49],56:[50],57:[51],58:[52],59:[53],60:[54],61:[55],62:[56],63:[57],64:[58],65:[59],66:[60],67:[61],68:[62],69:[63],70:[64],71:[65],72:[66],73:[67],74:[68],75:[69],76:[70],77:[71],78:[72],79:[73],80:[74],81:[75],82:[76],83:[77],84:[78],85:[79],86:[80],87:[81],88:[82],89:[83],90:[84],91:[85],92:[86],93:[87],94:[88],95:[89],96:[90],97:[91],98:[92],99:[93]},texturepacker:["SmartUpdateHash: $TexturePacker:SmartUpdate:c46cbea25f773a9962bbb3df5217d64b:131cee7dfedf58401b0ac08d4f40ed45:8bb43b20010cac30968ff0726d4875a1$","EaselJS Extended Exporter - Trim support"]},ore_atlas_jpg={images:["art.jpg"],frames:[[4,4,642,161,0,-0,-0,642,161]],animations:{back_line:[0]},texturepacker:["SmartUpdateHash: $TexturePacker:SmartUpdate:d18690bc3522ce7bb6c269776b7c56cd:5959fc0d19a0cfd0c13cb133e95ea98e:32b29c51a57d9bd124e2a2c793aac754$","EaselJS Extended Exporter - Trim support"]},ore_atlas_linear={images:["art_linear.png"],frames:[[386,629,69,63,0,-0,-0,69,63],[386,694,66,62,0,-0,-0,66,62],[441,936,69,65,0,-0,-0,69,65],[114,854,80,80,0,-0,-0,80,80],[0,892,80,80,0,-0,-0,80,80],[436,379,57,55,0,-11,-11,79,77],[386,322,48,76,0,-0,-0,48,76],[386,400,48,76,0,-0,-0,48,76],[454,757,48,40,0,-0,-0,48,40],[386,478,48,76,0,-0,-0,48,76],[461,264,48,40,0,-0,-0,48,40],[461,164,44,52,0,-0,-0,44,52],[0,854,112,36,0,-0,-0,112,36],[441,1003,50,20,0,-0,-0,50,20],[442,807,63,62,0,-8,-7,79,77],[454,694,57,61,0,-0,-0,57,61],[457,629,53,57,0,-0,-0,53,57],[460,547,47,34,0,-0,-0,47,34],[461,218,46,44,0,-0,-0,46,45],[82,892,29,55,0,-0,-0,29,55],[468,90,30,23,0,-0,-0,30,23],[386,807,48,45,0,-0,-0,48,45],[386,164,73,77,0,-0,-0,73,77],[386,243,73,77,0,-0,-0,73,77],[0,974,66,47,0,-0,-0,66,47],[82,949,27,30,0,-0,-0,27,30],[468,62,22,26,0,-0,-0,22,26],[468,32,22,28,0,-0,-0,22,28],[436,322,58,55,0,-11,-12,79,77],[461,306,44,8,0,-0,-0,44,8],[436,492,57,53,0,-11,-12,79,77],[442,871,63,57,0,-8,-10,79,77],[386,556,72,71,0,-0,-0,72,71],[386,758,66,47,0,-0,-0,66,47],[196,854,80,80,0,-0,-0,80,80],[278,854,80,80,0,-0,-0,80,80],[360,854,80,80,0,-0,-0,80,80],[113,936,80,80,0,-0,-0,80,80],[195,936,80,80,0,-0,-0,80,80],[277,936,80,80,0,-0,-0,80,80],[359,936,80,80,0,-0,-0,80,80],[386,0,80,80,0,-0,-0,80,80],[203,427,181,425,0,-85,-0,266,425],[0,427,201,425,0,-0,-0,201,425],[206,0,178,425,0,-0,-0,178,425],[0,0,204,425,0,-0,-0,331,425],[386,82,80,80,0,-0,-0,80,80],[68,981,30,30,0,-0,-0,30,30],[460,583,30,30,0,-0,-0,30,30],[468,0,30,30,0,-0,-0,30,30],[436,436,56,54,0,-12,-12,79,77]],animations:{artefact1:[0],artefact2:[1],artefact3:[2],blocker:[3],blocker_2:[4],blue:[5],brick1:[6],brick2:[7],brick3:[8],brick4:[9],brick5:[10],brick6:[11],brick7:[12],brick8:[13],color_bomb:[14],corner1:[15],corner2:[16],destr1:[17],destr2:[18],destr3:[19],destr4:[20],destr5:[21],destructable_block_1:[22],destructable_block_2:[23],"fx-spiderAnimation 430_t":[24],grass1:[25],grass2:[26],grass3:[27],green:[28],mid:[29],purple:[30],red:[31],shield:[32],spider:[33],tile_1:[34],tile_2:[35],tile_3:[36],tile_4:[37],tile_5:[38],tile_6:[39],tile_7:[40],tile_8:[41],"transitionAnimation 100_t":[42],"transitionAnimation 10_t":[43],"transitionAnimation 30_t":[44],"transitionAnimation 70_t":[45],undestructable_block:[46],window_back:[47],window_back2:[48],window_back3:[49],yellow:[50]},texturepacker:["SmartUpdateHash: $TexturePacker:SmartUpdate:8500be3c2ef4c04f1401ed3bb6c30826:a539393cd52bce5f62fa3d3874dd1d8f:557819d2338e28a614768bb7e7cd2523$","EaselJS Extended Exporter - Trim support"]},InfectionRemoveSprite=function(e){function t(t){var s=this;
  2. e.call(this),this.sprite=t,createjs.Tween.removeTweens(t),createjs.Tween.get(t,{loop:!1}).wait(0).to({scaleX:1.5,scaleY:1.5,rotation:90,alpha:0},150,createjs.Ease.quadIn).call(function(){return s.onComplete()})}return __extends(t,e),t.prototype.onComplete=function(){this.destroy()},t}(GameObject),ObjectPool=function(){function e(){this.fieldObjects=new Array,this.destroyAnimations=[[],[],[],[],[],[],[]],this.shields=[],this.cages=[],this.scores={};for(var e=90,t=0;6>t;++t){5==t&&(e=15);for(var s=[],i=0;e>i;++i)s.push(new FieldObject(t));if(5>=t)for(var i=0;e>i;++i)this.destroyAnimations[t].push(new GemDestroyAnimation(t));this.fieldObjects.push(s)}for(var t=3;20>t;++t){var r=this.getText(Match3Level.getComboScore(t).toString(),null,0,0,0),a=this.getText(Match3Level.getComboScore(t).toString(),null,0,0,0);this.returnText(r),this.returnText(a)}for(var t=0;50>t;++t)this.shields.push(new ShieldRemoveSprite),this.cages.push(new ColorBlockDestroyAnimation)}return e.prototype.getText=function(e,t,s,i,r){void 0===i&&(i=-1),void 0===r&&(r=-1);var a=this.scores[e];a||(a=[],this.scores[e]=a);var n=a.length>0?a.splice(0,1)[0]:new JumpText(e,s);return n.init(i>0||!t?i:t.pos.x,r>0||!t?r:t.pos.y,t),n},e.prototype.returnText=function(e){var t=e.text,s=this.scores[t];s||(s=[],this.scores[t]=s),e.release(),s.push(e)},e.prototype.getObject=function(e,t,s,i,r,a,n){for(void 0===n&&(n=0),r>Match3Level.instance.assetNumber&&(r=-1);;){var o=r>=0?r:getInt(Math.min(i,this.fieldObjects.length));if(a[o]&&this.fieldObjects[o].length>0){var c=this.fieldObjects[o].splice(0,1)[0];return c.init(e,t,s),Math.random()<n&&c.setShield(1),c}r=-1}return null},e.prototype.returnObject=function(e){e.release(),this.fieldObjects[e.colorType].push(e)},e.prototype.resetObjects=function(){for(var e=this.fieldObjects.length,t=0;e>t;++t)for(var s=this.fieldObjects[t],i=s.length,r=0;i>r;++r){var a=s[r];a.sprite&&a.sprite.parent&&this.returnObject(a)}},e.prototype.getDestroyAnimation=function(e,t,s,i){var r=this.destroyAnimations[e].splice(0,1)[0];return r.init(t,s,i,e),r},e.prototype.returnGemDestroy=function(e){this.destroyAnimations[e.color].push(e),e.release()},e.prototype.getShield=function(e,t,s){if(this.shields.length>0){var i=this.shields.splice(0,1)[0];return i.init(e,t,s),i}return null},e.prototype.returnShield=function(e){this.shields.push(e)},e.prototype.getCage=function(e,t,s){if(this.cages.length>0){var i=this.cages.splice(0,1)[0];return i.init(e,t,s),i}return null},e.prototype.returnCage=function(e){this.cages.push(e)},e}(),DESIGN_FPS=60,ANIM_SCALE=1.475,apiInstance,splashScreenData,needTutorial=!0,needFpsText=!1,needScrollMap=!0,needLockLevels=!0,needMusic=!0,needCheats=!1,needShowSplash=!0,needApi=!0,needMoreGames=!0,allLevelsUnlocked=!needLockLevels,isEditorVersion=!1,DEG_TO_RAD=Math.PI/180,textSize=new createjs.Point,spriteSheetInfo,jellyAnimation=[[0,0,1,1,0,0],[.024999999999997247,-1.15,.9915771484375,1.0256500244140625,0,0],[.05000000000000293,-3.700000000000004,.97265625,1.083343505859375,0,0],[.12499999999999867,-6.200000000000005,.9544219970703125,1.1389007568359375,0,0],[.10000000000000009,-7.300000000000006,.946807861328125,1.162109375,0,0],[.10000000000000009,-7.300000000000006,.946807861328125,1.162109375,0,0],[.05000000000000293,-6.0749999999999975,.9620361328125,1.1312408447265625,0,0],[5.773159728050814e-15,-3.275,.9962615966796875,1.061798095703125,0,0],[.024999999999997247,-.6249999999999942,1.02923583984375,.994903564453125,0,0],[.05000000000000293,.5249999999999972,1.042999267578125,.9669952392578125,0,0],[.07500000000000151,-1.1250000000000013,1.01068115234375,1.00726318359375,0,0],[.14999999999999725,-2.3750000000000013,.9874267578125,1.0362396240234375,0,0],[.12499999999999867,-2.8750000000000013,.977996826171875,1.0479736328125,0,0],[.12499999999999867,-1.199999999999997,.9898681640625,1.018829345703125,0,0],[.10000000000000009,-.12499999999999423,.9973602294921875,1.00042724609375,0,0],[.10000000000000009,.17499999999999583,1,.993988037109375,0,0],[.05000000000000293,.025000000000004352,1,.9984588623046875,0,0],[-1.3322676295501878e-15,-1.3322676295501878e-15,1,1,0,0],[.05000000000000293,.049999999999995826,1,1,0,0],[1.7749999999999972,.07500000000000151,1,1.0004982491681325,.7527414880487653,0],[5.825000000000001,.025000000000004352,1,1.001664350237178,2.5152581429922156,0],[9.274999999999997,.049999999999995826,1,1.0026699631071858,4.031232289654886,0],[10.700000000000001,.049999999999995826,1,1.0032807863162294,4.644965767715552,0],[8.274999999999997,.05000000000000293,1,1.0027891286212487,3.539021537307087,0],[1.8749999999999987,.049999999999995826,1,1.0021068045460955,.7807179428891375,0],[-1.3750000000000013,.05000000000000293,1,1.0012419476751582,-1.5640586784195598,0],[-2.0499999999999985,.049999999999995826,1,1.0010724593956364,-2.6542661529803153,0],[-1.5499999999999985,.049999999999995826,1,1.000676433996075,-1.8001100161352006,0],[-.5000000000000013,.049999999999995826,1,1.0002103088230885,-.5280555851120258,0],[.05000000000000293,.049999999999995826,1,1,0,0],[.05000000000000293,.049999999999995826,1,1,0,0],[.14999999999999725,-.44999999999999707,.9672088623046875,1.0127410888671875,0,0],[.17499999999999583,-1.1250000000000013,.9302825927734375,1.0271148681640625,0,0],[.2500000000000058,-1.5499999999999985,.9080352783203125,1.0357666015625,0,0],[.24999999999999867,-1.65,.9017333984375,1.0382080078125,0,0],[.14999999999999725,-.7500000000000013,.929656982421875,1.016571044921875,0,0],[.05000000000000293,2.0750000000000015,1.009918212890625,.954345703125,0,0],[-.1750000000000056,5.124999999999998,1.09759521484375,.886383056640625,0,0],[-.02499999999999991,3.2749999999999972,1.0360107421875,.9274749755859375,0,0],[.10000000000000009,1.4249999999999958,.9744415283203125,.9685516357421875,0,0],[.24999999999999867,-.37500000000000133,.9128570556640625,1.0096435546875,0,0],[.14999999999999725,.8250000000000015,.9672088623046875,.9827728271484375,0,0],[-1.3322676295501878e-15,2.049999999999996,1.021575927734375,.9558868408203125,0,0],[-.10000000000000275,3.2499999999999987,1.075927734375,.92901611328125,0,0],[.049999999999995826,.5750000000000015,1.0054473876953125,.9878997802734375,0,0],[.2000000000000015,-2.074999999999997,.934967041015625,1.0467987060546875,0,0],[.14999999999999725,-1.0000000000000013,.9674835205078125,1.0233917236328125,0,0],[.05000000000000293,.049999999999995826,1,1,0,0]],animationLen=jellyAnimation.length,infectionAnimation=[[-5.45,6.7,.2093048095703125,.2093048095703125,-90],[-12.85,-7.1,.4721621818247029,.5332973252041089,-57.44282531738281],[-20.25,-20.9,.7355242093689353,.8577964765204296,-24.838973999023438],[-27.65,-34.7,.9999897640140254,1.1836297829182174,7.5378265380859375],[-29.8,-30.3,.9997831778700582,1.091577771078232,3.756561279296875],[-32,-26,1,1,0],[-32,-26,1,1,0],[-31.95,-26.05,1.001846819647027,.9969487508448114,.057708740234375],[-31.9,-26.1,1.0037219319230408,.9939256842776457,.3033599853515625],[-31.85,-26.15,1.0055697779975414,.9908747767757754,.5490264892578125],[-31.85,-26.2,1.0074057139272234,.98782676126546,.7937774658203125],[-31.8,-26.25,1.009260075153359,.9847809776560529,1.03851318359375],[-31.75,-26.25,1.0111181887786254,.981722437701235,1.2840728759765625],[-31.7,-26.35,1.0129799411806937,.978711727711441,1.52960205078125],[-31.6,-26.4,1.0147996763132587,.9756423241316923,1.775054931640625],[-31.55,-26.4,1.0166537591403784,.972604648004515,2.0204620361328125],[-31.55,-26.5,1.018527030226445,.969568985028705,2.2657928466796875],[-31.5,-26.55,1.02037384999685,.9665041568291709,2.5110321044921875],[-31.5,-26.6,1.022209578352633,.9634709293721622,2.757049560546875],[-31.45,-26.65,1.024064004784086,.9604241542910443,3.001220703125],[-31.4,-26.7,1.025936951191221,.9574041839347995,3.0587615966796875],[-31.35,-26.75,1.0279747939691337,.9545372097207427,3.46746826171875],[-31.45,-26.75,1.0259217141446704,.9574033696144164,3.0587615966796875],[-31.45,-26.7,1.0240495659921491,.9604241542910443,3.0020904541015625],[-31.5,-26.7,1.0221790960924766,.9634564220383081,2.757049560546875],[-31.5,-26.6,1.02035860586198,.9664895813186706,2.5110321044921875],[-31.6,-26.5,1.0185282372097,.9695390946743678,2.2675323486328125],[-31.6,-26.45,1.016638509837502,.9725893986997568,2.0204620361328125],[-31.65,-26.45,1.0147853705911112,.9756113485562844,1.7768096923828125],[-31.75,-26.4,1.0129341811242665,.9786816284141395,1.52960205078125],[-31.75,-26.3,1.0111032758935554,.9817071827452236,1.2849578857421875],[-31.8,-26.25,1.009229839316147,.9847962339375539,1.0393829345703125],[-31.85,-26.2,1.0073904566036784,.9878420185897583,.7937774658203125],[-31.85,-26.2,1.0055545199079683,.9908747767757754,.5490264892578125],[-31.95,-26.15,1.0037067541893363,.99391050663846,.3042449951171875],[-32,-26.1,1.001831576320605,.9969334920635343,.0585784912109375],[-32,-26,1,1,0],[]],tempArrays={getFillZone_res:new Array,getFillZone_toCheck:new Array,findUsualMatches_currentMatch:new Array,getChameleonGroup_currentMatch:new Array,getInitMatchData_toCheck:new Array,checkMatchBonus_res:new Array,removeMatches_allMatches:new Array,removeMatches_bonusSpawns:new Array,startAwardMode_bonusable:new Array,startAwardMode_bonused:new Array,startAwardMode_bonuses:new Array,startAwardMode_delays:new Array,startAwardMode_cleared:new Array,getBonusGroup_m:new Array,onMouseUp_objects:new Array,onMouseUp_cells:new Array,updateChains_o:new Array,checkIfComboExists_all:new Array,checkIfComboExists_neigh:new Array,playHint_all:new Array,pushHoles_points:new Array,placeNewInfection_directions:new Array,generateTiles_subLayers:new Array},FieldBonusType;!function(e){e[e.kBonusNone=0]="kBonusNone",e[e.kHorizontalLize=1]="kHorizontalLize",e[e.kVerticalLine=2]="kVerticalLine",e[e.kBombBonus=3]="kBombBonus",e[e.kColorBonus=4]="kColorBonus"}(FieldBonusType||(FieldBonusType={}));var TweenData=function(){function e(){this.initPos=new createjs.Point,this.endPos=new createjs.Point,this.currentTime=0,this.totalTime=0,this.corner=!1}return e.prototype.init=function(e,t,s,i,r,a){this.initPos.x=e,this.initPos.y=t,this.endPos.x=s,this.endPos.y=i,this.totalTime=r,this.currentTime=0,this.corner=a},e.prototype.update=function(e,t){this.currentTime+=e;var s=!1;this.currentTime>=this.totalTime&&(this.currentTime=this.totalTime,s=!0);var i=this.currentTime/this.totalTime;this.corner||(i*=i*i),t.pos.x=this.initPos.x+(this.endPos.x-this.initPos.x)*i,t.pos.y=this.initPos.y+(this.endPos.y-this.initPos.y)*i,s&&t.stopMove()},e}(),FieldObject=function(e){function t(t){e.call(this),this.isMoving=!0,this.SPEED=200,this.lastTarget=new createjs.Point(0,0),this.currentTile=6,this.bonusType=0,this.isActive=!1,this.isCustom=!1,this.moveCornerCount=0,this.timeSinceStop=0,this.isMovedAfterCorner=!1,this.rowMoveAfterConterCount=0,this.currentFrame=0,this.isPlaying=!1,this.infectionScaleProgress=0,this.animationPower=1,this.animationSpeed=1,this.stopSpeed=0,this.nextIdleTime=0,this.timeSinceAnim=0,this.isCached=!1,this.playBonusAnimationIn=-1,this.frameTime=1/18,this.pos=new createjs.Point(0,0),this.animPos=new createjs.Point(0,0),this.tween=new TweenData,this.bonusSprites=[],this.removeSelectIn=-1,this.isSelected=!1,this.infection=null,this.prevNeighbours=[null,null,null,null],this.shieldsLeft=-1,this.colorBonusType=0,this.colorActivateType=-1,this.isSwapped=!1,this.colorType=t,this.sprite=new createjs.Container,this.mainSprite=new createjs.Sprite(App.game.atlases[1],this.getFileName()),this.mainSprite.gotoAndStop(this.getFileName()),this.sprite.addChild(this.mainSprite);var s=this.sprite.getBounds();this.mainSprite.regX=s.width/2,this.mainSprite.regY=s.height/2,this.selectSprite=new createjs.Container,this.circleSelectSprite=createSpriteFromSpritesheet("select_spell"),this.circleSelectSprite.regX=this.circleSelectSprite.getBounds().width/2,this.circleSelectSprite.regY=this.circleSelectSprite.getBounds().height/2,this.selectSprite.addChild(this.circleSelectSprite),this.shieldSprite=createSpriteFromSpritesheet("shield"),setReg(this.shieldSprite,.5,.5)}return __extends(t,e),t.prototype.removeInfection=function(e){void 0===e&&(e=!0),this.infection&&(this.level.infectionRemoveMove=this.level.currentMove,this.level.objects.push(new InfectionRemoveSprite(this.infection)),this.infection=null,e&&SoundsManager.instance.playSound("infection_remove_sound")),this.infection=null},t.prototype.setInfection=function(){if(!this.hasInfection){var e=createSpriteFromSpritesheet("spider");this.sprite.addChild(e),setReg(e,.5,.5),e.rotation=-90,e.scaleX=e.scaleY=.3,createjs.Tween.get(e,{loop:!1}).wait(0).to({scaleX:1,scaleY:1,rotation:0},150,createjs.Ease.quadIn),this.infection=e,SoundsManager.instance.playSound("infection_set_sound")}},Object.defineProperty(t.prototype,"isChameleon",{get:function(){return 4==this.bonusType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInActiveCham",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"comboSelectBonus",{get:function(){return this._comboSelectBonus},set:function(e){this._comboSelectBonus=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColorBonus",{get:function(){return 4==this.bonusType},enumerable:!0,configurable:!0}),t.prototype.resetBonus=function(){for(var e=0;e<this.bonusSprites.length;++e)removeClip(this.bonusSprites[e]);this.bonusSprites.length=0},t.prototype.hasShield=function(){return this.shieldsLeft>0},t.prototype.setShield=function(e){if(!(e>0&&this.cell&&this.cell.isColorBlocked)){var t=this.hasShield();if(e=e>0?1:-1,e!=this.shieldsLeft)if(this.shieldsLeft=e,1==e)this.sprite.addChild(this.shieldSprite);else{var s=Match3Level.pool.getShield(this.sprite.x,this.sprite.y,this.colorType);s&&this.level.objects.push(s),removeClip(this.shieldSprite)}this.updateMainSprite(),t&&!this.hasShield()&&SoundsManager.instance.playSound("shield_remove")}},Object.defineProperty(t.prototype,"isUnderWeb",{get:function(){return this.cell&&this.cell.isColorBlocked},enumerable:!0,configurable:!0}),t.prototype.updateSelectSprite=function(e){var t=(0!=this.bonusType,0!=this.comboSelectBonus);if(this.selectSprite.parent){var s=this.level.downCell==this.cell,i=(this.isSelected&&t,limit(this.circleSelectSprite.alpha+(s?1:-1)*e*7,0,1));this.circleSelectSprite.alpha=i,this.circleSelectSprite.visible=i>0,this.circleSelectSprite.visible&&(this.circleSelectSprite.x=this.sprite.x-this.animPos.x,this.circleSelectSprite.y=this.sprite.y-this.animPos.y,this.circleSelectSprite.rotation+=45*e),!(this.removeSelectIn>0&&e>0)||this.cell&&this.cell.isWaitingForClear||(--this.removeSelectIn,this.removeSelectIn<=0&&(this.comboSelectBonus=this.bonusType,this.isSelected=!1)),this.circleSelectSprite.visible||removeClip(this.selectSprite)}if(this.isSelected&&this.isBonus)switch(this.comboSelectBonus){case 1:for(var r=0;r<this.level.fieldSize;++r)this.level.cells[r][this.cell.y].bonusSelect();break;case 2:for(var a=0;a<this.level.fieldSize;++a)this.level.cells[this.cell.x][a].bonusSelect();break;case 3:for(a=-2;2>=a;++a)for(r=-2+Math.abs(a);r<=2-Math.abs(a);++r){var n=this.cell.x+r,o=this.cell.y+a;if(n>=0&&o>=0&&o<this.level.fieldSize&&n<this.level.fieldSize){var c=this.level.cells[n][o];c.bonusSelect()}}break;case 4:for(var r=0;r<this.level.fieldSize;++r)for(var a=0;a<this.level.fieldSize;++a){var h=this.level.cells[r][a];h.object&&!h.object.isColorBonus&&h.object.colorType==this.colorBonusType&&h.bonusSelect()}}},t.prototype.select=function(){var e=this.isSelected;this.isSelected=!0,this.removeSelectIn=-1,this.selectSprite.parent||(this.level.underGemLayer.addChild(this.selectSprite),this.circleSelectSprite.rotation=360*Math.random(),this.circleSelectSprite.alpha=0,this.circleSelectSprite.visible=!0,e||(this.playJellyAnimation(2,1,1),SoundsManager.instance.playSound("object_select")))},t.prototype.tempSelect=function(){return this.selectSprite.parent?(this.removeSelectIn>0&&(this.removeSelectIn=4),void this.updateSelectSprite(0)):(this.select(),void(this.removeSelectIn=3))},t.prototype.unselect=function(e){if(void 0===e&&(e=!1),this.isSelected=!1,this.isColorBonus)for(this.colorBonusType=getInt(this.level.assetNumber);!this.level.levelData.typeEnable[this.colorBonusType];)this.colorBonusType=getInt(this.level.assetNumber)},t.prototype.killSelect=function(){removeClip(this.selectSprite)},t.prototype.setNextIdleTime=function(){this.nextIdleTime=1+78*Math.random(),this.timeSinceAnim=0},t.prototype.getFileName=function(){if(this.isPushable)return"artefact"+(getInt(3)+1);if(this.isColorBonus)return"color_bomb";var e=t.assetNames[this.colorType];return e},t.prototype.isSameColor=function(e){return(4==this.bonusType||4==e.bonusType||this.colorType==e.colorType)&&!this.isPushable},t.prototype.isSameColorNumber=function(e){return e==this.colorType||4==this.bonusType||-1==e},t.prototype.updateMainSprite=function(){this.mainSprite.gotoAndStop(this.getFileName());var e=(this.cell&&this.cell.isColorBlocked,!0);this.mainSprite.scaleX=this.mainSprite.scaleY=1;e?null:this.hasShield()?ShieldRemoveSprite.data[this.colorType]:ColorBlockDestroyAnimation.data[this.colorType];setReg(this.mainSprite,this.isPushable?35:40,this.isPushable?32:39,!1)},Object.defineProperty(t.prototype,"isPushable",{get:function(){return 5==this.colorType},enumerable:!0,configurable:!0}),t.prototype.init=function(e,s,i){this.cell=e,e.object=this,this.removeSelectIn=-1,this.resetBonus(),this.removeInfection(!1),createjs.Tween.removeTweens(this.pos),createjs.Tween.removeTweens(this.sprite),this.level=Match3Level.instance,addChild(this.sprite,this.level.gemLayer),this.comboSelectBonus=0,this.pos.x=s,this.pos.y=i,this.sprite.x=s,this.sprite.y=i,this.animPos.x=this.animPos.y=0,this.isMoving=!1,this.isWaitingForDestruction=!1,this.isPlaying=!1,this.currentFrame=0,this.isMoving=!1,this.sprite.visible=!0,this.animationPower=1,this.stopSpeed=1,this.animationSpeed=1,this.setNextIdleTime(),this.isCached=!1,this.playBonusAnimationIn=-1,this.bonusType=0,this.updateMainSprite();var r=Math.abs(this.sprite.x-e.pos.x)+Math.abs(this.sprite.y-e.pos.y)<1;this.setFrame(-1,!0,r);this.sprite.getBounds();return this.killSelect(),this.shieldsLeft=-1,removeClip(this.shieldSprite),this.isActive||(t.activeCount++,this.isActive=!0),this.updateSelectSprite(0),this.isSelected=!1,this.isSwapped=!1,this},t.prototype.release=function(){return removeClip(this.sprite),this.sprite.visible=!1,this.killSelect(),this.resetBonus(),this.colorActivateType=-1,this.removeInfection(!1),createjs.Tween.removeTweens(this.pos),createjs.Tween.removeTweens(this.sprite),this.isMoving=!1,this.isWaitingForDestruction=!1,this.animPos.x=this.animPos.y=0,this.setFrame(-1),this.isPlaying=!1,this.shieldsLeft=-1,this.currentFrame=0,removeClip(this.shieldSprite),this.playBonusAnimationIn=-1,this.isMoving=!1,this.animationPower=1,this.stopSpeed=1,this.animationSpeed=1,this.isCached=!1,this.bonusType=0,this.isActive&&(t.activeCount--,this.isActive=!1),this.isSelected=!1,this},Object.defineProperty(t.prototype,"hasInfection",{get:function(){return null!=this.infection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBonus",{get:function(){return 0!=this.bonusType&&!this.hasShield()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComboOnlyBonus",{get:function(){return 0!=this.comboSelectBonus&&!this.hasShield()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComboBonus",{get:function(){return(this.isBonus||0!=this.comboSelectBonus)&&!this.hasShield()},enumerable:!0,configurable:!0}),t.prototype.setBonusType=function(e,t,s){if(void 0===s&&(s=!1),this.bonusType!=e){this.resetBonus(),this.bonusType=e,this.colorActivateType=-1,t||SoundsManager.instance.playSound("bonus_set"),this.updateMainSprite();{this.mainSprite.getBounds()}switch(this.mainSprite.regX=40,this.mainSprite.regY=39,this.playJellyAnimation(2,1,1),t||this.level.objects.push(new SinglePlayObject(this.sprite.x,this.sprite.y,"explosion",15,this.level.blockDestroyLayer,59,61,1)),e){case 2:for(var i=0;2>i;++i){var r=createSpriteFromSpritesheet("fire_bonus");r.framerate=20,r.play(),setReg(r,15,30,!1),r.y=15*(0==i?-1:1),r.rotation=0==i?0:180,r.currentAnimationFrame=2*i,this.sprite.addChild(r),this.bonusSprites.push(r)}break;case 1:for(var i=0;2>i;++i){var r=createSpriteFromSpritesheet("fire_bonus");r.framerate=20,r.play(),setReg(r,15,30,!1),r.rotation=0==i?-90:90,r.x=14*(0==i?-1:1),r.currentAnimationFrame=2*i,this.sprite.addChild(r),this.bonusSprites.push(r)}break;case 3:var r=createSpriteFromSpritesheet("cir_fire");r.framerate=15,r.play(),setReg(r,17,17,!1),this.sprite.addChild(r),this.bonusSprites.push(r);break;case 4:for(this.colorBonusType=getInt(this.level.assetNumber);!this.level.levelData.typeEnable[this.colorBonusType];)this.colorBonusType=getInt(this.level.assetNumber)}return t||this.hasInfection&&this.removeInfection(!0),this.updateSelectSprite(0),this.comboSelectBonus=this.bonusType,!0}return!1},t.prototype.isSwapable=function(){return!0},t.prototype.moveTo=function(e,t,s,i,r){void 0===s&&(s=!1),void 0===i&&(i=0),void 0===r&&(r=!1),this.isMoving=!0;this.lastTarget.x=e,this.lastTarget.y=t,this.timeSinceStop=0,!r&&this.isMovedAfterCorner?(this.rowMoveAfterConterCount++,this.rowMoveAfterConterCount>1&&(this.rowMoveAfterConterCount=0,this.isMovedAfterCorner=!1)):this.rowMoveAfterConterCount=0,this.isMovedAfterCorner=!1;var a=300*Math.pow(.6,limit(this.moveCornerCount,0,4));this.moveCornerCount++;var n=getDistanceF(e,t,this.pos.x,this.pos.y);if(1>n&&(a=10),r){var o=this.level.stageToGrid(this.sprite.x,this.sprite.y);o.x=Math.floor(o.x),o.y=Math.floor(o.y);for(var c=o.y-1;c>=0;--c)if(this.validatePos(o.x,c)){var h=this.level.cells[o.x][c];h&&h.object&&!h.object.isMoving&&(h.object.isMovedAfterCorner=!0)}}this.tween.init(this.pos.x,this.pos.y,e,t,a/1e3,r),!this.isPushable&&n>10&&(this.stopSpeed=.7+.3*Math.random(),this.playAnimation(0,.6))},t.prototype.setFrame=function(e,t,s){void 0===t&&(t=!0),void 0===s&&(s=!0);var i=animationLen,r=0>e||e>=i?null:jellyAnimation[e],a=0>e+1||e+1>=i?null:jellyAnimation[e+1],n=null==r||r.length<=0,o=!n&&null!=a&&a.length>0,c=this.currentFrame-e,h=1;if(n&&(t=!0,h=1,c=0,this.currentFrame=e=0,r=a=jellyAnimation[0]),t){var l=!o&&!n;this.animPos.x=l?r[0]*h:h*(r[0]+c*(a[0]-r[0])),this.animPos.y=l?1*r[1]:1*(r[1]+c*(a[1]-r[1])),this.mainSprite.scaleX=1*(l?1+(r[2]-1)*h:1+(r[2]+c*(a[2]-r[2])-1)*h),this.mainSprite.scaleY=1*(l?1+(r[3]-1)*h:1+(r[3]+c*(a[3]-r[3])-1)*h),this.mainSprite.skewX=l?r[4]*h:h*(r[4]+c*(a[4]-r[4])),this.mainSprite.skewY=l?r[5]*h:h*(r[5]+c*(a[5]-r[5]))}n&&(this.isPlaying=!1,this.currentFrame=0)},t.prototype.playAnimation=function(e,t,s){void 0===t&&(t=1),void 0===s&&(s=1),this.animationPower=t,this.animationSpeed=s,this.currentFrame=e,this.isPlaying=!0,this.setFrame(this.currentFrame,!0,!1)},t.prototype.playJellyAnimation=function(e,t,s){var i=0==e,r=1==e,a=getInt(3);this.playAnimation(i?0:r||0==a?5:1==a?18:30,t,s)},t.prototype.stopMove=function(){var e=this;if(this.isMoving=!1,this.timeSinceStop=0,!this.isPushable&&this.isPlaying&&this.playJellyAnimation(1,this.stopSpeed,.75+.5*Math.random()),this.isPushable&&(this.cell.y==this.level.fieldSize-1||this.cell.y==this.level.fieldSize-2&&this.cell.x>=3&&this.cell.x<=4)){this.level.objects.push(Match3Level.pool.getText("100",this.cell,0));var t=this.level.gridToStage(this.cell.x,this.level.fieldSize);createjs.Tween.get(this.pos,{loop:!1}).wait(0).to({x:t.x,y:t.y},300,createjs.Ease.cubicIn).call(function(){return e.pushDown()}),SoundsManager.instance.playSound("artifact_down")}else SoundsManager.instance.playSound("stop_move")},t.prototype.pushDown=function(){this.cell.object=null,this.level.target.onTargetPush(),Match3Level.pool.returnObject(this),AwardManager.addArtifact()},t.prototype.changeType=function(e,t){void 0===t&&(t=!1)},t.prototype.isOnEndFrame=function(){return 4==~~this.currentFrame||17==~~this.currentFrame||29==~~this.currentFrame||47==~~this.currentFrame},t.prototype.update=function(e){if(this.isMoving||(this.timeSinceStop+=e,this.timeSinceStop>=.5&&(this.moveCornerCount=0,this.isSwapped=!1)),this.sprite){if(this.isPlaying)for(var t=e*this.animationSpeed;t>0&&!this.isOnEndFrame()&&this.isPlaying;)this.currentFrame+=t>=this.frameTime?1:t/this.frameTime,t-=this.frameTime,this.setFrame(~~this.currentFrame,t<=this.frameTime);else this.timeSinceAnim+=e,this.timeSinceAnim>=this.nextIdleTime&&this.setNextIdleTime();if(this.isMoving&&this.tween.update(e,this),this.playBonusAnimationIn>=0&&(this.playBonusAnimationIn-=e,this.isBonus&&this.playBonusAnimationIn<0&&this.playBonusAnimation()),this.updateSpritePos(),this.infection){for(this.infectionScaleProgress+=e/3;this.infectionScaleProgress>1;)this.infectionScaleProgress-=1;var s=Math.abs(this.infectionScaleProgress-.5)/.5;this.infection.scaleX=lerp(1,1.11,s),this.infection.scaleY=lerp(1,.89,s)}this.updateSelectSprite(e)}},t.prototype.updateSpritePos=function(){if(this.sprite.x=this.pos.x+this.animPos.x,this.sprite.y=this.pos.y+this.animPos.y-0,this.cell&&this.level.isInSlide(this.cell)){var e=this.level.slideShiftX,t=this.level.slideShiftY;if(this.sprite.x=this.cell.pos.x+this.animPos.x+e,this.sprite.y=this.cell.pos.y+this.animPos.y+t,this.level.isSlidingHorizontally){for(var s=this.level.minSlideCell.pos.x-this.level.tileSize/2,i=this.level.maxSlideCell.pos.x+this.level.tileSize/2;this.sprite.x<s&&0>e;)this.sprite.x+=i-s;for(;this.sprite.x>i&&e>0;)this.sprite.x-=i-s}else{for(var s=this.level.minSlideCell.pos.y-this.level.tileSize/2,i=this.level.maxSlideCell.pos.y+this.level.tileSize/2;this.sprite.y<s&&0>t;)this.sprite.y+=i-s;for(;this.sprite.y>i&&t>0;)this.sprite.y-=i-s}this.cell.bonusSelectSprite.x=this.sprite.x,this.cell.bonusSelectSprite.y=this.sprite.y,this.pos.x=this.sprite.x-this.animPos.x,this.pos.y=this.sprite.y-this.animPos.y}},t.prototype.playBonusAnimation=function(){},t.prototype.validatePos=function(e,t){return e>=0&&t>=0&&e<App.level.fieldSize&&t<App.level.fieldSize},t.prototype.getNeighbourObject=function(e,t,s){var i=this.cell.x+e,r=this.cell.y+t;if(0>i||i>=App.level.fieldSize)return null;if(!this.isMoving)return this.validatePos(i,r)?(n=App.level.cells[i][r].object,n&&!n.isMoving&&n.isSameColor(this)?n:null):null;for(var a=-1;a<App.level.fieldSize;a++)if(-1==a||this.validatePos(i,a)){var n=-1==a?this.prevNeighbours[s]:App.level.cells[i][a].object;if(n&&!n.isDestroyed&&n.isSameColor(this)){var o=Math.abs(n.sprite.x-(this.sprite.x+e*App.level.tileSize))<.5,c=Math.abs(n.sprite.y-(this.sprite.y+t*App.level.tileSize))<.5;if(o&&c)return n}}return null},t.TILE_SIZE=35,t.destroyCount=0,t.GEM_SCALE=1,t.GEM_KILL_DELAY=.075,t.assetNames=["red","yellow","blue","green","purple"],t.regPoints=[cjp(5,3),cjp(4,2),cjp(1,1),cjp(4,4),cjp(5,-5)],t.bonusNames=[""," horizontal"," vertical"," bomb"," bomb"],t.activeCount=0,t}(GameObject),Match3Level=function(e){function t(){e.call(this),this.isPaused=!1,this.isGenerated=!1,this.isLocked=!1,this._isHardLocked=!1,this.isEnded=!1,this.score=0,this.pushPositions=[],this.objects=[],this.comboAmount=0,this.maxCombo=0,this.comboTimer=t.COMBO_TIME,this.turnedOff=!1,this.isSelectBlocked=!1,this.fieldCount=5,this.timeSinceLastAction=0,this.limitLeft=0,this.showWinMenuIn=-1,this.playLoseIn=1.3,this.currentMove=0,this.isAfterSliding=!1,this.cellData=null,this.showTargetIn=-1,this.isPressed=!1,this.lastMatches=[],this.tileLayer=new createjs.Container,this.markLayer=new createjs.Container,this.needToUpdateBack=!0,this.gemSpellLayer=new createjs.Container,this.underGemLayer=new createjs.Container,this.gemLayer=new createjs.Container,this.gemCacheLayer=new createjs.Container,this.blockLayer=new createjs.Container,this.gemDestroyLayer=new createjs.Container,this.blockDestroyLayer=new createjs.Container,this.bonusLayer=new createjs.Container,this.bonusIndicatorLayer=new createjs.Container,this.hudLayer=new createjs.Container,this.downChainLayer=new createjs.Container,this.topChainLayer=new createjs.Container,this.isTimeLevel=!1,this.levelTime=0,this.mustSort=!1,this.hintIdAfterAction=0,this.infectionRemoveMove=0,this.downPos=new createjs.Point,this.movePos=new createjs.Point,this.isSliding=!1,this.chains=[],t.instance=this,this.addChild(this.tileLayer),this.addChild(this.markLayer),this.addChild(this.gemSpellLayer),this.addChild(this.underGemLayer),this.addChild(this.downChainLayer),this.addChild(this.gemLayer),this.addChild(this.blockLayer),this.addChild(this.topChainLayer),this.addChild(this.gemDestroyLayer),this.addChild(this.blockDestroyLayer),this.addChild(this.bonusLayer),this.addChild(this.bonusIndicatorLayer),this.addChild(this.hudLayer),this.victoryText=createSpriteFromSpritesheet("victory"),this.victoryText.regX=this.victoryText.getBounds().width/2,this.victoryText.regY=this.victoryText.getBounds().height/2,this.setFieldProps(t.TILE_SIZE,t.SHIFT_X,t.SHIFT_Y,t.LEVEL_W,t.LEVEL_H),this.cells=new Array;for(var s=0;s<this.fieldSize;s++){for(var i=new Array,r=0;r<this.fieldSize;r++){var a=new CellObject(s,r);i.push(a)}this.cells.push(i)}App.level=this,this.hud=new Hud}return __extends(t,e),t.prototype.stopSliding=function(){this.isSliding=!1,this.maxSlideCell=this.minSlideCell=null},Object.defineProperty(t.prototype,"isSlidingHorizontally",{get:function(){return this.isSliding&&this.maxSlideCell.y==this.minSlideCell.y},enumerable:!0,configurable:!0}),t.prototype.isInSlide=function(e){return this.isSliding&&(this.isSlidingHorizontally&&e.x>=this.minSlideCell.x&&e.x<=this.maxSlideCell.x&&e.y==this.minSlideCell.y||!this.isSlidingHorizontally&&e.y>=this.minSlideCell.y&&e.y<=this.maxSlideCell.y&&e.x==this.minSlideCell.x)},t.prototype.pause=function(){if(!this.isPaused&&!this.isEnded){{this.getBounds()}this.isPaused=!0,MenuManager.instance.show(MenuManager.instance.pause,!1)}},t.prototype.unpause=function(){this.isPaused=!1,this.uncache(),MenuManager.instance.current==MenuManager.instance.pause&&MenuManager.instance.closeCurrent()},Object.defineProperty(t.prototype,"isActive",{get:function(){return null!=this.parent},enumerable:!0,configurable:!0}),t.prototype.init=function(e){this.reset(),this.showTargetIn=.3,this.mustSort=!0,this.levelTime=0,this.downCell=null,this.stopSliding(),this.hintIdAfterAction=0,this.lastMatches.length=0,this.infectionRemoveMove=0,CellObject.infectionCells.length=0;for(var t=0;t<this.chains.length;++t)this.chains[t].destroy();this.chains.length=0,removeClip(this.victoryText),this.showWinMenuIn=-1,this.uncache(),SoundsManager.instance.reset(),App.game.stage.addChild(this),this.isEnded=!1,this.isPressed=!1,this.currentMove=0;var s=0,i=0,r=0;s=-1,i=0,r=0,this.limitLeft=99;var a=[500,1500,3e3],n=null,o=window.location.href;-1!=o.indexOf("lvl")&&(o=o.split("lvl")[1],n=o);var c=n?new LevelData(e,n):LevelManager.instance.data[e];switch(this.isTimeLevel=c.isTimeLevel,this.levelData=c,this.cellData=c.cellData,s=c.targetData,i=c.customData,r=c.customData2,this.limitLeft=c.limitLeft,a=c.starValues,s){case 0:this.target=new BlockClearTarget;break;case 1:this.target=new ClearMarkTarget;break;case 2:this.target=new PushDownTarget(i);break;case 3:this.target=new ColorTarget(i,r);break;case 4:this.target=new ScoreTarget(i);break;case 5:this.target=new InfectionTarget;break;case-1:this.target=new InfiniteTarget}this.target.scores=a,this.score=0,this.generate(),this.hud.show(),this.needToUpdateBack=!0,this.update(0)},t.prototype.startAwardMode=function(){if(!this.isEnded&&!this.isHardLocked){this.isEnded=!0;for(var e=getArray("startAwardMode_bonusable"),s=0;s<this.fieldSize;++s)for(var i=0;i<this.fieldSize;++i){var r=this.cells[s][i];!r||!r.object||r.object.isMoving||r.object.isBonus||r.object.isPushable||e.push(r)}this.victoryText.alpha=0,this.victoryText.x=App.SCREEN_W/2,this.victoryText.y=App.SHIFT_H+500,this.victoryText.scaleX=this.victoryText.scaleY=1.3,this.hudLayer.addChild(this.victoryText),createjs.Tween.get(this.victoryText,{loop:!1}).wait(0).to({alpha:1,y:this.victoryText.y-220},500,createjs.Ease.quartInOut).wait(800).to({alpha:0,y:this.victoryText.y-400},500,createjs.Ease.quartInOut);
  3. for(var a=this.hud.movesText.localToGlobal(0,0),n=a.x,o=a.y+50,c=!this.isTimeLevel&&this.limitLeft>0,h=getArray("startAwardMode_bonused"),l=getArray("startAwardMode_bonuses"),p=getArray("startAwardMode_delays"),s=0;s<this.fieldSize;++s)for(var i=0;i<this.fieldSize;++i){var r=this.cells[s][i];r&&r.object&&r.object.isBonus&&(h.push(r),l.push(r.getBonusType()),p.push(c?.5:0))}var u=e.length,d=0,y=-1,g=this.limitLeft;if(this.isTimeLevel){var m=200*Math.round(this.limitLeft);m>0&&this.objects.push(t.pool.getText(m.toString(),null,0,n+lerp(-100,100,Math.random()),o+lerp(0,100,Math.random())))}else for(;g>0;){if(0>=u||d>=10)this.objects.push(t.pool.getText("300",null,0,n+lerp(-100,100,Math.random()),o+lerp(0,100,Math.random()))),this.limitLeft--;else{r=e.splice(getInt(u),1)[0];var f=.6+.065*d,v=1+getInt(2);l.push(v);var x=new EndBonusIndicator(n,o,r,f,v);this.objects.push(x),h.push(r),y=Math.max(y,x.totalTime),p.push(x.totalTime),++d}--u,g--}var S=getArray("startAwardMode_cleared");y+=.2;var b=-1;u=h.length;for(var d=0;u>d;++d){r=h[d];var X=this.getBonusGroup(r,l[d]);f=p[d];for(var Y=X.length,w=0;Y>w;++w){var T=X[w],C=this.getDistance(r,T,!1),_=(c?.6:.1)+f+C*FieldObject.GEM_KILL_DELAY;b=Math.max(_,b),T!=r&&-1!=h.indexOf(T)||0!=T.clearsIn.length||T.prepareToClear(_,l[d],-1,T==r),S.push(T),T.needRemoveObject=!0}r.scoreToAdd=this.getBonusScore(l[d],0)}for(u=S.length,b+=FieldObject.GEM_KILL_DELAY,d=0;u>d;++d)S[d].setTempBlock(!0,b);this.showWinMenuIn=1}},t.prototype.getStarAmount=function(){for(var e=0,t=1;3>=t;++t){var s=this.target.scores[t-1];this.score>=s&&(e=t)}return e},t.prototype.destroyObjects=function(){for(var e=this.objects.length,t=0;e>t;++t)this.objects[t].destroy();this.objects.length=0},t.prototype.onWin=function(){if(!this.isEnded){this.isEnded=!0,this.destroyObjects();for(var e=(this.getBounds(),this.objects.length),t=0;e>t;++t){var s=this.objects[t];if(s&&s.isDestroyed&&s instanceof JumpText){var i=s;i.finishMovement(),i.destroy()}}var r=this.getStarAmount();this.hud.forceFullUpdate(),LevelManager.instance.onLevelComplete(r,this.score);var a=this.levelData.levelNumber==LevelManager.LEVEL_AMOUNT-1?MenuManager.instance.result:MenuManager.instance.winMenu;a.isMenuActive||MenuManager.instance.show(a,!1)}},t.prototype.onLose=function(){if(!this.isEnded){this.isEnded=!0,this.destroyObjects();{this.getBounds()}MenuManager.instance.show(MenuManager.instance.loseMenu,!1);var e={levelNumber:this.levelData.levelNumber.toString(),time:t.instance.levelTime};safeTrackEvent("fail",e)}},t.prototype.resetSelects=function(){for(var e in this.cells){var t=this.cells[e];for(var s in t)var i=t[s]}},t.prototype.spawnBonus=function(e,t,s,i){void 0===i&&(i=null);var r,a,n,o,c=MenuManager.instance.isOnTutorial()?Tutorial.instance.getBonusSpawnCell():null;for(r=0;80>r;++r)if(a=getInt(this.fieldSize),n=getInt(this.fieldSize),o=c?c:this.cells[a][n],!(!o.object||o._isBlock||o.object.isBonus||o.object.isWaitingForDestruction||o.object.isMoving||o.isWaitingForClear||o.object.isPushable))return void(null==i?(o==c&&null!=c&&(e=1),this.objects.push(new BonusIndicator(t,s,o,e))):i.updateTarget(o));i&&i.destroy()},t.prototype.getBonusGroup=function(e,t,s){void 0===t&&(t=0),void 0===s&&(s=null);var i=0!=t?t:e.getComboBonusType(),r=getArray("getBonusGroup_m");switch(i){case 1:for(var a=0;a<this.fieldSize;++a){var n=this.cells[a][e.y];(n.isStable()||n.isBreakable)&&r.push(n)}break;case 2:for(var o=0;o<this.fieldSize;++o){var c=this.cells[e.x][o];(c.isStable()||c.isBreakable)&&r.push(c)}break;case 3:for(o=-2;2>=o;++o)for(a=-2+Math.abs(o);a<=2-Math.abs(o);++a){var h=e.x+a,l=e.y+o;if(h>=0&&l>=0&&l<this.fieldSize&&h<this.fieldSize){var p=this.cells[h][l];(p.isStable()||p.isBreakable)&&r.push(p)}}break;case 4:for(var a=0;a<this.fieldSize;++a)for(var o=0;o<this.fieldSize;++o){var p=this.cells[a][o];(p.isStable()||p.isBreakable)&&p.object&&!p.object.isColorBonus&&p.object.colorType==e.object.colorBonusType&&r.push(p)}}return r},t.prototype.getBonusDelay=function(){var e=0;return e},t.prototype.getDistanceDelay=function(e,t,s,i){var r=this.getDistance(e,t,!1);return FieldObject.GEM_KILL_DELAY*r*Math.pow(.75,i)},t.prototype.getMatchColor=function(e,t){if(!t)return e.getType();for(var s=[0,0,0,0,0,0],i=s.length,r=0;i>r;++r){var a=t[r].getType();if(a>=0&&(s[a]++,s[a]>=2))return a}return e.getType()},t.prototype.getCellByMousePos=function(e,s,i){void 0===i&&(i=!1);var r=this.stageToGrid(e,s),a=new createjs.Point;if(r.y<0&&r.y>=-.5&&(r.y=0),a.x=Math.floor(r.x),a.y=Math.floor(r.y),a.x<0||a.y<0||a.x>=this.fieldSize||a.y>=this.fieldSize)return null;var n=this.cells[a.x][a.y];return!i||getDistanceF(n.pos.x,n.pos.y,e,s)<t.TILE_SIZE/2?n:null},t.prototype.onMouseUp=function(e,t){if(this.isActive){if(this.isSliding){this.findMatches();for(var s=this.isSlidingHorizontally,i=s?this.minSlideCell.x:this.minSlideCell.y,r=s?this.maxSlideCell.x:this.maxSlideCell.y,a=this.canSwap(),n=getArray("onMouseUp_objects"),o=getArray("onMouseUp_cells"),c=i;r>=c;c++){var h=this.cells[s?c:this.minSlideCell.x][s?this.minSlideCell.y:c];h.object&&(o.push(h),n.push(h.object),a&&(h.object=null))}var l=n.length;if(a)for(var p=0;l>p;++p){var u=n[p],d=this.getCellByPos(u.pos.x,u.pos.y);d.setObject(u),u.isSwapped=!0}for(var y=!1,p=0;l>p;++p){var u=n[p];(!u.cell||!o[p].object||a&&u.cell==o[p])&&(y=!0),u.sprite.x=u.pos.x=u.cell.pos.x,u.sprite.y=u.pos.y=u.cell.pos.y,u.isMoving=!1}y&&(this.lastMatches.length=0)}this.stopSliding(),this.hud&&this.hud.onDown(e,t),this.isPressed=!1,this.downCell=null,this.updateChains(),this.lastMatches.length>0&&(++this.currentMove,--this.limitLeft),this.checkForMatches(!1)}},t.prototype.onMouseMove=function(e,t){this.getCellByMousePos(e,t,!0);this.movePos.x=e,this.movePos.y=t;var s=e-this.downPos.x,i=t-this.downPos.y,r=this.tileSize/10;if(!this.isSliding&&this.isPressed&&this.downCell&&(Math.abs(s)>r||Math.abs(i)>r)&&!this.downCell.isBlock()&&!this.downCell.isPushable){this.isSliding=!0;var a=Math.abs(s)>Math.abs(i),n=this.getMinMaxSlide(this.downCell,a);this.minSlideCell=n.min,this.maxSlideCell=n.max}this.isSliding&&this.updateChains()},t.prototype.updateChains=function(){this.isSliding&&this.findMatches();for(var e=this.isSliding?this.lastMatches:null,t=0;t<this.chains.length;++t)this.chains[t].needRemove=!0;if(e)for(var s=e.length,t=0;s>t;++t){for(var i=e[t],r=getArray("updateChains_o"),a=i.match.length,n=0;a>n;++n)r.push(this.getCellObjectByRealPos(i.match[n]));for(var o=null,n=0;n<this.chains.length;++n)if(this.chains[n].isEqual(r)){o=this.chains[n];break}null==o&&(o=new GemChain(r,i.color),this.chains.push(o)),o.needRemove=!1}for(var t=0;t<this.chains.length;++t)o=this.chains[t],o.needRemove&&(o.remove(),this.objects.push(o),this.chains.splice(t,1),t--)},t.prototype.onMouseDown=function(e,t){if(this.isActive&&(this.isSliding&&this.onMouseUp(e,t),this.downCell&&this.onMouseUp(e,t),this.stopSliding(),this.downCell=null,!(this.isLocked||this.isHardLocked||this.limitLeft<=0||this.isPaused||this.isWaitingForTarget))){var s=this.getCellByMousePos(e,t);s&&s.object&&(this.isPressed=!0,this.downCell=s,s.object.select(),this.downPos.x=this.movePos.x=e,this.downPos.y=this.movePos.y=t)}},t.prototype.getBonusScore=function(e,s,i){void 0===i&&(i=-1);var r=t.bonusScores[e];return r},t.getComboScore=function(e){for(var t=0,s=0;e>s;++s)t+=CellObject.BASE_SCORE+(s>2?s-2:0)*CellObject.BASE_SCORE/5;return t=10*Math.round(t/10)},t.prototype.getComboScore=function(e){return t.getComboScore(e)},t.prototype.getDistance=function(e,t,s){if(void 0===s&&(s=!1),!e||!t)return 1;var i=Math.abs(e.x-t.x);s&&(i=Math.min(i,Math.abs(i-this.fieldSize)));var r=Math.abs(e.y-t.y);return s&&(r=Math.min(r,Math.abs(r-this.fieldSize))),i+r},t.prototype.onBeforeSwap=function(){},t.prototype.onExit=function(){},t.prototype.onWrongMove=function(){},t.prototype.onSuccessMove=function(){},t.prototype.handleCombo=function(){},Object.defineProperty(t.prototype,"isOutOfLimit",{get:function(){return this.currentMove>=this.levelData.limitLeft},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"slideShiftX",{get:function(){return this.isSlidingHorizontally?this.movePos.x-this.downPos.x:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"slideShiftY",{get:function(){return this.isSlidingHorizontally?0:this.movePos.y-this.downPos.y},enumerable:!0,configurable:!0}),t.prototype.getCellByPos=function(e,t){for(var s=Math.floor(this.stageToGridX(e)),i=Math.floor(this.stageToGridY(t));0>s;)s+=this.fieldSize;for(0>i&&(i+=this.fieldSize);s>this.fieldSize-1;)s-=this.fieldSize;return i>this.fieldSize-1&&(i-=this.fieldSize),this.cells[s][i]},t.prototype.getCellObjectByRealPos=function(e){if(!e)return null;if(!this.isInSlide(e))return e.object;for(var t=this.slideShiftX,s=this.slideShiftY,i=e.pos.x-t,r=e.pos.y-s,a=this.maxSlideCell.pos.x-this.minSlideCell.pos.x+this.tileSize,n=this.maxSlideCell.pos.y-this.minSlideCell.pos.y+this.tileSize;i<this.minSlideCell.pos.x-this.tileSize/2;)i+=a;for(;r<this.minSlideCell.pos.y-this.tileSize/2;)r+=n;for(;i>this.maxSlideCell.pos.x+this.tileSize/2;)i-=a;for(;r>this.maxSlideCell.pos.y+this.tileSize/2;)r-=n;var o=this.getCellByPos(i,r);return o.object},t.prototype.getCellMatchType=function(e,t){var s=this.getCellObjectByRealPos(e);return null==s||s.cell.isWaitingForClear||!s.cell.isStatic()&&!t?-1:s.cell.getType()},t.prototype.returnSwapData=function(e,t,s){return{type:e.getType(),color:s}},t.prototype.canSwap=function(){for(var e=this.chains.length,t=0;e>t;++t){var s=this.chains[t];if(s.isActive)return!0}return!1},Object.defineProperty(t.prototype,"isHardLocked",{get:function(){return this.isLocked||this._isHardLocked},enumerable:!0,configurable:!0}),t.prototype.update=function(e){var t=this;if(this.isGenerated){this.isAfterSliding=!1,this.isPaused||!this.isActive||App.game.isHidden||(this.levelTime+=e),this.comboTimer>0&&(this.comboTimer--,0==this.comboTimer&&(this.comboAmount>this.maxCombo&&(this.maxCombo=this.comboAmount),this.handleCombo(),this.comboAmount=0,this.setCombo()));var s=this.isOutOfLimit||MenuManager.instance.current==Tutorial.instance||!this.needCheckComboExist(),i=MenuManager.instance.current!=Tutorial.instance&&this.timeSinceLastAction>(0==this.hintIdAfterAction?4:7)&&!this.isLocked&&!s,r=null,a=0;this._isHardLocked=!1,this.isLocked=!1,CellObject.infectionCells.length=0;for(var n=0;n<this.fieldSize;++n)for(var o=0;o<this.fieldSize;++o){var c=this.cells[n][o];c.update(e),this.mustSort=this.mustSort||c.object&&c.object.isMoving,null!=c.object||c.isBlock()||++a,this.isLocked=this.isLocked||c.object&&(c.object.isMoving||c.object.isWaitingForDestruction)||c.isWaitingForClear||c.isChangingType,c.object&&c.object.hasInfection&&CellObject.infectionCells.push(c),this._isHardLocked=this._isHardLocked||this.isLocked||c.isTempBlock&&!c._isBlock,this.isLocked||s||(r||s||(r=this.canMakeCombo(c)),s=s||null!=r)}for(var h=this.objects.length,l=0;h>l;++l){var p=this.objects[l];p&&!p.isDestroyed?(p.update(e),this.isLocked=this.isLocked||p.isLocked&&!p.isDestroyed):(this.objects.splice(l,1),l--,h--)}if(a>0){var u=this.addObjects();u+=this.pushObjects(),this.isLocked=this.isLocked||u>0}this.isLocked||this.isEnded||this.isPressed?this.timeSinceLastAction=0:(this.timeSinceLastAction+=e,this.timeSinceLastAction>5&&!MenuManager.instance.isOnTutorial()&&i&&s&&r&&this.playHint(r)),this.isHardLocked||this.isLocked||s||this.isEnded||MenuManager.instance.current==Tutorial.instance||this.shuffle(),this.showWinMenuIn>0&&!this.isHardLocked&&(this.showWinMenuIn-=e,this.showWinMenuIn<=0&&(this.isEnded=!1,this.onWin())),this.isLocked=this.isLocked||this.isEnded,this.isHardLocked||this.checkForMatches(),!this.isPaused&&!this.isHardLocked&&!this.isEnded&&!this.target.isCompleted&&this.limitLeft<=0&&this.playLoseIn>0&&(this.playLoseIn-=e,this.playLoseIn<=0&&this.onLose()),this.isWaitingForTarget&&!this.isHardLocked&&(this.showTargetIn-=e,this.isWaitingForTarget||(Tutorial.instance.hasTutorial(this.levelData.levelNumber)&&needTutorial?MenuManager.instance.show(MenuManager.instance.tutorial,!1):MenuManager.instance.show(MenuManager.instance.target,!1))),!this.isTimeLevel||this.isWaitingForTarget||MenuManager.instance.target.isMenuActive||this.isPaused||MenuManager.instance.pause.isMenuActive||MenuManager.instance.tutorial.isMenuActive||this.isEnded||(this.limitLeft-=e),this.mustSort&&(this.gemLayer.sortChildren(function(e,s){return t.sortObjects(e,s)}),this.mustSort=!1);var d=CellObject.infectionCells.length;d>0&&this.infectionRemoveMove<this.currentMove&&!this.isLocked&&this.placeNewInfection(),this.needToUpdateBack&&(this.needToUpdateBack=!1),this.hud.update(e);for(var l=0;l<this.chains.length;++l)this.chains[l].update(e)}},t.prototype.playHint=function(e){this.timeSinceLastAction=0,e.object.playJellyAnimation(2,1,.55+.25*Math.random())},t.prototype.sortObjects=function(e,t){var s=~~(e.y/this.tileSize),i=~~(t.y/this.tileSize);return i>s?-1:s>i?1:0},t.prototype.shuffle=function(){this.hud.playShuffleAnimation();for(var e=getArray("checkIfComboExists_all"),t=0;t<this.fieldSize;++t)for(var s=0;s<this.fieldSize;++s)this.isGoodForClick(this.cells[t][s])&&e.push(this.cells[t][s]);var i=e.length;this.isLocked=!0;for(var r=80,a=!1,n=.6;r>=0&&!a;){r--;var o=getInt(i),c=e[o];if(!c.object.isPushable){var h=getArray("checkIfComboExists_neigh");h.push(c);for(var l=0;4>l;++l)if(t=c.x+(0==l?1:1==l?-1:0),s=c.y+(2==l?1:3==l?-1:0),t>=0&&s>=0&&t<this.fieldSize&&s<this.fieldSize){var p=this.cells[t][s];if(this.isGoodForClick(p)&&(h.push(p),h.length>=3)){var u=(c.getType()+1)%this.assetNumber;a=!0;for(var d=0;d<h.length;++d)h[d].prepareToChangeType(n+lerp(0,.2,Math.random()),u),o=e.indexOf(h[d]),-1!=o&&(e.splice(o,1),i--);break}}}}for(;i>0;){var o=getInt(i);i--;var c=e.splice(o,1)[0];c.prepareToChangeType(n+lerp(0,.2,Math.random()))}return;var o,c,h,l,p,d,o,c,h,l,p,d},t.prototype.setCombo=function(){},t.prototype.isGoodForClick=function(e){return e.object&&-1!=e.object.colorType&&!e.object.isMoving&&!e.isWaitingForClear&&5!=e.object.colorType&&!e.isChangingType&&!e.isObjectBlocked},t.prototype.getFillZone=function(e,t,s){if(void 0===s&&(s=-1),0>e||0>t||e>=this.fieldSize||t>=this.fieldSize)return null;var i=getArray("getFillZone_res"),r=getArray("getFillZone_toCheck"),a=this.cells[e][t];if(!this.isGoodForClick(a))return i;var n=a.object.colorType;r.push(a);for(var o=0,c=r.length;c>o&&(0>s||s>o);){var h=r[o];i.push(h),++o;for(var l=0;9>l;++l){var p=h.x+l%3-1,u=h.y+Math.floor(l/3)-1;if(p>=0&&u>=0&&p<this.fieldSize&&u<this.fieldSize){var d=this.cells[p][u];d.object&&d.object.isSameColorNumber(n)&&!d.object.isMoving&&-1==r.indexOf(d)&&(r.push(d),++c)}}}return i},t.prototype.onGroupRemove=function(){},t.prototype.pushObjects=function(e,t){void 0===e&&(e=-1),void 0===t&&(t=-1);var s=0;return s+=this.pushObjectsDown(e,t),s+=this.pushHoles()},t.prototype.pushObjectsDown=function(e,t){void 0===e&&(e=-1),void 0===t&&(t=-1);for(var s=0,i=0;i<this.fieldSize;i++)if(-1==e||i==e)for(var r=this.fieldSize-1;r>=0;r--)if(-1==t||r==t){var a=this.cells[i][r],n=a._isBlock||a.isTempBlock;if(!n&&null==a.object&&!n){for(var o=-1,c=!1,h=r-1;h>=0;h--){var l=this.cells[i][h],p=l._isBlock||l.isTempBlock;if(p||l.isWaitingForClear){c=!0;break}if(null!=l.object&&!p&&!l.object.isMoving){o=h;break}}if(-1!=o&&!c){var u=a.pos;l.object.moveTo(u.x,u.y,!1,.05),a.setObject(l.object),l.object=null,++s}}}return s},t.prototype.pushHoles=function(){for(var e=0,t=0;t<this.fieldSize;++t)for(var s=this.isEnded,i=0;i<this.fieldSize;++i){var r=this.cells[t][i],a=r._isBlock||r.isTempBlock;if(a)s=!0;else if(null==r.object&&s){if(r.blockWasRemovedRecently)continue;var n=Math.random()>.5,o=getArray("pushHoles_points");o.push(new createjs.Point(t+(n?1:-1),i-1),new createjs.Point(t+(n?-1:1),i-1));for(var c=0;2>c;c++){var h=o[c];if(h.x>=0&&h.y>=0&&h.x<this.fieldSize&&h.y<this.fieldSize){var l=this.cells[h.x][h.y];if(l.isStable()&&null!=l.object&&!l.isWaitingForClear&&!l.isTempBlock&&!l.isColorBlocked){var p=r.pos;l.object.moveTo(p.x,p.y,!1,.05,!0),r.setObject(l.object),l.object=null,++e;break}}}}else null!=r.object&&s&&(s=!1)}return e},t.prototype.addObjects=function(e,s){if(void 0===e&&(e=-1),void 0===s&&(s=-1),this.isEnded)return 0;for(var i=0,r=0;r<this.fieldSize;r++)if(-1==e||r==e)for(var a=!1,n=0;n<this.fieldSize;n++)if(-1==s||n==s)if(this.cells[r][n].object||this.cells[r][n].isBlock()){if(this.isGenerated)break;a=!0}else{var o=this.gridToStage(r,n),c=-3;if(a){if(this.getCellDataColor(r,n)<=0)continue;c=n}var h=this.getObjectType(r,n),l=t.pool.getObject(this.cells[r][n],this.gridToStageX(r),this.gridToStageY(c),this.assetNumber,h,this.levelData.typeEnable,this.levelData.shieldProbability);c!=n&&l.moveTo(o.x,o.y),this.cells[r][n].setObject(l),++i}return i},t.prototype.getObjectType=function(e,t){if(!this.isGenerated){var s=this.getCellDataColor(e,t);return s-1}return this.target.getExactType(e,t)},t.getCellDataType=function(e,s,i){return e?parseInt(e.charAt(2*(i+s*t.LEVEL_H)+1)):-1},t.prototype.getCellDataColor=function(e,t){return this.cellData?parseInt(this.cellData.charAt(2*(t+e*this.fieldSize)+2)):-1},t.prototype.placeNewInfection=function(){var e=CellObject.infectionCells.concat(),t=e.length,s=getArray("placeNewInfection_directions");for(s.push(0,1,2,3);t>0;){var i=getInt(t),r=e.splice(i,1)[0];t--;for(var a=s.length;a>0;){var n=s.splice(getInt(a),1)[0];a--;var o=r.x+(0==n?-1:1==n?1:0),c=r.y+(2==n?-1:3==n?1:0);if(o>=0&&c>=0&&o<this.fieldSize&&c<this.fieldSize){var h=this.cells[o][c];if(h&&!h.isWaitingForClear&&h.object&&!h.isBlock()&&this.isGoodForClick(h))return h.setInfection(),void(this.infectionRemoveMove=this.currentMove)}}s.push(0,1,2,3)}},t.prototype.generateCells=function(){for(var e=0;e<this.fieldSize;e++)for(var s=0;s<this.fieldSize;s++){var i=this.cells[e][s],r=t.getCellDataType(this.cellData,e,s);switch(r){case 0:case-1:break;case 1:i.setBlock();break;case 2:i.setBlock(1);break;case 3:i.setBlock(2);break;case 4:i.setInfection();break;case 5:i.setMark(1);break;case 6:i.setMark(2);break;case 7:i.setBlock(0,0,!0);break;case 8:i.setBlock(0,1);break;case 9:i.setBlock(0,2)}var a=this.getCellDataColor(e,s);6==a&&i.setBlock(0,1)}this.generateTiles()},t.prototype.generateField=function(){this.addObjects(),this.target.onLevelGenerated();var e=0;for(this.findMatches(!0);this.lastMatches.length>0&&50>e;){++e;for(var s=this.lastMatches.length,i=0;s>i;++i)for(var r=this.lastMatches[i],a=r.match.length,n=0;a>n;++n){var o=r.match[n];o.changeObjectType(getInt(1e3)%this.assetNumber,!0)}this.findMatches(!0)}for(var i=0;i<this.fieldSize;i++)for(var n=0;n<this.fieldSize;n++){var o=this.cells[i][n],c=t.getCellDataType(this.cellData,i,n);switch(c){case 8:o.object&&o.object.setShield(1)}}},t.prototype.generateTiles=function(){this.tileLayer.removeAllChildren(),this.tileLayer.uncache();var e=createBitmap("back1");this.tileLayer.addChildAt(e,0);for(var t=getArray("generateTiles_subLayers"),s=0;7>s;++s){var i=new createjs.Container;t.push(i),this.tileLayer.addChild(i)}for(var r=this.levelData.tileData.length,s=0;r>s;++s){var a=this.levelData.tileData[s],n=a[4],o=!1;"tile"==n?n="tile_"+(getInt(8)+1):"grass"==n&&(o=!0,n="grass"+(getInt(3)+1));var c=createSpriteFromSpritesheet(n,1);c.rotation=a[5],c.x=a[1],c.y=a[2],o?(setReg(c,.5,.5),c.rotation=360*Math.random()):c.regX=c.regY=-1;var h=a[3];t[h].addChild(c)}this.tileLayer.cache(0,0,App.SCREEN_W,App.FULL_SCREEN_H),this.tileLayer.removeAllChildren(),this.needToUpdateBack=!0},t.prototype.generate=function(){this.assetNumber=5,this.generateCells(),this.generateField(),this.isGenerated=!0},t.prototype.getRandomType=function(){this.fieldCount++;var e=getInt(1e3),t=e%this.assetNumber;return t},t.prototype.getChangeType=function(){return getInt(1e3)%this.assetNumber},t.prototype.setBackground=function(e){this.background=e},t.prototype.setFieldProps=function(e,t,s,i,r){this.tileSize=e,this.offsetX=t,this.offsetY=s,this.fieldSize=i,this.fieldSize=r},t.gridToStage=function(e,s){return new createjs.Point(t.SHIFT_X+(e+.5)*t.TILE_SIZE,t.SHIFT_Y+(s+.5)*t.TILE_SIZE)},t.prototype.gridToStage=function(e,t){return new createjs.Point(this.offsetX+(e+.5)*this.tileSize,this.offsetY+(t+.5)*this.tileSize)},t.prototype.stageToGrid=function(e,t){return new createjs.Point((e-this.offsetX)/this.tileSize,(t-this.offsetY)/this.tileSize)},t.prototype.stageToGridX=function(e){return(e-this.offsetX)/this.tileSize},t.prototype.stageToGridY=function(e){return(e-this.offsetY)/this.tileSize},t.prototype.gridToStageX=function(e){return this.offsetX+(e+.5)*this.tileSize},t.prototype.gridToStageY=function(e){return this.offsetY+(e+.5)*this.tileSize},t.prototype.getCellCenterCoordinates=function(e,t){return new createjs.Point(this.offsetX+(e+.5)*this.tileSize,this.offsetY+(t+.5)*this.tileSize)},Object.defineProperty(t.prototype,"isWaitingForTarget",{get:function(){return this.showTargetIn>0},enumerable:!0,configurable:!0}),t.prototype.reset=function(){if(this.isActive){this.gemLayer.removeAllChildren(),removeClip(this),this.isEnded=!1,this.currentMove=0,this.playLoseIn=1.3,this.uncache(),this.isPaused=!1,this._isHardLocked=!1,this.showTargetIn=.3,this.isGenerated=!1,this.showWinMenuIn=-1;for(var e=0;e<this.fieldSize;++e)for(var s=0;s<this.fieldSize;++s)this.cells[e][s].reset();for(var i=0;i<this.chains.length;++i)this.chains[i].destroy();this.chains.length=0;for(var r=this.objects.length,i=0;r>i;++i)this.objects[i].destroy();this.objects.length=0,this.target=null,this.hud.reset(),t.pool.resetObjects()}},t.prototype.findUsualMatches=function(e,t){for(var s=-1,i=getArray("findUsualMatches_currentMatch"),r=0;2>r;++r)for(var a=0;a<this.fieldSize;a++)for(var n=0;n<this.fieldSize;n++){var o=0==r?a:n,c=0==r?n:a,h=this.cells[o][c],l=this.getCellMatchType(h,t),p=!h.object||0>l||!h.isStatic()&&!t,u=-1!=l&&-1!=s&&l!=s;p=p||u;var d=n==this.fieldSize-1;if(p&&(!d||u)||-1==l||(s=l,i.push(h)),p=p||d){var y=i.length;y>=3&&e.push(new MatchObject(i)),s=-1,y>0&&(i.length=0),u&&!d&&-1!=l&&(s=l,i.push(h))}}},t.prototype.needCheckComboExist=function(){return!(this.hud.isShuffleActive()||this.isWaitingForTarget||MenuManager.instance.current==MenuManager.instance.target||this.isHardLocked)},t.prototype.canMakeCombo=function(e){if(!this.needCheckComboExist())return null;var t=e.x,s=e.y;if(this.isGoodForClick(e))for(var i=0;2>i;++i)for(var r=0==i,a=-2;2>=a;a++)if(0!=a){var n=t+(r?a:0),o=s+(r?0:a);if(!(0>n||0>o||n>=this.fieldSize||o>=this.fieldSize)){var c=this.cells[n][o];if(this.isGoodForClick(c)&&c.getType()==e.getType()){var h=a/Math.abs(a),l=1==Math.abs(a)?a+h:a-h,p=t+(r?l:0),u=s+(r?0:l);if(!(0>p||0>u||p>=this.fieldSize||u>=this.fieldSize)){var d=this.cells[p][u];if(this.isGoodForClick(d))for(var y=!r,g=this.getMinMaxSlide(d,y),m=g.min,f=g.max,v=y?m.x:m.y;v<(y?f.x:f.y);v++){var x=y?v:d.x,S=y?d.y:v;if(!(0>x||0>S||x>=this.fieldSize||S>=this.fieldSize)){var b=this.cells[x][S];if(this.isGoodForClick(b)&&b.getType()==e.getType())return b}}}}}}return null},t.prototype.getMinMaxSlide=function(e,t){for(var s=e,i=e,r=0;2>r;++r)for(var a=0==r?1:-1,n=t?e.x:e.y;n<(t?this.fieldSize:this.fieldSize)&&n>=0;n+=a){var o=this.cells[t?n:e.x][t?e.y:n];if(o.isBlock()||o.isColorBlocked||o.isPushable)break;o.object&&((t&&o.x<e.x||!t&&o.y<e.y)&&(s=o),(t&&o.x>e.x||!t&&o.y>e.y)&&(i=o))}return{min:s,max:i}},t.prototype.getChameleonGroup=function(e,t){for(var s=(this.isSlidingHorizontally?0:1,0);1>=s;++s){var i=0==s?e.y:e.x,r=limit((0==s?e.x:e.y)-2,0,this.fieldSize-1),a=limit((0==s?e.x:e.y)+2,0,this.fieldSize-1),n=0,o=a-r+1-3;if(!(0>o))for(var c=getArray("getChameleonGroup_currentMatch"),h=-1,l=n;o>=l;++l)for(var p=r+l;a>=p;p++){var u=0==s?p:i,d=0==s?i:p,y=0>u||0>d||u>=this.fieldSize||d>=this.fieldSize,g=y?null:this.cells[u][d],m=y?-1:this.getCellMatchType(g,!1),f=10==m,v=y||!g.object||0>m||!g.isStatic(),x=-1!=m&&-1!=h&&m!=h&&!f;v=v||x;var S=p==a;if(v&&(!S||x)||-1==m||(f||(h=m),c.push(g)),v=v||S){var b=c.length;if(b>=3)return void t.push(new MatchObject(c));h=-1,b>0&&(c.length=0),x&&!S&&-1!=m&&(h=m,c.push(g))}}}},t.prototype.getInitMatchData=function(e){for(var t=getArray("getInitMatchData_toCheck"),s=e.length,i=0;s>i;++i){for(var r=e[i],a=null,n=1e10,o=!1,c=r.match,h=c.length,l=0;h>l;++l){var p=c[l];p.object&&p.object.timeSinceStop<.5&&p.object.timeSinceStop<n&&!p.object.isBonus&&p.object.isSwapped&&(o=!0,a=p,n=p.object.timeSinceStop)}if(!a)for(var l=0;h>l;++l){var p=c[l];p.object&&p.object.isBonus&&(a=p)}if(!a)for(var l=0;h>l;++l){var p=c[l];p.object&&p.object.isBonus&&(a=p)}if(!a)for(var l=0;h>l;++l){var p=c[l];p.object&&(a=p)}t.push({match:r,main:a,delay:.01,bonus:0,gen:0,swap:o})}return t},t.prototype.checkForMatches=function(e){if(void 0===e&&(e=!0),(!this.isSliding&&!this.isLocked||this.isAfterSliding)&&(e&&this.findMatches(),this.lastMatches&&0!=this.lastMatches.length)){this.isLocked=!0;{this.lastMatches.length}this.removeMatches(this.lastMatches)}},t.prototype.checkMatchBonus=function(e,t,s,i,r,a){for(var n=null,o=0;o<e.length;++o){var c=e.getCell(o);if(c&&c.object&&c.object.isBonus&&!c.object.isMoving&&!c.isWaitingForClear&&-1==a.indexOf(c)){var h=c.getBonusMatch(i,e);h&&h.match.length>0&&(n||(n=getArray("checkMatchBonus_res")),n.push({match:h.match,main:c,delay:h.delay+s+this.getDistance(t,c)*FieldObject.GEM_KILL_DELAY,bonus:c.object.bonusType,gen:r+1,swap:!1}))}}return n&&n.length>0?n:null},Object.defineProperty(t.prototype,"canCheckColorChain",{get:function(){return!this.isAfterSliding&&!this.isSliding},enumerable:!0,configurable:!0}),t.prototype.findColorMatches=function(e){if(this.isAfterSliding||this.isSliding)for(var t=0;t<this.fieldSize;++t)for(var s=0;s<this.fieldSize;++s){var i=this.cells[t][s];if(i.object&&i.object.isChameleon&&this.isInSlide(i)&&(this.getChameleonGroup(this.getCellByPos(i.object.pos.x,i.object.pos.y),e),e.length>0))return}},t.prototype.findMatches=function(e){void 0===e&&(e=!1);try{this.lastMatches.length=0,this.findUsualMatches(this.lastMatches,e),this.findColorMatches(this.lastMatches)}catch(t){this.lastMatches.length=0}},t.prototype.addScore=function(e,s,i){(isNaN(e)||0>=e)&&(e=100),this.objects.push(t.pool.getText(e.toString(),null,0,s,i))},t.prototype.removeMatches=function(e){for(var t=this.lastMatches.length,s=0;t>s;++s)for(var i=0;t>i;++i){var r=this.lastMatches[s],a=this.lastMatches[i];s!=i&&r&&a&&r.tryJoin(a)&&(this.lastMatches[i]=null)}var t=this.lastMatches.length;for(s=0;t>s;++s)null==this.lastMatches[s]?(this.lastMatches.splice(s,1),s--,t--):this.lastMatches[s].updateColorAndShape();this.hintIdAfterAction=0,this.timeSinceLastAction=0,++this.matchID;for(var n=this.getInitMatchData(e),o=0,c=0,h=!0,l=getArray("removeMatches_allMatches"),p=getArray("removeMatches_bonusSpawns");o<n.length;){{var u=n[o].match,d=n[o].main,y=n[o].delay,g=n[o].bonus,m=n[o].gen;n[o].swap}++o,l.push(u);var f=this.checkMatchBonus(u,d,y,g,m,p);if(f)for(var v=0;v<f.length;++v)n.push(f[v]);var x=u.trySpawnBonus();x&&p.push(x);for(var S=1e10,s=0;s<u.length;++s){var b=this.getDistance(d,u.getCell(s),!1);4==g&&(b*=.7);var X=u.delays?u.delays[s]:y+b*FieldObject.GEM_KILL_DELAY,Y=u.getCell(s);-1==p.indexOf(Y)&&(Y.prepareToClear(X,g),c=Math.max(c,X),S=Math.min(S,X))}SoundsManager.instance.playSound("remove"+(getInt(5)+1),1e3*S),this.addScore(this.getComboScore(u.length),u.averagePos.x,u.averagePos.y),h=!1}for(c+=3*FieldObject.GEM_KILL_DELAY,s=0;s<l.length;++s)for(var i=0;i<l[s].length;++i)Y=l[s].getCell(i),Y.setTempBlock(!0,c),Y.object&&(Y.object.isSwapped=!1)},t.bonusScores=[0,300,300,500,900],t.COMBO_TIME=70,t.OLD_TILE_SIZE=50,t.TILE_SIZE=80,t.LEVEL_W=8,t.LEVEL_H=8,t.TILE_SIZE_FACTOR=t.TILE_SIZE/t.OLD_TILE_SIZE,t.LINE_BONUS_SIZE=6,t.BOMB_BONUS_SIZE=8,t.COLOR_BONUS_SIZE=10,t.SHIFT_X=0,t.SHIFT_Y=209,t}(createjs.Container),App=function(){function e(){var t=this;this.atlases=[],this.musicPlayed=!1,this.gameTime=0,this.isMouseDown=!1,this.isVisible=!0,this.visibilityState=null,this.isPlayingOnMobile=!1,this.isPaused=!1,this.isHidden=!1,e.game=this,this.isPlayingOnMobile=isMobile(),window.top!=window&&(document.getElementById("header").style.display="none");try{if(-1!=navigator.appVersion.indexOf("Win")){var s=document.getElementsByTagName("body")[0];s.style.overflow="hidden"}}catch(i){}this.stage=new createjs.Stage("canvas"),createjs.Touch.enable(this.stage,!0),this.preloader=new Preloader,setTimeout(function(){window.scrollTo(0,1)},1e3),viewporter&&viewporter.ACTIVE?(window.addEventListener("viewportready",function(){return t.resize()},!0),window.addEventListener("viewportchange",function(){return t.resize()},!0)):window.addEventListener("resize",function(){return t.resize()},!0),this.resize(),window.addEventListener("touchstart",function(){}),createjs.Ticker.setFPS(60),createjs.Ticker.addEventListener("tick",function(e){t.update(e)}),this.stage.addEventListener("stagemousedown",function(e){t.onPreloaderDown(e)});try{}catch(i){}window.addEventListener("DOMMouseScroll",function(e){return t.stopScroll(e)},!1),window.onscroll=function(e){return t.stopScroll(e)},window.addEventListener("scroll",function(e){return t.stopScroll(e)},!0),window.ondragstart=function(e){return t.stopScroll(e)},window.ondrag=function(e){return t.stopScroll(e)},window.addEventListener("ondrag",function(e){return t.stopScroll(e)},!0),window.addEventListener("dragstart",function(e){return t.stopScroll(e)},!0),window.addEventListener("keydown",function(e){return t.onKeyDown(e)})}return e.prototype.onKeyDown=function(e){if(needCheats)switch(e.keyCode){case 49:AwardManager.onLevelComplete(2);break;case 50:AwardManager.addArtifact(1e5);break;case 51:AwardManager.addGem(1e6);break;case 52:AwardManager.onLevelComplete(Math.round(LevelManager.LEVEL_AMOUNT/2));break;case 53:AwardManager.onLevelComplete(LevelManager.LEVEL_AMOUNT-1)}},e.prototype.stopScroll=function(e){void 0===e&&(e=null);try{e.preventDefault(),e.returnValue=!1,document.body.scrollTop=0}catch(e){}},e.prototype.loadApi=function(){e.game.onLoadComplete()},e.prototype.onLoadComplete=function(){var e=this;this.stage.removeAllEventListeners(),this.resize(),this.levelManager=new LevelManager;var t=ore_atlas_alpha;createFontFrames(t),t.images[0]=this.preloader.loader.getResult("art.png"),spriteSheetInfo=t;for(var s=0;s<FieldObject.assetNames.length;++s)createAnimation(t,"chain_"+FieldObject.assetNames[s],FieldObject.assetNames[s],1,23,1,null,0,2),createAnimation(t,FieldObject.assetNames[s]+"_gone",FieldObject.assetNames[s]+"_gone",1,10,1,null,50,1);createAnimation(t,"color_gone","color_gone",1,10,1,null,50,1),createAnimation(t,"tutorial_effect","tutorial_effect",1,20),createAnimation(t,"explosion","explosion",6,21,1,null,50,1),createAnimation(t,"cir_fire","cir_fire",1,6,1,null,0,1,1),createAnimation(t,"fire_bonus","fire",1,5,1,null,0,1,1),createAnimation(t,"fireball","fireball",1,4,1,null,0,1,1),this.atlases.push(new createjs.SpriteSheet(t)),this.animationManager=new AnimationManager,this.animationManager.putAnimation("button",button_anim,0),this.animationManager.putAnimation("logo_anim",logo_anim,0),this.animationManager.putAnimation("transition",transition_anim,0),t=ore_atlas_linear,t.images[0]=this.preloader.loader.getResult("art_linear.png"),createFontFrames(t),this.atlases.push(new createjs.SpriteSheet(t)),t=ore_atlas_jpg,t.images[0]=this.preloader.loader.getResult("art.jpg"),this.atlases.push(new createjs.SpriteSheet(t)),t=ore_atlas_font,t.images[0]=this.preloader.loader.getResult("artFont"),createFontFrames(t),this.atlases.push(new createjs.SpriteSheet(t)),this.animationManager.putAnimation("character",char_anim,0),this.animationManager.putAnimation("pointer",pointer_anim,0),Match3Level.pool||(Match3Level.pool=new ObjectPool),Match3Level.instance=new Match3Level,this.soundManager=new SoundsManager,this.stage.addEventListener("stagemousedown",function(t){e.onDown(t)}),this.stage.addEventListener("stagemouseup",function(t){e.onUp(t)}),this.stage.addEventListener("stagemousemove",function(t){e.onMove(t)}),this.menuManager=new MenuManager,splashScreenData=apiInstance?apiInstance.Branding.getSplashScreen():null,splashScreenData&&apiInstance&&needShowSplash?(this.preloader.disable(),apiInstance.Branding.displaySplashScreen(function(){return MenuManager.instance.show(MenuManager.instance.mainMenu,!1)
  4. })):this.menuManager.show(this.menuManager.mainMenu,!1),this.resize(),this.isPlayingOnMobile||this.soundManager.playMusic(),this.setVisibilityListener()},e.prototype.showAds=function(){var e=this;apiInstance&&apiInstance.GameBreak.request(function(){return e.pauseGame()},function(){return e.resumeGame()})},e.prototype.pauseGame=function(){this.isPaused=!0,SoundsManager.instance.pauseMusic()},e.prototype.resumeGame=function(){this.isPaused=!1,SoundsManager.instance.resumeMusic()},e.prototype.update=function(t){this.isPaused||(document.body.scrollTop=0,this.stage.update(t),e.level&&e.level.isActive&&e.level.update(t.delta/1e3),this.menuManager&&this.menuManager.update(t.delta/1e3),this.preloader&&this.preloader.update(t.delta/1e3),this.soundManager&&this.soundManager.update(t.delta/1e3),this.gameTime+=t.delta/1e3)},e.prototype.onPreloaderDown=function(e){this.preloader.onDown(e.stageX,e.stageY),e.nativeEvent&&e.preventDefault&&e.preventDefault()&&e.stopPropagation()},e.prototype.onDown=function(t){if(!this.isPaused){this.isMouseDown=!0,this.soundManager.playMusic();var s=MenuManager.instance.credits.isMenuActive?MenuManager.instance.credits:MenuManager.instance.current,i=s==this.menuManager.target;s&&s.onDown(t.stageX,t.stageY),!e.level||i||s==Tutorial.instance&&!Tutorial.instance.tapAllowed||e.level.onMouseDown(t.stageX,t.stageY),this.onMove(t),t.nativeEvent&&t.preventDefault&&t.preventDefault()&&t.stopPropagation()}},e.prototype.onMove=function(t){if(!this.isPaused&&this.isMouseDown){var s=MenuManager.instance.current,i=s==this.menuManager.target;!e.level||i||s==Tutorial.instance&&!Tutorial.instance.tapAllowed||e.level.onMouseMove(t.stageX,t.stageY),t.nativeEvent&&t.preventDefault&&t.preventDefault()&&t.stopPropagation()}},e.prototype.onUp=function(t){if(!this.isPaused){this.isMouseDown=!1;var s=MenuManager.instance.credits.isMenuActive?MenuManager.instance.credits:MenuManager.instance.current;s&&s.onUp(t.stageX,t.stageY);var i=s==this.menuManager.target;!e.level||i||s==Tutorial.instance&&!Tutorial.instance.tapAllowed||e.level.onMouseUp(t.stageX,t.stageY),t.nativeEvent&&t.preventDefault&&t.preventDefault()&&t.stopPropagation()}},e.prototype.resize=function(){var t=!this.isPlayingOnMobile,s=1,i=e.SCREEN_W*s,r=e.FULL_SCREEN_H*s;t=t&&window.innerWidth>i&&window.innerHeight>r;var a=t?i:window.innerWidth,n=t?r:window.innerHeight,o=this.stage;if(isOrientationLocked());else{var c=o.canvas.width,h=o.canvas.height,l=a/c,p=n/e.SCREEN_H,u=Math.min(l,p),d=c*u,y=h*u;o.canvas.style.width=d+"px",o.canvas.style.height=y+"px",e.ACTUAL_H=limit(e.SCREEN_H*p/u,e.SCREEN_H,e.FULL_SCREEN_H);{var g=(n-y)/2;o.canvas.parentElement}e.CURRENT_SHIFT=g/u,o.canvas.style.top=g+"px",this.stage.canvas.style.left=(window.innerWidth-d)/2+"px",t&&(this.stage.canvas.style.top=(window.innerHeight-y)/2+"px")}this.menuManager&&this.menuManager.onResize(),this.preloader&&this.preloader.onResize()},e.prototype.setVisibilityListener=function(){var e=this,t="hidden",s=function(){return e.onVisibilityChange()};t in document?(document.addEventListener("visibilitychange",s),this.visibilityState="visibilityState"):(t="mozHidden")in document?(document.addEventListener("mozvisibilitychange",s),this.visibilityState="mozVisibilityState"):(t="webkitHidden")in document?(document.addEventListener("webkitvisibilitychange",s),this.visibilityState="webkitVisibilityState"):(t="msHidden")in document?(document.addEventListener("msvisibilitychange",s),this.visibilityState="msVisibilityState"):"onfocusin"in document?document.onfocusin=document.onfocusout=s:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=s},e.prototype.onVisibilityChange=function(){var e=this.visibilityState&&document[this.visibilityState]&&"hidden"==document[this.visibilityState];this.isHidden=e,SoundsManager.instance.musicPaused&&!e?SoundsManager.instance.resumeMusic():e&&!SoundsManager.instance.musicPaused&&SoundsManager.instance.pauseMusic()},e.SCREEN_W=640,e.SCREEN_H=750,e.FULL_SCREEN_H=960,e.ACTUAL_H=e.SCREEN_H,e.SHIFT_H=(e.FULL_SCREEN_H-e.SCREEN_H)/2,e.CURRENT_SHIFT=0,e.episode=1,e}(),ActionType;!function(e){e[e.ACTION_STOP=0]="ACTION_STOP",e[e.ACTION_GOTO_AND_PLAY=1]="ACTION_GOTO_AND_PLAY",e[e.ACTION_GOTO_AND_STOP=2]="ACTION_GOTO_AND_STOP"}(ActionType||(ActionType={}));var FrameSelector=function(){function e(e){this.object=e,this.names=new Array,this.values=new Array}return e.prototype.getFrame=function(){return 0},e.prototype.testLayer=function(){return!0},e}(),SingleFlameSelector=function(e){function t(t){e.call(this,null),this.frame=t}return __extends(t,e),t.prototype.getFrame=function(){return this.frame},t}(FrameSelector),AnimatedNode=function(e){function t(t,s,i){e.call(this),this.animation=t,this.parts=new Array,this.isPlaying=!0,this.actions=new Array,this.hasCycle=!1,this.owner=null,this.skins=new Array,this.frameSelector=i,this.initFrameDelay=s,this.initParts(),this.mouseChildren=!1}return __extends(t,e),t.prototype.createUsualSprite=function(e){return createSpriteFromSpritesheet(e)},t.prototype.initParts=function(){this.setFrameDelay(this.animation.forceFrameDelay>0?this.animation.forceFrameDelay:Math.abs(this.initFrameDelay)<1e-10?1/DESIGN_FPS:this.initFrameDelay),this.totalFrames=1;for(var e=0;e<this.animation.layers.length;e++){var t=this.animation.layers[e];if(!this.frameSelector||this.frameSelector.testLayer(this.animation.name)){this.totalFrames=Math.max(this.totalFrames,t.frames.length);var s=this.frameSelector?this.frameSelector.getFrame(this,t):0;if(-1!=s){this.skins.push(s);var i=new createjs.Container,r=null,a=t.getClipData(s);r=this.createUsualSprite(a.name),r&&(r.regX=r.getBounds().width*a.anchor.x,r.regY=r.getBounds().height*(1-a.anchor.y),i.addChild(r)),this.parts.push(i),this.addChild(i)}else this.skins.push(-1),this.parts.push(null)}}this.gotoAndPlay(0),this.animation.transform&&this.animation.transform.applyTransform(this),this.totalFrames<=1&&this.stop(),this.frameSelector&&(this.frameSelector=null),this.animation&&this.animation.isAdd,this.animation&&this.animation.isOverlay},t.prototype.getFrameByPartIndex=function(e){var t=this.animation,s=e,i=t.layers[s].frames[this.currentFrame];return i},t.prototype.disableLayer=function(e){var t=this.getPartByFlashName(e);t&&removeClip(t)},t.prototype.update=function(e){if(limitDt(e),this.isPlaying)for(this.currentDelay-=e;this.currentDelay<=0;){this.gotoAndPlay(this.currentFrame+1);for(var t=0;t<this.actions.length;t++)this.actions[t].checkAction();this.currentDelay+=this.frameDelay,0==this.currentFrame&&(this.hasCycle=!0)}},t.prototype.setRandomFrame=function(){var e=getInt(this.totalFrames);this.isPlaying?this.gotoAndPlay(e):this.gotoAndStop(e)},t.prototype.setFrameDelay=function(e){this.currentDelay=this.frameDelay=e},t.prototype.setFps=function(e){this.setFrameDelay(1/e)},t.prototype.isOnLastFrame=function(){return this.currentFrame==this.totalFrames-1},t.prototype.setOwner=function(e){this.owner=e},t.prototype.getOwner=function(){return this.owner},t.prototype.gotoAndPlay=function(e){this.play(),this.currentFrame=Math.max(0,e),this.currentFrame=this.currentFrame%this.totalFrames;for(var t=0;t<this.parts.length;t++){var s=this.parts[t];if(s){var i=this.animation,r=t,a=i.layers[r].frames[this.currentFrame];a.applyTransform(s),this.owner&&(s.visible=s.visible&&this.owner.canBeVisible(s))}}var n=this.currentFrame;for(t=0;t<this.actions.length;t++)if(this.actions[t].checkAction(),this.currentFrame!=n)return},t.prototype.gotoAndStop=function(e){this.gotoAndPlay(e),this.stop()},t.prototype.play=function(){this.isPlaying||this.resetFrameDelay(),this.isPlaying=!0},t.prototype.stop=function(){this.isPlaying=!1,this.resetFrameDelay()},t.prototype.resetFrameDelay=function(){this.currentDelay=this.frameDelay},t.prototype.getCurrentDelay=function(){return this.currentDelay},t.prototype.setCurrentDelay=function(e){this.currentDelay=this.frameDelay*e},t.prototype.getFloatFrame=function(){return this.currentFrame+limit((this.frameDelay-this.currentDelay)/this.frameDelay,0,1)},t.prototype.setPartSkin=function(e,t,s){void 0===s&&(s=!1);var i=this.animation.getLayerByFlashName(e),r=this.parts[i].getChildAt(0),a=this.animation.layers[i];s&&(t=a.clipDatas.length+t),this.skins[i]=t;var n=a.getClipData(t);r.gotoAndStop(n.name),r.regX=r.getBounds().width*n.anchor.x,r.regY=r.getBounds().height*(1-n.anchor.y)},t.prototype.getPart=function(e){return this.parts[e]},t.prototype.getPartByFlashName=function(e){return this.getPart(this.animation.getLayerByFlashName(e))},t.prototype.getPartSkin=function(e){return this.skins[e]},t.prototype.getPartSkinByName=function(e){return this.getPartSkin(this.animation.getLayerByFlashName(e))},t.prototype.getSkinByFlashName=function(e){return this.getPartSkin(this.animation.getLayerByFlashName(e))},t.prototype.updateOwnerVisibility=function(){for(var e=0;e<this.parts.length;e++){var t=this.parts[e];t&&this.owner&&(t.visible=t.visible&&this.owner.canBeVisible(t))}},t.prototype.destroy=function(){this.skins=null,this.frameSelector=null;for(var e=0;e<this.parts.length;e++)this.parts[e]&&removeClip(this.parts[e]);this.owner=null,this.parts=null,this.actions=null},t.prototype.addAction=function(e,t,s,i){void 0===s&&(s=-1),void 0===i&&(i=1);var r=new AnimationAction(e,t,this,s,i);return this.actions.push(r),r},t}(createjs.Container),FrameData=function(){function e(e,t,s,i,r,a,n,o,c){void 0===t&&(t=100),void 0===s&&(s=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===a&&(a=1),void 0===n&&(n=1),void 0===o&&(o=0),void 0===c&&(c=0),this.visible="false"!=e&&0!=e,this.alpha=t,this.rotation=s,this.x=i,this.y=r,this.scaleX=a,this.scaleY=n,this.skewX="NaN"==o||isNaN(o)?0:o,this.skewY="NaN"==c||isNaN(o)?0:c}return e.prototype.clone=function(){return new e(this.visible,this.alpha,this.rotation,this.x,this.y,this.scaleX,this.scaleY)},e.prototype.applyTransform=function(e){e.visible=this.visible,e.visible&&(e.alpha=this.alpha,e.rotation=this.rotation,e.x=this.x,e.y=this.y,e.scaleX=this.scaleX,e.scaleY=this.scaleY,e.skewX=this.skewX,e.skewY=this.skewY)},e.getEmptyData=function(){return e.empty||(e.empty=new e(!1,0,0,0,0,0,0)),e.empty},e}(),ClipLayerData=function(){function e(e,t){this.name=e.split(".")[0],this.anchor=t}return e}(),LayerData=function(){function e(e,t,s){this.isMark=s,this.frames=new Array,this.name=e,this.flashName=t,this.clipDatas=new Array}return e.prototype.addFrame=function(e){this.frames.push(e)},e.prototype.addClipData=function(e){this.clipDatas.push(e)},e.prototype.getClipData=function(e){return"none"==name?null:e<this.clipDatas.length?this.clipDatas[e]:this.clipDatas[this.clipDatas.length-1]},e.prototype.clone=function(){for(var t=new e(this.name,this.flashName,!1),s=0;s<this.clipDatas.length;s++)t.addClipData(new ClipLayerData(this.clipDatas[s].name,this.clipDatas[s].anchor));for(s=0;s<this.frames.length;s++)t.addFrame(frames[s].clone());return t},e}(),AnimationData=function(){function e(e,t){this.layerNameMap={},this.layers=new Array,this.animationDatas=new Array,this.name=e,this.transform=t,this.isAdd=!1,this.forceFrameDelay=-1,this.isOverlay=!1}return e.prototype.setAdd=function(){return this.isAdd=!0,this},e.prototype.setScale=function(){},e.prototype.shift=function(){return this},e.prototype.addLayer=function(e){var t=this.layers.length;this.layerNameMap[e.flashName]=t,this.layers.push(e)},e.prototype.addData=function(e){this.animationDatas.push(e)},e.prototype.getLayerByFlashName=function(e){return this.layerNameMap[e]},e.prototype.connectLayers=function(){return this},e.prototype.makeTheSameAmountOfFramesInAllLayers=function(){for(var e=0,t=0;t<this.layers.length;++t)e=Math.max(e,this.layers[t].frames.length);for(t=0;t<this.layers.length;++t)for(var s=this.layers[t];s.frames.length<e;)s.addFrame(FrameData.getEmptyData())},e.prototype.cloneLayer=function(e,t){var s=this.getLayerByFlashName(e),i=this.getLayerByFlashName(t);this.layers[i].frames=this.layers[s].frames},e}(),AnimationManager=function(){function e(){this.data={},e.instance=this,this.data={}}return e.prototype.putAnimation=function(e,t,s){var i=this.parseAnimation(t,s);return this.data[e]=i,i},e.prototype.parseAnimation=function(e,t){for(var s=new AnimationData(e.name,null),i=0,r=void 0==e.l.length?1:e.l.length,a=0;r>a;++a){for(var n=1==r?e.l:e.l[a],o=n.flashName,c=void 0!=n.isMark,h=new LayerData(n.name,o?o:"",c),l=void 0==n.d.length?1:n.d.length,p=0;l>p;++p){var u=1==l?n.d:n.d[p],d=u.name,y=d.split("/"),g=y[y.length-1],m=parseFloat(u.anchorX),f=parseFloat(u.anchorY),v=new ClipLayerData(g,new createjs.Point(m,f>0?1-f:1-f));h.addClipData(v)}for(var x=0;t>x;x++)h.addFrame(FrameData.getEmptyData());for(var S=void 0==n.f.length?1:n.f.length,b=0;S>b;++b){var X=null,Y=1==S?n.f:n.f[b],w="false"==Y.v?!1:void 0!=Y.v&&null!=Y.v?Y.v:!0;if(w){var T=w?void 0!=Y.a?parseFloat(Y.a):100:0;T/=100;var C=w?parseFloat(Y.r):0,_=w?parseFloat(Y.x):0,k=w?parseFloat(Y.y):0,M=w?parseFloat(Y.scX):0,A=w?parseFloat(Y.scY):0,j=w?parseFloat(Y.skX):0,L=w?parseFloat(Y.skY):0;X=new FrameData(w,T,C,_,k,M,A,j,L)}else X=FrameData.getEmptyData();h.addFrame(X)}s.addLayer(h),i=Math.max(i,b)}return s.makeTheSameAmountOfFramesInAllLayers(),s},e.prototype.getAnimation=function(e){return this.data[e]},e}(),AnimationAction=function(){function e(e,t,s,i,r){this.frame=e,this.type=t,this.animation=s,this.data=i,this.probability=r,this.isEnabled=!0,this.frameSelector=null}return e.prototype.checkAction=function(){if(this.isEnabled&&this.animation.currentFrame==this.frame&&this.animation.isPlaying&&Math.random()<=this.probability)switch(this.type){case 0:this.animation.stop();break;case 1:this.animation.gotoAndPlay(this.calcNextFrame());break;case 2:this.animation.gotoAndStop(this.data)}},e.prototype.calcNextFrame=function(){var e=this.frameSelector?this.frameSelector.selectFrame(this.frame):this.data;return-1==e&&(e=this.data),e},e.prototype.setSelector=function(e){this.frameSelector=e},e.prototype.setEnabled=function(e){this.isEnabled=e},e.prototype.getEnabled=function(){return this.isEnabled},e}(),Hud=function(e){function t(){var t=this;e.call(this),this.currentPercent=0,this.currentPercent2=0,this.barScale=1,this.bar2Scale=1,this.currentMoves=-1,this.currentTarget="",this.currentScore=0,this.starScales=[.35,.69,.999],this.stars=[],this.clickables=[],this.starsEarned=[!1,!1,!1],this.topSprite=new createjs.Container;var s=new createjs.Container;this.sprite=s,addChild(this.sprite,this.level.hudLayer);var i=(this.sprite,0);this.topSprite.y=35;var r=createSpriteFromSpritesheet("back_line");this.topSprite.addChild(r),r=createSpriteFromSpritesheet("menu_line_part1"),this.topSprite.addChild(r),r.y=159,r=createSpriteFromSpritesheet("menu_line_part2"),this.topSprite.addChild(r),r.y=159,r.x=App.SCREEN_W-35,s.addChild(this.topSprite),r=createSpriteFromSpritesheet("info_bar"),this.topSprite.addChild(r),r.y=96,r.x=App.SCREEN_W/2,setReg(r,.5,.5),s.addChild(this.topSprite),r=createSpriteFromSpritesheet("arrow"),this.topSprite.addChild(r),r.y=96,r.x=App.SCREEN_W/2-30,setReg(r,.5,.5),s.addChild(this.topSprite);for(var a=0;2>a;++a)r=createSpriteFromSpritesheet("progress_bar"),this.topSprite.addChild(r),r.y=88,r.x=App.SCREEN_W/2+(0==a?170:-195),setReg(r,.5,.5),s.addChild(this.topSprite);var n=new createjs.Bitmap(App.game.preloader.loader.getResult("bar")),o=new createjs.Bitmap(App.game.preloader.loader.getResult("bar"));addChild(n,this.topSprite),addChild(o,this.topSprite),this.timeIcon=createSpriteFromSpritesheet("time"),this.topSprite.addChild(this.timeIcon),setReg(this.timeIcon,.5,.5),this.timeIcon.x=236,this.timeIcon.y=818+i,this.barRect=new createjs.Rectangle(0,0,126,17),this.bar=n,n.x=66,n.y=85,n.scaleX=n.scaleY=this.barScale,this.bar2Rect=new createjs.Rectangle(0,0,126,17),this.bar2=o,o.x=431,o.y=n.y,o.scaleX=n.scaleY=this.bar2Scale;var c=new createjs.BitmapText("xxx",App.game.atlases[0]);c.letterSpacing=-5,c.spaceWidth*=.8,this.movesText=c,this.topSprite.addChild(this.movesText);var c=new createjs.BitmapText("1",App.game.atlases[3]);c.letterSpacing=-6,this.targetText=c,this.topSprite.addChild(this.targetText);var c=new createjs.BitmapText("score",App.game.atlases[3]);c.letterSpacing=-6,this.scoreText=c,c.x=90,c.getBounds(),c.x=1e3;c.getBounds();this.topSprite.addChild(this.scoreText);var r=createSpriteFromSpritesheet("dirt1",0);r.x=o.x-16,r.y=o.y+7,this.topSprite.addChild(r),this.targetIcon=r;for(var a=0;3>a;++a){r=createSpriteFromSpritesheet("hud_star_off"),r.regX=r.getBounds().width/2,r.regY=r.getBounds().height/2;var h=n.x,l=n.x+this.barRect.width;r.y=n.y+8,this.topSprite.addChild(r),r.x=lerp(h,l,this.starScales[a]),this.stars.push(r)}this.pauseButton=createSpriteFromSpritesheet("pause_button"),this.pauseButton.x=611,this.pauseButton.y=94,this.pauseButton.regX=this.pauseButton.getBounds().width/2,this.pauseButton.regY=this.pauseButton.getBounds().height/2,this.topSprite.addChild(this.pauseButton);var p=new ClickableObject(this.pauseButton);p.setRect(0,0,72,72),p.callback=function(){t.pauseLevel()},this.clickables.push(p),this.logo=new LogoObject(s,.5*App.SCREEN_W,175,.75),this.clickables.push(this.logo),this.shuffleText=createSpriteFromSpritesheet("moves_text"),this.shuffleText.x=App.SCREEN_W/2,this.shuffleText.regX=this.shuffleText.getBounds().width/2,this.shuffleText.regY=this.shuffleText.getBounds().height/2,this.update(0)}return __extends(t,e),t.prototype.playShuffleAnimation=function(){var e=this;this.sprite.addChild(this.shuffleText),this.shuffleText.x=App.SCREEN_W/2,this.shuffleText.y=App.SHIFT_H+400,this.shuffleText.alpha=0,createjs.Tween.get(this.shuffleText,{loop:!1}).to({alpha:1,y:this.shuffleText.y-200},400,createjs.Ease.quadInOut).wait(300).to({alpha:0,y:this.shuffleText.y-400},400,createjs.Ease.quadIn).call(function(){return e.stopShuffle()}),SoundsManager.instance.playSound("gui_move")},t.prototype.onDown=function(e,t){for(var s=this.clickables.length,i=0;s>i;++i){var r=this.clickables[i];if(r&&r.checkClick(e,t)){r.onClick();break}}},t.prototype.stopShuffle=function(){removeClip(this.shuffleText)},t.prototype.isShuffleActive=function(){return null!=this.shuffleText.parent},t.prototype.show=function(){this.currentMoves=-1,this.currentTarget="",this.currentScore=-1,this.currentPercent=0,9!=isIE()&&(this.bar.sourceRect=new createjs.Rectangle(0,0,limit(0*this.barRect.width,1,this.barRect.width),this.barRect.height),this.bar2.sourceRect=new createjs.Rectangle(0,0,limit(0*this.bar2Rect.width,1,this.bar2Rect.width),this.bar2Rect.height));for(var e=0;3>e;++e)this.starsEarned[e]=!1;this.scores=Match3Level.instance.target.scores;var t=(Match3Level.instance.target.getText(),Match3Level.instance.target.getHudIconData());this.targetIcon.spriteSheet=App.game.atlases[t[5]],this.targetIcon.gotoAndStop(t[0]),this.targetIcon.regX=this.targetIcon.getBounds().width/2-t[3],this.targetIcon.regY=this.targetIcon.getBounds().height/2-t[4],this.targetIcon.scaleX=t[1],this.targetIcon.scaleY=t[2],removeClip(this.shuffleText),this.logo.setVisible(!0),this.update(0)},t.prototype.pauseLevel=function(){MenuManager.instance.target.sprite.parent||Match3Level.instance.isWaitingForTarget&&!Match3Level.instance.isHardLocked||(this.level.pause(),SoundsManager.instance.playSound("pause"))},t.prototype.updateBar=function(e){var t=Match3Level.instance.score/this.scores[2];t=limit(t,0,1);var s=t-this.currentPercent,i=.3*e;Math.abs(s)<=i?this.currentPercent=t:this.currentPercent+=i*s/Math.abs(s);for(var r=this.scores.length,a=1,n=0;r>n;++n){var o=0==n?0:this.scores[n-1]/this.scores[2],c=this.scores[n]/this.scores[2];if(this.currentPercent>=o&&this.currentPercent<=c){a=lerp(0==n?0:this.starScales[n-1],this.starScales[n],(this.currentPercent-o)/(c-o));break}}9==isIE()?this.bar.scaleX=limit(a,.01,1):(this.bar.sourceRect||(this.bar.sourceRect=new createjs.Rectangle),this.bar.sourceRect.setValues(0,0,limit(this.barRect.width*a,1,this.barRect.width),this.barRect.height),this.bar.visible=this.currentPercent>1e-6);var h=1==this.currentPercent?2:n-1;h>=0&&!this.starsEarned[h]&&(this.starsEarned[h]=!0,this.stars[h].scaleY=2.5,this.stars[h].scaleX=2,this.stars[h].gotoAndStop("victory_star"),setReg(this.stars[h],.5,.5),createjs.Tween.get(this.stars[h],{loop:!1}).wait(0).to({scaleY:.9,scaleX:.9},400,createjs.Ease.quadOut),SoundsManager.instance.playSound("star_hud"));var t=Match3Level.instance.target.progress;isNaN(t)&&(t=0),t=limit(t,0,1);var s=t-this.currentPercent2,i=.3*e;Math.abs(s)<=i?this.currentPercent2=t:this.currentPercent2+=i*s/Math.abs(s);var a=this.currentPercent2;9==isIE()?this.bar2.scaleX=limit(a,.01,1):(this.bar2.sourceRect||(this.bar2.sourceRect=new createjs.Rectangle),this.bar2.sourceRect.setValues(0,0,limit(this.bar2Rect.width*a,1,this.bar2Rect.width),this.bar2Rect.height),this.bar2.visible=this.currentPercent2>1e-6)},t.prototype.forceFullUpdate=function(){this.updateBar(10),this.scoreText.text=Match3Level.instance.score.toString()},Object.defineProperty(t.prototype,"starEarnedAmount",{get:function(){for(var e=0,t=0;3>t;++t)this.starsEarned[t]&&e++;return e},enumerable:!0,configurable:!0}),t.prototype.update=function(t){e.prototype.update.call(this,t),this.timeIcon.visible=Match3Level.instance&&Match3Level.instance.isTimeLevel,Match3Level.instance&&this.scores&&this.updateBar(t),this.level.target&&this.level.currentMove>0&&this.level.target.isCompleted&&(!this.level.target.isScoreTarget||3==this.starEarnedAmount||this.level.limitLeft<=0||this.level.isTimeLevel)&&this.level.startAwardMode();var s=Math.round(limit(this.level.limitLeft,0,1e10));if(this.currentMoves!=s){createjs.Tween.removeTweens(this.movesText),this.currentMoves=s,this.movesText.text=(this.level.isTimeLevel?"time: ":"")+s,this.movesText.scaleX=this.movesText.scaleY=1;var i=getTextSize(this.movesText);this.movesText.regX=i.x/2,this.movesText.regY=i.y/2,this.movesText.x=App.SCREEN_W/2+17,this.movesText.y=60,(!this.level.isTimeLevel||10>s)&&(this.movesText.scaleY=1.5,createjs.Tween.get(this.movesText,{loop:!1}).wait(0).to({scaleY:1},200,createjs.Ease.quadOut))}if(Match3Level.instance&&Match3Level.instance.target){var r=Match3Level.instance.target.getTargetText();if(r!=this.currentTarget){createjs.Tween.removeTweens(this.targetText),this.currentTarget=r,this.targetText.text=r;var i=getTextSize(this.targetText);this.targetText.regX=i.x/2,this.targetText.regY=i.y/2,this.targetText.x=500,this.targetText.y=81,this.targetText.scaleY=1.5,createjs.Tween.get(this.targetText,{loop:!1}).wait(0).to({scaleY:1},200,createjs.Ease.quadOut)}}var a=Match3Level.instance.score;if(this.currentScore!=a){createjs.Tween.removeTweens(this.scoreText),this.currentScore=a,this.scoreText.text=a.toString();var i=getTextSize(this.scoreText);this.scoreText.regX=i.x/2,this.scoreText.regY=i.y/2,this.scoreText.x=140,this.scoreText.y=81,this.scoreText.scaleY=1.5,createjs.Tween.get(this.scoreText,{loop:!1}).wait(0).to({scaleY:1},200,createjs.Ease.quadOut)}var n=(App.ACTUAL_H-App.SCREEN_H)/(App.FULL_SCREEN_H-App.SCREEN_H);this.topSprite.y=lerp(-55,35,1-n),this.pauseButton.y=lerp(80,94,1-n),this.logo&&this.logo.sprite&&(this.logo.sprite.y=141+this.topSprite.y)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.reset=function(){this.currentPercent=0,this.currentPercent2=0,this.currentMoves=-1,this.currentScore=-1,this.currentTarget="xxx",removeClip(this.sprite),addChild(this.sprite,this.level.hudLayer);for(var e=0;3>e;++e)createjs.Tween.removeTweens(this.stars[e]),this.stars[e].gotoAndStop("hud_star_off"),setReg(this.stars[e],.5,.5),this.stars[e].scaleX=this.stars[e].scaleY=1},t}(GameObject),Menu=function(e){function t(){e.call(this),this.animatedButtons=[],this.clickables=[],this.isMenuActive=!1,this.lastClickCount=0}return __extends(t,e),t.prototype.show=function(){this.sprite&&this.stage.addChild(this.sprite);for(var e=0;e<this.animatedButtons.length;++e)this.animatedButtons[e]&&this.animatedButtons[e].onShow();this.isMenuActive=!0,this.onResize()},t.prototype.update=function(t){e.prototype.update.call(this,t);for(var s=this.animatedButtons.length,i=0;s>i;++i)this.animatedButtons[i]&&this.animatedButtons[i].update(t)},t.prototype.hide=function(){removeClip(this.sprite),this.isMenuActive=!1;for(var e=0;e<this.animatedButtons.length;++e)this.animatedButtons[e]&&this.animatedButtons[e].onHide()},t.prototype.checkClick=function(e,t){this.lastClickCount=0;for(var s=this.clickables.length,i=0;s>i;++i){var r=this.clickables[i];if(r&&r.checkClick(e,t)){r.onClick(),++this.lastClickCount;break}}},t.prototype.onResize=function(){},t.prototype.onDown=function(){},t.prototype.onUp=function(e,t){this.checkClick(e,t)},t.prototype.restartLevel=function(e){void 0===e&&(e=null),LevelManager.instance.restartLevel(),e&&e.nativeEvent&&e.preventDefault&&e.preventDefault()},t.prototype.loadMainMenu=function(e){void 0===e&&(e=null),MenuManager.instance.show(MenuManager.instance.map),e&&e.preventDefault()},t}(GameObject),MenuManager=function(){function e(){this.menus=[],this.map=new MapMenu,this.mainMenu=new MainMenu,this.transition=new TransitionMenu,this.winMenu=new WinMenu,this.loseMenu=new LoseMenu,this.target=new TargetMenu,this.pause=new PauseMenu,this.result=new ResultMenu,this.tutorial=new Tutorial,this.credits=new CreditsMenu,this.splashMenu=new SplashScreen,this.menus.push(this.map,this.mainMenu,this.transition,this.winMenu,this.loseMenu,this.target,this.pause,this.result,this.credits,this.splashMenu),e.instance=this}return e.prototype.isOnTutorial=function(){return this.current==this.tutorial},e.prototype.show=function(e,t){void 0===t&&(t=!0);try{t?this.transition.play(e):(this.closeCurrent(),this.current=e,this.current.show(),this.current.update(0))}catch(s){alert("Menu manger show error "+s),this.closeCurrent(),this.current=e,this.current.show(),this.transition.stopMove(),alert("Error in menu show: "+s)}},e.prototype.update=function(e){this.credits.isMenuActive?this.credits.update(e):!this.current||this.current==this.map&&this.transition.isActive&&null==this.transition.menuToShow&&!this.transition.hasDoneAction||this.current.update(e),this.transition.isActive&&this.transition.update(e)},e.prototype.closeCurrent=function(){this.current&&this.current.hide(),this.current=null},e.prototype.onResize=function(){this.current&&this.current.onResize()},e}(),MapMenu=function(e){function t(){var s=this;e.call(this),this.firstShow=!1,this.isMoving=!1,this.height=0,this.pointerScaleSpeed=1,this.currentLevel=0,this.downPos=new createjs.Point,this.downGPos=new createjs.Point,this.speed=0,this.isDown=!1,this.dragSpeed=0,this.lastSpeed=0,this.mainSprites=[],this.buttons=[],this.levelToUnlock=-1,this.isLevelUnlocking=!1,this.isPlayPressed=!1,this.isScrolling=!1,this.timeSinceScroll=0,this.lastMovePoint=cjp(0,0),this.pointerIsMoving=!1,t.BUTTON_RADIUS=(2==App.episode,25),this.sprite=new createjs.Container,this.scrollSprite=new createjs.Container,this.sprite.addChild(this.scrollSprite);for(var i=0,r=[["map1"],["map1"],["map1"]][App.episode],a=0==App.episode?8:1,n=(App.episode<=1?0:4,0);a>n;++n){var o=r[n],c=new createjs.Bitmap(App.game.preloader.loader.getResult(o)),h=0==App.episode&&"map14"==o?-175:0==n?0:-10;c.y=i+h,this.height+=c.getBounds().height+h,this.scrollSprite.addChild(c),i+=c.getBounds().height+h,this.mainSprites.push(c)}this.rect=new createjs.Rectangle(0,0,640,1138);var l=[[443,990],[349,1018],[264,1018],[181,991],[178,919],[240,883],[320,900],[382,915],[446,893],[482,827],[447,778],[372,769],[355,694],[398,654],[340,610],[266,637],[179,646],[129,593],[162,544],[160,458],[249,459],[281,543],[355,515],[398,451],[430,399],[446,351],[482,303],[438,255],[373,296],[316,334],[249,344],[217,288],[187,239],[220,185],[273,138]];for(n=0;n<LevelManager.LEVEL_AMOUNT;++n){var p=l[n],u=cjp(0,0);u.x=p[0],u.y=p[1],this.buttons.push(new MapButton(n,u.x,u.y,this.scrollSprite))}var d=new AnimatedNode(App.game.animationManager.getAnimation("pointer"),1/30,null);d.stop(),d.x=this.buttons[0].sprite.x,d.y=this.buttons[1].sprite.y,this.scrollSprite.addChild(d),d.getPart(0).getChildAt(0).x+=2,d.getPart(0).getChildAt(0).y+=68;var y=createSpriteFromSpritesheet("play");y.scaleX=y.scaleY=.5,d.getPart(0).addChild(y),y.x=-36,y.y=33,d.addAction(d.totalFrames-1,0),d.mouseChildren=d.mouseEnabled=!0,this.pointer=d,this.scrollSprite.y=0;var g=new SoundButton(!0,this.sprite,570,65);this.animatedButtons.push(g),this.clickables.push(g);var g=new SoundButton(!1,this.sprite,570,165);this.animatedButtons.push(g),this.clickables.push(g);var g=new ScaleButton(createSpriteFromSpritesheet("home_button"),function(e){s.loadMain(e)},this.sprite,385,105);g.baseScale=.9,g.updateRectScale(),this.animatedButtons.push(g),this.clickables.push(g),this.brandLogo=new LogoObject(this.sprite,App.SCREEN_W/2,0,1),this.clickables.push(this.brandLogo);var m=new ClickableObject(this.pointer);m.setRect(-47,-120,95,78),m.callback=function(){s.onPointerDown()},this.clickables.push(m),this.onResize()}return __extends(t,e),t.prototype.onResize=function(){e.prototype.onResize.call(this);for(var t=1;3>=t;++t)this.clickables[t-1].sprite.x=540+67*(t-2),this.clickables[t-1].sprite.y=30+(App.FULL_SCREEN_H-App.ACTUAL_H)/2+(3==t?-2:0),this.animatedButtons[t-1].baseScale=3==t?.6:.9,this.clickables[t-1].updateRectScale();this.brandLogo.sprite&&(this.brandLogo.sprite.y=App.ACTUAL_H-35+(App.FULL_SCREEN_H-App.ACTUAL_H)/2)},t.prototype.loadMain=function(){MenuManager.instance.show(MenuManager.instance.mainMenu)},t.prototype.show=function(){var t=this;if(e.prototype.show.call(this),this.isLevelUnlocking=this.levelToUnlock>0,this.isPlayPressed=!1,this.isMoving=!1,this.pointerIsMoving=!1,this.speed=0,this.isDown=!1,this.isScrolling=!1,this.update(0),this.sprite.addEventListener("mousedown",function(e){t.onMouseDown(e)}),this.sprite.addEventListener("pressup",function(e){t.onPressUp(e)}),this.sprite.addEventListener("click",function(e){t.onClick(e)}),this.sprite.addEventListener("pressmove",function(e){t.onPressMove(e)}),this.firstShow=LevelManager.instance.isFirstLoad&&!isEditorVersion,this.firstShow){LevelManager.instance.isFirstLoad=!1,this.firstShow=!1,this.scrollSprite.y=0;var s=needScrollMap?1:20;this.scroll(App.ACTUAL_H-this.rect.height,7e3*(0==App.episode?1:.4)/s,1500*(1==App.episode?.8:1)/s),this.movePoinPointerToButton(0)}else if(this.isLevelUnlocking){var i=this.buttons[this.levelToUnlock].mainSprite;i.alpha=0,createjs.Tween.get(i,{loop:!1}).wait(650).call(function(){return t.onButtonHide()}).to({alpha:1},500,createjs.Ease.cubicOut)}else this.movePoinPointerToButton(LevelManager.instance.lastOpened);for(var r=0;r<LevelManager.LEVEL_AMOUNT;++r)this.buttons[r].updateState(LevelManager.instance.data[r].state,r==this.levelToUnlock,LevelManager.instance.data[r].stars)},t.prototype.fastUnlock=function(){this.levelToUnlock=-1},t.prototype.onButtonHide=function(){this.movePoinPointerToButton(this.levelToUnlock)},t.prototype.hide=function(){e.prototype.hide.call(this),this.sprite.removeAllEventListeners(),this.pointer.getPart(0).removeAllEventListeners()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.onMouseDown=function(e){this.isLevelUnlocking||(this.isScrolling=!1,this.downGPos.x=e.stageX,this.downGPos.y=e.stageY,this.downPos=this.scrollSprite.globalToLocal(e.stageX,e.stageY),this.lastMovePoint.x=this.downGPos.x,this.lastMovePoint.y=this.downGPos.y,this.isDown=!0,this.dragSpeed=0,e.nativeEvent&&e.preventDefault&&e.preventDefault())},t.prototype.onPressUp=function(e){if(!this.isLevelUnlocking){this.isDown=!1,this.speed=this.lastSpeed;var t=sign(this.speed);this.speed=t*limit(Math.abs(this.speed),0,15),createjs.Tween.get(this,{loop:!1}).wait(0).to({speed:0},600,createjs.Ease.cubicOut),this.isScrolling=!1,e.nativeEvent&&e.preventDefault&&e.preventDefault()}},t.prototype.update=function(t){e.prototype.update.call(this,t),this.isDown||(this.scrollSprite.y=this.limitY(this.scrollSprite.y+this.speed)),this.isScrolling&&Math.abs(this.downGPos.x-this.lastMovePoint.x)+Math.abs(this.downGPos.y-this.lastMovePoint.y)>5?this.timeSinceScroll=0:this.timeSinceScroll+=t;for(var s=this.mainSprites.length,i=0;s>i;++i){this.mainSprites[i]
  5. }for(var i=0;i<LevelManager.LEVEL_AMOUNT;++i)this.buttons[i].updateState(LevelManager.instance.data[i].state,i==this.levelToUnlock,LevelManager.instance.data[i].stars);this.pointer.update(t)},t.prototype.onClick=function(e){if(!(this.isLevelUnlocking||this.isPlayPressed||this.timeSinceScroll<.15)){for(var s=this.clickables.length,i=0;s>i;++i)if(this.clickables[i].checkClick(e.stageX,e.stageY))return;if(!this.isMoving&&!this.pointerIsMoving&&!MenuManager.instance.transition.isActive)for(var r=this.scrollSprite.globalToLocal(e.stageX,e.stageY),s=this.buttons.length,i=0;s>i;++i){var a=this.buttons[i].sprite;if(getDistanceF(r.x,r.y,a.x,a.y)<=t.BUTTON_RADIUS){if(LevelManager.instance.data[i].state==LevelData.CLOSED_STATE&&needLockLevels)return;this.movePoinPointerToButton(i);break}}e.nativeEvent&&e.preventDefault&&e.preventDefault()}},t.prototype.movePoinPointerToButton=function(e){var t=this,s=this.buttons[e];this.pointerIsMoving=!0,this.currentLevel=e,this.pointer.gotoAndPlay(0),createjs.Tween.get(this.pointer,{loop:!1}).wait(0).to({x:s.sprite.x,y:s.sprite.y},294,createjs.Ease.cubicInOut).call(function(){return t.stopPointerMove()});var i=s.sprite.y-425,r=s.sprite.y+50;this.scrollSprite.y+i<0?this.scroll(-i+100,300,0):this.scrollSprite.y+r>App.SCREEN_H+App.SHIFT_H&&this.scroll(App.SCREEN_H+App.SHIFT_H-r-100,300,0),SoundsManager.instance.playSound("pointer_sound")},t.prototype.scroll=function(e,t,s){var i=this;void 0===s&&(s=0),this.isMoving||(this.isMoving=!0,createjs.Tween.removeTweens(this.scrollSprite),this.speed=0,createjs.Tween.get(this.scrollSprite,{loop:!1}).wait(s).to({x:0,y:this.limitY(e)},t,createjs.Ease.quadInOut).call(function(){return i.stopMove()}))},t.prototype.onPressMove=function(e){if(!this.isLevelUnlocking&&!this.isMoving){this.lastMovePoint.x=e.stageX,this.lastMovePoint.y=e.stageY;var t=this.scrollSprite.localToGlobal(this.downPos.x,this.downPos.y);this.isScrolling=!0;var s=this.scrollSprite.y;this.scrollSprite.y=this.limitY(this.scrollSprite.y+e.stageY-t.y),this.lastSpeed=this.scrollSprite.y-s,e.nativeEvent&&e.preventDefault&&e.preventDefault()}},t.prototype.limitY=function(e){var t=this.rect,s=(App.ACTUAL_H-App.FULL_SCREEN_H)/2,i=-s,r=-s+App.ACTUAL_H;return e+t.height<r?e=r-t.height:e>i&&(e=i),e},t.prototype.onPointerDown=function(){if(!this.isLevelUnlocking&&!this.isPlayPressed&&!this.pointerIsMoving){this.pointer.gotoAndPlay(0);{this.pointer.localToGlobal(this.pointer.getBounds().width/2,88)}return LevelManager.instance.prepareToLoadLevel(this.currentLevel),SoundsManager.instance.playSound("play_button"),void(this.isPlayPressed=!0)}},t.prototype.stopPointerMove=function(){this.pointerIsMoving=!1,this.isLevelUnlocking=!1,this.levelToUnlock=-1,this.pointer.isPlaying||this.pointer.gotoAndPlay(0)},t.prototype.stopMove=function(){this.isMoving=!1},t.BUTTON_RADIUS=25,t}(Menu),MainMenu=function(e){function t(){var t=this;e.call(this),this.heroPositions=[[129,983,0],[665,698,-44],[659,239,-119],[165,-16,-180],[-17,389,118],[-17,735,69]],this.prevHeroId=-1,this.topDownSprites=[];var s=new createjs.Container;this.sprite=s,this.back=new createjs.Bitmap(App.game.preloader.loader.getResult("main menu")),s.addChild(this.back),this.heroAnimation=new AnimatedNode(AnimationManager.instance.getAnimation("character"),1/30,null),s.addChild(this.heroAnimation),this.heroAnimation.addAction(this.heroAnimation.totalFrames-1,1,0),this.heroAnimation.x=194,this.heroAnimation.y=652;for(var i=0;2>i;++i){var r=new createjs.Container,a=createSpriteFromSpritesheet("back_line");r.addChild(a),a=createSpriteFromSpritesheet("menu_line_part1"),r.addChild(a),a.y=159,a=createSpriteFromSpritesheet("menu_line_part2"),r.addChild(a),a.y=159,a.x=App.SCREEN_W-35,1==i&&(r.scaleY=-1,r.y=App.FULL_SCREEN_H+50),s.addChild(r),this.topDownSprites.push(r)}this.logo=new AnimatedNode(AnimationManager.instance.getAnimation("logo_anim"),1/24,null),s.addChild(this.logo),this.logo.addAction(this.logo.totalFrames-1,1,0),this.logo.x=App.SCREEN_W/2-217,this.logo.y=60,this.animatedButtons.push(null),this.clickables.push(null);var n=new ScaleButton(createSpriteFromSpritesheet("play"),function(){t.onPlayDown()},s,-105+App.SCREEN_W/2,95);this.animatedButtons.push(n),this.clickables.push(n),this.button=n;var n=new SoundButton(!0,s,570,65);this.animatedButtons.push(n),this.clickables.push(n);var n=new SoundButton(!1,s,570,165);this.animatedButtons.push(n),this.clickables.push(n);var n=new ScaleButton(createSpriteFromSpritesheet("credits_button"),function(e){t.loadCredits(e)},s,-109+App.SCREEN_W/2,95);if(this.animatedButtons.push(n),this.clickables.push(n),this.brandLogo=new LogoObject(s,.85*App.SCREEN_W,0,.95),this.clickables.push(this.brandLogo),this.moreGames=new MoreGamesButton(s,.11*App.SCREEN_W,0,.75),this.clickables.push(this.moreGames),needCheats)for(var i=0;5>i;++i){var o=new createjs.Container,c=createSpriteFromSpritesheet("tile_5");o.addChild(c);var h=new createjs.BitmapText((i+1).toString(),App.game.atlases[0]);h.x=25,h.y=-20,o.addChild(h),n=new CheatButton(o,s,100+95*i,550,i),this.clickables.push(n),this.animatedButtons.push(n)}this.onResize()}return __extends(t,e),t.prototype.onUp=function(t,s){MenuManager.instance.credits.isMenuActive||e.prototype.onUp.call(this,t,s)},t.prototype.loadCredits=function(){MenuManager.instance.credits.show()},t.prototype.getCharY=function(e){return 650>e?e+=(App.FULL_SCREEN_H-App.ACTUAL_H)/2:e=e-978+App.ACTUAL_H+(App.FULL_SCREEN_H-App.ACTUAL_H)/2,e},t.prototype.getHeroPosData=function(e){var t=this.prevHeroId;if(e)t=0;else for(;t==this.prevHeroId;)t=getInt(this.heroPositions.length);this.prevHeroId=t;var s=this.heroPositions[t];return s},t.prototype.getBlinkDelay=function(e){return void 0===e&&(e=!1),lerp(e?0:6,16,Math.random())},t.prototype.onPlayDown=function(){try{MenuManager.instance.show(MenuManager.instance.map),SoundsManager.instance.playSound("button")}catch(e){alert("play down "+e)}},t.prototype.onResize=function(){e.prototype.onResize.call(this);var t=1-(App.FULL_SCREEN_H-App.ACTUAL_H)/(App.FULL_SCREEN_H-App.SCREEN_H);this.heroAnimation.scaleX=this.heroAnimation.scaleY=lerp(.85,1,t),this.heroAnimation.y=lerp(615,652,t),this.topDownSprites[0].y=lerp(25,-5,t),this.topDownSprites[1].y=App.FULL_SCREEN_H+lerp(-30,50,t),this.back.y=lerp(-100,0,t),this.button.sprite.x=App.SCREEN_W/2,this.button.sprite.y=App.ACTUAL_H+(App.FULL_SCREEN_H-App.ACTUAL_H)/2-37-lerp(0,15,t),this.logo.y=lerp(135,60,t),this.logo.scaleX=this.logo.scaleY=lerp(.9,1,t),this.logo.x=App.SCREEN_W/2-217*this.logo.scaleX;for(var s=2;4>=s;++s)this.animatedButtons[s]&&(this.clickables[s].sprite.x=4==s?29:613+62*(s-3),this.clickables[s].sprite.y=29+(App.FULL_SCREEN_H-App.ACTUAL_H)/2,this.animatedButtons[s].baseScale=.85,this.clickables[s].updateRectScale());this.brandLogo.sprite&&(this.brandLogo.sprite.y=App.ACTUAL_H-41+(App.FULL_SCREEN_H-App.ACTUAL_H)/2),this.moreGames.sprite&&(this.moreGames.sprite.y=App.ACTUAL_H-41+(App.FULL_SCREEN_H-App.ACTUAL_H)/2),this.button.baseScale=lerp(1,1.15,t),this.button.updateRectScale()},t.prototype.show=function(){e.prototype.show.call(this),this.heroAnimation.gotoAndPlay(0)},t.prototype.hide=function(){e.prototype.hide.call(this)},t.prototype.update=function(t){e.prototype.update.call(this,t),this.heroAnimation.update(t),this.logo.update(t)},t}(Menu),TransitionMenu=function(e){function t(){e.call(this),this.isActive=!1,this.levelToLoad=-1,this.hasDoneAction=!1,this.firstUpdate=!1,this.animation=new AnimatedNode(AnimationManager.instance.getAnimation("transition"),1/45,null);for(var t=.36,s=[cjp(369,590),cjp(458,590),cjp(246,590),cjp(278,590)],i=0;4>i;++i){var r=this.animation.getPart(i).getChildAt(0);setReg(r,s[i].x*t,s[i].y*t,!1)}this.animation.scaleX=this.animation.scaleY=1/t,this.animation.scaleX*=1.05,this.animation.y=0,this.animation.x=-20,this.animation.addAction(this.animation.totalFrames-1,0)}return __extends(t,e),t.prototype.onResize=function(){},t.prototype.play=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1),this.hasDoneAction=!1,this.menuToShow=e,this.levelToLoad=t,this.isActive=!0,this.stage.addChild(this.animation),this.animation.gotoAndPlay(0),this.update(0),this.firstUpdate=!0,SoundsManager.instance.playSound("transition_sound")},t.prototype.update=function(t){if(e.prototype.update.call(this,t),this.isActive){this.firstUpdate&&(this.firstUpdate=!1,t=1/60),this.animation.update(t);var s=this.animation.currentFrame==this.animation.totalFrames-1;this.animation.currentFrame>=30&&(this.menuToShow||this.levelToLoad>=0)&&!this.hasDoneAction&&this.doAction();var i=this.stage.getNumChildren()-1;this.stage.setChildIndex(this.animation,i),s&&this.stopMove()}},t.prototype.doAction=function(){this.hasDoneAction||(this.hasDoneAction=!0,App.game.preloader.isActive()&&App.game.preloader.disable(),this.menuToShow?(this.menuToShow!=MenuManager.instance.map&&this.menuToShow!=MenuManager.instance.mainMenu||!Match3Level.instance.isActive||Match3Level.instance.reset(),MenuManager.instance.show(this.menuToShow,!1)):(MenuManager.instance.closeCurrent(),LevelManager.instance.loadLevel(this.levelToLoad)),this.levelToLoad=-1,this.menuToShow=null)},t.prototype.stopMove=function(){this.hasDoneAction||this.doAction(),createjs.Tween.removeTweens(this),removeClip(this.animation),this.isActive=!1},t}(Menu),WinMenu=function(e){function t(){var t=this;e.call(this),this.stars=[],this.starAmount=3,this.starsShowedAmount=0,this.starShowLeft=0,this.shines=[];var s=new createjs.Container,i=new createjs.Container;this.mainSprite=i,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,s.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var r=0;2>r;++r){var a=new createjs.Container,n=-1,o=createBitmap("back_line");o.regX=App.SCREEN_W/2,o.x=0,o.y=n,a.addChild(o);var c=createSpriteFromSpritesheet("menu_line_part1");a.addChild(c),c.y=159+n,c.x=-App.SCREEN_W/2,c=createSpriteFromSpritesheet("menu_line_part2"),a.addChild(c),c.y=159+n,c.x=App.SCREEN_W/2-35,1==r&&(a.scaleY=-1,a.scaleX=-1),a.y=0,a.x=App.SCREEN_W/2,i.addChild(a)}c=createSpriteFromSpritesheet("hint_dude"),c.x=324,c.y=-380,s.addChild(c),s.addChild(i),this.sprite=s,this.heroAnimation=new AnimatedNode(AnimationManager.instance.getAnimation("character"),1/30,null),s.addChild(this.heroAnimation),this.heroAnimation.addAction(this.heroAnimation.totalFrames-1,1,0),this.heroAnimation.x=150,this.heroAnimation.y=730,this.heroAnimation.scaleX=this.heroAnimation.scaleY=.6;var a=new createjs.Container;c=createSpriteFromSpritesheet("play_next_btn"),a.addChild(c),c=createSpriteFromSpritesheet("play"),c.x=34,c.y=15,a.addChild(c);var h=new ScaleButton(a,function(){t.onPlayDown()},this.mainSprite,435,95);this.animatedButtons.push(h),this.clickables.push(h);var h=new ScaleButton(createSpriteFromSpritesheet("home_button"),function(e){t.homeAndUnlock(e)},this.mainSprite,265,95);this.animatedButtons.push(h),this.clickables.push(h);var h=new ScaleButton(createSpriteFromSpritesheet("restart_button"),function(e){t.restarAndUnlock(e)},this.mainSprite,150,95);this.animatedButtons.push(h),this.clickables.push(h);var l,p=createSpriteFromSpritesheet("victory");p.regX=p.getBounds().width/2,p.regY=p.getBounds().height/2,p.x=App.SCREEN_W/2,p.y=-160,this.mainSprite.addChild(p);for(var r=0;3>r;++r){l=createSpriteFromSpritesheet("star glow"),l.x=-90+90*r+App.SCREEN_W/2,l.y=-65,l.scaleX=l.scaleY=1;var u=l.getBounds();l.regX=u.width/2,l.regY=u.height/2,this.mainSprite.addChild(l),this.shines.push(l)}for(var r=0;3>r;++r)l=createSpriteFromSpritesheet("victory_star_large"),l.x=-90+90*r+App.SCREEN_W/2,l.y=-65,l.regX=l.getBounds().width/2,l.regY=l.getBounds().height/2,this.mainSprite.addChild(l),this.stars.push(l);var d=new LogoObject(this.mainSprite,.75*App.SCREEN_W,190,1);this.clickables.push(d),this.onResize()}return __extends(t,e),t.prototype.onResize=function(){e.prototype.onResize.call(this);var t=(App.ACTUAL_H-App.SCREEN_H)/(App.FULL_SCREEN_H-App.SCREEN_H);this.heroAnimation.y=lerp(730,800,t),this.heroAnimation.scaleX=this.heroAnimation.scaleY=lerp(.6,.75,t)},t.prototype.loadMain=function(){MenuManager.instance.show(MenuManager.instance.mainMenu)},t.prototype.restarAndUnlock=function(e){LevelManager.instance.restartLoadNextLevel(),this.restartLevel(e)},t.prototype.homeAndUnlock=function(e){LevelManager.instance.restartLoadNextLevel(),this.loadMain(e)},t.prototype.onPlayDown=function(){try{MenuManager.instance||new MenuManager,LevelManager.instance.loadNextLevel(),SoundsManager.instance.playSound("pause")}catch(e){alert("play down2 "+e)}},t.prototype.setStarData=function(e){this.starAmount=e},t.prototype.getHeroPosData=function(){return[100,300,0]},t.prototype.show=function(){var t=this;this.onResize(),e.prototype.show.call(this),this.starsShowedAmount=0,this.starShowLeft=this.starAmount;for(var s=0;s<this.stars.length;++s){var i=this.stars[s];i.visible=!1,createjs.Tween.removeTweens(i),this.shines[s].visible=!1,createjs.Tween.removeTweens(this.shines[s])}AwardManager.onLevelComplete(this.level.levelData.levelNumber);for(var s=0;s<this.starAmount;++s){i=this.stars[s],i.visible=!0,i.alpha=0,i.scaleX=i.scaleY=3;var r=1e3+600*s;createjs.Tween.get(i,{loop:!1}).wait(r).to({alpha:1,scaleX:1,scaleY:1},250,createjs.Ease.none).call(function(){return t.stopStarMove()}),i.visible&&SoundsManager.instance.playSound("star_sound"+(s+1),r)}removeClip(this.scoreText);var a=new createjs.BitmapText("score: "+Math.floor(this.level.score),App.game.atlases[0]);a.letterSpacing=-5,a.regX=a.getBounds().width/2,a.x=App.SCREEN_W/2,a.y=-60,this.mainSprite.addChild(a),this.scoreText=a;var n=0,o=App.FULL_SCREEN_H/2-130;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(n).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(n).to({y:o},1300,createjs.Ease.elasticOut),SoundsManager.instance.pauseMusic(),SoundsManager.instance.playSound("win")},t.prototype.stopStarMove=function(){var e=this.shines[this.starsShowedAmount];e.visible=!0,e.rotation=0,e.alpha=1,createjs.Tween.get(e,{loop:!1}).wait(0).to({alpha:0,rotation:90},600,createjs.Ease.none),this.starsShowedAmount++,this.starShowLeft--,this.starShowLeft<=0&&App.game.showAds()},t.prototype.hide=function(){var t=this;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}),SoundsManager.instance.resumeMusic()},t.prototype.update=function(t){e.prototype.update.call(this,t),this.heroAnimation.update(t)},t}(Menu),PauseLikeMenu=function(e){function t(t,s){void 0===t&&(t="window_back"),void 0===s&&(s=0),e.call(this),this.showDelay=0,this.targetPos=420;var i=new createjs.Container;this.sprite=i,i.y=0;var r=new createjs.Container,a=createSpriteFromSpritesheet("window_back",1),n=a.getBounds();a.scaleX=(100+App.SCREEN_W)/n.width,a.scaleY=(80+App.FULL_SCREEN_H)/n.height,a.y=-i.y-40,a.x=-50,this.grayBack=a,i.addChild(a);var o=createSpriteFromSpritesheet(t);o.regX=o.getBounds().width/2,o.x=App.SCREEN_W/2,o.regY=o.getBounds().height/2,r.addChild(o),this.backSprite=o,i.addChild(r),this.baseSprite=r,this.brandLogo=new LogoObject(i,App.SCREEN_W-90,App.CURRENT_SHIFT+App.SCREEN_H-30+s,1),this.brandLogo.sprite&&(this.brandLogo.sprite.y=App.ACTUAL_H-40+(App.FULL_SCREEN_H-App.ACTUAL_H)/2+s,this.clickables.push(this.brandLogo)),this.moreGames=new MoreGamesButton(i,90,App.CURRENT_SHIFT+App.SCREEN_H-30+s,1),this.moreGames.sprite&&(this.moreGames.sprite.y=App.ACTUAL_H-60+(App.FULL_SCREEN_H-App.ACTUAL_H)/2+s,this.clickables.push(this.moreGames))}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this),createjs.Tween.removeTweens(this.baseSprite),createjs.Tween.removeTweens(this.grayBack),this.grayBack.alpha=0,this.baseSprite.y=-250,createjs.Tween.get(this.grayBack,{loop:!1}).wait(this.showDelay).to({alpha:1},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.baseSprite,{loop:!1}).wait(this.showDelay).to({y:this.targetPos},1300,createjs.Ease.elasticOut),SoundsManager.instance.playSound("gui_move")},t.prototype.hide=function(){var t=this;return this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.baseSprite),createjs.Tween.removeTweens(this.grayBack),this.grayBack.alpha=1,createjs.Tween.get(this.grayBack,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),void createjs.Tween.get(this.baseSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}))},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t}(Menu),TargetMenu=function(e){function t(){e.call(this);var t=new createjs.Container,s=new createjs.Container;this.mainSprite=s,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,t.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var i=0;2>i;++i){var r=new createjs.Container,a=-20,n=createBitmap("back_line");n.regX=App.SCREEN_W/2,n.x=0,n.y=a,r.addChild(n);var o=createSpriteFromSpritesheet("menu_line_part1");r.addChild(o),o.y=159+a,o.x=-App.SCREEN_W/2,o=createSpriteFromSpritesheet("menu_line_part2"),r.addChild(o),o.y=159+a,o.x=App.SCREEN_W/2-35,1==i&&(r.scaleY=-1,r.scaleX=-1),r.y=0,r.x=App.SCREEN_W/2,s.addChild(r)}o=createSpriteFromSpritesheet("hint_dude"),o.x=324,o.y=-380,s.addChild(o),t.addChild(s),this.sprite=t;var c=new createjs.BitmapText("tap to continue...",App.game.atlases[3]);c.letterSpacing=-5,c.scaleX=c.scaleY=1,c.regX=c.getBounds().width/2,c.x=App.SCREEN_W/2,c.y=42,s.addChild(c);var c=new createjs.BitmapText(" ",App.game.atlases[0]);c.letterSpacing=-4,c.spaceWidth=15,c.scaleX=.95,c.scaleY=1,s.addChild(c),this.targetText=c,o=createSpriteFromSpritesheet("star_target"),o.x=App.SCREEN_W/2,o.y=50,s.addChild(o),this.targetSprite=o;var h=new LogoObject(this.mainSprite,.5*App.SCREEN_W,180,1);this.clickables.push(h)}return __extends(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t)},t.prototype.show=function(){e.prototype.show.call(this);var t=Match3Level.instance.target.getText(),s=t[0],i=this.targetText;i.text=s,i.x=App.SCREEN_W/2-i.scaleX*i.getBounds().width/2,i.y=-80;var r=this.targetSprite,a=t[1];r.spriteSheet=App.game.atlases[getSpritesheetByName(a)],r.gotoAndStop(a),r.scaleX=r.scaleY=1,r.regX=r.getBounds().width/2,r.regY=r.getBounds().height/2;var n=0,o=App.FULL_SCREEN_H/2;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(n).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(n).to({y:o},1300,createjs.Ease.elasticOut),SoundsManager.instance.playSound("gui_move")},t.prototype.hide=function(){var t=this;return this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),void createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}))},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t.prototype.onUp=function(t,s){e.prototype.onUp.call(this,t,s),this==MenuManager.instance.current&&0==this.lastClickCount&&(MenuManager.instance.closeCurrent(),Match3Level.instance.isPaused&&Match3Level.instance.unpause())},t}(Menu),PauseMenu=function(e){function t(){var t=this;e.call(this),e.call(this);var s=new createjs.Container,i=new createjs.Container;this.mainSprite=i,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,s.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var r=0;2>r;++r){var a=new createjs.Container,n=-5,o=createBitmap("back_line");o.regX=App.SCREEN_W/2,o.x=0,o.y=n,a.addChild(o);var c=createSpriteFromSpritesheet("menu_line_part1");a.addChild(c),c.y=159+n,c.x=-App.SCREEN_W/2,c=createSpriteFromSpritesheet("menu_line_part2"),a.addChild(c),c.y=159+n,c.x=App.SCREEN_W/2-35,1==r&&(a.scaleY=-1),a.y=0,a.x=App.SCREEN_W/2,i.addChild(a)}c=createSpriteFromSpritesheet("hint_dude"),c.x=324,c.y=-410,i.addChild(c),s.addChild(i),this.sprite=s;var h=new createjs.BitmapText("PAUSE",App.game.atlases[0]);h.letterSpacing=-5,h.scaleX=h.scaleY=1.3,h.regX=h.getBounds().width/2,h.x=App.SCREEN_W/2,h.y=-165,i.addChild(h);var l=new ScaleButton(createSpriteFromSpritesheet("home_button"),function(e){t.loadMainMenu(e)},this.mainSprite,-49+App.SCREEN_W/2,-1);l.baseScale=.85,l.updateRectScale(),this.animatedButtons.push(l),this.clickables.push(l);var l=new ScaleButton(createSpriteFromSpritesheet("restart_button"),function(e){t.restartLevel(e)},this.mainSprite,49+App.SCREEN_W/2,-1);l.baseScale=.85,l.updateRectScale(),this.animatedButtons.push(l),this.clickables.push(l);var a=new createjs.Container;c=createSpriteFromSpritesheet("play_next_btn"),a.addChild(c),c=createSpriteFromSpritesheet("play"),c.x=34,c.y=15,a.addChild(c);var l=new ScaleButton(a,function(){t.onPlayDown()},this.mainSprite,App.SCREEN_W/2,95);l.baseScale=.85,l.updateRectScale(),this.animatedButtons.push(l),this.clickables.push(l);var l=new SoundButton(!0,this.mainSprite,-42+App.SCREEN_W/2-230,-100,1);this.animatedButtons.push(l),this.clickables.push(l);var l=new SoundButton(!1,this.mainSprite,42+App.SCREEN_W/2-230,-100,1);this.animatedButtons.push(l),this.clickables.push(l);var p=new LogoObject(this.mainSprite,.5*App.SCREEN_W,180,1);this.clickables.push(p)}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this);var t=0,s=App.FULL_SCREEN_H/2;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(t).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(t).to({y:s},1300,createjs.Ease.elasticOut),SoundsManager.instance.playSound("gui_move")},t.prototype.onPlayDown=function(){try{Match3Level.instance.unpause(),SoundsManager.instance.playSound("pause")}catch(e){alert("play downXX "+e)}},t.prototype.update=function(t){e.prototype.update.call(this,t)},t.prototype.hide=function(){var t=this;return this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),void createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}))},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t}(Menu),LoseMenu=function(e){function t(){var t=this;e.call(this),e.call(this);var s=new createjs.Container,i=new createjs.Container;this.mainSprite=i,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,s.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var r=0;2>r;++r){var a=new createjs.Container,n=-40,o=createBitmap("back_line");o.regX=App.SCREEN_W/2,o.x=0,o.y=n,a.addChild(o);var c=createSpriteFromSpritesheet("menu_line_part1");a.addChild(c),c.y=159+n,c.x=-App.SCREEN_W/2,c=createSpriteFromSpritesheet("menu_line_part2"),a.addChild(c),c.y=159+n,c.x=App.SCREEN_W/2-35,1==r&&(a.scaleY=-1,a.scaleX=-1),a.y=0,a.x=App.SCREEN_W/2,i.addChild(a)}s.addChild(i),this.sprite=s;var h=new createjs.BitmapText("try again!",App.game.atlases[0]);h.letterSpacing=-5,h.scaleX=h.scaleY=1,h.regX=h.getBounds().width/2,h.x=App.SCREEN_W/2,h.y=-125,i.addChild(h);var l=new ScaleButton(createSpriteFromSpritesheet("home_button"),function(e){t.loadMainMenu(e)},this.mainSprite,App.SCREEN_W/2-85,45);this.animatedButtons.push(l),this.clickables.push(l);var l=new ScaleButton(createSpriteFromSpritesheet("restart_button"),function(e){t.restartLevel(e)},this.mainSprite,App.SCREEN_W/2+85,45);this.animatedButtons.push(l),this.clickables.push(l);var p=new LogoObject(this.mainSprite,.5*App.SCREEN_W,150,1);this.clickables.push(p)}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this),SoundsManager.instance.playSound("fail"),SoundsManager.instance.pauseMusic();var t=0,s=App.FULL_SCREEN_H/2;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(t).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(t).to({y:s},1300,createjs.Ease.elasticOut)},t.prototype.hide=function(){var t=this;return this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}),void SoundsManager.instance.resumeMusic())},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t.prototype.update=function(t){e.prototype.update.call(this,t)},t}(Menu),ResultMenu=function(e){function t(){var t=this;e.call(this),this.dataTexts=[];var s=new createjs.Container,i=new createjs.Container;this.mainSprite=i,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,s.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var r=0;2>r;++r){var a=new createjs.Container,n=-20,o=createBitmap("back_line");o.regX=App.SCREEN_W/2,o.x=0,o.y=n,a.addChild(o),p=createSpriteFromSpritesheet("menu_line_part1"),a.addChild(p),p.y=159+n,p.x=-App.SCREEN_W/2,p=createSpriteFromSpritesheet("menu_line_part2"),a.addChild(p),p.y=159+n,p.x=App.SCREEN_W/2-35,1==r&&(a.scaleY=-1,a.scaleX=-1),a.y=0,a.x=App.SCREEN_W/2,i.addChild(a)}s.addChild(i),this.sprite=s,l=new createjs.BitmapText("game complete!",App.game.atlases[0]),l.letterSpacing=-3,l.spaceWidth=25,l.regX=l.getBounds().width/2,l.x=App.SCREEN_W/2,l.y=-170,this.mainSprite.addChild(l);for(var c=["stars earned:","total moves:","total score:","bonuses used:"],r=0;r<c.length;++r)for(var h=0;2>h;h++)if(1!=h){var l=new createjs.BitmapText(0==h?c[r]:getInt(1e6).toString(),App.game.atlases[3]);l.letterSpacing=-5,l.spaceWidth=25,l.regX=0==h?0:l.getBounds().width/2,l.x=0==h?120:520,l.y=-35+48*r+(0==h?0:-20)-80,l.scaleX=1,this.mainSprite.addChild(l)}var a=new createjs.Container,p=createSpriteFromSpritesheet("play_next_btn");a.addChild(p),p=createSpriteFromSpritesheet("play"),p.x=34,p.y=15,a.addChild(p);var u=new ScaleButton(a,function(){t.onPlayDown()},this.mainSprite,App.SCREEN_W/2,200);this.animatedButtons.push(u),this.clickables.push(u)}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this);for(var t=0;t<this.dataTexts.length;++t)removeClip(this.dataTexts[t]);this.dataTexts=[];for(var s=[LevelManager.instance.totalStars+"/"+3*LevelManager.LEVEL_AMOUNT,LevelManager.instance.moves.toString(),LevelManager.instance.totalScores.toString(),LevelManager.instance.bonuses.toString()],t=0;t<s.length;++t)for(var i=0;2>i;i++)if(0!=i){var r=new createjs.BitmapText(s[t],App.game.atlases[3]);r.letterSpacing=-5,r.spaceWidth=25,r.regX=0==i?0:r.getBounds().width/2,r.x=0==i?30:440,r.y=-35+48*t+0-80,r.scaleX=r.scaleY=0==i?.7:1,this.dataTexts.push(r),this.mainSprite.addChild(r)}var a=0,n=App.FULL_SCREEN_H/2;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(a).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(a).to({y:n},1300,createjs.Ease.elasticOut),SoundsManager.instance.pauseMusic(),SoundsManager.instance.playSound("win")},t.prototype.hide=function(){var t=this;return SoundsManager.instance.resumeMusic(),this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),void createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}))},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t.prototype.onPlayDown=function(){try{this.loadMainMenu()}catch(e){alert("play downXXt "+e)}},t.prototype.update=function(t){e.prototype.update.call(this,t)},t}(Menu),CreditsMenu=function(e){function t(){var t=this;e.call(this);var s=new createjs.Container,i=new createjs.Container;this.mainSprite=i,this.backSprite=createSpriteFromSpritesheet("window_back3",1),this.backSprite.scaleX=(App.SCREEN_W+100)/this.backSprite.getBounds().width,this.backSprite.scaleY=(App.FULL_SCREEN_H+100)/this.backSprite.getBounds().height,s.addChild(this.backSprite),this.backSprite.x=this.backSprite.y=-50;for(var r=0;2>r;++r){var a=new createjs.Container,n=-10,o=createBitmap("back_line");o.regX=App.SCREEN_W/2,o.x=0,o.y=n,a.addChild(o);var c=createSpriteFromSpritesheet("menu_line_part1");a.addChild(c),c.y=159+n,c.x=-App.SCREEN_W/2,c=createSpriteFromSpritesheet("menu_line_part2"),a.addChild(c),c.y=159+n,c.x=App.SCREEN_W/2-35,1==r&&(a.scaleY=-1,a.scaleX=-1),a.y=0,a.x=App.SCREEN_W/2,i.addChild(a)}s.addChild(i),this.sprite=s;var h=new createjs.BitmapText("credits",App.game.atlases[0]);h.letterSpacing=-6,h.spaceWidth=15,h.scaleX=h.scaleY=1,i.addChild(h),h.regX=h.getBounds().width/2,h.regY=h.getBounds().height/2,h.x=App.SCREEN_W/2,h.y=-165;for(var l=[[" Code\nlevels","Andriy Vinchkovskiy","contact@hiddenlayergames.com"],["Art","Vadim Kovtun"," "],["Sound, music","IK-SOUND"],["Thanks to"," Alexey Testov\n Konstantin Boronenkov"]],r=0;r<l.length;++r)for(var p=0;p<l[r].length;++p){var h=new createjs.BitmapText(l[r][p],App.game.atlases[2==p?0:3]);h.letterSpacing=-6,h.spaceWidth=15,h.scaleX=h.scaleY=1,i.addChild(h),h.getBounds()&&(h.regX=h.getBounds().width/2,h.regY=h.getBounds().height/2),h.lineHeight=27,h.scaleX=h.scaleY=2==p?.8:1,h.x=0==p?100:400,h.y=(0==r?-120:-80)+45*r+(2==p?48:0)+(1==p&&0==r?-13:0)+(3==r&&1==p?13:0)}var u=new ScaleButton(createSpriteFromSpritesheet("home_button"),function(){t.onPlayDown()},this.mainSprite,App.SCREEN_W/2,211);this.animatedButtons.push(u),this.clickables.push(u)}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this);var t=0,s=App.FULL_SCREEN_H/2;createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),this.backSprite.alpha=0,this.mainSprite.y=-450,createjs.Tween.get(this.backSprite,{loop:!1}).wait(t).to({alpha:.75},260,createjs.Ease.cubicInOut),createjs.Tween.get(this.mainSprite,{loop:!1}).wait(t).to({y:s},1300,createjs.Ease.elasticOut),SoundsManager.instance.playSound("gui_move"),this.isMenuActive=!0
  6. },t.prototype.hide=function(){var t=this;return this.isMenuActive=!1,this.needToHideInstantly()?void e.prototype.hide.call(this):(createjs.Tween.removeTweens(this.mainSprite),createjs.Tween.removeTweens(this.backSprite),createjs.Tween.get(this.backSprite,{loop:!1}).wait(0).to({alpha:0},750,createjs.Ease.cubicInOut),void createjs.Tween.get(this.mainSprite,{loop:!1}).wait(0).to({y:-550},750,createjs.Ease.elasticInOut).call(function(){return e.prototype.hide.call(t)}))},t.prototype.needToHideInstantly=function(){return null==MenuManager.instance.transition.menuToShow&&MenuManager.instance.transition.isActive},t.prototype.onPlayDown=function(){try{this.hide()}catch(e){alert("play downXXt "+e)}},t.prototype.update=function(t){e.prototype.update.call(this,t)},t}(Menu),SplashScreen=function(e){function t(){e.call(this);var t=new createjs.Container,s=createSpriteFromSpritesheet("white");s.scaleX=(100+App.SCREEN_W)/50,s.scaleY=(100+App.FULL_SCREEN_H)/50,s.x=s.y=-50,s.regX=0,s.regY=0,t.addChild(s),this.sprite=t}return __extends(t,e),t.prototype.show=function(){e.prototype.show.call(this)},t.prototype.onAnimEnd=function(){MenuManager.instance.show(MenuManager.instance.mainMenu,!0)},t.prototype.onDown=function(t,s){e.prototype.onDown.call(this,t,s),splashScreenData.action()},t}(Menu),LevelTarget=function(){function e(){this.scores=[500,1500,3e3],this.isScoreTarget=!1}return Object.defineProperty(e.prototype,"progress",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this.progress>=1-1e-10},enumerable:!0,configurable:!0}),e.prototype.getExactType=function(){return-1},e.prototype.getText=function(){return[""]},e.prototype.onLevelGenerated=function(){},e.prototype.onMarkRemoved=function(){},e.prototype.onBlockRemoved=function(){},e.prototype.onObjectRemove=function(){},e.prototype.getTargetText=function(){return""},e.prototype.getHudIconData=function(){return null},e}(),PushDownTarget=function(e){function t(t){e.call(this),this.targetsToPush=0,this.targetsPushed=0,this.pushCakeIn=0,this.pushLeft=0,this.pushQueue=0,this.targetsToPush=t,this.setPushTime()}return __extends(t,e),t.prototype.setPushTime=function(){this.pushCakeIn=Match3Level.instance.currentMove,this.needToPush||(this.pushLeft=Math.random()<.02&&this.pushQueue+2<=this.targetsToPush?2:1,this.pushQueue+=this.pushLeft,this.pushQueue>this.targetsToPush&&(this.pushLeft=-1))},Object.defineProperty(t.prototype,"needToPush",{get:function(){return this.pushLeft>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.targetsPushed/this.targetsToPush},enumerable:!0,configurable:!0}),t.prototype.onTargetPush=function(){++this.targetsPushed,this.isCompleted||this.setPushTime()},t.prototype.getTargetText=function(){return limit(this.targetsPushed,0,this.targetsToPush)+"/"+this.targetsToPush},t.prototype.getExactType=function(e,t){return 0==t&&!this.isCompleted&&this.needToPush&&Match3Level.instance.currentMove>=this.pushCakeIn&&-1!=Match3Level.instance.levelData.pushPositions.indexOf(e)?(this.pushLeft--,this.needToPush&&this.setPushTime(),Match3Level.instance.assetNumber):-1},t.prototype.getText=function(){return["drop "+this.targetsToPush+" artifacts to the bottom!","artefact2",1]},t.prototype.getHudIconData=function(){return["quest1",1,1,0,0,0]},t}(LevelTarget),ClearMarkTarget=function(e){function t(){e.call(this),this.marksToRemove=1,this.marksRemoved=0}return __extends(t,e),Object.defineProperty(t.prototype,"progress",{get:function(){return this.marksRemoved/this.marksToRemove},enumerable:!0,configurable:!0}),t.prototype.getTargetText=function(){return limit(this.marksRemoved,0,this.marksToRemove)+"/"+this.marksToRemove},t.prototype.onLevelGenerated=function(){this.marksToRemove=0;for(var e=0;e<App.level.fieldSize;++e)for(var t=0;t<App.level.fieldSize;++t){var s=App.level.cells[e][t];s.isMarked&&++this.marksToRemove}},t.prototype.getText=function(){return["clear dirt on the cells!","dirt2",1]},t.prototype.onMarkRemoved=function(){this.marksRemoved++},t.prototype.getHudIconData=function(){return["quest2",1,1,0,0,0]},t}(LevelTarget),BlockClearTarget=function(e){function t(){e.call(this),this.blocksToRemove=1,this.blocksRemoved=0}return __extends(t,e),t.prototype.getTargetText=function(){return limit(this.blocksRemoved,0,this.blocksToRemove)+"/"+this.blocksToRemove},t.prototype.getText=function(){Match3Level.instance.levelData;return["remove all obstacles!","destructable_block_1",1]},Object.defineProperty(t.prototype,"progress",{get:function(){return this.blocksRemoved/this.blocksToRemove},enumerable:!0,configurable:!0}),t.prototype.onLevelGenerated=function(){this.blocksToRemove=0;for(var e=0;e<App.level.fieldSize;++e)for(var t=0;t<App.level.fieldSize;++t){var s=App.level.cells[e][t];s.isBreakable&&++this.blocksToRemove}},t.prototype.onBlockRemoved=function(){this.blocksRemoved++},t.prototype.getHudIconData=function(){return["quest3",1,1,0,0,0]},t}(LevelTarget),ColorTarget=function(e){function t(t,s){e.call(this),this.colorsToRemove=0,this.colorsRemoved=0,this.colorType=0,this.colorsToRemove=t,this.colorType=s}return __extends(t,e),t.prototype.getTargetText=function(){return limit(this.colorsRemoved,0,this.colorsToRemove)+"/"+this.colorsToRemove},t.prototype.getText=function(){return["collect "+this.colorsToRemove+" "+FieldObject.assetNames[this.colorType]+" gems!",FieldObject.assetNames[this.colorType],1]},Object.defineProperty(t.prototype,"progress",{get:function(){return this.colorsRemoved/this.colorsToRemove},enumerable:!0,configurable:!0}),t.prototype.onObjectRemove=function(e){e.colorType==this.colorType&&this.colorsRemoved++},t.prototype.getHudIconData=function(){return[FieldObject.assetNames[this.colorType],.5,.5,0,-6,1]},t}(LevelTarget),ScoreTarget=function(e){function t(t){e.call(this),this.targetScore=0,this.targetScore=t,this.isScoreTarget=!0}return __extends(t,e),t.prototype.getTargetText=function(){var e=Math.floor(100*limit(Match3Level.instance.score/this.targetScore,0,1));return e+"%"},t.prototype.getText=function(){return["collect "+this.targetScore+" points!","star_target",1]},Object.defineProperty(t.prototype,"progress",{get:function(){return Match3Level.instance.score/this.targetScore},enumerable:!0,configurable:!0}),t.prototype.getHudIconData=function(){return["quest5",1,1,0,0,0]},t}(LevelTarget),InfectionTarget=function(e){function t(){e.call(this),this.maxAmount=1}return __extends(t,e),t.prototype.getTargetText=function(){return CellObject.infectionCells.length.toString()},t.prototype.getText=function(){return["get rid of spiders!","spider",1]},Object.defineProperty(t.prototype,"progress",{get:function(){var e=CellObject.infectionCells.length;this.maxAmount=Math.max(this.maxAmount,e);var t=(this.maxAmount-e)/this.maxAmount;return limit(t,0,1)},enumerable:!0,configurable:!0}),t.prototype.onLevelGenerated=function(){},t.prototype.getHudIconData=function(){return["quest4",1,1,0,0,0]},t}(LevelTarget),InfiniteTarget=function(e){function t(){e.call(this)}return __extends(t,e),t.prototype.getTargetText=function(){return"xxx%"},t.prototype.getText=function(){return["reach xxx points!","star",1]},Object.defineProperty(t.prototype,"progress",{get:function(){return 0},enumerable:!0,configurable:!0}),t}(LevelTarget),BonusIndicator=function(e){function t(t,s,i,r){e.call(this),this.isMovingToTarget=!1,this.isHiding=!1,this.horizontal=!1,this.currentFrame=0,this.target=i,this.bonusType=r;var a=createSpriteFromSpritesheet("bonus_particle");a.regX=43,a.regY=41,a.x=s.pos.x,a.y=s.pos.y,this.sprite=a,addChild(this.sprite,this.level.bonusIndicatorLayer),i.setTempBlock(!0,.05),SoundsManager.instance.playSound("bonus_show"),this.moveToTarget()}return __extends(t,e),t.prototype.moveToTarget=function(){var e=this;this.isMovingToTarget=!0,createjs.Tween.get(this.sprite).wait(700).to({x:this.target.pos.x,y:this.target.pos.y},500,createjs.Ease.cubicIn).call(function(){return e.hide()}),this.isHiding=!0},t.prototype.hide=function(){var e=this;this.isDestroyed||(this.target&&this.target.object&&(this.target.object.setBonusType(this.bonusType,!0),this.target.setTempBlock(!1,-1)),createjs.Tween.get(this.sprite).to({alpha:0,scaleX:0,scaleY:0},300,createjs.Ease.cubicOut).call(function(){return e.destroy()}))},t.prototype.updateTarget=function(e){this.target=e,createjs.Tween.removeTweens(this.sprite),this.moveToTarget()},t.prototype.checkTargetObject=function(){this.isMovingToTarget&&(!this.target.object||this.target.object.isMoving||this.target.isWaitingForClear)&&(this.target=null,this.level.spawnBonus(this.bonusType,null,null,this))},t.prototype.update=function(e){if(this.checkTargetObject(),!this.isDestroyed){this.target.setTempBlock(!0,.05),this.currentFrame+=e/(1/24);for(var s=4;this.currentFrame>3;)this.currentFrame-=3;var i=~~this.currentFrame,r=t.frames[i],a=i==s-1?t.frames[0]:t.frames[i+1],n=this.currentFrame-i;this.sprite.scaleX=1.3*(1+(r[0]+n*(a[0]-r[0])-1)),this.sprite.scaleY=1.3*(1+(r[1]+n*(a[1]-r[1])-1))}},t.prototype.destroy=function(){this.isDestroyed||(createjs.Tween.removeTweens(this.sprite),this.isMovingToTarget=!0,e.prototype.destroy.call(this))},t.frames=[[1.24,1],[.76,1.05],[1.35,1.05],[.7,.95]],t}(GameObject),GemDestroyAnimation=function(e){function t(t){e.call(this),this.totalFrames=0,this.playedScore=!1,this.color=t,this.totalFrames=10,this.fileName=5==t?"color_gone":FieldObject.assetNames[t]+"_gone",this.sprite=new createjs.Sprite(App.game.atlases[0],this.fileName),this.sprite.framerate=21,this.sprite.regX=66,this.sprite.regY=66}return __extends(t,e),t.prototype.destroy=function(){this.isDestroyed||Match3Level.pool.returnGemDestroy(this)},t.prototype.update=function(){if(!this.isDestroyed){var e=this.sprite.currentAnimationFrame;!this.playedScore&&e>this.totalFrames/2&&(this.cell.tryPlayScoreAnimation(),this.playedScore=!0),e>this.totalFrames&&Match3Level.pool.returnGemDestroy(this)}},t.prototype.init=function(e,t,s){if(this.cell=s,this.level=Match3Level.instance,addChild(this.sprite,this.level.gemDestroyLayer),this.sprite.gotoAndPlay(this.fileName),this.sprite.x=e,this.sprite.y=t,this.level.objects.push(this),this.isDestroyed=!1,this.playedScore=!1,Match3Level.instance){var i=limit(s.clearId+1,1,6);SoundsManager.instance.playSound("monster_pop"+i)}},t.prototype.release=function(){this.sprite.stop(),removeClip(this.sprite),this.isDestroyed=!0},t}(GameObject),BonusLineSprite=function(e){function t(t,s,i){e.call(this),this.sprites=[],this.speeds=[],this.type=t;var r,a,n=[],o=[],c=0,h=0;switch(t){case 1:r=2,n.push(180,0),o=[cjp(1,0),cjp(-1,0)],a="fireball",c=30,h=30;break;case 2:r=2,n.push(-90,90),o=[cjp(0,1),cjp(0,-1)],a="fireball",c=30,h=30}for(var l=Match3Level.TILE_SIZE/FieldObject.GEM_KILL_DELAY,p=0;r>p;++p){var u=createSpriteFromSpritesheet(a);u.x=s,u.y=i,this.sprites.push(u),addChild(u,this.level.bonusLayer),u.regX=c,u.regY=h,u.rotation=n[p],u.framerate=18,u.play(),o[p].x*=l,o[p].y*=l,this.speeds.push(o[p])}this.level.objects.push(this)}return __extends(t,e),t.prototype.update=function(e){for(var t=0,s=this.sprites.length,i=0;s>i;++i){var r=this.sprites[i];if(r.visible){t++,r.x+=this.speeds[i].x*e,r.y+=this.speeds[i].y*e;var a=r.getBounds();(a.x+r.x>App.SCREEN_W+100||a.y+r.y>App.ACTUAL_H+100||a.x+a.width+r.x<-100||a.y+a.height+r.y<-100)&&(r.visible=!1,removeClip(r))}}0==t&&this.destroy()},t.prototype.destroy=function(){if(!this.isDestroyed&&this.sprites){e.prototype.destroy.call(this);for(var t=this.sprites.length,s=0;t>s;++s)removeClip(this.sprites[s]);this.sprites=null,this.speeds=null}},t}(GameObject),BonusBombSprite=function(e){function t(t,s,i){var r=this;e.call(this),this.progress=0,this.maxScale=0,this.containter=new createjs.Container,this.sprites=[];var a=3==t?2.5:4;this.maxScale=1.2*a*FieldObject.TILE_SIZE/65,this.containter.x=s,this.containter.y=i,addChild(this.containter,this.level.bonusLayer),this.sprite=this.containter,createjs.Tween.get(this).wait(0).to({progress:1},500,createjs.Ease.cubicOut).call(function(){return r.destroy()});for(var n=0;2>n;++n){var o=createSpriteFromSpritesheet("explosion bomb");o.regX=o.regY=150,this.containter.addChild(o),this.sprites.push(o)}this.level.objects.push(this),this.update(0)}return __extends(t,e),t.prototype.update=function(){for(var e=0;e<this.sprites.length;++e){var t=this.sprites[e],s=0==e?1:.65,i=this.progress>=s?1:1-(s-this.progress)/s;t.scaleX=t.scaleY=.7*lerp(.1,0==e?2:2.3,i),t.alpha=lerp(1,0,i)}},t}(GameObject),LevelManager=function(){function e(){this.data=[],this.currentLevel=0,this.version=.9411,this.isFirstLoad=!0,this.lastOpened=0,this.moves=0,this.bonuses=0,this.version+=10*App.episode,e.LEVEL_AMOUNT=0==App.episode?60:35,e.instance=this;for(var t=e.levelDatas[App.episode],s=0;s<e.LEVEL_AMOUNT;++s){var i=s<t.length?"="+t[s]:null;this.data.push(new LevelData(s,i,0==s?LevelData.OPENED_STATE:LevelData.CLOSED_STATE))}this.load()}return Object.defineProperty(e.prototype,"totalScores",{get:function(){for(var e=this.data.length,t=0,s=0;e>s;++s)t+=this.data[s].score;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalStars",{get:function(){for(var e=this.data.length,t=0,s=0;e>s;++s)t+=this.data[s].stars;return t},enumerable:!0,configurable:!0}),e.prototype.loadLevel=function(e){MenuManager.instance.closeCurrent(),this.currentLevel=e,App.level.init(e)},e.prototype.loadNextLevel=function(){if(this.data[this.currentLevel].state=LevelData.COMPLETED_STATE,this.currentLevel<e.LEVEL_AMOUNT-1){this.currentLevel++;var t=this.data[this.currentLevel].state;this.data[this.currentLevel].state=Math.max(LevelData.OPENED_STATE,this.data[this.currentLevel].state),this.lastOpened=Math.max(this.lastOpened,this.currentLevel),t==LevelData.CLOSED_STATE&&(MenuManager.instance.map.levelToUnlock=this.currentLevel),MenuManager.instance.show(MenuManager.instance.map)}this.save()},e.prototype.restartLoadNextLevel=function(){if(this.data[this.currentLevel].state=LevelData.COMPLETED_STATE,this.currentLevel<e.LEVEL_AMOUNT-1){var t=this.data[this.currentLevel+1].state;this.data[this.currentLevel+1].state=Math.max(LevelData.OPENED_STATE,this.data[this.currentLevel+1].state),this.lastOpened=Math.max(this.lastOpened,this.currentLevel+1),t==LevelData.CLOSED_STATE&&MenuManager.instance.map.fastUnlock(this.currentLevel+1)}this.save()},e.prototype.onLevelComplete=function(e,t){MenuManager.instance.winMenu.setStarData(e),this.data[this.currentLevel].state=LevelData.COMPLETED_STATE,this.data[this.currentLevel].stars=Math.max(e,this.data[this.currentLevel].stars),this.data[this.currentLevel].score=Math.max(t,this.data[this.currentLevel].score),this.save();var s={levelNumber:(this.currentLevel+1).toString(),stars:this.data[this.currentLevel].stars.toString(),score:this.data[this.currentLevel].score.toString(),time:Match3Level.instance.levelTime};safeTrackEvent("level_complete",s)},e.prototype.prepareToLoadLevel=function(e){MenuManager.instance.transition.play(null,e)},e.prototype.restartLevel=function(){this.prepareToLoadLevel(this.currentLevel)},e.prototype.save=function(){if(this.isLocalStorageAvailable){for(var e={version:this.version,moves:this.moves,bonuses:this.bonuses},t=[],s=0;s<this.data.length;++s){var i=this.data[s];t.push({c:i.state,s:i.stars,p:i.score})}e.levels=t,e.gemCount=AwardManager.gemCount,e.artifactsDropped=AwardManager.artifactsDropped,localStorage.setItem("save",JSON.stringify(e))}},e.prototype.load=function(){if(this.isLocalStorageAvailable){var e=localStorage.getItem("save");if(e){e=JSON.parse(e);var t=e.levels;if(t){if(this.version!=e.version)return void localStorage.clear();this.moves=Math.max(this.moves,e.moves),this.bonuses=Math.max(this.bonuses,e.bonuses);for(var s=0;s<t.length;++s)this.data[s].state=t[s].c,this.data[s].stars=t[s].s,this.data[s].score=t[s].p,this.data[s].state>=LevelData.OPENED_STATE&&(this.lastOpened=Math.max(this.lastOpened,s));this.currentLevel=this.lastOpened,this.isFirstLoad=!1,AwardManager.gemCount=e.gemCount,AwardManager.artifactsDropped=e.artifactsDropped}}}},Object.defineProperty(e.prototype,"isLocalStorageAvailable",{get:function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),"localStorage"in window&&null!==window.localStorage}catch(e){return!1}},enumerable:!0,configurable:!0}),e.LEVEL_AMOUNT=0==App.episode?60:35,e.levelDatas=[[],["70707070707070700504050505040204040102020101020102040105020204040102040405050102040501050404010204050104010104047070707070707070-4-5000-1-5000-6000-7000-13-11111111-11011-0.000-0","70707020202020207000000000000020000000000000002000000000000000200000000000000020000000000000002070000000000000207070702020202020-4-7500-1-7500-9500-11000-18-11111111-11111-0.000-0","00007010107000000000000000002020000000000020207000000000202020100000000020202010000000000020207000000000000020200000701010700000-3-30-1-11000-14000-18000-26-11111111-11111-0.000-0","00000000000020200000000000000020000000202000000000002020202000000000202020200000000000202000000000000000000000200000000000002020-0-30-1-5000-6500-8000-16-11111111-11111-0.000-0","70707070707070700000000000000000000000000000000050505050505050505050505050505050000000000000000000000000000000007070707070707070-1-30-1-5000-6000-8000-16-11111111-11111-0.000-0","00000000000070700000005050500070005050502050500000502020202050000050202020205000005050205050500000005050500000700000000000007070-1-30-1-7000-9000-11000-16-11111111-11111-0.000-0","00000000202000000000000020200000000000002020000000000000202000000000000020200000000000002020000000000000202000000000000020200000-2-2-1-12000-15000-19000-35-01111110-11111-0.000-0","10000000000000100000000000000000000000000000000000000070700000000000007070000000000000000000000000000000000000001000000000000010-4-10000-1-10000-12000-13000-26-01111110-11111-0.000-0","00002020200000200000007000002020000000700020202000000000202020200000000020202020000000700020202000000070000020200000202020002020-0-12000-1-9000-12000-16000-28-01111110-11111-0.000-0","00700070700070700000000000000070000000000000000000000040400000000000004040000000000000000000000000000000000000700070007070007070-4-12000-1-12000-14000-17000-26-01111110-11111-0.000-0","70707070707070700000000000000000000000002020200000000000204020400000000020402040000000002020200000000000000000007070707070707070-5-12000-1-9000-14000-16000-30-01111110-11111-0.000-0","00000080007070700000008000207070000000800020207000000080002020200000008000202020000000800020207000000080002070700000008000707070-0-12000-1-10000-14000-18000-32-01111110-11111-0.000-0","50505070707050500000507070000050000050702000005000005080200000000000508020000000000050702000005000005070700000505050507070705050-1-12000-1-10000-13000-16000-26-01111110-11111-0.000-0","00000000002080010000000040802003000000000020800400000000408020420000000040208042000000000080200400000000402080010000000000802002-5-12000-1-10000-15000-18000-35-01111110-11111-0.000-0","00000000000000000020200000701000002000000000700000000070700000000000007070000000002000000000700000202000007010000000000000000000-4-20000-1-20000-22000-24000-42-01111110-11111-0.000-0","30505030305050305050505050305050505030505030503050505050303050505050505030305050505030505030503050505050503050503050503030505030-1-35000-1-10000-13000-16000-32-01111110-11111-0.000-0","70707070707020200000000000002020000080808080007000008030308000700000803030800070000080808080007000000000000000700000000000000070-0-35000-1-7000-10000-12000-22-01111110-11111-0.000-0","70700000000070700000000000000000000000101000000000000000000000000000000000000000000000101000000000000000000000007070000000007070-3-30-3-9000-12000-14000-25-01111110-11111-0.000-0","10707010707070100000000000000070000000000000007000000000000000700000000000000070000000000000007000000000000000701070701070707010-4-10000-3-10000-12000-14000-18-01111110-11111-0.000-0","10000000000000100000707070700000000000707000000000000000000000000000000000000000000000707000000000007070707000001000000000000010-3-25-2-4000-7000-11000-20-01111110-11111-0.000-0","50505070705050505050505030305050000080808030505000008060603050500000806060305050000080808030505050505050303050505050507070505050-1-15-2-4000-7000-12000-25-01111110-11111-0.000-0","00000020606050500000003020606050000000203020606000000000203020600000000020302060000000203020606000000030206060500000002060605050-1-15-2-8000-11000-15000-22-01111110-11111-0.000-0","00000020606050500000003020606050000000203020606000000000203020600000000020302060000000203020606000000030206060500000002060605050-1-15-2-8000-11000-13000-28-01111110-11111-0.000-0","00000070707070700000008030207070000000803030207000000090303030000000009030303000000000803030207000000080302070700000007070707070-0-15-2-5000-8000-12000-28-01111110-11111-0.000-0","10100000000010101000007070000010000000000000000000700000000070000070000000007000000000000000000010000070700000101010000000001010-4-20000-2-20000-25000-30000-33-01111110-11110-0.000-0","00000000005060600070700060606060006060000050606000606090907070700060609090707070006060000050606000707000606060600000000000506060-1-20000-2-10000-15000-20000-35-01111110-11111-0.000-0","00000080802000000000008080200000000000808020000000000080802000000000008080200000000000808020000000000080802000000000008080200000-2-2-2-18000-29000-36000-50-01111110-11111-0.000-0","50500060000060000000000000000000000080800000000000008060060660000000806006066000000080800000000000000000000000005050006000006000-1-2-2-15000-19000-23000-38-01111110-11111-0.000-0","70707083837070707070020102057070700501030502057005030242440103820403014544020182700204050503047070700103030170707070708582707070-3-18-2-5000-9000-12000-20-01111110-11111-0.000-0","00000000303030300000000030606060000000003060606000000000707070700000000070707070000000003060606000000000306060600000000030303030-1-18-2-11000-19000-25000-50-01111110-11111-0.000-0","00007070707000000000009090909090000000908080808000000090806060600000009080606060000000908080808000000090909090900000707070700000-1-18-2-9000-11000-15000-38-01111110-11111-0.000-0","70707070707070706060707070706060606000000060606060600000006060006060000000606000606000000060606060607070707060607070707070707070-1-18-2-13000-15000-17000-38-01111110-11111-0.000-0","00000000000000000000007030300000000000003030303000000030307030300000003030703030000000003030303000000070303000000000000000000000-0-25000-1-20000-30000-35000-55-11111111-11111-0.000-0","70701030301070707030303030303070303030000030303000000000000000000000000000000000303030000030303070303030303030707070103030107070-3-50-1-15000-19000-25000-40-11111111-11111-0.000-0","70000030306060600000007030606060000000303060606000000030303030300000003030303030000000303060606000000070306060607000003030606060-1-18-1-10000-20000-30000-38-11111111-11111-0.000-0"],[]],e}(),LevelData=function(){function e(t,s,i){void 0===i&&(i=0),this.state=0,this.levelNumber=0,this.stars=0,this.score=0,this.pushPositions=[],this.typeEnable=[!0,!0,!0,!0,!0,!0,!0],this.tileData=[],this.hasWhiteChoco=!1,this.hasBlackChoco=!1,this.isTimeLevel=!1,this.shieldProbability=0,this.data=s,this.data||(this.data=e.defaultData),this.state=i,this.levelNumber=t,this.stars=0;for(var r=0;r<Match3Level.LEVEL_W;++r)this.pushPositions.push(r);var a=this.data.split("-");if(this.cellData=a[0],this.targetData=parseInt(a[1]),this.customData=parseInt(a[2]),this.customData2=parseInt(a[3]),this.limitLeft=parseInt(a[7]),this.starValues=[parseInt(a[4]),parseInt(a[5]),parseInt(a[6])],a.length>8){this.pushPositions=[];for(var n=a[8],o=0;o<n.length&&o<Match3Level.LEVEL_W;++o)1==parseInt(n.charAt(o))&&this.pushPositions.push(o)}if(a.length>9)for(var c=a[9],o=0;o<c.length;++o)this.typeEnable[o]=1==parseInt(c.charAt(o));a.length>10&&(this.shieldProbability=parseFloat(a[10])),a.length>11&&(this.isTimeLevel="1"==a[11].charAt(0));for(var h=[],r=0;r<Match3Level.LEVEL_W;++r){for(var l=[],p=0;p<Match3Level.LEVEL_H;++p){var u=Match3Level.getCellDataType(this.cellData,r,p);2==u&&(this.hasWhiteChoco=!0),3==u&&(this.hasBlackChoco=!0),l.push(u)}h.push(l)}switch(this.generateTiles(h),this.targetData){case 0:this.targetSpriteName="block2";break;case 1:this.targetSpriteName="dirt1";break;case 2:this.targetSpriteName="cupcake";break;case 3:this.targetSpriteName=FieldObject.assetNames[this.customData2];break;case 4:this.targetSpriteName="star";break;case-1:this.targetSpriteName="star"}}return e.prototype.getCakeSpawnPos=function(){var e=getInt(this.pushPositions.length);return this.pushPositions[e]},e.prototype.generateTiles=function(t){for(var s=e.tileData.length,i=-1;i<Match3Level.LEVEL_H+1;++i)for(var r=-1;r<Match3Level.LEVEL_W+1;++r)for(var a=0;s>a;++a){for(var n=e.tileData[a],o=n.signature,c=!0,h=-1;1>=h&&c;++h)for(var l=-1;1>=l;++l){var p=r+h,u=i+l,d=0>p||p>=Match3Level.LEVEL_W,y=0>u||u>=Match3Level.LEVEL_H,g=y?0:d?0:7==t[p][u]?0:1,m=h+1+3*(l+1);if(c=c&&(-1==o[m]||g==o[m]),!c)break}if(c){var f=Match3Level.gridToStage(r,i),v=n.layer;this.tileData.push([a,f.x-40+n.sX,f.y-40+n.sY,v,n.name,n.angle])}}},e.CLOSED_STATE=0,e.OPENED_STATE=1,e.COMPLETED_STATE=2,e.defaultData="=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-4-99999-1-500-1500-3000-99",e.tileData=[{name:"tile",sX:0,sY:0,angle:0,signature:[-1,-1,-1,-1,1,-1,-1,-1,-1],layer:0},{name:"corner1",sX:-17,sY:-20,angle:0,signature:[-1,0,-1,0,1,-1,-1,-1,-1],layer:1},{name:"corner1",sX:-20,sY:97,angle:-90,signature:[-1,-1,-1,0,1,-1,-1,0,-1],layer:1},{name:"corner1",sX:97,sY:100,angle:180,signature:[-1,-1,-1,-1,1,0,-1,0,-1],layer:1},{name:"corner1",sX:100,sY:-17,angle:90,signature:[-1,0,-1,-1,1,0,-1,-1,-1],layer:1},{name:"corner2",sX:15,sY:18,angle:180,signature:[0,1,-1,1,1,-1,-1,-1,-1],layer:1},{name:"corner2",sX:62,sY:15,angle:-90,signature:[-1,1,0,-1,1,1,-1,-1,-1],layer:1},{name:"corner2",sX:65,sY:62,angle:0,signature:[-1,-1,-1,-1,1,1,-1,1,0],layer:1},{name:"corner2",sX:18,sY:65,angle:90,signature:[-1,-1,-1,1,1,-1,0,1,-1],layer:1},{name:"mid",sX:-2,sY:-6,angle:0,signature:[0,0,-1,1,1,-1,-1,-1,-1],layer:1},{name:"mid",sX:38,sY:-6,angle:0,signature:[-1,0,0,-1,1,1,-1,-1,-1],layer:1},{name:"mid",sX:86,sY:0,angle:90,signature:[-1,1,0,-1,1,0,-1,-1,-1],layer:1},{name:"mid",sX:86,sY:39,angle:90,signature:[-1,-1,-1,-1,1,0,-1,1,0],layer:1},{name:"mid",sX:38,sY:76,angle:0,signature:[-1,-1,-1,-1,1,1,-1,0,0],layer:1},{name:"mid",sX:-2,sY:76,angle:0,signature:[-1,-1,-1,1,1,-1,0,0,-1],layer:1},{name:"mid",sX:4,sY:40,angle:90,signature:[-1,-1,-1,0,1,-1,0,1,-1],layer:1},{name:"mid",sX:4,sY:0,angle:90,signature:[0,1,-1,0,1,-1,-1,-1,-1],layer:1},{name:"grass",sX:0,sY:0,angle:0,signature:[1,1,-1,1,1,-1,-1,-1,-1],layer:2},{name:"grass",sX:0,sY:0,angle:0,signature:[0,1,-1,1,1,-1,-1,-1,-1],layer:2},{name:"grass",sX:80,sY:0,angle:0,signature:[-1,1,0,-1,1,1,-1,-1,-1],layer:2},{name:"grass",sX:80,sY:80,angle:0,signature:[-1,-1,-1,-1,1,1,-1,1,0],layer:2},{name:"grass",sX:0,sY:80,angle:0,signature:[-1,-1,-1,1,1,-1,0,1,-1],layer:2},{name:"grass",sX:80,sY:0,angle:0,signature:[-1,0,0,-1,1,1,-1,-1,-1],layer:2},{name:"grass",sX:80,sY:80,angle:0,signature:[-1,-1,-1,-1,1,0,-1,1,0],layer:2},{name:"grass",sX:0,sY:80,angle:0,signature:[-1,-1,-1,1,1,-1,0,0,-1],layer:2},{name:"grass",sX:0,sY:0,angle:0,signature:[0,1,-1,0,1,-1,-1,-1,-1],layer:2}],e}(),SinglePlayObject=function(e){function t(t,s,i,r,a,n,o,c){void 0===c&&(c=1),e.call(this);var h=createSpriteFromSpritesheet(i);h.play(),h.scaleX=h.scaleY=c,h.regX=n/c,h.regY=o/c,h.x=t,h.y=s,this.lastFrame=r,this.sprite=h,addChild(this.sprite,a)}return __extends(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t);var s=this.sprite;s.currentAnimationFrame>=this.lastFrame&&(s.stop(),this.destroy())},t}(GameObject),ClearData=function(){function e(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!1),this.delay=e,this.clickOrColor=t,this.color=s}return e}(),CellObject=function(e){function t(t,s){e.call(this),this._isBlock=!1,this.isTempBlock=!1,this.tempBlockTime=-1,this.breakCountLeft=0,this.marksLeft=0,this.mark=null,this.blockSprite=null,this.blockTop=null,this.colorBlockType=-1,this.colorBlockLeft=-1,this.isClearedByClickOrColor=!1,this.bonusComboCount=-1,this.scoreToAdd=-1,this.breakMatchId=-1,this.changeTypeIn=-1,this.typeToChange=-1,this.clearsIn=[],this.fullClearsIn=[],this.clearId=0,this.removeBlockIn=-1,this.timeSinceBlockRemove=100,this.lastBlockSet=-1,this.isHoleBlock=!1,this.timeSinceLastTypeChange=0,this.timeSinceSelect=0,this.isBonusSelected=!1,this.needRemoveObject=!0,this.x=t,this.y=s,this.pos=Match3Level.instance.gridToStage(t,s);var i=this.level.tileSize;this.rect=new createjs.Rectangle(this.pos.x-i/2,this.pos.y-i/2,i,i),this.bonusSelectSprite=createSpriteFromSpritesheet("purple_gradient"),setReg(this.bonusSelectSprite,42,38,!1),this.bonusSelectSprite.alpha=0,this.bonusSelectSprite.scaleX=this.bonusSelectSprite.scaleY=1.5}return __extends(t,e),t.prototype.bonusSelect=function(){this.isBonusSelected=!0,this.timeSinceSelect=0},t.prototype.bonusDeselect=function(){this.isBonusSelected=!1,this.timeSinceSelect=0},t.prototype.setTutorialLight=function(e){this.tutorialLight?createjs.Tween.removeTweens(this.tutorialLight):(this.tutorialLight=createSpriteFromSpritesheet("tutorial_effect"),this.tutorialLight.play(),this.tutorialLight.currentAnimationFrame=3*e%20,this.tutorialLight.alpha=0,this.level.underGemLayer.addChild(this.tutorialLight),setReg(this.tutorialLight,.5,.5),this.tutorialLight.x=this.pos.x,this.tutorialLight.y=this.pos.y),createjs.Tween.get(this.tutorialLight,{loop:!1}).to({alpha:1},300,createjs.Ease.none)},t.prototype.removeTutorialLight=function(){var e=this;this.tutorialLight&&createjs.Tween.get(this.tutorialLight,{loop:!1}).to({alpha:0},200,createjs.Ease.none).call(function(){return e.killTutorialLight()})},t.prototype.killTutorialLight=function(){removeClip(this.tutorialLight),this.tutorialLight=null},Object.defineProperty(t.prototype,"isChangingType",{get:function(){return this.changeTypeIn>=0},enumerable:!0,configurable:!0}),t.prototype.prepareToChangeType=function(e,t){for(void 0===t&&(t=-1);0>t;)t=getInt(this.level.assetNumber);this.changeTypeIn=e,this.typeToChange=t,this.level.mustSort=!0},Object.defineProperty(t.prototype,"isPushable",{get:function(){return this.object&&this.object.isPushable},enumerable:!0,configurable:!0}),t.prototype.getBonusMatch=function(e,t,s,i){if(void 0===s&&(s=0),void 0===i&&(i=-1),!this.object||!this.object.isBonus&&!s)return null;var r=new Array,a=this.object.bonusType,n=a==e?1==a?2:2==a?1:a:a;switch(0!=s&&(n=s),n){case 1:for(var o=0;o<this.level.fieldSize;++o){var c=this.level.cells[o][this.y];c.isPushable||(c.isStable()||c.isBreakable||c.object&&c.object.isUnderWeb)&&r.push(c)}break;case 2:for(var h=0;h<this.level.fieldSize;++h){var l=this.level.cells[this.x][h];l.isPushable||(l.isStable()||l.isBreakable||l.object&&l.object.isUnderWeb)&&r.push(l)}break;case 3:for(var h=-2;2>=h;++h)for(var p=Math.abs(Math.abs(h)-2),o=-p;p>=o;++o){var u=this.x+o,d=this.y+h;if(u>=0&&d>=0&&u<this.level.fieldSize&&d<this.level.fieldSize){var c=this.level.cells[u][d];if(c.isPushable)continue;(c.isStable()||c.isBreakable||c.object&&c.object.isUnderWeb)&&r.push(c)}}break;case 4:for(var y=null==t,g=i>=0?i:y?getInt(this.level.assetNumber):t.color;!this.level.levelData.typeEnable[g];)g=getInt(this.level.assetNumber);for(o=0;o<this.level.fieldSize;++o)for(h=0;h<this.level.fieldSize;++h)c=this.level.cells[o][h],c.isStable()&&c.object&&(c==this||c.object.colorType==g&&4!=c.object.bonusType)&&r.push(c)}return n!=a&&0==s&&(this.object.bonusType=n),r.length>0?{match:new MatchObject(r,n),delay:0}:null},t.prototype.setMark=function(e){if(void 0===e&&(e=1),e!=this.marksLeft){this.level.needToUpdateBack=!0;var t=this.marksLeft;if(this.marksLeft=e,t>0&&t>e&&this.mark&&e>=0&&this.level.objects.push(new MarkRemoveAnimation(this.mark.x,this.mark.y,e)),this.marksLeft<=0)return removeClip(this.mark),this.mark=null,void this.level.target.onMarkRemoved();var s=1==e?"dirt2":"dirt1",i=this.mark?this.mark:createSpriteFromSpritesheet(s,0);
  7. i.regX=i.getBounds().width/2,i.regY=i.getBounds().height/2,i.gotoAndStop(s),i.x=App.level.offsetX+(this.x+.5)*App.level.tileSize,i.y=App.level.offsetY+(this.y+.5)*App.level.tileSize,null==i.parent&&App.level.markLayer.addChild(i),this.mark=i}},t.prototype.reset=function(){removeClip(this.blockSprite),removeClip(this.mark),removeClip(this.blockTop),this.timeSinceSelect=1e10,this.fullClearsIn.length=0,removeClip(this.bonusSelectSprite),this.bonusSelectSprite.alpha=0,this.clearsIn.length=0,this.needRemoveObject=!0,this.blockTop=null,this.blockSprite=null,this.mark=null,this.object&&(Match3Level.pool.returnObject(this.object),this.object=null),this.clearId=0,this._isBlock=!1,this.isTempBlock=!1,this.tempBlockTime=-1,this.breakCountLeft=0,this.marksLeft=0,this.colorBlockType=this.colorBlockLeft=-1,this.isClearedByClickOrColor=!1,this.breakMatchId=-1,this.removeBlockIn=-1,this.timeSinceBlockRemove=100,this.lastBlockSet=-1,this.scoreToAdd=-1,this.bonusComboCount=-1,this.isHoleBlock=!1},Object.defineProperty(t.prototype,"isMarked",{get:function(){return this.marksLeft>0},enumerable:!0,configurable:!0}),t.prototype.getStagePos=function(){return App.level.gridToStage(this.x,this.y)},Object.defineProperty(t.prototype,"isColorBlocked",{get:function(){return this.colorBlockType>=0&&this.colorBlockLeft>0},enumerable:!0,configurable:!0}),t.prototype.setBlock=function(e,t,s){void 0===e&&(e=0),void 0===t&&(t=0),void 0===s&&(s=!1);var i=t>0;for(this.lastBlockSet=e,this.breakCountLeft=i?0:e,this._isBlock=!0,this.colorBlockLeft=t,this.colorBlockType=i?getInt(this.level.assetNumber):-1;i&&!this.level.levelData.typeEnable[this.colorBlockType];)this.colorBlockType=getInt(this.level.assetNumber);if(this.isHoleBlock=!1,i&&(this.setObject(Match3Level.pool.getObject(this,this.level.gridToStageX(this.x),this.level.gridToStageY(this.y),this.level.assetNumber,this.colorBlockType,this.level.levelData.typeEnable)),this.object.isMoving=!1),this.level.mustSort=!0,s)this.isHoleBlock=!((3==this.x||4==this.x)&&this.y==this.level.fieldSize-1);else{var r=createSpriteFromSpritesheet(2==t?"blocker_2":1==t?"blocker":0==e?"undestructable_block":1==e?"destructable_block_2":"destructable_block_1",i||0!=e?0:1);r.regX=.5*r.getBounds().width,r.regY=.5*r.getBounds().height,r.x=App.level.offsetX+(this.x+.5)*App.level.tileSize,r.y=App.level.offsetY+(this.y+.5)*App.level.tileSize,addChild(r,i?this.level.blockLayer:this.level.gemLayer),this.blockSprite=r}this.isColorBlocked&&this.object&&this.object.updateMainSprite()},t.prototype.setInfection=function(){this._isBlock||this.object&&this.object.hasInfection||(this.level.isGenerated||this.object||(this.setObject(Match3Level.pool.getObject(this,this.level.gridToStageX(this.x),this.level.gridToStageY(this.y),this.level.assetNumber,this.level.getObjectType(this.x,this.y),this.level.levelData.typeEnable)),this.object.isMoving=!1),this.object&&this.object.setInfection())},t.prototype.changeObjectType=function(e,t){if(void 0===t&&(t=!1),e!=this.getType()&&this.object&&!this.object.isChameleon){var s=this.object.hasShield(),i=this.object.hasInfection,r=this.object.isBonus,a=this.object.bonusType;this.timeSinceLastTypeChange=0,Match3Level.pool.returnObject(this.object),this.setObject(Match3Level.pool.getObject(this,this.level.gridToStageX(this.x),this.level.gridToStageY(this.y),3,e,this.level.levelData.typeEnable,s?1:0)),t||this.object.playJellyAnimation(2,1,1),t&&(this.object.isMoving=!1),r&&this.object.setBonusType(a,!1),i&&this.object.setInfection(),this.level.mustSort=!0}},t.prototype.removeBlock=function(){if(this.isObjectBlocked||this.isBreakable){var e=null!=this.blockSprite;0==this.clearsIn.length&&0==this.fullClearsIn.length&&(this.breakMatchId=App.level.currentMove),this.breakCountLeft--,this.timeSinceBlockRemove=0;var t=this.isColorBlocked;this.isColorBlocked&&(this.colorBlockLeft--,this.colorBlockLeft<=0&&(this.colorBlockType=-1,this.setTempBlock(!0,.15),removeClip(this.blockTop),this.blockTop=null)),this.level.isActive&&SoundsManager.instance.playSound(t?"color_block_remove":"block_crash"),this.breakCountLeft<=0?(t?(this.object&&this.object.updateMainSprite(),1==this.colorBlockLeft?(this.level.objects.push(new BlockDestroyAnimation(this.pos.x,this.pos.y,!0)),this.blockSprite.gotoAndStop("blocker")):removeClip(this.blockSprite)):(this.level.objects.push(new BlockDestroyAnimation(this.blockSprite.x,this.blockSprite.y)),this.killBlockSprite()),this.colorBlockLeft<=0&&this.breakCountLeft<=0&&(this._isBlock=!1)):1==this.breakCountLeft&&(this.blockSprite.gotoAndStop("destructable_block_2"),this.blockSprite.regX=.5*this.blockSprite.getBounds().width,this.blockSprite.regY=.5*this.blockSprite.getBounds().height),e&&null==this.blockSprite&&this.level.target.onBlockRemoved()}},t.prototype.killBlockSprite=function(){removeClip(this.blockSprite),this.blockSprite=null},t.prototype.setTempBlock=function(e,t){void 0===t&&(t=-1),this.isTempBlock=e,this.tempBlockTime=t},t.prototype.isBlock=function(){return this._isBlock||this.isTempBlock},Object.defineProperty(t.prototype,"isBreakable",{get:function(){return this._isBlock&&this.breakCountLeft>0},enumerable:!0,configurable:!0}),t.prototype.setObject=function(e){this.object=e,this.object&&(this.object.cell=this),this.needRemoveObject=!0},t.prototype.getSprite=function(){return this.object?this.object.sprite:null},t.prototype.getType=function(){return null==this.object?-1:this.object.isColorBonus?10:this.object.colorType},t.prototype.getBonusType=function(){return null==this.object?0:this.object.bonusType},t.prototype.getComboBonusType=function(){return null==this.object?0:this.object.comboSelectBonus},t.prototype.clearCell=function(e){void 0===e&&(e=!0);var t=!1;if(!this.object||this.object.isPushable&&this.level.isActive||this.isObjectBlocked||!this.needRemoveObject||this.object.hasShield())!this.object||this.isColorBlocked||this.object.hasShield||Match3Level.pool.getDestroyAnimation(this.object.isColorBonus?5:this.object.colorType,this.object.sprite.x,this.object.sprite.y,this);else{if(this.level.isActive){if(this.tryPlayScoreAnimation(),this.object.isBonus){var s=this.object.comboSelectBonus;1==s||2==s?(SoundsManager.instance.playSound("bonus_line"),new BonusLineSprite(s,this.object.sprite.x,this.object.sprite.y)):3==s?(new BonusBombSprite(s,this.object.sprite.x,this.object.sprite.y),SoundsManager.instance.playSound("bonus_bomb")):4==s&&SoundsManager.instance.playSound("bonus_color"),LevelManager.instance.bonuses++}Match3Level.pool.getDestroyAnimation(this.object.isColorBonus?5:this.object.colorType,this.object.sprite.x,this.object.sprite.y,this)}this.level.target.onObjectRemove(this.object),AwardManager.addGem(),Match3Level.pool.returnObject(this.object),this.object=null,t=!0}t=t||!this.needRemoveObject,this.needRemoveObject=!0;var i=!1;this.object&&this.object.hasShield()&&(this.object.setShield(-1),i=!0),this.marksLeft>0&&t&&(this.setMark(this.marksLeft-1),SoundsManager.instance.playSound("mark_remove")),this.isClearedByClickOrColor=!1;var r=this.isBreakable;if(i||!this.isBreakable&&!this.isObjectBlocked||(this.object&&this.object.hasInfection?this.object.removeInfection():this.removeBlock()),e&&!r)for(var a=0;4>a;++a){var n=this.x+(0==a?1:1==a?-1:0),o=this.y+(2==a?1:3==a?-1:0);if(n>=0&&o>=0&&n<this.level.fieldSize&&o<this.level.fieldSize){var c=this.level.cells[n][o];if(c&&(c.isBreakable||this.object&&this.object.hasInfection)&&(!c.isColorBlocked||c.colorBlockType==this.getType())){c.removeBlockIn=.01;var h=Math.max(this.tempBlockTime,c.tempBlockTime);0>=h&&(h=1.1*FieldObject.GEM_KILL_DELAY),h>=0&&c.setTempBlock(!0,Math.max(c.tempBlockTime,h))}}}},Object.defineProperty(t.prototype,"isObjectBlocked",{get:function(){return this.isColorBlocked||this.object&&this.object.hasInfection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blockWasRemovedRecently",{get:function(){return this.timeSinceBlockRemove<.5},enumerable:!0,configurable:!0}),t.prototype.isStable=function(){return null==this.object||!this.object.isMoving},t.prototype.isStatic=function(){return!this.object.isMoving},t.prototype.tryPlayScoreAnimation=function(){if(this.scoreToAdd>0){var e=this.level.isEnded;e&&(this.scoreToAdd=10*Math.round(1.35*this.scoreToAdd/10)),this.level.objects.push(Match3Level.pool.getText(this.scoreToAdd.toString(),this,0)),this.scoreToAdd=-1,this.bonusComboCount=-1}},t.prototype.prepareToClear=function(e,t,s,i){void 0===e&&(e=-1),void 0===t&&(t=0),void 0===s&&(s=-1),void 0===i&&(i=!1);var r=0==t,a=4==t,n=.01+e;if(this.clearsIn.push(new ClearData(n,r||a,a)),this.object&&(this.object.isBonus||i)){var o=4==this.object.bonusType?1e-4:this.object.bonusType<=3||i?BonusDestroyAnimation.TIME:4==this.object.bonusType?20/30:-1;if(o>0){var c=this.object.playBonusAnimationIn;this.object.playBonusAnimationIn=Math.min(0>c?1e10:c,n>o?n-o-.01:-1)}}},Object.defineProperty(t.prototype,"isWaitingForClear",{get:function(){return this.clearsIn.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minClearIn",{get:function(){var e=this.clearsIn.length;if(0==e)return-1;for(var t=1e10,s=0;e>s;++s)t=Math.min(t,this.clearsIn[s].delay);return t},enumerable:!0,configurable:!0}),t.prototype.update=function(e){this.isTempBlock&&(this.tempBlockTime-=e,this.tempBlockTime<0&&(this.setTempBlock(!1),this.isTempBlock=!1));for(var t=this.clearsIn.length,s=0;t>s;++s){var i=this.clearsIn[s];i.delay>0?(i.delay-=e,i.delay<=0&&(this.clearsIn.splice(s,1),s--,t--,this.clearCell(i.clickOrColor))):(this.clearsIn.splice(s,1),s--,t--)}this.timeSinceSelect++;var r=this.level.isInSlide(this)&&this.object;this.bonusSelectSprite.alpha=limit(this.bonusSelectSprite.alpha+2*e*(r?1:-1),0,1),this.bonusSelectSprite.alpha<1e-5&&this.bonusSelectSprite.parent&&removeClip(this.bonusSelectSprite),this.bonusSelectSprite.alpha>1e-5&&!this.bonusSelectSprite.parent&&this.level.underGemLayer.addChild(this.bonusSelectSprite),this.bonusSelectSprite.rotation+=180*e,this.bonusSelectSprite.x=this.pos.x,this.bonusSelectSprite.y=this.pos.y,this.object&&this.bonusSelectSprite.gotoAndStop(FieldObject.assetNames[this.object.colorType]+"_gradient"),this.timeSinceSelect>3&&this.bonusDeselect(),(!this._isBlock||this.breakCountLeft<=0)&&(this.timeSinceBlockRemove+=e);for(var t=this.fullClearsIn.length,s=0;t>s;++s){var i=this.fullClearsIn[s];i.delay>0?(i.delay-=e,i.delay<=0&&(this.fullClearsIn.splice(s,1),s--,t--,this.clearCell(!1))):(this.fullClearsIn.splice(s,1),s--,t--)}if(this.removeBlockIn>0){this.removeBlockIn-=e;var a=this.object&&this.object.hasInfection;this.removeBlockIn<=0&&(this.isBreakable||a)&&(a?this.object.removeInfection():this.removeBlock())}this.timeSinceLastTypeChange+=e,this.object&&(this.object.update(e),this.object.cell=this),this.changeTypeIn>0&&(this.changeTypeIn-=e,this.changeTypeIn<=0&&this.object&&this.changeObjectType(this.typeToChange))},t.prototype.destroy=function(){this.clearCell(!1),removeClip(this.mark),this.mark=null,removeClip(this.blockTop),this.blockTop=null,removeClip(this.blockSprite),this.blockSprite=null,e.prototype.destroy.call(this)},t.BASE_SCORE=50,t.BONUS_CELL_SCORE_FACTOR=5,t.BONUS_SCORE_FACTOR=2,t.BONUS_COLOR_SCORE_FACTOR=4,t.infectionCells=[],t}(GameObject),Preloader=function(){function e(){this.sprites=[],this.mainLoadingStarted=!1,this.hasBrandLogo=!1,this.hasMoreGames=!1,this.shownButton=!1,this.loadedMain=!1,e.instance=this,this.loadApi()}return e.prototype.loadApi=function(){var e=this,t={id:"576742227280294624"};try{if(GameAPI&&void 0!=GameAPI&&needApi){GameAPI.loadAPI(function(t){return e.onApiLoaded(t)},t)}else this.onApiLoaded(null)}catch(s){this.onApiLoaded(null)}},e.prototype.onApiLoaded=function(e){var t=this;apiInstance=e;var s=new createjs.Container;App.game.stage.addChild(s),this.sprite=s;var i=[{src:"assets/preloader/preloader_back.jpg",id:"preloader back"},{src:"assets/preloader/circle.jpg",id:"preloader candy top"},{src:"assets/preloader/progressbar_top.png",id:"preloader progress top"},{src:"assets/preloader/play.png",id:"play button"}],r=apiInstance?apiInstance.Branding.getLogo():null,a=!r||void 0!=r.error;if(r&&r.image){var n=a?"http://www8.agame.com/mirror/img/logo_gamesgames_202x50.png":r.image;this.hasBrandLogo=!0,i.push({src:n,id:"brand logo"})}var o=apiInstance?apiInstance.Branding.getLink("more_games"):null,a=!r||void 0!=r.error;o&&o.action&&!a&&(this.hasMoreGames=!0),this.preLoader=new createjs.LoadQueue(App.game.isPlayingOnMobile),this.preLoader.addEventListener("complete",function(){return t.onPreLoadComplete()}),this.preLoader.loadManifest(i)},e.prototype.onPreLoadComplete=function(){var e=this;if(!this.mainLoadingStarted){this.mainLoadingStarted=!0;var t=this.sprite,s=new createjs.Bitmap(this.preLoader.getResult("preloader back"));t.addChild(s),this.sprites.push(s),s=new createjs.Bitmap(this.preLoader.getResult("preloader progress top")),t.addChild(s),s.regX=0,s.regY=.5,s.x=10,s.y=-10,this.barRect=s.getBounds().clone(),this.sprites.push(s),s=new createjs.Bitmap(this.preLoader.getResult("preloader candy top")),t.addChild(s),s.regX=17.5,s.regY=17,this.sprites.push(s),s=new createjs.Bitmap(this.preLoader.getResult("play button")),t.addChild(s),s.regX=78,s.regY=s.getBounds().height/2+3,s.x=430,s.y=500,this.playButton=s,this.playButton.alpha=0,this.playButton.visible=!1,this.sprites.push(s),this.onResize(),createjs.Sound.initializeDefaultPlugins(),createjs.Sound.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin]);var i=(App.episode,App.episode<=1?"assets/tutorial/":"assets/tutorial/episode2/",App.episode<=1?"assets/episode1/":"assets/episode2/"),r=[{src:"assets/progress_bar2.png",id:"bar"},{src:"assets/art.png",id:"art.png"},{src:"assets/art_linear.png",id:"art_linear.png"},{src:"assets/art_font.png",id:"artFont"},{src:"assets/art.jpg",id:"art.jpg"},{src:(2==App.episode,"assets/back1.jpg"),id:"back1"},{src:"assets/back_line.png",id:"back_line"},{src:i+"tutorial1.png",id:"tutorial1"},{src:i+"tutorial4.png",id:"tutorial4"},{src:i+"main_menu.jpg",id:"main menu"}],a=".mp3";needMusic&&r.push({src:"assets/sound/music/ao_main"+a,id:"main_music",type:createjs.LoadQueue.SOUND}),9!=isIE()&&r.push({src:"assets/sound/win"+a,id:"win",type:createjs.LoadQueue.SOUND},{src:"assets/sound/star_sound1"+a,id:"star_sound1",type:createjs.LoadQueue.SOUND},{src:"assets/sound/star_sound2"+a,id:"star_sound2",type:createjs.LoadQueue.SOUND},{src:"assets/sound/star_sound3"+a,id:"star_sound3",type:createjs.LoadQueue.SOUND},{src:"assets/sound/fail"+a,id:"fail",type:createjs.LoadQueue.SOUND},{src:"assets/sound/button"+a,id:"button",type:createjs.LoadQueue.SOUND},{src:"assets/sound/transition_sound"+a,id:"transition_sound",type:createjs.LoadQueue.SOUND},{src:"assets/sound/remove1"+a,id:"remove1",type:createjs.LoadQueue.SOUND},{src:"assets/sound/remove2"+a,id:"remove2",type:createjs.LoadQueue.SOUND},{src:"assets/sound/remove3"+a,id:"remove3",type:createjs.LoadQueue.SOUND},{src:"assets/sound/remove4"+a,id:"remove4",type:createjs.LoadQueue.SOUND},{src:"assets/sound/remove5"+a,id:"remove5",type:createjs.LoadQueue.SOUND},{src:"assets/sound/bonus_bomb"+a,id:"bonus_bomb",type:createjs.LoadQueue.SOUND},{src:"assets/sound/bonus_color"+a,id:"bonus_color",type:createjs.LoadQueue.SOUND},{src:"assets/sound/bonus_line"+a,id:"bonus_line",type:createjs.LoadQueue.SOUND},{src:"assets/sound/bonus_set"+a,id:"bonus_set",type:createjs.LoadQueue.SOUND},{src:"assets/sound/pointer_sound"+a,id:"pointer_sound",type:createjs.LoadQueue.SOUND},{src:"assets/sound/mark_remove"+a,id:"mark_remove",type:createjs.LoadQueue.SOUND},{src:"assets/sound/block_crash"+a,id:"block_crash",type:createjs.LoadQueue.SOUND},{src:"assets/sound/color_block_remove"+a,id:"color_block_remove",type:createjs.LoadQueue.SOUND},{src:"assets/sound/artifact_down"+a,id:"artifact_down",type:createjs.LoadQueue.SOUND},{src:"assets/sound/stop_move"+a,id:"stop_move",type:createjs.LoadQueue.SOUND},{src:"assets/sound/shield_remove"+a,id:"shield_remove",type:createjs.LoadQueue.SOUND},{src:"assets/sound/object_select"+a,id:"object_select",type:createjs.LoadQueue.SOUND}),r.push({src:i+"map.jpg",id:"map1"}),this.loader=new createjs.LoadQueue(App.game.isPlayingOnMobile),this.loader.installPlugin(createjs.Sound),createjs.Sound.initializeDefaultPlugins(),createjs.Sound.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin]),this.loader.addEventListener("complete",function(){return e.onLoadComplete()}),this.loader.addEventListener("progress",function(){return e.onProgress()}),this.loader.loadManifest(r)}},e.prototype.onLoadComplete=function(){this.onResize(),this.onProgress(),this.showButton()},e.prototype.showButton=function(){this.shownButton||(this.shownButton=!0,this.loadedMain=!0,App.game.loadApi(),SoundsManager.instance.playMusic())},e.prototype.onDown=function(){},e.prototype.isActive=function(){return null!=this.sprite.parent},e.prototype.disable=function(){removeClip(this.sprite);for(var e=0;e<this.sprites.length;++e)removeClip(this.sprites[e])},e.prototype.onProgress=function(){if(!(this.sprites.length<=1)&&this.barRect&&this.loader){var e=this.loader.progress;this.sprites[1].scaleX=e}},e.prototype.update=function(e){this.sprite&&this.sprite.parent&&this.sprites.length>0&&(this.sprites[2].rotation-=400*e)},e.prototype.onResize=function(){if(this.sprite&&this.sprite.parent&&!(this.sprites.length<=0)){{App.ACTUAL_H-Math.min(App.CURRENT_SHIFT,0)}this.sprites[1].x=3,this.sprites[2].x=615,this.sprites[1].y=601,this.sprites[2].y=619}},e}(),MarkRemoveAnimation=function(e){function t(t,s,i){var r=this;e.call(this);var a=createSpriteFromSpritesheet(0==i?"dirt2":"dirt1",0);a.regX=a.getBounds().width/2,a.regY=a.getBounds().height/2,this.sprite=a,this.level.underGemLayer.addChild(a),0==i&&createjs.Tween.get(a,{loop:!1}).wait(0).to({scaleX:1.3,scaleY:1.3},110,createjs.Ease.quadOut),createjs.Tween.get(a,{loop:!1}).wait(0).to({alpha:0},110,createjs.Ease.quadIn).call(function(){return r.onComplete()})}return __extends(t,e),t.prototype.onComplete=function(){this.destroy()},t}(GameObject),BonusDestroyAnimation=function(e){function t(s,i,r,a){var n=this;e.call(this),this.progress=0,this.cell=a;var o=createSpriteFromSpritesheet(r);o.regX=o.getBounds().width/2,o.regY=o.getBounds().height/2,o.x=s,o.y=i,this.level.bonusLayer.addChild(o),this.sprite=o;var c=createSpriteFromSpritesheet("star glow");c.regX=c.getBounds().width/2,c.regY=c.getBounds().height/2,c.x=s,c.y=i,c.scaleX=c.scaleY=.15,c.alpha=0,this.level.underGemLayer.addChild(c),this.glow=c,createjs.Tween.get(this,{loop:!1}).to({progress:1},1e3*t.TIME,createjs.Ease.none).call(function(){return n.setLight()})}return __extends(t,e),t.prototype.setLight=function(){this.sprite.visible=this.glow.visible=!1,this.light=createSpriteFromSpritesheet("bonus blink"),this.light.x=this.sprite.x,this.light.y=this.sprite.y,this.light.scaleX=this.light.scaleY=1.5*ANIM_SCALE,this.light.regX=67/ANIM_SCALE,this.light.regY=61/ANIM_SCALE,this.level.blockLayer.addChild(this.light),this.light.play()},t.prototype.update=function(){this.sprite.visible&&(this.sprite.scaleX=this.sprite.scaleY=lerp(1,1.2,this.progress),this.glow.alpha=this.progress,this.glow.scaleX=this.glow.scaleY=lerp(.15,.95,this.progress)),this.light&&this.light.currentAnimationFrame>=8&&(this.cell&&this.cell.tryPlayScoreAnimation(),this.destroy())},t.prototype.destroy=function(){e.prototype.destroy.call(this),createjs.Tween.removeTweens(this),removeClip(this.glow),this.glow=null,removeClip(this.light),this.light=null},t.TIME=.5,t}(GameObject),JumpText=function(e){function t(t,s){e.call(this),this.speed=new createjs.Point,this.targetPos=new createjs.Point,this.diff=new createjs.Point,this.isHiding=!1,this.isFinished=!1,this.isScore=!1,this.isBonusCombo=!1,this.isEnding=!1,this.score=0,this.isScore=0==s,this.isBonusCombo=1==s,this.isEnding=3==s,this.isScore&&(this.score=parseInt(t));var i=new createjs.BitmapText(""+t,App.game.atlases[0]);i.letterSpacing=-5;var r=getTextSize(i);i.mouseEnabled=!1,i.scaleX=i.scaleY=1,i.regX=Math.ceil(r.x/2),i.regY=Math.ceil(r.y/2),this.sprite=i,this.text=t}return __extends(t,e),t.prototype.init=function(e,t,s){this.speed.x=this.speed.y=this.targetPos.x=this.targetPos.y=this.diff.x=this.diff.y=0,this.isHiding=this.isFinished=!1,this.sprite.alpha=1,this.level=Match3Level.instance,this.level&&this.level.hudLayer.addChild(this.sprite),this.sprite.x=e,this.sprite.y=t,this.sprite.visible=!0,this.isDestroyed=!1,this.speedModulo=60*(this.isScore?lerp(10,19,Math.random()):15),this.speed.y=-this.speedModulo;var i=0;if(this.isScore)i=s&&0==s.x?lerp(15,30,Math.random()):s&&s.x==this.level.fieldSize-1?lerp(-30,-15,Math.random()):lerp(-65,65,Math.random());else if(this.isBonusCombo){var r=s.y<3?110:s.y>this.level.fieldSize-3?70:Math.random()>.5?110:70;i=lerp(-15,15,Math.random())+(s.x<3?r:s.x>this.level.fieldSize-3?-r:Math.random()>.5?r:-r)}else i=0;return rotatePoint(this.speed,i),createjs.Tween.get(this,{loop:!1}).to({speedModulo:0},750,createjs.Ease.quadOut),this.targetPos.x=e,this.targetPos.y=t,this},t.prototype.release=function(){createjs.Tween.removeTweens(this.sprite),createjs.Tween.removeTweens(this),removeClip(this.sprite),this.sprite.visible=!1,this.isDestroyed=!0},t.prototype.update=function(t){var s=this;if(this.isFinished)return void Match3Level.pool.returnText(this);if(e.prototype.update.call(this,t),!this.isHiding){this.sprite.x+=this.speed.x*t,this.sprite.y+=this.speed.y*t,this.diff.x=this.targetPos.x-this.sprite.x,this.diff.y=this.targetPos.y-this.sprite.y;var i=getDistanceF(0,0,this.diff.x,this.diff.y);this.diff.x/=i,this.diff.y/=i;var r=2880;if(this.diff.x*=r,this.diff.y*=r,this.speedModulo>0){this.speed.x+=this.diff.x*t,this.speed.y+=this.diff.y*t;var i=getDistanceF(0,0,this.speed.x,this.speed.y);if(i>this.speedModulo){var a=this.speedModulo/i;this.speed.x*=a,this.speed.y*=a}}else this.speed.x=this.speed.y=0;Math.abs(this.speedModulo)<1e-5&&!this.isHiding&&(this.isHiding=!0,this.isScore?createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({x:this.level.hud.scoreText.x,y:this.level.hud.scoreText.y,alpha:.2},400,createjs.Ease.quartIn).call(function(){return s.finishMovement()}):createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({alpha:.2},400,createjs.Ease.quartIn).call(function(){return s.finishMovement()}))}},t.prototype.finishMovement=function(){this.isFinished||(this.isScore&&(this.level.score+=this.score,SoundsManager.instance.playSound("score_sound")),this.isFinished=!0)},t.prototype.destroy=function(){Match3Level.pool.returnText(this)},t}(GameObject),EndBonusIndicator=function(e){function t(t,s,i,r,a){e.call(this),this.delay=-1,this.currentFrame=0,this.cell=i,this.bonusType=a;var n=createSpriteFromSpritesheet("bonus_particle");n.regX=43,n.regY=41,n.x=t,n.y=s,n.visible=!1,this.delay=r,this.sprite=n,addChild(this.sprite,this.level.hudLayer)}return __extends(t,e),Object.defineProperty(t.prototype,"totalTime",{get:function(){return this.delay+t.MOVE_TIME},enumerable:!0,configurable:!0}),t.prototype.update=function(s){var i=this;if(e.prototype.update.call(this,s),this.delay-=s,this.delay<=0&&!this.sprite.visible&&(SoundsManager.instance.playSound("bonus_show"),this.sprite.visible=!0,this.sprite.alpha=.3,this.sprite.scaleX=this.sprite.scaleY=.3,createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({alpha:1,scaleX:1,scaleY:1,x:this.cell.pos.x,y:this.cell.pos.y},1e3*t.MOVE_TIME,createjs.Ease.cubicIn).call(function(){return i.hide()}),this.level.limitLeft=Math.max(0,this.level.limitLeft-1)),this.sprite&&this.sprite.visible){this.currentFrame+=s/(1/24);for(var r=4;this.currentFrame>3;)this.currentFrame-=3;var a=~~this.currentFrame,n=BonusIndicator.frames[a],o=a==r-1?BonusIndicator.frames[0]:BonusIndicator.frames[a+1],c=this.currentFrame-a;this.sprite.scaleX=1.3*(1+(n[0]+c*(o[0]-n[0])-1)),this.sprite.scaleY=1.3*(1+(n[1]+c*(o[1]-n[1])-1))}},t.prototype.hide=function(){this.cell&&this.cell.object&&(this.cell.object.setBonusType(this.bonusType,!0),this.cell.setTempBlock(!1,-1)),this.destroy()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cell=null},t.MOVE_TIME=.5,t}(GameObject),SoundsManager=function(){function e(){this.lastPlays={},this.delays={},this.shifts={},this.musicPlayed=!1,this.isSoundEnabled=!isEditorVersion&&needMusic,this.isMusicEnabled=!isEditorVersion&&needMusic,this.musicPaused=!1,this.volumes={},e.instance=this,this.delays.remove1=this.delays.remove2=this.delays.remove3=this.delays.remove4=this.delays.remove5=.15,this.delays.button=this.delays.bonus_set=this.delays.bonus_bomb=this.delays.bonus_color=this.delays.bonus_line=this.delays.mark_remove=this.delays.block_crash=this.delays.color_block_remove=this.delays.object_select=this.delays.shield_remove=.05,this.delays.stop_move=.05}return e.prototype.update=function(e){this.time+=e},e.prototype.playSound=function(e,t){if(void 0===t&&(t=0),this.isSoundEnabled){var s=this.delays[e],i=this.lastPlays[e],r=this.shifts[e],a=0,n=this.volumes[e]?this.volumes[e]:1;if(s)if(r)if(!i||i<this.time)this.lastPlays[e]=this.time;else{if(!(i+r<this.time+s))return;this.lastPlays[e]=i+r,a=1e3*(this.lastPlays[e]-this.time)}else{if(i&&Math.abs(this.time-i)<s)return;this.lastPlays[e]=this.time}createjs.Sound.play(e,"none",a+t,0,0,n)}},e.prototype.playMusic=function(){if(!this.musicPlayed){{null!=this.music}this.music?this.music.play(createjs.Sound.INTERRUPT_NONE,0,0,-1,1):this.music=createjs.Sound.play("main_music",{interrupt:createjs.Sound.INTERRUPT_ANY,loop:-1,volume:.65}),this.musicPlayed=this.music.playState==createjs.Sound.PLAY_SUCCEEDED,this.isMusicEnabled||(this.music.paused=!0)}},e.prototype.pauseMusic=function(){this.musicPaused=!0,this.musicPlayed&&this.music&&this.isMusicEnabled&&(this.music.paused=!0)},e.prototype.resumeMusic=function(){this.musicPaused=!1,this.musicPlayed&&this.isMusicEnabled&&this.music&&(this.music.paused=!1)},e.prototype.setSound=function(e){void 0===e&&(e=!0),this.isSoundEnabled=e},e.prototype.setMusic=function(e){void 0===e&&(e=!0),this.isMusicEnabled=e,this.music&&!this.musicPaused&&(this.music.paused=e?!1:!0)},e.prototype.reset=function(){this.time=0,this.lastPlays={}},e}(),ClickableObject=function(e){function t(t){void 0===t&&(t=null),e.call(this),this.shape=-1,this.radius=0,this.shift=new createjs.Point,this.rect=new createjs.Rectangle,this.lastClickTime=-1,t&&(this.sprite=t)}return __extends(t,e),t.prototype.setCircle=function(e,s,i){void 0===s&&(s=0),void 0===i&&(i=0),this.shape=t.CIRCLE_SHAPE,this.radius=e,this.shift.x=s,this.shift.y=i},t.prototype.setRect=function(e,s,i,r){this.shape=t.RECT_SHAPE,this.rect.setValues(e,s,i,r)},t.prototype.checkClick=function(e,s){if(this.sprite&&this.shape>=0&&this.sprite.visible&&this.sprite.parent&&this.sprite.parent.visible){var i=this.sprite.localToGlobal(0,0);switch(this.shape){case t.CIRCLE_SHAPE:return getDistanceF(i.x+this.shift.x,i.y+this.shift.y,e,s)<=this.radius;case t.RECT_SHAPE:return e>=i.x+this.rect.x&&s>=i.y+this.rect.y&&e<=i.x+this.rect.x+this.rect.width&&s<=i.y+this.rect.y+this.rect.height}}return!1},t.prototype.onClick=function(){if(this.callback){var e=App.game.gameTime;Math.abs(e-this.lastClickTime)>.3&&(this.lastClickTime=e,this.callback(),SoundsManager.instance.playSound("button"))}},t.prototype.updateRectScale=function(){var e=this.sprite.getBounds();this.setRect(e.x*this.sprite.scaleX,e.y*this.sprite.scaleY,e.width*this.sprite.scaleX,e.height*this.sprite.scaleY)},t.CIRCLE_SHAPE=0,t.RECT_SHAPE=1,t}(GameObject),ButtonObject=function(e){function t(t,s,i,r,a){void 0===r&&(r=0),void 0===a&&(a=0),e.call(this),this._baseScale=1,this.callback=s,t.x=r,t.y=a,i.addChild(t),this.sprite=t;var n=this.sprite.getBounds();this.setRect(n.x,n.y,n.width,n.height)}return __extends(t,e),Object.defineProperty(t.prototype,"baseScale",{set:function(e){this._baseScale=e,this.sprite.scaleX=this.sprite.scaleY=e},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){e.prototype.onClick.call(this),SoundsManager.instance.playSound("button")},t.prototype.onShow=function(){},t.prototype.onHide=function(){},t}(ClickableObject),AnimatedButtonObject=function(e){function t(t,s,i,r,a){void 0===r&&(r=0),void 0===a&&(a=0),e.call(this,getButtonAnimation(t),s,i,r,a),this.playAnimIn=-1,this.anim=this.sprite,this.anim.stop()}return __extends(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t),this.playAnimIn>0&&(this.playAnimIn-=t,this.playAnimIn<=0&&this.playAnim()),this.anim.update(t)},t.prototype.playAnim=function(){var e=30*lerp(1.3,1.6,Math.random());this.anim.setFrameDelay(1/e),this.playAnimIn=-1,this.anim.gotoAndPlay(0)},t.prototype.onClick=function(){e.prototype.onClick.call(this),this.playAnim()},t.prototype.onShow=function(){this.playAnimIn=lerp(1/60,.1,Math.random())},t.prototype.onHide=function(){},t}(ButtonObject),ScaleButton=function(e){function t(t,s,i,r,a){void 0===r&&(r=0),void 0===a&&(a=0),e.call(this,t,s,i,r,a),t.regX=t.getBounds().width/2,t.regY=t.getBounds().height/2}return __extends(t,e),t.prototype.onClick=function(){e.prototype.onClick.call(this),createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({scaleX:1.3*this._baseScale,scaleY:1.3*this._baseScale},100,createjs.Ease.cubicOut).wait(0).to({scaleX:this._baseScale,scaleY:this._baseScale},100,createjs.Ease.cubicIn)},t}(ButtonObject),CheatButton=function(e){function t(t,s,i,r,a){e.call(this,t,null,s,i,r),this.awardType=0,this.awardType=a,t.regX=t.getBounds().width/2,t.regY=t.getBounds().height/2}return __extends(t,e),t.prototype.onClick=function(){App.game.onKeyDown({keyCode:49+this.awardType}),createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({scaleX:1.3*this._baseScale,scaleY:1.3*this._baseScale},100,createjs.Ease.cubicOut).wait(0).to({scaleX:this._baseScale,scaleY:this._baseScale},100,createjs.Ease.cubicIn)},t}(ScaleButton),SoundButton=function(e){function t(t,s,i,r,a){var n=this;void 0===a&&(a=0),e.call(this,createSpriteFromSpritesheet(t?"music_on":"sound_on"),null,s,i,r),this.spriteType=0,this.spriteNames=[["music_on","music_off","sound_on","sound_off"],["music_on2","music_off2","sound_on2","sound_off2"]],this.callback=function(e){n.changeState(e)},this.spriteType=a,this.isMusic=t}return __extends(t,e),t.prototype.getSpriteName=function(e){var t=this.isMusic?SoundsManager.instance.isMusicEnabled:SoundsManager.instance.isSoundEnabled;return e&&(t=!t),this.spriteNames[this.spriteType][(t?0:1)+(this.isMusic?0:2)]},t.prototype.changeState=function(){this.sprite.gotoAndStop(this.getSpriteName(!0));var e=!(this.isMusic?SoundsManager.instance.isMusicEnabled:SoundsManager.instance.isSoundEnabled);this.isMusic?SoundsManager.instance.setMusic(e):SoundsManager.instance.setSound(e)},t.prototype.onShow=function(){e.prototype.onShow.call(this);this.isMusic?SoundsManager.instance.isMusicEnabled:SoundsManager.instance.isSoundEnabled;this.sprite.gotoAndStop(this.getSpriteName(!1))},t}(ScaleButton),MapButton=function(e){function t(t,s,i,r){e.call(this),this.stars=[],this.levelNumber=t;var a=new createjs.Container;r.addChild(a),a.x=s,a.y=i,this.sprite=a;var n=createSpriteFromSpritesheet("level_inactive");setReg(n,.5,.5),a.addChild(n),this.mainSprite=n,this.text=new createjs.BitmapText((t+1).toString(),App.game.atlases[0]),this.text.letterSpacing=-5,this.text.scaleX=this.text.scaleY=.8,this.text.regX=this.text.getBounds().width/2,this.text.regY=this.text.getBounds().height/2,this.text.y=-30,a.addChild(this.text);for(var t=0;3>t;++t)n=createSpriteFromSpritesheet("victory_star"),n.scaleX=n.scaleY=.6,a.addChild(n),n.x=20*(t-1)-12,n.y=1==t?20:10,this.stars.push(n)}return __extends(t,e),t.prototype.updateState=function(e,t,s){var i=this.sprite.localToGlobal(0,0);if(this.sprite.visible=allLevelsUnlocked||(t||e>=LevelData.OPENED_STATE)&&!(i.y>App.ACTUAL_H+250||i.y<-250),this.sprite.visible){this.mainSprite.gotoAndStop(e==LevelData.COMPLETED_STATE?"level2":this.levelNumber==LevelManager.instance.currentLevel?"current_level":"level_inactive"),this.text.visible="level_inactive"!=this.mainSprite.currentAnimation,setReg(this.mainSprite,.5,.5);for(var r=0;3>r;++r){var a=this.stars[r];a.gotoAndStop(s>r?"victory_star":"victory_star2"),a.visible=e==LevelData.COMPLETED_STATE
  8. }}},t}(GameObject),LogoObject=function(e){function t(t,s,i,r){var a=this;e.call(this),this.initScale=r;var n=App.game.preloader.hasBrandLogo?new createjs.Bitmap(App.game.preloader.preLoader.getResult("brand logo")):null;n&&(n.scaleX=n.scaleY=r,n.x=s,n.y=i,n.regX=9==isIE()?101:n.getBounds().width/2,n.regY=9==isIE()?25:n.getBounds().height/2,n.mouseEnabled=!1,t.addChild(n),this.sprite=n,apiInstance&&apiInstance.Branding.getLogo().action&&(this.callback=function(){return a.onLogoClick()}))}return __extends(t,e),t.prototype.onLogoClick=function(){this.sprite&&this.sprite.visible&&(apiInstance&&apiInstance.Branding.getLogo().action&&apiInstance.Branding.getLogo().action(),createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({scaleX:1.2*this.initScale,scaleY:1.2*this.initScale,alpha:1},200,createjs.Ease.circOut).wait(0).to({scaleX:this.initScale,scaleY:this.initScale},250,createjs.Ease.circIn))},t.prototype.setVisible=function(e){this.sprite&&(this.sprite.visible=e)},t.prototype.checkClick=function(e,t){if(this.sprite&&this.sprite.visible){var s=this.sprite.getBounds(),i=this.sprite.localToGlobal(0,0),r=this.initScale*s.width,a=this.initScale*s.height;return e>=i.x&&e<=i.x+r&&t>=i.y&&t<=i.y+a}return!1},t}(ClickableObject),MoreGamesButton=function(e){function t(t,s,i,r){var a=this;e.call(this),this.initScale=r;var n=needMoreGames&&App.game.preloader.hasMoreGames?createSpriteFromSpritesheet("more"):null;n&&(n.scaleX=n.scaleY=r,n.x=s,n.y=i,n.regX=n.getBounds().width/2,n.regY=n.getBounds().height/2,n.mouseEnabled=!1,t.addChild(n),apiInstance&&apiInstance.Branding.getLink("more_games").action&&(this.callback=function(){return a.onLogoClick()})),this.sprite=n}return __extends(t,e),t.prototype.onLogoClick=function(){this.sprite&&(apiInstance&&apiInstance.Branding.getLink("more_games").action&&apiInstance.Branding.getLink("more_games").action(),createjs.Tween.get(this.sprite,{loop:!1}).wait(0).to({scaleX:1.2*this.initScale,scaleY:1.2*this.initScale,alpha:1},200,createjs.Ease.circOut).wait(0).to({scaleX:this.initScale,scaleY:this.initScale},250,createjs.Ease.circIn))},t.prototype.checkClick=function(e,t){if(this.sprite){var s=this.sprite.getBounds(),i=this.sprite.localToGlobal(0,0),r=this.initScale*s.width,a=this.initScale*s.height;return e>=i.x&&e<=i.x+r&&t>=i.y&&t<=i.y+a}return!1},t}(ClickableObject),Tutorial=function(e){function t(){e.call(this),this.pages=[],this.currentPage=0,this.currentSequence=[],this.sequences={0:[0,3],"-1":[6,1,4]},this.tapAllowed=!1,t.instance=this,this.pages.push(new FirstGroupTapTutorial,new SecondGroupTapTutorial,new ThirdGroupTapTutorial,new ReachScoreTutorial)}return __extends(t,e),t.prototype.hasTutorial=function(e){return this.sequences[e.toString()]},t.prototype.show=function(){var e=this.sequences[Match3Level.instance.levelData.levelNumber.toString()];this.currentSequence=[];for(var t=0;t<e.length;++t)this.currentSequence.push(this.pages[e[t]]);this.currentPage=0,this.currentSequence[this.currentPage].show(),this.isMenuActive=!0},t.prototype.hide=function(){this.isMenuActive=!1},t.prototype.update=function(t){e.prototype.update.call(this,t),this.currentSequence[this.currentPage].update(t)},Object.defineProperty(t.prototype,"page",{get:function(){return this.currentSequence[this.currentPage]},enumerable:!0,configurable:!0}),t.prototype.getBonusComboCell=function(e,t){return 1==this.currentPage&&this.currentSequence[this.currentPage]==this.pages[1]&&1==Match3Level.instance.currentMove?App.episode<=1?e.x<t.x?e:t:e.x<t.x?t:e:null},t.prototype.checkHighValueCell=function(e){return 1==this.currentPage&&this.currentSequence[this.currentPage]==this.pages[1]&&1==Match3Level.instance.currentMove&&(App.episode<=1&&3==e.x&&6==e.y||2==App.episode&&6==e.x&&8==e.y)},t.prototype.getBonusSpawnCell=function(){return 2==this.currentPage&&this.currentSequence[this.currentPage]==this.pages[2]?App.episode<=1?Match3Level.instance.cells[4][5]:Match3Level.instance.cells[2][5]:null},t.prototype.nextPage=function(){this.currentSequence[this.currentPage].hide(),this.currentPage<this.currentSequence.length-1?(++this.currentPage,this.currentSequence[this.currentPage].show()):this==MenuManager.instance.current&&MenuManager.instance.closeCurrent()},t.prototype.allowTap=function(e,t){return this.currentSequence[this.currentPage].allowTap(e,t)},t.prototype.onDown=function(t,s){e.prototype.onDown.call(this,t,s),this.tapAllowed=this.allowTap(t,s),this.currentSequence[this.currentPage].onDown(t,s)},t}(Menu),TutorialHand=function(e){function t(t,s,i,r){e.call(this),this.speed=250,this.waitLeft=-1,this.alphaFactor=1,this.initPoint=Match3Level.gridToStage(t.x,t.y+.4),this.endPoint=Match3Level.gridToStage(s.x,s.y+.4);var a=createSpriteFromSpritesheet("hand");r.addChild(a),setReg(a,5,15,!1),a.alpha=0,this.sprite=a}return __extends(t,e),t.prototype.startMove=function(){this.sprite.x=this.initPoint.x,this.sprite.y=this.initPoint.y,this.sprite.alpha=0},t.prototype.update=function(t){if(e.prototype.update.call(this,t),this.alphaFactor=limit(this.alphaFactor+(Match3Level.instance&&Match3Level.instance.isPressed?-1:1)*t*5,0,1),this.waitLeft>0)return void(this.waitLeft-=t);var s=this.initPoint,i=this.endPoint,r=(getDistanceP(s,i),getDistanceF(this.sprite.x,this.sprite.y,i.x,i.y)),a=this.alphaFactor*this.speed*t,n=!1;a>r&&(this.startMove(),this.waitLeft=.5,n=!0),n||(this.sprite.x+=a*(i.x-this.sprite.x)/r,this.sprite.y+=a*(i.y-this.sprite.y)/r,this.sprite.alpha=this.alphaFactor)},t}(GameObject),TutorialPage=function(e){function t(){e.call(this),this.tapCells=[],this.isHiding=!1,this.isShowing=!1,this.showDelay=0,this.hideDelay=0,this.isMatchLocked=!1,this.tutorial=Tutorial.instance,this.baseContainer=new createjs.Container,this.sprite=this.baseContainer}return __extends(t,e),t.prototype.setInfo=function(e,t,s,i){for(var r=e.length,a=0;r>a;++a){var n=new createjs.BitmapText(e[a],App.game.atlases[3]);n.letterSpacing=-3,n.spaceWidth=15,n.scaleX=n.scaleY=1.1,n.regX=n.getBounds().width/2,n.x=-90+t+0,n.y=s-33+45*(a+(2==r?0:-.5)),i.addChild(n)}},t.prototype.init=function(e){this.baseContainer.addChild(e)},t.prototype.checkMatch=function(e){if(!this.isMatchLocked)return!0;var t=0,s=e.length,i=this.tapCells.length;if(s!=i||this.isHiding)return!1;for(var r=0;s>r;++r)for(var a=0;i>a;a++)if(e[r].x==this.tapCells[a].x&&e[r].y==this.tapCells[a].y){++t;break}return t==s?(this.isMatchLocked=!0,this.tutorial.nextPage(),!0):!1},t.prototype.onDown=function(e,t){this.checkHide(e,t)&&this.tutorial.nextPage()},t.prototype.allowTap=function(e,t){if(this.sprite.alpha<.5)return!1;var s=this.tapCells.length,i=Match3Level.instance.stageToGrid(e,t);i.x=Math.floor(i.x),i.y=Math.floor(i.y);for(var r=0;s>r;++r){var a=this.tapCells[r];if(a.x==i.x&&a.y==i.y)return!0}return!1},t.prototype.update=function(t){e.prototype.update.call(this,t),this.hand&&this.hand.update(t)},t.prototype.setHand=function(e,t,s){this.hand=new TutorialHand(e,t,s,this.baseContainer)},t.prototype.checkHide=function(e,t){return!this.isHiding&&!this.isMatchLocked&&this.allowTap(e,t)},t.prototype.hide=function(){var e=this;this.isHiding||(this.isHiding=!0,createjs.Tween.get(this.sprite,{loop:!1}).wait(1e3*this.hideDelay).to({alpha:0},300).call(function(){return e.removeSprite()}));for(var t=0;t<this.level.fieldSize;++t)for(var s=0;s<this.level.fieldSize;++s)this.level.cells[t][s].removeTutorialLight()},t.prototype.show=function(){this.isShowing=!0,this.isHiding=!1,this.sprite.parent||(App.game.stage.addChild(this.sprite),this.sprite.y=0,this.sprite.alpha=0,createjs.Tween.get(this.sprite,{loop:!1}).wait(1e3*this.showDelay).to({alpha:1},300),SoundsManager.instance.playSound("gui_move"));for(var e=this.tapCells.length,t=0;e>t;++t){var s=this.tapCells[t];this.level.cells[s.x][s.y].setTutorialLight(t)}this.hand&&this.hand.startMove()},t.prototype.removeSprite=function(){removeClip(this.sprite)},t}(GameObject),FirstGroupTapTutorial=function(e){function t(){e.call(this);for(var t=1;6>=t;++t)this.tapCells.push(cjp(t,3));var s=new createjs.Container,i=createBitmap("tutorial1");i.scaleX=i.scaleY=4,i.regX=0,i.x=0,i.y=0,i.alpha=.8,s.addChild(i),this.hideDelay=.45,this.showDelay=.2;var r=createSpriteFromSpritesheet("hint_dude");r.x=115,r.y=705,r.scaleX=r.scaleY=.7,setReg(r,.5,.5),s.addChild(r),this.setInfo(["Drag the entire row","to shift gems"],410,App.episode<=1?320:340,s),this.init(s),App.episode<=1?this.setHand(cjp(1,3),cjp(6,3),this.tapCells):this.setHand(cjp(1,4),cjp(6,4),this.tapCells),this.isMatchLocked=!0}return __extends(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t),Match3Level.instance.currentMove>0&&Tutorial.instance.nextPage()},t.prototype.checkHide=function(){return!1},t}(TutorialPage),SecondGroupTapTutorial=function(e){function t(){e.call(this),App.episode<=1?this.tapCells.push(cjp(2,2),cjp(2,3),cjp(3,4),cjp(4,4),cjp(5,4),cjp(6,4)):this.tapCells.push(cjp(5,6),cjp(4,5),cjp(4,4),cjp(5,4),cjp(6,3),cjp(6,2));var t=new createjs.Container,s=createBitmap("tutorial2");s.scaleX=s.scaleY=4,s.regX=0,s.alpha=.8,t.addChild(s),this.hideDelay=.15,this.showDelay=.9,this.setInfo(["Swipe over big","group of monsters"],App.episode<=1?350:400,App.episode<=1?630:765,t),this.init(t),App.episode<=1?this.setHand(cjp(2,1),cjp(7,4),this.tapCells):this.setHand(cjp(5,6.5),cjp(6,1),this.tapCells),this.isMatchLocked=!0}return __extends(t,e),t}(TutorialPage),ThirdGroupTapTutorial=function(e){function t(){e.call(this),App.episode<=1?this.tapCells.push(cjp(4,5),cjp(5,5),cjp(6,5),cjp(6,4)):this.tapCells.push(cjp(2,5),cjp(2,4),cjp(3,4),cjp(2,3),cjp(2,2));var t=new createjs.Container,s=createBitmap("tutorial3");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.alpha=.8,t.addChild(s),this.hideDelay=.15,this.showDelay=1,this.setInfo(["Remove group with","enchanted monster","to cast super spell!"],App.episode<=1?310:360,App.episode<=1?350:200,t),this.init(t),App.episode<=1?this.setHand(cjp(3,5),cjp(6,3),this.tapCells):this.setHand(cjp(2,5.5),cjp(2,1),this.tapCells),this.isMatchLocked=!0}return __extends(t,e),t}(TutorialPage),HighValueTapTutorial=function(e){function t(){e.call(this);var t=new createjs.Container,s=createBitmap("tutorial2");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.8,t.addChild(s);var i=new createjs.BitmapText("Some jellies give\nadditional points",App.game.atlases[1]);i.scaleX=i.scaleY=.8,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=99+(App.episode<=1?0:90),i.y=400+(App.episode<=1?0:50),t.addChild(i);var i=new createjs.BitmapText("Tap anywhere to continue",App.game.atlases[1]);i.scaleX=i.scaleY=.55,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=45,i.y=660,t.addChild(i),this.hideDelay=0,this.showDelay=2.5,this.init(t)}return __extends(t,e),t.prototype.allowTap=function(){return!1},t.prototype.checkHide=function(t,s){return e.prototype.checkHide.call(this,t,s)||this.sprite.alpha>.9},t}(TutorialPage),LineTapTutorial=function(e){function t(){e.call(this),App.episode<=1?this.tapCells.push(cjp(3,7),cjp(4,7),cjp(5,7),cjp(6,7),cjp(7,7)):this.tapCells.push(cjp(6,2),cjp(6,3),cjp(6,4),cjp(6,5),cjp(6,6));var t=new createjs.Container,s=createBitmap("tutorial3");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.8,t.addChild(s);var i=new createjs.BitmapText(" remove line\nto create bonus",App.game.atlases[1]);i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=130+(App.episode<=1?0:55),i.y=390+(App.episode<=1?0:85),i.scaleX=i.scaleY=.85,t.addChild(i),this.hideDelay=.15,this.showDelay=2,this.init(t)}return __extends(t,e),t}(TutorialPage),BonusTapTutorial=function(e){function t(){e.call(this),App.episode<=1?this.tapCells.push(cjp(0,3),cjp(1,3),cjp(2,3),cjp(0,2)):this.tapCells.push(cjp(0,3),cjp(0,4),cjp(0,4),cjp(1,3));var t=new createjs.Container,s=createBitmap("tutorial4");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.8,t.addChild(s);var i=new createjs.BitmapText("activate bonus",App.game.atlases[1]);i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=35+(App.episode<=1?0:45),i.y=330,i.scaleX=i.scaleY=.7,t.addChild(i),this.hideDelay=.15,this.showDelay=1.5,this.init(t)}return __extends(t,e),t}(TutorialPage),BonusInfoTutorial=function(e){function t(){e.call(this);var t=new createjs.Container,s=createBitmap("tutorial5");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.85,t.addChild(s);var i=new createjs.BitmapText("line length determines\n bonus power",App.game.atlases[1]);i.scaleX=i.scaleY=.85,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=5,i.y=30,t.addChild(i);for(var r=-40,a=0,n=0;3>n;++n){for(var o=.85,c=250+90*n*o,h=0;4+n>h;++h){var l=createSpriteFromSpritesheet("orange");l.scaleX=l.scaleY=o,l.x=100+60*(h+(2-n))*l.scaleX+r,l.y=c+a,t.addChild(l)}var i=new createjs.BitmapText("-",App.game.atlases[1]);i.x=420+r,i.y=c-30+5+a,t.addChild(i);for(var h=0;(0==n?2:1)>h;++h){var l=createSpriteFromSpritesheet(0==n?0==h?"orange horizontal":"orange vertical":1==n?"orange bomb":"bonus color");l.scaleX=l.scaleY=1,l.regX=l.getBounds().width/2,l.regY=l.getBounds().height/2,l.x=400+65*h+100+r,l.y=c+20+a,t.addChild(l)}}var i=new createjs.BitmapText("Tap anywhere to continue",App.game.atlases[1]);i.scaleX=i.scaleY=.55,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=45,i.y=660,t.addChild(i),this.hideDelay=0,this.showDelay=.5,this.init(t)}return __extends(t,e),t.prototype.allowTap=function(){return!1},t.prototype.checkHide=function(t,s){return e.prototype.checkHide.call(this,t,s)||this.sprite.alpha>.9},t}(TutorialPage),ReachScoreTutorial=function(e){function t(){e.call(this);var t=new createjs.Container,s=createBitmap("tutorial4");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.alpha=.8,t.addChild(s);var i=LevelManager.instance.data[0].customData,r=createSpriteFromSpritesheet("hint_dude");r.x=.5*App.SCREEN_W,r.y=550,r.scaleX=r.scaleY=1,setReg(r,.5,.5),t.addChild(r);var a=new createjs.BitmapText("Tap anywhere to continue",App.game.atlases[0]);a.letterSpacing=-3,a.spaceWidth=15,a.lineHeight=60,a.x=40,a.y=760,t.addChild(a),this.hideDelay=0,this.showDelay=2.8,this.setInfo(["Continue playing and","collect "+i+" points!","You have "+(LevelManager.instance.data[0].limitLeft-1)+" moves left"],410,200,t),this.init(t)}return __extends(t,e),t.prototype.allowTap=function(){return!1},t.prototype.checkHide=function(t,s){return e.prototype.checkHide.call(this,t,s)||this.sprite.alpha>.9},t}(TutorialPage),BonusComboTapTutorial=function(e){function t(){e.call(this),App.episode<=1?this.tapCells.push(cjp(1,4),cjp(1,5),cjp(1,6),cjp(2,5),cjp(2,6),cjp(2,7),cjp(3,4),cjp(3,5),cjp(3,7),cjp(3,8),cjp(3,9),cjp(4,7),cjp(4,8)):this.tapCells.push(cjp(2,6),cjp(2,7),cjp(3,7),cjp(3,8),cjp(4,5),cjp(4,6),cjp(4,8),cjp(4,9),cjp(5,5),cjp(5,7),cjp(5,8),cjp(6,5),cjp(6,6),cjp(6,7));var t=new createjs.Container,s=createBitmap("tutorial7");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.8,t.addChild(s);var i=new createjs.BitmapText(" Combine bonuses\nto enchance them!",App.game.atlases[1]);i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=210+(App.episode<=1?0:-90),i.y=407+(App.episode<=1?0:-110),i.scaleX=i.scaleY=.7,t.addChild(i),this.hideDelay=.15,this.showDelay=.5,this.init(t)}return __extends(t,e),t}(TutorialPage),ComboInfoTutorial=function(e){function t(){e.call(this);var t=new createjs.Container,s=createBitmap("tutorial5");s.scaleX=s.scaleY=4,s.regX=0,s.x=0,s.y=-6,s.alpha=.85,t.addChild(s);var i=new createjs.BitmapText(" Combine bonuses\nto enchance them!",App.game.atlases[1]);i.scaleX=i.scaleY=.95,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=40,i.y=30,t.addChild(i);for(var r=0;4>r;++r)for(var a=0;r+4>a;++a){var n=Math.random()<.25,o=getInt(3),c=createSpriteFromSpritesheet(n?0==o?"blue horizontal":1==o?"blue vertical":"blue bomb":"blue");c.x=140+60*a,c.y=250+60*r,t.addChild(c)}var i=new createjs.BitmapText("Tap anywhere to continue",App.game.atlases[1]);i.scaleX=i.scaleY=.55,i.letterSpacing=-10,i.spaceWidth=25,i.lineHeight=60,i.x=45,i.y=660,t.addChild(i),this.hideDelay=0,this.showDelay=2.5,this.init(t)}return __extends(t,e),t.prototype.allowTap=function(){return!1},t.prototype.checkHide=function(t,s){return e.prototype.checkHide.call(this,t,s)||this.sprite.alpha>.9},t}(TutorialPage),BlockDestroyAnimation=function(e){function t(t,s,i){void 0===i&&(i=!1),e.call(this),this.particles=[],this.speeds=[],this.angularSpeeds=[];for(var r=1;5>=r;++r){var a=createSpriteFromSpritesheet((i?"leaf":"destr")+r);a.regX=a.getBounds().width/2,a.regY=a.getBounds().height/2,a.x=t+lerp(-35,35,Math.random()),a.y=s+lerp(-35,35,Math.random()),this.particles.push(a),this.level.blockLayer.addChild(a);var n=cjp(0,-70*lerp(10,20,Math.random()));rotatePoint(n,lerp(-35,35,Math.random())),this.speeds.push(n),this.angularSpeeds.push(lerp(-60,60,Math.random()))}}return __extends(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t);for(var s=0,i=this.particles.length,r=0;i>r;++r){var a=this.speeds[r];a.y+=4e3*t;var n=this.particles[r];n.y+=a.y*t,n.x+=a.x*t,n.visible=n.y<App.FULL_SCREEN_H,n.visible&&(s+=1),n.rotation+=this.angularSpeeds[r]*t}0==s&&this.destroy()},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.particles){for(var t=0;t<this.particles.length;++t)removeClip(this.particles[t]);this.particles=null,this.speeds=null,this.angularSpeeds=null}},t}(GameObject),ShieldRemoveSprite=function(e){function t(){e.call(this);var t=createSpriteFromSpritesheet("shield");setReg(t,.5,.5),this.sprite=t}return __extends(t,e),t.prototype.init=function(e,t){var s=this;Match3Level.instance.bonusIndicatorLayer.addChild(this.sprite),createjs.Tween.removeTweens(this.sprite),this.sprite.alpha=this.sprite.scaleX=this.sprite.scaleY=1,this.sprite.x=e,this.sprite.y=t,this.sprite.scaleX=1,this.sprite.scaleY=1,this.isDestroyed=!1,createjs.Tween.get(this.sprite,{loop:!1}).to({scaleY:1.4,scaleX:1.4,alpha:0},200,createjs.Ease.cubicOut).call(function(){return s.killShield()})},t.prototype.killShield=function(){this.isDestroyed=!0,this.sprite.parent&&(removeClip(this.sprite),createjs.Tween.removeTweens(this.sprite),Match3Level.pool.returnShield(this))},t.prototype.destroy=function(){this.killShield()},t.data=[[0,-6,1,1,43,53],[0,-6,1,1,43,53],[0,-6,1,1,43,53],[0,-6,1,1,43,53],[-4,-6,1.05,1.07,48,56]],t}(GameObject),ColorBlockDestroyAnimation=function(e){function t(){e.call(this);var t=createSpriteFromSpritesheet("blocker");setReg(t,.5,.5),this.sprite=t}return __extends(t,e),t.prototype.init=function(e,t,s){var i=this;Match3Level.instance.bonusIndicatorLayer.addChild(this.sprite),createjs.Tween.removeTweens(this.sprite),this.sprite.alpha=this.sprite.scaleX=this.sprite.scaleY=1,this.sprite.x=e+ShieldRemoveSprite.data[s][0],this.sprite.y=t+ShieldRemoveSprite.data[s][1],this.sprite.scaleX=ShieldRemoveSprite.data[s][2],this.sprite.scaleY=ShieldRemoveSprite.data[s][3],createjs.Tween.get(this.sprite,{loop:!1}).to({scaleY:1.3,scaleX:1.3,alpha:0},300,createjs.Ease.cubicOut).call(function(){return i.killShield()})},t.prototype.killShield=function(){this.sprite.parent&&(removeClip(this.sprite),createjs.Tween.removeTweens(this.sprite),Match3Level.pool.returnCage(this))},t.prototype.destroy=function(){this.killShield()},t.data=[[0,-6,1,1,43,55],[0,-6,1,1,43,55],[0,-6,1,1,43,55],[0,-6,1,1,43,55],[-4,-6,1.05,1.07,49,59]],t}(GameObject),MatchObject=function(e){function t(t,s,i){void 0===s&&(s=0),void 0===i&&(i=null),e.call(this),this.bonus=0,this.delays=null,this.isHorizontal=!0,this.isVertical=!0,this.color=-1,this.isSingleColored=!0,this.averagePos=cjp(0,0),this.match=t.concat(),this.bonus=s,this.delays=i,this.updateColorAndShape()}return __extends(t,e),t.prototype.updateColorAndShape=function(){this.length=this.match.length,this.averagePos.x=this.averagePos.y=0;var e=this.match[0].x,t=this.match[0].y;this.color=-1,this.isSingleColored=!0;for(var s=0;s<this.length;++s){this.isHorizontal=this.isHorizontal&&this.match[s].y==t,this.isVertical=this.isVertical&&this.match[s].x==e;var i=this.level.getCellObjectByRealPos(this.match[s]);i&&i.colorType>=0&&!i.isChameleon&&(this.isSingleColored=this.isSingleColored&&(this.color<0||this.color==i.colorType||i.isChameleon),this.color=i.colorType),this.averagePos.x+=this.match[s].pos.x,this.averagePos.y+=this.match[s].pos.y}this.averagePos.x/=this.length,this.averagePos.y/=this.length},Object.defineProperty(t.prototype,"isUsual",{get:function(){return 0==this.bonus},enumerable:!0,configurable:!0}),t.prototype.trySpawnBonus=function(){if(this.length<=3||!this.isUsual)return null;var e=-1;e=4==this.length?Math.random()>.5?1:2:5==this.length&&(this.isHorizontal||this.isVertical)?4:3;for(var t=0;t<this.length;++t){var s=this.match[t];if(s.object&&!s.object.isBonus&&s.object.isSwapped&&s.object.setBonusType(e,!1,!0))return this.bonusSpawnCell=s,this.bonusSpawnCell.needRemoveObject=!1,s}for(var t=0;t<this.length;++t){var s=this.match[t];if(s.object&&!s.object.isBonus&&s.object.setBonusType(e,!1,!0))return this.bonusSpawnCell=s,this.bonusSpawnCell.needRemoveObject=!1,s}for(t=0;t<this.length;++t)if(s=this.match[t],s.object&&s.object.setBonusType(e,!1,!0))return this.bonusSpawnCell=s,this.bonusSpawnCell.needRemoveObject=!1,s;return null},t.prototype.getCell=function(e){return this.match[e]},t.prototype.tryJoin=function(e){if(e.color!=this.color||this.bonus!=e.bonus||1==e.length||1==this.length)return!1;for(var t=!1,s=0;s<e.length;++s)if(-1!=this.match.indexOf(e.getCell(s))){t=!0;break}if(t){for(s=0;s<e.length;++s){var i=e.getCell(s);-1==this.match.indexOf(i)&&(this.match.push(i),this.length++)}return this.updateColorAndShape(),!0}return!1},t}(GameObject),viewporter;window.onload=function(){new App};