forked from ShengxiangChen/MoonWarriors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MoonWarriors-min.js
450 lines (450 loc) · 230 KB
/
MoonWarriors-min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
function b(a){throw a;}var g=void 0,i=!0,j=null,m=!1;function p(){return function(a){return a}}function q(){return function(){}}function s(a){return function(c){this[a]=c}}function u(a){return function(){return this[a]}}function v(a){return function(){return a}}var w=w=w||{};
(function(){var a=m,c=/\b_super\b/;w.S=q();w.S.extend=function(d){function e(){!a&&this.P&&this.P.apply(this,arguments)}var f=this.prototype;a=i;var h=new this;a=m;for(var l in d)h[l]="function"==typeof d[l]&&"function"==typeof f[l]&&c.test(d[l])?function(a,c){return function(){var d=this._super;this._super=f[a];var e=c.apply(this,arguments);this._super=d;return e}}(l,d[l]):d[l];e.prototype=h;e.extend=arguments.callee;e.EK=function(a){for(var c in a)h[c]=a[c]};return e}})();w.iq=function(a){var c=a instanceof Array?[]:{},d;for(d in a){var e=a[d];c[d]=e instanceof Array?w.iq(e):"object"==typeof e&&!(e instanceof w.hb)&&!(e instanceof HTMLElement)?w.iq(e):e}return c};w.Q=function(a){console.log(a)};w.ID=function(a){console.log(a)};0==w.$k?(w.Q=q(),w.hs=q(),w.gs=q()):1==w.$k?(w.hs=w.Q,w.gs=q()):1<w.$k&&(w.hs=w.Q,w.gs=w.Q);w.b=w.Nx?function(a,c){typeof console.assert=="function"?console.assert(a,c):a||c&&alert(c)}:q();w.hx=0;w.gx=1;w.ix=2;w.kx=3;w.jx=4;w.mx=5;w.lx=6;w.Ri=w.S.extend({Eh:0,kf:0});w.Rh={};w.Rh.uq=function(){var a=new w.Ri,c=Date.now();a.kf=1E3*(c%1E3);a.Eh=Math.floor(c/1E3);return a};w.Rh.now=function(){return Date.now()};w.Rh.TO=function(a,c){if(!d||!a||!c)return-1;if(a instanceof w.Ri&&c instanceof w.Ri){var d=new w.Ri;d.Eh=c.Eh-a.Eh;d.kf=c.kf-a.kf;c.kf<a.kf&&(d.kf+=1E6,d.Eh--);return d}if(!isNaN(a)&&!isNaN(c))return c-a};w.U={name:"Jacob__Codec"};w.DC=function(){return w.U.ma.Ym.apply(w.U.ma,arguments)};w.EC=function(){var a=w.U.Ih.ou.apply(w.U.Ih,arguments);return w.U.ma.Ym.apply(w.U.ma,[a])};w.FC=function(a){var c;c=4;var a=this.EC(a),d=[],e,f,h;e=0;for(h=a.length/c;e<h;e++){d[e]=0;for(f=c-1;0<=f;--f)d[e]+=a.charCodeAt(e*c+f)<<8*f}return d};w.ZO=function(a,c){var c=c||1,d=this.DC(a),e=[],f,h,l;f=0;for(l=d.length/c;f<l;f++){e[f]=0;for(h=c-1;0<=h;--h)e[f]+=d.charCodeAt(f*c+h)<<8*h}return e};w.U.Ih={name:"Jacob__Codec__Base64"};w.U.Ih.dm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
w.U.Ih.ou=function(a){for(var c=[],d,e,f,h,l,k=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)d=this.dm.indexOf(a.charAt(k++)),e=this.dm.indexOf(a.charAt(k++)),h=this.dm.indexOf(a.charAt(k++)),l=this.dm.indexOf(a.charAt(k++)),d=d<<2|e>>4,e=(e&15)<<4|h>>2,f=(h&3)<<6|l,c.push(String.fromCharCode(d)),64!=h&&c.push(String.fromCharCode(e)),64!=l&&c.push(String.fromCharCode(f));return c=c.join("")};
w.U.Ih.vz=function(a){var a=this.ou(a),c=[],d,e,f;d=0;for(f=a.length/4;d<f;d++){c[d]=0;for(e=3;0<=e;--e)c[d]+=a.charCodeAt(4*d+e)<<8*e}return c};w.U.ma=function(a){this.data=a;this.debug=m;this.Kf=g;this.files=0;this.Bn=[];this.bq=Array(32768);this.Be=0;this.gn=m;this.fu=0;this.af=1;this.Gi=[];this.zu=g;this.xk=Array(w.U.ma.nx);this.uh=Array(32);this.Pk=0;this.no=j;this.He=0;this.Ai=Array(17);this.Ai[0]=0;this.Du=this.Cu=g};w.U.ma.Ym=function(a){return(new w.U.ma(a)).Ym()[0][0]};w.U.ma.eo=function(){this.Cm=this.Bm=0;this.Cq=j};w.U.ma.nx=288;w.U.ma.ks=256;
w.U.ma.Zp=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,
81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,3,131,67,195,35,163,99,227,19,147,83,211,51,179,115,243,11,139,75,203,43,171,107,235,27,155,91,219,59,187,123,251,7,135,71,199,39,167,103,231,23,151,87,215,55,183,119,247,15,143,79,207,47,175,111,239,31,159,95,223,63,191,127,255];
w.U.ma.lu=[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];w.U.ma.mu=[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];w.U.ma.ku=[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];w.U.ma.xi=[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];w.U.ma.border=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];w.U.ma.prototype.Ym=function(){this.Ak=[];x(this);return this.Bn};
function z(a){return a.fu<a.data.length?a.data.charCodeAt(a.fu++):-1}function C(a){var c;c=a.af&1;a.af>>=1;0==a.af&&(a.af=z(a),c=a.af&1,a.af=a.af>>1|128);return c}function D(a,c){for(var d=0,e=c;e--;)d=d<<1|C(a);c&&(d=w.U.ma.Zp[d]>>8-c);return d}function E(a,c){a.bq[a.Be++]=c;a.Ak.push(String.fromCharCode(c));32768==a.Be&&(a.Be=0)}function aa(a){for(;;){if(a.Ai[a.He]>=a.Du)return-1;if(a.Cu[a.Ai[a.He]]==a.He)return a.Ai[a.He]++;a.Ai[a.He]++}}
function F(a){var c=a.no[a.Pk],d;if(17==a.He)return-1;a.Pk++;a.He++;d=aa(a);if(0<=d)c.Bm=d;else if(c.Bm=32768,F(a))return-1;d=aa(a);if(0<=d)c.Cm=d,c.Cq=j;else if(c.Cm=32768,c.Cq=a.no[a.Pk],c.iL=a.Pk,F(a))return-1;a.He--;return 0}function G(a,c,d,e){a.no=c;a.Pk=0;a.Cu=e;a.Du=d;for(c=0;17>c;c++)a.Ai[c]=0;a.He=0;return F(a)?-1:0}
function H(a,c){for(var d,e,f=0,h=c[f];;)if(d=C(a)){if(!(h.Cm&32768))return h.Cm;h=h.Cq;d=c.length;for(e=0;e<d;e++)if(c[e]===h){f=e;break}}else{if(!(h.Bm&32768))return h.Bm;f++;h=c[f]}return-1}
function I(a){var c,d,e,f,h;do if(c=C(a),e=D(a,2),0==e){a.af=1;e=z(a);e|=z(a)<<8;d=z(a);d|=z(a)<<8;for((e^~d)&65535&&document.write("BlockLen checksum mismatch\n");e--;)d=z(a),E(a,d)}else if(1==e)for(;;)if(e=w.U.ma.Zp[D(a,7)]>>1,23<e?(e=e<<1|C(a),199<e?(e-=128,e=e<<1|C(a)):(e-=48,143<e&&(e+=136))):e+=256,256>e)E(a,e);else if(256==e)break;else{var l;e-=257;h=D(a,w.U.ma.mu[e])+w.U.ma.lu[e];e=w.U.ma.Zp[D(a,5)]>>3;8<w.U.ma.xi[e]?(l=D(a,8),l|=D(a,w.U.ma.xi[e]-8)<<8):l=D(a,w.U.ma.xi[e]);l+=w.U.ma.ku[e];
for(e=0;e<h;e++)d=a.bq[a.Be-l&32767],E(a,d)}else if(2==e){var k=Array(320);d=257+D(a,5);l=1+D(a,5);f=4+D(a,4);for(e=0;19>e;e++)k[e]=0;for(e=0;e<f;e++)k[w.U.ma.border[e]]=D(a,3);h=a.uh.length;for(f=0;f<h;f++)a.uh[f]=new w.U.ma.eo;if(G(a,a.uh,19,k)){a.Be=0;return}h=d+l;f=0;for(var n=-1;f<h;)if(n++,e=H(a,a.uh),16>e)k[f++]=e;else if(16==e){var o;e=3+D(a,2);if(f+e>h){a.Be=0;return}for(o=f?k[f-1]:0;e--;)k[f++]=o}else{e=17==e?3+D(a,3):11+D(a,7);if(f+e>h){a.Be=0;return}for(;e--;)k[f++]=0}h=a.xk.length;for(f=
0;f<h;f++)a.xk[f]=new w.U.ma.eo;if(G(a,a.xk,d,k)){a.Be=0;return}h=a.xk.length;for(f=0;f<h;f++)a.uh[f]=new w.U.ma.eo;e=[];for(f=d;f<k.length;f++)e[f-d]=k[f];if(G(a,a.uh,l,e)){a.Be=0;return}for(;;)if(e=H(a,a.xk),256<=e){e-=256;if(0==e)break;e--;h=D(a,w.U.ma.mu[e])+w.U.ma.lu[e];e=H(a,a.uh);8<w.U.ma.xi[e]?(l=D(a,8),l|=D(a,w.U.ma.xi[e]-8)<<8):l=D(a,w.U.ma.xi[e]);for(l+=w.U.ma.ku[e];h--;)d=a.bq[a.Be-l&32767],E(a,d)}else E(a,e)}while(!c);a.Be=0;a.af=1}
function x(a){a.Ak=[];a.gn=m;var c=[];c[0]=z(a);c[1]=z(a);120==c[0]&&218==c[1]&&(I(a),a.Bn[a.files]=[a.Ak.join(""),"geonext.gxt"],a.files++);31==c[0]&&139==c[1]&&(ba(a),a.Bn[a.files]=[a.Ak.join(""),"file"],a.files++);if(80==c[0]&&75==c[1]&&(a.gn=i,c[2]=z(a),c[3]=z(a),3==c[2]&&4==c[3])){c[0]=z(a);c[1]=z(a);a.Kf=z(a);a.Kf|=z(a)<<8;c=z(a);c|=z(a)<<8;z(a);z(a);z(a);z(a);z(a);z(a);z(a);z(a);z(a);z(a);z(a);z(a);var d=z(a),d=d|z(a)<<8,e=z(a),e=e|z(a)<<8,f=0;for(a.Gi=[];d--;){var h=z(a);"/"==h|":"==h?f=0:
f<w.U.ma.ks-1&&(a.Gi[f++]=String.fromCharCode(h))}a.zu||(a.zu=a.Gi);for(var f=0;f<e;)z(a),f++;8==c&&(I(a),a.Bn[a.files]=[a.Ak.join(""),a.Gi.join("")],a.files++);ba(a)}}
function ba(a){var c=[],d;a.Kf&8&&(c[0]=z(a),c[1]=z(a),c[2]=z(a),c[3]=z(a),z(a),z(a),z(a),z(a),z(a),z(a),z(a),z(a));a.gn&&x(a);c[0]=z(a);if(8==c[0]){a.Kf=z(a);z(a);z(a);z(a);z(a);z(a);z(a);if(a.Kf&4){c[0]=z(a);c[2]=z(a);a.He=c[0]+256*c[1];for(c=0;c<a.He;c++)z(a)}if(a.Kf&8){c=0;for(a.Gi=[];d=z(a);){if("7"==d||":"==d)c=0;c<w.U.ma.ks-1&&(a.Gi[c++]=d)}}if(a.Kf&16)for(;z(a););a.Kf&2&&(z(a),z(a));I(a);z(a);z(a);z(a);z(a);a.gn&&x(a)}};w.PI=Math.PI;w.tx=w.PI/180;w.Lw=180/w.PI;w.nl=function(){w.b(m,"CC_SWAP is being modified from original macro, please check usage")};w.qb=function(){return 2*(Math.random()-0.5)};w.ZD=function(){return Math.random()};w.Bb=function(a){return a*w.tx};w.Cs=function(){return NaN*w.Lw};w.ld=w.px?1:770;w.kd=771;w.pD=q();w.nD=q();w.Rr=1.192092896E-7;w.l=w.fo?function(){return w.n.p().L}:v(1);w.tj=w.fo?function(a){return w.T(a.origin.x/w.l(),a.origin.y/w.l(),a.size.width/w.l(),a.size.height/w.l())}:p();
w.ro=w.fo?function(a){return w.T(a.origin.x*w.l(),a.origin.y*w.l(),a.size.width*w.l(),a.size.height*w.l())}:p();w.Kr="Cocos2d-html5-v0.5.0-alpha2";w.ao=0;w.uD=1;w.Ir=1;w.Mw=0.5;w.dD=0;w.eD=1;w.aD=1;w.vx=1;w.gg=1;w.jl=1;w.px=1;w.vE=0;w.xx=0;w.aE=1;w.$D="-hd";w.KE=0;w.ml=0;w.iE=0;w.fx=0;w.ex=0;w.Jr=0;w.fo=1;w.cD=w.Kr+"-canvas";w.fE=0;w.eE=1;w.cE=2;w.dE=3;w.gE=4;w.hE=5;w.bE=6;w.uc={};w.uc.nI=q();w.uc.oI=q();w.uc.$F=q();w.gv=i;w.uc.Pz=p();w.uc.Oz=function(a,c){var d;if(a)return d=c.substring(0,c.lastIndexOf("/")+1),d+a;d=c.substring(0,c.lastIndexOf("."));return d+".png"};w.uc.bO=q();w.uc.wu=function(a){return this.nn=w.dg.Lg().parse(a)};w.uc.mq=function(a){return(new w.Ow).wu(a)};w.uc.wK=q();w.uc.tN=function(a){w.gv=a};w.uc.DI=function(){return w.gv};w.Ow=w.S.extend({nn:[],wu:function(a){return this.nn=w.dg.Lg().parse(a)}});w.ua=function(a,c,d){switch(arguments.length){case 0:this.d=this.e=this.f=0;case 1:a&&a instanceof w.ua?(this.f=a.f||0,this.e=a.e||0,this.d=a.d||0):this.d=this.e=this.f=0;break;case 3:this.f=a||0;this.e=c||0;this.d=d||0;break;default:b("unknown argument type")}};w.ti=function(a,c,d){return new w.ua(a,c,d)};w.Sh=function(){return new w.ua(255,255,255)};w.NE=function(){return new w.ua(255,255,0)};w.TC=function(){return new w.ua(0,0,255)};w.CD=function(){return new w.ua(0,255,0)};
w.so=function(){return new w.ua(255,0,0)};w.HD=function(){return new w.ua(255,0,255)};w.ow=function(){return new w.ua(0,0,0)};w.KD=function(){return new w.ua(255,127,0)};w.BD=function(){return new w.ua(166,166,166)};w.$a=function(a,c,d,e){this.f=a;this.e=c;this.d=d;this.i=e};w.iz=function(a,c,d){return new w.$a(a,c,d,255)};w.nd=function(a,c,d,e){this.f=a;this.e=c;this.d=d;this.i=e};w.XF=function(a){return new w.nd(a.f/255,a.e/255,a.d/255,1)};
w.YF=function(a){return new w.nd(a.f/255,a.e/255,a.d/255,a.i/255)};w.WF=function(a,c){return a.f==c.f&&a.e==c.e&&a.d==c.d&&a.i==c.i};w.Yb=function(a,c){this.x=a||0;this.y=c||0};w.Jx=function(a,c){return new w.Yb(a,c)};w.Vd=function(a,c){this.x=a||0;this.y=c||0};w.Ad=function(a,c){return new w.Vd(a,c)};w.Ud=function(a,c){this.ca=a||0;this.da=c||0};w.Pb=function(a,c){return new w.Ud(a,c)};w.ag=function(a,c,d){this.Ab=a||new w.Yb(0,0);this.color=c||new w.$a(0,0,0,0);this.size=d||0};
w.YD=function(a,c,d,e){this.Na=a||new w.Yb(0,0);this.wb=c||new w.Yb(0,0);this.pa=d||new w.Yb(0,0);this.Ma=e||new w.Yb(0,0)};w.qo=function(a,c,d,e){this.pa=a||new w.Vd(0,0);this.Ma=c||new w.Vd(0,0);this.Na=d||new w.Vd(0,0);this.wb=e||new w.Vd(0,0)};w.ax=function(a,c){this.x=a;this.y=c};w.Nm=function(a,c){return new w.ax(a,c)};w.te=function(a,c,d){this.N=a||new w.Yb(0,0);this.Kc=c||new w.$a(0,0,0,0);this.j=d||new w.Ud(0,0)};
w.zl=function(){this.N=new w.Yb(0,0);this.Kc=new w.nd(0,0,0,0);this.j=new w.Ud(0,0)};w.ue=function(a,c,d){this.N=a||new w.Vd(0,0);this.Kc=c||new w.$a(0,0,0,0);this.j=d||new w.Ud(0,0)};
w.Hx=function(){var a=new w.te(new w.Yb(0,0),new w.$a(0,0,0,255),new w.Ud(0,0)),c=new w.te(new w.Yb(0,0),new w.$a(0,0,0,255),new w.Ud(0,0)),d=new w.te(new w.Yb(0,0),new w.$a(0,0,0,255),new w.Ud(0,0));this.pa=new w.te(new w.Yb(0,0),new w.$a(0,0,0,255),new w.Ud(0,0))||new w.te;this.Ma=a||new w.te;this.Na=c||new w.te;this.wb=d||new w.te};w.qt=function(){return new w.Hx};
w.Ix=function(){var a=new w.ue(new w.Vd(0,0),new w.$a(0,0,0,255),new w.Ud(0,0)),c=new w.ue(new w.Vd(0,0),new w.$a(0,0,0,255),new w.Ud(0,0)),d=new w.ue(new w.Vd(0,0),new w.$a(0,0,0,255),new w.Ud(0,0));this.Na=new w.ue(new w.Vd(0,0),new w.$a(0,0,0,255),new w.Ud(0,0))||new w.ue;this.pa=a||new w.ue;this.wb=c||new w.ue;this.Ma=d||new w.ue};w.Po=function(){return new w.Ix};w.ME=function(a,c,d,e){this.pa=a||new w.zl;this.Ma=c||new w.zl;this.Na=d||new w.zl;this.wb=e||new w.zl};
w.mf=function(a,c){this.src=a;this.ed=c};w.Co=0;w.Bo=1;w.Do=2;w.k=function(a,c){this.x=a||0;this.y=c||0};w.k.Uf=function(a,c){return a.x==c.x&&a.y==c.y};w.ea=function(a,c){this.width=a||0;this.height=c||0};w.ea.Nn=function(a,c){return a.width==c.width&&a.height==c.height};
w.v=function(a,c,d,e){switch(arguments.length){case 0:this.origin=new w.k(0,0);this.size=new w.ea(0,0);break;case 1:a?a instanceof w.v?(this.origin=new w.k(a.origin.x,a.origin.y),this.size=new w.ea(a.size.width,a.size.height)):b("unknown argument type"):(this.origin=new w.k(0,0),this.size=new w.ea(0,0));break;case 2:this.origin=a?new w.k(a.x,a.y):new w.k(0,0);this.size=c?new w.ea(c.width,c.height):new w.ea(0,0);break;case 4:this.origin=new w.k(a||0,c||0);this.size=new w.ea(d||0,e||0);break;default:b("unknown argument type")}};
w.v.Ar=function(a,c){return w.k.Uf(a.origin,c.origin)&&w.ea.Nn(a.size,c.size)};w.v.Kh=function(a){return a.origin.x+a.size.width};w.v.XC=function(a){return(a.origin.x+a.size.width)/2};w.v.Og=function(a){return a.origin.x};w.v.Lh=function(a){return a.origin.y+a.size.height};w.v.YC=function(a){return a.origin.y+a.size.height/2};w.v.Pg=function(a){return a.origin.y};w.v.Fw=function(a,c){var d=m;c.x>=w.v.Og(a)&&(c.x<=w.v.Kh(a)&&c.y>=w.v.Pg(a)&&c.y<=w.v.Lh(a))&&(d=i);return d};
w.v.Qg=function(a,c){return!(w.v.Kh(a)<w.v.Og(c)||w.v.Kh(c)<w.v.Og(a)||w.v.Lh(a)<w.v.Pg(c)||w.v.Lh(c)<w.v.Pg(a))};w.v.$C=function(a,c){return a.origin.x+a.size.width<c.origin.x||c.origin.x+c.size.width<a.origin.x||a.origin.y+a.size.height<c.origin.y||c.origin.y+c.size.height<a.origin.y?m:i};
w.v.Br=function(a,c){var d=new w.v(0,0,0,0);d.origin.x=Math.min(a.origin.x,c.origin.x);d.origin.y=Math.min(a.origin.y,c.origin.y);d.size.width=Math.max(a.origin.x+a.size.width,c.origin.x+c.size.width)-d.origin.x;d.size.height=Math.max(a.origin.y+a.size.height,c.origin.y+c.size.height)-d.origin.y;return d};
w.v.ZC=function(a,c){var d=new w.v(Math.max(w.v.Og(a),w.v.Og(c)),Math.max(w.v.Pg(a),w.v.Pg(c)),0,0);d.size.width=Math.min(w.v.Kh(a),w.v.Kh(c))-w.v.Og(d);d.size.height=Math.min(w.v.Lh(a),w.v.Lh(c))-w.v.Pg(d);return d};w.Sd=function(a,c){return new w.k(a,c)};w.Ha=function(a,c){return new w.ea(a,c)};w.T=function(a,c,d,e){return new w.v(a,c,d,e)};w.I=function(){return new w.k(0,0)};w.Xb=function(){return new w.ea(0,0)};w.cg=function(){return new w.v(0,0,0,0)};w.Js=w.S.extend({P:function(a){this.ye=a?Object.create(a.ye):[]},copy:function(){return new this.Js(this)},sL:function(){return this.copy()},count:function(){return this.ye.length},Qy:function(a){this.ye.push(a)},oM:function(a){for(var c=0,d=0,e=0;d<this.ye.length;d++)this.ye[d]!=a&&(this.ye[e++]=this.ye[d],c++);array.length=c},BG:function(a){return a in this.ye==i?i:m},OF:function(){return 0<this.ye.length?this.ye[0]:j},ye:j});w.JD=w.Js;w.wn=function(a){var c;if(a&&0!=a.length){var d=a.indexOf("{"),e=a.indexOf("}");if(!(-1==d||-1==e)&&!(d>e))a=a.substr(d+1,e-d-1),0!=a.length&&(d=a.indexOf("}"),-1!=a.indexOf("{")||-1!=d||(c=a.split(",")))}return c};
w.Es=function(a){var c=w.cg();if(a){var d=a.indexOf("{")+1,e=a.lastIndexOf("}",a.length);-1==d||-1==e||(a=a.substring(d,e),d=a.indexOf("}"),-1!=d&&(d=a.indexOf(",",d),-1!=d&&(c=w.wn(a.substr(0,d).toString()),a=w.wn(a.substr(d+1,a.length-d).toString()),c=w.T(parseFloat(c[0]),parseFloat(c[1]),parseFloat(a[0]),parseFloat(a[1])))))}return c};w.Bs=function(a){var c=w.I();try{if(""==a)return c;var d=w.wn(a),c=w.Sd(parseFloat(d[0]),parseFloat(d[1]))}catch(e){}return c};
w.wo=function(a){var c=w.Xb();try{if(""==a)return c;var d=w.wn(a),c=w.Ha(parseFloat(d[0]),parseFloat(d[1]))}catch(e){}return c};w.Rk=function(a,c,d,e,f,h){this.i=a;this.d=c;this.Vb=d;this.Lb=e;this.ke=f;this.le=h};w.Th=function(a,c,d,e,f,h){return new w.Rk(a,c,d,e,f,h)};w.Sk=function(a,c,d,e,f,h){return new w.Rk(a,c,d,e,f,h)};w.Px=function(a,c){var d=new w.k;d.x=c.i*a.x+c.Vb*a.y+c.ke;d.y=c.d*a.x+c.Lb*a.y+c.le;return d};w.$f=function(a,c){return w.Px(a,c)};w.Qx=function(a,c){var d=new w.ea;d.width=c.i*a.width+c.Vb*a.height;d.height=c.d*a.width+c.Lb*a.height;return d};w.jE=function(a,c){return w.Qx(a,c)};
w.mw=function(){return w.Th(1,0,0,1,0,0)};w.Gn=function(){return w.mw()};w.Ds=function(a,c){var d=w.v.Pg(a),e=w.v.Og(a),f=w.v.Kh(a),h=w.v.Lh(a),l=w.$f(w.Sd(e,d),c),d=w.$f(w.Sd(f,d),c),e=w.$f(w.Sd(e,h),c),k=w.$f(w.Sd(f,h),c),f=Math.min(Math.min(l.x,d.x),Math.min(e.x,k.x)),h=Math.max(Math.max(l.x,d.x),Math.max(e.x,k.x)),n=Math.min(Math.min(l.y,d.y),Math.min(e.y,k.y)),l=Math.max(Math.max(l.y,d.y),Math.max(e.y,k.y));return w.T(f,n,h-f,l-n)};
w.Fh=function(a,c,d){return w.Th(a.i,a.d,a.Vb,a.Lb,a.ke+a.i*c+a.Vb*d,a.le+a.d*c+a.Lb*d)};w.sr=function(a,c,d){return w.Th(a.i*c,a.d*c,a.Vb*d,a.Lb*d,a.ke,a.le)};w.rr=function(a,c){var d=Math.sin(c),e=Math.cos(c);return w.Th(a.i*e+a.Vb*d,a.d*e+a.Lb*d,a.Vb*e-a.i*d,a.Lb*e-a.d*d,a.ke,a.le)};w.Ui=function(a,c){return w.Th(a.i*c.i+a.d*c.Vb,a.i*c.d+a.d*c.Lb,a.Vb*c.i+a.Lb*c.Vb,a.Vb*c.d+a.Lb*c.Lb,a.ke*c.i+a.le*c.Vb+c.ke,a.ke*c.d+a.le*c.Lb+c.le)};
w.PC=function(a,c){return a.i==c.i&&a.d==c.d&&a.Vb==c.Vb&&a.Lb==c.Lb&&a.ke==c.ke&&a.le==c.le};w.qr=function(a){var c=1/(a.i*a.Lb-a.d*a.Vb);return w.Th(c*a.Lb,-c*a.d,-c*a.Vb,c*a.i,c*(a.Vb*a.le-a.Lb*a.ke),c*(a.d*a.ke-a.i*a.le))};w.zr=parseFloat("1.192092896e-07F");w.a=function(a,c){return new w.k(a,c)};w.hq=function(a){return new w.k(-a.x,-a.y)};w.pc=function(a,c){return new w.k(a.x+c.x,a.y+c.y)};w.qc=function(a,c){return new w.k(a.x-c.x,a.y-c.y)};w.mb=function(a,c){return new w.k(a.x*c,a.y*c)};w.kG=function(a,c){return w.mb(w.pc(a,c),0.5)};w.kk=function(a,c){return a.x*c.x+a.y*c.y};w.eG=function(a,c){return a.x*c.y-a.y*c.x};w.lG=function(a){return new w.k(-a.y,a.x)};w.nG=function(a){return new w.k(a.y,-a.x)};
w.mG=function(a,c){return w.mb(c,w.kk(a,c)/w.kk(c,c))};w.oG=function(a,c){return new w.k(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};w.sG=function(a,c){return new w.k(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};w.jz=function(a){return w.kk(a,a)};w.fq=function(a){return Math.sqrt(w.jz(a))};w.fG=function(a,c){return w.fq(w.qc(a,c))};w.lk=function(a){return w.mb(a,1/w.fq(a))};w.gG=function(a){return new w.k(Math.cos(a),Math.sin(a))};w.rG=function(a){return Math.atan2(a.y,a.x)};
w.Nd=function(a,c,d){if(c>d)var e=c,c=d,d=e;return a<c?c:a<d?a:d};w.cG=function(a,c,d){return new w.k(w.Nd(a.x,c.x,d.x),w.Nd(a.y,c.y,d.y))};w.hG=function(a){return new w.k(a.width,a.height)};w.dG=function(a,c){return new w.k(c(a.x),c(a.y))};w.hu=function(a,c){return w.pc(w.mb(a,0.5),w.mb(c,0.5))};w.iG=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?i:m};w.Om=function(a,c){return new w.k(a.x*c.x,a.y*c.y)};
w.bG=function(a,c){var d=w.lk(a),e=w.lk(c),d=Math.atan2(d.x*e.y-d.y*e.x,w.kk(d,e));return Math.abs(d)<w.zr?0:d};w.aG=function(a,c){var d=Math.acos(w.kk(w.lk(a),w.lk(c)));return Math.abs(d)<w.zr?0:d};w.kz=function(a,c,d){var a=w.qc(a,c),e=Math.cos(d),d=Math.sin(d),f=a.x;a.x=f*e-a.y*d+c.x;a.y=f*d+a.y*e+c.y;return a};
w.gq=function(a,c,d,e,f){if(a.x==c.x&&a.y==c.y||d.x==e.x&&d.y==e.y)return m;var h=c.x-a.x,c=c.y-a.y,l=e.x-d.x,e=e.y-d.y,k=a.x-d.x,a=a.y-d.y,d=e*h-l*c;f.x=l*a-e*k;f.y=h*a-c*k;if(0==d)return 0==f.x||0==f.y?i:m;f.x/=d;f.y/=d;return i};w.qG=function(a,c,d,e){var f=new w.k;return w.gq(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?i:m};w.jG=function(a,c,d,e){var f=new w.k;return w.gq(a,c,d,e,f)?(d=new w.k,d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):w.I()};
w.pG=function(a,c){return a.x&&c.x?a.x==c.x&&a.y==c.y:m};w.Ln=-1;w.VC=j;w.WC=j;w.EM=function(){w.qa==w.ta&&w.Ga.save()};w.restoreContext=function(){w.qa==w.ta&&w.Ga.restore()};
w.hb=w.S.extend({Jc:0,Vt:0,Xe:0,kc:1,Ec:1,Ea:w.I(),xe:w.I(),td:0,ud:0,c:j,Wo:j,Hb:j,Yd:i,Qb:new w.k(0,0),ya:new w.k(0,0),za:w.Xb(),sb:w.Xb(),Id:m,bc:j,eh:i,Kb:w.Ln,Ut:j,cm:i,am:i,Ij:i,Kj:j,vd:j,Gt:j,oF:j,P:function(){w.jl&&(this.Kj=i);this.Qb=new w.k(0,0);this.ya=new w.k(0,0);this.za=new w.ea(0,0);this.sb=new w.ea(0,0)},Gl:function(a,c){if(a&&0!=a.length){var d;switch(c){case w.hb.eg.Ra:for(d=0;d<a.length;d++)a[d]&&a[d].Ra();break;case w.hb.eg.Mc:for(d=0;d<a.length;d++)a[d]&&a[d].Mc();break;case w.hb.eg.Jg:for(d=
0;d<a.length;d++)a[d]&&a[d].Jg();break;case w.hb.eg.Ce:for(d=0;d<a.length;d++)a[d]&&a[d].Ce();break;default:b("Unknown callback function")}}},QE:q(),cF:q(),Za:function(){this.ce();this.cm=this.am=i;w.jl&&(this.Kj=i)},ce:function(){this.Ij=i;this.bc&&this.bc.ce()},QJ:u("td"),Lv:function(a){this.td=a;this.Za()},RJ:u("ud"),Mv:function(a){this.ud=a;this.Za()},xK:u("Jc"),Fy:s("Jc"),vK:function(){return this.Vt/w.l()},Mk:function(a){this.Vt=a*w.l()},JJ:u("Xe"),Pf:function(a){this.Xe=a;this.Za()},$z:function(){w.b(this.kc==
this.Ec,"cc.Node#scale. ScaleX != ScaleY. Don't know which one to return");return this.kc},Ob:function(a){this.Ec=this.kc=a;this.Za()},LJ:u("kc"),Kv:function(a){this.kc=a;this.Za()},MJ:u("Ec"),dr:function(a){this.Ec=a;this.Za()},m:function(a){this.Ea=a;this.xe=1==w.l()?this.Ea:w.mb(a,w.l());this.Za()},rn:function(a){this.xe=a;this.Ea=1==w.l()?this.xe:w.mb(a,1/w.l());this.Za()},qJ:function(){return new w.k(this.xe.x,this.xe.y)},Fa:function(){return new w.k(this.Ea.x,this.Ea.y)},tJ:function(){return this.Ea.x},
TN:function(a){this.m(w.a(a,this.Ea.y))},uJ:function(){return this.Ea.y},UN:function(a){this.m(w.a(this.Ea.x,a))},LH:function(){return this.c?this.c.length:0},KH:u("c"),wh:function(){this.Wo||(this.Wo=new w.On);return this.Wo},rc:u("Hb"),EB:s("Hb"),II:u("Yd"),ha:function(a){this.Yd=a;this.Za()},xH:function(){return new w.k(this.Qb.x,this.Qb.y)},X:function(a){w.k.Uf(a,this.Qb)||(this.Qb=a,this.ya=new w.k(this.sb.width*this.Qb.x,this.sb.height*this.Qb.y),this.Za())},Bi:function(){return new w.k(this.ya.x,
this.ya.y)},Ek:function(a){w.ea.Nn(a,this.sb)||(this.sb=a,this.za=1==w.l()?this.sb:new w.ea(a.width/w.l(),a.height/w.l()),this.ya=new w.k(this.sb.width*this.Qb.x,this.sb.height*this.Qb.y),this.Za())},ja:function(){return new w.ea(this.za.width,this.za.height)},vb:function(a){w.ea.Nn(a,this.za)||(this.za=a,this.sb=1==w.l()?this.za:new w.ea(a.width*w.l(),a.height*w.l()),this.ya=new w.k(this.sb.width*this.Qb.x,this.sb.height*this.Qb.y),this.Za())},yh:function(){return new w.ea(this.sb.width,this.sb.height)},
FI:u("Id"),getParent:u("bc"),Hk:s("bc"),EI:u("eh"),HB:function(a){this.eh=a;this.Za()},eA:u("Kb"),Mi:s("Kb"),getUserData:u("Ut"),setUserData:s("Ut"),eu:function(){var a=this.dz();return w.tj(a)},dz:function(){var a=w.T(0,0,this.sb.width,this.sb.height);return w.Ds(a,this.yk())},si:function(){var a=w.T(0,0,this.sb.width,this.sb.height),a=w.Ds(a,this.hn()),a=new w.v(0|a.origin.x-4,0|a.origin.y-4,0|a.size.width+8,0|a.size.height+8);if(!this.c)return a;for(var c=0;c<this.c.length;c++){var d=this.c[c];
d&&d.Yd&&(d=d.si())&&(a=w.v.Br(a,d))}return a},Ce:function(){this.Vv();this.aw();this.Gl(this.c,w.hb.eg.Ce)},description:function(){return"<cc.Node | Tag ="+this.Kb+">"},Zx:function(){this.c=[]},xh:function(a){w.b(a!=w.Ln,"Invalid tag");if(this.c!=j)for(var c=0;c<this.c.length;c++){var d=this.c[c];if(d&&d.Kb==a)return d}return j},r:function(a,c,d){w.b(a!=j,"Argument must be non-nil");w.b(a.bc==j,"child already added. It can't be added again");c=c!=j?c:a.Jc;a.Mi(d!=j?d:a.Kb);this.c||this.Zx();this.qp(a,
c);a.Hk(this);this.Id&&(a.Ra(),a.Jg())},dB:function(a){this.bc.removeChild(this,a)},removeChild:function(a,c){this.c!=j&&(-1<this.c.indexOf(a)&&this.ay(a,c),this.Za())},ln:function(a,c){w.b(a!=w.Ln,"Invalid tag");var d=this.xh(a);d==j?w.Q("cocos2d: removeChildByTag: child not found!"):this.removeChild(d,c)},Vq:function(a){if(this.c!=j){for(var c=0;c<this.c.length;c++){var d=this.c[c];d&&(this.Id&&d.Mc(),a&&d.Ce(),d.Hk(j))}this.c=[]}},ay:function(a,c){this.Id&&a.Mc();c&&a.Ce();a.Hk(j);w.Wb(this.c,
a)},qp:function(a,c){var d=this.c[this.c.length-1];if(!d||d.Jc<=c)this.c.push(a);else for(d=0;d<this.c.length;d++){var e=this.c[d];if(e&&e.Jc>c){this.c=w.Pd(this.c,a,d);break}}a.Fy(c)},vv:function(a,c){w.b(a!=j,"Child must be non-nil");w.Wb(this.c,a);this.qp(a,c);this.Za()},zb:q(),dc:function(a){if(this.Yd){a=a||w.Ga;a.save();this.Hb&&this.Hb.Dd&&(this.Hb.Yp(),this.An());this.transform(a);var c,d;if(this.c)for(c=0;c<this.c.length;c++)if((d=this.c[c])&&0>d.Jc)d.dc(a);else break;this.zb(a);if(this.c)for(;c<
this.c.length;c++)(d=this.c[c])&&0<=d.Jc&&d.dc(a);this.Hb&&this.Hb.Dd&&this.Hb.Sp(this);a.restore()}},An:function(){this.bc!=j&&(this.bc.An(),this.bc.transform())},transform:function(a){a=a||w.Ga;if(w.qa==w.ta){var c;if(this.eh)c=this.bc?this.bc.ya:new w.k(0,0),a.translate(0|this.Ea.x-c.x,-(0|this.Ea.y-c.y));else{c=this.bc?this.bc.ya:new w.k(0,0);var d=this.ya;a.translate(0|this.Ea.x-c.x+d.x,-(0|this.Ea.y-c.y+d.y))}0!=this.Xe&&a.rotate(w.Bb(this.Xe));(1!=this.kc||1!=this.Ec)&&a.scale(this.kc,this.Ec);
(0!=this.td||0!=this.ud)&&a.transform(1,-Math.tan(w.Bb(this.ud)),-Math.tan(w.Bb(this.td)),1,0,0)}else w.jl&&this.Kj&&(this.yk(),this.Kj=m)},Ra:function(){this.Gl(this.c,w.hb.eg.Ra);this.hB();this.Id=i},Jg:function(){this.Gl(this.c,w.hb.eg.Jg)},Mc:function(){this.TA();this.Id=m;this.Gl(this.c,w.hb.eg.Mc)},G:function(a){w.b(a!=j,"Argument must be non-nil");w.Od.tc().Oy(a,this,!this.Id);return a},Vv:function(){w.Od.tc().sv(this)},pC:function(a){w.Od.tc().rv(a)},qC:function(a){w.b(a!=w.Xi,"Invalid tag");
w.Od.tc().bB(a,this)},pq:function(a){w.b(a!=w.Xi,"Invalid tag");return w.Od.tc().pq(a,this)},EL:function(){return w.Od.tc.MA(this)},ZK:q(),FM:function(){this.zv(0)},zv:function(a){w.Tc.jf().yv(this,a,!this.Id)},CC:function(){w.Tc.jf().Ti(this)},Kg:function(a,c){c||(c=0);w.b(a,"Argument must be non-nil");w.b(0<=c,"Argument must be positive");w.Tc.jf().nB(a,this,c,!this.Id)},AC:function(a){a&&w.Tc.jf().BC(a,this)},aw:function(){w.Tc.jf().bw(this)},hB:function(){w.Tc.jf().Wq(this);w.Od.tc().Wq(this)},
TA:function(){w.Tc.jf().Mq(this);w.Od.tc().Mq(this)},yk:function(){if(this.cm){this.vd=w.Gn();!this.eh&&!w.k.Uf(this.ya,w.I())&&(this.vd=w.Fh(this.vd,this.ya.x,this.ya.y));w.k.Uf(this.xe,w.I())||(this.vd=w.Fh(this.vd,this.xe.x,this.xe.y));0!=this.Xe&&(this.vd=w.rr(this.vd,-w.Bb(this.Xe)));if(0!=this.td||0!=this.ud)this.vd=w.Ui(w.Sk(1,Math.tan(w.Bb(this.ud)),Math.tan(w.Bb(this.td)),1,0,0),this.vd);1==this.kc&&1==this.Ec||(this.vd=w.sr(this.vd,this.kc,this.Ec));w.k.Uf(this.ya,w.I())||(this.vd=w.Fh(this.vd,
-this.ya.x,-this.ya.y));this.cm=m}return this.vd},TL:function(){this.am&&(this.Gt=w.qr(this.yk()),this.am=m);return this.Gt},hn:function(){for(var a=this.yk(),c=this.bc;c!=j;c=c.getParent())a=w.Ui(a,c.yk());return a},fw:function(){return w.qr(this.hn())},kq:function(a){var c=new w.k;1==w.l()?c=w.$f(a,this.fw()):(c=w.mb(a,w.l()),c=w.$f(c,this.fw()),c=w.mb(c,1/w.l()));return c},Qm:function(a){var c=new w.k;1==w.l()?c=w.$f(a,this.hn()):(c=w.mb(a,w.l()),c=w.$f(c,this.hn()),c=w.mb(c,1/w.l()));return c},
sz:function(a){var a=this.kq(a),c=new w.k,c=1==w.l()?this.ya:w.mb(this.ya,1/w.l());return w.qc(a,c)},CG:function(a){var c=new w.k,c=1==w.l()?this.ya:w.mb(this.ya,1/w.l()),d=new w.k,d=w.pc(a,c);return this.Qm(d)},VE:function(a){var c=new w.k,c=this.Qm(a);return w.n.p().tz(c)},DG:function(a){a=a.fn(a.view());a=w.n.p().ju(a);return this.kq(a)},EG:function(a){a=a.fn(a.view());a=w.n.p().ju(a);return this.sz(a)},update:q()});w.hb.eg={Ra:1,Mc:2,Ce:3,Jg:4,Cn:5};w.hb.create=function(){return new w.hb};w.In=w.hb.extend({vp:0,dF:0,fh:0,Lj:0,Vh:new w.ua(0,0,0),$:j,Ue:m,W:new w.mf(w.ld,w.kd),Z:0,H:j,og:j,Ep:0,Su:function(a,c,d,e){w.b(a!=j,"title should not be null");this.fh=c*w.l();this.Lj=d*w.l();this.Z=255;this.H=this.Vh=w.Sh();this.Ue=i;this.W.src=w.ld;this.W.ed=w.kd;this.$=new w.Xg;this.$.Mb(a,e);w.qa==w.ta&&(this.og=this.$.ga());if(!this.$)return w.Q("cocos2d: Could not initialize cc.AtlasNode. Invalid Texture."),m;this.ni();this.Yx();this.Ep=e;return i},kr:function(){w.b(m,"cc.AtlasNode:Abstract updateAtlasValue not overriden")},
zb:function(){this._super()},xd:function(){return this.Ue?this.Vh:this.H},Sa:function(a){if(!(this.H.f==a.f&&this.H.e==a.e&&this.H.d==a.d)){this.H=this.Vh=a;if(this.ga()&&w.qa==w.ta){var c=w.Ia.nb().Xm(this.og);if(c){var d=this.ga(),e=new w.v(0,0,d.width,d.height),c=w.Tm(d,c,this.H,e),d=new Image;d.src=c.toDataURL();this.sc(d)}}this.Ue&&(this.H.f=a.f*this.Z/255,this.H.e=a.e*this.Z/255,this.H.d=a.d*this.Z/255)}},Ge:u("Z"),Ta:s("Z"),hf:function(a){var c=this.H;this.Ue=a;this.H=c},Ci:u("Ue"),Um:u("W"),
Ch:s("W"),ga:function(){return this.$.ga()},sc:function(a){this.$.sc(a);this.ni()},Ov:s("$"),Ju:u("$"),zJ:u("Ep"),WN:s("Ep"),Yx:function(){this.vp=parseInt(this.$.ga().width/this.fh)},ni:q(),sF:q()});w.In.create=function(a,c,d,e){var f=new w.In;return f.Su(a,c,d,e)?f:j};w=w=w||{};w.Gw=0;w.Me=1;w.dj=2;w.Mh=3;w.bj=4;w.Hw=5;w.Cr=6;w.ej=7;w.cj=8;w.Jw=9;w.Iw=10;w.Dr=w.Me;w.pE=w.Gw;w.wx=w.Me;w.tE=w.dj;w.rE=w.Mh;w.oE=w.bj;w.uE=w.ej;w.sE=w.cj;w.qE=w.Dr;w.nq=w.Dr;w.ms=m;
w.se=w.S.extend({iF:j,zf:j,Cc:j,Bc:j,ii:j,za:j,Mj:j,Nj:j,ng:j,P:q(),lJ:u("zf"),nJ:u("Cc"),mJ:u("Bc"),getName:u("ii"),yh:function(){var a=new w.ea;a.width=this.za.width/w.l();a.height=this.za.height/w.l();return a},UI:u("Mj"),EN:s("Mj"),VI:u("Nj"),FN:s("Nj"),tI:u("ng"),description:function(){return"<cc.Texture2D | Name = "+this.ii+" | Dimensions = "+this.Cc+" x "+this.Bc+" | Coordinates = ("+this.Mj+", "+this.Nj+")>"},hM:function(a){w.vH(a)},kL:p(),zq:function(a,c,d,e){this.Av();switch(a){case w.Me:break;
case w.dj:break;case w.ej:break;case w.cj:break;case w.Mh:break;case w.Cr:break;case w.bj:break;default:w.b(0,"NSInternalInconsistencyException")}this.za=e;this.Cc=c;this.Bc=d;this.zf=a;this.Mj=e.width/c;this.Nj=e.height/d;this.ng=m;return i},RG:q(),SG:q(),Qu:function(a){var c,d;if(a==j)return w.Q("cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil"),m;var e=w.Kw.gC();w.xx?e.aL()&&(c=a.Jf(),d=a.zh()):(c=w.Rd(a.Jf()),d=w.Rd(a.zh()));e=e.WI();return d>e||c>e?(w.Q("cocos2d: WARNING: Image (%u x %u) is bigger than the supported %u x %u",
c,d,e,e),j):this.ky(a,c,d)},ie:function(a,c,d,e,f){3==arguments.length&&(e=arguments[1],f=arguments[2],c=w.Ha(0,0),d=w.Bo);w.Sn&&w.Kx.HF(this,a,c,d,e,f);var h=new w.Rg;eAlign=new w.Rg.qD;eAlign=w.Bo==d?w.Rg.MC:w.Co==d?w.Rg.NC:w.Rg.OC;return!h.ie(a,c.width,c.height,eAlign,e,f)?m:this.Qu(h)},vA:function(a){var c=m,d=new w.FE;(c=d.GK(a))?(d.cO(i),this.ii=d.getName(),this.Nj=this.Mj=1,this.Cc=d.Jf(),this.Bc=d.zh(),this.za=w.Ha(this.Cc,this.Bc),this.ng=w.ms,this.zf=d.pI(),this.Av()):w.Q("cocos2d: Couldn't load PVR image %s",
a);return c},Nv:function(a){w.b(this.Cc==w.Rd(this.Cc)&&this.Bc==w.Rd(this.Bc)||a.eP==w.lj&&a.fP==w.lj,"cc.GL_CLAMP_TO_EDGE should be used in NPOT textures")},Av:function(){this.Nv([w.Ww,w.Ww,w.lj,w.lj])},rB:function(){this.Nv([w.Xw,w.Xw,w.lj,w.lj])},generateMipmap:function(){w.b(this.Cc==w.Rd(this.Cc)&&this.Bc==w.Rd(this.Bc),"Mimpap texture only works in POT textures")},cz:function(){var a=0;switch(this.zf){case w.Me:a=32;break;case w.Mh:a=16;break;case w.bj:a=8;break;case w.ej:a=16;break;case w.cj:a=
16;break;case w.Jw:a=4;break;case w.Iw:a=2;break;case w.Hw:a=8;break;case w.Cr:a=16;break;case w.dj:a=24;break;default:a=-1,w.b(m,"illegal pixel format"),w.Q("bitsPerPixelForFormat: %d, cannot give useful result",this.zf)}return a},ky:function(a,c,d){var e=j,f=j,h=j,l;l=new w.ea;var k=new w.EE,k=new w.IO;l=a.BK();k=a.EH();l?k=w.nq:8<=k?k=w.dj:(w.Q("cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha"),k=w.Mh);l=w.Ha(a.Jf(),a.zh());switch(k){case w.Me:case w.ej:case w.cj:case w.Mh:case w.bj:f=
a.getData();w.b(f!=j,"null image data.");if(a.Jf()==c&&a.zh()==d)e=new (4*d*c),w.Eq(e,f,4*d*c);else for(var h=e=new (4*d*c),n=a.zh(),o=0;o<n;++o)w.Eq(h+4*c*o,f+4*a.Jf()*o,4*a.Jf());break;case w.dj:f=a.getData();w.b(f!=j,"null image data.");if(a.Jf()==c&&a.zh()==d)e=new (3*d*c),w.Eq(e,f,3*d*c);else{h=e=new (3*d*c);n=a.zh();for(o=0;o<n;++o)w.Eq(h+3*c*o,f+3*a.Jf()*o,3*a.Jf())}break;default:w.b(0,"Invalid pixel format")}if(k==w.Mh){f=new (2*d*c);h=e;n=c*d;for(o=0;o<n;++o,++h);delete e;e=f}else if(k==
w.ej){f=new (2*d*c);h=e;n=c*d;for(o=0;o<n;++o,++h);delete e;e=f}else if(k==w.cj){f=new (2*d*c);h=e;n=c*d;for(o=0;o<n;++o,++h);delete e;e=f}else k==w.bj&&(k=w.Me);e&&(this.zq(e,k,c,d,l),this.ng=a.WK(),delete e);return i}});w.se.TM=function(a){w.nq=a};w.se.JG=function(){return w.nq};w.se.WD=function(a){w.ms=a};w.tk=j;w.nL=function(a){if(w.qz(a)==w.Sw)w.Q("unsupported format"+a);else{var c=new Image;c.src=a;c.KL=function(){w.Ia.nb().fz(a,c)}}};w.qz=function(a){return 0<a.toLowerCase().indexOf(".jpg")||0<a.toLowerCase().indexOf(".jpeg")?w.rD:0<a.indexOf(".png")||0<a.indexOf(".PNG")?w.sD:w.Sw};
w.Ia=w.S.extend({Ua:{},Kp:{},P:function(){w.b(w.tk==j,"Attempted to allocate a second instance of a singleton.")},AF:function(a,c,d){w.b(a!=j,"TextureCache: path MUST not be null");var e=this.Ua[a.toString()];if(e)this.st(c,d);else{var e=new Image,f=this;e.addEventListener("load",function(){f.st(c,d)});e.src=a;this.Ua[a.toString()]=e}if(w.qa==w.ta)return this.Ua[a.toString()]},st:function(a,c){if(a&&"string"==typeof c)a[c]();else a&&"function"==typeof c&&c.call(a)},DF:function(){w.b(0,"TextureCache:addPVRTCImage does not support")},
description:function(){return"<TextureCache | Number of textures = "+this.Ua.length+">"},dd:function(a){w.b(a!=j,"TextureCache: path MUST not be null");var c=this.Ua[a.toString()];c?w.Rc.Nc().zk():(c=new Image,c.addEventListener("load",function(){w.Rc.Nc().zk()}),c.addEventListener("error",function(){w.Rc.Nc().Iq(a)}),c.src=a,this.Ua[a.toString()]=c);if(w.qa==w.ta)return this.Ua[a.toString()]},fz:function(a,c){this.Ua[a.toString()]||(this.Ua[a.toString()]=c)},JF:function(a,c){w.b(a!=j,"TextureCache: image MUST not be nulll");
var d=j;if(c&&this.Ua.hasOwnProperty(c)&&(d=this.Ua[c]))return d;d=new w.se;d.Qu(a);c!=j&&d!=j?this.Ua[c]=d:w.Q("cocos2d: Couldn't add UIImage in TextureCache");return d},Wv:function(a){return this.Ua.hasOwnProperty(a)?this.Ua[a]:j},Vz:function(a){for(var c in this.Ua)if(this.Ua[c]==a)return c;return j},Xm:function(a){var c=this.Vz(a);if(c)if(a instanceof HTMLImageElement)c=a.src;else return j;this.Kp.hasOwnProperty(c)||(this.Kp[c]=w.Qz(a));return this.Kp[c]},lM:function(){this.Ua={}},tM:function(a){if(a)for(var c in this.Ua)if(this.Ua[c]==
a){delete this.Ua[c];break}},uM:function(a){a!=j&&this.Ua[a]&&delete this.Ua[a]},VG:function(){var a=0,c=0,d;for(d in this.Ua){var e=this.Ua[d],f=e.cz(),h=e.Cc*e.Bc*f/8,c=c+h;a++;w.Q("cocos2d: '"+e.toString()+"' id="+e.getName()+" "+e.Cc+" x "+e.Bc+" @ "+f+" bpp => "+h/1024+" KB")}w.Q("cocos2d: TextureCache dumpDebugInfo: "+a+" textures, for "+c/1024+" KB ("+(c/1048576).toFixed(2)+" MB)")},CF:function(a){w.b(a!=j,"TextureCache: file image MUST not be null");if(this.Ua[a]!=j)return this.Ua[a];var c=
new w.se;c.vA(a)?this.Ua[a]=c:w.Q("cocos2d: Couldn't add PVRImage:"+a+" in TextureCache");return c}});w.Ia.nb=function(){w.tk||(w.tk=new w.Ia);return w.tk};w.Ia.Tq=function(){w.tk=j};w.Xg=w.S.extend({Oa:[],UE:[0,1],bb:m,Re:0,s:j,ia:[],qK:function(){return this.ia.length},GH:u("Re"),ga:u("s"),sc:s("s"),yJ:u("ia"),VN:s("ia"),description:function(){return"<CCTextureAtlas | totalQuads ="+this.Tt+">"},jy:function(){if(0!=this.Re)for(var a=0;a<this.Re;a++)this.Oa[6*a+0]=4*a+0,this.Oa[6*a+1]=4*a+0,this.Oa[6*a+2]=4*a+2,this.Oa[6*a+3]=4*a+1,this.Oa[6*a+4]=4*a+3,this.Oa[6*a+5]=4*a+3},Mb:function(a,c){var d=w.Ia.nb().dd(a);if(d)return this.Ba(d,c);w.Q("cocos2d: Could not open file: "+a);
return j},Ba:function(a,c){w.b(a!=j,"TextureAtlas.initWithTexture():texture should not be null");this.Re=c;this.s=a;w.b(0==this.ia.length&&0==this.Oa.length,"TextureAtlas.initWithTexture():_quads and _indices should not be null");this.ia=[];this.Oa=[];if((!this.ia||!this.Oa)&&0<this.Re)return m;this.bb=i;this.jy();return i},lr:function(a,c){this.ia[c]=a;this.bb=i},Uu:function(a,c){this.ia=w.Pd(this.ia,a,c);this.bb=i},LK:function(a,c){if(a!=c){var d=this.ia[a];w.Gh(this.ia,a);this.ia=a>c?w.Pd(this.ia,
d,c):w.Pd(this.ia,d,c-1);this.bb=i}},uv:function(a){w.Gh(this.ia,a);this.bb=i},cB:function(){this.ia.length=0},wv:function(a){if(a==this.Re)return i;this.Tt=Math.min(this.Tt,a);this.Re=a;return i},TG:q(),UG:q()});w.Xg.create=function(a,c){var d=new w.Xg;return d&&d.Mb(a,c)?d:j};w.Xg.bf=function(a,c){var d=new w.Xg;return d&&d.Ba(a,c)?d:j};w.yw=0;w.zw=1;w.UC=2;w.Rd=function(a){a-=1;a|=a>>1;a|=a>>2;a|=a>>4;a|=a>>8;return(a|a>>16)+1};
w.Qh=w.hb.extend({canvas:j,th:j,kp:0,Qj:0,s:j,Lp:j,zf:w.Me,q:j,P:function(){this.canvas=document.createElement("canvas");this.th=this.canvas.getContext("2d");this.X(new w.k(0,0))},cA:u("q"),TB:s("q"),FH:u("canvas"),vb:function(a){a&&(this._super(a),this.canvas.width=1.5*a.width,this.canvas.height=1.5*a.height,this.th.translate(0,this.canvas.height))},AA:function(a,c,d){if(w.qa==w.ta)return this.canvas.width=a||10,this.canvas.height=c||10,this.th.translate(0,this.canvas.height),i;if(w.Kw.gC().qI()<=
GLES_VER_1_0)return m;var e=m,a=a*w.l(),c=c*w.l();glGetIntegerv(w.Vw,this.Qj);var f=w.Rd(a),h=w.Rd(c),l=[];w.Hh(!l);for(var k=0;k<4*f*h;k++)l[k]=0;this.zf=d;this.s=new w.se;w.Hh(!this.s);this.s.zq(l,this.zf,f,h,w.Ha(a,c));ccglGenFramebuffers(1,this.kp);ccglBindFramebuffer(w.mj,this.kp);ccglFramebufferTexture2D(w.mj,w.zD,GL_TEXTURE_2D,texture.getName(),0);ccglCheckFramebufferStatus(w.mj)!=w.AD?w.b(0,"Render Texture : Could not attach texture to framebuffer"):(this.s.rB(),this.q=w.O.bf(this.s),this.q.dr(-1),
this.r(this.q),this.q.Ch(new w.mf(GL_ONE,GL_ONE_MINUS_SRC_ALPHA)),ccglBindFramebuffer(w.mj,this.Qj),e=i);return e},qi:function(){glPushMatrix();var a=this.s.yh(),c=w.n.p().Gf,d=c.width/a.width,c=c.height/a.height;ccglOrtho(-1/d,1/d,-1/c,1/c,-1,1);glViewport(0,0,a.width,a.height);glGetIntegerv(w.Vw,this.Qj);ccglBindFramebuffer(w.mj,this.kp)},bz:function(a,c,d,e){this.qi();var f=[0,0,0,0];glGetFloatv(GL_COLOR_CLEAR_VALUE,f);glClearColor(a,c,d,e);glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);glClearColor(f[0],
f[1],f[2],f[3])},end:function(a){ccglBindFramebuffer(w.mj,this.Qj);glPopMatrix();var c=w.n.p().Gf;w.n.p().xb.Rv(0,0,c.width,c.height);if(w.Sn&&a){var a=this.s.yh(),c=a.width,d=a.height;this.Lp=new w.Rg;i==this.tq(this.Lp,0,0,c,d)?w.Kx.xF(this.s,this.Lp.getData(),w.wx,a):w.Q("Cache rendertexture failed!")}},clear:function(a,c,d,e){w.qa==w.ta?a?this.th.clearRect(a.origin.x,a.origin.y,a.size.width,a.size.height):this.th.clearRect(0,0,this.canvas.width,-this.canvas.height):(this.bz(a,c,d,e),this.end())},
DM:function(a,c,d,e,f,h){if("number"==typeof a){var d=d||0,e=e||0,f=f||0,h=h||0,l=m;w.b(a==w.yw||a==w.zw,"the image can only be saved as JPG or PNG format");a=new w.Rg;a!=j&&this.tq(a,d,e,f,h)&&(l=a.mB(g+c));return l}if("string"==typeof a)return h=f||0,f=e||0,e=d||0,d=c||0,c=a,l=m,a=new w.Rg,a!=j&&this.tq(a,d,e,f,h)&&(l=a.mB(c)),l},sK:v(j),tq:function(a,c,d,e,f){if(j==a||j==this.s)return m;var h=this.s.yh(),l=h.width,h=h.height;if(0>c||c>=l||0>d||d>=h||0>e||0>f||0==e&&0!=f||0==f&&0!=e)return m;var k=
e,n=f;0==e&&(k=l);0==f&&(n=h);k=c+k>l?l-c:k;n=d+n>h?h-d:n;e=j;e=m;w.b(this.zf==w.Me,"only RGBA8888 can be saved as image");e=[];for(f=0;f<4*k*n;f++)e[f]=0;w.Hh(!e);var o=0,t=0;glGetIntegerv(GL_MAX_TEXTURE_SIZE,0);o=w.Rd(l);t=w.Rd(h);w.Hh(0==o||0==t);w.Hh(0<o||0<t);for(f=0;f<4*o*t;f++);w.Hh(i);this.qi();glPixelStorei(GL_PACK_ALIGNMENT,1);glReadPixels(0,0,o,t,GL_RGBA,GL_UNSIGNED_BYTE,j);this.end(m);for(f=0;f<n;++f)this.ny(e,4*f*k,j,4*(d+n-f-1)*o+4*c,4*k);return e=a.HK(e,4*k*n,w.tD,k,n,8)},ny:function(a,
c,d,e,f){for(var h=0;h<f;h++)a[c+h]=d[e+h]}});w.Qh.create=function(a,c,d){d||(d=w.Me);var e=new w.Qh;return e&&e.AA(a,c,d)?e:j};w.$i=0;w.aj=1;w.Wk=2;w.Xk=3;w.Yk=4;w.Zk=5;w.Ph=4;w.ll=30;
w.Sg=w.hb.extend({rK:u("mc"),jJ:u("Ld"),cA:u("q"),Mb:function(a){return this.Ba(w.Ia.nb().dd(a))},Ba:function(a){this.q=w.O.bf(a);this.Ld=0;this.u=j;this.oc=0;this.X(w.a(0.5,0.5));this.vb(this.q.ja());this.mc=w.$i;return i},br:function(a){this.Ld!=a&&(this.Ld=w.Nd(a,0,100),this.Jy())},TB:function(a){this.q!=a&&(this.q=a,this.vb(this.q.ja()),this.u&&(this.u=j,this.oc=0))},bC:function(a){a!=this.mc&&(this.u&&(this.u=j,this.oc=0),this.mc=a)},zb:function(a){if(w.qa==w.ta)if(a=a||w.Ga,1<this.mc){var c=
new w.k(0|-this.ya.x+this.Xh.x,0|-this.ya.y+this.Xh.y);a.drawImage(this.q.s,this.ji.x,this.ji.y,this.Fd.width,this.Fd.height,c.x,-(c.y+this.Fd.height),this.Fd.width,this.Fd.height)}else c=this.ja(),a.beginPath(),a.arc(0,0,c.width>c.height?c.width:c.height,Math.PI/180*this.ze,Math.PI/180*this.vt,m),a.lineTo(0,0),a.clip(),a.closePath(),c=this.q.Jd,c=new w.k(0|-this.q.ya.x+c.x,0|-this.q.ya.y+c.y),a.drawImage(this.q.s,this.q.fa.origin.x,this.q.fa.origin.y,this.q.fa.size.width,this.q.fa.size.height,c.x,
-(c.y+this.q.fa.size.height),this.q.fa.size.width,this.q.fa.size.height);else this._super()},Fg:function(a){var c=new w.Yb(0,0);if(this.q.ga())var d=Math.max(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),e=Math.min(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),f=Math.max(this.q.t.Na.j.da,this.q.t.pa.j.da),h=Math.min(this.q.t.Na.j.da,this.q.t.pa.j.da),d=w.a(d,f),e=w.a(e,h),h=w.Ha(this.q.t.Ma.N.x-this.q.t.pa.N.x,this.q.t.Na.N.y-this.q.t.pa.N.y),a=w.a(h.width*(a.x-e.x)/(d.x-e.x),h.height*(1-(a.y-e.y)/(d.y-e.y)));else a=w.I();
c.x=a.x;c.y=a.y;return c},ji:w.I(),Fd:w.Xb(),Xh:w.I(),ze:270,vt:270,Jy:function(){if(w.qa==w.ta){var a=this.ja();switch(this.mc){case w.aj:this.vt=270+3.6*this.Ld;break;case w.$i:this.ze=270-3.6*this.Ld;break;case w.Wk:this.ji=w.I();this.Xh=w.I();this.Fd=w.Ha(0|this.Ld/100*a.width,a.height);break;case w.Xk:this.Fd=w.Ha(0|this.Ld/100*a.width,a.height);this.ji=w.a(a.width-this.Fd.width|0,0);this.Xh=w.a(a.width-this.Fd.width,0);break;case w.Yk:this.Fd=w.Ha(a.width,0|this.Ld/100*a.height);this.Xh=w.I();
this.ji=w.a(0,0|a.height-this.Fd.height);break;case w.Zk:this.Fd=w.Ha(a.width,0|this.Ld/100*a.height),this.Xh=w.a(0,a.height-this.Fd.height|0),this.ji=w.a(0,0)}}else switch(this.mc){case w.aj:case w.$i:this.Ky();break;case w.Wk:case w.Xk:case w.Yk:case w.Zk:this.Iy()}},Iy:function(){var a=this.Ld/100,c=Math.max(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),d=Math.min(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),e=Math.max(this.q.t.Na.j.da,this.q.t.pa.j.da),f=Math.min(this.q.t.Na.j.da,this.q.t.pa.j.da),c=w.a(c,e),d=w.a(d,
f),f=[],e=0;if(!this.u){this.oc=w.Ph;this.u=[];for(e=0;e<this.oc;e++)this.u[e]=w.qt();w.b(this.u,"");this.mc==w.Wk?(this.u[f[0]=0].j=w.Pb(d.x,d.y),this.u[f[1]=1].j=w.Pb(d.x,c.y)):this.mc==w.Xk?(this.u[f[0]=2].j=w.Pb(c.x,c.y),this.u[f[1]=3].j=w.Pb(c.x,d.y)):this.mc==w.Yk?(this.u[f[0]=1].j=w.Pb(d.x,c.y),this.u[f[1]=3].j=w.Pb(c.x,c.y)):this.mc==w.Zk&&(this.u[f[0]=0].j=w.Pb(d.x,d.y),this.u[f[1]=2].j=w.Pb(c.x,d.y));e=f[0];this.u[e].N=this.Fg(w.a(this.u[e].j.ca,this.u[e].j.da));e=f[1];this.u[e].N=this.Fg(w.a(this.u[e].j.ca,
this.u[e].j.da));if(this.q.Gb||this.q.Fb)if(this.q.Fb&&(e=f[0],this.u[e].j.ca=d.x+c.x-this.u[e].j.ca,e=f[1],this.u[e].j.ca=d.x+c.x-this.u[e].j.ca),this.q.Gb)e=f[0],this.u[e].j.da=d.y+c.y-this.u[e].j.da,e=f[1],this.u[e].j.da=d.y+c.y-this.u[e].j.da;this.ge()}this.mc==w.Wk?(this.u[f[0]=3].j=w.Pb(d.x+(c.x-d.x)*a,c.y),this.u[f[1]=2].j=w.Pb(d.x+(c.x-d.x)*a,d.y)):this.mc==w.Xk?(this.u[f[0]=1].j=w.Pb(d.x+(c.x-d.x)*(1-a),d.y),this.u[f[1]=0].j=w.Pb(d.x+(c.x-d.x)*(1-a),c.y)):this.mc==w.Yk?(this.u[f[0]=0].j=
w.Pb(d.x,d.y+(c.y-d.y)*(1-a)),this.u[f[1]=2].j=w.Pb(c.x,d.y+(c.y-d.y)*(1-a))):this.mc==w.Zk&&(this.u[f[0]=1].j=w.Pb(d.x,d.y+(c.y-d.y)*a),this.u[f[1]=3].j=w.Pb(c.x,d.y+(c.y-d.y)*a));e=f[0];this.u[e].N=this.Fg(w.a(this.u[e].j.ca,this.u[e].j.da));e=f[1];this.u[e].N=this.Fg(w.a(this.u[e].j.ca,this.u[e].j.da));if(this.q.Gb||this.q.Fb)if(this.q.Fb&&(e=f[0],this.u[e].j.ca=d.x+c.x-this.u[e].j.ca,e=f[1],this.u[e].j.ca=d.x+c.x-this.u[e].j.ca),this.q.Gb)e=f[0],this.u[e].j.da=d.y+c.y-this.u[e].j.da,e=f[1],this.u[e].j.da=
d.y+c.y-this.u[e].j.da},Ky:function(){var a=Math.max(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),c=Math.min(this.q.t.Ma.j.ca,this.q.t.pa.j.ca),d=Math.max(this.q.t.Na.j.da,this.q.t.pa.j.da),e=Math.min(this.q.t.Na.j.da,this.q.t.pa.j.da),a=w.a(a,d),c=w.a(c,e),d=w.pc(c,w.Om(this.Qb,w.qc(a,c))),f=this.Ld/100,h=w.a(d.x,c.y),l=w.kz(h,d,2*Math.PI*(this.mc==w.aj?f:1-f)),e=0,k=w.I();if(0==f)k=h,e=0;else if(1==f)k=h,e=4;else{k=Infinity;for(f=0;f<=w.Ph;++f){var h=w.pc(c,w.Om(this.Vo(f%w.Ph),w.qc(a,c))),n=w.pc(c,w.Om(this.Vo((f+
(w.Ph-1))%w.Ph),w.qc(a,c)));0==f?n=w.hu(h,n):4==f&&(h=w.hu(h,n));var o=w.I();if(w.gq(h,n,d,l,o)&&(!(0==f||4==f)||0<=o.x&&1>=o.x)&&0<=o.y&&o.y<k)k=o.y,e=f}k=w.pc(d,w.mb(w.qc(l,d),k))}l=i;this.oc!=e+3&&(l=m,this.u&&(this.u=j,this.oc=0));if(!this.u){this.oc=e+3;this.u=[];for(f=0;f<this.oc;f++)this.u[f]=w.qt();w.b(this.u,"");this.ge()}if(!l){this.u[0].j=w.Pb(d.x,d.y);this.u[0].N=this.Fg(d);this.u[1].j=w.Pb(d.x,c.y);this.u[1].N=this.Fg(w.a(d.x,c.y));for(f=0;f<e;++f)d=w.pc(c,w.Om(this.Vo(f),w.qc(a,c))),
this.u[f+2].j=w.Pb(d.x,d.y),this.u[f+2].N=this.Fg(d);if(this.q.Fb||this.q.Gb)for(f=0;f<this.oc-1;++f)if(this.q.Fb&&(this.u[f].j.ca=c.x+a.x-this.u[f].j.ca),this.q.Gb)this.u[f].j.da=c.y+a.y-this.u[f].j.da}this.u[this.oc-1].j=w.Pb(k.x,k.y);this.u[this.oc-1].N=this.Fg(k);if(this.q.Fb||this.q.Gb)if(this.q.Fb&&(this.u[this.oc-1].j.ca=c.x+a.x-this.u[this.oc-1].j.ca),this.q.Gb)this.u[this.oc-1].j.da=c.y+a.y-this.u[this.oc-1].j.da},ge:function(){var a=this.q.Ge(),c=this.q.xd(),c=new w.$a(c.f,c.e,c.d,a);this.q.ga()instanceof
HTMLImageElement||this.q.ga()instanceof HTMLCanvasElement?(c.f*=a/255,c.e*=a/255,c.d*=a/255):this.q.ga().ng&&(c.f*=a/255,c.e*=a/255,c.d*=a/255);if(this.u)for(a=0;a<this.oc;++a)this.u[a].Kc=c},Vo:function(a){if(a<w.Ph)switch(this.mc){case w.aj:return w.a(w.ll>>(a<<1)+1&1,w.ll>>(a<<1)&1);case w.$i:return w.a(w.ll>>7-(a<<1)&1,w.ll>>7-((a<<1)+1)&1)}return w.I()},mc:j,Ld:0,q:j,oc:0,u:j});w.Sg.create=function(a){var c=new w.Sg;return c.Mb(a)?c:j};w.Sg.bf=function(a){var c=new w.Sg;return c.Ba(a)?c:j};w=w=w||{};
w.fl=w.S.extend({Dd:j,Cf:j,wa:j,s:j,de:new w.k,Ct:j,ai:j,MK:u("Dd"),setActive:function(a){this.Dd=a;a||(a=w.n.p(),a.Jk(a.pg))},GJ:u("Cf"),QB:s("Cf"),sI:u("wa"),nN:function(a){this.wa.x=parseInt(a.x);this.wa.y=parseInt(a.y)},cK:u("de"),pO:s("de"),dL:u("ai"),uN:function(a){this.ai!=a&&(this.ai=a,this.Fm())},uk:function(a){var c=w.n.p().Ku(),d=w.Rd(c.width),e=w.Rd(c.height),f=w.Me,h=new w.se;h.zq(f,d,e,c);if(!h)return w.Q("cocos2d: CCGrid: error creating texture"),m;c=i;this.Dd=m;this.Cf=0;this.wa=a;
this.s=h;this.ai=m;a=this.s.yh();this.de.x=a.width/this.wa.x;this.de.y=a.height/this.wa.y;(this.Ct=new w.Zw)||(c=m);this.Fm();return c},Yp:function(){this.pB()},Sp:function(a){this.qB();this.Vx();a.wh().bb&&a.wh();w.n.p().Jk(w.n.p().pg);w.n.p();this.aq()},aq:function(){w.b(0,"")},Xq:function(){w.b(0,"")},Fm:function(){w.b(0,"")},pB:function(){w.n.p().Ku()},qB:function(){w.n.p()},Vx:function(){w.n.p()}});w.fl.create=function(){return new w.fl};
w.Wr=w.fl.extend({ak:j,ub:j,kh:j,Oa:j,ew:function(a){var a=3*(a.x*(this.wa.y+1)+a.y),c=this.ub;return new w.Vd(c[a],c[a+1])},dv:function(a){var a=3*(a.x*(this.wa.y+1)+a.y),c=this.kh;return new w.Vd(c[a],c[a+1])},Qv:function(a,c){var d=3*(a.x*(this.wa.y+1)+a.y),e=this.ub;e[d]=c.x;e[d+1]=c.y;e[d+2]=c.LC},aq:q(),Xq:function(){0<this.Cf&&--this.Cf},Fm:function(){var a=this.s.Cc,c=this.s.Bc,d=this.s.yh().height,e=this.wa.x*this.wa.y;this.ub=[];this.kh=[];this.ak=[];this.Oa=[];var f=this.ub,h=this.ak,l=
this.Oa,k,n;for(k=0;k<this.wa.x;k++)for(n=0;n<this.wa.y;n++){var o=k*this.de.x,t=o+this.de.x,r=n*this.de.y,y=r+this.de.y;f[k*n]=o;f[k*n+1]=r;f[k*n+2]=0;f[k*n+3]=t;f[k*n+4]=r;f[k*n+5]=0;f[k*n+6]=o;f[k*n+7]=y;f[k*n+8]=0;f[k*n+9]=t;f[k*n+10]=y;f[k*n+11]=0;var A=r,B=y;this.ai&&(A=d-r,B=d-y);h[k*n+12]=o/a;h[k*n+13]=A/c;h[k*n+14]=t/a;h[k*n+15]=A/c;h[k*n+16]=o/a;h[k*n+17]=B/c;h[k*n+18]=t/a;h[k*n+19]=B/c}for(k=0;k<e;k++)l[6*k+0]=4*k+0,l[6*k+1]=4*k+1,l[6*k+2]=4*k+2,l[6*k+3]=4*k+1,l[6*k+4]=4*k+2,l[6*k+5]=4*
k+3}});w.Wr.create=q();
w.Jo=w.fl.extend({ak:j,ub:j,kh:j,Oa:j,Xv:function(){return new w.qo},Lq:function(a){var a=12*(this.wa.y*a.x+a.y),c=this.kh;return new w.qo(c[a],c[a+1],c[a+2],c[a+3])},sn:function(a,c){this.ub[12*(this.wa.y*a.x+a.y)]=c},aq:q(),Xq:function(){if(0<this.Cf){for(var a=0,c=12*(this.wa.x*this.wa.y).length;a<c;a++)this.kh.push(this.ub[a]);--this.Cf}},Fm:function(){var a=this.s.Cc,c=this.s.Bc,d=this.s.yh().height,e=this.wa.x*this.wa.y;this.ub=[];this.kh=[];this.ak=[];this.Oa=[];var f=this.ub,h=this.ak,l=this.Oa,
k,n;for(k=0;k<this.wa.x;k++)for(n=0;n<this.wa.y;n++){var o=k*this.de.x,t=o+this.de.x,r=n*this.de.y,y=r+this.de.y;f[k*n]=o;f[k*n+1]=r;f[k*n+2]=0;f[k*n+3]=t;f[k*n+4]=r;f[k*n+5]=0;f[k*n+6]=o;f[k*n+7]=y;f[k*n+8]=0;f[k*n+9]=t;f[k*n+10]=y;f[k*n+11]=0;var A=r,B=y;this.ai&&(A=d-r,B=d-y);h[k*n+12]=o/a;h[k*n+13]=A/c;h[k*n+14]=t/a;h[k*n+15]=A/c;h[k*n+16]=o/a;h[k*n+17]=B/c;h[k*n+18]=t/a;h[k*n+19]=B/c}for(k=0;k<e;k++)l[6*k+0]=4*k+0,l[6*k+1]=4*k+1,l[6*k+2]=4*k+2,l[6*k+3]=4*k+1,l[6*k+4]=4*k+2,l[6*k+5]=4*k+3;a=0;
for(e=12*e.length;a<e;a++)this.kh.push(this.ub[a])}});w.Jo.create=function(a,c,d){var e=new w.Jo;e.uk(a,c,d);return e};w=w=w||{};w.Zw=w.S.extend({$E:0,Qj:0,aF:j,P:q(),yK:q(),UF:q(),KF:q()});w.Xi=-1;w.Ng=w.S.extend({Sj:j,C:j,Kb:w.Xi,description:function(){return"<cc.Action | Tag = "+this.Kb+">"},Qa:function(){return this.copy()},copy:function(){return w.iq(this)},df:v(i),F:function(a){this.C=this.Sj=a},stop:function(){this.C=j},step:function(){w.Q("[Action step]. override me")},update:function(){w.Q("[Action update]. override me")},iK:u("C"),YB:s("C"),eJ:u("Sj"),NN:s("Sj"),eA:u("Kb"),Mi:s("Kb")});w.Ng.create=function(){return new w.Ng};
w.Sr=w.Ng.extend({g:0,Rz:u("g"),wB:s("g"),reverse:function(){w.Q("cocos2d: FiniteTimeAction#reverse: Implement me");return j}});
w.zo=w.Ng.extend({Yj:0,ra:j,bA:u("Yj"),SB:s("Yj"),la:function(a,c){w.b(a!=j,"");this.ra=a;this.Yj=c;return i},F:function(a){this._super(a);this.ra.F(a)},stop:function(){this.ra.stop();w.Ng.stop()},step:function(a){this.ra.step(a*this.Yj)},df:function(){return this.ra.df()},reverse:function(){return w.zo.create(this.ra.reverse(),this.Yj)},Ev:function(a){this.ra!=a&&(this.ra=a)},Hu:u("ra")});w.zo.create=function(a,c){var d=new w.zo;return d&&d.la(a,c)?d:j};
w.Vr=w.Ng.extend({OK:u("Hl"),OM:s("Hl"),fd:function(a,c){w.b(a!=j,"");this.Wl=a;this.Uo=this.Hl=m;var d=w.n.p().ka();this.Xl=w.Sd(d.width,d.height);this.np=w.mb(this.Xl,0.5);if(c&&(this.Ei=-(c.origin.x+c.size.width-this.Xl.x),this.Hi=-c.origin.x,this.Si=-c.origin.y,this.ri=-(c.origin.y+c.size.height-this.Xl.y),this.Hi<this.Ei&&(this.Hi=this.Ei=(this.Ei+this.Hi)/2),this.Si<this.ri&&(this.Si=this.ri=(this.Si+this.ri)/2),this.Si==this.ri&&this.Ei==this.Hi))this.Uo=i;return i},step:function(){if(this.Hl){if(!this.Uo){var a=
w.qc(this.np,this.Wl.Fa());this.C.m(w.a(w.Nd(a.x,this.Ei,this.Hi),w.Nd(a.y,this.ri,this.Si)))}}else this.C.m(w.qc(this.np,this.Wl.Fa()))},df:function(){return!this.Wl.Id},stop:function(){this.C=j;w.Ng.stop()},Wl:j,Hl:m,Uo:m,np:j,Xl:j,Ei:0,Hi:0,Si:0,ri:0});w.Vr.create=function(a,c){var d=new w.Vr;return c!=j&&d&&d.fd(a,c)||d&&d.fd(a)?d:j};w.oa=w.Sr.extend({cb:0,Vl:m,$H:u("cb"),o:function(a){this.g=0==a?w.Rr:a;this.cb=0;return this.Vl=i},df:function(){return this.cb>=this.g},step:function(a){this.Vl?(this.Vl=m,this.cb=0):this.cb+=a;this.update(1>this.cb/this.g?this.cb/this.g:1)},F:function(a){this._super(a);this.cb=0;this.Vl=i},reverse:v(j),Zq:function(){w.b(0,"Actioninterval setAmplitudeRate")},wH:function(){w.b(0,"Actioninterval getAmplitudeRate");return 0}});w.oa.create=function(a){var c=new w.oa;c.o(a);return c};
w.Y=w.oa.extend({Uc:j,rh:j,gh:0,P:function(){this.Uc=[]},xq:function(a,c){w.b(a!=j,"Sequence.initOneTwo");w.b(c!=j,"Sequence.initOneTwo");var d=c.g;if(isNaN(a.g)||isNaN(d))console.log(a),console.log(c);this.o(a.g+c.g);this.Uc[0]=a;this.Uc[1]=c;return i},F:function(a){this._super(a);this.rh=this.Uc[0].g/this.g;this.gh=-1},stop:function(){this.Uc[0].stop();this.Uc[1].stop();this._super()},update:function(a){var c=0,d=0;a>=this.rh?(c=1,d=1==this.rh?1:(a-this.rh)/(1-this.rh)):(c=0,d=0!=this.rh?a/this.rh:
1);-1==this.gh&&1==c&&(this.Uc[0].F(this.C),this.Uc[0].update(1),this.Uc[0].stop());this.gh!=c&&(-1!=this.gh&&(this.Uc[this.gh].update(1),this.Uc[this.gh].stop()),this.Uc[c].F(this.C));this.Uc[c].update(d);this.gh=c},reverse:function(){return w.Y.Zg(this.Uc[1].reverse(),this.Uc[0].reverse())}});w.Y.create=function(a){for(var c="Array"==typeof a?a:arguments,d=c[0],e=1;e<c.length;e++)c[e]!=j&&(d=w.Y.Zg(d,c[e]));return d};w.Y.Zg=function(a,c){var d=new w.Y;d.xq(a,c);return d};
w.uo=w.oa.extend({fe:0,Bg:0,ra:j,la:function(a,c){return this.o(a.g*c)?(this.fe=c,this.ra=a,this.Bg=0,i):m},F:function(a){this.Bg=0;this._super(a);this.ra.F(a)},stop:function(){this.ra.stop();this._super()},update:function(a){var c=a*this.fe;c>this.Bg+1?(this.ra.update(1),this.Bg++,this.ra.stop(),this.ra.F(this.C),this.Bg==this.fe?this.ra.update(0):this.ra.update(c-this.Bg)):(c%=1,1==a&&(c=1,this.Bg++),this.ra.update(1<c?1:c))},df:function(){return this.Bg==this.fe},reverse:function(){return w.uo.create(this.ra.reverse(),
this.fe)},Ev:function(a){this.ra!=a&&(this.ra=a)},Hu:u("ra")});w.uo.create=function(a,c){var d=new w.uo;d.la(a,c);return d};w.uj=w.oa.extend({ra:j,la:function(a){w.b(a!=j,"");this.ra=a;return i},F:function(a){this._super(a);this.ra.F(a)},step:function(a){this.ra.step(a);this.ra.df()&&(a=a+this.ra.g-this.ra.cb,this.ra.F(this.C),this.ra.step(a))},df:v(m),reverse:function(){return w.uj.create(this.ra.reverse())},Ev:function(a){this.ra!=a&&(this.ra=a)},Hu:u("ra")});
w.uj.create=function(a){var c=new w.uj;return c&&c.la(a)?c:j};
w.re=w.oa.extend({xq:function(a,c){w.b(a!=j,"no action1");w.b(c!=j,"no action2");var d=m,e=a.g,f=c.g;this.o(Math.max(e,f))&&(this.jh=a,this.sh=c,e>f?this.sh=w.Y.Zg(c,w.ob.create(e-f)):e<f&&(this.jh=w.Y.Zg(a,w.ob.create(f-e))),d=i);return d},F:function(a){this._super(a);this.jh.F(a);this.sh.F(a)},stop:function(){this.jh.stop();this.sh.stop();this._super()},update:function(a){this.jh&&this.jh.update(a);this.sh&&this.sh.update(a)},reverse:function(){return w.re.Zg(this.jh.reverse(),this.sh.reverse())},
jh:j,sh:j});w.re.create=function(a){for(var c="Array"==typeof a?a:arguments,d=c[0],e=1;e<c.length;e++)c[e]!=j&&(d=this.Zg(d,c[e]));return d};w.re.Zg=function(a,c){var d=new w.re;d.xq(a,c);return d};
w.Gs=w.oa.extend({ut:0,ze:0,lg:0,o:function(a,c){return this._super(a)?(this.ut=c,i):m},F:function(a){this._super(a);this.ze=a.Xe;this.ze%=360;this.lg=this.ut-this.ze;180<this.lg&&(this.lg-=360);-180>this.lg&&(this.lg+=360)},reverse:function(){w.b(0,"RotateTo reverse not implemented")},update:function(a){this.C&&this.C.Pf(this.ze+this.lg*a)}});w.Gs.create=function(a,c){var d=new w.Gs;d.o(a,c);return d};
w.Tg=w.oa.extend({Rb:0,ze:0,o:function(a,c){return this._super(a)?(this.Rb=c,i):m},F:function(a){this._super(a);this.ze=a.Xe},update:function(a){this.C&&this.C.Pf(this.ze+this.Rb*a)},reverse:function(){return w.Tg.create(this.g,-this.Rb)}});w.Tg.create=function(a,c){var d=new w.Tg;d.o(a,c);return d};
w.qj=w.oa.extend({o:function(a,c){return this._super(a)?(this.wt=c,i):m},F:function(a){this._super(a);this.Hc=a.Fa();this.gc=w.qc(this.wt,this.Hc)},update:function(a){this.C&&this.C.m(w.a(this.Hc.x+this.gc.x*a,this.Hc.y+this.gc.y*a))},reverse:function(){w.b(0,"moveto reverse is not implemented")},wt:new w.k,Hc:new w.k,gc:new w.k});w.qj.create=function(a,c){var d=new w.qj;d.o(a,c);return d};
w.pb=w.qj.extend({o:function(a,c){return this._super(a,c)?(this.gc=c,i):m},F:function(a){var c=this.gc;this._super(a);this.gc=c},reverse:function(){return w.pb.create(this.g,w.a(-this.gc.x,-this.gc.y))}});w.pb.create=function(a,c){var d=new w.pb;d.o(a,c);return d};
w.yo=w.oa.extend({o:function(a,c,d){var e=m;this._super(a)&&(this.ip=c,this.jp=d,e=i);return e},F:function(a){this._super(a);this.wg=a.td;this.wg=0<this.wg?this.wg%180:this.wg%-180;this.qd=this.ip-this.wg;180<this.qd&&(this.qd-=360);-180>this.qd&&(this.qd+=360);this.xg=a.ud;this.xg=0<this.xg?this.xg%360:this.xg%-360;this.rd=this.jp-this.xg;180<this.rd&&(this.rd-=360);-180>this.rd&&(this.rd+=360)},update:function(a){this.C.Lv(this.wg+this.qd*a);this.C.Mv(this.xg+this.rd*a)},td:0,ud:0,wg:0,xg:0,ip:0,
jp:0,qd:0,rd:0});w.yo.create=function(a,c,d){var e=new w.yo;e&&e.o(a,c,d);return e};w.xo=w.yo.extend({o:function(a,c,d){var e=m;this._super(a,c,d)&&(this.td=c,this.ud=d,e=i);return e},F:function(a){this._super(a);this.qd=this.td;this.rd=this.ud;this.ip=this.wg+this.qd;this.jp=this.xg+this.rd},reverse:function(){return w.xo.create(this.g,-this.td,-this.ud)}});w.xo.create=function(a,c,d){var e=new w.xo;e&&e.o(a,c,d);return e};
w.nj=w.oa.extend({o:function(a,c,d,e){return this._super(a)?(this.gc=c,this.op=d,this.wp=e,i):m},F:function(a){this._super(a);this.Hc=a.Fa()},update:function(a){if(this.C){var c=a*this.wp%1,c=4*this.op*c*(1-c),c=c+this.gc.y*a;this.C.m(w.a(this.Hc.x+this.gc.x*a,this.Hc.y+c))}},reverse:function(){return w.nj.create(this.g,w.a(-this.gc.x,-this.gc.y),this.op,this.wp)},Hc:new w.k,gc:new w.k,op:0,wp:0});w.nj.create=function(a,c,d,e){var f=new w.nj;f.o(a,c,d,e);return f};
w.cs=w.nj.extend({F:function(a){this._super(a);this.gc=w.a(this.gc.x-this.Hc.x,this.gc.y-this.Hc.y)}});w.cs.create=function(a,c,d,e){var f=new w.cs;f.o(a,c,d,e);return f};w.ur=w.S.extend({P:function(){this.Hg=new w.k;this.vi=new w.k;this.wi=new w.k}});w.du=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};
w.Uk=w.oa.extend({o:function(a,c){return this._super(a)?(this.$b=c,i):m},F:function(a){this._super(a);this.Hc=a.Fa()},update:function(a){this.C&&this.C.m(w.pc(this.Hc,w.a(w.du(this.$b.vi.x,this.$b.wi.x,this.$b.Hg.x,a),w.du(this.$b.vi.y,this.$b.wi.y,this.$b.Hg.y,a))))},reverse:function(){var a=new w.ur;a.Hg=w.hq(this.$b.Hg);a.vi=w.pc(this.$b.wi,w.hq(this.$b.Hg));a.wi=w.pc(this.$b.vi,w.hq(this.$b.Hg));return w.Uk.create(this.g,a)},P:function(){this.$b=new w.ur;this.Hc=new w.k}});
w.Uk.create=function(a,c){var d=new w.Uk;d.o(a,c);return d};w.vr=w.Uk.extend({F:function(a){this._super(a);this.$b.vi=w.qc(this.$b.vi,this.Hc);this.$b.wi=w.qc(this.$b.wi,this.Hc);this.$b.Hg=w.qc(this.$b.Hg,this.Hc)}});w.vr.create=function(a,c){var d=new w.vr;d.o(a,c);return d};
w.fc=w.oa.extend({o:function(a,c,d){return this._super(a)?(this.Ql=c,this.Rl=d!=j?d:c,i):m},F:function(a){this._super(a);this.Zj=a.kc;this.$j=a.Ec;this.qd=this.Ql-this.Zj;this.rd=this.Rl-this.$j},update:function(a){this.C&&(this.C.Kv(this.Zj+this.qd*a),this.C.dr(this.$j+this.rd*a))},kc:1,Ec:1,Zj:1,$j:1,Ql:0,Rl:0,qd:0,rd:0});w.fc.create=function(a,c,d){var e=new w.fc;d?e.o(a,c,d):e.o(a,c);return e};
w.Ug=w.fc.extend({F:function(a){this._super(a);this.qd=this.Zj*this.Ql-this.Zj;this.rd=this.$j*this.Rl-this.$j},reverse:function(){return w.Ug.create(this.g,1/this.Ql,1/this.Rl)}});w.Ug.create=function(a,c,d){var e=new w.Ug;3==arguments.length?e.o(a,c,d):e.o(a,c);return e};w.Vk=w.oa.extend({o:function(a,c){return this._super(a)?(this.fe=c,i):m},update:function(a){if(this.C&&!this.df()){var c=1/this.fe;this.C.ha(a%c>c/2?i:m)}},reverse:function(){return w.Vk.create(this.g,this.fe)},fe:0});
w.Vk.create=function(a,c){var d=new w.Vk;d.o(a,c);return d};w.dl=w.oa.extend({update:function(a){this.C.Ta(255*a)},reverse:function(){return w.Oh.create(this.g)}});w.dl.create=function(a){var c=new w.dl;c.o(a);return c};w.Oh=w.oa.extend({update:function(a){this.C.Ta(255*(1-a))},reverse:function(){return w.dl.create(this.g)}});w.Oh.create=function(a){var c=new w.Oh;c.o(a);return c};
w.kj=w.oa.extend({o:function(a,c){return this._super(a)?(this.St=c,i):m},update:function(a){this.C.Ta(this.lp+(this.St-this.lp)*a)},F:function(a){this._super(a);this.lp=a.Ge()},St:"",lp:""});w.kj.create=function(a,c){var d=new w.kj;d.o(a,c);return d};
w.Ss=w.oa.extend({o:function(a,c,d,e){return this._super(a)?(this.Md=w.ti(c,d,e),i):m},F:function(a){this._super(a);this.Sb=this.C.xd()},update:function(a){this.C.Sa(w.ti(this.Sb.f+(this.Md.f-this.Sb.f)*a,this.Sb.e+(this.Md.e-this.Sb.e)*a,this.Sb.d+(this.Md.d-this.Sb.d)*a))},Md:new w.ua,Sb:new w.ua});w.Ss.create=function(a,c,d,e){var f=new w.Ss;f.o(a,c,d,e);return f};
w.Ko=w.oa.extend({o:function(a,c,d,e){return this._super(a)?(this.ep=c,this.dp=d,this.cp=e,i):m},F:function(a){this._super(a);a=a.xd();this.Bt=a.f;this.At=a.e;this.zt=a.d},update:function(a){this.C.Sa(w.ti(this.Bt+this.ep*a,this.At+this.dp*a,this.zt+this.cp*a))},reverse:function(){return w.Ko.create(this.g,-this.ep,-this.dp,-this.cp)},ep:0,dp:0,cp:0,Bt:0,At:0,zt:0});w.Ko.create=function(a,c,d,e){var f=new w.Ko;f.o(a,c,d,e);return f};w.ob=w.oa.extend({update:q(),reverse:function(){return w.ob.create(this.g)}});
w.ob.create=function(a){var c=new w.ob;c.o(a);return c};w.vj=w.oa.extend({la:function(a){w.b(a!=j,"");w.b(a!=this.A,"");return this._super(a.g)?(this.A=a,i):m},F:function(a){this._super(a);this.A.F(a)},update:function(a){this.A&&this.A.update(1-a)},reverse:function(){return this.A.copy()},stop:function(){this.A.stop();this._super()},A:j});w.vj.create=function(a){var c=new w.vj;c.la(a);return c};
w.Vi=w.oa.extend({$g:j,hm:j,Vj:m,AH:u("$g"),NM:s("$g"),mA:function(a,c){w.b(a!=j,"");return this.o(a.ic.length*a.Gj,j,j,i)?(this.Vj=c,this.$g=a,this.hm=j,i):m},o:function(a,c,d,e){if(e)return this._super(a);w.b(c!=j,"");return this._super(a)?(this.Vj=d,this.$g=c,this.hm=j,i):m},F:function(a){this._super(a);this.Vj&&(this.hm=a.Cz())},update:function(a){var c=this.$g.ic,d=c.length,a=0|a*d;a>=d&&(a=d-1);d=this.C;d.BA(c[a])||d.Fk(c[a])},reverse:function(){var a=w.Wi.create(this.$g.ic.reverse(),this.$g.Gj);
return w.Vi.create(this.g,a,this.Vj)},stop:function(){this.Vj&&this.C&&this.C.Fk(this.hm);this._super()}});w.Vi.create=function(){var a=new w.Vi;3==arguments.length?a.o(arguments[0],arguments[1],arguments[2]):a.mA(arguments[0],arguments[1]);return a};w.Le=w.Sr.extend({df:v(i),step:function(){this.update(1)},update:q()});w.qe=w.Le.extend({F:function(a){this._super(a);a.ha(i)},reverse:function(){return w.nf.create.call(this)}});w.qe.create=function(){return new w.qe};w.nf=w.Le.extend({F:function(a){this._super(a);a.ha(m)},reverse:function(){return w.qe.create.call(this)}});w.nf.create=function(){return new w.nf};w.Lo=w.Le.extend({F:function(a){this._super();a.ha(!a.Yd)},reverse:function(){return new w.Lo}});w.Lo.create=function(){return new w.Lo};
w.Tr=w.Le.extend({qA:function(a){this.Fb=a;return i},F:function(a){this._super();a.CB(this.Fb)},reverse:function(){return this.uF(!this.Fb)},Fb:m});w.Tr.create=function(a){var c=new w.Tr;if(c.qA(a))return c};w.Ur=w.Le.extend({rA:function(a){this.Gb=a;return i},F:function(a){this._super();a.Dv(this.Gb)},reverse:function(){return this.vF(!this.Gb)},Gb:m});w.Ur.create=function(a){var c=new w.Ur;if(c.rA(a))return c};w.As=w.Le.extend({xA:function(a){this.Ea=a;return i},F:function(a){this._super(a);this.C.m(this.Ea)}});
w.As.create=function(a){var c=new w.As;c.xA(a);return c};w.Da=w.Le.extend({fd:function(a,c,d){this.$x=d||j;this.Il=c||j;this.ph=a||j;return i},execute:function(){this.Il!=j&&this.Il.call(this.ph,this.C,this.$x)},F:function(a){this._super(a);this.execute()},jK:u("ph"),wO:function(a){a!=this.ph&&(this.ph&&(this.ph=j),this.ph=a)},ph:j,Il:j});w.Da.create=function(a,c,d){var e=new w.Da;return e&&e.fd(a,c,d)?(e.Il=c,e):j};w.bx=w.S.extend({lb:j,target:j,oi:0,De:j,yi:m,paused:m,CK:j,P:function(){this.lb=[]}});
w.Od=w.S.extend({cd:j,va:j,Se:m,tg:function(a,c){for(var d=0;d<a.length;d++)if(c==a[d].target)return a[d];return j},P:function(){w.b(w.tc==j,"");this.cd=[]},D:function(){w.Tc.jf().yv(this,0,m);return i},HM:j,Oy:function(a,c,d){w.b(a!=j,"no action");w.b(c!=j,"");var e=this.tg(this.cd,c);e||(e=new w.bx,e.paused=d,e.target=c,e.id=c.id||"no id",this.cd.push(e));this.Sx(e);w.b(-1==e.lb.indexOf(a),"ActionManager.addAction(),");e.lb.push(a);a.F(c)},jM:function(){for(var a=0;a<this.cd.length;a++){var c=this.cd[a];
c&&this.sv(c.target)}},sv:function(a){if(a!=j&&(a=this.tg(this.cd,a)))a.De in a.lb&&!a.yi&&(a.yi=i),a.lb=[],this.va==a?this.Se=i:this.bp(a)},rv:function(a){if(a!=j){var c=this.tg(this.cd,a.Sj);if(c)for(var d=0;d<c.lb.length;d++){if(c.lb[d]==a){c.lb.splice(d,1);break}}else w.Q("cocos2d: removeAction: Target not found")}},bB:function(a,c){w.b(a!=w.Xi,"");w.b(c!=j,"");var d=this.tg(this.cd,c);if(d)for(var e=d.lb.length,f=0;f<e;++f){var h=d.lb[f];if(h&&h.Kb==a&&h.Sj==c){this.Ey(f,d);break}}},pq:function(a,
c){w.b(a!=w.Xi,"");var d=this.tg(this.cd,c);if(d&&d.lb!=j)for(var e=0;e<d.lb.length;++e){var f=d.lb[e];if(f&&f.Kb==a)return f}return j},MA:function(a){return(a=this.tg(this.cd,a))?a.lb?a.lb.length:0:0},Mq:function(a){if(a=this.tg(this.cd,a))a.paused=i},Wq:function(a){if(a=this.tg(this.cd,a))a.paused=m},iv:function(){w.Tc.jf().Ti(this)},Ey:function(a,c){c.lb[a]==c.De&&!c.yi&&(c.yi=i);c.lb[a]=j;c.oi>=a&&c.oi--;0==c.lb.length&&(this.va==c?this.Se=i:this.bp(c))},bp:function(a){w.Wb(this.cd,a);a&&(a.lb=
j,a.target=j)},Sx:function(a){a.lb==j&&(a.lb=[])},update:function(a){for(var c=0;c<this.cd.length;c++){this.va=this.cd[c];this.Se=m;if(!this.va.paused)for(this.va.oi=0;this.va.oi<this.va.lb.length;this.va.oi++)if(this.va.De=this.va.lb[this.va.oi],this.va.De!=j){this.va.yi=m;this.va.De.step(a);if(this.va.yi)this.va.De=j;else if(this.va.De.df()){this.va.De.stop();var d=this.va.De;this.va.De=j;this.rv(d)}this.va.De=j}this.Se&&0==this.va.lb.length&&this.bp(this.va)}}});
w.Od.tc=function(){w.tc||(w.tc=new w.Od,w.tc.D()||delete w.tc);return w.tc};w.tc=j;w.po=w.oa.extend({Md:0,Sb:0,o:function(a,c){return this._super(a)?(this.Md=c,i):m},Qa:function(a){var c=j;a&&a.$o?c=a.$o:(c=new w.po,a=new w.rt(c));this._super(a);c.o(this.g,this.Md);return c},F:function(a){this._super(a);this.Sb=a.Ld;100==this.Sb&&(this.Sb=0)},update:function(a){this.C instanceof w.Sg&&this.C.br(this.Sb+(this.Md-this.Sb)*a)}});w.po.create=function(a,c){var d=new w.po;d.o(a,c);return d};
w.sj=w.oa.extend({Md:0,Sb:0,o:function(a,c,d){return this._super(a)?(this.Md=d,this.Sb=c,i):m},Qa:function(a){var c=j;a&&a.$o?c=a.$o:(c=new w.sj,a=new w.rt(c));this._super(a);c.o(this.g,this.Sb,this.Md);return c},reverse:function(){return w.sj.create(this.g,this.Md,this.Sb)},F:function(a){this._super(a)},update:function(a){this.C instanceof w.Sg&&this.C.br(this.Sb+(this.Md-this.Sb)*a)}});w.sj.create=function(a,c,d){var e=new w.sj;e.o(a,c,d);return e};w=w=w||{};w.lw=w.oa.extend({lz:0,mz:0,nz:0,aH:0,bH:0,cH:0,$O:0,aP:0,bP:0,F:function(a){this._super(a);a.wh()},reverse:function(){return w.vj.create(this)}});
w.Sc=w.lw.extend({Ie:0,zi:0,ik:0,su:0,hk:0,ru:0,ov:0,mv:0,nv:0,lv:0,o:function(a,c,d,e,f,h,l){return this._super(a)?(this.Ie=c,this.zi=d,this.ik=e,this.su=f,this.hk=h,this.ru=l,this.mv=w.Bb(f),this.lv=w.Bb(l),i):m},nC:function(){this.C.wh()},Qa:function(a){var c=j;a&&a.uz?c=a.uz:(c=new w.Sc,a=new w.rt(c));w.oa.Qa(a);c.o(this.g,this.Ie,this.zi,this.ik,this.su,this.hk,this.ru);return c},F:function(a){this._super(a);this.nC(g,g,g);isNaN(this.Ie)&&(this.Ie=g);isNaN(this.ik)&&(this.ik=w.Cs());isNaN(this.hk)&&
(this.hk=w.Cs());this.ov=w.Bb(this.ik);this.nv=w.Bb(this.hk)},update:function(a){var c=(this.Ie+this.zi*a)*w.On.Lu(),d=this.ov+this.mv*a,e=this.nv+this.lv*a,a=Math.sin(d)*Math.cos(e)*c+this.lz,e=Math.sin(d)*Math.sin(e)*c+this.mz,c=Math.cos(d)*c+this.nz;this.C.wh().BB(a,e,c)}});w.Sc.create=function(a,c,d,e,f,h,l){var k=new w.Sc;return k.o(a,c,d,e,f,h,l)?k:j};w.Qc=w.oa.extend({la:function(a){w.b(a!=j,"");return this.o(a.g)?(this.A=a,i):m},Qa:q(),F:function(a){this._super(a);this.A.F(this.C)},stop:function(){this.A.stop();this._super()},update:function(a){this.A.update(a)},reverse:function(){return w.Qc.create(this.A.reverse())},A:j});w.Qc.create=function(a){var c=new w.Qc;c&&c.la(a);return c};
w.Nh=w.Qc.extend({cr:s("fb"),sq:u("fb"),la:function(a,c){return this._super(a)?(this.fb=c,i):m},Qa:q(),reverse:function(){return w.Nh.create(this.A.reverse(),1/this.fb)},fb:j});w.Nh.create=function(a,c){var d=new w.Nh;d&&d.la(a,c);return d};w.Pr=w.Nh.extend({update:function(a){this.A.update(Math.pow(a,this.fb))},Qa:q()});w.Pr.create=function(a,c){var d=new w.Pr;d&&d.la(a,c);return d};w.ij=w.Nh.extend({update:function(a){this.A.update(Math.pow(a,1/this.fb))},Qa:q()});
w.ij.create=function(a,c){var d=new w.ij;d&&d.la(a,c);return d};w.hj=w.Nh.extend({update:function(a){var c=1;0==this.fb%2&&(c=-1);a*=2;1>a?this.A.update(0.5*Math.pow(a,this.fb)):this.A.update(0.5*c*(Math.pow(a-2,this.fb)+2*c))},Qa:q(),reverse:function(){return w.hj.create(this.A.reverse(),this.fb)}});w.hj.create=function(a,c){var d=new w.hj;d&&d.la(a,c);return d};
w.Zn=w.Qc.extend({update:function(a){this.A.update(0==a?0:Math.pow(2,10*(a/1-1))-0.001)},reverse:function(){return w.cl.create(this.A.reverse())},Qa:q()});w.Zn.create=function(a){var c=new w.Zn;c&&c.la(a);return c};w.cl=w.Qc.extend({update:function(a){this.A.update(1==a?1:-Math.pow(2,-10*a/1)+1)},reverse:function(){return w.Zn.create(this.A.reverse())},Qa:q()});w.cl.create=function(a){var c=new w.cl;c&&c.la(a);return c};
w.Or=w.Qc.extend({update:function(a){a/=0.5;a=1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,10*(a-1))+2);this.A.update(a)},Qa:q()});w.Or.create=function(a){var c=new w.Or;c&&c.la(a);return c};w.$n=w.Qc.extend({update:function(a){this.A.update(-1*Math.cos(a*Math.PI/2)+1)},reverse:function(){return w.jj.create(this.A.reverse())},Qa:q()});w.$n.create=function(a){var c=new w.$n;c&&c.la(a);return c};
w.jj=w.Qc.extend({update:function(a){this.A.update(Math.sin(a*Math.PI/2))},reverse:function(){return w.$n.create(this.A.reverse())},Qa:q()});w.jj.create=function(a){var c=new w.jj;c&&c.la(a);return c};w.Qr=w.Qc.extend({update:function(a){this.A.update(-0.5*(Math.cos(Math.PI*a)-1))},Qa:q()});w.Qr.create=function(a){var c=new w.Qr;c&&c.la(a);return c};w.gj=w.Qc.extend({kJ:u("Zc"),QN:s("Zc"),la:function(a,c){this._super(a);this.Zc=c==j?3:c;return i},reverse:function(){w.b(0,"");return j},Qa:q(),Zc:j});
w.gj.create=function(a,c){var d=new w.gj;d&&(c==j?d.la(a):d.la(a,c));return d};w.Xn=w.gj.extend({update:function(a){var c=0;0==a||1==a?c=a:(c=this.Zc/4,a-=1,c=-Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/this.Zc));this.A.update(c)},reverse:function(){return w.Yn.create(this.A.reverse(),this.Zc)},Qa:q()});w.Xn.create=function(a,c){var d=new w.Xn;d&&(c==j?d.la(a):d.la(a,c));return d};
w.Yn=w.gj.extend({update:function(a){var c=0,c=0==a||1==a?a:Math.pow(2,-10*a)*Math.sin(2*(a-this.Zc/4)*Math.PI/this.Zc)+1;this.A.update(c)},reverse:function(){return w.Xn.create(this.A.reverse(),this.Zc)},Qa:q()});w.Yn.create=function(a,c){var d=new w.Yn;d&&(c==j?d.la(a):d.la(a,c));return d};
w.Nr=w.gj.extend({update:function(a){var c=0;0==a||1==a?c=a:(this.Zc||(this.Zc=0.3*1.5),c=this.Zc/4,a=2*a-1,c=0>a?-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/this.Zc):0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/this.Zc)+1);this.A.update(c)},reverse:function(){return w.hj.create(this.A.reverse(),this.Zc)},Qa:q()});w.Nr.create=function(a,c){var d=new w.Nr;d&&(c==j?d.la(a):d.la(a,c));return d};
w.fj=w.Qc.extend({Dm: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},Qa:q()});w.fj.create=function(a){var c=new w.fj;c&&c.la(a);return c};w.Vn=w.fj.extend({update:function(a){this.A.update(1-this.Dm(1-a))},reverse:function(){return w.Wn.create(this.A.reverse())},Qa:q()});w.Vn.create=function(a){var c=new w.Vn;c&&c.la(a);return c};
w.Wn=w.fj.extend({update:function(a){this.A.update(this.Dm(a))},reverse:function(){return w.Vn.create(this.A.reverse())},Qa:q()});w.Wn.create=function(a){var c=new w.Wn;c&&c.la(a);return c};w.Mr=w.fj.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.Dm(1-2*a)):0.5*this.Dm(2*a-1)+0.5;this.A.update(c)},Qa:q()});w.Mr.create=function(a){var c=new w.Mr;c&&c.la(a);return c};
w.Tn=w.Qc.extend({update:function(a){this.A.update(a*a*(2.70158*a-1.70158))},reverse:function(){return w.Un.create(this.A.reverse())},Qa:q()});w.Tn.create=function(a){var c=new w.Tn;c&&c.la(a);return c};w.Un=w.Qc.extend({update:function(a){a-=1;this.A.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return w.Tn.create(this.A.reverse())},Qa:q()});w.Un.create=function(a){var c=new w.Un;c&&c.la(a);return c};
w.Lr=w.Qc.extend({update:function(a){a*=2;1>a?this.A.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.A.update(a*a*(3.5949095*a+2.5949095)/2+1))},Qa:q()});w.Lr.create=function(a){var c=new w.Lr;c&&c.la(a);return c};w=w=w||{};w.el=w.oa.extend({wa:j,F:function(a){this._super(a);var a=this.rc(),c=this.C,d=c.rc();d&&0<d.Cf?d.Dd&&d.wa.x==this.wa.x&&d.wa.y==this.wa.y?d.Xq():w.b(0,""):(d&&d.Dd&&d.setActive(m),c.EB(a),c.rc().setActive(i))},reverse:function(){return w.vj.create(this)},uk:function(a,c){return this.o(c)?(this.wa=a,i):m},rc:function(){w.b(0,"");return j}});w.el.create=function(a,c){var d=new w.el;d.uk(a,c);return d};
w.$w=w.el.extend({rc:function(){return w.Wr.create(this.wa)},ew:function(a){return this.C.rc().ew(a)},dv:function(a){return this.C.rc().dv(a)},Qv:function(a,c){this.C.rc().Qv(a,c)}});w.$w.create=q();w.Rs=w.el.extend({Xv:function(a){return this.C.rc().Xv(a)},Lq:function(a){return this.C.rc().Lq(a)},sn:function(a,c){return this.C.rc().sn(a,c)},rc:function(){return w.Jo.create(this.wa)}});w.Rs.create=q();
w.Fn=w.oa.extend({fb:j,A:j,la:function(a,c){return w.oa.o(c)?(this.fb=1,this.A=a,i):m},F:function(a){w.oa.F(a);this.A.F(a)},update:function(a){a*=2;1<a&&(a=1-(a-1));this.A.Zq(Math.pow(a,this.fb))},reverse:function(){return w.Fn.create(this.A.reverse(),this.g)},sq:u("fb"),cr:s("fb")});w.Fn.create=function(){return new w.Fn};
w.En=w.oa.extend({fb:j,A:j,la:function(a,c){return w.oa.o(c)?(this.fb=1,this.A=a,i):m},sq:u("fb"),cr:s("fb"),F:function(a){w.oa.F(a);this.A.F(a)},update:function(a){this.A.Zq(Math.pow(a,this.fb));this.A.update(a)},reverse:function(){return w.En.create(this.A.reverse(),this.g)}});w.En.create=function(){return new w.En};
w.Rn=w.oa.extend({fb:j,A:j,la:function(a,c){return w.oa.o(c)?(this.fb=1,this.A=a,i):m},sq:u("fb"),cr:s("fb"),F:function(a){w.oa.F(a);this.A.F(a)},update:function(a){this.A.Zq(Math.pow(1-a,this.fb));this.A.update(a)},reverse:function(){return w.Rn.create(this.A.reverse(),this.g)}});w.Rn.create=function(){return new w.Rn};w.Wg=w.Le.extend({F:function(a){this._super(a);(a=this.C.rc())&&a.Dd&&a.setActive(m)}});w.Wg.create=function(){return new w.Wg};
w.Fs=w.Le.extend({fe:j,JK:function(a){this.fe=a;return i},F:function(a){w.Le.F(a);this.C.rc()&&this.C.rc().Dd&&this.C.rc().QB(this.C.rc().Cf+this.fe)}});w.Fs.create=function(){return new w.Fs};w.Oo=w.Rs.extend({mF:j,bk:0,ck:[],yA:function(a,c){return this.uk(a,c)?(this.ck=j,i):m},lC:function(a,c){var d;for(d=c-1;0<=d;d--){var e=parseInt(Math.random()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}},zC:function(a){this.sn(a,this.Lq(a))},yC:function(a){this.sn(a,new w.qo)},F:function(a){this._super(a);this.bk=this.wa.x*this.wa.y;this.ck=[];for(a=0;a<this.bk;++a)this.ck[a]=a;this.lC(this.ck,this.bk)},update:function(a){var c,d;c=a*this.bk;for(a=0;a<this.bk;a++)d=this.ck[a],d=w.Nm(d/this.wa.y,d%this.wa.y),
a<c?this.yC(d):this.zC(d)}});w.Oo.create=function(a,c,d){var e=new w.Oo;2==arguments.length?e.uk(a,c):3==arguments.length&&e.yA(a,c,d);return e};w.od=w.hb.extend({P:function(){this.eh=m;var a=w.n.p();this.X(w.a(0.5,0.5));this.vb(a.ka())},D:function(){this.vb(w.n.p().ka());return i}});w.od.create=function(){return new w.od};w.oe=w.hb.extend({bi:m,dh:m,Jj:m,P:function(){this._super();this.X(w.a(0.5,0.5));this.eh=m;var a=w.n.p();if(!a)return m;this.vb(a.ka());this.dh=this.bi=m},D:v(i),Uq:function(){w.R.Ca().Ty(this,0)},HI:u("bi"),Fv:function(a){this.bi!=a&&(this.bi=a,this.Id&&(a?this.Uq():w.R.Ca().ff(this)))},wI:u("dh"),pN:function(a){a!=this.dh&&(this.dh=a,this.Id&&(a?w.Qk.tn().Dh(this):w.Qk.tn().Dh(j)))},CI:u("Jj"),GB:function(a){a!=this.Jj&&(this.Jj=a,this.Id&&(a?w.Vf.Ca().ek(this):w.Vf.Ca().ff(this)))},Ra:function(){this.bi&&
this.Uq();this._super();this.dh&&w.Qk.tn().Dh(this);this.Jj&&w.Vf.Ca().ek(this)},Mc:function(){this.bi&&w.R.Ca().ff(this);this.dh&&w.Qk.tn().Dh(j);this.Jj&&w.Vf.Ca().ff(this);this._super()},Jg:function(){this.dh&&w.Qk.tn().Dh(this);this._super()},Gm:function(){w.b(m,"Layer#ccTouchBegan override me");return i},Jm:q(),Im:q(),Hm:q(),Km:q(),Mm:q(),Lm:q(),gu:q(),KG:q(),BF:function(a){w.b(this.Tb,"cc.Layer addLayer");this.Tb.Qy(a)}});w.oe.create=function(){var a=new w.oe;return a&&a.D()?a:j};
w.oj=w.oe.extend({vg:[],La:[],Z:0,H:new w.ua(255,255,255),W:new w.mf(w.ld,w.kd),P:function(){this.vg=[new w.Yb(0,0),new w.Yb(0,0),new w.Yb(0,0),new w.Yb(0,0)];this.La=[new w.$a(0,0,0,1),new w.$a(0,0,0,1),new w.$a(0,0,0,1),new w.$a(0,0,0,1)];this.H=new w.ua(0,0,0);this._super()},Ge:u("Z"),Ta:function(a){this.Z=a;this.ge();this.Za()},xd:u("H"),Sa:function(a){this.H=a;this.ge();this.Za()},Um:u("W"),Ch:s("W"),an:function(a){this.W.src=w.ld;this.W.ed=w.kd;this.H=new w.ua(a.f,a.e,a.d);this.Z=a.i;for(a=
0;a<this.vg.length;a++)this.vg[a].x=0,this.vg[a].y=0;this.ge();return i},vb:function(a){this.vg[1].x=a.width*w.l();this.vg[2].y=a.height*w.l();this.vg[3].x=a.width*w.l();this.vg[3].y=a.height*w.l();this._super(a)},vG:function(a,c){this.vb(w.Ha(a,c))},uG:function(a){this.vb(w.Ha(a,this.za.height))},tG:function(a){this.vb(w.Ha(this.za.width,a))},ge:function(){for(var a=0;4>a;a++)this.La[a].f=Math.round(this.H.f),this.La[a].e=Math.round(this.H.e),this.La[a].d=Math.round(this.H.d),this.La[a].i=Math.round(this.Z)},
hf:q(),Ci:v(m),zb:function(a){a=a||w.Ga;if(w.qa==w.ta){var c=this.ja().width,d=this.ja().height,e=a.createLinearGradient(-this.Bi().x,this.Bi().y,-this.Bi().x+c,-(this.Bi().y+d));e.addColorStop(0,"rgba("+this.La[0].f+","+this.La[0].e+","+this.La[0].d+","+this.La[0].i/255+")");e.addColorStop(1,"rgba("+this.La[3].f+","+this.La[3].e+","+this.La[3].d+","+this.La[3].i/255+")");a.fillStyle=e;a.fillRect(-this.Bi().x,this.Bi().y,c,-d)}this._super()}});
w.oj.create=function(a,c,d){var e=new w.oj;a?e.an(a):e.D();c&&d&&e.vb(w.Ha(c,d));return e};
w.ds=w.oj.extend({B:new w.ua(0,0,0),z:new w.ua(0,0,0),rm:j,Pl:j,RE:j,Ll:m,P:function(){this.B=new w.ua(0,0,0);this.z=new w.ua(0,0,0);this._super()},dA:u("H"),UB:function(a){this.Sa(a)},xB:function(a){this.z=a;this.ge()},Sz:u("z"),lO:function(a){this.rm=a;this.ge()},WJ:u("rm"),fN:function(a){this.Pl=a;this.ge()},eI:u("Pl"),GO:function(a){this.fk=a;this.ge()},uK:u("fk"),AI:u("Ll"),sN:function(a){this.Ll=a;this.ge()},an:function(a,c,d){2==arguments.length&&(d=w.a(0,-1));this.B.f=a.f;this.B.e=a.e;this.B.d=
a.d;this.rm=a.i;this.z.f=c.f;this.z.e=c.e;this.z.d=c.d;this.Pl=c.i;this.fk=d;this.Ll=i;return this._super(w.iz(a.f,a.e,a.d))},ge:function(){this._super();var a=w.fq(this.fk);if(0!=a){var c=Math.sqrt(2),d=new w.k,d=w.a(this.fk.x/a,this.fk.y/a);this.Ll&&(d=w.mb(d,1/(Math.abs(d.x)+Math.abs(d.y))*c));var e=this.Z/255,a=new w.$a(this.B.f,this.B.e,this.B.d,this.rm*e),e=new w.$a(this.z.f,this.z.e,this.z.d,this.Pl*e);this.La[0].f=parseInt(e.f+(a.f-e.f)*((c+d.x+d.y)/(2*c)));this.La[0].e=parseInt(e.e+(a.e-
e.e)*((c+d.x+d.y)/(2*c)));this.La[0].d=parseInt(e.d+(a.d-e.d)*((c+d.x+d.y)/(2*c)));this.La[0].i=parseInt(e.i+(a.i-e.i)*((c+d.x+d.y)/(2*c)));this.La[1].f=parseInt(e.f+(a.f-e.f)*((c-d.x+d.y)/(2*c)));this.La[1].e=parseInt(e.e+(a.e-e.e)*((c-d.x+d.y)/(2*c)));this.La[1].d=parseInt(e.d+(a.d-e.d)*((c-d.x+d.y)/(2*c)));this.La[1].i=parseInt(e.i+(a.i-e.i)*((c-d.x+d.y)/(2*c)));this.La[2].f=parseInt(e.f+(a.f-e.f)*((c+d.x-d.y)/(2*c)));this.La[2].e=parseInt(e.e+(a.e-e.e)*((c+d.x-d.y)/(2*c)));this.La[2].d=parseInt(e.d+
(a.d-e.d)*((c+d.x-d.y)/(2*c)));this.La[2].i=parseInt(e.i+(a.i-e.i)*((c+d.x-d.y)/(2*c)));this.La[3].f=parseInt(e.f+(a.f-e.f)*((c-d.x-d.y)/(2*c)));this.La[3].e=parseInt(e.e+(a.e-e.e)*((c-d.x-d.y)/(2*c)));this.La[3].d=parseInt(e.d+(a.d-e.d)*((c-d.x-d.y)/(2*c)));this.La[3].i=parseInt(e.i+(a.i-e.i)*((c-d.x-d.y)/(2*c)))}}});w.ds.create=function(a,c,d){var e=arguments.length,f=new w.ds;switch(e){case 2:return f&&f.an(a,c)?f:j;case 3:return f&&f.an(a,c,d)?f:j;case 0:f.D();break;default:b("Arguments error ")}};
w.es=w.oe.extend({mg:0,Tb:j,P:function(){this._super()},IK:function(a){this.Tb=[];this.Tb.push(a);this.mg=0;this.r(a);return i},uA:function(a){this.Tb=a;this.mg=0;this.r(this.Tb[this.mg]);return i},MO:function(a){w.b(a<this.Tb.length,"Invalid index in MultiplexLayer switchTo message");this.removeChild(this.Tb[this.mg],i);this.mg=a;this.r(this.Tb[a])},NO:function(a){w.b(a<this.Tb.count(),"Invalid index in MultiplexLayer switchTo message");this.removeChild(this.Tb[this.mg],i);this.Tb[this.mg]=j;this.mg=
a;this.r(this.Tb[a])}});w.es.create=function(){var a=new w.es;return a.uA(arguments)?a:j};
w.GD=w.hb.extend({jc:j,ci:j,$h:m,Jl:-10,P:function(){this._super();this.X(new w.k(0,0));this.Gy()},zN:function(a){0<=a&&b("LazyLayer zOrder must Less than Zero.Because LazyLayer is a background Layer!");this.Jl=a;this.jc.style.zIndex=this.Jl},NI:u("Jl"),Gy:function(){var a=document.getElementById("Cocos2dGameContainer");a||(w.dC(),a=document.getElementById("Cocos2dGameContainer"));this.jc=document.createElement("canvas");this.jc.width=w.canvas.width;this.jc.height=w.canvas.height;this.jc.id="lazyCanvas"+
Date.now();this.jc.style.zIndex=this.Jl;this.jc.style.position="absolute";this.jc.style.top="0";this.jc.style.left="0";this.ci=this.jc.getContext("2d");this.ci.fillStyle="rgba(0,0,0,1)";this.ci.translate(0,this.jc.height);a.appendChild(this.jc);var c=this;window.addEventListener("resize",function(){c.Vy()})},Vy:function(){this.$h=i;this.jc.width=w.canvas.width;this.jc.height=w.canvas.height;var a=w.canvas.width/w.Kq.width,c=w.canvas.height/w.Kq.height;a>c&&(a=c);this.ci.translate(0,this.jc.height);
this.ci.scale(a,a)},r:function(a,c,d){this.$h=i;this._super(a,c,d)},removeChild:function(a,c){this.$h=i;this._super(a,c)},dc:function(){if(this.Yd&&this.$h){this.$h=m;var a=this.ci;a.save();a.clearRect(0,0,this.jc.width,-this.jc.height);this.Hb&&this.Hb.Dd&&(this.Hb.Yp(),this.An());if(this.c)for(var c=0;c<this.c.length;c++){var d=this.c[c];d&&0>d.Jc&&d.dc(a)}if(this.c)for(c=0;c<this.c.length;c++)(d=this.c[c])&&0<=d.Jc&&d.dc(a);this.Hb&&this.Hb.Dd&&this.Hb.Sp(this);a.restore()}},ce:function(){this.$h=
this.Ij=i}});w.wj=4208917214;w.IE=w.S.extend({wd:q()});w.OD=0;w.Yf=1;w.kl=0;w.LD=1;
w.Db=w.od.extend({M:j,xa:j,g:j,wf:m,Ht:m,Pt:function(){this.AC(this.Pt);var a=w.n.p();this.Ht=a.li;a.Mf(this.M);w.R.Ca().$q(i);this.xa.ha(i)},Df:function(){this.wf=i},zb:function(){this._super();this.wf?(this.xa.dc(),this.M.dc()):(this.M.dc(),this.xa.dc())},Ra:function(){this._super();this.M.Ra()},Mc:function(){this._super();this.xa.Mc();this.M.Jg()},Ce:function(){this._super();this.Ht&&this.xa.Ce()},o:function(a,c){w.b(c!=j,"CCTransitionScene.initWithDuration() Argument scene must be non-nil");return this.D()?
(this.g=a,this.X(w.a(0,0)),this.m(w.a(0,0)),this.M=c,this.xa=w.n.p().Ya,w.b(this.M!=this.xa,"CCTransitionScene.initWithDuration() Incoming scene must be different from the outgoing scene"),w.R.Ca().$q(m),this.Df(),i):m},finish:function(){this.M.ha(i);this.M.m(w.a(0,0));this.M.Ob(1);this.M.Pf(0);this.M.wh().restore();this.xa.ha(m);this.xa.m(w.a(0,0));this.xa.Ob(1);this.xa.Pf(0);this.xa.wh().restore();this.Kg(this.Pt,0)},$m:function(){this.M.ha(i);this.xa.ha(m)}});
w.Db.create=function(a,c){var d=new w.Db;return d!=j&&d.o(a,c)?d:j};w.fg=w.Db.extend({Kd:0,o:function(a,c,d){this._super(a,c)&&(this.Kd=d);return i}});w.fg.create=function(a,c,d){var e=new w.fg;e.o(a,c,d);return e};
w.gt=w.Db.extend({P:q(),Ra:function(){this._super();this.M.Ob(0.001);this.xa.Ob(1);this.M.X(w.a(0.5,0.5));this.xa.X(w.a(0.5,0.5));var a=w.Y.create(w.re.create(w.Ug.create(this.g/2,0.001),w.Tg.create(this.g/2,720),j),w.ob.create(this.g/2),j);this.xa.G(a);this.M.G(w.Y.create(a.reverse(),w.Da.create(this,this.finish),j))}});w.gt.create=function(a,c){var d=new w.gt;return d!=j&&d.o(a,c)?d:j};
w.at=w.Db.extend({Ra:function(){this._super();var a=w.n.p().ka();this.M.Ob(0.5);this.M.m(w.a(a.width,0));this.M.X(w.a(0.5,0.5));this.xa.X(w.a(0.5,0.5));var c=w.nj.create(this.g/4,w.a(-a.width,0),a.width/4,2),d=w.fc.create(this.g/4,1),a=w.fc.create(this.g/4,0.5),a=w.Y.create(a,c,j),c=w.Y.create(c,d,j),d=w.ob.create(this.g/2);this.xa.G(a);this.M.G(w.Y.create(d,c,w.Da.create(this,this.finish),j))}});w.at.create=function(a,c){var d=new w.at;return d!=j&&d.o(a,c)?d:j};
w.zj=w.Db.extend({Ra:function(){this._super();this.Lf();var a=this.action();this.M.G(w.Y.create(this.wd(a),w.Da.create(this,this.finish),j))},Lf:function(){this.M.m(w.a(-w.n.p().ka().width,0))},action:function(){return w.qj.create(this.g,w.a(0,0))},wd:function(a){return w.ij.create(a,2)}});w.zj.create=function(a,c){var d=new w.zj;return d!=j&&d.o(a,c)?d:j};w.ct=w.zj.extend({Lf:function(){var a=w.n.p().ka();this.M.m(w.a(a.width,0))}});
w.ct.create=function(a,c){var d=new w.ct;return d!=j&&d.o(a,c)?d:j};w.dt=w.zj.extend({Lf:function(){var a=w.n.p().ka();this.M.m(w.a(a.height,0))}});w.dt.create=function(a,c){var d=new w.dt;return d!=j&&d.o(a,c)?d:j};w.bt=w.zj.extend({Lf:function(){var a=w.n.p().ka();this.M.m(w.a(0,-a.height))}});w.bt.create=function(a,c){var d=new w.bt;return d!=j&&d.o(a,c)?d:j};w.Sf=0.5;
w.Aj=w.Db.extend({Df:function(){this.wf=m},P:q(),Ra:function(){this._super();this.Lf();var a=this.action(),c=this.action(),a=this.wd(a),c=w.Y.create(this.wd(c),w.Da.create(this,this.finish),j);this.M.G(a);this.xa.G(c)},Lf:function(){var a=w.n.p().ka();this.M.m(w.a(-(a.width-w.Sf),0))},action:function(){var a=w.n.p().ka();return w.pb.create(this.g,w.a(a.width-w.Sf,0))},wd:function(a){return w.ij.create(a,2)}});w.Aj.create=function(a,c){var d=new w.Aj;return d!=j&&d.o(a,c)?d:j};
w.jt=w.Aj.extend({Df:function(){this.wf=i},Lf:function(){var a=w.n.p().ka();this.M.m(w.a(a.width-w.Sf,0))},action:function(){var a=w.n.p().ka();return w.pb.create(this.g,w.a(-(a.width-w.Sf),0))}});w.jt.create=function(a,c){var d=new w.jt;return d!=j&&d.o(a,c)?d:j};w.it=w.Aj.extend({Df:function(){this.wf=m},Lf:function(){var a=w.n.p().ka();this.M.m(w.a(0,a.height-w.Sf))},action:function(){var a=w.n.p().ka();return w.pb.create(this.g,w.a(0,-(a.height-w.Sf)))}});
w.it.create=function(a,c){var d=new w.it;return d!=j&&d.o(a,c)?d:j};w.kt=w.Aj.extend({Df:function(){this.wf=i},Lf:function(){var a=w.n.p().ka();this.M.m(w.a(0,-(a.height-w.Sf)))},action:function(){var a=w.n.p().ka();return w.pb.create(this.g,w.a(0,a.height-w.Sf))}});w.kt.create=function(a,c){var d=new w.kt;return d!=j&&d.o(a,c)?d:j};
w.ht=w.Db.extend({Ra:function(){this._super();this.M.Ob(0.001);this.xa.Ob(1);this.M.X(w.a(2/3,0.5));this.xa.X(w.a(1/3,0.5));var a=w.fc.create(this.g,0.01);this.M.G(this.wd(w.fc.create(this.g,1)));this.xa.G(w.Y.create(this.wd(a),w.Da.create(this,this.finish),j))},wd:function(a){return w.ij.create(a,2)}});w.ht.create=function(a,c){var d=new w.ht;return d!=j&&d.o(a,c)?d:j};
w.Zs=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.Yf?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.qe.create(),w.Sc.create(this.g/2,1,0,d,a,0,0),w.Da.create(this,this.finish),j);c=w.Y.create(w.Sc.create(this.g/2,1,0,0,c,0,0),w.nf.create(),w.ob.create(this.g/2),j);this.M.G(a);this.xa.G(c)}});w.Zs.create=function(a,c,d){d==j&&(d=w.Yf);var e=new w.Zs;e.o(a,c,d);return e};
w.$s=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.kl?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.qe.create(),w.Sc.create(this.g/2,1,0,d,a,90,0),w.Da.create(this,this.finish),j);c=w.Y.create(w.Sc.create(this.g/2,1,0,0,c,90,0),w.nf.create(),w.ob.create(this.g/2),j);this.M.G(a);this.xa.G(c)}});w.$s.create=function(a,c,d){d==j&&(d=w.kl);var e=new w.$s;e.o(a,c,d);return e};
w.Ys=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.Yf?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.qe.create(),w.Sc.create(this.g/2,1,0,d,a,-45,0),w.Da.create(this,this.finish),j);c=w.Y.create(w.Sc.create(this.g/2,1,0,0,c,45,0),w.nf.create(),w.ob.create(this.g/2),j);this.M.G(a);this.xa.G(c)}});w.Ys.create=function(a,c,d){d==j&&(d=w.Yf);var e=new w.Ys;e.o(a,c,d);return e};
w.ot=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.Yf?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.re.create(w.Sc.create(this.g/2,1,0,d,a,0,0),w.fc.create(this.g/2,1),w.qe.create(),j),w.Da.create(this,this.finish),j);c=w.Y.create(w.re.create(w.Sc.create(this.g/2,1,0,0,c,0,0),w.fc.create(this.g/2,0.5),j),w.nf.create(),w.ob.create(this.g/2),j);this.M.Ob(0.5);this.M.G(a);this.xa.G(c)}});
w.ot.create=function(a,c,d){d==j&&(d=w.Yf);var e=new w.ot;e.o(a,c,d);return e};
w.pt=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.kl?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.re.create(w.Sc.create(this.g/2,1,0,d,a,90,0),w.fc.create(this.g/2,1),w.qe.create(),j),w.Da.create(this,this.finish),j);c=w.Y.create(w.re.create(w.Sc.create(this.g/2,1,0,0,c,90,0),w.fc.create(this.g/2,0.5),j),w.nf.create(),w.ob.create(this.g/2),j);this.M.Ob(0.5);this.M.G(a);this.xa.G(c)}});
w.pt.create=function(a,c,d){d==j&&(d=w.kl);var e=new w.pt;e.o(a,c,d);return e};
w.nt=w.fg.extend({Ra:function(){this._super();var a,c;this.M.ha(m);var d;this.Kd==w.Yf?(a=90,d=270,c=90):(a=-90,d=90,c=-90);a=w.Y.create(w.ob.create(this.g/2),w.re.create(w.Sc.create(this.g/2,1,0,d,a,-45,0),w.fc.create(this.g/2,1),w.qe.create(),j),w.qe.create(),w.Da.create(this,this.finish),j);c=w.Y.create(w.re.create(w.Sc.create(this.g/2,1,0,0,c,45,0),w.fc.create(this.g/2,0.5),j),w.nf.create(),w.ob.create(this.g/2),j);this.M.Ob(0.5);this.M.G(a);this.xa.G(c)}});
w.nt.create=function(a,c,d){d==j&&(d=w.Yf);var e=new w.nt;e.o(a,c,d);return e};
w.Pe=w.Db.extend({H:new w.ua,P:q(),Ra:function(){this._super();var a=w.oj.create(this.H);this.M.ha(m);this.r(a,2,w.wj);var a=this.xh(w.wj),c=w.Y.create(w.dl.create(this.g/2),w.Da.create(this,this.$m),w.Oh.create(this.g/2),w.Da.create(this,this.finish),j);a.G(c)},Mc:function(){this._super();this.ln(w.wj,m)},o:function(a,c,d){if("undefined"==d||d==j)d=w.ow();this._super(a,c)&&(this.H.f=d.f,this.H.e=d.e,this.H.d=d.d,this.H.i=0);return i}});w.Pe.create=function(a,c,d){var e=new w.Pe;e.o(a,c,d);return e};
w.Us=w.Db.extend({Ra:function(){this._super();var a=new w.$a(0,0,0,0),c=w.n.p().ka(),a=w.oj.create(a),d=w.Qh.create(c.width,c.height);if(j!=d){d.q.X(w.a(0.5,0.5));d.m(w.a(c.width/2,c.height/2));d.X(w.a(0.5,0.5));d.qi();this.M.dc();d.end();var e=w.Qh.create(c.width,c.height);e.q.X(w.a(0.5,0.5));e.m(w.a(c.width/2,c.height/2));e.X(w.a(0.5,0.5));e.qi();this.xa.dc();e.end();var c=new w.mf(w.Yw,w.Yw),f=w.mf(w.co,w.bo);d.q.Ch(c);e.q.Ch(f);a.r(d);a.r(e);d.q.Ta(255);e.q.Ta(255);d=w.Y.create(w.kj.create(this.g,
0),w.Da.create(this,this.$m),w.Da.create(this,this.finish),j);e.q.G(d);this.r(a,2,w.wj)}},Mc:function(){this.ln(w.wj,m);this._super()},zb:q()});w.Us.create=function(a,c){var d=new w.Us;d.o(a,c);return d};w.mt=w.Db.extend({Df:function(){this.wf=m},Ra:function(){this._super();var a=w.n.p().ka(),a=this.wd(w.Oo.create(w.Nm(12*(a.width/a.height),12),this.g));this.xa.G(w.Y.create(a,w.Da.create(this,this.finish),w.Wg.create(),j))},wd:p()});
w.mt.create=function(a,c){var d=new w.mt;return d!=j&&d.o(a,c)?d:j};w.No=w.Db.extend({Ra:function(){this._super();this.M.ha(m);var a=this.action(),a=w.Y.create(a,w.Da.create(this,this.$m),a.reverse(),j);this.G(w.Y.create(this.wd(a),w.Da.create(this,this.finish),w.Wg.create(),j))},wd:function(a){return w.hj.create(a,3)},action:function(){return w.kE.tF(3,this.g/2)}});w.No.create=function(a,c){var d=new w.No;return d!=j&&d.o(a,c)?d:j};w.lt=w.No.extend({action:function(){return w.lE.wF(3,this.g/2)}});
w.lt.create=function(a,c){var d=new w.lt;return d!=j&&d.o(a,c)?d:j};w.yj=w.Db.extend({Df:function(){this.wf=m},Ra:function(){this._super();var a=w.n.p().ka(),a=this.pi(w.Nm(12*(a.width/a.height),12));this.xa.G(w.Y.create(this.wd(a),w.Da.create(this,this.finish),w.Wg.create(),j))},wd:p(),pi:function(a){return w.xD.create(a,this.g)}});w.yj.create=function(a,c){var d=new w.yj;return d!=j&&d.o(a,c)?d:j};w.Vs=w.yj.extend({pi:function(a){return w.vD.create(a,this.g)}});
w.Vs.create=function(a,c){var d=new w.Vs;return d!=j&&d.o(a,c)?d:j};w.Xs=w.yj.extend({pi:function(a){return w.yD.create(a,this.g)}});w.Xs.create=function(a,c){var d=new w.Xs;return d!=j&&d.o(a,c)?d:j};w.Ws=w.yj.extend({pi:function(a){return w.wD.create(a,this.g)}});w.Ws.create=function(a,c){var d=new w.Ws;return d!=j&&d.o(a,c)?d:j};w.Hs=49153;
w.Mo=w.Db.extend({Ra:function(){this._super();var a=w.n.p().ka(),c=w.Qh.create(a.width,a.height);j!=c&&(c.q.X(w.a(0.5,0.5)),c.m(w.a(a.width/2,a.height/2)),c.X(w.a(0.5,0.5)),c.clear(0,0,0,1),c.qi(),this.xa.dc(),c.end(),this.$m(),c=w.Sg.bf(c.q.ga()),c.q.Dv(i),c.bC(_radialType()),c.br(100),c.m(w.a(a.width/2,a.height/2)),c.X(w.a(0.5,0.5)),a=w.Y.create(w.sj.create(this.g,100,0),w.Da.create(this,w.Db.finish),j),c.G(a),this.r(c,2,w.Hs))},Mc:function(){this.ln(w.Hs,m);this._super()},Df:function(){this.wf=m},
Dy:function(){return w.$i}});w.ft=w.Mo.extend({Dy:function(){return w.aj}});w.Mo.create=function(a,c){var d=new w.Mo;d.o(a,c);return d};w.ft.create=function(a,c){var d=new w.ft;d.o(a,c);return d};w.et=w.Db.extend({So:i,o:function(a,c,d){this.So=d;this._super(a,c);return i},pi:function(a){return this.So?w.vj.create(this._super(a,this.g)):this._super(a,this.g)},Ra:function(){this._super();var a=w.n.p().ka(),c;a.width>a.height?(a=16,c=12):(a=12,c=16);a=this.pi(w.Nm(a,c));this.So?(this.M.ha(m),this.M.G(w.Y.create(w.qe.create(),a,w.Da.create(this,w.Db.finish),w.Wg.create(),j))):this.xa.G(w.Y.create(a,w.Da.create(this,w.Db.finish),w.Wg.create(),j))},Df:q()});
w.et.create=function(a,c,d){var e=new w.et;e.o(a,c,d);return e};w.Is="0xffffffff";
w.Qz=function(a){var c=a.width,d=a.height,e=[],f=document.createElement("canvas");f.width=c;f.height=d;var h=f.getContext("2d");h.drawImage(a,0,0);f=document.createElement("canvas");f.width=c;f.height=d;for(var f=f.getContext("2d"),h=h.getImageData(0,0,c,d).data,l=0;4>l;l++){var k=document.createElement("canvas");k.width=c;k.height=d;var n=k.getContext("2d");f.drawImage(a,0,0);for(var o=f.getImageData(0,0,c,d),t=o.data,r=0;r<h.length;r+=4)t[r]=0===l?h[r]:0,t[r+1]=1===l?h[r+1]:0,t[r+2]=2===l?h[r+2]:
0,t[r+3]=h[r+3];n.putImageData(o,0,0);e.push(k)}return e};
w.Tm=function(a,c,d,e){e||(e=new w.v,e.size=new w.ea(a.width,a.height));a=d instanceof w.nd?w.ti(255*d.f,255*d.e,255*d.d):d;d=document.createElement("canvas");d.width=e.size.width;d.height=e.size.height;var f=d.getContext("2d");f.globalAlpha=1;f.globalCompositeOperation="copy";f.drawImage(c[3],e.origin.x,e.origin.y,e.size.width,e.size.height,0,0,e.size.width,e.size.height);f.globalCompositeOperation="lighter";0<a.f&&(f.globalAlpha=a.f/255,f.drawImage(c[0],e.origin.x,e.origin.y,e.size.width,e.size.height,
0,0,e.size.width,e.size.height));0<a.e&&(f.globalAlpha=a.e/255,f.drawImage(c[1],e.origin.x,e.origin.y,e.size.width,e.size.height,0,0,e.size.width,e.size.height));0<a.d&&(f.globalAlpha=a.d/255,f.drawImage(c[2],e.origin.x,e.origin.y,e.size.width,e.size.height,0,0,e.size.width,e.size.height));return d};w.as=1;w.Yr=2;w.Zr=4;w.$r=8;w.Xr=w.as|w.Yr|w.Zr|w.$r;w.Fx=function(){this.visible=this.Up=this.vn=this.rotation=this.scale=this.Ab=g};w.bg=function(a){return w.vx?a:parseInt(a)};
w.O=w.hb.extend({$:j,Zb:0,Qe:j,pp:j,bb:j,oh:j,Yl:j,W:new w.mf,s:new w.se,og:j,nc:j,fa:new w.v,Jb:w.cg(),qg:j,Jd:w.I(),xm:w.I(),t:w.Po(),yG:j,Rj:j,Fb:j,Gb:j,Z:255,P:function(a){this._super();if(a)if("string"==typeof a)this.vk(w.Td.je().xn(a));else if("object"==typeof a)if(a instanceof w.Cd)this.vk(a);else if(a instanceof w.Vg){if(1<arguments.length){var c=arguments[1];c instanceof w.v&&this.Di(a,c)}}else a instanceof HTMLImageElement||a instanceof HTMLCanvasElement?this.Ba(a):a instanceof w.se&&this.Ba(a)},
PK:u("bb"),qn:s("bb"),xJ:u("t"),eL:u("qg"),CH:u("Zb"),Of:s("Zb"),fA:function(){return new w.v(this.fa)},gL:u("nc"),FO:s("nc"),Ju:u("$"),Ov:s("$"),UJ:u("Qe"),jO:s("Qe"),uI:u("pp"),oN:s("pp"),Iu:function(){return new w.k(this.Jd.x,this.Jd.y)},Um:u("W"),Ch:s("W"),Di:function(a,c){return this.Ba(a.ga(),c)?(this.Dn(a),i):m},Ou:function(a,c){return this.Ba(a.ga())?(this.Ni(c,m,c.size),this.Dn(a),i):m},D:function(){this.bb=this.oh=m;this.dw();this.Rj=i;this.Z=255;this.H=w.Sh();this.Vh=w.Sh();this.W.src=
w.ld;this.W.ed=w.kd;this.sc(j);this.Fb=this.Gb=m;this.X(w.a(0.5,0.5));this.Jd=w.I();this.pp=w.Xr;this.Yl=m;var a=new w.$a(255,255,255,255);this.t.pa.Kc=a;this.t.Ma.Kc=a;this.t.Na.Kc=a;this.t.wb.Kc=a;this.Ni(w.cg(),m,w.Xb());return i},Ba:function(a,c){var d=arguments.length;0==d&&b("Sprite.initWithTexture(): Argument must be non-nil ");w.b(a!=j,"");if(1==d)if(c=new w.v,a instanceof w.se)c.size=a.ja();else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c.size=new w.ea(a.width,a.height);
w.qa==w.ta&&(this.og=a);this.D();this.sc(a);this.Lk(c);return i},Mb:function(a,c){var d=arguments.length;w.b(a!=j,"");var e=w.Ia.nb().Wv(a);e||(e=w.Ia.nb().dd(a));switch(d){case 1:return e?(c=w.cg(),c.size=w.qa==w.ta?new w.ea(e.width,e.height):e.ja(),this.Ba(e,c)):m;case 2:return e?this.Ba(e,c):m;default:b("initWithFile():Argument must be non-nil ")}},vk:function(a){w.b(a!=j,"");var c=this.Ba(a.ga(),a.fa);this.Fk(a);return c},Ru:function(a){w.b(a!=j,"");return this.vk(w.Td.je().xn(a))},dw:function(){this.Zb=
w.Is;this.nc=m;this.Qe=this.$=j;this.bb=this.oh=m;var a=0+this.Jd.x,c=0+this.Jd.y,d=a+this.Jb.size.width,e=c+this.Jb.size.height;this.t.pa.N=w.Ad(a,c);this.t.Ma.N=w.Ad(d,c);this.t.Na.N=w.Ad(a,e);this.t.wb.N=w.Ad(d,e)},Dn:function(a){this.nc=i;this.$=a.$;this.Qe=a},Lk:function(a){a=w.ro(a);this.Ni(a,m,a.size)},Ni:function(a,c,d){this.Jb=a;this.fa=w.tj(a);this.qg=c;this.Ek(d);this.Ly(this.Jb);a=this.xm;this.Jd.x=a.x+(this.sb.width-this.Jb.size.width)/2;this.Jd.y=a.y+(this.sb.height-this.Jb.size.height)/
2;if(this.nc)this.bb=i;else{var a=0+this.Jd.x,c=0+this.Jd.y,d=a+this.Jb.size.width,e=c+this.Jb.size.height;this.t.pa.N=w.Ad(a,c);this.t.Ma.N=w.Ad(d,c);this.t.Na.N=w.Ad(a,e);this.t.wb.N=w.Ad(d,e)}},Ly:function(a){if(w.qa==w.Cj){var c=this.nc?this.$.ga():this.s;if(c){var d=c.Cc,e=c.Bc,f;this.qg?(w.ao?(c=(2*a.origin.x+1)/(2*d),d=c+(2*a.size.height-2)/(2*d),f=(2*a.origin.y+1)/(2*e),a=f+(2*a.size.width-2)/(2*e)):(c=a.origin.x/d,d=c+a.size.height/d,f=a.origin.y/e,a=f+a.size.width/e),this.Fb&&w.nl(),this.Gb&&
w.nl(),this.t.pa.j.ca=c,this.t.pa.j.da=f,this.t.Ma.j.ca=c,this.t.Ma.j.da=a,this.t.Na.j.ca=d,this.t.Na.j.da=f,this.t.wb.j.ca=d,this.t.wb.j.da=a):(w.ao?(c=(2*a.origin.x+1)/(2*d),d=c+(2*a.size.width-2)/(2*d),f=(2*a.origin.y+1)/(2*e),a=f+(2*a.size.height-2)/(2*e)):(c=a.origin.x/d,d=c+a.size.width/d,f=a.origin.y/e,a=f+a.size.height/e),this.Fb&&w.nl(),this.Gb&&w.nl(),this.t.pa.j.ca=c,this.t.pa.j.da=a,this.t.Ma.j.ca=d,this.t.Ma.j.da=a,this.t.Na.j.ca=c,this.t.Na.j.da=f,this.t.wb.j.ca=d,this.t.wb.j.da=f)}}},
Cn:function(){w.b(this.nc,"");if(this.bb){var a=new w.Rk;if(this.Yd){if(!this.bc||this.bc==this.Qe){var c=-w.Bb(this.Xe),a=Math.cos(c),c=Math.sin(c),a=w.Sk(a*this.kc,c*this.kc,-c*this.Ec,a*this.Ec,this.xe.x,this.xe.y);if(this.td||this.ud)a=w.Ui(w.Sk(1,Math.tan(w.Bb(this.ud)),Math.tan(w.Bb(this.td)),1,0,0),a);a=w.Fh(a,-this.ya.x,-this.ya.y)}else for(var a=w.Gn(),c=w.Xr,d=this;d&&d!=this.Qe;d=d.getParent()){var e=new w.Fx;d.gy(e);if(!e.visible){this.t.Ma.N=this.t.Na.N=this.t.wb.N=this.t.pa.N=w.Ad(0,
0);this.$.lr(this.t,this.Zb);this.bb=this.oh=m;return}var f=w.Gn();c&w.as&&(f=w.Fh(f,e.Ab.x,e.Ab.y));c&w.Yr&&(f=w.rr(f,-w.Bb(e.rotation)));if(c&w.$r)var h=new w.Rk,h=w.Sk(1,Math.tan(w.Bb(e.vn.y)),Math.tan(w.Bb(e.vn.x)),1,0,0),f=w.Ui(h,f);c&w.Zr&&(f=w.sr(f,e.scale.x,e.scale.y));f=w.Fh(f,-e.Up.x,-e.Up.y);a=w.Ui(a,f);c=d}var f=new w.ea,f=this.Jb.size,c=this.Jd.x,d=this.Jd.y,e=c+f.width,f=d+f.height,h=a.ke,l=a.le,k=a.i,n=a.d,o=a.Lb,a=-a.Vb;this.t.pa.N=w.Ad(w.bg(c*k-d*a+h),w.bg(c*n+d*o+l));this.t.Ma.N=
w.Ad(w.bg(e*k-d*a+h),w.bg(e*n+d*o+l));this.t.Na.N=w.Ad(w.bg(c*k-f*a+h),w.bg(c*n+f*o+l));this.t.wb.N=w.Ad(w.bg(e*k-f*a+h),w.bg(e*n+f*o+l))}else this.t.Ma.N=this.t.Na.N=this.t.wb.N=this.t.pa.N=w.Ad(0,0);this.$.lr(this.t,this.Zb);this.bb=this.oh=m}},gy:function(a){a.Ab=this.xe;a.scale.x=this.kc;a.scale.y=this.Ec;a.rotation=this.Xe;a.vn.x=this.td;a.vn.y=this.ud;a.Up=this.ya;a.visible=this.Yd;return a},zb:function(a){this._super();a=a||w.Ga;if(w.qa==w.ta){a.globalAlpha=this.Z/255;this.Fb&&a.scale(-1,1);
this.Gb&&a.scale(1,-1);var c=this.Jd,c=new w.k(0|-this.ya.x+c.x,0|-this.ya.y+c.y);this.s?this.s instanceof HTMLImageElement?0==this.za.width&&0==this.za.height?(this.vb(new w.ea(this.s.width,this.s.height)),this.fa.size.width=this.s.width,this.fa.size.height=this.s.height,a.drawImage(this.s,c.x,-(c.y+this.s.height))):a.drawImage(this.s,this.fa.origin.x,this.fa.origin.y,this.fa.size.width,this.fa.size.height,c.x,-(c.y+this.fa.size.height),this.fa.size.width,this.fa.size.height):0==this.za.width&&0==
this.za.height?(this.vb(new w.ea(this.s.width,this.s.height)),this.fa.size.width=this.s.width,this.fa.size.height=this.s.height,a.drawImage(this.s,c.x,-(c.y+this.s.height))):a.drawImage(this.s,0,0,this.fa.size.width,this.fa.size.height,c.x,-(c.y+this.fa.size.height),this.fa.size.width,this.fa.size.height):(a.fillStyle="rgba("+this.H.f+","+this.H.e+","+this.H.d+",1)",a.fillRect(c.x,c.y,this.za.width,this.za.height))}else w.b(!this.nc,""),w.cv(w.ue,w.N),w.cv(w.ue,w.Kc),w.cv(w.ue,w.j);1==w.ml?(a=this.za,
a=[w.a(0,0),w.a(a.width,0),w.a(a.width,a.height),w.a(0,a.height)],w.Fe.Ee(a,4,i)):2==w.ml&&(a=this.fa.size,c=this.Iu(),a=[w.a(c.x,c.y),w.a(c.x+a.width,c.y),w.a(c.x+a.width,c.y+a.height),w.a(c.x,c.y+a.height)],w.Fe.Ee(a,4,i))},r:function(a,c,d){switch(arguments.length){case 1:this._super(a);break;case 2:this._super(a,c);break;case 3:w.b(a!=j,"");this._super(a,c,d);if(w.qa==w.Cj){if(this.nc){w.b(a.ga().getName()==this.$.ga().getName(),"");var e=this.Qe.Vp(a,c);this.Qe.qp(a,e)}this.Yl=i}break;default:b("Sprite.addChild():Argument must be non-nil ")}},
vv:function(a,c){w.b(a!=j,"child is null");w.b(-1<this.c.indexOf(a),"");c!=a.Jc&&(this.nc?(this.removeChild(a,m),this.r(a,c)):this._super(a,c))},removeChild:function(a,c){this.nc&&this.Qe.Ck(a);this._super(a,c)},Vq:function(a){if(this.nc&&this.c!=j)for(var c=0;c<this.c.length;c++)this.c[c]instanceof w.O&&this.Qe.Ck(this.c[c]);this._super(a);this.Yl=m},Cv:function(a){this.bb=this.oh=a;if(this.c!=j)for(var c in this.c)this.c[c]instanceof w.O&&this.c[c].Cv(i)},pe:function(){this.nc&&!this.oh&&(this.bb=
this.oh=i,this.Yl&&this.Cv(i))},m:function(a){this._super(a);this.pe()},rn:function(a){this._super(a);this.pe()},Pf:function(a){this._super(a);this.pe()},Lv:function(a){this._super(a);this.pe()},Mv:function(a){this._super(a);this.pe()},Kv:function(a){this._super(a);this.pe()},dr:function(a){this._super(a);this.pe()},Ob:function(a){this._super(a);this.pe()},Mk:function(a){this._super(a);this.pe()},X:function(a){this._super(a);this.pe()},HB:function(a){w.b(!this.nc,"");this._super(a)},ha:function(a){this._super(a);
this.pe()},CB:function(a){this.Fb!=a&&(this.Fb=a,this.Ni(this.Jb,this.qg,this.sb),this.Za())},Dv:function(a){this.Gb!=a&&(this.Gb=a,this.Za())},SK:u("Fb"),TK:u("Gb"),HC:function(){var a=new w.$a(this.H.f,this.H.e,this.H.d,this.Z);this.t.pa.Kc=a;this.t.Ma.Kc=a;this.t.Na.Kc=a;this.t.wb.Kc=a;this.nc&&(this.Zb!=w.Is?this.$.lr(this.t,this.Zb):this.bb=i)},Ge:u("Z"),Ta:function(a){this.Z=a;this.Za()},xd:function(){return this.Rj?new w.ua(this.Vh):new w.ua(this.H)},Sa:function(a){this.H.f==a.f&&this.H.e==
a.e&&this.H.d==a.d||(this.H=this.Vh=new w.ua(a.f,a.e,a.d),this.ga()&&w.qa==w.ta&&(a=w.Ia.nb().Xm(this.og))&&this.sc(w.Tm(this.ga(),a,this.H,this.fA())),this.HC(),this.Za())},hf:function(a){var c=this.H;this.Rj=a;this.H=c},Ci:u("Rj"),Fk:function(a){this.Za();this.xm=a.ih;var c=a.ga();c!=this.s&&this.sc(c);(this.qg=a.sg)&&this.Pf(-90);this.Ni(a.Jb,a.sg,a.ki)},ZM:function(a,c){w.b(a,"");var d=w.Tf.Qf().$t(a);w.b(d,"");d=d.ic[c];w.b(d,"");this.Fk(d)},BA:function(a){return w.qa==w.ta?a.ga()!=this.s?m:
w.v.Ar(a.fa,this.fa):w.v.Ar(a.fa,this.fa)&&a.ga().getName()==this.s.getName()},Cz:function(){return w.qa==w.ta?w.Cd.cy(this.s,this.Jb,this.qg,this.xm,this.sb):w.Cd.create(this.s,this.Jb,this.qg,this.xm,this.sb)},ni:function(){w.qa==w.Cj&&(w.b(!this.nc,"CCSprite: _updateBlendFunc doesn't work when the sprite is rendered using a CCSpriteSheet"),!this.s||!this.s.ng?(this.W.src=w.co,this.W.ed=w.bo,this.hf(m)):(this.W.src=w.ld,this.W.ed=w.kd,this.hf(i)))},sc:function(a){w.qa!=w.ta&&w.b(!this.nc,"setTexture doesn't work when the sprite is rendered using a CCSpriteSheet");
this.s=a;this.ni()},ga:u("s")});w.O.bf=function(a,c,d){var e=arguments.length,f=new w.O;switch(e){case 1:return f&&f.Ba(a)?f:j;case 2:return f&&f.Ba(a,c)?f:j;case 3:return w.b(0,""),j;default:b("Sprite.spriteWithTexture(): Argument must be non-nil ")}};w.O.create=function(a,c){var d=arguments.length,e=new w.O;return 2>d?e&&e.Mb(a)?e:j:e&&e.Mb(a,c)?e:j};w.O.GG=function(a){var c=new w.O;return c&&c.vk(a)?c:j};w.O.FG=function(a,c){var d=new w.O;return d&&d.Di(a,c)?d:j};w.Wi=w.S.extend({ii:"",Gj:0,ic:j,P:function(){this.ic=[]},getName:u("ii"),GN:s("ii"),RH:u("Gj"),UM:s("Gj"),Tz:u("ic"),lN:s("ic"),Pu:function(a,c){this.Gj=c;this.ic=a?a:[];return i},yF:function(a){this.ic.push(a)},zF:function(a){var a=w.Ia.nb().dd(a),c=w.cg();c.size=a instanceof HTMLImageElement||a instanceof HTMLCanvasElement?w.Ha(a.width,a.height):a.ja();this.ic.push(w.Cd.create(a,c))},Xt:function(a,c){this.ic.push(w.Cd.create(a,c))},D:function(){return this.Pu(j,0)}});
w.Wi.create=function(a,c){var d=new w.Wi;a==j?d.D():(c||(c=0),d.Pu(a,c));return d};w.Tf=w.S.extend({Py:function(a,c){this.Fl[c]=a},mM:function(a){a&&delete this.Fl[a]},$t:function(a){return this.Fl[a]},D:function(){this.Fl={};return i},Fl:j});w.Tf.hv=function(){w.Qf=j};w.Tf.Qf=function(){w.Qf==j&&(w.Qf=new w.Tf,w.Qf.D());return w.Qf};w.Qf=j;w.Cd=w.S.extend({Jb:new w.v,sg:j,fa:new w.v,ih:new w.k,ki:new w.ea,s:j,EJ:u("Jb"),$N:function(a){this.Jb=a;this.fa=w.tj(a)},YK:u("sg"),fO:s("sg"),DJ:u("fa"),PB:function(a){this.fa=a;this.Jb=w.ro(this.fa)},aJ:u("ih"),KN:s("ih"),dJ:u("ki"),MN:s("ki"),ga:u("s"),sc:s("s"),Qa:function(){var a=new w.Cd;a.Ba(this.s,this.Jb,this.sg,this.ih,this.ki);return a},Ba:function(a,c,d,e,f){switch(arguments.length){case 2:var h=w.ro(c);return this.Ba(a,h,m,w.I(),h.size);case 5:return this.s=a,this.Jb=c,this.fa=w.tj(c),
this.sg=d,this.ih=e,this.ki=f,i;default:b("Argument must be non-nil ")}}});w.Cd.create=function(a,c,d,e,f){var h=arguments.length,l=new w.Cd;switch(h){case 2:l.Ba(a,c);break;case 5:l.Ba(a,c,d,e,f);break;default:b("Argument must be non-nil ")}return l};w.Cd.cy=function(a,c,d,e,f){var h=new w.Cd;h.s=a;h.Jb=c;h.fa=w.tj(c);h.sg=d;h.ih=e;h.ki=f;return h};w.Td=w.S.extend({Fc:j,ug:j,P:function(){this.Fc={};this.ug={}},Am:function(a,c){var d=a.metadata,e=a.frames,f=0;d!=j&&(f=parseInt(this.w("format",d)));w.b(0<=f&&3>=f,"");var h=j,l;for(l in e)if(h=e[l])if(d=this.Fc[l],!d){if(0==f){var k=parseFloat(this.w("x",h)),n=parseFloat(this.w("y",h)),o=parseFloat(this.w("width",h)),t=parseFloat(this.w("height",h)),r=parseFloat(this.w("offsetX",h)),y=parseFloat(this.w("offsetY",h)),A=parseInt(this.w("originalWidth",h)),h=parseInt(this.w("originalHeight",h));(!A||
!h)&&w.Q("cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist");A=Math.abs(A);h=Math.abs(h);d=new w.Cd;d.Ba(c,w.T(k,n,o,t),m,w.Sd(r,y),w.Ha(A,h))}else if(1==f||2==f)k=w.Es(this.w("frame",h)),n=m,2==f&&(n="true"==this.w("rotated",h)),o=w.Bs(this.w("offset",h)),h=w.wo(this.w("sourceSize",h)),d=new w.Cd,d.Ba(c,k,n,o,h);else if(3==f){var k=new w.ea,n=new w.k,o=new w.ea,t=new w.v,k=w.wo(this.w("spriteSize",h)),n=w.Bs(this.w("spriteOffset",
h)),o=w.wo(this.w("spriteSourceSize",h)),t=w.Es(this.w("textureRect",h)),r="true"==this.w("textureRotated",h),d=h.aliases,h=l.toString(),B;for(B in d)this.ug.hasOwnProperty(d[B])&&w.Q("cocos2d: WARNING: an alias with name "+B+" already exists"),this.ug[d[B]]=h;d=new w.Cd;d.Ba(c,w.T(t.origin.x,t.origin.y,k.width,k.height),r,n,o)}d.sg&&(h=d.fa,d.PB(new w.v(h.origin.x,h.origin.y,h.size.height,h.size.width)));this.Fc[l]=d}},GF:function(a){var c="",d=a.metadata;d&&(c=this.w("textureFileName",d),c=c.toString());
(c=w.Ia.nb().dd(c))?this.Am(a,c):w.Q("cocos2d: cc.SpriteFrameCache: Couldn't load texture")},Rp:function(a,c){var d=arguments.length,e=w.uc.mq(a);switch(d){case 1:var d="",f=e.metadata;f&&(d=this.w("textureFileName",f).toString());""!=d?(f=a.lastIndexOf("/"),d=(f?a.substring(0,f+1):"")+d):(d=a,d=d.substr(0,d.lastIndexOf(".",d.length)),d+=".png",w.Q("cocos2d: cc.SpriteFrameCache: Trying to use file "+d.toString()+" as texture"));(c=w.Ia.nb().dd(d))?this.Am(e,c):w.Q("cocos2d: cc.SpriteFrameCache: Couldn't load texture");
break;case 2:arguments[1]instanceof w.se?this.Am(e,c):(a=arguments[0],d=arguments[1],w.b(d,"texture name should not be null"),(c=w.Ia.nb().dd(d))?this.Am(e,c):w.Q("cocos2d: cc.SpriteFrameCache: couldn't load texture file. File not found "+d));break;default:b("Argument must be non-nil ")}},FF:function(a,c){this.Fc[c]=a},qM:function(){this.Fc=[];this.ug=[]},pM:function(a){a&&(this.ug.hasOwnProperty(a)&&delete this.ug[a],this.Fc.hasOwnProperty(a)&&delete this.Fc[a])},rM:function(a){this.fB(w.uc.mq(w.uc.Pz(a)))},
fB:function(a){var a=a.frames,c;for(c in a)this.Fc.hasOwnProperty(c)&&delete this.Fc[c]},sM:function(a){for(var c in this.Fc){var d=this.Fc[c];d&&d.ga()==a&&delete this.Fc[c]}},xn:function(a){var c;this.Fc.hasOwnProperty(a)&&(c=this.Fc[a]);if(!c){var d;this.ug.hasOwnProperty(a)&&(d=this.ug[a]);d&&(this.Fc.hasOwnProperty(d.toString())&&(c=this.Fc[d.toString()]),c||w.Q("cocos2d: cc.SpriteFrameCahce: Frame "+a+" not found"))}return c},w:function(a,c){return c&&c.hasOwnProperty(a)?c[a].toString():""}});
w.je=j;w.Td.je=function(){w.je||(w.je=new w.Td);return w.je};w.Td.kv=function(){w.je=j};w.Pn=29;w.Gx=4294967295;w.co=770;w.bo=771;
w.Vg=w.hb.extend({$:new w.Xg,W:new w.mf(0,0),Xa:[],rg:j,It:m,og:j,P:function(a){this._super();a&&this.Mb(a,w.Pn);this.vb(new w.ea(w.canvas.width,w.canvas.height));this.rg=w.Qh.create(w.canvas.width,w.canvas.height)},ni:function(){this.$.ga().ng||(this.W.src=w.co,this.W.ed=w.bo)},Yt:function(a,c){w.b(a!=j,"SpriteBatchNode.addQuadFromSprite():Argument must be non-nil");a.Dn(this);a.Of(c);this.$.Uu(a.t,c);a.qn(i);a.Cn();this.c=w.Pd(this.c,a,c)},Sy:function(a,c,d){w.b(a!=j,"SpriteBatchNode.addQuadFromSprite():Argument must be non-nil");
a.Of(c);var e=0;if(this.Xa&&0<this.Xa.length)for(var f=j,h=0;h<this.Xa.length;h++)(f=this.Xa[h])&&f.Zb>=c&&++e;this.Xa=w.Pd(this.Xa,a,e);this.r(a,c,d,i);return this},Ju:u("$"),Ov:function(a){a!=this.$&&(this.$=a)},SH:u("Xa"),Ba:function(a,c){this.c=[];this.Xa=[];this.W.src=w.ld;this.W.ed=w.kd;this.$=new w.Xg;this.$.Ba(a,c);w.qa==w.ta&&(this.og=a);w.qa==w.Cj&&this.ni();return i},Za:function(){this.ce();this.cm=this.am=i;w.jl&&(this.Kj=i)},ce:function(){this.Ij=i},Ek:function(a){a&&(this._super(a),
this.rg.vb(a))},Mb:function(a,c){var d=w.Ia.nb().Wv(a);d||(d=w.Ia.nb().dd(a));return this.Ba(d,c)},hA:function(){var a=4*(this.$.Re+1)/3;w.Q("cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from "+this.$.Re+" to ["+a+"].");this.$.wv(a)||(w.Q("cocos2d: WARNING: Not enough memory to resize the atlas"),w.b(m,"Not enough memory to resize the atla"))},nM:function(a,c){this.removeChild(this.c[a],c)},Tu:function(a,c){a.Dn(this);a.Of(c);a.qn(i);this.$.ia.length==this.$.Re&&this.hA();this.$.Uu(a.t,
c);this.Xa=w.Pd(this.Xa,a,c);var d=0;if(this.Xa&&0<this.Xa.length)for(c=0;c<this.Xa.length;c++){var e=this.Xa[c];e&&(d>c&&e.Of(e.Zb+1),++d)}if((e=a.c)&&0<e.length)for(c=0;c<this.Xa.length;c++)if(e=this.Xa[c])d=this.Vp(e,e.Jc),this.Tu(e,d)},Ck:function(a){this.$.uv(a.Zb);a.dw();var c=w.Tk(this.Xa,a);if(-1!=c){w.Gh(this.Xa,c);for(var d=this.Xa.length;c<d;++c){var e=this.Xa[c];e.Of(e.Zb-1)}}if((a=a.c)&&0<a.length)for(c=0;c<a.length;c++)a[c]&&this.Ck(a[c])},qv:function(a,c){var d=a.c;if(d&&0<d.length)for(var e=
0;e<d.length;e++){var f=d[e];f&&0>f.Jc&&(c=this.qv(f,c))}a.isEqual(this)||(a.Of(c),c++);if(d&&0<d.length)for(e=0;e<d.length;e++)(f=d[e])&&0<=f.Jc&&(c=this.qv(f,c));return c},vq:function(a){var c=a.c;return!c||0==c.length?a.Zb:this.vq(c.pop())},JA:function(a){var c=a.c;return!c||0==c.length?a.Zb:this.JA(c.pop())},Vp:function(a,c){var d=a.getParent().c,e=w.Tk(d,a),f=a.getParent()==this,h=j;0<e&&e<w.Gx&&(h=d[e-1]);if(f)return 0==e?0:this.vq(h)+1;if(0==e)return d=a.getParent(),0>c?d.Zb:d.Zb+1;if(0>h.Jc&&
0>c||0<=h.Jc&&0<=c)return this.vq(h)+1;d=a.getParent();return d.Zb+1},ga:function(){return this.$.ga()},sc:function(a){this.$.sc(a);for(var c=0;c<this.c.length;c++)this.c[c].sc(a)},Ch:s("W"),Um:u("W"),dc:function(a){if(w.qa==w.ta&&(a=a||w.Ga,this.Yd)){a.save();this.Hb&&this.Hb.Dd&&(this.Hb.Yp(),this.An());this.transform();if(this.It){if(this.Ij){this.rg.clear();this.rg.th.translate(this.ya.x,-this.ya.y);if(this.c)for(var c=0;c<this.c.length;c++)this.c[c]&&this.c[c].dc(this.rg.th);this.Ij=m}this.zb()}else if(this.c)for(c=
0;c<this.c.length;c++)this.c[c]&&this.c[c].dc(a);this.Hb&&this.Hb.Dd&&this.Hb.Sp(this);a.restore()}},r:function(a,c,d){switch(arguments.length){case 1:this._super(a);break;case 2:this._super(a,c);break;case 3:w.b(a!=j,"SpriteBatchNode.addChild():child should not be null");w.qa!=w.ta&&w.b(a.ga().getName()==this.$.ga().getName(),"SpriteBatchNode.addChild():check CCSprite is using the same texture id");this._super(a,c,d);var e=this.Vp(a,c);this.Tu(a,e);break;case 4:arguments[3]&&this._super(a,c,d);break;
default:b("Argument must be non-nil ")}this.Za()},vv:function(a,c){w.b(a!=j,"SpriteBatchNode.addChild():the child should not be null");w.b(-1<this.c.indexOf(a),"SpriteBatchNode.addChild():sprite batch node should contain the child");c!=a.Jc&&(this.removeChild(a,m),this.r(a,c),this.Za())},removeChild:function(a,c){a!=j&&(w.b(-1<this.c.indexOf(a),"SpriteBatchNode.addChild():sprite batch node should contain the child"),this.Ck(a),this._super(a,c))},Vq:function(a){if(this.c&&0<this.c.length)for(var c=
0;c<this.c.length;c++){var d=this.c[c];d&&this.Ck(d)}this._super(a);this.Xa=[];this.$.cB()},zb:function(a){this._super();if(w.qa==w.ta){var a=a||w.Ga,c=new w.k(0|-this.ya.x,0|-this.ya.y);this.rg&&a.drawImage(this.rg.canvas,c.x,-(c.y+this.rg.canvas.height))}else if(0!=this.$.ia.length&&this.Xa&&0<this.Xa.length){c=j;for(a=0;a<this.Xa.length;a++)if(c=this.Xa[a])c.Cn(),c=c.eu(),w.Fe.Ee([w.a(c.origin.x,c.origin.y),w.a(c.origin.x+c.size.width,c.origin.y),w.a(c.origin.x+c.size.width,c.origin.y+c.size.height),
w.a(c.origin.x,c.origin.y+c.size.height)],4,i)}}});w.Vg.create=function(a,c){c||(c=w.Pn);var d=new w.Vg;d.Mb(a,c);return d};w.Vg.bf=function(a,c){c||(c=w.Pn);var d=new w.Vg;d.Ba(a,c);return d};w.io=w.In.extend({ie:function(a,c,d,e,f){w.b(a!=j,"");return this.Su(c,d,e,a.length)?(this.Lt=f,this.hd(a),i):m},kr:function(){for(var a=this.ga(),c=0;c<this.cc.length;c++){var d=this.cc.charCodeAt(c)-this.Lt.charCodeAt(0),d=w.T(parseInt(d%this.vp)*this.fh,parseInt(d/this.vp)*this.Lj,this.fh,this.Lj),e=this.cc.charCodeAt(c),f=this.xh(c);f?32==e?(f.D(),f.Lk(w.T(0,0,0,0))):(f.Ba(a,d),f.ha(i),f.Ta(this.Z)):(f=new w.O,32==e?(f.D(),f.Lk(w.T(0,0,0,0))):f.Ba(a,d),this.r(f,0,c));f.m(new w.k(c*this.fh+this.fh/
2,this.Lj/2))}},hd:function(a){this.cc=a;a=a.length;this.$.wv(a);var c=new w.ea;c.width=a*this.fh;c.height=this.Lj;this.Ek(c);if(this.c)for(a=0;a<this.c.length;a++)(c=this.c[a])&&c.ha(m);this.kr()},Sa:function(a){this._super(a);this.kr()},Wm:u("cc"),zb:function(){this._super();if(w.ex){var a=this.ja();w.Fe.Ee([w.a(0,0),w.a(a.width,0),w.a(a.width,a.height),w.a(0,a.height)],4,i)}},rz:function(){return this},cc:j,Lt:j});w.io.create=function(a,c,d,e,f){var h=new w.io;return h&&h.ie(a,c,d,e,f)?h:j};w.Cb=w.O.extend({tf:j,Qo:w.Bo,hc:"Arial",ac:0,cc:j,Hj:j,P:function(){this._super();this.cc="";this.H=w.Sh();this.Rj=m;this.Hj=""},description:function(){return"<cc.LabelTTF | FontName ="+this.hc+" FontSize = "+this.ac.toFixed(1)+">"},ie:function(a,c,d,e,f){w.b(a!=j,"cc.LabelTTF.initWithString() label is null");if(3<arguments.length){if(this.D())return this.tf=w.Ha(c.width*w.l(),c.height*w.l()),this.Qo=d,this.hc=e,this.ac=f*w.l(),this.hd(a),this.Hj=this.ac+"px '"+this.hc+"'",i}else if(e=arguments[1],
f=arguments[2],this.D())return this.tf=w.Xb(),this.hc=e,this.ac=f*w.l(),this.hd(a),this.Hj=this.ac+"px '"+this.hc+"'",i;return m},hd:function(a){this.cc=a;w.Ga.save();w.Ga.font=this.ac+"px '"+this.hc+"'";a=w.Ga.measureText(this.cc);this.vb(new w.ea(a.width,this.ac));w.Ga.restore();this.Za()},zb:function(a){if(w.qa==w.ta){a=a||w.Ga;this.Fb&&a.scale(-1,1);this.Gb&&a.scale(1,-1);var c=this.H;a.fillStyle="rgba("+c.f+","+c.e+","+c.d+", "+this.Z/255+")";a.font!=this.Hj&&(a.font=this.Hj);c=0;switch(this.Qo){case w.Co:c=
-(this.tf.width-this.za.width)/2;break;case w.Do:c=(this.tf.width-this.za.width)/2}this.za.width>this.tf.width&&0!==this.tf.width?this.Ny(a,this.cc,-this.tf.width*this.Qb.x,-this.tf.height*this.Qb.y,this.tf.width,1.2*this.ac,this.Qo):a.fillText(this.cc,-this.za.width*this.Qb.x+c,this.za.height*this.Qb.y)}},Ny:function(a,c,d,e,f,h,l){for(var c=c.split(" "),k="",n=0;n<c.length;n++){var o=k+c[n]+" ",t=a.measureText(o).width-a.measureText(" ").width;if(t>=f){var r=t-a.measureText(c[n]).width-2*a.measureText(" ").width;
switch(l){case w.Co:r=0;break;case w.Do:r=f-r;break;default:r=(f-r)/2}a.fillText(k,d+r,e);e+=h;k=c[n]+" "}else k=o,n==c.length-1&&a.fillText(k,d+r,e)}},Wm:u("cc"),rz:function(){return this}});w.Cb.create=function(a,c,d,e,f){var h=new w.Cb;if(3<arguments.length)return h!=j&&h.ie(a,c,d,e,f)?h:j;e=arguments[1];f=arguments[2];return h!=j&&h.ie(a,e,f)?h:j};w.Ox=function(){this.Zt=this.key=g};w.Lx=function(){this.iu=0;this.rect=new w.T(0,0,10,10);this.gw=this.iw=this.hw=0};w.Mx=function(){this.bottom=this.right=this.top=this.left=0};
w.Jn=w.S.extend({$p:{},ui:0,padding:new w.Mx,Wp:"",wk:{},description:function(){return"<cc.BMFontConfiguration | Kernings:"+this.wk+" | Image = "+this.Wp.toString()+">"},pA:function(a){w.b(a!=j&&0!=a.length,"");this.sy(a);return i},sy:function(a){var c=w.dg.Lg().rq(a);w.b(c,"cc.BMFontConfiguration._parseConfigFile | Open file error.");var d;d=/padding+[a-z0-9\-= ",]+/gi;(d=d.exec(c)[0])&&this.vy(d);d=/common lineHeight+[a-z0-9\-= ",]+/gi;(d=d.exec(c)[0])&&this.ry(d);d=/page id=[a-zA-Z0-9\.\-= ",]+/gi;
(d=d.exec(c)[0])&&this.uy(d,a);d=/chars c+[a-z0-9\-= ",]+/gi;d.exec(c);d=/char id=\w[a-z0-9\-= ]+/gi;if(d=c.match(d))for(a=0;a<d.length;a++){var e=new w.Lx;this.qy(d[a],e);this.$p[e.iu]=e}d=/kernings count+[a-z0-9\-= ",]+/gi;d.test(c);d=/first=\w[a-z0-9\-= ]+/gi;if(d=c.match(d))for(a=0;a<d.length;a++)this.xy(d[a])},qy:function(a,c){var d=/id=(\d+)/gi.exec(a)[1];c.iu=d.toString();d=/x=([\-\d]+)/gi.exec(a)[1];c.rect.origin.x=parseInt(d);d=/y=([\-\d]+)/gi.exec(a)[1];c.rect.origin.y=parseInt(d);d=/width=([\-\d]+)/gi.exec(a)[1];
c.rect.size.width=parseInt(d);d=/height=([\-\d]+)/gi.exec(a)[1];c.rect.size.height=parseInt(d);d=/xoffset=([\-\d]+)/gi.exec(a)[1];c.hw=parseInt(d);d=/yoffset=([\-\d]+)/gi.exec(a)[1];c.iw=parseInt(d);d=/xadvance=([\-\d]+)/gi.exec(a)[1];c.gw=parseInt(d)},vy:function(a){a=/padding=(\d+)[,](\d+)[,](\d+)[,](\d+)/gi.exec(a);this.padding.left=a[1];this.padding.top=a[2];this.padding.right=a[3];this.padding.bottom=a[4]},ry:function(a){this.ui=/lineHeight=(\d+)/gi.exec(a)[1];a=/pages=(\d+)/gi.exec(a)[1];w.b(1==
parseInt(a),"cc.BitfontAtlas: only supports 1 page")},uy:function(a,c){var d;d=/id=(\d+)/gi.exec(a)[1];w.b(0==parseInt(d),"LabelBMFont file could not be found");d=/file="([a-zA-Z0-9\-\._]+)/gi.exec(a)[1];this.Wp=w.uc.Oz(d,c)},jF:q(),xy:function(a){var c=/first=([\-\d]+)/gi.exec(a)[1],d=parseInt(c),c=/second=([\-\d]+)/gi.exec(a)[1],e=parseInt(c),c=/amount=([\-\d]+)/gi.exec(a)[1],a=new w.Ox;a.Zt=parseInt(c);a.key=d<<16|e&65535;this.wk[a.key]=a},lF:function(){this.wk={}}});
w.Jn.create=function(a){var c=new w.Jn;return c.pA(a)?c:j};
w.gl=w.Vg.extend({Z:0,H:j,Ue:m,cc:"",Wd:j,P:function(){this._super();if(w.fx){this.zb();var a=this.ja();w.Ee([w.a(0,0),w.a(a.width,0),w.a(a.width,a.height),w.a(0,a.height)],4,i)}},Ge:u("Z"),Ta:function(a){this.Z=a;if(this.c)for(var a=0,c=this.c.length;a<c;a++){var d=this.c[a];d&&d.Ta(this.Z)}},xd:u("H"),Sa:function(a){if(!(this.H.f==a.f&&this.H.e==a.e&&this.H.d==a.d)&&(this.H=a,this.ga()&&w.qa==w.ta&&(a=w.Ia.nb().Xm(this.og)))){var c=this.ga(),d=new w.v(0,0,c.width,c.height),a=w.Tm(c,a,this.H,d),
c=new Image;c.src=a.toDataURL();this.sc(c)}},Ci:u("Ue"),hf:function(a){this.Ue=a;if(this.c&&0!=this.c.length)for(var a=0,c=this.c.length;a<c;a++){var d=this.c[a];d&&(d=d instanceof w.to)&&d.hf(this.Ue)}},ie:function(a,c){w.b(a!=j,"");this.Wd=w.Tw(c);w.b(this.Wd,"Error creating config for LabelBMFont");return this.Mb(this.Wd.Wp,a.length)?(this.Z=255,this.H=w.Sh(),this.za=w.Xb(),this.X(w.a(0.5,0.5)),this.hd(a),i):m},nu:function(){var a=0,c=0,d=-1,e=0,f=w.Xb(),h=0,l=0,c=1,k=this.cc.length;if(0!=k){for(var n=
0;n<k;n++){var o=this.cc.charCodeAt(n);10==o&&c++}l=this.Wd.ui*c;c=-(this.Wd.ui-this.Wd.ui*c);for(n=0;n<k;n++)if(o=this.cc.charCodeAt(n),10==o)a=0,c-=this.Wd.ui;else{var e=this.my(d,o),d=this.Wd.$p[o],t=d.rect,r=this.xh(n);r?32==o?(r.D(),r.Lk(w.T(0,0,0,0))):(r.Ou(this,t),r.ha(i),r.Ta(255)):(r=new w.O,32==o?(r.D(),r.Lk(t)):r.Ou(this,t),this.r(r,0,n));r.rn(w.a(a+d.hw+d.rect.size.width/2+e,c+(this.Wd.ui-d.iw)-t.size.height/2));a+=this.Wd.$p[o].gw+e;d=o;r.hf(this.Ue);255!=this.Z&&r.Ta(this.Z);h<a&&(h=
a)}f.width=h;f.height=l;this.Ek(f)}},Wm:u("cc"),hd:function(a){this.cc=a;if(this.c)for(a=0;a<this.c.length;a++){var c=this.c[a];c&&c.ha(m)}this.nu()},PM:function(a){this.hd(a)},X:function(a){w.k.Uf(a,this.Qb)||(this._super(a),this.nu())},TE:q(),my:function(a,c){var d=0;if(this.Wd.wk){var e=this.Wd.wk[(a<<16|c&65535).toString()];e&&(d=e.Zt)}return d}});w.gl.create=function(a,c){var d=new w.gl;return d&&d.ie(a,c)?d:j};w.mk=j;w.Tw=function(a){w.mk||(w.mk={});var c=w.mk[a];c||(c=w.Jn.create(a));return c};
w.Sq=function(){w.Uw()};w.Uw=function(){w.mk&&(w.mk={})};w.rx=0;w.ls=1;w.sx=0;w.qx=1;w.ne=-1;w.md=-1;w.Dw=-1;w.SD=w.md;w.RD=w.ne;w.aa=0;w.Cw=1;w.Jh=0;w.Mn=1;w.Ew=2;w.TD=w.Jh;w.UD=w.Ew;w.rj=function(a,c,d,e,f,h,l,k,n,o,t){this.Ab=a?a:w.I();this.gr=c?c:w.I();this.color=d?d:new w.nd(0,0,0,1);this.Gg=e?e:new w.nd(0,0,0,1);this.size=f||0;this.lq=h||0;this.rotation=l||0;this.tu=k||0;this.yd=n||0;this.h=o?o:new w.rj.ko;this.ba=t?t:new w.rj.lo;this.Wu=m;this.pk=new w.k(0,0)};w.rj.ko=function(a,c,d){this.dir=a?a:w.I();this.Nb=c||0;this.Pc=d||0};
w.rj.lo=function(a,c,d,e){this.gk=a||0;this.pu=c||0;this.Ie=d||0;this.zi=e||0};
w.Zf=w.hb.extend({Mt:"",cb:0,h:j,ba:j,lh:j,Yh:0,Ac:0,kF:j,Ol:w.rx,YH:u("Ol"),$M:s("Ol"),Hp:w.qx,PJ:u("Hp"),gO:s("Hp"),Zh:m,xI:u("Zh"),qN:s("Zh"),be:0,iJ:u("be"),PN:s("be"),g:0,Rz:u("g"),wB:s("g"),qm:w.I(),SJ:u("qm"),hO:s("qm"),Dc:w.I(),pJ:u("Dc"),RN:s("Dc"),ib:0,QI:u("ib"),AN:s("ib"),Xc:0,RI:u("Xc"),BN:s("Xc"),Rb:0,yH:u("Rb"),LM:s("Rb"),Vc:0,zH:u("Vc"),MM:s("Vc"),rI:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.Lc},mN:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");
this.h.Lc=a},bA:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.speed},SB:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.speed=a},TJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.jd},iO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.jd=a},gK:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.Pc},uO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.Pc=
a},hK:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.Ke},vO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.Ke=a},AJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.Nb},XN:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.Nb=a},BJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.h.gd},YN:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.h.gd=a},XJ:function(){w.b(this.V==
w.aa,"Particle Mode should be Gravity");return this.ba.yn},mO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.yn=a},YJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.ba.zn},nO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.zn=a},fI:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.ba.qk},gN:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.qk=a},gI:function(){w.b(this.V==w.aa,
"Particle Mode should be Gravity");return this.ba.Rm},hN:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.Rm=a},HJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.ba.on},dO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.on=a},IJ:function(){w.b(this.V==w.aa,"Particle Mode should be Gravity");return this.ba.pn},eO:function(a){w.b(this.V==w.aa,"Particle Mode should be Gravity");this.ba.pn=a},ad:0,ZJ:u("ad"),VB:s("ad"),bd:0,$J:u("bd"),
oO:s("bd"),zc:0,hI:u("zc"),yB:s("zc"),Sl:0,iI:u("Sl"),iN:s("Sl"),B:new w.nd(0,0,0,1),dA:u("B"),UB:s("B"),K:new w.nd(0,0,0,1),VJ:u("K"),kO:s("K"),z:new w.nd(0,0,0,1),Sz:u("z"),xB:s("z"),J:new w.nd(0,0,0,1),dI:u("J"),eN:s("J"),sm:0,aK:u("sm"),WB:s("sm"),tm:0,bK:u("tm"),XB:s("tm"),Tl:0,jI:u("Tl"),zB:s("Tl"),Ul:0,kI:u("Ul"),AB:s("Ul"),yc:0,aI:u("yc"),bN:s("yc"),kb:0,pK:u("kb"),BO:s("kb"),s:j,ga:u("s"),sc:function(a){this.s=a;if(!(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)&&this.s&&
!this.s.ng&&this.W.src==w.ld&&this.W.ed==w.kd)this.W.src=GL_SRC_ALPHA,this.W.ed=GL_ONE_MINUS_SRC_ALPHA},W:new w.mf(0,0),Um:u("W"),Ch:s("W"),up:m,zI:u("up"),Je:s("up"),Bf:w.Jh,sJ:u("Bf"),SN:s("Bf"),$l:m,yI:u("$l"),rN:s("$l"),V:0,bI:u("V"),cN:s("V"),P:function(){this._super();this.V=w.aa;this.h=new w.Zf.ko;this.ba=new w.Zf.lo;this.W=new w.mf(w.ld,w.kd)},Mb:function(a){this.Mt=a;a=w.uc.mq(this.Mt);w.b(a!=j,"Particles: file not found");return this.oA(a)},si:function(){return new w.v(0,0,w.canvas.width,
w.canvas.height)},oA:function(a){var c=m;this.Ol=w.ls;if(this.gb(parseInt(this.w("maxParticles",a))||1)){this.Rb=parseFloat(this.w("angle",a))||0;this.Vc=parseFloat(this.w("angleVariance",a))||0;this.g=parseFloat(this.w("duration",a))||0;this.W.src=parseInt(this.w("blendFuncSource",a))||0;this.W.ed=parseInt(this.w("blendFuncDestination",a))||0;this.B.f=parseFloat(this.w("startColorRed",a))||0;this.B.e=parseFloat(this.w("startColorGreen",a))||0;this.B.d=parseFloat(this.w("startColorBlue",a))||0;this.B.i=
parseFloat(this.w("startColorAlpha",a))||0;this.K.f=parseFloat(this.w("startColorVarianceRed",a))||0;this.K.e=parseFloat(this.w("startColorVarianceGreen",a))||0;this.K.d=parseFloat(this.w("startColorVarianceBlue",a))||0;this.K.i=parseFloat(this.w("startColorVarianceAlpha",a))||0;this.z.f=parseFloat(this.w("finishColorRed",a))||0;this.z.e=parseFloat(this.w("finishColorGreen",a))||0;this.z.d=parseFloat(this.w("finishColorBlue",a))||0;this.z.i=parseFloat(this.w("finishColorAlpha",a))||0;this.J.f=parseFloat(this.w("finishColorVarianceRed",
a))||0;this.J.e=parseFloat(this.w("finishColorVarianceGreen",a))||0;this.J.d=parseFloat(this.w("finishColorVarianceBlue",a))||0;this.J.i=parseFloat(this.w("finishColorVarianceAlpha",a))||0;this.ad=parseFloat(this.w("startParticleSize",a))||0;this.bd=parseFloat(this.w("startParticleSizeVariance",a))||0;this.zc=parseFloat(this.w("finishParticleSize",a))||0;this.Sl=parseFloat(this.w("finishParticleSizeVariance",a))||0;this.m(w.a(parseFloat(this.w("sourcePositionx",a))||0,parseFloat(this.w("sourcePositiony",
a))||0));this.Dc.x=parseFloat(this.w("sourcePositionVariancex",a))||0;this.Dc.y=parseFloat(this.w("sourcePositionVariancey",a))||0;this.sm=parseFloat(this.w("rotationStart",a))||0;this.tm=parseFloat(this.w("rotationStartVariance",a))||0;this.Tl=parseFloat(this.w("rotationEnd",a))||0;this.Ul=parseFloat(this.w("rotationEndVariance",a))||0;this.V=parseInt(this.w("emitterType",a))||0;this.V==w.aa?(this.h.Lc.x=parseFloat(this.w("gravityx",a))||0,this.h.Lc.y=parseFloat(this.w("gravityy",a))||0,this.h.speed=
parseFloat(this.w("speed",a))||0,this.h.jd=parseFloat(this.w("speedVariance",a))||0,c=this.w("radialAcceleration",a),this.h.Nb=c?parseFloat(c):0,c=this.w("radialAccelVariance",a),this.h.gd=c?parseFloat(c):0,c=this.w("tangentialAcceleration",a),this.h.Pc=c?parseFloat(c):0,c=this.w("tangentialAccelVariance",a),this.h.Ke=c?parseFloat(c):0):this.V==w.Cw?(this.ba.yn=parseFloat(this.w("maxRadius",a))||0,this.ba.zn=parseFloat(this.w("maxRadiusVariance",a))||0,this.ba.qk=parseFloat(this.w("minRadius",a))||
0,this.ba.Rm=0,this.ba.on=parseFloat(this.w("rotatePerSecond",a))||0,this.ba.pn=parseFloat(this.w("rotatePerSecondVariance",a))||0):(w.b(m,"Invalid emitterType in config file"),w.Hh(i));this.ib=parseFloat(this.w("particleLifespan",a))||0;this.Xc=parseFloat(this.w("particleLifespanVariance",a))||0;this.yc=this.kb/this.ib;a=this.w("textureImageData",a);a="data:image/png;base64,"+a;c=new Image;c.src=a;this.s=c;if(!this.s)return m;c=i}return c},gb:function(a){this.kb=a;this.lh=[];if(!this.lh)return w.Q("Particle system: not enough memory"),
m;this.Zh=i;this.W.src=w.ld;this.W.ed=w.kd;this.Bf=w.Jh;this.V=w.aa;this.$l=m;this.zv(1);return i},Ry:function(){if(this.CA())return m;var a=new w.rj;this.lA(a);this.lh.push(a);++this.be;return i},lA:function(a){a.yd=this.ib+this.Xc*w.qb();a.yd=Math.max(0,a.yd);a.Ab.x=this.qm.x+this.Dc.x*w.qb();a.Ab.x*=w.l();a.Ab.y=this.qm.y+this.Dc.y*w.qb();a.Ab.y*=w.l();var c=new w.nd(w.Nd(this.B.f+this.K.f*w.qb(),0,1),w.Nd(this.B.e+this.K.e*w.qb(),0,1),w.Nd(this.B.d+this.K.d*w.qb(),0,1),w.Nd(this.B.i+this.K.i*
w.qb(),0,1)),d=new w.nd(w.Nd(this.z.f+this.J.f*w.qb(),0,1),w.Nd(this.z.e+this.J.e*w.qb(),0,1),w.Nd(this.z.d+this.J.d*w.qb(),0,1),w.Nd(this.z.i+this.J.i*w.qb(),0,1));a.color=c;a.Gg.f=(d.f-c.f)/a.yd;a.Gg.e=(d.e-c.e)/a.yd;a.Gg.d=(d.d-c.d)/a.yd;a.Gg.i=(d.i-c.i)/a.yd;c=this.ad+this.bd*w.qb();c=Math.max(0,c);c*=w.l();a.size=c;this.zc==w.md?a.lq=0:(d=this.zc+this.Sl*w.qb(),d=Math.max(0,d),d*=w.l(),a.lq=(d-c)/a.yd);c=this.sm+this.tm*w.qb();d=this.Tl+this.Ul*w.qb();a.rotation=c;a.tu=(d-c)/a.yd;this.Bf==w.Jh?
(c=this.Qm(w.I()),a.gr=w.mb(c,w.l())):this.Bf==w.Mn&&(a.gr=w.mb(this.Ea,w.l()));c=w.Bb(this.Rb+this.Vc*w.qb());if(this.V==w.aa)c=w.a(Math.cos(c),Math.sin(c)),d=this.h.speed+this.h.jd*w.qb(),d*=w.l(),a.h.dir=w.mb(c,d),a.h.Nb=this.h.Nb+this.h.gd*w.qb(),a.h.Nb*=w.l(),a.h.Pc=this.h.Pc+this.h.Ke*w.qb(),a.h.Pc*=w.l();else{var d=this.ba.yn+this.ba.zn*w.qb(),e=this.ba.qk+this.ba.Rm*w.qb(),d=d*w.l(),e=e*w.l();a.ba.Ie=d;a.ba.zi=this.ba.qk==w.Dw?0:(e-d)/a.yd;a.ba.gk=c;a.ba.pu=w.Bb(this.ba.on+this.ba.pn*w.qb())}},
tC:function(){this.Zh=m;this.cb=this.g;this.Yh=0},xM:function(){this.Zh=i;for(this.Ac=this.cb=0;this.Ac<this.be;++this.Ac)this.lh[this.Ac].yd=0},CA:function(){return this.be>=this.kb},mr:q(),Pq:q(),update:function(a){if(this.Zh&&this.yc){var c=1/this.yc;for(this.Yh+=a;this.be<this.kb&&this.Yh>c;)this.Ry(),this.Yh-=c;this.cb+=a;-1!=this.g&&this.g<this.cb&&this.tC()}this.Ac=0;c=w.I();this.Bf==w.Jh?(c=this.Qm(w.I()),c.x*=w.l(),c.y*=w.l()):this.Bf==w.Mn&&(c=w.a(this.Ea.x,this.Ea.y),c.x*=w.l(),c.y*=w.l());
for(;this.Ac<this.be;){var d=this.lh[this.Ac];d.yd-=a;if(0<d.yd){if(this.V==w.aa){var e,f;e=w.I();if(d.Ab.x||d.Ab.y)e=w.lk(d.Ab);f=e;e=w.mb(e,d.h.Nb);var h=f.x;f.x=-f.y;f.y=h;f=w.mb(f,d.h.Pc);e=w.pc(w.pc(e,f),this.h.Lc);e=w.mb(e,a);d.h.dir=w.pc(d.h.dir,e);e=w.mb(d.h.dir,a);d.Ab=w.pc(d.Ab,e)}else d.ba.gk+=d.ba.pu*a,d.ba.Ie+=d.ba.zi*a,d.Ab.x=-Math.cos(d.ba.gk)*d.ba.Ie,d.Ab.y=-Math.sin(d.ba.gk)*d.ba.Ie;d.color.f+=d.Gg.f*a;d.color.e+=d.Gg.e*a;d.color.d+=d.Gg.d*a;d.color.i+=d.Gg.i*a;d.Wu=i;d.size+=d.lq*
a;d.size=Math.max(0,d.size);d.rotation+=d.tu*a;e=this.Bf==w.Jh||this.Bf==w.Mn?w.qc(d.Ab,w.qc(c,d.gr)):d.Ab;w.qa==w.Cj?this.mr(d,e):d.pk=e;++this.Ac}else if(w.Wb(this.lh,d),--this.be,0==this.be&&this.$l){this.CC();this.bc.removeChild(this,i);return}}w.gg&&this.Pq()},w:function(a,c){if(c){var d=c[a];return d?d:""}return""}});w.Zf.create=function(a){var c=new w.Zf;return c&&c.Mb(a)?c:j};
w.Zf.ko=function(a,c,d,e,f,h,l){this.Lc=a?a:w.I();this.speed=c||0;this.jd=d||0;this.Pc=e||0;this.Ke=f||0;this.Nb=h||0;this.gd=l||0};w.Zf.lo=function(a,c,d,e,f,h){this.yn=a||0;this.zn=c||0;this.qk=d||0;this.Rm=e||0;this.on=f||0;this.pn=h||0};w.mo=w.Zf.extend({ia:j,Oa:j,Cy:0,P:function(){this._super()},kA:function(){for(var a=0;a<this.kb;++a){var c=6*a,d=4*a;this.Oa[c+0]=d+0;this.Oa[c+1]=d+1;this.Oa[c+2]=d+2;this.Oa[c+5]=d+1;this.Oa[c+4]=d+2;this.Oa[c+3]=d+3}},yq:function(a){var c=w.T(a.origin.x*w.l(),a.origin.y*w.l(),a.size.width*w.l(),a.size.height*w.l()),d=a.size.width,e=a.size.height;this.s&&(this.s instanceof HTMLImageElement||this.s instanceof HTMLCanvasElement?(d=this.s.width,e=this.s.height):(d=this.s.Cc,e=this.s.Bc));var f;w.ao?
(a=(2*c.origin.x+1)/(2*d),f=(2*c.origin.y+1)/(2*e),d=a+(2*c.size.width-2)/(2*d),c=f+(2*c.size.height-2)/(2*e)):(a=c.origin.x/d,f=c.origin.y/e,d=a+c.size.width/d,c=f+c.size.height/e);e=c;c=f;f=e;this.ia=[];for(e=0;e<this.kb;e++)this.ia[e]=w.Po();for(e=0;e<this.kb;e++)this.ia[e].pa.j.ca=a,this.ia[e].pa.j.da=f,this.ia[e].Ma.j.ca=d,this.ia[e].Ma.j.da=f,this.ia[e].Na.j.ca=a,this.ia[e].Na.j.da=c,this.ia[e].wb.j.ca=d,this.ia[e].wb.j.da=c},Fk:function(a){w.b(w.k.Uf(a.ih,w.I()),"QuadParticle only supports SpriteFrames with no offsets");
(!this.s||a.ga().getName()!=this.s.getName())&&this.sc(a.ga())},ZB:function(a,c){(!this.s||a.getName()!=this.s.getName())&&this.sc(a,i);this.yq(c)},gb:function(a){if(this._super(a)){this.ia=[];for(a=0;a<this.kb;a++)this.ia[a]=w.Po();this.Oa=[];for(a=0;a<6*this.kb;a++)this.Oa[a]=0;if(!this.ia||!this.Oa)return w.Q("cocos2d: Particle system: not enough memory"),this.ia&&(this.ia=j),this.Oa&&(this.Oa=j),j;this.s?this.yq(w.T(0,0,this.s.Cc,this.s.Bc)):this.yq(w.T(0,0,1,1));this.kA();return i}return m},
sc:function(a,c){if(c&&c==i)this._super(a);else{var d=j,d=a instanceof HTMLImageElement||a instanceof HTMLCanvasElement?w.Ha(a.width,a.height):a.ja();this.ZB(a,w.T(0,0,d.width,d.height))}},mr:function(a,c){var d=this.ia[this.Ac],e=new w.$a(255*a.color.f,255*a.color.e,255*a.color.d,255*a.color.i);d.pa.Kc=e;d.Ma.Kc=e;d.Na.Kc=e;d.wb.Kc=e;e=a.size/2;if(a.rotation){var f=-e,h=-e,l=c.x,k=c.y,n=-w.Bb(a.rotation),o=Math.cos(n),n=Math.sin(n);d.pa.N.x=f*o-h*n+l;d.pa.N.y=f*n+h*o+k;d.Ma.N.x=e*o-h*n+l;d.Ma.N.y=
e*n+h*o+k;d.Na.N.x=f*o-e*n+l;d.Na.N.y=f*n+e*o+k;d.wb.N.x=e*o-e*n+l;d.wb.N.y=e*n+e*o+k}else d.pa.N.x=c.x-e,d.pa.N.y=c.y-e,d.Ma.N.x=c.x+e,d.Ma.N.y=c.y-e,d.Na.N.x=c.x-e,d.Na.N.y=c.y+e,d.wb.N.x=c.x+e,d.wb.N.y=c.y+e},Pq:function(){w.qa!=w.ta&&w.gg&&(glBindBuffer(GL_ARRAY_BUFFER,quadsID),glBufferSubData(GL_ARRAY_BUFFER,0,sizeof(quads[0])*particleCount,quads),glBindBuffer(GL_ARRAY_BUFFER,0))},zb:function(a){this._super();if(w.qa==w.ta){a=a||w.Ga;a.save();a.globalCompositeOperation=this.up?"lighter":"source-over";
for(var c=0;c<this.be;c++){var d=this.lh[c],e=0|0.5*d.size;if(this.Ol==w.ls){var f=this.ga();if(d.Wu){var h=w.Ia.nb().Xm(this.ga());h&&(f=w.Tm(this.ga(),h,d.color))}a.save();a.globalAlpha=d.color.i;a.translate(0|d.pk.x,-(0|d.pk.y));a.drawImage(f,e,-(e+d.size),d.size,d.size)}else a.save(),a.globalAlpha=d.color.i,a.translate(0|d.pk.x,-(0|d.pk.y)),this.Hp==w.sx?w.Fe.Mz(a,new w.k(0,0),e,d.color):w.Fe.Fz(a,new w.k(0,0),e,d.color);a.restore()}a.restore()}else glBindTexture(GL_TEXTURE_2D,this.s.getName()),
a=sizeof(this.ia[0].pa),w.gg?(glBindBuffer(GL_ARRAY_BUFFER,this.Cy),w.Sn&&glBufferData(GL_ARRAY_BUFFER,sizeof(this.ia[0])*this.kb,this.ia,GL_DYNAMIC_DRAW),glVertexPointer(2,GL_FLOAT,a,0),glColorPointer(4,GL_UNSIGNED_BYTE,a,offsetof(ccV2F_C4B_T2F,colors)),glTexCoordPointer(2,GL_FLOAT,a,offsetof(ccV2F_C4B_T2F,texCoords))):(c=this.ia,d=offsetof(w.te,vertices),glVertexPointer(2,GL_FLOAT,a,c+d),d=offsetof(w.te,colors),glColorPointer(4,GL_UNSIGNED_BYTE,a,c+d),d=offsetof(w.te,texCoords),glTexCoordPointer(2,
GL_FLOAT,a,c+d)),(a=!!(this.W.src!=w.ld||this.W.ed!=w.kd))&&glBlendFunc(this.W.src,this.W.ed),w.b(this.Ac==this.be,"Abnormal error in particle quad"),glDrawElements(GL_TRIANGLES,6*this.Ac,GL_UNSIGNED_SHORT,this.Oa),a&&glBlendFunc(w.ld,w.kd),w.gg&&glBindBuffer(GL_ARRAY_BUFFER,0)}});w.mo.create=function(a){var c=new w.mo;return c&&c.Mb(a)?c:j};w.me=w.mo;w=w=w||{};w.is=64;
w.zs=w.Zf.extend({ub:j,Op:0,gb:function(a){if(this._super(a)){this.ub=[];for(a=0;a<this.kb;a++)this.ub[a]=new w.ag(new w.Yb(0,0),new w.$a(0,0,0,255),0);if(!this.ub)return w.Q("cocos2d: Particle system: not enough memory"),m;w.gg&&(glGenBuffers(1,this.Op),glBindBuffer(GL_ARRAY_BUFFER,this.Op),glBufferData(GL_ARRAY_BUFFER,sizeof(w.ag)*this.kb,this.ub,GL_DYNAMIC_DRAW),glBindBuffer(GL_ARRAY_BUFFER,0));return i}return m},mr:function(a,c){this.ub[this.Ac].Ab=new w.Jx(c.x,c.y);this.ub[this.Ac].size=a.size;
this.ub[this.Ac].color=new w.$a(255*a.color.f,255*a.color.e,255*a.color.d,255*a.color.i)},Pq:function(){w.gg&&(glBindBuffer(GL_ARRAY_BUFFER,this.Op),glBufferSubData(GL_ARRAY_BUFFER,0,sizeof(w.ag)*this.be,this.ub),glBindBuffer(GL_ARRAY_BUFFER,0))},zb:function(){this._super();if(0!=this.Ac){glDisableClientState(GL_TEXTURE_COORD_ARRAY);glBindTexture(GL_TEXTURE_2D,this.s.getName());glEnable(GL_POINT_SPRITE_OES);glTexEnvi(GL_POINT_SPRITE_OES,GL_COORD_REPLACE_OES,GL_TRUE);var a=sizeof(this.ub[0]);if(w.gg)glBindBuffer(GL_ARRAY_BUFFER,
verticesID),w.Sn&&glBufferData(GL_ARRAY_BUFFER,sizeof(w.ag)*this.kb,this.ub,GL_DYNAMIC_DRAW),glVertexPointer(2,GL_FLOAT,a,0),glColorPointer(4,GL_UNSIGNED_BYTE,a,offsetof(w.ag,color)),glEnableClientState(GL_POINT_SIZE_ARRAY_OES),glPointSizePointerOES(GL_FLOAT,a,offsetof(w.ag,size));else{var c=this.ub.length;glVertexPointer(2,GL_FLOAT,a,c);var d=offsetof(w.ag,color);glColorPointer(4,GL_UNSIGNED_BYTE,a,c+d);glEnableClientState(GL_POINT_SIZE_ARRAY_OES);d=offsetof(w.ag,size);glPointSizePointerOES(GL_FLOAT,
a,c+d)}(a=this.W.src!=w.ld||this.W.ed!=w.kd?i:m)&&glBlendFunc(this.W.src,this.W.ed);glDrawArrays(GL_POINTS,0,this.Ac);a&&glBlendFunc(w.ld,w.kd);w.gg&&glBindBuffer(GL_ARRAY_BUFFER,0);glDisableClientState(GL_POINT_SIZE_ARRAY_OES);glDisable(GL_POINT_SPRITE_OES);glEnableClientState(GL_TEXTURE_COORD_ARRAY)}},WB:function(a){w.b(0==a,"PointParticleSystem doesn't support spinning");this._super(a)},XB:function(a){w.b(0==a,"PointParticleSystem doesn't support spinning");this._super(a)},zB:function(a){w.b(0==
a,"PointParticleSystem doesn't support spinning");this._super(a)},AB:function(a){w.b(0==a,"PointParticleSystem doesn't support spinning");this._super(a)},VB:function(a){w.b(0<=a&&a<=w.is,"PointParticleSystem only supports 0 <= size <= 64");this._super(a)},yB:function(a){w.b(a==w.md||0<=a&&a<=w.is,"PointParticleSystem only supports 0 <= size <= 64");this._super(a)}});w.zs.create=function(a){var c=new w.zs;return c&&c.Mb(a)?c:j};w.ps=w.me.extend({D:function(){return this.gb(150)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.Nb=0,this.h.gd=0,this.h.speed=60,this.h.jd=20,this.Rb=90,this.Vc=10,a=w.n.p().ka(),this.m(w.a(a.width/2,60)),this.Dc=w.a(40,20),this.ib=3,this.Xc=0.25,this.ad=54,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.76,this.B.e=0.25,this.B.d=0.12,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0,this.K.i=0,this.z.f=0,this.z.e=0,this.z.d=0,this.z.i=1,this.J.f=0,
this.J.e=0,this.J.d=0,this.J.i=0,this.Je(i),i):m}});w.ps.create=function(){var a=new w.ps;return a.D()?a:j};
w.qs=w.me.extend({D:function(){return this.gb(150)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,-90),this.h.Nb=0,this.h.gd=0,this.h.speed=180,this.h.jd=50,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Rb=90,this.Vc=20,this.ib=3.5,this.Xc=1,this.yc=this.kb/this.ib,this.B.f=0.5,this.B.e=0.5,this.B.d=0.5,this.B.i=1,this.K.f=0.5,this.K.e=0.5,this.K.d=0.5,this.K.i=0.1,this.z.f=0.1,this.z.e=0.1,this.z.d=0.1,this.z.i=0.2,this.J.f=0.1,this.J.e=0.1,this.J.d=0.1,this.J.i=
0.2,this.ad=8,this.bd=2,this.zc=w.md,this.Je(m),i):m}});w.qs.create=function(){var a=new w.qs;return a.D()?a:j};
w.ys=w.me.extend({D:function(){return this.gb(150)},gb:function(a){return this._super(a)?(this.Je(i),this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.Nb=0,this.h.gd=0,this.h.speed=20,this.h.jd=5,this.Rb=90,this.Vc=360,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=1,this.Xc=0.5,this.ad=30,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.76,this.B.e=0.25,this.B.d=0.12,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0,this.K.i=0,this.z.f=0,this.z.e=0,this.z.d=0,this.z.i=
1,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,i):m}});w.ys.create=function(){var a=new w.ys;return a.D()?a:j};
w.ss=w.me.extend({D:function(){return this.gb(100)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.speed=60,this.h.jd=10,this.h.Nb=-80,this.h.gd=0,this.h.Pc=80,this.h.Ke=0,this.Rb=90,this.Vc=360,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=4,this.Xc=1,this.ad=37,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.12,this.B.e=0.25,this.B.d=0.76,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0,this.K.i=0,this.z.f=0,this.z.e=0,this.z.d=
0,this.z.i=1,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,this.Je(i),i):m}});w.ss.create=function(){var a=new w.ss;return a.D()?a:j};
w.rs=w.me.extend({D:function(){return this.gb(100)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.speed=80,this.h.jd=10,this.h.Nb=-60,this.h.gd=0,this.h.Pc=15,this.h.Ke=0,this.Rb=90,this.Vc=360,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=4,this.Xc=1,this.ad=30,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.5,this.B.e=0.5,this.B.d=0.5,this.B.i=1,this.K.f=0.5,this.K.e=0.5,this.K.d=0.5,this.K.i=0.5,this.z.f=0,this.z.e=0,
this.z.d=0,this.z.i=1,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,this.Je(i),i):m}});w.rs.create=function(){var a=new w.rs;return a.D()?a:j};
w.ts=w.me.extend({D:function(){return this.gb(100)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(-200,200),this.h.speed=15,this.h.jd=5,this.h.Nb=0,this.h.gd=0,this.h.Pc=0,this.h.Ke=0,this.Rb=90,this.Vc=360,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=2,this.Xc=1,this.ad=60,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.2,this.B.e=0.4,this.B.d=0.7,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0.2,this.K.i=0.1,this.z.f=0,this.z.e=0,this.z.d=
0,this.z.i=1,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,this.Je(i),i):m}});w.ts.create=function(){var a=new w.ts;return a.D()?a:j};
w.xs=w.me.extend({D:function(){return this.gb(100)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.speed=150,this.h.jd=0,this.h.Nb=-380,this.h.gd=0,this.h.Pc=45,this.h.Ke=0,this.Rb=90,this.Vc=0,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=12,this.Xc=0,this.ad=20,this.bd=0,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.5,this.B.e=0.5,this.B.d=0.5,this.B.i=1,this.K.f=0.5,this.K.e=0.5,this.K.d=0.5,this.K.i=0,this.z.f=0.5,this.z.e=0.5,
this.z.d=0.5,this.z.i=1,this.J.f=0.5,this.J.e=0.5,this.J.d=0.5,this.J.i=0,this.Je(m),i):m}});w.xs.create=function(){var a=new w.xs;return a.D()?a:j};
w.os=w.me.extend({D:function(){return this.gb(300)},gb:function(a){return this._super(a)?(this.g=0.1,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.speed=70,this.h.jd=40,this.h.Nb=0,this.h.gd=0,this.h.Pc=0,this.h.Ke=0,this.Rb=90,this.Vc=360,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height/2)),this.Dc=w.I(),this.ib=5,this.Xc=2,this.ad=15,this.bd=10,this.zc=w.md,this.yc=this.kb/this.g,this.B.f=0.7,this.B.e=0.1,this.B.d=0.2,this.B.i=1,this.K.f=0.5,this.K.e=0.5,this.K.d=0.5,this.K.i=0,this.z.f=0.5,this.z.e=0.5,this.z.d=
0.5,this.z.i=0,this.J.f=0.5,this.J.e=0.5,this.J.d=0.5,this.J.i=0,this.Je(m),i):m}});w.os.create=function(){var a=new w.os;return a.D()?a:j};
w.vs=w.me.extend({D:function(){return this.gb(100)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,0),this.h.Nb=0,this.h.gd=0,this.h.speed=25,this.h.jd=10,this.Rb=90,this.Vc=5,a=w.n.p().ka(),this.m(w.a(a.width/2,0)),this.Dc=w.a(20,0),this.ib=4,this.Xc=1,this.ad=60,this.bd=10,this.zc=w.md,this.yc=this.kb/this.ib,this.B.f=0.8,this.B.e=0.8,this.B.d=0.8,this.B.i=1,this.K.f=0.02,this.K.e=0.02,this.K.d=0.02,this.K.i=0,this.z.f=0,this.z.e=0,this.z.d=0,this.z.i=1,this.J.f=0,
this.J.e=0,this.J.d=0,this.J.i=0,this.Je(m),i):m}});w.vs.create=function(){var a=new w.vs;return a.D()?a:j};
w.ws=w.me.extend({D:function(){return this.gb(250)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(0,-1),this.h.speed=5,this.h.jd=1,this.h.Nb=0,this.h.gd=1,this.h.Pc=0,this.h.Ke=1,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height+10)),this.Dc=w.a(a.width/2,0),this.Rb=-90,this.Vc=5,this.ib=45,this.Xc=15,this.ad=10,this.bd=5,this.zc=w.md,this.yc=10,this.B.f=1,this.B.e=1,this.B.d=1,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0,this.K.i=0,this.z.f=1,this.z.e=1,this.z.d=1,this.z.i=
0,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,this.Je(m),i):m}});w.ws.create=function(){var a=new w.ws;return a.D()?a:j};
w.us=w.me.extend({D:function(){return this.gb(300)},gb:function(a){return this._super(a)?(this.g=w.ne,this.V=w.aa,this.h.Lc=w.a(10,-10),this.h.Nb=0,this.h.gd=1,this.h.Pc=0,this.h.Ke=1,this.h.speed=130,this.h.jd=30,this.Rb=-90,this.Vc=5,a=w.n.p().ka(),this.m(w.a(a.width/2,a.height)),this.Dc=w.a(a.width/2,0),this.ib=4.5,this.Xc=0,this.ad=4,this.bd=2,this.zc=w.md,this.yc=20,this.B.f=0.7,this.B.e=0.8,this.B.d=1,this.B.i=1,this.K.f=0,this.K.e=0,this.K.d=0,this.K.i=0,this.z.f=0.7,this.z.e=0.8,this.z.d=
1,this.z.i=0.5,this.J.f=0,this.J.e=0,this.J.d=0,this.J.i=0,this.Je(m),i):m}});w.us.create=function(){var a=new w.us;return a.D()?a:j};w.Yg=w.S.extend({Pp:0,Tj:j,Cp:w.I(),Et:0,P:function(a,c,d){this.Pp=a;this.Tj=new w.k(c||0,d||0)},fn:u("Tj"),aM:u("Cp"),view:u("Pp"),id:u("Et"),DO:function(a,c,d,e){this.Pp=a;this.Cp=this.Tj;this.Tj=new w.k(c||0,d||0);this.Et=e||0},qh:function(a,c){this.Cp=new w.k(a||0,c||0)}});w.Ts=w.S.extend({WE:j,Gm:v(m),Jm:q(),Im:q(),Hm:q(),Km:q(),Mm:q(),Lm:q(),gu:q(),XO:q(),WO:q()});w.BE=w.Ts.extend({Gm:v(m),Jm:q(),Im:q(),Hm:q()});w.mE=w.Ts.extend({Km:q(),Mm:q(),Lm:q(),gu:q()});w.xl=w.S.extend({Wa:j,nh:0,hp:0,Gu:u("Wa"),Dh:s("Wa"),vJ:u("nh"),Jv:s("nh"),cI:u("hp"),dN:s("hp"),Ah:function(a,c){w.b(a!=j,"TouchHandler.initWithDelegate():touch delegate should not be null");this.Wa=a;this.nh=c;this.hp=0;return i}});w.xl.Zm=function(a,c){var d=new w.xl;d&&d.Ah(a,c);return d};w.Ao=w.xl.extend({Ah:function(a,c){return this._super(a,c)?i:m}});w.Ao.Zm=function(a,c){var d=new w.Ao;d&&d.Ah(a,c);return d};
w.vl=w.xl.extend({um:m,Uh:j,bL:u("um"),sO:s("um"),MH:u("Uh"),Ah:function(a,c,d){return this._super(a,c)?(this.Uh=[],this.um=d,i):m}});w.vl.Zm=function(a,c,d){var e=new w.vl;e&&e.Ah(a,c,d);return e};w.Bx=1;w.Ex=2;w.Dx=4;w.Cx=8;w.HE=w.Bx|w.Ex|w.Dx|w.Cx;w.sl=0;w.ul=1;w.tl=2;w.Go=3;w.GE=4;w.HA=function(a,c){return a.nh>c.nh};w.yl=s("type");
w.R=w.S.extend({Ic:j,Gc:j,$d:m,Ff:m,Ag:m,Gd:j,Wc:j,wm:m,bh:m,hy:[new w.yl(w.sl),new w.yl(w.ul),new w.yl(w.tl),new w.yl(w.Go)],D:function(){this.bh=i;this.Ic=[];this.Gc=[];this.Gd=[];this.Wc=[];this.$d=this.wm=this.Ff=this.Ag=m;return i},QK:u("bh"),$q:s("bh"),Ty:function(a,c){var d=w.Ao.Zm(a,c);this.$d?-1!=this.Wc.indexOf(a)?w.Wb(this.Wc,a):(this.Gd.push(d),this.Ff=i):this.Gc=this.Sm(d,this.Gc)},Uy:function(a,c,d){c=w.vl.Zm(a,c,d);this.$d?-1!=this.Wc.indexOf(a)?w.Wb(this.Wc,a):(this.Gd.push(c),this.Ff=
i):this.Ic=this.Sm(c,this.Ic)},Sm:function(a,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];if(f&&(f.nh<a.nh&&++d,f.Wa==a.Wa))return w.b(0,"TouchDispatcher.forceAddHandler()"),c}return w.Pd(c,a,d)},Fu:function(){this.Gc.length=0;this.Ic.length=0},ff:function(a){if(a!=j)if(this.$d){var c=this.Au(this.Gd,a);c?w.Wb(this.Gd,c):(this.Wc.push(a),this.Ag=i)}else this.sk(a)},tv:function(){this.$d?this.wm=i:this.Fu()},Jv:function(a,c){w.b(c!=j,"TouchDispatcher.setPriority():Arguments is null");var d=this.Au(c);
w.b(d!=j,"TouchDispatcher.setPriority():Cant find TouchHandler");d.Jv(a);this.pv(this.Ic);this.pv(this.Gc)},touches:function(a,c,d){w.b(0<=d&&4>d,"TouchDispatcher.touches()");this.$d=i;var e=this.Ic.length,f=this.Gc.length,h=e&&f,l=h?a.slice():a,k=this.hy[d];if(0<e)for(var n=0;n<a.length;n++)for(var e=a[n],o,t=0;t<this.Ic.length;t++){o=this.Ic[t];if(!o)break;var r=m;if(d==w.sl)(r=o.Wa.Gm(e,c))&&o.Uh.push(e);else if(0<o.Uh.length)switch(r=i,k.type){case w.ul:o.Wa.Jm(e,c);break;case w.tl:o.Wa.Im(e,
c);o.Uh.length=0;break;case w.Go:o.Wa.Hm(e,c),o.Uh.length=0}if(r&&o.um){h&&w.Wb(l,e);break}}if(0<f)for(n=0;n<this.Gc.length;n++){o=this.Gc[n];if(!o)break;switch(k.type){case w.sl:0<l.length&&o.Wa.Km(l,c);break;case w.ul:0<l.length&&o.Wa.Mm(l,c);break;case w.tl:o.Wa.Lm(l,c)}}this.$d=m;if(this.Ag){this.Ag=m;for(n=0;n<this.Wc.length;n++)this.sk(this.Wc[n]);this.Wc.length=0}if(this.Ff){this.Ff=m;for(n=0;n<this.Gd.length;n++){o=this.Gd[n];if(!o)break;o instanceof w.vl?this.Ic=this.Sm(o,this.Ic):this.Gc=
this.Sm(o,this.Gc)}this.Gd.length=0}this.wm&&(this.wm=m,this.Fu())},Yv:function(a,c){this.bh&&this.touches(a,c,w.sl)},$v:function(a,c){this.bh&&this.touches(a,c,w.ul)},Zv:function(a,c){this.bh&&this.touches(a,c,w.tl)},xC:function(a,c){this.bh&&this.touches(a,c,w.Go)},Au:function(a,c){switch(arguments.length){case 1:for(var c=arguments[0],d=0;d<this.Ic.length;d++)if(this.Ic[d].Wa==c)return this.Ic[d];for(d=0;d<this.Gc.length;d++)if(this.Gc[d].Wa==c)return this.Gc[d];return j;case 2:w.b(a!=j&&c!=j,
"TouchDispatcher.findHandler():Arguments is null");for(d=0;d<a.length;d++)if(a[d].Wa==c)return a[d];return j;default:b("Argument must be non-nil ")}},sk:function(a){for(var c,d=0;d<this.Gc.length;d++)if((c=this.Gc[d])&&c.Wa==a){w.Wb(this.Gc,c);break}for(d=0;d<this.Ic.length;d++)if((c=this.Ic[d])&&c.Wa==a){w.Wb(this.Ic,c);break}},pv:function(a){a.sort(w.HA)}});w.R.Pa=new w.k(0,0);
w.R.aB=function(){var a=w.canvas;a.addEventListener("mousedown",function(c){for(var d=a,e=j,e=a instanceof HTMLCanvasElement?{left:0,top:0,height:d.height}:{left:0,top:0,height:parseInt(d.style.height)};d!=j;)e.left+=d.offsetLeft,e.top+=d.offsetTop,d=d.offsetParent;d=c.pageY;c=(c.pageX-e.left)/w.n.p().L;d=(e.height-(d-e.top))/w.n.p().L;e=new w.Yg(0,c,d);e.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=c;w.R.Pa.y=d;c=[];c.push(e);w.R.Ca().Yv(c,j)});a.addEventListener("mouseup",function(c){for(var d=a,e=j,e=a instanceof
HTMLCanvasElement?{left:0,top:0,height:d.height}:{left:0,top:0,height:parseInt(d.style.height)};d!=j;)e.left+=d.offsetLeft,e.top+=d.offsetTop,d=d.offsetParent;d=c.pageY;c=(c.pageX-e.left)/w.n.p().L;d=(e.height-(d-e.top))/w.n.p().L;e=new w.Yg(0,c,d);e.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=c;w.R.Pa.y=d;c=[];c.push(e);w.R.Ca().Zv(c,j)});a.addEventListener("mousemove",function(c){for(var d=a,e=j,e=a instanceof HTMLCanvasElement?{left:0,top:0,height:d.height}:{left:0,top:0,height:parseInt(d.style.height)};d!=
j;)e.left+=d.offsetLeft,e.top+=d.offsetTop,d=d.offsetParent;d=c.pageY;c=(c.pageX-e.left)/w.n.p().L;d=(e.height-(d-e.top))/w.n.p().L;e=new w.Yg(0,c,d);e.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=c;w.R.Pa.y=d;c=[];c.push(e);w.R.Ca().$v(c,j)});a.addEventListener("touchstart",function(c){if(c.touches){for(var d=[],e=a,f=j,f=a instanceof HTMLCanvasElement?{left:0,top:0,height:e.height}:{left:0,top:0,height:parseInt(e.style.height)};e!=j;)f.left+=e.offsetLeft,f.top+=e.offsetTop,e=e.offsetParent;f.left-=document.body.scrollLeft;
f.top-=document.body.scrollTop;for(e=0;e<c.touches.length;e++){var h=c.touches[e].pageX,l=c.touches[e].pageY;c.touches[e]&&(h=c.touches[e].clientX,l=c.touches[e].clientY);var h=(h-f.left)/w.n.p().L,l=(f.height-(l-f.top))/w.n.p().L,k=new w.Yg(0,h,l);k.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=h;w.R.Pa.y=l;d.push(k)}w.R.Ca().Yv(d,j);c.stopPropagation();c.preventDefault()}},m);a.addEventListener("touchmove",function(c){if(c.touches){for(var d=[],e=a,f=j,f=a instanceof HTMLCanvasElement?{left:0,top:0,height:e.height}:
{left:0,top:0,height:parseInt(e.style.height)};e!=j;)f.left+=e.offsetLeft,f.top+=e.offsetTop,e=e.offsetParent;f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;for(e=0;e<c.touches.length;e++){var h=c.touches[e].pageX,l=c.touches[e].pageY;c.touches[e]&&(h=c.touches[e].clientX,l=c.touches[e].clientY);var h=(h-f.left)/w.n.p().L,l=(f.height-(l-f.top))/w.n.p().L,k=new w.Yg(0,h,l);k.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=h;w.R.Pa.y=l;d.push(k)}w.R.Ca().$v(d,j);c.stopPropagation();c.preventDefault()}},
m);a.addEventListener("touchend",function(c){if(c.touches){for(var d=[],e=a,f=j,f=a instanceof HTMLCanvasElement?{left:0,top:0,height:e.height}:{left:0,top:0,height:parseInt(e.style.height)};e!=j;)f.left+=e.offsetLeft,f.top+=e.offsetTop,e=e.offsetParent;f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;e=c.touches;if(!e||0==e.length)e=c.changedTouches;for(var h=0;h<e.length;h++){var l=e[h].pageX,k=e[h].pageY;e[h]&&(l=e[h].clientX,k=e[h].clientY);var l=(l-f.left)/w.n.p().L,k=(f.height-
(k-f.top))/w.n.p().L,n=new w.Yg(0,l,k);n.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=l;w.R.Pa.y=k;d.push(n)}w.R.Ca().Zv(d,j);c.stopPropagation();c.preventDefault()}},m);a.addEventListener("touchcancel",function(c){if(c.touches){for(var d=[],e=a,f=j,f=a instanceof HTMLCanvasElement?{left:0,top:0,height:e.height}:{left:0,top:0,height:parseInt(e.style.height)};e!=j;)f.left+=e.offsetLeft,f.top+=e.offsetTop,e=e.offsetParent;f.left-=document.body.scrollLeft;f.top-=document.body.scrollTop;for(e=0;e<c.touches.length;e++){var h=
c.touches[e].pageX,l=c.touches[e].pageY;c.touches[e]&&(h=c.touches[e].clientX,l=c.touches[e].clientY);var h=(h-f.left)/w.n.p().L,l=(f.height-(l-f.top))/w.n.p().L,k=new w.Yg(0,h,l);k.qh(w.R.Pa.x,w.R.Pa.y);w.R.Pa.x=h;w.R.Pa.y=l;d.push(k)}w.R.Ca().xC(d,j);c.stopPropagation();c.preventDefault()}},m)};w.jm=j;w.R.Ca=function(){w.jm==j&&(w.jm=new w.R,w.jm.D(),w.R.aB());return w.jm};w.FD=w.S.extend({Yu:q(),Zu:q()});w.ho=w.S.extend({Gu:u("Wa"),Dh:s("Wa"),Ah:function(a){w.b(a!=j,"It's a wrong delegate!");this.Wa=a;return i},Wa:j});w.ho.create=function(a){var c=new w.ho;c.Ah(a);return c};w.zE=1;w.AE=2;
w.Oe={az:8,PO:9,Nz:13,shift:16,HG:17,alt:18,pause:19,ZF:20,escape:27,SL:33,RL:34,end:35,home:36,left:37,GC:38,right:39,Dz:40,KK:45,oD:46,"0":48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,i:65,d:66,Vb:67,Lb:68,WG:69,dH:70,e:71,AK:72,DK:73,hL:74,jL:75,lL:76,qL:77,tL:78,GL:79,QL:80,eM:81,f:82,lB:83,OO:84,ca:85,da:86,JC:87,x:88,y:89,LC:90,uL:96,vL:97,wL:98,xL:99,yL:100,zL:101,AL:102,BL:103,CL:104,DL:105,"*":106,"+":107,"-":109,numdel:110,"/":111,eH:112,iH:113,jH:114,kH:115,lH:116,mH:117,nH:118,oH:119,
pH:120,fH:121,gH:122,hH:123,FL:144,GM:145,JM:186,",":186,ZG:187,"=":187,";":188,zG:188,IG:189,".":190,YL:190,uH:191,zK:192,"[":219,PL:219,"]":221,xG:221,TF:220,quote:222,JO:32};
w.Vf=w.S.extend({ek:function(a){a&&(this.$d?(this.Gd.push(a),this.Ff=i):this.Eu(a))},ff:function(a){a&&(this.$d?(this.Wc.push(a),this.Ag=i):this.sk(a))},Eu:function(a){if(a=w.ho.create(a)){for(var c=0;c<this.rf;c++);this.rf.push(a)}},sk:function(a){-1!=this.rf.indexOf(a)&&this.rf.splice(this.rf.indexOf(a),1)},yu:function(a,c){this.$d=i;a.stopPropagation();a.preventDefault();if(c&&a)for(var d=0;d<this.rf.length;d++)this.rf[d].Wa.Yu(a.keyCode);else if(!c&&a)for(d=0;d<this.rf.length;d++)this.rf[d].Wa.Zu(a.keyCode);
this.$d=m;if(this.Ag){this.Ag=m;for(d=0;d<this.Wc.length;++d)this.sk(this.Wc[d]);delete this.Wc;this.Wc=[]}if(this.Ff){this.Ff=m;for(d=0;d<this.Gd.length;++d)this.Eu(this.Gd[d]);this.Gd=[]}return i},rf:[],$d:m,Ff:m,Ag:m,Gd:[],Wc:[]});
w.Vf.Ca=function(){w.Bh||(w.Bh=new w.Vf,w.canvas.setAttribute("contentEditable",i),w.canvas.style.outline="none",w.canvas.style.cursor="default",w.canvas.addEventListener("keydown",function(a){w.Bh.yu(a,i);w.ec.Ca().YA(a.keyCode)}),w.canvas.addEventListener("keyup",function(a){w.Bh.yu(a,m)}));return w.Bh};w.Vf.cM=function(){w.Bh&&(delete w.Bh,w.Bh=j)};w.ED=function(a,c,d){this.qi=a||w.cg();this.end=c||w.cg();this.duration=d||0};w.DD=w.S.extend({P:function(){w.ec.Ca().ek(this)},ff:function(){w.ec.Ca().ff(this)},$y:function(){return w.ec.Ca().cu(this)},vu:function(){return w.ec.Ca().uu(this)},cq:v(m),yz:q(),eq:v(m),zz:q(),Vu:q(),qu:q(),qq:v(""),GA:q(),EA:q(),FA:q(),DA:q()});
w.ec=w.S.extend({na:j,P:function(){this.na=new w.ec.dx},xu:function(a,c){this.na&&a&&!(0>=c)&&this.na.wc&&this.na.wc.Vu(a,c)},Bz:function(){this.na&&this.na.wc&&this.na.wc.qu()},qq:function(){if(this.na&&this.na.wc){var a=this.na.wc.qq();return a?a:""}return""},OG:function(){if(this.na)for(var a=0;a<this.na.Ed.length;a++);},MG:function(){if(this.na)for(var a=0;a<this.na.Ed.length;a++);},NG:function(){if(this.na)for(var a=0;a<this.na.Ed.length;a++);},LG:function(){if(this.na)for(var a=0;a<this.na.Ed.length;a++);
},ek:function(a){a&&this.na&&!(-1<this.na.Ed.indexOf(a))&&(this.na.Ed=w.Pd(this.na.Ed,a,0))},cu:function(a){if(!this.na||!a||-1==this.na.Ed.indexOf(a))return m;if(this.na.wc){if(!this.na.wc.eq()||!a.cq())return m;this.na.wc=j;this.na.wc=a;return i}if(!a.cq())return m;this.na.wc=a;return i},uu:function(a){if(!this.na||!a||this.na.wc!=a||!a.eq())return m;this.na.wc=0;return i},ff:function(a){this.na&&a&&-1!=this.na.Ed.indexOf(a)&&(this.na.wc&&a==this.na.wc&&(this.na.wc=j),w.Wb(this.na.Ed,a))},YA:function(a){32>
a?a==w.Oe.az?this.Bz():a==w.Oe.Nz&&this.xu("\n",1):255>a&&this.xu(String.fromCharCode(a),1)}});w.ec.dx=w.S.extend({wc:j,Ed:j,P:function(){this.Ed=[]},qH:function(a){for(var c=0;c<this.Ed.length;c++)if(this.Ed[c]==a)return c;return j}});w.ec.Ca=function(){w.ec.Bq||(w.ec.Bq=new w.ec,w.Vf.Ca());return w.ec.Bq};w.ec.Bq=j;w.DE=w.S.extend({LL:v(m),NL:v(m),OL:v(m),ML:v(m),JL:v(m)});
w.Io=w.Cb.extend({gF:j,Xd:"",Af:"",Kl:0,Wa:j,Bl:j,P:function(){this.Bl=new w.ua(127,127,127);w.ec.Ca().ek(this);this._super()},Gu:u("Wa"),Dh:s("Wa"),IH:u("Kl"),NH:u("Bl"),RM:s("Bl"),wA:function(a,c,d,e,f){switch(arguments.length){case 5:return a&&(this.Af=a),this.ie(this.Af,c,d,e,f);case 3:return a&&(this.Af=a),e=arguments[1],f=arguments[2],this.ie(this.Af,e,f);default:b("Argument must be non-nil ")}},hd:function(a,c){c&&c==i?this._super(a):(this.Xd=a?a:"",this.Xd.length?this._super(this.Xd):this._super(this.Af),
this.Kl=this.Xd.length)},Wm:u("Xd"),Iv:function(a){this.Af=a||"";this.Xd.length||this.hd(this.Af,i)},oJ:u("Af"),zb:function(a){a=a||w.Ga;if(this.Xd)this._super(a);else{var c=this.xd();this.Sa(this.Bl);this._super(a);this.Sa(c)}},$y:function(){return w.ec.Ca().cu(this)},vu:function(){return w.ec.Ca().uu(this)},cq:v(i),yz:q(),eq:v(i),zz:q(),qu:function(){var a=this.Xd.length;0!=a&&(1>=a?(this.Xd="",this.Kl=0,this.hd(this.Af,i)):this.hd(this.Xd.substring(0,a-1)))},ff:function(){w.ec.Ca().ff(this)},Vu:function(a){var c=
a,a=c.indexOf("\n");-1<a&&(c=c.substring(0,a));0<c.length&&(c=this.Xd+c,this.Kl=c.length,this.hd(c));-1!=a&&this.vu()},qq:u("Xd"),GA:q(),EA:q(),FA:q(),DA:q()});w.Io.create=function(a,c,d,e,f){switch(arguments.length){case 5:var h=new w.Io;return h&&h.wA("",c,d,e,f)?(a&&h.Iv(a),h):j;case 3:return h=new w.Io,e=arguments[1],f=arguments[2],h&&h.ie("",e,f)?(a&&h.Iv(a),h):j;default:b("Argument must be non-nil ")}};w.wr=0;w.Kn=1;w.xr=3;w.tw=w.Kn;w.fD=w.wr;w.gD=w.Kn;w.hD=w.xr;w.yr=0;w.ww=1;w.xw=2;w.vw=3;w.uw=w.yr;w.lD=w.yr;w.kD=w.ww;w.mD=w.xw;w.jD=w.vw;w.iD=w.uw;w.rw=0;w.pw=1;w.sw=2;w.qw=3;w.Gr=2;w.Qn=w.rw;w.Hr=w.sw;w.al=w.pw;w.bl=w.qw;
w.n=w.S.extend({Nl:m,bF:m,eF:m,gm:m,mh:m,mm:m,Gp:m,li:m,pf:0,Ap:0,sf:0,pg:0,Dj:0,El:0,L:1,ve:0,yt:0,Gf:j,he:j,pd:j,hh:j,we:j,Oj:j,xb:j,Ef:j,Dp:j,Ya:j,Jp:"",ic:0,nF:0,fp:j,D:function(){this.pd||(this.pd=w.Cb.create("00.0","Arial",24));this.pd.m(w.a(0,0));this.pd.X(w.a(0,0));this.Oj=this.we=this.Ya=j;this.Ap=this.pf=1/w.wz;this.Ef=[];this.pg=w.tw;this.Dp=j;this.Nl=m;this.ic=0;this.Jp="";this.hh=new w.Ri;this.mm=this.mh=m;this.Gf=this.he=w.Ha(w.canvas.width,w.canvas.height);this.sf=w.Qn;this.xb=j;this.Gp=
m;this.L=1;return i},SF:q(),gz:function(){var a=new w.Ri;(a=w.Rh.uq())?(this.gm?(this.ve=0,this.gm=m):(this.ve=a.Eh-this.hh.Eh+(a.kf-this.hh.kf)/1E6,this.ve=Math.max(0,this.ve)),w.bD&&0.2<this.ve&&(this.ve=1/60),this.hh=a):(w.Q("error in gettimeofday"),this.ve=0)},ju:function(a){var c=this.he,d=c.height-a.y,c=c.width-a.x,e=w.I();switch(this.sf){case w.Qn:e=w.a(a.x,d);break;case w.Hr:e=w.a(c,a.y);break;case w.al:e.x=a.y;e.y=a.x;break;case w.bl:e.x=d,e.y=c}return e},tz:function(a){var c=this.he,d=c.width-
a.x,e=c.height-a.y,f=w.I();switch(this.sf){case w.Qn:f=w.a(a.x,e);break;case w.Hr:f=w.a(d,a.y);break;case w.al:f=w.a(a.y,a.x);break;case w.bl:f=w.a(c.width-a.y,c.height-a.x)}return f},Lz:function(){this.gz();this.mh||w.Tc.jf().vC(this.ve);w.Ga.clearRect(0,0,w.canvas.width,-w.canvas.height);this.we&&this.KB();this.Ya&&this.Ya.dc();this.Oj&&this.Oj.dc();this.Nl&&this.jC();w.Jr&&this.kC();this.xb&&this.xb.LO()},EF:function(a){a&&(this.fp=this.fp?w.v.Br(this.fp,new w.v(a.origin.x,a.origin.y,a.size.width,
a.size.height)):new w.v(a.origin.x,a.origin.y,a.size.width,a.size.height))},fM:function(a){return!a||!this.dy?m:w.v.Qg(this.dy,a)},YG:function(a){if(a&&2==this.L)return i;if(!a&&1==this.L||!this.xb.hz())return m;this.Bv(a?2:1);w.Ia.Tq();w.Ir&&!this.pd&&(this.pd=w.Cb.create("00.0","Arial",24),this.pd.m(w.a(0,0)),this.pd.X(w.a(0,0)));this.Gp=2==this.L;return i},end:function(){this.mm=i},OH:u("L"),TH:u("sf"),XH:u("Gf"),YI:u("Oj"),ka:function(){var a=this.he;if(this.sf==w.al||this.sf==w.bl){var c=new w.Xb;
c.width=a.height;c.height=a.width;return c}return a},Ku:function(){var a=this.ka();a.width*=w.l();a.height*=w.l();return a},Lu:function(){return this.Gf.height/1.1566},pause:function(){this.mh||(this.Ap=this.pf,this.Dk(0.25),this.mh=i)},ZL:function(){w.b(this.Ya!=j,"running scene should not null");this.Ef.pop();var a=this.Ef.length;0==a?this.end():(this.li=i,this.we=this.Ef[a-1])},Sq:function(){w.gl.Sq();w.Ia.nb().vM()},ZA:function(){w.R.Ca().tv();this.Ya&&(this.Ya.Mc(),this.Ya.Ce());this.we=this.Ya=
j;this.Ef=[];this.hr();w.Tf.hv();w.Td.kv();w.Od.tc().iv();w.Tc.jv();w.Ia.Tq();w.nE!=w.VD&&w.LE.dM();this.xb=j},$A:function(a){w.b(a,"the scene should not null");this.li=m;this.Ef.push(a);this.we=a},Mf:function(a){w.b(a!=j,"the scene should not be null");var c=this.Ef.length;this.li=i;this.we=this.Ef[c-1]=a},wM:function(){w.R.Ca().tv();this.Ya&&(this.Ya.Mc(),this.Ya.Ce(),this.Ya.gM());this.we=this.Ya=j;this.Ef.kM();this.hr();w.gl.Sq();w.Tf.hv();w.Td.kv();w.Od.tc().iv();w.Tc.jv();w.Ia.Tq()},yM:function(a){w.JE(a);
this.he=this.xb.aA();this.Gf=w.Ha(this.he.width*this.L,this.he.height*this.L);this.Jk(this.pg)},xv:function(){this.mh&&(this.Dk(this.Ap),(this.hh=w.Rh.uq())||w.Q("cocos2d: Director: Error in gettimeofday"),this.mh=m,this.ve=0)},kB:function(a){w.b(a!=j,"running scene should not be null");w.b(this.Ya==j,"_runningScene should be null");this.$A(a);this.Uv()},KM:q(),Bv:function(a){a!=this.L&&(this.L=a,this.Gf=w.Ha(this.he.width*a,this.he.height*a),this.xb&&this.cw(),this.Jk(this.pg))},VM:q(),WM:function(a){a=
w.lf.Oi().Gk(a);if(this.sf%w.Gr!=a%w.Gr&&(this.sf=a,w.qa==w.ta&&(a=w.canvas.height,w.canvas.height=w.canvas.width,w.canvas.width=a,w.Ga.translate(0,w.canvas.height),w.QG&&(a=w.pr("#Cocos2dGameContainer")))))a.style.width=w.canvas.width+"px",a.style.height=w.canvas.height+"px"},DB:function(){w.b(this.xb,"opengl view should not be null");this.Jk(this.pg);w.Ir&&!this.pd&&(this.pd=w.Cb.create("00.0","Arial",24),this.pd.m(w.a(0,0)),this.pd.X(w.a(0,0)))},HN:s("gm"),KB:function(){var a=this.Ya?this.Ya instanceof
w.Db:m;this.we&&this.we instanceof w.Db||(this.Ya&&this.Ya.Mc(),this.li&&this.Ya&&this.Ya.Ce());this.Ya=this.we;this.we=j;!a&&this.Ya!=j&&(this.Ya.Ra(),this.Ya.Jg())},IN:s("Oj"),LN:function(a){w.b(a,"opengl view should not be null");this.xb!=a&&(delete this.xb,this.xb=a,this.he=this.xb.aA(),this.Gf=w.Ha(this.he.width*this.L,this.he.height*this.L),this.DB(),1!=this.L&&this.cw(),a=w.R.Ca(),this.xb.CO(a),a.$q(i))},Jk:function(a){var c=this.Gf;switch(a){case w.wr:this.xb&&this.xb.Rv(0,0,c.width,c.height);
break;case w.Kn:this.xb&&this.xb.Rv(0,0,c.width,c.height);break;case w.xr:this.Dp&&this.Dp.cP();break;default:w.Q("cocos2d: Director: unrecognized projecgtion")}this.pg=a},jC:function(){this.ic++;this.Dj+=this.ve;this.Dj>w.Mw&&(this.yt=this.ic/this.Dj,this.Dj=this.ic=0,this.Jp=""+this.yt.toFixed(1),this.pd.hd(this.Jp));this.pd.zb()},kC:function(){w.Jr&&(this.El+=this.ve,1<this.El&&(this.El=0,w.XD.HO().PG()))},cw:function(){this.xb.hz()?this.xb.Bv(this.L):w.Q("cocos2d: setContentScaleFactor:'is not supported on this device")},
XK:u("Gp"),$K:u("li"),KJ:u("Ya"),BH:u("pf"),RK:u("Nl"),vB:s("Nl"),bJ:u("xb"),UK:u("gm"),VK:u("mh"),Tz:u("ic"),wJ:u("pg")});w.n.p=function(){w.Bu&&(w.p.D(),w.Bu=m);return w.p};w.n.XM=function(){w.n.p();return i};w.Pw=w.n.extend({cn:m,Uv:function(){this.hh=w.Rh.uq();this.cn=m;w.lf.Oi().Dk(this.pf)},$u:function(){this.mm?(this.ZA(),this.mm=m):this.cn||this.Lz()},hr:function(){this.cn=i},Dk:function(a){this.pf=a;this.cn||(this.hr(),this.Uv())}});w.p=new w.Pw;w.Bu=i;w.wz=60;w=w=w||{};w.On=w.S.extend({XE:j,YE:j,ZE:j,Xo:j,Yo:j,Zo:j,pF:j,qF:j,rF:j,bb:j,P:function(){this.restore()},description:function(){return"<CCCamera | center =("+this.Xo+","+this.Yo+","+this.Zo+")>"},qn:s("bb"),UH:u("bb"),restore:function(){this.Xo=this.Yo=this.Zo=0;this.bb=m},pL:q(),BB:function(){this.bb=i},QM:function(a,c,d){this.Xo=a*w.l;this.Yo=c*w.l;this.Zo=d*w.l;this.bb=i},EO:function(){this.bb=i},mI:q(),HH:q(),tK:q(),OE:q()});w.On.Lu=function(){return w.Rr};w.Gh=function(a,c){a.splice(c,1)};w.Wb=function(a,c){for(var d=0;d<a.length;d++)a[d]==c&&a.splice(d,1)};w.SC=function(a,c){for(var d=0;d<c.length;d++)w.Wb(a,c[d])};w.RC=function(a,c){for(var d=0;d<a.length;d++)if(a[d]==c)return d;return-1};w.QC=function(a,c){a.push(c)};w.Pd=function(a,c,d){var e=a.slice(0,d),a=a.slice(d);e.push(c);return a=e.concat(a)};w.Tk=function(a,c){for(var d=0;d<a.length;d++)if(a[d]==c)return d;return-1};w.tr=function(a,c){return-1!=w.Tk(a,c)};
w.Ne=function(a,c){if(a==j)return j;for(var d=0;d<a.length;d++)if(a[d].target==c)return a[d];return j};w.fs=function(a,c,d){this.next=j;this.target=a;this.XA=c;this.paused=d;this.Fi=m};w.bs=function(a,c,d){this.list=a;this.cf=c;this.target=d};w.cx=function(a,c){this.zd=j;this.target=a;this.Qi=0;this.ok=this.nk=j;this.paused=c};
w.wl=w.S.extend({Zl:0,$c:"",C:j,cb:0,P:q(),vI:u("Zl"),fd:function(a,c,d){try{return this.C=a,this.$c=c,this.cb=-1,this.Zl=d||0,i}catch(e){return m}},update:function(a){this.cb=-1==this.cb?0:this.cb+a;if(this.cb>=this.Zl&&this.$c){if("string"==typeof this.$c)this.C[this.$c](this.cb);else"function"==typeof this.$c&&this.$c.call(this.C,this.cb);this.cb=0}}});
w.wl.SO=function(a,c,d){2>arguments&&b(Error("timerWithTarget'argument can't is null"));var e=new w.wl;2==arguments.length?e.fd(a,c,0):e.fd(a,c,d);return e};w.Wj=j;
w.Tc=w.S.extend({dk:0,Dg:[],Cg:[],Eg:[],uf:[],Hd:[],va:j,Se:m,ym:m,P:q(),Fp:function(a){a.wl=j;a.target=j;w.Wb(this.Hd,a)},by:function(a,c){for(var d=0;d<a.length;d++)if(a[d].target==c)return a[d];return j},nm:function(a){if(a=this.by(this.uf,a.target))w.Wb(a.list,a.cf),a.cf=j,a.target=j,w.Wb(this.uf,a)},iy:function(){this.dk=1;this.Dg=[];this.Cg=[];this.Eg=[];this.uf=[];this.Hd=[];this.va=j;this.ym=this.Se=m;return i},Nt:function(a,c,d,e){e=new w.fs(c,d,e);if(a){for(var f=m,h=0;h<a.length;h++)if(d<
a[h].XA){a=w.Pd(a,e,h);f=i;break}f||a.push(e)}else a=[],a.push(e);this.uf.push(new w.bs(a,e,c))},Tx:function(a,c,d){d=new w.fs(c,0,d);a.push(d);this.uf.push(new w.bs(a,d,c))},AO:s("dk"),oK:u("dk"),vC:function(a){this.ym=i;1!=this.dk&&(a*=this.dk);for(var c,d=0,d=0;d<this.Dg.length;d++)c=this.Dg[d],!c.paused&&!c.Fi&&c.target.update(a);for(d=0;d<this.Cg.length;d++)c=this.Cg[d],!c.paused&&!c.Fi&&c.target.update(a);for(d=0;d<this.Eg.length;d++)c=this.Eg[d],!c.paused&&!c.Fi&&c.target.update(a);for(var e,
d=0;d<this.Hd.length;d++){e=this.va=this.Hd[d];this.Se=m;if(!this.va.paused)for(e.Qi=0;e.Qi<e.zd.length;e.Qi++)e.nk=e.zd[e.Qi],e.ok=m,e.nk.update(a),e.nk=j;this.Se&&0==this.va.zd.length&&this.Fp(this.va)}for(d=0;d<this.Dg.length;d++)this.Dg[d].Fi&&this.nm(c);for(d=0;d<this.Cg.length;d++)this.Cg[d].Fi&&this.nm(c);for(d=0;d<this.Eg.length;d++)this.Eg[d].Fi&&this.nm(c);this.ym=m;this.va=j},nB:function(a,c,d,e){w.b(a,"scheduler.scheduleSelector()");w.b(c,"");var f=w.Ne(this.Hd,c);f?w.b(f.paused==e,"Sheduler.scheduleSelector()"):
(f=new w.cx(c,e),this.Hd.push(f));if(f.zd==j)f.zd=[];else for(e=0;e<f.zd.length;e++){var h=f.zd[e];if(a==h.$c){w.Q("CCSheduler#scheduleSelector. Selector already scheduled.");h.Zl=d;return}}h=new w.wl;h.fd(c,a,d);f.zd.push(h)},yv:function(a,c,d){var e=w.Ne(this.uf,a);e?(1<=w.$k&&w.b(e.cf.av,""),e.cf.av=m):0==c?this.Tx(this.Cg,a,d):0>c?this.Nt(this.Dg,a,c,d):this.Nt(this.Eg,a,c,d)},BC:function(a,c){if(!(c==j||a==j)){var d=w.Ne(this.Hd,c);if(d!=j)for(var e=0;e<d.zd.length;e++){var f=d.zd[e];if(a==f.$c){f==
d.nk&&!d.ok&&(d.ok=i);w.Gh(d.zd,e);d.Qi>=e&&d.Qi--;0==d.zd.length&&(this.va==d?this.Se=i:this.Fp(d));break}}}},Ti:function(a){a!=j&&(a=w.Ne(this.uf,a),a!=j&&(this.ym?a.cf.av=i:this.nm(a.cf)))},bw:function(a){if(a!=j){var c=w.Ne(this.Hd,a);c&&(!c.ok&&w.tr(c.zd,c.nk)&&(c.ok=i),c.zd.length=0,this.va==c?this.Se=i:this.Fp(c));this.Ti(a)}},aw:function(){var a;for(a=0;a<this.Hd.length;a++)this.bw(this.Hd[a].target);for(a=0;a<this.Cg.length;a++)this.Ti(this.Cg[a].target);for(a=0;a<this.Dg.length;a++)this.Ti(this.Dg[a].target);
for(a=0;a<this.Eg.length;a++)this.Ti(this.Eg[a].target)},Mq:function(a){w.b(a!=j,"Scheduler.pauseTarget():entry must be non nil");var c=w.Ne(this.Hd,a);c&&(c.paused=i);if(a=w.Ne(this.uf,a))w.b(a.cf!=j,"Scheduler.pauseTarget():entry must be non nil"),a.cf.paused=i},Wq:function(a){w.b(a!=j,"");var c=w.Ne(this.Hd,a);c&&(c.paused=m);if(a=w.Ne(this.uf,a))w.b(a.cf!=j,"Scheduler.resumeTarget():entry must be non nil"),a.cf.paused=m},cL:function(a){w.b(a!=j,"Scheduler.isTargetPaused():target must be non nil");
return(a=w.Ne(this.Hd,a))?a.paused:m}});w.Tc.jf=function(){w.Wj||(w.Wj=new w.Tc,w.Wj.iy());return w.Wj};w.Tc.jv=function(){w.Wj=j};w.Rc=w.S.extend({gf:0,Dq:0,jr:0,Xu:function(){var a=w.Rc.Nc();a.Dq==a.gf?a.onload?a.jr=setTimeout(a.onload,16):w.b(0,"cocos2d:no load callback defined"):(a.Jq?a.jr=setTimeout(a.Jq,16):w.hl.Nk().zb(),a.jr=setTimeout(a.Xu,16))},Iq:function(a){w.Q("cocos2d:Failed loading resource: "+a)},zk:function(){this.Dq++},Zz:function(){var a=this.Dq/this.gf;return a=parseInt(100*a)},onload:g,onerror:g,Jq:g,Qq:function(a){for(var c=w.Ia.nb(),d=w.Qd.Oc(),e=w.dg.Lg(),f=0;f<a.length;f++)switch(a[f].type){case "image":c.dd(a[f].src);
this.gf+=1;break;case "bgm":d.UA(a[f].src);this.gf+=1;break;case "effect":d.VA(a[f].src);this.gf+=1;break;case "plist":case "tmx":case "fnt":e.WA(a[f].src);this.gf+=1;break;case "tga":break;default:b("cocos2d:unknow type : "+a[f].type)}this.Xu()}});w.Rc.Nc=function(){w.Nc||(w.Nc=new w.Rc);return w.Nc};
w.hl=w.S.extend({fi:new Image,P:function(){this.fi.src="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABBAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuZGlkOjU1RUQ3MTcwQjQ4REUxMTE4RkUxODUzMUE4ODZGQ0I4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjU1RUQ3MTcwQjQ4REUxMTE4RkUxODUzMUE4ODZGQ0I4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQABQQEBAQEBQQEBQcFBAUHCQYFBQYJ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";this.fi.width=
160;this.fi.height=200},zb:function(){var a=(w.canvas.width-this.fi.width)/2,c=(w.canvas.height-this.fi.height)/2;w.Ga.clearRect(0,-w.canvas.height,w.canvas.width,w.canvas.height);w.Ga.fillStyle="#202020";w.Ga.fillRect(0,-w.canvas.height,w.canvas.width,w.canvas.height);w.Fe.drawImage(this.fi,new w.Sd(a,c));w.Ga.fillStyle="#b2b4b3";w.Ga.font="Bold 12px Verdana";w.Ga.textAlign="left";w.Fe.fillText("Loading "+w.Rc.Nc().Zz()+"%",a+30,c-15)}});w.hl.Nk=function(){w.Nk||(w.Nk=new w.hl);return w.Nk};w.Qw=w.S.extend({Aa:j,aO:s("Aa"),FJ:u("Aa"),P:s("Aa"),Iz:function(){w.log("DrawingPrimitive.drawPoint() not implement!")},Jz:function(){w.log("DrawingPrimitive.drawPoints() not implement!")},Hz:function(){w.log("DrawingPrimitive.drawLine() not implement!")},Ee:function(){w.log("DrawingPrimitive.drawPoly() not implement!")},Ez:function(a,c,d,e,f){if(!("undefined"==e||0==e)){var h=1;f&&++h;for(var l=2*Math.PI/e,h=[],k=0;k<=e;k++){var n=k*l,o=c*Math.sin(n+d)+a.y,n=new w.k((c*Math.cos(n+d)+a.x)*w.l(),
o*w.l());h.push(n)}f&&(a=new w.k(a.x*w.l(),a.y*w.l()),h.push(a));this.Ee(h,e+2,i,m)}},Kz:function(){w.log("DrawingPrimitive.drawQuadBezier() not implement!")},Gz:function(){w.log("DrawingPrimitive.drawCubicBezier() not implement!")}});
w.Rw=w.Qw.extend({Iz:function(a,c){c||(c=1);var d=new w.k(a.x*w.l(),a.y*w.l());this.Aa.beginPath();this.Aa.arc(d.x,-d.y,c*w.l(),0,2*Math.PI,m);this.Aa.closePath();this.Aa.fill()},Jz:function(a,c,d){if(a!=j){d||(d=1);this.Aa.beginPath();for(c=0;c<a.length;c++)this.Aa.arc(a[c].x*w.l(),-a[c].y*w.l(),d*w.l(),0,2*Math.PI,m);this.Aa.closePath();this.Aa.fill()}},Hz:function(a,c){this.Aa.beginPath();this.Aa.moveTo(a.x*w.l(),-a.y*w.l());this.Aa.lineTo(c.x*w.l(),-c.y*w.l());this.Aa.closePath();this.Aa.stroke()},
Ee:function(a,c,d,e){"undefined"==e&&(e=m);if(a!=j){3>a.length&&b(Error("Polygon's point must greater than 2"));c=a[0];this.Aa.beginPath();this.Aa.moveTo(c.x*w.l(),-c.y*w.l());for(c=1;c<a.length;c++)this.Aa.lineTo(a[c].x*w.l(),-a[c].y*w.l());d&&this.Aa.closePath();e?this.Aa.fill():this.Aa.stroke()}},Ez:function(a,c,d,e,f){this.Aa.beginPath();this.Aa.arc(0|a.x,0|-a.y,c,-d,-(d-2*Math.PI),m);f&&this.Aa.lineTo(0|a.x,0|-a.y);this.Aa.stroke()},Kz:function(a,c,d,e){for(var f=[],h=0,l=0;l<e;l++){var k=Math.pow(1-
h,2)*a.y+2*(1-h)*h*c.y+h*h*d.y;f.push(new w.k((Math.pow(1-h,2)*a.x+2*(1-h)*h*c.x+h*h*d.x)*w.l(),k*w.l()));h+=1/e}f.push(new w.k(d.x*w.l(),d.y*w.l()));this.Ee(f,e+1,m,m)},Gz:function(a,c,d,e,f){for(var h=[],l=0,k=0;k<f;k++){var n=Math.pow(1-l,3)*a.y+3*Math.pow(1-l,2)*l*c.y+3*(1-l)*l*l*d.y+l*l*l*e.y;h.push(new w.k((Math.pow(1-l,3)*a.x+3*Math.pow(1-l,2)*l*c.x+3*(1-l)*l*l*d.x+l*l*l*e.x)*w.l(),n*w.l()));l+=1/f}h.push(new w.k(e.x*w.l(),e.y*w.l()));this.Ee(h,f+1,m,m)},drawImage:function(a,c,d,e,f){switch(arguments.length){case 2:this.Aa.drawImage(a,
c.x,-(c.y+a.height));break;case 3:this.Aa.drawImage(a,c.x,-(c.y+d.height),d.width,d.height);break;case 5:this.Aa.drawImage(a,c.x,c.y,d.width,d.height,e.x,-(e.y+f.height),f.width,f.height);break;default:b(Error("Argument must be non-nil"))}},Mz:function(a,c,d,e){a=a||this.Aa;a.save();a.translate(c.x,-c.y);a.rotate(w.Bb(45));e instanceof w.nd&&(e=new w.ua(0|255*e.f,0|255*e.e,0|255*e.d));c="rgba("+e.f+","+e.e+","+e.d;a.fillStyle=c+",1)";e=d/10;a.beginPath();a.moveTo(-d,0);a.lineTo(0,-e);a.lineTo(d,0);
a.lineTo(0,e);a.lineTo(-d,0);a.closePath();a.fill();a.beginPath();a.moveTo(0,-d);a.lineTo(-e,0);a.lineTo(0,d);a.lineTo(e,0);a.lineTo(0,-d);a.closePath();a.fill();e=a.createRadialGradient(0,0,e,0,0,d);e.addColorStop(0,c+", 1)");e.addColorStop(0.3,c+", 0.8)");e.addColorStop(1,c+", 0.0)");a.fillStyle=e;a.beginPath();a.arc(0,0,d,0,2*Math.PI,m);a.closePath();a.fill();a.restore()},Fz:function(a,c,d,e){a=a||this.Aa;e instanceof w.nd&&(e=new w.ua(0|255*e.f,0|255*e.e,0|255*e.d));var e="rgba("+e.f+","+e.e+
","+e.d,f=a.createRadialGradient(c.x,-c.y,d/10,c.x,-c.y,d);f.addColorStop(0,e+", 1)");f.addColorStop(0.3,e+", 0.8)");f.addColorStop(0.6,e+", 0.4)");f.addColorStop(1,e+", 0.0)");a.fillStyle=f;a.beginPath();a.arc(c.x,-c.y,d,0,2*Math.PI,m);a.closePath();a.fill()},fillText:function(a,c,d){this.Aa.fillText(a,c,-d)}});w.PD=0;w.QD=1;w.MD=2;w.ND=3;w.ta=0;w.Cj=1;w.Fe=j;w.Ga=j;w.canvas=j;w.oq=j;w.qa=w.ta;w.Kq=new w.ea(0,0);window.mn=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;window.console||(window.console={},window.console.log=q(),window.console.assert=q());
w.cC=function(){var a;switch(arguments.length){case 0:a=document.createElement("Canvas");a.setAttribute("id","gameCanvas");a.setAttribute("width",480);a.setAttribute("height",320);document.body.appendChild(a);w.canvas=a;w.Ga=w.canvas.getContext("2d");w.oq=document.body;w.qa=w.ta;break;case 1:a=arguments[0];var c=j,c=typeof a=="string"?document.getElementById(a):arguments[0];if(c instanceof HTMLCanvasElement){w.canvas=c;w.oq=c.parentNode;w.Ga=w.canvas.getContext("2d");w.qa=w.ta}else if(c instanceof
HTMLDivElement){a=document.createElement("Canvas");a.setAttribute("id","gameCanvas");a.setAttribute("width",c.width);a.setAttribute("height",c.height);c.appendChild(a);w.canvas=a;w.Ga=w.canvas.getContext("2d");w.oq=c;w.qa=w.ta}}if(w.qa==w.ta){w.Ga.translate(0,w.canvas.height);w.Fe=new w.Rw(w.Ga)}w.Kq=new w.ea(w.canvas.width,w.canvas.height);console.log(w.Kr)};
w.dC=function(){var a=w.canvas;a.style.zIndex=0;var c=w.kw();c.id="Cocos2dGameContainer";c.style.position="relative";c.style.display="inline-block";a.parentNode.insertBefore(c,a);c.appendChild(a)};
w.lf=w.S.extend({P:function(){this.pf=0;w.b(!w.pm,"CCApplication ctor");w.pm=this},Dk:s("pf"),Gk:p(),oC:function(a){a&&w.T(0,0,0,0)},iB:function(){if(!this.Zy())return 0;if(window.mn){var a=function(){w.n.p().$u();window.mn(a)};w.Q(window.mn);window.mn(a)}else{a=function(){w.n.p().$u()};setInterval(a,this.pf*1E3)}},pf:j});w.lf.Oi=function(){w.b(w.pm,"sharedApplication");return w.pm};
w.lf.PH=function(){var a=w.hx,c=navigator.language,c=c.toLowerCase();switch(c){case "zh-cn":a=w.gx;break;case "fr":a=w.ix;break;case "it":a=w.kx;break;case "de":a=w.jx;break;case "es":a=w.mx;break;case "ru":a=w.lx}return a};w.pm=j;w.dg=w.S.extend({Bd:j,jn:j,or:[],fv:[],parse:function(a){a=this.rq(a);window.DOMParser?(this.jn=new DOMParser,this.Bd=this.jn.parseFromString(a,"text/xml")):(this.Bd=new ActiveXObject("Microsoft.XMLDOM"),this.Bd.async="false",this.Bd.loadXML(a));this.Bd==j&&w.Q("xml "+this.Bd+" not found!");a=this.Bd.documentElement;"plist"!=a.tagName&&b("Not a plist file");for(var c=j,d=0,e=a.childNodes.length;d<e&&!(c=a.childNodes[d],1==c.nodeType);d++);return this.fv=this.Bp(c)},wC:function(a){a=this.rq(a);window.DOMParser?
(this.jn=new DOMParser,this.Bd=this.jn.parseFromString(a,"text/xml")):(this.Bd=new ActiveXObject("Microsoft.XMLDOM"),this.Bd.async="false",this.Bd.loadXML(a));this.Bd==j&&w.Q("xml "+this.Bd+" not found!");return this.Bd},Bp:function(a){var c=j;switch(a.tagName){case "dict":c=this.ty(a);break;case "array":c=this.py(a);break;case "string":c=a.firstChild.nodeValue;break;case "false":c=m;break;case "true":c=i;break;case "real":c=parseFloat(a.firstChild.nodeValue);break;case "integer":c=parseInt(a.firstChild.nodeValue,
10)}return c},py: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.Bp(f))}return c},ty:function(a){for(var c={},d=j,e=0,f=a.childNodes.length;e<f;e++){var h=a.childNodes[e];1==h.nodeType&&("key"==h.tagName?d=h.firstChild.nodeValue:c[d]=this.Bp(h))}return c},WA:function(a){if(window.XMLHttpRequest){var c=new XMLHttpRequest;c.overrideMimeType&&c.overrideMimeType("text/xml")}else c=new ActiveXObject("Microsoft.XMLHTTP");c!=j?(c.open("GET",a,
m),c.send(j),this.or[a]=c.responseText,w.Rc.Nc().zk()):alert("Your browser does not support XMLHTTP.")},getName:function(a){return a.substring(a.lastIndexOf("/",a.length)+1,a.lastIndexOf(".",a.length))},lI:function(a){return a.substring(a.lastIndexOf(".",a.length)+1,a.length)},rq:function(a){return this.or!=j?this.or[a]:j}});w.dg.Lg=function(){w.Lg||(w.Lg=new w.dg);return w.Lg};w.Hn=w.S.extend({Az:function(){new w.nw;w.lf.Oi().iB();return i},QF:function(){w.n.p().pause()},PF:function(){w.n.p().xv()},au:function(){w.lf.Oi().au()},bu:function(){w.lf.Oi().bu()},RF:q()});w.Hn.fC=function(){w.un==j&&(w.un=new w.Hn);w.b(w.un,"shareAppController");return w.un};w.un=j;w.Aw=32;w.ac=w.Aw;w.hc="Marker Felt";w.xt=m;w.Er=3233828865;w.Al=3233828866;w.ox=8801;w.ux=8802;w.Nw=8803;
w.pj=w.hb.extend({ei:j,$c:j,bm:m,GI:u("bm"),Te:m,BI:u("Te"),Li:s("Te"),fd:function(a,c){this.X(w.a(0.5,0.5));this.ei=a;this.$c=c;this.Te=i;this.bm=m;return i},rect:function(){return w.T(this.Ea.x-this.za.width*this.Qb.x,this.Ea.y-this.za.height*this.Qb.y,this.za.width,this.za.height)},selected:function(){this.bm=i},Mg:function(){this.bm=m},YB:function(a,c){this.ei=a;this.$c=c},Qp:function(){if(this.Te)if(this.ei&&"string"==typeof this.$c)this.ei[this.$c](this);else this.ei&&"function"==typeof this.$c&&
this.$c.call(this.ei,this)}});w.pj.create=function(a,c){var d=new w.pj;d.fd(a,c);return d};
w.Xf=w.pj.extend({to:i,Ml:new w.ua,VH:u("Ml"),YM:s("Ml"),Zd:j,JI:u("Zd"),Gv:function(a){a&&(this.r(a),a.X(w.a(0,0)),this.vb(a.ja()));this.Zd&&this.removeChild(this.Zd,i);this.Zd=a},hF:0,Li:function(a){this.Te!=a&&(a?this.Zd.Sa(this.tt):(this.tt=this.Zd.xd(),this.Zd.Sa(this.Ml)));this._super(a)},Ta:function(a){this.Zd.Ta(a)},Ge:function(){return this.Zd.Ge()},Sa:function(a){this.Zd.Sa(a)},xd:function(){return this.Zd.xd},hf:q(),Ci:q(),bn:function(a,c,d){this.fd(c,d);this.im=1;this.tt=w.Sh();this.Ml=
w.ti(126,126,126);this.Gv(a);return i},Qp:function(){this.Te&&(this.Vv(),this.Ob(this.im),this._super())},selected:function(){if(this.Te){this._super();var a=this.pq(w.Al);a?this.pC(a):this.im=this.$z();a=w.fc.create(0.1,1.2*this.im);a.Mi(w.Al);this.G(a)}},Mg:function(){if(this.Te){this._super();this.qC(w.Al);var a=w.fc.create(0.1,this.im);a.Mi(w.Al);this.G(a)}}});w.Xf.create=function(a,c,d){var e=new w.Xf;3==arguments.length?e.bn(a,c,d):e.bn(a);return e};
w.js=w.Xf.extend({wq:function(a,c,d,e,f,h,l){w.b(a!=j&&0!=a.length,"value length must be greater than 0");var k=new w.io;k.ie(a,c,d,e,f);this.bn(k,h,l);return i}});w.js.create=function(a,c,d,e,f,h,l){var k=new w.js;k.wq(a,c,d,e,f,h,l);return k};
w.Va=w.Xf.extend({wq:function(a,c,d){w.b(a!=j&&0!=a.length,"Value length must be greater than 0");this.hc=w.hc;this.ac=w.ac;this.bn(w.Cb.create(a,this.hc,this.ac),c,d);return i},kN:function(a){this.ac=a;this.Ot()},tH:u("ac"),jN:function(a){this.hc=a;this.Ot()},sH:u("hc"),Ot:function(){this.Gv(w.Cb.create(this.Zd.Wm(),this.hc,this.ac))},ac:0,hc:""});w.Va.Ki=function(a){w.ac=a};w.Va.fontSize=function(){return w.ac};w.Va.Ji=function(){w.xt&&(w.hc="");w.hc="Arial";w.xt=i};w.Va.rH=function(){return w.hc};
w.Va.create=function(a,c,d){var e=new w.Va;e.wq(a,c,d);return e};
w.of=w.pj.extend({to:i,Yc:j,XI:u("Yc"),LB:function(a){a&&(this.r(a,0,w.ox),a.X(w.a(0,0)),a.ha(i));this.Yc&&this.removeChild(this.Yc,i);this.Yc=a},sd:j,NJ:u("sd"),RB:function(a){a&&(this.r(a,0,w.ux),a.X(w.a(0,0)),a.ha(m));this.sd&&this.removeChild(this.sd,i);this.sd=a},xc:j,WH:u("xc"),uB:function(a){a&&(this.r(a,0,w.Nw),a.X(w.a(0,0)),a.ha(m));this.xc&&this.removeChild(this.xc,i);this.xc=a},Nu:function(a,c,d,e,f){w.b(a!=j,"");this.fd(e,f);this.LB(a);this.RB(c);this.uB(d);this.vb(this.Yc.ja());return i},
Sa:function(a){this.Yc.Sa(a);this.sd&&this.sd.Sa(a);this.xc&&this.xc.Sa(a)},xd:function(){return this.Yc.xd()},Ta:function(a){this.Yc.Ta(a);this.sd&&this.sd.Ta(a);this.xc&&this.xc.Ta(a)},Ge:function(){return this.Yc.Ge()},selected:function(){this._super();this.xc&&this.xc.ha(m);this.sd?(this.Yc.ha(m),this.sd.ha(i)):this.Yc.ha(i)},Mg:function(){this._super();this.Yc.ha(i);this.sd&&this.sd.ha(m);this.xc&&this.xc.ha(m)},Li:function(a){this._super(a);this.sd&&this.sd.ha(m);a?(this.Yc.ha(i),this.xc&&this.xc.ha(m)):
this.xc?(this.xc.ha(i),this.Yc.ha(m)):this.Yc.ha(i)}});w.of.create=function(a,c,d,e,f){var h=new w.of;if(f)h.Nu(a,c,d,e,f);else return e?w.of.create(a,c,j,d,e):w.of.create(a,c,d,j,j);return h};w.jo=w.of.extend({jA:function(a,c,d,e,f){var a=w.O.create(a),h=j,l=j;c&&(h=w.O.create(c));d&&(l=w.O.create(d));return this.Nu(a,h,l,e,f)}});w.jo.create=function(a,c,d,e,f){if(4==arguments.length)return w.jo.create(a,c,j,d,e);var h=new w.jo;return h.jA(a,c,d,e,f)?h:j};
w.il=w.pj.extend({to:i,Z:0,Ge:u("Z"),Ta:function(a){this.Z=a;if(this.jb&&0<this.jb.length)for(var c=0;c<this.jb.length;c++)this.jb[c].Ta(a)},H:new w.ua,xd:u("H"),Sa:function(a){this.H=a;if(this.jb&&0<this.jb.length)for(var c=0;c<this.jb.length;c++)this.jb[c].Sa(a)},Ye:0,OJ:u("Ye"),er:function(a){if(a!=this.Ye){this.Ye=a;this.ln(w.Er,m);a=this.jb[this.Ye];this.r(a,0,w.Er);var c=a.ja();this.vb(c);a.m(w.a(c.width/2,c.height/2))}},jb:[],eK:u("jb"),rO:s("jb"),fd:function(a){this._super(a[0],a[1]);if(2==
a.length)return m;this.jb=[];for(var c=2;c<a.length;c++)a[c]&&this.jb.push(a[c]);this.Ye=4294967295;this.er(0);return i},sA:function(a){this.fd(j,j);this.jb=[];this.jb.push(a);this.Ye=4294967295;this.er(0);return i},IF:function(a){this.jb.push(a)},Qp:function(){this.Te&&this.er((this.Ye+1)%this.jb.length);this._super()},selected:function(){this._super();this.jb[this.Ye].selected()},Mg:function(){this._super();this.jb[this.Ye].Mg()},Li:function(a){this._super(a);if(this.jb&&0<this.jb.length)for(var c=
0;c<this.jb.length;c++)this.jb[c].Li(a)},IM:function(){return this.jb[this.Ye]},hf:q(),Ci:q()});w.il.create=function(){var a=new w.il;1==arguments.length?a.sA(arguments):a.fd(arguments);return a};w.Zi=0;w.Yi=1;w.Bw=-128;w.Fr=5;
w.Wf=w.oe.extend({H:new w.ua,xd:u("H"),Sa:function(a){this.H=a;if(this.c&&0<this.c.length)for(a=0;a<this.c.length;a++)this.c[a].Sa(this.H)},Z:0,Ge:u("Z"),Ta:function(a){this.Z=a;if(this.c&&0<this.c.length)for(a=0;a<this.c.length;a++)this.c[a].Ta(this.Z)},lc:j,D:function(){if(this._super()){this.Fv(i);var a=w.n.p().ka();this.eh=m;this.X(w.a(0.5,0.5));this.vb(a);var c=new w.v;w.lf.Oi().oC(c);var d=w.n.p().sf;a.height=d==w.al||d==w.bl?a.height-c.size.width:a.height-c.size.height;this.m(w.a(a.width/2,
a.height/2));this.lc=j;this.Ze=w.Zi;return i}return m},tA:function(a){if(this.D()){if(0<a.length)for(var c=0;c<a.length;c++)a[c]&&this.r(a[c],c);return i}return m},r:function(a,c,d){d=d||a.Kb;this._super(a,c,d)},NF:function(){this.Tp(w.Fr)},Tp:function(a){var c=-a;if(this.c&&0<this.c.length)for(var d=0;d<this.c.length;d++)c+=this.c[d].ja().height*this.c[d].Ec+a;c/=2;if(this.c&&0<this.c.length)for(d=0;d<this.c.length;d++)this.c[d].m(w.a(0,c-this.c[d].ja().height*this.c[d].Ec/2)),c-=this.c[d].ja().height*
this.c[d].Ec+a},LF:function(){this.Wy(w.Fr)},Wy:function(a){var c=-a;if(this.c&&0<this.c.length)for(var d=0;d<this.c.length;d++)c+=this.c[d].ja().width*this.c[d].kc+a;c=-c/2;if(this.c&&0<this.c.length)for(d=0;d<this.c.length;d++)this.c[d].m(w.a(c+this.c[d].ja().width*this.c[d].kc/2,0)),c+=this.c[d].ja().width*this.c[d].kc+a},Xy:function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);var d=-5,e=0,f=0,h=0,l;if(this.c&&0<this.c.length)for(c=0;c<this.c.length;c++){w.b(e<a.length,"");l=
a[e];w.b(l,"");var k=this.c[c].ja().height,f=f>=k||isNaN(k)?f:k;++h;h>=l&&(d+=f+5,f=h=0,++e)}w.b(!h,"");var n=w.n.p().ka(),o=l=f=e=0,t=0,d=d/2;if(this.c&&0<this.c.length)for(c=0;c<this.c.length;c++){var r=this.c[c];0==l&&(l=a[e],t=o=n.width/(1+l));k=r.ja().height;f=f>=k||isNaN(k)?f:k;r.m(w.a(t-n.width/2,d-r.ja().height/2));t+=o;++h;h>=l&&(d-=f+5,f=l=h=0,++e)}},MF:function(){for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);var d=[],e=[],f=-10,h=-5,l=0,k=0,n=0,o;if(this.c&&0<this.c.length)for(c=
0;c<this.c.length;c++){var t=this.c[c];w.b(l<a.size(),"");o=a[l];w.b(o,"");var r=t.ja().width,k=k>=r||isNaN(r)?k:r,h=h+(t.ja().height+5);++n;n>=o&&(d.push(k),e.push(h),f+=k+10,k=n=0,h=-5,++l)}w.b(!n,"");h=w.n.p().ka();o=k=l=0;var f=-f/2,y=0;if(this.c&&0<this.c.length)for(c=0;c<this.c.length;c++)if(t=this.c[c],0==o&&(o=a[l],y=e[l]),r=t.ja().width,k=k>=r||isNaN(r)?k:r,t.m(w.a(f+d[l]/2,y-h.height/2)),y-=t.ja().height+10,++n,n>=o)f+=k+5,k=o=n=0,++l},Uq:function(){w.R.Ca().Uy(this,w.Bw,i)},Gm:function(a){if(this.Ze!=
w.Zi||!this.Yd)return m;for(var c=this.bc;c!=j;c=c.getParent())if(!c.Yd)return m;return(this.lc=this.Jt(a))?(this.Ze=w.Yi,this.lc.selected(),i):m},Im:function(){w.b(this.Ze==w.Yi,"[Menu ccTouchEnded] -- invalid state");this.lc&&(this.lc.Mg(),this.lc.Qp());this.Ze=w.Zi},Hm:function(){w.b(this.Ze==w.Yi,"[Menu ccTouchCancelled] -- invalid state");this.lc&&this.lc.Mg();this.Ze=w.Zi},Jm:function(a){w.b(this.Ze==w.Yi,"[Menu ccTouchMoved] -- invalid state");a=this.Jt(a);a!=this.lc&&(this.lc&&this.lc.Mg(),
(this.lc=a)&&this.lc.selected())},Mc:function(){this.Ze==w.Yi&&(this.lc.Mg(),this.Ze=w.Zi,this.lc=j);this._super()},hf:q(),Ci:q(),Jt:function(a){a=a.fn(a.view());if(this.c&&0<this.c.length)for(var c=0;c<this.c.length;c++)if(this.c[c].Yd&&this.c[c].Te){var d=this.c[c].kq(a),e=this.c[c].rect();e.origin=w.I();if(w.v.Fw(e,d))return this.c[c]}return j},Ze:-1});w.Wf.create=function(){var a=new w.Wf;a.tA(arguments);return a};w.ql=0;w.ol=1;w.pl=2;
w.rl=w.hb.extend({Ve:w.Xb(),Ub:w.Xb(),eb:j,ae:j,zp:j,Dl:j,yg:[],Xz:u("Ve"),Hv:s("Ve"),gA:u("Ub"),Pv:s("Ub"),SI:u("zp"),CN:s("zp"),Yz:u("ae"),ar:s("ae"),Vm:u("eb"),Kk:s("eb"),Aq:function(a){w.b(a!=j&&0<a.length,"TMXTiledMap: tmx file should not be nil");this.vb(w.Xb());a=w.Fo.create(a);if(!a)return m;w.b(0!=a.mi.length,"TMXTiledMap: Map not found. Please check the filename.");this.Ve=a.Ve;this.Ub=a.Ub;this.zp=a.Kd;this.ar(a.ae);this.Kk(a.eb);this.yg=a.yg;var c=0,d=a.Tb;if(d){this.Dl={};for(var e=j,
f=0,h=d.length;f<h;f++)if((e=d[f])&&e.visible){e=this.yy(e,a);this.r(e,c,c);this.Dl[e.Wz()]=e;var e=e.ja(),l=this.ja();l.width=Math.max(l.width,e.width);l.height=Math.max(l.height,e.height);this.vb(l);c++}}return i},mL:function(a){return this.Dl.hasOwnProperty(a)?this.Dl[a]:j},HL:function(a){if(this.ae)for(var c=0;c<this.ae.length;c++){var d=this.ae[c];if(d&&d.Uz()==a)return d}return j},Rq:function(a){return this.eb[a.toString()]},bM:function(a){return this.yg[a]},yy:function(a,c){var d=this.Hy(a,
c),d=w.Eo.create(d,a,c);a.SA=m;d.eC();return d},Hy:function(a,c){var d=a.sa,e=c.mi;if(e)for(var f=j,h=e.length-1;0<=h;h--)if(f=e[h])for(var l=0;l<d.height;l++)for(var k=0;k<d.width;k++){var n=a.yb[(k+d.width*l).toString()];if(0!==n&&n>=f.vh)return f}w.Q("cocos2d: Warning: TMX Layer "+a.name+" has no tiles");return j}});w.rl.create=function(a){var c=new w.rl;return c.Aq(a)?c:j};w.Ks=1;w.wE=2;w.xE=4;w.yE=8;w.Ns=0;w.Ms=1;w.Ls=2;w.Ps=3;w.Os=4;w.Qs=5;w.yx=w.S.extend({eb:[],name:"",sa:j,yb:[],visible:j,Z:j,SA:i,hi:1E5,gi:0,bv:w.I(),Vm:u("eb"),Kk:s("eb")});
w.Ax=w.S.extend({name:j,vh:0,Ub:w.Xb(),Ok:0,margin:0,Tv:j,Mu:w.Xb(),Bk:function(a){var c=w.cg();c.size=this.Ub;var a=a-parseInt(this.vh),d=parseInt((this.Mu.width-2*this.margin+this.Ok)/(this.Ub.width+this.Ok));c.origin.x=parseInt(a%d*(this.Ub.width+this.Ok)+this.margin);c.origin.y=parseInt(parseInt(a/d)*(this.Ub.height+this.Ok)+this.margin);return c}});
w.Fo=w.dg.extend({Kd:j,Ve:w.Xb(),Ub:w.Xb(),Tb:j,mi:j,ae:j,yf:j,km:j,em:0,Ip:m,eb:j,Cl:j,ap:j,yg:[],cJ:u("Kd"),Gk:s("Kd"),Xz:u("Ve"),Hv:s("Ve"),gA:u("Ub"),Pv:s("Ub"),OI:u("Tb"),IB:function(a){this.Tb.push(a)},nK:u("mi"),aC:function(a){this.mi.push(a)},Yz:u("ae"),ar:function(a){this.ae.push(a)},gJ:u("yf"),Ik:s("yf"),hJ:u("km"),NB:s("km"),KI:u("em"),vN:s("em"),dK:u("Ip"),qO:s("Ip"),Vm:u("eb"),Kk:function(a){this.eb.push(a)},Aq:function(a){this.mi=[];this.Tb=[];this.Cl=a;this.ae=[];this.eb=[];this.yg=
[];this.ap="";this.Ip=m;this.em=w.Ks;this.yf=w.Ns;return this.ev(this.Cl)},ev:function(a){var c=w.dg.Lg().wC(a),d=c.documentElement,e=d.getAttribute("version"),f=d.getAttribute("orientation");if("map"==d.nodeName){"1.0"!=e&&e!==j&&w.Q("cocos2d: TMXFormat: Unsupported TMX version:"+e);"orthogonal"==f?this.Gk(w.ql):"isometric"==f?this.Gk(w.pl):"hexagonal"==f?this.Gk(w.ol):f!==j&&w.Q("cocos2d: TMXFomat: Unsupported orientation:"+this.Kd);var h=new w.ea;h.width=parseFloat(d.getAttribute("width"));h.height=
parseFloat(d.getAttribute("height"));this.Hv(h);h=new w.ea;h.width=parseFloat(d.getAttribute("tilewidth"));h.height=parseFloat(d.getAttribute("tileheight"));this.Pv(h);this.Ik(w.Ms)}var l=d.getElementsByTagName("tileset");"map"!==d.nodeName&&(l=[],l.push(d));e=0;for(f=l.length;e<f;e++){var k=l[e],h=k.getAttribute("source"),n=a.substring(0,a.lastIndexOf("/")+1);if(h)this.ev(n+h);else{var o=new w.Ax;o.name=k.getAttribute("name")||"";o.vh=parseInt(k.getAttribute("firstgid"))||1;o.Ok=parseInt(k.getAttribute("spacing"))||
0;o.margin=parseInt(k.getAttribute("margin"))||0;h=w.ea;h.width=parseFloat(k.getAttribute("tilewidth"));h.height=parseFloat(k.getAttribute("tileheight"));o.Ub=h;(k=k.getElementsByTagName("image")[0].getAttribute("source"))&&(k=n+k);o.Tv=k;this.aC(o)}}if(a=d.getElementsByTagName("tile")){e=0;for(f=a.length;e<f;e++)l=this.mi[0],k=a[e],this.NB(l.vh+parseInt(k.getAttribute("id"))),this.$B(this.km),this.Ik(w.Qs)}if(k=d.getElementsByTagName("layer")){e=0;for(f=k.length;e<f;e++){n=k[e];l=n.getElementsByTagName("data")[0];
a=new w.yx;a.name=n.getAttribute("name");h=new w.ea;h.width=parseFloat(n.getAttribute("width"));h.height=parseFloat(n.getAttribute("height"));a.sa=h;h=n.getAttribute("visible");a.visible="0"!=h;h=n.getAttribute("opacity")||1;a.Z=h?parseInt(255*parseFloat(h)):255;o=parseFloat(n.getAttribute("x"))||0;h=parseFloat(n.getAttribute("y"))||0;a.bv=w.a(o,h);h="";for(n=0;n<l.childNodes.length;n++)h+=l.childNodes[n].nodeValue;l=l.getAttribute("compression");w.b(l==j||"gzip"==l||"zlib"==l,"TMX: unsupported compression method");
switch(l){case "gzip":a.yb=w.FC(h);break;case "zlib":break;case j:case "":a.yb=w.U.Ih.vz(h);break;default:w.b(this.em!=w.Ks,"TMX tile map: Only base64 and/or gzip/zlib maps are supported")}this.IB(a);this.Ik(w.Ls)}}if(k=d.getElementsByTagName("objectgroup"))for(e=0;e<k.length;e++){a=k[e];f=new w.zx;f.FB(a.getAttribute("name"));l=new w.k;l.x=parseFloat(a.getAttribute("x"))*this.Ub.width||0;l.y=parseFloat(a.getAttribute("y"))*this.Ub.height||0;f.OB(l);if(l=a.querySelectorAll("object"))for(n=0;n<l.length;n++)o=
l[n],a={},a.name=o.getAttribute("name")||"",a.type=o.getAttribute("type")||"",a.x=parseInt(o.getAttribute("x")||0)+f.lm.x,h=parseInt(o.getAttribute("y")||0)+f.lm.y,h=parseInt(this.Ve.height*this.Ub.height)-h-parseInt(o.getAttribute("height")),a.y=h,a.width=parseInt(o.getAttribute("width")),a.height=parseInt(o.getAttribute("height")),f.MB(a),this.Ik(w.Os);this.ar(f);this.Ik(w.Ps)}if(c=c.querySelectorAll("map > properties > property"))for(e=0;e<c.length;e++)k=c[e],this.yf==w.Ns?w.Q("TMX tile map: Parent element is unsupported. Cannot add property named "+
k.getAttribute("name")+" with value "+k.getAttribute("value")):this.yf==w.Ms?(l=new String(k.getAttribute("value")),k=k.getAttribute("name"),this.eb[k]=l):this.yf==w.Ls?(a=this.Tb[0],l=new String(k.getAttribute("value")),k=k.getAttribute("name"),a.eb[k]=l):this.yf==w.Ps?(f=this.ae[0],l=new String(k.getAttribute("value")),k=k.getAttribute("name"),f.eb[k]=l):this.yf==w.Os?(f=this.ae[0],a=f.xf[0],f=k.getAttribute("name"),k=new String(k.getAttribute("value")),a[f]=k):this.yf==w.Qs&&(a=this.yg[this.km],
f=k.getAttribute("name"),k=new String(k.getAttribute("name")),a[f]=k);return d},kK:u("yg"),$B:function(a){this.yg[a]={}},QH:u("ap"),SM:s("ap"),fK:u("Cl"),tO:s("Cl")});w.Fo.create=function(a){var c=new w.Fo;return c.Aq(a)?c:j};w.zx=w.S.extend({Dt:"",lm:w.I(),eb:j,xf:j,P:function(){this.eb=[];this.xf=[]},rJ:u("lm"),OB:s("lm"),Vm:u("eb"),Kk:function(a){this.eb.push(a)},Uz:function(){return this.Dt.toString()},FB:s("Dt"),Rq:function(a){return this.eb[a]},IL:function(a){if(this.xf&&0<this.xf.length)for(var c=0,d=this.xf.length;c<d;c++){var e=this.xf[c].name;if(e&&e==a)return this.xf[c]}return j},ZI:u("xf"),MB:function(a){this.xf.push(a)}});w.Eo=w.Vg.extend({sa:w.Xb(),Ib:w.Xb(),yb:j,ee:j,di:j,eb:j,yp:"",Z:255,hi:j,gi:j,Np:j,Mp:j,SE:j,Ja:j,Eb:j,L:j,P:function(){this._super();this.c=[];this.Xa=[];this.It=i},MI:u("sa"),yN:s("sa"),TI:u("Ib"),DN:s("Ib"),mK:u("yb"),zO:s("yb"),lK:u("ee"),yO:s("ee"),LI:u("di"),xN:s("di"),Vm:u("eb"),Kk:s("eb"),zA:function(a,c,d){var e=c.sa,e=0.35*parseInt(e.width*e.height)+1,f=j;a&&(f=w.Ia.nb().dd(a.Tv.toString()));return this.Ba(f,e)?(this.yp=c.name,this.sa=c.sa,this.yb=c.yb,this.hi=c.hi,this.gi=c.gi,this.Z=
c.Z,this.eb=c.eb,this.L=w.n.p().L,this.ee=a,this.Ib=d.Ub,this.di=d.Kd,this.m(this.Xx(c.bv)),this.Eb=[],this.Ek(w.Ha(this.sa.width*this.Ib.width,this.sa.height*this.Ib.height)),this.Ib.width/=this.L,this.Ib.height/=this.L,this.Mp=m,this.Np=0,i):m},iM:function(){this.yb&&(this.yb=j);this.Eb&&(this.Eb=j)},RO:function(a){w.b(a.x<this.sa.width&&a.y<this.sa.height&&0<=a.x&&0<=a.y,"TMXLayer: invalid position");w.b(this.yb&&this.Eb,"TMXLayer: the tiles map has been released");var c=j,d=this.ir(a);if(d){var e=
a.x+a.y*this.sa.width,c=this.xh(e);c||(d=this.ee.Bk(d),d=w.T(d.origin.x/this.L,d.origin.y/this.L,d.size.width/this.L,d.size.height/this.L),c=new w.O,c.Di(this,d),c.m(this.kn(a)),c.Mk(this.zm(a)),c.X(w.I()),c.Ta(this.Z),a=this.Ro(e),this.Sy(c,a,e))}return c},ir:function(a){w.b(a.x<this.sa.width&&a.y<this.sa.height&&0<=a.x&&0<=a.y,"TMXLayer: invalid position");w.b(this.yb&&this.Eb,"TMXLayer: the tiles map has been released");return this.yb[a.x+a.y*this.sa.width]},xO:function(a,c){w.b(c.x<this.sa.width&&
c.y<this.sa.height&&0<=c.x&&0<=c.y,"TMXLayer: invalid position");w.b(this.yb&&this.Eb,"TMXLayer: the tiles map has been released");w.b(0!==a||!(a>=this.ee.vh),"TMXLayer: invalid gid:"+a);this.ce();var d=this.ir(c);if(d!=a)if(0==a)this.gB(c);else if(0==d)this.ly(a,c);else{var d=c.x+c.y*this.sa.width,e=this.xh(d);if(e){var f=this.ee.Bk(a),f=w.T(f.origin.x/this.L,f.origin.y/this.L,f.size.width/this.L,f.size.height/this.L);e.Ni(f,m,f.size);this.yb[d]=a}else this.My(a,c)}},gB:function(a){w.b(a.x<this.sa.width&&
a.y<this.sa.height&&0<=a.x&&0<=a.y,"TMXLayer: invalid position");w.b(this.yb&&this.Eb,"TMXLayer: the tiles map has been released");this.ce();if(this.ir(a)){var c=a.x+a.y*this.sa.width,a=this.Ro(c);this.yb[c]=0;w.Gh(this.Eb,a);if(c=this.xh(c))this.removeChild(c,i);else if(this.$.uv(a),this.c)for(var c=0,d=this.c.length;c<d;c++){var e=this.c[c];if(e){var f=e.Zb;f>=a&&e.Of(f-1)}}}},kn:function(a){var c=w.I();switch(this.di){case w.ql:c=this.By(a);break;case w.pl:c=this.Ay(a);break;case w.ol:c=this.zy(a)}return c},
Rq:function(a){return this.eb[a]},eC:function(){var a=this.$.ga();this.ee.Mu=new w.ea(a.width,a.height);this.wy();this.ce();for(a=0;a<this.sa.height;a++)for(var c=0;c<this.sa.width;c++){var d=this.yb[c+this.sa.width*a];0!=d&&(this.Ux(d,w.a(c,a)),this.hi=Math.min(d,this.hi),this.gi=Math.max(d,this.gi))}w.b(this.gi>=this.ee.vh&&this.hi>=this.ee.vh,"TMX: Only 1 tilset per layer is supported")},r:function(){w.b(0,"addChild: is not supported on cc.TMXLayer. Instead use setTileGID:at:/tileAt:")},removeChild:function(a,
c){if(a){w.b(w.tr(this.c,a),"Tile does not belong to TMXLayer");this.ce();var d=w.Tk(this.c,a);this.yb[this.Eb[d]]=0;w.Gh(this.Eb,d);this._super(a,c)}},zb:function(){this._super()},Wz:function(){return this.yp.toString()},wN:s("yp"),Ay:function(a){return w.Sd(this.Ib.width/2*(this.sa.width+a.x-a.y-1),this.Ib.height/2*(2*this.sa.height-a.x-a.y-2))},By:function(a){return w.Sd(a.x*this.Ib.width,(this.sa.height-a.y-1)*this.Ib.height)},zy:function(a){var c=0;1==a.x%2&&(c=-this.Ib.height/2);return w.Sd(3*
a.x*this.Ib.width/4,(this.sa.height-a.y-1)*this.Ib.height+c)},Xx:function(a){var c=w.I();switch(this.di){case w.ql:c=w.a(a.x*this.Ib.width,-a.y*this.Ib.height);break;case w.pl:c=w.a(this.Ib.width/2*(a.x-a.y),this.Ib.height/2*(-a.x-a.y));break;case w.ol:c=w.a(0,0),w.Q("cocos2d:offset for hexagonal map not implemented yet")}return c},Ux:function(a,c){var d=this.ee.Bk(a),d=w.T(d.origin.x/this.L,d.origin.y/this.L,d.size.width/this.L,d.size.height/this.L);this.ce();var e=c.x+c.y*this.sa.width;this.Ja=
new w.O;this.Ja.Hk(this);this.Ja.Di(this,d);this.Ja.m(this.kn(c));this.Ja.Mk(this.zm(c));this.Ja.X(w.I());this.Ja.Ta(this.Z);this.Ja.Mi(e);d=this.Eb.length;this.Yt(this.Ja,d);this.Eb=w.Pd(this.Eb,e,d);return this.Ja},ly:function(a,c){var d=this.ee.Bk(a),d=w.T(d.origin.x/this.L,d.origin.y/this.L,d.size.width/this.L,d.size.height/this.L),e=parseInt(c.x+c.y*this.sa.width);this.ce();this.Ja=new w.O;this.Ja.Hk(this);this.Ja.Di(this,d);this.Ja.rn(this.kn(c));this.Ja.Mk(this.zm(c));this.Ja.X(w.I());this.Ja.Ta(this.Z);
d=this.Wx(e);this.Yt(this.Ja,d);this.Eb=w.Pd(this.Eb,e,d);if(this.c)for(var f=0,h=this.c.length;f<h;f++){var l=this.c[f];if(l){var k=l.Zb;k>=d&&l.Of(k+1)}}this.yb[e]=a;return this.Ja},My:function(a,c){var d=this.ee.Bk(a),d=w.T(d.origin.x/this.L,d.origin.y/this.L,d.size.width/this.L,d.size.height/this.L),e=c.x+c.y*this.sa.width;this.ce();this.Ja=new w.O;this.Ja.Di(this,d);this.Ja.rn(this.kn(c));this.Ja.Mk(this.zm(c));this.Ja.X(w.I());this.Ja.Ta(this.Z);this.Ja.Of(this.Ro(e));this.Ja.qn(i);this.Ja.Cn();
this.yb[e]=a;return this.Ja},wy:function(){var a=this.Rq("cc_vertexz");a&&("automatic"==a?this.Mp=i:this.Np=parseInt(a))},zm:function(a){var c=0,d=0;if(this.Mp)switch(this.di){case w.pl:d=this.sa.width+this.sa.height;c=-(d-(a.x+a.y));break;case w.ql:c=-(this.sa.height-a.y);break;case w.ol:w.b(0,"TMX Hexa zOrder not supported");break;default:w.b(0,"TMX invalid value")}else c=this.Np;return c},Ro:function(a){var c;if(this.Eb)for(var d=0;d<this.Eb.length&&!(c=this.Eb[d],c==a);d++);w.b(c,"TMX atlas index not found. Shall not happen");
return d},Wx:function(a){for(var c=0;c<this.Eb.length&&!(a<this.Eb[c]);c++);return c}});w.Eo.create=function(a,c,d){var e=new w.Eo;return e.zA(a,c,d)?e:j};w.AG=function(a,c){return a-c};w.oo=w.S.extend({Uj:j,Pj:j,Fj:j,CJ:u("Uj"),ZN:s("Uj"),$I:u("Pj"),JN:s("Pj"),JH:u("Fj"),tB:s("Fj"),nA:function(a,c){this.Uj=a;this.Pj=c;this.Fj=j;return i}});w.oo.create=function(a,c){var d=new w.oo;d.nA(a,c);return d};
w.ns=w.hb.extend({xp:j,We:[],fJ:u("We"),ON:s("We"),P:function(){this.We=[];this.xp=w.Sd(-100,-100)},r:function(a,c,d,e){if(3==arguments.length)w.b(0,"ParallaxNode: use addChild:z:parallaxRatio:positionOffset instead");else{w.b(a!=j,"Argument must be non-nil");var f=w.oo.create(d,e);f.tB(a);this.We.push(f);f=this.Ea;f.x=f.x*d.x+e.x;f.y=f.y*d.y+e.y;a.m(f);this._super(a,c,a.Kb)}},removeChild:function(a,c){for(var d=0;d<this.We.length;d++)if(this.We[d].Fj.isEqual(a)){this.We.splice(d,1);break}this._super(a,
c)},Vq:function(a){this.We=[];this._super(a)},dc:function(){var a=this.Rx();if(!w.k.Uf(a,this.xp)){for(var c=0;c<this.We.length;c++){var d=this.We[c];d.Fj.m(w.a(-a.x+a.x*d.Uj.x+d.Pj.x,-a.y+a.y*d.Uj.y+d.Pj.y))}this.xp=a}this._super()},Rx:function(){for(var a=this.Ea,c=this;c.getParent()!=j;)c=c.getParent(),a=w.pc(a,c.Fa());return a}});w.ns.create=function(){return new w.ns};w.Sv=i;w.Hf={Fq:m,Gq:m,nr:m};
w.Qd=w.S.extend({Ft:m,Qt:["mp3","ogg","wav"],om:j,Xj:i,ab:{},Ej:-1,rb:{},tp:m,tb:j,gp:1,P:function(){if(!this.Ft){var a=document.createElement("audio");a.canPlayType&&(w.Hf.Fq="no"!=a.canPlayType("audio/mpeg")&&""!=a.canPlayType("audio/mpeg"),w.Hf.Gq="no"!=a.canPlayType('audio/ogg; codecs="vorbis"')&&""!=a.canPlayType('audio/ogg; codecs="vorbis"'),w.Hf.nr="no"!=a.canPlayType('audio/wav; codecs="1"')&&""!=a.canPlayType('audio/wav; codecs="1"'),w.Sv=w.Hf.Fq||w.Hf.Gq||w.Hf.nr);this.Ft=i}},D:function(a){this.om=
a?new String(a):new String("mp3");this.Ej=this.fy();return this.Xj},fy:function(){var a=0;if(w.Sv){if(-1!=this.om.search(/mp3/i)&&w.Hf.Fq)return this.Qt[a];if(-1!=this.om.search(/ogg/i)&&w.Hf.Gq||-1!=this.om.search(/wav/i)&&w.Hf.nr)return this.Qt[++a];this.Xj=m;return-1}this.Xj=m},UA:function(a){if(this.Xj){if(-1==this.Ej)return;var c=new Audio(a+"."+this.Ej);c.Qq="auto";c.addEventListener("canplaythrough",function(a){this.removeEventListener("canplaythrough",arguments.callee,m)},m);c.addEventListener("error",
function(){w.Rc.Nc().Iq()},m);c.addEventListener("playing",function(){w.Oc.tp=i},m);c.addEventListener("pause",function(){w.Oc.tp=m},m);c.load();this.rb[a]=c}w.Rc.Nc().zk()},Nq:function(a,c){this.rb[this.tb]&&this.rb[this.tb].pause();this.tb=a;this.rb[this.tb]&&(this.rb[this.tb].loop=c||m,this.rb[this.tb].play())},sC:function(a){this.rb[this.tb]&&(this.rb[this.tb].pause(),this.rb[this.tb].currentTime=0,a&&this.rb.hasOwnProperty(this.tb)&&delete this.rb[this.tb])},WL:function(){this.rb[this.tb]&&this.rb[this.tb].pause()},
AM:function(){this.rb[this.tb]&&this.rb[this.tb].play()},CM:function(){this.rb[this.tb]&&(this.rb[this.tb].currentTime=0,this.rb[this.tb].play())},dP:v(m),NK:function(){return w.Oc.tp},DH:function(){return this.rb[this.tb]?this.rb[this.tb].volume:0},sB:function(a){this.rb[this.tb]&&(this.rb[this.tb].volume=1<a?1:0>a?0:a)},ZH:u("gp"),aN:function(a){this.gp=1<a?1:0>a?0:a;if(this.ab)for(var c in this.ab)this.ab[c].volume=this.gp},Oq:function(a,c){var d=this.ey(a);d&&(d.loop=c||m,d.play());return a},
XL:function(a){this.ab[a]&&this.ab[a].pause()},VL:function(){if(this.ab)for(var a in this.ab)this.ab[a].pause()},BM:function(a){this.ab[a]&&this.ab[a].play()},zM:function(){if(this.ab)for(var a in this.ab)this.ab[a].play()},KO:function(a){this.ab[a]&&(this.ab[a].pause(),this.ab[a].currentTime=0)},rC:function(){if(this.ab)for(var a in this.ab)this.ab[a].pause(),this.ab[a].currentTime=0},VA:function(a){if(this.Xj){if(-1==this.Ej)return;var c=new Audio(a+"."+this.Ej);c.Qq="auto";c.addEventListener("canplaythrough",
function(a){this.removeEventListener("canplaythrough",arguments.callee,m)},m);c.addEventListener("error",function(){w.Rc.Nc().Iq()},m);c.load();this.ab[a]=c}w.Rc.Nc().zk()},YO:function(a){this.ab.hasOwnProperty(a)&&delete this.ab[a]},ey:function(a){return this.ab!=j?this.ab[a]:j},end:function(){this.sC();this.rC()}});w.Qd.Oc=function(){w.Oc||(w.Oc=new w.Qd);return w.Oc};w=w=w||{};w.nw=w.lf.extend({P:function(){this._super()},FK:v(i),Zy:function(){var a=w.n.p();a.vB(i);a.Dk(1/60);var c=J.Yq();a.kB(c);return i},au:function(){w.n.p().pause()},bu:function(){w.n.p().xv()}});var ca=[{type:"image",src:"Resources/bg01.jpg"},{type:"image",src:"Resources/ship01.png"},{type:"image",src:"Resources/menu.png"},{type:"image",src:"Resources/logo.png"},{type:"image",src:"Resources/cocos2d-html5.png"},{type:"image",src:"Resources/gameOver.png"},{type:"image",src:"Resources/menuTitle.png"},{type:"image",src:"Resources/Enemy.png"},{type:"image",src:"Resources/flare.jpg"},{type:"image",src:"Resources/bullet.png"},{type:"image",src:"Resources/explosion.png"},{type:"image",src:"Resources/explode1.jpg"},
{type:"image",src:"Resources/explode2.jpg"},{type:"image",src:"Resources/explode3.jpg"},{type:"image",src:"Resources/hit.jpg"},{type:"tmx",src:"Resources/level01.tmx"},{type:"plist",src:"Resources/Enemy.plist"},{type:"plist",src:"Resources/explosion.plist"},{type:"plist",src:"Resources/bullet.plist"},{type:"bgm",src:"Resources/Music/bgMusic"},{type:"bgm",src:"Resources/Music/mainMainMusic"},{type:"effect",src:"Resources/Music/buttonEffet"},{type:"effect",src:"Resources/Music/explodeEffect"},{type:"effect",
src:"Resources/Music/fireEffect"},{type:"effect",src:"Resources/Music/shipDestroyEffect"}];var K=j,L=[],M=4,N=0,O=i,P=[],Q=[],R=[];var da={rk:[{vo:"Repeate",xj:"00:02",Bj:[0,1,2]},{vo:"Repeate",xj:"00:05",Bj:[3,4,5]}]};var ea=[{type:0,Pi:"E0.png",jk:"W2.png",vc:2,ef:1,Ae:1,Nf:20},{type:1,Pi:"E1.png",jk:"W2.png",vc:4,ef:0,Ae:1,Nf:40},{type:2,Pi:"E2.png",jk:"W2.png",vc:6,ef:2,Ae:2,Nf:60},{type:3,Pi:"E3.png",jk:"W2.png",vc:8,ef:3,Ae:1,Nf:80},{type:4,Pi:"E4.png",jk:"W2.png",vc:15,ef:2,Ae:2,Nf:150},{type:5,Pi:"E5.png",jk:"W2.png",vc:20,ef:2,Ae:1,Nf:200}];var S=w.O.extend({zb:function(a){(a||w.Ga).globalCompositeOperation="lighter";this._super(a)}});
function fa(a,c,d){var e=new S;e.Mb("Resources/flare.jpg");a.r(e,10);e.Ta(0);e.m(w.a(-30,297));e.Pf(-120);e.Ob(0.2);var a=w.kj.create(0.5,255),f=w.kj.create(1,0),h=w.Ug.create(0.7,1.2,1.2),h=w.jj.create(h),l=w.pb.create(0.5,w.a(328,0)),l=w.jj.create(l),k=w.Tg.create(2.5,90),k=w.cl.create(k),n=w.fc.create(0.5,1),c=w.Da.create(c,d),d=w.Da.create(e,function(){this.getParent().removeChild(this)});e.G(w.Y.create(a,h,f,d,c));e.G(l);e.G(k);e.G(n)}
function ga(a,c){var d,e;d=1.2;e=0.7;var f=new S;f.Mb("Resources/explode1.jpg");var h=new S;h.Mb("Resources/explode2.jpg");var l=new S;l.Mb("Resources/explode3.jpg");f.m(a);h.m(a);l.m(a);c.r(h);c.r(l);f.Ob(d);h.Ob(d);l.Ob(d);l.Pf(360*Math.random());d=w.Tg.create(e,-45);var k=w.Tg.create(e,45),n=w.Ug.create(e,3,3),o=w.Oh.create(e);f.G(d);h.G(k);f.G(n);h.G(n.copy());l.G(n.copy());f.G(o);h.G(o.copy());l.G(o.copy());setTimeout(function(){c.removeChild(f);c.removeChild(h);c.removeChild(l)},1E3*e)};var V=w.O.extend({XG:0,$e:i,speed:200,Em:-200,vc:15,ez:1,ef:j,Nf:200,Rf:1E3,xz:1+1.2*Math.random(),Ae:1,vf:0,P:function(a){this.vc=a.vc;this.ef=a.ef;this.Nf=a.Nf;this.Ae=a.Ae;this.Ru(a.Pi);this.Kg(this.fr,this.xz)},zg:0,update:function(a){0>=this.vc&&(this.$e=m);this.zg+=a;0.1<this.zg&&(this.zg=0,0<this.vf&&this.vf--,1==this.vf&&this.Sa(new w.ua(255,255,255)))},If:function(){N+=this.Nf;var a=new T;a.m(this.Fa());this.getParent().r(a);ga(this.Fa(),this.getParent());w.Wb(P,this);this.getParent().removeChild(this);
O&&w.Qd.Oc().Oq("Resources/Music/explodeEffect")},fr:function(){var a=new U(this.Em,"W2.png",this.Ae);Q.push(a);this.getParent().r(a,a.Rf,900);a.m(w.a(this.Fa().x,this.Fa().y-0.2*this.ja().height))},Ig:function(){this.vf=2;this.vc--;this.Sa(w.so())},Pm:function(){var a=this.ja();return new w.T(this.Ea.x-a.width/2,this.Ea.y-a.height/4,a.width,a.height/2)}});V.hC=function(){w.Td.je().Rp("Resources/Enemy.plist","Resources/Enemy.png")};var T=S.extend({VO:0,UO:0,P:function(){this._super();this.vk(w.Td.je().xn("explosion_01.png"));var a=w.Tf.Qf().$t("Explosion");this.G(w.Y.create(w.Vi.create(a,m),w.Da.create(this,this.If)))},If:function(){this.getParent().removeChild(this)}});T.iC=function(){w.Td.je().Rp("Resources/explosion.plist");for(var a=[],c="",d=1;35>d;d++)c="explosion_"+(10>d?"0"+d:d)+".png",c=w.Td.je().xn(c),a.push(c);a=w.Wi.create(a,0.04);w.Tf.Qf().Py(a,"Explosion")};var ha=w.O.extend({speed:220,Em:900,vc:10,VF:1,ez:1,QO:m,dq:i,fL:m,Rf:3E3,rL:4,Yy:w.a(160,60),vf:0,$e:i,P:function(){var a=w.Ia.nb().dd("Resources/ship01.png");this.Ba(a,w.T(0,0,60,38));this.Mi(this.Rf);this.m(this.Yy);var c=w.Wi.create();c.Xt(a,w.T(0,0,60,38));c.Xt(a,w.T(60,0,60,38));c=w.Vi.create(0.1,c,i);this.G(w.uj.create(c));this.Kg(this.fr,1/6);this.dq=m;var d=new S;d.Ba(a,w.T(0,45,60,38));d.Ob(8);d.m(w.a(this.ja().width/2,12));this.r(d,3E3,99999);d.G(w.fc.create(0.5,1,1));a=w.Vk.create(3,9);
c=w.Da.create(this,function(a){a.dq=i;a.ha(i);a.removeChild(d)});this.G(w.Y.create(w.ob.create(0.5),a,c))},update:function(a){var c=this.Fa().x,d=this.Fa().y;if((L[w.Oe.JC]||L[w.Oe.GC])&&this.Fa().y<=K.height)d+=a*this.speed;if((L[w.Oe.lB]||L[w.Oe.Dz])&&0<=this.Fa().y)d-=a*this.speed;if((L[w.Oe.i]||L[w.Oe.left])&&0<=this.Fa().x)c-=a*this.speed;if((L[w.Oe.Lb]||L[w.Oe.right])&&this.Fa().x<=K.width)c+=a*this.speed;this.m(w.a(c,d));0>=this.vc&&(this.$e=m);this.zg+=a;0.1<this.zg&&(this.zg=0,0<this.vf&&
this.vf--,1==this.vf&&this.Sa(new w.ua(255,255,255)))},fr:function(){var a=new U(this.Em,"W1.png",1);R.push(a);this.getParent().r(a,a.Rf,903);a.m(w.a(this.Fa().x+13,this.Fa().y+3+0.3*this.ja().height));a=new U(this.Em,"W1.png",1);R.push(a);this.getParent().r(a,a.Rf,903);a.m(w.a(this.Fa().x-13,this.Fa().y+3+0.3*this.ja().height))},If:function(){M--;this.getParent().r(new T(this.Fa().x,this.Fa().y));this.getParent().removeChild(this);O&&w.Qd.Oc().Oq("Resources/Music/shipDestroyEffect")},Ig:function(){this.dq&&
(this.vf=2,this.vc--,this.Sa(w.so()))},Pm:function(){var a=this.ja();return new w.T(this.Ea.x-a.width/2,this.Ea.y-a.height/2,a.width,a.height/2)}});var U=S.extend({$e:i,KC:0,jw:200,$L:1,vc:1,ef:j,Rf:3E3,Ae:1,UL:1,P:function(a,c,d){this.jw=-a;this.Ae=d;w.Td.je().Rp("Resources/bullet.plist");this.Ru(c)},update:function(a){var c=this.Ea.x,d=this.Ea.y,c=c-this.KC*a,d=d-this.jw*a;this.m(w.a(c,d));0>=this.vc&&(this.$e=m)},If:function(){var a=new S;a.Mb("Resources/hit.jpg");a.m(this.Fa());a.Pf(360*Math.random());a.Ob(0.75);this.getParent().r(a,9999);w.Wb(Q,this);w.Wb(R,this);this.getParent().removeChild(this);var c=w.Da.create(a,a.dB);a.G(w.Ug.create(0.3,
2,2));a.G(w.Y.create(w.Oh.create(0.3),c))},Ig:function(){this.vc--},Pm:function(){return new w.T(this.Ea.x-3,this.Ea.y-3,6,6)}});var J=w.oe.extend({Ka:j,D:function(){var a=m;if(this._super){K=w.n.p().ka();a=w.O.create("Resources/loading.png");a.X(w.I());this.r(a,0,1);a=w.O.create("Resources/logo.png");a.X(w.a(0,0));a.m(w.a(0,250));this.r(a,10,1);var c=w.O.create("Resources/menu.png",w.T(0,0,126,33)),d=w.O.create("Resources/menu.png",w.T(0,33,126,33)),e=w.O.create("Resources/menu.png",w.T(0,66,126,33)),f=w.O.create("Resources/menu.png",w.T(126,0,126,33)),h=w.O.create("Resources/menu.png",w.T(126,33,126,33)),l=w.O.create("Resources/menu.png",
w.T(126,66,126,33)),a=w.O.create("Resources/menu.png",w.T(252,0,126,33)),k=w.O.create("Resources/menu.png",w.T(252,33,126,33)),n=w.O.create("Resources/menu.png",w.T(252,66,126,33)),c=w.of.create(c,d,e,this,function(){this.Hq();fa(this,this,this.PA)}),f=w.of.create(f,h,l,this,this.RA),a=w.of.create(a,k,n,this,this.NA),a=w.Wf.create(c,f,a);a.Tp(10);this.r(a,1,2);a.m(w.a(K.width/2,K.height/2-80));this.Kg(this.update,0.1);a=w.Ia.nb().dd("Resources/ship01.png");this.Ka=w.O.bf(a,w.T(0,45,60,38));this.r(this.Ka,
0,4);this.Ka.m(w.a(Math.random()*K.width,0));this.Ka.G(w.pb.create(2,w.a(Math.random()*K.width,this.Ka.Fa().y+K.height+100)));O&&(w.Qd.Oc().sB(0.7),w.Qd.Oc().Nq("Resources/Music/mainMainMusic",i));a=i}return a},PA:function(){var a=w.od.create();a.r(W.create());a.r(X.create());w.n.p().Mf(w.Pe.create(1.2,a))},RA:function(){this.Hq();var a=w.od.create();a.r(Y.create());w.n.p().Mf(w.Pe.create(1.2,a))},NA:function(){this.Hq();var a=w.od.create();a.r(Z.create());w.n.p().Mf(w.Pe.create(1.2,a))},update:function(){480<
this.Ka.Fa().y&&(this.Ka.m(w.a(Math.random()*K.width,10)),this.Ka.G(w.pb.create(parseInt(5*Math.random()),w.a(Math.random()*K.width,this.Ka.Fa().y+480))))},Hq:function(){O&&w.Qd.Oc().Oq("Resources/Music/buttonEffet")}});J.create=function(){var a=new J;return a&&a.D()?a:j};J.Yq=function(){var a=w.od.create(),c=J.create();a.r(c);return a};var ia=w.S.extend({Wh:j,mp:j,P:function(a){a||b("gameLayer must be non-nil");this.Wh=da;this.mp=a;this.JB(this.Wh)},JB:function(a){for(var c=0;c<a.rk.length;c++)this.Wh.rk[c].xj=this.oy(this.Wh.rk[c].xj)},oy:function(a){return!a?0:"number"!=typeof a?(a=a.split(":"),1==a.length?parseInt(a[0]):60*parseInt(a[0])+parseInt(a[1])):a},IA:function(a){for(var c=0;c<this.Wh.rk.length;c++){var d=this.Wh.rk[c];if(d)if("Once"==d.vo){if(d.xj==a)for(var e=0;e<d.Bj.length;e++)this.Wt(d.Bj[e])}else if("Repeate"==
d.vo&&0==a%d.xj)for(e=0;e<d.Bj.length;e++)this.Wt(d.Bj[e])}},Wt:function(a){a=new V(ea[a]);a.m(w.a(80+(K.width-160)*Math.random(),K.height));var c;switch(a.ef){case 0:c=this.mp.Ka.Fa();c=w.qj.create(1,c);break;case 1:c=w.a(0,-K.height-a.ja().height);c=w.pb.create(4,c);break;case 2:c=w.a(0,-100-200*Math.random());c=w.pb.create(0.5,c);var d=w.pb.create(1,w.a(-50-100*Math.random(),0)),e=w.ob.create(1),f=w.pb.create(1,w.a(100+100*Math.random(),0)),h=w.Da.create(a,function(a){a.G(w.uj.create(w.Y.create(e,
f.copy(),e,f.copy().reverse())))});c=w.Y.create(c,d,h);break;case 3:d=a.Fa().x<=K.width/2?320:-320,c=w.pb.create(4,w.a(d,-240)),d=w.pb.create(4,w.a(-d,-320)),c=w.Y.create(c,d)}this.mp.r(a,a.Rf,901);P.push(a);a.G(c)}});var X=w.oe.extend({D:function(){var a=m;if(this._super()){w.Va.Ki(18);w.Va.Ji();var a=w.Va.create("Main Menu",this,this.uC),c=w.Wf.create(a,j);c.m(w.a(0,0));a.X(w.a(0,0));a.m(w.a(K.width-95,5));this.r(c,1,2);a=i}return a},uC:function(){var a=w.od.create();a.r(J.create());w.n.p().Mf(w.Pe.create(1.2,a))}});X.create=function(){var a=new X;return a&&a.D()?a:j};var W=w.oe.extend({Rt:j,Ka:j,qf:j,hg:0,ah:j,ig:j,jg:0,kg:j,Kt:j,vm:0,rp:m,sp:m,en:j,Ii:j,$G:[],dn:m,To:w.I(),D:function(){var a=m;this._super()&&(T.iC(),V.hC(),K=w.n.p().ka(),this.Kt=new ia(this),this.iA(),this.Ii=new w.v(0,0,K.width,K.height+10),this.en=w.Cb.create("Score: 0",w.Ha(K.width/2,50),w.Do,"Arial",14),this.r(this.en,1E3),this.en.m(w.a(K.width-100,K.height-15)),a=w.Ia.nb().dd("Resources/ship01.png"),a=w.O.bf(a,w.T(0,0,60,38)),a.Ob(0.6),a.m(w.a(30,460)),this.r(a,1,5),this.fm=w.Cb.create("0",
"Arial",20),this.fm.m(w.a(60,463)),this.fm.Sa(w.so()),this.r(this.fm,1E3),this.Ka=new ha,this.r(this.Ka,this.Ka.Rf,902),this.Fv(i),this.GB(i),this.Kg(this.update),this.Kg(this.oB,1),O&&w.Qd.Oc().Nq("Resources/Music/bgMusic",i),a=i);return a},oB:function(){this.Rt++;this.Kt.IA(this.Rt)},Km:function(a){this.dn||(this.To=a[0].Tj);this.dn=i},Mm:function(a){if(this.dn){var c=this.Ka.Fa();w.v.Qg(this.Ka.eu(),this.Ii)&&(a=a[0],a=a.fn(a.view()),this.Ka.m(w.pc(c,w.qc(a,this.To))),this.To=a)}},Lm:function(){this.dn=
m},Yu:function(a){L[a]=i},Zu:function(a){L[a]=m},update:function(a){this.oz();this.eB(a);this.pz();this.IC();w.pr("#cou").innerHTML="Ship:1, Enemy: "+P.length+", Bullet:"+Q.length+","+R.length+" all:"+this.c.length},oz:function(){for(var a,c,d=0;d<P.length;d++){a=P[d];for(var e=0;e<R.length;e++)c=R[e],this.jq(a,c)&&(c.Ig(),a.Ig()),w.v.Qg(this.Ii,c.si())||c.If();this.jq(a,this.Ka)&&this.Ka.$e&&(a.Ig(),this.Ka.Ig());w.v.Qg(this.Ii,a.si())||a.If()}for(d=0;d<Q.length;d++)a=Q[d],this.jq(a,this.Ka)&&this.Ka.$e&&
(a.Ig(),this.Ka.Ig()),w.v.Qg(this.Ii,a.si())||a.If()},eB:function(a){var c,d=this.c,e;for(e in d)if(c=d[e])c.update(a),(902==c.Kb||903==c.Kb||901==c.Kb||900==c.Kb)&&c&&!c.$e&&c.If()},pz:function(){0<M&&!this.Ka.$e?(this.Ka=new ha,this.r(this.Ka,this.Ka.Rf,902)):0>=M&&!this.Ka.$e&&this.G(w.Y.create(w.ob.create(3),w.Da.create(this,this.OA)))},IC:function(){this.vm<N&&(this.vm+=5);this.fm.hd(M);this.en.hd("Score: "+this.vm)},wG:function(){for(var a=this.c,c=0;c<a.length;c++){var d=a[c];if(901==d.Kb||
900==d.Kb||903==d.Kb){var e=d.si();w.v.Qg(this.Ii,e)||d.If()}}},jq:function(a,c){var d=a.Pm(),e=c.Pm();if(w.v.Qg(d,e))return i},iA:function(){this.qf=w.O.create("Resources/bg01.jpg");this.qf.X(w.I());this.hg=this.qf.ja().height;this.r(this.qf,-10);this.ig=w.rl.create("Resources/level01.tmx");this.r(this.ig,-9);this.jg=this.ig.Ve.height*this.ig.Ub.height;this.hg-=48;this.jg-=200;this.qf.G(w.pb.create(3,new w.k(0,-48)));this.ig.G(w.pb.create(3,new w.k(0,-200)));this.Kg(this.LA,3)},LA:function(){this.qf.G(w.pb.create(3,
new w.k(0,-48)));this.ig.G(w.pb.create(3,new w.k(0,-200)));this.hg-=48;this.jg-=200;this.hg<=K.height&&(this.rp||(this.ah=w.O.create("Resources/bg01.jpg"),this.ah.X(w.I()),this.r(this.ah,-10),this.ah.m(new w.k(0,K.height)),this.rp=i),this.ah.G(w.pb.create(3,new w.k(0,-48))));0>=this.hg&&(this.hg=this.qf.ja().height,this.removeChild(this.qf),this.qf=this.ah,this.ah=j,this.rp=m);this.jg<=K.height&&(this.sp||(this.kg=w.rl.create("Resources/level01.tmx"),this.r(this.kg,-9),this.kg.m(new w.k(0,K.height)),
this.sp=i),this.kg.G(w.pb.create(3,new w.k(0,-200))));0>=this.jg&&(this.jg=this.kg.Ve.height*this.kg.Ub.height,this.removeChild(this.ig),this.ig=this.kg,this.kg=j,this.sp=m)},OA:function(){var a=w.od.create();a.r($.create());w.n.p().Mf(w.Pe.create(1.2,a));this.getParent().removeChild(this)}});W.create=function(){var a=new W;return a&&a.D()?a:j};W.Yq=function(){var a=w.od.create(),c=W.create();a.r(c,1);return a};var Y=w.oe.extend({D:function(){var a=m;if(this._super()){a=w.O.create("Resources/loading.png");a.X(w.I());this.r(a,0,1);a=w.Ia.nb().dd("Resources/menuTitle.png");a=w.O.bf(a,w.T(0,0,134,34));a.m(w.a(K.width/2,K.height-120));this.r(a);w.Va.Ji();w.Va.Ki(18);var c=w.Va.create("Sound");c.Li(m);w.Va.Ji();w.Va.Ki(26);var d=w.il.create(this,this.mC,w.Va.create("On"),w.Va.create("Off"));w.Va.Ji();w.Va.Ki(18);var e=w.Va.create("Mode");e.Li(m);w.Va.Ji();w.Va.Ki(26);var f=w.il.create(this,this.KA,w.Va.create("Easy"),
w.Va.create("Normal"),w.Va.create("Hard"));w.Va.Ji();w.Va.Ki(26);a=w.Cb.create("Go back","Arial",20);a=w.Xf.create(a,this,this.Xp);a.Ob(0.8);c=w.Wf.create(c,e,d,f,a);c.Xy(2,2,1);this.r(c);c=a.Fa();c.y-=50;a.m(c);a=i}return a},Xp:function(){var a=w.od.create();a.r(J.create());w.n.p().Mf(w.Pe.create(1.2,a))},mC:function(){(O=O?m:i)||w.Qd.Oc().end()},KA:q()});Y.create=function(){var a=new Y;return a&&a.D()?a:j};var Z=w.oe.extend({D:function(){var a=m;this._super()&&(a=w.O.create("Resources/loading.png"),a.X(w.I()),this.r(a,0,1),a=w.Ia.nb().dd("Resources/menuTitle.png"),a=w.O.bf(a,w.T(0,34,100,34)),a.m(w.a(K.width/2,K.height-120)),this.r(a),a=w.Cb.create("\n \n This showcase utilizes many features from Cocos2d-html5 engine, including: Parallax background, tilemap, actions, ease, frame animation, schedule, Labels, keyboard Dispatcher, Scene Transition. Art and audio is copyrighted by Enigmata Genus Revenge, you may not use any copyrigted material without permission. This showcase is licensed under GPL",
w.Ha(0.85*K.width,100),w.Ho,"Arial",14),a.m(w.a(K.width/2,K.height/2+20)),this.r(a),a=w.Cb.create("Programmer: \n Shengxiang Chen",w.Ha(0.85*K.width,100),w.Ho,"Arial",14),a.m(w.a(K.width/2,140)),this.r(a),a=w.Cb.create("Dingping Lv",w.Ha(0.85*K.width,100),w.CE,"Arial",14),a.m(w.a(K.width/2,120)),this.r(a),a=w.Cb.create("Effects animation: \n Hao Wu",w.Ha(0.85*K.width,100),w.Ho,"Arial",14),a.m(w.a(K.width/2,100)),this.r(a),a=w.Cb.create("Quality Assurance: \n Sean Lin",w.Ha(0.85*K.width,80),w.Ho,"Arial",
14),a.m(w.a(K.width/2,80)),this.r(a),a=w.Cb.create("Go back","Arial",14),a=w.Xf.create(a,this,this.Xp),a=w.Wf.create(a),a.m(w.a(K.width/2,50)),this.r(a),a=i);return a},Xp:function(){var a=w.od.create();a.r(J.create());w.n.p().Mf(w.Pe.create(1.2,a))}});Z.create=function(){var a=new Z;return a&&a.D()?a:j};var $=w.oe.extend({Ka:j,fF:0,D:function(){var a=m;if(this._super){P=[];Q=[];R=[];a=w.O.create("Resources/loading.png");a.X(w.I());this.r(a,0,1);a=w.O.create("Resources/gameOver.png");a.X(w.a(0,0));a.m(w.a(0,300));this.r(a,10,1);var a=w.O.create("Resources/menu.png",w.T(378,0,126,33)),c=w.O.create("Resources/menu.png",w.T(378,33,126,33)),d=w.O.create("Resources/menu.png",w.T(378,66,126,33)),e=w.O.create("Resources/cocos2d-html5.png");e.m(w.a(160,150));this.r(e,10);a=w.of.create(a,c,d,this,function(){fa(this,
this,this.QA)});a=w.Wf.create(a);this.r(a,1,2);a.m(w.a(K.width/2,220));a=w.Cb.create("Your Score:"+N,"Arial Bold",16);a.m(w.a(160,280));a.Sa(w.ti(250,179,0));this.r(a,10);c=w.Cb.create("Download Cocos2d-html5","Arial",14);a=w.Cb.create("Download This Sample","Arial",14);c=w.Xf.create(c,this,function(){window.location.href="http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Cocos2d-html5"});a=w.Xf.create(a,this,function(){window.location.href="https://github.com/ShengxiangChen/MoonWarriors"});a=w.Wf.create(c,
a);a.Tp(10);a.m(w.a(160,80));this.r(a);this.Kg(this.update,0.1);O&&w.Qd.Oc().Nq("Resources/Music/mainMainMusic");a=i}return a},QA:function(){N=0;M=4;var a=w.od.create();a.r(W.create());a.r(X.create());w.n.p().Mf(w.Pe.create(1.2,a))}});$.create=function(){var a=new $;return a&&a.D()?a:j};$.Yq=function(){var a=w.od.create(),c=$.create();a.r(c);return a};w=w=w||{};w.oL=[];w.$k=2;w.Nx=1;w.PE=0;w.pr=function(a){return document.querySelector(a)};w.kw=function(){return document.createElement("div")};w.jB=function(){w.cC("gameCanvas");w.Qd.Oc().D("mp3,ogg");w.Rc.Nc().Jq=function(){w.hl.Nk().zb()};w.Rc.Nc().onload=function(){w.Hn.fC().Az()};w.Rc.Nc().Qq(ca)};w.jB();