var k,aa=this;
function ba(c){var d=typeof c;if("object"==d)if(c){if(c instanceof Array)return"array";if(c instanceof Object)return d;var e=Object.prototype.toString.call(c);if("[object Window]"==e)return"object";if("[object Array]"==e||"number"==typeof c.length&&"undefined"!=typeof c.splice&&"undefined"!=typeof c.propertyIsEnumerable&&!c.propertyIsEnumerable("splice"))return"array";if("[object Function]"==e||"undefined"!=typeof c.call&&"undefined"!=typeof c.propertyIsEnumerable&&!c.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==
d&&"undefined"==typeof c.call)return"object";return d}function m(c){return void 0!==c}function ca(c){return"array"==ba(c)}function da(c){return"string"==typeof c}function ea(c){var d=typeof c;return"object"==d&&null!=c||"function"==d}function fa(c){return c[ga]||(c[ga]=++ha)}var ga="closure_uid_"+(1E9*Math.random()>>>0),ha=0;function ia(c,d,e){return c.call.apply(c.bind,arguments)}
function ja(c,d,e){if(!c)throw Error();if(2<arguments.length){var f=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,f);return c.apply(d,e)}}return function(){return c.apply(d,arguments)}}function n(c,d,e){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ia:ja;return n.apply(null,arguments)}var ka=Date.now||function(){return+new Date};
function s(c,d){function e(){}e.prototype=d.prototype;c.D=d.prototype;c.prototype=new e};var la;
function ma(){this.path="res/audio/"+na+"/";this.ha=t(this,"music/intro-mix-max");this.Ib=t(this,"sounds/crunch1");this.pb=t(this,"sounds/Scratch01");this.Eb=t(this,"sounds/success");this.ya=t(this,"sounds/backscratch16");this.ab=t(this,"sounds/TAP2");this.hb=t(this,"sounds/girl-1");this.ib=t(this,"sounds/girl-2");this.ea=0;this.end=[t(this,"sounds/end-1"),t(this,"sounds/end-2"),t(this,"sounds/end-3"),t(this,"sounds/end-4"),t(this,"sounds/end-5"),t(this,"sounds/end-6")];this.open=t(this,"open");oa=
!0}function t(c,d){var e=new Audio(c.path+d+".ogg");e.Xc="normal";return e}k=ma.prototype;k.Pa=function(){this.q(this.ha,!0)};k.Cb=function(){this.ha&&this.ha.pause()};k.ec=function(){this.q(this.Ib)};k.ac=function(){this.q(this.pb)};k.dc=function(){this.q(this.Eb)};k.cc=function(){this.q(this.ya)};k.tb=function(){this.q(this.ab)};k.$b=function(){this.q(1==pa(2)?this.hb:this.ib)};k.Zb=function(){this.q(this.end[this.ea]);this.ea++};k.bc=function(){this.q(this.open)};
k.q=function(c,d){m(d)||(d=!1);0!=u.get(qa)[ra]&&(c.loop=d,c.play())};function sa(){var c="res/audio/".concat(na,"/"),d=this;this.playing=!1;this.ha=new Howl({Qc:[c+"music/intro-mix-max.mp3",c+"music/intro-mix-max.ogg"],loop:!0,onload:function(){oa=!0},Zc:function(){d.playing=!0},Yc:function(){d.playing=!1},buffer:ta});this.oc=c+"sounds/";this.Ib=v(this,"crunch1");this.pb=v(this,"Scratch01");this.Eb=v(this,"success");this.ya=v(this,"backscratch16");this.ab=v(this,"TAP2");this.hb=v(this,"girl-1");this.ib=v(this,"girl-2");this.ea=0;this.end=[v(this,"end-1"),v(this,"end-2"),
v(this,"end-3"),v(this,"end-4"),v(this,"end-5"),v(this,"end-6")];this.open=v(this,"open")}function v(c,d){return new Howl({Qc:[c.oc+d+".mp3",c.oc+d+".ogg"],buffer:ta})}k=sa.prototype;k.Pa=function(){!1===this.playing&&this.q(this.ha)};k.Cb=function(){this.ha.pause()};k.ec=function(){this.q(this.Ib)};k.ac=function(){this.q(this.pb)};k.dc=function(){this.q(this.Eb)};k.cc=function(){this.q(this.ya)};k.tb=function(){this.q(this.ab)};k.$b=function(){this.q(1==pa(2)?this.hb:this.ib)};
k.Zb=function(){this.q(this.end[this.ea]);this.ea++};k.bc=function(){this.q(this.open)};k.q=function(c){0!=u.get(qa)[ra]&&c.play()};function ua(c,d){return Array(d+1).join(c)}function va(c,d){var e=m(void 0)?c.toFixed(void 0):String(c),f=e.indexOf(".");-1==f&&(f=e.length);return ua("0",Math.max(0,d-f))+e};function wa(c){var d={},e;for(e in c)d[e]=c[e];return d}var xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ya(c,d){for(var e,f,h=1;h<arguments.length;h++){f=arguments[h];for(e in f)c[e]=f[e];for(var l=0;l<xa.length;l++)e=xa[l],Object.prototype.hasOwnProperty.call(f,e)&&(c[e]=f[e])}};var za=Array.prototype,w=za.indexOf?function(c,d,e){return za.indexOf.call(c,d,e)}:function(c,d,e){e=null==e?0:0>e?Math.max(0,c.length+e):e;if(da(c))return da(d)&&1==d.length?c.indexOf(d,e):-1;for(;e<c.length;e++)if(e in c&&c[e]===d)return e;return-1};function Aa(c,d){for(var e=c.length,f=da(c)?c.split(""):c,h=0;h<e;h++)if(h in f&&d.call(void 0,f[h],h,c))return h;return-1}function Ba(c){var d=c.length;if(0<d){for(var e=Array(d),f=0;f<d;f++)e[f]=c[f];return e}return[]}
function Ca(c,d,e,f){za.splice.apply(c,Da(arguments,1))}function Da(c,d,e){return 2>=arguments.length?za.slice.call(c,d):za.slice.call(c,d,e)}function Ea(c){for(var d=Math.random,e=c.length-1;0<e;e--){var f=Math.floor(d()*(e+1)),h=c[e];c[e]=c[f];c[f]=h}};var Fa,Ga,Ha,Ia,Ja;function Ka(){return aa.navigator?aa.navigator.userAgent:null}Ja=Ia=Ha=Ga=Fa=!1;var La;if(La=Ka()){var Ma=aa.navigator;Fa=0==La.lastIndexOf("Opera",0);Ga=!Fa&&(-1!=La.indexOf("MSIE")||-1!=La.indexOf("Trident"));Ia=(Ha=!Fa&&-1!=La.indexOf("WebKit"))&&-1!=La.indexOf("Mobile");Ja=!Fa&&!Ha&&!Ga&&"Gecko"==Ma.product}var Na=Fa,x=Ga,Oa=Ja,B=Ha,Pa=Ia,Qa=aa.navigator,Ra=-1!=(Qa&&Qa.platform||"").indexOf("Mac");function Sa(){var c=aa.document;return c?c.documentMode:void 0}var Ta;
a:{var Ua="",Va;if(Na&&aa.opera)var Wa=aa.opera.version,Ua="function"==typeof Wa?Wa():Wa;else if(Oa?Va=/rv\:([^\);]+)(\)|;)/:x?Va=/\b(?:MSIE|rv)\s+([^\);]+)(\)|;)/:B&&(Va=/WebKit\/(\S+)/),Va)var Xa=Va.exec(Ka()),Ua=Xa?Xa[1]:"";if(x){var Ya=Sa();if(Ya>parseFloat(Ua)){Ta=String(Ya);break a}}Ta=Ua}var Za={};
function $a(c){var d;if(!(d=Za[c])){d=0;for(var e=String(Ta).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=String(c).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),h=Math.max(e.length,f.length),l=0;0==d&&l<h;l++){var p=e[l]||"",q=f[l]||"",z=RegExp("(\\d*)(\\D*)","g"),A=RegExp("(\\d*)(\\D*)","g");do{var y=z.exec(p)||["","",""],F=A.exec(q)||["","",""];if(0==y[0].length&&0==F[0].length)break;d=((0==y[1].length?0:parseInt(y[1],10))<(0==F[1].length?0:parseInt(F[1],10))?-1:(0==y[1].length?0:parseInt(y[1],
10))>(0==F[1].length?0:parseInt(F[1],10))?1:0)||((0==y[2].length)<(0==F[2].length)?-1:(0==y[2].length)>(0==F[2].length)?1:0)||(y[2]<F[2]?-1:y[2]>F[2]?1:0)}while(0==d)}d=Za[c]=0<=d}return d}var ab=aa.document,bb=ab&&x?Sa()||("CSS1Compat"==ab.compatMode?parseInt(Ta,10):5):void 0;function cb(c,d){this.width=c;this.height=d}cb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};cb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};cb.prototype.scale=function(c,d){this.width*=c;this.height*="number"==typeof d?d:c;return this};!Oa&&!x||x&&x&&9<=bb||Oa&&$a("1.9.1");x&&$a("9");function db(){var c,d,e,f;c=document;if(c.querySelectorAll&&c.querySelector)return c.querySelectorAll(".cross-promo");if(c.getElementsByClassName){var h=c.getElementsByClassName("cross-promo");return h}h=c.getElementsByTagName("*");f={};for(d=e=0;c=h[d];d++){var l=c.className,p;if(p="function"==typeof l.split)l=l.split(/\s+/),p=0<=w(l,"cross-promo");p&&(f[e++]=c)}f.length=e;return f}
function eb(c){c=c.document;c="CSS1Compat"==c.compatMode?c.documentElement:c.body;return new cb(c.clientWidth,c.clientHeight)}function fb(c){var d;d=document;d.querySelectorAll&&d.querySelector?d=d.querySelector(".cross-promo"):(d=document,d=(d.querySelectorAll&&d.querySelector?d.querySelectorAll(".cross-promo"):d.getElementsByClassName?d.getElementsByClassName("cross-promo"):db())[0]);d=d||null;d.parentNode&&d.parentNode.insertBefore(c,d.nextSibling)};function gb(c){var d=c.offsetWidth,e=c.offsetHeight,f=B&&!d&&!e;if((!m(d)||f)&&c.getBoundingClientRect){var h;a:{try{h=c.getBoundingClientRect()}catch(l){h={left:0,top:0,right:0,bottom:0};break a}x&&(c=c.ownerDocument,h.left-=c.documentElement.clientLeft+c.body.clientLeft,h.top-=c.documentElement.clientTop+c.body.clientTop)}return new cb(h.right-h.left,h.bottom-h.top)}return new cb(d,e)};var hb="res/back-arrow.png res/black-back.png res/close.png res/congrat-flowers.png res/credits.png res/default_any_furniture.json res/en_generic_rgb_wo_45.png res/end-screen-background.png res/finger.png res/go.png res/help-background.jpg res/home.png res/infoMessage430.png res/levelBox-blue.png res/levelBox-blue_locked.png res/levelBoxMedal.png res/levelGroup1.png res/levelGroup10.png res/levelGroup10_locked.png res/levelGroup10_small.png res/levelGroup1_small.png res/levelGroup2.png res/levelGroup2_locked.png res/levelGroup2_small.png res/levelGroup3.png res/levelGroup3_locked.png res/levelGroup3_small.png res/levelGroup4.png res/levelGroup4_locked.png res/levelGroup4_small.png res/levelGroup5.png res/levelGroup5_locked.png res/levelGroup5_small.png res/levelGroup6.png res/levelGroup6_locked.png res/levelGroup6_small.png res/levelGroup7.png res/levelGroup7_locked.png res/levelGroup7_small.png res/levelGroup8.png res/levelGroup8_locked.png res/levelGroup8_small.png res/levelGroup9.png res/levelGroup9_locked.png res/levelGroup9_small.png res/levels.png res/logo128.png res/logo60.png res/mapPin.png res/maps/group-1-rooms-2.png res/maps/group-1-rooms-4.png res/maps/group-1-rooms-6.png res/maps/group-1-rooms-8.png res/maps/group-10-rooms-12.png res/maps/group-10-rooms-16.png res/maps/group-10-rooms-20.png res/maps/group-10-rooms-4.png res/maps/group-10-rooms-8.png res/maps/group-2-rooms-2.png res/maps/group-2-rooms-4.png res/maps/group-2-rooms-6.png res/maps/group-2-rooms-8.png res/maps/group-3-rooms-12.png res/maps/group-3-rooms-3.png res/maps/group-3-rooms-6.png res/maps/group-3-rooms-9.png res/maps/group-4-rooms-12.png res/maps/group-4-rooms-3.png res/maps/group-4-rooms-6.png res/maps/group-4-rooms-9.png res/maps/group-5-rooms-12.png res/maps/group-5-rooms-16.png res/maps/group-5-rooms-4.png res/maps/group-5-rooms-8.png res/maps/group-6-rooms-12.png res/maps/group-6-rooms-16.png res/maps/group-6-rooms-4.png res/maps/group-6-rooms-8.png res/maps/group-7-rooms-12.png res/maps/group-7-rooms-16.png res/maps/group-7-rooms-4.png res/maps/group-7-rooms-8.png res/maps/group-8-rooms-12.png res/maps/group-8-rooms-16.png res/maps/group-8-rooms-4.png res/maps/group-8-rooms-8.png res/maps/group-9-rooms-12.png res/maps/group-9-rooms-16.png res/maps/group-9-rooms-4.png res/maps/group-9-rooms-8.png res/maps/map-pin.png res/medail-big.png res/modal-back.png res/mouse.png res/music.png res/next.png res/off_mapPin.png res/off_music.png res/pageActive.png res/pageInactive.png res/qr-mm.png res/question-mark.png res/restart.png res/rooms/bathroom_blue.jpg res/rooms/bathroom_green.jpg res/rooms/bathroom_red.jpg res/rooms/bathroom_yellow.jpg res/rooms/bedroom_blue.jpg res/rooms/bedroom_green.jpg res/rooms/bedroom_red.jpg res/rooms/bedroom_yellow.jpg res/rooms/kitchen_blue.jpg res/rooms/kitchen_green.jpg res/rooms/kitchen_red.jpg res/rooms/kitchen_yellow.jpg res/rooms/livingroom_blue.jpg res/rooms/livingroom_green.jpg res/rooms/livingroom_red.jpg res/rooms/livingroom_yellow.jpg res/scorebar-blue-cloud.png res/scorebar-levels.png res/scorebar-restart.png res/scorebar.jpg res/start-background.jpg res/themes/default/subjects/1.png res/themes/default/subjects/10.png res/themes/default/subjects/2.png res/themes/default/subjects/3.png res/themes/default/subjects/4.png res/themes/default/subjects/5.png res/themes/default/subjects/6.png res/themes/default/subjects/7.png res/themes/default/subjects/8.png res/themes/default/subjects/9.png res/themes/default/subjects/M.png res/themes/default/subjects/girl.png res/transp-back-dark.png res/transp-back.png res/transp-black.png res/user-cloud.png res/white.png".split(" ");function ib(c,d){if(!m(c)&&!m(d))return new PIXI.Point(this.position.x/(jb/100),this.position.y/(jb/100));if(ca(c)){var e=c;c=e[0];d=e[1]}(Oa||kb)&&this instanceof lb&&(d+=jb/100*mb);c*=jb/100;d*=jb/100;this.position=new PIXI.Point(c,d);return this}function nb(c,d){if(!m(c)&&!m(d))return this.anchor;if(ca(c)){var e=c;c=e[0];d=e[1]}this.anchor=new PIXI.Point(c/100,d/100);return this}
function ob(c,d){var e;if(!m(c)&&!m(d))return new cb(this.width,this.height);ca(c)&&(e=c,c=e[0],d=e[1]);this.width=c;this.height=d;return this}function pb(c,d,e){c=new lb(c);e=parseInt(jb/100*e,10);c.setStyle({font:e+"px "+d});this.addChild(c);return c}function qb(c,d){var e;e=m(d)?rb(c):new sb(c);this.addChild(e);return e}function tb(c){this.addChild(c)};function sb(c){c=da(c)?PIXI.Texture.fromImage(la(c)):c;PIXI.Sprite.call(this,c)}s(sb,PIXI.Sprite);k=sb.prototype;k.size=ob;k.j=ib;k.o=nb;k.F=pb;k.m=qb;k.appendChild=tb;function rb(c){var d=PIXI.TextureCache[c];if(!d)throw Error("The frameId '"+c+"' does not exist in the texture cache"+this);return new sb(d)}function ub(c,d){c.setTexture(PIXI.Texture.fromImage(la(d)))};function vb(c){sb.call(this,c);this.interactive=this.buttonMode=!0}s(vb,sb);function C(c,d,e){m(e)||(e=[0,0]);this.Nb=this.image=this.label=this.button=null;this.context=this;this.Wb=null;this.ub=1;this.Qb=d;this.button=(new vb(d)).j(e);c.appendChild(this.button)}C.prototype.Sa=function(c){this.button.o(c)};
function D(c,d,e,f){m(d)&&d&&(c.Nb=d,c.Wb=e,m(f)&&(c.context=f),c.button.mousedown=c.button.touchstart=function(c){c.originalEvent.stopPropagation();c.originalEvent.preventDefault();this.scale.x=this.scale.y=1.05},c.button.mouseup=c.button.touchend=function(d){d.originalEvent.stopPropagation();d.originalEvent.preventDefault();-1!=d.originalEvent.type.indexOf("mouse")&&wb||(this.scale.x=this.scale.y=1,0!=c.ub&&E.tb(),c.Nb.call(c.context,c.Wb))})}
function xb(c,d){c.label=c.button.F(d,yb,40).j([15,32]);return c.label}C.prototype.remove=function(){this.button.parent.removeChild(this.button);this.button=null};function zb(c,d,e){C.call(this,c,d,e);this.qc=this.rc=null;this.state=Ab}s(zb,C);function Bb(c,d,e,f){c.rc=d;c.qc=e;c.context=m(f)?f:c;c.button.mousedown=c.button.touchstart=function(c){c.originalEvent.stopPropagation();c.originalEvent.preventDefault()};c.button.mouseup=c.button.touchend=function(d){d.originalEvent.stopPropagation();d.originalEvent.preventDefault();0!=c.ub&&E.tb();c.state==Ab?Cb(c,Db):Cb(c,Ab)}}
function Cb(c,d){c.state=d;c.state==Ab?(c.rc.call(c.context),ub(c.button,c.Qb)):(c.qc.call(c.context),ub(c.button,"off_".concat(c.Qb)))}var Ab=0,Db=1;var Eb={s_moves:0,s_score:0,s_time:0,s_medails:0,s_girl_meet:0,s_m_pair_founded:0};var Fb={g_id:0,a_all_girls_meet:0,a_all_levels_3medal:0,a_all_mpairs_founded:0,a_all_levels_finished:0,a_group_mastered:0};function Gb(){};function Hb(){}s(Hb,Gb);function Ib(c){this.qa=c}s(Ib,Hb);Ib.prototype.set=function(c,d){try{this.qa.setItem(c,d)}catch(e){if(0==this.qa.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};Ib.prototype.get=function(c){c=this.qa.getItem(c);if(!da(c)&&null!==c)throw"Storage mechanism: Invalid value was encountered";return c};Ib.prototype.remove=function(c){this.qa.removeItem(c)};Ib.prototype.key=function(c){return this.qa.key(c)};function Jb(){var c=null;try{c=window.localStorage||null}catch(d){}this.qa=c}s(Jb,Ib);function Kb(c){c=String(c);if(/^\s*$/.test(c)?0:/^[\],:{}\s\u2028\u2029]*$/.test(c.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+c+")")}catch(d){}throw Error("Invalid JSON string: "+c);}function Lb(){this.Ra=void 0}function Mb(c,d){var e=[];Nb(c,d,e);return e.join("")}
function Nb(c,d,e){switch(typeof d){case "string":Ob(d,e);break;case "number":e.push(isFinite(d)&&!isNaN(d)?d:"null");break;case "boolean":e.push(d);break;case "undefined":e.push("null");break;case "object":if(null==d){e.push("null");break}if(ca(d)){var f=d.length;e.push("[");for(var h="",l=0;l<f;l++)e.push(h),h=d[l],Nb(c,c.Ra?c.Ra.call(d,String(l),h):h,e),h=",";e.push("]");break}e.push("{");f="";for(l in d)Object.prototype.hasOwnProperty.call(d,l)&&(h=d[l],"function"!=typeof h&&(e.push(f),Ob(l,e),
e.push(":"),Nb(c,c.Ra?c.Ra.call(d,l,h):h,e),f=","));e.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof d);}}var Pb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Qb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Ob(c,d){d.push('"',c.replace(Qb,function(c){if(c in Pb)return Pb[c];var d=c.charCodeAt(0),h="\\u";16>d?h+="000":256>d?h+="00":4096>d&&(h+="0");return Pb[c]=h+d.toString(16)}),'"')};function Rb(c){this.xa=c;this.jc=new Lb}k=Rb.prototype;k.xa=null;k.jc=null;k.set=function(c,d){m(d)?this.xa.set(c,Mb(this.jc,d)):this.xa.remove(c)};k.get=function(c){var d;try{d=this.xa.get(c)}catch(e){return}if(null!==d)try{return Kb(d)}catch(f){throw"Storage: Invalid value was encountered";}};k.remove=function(c){this.xa.remove(c)};function Sb(c){Rb.call(this,c)}s(Sb,Rb);function Tb(c){this.data=c}function Ub(c){return!m(c)||c instanceof Tb?c:new Tb(c)}function Vb(c){c=c.data;if(!m(c))throw"Storage: Invalid value was encountered";return c}Sb.prototype.set=function(c,d){Sb.D.set.call(this,c,Ub(d))};Sb.prototype.ta=function(c){c=Sb.D.get.call(this,c);if(!m(c)||c instanceof Object)return c;throw"Storage: Invalid value was encountered";};Sb.prototype.get=function(c){return(c=this.ta(c))?Vb(c):void 0};function Wb(){};function Xb(){this.n=[];this.$a=[];this.uc=[];this.Oa=[];this.Oa[0]=128;for(var c=1;64>c;++c)this.Oa[c]=0;this.reset()}s(Xb,Wb);Xb.prototype.reset=function(){this.n[0]=1732584193;this.n[1]=4023233417;this.n[2]=2562383102;this.n[3]=271733878;this.n[4]=3285377520;this.Hb=this.ua=0};
function Yb(c,d,e){e||(e=0);var f=c.uc;if(da(d))for(var h=0;16>h;h++)f[h]=d.charCodeAt(e)<<24|d.charCodeAt(e+1)<<16|d.charCodeAt(e+2)<<8|d.charCodeAt(e+3),e+=4;else for(h=0;16>h;h++)f[h]=d[e]<<24|d[e+1]<<16|d[e+2]<<8|d[e+3],e+=4;for(h=16;80>h;h++){var l=f[h-3]^f[h-8]^f[h-14]^f[h-16];f[h]=(l<<1|l>>>31)&4294967295}d=c.n[0];e=c.n[1];for(var p=c.n[2],q=c.n[3],z=c.n[4],A,h=0;80>h;h++)40>h?20>h?(l=q^e&(p^q),A=1518500249):(l=e^p^q,A=1859775393):60>h?(l=e&p|q&(e|p),A=2400959708):(l=e^p^q,A=3395469782),l=
(d<<5|d>>>27)+l+z+A+f[h]&4294967295,z=q,q=p,p=(e<<30|e>>>2)&4294967295,e=d,d=l;c.n[0]=c.n[0]+d&4294967295;c.n[1]=c.n[1]+e&4294967295;c.n[2]=c.n[2]+p&4294967295;c.n[3]=c.n[3]+q&4294967295;c.n[4]=c.n[4]+z&4294967295}
Xb.prototype.update=function(c,d){m(d)||(d=c.length);for(var e=d-64,f=0,h=this.$a,l=this.ua;f<d;){if(0==l)for(;f<=e;)Yb(this,c,f),f+=64;if(da(c))for(;f<d;){if(h[l]=c.charCodeAt(f),++l,++f,64==l){Yb(this,h);l=0;break}}else for(;f<d;)if(h[l]=c[f],++l,++f,64==l){Yb(this,h);l=0;break}}this.ua=l;this.Hb+=d};
function Zb(c){var d=[],e=8*c.Hb;56>c.ua?c.update(c.Oa,56-c.ua):c.update(c.Oa,64-(c.ua-56));for(var f=63;56<=f;f--)c.$a[f]=e&255,e/=256;Yb(c,c.$a);for(f=e=0;5>f;f++)for(var h=24;0<=h;h-=8)d[e]=c.n[f]>>h&255,++e;return d};function $b(){this.Bb=[];this.wa=this.va=0};function ac(c){for(var d=[],e=0,f=0;f<c.length;f++){for(var h=c.charCodeAt(f);255<h;)d[e++]=h&255,h>>=8;d[e++]=h}return d};function bc(c){Rb.call(this,c)}s(bc,Sb);bc.prototype.set=function(c,d,e){if(d=Ub(d)){if(e){if(e<ka()){bc.prototype.remove.call(this,c);return}d.expiration=e}d.creation=ka()}bc.D.set.call(this,c,d)};bc.prototype.ta=function(c,d){var e=bc.D.ta.call(this,c);if(e){var f;if(f=!d){f=e.creation;var h=e.expiration;f=!!h&&h<ka()||!!f&&f>ka()}if(f)bc.prototype.remove.call(this,c);else return e}};function cc(c){Rb.call(this,c)}s(cc,bc);var dc=null,fc=null;function gc(c,d){Rb.call(this,c);this.xb=ac(d);this.Pb=new Lb}s(gc,cc);k=gc.prototype;k.xb=null;k.Pb=null;
function hc(c,d){var e=new Xb;e.update(ac(d));e.update(c.xb);var e=Zb(e),f=ba(e);if("array"!=f&&("object"!=f||"number"!=typeof e.length))throw Error("encodeByteArray takes an array as a parameter");if(!dc)for(dc={},fc={},f=0;65>f;f++)dc[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f),fc[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(f);for(var f=fc,h=[],l=0;l<e.length;l+=3){var p=e[l],q=l+1<e.length,z=q?e[l+1]:0,A=l+2<e.length,y=A?e[l+
2]:0,F=p>>2,p=(p&3)<<4|z>>4,z=(z&15)<<2|y>>6,y=y&63;A||(y=64,q||(z=64));h.push(f[F],f[p],f[z],f[y])}return h.join("")}
function ic(c,d,e,f){if(!(0<d.length))throw Error("Non-empty salt must be provided");var h=new Xb;h.update(ac(e));h.update(d);h.update(c.xb);c=new $b;var h=Zb(h),l;l||(l=h.length);d=c.Bb;for(e=0;256>e;++e)d[e]=e;var p=0;for(e=0;256>e;++e){var p=p+d[e]+h[e%l]&255,q=d[e];d[e]=d[p];d[p]=q}c.va=0;c.wa=0;l=c.va;h=c.wa;d=c.Bb;for(e=0;1536>e;++e)l=l+1&255,h=h+d[l]&255,p=d[l],d[l]=d[h],d[h]=p;c.va=l;c.wa=h;f=ac(f);var z;z||(z=f.length);l=c.va;h=c.wa;d=c.Bb;for(e=0;e<z;++e)l=l+1&255,h=h+d[l]&255,p=d[l],d[l]=
d[h],d[h]=p,f[e]^=d[d[l]+d[h]&255];c.va=l;c.wa=h;return String.fromCharCode.apply(null,f)}k.set=function(c,d,e){if(m(d)){for(var f=[],h=0;8>h;++h)f[h]=Math.floor(256*Math.random());d=new Tb(ic(this,f,c,Mb(this.Pb,d)));d.salt=f;gc.D.set.call(this,hc(this,c),d,e)}else gc.prototype.remove.call(this,c)};
k.ta=function(c,d){var e=gc.D.ta.call(this,hc(this,c),d);if(e){var f=Vb(e),h=e.salt;if(!da(f)||!ca(h)||!h.length)throw"Storage: Invalid value was encountered";f=ic(this,h,c,f);try{e.data=Kb(f)}catch(l){throw"Storage: The value could not be decrypted";}return e}};k.remove=function(c){gc.D.remove.call(this,hc(this,c))};var mc={"1.1.0":function(c){var d=c.get(jc),e={};e[G]=7;e[H]=20;e[I]=16;d.push(e);e={};e[G]=8;e[H]=20;e[I]=16;d.push(e);e={};e[G]=9;e[H]=20;e[I]=16;d.push(e);e={};e[G]=10;e[H]=30;e[I]=20;d.push(e);c.put(jc,d);d=c.get(kc);e={og_g_id:7,og_unlocked:1};d.push(e);e={og_g_id:8,og_unlocked:0};d.push(e);e={og_g_id:9,og_unlocked:0};d.push(e);e={og_g_id:10,og_unlocked:0};d.push(e);c.put(kc,d);d=c.get(lc);e={s_group:7,s_level:1,s_score:0,s_moves:0,s_time:0,s_medails:0,s_girl_meet:0,s_m_pair_founded:0};d.push(e);
c.put(lc,d)}};var ra="is_music";var G="g_id",H="g_levels",I="g_rooms";var lc="scores",kc="owned_group_of_levels",qa="options",jc="all_groups";function nc(){this.db=new gc(new Jb,"ece185dc17d5aae900ae88cf7f57dc16");localStorage.length?this.update():this.init()}k=nc.prototype;k.update=function(){var c=this.get("updates");ca(c)||(this.put("updates",[]),c=[]);-1==c.indexOf(oc)&&m(mc[oc])&&(mc[oc](this),c.push(oc),this.put("updates",c))};k.get=function(c){return m(this.db.get(c))?this.db.get(c):null};k.put=function(c,d){this.db.set(c,d)};k.remove=function(c){this.db.remove(c)};
k.init=function(){if(!this.get(qa)){var c={};c[ra]=1;this.put(qa,c)}this.get("achievements")||this.put("achievements",{});var d=[],c={s_group:1,s_level:1,s_score:0,s_moves:0,s_time:0,s_medails:0,s_girl_meet:0,s_m_pair_founded:0};d.push(c);this.put(lc,d);d=[];c={og_g_id:1,og_unlocked:1};d.push(c);c={og_g_id:2,og_unlocked:0};d.push(c);c={og_g_id:3,og_unlocked:0};d.push(c);c={og_g_id:4,og_unlocked:0};d.push(c);c={og_g_id:5,og_unlocked:0};d.push(c);c={og_g_id:6,og_unlocked:0};d.push(c);c={og_g_id:7,og_unlocked:0};
d.push(c);c={og_g_id:8,og_unlocked:0};d.push(c);c={og_g_id:9,og_unlocked:0};d.push(c);c={og_g_id:10,og_unlocked:0};d.push(c);this.put(kc,d);d=[];c={};c[G]=1;c[H]=10;c[I]=8;d.push(c);c={};c[G]=2;c[H]=10;c[I]=8;d.push(c);c={};c[G]=3;c[H]=14;c[I]=12;d.push(c);c={};c[G]=4;c[H]=14;c[I]=12;d.push(c);c={};c[G]=5;c[H]=20;c[I]=16;d.push(c);c={};c[G]=6;c[H]=20;c[I]=16;d.push(c);c={};c[G]=7;c[H]=20;c[I]=16;d.push(c);c={};c[G]=8;c[H]=20;c[I]=16;d.push(c);c={};c[G]=9;c[H]=20;c[I]=16;d.push(c);c={};c[G]=10;c[H]=
30;c[I]=20;d.push(c);this.put(jc,d)};function pc(c){m(c)||(c=[qc/2-160,30]);this.label=null;this.fb=600;this.lastTime=4E3;this.ob=[];this.fontSize=20;this.M=(new sb("infoMessage430.png")).j(c);this.M.alpha=0}pc.prototype.Sa=function(c){this.M.o(c)};pc.prototype.show=function(c){this.label?this.label.setText(c):(rc.addChild(this.M),this.label=this.M.F(c,yb,this.fontSize).P([0,0,0]).o(50,50).j(0,0),this.label.style.align="center");sc(this)};
function sc(c){E.bc();c.M.alpha=1;(new TWEEN.Tween({x:1})).to({x:0},c.fb).delay(c.lastTime).onUpdate(function(){c.M.alpha=this.x}).onComplete(n(c.Yb,c)).start()}pc.prototype.Yb=function(c){0==this.ob.length?m(c)||1!=c||this.remove():(c=this.ob.shift(),this.show(c))};pc.prototype.remove=function(){};function tc(c,d){var e=Array.prototype.slice.call(arguments),f=e.shift();if("undefined"==typeof f)throw Error("[goog.string.format] Template required");return f.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(c,d,f,q,z,A,y,F){if("%"==A)return"%";var ec=e.shift();if("undefined"==typeof ec)throw Error("[goog.string.format] Not enough arguments");arguments[0]=ec;return uc[A].apply(null,arguments)})}
var uc={s:function(c,d,e){return isNaN(e)||""==e||c.length>=e?c:c=-1<d.indexOf("-",0)?c+ua(" ",e-c.length):ua(" ",e-c.length)+c},f:function(c,d,e,f,h){f=c.toString();isNaN(h)||""==h||(f=c.toFixed(h));var l;l=0>c?"-":0<=d.indexOf("+")?"+":0<=d.indexOf(" ")?" ":"";0<=c&&(f=l+f);if(isNaN(e)||f.length>=e)return f;f=isNaN(h)?Math.abs(c).toString():Math.abs(c).toFixed(h);c=e-f.length-l.length;return f=0<=d.indexOf("-",0)?l+f+ua(" ",c):l+ua(0<=d.indexOf("0",0)?"0":" ",c)+f},d:function(c,d,e,f,h,l,p,q){return uc.f(parseInt(c,
10),d,e,f,0,l,p,q)}};uc.i=uc.d;uc.u=uc.d;function vc(c,d){this.V=d;this.screen=c;this.background=null}var wc={a_all_levels_3medal:"House no.%d 3 Medals",a_all_levels_finished:"House no.%d All levels",a_group_mastered:"House no.%d Mastered"};vc.prototype.show=function(){var c=this.V.length;if(0!=c){this.M=new pc([J[0]/2,90]);this.M.Sa([50,55]);this.M.fontSize=25;for(var d="",e=0;e<c;e++)d=tc(wc[this.V[e]],K),this.M.ob.push("Achievement unlocked: \n"+d);setTimeout(n(function(){this.M.Yb()},this),1E3)}};function xc(c){L.call(this);this.na=-1;this.ic=this.U=this.G=null;this.da=[];this.tc=189;this.sc=200;this.vspace=35;this.fontSize=25;this.l=c.l;this.C=null;this.hc=!1;this.qb=this.la=null;this.Rb=this.mb=!1;this.backgroundImage="end-screen-background.png";this.R=[];this.ja=0;this.V=[];this.init()}s(xc,L);
xc.prototype.create=function(){xc.D.create.call(this);this.eb=(new yc).j(this.Sc,this.tc);this.screen.appendChild(this.eb);var c=null;this.C=u.get(lc);for(var d=this.C.length,e=0;e<d;e++)this.C[e].s_group==K?this.C[e].s_level==zc?(c=this.C[e],this.hc=e):this.C[e].s_level==zc+1&&(this.mb=!0):this.C[e].s_group==K+1&&1==this.C[e].s_level&&(this.Rb=!0);this.ic=c;this.G=this.l.G;this.U=this.l.U;var f;this.na=this.ic.s_score;d=this.l.ka;e=this.l.totalTime;c={};this.na<this.G&&(c.s_moves=d,c.s_score=this.G,
c.s_time=e,c.s_medails=this.U);d=0;for(f in c)d++;if(0<d){this.R=u.get(jc);this.ja=this.R[K-1][H];ya(this.C[this.hc],c);Ac(this);u.put(lc,this.C);c=this.C.length;for(e=d=f=0;e<c;e++)this.C[e].s_group==K&&(3==this.C[e].s_medails&&d++,0!=this.C[e].s_moves&&f++);c=d;d=u.get("achievements");c=c==this.ja?1:0;f=f==this.ja?1:0;e=d.hasOwnProperty(K)?d[K]:wa(Fb);0==e.a_all_levels_3medal&&1==c&&(e.a_all_levels_3medal=1,this.V.push("a_all_levels_3medal"));0==e.a_all_levels_finished&&1==f&&(e.a_all_levels_finished=
1,this.V.push("a_all_levels_finished"));0==e.a_group_mastered&&1==e.a_all_levels_3medal&&1==e.a_all_levels_finished&&(e.a_group_mastered=1,this.V.push("a_group_mastered"));d[K]=e;u.put("achievements",d);f=!0}else f=!1;Bc(this,f)};function Ac(c){zc<c.ja?!1===c.mb&&Cc(c,K,zc+1):!1===c.Rb&&-1!=Aa(c.R,function(c,e){return e==K})&&Cc(c,K+1,1)}
function Cc(c,d,e){var f=wa(Eb),h={};h.s_group=d;h.s_level=e;ya(f,h);c.C.push(f);c.la=e;c.qb=d;c=u.get(kc);0==c[d-1].og_unlocked&&d!=K&&(c[d-1].og_unlocked=1,u.put(kc,c))}
function Bc(c,d){d&&c.screen.m("congrat-flowers.png").j(292,15);var e=c.screen.m("levelGroup".concat(K,"_small.png")).j(195,115).o(50,50);(new TWEEN.Tween({rotation:0})).to({rotation:360},4E3).repeat(Infinity).onUpdate(function(){e.rotation=Math.PI/180*this.rotation}).start();var f=c.screen.F(zc,yb,30).j(230,95).P([0,0,0]);9==K&&f.j(250,95);f=Dc(c,"Total time: ".concat(c.l.totalTime));f.alpha=0;c.da.push(f);f=Dc(c,"Total moves: ".concat(c.l.ka));f.alpha=0;c.da.push(f);f="Score: ";c.G>c.na&&(f="New High "+
f);f+=c.G;c.na&&-1!=c.na&&(f=f.concat(" (",c.na,")"));f=Dc(c,f);f.alpha=0;c.da.push(f);Ec(c);D(new C(c.screen,"restart.png",[32,127]),Fc);null===c.la&&!0!==c.mb||null!==c.qb&&K!=c.qb||(f=new C(c.screen,"next.png",[666,127]),c.la=c.la?c.la:zc+1,D(f,Fc,c.la));D(new C(c.screen,"levels.png",[350,298]),c.zb);D(new C(c.screen,"home.png",[40,395]),c.ca);E.ea=0;Gc(c,0)}
function Gc(c,d){var e=c.da[d];(new TWEEN.Tween({x:0})).to({x:1},300).onUpdate(function(){e.alpha=this.x}).onComplete(n(function(){var c=++d;c<this.da.length?Gc(this,c):0<this.V.length&&(new vc(this.screen,this.V)).show()},c)).start();E.Zb()}function Ec(c){var d=new yc;d.j(540,340);c.screen.addChild(d);for(var e=0,f,h=0;h<c.U;h++)f=d.m("medail-big.png").j(e,0),f.alpha=0,c.da.push(f),e+=40}xc.prototype.zb=function(){new Hc};xc.prototype.ca=function(){new Ic};function Jc(){this.k=this.y=this.x=null};var Kc={37:"left",39:"right",38:"up",40:"down",65:"left",68:"right",87:"up",83:"down"};function Lc(){Jc.call(this);this.x=-1E3;this.y=0;this.Vb=this.Ub=this.Jc=this.O=this.index=null;this.Db=-1;this.k=[]}s(Lc,Jc);var qc=614;Lc.prototype.mc=function(c){this.O=c.m("themes/".concat(na,"/",this.Jc,".jpg")).j(this.x,this.y)};function Mc(c,d){this.$=new PIXI.Graphics;this.$.beginFill("#000",0.4);this.$.drawRect(0,0,qc,480);this.$.endFill();rc.addChild(this.$);var e=(new sb("maps/group-".concat(c,"-rooms-",d,".png"))).j(30,30);this.$.addChild(e);this.Ic=e.m("maps/map-pin.png")}Mc.prototype.show=function(){this.$.visible=!0;Nc(this)};Mc.prototype.Gc=function(){this.$.visible=!1};function Nc(c){c.Ic.j(Oc.Ub+25-Pc[0]/2,Oc.Vb+25-Pc[1]/2)}Mc.prototype.sb=function(){Nc(this)};Mc.prototype.remove=function(){};function Qc(c){this.Bc=2E3;this.Ac=3E3;this.Ba=null;this.zc="themes/".concat(na,"/subjects/girl.png");this.Ga={};this.Ga.down=480;this.Ga.left=-qc;this.Ga.right=qc;this.Ga.up=-480;this.l=c;this.p=c.p;this.p.za.Ca(this);this.Ya=this.Lb=null;this.Mb()}Qc.prototype.Mb=function(){this.Ba=pa(this.p.e.length);this.Lb=setTimeout(n(this.Kb,this),this.Bc);this.sb(null)};Qc.prototype.Kb=function(){this.Ba=null;this.Ya=setTimeout(n(this.Mb,this),this.Ac)};
Qc.prototype.sb=function(){if(Oc.index==this.Ba){Rc(this);var c=this.p.e[this.Ba].O.m(this.zc).j([139,303]).o(50,50);c.scale.x=c.scale.y=0;(new TWEEN.Tween({x:0})).to({x:0.95},500).easing(TWEEN.Easing.Exponential.In).onUpdate(function(){c.scale.x=c.scale.y=this.x}).start();Sc(this.l,2*(pa(this.p.c)+1));this.Ba=null;E.$b()}};function Rc(c){c.Ya&&clearTimeout(c.Ya);c.Kb&&clearTimeout(c.Lb)};var K=null,zc=null;function Tc(){this.Y=this.Ob=this.l=null;this.Ea=0;this.Fb=this.Ua=null;this.aa=this.J=0;this.map=this.totalTime=this.startTime=this.Sb=null;this.ka=0;this.p=this.screen=null;this.P=[255,250,250];this.width=240;this.Ha=null;this.Gb=this.U=this.G=0}k=Tc.prototype;
k.create=function(){this.l=this.p.Q.m("scorebar.jpg");var c=new C(this.p.Q,"scorebar-restart.png",[18,43]);c.ub=0;D(c,this.ya,null,this);this.Sb=new C(this.p.Q,"scorebar-levels.png",[18,188]);D(this.Sb,this.zb,null,this);this.map=new Mc(K,this.p.e.length);this.p.za.Ca(this.map);c=new zb(this.p.Q,"mapPin.png",[18,333]);Bb(c,this.map.show,this.map.Gc,this.map);Cb(c,zb.Tc);this.p.Q.m("levelGroup".concat(K,"_small.png")).j(140,25);this.p.Q.F(zc,yb,30).j(195,30).P(0,0,0);var c=this.p.Q.m("scorebar-blue-cloud.png").j(115,
120),d=kb?57:52;this.Ob=c.F(this.Ea.toString().concat("/",this.Y),yb,35).P([255,255,255]).o(50,50).j(50,d);this.Fb=this.p.Q.m("scorebar-blue-cloud.png").j(115,265).F("00:00",yb,25).P([255,255,255]).o(50,50).j(50,d);this.Ua=setInterval(n(this.xc,this),1E3);this.startTime=(new Date).getTime()};
k.xc=function(){this.J+=1;0<this.J&&(this.J%=60,0==this.J&&(this.aa+=1,this.aa%=60));var c=this.J,d=this.aa;0>this.J?c=this.J.toString():10>this.J&&(c="0".concat(this.J));10>this.aa&&(d="0".concat(this.aa));this.Fb.setText(d.toString().concat(":",c))};k.ya=function(){E.cc();clearInterval(this.Ua);Rc(this.Ha);Fc()};k.zb=function(){clearInterval(this.Ua);new Hc};
function Uc(c){c.Ea++;c.Ob.setText(c.Ea.toString().concat("/",c.Y));c.Ea==c.Y&&(clearInterval(c.Ua),Rc(c.Ha),Vc(c),Wc(c),Xc(c),setTimeout(n(function(){new xc(this.p)},c),700))}function Vc(c){c.Gb=Math.max((new Date).getTime()-c.startTime,0);var d=new Date;d.setTime(c.Gb);var e=va(d.getSeconds(),2),f=va(d.getMinutes(),2),d=va(d.getMilliseconds(),3);c.totalTime=f.concat(":",e,":",d)}
function Sc(c,d){c.J-=d;c.startTime+=1E3*d;var e=(new lb("-"+d)).j(50,45).o(50,50);e.setStyle({font:"40px "+yb,fill:"#000",stroke:"#FFFFFF",strokeThickness:3});c.Fb.parent.addChild(e);(new TWEEN.Tween({y:45})).to({y:-270},3E3).onUpdate(function(){e.position.y=this.y}).start();(new TWEEN.Tween({x:1})).to({x:0},3E3).onUpdate(function(){e.alpha=this.x}).start();(new TWEEN.Tween({x:1})).to({x:4},3E3).onUpdate(function(){e.scale.x=e.scale.y=this.x}).start()}
k.remove=function(){this.l=null;this.map.remove();Rc(this.Ha)};function Wc(c){c.G=3E4*c.Y-c.Gb-1E3*c.ka+2E3*c.p.e.length;0>c.G&&(c.G=1)}function Xc(c){var d=3E4*c.Y-2E3*c.Y+2E3*c.p.e.length,e=10*d/16,f=d-e,d=d-(f-10*f/16);c.U=1;c.G>d?c.U=3:c.G<d&&c.G>e&&(c.U=2)};function Yc(c,d,e,f){Lc.call(this);this.La=null;this.X=[];this.sprites=[];this.Ab=[];this.pc=[];this.Rc=[22,130];this.Kc=c;this.t=d;Zc(d);this.k=e;this.N=f}s(Yc,Lc);function M(c,d){c.k=d;$c(c)}function N(c,d,e,f){m(f)||(f=null);c.sprites.push(d);c.Ab.push(e);c.pc.push(f)}
function ad(c,d){function e(c){c.originalEvent.stopPropagation();c.originalEvent.preventDefault();-1!=c.originalEvent.type.indexOf("mouse")&&wb||(d[c.target.direction](),m(c.target.mouse)&&(c.target.mouse.parent.removeChild(c.target.mouse),c.target.showHelp()))}for(var f=0,h="",l="",f=0;f<c.sprites.length;f++)h=c.sprites[f],l=c.O.m(h,!0).j(c.Ab[f]),-1!=h.indexOf("door_")&&(l.direction=h.split("_")[1],l.interactive=!0,l.mousedown=l.touchstart=e)}function bd(){this.loaded=this.Tb=!1}var cd={};
cd.blue=new bd;cd.red=new bd;cd.green=new bd;cd.yellow=new bd;cd.any=new bd;function Zc(c){if(!0!==cd[c].loaded&&!0!==cd[c].Tb){cd[c].Tb=!0;var d=new PIXI.AssetLoader(["res/default_"+c+"_furniture.json"]);d.onComplete=function(){cd[c].loaded=!0};d.load()}}k=Yc.prototype;k.mc=function(c){this.O=c.m("rooms/"+this.Kc+"_"+this.t+".jpg").j(-1E3,0);$c(this)};
function $c(c){c.sprites=[];c.Ab=[];c.pc=[];-1!=w(c.k,"up")&&c.nc();-1!=w(c.k,"left")?dd(c,"left",[36,130]):c.yb();c.Aa();-1!=w(c.k,"right")?c.kc():c.lc();-1!=w(c.k,"down")&&dd(c,"down",[80,325])}k.nc=function(){dd(this,"up",[170,115])};k.kc=function(){dd(this,"right",[511,125])};function dd(c,d,e){if(c.La){var f=c.La[d].t;N(c,"door_"+d+"_"+f,e,f)}}function ed(c){N(c,"window_left",c.Rc,"any")}k.yb=function(){};k.lc=function(){};k.Aa=function(){};function O(c,d,e){Yc.call(this,"livingroom",c,d,e);this.X=[new fd(330,358),new fd(423,160)]}s(O,Yc);O.prototype.yb=function(){-1==w(this.k,"left")&&(N(this,"sofa_left",[55,240],"any"),"yellow"==this.t&&ed(this))};O.prototype.lc=function(){N(this,"tvLamp_right",[395,145],"any")};
O.prototype.Aa=function(){N(this,"merlin_up",[270,127],"any");-1!=w(this.k,"left")&&(-1==w(this.k,"up")?N(this,"sofa_up",[210,225],"any"):N(this,"chair_up",[265,225],"any"));-1!=w(this.k,"right")&&N(this,"lamp",[395,145],"any");N(this,"livingroom_table",[210,270],"any")};function gd(){this.gc=null;this.ma=[];this.y=this.x=2}var Oc=null;gd.prototype.left=function(){this.move("left")};gd.prototype.right=function(){this.move("right")};gd.prototype.up=function(){this.move("up")};gd.prototype.down=function(){this.move("down")};
gd.prototype.move=function(c){if(-1!=w(Oc.k,c)){var d=Oc.La[c];Oc.O.j(-1E3,this.y);var e=Math.round(100/1.8),f=this.x,h=this.y;switch(c){case "left":f=-100;break;case "right":f=100;break;case "up":h=-e;break;case "down":h=e}d.O.j(f,h);(new TWEEN.Tween({x:f,y:h})).to({x:2,y:2},100).onUpdate(function(){d.O.position.x=this.x;d.O.position.y=this.y}).start();Oc=d;this.rb()}};gd.prototype.Ca=function(c){this.ma.push(c)};gd.prototype.rb=function(){for(var c=0;c<this.ma.length;c++)this.ma[c].sb(this)};function P(c,d,e){Yc.call(this,"bedroom",c,d,e);this.X=[new fd(300,280),new fd(390,270),new fd(450,170)]}s(P,Yc);P.prototype.yb=function(){"blue"==this.t?ed(this):N(this,"cabinet_left_"+this.t,[12,48])};P.prototype.Aa=function(){N(this,"bed_"+this.t,[80,136]);N(this,"fruit_up",[286,117],"any")};function hd(){this.B=[];this.A=this.l=null;this.fb=250;this.vb="question-mark.png";this.bb="1 2 3 4 5 6 7 8 9 10".split(" ");this.jb=!1;this.S=null;this.kb=0;Ea(this.bb);Ca(this.bb,0,0,"");this.Fa=!0;this.lb=[(wb?"Touch":"Click on")+" the question mark to reveal the card",(wb?"Touch":"Click on")+" the door to go to next room",(wb?"Touch":"Click on")+" the question mark to reveal the second card","You found the pair!"]}
hd.prototype.Hc=function(c){c.originalEvent.stopPropagation();c.originalEvent.preventDefault();if(!1!==this.Fa){this.A=c.target;if(m(this.A.mouse))if(0==this.B.length){this.showHelp();for(var d=this.A.mouse.parent,e=d.children.length,f=0;f<e;f++)if(c=d.getChildAt(f),m(c.direction)){d=c.j();e=c.size();this.A.mouse.j(d.x+e.width/2+17,d.y+e.height/2+27);c.mouse=this.A.mouse;c.showHelp=n(this.showHelp,this);break}}else this.showHelp(),this.A.mouse.parent.removeChild(this.A.mouse);!0!==this.A.Ma&&(this.A.Ma=
!0,id(this,"themes/"+na+"/subjects/"+("M"!=this.A.numberValue?this.bb[this.A.numberValue]:this.A.numberValue)+".png",this.Cc))}};function id(c,d,e,f){function h(){p.scale.x=p.scale.y=l.x}var l={x:1},p=c.A,q=(new TWEEN.Tween(l)).to({x:0},100).onUpdate(h).onComplete(function(){ub(p,d);p.alpha=m(f)?f:1});c=(new TWEEN.Tween(l)).to({x:1},100).onUpdate(h).onComplete(n(e,c));q.chain(c);q.start()}
hd.prototype.Cc=function(){var c=this.l;c.ka+=1;1==this.B.length?(this.B.push(this.A),this.Fa=!1,this.B[0].numberValue==this.A.numberValue?jd(this):(c=n(this.wc,this),setTimeout(c,500))):(this.B.push(this.A),E.ec())};
function jd(c){c.B[0].parent.removeChild(c.B[0]);(new TWEEN.Tween({x:1})).to({x:3},500).onUpdate(function(){c.B[1].scale.x=c.B[1].scale.y=this.x}).onComplete(function(){var d=c.B[1];"M"!=d.numberValue?Uc(c.l):c.l.ka=0;d.parent.removeChild(d);c.B=[];c.Fa=!0}).start();(new TWEEN.Tween({x:1})).to({x:0},500).onUpdate(function(){2==c.B.length&&(c.B[1].alpha=this.x)}).start();E.dc()}
hd.prototype.wc=function(){var c=this.B[0];c.Ma=!1;"M"==c.numberValue&&(c.alpha=0);ub(c,this.vb);c=this.B[1];c.Ma=!1;E.ac();id(this,this.vb,n(function(){this.B=[];this.Fa=!0},this),"M"==c.numberValue?0:1)};
function kd(c,d,e){var f=ld(d),h=d.O.m(c.vb).j(f.left,f.top).o(50,50);"M"==e&&(h.alpha=0);if(c.jb&&"M"!=e){var l=d.O.m(wb?"finger.png":"mouse.png").j(f.left,f.top);wb?(l.o(50,0),l.alpha=0.7):l.o(50,50);var p={x:1},q=function(){l.scale.x=l.scale.y=p.x},f=(new TWEEN.Tween(p)).to({x:1.2},370.8).onUpdate(q),q=(new TWEEN.Tween(p)).to({x:1},600).onUpdate(q);f.chain(q);q.chain(f);f.start();h.mouse=l}h.numberValue=e;h.$c=d.index;h.Ma=!1;h.interactive=!0;h.mousedown=h.touchstart=n(c.Hc,c)}
function ld(c){var d=c.X;-1!=c.Db&&za.splice.call(d,c.Db,1);var e=pa(d.length);c.Db=e;return d[e]}hd.prototype.showHelp=function(){if(this.S)this.kb++,this.lb[this.kb]&&this.S.label.setText(this.lb[this.kb]);else{this.S=new PIXI.Graphics;this.S.beginFill("#000",0.8);this.S.drawRect(0,0,J[0],30);rc.addChild(this.S);var c=kb?10:0;this.S.label=(new lb(this.lb[0])).o(50,0).j(J[0]/2,c);this.S.label.setStyle({font:(kb?16:20)+"px "+yb,fill:"#fff"});rc.appendChild(this.S.label)}};function Q(c,d,e){Yc.call(this,"bathroom",c,d,e);this.X=[new fd(392,130),new fd(225,278)]}s(Q,Yc);Q.prototype.nc=function(){dd(this,"up",[170,110])};Q.prototype.kc=function(){dd(this,"right",[511,110])};
Q.prototype.Aa=function(){var c=this.t;"green"==this.t&&(c="blue");var d=118;-1==w(this.k,"up")?(N(this,"bath_"+c+"_left",[d,273],c),this.X[1]=new fd(225,278)):-1!=w(this.k,"left")?(d=qc-200,N(this,"bath_"+c+"_right",[d,380],c),this.X[1]=new fd(d+107,385)):(N(this,"bath_"+c+"_left",[55,340],c),this.X[1]=new fd(225-(d-55),345));N(this,"wcElements",[285,80],"any");-1!=w(this.k,"right")?N(this,"toilet_"+this.t,[240,285]):N(this,"toilet_"+this.t,[410,225])};function R(c,d,e){Yc.call(this,"kitchen",c,d,e);this.X=[new fd(295,145),new fd(400,220)]}s(R,Yc);
R.prototype.Aa=function(){if(-1!=w(this.k,"up")){var c=this.t;"yellow"==c&&(c="green");N(this,"kitchenSink_short_"+c+"_right",[261,157],c);-1!=w(this.k,"right")?N(this,"kitchenElement_short_"+this.t+"_right",[245,69]):(c=this.t,"red"==c&&(c="blue"),N(this,"kitchenElement_medium_"+c+"_right",[245,69],c))}else N(this,"kitchenSink_long_"+this.t+"_right",[120,197]),-1!=w(this.k,"right")?N(this,"kitchenElement_short_"+this.t+"_right",[245,69]):(c="red"==this.t?"blue":this.t,N(this,"kitchenElement_long_"+
c+"_right",[137,30],c))};function fd(c,d){this.left=c;this.top=d};function yc(){PIXI.DisplayObjectContainer.call(this)}s(yc,PIXI.DisplayObjectContainer);k=yc.prototype;k.size=ob;k.j=ib;k.F=pb;k.m=qb;k.appendChild=tb;function md(){PIXI.DisplayObjectContainer.call(this)}s(md,PIXI.DisplayObjectContainer);md.prototype.F=pb;md.prototype.m=qb;md.prototype.appendChild=tb;function lb(c){PIXI.Text.call(this,c)}s(lb,PIXI.Text);k=lb.prototype;k.size=ob;k.j=ib;k.o=nb;k.appendChild=tb;k.P=function(c){c="rgb(".concat(c[0],", ",c[1],", ",c[2],")");this.style.fill=c;return this};var nd="closure_listenable_"+(1E6*Math.random()|0),od=0;function pd(c,d,e,f,h){this.Z=c;this.Qa=null;this.src=d;this.type=e;this.capture=!!f;this.Ia=h;this.key=++od;this.oa=this.Da=!1}function qd(c){c.oa=!0;c.Z=null;c.Qa=null;c.src=null;c.Ia=null};function rd(c){this.src=c;this.K={};this.Va=0}rd.prototype.add=function(c,d,e,f,h){var l=this.K[c];l||(l=this.K[c]=[],this.Va++);var p=sd(l,d,f,h);-1<p?(c=l[p],e||(c.Da=!1)):(c=new pd(d,this.src,c,!!f,h),c.Da=e,l.push(c));return c};rd.prototype.remove=function(c,d,e,f){if(!(c in this.K))return!1;var h=this.K[c];d=sd(h,d,e,f);return-1<d?(qd(h[d]),za.splice.call(h,d,1),0==h.length&&(delete this.K[c],this.Va--),!0):!1};
function td(c,d){var e=d.type;if(e in c.K){var f=c.K[e],h=w(f,d),l;(l=0<=h)&&za.splice.call(f,h,1);l&&(qd(d),0==c.K[e].length&&(delete c.K[e],c.Va--))}}rd.prototype.gb=function(c,d,e,f){c=this.K[c];var h=-1;c&&(h=sd(c,d,e,f));return-1<h?c[h]:null};function sd(c,d,e,f){for(var h=0;h<c.length;++h){var l=c[h];if(!l.oa&&l.Z==d&&l.capture==!!e&&l.Ia==f)return h}return-1};var ud=!x||x&&9<=bb,vd=x&&!$a("9");!B||$a("528");Oa&&$a("1.9b")||x&&$a("8")||Na&&$a("9.5")||B&&$a("528");Oa&&!$a("8")||x&&$a("9");function wd(){0!=xd&&fa(this)}var xd=0;function yd(c,d){this.type=c;this.currentTarget=this.target=d}k=yd.prototype;k.W=!1;k.defaultPrevented=!1;k.fc=!0;k.stopPropagation=function(){this.W=!0};k.preventDefault=function(){this.defaultPrevented=!0;this.fc=!1};function zd(c){zd[" "](c);return c}zd[" "]=function(){};function Ad(c,d){c&&this.init(c,d)}s(Ad,yd);k=Ad.prototype;k.target=null;k.relatedTarget=null;k.offsetX=0;k.offsetY=0;k.clientX=0;k.clientY=0;k.screenX=0;k.screenY=0;k.button=0;k.keyCode=0;k.charCode=0;k.ctrlKey=!1;k.altKey=!1;k.shiftKey=!1;k.metaKey=!1;k.ga=null;
k.init=function(c,d){var e=this.type=c.type;yd.call(this,e);this.target=c.target||c.srcElement;this.currentTarget=d;var f=c.relatedTarget;if(f){if(Oa){var h;a:{try{zd(f.nodeName);h=!0;break a}catch(l){}h=!1}h||(f=null)}}else"mouseover"==e?f=c.fromElement:"mouseout"==e&&(f=c.toElement);this.relatedTarget=f;this.offsetX=B||void 0!==c.offsetX?c.offsetX:c.layerX;this.offsetY=B||void 0!==c.offsetY?c.offsetY:c.layerY;this.clientX=void 0!==c.clientX?c.clientX:c.pageX;this.clientY=void 0!==c.clientY?c.clientY:
c.pageY;this.screenX=c.screenX||0;this.screenY=c.screenY||0;this.button=c.button;this.keyCode=c.keyCode||0;this.charCode=c.charCode||("keypress"==e?c.keyCode:0);this.ctrlKey=c.ctrlKey;this.altKey=c.altKey;this.shiftKey=c.shiftKey;this.metaKey=c.metaKey;this.state=c.state;this.ga=c;c.defaultPrevented&&this.preventDefault();delete this.W};k.stopPropagation=function(){Ad.D.stopPropagation.call(this);this.ga.stopPropagation?this.ga.stopPropagation():this.ga.cancelBubble=!0};
k.preventDefault=function(){Ad.D.preventDefault.call(this);var c=this.ga;if(c.preventDefault)c.preventDefault();else if(c.returnValue=!1,vd)try{if(c.ctrlKey||112<=c.keyCode&&123>=c.keyCode)c.keyCode=-1}catch(d){}};var Bd={},Cd={},Dd={};function Ed(c,d,e,f,h){if(ca(d)){for(var l=0;l<d.length;l++)Ed(c,d[l],e,f,h);return null}e=Fd(e);if(c&&c[nd])c=c.fa.add(d,e,!1,f,h);else{l=e;if(!d)throw Error("Invalid event type");e=!!f;var p=fa(c),q=Cd[p];q||(Cd[p]=q=new rd(c));f=q.add(d,l,!1,f,h);f.Qa||(h=Gd(),f.Qa=h,h.src=c,h.Z=f,c.addEventListener?c.addEventListener(d,h,e):c.attachEvent(d in Dd?Dd[d]:Dd[d]="on"+d,h),Bd[f.key]=f);c=f}return c}
function Gd(){var c=Hd,d=ud?function(e){return c.call(d.src,d.Z,e)}:function(e){e=c.call(d.src,d.Z,e);if(!e)return e};return d}function Id(c,d,e,f,h){if(ca(d))for(var l=0;l<d.length;l++)Id(c,d[l],e,f,h);else e=Fd(e),c&&c[nd]?c.fa.remove(d,e,f,h):c&&(f=!!f,(c=Jd(c))&&(d=c.gb(d,e,f,h))&&Kd(d))}
function Kd(c){if("number"!=typeof c&&c&&!c.oa){var d=c.src;if(d&&d[nd])td(d.fa,c);else{var e=c.type,f=c.Qa;d.removeEventListener?d.removeEventListener(e,f,c.capture):d.detachEvent&&d.detachEvent(e in Dd?Dd[e]:Dd[e]="on"+e,f);(e=Jd(d))?(td(e,c),0==e.Va&&(e.src=null,delete Cd[fa(d)])):qd(c);delete Bd[c.key]}}}function Ld(c,d,e,f){var h=1;if(c=Jd(c))if(d=c.K[d])for(d=Ba(d),c=0;c<d.length;c++){var l=d[c];l&&l.capture==e&&!l.oa&&(h&=!1!==Md(l,f))}return Boolean(h)}
function Md(c,d){var e=c.Z,f=c.Ia||c.src;c.Da&&Kd(c);return e.call(f,d)}
function Hd(c,d){if(c.oa)return!0;if(!ud){var e;if(!(e=d))a:{e=["window","event"];for(var f=aa,h;h=e.shift();)if(null!=f[h])f=f[h];else{e=null;break a}e=f}h=e;e=new Ad(h,this);f=!0;if(!(0>h.keyCode||void 0!=h.returnValue)){a:{var l=!1;if(0==h.keyCode)try{h.keyCode=-1;break a}catch(p){l=!0}if(l||void 0==h.returnValue)h.returnValue=!0}h=[];for(l=e.currentTarget;l;l=l.parentNode)h.push(l);for(var l=c.type,q=h.length-1;!e.W&&0<=q;q--)e.currentTarget=h[q],f&=Ld(h[q],l,!0,e);for(q=0;!e.W&&q<h.length;q++)e.currentTarget=
h[q],f&=Ld(h[q],l,!1,e)}return f}return Md(c,new Ad(d,this))}function Jd(c){return c[ga]?Cd[fa(c)]||null:null}var Nd="__closure_events_fn_"+(1E9*Math.random()>>>0);function Fd(c){return"function"==ba(c)?c:c[Nd]||(c[Nd]=function(d){return c.handleEvent(d)})};function Od(c,d,e,f,h){if(!(x||B&&$a("525")))return!0;if(Ra&&h)return Pd(c);if(h&&!f||!e&&(17==d||18==d||Ra&&91==d))return!1;if(B&&f&&e)switch(c){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(x&&f&&d==c)return!1;switch(c){case 13:return!(x&&x&&9<=bb);case 27:return!B}return Pd(c)}
function Pd(c){if(48<=c&&57>=c||96<=c&&106>=c||65<=c&&90>=c||B&&0==c)return!0;switch(c){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function Qd(c){switch(c){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return c}};function Rd(){wd.call(this);this.fa=new rd(this);this.vc=this}s(Rd,wd);Rd.prototype[nd]=!0;k=Rd.prototype;k.Xb=null;k.addEventListener=function(c,d,e,f){Ed(this,c,d,e,f)};k.removeEventListener=function(c,d,e,f){Id(this,c,d,e,f)};
k.dispatchEvent=function(c){var d,e=this.Xb;if(e)for(d=[];e;e=e.Xb)d.push(e);var e=this.vc,f=c.type||c;if(da(c))c=new yd(c,e);else if(c instanceof yd)c.target=c.target||e;else{var h=c;c=new yd(f,e);ya(c,h)}var h=!0,l;if(d)for(var p=d.length-1;!c.W&&0<=p;p--)l=c.currentTarget=d[p],h=Sd(l,f,!0,c)&&h;c.W||(l=c.currentTarget=e,h=Sd(l,f,!0,c)&&h,c.W||(h=Sd(l,f,!1,c)&&h));if(d)for(p=0;!c.W&&p<d.length;p++)l=c.currentTarget=d[p],h=Sd(l,f,!1,c)&&h;return h};
function Sd(c,d,e,f){d=c.fa.K[d];if(!d)return!0;d=Ba(d);for(var h=!0,l=0;l<d.length;++l){var p=d[l];if(p&&!p.oa&&p.capture==e){var q=p.Z,z=p.Ia||p.src;p.Da&&td(c.fa,p);h=!1!==q.call(z,f)&&h}}return h&&!1!=f.fc}k.gb=function(c,d,e,f){return this.fa.gb(c,d,e,f)};function Td(c,d){Rd.call(this);c&&(this.Ka&&this.detach(),this.sa=c,this.Ja=Ed(this.sa,"keypress",this,d),this.nb=Ed(this.sa,"keydown",this.Dc,d,this),this.Ka=Ed(this.sa,"keyup",this.Ec,d,this))}s(Td,Rd);k=Td.prototype;k.sa=null;k.Ja=null;k.nb=null;k.Ka=null;k.H=-1;k.T=-1;k.Za=!1;
var Ud={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Vd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Wd=x||B&&$a("525"),Xd=Ra&&Oa;
Td.prototype.Dc=function(c){B&&(17==this.H&&!c.ctrlKey||18==this.H&&!c.altKey||Ra&&91==this.H&&!c.metaKey)&&(this.T=this.H=-1);-1==this.H&&(c.ctrlKey&&17!=c.keyCode?this.H=17:c.altKey&&18!=c.keyCode?this.H=18:c.metaKey&&91!=c.keyCode&&(this.H=91));Wd&&!Od(c.keyCode,this.H,c.shiftKey,c.ctrlKey,c.altKey)?this.handleEvent(c):(this.T=Oa?Qd(c.keyCode):c.keyCode,Xd&&(this.Za=c.altKey))};Td.prototype.Ec=function(c){this.T=this.H=-1;this.Za=c.altKey};
Td.prototype.handleEvent=function(c){var d=c.ga,e,f,h=d.altKey;x&&"keypress"==c.type?(e=this.T,f=13!=e&&27!=e?d.keyCode:0):B&&"keypress"==c.type?(e=this.T,f=0<=d.charCode&&63232>d.charCode&&Pd(e)?d.charCode:0):Na?(e=this.T,f=Pd(e)?d.keyCode:0):(e=d.keyCode||this.T,f=d.charCode||0,Xd&&(h=this.Za),Ra&&63==f&&224==e&&(e=191));var l=e,p=d.keyIdentifier;e?63232<=e&&e in Ud?l=Ud[e]:25==e&&c.shiftKey&&(l=9):p&&p in Vd&&(l=Vd[p]);c=l==this.H;this.H=l;d=new Yd(l,f,c,d);d.altKey=h;this.dispatchEvent(d)};
Td.prototype.detach=function(){this.Ja&&(Kd(this.Ja),Kd(this.nb),Kd(this.Ka),this.Ka=this.nb=this.Ja=null);this.sa=null;this.T=this.H=-1};function Yd(c,d,e,f){f&&this.init(f,void 0);this.type="key";this.keyCode=c;this.charCode=d;this.repeat=e}s(Yd,Ad);function L(){this.backgroundImage=this.screen=null;this.fontSize=30;this.color=[0,0,0];this.vspace=70;this.sc=this.tc=this.Sc=this.Jb=0;this.fb=0.3;this.eb=null}L.prototype.init=function(){rc&&Zd.removeChild(rc);this.create();Zd.addChild(rc);$d&&Kd($d);$d=Ed(new Td(document),"key",this.ba,!1,this)};L.prototype.create=function(){this.screen=rc=new md;this.backgroundImage&&this.screen.m(this.backgroundImage)};
function Dc(c,d){var e=c.eb.F(d,yb,c.fontSize).P(c.color).j(c.sc,c.Jb);m(e)||(e=null);c.Jb+=c.vspace;return e}L.prototype.ba=function(){};function pa(c){return Math.floor(Math.random()*c)};function S(){L.call(this);this.backgroundImage="white.png";this.k=[];this.cb=[];this.za=new gd;this.Q=this.gc=this.c=this.l=null;this.e=[];E.Cb()}s(S,L);S.prototype.init=function(){S.D.init.call(this)};
S.prototype.create=function(){S.D.create.call(this);this.za.gc=this.screen;this.Q=(new yc).j(qc,0);this.screen.appendChild(this.Q);var c,d,e=0;c=this.e.length;var f=[];for(d=0;d<c;d++)f[d]="";for(c=1;c<=this.c;c++)for(d=0;2>d;d++)f[e]=c,e++;Ea(f);this.cb=f;f=new hd;1==K&&1==zc&&(f.jb=!0);this.l=new Tc;this.l.Y=this.c;this.l.p=this;f.l=this.l;d=this.e.length;var h=50*this.e[d-1].N[0];for(c=0;c<d;c++){for(var l=e=this.e[c],p=c,q=l.N[0],z=l.N[1],A={},y=void 0,F=void 0,ec=l.k.length,F=0;F<ec;F++)"right"==
l.k[F]?y=p+1:"left"==l.k[F]?y=p-1:"up"==l.k[F]?y=ae(this,q+1,z):"down"==l.k[F]&&(y=ae(this,q-1,z)),A[l.k[F]]=this.e[y];e.La=A;e.x=-2;e.y=-2;e.Ub=50*e.N[1];e.Vb=-50*e.N[0]+h;e.mc(this.screen);ad(e,this.za);e.index=c;this.cb[c]&&kd(f,e,this.cb[c]);0==c&&(Oc=e)}Oc.O.j(2,2);!0===f.jb?f.showHelp():be(this,f);this.l.create();e=this.l;e.Ha=new Qc(e)};function be(c,d){var e=pa(c.e.length),f=pa(c.e.length);e==f?be(c,d):(kd(d,c.e[e],"M"),kd(d,c.e[f],"M"))}
function ae(c,d,e){var f=c.e.length,h;for(h=0;h<f;h++)if(c.e[h].N[0]==d&&c.e[h].N[1]==e)return h;return null}S.prototype.ba=function(c){c=Kc[c.keyCode];if(!0===0<=w(Oc.k,c))this.za[c]()};function ce(){S.call(this);this.e=[new Q("yellow",["right"],[0,0]),new P("yellow",["left","right"],[0,1]),new O("yellow",["left","right"],[0,2]),new R("yellow",["left"],[0,3])];this.c=1}s(ce,S);function de(){ce.call(this);M(this.e[3],["left","up"]);this.e.push(new O("green",["up","right"],[1,1]),new P("green",["left","right"],[1,2]),new Q("green",["left","down"],[1,3]),new R("green",["down"],[2,1]))}s(de,ce);function ee(){de.call(this);M(this.e[7],["down","right"]);this.e.push(new O("red",["left","up","right"],[2,2]),new R("red",["left"],[2,3]),new P("red",["down","right"],[3,2]),new Q("red",["left"],[3,3]))}s(ee,de);function fe(){S.call(this);this.e=[new O("blue",["up"],[0,2]),new P("blue",["right","up"],[1,1]),new R("blue",["left","down"],[1,2]),new O("red",["right"],[2,0]),new R("red",["left","down","up"],[2,1]),new P("red",["down"],[3,1])];this.c=1}s(fe,S);function ge(){fe.call(this);this.c=3}s(ge,fe);function he(){S.call(this);this.e=[new O("blue",["up"],[0,2]),new P("blue",["right","up"],[1,1]),new R("blue",["left","down","right"],[1,2]),new P("green",["left","up"],[1,3]),new O("red",["right"],[2,0]),new R("red",["left","down","up"],[2,1]),new R("green",["right","down","up"],[2,3]),new O("green",["left"],[2,4]),new P("red",["down","right"],[3,1]),new R("yellow",["left","up","right"],[3,2]),new P("yellow",["left","down"],[3,3]),new O("yellow",["down"],[4,2])];this.c=1}s(he,S);function ie(){he.call(this);this.c=2}s(ie,he);function je(){he.call(this);this.c=3}s(je,he);function ke(){he.call(this);this.c=4}s(ke,he);function le(){he.call(this);this.c=5}s(le,he);function me(){he.call(this);this.c=6}s(me,he);function ne(){ee.call(this);this.c=3}s(ne,ee);function T(){ee.call(this);M(this.e[11],["left","up"]);this.e.splice(10,0,new Q("green",["up"],[2,4]));this.e.push(new P("green",["down","up"],[3,4]),new R("green",["down","right"],[4,3]),new O("green",["left","down"],[4,4]))}s(T,ee);function U(){T.call(this);M(this.e[10],["up","right"]);this.e.splice(11,0,new R("yellow",["left","up"],[2,5]));this.e.splice(15,0,new O("yellow",["up","down"],[3,5]));this.e.push(new P("yellow",["down","up"],[4,5]),new Q("yellow",["down"],[5,5]))}s(U,T);function oe(){U.call(this);this.c=10}s(oe,U);function pe(){S.call(this);this.e=[new P("blue",["up"],[0,3]),new Q("red",["up"],[1,1]),new R("blue",["right","down","up"],[1,3]),new Q("blue",["left"],[1,4]),new P("red",["right"],[2,0]),new R("red",["right","down","left"],[2,1]),new O("red",["right","left"],[2,2]),new O("blue",["down","left"],[2,3])];this.c=1}s(pe,S);function qe(){pe.call(this);M(this.e[6],["up","right","left"]);this.e.push(new O("yellow",["up","down"],[3,2]),new Q("yellow",["right"],[4,1]),new R("yellow",["left","down","up"],[4,2]),new P("yellow",["down"],[5,2]))}s(qe,pe);function re(){qe.call(this);this.c=2}s(re,qe);function se(){qe.call(this);this.c=3}s(se,qe);function te(){S.call(this);this.e=[new P("blue",["up"],[0,0]),new R("blue",["right","down","up"],[1,0]),new Q("blue",["left"],[1,1]),new O("blue",["down"],[2,0])];this.c=1}s(te,S);function ue(){te.call(this);this.c=2}s(ue,te);function ve(){pe.call(this);this.c=4}s(ve,pe);function we(){pe.call(this);this.c=2}s(we,pe);function xe(){pe.call(this);this.c=3}s(xe,pe);function ye(){S.call(this);this.e=[new P("red",["up","right"],[0,0]),new O("blue",["left","right"],[0,1]),new R("blue",["right","left","up"],[0,2]),new P("blue",["left"],[0,3]),new R("red",["right","down","up"],[1,0]),new Q("red",["left"],[1,1]),new Q("blue",["down"],[1,2]),new O("red",["down"],[2,0])];this.c=1}s(ye,S);function ze(){ye.call(this);M(this.e[this.e.length-1],["down","right"]);this.e.push(new O("yellow",["up","left"],[2,1]),new Q("yellow",["right"],[3,0]),new R("yellow",["left","down","up"],[3,1]),new P("yellow",["down"],[4,1]))}s(ze,ye);function V(){ze.call(this);for(var c=0;c<this.e.length;c++)this.e[c].N[1]+=2;M(this.e[this.e.length-1],["down","left"]);this.e.splice(9,0,new Q("green",["up"],[3,1]));this.e.splice(12,0,new P("green",["right"],[4,0]));this.e.splice(13,0,new R("green",["left","down","right"],[4,1]));this.e.splice(14,0,new O("green",["left","right"],[4,2]))}s(V,ze);function Ae(){V.call(this);this.c=8}s(Ae,V);function Be(){S.call(this);this.e=[new P("blue",["right"],[0,0]),new R("blue",["left"],[0,1])];this.c=1}s(Be,S);function Ce(){Be.call(this);M(this.e[0],["right","up"]);this.e.push(new R("red",["up","down"],[1,0]),new P("red",["down"],[2,0]));this.c=1}s(Ce,Be);function De(){Ce.call(this);this.c=2}s(De,Ce);function Ee(){Ce.call(this);M(this.e[this.e.length-1],["down","right"]);this.e.push(new R("yellow",["left","right"],[2,1]),new P("yellow",["left"],[2,2]))}s(Ee,Ce);function Fe(){Ee.call(this);this.c=3}s(Fe,Ee);function Ge(){S.call(this);this.e=[new P("blue",["right","up"],[0,0]),new R("blue",["left","right"],[0,1]),new P("green",["left","up"],[0,2]),new R("red",["down","up"],[1,0]),new R("green",["down","up"],[1,2]),new P("red",["down","right"],[2,0]),new R("yellow",["left","right"],[2,1]),new P("yellow",["down","left"],[2,2])];this.c=1}s(Ge,S);function He(){Ee.call(this);this.c=2}s(He,Ee);function Ie(){qe.call(this);this.c=4}s(Ie,qe);function Je(){qe.call(this);this.c=5}s(Je,qe);function Ke(){Ge.call(this);this.c=2}s(Ke,Ge);function Le(){Ge.call(this);this.c=3}s(Le,Ge);function W(){pe.call(this);M(this.e[6],["up","right","left"]);M(this.e[7],["up","down","left"]);this.e.push(new O("yellow",["up","down","right"],[3,2]),new O("green",["left","down","right"],[3,3]),new R("green",["left","right","up"],[3,4]),new P("green",["left"],[3,5]),new Q("yellow",["right"],[4,1]),new R("yellow",["left","down","up"],[4,2]),new Q("green",["down"],[4,4]),new P("yellow",["down"],[5,2]))}s(W,pe);function Me(){W.call(this);this.c=2}s(Me,W);function Ne(){W.call(this);this.c=3}s(Ne,W);function Oe(){W.call(this);this.c=4}s(Oe,W);function Pe(){W.call(this);this.c=5}s(Pe,W);function Qe(){S.call(this);this.e=[new P("red",["up"],[0,0]),new Q("red",["up"],[0,1]),new R("red",["down","right"],[1,0]),new O("red",["left","down"],[1,1])];this.c=1}s(Qe,S);function Re(){Qe.call(this);M(this.e[3],["left","down","right"]);this.e.push(new R("blue",["left","up","right"],[1,2]),new P("blue",["left"],[1,3]),new O("blue",["down","right"],[2,2]),new Q("blue",["left"],[2,3]))}s(Re,Qe);function Se(){Re.call(this);this.c=4}s(Se,Re);function Te(){Re.call(this);M(this.e[7],["left","right"]);this.e.push(new O("green",["left","right","up"],[2,4]),new R("green",["left","up"],[2,5]),new Q("green",["down"],[3,4]),new P("green",["down"],[3,5]))}s(Te,Re);function Ue(){Re.call(this);this.c=2}s(Ue,Re);function Ve(){Re.call(this);this.c=3}s(Ve,Re);function We(){Qe.call(this);this.c=2}s(We,Qe);function Xe(){S.call(this);this.e=[new R("blue",["up"],[0,0]),new O("blue",["down"],[1,0])];this.c=1}s(Xe,S);function Ye(){Xe.call(this);this.e=[new R("blue",["up"],[0,2]),new R("red",["right"],[1,0]),new O("red",["right","left"],[1,1]),new O("blue",["down","left"],[1,2])];this.c=1}s(Ye,Xe);function Ze(){Ye.call(this);M(this.e[2],["up","right","left"]);this.e.push(new O("yellow",["up","down"],[2,1]),new R("yellow",["down"],[3,1]));this.c=1}s(Ze,Ye);function $e(){Ze.call(this);M(this.e[3],["down","left","up"]);M(this.e[4],["up","down","right"]);var c=this.e.pop();this.e.push(new O("green",["right","down","left"],[2,2]),new R("green",["left"],[2,3]),c);this.c=1}s($e,Ze);function af(){$e.call(this);this.c=2}s(af,$e);function bf(){$e.call(this);this.c=3}s(bf,$e);function cf(){Ze.call(this);this.c=3}s(cf,Ze);function df(){Ze.call(this);this.c=2}s(df,Ze);function ef(){Ye.call(this);this.c=2}s(ef,Ye);function ff(){Te.call(this);this.c=2}s(ff,Te);function gf(){U.call(this);this.c=2}s(gf,U);function hf(){S.call(this);this.e=[new Q("yellow",["right"],[0,0]),new P("yellow",["left","right"],[0,1]),new R("yellow",["left","right"],[0,2]),new O("yellow",["left"],[0,3])];this.c=1}s(hf,S);function jf(){hf.call(this);this.c=2}s(jf,hf);function kf(){hf.call(this);M(this.e[3],["left","up"]);this.e.push(new O("green",["right"],[1,1]),new R("green",["left","right"],[1,2]),new P("green",["left","down","right"],[1,3]),new Q("green",["left"],[1,4]))}s(kf,hf);function lf(){$e.call(this);this.c=4}s(lf,$e);function mf(){kf.call(this);M(this.e[4],["up","right"]);for(var c=0;c<this.e.length;c++)this.e[c].N[1]+=1;this.e.push(new Q("red",["right"],[2,0]),new P("red",["left","right"],[2,1]),new R("red",["left","down","right"],[2,2]),new O("red",["left"],[2,3]))}s(mf,kf);function nf(){kf.call(this);this.c=2}s(nf,kf);function of(){kf.call(this);this.c=3}s(of,kf);function pf(){mf.call(this);this.c=2}s(pf,mf);function qf(){mf.call(this);this.c=3}s(qf,mf);function X(){mf.call(this);M(this.e[11],["left","up"]);this.e.push(new O("blue",["right","down"],[3,3]),new R("blue",["left","right"],[3,4]),new P("blue",["left","right"],[3,5]),new Q("blue",["left"],[3,6]))}s(X,mf);function rf(){X.call(this);this.c=5}s(rf,X);function sf(){U.call(this);this.c=5}s(sf,U);function tf(){S.call(this);this.e=[new P("red",["right"],[0,0]),new R("red",["left","up"],[0,1]),new Q("red",["right"],[1,0]),new O("red",["left","down"],[1,1])];this.c=1}s(tf,S);function uf(){tf.call(this);M(this.e[3],["left","down","up"]);this.e.push(new R("blue",["right","up"],[2,0]),new O("blue",["left","down","up"],[2,1]),new P("blue",["down"],[3,0]),new Q("blue",["down"],[3,1]))}s(uf,tf);function vf(){uf.call(this);M(this.e[5],["left","down","up","right"]);this.e.splice(6,0,new O("green",["up","right","left"],[2,2]));this.e.splice(7,0,new Q("green",["left"],[2,3]));this.e.push(new R("green",["right","down"],[3,2]),new P("green",["left"],[3,3]))}s(vf,uf);function Y(){vf.call(this);this.e=[new P("red",["right"],[0,0]),new R("red",["left","up"],[0,1]),new Q("yellow",["up"],[0,2]),new P("yellow",["up"],[0,3]),new Q("red",["right"],[1,0]),new O("red",["left","down","up","right"],[1,1]),new O("yellow",["up","right","down","left"],[1,2]),new R("yellow",["left","down"],[1,3]),new R("blue",["right","up"],[2,0]),new O("blue",["left","down","up","right"],[2,1]),new O("green",["up","right","left","down"],[2,2]),new Q("green",["left"],[2,3]),new P("blue",["down"],
[3,0]),new Q("blue",["down"],[3,1]),new R("green",["right","down"],[3,2]),new P("green",["left"],[3,3])];this.c=1}s(Y,vf);function wf(){Y.call(this);this.c=2}s(wf,Y);function Z(){Te.call(this);M(this.e[10],["left","down"]);this.e.splice(10,0,new Q("yellow",["right"],[3,2]));this.e.splice(11,0,new O("yellow",["left","right","up"],[3,3]));this.e.push(new P("yellow",["right"],[4,2]),new R("yellow",["left","down"],[4,3]))}s(Z,Te);function xf(){Z.call(this);this.c=6}s(xf,Z);function yf(){Z.call(this);this.c=7}s(yf,Z);function zf(){W.call(this);this.c=8}s(zf,W);function Af(){Z.call(this);this.c=2}s(Af,Z);function Bf(){Z.call(this);this.c=3}s(Bf,Z);function Cf(){Z.call(this);this.c=4}s(Cf,Z);function Df(){Z.call(this);this.c=5}s(Df,Z);function Ef(){Te.call(this);this.c=4}s(Ef,Te);function Ff(){Te.call(this);this.c=5}s(Ff,Te);function Gf(){Te.call(this);this.c=6}s(Gf,Te);function Hf(){uf.call(this);this.c=4}s(Hf,uf);function If(){fe.call(this);M(this.e[this.e.length-1],["down","right"]);this.e.push(new R("yellow",["left","up","right"],[3,2]),new P("yellow",["left"],[3,3]),new O("yellow",["down"],[4,2]));this.c=1}s(If,fe);function Jf(){U.call(this);this.c=4}s(Jf,U);function Kf(){de.call(this);this.c=4}s(Kf,de);function Lf(){W.call(this);this.c=6}s(Lf,W);function Mf(){de.call(this);this.c=2}s(Mf,de);function Nf(){de.call(this);this.c=3}s(Nf,de);function Of(){ce.call(this);this.c=2}s(Of,ce);function Pf(){W.call(this);this.c=7}s(Pf,W);function Qf(){tf.call(this);this.c=2}s(Qf,tf);function Rf(){ee.call(this);this.c=2}s(Rf,ee);function Sf(){S.call(this);this.e=[new O("red",["right"],[0,1]),new R("red",["up","left"],[0,2]),new R("yellow",["up","right"],[1,0]),new O("yellow",["right","left"],[1,1]),new P("red",["right","down","left"],[1,2]),new O("blue",["up","left"],[1,3]),new P("yellow",["right","down"],[2,0]),new O("green",["left","up"],[2,1]),new P("blue",["up","right"],[2,2]),new R("blue",["down","left"],[2,3]),new R("green",["down","right"],[3,1]),new P("green",["left","down"],[3,2])];this.c=1}s(Sf,S);function Tf(){Sf.call(this);this.c=3}s(Tf,Sf);function Uf(){Y.call(this);this.c=8}s(Uf,Y);function Vf(){vf.call(this);this.c=2}s(Vf,vf);function Wf(){vf.call(this);this.c=3}s(Wf,vf);function Xf(){Sf.call(this);this.c=6}s(Xf,Sf);function Yf(){uf.call(this);this.c=2}s(Yf,uf);function Zf(){uf.call(this);this.c=3}s(Zf,uf);function $f(){Sf.call(this);this.c=2}s($f,Sf);function ag(){Sf.call(this);this.c=4}s(ag,Sf);function bg(){Sf.call(this);this.c=5}s(bg,Sf);function cg(){ze.call(this);this.c=4}s(cg,ze);function dg(){ze.call(this);this.c=5}s(dg,ze);function eg(){ze.call(this);this.c=6}s(eg,ze);function fg(){V.call(this);this.c=2}s(fg,V);function gg(){V.call(this);this.c=3}s(gg,V);function hg(){V.call(this);this.c=4}s(hg,V);function ig(){V.call(this);this.c=5}s(ig,V);function jg(){V.call(this);this.c=6}s(jg,V);function kg(){V.call(this);this.c=7}s(kg,V);function lg(){qe.call(this);this.c=6}s(lg,qe);function mg(){Z.call(this);this.c=8}s(mg,Z);function ng(){T.call(this);this.c=8}s(ng,T);function og(){S.call(this);this.e=[new O("red",["right"],[0,1]),new R("red",["up","left"],[0,2]),new R("yellow",["up","right"],[1,0]),new O("yellow",["right","left"],[1,1]),new P("red",["down","left"],[1,2]),new P("yellow",["down"],[2,0])];this.c=1}s(og,S);function pg(){og.call(this);M(this.e[5],["right","down"]);this.e.push(new O("green",["left","up"],[2,1]),new R("green",["down","right"],[3,1]),new P("green",["left"],[3,2]));this.c=1}s(pg,og);function qg(){pg.call(this);this.c=2}s(qg,pg);function rg(){pg.call(this);this.c=3}s(rg,pg);function sg(){If.call(this);this.c=4}s(sg,If);function tg(){og.call(this);this.c=2}s(tg,og);function ug(){S.call(this);this.e=[new O("red",["right"],[0,0]),new R("red",["up","left"],[0,1]),new P("red",["down"],[1,1])];this.c=1}s(ug,S);function vg(){fe.call(this);this.c=2}s(vg,fe);function wg(){S.call(this);this.e=[new O("blue",["up"],[0,1]),new P("blue",["right"],[1,0]),new R("blue",["left","down"],[1,1])];this.c=1}s(wg,S);function xg(){If.call(this);this.c=2}s(xg,If);function yg(){If.call(this);this.c=3}s(yg,If);function zg(){pg.call(this);this.c=4}s(zg,pg);function Ag(){mf.call(this);this.c=4}s(Ag,mf);function Bg(){U.call(this);this.c=7}s(Bg,U);function Cg(){mf.call(this);this.c=5}s(Cg,mf);function Dg(){U.call(this);this.c=6}s(Dg,U);function Eg(){mf.call(this);this.c=6}s(Eg,mf);function Fg(){X.call(this);this.c=2}s(Fg,X);function Gg(){X.call(this);this.c=3}s(Gg,X);function Hg(){X.call(this);this.c=4}s(Hg,X);function Ig(){X.call(this);this.c=6}s(Ig,X);function Jg(){X.call(this);this.c=7}s(Jg,X);function Kg(){T.call(this);this.c=2}s(Kg,T);function Lg(){T.call(this);this.c=3}s(Lg,T);function Mg(){T.call(this);this.c=4}s(Mg,T);function Ng(){T.call(this);this.c=5}s(Ng,T);function Og(){ee.call(this);this.c=4}s(Og,ee);function Pg(){ee.call(this);this.c=5}s(Pg,ee);function Qg(){ee.call(this);this.c=6}s(Qg,ee);function Rg(){T.call(this);this.c=6}s(Rg,T);function Sg(){T.call(this);this.c=7}s(Sg,T);function Tg(){Te.call(this);this.c=3}s(Tg,Te);function Ug(){kf.call(this);this.c=4}s(Ug,kf);function Vg(){Ge.call(this);this.c=4}s(Vg,Ge);function Wg(){Y.call(this);this.c=3}s(Wg,Y);function Xg(){Y.call(this);this.c=4}s(Xg,Y);function Yg(){Y.call(this);this.c=5}s(Yg,Y);function Zg(){vf.call(this);this.c=4}s(Zg,vf);function $g(){vf.call(this);this.c=5}s($g,vf);function ah(){vf.call(this);this.c=6}s(ah,vf);function bh(){X.call(this);this.c=8}s(bh,X);function ch(){Y.call(this);this.c=6}s(ch,Y);function dh(){Y.call(this);this.c=7}s(dh,Y);function eh(){S.call(this);this.e=[new O("blue",["right"],[0,0]),new R("blue",["right","left","up"],[0,1]),new P("blue",["left"],[0,2]),new Q("blue",["down"],[1,1])];this.c=1}s(eh,S);function fh(){eh.call(this);this.c=2}s(fh,eh);function gh(){U.call(this);this.c=3}s(gh,U);function hh(){ye.call(this);this.c=4}s(hh,ye);function ih(){ye.call(this);this.c=2}s(ih,ye);function jh(){ye.call(this);this.c=3}s(jh,ye);function kh(){U.call(this);this.c=9}s(kh,U);function lh(){U.call(this);this.c=8}s(lh,U);function mh(){ze.call(this);this.c=2}s(mh,ze);function nh(){ze.call(this);this.c=3}s(nh,ze);function oh(){og.call(this);this.c=3}s(oh,og);function $(){}$.prototype.Group_1_Level_1=function(){return new Be};$.prototype.Group_1_Level_10=function(){return new Vg};$.prototype.Group_1_Level_2=function(){return new Ce};$.prototype.Group_1_Level_3=function(){return new De};$.prototype.Group_1_Level_4=function(){return new Ee};$.prototype.Group_1_Level_5=function(){return new He};$.prototype.Group_1_Level_6=function(){return new Fe};$.prototype.Group_1_Level_7=function(){return new Ge};$.prototype.Group_1_Level_8=function(){return new Ke};
$.prototype.Group_1_Level_9=function(){return new Le};$.prototype.Group_2_Level_1=function(){return new Xe};$.prototype.Group_2_Level_10=function(){return new lf};$.prototype.Group_2_Level_2=function(){return new Ye};$.prototype.Group_2_Level_3=function(){return new ef};$.prototype.Group_2_Level_4=function(){return new Ze};$.prototype.Group_2_Level_5=function(){return new df};$.prototype.Group_2_Level_6=function(){return new cf};$.prototype.Group_2_Level_7=function(){return new $e};
$.prototype.Group_2_Level_8=function(){return new af};$.prototype.Group_2_Level_9=function(){return new bf};$.prototype.Group_3_Level_1=function(){return new wg};$.prototype.Group_3_Level_10=function(){return new ie};$.prototype.Group_3_Level_11=function(){return new je};$.prototype.Group_3_Level_12=function(){return new ke};$.prototype.Group_3_Level_13=function(){return new le};$.prototype.Group_3_Level_14=function(){return new me};$.prototype.Group_3_Level_2=function(){return new fe};
$.prototype.Group_3_Level_3=function(){return new vg};$.prototype.Group_3_Level_4=function(){return new ge};$.prototype.Group_3_Level_5=function(){return new If};$.prototype.Group_3_Level_6=function(){return new xg};$.prototype.Group_3_Level_7=function(){return new yg};$.prototype.Group_3_Level_8=function(){return new sg};$.prototype.Group_3_Level_9=function(){return new he};$.prototype.Group_4_Level_1=function(){return new ug};$.prototype.Group_4_Level_10=function(){return new $f};
$.prototype.Group_4_Level_11=function(){return new Tf};$.prototype.Group_4_Level_12=function(){return new ag};$.prototype.Group_4_Level_13=function(){return new bg};$.prototype.Group_4_Level_14=function(){return new Xf};$.prototype.Group_4_Level_2=function(){return new og};$.prototype.Group_4_Level_3=function(){return new tg};$.prototype.Group_4_Level_4=function(){return new oh};$.prototype.Group_4_Level_5=function(){return new pg};$.prototype.Group_4_Level_6=function(){return new qg};
$.prototype.Group_4_Level_7=function(){return new rg};$.prototype.Group_4_Level_8=function(){return new zg};$.prototype.Group_4_Level_9=function(){return new Sf};$.prototype.Group_5_Level_1=function(){return new te};$.prototype.Group_5_Level_10=function(){return new Ie};$.prototype.Group_5_Level_11=function(){return new Je};$.prototype.Group_5_Level_12=function(){return new lg};$.prototype.Group_5_Level_13=function(){return new W};$.prototype.Group_5_Level_14=function(){return new Me};
$.prototype.Group_5_Level_15=function(){return new Ne};$.prototype.Group_5_Level_16=function(){return new Oe};$.prototype.Group_5_Level_17=function(){return new Pe};$.prototype.Group_5_Level_18=function(){return new Lf};$.prototype.Group_5_Level_19=function(){return new Pf};$.prototype.Group_5_Level_2=function(){return new ue};$.prototype.Group_5_Level_20=function(){return new zf};$.prototype.Group_5_Level_3=function(){return new pe};$.prototype.Group_5_Level_4=function(){return new we};
$.prototype.Group_5_Level_5=function(){return new xe};$.prototype.Group_5_Level_6=function(){return new ve};$.prototype.Group_5_Level_7=function(){return new qe};$.prototype.Group_5_Level_8=function(){return new re};$.prototype.Group_5_Level_9=function(){return new se};$.prototype.Group_6_Level_1=function(){return new tf};$.prototype.Group_6_Level_10=function(){return new Zg};$.prototype.Group_6_Level_11=function(){return new $g};$.prototype.Group_6_Level_12=function(){return new ah};
$.prototype.Group_6_Level_13=function(){return new Y};$.prototype.Group_6_Level_14=function(){return new wf};$.prototype.Group_6_Level_15=function(){return new Wg};$.prototype.Group_6_Level_16=function(){return new Xg};$.prototype.Group_6_Level_17=function(){return new Yg};$.prototype.Group_6_Level_18=function(){return new ch};$.prototype.Group_6_Level_19=function(){return new dh};$.prototype.Group_6_Level_2=function(){return new Qf};$.prototype.Group_6_Level_20=function(){return new Uf};
$.prototype.Group_6_Level_3=function(){return new uf};$.prototype.Group_6_Level_4=function(){return new Yf};$.prototype.Group_6_Level_5=function(){return new Zf};$.prototype.Group_6_Level_6=function(){return new Hf};$.prototype.Group_6_Level_7=function(){return new vf};$.prototype.Group_6_Level_8=function(){return new Vf};$.prototype.Group_6_Level_9=function(){return new Wf};$.prototype.Group_7_Level_1=function(){return new eh};$.prototype.Group_7_Level_10=function(){return new cg};
$.prototype.Group_7_Level_11=function(){return new dg};$.prototype.Group_7_Level_12=function(){return new eg};$.prototype.Group_7_Level_13=function(){return new V};$.prototype.Group_7_Level_14=function(){return new fg};$.prototype.Group_7_Level_15=function(){return new gg};$.prototype.Group_7_Level_16=function(){return new hg};$.prototype.Group_7_Level_17=function(){return new ig};$.prototype.Group_7_Level_18=function(){return new jg};$.prototype.Group_7_Level_19=function(){return new kg};
$.prototype.Group_7_Level_2=function(){return new fh};$.prototype.Group_7_Level_20=function(){return new Ae};$.prototype.Group_7_Level_3=function(){return new ye};$.prototype.Group_7_Level_4=function(){return new ih};$.prototype.Group_7_Level_5=function(){return new jh};$.prototype.Group_7_Level_6=function(){return new hh};$.prototype.Group_7_Level_7=function(){return new ze};$.prototype.Group_7_Level_8=function(){return new mh};$.prototype.Group_7_Level_9=function(){return new nh};
$.prototype.Group_8_Level_1=function(){return new Qe};$.prototype.Group_8_Level_10=function(){return new Ef};$.prototype.Group_8_Level_11=function(){return new Ff};$.prototype.Group_8_Level_12=function(){return new Gf};$.prototype.Group_8_Level_13=function(){return new Z};$.prototype.Group_8_Level_14=function(){return new Af};$.prototype.Group_8_Level_15=function(){return new Bf};$.prototype.Group_8_Level_16=function(){return new Cf};$.prototype.Group_8_Level_17=function(){return new Df};
$.prototype.Group_8_Level_18=function(){return new xf};$.prototype.Group_8_Level_19=function(){return new yf};$.prototype.Group_8_Level_2=function(){return new We};$.prototype.Group_8_Level_20=function(){return new mg};$.prototype.Group_8_Level_3=function(){return new Re};$.prototype.Group_8_Level_4=function(){return new Ue};$.prototype.Group_8_Level_5=function(){return new Ve};$.prototype.Group_8_Level_6=function(){return new Se};$.prototype.Group_8_Level_7=function(){return new Te};
$.prototype.Group_8_Level_8=function(){return new ff};$.prototype.Group_8_Level_9=function(){return new Tg};$.prototype.Group_9_Level_1=function(){return new hf};$.prototype.Group_9_Level_10=function(){return new Ag};$.prototype.Group_9_Level_11=function(){return new Cg};$.prototype.Group_9_Level_12=function(){return new Eg};$.prototype.Group_9_Level_13=function(){return new X};$.prototype.Group_9_Level_14=function(){return new Fg};$.prototype.Group_9_Level_15=function(){return new Gg};
$.prototype.Group_9_Level_16=function(){return new Hg};$.prototype.Group_9_Level_17=function(){return new rf};$.prototype.Group_9_Level_18=function(){return new Ig};$.prototype.Group_9_Level_19=function(){return new Jg};$.prototype.Group_9_Level_2=function(){return new jf};$.prototype.Group_9_Level_20=function(){return new bh};$.prototype.Group_9_Level_3=function(){return new kf};$.prototype.Group_9_Level_4=function(){return new nf};$.prototype.Group_9_Level_5=function(){return new of};
$.prototype.Group_9_Level_6=function(){return new Ug};$.prototype.Group_9_Level_7=function(){return new mf};$.prototype.Group_9_Level_8=function(){return new pf};$.prototype.Group_9_Level_9=function(){return new qf};$.prototype.Group_10_Level_1=function(){return new ce};$.prototype.Group_10_Level_10=function(){return new Og};$.prototype.Group_10_Level_11=function(){return new Pg};$.prototype.Group_10_Level_12=function(){return new Qg};$.prototype.Group_10_Level_13=function(){return new T};
$.prototype.Group_10_Level_14=function(){return new Kg};$.prototype.Group_10_Level_15=function(){return new Lg};$.prototype.Group_10_Level_16=function(){return new Mg};$.prototype.Group_10_Level_17=function(){return new Ng};$.prototype.Group_10_Level_18=function(){return new Rg};$.prototype.Group_10_Level_19=function(){return new Sg};$.prototype.Group_10_Level_2=function(){return new Of};$.prototype.Group_10_Level_20=function(){return new ng};$.prototype.Group_10_Level_21=function(){return new U};
$.prototype.Group_10_Level_22=function(){return new gf};$.prototype.Group_10_Level_23=function(){return new gh};$.prototype.Group_10_Level_24=function(){return new Jf};$.prototype.Group_10_Level_25=function(){return new sf};$.prototype.Group_10_Level_26=function(){return new Dg};$.prototype.Group_10_Level_27=function(){return new Bg};$.prototype.Group_10_Level_28=function(){return new lh};$.prototype.Group_10_Level_29=function(){return new kh};$.prototype.Group_10_Level_3=function(){return new de};
$.prototype.Group_10_Level_30=function(){return new oe};$.prototype.Group_10_Level_4=function(){return new Mf};$.prototype.Group_10_Level_5=function(){return new Nf};$.prototype.Group_10_Level_6=function(){return new Kf};$.prototype.Group_10_Level_7=function(){return new ee};$.prototype.Group_10_Level_8=function(){return new Rf};$.prototype.Group_10_Level_9=function(){return new ne};function Hc(){L.call(this);this.ja=u.get(jc)[K-1][H];this.backgroundImage="start-background.jpg";this.L=null;this.init();E.Pa()}s(Hc,L);
Hc.prototype.create=function(){Hc.D.create.call(this);this.screen.m("transp-back-dark.png").size(J);this.L=new ph(null);for(var c,d,e={},f=u.get(lc),h=0;h<f.length;h++)f[h].s_group==K&&(e[f[h].s_level]=f[h]);for(var l,f=0;f<this.ja;f++)if(0==f%20&&(l=new qh(this.screen),h=this.L,d=l,d.I.j(-1E3,0),h.pages.push(d)),d=[20+f%20%7*115,80+120*parseInt(f%20/7,10)],c=f+1,m(e[c])){h=e[c];d=new C(l.I,"levelBox-blue.png",d);D(d,Fc,c);c=xb(d,c);c.style.stroke="#fff";c.style.strokeThickness=3;h=h.s_medails;c=
42;for(var p=0;p<h;p++){var q=[c,6];d.image=d.button.m("levelBoxMedal.png").j(q);c+=17}}else d=new C(l.I,"levelBox-blue_locked.png",d),xb(d,c);D(new C(this.screen,"back-arrow.png",[720,400]),this.Ta);rh(this);this.screen.appendChild(this.L.get())};Hc.prototype.Ta=function(){new sh};
function Fc(c){ea(c)?(zc=c.Vc,K=c.group):m(c)&&c&&(zc=c);var d=(new $)["Group_".concat(K,"_Level_",zc)](),e=setInterval(function(){for(var c=!0,h=0;h<d.e.length;h++)if(!1===cd[d.e[h].t].loaded){c=!1;break}c&&(clearInterval(e),d.init())},50)}function rh(c){var d=c.screen.m("levelGroup".concat(K,"_small.png")).j(45,45).o(50,50);(new TWEEN.Tween({rotation:0})).to({rotation:360},4E3).repeat(Infinity).onUpdate(function(){d.rotation=Math.PI/180*this.rotation}).start()}
Hc.prototype.ba=function(c){8==c.keyCode&&(c.preventDefault(),this.Ta())};function ph(c){this.pages=[];this.ra=c;this.ia=null;this.ma=[]}var th=null;ph.prototype.get=function(){var c,d=this,e=this.pages.length,f=0,h=J[0]/2-(50*e+20*(e-1))/2;this.ia=(new yc).j(h,430);if(1<e)for(h=0;h<e;h++)c=0==h?"pageActive":"pageInactive",c=(new vb(c+".png")).j(f,0),this.ia.appendChild(c),0==h&&(this.ia.Xa=c),c.index=h,c.mousedown=c.touchstart=function(c){c.originalEvent.stopPropagation();c.originalEvent.preventDefault();uh(d,this)},f+=70;th=this.pages[0];th.I.visible=!0;th.I.j(0,0);return this.ia};
function uh(c,d){th.I.visible=!1;th.I.j(-1E3,0);c.pages[d.index].I.visible=!0;c.pages[d.index].I.j(0,0);th=c.pages[d.index];ub(d.parent.Xa,"pageInactive.png");ub(d,"pageActive.png");d.parent.Xa=d;c.rb(d)}ph.prototype.ba=function(c,d){var e=d.ia.Xa,f=e.parent,h=[39,68];-1!=w([37,65],c.keyCode)&&0!=e.index?uh(this,f.getChildAt(e.index-1)):-1!=w(h,c.keyCode)&&e.index!=d.pages.length-1&&uh(this,f.getChildAt(e.index+1))};ph.prototype.Ca=function(c){this.ma.push(c)};
ph.prototype.rb=function(c){for(var d=0;d<this.ma.length;d++)vh=c.index};function qh(c){Jc.call(this);this.group=null;this.I=(new yc).j(0,0);this.I.visible=!1;c.appendChild(this.I);this.y=this.x=0}s(qh,Jc);function sh(){L.call(this);this.R=this.Na=this.L=this.ra=null;this.backgroundImage="start-background.jpg";this.init()}s(sh,L);var vh=null;
sh.prototype.create=function(){sh.D.create.call(this);this.screen.m("transp-back-dark.png").size(J);this.ra=new yc;this.L=new ph(this.ra);this.L.Ca(this);this.screen.appendChild(this.ra);this.Na=u.get(kc);var c,d,e,f,h="",l;c=J[0]/4;var p=[c,3*c],q,z=u.get("achievements");this.R=u.get(jc);for(var A=0;A<this.R.length;A++){c=this.R[A][G];a:{for(d=0;d<this.Na.length;d++)if(this.Na[d].og_g_id==c){e=this.Na[d];break a}e=0}f=d=null;if(e)if(1==e.og_unlocked){d=c;f=0;e=u.get(lc);for(q=0;q<e.length;q++)e[q].s_group==
d&&(f+=e[q].s_score);d=f;f=this.Oc}else h="_locked";else h="_BUY",f=this.Uc;e="levelGroup"+c+h+".png";if(0==A%2){l=new qh(this.ra);q=this.L;var y=l;y.I.j(-1E3,0);q.pages.push(y)}q=(new yc).j(p[A%2],150).size(240,240);l.I.appendChild(q);e=new C(q,e,[0,0]);z.hasOwnProperty(c)&&1==z[c].a_group_mastered&&(y=q.F("MASTERED",yb,30).j(0,0).o(50,50),y.rotation=Math.PI/180*-45,y.setStyle({font:"30px "+yb,fill:"rgb(237, 28, 36)",stroke:"#fff",strokeThickness:5}));e.Sa([50,50]);D(e,f,c);q.F(this.R[A][I]+" rooms, "+
this.R[A][H]+" levels",yb,30).j(0,135).o(50,50).P([255,255,255]);d&&q.F("Total score: "+d,yb,30).j(0,175).o(50,50).P([255,255,255])}D(new C(this.screen,"back-arrow.png",[720,400]),this.ca);this.screen.appendChild(this.L.get());null!=vh&&(h=this.L.ia.getChildAt(vh),uh(this.L,h))};sh.prototype.Oc=function(c){K=c;new Hc};sh.prototype.ca=function(){new Ic};sh.prototype.ba=function(c){this.L.ba(c,this.L);8==c.keyCode&&(c.preventDefault(),this.ca())};function wh(){L.call(this);this.wb=200;this.backgroundImage="help-background.jpg";this.color=[255,255,255];this.fontSize=25;this.init();var c;xh(this,this.screen,"Game design: Bosko and Nadja Milakovic");xh(this,this.screen,"Programmer: Bosko Milakovic");xh(this,this.screen,"Graphic artist: Nikola Kolya Bozovic");xh(this,this.screen,"Music: Bosko Milakovic");c="Me Mnemonic version "+oc;xh(this,this.screen,c);xh(this,this.screen,"Copyright 2012 Bosko Milakovic");D(new C(this.screen,"back-arrow.png",
[720,400]),this.ca)}s(wh,L);function xh(c,d,e){d.F(e,yb,c.fontSize).P(c.color).j(J[0]/2,c.wb).o(50,50);c.wb+=35}wh.prototype.ca=function(){new Ic};wh.prototype.ba=function(c){8==c.keyCode&&(c.preventDefault(),this.ca())};function Ic(){L.call(this);this.backgroundImage="start-background.jpg";E.Pa();this.init()}s(Ic,L);k=Ic.prototype;k.create=function(){Ic.D.create.call(this);var c=new C(this.screen,"go.png",[J[0]/2,J[1]/2]);c.Sa([50,50]);D(c,this.Ta);D(new C(this.screen,"credits.png",[30,410]),this.Nc);c=new zb(this.screen,"music.png",[80,410]);Bb(c,this.Mc,this.Lc);0==u.get(qa)[ra]&&Cb(c,Db);kb||(this.yc=new C(this.screen,"en_generic_rgb_wo_45.png",[J[0]-133,3]),D(this.yc,this.Pc,null,this))};k.Ta=function(){new sh};
k.Lc=function(){var c=u.get(qa);c[ra]=0;u.put(qa,c);E.Cb()};k.Mc=function(){var c=u.get(qa);c[ra]=1;u.put(qa,c);E.Pa()};k.Nc=function(){new wh};k.Pc=function(){var c=new PIXI.Graphics;c.beginFill("#000",0.7);c.drawRect(0,0,J[0],J[1]);c.endFill();c.interactive=!0;this.screen.addChild(c);var d=(new sb("qr-mm.png")).o(50,50).j(J[0]/2,J[1]/2);c.addChild(d);c.click=c.tap=function(d){d.originalEvent.stopPropagation();d.originalEvent.preventDefault();c.parent.removeChild(c)}};function yh(c){Rd.call(this);this.Wa=c||window;Ed(this.Wa,"resize",this.Fc,!1,this);this.pa=eb(this.Wa||window)}s(yh,Rd);yh.prototype.Wa=null;yh.prototype.pa=null;yh.prototype.Fc=function(){var c=eb(this.Wa||window);c==this.pa||c&&this.pa&&c.width==this.pa.width&&c.height==this.pa.height||(this.pa=c,this.dispatchEvent("resize"))};var rc=null,yb="Comic Sans MS",J=[854,480],zh=null,jb=null,Pc=[32,32],na="default",E=null,Zd=null,$d=null,u=null,oc="1.2.1",Ah=!1,oa=!1,wb=null,ta=B&&Pa&&/(ipod|iphone|ipad)/i.test(Ka()),kb=null,mb=12;function Bh(){function c(){requestAnimFrame(c);TWEEN.update();l.render(h)}function d(){var c=Math.min(window.innerWidth/zh[0],window.innerHeight/zh[1]);Zd.scale.x=Zd.scale.y=c;var d=c/1*zh[1];Zd.position.x=(window.innerWidth-c/1*zh[0])/2;Zd.position.y=(window.innerHeight-d)/2}var e=document.getElementById("mmh5-fxos");zh=(kb=!!e)?[480,270]:J;jb=zh[0]/J[0]*100;wb=!!document.getElementById("mmh5-mobile")||kb;u=new nc;la=function(c){return"res/".concat(c)};var f=new PIXI.AssetLoader(hb);f.onComplete=
function(){Ah=!0};f.load();var h=new PIXI.Stage(0,!0),l=PIXI.autoDetectRenderer(zh[0],zh[1]),f=l.view;e?e.appendChild(f):fb(f);Zd=new PIXI.DisplayObjectContainer;h.addChild(Zd);requestAnimFrame(c);document.getElementById("mmh5-web")?(f=new yh,Ed(f,"resize",function(){var c;c=document.body;var e;b:{e=9==c.nodeType?c:c.ownerDocument||c.document;if(e.defaultView&&e.defaultView.getComputedStyle&&(e=e.defaultView.getComputedStyle(c,null))){e=e.display||e.getPropertyValue("display")||"";break b}e=""}if("none"!=
(e||(c.currentStyle?c.currentStyle.display:null)||c.style&&c.style.display))c=gb(c);else{e=c.style;var f=e.display,h=e.visibility,l=e.position;e.visibility="hidden";e.position="absolute";e.display="inline";c=gb(c);e.display=f;e.position=l;e.visibility=h}c.width<=J[0]||c.height<=J[1]?d():(Zd.scale.x=Zd.scale.y=1,Zd.position.x=Zd.position.y=0)})):document.getElementById("mmh5-mobile")?(f=function(){var c=document.documentElement.style;c.minHeight="9001px";window.scrollTo(-1,0);window.setTimeout(function(){c.minHeight=
"";l.resize(window.innerWidth,window.innerHeight);d()},500)},f(),Ed(aa,"orientationchange",f)):e&&(f.Wc=!0,l.resize(window.innerWidth,window.innerHeight),d());E=e?new ma:new sa;var p=(new sb("levelGroup".concat(pa(10)+1,"_small.png"))).j(J[0]/2,J[1]/2).o(50,50),q=(new TWEEN.Tween({rotation:0})).to({rotation:360},4E3).easing(TWEEN.Easing.Quadratic.InOut).repeat(Infinity).onUpdate(function(){p.rotation=Math.PI/180*this.rotation}).start();Zd.addChild(p);var z=setInterval(function(){console.log("loading");
!0!==Ah||!ta&&!0!==oa||(console.log("loaded"),clearInterval(z),q.stop(),Zd.removeChild(p),new Ic)},50)}var Ch=["mmh5","start"],Dh=aa;Ch[0]in Dh||!Dh.execScript||Dh.execScript("var "+Ch[0]);for(var Eh;Ch.length&&(Eh=Ch.shift());)Ch.length||void 0===Bh?Dh=Dh[Eh]?Dh[Eh]:Dh[Eh]={}:Dh[Eh]=Bh;
