game.min.js 510 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034
  1. function b(a){throw a;}var k=void 0,p=!0,q=null,r=!1;function aa(){return function(a){return a}}function t(){return function(){}}function u(a){return function(c){this[a]=c}}function A(a){return function(){return this[a]}}function B(a){return function(){return a}}var E=E||{};E.H=E.H||{};E.f={};G=window;G=Object.prototype;delete window._p;E.Sb=function(a){return document.createElement(a)};E.Ha=function(a,c,d,e){a.addEventListener(c,d,e)};E.xK="undefined"!==typeof require&&require("fs");
  2. E.VM=function(a,c){if(a)if(a instanceof Array)for(var d=0,e=a.length;d<e&&c.call(k,a[d],d)!==r;d++);else for(d in a)if(c.call(k,a[d],d)===r)break};E.dF=function(a){if(!a)return E.log("invalid URL"),r;var c=a.indexOf("://");if(-1==c)return r;c=a.indexOf("/",c+3);return(-1==c?a:a.substring(0,c))!=location.origin};
  3. E.async={fJ:function(a){var c=this.BM;if(!c.tE){var d=c.length,e=c.$O,f=c.zO,g=f.Wd,h=f.vM,m=f.qG,f=f.xla;if(a){if(c.tE=a,g)return g.call(h,a)}else{var n=Array.apply(q,arguments).slice(1),s=n.length;0==s?n=q:1==s&&(n=n[0]);e[this.index]=n;c.count--;m&&m.call(f,n,d-c.count,d);0==c.count&&g&&g.apply(h,[q,e])}}},TJ:t(),Uha:function(a,c,d){var e=E.async;d!==k?("function"==typeof c&&(c={qG:c}),c.Wd=d||c.Wd):c!==k?"function"==typeof c&&(c={Wd:c}):a!==k?c={}:b("arguments error!");var f=(d=a instanceof Array)?
  4. a.length:Object.keys(a).length;if(0==f)c.Wd&&c.Wd.call(c.vM,q);else{var g={length:f,count:f,zO:c,$O:d?[]:{}};E.VM(a,function(a,d){if(g.tE)return r;var f=!c.Wd&&!c.qG?e.TJ:e.fJ.bind({BM:g,index:d});a(f,d)})}},map:function(a,c,d){var e=this,f=arguments.length;"function"==typeof c&&(c={iF:c});3===f?c.Wd=d||c.Wd:2>f&&b("arguments error!");"function"==typeof c&&(c={iF:c});d!==k?c.Wd=d||c.Wd:a===k&&b("arguments error!");var g=(f=a instanceof Array)?a.length:Object.keys(a).length;if(0===g)c.Wd&&c.Wd.call(c.vM,
  5. q);else{var h={length:g,count:g,zO:c,$O:f?[]:{}};E.VM(a,function(a,d){if(h.tE)return r;var f=!c.Wd?e.TJ:e.fJ.bind({BM:h,index:d});c.iF.call(c.o2,a,d,f)})}}};
  6. E.path={join:function(){for(var a=arguments.length,c="",d=0;d<a;d++)c=(c+(""==c?"":"/")+arguments[d]).replace(/(\/|\\\\)$/,"");return c},$k:function(a){return(a=/(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a))?a[1]:q},bha:function(a){if(a){var c=a.lastIndexOf(".");if(-1!==c)return a.substring(0,c)}return a},PZ:function(a,c){var d=a.indexOf("?");0<d&&(a=a.substring(0,d));d=/(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/,""));if(!d)return q;d=d[2];return c&&a.substring(a.length-c.length).toLowerCase()==
  7. c.toLowerCase()?d.substring(0,d.length-c.length):d},dirname:function(a){return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/,"$2")},wM:function(a,c){c=c||"";var d=a.indexOf("?"),e="";0<d&&(e=a.substring(d),a=a.substring(0,d));d=a.lastIndexOf(".");return 0>d?a+c+e:a.substring(0,d)+c+e},Qo:function(a,c,d){if(0==c.indexOf("."))return this.wM(a,c);var e=a.indexOf("?"),f="";d=d?this.$k(a):"";0<e&&(f=a.substring(e),a=a.substring(0,e));e=a.lastIndexOf("/");return a.substring(0,0>=e?0:e+1)+c+d+f}};
  8. E.V={DK:{},Nv:{},gX:{},Il:{},Zx:"",KZ:"",Nf:{},ax:function(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP")},gK:function(a){var c=a[0],d=a[1],e=a[2],f=["",q,q];1===a.length?f[1]=c instanceof Array?c:[c]:2===a.length?"function"==typeof d?(f[1]=c instanceof Array?c:[c],f[2]=d):(f[0]=c||"",f[1]=d instanceof Array?d:[d]):3===a.length?(f[0]=c||"",f[1]=d instanceof Array?d:[d],f[2]=e):b("arguments error to load js!");return f},Z2:function(a,c,d){var e=this,f=
  9. e.DK,g=e.gK(arguments);-1<navigator.userAgent.indexOf("Trident/5")?e.JK(g[0],g[1],0,g[2]):E.async.map(g[1],function(a,c,d){a=E.path.join(g[0],a);if(f[a])return d(q);e.gJ(a,r,d)},g[2])},uO:function(a,c,d){var e=this.lX(),f=this.gK(arguments);this.Z2(f[0],f[1],function(a){a&&b(a);e.parentNode.removeChild(e);if(f[2])f[2]()})},gJ:function(a,c,d){var e=document,f=E.Sb("script");f.async=c;f.src=a;this.DK[a]=p;E.Ha(f,"load",function(){this.removeEventListener("load",arguments.callee,r);d()},r);E.Ha(f,"error",
  10. function(){d("Load "+a+" failed!")},r);e.body.appendChild(f)},JK:function(a,c,d,e){if(d>=c.length)e&&e();else{var f=this;f.gJ(E.path.join(a,c[d]),r,function(g){if(g)return e(g);f.JK(a,c,d+1,e)})}},lX:function(){var a=document,c=a.getElementById("cocos2d_loadJsImg");if(!c){c=E.Sb("img");E.nX&&(c.src=E.nX);a=a.getElementById(E.tb.oe.id);a.style.backgroundColor="black";a.parentNode.appendChild(c);var d=getComputedStyle?getComputedStyle(a):a.currentStyle;d||(d={width:a.width,height:a.height});c.style.left=
  11. a.offsetLeft+(parseFloat(d.width)-c.width)/2+"px";c.style.top=a.offsetTop+(parseFloat(d.height)-c.height)/2+"px";c.style.position="absolute"}return c},Fx:function(a,c){if(E.xK)require("fs").iia(a,function(a,d){a?c(a):c(q,d.toString())});else{var d=this.ax(),e="load "+a+" failed!";d.open("GET",a,p);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?(d.setRequestHeader("Accept-Charset","utf-8"),d.onreadystatechange=function(){4==d.readyState&&200==d.status?c(q,d.responseText):c(e)}):
  12. (d.overrideMimeType&&d.overrideMimeType("text/plain; charset\x3dutf-8"),d.onload=function(){4==d.readyState&&200==d.status?c(q,d.responseText):c(e)});d.send(q)}},KK:function(a){if(E.xK)return require("fs").jia(a).toString();var c=this.ax();c.open("GET",a,r);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?c.setRequestHeader("Accept-Charset","utf-8"):c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dutf-8");c.send(q);return 4==!c.readyState||200!=c.status?q:c.responseText},
  13. vO:function(a,c){this.Fx(a,function(d,e){try{d?c(d):c(q,JSON.parse(e))}catch(f){b("load json ["+a+"] failed : "+f)}})},bJ:function(a){return/(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)!=q},Es:function(a,c,d){var e=p;d!==k?e=c.dF==q?e:c.dF:c!==k&&(d=c);var f=new Image;e&&"file://"!=location.origin&&(f.crossOrigin="Anonymous");E.Ha(f,"load",function(){this.removeEventListener("load",arguments.callee,r);this.removeEventListener("error",arguments.callee,r);d&&d(q,f)});E.Ha(f,"error",function(){this.removeEventListener("error",
  14. arguments.callee,r);d&&d("load image failed")});f.src=a;return f},mX:function(a,c,d){var e=this,f=q;(c=a.type)?(c="."+c.toLowerCase(),f=a.src?a.src:a.name+c):(f=a,c=E.path.$k(f));var g=e.Nf[f];if(g)return d(q,g);g=e.Nv[c.toLowerCase()];if(!g)return E.error("loader for ["+c+"] not exists!"),d();c=e.w1(g.Rw?g.Rw():e.Zx,f);g.load(c,f,a,function(a,c){a?(E.log(a),e.Nf[f]=q,delete e.Nf[f],d()):(e.Nf[f]=c,d(q,c))})},w1:function(a,c){var d=this.gX,e=E.path;if(a!==k&&c===k){c=a;var f=e.$k(c),f=f?f.toLowerCase():
  15. "";a=(f=this.Nv[f])?f.Rw?f.Rw():this.Zx:this.Zx}c=E.path.join(a||"",c);if(c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)){if(d[c])return d[c];e=e.$k(c)||"";c=d[c]=c.substring(0,c.length-e.length)+"_"+E.fb.language+e}return c},load:function(a,c,d){d!==k?"function"==typeof c&&(c={qG:c}):c!==k?"function"==typeof c&&(d=c,c={}):a!==k?c={}:b("arguments error!");c.Wd=function(a,c){a&&E.log(a);d&&d(c)};a instanceof Array||(a=[a]);c.iF=this.mX;c.o2=this;E.async.map(a,c)},oK:function(a,c){var d=this.Il,e=[],f;for(f in a){var g=
  16. a[f];d[f]=g;e.push(g)}this.load(e,c)},Yga:function(a,c){var d=this,e=d.Ed(a);e?d.oK(e.filenames,c):d.load(a,function(a){d.oK(a[0].filenames,c)})},Oj:function(a,c){if(a&&c){if("string"==typeof a)return this.Nv[a.trim().toLowerCase()]=c;for(var d=0,e=a.length;d<e;d++)this.Nv["."+a[d].trim().toLowerCase()]=c}},Ed:function(a){return this.Nf[a]||this.Nf[this.Il[a]]},Ni:function(a){var c=this.Nf,d=this.Il;delete c[a];delete c[d[a]];delete d[a]},tia:function(){var a=this.Nf,c=this.Il,d;for(d in a)delete a[d];
  17. for(d in c)delete c[d]}};
  18. (function(){function a(){E.qa&&E.tb.uk&&E.qa.dispatchEvent(E.tb.uk);E.tb.or&&(window.cancelAnimationFrame(E.tb.or),E.tb.Sv())}function c(){E.qa&&E.tb.tk&&E.qa.dispatchEvent(E.tb.tk)}var d=window,e,f;"undefined"!==typeof document.hidden?(e="hidden",f="visibilitychange"):"undefined"!==typeof document.eha?(e="mozHidden",f="mozvisibilitychange"):"undefined"!==typeof document.fha?(e="msHidden",f="msvisibilitychange"):"undefined"!==typeof document.Kla&&(e="webkitHidden",f="webkitvisibilitychange");e?E.Ha(document,
  19. f,function(){document[e]?c():a()},r):(E.Ha(d,"blur",c,r),E.Ha(d,"focus",a,r));-1<navigator.userAgent.indexOf("MicroMessenger")&&(d.onfocus=function(){a()});"onpageshow"in window&&"onpagehide"in window&&(E.Ha(d,"pagehide",c,r),E.Ha(d,"pageshow",a,r));f=d=q})();E.log=E.warn=E.error=E.assert=t();E.FM=function(a,c){for(var d=["webgl","experimental-webgl","webkit-3d","moz-webgl"],e=q,f=0;f<d.length;++f){try{e=a.getContext(d[f],c)}catch(g){}if(e)break}return e};
  20. E.VW=function(a,c){E.Ba=0;E.W=1;E.fb={};var d=E.fb;d.SR="en";d.Z7="zh";d.a8="fr";d.d8="it";d.b8="de";d.k8="es";d.j8="ru";d.f8="ko";d.e8="ja";d.c8="hu";d.i8="pt";d.Y7="ar";d.g8="no";d.h8="pl";d.zS="Windows";d.nH="iOS";d.oH="OS X";d.xS="UNIX";d.wS="Linux";d.vS="Android";d.yS="Unknown";d.t9=0;d.l8=1;d.m8=2;d.S6=3;d.W7=4;d.V7=5;d.b7=6;d.q8=7;d.G7=8;d.Y8=9;d.u9=10;d.v9=11;d.$R=100;d.WQ=101;d.CQ="wechat";d.zQ="androidbrowser";d.Dy="ie";d.AQ="qqbrowser";d.LG="mqqbrowser";d.MG="ucbrowser";d.e7="360browser";
  21. d.f7="baiduboxapp";d.KG="baidubrowser";d.g7="maxthon";d.Ey="opera";d.h7="miuibrowser";d.Np="firefox";d.Fy="safari";d.Cy="chrome";d.BQ="unknown";d.Rea=r;var e=[d.KG,d.Ey,d.Np,d.Cy,d.Fy],f=[d.KG,d.Ey,d.Np,d.Cy,d.Fy,d.MG,d.AQ,d.LG,d.Dy],g=window,h=g.navigator,m=document.documentElement,n=h.userAgent.toLowerCase();d.Kh=-1!=n.indexOf("mobile")||-1!=n.indexOf("android");d.platform=d.Kh?d.$R:d.WQ;var s=h.language,s=(s=s?s:h.browserLanguage)?s.split("-")[0]:d.SR;d.language=s;var s=d.BQ,v=n.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i)||
  22. n.match(/chrome|safari/i);v&&0<v.length&&(s=v[0].toLowerCase(),"micromessenger"==s?s=d.CQ:"safari"===s&&n.match(/android.*applewebkit/)?s=d.zQ:"trident"==s&&(s=d.Dy));d.Yk=s;d.TY=-1<f.indexOf(d.Yk);f=parseInt(a[c.Zs]);s=E.W;v=E.Sb("Canvas");E.Qr=p;e=-1==e.indexOf(d.Yk);if(1===f||0===f&&(d.Kh||e)||"file://"==location.origin)s=E.Ba;d.pV=function(){var a=document.createElement("canvas");a.width=1;a.height=1;a=a.getContext("2d");a.fillStyle="#000";a.fillRect(0,0,1,1);a.globalCompositeOperation="multiply";
  23. a.fillStyle="#fff";a.fillRect(0,0,1,1);return 0===a.getImageData(0,0,1,1).data[0]};d.hw=d.pV();if(s==E.W&&(!g.WebGLRenderingContext||!E.FM(v,{stencil:p,preserveDrawingBuffer:p})))0==f?s=E.Ba:E.Qr=r;if(s==E.Ba)try{v.getContext("2d")}catch(w){E.Qr=r}E.A=s;try{d.iw=!!new (g.AudioContext||g.webkitAudioContext||g.mozAudioContext)}catch(y){d.iw=r}try{var x=d.localStorage=g.localStorage;x.setItem("storage","");x.removeItem("storage");x=q}catch(z){("SECURITY_ERR"===z.name||"QuotaExceededError"===z.name)&&
  24. E.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),d.localStorage=t()}x=d.YD={canvas:p};E.A==E.W&&(x.opengl=p);m.ontouchstart!==k||h.msPointerEnabled?x.touches=p:m.onmouseup!==k&&(x.mouse=p);m.onkeyup!==k&&(x.keyboard=p);if(g.DeviceMotionEvent||g.DeviceOrientationEvent)x.accelerometer=p;g=n.match(/(iPad|iPhone|iPod)/i)?p:r;n=n.match(/android/i)||h.platform.match(/android/i)?p:r;m=d.yS;-1!=h.appVersion.indexOf("Win")?m=d.zS:g?m=d.nH:-1!=h.appVersion.indexOf("Mac")?
  25. m=d.oH:-1!=h.appVersion.indexOf("X11")?m=d.xS:-1!=h.appVersion.indexOf("Linux")?m=d.wS:n&&(m=d.vS);d.xF=m;d.Oba=t();d.Qaa=t();d.Oia=t();d.Oaa=function(){var a;a=""+("isMobile : "+this.Kh+"\r\n");a+="language : "+this.language+"\r\n";a+="browserType : "+this.Yk+"\r\n";a+="capabilities : "+JSON.stringify(this.YD)+"\r\n";a+="os : "+this.xF+"\r\n";a+="platform : "+this.platform+"\r\n";E.log(a)}};E.B8=0;E.C8=1;E.z8=2;E.A8=3;E.Ae=q;E.l=q;E.Wa=q;E.$V=q;E.Ov=r;E.AL=r;
  26. E.zL=function(a){var c,d;if(!E.AL){E.AL=p;var e=window,f=new Date,g=1E3/E.tb.oe[E.tb.hg.Nw];e.XO=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(a){var c=(new Date).getTime(),d=Math.max(0,g-(c-f)),e=window.setTimeout(function(){a()},d);f=c+d;return e};e.cancelAnimationFrame=window.cancelAnimationFrame||window.cancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||
  27. window.oCancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.oCancelAnimationFrame||function(a){clearTimeout(a)};var h=E.sb(a)||E.sb("#"+a),m;"CANVAS"==h.tagName?(c=c||h.width,d=d||h.height,m=E.zm=E.Sb("DIV"),a=E.Wa=h,a.parentNode.insertBefore(m,a),a.hM(m),m.setAttribute("id","Cocos2dGameContainer")):("DIV"!=h.tagName&&E.log("Warning: target element is not a DIV or CANVAS"),c=
  28. c||h.clientWidth,d=d||h.clientHeight,m=E.zm=h,a=E.Wa=E.sb(E.Sb("CANVAS")),h.appendChild(a));a.dM("gameCanvas");a.setAttribute("width",c||480);a.setAttribute("height",d||320);a.setAttribute("tabindex",99);a.style.outline="none";h=m.style;h.width=(c||480)+"px";h.height=(d||320)+"px";h.margin="0 auto";h.position="relative";h.overflow="hidden";m.top="100%";E.A==E.W&&(E.l=E.Jla=E.FM(a,{stencil:p,preserveDrawingBuffer:p,antialias:!E.fb.Kh,alpha:r}));E.l?(e.gl=E.l,E.Ae=new E.gR(E.l),E.Ov=p,E.Ea.YW(),E.Id.mr()):
  29. (E.l=a.getContext("2d"),E.pX=E.l,E.l.translate(0,a.height),E.Ae=E.WG?new E.WG(E.l):q);E.$V=m;E.log(E.Ty);E.jY();E.fb.Kh&&(c=E.Sb("style"),c.type="text/css",document.body.appendChild(c),c.textContent="body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");E.view=E.Ry.vB();E.aF.N3(E.Wa);E.B=E.Ua.vB();E.B.ZF&&E.B.ZF(E.view);E.rt=E.B.oa();E.Uia=new E.$t;E.z3=new E.LS}};E.VA=function(){E.A!==E.W&&b("This feature supports WebGL render mode only.")};
  30. E.wK=r;E.jY=function(){E.wK=r;E.Wa.oncontextmenu=function(){if(!E.wK)return r}};
  31. E.tb={PG:0,VQ:1,u7:2,UQ:3,My:4,QG:5,OG:6,vt:"game_on_hide",Sp:"game_on_show",tk:q,uk:q,d$:[],hg:{sE:"engineDir",zaa:"dependencies",ls:"debugMode",x5:"showFPS",Nw:"frameRate",id:"id",Zs:"renderMode",p2:"jsList",$Z:"classReleaseMode"},ZK:r,oC:r,ic:p,or:q,oe:q,wF:q,xha:q,Cja:function(a){this.oe[this.hg.Nw]=a;this.or&&window.cancelAnimationFrame(this.or);this.ic=p;this.Sv()},Sv:function(){var a=this,c,d=E.B;d.z4(a.oe[a.hg.x5]);c=function(){a.ic||(d.b3(),a.or=window.XO(c))};window.XO(c);a.ic=r},i4:function(a){function c(){a&&
  32. (d.oe[d.hg.id]=a);d.ZK?E.Qr&&(d.qV=setInterval(function(){d.oC&&(E.zL(d.oe[d.hg.id]),d.Sv(),d.tk=d.tk||new E.Ti(d.vt),d.tk.setUserData(d),d.uk=d.uk||new E.Ti(d.Sp),d.uk.setUserData(d),d.wF(),clearInterval(d.qV))},10)):d.D3(function(){E.Qr&&(E.zL(d.oe[d.hg.id]),d.Sv(),d.tk=d.tk||new E.Ti(d.vt),d.tk.setUserData(d),d.uk=d.uk||new E.Ti(d.Sp),d.uk.setUserData(d),d.wF())})}var d=this;document.body?c():E.Ha(window,"load",function(){this.removeEventListener("load",arguments.callee,r);c()},r)},QW:function(){function a(a){a[c.sE]=
  33. a[c.sE]||"frameworks/cocos2d-html5";a[c.ls]==q&&(a[c.ls]=0);a[c.Nw]=a[c.Nw]||60;a[c.Zs]==q&&(a[c.Zs]=1);return a}var c=this.hg;if(document.ccConfig)this.oe=a(document.ccConfig);else try{for(var d=document.getElementsByTagName("script"),e=0;e<d.length;e++){var f=d[e].getAttribute("cocos");if(""==f||f)break}var g,h,m;if(e<d.length){if(g=d[e].src)m=/(.*)\//.exec(g)[0],E.V.Zx=m,g=E.path.join(m,"project.json");h=E.V.KK(g)}h||(h=E.V.KK("project.json"));var n=JSON.parse(h);this.oe=a(n||{})}catch(s){E.log("Failed to read or parse project.json"),
  34. this.oe=a({})}E.VW(this.oe,c)},eX:{},iK:function(a,c,d){var e=this.eX;if(e[c])return q;d=d||"";var f=[],g=a[c];g||b("can not find module ["+c+"]");c=E.path;for(var h=0,m=g.length;h<m;h++){var n=g[h];if(!e[n]){var s=c.$k(n);s?".js"==s.toLowerCase()&&f.push(c.join(d,n)):(s=this.iK(a,n,d))&&(f=f.concat(s));e[n]=1}}return f},D3:function(a){var c=this,d=c.oe,e=c.hg,f=d[e.sE],g=E.V;E.Qr||b("The renderer doesn't support the renderMode "+d[e.Zs]);c.ZK=p;var h=d[e.p2]||[];E.na?g.uO("",h,function(d){d&&b(d);
  35. c.oC=p;a&&a()}):(e=E.path.join(f,"moduleConfig.json"),g.vO(e,function(e,g){e&&b(e);var s=d.modules||[],v=g.module,w=[];E.A==E.W?s.splice(0,0,"shaders"):0>s.indexOf("core")&&s.splice(0,0,"core");for(var y=0,x=s.length;y<x;y++){var z=c.iK(v,s[y],f);z&&(w=w.concat(z))}w=w.concat(h);E.V.uO(w,function(d){d&&b(d);c.oC=p;a&&a()})}))}};E.tb.QW();Function.prototype.bind=Function.prototype.bind||function(a){var c=this;return function(){var d=Array.prototype.slice.call(arguments);return c.apply(a||q,d)}};E.f={FG:"cc.ActionManager.addAction(): action must be non-null",wQ:"cocos2d: removeAction: Target not found",W6:"cc.ActionManager.removeActionByTag(): an invalid tag",X6:"cc.ActionManager.removeActionByTag(): target must be non-null",uQ:"cc.ActionManager.getActionByTag(): an invalid tag",vQ:"cocos2d : getActionByTag(tag \x3d %s): Action not found",c_:"cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",d_:"Expected 'data' dict, but not found. Config file: %s",
  36. e_:"Please load the resource first : %s",bR:"cocos2d: Director: Error in gettimeofday",cR:"cocos2d: Director: unrecognized projection",F7:"cocos2d: Director: unrecognized projection",aR:"cocos2d: Director: Error in gettimeofday",$Q:"running scene should not null",VG:"the scene should not null",Mo:"element type is wrong!",hT:"CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",iT:"cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",jT:"cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  37. fT:"cc.Scheduler.pauseTarget():target should be non-null",gT:"cc.Scheduler.resumeTarget():target should be non-null",eT:"cc.Scheduler.isTargetPaused():target should be non-null",hS:"getZOrder is deprecated. Please use getLocalZOrder instead.",sS:"setZOrder is deprecated. Please use setLocalZOrder instead.",fS:"RotationX !\x3d RotationY. Don't know which one to return",gS:"ScaleX !\x3d ScaleY. Don't know which one to return",r8:"An Node can't be added as a child of itself.",s8:"child already added. It can't be added again",
  38. cS:"child must be non-null",mS:"removeFromParentAndCleanup is deprecated. Use removeFromParent instead",dS:"boundingBox is deprecated. Use getBoundingBox instead",kS:"argument tag is an invalid tag",lS:"cocos2d: removeChildByTag(tag \x3d %s): child not found!",jS:"removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",tS:"cc.Node.stopActionBy(): argument tag an invalid tag",eS:"cc.Node.getActionByTag(): argument tag is an invalid tag",oS:"resumeSchedulerAndActions is deprecated, please use resume instead.",
  39. iS:"pauseSchedulerAndActions is deprecated, please use pause instead.",bS:"Unknown callback function",nS:"child must be non-null",pS:"cc.Node.runAction(): action must be non-null",qS:"callback function must be non-null",rS:"interval must be positive",t8:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",xQ:"cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",a7:"",GG:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",LU:"cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
  40. NU:"cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",MU:"cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",KU:"cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",oR:"Invalid parameter.",su:"Don't call this method if the event is for touch.",M_:"Invalid scene graph priority!",N_:"0 priority is forbidden for fixed priority since it's used for scene graph based priority.",R_:"Invalid listener type!",
  41. S_:"Can't set fixed priority with scene graph based listener.",O_:"Invalid parameters.",P_:"listener must be a cc.EventListener object when adding a fixed priority listener",Q_:"The listener has been registered, please don't register it again.",VR:"parameters should not be ending with null in Javascript",WR:"Invalid index in MultiplexLayer switchTo message",XR:"Invalid index in MultiplexLayer switchTo message",UR:"cc.Layer.addLayer(): layer should be non-null",hR:"Resolution not valid",iR:"should set resolutionPolicy",
  42. c2:"The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",XP:"cc.swap is being modified from original macro, please check usage",So:"WebGL error %s",yZ:"cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",zZ:"cc.AnimationCache. Invalid animation format",GZ:"cc.AnimationCache.addAnimations(): File could not be found",AZ:"cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",BZ:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  43. CZ:"cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",DZ:"cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",EZ:"cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",FZ:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  44. HZ:"cc.AnimationCache.addAnimations(): Invalid texture file name",GT:"cc.Sprite.reorderChild(): this child is not in children list",yT:"cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",JT:"cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",KT:"cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",IT:"setDisplayFrame is deprecated, please use setSpriteFrame instead.",rT:"cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  45. AT:"cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",BT:"cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",CT:" is null, please check.",zT:"cc.Sprite.initWithFile(): filename should be non-null",LT:"cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",HT:"cc.Sprite.reorderChild(): child should be non-null",sT:"cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",tT:"cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  46. uT:"cc.Sprite.addChild(): child should be non-null",NT:"cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",O8:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",ET:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",vT:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",wT:"cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  47. DT:"Sprite.initWithTexture(): Argument must be non-nil ",MT:"Invalid spriteFrameName",OT:"Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",P8:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",FT:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",xT:"cc.SpriteBatchNode.addChild(): child should be non-null",kT:"cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",mT:"cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  48. nT:"cocos2d: WARNING: Not enough memory to resize the atlas",pT:"cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",oT:"cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",lT:"cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",qT:"cc.SpriteBatchNode.addChild():child should be non-null",J5:"cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",L5:"cocos2d: WARNING: an alias with name %s already exists",
  49. I5:"cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",O5:"cocos2d: cc.SpriteFrameCahce: Frame %s not found",K5:"Please load the resource first : %s",M5:"cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",N5:"Argument must be non-nil",Jy:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",KQ:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  50. GQ:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",JQ:"Sprite.initWithTexture(): Argument must be non-nil ",HQ:"cc.Sprite.addChild(): child should be non-null",MQ:"Invalid spriteFrameName",NQ:"Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",OQ:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",LQ:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",IQ:"cc.SpriteBatchNode.addChild(): child should be non-null",
  51. iU:"cocos2d: Could not open file: %s",YH:"cc.TextureAtlas.insertQuad(): invalid totalQuads",jU:"cc.TextureAtlas.initWithTexture():texture should be non-null",tU:"cc.TextureAtlas.updateQuad(): quad should be non-null",uU:"cc.TextureAtlas.updateQuad(): Invalid index",mU:"cc.TextureAtlas.insertQuad(): Invalid index",nU:"cc.TextureAtlas.insertQuad(): Invalid index + amount",kU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",lU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",rU:"cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  52. sU:"cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",oU:"cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",pU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",qU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",a6:"TextureCache:addPVRTCImage does not support on HTML5",Y5:"TextureCache:addPVRTCImage does not support on HTML5",Z5:"addPVRImage does not support on HTML5",b6:"cocos2d: Couldn't add UIImage in TextureCache",d6:"cocos2d: '%s' id\x3d%s %s x %s",
  53. ZP:"cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",e6:"cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",c6:"cc.Texture.addUIImage(): image should be non-null",$T:"initWithETCFile does not support on HTML5",dU:"initWithPVRFile does not support on HTML5",fU:"initWithPVRTCData does not support on HTML5",WT:"cc.Texture.addImage(): path should be non-null",bU:"cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",cU:"cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  54. hU:"initWithString isn't supported on cocos2d-html5",aU:"initWithETCFile does not support on HTML5",eU:"initWithPVRFile does not support on HTML5",gU:"initWithPVRTCData does not support on HTML5",YT:"bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",VT:"cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",XT:"cc.Texture.addImage(): path should be non-null",ZT:"NSInternalInconsistencyException",cd:"Missing file: %s",LO:"cc.radiansToDegress() should be called cc.radiansToDegrees()",
  55. Gz:"Rect width exceeds maximum margin: %s",Fz:"Rect height exceeds maximum margin: %s",pR:"If program goes here, there should be event in dispatch.",qR:"_inDispatch should be 1 here."};
  56. E.uv=function(a){if(E.Wa){var c=E.oX,d=document;if(!c){var e=d.createElement("Div"),c=e.style;e.setAttribute("id","logInfoDiv");E.Wa.parentNode.appendChild(e);e.setAttribute("width","200");e.setAttribute("height",E.Wa.height);c.zIndex="99999";c.position="absolute";c.top="0";c.left="0";c=E.oX=d.createElement("textarea");d=c.style;c.setAttribute("rows","20");c.setAttribute("cols","30");c.setAttribute("disabled",p);e.appendChild(c);d.backgroundColor="transparent";d.borderBottom="1px solid #cccccc";d.borderRightWidth=
  57. "0px";d.borderLeftWidth="0px";d.borderTopWidth="0px";d.borderTopStyle="none";d.borderRightStyle="none";d.borderLeftStyle="none";d.padding="0px";d.margin=0}a="string"==typeof a?a:JSON.stringify(a);c.value=c.value+a+"\r\n";c.scrollTop=c.scrollHeight}};E.fv=function(a){if("object"===typeof a)try{return JSON.stringify(a)}catch(c){return""}else return a};
  58. console.log&&(E.log=function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,E.fv(arguments[c]));console.log(a)},E.warn=console.warn?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,E.fv(arguments[c]));console.warn(a)}:E.log,E.error=console.error?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,E.fv(arguments[c]));console.error(a)}:E.log,E.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace(/(%s)|(%d)/,E.fv(arguments[d]));
  59. b(c)}});var H=E.tb.oe[E.tb.hg.ls],ca=E.tb;console.log&&H===ca.VQ||(E.log=H==ca.My?E.uv.bind(E):t());if(!H||H==ca.PG||H==ca.UQ||H==ca.OG)E.warn=t();if(H==ca.My||H==ca.QG||!console.warn)E.warn=E.uv.bind(E);if(!H||H==ca.PG)E.error=t(),E.assert=t();else if(H==ca.My||H==ca.QG||H==ca.OG||!console.error)E.error=E.uv.bind(E),E.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace("%s",arguments[d]);E.uv(c)}};E.V.X2=function(a,c){var d=this,e=this.ax(),f="load "+a+" failed!";e.open("GET",a,p);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?(e.setRequestHeader("Accept-Charset","x-user-defined"),e.onreadystatechange=function(){if(4==e.readyState&&200==e.status){var a=E.dJ(e.responseBody);c(q,d.cw(a))}else c(f)}):(e.overrideMimeType&&e.overrideMimeType("text/plain; charset\x3dx-user-defined"),e.onload=function(){4==e.readyState&&200==e.status?c(q,d.cw(e.responseText)):c(f)});e.send(q)};
  60. E.V.cw=function(a){if(!a)return q;for(var c=new Uint8Array(a.length),d=0;d<a.length;d++)c[d]=a.charCodeAt(d)&255;return c};
  61. E.V.Zga=function(a){var c=this.ax(),d="load "+a+" failed!";c.open("GET",a,r);a=q;if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){c.setRequestHeader("Accept-Charset","x-user-defined");c.send(q);if(200!=c.status)return E.log(d),q;(c=E.dJ(c.responseBody))&&(a=this.cw(c))}else{c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dx-user-defined");c.send(q);if(200!=c.status)return E.log(d),q;a=this.cw(c.responseText)}return a};var Uint8Array=Uint8Array||Array;
  62. if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){var da=E.Sb("script");da.type="text/vbscript";da.textContent='\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
  63. document.body.appendChild(da);E.dJ=function(a){for(var c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+256*e)]=String.fromCharCode(d)+String.fromCharCode(e);d=IEBinaryToArray_ByteStr(a);a=IEBinaryToArray_ByteStr_Last(a);return d.replace(/[\s\S]/g,function(a){return c[a]})+a}};E=E||{};E.LK="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCADIAMgDASIAAhEBAxEB/8QAHAABAAICAwEAAAAAAAAAAAAAAAYHBAUBAgMI/8QAGgEBAAIDAQAAAAAAAAAAAAAAAAMEAgUGAf/aAAwDAQACEAMQAAABqkAABkymDKGpxGMfdcLOAAAAAAAAADe6K7ddNm5JyOxY2SKJwrDjHZa3RrVya2dQpDHtlAEngAAAAAD6A+f7e0lqSjmrwGP78vfA898aTvKt9xWgg6igAAAAA2PjeOsng0p27nboVJAAAFZTul93Vxh0tEcnDY4WHvmM/AAJdatQW/yt8NTZAAFd2cJ9D638t9Ty8brMdjDv5FsXIbKqZhJk2DDzFKWkNXZVa9lrAuRgd7vo3aa6a70V7c1elGur6I7KC/e9V2prp1X2hXU+EBHXa5LImhy+g1W2TyGyyRUkcc+XvlRx2wq+7PWcC5GAAAZvnh7jWZWfpBlf8GkOp5m/VQ7DWgZN4wue8vfIjp6udjOvalMqW2aV29bTjqKAABs91Xzi9o1/rYcsrB22psx7ixqhlNGaLDZwM7Bz4/bXrnQ9aUobGHcSuvFSSRxwnwCTwADcbSJq+diaCNIsguxOeAAAB3mULy6+c/jkc8oMgvxAAe3nb0cIN3ufsUhxI46ZWJe9akew730RUvOZZxVuPeMfKw6fQ8NKqZ98HzwusUov+qiKgHJf+o3GoJbGJJFjpS9vw0sqMzqMkvjOHtStrHq6wyVYml2Rh4+zxSmPoj54uM8u230Jt6rmcHI2Adi5IxYlcFhabExDA6TqujLnuB3M3VQO6Cp9pq9gZu07+RW8llkSI3YMY4LF0Un0BjQO1q5IUAAAAAAAAAAAAAD/xAAsEAACAgIBAwIFBAMBAAAAAAADBAIFAQYAEBEgFDASExUxQCEjMzQWIiU1/9oACAEBAAEFAvzwAKeYqBmWM66bs4mdSX4lShJ4y4Brj6MBgwFxeSrP4dUvhVHw2lf9Eaxhzi9CqPE6RKWLWsmjn345+KPgYIzw+3Uo4lG+tlRv3qBn1CHs7XD973FEztyX17iVeBPPs7STEmvbVDlhgAoAF7T7Y0wMGmwbr9+eia7ThIcvHWI4lY+yUsBRdvhQ4ycjJMYzLNZSjFCaSs4W1RJXlPWxUFxpYTQrFSSTPhr5flWfsXz7QGyEmSXTWQYI55bVGPyPCMsxkg1Ftbq26BTEJxnDptMez3XXWogc8c57YunvWNeKDpUigvVJxLeJQw3fHLyUszlRWXpp9Nrj/v4Vt0QHFzjYF1KOJR2NFjt9vb16w+bHm1Y/Y8FwyOdcMQA8djFEdl5qrEaIcBQT4Ochzq3MOrbPHvXeGsp9o8sLsQOVt5L5sc4ljmc9sWrPqnvMc5CIqwvcKurSUZ5VuSSavOxafqkvJpll1atDYWh3OqNiwnyOx47WFsdyPkqiw1z6C5xuvZV5CUoSddk5Hok53ruqzRFsZznOfcFZOD4K+cjwWwxzyxGmXHtRjmUga+eXPoC0IvirQj/GwyfHJknPzgOZOSxmOcRlnkBEn1gsckODWOSPXIC4Fz4c/D7WmrnX5Y1Tjl1qIZLr6p/FCqbZBzV8d6CevWMIajnvTUU65lByAhtUoIlo5KSlrmzryJGNb2pP8R4MfwvOBq0hev17nr9e4j9HezswhhuOtFb/AFXh7r/uqYF87VP4rSwAhS81fPagp7dqycrUhIL4nRCNsTSrRwTYjT/EbKQnMhqreM7Su2A8q+jV/VuzipNf5Gvcwtr8uKFp0ZbKYZ7frQ1WKwd4rCznWIir1tP/AKtrr4Woa2oFyyiSvrh2VTXDqtIn3UraqCj1+6N6wM9Ov12ODE1oyrDlGoFWgSuawFqJTHdzcv8AydhSK+hrKBa9w9ER+7vq/Fe911Fw7fGLM1be1Myhp9J/oUYXGxahj4bnbAknb4AQ2r69UyrIbMQ83NkqQV3EawthRI1AsVSsYWlMRN1iFlUGraygDk9vu5OyeytmSrtVaYcZtrZidndVZq4nTH3rh1yIliV7WwbbaQ+VqD4Fxzcq61TVTiXs3tmAudnYFpVrF44dxU6tkHbXIM2D94uSkoH0y1GKqnxF+wTrKtHYIBqNTbWWd2F0TN21ZVsYLXqZbb4af1+02A3XPyv/xAAnEQACAQIGAQMFAAAAAAAAAAABAgMAEQQQEiAhMTITMEEUIkJQUf/aAAgBAwEBPwHNUZuqaNl7HtwR625zeMh9Ir6Z6ZSpsfYwrckbcSt1vvhi9TuliVehtxL8ac7HZhvDY7hBc0+JJ6pRra1LGqi1LCqtqoi9Sroa2cMug16qf2nxI/Go5A4vWI8MlbSb0kqv1nKrBvu22PdRvoN6lOqMkZ4dLDVRmQG2WKI07BGx6FI5jNjTWvxUUnBQ5C1+aeYtxksrr0aZi3J2CRh80ZSws25Co8hTSL8L+3//xAAqEQABAwIGAQMEAwAAAAAAAAADAQIEABEFEBIgITETFCIwMjNBUVBhsf/aAAgBAgEBPwHMskQfrdahSwmWzHfHiUtYwvb2tKquW60iq1bpUeY14EK9bUuMx0W3NCK0rdbF4+DGxq4bX/rO62tlg5labx/hd+IT/SojW9rRppzcPdxtweM5SeZekzR7XdLsxlF9Rf8ArZGjOkv0NoGDDZyRb0YjY4lfbqiyildrc6i4iYovE6muVq3SoJ1OFHu7zxCF6pnt7SvRSL20LUfBnO5MtqmRXRX6V6rCVtJTI4kMNRr+alQiRl93X7yS1+ahFC8SIHpNuturTfmpcZskehahtcGW1ru754vJ8hPE3pP9puHHcPyWywVrlMrk6tsfKCNbOclHAyW1HsXlOloWvQnk7qbF1EYdvaKl8iatK6O6i4cMHuXl2RoIDLqe3mhCYJuliWTY+IF/1MShwRhdqFxuO0zvtOtQopUW5CKv8v8A/8QAQRAAAgECAwMJBAgDCAMAAAAAAQIDABEEEiETMVEQFCAiMkFCYXEjMFLBBUBigZGx0eFyc6EkM0N0kpOU8DSCo//aAAgBAQAGPwL6/lhRnPlV5HjTy31pNHerTJbge4/Vbbol7RoJCoVeVo5RdTTwvvU/j9UjTxWu3r0YsQP4DV1XLH8bV7bNKfWwrSMr5hjWa+eE7m+oBhuOvRyyqGW97HoNHILq28U8R7tx4j36qe3F1T8vdQPxUj3toEvxPcK/tE33JRMIbMdCSfdRRjwrf3kcS72NqWOIZVHuzJJv8K8aeWQ9Zj0b82mt/Aas6lTwI6RJ8KEj3WaV1QcSay4UbRviO6s8zFmoAC5NB8UM8nw9wrK2Hit/DW0gu8P9VoPILznefh8uQpMoI/KjG2o3qeI6KX3P1fcmKKTIlgdBWaRmY8SeVpG/wxp69OBvFmt0Qy6EaillXf4hwPQG3exPd30GQgqdxHLGeMfz6BSQ2Egtfz6VzoK6n90mi/r0s0W471PfXtC0R4EXrqs0nov61aACIcd5os5JY95oQzH2Lbj8J5cM3kR0RHiLyR8e8UJIWzIegUkF1O8UXwX+2fl7zm0x669g8RyQNwa3RSJO0xtSRJ2VFukSvjUMfcZIQC1r2vassyFD58iuhsw1BoP4xow86B4OOi2KcanROQph7Syf0FFcabqx0b4aBUgg945LnQVJIvY3L6e4V4zZhuNGKcASgaj5imifu7+PIH8B0YeVSOhuNGB+/oJEvi/pSx31UWVF30RfJF8A5fZNdPgbdXWw2vk1ZNI4/hHf0/YxEjjuFf4X+qrzRnL8Q1FBkJDDcRUe2UbVNMw7xy4nCSnwEp+nQfY9Vm0zd9quTc+9GSdrD7662zf1WrT4fT7JvRmwMgX4om0/D3YVd50r20iR+W+ryzyeugplw8sssvcb6fV9JpP9Rrrszep6fURmtwFWYWNaAmupGzeg5cyQyMvEKeTNHDKy8QpPQ2hifZ/Fl05L2NuPu8Xt4ZI75LZ1tffWJ2ULBS187aCsXFJ20mKn8Kxv+YNSYmCPOgciw38iAfa/OizRLYC/bFJ5M1NgJ40SRdWv4vtXqRMPJtIgeq3GpYcTgWsRmDKNZOH31Bh5YpCRlzIvateoI8LgSI47LtLW37loYBHyHJlLWv61/wCb/wDL96WM9YCTL661tcThsMiXtfYg/Kuxhv8Aj/tXYw3/AB/2phhYMM+Xf7C3yqVIkVEsNFFhu6E3sdls7eK973/SosJs8oSXIWzb7isS8Lq2dgWyncbVjf8AMGliwMgZn6ikd3E8iEfa/Oua4iQKjqeyutbGAsVvfrHvrIscTzXtlEZc3qPmaZMgysMmWvotMIwV5MqEkXsMpPypLToJi2XaZNN/CucY+xZHKvYfby1HiPouV8wO5WtmFQ4cStt2sua+um81ET8Y/OrY/Jsb+I21rfhv9ytObn/3NNzeWCMtv69SvC6uhA1Hp0JPa7RpbX0sP+60mGweXbJJeVsui+vnWxh9WJ7zWK/nGjifo1lDHXLfqt+lGLEpnTITa9c12scKjwM/GpsThYtQmZHDt+tYhOD3/EftWLxs5Fy7FPsrxppIUCoNL21bzr6PmjRWbqr1v4TWE5vrPdCt+OaubYpo48TIdeHav+VETYg9Y3JbvPkKGKXFZQqaNvW1QhdeuPzofzR86EMGXNnDdasTFPlzFFbqnzNYiab2eGzD1bTuoxo4aNtV11Hr0MVziQvkCBfLfWOaKzKx1U7qfF4xryveZr+mn5VP/M+VfSEOFxOzXcVbcb3/AA3U44Rt+YpikbsMg3CkhRfatCABupzJJmkk3gbhWDwY0w07ANbxa7qieB29oT1GpWxOLdEU3RSLqAP+mkxyT4hZljMgsRa4+6hI2Mk26HNtGNtmwrnUmaWMtlMt81vP0rPhsTI6NpMB2bVhl4NnP3a1h4vifN+A/ehLhnyPnAva9YmXFtmbIoBy20uaH0bhPZEsEMu860pnkWTaXs3eeXXWmfDSIiyAE5pKmlxbHZl/Z37J9a5lA12P94R3eVTwYiRY7nMCxsDUz4SSDM2uWNsxJovPIsa7Mi7GtnFHt1t21emeGYJictwnA1HOzWEbZljG6op0yvl6wvvQ0qRNmSJbace+hhsIrRuQEKnuX1pMPLKisq5GVmtTKMTZW3jb762ODkQtlyxqrX++ubYiIzOOoB3FfOnE4ytJ1VfuHlSh7thoSEOXv40NvPCw7QHa/pR6xSMxhcz6C4P71zznGH2+++2H60iwNmiiFr8T9b//xAApEAEAAQIEBAcBAQEAAAAAAAABEQAhMUFRYSBxgZEQMKGxwdHw4UDx/9oACAEBAAE/If8AfsKk4UbkOpR2tU1O0IlC3Bwb9T/KrS3nxm9BVWRnz8TinjluVpCB0ZP+QRl0rVfo6cJQt/6nzUdOtg6a1eLNyukH3TUb/NM0NEhEGDo/4Dw6g4bQ6bgoAAEBl4nxNCVe3FOsYPnmoyLbN29vKAjXmOT/AHzXSSYtupRwN/T+X6o+wJCycsPKcSV1tL/PM1+00M2hAjgDy1x0Zj0qYlOfrgBQBK5UPGlDlTdPEJl+aJD58rkcFFGuzGD8tLXjXLYpiyIAzaGe5Mv206mOgPUppmjcx/hR7RynoeCBVg57h4mdIIVAPfh6h5KlYZBPekSXqnxLyb/M/PGxmFDlF/Y4WcliaNN6SI7gcDQOEN10olqzgE8dgT0XBFo4rdb54gZQCVcqxpj7uvVxMmGxhDQZzin1FSF7Rj4UUtf4uVX4KKStLdeufqPGLWdlH3wmlDY/eaymgYjgg2+NSjPMl1Jnm+6RSJCZeXG2lc7HM9vCfWPcfzhLGYT7osYhPviJAIkaynx5DXHMH3VsK0Y+CEGwMmh5Byn9K3K3onzw/Fg2b8d6bF60sOZ9bPpUUlkSOTlQlGkSR8AZQCVcqL6wn6fIeK+QyrcakBpxJ3bQyfARy8x/amcLcZkODEPV3Rm00LDcurTrSy7px5ufijGqXP46VAydr7VbFOK+p47/AK3+41ax7n1QMF+AmFO9WUQlNsAVa5x37+OHpJu135cEgQcsrQaU7Ul1WV80EDsAwDvXwNvaKDnSstx0aSrY3E3l7eWTkvA3osQNF/1Q7CGMh9RrJwECebHt/mGGTGgIGbVMy5qzxz2spmKUsDESEo2TNiaFUIYZWKw8N4f8d/AelYDOAISsGvV4Ihk8IWfL3zcbV8TVv8obdri49KCIIYwkFfq6FX4KJfGYZ0iKJCUmNFJ3UA05aB1pBOSO9SaQk4jEavan1R6kQoqm+/qB0T+vTyYt1ib6UWKSvsAG0pjnSELanrNlt/BwiICk2MKOwCzh0p/1Nf8AqayVpG1CeYogejOFmRwfhvGhS6s+FhC0WumeVDtPQNkR2Cv1dCjnwo31Wjfu+CY0F+qioZ5MVt9pprPdILg0qT9XjpYYNPalUC6dO9KQ+J8oYolTQ7zbGJZxV+oVEEMMbWans3CryEdzGkwBjuVjJj/2kpFV1aDVEOW0fNf97917ZG+asD8a8c2oEiLyNniY3pcHMqwiYikfSFIAl5Z4LY0Olb5lrU5Vx+IqZhkPZOb05VHOLhLiZjVnULiO5mg5EwY50uvh+koC7KjZlZb/ABViXUw3VWnmLrTcN6tUukiRKnt0LkcuNlRYHtgNJMeQiPdYrMQM3p+7pRUAbhBAP3Sfs/cIh+KYVsDsug3oMQRXHoP08EeALQAP+SjYRi7mLPSk0BdlMDawtX7dlCQtgTIwOzFTqooLUYlQKpTx1O5ra1CfRp7DnjRzSAV1EVsSNF2OMSA0epSbeGAcTGPdVnHAqClnZWEdKOVFo+6Fq0QhBhWfNWN6hwlghpl1o3Eh8j+VDmS+gplQGlkOpS0Z/DpIZrUNO10rhlj/AMoIA0S2ImZ5+KAIhNzWnyYcljDF3q7veC7kvI/NShmGUB76eDjh4QkvIq+rUDkebWEwIhMlMwAGFHLCmZEOFdHCGiEmWHr1oiJoEGDno0S2eqkm/wAVlnoJi+6cOrSO8jpl8J2oK0JMxDCSaXg6DMXN6tMRWqYiZtsKhYMW5uLna+1amoiuw+3SmUtFiy1mEudLIXpXg9CM2lKy3eTTETFlEwZBwTGNrH+v/9oADAMBAAIAAwAAABDzzznXzzzzzzzzzzv/AP06988888888++/+4888888qc++++488+888X+++49a83t388O2tYu8+6+rd88882vs88w38i8886h/I8rO889888Me8s888Av888YQc0UsMUww084UEUQ04YEYYg84MwYIAUMcIIE88888888888888//EACURAQACAgICAQMFAAAAAAAAAAEAESExECBBUTBQgbFxocHR8f/aAAgBAwEBPxDnS7g14vjD1CABREEpigbgxeJQCn4AG+f45ou+B9k72l0Jm8nUSvbyls6MaHvruwxqOVssoAigf5AFMNRrndaZgukNg3Km35ht/bhjPiE5Z9cN1iJHd64sMRa0DSK5z7b+JlP+uAEd30LtKiYcOxmR4yjUI1+vGJ4zHsHrgWsEQtt6aJTfD89vJH3iCiP3+r//xAAnEQACAAQGAgIDAQAAAAAAAAABEQAhMVFBYXGBkaEQIMHRMLHwUP/aAAgBAgEBPxDzLhFbHisJmJtQ9/j0Bhlc7fswcFZMDB0RAL2Au4rzUCFECF0F2QeoB2i/AENCIO6+u/JMBGQ8T9kmWYDfHuoDvUAufiApIbASHXqpCYBmTLoeTyETkfQICoQXfo44BTnBoPbUH2eRAmSDICWg5htDyKA0tAkTU4kYA/N/2DHRGIjI+HaT38qDJSzuIIq5oVzTuDQWWEzzQdxVOVDcfd4S7gjp/HijqESNeAKH6OR8SGCDB4CNRrrenrhrEnPiCirgbH+rAgUCHcLynJdzxcU5g+CUYYnQfzwcEKRiiAm3SHzt6LHGzheOkFrKWEGSCxqmo1rCR8oDE9v1p4l2k6O+1YLb8b5D5rn4Rwbgxyk4St6FSGwfMMObwCwdQX0l7DQBXsM7YdQL5cCA3y4/1//EACgQAQEAAQMDBAIDAQEBAAAAAAERIQAxQVFhgRAgcZEwoUCxwfDR8f/aAAgBAQABPxD+eQ3TUsdV2Du6WxC2y6MfougNxYc+Qf61vslfhDF7b/xY0HDvGzvI/BnoPAltyuq3Xu+t3ggmVwnCbjrJxFGC5D5Ee238QTILmDrfjHwHtxCUuc7r+vua8haX4b+BO5ojSkRB6pE8rS5+QQTvmP1pNUow9J4ejs9tv4D0VI6iU9pEh3IKUvX40ZYUAQDp6t6aRhP/AHkeHThN4E3HyTD3H89BsnOZPo2fK/EDIYxuEh+/3+Vqlgjyli9jPbVRnlgnj03Noxhc9zmf3+IAEY8tp8B8/kfqHwXm8AL41HrZv29V3Xn8YoVCB+O7dXj6NUKQ5sdB2CB2PY5ZUAVXpo2qMEa95Nu+lB7lQXhz7gAKd0X9d/iSFvC+KvOkMzghnwz9B31husKwehsHY0ZIh9UYAcujBa3fZTn1uOhyqABI6fACfI6BGEhQuBm9bPh6oUfg2E8Kcpu3j0OGiOZ35Q6fqhGQZY9nETqdJ7SdJ6vIo8g8/hR4JUdM5l3Haa3CbKby+oR5TdhYPgPLPHq5M+wCiu83f7e0bKKO4NH71NxAXJmTzk6iPs2GORJdwZnfbQJmMVGyPrByBHu/4U9hatmIGi9Bo+U9zXRJQBurwaLNIVYzTB3BOwc33DXM2abXolYmS9FNSo3BN6AtO6GnEFxnnyBrE/aGh8ieBe+m45VI6q5dbTTp3He8N36OetMmPT/6DR+1Nswml8u06Oe/Gs+glWRuIlp7DEVgoDozOotZ+zDm9qvXjTllRREen41ruWsnz7G3X4Z197F3faguToHVdgq9jUlydR6rutXu+7ZRqAtD8ufn8A5QqUhvKK52NY0rSKOo7J3PQAZ0Mg0dY7lN0tw6tzycOkGN/wDPtzkGL8FnnSPjq0hFAGVeNRwCo5Xcfp9jQrQQ9HkBnv3O/A9wCAOyJhPRrokoA3V4NPsoShuMHy3y/AYH7MUarA4MNlZ47cbNMuSewiD5D5Pppx6YEXN1tw6Nz6508rmaiZR+FfZhXhngcp8A/wBaOgsEIBDsd92d3TpXwKg+7+vb1hIrQLvUKK+RebriVZ3T2uOkfI1L2cx2AOt94UhYzD6B+CuhgyZtk0t4+U8n9iaFmxog5E1ztJUohsCNUhlg9WorybH/ABI73t7G0WlLuldqZXfBE5Zd6mQ7qu7+UWkEcDYAJO2gQQ8tD9x+tOxQiwHcSMb8625pJo3wh+C9un45ZJqCpgV76dspRT+ZPouiTTom93A+9EcMEMvABJ3b/wAZARA0TcdDwbgB/egZXyH9vv4DTmrawxs/Wl0/Fkdx20yHmK4PrVLUgldGG+kUiImEfQI62Ic3wJj0QOyLmMYhPWMWMMXRImEC6wkzfvpElEudMuNGQhuDs/j/AMStogspZtTVwpI1kQp9joLwCrAqPIyj09EivuYoK8FWYrRxjTMkREiOgCpp3dLCAEeBXHYacgTsgy/tdbPGLpGnEAOMQYpYzFFq/wBI0uBlAuopKypqs4aCwj00DJAVEIlQugBom0oQosLC1iZU2N8EzEqqs5xTp6RxXHCAq5Yemkpom+RQjPDx6hw5LDhg6nO2dtIOVURZgAVz7P8Ah3Hanyt7aXLU2dQme67tDMQuLPUcKjz6JB0ercl74WMMWYfSa01eoul7UFQWghDDho9cthgNQBsYmkLBGwoQOar/AMaKTaR3DDkoaEmuXRcUNCoVubTnWFhIAvAuQM7po7IBqDHojB0ppMg5hSMEyALxeupQbGTBXuQOuq+GAqqKrqgaQtju4TM2egNhLTfGfWrSCBEopBEm796COWe4JidE9QIFC5ZZoRDBkG2VXdlcwwayETUv0ICJBVcwF0clqquAX02IGCedIkVIru6yhKonK1tNzHROTowc/jkjEu7zNFwMLJEq1sq86337QqQVCI6Ld0+7Q/47aik2+1EcCGdhvlAU27eL512LkA04LhDGbgnCZpFxpATGzAhqoZTrnQ2exkmIbngN213dJp2AmKbyYllcZYEXZAeUZAjvUeMmNZjZJI4AxxpAahQO+pcVRWQuQc4abUGNaCqGa/1qp6gcZoOoIrwOZg3QtD5gnC7I70PUZMpwIMACuR3ZnTsX+AeHynyKYtMAPIMKAbMQSWeh6xOorCKGUoIGjtgRkwl2KBjtpsJHPUeQ0jbIxY4OAedGUOlx3ApVlnBmTnSxmYioA2CA3tdtOghkJgrhYQiLnfT4PRHC8A7KbIx0Y0TPCBmKMLqAOEeNRZiVy1SqbA5B2piCwywSGk5D2ZUFW1kq0GxdKfXEocjsoPOmwkqdkX9dXtyt+qkY4ONF44EkoAETcabCJSEJwgAu+MOifehkoyKNPLvv6k5EKsjpTR+vU4C1SS/vQGajiZiGUggkbkBET8ZdSEo5ILNgjuwqH28RRAJSO9emoKGKxiWCBXsGdLOogWRK84frRe2ITXfcyfOrT7i4G2OQeHSuBDRjkFqSitYsmmXOUZhBwV+dy4dLYgHSgDtgD8jog+HXdAMYDgoiGkHe6FRUiijJtZpeMARqrAZWXauqTfhi1xYCou7jnQ7W8JwG4QsBkDJvoV3Wyw9AX0LLdONQAQLVYtvdOt8/FE0IAzBhh0FIr6Fi3ImYzHTVm0aYCfKTtvnfRKzCadfVA3mO5P5f/9k\x3d";
  64. E.Yn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d";var E=E||{},fa={id:0|998*Math.random(),d2:0|998*Math.random(),zM:function(a,c,d){a=a.toString();var e=a.substring(a.indexOf("(")+1,a.indexOf(")")),e=e.trim();for(a=a.substring(a.indexOf("{")+1,a.lastIndexOf("}"));-1!=a.indexOf("this._super");){var f=a.indexOf("this._super"),g=a.indexOf("(",f),h=a.substring(g+1,a.indexOf(")",g)),h=h.trim();a=a.substring(0,f)+"ClassManager["+d+"]."+c+".call(this"+(h?",":"")+a.substring(g+1)}return Function(e,a)},X0:function(){return this.id++},Y0:function(){return this.d2++}};
  65. fa.zM.t7=fa;
  66. (function(){var a=/\b_super\b/,c=E.tb.oe[E.tb.hg.$Z];c&&console.log("release Mode");E.na=t();E.na.extend=function(d){function e(){this.ta=fa.Y0();this.ctor&&this.ctor.apply(this,arguments)}var f=this.prototype,g=Object.create(f),h=fa.X0();fa[h]=f;var m={writable:p,enumerable:r,configurable:p};g.ta=q;e.id=h;m.value=h;Object.defineProperty(g,"__pid",m);e.prototype=g;m.value=e;Object.defineProperty(e.prototype,"constructor",m);this.$h&&(e.$h=E.k(this.$h));this.ai&&(e.ai=E.k(this.ai));for(var n=0,s=arguments.length;n<
  67. s;++n){var v=arguments[n],w;for(w in v){var y="function"===typeof v[w],x="function"===typeof f[w],z=a.test(v[w]);c&&y&&x&&z?(m.value=fa.zM(v[w],w,h),Object.defineProperty(g,w,m)):y&&x&&z?(m.value=function(a,c){return function(){var d=this._super;this._super=f[a];var e=c.apply(this,arguments);this._super=d;return e}}(w,v[w]),Object.defineProperty(g,w,m)):y?(m.value=v[w],Object.defineProperty(g,w,m)):g[w]=v[w];if(y){var C,J;if(this.$h&&this.$h[w]){var y=this.$h[w],F;for(F in this.ai)if(this.ai[F]==
  68. y){J=F;break}E.j(g,y,v[w],v[J]?v[J]:g[J],w,J)}if(this.ai&&this.ai[w]){y=this.ai[w];for(F in this.$h)if(this.$h[F]==y){C=F;break}E.j(g,y,v[C]?v[C]:g[C],v[w],C,w)}}}}e.extend=E.na.extend;e.zea=function(a){for(var c in a)g[c]=a[c]};return e}})();
  69. E.j=function(a,c,d,e,f,g){if(a.__defineGetter__)d&&a.__defineGetter__(c,d),e&&a.__defineSetter__(c,e);else if(Object.defineProperty){var h={enumerable:r,configurable:p};d&&(h.get=d);e&&(h.set=e);Object.defineProperty(a,c,h)}else b(Error("browser does not support getters"));if(!f&&!g)for(var h=d!=q,m=e!=k,n=Object.getOwnPropertyNames(a),s=0;s<n.length;s++){var v=n[s];if(!((a.__lookupGetter__?a.__lookupGetter__(v):Object.getOwnPropertyDescriptor(a,v))||"function"!==typeof a[v])){var w=a[v];if(h&&w===
  70. d&&(f=v,!m||g))break;if(m&&w===e&&(g=v,!h||f))break}}a=a.constructor;f&&(a.$h||(a.$h={}),a.$h[f]=c);g&&(a.ai||(a.ai={}),a.ai[g]=c)};E.k=function(a){var c=a.constructor?new a.constructor:{},d;for(d in a){var e=a[d];c[d]="object"==typeof e&&e&&!(e instanceof E.m)&&!(e instanceof HTMLElement)?E.k(e):e}return c};E=E||{};E.H=E.H||{};E.T$=t();
  71. E.lq={kM:8,W5:9,WM:13,shift:16,waa:17,alt:18,pause:19,baa:20,escape:27,Tha:33,Sha:34,end:35,home:36,left:37,zla:38,right:39,Maa:40,Dea:45,D7:46,"0":48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,C:67,J:68,Dg:69,Ch:70,g:71,hp:72,xs:73,rx:74,sx:75,Cx:76,Gx:77,fl:78,Kx:79,Qx:80,Vx:81,r:82,NF:83,oG:84,ea:85,fa:86,G:87,x:88,y:89,d:90,iha:96,jha:97,kha:98,lha:99,mha:100,nha:101,oha:102,pha:103,qha:104,rha:105,"*":106,"+":107,"-":109,numdel:110,"/":111,vba:112,zba:113,Aba:114,Bba:115,Cba:116,
  72. Dba:117,Eba:118,Fba:119,Gba:120,wba:121,xba:122,yba:123,uha:144,Wia:145,Yia:186,",":186,tba:187,"\x3d":187,";":188,laa:188,xaa:189,".":190,Zha:190,Lba:191,wea:192,"[":219,Cha:219,"]":221,haa:221,U$:220,quote:222,dla:32};E.J7=0;E.Wy=1;E.YG=2;E.K7=3;E.L7=4;E.tR=5;E.L0=function(a){return 8<a.length&&137==a[0]&&80==a[1]&&78==a[2]&&71==a[3]&&13==a[4]&&10==a[5]&&26==a[6]&&10==a[7]?E.Wy:2<a.length&&(73==a[0]&&73==a[1]||77==a[0]&&77==a[1]||255==a[0]&&216==a[1])?E.YG:E.tR};
  73. E.Aea=function(a,c){function d(){}d.prototype=c.prototype;a.sy=c.prototype;a.prototype=new d;a.prototype.constructor=a};E.V$=function(a,c,d){var e=arguments.callee.caller;if(e.sy)return ret=e.sy.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var f=Array.prototype.slice.call(arguments,2),g=r,h=a.constructor;h;h=h.sy&&h.sy.constructor)if(h.prototype[c]===e)g=p;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);b(Error("cc.base called from a method of one name to a method of a different name"))};E.H8=function(a,c){this.x=a||0;this.y=c||0};function L(a,c){return a==k?{x:0,y:0}:c==k?{x:a.x,y:a.y}:{x:a,y:c}}E.DF=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y};E.N8=function(a,c){this.width=a||0;this.height=c||0};function P(a,c){return a===k?{width:0,height:0}:c===k?{width:a.width,height:a.height}:{width:a,height:c}}E.cla=function(a,c){return a&&c&&a.width==c.width&&a.height==c.height};E.GH=function(a,c,d,e){this.x=a||0;this.y=c||0;this.width=d||0;this.height=e||0};
  74. function W(a,c,d,e){return a===k?{x:0,y:0,width:0,height:0}:c===k?{x:a.x,y:a.y,width:a.width,height:a.height}:{x:a,y:c,width:d,height:e}}E.QO=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y&&a.width===c.width&&a.height===c.height};E.wC=function(a){return a&&0===a.x&&0===a.y&&0===a.width&&0===a.height};E.nia=function(a,c){return!a||!c?r:!(a.x>=c.x||a.y>=c.y||a.x+a.width<=c.x+c.width||a.y+a.height<=c.y+c.height)};E.Ws=function(a){return a.x+a.width};E.oia=function(a){return a.x+a.width/2};E.vp=function(a){return a.x};
  75. E.Xs=function(a){return a.y+a.height};E.pia=function(a){return a.y+a.height/2};E.wp=function(a){return a.y};E.PO=function(a,c){return c.x>=E.vp(a)&&c.x<=E.Ws(a)&&c.y>=E.wp(a)&&c.y<=E.Xs(a)};E.ria=function(a,c){var d=a.y+a.height,e=c.x+c.width,f=c.y+c.height;return!(a.x+a.width<c.x||e<a.x||d<c.y||f<a.y)};E.sia=function(a,c){return!(a.x+a.width<c.x||c.x+c.width<a.x||a.y+a.height<c.y||c.y+c.height<a.y)};
  76. E.Xx=function(a,c){var d=W(0,0,0,0);d.x=Math.min(a.x,c.x);d.y=Math.min(a.y,c.y);d.width=Math.max(a.x+a.width,c.x+c.width)-d.x;d.height=Math.max(a.y+a.height,c.y+c.height)-d.y;return d};E.qia=function(a,c){var d=W(Math.max(E.vp(a),E.vp(c)),Math.max(E.wp(a),E.wp(c)),0,0);d.width=Math.min(E.Ws(a),E.Ws(c))-E.vp(d);d.height=Math.min(E.Xs(a),E.Xs(c))-E.wp(d);return d};E.$t=E.na.extend({UK:q,KB:q,ctor:function(){window.DOMParser?(this.KB=p,this.UK=new DOMParser):this.KB=r},parse:function(a){return this.cC(a)},cC:function(a){var c;this.KB?c=this.UK.parseFromString(a,"text/xml"):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));return c}});
  77. E.LS=E.$t.extend({parse:function(a){a=this.cC(a).documentElement;"plist"!=a.tagName&&b("Not a plist file!");for(var c=q,d=0,e=a.childNodes.length;d<e&&!(c=a.childNodes[d],1==c.nodeType);d++);return this.bC(c)},bC:function(a){var c=q,d=a.tagName;if("dict"==d)c=this.GX(a);else if("array"==d)c=this.FX(a);else if("string"==d)if(1==a.childNodes.length)c=a.firstChild.nodeValue;else{c="";for(d=0;d<a.childNodes.length;d++)c+=a.childNodes[d].nodeValue}else"false"==d?c=r:"true"==d?c=p:"real"==d?c=parseFloat(a.firstChild.nodeValue):
  78. "integer"==d&&(c=parseInt(a.firstChild.nodeValue,10));return c},FX:function(a){for(var c=[],d=0,e=a.childNodes.length;d<e;d++){var f=a.childNodes[d];1==f.nodeType&&c.push(this.bC(f))}return c},GX:function(a){for(var c={},d=q,e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes[e];1==g.nodeType&&("key"==g.tagName?d=g.firstChild.nodeValue:c[d]=this.bC(g))}return c}});E.PL={load:function(a,c,d,e){E.V.Fx(a,e)}};E.V.Oj(["txt","xml","vsh","fsh","atlas"],E.PL);E.fX={load:function(a,c,d,e){E.V.vO(a,e)}};E.V.Oj(["json","ExportJson"],E.fX);E.OW={load:function(a,c,d,e){E.V.Nf[c]=E.V.Es(a,function(a,d){if(a)return e(a);E.Ea.ub(c);e(q,d)})}};E.V.Oj("png jpg bmp jpeg gif ico".split(" "),E.OW);E.aY={load:function(a,c,d,e){E.V.Nf[c]=E.V.Es(d.src,function(a,d){if(a)return e(a);E.Ea.ub(c);e(q,d)})}};E.V.Oj(["serverImg"],E.aY);
  79. E.LX={load:function(a,c,d,e){E.V.Fx(a,function(a,c){if(a)return e(a);e(q,E.z3.parse(c))})}};E.V.Oj(["plist"],E.LX);
  80. E.YV={TT:{".eot":"embedded-opentype",".ttf":"truetype",".woff":"woff",".svg":"svg"},IK:function(a,c,d){var e=document,f=E.path,g=this.TT,h=E.Sb("style");h.type="text/css";e.body.appendChild(h);var m="@font-face { font-family:"+a+"; src:";if(c instanceof Array)for(var n=0,s=c.length;n<s;n++)d=f.$k(c[n]).toLowerCase(),m+="url('"+c[n]+"') format('"+g[d]+"')",m+=n==s-1?";":",";else m+="url('"+c+"') format('"+g[d]+"');";h.textContent+=m+"};";c=E.Sb("div");d=c.style;d.fontFamily=a;c.innerHTML=".";d.position=
  81. "absolute";d.left="-100px";d.top="-100px";e.body.appendChild(c)},load:function(a,c,d,e){c=d.type;a=d.name;c=d.ela;"string"==typeof d?(c=E.path.$k(d),a=E.path.PZ(d,c),this.IK(a,d,c)):this.IK(a,c);e(q,p)}};E.V.Oj(["font","eot","ttf","woff","svg"],E.YV);E.E9={load:function(a,c,d,e){E.V.X2(a,e)}};window.CocosEngine=E.Ty="Cocos2d-JS v3.0 RC2";E.kn=0;E.Oy=L(0,0);E.XQ=0.5;E.s7=1;E.Nz=1;E.uS=0;E.QH=0;E.Rz=0;E.R8=0;E.J8=1;E.I8="-hd";E.HU=1;E.Zj=0;E.L8=0;E.RR=0;E.QR=0;E.ez=1;E.v7=E.Ty+"-canvas";E.tt=1;E.Wg=1;E.sb=function(a){var c=this==E?document:this;if(a=a instanceof HTMLElement?a:c.querySelector(a))a.find=a.find||E.sb,a.RE=a.RE||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.dM=a.dM||function(a){this.RE(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.R3=a.R3||function(a){this.RE(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&this.parentNode.removeChild(this);return this},a.hM=a.hM||
  82. function(a){a.appendChild(this);return this},a.E3=a.E3||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.mt=a.mt||function(){this.style[E.sb.k6]=E.sb.translate(this.position)+E.sb.rotate(this.rotation)+E.sb.scale(this.scale)+E.sb.Bp(this.Bp);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.Bp=a.Bp||{x:0,y:0},a.eQ=function(a,c){this.position.x=a;this.position.y=c;this.mt()},a.rotate=function(a){this.rotation=
  83. a;this.mt();return this},a.$s=function(a,c){this.scale.x=a;this.scale.y=c;this.mt();return this},a.tka=function(a,c){this.Bp.x=a;this.Bp.y=c;this.mt();return this};return a};switch(E.fb.Yk){case E.fb.Np:E.sb.Ss="Moz";E.sb.ip=p;break;case E.fb.Cy:case E.fb.Fy:E.sb.Ss="webkit";E.sb.ip=p;break;case E.fb.Ey:E.sb.Ss="O";E.sb.ip=r;break;case E.fb.Dy:E.sb.Ss="ms";E.sb.ip=r;break;default:E.sb.Ss="webkit",E.sb.ip=p}E.sb.k6=E.sb.Ss+"Transform";
  84. E.sb.translate=E.sb.ip?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};E.sb.rotate=E.sb.ip?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};E.sb.scale=function(a){return"scale("+a.x+", "+a.y+") "};E.sb.Bp=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};E.sQ=function(){return E.sb(document.createElement("input"))};
  85. E.sb.Jba=function(a){var c=0,d=0;do c+=a.offsetLeft,d+=a.offsetTop;while(a=a.offsetParent);return{x:c,y:d}};E.U7=-1;E.PI=Math.PI;E.sR=parseFloat("3.402823466e+38F");E.I7=parseFloat("1.175494351e-38F");E.MS=E.PI/180;E.SG=180/E.PI;E.CI=4294967295;E.XP=function(a,c,d){if("object"==typeof d&&"undefined"!=typeof d.x&&"undefined"!=typeof d.y){var e=d[a];d[a]=d[c];d[c]=e}else E.log(E.f.XP)};E.Uga=function(a,c,d){return a+(c-a)*d};E.zb=function(){return 16777215*Math.random()};E.K3=function(){return 2*(Math.random()-0.5)};E.MO=Math.random;E.Me=function(a){return a*E.MS};E.Wx=function(a){return a*E.SG};
  86. E.LO=function(a){E.log(E.f.LO);return a*E.SG};E.sn=Number.MAX_VALUE-1;E.bc=E.uS?1:770;E.ac=771;E.Hs=function(a){a.Gb&&(a.Gb.Jc(),a.Gb.We())};E.sba=t();E.Daa=t();E.Qf=function(){E.pf+=1};E.Nt=1.192092896E-7;E.qb=E.ez?function(){return E.B.bh}:B(1);E.A3=function(a){var c=E.qb();return L(a.x*c,a.y*c)};E.EF=function(a){var c=E.qb();return L(a.x/c,a.y/c)};E.gC=function(a,c){var d=E.qb();c.x=a.x/d;c.y=a.y/d};E.z5=function(a){var c=E.qb();return P(a.width*c,a.height*c)};
  87. E.QP=function(a){var c=E.qb();return P(a.width/c,a.height/c)};E.FL=function(a,c){var d=E.qb();c.width=a.width/d;c.height=a.height/d};E.jl=E.ez?function(a){var c=E.qb();return W(a.x/c,a.y/c,a.width/c,a.height/c)}:aa();E.Ys=E.ez?function(a){var c=E.qb();return W(a.x*c,a.y*c,a.width*c,a.height*c)}:aa();E.ONE=1;E.ZERO=0;E.SRC_ALPHA=770;E.SRC_ALPHA_SATURATE=776;E.SRC_COLOR=768;E.DST_ALPHA=772;E.DST_COLOR=774;E.ONE_MINUS_SRC_ALPHA=771;E.ONE_MINUS_SRC_COLOR=769;E.ONE_MINUS_DST_ALPHA=773;E.DST_COLOR=775;
  88. E.ONE_MINUS_DST_COLOR=775;E.ONE_MINUS_CONSTANT_ALPHA=32772;E.ONE_MINUS_CONSTANT_COLOR=32770;E.So=function(){if(E.Zs==E.W){var a=E.l.getError();a&&E.log(E.f.So,a)}};E.z7=0;E.x7=1;E.A7=2;E.y7=3;E.w7=2;E.r9=0;E.Ld=1;E.ou=2;E.un=4;E.Gl=E.Ld|E.ou|E.un;E.N7=0;E.pb=0;E.xe=1;E.wd=2;E.s9=3;E.lA=0;E.kA=1;E.Dq=2;E.pA=3;E.oA=4;E.jA=5;E.mA=6;E.nA=7;E.o9=8;E.Yi="ShaderPositionTextureColor";E.bu="ShaderPositionTextureColorAlphaTest";E.au="ShaderPositionColor";E.uq="ShaderPositionTexture";E.Lz="ShaderPositionTexture_uColor";
  89. E.Kz="ShaderPositionTextureA8Color";E.Mz="ShaderPosition_uColor";E.KH="ShaderPositionLengthTextureColor";E.BU="CC_PMatrix";E.zU="CC_MVMatrix";E.AU="CC_MVPMatrix";E.FU="CC_Time";E.EU="CC_SinTime";E.yU="CC_CosTime";E.CU="CC_Random01";E.DU="CC_Texture0";E.DI="CC_alpha_value";E.Lp="a_color";E.sl="a_position";E.fn="a_texCoord";E.ER=32;E.NG=3233828865;E.pu=3233828866;E.aS=8801;E.NS=8802;E.YQ=8803;E=E||{};E.H=E.H||{};
  90. E.H.tA=function(){E.color=function(a,d,e,f,g,h){return a===k?new E.uf(0,0,0,255,g,h):"string"===typeof a?(a=E.NN(a),new E.uf(a.r,a.g,a.b,a.a)):"object"===typeof a?new E.uf(a.r,a.g,a.b,a.a,a.yw,a.offset):new E.uf(a,d,e,f,g,h)};E.uf=function(a,d,e,f,g,h){this.Vc=g||new ArrayBuffer(E.uf.BYTES_PER_ELEMENT);this.va=h||0;g=this.Vc;h=this.va;var m=Uint8Array.BYTES_PER_ELEMENT;this.uC=new Uint8Array(g,h,1);this.qB=new Uint8Array(g,h+m,1);this.JA=new Uint8Array(g,h+2*m,1);this.CA=new Uint8Array(g,h+3*m,1);
  91. this.uC[0]=a||0;this.qB[0]=d||0;this.JA[0]=e||0;this.CA[0]=f||255;f===k&&(this.aM=p)};E.uf.BYTES_PER_ELEMENT=4;var a=E.uf.prototype;a.AW=function(){return this.uC[0]};a.qY=function(a){this.uC[0]=0>a?0:a};a.oW=function(){return this.qB[0]};a.lY=function(a){this.qB[0]=0>a?0:a};a.gW=function(){return this.JA[0]};a.cY=function(a){this.JA[0]=0>a?0:a};a.cW=function(){return this.CA[0]};a.bY=function(a){this.CA[0]=0>a?0:a};E.j(a,"r",a.AW,a.qY);E.j(a,"g",a.oW,a.lY);E.j(a,"b",a.gW,a.cY);E.j(a,"a",a.cW,a.bY);
  92. E.Ub=function(a,d,e,f){this.Vc=e||new ArrayBuffer(E.Ub.BYTES_PER_ELEMENT);this.va=f||0;this.rm=new Float32Array(this.Vc,this.va,1);this.sm=new Float32Array(this.Vc,this.va+4,1);this.rm[0]=a||0;this.sm[0]=d||0};E.Ub.BYTES_PER_ELEMENT=8;Object.defineProperties(E.Ub.prototype,{x:{get:function(){return this.rm[0]},set:function(a){this.rm[0]=a},enumerable:p},y:{get:function(){return this.sm[0]},set:function(a){this.sm[0]=a},enumerable:p}});E.rc=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(E.rc.BYTES_PER_ELEMENT);
  93. this.va=g||0;f=this.Vc;g=this.va;this.rm=new Float32Array(f,g,1);this.rm[0]=a||0;this.sm=new Float32Array(f,g+Float32Array.BYTES_PER_ELEMENT,1);this.sm[0]=d||0;this.LD=new Float32Array(f,g+2*Float32Array.BYTES_PER_ELEMENT,1);this.LD[0]=e||0};E.rc.BYTES_PER_ELEMENT=12;Object.defineProperties(E.rc.prototype,{x:{get:function(){return this.rm[0]},set:function(a){this.rm[0]=a},enumerable:p},y:{get:function(){return this.sm[0]},set:function(a){this.sm[0]=a},enumerable:p},d:{get:function(){return this.LD[0]},
  94. set:function(a){this.LD[0]=a},enumerable:p}});E.bk=function(a,d,e,f){this.Vc=e||new ArrayBuffer(E.bk.BYTES_PER_ELEMENT);this.va=f||0;this.sD=new Float32Array(this.Vc,this.va,1);this.yD=new Float32Array(this.Vc,this.va+4,1);this.sD[0]=a||0;this.yD[0]=d||0};E.bk.BYTES_PER_ELEMENT=8;Object.defineProperties(E.bk.prototype,{ea:{get:function(){return this.sD[0]},set:function(a){this.sD[0]=a},enumerable:p},fa:{get:function(){return this.yD[0]},set:function(a){this.yD[0]=a},enumerable:p}});E.Ez=function(a,
  95. d,e,f,g,h){this.Vc=g||new ArrayBuffer(E.Ez.BYTES_PER_ELEMENT);this.va=h||0;g=this.Vc;h=E.Ub.BYTES_PER_ELEMENT;this.Fo=a?new E.Ub(a.x,a.y,g,0):new E.Ub(0,0,g,0);this.Io=d?new E.Ub(d.x,d.y,g,h):new E.Ub(0,0,g,h);this.zn=e?new E.Ub(e.x,e.y,g,2*h):new E.Ub(0,0,g,2*h);this.Dn=f?new E.Ub(f.x,f.y,g,3*h):new E.Ub(0,0,g,3*h)};E.Ez.BYTES_PER_ELEMENT=32;E.Xt=function(a,d,e,f){this.F=a||new E.rc(0,0,0);this.M=d||new E.rc(0,0,0);this.L=e||new E.rc(0,0,0);this.K=f||new E.rc(0,0,0)};Object.defineProperties(E.Ez.prototype,
  96. {L:{get:A("Fo"),set:function(a){this.Fo.x=a.x;this.Fo.y=a.y},enumerable:p},K:{get:A("Io"),set:function(a){this.Io.x=a.x;this.Io.y=a.y},enumerable:p},F:{get:A("zn"),set:function(a){this.zn.x=a.x;this.zn.y=a.y},enumerable:p},M:{get:A("Dn"),set:function(a){this.Dn.x=a.x;this.Dn.y=a.y},enumerable:p}});E.ng=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(E.ng.BYTES_PER_ELEMENT);this.va=g||0;f=this.Vc;g=this.va;var h=E.rc.BYTES_PER_ELEMENT;this.Pa=a?new E.rc(a.x,a.y,a.d,f,g):new E.rc(0,0,0,f,g);this.Tq=
  97. d?E.color(d.r,d.g,d.b,d.a,f,g+h):E.color(0,0,0,0,f,g+h);this.Lf=e?new E.bk(e.ea,e.fa,f,g+h+E.uf.BYTES_PER_ELEMENT):new E.bk(0,0,f,g+h+E.uf.BYTES_PER_ELEMENT)};E.ng.BYTES_PER_ELEMENT=24;Object.defineProperties(E.ng.prototype,{i:{get:A("Pa"),set:function(a){var d=this.Pa;d.x=a.x;d.y=a.y;d.d=a.d},enumerable:p},t:{get:A("Tq"),set:function(a){var d=this.Tq;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:p},n:{get:A("Lf"),set:function(a){this.Lf.ea=a.ea;this.Lf.fa=a.fa},enumerable:p}});E.Bb=function(a,d,e,
  98. f,g,h){this.Vc=g||new ArrayBuffer(E.Bb.BYTES_PER_ELEMENT);this.va=h||0;g=this.Vc;h=this.va;var m=E.ng.BYTES_PER_ELEMENT;this.Fo=a?new E.ng(a.i,a.t,a.n,g,h):new E.ng(q,q,q,g,h);this.zn=d?new E.ng(d.i,d.t,d.n,g,h+m):new E.ng(q,q,q,g,h+m);this.Io=e?new E.ng(e.i,e.t,e.n,g,h+2*m):new E.ng(q,q,q,g,h+2*m);this.Dn=f?new E.ng(f.i,f.t,f.n,g,h+3*m):new E.ng(q,q,q,g,h+3*m)};E.Bb.BYTES_PER_ELEMENT=96;Object.defineProperties(E.Bb.prototype,{L:{get:A("Fo"),set:function(a){var d=this.Fo;d.i=a.i;d.t=a.t;d.n=a.n},
  99. enumerable:p},F:{get:A("zn"),set:function(a){var d=this.zn;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p},K:{get:A("Io"),set:function(a){var d=this.Io;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p},M:{get:A("Dn"),set:function(a){var d=this.Dn;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p},yw:{get:A("Vc"),enumerable:p}});E.FI=function(){return new E.Bb};E.EI=function(a){if(!a)return E.FI();var d=a.L,e=a.F,f=a.K;a=a.M;return{L:{i:{x:d.i.x,y:d.i.y,d:d.i.d},t:{r:d.t.r,g:d.t.g,b:d.t.b,a:d.t.a},n:{ea:d.n.ea,fa:d.n.fa}},F:{i:{x:e.i.x,
  100. y:e.i.y,d:e.i.d},t:{r:e.t.r,g:e.t.g,b:e.t.b,a:e.t.a},n:{ea:e.n.ea,fa:e.n.fa}},K:{i:{x:f.i.x,y:f.i.y,d:f.i.d},t:{r:f.t.r,g:f.t.g,b:f.t.b,a:f.t.a},n:{ea:f.n.ea,fa:f.n.fa}},M:{i:{x:a.i.x,y:a.i.y,d:a.i.d},t:{r:a.t.r,g:a.t.g,b:a.t.b,a:a.t.a},n:{ea:a.n.ea,fa:a.n.fa}}}};E.q9=function(a){if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(E.EI(a[e]));return d};E.vd=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(E.vd.BYTES_PER_ELEMENT);this.va=g||0;f=this.Vc;g=this.va;var h=E.Ub.BYTES_PER_ELEMENT;this.Pa=
  101. a?new E.Ub(a.x,a.y,f,g):new E.Ub(0,0,f,g);this.Tq=d?E.color(d.r,d.g,d.b,d.a,f,g+h):E.color(0,0,0,0,f,g+h);this.Lf=e?new E.bk(e.ea,e.fa,f,g+h+E.uf.BYTES_PER_ELEMENT):new E.bk(0,0,f,g+h+E.uf.BYTES_PER_ELEMENT)};E.vd.BYTES_PER_ELEMENT=20;Object.defineProperties(E.vd.prototype,{i:{get:A("Pa"),set:function(a){this.Pa.x=a.x;this.Pa.y=a.y},enumerable:p},t:{get:A("Tq"),set:function(a){var d=this.Tq;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:p},n:{get:A("Lf"),set:function(a){this.Lf.ea=a.ea;this.Lf.fa=a.fa},
  102. enumerable:p}});E.Tb=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(E.Tb.BYTES_PER_ELEMENT);this.va=g||0;f=this.Vc;g=this.va;var h=E.vd.BYTES_PER_ELEMENT;this.OI=a?new E.vd(a.i,a.t,a.n,f,g):new E.vd(q,q,q,f,g);this.XI=d?new E.vd(d.i,d.t,d.n,f,g+h):new E.vd(q,q,q,f,g+h);this.aJ=e?new E.vd(e.i,e.t,e.n,f,g+2*h):new E.vd(q,q,q,f,g+2*h)};E.Tb.BYTES_PER_ELEMENT=60;Object.defineProperties(E.Tb.prototype,{a:{get:A("OI"),set:function(a){var d=this.OI;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p},b:{get:A("XI"),set:function(a){var d=
  103. this.XI;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p},C:{get:A("aJ"),set:function(a){var d=this.aJ;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:p}})};E.H.xz=function(){var a=E.color;a.MW=function(){return a(255,255,255)};a.NW=function(){return a(255,255,0)};a.iW=function(){return a(0,0,255)};a.qW=function(){return a(0,255,0)};a.BW=function(){return a(255,0,0)};a.vW=function(){return a(255,0,255)};a.hW=function(){return a(0,0,0)};a.zW=function(){return a(255,127,0)};a.pW=function(){return a(166,166,166)};E.j(a,"WHITE",a.MW);E.j(a,"YELLOW",a.NW);E.j(a,"BLUE",a.iW);E.j(a,"GREEN",a.qW);E.j(a,"RED",a.BW);E.j(a,"MAGENTA",a.vW);E.j(a,"BLACK",a.hW);E.j(a,
  104. "ORANGE",a.zW);E.j(a,"GRAY",a.pW);E.cc.KV=function(){return new E.cc(E.ONE,E.ZERO)};E.cc.$U=function(){return new E.cc(E.ONE,E.ONE_MINUS_SRC_ALPHA)};E.cc.ZU=function(){return new E.cc(E.SRC_ALPHA,E.ONE_MINUS_SRC_ALPHA)};E.cc.YU=function(){return new E.cc(E.SRC_ALPHA,E.ONE)};E.j(E.cc,"DISABLE",E.cc.KV);E.j(E.cc,"ALPHA_PREMULTIPLIED",E.cc.$U);E.j(E.cc,"ALPHA_NON_PREMULTIPLIED",E.cc.ZU);E.j(E.cc,"ADDITIVE",E.cc.YU)};E.uf=function(a,c,d,e){this.r=a||0;this.g=c||0;this.b=d||0;this.a=e||255};E.color=function(a,c,d,e){return a===k?{r:0,g:0,b:0,a:255}:"string"===typeof a?E.NN(a):"object"===typeof a?{r:a.r,g:a.g,b:a.b,a:a.a||255}:{r:a,g:c,b:d,a:e||255}};E.iaa=function(a,c){return a.r===c.r&&a.g===c.g&&a.b===c.b};E.tQ=function(){this.timestamp=this.d=this.y=this.x=0};E.Ub=function(a,c){this.x=a||0;this.y=c||0};E.rc=function(a,c,d){this.x=a||0;this.y=c||0;this.d=d||0};E.bk=function(a,c){this.ea=a||0;this.fa=c||0};
  105. E.cc=function(a,c){this.src=a;this.Q=c};E.X$=function(){return new E.cc(E.ONE,E.ZERO)};E.NN=function(a){a=a.replace(/^#?/,"0x");a=parseInt(a);return E.color(a>>16,(a>>8)%256,a%256)};E.kaa=function(a){var c=a.r.toString(16),d=a.g.toString(16),e=a.b.toString(16);return"#"+(16>a.r?"0"+c:c)+(16>a.g?"0"+d:d)+(16>a.b?"0"+e:e)};E.fu=0;E.wq=1;E.TH=2;E.Eq=0;E.IU=1;E.GI=2;
  106. E.y9=E.na.extend({oo:q,Yr:q,BA:0,ctor:function(){this.oo={};this.Yr={};this.BA=2<<(0|10*Math.random())},SU:function(){this.BA++;return"key_"+this.BA},Yja:function(a,c){if(c!=q){var d=this.SU();this.oo[d]=c;this.Yr[d]=a}},g3:function(a){if(a==q)return q;var c=this.oo,d;for(d in c)if(c[d]===a)return this.Yr[d];return q},Gla:function(a){return this.g3(a)},T3:function(a){if(a!=q){var c=this.oo,d;for(d in c)if(c[d]===a){delete this.Yr[d];delete c[d];break}}},Hia:function(a){if(a!=q)for(var c=0;c<a.length;c++)this.T3(a[c])},
  107. xZ:function(){var a=[],c=this.oo,d;for(d in c)a.push(c[d]);return a},Bia:function(){this.oo={};this.Yr={}},count:function(){return this.xZ().length}});E.$G=function(){this.fontName="Arial";this.fontSize=12;this.textAlign=E.wq;this.verticalAlign=E.Eq;this.fillStyle=E.color(255,255,255,255);this.boundingHeight=this.boundingWidth=0;this.nG=r;this.strokeStyle=E.color(255,255,255,255);this.lineWidth=1;this.PP=r;this.shadowBlur=this.shadowOffsetY=this.shadowOffsetX=0;this.shadowOpacity=1};
  108. E.A===E.W&&(E.assert("function"===typeof E.H.tA,E.f.cd,"CCTypesWebGL.js"),E.H.tA(),delete E.H.tA);E.assert("function"===typeof E.H.xz,E.f.cd,"CCTypesPropertyDefine.js");E.H.xz();delete E.H.xz;E.l9=[];E.m9={};
  109. E.Ry=E.na.extend({I9:q,fe:q,Pn:q,Ek:q,ne:q,zi:q,CC:r,IA:p,Ll:1,FD:"",zC:q,ja:1,QK:1,La:1,RK:1,fo:0,UB:5,oh:q,nL:q,rL:q,qL:q,oL:q,pL:q,nr:r,F9:r,t$:q,mK:q,nK:q,o$:r,YA:q,xk:q,pB:1,uu:r,vK:p,ctor:function(){var a=document,c=E.Vj,d=E.ig;this.xk=E.zm.parentNode===a.body?a.documentElement:E.zm.parentNode;this.fe=P(0,0);this.EB();var a=E.Wa.width,e=E.Wa.height;this.Pn=P(a,e);this.Ek=P(a,e);this.ne=W(0,0,a,e);this.zi=W(0,0,a,e);this.YA={left:0,top:0};this.FD="Cocos2dHTML5";a=E.fb;this.J_(a.xF==a.nH||a.xF==
  110. a.oH);E.dn&&E.dn.U(this.zi);this.nL=new E.ue(c.ut,d.Uy);this.rL=new E.ue(c.JS,d.cu);this.qL=new E.ue(c.ut,d.nz);this.oL=new E.ue(c.ut,d.Vy);this.pL=new E.ue(c.ut,d.Mt);this.mK=E.Wa;this.nK=E.l},AC:function(){var a=this.Ek.width,c=this.Ek.height;this.zC&&(this.EB(),this.zC.call());0<a&&this.TF(a,c,this.oh)},Z3:function(a){a?this.uu||(this.uu=p,a=this.AC.bind(this),E.Ha(window,"resize",a,r)):this.uu&&(this.uu=p,a=this.AC.bind(this),window.removeEventListener("resize",a,r))},oka:function(a){if("function"==
  111. typeof a||a==q)this.zC=a},EB:function(){var a=this.fe;a.width=this.xk.clientWidth;a.height=this.xk.clientHeight},z9:function(){var a=this.Ek.width,c=this.Ek.height;0<a&&this.TF(a,c,this.oh)},JY:function(){if(this.vK){var a={"user-scalable":"no","maximum-scale":"1.0","initial-scale":"1.0"},c=document.getElementsByName("viewport"),d;0==c.length?(c=E.Sb("meta"),c.name="viewport",c.content="",document.head.appendChild(c)):c=c[0];if(E.fb.Kh&&E.fb.Yk==E.fb.Np)c.content="initial-scale:1";else{d=c.content;
  112. for(var e in a)RegExp(e).test(d)||(d+=(""==d?"":",")+e+"\x3d"+a[e]);c.content=d}}},Xv:function(){var a=E.qb();this.La=this.ja=a},Pv:function(){this.ja=this.QK;this.La=this.RK},A9:t(),b2:function(){this.nr=p},rZ:u("vK"),J_:function(a){this.CC=a?p:r},Wea:A("CC"),rba:function(a){this.IA=a?p:r},Iea:A("IA"),end:t(),Tea:function(){return this.mK!=q&&this.nK!=q},Eja:function(a){this.pB=a;E.B.Xm(E.B.ri)},nla:t(),Jja:t(),pja:function(a,c){this.YA={left:a,top:c}},hca:A("YA"),Hca:function(){return P(this.fe.width,
  113. this.fe.height)},Dja:function(a,c){this.fe.width=a;this.fe.height=c;this.xk.style.width=a+"px";this.xk.style.height=c+"px";this.AC();E.B.Xm(E.B.ri)},caa:t(),ts:function(){return P(this.zi.width,this.zi.height)},ME:function(){return L(this.zi.x,this.zi.y)},$$:B(p),Cda:A("oh"),W4:function(a){if(a instanceof E.ue)this.oh=a;else{var c=E.ue;a===c.Uy&&(this.oh=this.nL);a===c.cu&&(this.oh=this.rL);a===c.nz&&(this.oh=this.qL);a===c.Vy&&(this.oh=this.oL);a===c.Mt&&(this.oh=this.pL)}},TF:function(a,c,d){if(isNaN(a)||
  114. 0==a||isNaN(c)||0==c)E.log(E.f.hR);else{this.W4(d);var e=this.oh;if(e){e.Sm(this);var f=this.fe.width,g=this.fe.height;E.fb.Kh&&this.JY(this.fe.width,this.fe.height);this.EB();d==this.oh&&a==this.Ek.width&&c==this.Ek.height&&f==this.fe.width&&g==this.fe.height||(this.Pn=P(a,c),this.Ek=P(a,c),a=e.apply(this,this.Pn),a.scale&&2==a.scale.length&&(this.ja=a.scale[0],this.La=a.scale[1]),a.viewport&&(a=this.ne=a.viewport,c=this.zi,c.width=E.Wa.width/this.ja,c.height=E.Wa.height/this.La,c.x=-a.x/this.ja,
  115. c.y=-a.y/this.La),a=E.B,E.rt.width=a.lc.width=this.zi.width,E.rt.height=a.lc.height=this.zi.height,e.Rm(this),E.A==E.W&&(a.Mn(),a.tP()),this.QK=this.ja,this.RK=this.La,E.ZQ&&E.ZQ.g$(),E.dn&&E.dn.U(this.zi))}else E.log(E.f.iR)}},yE:function(){return P(this.Pn.width,this.Pn.height)},q5:function(a,c,d,e){var f=this.pB,g=this.ja,h=this.La;E.l.viewport(a*g*f+this.ne.x*f,c*h*f+this.ne.y*f,d*g*f,e*h*f)},qka:function(a,c,d,e){var f=this.pB,g=this.ja,h=this.La;E.l.scissor(a*g*f+this.ne.x*f,c*h*f+this.ne.y*
  116. f,d*g*f,e*h*f)},Yea:function(){var a=E.l;return a.isEnabled(a.SCISSOR_TEST)},Hda:function(){var a=E.l,c=this.ja,d=this.La,a=a.getParameter(a.SCISSOR_BOX);return W((a[0]-this.ne.x)/c,(a[1]-this.ne.y)/d,a[2]/c,a[3]/d)},$ka:function(a){a!=q&&0<a.length&&(this.FD=a)},oea:A("FD"),pea:A("ne"),wN:A("ja"),xN:A("La"),pca:A("Ll"),eE:function(a,c,d){return{x:this.Ll*(a-d.left),y:this.Ll*(d.top+d.height-c)}},EV:function(a,c){var d=this.ne;a.x=(this.Ll*(a.x-c.left)-d.x)/this.ja;a.y=(this.Ll*(c.top+c.height-a.y)-
  117. d.y)/this.La},Mu:function(a){for(var c=this.ne,d=this.ja,e=this.La,f,g,h,m=0;m<a.length;m++)f=a[m],g=f.Ad,h=f.qi,f.SC((g.x-c.x)/d,(g.y-c.y)/e),f.vo((h.x-c.x)/d,(h.y-c.y)/e)}});E.Ry.vB=function(){this.mv||(this.mv=this.mv||new E.Ry,this.mv.b2());return this.mv};
  118. E.Vj=E.na.extend({Sm:t(),apply:t(),Rm:t(),WC:function(a,c,d){var e=a.xk;E.view.IA&&(E.fb.Kh&&e==document.documentElement)&&E.screen.MZ(e);var e=E.Wa,f=E.zm;f.style.width=e.style.width=c+"px";f.style.height=e.style.height=d+"px";f=a.Ll=1;a.CC&&(f=a.Ll=window.devicePixelRatio||1);e.width=c*f;e.height=d*f;a=document.body;var g;if(a&&(g=a.style))g.paddingTop=g.paddingTop||"0px",g.paddingRight=g.paddingRight||"0px",g.paddingBottom=g.paddingBottom||"0px",g.paddingLeft=g.paddingLeft||"0px",g.borderTop=g.borderTop||
  119. "0px",g.borderRight=g.borderRight||"0px",g.borderBottom=g.borderBottom||"0px",g.borderLeft=g.borderLeft||"0px",g.marginTop=g.marginTop||"0px",g.marginRight=g.marginRight||"0px",g.marginBottom=g.marginBottom||"0px",g.marginLeft=g.marginLeft||"0px"},$J:function(){document.body.insertBefore(E.zm,document.body.firstChild);var a=document.body.style;a.width=window.innerWidth+"px";a.height=window.innerHeight+"px";a.overflow="hidden";a=E.zm.style;a.position="fixed";a.left=a.top="0px";document.body.scrollTop=
  120. 0}});E.ig=E.na.extend({BC:{scale:[1,1],viewport:q},Oq:function(a,c,d,e,f,g){2>Math.abs(a-d)&&(d=a);2>Math.abs(c-e)&&(e=c);a=W(Math.round((a-d)/2),Math.round((c-e)/2),d,e);E.A==E.Ba&&E.l.translate(a.x,a.y+e);this.BC.scale=[f,g];this.BC.viewport=a;return this.BC},Sm:t(),apply:function(){return{scale:[1,1]}},Rm:t()});
  121. (function(){var a=E.Vj.extend({apply:function(a){this.WC(a,a.fe.width,a.fe.height)}}),c=E.Vj.extend({apply:function(a,c){var d=a.fe.width,e=a.fe.height,f=E.zm.style,v=c.width,w=c.height,y=d/v,x=e/w,z,C;y<x?(z=d,C=w*y):(z=v*x,C=e);v=Math.round((d-z)/2);C=Math.round((e-C)/2);this.WC(a,d-2*v,e-2*C);f.marginLeft=v+"px";f.marginRight=v+"px";f.marginTop=C+"px";f.marginBottom=C+"px"}});a.extend({Sm:function(a){this._super(a);a.xk=document.documentElement},apply:function(a){this._super(a);this.$J()}});c.extend({Sm:function(a){this._super(a);
  122. a.xk=document.documentElement},apply:function(a,c){this._super(a,c);this.$J()}});var d=E.Vj.extend({apply:function(a){this.WC(a,E.Wa.width,E.Wa.height)}});E.Vj.ut=new a;E.Vj.JS=new c;E.Vj.D8=new d;var a=E.ig.extend({apply:function(a,c){var d=E.Wa.width,e=E.Wa.height;return this.Oq(d,e,d,e,d/c.width,e/c.height)}}),c=E.ig.extend({apply:function(a,c){var d=E.Wa.width,e=E.Wa.height,f=c.width,v=c.height,w=d/f,y=e/v,x=0,z,C;w<y?(x=w,z=d,C=v*x):(x=y,z=f*x,C=e);return this.Oq(d,e,z,C,x,x)}}),d=E.ig.extend({apply:function(a,
  123. c){var d=E.Wa.width,e=E.Wa.height,f=c.width,v=c.height,w=d/f,y=e/v,x,z,C;w<y?(x=y,z=f*x,C=e):(x=w,z=d,C=v*x);return this.Oq(d,e,z,C,x,x)}}),e=E.ig.extend({apply:function(a,c){var d=E.Wa.width,e=E.Wa.height,f=e/c.height;return this.Oq(d,e,d,e,f,f)},Rm:function(a){E.B.lc=a.ts()}}),f=E.ig.extend({apply:function(a,c){var d=E.Wa.width,e=E.Wa.height,f=d/c.width;return this.Oq(d,e,d,e,f,f)},Rm:function(a){E.B.lc=a.ts()}});E.ig.Uy=new a;E.ig.cu=new c;E.ig.nz=new d;E.ig.Vy=new e;E.ig.Mt=new f})();
  124. E.ue=E.na.extend({Ku:q,Lu:q,ctor:function(a,c){this.u4(a);this.v4(c)},Sm:function(a){this.Ku.Sm(a);this.Lu.Sm(a)},apply:function(a,c){this.Ku.apply(a,c);return this.Lu.apply(a,c)},Rm:function(a){this.Ku.Rm(a);this.Lu.Rm(a)},u4:function(a){a instanceof E.Vj&&(this.Ku=a)},v4:function(a){a instanceof E.ig&&(this.Lu=a)}});E.ue.Uy=0;E.ue.nz=1;E.ue.cu=2;E.ue.Vy=3;E.ue.Mt=4;E.ue.GU=5;E.screen={kw:r,mC:q,pD:"",wk:q,WV:[["requestFullscreen","exitFullscreen","fullscreenchange","fullscreenEnabled","fullscreenElement"],["requestFullScreen","exitFullScreen","fullScreenchange","fullScreenEnabled","fullScreenElement"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange","webkitIsFullScreen","webkitCurrentFullScreenElement"],["mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozFullScreen","mozFullScreenElement"],["msRequestFullscreen","msExitFullscreen",
  125. "MSFullscreenChange","msFullscreenEnabled","msFullscreenElement"]],U:function(){this.wk={};var a,c,d=this.WV,e;a=0;for(l=d.length;a<l;a++)if((c=d[a])&&c[1]in document){a=0;for(e=c.length;a<e;a++)this.wk[d[0][a]]=c[a];break}this.kw=this.wk.requestFullscreen!=k;this.pD="ontouchstart"in window?"touchstart":"mousedown"},fullScreen:function(){return this.kw&&document[this.wk.fullscreenEnabled]},YO:function(a,c){if(this.kw){a=a||document.documentElement;a[this.wk.requestFullscreen]();if(c){var d=this.wk.Nba;
  126. this.mC&&document.removeEventListener(d,this.mC);this.mC=c;E.Ha(document,d,c,r)}return a[this.wk.requestFullscreen]()}},uba:function(){return this.kw?document[this.wk.exitFullscreen]():p},MZ:function(a,c){function d(){f.YO(a,c);e.removeEventListener(f.pD,d)}a=a||document.body;var e=E.Wa||a,f=this;this.YO(a,c);E.Ha(e,this.pD,d)}};E.screen.U();E.dn={bQ:L(0,0),cQ:L(0,0),top:L(0,0),RD:L(0,0),oM:L(0,0),bottom:L(0,0),Ew:L(0,0),left:L(0,0),right:L(0,0),width:0,height:0,U:function(a){var c=this.width=a.width,d=this.height=a.height,e=a.x;a=a.y;var f=a+d,g=e+c;this.bQ.x=e;this.bQ.y=f;this.cQ.x=g;this.cQ.y=f;this.top.x=e+c/2;this.top.y=f;this.RD.x=e;this.RD.y=a;this.oM.x=g;this.oM.y=a;this.bottom.x=e+c/2;this.bottom.y=a;this.Ew.x=e+c/2;this.Ew.y=a+d/2;this.left.x=e;this.left.y=a+d/2;this.right.x=g;this.right.y=a+d/2}};E.vU=-90;E.wU=90;E.xU=180;E.n9=0;
  127. E.aF={qo:r,zK:r,XK:L(0,0),QX:L(0,0),YK:[],nC:0,Vk:[],qD:{},fo:0,UB:5,wu:r,xu:1/30,RI:1,Hl:0,DA:q,vu:q,KW:function(){for(var a=this.fo,c=0;c<this.UB;c++){if(!(a&1))return this.fo|=1<<c,c;a>>=1}return-1},XX:function(a){0>a||a>=this.UB||(a=~(1<<a),this.fo&=a)},zk:q,PE:function(a){for(var c,d,e,f=[],g=this.qD,h=0,m=a.length;h<m;h++)c=a[h],e=c.hh,d=g[e],d==q&&(d=this.KW(),-1==d?E.log(E.f.c2,d):(c=this.Vk[d]=c,g[e]=d,f.push(c)));0<f.length&&(this.zk.Mu(f),a=new E.jg(f),a.sk=E.jg.jn.By,E.qa.dispatchEvent(a))},
  128. QE:function(a){for(var c,d,e=[],f=this.Vk,g=0,h=a.length;g<h;g++)c=a[g],d=c.hh,d=this.qD[d],d!=q&&f[d]&&(f[d].SC(c.Ad),f[d].vo(c.qi),e.push(f[d]));0<e.length&&(this.zk.Mu(e),a=new E.jg(e),a.sk=E.jg.jn.jz,E.qa.dispatchEvent(a))},cx:function(a){a=this.yN(a);0<a.length&&(this.zk.Mu(a),a=new E.jg(a),a.sk=E.jg.jn.Sy,E.qa.dispatchEvent(a))},LN:function(a){a=this.yN(a);0<a.length&&(this.zk.Mu(a),a=new E.jg(a),a.sk=E.jg.jn.Iy,E.qa.dispatchEvent(a))},yN:function(a){for(var c,d,e,f=[],g=this.Vk,h=this.qD,m=
  129. 0,n=a.length;m<n;m++)c=a[m],e=c.hh,d=h[e],d!=q&&g[d]&&(g[d].SC(c.Ad),g[d].vo(c.qi),f.push(g[d]),this.XX(d),delete h[e]);return f},Fh:function(a){var c=document.documentElement,d=window,e=q,e="function"===typeof a.getBoundingClientRect?a.getBoundingClientRect():a instanceof HTMLCanvasElement?{left:0,top:0,width:a.width,height:a.height}:{left:0,top:0,width:parseInt(a.style.width),height:parseInt(a.style.height)};return{left:e.left+d.pageXOffset-c.clientLeft,top:e.top+d.pageYOffset-c.clientTop,width:e.width,
  130. height:e.height}},e1:function(a){for(var c=q,d=this.YK,e=a.hh,f=d.length-1;0<=f;f--)if(d[f].hh==e){c=d[f];break}c||(c=a);return c},V4:function(a){for(var c=r,d=this.YK,e=a.hh,f=d.length-1;0<=f;f--)if(d[f].hh==e){d[f]=a;c=p;break}c||(50>=d.length?d.push(a):(d[this.nC]=a,this.nC=(this.nC+1)%50))},ss:function(a,c,d){var e=this.XK;a=this.zk.eE(a,c,d);c=new E.gA(a.x,a.y);c.vo(e.x,e.y);e.x=a.x;e.y=a.y;return c},dp:function(a,c,d){var e=this.QX;this.zk.EV(a,c);c=new E.Kc(d);c.J4(a.x,a.y);c.pY(e.x,e.y);e.x=
  131. a.x;e.y=a.y;return c},fp:function(a,c){if(a.pageX!=q)return{x:a.pageX,y:a.pageY};c.left-=document.body.scrollLeft;c.top-=document.body.scrollTop;return{x:a.clientX,y:a.clientY}},$w:function(a,c){for(var d=[],e=this.zk,f,g,h=this.XK,m=a.changedTouches.length,n=0;n<m;n++)if(f=a.changedTouches[n]){var s;s=E.fb.Np===E.fb.Yk?e.eE(f.pageX,f.pageY,c):e.eE(f.clientX,f.clientY,c);f.identifier!=q?(f=new E.gA(s.x,s.y,f.identifier),g=this.e1(f).rs(),f.vo(g.x,g.y),this.V4(f)):(f=new E.gA(s.x,s.y),f.vo(h.x,h.y));
  132. h.x=s.x;h.y=s.y;d.push(f)}return d},N3:function(a){if(!this.zK){var c=this.zk=E.view,d=this,e="touches"in E.fb.YD;"mouse"in E.fb.YD&&(E.Ha(window,"mousedown",function(){d.qo=p},r),E.Ha(window,"mouseup",function(c){var f=d.qo;d.qo=r;if(f){var f=d.Fh(a),g=d.fp(c,f);E.PO(new E.GH(f.left,f.top,f.width,f.height),g)||(e||d.cx([d.ss(g.x,g.y,f)]),f=d.dp(g,f,E.Kc.qA),f.Wm(c.button),E.qa.dispatchEvent(f))}},r),E.Ha(a,"mousedown",function(c){d.qo=p;var f=d.Fh(a),g=d.fp(c,f);e||d.PE([d.ss(g.x,g.y,f)]);f=d.dp(g,
  133. f,E.Kc.TG);f.Wm(c.button);E.qa.dispatchEvent(f);c.stopPropagation();c.preventDefault();a.focus()},r),E.Ha(a,"mouseup",function(c){d.qo=r;var f=d.Fh(a),g=d.fp(c,f);e||d.cx([d.ss(g.x,g.y,f)]);f=d.dp(g,f,E.Kc.qA);f.Wm(c.button);E.qa.dispatchEvent(f);c.stopPropagation();c.preventDefault()},r),E.Ha(a,"mousemove",function(c){var f=d.Fh(a),g=d.fp(c,f);e||d.QE([d.ss(g.x,g.y,f)]);f=d.dp(g,f,E.Kc.hH);d.qo?f.Wm(c.button):f.Wm(q);E.qa.dispatchEvent(f);c.stopPropagation();c.preventDefault()},r),E.Ha(a,"mousewheel",
  134. function(c){var e=d.Fh(a),f=d.fp(c,e),e=d.dp(f,e,E.Kc.Jz);e.Wm(c.button);e.JP(0,c.wheelDelta);E.qa.dispatchEvent(e);c.stopPropagation();c.preventDefault()},r),E.Ha(a,"DOMMouseScroll",function(c){var e=d.Fh(a),f=d.fp(c,e),e=d.dp(f,e,E.Kc.Jz);e.Wm(c.button);e.JP(0,-120*c.detail);E.qa.dispatchEvent(e);c.stopPropagation();c.preventDefault()},r));if(window.navigator.msPointerEnabled){var f={MSPointerDown:d.PE,MSPointerMove:d.QE,MSPointerUp:d.cx,MSPointerCancel:d.LN},g;for(g in f)(function(c,e){E.Ha(a,
  135. c,function(c){var f=d.Fh(a);f.left-=document.documentElement.scrollLeft;f.top-=document.documentElement.scrollTop;e.call(d,[d.ss(c.clientX,c.clientY,f)]);c.stopPropagation()},r)})(g,f[g])}e&&(E.Ha(a,"touchstart",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.PE(d.$w(c,e));c.stopPropagation();c.preventDefault();a.focus()}},r),E.Ha(a,"touchmove",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;
  136. d.QE(d.$w(c,e));c.stopPropagation();c.preventDefault()}},r),E.Ha(a,"touchend",function(c){if(c.changedTouches){var e=d.Fh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.cx(d.$w(c,e));c.stopPropagation();c.preventDefault()}},r),E.Ha(a,"touchcancel",function(e){if(e.changedTouches){var f=d.Fh(a);f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;c.LN(d.$w(e,f));e.stopPropagation();e.preventDefault()}},r));this.hL();this.gL();this.zK=p}},hL:t(),gL:t(),update:function(a){this.Hl>
  137. this.xu&&(this.Hl-=this.xu,E.qa.dispatchEvent(new E.nR(this.DA)));this.Hl+=a}};var G=E.aF;G.l4=function(){if(this.wu!==p){this.wu=p;var a=E.B.Di();this.wu?(this.Hl=0,a.PF(this)):(this.Hl=0,a.ot(this))}};G.Zia=function(a){this.xu!==a&&(this.xu=a)};G.hL=function(){E.Ha(E.Wa,"keydown",function(a){E.qa.dispatchEvent(new E.XG(a.keyCode,p));a.stopPropagation();a.preventDefault()},r);E.Ha(E.Wa,"keyup",function(a){E.qa.dispatchEvent(new E.XG(a.keyCode,r));a.stopPropagation();a.preventDefault()},r)};
  138. G.gL=function(){var a=window;this.DA=new E.tQ;this.vu=a.DeviceMotionEvent||a.DeviceOrientationEvent;E.fb.Yk==E.fb.LG&&(this.vu=window.DeviceOrientationEvent);var c=this.vu==a.DeviceMotionEvent?"devicemotion":"deviceorientation",d=navigator.userAgent;if(/Android/.test(d)||/Adr/.test(d)&&E.fb.Yk==E.MG)this.c$=-1;E.Ha(a,c,this.m_.bind(this),r)};
  139. G.m_=function(a){var c=window;if(this.wu){var d=this.DA;if(this.vu==window.DeviceMotionEvent){var e=a.accelerationIncludingGravity;d.x=0.1*this.RI*e.x;d.y=0.1*this.RI*e.y;d.d=0.1*e.d}else d.x=0.981*(a.gamma/90),d.y=0.981*-(a.beta/90),d.d=0.981*(a.alpha/90);d.timestamp=a.timeStamp||Date.now();a=d.x;c.orientation===E.wU?(d.x=-d.y,d.y=a):c.orientation===E.vU?(d.x=d.y,d.y=-a):c.orientation===E.xU&&(d.x=-d.x,d.y=-d.y)}};delete G;E.Z6=function(a,c,d,e,f,g){this.a=a;this.b=c;this.C=d;this.J=e;this.Ja=f;this.Ka=g};E.H$=function(a,c,d,e,f,g){return{a:a,b:c,C:d,J:e,Ja:f,Ka:g}};E.JO=function(a,c){return{x:c.a*a.x+c.C*a.y+c.Ja,y:c.b*a.x+c.J*a.y+c.Ka}};E.Hk=function(a,c,d){return{x:d.a*a+d.C*c+d.Ja,y:d.b*a+d.J*c+d.Ka}};E.bla=function(a,c){return{width:c.a*a.width+c.C*a.height,height:c.b*a.width+c.J*a.height}};E.I$=function(){return{a:1,b:0,C:0,J:1,Ja:0,Ka:0}};E.G$=function(){return{a:1,b:0,C:0,J:1,Ja:0,Ka:0}};
  140. E.GF=function(a,c){var d=E.wp(a),e=E.vp(a),f=E.Ws(a),g=E.Xs(a),h=E.Hk(e,d,c),d=E.Hk(f,d,c),e=E.Hk(e,g,c),m=E.Hk(f,g,c),f=Math.min(h.x,d.x,e.x,m.x),g=Math.max(h.x,d.x,e.x,m.x),n=Math.min(h.y,d.y,e.y,m.y),h=Math.max(h.y,d.y,e.y,m.y);return W(f,n,g-f,h-n)};
  141. E.RX=function(a,c){var d=E.wp(a),e=E.vp(a),f=E.Ws(a),g=E.Xs(a),h=E.Hk(e,d,c),d=E.Hk(f,d,c),e=E.Hk(e,g,c),m=E.Hk(f,g,c),f=Math.min(h.x,d.x,e.x,m.x),g=Math.max(h.x,d.x,e.x,m.x),n=Math.min(h.y,d.y,e.y,m.y),h=Math.max(h.y,d.y,e.y,m.y);a.x=f;a.y=n;a.width=g-f;a.height=h-n;return a};E.sZ=function(a,c,d){return{a:a.a,b:a.b,C:a.C,J:a.J,Ja:a.Ja+a.a*c+a.C*d,Ka:a.Ka+a.b*c+a.J*d}};E.K$=function(a,c,d){return{a:a.a*c,b:a.b*c,C:a.C*d,J:a.J*d,Ja:a.Ja,Ka:a.Ka}};
  142. E.J$=function(a,c){var d=Math.sin(c),e=Math.cos(c);return{a:a.a*e+a.C*d,b:a.b*e+a.J*d,C:a.C*e-a.a*d,J:a.J*e-a.b*d,Ja:a.Ja,Ka:a.Ka}};E.um=function(a,c){return{a:a.a*c.a+a.b*c.C,b:a.a*c.b+a.b*c.J,C:a.C*c.a+a.J*c.C,J:a.C*c.b+a.J*c.J,Ja:a.Ja*c.a+a.Ka*c.C+c.Ja,Ka:a.Ja*c.b+a.Ka*c.J+c.Ka}};E.F$=function(a,c){return a.a===c.a&&a.b===c.b&&a.C===c.C&&a.J===c.J&&a.Ja===c.Ja&&a.Ka===c.Ka};
  143. E.fM=function(a){var c=1/(a.a*a.J-a.b*a.C);return{a:c*a.J,b:-c*a.b,C:-c*a.C,J:c*a.a,Ja:c*(a.C*a.Ka-a.J*a.Ja),Ka:c*(a.b*a.Ja-a.a*a.Ka)}};E.sH=parseFloat("1.192092896e-07F");E.zF=function(a){return L(-a.x,-a.y)};E.Lj=function(a,c){return L(a.x+c.x,a.y+c.y)};E.Gd=function(a,c){return L(a.x-c.x,a.y-c.y)};E.Li=function(a,c){return L(a.x*c,a.y*c)};E.FO=function(a,c){return E.Li(E.Lj(a,c),0.5)};E.sp=function(a,c){return a.x*c.x+a.y*c.y};E.k3=function(a,c){return a.x*c.y-a.y*c.x};E.Sx=function(a){return L(-a.y,a.x)};E.Nha=function(a){return L(a.y,-a.x)};E.Mha=function(a,c){return E.Li(c,E.sp(a,c)/E.sp(c,c))};
  144. E.Oha=function(a,c){return L(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};E.Rha=function(a,c){return L(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};E.DO=function(a){return E.sp(a,a)};E.CO=function(a,c){return E.DO(E.Gd(a,c))};E.hl=function(a){return Math.sqrt(E.DO(a))};E.Hha=function(a,c){return E.hl(E.Gd(a,c))};E.Ig=function(a){return E.Li(a,1/E.hl(a))};E.Iha=function(a){return L(Math.cos(a),Math.sin(a))};E.n3=function(a){return Math.atan2(a.y,a.x)};E.Qc=function(a,c,d){if(c>d){var e=c;c=d;d=e}return a<c?c:a<d?a:d};
  145. E.BO=function(a){var c=L(0,0),d=L(1,1);return L(E.Qc(a.x,c.x,d.x),E.Qc(a.y,c.y,d.y))};E.Jha=function(a){return L(a.width,a.height)};E.Gha=function(a,c){return L(c(a.x),c(a.y))};E.EO=function(a,c,d){return E.Lj(E.Li(a,1-d),E.Li(c,d))};E.Kha=function(a,c,d){return a.x-d<=c.x&&c.x<=a.x+d&&a.y-d<=c.y&&c.y<=a.y+d?p:r};E.Fha=function(a,c){return L(a.x*c.x,a.y*c.y)};E.Eha=function(a,c){var d=E.Ig(a),e=E.Ig(c),d=Math.atan2(d.x*e.y-d.y*e.x,E.sp(d,e));return Math.abs(d)<E.sH?0:d};
  146. E.Dha=function(a,c){var d=Math.acos(E.sp(E.Ig(a),E.Ig(c)));return Math.abs(d)<E.sH?0:d};E.m3=function(a,c,d){a=E.Gd(a,c);var e=Math.cos(d);d=Math.sin(d);var f=a.x;a.x=f*e-a.y*d+c.x;a.y=f*d+a.y*e+c.y;return a};E.yF=function(a,c,d,e,f){if(a.x==c.x&&a.y==c.y||d.x==e.x&&d.y==e.y)return r;var g=c.x-a.x;c=c.y-a.y;var h=e.x-d.x;e=e.y-d.y;var m=a.x-d.x;a=a.y-d.y;d=e*g-h*c;f.x=h*a-e*m;f.y=g*a-c*m;if(0==d)return 0==f.x||0==f.y?p:r;f.x/=d;f.y/=d;return p};
  147. E.Qha=function(a,c,d,e){var f=L(0,0);return E.yF(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?p:r};E.Lha=function(a,c,d,e){var f=L(0,0);return E.yF(a,c,d,e,f)?(d=L(0,0),d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):L(0,0)};E.Pha=function(a,c){return a!=q&&c!=q?a.x==c.x&&a.y==c.y:r};E.Tx=function(a){a.x=0;a.y=0};E.Mj=function(a,c){a.x=c.x;a.y=c.y};E.tp=function(a,c){a.x*=c;a.y*=c};E.GO=function(a,c){a.x-=c.x;a.y-=c.y};E.Rx=function(a,c){a.x+=c.x;a.y+=c.y};
  148. E.l3=function(a){E.tp(a,1/Math.sqrt(a.x*a.x+a.y*a.y))};E.xG=function(a,c,d,e,f){f+=e;if(!(1>=f)){c*=0.5;for(var g,h=f-1,m=e;m<f;m++){g=2*m;var n=L(a[2*m],a[2*m+1]),s;if(0===m)s=E.Sx(E.Ig(E.Gd(n,L(a[2*(m+1)],a[2*(m+1)+1]))));else if(m===h)s=E.Sx(E.Ig(E.Gd(L(a[2*(m-1)],a[2*(m-1)+1]),n)));else{s=L(a[2*(m-1)],a[2*(m-1)+1]);var v=L(a[2*(m+1)],a[2*(m+1)+1]),w=E.Ig(E.Gd(v,n)),y=E.Ig(E.Gd(s,n)),x=Math.acos(E.sp(w,y));s=x<E.Me(70)?E.Sx(E.Ig(E.FO(w,y))):x<E.Me(170)?E.Ig(E.FO(w,y)):E.Sx(E.Ig(E.Gd(v,s)))}s=E.Li(s,c);d[2*g]=n.x+s.x;d[2*g+1]=n.y+s.y;d[2*(g+1)]=n.x-
  149. s.x;d[2*(g+1)+1]=n.y-s.y}for(m=0==e?0:e-1;m<h;m++){g=2*m;a=g+2;c=new E.Ub(d[2*g],d[2*g+1]);f=new E.Ub(d[2*(g+1)],d[2*(g+1)+1]);g=new E.Ub(d[2*a],d[2*a]);e=new E.Ub(d[2*(a+1)],d[2*(a+1)+1]);c=!E.x6(c.x,c.y,e.x,e.y,f.x,f.y,g.x,g.y);if(!c.As&&(0>c.value||1<c.value))c.As=p;c.As&&(d[2*a]=e.x,d[2*a+1]=e.y,d[2*(a+1)]=g.x,d[2*(a+1)+1]=g.y)}}};
  150. E.x6=function(a,c,d,e,f,g,h,m){if(a==d&&c==e||f==h&&g==m)return{As:r,value:0};d-=a;e-=c;f-=a;g-=c;h-=a;m-=c;a=Math.sqrt(d*d+e*e);d/=a;e/=a;c=f*d+g*e;g=g*d-f*e;f=c;c=h*d+m*e;m=m*d-h*e;h=c;return g==m?{As:r,value:0}:{As:p,value:(h+(f-h)*m/(m-g))/a}};E.Hla=function(a){for(var c=0,d=a.length;c<d;c++){var e=a[(c+1)%d];if(0<E.k3(E.Gd(e,a[c]),E.Gd(a[(c+2)%d],e)))return r}return p};E.r7=function(a,c){c[2]=c[3]=c[6]=c[7]=c[8]=c[9]=c[11]=c[14]=0;c[10]=c[15]=1;c[0]=a.a;c[4]=a.C;c[12]=a.Ja;c[1]=a.b;c[5]=a.J;c[13]=a.Ka};E.M7=function(a,c){c.a=a[0];c.C=a[4];c.Ja=a[12];c.b=a[1];c.J=a[5];c.Ka=a[13]};E.gA=E.na.extend({Ad:q,qi:q,hh:0,JL:r,Mr:q,ctor:function(a,c,d){this.Ad=L(a||0,c||0);this.hh=d||0},rs:function(){return{x:this.Ad.x,y:this.Ad.y}},R0:function(){return this.Ad.x},S0:function(){return this.Ad.y},vda:function(){return{x:this.qi.x,y:this.qi.y}},Mda:function(){return{x:this.Mr.x,y:this.Mr.y}},xE:function(){return E.Gd(this.Ad,this.qi)},Q0:function(){return{x:this.Ad.x,y:this.Ad.y}},wda:function(){return{x:this.qi.x,y:this.qi.y}},Nda:function(){return{x:this.Mr.x,y:this.Mr.y}},Lca:A("hh"),
  151. Mca:A("hh"),Ika:function(a,c,d){this.qi=this.Ad;this.Ad=L(c||0,d||0);this.hh=a;this.JL||(this.Mr=L(this.Ad),this.JL=p)},SC:function(a,c){c===k?(this.Ad.x=a.x,this.Ad.y=a.y):(this.Ad.x=a,this.Ad.y=c)},vo:function(a,c){this.qi=c===k?L(a.x,a.y):L(a||0,c||0)}});E.oc=E.na.extend({jc:0,Rl:r,yd:q,KC:u("yd"),ctor:u("jc"),LE:A("jc"),stopPropagation:function(){this.Rl=p},bfa:A("Rl"),jca:A("yd")});E.oc.iu=0;E.oc.nn=1;E.oc.rl=2;E.oc.qn=3;E.oc.Op=4;E.Ti=E.oc.extend({lB:q,XL:q,ctor:function(a){E.oc.prototype.ctor.call(this,E.oc.Op);this.lB=a},setUserData:u("XL"),getUserData:A("XL"),Bca:A("lB")});
  152. E.Kc=E.oc.extend({WJ:0,$I:0,yh:0,Je:0,pC:0,qC:0,tL:0,uL:0,ctor:function(a){E.oc.prototype.ctor.call(this,E.oc.qn);this.WJ=a},JP:function(a,c){this.tL=a;this.uL=c},Ida:A("tL"),Jda:A("uL"),J4:function(a,c){this.yh=a;this.Je=c},rs:function(){return{x:this.yh,y:this.Je}},Q0:function(){return{x:this.yh,y:E.view.Pn.height-this.Je}},pY:function(a,c){this.pC=a;this.qC=c},xE:function(){return{x:this.yh-this.pC,y:this.Je-this.qC}},nca:function(){return this.yh-this.pC},oca:function(){return this.Je-this.qC},
  153. Wm:u("$I"),Wba:A("$I"),R0:A("yh"),S0:A("Je")});E.Kc.NONE=0;E.Kc.TG=1;E.Kc.qA=2;E.Kc.hH=3;E.Kc.Jz=4;E.Kc.n7=0;E.Kc.p7=2;E.Kc.o7=1;E.Kc.i7=3;E.Kc.j7=4;E.Kc.k7=5;E.Kc.l7=6;E.Kc.m7=7;E.jg=E.oc.extend({sk:0,Vk:q,ctor:function(a){E.oc.prototype.ctor.call(this,E.oc.iu);this.Vk=a||[]},Aca:A("sk"),fea:A("Vk"),k$:u("sk"),m$:u("Vk")});E.jg.n8=5;E.jg.jn={By:0,jz:1,Sy:2,Iy:3};E.sa=E.na.extend({XB:q,jc:0,ji:q,jf:r,vk:0,gf:q,ic:r,ko:p,ctor:function(a,c,d){this.XB=d;this.jc=a||0;this.ji=c||""},RC:u("ic"),V9:A("ic"),Fr:u("jf"),dX:A("jf"),T9:A("jc"),Q9:A("ji"),LC:u("vk"),P9:A("vk"),Gr:u("gf"),R9:A("gf"),Zk:function(){return this.XB!=q},k:B(q),qe:u("ko"),isEnabled:A("ko"),$x:t(),Ni:t()});E.sa.GU=0;E.sa.ju=1;E.sa.Uz=2;E.sa.nn=3;E.sa.qn=4;E.sa.rl=5;E.sa.Op=6;
  154. E.Fq=E.sa.extend({wr:q,ctor:function(a,c){this.wr=c;var d=this;E.sa.prototype.ctor.call(this,E.sa.Op,a,function(a){d.wr!=q&&d.wr(a)})},Zk:function(){return E.sa.prototype.Zk.call(this)&&this.wr!=q},k:function(){return new E.Fq(this.ji,this.wr)}});E.Fq.create=function(a,c){return new E.Fq(a,c)};
  155. E.ik=E.sa.extend({Lx:q,Ox:q,Mx:q,Nx:q,ctor:function(){var a=this;E.sa.prototype.ctor.call(this,E.sa.qn,E.ik.pc,function(c){var d=E.Kc;switch(c.WJ){case d.TG:a.Lx&&a.Lx(c);break;case d.qA:a.Ox&&a.Ox(c);break;case d.hH:a.Mx&&a.Mx(c);break;case d.Jz:a.Nx&&a.Nx(c)}})},k:function(){var a=new E.ik;a.Lx=this.Lx;a.Ox=this.Ox;a.Mx=this.Mx;a.Nx=this.Nx;return a},Zk:B(p)});E.ik.pc="__cc_mouse";E.ik.create=function(){return new E.ik};
  156. E.Zh=E.sa.extend({Jn:q,jt:r,rp:q,Ms:q,Ls:q,Ks:q,ctor:function(){E.sa.prototype.ctor.call(this,E.sa.ju,E.Zh.pc,q);this.Jn=[]},yka:u("jt"),k:function(){var a=new E.Zh;a.rp=this.rp;a.Ms=this.Ms;a.Ls=this.Ls;a.Ks=this.Ks;a.jt=this.jt;return a},Zk:function(){return!this.rp?(E.log(E.f.NU),r):p}});E.Zh.pc="__cc_touch_one_by_one";E.Zh.create=function(){return new E.Zh};
  157. E.Yh=E.sa.extend({Ns:q,Qs:q,Ps:q,Os:q,ctor:function(){E.sa.prototype.ctor.call(this,E.sa.Uz,E.Yh.pc,q)},k:function(){var a=new E.Yh;a.Ns=this.Ns;a.Qs=this.Qs;a.Ps=this.Ps;a.Os=this.Os;return a},Zk:function(){return this.Ns==q&&this.Qs==q&&this.Ps==q&&this.Os==q?(E.log(E.f.MU),r):p}});E.Yh.pc="__cc_touch_all_at_once";E.Yh.create=function(){return new E.Yh};
  158. E.sa.create=function(a){E.assert(a&&a.event,E.f.oR);var c=a.event;delete a.event;var d=q;c===E.sa.ju?d=new E.Zh:c===E.sa.Uz?d=new E.Yh:c===E.sa.qn?d=new E.ik:c===E.sa.Op?(d=new E.Fq(a.T_,a.Dw),delete a.T_,delete a.Dw):c===E.sa.nn?d=new E.hk:c===E.sa.rl&&(d=new E.gk(a.Dw),delete a.Dw);for(var e in a)d[e]=a[e];return d};E.AM=function(a){var c,d=a.length,e=Array(d);for(c=0;c<d;c+=1)e[c]=a[c];return e};E.OU=E.na.extend({Cf:q,If:q,KN:0,ctor:function(){this.Cf=[];this.If=[]},size:function(){return this.Cf.length+this.If.length},empty:function(){return 0===this.Cf.length&&0===this.If.length},push:function(a){0==a.vk?this.If.push(a):this.Cf.push(a)},b_:function(){this.If.length=0},a_:function(){this.Cf.length=0},clear:function(){this.If.length=0;this.Cf.length=0},Dca:A("Cf"),Gda:A("If")});
  159. E.su=function(a){var c=E.oc,d=a.jc;if(d===c.rl)return E.gk.pc;if(d===c.Op)return a.lB;if(d===c.nn)return E.hk.pc;if(d===c.qn)return E.ik.pc;d===c.iu&&E.log(E.f.su);return""};
  160. E.qa={Py:0,st:1,Rp:2,B7:3,ug:{},Cr:{},li:{},yv:{},kK:{},Go:[],Zq:[],Pl:0,ko:r,NK:0,cX:[E.tb.vt,E.tb.Sp],Uv:function(a){this.li[a.ta]!=q&&this.Zq.push(a);a=a.u;for(var c=0,d=a.length;c<d;c++)this.Uv(a[c])},up:function(a,c){var d=this.li[a.ta],e,f;if(d){e=0;for(f=d.length;e<f;e++)d[e].RC(p)}if(c===p){d=a.u;e=0;for(f=d.length;e<f;e++)this.up(d[e],p)}},Pj:function(a,c){var d=this.li[a.ta],e,f;if(d){e=0;for(f=d.length;e<f;e++)d[e].RC(r)}this.Uv(a);if(c===p){d=a.u;e=0;for(f=d.length;e<f;e++)this.Pj(d[e],
  161. p)}},UI:function(a){0===this.Pl?this.bK(a):this.Go.push(a)},bK:function(a){var c=a.ji,d=this.ug[c];d||(d=new E.OU,this.ug[c]=d);d.push(a);0==a.vk?(this.Mk(c,this.Rp),c=a.gf,c==q&&E.log(E.f.M_),this.eV(c,a),c.qh&&this.Pj(c)):this.Mk(c,this.st)},yB:function(a){return this.ug[a]},cZ:function(){if(0!=this.Zq.length){for(var a=this.Zq,c,d,e=this.li,f=0,g=a.length;f<g;f++)if(c=e[a[f].ta])for(var h=0,m=c.length;h<m;h++)(d=c[h])&&this.Mk(d.ji,this.Rp);this.Zq.length=0}},iL:function(a){if(a)for(var c,d=0;d<
  162. a.length;)c=a[d],c.Fr(r),c.gf!=q&&(this.oJ(c.gf,c),c.Gr(q)),0===this.Pl?E.Ke(a,c):++d},bm:function(a){var c=this.ug[a];if(c){var d=c.Cf;this.iL(c.If);this.iL(d);delete this.Cr[a];this.Pl||(c.clear(),delete this.ug[a])}for(var d=this.Go,e,c=0;c<d.length;)(e=d[c])&&e.ji==a?E.Ke(d,e):++c},ZC:function(a){var c=this.Py,d=this.Cr;d[a]&&(c=d[a]);c!=this.Py&&(d[a]=this.Py,c&this.st&&this.PY(a),c&this.Rp&&((c=E.B.$c)?this.RY(a,c):d[a]=this.Rp))},RY:function(a,c){var d=this.yB(a);if(d){var e=d.If;e&&0!==e.length&&
  163. (this.NK=0,this.yv={},this.GD(c,p),d.If.sort(this.OY))}},OY:function(a,c){var d=E.qa.yv;return d[c.gf.ta]-d[a.gf.ta]},PY:function(a){if(a=this.ug[a]){var c=a.Cf;if(c&&0!==c.length){c.sort(this.QY);for(var d=0,e=c.length;d<e&&!(0<=c[d].vk);)++d;a.KN=d}}},QY:function(a,c){return a.vk-c.vk},YB:function(a){if(a=this.ug[a]){var c=a.Cf,d=a.If,e,f;if(d)for(e=0;e<d.length;)f=d[e],f.jf?++e:E.Ke(d,f);if(c)for(e=0;e<c.length;)f=c[e],f.jf?++e:E.Ke(c,f);d&&0===d.length&&a.b_();c&&0===c.length&&a.a_()}},rw:function(a){var c=
  164. this.Pl;E.assert(0<c,E.f.pR);a.jc==E.oc.iu?(this.YB(E.Zh.pc),this.YB(E.Yh.pc)):this.YB(E.su(a));if(!(1<c)){E.assert(1==c,E.f.qR);a=this.ug;var c=this.Cr,d;for(d in a)a[d].empty()&&(delete c[d],delete a[d]);d=this.Go;if(0!==d.length){a=0;for(c=d.length;a<c;a++)this.bK(d[a]);this.Go.length=0}}},BX:function(a,c){if(!a.dX)return r;var d=c.event,e=c.hP;d.KC(a.gf);var f=r,g,h=d.sk,m=E.jg.jn;if(h==m.By)a.rp&&(f=a.rp(e,d))&&a.jf&&a.Jn.push(e);else if(0<a.Jn.length&&-1!=(g=a.Jn.indexOf(e)))f=p,h===m.jz&&a.Ms?
  165. a.Ms(e,d):h===m.Sy?(a.Ls&&a.Ls(e,d),a.jf&&a.Jn.splice(g,1)):h===m.Iy&&(a.Ks&&a.Ks(e,d),a.jf&&a.Jn.splice(g,1));return d.Rl?(E.qa.rw(d),p):f&&a.jf&&a.jt?(c.d3&&c.touches.splice(e,1),p):r},NV:function(a){this.ZC(E.Zh.pc);this.ZC(E.Yh.pc);var c=this.yB(E.Zh.pc),d=this.yB(E.Yh.pc);if(!(q==c&&q==d)){var e=a.Vk,f=E.AM(e),g={event:a,d3:c&&d,touches:f,hP:q};if(c)for(var h=0;h<e.length;h++)if(g.hP=e[h],this.dB(c,this.BX,g),a.Rl)return;if(d&&0<f.length&&(this.dB(d,this.DX,{event:a,touches:f}),a.Rl))return;
  166. this.rw(a)}},DX:function(a,c){if(!a.jf)return r;var d=E.jg.jn,e=c.event,f=c.touches,g=e.sk;e.KC(a.gf);g==d.By&&a.Ns?a.Ns(f,e):g==d.jz&&a.Qs?a.Qs(f,e):g==d.Sy&&a.Ps?a.Ps(f,e):g==d.Iy&&a.Os&&a.Os(f,e);return e.Rl?(E.qa.rw(e),p):r},eV:function(a,c){var d=this.li[a.ta];d||(d=[],this.li[a.ta]=d);d.push(c)},oJ:function(a,c){var d=this.li[a.ta];d&&(E.Ke(d,c),0===d.length&&delete this.li[a.ta])},dB:function(a,c,d){var e=r,f=a.Cf,g=a.If,h=0,m;if(f&&0!==f.length)for(;h<a.KN;++h)if(m=f[h],m.isEnabled()&&!m.ic&&
  167. m.jf&&c(m,d)){e=p;break}if(g&&!e)for(a=0;a<g.length;a++)if(m=g[a],m.isEnabled()&&!m.ic&&m.jf&&c(m,d)){e=p;break}if(f&&!e)for(;h<f.length&&!(m=f[h],m.isEnabled()&&!m.ic&&m.jf&&c(m,d));++h);},Mk:function(a,c){var d=this.Cr;d[a]=d[a]==q?c:c|d[a]},GD:function(a,c){var d=a.u,e=0,f=d.length,g=this.kK,h=this.li;if(0<f){for(var m;e<f;e++)if((m=d[e])&&0>m.Db)this.GD(m,r);else break;h[a.ta]!=q&&(g[a.dj]||(g[a.dj]=[]),g[a.dj].push(a.ta));for(;e<f;e++)(m=d[e])&&this.GD(m,r)}else h[a.ta]!=q&&(g[a.dj]||(g[a.dj]=
  168. []),g[a.dj].push(a.ta));if(c){var d=[],n;for(n in g)d.push(n);d.sort(this.SY);n=d.length;m=this.yv;for(e=0;e<n;e++){f=g[d[e]];for(h=0;h<f.length;h++)m[f[h]]=++this.NK}this.kK={}}},SY:function(a,c){return a-c},addListener:function(a,c){E.assert(a&&c,E.f.O_);if(a instanceof E.sa){if(a.jf){E.log(E.f.Q_);return}}else E.assert("number"!==typeof c,E.f.P_),a=E.sa.create(a);a.Zk()&&("number"==typeof c?0==c?E.log(E.f.N_):(a.Gr(q),a.LC(c),a.Fr(p),a.RC(r),this.UI(a)):(a.Gr(c),a.LC(0),a.Fr(p),this.UI(a)))},MD:function(a,
  169. c){var d=E.Fq.create(a,c);this.addListener(d,1);return d},removeListener:function(a){if(a!=q){var c,d=this.ug,e;for(e in d){var f=d[e],g=f.Cf;(c=this.jL(f.If,a))?this.Mk(a.ji,this.Rp):(c=this.jL(g,a))&&this.Mk(a.ji,this.st);f.empty()&&(delete this.Cr[a.ji],delete d[e]);if(c)break}if(!c){c=this.Go;d=0;for(e=c.length;d<e;d++)if(f=c[d],f==a){E.Ke(c,f);break}}}},jL:function(a,c){if(a==q)return r;for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f==c)return f.Fr(r),f.gf!=q&&(this.oJ(f.gf,f),f.Gr(q)),0==this.Pl&&
  170. E.Ke(a,f),p}return r},UO:function(a,c){if(a instanceof E.m){delete this.yv[a.ta];E.Ke(this.Zq,a);var d=this.li[a.ta];if(d){for(var e=E.AM(d),d=0;d<e.length;d++)this.removeListener(e[d]);e.length=0;e=this.Go;for(d=0;d<e.length;){var f=e[d];f.gf==a?(f.Gr(q),f.Fr(r),e.splice(d,1)):++d}if(c===p){e=a.u;d=0;for(f=e.length;d<f;d++)this.UO(e[d],p)}}}else a==E.sa.ju?this.bm(E.Zh.pc):a==E.sa.Uz?this.bm(E.Yh.pc):a==E.sa.qn?this.bm(E.ik.pc):a==E.sa.rl?this.bm(E.gk.pc):a==E.sa.nn?this.bm(E.hk.pc):E.log(E.f.R_)},
  171. Fia:function(a){this.bm(a)},Aia:function(){var a=this.ug,c=this.cX,d;for(d in a)-1===c.indexOf(d)&&this.bm(d)},jka:function(a,c){if(a!=q){var d=this.ug,e;for(e in d){var f=d[e].Cf;if(f&&-1!=f.indexOf(a)){a.gf!=q&&E.log(E.f.S_);a.vk!==c&&(a.LC(c),this.Mk(a.ji,this.st));break}}}},qe:u("ko"),isEnabled:A("ko"),dispatchEvent:function(a){if(this.ko){this.cZ();this.Pl++;(!a||!a.LE)&&b("event is undefined");if(a.jc==E.oc.iu)this.NV(a);else{var c=E.su(a);this.ZC(c);c=this.ug[c];c!=q&&this.dB(c,this.vX,a);
  172. this.rw(a)}this.Pl--}},vX:function(a,c){c.KC(a.gf);a.XB(c);return c.Rl},Gaa:function(a,c){var d=new E.Ti(a);d.setUserData(c);this.dispatchEvent(d)}};E.nR=E.oc.extend({QI:q,ctor:function(a){E.oc.prototype.ctor.call(this,E.oc.rl);this.QI=a}});E.XG=E.oc.extend({MB:0,yK:r,ctor:function(a,c){E.oc.prototype.ctor.call(this,E.oc.nn);this.MB=a;this.yK=c}});E.gk=E.sa.extend({Bv:q,ctor:function(a){this.Bv=a;var c=this;E.sa.prototype.ctor.call(this,E.sa.rl,E.gk.pc,function(a){c.Bv(a.QI,a)})},Zk:function(){E.assert(this.Bv,E.f.KU);return p},k:function(){return new E.gk(this.Bv)}});E.gk.pc="__cc_acceleration";E.gk.create=function(a){return new E.gk(a)};
  173. E.hk=E.sa.extend({Is:q,Js:q,ctor:function(){var a=this;E.sa.prototype.ctor.call(this,E.sa.nn,E.hk.pc,function(c){c.yK?a.Is&&a.Is(c.MB,c):a.Js&&a.Js(c.MB,c)})},k:function(){var a=new E.hk;a.Is=this.Is;a.Js=this.Js;return a},Zk:function(){return this.Is==q&&this.Js==q?(E.log(E.f.LU),r):p}});E.hk.pc="__cc_keyboard";E.hk.create=function(){return new E.hk};E.H.sA=function(){var a=E.m.prototype;a.rD=q;a.fD=q;a.CB=q;a.$i=q;a.ctor=function(){this.FB();var a=new E.ba;a.c[2]=a.c[3]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[14]=0;a.c[10]=a.c[15]=1;this.rD=a;this.CB=0;this.fD=new E.ba};a.Ia=function(){this.yj===r&&(this.yj=this.nv=p)};a.P=function(){if(this.kc){var a=E.l,d,e=E.Pb;e.stack.push(e.top);E.Gj(this.fD,e.top);e.top=this.fD;var f=this.grid;f&&f.kk&&f.hs();this.transform();var g=this.u;if(g&&0<g.length){var h=g.length;this.Sc();for(d=0;d<h;d++)if(g[d]&&
  174. 0>g[d].Db)g[d].P();else break;for(this.Z(a);d<h;d++)g[d]&&g[d].P()}else this.Z(a);this.arrivalOrder=0;f&&f.kk&&f.es(this);e.top=e.stack.pop()}};a.transform=function(){var a=this.rD,d=E.Pb.top,e=this.pp(),f=a.c;f[0]=e.a;f[4]=e.C;f[12]=e.Ja;f[1]=e.b;f[5]=e.J;f[13]=e.Ka;f[14]=this.$r;E.Ii(d,d,a);this.$i!=q&&!(this.grid!=q&&this.grid.rf())&&(a=this.Cb.x,d=this.Cb.y,0!==a||0!==d?(E.Nz||(a|=0,d|=0),E.lp(a,d),this.$i.Gs(),E.lp(-a,-d)):this.$i.Gs())};a.Ci=a.wW};E.H.wz=function(){var a=E.m.prototype;E.j(a,"x",a.Oe,a.zP);E.j(a,"y",a.Gg,a.AP);E.j(a,"width",a.eh,a.sj);E.j(a,"height",a.yk,a.rj);E.j(a,"anchorX",a.eW,a.HC);E.j(a,"anchorY",a.fW,a.IC);E.j(a,"skewX",a.o1,a.b5);E.j(a,"skewY",a.p1,a.c5);E.j(a,"zIndex",a.P0,a.vP);E.j(a,"vertexZ",a.y1,a.o5);E.j(a,"rotation",a.h1,a.aG);E.j(a,"rotationX",a.j1,a.Z4);E.j(a,"rotationY",a.k1,a.a5);E.j(a,"scale",a.l1,a.Qj);E.j(a,"scaleX",a.wN,a.ct);E.j(a,"scaleY",a.xN,a.dt);E.j(a,"children",a.r0);E.j(a,"childrenCount",a.s0);
  175. E.j(a,"parent",a.getParent,a.yP);E.j(a,"visible",a.n2,a.Ym);E.j(a,"running",a.l2);E.j(a,"ignoreAnchor",a.i2,a.gx);E.j(a,"actionManager",a.Pw,a.jP);E.j(a,"scheduler",a.Di,a.IP);E.j(a,"shaderProgram",a.GE,a.cG);E.j(a,"glServerState",a.G0,a.F4);E.j(a,"opacity",a.Fg,a.Ta);E.j(a,"opacityModifyRGB",a.Rf,a.Se);E.j(a,"cascadeOpacity",a.cO,a.nP);E.j(a,"color",a.Eg,a.Za);E.j(a,"cascadeColor",a.bO,a.mP)};E.mH=-1;E.OF=1;
  176. E.m=E.na.extend({Db:0,dj:0,$r:0,pj:0,dm:0,ja:1,La:1,wa:q,sh:0,th:0,u:q,kc:p,Lc:q,Cb:q,N:q,qh:r,Nc:q,gj:r,tag:E.mH,userData:q,userObject:q,yj:p,nv:p,qg:p,Fn:q,q$:q,mm:q,uK:q,Td:r,Gb:q,arrivalOrder:0,og:q,Jf:q,M9:q,sK:r,Iq:r,yu:q,ok:q,LB:r,uo:0,Rv:0,wb:"Node",XC:r,ro:"",hb:255,yg:255,za:q,Sd:q,ah:r,ci:r,s$:r,U9:0,FB:function(){this.Lc=L(0,0);this.Cb=L(0,0);this.N=P(0,0);this.wa=L(0,0);this.u=[];this.mm={a:1,b:0,C:0,J:1,Ja:0,Ka:0};var a=E.B;this.og=a.Pw();this.Jf=a.Di();this.sK=p;this.yu={a:1,b:0,C:0,
  177. J:1,Ja:0,Ka:0};E.SQ&&(this.ok=new E.SQ(this));this.yg=this.hb=255;this.za=E.color(255,255,255,255);this.Sd=E.color(255,255,255,255);this.ci=this.ah=r},U:function(){this.sK===r&&this.FB();return p},pg:function(a,c){if(a&&0!==a.length){var d,e=a.length,f;d=E.m.vf;switch(c){case d.$:for(d=0;d<e;d++)(f=a[d])&&f.$();break;case d.yb:for(d=0;d<e;d++)(f=a[d])&&f.yb();break;case d.Nh:for(d=0;d<e;d++)(f=a[d])&&f.Nh();break;case d.Le:for(d=0;d<e;d++)(f=a[d])&&f.Le();break;case d.Xe:for(d=0;d<e;d++)(f=a[d])&&
  178. f.Xe();break;case d.Tf:for(d=0;d<e;d++)(f=a[d])&&f.Tf();break;case d.Sc:for(d=0;d<e;d++)(f=a[d])&&f.Sc();break;default:E.assert(0,E.f.bS)}}},Ia:q,Ai:function(a){for(var c in a)this[c]=a[c]},o1:A("sh"),b5:function(a){this.sh=a;this.Ia()},p1:A("th"),c5:function(a){this.th=a;this.Ia()},vP:function(a){this.Db=a;this.Nc&&this.Nc.xp(this,a);E.qa.Uv(this)},Vv:u("Db"),P0:A("Db"),qea:function(){E.log(E.f.hS);return this.Db},ala:function(a){E.log(E.f.sS);this.vP(a)},Gja:function(a){this.dj!=a&&(this.dj=a,E.qa.Uv(this))},
  179. Jca:A("dj"),y1:A("$r"),o5:u("$r"),h1:function(){this.pj!==this.dm&&E.log(E.f.fS);return this.pj},aG:function(a){this.pj=this.dm=a;this.uo=0.017453292519943295*this.pj;this.Rv=0.017453292519943295*this.dm;this.Ia()},j1:A("pj"),Z4:function(a){this.pj=a;this.uo=0.017453292519943295*this.pj;this.Ia()},k1:A("dm"),a5:function(a){this.dm=a;this.Rv=0.017453292519943295*this.dm;this.Ia()},l1:function(){this.ja!==this.La&&E.log(E.f.gS);return this.ja},Qj:function(a,c){this.ja=a;this.La=c||0===c?c:a;this.Ia()},
  180. wN:A("ja"),ct:function(a){this.ja=a;this.Ia()},xN:A("La"),dt:function(a){this.La=a;this.Ia()},R:function(a,c){var d=this.wa;c===k?(d.x=a.x,d.y=a.y):(d.x=a,d.y=c);this.Ia()},Uw:function(){return L(this.wa)},Oe:function(){return this.wa.x},zP:function(a){this.wa.x=a;this.Ia()},Gg:function(){return this.wa.y},AP:function(a){this.wa.y=a;this.Ia()},s0:function(){return this.u.length},r0:A("u"),n2:A("kc"),Ym:function(a){this.kc!=a&&(this.kc=a)&&this.Ia()},Qba:function(){return L(this.Lc)},ll:function(a,
  181. c){var d=this.Lc;if(c===k){if(a.x===d.x&&a.y===d.y)return;d.x=a.x;d.y=a.y}else{if(a===d.x&&c===d.y)return;d.x=a;d.y=c}var e=this.Cb,f=this.N;e.x=f.width*d.x;e.y=f.height*d.y;this.Ia()},O9:A("Lc"),vL:function(a){var c=a.x;a=a.y;this.Lc.x!==c&&(this.Lc.x=c,this.Cb.x=this.N.width*c);this.Lc.y!==a&&(this.Lc.y=a,this.Cb.y=this.N.height*a);this.Ia()},eW:function(){return this.Lc.x},HC:function(a){this.Lc.x!==a&&(this.Lc.x=a,this.Cb.x=this.N.width*a,this.Ia())},fW:function(){return this.Lc.y},IC:function(a){this.Lc.y!==
  182. a&&(this.Lc.y=a,this.Cb.y=this.N.height*a,this.Ia())},Qw:function(){return L(this.Cb)},eh:function(){return this.N.width},sj:function(a){this.N.width=a;this.Cb.x=a*this.Lc.x;this.Ia()},yk:function(){return this.N.height},rj:function(a){this.N.height=a;this.Cb.y=a*this.Lc.y;this.Ia()},Ne:function(){return P(this.N)},Yd:function(a,c){var d=this.N;if(c===k){if(a.width===d.width&&a.height===d.height)return;d.width=a.width;d.height=a.height}else{if(a===d.width&&c===d.height)return;d.width=a;d.height=c}var e=
  183. this.Cb,f=this.Lc;e.x=d.width*f.x;e.y=d.height*f.y;this.Ia()},l2:A("qh"),getParent:A("Nc"),yP:u("Nc"),i2:A("gj"),gx:function(a){a!=this.gj&&(this.gj=a,this.Ia())},IE:A("tag"),py:u("tag"),N4:u("ro"),getName:A("ro"),getUserData:A("userData"),setUserData:u("userData"),lea:A("userObject"),Yka:function(a){this.userObject!=a&&(this.userObject=a)},kda:A("arrivalOrder"),Q4:function(a){if(NaN==this.arrivalOrder)debugger;this.arrivalOrder=a},Pw:function(){this.og||(this.og=E.B.Pw());return this.og},jP:function(a){this.og!=
  184. a&&(this.Zm(),this.og=a)},Di:function(){this.Jf||(this.Jf=E.B.Di());return this.Jf},IP:function(a){this.Jf!=a&&(this.wy(),this.Jf=a)},Z$:function(){E.log(E.f.dS);return this.o0()},o0:function(){return E.RX(W(0,0,this.N.width,this.N.height),this.Ci())},Le:function(){this.Zm();this.wy();E.qa.UO(this);this.pg(this.u,E.m.vf.Le)},Eh:function(a){var c=this.u;if(c!=q)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.tag==a)return e}return q},bca:function(a){if(!a)return E.log("Invalid name"),q;for(var c=this.u,
  185. d=0,e=c.length;d<e;d++)if(c[d].ro==a)return c[d];return q},T:function(a,c,d){c=c===k?a.Db:c;var e,f=r;switch(typeof d){case "undefined":d=k;e=a.ro;break;case "string":e=d;d=k;break;case "number":f=p,e=""}E.assert(a,E.f.cS);E.assert(a.Nc===q,"child already added. It can't be added again");this.oZ(a,c,d,e,f)},oZ:function(a,c,d,e,f){this.u||(this.u=[]);this.ZW(a,c);f?a.py(d):a.N4(e);a.yP(this);a.Q4(E.OF++);this.qh&&(a.$(),this.LB&&a.Nh());this.ah&&this.UJ();this.ci&&this.VJ()},JF:function(a){this.Nc&&
  186. (a==q&&(a=p),this.Nc.removeChild(this,a))},Gia:function(a){E.log(E.f.mS);this.JF(a)},removeChild:function(a,c){0!==this.u.length&&(c==q&&(c=p),-1<this.u.indexOf(a)&&this.JV(a,c),this.Ia())},IF:function(a,c){a===E.mH&&E.log(E.f.kS);var d=this.Eh(a);d==q?E.log(E.f.lS,a):this.removeChild(d,c)},yia:function(a){E.log(E.f.jS);this.Jg(a)},Jg:function(a){var c=this.u;if(c!=q){a==q&&(a=p);for(var d=0;d<c.length;d++){var e=c[d];e&&(this.qh&&(e.Tf(),e.yb()),a&&e.Le(),e.parent=q)}this.u.length=0}},JV:function(a,
  187. c){this.qh&&(a.Tf(),a.yb());c&&a.Le();a.parent=q;E.Ke(this.u,a)},ZW:function(a,c){this.Td=p;this.u.push(a);a.Vv(c)},xp:function(a,c){E.assert(a,E.f.nS);this.Td=p;a.arrivalOrder=E.OF;E.OF++;a.Vv(c);this.Ia()},Sc:function(){if(this.Td){var a=this.u,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.Db<a[e].Db)a[e+1]=a[e];else if(f.Db===a[e].Db&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.Td=r}},Z:t(),vy:function(){this.Nc!=q&&(this.Nc.vy(),this.Nc.transform())},
  188. $:function(){this.LB=r;this.qh=p;this.pg(this.u,E.m.vf.$);this.yp()},Nh:function(){this.LB=p;this.pg(this.u,E.m.vf.Nh)},Tf:function(){this.pg(this.u,E.m.vf.Tf)},yb:function(){this.qh=r;this.pause();this.pg(this.u,E.m.vf.yb)},Sa:function(a){E.assert(a,E.f.pS);this.actionManager.nZ(a,this,!this.qh);return a},Zm:function(){this.actionManager&&this.actionManager.SO(this)},Q5:function(a){this.actionManager.RO(a)},R5:function(a){a===E.en?E.log(E.f.tS):this.actionManager.P3(a,this)},uE:function(a){return a===
  189. E.en?(E.log(E.f.eS),q):this.actionManager.uE(a,this)},gda:function(){return this.actionManager.f3(this)},fP:function(){this.gP(0)},gP:function(a){this.scheduler.PF(this,a,!this.qh)},vG:function(){this.scheduler.ot(this)},dy:function(a,c,d,e){c=c||0;E.assert(a,E.f.qS);E.assert(0<=c,E.f.rS);d=d==q?E.sn:d;this.scheduler.eP(this,a,c,d,e||0,!this.qh)},Via:function(a,c){this.dy(a,0,0,c)},tG:function(a){a&&this.scheduler.gQ(this,a)},wy:function(){this.scheduler.uG(this)},Pia:function(){E.log(E.f.oS);this.yp()},
  190. yp:function(){this.scheduler.Pj(this);this.actionManager&&this.actionManager.Pj(this);E.qa.Pj(this)},Yha:function(){E.log(E.f.iS);this.pause()},pause:function(){this.scheduler.up(this);this.actionManager&&this.actionManager.up(this);E.qa.up(this)},$ia:function(a){this.yu=a;this.Iq=this.yj=p},b1:function(){this.nv&&(this.uK=E.fM(this.Ci()),this.nv=r);return this.uK},Vha:function(){return this.b1()},DE:function(){for(var a=this.Ci(),c=this.Nc;c!=q;c=c.parent)a=E.um(a,c.Ci());return a},Jx:function(){return this.DE()},
  191. IN:function(){return E.fM(this.DE())},Mla:function(){return this.IN()},fE:function(a){return E.JO(a,this.IN())},Hw:function(a){a=a||L(0,0);return E.JO(a,this.DE())},g_:function(a){return E.Gd(this.fE(a),this.Cb)},oaa:function(a){a=a||L(0,0);return this.Hw(E.Lj(a,this.Cb))},H9:function(a){a=this.Hw(a);return E.B.h_(a)},paa:function(a){return this.fE(a.rs())},qaa:function(a){a=a.rs();a=E.B.f_(a);return this.g_(a)},update:function(a){this.ok&&!this.ok.Oea()&&this.ok.P(a)},Xe:function(){this.pg(this.u,
  192. E.m.vf.Xe)},$x:t(),Ni:t(),u0:function(a){return this.ok.u0(a)},v$:function(a){this.ok.add(a)},Eia:function(a){return this.ok.remove(a)},zia:function(){this.ok.wia()},grid:q,ctor:q,P:q,transform:q,pp:function(){return this.Ci()},Ci:q,vi:function(){if(this.qg===r){this.qg=p;var a=this.Fn;a&&a!=this&&a.vi()}},JC:function(a){if(this.Fn!=a){this.Fn=a;for(var c=this.u,d=0,e=c.length;d<e;d++)c[d].JC(a)}},Km:function(){this.$i||(this.$i=new E.Pp);return this.$i},qs:A("grid"),G4:u("grid"),GE:A("Gb"),cG:u("Gb"),
  193. G0:A("CB"),F4:u("CB"),p0:function(){var a=W(0,0,this.N.width,this.N.height),c=this.Jx(),a=E.GF(a,this.Jx());if(!this.u)return a;for(var d=this.u,e=0;e<d.length;e++){var f=d[e];f&&f.kc&&(f=f.gr(c))&&(a=E.Xx(a,f))}return a},gr:function(a){var c=W(0,0,this.N.width,this.N.height);a=a==q?this.Ci():E.um(this.Ci(),a);c=E.GF(c,a);if(!this.u)return c;for(var d=this.u,e=0;e<d.length;e++){var f=d[e];f&&f.kc&&(f=f.gr(a))&&(c=E.Xx(c,f))}return c},wW:function(){if(this.yj){var a=this.wa.x,c=this.wa.y,d=this.Cb.x,
  194. e=-d,f=this.Cb.y,g=-f,h=this.ja,m=this.La;this.gj&&(a+=d,c+=f);var n=1,s=0,v=1,w=0;if(0!==this.pj||0!==this.dm)n=Math.cos(-this.uo),s=Math.sin(-this.uo),v=Math.cos(-this.Rv),w=Math.sin(-this.Rv);var y=this.sh||this.th;if(!y&&(0!==d||0!==f))a+=v*e*h+-s*g*m,c+=w*e*h+n*g*m;var x=this.mm;x.a=v*h;x.b=w*h;x.C=-s*m;x.J=n*m;x.Ja=a;x.Ka=c;if(y&&(x=E.um({a:1,b:Math.tan(E.Me(this.th)),C:Math.tan(E.Me(this.sh)),J:1,Ja:0,Ka:0},x),0!==d||0!==f))x=E.sZ(x,e,g);this.Iq&&(x=E.um(x,this.yu),this.Iq=r);this.mm=x;this.yj=
  195. r}return this.mm},$b:t(),Fg:A("yg"),A0:A("hb"),Ta:function(a){this.hb=this.yg=a;var c=255,d=this.Nc;d&&d.cascadeOpacity&&(c=d.hb);this.yc(c);this.za.a=this.Sd.a=a},yc:function(a){this.hb=this.yg*a/255;if(this.ci){a=this.u;for(var c=0;c<a.length;c++){var d=a[c];d&&d.yc(this.hb)}}},cO:A("ci"),nP:function(a){this.ci!==a&&((this.ci=a)?this.VJ():this.MV())},VJ:function(){var a=255,c=this.Nc;c&&c.cascadeOpacity&&(a=c.hb);this.yc(a)},MV:function(){this.hb=this.yg;for(var a=this.u,c=0;c<a.length;c++){var d=
  196. a[c];d&&d.yc(255)}},Eg:function(){var a=this.Sd;return E.color(a.r,a.g,a.b,a.a)},Sw:function(){var a=this.za;return E.color(a.r,a.g,a.b,a.a)},Za:function(a){var c=this.za,d=this.Sd;c.r=d.r=a.r;c.g=d.g=a.g;c.b=d.b=a.b;a=(a=this.Nc)&&a.cascadeColor?a.Sw():E.color.WHITE;this.Ic(a)},Ic:function(a){var c=this.za,d=this.Sd;c.r=0|d.r*a.r/255;c.g=0|d.g*a.g/255;c.b=0|d.b*a.b/255;if(this.ah){a=this.u;for(d=0;d<a.length;d++){var e=a[d];e&&e.Ic(c)}}},bO:A("ah"),mP:function(a){this.ah!==a&&((this.ah=a)?this.UJ():
  197. this.LV())},UJ:function(){var a;a=(a=this.Nc)&&a.cascadeColor?a.Sw():E.color.WHITE;this.Ic(a)},LV:function(){var a=this.za,c=this.Sd;a.r=c.r;a.g=c.g;a.b=c.b;for(var a=this.u,c=E.color.WHITE,d=0;d<a.length;d++){var e=a[d];e&&e.Ic(c)}},Se:t(),Rf:B(r)});E.m.create=function(){return new E.m};E.m.vf={$:1,yb:2,Le:3,Nh:4,Xe:5,Tf:6,Sc:7};
  198. E.A===E.Ba?(G=E.m.prototype,G.ctor=function(){this.FB()},G.Ia=function(){this.vi();this.yj===r&&(this.yj=this.nv=p)},G.P=function(a){if(this.kc){a=a||E.l;var c,d=this.u,e;a.save();this.transform(a);var f=d.length;if(0<f){this.Sc();for(c=0;c<f;c++)if(e=d[c],0>e.Db)e.P(a);else break;for(this.Z(a);c<f;c++)d[c].P(a)}else this.Z(a);this.qg=r;this.arrivalOrder=0;a.restore()}},G.transform=function(a){a=a||E.l;var c=E.view,d=this.Ci();a.transform(d.a,d.C,d.b,d.J,d.Ja*c.ja,-d.Ka*c.La)},G.Ci=function(){if(this.yj){var a=
  199. this.mm;a.Ja=this.wa.x;a.Ka=this.wa.y;var c=1,d=0;this.pj&&(c=Math.cos(this.uo),d=Math.sin(this.uo));a.a=a.J=c;a.b=-d;a.C=d;var e=this.ja,f=this.La,g=this.Cb.x,h=this.Cb.y,m=1E-6>e&&-1E-6<e?1E-6:e,n=1E-6>f&&-1E-6<f?1E-6:f;if(this.sh||this.th){var s=Math.tan(-this.sh*Math.PI/180),v=Math.tan(-this.th*Math.PI/180);Infinity===s&&(s=99999999);Infinity===v&&(v=99999999);var w=h*s*m,y=g*v*n;a.a=c+-d*v;a.b=c*s+-d;a.C=d+c*v;a.J=d*s+c;a.Ja+=c*w+-d*y;a.Ka+=d*w+c*y}if(1!==e||1!==f)a.a*=m,a.C*=m,a.b*=n,a.J*=n;
  200. a.Ja+=c*-g*m+-d*h*n;a.Ka-=d*-g*m+c*h*n;this.gj&&(a.Ja+=g,a.Ka+=h);this.Iq&&(this.mm=E.um(a,this.yu),this.Iq=r);this.yj=r}return this.mm},G=q):(E.assert("function"===typeof E.H.sA,E.f.cd,"BaseNodesWebGL.js"),E.H.sA(),delete E.H.sA);E.assert("function"===typeof E.H.wz,E.f.cd,"BaseNodesPropertyDefine.js");E.H.wz();delete E.H.wz;E.m.v8=0;E.m.x8=1;E.m.w8=2;E.m.y8=3;E.m.u8=4;E.Ri=E.m.extend({textureAtlas:q,quadsToDraw:0,no:0,CK:0,ii:0,jh:0,Kl:q,Oa:r,q:q,kv:r,wb:"AtlasNode",ctor:function(a,c,d,e){E.m.prototype.ctor.call(this);this.Kl=E.color.WHITE;this.q={src:E.bc,Q:E.ac};this.kv=r;e!==k&&this.X1(a,c,d,e)},Ip:function(){E.log(E.f.xQ)},Eg:function(){return this.Oa?this.Kl:E.m.prototype.Eg.call(this)},Se:function(a){var c=this.color;this.Oa=a;this.color=c},Rf:A("Oa"),Dh:A("q"),Qe:function(a,c){this.q=c===k?a:{src:a,Q:c}},fG:u("textureAtlas"),JE:A("textureAtlas"),zda:A("quadsToDraw"),
  201. kka:u("quadsToDraw"),Tk:q,uc:q,tD:q,Rq:q,X1:function(a,c,d,e){a||b("cc.AtlasNode.initWithTileFile(): title should not be null");a=E.Ea.Ec(a);return this.ra(a,c,d,e)},ra:q,GB:function(a,c,d,e){this.ii=c;this.jh=d;this.Oa=p;this.uc=a;if(!this.uc)return E.log(E.f.GG),r;this.Tk=this.uc;this.Gu();this.quadsToDraw=e;return p},HB:function(a,c,d,e){this.ii=c;this.jh=d;this.Kl=E.color.WHITE;this.Oa=p;this.q.src=E.bc;this.q.Q=E.ac;c=this.Sd;this.Rq=new Float32Array([c.r/255,c.g/255,c.b/255,this.yg/255]);this.textureAtlas=
  202. new E.Xh;this.textureAtlas.ra(a,e);if(!this.textureAtlas)return E.log(E.f.GG),r;this.Mf();this.VL();this.Gu();this.quadsToDraw=e;this.shaderProgram=E.Id.mc(E.Lz);this.tD=E.l.getUniformLocation(this.shaderProgram.Mm(),"u_color");return p},Z:q,cj:function(a){a=a||E.l;E.Hs(this);E.Ih(this.q.src,this.q.Q);this.tD&&this.Rq&&(a.uniform4fv(this.tD,this.Rq),this.textureAtlas.SM(this.quadsToDraw))},Za:q,hY:function(a){var c=this.Sd;if(!(c.r==a.r&&c.g==a.g&&c.b==a.b)){c=E.color(a.r,a.g,a.b);this.Kl=a;if(this.Oa){var d=
  203. this.hb;c.r=c.r*d/255;c.g=c.g*d/255;c.b=c.b*d/255}E.m.prototype.Za.call(this,a);this.be()}},be:function(){var a=this.Aa();if(a&&this.uc){var c=this.uc.Xa;if(c){var d=a.Xa,a=W(0,0,c.width,c.height);d instanceof HTMLCanvasElement?E.Im(c,this.za,a,d):(d=E.Im(c,this.za,a),a=new E.ca,a.Rc(d),a.ub(),this.$a(a))}}},iY:function(a){var c=E.color(a.r,a.g,a.b);this.Kl=a;var d=this.hb;this.Oa&&(c.r=c.r*d/255,c.g=c.g*d/255,c.b=c.b*d/255);E.m.prototype.Za.call(this,a);a=this.za;this.Rq=new Float32Array([a.r/255,
  204. a.g/255,a.b/255,d/255])},Ta:t(),PC:function(a){E.m.prototype.Ta.call(this,a);this.Oa&&(this.color=this.Kl)},QC:function(a){E.m.prototype.Ta.call(this,a);this.Oa?this.color=this.Kl:(a=this.za,this.Rq=new Float32Array([a.r/255,a.g/255,a.b/255,this.hb/255]))},Aa:q,hr:A("Tk"),BB:function(){return this.textureAtlas.texture},$a:q,UC:u("Tk"),VC:function(a){this.textureAtlas.texture=a;this.Mf();this.VL()},Gu:q,nV:function(){var a=this.texture.Ne();this.CK=0|a.height/this.jh;this.no=0|a.width/this.ii},oV:function(){var a=
  205. this.texture,c=a.Ne();this.kv&&(c=a.N);this.CK=0|c.height/this.jh;this.no=0|c.width/this.ii},Mf:function(){this.textureAtlas.texture.Ei()||(this.q.src=E.SRC_ALPHA,this.q.Q=E.ONE_MINUS_SRC_ALPHA)},VL:function(){this.Oa=this.textureAtlas.texture.Ei()},MC:u("kv")});G=E.Ri.prototype;
  206. E.A===E.W?(G.ra=G.HB,G.Z=G.cj,G.Za=G.iY,G.Ta=G.QC,G.Aa=G.BB,G.$a=G.VC,G.Gu=G.oV):(G.ra=G.GB,G.Z=E.m.prototype.Z,G.Za=G.hY,G.Ta=G.PC,G.Aa=G.hr,G.$a=G.UC,G.Gu=G.nV,E.fb.hw||(G.be=function(){var a,c=this.Aa();if(c&&this.uc&&(a=c.Xa)){var d=this.uc.Xa;if(c=E.Ea.Zw(d))d=W(0,0,d.width,d.height),a instanceof HTMLCanvasElement?E.Hm(a,c,this.za,d,a):(a=E.Hm(a,c,this.za,d),c=new E.ca,c.Rc(a),c.ub(),this.$a(c))}}));E.j(G,"opacity",G.Fg,G.Ta);E.j(G,"color",G.Eg,G.Za);E.j(G,"texture",G.Aa,G.$a);
  207. E.Ri.create=function(a,c,d,e){return new E.Ri(a,c,d,e)};E.H.yA=function(){E.ca=E.na.extend({e$:p,oi:q,nj:0,mj:0,ro:"",N:q,Ji:0,Ki:0,jv:r,eo:r,shaderProgram:q,tc:r,Xa:q,Ud:q,url:q,ib:q,ctor:function(){this.N=P(0,0);this.oi=E.ca.JM},HF:function(){this.Ud&&E.l.deleteTexture(this.Ud);E.V.Ni(this.url)},nN:A("oi"),pN:A("nj"),oN:A("mj"),getName:A("Ud"),Ne:function(){return P(this.N.width/E.qb(),this.N.height/E.qb())},eh:function(){return this.N.width/E.qb()},yk:function(){return this.N.height/E.qb()},v0:A("N"),U0:A("Ji"),K4:u("Ji"),V0:A("Ki"),L4:u("Ki"),GE:A("shaderProgram"),
  208. cG:u("shaderProgram"),Ei:A("jv"),G1:A("eo"),description:function(){return"\x3ccc.Texture2D | Name \x3d "+this.ro+" | Dimensions \x3d "+this.nj+" x "+this.mj+" | Coordinates \x3d ("+this.Ji+", "+this.Ki+")\x3e"},O3:t(),t2:aa(),zs:function(a,c,d,e,f){var g=E.ca,h=E.l,m=h.RGBA,n=h.UNSIGNED_BYTE,s=d*E.ca.KI[c]/8;0===s%8?h.pixelStorei(h.UNPACK_ALIGNMENT,8):0===s%4?h.pixelStorei(h.UNPACK_ALIGNMENT,4):0===s%2?h.pixelStorei(h.UNPACK_ALIGNMENT,2):h.pixelStorei(h.UNPACK_ALIGNMENT,1);this.Ud=h.createTexture();
  209. E.pe(this);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);switch(c){case g.Xi:m=h.RGBA;break;case g.qq:m=h.RGB;break;case g.Tt:n=h.UNSIGNED_SHORT_4_4_4_4;break;case g.St:n=h.UNSIGNED_SHORT_5_5_5_1;break;case g.pq:n=h.UNSIGNED_SHORT_5_6_5;break;case g.pz:m=h.LUMINANCE_ALPHA;break;case g.oq:m=h.ALPHA;break;
  210. case g.qz:m=h.LUMINANCE;break;default:E.assert(0,E.f.ZT)}h.texImage2D(h.TEXTURE_2D,0,m,d,e,0,m,n,a);this.N.width=f.width;this.N.height=f.height;this.nj=d;this.mj=e;this.oi=c;this.Ji=f.width/d;this.Ki=f.height/e;this.eo=this.jv=r;this.shaderProgram=E.Id.mc(E.uq);return this.tc=p},r_:function(a){var c=[0,this.Ki,this.Ji,this.Ki,0,0,this.Ji,0],d=this.nj*this.Ji,e=this.mj*this.Ki;a=[a.x,a.y,0,d+a.x,a.y,0,a.x,e+a.y,0,d+a.x,e+a.y,0];E.Fc(E.Ld|E.un);this.Gb.Jc();this.Gb.gt();E.pe(this);d=E.l;d.vertexAttribPointer(E.pb,
  211. 2,d.FLOAT,r,0,a);d.vertexAttribPointer(E.wd,2,d.FLOAT,r,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},u_:function(a){var c=[0,this.Ki,this.Ji,this.Ki,0,0,this.Ji,0];a=[a.x,a.y,a.x+a.width,a.y,a.x,a.y+a.height,a.x+a.width,a.y+a.height];E.Fc(E.Ld|E.un);this.Gb.Jc();this.Gb.gt();E.pe(this);var d=E.l;d.vertexAttribPointer(E.pb,2,d.FLOAT,r,0,a);d.vertexAttribPointer(E.wd,2,d.FLOAT,r,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},UN:function(a){if(a==q)return E.log(E.f.bU),r;var c=a.A1(),d=a.I0(),e=E.To.tr;if(c>e||
  212. d>e)return E.log(E.f.cU,c,d,e,e),r;this.tc=p;return this.TW(a,c,d)},Rc:function(a){a&&(this.Ud=E.l.createTexture(),this.Xa=a)},K0:A("Xa"),j2:A("tc"),ub:function(){if(E.Ov){if(!this.Xa){var a=E.V.Ed(this.url);if(!a)return;this.Rc(a)}this.Xa.width&&this.Xa.height&&(this.tc=p,a=E.l,E.pe(this),a.pixelStorei(a.UNPACK_ALIGNMENT,4),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.Xa),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,
  213. a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),this.shaderProgram=E.Id.mc(E.uq),E.pe(q),a=this.Xa.height,this.nj=this.N.width=this.Xa.width,this.mj=this.N.height=a,this.oi=E.ca.Xi,this.Ki=this.Ji=1,this.eo=this.jv=r,this.Nd())}},md:function(){E.log(E.f.hU);return q},R1:function(){E.log(E.f.aU);return r},T1:function(){E.log(E.f.eU);return r},U1:function(){E.log(E.f.gU);return r},h5:function(a){var c=E.l;E.assert(this.nj==
  214. E.Yj(this.nj)&&this.mj==E.Yj(this.mj)||a.E6==c.CLAMP_TO_EDGE&&a.F6==c.CLAMP_TO_EDGE,"WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");E.pe(this);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,a.dha);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,a.aha);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,a.E6);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,a.F6)},p4:function(){var a=E.l;E.pe(this);this.eo?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR_MIPMAP_NEAREST):
  215. a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},QF:function(){var a=E.l;E.pe(this);this.eo?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},generateMipmap:function(){E.assert(this.nj==E.Yj(this.nj)&&this.mj==E.Yj(this.mj),"Mimpap texture only works in POT textures");E.pe(this);
  216. E.l.generateMipmap(E.l.TEXTURE_2D);this.eo=p},V5:function(){return E.ca.QU[this.oi]},TZ:function(a){a=a||this.oi;var c=E.ca.KI[a];if(c!=q)return c;E.log(E.f.YT,a);return-1},TW:function(a,c,d){var e=E.ca,f=a.getData(),g=q,g=q,h=a.yea(),m=P(a.A1(),a.I0()),n=e.JM,s=a.Vba();h||(8<=s?n=e.qq:(E.log(E.f.VT),n=e.pq));var v=c*d;if(n==e.pq)if(h){f=new Uint16Array(c*d);g=a.getData();for(s=0;s<v;++s)f[s]=(g[s]>>0&255)>>3<<11|(g[s]>>8&255)>>2<<5|(g[s]>>16&255)>>3<<0}else{f=new Uint16Array(c*d);g=a.getData();for(s=
  217. 0;s<v;++s)f[s]=(g[s]&255)>>3<<11|(g[s]&255)>>2<<5|(g[s]&255)>>3<<0}else if(n==e.Tt){f=new Uint16Array(c*d);g=a.getData();for(s=0;s<v;++s)f[s]=(g[s]>>0&255)>>4<<12|(g[s]>>8&255)>>4<<8|(g[s]>>16&255)>>4<<4|(g[s]>>24&255)>>4<<0}else if(n==e.St){f=new Uint16Array(c*d);g=a.getData();for(s=0;s<v;++s)f[s]=(g[s]>>0&255)>>3<<11|(g[s]>>8&255)>>3<<6|(g[s]>>16&255)>>3<<1|(g[s]>>24&255)>>7<<0}else if(n==e.oq){f=new Uint8Array(c*d);g=a.getData();for(s=0;s<v;++s)f[s]=g>>24&255}if(h&&n==e.qq){g=a.getData();f=new Uint8Array(3*
  218. c*d);for(s=0;s<v;++s)f[3*s]=g>>0&255,f[3*s+1]=g>>8&255,f[3*s+2]=g>>16&255}this.zs(f,n,c,d,m);a.getData();this.jv=a.Vea();return p},Vd:function(a,c){this.ib||(this.ib=[]);this.ib.push({Bh:a,Pf:c})},S3:function(a){if(this.ib)for(var c=this.ib,d=0;d<c.length;d++)c[d].Pf==a&&c.splice(d,1)},Nd:function(){if(this.ib){for(var a=this.ib,c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}}})};
  219. E.H.zA=function(){var a=E.Xh.prototype;a.fm=function(){var a=E.l;this.sc[0]=a.createBuffer();this.sc[1]=a.createBuffer();this.am=a.createBuffer();this.wv()};a.wv=function(){var a=E.l;a.bindBuffer(a.ARRAY_BUFFER,this.am);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)};a.SM=function(a){var d;d=0;if(!(0===a||!this.texture||!this.texture.tc)){var e=E.l;E.pe(this.texture);E.Fc(E.Gl);e.bindBuffer(e.ARRAY_BUFFER,
  220. this.am);this.dirty&&e.bufferData(e.ARRAY_BUFFER,this.Zc,e.DYNAMIC_DRAW);e.vertexAttribPointer(E.pb,3,e.FLOAT,r,24,0);e.vertexAttribPointer(E.xe,4,e.UNSIGNED_BYTE,p,24,12);e.vertexAttribPointer(E.wd,2,e.FLOAT,r,24,16);this.dirty&&(this.dirty=r);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.sc[1]);E.QH?e.drawElements(e.TRIANGLE_STRIP,6*a,e.UNSIGNED_SHORT,6*d*this.lb.BYTES_PER_ELEMENT):e.drawElements(e.TRIANGLES,6*a,e.UNSIGNED_SHORT,6*d*this.lb.BYTES_PER_ELEMENT);E.pf++}}};
  221. E.H.AA=function(){var a=E.Ea;a.ub=function(a){var d=this.Dc;E.Ov||(d=this.sr);var e=d[a];e||(e=d[a]=new E.ca,e.url=a);e.ub()};a.Ec=function(a,d,e){E.assert(a,E.f.XT);var f=this.Dc;E.Ov||(f=this.sr);var g=f[a]||f[E.V.Il[a]];if(g)return d&&d.call(e),g;E.V.Ed(a)||(E.V.bJ(a)?E.V.load(a,function(){d&&d.call(e)}):E.V.Nf[a]=E.V.Es(a,function(e,f){if(e)return d?d(e):e;E.Ea.ub(a);d&&d(q,f)}));g=f[a]=new E.ca;g.url=a;return g};delete a};E.H.Cz=function(){var a=E.ca;a.G8=function(a){E.KS=a};a.Xi=2;a.qq=3;a.pq=4;a.oq=5;a.qz=6;a.pz=7;a.Tt=8;a.St=7;a.rH=9;a.qH=10;a.BS=a.Xi;var c=E.ca.QU={};c[a.Xi]="RGBA8888";c[a.qq]="RGB888";c[a.pq]="RGB565";c[a.oq]="A8";c[a.qz]="I8";c[a.pz]="AI88";c[a.Tt]="RGBA4444";c[a.St]="RGB5A1";c[a.rH]="PVRTC4";c[a.qH]="PVRTC2";c=E.ca.KI={};c[a.Xi]=32;c[a.qq]=24;c[a.pq]=16;c[a.oq]=8;c[a.qz]=8;c[a.pz]=16;c[a.Tt]=16;c[a.St]=16;c[a.rH]=4;c[a.qH]=3;c=E.ca.prototype;E.j(c,"name",c.getName);E.j(c,"pixelFormat",c.nN);
  222. E.j(c,"pixelsWidth",c.pN);E.j(c,"pixelsHeight",c.oN);E.j(c,"width",c.eh);E.j(c,"height",c.yk);a.JM=a.BS};E.H.Dz=function(){var a=E.Xh.prototype;E.j(a,"totalQuads",a.HN);E.j(a,"capacity",a.fN);E.j(a,"quads",a.rN,a.DP)};E.M6=51;E.P6=19;E.R6=18;E.O6=50;E.L6=34;E.J6=35;E.K6=33;E.N6=49;E.Q6=17;E.KS=r;
  223. E.A===E.Ba?E.ca=E.na.extend({N:q,tc:r,Xa:q,ib:q,url:q,ctor:function(){this.N=P(0,0);this.tc=r;this.Xa=q},pN:function(){return this.N.width},oN:function(){return this.N.height},Ne:function(){var a=E.qb();return P(this.N.width/a,this.N.height/a)},eh:function(){return this.N.width/E.qb()},yk:function(){return this.N.height/E.qb()},v0:A("N"),Rc:function(a){a&&(this.Xa=a)},K0:A("Xa"),j2:A("tc"),ub:function(){if(!this.tc){if(!this.Xa){var a=E.V.Ed(this.url);if(!a)return;this.Rc(a)}this.tc=p;a=this.Xa;this.N.width=
  224. a.width;this.N.height=a.height;this.Nd()}},description:function(){return"\x3ccc.Texture2D | width \x3d "+this.N.width+" height "+this.N.height+"\x3e"},zs:B(r),UN:B(r),md:B(r),HF:t(),getName:B(q),U0:B(1),K4:t(),V0:B(1),L4:t(),nN:B(q),GE:B(q),cG:t(),Ei:B(r),G1:B(r),O3:t(),t2:aa(),r_:t(),u_:t(),R1:function(){E.log(E.f.$T);return r},T1:function(){E.log(E.f.dU);return r},U1:function(){E.log(E.f.fU);return r},h5:t(),p4:t(),QF:t(),generateMipmap:t(),V5:B(""),TZ:B(-1),Vd:function(a,c){this.ib||(this.ib=[]);
  225. this.ib.push({Bh:a,Pf:c})},S3:function(a){if(this.ib)for(var c=this.ib,d=0;d<c.length;d++)c[d].Pf==a&&c.splice(d,1)},Nd:function(){if(this.ib){for(var a=this.ib,c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}}}):(E.assert("function"===typeof E.H.yA,E.f.cd,"TexturesWebGL.js"),E.H.yA(),delete E.H.yA);E.assert("function"===typeof E.H.Cz,E.f.cd,"TexturesPropertyDefine.js");E.H.Cz();delete E.H.Cz;E.Ea={Dc:{},Rr:{},oD:0|1E3*Math.random(),sr:{},YW:function(){var a,c=this.sr,d=this.Dc;for(a in c){var e=c[a];e.ub();d[a]=e}this.sr={}},z$:function(){E.log(E.f.a6)},w$:function(){E.log(E.f.Y5)},description:function(){return"\x3cTextureCache | Number of textures \x3d "+this.Dc.length+"\x3e"},$m:function(a){return this.Dc[a]||this.Dc[E.V.Il[a]]},M0:function(a){for(var c in this.Dc)if(this.Dc[c]==a)return c;return q},bW:function(){this.oD++;return"_textureKey_"+this.oD},Zw:function(a){var c=this.M0(a);
  226. c||(c=a instanceof HTMLImageElement?a.src:this.bW());this.Rr[c]||(this.Rr[c]=E.$o(a));return this.Rr[c]},y$:function(){E.log(E.f.Z5)},Cia:function(){var a=this.Dc,c;for(c in a)a[c]&&a[c].HF();this.Dc={}},Mia:function(a){if(a){var c=this.Dc,d;for(d in c)c[d]==a&&(c[d].HF(),delete c[d])}},Nia:function(a){a!=q&&this.Dc[a]&&delete this.Dc[a]},VZ:function(a,c){if(c instanceof E.ca)this.Dc[a]=c;else{var d=new E.ca;d.Rc(c);d.ub();this.Dc[a]=d}},E$:function(a,c){E.assert(a,E.f.c6);if(c&&this.Dc[c])return this.Dc[c];
  227. var d=new E.ca;d.UN(a);c!=q&&d!=q?this.Dc[c]=d:E.log(E.f.b6);return d},Paa:function(){var a=0,c=0,d=this.Dc,e;for(e in d){var f=d[e];a++;f.Xa instanceof HTMLImageElement?E.log(E.f.d6,e,f.Xa.src,f.pixelsWidth,f.pixelsHeight):E.log(E.f.ZP,e,f.pixelsWidth,f.pixelsHeight);c+=4*f.pixelsWidth*f.pixelsHeight}d=this.Rr;for(e in d){var f=d[e],g;for(g in f){var h=f[g];a++;E.log(E.f.ZP,e,h.width,h.height);c+=4*h.width*h.height}}E.log(E.f.e6,a,c/1024,(c/1048576).toFixed(2))},nk:function(){this.Dc={};this.Rr=
  228. {};this.oD=0|1E3*Math.random();this.sr={}}};E.A===E.Ba?(G=E.Ea,G.ub=function(a){var c=this.Dc,d=c[a];d||(d=c[a]=new E.ca,d.url=a);d.ub()},G.Ec=function(a,c,d){E.assert(a,E.f.WT);var e=this.Dc,f=e[a]||e[E.V.Il[a]];if(f)return c&&c.call(d),f;f=e[a]=new E.ca;f.url=a;E.V.Ed(a)?f.ub():E.V.bJ(a)?E.V.load(a,function(){c&&c.call(d)}):E.V.Nf[a]=E.V.Es(a,function(d,e){if(d)return c?c(d):d;E.Ea.ub(a);c&&c(q,e)});return f},G=q):(E.assert("function"===typeof E.H.AA,E.f.cd,"TexturesWebGL.js"),E.H.AA(),delete E.H.AA);E.Xh=E.na.extend({dirty:r,texture:q,lb:q,sc:q,xd:0,Ac:q,Zc:q,am:q,Hf:q,ctor:function(a,c){this.sc=[];"string"==typeof a?this.bl(a,c):a instanceof E.ca&&this.ra(a,c)},HN:A("Ma"),fN:A("xd"),Aa:A("texture"),$a:u("texture"),pP:u("dirty"),eF:A("dirty"),rN:A("Ac"),DP:u("Ac"),FV:function(a,c){if(a)for(var d=0;d<a.length;d++)this.Wv(a[d],c+d)},Wv:function(a,c){var d=this.Ac;d[c]?(d[c].F=a.F,d[c].M=a.M,d[c].L=a.L,d[c].K=a.K):d[c]=new E.Bb(a.L,a.F,a.K,a.M,this.Zc,c*E.Bb.BYTES_PER_ELEMENT)},description:function(){return"\x3ccc.TextureAtlas | totalQuads \x3d"+
  229. this.Ma+"\x3e"},BL:function(){if(0!==this.xd)for(var a=this.lb,c=this.xd,d=0;d<c;d++)E.QH?(a[6*d+0]=4*d+0,a[6*d+1]=4*d+0,a[6*d+2]=4*d+2,a[6*d+3]=4*d+1,a[6*d+4]=4*d+3,a[6*d+5]=4*d+3):(a[6*d+0]=4*d+0,a[6*d+1]=4*d+1,a[6*d+2]=4*d+2,a[6*d+3]=4*d+3,a[6*d+4]=4*d+2,a[6*d+5]=4*d+1)},fm:function(){var a=E.l;this.sc[0]=a.createBuffer();this.sc[1]=a.createBuffer();this.am=a.createBuffer();this.wv()},wv:function(){var a=E.l;a.bindBuffer(a.ARRAY_BUFFER,this.am);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);
  230. a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)},bl:function(a,c){var d=E.Ea.Ec(a);if(d)return this.ra(d,c);E.log(E.f.iU,a);return r},ra:function(a,c){E.assert(a,E.f.jU);this.xd=c|=0;this.Ma=0;this.texture=a;this.Ac=[];this.lb=new Uint16Array(6*c);var d=E.Bb.BYTES_PER_ELEMENT;this.Zc=new ArrayBuffer(d*c);this.Hf=new Uint8Array(this.Zc);if((!this.Ac||!this.lb)&&0<c)return r;for(var e=this.Ac,f=0;f<c;f++)e[f]=new E.Bb(q,q,q,q,this.Zc,f*d);this.BL();
  231. this.fm();return this.dirty=p},yy:function(a,c){E.assert(a,E.f.tU);E.assert(0<=c&&c<this.xd,E.f.uU);this.Ma=Math.max(c+1,this.Ma);this.Wv(a,c);this.dirty=p},cF:function(a,c){E.assert(c<this.xd,E.f.mU);this.Ma++;if(this.Ma>this.xd)E.log(E.f.YH);else{var d=E.Bb.BYTES_PER_ELEMENT,e=c*d,f=(this.Ma-1-c)*d;this.Ac[this.Ma-1]=new E.Bb(q,q,q,q,this.Zc,(this.Ma-1)*d);this.Hf.set(this.Hf.subarray(e,e+f),e+d);this.Wv(a,c);this.dirty=p}},Fea:function(a,c,d){d=d||a.length;E.assert(c+d<=this.xd,E.f.nU);var e=E.Bb.BYTES_PER_ELEMENT;
  232. this.Ma+=d;if(this.Ma>this.xd)E.log(E.f.YH);else{var f=c*e,g=(this.Ma-1-c-d)*e,h=this.Ma-1-d,m;for(m=0;m<d;m++)this.Ac[h+m]=new E.Bb(q,q,q,q,this.Zc,(this.Ma-1)*e);this.Hf.set(this.Hf.subarray(f,f+g),f+e*d);for(m=0;m<d;m++)this.Wv(a[m],c+m);this.dirty=p}},Eea:function(a,c){if(a!==c){E.assert(0<=c||c<this.Ma,E.f.kU);E.assert(0<=a||a<this.Ma,E.f.lU);var d=E.Bb.BYTES_PER_ELEMENT,e=this.Hf,f=e.subarray(a*d,d),g;a>c?(g=c*d,e.set(e.subarray(g,g+(a-c)*d),g+d),e.set(f,g)):(g=(a+1)*d,e.set(e.subarray(g,g+
  233. (c-a)*d),g-d),e.set(f,c*d));this.dirty=p}},VO:function(a){E.assert(a<this.Ma,E.f.rU);var c=E.Bb.BYTES_PER_ELEMENT;this.Ma--;this.Ac.length=this.Ma;if(a!==this.Ma){var d=(a+1)*c;this.Hf.set(this.Hf.subarray(d,d+(this.Ma-a)*c),d-c)}this.dirty=p},U3:function(a,c){E.assert(a+c<=this.Ma,E.f.sU);this.Ma-=c;if(a!==this.Ma){var d=E.Bb.BYTES_PER_ELEMENT,e=(a+c)*d;this.Hf.set(this.Hf.subarray(e,e+(this.Ma-a)*d),a*d)}this.dirty=p},TO:function(){this.Ma=this.Ac.length=0},Mk:u("dirty"),LF:function(a){if(a==this.xd)return p;
  234. var c=E.Bb.BYTES_PER_ELEMENT,d=this.xd;this.Ma=Math.min(this.Ma,a);var e=this.xd=0|a,f=this.Ma;if(this.Ac==q){this.Ac=[];this.Zc=new ArrayBuffer(c*e);this.Hf=new Uint8Array(this.Zc);for(a=0;a<e;a++)this.Ac=new E.Bb(q,q,q,q,this.Zc,a*c)}else{var g,h,m=this.Ac;if(e>d){g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new E.Bb(m[a].L,m[a].F,m[a].K,m[a].M,h,a*c);for(;a<e;a++)g[a]=new E.Bb(q,q,q,q,h,a*c)}else{f=Math.max(f,e);g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new E.Bb(m[a].L,m[a].F,m[a].K,
  235. m[a].M,h,a*c)}this.Hf=new Uint8Array(h);this.Ac=g;this.Zc=h}this.lb==q?this.lb=new Uint16Array(6*e):e>d?(c=new Uint16Array(6*e),c.set(this.lb,0),this.lb=c):this.lb=this.lb.subarray(0,6*e);this.BL();this.wv();return this.dirty=p},ON:function(a){this.Ma+=a},wO:function(a,c,d){if(d===k){if(d=c,c=this.Ma-a,E.assert(d+(this.Ma-a)<=this.xd,E.f.oU),0===c)return}else if(E.assert(d+c<=this.Ma,E.f.pU),E.assert(a<this.Ma,E.f.qU),a==d)return;var e=E.Bb.BYTES_PER_ELEMENT,f=a*e,g=c*e,h=this.Hf,m=h.subarray(f,f+
  236. g),n=d*e;d<a?(c=d*e,h.set(h.subarray(c,c+(a-d)*e),c+g)):(c=(a+c)*e,h.set(h.subarray(c,c+(d-a)*e),f));h.set(m,n);this.dirty=p},YM:function(a,c){for(var d=c*E.Bb.BYTES_PER_ELEMENT,e=new Uint8Array(this.Zc,a*E.Bb.BYTES_PER_ELEMENT,d),f=0;f<d;f++)e[f]=0},TM:function(){this.SM(this.Ma)},f$:function(){var a=E.l;this.sc&&(this.sc[0]&&a.deleteBuffer(this.sc[0]),this.sc[1]&&a.deleteBuffer(this.sc[1]));this.am&&a.deleteBuffer(this.am)}});G=E.Xh.prototype;E.j(G,"totalQuads",G.HN);E.j(G,"capacity",G.fN);
  237. E.j(G,"quads",G.rN,G.DP);E.Xh.create=function(a,c){return new E.Xh(a,c)};E.Xh.gE=E.Xh.create;E.A===E.W&&(E.assert("function"===typeof E.H.zA,E.f.cd,"TexturesWebGL.js"),E.H.zA(),delete E.H.zA);E.assert("function"===typeof E.H.Dz,E.f.cd,"TexturesPropertyDefine.js");E.H.Dz();delete E.H.Dz;E.Vh=E.m.extend({wb:"Scene",ctor:function(){E.m.prototype.ctor.call(this);this.gj=p;this.ll(0.5,0.5);this.Yd(E.B.oa())}});E.Vh.create=function(){return new E.Vh};E.iz=E.Vh.extend({Bk:q,EK:0,ZA:0,Wc:q,wb:"LoaderScene",U:function(){var a=this,c=220,d=a.kV=E.Uc.create(E.color(0,0,0,255));d.R(E.dn.RD);a.T(d,0);var e=24,f=-c/2+100;E.LK&&(E.V.Es(E.LK,{dF:r},function(d,e){c=e.height;a.UW(e,E.dn.Ew)}),e=14,f=-c/2-10);e=a.Wc=E.S.create("Loading... 0%","Arial",e);e.R(E.Lj(E.dn.Ew,L(0,f)));e.Za(E.color(180,180,180));d.T(this.Wc,10);return p},UW:function(a,c){var d=this.p$=new E.ca;d.Rc(a);d.ub();d=this.Z9=E.D.create(d);d.Qj(E.qb());d.x=c.x;d.y=c.y;this.kV.T(d,10)},$:function(){E.m.prototype.$.call(this);
  238. this.dy(this.IL,0.3)},yb:function(){E.m.prototype.yb.call(this);this.Wc.od("Loading... 0%")},W1:function(a,c){"string"==typeof a&&(a=[a]);this.a4=a||[];this.Wd=c},IL:function(){var a=this;a.tG(a.IL);var c=a.a4;a.EK=c.length;a.ZA=0;E.V.load(c,function(c,e){a.ZA=e},function(){a.Wd&&a.Wd()});a.dy(a.WL)},WL:function(){var a=this.ZA,c=this.EK,d;d=Math.min(100*(a/c)|0,100);this.Wc.od("Loading... "+d+"%");a>=c&&this.tG(this.WL)}});
  239. E.iz.FF=function(a,c){var d=E;d.Fs||(d.Fs=new E.iz,d.Fs.U());d.Fs.W1(a,c);E.B.kl(d.Fs);return d.Fs};E.H.hz=function(){var a=E.fc.prototype;a.lM=t();a.fQ=t();a.P=E.m.prototype.P};
  240. E.H.vA=function(){var a=E.Uc.prototype;a.$v=q;a.cD=q;a.ED=q;a.XA=q;a.eD=q;a.dD=q;a.ctor=function(a,d,e){this.eD=new ArrayBuffer(32);this.dD=new ArrayBuffer(16);var f=this.eD,g=this.dD,h=E.Ub.BYTES_PER_ELEMENT,m=E.uf.BYTES_PER_ELEMENT;this.$v=[new E.Ub(0,0,f,0),new E.Ub(0,0,f,h),new E.Ub(0,0,f,2*h),new E.Ub(0,0,f,3*h)];this.cD=[E.color(0,0,0,255,g,0),E.color(0,0,0,255,g,m),E.color(0,0,0,255,g,2*m),E.color(0,0,0,255,g,3*m)];this.ED=E.l.createBuffer();this.XA=E.l.createBuffer();E.fc.prototype.ctor.call(this);
  241. this.q=new E.cc(E.bc,E.ac);E.Uc.prototype.U.call(this,a,d,e)};a.Yd=function(a,d){var e=this.$v;d===k?(e[1].x=a.width,e[2].y=a.height,e[3].x=a.width,e[3].y=a.height):(e[1].x=a,e[2].y=d,e[3].x=a,e[3].y=d);this.NA();E.fc.prototype.Yd.call(this,a,d)};a.sj=function(a){var d=this.$v;d[1].x=a;d[3].x=a;this.NA();E.fc.prototype.sj.call(this,a)};a.rj=function(a){var d=this.$v;d[2].y=a;d[3].y=a;this.NA();E.fc.prototype.rj.call(this,a)};a.$b=function(){for(var a=this.za,d=this.hb,e=this.cD,f=0;4>f;f++)e[f].r=
  242. a.r,e[f].g=a.g,e[f].b=a.b,e[f].a=d;this.YI()};a.Z=function(a){a=a||E.l;E.Hs(this);E.Fc(E.Ld|E.ou);a.bindBuffer(a.ARRAY_BUFFER,this.ED);a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.XA);a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,0,0);E.Ih(this.q.src,this.q.Q);a.drawArrays(a.TRIANGLE_STRIP,0,4)};a.NA=function(){var a=E.l;a.bindBuffer(a.ARRAY_BUFFER,this.ED);a.bufferData(a.ARRAY_BUFFER,this.eD,a.STATIC_DRAW)};a.YI=function(){var a=E.l;a.bindBuffer(a.ARRAY_BUFFER,this.XA);
  243. a.bufferData(a.ARRAY_BUFFER,this.dD,a.STATIC_DRAW)}};
  244. E.H.wA=function(){var a=E.yl.prototype;a.Z=E.Uc.prototype.Z;a.$b=function(){var a=this.lk,d=E.hl(a);if(0!==d){var e=Math.sqrt(2),a=L(a.x/d,a.y/d);this.Ju&&(a=E.Li(a,1/(Math.abs(a.x)+Math.abs(a.y))*e));var f=this.hb/255,d=this.za,g=this.Be,d={r:d.r,g:d.g,b:d.b,a:this.zo*f},f={r:g.r,g:g.g,b:g.b,a:this.Rn*f},h=this.cD,g=h[0],m=h[1],n=h[2],h=h[3];g.r=f.r+(d.r-f.r)*((e+a.x+a.y)/(2*e));g.g=f.g+(d.g-f.g)*((e+a.x+a.y)/(2*e));g.b=f.b+(d.b-f.b)*((e+a.x+a.y)/(2*e));g.a=f.a+(d.a-f.a)*((e+a.x+a.y)/(2*e));m.r=
  245. f.r+(d.r-f.r)*((e-a.x+a.y)/(2*e));m.g=f.g+(d.g-f.g)*((e-a.x+a.y)/(2*e));m.b=f.b+(d.b-f.b)*((e-a.x+a.y)/(2*e));m.a=f.a+(d.a-f.a)*((e-a.x+a.y)/(2*e));n.r=f.r+(d.r-f.r)*((e+a.x-a.y)/(2*e));n.g=f.g+(d.g-f.g)*((e+a.x-a.y)/(2*e));n.b=f.b+(d.b-f.b)*((e+a.x-a.y)/(2*e));n.a=f.a+(d.a-f.a)*((e+a.x-a.y)/(2*e));h.r=f.r+(d.r-f.r)*((e-a.x-a.y)/(2*e));h.g=f.g+(d.g-f.g)*((e-a.x-a.y)/(2*e));h.b=f.b+(d.b-f.b)*((e-a.x-a.y)/(2*e));h.a=f.a+(d.a-f.a)*((e-a.x-a.y)/(2*e));this.YI()}}};E.H.zz=function(){var a=E.Uc.prototype;E.j(a,"width",a.eh,a.sj);E.j(a,"height",a.yk,a.rj)};E.H.Az=function(){var a=E.yl.prototype;E.j(a,"startColor",a.Yw,a.Ue);E.j(a,"endColor",a.Tw,a.Re);E.j(a,"startOpacity",a.r1,a.e5);E.j(a,"endOpacity",a.B0,a.B4);E.j(a,"vector",a.x1,a.n5)};E.fc=E.m.extend({Ql:r,Du:q,wb:"Layer",ctor:function(){var a=E.m.prototype;a.ctor.call(this);this.gj=p;a.ll.call(this,0.5,0.5);a.Yd.call(this,E.rt)},U:function(){this.gj=p;this.ll(0.5,0.5);this.Yd(E.rt);this.cascadeColor=this.cascadeOpacity=r;return p},lM:q,fQ:q,Kea:A("Ql"),P:q});E.fc.create=function(){return new E.fc};
  246. if(E.A===E.Ba){var ga=E.fc.prototype;ga.lM=function(){if(!this.Ql){this.Ql=this.qg=p;this.Fn=this;for(var a=this.u,c=0,d=a.length;c<d;c++)a[c].JC(this);this.Du||(this.Du=new E.DQ)}};ga.fQ=function(){if(this.Ql){this.Ql=r;this.qg=p;this.Fn=q;for(var a=this.u,c=0,d=a.length;c<d;c++)a[c].JC(q)}};ga.P=function(a){if(this.Ql){a=a||E.l;var c,d=this.u,e=d.length;if(this.kc&&0!==e){var f=this.Du;a.save();this.transform(a);if(this.qg){c=this.sB();c.width|=0;c.height|=0;var g=f.$d;f.ZO(c.width,c.height);g.translate(0-
  247. c.x,c.height+c.y);var h=f.Qw();f.R(h.x+c.x,h.y+c.y);this.Sc();E.view.Xv();for(c=0;c<e;c++)d[c].P(g);E.view.Pv();this.qg=r}f.P(a);this.arrivalOrder=0;a.restore()}}else E.m.prototype.P.call(this,a)};ga.sB=function(){var a=q;if(!this.u||0===this.u.length)return W(0,0,10,10);for(var c=this.u,d=0;d<c.length;d++){var e=c[d];e&&e.kc&&(a?(e=e.gr())&&(a=E.Xx(a,e)):a=e.gr())}return a};ga=q}else E.assert("function"===typeof E.H.hz,E.f.cd,"CCLayerWebGL.js"),E.H.hz(),delete E.H.hz;
  248. E.Uc=E.fc.extend({q:q,wb:"LayerColor",Dh:A("q"),faa:function(a,c){this.width=a;this.height=c},eaa:u("width"),daa:u("height"),Se:t(),Rf:B(r),Za:function(a){E.fc.prototype.Za.call(this,a);this.$b()},Ta:function(a){E.fc.prototype.Ta.call(this,a);this.$b()},lo:r,ctor:q,U:function(a,c,d){E.A!==E.Ba&&(this.shaderProgram=E.Id.mc(E.au));var e=E.B.oa();a=a||E.color(0,0,0,255);c=c===k?e.width:c;d=d===k?e.height:d;e=this.za;e.r=a.r;e.g=a.g;e.b=a.b;e=this.Sd;e.r=a.r;e.g=a.g;e.b=a.b;this.yg=this.hb=a.a;a=E.Uc.prototype;
  249. a.Yd.call(this,c,d);a.$b.call(this);return p},Qe:function(a,c){this.q=c===k?a:{src:a,Q:c};E.A===E.Ba&&(this.lo=this.q&&1==this.q.src&&771==this.q.Q)},sj:q,rj:q,$b:q,Ic:function(a){E.fc.prototype.Ic.call(this,a);this.$b()},yc:function(a){E.fc.prototype.yc.call(this,a);this.$b()},Z:q});E.Uc.create=function(a,c,d){return new E.Uc(a,c,d)};
  250. E.A===E.Ba?(G=E.Uc.prototype,G.ctor=function(a,c,d){E.fc.prototype.ctor.call(this);this.q=new E.cc(E.bc,E.ac);E.Uc.prototype.U.call(this,a,c,d)},G.sj=E.fc.prototype.sj,G.rj=E.fc.prototype.rj,G.$b=t(),G.Z=function(a){a=a||E.l;var c=E.view,d=this.za;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+this.hb/255+")";a.fillRect(0,0,this.width*c.ja,-this.height*c.La);E.pf++},G.P=function(a){if(this.Ql){a=a||E.l;var c,d=this.u,e=d.length;if(this.kc){var f=this.Du;a.save();this.transform(a);if(this.qg){c=
  251. this.sB();c.width|=0;c.height|=0;var g=f.$d;f.ZO(c.width,c.height);var h=f.Qw(),m=this.wa;if(this.gj)g.translate(0-c.x+m.x,c.height+c.y-m.y),f.R(h.x+c.x-m.x,h.y+c.y-m.y);else{var n=this.Qw(),s=m.x-n.x,m=m.y-n.y;g.translate(0-c.x+s,c.height+c.y-m);f.R(h.x+c.x-s,h.y+c.y-m)}E.view.Xv();if(0<e){this.Sc();for(c=0;c<e;c++)if(h=d[c],0>h.Db)h.P(g);else break;for(this.Z(g);c<e;c++)d[c].P(g)}else this.Z(g);E.view.Pv();this.qg=r}f.P(a);this.arrivalOrder=0;a.restore()}}else E.m.prototype.P.call(this,a)},G.sB=
  252. function(){var a=W(0,0,this.N.width,this.N.height),c=this.Jx(),a=E.GF(a,this.Jx());if(!this.u||0===this.u.length)return a;for(var d=this.u,e=0;e<d.length;e++){var f=d[e];f&&f.kc&&(f=f.gr(c),a=E.Xx(a,f))}return a},G=q):(E.assert("function"===typeof E.H.vA,E.f.cd,"CCLayerWebGL.js"),E.H.vA(),delete E.H.vA);E.assert("function"===typeof E.H.zz,E.f.cd,"CCLayerPropertyDefine.js");E.H.zz();delete E.H.zz;
  253. E.yl=E.Uc.extend({vh:q,Be:q,zo:255,Rn:255,lk:q,Ju:r,co:q,bo:q,wb:"LayerGradient",ctor:function(a,c,d){E.Uc.prototype.ctor.call(this);this.vh=E.color(0,0,0,255);this.Be=E.color(0,0,0,255);this.lk=L(0,-1);this.Rn=this.zo=255;this.co=L(0,0);this.bo=L(0,0);E.yl.prototype.U.call(this,a,c,d)},U:function(a,c,d){a=a||E.color(0,0,0,255);c=c||E.color(0,0,0,255);d=d||L(0,-1);var e=this.vh,f=this.Be;e.r=a.r;e.g=a.g;e.b=a.b;this.zo=a.a;f.r=c.r;f.g=c.g;f.b=c.b;this.Rn=c.a;this.lk=d;this.Ju=p;this.co=L(0,0);this.bo=
  254. L(0,0);E.Uc.prototype.U.call(this,E.color(a.r,a.g,a.b,255));E.yl.prototype.$b.call(this);return p},Yd:function(a,c){E.Uc.prototype.Yd.call(this,a,c);this.$b()},sj:function(a){E.Uc.prototype.sj.call(this,a);this.$b()},rj:function(a){E.Uc.prototype.rj.call(this,a);this.$b()},Yw:A("Sd"),Ue:u("color"),Re:function(a){this.Be=a;this.$b()},Tw:A("Be"),e5:function(a){this.zo=a;this.$b()},r1:A("zo"),B4:function(a){this.Rn=a;this.$b()},B0:A("Rn"),n5:function(a){this.lk.x=a.x;this.lk.y=a.y;this.$b()},x1:function(){return L(this.lk.x,
  255. this.lk.y)},Mea:A("Ju"),mja:function(a){this.Ju=a;this.$b()},L9:q,$b:q});E.yl.create=function(a,c,d){return new E.yl(a,c,d)};
  256. E.A===E.Ba?(G=E.yl.prototype,G.Z=function(a){a=a||E.l;this.lo&&(a.globalCompositeOperation="lighter");a.save();var c=this.hb/255,d=E.view.ja,e=E.view.La,f=this.width*d,g=this.height*e,d=a.createLinearGradient(this.co.x*d,this.co.y*e,this.bo.x*d,this.bo.y*e),e=this.za,h=this.Be;d.addColorStop(0,"rgba("+Math.round(e.r)+","+Math.round(e.g)+","+Math.round(e.b)+","+(c*(this.zo/255)).toFixed(4)+")");d.addColorStop(1,"rgba("+Math.round(h.r)+","+Math.round(h.g)+","+Math.round(h.b)+","+(c*(this.Rn/255)).toFixed(4)+
  257. ")");a.fillStyle=d;a.fillRect(0,0,f,-g);0!=this.h$&&a.rotate(this.i$);a.restore();E.pf++},G.$b=function(){var a=this.lk,c=0.5*this.width,d=0.5*this.height;this.co.x=c*-a.x+c;this.co.y=d*a.y-d;this.bo.x=c*a.x+c;this.bo.y=d*-a.y-d},G=q):(E.assert("function"===typeof E.H.wA,E.f.cd,"CCLayerWebGL.js"),E.H.wA(),delete E.H.wA);E.assert("function"===typeof E.H.Az,E.f.cd,"CCLayerPropertyDefine.js");E.H.Az();delete E.H.Az;
  258. E.Rt=E.fc.extend({Ol:0,ge:q,wb:"LayerMultiplex",ctor:function(a){E.fc.prototype.ctor.call(this);a instanceof Array?E.Rt.prototype.WN.call(this,a):E.Rt.prototype.WN.call(this,Array.prototype.slice.call(arguments))},WN:function(a){0<a.length&&a[a.length-1]==q&&E.log(E.f.VR);this.ge=a;this.Ol=0;this.T(this.ge[this.Ol]);return p},ola:function(a){a>=this.ge.length?E.log(E.f.WR):(this.removeChild(this.ge[this.Ol],p),this.Ol=a,this.T(this.ge[a]))},pla:function(a){a>=this.ge.length?E.log(E.f.XR):(this.removeChild(this.ge[this.Ol],
  259. p),this.ge[this.Ol]=q,this.Ol=a,this.T(this.ge[a]))},x$:function(a){a?this.ge.push(a):E.log(E.f.UR)}});E.Rt.create=function(){return new E.Rt(Array.prototype.slice.call(arguments))};E.H.xA=function(){var a=E.D.prototype;a.bD=function(a){this.Ia(p);this.rb(a.Gh(),a.ie,a.ep());this.Nd()};a.Se=function(a){this.Oa!==a&&(this.Oa=a,this.pt())};a.yc=function(a){E.m.prototype.yc.call(this,a);this.pt()};a.ctor=function(a,d,e){E.m.prototype.ctor.call(this);this.Ok=r;this.Jb=L(0,0);this.xh=L(0,0);this.q={src:E.bc,Q:E.ac};this.ha=W(0,0,0,0);this.Ob=new E.Bb;this.Lv=E.l.createBuffer();this.la=this.De=p;this.GL(a,d,e)};a.Qe=function(a,d){var e=this.q;d===k?(e.src=a.src,e.Q=a.Q):(e.src=a,e.Q=
  260. d)};a.U=function(){if(0<arguments.length)return this.bl(arguments[0],arguments[1]);E.m.prototype.U.call(this);this.dirty=this.nh=r;this.Oa=p;this.q.src=E.bc;this.q.Q=E.ac;this.texture=q;this.la=p;this.Lb=this.Mb=r;this.anchorY=this.anchorX=0.5;this.Jb.x=0;this.Jb.y=0;this.hi=r;var a={r:255,g:255,b:255,a:255};this.Ob.F.t=a;this.Ob.M.t=a;this.Ob.L.t=a;this.Ob.K.t=a;this.De=p;this.rb(W(0,0,0,0),r,P(0,0));return p};a.ra=function(a,d,e){E.assert(0!=arguments.length,E.f.DT);e=e||r;if(!E.m.prototype.U.call(this))return r;
  261. this.X=q;this.dirty=this.nh=r;this.Oa=p;this.q.src=E.bc;this.q.Q=E.ac;this.Lb=this.Mb=r;this.anchorY=this.anchorX=0.5;this.Jb.x=0;this.Jb.y=0;this.hi=r;var f=E.color(255,255,255,255),g=this.Ob;g.F.t=f;g.M.t=f;g.L.t=f;g.K.t=f;this.la=f=a.tc;if(!f)return this.Bc=e||r,d&&(f=this.ha,f.x=d.x,f.y=d.y,f.width=d.width,f.height=d.height),a.Vd(this.mw,this),p;d||(d=W(0,0,a.width,a.height));a&&a.url&&(e?(f=d.x+d.height,g=d.y+d.width):(f=d.x+d.width,g=d.y+d.height),f>a.width&&E.error(E.f.Gz,a.url),g>a.height&&
  262. E.error(E.f.Fz,a.url));this.texture=a;this.rb(d,e);this.batchNode=q;return this.De=p};a.mw=function(a){if(!this.la){this.la=p;var d=this.ha;d?E.wC(d)&&(d.width=a.width,d.height=a.height):d=W(0,0,a.width,a.height);this.texture=a;this.rb(d,this.Bc);this.batchNode=this.X;this.De=p;this.Nd()}};a.rb=function(a,d,e){this.Bc=d||r;this.Yd(e||a);this.jG(a);this.yL(a);a=this.xh;this.Lb&&(a.x=-a.x);this.Mb&&(a.y=-a.y);var f=this.ha;this.Jb.x=a.x+(this.N.width-f.width)/2;this.Jb.y=a.y+(this.N.height-f.height)/
  263. 2;if(this.X)this.dirty=p;else{a=0+this.Jb.x;d=0+this.Jb.y;e=a+f.width;var f=d+f.height,g=this.Ob;g.F.i={x:a,y:d,d:0};g.M.i={x:e,y:d,d:0};g.L.i={x:a,y:f,d:0};g.K.i={x:e,y:f,d:0};this.De=p}};a.Xe=function(){if(this.dirty){var a=this.Ob,d=this.Nc;if(!this.kc||d&&d!=this.X&&d.Ok)a.M.i=a.L.i=a.K.i=a.F.i={x:0,y:0,d:0},this.Ok=p;else{this.Ok=r;var e=this.om=!d||d==this.X?this.pp():E.um(this.pp(),d.om),f=this.ha,d=this.Jb.x,g=this.Jb.y,h=d+f.width,m=g+f.height,n=e.Ja,s=e.Ka,v=e.a,w=e.b,y=e.J,x=-e.C,e=d*v-
  264. g*x+n,f=d*w+g*y+s,z=h*v-g*x+n,g=h*w+g*y+s,C=h*v-m*x+n,h=h*w+m*y+s,n=d*v-m*x+n,d=d*w+m*y+s,m=this.$r;E.Nz||(e|=0,f|=0,z|=0,g|=0,C|=0,h|=0,n|=0,d|=0);a.F.i={x:e,y:f,d:m};a.M.i={x:z,y:g,d:m};a.L.i={x:n,y:d,d:m};a.K.i={x:C,y:h,d:m}}this.textureAtlas.yy(a,this.atlasIndex);this.dirty=this.nh=r}this.hi&&this.pg(this.u,E.m.vf.Xe);E.Zj&&E.Ae.Xd([L(this.Ob.F.i.x,this.Ob.F.i.y),L(this.Ob.M.i.x,this.Ob.M.i.y),L(this.Ob.K.i.x,this.Ob.K.i.y),L(this.Ob.L.i.x,this.Ob.L.i.y)],4,p)};a.T=function(a,d,e){E.assert(a,
  265. E.f.uT);d==q&&(d=a.Db);e==q&&(e=a.tag);if(this.X){if(!(a instanceof E.D)){E.log(E.f.sT);return}a.texture.Ud!==this.textureAtlas.texture.Ud&&E.log(E.f.tT);this.X.appendChild(a);this.Td||this.TC()}E.m.prototype.T.call(this,a,d,e);this.hi=p};a.Ta=function(a){E.m.prototype.Ta.call(this,a);this.pt()};a.Za=function(a){E.m.prototype.Za.call(this,a);this.pt()};a.Ic=function(a){E.m.prototype.Ic.call(this,a);this.pt()};a.Sg=function(a){var d=this;"string"==typeof a&&(a=E.bg.Hh(a),E.assert(a,E.f.MT));d.Ia(p);
  266. var e=a.Lm();d.xh.x=e.x;d.xh.y=e.y;e=a.Aa();a.la||(d.la=r,a.Vd(function(a){d.la=p;var c=a.Aa();c!=d.I&&(d.texture=c);d.rb(a.Gh(),a.ie,a.ep());d.Nd()},d));e!=d.I&&(d.texture=e);d.Bc=a.ie;d.rb(a.Gh(),d.Bc,a.ep())};a.eO=function(a){return E.QO(a.Gh(),this.ha)&&a.Aa().getName()==this.I.getName()&&E.DF(a.Lm(),this.xh)};a.ml=function(a){if(this.X=a)this.om={a:1,b:0,C:0,J:1,Ja:0,Ka:0},this.textureAtlas=this.X.textureAtlas;else{this.atlasIndex=E.D.dz;this.textureAtlas=q;this.dirty=this.nh=r;a=this.Jb.x;var d=
  267. this.Jb.y,e=a+this.ha.width,f=d+this.ha.height,g=this.Ob;g.F.i={x:a,y:d,d:0};g.M.i={x:e,y:d,d:0};g.L.i={x:a,y:f,d:0};g.K.i={x:e,y:f,d:0};this.De=p}};a.$a=function(a){a&&"string"===typeof a?(a=E.Ea.Ec(a),this.$a(a),a=a.Ne(),this.rb(W(0,0,a.width,a.height))):(E.assert(!a||a instanceof E.ca,E.f.OT),this.X&&this.X.texture!=a?E.log(E.f.NT):(this.shaderProgram=a?E.Id.mc(E.Yi):E.Id.mc(E.au),!this.X&&this.I!=a&&(this.I=a,this.Mf())))};a.Z=function(){if(this.la){var a=E.l,d=this.I;d?d.tc&&(this.Gb.Jc(),this.Gb.We(),
  268. E.Ih(this.q.src,this.q.Q),E.NE(0,d),E.Fc(E.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.Lv),this.De&&(a.bufferData(a.ARRAY_BUFFER,this.Ob.yw,a.DYNAMIC_DRAW),this.De=r),a.vertexAttribPointer(0,3,a.FLOAT,r,24,0),a.vertexAttribPointer(1,4,a.UNSIGNED_BYTE,p,24,12),a.vertexAttribPointer(2,2,a.FLOAT,r,24,16),a.drawArrays(a.TRIANGLE_STRIP,0,4)):(this.Gb.Jc(),this.Gb.We(),E.Ih(this.q.src,this.q.Q),E.pe(q),E.Fc(E.Ld|E.ou),a.bindBuffer(a.ARRAY_BUFFER,this.Lv),this.De&&(E.l.bufferData(E.l.ARRAY_BUFFER,this.Ob.yw,E.l.STATIC_DRAW),
  269. this.De=r),a.vertexAttribPointer(E.pb,3,a.FLOAT,r,24,0),a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4));E.pf++;if(0!==E.Zj||this.XC)1===E.Zj||this.XC?(a=this.Ob,E.Ae.Xd([L(a.L.i.x,a.L.i.y),L(a.F.i.x,a.F.i.y),L(a.M.i.x,a.M.i.y),L(a.K.i.x,a.K.i.y)],4,p)):2===E.Zj&&(a=this.GN(),d=this.a1(),E.Ae.Xd([L(d.x,d.y),L(d.x+a.width,d.y),L(d.x+a.width,d.y+a.height),L(d.x,d.y+a.height)],4,p))}};delete a};E.H.Bz=function(){var a=E.D.prototype;E.j(a,"opacityModifyRGB",a.Rf,a.Se);E.j(a,"opacity",a.Fg,a.Ta);E.j(a,"color",a.Eg,a.Za);E.j(a,"flippedX",a.f2,a.at);E.j(a,"flippedY",a.g2,a.WF);E.j(a,"offsetX",a.xW);E.j(a,"offsetY",a.yW);E.j(a,"texture",a.Aa,a.$a);E.j(a,"textureRectRotated",a.m2);E.j(a,"batchNode",a.vE,a.ml);E.j(a,"quad",a.f1)};E.Im=function(a,c,d,e){e=e||E.Sb("canvas");d=d||W(0,0,a.width,a.height);var f=e.getContext("2d");e.width!=d.width||e.height!=d.height?(e.width=d.width,e.height=d.height):f.globalCompositeOperation="source-over";f.fillStyle="rgb("+c.r+","+c.g+","+c.b+")";f.fillRect(0,0,d.width,d.height);f.globalCompositeOperation="multiply";f.drawImage(a,d.x,d.y,d.width,d.height,0,0,d.width,d.height);f.globalCompositeOperation="destination-atop";f.drawImage(a,d.x,d.y,d.width,d.height,0,0,d.width,d.height);return e};
  270. E.Hm=function(a,c,d,e,f){e||(e=W(0,0,a.width,a.height));a=d.r/255;var g=d.g/255;d=d.b/255;var h=Math.min(e.width,c[0].width),m=Math.min(e.height,c[0].height),n;f?(n=f.getContext("2d"),n.clearRect(0,0,h,m)):(f=E.Sb("canvas"),f.width=h,f.height=m,n=f.getContext("2d"));n.save();n.globalCompositeOperation="lighter";var s=n.globalAlpha;0<a&&(n.globalAlpha=a*s,n.drawImage(c[0],e.x,e.y,h,m,0,0,h,m));0<g&&(n.globalAlpha=g*s,n.drawImage(c[1],e.x,e.y,h,m,0,0,h,m));0<d&&(n.globalAlpha=d*s,n.drawImage(c[2],e.x,
  271. e.y,h,m,0,0,h,m));1>a+g+d&&(n.globalAlpha=s,n.drawImage(c[3],e.x,e.y,h,m,0,0,h,m));n.restore();return f};
  272. E.$o=function(a){function c(){var c=E.$o,e=a.width,h=a.height;d[0].width=e;d[0].height=h;d[1].width=e;d[1].height=h;d[2].width=e;d[2].height=h;d[3].width=e;d[3].height=h;c.canvas.width=e;c.canvas.height=h;var m=c.canvas.getContext("2d");m.drawImage(a,0,0);c.pG.width=e;c.pG.height=h;for(var m=m.getImageData(0,0,e,h).data,n=0;4>n;n++){var s=d[n].getContext("2d");s.getImageData(0,0,e,h).data;c.YP.drawImage(a,0,0);for(var v=c.YP.getImageData(0,0,e,h),w=v.data,y=0;y<m.length;y+=4)w[y]=0===n?m[y]:0,w[y+
  273. 1]=1===n?m[y+1]:0,w[y+2]=2===n?m[y+2]:0,w[y+3]=m[y+3];s.putImageData(v,0,0)}a.onload=q}if(a.xM)return a.xM;var d=[E.Sb("canvas"),E.Sb("canvas"),E.Sb("canvas"),E.Sb("canvas")];try{c()}catch(e){a.onload=c}return a.xM=d};E.$o.canvas=E.Sb("canvas");E.$o.pG=E.Sb("canvas");E.$o.YP=E.$o.pG.getContext("2d");
  274. E.iE=function(a,c){if(!a)return q;if(!c)return a;var d=E.Sb("canvas");d.width=c.width;d.height=c.height;var e=d.getContext("2d");e.translate(d.width/2,d.height/2);e.rotate(-1.5707963267948966);e.drawImage(a,c.x,c.y,c.height,c.width,-c.height/2,-c.width/2,c.height,c.width);return d};
  275. E.D=E.m.extend({dirty:r,atlasIndex:0,textureAtlas:q,X:q,nh:q,hi:q,Ok:r,om:q,q:q,I:q,ha:q,Bc:r,Jb:q,xh:q,Oa:r,Lb:r,Mb:r,la:r,ib:q,xv:q,wb:"Sprite",PK:E.color.WHITE,kt:A("la"),Vd:function(a,c){this.ib||(this.ib=[]);this.ib.push({Bh:a,Pf:c})},Nd:function(){if(this.ib){for(var a=this.ib,c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}},eF:A("dirty"),pP:u("dirty"),m2:A("Bc"),bp:A("atlasIndex"),RF:u("atlasIndex"),GN:function(){return W(this.ha.x,this.ha.y,this.ha.width,this.ha.height)},
  276. JE:A("textureAtlas"),fG:u("textureAtlas"),a1:function(){return L(this.Jb)},xW:function(){return this.Jb.x},yW:function(){return this.Jb.y},Dh:A("q"),Gi:function(a){E.assert(a,E.f.AT);a.la||(this.la=r,a.Vd(this.bD,this));var c=E.A===E.Ba?r:a.ie,c=this.ra(a.Aa(),a.Gh(),c);this.Sg(a);return c},bD:q,Cea:function(a){E.assert(a,E.f.BT);var c=E.bg.Hh(a);E.assert(c,a+E.f.CT);return this.Gi(c)},Dla:function(a){this.textureAtlas=a.textureAtlas;this.X=a},jG:function(a){this.ha.x=a.x;this.ha.y=a.y;this.ha.width=
  277. a.width;this.ha.height=a.height},Sc:function(){if(this.Td){var a=this.u,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.Db<a[e].Db)a[e+1]=a[e];else if(f.Db===a[e].Db&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.X&&this.pg(a,E.m.vf.Sc);this.Td=r}},xp:function(a,c){E.assert(a,E.f.HT);-1===this.u.indexOf(a)?E.log(E.f.GT):c!==a.zIndex&&(this.X&&!this.Td&&(this.TC(),this.X.WO(p)),E.m.prototype.xp.call(this,a,c))},removeChild:function(a,c){this.X&&this.X.Tm(a);
  278. E.m.prototype.removeChild.call(this,a,c)},Ym:function(a){E.m.prototype.Ym.call(this,a);this.UF(p)},Jg:function(a){var c=this.u,d=this.X;if(d&&c!=q)for(var e=0,f=c.length;e<f;e++)d.Tm(c[e]);E.m.prototype.Jg.call(this,a);this.hi=r},UF:function(a){this.dirty=this.nh=a;a=this.u;for(var c,d=a?a.length:0,e=0;e<d;e++)c=a[e],c instanceof E.D&&c.UF(p)},Ia:function(a){E.m.prototype.Ia.call(this);!a&&(this.X&&!this.nh)&&(this.hi?this.UF(p):this.dirty=this.nh=p)},gx:function(a){this.X?E.log(E.f.yT):E.m.prototype.gx.call(this,
  279. a)},at:function(a){this.Lb!=a&&(this.Lb=a,this.rb(this.ha,this.Bc,this.N),this.Ia(p))},WF:function(a){this.Mb!=a&&(this.Mb=a,this.rb(this.ha,this.Bc,this.N),this.Ia(p))},f2:A("Lb"),g2:A("Mb"),Se:q,Rf:A("Oa"),yc:q,wja:function(a,c){E.assert(a,E.f.LT);var d=E.xw.dN(a);d?(d=d.Qd[c])?this.Sg(d.Hh()):E.log(E.f.KT):E.log(E.f.JT)},vE:A("X"),TC:function(){if(!this.Td){this.Td=p;for(var a=this.Nc;a&&a!=this.X;)a.TC(),a=a.parent}},Aa:A("I"),Ob:q,Lv:q,De:r,Sq:r,lo:r,uc:q,jm:q,fB:q,ctor:q,GL:function(a,c,d){if(a===
  280. k)E.D.prototype.U.call(this);else if("string"===typeof a)"#"===a[0]?(a=E.bg.Hh(a.substr(1,a.length-1)),this.Gi(a)):E.D.prototype.U.call(this,a,c);else if("object"===typeof a)if(a instanceof E.ca)this.ra(a,c,d);else if(a instanceof E.we)this.Gi(a);else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c=new E.ca,c.Rc(a),c.ub(),this.ra(c)},f1:A("Ob"),Qe:q,U:q,bl:function(a,c){E.assert(a,E.f.zT);var d=E.Ea.$m(a);if(d){if(!c){var e=d.Ne();c=W(0,0,e.width,e.height)}return this.ra(d,c)}d=
  281. E.Ea.Ec(a);return this.ra(d,c||W(0,0,d.N.width,d.N.height))},ra:q,mw:q,rb:q,Xe:q,T:q,pt:function(){var a=this.za,c=this.hb,a={r:a.r,g:a.g,b:a.b,a:c};this.Oa&&(a.r*=c/255,a.g*=c/255,a.b*=c/255);c=this.Ob;c.F.t=a;c.M.t=a;c.L.t=a;c.K.t=a;this.X&&(this.atlasIndex!=E.D.dz?this.textureAtlas.yy(c,this.atlasIndex):this.dirty=p);this.De=p},Ta:q,Za:q,Ic:q,Sg:q,y4:function(a){E.log(E.f.IT);this.Sg(a)},eO:q,q_:function(){return E.we.create(this.I,E.Ys(this.ha),this.Bc,E.A3(this.xh),E.z5(this.N))},ml:q,$a:q,Mf:function(){this.X?
  282. E.log(E.f.rT):!this.I||!this.I.Ei()?(this.q.src=E.SRC_ALPHA,this.q.Q=E.ONE_MINUS_SRC_ALPHA,this.opacityModifyRGB=r):(this.q.src=E.bc,this.q.Q=E.ac,this.opacityModifyRGB=p)},be:function(){var a,c=this.I,d=this.jm;if(c&&(d.cn&&this.uc)&&(a=c.Xa))this.Sq=p,a instanceof HTMLCanvasElement&&!this.Bc&&!this.xv?E.Im(this.uc.Xa,this.za,d,a):(a=E.Im(this.uc.Xa,this.za,d),c=new E.ca,c.Rc(a),c.ub(),this.texture=c)},yL:function(a){a=E.Ys(a);var c=this.X?this.textureAtlas.texture:this.I;if(c){var d=c.pixelsWidth,
  283. e=c.pixelsHeight,f,g=this.Ob;this.Bc?(E.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/d,f=a.y/e,a=(a.y+a.width)/e),this.Lb&&(e=f,f=a,a=e),this.Mb&&(e=c,c=d,d=e),g.F.n.ea=c,g.F.n.fa=f,g.M.n.ea=c,g.M.n.fa=a,g.L.n.ea=d,g.L.n.fa=f,g.K.n.ea=d,g.K.n.fa=a):(E.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/d,f=a.y/e,a=(a.y+a.height)/e),this.Lb&&(e=c,c=d,d=e),this.Mb&&(e=
  284. f,f=a,a=e),g.F.n.ea=c,g.F.n.fa=a,g.M.n.ea=d,g.M.n.fa=a,g.L.n.ea=c,g.L.n.fa=f,g.K.n.ea=d,g.K.n.fa=f);this.De=p}},Z:q});E.D.create=function(a,c,d){return new E.D(a,c,d)};E.D.gE=E.D.create;E.D.uaa=E.D.create;E.D.taa=E.D.create;E.D.dz=-1;
  285. E.A===E.Ba?(G=E.D.prototype,G.bD=function(a){this.Ia(p);this.rb(a.Gh(),a.ie,a.ep());a=this.color;(255!==a.r||255!==a.g||255!==a.b)&&this.be();this.Nd()},G.Se=function(a){this.Oa!==a&&(this.Oa=a,this.Ia(p))},G.yc=function(a){E.m.prototype.yc.call(this,a);this.vi()},G.ctor=function(a,c,d){E.m.prototype.ctor.call(this);this.Ok=r;this.Jb=L(0,0);this.xh=L(0,0);this.q={src:E.bc,Q:E.ac};this.ha=W(0,0,0,0);this.xv=r;this.la=p;this.jm={x:0,y:0,width:0,height:0,cn:r};this.fB=P(0,0);this.GL(a,c,d)},G.Qe=function(a,
  286. c){var d=this.q;c===k?(d.src=a.src,d.Q=a.Q):(d.src=a,d.Q=c);this.lo=d&&(d.src==E.SRC_ALPHA&&d.Q==E.ONE||d.src==E.ONE&&d.Q==E.ONE)},G.U=function(){if(0<arguments.length)return this.bl(arguments[0],arguments[1]);E.m.prototype.U.call(this);this.dirty=this.nh=r;this.Oa=p;this.q.src=E.bc;this.q.Q=E.ac;this.texture=q;this.la=p;this.Lb=this.Mb=r;this.anchorY=this.anchorX=0.5;this.Jb.x=0;this.Jb.y=0;this.hi=r;this.rb(W(0,0,0,0),r,P(0,0));return p},G.ra=function(a,c,d){E.assert(0!=arguments.length,E.f.JQ);
  287. if((d=d||r)&&a.tc){var e=a.Xa,e=E.iE(e,c),f=new E.ca;f.Rc(e);f.ub();a=f;this.ha=W(0,0,c.width,c.height)}if(!E.m.prototype.U.call(this))return r;this.X=q;this.dirty=this.nh=r;this.Oa=p;this.q.src=E.bc;this.q.Q=E.ac;this.Lb=this.Mb=r;this.anchorY=this.anchorX=0.5;this.Jb.x=0;this.Jb.y=0;this.hi=r;this.la=e=a.tc;if(!e)return this.Bc=d,c&&(this.ha.x=c.x,this.ha.y=c.y,this.ha.width=c.width,this.ha.height=c.height),a.Vd(this.mw,this),p;c||(c=W(0,0,a.width,a.height));a&&a.url&&(e=c.y+c.height,c.x+c.width>
  288. a.width&&E.error(E.f.Gz,a.url),e>a.height&&E.error(E.f.Fz,a.url));this.texture=this.uc=a;this.rb(c,d);this.batchNode=q;return p},G.mw=function(a){if(!this.la){this.la=p;var c=this.ha;c?E.wC(c)&&(c.width=a.width,c.height=a.height):c=W(0,0,a.width,a.height);this.texture=this.uc=a;this.rb(c,this.Bc);a=this.za;(255!=a.r||255!=a.g||255!=a.b)&&this.be();this.batchNode=this.X;this.Nd()}},G.rb=function(a,c,d){this.Bc=c||r;this.Yd(d||a);this.jG(a);c=this.jm;d=E.qb();c.x=0|a.x*d;c.y=0|a.y*d;c.width=0|a.width*
  289. d;c.height=0|a.height*d;c.cn=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.xh;this.Lb&&(a.x=-a.x);this.Mb&&(a.y=-a.y);this.Jb.x=a.x+(this.N.width-this.ha.width)/2;this.Jb.y=a.y+(this.N.height-this.ha.height)/2;this.X&&(this.dirty=p)},G.Xe=function(){if(this.dirty){var a=this.Nc;!this.kc||a&&a!=this.X&&a.Ok?this.Ok=p:(this.Ok=r,this.om=!a||a==this.X?this.pp():E.um(this.pp(),a.om));this.dirty=this.nh=r}this.hi&&this.pg(this.u,E.m.vf.Xe)},G.T=function(a,c,d){E.assert(a,E.f.HQ);c==q&&(c=a.Db);d==
  290. q&&(d=a.tag);E.m.prototype.T.call(this,a,c,d);this.hi=p},G.Ta=function(a){E.m.prototype.Ta.call(this,a);this.vi()},G.Za=function(a){var c=this.color;this.PK=c;c.r===a.r&&c.g===a.g&&c.b===a.b||E.m.prototype.Za.call(this,a)},G.Ic=function(a){E.m.prototype.Ic.call(this,a);a=this.PK;var c=this.za;a.r===c.r&&a.g===c.g&&a.b===c.b||(this.be(),this.vi())},G.Sg=function(a){var c=this;"string"==typeof a&&(a=E.bg.Hh(a),E.assert(a,E.f.MQ));c.Ia(p);var d=a.Lm();c.xh.x=d.x;c.xh.y=d.y;c.Bc=a.ie;var d=a.Aa(),e=a.la;
  291. e||(c.la=r,a.Vd(function(a){c.la=p;var d=a.Aa();d!=c.I&&(c.texture=d);c.rb(a.Gh(),a.ie,a.ep());c.Nd()},c));d!=c.I&&(c.texture=d);c.Bc&&(c.uc=d);c.rb(a.Gh(),c.Bc,a.ep());c.Sq=r;e&&(a=c.color,(255!==a.r||255!==a.g||255!==a.b)&&c.be())},G.eO=function(a){return a.Aa()!=this.I?r:E.QO(a.Gh(),this.ha)},G.ml=function(a){(this.X=a)?(this.om={a:1,b:0,C:0,J:1,Ja:0,Ka:0},this.textureAtlas=this.X.textureAtlas):(this.atlasIndex=E.D.dz,this.textureAtlas=q,this.dirty=this.nh=r)},G.$a=function(a){a&&"string"===typeof a?
  292. (a=E.Ea.Ec(a),this.$a(a),a=a.Ne(),this.rb(W(0,0,a.width,a.height))):(E.assert(!a||a instanceof E.ca,E.f.NQ),this.I!=a&&(a&&a.Xa instanceof HTMLImageElement&&(this.uc=a),this.I=a))},G.Z=function(a){if(this.la){a=a||E.l;this.lo&&(a.globalCompositeOperation="lighter");var c=E.view.ja,d=E.view.La;a.globalAlpha=this.hb/255;var e=this.ha,f=this.N,g=this.Jb,h=this.fB,m=0|g.x,n=-g.y-e.height,s=this.jm;h.width=e.width*c;h.height=e.height*d;if(this.Lb||this.Mb)a.save(),this.Lb&&(m=-g.x-e.width,a.scale(-1,1)),
  293. this.Mb&&(n=g.y,a.scale(1,-1));m*=c;n*=d;this.I&&s.cn?(f=this.I.Xa,this.Sq?a.drawImage(f,0,0,s.width,s.height,m,n,h.width,h.height):a.drawImage(f,s.x,s.y,s.width,s.height,m,n,h.width,h.height)):!this.I&&s.cn&&(h=this.color,a.fillStyle="rgba("+h.r+","+h.g+","+h.b+",1)",a.fillRect(m,n,f.width*c,f.height*d));1===E.Zj||this.XC?(a.strokeStyle="rgba(0,255,0,1)",m/=c,n=-(n/d),E.Ae.Xd([L(m,n),L(m+e.width,n),L(m+e.width,n-e.height),L(m,n-e.height)],4,p)):2===E.Zj&&(a.strokeStyle="rgba(0,255,0,1)",c=this.ha,
  294. n=-n,E.Ae.Xd([L(m,n),L(m+c.width,n),L(m+c.width,n-c.height),L(m,n-c.height)],4,p));(this.Lb||this.Mb)&&a.restore();E.pf++}},E.fb.hw||(G.be=function(){var a,c=this.I,d=this.jm;if(c&&(d.cn&&this.uc)&&(a=c.Xa))if(c=E.Ea.Zw(this.uc.Xa))this.Sq=p,a instanceof HTMLCanvasElement&&!this.Bc&&!this.xv?E.Hm(a,c,this.za,d,a):(a=E.Hm(a,c,this.za,d),c=new E.ca,c.Rc(a),c.ub(),this.texture=c)}),delete G):(E.assert("function"===typeof E.H.xA,E.f.cd,"SpritesWebGL.js"),E.H.xA(),delete E.H.xA);
  295. E.assert("function"===typeof E.H.Bz,E.f.cd,"SpritesPropertyDefine.js");E.H.Bz();delete E.H.Bz;E.Ny=29;
  296. E.ud=E.m.extend({textureAtlas:q,q:q,zd:q,wb:"SpriteBatchNode",qZ:function(a,c,d){E.assert(a,E.f.lT);if(!(a instanceof E.D))return E.log(E.f.kT),q;a.atlasIndex=c;var e=0,f=this.zd;if(f&&0<f.length)for(var g=0;g<f.length;g++){var h=f[g];h&&h.atlasIndex>=c&&++e}f.splice(e,0,a);E.m.prototype.T.call(this,a,c,d);this.WO(r);return this},JE:A("textureAtlas"),fG:function(a){a!=this.textureAtlas&&(this.textureAtlas=a)},x0:A("zd"),bl:function(a,c){var d=E.Ea.$m(a);d||(d=E.Ea.Ec(a));return this.ra(d,c)},vi:function(){this.qg=
  297. p},U:function(a,c){var d=E.Ea.$m(a);d||(d=E.Ea.Ec(a));return this.ra(d,c)},jx:function(){var a=this.textureAtlas.capacity,c=Math.floor(4*(a+1)/3);E.log(E.f.mT,a,c);this.textureAtlas.LF(c)||E.log(E.f.nT)},Q3:function(a,c){this.removeChild(this.u[a],c)},OO:function(a,c){var d=a.children;if(d&&0<d.length)for(var e=0;e<d.length;e++){var f=d[e];f&&0>f.zIndex&&(c=this.OO(f,c))}!a==this&&(a.atlasIndex=c,c++);if(d&&0<d.length)for(e=0;e<d.length;e++)(f=d[e])&&0<=f.zIndex&&(c=this.OO(f,c));return c},SE:function(a){var c=
  298. a.children;return!c||0==c.length?a.atlasIndex:this.SE(c[c.length-1])},a3:function(a){var c=a.children;return!c||0==c.length?a.atlasIndex:this.a3(c[c.length-1])},IZ:function(a,c){var d=a.parent,e=d.children,f=e.indexOf(a),g=q;0<f&&f<E.CI&&(g=e[f-1]);return d==this?0==f?0:this.SE(g)+1:0==f?0>c?d.atlasIndex:d.atlasIndex+1:0>g.zIndex&&0>c||0<=g.zIndex&&0<=c?this.SE(g)+1:d.atlasIndex+1},WO:u("Td"),Qe:function(a,c){this.q=c===k?a:{src:a,Q:c}},Dh:A("q"),xp:function(a,c){E.assert(a,E.f.qT);-1===this.u.indexOf(a)?
  299. E.log(E.f.pT):c!==a.zIndex&&(E.m.prototype.xp.call(this,a,c),this.Ia())},removeChild:function(a,c){a!=q&&(-1===this.u.indexOf(a)?E.log(E.f.oT):(this.Tm(a),E.m.prototype.removeChild.call(this,a,c)))},sX:q,Tk:q,r$:r,uc:q,ctor:q,Uq:function(a,c){E.m.prototype.ctor.call(this);var d;c=c||E.Ny;"string"==typeof a?(d=E.Ea.$m(a))||(d=E.Ea.Ec(a)):a instanceof E.ca&&(d=a);d&&this.ra(d,c)},Vq:function(a,c){E.m.prototype.ctor.call(this);this.sX=new E.ba;var d;c=c||E.Ny;"string"==typeof a?(d=E.Ea.$m(a))||(d=E.Ea.Ec(a)):
  300. a instanceof E.ca&&(d=a);d&&this.ra(d,c)},jQ:q,fZ:function(a,c){E.assert(a,E.f.OQ);a instanceof E.D?(a.batchNode=this,a.atlasIndex=c,a.dirty=p,a.Xe()):E.log(E.f.Jy)},gZ:function(a,c){E.assert(a,E.f.Jy);if(a instanceof E.D){for(var d=this.textureAtlas.capacity;c>=d||d==this.textureAtlas.totalQuads;)this.jx();a.batchNode=this;a.atlasIndex=c;a.dirty=p;a.Xe()}else E.log(E.f.Jy)},Sk:function(a,c){var d=this.zd,e=this.textureAtlas,f=e.quads,g=d[a],h=E.EI(f[a]);d[c].atlasIndex=a;d[a]=d[c];e.yy(f[c],a);d[c]=
  301. g;e.yy(h,c)},ox:q,$W:function(a,c){E.assert(a,E.f.LQ);a instanceof E.D?(a.batchNode=this,a.atlasIndex=c,a.dirty=p,a.Xe(),this.u.splice(c,0,a)):E.log(E.f.KQ)},aX:function(a,c){E.assert(a,E.f.FT);if(a instanceof E.D){for(var d=this.textureAtlas;c>=d.capacity||d.capacity===d.totalQuads;)this.jx();a.batchNode=this;a.atlasIndex=c;d.cF(a.quad,c);a.dirty=p;a.Xe()}else E.log(E.f.ET)},UL:function(a,c){var d=0,e=a.children;e&&(d=e.length);var f=0;if(0===d)f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&
  302. this.Sk(f,c),c++;else{f=p;0<=e[0].zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Sk(f,c),c++,f=r);for(d=0;d<e.length;d++){var g=e[d];f&&0<=g.zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Sk(f,c),c++,f=r);c=this.UL(g,c)}f&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Sk(f,c),c++)}return c},Mf:function(){this.textureAtlas.texture.Ei()||(this.q.src=E.SRC_ALPHA,this.q.Q=E.ONE_MINUS_SRC_ALPHA)},ra:q,GB:function(a){this.u=[];this.zd=[];this.q=new E.cc(E.bc,
  303. E.ac);this.Tk=this.uc=a;return p},HB:function(a,c){this.u=[];this.zd=[];this.q=new E.cc(E.bc,E.ac);c=c||E.Ny;this.textureAtlas=new E.Xh;this.textureAtlas.ra(a,c);this.Mf();this.shaderProgram=E.Id.mc(E.Yi);return p},bF:function(a,c){a.batchNode=this;a.atlasIndex=c;a.dirty=p;var d=this.textureAtlas;d.totalQuads>=d.capacity&&this.jx();d.cF(a.quad,c);this.zd.splice(c,0,a);var d=c+1,e=this.zd;if(e&&0<e.length)for(;d<e.length;d++)e[d].atlasIndex++;var e=a.children,f;if(e){d=0;for(l=e.length||0;d<l;d++)(f=
  304. e[d])&&this.bF(f,this.IZ(f,f.zIndex))}},appendChild:q,aV:function(a){this.Td=p;a.batchNode=this;a.dirty=p;this.zd.push(a);a.atlasIndex=this.zd.length-1;a=a.children;for(var c=0,d=a.length||0;c<d;c++)this.appendChild(a[c])},bV:function(a){this.Td=p;a.batchNode=this;a.dirty=p;this.zd.push(a);var c=this.zd.length-1;a.atlasIndex=c;var d=this.textureAtlas;d.totalQuads==d.capacity&&this.jx();d.cF(a.quad,c);a=a.children;c=0;for(d=a.length||0;c<d;c++)this.appendChild(a[c])},Tm:q,VX:function(a){a.batchNode=
  305. q;var c=this.zd,d=c.indexOf(a);if(-1!=d){c.splice(d,1);for(var e=c.length;d<e;++d)c[d].atlasIndex--}if(a=a.children){c=0;for(d=a.length||0;c<d;c++)a[c]&&this.Tm(a[c])}},WX:function(a){this.textureAtlas.VO(a.atlasIndex);a.batchNode=q;var c=this.zd,d=c.indexOf(a);if(-1!=d){c.splice(d,1);for(var e=c.length;d<e;++d)c[d].atlasIndex--}if(a=a.children){c=0;for(d=a.length||0;c<d;c++)a[c]&&this.Tm(a[c])}},Aa:q,hr:A("Tk"),BB:function(){return this.textureAtlas.texture},$a:q,UC:function(a){this.Tk=a;for(var c=
  306. this.u,d=0;d<c.length;d++)c[d].texture=a},VC:function(a){this.textureAtlas.texture=a;this.Mf()},P:q,qm:function(a){var c=a||E.l;if(this.kc){c.save();this.transform(a);var d=this.u;if(d){this.Sc();for(a=0;a<d.length;a++)d[a]&&d[a].P(c)}c.restore()}},as:function(a){a=a||E.l;if(this.kc){E.Fj();var c=this.grid;c&&c.rf()&&(c.hs(),this.vy());this.Sc();this.transform(a);this.Z(a);c&&c.rf()&&c.es(this);E.Ej();this.arrivalOrder=0}},T:q,EA:function(a,c,d){E.assert(a!=q,E.f.IQ);a instanceof E.D?(c=c==q?a.zIndex:
  307. c,d=d==q?a.tag:d,E.m.prototype.T.call(this,a,c,d),this.appendChild(a),this.Ia()):E.log(E.f.GQ)},WU:function(a,c,d){E.assert(a!=q,E.f.xT);a instanceof E.D?a.texture!=this.textureAtlas.texture?E.log(E.f.wT):(c=c==q?a.zIndex:c,d=d==q?a.tag:d,E.m.prototype.T.call(this,a,c,d),this.appendChild(a),this.Ia()):E.log(E.f.vT)},Jg:q,TX:function(a){var c=this.zd;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=q);E.m.prototype.Jg.call(this,a);this.zd.length=0},UX:function(a){var c=this.zd;
  308. if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=q);E.m.prototype.Jg.call(this,a);this.zd.length=0;this.textureAtlas.TO()},Sc:q,MY:function(){if(this.Td){var a,c=0,d=this.u,e=d.length,f;for(a=1;a<e;a++){var g=d[a],c=a-1;for(f=d[c];0<=c&&(g.Db<f.Db||g.Db==f.Db&&g.arrivalOrder<f.arrivalOrder);)d[c+1]=f,c-=1,f=d[c];d[c+1]=g}0<d.length&&this.pg(d,E.m.vf.Sc);this.Td=r}},NY:function(){if(this.Td){var a=this.u,c,d=0,e=a.length,f;for(c=1;c<e;c++){var g=a[c],d=c-1;for(f=a[d];0<=d&&(g.Db<
  309. f.Db||g.Db==f.Db&&g.arrivalOrder<f.arrivalOrder);)a[d+1]=f,d-=1,f=a[d];a[d+1]=g}if(0<a.length){this.pg(a,E.m.vf.Sc);for(c=d=0;c<a.length;c++)d=this.UL(a[c],d)}this.Td=r}},Z:q,cj:function(){0!==this.textureAtlas.totalQuads&&(this.Gb.Jc(),this.Gb.We(),this.pg(this.u,E.m.vf.Xe),E.Ih(this.q.src,this.q.Q),this.textureAtlas.TM())}});G=E.ud.prototype;
  310. E.A===E.W?(G.ctor=G.Vq,G.jQ=G.gZ,G.ox=G.aX,G.ra=G.HB,G.appendChild=G.bV,G.Tm=G.WX,G.Aa=G.BB,G.$a=G.VC,G.P=G.as,G.T=G.WU,G.Jg=G.UX,G.Sc=G.NY,G.Z=G.cj):(G.ctor=G.Uq,G.jQ=G.fZ,G.ox=G.$W,G.ra=G.GB,G.appendChild=G.aV,G.Tm=G.VX,G.Aa=G.hr,G.$a=G.UC,G.P=G.qm,G.Jg=G.TX,G.T=G.EA,G.Sc=G.MY,G.Z=E.m.prototype.Z);E.j(G,"texture",G.Aa,G.$a);E.j(G,"descendants",G.x0);E.ud.create=function(a,c){return new E.ud(a,c)};E.ud.gE=E.ud.create;E.DQ=E.D.extend({Zd:q,$d:q,ctor:function(){E.D.prototype.ctor.call(this);var a=document.createElement("canvas");a.width=a.height=10;this.Zd=a;this.$d=a.getContext("2d");var c=new E.ca;c.Rc(a);c.ub();this.$a(c)},Yba:A("$d"),Xba:A("Zd"),ZO:function(a,c){c===k&&(c=a.height,a=a.width);var d=this.Zd;d.width=a;d.height=c;this.Aa().ub();this.rb(W(0,0,a,c),r)}});E.gg=E.na.extend({xo:q,Pd:0,Jo:q,ctor:function(a,c,d){this.xo=a||q;this.Pd=c||0;this.Jo=d||q},k:function(){var a=new E.gg;a.Gi(this.xo.k(),this.Pd,this.Jo);return a},Jw:function(){return E.k(this)},copy:function(){var a=new E.gg;a.Gi(this.xo.k(),this.Pd,this.Jo);return a},Gi:function(a,c,d){this.xo=a;this.Pd=c;this.Jo=d;return p},Hh:A("xo"),Sg:u("xo"),lca:A("Pd"),tja:u("Pd"),kea:A("Jo"),Xka:u("Jo")});E.gg.create=function(a,c,d){return new E.gg(a,c,d)};
  311. E.Vg=E.na.extend({Qd:q,ij:0,cm:r,p:0,Pd:0,yi:0,ctor:function(a,c,d){this.Qd=[];if(a===k)this.$N(q,0);else{var e=a[0];e&&(e instanceof E.we?this.$N(a,c,d):e instanceof E.gg&&this.kx(a,c,d))}},Ica:A("Qd"),Fja:u("Qd"),ND:function(a){var c=new E.gg;c.Gi(a,1,q);this.Qd.push(c);this.yi++},B$:function(a){a=E.Ea.Ec(a);var c=W(0,0,0,0);c.width=a.width;c.height=a.height;a=E.we.create(a,c);this.ND(a)},C$:function(a,c){var d=E.we.create(a,c);this.ND(d)},kx:function(a,c,d){E.Mo(a,E.gg);this.Pd=c;this.ij=d===k?
  312. 1:d;this.yi=0;c=this.Qd;for(d=c.length=0;d<a.length;d++){var e=a[d];c.push(e);this.yi+=e.Pd}return p},k:function(){var a=new E.Vg;a.kx(this.eJ(),this.Pd,this.ij);a.ly(this.cm);return a},Jw:function(){var a=new E.Vg;a.kx(this.eJ(),this.Pd,this.ij);a.ly(this.cm);return a},eJ:function(){for(var a=[],c=0;c<this.Qd.length;c++)a.push(this.Qd[c].k());return a},copy:function(){return this.Jw(q)},Yca:A("ij"),Rja:u("ij"),ly:u("cm"),Dda:A("cm"),cp:function(){return this.yi*this.Pd},kca:A("Pd"),sja:u("Pd"),dea:A("yi"),
  313. $N:function(a,c,d){E.Mo(a,E.we);this.ij=d===k?1:d;this.Pd=c||0;this.yi=0;c=this.Qd;c.length=0;if(a){for(d=0;d<a.length;d++){var e=a[d],f=new E.gg;f.Gi(e,1,q);c.push(f)}this.yi+=a.length}return p},$x:t(),Ni:t()});E.Vg.create=function(a,c,d){return new E.Vg(a,c,d)};E.Vg.raa=E.Vg.create;E.xw={wn:{},cM:function(a,c){this.wn[c]=a},Dia:function(a){a&&this.wn[a]&&delete this.wn[a]},dN:function(a){return this.wn[a]?this.wn[a]:q},VU:function(a,c){var d=a.animations;if(d){var e=1,f=a.properties;if(f)for(var e=f.format!=q?parseInt(f.format):e,f=f.spritesheets,g=E.bg,h=E.path,m=0;m<f.length;m++)g.ww(h.Qo(c,f[m]));switch(e){case 1:this.JX(d);break;case 2:this.KX(d);break;default:E.log(E.f.zZ)}}else E.log(E.f.yZ)},u$:function(a){E.assert(a,E.f.HZ);var c=E.V.Ed(a);c?this.VU(c,a):E.log(E.f.GZ)},
  314. JX:function(a){var c=E.bg,d;for(d in a){var e=a[d],f=e.frames,e=parseFloat(e.delay)||0,g=q;if(f){for(var g=[],h=0;h<f.length;h++){var m=c.Hh(f[h]);if(m){var n=new E.gg;n.Gi(m,1,q);g.push(n)}else E.log(E.f.BZ,d,f[h])}0===g.length?E.log(E.f.CZ,d):(g.length!=f.length&&E.log(E.f.DZ,d),g=E.Vg.create(g,e,1),E.xw.cM(g,d))}else E.log(E.f.AZ,d)}},KX:function(a){var c=E.bg,d;for(d in a){var e=a[d],f=parseInt(e.loops),f=e.loop?E.sn:isNaN(f)?1:f,g=e.restoreOriginalFrame&&e.restoreOriginalFrame==p?p:r,h=e.frames;
  315. if(h){for(var m=[],n=0;n<h.length;n++){var s=h[n],v=s.spriteframe,w=c.Hh(v);if(w){var v=parseFloat(s.delayUnits)||0,s=s.notification,y=new E.gg;y.Gi(w,v,s);m.push(y)}else E.log(E.f.FZ,d,v)}e=parseFloat(e.delayPerUnit)||0;h=new E.Vg;h.kx(m,e,f);h.ly(g);E.xw.cM(h,d)}else E.log(E.f.EZ,d)}},nk:function(){this.wn={}}};E.we=E.na.extend({va:q,Fk:q,Fe:q,ie:r,ha:q,wg:q,Gf:q,I:q,Do:"",la:r,Zu:q,ctor:function(a,c,d,e,f){this.va=L(0,0);this.wg=L(0,0);this.Fk=P(0,0);this.ie=r;this.Gf=P(0,0);this.Do="";this.I=q;this.la=r;a!==k&&c!==k&&(d===k||e===k||f===k?this.ra(a,c):this.ra(a,c,d,e,f))},kt:A("la"),Vd:function(a,c){this.Zu==q&&(this.Zu=[]);this.Zu.push({Bh:a,Pf:c})},Nd:function(){var a=this.Zu;if(a){for(var c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}},g1:function(){var a=this.Fe;return W(a.x,a.y,
  316. a.width,a.height)},nka:function(a){this.Fe||(this.Fe=W(0,0,0,0));this.Fe.x=a.x;this.Fe.y=a.y;this.Fe.width=a.width;this.Fe.height=a.height;this.ha=E.jl(a)},Xea:A("ie"),pka:u("ie"),Gh:function(){var a=this.ha;return W(a.x,a.y,a.width,a.height)},EP:function(a){this.ha||(this.ha=W(0,0,0,0));this.ha.x=a.x;this.ha.y=a.y;this.ha.width=a.width;this.ha.height=a.height;this.Fe=E.Ys(this.ha)},$0:function(){return L(this.wg)},Zja:function(a){this.wg.x=a.x;this.wg.y=a.y;E.gC(this.wg,this.va)},mda:function(){return P(this.Gf)},
  317. bka:function(a){this.Gf.width=a.width;this.Gf.height=a.height},ep:function(){return P(this.Fk)},aka:function(a){this.Fk.width=a.width;this.Fk.height=a.height},Aa:function(){if(this.I)return this.I;if(""!==this.Do){var a=E.Ea.Ec(this.Do);a&&(this.la=a.tc);return a}return q},$a:function(a){if(this.I!=a){var c=a.tc;this.la=c;this.I=a;c||a.Vd(function(a){this.la=p;if(this.ie&&E.A===E.Ba){var c=a.Xa,c=E.iE(c,this.Gh()),f=new E.ca;f.Rc(c);f.ub();this.$a(f);c=this.Gh();this.EP(W(0,0,c.width,c.height))}c=
  318. this.ha;0===c.width&&0===c.height&&(c=a.width,a=a.height,this.ha.width=c,this.ha.height=a,this.Fe=E.Ys(this.ha),this.Gf.width=this.Fe.width,this.Gf.height=this.Fe.height,this.Fk.width=c,this.Fk.height=a);this.Nd()},this)}},Lm:function(){return L(this.va)},jy:function(a){this.va.x=a.x;this.va.y=a.y},k:function(){var a=new E.we;a.ra(this.Do,this.Fe,this.ie,this.wg,this.Gf);a.$a(this.I);return a},Jw:function(){var a=new E.we;a.ra(this.Do,this.Fe,this.ie,this.wg,this.Gf);a.$a(this.I);return a},copy:function(){return this.Jw()},
  319. ra:function(a,c,d,e,f){2===arguments.length&&(c=E.Ys(c));e=e||L(0,0);f=f||c;d=d||r;"string"==typeof a?(this.I=q,this.Do=a):a instanceof E.ca&&this.$a(a);if((a=this.Aa())&&a.url){var g,h;d?(g=c.x+c.height,h=c.y+c.width):(g=c.x+c.width,h=c.y+c.height);g>a.width&&E.error(E.f.Gz,a.url);h>a.height&&E.error(E.f.Fz,a.url)}this.Fe=c;this.ha=E.jl(c);this.wg.x=e.x;this.wg.y=e.y;E.gC(e,this.va);this.Gf.width=f.width;this.Gf.height=f.height;E.FL(f,this.Fk);this.ie=d;return p}});
  320. E.we.create=function(a,c,d,e,f){return new E.we(a,c,d,e,f)};E.we.gE=E.we.create;E.we.N9=function(a,c,d,e,f){var g=new E.we;g.I=a;g.Fe=c;g.ha=E.jl(c);g.wg.x=e.x;g.wg.y=e.y;E.gC(g.wg,g.va);g.Gf.width=f.width;g.Gf.height=f.height;E.FL(g.Gf,g.Fk);g.ie=d;return g};E.bg={LI:/^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,JU:/^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,uh:{},uj:{},Zn:{},fL:function(a){a=this.JU.exec(a);return!a?W(0,0,0,0):W(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),parseFloat(a[4]))},WK:function(a){a=this.LI.exec(a);return!a?L(0,0):L(parseFloat(a[1]),parseFloat(a[2]))},YC:function(a){a=this.LI.exec(a);return!a?P(0,0):P(parseFloat(a[1]),
  321. parseFloat(a[2]))},nW:function(a){var c=E.V.Ed(a);E.assert(c,E.f.K5,a);E.V.Ni(a);if(c.ho)return this.Zn[a]=c;var d=c.frames,e=c.metadata||c.meta,c={},f={},g=0;e&&(g=e.format,g=1>=g.length?parseInt(g):g,f.K1=e.textureFileName||e.textureFileName||e.image);for(var h in d){var m=d[h];if(m){e={};if(0==g){e.rect=W(m.x,m.y,m.width,m.height);e.cy=r;e.offset=L(m.offsetX,m.offsetY);var n=m.originalWidth,m=m.originalHeight;(!n||!m)&&E.log(E.f.J5);n=Math.abs(n);m=Math.abs(m);e.size=P(n,m)}else if(1==g||2==g)e.rect=
  322. this.fL(m.frame),e.cy=m.rotated||r,e.offset=this.WK(m.offset),e.size=this.YC(m.sourceSize);else if(3==g){var n=this.YC(m.spriteSize),s=this.fL(m.textureRect);n&&(s=W(s.x,s.y,n.width,n.height));e.rect=s;e.cy=m.textureRotated||r;e.offset=this.WK(m.spriteOffset);e.size=this.YC(m.spriteSourceSize);e.uZ=m.aliases}else n=m.frame,s=m.sourceSize,h=m.filename||h,e.rect=W(n.x,n.y,n.w,n.h),e.cy=m.rotated||r,e.offset=L(0,0),e.size=P(s.w,s.h);c[h]=e}}return this.Zn[a]={ho:p,frames:c,c3:f}},ww:function(a,c){E.assert(a,
  323. E.f.M5);var d=this.Zn[a]||E.V.Ed(a);if(d&&d.frames){var e=this.Zn[a]||this.nW(a),d=e.frames,e=e.c3;c?c instanceof E.ca||("string"==typeof c?c=E.Ea.Ec(c):E.assert(0,E.f.N5)):c=E.Ea.Ec(E.path.Qo(a,e.K1||".png"));var e=this.uj,f=this.uh,g;for(g in d){var h=d[g],m=f[g];if(!m){m=E.we.create(c,h.rect,h.cy,h.offset,h.size);if(h=h.uZ)for(var n=0,s=h.length;n<s;n++){var v=h[n];e[v]&&E.log(E.f.L5,v);e[v]=g}E.A===E.Ba&&m.ie&&m.Aa().tc&&(h=m.Aa().Xa,h=E.iE(h,m.g1()),n=new E.ca,n.Rc(h),n.ub(),m.$a(n),h=m.ha,m.EP(W(0,
  324. 0,h.width,h.height)));f[g]=m}}}},G9:function(a){a=a.frames;for(var c in a)this.uh[c]&&E.log(E.f.I5,c)},ND:function(a,c){this.uh[c]=a},Jia:function(){this.uh={};this.uj={}},Iia:function(a){a&&(this.uj[a]&&delete this.uj[a],this.uh[a]&&delete this.uh[a])},Kia:function(a){var c=this.uh,d=this.uj;if(a=this.Zn[a]){a=a.frames;for(var e in a)if(c[e]){delete c[e];for(var f in d)d[f]==e&&delete d[f]}}},Lia:function(a){var c=this.uh,d=this.uj,e;for(e in c){var f=c[e];if(f&&f.Aa()==a){delete c[e];for(var g in d)d[g]==
  325. e&&delete d[g]}}},Hh:function(a){var c=this.uh[a];if(!c){var d=this.uj[a];d&&((c=this.uh[d.toString()])||delete this.uj[a])}c||E.log(E.f.O5,a);return c},nk:function(){this.uh={};this.uj={};this.Zn={}}};E.To={H7:0,M8:1,INT:2,C7:3,d7:4,tr:0,qX:0,mD:r,lw:r,kD:r,lD:r,nD:r,a$:0,TB:0,ru:"",Xr:{},ho:r,mr:function(){var a=this.Xr;a["cocos2d.x.version"]=E.Ty;a["cocos2d.x.compiled_with_profiler"]=r;a["cocos2d.x.compiled_with_gl_state_cache"]=E.Wg;this.ho=p},cda:A("tr"),bda:A("qX"),dda:A("TB"),jla:A("lw"),kla:A("mD"),ila:B(r),lla:B(r),fla:B(r),gla:A("kD"),hla:A("lD"),mla:A("nD"),Ro:function(a){return-1<this.ru.indexOf(a)},mea:function(a,c){this.ho||this.mr();var d=this.Xr;return d[a]?d[a]:c},Zka:function(a,
  326. c){this.Xr[a]=c},A_:function(){0===E.Wg&&(E.log(""),E.log(E.f.c_),E.log(""))},l0:function(){if(E.A!==E.Ba){this.ho||this.mr();var a=E.l,c=this.Xr;c["gl.vendor"]=a.getParameter(a.VENDOR);c["gl.renderer"]=a.getParameter(a.RENDERER);c["gl.version"]=a.getParameter(a.VERSION);this.ru="";for(var d=a.getSupportedExtensions(),e=0;e<d.length;e++)this.ru+=d[e]+" ";this.tr=a.getParameter(a.MAX_TEXTURE_SIZE);c["gl.max_texture_size"]=this.tr;this.TB=a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);c["gl.max_texture_units"]=
  327. this.TB;this.mD=this.Ro("GL_IMG_texture_compression_pvrtc");c["gl.supports_PVRTC"]=this.mD;this.lw=r;c["gl.supports_NPOT"]=this.lw;this.kD=this.Ro("GL_IMG_texture_format_BGRA888");c["gl.supports_BGRA8888"]=this.kD;this.lD=this.Ro("GL_EXT_discard_framebuffer");c["gl.supports_discard_framebuffer"]=this.lD;this.nD=this.Ro("vertex_array_object");c["gl.supports_vertex_array_object"]=this.nD;E.So()}},$ga:function(a){this.ho||this.mr();var c=E.V.Ed(a);c||b("Please load the resource first : "+a);E.assert(c,
  328. E.f.e_,a);if(c=c.data)for(var d in c)this.Xr[d]=c[d];else E.log(E.f.d_,a)}};E.H.Qy=function(){E.E7=E.na.extend({Bla:t()});var a=E.Ua.prototype;a.Xm=function(a){var d=this.lc;this.OP();var e=this.lh,f=e.ne.x/e.ja,g=e.ne.y/e.La;switch(a){case E.Ua.GS:E.sf(E.Yg);E.dl();e=new E.ba;E.kF(e,0,d.width,0,d.height,-1024,1024);E.kp(e);E.sf(E.Xg);E.dl();break;case E.Ua.tH:var h=this.vs(),m=new E.ba,e=new E.ba;E.sf(E.Yg);E.dl();E.F2(m,d.width/d.height,2*h);E.kp(m);E.sf(E.Xg);E.dl();h=E.mp(q,-f+d.width/2,-g+d.height/2,h);d=E.mp(q,-f+d.width/2,-g+d.height/2,0);f=E.mp(q,0,1,0);E.hO(e,h,
  329. d,f);E.kp(e);break;case E.Ua.HS:break;default:E.log(E.f.cR)}this.ri=a;E.qa.dispatchEvent(this.$u);E.CP()};a.oP=function(a){var d=E.l;a?(d.clearDepth(1),d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL)):d.disable(d.DEPTH_TEST)};a.ZF=function(a){this.lc.width=E.Wa.width;this.lc.height=E.Wa.height;this.lh=a||E.view;a=E.To;a.l0();a.A_();this.Mn();this.tP();E.qa&&E.qa.qe(p)};a.nk=function(){var a=E.l;a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)};a.LA=function(){E.Fj()};a.FA=function(){E.Ej()};a.Mn=function(){if(E.Uh){if(!(E.Ua.cK==
  330. q||E.Ua.cK==r)){var a=new E.ca;a.Rc(E.Ua.Yn);a.ub();var d=E.view.yE().height/320;0===d&&(d=this.lc.height/320);var e=new E.Uh;e.MC(p);e.md("00.0",a,12,32,".");e.scale=d;this.wf=e;e=new E.Uh;e.MC(p);e.md("0.000",a,12,32,".");e.scale=d;this.xf=e;e=new E.Uh;e.MC(p);e.md("000",a,12,32,".");e.scale=d;this.Af=e;a=E.Oy;this.Af.R(a.x,34*d+a.y);this.xf.R(a.x,17*d+a.y);this.wf.R(a)}}else this.GV()};a.GV=function(){var a=0,a=this.lc.width>this.lc.height?0|24*(this.lc.height/320):0|24*(this.lc.width/320);this.wf=
  331. E.S.create("000.0","Arial",a);this.xf=E.S.create("0.000","Arial",a);this.Af=E.S.create("0000","Arial",a);a=E.Oy;this.Af.R(this.Af.width/2+a.x,5*this.Af.height/2+a.y);this.xf.R(this.xf.width/2+a.x,3*this.xf.height/2+a.y);this.wf.R(this.wf.width/2+a.x,this.wf.height/2+a.y)};a.f_=function(a){var d=new E.ba;E.aH(d);var e=new E.ba;E.E2(e,d);var f=this.lh.yE(),g=new E.vb;E.rO(g,new E.vb(2*a.x/f.width-1,1-2*a.y/f.height,d.c[14]/d.c[15]),e);return L(g.x,g.y)};a.h_=function(a){var d=new E.ba;E.aH(d);var e=
  332. new E.vb;E.rO(e,new E.vb(a.x,a.y,0),d);a=this.lh.yE();return L(a.width*(0.5*e.x+0.5),a.height*(0.5*-e.y+0.5))};a.ts=function(){return this.lh.ts()};a.ME=function(){return this.lh.ME()};a.vs=function(){return this.lc.height/1.1566};a.OP=function(){var a=this.lh;if(a){var d=this.lc;a.q5(-a.ne.x/a.ja,-a.ne.y/a.La,d.width,d.height)}};a.jda=A("lh");a.yda=A("ri");a.n4=function(){E.Ih(E.bc,E.ac)};a.tP=function(){this.n4();this.oP(r);this.Xm(this.ri);E.l.clearColor(0,0,0,1)}};E.pf=0;E.aH=function(a){var c=new E.ba;E.tx(E.Yg,c);var d=new E.ba;E.tx(E.Xg,d);E.Ii(a,c,d)};
  333. E.Ua=E.na.extend({X9:r,ur:r,ic:r,Kv:r,Kk:r,Lq:0,WB:0,ri:0,vn:0,bh:1,$q:r,pk:0,oB:0,wf:q,xf:q,Af:q,lc:q,Ck:q,ki:q,zv:q,lh:q,ui:q,tC:q,$c:q,Qd:0,ow:0,FC:0,K9:q,Jf:q,og:q,$u:q,iB:q,kB:q,jB:q,ctor:function(){var a=this;a.Ck=Date.now();E.qa.MD(E.tb.Sp,function(){a.Ck=Date.now()})},U:function(){this.WB=this.Lq=1/E.l_;this.ui=[];this.ri=E.Ua.IS;this.tC=q;this.oB=this.vn=0;this.$q=r;this.ow=this.Qd=0;this.Ck=Date.now();this.Kv=this.ic=r;this.lc=P(0,0);this.lh=q;this.bh=1;this.Jf=new E.vq;this.og=E.EG?new E.EG:
  334. q;this.Jf.PF(this.og,E.vq.Ut,r);this.iB=new E.Ti(E.Ua.jR);this.iB.setUserData(this);this.kB=new E.Ti(E.Ua.lR);this.kB.setUserData(this);this.jB=new E.Ti(E.Ua.kR);this.jB.setUserData(this);this.$u=new E.Ti(E.Ua.mR);this.$u.setUserData(this);return p},WZ:function(){var a=Date.now();this.ur?(this.pk=0,this.ur=r):this.pk=(a-this.Ck)/1E3;0<E.tb.oe[E.tb.hg.ls]&&0.2<this.pk&&(this.pk=1/60);this.Ck=a},y_:function(){this.WZ();this.ic||(this.Jf.update(this.pk),E.qa.dispatchEvent(this.jB));this.nk();this.ki&&
  335. this.O4();this.LA&&this.LA();this.$c&&(this.$c.P(),E.qa.dispatchEvent(this.kB));this.zv&&this.zv.P();this.$q&&this.LY();this.FA&&this.FA();E.qa.dispatchEvent(this.iB);this.ow++;this.$q&&this.mV()},LA:q,FA:q,end:function(){this.Kv=p},gca:A("bh"),fda:A("zv"),oa:function(){return P(this.lc)},us:function(){return P(this.lc.width*this.bh,this.lc.height*this.bh)},pause:function(){this.ic||(this.WB=this.Lq,this.kP(0.25),this.ic=p)},$ha:function(){E.assert(this.$c,E.f.$Q);this.ui.pop();var a=this.ui.length;
  336. 0==a?this.end():(this.Kk=p,this.ki=this.ui[a-1])},H3:function(){E.xw.nk();E.bg.nk();E.Ea.nk()},I3:function(){this.Di().wy();E.qa&&E.qa.qe(r);this.$c&&(this.$c.Tf(),this.$c.yb(),this.$c.Le());this.ki=this.$c=q;this.ui.length=0;this.VP();this.H3();E.So()},J3:function(a){E.assert(a,E.f.VG);this.Kk=r;this.ui.push(a);this.ki=a},kl:function(a){E.assert(a,E.f.VG);if(this.$c){var c=this.ui.length;0===c?(this.Kk=p,this.ui[c]=a):(this.Kk=p,this.ui[c-1]=a);this.ki=a}else this.J3(a),this.TP()},yp:function(){this.ic&&
  337. (this.kP(this.WB),(this.Ck=Date.now())||E.log(E.f.bR),this.ic=r,this.pk=0)},oja:function(a){a!=this.bh&&(this.bh=a,this.Mn())},rja:t(),Vja:u("ur"),O4:function(){var a=r,c=r;E.da&&(a=this.$c?this.$c instanceof E.da:r,c=this.ki?this.ki instanceof E.da:r);if(!c){if(c=this.$c)c.Tf(),c.yb();this.Kk&&c&&c.Le()}this.$c=this.ki;this.ki=q;!a&&this.$c!=q&&(this.$c.$(),this.$c.Nh())},Xja:u("zv"),w0:A("tC"),w4:u("tC"),LY:function(){this.Qd++;this.vn+=this.pk;this.wf&&this.xf&&this.Af?(this.vn>E.XQ&&(this.xf.string=
  338. this.FC.toFixed(3),this.oB=this.Qd/this.vn,this.vn=this.Qd=0,this.wf.string=this.oB.toFixed(1),this.Af.string=(0|E.pf).toString()),this.wf.P(),this.xf.P(),this.Af.P()):this.Mn();E.pf=0},$ea:A("Kk"),Fda:A("$c"),Tba:A("Lq"),Nea:A("$q"),z4:u("$q"),Kda:A("FC"),Sea:A("ur"),Uea:A("ic"),eea:A("ow"),aia:function(){this.B3(1)},B3:function(a){E.assert(this.$c,E.f.aR);var c=this.ui,d=c.length;if(0==d)this.end();else if(!(a>d)){for(;d>a;){var e=c.pop();e.running&&(e.Tf(),e.yb());e.Le();d--}this.ki=c[c.length-
  339. 1];this.Kk=r}},Di:A("Jf"),IP:function(a){this.Jf!=a&&(this.Jf=a)},Pw:A("og"),jP:function(a){this.og!=a&&(this.og=a)},mca:A("pk"),Mn:q,mV:function(){this.FC=(Date.now()-this.Ck)/1E3}});E.Ua.mR="director_projection_changed";E.Ua.jR="director_after_draw";E.Ua.lR="director_after_visit";E.Ua.kR="director_after_update";
  340. E.dR=E.Ua.extend({px:r,TP:function(){this.ur=p;this.px=r},b3:function(){this.Kv?(this.Kv=r,this.I3()):this.px||this.y_()},VP:function(){this.px=p},kP:function(a){this.Lq=a;this.px||(this.VP(),this.TP())}});E.Ua.kG=q;E.Ua.ZM=p;E.Ua.vB=function(){E.Ua.ZM&&(E.Ua.ZM=r,E.Ua.kG=new E.dR,E.Ua.kG.U());return E.Ua.kG};E.l_=60;E.Ua.GS=0;E.Ua.tH=1;E.Ua.HS=3;E.Ua.IS=E.Ua.tH;
  341. E.A===E.Ba?(G=E.Ua.prototype,G.Xm=function(a){this.ri=a;E.qa.dispatchEvent(this.$u)},G.oP=t(),G.ZF=function(a){this.lc.width=E.Wa.width;this.lc.height=E.Wa.height;this.lh=a||E.view;E.qa&&E.qa.qe(p)},G.nk=function(){var a=this.lh.ne;E.l.clearRect(-a.x,a.y,a.width,-a.height)},G.Mn=function(){var a=0,a=this.lc.width>this.lc.height?0|24*(this.lc.height/320):0|24*(this.lc.width/320);this.wf=E.S.create("000.0","Arial",a);this.xf=E.S.create("0.000","Arial",a);this.Af=E.S.create("0000","Arial",a);a=E.Oy;
  342. this.Af.R(this.Af.width/2+a.x,5*this.Af.height/2+a.y);this.xf.R(this.xf.width/2+a.x,3*this.xf.height/2+a.y);this.wf.R(this.wf.width/2+a.x,this.wf.height/2+a.y)},G.ts=function(){return this.oa()},G.ME=function(){return L(0,0)}):(E.Ua.Yn=new Image,E.Ha(E.Ua.Yn,"load",function(){E.Ua.cK=p}),E.Yn&&(E.Ua.Yn.src=E.Yn),E.assert("function"===typeof E.H.Qy,E.f.cd,"CCDirectorWebGL.js"),E.H.Qy(),delete E.H.Qy);E.Pp=E.na.extend({br:q,cr:q,dr:q,Gn:q,Hn:q,In:q,Ur:q,Vr:q,Wr:q,jb:q,vv:q,ctor:function(){this.vv=new E.ba;this.restore()},description:function(){return"\x3cCCCamera | center \x3d("+this.Gn+","+this.Hn+","+this.In+")\x3e"},pP:u("jb"),eF:A("jb"),restore:function(){this.br=this.cr=0;this.dr=E.Pp.vs();this.Ur=this.Gn=this.Hn=this.In=0;this.Vr=1;this.Wr=0;E.Om(this.vv);this.jb=r},Gs:function(){if(this.jb){var a=new E.vb,c=new E.vb,d=new E.vb;E.mp(a,this.br,this.cr,this.dr);E.mp(c,this.Gn,this.Hn,this.In);
  343. E.mp(d,this.Ur,this.Vr,this.Wr);E.hO(this.vv,a,c,d);this.jb=r}E.kp(this.vv)},yja:function(a,c,d){this.sP(a,c,d)},sP:function(a,c,d){this.br=a;this.cr=c;this.dr=d;this.jb=p},hja:function(a,c,d){this.s4(a,c,d)},s4:function(a,c,d){this.Gn=a;this.Hn=c;this.In=d;this.jb=p},Wka:function(a,c,d){this.m5(a,c,d)},m5:function(a,c,d){this.Ur=a;this.Vr=c;this.Wr=d;this.jb=p},Cca:function(){return{x:this.br,y:this.cr,d:this.dr}},kN:function(){return{x:this.br,y:this.cr,d:this.dr}},$ba:function(){return{x:this.Gn,
  344. y:this.Hn,d:this.In}},gN:function(){return{x:this.Gn,y:this.Hn,d:this.In}},jea:function(){return{x:this.Ur,y:this.Vr,d:this.Wr}},v1:function(){return{x:this.Ur,y:this.Vr,d:this.Wr}},x9:t()});E.Pp.vs=function(){return E.Nt};E.F8=E.Ut+1;E.Mo=function(a,c){if(a&&0<a.length)for(var d=0;d<a.length;d++)if(!(a[d]instanceof c))return E.log(E.f.Mo),r;return p};E.Ke=function(a,c){for(var d=0,e=a.length;d<e;d++)if(a[d]==c){a.splice(d,1);break}};E.S$=function(a,c){for(var d=0,e=c.length;d<e;d++)E.Ke(a,c[d])};E.R$=function(a,c,d){a.splice.apply(a,[d,0].concat(c));return a};E.gH=function(a,c,d){this.next=this.bia=q;this.target=a;this.F3=c;this.paused=d;this.Hx=r};E.bH=function(a,c,d){this.list=a;this.Fm=c;this.target=d;this.ex=q};
  345. E.yR=function(a,c){this.Pi=q;this.target=a;this.Gp=0;this.ks=this.js=q;this.paused=c;this.ex=q};
  346. E.ZH=E.na.extend({Bk:0,ae:q,ke:q,kb:0,sL:r,vw:r,Eo:0,yC:0,Pu:0,Oca:A("Bk"),setInterval:u("Bk"),Zba:A("ae"),ctor:function(a,c,d,e,f){this.ke=a;this.ae=c;this.kb=-1;this.Bk=d||0;this.Pu=f||0;this.vw=0<this.Pu;this.yC=e==q?E.sn:e;this.sL=this.yC==E.sn},eB:function(){if("string"==typeof this.ae)this.ke[this.ae](this.kb);else this.ae.call(this.ke,this.kb)},update:function(a){if(-1==this.kb)this.Eo=this.kb=0;else{var c=this.ke,d=this.ae;this.kb+=a;this.sL&&!this.vw?this.kb>=this.Bk&&(c&&d&&this.eB(),this.kb=
  347. 0):(this.vw?this.kb>=this.Pu&&(c&&d&&this.eB(),this.kb-=this.Pu,this.Eo+=1,this.vw=r):this.kb>=this.Bk&&(c&&d&&this.eB(),this.kb=0,this.Eo+=1),this.Eo>this.yC&&E.B.Di().gQ(c,d))}}});
  348. E.vq=E.na.extend({Tr:1,pm:q,fj:q,Bu:q,ej:q,C9:q,yd:q,ei:r,pw:r,ctor:function(){this.Tr=1;this.pm=[[],[],[]];this.fj={};this.Bu=[];this.ej={};this.Mq=[];this.yd=q;this.pw=this.ei=r},xC:function(a){delete this.ej[a.target.ta];E.Ke(this.Mq,a);a.ZH=q;a.target=q},kL:function(a){if(a=this.fj[a.target.ta])E.Ke(a.list,a.Fm),delete this.fj[a.target.ta],E.Ke(this.Bu,a),a.Fm=q,a.target=q},$K:function(a,c,d,e){e=new E.gH(c,d,e);if(a){for(var f=a.length-1,g=0;g<=f&&!(d<a[g].F3);g++);a.splice(g,0,e)}else a=[],
  349. a.push(e);d=new E.bH(a,e,c);this.Bu.push(d);this.fj[c.ta]=d;return a},cV:function(a,c,d){d=new E.gH(c,0,d);a.push(d);a=new E.bH(a,d,c);this.Bu.push(a);this.fj[c.ta]=a},Hka:u("Tr"),cea:A("Tr"),update:function(a){var c=this.pm,d=this.Mq,e,f,g;this.pw=p;1!=this.Tr&&(a*=this.Tr);f=0;for(g=c.length;f<g&&0<=f;f++)for(var h=this.pm[f],m=0,n=h.length;m<n;m++)e=h[m],!e.paused&&!e.Hx&&e.target.update(a);f=0;for(g=d.length;f<g;f++){e=d[f];if(!e)break;this.yd=e;this.ei=r;if(!e.paused)for(e.Gp=0;e.Gp<e.Pi.length;e.Gp++)e.js=
  350. e.Pi[e.Gp],e.ks=r,e.js.update(a),e.js=q;this.ei&&0==e.Pi.length&&(this.xC(e),f--)}f=0;for(g=c.length;f<g;f++){h=this.pm[f];m=0;for(n=h.length;m<n;){e=h[m];if(!e)break;e.Hx?this.kL(e):m++}}this.pw=r;this.yd=q},eP:function(a,c,d,e,f,g){E.assert(c,E.f.iT);E.assert(a,E.f.jT);d=d||0;e=e==q?E.sn:e;f=f||0;g=g||r;var h=this.ej[a.ta];h||(h=new E.yR(a,g),this.Mq.push(h),this.ej[a.ta]=h);if(h.Pi==q)h.Pi=[];else for(var m=0;m<h.Pi.length;m++)if(g=h.Pi[m],c==g.ae){E.log(E.f.hT,g.Bk.toFixed(4),d.toFixed(4));g.Bk=
  351. d;return}g=new E.ZH(a,c,d,e,f);h.Pi.push(g)},PF:function(a,c,d){if(a!==q){var e=this.pm,f=this.fj[a.ta];f?f.Fm.Hx=r:0==c?this.cV(e[1],a,d):0>c?e[0]=this.$K(e[0],a,c,d):e[2]=this.$K(e[2],a,c,d)}},gQ:function(a,c){if(!(a==q||c==q)){var d=this.ej[a.ta];if(d)for(var e=d.Pi,f=0,g=e.length;f<g;f++){var h=e[f];if(c==h.ae){h==d.js&&!d.ks&&(d.ks=p);e.splice(f,1);d.Gp>=f&&d.Gp--;0==e.length&&(this.yd==d?this.ei=p:this.xC(d));break}}}},ot:function(a){a!=q&&(a=this.fj[a.ta],a!=q&&(this.pw?a.Fm.Hx=p:this.kL(a.Fm)))},
  352. uG:function(a){if(a!=q){var c=this.ej[a.ta];if(c){var d=c.Pi;!c.ks&&0<=d.indexOf(c.js)&&(c.ks=p);d.length=0;this.yd==c?this.ei=p:this.xC(c)}this.ot(a)}},wy:function(){this.p6(E.vq.Ut)},p6:function(a){for(var c=this.Mq,d=this.pm,e=0,f=c.length;e<f;e++)this.uG(c[e].target);for(e=2;0<=e;e--)if(!(1==e&&0<a||0==e&&0<=a))for(var c=d[e],f=0,g=c.length;f<g;f++)this.ot(c[f].target)},Xha:function(){return this.t3(E.vq.Ut)},t3:function(){for(var a=[],c,d=this.Mq,e=this.pm,f=0,g=d.length;f<g;f++)if(c=d[f])c.paused=
  353. p,a.push(c.target);f=0;for(g=e.length;f<g;f++)for(var d=e[f],h=0,m=d.length;h<m;h++)if(c=d[h])c.paused=p,a.push(c.target);return a},e4:function(a){if(a)for(var c=0;c<a.length;c++)this.Pj(a[c])},up:function(a){E.assert(a,E.f.fT);var c=this.ej[a.ta];c&&(c.paused=p);(a=this.fj[a.ta])&&(a.Fm.paused=p)},Pj:function(a){E.assert(a,E.f.gT);var c=this.ej[a.ta];c&&(c.paused=r);(a=this.fj[a.ta])&&(a.Fm.paused=r)},cfa:function(a){E.assert(a,E.f.eT);return(a=this.ej[a.ta])?a.paused:r}});E.vq.Ut=-2147483648;E.pH=2*Math.PI;
  354. E.WG=E.na.extend({PA:[],l:q,ctor:u("l"),v_:function(a,c){c||(c=1);var d=E.view.ja,e=L(a.x*d,a.y*E.view.La);this.l.beginPath();this.l.arc(e.x,-e.y,c*d,0,2*Math.PI,r);this.l.closePath();this.l.fill()},w_:function(a,c,d){if(a!=q){d||(d=1);c=this.l;var e=E.view.ja,f=E.view.La;c.beginPath();for(var g=0,h=a.length;g<h;g++)c.arc(a[g].x*e,-a[g].y*f,d*e,0,2*Math.PI,r);c.closePath();c.fill()}},Bj:function(a,c){var d=this.l,e=E.view.ja,f=E.view.La;d.beginPath();d.moveTo(a.x*e,-a.y*f);d.lineTo(c.x*e,-c.y*f);
  355. d.closePath();d.stroke()},pE:function(a,c){this.Bj(L(a.x,a.y),L(c.x,a.y));this.Bj(L(c.x,a.y),L(c.x,c.y));this.Bj(L(c.x,c.y),L(a.x,c.y));this.Bj(L(a.x,c.y),L(a.x,a.y))},UM:function(a,c,d){this.rE([a,L(c.x,a.y),c,L(a.x,c.y)],4,d)},Xd:function(a,c,d,e){e=e||r;if(a!=q){3>a.length&&b(Error("Polygon's point must greater than 2"));var f=a[0];c=this.l;var g=E.view.ja,h=E.view.La;c.beginPath();c.moveTo(f.x*g,-f.y*h);for(var f=1,m=a.length;f<m;f++)c.lineTo(a[f].x*g,-a[f].y*h);d&&c.closePath();e?c.fill():c.stroke()}},
  356. rE:function(a,c,d){this.Ap(d.r,d.g,d.b,d.a);this.Xd(a,c,p,p)},lE:function(a,c,d,e,f){f=f||r;e=this.l;var g=E.view.ja,h=E.view.La;e.beginPath();e.arc(0|a.x*g,0|-(a.y*h),c*g,-d,-(d-2*Math.PI),r);f&&e.lineTo(0|a.x*g,0|-(a.y*h));e.stroke()},oE:function(a,c,d,e){for(var f=this.PA,g=f.length=0,h=0;h<e;h++)f.push(L(Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,Math.pow(1-g,2)*a.y+2*(1-g)*g*c.y+g*g*d.y)),g+=1/e;f.push(L(d.x,d.y));this.Xd(f,e+1,r,r)},mE:function(a,c,d,e,f){for(var g=this.PA,h=g.length=0,m=0;m<
  357. f;m++)g.push(L(Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y)),h+=1/f;g.push(L(e.x,e.y));this.Xd(g,f+1,r,r)},kE:function(a,c){this.Cm(a,0.5,c)},Cm:function(a,c,d){E.l.strokeStyle="rgba(255,255,255,1)";var e=this.PA;e.length=0;for(var f,g,h=1/a.length,m=0;m<d+1;m++)g=m/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=E.RQ(E.bd(a,f-1),E.bd(a,f-0),E.bd(a,f+1),E.bd(a,f+2),c,g),e.push(f);this.Xd(e,d+1,r,r)},
  358. drawImage:function(a,c,d,e,f){switch(arguments.length){case 2:this.l.drawImage(a,c.x,-(c.y+a.height));break;case 3:this.l.drawImage(a,c.x,-(c.y+d.height),d.width,d.height);break;case 5:this.l.drawImage(a,c.x,c.y,d.width,d.height,e.x,-(e.y+f.height),f.width,f.height);break;default:b(Error("Argument must be non-nil"))}},z_:function(a,c,d){a=a||this.l;c*=E.view.ja;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);a.fillStyle=d+",1)";var e=c/10;a.beginPath();a.moveTo(-c,c);a.lineTo(0,e);a.lineTo(c,c);a.lineTo(e,
  359. 0);a.lineTo(c,-c);a.lineTo(0,-e);a.lineTo(-c,-c);a.lineTo(-e,0);a.lineTo(-c,c);a.closePath();a.fill();var f=a.createRadialGradient(0,0,e,0,0,c);f.addColorStop(0,d+", 1)");f.addColorStop(0.3,d+", 0.8)");f.addColorStop(1,d+", 0.0)");a.fillStyle=f;a.beginPath();a.arc(0,0,c-e,0,E.pH,r);a.closePath();a.fill()},s_:function(a,c,d){a=a||this.l;c*=E.view.ja;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);var e=a.createRadialGradient(0,0,c/10,0,0,c);e.addColorStop(0,d+", 1)");e.addColorStop(0.3,d+", 0.8)");e.addColorStop(0.6,
  360. d+", 0.4)");e.addColorStop(1,d+", 0.0)");a.fillStyle=e;a.beginPath();a.arc(0,0,c,0,E.pH,r);a.closePath();a.fill()},fillText:function(a,c,d){this.l.fillText(a,c,-d)},Ap:function(a,c,d,e){this.l.fillStyle="rgba("+a+","+c+","+d+","+e/255+")";this.l.strokeStyle="rgba("+a+","+c+","+d+","+e/255+")"},S4:t(),XF:function(a){this.l.lineWidth=a*E.view.ja}});E.gR=E.na.extend({l:q,nr:r,vc:q,di:-1,af:q,iC:-1,hC:-1,ctor:function(a){a==q&&(a=E.l);!a instanceof WebGLRenderingContext&&b("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext");this.l=a;this.af=new Float32Array([1,1,1,1])},Ij:function(){this.nr||(this.vc=E.Id.mc(E.Mz),this.di=this.l.getUniformLocation(this.vc.Mm(),"u_color"),this.iC=this.l.getUniformLocation(this.vc.Mm(),"u_pointSize"),this.nr=p)},Naa:function(){this.nr=r},v_:function(a){this.Ij();var c=this.l;this.vc.Jc();
  361. this.vc.We();E.Fc(E.Ld);c.uniform4fv(this.di,this.af);this.vc.et(this.iC,this.hC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([a.x,a.y]),c.STATIC_DRAW);c.vertexAttribPointer(E.pb,2,c.FLOAT,r,0,0);c.drawArrays(c.POINTS,0,1);c.deleteBuffer(d);E.Qf()},w_:function(a){if(a&&0!=a.length){this.Ij();var c=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);c.uniform4fv(this.di,this.af);this.vc.et(this.iC,this.hC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,
  362. d);c.bufferData(c.ARRAY_BUFFER,this.Iv(a),c.STATIC_DRAW);c.vertexAttribPointer(E.pb,2,c.FLOAT,r,0,0);c.drawArrays(c.POINTS,0,a.length);c.deleteBuffer(d);E.Qf()}},Iv:function(a){for(var c=new Float32Array(2*a.length),d=0;d<a.length;d++)c[2*d]=a[d].x,c[2*d+1]=a[d].y;return c},Bj:function(a,c){this.Ij();var d=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);d.uniform4fv(this.di,this.af);var e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,e);d.bufferData(d.ARRAY_BUFFER,this.Iv([a,c]),d.STATIC_DRAW);d.vertexAttribPointer(E.pb,
  363. 2,d.FLOAT,r,0,0);d.drawArrays(d.LINES,0,2);d.deleteBuffer(e);E.Qf()},pE:function(a,c){this.Bj(L(a.x,a.y),L(c.x,a.y));this.Bj(L(c.x,a.y),L(c.x,c.y));this.Bj(L(c.x,c.y),L(a.x,c.y));this.Bj(L(a.x,c.y),L(a.x,a.y))},UM:function(a,c,d){this.rE([a,L(c.x,a.y),c,L(a.x,c.y)],4,d)},Xd:function(a,c,d){this.Ij();c=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);c.uniform4fv(this.di,this.af);var e=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,e);c.bufferData(c.ARRAY_BUFFER,this.Iv(a),c.STATIC_DRAW);c.vertexAttribPointer(E.pb,
  364. 2,c.FLOAT,r,0,0);d?c.drawArrays(c.LINE_LOOP,0,a.length):c.drawArrays(c.LINE_STRIP,0,a.length);c.deleteBuffer(e);E.Qf()},rE:function(a,c,d){this.Ij();d&&this.Ap(d.r,d.g,d.b,d.a);c=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);c.uniform4fv(this.di,this.af);d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.Iv(a),c.STATIC_DRAW);c.vertexAttribPointer(E.pb,2,c.FLOAT,r,0,0);c.drawArrays(c.TRIANGLE_FAN,0,a.length);c.deleteBuffer(d);E.Qf()},lE:function(a,c,d,e,f){this.Ij();var g=
  365. 1;f&&g++;var h=2*Math.PI/e;if(f=new Float32Array(2*(e+2))){for(var m=0;m<=e;m++){var n=m*h,s=c*Math.sin(n+d)+a.y;f[2*m]=c*Math.cos(n+d)+a.x;f[2*m+1]=s}f[2*(e+1)]=a.x;f[2*(e+1)+1]=a.y;a=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);a.uniform4fv(this.di,this.af);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0);a.drawArrays(a.LINE_STRIP,0,e+g);a.deleteBuffer(c);E.Qf()}},oE:function(a,c,d,e){this.Ij();for(var f=new Float32Array(2*
  366. (e+1)),g=0,h=0;h<e;h++)f[2*h]=Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,f[2*h+1]=Math.pow(1-g,2)*a.y+2*(1-g)*g*c.y+g*g*d.y,g+=1/e;f[2*e]=d.x;f[2*e+1]=d.y;a=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);a.uniform4fv(this.di,this.af);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0);a.drawArrays(a.LINE_STRIP,0,e+1);a.deleteBuffer(c);E.Qf()},mE:function(a,c,d,e,f){this.Ij();for(var g=new Float32Array(2*(f+1)),h=0,
  367. m=0;m<f;m++)g[2*m]=Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,g[2*m+1]=Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y,h+=1/f;g[2*f]=e.x;g[2*f+1]=e.y;a=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);a.uniform4fv(this.di,this.af);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,g,a.STATIC_DRAW);a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0);a.drawArrays(a.LINE_STRIP,0,f+1);a.deleteBuffer(c);E.Qf()},kE:function(a,c){this.Cm(a,0.5,
  368. c)},Cm:function(a,c,d){this.Ij();for(var e=new Float32Array(2*(d+1)),f,g,h=1/a.length,m=0;m<d+1;m++)g=m/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=E.RQ(E.bd(a,f-1),E.bd(a,f),E.bd(a,f+1),E.bd(a,f+2),c,g),e[2*m]=f.x,e[2*m+1]=f.y;a=this.l;this.vc.Jc();this.vc.We();E.Fc(E.Ld);a.uniform4fv(this.di,this.af);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,e,a.STATIC_DRAW);a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0);a.drawArrays(a.LINE_STRIP,0,d+1);a.deleteBuffer(c);E.Qf()},
  369. Ap:function(a,c,d,e){this.af[0]=a/255;this.af[1]=c/255;this.af[2]=d/255;this.af[3]=e/255},S4:function(a){this.hC=a*E.qb()},XF:function(a){this.l.lineWidth&&this.l.lineWidth(a)}});E.H.uA=function(){var a=E.S.prototype;a.Za=E.D.prototype.Za;a.kf=function(){this.nb=p;var a=this.hm,d=this.im;this.Zv="rgba(128,128,128,"+this.tj+")";this.cv="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+", 1)";this.dw="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+", 1)"};a.Ic=E.D.prototype.Ic;a.Ta=E.D.prototype.Ta;a.yc=E.D.prototype.yc;a.XE=function(a,d){if(!E.D.prototype.U.call(this))return r;this.shaderProgram=E.Id.mc(E.S.RU);this.wD(d,r);this.string=a;return p};a.fy=function(a){var d=this.im;if(d.r!=a.r||
  370. d.g!=a.g||d.b!=a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.kf(),this.nb=p};a.Z=function(a){if(this.Kb&&""!=this.Kb){a=a||E.l;var d=this.I;d&&d.tc&&(this.Gb.Jc(),this.Gb.We(),E.Ih(this.q.src,this.q.Q),E.pe(d),E.Fc(E.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.Lv),this.De&&(a.bufferData(a.ARRAY_BUFFER,this.Ob.yw,a.STATIC_DRAW),this.De=r),a.vertexAttribPointer(E.pb,3,a.FLOAT,r,24,0),a.vertexAttribPointer(E.wd,2,a.FLOAT,r,24,16),a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4));
  371. if(1===E.Zj)a=this.Ob,E.Ae.Xd([L(a.L.i.x,a.L.i.y),L(a.F.i.x,a.F.i.y),L(a.M.i.x,a.M.i.y),L(a.K.i.x,a.K.i.y)],4,p);else if(2===E.Zj){a=this.GN();var d=this.offsetX,e=this.offsetY;E.Ae.Xd([L(d,e),L(d+a.width,e),L(d+a.width,e+a.height),L(d,e+a.height)],4,p)}E.pf++}};a.rb=E.D.prototype.rb};E.H.yz=function(){var a=E.S.prototype;E.j(a,"color",a.Eg,a.Za);E.j(a,"opacity",a.Fg,a.Ta);E.j(a,"string",a.al,a.od);E.j(a,"textAlign",a.J0,a.H4);E.j(a,"verticalAlign",a.z1,a.p5);E.j(a,"fontSize",a.AE,a.hy);E.j(a,"fontName",a.zE,a.gy);E.j(a,"font",a.mW,a.kY);E.j(a,"boundingWidth",a.tB,a.eY);E.j(a,"boundingHeight",a.jW,a.dY);E.j(a,"fillStyle",a.lW,a.fy);E.j(a,"strokeStyle",a.JW,a.GY);E.j(a,"lineWidth",a.uW,a.oY);E.j(a,"shadowOffsetX",a.EW,a.wY);E.j(a,"shadowOffsetY",a.FW,a.xY);E.j(a,"shadowOpacity",
  372. a.GW,a.yY);E.j(a,"shadowBlur",a.DW,a.vY)};E.S=E.D.extend({gc:q,Ak:E.wq,Wk:E.Eq,Vb:q,Nb:0,Kb:"",aC:q,mo:r,dh:q,gd:r,Cd:q,tj:0,Nk:0,Zv:q,Ag:r,hm:q,vj:0,dw:q,im:q,cv:q,iD:0,jD:0,nb:r,qv:q,rv:q,GK:q,wb:"LabelTTF",ctor:function(a,c,d,e,f,g){E.D.prototype.ctor.call(this);this.gc=P(0,0);this.Ak=E.fu;this.Wk=E.Eq;this.Oa=r;this.dh="";this.Vb="Arial";this.gd=this.mo=r;this.Cd=L(0,0);this.Nk=this.tj=0;this.Zv="rgba(128, 128, 128, 0.5)";this.Ag=r;this.hm=E.color(255,255,255,255);this.vj=0;this.dw="";this.im=E.color(255,255,255,255);this.cv="rgba(255,255,255,1)";
  373. this.jD=this.iD=0;this.nb=r;this.GK=[];this.kf();c&&c instanceof E.$G?this.XE(a,c):E.S.prototype.md.call(this,a,c,d,e,f,g)},U:function(){return this.md(" ",this.Vb,this.Nb)},rX:function(){this.wB().font=this.dh},po:function(a){return this.wB().measureText(a).width},description:function(){return"\x3ccc.LabelTTF | FontName \x3d"+this.Vb+" FontSize \x3d "+this.Nb.toFixed(1)+"\x3e"},Za:q,kf:q,Ic:q,Ta:q,yc:q,Ala:function(a){E.m.prototype.yc.call(this,a);this.kf()},al:A("Kb"),J0:A("Ak"),z1:A("Wk"),qca:function(){return P(this.gc)},
  374. AE:A("Nb"),zE:A("Vb"),md:function(a,c,d,e,f,g){a=a?a+"":"";d=d||16;e=e||P(0,d);f=f||E.fu;g=g||E.Eq;this.Oa=r;this.gc=P(e.width,e.height);this.Vb=c||"Arial";this.Ak=f;this.Wk=g;this.Nb=d;this.dh=this.Nb+"px '"+c+"'";this.gi=E.S.Gq(c,this.Nb);this.string=a;this.kf();this.uw();this.nb=r;return p},XE:q,Bka:function(a){a&&this.wD(a,p)},Xda:function(){return this.PX(r)},K_:function(a,c,d,e){d=d||0.5;r===this.gd&&(this.gd=p);var f=this.Cd;if(f&&f.x!=a||f.Je!=c)f.x=a,f.y=c;this.tj!=d&&(this.tj=d);this.kf();
  375. this.Nk!=e&&(this.Nk=e);this.nb=p},EW:function(){return this.Cd.x},wY:function(a){r===this.gd&&(this.gd=p);this.Cd.x!=a&&(this.Cd.x=a,this.nb=p)},FW:function(){return this.Cd.Je},xY:function(a){r===this.gd&&(this.gd=p);this.Cd.Je!=a&&(this.Cd.Je=a,this.nb=p)},S9:function(){return L(this.Cd.x,this.Cd.y)},l$:function(a){r===this.gd&&(this.gd=p);if(this.Cd.x!=a.x||this.Cd.y!=a.y)this.Cd.x=a.x,this.Cd.y=a.y,this.nb=p},GW:A("tj"),yY:function(a){r===this.gd&&(this.gd=p);this.tj!=a&&(this.tj=a,this.kf(),
  376. this.nb=p)},DW:A("Nk"),vY:function(a){r===this.gd&&(this.gd=p);this.Nk!=a&&(this.Nk=a,this.nb=p)},Eaa:function(){this.gd&&(this.gd=r,this.nb=p)},L_:function(a,c){this.Ag===r&&(this.Ag=p);var d=this.hm;if(d.r!==a.r||d.g!==a.g||d.b!==a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.kf();this.vj!==c&&(this.vj=c||0);this.nb=p},JW:A("hm"),GY:function(a){this.Ag===r&&(this.Ag=p);var c=this.hm;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.kf(),this.nb=p},uW:A("vj"),oY:function(a){this.Ag===r&&(this.Ag=
  377. p);this.vj!==a&&(this.vj=a||0,this.nb=p)},Faa:function(){this.Ag&&(this.Ag=r,this.nb=p)},fy:q,lW:A("im"),wD:function(a,c){a.Kba?(this.gc.width=a.boundingWidth,this.gc.height=a.boundingHeight):(this.gc.width=0,this.gc.height=0);this.Ak=a.textAlign;this.Wk=a.verticalAlign;this.Vb=a.fontName;this.Nb=a.fontSize||12;this.dh=this.Nb+"px '"+this.Vb+"'";this.gi=E.S.Gq(this.Vb,this.Nb);a.PP&&this.K_(a.shadowOffsetX,a.shadowOffsetY,a.shadowOpacity,a.shadowBlur);a.nG&&this.L_(a.strokeStyle,a.lineWidth);this.fy(a.fillStyle);
  378. c&&this.uw()},PX:function(a){var c=new E.$G;a?(c.fontSize=this.Nb,c.boundingWidth=E.qb()*this.gc.width,c.boundingHeight=E.qb()*this.gc.height):(c.fontSize=this.Nb,c.boundingWidth=this.gc.width,c.boundingHeight=this.gc.height);c.fontName=this.Vb;c.textAlign=this.Ak;c.verticalAlign=this.Wk;if(this.Ag){c.nG=p;var d=this.hm;c.strokeStyle=E.color(d.r,d.g,d.b);c.lineWidth=this.vj}else c.nG=r;this.gd?(c.PP=p,c.shadowBlur=this.Nk,c.shadowOpacity=this.tj,c.shadowOffsetX=(a?E.qb():1)*this.Cd.x,c.shadowOffsetY=
  379. (a?E.qb():1)*this.Cd.y):c.gd=r;a=this.im;c.fillStyle=E.color(a.r,a.g,a.b);return c},gi:18,od:function(a){a=String(a);this.aC!=a&&(this.aC=a+"",this.sw(),this.nb=p)},sw:function(){this.Kb=this.aC},H4:function(a){a!==this.Ak&&(this.Ak=a,this.nb=p)},p5:function(a){a!=this.Wk&&(this.Wk=a,this.nb=p)},uja:function(a,c){var d;c===k?(d=a.width,c=a.height):d=a;if(d!=this.gc.width||c!=this.gc.height)this.gc.width=d,this.gc.height=c,this.sw(),this.nb=p},tB:function(){return this.gc.width},eY:function(a){a!=
  380. this.gc.width&&(this.gc.width=a,this.sw(),this.nb=p)},jW:function(){return this.gc.height},dY:function(a){a!=this.gc.height&&(this.gc.height=a,this.sw(),this.nb=p)},hy:function(a){this.Nb!==a&&(this.Nb=a,this.dh=a+"px '"+this.Vb+"'",this.gi=E.S.Gq(this.Vb,a),this.nb=p)},gy:function(a){this.Vb&&this.Vb!=a&&(this.Vb=a,this.dh=this.Nb+"px '"+a+"'",this.gi=E.S.Gq(a,this.Nb),this.nb=p)},mW:A("dh"),kY:function(a){var c=E.S.ZV.exec(a);c&&(this.Nb=parseInt(c[1]),this.Vb=c[2],this.dh=a,this.gi=E.S.Gq(this.Vb,
  381. this.Nb),this.nb=p)},SV:function(a){if(a){var c=this.iD,d=this.jD,e=this.N.height-d,f=this.Wk,g=this.Ak,h=this.gi,m=this.vj;a.setTransform(1,0,0,1,0+0.5*c,e+0.5*d);a.font!=this.dh&&(a.font=this.dh);a.fillStyle=this.cv;var n=d=0,s=this.Ag;s&&(a.lineWidth=2*m,a.strokeStyle=this.dw);this.gd&&(m=this.Cd,a.shadowColor=this.Zv,a.shadowOffsetX=m.x,a.shadowOffsetY=-m.y,a.shadowBlur=this.Nk);a.textBaseline=E.S.WY[f];a.textAlign=E.S.VY[g];c=this.N.width-c;d=g===E.TH?d+c:g===E.wq?d+c/2:d+0;if(this.mo){g=this.wi.length;
  382. f===E.GI?n=h+e-h*g:f===E.IU&&(n=h/2+(e-h*g)/2);for(f=0;f<g;f++)c=this.wi[f],m=-e+h*f+n,s&&a.strokeText(c,d,m),a.fillText(c,d,m)}else f!==E.GI&&(n=f===E.Eq?n-e:n-0.5*e),s&&a.strokeText(this.Kb,d,n),a.fillText(this.Kb,d,n)}},wB:function(){if(this.rv)return this.rv;if(!this.qv){var a=E.Sb("canvas"),c=new E.ca;c.Rc(a);this.texture=c;this.qv=a}return this.rv=this.qv.getContext("2d")},sV:function(a,c,d){var e=a[c],f=this.po(e);if(f>d&&1<e.length){for(var g=e.length*(d/f)|0,h=e.substr(g),m=f-this.po(h),
  383. n,s=0,v=0;m>d&&100>v++;)g*=d/m,g|=0,h=e.substr(g),m=f-this.po(h);for(v=0;m<d&&100>v++;)h&&(s=(n=E.S.kZ.exec(h))?n[0].length:1,n=h),g+=s,h=e.substr(g),m=f-this.po(h);g-=s;d=e.substr(0,g);if(E.S.D6&&E.S.UY.test(n||h))f=E.S.iX.exec(d),g-=f?f[0].length:0,n=e.substr(g),d=e.substr(0,g);if(E.S.VV.test(n)&&(f=E.S.hX.exec(d))&&d!==f[0])g-=f[0].length,n=e.substr(g),d=e.substr(0,g);a[c]=n||h;a.splice(c,0,d)}},tw:function(){var a=this.gc.width,c,d,e=this.GK;e.length=0;this.mo=r;this.rX();if(0!==a){this.wi=this.Kb.split("\n");
  384. for(c=0;c<this.wi.length;c++)this.sV(this.wi,c,a)}else{this.wi=this.Kb.split("\n");c=0;for(d=this.wi.length;c<d;c++)e.push(this.po(this.wi[c]))}0<this.wi.length&&(this.mo=p);d=c=0;this.Ag&&(c=d=2*this.vj);if(this.gd){var f=this.Cd;c+=2*Math.abs(f.x);d+=2*Math.abs(f.y)}a=0===a?this.mo?P(0|Math.max.apply(Math,e)+c,0|this.gi*this.wi.length+d):P(0|this.po(this.Kb)+c,0|this.gi+d):0===this.gc.height?this.mo?P(0|a+c,0|this.gi*this.wi.length+d):P(0|a+c,0|this.gi+d):P(0|a+c,0|this.gc.height+d);this.Yd(a);
  385. this.iD=c;this.jD=d;e=this.Lc;this.Cb.x=0.5*c+(a.width-c)*e.x;this.Cb.y=0.5*d+(a.height-d)*e.y},Ne:function(){this.nb&&this.tw();return E.D.prototype.Ne.call(this)},eh:function(){this.nb&&this.tw();return E.D.prototype.eh.call(this)},yk:function(){this.nb&&this.tw();return E.D.prototype.yk.call(this)},uw:function(){var a=this.wB(),c=this.qv,d=this.N;if(0===this.Kb.length)return c.width=1,c.height=d.height||1,this.I&&this.I.ub(),this.rb(W(0,0,1,d.height)),p;a.font=this.dh;this.tw();var e=d.width,d=
  386. d.height,f=c.width==e&&c.height==d;c.width=e;c.height=d;f&&a.clearRect(0,0,e,d);this.SV(a);this.I&&this.I.ub();this.rb(W(0,0,e,d));return p},P:function(a){this.Kb&&""!=this.Kb&&(this.nb&&(this.nb=r,this.uw()),E.D.prototype.P.call(this,a||E.l))},Z:q,yL:function(a){var c=this.X?this.textureAtlas.texture:this.I;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Ob;this.Bc?(E.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/d,f=a.y/e,
  387. a=(a.y+a.width)/e),this.Lb&&(e=f,f=a,a=e),this.Mb&&(e=c,c=d,d=e),g.F.n.ea=c,g.F.n.fa=f,g.M.n.ea=c,g.M.n.fa=a,g.L.n.ea=d,g.L.n.fa=f,g.K.n.ea=d,g.K.n.fa=a):(E.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/d,f=a.y/e,a=(a.y+a.height)/e),this.Lb&&(e=c,c=d,d=e),this.Mb&&(e=f,f=a,a=e),g.F.n.ea=c,g.F.n.fa=a,g.M.n.ea=d,g.M.n.fa=a,g.L.n.ea=c,g.L.n.fa=f,g.K.n.ea=d,g.K.n.fa=f);this.De=p}}});
  388. E.A===E.Ba?(G=E.S.prototype,G.Za=function(a){E.m.prototype.Za.call(this,a);this.kf()},G.kf=function(){this.nb=p;var a=this.za,c=this.hb,d=this.hm,e=this.im;this.Zv="rgba("+(0|0.5*a.r)+","+(0|0.5*a.g)+","+(0|0.5*a.b)+","+this.tj+")";this.cv="rgba("+(0|a.r/255*e.r)+","+(0|a.g/255*e.g)+","+(0|a.b/255*e.b)+", "+c/255+")";this.dw="rgba("+(0|a.r/255*d.r)+","+(0|a.g/255*d.g)+","+(0|a.b/255*d.b)+", "+c/255+")"},G.Ic=function(a){E.m.prototype.Ic.call(this,a);this.kf()},G.Ta=function(a){this.Rd!==a&&(E.D.prototype.Ta.call(this,
  389. a),this.kf(),this.nb=p)},G.yc=E.D.prototype.yc,G.XE=function(a,c){this.wD(c,r);this.string=a;return p},G.fy=function(a){var c=this.im;if(c.r!=a.r||c.g!=a.g||c.b!=a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.kf(),this.nb=p},G.Z=E.D.prototype.Z,G.rb=function(a,c,d){this.Bc=c||r;this.Yd(d||a);this.jG(a);c=this.jm;c.x=a.x;c.y=a.y;c.width=a.width;c.height=a.height;c.cn=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.xh;this.Lb&&(a.x=-a.x);this.Mb&&(a.y=-a.y);this.Jb.x=a.x+(this.N.width-this.ha.width)/2;this.Jb.y=
  390. a.y+(this.N.height-this.ha.height)/2;this.X&&(this.dirty=p)},G=q):(E.assert("function"===typeof E.H.uA,E.f.cd,"LabelTTFWebGL.js"),E.H.uA(),delete E.H.uA);E.assert("function"===typeof E.H.yz,E.f.cd,"LabelTTFPropertyDefine.js");E.H.yz();delete E.H.yz;E.S.VY=["left","center","right"];E.S.WY=["top","middle","bottom"];E.S.D6=p;E.S.kZ=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;E.S.UY=/^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
  391. E.S.iX=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;E.S.hX=/[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;E.S.VV=/^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;E.S.ZV=/^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;E.S.create=function(a,c,d,e,f,g){return new E.S(a,c,d,e,f,g)};E.S.saa=E.S.create;
  392. E.S.RU=E.HU?E.Yi:E.Kz;E.S.jk=E.Sb("div");E.S.jk.style.fontFamily="Arial";E.S.jk.style.position="absolute";E.S.jk.style.left="-100px";E.S.jk.style.top="-100px";E.S.jk.style.lineHeight="normal";document.body?document.body.appendChild(E.S.jk):E.Ha(window,"load",function(){this.removeEventListener("load",arguments.callee,r);document.body.appendChild(E.S.jk)},r);
  393. E.S.Gq=function(a,c){var d=E.S.MI[a+"."+c];if(0<d)return d;var e=E.S.jk;e.innerHTML="ajghl~!";e.style.fontFamily=a;e.style.fontSize=c+"px";d=e.clientHeight;E.S.MI[a+"."+c]=d;e.innerHTML="";return d};E.S.MI={};E.xR=E.na.extend({xc:q,target:q,tm:0,of:q,Am:r,paused:r,ex:q,ctor:function(){this.xc=[];this.target=q;this.tm=0;this.of=q;this.paused=this.Am=r;this.ex=q}});
  394. E.EG=E.na.extend({gh:q,xn:q,yd:q,ei:r,j$:function(a,c){for(var d=0;d<a.length;d++)if(c==a[d].target)return a[d];return q},ctor:function(){this.gh={};this.xn=[];this.yd=q;this.ei=r},nZ:function(a,c,d){a||b("cc.ActionManager.addAction(): action must be non-null");c||b("cc.ActionManager.addAction(): action must be non-null");var e=this.gh[c.ta];e||(e=new E.xR,e.paused=d,e.target=c,this.gh[c.ta]=e,this.xn.push(e));this.UU(e);e.xc.push(a);a.z(c)},xia:function(){for(var a=this.xn,c=0;c<a.length;c++){var d=
  395. a[c];d&&this.SO(d.target,p)}},SO:function(a,c){if(a!=q){var d=this.gh[a.ta];d&&(-1!==d.xc.indexOf(d.of)&&!d.Am&&(d.Am=p),d.xc.length=0,this.yd==d&&!c?this.ei=p:this.aB(d))}},RO:function(a){if(a!=q){var c=this.gh[a.originalTarget.ta];if(c)for(var d=0;d<c.xc.length;d++){if(c.xc[d]==a){c.xc.splice(d,1);break}}else E.log(E.f.wQ)}},P3:function(a,c){a==E.en&&E.log(E.f.FG);E.assert(c,E.f.FG);var d=this.gh[c.ta];if(d)for(var e=d.xc.length,f=0;f<e;++f){var g=d.xc[f];if(g&&g.IE()===a&&g.originalTarget==c){this.SX(f,
  396. d);break}}},uE:function(a,c){a==E.en&&E.log(E.f.uQ);var d=this.gh[c.ta];if(d){if(d.xc!=q)for(var e=0;e<d.xc.length;++e){var f=d.xc[e];if(f&&f.IE()===a)return f}E.log(E.f.vQ,a)}return q},f3:function(a){return(a=this.gh[a.ta])?a.xc?a.xc.length:0:0},up:function(a){(a=this.gh[a.ta])&&(a.paused=p)},Pj:function(a){(a=this.gh[a.ta])&&(a.paused=r)},Wha:function(){for(var a=[],c=this.xn,d=0;d<c.length;d++){var e=c[d];e&&!e.paused&&(e.paused=p,a.push(e.target))}return a},e4:function(a){if(a)for(var c=0;c<a.length;c++)a[c]&&
  397. this.Pj(a[c])},gia:function(){E.B.Di().ot(this)},SX:function(a,c){c.xc[a]==c.of&&!c.Am&&(c.Am=p);c.xc.splice(a,1);c.tm>=a&&c.tm--;0==c.xc.length&&(this.yd==c?this.ei=p:this.aB(c))},aB:function(a){a&&(delete this.gh[a.target.ta],E.Ke(this.xn,a),a.xc=q,a.target=q)},UU:function(a){a.xc==q&&(a.xc=[])},update:function(a){for(var c=this.xn,d,e=0;e<c.length;e++){d=this.yd=c[e];if(!d.paused)for(d.tm=0;d.tm<d.xc.length;d.tm++)if(d.of=d.xc[d.tm],d.of){d.Am=r;d.of.step(a*(d.of.Kr?d.of.je:1));if(d.Am)d.of=q;
  398. else if(d.of.Hg()){d.of.stop();var f=d.of;d.of=q;this.RO(f)}d.of=q}this.ei&&0===d.xc.length&&this.aB(d)}}});E.tga=Number;E.jfa=Number;E.kfa=Number;E.on=0;E.pn=1;E.lF=3.141592;E.I2=0.017453;E.J2=57.295779;E.xa=0.015625;E.Gc=function(a){return a*a};E.Bs=function(a){return a*E.I2};E.oga=function(a){return a*E.J2};E.wx=function(a,c){return a<c?a:c};E.vx=function(a,c){return a>c?a:c};E.ifa=function(a,c){return a+E.xa>c&&a-E.xa<c};E.Lh=function(){this.y=this.x=0};E.xga=function(a,c,d){a.x=c;a.y=d;return a};E.yx=function(a){return Math.sqrt(E.Gc(a.x)+E.Gc(a.y))};E.yga=function(a){return E.Gc(a.x)+E.Gc(a.y)};E.P2=function(a,c){var d=1/E.yx(c),e=new E.Lh;e.x=c.x*d;e.y=c.y*d;a.x=e.x;a.y=e.y};E.uga=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;return a};E.wga=function(a,c){return a.x*c.x+a.y*c.y};E.zx=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;return a};
  399. E.Aga=function(a,c,d){var e=new E.Lh;e.x=c.x*d.c[0]+c.y*d.c[3]+d.c[6];e.y=c.x*d.c[1]+c.y*d.c[4]+d.c[7];a.x=e.x;a.y=e.y;return a};E.Bga=B(q);E.zga=function(a,c,d){a.x=c.x*d;a.y=c.y*d;return a};E.vga=function(a,c){return a.x<c.x+E.xa&&a.x>c.x-E.xa&&a.y<c.y+E.xa&&a.y>c.y-E.xa};E.vb=function(a,c,d){this.x=a||0;this.y=c||0;this.d=d||0};E.mp=function(a,c,d,e){if(!a)return new E.vb(c,d,e);a.x=c;a.y=d;a.d=e;return a};E.pO=function(a){return Math.sqrt(E.Gc(a.x)+E.Gc(a.y)+E.Gc(a.d))};E.qO=function(a){return E.Gc(a.x)+E.Gc(a.y)+E.Gc(a.d)};E.tf=function(a,c){var d=1/E.pO(c);a.x=c.x*d;a.y=c.y*d;a.d=c.d*d};E.el=function(a,c,d){a.x=c.y*d.d-c.d*d.y;a.y=c.d*d.x-c.x*d.d;a.d=c.x*d.y-c.y*d.x};E.nF=function(a,c){return a.x*c.x+a.y*c.y+a.d*c.d};
  400. E.oO=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.d=c.d+d.d};E.pF=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.d=c.d-d.d};E.Gga=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.d*d.c[8]+d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.d*d.c[9]+d.c[13];a.d=c.x*d.c[2]+c.y*d.c[6]+c.d*d.c[10]+d.c[14];return a};E.Hga=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.d*d.c[8];a.y=c.x*d.c[1]+c.y*d.c[5]+c.d*d.c[9];a.d=c.x*d.c[2]+c.y*d.c[6]+c.d*d.c[10];return a};
  401. E.rO=function(a,c,d){var e=new E.sO,f=new E.sO;E.Q2(f,c.x,c.y,c.d);E.tO(e,f,d);a.x=e.x/e.G;a.y=e.y/e.G;a.d=e.d/e.G};E.oF=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.d=c.d*d;return a};E.Cga=function(a,c){return a.x<c.x+E.xa&&a.x>c.x-E.xa&&a.y<c.y+E.xa&&a.y>c.y-E.xa&&a.d<c.d+E.xa&&a.d>c.d-E.xa?1:0};E.Dga=function(a,c,d){c=new E.vb(c.x-d.c[12],c.y-d.c[13],c.d-d.c[14]);a.x=c.x*d.c[0]+c.y*d.c[1]+c.d*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.d*d.c[6];a.d=c.x*d.c[8]+c.y*d.c[9]+c.d*d.c[10];return a};
  402. E.Ega=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[1]+c.d*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.d*d.c[6];a.d=c.x*d.c[8]+c.y*d.c[9]+c.d*d.c[10];return a};E.Cs=function(a,c){a!=c&&(a.x=c.x,a.y=c.y,a.d=c.d)};E.Iga=function(a){a.x=0;a.y=0;a.d=0;return a};E.Fga=function(a){if(!a)return q;var c=new Float32Array(3);c[0]=a.x;c[1]=a.y;c[2]=a.d;return c};E.sO=function(){this.G=this.d=this.y=this.x=0};E.Q2=function(a,c,d,e){a.x=c;a.y=d;a.d=e;a.G=1};E.Jga=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.d=c.d+d.d;a.G=c.G+d.G;return a};E.Mga=function(a,c){return a.x*c.x+a.y*c.y+a.d*c.d+a.G*c.G};E.R2=function(a){return Math.sqrt(E.Gc(a.x)+E.Gc(a.y)+E.Gc(a.d)+E.Gc(a.G))};E.Nga=function(a){return E.Gc(a.x)+E.Gc(a.y)+E.Gc(a.d)+E.Gc(a.G)};E.Oga=aa();E.S2=function(a,c){var d=1/E.R2(c);a.x*=d;a.y*=d;a.d*=d;a.G*=d};
  403. E.Pga=function(a,c,d){E.S2(a,c);a.x*=d;a.y*=d;a.d*=d;a.G*=d;return a};E.Qga=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.d=c.d-d.d;a.G=c.G-d.G;return a};E.tO=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.d*d.c[8]+c.G*d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.d*d.c[9]+c.G*d.c[13];a.d=c.x*d.c[2]+c.y*d.c[6]+c.d*d.c[10]+c.G*d.c[14];a.G=c.x*d.c[3]+c.y*d.c[7]+c.d*d.c[11]+c.G*d.c[15]};E.Sga=function(a,c,d,e,f,g){for(var h=0;h<g;)E.tO(a+h*c,d+h*e,f),++h;return a};
  404. E.Kga=function(a,c){return a.x<c.x+E.xa&&a.x>c.x-E.xa&&a.y<c.y+E.xa&&a.y>c.y-E.xa&&a.d<c.d+E.xa&&a.d>c.d-E.xa&&a.G<c.G+E.xa&&a.G>c.G-E.xa};E.Lga=function(a,c){if(a==c)return E.log("destVec and srcVec are same object"),a;a.x=c.x;a.y=c.y;a.d=c.d;a.G=c.G;return a};E.Rga=function(a){if(!a)return q;var c=new Float32Array(4);c[0]=a.x;c[1]=a.y;c[2]=a.d;c[3]=a.G;return c};E.pga=function(a){this.start=a||new E.Lh;this.start=a||new E.Lh};E.qga=function(a,c,d,e,f){a.start.x=c;a.start.y=d;a.dir.x=e;a.dir.y=f};
  405. E.mF=function(a,c,d,e){var f=a.start.x,g=a.start.y,h=a.start.x+a.dir.x;a=a.start.y+a.dir.y;var m=c.x,n=c.y,s=d.x,v=d.y,w=(v-n)*(h-f)-(s-m)*(a-g);if(w>-E.xa&&w<E.xa)return E.on;n=((s-m)*(g-n)-(v-n)*(f-m))/w;m=f+n*(h-f);n=g+n*(a-g);if(m<E.wx(c.x,d.x)-E.xa||m>E.vx(c.x,d.x)+E.xa||n<E.wx(c.y,d.y)-E.xa||n>E.vx(c.y,d.y)+E.xa||m<E.wx(f,h)-E.xa||m>E.vx(f,h)+E.xa||n<E.wx(g,a)-E.xa||n>E.vx(g,a)+E.xa)return E.on;e.x=m;e.y=n;return E.pn};
  406. E.VD=function(a,c,d){var e=new E.Lh;E.zx(e,c,a);d.x=-e.y;d.y=e.x;E.P2(d,d)};E.sga=function(a,c,d,e,f,g){var h=new E.Lh,m=new E.Lh,n=new E.Lh,s=1E4,v=E.on,w;E.mF(a,c,d,h)&&(w=new E.Lh,v=E.pn,w=E.yx(E.zx(w,h,a.start)),w<s&&(m.x=h.x,m.y=h.y,s=w,E.VD(c,d,n)));E.mF(a,d,e,h)&&(w=new E.Lh,v=E.pn,w=E.yx(E.zx(w,h,a.start)),w<s&&(m.x=h.x,m.y=h.y,s=w,E.VD(d,e,n)));E.mF(a,e,c,h)&&(w=new E.Lh,v=E.pn,w=E.yx(E.zx(w,h,a.start)),w<s&&(m.x=h.x,m.y=h.y,E.VD(e,c,n)));v&&(f.x=m.x,f.y=m.y,g&&(g.x=n.x,g.y=n.y));return v};
  407. E.rga=function(){E.log("cc.kmRay2IntersectCircle() has not been implemented.")};var Float32Array=Float32Array||Array;E.ux=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0])};E.sfa=function(a,c){for(var d=0;9>d;d++)a.c[d]=c;return a};E.B2=function(a,c){a.c[0]=c.c[4]*c.c[8]-c.c[5]*c.c[7];a.c[1]=c.c[2]*c.c[7]-c.c[1]*c.c[8];a.c[2]=c.c[1]*c.c[5]-c.c[2]*c.c[4];a.c[3]=c.c[5]*c.c[6]-c.c[3]*c.c[8];a.c[4]=c.c[0]*c.c[8]-c.c[2]*c.c[6];a.c[5]=c.c[2]*c.c[3]-c.c[0]*c.c[5];a.c[6]=c.c[3]*c.c[7]-c.c[4]*c.c[6];a.c[8]=c.c[0]*c.c[4]-c.c[1]*c.c[3]};
  408. E.gO=function(a){a.c[1]=a.c[2]=a.c[3]=a.c[5]=a.c[6]=a.c[7]=0;a.c[0]=a.c[4]=a.c[8]=1};E.tfa=function(a,c,d){var e=new E.ux;if(0===c)return q;c=1/c;E.B2(e,d);E.C2(a,e,c);return a};E.ux.DB=new Float32Array([1,0,0,0,1,0,0,0,1]);E.ufa=function(a){for(var c=0;9>c;c++)if(E.ux.DB[c]!==a.c[c])return r;return p};E.Ffa=function(a,c){var d,e;for(d=0;3>d;++d)for(e=0;3>e;++e)a.c[3*d+e]=c.c[3*e+d];return a};
  409. E.rfa=function(a){var c;c=a.c[0]*a.c[4]*a.c[8]+a.c[1]*a.c[5]*a.c[6]+a.c[2]*a.c[3]*a.c[7];return c-=a.c[2]*a.c[4]*a.c[6]+a.c[0]*a.c[5]*a.c[7]+a.c[1]*a.c[3]*a.c[8]};
  410. E.vfa=function(a,c,d){c=c.c;d=d.c;a.c[0]=c[0]*d[0]+c[3]*d[1]+c[6]*d[2];a.c[1]=c[1]*d[0]+c[4]*d[1]+c[7]*d[2];a.c[2]=c[2]*d[0]+c[5]*d[1]+c[8]*d[2];a.c[3]=c[0]*d[3]+c[3]*d[4]+c[6]*d[5];a.c[4]=c[1]*d[3]+c[4]*d[4]+c[7]*d[5];a.c[5]=c[2]*d[3]+c[5]*d[4]+c[8]*d[5];a.c[6]=c[0]*d[6]+c[3]*d[7]+c[6]*d[8];a.c[7]=c[1]*d[6]+c[4]*d[7]+c[7]*d[8];a.c[8]=c[2]*d[6]+c[5]*d[7]+c[8]*d[8];return a};E.C2=function(a,c,d){for(var e=0;9>e;e++)a.c[e]=c.c[e]*d};
  411. E.xfa=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);a.c[0]=e+c.x*c.x*(1-e);a.c[1]=c.d*d+c.y*c.x*(1-e);a.c[2]=-c.y*d+c.d*c.x*(1-e);a.c[3]=-c.d*d+c.x*c.y*(1-e);a.c[4]=e+c.y*c.y*(1-e);a.c[5]=c.x*d+c.d*c.y*(1-e);a.c[6]=c.y*d+c.x*c.d*(1-e);a.c[7]=-c.x*d+c.y*c.d*(1-e);a.c[8]=e+c.d*c.d*(1-e);return a};E.qfa=function(a,c){if(a==c)return E.log("cc.kmMat3Assign(): pOut equals pIn"),a;for(var d=0;9>d;d++)a.c[d]=c.c[d];return a};
  412. E.pfa=function(a,c){if(a==c)return p;for(var d=0;9>d;++d)if(!(a.c[d]+E.xa>c.c[d]&&a.c[d]-E.xa<c.c[d]))return r;return p};E.Afa=function(a,c){a.c[0]=1;a.c[1]=0;a.c[2]=0;a.c[3]=0;a.c[4]=Math.cos(c);a.c[5]=Math.sin(c);a.c[6]=0;a.c[7]=-Math.sin(c);a.c[8]=Math.cos(c);return a};E.Bfa=function(a,c){a.c[0]=Math.cos(c);a.c[1]=0;a.c[2]=-Math.sin(c);a.c[3]=0;a.c[4]=1;a.c[5]=0;a.c[6]=Math.sin(c);a.c[7]=0;a.c[8]=Math.cos(c);return a};
  413. E.Cfa=function(a,c){a.c[0]=Math.cos(c);a.c[1]=-Math.sin(c);a.c[2]=0;a.c[3]=Math.sin(c);a.c[4]=Math.cos(c);a.c[5]=0;a.c[6]=0;a.c[7]=0;a.c[8]=1;return a};E.wfa=function(a,c){a.c[0]=Math.cos(c);a.c[1]=Math.sin(c);a.c[2]=0;a.c[3]=-Math.sin(c);a.c[4]=Math.cos(c);a.c[5]=0;a.c[6]=0;a.c[7]=0;a.c[8]=1;return a};E.Dfa=function(a,c,d){E.gO(a);a.c[0]=c;a.c[4]=d;return a};E.Efa=function(a,c,d){E.gO(a);a.c[6]=c;a.c[7]=d;return a};
  414. E.yfa=function(a,c){if(!c||!a)return q;a.c[0]=1-2*(c.y*c.y+c.d*c.d);a.c[1]=2*(c.x*c.y-c.G*c.d);a.c[2]=2*(c.x*c.d+c.G*c.y);a.c[3]=2*(c.x*c.y+c.G*c.d);a.c[4]=1-2*(c.x*c.x+c.d*c.d);a.c[5]=2*(c.y*c.d-c.G*c.x);a.c[6]=2*(c.x*c.d-c.G*c.y);a.c[7]=2*(c.y*c.d+c.G*c.x);a.c[8]=1-2*(c.x*c.x+c.y*c.y);return a};E.zfa=function(a,c,d){E.mO(k,d);E.nO(k,a);return a};E.ba=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])};E.Ifa=function(a,c){a.c[0]=a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[5]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[10]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=a.c[15]=c};E.Om=function(a){a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=0;a.c[0]=a.c[5]=a.c[10]=a.c[15]=1};E.ba.Df=function(a,c,d){return a.c[c+4*d]};E.ba.Lk=function(a,c,d,e){a.c[c+4*d]=e};
  415. E.ba.Sk=function(a,c,d,e,f){var g=E.ba.Df(a,c,d);E.ba.Lk(a,c,d,E.ba.Df(a,e,f));E.ba.Lk(a,e,f,g)};
  416. E.ba.aW=function(a,c){var d,e=0,f=0,g,h,m,n=[0,0,0,0],s=[0,0,0,0],v=[0,0,0,0];for(d=0;4>d;d++){for(g=m=0;4>g;g++)if(1!=v[g])for(h=0;4>h;h++)0==v[h]&&Math.abs(E.ba.Df(a,g,h))>=m&&(m=Math.abs(E.ba.Df(a,g,h)),f=g,e=h);++v[e];if(f!=e){for(g=0;4>g;g++)E.ba.Sk(a,f,g,e,g);for(g=0;4>g;g++)E.ba.Sk(c,f,g,e,g)}s[d]=f;n[d]=e;if(0==E.ba.Df(a,e,e))return E.on;h=1/E.ba.Df(a,e,e);E.ba.Lk(a,e,e,1);for(g=0;4>g;g++)E.ba.Lk(a,e,g,E.ba.Df(a,e,g)*h);for(g=0;4>g;g++)E.ba.Lk(c,e,g,E.ba.Df(c,e,g)*h);for(h=0;4>h;h++)if(h!=
  417. e){m=E.ba.Df(a,h,e);E.ba.Lk(a,h,e,0);for(g=0;4>g;g++)E.ba.Lk(a,h,g,E.ba.Df(a,h,g)-E.ba.Df(a,e,g)*m);for(g=0;4>g;g++)E.ba.Lk(c,h,g,E.ba.Df(a,h,g)-E.ba.Df(c,e,g)*m)}}for(g=3;0<=g;g--)if(s[g]!=n[g])for(h=0;4>h;h++)E.ba.Sk(a,h,s[g],h,n[g]);return E.pn};E.ba.DB=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);E.E2=function(a,c){var d=new E.ba,e=new E.ba;E.Gj(d,c);E.Om(e);E.ba.aW(d,e)!=E.on&&E.Gj(a,d)};E.Mfa=function(a){for(var c=0;16>c;c++)if(E.ba.DB[c]!=a.c[c])return r;return p};
  418. E.Ufa=function(a,c){var d,e,f=a.c,g=c.c;for(e=0;4>e;++e)for(d=0;4>d;++d)f[4*e+d]=g[4*d+e];return a};
  419. E.Ii=function(a,c,d){a=a.c;var e=c.c[0],f=c.c[1],g=c.c[2],h=c.c[3],m=c.c[4],n=c.c[5],s=c.c[6],v=c.c[7],w=c.c[8],y=c.c[9],x=c.c[10],z=c.c[11],C=c.c[12],J=c.c[13],F=c.c[14];c=c.c[15];var O=d.c[0],R=d.c[1],N=d.c[2],I=d.c[3],K=d.c[4],D=d.c[5],M=d.c[6],S=d.c[7],U=d.c[8],T=d.c[9],ba=d.c[10],Y=d.c[11],$=d.c[12],ea=d.c[13],V=d.c[14];d=d.c[15];a[0]=O*e+R*m+N*w+I*C;a[1]=O*f+R*n+N*y+I*J;a[2]=O*g+R*s+N*x+I*F;a[3]=O*h+R*v+N*z+I*c;a[4]=K*e+D*m+M*w+S*C;a[5]=K*f+D*n+M*y+S*J;a[6]=K*g+D*s+M*x+S*F;a[7]=K*h+D*v+M*z+
  420. S*c;a[8]=U*e+T*m+ba*w+Y*C;a[9]=U*f+T*n+ba*y+Y*J;a[10]=U*g+T*s+ba*x+Y*F;a[11]=U*h+T*v+ba*z+Y*c;a[12]=$*e+ea*m+V*w+d*C;a[13]=$*f+ea*n+V*y+d*J;a[14]=$*g+ea*s+V*x+d*F;a[15]=$*h+ea*v+V*z+d*c};
  421. E.T0=function(){var a=E.il.top.c,c=E.Kj.top.c,d=new Float32Array(16);d[0]=a[0]*c[0]+a[4]*c[1]+a[8]*c[2]+a[12]*c[3];d[1]=a[1]*c[0]+a[5]*c[1]+a[9]*c[2]+a[13]*c[3];d[2]=a[2]*c[0]+a[6]*c[1]+a[10]*c[2]+a[14]*c[3];d[3]=a[3]*c[0]+a[7]*c[1]+a[11]*c[2]+a[15]*c[3];d[4]=a[0]*c[4]+a[4]*c[5]+a[8]*c[6]+a[12]*c[7];d[5]=a[1]*c[4]+a[5]*c[5]+a[9]*c[6]+a[13]*c[7];d[6]=a[2]*c[4]+a[6]*c[5]+a[10]*c[6]+a[14]*c[7];d[7]=a[3]*c[4]+a[7]*c[5]+a[11]*c[6]+a[15]*c[7];d[8]=a[0]*c[8]+a[4]*c[9]+a[8]*c[10]+a[12]*c[11];d[9]=a[1]*c[8]+
  422. a[5]*c[9]+a[9]*c[10]+a[13]*c[11];d[10]=a[2]*c[8]+a[6]*c[9]+a[10]*c[10]+a[14]*c[11];d[11]=a[3]*c[8]+a[7]*c[9]+a[11]*c[10]+a[15]*c[11];d[12]=a[0]*c[12]+a[4]*c[13]+a[8]*c[14]+a[12]*c[15];d[13]=a[1]*c[12]+a[5]*c[13]+a[9]*c[14]+a[13]*c[15];d[14]=a[2]*c[12]+a[6]*c[13]+a[10]*c[14]+a[14]*c[15];d[15]=a[3]*c[12]+a[7]*c[13]+a[11]*c[14]+a[15]*c[15];return d};
  423. E.ada=function(a,c,d){a=a.c;c=c.c;var e=d.c;e[0]=a[0]*c[0]+a[4]*c[1]+a[8]*c[2]+a[12]*c[3];e[1]=a[1]*c[0]+a[5]*c[1]+a[9]*c[2]+a[13]*c[3];e[2]=a[2]*c[0]+a[6]*c[1]+a[10]*c[2]+a[14]*c[3];e[3]=a[3]*c[0]+a[7]*c[1]+a[11]*c[2]+a[15]*c[3];e[4]=a[0]*c[4]+a[4]*c[5]+a[8]*c[6]+a[12]*c[7];e[5]=a[1]*c[4]+a[5]*c[5]+a[9]*c[6]+a[13]*c[7];e[6]=a[2]*c[4]+a[6]*c[5]+a[10]*c[6]+a[14]*c[7];e[7]=a[3]*c[4]+a[7]*c[5]+a[11]*c[6]+a[15]*c[7];e[8]=a[0]*c[8]+a[4]*c[9]+a[8]*c[10]+a[12]*c[11];e[9]=a[1]*c[8]+a[5]*c[9]+a[9]*c[10]+a[13]*
  424. c[11];e[10]=a[2]*c[8]+a[6]*c[9]+a[10]*c[10]+a[14]*c[11];e[11]=a[3]*c[8]+a[7]*c[9]+a[11]*c[10]+a[15]*c[11];e[12]=a[0]*c[12]+a[4]*c[13]+a[8]*c[14]+a[12]*c[15];e[13]=a[1]*c[12]+a[5]*c[13]+a[9]*c[14]+a[13]*c[15];e[14]=a[2]*c[12]+a[6]*c[13]+a[10]*c[14]+a[14]*c[15];e[15]=a[3]*c[12]+a[7]*c[13]+a[11]*c[14]+a[15]*c[15];return d.c};
  425. E.Gj=function(a,c){if(a==c)E.log("cc.kmMat4Assign(): pOut equals pIn");else{var d=a.c,e=c.c;d[0]=e[0];d[1]=e[1];d[2]=e[2];d[3]=e[3];d[4]=e[4];d[5]=e[5];d[6]=e[6];d[7]=e[7];d[8]=e[8];d[9]=e[9];d[10]=e[10];d[11]=e[11];d[12]=e[12];d[13]=e[13];d[14]=e[14];d[15]=e[15]}};E.Gfa=function(a,c){if(a==c)return E.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),p;for(var d=0;16>d;d++)if(!(a.c[d]+E.xa>c.c[d]&&a.c[d]-E.xa<c.c[d]))return r;return p};
  426. E.Rfa=function(a,c){a.c[0]=1;a.c[1]=0;a.c[2]=0;a.c[3]=0;a.c[4]=0;a.c[5]=Math.cos(c);a.c[6]=Math.sin(c);a.c[7]=0;a.c[8]=0;a.c[9]=-Math.sin(c);a.c[10]=Math.cos(c);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};E.Sfa=function(a,c){a.c[0]=Math.cos(c);a.c[1]=0;a.c[2]=-Math.sin(c);a.c[3]=0;a.c[4]=0;a.c[5]=1;a.c[6]=0;a.c[7]=0;a.c[8]=Math.sin(c);a.c[9]=0;a.c[10]=Math.cos(c);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
  427. E.Tfa=function(a,c){a.c[0]=Math.cos(c);a.c[1]=Math.sin(c);a.c[2]=0;a.c[3]=0;a.c[4]=-Math.sin(c);a.c[5]=Math.cos(c);a.c[6]=0;a.c[7]=0;a.c[8]=0;a.c[9]=0;a.c[10]=1;a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
  428. E.Nfa=function(a,c,d,e){var f=Math.cos(c);c=Math.sin(c);var g=Math.cos(d);d=Math.sin(d);var h=Math.cos(e);e=Math.sin(e);var m=c*d,n=f*d;a.c[0]=g*h;a.c[4]=g*e;a.c[8]=-d;a.c[1]=m*h-f*e;a.c[5]=m*e+f*h;a.c[9]=c*g;a.c[2]=n*h+c*e;a.c[6]=n*e-c*h;a.c[10]=f*g;a.c[3]=a.c[7]=a.c[11]=0;a.c[15]=1;return a};
  429. E.Ofa=function(a,c){a.c[0]=1-2*(c.y*c.y+c.d*c.d);a.c[1]=2*(c.x*c.y+c.d*c.G);a.c[2]=2*(c.x*c.d-c.y*c.G);a.c[3]=0;a.c[4]=2*(c.x*c.y-c.d*c.G);a.c[5]=1-2*(c.x*c.x+c.d*c.d);a.c[6]=2*(c.d*c.y+c.x*c.G);a.c[7]=0;a.c[8]=2*(c.x*c.d+c.y*c.G);a.c[9]=2*(c.y*c.d-c.x*c.G);a.c[10]=1-2*(c.x*c.x+c.y*c.y);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1;return a};
  430. E.Qfa=function(a,c,d){a.c[0]=c.c[0];a.c[1]=c.c[1];a.c[2]=c.c[2];a.c[3]=0;a.c[4]=c.c[3];a.c[5]=c.c[4];a.c[6]=c.c[5];a.c[7]=0;a.c[8]=c.c[6];a.c[9]=c.c[7];a.c[10]=c.c[8];a.c[11]=0;a.c[12]=d.x;a.c[13]=d.y;a.c[14]=d.d;a.c[15]=1;return a};E.H2=function(a,c,d,e){a.c[0]=c;a.c[5]=d;a.c[10]=e;a.c[15]=1;a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=a.c[12]=a.c[13]=a.c[14]=0};
  431. E.iO=function(a,c,d,e){a.c[0]=a.c[5]=a.c[10]=a.c[15]=1;a.c[1]=a.c[2]=a.c[3]=a.c[4]=a.c[6]=a.c[7]=a.c[8]=a.c[9]=a.c[11]=0;a.c[12]=c;a.c[13]=d;a.c[14]=e};E.Lfa=function(a,c){a.x=c.c[4];a.y=c.c[5];a.d=c.c[6];E.tf(a,a);return a};E.Kfa=function(a,c){a.x=c.c[0];a.y=c.c[1];a.d=c.c[2];E.tf(a,a);return a};E.Jfa=function(a,c){a.x=c.c[8];a.y=c.c[9];a.d=c.c[10];E.tf(a,a);return a};
  432. E.F2=function(a,c,d){var e=E.Bs(30),f=d-0.1,g=Math.sin(e);0==f||(0==g||0==c)||(e=Math.cos(e)/g,E.Om(a),a.c[0]=e/c,a.c[5]=e,a.c[10]=-(d+0.1)/f,a.c[11]=-1,a.c[14]=-0.2*d/f,a.c[15]=0)};E.kF=function(a,c,d,e,f,g,h){E.Om(a);a.c[0]=2/(d-c);a.c[5]=2/(f-e);a.c[10]=-2/(h-g);a.c[12]=-((d+c)/(d-c));a.c[13]=-((f+e)/(f-e));a.c[14]=-((h+g)/(h-g))};
  433. E.hO=function(a,c,d,e){var f=new E.vb,g=new E.vb,h=new E.vb,m=new E.vb,n=new E.ba;E.pF(f,d,c);E.tf(f,f);E.Cs(g,e);E.tf(g,g);E.el(h,f,g);E.tf(h,h);E.el(m,h,f);E.tf(h,h);E.Om(a);a.c[0]=h.x;a.c[4]=h.y;a.c[8]=h.d;a.c[1]=m.x;a.c[5]=m.y;a.c[9]=m.d;a.c[2]=-f.x;a.c[6]=-f.y;a.c[10]=-f.d;E.iO(n,-c.x,-c.y,-c.d);E.Ii(a,a,n)};
  434. E.G2=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);var f=new E.vb;E.tf(f,c);a.c[0]=e+f.x*f.x*(1-e);a.c[1]=f.d*d+f.y*f.x*(1-e);a.c[2]=-f.y*d+f.d*f.x*(1-e);a.c[3]=0;a.c[4]=-f.d*d+f.x*f.y*(1-e);a.c[5]=e+f.y*f.y*(1-e);a.c[6]=f.x*d+f.d*f.y*(1-e);a.c[7]=0;a.c[8]=f.y*d+f.x*f.d*(1-e);a.c[9]=-f.x*d+f.y*f.d*(1-e);a.c[10]=e+f.d*f.d*(1-e);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1};
  435. E.D2=function(a,c){a.c[0]=c.c[0];a.c[1]=c.c[1];a.c[2]=c.c[2];a.c[3]=c.c[4];a.c[4]=c.c[5];a.c[5]=c.c[6];a.c[6]=c.c[8];a.c[7]=c.c[9];a.c[8]=c.c[10]};
  436. E.Hfa=function(a,c,d){switch(d){case E.NR:a.a=c.c[3]-c.c[0];a.b=c.c[7]-c.c[4];a.C=c.c[11]-c.c[8];a.J=c.c[15]-c.c[12];break;case E.LR:a.a=c.c[3]+c.c[0];a.b=c.c[7]+c.c[4];a.C=c.c[11]+c.c[8];a.J=c.c[15]+c.c[12];break;case E.JR:a.a=c.c[3]+c.c[1];a.b=c.c[7]+c.c[5];a.C=c.c[11]+c.c[9];a.J=c.c[15]+c.c[13];break;case E.OR:a.a=c.c[3]-c.c[1];a.b=c.c[7]-c.c[5];a.C=c.c[11]-c.c[9];a.J=c.c[15]-c.c[13];break;case E.KR:a.a=c.c[3]-c.c[2];a.b=c.c[7]-c.c[6];a.C=c.c[11]-c.c[10];a.J=c.c[15]-c.c[14];break;case E.MR:a.a=
  437. c.c[3]+c.c[2];a.b=c.c[7]+c.c[6];a.C=c.c[11]+c.c[10];a.J=c.c[15]+c.c[14];break;default:E.log("cc.kmMat4ExtractPlane(): Invalid plane index")}c=Math.sqrt(a.a*a.a+a.b*a.b+a.C*a.C);a.a/=c;a.b/=c;a.C/=c;a.J/=c;return a};E.Pfa=function(a,c,d){c=new ha;var e=new E.ux;E.D2(e,d);E.mO(c,e);E.nO(c,a);return a};E.LR=0;E.NR=1;E.JR=2;E.OR=3;E.MR=4;E.KR=5;E.Vfa=function(a,c,d,e){this.a=a||0;this.b=c||0;this.C=d||0;this.J=e||0};E.ES=0;E.DS=1;E.FS=2;E.Xfa=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.d+a.J*c.G};E.Yfa=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.d+a.J};E.Zfa=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.d};E.$fa=function(a,c,d){a.a=d.x;a.b=d.y;a.C=d.d;a.J=-E.nF(d,c);return a};
  438. E.aga=function(a,c,d,e){var f=new E.vb,g=new E.vb,h=new E.vb;E.pF(g,d,c);E.pF(h,e,c);E.el(f,g,h);E.tf(f,f);a.a=f.x;a.b=f.y;a.C=f.d;a.J=E.nF(E.oF(f,f,-1),c);return a};E.bga=function(){b("cc.kmPlaneIntersectLine() hasn't been implemented.")};E.cga=function(a,c){var d=new E.vb;d.x=c.a;d.y=c.b;d.d=c.C;var e=1/E.pO(d);E.tf(d,d);a.a=d.x;a.b=d.y;a.C=d.d;a.J=c.J*e;return a};E.dga=function(){E.log("cc.kmPlaneScale() has not been implemented.")};
  439. E.Wfa=function(a,c){var d=a.a*c.x+a.b*c.y+a.C*c.d+a.J;return 0.0010<d?E.ES:-0.0010>d?E.DS:E.FS};function ha(){this.G=this.d=this.y=this.x=0}E.L2=function(a,c){a.x=-c.x;a.y=-c.y;a.d=-c.d;a.G=c.G;return a};E.M2=function(a,c){return a.G*c.G+a.x*c.x+a.y*c.y+a.d*c.d};E.fga=aa();E.N2=function(a){a.x=0;a.y=0;a.d=0;a.G=1};E.gga=function(a,c){var d=E.jO(c),e=new ha;if(Math.abs(d)>E.xa)return a.x=0,a.y=0,a.d=0,a.G=0,a;E.xx(a,E.L2(e,c),1/d);return a};E.hga=function(a){return 0==a.x&&0==a.y&&0==a.d&&1==a.G};E.jO=function(a){return Math.sqrt(E.O2(a))};
  440. E.O2=function(a){return a.x*a.x+a.y*a.y+a.d*a.d+a.G*a.G};E.iga=aa();E.jga=function(a,c,d){a.G=c.G*d.G-c.x*d.x-c.y*d.y-c.d*d.d;a.x=c.G*d.x+c.x*d.G+c.y*d.d-c.d*d.y;a.y=c.G*d.y+c.y*d.G+c.d*d.x-c.x*d.d;a.d=c.G*d.d+c.d*d.G+c.x*d.y-c.y*d.x;return a};E.kO=function(a,c){var d=E.jO(c);Math.abs(d)<=E.xa&&b("cc.kmQuaternionNormalize(): pIn is an invalid value");E.xx(a,c,1/d)};E.lO=function(a,c){var d=0.5*E.lF,e=Math.sin(d);a.G=Math.cos(d);a.x=c.x*e;a.y=c.y*e;a.d=c.d*e};
  441. E.mO=function(a,c){var d,e,f,g;d=[];e=g=0;if(c){d[0]=c.c[0];d[1]=c.c[3];d[2]=c.c[6];d[4]=c.c[1];d[5]=c.c[4];d[6]=c.c[7];d[8]=c.c[2];d[9]=c.c[5];d[10]=c.c[8];d[15]=1;var h=d[0];e=h[0]+h[5]+h[10]+1;e>E.xa?(g=2*Math.sqrt(e),d=(h[9]-h[6])/g,e=(h[2]-h[8])/g,f=(h[4]-h[1])/g,g*=0.25):h[0]>h[5]&&h[0]>h[10]?(g=2*Math.sqrt(1+h[0]-h[5]-h[10]),d=0.25*g,e=(h[4]+h[1])/g,f=(h[2]+h[8])/g,g=(h[9]-h[6])/g):h[5]>h[10]?(g=2*Math.sqrt(1+h[5]-h[0]-h[10]),d=(h[4]+h[1])/g,e=0.25*g,f=(h[9]+h[6])/g,g=(h[2]-h[8])/g):(g=2*Math.sqrt(1+
  442. h[10]-h[0]-h[5]),d=(h[2]+h[8])/g,e=(h[9]+h[6])/g,f=0.25*g,g=(h[4]-h[1])/g);a.x=d;a.y=e;a.d=f;a.G=g}};E.mga=function(a,c,d,e){var f,g,h,m,n;f=E.Bs(d)/2;g=E.Bs(c)/2;h=E.Bs(e)/2;e=Math.cos(f);c=Math.cos(g);d=Math.cos(h);f=Math.sin(f);g=Math.sin(g);h=Math.sin(h);m=c*d;n=g*h;a.G=e*m+f*n;a.x=f*m-e*n;a.y=e*g*d+f*c*h;a.d=e*c*h-f*g*d;E.kO(a,a);return a};
  443. E.nga=function(a,c,d,e){if(c.x==d.x&&c.y==d.y&&c.d==d.d&&c.G==d.G)return a.x=c.x,a.y=c.y,a.d=c.d,a.G=c.G,a;var f=E.M2(c,d),g=Math.acos(f),f=Math.sqrt(1-E.Gc(f)),h=Math.sin(e*g)/f,m=new ha,n=new ha;E.xx(m,c,Math.sin((1-e)*g)/f);E.xx(n,d,h);E.K2(a,m,n);return a};E.nO=function(a,c){var d;d=Math.sqrt(E.Gc(a.x)+E.Gc(a.y)+E.Gc(a.d));d>-E.xa&&d<E.xa||d<2*E.lF+E.xa&&d>2*E.lF-E.xa?(c.x=0,c.y=0,c.d=1):(c.x=a.x/d,c.y=a.y/d,c.d=a.d/d,E.tf(c,c))};E.xx=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.d=c.d*d;a.G=c.G*d};
  444. E.ega=function(a,c){a.x=c.x;a.y=c.y;a.d=c.d;a.G=c.G;return a};E.K2=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.d=c.d+d.d;a.G=c.G+d.G};
  445. E.lga=function(a,c,d,e){var f=new E.vb,g=new E.vb;E.Cs(f,c);E.Cs(g,d);E.tf(f,f);E.tf(g,g);d=E.nF(f,g);if(1<=d)return E.N2(a),a;-0.999999>d?Math.abs(E.qO(e))<E.xa?E.lO(a,e):(f=new E.vb,g=new E.vb,g.x=1,g.y=0,g.d=0,E.el(f,g,c),Math.abs(E.qO(f))<E.xa&&(g=new E.vb,g.x=0,g.y=1,g.d=0,E.el(f,g,c)),E.tf(f,f),E.lO(a,f)):(c=Math.sqrt(2*(1+d)),e=1/c,d=new E.vb,E.el(d,f,g),a.x=d.x*e,a.y=d.y*e,a.d=d.d*e,a.G=0.5*c,E.kO(a,a));return a};
  446. E.kga=function(a,c,d){var e=new E.vb,f=new E.vb,g=new E.vb;g.x=c.x;g.y=c.y;g.d=c.d;E.el(e,g,d);E.el(f,g,e);E.oF(e,e,2*c.G);E.oF(f,f,2);E.oO(a,d,e);E.oO(a,a,f);return a};E.efa=function(a,c){this.min=a||new E.vb;this.max=c||new E.vb};E.gfa=function(a,c){return a.x>=c.min.x&&a.x<=c.max.x&&a.y>=c.min.y&&a.y<=c.max.y&&a.d>=c.min.d&&a.d<=c.max.d?E.pn:E.on};E.ffa=function(a,c){E.Cs(a.min,c.min);E.Cs(a.max,c.max);return a};E.hfa=function(){E.log("cc.kmAABBScale hasn't been supported.")};E.Ax=function(a,c,d,e){this.top=d;this.stack=e};E.Ax.T7=30;E.qF=function(a){a.stack=[];a.top=q};E.Bx=function(a,c){a.stack.push(a.top);a.top=new E.ba;E.Gj(a.top,c)};E.Tga=function(a){a.top=a.stack.pop()};E.rF=function(a){a.stack=q;a.top=q};E.Xg=5888;E.Yg=5889;E.dH=5890;E.Kj=new E.Ax;E.il=new E.Ax;E.lt=new E.Ax;E.Pb=q;E.$E=r;E.U2=function(){if(!E.$E){var a=new E.ba;E.qF(E.Kj);E.qF(E.il);E.qF(E.lt);E.Pb=E.Kj;E.$E=p;E.Om(a);E.Bx(E.Kj,a);E.Bx(E.il,a);E.Bx(E.lt,a)}};E.U2();E.A2=function(){E.rF(E.Kj);E.rF(E.il);E.rF(E.lt);E.$E=r;E.Pb=q};E.Fj=function(){E.Bx(E.Pb,E.Pb.top)};E.mfa=function(a){E.Pb.stack.push(E.Pb.top);E.Gj(a,E.Pb.top);E.Pb.top=a};E.Ej=function(){E.Pb.top=E.Pb.stack.pop()};
  447. E.sf=function(a){switch(a){case E.Xg:E.Pb=E.Kj;break;case E.Yg:E.Pb=E.il;break;case E.dH:E.Pb=E.lt;break;default:b("Invalid matrix mode specified")}};E.dl=function(){E.Om(E.Pb.top)};E.lfa=function(a){E.Gj(E.Pb.top,a)};E.kp=function(a){E.Ii(E.Pb.top,E.Pb.top,a)};E.lp=function(a,c){var d=new E.ba;E.iO(d,a,c,0);E.Ii(E.Pb.top,E.Pb.top,d)};E.nfa=function(a,c,d,e){c=new E.vb(c,d,e);d=new E.ba;E.G2(d,c,E.Bs(a));E.Ii(E.Pb.top,E.Pb.top,d)};
  448. E.ofa=function(a,c,d){var e=new E.ba;E.H2(e,a,c,d);E.Ii(E.Pb.top,E.Pb.top,e)};E.tx=function(a,c){switch(a){case E.Xg:E.Gj(c,E.Kj.top);break;case E.Yg:E.Gj(c,E.il.top);break;case E.dH:E.Gj(c,E.lt.top);break;default:b("Invalid matrix mode specified")}};E.$S="precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";E.aT="attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";E.OS="precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  449. E.RS="attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";E.PS="// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
  450. E.QS="attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";E.WS="precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  451. E.ZS="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";E.XS="precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";E.YS="attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
  452. E.SS="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";E.TS="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  453. E.VS="precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";E.LH="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
  454. E.US="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";
  455. E.K8="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";E.Id={Xz:0,Yz:1,Vz:2,Wz:3,$z:4,Zz:5,aA:6,XH:7,h9:8,fd:{},mr:function(){this.Y2();return p},Ce:function(a,c){switch(c){case this.Xz:a.Hi(E.LH,E.VS);a.ld(E.sl,E.pb);a.ld(E.Lp,E.xe);a.ld(E.fn,E.wd);break;case this.Yz:a.Hi(E.LH,E.US);a.ld(E.sl,E.pb);a.ld(E.Lp,E.xe);a.ld(E.fn,E.wd);break;case this.Vz:a.Hi(E.RS,E.OS);a.ld(E.sl,E.pb);a.ld(E.Lp,E.xe);break;case this.Wz:a.Hi(E.ZS,E.WS);a.ld(E.sl,E.pb);a.ld(E.fn,E.wd);break;case this.$z:a.Hi(E.YS,E.XS);a.ld(E.sl,E.pb);a.ld(E.fn,E.wd);break;case this.Zz:a.Hi(E.TS,
  456. E.SS);a.ld(E.sl,E.pb);a.ld(E.Lp,E.xe);a.ld(E.fn,E.wd);break;case this.aA:a.Hi(E.aT,E.$S);a.ld("aVertex",E.pb);break;case this.XH:a.Hi(E.QS,E.PS);a.ld(E.sl,E.pb);a.ld(E.fn,E.wd);a.ld(E.Lp,E.xe);break;default:E.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");return}a.link();a.u6()},Y2:function(){var a=new E.Sh;this.Ce(a,this.Xz);this.fd[E.Yi]=a;this.fd.ShaderPositionTextureColor=a;a=new E.Sh;this.Ce(a,this.Yz);this.fd[E.bu]=a;this.fd.ShaderPositionTextureColorAlphaTest=a;a=new E.Sh;
  457. this.Ce(a,this.Vz);this.fd[E.au]=a;this.fd.ShaderPositionColor=a;a=new E.Sh;this.Ce(a,this.Wz);this.fd[E.uq]=a;this.fd.ShaderPositionTexture=a;a=new E.Sh;this.Ce(a,this.$z);this.fd[E.Lz]=a;this.fd.ShaderPositionTextureUColor=a;a=new E.Sh;this.Ce(a,this.Zz);this.fd[E.Kz]=a;this.fd.ShaderPositionTextureA8Color=a;a=new E.Sh;this.Ce(a,this.aA);this.fd[E.Mz]=a;this.fd.ShaderPositionUColor=a;a=new E.Sh;this.Ce(a,this.XH);this.fd[E.KH]=a;this.fd.ShaderPositionLengthTextureColor=a},via:function(){var a=this.mc(E.Yi);
  458. a.reset();this.Ce(a,this.Xz);a=this.mc(E.bu);a.reset();this.Ce(a,this.Yz);a=this.mc(E.au);a.reset();this.Ce(a,this.Vz);a=this.mc(E.uq);a.reset();this.Ce(a,this.Wz);a=this.mc(E.Lz);a.reset();this.Ce(a,this.$z);a=this.mc(E.Kz);a.reset();this.Ce(a,this.Zz);a=this.mc(E.Mz);a.reset();this.Ce(a,this.aA)},mc:function(a){return this.fd[a]},Mm:function(a){return this.fd[a]},A$:function(a,c){this.fd[c]=a}};E.zR=function(){this.location=this.value=k;this.ex={}};
  459. E.Sh=E.na.extend({ga:q,Fb:q,lf:q,tg:q,xb:q,fh:q,YL:r,Ie:function(a,c){if(a==q)return r;for(var d=p,e=q,f=0;f<this.fh.length;f++)this.fh[f].location==a&&(e=this.fh[f]);e?e.value==c?d=r:e.value=c:(e=new E.zR,e.location=a,e.value=c,this.fh.push(e));return d},J9:function(){return"\x3cCCGLProgram \x3d "+this.toString()+" | Program \x3d "+this.Fb.toString()+", VertexShader \x3d "+this.lf.toString()+", FragmentShader \x3d "+this.tg.toString()+"\x3e"},cJ:function(a,c,d){if(!d||!a)return r;this.ga.shaderSource(a,
  460. "precision highp float; \nuniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \n//CC INCLUDES END \n"+d);this.ga.compileShader(a);d=this.ga.getShaderParameter(a,this.ga.COMPILE_STATUS);d||(E.log("cocos2d: ERROR: Failed to compile shader:\n"+this.ga.getShaderSource(a)),c==this.ga.VERTEX_SHADER?
  461. E.log("cocos2d: \n"+this.y6()):E.log("cocos2d: \n"+this.i0()));return 1==d},ctor:function(a,c,d){this.xb=[];this.fh=[];this.ga=d||E.l;a&&c&&this.U(a,c)},Caa:function(){this.fh=this.xb=this.tg=this.lf=q;this.ga.deleteProgram(this.Fb)},Hi:function(a,c){var d=this.ga;this.Fb=d.createProgram();this.tg=this.lf=q;a&&(this.lf=d.createShader(d.VERTEX_SHADER),this.cJ(this.lf,d.VERTEX_SHADER,a)||E.log("cocos2d: ERROR: Failed to compile vertex shader"));c&&(this.tg=d.createShader(d.FRAGMENT_SHADER),this.cJ(this.tg,
  462. d.FRAGMENT_SHADER,c)||E.log("cocos2d: ERROR: Failed to compile fragment shader"));this.lf&&d.attachShader(this.Fb,this.lf);E.So();this.tg&&d.attachShader(this.Fb,this.tg);this.fh.length=0;E.So();return p},md:function(a,c){return this.Hi(a,c)},a2:function(a,c){var d=E.V.Ed(a);d||b("Please load the resource firset : "+a);var e=E.V.Ed(c);e||b("Please load the resource firset : "+c);return this.Hi(d,e)},U:function(a,c){return this.a2(a,c)},ld:function(a,c){this.ga.bindAttribLocation(this.Fb,c,a)},link:function(){if(!this.Fb)return E.log("cc.GLProgram.link(): Cannot link invalid program"),
  463. r;this.ga.linkProgram(this.Fb);this.lf&&this.ga.deleteShader(this.lf);this.tg&&this.ga.deleteShader(this.tg);this.tg=this.lf=q;return E.tb.oe[E.tb.hg.ls]&&!this.ga.getProgramParameter(this.Fb,this.ga.LINK_STATUS)?(E.log("cocos2d: ERROR: Failed to link program: "+this.ga.getProgramInfoLog(this.Fb)),E.B1(this.Fb),this.Fb=q,r):p},Jc:function(){E.OE(this.Fb)},u6:function(){this.xb[E.lA]=this.ga.getUniformLocation(this.Fb,E.BU);this.xb[E.kA]=this.ga.getUniformLocation(this.Fb,E.zU);this.xb[E.Dq]=this.ga.getUniformLocation(this.Fb,
  464. E.AU);this.xb[E.pA]=this.ga.getUniformLocation(this.Fb,E.FU);this.xb[E.oA]=this.ga.getUniformLocation(this.Fb,E.EU);this.xb[E.jA]=this.ga.getUniformLocation(this.Fb,E.yU);this.YL=this.xb[E.pA]!=q||this.xb[E.oA]!=q||this.xb[E.jA]!=q;this.xb[E.mA]=this.ga.getUniformLocation(this.Fb,E.CU);this.xb[E.nA]=this.ga.getUniformLocation(this.Fb,E.DU);this.Jc();this.NP(this.xb[E.nA],0)},gea:function(a){a||b("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null");this.Fb||b("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized");
  465. return this.ga.getUniformLocation(this.Fb,a)},hea:function(){return this.xb[E.Dq]},iea:function(){return this.xb[E.nA]},NP:function(a,c){this.Ie(a,c)&&this.ga.uniform1i(a,c)},Oka:function(a,c,d){this.Ie(a,[c,d])&&this.ga.uniform2i(a,c,d)},Rka:function(a,c,d,e){this.Ie(a,[c,d,e])&&this.ga.uniform3i(a,c,d,e)},Uka:function(a,c,d,e,f){this.Ie(a,[c,d,e,f])&&this.ga.uniform4i(a,c,d,e,f)},Pka:function(a,c){this.Ie(a,c)&&this.ga.uniform2iv(a,c)},Ska:function(a,c){this.Ie(a,c)&&this.ga.uniform3iv(a,c)},Vka:function(a,
  466. c){this.Ie(a,c)&&this.ga.uniform4iv(a,c)},Mka:function(a,c){this.NP(a,c)},et:function(a,c){this.Ie(a,c)&&this.ga.uniform1f(a,c)},k5:function(a,c,d){this.Ie(a,[c,d])&&this.ga.uniform2f(a,c,d)},l5:function(a,c,d,e){this.Ie(a,[c,d,e])&&this.ga.uniform3f(a,c,d,e)},ft:function(a,c,d,e,f){this.Ie(a,[c,d,e,f])&&this.ga.uniform4f(a,c,d,e,f)},Nka:function(a,c){this.Ie(a,c)&&this.ga.uniform2fv(a,c)},Qka:function(a,c){this.Ie(a,c)&&this.ga.uniform3fv(a,c)},Tka:function(a,c){this.Ie(a,c)&&this.ga.uniform4fv(a,
  467. c)},iG:function(a,c){this.Ie(a,c)&&this.ga.uniformMatrix4fv(a,r,c)},Lka:function(){if(!(2>arguments.length))switch(arguments.length){case 2:this.et(arguments[0],arguments[1]);break;case 3:this.k5(arguments[0],arguments[1],arguments[2]);break;case 4:this.l5(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.ft(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4])}},gt:function(){var a=new E.ba,c=new E.ba,d=new E.ba;E.tx(E.Yg,a);E.tx(E.Xg,c);E.Ii(d,a,c);this.iG(this.xb[E.lA],
  468. a.c,1);this.iG(this.xb[E.kA],c.c,1);this.iG(this.xb[E.Dq],d.c,1);this.YL&&(a=E.B,a=a.ow*a.Lq,this.ft(this.xb[E.pA],a/10,a,2*a,4*a),this.ft(this.xb[E.oA],a/8,a/4,a/2,Math.sin(a)),this.ft(this.xb[E.jA],a/8,a/4,a/2,Math.cos(a)));-1!=this.xb[E.mA]&&this.ft(this.xb[E.mA],Math.random(),Math.random(),Math.random(),Math.random())},Jka:function(){this.ga.uniformMatrix4fv(this.xb[E.Dq],r,E.T0())},Kka:function(a){E.Ii(a,E.il.top,E.Kj.top);this.ga.uniformMatrix4fv(this.xb[E.Dq],r,a.c)},We:function(){this.ga.uniformMatrix4fv(this.xb[E.kA],
  469. r,E.Kj.top.c);this.ga.uniformMatrix4fv(this.xb[E.lA],r,E.il.top.c)},y6:function(){return this.ga.getShaderInfoLog(this.lf)},nea:function(){return this.ga.getShaderInfoLog(this.lf)},Gca:function(){return this.ga.getShaderInfoLog(this.lf)},i0:function(){return this.ga.getShaderInfoLog(this.tg)},dia:function(){return this.ga.getProgramInfoLog(this.Fb)},xda:function(){return this.ga.getProgramInfoLog(this.Fb)},reset:function(){this.tg=this.lf=q;this.xb.length=0;this.ga.deleteProgram(this.Fb);this.Fb=
  470. q;for(var a=0;a<this.fh.length;a++)this.fh[a].value=q,this.fh[a]=q;this.fh.length=0},Mm:A("Fb"),$x:t(),Ni:t()});E.Sh.create=function(a,c){return new E.Sh(a,c)};E.iJ=-1;E.AD=r;E.zD=r;E.BD=r;E.Wg&&(E.ZR=16,E.Xq=-1,E.Wq=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],E.Bn=-1,E.An=-1,E.PU=0,E.Rz&&(E.QL=0));E.vea=function(){E.A2();E.iJ=-1;E.AD=r;E.zD=r;E.BD=r;if(E.Wg){E.Xq=-1;for(var a=0;a<E.ZR;a++)E.Wq[a]=-1;E.Bn=-1;E.An=-1;E.PU=0}};E.OE=function(a){a!==E.Xq&&(E.Xq=a,E.l.useProgram(a))};E.Wg||(E.OE=function(a){E.l.useProgram(a)});E.B1=function(a){E.Wg&&a===E.Xq&&(E.Xq=-1);gl.deleteProgram(a)};E.Ih=function(a,c){if(a!==E.Bn||c!==E.An)E.Bn=a,E.An=c,E.ey(a,c)};
  471. E.ey=function(a,c){var d=E.l;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),E.l.blendFunc(a,c))};E.JN=function(a,c){if(a!==E.Bn||c!==E.An){E.Bn=a;E.An=c;var d=E.l;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),d.blendFuncSeparate(d.SRC_ALPHA,c,a,c))}};E.Wg||(E.Ih=E.ey);E.sea=function(){var a=E.l;a.blendEquation(a.FUNC_ADD);E.Wg?E.ey(E.Bn,E.An):E.ey(a.bc,a.ac)};E.CP=function(){E.iJ=-1};
  472. E.Fc=function(a){var c=E.l,d=a&E.Ld;d!==E.AD&&(d?c.enableVertexAttribArray(E.pb):c.disableVertexAttribArray(E.pb),E.AD=d);d=a&E.ou;d!==E.zD&&(d?c.enableVertexAttribArray(E.xe):c.disableVertexAttribArray(E.xe),E.zD=d);a&=E.un;a!==E.BD&&(a?c.enableVertexAttribArray(E.wd):c.disableVertexAttribArray(E.wd),E.BD=a)};E.pe=function(a){E.NE(0,a)};E.NE=function(a,c){if(E.Wq[a]!=c){E.Wq[a]=c;var d=E.l;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Ud):d.bindTexture(d.TEXTURE_2D,q)}};
  473. E.Wg||(E.NE=function(a,c){var d=E.l;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Ud):d.bindTexture(d.TEXTURE_2D,q)});E.tea=function(a){E.C1(a)};E.C1=function(a){E.Wg&&a==E.Wq[0]&&(E.Wq[0]=-1);E.l.deleteTexture(a)};E.rea=function(a){E.Rz&&(E.Wg&&E.QL!=a)&&(E.QL=a)};E.uea=t();E.O7=0;E.P7=1;E.Q7=9;E.Yj=function(a){a-=1;a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;return(a|a>>16)+1};
  474. E.tn=E.m.extend({sprite:q,Fw:0,$D:0,fs:r,Zd:q,$d:q,bv:0,Yq:0,mi:0,I:q,Sr:q,ZY:q,oi:E.ca.Xi,aj:q,aE:0,WA:q,wb:"RenderTexture",ctor:q,Uq:function(a,c,d,e){E.m.prototype.ctor.call(this);this.aj=E.color(255,255,255,255);this.WA="rgba(255,255,255,1)";this.Zd=E.Sb("canvas");this.$d=this.Zd.getContext("2d");this.anchorY=this.anchorX=0;a!==k&&c!==k&&(d=d||E.ca.Xi,this.nx(a,c,d,e||0))},Vq:function(a,c,d,e){E.m.prototype.ctor.call(this);this.aj=E.color(0,0,0,0);a!==k&&c!==k&&(d=d||E.ca.Xi,this.nx(a,c,d,e||
  475. 0))},Le:q,tV:function(){E.m.prototype.yb.call(this);this.Zd=this.$d=q},uV:function(){E.m.prototype.yb.call(this);this.Sr=q;var a=E.l;a.deleteFramebuffer(this.bv);this.Yq&&a.deleteRenderbuffer(this.Yq);this.ZY=q},AN:A("sprite"),ny:u("sprite"),nx:q,WW:function(a,c){var d=this.Zd,e=E.qb();d.width=0|a*e;d.height=0|c*e;this.$d.translate(0,d.height);e=new E.ca;e.Rc(d);e.ub();this.sprite=E.D.create(e);return p},XW:function(a,c,d,e){d==E.ca.oq&&E.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");
  476. var f=E.l,g=E.qb();a=0|a*g;c=0|c*g;this.mi=f.getParameter(f.FRAMEBUFFER_BINDING);var h;E.To.lw?(g=a,h=c):(g=E.Yj(a),h=E.Yj(c));for(var m=new Uint8Array(4*g*h),n=0;n<4*g*h;n++)m[n]=0;this.oi=d;this.I=new E.ca;if(!this.I)return r;n=this.I;n.zs(m,this.oi,g,h,P(a,c));d=f.getParameter(f.RENDERBUFFER_BINDING);if(E.To.Ro("GL_QCOM")){this.Sr=new E.ca;if(!this.Sr)return r;this.Sr.zs(m,this.oi,g,h,P(a,c))}this.bv=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,this.bv);f.framebufferTexture2D(f.FRAMEBUFFER,
  477. f.COLOR_ATTACHMENT0,f.TEXTURE_2D,n.Ud,0);0!=e&&(this.Yq=f.createRenderbuffer(),f.bindRenderbuffer(f.RENDERBUFFER,this.Yq),f.renderbufferStorage(f.RENDERBUFFER,e,g,h),f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Yq));f.checkFramebufferStatus(f.FRAMEBUFFER)!==f.FRAMEBUFFER_COMPLETE&&E.log("Could not attach texture to the framebuffer");n.QF();a=this.sprite=E.D.create(n);a.scaleY=-1;a.Qe(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.bindRenderbuffer(f.RENDERBUFFER,d);f.bindFramebuffer(f.FRAMEBUFFER,
  478. this.mi);this.fs=r;this.T(a);return p},Ah:q,gV:function(){E.l=this.$d;E.view.Xv()},hV:function(){E.sf(E.Yg);E.Fj();E.sf(E.Xg);E.Fj();var a=E.B;a.Xm(a.ri);var c=this.I.N,d=E.B.us(),a=d.width/c.width,d=d.height/c.height,e=E.l;e.viewport(0,0,c.width,c.height);c=new E.ba;E.kF(c,-1/a,1/a,-1/d,1/d,-1,1);E.kp(c);this.mi=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,this.bv);E.To.Ro("GL_QCOM")&&(e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.Sr.Ud,0),e.clear(e.COLOR_BUFFER_BIT|
  479. e.DEPTH_BUFFER_BIT),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.I.Ud,0))},RZ:function(a,c,d,e,f,g){var h=E.l;f=f||h.COLOR_BUFFER_BIT;g=g||h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT;this.MA(a/255,c/255,d/255,e/255,f,g,h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT|h.STENCIL_BUFFER_BIT)},MA:q,iV:function(a,c,d,e){this.Ah();a=a||0;c=c||0;d=d||0;e=isNaN(e)?1:e;var f=this.$d,g=this.Zd;f.save();f.fillStyle="rgba("+(0|a)+","+(0|c)+","+(0|d)+","+e/255+")";f.clearRect(0,0,g.width,-g.height);
  480. f.fillRect(0,0,g.width,-g.height);f.restore()},jV:function(a,c,d,e,f,g,h){this.Ah();var m=E.l,n=[0,0,0,0],s=0,v=0;h&m.COLOR_BUFFER_BIT&&(n=m.getParameter(m.COLOR_CLEAR_VALUE),m.clearColor(a,c,d,e));h&m.DEPTH_BUFFER_BIT&&(s=m.getParameter(m.DEPTH_CLEAR_VALUE),m.clearDepth(f));h&m.STENCIL_BUFFER_BIT&&(v=m.getParameter(m.STENCIL_CLEAR_VALUE),m.clearStencil(g));m.clear(h);h&m.COLOR_BUFFER_BIT&&m.clearColor(n[0],n[1],n[2],n[3]);h&m.DEPTH_BUFFER_BIT&&m.clearDepth(s);h&m.STENCIL_BUFFER_BIT&&m.clearStencil(v)},
  481. end:q,TV:function(){E.l=E.pX;E.view.Pv()},UV:function(){var a=E.l,c=E.B;a.bindFramebuffer(a.FRAMEBUFFER,this.mi);c.OP();E.sf(E.Yg);E.Ej();E.sf(E.Xg);E.Ej()},clear:function(a,c,d,e){this.RZ(a,c,d,e);this.end()},clearRect:q,xV:function(a,c,d,e){this.$d.clearRect(a,c,d,-e)},yV:t(),clearDepth:q,vV:function(){E.log("clearDepth isn't supported on Cocos2d-Html5")},wV:function(a){this.Ah();var c=E.l,d=c.getParameter(c.DEPTH_CLEAR_VALUE);c.clearDepth(a);c.clear(c.DEPTH_BUFFER_BIT);c.clearDepth(d);this.end()},
  482. clearStencil:q,zV:function(){E.log("clearDepth isn't supported on Cocos2d-Html5")},AV:function(a){var c=E.l,d=c.getParameter(c.STENCIL_CLEAR_VALUE);c.clearStencil(a);c.clear(c.STENCIL_BUFFER_BIT);c.clearStencil(d)},P:q,qm:function(a){this.kc&&(a=a||E.l,a.save(),this.Z(a),this.transform(a),this.sprite.P(),a.restore(),this.arrivalOrder=0)},as:function(a){if(this.kc){E.Fj();var c=this.grid;c&&c.rf()&&(c.hs(),this.vy());this.transform(a);this.sprite.P();this.Z(a);c&&c.rf()&&c.es(this);E.Ej();this.arrivalOrder=
  483. 0}},Z:q,Ml:function(a){a=a||E.l;if(this.fs){this.Ah();if(this.Fw){var c=this.Zd;a.save();a.fillStyle=this.WA;a.clearRect(0,0,c.width,-c.height);a.fillRect(0,0,c.width,-c.height);a.restore()}this.Sc();a=this.u;for(var c=a.length,d=this.sprite,e=0;e<c;e++){var f=a[e];f!=d&&f.P()}this.end()}},cj:function(){var a=E.l;if(this.fs){this.Ah();var c=this.Fw;if(c){var d=[0,0,0,0],e=0,f=0;c&a.COLOR_BUFFER_BIT&&(d=a.getParameter(a.COLOR_CLEAR_VALUE),a.clearColor(this.aj.r/255,this.aj.g/255,this.aj.b/255,this.aj.a/
  484. 255));c&a.DEPTH_BUFFER_BIT&&(e=a.getParameter(a.DEPTH_CLEAR_VALUE),a.clearDepth(this.$D));c&a.STENCIL_BUFFER_BIT&&(f=a.getParameter(a.STENCIL_CLEAR_VALUE),a.clearStencil(this.aE));a.clear(c);c&a.COLOR_BUFFER_BIT&&a.clearColor(d[0],d[1],d[2],d[3]);c&a.DEPTH_BUFFER_BIT&&a.clearDepth(e);c&a.STENCIL_BUFFER_BIT&&a.clearStencil(f)}this.Sc();a=this.u;for(c=0;c<a.length;c++)d=a[c],d!=this.sprite&&d.P();this.end()}},gha:function(){E.log("saveToFile isn't supported on cocos2d-html5");return q},b$:function(a,
  485. c,d,e,f){for(var g=0;g<f;g++)a[c+g]=d[e+g]},Tia:function(){E.log("saveToFile isn't supported on Cocos2d-Html5")},Wga:function(){E.log("listenToBackground isn't supported on Cocos2d-Html5")},Xga:function(){E.log("listenToForeground isn't supported on Cocos2d-Html5")},dca:A("Fw"),jja:u("Fw"),t0:A("aj"),SF:q,fY:function(a){var c=this.aj;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a;this.WA="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+","+a.a/255+")"},gY:function(a){var c=this.aj;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},cca:A("$D"),
  486. ija:u("$D"),eca:A("aE"),kja:u("aE"),Hea:A("fs"),bja:u("fs")});G=E.tn.prototype;E.A==E.W?(G.ctor=G.Vq,G.Le=G.uV,G.nx=G.XW,G.Ah=G.hV,G.MA=G.jV,G.end=G.UV,G.clearRect=G.yV,G.clearDepth=G.wV,G.clearStencil=G.AV,G.P=G.as,G.Z=G.cj,G.SF=G.gY):(G.ctor=G.Uq,G.Le=G.tV,G.nx=G.WW,G.Ah=G.gV,G.MA=G.iV,G.end=G.TV,G.clearRect=G.xV,G.clearDepth=G.vV,G.clearStencil=G.zV,G.P=G.qm,G.Z=G.Ml,G.SF=G.fY);E.j(G,"clearColorVal",G.t0,G.SF);E.tn.create=function(a,c,d,e){return new E.tn(a,c,d,e)};E.Uh=E.Ri.extend({Kb:q,QB:q,la:r,ib:q,wb:"LabelAtlas",ctor:function(a,c,d,e,f){E.Ri.prototype.ctor.call(this);c&&E.Uh.prototype.md.call(this,a,c,d,e,f)},kt:A("la"),Vd:function(a,c){this.ib||(this.ib=[]);this.ib.push({Bh:a,Pf:c})},Nd:function(){if(this.ib){this.la=p;for(var a=this.ib,c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}},md:function(a,c,d,e,f){var g=a+"",h,m;if(d===k){d=E.V.Ed(c);if(1!==parseInt(d.version,10))return E.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
  487. r;c=E.path.Qo(c,d.textureFilename);e=E.qb();h=parseInt(d.itemWidth,10)/e;m=parseInt(d.itemHeight,10)/e;d=String.fromCharCode(parseInt(d.firstChar,10))}else h=d||0,m=e||0,d=f||" ";var n=q,n=c instanceof E.ca?c:E.Ea.Ec(c);(this.la=c=n.tc)||n.Vd(function(){this.ra(n,h,m,g.length);this.string=g;this.Nd()},this);return this.ra(n,h,m,g.length)?(this.QB=d,this.string=g,p):r},Za:function(a){E.Ri.prototype.Za.call(this,a);this.Ip()},al:A("Kb"),Z:function(a){E.Ri.prototype.Z.call(this,a);E.QR&&(a=this.size,
  488. E.Ae.Xd([L(0,0),L(a.width,0),L(a.width,a.height),L(0,a.height)],4,p))},EA:function(a,c,d){a.jX=p;E.m.prototype.T.call(this,a,c,d)},Ip:q,$Y:function(){for(var a=this.Kb||"",c=a.length,d=this.texture,e=this.ii,f=this.jh,g=0;g<c;g++){var h=a.charCodeAt(g)-this.QB.charCodeAt(0),h=W(parseInt(h%this.no,10)*e,parseInt(h/this.no,10)*f,e,f),m=a.charCodeAt(g),n=this.Eh(g);n?32==m?(n.U(),n.rb(W(0,0,10,10),r,P(0,0))):(n.ra(d,h),n.visible=p,n.opacity=this.hb):(n=new E.D,32==m?(n.U(),n.rb(W(0,0,10,10),r,P(0,0))):
  489. n.ra(d,h),E.m.prototype.T.call(this,n,0,g));n.R(g*e+e/2,f/2)}},aZ:function(){var a=this.Kb,c=a.length,d=this.textureAtlas,e=d.texture,f=e.pixelsWidth,e=e.pixelsHeight,g=this.ii,h=this.jh;this.kv||(g=this.ii*E.qb(),h=this.jh*E.qb());c>d.xd&&E.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");for(var m=d.quads,n=this.za,n={r:n.r,g:n.g,b:n.b,a:this.hb},s=this.ii,v=0;v<c;v++){var w=a.charCodeAt(v)-this.QB.charCodeAt(0),y=w%this.no,x=0|w/this.no,z;E.kn?(y=(2*y*g+1)/(2*f),w=y+(2*g-2)/(2*
  490. f),x=(2*x*h+1)/(2*e),z=x+(2*h-2)/(2*e)):(y=y*g/f,w=y+g/f,x=x*h/e,z=x+h/e);var C=m[v],J=C.L,F=C.K,O=C.F,C=C.M;J.n.ea=y;J.n.fa=x;F.n.ea=w;F.n.fa=x;O.n.ea=y;O.n.fa=z;C.n.ea=w;C.n.fa=z;O.i.x=v*s;O.i.y=0;O.i.d=0;C.i.x=v*s+s;C.i.y=0;C.i.d=0;J.i.x=v*s;J.i.y=this.jh;J.i.d=0;F.i.x=v*s+s;F.i.y=this.jh;F.i.d=0;J.t=n;F.t=n;O.t=n;C.t=n}0<c&&(d.dirty=p,a=d.totalQuads,c>a&&d.ON(c-a))},od:q,DY:function(a){a=String(a);var c=a.length;this.Kb=a;this.width=c*this.ii;this.height=this.jh;if(this.u){a=this.u;for(var c=
  491. a.length,d=0;d<c;d++){var e=a[d];e&&!e.jX&&(e.visible=r)}}this.Ip();this.quadsToDraw=c},FY:function(a){a=String(a);var c=a.length;c>this.textureAtlas.totalQuads&&this.textureAtlas.LF(c);this.Kb=a;this.width=c*this.ii;this.height=this.jh;this.Ip();this.quadsToDraw=c},Ta:q,PC:function(a){if(this.hb!==a){E.Ri.prototype.Ta.call(this,a);for(var c=this.u,d=0,e=c.length;d<e;d++)c[d]&&(c[d].opacity=a)}},QC:function(a){this.Rd!==a&&E.Ri.prototype.Ta.call(this,a)}});G=E.Uh.prototype;
  492. E.A===E.W?(G.Ip=G.aZ,G.od=G.FY,G.Ta=G.QC):(G.Ip=G.$Y,G.od=G.DY,G.Ta=G.PC,G.T=G.EA);E.j(G,"opacity",G.Fg,G.Ta);E.j(G,"string",G.al,G.od);E.Uh.create=function(a,c,d,e,f){return new E.Uh(a,c,d,e,f)};E.X7=-1;
  493. E.gz=E.ud.extend({Oa:r,Kb:"",yf:q,ev:"",io:"",Jq:E.wq,bs:-1,FK:r,lv:q,mL:q,hb:255,yg:255,za:q,Sd:q,ah:p,ci:p,la:r,ib:q,wb:"LabelBMFont",xL:function(a,c){c?this.io=a:this.Kb=a;var d=this.u;if(d)for(var e=0;e<d.length;e++){var f=d[e];f&&f.Ym(r)}this.la&&(this.Kw(),c&&this.dg())},ctor:function(a,c,d,e,f){E.ud.prototype.ctor.call(this);this.lv=L(0,0);this.za=E.color(255,255,255,255);this.Sd=E.color(255,255,255,255);this.mL=[];this.md(a,c,d,e,f)},kt:A("la"),Vd:function(a,c){this.ib||(this.ib=[]);this.ib.push({Bh:a,
  494. Pf:c})},Nd:function(){if(this.ib){for(var a=this.ib,c=0,d=a.length;c<d;c++){var e=a[c];e.Bh.call(e.Pf,this)}a.length=0}},Z:function(a){E.ud.prototype.Z.call(this,a);if(E.RR){a=this.Ne();var c=L(0|-this.Cb.x,0|-this.Cb.y);a=[L(c.x,c.y),L(c.x+a.width,c.y),L(c.x+a.width,c.y+a.height),L(c.x,c.y+a.height)];E.Ae.Ap(0,255,0,255);E.Ae.Xd(a,4,p)}},Za:function(a){var c=this.za,d=this.Sd;d.r==a.r&&d.g==a.g&&d.b==a.b&&d.a==a.a||(c.r=d.r=a.r,c.g=d.g=a.g,c.b=d.b=a.b,this.la&&this.ah&&(a=E.color.WHITE,(c=this.Nc)&&
  495. c.cascadeColor&&(a=c.Sw()),this.Ic(a)))},Rf:A("Oa"),Se:function(a){this.Oa=a;if(a=this.u)for(var c=0;c<a.length;c++){var d=a[c];d&&(d.opacityModifyRGB=this.Oa)}},Fg:A("yg"),A0:A("hb"),Ta:function(a){this.hb=this.yg=a;if(this.ci){var c=255,d=this.Nc;d&&d.cascadeOpacity&&(c=d.hb);this.yc(c)}this.za.a=this.Sd.a=a},yc:function(a){this.hb=this.yg*a/255;a=this.u;for(var c=0;c<a.length;c++){var d=a[c];E.A==E.W?d.yc(this.hb):(E.m.prototype.yc.call(d,this.hb),d.Ia())}this.be()},cO:B(r),nP:u("ci"),Eg:function(){var a=
  496. this.Sd;return E.color(a.r,a.g,a.b,a.a)},Sw:A("za"),Ic:function(a){var c=this.za,d=this.Sd;c.r=d.r*a.r/255;c.g=d.g*a.g/255;c.b=d.b*a.b/255;a=this.u;for(c=0;c<a.length;c++)d=a[c],E.A==E.W?d.Ic(this.za):(E.m.prototype.Ic.call(d,this.za),d.Ia());this.be()},be:function(){if(E.A!=E.W){var a=this.Aa();if(a&&0<a.Ne().width){var c=this.uc.Xa;if(c){var d=a.Xa,e=W(0,0,c.width,c.height);d instanceof HTMLCanvasElement&&!this.Bc?E.Im(c,this.za,e,d):(d=E.Im(c,this.za,e),a=new E.ca,a.Rc(d),a.ub());this.$a(a)}}}},
  497. bO:B(r),mP:u("ah"),U:function(){return this.md(q,q,q,q,q)},md:function(a,c,d,e,f){a=a||"";this.yf&&E.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");if(c){var g=E.V.Ed(c);if(!g)return E.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),r;this.yf=g;this.ev=c;c=E.Ea.Ec(g.iM);(this.la=g=c.tc)||c.Vd(function(a){this.la=p;this.ra(a,this.io.length);this.od(this.io,p);this.Nd()},this)}else c=new E.ca,g=new Image,c.Rc(g),this.la=r;return this.ra(c,
  498. a.length)?(this.Jq=e||E.fu,this.lv=f||L(0,0),this.bs=d==q?-1:d,this.hb=this.yg=255,this.za=E.color(255,255,255,255),this.Sd=E.color(255,255,255,255),this.ah=this.ci=p,this.N.width=0,this.N.height=0,this.ll(0.5,0.5),E.A===E.W&&(d=this.textureAtlas.texture,this.Oa=d.Ei(),e=this.mL=new E.D,e.ra(d,W(0,0,0,0),r),e.batchNode=this),this.od(a,p),p):r},Kw:function(){var a=E.A,c=a===E.Ba?this.texture:this.textureAtlas.texture,d=0,e=P(0,0),f=0,g=1,h=this.Kb,m=h?h.length:0;if(0!==m){var n,s=this.yf,v=s.u2,w=
  499. s.cE,y=s.h0;for(n=0;n<m-1;n++)10==h.charCodeAt(n)&&g++;var x=w*g,g=-(w-w*g),z=-1;for(n=0;n<m;n++)if(w=h.charCodeAt(n),0!=w)if(10===w)d=0,g-=s.cE;else{var C=v[z<<16|w&65535]||0,J=y[w];if(J){var F=W(J.rect.x,J.rect.y,J.rect.width,J.rect.height),F=E.jl(F);F.x+=this.lv.x;F.y+=this.lv.y;(z=this.Eh(n))?32===w&&a===E.Ba?z.rb(F,r,P(0,0)):(z.rb(F,r),z.visible=p):(z=new E.D,32===w&&a===E.Ba&&(F=W(0,0,0,0)),z.ra(c,F,r),z.xv=p,this.T(z,0,n));z.opacityModifyRGB=this.Oa;E.A==E.W?(z.Ic(this.za),z.yc(this.hb)):(E.m.prototype.Ic.call(z,
  500. this.za),E.m.prototype.yc.call(z,this.hb),z.Ia());F=L(d+J.qQ+0.5*J.rect.width+C,g+(s.cE-J.rQ)-0.5*F.height*E.qb());z.R(E.EF(F));d+=J.G6+C;z=w;f<d&&(f=d)}else E.log("cocos2d: LabelBMFont: character not found "+h[n])}e.width=f;e.height=x;this.Yd(E.QP(e))}},Cla:function(a){var c=this.u;if(c)for(var d=0,e=c.length;d<e;d++){var f=c[d];f&&(f.visible=r)}this.yf&&this.Kw();a||this.dg()},al:A("io"),od:function(a,c){a=String(a);c==q&&(c=p);if(a==q||"string"!=typeof a)a+="";this.io=a;this.xL(a,c)},EY:function(a){this.od(a,
  501. r)},fja:function(a){this.od(a,p)},dg:function(){this.string=this.io;if(0<this.bs){for(var a=this.Kb.length,c=[],d=[],e=1,f=0,g=r,h=r,m=-1,n=-1,s=0,v,w=0,y=this.u.length;w<y;w++){for(var x=0;!(v=this.Eh(w+s+x));)x++;s+=x;if(f>=a)break;var z=this.Kb[f];h||(n=this.xB(v),h=p);g||(m=n,g=p);if(10==z.charCodeAt(0)){d.push("\n");c=c.concat(d);d.length=0;g=h=r;m=n=-1;w--;s-=x;e++;if(f>=a)break;n||(n=this.xB(v),h=p);m||(m=n,g=p);f++}else if(E.hF(z))d.push(z),c=c.concat(d),d.length=0,h=r,n=-1,f++;else if(this.tW(v)-
  502. m>this.bs)if(this.FK){E.kQ(d);d.push("\n");c=c.concat(d);d.length=0;g=h=r;m=n=-1;e++;if(f>=a)break;n||(n=this.xB(v),h=p);m||(m=n,g=p);w--}else d.push(z),-1!=c.lastIndexOf(" ")?E.kQ(c):c=[],0<c.length&&c.push("\n"),e++,g=r,m=-1,f++;else d.push(z),f++}c=c.concat(d);w=c.length;v="";for(f=0;f<w;++f)v+=c[f];v+=String.fromCharCode(0);this.xL(v,r)}if(this.Jq!=E.fu){c=f=0;a=this.Kb.length;d=[];for(e=0;e<a;e++)if(10==this.Kb[e].charCodeAt(0)||0==this.Kb[e].charCodeAt(0))if(w=0,g=d.length,0==g)c++;else{if(v=
  503. f+g-1+c,!(0>v)&&(w=this.Eh(v),w!=q)){w=w.Oe()+w.eh()/2;h=0;switch(this.Jq){case E.wq:h=this.width/2-w/2;break;case E.TH:h=this.width-w}if(0!=h)for(w=0;w<g;w++)if(v=f+w+c,!(0>v)&&(v=this.Eh(v)))v.x+=h;f+=g;c++;d.length=0}}else d.push(this.Kb[f])}},m4:function(a){this.Jq=a;this.dg()},dW:A("Jq"),r4:function(a){this.bs=a;this.dg()},tB:A("bs"),Qja:function(a){this.FK=a;this.dg()},Qj:function(a,c){E.m.prototype.Qj.call(this,a,c);this.dg()},ct:function(a){E.m.prototype.ct.call(this,a);this.dg()},dt:function(a){E.m.prototype.dt.call(this,
  504. a);this.dg()},Aja:function(a){if(a!=q&&a!=this.ev){var c=E.V.Ed(a);c?(this.ev=a,this.yf=c,a=E.Ea.Ec(c.iM),this.la=c=a.tc,this.texture=a,E.A===E.Ba&&(this.uc=this.texture),c?this.Kw():a.Vd(function(a){this.la=p;this.texture=a;this.Kw();this.be();this.dg();this.Nd()},this)):E.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")}},Eca:A("ev"),ll:function(a,c){E.m.prototype.ll.call(this,a,c);this.dg()},vL:function(a){E.m.prototype.vL.call(this,a);this.dg()},HC:function(a){E.m.prototype.HC.call(this,
  505. a);this.dg()},IC:function(a){E.m.prototype.IC.call(this,a);this.dg()},D9:t(),W9:function(a,c){var d=0;if(this.DV.v2){var e=this.DV.v2[(a<<16|c&65535).toString()];e&&(d=e.Q$)}return d},xB:function(a){return a.Oe()*this.ja-a.eh()*this.ja*a.Lc.x},tW:function(a){return a.Oe()*this.ja+a.eh()*this.ja*a.Lc.x}});G=E.gz.prototype;
  506. E.A===E.Ba&&!E.fb.hw&&(G.be=function(){if(E.A!=E.W){var a,c=this.Aa();if(c&&0<c.Ne().width&&(a=c.Xa))if(c=E.Ea.Zw(this.uc.Xa))a instanceof HTMLCanvasElement&&!this.Bc?E.Hm(a,c,this.za,q,a):(a=E.Hm(a,c,this.za),c=new E.ca,c.Rc(a),c.ub(),this.$a(c))}});E.j(G,"string",G.al,G.EY);E.j(G,"boundingWidth",G.tB,G.r4);E.j(G,"textAlign",G.dW,G.m4);E.gz.create=function(a,c,d,e,f){return new E.gz(a,c,d,e,f)};
  507. E.hF=function(a){a=a.charCodeAt(0);return 9<=a&&13>=a||32==a||133==a||160==a||5760==a||8192<=a&&8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a};E.kQ=function(a){var c=a.length;if(!(0>=c)&&(c-=1,E.hF(a[c]))){for(var d=c-1;0<=d;--d)if(E.hF(a[d]))c=d;else break;E.w6(a,c)}};E.w6=function(a,c){var d=a.length;c>=d||0>c||a.splice(c,d)};
  508. E.XV={BR:/info [^\n]*(\n|$)/gi,QQ:/common [^\n]*(\n|$)/gi,AS:/page [^\n]*(\n|$)/gi,PQ:/char [^\n]*(\n|$)/gi,IR:/kerning [^\n]*(\n|$)/gi,DR:/\w+=[^ \r\n]+/gi,CR:/^[\-]?\d+$/,yr:function(a){a=a.match(this.DR);var c={};if(a)for(var d=0,e=a.length;d<e;d++){var f=a[d],g=f.indexOf("\x3d"),h=f.substring(0,g),f=f.substring(g+1);f.match(this.CR)?f=parseInt(f):'"'==f[0]&&(f=f.substring(1,f.length-1));c[h]=f}return c},p3:function(a,c){var d={};this.yr(a.match(this.BR)[0]);var e=this.yr(a.match(this.QQ)[0]);
  509. d.cE=e.lineHeight;if(E.A===E.W){var f=E.To.tr;(e.scaleW>f.width||e.scaleH>f.height)&&E.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")}1!==e.pages&&E.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");e=this.yr(a.match(this.AS)[0]);0!==e.id&&E.log("cc.LabelBMFont._parseImageFileName() : file could not be found");d.iM=E.path.Qo(c,e.file);for(var g=a.match(this.PQ),h=d.h0={},e=0,f=g.length;e<f;e++){var m=this.yr(g[e]);h[m.id]={rect:{x:m.x,y:m.y,width:m.width,
  510. height:m.height},qQ:m.xoffset,rQ:m.yoffset,G6:m.xadvance}}g=d.u2={};if(h=a.match(this.IR)){e=0;for(f=h.length;e<f;e++)m=this.yr(h[e]),g[m.first<<16|m.second&65535]=m.amount}return d},load:function(a,c,d,e){var f=this;E.V.Fx(a,function(a,d){if(a)return e(a);e(q,f.p3(d,c))})}};E.V.Oj(["fnt"],E.XV);E.kH=E.m.extend({texture:q,Yo:r,Oi:r,q:q,Pr:0,mB:0,Wl:0,SB:0,Dk:0,rC:0,kC:q,jC:q,Pa:q,Kn:q,Lf:q,ad:q,Ln:q,Co:q,wb:"MotionStreak",ctor:function(a,c,d,e,f){E.m.prototype.ctor.call(this);this.xg=L(0,0);this.q=new E.cc(E.SRC_ALPHA,E.ONE_MINUS_SRC_ALPHA);this.CD=E.l.createBuffer();this.Oi=this.Yo=r;this.texture=q;this.rC=this.Dk=this.SB=this.Wl=this.mB=this.Pr=0;this.Co=this.Ln=this.ad=this.Lf=this.Kn=this.Pa=this.jC=this.kC=q;f!==k&&this.S1(a,c,d,e,f)},Aa:A("texture"),$a:function(a){this.texture!=a&&
  511. (this.texture=a)},Dh:A("q"),Qe:function(a,c){c===k?this.q=a:(this.q.src=a,this.q.Q=c)},Fg:function(){E.log("cc.MotionStreak.getOpacity has not been supported.");return 0},Ta:function(){E.log("cc.MotionStreak.setOpacity has not been supported.")},Se:t(),Rf:B(r),yb:function(){E.m.prototype.yb.call(this);this.ad&&E.l.deleteBuffer(this.ad);this.Co&&E.l.deleteBuffer(this.Co);this.Ln&&E.l.deleteBuffer(this.Ln)},Pea:A("Yo"),zja:u("Yo"),afa:A("Oi"),uka:u("Oi"),S1:function(a,c,d,e,f){f||b("cc.MotionStreak.initWithFade(): Invalid filename or texture");
  512. "string"===typeof f&&(f=E.Ea.Ec(f));E.m.prototype.R.call(this,L(0,0));this.anchorY=this.anchorX=0;this.ignoreAnchor=p;this.Oi=r;this.Yo=p;this.Wl=-1==c?d/5:c;this.Wl*=this.Wl;this.Pr=d;this.mB=1/a;a=(0|60*a)+2;this.Dk=0;this.jC=new Float32Array(a);this.kC=new Float32Array(2*a);this.Pa=new Float32Array(4*a);this.Lf=new Float32Array(4*a);this.Kn=new Uint8Array(8*a);this.SB=a;a=E.l;this.ad=a.createBuffer();this.Co=a.createBuffer();this.Ln=a.createBuffer();this.q.src=a.SRC_ALPHA;this.q.Q=a.ONE_MINUS_SRC_ALPHA;
  513. this.shaderProgram=E.Id.mc(E.Yi);this.texture=f;this.color=e;this.fP();a.bindBuffer(a.ARRAY_BUFFER,this.ad);a.bufferData(a.ARRAY_BUFFER,this.Pa,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Co);a.bufferData(a.ARRAY_BUFFER,this.Lf,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Ln);a.bufferData(a.ARRAY_BUFFER,this.Kn,a.DYNAMIC_DRAW);return p},wla:function(a){this.color=a;for(var c=this.Kn,d=0,e=2*this.Dk;d<e;d++)c[4*d]=a.r,c[4*d+1]=a.g,c[4*d+2]=a.b},reset:function(){this.Dk=0},R:function(a,c){this.Oi=
  514. p;c===k?(this.xg.x=a.x,this.xg.y=a.y):(this.xg.x=a,this.xg.y=c)},Oe:function(){return this.xg.x},zP:function(a){this.xg.x=a;this.Oi||(this.Oi=p)},Gg:function(){return this.xg.y},AP:function(a){this.xg.y=a;this.Oi||(this.Oi=p)},Z:function(a){!(1>=this.Dk)&&(this.texture&&this.texture.tc)&&(a=a||E.l,E.Hs(this),E.Fc(E.Gl),E.Ih(this.q.src,this.q.Q),E.pe(this.texture),a.bindBuffer(a.ARRAY_BUFFER,this.ad),a.bufferData(a.ARRAY_BUFFER,this.Pa,a.DYNAMIC_DRAW),a.vertexAttribPointer(E.pb,2,a.FLOAT,r,0,0),a.bindBuffer(a.ARRAY_BUFFER,
  515. this.Co),a.bufferData(a.ARRAY_BUFFER,this.Lf,a.DYNAMIC_DRAW),a.vertexAttribPointer(E.wd,2,a.FLOAT,r,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Ln),a.bufferData(a.ARRAY_BUFFER,this.Kn,a.DYNAMIC_DRAW),a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,0,0),a.drawArrays(a.TRIANGLE_STRIP,0,2*this.Dk),E.pf++)},update:function(a){if(this.Oi){a*=this.mB;var c,d,e,f,g=0,h=this.Dk,m=this.jC,n=this.kC,s=this.Pa,v=this.Kn;for(e=0;e<h;e++)m[e]-=a,0>=m[e]?g++:(c=e-g,0<g?(m[c]=m[e],n[2*c]=n[2*e],n[2*c+1]=n[2*e+1],f=2*e,
  516. d=2*c,s[2*d]=s[2*f],s[2*d+1]=s[2*f+1],s[2*(d+1)]=s[2*(f+1)],s[2*(d+1)+1]=s[2*(f+1)+1],f*=4,d*=4,v[d+0]=v[f+0],v[d+1]=v[f+1],v[d+2]=v[f+2],v[d+4]=v[f+4],v[d+5]=v[f+5],v[d+6]=v[f+6]):d=8*c,c=255*m[c],v[d+3]=c,v[d+7]=c);h-=g;e=p;if(h>=this.SB)e=r;else if(0<h&&(a=1==h?r:E.CO(L(n[2*(h-2)],n[2*(h-2)+1]),this.xg)<2*this.Wl,E.CO(L(n[2*(h-1)],n[2*(h-1)+1]),this.xg)<this.Wl||a))e=r;e&&(n[2*h]=this.xg.x,n[2*h+1]=this.xg.y,m[h]=1,e=8*h,m=this.za,v[e]=m.r,v[e+1]=m.g,v[e+2]=m.b,v[e+4]=m.r,v[e+5]=m.g,v[e+6]=m.b,
  517. v[e+3]=255,v[e+7]=255,0<h&&this.Yo&&(1<h?E.xG(n,this.Pr,this.Pa,h,1):E.xG(n,this.Pr,this.Pa,0,2)),h++);this.Yo||E.xG(n,this.Pr,this.Pa,0,h);if(h&&this.rC!=h){n=1/h;v=this.Lf;for(e=0;e<h;e++)v[4*e]=0,v[4*e+1]=n*e,v[2*(2*e+1)]=1,v[2*(2*e+1)+1]=n*e;this.rC=h}this.Dk=h}}});E.kH.create=function(a,c,d,e,f){return new E.kH(a,c,d,e,f)};E.oz=E.m.extend({grid:q,ke:q,qs:A("grid"),G4:u("grid"),eG:u("ke"),T:function(a,c,d){E.m.prototype.T.call(this,a,c,d);a&&!this.ke&&(this.ke=a)},P:function(){if(this.kc){var a=E.A==E.W,c=this.grid;a&&(c&&c.kk)&&c.hs();this.transform();var d=this.u;if(d&&0<d.length){var e=d.length;this.Sc();for(ia=0;ia<e;ia++){var f=d[ia];f&&f.P()}}a&&(c&&c.kk)&&c.es(this.ke)}},YY:function(){var a=this.rD,c=E.Pb.top,d=this.pp(),e=a.c;e[0]=d.a;e[4]=d.C;e[12]=d.Ja;e[1]=d.b;e[5]=d.J;e[13]=d.Ka;e[14]=this.$r;E.Ii(c,c,a);
  518. if(this.$i!=q&&(!this.grid||!this.grid.rf()))a=this.Cb.x,c=this.Cb.y,0!==a||0!==c?(E.Nz||(a|=0,c|=0),E.lp(a,c),this.$i.Gs(),E.lp(-a,-c)):this.$i.Gs()}});G=E.oz.prototype;E.A===E.W&&(G.transform=G.YY);E.j(G,"target",q,G.eG);E.oz.create=function(){return new E.oz};E.Fla=function(){return{x:0,y:0}};E.ol=function(a,c){return{x:a,y:c}};E.re=function(a,c){return E.ol(a.x+c.x,a.y+c.y)};E.nc=function(a,c){return E.ol(a.x-c.x,a.y-c.y)};E.qd=function(a,c){return E.ol(a.x*c,a.y*c)};E.Jp=function(a){return E.ol(-a.y,a.x)};E.eg=function(a){return E.ol(-a.x,-a.y)};E.lQ=function(a,c){return a.x*c.x+a.y*c.y};E.Ela=function(a){return E.ol(Math.cos(a),Math.sin(a))};E.qt=function(a){a=E.Ig(L(a.x,a.y));return E.ol(a.x,a.y)};E.ye=function(a){return E.ol(a.x,a.y)};
  519. E.Ga=function(a){return{ea:a.x,fa:a.y}};
  520. E.eR=E.m.extend({cb:q,q:q,Xc:1,df:q,wb:"DrawNodeCanvas",ctor:function(){E.m.prototype.ctor.call(this);this.cb=[];this.df=E.color(255,255,255,255);this.q=new E.cc(E.bc,E.ac);this.U()},Dh:A("q"),Qe:function(a,c){c===k?(this.q.src=a.src,this.q.Q=a.Q):(this.q.src=a,this.q.Q=c)},XF:u("Xc"),O0:A("Xc"),Ap:function(a){var c=this.df;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a==q?255:a.a},Dd:function(){return E.color(this.df.r,this.df.g,this.df.b,this.df.a)},pE:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Dd();f.a==q&&(f.a=
  521. 255);a=[a,L(c.x,a.y),c,L(a.x,c.y)];c=new E.fk(E.Kd.ak);c.fg=a;c.lineWidth=e;c.Jj=f;c.qx=p;c.cl=p;c.lineCap="butt";if(c.fillColor=d)d.a==q&&(d.a=255),c.fF=p;this.cb.push(c)},lE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Dd();h.a==q&&(h.a=255);for(var m=2*Math.PI/e,n=[],s=0;s<=e;s++){var v=s*m;n.push(L(c*Math.cos(v+d)+a.x,c*Math.sin(v+d)+a.y))}f&&n.push(L(a.x,a.y));a=new E.fk(E.Kd.ak);a.fg=n;a.lineWidth=g;a.Jj=h;a.qx=p;a.cl=p;this.cb.push(a)},oE:function(a,c,d,e,f,g){f=f||this.Xc;g=g||this.Dd();
  522. g.a==q&&(g.a=255);for(var h=[],m=0,n=0;n<e;n++)h.push(L(Math.pow(1-m,2)*a.x+2*(1-m)*m*c.x+m*m*d.x,Math.pow(1-m,2)*a.y+2*(1-m)*m*c.y+m*m*d.y)),m+=1/e;h.push(L(d.x,d.y));a=new E.fk(E.Kd.ak);a.fg=h;a.lineWidth=f;a.Jj=g;a.cl=p;a.lineCap="round";this.cb.push(a)},mE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Dd();h.a==q&&(h.a=255);for(var m=[],n=0,s=0;s<f;s++)m.push(L(Math.pow(1-n,3)*a.x+3*Math.pow(1-n,2)*n*c.x+3*(1-n)*n*n*d.x+n*n*n*e.x,Math.pow(1-n,3)*a.y+3*Math.pow(1-n,2)*n*c.y+3*(1-n)*n*n*d.y+n*
  523. n*n*e.y)),n+=1/f;m.push(L(e.x,e.y));a=new E.fk(E.Kd.ak);a.fg=m;a.lineWidth=g;a.Jj=h;a.cl=p;a.lineCap="round";this.cb.push(a)},kE:function(a,c,d,e){this.Cm(a,0.5,c,d,e)},Cm:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Dd();f.a==q&&(f.a=255);for(var g=[],h,m,n=1/a.length,s=0;s<d+1;s++)m=s/d,1==m?(h=a.length-1,m=1):(h=0|m/n,m=(m-n*h)/n),h=E.ZD(E.bd(a,h-1),E.bd(a,h-0),E.bd(a,h+1),E.bd(a,h+2),c,m),g.push(h);a=new E.fk(E.Kd.ak);a.fg=g;a.lineWidth=e;a.Jj=f;a.cl=p;a.lineCap="round";this.cb.push(a)},nE:function(a,
  524. c,d){d=d||this.Dd();d.a==q&&(d.a=255);var e=new E.fk(E.Kd.WH);e.fg=[a];e.lineWidth=c;e.fillColor=d;this.cb.push(e)},t_:function(a,c,d){if(a&&0!=a.length){d=d||this.Dd();d.a==q&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.nE(a[e],c,d)}},qE:function(a,c,d,e){d=d||this.Xc;e=e||this.Dd();e.a==q&&(e.a=255);var f=new E.fk(E.Kd.ak);f.fg=[a,c];f.lineWidth=2*d;f.Jj=e;f.cl=p;f.lineCap="round";this.cb.push(f)},x_:function(a,c,d,e){d=d||this.Xc;e=e||this.Dd();e.a==q&&(e.a=255);var f=new E.fk(E.Kd.ak);f.fg=
  525. a;f.fillColor=c;f.lineWidth=d;f.Jj=e;f.qx=p;f.cl=p;f.lineCap="round";c&&(f.fF=p);this.cb.push(f)},Xd:function(a,c,d,e){for(var f=[],g=0;g<a.length;g++)f.push(L(a[g].x,a[g].y));return this.x_(f,c,d,e)},Z:function(a){a=a||E.l;this.q&&(this.q.src==E.SRC_ALPHA&&this.q.Q==E.ONE)&&(a.globalCompositeOperation="lighter");for(var c=0;c<this.cb.length;c++){var d=this.cb[c];switch(d.type){case E.Kd.WH:this.PV(a,d);break;case E.Kd.UT:this.RV(a,d);break;case E.Kd.ak:this.QV(a,d)}}},PV:function(a,c){var d=c.fillColor,
  526. e=c.fg[0],f=c.lineWidth,g=E.view.ja,h=E.view.La;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+d.a/255+")";a.beginPath();a.arc(e.x*g,-e.y*h,f*g,0,2*Math.PI,r);a.closePath();a.fill()},RV:function(a,c){var d=c.Jj,e=c.fg[0],f=c.fg[1],g=c.lineWidth,h=c.lineCap,m=E.view.ja,n=E.view.La;a.strokeStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+d.a/255+")";a.lineWidth=g*m;a.beginPath();a.lineCap=h;a.moveTo(e.x*m,-e.y*n);a.lineTo(f.x*m,-f.y*n);a.stroke()},QV:function(a,c){var d=c.fg,e=c.lineCap,f=
  527. c.fillColor,g=c.lineWidth,h=c.Jj,m=c.qx,n=c.fF,s=c.cl;if(d!=q){var v=d[0],w=E.view.ja,y=E.view.La;a.lineCap=e;f&&(a.fillStyle="rgba("+(0|f.r)+","+(0|f.g)+","+(0|f.b)+","+f.a/255+")");g&&(a.lineWidth=g*w);h&&(a.strokeStyle="rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+","+h.a/255+")");a.beginPath();a.moveTo(v.x*w,-v.y*y);e=1;for(f=d.length;e<f;e++)a.lineTo(d[e].x*w,-d[e].y*y);m&&a.closePath();n&&a.fill();s&&a.stroke()}},clear:function(){this.cb.length=0}});
  528. E.fR=E.m.extend({En:0,cb:q,zj:q,NL:q,ML:q,Xc:1,df:q,q:q,jb:r,wb:"DrawNodeWebGL",Dh:A("q"),Qe:function(a,c){c===k?(this.q.src=a.src,this.q.Q=a.Q):(this.q.src=a,this.q.Q=c)},ctor:function(){E.m.prototype.ctor.call(this);this.cb=[];this.q=new E.cc(E.bc,E.ac);this.df=E.color(255,255,255,255);this.U()},U:function(){return E.m.prototype.U.call(this)?(this.shaderProgram=E.Id.mc(E.KH),this.ar(64),this.NL=E.l.createBuffer(),this.jb=p):r},XF:u("Xc"),O0:A("Xc"),Ap:function(a){var c=this.df;c.r=a.r;c.g=a.g;c.b=
  529. a.b;c.a=a.a},Dd:function(){return E.color(this.df.r,this.df.g,this.df.b,this.df.a)},pE:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Dd();f.a==q&&(f.a=255);a=[a,L(c.x,a.y),c,L(a.x,c.y)];d==q?this.Tu(a,e,f,p):this.Xd(a,d,e,f)},lE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Dd();h.a==q&&(h.a=255);var m=2*Math.PI/e,n=[],s;for(s=0;s<=e;s++){var v=s*m;n.push(L(c*Math.cos(v+d)+a.x,c*Math.sin(v+d)+a.y))}f&&n.push(L(a.x,a.y));g*=0.5;s=0;for(a=n.length;s<a-1;s++)this.qE(n[s],n[s+1],g,h)},oE:function(a,c,d,
  530. e,f,g){f=f||this.Xc;g=g||this.Dd();g.a==q&&(g.a=255);for(var h=[],m=0,n=0;n<e;n++)h.push(L(Math.pow(1-m,2)*a.x+2*(1-m)*m*c.x+m*m*d.x,Math.pow(1-m,2)*a.y+2*(1-m)*m*c.y+m*m*d.y)),m+=1/e;h.push(L(d.x,d.y));this.Tu(h,f,g,r)},mE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Dd();h.a==q&&(h.a=255);for(var m=[],n=0,s=0;s<f;s++)m.push(L(Math.pow(1-n,3)*a.x+3*Math.pow(1-n,2)*n*c.x+3*(1-n)*n*n*d.x+n*n*n*e.x,Math.pow(1-n,3)*a.y+3*Math.pow(1-n,2)*n*c.y+3*(1-n)*n*n*d.y+n*n*n*e.y)),n+=1/f;m.push(L(e.x,e.y));this.Tu(m,
  531. g,h,r)},kE:function(a,c,d,e){this.Cm(a,0.5,c,d,e)},Cm:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Dd();f.a==q&&(f.a=255);for(var g=[],h,m,n=1/a.length,s=0;s<d+1;s++)m=s/d,1==m?(h=a.length-1,m=1):(h=0|m/n,m=(m-n*h)/n),h=E.ZD(E.bd(a,h-1),E.bd(a,h-0),E.bd(a,h+1),E.bd(a,h+2),c,m),g.push(h);e*=0.5;a=0;for(c=g.length;a<c-1;a++)this.qE(g[a],g[a+1],e,f)},YX:function(){var a=E.l;E.Fc(E.Gl);a.bindBuffer(a.ARRAY_BUFFER,this.NL);this.jb&&(a.bufferData(a.ARRAY_BUFFER,this.zj,a.STREAM_DRAW),this.jb=r);var c=E.vd.BYTES_PER_ELEMENT;
  532. a.vertexAttribPointer(E.pb,2,a.FLOAT,r,c,0);a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,c,8);a.vertexAttribPointer(E.wd,2,a.FLOAT,r,c,12);a.drawArrays(a.TRIANGLES,0,3*this.cb.length);E.Qf()},ar:function(a){var c=this.cb;if(c.length+a>this.En){var d=E.Tb.BYTES_PER_ELEMENT;this.En+=Math.max(this.En,a);if(c==q||0===c.length)this.cb=[],this.zj=new ArrayBuffer(d*this.En),this.ML=new Uint8Array(this.zj);else{a=[];for(var e=new ArrayBuffer(d*this.En),f=0;f<c.length;f++)a[f]=new E.Tb(c[f].a,c[f].b,c[f].C,
  533. e,f*d);this.ML=new Uint8Array(e);this.zj=e;this.cb=a}}},Z:function(){E.Ih(this.q.src,this.q.Q);this.Gb.Jc();this.Gb.gt();this.YX()},nE:function(a,c,d){d=d||this.Dd();d.a==q&&(d.a=255);var e={r:0|d.r,g:0|d.g,b:0|d.b,a:0|d.a};d={i:{x:a.x-c,y:a.y-c},t:e,n:{ea:-1,fa:-1}};var f={i:{x:a.x-c,y:a.y+c},t:e,n:{ea:-1,fa:1}},g={i:{x:a.x+c,y:a.y+c},t:e,n:{ea:1,fa:1}};a={i:{x:a.x+c,y:a.y-c},t:e,n:{ea:1,fa:-1}};this.ar(6);this.cb.push(new E.Tb(d,f,g,this.zj,this.cb.length*E.Tb.BYTES_PER_ELEMENT));this.cb.push(new E.Tb(d,
  534. g,a,this.zj,this.cb.length*E.Tb.BYTES_PER_ELEMENT));this.jb=p},t_:function(a,c,d){if(a&&0!=a.length){d=d||this.Dd();d.a==q&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.nE(a[e],c,d)}},qE:function(a,c,d,e){e=e||this.Dd();e.a==q&&(e.a=255);d=d||0.5*this.Xc;this.ar(18);e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=E.ye(a);c=E.ye(c);a=E.qt(E.Jp(E.nc(c,f)));var g=E.Jp(a),h=E.qd(a,d);d=E.qd(g,d);var m=E.re(c,E.nc(h,d)),n=E.nc(c,h),s=E.re(c,h),v=E.nc(f,h),w=E.re(f,h),y=E.nc(f,E.nc(h,d)),f=E.re(f,E.re(h,d)),
  535. x=E.Tb.BYTES_PER_ELEMENT,z=this.zj,C=this.cb;C.push(new E.Tb({i:E.nc(c,E.re(h,d)),t:e,n:E.Ga(E.eg(E.re(a,g)))},{i:m,t:e,n:E.Ga(E.nc(a,g))},{i:n,t:e,n:E.Ga(E.eg(a))},z,C.length*x));C.push(new E.Tb({i:s,t:e,n:E.Ga(a)},{i:m,t:e,n:E.Ga(E.nc(a,g))},{i:n,t:e,n:E.Ga(E.eg(a))},z,C.length*x));C.push(new E.Tb({i:s,t:e,n:E.Ga(a)},{i:v,t:e,n:E.Ga(E.eg(a))},{i:n,t:e,n:E.Ga(E.eg(a))},z,C.length*x));C.push(new E.Tb({i:s,t:e,n:E.Ga(a)},{i:v,t:e,n:E.Ga(E.eg(a))},{i:w,t:e,n:E.Ga(a)},z,C.length*x));C.push(new E.Tb({i:y,
  536. t:e,n:E.Ga(E.nc(g,a))},{i:v,t:e,n:E.Ga(E.eg(a))},{i:w,t:e,n:E.Ga(a)},z,C.length*x));C.push(new E.Tb({i:y,t:e,n:E.Ga(E.nc(g,a))},{i:f,t:e,n:E.Ga(E.re(a,g))},{i:w,t:e,n:E.Ga(a)},z,C.length*x));this.jb=p},Xd:function(a,c,d,e){if(c==q)this.Tu(a,d,e,p);else{c.a==q&&(c.a=255);e.a==q&&(e.a=255);d=d||this.Xc;d*=0.5;c={r:0|c.r,g:0|c.g,b:0|c.b,a:0|c.a};e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=[],g,h,m,n,s=a.length;for(g=0;g<s;g++){h=E.ye(a[(g-1+s)%s]);m=E.ye(a[g]);n=E.ye(a[(g+1)%s]);var v=E.qt(E.Jp(E.nc(m,
  537. h)));m=E.qt(E.Jp(E.nc(n,m)));f[g]={offset:E.qd(E.re(v,m),1/(E.lQ(v,m)+1)),fl:m}}v=0<d;this.ar(3*(3*s-2));var w=E.Tb.BYTES_PER_ELEMENT,y=this.zj,x=this.cb,z=v==r?0.5:0;for(g=0;g<s-2;g++)h=E.nc(E.ye(a[0]),E.qd(f[0].offset,z)),m=E.nc(E.ye(a[g+1]),E.qd(f[g+1].offset,z)),n=E.nc(E.ye(a[g+2]),E.qd(f[g+2].offset,z)),x.push(new E.Tb({i:h,t:c,n:E.Ga({x:0,y:0})},{i:m,t:c,n:E.Ga({x:0,y:0})},{i:n,t:c,n:E.Ga({x:0,y:0})},y,x.length*w));for(g=0;g<s;g++){z=(g+1)%s;h=E.ye(a[g]);m=E.ye(a[z]);n=f[g].fl;var C=f[g].offset,
  538. J=f[z].offset,z=v?E.nc(h,E.qd(C,d)):E.nc(h,E.qd(C,0.5)),F=v?E.nc(m,E.qd(J,d)):E.nc(m,E.qd(J,0.5));h=v?E.re(h,E.qd(C,d)):E.re(h,E.qd(C,0.5));m=v?E.re(m,E.qd(J,d)):E.re(m,E.qd(J,0.5));v?(x.push(new E.Tb({i:z,t:e,n:E.Ga(E.eg(n))},{i:F,t:e,n:E.Ga(E.eg(n))},{i:m,t:e,n:E.Ga(n)},y,x.length*w)),x.push(new E.Tb({i:z,t:e,n:E.Ga(E.eg(n))},{i:h,t:e,n:E.Ga(n)},{i:m,t:e,n:E.Ga(n)},y,x.length*w))):(x.push(new E.Tb({i:z,t:c,n:E.Ga({x:0,y:0})},{i:F,t:c,n:E.Ga({x:0,y:0})},{i:m,t:c,n:E.Ga(n)},y,x.length*w)),x.push(new E.Tb({i:z,
  539. t:c,n:E.Ga({x:0,y:0})},{i:h,t:c,n:E.Ga(n)},{i:m,t:c,n:E.Ga(n)},y,x.length*w)))}this.jb=p}},Tu:function(a,c,d,e){c=c||this.Xc;d=d||this.df;d.a==q&&(d.a=255);c*=0.5;if(!(0>=c)){d={r:0|d.r,g:0|d.g,b:0|d.b,a:0|d.a};var f=[],g,h,m,n,s=a.length;for(g=0;g<s;g++){h=E.ye(a[(g-1+s)%s]);m=E.ye(a[g]);n=E.ye(a[(g+1)%s]);var v=E.qt(E.Jp(E.nc(m,h)));m=E.qt(E.Jp(E.nc(n,m)));f[g]={offset:E.qd(E.re(v,m),1/(E.lQ(v,m)+1)),fl:m}}this.ar(3*(3*s-2));n=E.Tb.BYTES_PER_ELEMENT;var v=this.zj,w=this.cb;e=e?s:s-1;for(g=0;g<e;g++){var y=
  540. (g+1)%s;h=E.ye(a[g]);m=E.ye(a[y]);var x=f[g].fl,z=f[g].offset,y=f[y].offset,C=E.nc(h,E.qd(z,c));h=E.re(h,E.qd(z,c));z=E.re(m,E.qd(y,c));w.push(new E.Tb({i:C,t:d,n:E.Ga(E.eg(x))},{i:E.nc(m,E.qd(y,c)),t:d,n:E.Ga(E.eg(x))},{i:z,t:d,n:E.Ga(x)},v,w.length*n));w.push(new E.Tb({i:C,t:d,n:E.Ga(E.eg(x))},{i:h,t:d,n:E.Ga(x)},{i:z,t:d,n:E.Ga(x)},v,w.length*n))}this.jb=p}},clear:function(){this.cb.length=0;this.jb=p}});E.Kd=E.A==E.W?E.fR:E.eR;E.Kd.create=function(){return new E.Kd};
  541. E.fk=function(a){this.type=a;this.fillColor=this.fg=q;this.lineWidth=0;this.Jj=q;this.lineCap="butt";this.cl=this.fF=this.qx=r};E.Kd.WH=0;E.Kd.UT=1;E.Kd.ak=2;E.it=-1;E.BP=function(a,c){a.shaderProgram=c;var d=a.children;if(d)for(var e=0;e<d.length;e++)E.BP(d[e],c)};
  542. E.dc=E.m.extend({vm:0,Jh:r,hd:q,lK:r,ctor:function(a){E.m.prototype.ctor.call(this);this.hd=q;this.vm=0;this.Jh=r;E.dc.prototype.U.call(this,a||q)},U:q,wb:"ClippingNode",SW:function(a){this.hd=a;this.vm=1;this.Jh=r;E.dc.IB=p;E.dc.IB&&(E.it=E.l.getParameter(E.l.STENCIL_BITS),0>=E.it&&E.log("Stencil buffer is not enabled."),E.dc.IB=r);return p},RW:function(a){this.hd=a;this.vm=1;this.Jh=r},$:function(){E.m.prototype.$.call(this);this.hd.$()},Nh:function(){E.m.prototype.Nh.call(this);this.hd.Nh()},Tf:function(){this.hd.Tf();
  543. E.m.prototype.Tf.call(this)},yb:function(){this.hd.yb();E.m.prototype.yb.call(this)},P:q,as:function(a){var c=a||E.l;if(1>E.it)E.m.prototype.P.call(this,a);else if(!this.hd||!this.hd.visible)this.Jh&&E.m.prototype.P.call(this,a);else if(E.dc.sv+1==E.it)E.dc.HD=p,E.dc.HD&&(E.log("Nesting more than "+E.it+"stencils is not supported. Everything will be drawn without stencil for this node and its childs."),E.dc.HD=r),E.m.prototype.P.call(this,a);else{E.dc.sv++;var d=1<<E.dc.sv,e=d|d-1,f=c.isEnabled(c.STENCIL_TEST),
  544. g=c.getParameter(c.STENCIL_WRITEMASK),h=c.getParameter(c.STENCIL_FUNC),m=c.getParameter(c.STENCIL_REF),n=c.getParameter(c.STENCIL_VALUE_MASK),s=c.getParameter(c.STENCIL_FAIL),v=c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),w=c.getParameter(c.STENCIL_PASS_DEPTH_PASS);c.enable(c.STENCIL_TEST);c.stencilMask(d);var y=c.getParameter(c.DEPTH_WRITEMASK);c.depthMask(r);c.stencilFunc(c.NEVER,d,d);c.stencilOp(!this.Jh?c.ZERO:c.REPLACE,c.KEEP,c.KEEP);E.sf(E.Yg);E.Fj();E.dl();E.sf(E.Xg);E.Fj();E.dl();E.Ae.UM(L(-1,
  545. -1),L(1,1),E.color(255,255,255,255));E.sf(E.Yg);E.Ej();E.sf(E.Xg);E.Ej();c.stencilFunc(c.NEVER,d,d);c.stencilOp(!this.Jh?c.REPLACE:c.ZERO,c.KEEP,c.KEEP);if(1>this.vm){var d=E.Id.mc(E.bu),x=c.getUniformLocation(d.Mm(),E.DI);E.OE(d.Mm());d.et(x,this.vm);E.BP(this.hd,d)}E.Fj();this.transform();this.hd.P();E.Ej();c.depthMask(y);c.stencilFunc(c.EQUAL,e,e);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);E.m.prototype.P.call(this,a);c.stencilFunc(h,m,n);c.stencilOp(s,v,w);c.stencilMask(g);f||c.disable(c.STENCIL_TEST);
  546. E.dc.sv--}},qm:function(a){if(!this.hd||!this.hd.visible)this.Jh&&E.m.prototype.P.call(this,a);else{a=a||E.l;var c=a.canvas;if(this.RA()||this.hd instanceof E.D){var d=E.dc.HW();d.width=c.width;d.height=c.height;d.getContext("2d").drawImage(c,0,0);a.save();E.m.prototype.P.call(this,a);a.globalCompositeOperation=this.Jh?"destination-out":"destination-in";this.transform(a);this.hd.P();a.restore();a.save();a.setTransform(1,0,0,1,0,0);a.globalCompositeOperation="destination-over";a.drawImage(d,0,0)}else{var d=
  547. this.u,e;a.save();this.transform(a);this.hd.P(a);this.Jh&&(a.save(),a.setTransform(1,0,0,1,0,0),a.moveTo(0,0),a.lineTo(0,c.height),a.lineTo(c.width,c.height),a.lineTo(c.width,0),a.lineTo(0,0),a.restore());a.clip();this.RA(p);var f=d.length;if(0<f){this.Sc();for(c=0;c<f;c++)if(e=d[c],0>e.Db)e.P(a);else break;for(this.Z(a);c<f;c++)d[c].P(a)}else this.Z(a);this.RA(r)}a.restore()}},s1:A("hd"),dG:q,CY:u("hd"),BY:function(a){this.hd=a;var c=E.l;!(a instanceof E.D)&&a instanceof E.Kd&&(a.Z=function(){var d=
  548. E.view.ja,e=E.view.La;c.beginPath();for(var f=0;f<a.cb.length;f++){var g=a.cb[f].fg,h=g[0];c.moveTo(h.x*d,-h.y*e);for(var h=1,m=g.length;h<m;h++)c.lineTo(g[h].x*d,-g[h].y*e)}})},Pba:A("vm"),aja:u("vm"),Qea:A("Jh"),Kja:u("Jh"),RA:function(a){if(a===p||a===r)E.dc.prototype.lK=a;return E.dc.prototype.lK}});G=E.dc.prototype;E.A===E.W?(G.U=G.SW,G.P=G.as,G.dG=G.CY):(G.U=G.RW,G.P=G.qm,G.dG=G.BY);E.j(G,"stencil",G.s1,G.dG);E.dc.IB=q;E.dc.HD=q;E.dc.sv=-1;E.dc.DL=q;
  549. E.dc.HW=function(){return E.dc.DL||(E.dc.DL=document.createElement("canvas"))};E.dc.create=function(a){return new E.dc(a)};E.ln=E.na.extend({kk:r,si:0,Y:q,I:q,zg:q,ao:q,Sl:r,Gb:q,cB:0,jb:r,ctor:function(a,c,d){E.VA();this.kk=r;this.si=0;this.I=this.Y=q;this.zg=L(0,0);this.ao=q;this.Sl=r;this.Gb=q;this.cB=0;this.jb=r;a!==k&&this.mx(a,c,d)},rf:A("kk"),setActive:function(a){this.kk=a;a||(a=E.B,a.Xm(a.ri))},Eda:A("si"),X4:u("si"),H0:function(){return P(this.Y.width,this.Y.height)},Hja:function(a){this.Y.width=parseInt(a.width);this.Y.height=parseInt(a.height)},HE:function(){return L(this.zg.x,this.zg.y)},vka:function(a){this.zg.x=
  550. a.x;this.zg.y=a.y},dfa:A("Sl"),Cka:function(a){this.Sl!=a&&(this.Sl=a,this.Cw())},mx:function(a,c,d){if(!c){var e=E.B.us(),f=E.Yj(e.width),g=E.Yj(e.height),h=new Uint8Array(4*f*g);if(!h)return E.log("cocos2d: CCGrid: not enough memory."),r;c=new E.ca;c.zs(h,E.ca.Xi,f,g,e);if(!c)return E.log("cocos2d: CCGrid: error creating texture"),r}this.kk=r;this.si=0;this.Y=a;this.I=c;this.Sl=d||r;this.zg.x=this.I.width/a.width;this.zg.y=this.I.height/a.height;this.ao=new E.vR;if(!this.ao)return r;this.ao.D1(this.I);
  551. this.Gb=E.Id.mc(E.uq);this.Cw();return p},hs:function(){this.cB=E.B.ri;this.k4();this.ao.QZ(this.I)},es:function(a){this.ao.tZ(this.I);E.B.Xm(this.cB);if(a.Km().eF()){var c=a.Qw();E.lp(c.x,c.y);a.Km().Gs();E.lp(-c.x,-c.y)}E.pe(this.I);this.QD()},QD:function(){E.log("cc.GridBase.blit(): Shall be overridden in subclass.")},MF:function(){E.log("cc.GridBase.reuse(): Shall be overridden in subclass.")},Cw:function(){E.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")},k4:function(){var a=
  552. E.B.us();E.l.viewport(0,0,a.width,a.height);E.sf(E.Yg);E.dl();var c=new E.ba;E.kF(c,0,a.width,0,a.height,-1,1);E.kp(c);E.sf(E.Xg);E.dl();E.CP()}});E.ln.create=function(a,c,d){return new E.ln(a,c,d)};
  553. E.az=E.ln.extend({Bg:q,Pa:q,kj:q,lb:q,Kf:q,ad:q,Ef:q,ctor:function(a,c,d){E.ln.prototype.ctor.call(this);this.Ef=this.ad=this.Kf=this.lb=this.kj=this.Pa=this.Bg=q;a!==k&&this.mx(a,c,d)},nQ:function(a){(a.x!==(0|a.x)||a.y!==(0|a.y))&&E.log("cc.Grid3D.vertex() : Numbers must be integers");a=0|3*(a.x*(this.Y.height+1)+a.y);var c=this.Pa;return new E.rc(c[a],c[a+1],c[a+2])},Hc:function(a){(a.x!==(0|a.x)||a.y!==(0|a.y))&&E.log("cc.Grid3D.originalVertex() : Numbers must be integers");a=0|3*(a.x*(this.Y.height+
  554. 1)+a.y);var c=this.kj;return new E.rc(c[a],c[a+1],c[a+2])},Hd:function(a,c){(a.x!==(0|a.x)||a.y!==(0|a.y))&&E.log("cc.Grid3D.setVertex() : Numbers must be integers");var d=0|3*(a.x*(this.Y.height+1)+a.y),e=this.Pa;e[d]=c.x;e[d+1]=c.y;e[d+2]=c.d;this.jb=p},QD:function(){var a=this.Y.width*this.Y.height;E.Fc(E.Ld|E.un);this.Gb.Jc();this.Gb.gt();var c=E.l,d=this.jb;c.bindBuffer(c.ARRAY_BUFFER,this.ad);d&&c.bufferData(c.ARRAY_BUFFER,this.Pa,c.DYNAMIC_DRAW);c.vertexAttribPointer(E.pb,3,c.FLOAT,r,0,0);
  555. c.bindBuffer(c.ARRAY_BUFFER,this.Kf);d&&c.bufferData(c.ARRAY_BUFFER,this.Bg,c.DYNAMIC_DRAW);c.vertexAttribPointer(E.wd,2,c.FLOAT,r,0,0);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ef);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.lb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.jb=r);E.Qf()},MF:function(){if(0<this.si){for(var a=this.kj,c=this.Pa,d=0,e=this.Pa.length;d<e;d++)a[d]=c[d];--this.si}},Cw:function(){var a=E.l,c=this.I.pixelsWidth,d=this.I.pixelsHeight,e=this.I.N.height,
  556. f=this.Y,g=(f.width+1)*(f.height+1);this.Pa=new Float32Array(3*g);this.Bg=new Float32Array(2*g);this.lb=new Uint16Array(6*f.width*f.height);this.ad&&a.deleteBuffer(this.ad);this.ad=a.createBuffer();this.Kf&&a.deleteBuffer(this.Kf);this.Kf=a.createBuffer();this.Ef&&a.deleteBuffer(this.Ef);this.Ef=a.createBuffer();for(var h,m,n=this.lb,s=this.Bg,v=this.Sl,w=this.Pa,g=0;g<f.width;++g)for(h=0;h<f.height;++h){var y=h*f.width+g;m=g*this.zg.x;var x=m+this.zg.x,z=h*this.zg.y,C=z+this.zg.y,J=g*(f.height+1)+
  557. h,F=(g+1)*(f.height+1)+h,O=(g+1)*(f.height+1)+(h+1),R=g*(f.height+1)+(h+1);n[6*y]=J;n[6*y+1]=F;n[6*y+2]=R;n[6*y+3]=F;n[6*y+4]=O;n[6*y+5]=R;var y=[3*J,3*F,3*O,3*R],N=[{x:m,y:z,d:0},{x:x,y:z,d:0},{x:x,y:C,d:0},{x:m,y:C,d:0}],J=[2*J,2*F,2*O,2*R],x=[L(m,z),L(x,z),L(x,C),L(m,C)];for(m=0;4>m;++m)w[y[m]]=N[m].x,w[y[m]+1]=N[m].y,w[y[m]+2]=N[m].d,s[J[m]]=x[m].x/c,s[J[m]+1]=v?(e-x[m].y)/d:x[m].y/d}this.kj=new Float32Array(this.Pa);a.bindBuffer(a.ARRAY_BUFFER,this.ad);a.bufferData(a.ARRAY_BUFFER,this.Pa,a.DYNAMIC_DRAW);
  558. a.bindBuffer(a.ARRAY_BUFFER,this.Kf);a.bufferData(a.ARRAY_BUFFER,this.Bg,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ef);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW);this.jb=p}});E.az.create=function(a,c,d){return new E.az(a,c,d)};
  559. E.eA=E.ln.extend({Bg:q,Pa:q,kj:q,lb:q,Kf:q,ad:q,Ef:q,ctor:function(a,c,d){E.ln.prototype.ctor.call(this);this.Ef=this.ad=this.Kf=this.lb=this.kj=this.Pa=this.Bg=q;a!==k&&this.mx(a,c,d)},$P:function(a){(a.x!==(0|a.x)||a.y!==(0|a.y))&&E.log("cc.TiledGrid3D.tile() : Numbers must be integers");a=12*(this.Y.height*a.x+a.y);var c=this.Pa;return new E.Xt(new E.rc(c[a],c[a+1],c[a+2]),new E.rc(c[a+3],c[a+4],c[a+5]),new E.rc(c[a+6],c[a+7],c[a+8]),new E.rc(c[a+9],c[a+10],c[a+11]))},Uf:function(a){(a.x!==(0|
  560. a.x)||a.y!==(0|a.y))&&E.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");a=12*(this.Y.height*a.x+a.y);var c=this.kj;return new E.Xt(new E.rc(c[a],c[a+1],c[a+2]),new E.rc(c[a+3],c[a+4],c[a+5]),new E.rc(c[a+6],c[a+7],c[a+8]),new E.rc(c[a+9],c[a+10],c[a+11]))},Ve:function(a,c){(a.x!==(0|a.x)||a.y!==(0|a.y))&&E.log("cc.TiledGrid3D.setTile() : Numbers must be integers");var d=12*(this.Y.height*a.x+a.y),e=this.Pa;e[d]=c.F.x;e[d+1]=c.F.y;e[d+2]=c.F.d;e[d+3]=c.M.x;e[d+4]=c.M.y;e[d+5]=c.M.d;
  561. e[d+6]=c.L.x;e[d+7]=c.L.y;e[d+8]=c.L.d;e[d+9]=c.K.x;e[d+10]=c.K.y;e[d+11]=c.K.d;this.jb=p},QD:function(){var a=this.Y.width*this.Y.height;this.Gb.Jc();this.Gb.gt();var c=E.l,d=this.jb;E.Fc(E.Ld|E.un);c.bindBuffer(c.ARRAY_BUFFER,this.ad);d&&c.bufferData(c.ARRAY_BUFFER,this.Pa,c.DYNAMIC_DRAW);c.vertexAttribPointer(E.pb,3,c.FLOAT,r,0,this.Pa);c.bindBuffer(c.ARRAY_BUFFER,this.Kf);d&&c.bufferData(c.ARRAY_BUFFER,this.Bg,c.DYNAMIC_DRAW);c.vertexAttribPointer(E.wd,2,c.FLOAT,r,0,this.Bg);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,
  562. this.Ef);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.lb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.jb=r);E.Qf()},MF:function(){if(0<this.si){for(var a=this.Pa,c=this.kj,d=0;d<a.length;d++)c[d]=a[d];--this.si}},Cw:function(){var a=this.I.pixelsWidth,c=this.I.pixelsHeight,d=this.I.N.height,e=this.Y,f=e.width*e.height;this.Pa=new Float32Array(12*f);this.Bg=new Float32Array(8*f);this.lb=new Uint16Array(6*f);var g=E.l;this.ad&&g.deleteBuffer(this.ad);this.ad=g.createBuffer();
  563. this.Kf&&g.deleteBuffer(this.Kf);this.Kf=g.createBuffer();this.Ef&&g.deleteBuffer(this.Ef);this.Ef=g.createBuffer();var h,m,n=0,s=this.zg,v=this.Pa,w=this.Bg,y=this.Sl;for(h=0;h<e.width;h++)for(m=0;m<e.height;m++){var x=h*s.x,z=x+s.x,C=m*s.y,J=C+s.y;v[12*n]=x;v[12*n+1]=C;v[12*n+2]=0;v[12*n+3]=z;v[12*n+4]=C;v[12*n+5]=0;v[12*n+6]=x;v[12*n+7]=J;v[12*n+8]=0;v[12*n+9]=z;v[12*n+10]=J;v[12*n+11]=0;var F=C,O=J;y&&(F=d-C,O=d-J);w[8*n]=x/a;w[8*n+1]=F/c;w[8*n+2]=z/a;w[8*n+3]=F/c;w[8*n+4]=x/a;w[8*n+5]=O/c;w[8*
  564. n+6]=z/a;w[8*n+7]=O/c;n++}a=this.lb;for(h=0;h<f;h++)a[6*h+0]=4*h+0,a[6*h+1]=4*h+1,a[6*h+2]=4*h+2,a[6*h+3]=4*h+1,a[6*h+4]=4*h+2,a[6*h+5]=4*h+3;this.kj=new Float32Array(this.Pa);g.bindBuffer(g.ARRAY_BUFFER,this.ad);g.bufferData(g.ARRAY_BUFFER,this.Pa,g.DYNAMIC_DRAW);g.bindBuffer(g.ARRAY_BUFFER,this.Kf);g.bufferData(g.ARRAY_BUFFER,this.Bg,g.DYNAMIC_DRAW);g.bindBuffer(g.ELEMENT_ARRAY_BUFFER,this.Ef);g.bufferData(g.ELEMENT_ARRAY_BUFFER,this.lb,g.DYNAMIC_DRAW);this.jb=p}});
  565. E.eA.create=function(a,c,d){return new E.eA(a,c,d)};E.vR=E.na.extend({qu:q,mi:q,OK:q,$n:q,ctor:function(){E.VA();this.$n=E.l;this.OK=[0,0,0,0];this.mi=q;this.qu=this.$n.createFramebuffer()},D1:function(a){var c=this.$n;this.mi=c.getParameter(c.FRAMEBUFFER_BINDING);c.bindFramebuffer(c.FRAMEBUFFER,this.qu);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a.Ud,0);c.checkFramebufferStatus(c.FRAMEBUFFER)!=c.FRAMEBUFFER_COMPLETE&&E.log("Frame Grabber: could not attach texture to frmaebuffer");c.bindFramebuffer(c.FRAMEBUFFER,this.mi)},
  566. QZ:function(){var a=this.$n;this.mi=a.getParameter(a.FRAMEBUFFER_BINDING);a.bindFramebuffer(a.FRAMEBUFFER,this.qu);this.OK=a.getParameter(a.COLOR_CLEAR_VALUE);a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)},tZ:function(){var a=this.$n;a.bindFramebuffer(a.FRAMEBUFFER,this.mi);a.colorMask(p,p,p,p)},Aaa:function(){this.$n.deleteFramebuffer(this.qu)}});E.en=-1;
  567. E.rd=E.na.extend({originalTarget:q,target:q,tag:E.en,ctor:function(){this.target=this.originalTarget=q;this.tag=E.en},copy:function(){E.log("copy is deprecated. Please use clone instead.");return this.k()},k:function(){var a=new E.rd;a.originalTarget=q;a.target=q;a.tag=this.tag;return a},Hg:B(p),z:function(a){this.target=this.originalTarget=a},stop:function(){this.target=q},step:function(){E.log("[Action step]. override me")},update:function(){E.log("[Action update]. override me")},Vda:A("target"),eG:u("target"),
  568. nda:A("originalTarget"),cka:u("originalTarget"),IE:A("tag"),py:u("tag"),$x:t(),Ni:t()});E.action=function(){return new E.rd};E.rd.create=E.action;E.Vi=E.rd.extend({p:0,ctor:function(){E.rd.prototype.ctor.call(this);this.p=0},cp:function(){return this.p*(this.Zb||1)},Vf:u("p"),reverse:function(){E.log("cocos2d: FiniteTimeAction#reverse: Implement me");return q},k:function(){return new E.Vi}});
  569. E.eu=E.rd.extend({je:0,mb:q,ctor:function(a,c){E.rd.prototype.ctor.call(this);this.je=0;this.mb=q;a&&this.aa(a,c)},Xw:A("je"),Te:u("je"),aa:function(a,c){a||b("cc.Speed.initWithAction(): action must be non nil");this.mb=a;this.je=c;return p},k:function(){var a=new E.eu;a.aa(this.mb.k(),this.je);return a},z:function(a){E.rd.prototype.z.call(this,a);this.mb.z(a)},stop:function(){this.mb.stop();E.rd.prototype.stop.call(this)},step:function(a){this.mb.step(a*this.je)},Hg:function(){return this.mb.Hg()},
  570. reverse:function(){return E.eu.create(this.mb.reverse(),this.je)},uP:function(a){this.mb!=a&&(this.mb=a)},BE:A("mb")});E.speed=function(a,c){return new E.eu(a,c)};E.eu.create=E.speed;
  571. E.$y=E.rd.extend({Wn:q,Cn:r,Fu:r,iv:q,er:q,Pm:0,Um:0,an:0,xm:0,KD:q,ctor:function(a,c){E.rd.prototype.ctor.call(this);this.Wn=q;this.Fu=this.Cn=r;this.er=this.iv=q;this.xm=this.an=this.Um=this.Pm=0;this.KD=W(0,0,0,0);a&&(c?this.jp(a,c):this.jp(a))},k:function(){var a=new E.$y,c=this.KD;a.jp(this.Wn,new E.GH(c.x,c.y,c.width,c.height));return a},Lea:A("Cn"),eja:u("Cn"),jp:function(a,c){a||b("cc.Follow.initWithAction(): followedNode must be non nil");c=c||W(0,0,0,0);this.Wn=a;this.KD=c;this.Cn=!E.wC(c);
  572. this.Fu=r;var d=E.B.oa();this.er=L(d.width,d.height);this.iv=E.Li(this.er,0.5);this.Cn&&(this.Pm=-(c.x+c.width-this.er.x),this.Um=-c.x,this.an=-c.y,this.xm=-(c.y+c.height-this.er.y),this.Um<this.Pm&&(this.Um=this.Pm=(this.Pm+this.Um)/2),this.an<this.xm&&(this.an=this.xm=(this.an+this.xm)/2),this.an==this.xm&&this.Pm==this.Um&&(this.Fu=p));return p},step:function(){var a=this.Wn.x,c=this.Wn.y,a=this.iv.x-a,c=this.iv.y-c;this.Cn?this.Fu||this.target.R(E.Qc(a,this.Pm,this.Um),E.Qc(c,this.xm,this.an)):
  573. this.target.R(a,c)},Hg:function(){return!this.Wn.running},stop:function(){this.target=q;E.rd.prototype.stop.call(this)}});E.g0=function(a,c){return new E.$y(a,c)};E.$y.create=E.g0;E.v=E.Vi.extend({kb:0,dv:r,sg:q,Zb:1,Er:r,to:r,je:1,Kr:r,ctor:function(a){this.Zb=this.je=1;this.Er=r;this.MAX_VALUE=2;this.Kr=this.to=r;E.Vi.prototype.ctor.call(this);a!==k&&this.e(a)},tca:A("kb"),e:function(a){this.p=0===a?E.Nt:a;this.kb=0;return this.dv=p},Hg:function(){return this.kb>=this.p},ua:function(a){a.Er=this.Er;a.je=this.je;a.Zb=this.Zb;a.sg=this.sg;a.Kr=this.Kr;a.to=this.to},he:function(a){if(this.sg){a.sg=[];for(var c=0;c<this.sg.length;c++)a.sg.push(this.sg[c].reverse())}},k:function(){var a=
  574. new E.v(this.p);this.ua(a);return a},Qa:function(a){this.sg?this.sg.length=0:this.sg=[];for(var c=0;c<arguments.length;c++)this.sg.push(arguments[c]);return this},dd:function(a){var c=this.sg;if(!c||0===c.length)return a;for(var d=0,e=c.length;d<e;d++)a=c[d].Qa(a);return a},step:function(a){this.dv?(this.dv=r,this.kb=0):this.kb+=a;a=this.kb/(1.192092896E-7<this.p?this.p:1.192092896E-7);a=1>a?a:1;this.update(0<a?a:0);this.to&&(1<this.Zb&&this.Hg())&&(this.Er||this.Zb--,this.z(this.target),this.step(this.kb-
  575. this.p))},z:function(a){E.rd.prototype.z.call(this,a);this.kb=0;this.dv=p},reverse:function(){E.log("cc.IntervalAction: reverse not implemented.");return q},Vm:function(){E.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")},Jm:function(){E.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");return 0},speed:function(a){if(0>=a)return E.log("The speed parameter error"),this;this.Kr=p;this.je*=a;return this},Xw:A("je"),Te:function(a){this.je=
  576. a;return this},repeat:function(a){a=Math.round(a);if(isNaN(a)||1>a)return E.log("The repeat parameter error"),this;this.to=p;this.Zb*=a;return this},KF:function(){this.to=p;this.Zb=this.MAX_VALUE;this.Er=p;return this}});E.mZ=function(a){return new E.v(a)};E.v.create=E.mZ;
  577. E.ya=E.v.extend({bi:q,HL:q,rr:0,ctor:function(a){E.v.prototype.ctor.call(this);this.bi=[];var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&c[d]==q&&E.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=E.ya.Zi(e,c[f]));this.Nm(e,c[d])}},Nm:function(a,c){(!a||!c)&&b("cc.Sequence.initWithTwoActions(): arguments must all be non nil");this.e(a.p+c.p);this.bi[0]=a;this.bi[1]=c;return p},k:function(){var a=new E.ya;this.ua(a);a.Nm(this.bi[0].k(),
  578. this.bi[1].k());return a},z:function(a){E.v.prototype.z.call(this,a);this.HL=this.bi[0].p/this.p;this.rr=-1},stop:function(){-1!==this.rr&&this.bi[this.rr].stop();E.rd.prototype.stop.call(this)},update:function(a){a=this.dd(a);var c=0,d=this.HL,e=this.bi,f=this.rr;a<d?(a=0!==d?a/d:1,0===c&&1===f&&(e[1].update(0),e[1].stop())):(c=1,a=1===d?1:(a-d)/(1-d),-1===f&&(e[0].z(this.target),e[0].update(1),e[0].stop()),f||(e[0].update(1),e[0].stop()));f===c&&e[c].Hg()||(f!==c&&e[c].z(this.target),e[c].update(a),
  579. this.rr=c)},reverse:function(){var a=E.ya.Zi(this.bi[1].reverse(),this.bi[0].reverse());this.ua(a);this.he(a);return a}});E.iP=function(a){var c=a instanceof Array?a:arguments;0<c.length&&c[c.length-1]==q&&E.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)c[e]&&(d=E.ya.Zi(d,c[e]));return d};E.ya.create=E.iP;E.ya.Zi=function(a,c){var d=new E.ya;d.Nm(a,c);return d};
  580. E.Hz=E.v.extend({Zb:0,Uk:0,VB:0,TI:r,mb:q,ctor:function(a,c){E.v.prototype.ctor.call(this);c!==k&&this.aa(a,c)},aa:function(a,c){return this.e(a.p*c)?(this.Zb=c,this.mb=a,a instanceof E.se&&(this.TI=p,this.Zb-=1),this.Uk=0,p):r},k:function(){var a=new E.Hz;this.ua(a);a.aa(this.mb.k(),this.Zb);return a},z:function(a){this.Uk=0;this.VB=this.mb.p/this.p;E.v.prototype.z.call(this,a);this.mb.z(a)},stop:function(){this.mb.stop();E.rd.prototype.stop.call(this)},update:function(a){a=this.dd(a);var c=this.mb,
  581. d=this.p,e=this.Zb,f=this.VB;if(a>=f){for(;a>f&&this.Uk<e;)c.update(1),this.Uk++,c.stop(),c.z(this.target),this.VB=f+=c.p/d;1<=a&&this.Uk<e&&this.Uk++;this.TI||(this.Uk===e?(c.update(1),c.stop()):c.update(a-(f-c.p/d)))}else c.update(a*e%1)},Hg:function(){return this.Uk==this.Zb},reverse:function(){var a=E.repeat(this.mb.reverse(),this.Zb);this.ua(a);this.he(a);return a},uP:function(a){this.mb!=a&&(this.mb=a)},BE:A("mb")});E.repeat=function(a,c){return new E.Hz(a,c)};E.Hz.create=E.repeat;
  582. E.rq=E.v.extend({mb:q,ctor:function(a){E.v.prototype.ctor.call(this);this.mb=q;a&&this.aa(a)},aa:function(a){a||b("cc.RepeatForever.initWithAction(): action must be non null");this.mb=a;return p},k:function(){var a=new E.rq;this.ua(a);a.aa(this.mb.k());return a},z:function(a){E.v.prototype.z.call(this,a);this.mb.z(a)},step:function(a){var c=this.mb;c.step(a);c.Hg()&&(c.z(this.target),c.step(c.kb-c.p))},Hg:B(r),reverse:function(){var a=E.KF(this.mb.reverse());this.ua(a);this.he(a);return a},uP:function(a){this.mb!=
  583. a&&(this.mb=a)},BE:A("mb")});E.KF=function(a){return new E.rq(a)};E.rq.create=E.KF;
  584. E.ve=E.v.extend({jj:q,Aj:q,ctor:function(a){E.v.prototype.ctor.call(this);this.Aj=this.jj=q;var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&c[d]==q&&E.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=E.ve.Zi(e,c[f]));this.Nm(e,c[d])}},Nm:function(a,c){(!a||!c)&&b("cc.Spawn.initWithTwoActions(): arguments must all be non null");var d=r,e=a.p,f=c.p;this.e(Math.max(e,f))&&(this.jj=a,this.Aj=c,e>f?this.Aj=E.ya.Zi(c,E.Lw(e-f)):e<f&&(this.jj=
  585. E.ya.Zi(a,E.Lw(f-e))),d=p);return d},k:function(){var a=new E.ve;this.ua(a);a.Nm(this.jj.k(),this.Aj.k());return a},z:function(a){E.v.prototype.z.call(this,a);this.jj.z(a);this.Aj.z(a)},stop:function(){this.jj.stop();this.Aj.stop();E.rd.prototype.stop.call(this)},update:function(a){a=this.dd(a);this.jj&&this.jj.update(a);this.Aj&&this.Aj.update(a)},reverse:function(){var a=E.ve.Zi(this.jj.reverse(),this.Aj.reverse());this.ua(a);this.he(a);return a}});
  586. E.E5=function(a){var c=a instanceof Array?a:arguments;0<c.length&&c[c.length-1]==q&&E.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)c[e]!=q&&(d=E.ve.Zi(d,c[e]));return d};E.ve.create=E.E5;E.ve.Zi=function(a,c){var d=new E.ve;d.Nm(a,c);return d};
  587. E.Iz=E.v.extend({Uu:0,Lr:0,mJ:0,gB:0,yo:0,nJ:0,ctor:function(a,c,d){E.v.prototype.ctor.call(this);c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.v.prototype.e.call(this,a)?(this.Uu=c||0,this.gB=d||this.Uu,p):r},k:function(){var a=new E.Iz;this.ua(a);a.e(this.p,this.Uu,this.gB);return a},z:function(a){E.v.prototype.z.call(this,a);var c=a.rotationX%360,d=this.Uu-c;180<d&&(d-=360);-180>d&&(d+=360);this.Lr=c;this.mJ=d;this.yo=a.rotationY%360;a=this.gB-this.yo;180<a&&(a-=360);-180>a&&(a+=360);this.nJ=
  588. a},reverse:function(){E.log("cc.RotateTo.reverse(): it should be overridden in subclass.")},update:function(a){a=this.dd(a);this.target&&(this.target.rotationX=this.Lr+this.mJ*a,this.target.rotationY=this.yo+this.nJ*a)}});E.h4=function(a,c,d){return new E.Iz(a,c,d)};E.Iz.create=E.h4;
  589. E.Zt=E.v.extend({$g:0,Lr:0,Au:0,yo:0,ctor:function(a,c,d){E.v.prototype.ctor.call(this);c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.v.prototype.e.call(this,a)?(this.$g=c||0,this.Au=d||this.$g,p):r},k:function(){var a=new E.Zt;this.ua(a);a.e(this.p,this.$g,this.Au);return a},z:function(a){E.v.prototype.z.call(this,a);this.Lr=a.rotationX;this.yo=a.rotationY},update:function(a){a=this.dd(a);this.target&&(this.target.rotationX=this.Lr+this.$g*a,this.target.rotationY=this.yo+this.Au*a)},reverse:function(){var a=
  590. E.cP(this.p,-this.$g,-this.Au);this.ua(a);this.he(a);return a}});E.cP=function(a,c,d){return new E.Zt(a,c,d)};E.Zt.create=E.cP;
  591. E.Zg=E.v.extend({pi:q,Cc:q,Oc:q,ctor:function(a,c,d){E.v.prototype.ctor.call(this);this.pi=L(0,0);this.Cc=L(0,0);this.Oc=L(0,0);c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.v.prototype.e.call(this,a)?(c.x!==k&&(d=c.y,c=c.x),this.pi.x=c,this.pi.y=d,p):r},k:function(){var a=new E.Zg;this.ua(a);a.e(this.p,this.pi);return a},z:function(a){E.v.prototype.z.call(this,a);var c=a.Oe();a=a.Gg();this.Oc.x=c;this.Oc.y=a;this.Cc.x=c;this.Cc.y=a},update:function(a){a=this.dd(a);if(this.target){var c=this.pi.x*
  592. a;a*=this.pi.y;var d=this.Cc;if(E.tt){var e=this.target.Gg(),f=this.Oc;d.x=d.x+this.target.Oe()-f.x;d.y=d.y+e-f.y;c+=d.x;a+=d.y;f.x=c;f.y=a;this.target.R(c,a)}else this.target.R(d.x+c,d.y+a)}},reverse:function(){var a=E.moveBy(this.p,L(-this.pi.x,-this.pi.y));this.ua(a);this.he(a);return a}});E.moveBy=function(a,c,d){return new E.Zg(a,c,d)};E.Zg.create=E.moveBy;
  593. E.rn=E.Zg.extend({Bf:q,ctor:function(a,c,d){E.Zg.prototype.ctor.call(this);this.Bf=L(0,0);c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.Zg.prototype.e.call(this,a,c,d)?(c.x!==k&&(d=c.y,c=c.x),this.Bf.x=c,this.Bf.y=d,p):r},k:function(){var a=new E.rn;this.ua(a);a.e(this.p,this.Bf);return a},z:function(a){E.Zg.prototype.z.call(this,a);this.pi.x=this.Bf.x-a.Oe();this.pi.y=this.Bf.y-a.Gg()}});E.moveTo=function(a,c,d){return new E.rn(a,c,d)};E.rn.create=E.moveTo;
  594. E.Bl=E.v.extend({sh:0,th:0,aw:0,bw:0,Xu:0,Yu:0,bf:0,cf:0,ctor:function(a,c,d){E.v.prototype.ctor.call(this);d!==k&&this.e(a,c,d)},e:function(a,c,d){var e=r;E.v.prototype.e.call(this,a)&&(this.Xu=c,this.Yu=d,e=p);return e},k:function(){var a=new E.Bl;this.ua(a);a.e(this.p,this.Xu,this.Yu);return a},z:function(a){E.v.prototype.z.call(this,a);this.aw=a.skewX%180;this.bf=this.Xu-this.aw;180<this.bf&&(this.bf-=360);-180>this.bf&&(this.bf+=360);this.bw=a.skewY%360;this.cf=this.Yu-this.bw;180<this.cf&&(this.cf-=
  595. 360);-180>this.cf&&(this.cf+=360)},update:function(a){a=this.dd(a);this.target.skewX=this.aw+this.bf*a;this.target.skewY=this.bw+this.cf*a}});E.A5=function(a,c,d){return new E.Bl(a,c,d)};E.Bl.create=E.A5;
  596. E.Oz=E.Bl.extend({ctor:function(a,c,d){E.Bl.prototype.ctor.call(this);d!==k&&this.e(a,c,d)},e:function(a,c,d){var e=r;E.Bl.prototype.e.call(this,a,c,d)&&(this.sh=c,this.th=d,e=p);return e},k:function(){var a=new E.Oz;this.ua(a);a.e(this.p,this.sh,this.th);return a},z:function(a){E.Bl.prototype.z.call(this,a);this.bf=this.sh;this.cf=this.th;this.Xu=this.aw+this.bf;this.Yu=this.bw+this.cf},reverse:function(){var a=E.RP(this.p,-this.sh,-this.th);this.ua(a);this.he(a);return a}});
  597. E.RP=function(a,c,d){return new E.Oz(a,c,d)};E.Oz.create=E.RP;
  598. E.Wj=E.v.extend({Cc:q,fi:q,lr:0,hj:0,Oc:q,ctor:function(a,c,d,e,f){E.v.prototype.ctor.call(this);this.Cc=L(0,0);this.Oc=L(0,0);this.fi=L(0,0);e!==k&&this.e(a,c,d,e,f)},e:function(a,c,d,e,f){return E.v.prototype.e.call(this,a)?(f===k&&(f=e,e=d,d=c.y,c=c.x),this.fi.x=c,this.fi.y=d,this.lr=e,this.hj=f,p):r},k:function(){var a=new E.Wj;this.ua(a);a.e(this.p,this.fi,this.lr,this.hj);return a},z:function(a){E.v.prototype.z.call(this,a);var c=a.Oe();a=a.Gg();this.Oc.x=c;this.Oc.y=a;this.Cc.x=c;this.Cc.y=
  599. a},update:function(a){a=this.dd(a);if(this.target){var c=a*this.hj%1,c=4*this.lr*c*(1-c),c=c+this.fi.y*a;a*=this.fi.x;var d=this.Cc;if(E.tt){var e=this.target.Gg(),f=this.Oc;d.x=d.x+this.target.Oe()-f.x;d.y=d.y+e-f.y;a+=d.x;c+=d.y;f.x=a;f.y=c;this.target.R(a,c)}else this.target.R(d.x+a,d.y+c)}},reverse:function(){var a=E.fO(this.p,L(-this.fi.x,-this.fi.y),this.lr,this.hj);this.ua(a);this.he(a);return a}});E.fO=function(a,c,d,e,f){return new E.Wj(a,c,d,e,f)};E.Wj.create=E.fO;
  600. E.fz=E.Wj.extend({Bf:q,ctor:function(a,c,d,e,f){E.Wj.prototype.ctor.call(this);this.Bf=L(0,0);e!==k&&this.e(a,c,d,e,f)},e:function(a,c,d,e,f){return E.Wj.prototype.e.call(this,a,c,d,e,f)?(f===k&&(d=c.y,c=c.x),this.Bf.x=c,this.Bf.y=d,p):r},z:function(a){E.Wj.prototype.z.call(this,a);this.fi.x=this.Bf.x-this.Cc.x;this.fi.y=this.Bf.y-this.Cc.y},k:function(){var a=new E.fz;this.ua(a);a.e(this.p,this.Bf,this.lr,this.hj);return a}});E.r2=function(a,c,d,e,f){return new E.fz(a,c,d,e,f)};E.fz.create=E.r2;
  601. E.mM=function(a,c,d,e){return 0*Math.pow(1-e,3)+3*e*Math.pow(1-e,2)*a+3*Math.pow(e,2)*(1-e)*c+Math.pow(e,3)*d};
  602. E.gn=E.v.extend({yf:q,Cc:q,Oc:q,ctor:function(a,c){E.v.prototype.ctor.call(this);this.yf=[];this.Cc=L(0,0);this.Oc=L(0,0);c&&this.e(a,c)},e:function(a,c){return E.v.prototype.e.call(this,a)?(this.yf=c,p):r},k:function(){var a=new E.gn;this.ua(a);for(var c=[],d=0;d<this.yf.length;d++){var e=this.yf[d];c.push(L(e.x,e.y))}a.e(this.p,c);return a},z:function(a){E.v.prototype.z.call(this,a);var c=a.Oe();a=a.Gg();this.Oc.x=c;this.Oc.y=a;this.Cc.x=c;this.Cc.y=a},update:function(a){a=this.dd(a);if(this.target){var c=
  603. this.yf,d=E.mM(c[0].x,c[1].x,c[2].x,a);a=E.mM(c[0].y,c[1].y,c[2].y,a);c=this.Cc;if(E.tt){var e=this.target.Gg(),f=this.Oc;c.x=c.x+this.target.Oe()-f.x;c.y=c.y+e-f.y;d+=c.x;a+=c.y;f.x=d;f.y=a;this.target.R(d,a)}else this.target.R(c.x+d,c.y+a)}},reverse:function(){var a=this.yf,a=E.nM(this.p,[E.Lj(a[1],E.zF(a[2])),E.Lj(a[0],E.zF(a[2])),E.zF(a[2])]);this.ua(a);this.he(a);return a}});E.nM=function(a,c){return new E.gn(a,c)};E.gn.create=E.nM;
  604. E.Gy=E.gn.extend({nw:q,ctor:function(a,c){E.gn.prototype.ctor.call(this);this.nw=[];c&&this.e(a,c)},e:function(a,c){return E.v.prototype.e.call(this,a)?(this.nw=c,p):r},k:function(){var a=new E.Gy;this.ua(a);a.e(this.p,this.nw);return a},z:function(a){E.gn.prototype.z.call(this,a);a=this.Cc;var c=this.nw,d=this.yf;d[0]=E.Gd(c[0],a);d[1]=E.Gd(c[1],a);d[2]=E.Gd(c[2],a)}});E.SZ=function(a,c){return new E.Gy(a,c)};E.Gy.create=E.SZ;
  605. E.td=E.v.extend({ja:1,La:1,Nr:1,Or:1,Sn:0,Tn:0,bf:0,cf:0,ctor:function(a,c,d){E.v.prototype.ctor.call(this);c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.v.prototype.e.call(this,a)?(this.Sn=c,this.Tn=d!=q?d:c,p):r},k:function(){var a=new E.td;this.ua(a);a.e(this.p,this.Sn,this.Tn);return a},z:function(a){E.v.prototype.z.call(this,a);this.Nr=a.scaleX;this.Or=a.scaleY;this.bf=this.Sn-this.Nr;this.cf=this.Tn-this.Or},update:function(a){a=this.dd(a);this.target&&(this.target.scaleX=this.Nr+this.bf*
  606. a,this.target.scaleY=this.Or+this.cf*a)}});E.j4=function(a,c,d){return new E.td(a,c,d)};E.td.create=E.j4;E.du=E.td.extend({z:function(a){E.td.prototype.z.call(this,a);this.bf=this.Nr*this.Sn-this.Nr;this.cf=this.Or*this.Tn-this.Or},reverse:function(){var a=E.dP(this.p,1/this.Sn,1/this.Tn);this.ua(a);this.he(a);return a},k:function(){var a=new E.du;this.ua(a);a.e(this.p,this.Sn,this.Tn);return a}});E.dP=function(a,c,d){return new E.du(a,c,d)};E.du.create=E.dP;
  607. E.Hy=E.v.extend({Zb:0,SK:r,ctor:function(a,c){E.v.prototype.ctor.call(this);c!==k&&this.e(a,c)},e:function(a,c){return E.v.prototype.e.call(this,a)?(this.Zb=c,p):r},k:function(){var a=new E.Hy;this.ua(a);a.e(this.p,this.Zb);return a},update:function(a){a=this.dd(a);if(this.target&&!this.Hg()){var c=1/this.Zb;this.target.visible=a%c>c/2}},z:function(a){E.v.prototype.z.call(this,a);this.SK=a.visible},stop:function(){this.target.visible=this.SK;E.v.prototype.stop.call(this)},reverse:function(){var a=
  608. E.blink(this.p,this.Zb);this.ua(a);this.he(a);return a}});E.blink=function(a,c){return new E.Hy(a,c)};E.Hy.create=E.blink;
  609. E.Ui=E.v.extend({Ho:0,gv:0,ctor:function(a,c){E.v.prototype.ctor.call(this);c!==k&&this.e(a,c)},e:function(a,c){return E.v.prototype.e.call(this,a)?(this.Ho=c,p):r},k:function(){var a=new E.Ui;this.ua(a);a.e(this.p,this.Ho);return a},update:function(a){a=this.dd(a);var c=this.gv!==k?this.gv:255;this.target.opacity=c+(this.Ho-c)*a},z:function(a){E.v.prototype.z.call(this,a);this.gv=a.opacity}});E.$_=function(a,c){return new E.Ui(a,c)};E.Ui.create=E.$_;
  610. E.jq=E.Ui.extend({EC:q,ctor:function(a){E.Ui.prototype.ctor.call(this);a&&this.e(a,255)},reverse:function(){var a=new E.xl;a.e(this.p,0);this.ua(a);this.he(a);return a},k:function(){var a=new E.jq;this.ua(a);a.e(this.p,this.Ho);return a},z:function(a){this.EC&&(this.Ho=this.EC.gv);E.Ui.prototype.z.call(this,a)}});E.U_=function(a){return new E.jq(a)};E.jq.create=E.U_;
  611. E.xl=E.Ui.extend({ctor:function(a){E.Ui.prototype.ctor.call(this);a&&this.e(a,0)},reverse:function(){var a=new E.jq;a.EC=this;a.e(this.p,255);this.ua(a);this.he(a);return a},k:function(){var a=new E.xl;this.ua(a);a.e(this.p,this.Ho);return a}});E.V_=function(a){return new E.xl(a)};E.xl.create=E.V_;
  612. E.Cq=E.v.extend({jd:q,Mc:q,ctor:function(a,c,d,e){E.v.prototype.ctor.call(this);this.jd=E.color(0,0,0);this.Mc=E.color(0,0,0);e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.v.prototype.e.call(this,a)?(this.jd=E.color(c,d,e),p):r},k:function(){var a=new E.Cq;this.ua(a);var c=this.jd;a.e(this.p,c.r,c.g,c.b);return a},z:function(a){E.v.prototype.z.call(this,a);this.Mc=this.target.color},update:function(a){a=this.dd(a);var c=this.Mc,d=this.jd;c&&(this.target.color=E.color(c.r+(d.r-c.r)*a,c.g+(d.g-
  613. c.g)*a,c.b+(d.b-c.b)*a))}});E.i6=function(a,c,d,e){return new E.Cq(a,c,d,e)};E.Cq.create=E.i6;
  614. E.fA=E.v.extend({Su:0,Ru:0,Qu:0,fK:0,eK:0,dK:0,ctor:function(a,c,d,e){E.v.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.v.prototype.e.call(this,a)?(this.Su=c,this.Ru=d,this.Qu=e,p):r},k:function(){var a=new E.fA;this.ua(a);a.e(this.p,this.Su,this.Ru,this.Qu);return a},z:function(a){E.v.prototype.z.call(this,a);a=a.color;this.fK=a.r;this.eK=a.g;this.dK=a.b},update:function(a){a=this.dd(a);this.target.color=E.color(this.fK+this.Su*a,this.eK+this.Ru*a,this.dK+this.Qu*
  615. a)},reverse:function(){var a=E.aQ(this.p,-this.Su,-this.Ru,-this.Qu);this.ua(a);this.he(a);return a}});E.aQ=function(a,c,d,e){return new E.fA(a,c,d,e)};E.fA.create=E.aQ;E.sd=E.v.extend({update:t(),reverse:function(){var a=E.Lw(this.p);this.ua(a);this.he(a);return a},k:function(){var a=new E.sd;this.ua(a);a.e(this.p);return a}});E.Lw=function(a){return new E.sd(a)};E.sd.create=E.Lw;
  616. E.sq=E.v.extend({lj:q,ctor:function(a){E.v.prototype.ctor.call(this);this.lj=q;a&&this.aa(a)},aa:function(a){a||b("cc.ReverseTime.initWithAction(): action must be non null");a==this.lj&&b("cc.ReverseTime.initWithAction(): the action was already passed in.");return E.v.prototype.e.call(this,a.p)?(this.lj=a,p):r},k:function(){var a=new E.sq;this.ua(a);a.aa(this.lj.k());return a},z:function(a){E.v.prototype.z.call(this,a);this.lj.z(a)},update:function(a){a=this.dd(a);this.lj&&this.lj.update(1-a)},reverse:function(){return this.lj.k()},
  617. stop:function(){this.lj.stop();E.rd.prototype.stop.call(this)}});E.bP=function(a){return new E.sq(a)};E.sq.create=E.bP;
  618. E.Mp=E.v.extend({mk:q,vr:0,$B:q,av:0,aD:q,ctor:function(a){E.v.prototype.ctor.call(this);this.aD=[];a&&this.QN(a)},dN:A("mk"),o4:u("mk"),QN:function(a){a||b("cc.Animate.initWithAnimation(): animation must be non-NULL");var c=a.cp();if(this.e(c*a.ij)){this.vr=0;this.o4(a);this.$B=q;this.av=0;var d=this.aD,e=d.length=0,f=c/a.yi;a=a.Qd;E.Mo(a,E.gg);for(var g=0;g<a.length;g++){var h=e*f/c,e=e+a[g].Pd;d.push(h)}return p}return r},k:function(){var a=new E.Mp;this.ua(a);a.QN(this.mk.k());return a},z:function(a){E.v.prototype.z.call(this,
  619. a);this.mk.cm&&(this.$B=a.q_());this.av=this.vr=0},update:function(a){a=this.dd(a);1>a&&(a*=this.mk.ij,(0|a)>this.av&&(this.vr=0,this.av++),a%=1);for(var c=this.mk.Qd,d=c.length,e=this.aD,f=this.vr;f<d;f++)if(e[f]<=a)this.target.Sg(c[f].Hh()),this.vr=f+1;else break},reverse:function(){var a=this.mk,c=a.Qd,d=[];E.Mo(c,E.gg);if(0<c.length)for(var e=c.length-1;0<=e;e--){var f=c[e];if(!f)break;d.push(f.k())}c=E.Vg.create(d,a.Pd,a.ij);c.ly(a.cm);a=E.gM(c);this.ua(a);this.he(a);return a},stop:function(){this.mk.cm&&
  620. this.target&&this.target.Sg(this.$B);E.rd.prototype.stop.call(this)}});E.gM=function(a){return new E.Mp(a)};E.Mp.create=E.gM;
  621. E.cA=E.v.extend({Hq:q,Xn:q,ctor:function(a,c){E.v.prototype.ctor.call(this);c&&this.jp(a,c)},jp:function(a,c){return this.e(c.p)?(this.Xn=a,this.Hq=c,p):r},k:function(){var a=new E.cA;this.ua(a);a.jp(this.Xn,this.Hq.k());return a},z:function(a){E.v.prototype.z.call(this,a);this.Hq.z(this.Xn)},stop:function(){this.Hq.stop()},update:function(a){a=this.dd(a);this.Hq.update(a)},Fca:A("Xn"),Bja:function(a){this.Xn!=a&&(this.Xn=a)}});E.X5=function(a,c){return new E.cA(a,c)};E.cA.create=E.X5;E.se=E.Vi.extend({Hg:B(p),step:function(){this.update(1)},update:t(),reverse:function(){return this.k()},k:function(){return new E.se}});E.mg=E.se.extend({update:function(){this.target.visible=p},reverse:function(){return E.Th.create()},k:function(){return new E.mg}});E.show=function(){return new E.mg};E.mg.create=E.show;E.Th=E.se.extend({update:function(){this.target.visible=r},reverse:function(){return E.mg.create()},k:function(){return new E.Th}});E.J1=function(){return new E.Th};E.Th.create=E.J1;
  622. E.mu=E.se.extend({update:function(){this.target.visible=!this.target.visible},reverse:function(){return new E.mu},k:function(){return new E.mu}});E.j6=function(){return new E.mu};E.mu.create=E.j6;E.Yt=E.se.extend({ov:p,ctor:function(a){E.Vi.prototype.ctor.call(this);a!==k&&this.U(a)},update:function(){this.target.JF(this.ov)},U:function(a){this.ov=a;return p},reverse:function(){return new E.Yt(this.ov)},k:function(){return new E.Yt(this.ov)}});E.V3=function(a){return new E.Yt(a)};E.Yt.create=E.V3;
  623. E.Pt=E.se.extend({Lb:r,ctor:function(a){E.Vi.prototype.ctor.call(this);this.Lb=r;a!==k&&this.SN(a)},SN:function(a){this.Lb=a;return p},update:function(){this.target.flippedX=this.Lb},reverse:function(){return E.Pt.create(!this.Lb)},k:function(){var a=new E.Pt;a.SN(this.Lb);return a}});E.c0=function(a){return new E.Pt(a)};E.Pt.create=E.c0;
  624. E.Qt=E.se.extend({Mb:r,ctor:function(a){E.Vi.prototype.ctor.call(this);this.Mb=r;a!==k&&this.TN(a)},TN:function(a){this.Mb=a;return p},update:function(){this.target.flippedY=this.Mb},reverse:function(){return E.Qt.create(!this.Mb)},k:function(){var a=new E.Qt;a.TN(this.Mb);return a}});E.e0=function(a){return new E.Qt(a)};E.Qt.create=E.e0;
  625. E.sz=E.se.extend({yh:0,Je:0,ctor:function(a,c){E.Vi.prototype.ctor.call(this);this.Je=this.yh=0;a!==k&&(a.x!==k&&(c=a.y,a=a.x),this.YN(a,c))},YN:function(a,c){this.yh=a;this.Je=c;return p},update:function(){this.target.R(this.yh,this.Je)},k:function(){var a=new E.sz;a.YN(this.yh,this.Je);return a}});E.w3=function(a,c){return new E.sz(a,c)};E.sz.create=E.w3;
  626. E.Ab=E.se.extend({qj:q,Hu:q,fr:q,On:q,ctor:function(a,c,d){E.Vi.prototype.ctor.call(this);a!==k&&(c===k?this.lx(a):this.lx(a,c,d))},lx:function(a,c,d){c?(this.On=d,this.Hu=a,this.qj=c):a&&(this.fr=a);return p},execute:function(){this.Hu!=q?this.Hu.call(this.qj,this.target,this.On):this.fr&&this.fr.call(q,this.target)},update:function(){this.execute()},Wda:A("qj"),Aka:function(a){a!=this.qj&&(this.qj&&(this.qj=q),this.qj=a)},k:function(){var a=new E.Ab;this.qj?a.lx(this.Hu,this.qj,this.On):this.fr&&
  627. a.lx(this.fr);return a}});E.sM=function(a,c,d){return new E.Ab(a,c,d)};E.Ab.create=E.sM;E.zy=E.v.extend({SA:0,TA:0,UA:0,XJ:0,YJ:0,ZJ:0,RL:0,SL:0,TL:0,ctor:function(){E.v.prototype.ctor.call(this);this.TL=this.SL=this.RL=this.ZJ=this.YJ=this.XJ=this.UA=this.TA=this.SA=0},z:function(a){E.v.prototype.z.call(this,a);a=a.Km();var c=a.gN();this.SA=c.x;this.TA=c.y;this.UA=c.d;c=a.kN();this.XJ=c.x;this.YJ=c.y;this.ZJ=c.d;a=a.v1();this.RL=a.x;this.SL=a.y;this.TL=a.d},k:function(){return new E.zy},reverse:function(){return E.bP(this)}});
  628. E.te=E.zy.extend({Ee:0,bB:0,Kq:0,kJ:0,$g:0,jJ:0,dL:0,bL:0,cL:0,aL:0,ctor:function(a,c,d,e,f,g,h){E.zy.prototype.ctor.call(this);h!==k&&this.e(a,c,d,e,f,g,h)},e:function(a,c,d,e,f,g,h){return E.v.prototype.e.call(this,a)?(this.Ee=c,this.bB=d,this.Kq=e,this.kJ=f,this.$g=g,this.jJ=h,this.bL=E.Me(f),this.aL=E.Me(h),p):r},F5:function(){var a=this.target.Km(),c=a.kN(),d=a.gN(),a=c.x-d.x,e=c.y-d.y,c=c.d-d.d,d=Math.sqrt(Math.pow(a,2)+Math.pow(e,2)+Math.pow(c,2)),f=Math.sqrt(Math.pow(a,2)+Math.pow(e,2));0===
  629. f&&(f=E.Nt);0===d&&(d=E.Nt);return{e3:d/E.Pp.vs(),H6:Math.acos(c/d),azimuth:0>a?Math.PI-Math.asin(e/f):Math.asin(e/f)}},z:function(a){E.v.prototype.z.call(this,a);a=this.F5();isNaN(this.Ee)&&(this.Ee=a.e3);isNaN(this.Kq)&&(this.Kq=E.Wx(a.H6));isNaN(this.$g)&&(this.$g=E.Wx(a.azimuth));this.dL=E.Me(this.Kq);this.cL=E.Me(this.$g)},k:function(){var a=new E.te;a.e(this.p,this.Ee,this.bB,this.Kq,this.kJ,this.$g,this.jJ);return a},update:function(a){a=this.dd(a);var c=(this.Ee+this.bB*a)*E.Pp.vs(),d=this.dL+
  630. this.bL*a,e=this.cL+this.aL*a;a=Math.sin(d)*Math.cos(e)*c+this.SA;e=Math.sin(d)*Math.sin(e)*c+this.TA;c=Math.cos(d)*c+this.UA;this.target.Km().sP(a,e,c)}});E.i3=function(a,c,d,e,f,g,h){return new E.te(a,c,d,e,f,g,h)};E.te.create=E.i3;E.Na=E.v.extend({s:q,ctor:function(a){E.v.prototype.ctor.call(this);a&&this.aa(a)},aa:function(a){a||b("cc.ActionEase.initWithAction(): action must be non nil");return this.e(a.cp())?(this.s=a,p):r},k:function(){var a=new E.Na;a.aa(this.s.k());return a},z:function(a){E.v.prototype.z.call(this,a);this.s.z(this.target)},stop:function(){this.s.stop();E.v.prototype.stop.call(this)},update:function(a){this.s.update(a)},reverse:function(){return E.Na.create(this.s.reverse())},BE:A("s")});E.lZ=function(a){return new E.Na(a)};
  631. E.Na.create=E.lZ;E.wl=E.Na.extend({Xb:0,ctor:function(a,c){E.Na.prototype.ctor.call(this);c!==k&&this.aa(a,c)},lka:u("Xb"),Ada:A("Xb"),aa:function(a,c){return E.Na.prototype.aa.call(this,a)?(this.Xb=c,p):r},k:function(){var a=new E.wl;a.aa(this.s.k(),this.Xb);return a},reverse:function(){return E.wl.create(this.s.reverse(),1/this.Xb)}});E.I_=function(a,c){return new E.wl(a,c)};E.wl.create=E.I_;
  632. E.It=E.wl.extend({update:function(a){this.s.update(Math.pow(a,this.Xb))},reverse:function(){return E.It.create(this.s.reverse(),1/this.Xb)},k:function(){var a=new E.It;a.aa(this.s.k(),this.Xb);return a}});E.It.create=function(a,c){return new E.It(a,c)};E.F_=function(a){return{Xb:a,Qa:function(a){return Math.pow(a,this.Xb)},reverse:function(){return E.F_(1/this.Xb)}}};
  633. E.vl=E.wl.extend({update:function(a){this.s.update(Math.pow(a,1/this.Xb))},reverse:function(){return E.vl.create(this.s.reverse(),1/this.Xb)},k:function(){var a=new E.vl;a.aa(this.s.k(),this.Xb);return a}});E.vl.create=function(a,c){return new E.vl(a,c)};E.H_=function(a){return{Xb:a,Qa:function(a){return Math.pow(a,1/this.Xb)},reverse:function(){return E.H_(1/this.Xb)}}};
  634. E.$p=E.wl.extend({update:function(a){a*=2;1>a?this.s.update(0.5*Math.pow(a,this.Xb)):this.s.update(1-0.5*Math.pow(2-a,this.Xb))},k:function(){var a=new E.$p;a.aa(this.s.k(),this.Xb);return a},reverse:function(){return E.$p.create(this.s.reverse(),this.Xb)}});E.$p.create=function(a,c){return new E.$p(a,c)};E.G_=function(a){return{Xb:a,Qa:function(a){a*=2;return 1>a?0.5*Math.pow(a,this.Xb):1-0.5*Math.pow(2-a,this.Xb)},reverse:function(){return E.G_(this.Xb)}}};
  635. E.Ft=E.Na.extend({update:function(a){this.s.update(0===a?0:Math.pow(2,10*(a-1)))},reverse:function(){return E.Ht.create(this.s.reverse())},k:function(){var a=new E.Ft;a.aa(this.s.k());return a}});E.Ft.create=function(a){return new E.Ft(a)};E.EJ={Qa:function(a){return 0===a?0:Math.pow(2,10*(a-1))},reverse:function(){return E.GJ}};E.cba=function(){return E.EJ};
  636. E.Ht=E.Na.extend({update:function(a){this.s.update(1==a?1:-Math.pow(2,-10*a)+1)},reverse:function(){return E.Ft.create(this.s.reverse())},k:function(){var a=new E.Ht;a.aa(this.s.k());return a}});E.Ht.create=function(a){return new E.Ht(a)};E.GJ={Qa:function(a){return 1==a?1:-Math.pow(2,-10*a)+1},reverse:function(){return E.EJ}};E.eba=function(){return E.GJ};
  637. E.Gt=E.Na.extend({update:function(a){1!=a&&0!==a&&(a*=2,a=1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2));this.s.update(a)},reverse:function(){return E.Gt.create(this.s.reverse())},k:function(){var a=new E.Gt;a.aa(this.s.k());return a}});E.Gt.create=function(a){return new E.Gt(a)};E.FJ={Qa:function(a){return 1!==a&&0!==a?(a*=2,1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2)):a},reverse:function(){return E.FJ}};E.dba=function(){return E.FJ};
  638. E.Jt=E.Na.extend({update:function(a){a=0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1;this.s.update(a)},reverse:function(){return E.Lt.create(this.s.reverse())},k:function(){var a=new E.Jt;a.aa(this.s.k());return a}});E.Jt.create=function(a){return new E.Jt(a)};E.QJ={Qa:function(a){return 0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1},reverse:function(){return E.SJ}};E.oba=function(){return E.QJ};
  639. E.Lt=E.Na.extend({update:function(a){a=0===a||1===a?a:Math.sin(a*Math.PI/2);this.s.update(a)},reverse:function(){return E.Jt.create(this.s.reverse())},k:function(){var a=new E.Lt;a.aa(this.s.k());return a}});E.Lt.create=function(a){return new E.Lt(a)};E.SJ={Qa:function(a){return 0===a||1==a?a:Math.sin(a*Math.PI/2)},reverse:function(){return E.QJ}};E.qba=function(){return E.SJ};
  640. E.Kt=E.Na.extend({update:function(a){a=0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1);this.s.update(a)},k:function(){var a=new E.Kt;a.aa(this.s.k());return a},reverse:function(){return E.Kt.create(this.s.reverse())}});E.Kt.create=function(a){return new E.Kt(a)};E.RJ={Qa:function(a){return 0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1)},reverse:function(){return E.RJ}};E.pba=function(){return E.RJ};
  641. E.hn=E.Na.extend({Eb:0.3,ctor:function(a,c){E.Na.prototype.ctor.call(this);a&&this.aa(a,c)},sda:A("Eb"),hka:u("Eb"),aa:function(a,c){E.Na.prototype.aa.call(this,a);this.Eb=c==q?0.3:c;return p},reverse:function(){E.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");return q},k:function(){var a=new E.hn;a.aa(this.s.k(),this.Eb);return a}});E.hn.create=function(a,c){return new E.hn(a,c)};
  642. E.Ct=E.hn.extend({update:function(a){var c=0;0===a||1===a?c=a:(c=this.Eb/4,a-=1,c=-Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/this.Eb));this.s.update(c)},reverse:function(){return E.Et.create(this.s.reverse(),this.Eb)},k:function(){var a=new E.Ct;a.aa(this.s.k(),this.Eb);return a}});E.Ct.create=function(a,c){return new E.Ct(a,c)};E.CJ={Qa:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},reverse:function(){return E.DJ}};
  643. E.C_=function(a){return a&&0.3!==a?{Eb:a,Qa:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin(2*(a-this.Eb/4)*Math.PI/this.Eb)},reverse:function(){return E.E_(this.Eb)}}:E.CJ};E.Et=E.hn.extend({update:function(a){var c=0,c=0===a||1==a?a:Math.pow(2,-10*a)*Math.sin(2*(a-this.Eb/4)*Math.PI/this.Eb)+1;this.s.update(c)},reverse:function(){return E.Ct.create(this.s.reverse(),this.Eb)},k:function(){var a=new E.Et;a.aa(this.s.k(),this.Eb);return a}});
  644. E.Et.create=function(a,c){return new E.Et(a,c)};E.DJ={Qa:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},reverse:function(){return E.CJ}};E.E_=function(a){return a&&0.3!==a?{Eb:a,Qa:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-this.Eb/4)*Math.PI/this.Eb)+1},reverse:function(){return E.C_(this.Eb)}}:E.DJ};
  645. E.Dt=E.hn.extend({update:function(a){var c=0,c=this.Eb;if(0===a||1==a)c=a;else{c||(c=this.Eb=0.3*1.5);var d=c/4;a=2*a-1;c=0>a?-0.5*Math.pow(2,10*a)*Math.sin(2*(a-d)*Math.PI/c):0.5*Math.pow(2,-10*a)*Math.sin(2*(a-d)*Math.PI/c)+1}this.s.update(c)},reverse:function(){return E.Dt.create(this.s.reverse(),this.Eb)},k:function(){var a=new E.Dt;a.aa(this.s.k(),this.Eb);return a}});E.Dt.create=function(a,c){return new E.Dt(a,c)};
  646. E.D_=function(a){return{Eb:a||0.3,Qa:function(a){var d=0,d=this.Eb;if(0===a||1===a)d=a;else{d||(d=this.Eb=0.3*1.5);var e=d/4;a=2*a-1;d=0>a?-0.5*Math.pow(2,10*a)*Math.sin(2*(a-e)*Math.PI/d):0.5*Math.pow(2,-10*a)*Math.sin(2*(a-e)*Math.PI/d)+1}return d},reverse:function(){return E.D_(this.Eb)}}};
  647. E.ul=E.Na.extend({Bw:function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375},k:function(){var a=new E.ul;a.aa(this.s.k());return a},reverse:function(){return E.ul.create(this.s.reverse())}});E.ul.create=function(a){return new E.ul(a)};
  648. E.zt=E.ul.extend({update:function(a){this.s.update(1-this.Bw(1-a))},reverse:function(){return E.Bt.create(this.s.reverse())},k:function(){var a=new E.zt;a.aa(this.s.k());return a}});E.zt.create=function(a){return new E.zt(a)};E.Eu=function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375};E.tJ={Qa:function(a){return 1-E.Eu(1-a)},reverse:function(){return E.vJ}};E.Uaa=function(){return E.tJ};
  649. E.Bt=E.ul.extend({update:function(a){this.s.update(this.Bw(a))},reverse:function(){return E.zt.create(this.s.reverse())},k:function(){var a=new E.Bt;a.aa(this.s.k());return a}});E.Bt.create=function(a){return new E.Bt(a)};E.vJ={Qa:function(a){return E.Eu(a)},reverse:function(){return E.tJ}};E.Waa=function(){return E.vJ};E.At=E.ul.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.Bw(1-2*a)):0.5*this.Bw(2*a-1)+0.5;this.s.update(c)},k:function(){var a=new E.At;a.aa(this.s.k());return a},reverse:function(){return E.At.create(this.s.reverse())}});
  650. E.At.create=function(a){return new E.At(a)};E.uJ={Qa:function(a){return a=0.5>a?0.5*(1-E.Eu(1-2*a)):0.5*E.Eu(2*a-1)+0.5},reverse:function(){return E.uJ}};E.Vaa=function(){return E.uJ};E.wt=E.Na.extend({update:function(a){this.s.update(0===a||1==a?a:a*a*(2.70158*a-1.70158))},reverse:function(){return E.yt.create(this.s.reverse())},k:function(){var a=new E.wt;a.aa(this.s.k());return a}});E.wt.create=function(a){return new E.wt(a)};
  651. E.qJ={Qa:function(a){return 0===a||1===a?a:a*a*(2.70158*a-1.70158)},reverse:function(){return E.sJ}};E.Raa=function(){return E.qJ};E.yt=E.Na.extend({update:function(a){a-=1;this.s.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return E.wt.create(this.s.reverse())},k:function(){var a=new E.yt;a.aa(this.s.k());return a}});E.yt.create=function(a){return new E.yt(a)};E.sJ={Qa:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},reverse:function(){return E.qJ}};E.Taa=function(){return E.sJ};
  652. E.xt=E.Na.extend({update:function(a){a*=2;1>a?this.s.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.s.update(a*a*(3.5949095*a+2.5949095)/2+1))},k:function(){var a=new E.xt;a.aa(this.s.k());return a},reverse:function(){return E.xt.create(this.s.reverse())}});E.xt.create=function(a){return new E.xt(a)};E.rJ={Qa:function(a){a*=2;if(1>a)return a*a*(3.5949095*a-2.5949095)/2;a-=2;return a*a*(3.5949095*a+2.5949095)/2+1},reverse:function(){return E.rJ}};E.Saa=function(){return E.rJ};
  653. E.Tp=E.Na.extend({Dv:q,Ev:q,Fv:q,Gv:q,ctor:function(a){E.Na.prototype.ctor.call(this,a)},ma:function(a,c,d,e,f){return Math.pow(1-f,3)*a+3*f*Math.pow(1-f,2)*c+3*Math.pow(f,2)*(1-f)*d+Math.pow(f,3)*e},update:function(a){this.s.update(this.ma(this.Dv,this.Ev,this.Fv,this.Gv,a))},k:function(){var a=new E.Tp;a.aa(this.s.k());a.lP(this.Dv,this.Ev,this.Fv,this.Gv);return a},reverse:function(){var a=E.Tp.create(this.s.reverse());a.lP(this.Gv,this.Fv,this.Ev,this.Dv);return a},lP:function(a,c,d,e){this.Dv=
  654. a||0;this.Ev=c||0;this.Fv=d||0;this.Gv=e||0}});E.Tp.create=function(a){return new E.Tp(a)};E.B_=function(a,c,d,e){return{Qa:function(f){return E.Tp.prototype.ma(a,c,d,e,f)},reverse:function(){return E.B_(e,d,c,a)}}};E.aq=E.Na.extend({ma:function(a){return Math.pow(a,2)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.aq;a.aa(this.s.k());return a},reverse:function(){return E.aq.create(this.s.reverse())}});E.aq.create=function(a){return new E.aq(a)};
  655. E.HJ={Qa:E.aq.prototype.ma,reverse:function(){return E.HJ}};E.fba=function(){return E.HJ};E.cq=E.Na.extend({ma:function(a){return-a*(a-2)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.cq;a.aa();return a},reverse:function(){return E.cq.create(this.s.reverse())}});E.cq.create=function(a){return new E.cq(a)};E.JJ={Qa:E.cq.prototype.ma,reverse:function(){return E.JJ}};E.hba=function(){return E.JJ};
  656. E.bq=E.Na.extend({ma:function(a){var c=a;a*=2;1>a?c=0.5*a*a:(--a,c=-0.5*(a*(a-2)-1));return c},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.bq;a.aa(this.s.k());return a},reverse:function(){return E.bq.create(this.s.reverse())}});E.bq.create=function(a){return new E.bq(a)};E.IJ={Qa:E.bq.prototype.ma,reverse:function(){return E.IJ}};E.gba=function(){return E.IJ};
  657. E.dq=E.Na.extend({ma:function(a){return a*a*a*a},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.dq;a.aa(this.s.k());return a},reverse:function(){return E.dq.create(this.s.reverse())}});E.dq.create=function(a){return new E.dq(a)};E.KJ={Qa:E.dq.prototype.ma,reverse:function(){return E.KJ}};E.iba=function(){return E.KJ};
  658. E.fq=E.Na.extend({ma:function(a){a-=1;return-(a*a*a*a-1)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.fq;a.aa(this.s.k());return a},reverse:function(){return E.fq.create(this.s.reverse())}});E.fq.create=function(a){return new E.fq(a)};E.MJ={Qa:E.fq.prototype.ma,reverse:function(){return E.MJ}};E.kba=function(){return E.MJ};
  659. E.eq=E.Na.extend({ma:function(a){a*=2;if(1>a)return 0.5*a*a*a*a;a-=2;return-0.5*(a*a*a*a-2)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.eq;a.aa(this.s.k());return a},reverse:function(){return E.eq.create(this.s.reverse())}});E.eq.create=function(a){return new E.eq(a)};E.LJ={Qa:E.eq.prototype.ma,reverse:function(){return E.LJ}};E.jba=function(){return E.LJ};
  660. E.gq=E.Na.extend({ma:function(a){return a*a*a*a*a},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.gq;a.aa(this.s.k());return a},reverse:function(){return E.gq.create(this.s.reverse())}});E.gq.create=function(a){return new E.gq(a)};E.NJ={Qa:E.gq.prototype.ma,reverse:function(){return E.NJ}};E.lba=function(){return E.NJ};
  661. E.iq=E.Na.extend({ma:function(a){a-=1;return a*a*a*a*a+1},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.iq;a.aa(this.s.k());return a},reverse:function(){return E.iq.create(this.s.reverse())}});E.iq.create=function(a){return new E.iq(a)};E.PJ={Qa:E.iq.prototype.ma,reverse:function(){return E.PJ}};E.nba=function(){return E.PJ};
  662. E.hq=E.Na.extend({ma:function(a){a*=2;if(1>a)return 0.5*a*a*a*a*a;a-=2;return 0.5*(a*a*a*a*a+2)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.hq;a.aa(this.s.k());return a},reverse:function(){return E.hq.create(this.s.reverse())}});E.hq.create=function(a){return new E.hq(a)};E.OJ={Qa:E.hq.prototype.ma,reverse:function(){return E.OJ}};E.mba=function(){return E.OJ};
  663. E.Up=E.Na.extend({ma:function(a){return-1*(Math.sqrt(1-a*a)-1)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Up;a.aa(this.s.k());return a},reverse:function(){return E.Up.create(this.s.reverse())}});E.Up.create=function(a){return new E.Up(a)};E.wJ={Qa:E.Up.prototype.ma,reverse:function(){return E.wJ}};E.Xaa=function(){return E.wJ};
  664. E.Wp=E.Na.extend({ma:function(a){a-=1;return Math.sqrt(1-a*a)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Wp;a.aa(this.s.k());return a},reverse:function(){return E.Wp.create(this.s.reverse())}});E.Wp.create=function(a){return new E.Wp(a)};E.yJ={Qa:E.Wp.prototype.ma,reverse:function(){return E.yJ}};E.Zaa=function(){return E.yJ};
  665. E.Vp=E.Na.extend({ma:function(a){a*=2;if(1>a)return-0.5*(Math.sqrt(1-a*a)-1);a-=2;return 0.5*(Math.sqrt(1-a*a)+1)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Vp;a.aa(this.s.k());return a},reverse:function(){return E.Vp.create(this.s.reverse())}});E.Vp.create=function(a){return new E.Vp(a)};E.xJ={Qa:E.Vp.prototype.ma,reverse:function(){return E.xJ}};E.Yaa=function(){return E.xJ};
  666. E.Xp=E.Na.extend({ma:function(a){return a*a*a},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Xp;a.aa(this.s.k());return a},reverse:function(){return E.Xp.create(this.s.reverse())}});E.Xp.create=function(a){return new E.Xp(a)};E.zJ={Qa:E.Xp.prototype.ma,reverse:function(){return E.zJ}};E.$aa=function(){return E.zJ};E.Zp=E.Na.extend({ma:function(a){a-=1;return a*a*a+1},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Zp;a.aa(this.s.k());return a},reverse:function(){return E.Zp.create(this.s.reverse())}});
  667. E.Zp.create=function(a){return new E.Zp(a)};E.BJ={Qa:E.Zp.prototype.ma,reverse:function(){return E.BJ}};E.bba=function(){return E.BJ};E.Yp=E.Na.extend({ma:function(a){a*=2;if(1>a)return 0.5*a*a*a;a-=2;return 0.5*(a*a*a+2)},update:function(a){this.s.update(this.ma(a))},k:function(){var a=new E.Yp;a.aa(this.s.k());return a},reverse:function(){return E.Yp.create(this.s.reverse())}});E.Yp.create=function(a){return new E.Yp(a)};E.AJ={Qa:E.Yp.prototype.ma,reverse:function(){return E.AJ}};E.aba=function(){return E.AJ};E.ZD=function(a,c,d,e,f,g){var h=g*g,m=h*g,n=(1-f)/2;f=n*(-m+2*h-g);var s=n*(-m+h)+(2*m-3*h+1);g=n*(m-2*h+g)+(-2*m+3*h);h=n*(m-h);return L(a.x*f+c.x*s+d.x*g+e.x*h,a.y*f+c.y*s+d.y*g+e.y*h)};E.aP=function(a){for(var c=[],d=a.length-1;0<=d;d--)c.push(L(a[d].x,a[d].y));return c};E.Iw=function(a){for(var c=[],d=0;d<a.length;d++)c.push(L(a[d].x,a[d].y));return c};E.bd=function(a,c){var d=Math.min(a.length-1,Math.max(c,0));return a[d]};
  668. E.Qia=function(a){for(var c=a.length,d=0|c/2,e=0;e<d;++e){var f=a[e];a[e]=a[c-e-1];a[c-e-1]=f}};
  669. E.Si=E.v.extend({mh:q,lJ:0,Bo:0,Oc:q,SI:q,ctor:function(a,c,d){E.v.prototype.ctor.call(this);this.mh=[];d!==k&&this.e(a,c,d)},e:function(a,c,d){(!c||0==c.length)&&b("Invalid configuration. It must at least have one control point");return E.v.prototype.e.call(this,a)?(this.T4(c),this.Bo=d,p):r},k:function(){var a=new E.Si;a.e(this.p,E.Iw(this.mh),this.Bo);return a},z:function(a){E.v.prototype.z.call(this,a);this.lJ=1/(this.mh.length-1);this.Oc=L(this.target.Oe(),this.target.Gg());this.SI=L(0,0)},update:function(a){a=
  670. this.dd(a);var c,d=this.mh;if(1==a)c=d.length-1,a=1;else{var e=this.lJ;c=0|a/e;a=(a-e*c)/e}c=E.ZD(E.bd(d,c-1),E.bd(d,c-0),E.bd(d,c+1),E.bd(d,c+2),this.Bo,a);if(E.tt&&(d=this.target.Oe()-this.Oc.x,a=this.target.Gg()-this.Oc.y,0!=d||0!=a))e=this.SI,d=e.x+d,a=e.y+a,e.x=d,e.y=a,c.x+=d,c.y+=a;this.iQ(c)},reverse:function(){var a=E.aP(this.mh);return E.uM(this.p,a,this.Bo)},iQ:function(a){this.target.R(a);this.Oc=a},tda:A("mh"),T4:u("mh")});E.uM=function(a,c,d){return new E.Si(a,c,d)};E.Si.create=E.uM;
  671. E.Qp=E.Si.extend({Cc:q,ctor:function(a,c,d){E.Si.prototype.ctor.call(this);this.Cc=L(0,0);d!==k&&this.e(a,c,d)},z:function(a){E.Si.prototype.z.call(this,a);this.Cc.x=a.Oe();this.Cc.y=a.Gg()},reverse:function(){for(var a=this.mh.slice(),c,d=a[0],e=1;e<a.length;++e)c=a[e],a[e]=E.Gd(c,d),d=c;a=E.aP(a);d=a[a.length-1];a.pop();d.x=-d.x;d.y=-d.y;a.unshift(d);for(e=1;e<a.length;++e)c=a[e],c.x=-c.x,c.y=-c.y,c.x+=d.x,c.y+=d.y,d=a[e]=c;return E.tM(this.p,a,this.Bo)},iQ:function(a){var c=this.Cc,d=a.x+c.x;a=
  672. a.y+c.y;this.Oc.x=d;this.Oc.y=a;this.target.R(d,a)},k:function(){var a=new E.Qp;a.e(this.p,E.Iw(this.mh),this.Bo);return a}});E.tM=function(a,c,d){return new E.Qp(a,c,d)};E.Qp.create=E.tM;E.Ly=E.Si.extend({ctor:function(a,c){c&&this.e(a,c)},e:function(a,c){return E.Si.prototype.e.call(this,a,c,0.5)},k:function(){var a=new E.Ly;a.e(this.p,E.Iw(this.mh));return a}});E.YZ=function(a,c){return new E.Ly(a,c)};E.Ly.create=E.YZ;
  673. E.Ky=E.Qp.extend({ctor:function(a,c){E.Qp.prototype.ctor.call(this);c&&this.e(a,c)},e:function(a,c){return E.Si.prototype.e.call(this,a,c,0.5)},k:function(){var a=new E.Ky;a.e(this.p,E.Iw(this.mh));return a}});E.XZ=function(a,c){return new E.Ky(a,c)};E.Ky.create=E.XZ;E.Y6=E.na.extend({t6:t()});
  674. E.Ay=E.v.extend({key:"",Ow:0,uy:0,ms:0,ctor:function(a,c,d,e){E.v.prototype.ctor.call(this);this.key="";e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.v.prototype.e.call(this,a)?(this.key=c,this.uy=e,this.Ow=d,p):r},z:function(a){(!a||!a.t6)&&b("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function");E.v.prototype.z.call(this,a);this.ms=this.uy-this.Ow},update:t(),reverse:function(){return E.bM(this.duration,this.key,this.uy,this.Ow)},
  675. k:function(){var a=new E.Ay;a.e(this.p,this.key,this.Ow,this.uy);return a}});E.bM=function(a,c,d,e){return new E.Ay(a,c,d,e)};E.Ay.create=E.bM;E.ec=E.v.extend({Y:q,ctor:function(a,c){E.VA();E.v.prototype.ctor.call(this);this.Y=P(0,0);c&&this.e(a,c)},k:function(){var a=new E.ec,c=this.Y;a.e(this.p,P(c.width,c.height));return a},z:function(a){E.v.prototype.z.call(this,a);var c=this.qs(),d=this.target;(a=d.grid)&&0<a.si?(c=a.H0(),a.rf()&&(c.width==this.Y.width&&c.height==this.Y.height)&&a.MF()):(a&&a.rf()&&a.setActive(r),d.grid=c,d.grid.setActive(p))},reverse:function(){return E.sq.create(this)},e:function(a,c){return E.v.prototype.e.call(this,
  676. a)?(this.Y.width=c.width,this.Y.height=c.height,p):r},qs:function(){E.log("cc.GridAction.getGrid(): it should be overridden in subclass.")}});E.F1=function(a,c){return new E.ec(a,c)};E.ec.create=E.F1;E.Tc=E.ec.extend({qs:function(){return E.az.create(this.Y)},nQ:function(a){return this.target.grid.nQ(a)},Hc:function(a){return this.target.grid.Hc(a)},Hd:function(a,c){this.target.grid.Hd(a,c)}});E.E1=function(a,c){return new E.Tc(a,c)};E.Tc.create=E.E1;
  677. E.qc=E.ec.extend({$P:function(a){return this.target.grid.$P(a)},Uf:function(a){return this.target.grid.Uf(a)},Ve:function(a,c){this.target.grid.Ve(a,c)},qs:function(){return E.eA.create(this.Y)}});E.h6=function(a,c){return new E.qc(a,c)};E.qc.create=E.h6;E.Cl=E.se.extend({z:function(a){E.se.prototype.z.call(this,a);(a=this.target.grid)&&a.rf()&&a.setActive(r)}});E.T5=function(){return new E.Cl};E.Cl.create=E.T5;
  678. E.HH=E.se.extend({Zb:q,ctor:function(a){E.se.prototype.ctor.call(this);a!==k&&this.Z1(a)},Z1:function(a){this.Zb=a;return p},z:function(a){E.se.prototype.z.call(this,a);this.target.grid&&this.target.grid.rf()&&this.target.grid.X4(this.target.grid.si+this.Zb)}});E.f4=function(a){return new E.HH(a)};E.HH.create=E.f4;E.II=E.Tc.extend({nf:0,ab:0,bb:0,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e){return E.Tc.prototype.e.call(this,a,c)?(this.nf=d,this.ab=e,this.bb=1,p):r},update:function(a){for(var c=this.Y,d=this.ab,e=L(0,0),f=this.bb,g=this.nf,h=0;h<c.width+1;++h)for(var m=0;m<c.height+1;++m){e.x=h;e.y=m;var n=this.Hc(e);n.d+=Math.sin(2*Math.PI*a*g+0.01*(n.y+n.x))*d*f;this.Hd(e,n)}}});
  679. E.A6=function(a,c,d,e){return new E.II(a,c,d,e)};E.II.create=E.A6;
  680. E.Zy=E.Tc.extend({ctor:function(a){a!==k?E.ec.prototype.ctor.call(this,a,P(1,1)):E.ec.prototype.ctor.call(this)},e:function(a){return E.Tc.prototype.e.call(this,a,P(1,1))},mx:function(a,c){return 1!=a.width||1!=a.height?(E.log("Grid size must be (1,1)"),r):E.Tc.prototype.e.call(this,c,a)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new E.rc,e=L(0,0);e.x=e.y=1;var f=this.Hc(e);e.x=e.y=0;var e=this.Hc(e),g=f.x,h=e.x,m,n;g>h?(f=L(0,0),e=L(0,1),m=L(1,0),n=L(1,1)):(m=L(0,0),
  681. n=L(0,1),f=L(1,0),e=L(1,1),g=h);c.x=g-g*d;c.d=Math.abs(parseFloat(g*a/4));a=this.Hc(f);a.x=c.x;a.d+=c.d;this.Hd(f,a);a=this.Hc(e);a.x=c.x;a.d+=c.d;this.Hd(e,a);a=this.Hc(m);a.x-=c.x;a.d-=c.d;this.Hd(m,a);a=this.Hc(n);a.x-=c.x;a.d-=c.d;this.Hd(n,a)}});E.d0=function(a){return new E.Zy(a)};E.Zy.create=E.d0;
  682. E.ZG=E.Zy.extend({ctor:function(a){a!==k?E.ec.prototype.ctor.call(this,a,P(1,1)):E.ec.prototype.ctor.call(this)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new E.rc,e=L(0,0);e.x=e.y=1;var f=this.Hc(e);e.x=e.y=0;var e=this.Hc(e),g=f.y,h=e.y,m,n;g>h?(f=L(0,0),e=L(0,1),m=L(1,0),n=L(1,1)):(e=L(0,0),f=L(0,1),n=L(1,0),m=L(1,1),g=h);c.y=g-g*d;c.d=Math.abs(parseFloat(g*a)/4);a=this.Hc(f);a.y=c.y;a.d+=c.d;this.Hd(f,a);a=this.Hc(e);a.y-=c.y;a.d-=c.d;this.Hd(e,a);a=this.Hc(m);a.y=
  683. c.y;a.d+=c.d;this.Hd(m,a);a=this.Hc(n);a.y-=c.y;a.d-=c.d;this.Hd(n,a)}});E.f0=function(a){return new E.ZG(a)};E.ZG.create=E.f0;
  684. E.eH=E.Tc.extend({wa:q,Ee:0,tv:0,CV:r,jb:r,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);this.wa=L(0,0);e!==k&&this.e(a,c,d,e)},Vca:A("tv"),Pja:u("tv"),nja:u("CV"),Uw:A("wa"),R:function(a){E.DF(a,this.wa)||(this.wa.x=a.x,this.wa.y=a.y,this.jb=p)},e:function(a,c,d,e){return E.Tc.prototype.e.call(this,a,c)?(this.R(d),this.Ee=e,this.tv=0.7,this.jb=p):r},update:function(){if(this.jb){for(var a=this.Y.width,c=this.Y.height,d=this.Ee,e=this.tv,f=L(0,0),g=L(0,0),h,m,n,s=0;s<a+1;++s)for(var v=0;v<
  685. c+1;++v)f.x=s,f.y=v,h=this.Hc(f),g.x=this.wa.x-h.x,g.y=this.wa.y-h.y,m=E.hl(g),m<d&&(m=d-m,m/=d,0==m&&(m=0.0010),m=Math.log(m)*e,n=Math.exp(m)*d,m=E.hl(g),0<m&&(g.x/=m,g.y/=m,g.x*=n,g.y*=n,h.d+=E.hl(g)*e)),this.Hd(f,h);this.jb=r}}});E.V2=function(a,c,d,e){return new E.eH(a,c,d,e)};E.eH.create=E.V2;
  686. E.IH=E.Tc.extend({wa:q,Ee:0,nf:0,ab:0,bb:0,ctor:function(a,c,d,e,f,g){E.ec.prototype.ctor.call(this);this.wa=L(0,0);g!==k&&this.e(a,c,d,e,f,g)},Uw:A("wa"),R:function(a){this.wa.x=a.x;this.wa.y=a.y},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e,f,g){return E.Tc.prototype.e.call(this,a,c)?(this.R(d),this.Ee=e,this.nf=f,this.ab=g,this.bb=1,p):r},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=L(0,0),f=this.Ee,g=this.nf,h=this.ab,m=this.bb,n,s,v=L(0,0),w=0;w<c+1;++w)for(var y=
  687. 0;y<d+1;++y)e.x=w,e.y=y,n=this.Hc(e),v.x=this.wa.x-n.x,v.y=this.wa.y-n.y,s=E.hl(v),s<f&&(s=f-s,n.d+=Math.sin(2*a*Math.PI*g+0.1*s)*h*m*Math.pow(s/f,2)),this.Hd(e,n)}});E.g4=function(a,c,d,e,f,g){return new E.IH(a,c,d,e,f,g)};E.IH.create=E.g4;
  688. E.MH=E.Tc.extend({Jk:0,Jr:r,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.Tc.prototype.e.call(this,a,c)?(this.Jk=d,this.Jr=e,p):r},update:function(){for(var a=this.Y.width,c=this.Y.height,d=this.Jk,e=this.Jr,f=L(0,0),g,h=0;h<a+1;++h)for(var m=0;m<c+1;++m)f.x=h,f.y=m,g=this.Hc(f),g.x+=E.zb()%(2*d)-d,g.y+=E.zb()%(2*d)-d,e&&(g.d+=E.zb()%(2*d)-d),this.Hd(f,g)}});E.s5=function(a,c,d,e){return new E.MH(a,c,d,e)};E.MH.create=E.s5;
  689. E.fH=E.Tc.extend({nf:0,ab:0,bb:0,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e){return E.Tc.prototype.e.call(this,a,c)?(this.nf=d,this.ab=e,this.bb=1,p):r},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=L(0,0),f=this.nf,g=this.ab,h=this.bb,m,n=1;n<c;++n)for(var s=1;s<d;++s)e.x=n,e.y=s,m=this.Hc(e),m.x+=Math.sin(2*a*Math.PI*f+0.01*m.x)*g*h,m.y+=Math.sin(2*a*Math.PI*f+0.01*m.y)*g*h,this.Hd(e,
  690. m)}});E.W2=function(a,c,d,e){return new E.fH(a,c,d,e)};E.fH.create=E.W2;
  691. E.HI=E.Tc.extend({nf:0,ab:0,bb:0,$L:r,pK:r,ctor:function(a,c,d,e,f,g){E.ec.prototype.ctor.call(this);g!==k&&this.e(a,c,d,e,f,g)},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e,f,g){return E.Tc.prototype.e.call(this,a,c)?(this.nf=d,this.ab=e,this.bb=1,this.pK=f,this.$L=g,p):r},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=L(0,0),f=this.$L,g=this.pK,h=this.nf,m=this.ab,n=this.bb,s,v=0;v<c+1;++v)for(var w=0;w<d+1;++w)e.x=v,e.y=w,s=this.Hc(e),f&&(s.x+=Math.sin(2*a*Math.PI*
  692. h+0.01*s.y)*m*n),g&&(s.y+=Math.sin(2*a*Math.PI*h+0.01*s.x)*m*n),this.Hd(e,s)}});E.z6=function(a,c,d,e,f,g){return new E.HI(a,c,d,e,f,g)};E.HI.create=E.z6;
  693. E.BI=E.Tc.extend({wa:q,OL:0,ab:0,bb:0,ctor:function(a,c,d,e,f){E.ec.prototype.ctor.call(this);this.wa=L(0,0);f!==k&&this.e(a,c,d,e,f)},Uw:A("wa"),R:function(a){this.wa.x=a.x;this.wa.y=a.y},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e,f){return E.Tc.prototype.e.call(this,a,c)?(this.R(d),this.OL=e,this.ab=f,this.bb=1,p):r},update:function(a){for(var c=this.wa,d=this.Y.width,e=this.Y.height,f=L(0,0),g=0.1*this.ab*this.bb,h=this.OL,m,n,s,v=L(0,0),w=0;w<d+1;++w)for(var y=0;y<e+1;++y)f.x=
  694. w,f.y=y,m=this.Hc(f),v.x=w-d/2,v.y=y-e/2,n=E.hl(v)*Math.cos(Math.PI/2+2*a*Math.PI*h)*g,s=Math.sin(n)*(m.y-c.y)+Math.cos(n)*(m.x-c.x),n=Math.cos(n)*(m.y-c.y)-Math.sin(n)*(m.x-c.x),m.x=c.x+s,m.y=c.y+n,this.Hd(f,m)}});E.m6=function(a,c,d,e,f){return new E.BI(a,c,d,e,f)};E.BI.create=E.m6;E.NH=E.qc.extend({Jk:0,Jr:r,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.qc.prototype.e.call(this,a,c)?(this.Jk=d,this.Jr=e,p):r},update:function(){for(var a=this.Y,c=this.Jk,d=L(0,0),e=0;e<a.width;++e)for(var f=0;f<a.height;++f){d.x=e;d.y=f;var g=this.Uf(d);g.F.x+=E.zb()%(2*c)-c;g.M.x+=E.zb()%(2*c)-c;g.L.x+=E.zb()%(2*c)-c;g.K.x+=E.zb()%(2*c)-c;g.F.y+=E.zb()%(2*c)-c;g.M.y+=E.zb()%(2*c)-c;g.L.y+=E.zb()%(2*c)-c;g.K.y+=E.zb()%(2*c)-c;this.Jr&&
  695. (g.F.d+=E.zb()%(2*c)-c,g.M.d+=E.zb()%(2*c)-c,g.L.d+=E.zb()%(2*c)-c,g.K.d+=E.zb()%(2*c)-c);this.Ve(d,g)}}});E.t5=function(a,c,d,e){return new E.NH(a,c,d,e)};E.NH.create=E.t5;
  696. E.OH=E.qc.extend({Jk:0,ZB:r,EL:r,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},e:function(a,c,d,e){return E.qc.prototype.e.call(this,a,c)?(this.ZB=r,this.Jk=d,this.EL=e,p):r},update:function(){if(this.ZB===r){for(var a=this.Y,c=this.Jk,d,e=L(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)e.x=f,e.y=g,d=this.Uf(e),d.F.x+=E.zb()%(2*c)-c,d.M.x+=E.zb()%(2*c)-c,d.L.x+=E.zb()%(2*c)-c,d.K.x+=E.zb()%(2*c)-c,d.F.y+=E.zb()%(2*c)-c,d.M.y+=E.zb()%(2*c)-c,d.L.y+=E.zb()%(2*c)-
  697. c,d.K.y+=E.zb()%(2*c)-c,this.EL&&(d.F.d+=E.zb()%(2*c)-c,d.M.d+=E.zb()%(2*c)-c,d.L.d+=E.zb()%(2*c)-c,d.K.d+=E.zb()%(2*c)-c),this.Ve(e,d);this.ZB=p}}});E.w5=function(a,c,d,e){return new E.OH(a,c,d,e)};E.OH.create=E.w5;function ja(){this.position=L(0,0);this.P5=L(0,0);this.ms=L(0,0)}
  698. E.PH=E.qc.extend({GC:0,xj:0,xi:q,He:q,ctor:function(a,c,d){E.ec.prototype.ctor.call(this);this.xi=[];this.He=[];d!==k&&this.e(a,c,d)},e:function(a,c,d){return E.qc.prototype.e.call(this,a,c)?(this.GC=d,this.xi.length=0,this.He.length=0,p):r},lG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|E.zb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},xE:function(a){var c=this.Y,d=a.width*c.height+a.height;return P(this.xi[d]/c.height-a.width,this.xi[d]%c.height-a.height)},x3:function(a,c){var d=this.Uf(a),e=this.target.grid.HE(),
  699. f=c.position;d.F.x+=f.x*e.x;d.F.y+=f.y*e.y;d.M.x+=f.x*e.x;d.M.y+=f.y*e.y;d.L.x+=f.x*e.x;d.L.y+=f.y*e.y;d.K.x+=f.x*e.x;d.K.y+=f.y*e.y;this.Ve(a,d)},z:function(a){E.qc.prototype.z.call(this,a);a=this.Y;this.xj=a.width*a.height;for(var c=this.xi,d=c.length=0;d<this.xj;++d)c[d]=d;this.lG(c,this.xj);for(var c=this.He,d=c.length=0,e=P(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)c[d]=new ja,c[d].position=L(f,g),c[d].P5=L(f,g),e.width=f,e.height=g,c[d].ms=this.xE(e),++d},update:function(a){for(var c=
  700. 0,d=this.Y,e=this.He,f,g=L(0,0),h=0;h<d.width;++h)for(var m=0;m<d.height;++m)g.x=h,g.y=m,f=e[c],f.position.x=f.ms.width*a,f.position.y=f.ms.height*a,this.x3(g,f),++c}});E.y5=function(a,c,d){return new E.PH(a,c,d)};E.PH.create=E.y5;
  701. E.kq=E.qc.extend({ty:function(a,c){var d=this.Y.width*c,e=this.Y.height*c;return 0==d+e?1:Math.pow((a.width+a.height)/(d+e),6)},sG:function(a){this.Ve(a,this.Uf(a))},rG:function(a){this.Ve(a,new E.Xt)},dQ:function(a,c){var d=this.Uf(a),e=this.target.grid.HE();d.F.x+=e.x/2*(1-c);d.F.y+=e.y/2*(1-c);d.M.x-=e.x/2*(1-c);d.M.y+=e.y/2*(1-c);d.L.x+=e.x/2*(1-c);d.L.y-=e.y/2*(1-c);d.K.x-=e.x/2*(1-c);d.K.y-=e.y/2*(1-c);this.Ve(a,d)},update:function(a){for(var c=this.Y,d=L(0,0),e=P(0,0),f,g=0;g<c.width;++g)for(var h=
  702. 0;h<c.height;++h)d.x=g,d.y=h,e.width=g,e.height=h,f=this.ty(e,a),0==f?this.rG(d):1>f?this.dQ(d,f):this.sG(d)}});E.Y_=function(a,c){return new E.kq(a,c)};E.kq.create=E.Y_;E.Xy=E.kq.extend({ty:function(a,c){return 0==a.width+a.height?1:Math.pow((this.Y.width*(1-c)+this.Y.height*(1-c))/(a.width+a.height),6)}});E.W_=function(a,c){return new E.Xy(a,c)};E.Xy.create=E.W_;
  703. E.Ot=E.kq.extend({ty:function(a,c){var d=this.Y.height*c;return 0==d?1:Math.pow(a.height/d,6)},dQ:function(a,c){var d=this.Uf(a),e=this.target.grid.HE();d.F.y+=e.y/2*(1-c);d.M.y+=e.y/2*(1-c);d.L.y-=e.y/2*(1-c);d.K.y-=e.y/2*(1-c);this.Ve(a,d)}});E.Z_=function(a,c){return new E.Ot(a,c)};E.Ot.create=E.Z_;E.Yy=E.Ot.extend({ty:function(a,c){return 0==a.height?1:Math.pow(this.Y.height*(1-c)/a.height,6)}});E.X_=function(a,c){return new E.Yy(a,c)};E.Yy.create=E.X_;
  704. E.iA=E.qc.extend({GC:q,xj:0,xi:q,ctor:function(a,c,d){E.ec.prototype.ctor.call(this);this.xi=[];c!==k&&this.e(a,c,d)},e:function(a,c,d){return E.qc.prototype.e.call(this,a,c)?(this.GC=d||0,this.xi.length=0,p):r},lG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|E.zb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},sG:function(a){this.Ve(a,this.Uf(a))},rG:function(a){this.Ve(a,new E.Xt)},z:function(a){E.qc.prototype.z.call(this,a);this.xj=this.Y.width*this.Y.height;a=this.xi;for(var c=a.length=0;c<this.xj;++c)a[c]=
  705. c;this.lG(a,this.xj)},update:function(a){a=0|a*this.xj;for(var c=this.Y,d,e=L(0,0),f=this.xi,g=0;g<this.xj;g++)d=f[g],e.x=0|d/c.height,e.y=d%(0|c.height),g<a?this.rG(e):this.sG(e)}});E.l6=function(a,c,d){return new E.iA(a,c,d)};E.iA.create=E.l6;
  706. E.JI=E.qc.extend({nf:0,ab:0,bb:0,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e){return E.qc.prototype.e.call(this,a,c)?(this.nf=d,this.ab=e,this.bb=1,p):r},update:function(a){for(var c=this.Y,d=this.nf,e=this.ab,f=this.bb,g=L(0,0),h,m=0;m<c.width;m++)for(var n=0;n<c.height;n++)g.x=m,g.y=n,h=this.Uf(g),h.F.d=Math.sin(2*a*Math.PI*d+0.01*(h.F.y+h.F.x))*e*f,h.M.d=h.F.d,h.L.d=h.F.d,h.K.d=h.F.d,this.Ve(g,h)}});
  707. E.B6=function(a,c,d,e){return new E.JI(a,c,d,e)};E.JI.create=E.B6;
  708. E.cH=E.qc.extend({hj:0,ab:0,bb:0,ctor:function(a,c,d,e){E.ec.prototype.ctor.call(this);e!==k&&this.e(a,c,d,e)},ap:A("ab"),zp:u("ab"),Jm:A("bb"),Vm:u("bb"),e:function(a,c,d,e){return E.qc.prototype.e.call(this,a,c)?(this.hj=d,this.ab=e,this.bb=1,p):r},update:function(a){var c=Math.sin(2*Math.PI*a*this.hj)*this.ab*this.bb;a=Math.sin(Math.PI*(2*a*this.hj+1))*this.ab*this.bb;for(var d=this.Y,e=this.target.grid,f,g=L(0,0),h=0;h<d.width;h++)for(var m=0;m<d.height;m++)g.x=h,g.y=m,f=e.Uf(g),0==(h+m)%2?(f.F.d+=
  709. c,f.M.d+=c,f.L.d+=c,f.K.d+=c):(f.F.d+=a,f.M.d+=a,f.L.d+=a,f.K.d+=a),e.Ve(g,f)}});E.q2=function(a,c,d,e){return new E.cH(a,c,d,e)};E.cH.create=E.q2;
  710. E.Qz=E.qc.extend({ZX:0,cs:q,ctor:function(a,c){E.ec.prototype.ctor.call(this);c!==k&&this.e(a,c)},e:function(a,c){this.ZX=c;return E.qc.prototype.e.call(this,a,P(1,c))},update:function(a){for(var c=this.Y,d=this.cs.width,e,f,g=L(0,0),h=0;h<c.height;++h)g.y=h,e=this.Uf(g),f=1,0==h%2&&(f=-1),e.F.x+=f*d*a,e.M.x+=f*d*a,e.L.x+=f*d*a,e.K.x+=f*d*a,this.Ve(g,e)},z:function(a){E.qc.prototype.z.call(this,a);this.cs=E.B.us()}});E.H5=function(a,c){return new E.Qz(a,c)};E.Qz.create=E.H5;
  711. E.Pz=E.qc.extend({BV:0,cs:q,ctor:function(a,c){E.ec.prototype.ctor.call(this);c!==k&&this.e(a,c)},e:function(a,c){this.BV=c;return E.qc.prototype.e.call(this,a,P(c,1))},update:function(a){for(var c=this.Y.width,d=this.cs.height,e,f,g=L(0,0),h=0;h<c;++h)g.x=h,e=this.Uf(g),f=1,0==h%2&&(f=-1),e.F.y+=f*d*a,e.M.y+=f*d*a,e.L.y+=f*d*a,e.K.y+=f*d*a,this.Ve(g,e)},z:function(a){E.qc.prototype.z.call(this,a);this.cs=E.B.us()}});E.G5=function(a,c){return new E.Pz(a,c)};E.Pz.create=E.G5;E.Vt=E.Tc.extend({update:function(a){var c=Math.max(0,a-0.25),c=-100-500*c*c,d=+Math.PI/2+-Math.PI/2*Math.sqrt(a);a=Math.sin(d);for(var d=Math.cos(d),e=this.Y,f=L(0,0),g=0;g<=e.width;++g)for(var h=0;h<=e.height;++h){f.x=g;f.y=h;var m=this.Hc(f),n=Math.sqrt(m.x*m.x+(m.y-c)*(m.y-c)),s=n*a,v=Math.asin(m.x/n)/a,w=Math.cos(v);m.x=v<=Math.PI?s*Math.sin(v):0;m.y=n+c-s*(1-w)*a;m.d=s*(1-w)*d/7;0.5>m.d&&(m.d=0.5);this.Hd(f,m)}}});E.o3=function(a,c){return new E.Vt(a,c)};E.Vt.create=E.o3;E.Va=E.m.extend({jc:q,ni:0,Yb:q,kh:q,Jl:q,Bd:r,wb:"ProgressTimer",W0:function(){return L(this.kh.x,this.kh.y)},M4:function(a){this.kh=E.BO(a)},m0:function(){return L(this.Jl.x,this.Jl.y)},q4:function(a){this.Jl=E.BO(a)},LE:A("jc"),c1:A("ni"),AN:A("Yb"),R4:function(a){this.ni!=a&&(this.ni=E.Qc(a,0,100),this.vD())},Se:t(),Rf:B(r),k2:A("Bd"),OA:function(a){if(a<E.Va.RH){var c=E.Va.PT;return this.Bd?L(c>>7-(a<<1)&1,c>>7-((a<<1)+1)&1):L(c>>(a<<1)+1&1,c>>(a<<1)&1)}return L(0,0)},Cv:q,gD:270,hB:270,Ee:0,
  712. $A:r,KA:q,kd:0,wc:q,mf:q,CD:q,Zr:r,ctor:q,Uq:function(a){E.m.prototype.ctor.call(this);this.jc=E.Va.Wh;this.ni=0;this.kh=L(0,0);this.Jl=L(0,0);this.Bd=r;this.Yb=q;this.Cv=L(0,0);this.hB=this.gD=270;this.Ee=0;this.$A=r;this.KA=W(0,0,0,0);a&&this.qK(a)},Vq:function(a){E.m.prototype.ctor.call(this);this.jc=E.Va.Wh;this.ni=0;this.kh=L(0,0);this.Jl=L(0,0);this.Bd=r;this.Yb=q;this.CD=E.l.createBuffer();this.kd=0;this.mf=this.wc=q;this.Zr=r;a&&this.rK(a)},Za:function(a){this.Yb.color=a;this.$b()},Ta:function(a){this.Yb.opacity=
  713. a;this.$b()},Eg:function(){return this.Yb.color},Fg:function(){return this.Yb.opacity},FP:q,tY:function(a){this.Bd!==a&&(this.Bd=a)},uY:function(a){this.Bd!==a&&(this.Bd=a,this.mf=this.wc=q,this.kd=0)},ny:q,zY:function(a){this.Yb!=a&&(this.Yb=a,this.width=this.Yb.width,this.height=this.Yb.height)},AY:function(a){a&&this.Yb!=a&&(this.Yb=a,this.width=a.width,this.height=a.height,this.wc&&(this.mf=this.wc=q,this.kd=0))},hG:q,HY:function(a){a!==this.jc&&(this.jc=a)},IY:function(a){a!==this.jc&&(this.wc&&
  714. (this.mf=this.wc=q,this.kd=0),this.jc=a)},$F:q,rY:function(a){this.Bd!==a&&(this.Bd=a)},sY:function(a){this.Bd!==a&&(this.Bd=a,this.mf=this.wc=q,this.kd=0)},le:function(a){var c=this.Yb;if(!c)return{ea:0,fa:0};var d=c.quad,e=L(d.F.n.ea,d.F.n.fa),d=L(d.K.n.ea,d.K.n.fa);c.textureRectRotated&&(c=a.x,a.x=a.y,a.y=c);return{ea:e.x*(1-a.x)+d.x*a.x,fa:e.y*(1-a.y)+d.y*a.y}},me:function(a){if(!this.Yb)return{x:0,y:0};var c=this.Yb.quad,d=L(c.F.i.x,c.F.i.y),c=L(c.K.i.x,c.K.i.y);return{x:d.x*(1-a.x)+c.x*a.x,
  715. y:d.y*(1-a.y)+c.y*a.y}},ZN:q,qK:function(a){this.percentage=0;this.anchorY=this.anchorX=0.5;this.jc=E.Va.Wh;this.Bd=r;this.midPoint=L(0.5,0.5);this.barChangeRate=L(1,1);this.sprite=a;return p},rK:function(a){this.percentage=0;this.mf=this.wc=q;this.kd=0;this.anchorY=this.anchorX=0.5;this.jc=E.Va.Wh;this.Bd=r;this.midPoint=L(0.5,0.5);this.barChangeRate=L(1,1);this.sprite=a;this.shaderProgram=E.Id.mc(E.Yi);return p},Z:q,Ml:function(a){a=a||E.l;var c=this.Yb;c.lo&&(a.globalCompositeOperation="lighter");
  716. var d=E.view.ja,e=E.view.La;a.globalAlpha=c.hb/255;var f=c.ha,g=c.N,h=c.Jb,m=c.fB,n=0|h.x,s=-h.y-f.height,v=c.jm;m.width=f.width*d;m.height=f.height*e;a.save();c.Lb&&(n=-h.x-f.width,a.scale(-1,1));c.Mb&&(s=h.y,a.scale(1,-1));n*=d;s*=e;this.jc==E.Va.Fl?(f=this.KA,a.beginPath(),a.rect(f.x*d,f.y*e,f.width*d,f.height*e),a.clip(),a.closePath()):this.jc==E.Va.Wh&&(f=this.Cv.x*d,h=this.Cv.y*e,a.beginPath(),a.arc(f,h,this.Ee*e,Math.PI/180*this.gD,Math.PI/180*this.hB,this.$A),a.lineTo(f,h),a.clip(),a.closePath());
  717. c.I&&v.cn?(d=c.I.Xa,this.Sq?a.drawImage(d,0,0,v.width,v.height,n,s,m.width,m.height):a.drawImage(d,v.x,v.y,v.width,v.height,n,s,m.width,m.height)):0!==g.width&&(m=this.color,a.fillStyle="rgba("+m.r+","+m.g+","+m.b+",1)",a.fillRect(n,s,g.width*d,g.height*e));a.restore();E.Qf()},cj:function(a){a=a||E.l;if(this.wc&&this.Yb){E.Hs(this);var c=this.Yb.Dh();E.Ih(c.src,c.Q);E.Fc(E.Gl);E.pe(this.Yb.texture);a.bindBuffer(a.ARRAY_BUFFER,this.CD);this.Zr&&(a.bufferData(a.ARRAY_BUFFER,this.mf,a.DYNAMIC_DRAW),
  718. this.Zr=r);c=E.vd.BYTES_PER_ELEMENT;a.vertexAttribPointer(E.pb,2,a.FLOAT,r,c,0);a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,c,8);a.vertexAttribPointer(E.wd,2,a.FLOAT,r,c,12);this.jc===E.Va.Wh?a.drawArrays(a.TRIANGLE_FAN,0,this.kd):this.jc==E.Va.Fl&&(this.Bd?(a.drawArrays(a.TRIANGLE_STRIP,0,this.kd/2),a.drawArrays(a.TRIANGLE_STRIP,4,this.kd/2),E.pf++):a.drawArrays(a.TRIANGLE_STRIP,0,this.kd));E.pf++}},hZ:function(){if(this.Yb){var a,c=this.kh;a=this.ni/100;var d=L(c.x,1),e=E.m3(d,c,2*E.PI*(this.Bd?
  719. a:1-a)),f=0;if(0==a)e=d,f=0;else if(1==a)e=d,f=4;else{var g=E.sR,h=E.Va.RH;for(a=0;a<=h;++a){var m=this.OA(a%h),n=this.OA((a+(h-1))%h);0==a?n=E.EO(m,n,1-c.x):4==a&&(m=E.EO(m,n,1-c.x));var s=L(0,0);if(E.yF(m,n,c,e,s)&&(!(0==a||4==a)||0<=s.x&&1>=s.x)&&0<=s.y&&s.y<g)g=s.y,f=a}e=E.Lj(c,E.Li(E.Gd(e,c),g))}g=p;this.kd!=f+3&&(g=r,this.mf=this.wc=q,this.kd=0);if(!this.wc){h=this.kd=f+3;m=E.vd.BYTES_PER_ELEMENT;this.mf=new ArrayBuffer(h*m);n=[];for(a=0;a<h;a++)n[a]=new E.vd(q,q,q,this.mf,a*m);this.wc=n;if(!this.wc){E.log("cc.ProgressTimer._updateRadial() : Not enough memory");
  720. return}}this.$b();h=this.wc;if(!g){h[0].n=this.le(c);h[0].i=this.me(c);h[1].n=this.le(d);h[1].i=this.me(d);for(a=0;a<f;a++)c=this.OA(a),h[a+2].n=this.le(c),h[a+2].i=this.me(c)}h[this.kd-1].n=this.le(e);h[this.kd-1].i=this.me(e)}},bZ:function(){if(this.Yb){var a,c=this.ni/100,d=this.Jl,d=E.Li(L(1-d.x+c*d.x,1-d.y+c*d.y),0.5),c=E.Gd(this.kh,d),d=E.Lj(this.kh,d);0>c.x&&(d.x+=-c.x,c.x=0);1<d.x&&(c.x-=d.x-1,d.x=1);0>c.y&&(d.y+=-c.y,c.y=0);1<d.y&&(c.y-=d.y-1,d.y=1);if(this.Bd){if(!this.wc){this.kd=8;var e=
  721. E.vd.BYTES_PER_ELEMENT;this.mf=new ArrayBuffer(8*e);var f=[];for(a=0;8>a;a++)f[a]=new E.vd(q,q,q,this.mf,a*e);f[0].n=this.le(L(0,1));f[0].i=this.me(L(0,1));f[1].n=this.le(L(0,0));f[1].i=this.me(L(0,0));f[6].n=this.le(L(1,1));f[6].i=this.me(L(1,1));f[7].n=this.le(L(1,0));f[7].i=this.me(L(1,0));this.wc=f}a=this.wc;a[2].n=this.le(L(c.x,d.y));a[2].i=this.me(L(c.x,d.y));a[3].n=this.le(L(c.x,c.y));a[3].i=this.me(L(c.x,c.y));a[4].n=this.le(L(d.x,d.y));a[4].i=this.me(L(d.x,d.y));a[5].n=this.le(L(d.x,c.y));
  722. a[5].i=this.me(L(d.x,c.y))}else{if(!this.wc){this.kd=4;e=E.vd.BYTES_PER_ELEMENT;this.mf=new ArrayBuffer(4*e);this.wc=[];for(a=0;4>a;a++)this.wc[a]=new E.vd(q,q,q,this.mf,a*e)}a=this.wc;a[0].n=this.le(L(c.x,d.y));a[0].i=this.me(L(c.x,d.y));a[1].n=this.le(L(c.x,c.y));a[1].i=this.me(L(c.x,c.y));a[2].n=this.le(L(d.x,d.y));a[2].i=this.me(L(d.x,d.y));a[3].n=this.le(L(d.x,c.y));a[3].i=this.me(L(d.x,c.y))}this.$b()}},$b:function(){if(this.Yb&&this.wc){for(var a=this.Yb.quad.L.t,c=this.wc,d=0,e=this.kd;d<
  723. e;++d)c[d].t=a;this.Zr=p}},vD:q,dZ:function(){var a=this.Yb,c=a.width,d=a.height,e=this.kh;if(this.jc==E.Va.Wh){this.Ee=Math.round(Math.sqrt(c*c+d*d));var f,g=r,h=this.Cv;h.x=c*e.x;h.y=-d*e.y;this.Bd?(f=270,e=270-3.6*this.ni):(e=-90,f=-90+3.6*this.ni);a.Lb&&(h.x-=c*2*this.kh.x,e=-e-180,f=-f-180,g=!g);a.Mb&&(h.y+=d*2*this.kh.y,g=!g,e=-e,f=-f);this.gD=e;this.hB=f;this.$A=g}else{f=this.Jl;h=this.ni/100;g=this.KA;f=P(c*(1-f.x),d*(1-f.y));var h=P((c-f.width)*h,(d-f.height)*h),h=P(f.width+h.width,f.height+
  724. h.height),m=L(c*e.x,d*e.y);f=m.x-h.width/2;0.5<e.x&&h.width/2>=c-m.x&&(f=c-h.width);c=m.y-h.height/2;0.5<e.y&&h.height/2>=d-m.y&&(c=d-h.height);g.x=0;d=1;a.Lb&&(g.x-=h.width,d=-1);0<f&&(g.x+=f*d);g.y=0;d=1;a.Mb&&(g.y+=h.height,d=-1);0<c&&(g.y-=c*d);g.width=h.width;g.height=-h.height}},eZ:function(){var a=this.jc;a===E.Va.Wh?this.hZ():a===E.Va.Fl&&this.bZ();this.Zr=p}});G=E.Va.prototype;
  725. E.A==E.W?(G.ctor=G.Vq,G.FP=G.uY,G.ny=G.AY,G.hG=G.IY,G.$F=G.sY,G.ZN=G.rK,G.Z=G.cj,G.vD=G.eZ):(G.ctor=G.Uq,G.FP=G.tY,G.ny=G.zY,G.hG=G.HY,G.$F=G.rY,G.ZN=G.qK,G.Z=G.Ml,G.vD=E.Va.prototype.dZ);E.j(G,"midPoint",G.W0,G.M4);E.j(G,"barChangeRate",G.m0,G.q4);E.j(G,"type",G.LE,G.hG);E.j(G,"percentage",G.c1,G.R4);E.j(G,"sprite",G.AN,G.ny);E.j(G,"reverseDir",G.k2,G.$F);E.Va.create=function(a){return new E.Va(a)};E.Va.RH=4;E.Va.PT=75;E.Va.Wh=0;E.Va.Fl=1;E.vz=E.v.extend({jd:0,Mc:0,ctor:function(a,c){E.v.prototype.ctor.call(this);this.Mc=this.jd=0;c!==k&&this.e(a,c)},e:function(a,c){return E.v.prototype.e.call(this,a)?(this.jd=c,p):r},k:function(){var a=new E.vz;a.e(this.p,this.jd);return a},reverse:function(){E.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");return q},z:function(a){E.v.prototype.z.call(this,a);this.Mc=a.percentage;100==this.Mc&&(this.Mc=0)},update:function(a){this.target instanceof E.Va&&(this.target.percentage=this.Mc+
  726. (this.jd-this.Mc)*a)}});E.G3=function(a,c){return new E.vz(a,c)};E.vz.create=E.G3;
  727. E.Wt=E.v.extend({jd:0,Mc:0,ctor:function(a,c,d){E.v.prototype.ctor.call(this);this.Mc=this.jd=0;d!==k&&this.e(a,c,d)},e:function(a,c,d){return E.v.prototype.e.call(this,a)?(this.jd=d,this.Mc=c,p):r},k:function(){var a=new E.Wt;a.e(this.p,this.Mc,this.jd);return a},reverse:function(){return E.Wt.create(this.p,this.jd,this.Mc)},z:function(a){E.v.prototype.z.call(this,a)},update:function(a){this.target instanceof E.Va&&(this.target.percentage=this.Mc+(this.jd-this.Mc)*a)}});
  728. E.KO=function(a,c,d){return new E.Wt(a,c,d)};E.Wt.create=E.KO;E.tq=4208917214;E.f9=0;E.$j=1;E.ku=0;E.e9=1;
  729. E.da=E.Vh.extend({ka:q,eb:q,p:q,ih:r,AK:r,wb:"TransitionScene",ctor:function(a,c){E.Vh.prototype.ctor.call(this);a!==k&&c!==k&&this.e(a,c)},wL:function(){this.tG(this.wL);var a=E.B;this.AK=a.Kk;a.kl(this.ka);E.qa.qe(p);this.eb.visible=p},ti:function(){this.ih=p},Z:function(){this.ih?(this.eb.P(),this.ka.P()):(this.ka.P(),this.eb.P())},$:function(){E.m.prototype.$.call(this);E.qa.qe(r);this.eb.Tf();this.ka.$()},yb:function(){E.m.prototype.yb.call(this);E.qa.qe(p);this.eb.yb();this.ka.Nh()},Le:function(){E.m.prototype.Le.call(this);
  730. this.AK&&this.eb.Le()},e:function(a,c){c||b("cc.TransitionScene.initWithDuration(): Argument scene must be non-nil");return this.U()?(this.p=a,this.Ai({x:0,y:0,anchorX:0,anchorY:0}),this.ka=c,this.eb=E.B.$c,this.eb||(this.eb=E.Vh.create(),this.eb.U()),this.ka==this.eb&&b("cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"),this.ti(),p):r},finish:function(){this.ka.Ai({visible:p,x:0,y:0,scale:1,rotation:0});E.A===E.W&&this.ka.Km().restore();this.eb.Ai({visible:r,
  731. x:0,y:0,scale:1,rotation:0});E.A===E.W&&this.eb.Km().restore();this.dy(this.wL,0)},fx:function(){this.ka.visible=p;this.eb.visible=r}});E.da.create=function(a,c){return new E.da(a,c)};E.$e=E.da.extend({Yl:0,ctor:function(a,c,d){E.da.prototype.ctor.call(this);d!=k&&this.e(a,c,d)},e:function(a,c,d){E.da.prototype.e.call(this,a,c)&&(this.Yl=d);return p}});E.$e.create=function(a,c,d){return new E.$e(a,c,d)};
  732. E.rI=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);this.ka.Ai({scale:0.0010,anchorX:0.5,anchorY:0.5});this.eb.Ai({scale:1,anchorX:0.5,anchorY:0.5});var a=E.ya.create(E.ve.create(E.du.create(this.p/2,0.0010),E.Zt.create(this.p/2,720)),E.sd.create(this.p/2));this.eb.Sa(a);this.ka.Sa(E.ya.create(a.reverse(),E.Ab.create(this.finish,this)))}});E.rI.create=function(a,c){return new E.rI(a,c)};
  733. E.hI=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);var a=E.B.oa();this.ka.Ai({scale:0.5,x:a.width,y:0,anchorX:0.5,anchorY:0.5});this.eb.anchorX=0.5;this.eb.anchorY=0.5;var c=E.Wj.create(this.p/4,L(-a.width,0),a.width/4,2),d=E.td.create(this.p/4,1),a=E.td.create(this.p/4,0.5),a=E.ya.create(a,c),c=E.ya.create(c,d),d=E.sd.create(this.p/2);this.eb.Sa(a);this.ka.Sa(E.ya.create(d,c,E.Ab.create(this.finish,this)))}});
  734. E.hI.create=function(a,c){return new E.hI(a,c)};E.dk=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);this.Dj();var a=this.action();this.ka.Sa(E.ya.create(this.Of(a),E.Ab.create(this.finish,this)))},Dj:function(){this.ka.R(-E.B.oa().width,0)},action:function(){return E.rn.create(this.p,L(0,0))},Of:function(a){return E.vl.create(a,2)}});E.dk.create=function(a,c){return new E.dk(a,c)};
  735. E.jI=E.dk.extend({ctor:function(a,c){E.dk.prototype.ctor.call(this);c&&this.e(a,c)},Dj:function(){this.ka.R(E.B.oa().width,0)}});E.jI.create=function(a,c){return new E.jI(a,c)};E.kI=E.dk.extend({ctor:function(a,c){E.dk.prototype.ctor.call(this);c&&this.e(a,c)},Dj:function(){this.ka.R(0,E.B.oa().height)}});E.kI.create=function(a,c){return new E.kI(a,c)};E.iI=E.dk.extend({ctor:function(a,c){E.dk.prototype.ctor.call(this);c&&this.e(a,c)},Dj:function(){this.ka.R(0,-E.B.oa().height)}});
  736. E.iI.create=function(a,c){return new E.iI(a,c)};E.Uj=0.5;
  737. E.ek=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=r},$:function(){E.da.prototype.$.call(this);this.Dj();var a=this.action(),c=this.action(),a=this.Of(a),c=E.ya.create(this.Of(c),E.Ab.create(this.finish,this));this.ka.Sa(a);this.eb.Sa(c)},Dj:function(){this.ka.R(-E.B.oa().width+E.Uj,0)},action:function(){return E.Zg.create(this.p,L(E.B.oa().width-E.Uj,0))},Of:function(a){return E.vl.create(a,2)}});E.ek.create=function(a,c){return new E.ek(a,c)};
  738. E.uI=E.ek.extend({ctor:function(a,c){E.ek.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=p},Dj:function(){this.ka.R(E.B.oa().width-E.Uj,0)},action:function(){return E.Zg.create(this.p,L(-(E.B.oa().width-E.Uj),0))}});E.uI.create=function(a,c){return new E.uI(a,c)};
  739. E.tI=E.ek.extend({ctor:function(a,c){E.ek.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=r},Dj:function(){this.ka.R(0,-(E.B.oa().height-E.Uj))},action:function(){return E.Zg.create(this.p,L(0,E.B.oa().height-E.Uj))}});E.tI.create=function(a,c){return new E.tI(a,c)};
  740. E.vI=E.ek.extend({ctor:function(a,c){E.ek.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=p},Dj:function(){this.ka.R(0,E.B.oa().height-E.Uj)},action:function(){return E.Zg.create(this.p,L(0,-(E.B.oa().height-E.Uj)))}});E.vI.create=function(a,c){return new E.vI(a,c)};
  741. E.sI=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);this.ka.Ai({scale:0.0010,anchorX:2/3,anchorY:0.5});this.eb.Ai({scale:1,anchorX:1/3,anchorY:0.5});var a=E.td.create(this.p,0.01),c=E.td.create(this.p,1);this.ka.Sa(this.Of(c));this.eb.Sa(E.ya.create(this.Of(a),E.Ab.create(this.finish,this)))},Of:function(a){return E.vl.create(a,2)}});E.sI.create=function(a,c){return new E.sI(a,c)};
  742. E.fI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.$j;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl===E.$j?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.mg.create(),E.te.create(this.p/2,1,0,d,a,0,0),E.Ab.create(this.finish,this));c=E.ya.create(E.te.create(this.p/2,1,0,0,c,0,0),E.Th.create(),E.sd.create(this.p/2));this.ka.Sa(a);this.eb.Sa(c)}});
  743. E.fI.create=function(a,c,d){return new E.fI(a,c,d)};E.gI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.ku;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl==E.ku?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.mg.create(),E.te.create(this.p/2,1,0,d,a,90,0),E.Ab.create(this.finish,this));c=E.ya.create(E.te.create(this.p/2,1,0,0,c,90,0),E.Th.create(),E.sd.create(this.p/2));this.ka.Sa(a);this.eb.Sa(c)}});
  744. E.gI.create=function(a,c,d){return new E.gI(a,c,d)};E.eI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.$j;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl===E.$j?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.mg.create(),E.te.create(this.p/2,1,0,d,a,-45,0),E.Ab.create(this.finish,this));c=E.ya.create(E.te.create(this.p/2,1,0,0,c,45,0),E.Th.create(),E.sd.create(this.p/2));this.ka.Sa(a);this.eb.Sa(c)}});
  745. E.eI.create=function(a,c,d){return new E.eI(a,c,d)};
  746. E.zI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.$j;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl===E.$j?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.ve.create(E.te.create(this.p/2,1,0,d,a,0,0),E.td.create(this.p/2,1),E.mg.create()),E.Ab.create(this.finish,this));c=E.ya.create(E.ve.create(E.te.create(this.p/2,1,0,0,c,0,0),E.td.create(this.p/2,0.5)),E.Th.create(),E.sd.create(this.p/2));this.ka.scale=
  747. 0.5;this.ka.Sa(a);this.eb.Sa(c)}});E.zI.create=function(a,c,d){return new E.zI(a,c,d)};
  748. E.AI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.ku;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl===E.ku?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.ve.create(E.te.create(this.p/2,1,0,d,a,90,0),E.td.create(this.p/2,1),E.mg.create()),E.Ab.create(this.finish,this));c=E.ya.create(E.ve.create(E.te.create(this.p/2,1,0,0,c,90,0),E.td.create(this.p/2,0.5)),E.Th.create(),E.sd.create(this.p/2));
  749. this.ka.scale=0.5;this.ka.Sa(a);this.eb.Sa(c)}});E.AI.create=function(a,c,d){return new E.AI(a,c,d)};
  750. E.yI=E.$e.extend({ctor:function(a,c,d){E.$e.prototype.ctor.call(this);d=d||E.$j;c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a,c;this.ka.visible=r;var d;this.Yl===E.$j?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=E.ya.create(E.sd.create(this.p/2),E.ve.create(E.te.create(this.p/2,1,0,d,a,-45,0),E.td.create(this.p/2,1),E.mg.create()),E.mg.create(),E.Ab.create(this.finish,this));c=E.ya.create(E.ve.create(E.te.create(this.p/2,1,0,0,c,45,0),E.td.create(this.p/2,0.5)),E.Th.create(),E.sd.create(this.p/
  751. 2));this.ka.scale=0.5;this.ka.Sa(a);this.eb.Sa(c)}});E.yI.create=function(a,c,d){return new E.yI(a,c,d)};
  752. E.aI=E.da.extend({ce:q,ctor:function(a,c,d){E.da.prototype.ctor.call(this);this.ce=E.color();c&&this.e(a,c,d)},$:function(){E.da.prototype.$.call(this);var a=E.Uc.create(this.ce);this.ka.visible=r;this.T(a,2,E.tq);var a=this.Eh(E.tq),c=E.ya.create(E.jq.create(this.p/2),E.Ab.create(this.fx,this),E.xl.create(this.p/2),E.Ab.create(this.finish,this));a.Sa(c)},yb:function(){E.da.prototype.yb.call(this);this.IF(E.tq,r)},e:function(a,c,d){d=d||E.color.BLACK;E.da.prototype.e.call(this,a,c)&&(this.ce.r=d.r,
  753. this.ce.g=d.g,this.ce.b=d.b,this.ce.a=0);return p}});E.aI.create=function(a,c,d){return new E.aI(a,c,d)};
  754. E.$H=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);var a=E.color(0,0,0,0),c=E.B.oa(),a=E.Uc.create(a),d=E.tn.create(c.width,c.height);if(q!=d){d.sprite.anchorX=0.5;d.sprite.anchorY=0.5;d.Ai({x:c.width/2,y:c.height/2,anchorX:0.5,anchorY:0.5});d.Ah();this.ka.P();d.end();var e=E.tn.create(c.width,c.height);e.R(c.width/2,c.height/2);e.sprite.anchorX=e.anchorX=0.5;e.sprite.anchorY=e.anchorY=0.5;e.Ah();this.eb.P();e.end();d.sprite.Qe(E.ONE,
  755. E.ONE);e.sprite.Qe(E.SRC_ALPHA,E.ONE_MINUS_SRC_ALPHA);a.T(d);a.T(e);d.sprite.opacity=255;e.sprite.opacity=255;c=E.ya.create(E.Ui.create(this.p,0),E.Ab.create(this.fx,this),E.Ab.create(this.finish,this));e.sprite.Sa(c);this.T(a,2,E.tq)}},yb:function(){this.IF(E.tq,r);E.da.prototype.yb.call(this)},Z:t()});E.$H.create=function(a,c){return new E.$H(a,c)};
  756. E.xI=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=r},$:function(){E.da.prototype.$.call(this);var a=E.B.oa(),a=E.iA.create(this.p,P(0|12*(a.width/a.height),12)),a=this.Of(a);this.eb.Sa(E.ya.create(a,E.Ab.create(this.finish,this),E.Cl.create()))},Of:aa()});E.xI.create=function(a,c){return new E.xI(a,c)};
  757. E.nu=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},$:function(){E.da.prototype.$.call(this);this.ka.visible=r;var a=this.action(),a=E.ya.create(a,E.Ab.create(this.fx,this),a.reverse());this.Sa(E.ya.create(this.Of(a),E.Ab.create(this.finish,this),E.Cl.create()))},Of:function(a){return E.$p.create(a,3)},action:function(){return E.Pz.create(this.p/2,3)}});E.nu.create=function(a,c){return new E.nu(a,c)};
  758. E.wI=E.nu.extend({ctor:function(a,c){E.nu.prototype.ctor.call(this);c&&this.e(a,c)},action:function(){return E.Qz.create(this.p/2,3)}});E.wI.create=function(a,c){return new E.wI(a,c)};
  759. E.ck=E.da.extend({ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},ti:function(){this.ih=r},$:function(){E.da.prototype.$.call(this);var a=E.B.oa(),a=this.Ko(P(0|12*(a.width/a.height),12));this.eb.Sa(E.ya.create(this.Of(a),E.Ab.create(this.finish,this),E.Cl.create()))},Of:aa(),Ko:function(a){return E.kq.create(this.p,a)}});E.ck.create=function(a,c){return new E.ck(a,c)};
  760. E.bI=E.ck.extend({ctor:function(a,c){E.ck.prototype.ctor.call(this);c&&this.e(a,c)},Ko:function(a){return E.Xy.create(this.p,a)}});E.bI.create=function(a,c){return new E.bI(a,c)};E.dI=E.ck.extend({ctor:function(a,c){E.ck.prototype.ctor.call(this);c&&this.e(a,c)},Ko:function(a){return E.Ot.create(this.p,a)}});E.dI.create=function(a,c){return new E.dI(a,c)};E.cI=E.ck.extend({ctor:function(a,c){E.ck.prototype.ctor.call(this);c&&this.e(a,c)},Ko:function(a){return E.Yy.create(this.p,a)}});
  761. E.cI.create=function(a,c){return new E.cI(a,c)};E.JH=49153;
  762. E.Ze=E.da.extend({jd:0,Mc:0,Tv:q,wb:"TransitionProgress",ctor:function(a,c){E.da.prototype.ctor.call(this);c&&this.e(a,c)},em:function(a,c,d){a.Ai({x:c,y:d,anchorX:0.5,anchorY:0.5})},$:function(){E.da.prototype.$.call(this);this.CL();var a=E.B.oa(),c=E.tn.create(a.width,a.height);c.sprite.anchorX=0.5;c.sprite.anchorY=0.5;this.em(c,a.width/2,a.height/2);c.clear(0,0,0,1);c.Ah();this.Tv.P();c.end();this.Tv==this.eb&&this.fx();a=this.$l(c);c=E.iP(E.KO(this.p,this.Mc,this.jd),E.sM(this.finish,this));a.Sa(c);
  763. this.T(a,2,E.JH)},yb:function(){this.IF(E.JH,p);E.da.prototype.yb.call(this)},CL:function(){this.Tv=this.eb;this.Mc=100;this.jd=0},$l:function(){E.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");return q},ti:function(){this.ih=r}});E.Ze.create=function(a,c){return new E.Ze(a,c)};
  764. E.pI=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Wh;a.reverseDir=r;a.percentage=100;this.em(a,c.width/2,c.height/2);return a}});E.pI.create=function(a,c){return new E.pI(a,c)};
  765. E.hA=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Wh;a.reverseDir=p;a.percentage=100;this.em(a,c.width/2,c.height/2);return a}});E.hA.create=function(a,c){var d=new E.hA;return d!=q&&d.e(a,c)?d:new E.hA(a,c)};
  766. E.mI=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Fl;a.midPoint=L(1,0);a.barChangeRate=L(1,0);a.percentage=100;this.em(a,c.width/2,c.height/2);return a}});E.mI.create=function(a,c){return new E.mI(a,c)};
  767. E.qI=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Fl;a.midPoint=L(0,0);a.barChangeRate=L(0,1);a.percentage=100;this.em(a,c.width/2,c.height/2);return a}});E.qI.create=function(a,c){return new E.qI(a,c)};
  768. E.nI=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Fl;a.midPoint=L(0.5,0.5);a.barChangeRate=L(1,1);a.percentage=0;this.em(a,c.width/2,c.height/2);return a},ti:function(){this.ih=r},CL:function(){this.Tv=this.ka;this.Mc=0;this.jd=100}});E.nI.create=function(a,c){return new E.nI(a,c)};
  769. E.oI=E.Ze.extend({ctor:function(a,c){E.Ze.prototype.ctor.call(this);c&&this.e(a,c)},$l:function(a){var c=E.B.oa();a=E.Va.create(a.sprite);E.A===E.W&&(a.sprite.flippedY=p);a.type=E.Va.Fl;a.midPoint=L(0.5,0.5);a.barChangeRate=L(1,1);a.percentage=100;this.em(a,c.width/2,c.height/2);return a}});E.oI.create=function(a,c){return new E.oI(a,c)};E.lI=E.da.extend({ctor:function(a,c,d){E.da.prototype.ctor.call(this);this.e(a,c,d)},Cu:p,wb:"TransitionPageTurn",e:function(a,c,d){this.Cu=d;E.da.prototype.e.call(this,a,c);return p},Ko:function(a){return this.Cu?E.sq.create(E.Vt.create(this.p,a)):E.Vt.create(this.p,a)},$:function(){E.da.prototype.$.call(this);var a=E.B.oa(),c;a.width>a.height?(a=16,c=12):(a=12,c=16);a=this.Ko(P(a,c));this.Cu?(this.ka.visible=r,this.ka.Sa(E.ya.create(E.mg.create(),a,E.Ab.create(this.finish,this),E.Cl.create()))):
  770. this.eb.Sa(E.ya.create(a,E.Ab.create(this.finish,this),E.Cl.create()))},ti:function(){this.ih=this.Cu}});E.lI.create=function(a,c,d){return new E.lI(a,c,d)};E.ia={name:"Jacob__Codec"};E.q6=function(){return E.ia.Fa.bx.apply(E.ia.Fa,arguments)};E.r6=function(){var a=E.ia.tl.GM.apply(E.ia.tl,arguments);return E.ia.Fa.bx.apply(E.ia.Fa,[a])};E.hQ=function(a,c){c=c||1;var d=this.r6(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++){e[f]=0;for(g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g}return e};E.yla=function(a,c){c=c||1;var d=this.q6(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++){e[f]=0;for(g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g}return e};
  771. E.Q8=function(a){a=a.split(",");var c=[],d;for(d=0;d<a.length;d++)c.push(parseInt(a[d]));return c};E.ia.tl={name:"Jacob__Codec__Base64"};E.ia.tl.pv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  772. E.ia.tl.GM=function(a){var c=[],d,e,f,g,h,m=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");m<a.length;)d=this.pv.indexOf(a.charAt(m++)),e=this.pv.indexOf(a.charAt(m++)),g=this.pv.indexOf(a.charAt(m++)),h=this.pv.indexOf(a.charAt(m++)),d=d<<2|e>>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|h,c.push(String.fromCharCode(d)),64!=g&&c.push(String.fromCharCode(e)),64!=h&&c.push(String.fromCharCode(f));return c=c.join("")};
  773. E.ia.tl.HM=function(a,c){var d=this.GM(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++){e[f]=0;for(g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g}return e};E.n6=function(a){if(0!=a.length%4)return q;for(var c=a.length/4,d=window.p9?new Uint32Array(c):[],e=0;e<c;e++){var f=4*e;d[e]=a[f]+256*a[f+1]+65536*a[f+2]+16777216*a[f+3]}return d};E.ia.Fa=function(a){this.data=a;this.debug=r;this.Cj=k;this.files=0;this.xy=[];this.SD=Array(32768);this.zh=0;this.Ix=r;this.rM=0;this.Bi=1;this.Oo=0;this.op=[];this.XM=k;this.Ds=Array(E.ia.Fa.TR);this.Bm=Array(32);this.nt=0;this.tz=q;this.Mh=0;this.Zo=Array(17);this.Zo[0]=0;this.bN=this.$M=k};E.ia.Fa.bx=function(a){return(new E.ia.Fa(a)).bx()[0][0]};E.ia.Fa.bz=function(){this.Aw=this.zw=0;this.jF=q;this.s2=-1};E.ia.Fa.TR=288;E.ia.Fa.lH=256;
  774. E.ia.Fa.PD=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,
  775. 81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,3,131,67,195,35,163,99,227,19,147,83,211,51,179,115,243,11,139,75,203,43,171,107,235,27,155,91,219,59,187,123,251,7,135,71,199,39,167,103,231,23,151,87,215,55,183,119,247,15,143,79,207,47,175,111,239,31,159,95,223,63,191,127,255];
  776. E.ia.Fa.DM=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0];E.ia.Fa.EM=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99];E.ia.Fa.CM=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];E.ia.Fa.Uo=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];E.ia.Fa.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
  777. E.ia.Fa.prototype.bx=function(){this.Rs=[];ka(this);return this.xy};E.ia.Fa.prototype.O=function(){this.Oo+=8;return this.rM<this.data.length?this.data.charCodeAt(this.rM++):-1};function la(a){var c;a.Oo++;c=a.Bi&1;a.Bi>>=1;0==a.Bi&&(a.Bi=a.O(),c=a.Bi&1,a.Bi=a.Bi>>1|128);return c}function X(a,c){for(var d=0,e=c;e--;)d=d<<1|la(a);c&&(d=E.ia.Fa.PD[d]>>8-c);return d}function na(a,c){a.SD[a.zh++]=c;a.Rs.push(String.fromCharCode(c));32768==a.zh&&(a.zh=0)}
  778. function ra(a){for(;;){if(a.Zo[a.Mh]>=a.bN)return-1;if(a.$M[a.Zo[a.Mh]]==a.Mh)return a.Zo[a.Mh]++;a.Zo[a.Mh]++}}function sa(a){var c=a.tz[a.nt],d;if(17==a.Mh)return-1;a.nt++;a.Mh++;d=ra(a);if(0<=d)c.zw=d;else if(c.zw=32768,sa(a))return-1;d=ra(a);if(0<=d)c.Aw=d,c.jF=q;else if(c.Aw=32768,c.jF=a.tz[a.nt],c.s2=a.nt,sa(a))return-1;a.Mh--;return 0}function ta(a,c,d,e){a.tz=c;a.nt=0;a.$M=e;a.bN=d;for(c=0;17>c;c++)a.Zo[c]=0;a.Mh=0;return sa(a)?-1:0}
  779. function ua(a,c){for(var d,e,f=0,g=c[f];;)if(d=la(a)){if(!(g.Aw&32768))return g.Aw;g=g.jF;d=c.length;for(e=0;e<d;e++)if(c[e]===g){f=e;break}}else{if(!(g.zw&32768))return g.zw;f++;g=c[f]}return-1}
  780. function va(a){var c,d,e,f,g;do if(c=la(a),e=X(a,2),0==e){a.Bi=1;e=a.O();e|=a.O()<<8;d=a.O();d|=a.O()<<8;for((e^~d)&65535&&document.write("BlockLen checksum mismatch\n");e--;)d=a.O(),na(a,d)}else if(1==e)for(;;)if(e=E.ia.Fa.PD[X(a,7)]>>1,23<e?(e=e<<1|la(a),199<e?(e-=128,e=e<<1|la(a)):(e-=48,143<e&&(e+=136))):e+=256,256>e)na(a,e);else if(256==e)break;else{var h;e-=257;g=X(a,E.ia.Fa.EM[e])+E.ia.Fa.DM[e];e=E.ia.Fa.PD[X(a,5)]>>3;8<E.ia.Fa.Uo[e]?(h=X(a,8),h|=X(a,E.ia.Fa.Uo[e]-8)<<8):h=X(a,E.ia.Fa.Uo[e]);
  781. h+=E.ia.Fa.CM[e];for(e=0;e<g;e++)d=a.SD[a.zh-h&32767],na(a,d)}else if(2==e){var m=Array(320);d=257+X(a,5);h=1+X(a,5);f=4+X(a,4);for(e=0;19>e;e++)m[e]=0;for(e=0;e<f;e++)m[E.ia.Fa.border[e]]=X(a,3);g=a.Bm.length;for(f=0;f<g;f++)a.Bm[f]=new E.ia.Fa.bz;if(ta(a,a.Bm,19,m)){a.zh=0;return}g=d+h;f=0;for(var n=-1;f<g;)if(n++,e=ua(a,a.Bm),16>e)m[f++]=e;else if(16==e){var s;e=3+X(a,2);if(f+e>g){a.zh=0;return}for(s=f?m[f-1]:0;e--;)m[f++]=s}else{e=17==e?3+X(a,3):11+X(a,7);if(f+e>g){a.zh=0;return}for(;e--;)m[f++]=
  782. 0}g=a.Ds.length;for(f=0;f<g;f++)a.Ds[f]=new E.ia.Fa.bz;if(ta(a,a.Ds,d,m)){a.zh=0;return}g=a.Ds.length;for(f=0;f<g;f++)a.Bm[f]=new E.ia.Fa.bz;e=[];for(f=d;f<m.length;f++)e[f-d]=m[f];if(ta(a,a.Bm,h,e)){a.zh=0;return}for(;;)if(e=ua(a,a.Ds),256<=e){e-=256;if(0==e)break;e--;g=X(a,E.ia.Fa.EM[e])+E.ia.Fa.DM[e];e=ua(a,a.Bm);8<E.ia.Fa.Uo[e]?(h=X(a,8),h|=X(a,E.ia.Fa.Uo[e]-8)<<8):h=X(a,E.ia.Fa.Uo[e]);for(h+=E.ia.Fa.CM[e];g--;)d=a.SD[a.zh-h&32767],na(a,d)}else na(a,e)}while(!c);a.zh=0;a.Bi=1}
  783. function ka(a){a.Rs=[];a.Ix=r;var c=[];c[0]=a.O();c[1]=a.O();120==c[0]&&218==c[1]&&(va(a),a.xy[a.files]=[a.Rs.join(""),"geonext.gxt"],a.files++);31==c[0]&&139==c[1]&&(wa(a),a.xy[a.files]=[a.Rs.join(""),"file"],a.files++);if(80==c[0]&&75==c[1]&&(a.Ix=p,c[2]=a.O(),c[3]=a.O(),3==c[2]&&4==c[3])){c[0]=a.O();c[1]=a.O();a.Cj=a.O();a.Cj|=a.O()<<8;c=a.O();c|=a.O()<<8;a.O();a.O();a.O();a.O();a.O();a.O();a.O();a.O();a.O();a.O();a.O();a.O();var d=a.O(),d=d|a.O()<<8,e=a.O(),e=e|a.O()<<8,f=0;for(a.op=[];d--;){var g=
  784. a.O();"/"==g|":"==g?f=0:f<E.ia.Fa.lH-1&&(a.op[f++]=String.fromCharCode(g))}a.XM||(a.XM=a.op);for(var f=0;f<e;)a.O(),f++;8==c&&(va(a),a.xy[a.files]=[a.Rs.join(""),a.op.join("")],a.files++);wa(a)}}
  785. function wa(a){var c=[],d;a.Cj&8&&(c[0]=a.O(),c[1]=a.O(),c[2]=a.O(),c[3]=a.O(),a.O(),a.O(),a.O(),a.O(),a.O(),a.O(),a.O(),a.O());a.Ix&&ka(a);c[0]=a.O();if(8==c[0]){a.Cj=a.O();a.O();a.O();a.O();a.O();a.O();a.O();if(a.Cj&4){c[0]=a.O();c[2]=a.O();a.Mh=c[0]+256*c[1];for(c=0;c<a.Mh;c++)a.O()}if(a.Cj&8){c=0;for(a.op=[];d=a.O();){if("7"==d||":"==d)c=0;c<E.ia.Fa.lH-1&&(a.op[c++]=d)}}if(a.Cj&16)for(;a.O(););a.Cj&2&&(a.O(),a.O());va(a);a.O();a.O();a.O();a.O();a.Ix&&ka(a)}};/*
  786. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  787. (function(){function a(a){b(a)}function c(a,c){var d=a.split("."),e=N;!(d[0]in e)&&e.execScript&&e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)!d.length&&c!==O?e[f]=c:e=e[f]?e[f]:e[f]={}}function d(a){if("string"===typeof a){a=a.split("");var c,d;c=0;for(d=a.length;c<d;c++)a[c]=(a[c].charCodeAt(0)&255)>>>0}c=1;d=0;for(var e=a.length,f,g=0;0<e;){f=1024<e?1024:e;e-=f;do c+=a[g++],d+=c;while(--f);c%=65521;d%=65521}return(d<<16|c)>>>0}function e(c,d){this.index="number"===typeof d?d:0;
  788. this.xs=0;this.buffer=c instanceof(I?Uint8Array:Array)?c:new (I?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&a(Error("invalid index"));this.buffer.length<=this.index&&this.Ch()}function f(a){this.buffer=new (I?Uint16Array:Array)(2*a);this.length=0}function g(a){var c=a.length,d=0,e=Number.POSITIVE_INFINITY,f,g,h,m,n,s,v,w,x;for(w=0;w<c;++w)a[w]>d&&(d=a[w]),a[w]<e&&(e=a[w]);f=1<<d;g=new (I?Uint32Array:Array)(f);h=1;m=0;for(n=2;h<=d;){for(w=0;w<c;++w)if(a[w]===h){s=0;v=m;for(x=0;x<h;++x)s=
  789. s<<1|v&1,v>>=1;for(x=s;x<f;x+=n)g[x]=h<<16|w;++m}++h;m<<=1;n<<=1}return[g,d,e]}function h(a,c){this.hp=ba;this.G=0;this.input=a;this.b=0;c&&(c.T2&&(this.G=c.T2),"number"===typeof c.dE&&(this.hp=c.dE),c.Px&&(this.a=I&&c.Px instanceof Array?new Uint8Array(c.Px):c.Px),"number"===typeof c.j3&&(this.b=c.j3));this.a||(this.a=new (I?Uint8Array:Array)(32768))}function m(a,c){this.length=a;this.uR=c}function n(){var c=$;switch(R){case 3===c:return[257,c-3,0];case 4===c:return[258,c-4,0];case 5===c:return[259,
  790. c-5,0];case 6===c:return[260,c-6,0];case 7===c:return[261,c-7,0];case 8===c:return[262,c-8,0];case 9===c:return[263,c-9,0];case 10===c:return[264,c-10,0];case 12>=c:return[265,c-11,1];case 14>=c:return[266,c-13,1];case 16>=c:return[267,c-15,1];case 18>=c:return[268,c-17,1];case 22>=c:return[269,c-19,2];case 26>=c:return[270,c-23,2];case 30>=c:return[271,c-27,2];case 34>=c:return[272,c-31,2];case 42>=c:return[273,c-35,3];case 50>=c:return[274,c-43,3];case 58>=c:return[275,c-51,3];case 66>=c:return[276,
  791. c-59,3];case 82>=c:return[277,c-67,4];case 98>=c:return[278,c-83,4];case 114>=c:return[279,c-99,4];case 130>=c:return[280,c-115,4];case 162>=c:return[281,c-131,5];case 194>=c:return[282,c-163,5];case 226>=c:return[283,c-195,5];case 257>=c:return[284,c-227,5];case 258===c:return[285,c-258,0];default:a("invalid length: "+c)}}function s(c,d){function e(c,d){var f=c.uR,g=[],h=0,m;m=ea[c.length];g[h++]=m&65535;g[h++]=m>>16&255;g[h++]=m>>24;var n;switch(R){case 1===f:n=[0,f-1,0];break;case 2===f:n=[1,f-
  792. 2,0];break;case 3===f:n=[2,f-3,0];break;case 4===f:n=[3,f-4,0];break;case 6>=f:n=[4,f-5,1];break;case 8>=f:n=[5,f-7,1];break;case 12>=f:n=[6,f-9,2];break;case 16>=f:n=[7,f-13,2];break;case 24>=f:n=[8,f-17,3];break;case 32>=f:n=[9,f-25,3];break;case 48>=f:n=[10,f-33,4];break;case 64>=f:n=[11,f-49,4];break;case 96>=f:n=[12,f-65,5];break;case 128>=f:n=[13,f-97,5];break;case 192>=f:n=[14,f-129,6];break;case 256>=f:n=[15,f-193,6];break;case 384>=f:n=[16,f-257,7];break;case 512>=f:n=[17,f-385,7];break;
  793. case 768>=f:n=[18,f-513,8];break;case 1024>=f:n=[19,f-769,8];break;case 1536>=f:n=[20,f-1025,9];break;case 2048>=f:n=[21,f-1537,9];break;case 3072>=f:n=[22,f-2049,10];break;case 4096>=f:n=[23,f-3073,10];break;case 6144>=f:n=[24,f-4097,11];break;case 8192>=f:n=[25,f-6145,11];break;case 12288>=f:n=[26,f-8193,12];break;case 16384>=f:n=[27,f-12289,12];break;case 24576>=f:n=[28,f-16385,13];break;case 32768>=f:n=[29,f-24577,13];break;default:a("invalid distance")}m=n;g[h++]=m[0];g[h++]=m[1];g[h++]=m[2];
  794. f=0;for(h=g.length;f<h;++f)x[y++]=g[f];C[g[0]]++;D[g[3]]++;z=c.length+d-1;w=q}var f,g,h,n,s,v={},w,x=I?new Uint16Array(2*d.length):[],y=0,z=0,C=new (I?Uint32Array:Array)(286),D=new (I?Uint32Array:Array)(30),J=c.G,F;if(!I){for(h=0;285>=h;)C[h++]=0;for(h=0;29>=h;)D[h++]=0}C[256]=1;f=0;for(g=d.length;f<g;++f){h=s=0;for(n=3;h<n&&f+h!==g;++h)s=s<<8|d[f+h];v[s]===O&&(v[s]=[]);h=v[s];if(!(0<z--)){for(;0<h.length&&32768<f-h[0];)h.shift();if(f+3>=g){w&&e(w,-1);h=0;for(n=g-f;h<n;++h)F=d[f+h],x[y++]=F,++C[F];
  795. break}if(0<h.length){s=n=O;var K=0,M=O,N=O,V=M=O,S=d.length,N=0,V=h.length;a:for(;N<V;N++){n=h[V-N-1];M=3;if(3<K){for(M=K;3<M;M--)if(d[n+M-1]!==d[f+M-1])continue a;M=K}for(;258>M&&f+M<S&&d[n+M]===d[f+M];)++M;M>K&&(s=n,K=M);if(258===M)break}n=new m(K,f-s);w?w.length<n.length?(F=d[f-1],x[y++]=F,++C[F],e(n,0)):e(w,-1):n.length<J?w=n:e(n,0)}else w?e(w,-1):(F=d[f],x[y++]=F,++C[F])}h.push(f)}x[y++]=256;C[256]++;c.PR=C;c.HR=D;return I?x.subarray(0,y):x}function v(a,c){function d(a){var c=x[a][y[a]];c===
  796. v?(d(a+1),d(a+1)):--w[c];++y[a]}var e=a.length,g=new f(572),h=new (I?Uint8Array:Array)(e),m,n,s;if(!I)for(n=0;n<e;n++)h[n]=0;for(n=0;n<e;++n)0<a[n]&&g.push(n,a[n]);e=Array(g.length/2);m=new (I?Uint32Array:Array)(g.length/2);if(1===e.length)return h[g.pop().index]=1,h;n=0;for(s=g.length/2;n<s;++n)e[n]=g.pop(),m[n]=e[n].value;var v=m.length;n=new (I?Uint16Array:Array)(c);var g=new (I?Uint8Array:Array)(c),w=new (I?Uint8Array:Array)(v);s=Array(c);var x=Array(c),y=Array(c),z=(1<<c)-v,C=1<<c-1,D,F,K;n[c-
  797. 1]=v;for(D=0;D<c;++D)z<C?g[D]=0:(g[D]=1,z-=C),z<<=1,n[c-2-D]=(n[c-1-D]/2|0)+v;n[0]=g[0];s[0]=Array(n[0]);x[0]=Array(n[0]);for(D=1;D<c;++D)n[D]>2*n[D-1]+g[D]&&(n[D]=2*n[D-1]+g[D]),s[D]=Array(n[D]),x[D]=Array(n[D]);for(z=0;z<v;++z)w[z]=c;for(C=0;C<n[c-1];++C)s[c-1][C]=m[C],x[c-1][C]=C;for(z=0;z<c;++z)y[z]=0;1===g[c-1]&&(--w[0],++y[c-1]);for(D=c-2;0<=D;--D){F=z=0;K=y[D+1];for(C=0;C<n[D];C++)F=s[D+1][K]+s[D+1][K+1],F>m[z]?(s[D][C]=F,x[D][C]=v,K+=2):(s[D][C]=m[z],x[D][C]=z,++z);y[D]=0;1===g[D]&&d(D)}m=
  798. w;n=0;for(s=e.length;n<s;++n)h[e[n].index]=m[n];return h}function w(c){var d=new (I?Uint16Array:Array)(c.length),e=[],f=[],g=0,h,m,n;h=0;for(m=c.length;h<m;h++)e[c[h]]=(e[c[h]]|0)+1;h=1;for(m=16;h<=m;h++)f[h]=g,g+=e[h]|0,g>1<<h&&a("overcommitted"),g<<=1;65536>g&&a("undercommitted");h=0;for(m=c.length;h<m;h++){g=f[c[h]];f[c[h]]+=1;e=d[h]=0;for(n=c[h];e<n;e++)d[h]=d[h]<<1|g&1,g>>>=1}return d}function y(a,c){this.input=a;this.a=new (I?Uint8Array:Array)(32768);this.hp=V.rx;var d={},e;if((c||!(c={}))&&
  799. "number"===typeof c.dE)this.hp=c.dE;for(e in c)d[e]=c[e];d.Px=this.a;this.d=new h(this.input,d)}function x(c,d){this.sx=[];this.Cx=32768;this.Dg=this.g=this.C=this.Vx=0;this.input=I?new Uint8Array(c):c;this.NF=r;this.Gx=oa;this.JG=r;if(d||!(d={}))d.index&&(this.C=d.index),d.TD&&(this.Cx=d.TD),d.UD&&(this.Gx=d.UD),d.$s&&(this.JG=d.$s);switch(this.Gx){case xa:this.b=32768;this.a=new (I?Uint8Array:Array)(32768+this.Cx+258);break;case oa:this.b=0;this.a=new (I?Uint8Array:Array)(this.Cx);this.Ch=this.GR;
  800. this.oG=this.wR;this.Kx=this.AR;break;default:a(Error("invalid inflate mode"))}}function z(c,d){for(var e=c.g,f=c.Dg,g=c.input,h=c.C,m;f<d;)m=g[h++],m===O&&a(Error("input buffer is broken")),e|=m<<f,f+=8;c.g=e>>>d;c.Dg=f-d;c.C=h;return e&(1<<d)-1}function C(c,d){for(var e=c.g,f=c.Dg,g=c.input,h=c.C,m=d[0],n=d[1],s;f<n;)s=g[h++],s===O&&a(Error("input buffer is broken")),e|=s<<f,f+=8;g=m[e&(1<<n)-1];m=g>>>16;c.g=e>>m;c.Dg=f-m;c.C=h;return g&65535}function J(a){function c(a,d,e){var f,g,h,m;for(m=0;m<
  801. a;)switch(f=C(this,d),f){case 16:for(h=3+z(this,2);h--;)e[m++]=g;break;case 17:for(h=3+z(this,3);h--;)e[m++]=0;g=0;break;case 18:for(h=11+z(this,7);h--;)e[m++]=0;g=0;break;default:g=e[m++]=f}return e}var d=z(a,5)+257,e=z(a,5)+1,f=z(a,4)+4,h=new (I?Uint8Array:Array)(Aa.length),m;for(m=0;m<f;++m)h[Aa[m]]=z(a,3);f=g(h);h=new (I?Uint8Array:Array)(d);m=new (I?Uint8Array:Array)(e);a.Kx(g(c.call(a,d,f,h)),g(c.call(a,e,f,m)))}function F(c,d){var e,f;this.input=c;this.C=0;if(d||!(d={}))d.index&&(this.C=d.index),
  802. d.mQ&&(this.YR=d.mQ);e=c[this.C++];f=c[this.C++];switch(e&15){case ma:this.method=ma;break;default:a(Error("unsupported compression method"))}0!==((e<<8)+f)%31&&a(Error("invalid fcheck flag:"+((e<<8)+f)%31));f&32&&a(Error("fdict flag is not supported"));this.CG=new x(c,{index:this.C,TD:d.TD,UD:d.UD,$s:d.$s})}var O=k,R=p,N=this,I="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;e.prototype.Ch=function(){var a=this.buffer,c,d=a.length,e=new (I?Uint8Array:
  803. Array)(d<<1);if(I)e.set(a);else for(c=0;c<d;++c)e[c]=a[c];return this.buffer=e};e.prototype.J=function(a,c,d){var e=this.buffer,f=this.index,g=this.xs,h=e[f];d&&1<c&&(a=8<c?(T[a&255]<<24|T[a>>>8&255]<<16|T[a>>>16&255]<<8|T[a>>>24&255])>>32-c:T[a]>>8-c);if(8>c+g)h=h<<c|a,g+=c;else for(d=0;d<c;++d)h=h<<1|a>>c-d-1&1,8===++g&&(g=0,e[f++]=T[h],h=0,f===e.length&&(e=this.Ch()));e[f]=h;this.buffer=e;this.xs=g;this.index=f};e.prototype.finish=function(){var a=this.buffer,c=this.index,d;0<this.xs&&(a[c]<<=
  804. 8-this.xs,a[c]=T[a[c]],c++);I?d=a.subarray(0,c):(a.length=c,d=a);return d};var K=new (I?Uint8Array:Array)(256),D;for(D=0;256>D;++D){for(var M=D,S=M,U=7,M=M>>>1;M;M>>>=1)S<<=1,S|=M&1,--U;K[D]=(S<<U&255)>>>0}var T=K,K=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,
  805. 335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,
  806. 3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,
  807. 2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,
  808. 2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,
  809. 2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];I&&new Uint32Array(K);f.prototype.getParent=function(a){return 2*((a-2)/
  810. 4|0)};f.prototype.push=function(a,c){var d,e,f=this.buffer,g;d=this.length;f[this.length++]=c;for(f[this.length++]=a;0<d;)if(e=this.getParent(d),f[d]>f[e])g=f[d],f[d]=f[e],f[e]=g,g=f[d+1],f[d+1]=f[e+1],f[e+1]=g,d=e;else break;return this.length};f.prototype.pop=function(){var a,c,d=this.buffer,e,f,g;c=d[0];a=d[1];this.length-=2;d[0]=d[this.length];d[1]=d[this.length+1];for(g=0;;){f=2*g+2;if(f>=this.length)break;f+2<this.length&&d[f+2]>d[f]&&(f+=2);if(d[f]>d[g])e=d[g],d[g]=d[f],d[f]=e,e=d[g+1],d[g+
  811. 1]=d[f+1],d[f+1]=e;else break;g=f}return{index:a,value:c,length:this.length}};var ba=2,K={NONE:0,r:1,rx:ba,p8:3},Y=[];for(D=0;288>D;D++)switch(R){case 143>=D:Y.push([D+48,8]);break;case 255>=D:Y.push([D-144+400,9]);break;case 279>=D:Y.push([D-256+0,7]);break;case 287>=D:Y.push([D-280+192,8]);break;default:a("invalid literal: "+D)}h.prototype.fl=function(){var c,d,f,g,h=this.input;switch(this.hp){case 0:f=0;for(g=h.length;f<g;){d=I?h.subarray(f,f+65535):h.slice(f,f+65535);f+=d.length;var m=f===g,n=
  812. O,x=n=O,x=n=O,y=this.a,z=this.b;if(I){for(y=new Uint8Array(this.a.buffer);y.length<=z+d.length+5;)y=new Uint8Array(y.length<<1);y.set(this.a)}n=m?1:0;y[z++]=n|0;n=d.length;x=~n+65536&65535;y[z++]=n&255;y[z++]=n>>>8&255;y[z++]=x&255;y[z++]=x>>>8&255;if(I)y.set(d,z),z+=d.length,y=y.subarray(0,z);else{n=0;for(x=d.length;n<x;++n)y[z++]=d[n];y.length=z}this.b=z;this.a=y}break;case 1:f=new e(new Uint8Array(this.a.buffer),this.b);f.J(1,1,R);f.J(1,2,R);h=s(this,h);d=0;for(m=h.length;d<m;d++)if(g=h[d],e.prototype.J.apply(f,
  813. Y[g]),256<g)f.J(h[++d],h[++d],R),f.J(h[++d],5),f.J(h[++d],h[++d],R);else if(256===g)break;this.a=f.finish();this.b=this.a.length;break;case ba:g=new e(new Uint8Array(this.a),this.b);var C,D,F,K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M,J,n=Array(19),Q,y=ba;g.J(1,1,R);g.J(y,2,R);h=s(this,h);x=v(this.PR,15);M=w(x);y=v(this.HR,7);z=w(y);for(C=286;257<C&&0===x[C-1];C--);for(D=30;1<D&&0===y[D-1];D--);var N=C,V=D;c=new (I?Uint32Array:Array)(N+V);var S=new (I?Uint32Array:Array)(316),T,U;J=new (I?
  814. Uint8Array:Array)(19);for(Q=F=0;Q<N;Q++)c[F++]=x[Q];for(Q=0;Q<V;Q++)c[F++]=y[Q];if(!I){Q=0;for(V=J.length;Q<V;++Q)J[Q]=0}Q=T=0;for(V=c.length;Q<V;Q+=F){for(F=1;Q+F<V&&c[Q+F]===c[Q];++F);N=F;if(0===c[Q])if(3>N)for(;0<N--;)S[T++]=0,J[0]++;else for(;0<N;)U=138>N?N:138,U>N-3&&U<N&&(U=N-3),10>=U?(S[T++]=17,S[T++]=U-3,J[17]++):(S[T++]=18,S[T++]=U-11,J[18]++),N-=U;else if(S[T++]=c[Q],J[c[Q]]++,N--,3>N)for(;0<N--;)S[T++]=c[Q],J[c[Q]]++;else for(;0<N;)U=6>N?N:6,U>N-3&&U<N&&(U=N-3),S[T++]=16,S[T++]=U-3,J[16]++,
  815. N-=U}c=I?S.subarray(0,T):S.slice(0,T);J=v(J,7);for(Q=0;19>Q;Q++)n[Q]=J[K[Q]];for(F=19;4<F&&0===n[F-1];F--);K=w(J);g.J(C-257,5,R);g.J(D-1,5,R);g.J(F-4,4,R);for(Q=0;Q<F;Q++)g.J(n[Q],3,R);Q=0;for(n=c.length;Q<n;Q++)if(d=c[Q],g.J(K[d],J[d],R),16<=d){Q++;switch(d){case 16:m=2;break;case 17:m=3;break;case 18:m=7;break;default:a("invalid code: "+d)}g.J(c[Q],m,R)}m=[M,x];z=[z,y];d=m[0];m=m[1];y=z[0];M=z[1];z=0;for(n=h.length;z<n;++z)if(f=h[z],g.J(d[f],m[f],R),256<f)g.J(h[++z],h[++z],R),x=h[++z],g.J(y[x],
  816. M[x],R),g.J(h[++z],h[++z],R);else if(256===f)break;this.a=g.finish();this.b=this.a.length;break;default:a("invalid compression type")}return this.a};D=[];var $;for($=3;258>=$;$++)M=n(),D[$]=M[2]<<24|M[1]<<16|M[0];var ea=I?new Uint32Array(D):D,V=K;y.prototype.fl=function(){var c,e,f,g,h=0;g=this.a;c=ma;switch(c){case ma:e=Math.LOG2E*Math.log(32768)-8;break;default:a(Error("invalid compression method"))}e=e<<4|c;g[h++]=e;switch(c){case ma:switch(this.hp){case V.NONE:f=0;break;case V.r:f=1;break;case V.rx:f=
  817. 2;break;default:a(Error("unsupported compression type"))}break;default:a(Error("invalid compression method"))}c=f<<6|0;g[h++]=c|31-(256*e+c)%31;c=d(this.input);this.d.b=h;g=this.d.fl();h=g.length;I&&(g=new Uint8Array(g.buffer),g.length<=h+4&&(this.a=new Uint8Array(g.length+4),this.a.set(g),g=this.a),g=g.subarray(0,h+4));g[h++]=c>>24&255;g[h++]=c>>16&255;g[h++]=c>>8&255;g[h++]=c&255;return g};c("Zlib.Deflate",y);c("Zlib.Deflate.compress",function(a,c){return(new y(a,c)).fl()});c("Zlib.Deflate.CompressionType",
  818. V);c("Zlib.Deflate.CompressionType.NONE",V.NONE);c("Zlib.Deflate.CompressionType.FIXED",V.r);c("Zlib.Deflate.CompressionType.DYNAMIC",V.rx);var xa=0,oa=1,K={TQ:xa,FQ:oa};x.prototype.Qx=function(){for(;!this.NF;){var c=z(this,3);c&1&&(this.NF=R);c>>>=1;switch(c){case 0:var c=this.input,d=this.C,e=this.a,f=this.b,g=O,h=O,m=O,n=e.length,g=O;this.Dg=this.g=0;g=c[d++];g===O&&a(Error("invalid uncompressed block header: LEN (first byte)"));h=g;g=c[d++];g===O&&a(Error("invalid uncompressed block header: LEN (second byte)"));
  819. h|=g<<8;g=c[d++];g===O&&a(Error("invalid uncompressed block header: NLEN (first byte)"));m=g;g=c[d++];g===O&&a(Error("invalid uncompressed block header: NLEN (second byte)"));m|=g<<8;h===~m&&a(Error("invalid uncompressed block header: length verify"));d+h>c.length&&a(Error("input buffer is broken"));switch(this.Gx){case xa:for(;f+h>e.length;){g=n-f;h-=g;if(I)e.set(c.subarray(d,d+g),f),f+=g,d+=g;else for(;g--;)e[f++]=c[d++];this.b=f;e=this.Ch();f=this.b}break;case oa:for(;f+h>e.length;)e=this.Ch({fa:2});
  820. break;default:a(Error("invalid inflate mode"))}if(I)e.set(c.subarray(d,d+h),f),f+=h,d+=h;else for(;h--;)e[f++]=c[d++];this.C=d;this.b=f;this.a=e;break;case 1:this.Kx(Ha,Ia);break;case 2:J(this);break;default:a(Error("unknown BTYPE: "+c))}}return this.oG()};D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var Aa=I?new Uint16Array(D):D;D=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];var Ba=I?new Uint16Array(D):D;D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,
  821. 3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];var pa=I?new Uint8Array(D):D;D=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];var Ca=I?new Uint16Array(D):D;D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var qa=I?new Uint8Array(D):D;D=new (I?Uint8Array:Array)(288);M=0;for(S=D.length;M<S;++M)D[M]=143>=M?8:255>=M?9:279>=M?7:8;var Ha=g(D);D=new (I?Uint8Array:Array)(30);M=0;for(S=D.length;M<S;++M)D[M]=5;var Ia=g(D);x.prototype.Kx=
  822. function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length-258,g,h,m;256!==(g=C(this,a));)if(256>g)e>=f&&(this.b=e,d=this.Ch(),e=this.b),d[e++]=g;else{g-=257;m=Ba[g];0<pa[g]&&(m+=z(this,pa[g]));g=C(this,c);h=Ca[g];0<qa[g]&&(h+=z(this,qa[g]));for(e>=f&&(this.b=e,d=this.Ch(),e=this.b);m--;)d[e]=d[e++-h]}for(;8<=this.Dg;)this.Dg-=8,this.C--;this.b=e};x.prototype.AR=function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length,g,h,m;256!==(g=C(this,a));)if(256>g)e>=f&&(d=this.Ch(),f=d.length),
  823. d[e++]=g;else{g-=257;m=Ba[g];0<pa[g]&&(m+=z(this,pa[g]));g=C(this,c);h=Ca[g];0<qa[g]&&(h+=z(this,qa[g]));for(e+m>f&&(d=this.Ch(),f=d.length);m--;)d[e]=d[e++-h]}for(;8<=this.Dg;)this.Dg-=8,this.C--;this.b=e};x.prototype.Ch=function(){var a=new (I?Uint8Array:Array)(this.b-32768),c=this.b-32768,d,e,f=this.a;if(I)a.set(f.subarray(32768,a.length));else{d=0;for(e=a.length;d<e;++d)a[d]=f[d+32768]}this.sx.push(a);this.Vx+=a.length;if(I)f.set(f.subarray(c,c+32768));else for(d=0;32768>d;++d)f[d]=f[c+d];this.b=
  824. 32768;return f};x.prototype.GR=function(a){var c,d=this.input.length/this.C+1|0,e,f,g,h=this.input,m=this.a;a&&("number"===typeof a.fa&&(d=a.fa),"number"===typeof a.rR&&(d+=a.rR));2>d?(e=(h.length-this.C)/this.ea[2],g=258*(e/2)|0,f=g<m.length?m.length+g:m.length<<1):f=m.length*d;I?(c=new Uint8Array(f),c.set(m)):c=m;return this.a=c};x.prototype.oG=function(){var a=0,c=this.a,d=this.sx,e,f=new (I?Uint8Array:Array)(this.Vx+(this.b-32768)),g,h,m,n;if(0===d.length)return I?this.a.subarray(32768,this.b):
  825. this.a.slice(32768,this.b);g=0;for(h=d.length;g<h;++g){e=d[g];m=0;for(n=e.length;m<n;++m)f[a++]=e[m]}g=32768;for(h=this.b;g<h;++g)f[a++]=c[g];this.sx=[];return this.buffer=f};x.prototype.wR=function(){var a,c=this.b;I?this.JG?(a=new Uint8Array(c),a.set(this.a.subarray(0,c))):a=this.a.subarray(0,c):(this.a.length>c&&(this.a.length=c),a=this.a);return this.buffer=a};F.prototype.Qx=function(){var c=this.input,e,f;e=this.CG.Qx();this.C=this.CG.C;this.YR&&(f=(c[this.C++]<<24|c[this.C++]<<16|c[this.C++]<<
  826. 8|c[this.C++])>>>0,f!==d(e)&&a(Error("invalid adler-32 checksum")));return e};c("Zlib.Inflate",F);c("Zlib.Inflate.BufferType",K);K.I6=K.FQ;K.c7=K.TQ;c("Zlib.Inflate.prototype.decompress",F.prototype.Qx);K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];I&&new Uint16Array(K);K=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];I&&new Uint16Array(K);K=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];I&&new Uint8Array(K);K=[1,2,3,4,5,7,9,13,
  827. 17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];I&&new Uint16Array(K);K=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];I&&new Uint8Array(K);K=new (I?Uint8Array:Array)(288);D=0;for(M=K.length;D<M;++D)K[D]=143>=D?8:255>=D?9:279>=D?7:8;g(K);K=new (I?Uint8Array:Array)(30);D=0;for(M=K.length;D<M;++D)K[D]=5;g(K);var ma=8}).call(this);G=window;G=G.w9=G.Zlib;G.UG=G.Deflate;G.UG.maa=G.UG.compress;G.mn=G.Inflate;G.mn.q7=G.mn.BufferType;
  828. G.mn.prototype.IM=G.mn.prototype.decompress;E.CS=E.na.extend({ctor:function(a){var c,d,e,f;this.data=a;this.Ya=8;this.AF=[];this.ix=[];this.bn={};this.OD=q;this.text={};for(e=q;;){c=this.Nj();f=a=k;f=[];for(a=0;4>a;++a)f.push(String.fromCharCode(this.data[this.Ya++]));a=f.join("");switch(a){case "IHDR":this.width=this.Nj();this.height=this.Nj();this.Oo=this.data[this.Ya++];this.bE=this.data[this.Ya++];this.naa=this.data[this.Ya++];this.Hba=this.data[this.Ya++];this.Gea=this.data[this.Ya++];break;case "acTL":this.OD={sha:this.Nj(),tha:this.Nj()||
  829. Infinity,frames:[]};break;case "PLTE":this.AF=this.Us(c);break;case "fcTL":e&&this.OD.frames.push(e);this.Ya+=4;e={width:this.Nj(),height:this.Nj(),qQ:this.Nj(),rQ:this.Nj()};a=this.NO();c=this.NO()||100;e.yaa=1E3*a/c;e.Laa=this.data[this.Ya++];e.Y$=this.data[this.Ya++];e.data=[];break;case "IDAT":case "fdAT":"fdAT"===a&&(this.Ya+=4,c-=4);a=(e!=q?e.data:k)||this.ix;for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)a.push(this.data[this.Ya++]);break;case "tRNS":this.bn={};switch(this.bE){case 3:this.bn.TE=this.Us(c);
  830. c=255-this.bn.TE.length;if(0<c)for(a=0;0<=c?a<c:a>c;0<=c?++a:--a)this.bn.TE.push(255);break;case 0:this.bn.xea=this.Us(c)[0];break;case 2:this.bn.Sia=this.Us(c)}break;case "tEXt":f=this.Us(c);c=f.indexOf(0);a=String.fromCharCode.apply(String,f.slice(0,c));this.text[a]=String.fromCharCode.apply(String,f.slice(c+1));break;case "IEND":e&&this.OD.frames.push(e);a:{switch(this.bE){case 0:case 3:case 4:e=1;break a;case 2:case 6:e=3;break a}e=k}this.t=e;this.MN=4===(d=this.bE)||6===d;d=this.t+(this.MN?1:
  831. 0);this.v3=this.Oo*d;a:{switch(this.t){case 1:d="DeviceGray";break a;case 3:d="DeviceRGB";break a}d=k}this.jaa=d;Uint8Array!=Array&&(this.ix=new Uint8Array(this.ix));return;default:this.Ya+=c}this.Ya+=4;this.Ya>this.data.length&&b(Error("Incomplete or corrupt PNG file"))}},Us:function(a){var c,d;d=[];for(c=0;0<=a?c<a:c>a;0<=a?++c:--c)d.push(this.data[this.Ya++]);return d},Nj:function(){var a,c,d,e;a=this.data[this.Ya++]<<24;c=this.data[this.Ya++]<<16;d=this.data[this.Ya++]<<8;e=this.data[this.Ya++];
  832. return a|c|d|e},NO:function(){var a,c;a=this.data[this.Ya++]<<8;c=this.data[this.Ya++];return a|c},k_:function(a){var c,d,e,f,g,h,m,n,s,v,w,y,x,z,C;a==q&&(a=this.ix);if(0===a.length)return new Uint8Array(0);a=(new Zlib.mn(a,{index:0,mQ:r})).IM();n=this.v3/8;y=n*this.width;s=new Uint8Array(y*this.height);h=a.length;for(d=v=w=0;v<h;){switch(a[v++]){case 0:for(c=0;c<y;c+=1)s[d++]=a[v++];break;case 1:for(f=x=0;x<y;f=x+=1)c=a[v++],g=f<n?0:s[d-n],s[d++]=(c+g)%256;break;case 2:for(f=g=0;g<y;f=g+=1)c=a[v++],
  833. e=(f-f%n)/n,x=w&&s[(w-1)*y+e*n+f%n],s[d++]=(x+c)%256;break;case 3:for(f=C=0;C<y;f=C+=1)c=a[v++],e=(f-f%n)/n,g=f<n?0:s[d-n],x=w&&s[(w-1)*y+e*n+f%n],s[d++]=(c+Math.floor((g+x)/2))%256;break;case 4:for(f=C=0;C<y;f=C+=1)c=a[v++],e=(f-f%n)/n,g=f<n?0:s[d-n],0===w?x=z=0:(x=s[(w-1)*y+e*n+f%n],z=e&&s[(w-1)*y+(e-1)*n+f%n]),m=g+x-z,f=Math.abs(m-g),e=Math.abs(m-x),m=Math.abs(m-z),g=f<=e&&f<=m?g:e<=m?x:z,s[d++]=(c+g)%256;break;default:b(Error("Invalid filter algorithm: "+a[v-1]))}w++}return s},i_:function(a,c){var d,
  834. e,f,g,h,m,n,s;e=this.t;s=q;d=this.MN;this.AF.length&&(s=(f=this.IV)!=q?f:this.IV=this.j_(),e=4,d=p);f=a.data||a;n=f.length;h=s||c;g=m=0;if(1===e)for(;g<n;)e=s?4*c[g/4]:m,m=h[e++],f[g++]=m,f[g++]=m,f[g++]=m,f[g++]=d?h[e++]:255,m=e;else for(;g<n;)e=s?4*c[g/4]:m,f[g++]=h[e++],f[g++]=h[e++],f[g++]=h[e++],f[g++]=d?h[e++]:255,m=e},j_:function(){var a,c,d,e,f,g,h,m,n;d=this.AF;g=this.bn.TE||[];f=new Uint8Array((g.length||0)+d.length);c=h=a=e=0;for(m=d.length;h<m;c=h+=3)f[e++]=d[c],f[e++]=d[c+1],f[e++]=d[c+
  835. 2],f[e++]=(n=g[a++])!=q?n:255;return f},X3:function(a){var c;a.width=this.width;a.height=this.height;a=a.getContext("2d");c=a.createImageData(this.width,this.height);this.i_(c,this.k_());return a.putImageData(c,0,0)}});E.g6={HK:r,km:q,nB:[],getUint8:function(a){return this.km[a]},getUint16:function(a){return this.HK?this.km[a+1]<<8|this.km[a]:this.km[a]<<8|this.km[a+1]},getUint32:function(a){var c=this.km;return this.HK?c[a+3]<<24|c[a+2]<<16|c[a+1]<<8|c[a]:c[a]<<24|c[a+1]<<16|c[a+2]<<8|c[a+3]},ZZ:function(){var a=this.getUint16(0);18761===a?this.tF=p:19789===a?this.tF=r:(console.log(a),b(TypeError("Invalid byte order value.")));return this.tF},H1:function(){42!==this.getUint16(2)&&b(RangeError("You forgot your towel!"));
  836. return p},E0:function(a){var c=this.b0;return a in c?c[a]:q},C0:function(a){var c=this.a0;if(a in c)return c[a];console.log("Unknown Field Tag:",a);return"Tag"+a},D0:function(a){return-1!==["BYTE","ASCII","SBYTE","UNDEFINED"].indexOf(a)?1:-1!==["SHORT","SSHORT"].indexOf(a)?2:-1!==["LONG","SLONG","FLOAT"].indexOf(a)?4:-1!==["RATIONAL","SRATIONAL","DOUBLE"].indexOf(a)?8:q},F0:function(a,c,d,e){a=[];var f=this.D0(c);if(4>=f*d)this.tF===r?a.push(e>>>8*(4-f)):a.push(e);else for(var g=0;g<d;g++){var h=
  837. f*g;8<=f?-1!==["RATIONAL","SRATIONAL"].indexOf(c)?(a.push(this.getUint32(e+h)),a.push(this.getUint32(e+h+4))):E.log("Can't handle this field type or size"):a.push(this.eN(f,e+h))}"ASCII"===c&&a.forEach(function(a,c,d){d[c]=String.fromCharCode(a)});return a},eN:function(a,c){if(0>=a)E.log("No bytes requested");else{if(1>=a)return this.getUint8(c);if(2>=a)return this.getUint16(c);if(3>=a)return this.getUint32(c)>>>8;if(4>=a)return this.getUint32(c);E.log("Too many bytes requested")}},n0:function(a,
  838. c,d){d=d||0;c+=Math.floor(d/8);var e=d+a;a=32-a;var f,g;0>=e?console.log("No bits requested"):8>=e?(f=24+d,g=this.getUint8(c)):16>=e?(f=16+d,g=this.getUint16(c)):32>=e?(f=d,g=this.getUint32(c)):console.log("Too many bits requested");return{bits:g<<f>>>a,byteOffset:c+Math.floor(e/8),bitOffset:e%8}},HO:function(a){var c=this.getUint16(a),d=[];a+=2;for(var e=0;e<c;a+=12,e++){var f=this.getUint16(a),g=this.getUint16(a+2),h=this.getUint32(a+4),m=this.getUint32(a+8),f=this.C0(f),g=this.E0(g),h=this.F0(f,
  839. g,h,m);d[f]={type:g,Qh:h}}this.nB.push(d);c=this.getUint32(a);0!==c&&this.HO(c)},ym:function(a,c){var d=Math.pow(2,8-c);return Math.floor(a*d+(d-1))},q3:function(a,c){c=c||E.Sb("canvas");this.km=a;this.canvas=c;this.ZZ();if(this.H1()){var d=this.getUint32(4);this.nB.length=0;this.HO(d);var e=this.nB[0],d=e.ImageWidth.Qh[0],f=e.ImageLength.Qh[0];this.canvas.width=d;this.canvas.height=f;var g=[],h=e.Compression?e.Compression.Qh[0]:1,m=e.SamplesPerPixel.Qh[0],n=[],s=0,v=r;e.BitsPerSample.Qh.forEach(function(a,
  840. c){n[c]={Po:a,dx:r,is:k};0===a%8&&(n[c].dx=p,n[c].is=a/8);s+=a},this);if(0===s%8)var v=p,w=s/8;var y=e.StripOffsets.Qh,x=y.length;if(e.StripByteCounts)var z=e.StripByteCounts.Qh;else E.log("Missing StripByteCounts!"),1===x?z=[Math.ceil(d*f*s/8)]:b(Error("Cannot recover from missing StripByteCounts"));for(var C=0;C<x;C++){var J=y[C];g[C]=[];for(var F=z[C],O=0,R=0,N=1,I=p,K=[],D=0,M=0,S=0;O<F;O+=N)switch(h){case 1:N=0;for(K=[];N<m;N++)n[N].dx?K.push(this.eN(n[N].is,J+O+n[N].is*N)):(R=this.n0(n[N].Po,
  841. J+O,R),K.push(R.Oo),O=R.byteOffset-J,R=R.W$,b(RangeError("Cannot handle sub-byte bits per sample")));g[C].push(K);v?N=w:(N=0,b(RangeError("Cannot handle sub-byte bits per pixel")));break;case 32773:if(I){var I=r,U=1,T=1,N=this.getInt8(J+O);0<=N&&127>=N?U=N+1:-127<=N&&-1>=N?T=-N+1:I=p}else{for(var ba=this.getUint8(J+O),N=0;N<T;N++)n[M].dx?(S=S<<8*D|ba,D++,D===n[M].is&&(K.push(S),S=D=0,M++)):b(RangeError("Cannot handle sub-byte bits per sample")),M===m&&(g[C].push(K),K=[],M=0);U--;0===U&&(I=p)}N=1}}if(c.getContext){w=
  842. this.canvas.getContext("2d");w.fillStyle="rgba(255, 255, 255, 0)";C=e.RowsPerStrip?e.RowsPerStrip.Qh[0]:f;z=g.length;f%=C;f=0===f?C:f;U=C;v=0;T=e.PhotometricInterpretation.Qh[0];h=[];m=0;e.ExtraSamples&&(h=e.ExtraSamples.Qh,m=h.length);if(e.ColorMap)var Y=e.ColorMap.Qh,$=Math.pow(2,n[0].Po);for(C=0;C<z;C++){C+1===z&&(U=f);e=g[C].length;v*=C;for(x=y=0;y<U,x<e;y++)for(J=0;J<d;J++,x++){K=g[C][x];D=O=F=0;I=1;if(0<m)for(M=0;M<m;M++)if(1===h[M]||2===h[M]){I=K[3+M]/256;break}switch(T){case 0:if(n[0].dx)var ea=
  843. Math.pow(16,2*n[0].is);K.forEach(function(a,c,d){d[c]=ea-a});case 1:F=O=D=this.ym(K[0],n[0].Po);break;case 2:F=this.ym(K[0],n[0].Po);O=this.ym(K[1],n[1].Po);D=this.ym(K[2],n[2].Po);break;case 3:Y===k&&b(Error("Palette image missing color map"));K=K[0];F=this.ym(Y[K],16);O=this.ym(Y[$+K],16);D=this.ym(Y[2*$+K],16);break;default:b(RangeError("Unknown Photometric Interpretation:",T))}w.fillStyle="rgba("+F+", "+O+", "+D+", "+I+")";w.fillRect(J,v+y,1,1)}v=U}}return this.canvas}},a0:{315:"Artist",258:"BitsPerSample",
  844. 265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",
  845. 305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",
  846. 293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",
  847. 37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop"},b0:{1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE"}};E.kg=function(a,c,d,e,f,g,h,m,n,s,v,w){this.Ya=a?a:L(0,0);this.ry=c?c:L(0,0);this.color=d?d:{r:0,g:0,b:0,a:255};this.ns=e?e:{r:0,g:0,b:0,a:255};this.size=f||0;this.jE=g||0;this.rotation=h||0;this.OM=m||0;this.nl=n||0;this.atlasIndex=s||0;this.Rb=v?v:new E.kg.lz;this.Fd=w?w:new E.kg.mz;this.dO=r;this.ps=L(0,0)};E.kg.lz=function(a,c,d){this.dir=a?a:L(0,0);this.radialAccel=c||0;this.tangentialAccel=d||0};E.kg.mz=function(a,c,d,e){this.Cg=a||0;this.KM=c||0;this.Ts=d||0;this.NM=e||0};
  848. E.kg.lu=[L(),L(),L(),L()];
  849. E.o=E.m.extend({fC:"",kb:0,pJ:r,Rb:q,Fd:q,wb:"ParticleSystem",lC:L(0,0),Gk:q,Nl:0,hf:0,X:q,atlasIndex:0,nm:r,zu:0,Mw:q,qy:q,jo:r,nd:0,duration:0,wo:q,Ik:q,Pe:0,np:0,Cg:0,Lo:0,Cp:0,Dp:0,Em:0,Vo:0,vh:q,Pk:q,Be:q,rk:q,Ep:0,Fp:0,Wo:0,Xo:0,Dm:0,ob:0,I:q,q:q,Oa:r,Mi:q,gs:r,Da:0,Ac:q,lb:q,sc:q,Br:q,la:q,Zc:q,ctor:function(a){E.m.prototype.ctor.call(this);this.Da=E.o.gb;this.Rb=new E.o.lz;this.Fd=new E.o.mz;this.q={src:E.bc,Q:E.ac};this.Gk=[];this.wo=L(0,0);this.Ik=L(0,0);this.vh=E.color(255,255,255,255);
  850. this.Pk=E.color(255,255,255,255);this.Be=E.color(255,255,255,255);this.rk=E.color(255,255,255,255);this.fC="";this.kb=0;this.pJ=r;this.lC=L(0,0);this.hf=this.Nl=0;this.X=q;this.atlasIndex=0;this.nm=r;this.zu=0;this.Mw=E.o.bT;this.qy=E.o.yQ;this.jo=r;this.ob=this.Dm=this.Xo=this.Wo=this.Fp=this.Ep=this.Vo=this.Em=this.Dp=this.Cp=this.Lo=this.Cg=this.np=this.Pe=this.duration=this.nd=0;this.I=q;this.Oa=r;this.Mi=E.o.Bq;this.gs=r;this.sc=[0,0];this.Ac=[];this.lb=[];this.Br=W(0,0,0,0);this.la=p;E.A===
  851. E.W&&(this.Zc=q);!a||"number"===typeof a?(a=a||100,this.A4(E.o.SH),this.Qb(a)):a&&this.bl(a)},VE:function(){for(var a=this.lb,c=0,d=this.ob;c<d;++c){var e=6*c,f=4*c;a[e+0]=f+0;a[e+1]=f+1;a[e+2]=f+2;a[e+5]=f+1;a[e+4]=f+2;a[e+3]=f+3}},PN:function(a){var c=E.qb(),d=W(a.x*c,a.y*c,a.width*c,a.height*c),e=a.width,f=a.height;this.I&&(e=this.I.pixelsWidth,f=this.I.pixelsHeight);if(E.A!==E.Ba){E.kn?(a=(2*d.x+1)/(2*e),c=(2*d.y+1)/(2*f),e=a+(2*d.width-2)/(2*e),d=c+(2*d.height-2)/(2*f)):(a=d.x/e,c=d.y/f,e=a+
  852. d.width/e,d=c+d.height/f);var f=d,d=c,c=f,g=0,h=0;this.X?(f=this.X.textureAtlas.quads,g=this.atlasIndex,h=this.atlasIndex+this.ob):(f=this.Ac,g=0,h=this.ob);for(;g<h;g++){f[g]||(f[g]=E.FI());var m=f[g];m.F.n.ea=a;m.F.n.fa=c;m.M.n.ea=e;m.M.n.fa=c;m.L.n.ea=a;m.L.n.fa=d;m.K.n.ea=e;m.K.n.fa=d}}},vE:A("X"),ml:function(a){if(this.X!=a){var c=this.X;if(this.X=a)for(var d=this.Gk,e=0;e<this.ob;e++)d[e].atlasIndex=e;a?c||(this.X.textureAtlas.FV(this.Ac,this.atlasIndex),E.l.deleteBuffer(this.sc[1])):(this.VI(),
  853. this.VE(),this.$a(c.Aa()),this.fm())}},bp:A("atlasIndex"),RF:u("atlasIndex"),rca:A("Mw"),A4:u("Mw"),Lda:A("qy"),ska:u("qy"),rf:A("jo"),rda:A("nd"),gka:u("nd"),cp:A("duration"),Vf:u("duration"),q1:function(){return{x:this.wo.x,y:this.wo.y}},d5:u("wo"),EE:function(){return{x:this.Ik.x,y:this.Ik.y}},Rg:u("Ik"),Wca:A("Pe"),Pg:u("Pe"),Xca:A("np"),Qg:u("np"),Rba:A("Cg"),Kg:u("Cg"),Sba:A("Lo"),Lg:u("Lo"),lN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");
  854. var a=this.Rb.gravity;return L(a.x,a.y)},Xf:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");this.Rb.gravity=a},Xw:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");return this.Rb.speed},Te:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");this.Rb.speed=a},zN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");
  855. return this.Rb.speedVar},$f:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");this.Rb.speedVar=a},EN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");return this.Rb.tangentialAccel},Rj:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");this.Rb.tangentialAccel=a},FN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  856. return this.Rb.tangentialAccelVar},Sj:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");this.Rb.tangentialAccelVar=a},sN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");return this.Rb.radialAccel},Yf:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");this.Rb.radialAccel=a},tN:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  857. return this.Rb.radialAccelVar},Zf:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");this.Rb.radialAccelVar=a},i1:function(){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");return this.Rb.rotationIsDir},Y4:function(a){this.Da!==E.o.gb&&E.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");this.Rb.rotationIsDir=a},CN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  858. return this.Fd.startRadius},KP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");this.Fd.startRadius=a},DN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");return this.Fd.startRadiusVar},LP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");this.Fd.startRadiusVar=a},iN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  859. return this.Fd.endRadius},qP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");this.Fd.endRadius=a},jN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");return this.Fd.endRadiusVar},rP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");this.Fd.endRadiusVar=a},uN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  860. return this.Fd.ay},GP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");this.Fd.ay=a},vN:function(){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");return this.Fd.by},HP:function(a){this.Da!==E.o.Ye&&E.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");this.Fd.by=a},Qj:function(a,c){this.nm=p;E.m.prototype.Qj.call(this,a,c)},aG:function(a){this.nm=
  861. p;E.m.prototype.aG.call(this,a)},ct:function(a){this.nm=p;E.m.prototype.ct.call(this,a)},dt:function(a){this.nm=p;E.m.prototype.dt.call(this,a)},Oda:A("Cp"),Tg:u("Cp"),Pda:A("Dp"),Ug:u("Dp"),wca:A("Em"),Og:u("Em"),xca:A("Vo"),C4:u("Vo"),Yw:function(){return E.color(this.vh.r,this.vh.g,this.vh.b,this.vh.a)},Ue:function(a){this.vh=E.color(a)},BN:function(){return E.color(this.Pk.r,this.Pk.g,this.Pk.b,this.Pk.a)},ag:function(a){this.Pk=E.color(a)},Tw:function(){return E.color(this.Be.r,this.Be.g,this.Be.b,
  862. this.Be.a)},Re:function(a){this.Be=E.color(a)},hN:function(){return E.color(this.rk.r,this.rk.g,this.rk.b,this.rk.a)},Wf:function(a){this.rk=E.color(a)},Qda:A("Ep"),f5:u("Ep"),Rda:A("Fp"),g5:u("Fp"),yca:A("Wo"),D4:u("Wo"),zca:A("Xo"),E4:u("Xo"),uca:A("Dm"),Mg:u("Dm"),u1:A("ob"),j5:function(a){if(E.A===E.Ba)this.ob=200>a?a:200;else{if(a>this.zu){var c=E.Bb.BYTES_PER_ELEMENT;this.lb=new Uint16Array(6*a);var d=new ArrayBuffer(a*c),e=this.Gk;e.length=0;for(var f=this.Ac,g=f.length=0;g<a;g++)e[g]=new E.kg,
  863. f[g]=new E.Bb(q,q,q,q,d,g*c);this.ob=this.zu=a;if(this.X)for(c=0;c<a;c++)e[c].atlasIndex=c;this.Zc=d;this.VE();this.fm();this.I&&this.PN(W(0,0,this.I.width,this.I.height))}else this.ob=a;this.Y3()}},Aa:A("I"),$a:function(a){a.tc?this.gG(a,W(0,0,a.width,a.height)):(this.la=r,a.Vd(function(a){this.la=p;this.gG(a,W(0,0,a.width,a.height))},this))},Dh:A("q"),Qe:function(a,c){if(c===k)this.q!=a&&(this.q=a,this.Mf());else if(this.q.src!=a||this.q.Q!=c)this.q={src:a,Q:c},this.Mf()},Rf:A("Oa"),Se:u("Oa"),
  864. e2:function(){return this.q.src==E.SRC_ALPHA&&this.q.Q==E.ONE||this.q.src==E.ONE&&this.q.Q==E.ONE},Oh:function(a){var c=this.q;a?(c.src=E.SRC_ALPHA,c.Q=E.ONE):E.A===E.W?this.I&&!this.I.Ei()?(c.src=E.SRC_ALPHA,c.Q=E.ONE_MINUS_SRC_ALPHA):(c.src=E.bc,c.Q=E.ac):(c.src=E.bc,c.Q=E.ac)},uda:A("Mi"),ika:u("Mi"),Jea:A("gs"),cja:u("gs"),vca:A("Da"),Ng:u("Da"),U:function(){return this.Qb(150)},bl:function(a){this.fC=a;a=E.V.Ed(a);return!a?(E.log("cc.ParticleSystem.initWithFile(): Particles: file not found"),
  865. r):this.Q1(a,"")},p0:function(){return W(0,0,E.Wa.width,E.Wa.height)},Q1:function(a){var c=r,d=q,d=this.jZ,e=parseInt(d("maxParticles",a));if(this.Qb(e)){this.Cg=parseFloat(d("angle",a));this.Lo=parseFloat(d("angleVariance",a));this.duration=parseFloat(d("duration",a));this.q.src=parseInt(d("blendFuncSource",a));this.q.Q=parseInt(d("blendFuncDestination",a));c=this.vh;c.r=255*parseFloat(d("startColorRed",a));c.g=255*parseFloat(d("startColorGreen",a));c.b=255*parseFloat(d("startColorBlue",a));c.a=
  866. 255*parseFloat(d("startColorAlpha",a));c=this.Pk;c.r=255*parseFloat(d("startColorVarianceRed",a));c.g=255*parseFloat(d("startColorVarianceGreen",a));c.b=255*parseFloat(d("startColorVarianceBlue",a));c.a=255*parseFloat(d("startColorVarianceAlpha",a));c=this.Be;c.r=255*parseFloat(d("finishColorRed",a));c.g=255*parseFloat(d("finishColorGreen",a));c.b=255*parseFloat(d("finishColorBlue",a));c.a=255*parseFloat(d("finishColorAlpha",a));c=this.rk;c.r=255*parseFloat(d("finishColorVarianceRed",a));c.g=255*
  867. parseFloat(d("finishColorVarianceGreen",a));c.b=255*parseFloat(d("finishColorVarianceBlue",a));c.a=255*parseFloat(d("finishColorVarianceAlpha",a));this.Cp=parseFloat(d("startParticleSize",a));this.Dp=parseFloat(d("startParticleSizeVariance",a));this.Em=parseFloat(d("finishParticleSize",a));this.Vo=parseFloat(d("finishParticleSizeVariance",a));this.R(parseFloat(d("sourcePositionx",a)),parseFloat(d("sourcePositiony",a)));this.Ik.x=parseFloat(d("sourcePositionVariancex",a));this.Ik.y=parseFloat(d("sourcePositionVariancey",
  868. a));this.Ep=parseFloat(d("rotationStart",a));this.Fp=parseFloat(d("rotationStartVariance",a));this.Wo=parseFloat(d("rotationEnd",a));this.Xo=parseFloat(d("rotationEndVariance",a));this.Da=parseInt(d("emitterType",a));if(this.Da==E.o.gb)c=this.Rb,c.gravity.x=parseFloat(d("gravityx",a)),c.gravity.y=parseFloat(d("gravityy",a)),c.speed=parseFloat(d("speed",a)),c.speedVar=parseFloat(d("speedVariance",a)),e=d("radialAcceleration",a),c.radialAccel=e?parseFloat(e):0,e=d("radialAccelVariance",a),c.radialAccelVar=
  869. e?parseFloat(e):0,e=d("tangentialAcceleration",a),c.tangentialAccel=e?parseFloat(e):0,e=d("tangentialAccelVariance",a),c.tangentialAccelVar=e?parseFloat(e):0,e=d("rotationIsDir",a).toLowerCase(),c.rotationIsDir=e!=q&&("true"===e||"1"===e);else if(this.Da==E.o.Ye)c=this.Fd,c.startRadius=parseFloat(d("maxRadius",a)),c.startRadiusVar=parseFloat(d("maxRadiusVariance",a)),c.endRadius=parseFloat(d("minRadius",a)),c.endRadiusVar=0,c.ay=parseFloat(d("rotatePerSecond",a)),c.by=parseFloat(d("rotatePerSecondVariance",
  870. a));else return E.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"),r;this.Pe=parseFloat(d("particleLifespan",a));this.np=parseFloat(d("particleLifespanVariance",a));this.Dm=this.ob/this.Pe;if(!this.X)if(this.Oa=r,c=d("textureFileName",a),c=E.path.Qo(this.fC,c),e=E.Ea.$m(c))this.$a(e);else if(a=d("textureImageData",a),!a||0===a.length){e=E.Ea.Ec(c);if(!e)return r;this.$a(e)}else{d=E.hQ(a,1);if(!d)return E.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),
  871. r;a=E.L0(d);if(a!==E.YG&&a!==E.Wy)return E.log("cc.ParticleSystem: unknown image format with Data"),r;e=E.Sb("canvas");a===E.Wy?(new E.CS(d)).X3(e):E.g6.q3(d,e);E.Ea.VZ(c,e);(a=E.Ea.$m(c))||E.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");this.$a(a)}c=p}return c},Qb:function(a){this.ob=a;var c,d=this.Gk;for(c=d.length=0;c<a;c++)d[c]=new E.kg;if(!d)return E.log("Particle system: not enough memory"),r;this.zu=a;if(this.X)for(c=0;c<this.ob;c++)d[c].atlasIndex=c;this.jo=p;this.q.src=
  872. E.bc;this.q.Q=E.ac;this.Mi=E.o.Bq;this.Da=E.o.gb;this.nm=this.gs=r;this.gP(1);if(E.A===E.W){if(!this.VI())return r;this.VE();this.fm();this.shaderProgram=E.Id.mc(E.Yi)}return p},Baa:function(){this.vG()},pZ:function(){if(this.h2())return r;var a,c=this.Gk;E.A===E.Ba?this.nd<c.length?a=c[this.nd]:(a=new E.kg,c.push(a)):a=c[this.nd];this.N1(a);++this.nd;return p},N1:function(a){var c=E.K3;a.nl=this.Pe+this.np*c();a.nl=Math.max(0,a.nl);a.Ya.x=this.wo.x+this.Ik.x*c();a.Ya.y=this.wo.y+this.Ik.y*c();var d,
  873. e;d=this.vh;var f=this.Pk,g=this.Be;e=this.rk;E.A===E.Ba?(d=E.color(E.Qc(d.r+f.r*c(),0,255),E.Qc(d.g+f.g*c(),0,255),E.Qc(d.b+f.b*c(),0,255),E.Qc(d.a+f.a*c(),0,255)),e=E.color(E.Qc(g.r+e.r*c(),0,255),E.Qc(g.g+e.g*c(),0,255),E.Qc(g.b+e.b*c(),0,255),E.Qc(g.a+e.a*c(),0,255))):(d={r:E.Qc(d.r+f.r*c(),0,255),g:E.Qc(d.g+f.g*c(),0,255),b:E.Qc(d.b+f.b*c(),0,255),a:E.Qc(d.a+f.a*c(),0,255)},e={r:E.Qc(g.r+e.r*c(),0,255),g:E.Qc(g.g+e.g*c(),0,255),b:E.Qc(g.b+e.b*c(),0,255),a:E.Qc(g.a+e.a*c(),0,255)});a.color=d;
  874. f=a.ns;g=a.nl;f.r=(e.r-d.r)/g;f.g=(e.g-d.g)/g;f.b=(e.b-d.b)/g;f.a=(e.a-d.a)/g;d=this.Cp+this.Dp*c();d=Math.max(0,d);a.size=d;this.Em===E.o.lg?a.jE=0:(e=this.Em+this.Vo*c(),e=Math.max(0,e),a.jE=(e-d)/g);d=this.Ep+this.Fp*c();e=this.Wo+this.Xo*c();a.rotation=d;a.OM=(e-d)/g;this.Mi==E.o.Bq?a.ry=this.Hw(this.lC):this.Mi==E.o.bA&&(a.ry.x=this.wa.x,a.ry.y=this.wa.y);d=E.Me(this.Cg+this.Lo*c());if(this.Da===E.o.gb)g=this.Rb,e=a.Rb,f=g.speed+g.speedVar*c(),e.dir.x=Math.cos(d),e.dir.y=Math.sin(d),E.tp(e.dir,
  875. f),e.radialAccel=g.radialAccel+g.radialAccelVar*c(),e.tangentialAccel=g.tangentialAccel+g.tangentialAccelVar*c(),g.rotationIsDir&&(a.rotation=-E.Wx(E.n3(e.dir)));else{e=this.Fd;a=a.Fd;var f=e.startRadius+e.startRadiusVar*c(),h=e.endRadius+e.endRadiusVar*c();a.Ts=f;a.NM=e.endRadius===E.o.cT?0:(h-f)/g;a.Cg=d;a.KM=E.Me(e.ay+e.by*c())}},U5:function(){this.jo=r;this.kb=this.duration;this.Nl=0},Y3:function(){this.jo=p;this.kb=0;var a=this.Gk;for(this.hf=0;this.hf<this.nd;++this.hf)a[this.hf].nl=0},h2:function(){return this.nd>=
  876. this.ob},s6:function(a,c){var d=q;this.X?(d=this.X.textureAtlas.quads[this.atlasIndex+a.atlasIndex],this.X.textureAtlas.dirty=p):d=this.Ac[this.hf];var e,f,g,h;this.Oa?(e=0|a.color.r*a.color.a/255,f=0|a.color.g*a.color.a/255,g=0|a.color.b*a.color.a/255):(e=0|a.color.r,f=0|a.color.g,g=0|a.color.b);h=0|a.color.a;var m=d.F.t;m.r=e;m.g=f;m.b=g;m.a=h;m=d.M.t;m.r=e;m.g=f;m.b=g;m.a=h;m=d.L.t;m.r=e;m.g=f;m.b=g;m.a=h;m=d.K.t;m.r=e;m.g=f;m.b=g;m.a=h;e=a.size/2;if(a.rotation){f=-e;g=-e;h=c.x;var m=c.y,n=-E.Me(a.rotation),
  877. s=Math.cos(n),n=Math.sin(n);d.F.i.x=f*s-g*n+h;d.F.i.y=f*n+g*s+m;d.M.i.x=e*s-g*n+h;d.M.i.y=e*n+g*s+m;d.L.i.x=f*s-e*n+h;d.L.i.y=f*n+e*s+m;d.K.i.x=e*s-e*n+h;d.K.i.y=e*n+e*s+m}else d.F.i.x=c.x-e,d.F.i.y=c.y-e,d.M.i.x=c.x+e,d.M.i.y=c.y-e,d.L.i.x=c.x-e,d.L.i.y=c.y+e,d.K.i.x=c.x+e,d.K.i.y=c.y+e},C3:function(){if(E.A===E.W){var a=E.l;a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW)}},update:function(a){if(this.jo&&this.Dm){var c=1/this.Dm;this.nd<this.ob&&(this.Nl+=
  878. a);for(;this.nd<this.ob&&this.Nl>c;)this.pZ(),this.Nl-=c;this.kb+=a;-1!=this.duration&&this.duration<this.kb&&this.U5()}this.hf=0;c=E.kg.lu[0];this.Mi==E.o.Bq?E.Mj(c,this.Hw(this.lC)):this.Mi==E.o.bA&&(c.x=this.wa.x,c.y=this.wa.y);if(this.kc){for(var d=E.kg.lu[1],e=E.kg.lu[2],f=E.kg.lu[3],g=this.Gk;this.hf<this.nd;){E.Tx(d);E.Tx(e);E.Tx(f);var h=g[this.hf];h.nl-=a;if(0<h.nl){if(this.Da==E.o.gb){var m=f,n=d,s=e;h.Ya.x||h.Ya.y?(E.Mj(n,h.Ya),E.l3(n)):E.Tx(n);E.Mj(s,n);E.tp(n,h.Rb.radialAccel);var v=
  879. s.x;s.x=-s.y;s.y=v;E.tp(s,h.Rb.tangentialAccel);E.Mj(m,n);E.Rx(m,s);E.Rx(m,this.Rb.gravity);E.tp(m,a);E.Rx(h.Rb.dir,m);E.Mj(m,h.Rb.dir);E.tp(m,a);E.Rx(h.Ya,m)}else m=h.Fd,m.Cg+=m.KM*a,m.Ts+=m.NM*a,h.Ya.x=-Math.cos(m.Cg)*m.Ts,h.Ya.y=-Math.sin(m.Cg)*m.Ts;if(!this.pJ||E.A===E.W)h.color.r+=0|h.ns.r*a,h.color.g+=0|h.ns.g*a,h.color.b+=0|h.ns.b*a,h.color.a+=0|h.ns.a*a,h.dO=p;h.size+=h.jE*a;h.size=Math.max(0,h.size);h.rotation+=h.OM*a;m=d;this.Mi==E.o.Bq||this.Mi==E.o.bA?(n=e,E.Mj(n,c),E.GO(n,h.ry),E.Mj(m,
  880. h.Ya),E.GO(m,n)):E.Mj(m,h.Ya);this.X&&(m.x+=this.wa.x,m.y+=this.wa.y);E.A==E.W?this.s6(h,m):E.Mj(h.ps,m);++this.hf}else if(h=h.atlasIndex,this.hf!==this.nd-1&&(m=g[this.hf],g[this.hf]=g[this.nd-1],g[this.nd-1]=m),this.X&&(this.X.p_(this.atlasIndex+h),g[this.nd-1].atlasIndex=h),--this.nd,0==this.nd&&this.gs){this.vG();this.Nc.removeChild(this,p);return}}this.nm=r}this.X||this.C3()},v6:function(){this.update(0)},jZ:function(a,c){if(c){var d=c[a];return d!=q?d:""}return""},Mf:function(){if(this.X)E.log("Can't change blending functions when the particle is being batched");
  881. else{var a=this.I;if(a&&a instanceof E.ca){this.Oa=r;var c=this.q;c.src==E.bc&&c.Q==E.ac&&(a.Ei()?this.Oa=p:(c.src=E.SRC_ALPHA,c.Q=E.ONE_MINUS_SRC_ALPHA))}}},k:function(){var a=new E.o;if(a.Qb(this.ob)){a.Kg(this.Cg);a.Lg(this.Lo);a.Vf(this.cp());var c=this.Dh();a.Qe(c.src,c.Q);a.Ue(this.Yw());a.ag(this.BN());a.Re(this.Tw());a.Wf(this.hN());a.Tg(this.Cp);a.Ug(this.Dp);a.Og(this.Em);a.C4(this.Vo);a.R(L(this.x,this.y));a.Rg(L(this.EE().x,this.EE().y));a.f5(this.Ep||0);a.g5(this.Fp||0);a.D4(this.Wo||
  882. 0);a.E4(this.Xo||0);a.Ng(this.Da);this.Da==E.o.gb?(c=this.lN(),a.Xf(L(c.x,c.y)),a.Te(this.Xw()),a.$f(this.zN()),a.Yf(this.sN()),a.Zf(this.tN()),a.Rj(this.EN()),a.Sj(this.FN())):this.Da==E.o.Ye&&(a.KP(this.CN()),a.LP(this.DN()),a.qP(this.iN()),a.rP(this.jN()),a.GP(this.uN()),a.HP(this.vN()));a.Pg(this.Pe);a.Qg(this.np);a.Mg(this.Dm);if(!this.X&&(a.Se(this.Rf()),c=this.Aa())){var d=c.Ne();a.gG(c,W(0,0,d.width,d.height))}}return a},y4:function(a){var c=a.$0();(0!=c.x||0!=c.y)&&E.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  883. E.A===E.W&&(!this.I||a.Aa().Ud!=this.I.Ud)&&this.$a(a.Aa())},gG:function(a,c){var d=this.I;if(E.A===E.W){if((!d||a.Ud!=d.Ud)&&d!=a)this.I=a,this.Mf()}else if((!d||a!=d)&&d!=a)this.I=a,this.Mf();this.Br=c;this.PN(c)},Z:function(a){this.la&&!this.X&&(E.A===E.Ba?this.Ml(a):this.cj(a),E.pf++)},Ml:function(a){a=a||E.l;a.save();a.globalCompositeOperation=this.e2()?"lighter":"source-over";for(var c=this.I.Xa,d=0;d<this.nd;d++){var e=this.Gk[d],f=0|0.5*e.size;if(this.Mw==E.o.SH){if(c.width&&c.height){a.save();
  884. a.globalAlpha=e.color.a/255;a.translate(0|e.ps.x,-(0|e.ps.y));var f=4*Math.floor(e.size/4),g=this.Br.width,h=this.Br.height;a.scale(Math.max(1/g*f,1E-6),Math.max(1/h*f,1E-6));e.rotation&&a.rotate(E.Me(e.rotation));a.translate(-(0|g/2),-(0|h/2));(e=e.dO?this.be(c,e.color,this.Br):c)&&a.drawImage(e,0,0);a.restore()}}else a.save(),a.globalAlpha=e.color.a/255,a.translate(0|e.ps.x,-(0|e.ps.y)),this.qy==E.o.dT?(e.rotation&&a.rotate(E.Me(e.rotation)),E.Ae.z_(a,f,e.color)):E.Ae.s_(a,f,e.color),a.restore()}a.restore()},
  885. be:function(a,c,d){c.r|=0;c.g|=0;c.b|=0;a.Qi||(a.Qi=document.createElement("canvas"),a.Qi.width=a.width,a.Qi.height=a.height);return E.Im(a,c,d,a.Qi)},cj:function(a){this.I&&(a=a||E.l,this.Gb.Jc(),this.Gb.We(),E.pe(this.I),E.JN(this.q.src,this.q.Q),E.Fc(E.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]),a.vertexAttribPointer(E.pb,3,a.FLOAT,r,24,0),a.vertexAttribPointer(E.xe,4,a.UNSIGNED_BYTE,p,24,12),a.vertexAttribPointer(E.wd,2,a.FLOAT,r,24,16),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]),a.drawElements(a.TRIANGLES,
  886. 6*this.hf,a.UNSIGNED_SHORT,0))},Vga:function(){E.Rz||this.fm()},n$:t(),fm:function(){if(E.A!=E.Ba){var a=E.l;this.sc[0]=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);this.sc[1]=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.lb,a.STATIC_DRAW)}},VI:function(){if(E.A===E.Ba)return p;if(this.X)return E.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),
  887. r;var a=E.Bb.BYTES_PER_ELEMENT,c=this.ob,d=this.Ac;d.length=0;this.lb=new Uint16Array(6*c);for(var e=new ArrayBuffer(a*c),f=0;f<c;f++)d[f]=new E.Bb(q,q,q,q,e,f*a);if(!d||!this.lb)return E.log("cocos2d: Particle system: not enough memory"),r;this.Zc=e;return p}});G=E.o.prototype;E.A===E.Ba&&!E.fb.hw&&(G.be=function(a,c,d){var e=E.Ea.Zw(a);return e?(e.Qi||(e.Qi=document.createElement("canvas"),e.Qi.width=a.width,e.Qi.height=a.height),E.Hm(a,e,c,d,e.Qi),e.Qi):q});E.j(G,"opacityModifyRGB",G.Rf,G.Se);
  888. E.j(G,"batchNode",G.vE,G.ml);E.j(G,"active",G.rf);E.j(G,"sourcePos",G.q1,G.d5);E.j(G,"posVar",G.EE,G.Rg);E.j(G,"gravity",G.lN,G.Xf);E.j(G,"speed",G.Xw,G.Te);E.j(G,"speedVar",G.zN,G.$f);E.j(G,"tangentialAccel",G.EN,G.Rj);E.j(G,"tangentialAccelVar",G.FN,G.Sj);E.j(G,"radialAccel",G.sN,G.Yf);E.j(G,"radialAccelVar",G.tN,G.Zf);E.j(G,"rotationIsDir",G.i1,G.Y4);E.j(G,"startRadius",G.CN,G.KP);E.j(G,"startRadiusVar",G.DN,G.LP);E.j(G,"endRadius",G.iN,G.qP);E.j(G,"endRadiusVar",G.jN,G.rP);
  889. E.j(G,"rotatePerS",G.uN,G.GP);E.j(G,"rotatePerSVar",G.vN,G.HP);E.j(G,"startColor",G.Yw,G.Ue);E.j(G,"startColorVar",G.BN,G.ag);E.j(G,"endColor",G.Tw,G.Re);E.j(G,"endColorVar",G.hN,G.Wf);E.j(G,"totalParticles",G.u1,G.j5);E.j(G,"texture",G.Aa,G.$a);E.o.create=function(a){return new E.o(a)};E.o.vaa=E.o.create;
  890. E.o.lz=function(a,c,d,e,f,g,h,m){this.gravity=a?a:L(0,0);this.speed=c||0;this.speedVar=d||0;this.tangentialAccel=e||0;this.tangentialAccelVar=f||0;this.radialAccel=g||0;this.radialAccelVar=h||0;this.rotationIsDir=m||r};E.o.mz=function(a,c,d,e,f,g){this.startRadius=a||0;this.startRadiusVar=c||0;this.endRadius=d||0;this.endRadiusVar=e||0;this.ay=f||0;this.by=g||0};E.o.bT=0;E.o.SH=1;E.o.dT=0;E.o.yQ=1;E.o.Rh=-1;E.o.lg=-1;E.o.cT=-1;E.o.gb=0;E.o.Ye=1;E.o.Bq=0;E.o.bA=1;E.o.g9=2;E.wH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?300:150)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Yf(0),this.Zf(0),this.Te(60),this.$f(20),this.Kg(90),this.Lg(10),this.R(E.B.oa().width/2,60),this.Rg(L(40,20)),this.Pg(3),this.Qg(0.25),this.Tg(54),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(194,64,31,255)),this.ag(E.color(0,0,0,0)),this.Re(E.color(0,0,0,255)),this.Wf(E.color(0,0,0,0)),
  891. this.Oh(p),p):r}});E.wH.create=function(){return new E.wH};
  892. E.xH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?1500:150)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,-90)),this.Yf(0),this.Zf(0),this.Te(180),this.$f(50),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Kg(90),this.Lg(20),this.Pg(3.5),this.Qg(1),this.Mg(this.ob/this.Pe),this.Ue(E.color(128,128,128,255)),this.ag(E.color(128,128,128,255)),this.Re(E.color(26,26,26,51)),this.Wf(E.color(26,26,26,51)),this.Tg(8),this.Ug(2),this.Og(E.o.lg),
  893. this.Oh(r),p):r}});E.xH.create=function(){return new E.xH};
  894. E.FH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?350:150)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Oh(p),this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Yf(0),this.Zf(0),this.Te(20),this.$f(5),this.Kg(90),this.Lg(360),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(1),this.Qg(0.5),this.Tg(30),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(194,64,31,255)),this.ag(E.color(0,0,0,0)),this.Re(E.color(0,0,0,255)),this.Wf(E.color(0,
  895. 0,0,0)),p):r}});E.FH.create=function(){return new E.FH};
  896. E.zH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?200:100)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Te(60),this.$f(10),this.Yf(-80),this.Zf(0),this.Rj(80),this.Sj(0),this.Kg(90),this.Lg(360),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(4),this.Qg(1),this.Tg(37),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(31,64,194,255)),this.ag(E.color(0,0,0,0)),this.Re(E.color(0,0,0,
  897. 255)),this.Wf(E.color(0,0,0,0)),this.Oh(p),p):r}});E.zH.create=function(){return new E.zH};
  898. E.yH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?250:100)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Te(80),this.$f(10),this.Yf(-60),this.Zf(0),this.Rj(15),this.Sj(0),this.Kg(90),this.Lg(360),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(4),this.Qg(1),this.Tg(30),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(128,128,128,255)),this.ag(E.color(128,128,128,128)),this.Re(E.color(0,
  899. 0,0,255)),this.Wf(E.color(0,0,0,0)),this.Oh(p),p):r}});E.yH.create=function(){return new E.yH};
  900. E.AH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?150:100)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(-200,200)),this.Te(15),this.$f(5),this.Yf(0),this.Zf(0),this.Rj(0),this.Sj(0),this.Kg(90),this.Lg(360),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(2),this.Qg(1),this.Tg(60),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(51,102,179)),this.ag(E.color(0,0,51,26)),this.Re(E.color(0,0,0,
  901. 255)),this.Wf(E.color(0,0,0,0)),this.Oh(p),p):r}});E.AH.create=function(){return new E.AH};
  902. E.EH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?500:100)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Te(150),this.$f(0),this.Yf(-380),this.Zf(0),this.Rj(45),this.Sj(0),this.Kg(90),this.Lg(0),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(12),this.Qg(0),this.Tg(20),this.Ug(0),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(128,128,128,255)),this.ag(E.color(128,128,128,0)),this.Re(E.color(128,
  903. 128,128,255)),this.Wf(E.color(128,128,128,0)),this.Oh(r),p):r}});E.EH.create=function(){return new E.EH};
  904. E.vH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?700:300)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(0.1),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Te(70),this.$f(40),this.Yf(0),this.Zf(0),this.Rj(0),this.Sj(0),this.Kg(90),this.Lg(360),a=E.B.oa(),this.R(a.width/2,a.height/2),this.Rg(L(0,0)),this.Pg(5),this.Qg(2),this.Tg(15),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.cp()),this.Ue(E.color(179,26,51,255)),this.ag(E.color(128,128,128,0)),this.Re(E.color(128,
  905. 128,128,0)),this.Wf(E.color(128,128,128,0)),this.Oh(r),p):r}});E.vH.create=function(){return new E.vH};
  906. E.CH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?200:100)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,0)),this.Yf(0),this.Zf(0),this.Te(25),this.$f(10),this.Kg(90),this.Lg(5),this.R(E.B.oa().width/2,0),this.Rg(L(20,0)),this.Pg(4),this.Qg(1),this.Tg(60),this.Ug(10),this.Og(E.o.lg),this.Mg(this.ob/this.Pe),this.Ue(E.color(204,204,204,255)),this.ag(E.color(5,5,5,0)),this.Re(E.color(0,0,0,255)),this.Wf(E.color(0,0,0,0)),this.Oh(r),
  907. p):r}});E.CH.create=function(){return new E.CH};
  908. E.DH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?700:250)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(0,-1)),this.Te(5),this.$f(1),this.Yf(0),this.Zf(1),this.Rj(0),this.Sj(1),a=E.B.oa(),this.R(a.width/2,a.height+10),this.Rg(L(a.width/2,0)),this.Kg(-90),this.Lg(5),this.Pg(45),this.Qg(15),this.Tg(10),this.Ug(5),this.Og(E.o.lg),this.Mg(10),this.Ue(E.color(255,255,255,255)),this.ag(E.color(0,0,0,0)),this.Re(E.color(255,255,255,
  909. 0)),this.Wf(E.color(0,0,0,0)),this.Oh(r),p):r}});E.DH.create=function(){return new E.DH};
  910. E.BH=E.o.extend({ctor:function(){E.o.prototype.ctor.call(this,E.A===E.W?1E3:300)},Qb:function(a){return E.o.prototype.Qb.call(this,a)?(this.Vf(E.o.Rh),this.Ng(E.o.gb),this.Xf(L(10,-10)),this.Yf(0),this.Zf(1),this.Rj(0),this.Sj(1),this.Te(130),this.$f(30),this.Kg(-90),this.Lg(5),a=E.B.oa(),this.R(a.width/2,a.height),this.Rg(L(a.width/2,0)),this.Pg(4.5),this.Qg(0),this.Tg(4),this.Ug(2),this.Og(E.o.lg),this.Mg(20),this.Ue(E.color(179,204,255,255)),this.ag(E.color(0,0,0,0)),this.Re(E.color(179,204,255,
  911. 128)),this.Wf(E.color(0,0,0,0)),this.Oh(r),p):r}});E.BH.create=function(){return new E.BH};E.E8=500;
  912. E.rz=E.m.extend({textureAtlas:q,k9:p,q:q,wb:"ParticleBatchNode",ctor:function(a,c){E.m.prototype.ctor.call(this);this.q={src:E.bc,Q:E.ac};"string"==typeof a?this.U(a,c):a instanceof E.ca&&this.ra(a,c)},ra:function(a,c){this.textureAtlas=new E.Xh;this.textureAtlas.ra(a,c);this.u.length=0;E.A===E.W&&(this.shaderProgram=E.Id.mc(E.Yi));return p},bl:function(a,c){var d=E.Ea.Ec(a);return this.ra(d,c)},U:function(a,c){var d=E.j9.Nca().Ec(a);return this.ra(d,c)},T:function(a,c,d){a||b("cc.ParticleBatchNode.addChild() : child should be non-null");a instanceof
  913. E.o||b("cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children");c=c==q?a.zIndex:c;d=d==q?a.tag:d;a.Aa()!=this.textureAtlas.texture&&b("cc.ParticleSystem.addChild() : the child is not using the same texture id");var e=a.Dh();if(0===this.u.length)this.Qe(e);else if(e.src!=this.q.src||e.Q!=this.q.Q){E.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");return}c=this.XU(a,c,d);d=0;0!=c?(c=this.u[c-1],d=c.bp()+c.ob):d=0;this.bF(a,
  914. d);a.ml(this)},bF:function(a,c){var d=a.ob,e=this.textureAtlas,f=e.totalQuads;a.RF(c);f+d>e.xd&&(this.PW(f+d),e.YM(e.xd-d,d));a.bp()+d!=f&&e.wO(c,c+d);e.ON(d);this.uD()},removeChild:function(a,c){if(a!=q)if(a instanceof E.o||b("cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"),-1==this.u.indexOf(a))E.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");else{E.m.prototype.removeChild.call(this,a,c);var d=this.textureAtlas;d.U3(a.bp(),
  915. a.ob);d.YM(d.totalQuads,a.ob);a.ml(q);this.uD()}},xp:function(a,c){a||b("cc.ParticleBatchNode.reorderChild(): child should be non-null");a instanceof E.o||b("cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children");if(-1===this.u.indexOf(a))E.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");else if(c!=a.zIndex){if(1<this.u.length){var d=this.kW(a,c);if(d.yO!=d.xO){this.u.splice(d.yO,1);this.u.splice(d.xO,0,a);d=a.bp();this.uD();for(var e=0,f=
  916. this.u,g=0;g<f.length;g++)if(f[g]==a){e=a.bp();break}this.textureAtlas.wO(d,a.ob,e);a.v6()}}a.Vv(c)}},Q3:function(a,c){this.removeChild(this.u[ia],c)},Jg:function(a){for(var c=this.u,d=0;d<c.length;d++)c[d].ml(q);E.m.prototype.Jg.call(this,a);this.textureAtlas.TO()},p_:function(a){a=this.textureAtlas.quads[a];a.M.i.x=a.M.i.y=a.K.i.x=a.K.i.y=a.L.i.x=a.L.i.y=a.F.i.x=a.F.i.y=0;this.textureAtlas.Mk(p)},Z:function(){E.A!==E.Ba&&0!=this.textureAtlas.totalQuads&&(E.Hs(this),E.JN(this.q.src,this.q.Q),this.textureAtlas.TM())},
  917. Aa:function(){return this.textureAtlas.texture},$a:function(a){this.textureAtlas.texture=a;var c=this.q;a&&(!a.Ei()&&c.src==E.bc&&c.Q==E.ac)&&(c.src=E.SRC_ALPHA,c.Q=E.ONE_MINUS_SRC_ALPHA)},Qe:function(a,c){c===k?(this.q.src=a.src,this.q.Q=a.Q):(this.q.src=a,this.q.src=c)},Dh:function(){return{src:this.q.src,Q:this.q.Q}},P:function(a){E.A!==E.Ba&&this.kc&&(E.Fj(),this.grid&&this.grid.rf()&&(this.grid.hs(),this.vy()),this.transform(a),this.Z(a),this.grid&&this.grid.rf()&&this.grid.es(this),E.Ej())},
  918. uD:function(){for(var a=0,c=this.u,d=0;d<c.length;d++){var e=c[d];e.RF(a);a+=e.ob}},PW:function(a){E.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from ["+this.textureAtlas.xd+"] to ["+a+"].");this.textureAtlas.LF(a)||E.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")},$X:function(a){for(var c=this.u,d=c.length,e=0;e<d;e++)if(c[e].zIndex>a)return e;return d},kW:function(a,c){for(var d=r,e=r,f=0,g=0,h=0,m=this.u,n=m.length,
  919. s=0;s<n;s++){var v=m[s];if(v.zIndex>c&&!e&&(f=s,e=p,d&&e))break;if(a==v&&(g=s,d=p,e||(h=-1),d&&e))break}e||(f=n);return{xO:f+h,yO:g}},XU:function(a,c,d){a||b("cc.ParticleBatchNode._addChildHelper(): child should be non-null");if(a.parent)return E.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"),q;this.u||(this.u=[]);var e=this.$X(c);this.u.splice(e,0,a);a.tag=d;a.Vv(c);a.parent=this;this.qh&&(a.$(),a.Nh());return e},Mf:function(){this.textureAtlas.texture.Ei()||
  920. (this.q.src=E.SRC_ALPHA,this.q.Q=E.ONE_MINUS_SRC_ALPHA)},JE:A("textureAtlas"),fG:u("textureAtlas")});G=E.rz.prototype;E.j(G,"texture",G.Aa,G.$a);E.rz.create=function(a,c){return new E.rz(a,c)};E.S7=function(a,c,d){this.Ah=a||W(0,0,0,0);this.end=c||W(0,0,0,0);this.duration=d||0};E.R7=E.na.extend({ctor:function(){E.Fi.eM(this)},Yx:function(){E.Fi.Yx(this)},JZ:function(){return E.Fi.jM(this)},QM:function(){return E.Fi.PM(this)},WD:B(r),n_:t(),XD:B(r),o_:t(),aO:t(),MM:t(),wE:B(""),z2:t(),x2:t(),y2:t(),w2:t()});
  921. E.cz=E.na.extend({hc:q,Ra:q,bj:"",Tl:q,ctor:function(){this.Ra=new E.cz.FR;this.Tl=L(0,0)},U:function(){if(!E.fb.Kh){this.hc=E.sb("#imeDispatcherInput");this.hc||(this.hc=E.sQ(),this.hc.setAttribute("type","text"),this.hc.setAttribute("id","imeDispatcherInput"),this.hc.$s(0,0),this.hc.eQ(0,0),this.hc.style.opacity="0",this.hc.style.fontSize="1px",this.hc.setAttribute("tabindex",2),this.hc.style.position="absolute",this.hc.style.top=0,this.hc.style.left=0,document.body.appendChild(this.hc));var a=
  922. this;E.Ha(this.hc,"input",function(){a.sC(a.hc.value)},r);E.Ha(this.hc,"keydown",function(c){c.keyCode===E.lq.W5?(c.stopPropagation(),c.preventDefault()):c.keyCode==E.lq.WM&&(a.os("\n",1),c.stopPropagation(),c.preventDefault())},r);/msie/i.test(navigator.userAgent)&&E.Ha(this.hc,"keyup",function(c){c.keyCode==E.lq.kM&&a.sC(a.hc.value)},r);E.Ha(window,"mousedown",function(c){var d=c.pageY||0;a.Tl.x=c.pageX||0;a.Tl.y=d},r)}},sC:function(a){var c,d;c=this.bj.length<a.length?this.bj.length:a.length;for(d=
  923. 0;d<c&&a[d]===this.bj[d];d++);var e=this.bj.length-d,f=a.length-d;for(c=0;c<e;c++)this.RM();for(c=0;c<f;c++)this.os(a[d+c],1);this.bj=a},os:function(a,c){this.Ra&&a&&!(0>=c)&&this.Ra.de&&this.Ra.de.aO(a,c)},RM:function(){this.Ra&&this.Ra.de&&this.Ra.de.MM()},wE:function(){if(this.Ra&&this.Ra.de){var a=this.Ra.de.wE();return a?a:""}return""},Kaa:function(){if(this.Ra)for(var a=0;a<this.Ra.rg.length;a++);},Iaa:function(){if(this.Ra)for(var a=0;a<this.Ra.rg.length;a++);},Jaa:function(){if(this.Ra)for(var a=
  924. 0;a<this.Ra.rg.length;a++);},Haa:function(){if(this.Ra)for(var a=0;a<this.Ra.rg.length;a++);},eM:function(a){a&&this.Ra&&(-1<this.Ra.rg.indexOf(a)||this.Ra.rg.splice(0,0,a))},jM:function(a){if(!this.Ra||!a||-1==this.Ra.rg.indexOf(a))return r;if(this.Ra.de){if(!this.Ra.de.XD()||!a.WD())return r;this.Ra.de=q;this.aK(a);return p}if(!a.WD())return r;this.aK(a);return p},aK:function(a){E.fb.Kh?(this.Ra.de=a,this.bj=a.string||"",a=prompt("please enter your word:",this.bj),a!=q&&this.sC(a),this.os("\n",
  925. 1)):(this.Ra.de=a,this.bj=a.string||"",this.hc.focus(),this.hc.value=this.bj,this.OV())},OV:function(){/msie/i.test(navigator.userAgent)?(this.hc.style.left=this.Tl.x+"px",this.hc.style.top=this.Tl.y+"px"):this.hc.eQ(this.Tl.x,this.Tl.y)},PM:function(a){if(!this.Ra||!a||this.Ra.de!=a||!a.XD())return r;this.Ra.de=q;E.Wa.focus();return p},Yx:function(a){this.Ra&&a&&-1!=this.Ra.rg.indexOf(a)&&(this.Ra.de&&a==this.Ra.de&&(this.Ra.de=q),E.Ke(this.Ra.rg,a))},cia:function(a){32>a?a==E.lq.kM?this.RM():a==
  926. E.lq.WM&&this.os("\n",1):255>a&&this.os(String.fromCharCode(a),1)}});E.cz.FR=E.na.extend({de:q,rg:q,ctor:function(){this.rg=[]},Iba:function(a){for(var c=0;c<this.rg.length;c++)if(this.rg[c]==a)return c;return q}});E.Fi=new E.cz;document.body?E.Fi.U():E.Ha(window,"load",function(){E.Fi.U()},r);E.i9=E.na.extend({yha:B(r),Aha:B(r),Bha:B(r),zha:B(r),wha:B(r)});
  927. E.dA=E.S.extend({LM:q,Gw:q,Y9:q,Ff:"",Zl:"",Iu:0,wb:"TextFieldTTF",ctor:function(a,c,d,e,f){this.Gw=E.color(127,127,127);E.Fi.eM(this);E.S.prototype.ctor.call(this);f!==k?(this.V1("",c,d,e,f),a&&this.bt(a)):e===k&&d!==k&&(this.md("",c,d),a&&this.bt(a))},w0:A("LM"),w4:u("LM"),q0:A("Iu"),fca:A("Gw"),lja:u("Gw"),V1:function(a,c,d,e,f){switch(arguments.length){case 5:return a&&this.bt(a),this.md(this.Zl,e,f,c,d);case 3:return a&&this.bt(a),this.md(this.Zl,arguments[1],arguments[2]);default:b("Argument must be non-nil ")}},
  928. od:function(a){this.Ff=(a=String(a))||"";this.Ff.length?E.S.prototype.od.call(this,this.Ff):E.S.prototype.od.call(this,this.Zl);this.Iu=this.Ff.length},al:A("Ff"),bt:function(a){this.Zl=a||"";this.Ff.length||E.S.prototype.od.call(this,this.Zl)},d1:A("Zl"),Z:function(a){a=a||E.l;if(this.Ff&&0<this.Ff.length)E.S.prototype.Z.call(this,a);else{var c=this.color;this.color=this.Gw;E.A===E.Ba&&this.uw();E.S.prototype.Z.call(this,a);this.color=c}},P:function(a){this._super(a)},JZ:function(){return E.Fi.jM(this)},
  929. QM:function(){return E.Fi.PM(this)},WD:B(p),n_:t(),XD:B(p),o_:t(),MM:function(){var a=this.Ff.length;0!=a&&(1>=a?(this.Ff="",this.Iu=0,E.S.prototype.od.call(this,this.Zl)):this.string=this.Ff.substring(0,a-1))},Yx:function(){E.Fi.Yx(this)},aO:function(a){var c=a;a=c.indexOf("\n");-1<a&&(c=c.substring(0,a));0<c.length&&(c=this.Ff+c,this.Iu=c.length,this.string=c);-1!=a&&this.QM()},wE:A("Ff"),z2:t(),x2:t(),y2:t(),w2:t()});G=E.dA.prototype;E.j(G,"charCount",G.q0);E.j(G,"placeHolder",G.d1,G.bt);
  930. E.dA.create=function(a,c,d,e,f){return new E.dA(a,c,d,e,f)};E.hv=E.ER;E.kr="Arial";E.jK=r;
  931. E.zc=E.m.extend({ef:r,ke:q,ae:q,pr:r,wb:"MenuItem",ctor:function(a,c){var d=E.m.prototype;d.ctor.call(this);this.ae=this.ke=q;this.ef=this.pr=r;d.ll.call(this,0.5,0.5);this.ke=c||q;if(this.ae=a||q)this.ef=p},Zea:A("pr"),Se:t(),Rf:B(r),eG:function(a,c){this.ke=c;this.ae=a},isEnabled:A("ef"),qe:u("ef"),ys:function(a,c){this.anchorY=this.anchorX=0.5;this.ke=c;this.ae=a;this.ef=p;this.pr=r;return p},rect:function(){var a=this.wa,c=this.N,d=this.Lc;return W(a.x-c.width*d.x,a.y-c.height*d.y,c.width,c.height)},
  932. selected:function(){this.pr=p},Ph:function(){this.pr=r},gja:function(a,c){this.ke=c;this.ae=a},ds:function(){if(this.ef){var a=this.ke,c=this.ae;if(c)if(a&&"string"==typeof c)a[c](this);else a&&"function"==typeof c?c.call(a,this):c(this)}}});G=E.zc.prototype;E.j(G,"enabled",G.isEnabled,G.qe);E.zc.create=function(a,c){return new E.zc(a,c)};
  933. E.Al=E.zc.extend({Qn:q,Wc:q,EX:0,Qq:q,ctor:function(a,c,d){E.zc.prototype.ctor.call(this,c,d);this.Wc=this.Qn=q;this.EX=0;this.Qq=q;a&&(this.xr=1,this.Qq=E.color.WHITE,this.Qn=E.color(126,126,126),this.iy(a),this.cascadeOpacity=this.cascadeColor=p)},y0:A("Qn"),x4:u("Qn"),N0:A("Wc"),iy:function(a){a&&(this.T(a),a.anchorX=0,a.anchorY=0,this.width=a.width,this.height=a.height);this.Wc&&this.removeChild(this.Wc,p);this.Wc=a},qe:function(a){if(this.ef!=a){var c=this.Wc;a?c.color=this.Qq:(this.Qq=c.color,
  934. c.color=this.Qn)}E.zc.prototype.qe.call(this,a)},Ta:function(a){this.Wc.opacity=a},Fg:function(){return this.Wc.opacity},Za:function(a){this.Wc.color=a},Eg:function(){return this.Wc.color},VN:function(a,c,d){this.ys(c,d);this.xr=1;this.Qq=E.color.WHITE;this.Qn=E.color(126,126,126);this.iy(a);return this.cascadeOpacity=this.cascadeColor=p},od:function(a){this.Wc.string=a;this.width=this.Wc.width;this.height=this.Wc.height},al:function(){return this.Wc.string},ds:function(){this.ef&&(this.Zm(),this.scale=
  935. this.xr,E.zc.prototype.ds.call(this))},selected:function(){if(this.ef){E.zc.prototype.selected.call(this);var a=this.uE(E.pu);a?this.Q5(a):this.xr=this.scale;a=E.td.create(0.1,1.2*this.xr);a.py(E.pu);this.Sa(a)}},Ph:function(){if(this.ef){E.zc.prototype.Ph.call(this);this.R5(E.pu);var a=E.td.create(0.1,this.xr);a.py(E.pu);this.Sa(a)}}});G=E.Al.prototype;E.j(G,"string",G.al,G.od);E.j(G,"disabledColor",G.y0,G.x4);E.j(G,"label",G.N0,G.iy);E.Al.create=function(a,c,d){return new E.Al(a,c,d)};
  936. E.iH=E.Al.extend({ctor:function(a,c,d,e,f,g,h){var m;a&&0<a.length&&(m=E.Uh.create(a,c,d,e,f));E.Al.prototype.ctor.call(this,m,g,h)},md:function(a,c,d,e,f,g,h){(!a||0==a.length)&&b("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0");var m=new E.Uh;m.md(a,c,d,e,f);this.VN(m,g,h);return p}});E.iH.create=function(a,c,d,e,f,g,h){return new E.iH(a,c,d,e,f,g,h)};
  937. E.zl=E.Al.extend({Nb:q,Vb:q,ctor:function(a,c,d){var e;a&&0<a.length?(this.Vb=E.kr,this.Nb=E.hv,e=E.S.create(a,this.Vb,this.Nb)):(this.Nb=0,this.Vb="");E.Al.prototype.ctor.call(this,e,c,d)},md:function(a,c,d){(!a||0==a.length)&&b("Value should be non-null and its length should be greater than 0");this.Vb=E.kr;this.Nb=E.hv;a=E.S.create(a,this.Vb,this.Nb);this.VN(a,c,d);return p},hy:function(a){this.Nb=a;this.eL()},AE:A("Nb"),gy:function(a){this.Vb=a;this.eL()},zE:A("Vb"),eL:function(){var a=E.S.create(this.Wc.string,
  938. this.Vb,this.Nb);this.iy(a)}});E.zl.hy=function(a){E.hv=a};E.zl.fontSize=function(){return E.hv};E.zl.gy=function(a){E.jK&&(E.kr="");E.kr=a;E.jK=p};G=E.zl.prototype;E.j(G,"fontSize",G.AE,G.hy);E.j(G,"fontName",G.zE,G.gy);E.zl.fontName=function(){return E.kr};E.zl.create=function(a,c,d){return new E.zl(a,c,d)};
  939. E.Wi=E.zc.extend({ed:q,Ge:q,ze:q,ctor:function(a,c,d,e,f){E.zc.prototype.ctor.call(this);this.ze=this.Ge=this.ed=q;if(c!==k){var g,h,m;f!==k?(g=d,m=e,h=f):e!==k&&"function"===typeof e?(g=d,m=e):e!==k&&"function"===typeof d?(h=e,m=d,g=E.D.create(c)):d===k&&(g=E.D.create(c));this.XN(a,c,g,m,h)}},Z0:A("ed"),YF:function(a){this.ed!=a&&(a&&(this.T(a,0,E.aS),a.anchorX=0,a.anchorY=0),this.ed&&this.removeChild(this.ed,p),this.ed=a,this.width=this.ed.width,this.height=this.ed.height,this.qw(),a.kt&&!a.la&&
  940. a.Vd(function(a){this.width=a.width;this.height=a.height},this))},m1:A("Ge"),bG:function(a){this.Ge!=a&&(a&&(this.T(a,0,E.NS),a.anchorX=0,a.anchorY=0),this.Ge&&this.removeChild(this.Ge,p),this.Ge=a,this.qw())},z0:A("ze"),VF:function(a){this.ze!=a&&(a&&(this.T(a,0,E.YQ),a.anchorX=0,a.anchorY=0),this.ze&&this.removeChild(this.ze,p),this.ze=a,this.qw())},XN:function(a,c,d,e,f){this.ys(e,f);this.YF(a);this.bG(c);this.VF(d);if(a=this.ed)this.width=a.width,this.height=a.height,a.kt&&!a.la&&a.Vd(function(a){this.width=
  941. a.width;this.height=a.height;this.cascadeOpacity=this.cascadeColor=p},this);return this.cascadeOpacity=this.cascadeColor=p},Za:function(a){this.ed.color=a;this.Ge&&(this.Ge.color=a);this.ze&&(this.ze.color=a)},Eg:function(){return this.ed.color},Ta:function(a){this.ed.opacity=a;this.Ge&&(this.Ge.opacity=a);this.ze&&(this.ze.opacity=a)},Fg:function(){return this.ed.opacity},selected:function(){E.zc.prototype.selected.call(this);this.ed&&(this.ze&&(this.ze.visible=r),this.Ge?(this.ed.visible=r,this.Ge.visible=
  942. p):this.ed.visible=p)},Ph:function(){E.zc.prototype.Ph.call(this);this.ed&&(this.ed.visible=p,this.Ge&&(this.Ge.visible=r),this.ze&&(this.ze.visible=r))},qe:function(a){this.ef!=a&&(E.zc.prototype.qe.call(this,a),this.qw())},qw:function(){var a=this.ed,c=this.Ge,d=this.ze;this.ef?(a&&(a.visible=p),c&&(c.visible=r),d&&(d.visible=r)):d?(a&&(a.visible=r),c&&(c.visible=r),d&&(d.visible=p)):(a&&(a.visible=p),c&&(c.visible=r))}});G=E.Wi.prototype;E.j(G,"normalImage",G.Z0,G.YF);
  943. E.j(G,"selectedImage",G.m1,G.bG);E.j(G,"disabledImage",G.z0,G.VF);E.Wi.create=function(a,c,d,e,f){return new E.Wi(a,c,d,e,f||k)};
  944. E.jH=E.Wi.extend({ctor:function(a,c,d,e,f){var g=q,h=q,m=q,n=q,s=q;a===k?E.Wi.prototype.ctor.call(this):(g=E.D.create(a),c&&(h=E.D.create(c)),e===k?n=d:f===k?(n=d,s=e):f&&(m=E.D.create(d),n=e,s=f),E.Wi.prototype.ctor.call(this,g,h,m,n,s))},Wja:function(a){this.YF(E.D.create(a))},rka:function(a){this.bG(E.D.create(a))},vja:function(a){this.VF(E.D.create(a))},Bea:function(a,c,d,e,f){var g=q,h=q,m=q;a&&(g=E.D.create(a));c&&(h=E.D.create(c));d&&(m=E.D.create(d));return this.XN(g,h,m,e,f)}});
  945. E.jH.create=function(a,c,d,e,f){return new E.jH(a,c,d,e,f)};
  946. E.kz=E.zc.extend({pd:q,rh:0,Rd:q,ce:q,ctor:function(){E.zc.prototype.ctor.call(this);this.rh=0;this.pd=[];this.Rd=0;this.ce=E.color.WHITE;0<arguments.length&&this.WE(Array.prototype.slice.apply(arguments))},Fg:A("Rd"),Ta:function(a){this.Rd=a;if(this.pd&&0<this.pd.length)for(var c=0;c<this.pd.length;c++)this.pd[c].opacity=a;this.ce.a=a},Eg:function(){var a=this.ce;return E.color(a.r,a.g,a.b,a.a)},Za:function(a){var c=this.ce;c.r=a.r;c.g=a.g;c.b=a.b;if(this.pd&&0<this.pd.length)for(c=0;c<this.pd.length;c++)this.pd[c].Za(a);
  947. a.a!==k&&!a.aM&&this.Ta(a.a)},n1:A("rh"),my:function(a){if(a!=this.rh){this.rh=a;(a=this.Eh(E.NG))&&a.JF(r);a=this.pd[this.rh];this.T(a,0,E.NG);var c=a.width,d=a.height;this.width=c;this.height=d;a.R(c/2,d/2)}},Tda:A("pd"),xka:u("pd"),WE:function(a){var c=a.length;"function"===typeof a[a.length-2]?(this.ys(a[a.length-2],a[a.length-1]),c-=2):"function"===typeof a[a.length-1]?(this.ys(a[a.length-1],q),c-=1):this.ys(q,q);for(var d=this.pd,e=d.length=0;e<c;e++)a[e]&&d.push(a[e]);this.rh=E.CI;this.my(0);
  948. return this.cascadeOpacity=this.cascadeColor=p},D$:function(a){this.pd.push(a)},ds:function(){this.ef&&this.my((this.rh+1)%this.pd.length);E.zc.prototype.ds.call(this)},selected:function(){E.zc.prototype.selected.call(this);this.pd[this.rh].selected()},Ph:function(){E.zc.prototype.Ph.call(this);this.pd[this.rh].Ph()},qe:function(a){if(this.ef!=a){E.zc.prototype.qe.call(this,a);var c=this.pd;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].enabled=a}},Xia:function(){return this.pd[this.rh]},$:function(){E.m.prototype.$.call(this);
  949. this.my(this.rh)}});G=E.kz.prototype;E.j(G,"selectedIndex",G.n1,G.my);E.kz.create=function(){0<arguments.length&&arguments[arguments.length-1]==q&&E.log("parameters should not be ending with null in Javascript");var a=new E.kz;a.WE(Array.prototype.slice.apply(arguments));return a};E.nq=0;E.mq=1;E.o8=-128;E.RG=5;
  950. E.Xj=E.fc.extend({enabled:r,ce:q,Rd:0,Pc:q,wh:-1,LL:q,wb:"Menu",ctor:function(a){E.fc.prototype.ctor.call(this);this.ce=E.color.WHITE;this.enabled=r;this.Rd=255;this.Pc=q;this.wh=-1;this.LL=E.sa.create({event:E.sa.ju,jt:p,rp:this.yX,Ms:this.CX,Ls:this.AX,Ks:this.zX});0<arguments.length&&arguments[arguments.length-1]==q&&E.log("parameters should not be ending with null in Javascript");var c=arguments.length,d;if(0==c)d=[];else if(1==c)d=a instanceof Array?a:[a];else if(1<c){d=[];for(var e=0;e<c;e++)arguments[e]&&
  951. d.push(arguments[e])}this.RN(d)},$:function(){var a=this.LL;a.jf||E.qa.addListener(a,this);E.m.prototype.$.call(this)},Eg:function(){var a=this.ce;return E.color(a.r,a.g,a.b,a.a)},Za:function(a){var c=this.ce;c.r=a.r;c.g=a.g;c.b=a.b;if((c=this.u)&&0<c.length)for(var d=0;d<c.length;d++)c[d].Za(a);a.a!==k&&!a.aM&&this.Ta(a.a)},Fg:A("Rd"),Ta:function(a){this.Rd=a;var c=this.u;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].Ta(a);this.ce.a=a},isEnabled:A("enabled"),qe:u("enabled"),WE:function(a){var c=
  952. [];if(a)for(var d=0;d<a.length;d++)a[d]&&c.push(a[d]);return this.RN(c)},RN:function(a){if(E.fc.prototype.U.call(this)){this.enabled=p;var c=E.rt;this.R(c.width/2,c.height/2);this.Yd(c);this.ll(0.5,0.5);this.gx(p);if(a)for(c=0;c<a.length;c++)this.T(a[c],c);this.Pc=q;this.wh=E.nq;return this.cascadeOpacity=this.cascadeColor=p}return r},T:function(a,c,d){a instanceof E.zc||b("cc.Menu.addChild() : Menu only supports MenuItem objects as children");E.fc.prototype.T.call(this,a,c,d)},O$:function(){this.wZ(E.RG)},
  953. wZ:function(a){var c=-a,d=this.u,e,f,g,h;if(d&&0<d.length){f=0;for(e=d.length;f<e;f++)c+=d[f].height*d[f].scaleY+a;var m=c/2;f=0;for(e=d.length;f<e;f++)h=d[f],g=h.height,c=h.scaleY,h.R(0,m-g*c/2),m-=g*c+a}},L$:function(){this.vZ(E.RG)},vZ:function(a){var c=-a,d=this.u,e,f,g,h;if(d&&0<d.length){e=0;for(f=d.length;e<f;e++)c+=d[e].width*d[e].scaleX+a;var m=-c/2;e=0;for(f=d.length;e<f;e++)h=d[e],c=h.scaleX,g=d[e].width,h.R(m+g*c/2,0),m+=g*c+a}},M$:function(){0<arguments.length&&arguments[arguments.length-
  954. 1]==q&&E.log("parameters should not be ending with null in Javascript");for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);var d=-5,e=0,f=0,g=0,h,m,n,s=this.u;if(s&&0<s.length){c=0;for(n=s.length;c<n;c++)if(!(e>=a.length)&&(h=a[e]))m=s[c].height,f=f>=m||isNaN(m)?f:m,++g,g>=h&&(d+=f+5,f=g=0,++e)}var v=E.B.oa(),w=h=f=e=0,y=0,d=d/2;if(s&&0<s.length){c=0;for(n=s.length;c<n;c++){var x=s[c];0==h&&(h=a[e],y=w=v.width/(1+h));m=x.yk();f=f>=m||isNaN(m)?f:m;x.R(y-v.width/2,d-m/2);y+=w;++g;g>=h&&(d-=
  955. f+5,f=h=g=0,++e)}}},N$:function(){0<arguments.length&&arguments[arguments.length-1]==q&&E.log("parameters should not be ending with null in Javascript");var a=[],c;for(c=0;c<arguments.length;c++)a.push(arguments[c]);var d=[],e=[],f=-10,g=-5,h=0,m=0,n=0,s,v,w,y,x=this.u;if(x&&0<x.length){c=0;for(w=x.length;c<w;c++)if(v=x[c],!(h>=a.length)&&(s=a[h]))y=v.width,m=m>=y||isNaN(y)?m:y,g+=v.height+5,++n,n>=s&&(d.push(m),e.push(g),f+=m+10,m=n=0,g=-5,++h)}g=E.B.oa();s=m=h=0;var f=-f/2,z=0;if(x&&0<x.length){c=
  956. 0;for(w=x.length;c<w;c++)v=x[c],0==s&&(s=a[h],z=e[h]),y=v.eh(),m=m>=y||isNaN(y)?m:y,v.R(f+d[h]/2,z-g.height/2),z-=v.height+10,++n,n>=s&&(f+=m+5,m=s=n=0,++h)}},removeChild:function(a,c){a!=q&&(a instanceof E.zc?(this.Pc==a&&(this.Pc=q),E.m.prototype.removeChild.call(this,a,c)):E.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))},yX:function(a,c){var d=c.yd;if(d.wh!=E.nq||!d.kc||!d.enabled)return r;for(var e=d.parent;e!=q;e=e.parent)if(!e.kc)return r;d.Pc=d.BK(a);return d.Pc?
  957. (d.wh=E.mq,d.Pc.selected(),p):r},AX:function(a,c){var d=c.yd;d.wh!==E.mq?E.log("cc.Menu.onTouchEnded(): invalid state"):(d.Pc&&(d.Pc.Ph(),d.Pc.ds()),d.wh=E.nq)},zX:function(a,c){var d=c.yd;d.wh!==E.mq?E.log("cc.Menu.onTouchCancelled(): invalid state"):(this.Pc&&d.Pc.Ph(),d.wh=E.nq)},CX:function(a,c){var d=c.yd;if(d.wh!==E.mq)E.log("cc.Menu.onTouchMoved(): invalid state");else{var e=d.BK(a);e!=d.Pc&&(d.Pc&&d.Pc.Ph(),d.Pc=e,d.Pc&&d.Pc.selected())}},yb:function(){this.wh==E.mq&&(this.Pc&&(this.Pc.Ph(),
  958. this.Pc=q),this.wh=E.nq);E.m.prototype.yb.call(this)},Se:t(),Rf:B(r),BK:function(a){a=a.rs();var c=this.u,d;if(c&&0<c.length)for(var e=0;e<c.length;e++)if(d=c[e],d.kc&&d.isEnabled()){var f=d.fE(a),g=d.rect();g.x=0;g.y=0;if(E.PO(g,f))return d}return q}});G=E.Xj.prototype;E.Xj.create=function(a){var c=arguments.length;0<c&&arguments[c-1]==q&&E.log("parameters should not be ending with null in Javascript");return 0==c?new E.Xj:1==c?new E.Xj(a):new E.Xj(Array.prototype.slice.call(arguments,0))};E.X8=0;E.T8=1;E.W8=2;E.U8=3;E.V8=4;E.S8=5;E.sla=function(a,c,d){var e=2;if(e+1>c)return r;a=new E.EQ(a);a.jy(e);d.type=a.O();e+=10;if(e+4+1>c)return r;a.jy(e);d.width=a.M3();d.height=a.L3();d.pixelDepth=a.O();if(e+5+1>c)return r;c=a.O();d.aN=0;c&32&&(d.aN=1);return p};E.tla=function(a,c,d){var e,f;e=0|d.pixelDepth/2;f=d.height*d.width*e;if(18+f>c)return r;d.qf=E.tu(a,18,18+f);if(3<=e)for(a=0;a<f;a+=e)c=d.qf[a],d.qf[a]=d.qf[a+2],d.qf[a+2]=c;return p};
  959. E.vla=function(a){var c,d;if(8!==a.pixelDepth){var e=a.pixelDepth/8,f=new Uint8Array(a.height*a.width);if(f!==q){for(d=c=0;d<a.width*a.height;c+=e,d++)f[d]=0.3*a.qf[c]+0.59*a.qf[c+1]+0.11*a.qf[c+2];a.pixelDepth=8;a.type=3;a.qf=f}}};E.qla=function(a){a&&(a.qf=q)};
  960. E.ula=function(a,c,d){var e,f,g,h=0,m=0,n=0,s=[],v=0,w=18;e=d.pixelDepth/8;f=d.height*d.width;for(g=0;g<f;g++){if(0!=v)v--,m=0!=n;else{if(w+1>c)break;v=a[w];w+=1;(n=v&128)&&(v-=128);m=0}if(!m){if(w+e>c)break;s=E.tu(a,w,w+e);w+=e;3<=e&&(m=s[0],s[0]=s[2],s[2]=m)}for(m=0;m<e;m++)d.qf[h+m]=s[m];h+=e}return p};E.rla=function(a){for(var c=a.width*(a.pixelDepth/8),d=0;d<a.height/2;d++){var e=E.tu(a.qf,d*c,d*c+c);E.NI(E.tu(a.qf,(a.height-(d+1))*c,c),a.qf,d*c);E.NI(e,a.qf,(a.height-(d+1))*c)}a.aN=0};
  961. E.tu=function(a,c,d){return a instanceof Array?a.slice(c,d):a.subarray(c,d)};E.NI=function(a,c,d){for(var e=0;e<a.length;e++)c[d+e]=a[e]};
  962. E.EQ=E.na.extend({yn:q,va:0,ctor:u("yn"),dja:function(a){this.yn=a;this.va=0},Uba:A("yn"),rV:function(a){this.va+Math.ceil(a/8)<this.On.length||b(Error("Index out of bound"))},HV:function(a,c){var d=a+c+1,e=d>>3;this.rV(d);var d=Math.pow(2,c-1)-1,f=this.vC(a+c,1,e),g=this.vC(a,c,e),h=0,m=2,n=0;do for(var s=this.Mv(++n,e),v=a%8||8,w=1<<v;w>>=1;)s&w&&(h+=1/m),m*=2;while(a-=v);this.va+=e;return g==(d<<1)+1?h?NaN:f?-Infinity:Infinity:(1+-2*f)*(g||h?!g?Math.pow(2,-d+1)*h:Math.pow(2,g-d)*(1+h):0)},Mv:function(a,
  963. c){return this.On[this.va+c-a-1]},Ou:function(a,c){var d=this.vC(0,a,a/8),e=Math.pow(2,a);this.va+=a/8;return c&&d>=e/2?d-e:d},KY:function(a,c){for(++c;--c;a=1073741824==((a%=2147483648)&1073741824)?2*a:2*(a-1073741824)+2147483648);return a},vC:function(a,c,d){var e=(a+c)%8,f=a%8,g=d-(a>>3)-1;a=d+(-(a+c)>>3);var h=g-a;c=this.Mv(g,d)>>f&(1<<(h?8-f:c))-1;for(h&&e&&(c+=(this.Mv(a++,d)&(1<<e)-1)<<(h--<<3)-f);h;)c+=this.KY(this.Mv(a++,d),(h--<<3)-f);return c},kia:function(){return this.Ou(32,p)},L3:function(){return this.Ou(32,
  964. r)},mia:function(){return this.HV(23,8)},lia:function(){return this.Ou(16,p)},M3:function(){return this.Ou(16,r)},O:function(){var a=this.On[this.va];this.va+=1;return a},hia:function(a,c){return this.yn instanceof Array?this.yn.slice(a,c):this.yn.subarray(a,c)},jy:u("va"),Lm:A("va")});E.hu=0;E.El=1;E.gu=2;
  965. E.Sz=E.m.extend({Ib:q,uF:q,qp:q,Yc:q,Hb:q,wj:q,wb:"TMXTiledMap",ctor:function(a,c){E.m.prototype.ctor.call(this);this.Yc=P(0,0);this.Hb=P(0,0);c!==k?this.ZE(a,c):a!==k&&this.YE(a)},CE:function(){return P(this.Yc.width,this.Yc.height)},wP:function(a){this.Yc.width=a.width;this.Yc.height=a.height},AB:function(){return this.Yc.width},OC:function(a){this.Yc.width=a},zB:function(){return this.Yc.height},NC:function(a){this.Yc.height=a},gp:function(){return P(this.Hb.width,this.Hb.height)},MP:function(a){this.Hb.width=
  966. a.width;this.Hb.height=a.height},jr:function(){return this.Hb.width},Ir:function(a){this.Hb.width=a},ir:function(){return this.Hb.height},Hr:function(a){this.Hb.height=a},Zca:A("uF"),Sja:u("uF"),mN:A("qp"),xP:u("qp"),Ww:A("Ib"),ky:u("Ib"),YE:function(a){(!a||0==a.length)&&b("cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.");this.height=this.width=0;a=E.yq.create(a);if(!a)return r;var c=a.lm;(!c||0===c.length)&&E.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");
  967. this.ZI(a);return p},ZE:function(a,c){this.height=this.width=0;var d=E.yq.create(a,c),e=d.lm;(!e||0===e.length)&&E.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");this.ZI(d);return p},ZI:function(a){this.Yc=a.CE();this.Hb=a.gp();this.uF=a.orientation;this.qp=a.mN();this.Ib=a.Ib;this.wj=a.wj;var c=0,d=a.ge;if(d)for(var e=q,f=0,g=d.length;f<g;f++)if((e=d[f])&&e.visible)e=this.IX(e,a),this.T(e,c,c),this.width=Math.max(this.width,e.width),this.height=Math.max(this.height,
  968. e.height),c++},P$:function(){for(var a=[],c=this.u,d=0,e=c.length;d<e;d++){var f=c[d];f&&f instanceof E.xq&&a.push(f)}return a},Pca:function(a){(!a||0===a.length)&&b("cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.");for(var c=this.u,d=0;d<c.length;d++){var e=c[d];if(e&&e.Ex==a)return e}return q},hda:function(a){(!a||0===a.length)&&b("cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.");if(this.qp)for(var c=0;c<this.qp.length;c++){var d=
  969. this.qp[c];if(d&&d.ws==a)return d}return q},FE:function(a){return this.Ib[a.toString()]},eia:function(a){return this.wj[a]},IX:function(a,c){var d=this.XY(a,c),d=E.xq.create(d,a,c);a.AO=r;d.r5();return d},XY:function(a,c){var d=a.pa,e=c.lm;if(e)for(var f=e.length-1;0<=f;f--){var g=e[f];if(g)for(var h=0;h<d.height;h++)for(var m=0;m<d.width;m++){var n=a.He[m+d.width*h];if(0!=n&&(n&E.Tz)>>>0>=g.Gm)return g}}E.log("cocos2d: Warning: TMX Layer "+a.name+" has no tiles");return q}});G=E.Sz.prototype;
  970. E.j(G,"mapWidth",G.AB,G.OC);E.j(G,"mapHeight",G.zB,G.NC);E.j(G,"tileWidth",G.jr,G.Ir);E.j(G,"tileHeight",G.ir,G.Hr);E.Sz.create=function(a,c){return new E.Sz(a,c)};E.ST=0;E.a9=1;E.Z8=2;E.c9=3;E.b9=4;E.d9=5;E.zq=2147483648;E.Aq=1073741824;E.UH=536870912;E.VH=(E.zq|E.Aq|E.UH)>>>0;E.Tz=~E.VH>>>0;E.Dl=E.na.extend({Ib:q,name:"",pa:q,He:q,visible:q,Rd:q,AO:p,Vl:1E5,Ul:0,offset:q,ctor:function(){this.Ib=[];this.name="";this.pa=q;this.He=[];this.visible=p;this.Rd=0;this.AO=p;this.Vl=1E5;this.Ul=0;this.offset=L(0,0)},Ww:A("Ib"),ky:u("Ib")});
  971. E.RT=E.na.extend({name:"",Gm:0,Hb:q,ht:0,margin:0,SP:"",hx:q,ctor:function(){this.Hb=P(0,0);this.hx=P(0,0)},Vs:function(a){var c=W(0,0,0,0);c.width=this.Hb.width;c.height=this.Hb.height;a&=E.Tz;a-=parseInt(this.Gm,10);var d=parseInt((this.hx.width-2*this.margin+this.ht)/(this.Hb.width+this.ht),10);c.x=parseInt(a%d*(this.Hb.width+this.ht)+this.margin,10);c.y=parseInt(parseInt(a/d,10)*(this.Hb.height+this.ht)+this.margin,10);return c}});
  972. E.yq=E.$t.extend({Ib:q,orientation:q,parentElement:q,Ux:q,Dx:0,mG:r,Hp:q,hE:q,Av:q,Yc:q,Hb:q,ge:q,lm:q,wj:q,Qv:"",hJ:0,ctor:function(a,c){E.$t.prototype.ctor.apply(this);this.Yc=P(0,0);this.Hb=P(0,0);this.ge=[];this.lm=[];this.Av=[];this.Ib=[];this.wj={};this.hJ=0;c!==k?this.ZE(a,c):a!==k&&this.YE(a)},lda:A("orientation"),$ja:u("orientation"),CE:function(){return P(this.Yc.width,this.Yc.height)},wP:function(a){this.Yc.width=a.width;this.Yc.height=a.height},AB:function(){return this.Yc.width},OC:function(a){this.Yc.width=
  973. a},zB:function(){return this.Yc.height},NC:function(a){this.Yc.height=a},gp:function(){return P(this.Hb.width,this.Hb.height)},MP:function(a){this.Hb.width=a.width;this.Hb.height=a.height},jr:function(){return this.Hb.width},Ir:function(a){this.Hb.width=a},ir:function(){return this.Hb.height},Hr:function(a){this.Hb.height=a},Uca:A("ge"),I4:function(a){this.ge.push(a)},bea:A("lm"),i5:function(a){this.lm.push(a)},mN:A("Av"),xP:function(a){this.Av.push(a)},pda:A("parentElement"),eka:u("parentElement"),
  974. qda:A("Ux"),fka:u("Ux"),Qca:A("Dx"),Lja:u("Dx"),Sda:A("mG"),wka:u("mG"),Ww:A("Ib"),ky:u("Ib"),YE:function(a){this.tK(a,q);return this.BF(a)},ZE:function(a,c){this.tK(q,c);return this.r3(a)},BF:function(a,c){var d=(c=c||r)?a:E.V.Ed(a);d||b("Please load the resource first : "+a);var e,f,d=this.cC(d).documentElement;e=d.getAttribute("version");f=d.getAttribute("orientation");if("map"==d.nodeName&&("1.0"!=e&&e!==q&&E.log("cocos2d: TMXFormat: Unsupported TMX version:"+e),"orthogonal"==f?this.orientation=
  975. E.hu:"isometric"==f?this.orientation=E.gu:"hexagonal"==f?this.orientation=E.El:f!==q&&E.log("cocos2d: TMXFomat: Unsupported orientation:"+f),e=P(0,0),e.width=parseFloat(d.getAttribute("width")),e.height=parseFloat(d.getAttribute("height")),this.wP(e),e=P(0,0),e.width=parseFloat(d.getAttribute("tilewidth")),e.height=parseFloat(d.getAttribute("tileheight")),this.MP(e),f=d.querySelectorAll("map \x3e properties \x3e property"))){var g={};for(e=0;e<f.length;e++)g[f[e].getAttribute("name")]=f[e].getAttribute("value");
  976. this.Ib=g}g=d.getElementsByTagName("tileset");"map"!==d.nodeName&&(g=[],g.push(d));for(e=0;e<g.length;e++){f=g[e];var h=f.getAttribute("source");if(h)f=c?E.path.join(this.Qv,h):E.path.Qo(a,h),this.BF(f);else{h=new E.RT;h.name=f.getAttribute("name")||"";h.Gm=parseInt(f.getAttribute("firstgid"))||0;h.ht=parseInt(f.getAttribute("spacing"))||0;h.margin=parseInt(f.getAttribute("margin"))||0;var m=P(0,0);m.width=parseFloat(f.getAttribute("tilewidth"));m.height=parseFloat(f.getAttribute("tileheight"));h.Hb=
  977. m;var m=f.getElementsByTagName("image")[0].getAttribute("source"),n=-1;this.Hp&&(n=this.Hp.lastIndexOf("/"));h.SP=-1!==n?this.Hp.substr(0,n+1)+m:this.Qv+(this.Qv?"/":"")+m;this.i5(h);if(m=f.getElementsByTagName("tile"))for(n=0;n<m.length;n++){f=m[n];this.Ux=parseInt(h.Gm)+parseInt(f.getAttribute("id")||0);var s=f.querySelectorAll("properties \x3e property");if(s){var v={};for(f=0;f<s.length;f++){var w=s[f].getAttribute("name");v[w]=s[f].getAttribute("value")}this.wj[this.Ux]=v}}}}if(g=d.getElementsByTagName("layer"))for(e=
  978. 0;e<g.length;e++){m=g[e];n=m.getElementsByTagName("data")[0];h=new E.Dl;h.name=m.getAttribute("name");f=P(0,0);f.width=parseFloat(m.getAttribute("width"));f.height=parseFloat(m.getAttribute("height"));h.pa=f;f=m.getAttribute("visible");h.visible="0"!=f;f=m.getAttribute("opacity")||1;h.Rd=f?parseInt(255*parseFloat(f)):255;h.offset=L(parseFloat(m.getAttribute("x"))||0,parseFloat(m.getAttribute("y"))||0);s="";for(f=0;f<n.childNodes.length;f++)s+=n.childNodes[f].nodeValue;s=s.trim();f=n.getAttribute("compression");
  979. v=n.getAttribute("encoding");if(f&&"gzip"!==f&&"zlib"!==f)return E.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),q;switch(f){case "gzip":h.He=E.hQ(s,4);break;case "zlib":f=new Zlib.mn(E.ia.tl.HM(s,1));h.He=E.n6(f.IM());break;case q:case "":if("base64"==v)h.He=E.ia.tl.HM(s,4);else if("csv"===v){h.He=[];f=s.split(",");for(n=0;n<f.length;n++)h.He.push(parseInt(f[n]))}else{f=n.getElementsByTagName("tile");h.He=[];for(n=0;n<f.length;n++)h.He.push(parseInt(f[n].getAttribute("gid")))}break;
  980. default:this.Dx==E.Dl.DG&&E.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")}if(m=m.querySelectorAll("properties \x3e property")){n={};for(f=0;f<m.length;f++)n[m[f].getAttribute("name")]=m[f].getAttribute("value");h.Ib=n}this.I4(h)}if(g=d.getElementsByTagName("objectgroup"))for(e=0;e<g.length;e++){m=g[e];h=new E.QT;h.ws=m.getAttribute("name");h.U4(L(parseFloat(m.getAttribute("x"))*this.gp().width||0,parseFloat(m.getAttribute("y"))*this.gp().height||0));if(n=m.querySelectorAll("objectgroup \x3e properties \x3e property"))for(f=
  981. 0;f<n.length;f++)s={},s[n[f].getAttribute("name")]=n[f].getAttribute("value"),h.Ib=s;if(m=m.querySelectorAll("object"))for(f=0;f<m.length;f++){s=m[f];n={};n.name=s.getAttribute("name")||"";n.type=s.getAttribute("type")||"";n.x=parseInt(s.getAttribute("x")||0)+h.qN().x;v=parseInt(s.getAttribute("y")||0)+h.qN().y;n.width=parseInt(s.getAttribute("width"))||0;n.height=parseInt(s.getAttribute("height"))||0;n.y=parseInt(this.CE().height*this.gp().height)-v-n.height;if(v=s.querySelectorAll("properties \x3e property"))for(w=
  982. 0;w<v.length;w++)n[v[w].getAttribute("name")]=v[w].getAttribute("value");if((v=s.querySelectorAll("polygon"))&&0<v.length)(v=v[0].getAttribute("points"))&&(n.polygonPoints=this.TK(v));if((s=s.querySelectorAll("polyline"))&&0<s.length)(s=s[0].getAttribute("points"))&&(n.polylinePoints=this.TK(s));h.P4(n)}this.xP(h)}return d},TK:function(a){if(!a)return q;var c=[];a=a.split(" ");for(var d=0;d<a.length;d++){var e=a[d].split(",");c.push({x:e[0],y:e[1]})}return c},r3:function(a){return this.BF(a,p)},Zda:A("wj"),
  983. Eka:function(a){this.wj.push(a)},ica:A("hE"),qja:u("hE"),Uda:A("Hp"),zka:u("Hp"),tK:function(a,c){this.lm.length=0;this.ge.length=0;this.Hp=a;c&&(this.Qv=c);this.Av.length=0;this.Ib.length=0;this.wj.length=0;this.hE="";this.mG=r;this.Dx=E.Dl.DG;this.parentElement=E.ST;this.hJ=0}});G=E.yq.prototype;E.j(G,"mapWidth",G.AB,G.OC);E.j(G,"mapHeight",G.zB,G.NC);E.j(G,"tileWidth",G.jr,G.Ir);E.j(G,"tileHeight",G.ir,G.Hr);E.yq.create=function(a,c){return new E.yq(a,c)};E.V.Oj(["tmx","tsx"],E.PL);E.Dl.DG=1;
  984. E.Dl.T6=2;E.Dl.U6=4;E.Dl.V6=8;E.QT=E.na.extend({Ib:q,ws:"",Jv:q,so:q,ctor:function(){this.ws="";this.Jv=L(0,0);this.Ib=[];this.so=[]},qN:function(){return L(this.Jv)},U4:function(a){this.Jv.x=a.x;this.Jv.y=a.y},Ww:A("Ib"),ky:function(a){this.Ib.push(a)},Kca:function(){return this.ws.toString()},Ija:u("ws"),fia:function(a){return this.Ib[a]},vha:function(a){if(this.so&&0<this.so.length)for(var c=this.so,d=0,e=c.length;d<e;d++){var f=c[d].name;if(f&&f==a)return c[d]}return q},ida:A("so"),P4:function(a){this.so.push(a)}});E.xq=E.ud.extend({Jd:q,cg:q,Hj:q,Ib:q,Ex:"",pa:q,Wb:q,Rd:255,Vl:q,Ul:q,DD:q,xD:q,B9:q,ph:q,Md:q,bh:q,Zd:q,$d:q,QA:q,ew:q,fw:q,Rk:0,gw:0,MK:1E7,wb:"TMXLayer",ctor:function(a,c,d){E.ud.prototype.ctor.call(this);this.zd=[];this.pa=P(0,0);this.Wb=P(0,0);if(E.A===E.Ba){var e=E.Wa,f=E.Sb("canvas");f.width=e.width;f.height=e.height;this.Zd=f;this.$d=this.Zd.getContext("2d");var g=new E.ca;g.Rc(f);g.ub();this.QA=g;this.width=e.width;this.height=e.height;this.Fn=this}d!==k&&this.Y1(a,c,d)},Yd:function(a,c){var d=
  985. this.N;E.m.prototype.Yd.call(this,a,c);if(E.A===E.Ba){var e=this.Zd,f=E.qb();e.width=0|1.5*d.width*f;e.height=0|1.5*d.height*f;this.Hj===E.El?this.$d.translate(0,e.height-0.5*this.Wb.height):this.$d.translate(0,e.height);d=this.QA.N;d.width=e.width;d.height=e.height;d=e.width*e.height;if(d>this.MK){this.ew||(this.ew=[]);this.fw||(this.fw=[]);this.Rk=Math.ceil(d/this.MK);d=this.ew;for(f=0;f<this.Rk;f++){d[f]||(d[f]=document.createElement("canvas"),this.fw[f]=d[f].getContext("2d"));var g=d[f];g.width=
  986. this.gw=Math.round(e.width/this.Rk);g.height=e.height}for(f=this.Rk;f<d.length;f++)g.width=0,g.height=0}else this.Rk=0}},Aa:q,hr:A("QA"),P:q,qm:function(a){var c=a||E.l;if(this.kc){c.save();this.transform(a);var d,e=this.u;if(this.qg){var f=E.view;f.Xv();var g=this.$d,h=this.Zd;g.clearRect(0,0,h.width,-h.height);g.save();g.translate(this.Cb.x,-this.Cb.y);if(e){this.Sc();for(d=0;d<e.length;d++)e[d]&&e[d].P(g)}g.restore();if(0<this.Rk){e=this.gw;g=h.height;for(d=0;d<this.Rk;d++)this.fw[d].drawImage(h,
  987. d*e,0,e,g,0,0,e,g)}f.Pv();this.qg=r}this.Z(a);c.restore()}},Z:q,Ml:function(a){a=a||E.l;var c=0|-this.Cb.x,d=0|-this.Cb.y,e=E.view,f=this.Zd;if(f){var g=this.Rk,h=f.height*e.La,m=0.5*this.Wb.height*e.La;if(0<g)for(var f=this.ew,n=0;n<g;n++){var s=f[n];this.Hj===E.El?a.drawImage(f[n],0,0,s.width,s.height,c+n*this.gw,-(d+h)+m,s.width*e.ja,h):a.drawImage(f[n],0,0,s.width,s.height,c+n*this.gw,-(d+h),s.width*e.ja,h)}else this.Hj===E.El?a.drawImage(f,0,0,f.width,f.height,c,-(d+h)+m,f.width*e.ja,h):a.drawImage(f,
  988. 0,0,f.width,f.height,c,-(d+h),f.width*e.ja,h)}},Tca:function(){return P(this.pa.width,this.pa.height)},Oja:function(a){this.pa.width=a.width;this.pa.height=a.height},sW:function(){return this.pa.width},nY:function(a){this.pa.width=a},rW:function(){return this.pa.height},mY:function(a){this.pa.height=a},$ca:function(){return P(this.Wb.width,this.Wb.height)},Tja:function(a){this.Wb.width=a.width;this.Wb.height=a.height},jr:function(){return this.Wb.width},Ir:function(a){this.Wb.width=a},ir:function(){return this.Wb.height},
  989. Hr:function(a){this.Wb.height=a},$da:A("Jd"),Fka:u("Jd"),aea:A("cg"),Gka:u("cg"),Sca:A("Hj"),Nja:u("Hj"),Ww:A("Ib"),ky:u("Ib"),Y1:function(a,c,d){var e=c.pa,f=0.35*parseInt(e.width*e.height)+1,g;a&&(g=E.Ea.Ec(a.SP));return this.ra(g,f)?(this.Ex=c.name,this.pa=e,this.Jd=c.He,this.Vl=c.Vl,this.Ul=c.Ul,this.Rd=c.Rd,this.Ib=c.Ib,this.bh=E.B.bh,this.cg=a,this.Wb=d.gp(),this.Hj=d.orientation,a=this.lV(c.offset),this.R(E.EF(a)),this.Md=[],this.Yd(E.QP(P(this.pa.width*this.Wb.width,this.pa.height*this.Wb.height))),
  990. this.xD=r,this.DD=0,p):r},uia:function(){this.Jd&&(this.Jd=q);this.Md&&(this.Md=q)},Yda:function(a,c){a||b("cc.TMXLayer.getTileAt(): pos should be non-null");c!==k&&(a=L(a,c));(a.x>=this.pa.width||a.y>=this.pa.height||0>a.x||0>a.y)&&b("cc.TMXLayer.getTileAt(): invalid position");if(!this.Jd||!this.Md)return E.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),q;var d=q,e=this.KE(a);if(0===e)return d;var f=0|a.x+a.y*this.pa.width,d=this.Eh(f);d||(e=this.cg.Vs(e),e=E.jl(e),d=
  991. new E.D,d.ra(this.texture,e),d.batchNode=this,d.R(this.Vw(a)),d.vertexZ=this.ZL(a),d.anchorX=0,d.anchorY=0,d.opacity=this.Rd,e=this.GA(f),this.qZ(d,e,f));return d},KE:function(a,c){a||b("cc.TMXLayer.getTileGIDAt(): pos should be non-null");c!==k&&(a=L(a,c));(a.x>=this.pa.width||a.y>=this.pa.height||0>a.x||0>a.y)&&b("cc.TMXLayer.getTileGIDAt(): invalid position");return!this.Jd||!this.Md?(E.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),q):(this.Jd[0|a.x+a.y*this.pa.width]&
  992. E.Tz)>>>0},t1:function(a,c){a||b("cc.TMXLayer.getTileFlagsAt(): pos should be non-null");c!==k&&(a=L(a,c));(a.x>=this.pa.width||a.y>=this.pa.height||0>a.x||0>a.y)&&b("cc.TMXLayer.getTileFlagsAt(): invalid position");return!this.Jd||!this.Md?(E.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"),q):(this.Jd[0|a.x+a.y*this.pa.width]&E.VH)>>>0},Dka:function(a,c,d,e){c||b("cc.TMXLayer.setTileGID(): pos should be non-null");e!==k?c=L(c,d):e=d;(c.x>=this.pa.width||c.y>=this.pa.height||
  993. 0>c.x||0>c.y)&&b("cc.TMXLayer.setTileGID(): invalid position");if(!this.Jd||!this.Md)E.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released");else if(0!==a&&a<this.cg.Gm)E.log("cc.TMXLayer.setTileGID(): invalid gid:"+a);else{e=e||0;this.vi();d=this.t1(c);var f=this.KE(c);if(f!=a||d!=e)if(d=(a|e)>>>0,0===a)this.W3(c);else if(0===f)this.bX(d,c);else{var f=c.x+c.y*this.pa.width,g=this.Eh(f);g?(a=this.cg.Vs(a),a=E.jl(a),g.rb(a,r),e!=q&&this.Yv(g,c,d),this.Jd[f]=d):this.iZ(d,c)}}},
  994. W3:function(a,c){a||b("cc.TMXLayer.removeTileAt(): pos should be non-null");c!==k&&(a=L(a,c));(a.x>=this.pa.width||a.y>=this.pa.height||0>a.x||0>a.y)&&b("cc.TMXLayer.removeTileAt(): invalid position");if(!this.Jd||!this.Md)E.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");else if(0!==this.KE(a)){E.A===E.Ba&&this.vi();var d=0|a.x+a.y*this.pa.width,e=this.GA(d);this.Jd[d]=0;this.Md.splice(e,1);if(d=this.Eh(d))E.ud.prototype.removeChild.call(this,d,p);else if(E.A===E.W&&
  995. this.textureAtlas.VO(e),this.u)for(var d=this.u,f=0,g=d.length;f<g;f++){var h=d[f];if(h){var m=h.atlasIndex;m>=e&&(h.atlasIndex=m-1)}}}},Vw:function(a,c){c!==k&&(a=L(a,c));var d=L(0,0);switch(this.Hj){case E.hu:d=this.OX(a);break;case E.gu:d=this.NX(a);break;case E.El:d=this.MX(a)}return E.EF(d)},FE:function(a){return this.Ib[a]},r5:function(){E.A===E.Ba?this.cg.hx=this.uc.N:(this.cg.hx=this.textureAtlas.texture.N,this.textureAtlas.texture.QF());this.HX();E.A===E.Ba&&this.vi();for(var a=this.pa.height,
  996. c=this.pa.width,d=0;d<a;d++)for(var e=0;e<c;e++){var f=this.Jd[e+c*d];0!==f&&(this.dV(f,L(e,d)),this.Vl=Math.min(f,this.Vl),this.Ul=Math.max(f,this.Ul))}this.Ul>=this.cg.Gm&&this.Vl>=this.cg.Gm||E.log("cocos2d:TMX: Only 1 tileset per layer is supported")},T:function(){E.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")},removeChild:function(a,c){if(a)if(-1===this.u.indexOf(a))E.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");else{E.A===E.Ba&&this.vi();
  997. var d=a.atlasIndex;this.Jd[this.Md[d]]=0;this.Md.splice(d,1);E.ud.prototype.removeChild.call(this,a,c)}},Rca:A("Ex"),Mja:u("Ex"),NX:function(a){return L(this.Wb.width/2*(this.pa.width+a.x-a.y-1),this.Wb.height/2*(2*this.pa.height-a.x-a.y-2))},OX:function(a){return L(a.x*this.Wb.width,(this.pa.height-a.y-1)*this.Wb.height)},MX:function(a){return L(3*a.x*this.Wb.width/4,(this.pa.height-a.y-1)*this.Wb.height+(1==a.x%2?-this.Wb.height/2:0))},lV:function(a){var c=L(0,0);switch(this.Hj){case E.hu:c=L(a.x*
  998. this.Wb.width,-a.y*this.Wb.height);break;case E.gu:c=L(this.Wb.width/2*(a.x-a.y),this.Wb.height/2*(-a.x-a.y));break;case E.El:(0!==a.x||0!==a.y)&&E.log("offset for hexagonal map not implemented yet")}return c},dV:function(a,c){var d=this.cg.Vs(a),d=E.jl(d),e=0|c.x+c.y*this.pa.width,d=this.DC(d);this.Yv(d,c,a);var f=this.Md.length;this.ox(d,f);this.Md.splice(f,0,e);return d},bX:function(a,c){var d=this.cg.Vs(a),d=E.jl(d),e=0|c.x+c.y*this.pa.width,d=this.DC(d);this.Yv(d,c,a);var f=this.fV(e);this.ox(d,
  999. f);this.Md.splice(f,0,e);if(this.u)for(var g=this.u,h=0,m=g.length;h<m;h++){var n=g[h];if(n){var s=n.atlasIndex;s>=f&&(n.atlasIndex=s+1)}}this.Jd[e]=a;return d},iZ:function(a,c){var d=this.cg.Vs(a),e=this.bh,d=W(d.x/e,d.y/e,d.width/e,d.height/e),e=c.x+c.y*this.pa.width,d=this.DC(d);this.Yv(d,c,a);d.atlasIndex=this.GA(e);d.dirty=p;d.Xe();this.Jd[e]=a;return d},HX:function(){var a=this.FE("cc_vertexz");if(a)if("automatic"==a){this.xD=p;var c=this.FE("cc_alpha_func"),a=0;c&&(a=parseFloat(c));E.A===E.W&&
  1000. (this.shaderProgram=E.Id.mc(E.bu),c=E.l.getUniformLocation(this.shaderProgram.Mm(),E.DI),this.shaderProgram.Jc(),this.shaderProgram.et(c,a))}else this.DD=parseInt(a,10)},Yv:function(a,c,d){var e=c.x+c.y*this.pa.width;a.R(this.Vw(c));E.A===E.W?a.vertexZ=this.ZL(c):a.tag=e;a.anchorX=0;a.anchorY=0;a.opacity=this.Rd;E.A===E.W&&(a.rotation=0);a.at(r);a.WF(r);(d&E.UH)>>>0?(a.anchorX=0.5,a.anchorY=0.5,a.x=this.Vw(c).x+a.width/2,a.y=this.Vw(c).y+a.height/2,c=(d&(E.zq|E.Aq)>>>0)>>>0,c==E.zq?a.rotation=90:
  1001. c==E.Aq?a.rotation=270:(a.rotation=c==(E.Aq|E.zq)>>>0?90:270,a.at(p))):((d&E.zq)>>>0&&a.at(p),(d&E.Aq)>>>0&&a.WF(p))},DC:function(a){E.A===E.W?(this.ph?(this.ph.batchNode=q,this.ph.rb(a,r)):(this.ph=new E.D,this.ph.ra(this.texture,a,r)),this.ph.batchNode=this):(this.ph=new E.D,this.ph.ra(this.Tk,a,r),this.ph.batchNode=this,this.ph.parent=this);return this.ph},ZL:function(a){var c=0,d=0;if(this.xD)switch(this.Hj){case E.gu:d=this.pa.width+this.pa.height;c=-(d-(a.x+a.y));break;case E.hu:c=-(this.pa.height-
  1002. a.y);break;case E.El:E.log("TMX Hexa zOrder not supported");break;default:E.log("TMX invalid value")}else c=this.DD;return c},GA:function(a){var c;if(this.Md)for(var d=this.Md,e=0,f=d.length;e<f&&!(c=d[e],c==a);e++);"number"!=typeof c&&E.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");return e},fV:function(a){for(var c=this.Md,d=0,e=c.length;d<e&&!(a<c[d]);d++);return d}});G=E.xq.prototype;
  1003. E.A==E.W?(G.Z=E.ud.prototype.Z,G.P=E.ud.prototype.P,G.Aa=E.ud.prototype.Aa):(G.Z=G.Ml,G.P=G.qm,G.Aa=G.hr);E.j(G,"texture",G.Aa,G.$a);E.j(G,"layerWidth",G.sW,G.nY);E.j(G,"layerHeight",G.rW,G.mY);E.j(G,"tileWidth",G.jr,G.Ir);E.j(G,"tileHeight",G.ir,G.Hr);E.xq.create=function(a,c,d){return new E.xq(a,c,d)};E.uz=E.na.extend({Dr:q,va:q,Pq:q,Bda:A("Dr"),mka:u("Dr"),Lm:A("va"),jy:u("va"),aca:A("Pq"),t4:u("Pq"),P1:function(a,c){this.Dr=a;this.va=c;this.Pq=q;return p}});E.uz.create=function(a,c){var d=new E.uz;d.P1(a,c);return d};
  1004. E.uH=E.m.extend({Qm:q,NB:q,wb:"ParallaxNode",oda:A("Qm"),dka:u("Qm"),ctor:function(){E.m.prototype.ctor.call(this);this.Qm=[];this.NB=L(-100,-100)},T:function(a,c,d,e){if(3===arguments.length)E.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");else{a||b("cc.ParallaxNode.addChild(): child should be non-null");var f=E.uz.create(d,e);f.t4(a);this.Qm.push(f);a.R(this.wa.x*d.x+e.x,this.wa.y*d.y+e.y);E.m.prototype.T.call(this,a,c,a.tag)}},removeChild:function(a,c){for(var d=this.Qm,e=0;e<
  1005. d.length;e++)if(d[e].Pq==a){d.splice(e,1);break}E.m.prototype.removeChild.call(this,a,c)},Jg:function(a){this.Qm.length=0;E.m.prototype.Jg.call(this,a)},P:function(){var a=this.TU();if(!E.DF(a,this.NB)){for(var c=this.Qm,d=0,e=c.length;d<e;d++){var f=c[d];f.Pq.R(-a.x+a.x*f.Dr.x+f.Lm().x,-a.y+a.y*f.Dr.y+f.Lm().y)}this.NB=a}E.m.prototype.P.call(this)},TU:function(){for(var a=this.wa,c=this;c.parent!=q;)c=c.parent,a=E.Lj(a,c.Uw());return a}});E.uH.create=function(){return new E.uH};if(E.fb.iw){var ya=E.Ila=new (window.AudioContext||window.webkitAudioContext||window.mozAudioContext);E.rA=E.na.extend({Un:q,cb:q,gm:q,JD:q,src:q,FF:q,autoplay:q,controls:q,cha:q,currentTime:0,startTime:0,duration:0,PB:q,ID:1,Hv:0,ic:r,Ao:p,vg:-1,ctor:function(a){this.Un={};this.src=a;this.JD=ya.createGain?ya.createGain():ya.createGainNode();this.xX=this.wX.bind(this);this.uX=this.tX.bind(this)},dC:function(a){var c=this,d=c.gm=ya.createBufferSource(),e=c.JD;a=a||0;d.buffer=c.cb;e.gain.value=c.ID;
  1006. d.connect(e);e.connect(ya.destination);d.loop=c.PB;d.onended=function(){c.Ao=p};c.ic=r;c.Ao=r;d.start?d.start(0,a):d.noteGrainOn?(e=d.buffer.duration,c.loop?d.noteGrainOn(0,a,e):d.noteGrainOn(0,a,e-a)):d.noteOn(0);c.Hv=0},KL:function(){var a=this.gm;this.Ao||(a.stop?a.stop(0):a.hha(0),this.Ao=p)},play:function(){if(-1==this.vg)this.vg=0;else if(1==this.vg){var a=this.gm;if(this.Ao||!(a&&2==a.playbackState))this.startTime=ya.currentTime,this.dC(0)}},pause:function(){this.Hv=ya.currentTime;this.ic=
  1007. p;this.KL()},yp:function(){this.ic&&this.dC(this.cb?(this.Hv-this.startTime)%this.cb.duration:0)},stop:function(){this.Hv=0;this.ic=r;this.KL()},load:function(){var a=this;if(1!=a.vg){a.vg=-1;a.played=r;a.ended=p;var c=new XMLHttpRequest;c.open("GET",a.src,p);c.responseType="arraybuffer";c.onload=function(){ya.decodeAudioData(c.response,a.xX,a.uX)};c.send()}},addEventListener:function(a,c){this.Un[a]=c.bind(this)},removeEventListener:function(a){delete this.Un[a]},aaa:function(){return E.fb.iw},wX:function(a){this.cb=
  1008. a;a=this.Un.success;var c=this.Un.canplaythrough;a&&a();c&&c();(0==this.vg||"autoplay"==this.autoplay||this.autoplay==p)&&this.dC();this.vg=1},tX:function(){var a=this.Un.error;a&&a();this.vg=-2},cloneNode:function(){var a=new E.rA(this.src);a.volume=this.volume;a.vg=this.vg;a.cb=this.cb;(0==a.vg||-1==a.vg)&&a.load();return a}});G=E.rA.prototype;E.j(G,"loop",A("PB"),function(a){this.PB=a;this.gm&&(this.gm.loop=a)});E.j(G,"volume",A("ID"),function(a){this.ID=a;this.JD.gain.value=a});E.j(G,"paused",
  1009. A("ic"));E.j(G,"ended",function(){var a=this.gm;return!this.ic&&(this.Ao||!a||3==a.playbackState)});E.j(G,"played",function(){var a=this.gm;return a&&2==a.playbackState})}
  1010. E.HG=E.na.extend({$C:r,Od:q,Nu:q,ff:0,WI:0,ee:{},Nq:{},Wu:1,RB:5,qk:q,Ar:[],ctor:function(){this.$C=0<E.HA.jw.length;this.qk&&(this.qk=this.qk.bind(this))},Lla:B(r),sca:A("Wu"),y3:function(a,c){if(this.$C){var d=this.Od;d&&this.Qk(d);a!=this.Nu&&(this.Od=d=this.rB(a),this.Nu=a);d&&(d.loop=c||r,this.eC(d))}},rB:function(a){var c=E.V,d=c.Ed(a);d||(c.load(a),d=c.Ed(a));return d},eC:function(a){a.ended||(a.stop?a.stop():(a.pause(),a.currentTime=0));this.ff=2;a.play()},WP:function(a){if(0<this.ff){var c=
  1011. this.Od;c&&this.Qk(c)&&(a&&E.V.Ni(this.Nu),this.Nu=this.Od=q,this.ff=0)}},Qk:function(a){return a&&!a.ended?(a.stop?a.stop():a.duration&&Infinity!=a.duration?a.currentTime=a.duration:a.pause(),p):r},IO:function(){2==this.ff&&(this.Od.pause(),this.ff=1)},d4:function(){1==this.ff&&(this.oj(this.Od),this.ff=2)},oj:function(a){a&&!a.ended&&(a.yp?a.yp():a.play())},Ria:function(){this.Od&&this.eC(this.Od)},eda:function(){return 0==this.ff?0:this.Od.volume},Uja:function(a){0<this.ff&&(this.Od.volume=Math.min(Math.max(a,
  1012. 0),1))},gF:function(){return 2==this.ff&&this.Od&&!this.Od.ended},uB:function(a){var c=this.Nq[a];c||(c=this.Nq[a]=[]);return c},hK:function(a){var c;if(!this.$C)return q;for(var d=this.uB(a),e=0,f=d.length;e<f;e++){var g=d[e];if(g.ended){c=g;c.currentTime=0;window.gaa&&c.load();break}}if(!c){if(d.length>=this.RB)return E.log("Error: "+a+" greater than "+this.RB),q;c=this.rB(a);if(!c)return q;c=c.cloneNode(p);this.qk&&E.Ha(c,"pause",this.qk);c.volume=this.Wu;d.push(c)}return c},CF:function(a,c){var d=
  1013. this.hK(a);if(!d)return q;d.loop=c||r;d.play();var e=this.WI++;this.ee[e]=d;return e},xja:function(a){a=this.Wu=Math.min(Math.max(a,0),1);var c=this.ee,d;for(d in c)c[d].volume=a},u3:function(a){(a=this.ee[a])&&!a.ended&&a.pause()},s3:function(){var a=this.ee,c;for(c in a){var d=a[c];d.ended||d.pause()}},c4:function(a){this.oj(this.ee[a])},b4:function(){var a=this.ee,c;for(c in a)this.oj(a[c])},S5:function(a){this.Qk(this.ee[a]);delete this.ee[a]},UP:function(){var a=this.ee,c;for(c in a)this.Qk(a[c]),
  1014. delete a[c]},o6:function(a){var c=E.V,d=this.ee,e=this.uB(a);c.Ni(a);if(0!=e.length){c=e[0].src;delete this.Nq[a];for(var f in d)d[f].src==c&&(this.Qk(d[f]),delete d[f])}},end:function(){this.WP();this.UP()},VK:function(){var a=this.ee,c,d;for(d in a)if((c=a[d])&&!c.ended&&!c.paused)this.Ar.push(c),c.pause();this.gF()&&(this.Ar.push(this.Od),this.Od.pause())},lL:function(){for(var a=this.Ar,c=0,d=a.length;c<d;c++)this.oj(a[c]);a.length=0}});
  1015. !E.fb.iw&&0>E.fb.TY&&(E.IG=E.HG.extend({Xk:[],zr:[],zf:q,RB:2,Vu:{},Xl:r,Vn:0,JB:r,eC:function(a){this.hD();this._super(a)},d4:function(){1==this.ff&&(this.hD(),this.Xl=r,this.Vn=0,this._super())},CF:function(a,c){var d=this.zf,e=c?this.hK(a):this.IW(a);if(!e)return q;e.loop=c||r;var f=this.WI++;this.ee[f]=e;this.gF()&&(this.IO(),this.Xl=p);d?(d!=e&&this.Xk.push(this.Nn),this.Xk.push(f),d.pause()):(this.zf=e,this.Nn=f,e.play());return f},u3:function(){E.log("pauseEffect not supported in single audio mode!")},
  1016. s3:function(){var a=this.Xk,c=this.zr,d=this.zf;if(d){for(var e=0,f=a.length;e<f;e++)c.push(a[e]);a.length=0;c.push(this.Nn);d.pause()}},c4:function(){E.log("resumeEffect not supported in single audio mode!")},b4:function(){var a=this.Xk,c=this.zr;this.gF()&&(this.IO(),this.Xl=p);for(var d=0,e=c.length;d<e;d++)a.push(c[d]);c.length=0;if(!this.zf&&0<=a.length&&(a=a.pop(),c=this.ee[a]))this.Nn=a,this.zf=c,this.oj(c)},S5:function(a){var c=this.zf,d=this.Xk,e=this.zr;c&&this.Nn==a?this.Qk(c):(c=d.indexOf(a),
  1017. 0<=c?d.splice(c,1):(c=e.indexOf(a),0<=c&&e.splice(c,1)))},UP:function(){this.hD();!this.zf&&this.Xl&&(this.oj(this.Od),this.ff=2,this.Xl=r,this.Vn=0)},o6:function(a){var c=E.V,d=this.ee,e=this.Vu,f=this.uB(a),g=this.zf;c.Ni(a);if(0!=f.length||e[a]){c=0<f.length?f[0].src:e[a].src;delete this.Nq[a];delete e[a];for(var h in d)d[h].src==c&&delete d[h];g&&g.src==c&&this.Qk(g)}},IW:function(a){var c=this.Vu[a],d=this.Xk,e=this.zr,f=this.ee;if(c)c.currentTime=0;else{c=this.rB(a);if(!c)return q;c=c.cloneNode(p);
  1018. this.qk&&E.Ha(c,"pause",this.qk);c.volume=this.Wu;this.Vu[a]=c}a=0;for(var g=d.length;a<g;)f[d[a]]==c?d.splice(a,1):a++;a=0;for(g=e.length;a<g;)f[e[a]]==c?e.splice(a,1):a++;c.qr=p;return c},hD:function(){var a=this.zf,c=this.Nq,d=this.Vu,e=this.Xk,f=this.zr;if(a||!(0==e.length&&0==f.length)){for(var g in d){var h=d[g];h.duration&&Infinity!=h.duration&&(h.currentTime=h.duration)}e.length=0;f.length=0;for(g in c){d=c[g];e=0;for(f=d.length;e<f;e++)h=d[e],h.loop=r,h.duration&&Infinity!=h.duration&&(h.currentTime=
  1019. h.duration)}a&&this.Qk(a)}},qk:function(){if(!this.JB){var a=this.LW();if(a)a.qr?(delete a.qr,a.play()):this.oj(a);else if(this.Xl){a=this.Od;if(a.duration&&Infinity!=a.duration){var c=a.currentTime+this.Vn,c=c-a.duration*(c/a.duration|0);a.currentTime=c}this.Vn=0;this.oj(a);this.ff=2;this.Xl=r}}},LW:function(){var a=this.Xk,c=this.ee,d=this.zf,e=d?d.currentTime-(d.startTime||0):0;for(this.Vn+=e;0!=a.length;){var f=a.pop();if(d=c[f]){if(d.qr||d.loop||d.duration&&d.currentTime+e<d.duration)return this.Nn=
  1020. f,this.zf=d,!d.qr&&(d.duration&&Infinity!=d.duration)&&(a=d.currentTime+e,a-=d.duration*(a/d.duration|0),d.currentTime=a),d.qr=r,d;d.duration&&Infinity!=d.duration&&(d.currentTime=d.duration)}}return this.zf=this.Nn=q},VK:function(){var a=this.zf;this.JB=p;if(a=2==this.ff?this.Od:a)this.Ar.push(a),a.pause()},lL:function(){var a=this.Ar;this.JB=r;0<a.length&&(this.oj(a[0]),a.length=0)}}));
  1021. E.HA={jw:q,Rw:function(){return E.V.KZ},OB:function(a,c,d,e,f,g,h){var m=this,n=E.V,s=E.path,v=this.jw,w="";if(0==v.length)return h("can not support audio!");if(-1==e)w=(s.$k(a)||"").toLowerCase(),m.LZ(w)||(w=v[0],e=0);else if(e<v.length)w=v[e];else return h("can not found the resource of audio! Last match url is : "+a);if(0<=f.indexOf(w))return m.OB(a,c,d,e+1,f,g,h);a=s.wM(a,w);f.push(w);g=m.kX(a,g,function(n){if(n)return m.OB(a,c,d,e+1,f,g,h);h(q,g)},e==v.length-1);n.Nf[c]=g},LZ:function(a){return!a?
  1022. r:0<=this.jw.indexOf(a.toLowerCase())},kX:function(a,c,d,e){var f="file://"==location.origin?Audio:E.rA||Audio;2==arguments.length?(d=c,c=new f):3<arguments.length&&!c&&(c=new f);c.src=a;c.FF="auto";f=navigator.userAgent;/Mobile/.test(f)&&(/iPhone OS/.test(f)||/iPad/.test(f)||/Firefox/.test(f))||/MSIE/.test(f)?(c.load(),d(q,c)):(E.Ha(c,"canplaythrough",function(){d(q,c);this.removeEventListener("canplaythrough",arguments.callee,r);this.removeEventListener("error",arguments.callee,r)},r),E.Ha(c,"error",
  1023. function(){d("load "+a+" failed");e&&(this.removeEventListener("canplaythrough",arguments.callee,r),this.removeEventListener("error",arguments.callee,r))},r),c.load());return c},load:function(a,c,d,e){this.OB(a,c,d,-1,[],q,e)}};
  1024. E.HA.jw=function(){var a=E.Sb("audio"),c=[];if(a.canPlayType){var d=function(c){c=a.canPlayType(c);return"no"!=c&&""!=c};d('audio/ogg; codecs\x3d"vorbis"')&&c.push(".ogg");d("audio/mpeg")&&c.push(".mp3");d('audio/wav; codecs\x3d"1"')&&c.push(".wav");d("audio/mp4")&&c.push(".mp4");(d("audio/x-m4a")||d("audio/aac"))&&c.push(".m4a")}return c}();E.V.Oj(["mp3","ogg","wav","mp4","m4a"],E.HA);E.No=E.IG?new E.IG:new E.HG;E.qa.MD(E.tb.vt,function(){E.No.VK()});E.qa.MD(E.tb.Sp,function(){E.No.lL()});var Z={tb:"res/fart.png",cN:"res/fart.plist",Sf:"res/line.png",ql:"res/wind.png",C6:"res/wind.plist",v5:"res/share_01.png",u5:"res/share_02.png",OZ:"res/avatar_01.png",NZ:"res/avatar_02.png",qM:"res/btn_restart.png",mG:"res/btn_more.png",I1:"res/help.jpg",pM:"res/btn_play.png",B5:"res/fart.mp3",C5:"res/gulu.mp3",D5:"res/laugh.mp3"},za=[],ia;for(ia in Z)za.push(Z[ia]);var Ea=E.fc.extend({size:q,ctor:function(){this._super();this.size=E.B.oa();this.UE();this.U()},UE:function(){E.bg.ww(Z.cN);var a=new E.ud(Z.tb);this.T(a)},U:function(){var a=new E.D("#title.png");a.x=0.5*this.size.width;a.y=0.7*this.size.height;this.T(a);a=new E.D("#fart_icon.png");a.x=0.5*this.size.width;a.y=0.54*this.size.height;this.T(a);a=new E.Wi(new E.D("#btn_start.png"),new E.D("#btn_start.png"),this.vF,this);a=new E.Xj(a);a.y=0.41*this.size.height;this.T(a)},vF:function(){E.B.kl(new Da)}}),
  1025. Fa=E.Vh.extend({$:function(){this._super();var a=new Ea;this.T(a)}});var Qa=E.Uc.extend({sF:q,size:q,batchNode:q,Ca:q,wm:q,Sf:q,AG:0,zG:0,BG:0,Kp:r,ql:q,face:q,oQ:0,pQ:30,Tj:200,ctor:function(){this._super(E.color(246,246,246));this.size=E.B.oa();this.UE();this.L1();this.U();this.M1();this.fP();this.O1();E.B.Di().eP(this,this.f6,1,E.sn)},f6:function(){++Ga},L1:function(){this.face=new Ja;this.face.x=0.8*this.size.width;this.face.y=0.1*this.size.height;this.T(this.face)},O1:function(){this.ql=new Ka;this.ql.x=0.5*this.size.width;this.ql.y=0.5*this.size.height;this.T(this.ql)},
  1026. warn:function(){if(this.Kp!=this.Sf.blink){if(this.Kp){var a=new E.Cq(0.2,255,0,0),c=new E.Cq(0.2,255,255,255),a=new E.ya(a,c),a=new E.rq(a);this.Sf.Sa(a)}else this.Sf.Zm(),this.Sf.Za(E.color(255,255,255));this.Sf.blink=this.Kp}},yM:function(){E.No.WP();E.B.Di().uG(this);this.Zm();this.vG();E.qa.removeListener(this.sF)},k0:function(){this.yM();var a=E.Me(this.Ca.rotation),c=0.5*Math.sin(a)*this.Ca.Ne().width,a=0.5*Math.sin(a)*this.Ca.Ne().height,c=new E.rn(0.2,L(0.5*this.size.width-c,this.wm.y-a-
  1027. 50)),a=new E.xl(0.3),c=new E.ya(c,a,new E.Ab(function(){E.B.kl(new La)},this));this.Ca.Sa(c);E.No.CF(Z.D5);Ma=p},j0:function(){this.yM();this.Ca.Zm();var a=E.Me(this.Ca.rotation),c=this.Ca.x-200*Math.sin(a),d=this.Ca.y-200*Math.cos(a),a=new E.td(0.6,1.2),e=new E.xl(0.6),c=new E.rn(0.6,L(c,d)),c=new E.ve(a,e,c),c=new E.ya(c,new E.Ab(function(){E.B.kl(new La)}));this.Ca.Sa(c);E.No.CF(Z.B5);Ma=r},update:function(){this.Ca.rotation=E.Wx(Math.atan2(this.wm.x-this.Ca.x,this.wm.y-this.Ca.y));var a=this.Ca.y,
  1028. c=this.Ca.x;this.Ca.pl+=this.Ca.a;this.Ca.pl*=0.98;if(this.Ca.pl>this.Ca.wG||this.Ca.pl<-this.Ca.wG)this.Ca.pl=this.Ca.wG;c+=this.Ca.pl;this.bound(c);a+=this.Ca.yG;a>this.BG-60?(a=this.BG-60,this.k0()):(this.Ca.y=a,++this.oQ>=this.pQ&&(this.pQ=Math.ceil(150*E.MO()+50),this.oQ=0,this.ql.UZ(),flippedX=5<10*E.MO(),this.ql.at(flippedX),a=new E.ya(new E.sd(0.4),new E.Ab(function(){this.Ca.a=flippedX?this.Ca.a-0.85:this.Ca.a+0.85},this)),this.Sa(a)))},bound:function(a){a<this.AG?a=this.AG:a>this.zG&&(a=
  1029. this.zG);var c=0.5*this.size.width;a<c-0.5*this.Tj-30||a>c+0.5*this.Tj+30?(this.Kp=r,this.face.oy(3),this.j0()):(a<c-0.3*this.Tj||a>c+0.3*this.Tj?(this.Kp=p,this.face.oy(2),this.Ca.yG=0):(this.Kp=r,this.face.oy(1),this.Ca.yG=a<c-0.2*this.Tj||a>c+0.2*this.Tj?0.5:a<c-0.1*this.Tj||a>c+0.1*this.Tj?2:1),this.Ca.a=0);this.warn();this.Ca.x=a},M1:function(){E.aF.l4();var a=this;this.sF=E.sa.create({event:E.sa.rl,Dw:function(c){a.Ca.a=0.5*c.x}});E.qa.addListener(this.sF,this)},UE:function(){E.bg.ww(Z.cN);
  1030. this.batchNode=new E.ud(Z.tb);this.T(this.batchNode);E.bg.ww(Z.C6);var a=new E.ud(Z.ql);this.T(a)},U:function(){Ma=r;Ga=0;this.AG=50;this.zG=this.size.width-50;this.BG=0.9*this.size.height-20;var a=new E.D;a.anchorX=0.5;a.anchorY=0;a.x=0.5*this.size.width;a.rb(W(0,0,this.Tj,this.size.height));a.Za(E.color(255,255,255));this.T(a);this.Sf=new Na;this.Sf.anchorX=0.5;this.Sf.anchorY=1;this.Sf.x=0.5*this.size.width;this.Sf.y=0.9*this.size.height;this.T(this.Sf);this.wm=new Oa;this.wm.x=0.5*this.size.width-
  1031. 10;this.wm.y=0.9*this.size.height;this.T(this.wm);this.Ca=new Pa;this.Ca.Qj(0.8);this.Ca.x=0.5*this.size.width;this.Ca.y=0.1*this.size.height;this.T(this.Ca);E.No.y3(Z.C5,p)}}),Ra=E.Vh.extend({$:function(){this._super();var a=new Qa;this.T(a)}});var Oa=E.D.extend({ctor:function(){this._super();this.U()},U:function(){this.Sg("ass_01.png");for(var a=[],c=1;4>=c;c++){var d=E.bg.Hh("ass_0"+c+".png");a.push(d)}a=new E.Vg(a,0.3);a=new E.Mp(a);a=new E.rq(a);this.Sa(a)}});var Pa=E.D.extend({pl:0,yG:0,a:0,wG:10,Mba:1,ctor:function(){this._super();this.Sg("air.png")}});var Ma=r,Ga=0;var Na=E.D.extend({blink:r,ctor:function(){this._super(Z.Sf)}});var Ka=E.D.extend({ctor:function(){this._super();this.U()},U:function(){this.Ym(r);this.Sg("wind0000")},UZ:function(){this.Zm();this.Ym(p);for(var a=[],c=0;6>=c;c++){var d=E.bg.Hh("wind000"+c);a.push(d)}a=new E.Vg(a,0.1);a=new E.Mp(a);a=new E.ya(a,new E.Ab(function(){this.Ym(r)},this));this.Sa(a)}});var Ja=E.D.extend({status:0,ctor:function(){this._super();this.oy(1)},oy:function(a){this.status!=a&&(this.Sg("face_0"+a+".png"),this.status=a)}});var Sa=E.Uc.extend({size:q,data:q,ctor:function(){var a=Ma?E.color(255,255,101):E.color(153,153,153);this._super(a);this.size=E.B.oa();this.U()},U:function(){this.data=[{min:0,max:5,title:"\u5c0f\u96cf\u83ca"},{min:6,max:8,title:"\u51cc\u6ce2\u5fae\u83ca"},{min:9,max:10,title:"\u8f7b\u83ca\u5c4e\u4e0a\u6f02"},{min:11,max:13,title:"\u83ca\u543c\u529f"},{min:14,max:16,title:"\u5f39\u5c4e\u795e\u83ca"},{min:17,max:20,title:"\u9eef\u7136\u9500\u9b42\u83ca"},{min:21,max:22,title:"\u4e7e\u5764\u5927\u83ca\u82b1"},
  1032. {min:23,max:25,title:"\u516d\u8109\u795e\u83ca"},{min:26,max:30,title:"\u94c1\u83ca\u529f"},{min:31,max:40,title:"\u5927\u529b\u91d1\u521a\u83ca"},{min:41,max:5E4,title:"\u5982\u6765\u795e\u83ca"}];var a=this.getData();Ma&&dp_submitScore(Ga,a);var c=Ma?new E.D(Z.v5):new E.D(Z.u5);c.Qj(0.9);c.x=0.5*this.size.width+30;c.y=this.size.height-20;c.anchorX=0.5;c.anchorY=1;this.T(c);Ma&&(c=new E.S("\u7528\u65f6: "+Ga+" \u79d2","helvetica",35),c.Za(E.color(0,0,0)),c.x=0.5*this.size.width,c.y=this.size.height-280,this.T(c),
  1033. a=new E.S('\u606d\u559c\u83b7\u5f97"'+a+'"\u79f0\u53f7',"helvetica",35),a.Za(E.color(0,0,0)),a.x=0.5*this.size.width,a.y=this.size.height-335,this.T(a));a=Ma?new E.D(Z.OZ):new E.D(Z.NZ);a.Qj(0.8);Ma?(a.x=0.5*this.size.width,a.y=this.size.height-600):(a.x=0.5*this.size.width+40,a.y=this.size.height-500);this.T(a);a=new E.Wi(new E.D(Z.qM),new E.D(Z.qM),this.h3,this);a=new E.Xj(a);a.y=0.2*this.size.height;this.T(a);a=new E.Wi(new E.D(Z.mG),new E.D(Z.mG),clickMore,this);a=new E.Xj(a);a.y=0.07*this.size.height;this.T(a)},getData:function(){for(var a=0;a<this.data.length;a++){var c=this.data[a];if(Ga>=c.min&&
  1034. Ga<=c.max)return c.title}},h3:function(){E.B.kl(new Ra)}}),La=E.Vh.extend({$:function(){this._super();var a=new Sa;this.T(a)}});var Ta=E.fc.extend({size:q,ctor:function(){this._super();this.size=E.B.oa();this.U()},U:function(){var a=new E.D(Z.I1);a.anchorY=1;a.x=0.5*this.size.width;a.y=this.size.height;this.T(a);a=new E.Wi(new E.D(Z.pM),new E.D(Z.pM),this.vF,this);a=new E.Xj(a);a.y=this.size.height-240;a.x=0.5*this.size.width+80;this.T(a)},vF:function(){E.B.kl(new Ra)}}),Da=E.Vh.extend({$:function(){this._super();var a=new Ta;this.T(a)}});E.tb.wF=function(){var a=E.fb.Kh?E.ue.Mt:E.ue.cu;E.view.rZ(p);E.view.TF(640,1136,a);E.view.Z3(p);E.iz.FF(za,function(){E.B.kl(new Fa)},this)};E.tb.i4();