-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.min.js
More file actions
728 lines (728 loc) · 380 KB
/
game.min.js
File metadata and controls
728 lines (728 loc) · 380 KB
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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
var b=b||{};b.ca=b.ca||{};b.j={};var w=window,w=Object.prototype,w=null;b.bV=0;b.cV=1;b.$U=2;b.aV=3;b.th=null;b.o=null;b.Qi=!1;b.xa=null;b.bf=null;b.LK=null;b.a2=function(a){return document.createElement(a)};b.RD=function(a,c){if(a)if(a instanceof Array)for(var d=0,e=a.length;d<e&&!1!==c.call(void 0,a[d],d);d++);else for(d in a)if(!1===c.call(void 0,a[d],d))break};
b.extend=function(a){var c=2<=arguments.length?Array.prototype.slice.call(arguments,1):[];b.RD(c,function(c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])});return a};b.mc=function(a){return"function"===typeof a};b.Tx=function(a){return"number"===typeof a||"[object Number]"===Object.prototype.toString.call(a)};b.Cd=function(a){return"string"===typeof a||"[object String]"===Object.prototype.toString.call(a)};b.isArray=function(a){return Array.isArray(a)||"object"===typeof a&&"[object Array]"===Object.prototype.toString.call(a)};
b.Ug=function(a){return"undefined"===typeof a};b.hs=function(a){return"object"===typeof a&&"[object Object]"===Object.prototype.toString.call(a)};b.Xh=function(a){if(!a)return b.log("invalid URL"),!1;var c=a.indexOf("://");if(-1===c)return!1;c=a.indexOf("/",c+3);return(-1===c?a:a.substring(0,c))!==location.origin};
function aa(a,c,d,e,f){var g=this;g.RW=a;g.Lq=c;g.nn=[];g.AB=d;g.BB=f;g.ln=e;g.Lv=f;g.qC=a instanceof Array?[]:{};b.RD(a,function(a,c){g.nn.push({index:c,value:a})});g.size=g.nn.length;g.vx=0;g.Zw=0;g.Lq=g.Lq||g.size;g.s2=function(a,c){g.AB=a;g.BB=c};g.r2=function(a,c){g.ln=a;g.Lv=c};g.pB=function(){var a=this;if(!(0===a.nn.length||a.Zw>=a.Lq)){var c=a.nn.shift(),d=c.value,e=c.index;a.Zw++;a.AB.call(a.BB,d,e,function(c){a.vx++;a.Zw--;var d=Array.prototype.slice.call(arguments,1);a.qC[this.index]=
d[0];a.vx===a.size?a.ln&&a.ln.call(a.Lv,null,a.qC):a.pB()}.bind(c),a)}};g.Wk=function(){if(0===this.nn.length)this.ln&&this.ln.call(this.Lv,null,[]);else for(var a=0;a<this.Lq;a++)this.pB()}}
b.async={f4:function(a,c,d){a=new aa(a,1,function(a,c,g){a.call(d,g)},c,d);a.Wk();return a},X2:function(a,c,d){a=new aa(a,0,function(a,c,g){a.call(d,g)},c,d);a.Wk();return a},E6:function(a,c,d){var e=[],f=[null],g=new aa(a,1,function(c,g,m){e.push(function(c){e=Array.prototype.slice.call(arguments,1);a.length-1===g&&(f=f.concat(e));m.apply(null,arguments)});c.apply(d,e)},function(a){if(c){if(a)return c.call(d,a);c.apply(d,f)}});g.Wk();return g},map:function(a,c,d,e){var f=c;"object"===typeof c&&(d=
c.Rh,e=c.o1,f=c.n1);a=new aa(a,0,f,d,e);a.Wk();return a},V1:function(a,c,d,e,f){a=new aa(a,c,d,e,f);a.Wk();return a}};
b.path={SQ:/[^\.\/]+\/\.\.\//,join:function(){for(var a=arguments.length,c="",d=0;d<a;d++)c=(c+(""===c?"":"/")+arguments[d]).replace(/(\/|\\\\)$/,"");return c},Th:function(a){return(a=/(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a))?a[1]:null},U1:function(a){if(a){var c=a.lastIndexOf(".");if(-1!==c)return a.substring(0,c)}return a},HN:function(a,c){var d=a.indexOf("?");0<d&&(a=a.substring(0,d));d=/(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/,""));if(!d)return null;d=d[2];return c&&a.substring(a.length-
c.length).toLowerCase()===c.toLowerCase()?d.substring(0,d.length-c.length):d},dirname:function(a){return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/,"$2")},RN:function(a,c){c=c||"";var d=a.indexOf("?"),e="";0<d&&(e=a.substring(d),a=a.substring(0,d));d=a.lastIndexOf(".");return 0>d?a+c+e:a.substring(0,d)+c+e},Dr:function(a,c,d){if(0===c.indexOf("."))return this.RN(a,c);var e=a.indexOf("?"),f="";d=d?this.Th(a):"";0<e&&(f=a.substring(e),a=a.substring(0,e));e=a.lastIndexOf("/");return a.substring(0,0>=
e?0:e+1)+c+d+f},wW:function(a){var c=a=String(a);do c=a,a=a.replace(this.SQ,"");while(c.length!==a.length);return a}};
b.O=function(){var a={},c={},d={},e={},f=RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))|(?:localhost))(?::\\d{2,5})?(?:/\\S*)?$","i");return{ys:"",zX:"",Of:{},Yr:function(){return window.XMLHttpRequest?new window.XMLHttpRequest:
new ActiveXObject("MSXML2.XMLHTTP")},fB:function(a){var c=a[0],d=a[1],e=a[2],f=["",null,null];if(1===a.length)f[1]=c instanceof Array?c:[c];else if(2===a.length)"function"===typeof d?(f[1]=c instanceof Array?c:[c],f[2]=d):(f[0]=c||"",f[1]=d instanceof Array?d:[d]);else if(3===a.length)f[0]=c||"",f[1]=d instanceof Array?d:[d],f[2]=e;else throw Error("arguments error to load js!");return f},FE:function(c,d,e){var f=this,n=f.fB(arguments),p=n[0],r=n[1],n=n[2];-1<navigator.userAgent.indexOf("Trident/5")?
f.GB(p,r,0,n):b.async.map(r,function(c,d,e){c=b.path.join(p,c);if(a[c])return e(null);f.Vz(c,!1,e)},n)},GE:function(a,c,d){var e=this.OL(),f=this.fB(arguments);this.FE(f[0],f[1],function(a){if(a)throw Error(a);e.parentNode.removeChild(e);if(f[2])f[2]()})},Vz:function(c,d,e){var f=document,n=document.createElement("script");n.async=d;a[c]=!0;b.q.eb.noCache&&"string"===typeof c?this.NB.test(c)?n.src=c+"\x26_t\x3d"+(new Date-0):n.src=c+"?_t\x3d"+(new Date-0):n.src=c;n.addEventListener("load",function(){n.parentNode.removeChild(n);
this.removeEventListener("load",arguments.callee,!1);e()},!1);n.addEventListener("error",function(){n.parentNode.removeChild(n);e("Load "+c+" failed!")},!1);f.body.appendChild(n)},GB:function(a,c,d,e){if(d>=c.length)e&&e();else{var f=this;f.Vz(b.path.join(a,c[d]),!1,function(p){if(p)return e(p);f.GB(a,c,d+1,e)})}},OL:function(){var a=document,c=a.getElementById("cocos2d_loadJsImg");if(!c){c=document.createElement("img");b.JB&&(c.src=b.JB);a=a.getElementById(b.q.eb.id);a.style.backgroundColor="transparent";
a.parentNode.appendChild(c);var d=getComputedStyle?getComputedStyle(a):a.currentStyle;d||(d={width:a.width,height:a.height});c.style.left=a.offsetLeft+(parseFloat(d.width)-c.width)/2+"px";c.style.top=a.offsetTop+(parseFloat(d.height)-c.height)/2+"px";c.style.position="absolute"}return c},ls:function(a,c){if(b.JL)require("fs").l3(a,function(a,d){a?c(a):c(null,d.toString())});else{var d=this.Yr(),e="load "+a+" failed!";d.open("GET",a,!0);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?
(d.setRequestHeader("Accept-Charset","utf-8"),d.onreadystatechange=function(){4===d.readyState&&(200===d.status?c(null,d.responseText):c({status:d.status,Qn:e},null))}):(d.overrideMimeType&&d.overrideMimeType("text/plain; charset\x3dutf-8"),d.onload=function(){4===d.readyState&&(200===d.status?c(null,d.responseText):c({status:d.status,Qn:e},null))},d.onerror=function(){c({status:d.status,Qn:e},null)});d.send(null)}},HB:function(a){if(b.JL)return require("fs").m3(a).toString();var c=this.Yr();c.open("GET",
a,!1);/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)?c.setRequestHeader("Accept-Charset","utf-8"):c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dutf-8");c.send(null);return 4===!c.readyState||200!==c.status?null:c.responseText},MQ:function(a,c){var d=new XMLHttpRequest,e="load "+a+" failed!";d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){var a=d.response;a&&(window.Y1=a);4===d.readyState&&(200===d.status?c(null,d.response):c({status:d.status,
Qn:e},null))};d.onerror=function(){c({status:d.status,Qn:e},null)};d.send(null)},HE:function(a,c){this.ls(a,function(d,e){if(d)c(d);else{try{var f=JSON.parse(e)}catch(p){throw Error("parse json ["+a+"] failed : "+p);}c(null,f)}})},Mz:function(a){return null!=/(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a)},nl:function(a,c,d){function e(){this.removeEventListener("error",e,!1);r.crossOrigin&&"anonymous"===r.crossOrigin.toLowerCase()?(p.Xh=!1,t.Wd(a),b.O.nl(a,p,d)):"function"===typeof d&&d("load image failed")}
function f(){this.removeEventListener("load",f,!1);this.removeEventListener("error",e,!1);b.O.Of[a]=r;d&&d(null,r)}var p={Xh:!0};void 0!==d?p.Xh=null===c.Xh?p.Xh:c.Xh:void 0!==c&&(d=c);var r=this.zd(a);if(r)return d&&d(null,r),r;r=new Image;p.Xh&&"file://"!==location.origin&&(r.crossOrigin="Anonymous");var t=this;r.addEventListener("load",f);r.addEventListener("error",e);r.src=a;return r},PL:function(a,d,e){var m=this,n=null,p=a.type;p?(p="."+p.toLowerCase(),n=a.src?a.src:a.name+p):(n=a,p=b.path.Th(n));
if(d=m.zd(n))return e(null,d);d=null;p&&(d=c[p.toLowerCase()]);if(!d)return b.error("loader for ["+p+"] not exists!"),e();p=n;f.test(n)||(p=d.yx?d.yx():m.ys,p=m.RP(p,n));b.q.eb.noCache&&"string"===typeof p&&(p=m.NB.test(p)?p+("\x26_t\x3d"+(new Date-0)):p+("?_t\x3d"+(new Date-0)));d.load(p,n,a,function(a,c){a?(b.log(a),m.Of[n]=null,delete m.Of[n],e({status:520,Qn:a},null)):(m.Of[n]=c,e(null,c))})},NB:/\?/,RP:function(a,e){var f=b.path;if(void 0!==a&&void 0===e){e=a;var m=f.Th(e),m=m?m.toLowerCase():
"";a=(m=c[m])?m.yx?m.yx():this.ys:this.ys}e=b.path.join(a||"",e);if(e.match(/[\/(\\\\)]lang[\/(\\\\)]/i)){if(d[e])return d[e];f=f.Th(e)||"";e=d[e]=e.substring(0,e.length-f.length)+"_"+b.W.language+f}return e},load:function(a,c,d){var e=this,f=arguments.length;if(0===f)throw Error("arguments error!");3===f?"function"===typeof c&&(c="function"===typeof d?{$h:c,Rh:d}:{Rh:c,QN:d}):2===f?"function"===typeof c&&(c={Rh:c}):1===f&&(c={});a instanceof Array||(a=[a]);f=new aa(a,0,function(a,d,f,g){e.PL(a,d,
function(a){var d=Array.prototype.slice.call(arguments,1);c.$h&&c.$h.call(c.m6,d[0],g.size,g.vx);f(a,d[0])})},c.Rh,c.QN);f.Wk();return f},oB:function(a,c){var d=[],f;for(f in a){var n=a[f];e[f]=n;d.push(n)}this.load(d,c)},P1:function(a,c){var d=this,e=d.zd(a);e?d.oB(e.filenames,c):d.load(a,function(a,e){d.oB(e[0].filenames,c)})},Zg:function(a,d){if(a&&d){if("string"===typeof a)return c[a.trim().toLowerCase()]=d;for(var e=0,f=a.length;e<f;e++)c["."+a[e].trim().toLowerCase()]=d}},zd:function(a){return this.Of[a]||
this.Of[e[a]]},bv:function(a){return e[a]},Wd:function(a){var c=this.Of;delete c[a];delete c[e[a]];delete e[a]},t3:function(){var a=this.Of,c;for(c in a)delete a[c];for(c in e)delete e[c]}}}();
b.wx=function(){var a=arguments,c=a.length;if(1>c)return"";var d=a[0],e=!0;"object"===typeof d&&(e=!1);for(var f=1;f<c;++f){var g=a[f];if(e)for(;;){var h=null;if("number"===typeof g&&(h=d.match(/(%d)|(%s)/))){d=d.replace(/(%d)|(%s)/,g);break}d=(h=d.match(/%s/))?d.replace(/%s/,g):d+(" "+g);break}else d+=" "+g}return d};
(function(){function a(a){var c=b.q.Mc,d=parseInt(a[c.wl])||0,e=[b.W.zt],f=[];if(isNaN(d)||2<d||0>d)a[c.wl]=0;b.ta=b.q.Jb;b.Qi=!0;if(2===d||0===d&&-1===e.indexOf(b.W.mj)&&-1===f.indexOf(b.W.Qh))b.W.bj.opengl?(b.ta=b.q.ic,b.Qi=!0):b.Qi=!1;if(1===d||0===d&&!b.Qi)b.W.bj.canvas?(b.ta=b.q.Jb,b.Qi=!0):b.Qi=!1}function c(a,d,e){if(k[d])return null;e=e||"";var f=[],g=a[d];if(!g)throw Error("can not find module ["+d+"]");d=b.path;for(var h=0,m=g.length;h<m;h++){var n=g[h];if(!k[n]){var A=d.Th(n);A?".js"===
A.toLowerCase()&&f.push(d.join(e,n)):(A=c(a,n,e))&&(f=f.concat(A));k[n]=1}}return f}function d(a){b.sB&&b.sB(a[b.q.Mc.Pn]);b.RA=!0;b.log(b.kt);n&&n()}function e(a){var e=a[b.q.Mc.tx],f=b.O;if(b.Aa)d(a);else{var g=b.path.join(e,"moduleConfig.json");f.HE(g,function(f,g){if(f)throw Error(f);var h=a.modules||[],k=g.module,m=[];b.W.bj.opengl&&0>h.indexOf("base4webgl")?h.splice(0,0,"base4webgl"):0>h.indexOf("core")&&h.splice(0,0,"core");for(var n=0,s=h.length;n<s;n++){var t=c(k,h[n],e);t&&(m=m.concat(t))}b.O.GE(m,
function(c){if(c)throw c;d(a)})})}}function f(){this.removeEventListener("load",f,!1);e(b.q.eb)}var g=document.createElement("canvas"),h=document.createElement("canvas");b.ID=function(a,c){for(var d=["webgl","experimental-webgl","webkit-3d","moz-webgl"],e=null,f=0;f<d.length;++f){try{e=a.getContext(d[f],c)}catch(g){}if(e)break}return e};(function(){b.W={};var a=b.W;a.jH="en";a.DU="zh";a.FU="fr";a.IU="it";a.GU="de";a.PU="es";a.EU="du";a.OU="ru";a.KU="ko";a.JU="ja";a.HU="hu";a.NU="pt";a.CU="ar";a.LU=
"no";a.MU="pl";a.QU="unkonwn";a.up="iOS";a.zt="Android";a.OH="Windows";a.gV="Marmalade";a.MH="Linux";a.eV="Bada";a.fV="Blackberry";a.$y="OS X";a.jV="WP8";a.iV="WINRT";a.NH="Unknown";a.tz=-1;a.MV=0;a.RU=1;a.SU=2;a.uT=3;a.zU=4;a.yU=5;a.AT=6;a.VU=7;a.kU=8;a.DV=9;a.NV=10;a.OV=11;a.qH=100;a.DG=101;a.Fy="wechat";a.hG="androidbrowser";a.By="ie";a.GT="qqbrowser";a.jG="mqqbrowser";a.lG="ucbrowser";a.gG="360browser";a.DT="baiduboxapp";a.CT="baidubrowser";a.iG="maxthon";a.Dy="opera";a.FT="oupeng";a.Cy="miuibrowser";
a.Ay="firefox";a.$s="safari";a.zy="chrome";a.ET="liebao";a.HT="qzone";a.kG="sogou";a.Ey="unknown";a.$0=!1;var c=window,d=c.navigator,e=document,f=e.documentElement,k=d.userAgent.toLowerCase();a.jj=-1!==k.indexOf("mobile")||-1!==k.indexOf("android");a.platform=a.jj?a.qH:a.DG;var m=d.language,m=(m=m?m:d.browserLanguage)?m.split("-")[0]:a.jH;a.language=m;var n=m=!1,A="",B=0,z=/android (\d+(?:\.\d+)+)/i.exec(k)||/android (\d+(?:\.\d+)+)/i.exec(d.platform);z&&(m=!0,A=z[1]||"",B=parseInt(A)||0);if(z=/(iPad|iPhone|iPod).*OS ((\d+_?){2,3})/i.exec(k))n=
!0,A=z[2]||"",B=parseInt(A)||0;z=a.NH;-1!==d.appVersion.indexOf("Win")?z=a.OH:n?z=a.up:-1!==d.appVersion.indexOf("Mac")?z=a.$y:-1!==d.appVersion.indexOf("X11")&&-1===d.appVersion.indexOf("Linux")?z=a.hV:m?z=a.zt:-1!==d.appVersion.indexOf("Linux")&&(z=a.MH);a.mj=z;a.x2=A;a.w2=B;a.Qh=a.Ey;(function(){var c=/qqbrowser|chrome|safari|firefox|opr|oupeng|opera/i,d=/sogou|qzone|liebao|micromessenger|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|trident|miuibrowser/i.exec(k);d||
(d=c.exec(k));c=d?d[0]:a.Ey;"micromessenger"===c?c=a.Fy:"safari"===c&&k.match(/android.*applewebkit/)?c=a.hG:"trident"===c?c=a.By:"360 aphone"===c?c=a.gG:"mxbrowser"===c?c=a.iG:"opr"===c&&(c=a.Dy);a.Qh=c})();a.LN="";(function(){var c=/(msie |rv:|firefox|chrome|ucbrowser|qq|oupeng|opera|opr|safari|miui)(mobile)?(browser)?\/?([\d.]+)/i,d=k.match(/(micromessenger|mx|maxthon|baidu|sogou)(mobile)?(browser)?\/?([\d.]+)/i);d||(d=k.match(c));a.LN=d?d[4]:""})();m=window.devicePixelRatio||1;a.G6={width:m*(window.innerWidth||
document.documentElement.clientWidth),height:m*(window.innerHeight||document.documentElement.clientHeight)};a.ZV=function(){if(b.ta!==b.q.ic)throw Error("This feature supports WebGL render mode only.");};a.RM=function(){g.width=1;g.height=1;var a=g.getContext("2d");a.fillStyle="#000";a.fillRect(0,0,1,1);a.globalCompositeOperation="multiply";h.width=1;h.height=1;var c=h.getContext("2d");c.fillStyle="#fff";c.fillRect(0,0,1,1);a.drawImage(h,0,0,1,1);return 0===a.getImageData(0,0,1,1).data[0]}();b.W.jj&&
(m=document.createElement("style"),m.type="text/css",document.body.appendChild(m),m.textContent="body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}");try{var y=a.localStorage=c.localStorage;y.setItem("storage","");y.removeItem("storage");y=null}catch(F){y=function(){b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option")},a.localStorage={getItem:y,setItem:y,
removeItem:y,clear:y}}y=!!g.getContext("2d");m=!1;n=document.createElement("CANVAS");if(c.WebGLRenderingContext)try{b.ID(n,{stencil:!0,preserveDrawingBuffer:!0})&&(m=!0)}catch(J){}y=a.bj={canvas:y,opengl:m};if(void 0!==f.ontouchstart||void 0!==e.ontouchstart||d.msPointerEnabled)y.touches=!0;void 0!==f.onmouseup&&(y.mouse=!0);void 0!==f.onkeyup&&(y.keyboard=!0);if(c.DeviceMotionEvent||c.DeviceOrientationEvent)y.accelerometer=!0;a.CZ=function(){};a.yY=function(){};a.Q3=function(){};a.OX=function(){};
a.b1=function(a){return a?!0:!1};a.wY=function(){var a;a=""+("isMobile : "+this.jj+"\r\n");a+="language : "+this.language+"\r\n";a+="browserType : "+this.Qh+"\r\n";a+="capabilities : "+JSON.stringify(this.bj)+"\r\n";a+="os : "+this.mj+"\r\n";a+="platform : "+this.platform+"\r\n";b.log(a)};a.u2=function(a){window.open(a)}})();delete g;delete h;b.log=b.warn=b.error=b.assert=function(){};var k={},m=!1,n=null;b.RA=!1;b.cQ=function(c,d){if(m){var g=n;n=function(){g&&g();d&&d()}}else n=d,!b.q.eb&&c?b.q.eb=
c:b.q.eb||b.q.Dv(),c=b.q.eb,a(c),document.body?e(c):b.RV(window,"load",f,!1),m=!0}})();
b.q={AG:0,yG:1,WT:2,Hy:3,zG:4,XT:5,xG:6,lt:"game_on_hide",Vo:"game_on_show",mU:"game_on_resize",nf:"renderer_inited",Jb:0,ic:1,nV:2,Rm:null,Sm:null,Mc:{width:"width",height:"height",tx:"engineDir",LE:"modules",Pn:"debugMode",Rs:"showFPS",Rn:"frameRate",id:"id",wl:"renderMode",BQ:"jsList"},Ab:!0,aC:!1,bC:!1,rn:!1,o:null,Dh:null,Bv:null,aB:null,frame:null,bf:null,canvas:null,eb:null,ol:null,t2:null,G4:function(a){this.eb[this.Mc.Rn]=a;this.Dh&&window.cancelAnimationFrame(this.Dh);this.Ab=!0;this.BC();
this.fw()},step:function(){b.la.JE()},pause:function(){this.Ab||(this.Ab=!0,b.Mn&&b.Mn.yW(),this.Dh&&window.cancelAnimationFrame(this.Dh),this.Dh=0)},uo:function(){this.Ab&&(this.Ab=!1,b.Mn&&b.Mn.HW(),this.fw())},wQ:function(){return this.Ab},P3:function(){b.la.RE(0);b.Mn&&b.Mn.end();b.q.ol()},SE:function(a){var c=this,d=c.eb,e=c.Mc;this.Dv();this.bC?a&&a():this.aC||(b.RA?(this.aC=!0,this.CL(d[e.width],d[e.height]),b.view=b.it.kv(),b.la=b.qa.kv(),b.la.Is&&b.la.Is(b.view),b.bi=b.la.Uf(),this.yL(),
this.BC(),this.fw(),(d=d[e.BQ])?b.O.GE(d,function(d){if(d)throw Error(d);c.bC=!0;a&&a()}):a&&a()):b.cQ(this.eb,function(){c.SE(a)}))},zR:function(a,c){"function"===typeof a?b.q.ol=a:(a&&("string"===typeof a?(b.q.eb||this.Dv(),b.q.eb[b.q.Mc.id]=a):b.q.eb=a),"function"===typeof c&&(b.q.ol=c));this.SE(b.q.ol&&b.q.ol.bind(b.q))},BC:function(){this.Bv=new Date;this.aB=1E3/b.q.eb[b.q.Mc.Rn];b.W.mj===b.W.up&&b.W.Qh===b.W.Fy||60!==b.q.eb[b.q.Mc.Rn]?(window.dy=this.TC,window.cancelAnimationFrame=this.Xz):
(window.dy=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||this.TC,window.cancelAnimationFrame=window.cancelAnimationFrame||window.cancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.msCancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||
window.oCancelAnimationFrame||this.Xz)},TC:function(a){var c=(new Date).getTime(),d=Math.max(0,b.q.aB-(c-b.q.Bv)),e=window.setTimeout(function(){a()},d);b.q.Bv=c+d;return e},Xz:function(a){window.clearTimeout(a)},fw:function(){var a=this,c,d=b.la;d.NR(a.eb[a.Mc.Rs]);c=function(){a.Ab||(d.JE(),a.Dh&&window.cancelAnimationFrame(a.Dh),a.Dh=window.dy(c))};window.dy(c);a.Ab=!1},Dv:function(){if(this.eb)this.Fq(this.eb);else if(document.ccConfig)this.Fq(document.ccConfig);else try{for(var a=document.getElementsByTagName("script"),
c=0;c<a.length;c++){var d=a[c].getAttribute("cocos");if(""===d||d)break}var e,f,g;if(c<a.length){if(e=a[c].src)g=/(.*)\//.exec(e)[0],b.O.ys=g,e=b.path.join(g,"project.json");f=b.O.HB(e)}f||(f=b.O.HB("project.json"));var h=JSON.parse(f);this.Fq(h||{})}catch(k){b.log("Failed to read or parse project.json"),this.Fq({})}},Fq:function(a){var c=this.Mc,d=a[c.LE];a[c.Rs]="undefined"===typeof a[c.Rs]?!0:a[c.Rs];a[c.tx]=a[c.tx]||"frameworks/cocos2d-html5";null==a[c.Pn]&&(a[c.Pn]=0);a[c.Rn]=a[c.Rn]||60;null==
a[c.wl]&&(a[c.wl]=0);null==a[c.us]&&(a[c.us]=!0);d&&0>d.indexOf("core")&&d.splice(0,0,"core");d&&(a[c.LE]=d);this.eb=a},CL:function(a,c){if(!this.rn){if(!b.Qi)throw Error("The renderer doesn't support the renderMode "+this.eb[this.Mc.wl]);var d=this.eb[b.q.Mc.id],e=window,f=b.Ia(d)||b.Ia("#"+d),g;"CANVAS"===f.tagName?(a=a||f.width,c=c||f.height,this.canvas=b.xa=d=f,this.bf=b.bf=g=document.createElement("DIV"),d.parentNode&&d.parentNode.insertBefore(g,d)):("DIV"!==f.tagName&&b.log("Warning: target element is not a DIV or CANVAS"),
a=a||f.clientWidth,c=c||f.clientHeight,this.canvas=b.xa=d=document.createElement("CANVAS"),this.bf=b.bf=g=document.createElement("DIV"),f.appendChild(g));g.setAttribute("id","Cocos2dGameContainer");g.appendChild(d);this.frame=g.parentNode===document.body?document.documentElement:g.parentNode;d.tD("gameCanvas");d.setAttribute("width",a||480);d.setAttribute("height",c||320);d.setAttribute("tabindex",99);d.style.outline="none";f=g.style;f.width=(a||480)+"px";f.height=(c||320)+"px";f.margin="0 auto";
f.position="relative";f.overflow="hidden";g.top="100%";b.ta===b.q.ic&&(this.o=b.o=b.F6=b.ID(d,{stencil:!0,preserveDrawingBuffer:!0,antialias:!b.W.jj,alpha:!0}));this.o?(b.sa=b.sR,e.gl=this.o,b.Ce.Se(),b.th=new b.MG(this.o),b.Ra.FL()):(b.sa=b.rR,this.o=b.o=new b.et(d.getContext("2d")),b.th=b.Oy?new b.Oy(this.o):null);b.LK=g;b.q.canvas.oncontextmenu=function(){if(!b.qW)return!1};this.dispatchEvent(this.nf,!0);this.rn=!0}},yL:function(){function a(){b.Z&&b.q.Sm&&b.Z.dispatchEvent(b.q.Sm)}function c(){b.Z&&
b.q.Rm&&b.Z.dispatchEvent(b.q.Rm)}var d=window,e,f;this.Rm=this.Rm||new b.ii(this.lt);this.Rm.setUserData(this);this.Sm=this.Sm||new b.ii(this.Vo);this.Sm.setUserData(this);this.eb[this.Mc.us]&&b.AE.us(this.canvas);b.Ug(document.hidden)?b.Ug(document.mozHidden)?b.Ug(document.msHidden)?b.Ug(document.webkitHidden)||(e="webkitHidden",f="webkitvisibilitychange"):(e="msHidden",f="msvisibilitychange"):(e="mozHidden",f="mozvisibilitychange"):(e="hidden",f="visibilitychange");e?document.addEventListener(f,
function(){document[e]?c():a()},!1):(d.addEventListener("blur",c,!1),d.addEventListener("focus",a,!1));-1<navigator.userAgent.indexOf("MicroMessenger")&&(d.onfocus=function(){a()});"onpageshow"in window&&"onpagehide"in window&&(d.addEventListener("pagehide",c,!1),d.addEventListener("pageshow",a,!1));b.Z.$i(b.q.lt,function(){b.q.pause()});b.Z.$i(b.q.Vo,function(){b.q.uo()})}};
Function.prototype.bind=Function.prototype.bind||function(a){function c(){return f.apply(this instanceof d&&a?this:a,e.concat(Array.prototype.slice.call(arguments)))}function d(){}if(!b.mc(this))throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),f=this;d.prototype=this.prototype;c.prototype=new d;return c};
b.WW=RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))|(?:localhost))(?::\\d{2,5})?(?:/\\S*)?$","i");b.ee=function(){};
b.ee.prototype={constructor:b.ee,apply:function(a){a.addEventListener=b.ee.prototype.addEventListener;a.Ox=b.ee.prototype.Ox;a.removeEventListener=b.ee.prototype.removeEventListener;a.dispatchEvent=b.ee.prototype.dispatchEvent},addEventListener:function(a,c,d){if("load"===a&&this.L)setTimeout(function(){c.call(d)},0);else{void 0===this.Fh&&(this.Fh={});var e=this.Fh;void 0===e[a]&&(e[a]=[]);this.Ox(a,c,d)||e[a].push({af:c,ux:d})}},Ox:function(a,c,d){if(void 0===this.Fh)return!1;var e=this.Fh;if(void 0!==
e[a]){a=0;for(var f=e.length;a<f;a++){var g=e[a];if(g.af===c&&g.ux===d)return!0}}return!1},removeEventListener:function(a,c){if(void 0!==this.Fh){var d=this.Fh[a];if(void 0!==d)for(var e=0;e<d.length;)d[e].ux===c?d.splice(e,1):e++}},dispatchEvent:function(a,c){if(void 0!==this.Fh){null==c&&(c=!0);var d=this.Fh[a];if(void 0!==d){for(var e=[],f=d.length,g=0;g<f;g++)e[g]=d[g];for(g=0;g<f;g++)e[g].af.call(e[g].ux,this);c&&(d.length=0)}}}};b.ee.prototype.apply(b.q);b.j={wy:"cc.ActionManager.addAction(): action must be non-null",dG:"cocos2d: removeAction: Target not found",vT:"cc.ActionManager.removeActionByTag(): an invalid tag",wT:"cc.ActionManager.removeActionByTag(): target must be non-null",bG:"cc.ActionManager.getActionByTag(): an invalid tag",cG:"cocos2d : getActionByTag(tag \x3d %s): Action not found",VN:"cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)",WN:"Expected 'data' dict, but not found. Config file: %s",
XN:"Please load the resource first : %s",JG:"cocos2d: Director: Error in gettimeofday",KG:"cocos2d: Director: unrecognized projection",jU:"cocos2d: Director: unrecognized projection",IG:"cocos2d: Director: Error in gettimeofday",HG:"running scene should not null",Ny:"the scene should not null",Ln:"element type is wrong!",vI:"CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s",tV:"cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.",wI:"cc.scheduler.scheduleCallbackForTarget(): target should be non-null.",
tI:"cc.Scheduler.pauseTarget():target should be non-null",uI:"cc.Scheduler.resumeTarget():target should be non-null",sI:"cc.Scheduler.isTargetPaused():target should be non-null",zH:"getZOrder is deprecated. Please use getLocalZOrder instead.",JH:"setZOrder is deprecated. Please use setLocalZOrder instead.",xH:"RotationX !\x3d RotationY. Don't know which one to return",yH:"ScaleX !\x3d ScaleY. Don't know which one to return",WU:"An Node can't be added as a child of itself.",XU:"child already added. It can't be added again",
uH:"child must be non-null",DH:"removeFromParentAndCleanup is deprecated. Use removeFromParent instead",vH:"boundingBox is deprecated. Use getBoundingBox instead",BH:"argument tag is an invalid tag",CH:"cocos2d: removeChildByTag(tag \x3d %s): child not found!",ZU:"removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead",KH:"cc.Node.stopActionBy(): argument tag an invalid tag",wH:"cc.Node.getActionByTag(): argument tag is an invalid tag",FH:"resumeSchedulerAndActions is deprecated, please use resume instead.",
AH:"pauseSchedulerAndActions is deprecated, please use pause instead.",tH:"Unknown callback function",EH:"child must be non-null",GH:"cc.Node.runAction(): action must be non-null",HH:"callback function must be non-null",IH:"interval must be positive",YU:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",eG:"cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses",zT:"",yy:"cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.",UJ:"cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!",
WJ:"cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!",VJ:"cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!",TJ:"cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil",SG:"Invalid parameter.",Wp:"Don't call this method if the event is for touch.",EO:"Invalid scene graph priority!",FO:"0 priority is forbidden for fixed priority since it's used for scene graph based priority.",JO:"Invalid listener type!",
KO:"Can't set fixed priority with scene graph based listener.",GO:"Invalid parameters.",HO:"listener must be a cc.EventListener object when adding a fixed priority listener",IO:"The listener has been registered, please don't register it again.",mH:"parameters should not be ending with null in Javascript",nH:"Invalid index in MultiplexLayer switchTo message",oH:"Invalid index in MultiplexLayer switchTo message",lH:"cc.Layer.addLayer(): layer should be non-null",NG:"Resolution not valid",OG:"should set resolutionPolicy",
mQ:"The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s",Fl:"cc.swap is being modified from original macro, please check usage",Uk:"WebGL error %s",uN:"cocos2d: cc.AnimationCache: No animations were found in provided dictionary.",vN:"cc.AnimationCache. Invalid animation format",CN:"cc.AnimationCache.addAnimations(): File could not be found",wN:"cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",xN:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
yN:"cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.",zN:"cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.",AN:"cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.",BN:"cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.",
DN:"cc.AnimationCache.addAnimations(): Invalid texture file name",NI:"cc.Sprite.reorderChild(): this child is not in children list",II:"cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode",RI:"cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found",SI:"cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index",QI:"setDisplayFrame is deprecated, please use setSpriteFrame instead.",EI:"cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode",
KI:"cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null",LI:"cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null",MI:" is null, please check.",JI:"cc.Sprite.initWithFile(): filename should be non-null",TI:"cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null",OI:"cc.Sprite.reorderChild(): child should be non-null",FI:"cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode",GI:"cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode",
vV:"cc.Sprite.addChild(): child should be non-null",VI:"cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode",AV:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",xV:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",kz:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",HI:"cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture",
wV:"Sprite.initWithTexture(): Argument must be non-nil ",UI:"Invalid spriteFrameName",zV:"Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.",BV:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",yV:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",xI:"cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children",zI:"cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.",AI:"cocos2d: WARNING: Not enough memory to resize the atlas",
CI:"cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite",BI:"cc.SpriteBatchNode.addChild(): sprite batch node should contain the child",yI:"cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null",DI:"cc.SpriteBatchNode.addChild(): child should be non-null",JS:"cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist",KS:"cocos2d: WARNING: an alias with name %s already exists",IS:"cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit",
Q5:"cocos2d: cc.SpriteFrameCahce: Frame %s not found",KF:"Please load the resource first : %s",LF:"cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null",LS:"Argument must be non-nil",sG:"cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",qG:"cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children",QT:"cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children",pG:"Sprite.initWithTexture(): Argument must be non-nil ",
nG:"cc.Sprite.addChild(): child should be non-null",RT:"Invalid spriteFrameName",ST:"Invalid argument: cc.Sprite texture setter expects a CCTexture2D.",tG:"cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null",rG:"cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null",oG:"cc.SpriteBatchNode.addChild(): child should be non-null",mJ:"cocos2d: Could not open file: %s",qz:"cc.TextureAtlas.insertQuad(): invalid totalQuads",nJ:"cc.TextureAtlas.initWithTexture():texture should be non-null",
xJ:"cc.TextureAtlas.updateQuad(): quad should be non-null",yJ:"cc.TextureAtlas.updateQuad(): Invalid index",qJ:"cc.TextureAtlas.insertQuad(): Invalid index",rJ:"cc.TextureAtlas.insertQuad(): Invalid index + amount",oJ:"cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex",pJ:"cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex",vJ:"cc.TextureAtlas.removeQuadAtIndex(): Invalid index",wJ:"cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds",sJ:"cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds",
tJ:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex",uJ:"cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex",SS:"TextureCache:addPVRTCImage does not support on HTML5",QS:"TextureCache:addPVRTCImage does not support on HTML5",XS:"textureForKey is deprecated. Please use getTextureForKey instead.",RS:"addPVRImage does not support on HTML5",TS:"cocos2d: Couldn't add UIImage in TextureCache",VS:"cocos2d: '%s' id\x3d%s %s x %s",PF:"cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s",WS:"cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)",
US:"cc.Texture.addUIImage(): image should be non-null",dJ:"initWithETCFile does not support on HTML5",hJ:"initWithPVRFile does not support on HTML5",jJ:"initWithPVRTCData does not support on HTML5",$I:"cc.Texture.addImage(): path should be non-null",fJ:"cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil",gJ:"cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s",lJ:"initWithString isn't supported on cocos2d-html5",eJ:"initWithETCFile does not support on HTML5",iJ:"initWithPVRFile does not support on HTML5",
kJ:"initWithPVRTCData does not support on HTML5",bJ:"bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format",ZI:"cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha",aJ:"cc.Texture.addImage(): path should be non-null",cJ:"NSInternalInconsistencyException",of:"Missing file: %s",UE:"cc.radiansToDegress() should be called cc.radiansToDegrees()",Mt:"Rect width exceeds maximum margin: %s",Lt:"Rect height exceeds maximum margin: %s",TG:"If program goes here, there should be event in dispatch.",
UG:"_inDispatch should be 1 here."};
b.RL=function(a){if(b.xa){var c=b.QL,d=document;if(!c){var e=d.createElement("Div"),c=e.style;e.setAttribute("id","logInfoDiv");b.xa.parentNode.appendChild(e);e.setAttribute("width","200");e.setAttribute("height",b.xa.height);c.zIndex="99999";c.position="absolute";c.top="0";c.left="0";c=b.QL=d.createElement("textarea");d=c.style;c.setAttribute("rows","20");c.setAttribute("cols","30");c.setAttribute("disabled",!0);e.appendChild(c);d.backgroundColor="transparent";d.borderBottom="1px solid #cccccc";
d.borderRightWidth="0px";d.borderLeftWidth="0px";d.borderTopWidth="0px";d.borderTopStyle="none";d.borderRightStyle="none";d.borderLeftStyle="none";d.padding="0px";d.margin=0}c.value=c.value+a+"\r\n";c.scrollTop=c.scrollHeight}};b.$A=function(a){if(b.hs(a))try{return JSON.stringify(a)}catch(c){return""}else return a};
b.sB=function(a){var c=b.q;if(a!==c.AG){var d;a>c.Hy?(d=b.RL.bind(b),b.error=function(){d("ERROR : "+b.wx.apply(b,arguments))},b.assert=function(a,c){if(!a&&c){for(var g=2;g<arguments.length;g++)c=c.replace(/(%s)|(%d)/,b.$A(arguments[g]));d("Assert: "+c)}},a!==c.xG&&(b.warn=function(){d("WARN : "+b.wx.apply(b,arguments))}),a===c.zG&&(b.log=function(){d(b.wx.apply(b,arguments))})):console&&console.log.apply&&(b.error=function(){return console.error.apply(console,arguments)},b.assert=function(a,c){if(!a&&
c){for(var d=2;d<arguments.length;d++)c=c.replace(/(%s)|(%d)/,b.$A(arguments[d]));throw Error(c);}},a!==c.Hy&&(b.warn=function(){return console.warn.apply(console,arguments)}),a===c.yG&&(b.log=function(){return console.log.apply(console,arguments)}))}};b.O.Zn=function(a,c){var d=this,e=this.Yr(),f="load "+a+" failed!";e.open("GET",a,!0);b.O.Zn.ku?(e.setRequestHeader("Accept-Charset","x-user-defined"),e.onreadystatechange=function(){if(4===e.readyState&&200===e.status){var a=b.Tz(e.responseBody);c(null,d.mr(a))}else c(f)}):(e.overrideMimeType&&e.overrideMimeType("text/plain; charset\x3dx-user-defined"),e.onload=function(){4===e.readyState&&200===e.status?c(null,d.mr(e.responseText)):c(f)});e.send(null)};
b.O.Zn.ku=/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)&&window.vU&&window.wU;b.O.mr=function(a){if(!a)return null;for(var c=new Uint8Array(a.length),d=0;d<a.length;d++)c[d]=a.charCodeAt(d)&255;return c};
b.O.Q1=function(a){var c=this.Yr(),d="load "+a+" failed!";c.open("GET",a,!1);a=null;if(b.O.Zn.ku){c.setRequestHeader("Accept-Charset","x-user-defined");c.send(null);if(200!==c.status)return b.log(d),null;(c=b.Tz(c.responseBody))&&(a=this.mr(c))}else{c.overrideMimeType&&c.overrideMimeType("text/plain; charset\x3dx-user-defined");c.send(null);if(200!==c.status)return b.log(d),null;a=this.mr(c.responseText)}return a};window.PJ=window.PJ||window.xy;
if(b.O.Zn.ku){var ba=document.createElement("script");ba.type="text/vbscript";ba.textContent='\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n';
document.body.appendChild(ba);b.Tz=function(a){for(var c={},d=0;256>d;d++)for(var e=0;256>e;e++)c[String.fromCharCode(d+256*e)]=String.fromCharCode(d)+String.fromCharCode(e);d=IEBinaryToArray_ByteStr(a);a=IEBinaryToArray_ByteStr_Last(a);return d.replace(/[\s\S]/g,function(a){return c[a]})+a}};b=b||{};b.JB="data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7";
b.Tm="data:image/png;base64,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\x3d";
b.IB="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREW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\x3d";var b=b||{},ca={id:0|998*Math.random(),oQ:0|998*Math.random(),uP:function(){return this.id++},vP:function(){return this.oQ++}};
(function(){var a=/\b_super\b/;b.Aa=function(){};b.Aa.extend=function(c){function d(){this.P=ca.vP();this.ctor&&this.ctor.apply(this,arguments)}var e=this.prototype,f=Object.create(e),g=ca.uP();ca[g]=e;var h={writable:!0,enumerable:!1,configurable:!0};f.P=null;d.id=g;h.value=g;Object.defineProperty(f,"__pid",h);d.prototype=f;h.value=d;Object.defineProperty(d.prototype,"constructor",h);this.rf&&(d.rf=b.k(this.rf));this.sf&&(d.sf=b.k(this.sf));for(var g=0,k=arguments.length;g<k;++g){var m=arguments[g],
n;for(n in m){var p="function"===typeof m[n],r="function"===typeof e[n],t=a.test(m[n]);p&&r&&t?(h.value=function(a,c){return function(){var d=this._super;this._super=e[a];var f=c.apply(this,arguments);this._super=d;return f}}(n,m[n]),Object.defineProperty(f,n,h)):p?(h.value=m[n],Object.defineProperty(f,n,h)):f[n]=m[n];if(p){var s,u;if(this.rf&&this.rf[n]){var p=this.rf[n],v;for(v in this.sf)if(this.sf[v]===p){u=v;break}b.m(f,p,m[n],m[u]?m[u]:f[u],n,u)}if(this.sf&&this.sf[n]){p=this.sf[n];for(v in this.rf)if(this.rf[v]===
p){s=v;break}b.m(f,p,m[s]?m[s]:f[s],m[n],s,n)}}}}d.extend=b.Aa.extend;d.J0=function(a){for(var c in a)f[c]=a[c]};return d}})();
b.m=function(a,c,d,e,f,g){if(a.__defineGetter__)d&&a.__defineGetter__(c,d),e&&a.__defineSetter__(c,e);else if(Object.defineProperty){var h={enumerable:!1,configurable:!0};d&&(h.get=d);e&&(h.set=e);Object.defineProperty(a,c,h)}else throw Error("browser does not support getters");if(!f&&!g)for(var h=null!=d,k=void 0!=e,m=Object.getOwnPropertyNames(a),n=0;n<m.length;n++){var p=m[n];if((a.__lookupGetter__?!a.__lookupGetter__(p):!Object.getOwnPropertyDescriptor(a,p))&&"function"===typeof a[p]){var r=a[p];
if(h&&r===d&&(f=p,!k||g))break;if(k&&r===e&&(g=p,!h||f))break}}a=a.constructor;f&&(a.rf||(a.rf={}),a.rf[f]=c);g&&(a.sf||(a.sf={}),a.sf[g]=c)};b.k=function(a){var c=a.constructor?new a.constructor:{},d;for(d in a){var e=a[d];c[d]="object"!==typeof e||!e||e instanceof b.e||e instanceof HTMLElement?e:b.k(e)}return c};b.jl=function(a,c){for(var d in a)c[d]=a[d]};b=b||{};b.ca=b.ca||{};b.xX=function(){};
b.AU={e2:0,back:6,W1:18,BX:8,f6:9,cZ:13,shift:16,cY:17,alt:18,pause:19,IX:20,escape:27,P5:32,W2:33,V2:34,end:35,home:36,left:37,r6:38,right:39,mY:40,select:41,N0:45,hU:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,I:68,zY:69,iZ:70,g:71,F0:72,I0:73,p1:74,q1:75,O1:76,T1:77,ns:78,q2:79,i:80,h3:81,r:82,Y3:83,e6:84,u:85,v:86,J:87,x:88,y:89,z:90,f2:96,g2:97,h2:98,i2:99,j2:100,k2:101,l2:102,m2:103,n2:104,o2:105,"*":106,"+":107,"-":109,numdel:110,"/":111,jZ:112,nZ:113,oZ:114,pZ:115,
qZ:116,rZ:117,sZ:118,tZ:119,uZ:120,kZ:121,lZ:122,mZ:123,p2:144,c4:145,";":186,e4:186,eZ:187,"\x3d":187,",":188,SX:188,dY:189,".":190,c3:190,yZ:191,E0:192,"[":219,v2:219,AX:220,"]":221,PX:221,quote:222,pY:1E3,qY:1001,rY:1003,oY:1004,nY:1005};b.qU=0;b.WG=1;b.XG=2;b.rU=3;b.sU=4;b.YG=5;b.s_=function(a){return 8<a.length&&137===a[0]&&80===a[1]&&78===a[2]&&71===a[3]&&13===a[4]&&10===a[5]&&26===a[6]&&10===a[7]?b.WG:2<a.length&&(73===a[0]&&73===a[1]||77===a[0]&&77===a[1]||255===a[0]&&216===a[1])?b.XG:b.YG};
b.K0=function(a,c){function d(){}d.prototype=c.prototype;a.Ss=c.prototype;a.prototype=new d;a.prototype.constructor=a};
b.CX=function(a,c,d){var e=arguments.callee.caller;if(e.Ss)return ret=e.Ss.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var f=Array.prototype.slice.call(arguments,2),g=!1,h=a.constructor;h;h=h.Ss&&h.Ss.constructor)if(h.prototype[c]===e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("cc.base called from a method of one name to a method of a different name");};b.$H=function(){this.y=this.x=0};b.i=function(a,c){return void 0===a?{x:0,y:0}:void 0===c?{x:a.x,y:a.y}:{x:a,y:c}};b.cR=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y};b.uV=function(a,c){this.width=a||0;this.height=c||0};b.size=function(a,c){return void 0===a?{width:0,height:0}:void 0===c?{width:a.width,height:a.height}:{width:a,height:c}};b.N5=function(a,c){return a&&c&&a.width===c.width&&a.height===c.height};b.Kt=function(a,c,d,e){this.x=a||0;this.y=c||0;this.width=d||0;this.height=e||0};
b.rect=function(a,c,d,e){return void 0===a?{x:0,y:0,width:0,height:0}:void 0===c?{x:a.x,y:a.y,width:a.width,height:a.height}:{x:a,y:c,width:d,height:e}};b.XE=function(a,c){return a&&c&&a.x===c.x&&a.y===c.y&&a.width===c.width&&a.height===c.height};b.Zv=function(a){return a&&0===a.x&&0===a.y&&0===a.width&&0===a.height};b.n3=function(a,c){return a&&c?!(a.x>=c.x||a.y>=c.y||a.x+a.width<=c.x+c.width||a.y+a.height<=c.y+c.height):!1};b.po=function(a){return a.x+a.width};
b.o3=function(a){return a.x+a.width/2};b.ul=function(a){return a.x};b.qo=function(a){return a.y+a.height};b.p3=function(a){return a.y+a.height/2};b.vl=function(a){return a.y};b.WE=function(a,c){return c.x>=b.ul(a)&&c.x<=b.po(a)&&c.y>=b.vl(a)&&c.y<=b.qo(a)};b.r3=function(a,c){var d=a.y+a.height,e=c.x+c.width,f=c.y+c.height;return!(a.x+a.width<c.x||e<a.x||d<c.y||f<a.y)};b.s3=function(a,c){return!(a.x+a.width<c.x||c.x+c.width<a.x||a.y+a.height<c.y||c.y+c.height<a.y)};
b.ts=function(a,c){var d=b.rect(0,0,0,0);d.x=Math.min(a.x,c.x);d.y=Math.min(a.y,c.y);d.width=Math.max(a.x+a.width,c.x+c.width)-d.x;d.height=Math.max(a.y+a.height,c.y+c.height)-d.y;return d};b.q3=function(a,c){var d=b.rect(Math.max(b.ul(a),b.ul(c)),Math.max(b.vl(a),b.vl(c)),0,0);d.width=Math.min(b.po(a),b.po(c))-b.ul(d);d.height=Math.min(b.qo(a),b.qo(c))-b.vl(d);return d};b.gz=b.Aa.extend({WB:null,xv:null,ctor:function(){window.DOMParser?(this.xv=!0,this.WB=new DOMParser):this.xv=!1},parse:function(a){return this.VB(a)},VB:function(a){var c;this.xv?c=this.WB.parseFromString(a,"text/xml"):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));return c}});
b.ZH=b.gz.extend({parse:function(a){a=this.VB(a).documentElement;if("plist"!==a.tagName)return b.warn("Not a plist file!"),{};for(var c=null,d=0,e=a.childNodes.length;d<e&&(c=a.childNodes[d],1!==c.nodeType);d++);return this.Pv(c)},Pv:function(a){var c=null,d=a.tagName;if("dict"===d)c=this.eM(a);else if("array"===d)c=this.dM(a);else if("string"===d)if(1===a.childNodes.length)c=a.firstChild.nodeValue;else for(c="",d=0;d<a.childNodes.length;d++)c+=a.childNodes[d].nodeValue;else"false"===d?c=!1:"true"===
d?c=!0:"real"===d?c=parseFloat(a.firstChild.nodeValue):"integer"===d&&(c=parseInt(a.firstChild.nodeValue,10));return c},dM: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.Pv(f))}return c},eM:function(a){for(var c={},d=null,e=0,f=a.childNodes.length;e<f;e++){var g=a.childNodes[e];1===g.nodeType&&("key"===g.tagName?d=g.firstChild.nodeValue:c[d]=this.Pv(g))}return c}});b.Z3=new b.gz;b.bR=new b.ZH;b.XM={load:function(a,c,d,e){b.O.ls(a,e)}};b.O.Zg(["txt","xml","vsh","fsh","atlas"],b.XM);b.ML={load:function(a,c,d,e){b.O.HE(a,e)}};b.O.Zg(["json","ExportJson"],b.ML);b.LL={load:function(a,c,d,e){b.O.FE(a,e)}};b.O.Zg(["js"],b.LL);b.xL={load:function(a,c,d,e){b.O.Of[c]=b.O.nl(a,function(a,d){if(a)return e(a);b.Ra.tb(c);e(null,d)})}};b.O.Zg("png jpg bmp jpeg gif ico tiff webp".split(" "),b.xL);b.tM={load:function(a,c,d,e){b.O.Of[c]=b.O.nl(d.src,function(a,d){if(a)return e(a);b.Ra.tb(c);e(null,d)})}};
b.O.Zg(["serverImg"],b.tM);b.hM={load:function(a,c,d,e){b.O.ls(a,function(a,c){if(a)return e(a);e(null,b.bR.parse(c))})}};b.O.Zg(["plist"],b.hM);
b.JK={XI:{".eot":"embedded-opentype",".ttf":"truetype",".ttc":"truetype",".woff":"woff",".svg":"svg"},FB:function(a,c,d){var e=document,f=b.path,g=this.XI,h=document.createElement("style");h.type="text/css";e.body.appendChild(h);var k="",k=isNaN(a-0)?k+("@font-face { font-family:"+a+"; src:"):k+("@font-face { font-family:'"+a+"'; src:");if(c instanceof Array)for(var m=0,n=c.length;m<n;m++)d=f.Th(c[m]).toLowerCase(),k+="url('"+c[m]+"') format('"+g[d]+"')",k+=m===n-1?";":",";else d=d.toLowerCase(),
k+="url('"+c+"') format('"+g[d]+"');";h.textContent+=k+"}";c=document.createElement("div");d=c.style;d.fontFamily=a;c.innerHTML=".";d.position="absolute";d.left="-100px";d.top="-100px";e.body.appendChild(c)},load:function(a,c,d,e){c=d.type;a=d.name;c=d.R5;b.Cd(d)?(c=b.path.Th(d),a=b.path.HN(d,c),this.FB(a,d,c)):this.FB(a,c);document.UO?document.UO.load("1em "+a).i6(function(){e(null,!0)},function(a){e(a)}):e(null,!0)}};b.O.Zg("font eot ttf woff svg ttc".split(" "),b.JK);
b.WV={load:function(a,c,d,e){b.O.Zn(a,e)}};b.vK={load:function(a,c,d,e){b.O.MQ(a,e)}};b.O.Zg(["csb"],b.vK);window.CocosEngine=b.kt="Cocos2d-JS v3.10";b.pt=0;b.EG=b.i(0,0);b.Ly=0.5;b.UT=1;b.jz=1;b.LH=1;b.lz=0;b.mz=0;b.CV=0;b.pV=1;b.oV="-hd";b.NJ=1;b.Tt=0;b.rV=0;b.iH=0;b.hH=0;b.rt=1;b.YT=b.kt+"-canvas";b.So=1;b.Ee=1;b.Ia=function(a){var c=this===b?document:this;if(a=a instanceof HTMLElement?a:c.querySelector(a))a.find=a.find||b.Ia,a.Nx=a.Nx||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.tD=a.tD||function(a){this.Nx(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.nR=a.nR||function(a){this.Nx(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&this.parentNode.removeChild(this);return this},a.EN=a.EN||
function(a){a.appendChild(this);return this},a.gR=a.gR||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.Fo=a.Fo||function(){this.style[b.Ia.bT]=b.Ia.translate(this.position)+b.Ia.rotate(this.rotation)+b.Ia.scale(this.scale)+b.Ia.Dl(this.Dl);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.Dl=a.Dl||{x:0,y:0},a.l6=function(a,c){this.position.x=a;this.position.y=c;this.Fo();return this},a.rotate=function(a){this.rotation=
a;this.Fo();return this},a.resize=function(a,c){this.scale.x=a;this.scale.y=c;this.Fo();return this},a.l5=function(a,c){this.Dl.x=a;this.Dl.y=c;this.Fo();return this};return a};switch(b.W.Qh){case b.W.Ay:b.Ia.no="Moz";b.Ia.hl=!0;break;case b.W.zy:case b.W.$s:b.Ia.no="webkit";b.Ia.hl=!0;break;case b.W.Dy:b.Ia.no="O";b.Ia.hl=!1;break;case b.W.By:b.Ia.no="ms";b.Ia.hl=!1;break;default:b.Ia.no="webkit",b.Ia.hl=!0}b.Ia.bT=b.Ia.no+"Transform";
b.Ia.translate=b.Ia.hl?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};b.Ia.rotate=b.Ia.hl?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};b.Ia.scale=function(a){return"scale("+a.x+", "+a.y+") "};b.Ia.Dl=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};b.kT=function(a){return b.Ia(document.createElement(a))};
b.Ia.wZ=function(a){var c=0,d=0;do c+=a.offsetLeft,d+=a.offsetTop;while(a=a.offsetParent);return{x:c,y:d}};b.xU=-1;b.PI=Math.PI;b.oU=parseFloat("3.402823466e+38F");b.pU=parseFloat("1.175494351e-38F");b.aI=b.PI/180;b.Ky=180/b.PI;b.sz=4294967295;b.Fl=function(a,c,d){if(!b.hs(d)||b.Ug(d.x)||b.Ug(d.y))b.log(b.j.Fl);else{var e=d[a];d[a]=d[c];d[c]=e}};b.LQ=function(a,c,d){return a+(c-a)*d};b.i3=function(){return 16777215*Math.random()};b.k3=function(){return 2*(Math.random()-0.5)};b.j3=Math.random;b.ye=function(a){return a*b.aI};b.Yx=function(a){return a*b.Ky};b.UE=function(a){b.log(b.j.UE);return a*b.Ky};
b.He=Number.MAX_VALUE-1;b.b2=function(a){a.Ma&&(a.Ma.Rb(),a.Ma.dg())};b.bZ=function(){};b.gY=function(){};b.Wf=function(){b.Rf+=1};b.np=1.192092896E-7;b.Qa=b.rt?function(){return b.la.wi}:function(){return 1};b.eR=function(a){var c=b.Qa();return b.i(a.x*c,a.y*c)};b.dR=function(a){var c=b.Qa();return b.i(a.x/c,a.y/c)};b.Qv=function(a,c){var d=b.Qa();c.x=a.x/d;c.y=a.y/d};b.DS=function(a){var c=b.Qa();return b.size(a.width*c,a.height*c)};
b.CS=function(a){var c=b.Qa();return b.size(a.width/c,a.height/c)};b.PC=function(a,c){var d=b.Qa();c.width=a.width/d;c.height=a.height/d};b.ss=b.rt?function(a){var c=b.Qa();return b.rect(a.x/c,a.y/c,a.width/c,a.height/c)}:function(a){return a};b.ro=b.rt?function(a){var c=b.Qa();return b.rect(a.x*c,a.y*c,a.width*c,a.height*c)}:function(a){return a};b.ONE=1;b.ZERO=0;b.SRC_ALPHA=770;b.SRC_ALPHA_SATURATE=776;b.SRC_COLOR=768;b.DST_ALPHA=772;b.DST_COLOR=774;b.ONE_MINUS_SRC_ALPHA=771;
b.ONE_MINUS_SRC_COLOR=769;b.ONE_MINUS_DST_ALPHA=773;b.ONE_MINUS_DST_COLOR=775;b.ONE_MINUS_CONSTANT_ALPHA=32772;b.ONE_MINUS_CONSTANT_COLOR=32770;b.LINEAR=9729;b.REPEAT=10497;b.CLAMP_TO_EDGE=33071;b.MIRRORED_REPEAT=33648;b.fg=b.SRC_ALPHA;b.q.addEventListener(b.q.nf,function(){b.ta===b.q.ic&&b.LH&&(b.fg=b.ONE)});b.mf=b.ONE_MINUS_SRC_ALPHA;b.Uk=function(){if(b.wl===b.q.ic){var a=b.o.getError();a&&b.log(b.j.Uk,a)}};b.dU=0;b.bU=1;b.eU=2;b.cU=3;b.aU=2;b.KV=0;b.Dc=1;b.wm=2;b.Sp=4;b.gu=b.Dc|b.wm|b.Sp;
b.uU=0;b.Ua=0;b.he=1;b.ie=2;b.LV=3;b.um=0;b.tm=1;b.Hj=2;b.Rp=3;b.Qp=4;b.Pp=5;b.vm=6;b.eu=7;b.IV=8;b.pm="ShaderPositionTextureColor";b.Qt="ShaderPositionTextureColorAlphaTest";b.Dp="ShaderPositionColor";b.Ep="ShaderPositionTexture";b.Rt="ShaderPositionTexture_uColor";b.Pt="ShaderPositionTextureA8Color";b.St="ShaderPosition_uColor";b.hz="ShaderPositionLengthTextureColor";b.IJ="CC_PMatrix";b.GJ="CC_MVMatrix";b.HJ="CC_MVPMatrix";b.MJ="CC_Time";b.LJ="CC_SinTime";b.FJ="CC_CosTime";b.JJ="CC_Random01";
b.KJ="CC_Texture0";b.EJ="CC_alpha_value";b.Ml="a_color";b.di="a_position";b.Aj="a_texCoord";b.fH=32;b.Gy=3233828865;b.Tp=3233828866;b.sH=8801;b.dI=8802;b.FG=8803;b.Ln=function(a,c){if(a&&0<a.length)for(var d=0;d<a.length;d++)if(!(a[d]instanceof c))return b.log("element type is wrong!"),!1;return!0};b.Jc=function(a,c){for(var d=0,e=a.length;d<e;d++)if(a[d]===c){a.splice(d,1);break}};b.wX=function(a,c){for(var d=0,e=c.length;d<e;d++)b.Jc(a,c[d])};
b.vX=function(a,c,d){a.splice.apply(a,[d,0].concat(c));return a};b.HD=function(a){var c,d=a.length,e=Array(d);for(c=0;c<d;c+=1)e[c]=a[c];return e};b=b||{};b.ca=b.ca||{};
b.q.addEventListener(b.q.nf,function(){if(b.ta===b.q.ic){b.color=function(a,d,e,f,g,h){return void 0===a?new b.Nc(0,0,0,255,g,h):b.Cd(a)?(a=b.mE(a),new b.Nc(a.r,a.g,a.b,a.a)):b.hs(a)?new b.Nc(a.r,a.g,a.b,a.a,a.arrayBuffer,a.offset):new b.Nc(a,d,e,f,g,h)};b.Nc=function(a,d,e,f,g,h){this.Kb=g||new ArrayBuffer(b.Nc.BYTES_PER_ELEMENT);this.Za=h||0;g=this.Kb;h=this.Za;var k=Uint8Array.BYTES_PER_ELEMENT;this.Yv=new Uint8Array(g,h,1);this.$u=new Uint8Array(g,h+k,1);this.uu=new Uint8Array(g,h+2*k,1);this.mu=
new Uint8Array(g,h+3*k,1);this.Yv[0]=a||0;this.$u[0]=d||0;this.uu[0]=e||0;this.mu[0]=null==f?255:f;void 0===f&&(this.cN=!0)};b.Nc.BYTES_PER_ELEMENT=4;var a=b.Nc.prototype;a.jL=function(){return this.Yv[0]};a.BM=function(a){this.Yv[0]=0>a?0:a};a.bL=function(){return this.$u[0]};a.yM=function(a){this.$u[0]=0>a?0:a};a.dv=function(){return this.uu[0]};a.jw=function(a){this.uu[0]=0>a?0:a};a.av=function(){return this.mu[0]};a.gw=function(a){this.mu[0]=0>a?0:a};b.m(a,"r",a.jL,a.BM);b.m(a,"g",a.bL,a.yM);
b.m(a,"b",a.dv,a.jw);b.m(a,"a",a.av,a.gw);b.assert(b.mc(b.ca.Fj),b.j.of,"CCTypesPropertyDefine.js");b.ca.Fj();delete b.ca.Fj;D=function(a,d,e,f){this.Kb=e||new ArrayBuffer(D.BYTES_PER_ELEMENT);this.Za=f||0;this.Xi=new Float32Array(this.Kb,this.Za,1);this.Yi=new Float32Array(this.Kb,this.Za+4,1);this.Xi[0]=a||0;this.Yi[0]=d||0};D.BYTES_PER_ELEMENT=8;a=D.prototype;a.qv=function(){return this.Xi[0]};a.ww=function(a){this.Xi[0]=a};a.rv=function(){return this.Yi[0]};a.xw=function(a){this.Yi[0]=a};b.m(a,
"x",a.qv,a.ww);b.m(a,"y",a.rv,a.xw);E=function(a,d,e,f,g){this.Kb=f||new ArrayBuffer(E.BYTES_PER_ELEMENT);this.Za=g||0;f=this.Kb;g=this.Za;this.Xi=new Float32Array(f,g,1);this.Xi[0]=a||0;this.Yi=new Float32Array(f,g+Float32Array.BYTES_PER_ELEMENT,1);this.Yi[0]=d||0;this.ax=new Float32Array(f,g+2*Float32Array.BYTES_PER_ELEMENT,1);this.ax[0]=e||0};E.BYTES_PER_ELEMENT=12;a=E.prototype;a.qv=function(){return this.Xi[0]};a.ww=function(a){this.Xi[0]=a};a.rv=function(){return this.Yi[0]};a.xw=function(a){this.Yi[0]=
a};a.wL=function(){return this.ax[0]};a.KM=function(a){this.ax[0]=a};b.m(a,"x",a.qv,a.ww);b.m(a,"y",a.rv,a.xw);b.m(a,"z",a.wL,a.KM);G=function(a,d,e,f){this.Kb=e||new ArrayBuffer(G.BYTES_PER_ELEMENT);this.Za=f||0;this.Nw=new Float32Array(this.Kb,this.Za,1);this.Rw=new Float32Array(this.Kb,this.Za+4,1);this.Nw[0]=a||0;this.Rw[0]=d||0};G.BYTES_PER_ELEMENT=8;a=G.prototype;a.qL=function(){return this.Nw[0]};a.IM=function(a){this.Nw[0]=a};a.tL=function(){return this.Rw[0]};a.JM=function(a){this.Rw[0]=
a};b.m(a,"u",a.qL,a.IM);b.m(a,"v",a.tL,a.JM);b.Jt=function(a,d,e,f,g,h){this.Kb=g||new ArrayBuffer(b.Jt.BYTES_PER_ELEMENT);this.Za=h||0;g=this.Kb;h=D.BYTES_PER_ELEMENT;this.Jk=a?new D(a.x,a.y,g,0):new D(0,0,g,0);this.Mk=d?new D(d.x,d.y,g,h):new D(0,0,g,h);this.Oj=e?new D(e.x,e.y,g,2*h):new D(0,0,g,2*h);this.Sj=f?new D(f.x,f.y,g,3*h):new D(0,0,g,3*h)};b.Jt.BYTES_PER_ELEMENT=32;a=b.Jt.prototype;a.mv=function(){return this.Jk};a.sw=function(a){this.Jk.x=a.x;this.Jk.y=a.y};a.nv=function(){return this.Mk};
a.tw=function(a){this.Mk.x=a.x;this.Mk.y=a.y};a.ev=function(){return this.Oj};a.kw=function(a){this.Oj.x=a.x;this.Oj.y=a.y};a.fv=function(){return this.Sj};a.lw=function(a){this.Sj.x=a.x;this.Sj.y=a.y};b.m(a,"tl",a.mv,a.sw);b.m(a,"tr",a.nv,a.tw);b.m(a,"bl",a.ev,a.kw);b.m(a,"br",a.fv,a.lw);b.mV=function(a,d,e,f){this.bl=a||new E(0,0,0);this.br=d||new E(0,0,0);this.tl=e||new E(0,0,0);this.tr=f||new E(0,0,0)};b.ge=function(a,d,e,f,g){this.Kb=f||new ArrayBuffer(b.ge.BYTES_PER_ELEMENT);this.Za=g||0;f=
this.Kb;g=this.Za;var h=E.BYTES_PER_ELEMENT;this.Sk=a?new E(a.x,a.y,a.z,f,g):new E(0,0,0,f,g);this.Km=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Ri=e?new G(e.u,e.v,f,g+h+b.Nc.BYTES_PER_ELEMENT):new G(0,0,f,g+h+b.Nc.BYTES_PER_ELEMENT)};b.ge.BYTES_PER_ELEMENT=24;a=b.ge.prototype;a.pv=function(){return this.Sk};a.vw=function(a){var d=this.Sk;d.x=a.x;d.y=a.y;d.z=a.z};a.iv=function(){return this.Km};a.mw=function(a){var d=this.Km;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a};a.ov=function(){return this.Ri};
a.uw=function(a){this.Ri.u=a.u;this.Ri.v=a.v};b.m(a,"vertices",a.pv,a.vw);b.m(a,"colors",a.iv,a.mw);b.m(a,"texCoords",a.ov,a.uw);b.ib=function(a,d,e,f,g,h){this.Kb=g||new ArrayBuffer(b.ib.BYTES_PER_ELEMENT);this.Za=h||0;g=this.Kb;h=this.Za;var k=b.ge.BYTES_PER_ELEMENT;this.Jk=a?new b.ge(a.vertices,a.colors,a.texCoords,g,h):new b.ge(null,null,null,g,h);this.Oj=d?new b.ge(d.vertices,d.colors,d.texCoords,g,h+k):new b.ge(null,null,null,g,h+k);this.Mk=e?new b.ge(e.vertices,e.colors,e.texCoords,g,h+2*k):
new b.ge(null,null,null,g,h+2*k);this.Sj=f?new b.ge(f.vertices,f.colors,f.texCoords,g,h+3*k):new b.ge(null,null,null,g,h+3*k)};b.ib.BYTES_PER_ELEMENT=96;a=b.ib.prototype;a.mv=function(){return this.Jk};a.sw=function(a){var d=this.Jk;d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};a.ev=function(){return this.Oj};a.kw=function(a){var d=this.Oj;d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};a.nv=function(){return this.Mk};a.tw=function(a){var d=this.Mk;d.vertices=a.vertices;
d.colors=a.colors;d.texCoords=a.texCoords};a.fv=function(){return this.Sj};a.lw=function(a){var d=this.Sj;d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};a.SK=function(){return this.Kb};b.m(a,"tl",a.mv,a.sw);b.m(a,"tr",a.nv,a.tw);b.m(a,"bl",a.ev,a.kw);b.m(a,"br",a.fv,a.lw);b.m(a,"arrayBuffer",a.SK,null);b.QJ=function(){return new b.ib};b.uz=function(a){if(!a)return b.QJ();var d=a.tl,e=a.bl,f=a.tr;a=a.br;return{tl:{vertices:{x:d.vertices.x,y:d.vertices.y,z:d.vertices.z},colors:{r:d.colors.r,
g:d.colors.g,b:d.colors.b,a:d.colors.a},texCoords:{u:d.texCoords.u,v:d.texCoords.v}},bl:{vertices:{x:e.vertices.x,y:e.vertices.y,z:e.vertices.z},colors:{r:e.colors.r,g:e.colors.g,b:e.colors.b,a:e.colors.a},texCoords:{u:e.texCoords.u,v:e.texCoords.v}},tr:{vertices:{x:f.vertices.x,y:f.vertices.y,z:f.vertices.z},colors:{r:f.colors.r,g:f.colors.g,b:f.colors.b,a:f.colors.a},texCoords:{u:f.texCoords.u,v:f.texCoords.v}},br:{vertices:{x:a.vertices.x,y:a.vertices.y,z:a.vertices.z},colors:{r:a.colors.r,g:a.colors.g,
b:a.colors.b,a:a.colors.a},texCoords:{u:a.texCoords.u,v:a.texCoords.v}}}};b.JV=function(a){if(!a)return[];for(var d=[],e=0;e<a.length;e++)d.push(b.uz(a[e]));return d};b.Ie=function(a,d,e,f,g){this.Kb=f||new ArrayBuffer(b.Ie.BYTES_PER_ELEMENT);this.Za=g||0;f=this.Kb;g=this.Za;var h=D.BYTES_PER_ELEMENT;this.Sk=a?new D(a.x,a.y,f,g):new D(0,0,f,g);this.Km=d?b.color(d.r,d.g,d.b,d.a,f,g+h):b.color(0,0,0,0,f,g+h);this.Ri=e?new G(e.u,e.v,f,g+h+b.Nc.BYTES_PER_ELEMENT):new G(0,0,f,g+h+b.Nc.BYTES_PER_ELEMENT)};
b.Ie.BYTES_PER_ELEMENT=20;a=b.Ie.prototype;a.pv=function(){return this.Sk};a.vw=function(a){this.Sk.x=a.x;this.Sk.y=a.y};a.iv=function(){return this.Km};a.mw=function(a){var d=this.Km;d.r=a.r;d.g=a.g;d.b=a.b;d.a=a.a};a.ov=function(){return this.Ri};a.uw=function(a){this.Ri.u=a.u;this.Ri.v=a.v};b.m(a,"vertices",a.pv,a.vw);b.m(a,"colors",a.iv,a.mw);b.m(a,"texCoords",a.ov,a.uw);b.bb=function(a,d,e,f,g){this.Kb=f||new ArrayBuffer(b.bb.BYTES_PER_ELEMENT);this.Za=g||0;f=this.Kb;g=this.Za;var h=b.Ie.BYTES_PER_ELEMENT;
this.zz=a?new b.Ie(a.vertices,a.colors,a.texCoords,f,g):new b.Ie(null,null,null,f,g);this.Gz=d?new b.Ie(d.vertices,d.colors,d.texCoords,f,g+h):new b.Ie(null,null,null,f,g+h);this.Lz=e?new b.Ie(e.vertices,e.colors,e.texCoords,f,g+2*h):new b.Ie(null,null,null,f,g+2*h)};b.bb.BYTES_PER_ELEMENT=60;a=b.bb.prototype;a.av=function(){return this.zz};a.gw=function(a){var d=this.zz;d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};a.dv=function(){return this.Gz};a.jw=function(a){var d=this.Gz;
d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};a.WK=function(){return this.Lz};a.wM=function(a){var d=this.Lz;d.vertices=a.vertices;d.colors=a.colors;d.texCoords=a.texCoords};b.m(a,"a",a.av,a.gw);b.m(a,"b",a.dv,a.jw);b.m(a,"c",a.WK,a.wM)}});b.ca.Fj=function(){var a=b.color;a.uL=function(){return a(255,255,255)};a.vL=function(){return a(255,255,0)};a.UK=function(){return a(0,0,255)};a.dL=function(){return a(0,255,0)};a.kL=function(){return a(255,0,0)};a.fL=function(){return a(255,0,255)};a.TK=function(){return a(0,0,0)};a.iL=function(){return a(255,127,0)};a.cL=function(){return a(166,166,166)};b.m(a,"WHITE",a.uL);b.m(a,"YELLOW",a.vL);b.m(a,"BLUE",a.UK);b.m(a,"GREEN",a.dL);b.m(a,"RED",a.kL);b.m(a,"MAGENTA",a.fL);b.m(a,"BLACK",a.TK);b.m(a,
"ORANGE",a.iL);b.m(a,"GRAY",a.cL);b.vb.yK=function(){return new b.vb(b.ONE,b.ZERO)};b.vb.jK=function(){return new b.vb(b.ONE,b.ONE_MINUS_SRC_ALPHA)};b.vb.iK=function(){return new b.vb(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA)};b.vb.fK=function(){return new b.vb(b.SRC_ALPHA,b.ONE)};b.m(b.vb,"DISABLE",b.vb.yK);b.m(b.vb,"ALPHA_PREMULTIPLIED",b.vb.jK);b.m(b.vb,"ALPHA_NON_PREMULTIPLIED",b.vb.iK);b.m(b.vb,"ADDITIVE",b.vb.fK)};b.Nc=function(a,c,d,e){this.r=a||0;this.g=c||0;this.b=d||0;this.a=null==e?255:e};b.color=function(a,c,d,e){return void 0===a?{r:0,g:0,b:0,a:255}:b.Cd(a)?b.mE(a):b.hs(a)?{r:a.r,g:a.g,b:a.b,a:null==a.a?255:a.a}:{r:a,g:c,b:d,a:null==e?255:e}};b.QX=function(a,c){return a.r===c.r&&a.g===c.g&&a.b===c.b};function da(){this.timestamp=this.z=this.y=this.x=0}function D(a,c){this.x=a||0;this.y=c||0}b.Ws=function(a,c){return new D(a,c)};function E(a,c,d){this.x=a||0;this.y=c||0;this.z=d||0}
b.A6=function(a,c,d){return new E(a,c,d)};function G(a,c){this.u=a||0;this.v=c||0}b.g6=function(a,c){return new G(a,c)};b.vb=function(a,c){this.src=a;this.ya=c};b.DX=function(){return new b.vb(b.ONE,b.ZERO)};b.mE=function(a){a=a.replace(/^#?/,"0x");a=parseInt(a);return b.color(a>>16,(a>>8)%256,a%256)};b.RX=function(a){var c=a.r.toString(16),d=a.g.toString(16),e=a.b.toString(16);return"#"+(16>a.r?"0"+c:c)+(16>a.g?"0"+d:d)+(16>a.b?"0"+e:e)};b.Kp=0;b.rm=1;b.nz=2;b.xm=0;b.RJ=1;b.vz=2;
b.QV=b.Aa.extend({nk:null,Gn:null,lu:0,ctor:function(){this.nk={};this.Gn={};this.lu=2<<(0|10*Math.random())},aK:function(){this.lu++;return"key_"+this.lu},W4:function(a,c){if(null!=c){var d=this.aK();this.nk[d]=c;this.Gn[d]=a}},UQ:function(a){if(null==a)return null;var c=this.nk,d;for(d in c)if(c[d]===a)return this.Gn[d];return null},y6:function(a){return this.UQ(a)},pR:function(a){if(null!=a){var c=this.nk,d;for(d in c)if(c[d]===a){delete this.Gn[d];delete c[d];break}}},H3:function(a){if(null!=
a)for(var c=0;c<a.length;c++)this.pR(a[c])},sN:function(){var a=[],c=this.nk,d;for(d in c)a.push(c[d]);return a},z3:function(){this.nk={};this.Gn={}},count:function(){return this.sN().length}});
function ea(a){this.fontName="Arial";this.fontSize=12;this.textAlign=b.rm;this.verticalAlign=b.xm;this.fillStyle=b.color(255,255,255,255);this.boundingHeight=this.boundingWidth=0;this.qy=!1;this.strokeStyle=b.color(255,255,255,255);this.lineWidth=1;this.fontWeight=this.fontStyle=this.lineHeight="normal";this.JF=!1;this.shadowBlur=this.shadowOffsetY=this.shadowOffsetX=0;this.shadowOpacity=1;if(a&&a instanceof Object)for(var c in a)this[c]=a[c]}
function fa(a){return a.fontStyle+" "+a.fontWeight+" "+a.fontSize+"px/"+(a.lineHeight.charAt?a.lineHeight:a.lineHeight+"px")+" '"+a.fontName+"'"}b.q.addEventListener(b.q.nf,function(){b.ta===b.q.Jb&&(b.assert(b.mc(b.ca.Fj),b.j.of,"CCTypesPropertyDefine.js"),b.ca.Fj(),delete b.ca.Fj)});b.FV=[];b.GV={};b.BG="device-dpi";b.CG="high-dpi";b.$T="medium-dpi";b.ZT="low-dpi";b.jd={fa:function(){this.nE=document.getElementsByTagName("html")[0]},availWidth:function(a){return a&&a!==this.nE?a.clientWidth:window.innerWidth},availHeight:function(a){return a&&a!==this.nE?a.clientHeight:window.innerHeight},ms:{width:"device-width"},bx:b.W.Qh};-1<window.navigator.userAgent.indexOf("OS 8_1_")&&(b.jd.bx=b.W.Cy);b.W.mj===b.W.up&&(b.jd.bx=b.W.$s);
switch(b.jd.bx){case b.W.$s:b.jd.ms["minimal-ui"]="true";b.jd.availWidth=function(a){return a.clientWidth};b.jd.availHeight=function(a){return a.clientHeight};break;case b.W.zy:b.jd.__defineGetter__("target-densitydpi",function(){return b.view.pr});case b.W.kG:case b.W.lG:b.jd.availWidth=function(a){return a.clientWidth};b.jd.availHeight=function(a){return a.clientHeight};break;case b.W.Cy:b.jd.fa=function(a){if(!a.Bm){var c=function(){a.zl(a.Me.width,a.Me.height,a.Ve);window.removeEventListener("resize",
c,!1)};window.addEventListener("resize",c,!1)}}}
b.it=b.Aa.extend({bW:null,qd:null,Me:null,Di:null,ad:null,xe:null,dw:!1,tu:!0,xi:1,Ww:"",bw:null,ha:1,RB:1,Da:1,SB:1,ik:0,Hv:5,Ve:null,sC:null,wC:null,vC:null,tC:null,uC:null,Zm:!1,XV:!1,YW:null,mB:null,nB:null,SW:!1,Ju:null,zh:null,Yu:1,Bm:!1,uB:!0,pr:null,ctor:function(){var a=document,c=b.gh,d=b.de;b.jd.fa(this);this.zh=b.bf.parentNode===a.body?a.documentElement:b.bf.parentNode;this.qd=b.size(0,0);this.uv();var a=b.xa.width,e=b.xa.height;this.Me=b.size(a,e);this.Di=b.size(a,e);this.ad=b.rect(0,
0,a,e);this.xe=b.rect(0,0,a,e);this.Ju={left:0,top:0};this.Ww="Cocos2dHTML5";a=b.W;this.BO(a.mj===a.up||a.mj===a.$y);b.Ll&&b.Ll.fa(this.xe);this.sC=new b.hd(c.To,d.mt);this.wC=new b.hd(c.XH,d.SHOW_ALL);this.vC=new b.hd(c.To,d.xt);this.tC=new b.hd(c.To,d.nt);this.uC=new b.hd(c.To,d.ot);this.mB=b.xa;this.nB=b.o;this.pr=b.CG},tn:function(){var a;a=this.zl?this:b.view;var c=a.qd.width,d=a.qd.height;a.uv();if(a.qd.width!==c||a.qd.height!==d)a.bw&&a.bw.call(),c=a.Di.width,d=a.Di.height,0<c&&a.zl(c,d,a.Ve)},
p5:function(a){this.pr=a;this.Fz()},d0:function(){return this.pr},tR:function(a){a?this.Bm||(this.Bm=!0,window.addEventListener("resize",this.tn),window.addEventListener("orientationchange",this.tn)):this.Bm&&(this.Bm=!1,window.removeEventListener("resize",this.tn),window.removeEventListener("orientationchange",this.tn))},i5:function(a){if(b.mc(a)||null==a)this.bw=a},uv:function(){var a=this.qd;a.width=b.jd.availWidth(this.zh);a.height=b.jd.availHeight(this.zh)},TV:function(){var a=this.Di.width,
c=this.Di.height;0<a&&this.zl(a,c,this.Ve)},JC:function(a,c){var d=document.getElementById("cocosMetaElement");d&&c&&document.head.removeChild(d);var e=document.getElementsByName("viewport"),e=e?e[0]:null,f,g,h;f=e?e.content:"";d=d||document.createElement("meta");d.id="cocosMetaElement";d.name="viewport";d.content="";for(g in a)-1==f.indexOf(g)?f+=","+g+"\x3d"+a[g]:c&&(h=RegExp(g+"s*\x3ds*[^,]+"),f.replace(h,g+"\x3d"+a[g]));/^,/.test(f)&&(f=f.substr(1));d.content=f;e&&(e.content=f);document.head.appendChild(d)},
Fz:function(){this.uB&&this.JC(b.jd.ms,!1)},NW:function(){var a=b.Qa();this.Da=this.ha=a},GW:function(){this.ha=this.RB;this.Da=this.SB},UV:function(){},Vn:function(){this.Zm=!0},kN:function(a){this.uB=a},BO:function(a){this.dw=a?!0:!1},e1:function(){return this.dw},aZ:function(a){this.tu=a?!0:!1},U0:function(){return this.tu},end:function(){},c1:function(){return null!==this.mB&&null!==this.nB},I4:function(a){this.Yu=a;b.la.Ao(b.la.Ur())},b6:function(){},N4:function(){},s4:function(a,c){this.Ju=
{left:a,top:c}},RZ:function(){return this.Ju},NZ:function(){return b.size(b.xa.width,b.xa.height)},l_:function(){return b.size(this.qd.width,this.qd.height)},H4:function(a,c){this.qd.width=a;this.qd.height=c;this.zh.style.width=a+"px";this.zh.style.height=c+"px";this.tn();b.la.Ao(b.la.Ur())},JX:function(){},dl:function(){return b.size(this.xe.width,this.xe.height)},v0:function(){return b.size(this.xe.width*this.ha,this.xe.height*this.Da)},Xr:function(){return b.i(this.xe.x,this.xe.y)},u0:function(){return b.i(this.xe.x*
this.ha,this.xe.y*this.Da)},HX:function(){return!0},P_:function(){return this.Ve},eS:function(a){if(a instanceof b.hd)this.Ve=a;else{var c=b.hd;a===c.mt&&(this.Ve=this.sC);a===c.SHOW_ALL&&(this.Ve=this.wC);a===c.xt&&(this.Ve=this.vC);a===c.nt&&(this.Ve=this.tC);a===c.ot&&(this.Ve=this.uC)}},zl:function(a,c,d){if(0<a||0<c)if(this.eS(d),d=this.Ve){d.pj(this);b.W.jj&&this.Fz();this.uv();this.Di.width=this.Me.width=a;this.Di.height=this.Me.height=c;var e=d.apply(this,this.Me);e.scale&&2===e.scale.length&&
(this.ha=e.scale[0],this.Da=e.scale[1]);e.viewport&&(a=this.ad,c=this.xe,e=e.viewport,a.x=e.x,a.y=e.y,a.width=e.width,a.height=e.height,c.x=-a.x/this.ha,c.y=-a.y/this.Da,c.width=b.xa.width/this.ha,c.height=b.xa.height/this.Da,b.o.zo&&b.o.zo(a.x,-a.y));a=b.la;a.sc.width=this.Me.width;a.sc.height=this.Me.height;d.oj(this);b.bi.width=a.sc.width;b.bi.height=a.sc.height;b.ta===b.q.ic&&a.vF();this.RB=this.ha;this.SB=this.Da;b.GG&&b.GG.FW();b.Ll&&b.Ll.fa(this.xe)}else b.log(b.j.OG);else b.log(b.j.NG)},XD:function(){return b.size(this.Me.width,
this.Me.height)},g5:function(a,c,d){this.JC({width:a,"target-densitydpi":b.BG},!0);document.body.style.width=a+"px";document.body.style.left="0px";document.body.style.top="0px";this.zl(a,c,d)},yS:function(a,c,d,e){var f=this.Yu,g=this.ha,h=this.Da;b.o.viewport(a*g*f+this.ad.x*f,c*h*f+this.ad.y*f,d*g*f,e*h*f)},iS:function(a,c,d,e){var f=this.Yu,g=this.ha,h=this.Da;b.o.scissor(a*g*f+this.ad.x*f,c*h*f+this.ad.y*f,d*g*f,e*h*f)},h1:function(){var a=b.o;return a.isEnabled(a.SCISSOR_TEST)},U_:function(){var a=
b.o,c=this.ha,d=this.Da,a=a.getParameter(a.SCISSOR_BOX);return b.rect((a[0]-this.ad.x)/c,(a[1]-this.ad.y)/d,a[2]/c,a[3]/d)},J5:function(a){null!=a&&0<a.length&&(this.Ww=a)},s0:function(){return this.Ww},t0:function(){return this.ad},eE:function(){return this.ha},fE:function(){return this.Da},$Z:function(){return this.xi},hx:function(a,c,d){return{x:this.xi*(a-d.left),y:this.xi*(d.top+d.height-c)}},uK:function(a,c){var d=this.ad;a.x=(this.xi*(a.x-c.left)-d.x)/this.ha;a.y=(this.xi*(c.top+c.height-a.y)-
d.y)/this.Da},jq:function(a){for(var c=this.ad,d=this.ha,e=this.Da,f,g,h,k=0;k<a.length;k++)f=a[k],g=f.Wb,h=f.Ue,f.qw((g.x-c.x)/d,(g.y-c.y)/e),f.Mi((h.x-c.x)/d,(h.y-c.y)/e)}});b.it.kv=function(){this.Gq||(this.Gq=this.Gq||new b.it,this.Gq.Vn());return this.Gq};
b.gh=b.Aa.extend({pj:function(){},apply:function(){},oj:function(){},yw:function(a,c,d){var e=a.zh;b.view.tu&&b.W.jj&&e===document.documentElement&&b.screen.GN(e);var e=b.xa,f=b.bf;f.style.width=e.style.width=c+"px";f.style.height=e.style.height=d+"px";f=a.xi=1;a.dw&&(f=a.xi=window.devicePixelRatio||1);e.width=c*f;e.height=d*f;b.o.dF&&b.o.dF();a=document.body;var g;a&&(g=a.style)&&(g.paddingTop=g.paddingTop||"0px",g.paddingRight=g.paddingRight||"0px",g.paddingBottom=g.paddingBottom||"0px",g.paddingLeft=
g.paddingLeft||"0px",g.borderTop=g.borderTop||"0px",g.borderRight=g.borderRight||"0px",g.borderBottom=g.borderBottom||"0px",g.borderLeft=g.borderLeft||"0px",g.marginTop=g.marginTop||"0px",g.marginRight=g.marginRight||"0px",g.marginBottom=g.marginBottom||"0px",g.marginLeft=g.marginLeft||"0px")},YA:function(){document.body.insertBefore(b.bf,document.body.firstChild);var a=document.body.style;a.width=window.innerWidth+"px";a.height=window.innerHeight+"px";a.overflow="hidden";a=b.bf.style;a.position=
"fixed";a.left=a.top="0px";document.body.scrollTop=0}});b.de=b.Aa.extend({cw:{scale:[1,1],viewport:null},Fm:function(a,c,d,e,f,g){2>Math.abs(a-d)&&(d=a);2>Math.abs(c-e)&&(e=c);a=b.rect(Math.round((a-d)/2),Math.round((c-e)/2),d,e);this.cw.scale=[f,g];this.cw.viewport=a;return this.cw},pj:function(){},apply:function(){return{scale:[1,1]}},oj:function(){}});
(function(){var a=b.gh.extend({apply:function(a){this.yw(a,a.qd.width,a.qd.height)}}),c=b.gh.extend({apply:function(a,c){var d=a.qd.width,e=a.qd.height,f=b.bf.style,p=c.width,r=c.height,t=d/p,s=e/r,u,v;t<s?(u=d,v=r*t):(u=p*s,v=e);p=Math.round((d-u)/2);v=Math.round((e-v)/2);this.yw(a,d-2*p,e-2*v);f.marginLeft=p+"px";f.marginRight=p+"px";f.marginTop=v+"px";f.marginBottom=v+"px"}});a.extend({pj:function(a){this._super(a);a.zh=document.documentElement},apply:function(a){this._super(a);this.YA()}});c.extend({pj:function(a){this._super(a);
a.zh=document.documentElement},apply:function(a,c){this._super(a,c);this.YA()}});var d=b.gh.extend({apply:function(a){this.yw(a,b.xa.width,b.xa.height)}});b.gh.To=new a;b.gh.XH=new c;b.gh.dV=new d;var a=b.de.extend({apply:function(a,c){var d=b.xa.width,e=b.xa.height;return this.Fm(d,e,d,e,d/c.width,e/c.height)}}),c=b.de.extend({apply:function(a,c){var d=b.xa.width,e=b.xa.height,f=c.width,p=c.height,r=d/f,t=e/p,s=0,u,v;r<t?(s=r,u=d,v=p*s):(s=t,u=f*s,v=e);return this.Fm(d,e,u,v,s,s)}}),d=b.de.extend({apply:function(a,
c){var d=b.xa.width,e=b.xa.height,f=c.width,p=c.height,r=d/f,t=e/p,s,u,v;r<t?(s=t,u=f*s,v=e):(s=r,u=d,v=p*s);return this.Fm(d,e,u,v,s,s)}}),e=b.de.extend({apply:function(a,c){var d=b.xa.width,e=b.xa.height,f=e/c.height;return this.Fm(d,e,d,e,f,f)},oj:function(a){b.la.sc=a.dl()}}),f=b.de.extend({apply:function(a,c){var d=b.xa.width,e=b.xa.height,f=d/c.width;return this.Fm(d,e,d,e,f,f)},oj:function(a){b.la.sc=a.dl()}});b.de.mt=new a;b.de.SHOW_ALL=new c;b.de.xt=new d;b.de.nt=new e;b.de.ot=new f})();
b.hd=b.Aa.extend({hq:null,iq:null,ctor:function(a,c){this.KR(a);this.LR(c)},pj:function(a){this.hq.pj(a);this.iq.pj(a)},apply:function(a,c){this.hq.apply(a,c);return this.iq.apply(a,c)},oj:function(a){this.hq.oj(a);this.iq.oj(a)},KR:function(a){a instanceof b.gh&&(this.hq=a)},LR:function(a){a instanceof b.de&&(this.iq=a)}});b.hd.mt=0;b.hd.xt=1;b.hd.SHOW_ALL=2;b.hd.nt=3;b.hd.ot=4;b.hd.tz=5;b.screen={nr:!1,Tv:null,Kw:"",wh:null,HK:[["requestFullscreen","exitFullscreen","fullscreenchange","fullscreenEnabled","fullscreenElement"],["requestFullScreen","exitFullScreen","fullScreenchange","fullScreenEnabled","fullScreenElement"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange","webkitIsFullScreen","webkitCurrentFullScreenElement"],["mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozFullScreen","mozFullScreenElement"],["msRequestFullscreen",
"msExitFullscreen","MSFullscreenChange","msFullscreenEnabled","msFullscreenElement"]],fa:function(){this.wh={};var a,c,d=this.HK,e;a=0;for(l=d.length;a<l;a++)if((c=d[a])&&c[1]in document){a=0;for(e=c.length;a<e;a++)this.wh[d[0][a]]=c[a];break}this.nr="undefined"!==typeof this.wh.requestFullscreen;this.Kw="ontouchstart"in window?"touchstart":"mousedown"},fullScreen:function(){return this.nr?void 0===document[this.wh.fullscreenElement]||null===document[this.wh.fullscreenElement]?!1:!0:!1},cF:function(a,
c){if(this.nr){a=a||document.documentElement;if(c){var d=this.wh.BZ;this.Tv&&document.removeEventListener(d,this.Tv);this.Tv=c;document.addEventListener(d,c,!1)}return a[this.wh.requestFullscreen]()}},fZ:function(){return this.nr?document[this.wh.exitFullscreen]():!0},GN:function(a,c){function d(){f.cF(a,c);e.removeEventListener(f.Kw,d)}a=a||document.body;var e=b.xa||a,f=this;this.cF(a,c);e.addEventListener(this.Kw,d)}};b.screen.fa();b.Ll={QF:b.i(0,0),RF:b.i(0,0),top:b.i(0,0),xD:b.i(0,0),yD:b.i(0,0),bottom:b.i(0,0),Cr:b.i(0,0),left:b.i(0,0),right:b.i(0,0),width:0,height:0,fa:function(a){var c=this.width=a.width,d=this.height=a.height,e=a.x;a=a.y;var f=a+d,g=e+c;this.QF.x=e;this.QF.y=f;this.RF.x=g;this.RF.y=f;this.top.x=e+c/2;this.top.y=f;this.xD.x=e;this.xD.y=a;this.yD.x=g;this.yD.y=a;this.bottom.x=e+c/2;this.bottom.y=a;this.Cr.x=e+c/2;this.Cr.y=a+d/2;this.left.x=e;this.left.y=a+d/2;this.right.x=g;this.right.y=a+d/2}};b.BJ=-90;b.CJ=90;b.DJ=180;b.HV=0;
b.AE={pk:!1,wB:!1,ZB:b.i(0,0),jM:b.i(0,0),$B:[],Uv:0,Oh:[],Lw:{},ik:0,Hv:5,nu:!1,Yp:1/30,Bz:1,Jj:0,ou:null,Xp:null,rL:function(){for(var a=this.ik,c=0;c<this.Hv;c++){if(!(a&1))return this.ik|=1<<c,c;a>>=1}return-1},lM:function(a){0>a||a>=this.Hv||(a=~(1<<a),this.ik&=a)},Bh:null,Lx:function(a){for(var c,d,e,f=[],g=this.Lw,h=0,k=a.length;h<k;h++)if(c=a[h],e=c.Re,d=g[e],null==d){var m=this.rL();-1===m?b.log(b.j.mQ,m):(d=this.Oh[m]=new b.Op(c.Wb.x,c.Wb.y,c.Re),d.Mi(c.Ue),g[e]=m,f.push(d))}0<f.length&&
(this.Bh.jq(f),a=new b.fe(f),a.uh=b.fe.Cj.Zs,b.Z.dispatchEvent(a))},Mx:function(a){for(var c,d,e=[],f=this.Oh,g=0,h=a.length;g<h;g++)c=a[g],d=c.Re,d=this.Lw[d],null!=d&&f[d]&&(f[d].qw(c.Wb),f[d].Mi(c.Ue),e.push(f[d]));0<e.length&&(this.Bh.jq(e),a=new b.fe(e),a.uh=b.fe.Cj.ut,b.Z.dispatchEvent(a))},$r:function(a){a=this.hE(a);0<a.length&&(this.Bh.jq(a),a=new b.fe(a),a.uh=b.fe.Cj.jt,b.Z.dispatchEvent(a))},lE:function(a){a=this.hE(a);0<a.length&&(this.Bh.jq(a),a=new b.fe(a),a.uh=b.fe.Cj.bt,b.Z.dispatchEvent(a))},
hE:function(a){for(var c,d,e,f=[],g=this.Oh,h=this.Lw,k=0,m=a.length;k<m;k++)c=a[k],e=c.Re,d=h[e],null!=d&&g[d]&&(g[d].qw(c.Wb),g[d].Mi(c.Ue),f.push(g[d]),this.lM(d),delete h[e]);return f},cf:function(a){var c=document.documentElement,d=window,e=null,e=b.mc(a.getBoundingClientRect)?a.getBoundingClientRect():a instanceof HTMLCanvasElement?{left:0,top:0,width:a.width,height:a.height}:{left:0,top:0,width:parseInt(a.style.width),height:parseInt(a.style.height)};return{left:e.left+d.pageXOffset-c.clientLeft,
top:e.top+d.pageYOffset-c.clientTop,width:e.width,height:e.height}},zP:function(a){for(var c=null,d=this.$B,e=a.Re,f=d.length-1;0<=f;f--)if(d[f].Re===e){c=d[f];break}c||(c=a);return c},cS:function(a){for(var c=!1,d=this.$B,e=a.Re,f=d.length-1;0<=f;f--)if(d[f].Re===e){d[f]=a;c=!0;break}c||(50>=d.length?d.push(a):(d[this.Uv]=a,this.Uv=(this.Uv+1)%50))},Tn:function(a,c,d){var e=this.ZB;a=this.Bh.hx(a,c,d);c=new b.Op(a.x,a.y);c.Mi(e.x,e.y);e.x=a.x;e.y=a.y;return c},Yk:function(a,c,d){var e=this.jM;this.Bh.uK(a,
c);c=new b.Fb(d);c.TR(a.x,a.y);c.AM(e.x,e.y);e.x=a.x;e.y=a.y;return c},$k:function(a,c){if(null!=a.pageX)return{x:a.pageX,y:a.pageY};c.left-=document.body.scrollLeft;c.top-=document.body.scrollTop;return{x:a.clientX,y:a.clientY}},Wr:function(a,c){for(var d=[],e=this.Bh,f,g,h=this.ZB,k=a.changedTouches.length,m=0;m<k;m++)if(f=a.changedTouches[m]){var n;n=b.W.Ay===b.W.Qh?e.hx(f.pageX,f.pageY,c):e.hx(f.clientX,f.clientY,c);null!=f.identifier?(f=new b.Op(n.x,n.y,f.identifier),g=this.zP(f).ej(),f.Mi(g.x,
g.y),this.cS(f)):(f=new b.Op(n.x,n.y),f.Mi(h.x,h.y));h.x=n.x;h.y=n.y;d.push(f)}return d},us:function(a){if(!this.wB){this.Bh=b.view;var c=this,d="mouse"in b.W.bj,e="touches"in b.W.bj,f=!1;b.W.jj&&(f=!0);d&&(window.addEventListener("mousedown",function(){c.pk=!0},!1),window.addEventListener("mouseup",function(d){if(!f){var e=c.pk;c.pk=!1;if(e){var e=c.cf(a),g=c.$k(d,e);b.WE(new b.Kt(e.left,e.top,e.width,e.height),g)||(c.$r([c.Tn(g.x,g.y,e)]),e=c.Yk(g,e,b.Fb.fu),e.rj(d.button),b.Z.dispatchEvent(e))}}},
!1),a.addEventListener("mousedown",function(d){if(!f){c.pk=!0;var e=c.cf(a),g=c.$k(d,e);c.Lx([c.Tn(g.x,g.y,e)]);e=c.Yk(g,e,b.Fb.My);e.rj(d.button);b.Z.dispatchEvent(e);d.stopPropagation();d.preventDefault();a.focus()}},!1),a.addEventListener("mouseup",function(d){if(!f){c.pk=!1;var e=c.cf(a),g=c.$k(d,e);c.$r([c.Tn(g.x,g.y,e)]);e=c.Yk(g,e,b.Fb.fu);e.rj(d.button);b.Z.dispatchEvent(e);d.stopPropagation();d.preventDefault()}},!1),a.addEventListener("mousemove",function(d){if(!f){var e=c.cf(a),g=c.$k(d,
e);c.Mx([c.Tn(g.x,g.y,e)]);e=c.Yk(g,e,b.Fb.Wy);c.pk?e.rj(d.button):e.rj(null);b.Z.dispatchEvent(e);d.stopPropagation();d.preventDefault()}},!1),a.addEventListener("mousewheel",function(d){var e=c.cf(a),f=c.$k(d,e),e=c.Yk(f,e,b.Fb.Ot);e.rj(d.button);e.EF(0,d.wheelDelta);b.Z.dispatchEvent(e);d.stopPropagation();d.preventDefault()},!1),a.addEventListener("DOMMouseScroll",function(d){var e=c.cf(a),f=c.$k(d,e),e=c.Yk(f,e,b.Fb.Ot);e.rj(d.button);e.EF(0,-120*d.detail);b.Z.dispatchEvent(e);d.stopPropagation();
d.preventDefault()},!1));if(window.navigator.msPointerEnabled){var d={MSPointerDown:c.Lx,MSPointerMove:c.Mx,MSPointerUp:c.$r,MSPointerCancel:c.lE},g;for(g in d)(function(d,e){a.addEventListener(d,function(d){var f=c.cf(a);f.left-=document.documentElement.scrollLeft;f.top-=document.documentElement.scrollTop;e.call(c,[c.Tn(d.clientX,d.clientY,f)]);d.stopPropagation()},!1)})(g,d[g])}e&&(a.addEventListener("touchstart",function(d){if(d.changedTouches){var e=c.cf(a);e.left-=document.body.scrollLeft;e.top-=
document.body.scrollTop;c.Lx(c.Wr(d,e));d.stopPropagation();d.preventDefault();a.focus()}},!1),a.addEventListener("touchmove",function(d){if(d.changedTouches){var e=c.cf(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;c.Mx(c.Wr(d,e));d.stopPropagation();d.preventDefault()}},!1),a.addEventListener("touchend",function(d){if(d.changedTouches){var e=c.cf(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;c.$r(c.Wr(d,e));d.stopPropagation();d.preventDefault()}},!1),a.addEventListener("touchcancel",
function(d){if(d.changedTouches){var e=c.cf(a);e.left-=document.body.scrollLeft;e.top-=document.body.scrollTop;c.lE(c.Wr(d,e));d.stopPropagation();d.preventDefault()}},!1));this.mC();this.lC();this.wB=!0}},mC:function(){},lC:function(){},update:function(a){this.Jj>this.Yp&&(this.Jj-=this.Yp,b.Z.dispatchEvent(new b.RG(this.ou)));this.Jj+=a}};w=b.AE;w.g4=function(a){this.nu!==a&&(this.nu=a,a=b.la.fj(),this.Jj=0,a.xl(this))};w.h4=function(a){this.Yp!==a&&(this.Yp=a)};w.mC=function(){b.xa.addEventListener("keydown",function(a){b.Z.dispatchEvent(new b.Qy(a.keyCode,!0));a.stopPropagation();a.preventDefault()},!1);b.xa.addEventListener("keyup",function(a){b.Z.dispatchEvent(new b.Qy(a.keyCode,!1));a.stopPropagation();a.preventDefault()},!1)};
w.lC=function(){var a=window;this.ou=new da;this.Xp=a.DeviceMotionEvent||a.DeviceOrientationEvent;b.W.Qh===b.W.jG&&(this.Xp=window.DeviceOrientationEvent);a.addEventListener(this.Xp===a.DeviceMotionEvent?"devicemotion":"deviceorientation",this.jO.bind(this),!1)};
w.jO=function(a){var c=window;if(this.nu){var d=this.ou,e,f,g;this.Xp===window.DeviceMotionEvent?(g=a.accelerationIncludingGravity,e=this.Bz*g.x*0.1,f=this.Bz*g.y*0.1,g=0.1*g.z):(e=a.gamma/90*0.981,f=0.981*-(a.beta/90),g=a.alpha/90*0.981);b.W.mj===b.W.zt?(d.x=-e,d.y=-f):(d.x=e,d.y=f);d.z=g;d.timestamp=a.timeStamp||Date.now();a=d.x;c.orientation===b.CJ?(d.x=-d.y,d.y=a):c.orientation===b.BJ?(d.x=d.y,d.y=-a):c.orientation===b.DJ&&(d.x=-d.x,d.y=-d.y)}};delete w;b.yT=function(a,c,d,e,f,g){this.a=a;this.b=c;this.c=d;this.I=e;this.X=f;this.Y=g};b.mN=function(a,c){return{a:1,b:0,c:0,I:1,X:a,Y:c}};b.Vd=function(a,c,d){var e;void 0===d?(d=c,e=a.x,a=a.y):(e=a,a=c);return{x:d.a*e+d.c*a+d.X,y:d.b*e+d.I*a+d.Y}};b.zW=function(a,c,d){return b.Vd(a,c,d)};b.M5=function(a,c){return{width:c.a*a.width+c.c*a.height,height:c.b*a.width+c.I*a.height}};b.mX=function(){return{a:1,b:0,c:0,I:1,X:0,Y:0}};b.lX=function(){return{a:1,b:0,c:0,I:1,X:0,Y:0}};
b.Zx=function(a,c){var d=b.vl(a),e=b.ul(a),f=b.po(a),g=b.qo(a),h=b.Vd(e,d,c),d=b.Vd(f,d,c),e=b.Vd(e,g,c),k=b.Vd(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);return b.rect(f,m,g-f,h-m)};
b.jC=function(a,c){var d=b.vl(a),e=b.ul(a),f=b.po(a),g=b.qo(a),h=b.Vd(e,d,c),d=b.Vd(f,d,c),e=b.Vd(e,g,c),k=b.Vd(f,g,c),f=Math.min(h.x,d.x,e.x,k.x),g=Math.max(h.x,d.x,e.x,k.x),m=Math.min(h.y,d.y,e.y,k.y),h=Math.max(h.y,d.y,e.y,k.y);a.x=f;a.y=m;a.width=g-f;a.height=h-m;return a};b.nX=function(a,c,d){return{a:a.a,b:a.b,c:a.c,I:a.I,X:a.X+a.a*c+a.c*d,Y:a.Y+a.b*c+a.I*d}};b.oN=function(a,c,d){return{a:a.a*c,b:a.b*c,c:a.c*d,I:a.I*d,X:a.X,Y:a.Y}};
b.nN=function(a,c){var d=Math.sin(c),e=Math.cos(c);return{a:a.a*e+a.c*d,b:a.b*e+a.I*d,c:a.c*e-a.a*d,I:a.I*e-a.b*d,X:a.X,Y:a.Y}};b.Kn=function(a,c){return{a:a.a*c.a+a.b*c.c,b:a.a*c.b+a.b*c.I,c:a.c*c.a+a.I*c.c,I:a.c*c.b+a.I*c.I,X:a.X*c.a+a.Y*c.c+c.X,Y:a.X*c.b+a.Y*c.I+c.Y}};b.lN=function(a,c){var d=a.a,e=a.b,f=a.c,g=a.I,h=a.X,k=a.Y;a.a=d*c.a+e*c.c;a.b=d*c.b+e*c.I;a.c=f*c.a+g*c.c;a.I=f*c.b+g*c.I;a.X=h*c.a+k*c.c+c.X;a.Y=h*c.b+k*c.I+c.Y};
b.kX=function(a,c){return a.a===c.a&&a.b===c.b&&a.c===c.c&&a.I===c.I&&a.X===c.X&&a.Y===c.Y};b.uD=function(a){var c=1/(a.a*a.I-a.b*a.c);return{a:c*a.I,b:-c*a.b,c:-c*a.c,I:c*a.a,X:c*(a.c*a.Y-a.I*a.X),Y:c*(a.b*a.X-a.a*a.Y)}};b.ez=parseFloat("1.192092896e-07F");b.Xx=function(a){return b.i(-a.x,-a.y)};b.pl=function(a,c){return b.i(a.x+c.x,a.y+c.y)};b.Kc=function(a,c){return b.i(a.x-c.x,a.y-c.y)};b.nj=function(a,c){return b.i(a.x*c,a.y*c)};b.QE=function(a,c){return b.nj(b.pl(a,c),0.5)};b.ql=function(a,c){return a.x*c.x+a.y*c.y};b.WQ=function(a,c){return a.x*c.y-a.y*c.x};b.rs=function(a){return b.i(-a.y,a.x)};b.N2=function(a){return b.i(a.y,-a.x)};b.M2=function(a,c){return b.nj(c,b.ql(a,c)/b.ql(c,c))};
b.O2=function(a,c){return b.i(a.x*c.x-a.y*c.y,a.x*c.y+a.y*c.x)};b.T2=function(a,c){return b.i(a.x*c.x+a.y*c.y,a.y*c.x-a.x*c.y)};b.OE=function(a){return b.ql(a,a)};b.E2=function(a,c){return b.OE(b.Kc(a,c))};b.NE=function(a){return Math.sqrt(b.OE(a))};b.D2=function(a,c){return b.NE(b.Kc(a,c))};b.Be=function(a){var c=b.NE(a);return 0===c?b.i(a):b.nj(a,1/c)};b.F2=function(a){return b.i(Math.cos(a),Math.sin(a))};b.S2=function(a){return Math.atan2(a.y,a.x)};
b.Fr=function(a,c,d){if(c>d){var e=c;c=d;d=e}return a<c?c:a<d?a:d};b.A2=function(a,c,d){return b.i(b.Fr(a.x,c.x,d.x),b.Fr(a.y,c.y,d.y))};b.G2=function(a){return b.i(a.width,a.height)};b.C2=function(a,c){return b.i(c(a.x),c(a.y))};b.K2=function(a,c,d){return b.pl(b.nj(a,1-d),b.nj(c,d))};b.H2=function(a,c,d){return a.x-d<=c.x&&c.x<=a.x+d&&a.y-d<=c.y&&c.y<=a.y+d?!0:!1};b.B2=function(a,c){return b.i(a.x*c.x,a.y*c.y)};
b.ME=function(a,c){var d=b.Be(a),e=b.Be(c),d=Math.atan2(d.x*e.y-d.y*e.x,b.ql(d,e));return Math.abs(d)<b.ez?0:d};b.z2=function(a,c){var d=Math.acos(b.ql(b.Be(a),b.Be(c)));return Math.abs(d)<b.ez?0:d};b.YQ=function(a,c,d){a=b.Kc(a,c);var e=Math.cos(d);d=Math.sin(d);var f=a.x;a.x=f*e-a.y*d+c.x;a.y=f*d+a.y*e+c.y;return a};
b.PE=function(a,c,d,e,f){if(a.x===c.x&&a.y===c.y||d.x===e.x&&d.y===e.y)return!1;var g=c.x-a.x;c=c.y-a.y;var h=e.x-d.x;e=e.y-d.y;var k=a.x-d.x;a=a.y-d.y;d=e*g-h*c;f.x=h*a-e*k;f.y=g*a-c*k;if(0===d)return 0===f.x||0===f.y?!0:!1;f.x/=d;f.y/=d;return!0};b.Q2=function(a,c,d,e){var f=b.i(0,0);return b.PE(a,c,d,e,f)&&0<=f.x&&1>=f.x&&0<=f.y&&1>=f.y?!0:!1};b.J2=function(a,c,d,e){var f=b.i(0,0);return b.PE(a,c,d,e,f)?(d=b.i(0,0),d.x=a.x+f.x*(c.x-a.x),d.y=a.y+f.x*(c.y-a.y),d):b.i(0,0)};
b.P2=function(a,c){return null!=a&&null!=c?a.x===c.x&&a.y===c.y:!1};b.U2=function(a){a.x=0;a.y=0};b.I2=function(a,c){a.x=c.x;a.y=c.y};b.XQ=function(a,c){a.x*=c;a.y*=c};b.R2=function(a,c){a.x-=c.x;a.y-=c.y};b.y2=function(a,c){a.x+=c.x;a.y+=c.y};b.L2=function(a){b.XQ(a,1/Math.sqrt(a.x*a.x+a.y*a.y))};b.B6=function(a,c,d,e,f){f+=e;if(!(1>=f)){c*=0.5;for(var g,h=f-1,k=e;k<f;k++){g=2*k;var m=b.i(a[2*k],a[2*k+1]),n;if(0===k)n=b.rs(b.Be(b.Kc(m,b.i(a[2*(k+1)],a[2*(k+1)+1]))));else if(k===h)n=b.rs(b.Be(b.Kc(b.i(a[2*(k-1)],a[2*(k-1)+1]),m)));else{n=b.i(a[2*(k-1)],a[2*(k-1)+1]);var p=b.i(a[2*(k+1)],a[2*(k+1)+1]),r=b.Be(b.Kc(p,m)),t=b.Be(b.Kc(n,m)),s=Math.acos(b.ql(r,t));n=s<b.ye(70)?b.rs(b.Be(b.QE(r,t))):s<b.ye(170)?b.Be(b.QE(r,t)):b.rs(b.Be(b.Kc(p,n)))}n=b.nj(n,c);d[2*g]=m.x+n.x;d[2*g+1]=m.y+n.y;d[2*
(g+1)]=m.x-n.x;d[2*(g+1)+1]=m.y-n.y}for(k=0===e?0:e-1;k<h;k++)g=2*k,a=g+2,c=b.Ws(d[2*g],d[2*g+1]),f=b.Ws(d[2*(g+1)],d[2*(g+1)+1]),g=b.Ws(d[2*a],d[2*a]),e=b.Ws(d[2*(a+1)],d[2*(a+1)+1]),c=!b.hT(c.x,c.y,e.x,e.y,f.x,f.y,g.x,g.y),!c.Wn&&(0>c.value||1<c.value)&&(c.Wn=!0),c.Wn&&(d[2*a]=e.x,d[2*a+1]=e.y,d[2*(a+1)]=g.x,d[2*(a+1)+1]=g.y)}};
b.hT=function(a,c,d,e,f,g,h,k){if(a===d&&c===e||f===h&&g===k)return{Wn:!1,value:0};d-=a;e-=c;f-=a;g-=c;h-=a;k-=c;a=Math.sqrt(d*d+e*e);d/=a;e/=a;c=f*d+g*e;g=g*d-f*e;f=c;c=h*d+k*e;k=k*d-h*e;h=c;return g===k?{Wn:!1,value:0}:{Wn:!0,value:(h+(f-h)*k/(k-g))/a}};b.C6=function(a){for(var c=0,d=a.length;c<d;c++){var e=a[(c+1)%d],f=a[(c+2)%d];if(0<b.WQ(b.Kc(e,a[c]),b.Kc(f,e)))return!1}return!0};b.TT=function(a,c){c[2]=c[3]=c[6]=c[7]=c[8]=c[9]=c[11]=c[14]=0;c[10]=c[15]=1;c[0]=a.a;c[4]=a.c;c[12]=a.X;c[1]=a.b;c[5]=a.I;c[13]=a.Y};b.tU=function(a,c){c.a=a[0];c.c=a[4];c.X=a[12];c.b=a[1];c.I=a[5];c.Y=a[13]};b.Op=b.Aa.extend({Wb:null,Ue:null,Re:0,VC:!1,Jf:null,ctor:function(a,c,d){this.qS(d,a,c)},ej:function(){return{x:this.Wb.x,y:this.Wb.y}},ZD:function(){return this.Wb.x},$D:function(){return this.Wb.y},K_:function(){return{x:this.Ue.x,y:this.Ue.y}},Z_:function(){return{x:this.Jf.x,y:this.Jf.y}},eP:function(){return b.Kc(this.Wb,this.Ue)},qP:function(){return{x:this.Wb.x,y:this.Wb.y}},L_:function(){return{x:this.Ue.x,y:this.Ue.y}},$_:function(){return{x:this.Jf.x,y:this.Jf.y}},q_:function(){return this.Re},
r_:function(){b.log("getId is deprecated. Please use getID instead.");return this.Re},qS:function(a,c,d){this.Ue=this.Wb;this.Wb=b.i(c||0,d||0);this.Re=a;this.VC||(this.Jf=b.i(this.Wb),this.VC=!0)},qw:function(a,c){void 0===c?(this.Wb.x=a.x,this.Wb.y=a.y):(this.Wb.x=a,this.Wb.y=c)},Mi:function(a,c){this.Ue=void 0===c?b.i(a.x,a.y):b.i(a||0,c||0)}});b.Oa=b.Aa.extend({Ph:0,Ai:!1,Lb:null,nw:function(a){this.Lb=a},ctor:function(a){this.Ph=a},PP:function(){return this.Ph},stopPropagation:function(){this.Ai=!0},k1:function(){return this.Ai},TZ:function(){return this.Lb}});b.Oa.Lp=0;b.Oa.Dj=1;b.Oa.ci=2;b.Oa.li=3;b.Oa.gm=4;b.Oa.Nl=6;b.ii=b.Oa.extend({Xu:null,oD:null,ctor:function(a){b.Oa.prototype.ctor.call(this,b.Oa.Nl);this.Xu=a},setUserData:function(a){this.oD=a},getUserData:function(){return this.oD},d_:function(){return this.Xu}});
b.Fb=b.Oa.extend({SA:0,Kz:0,$e:0,bd:0,Vv:0,Wv:0,yC:0,zC:0,ctor:function(a){b.Oa.prototype.ctor.call(this,b.Oa.li);this.SA=a},EF:function(a,c){this.yC=a;this.zC=c},V_:function(){return this.yC},W_:function(){return this.zC},TR:function(a,c){this.$e=a;this.bd=c},ej:function(){return{x:this.$e,y:this.bd}},qP:function(){return{x:this.$e,y:b.view.Me.height-this.bd}},AM:function(a,c){this.Vv=a;this.Wv=c},eP:function(){return{x:this.$e-this.Vv,y:this.bd-this.Wv}},YZ:function(){return this.$e-this.Vv},ZZ:function(){return this.bd-
this.Wv},rj:function(a){this.Kz=a},JZ:function(){return this.Kz},ZD:function(){return this.$e},$D:function(){return this.bd}});b.Fb.NONE=0;b.Fb.My=1;b.Fb.fu=2;b.Fb.Wy=3;b.Fb.Ot=4;b.Fb.NT=0;b.Fb.PT=2;b.Fb.OT=1;b.Fb.IT=3;b.Fb.JT=4;b.Fb.KT=5;b.Fb.LT=6;b.Fb.MT=7;b.fe=b.Oa.extend({uh:0,Oh:null,ctor:function(a){b.Oa.prototype.ctor.call(this,b.Oa.Lp);this.Oh=a||[]},c_:function(){return this.uh},i0:function(){return this.Oh},JW:function(a){this.uh=a},PW:function(a){this.Oh=a}});b.fe.TU=5;
b.fe.Cj={Zs:0,ut:1,jt:2,bt:3};b.nU=b.Oa.extend({pD:null,qD:null,ctor:function(a,c){b.Oa.prototype.ctor.call(this,b.Oa.gm);this.pD=c;this.qD=a}});b.V=b.Aa.extend({Rq:null,Ph:0,Cf:null,td:!1,vh:0,n:null,Ab:!0,lk:!0,ctor:function(a,c,d){this.Rq=d;this.Ph=a||0;this.Cf=c||""},pw:function(a){this.Ab=a},rW:function(){return this.Ab},Ni:function(a){this.td=a},KL:function(){return this.td},pW:function(){return this.Ph},mW:function(){return this.Cf},ow:function(a){this.vh=a},hW:function(){return this.vh},yk:function(a){this.n=a},nW:function(){return this.n},Pg:function(){return null!==this.Rq},k:function(){return null},Xd:function(a){this.lk=a},isEnabled:function(){return this.lk},
zs:function(){},Wd:function(){}});b.V.tz=0;b.V.sm=1;b.V.Ut=2;b.V.Dj=3;b.V.li=4;b.V.ci=5;b.V.ci=6;b.V.Nl=8;b.V.gm=7;b.zm=b.V.extend({rk:null,ctor:function(a,c){this.rk=c;var d=this;b.V.prototype.ctor.call(this,b.V.Nl,a,function(a){null!==d.rk&&d.rk(a)})},Pg:function(){return b.V.prototype.Pg.call(this)&&null!==this.rk},k:function(){return new b.zm(this.Cf,this.rk)}});b.zm.create=function(a,c){return new b.zm(a,c)};
b.oh=b.V.extend({eo:null,qs:null,os:null,ps:null,ctor:function(){var a=this;b.V.prototype.ctor.call(this,b.V.li,b.oh.Sa,function(c){var d=b.Fb;switch(c.SA){case d.My:a.eo&&a.eo(c);break;case d.fu:a.qs&&a.qs(c);break;case d.Wy:a.os&&a.os(c);break;case d.Ot:a.ps&&a.ps(c)}})},k:function(){var a=new b.oh;a.eo=this.eo;a.qs=this.qs;a.os=this.os;a.ps=this.ps;return a},Pg:function(){return!0}});b.oh.Sa="__cc_mouse";b.oh.create=function(){return new b.oh};
b.qf=b.V.extend({Vj:null,El:!1,lj:null,io:null,ho:null,fo:null,ctor:function(){b.V.prototype.ctor.call(this,b.V.sm,b.qf.Sa,null);this.Vj=[]},n5:function(a){this.El=a},l1:function(){return this.El},k:function(){var a=new b.qf;a.lj=this.lj;a.io=this.io;a.ho=this.ho;a.fo=this.fo;a.El=this.El;return a},Pg:function(){return this.lj?!0:(b.log(b.j.WJ),!1)}});b.qf.Sa="__cc_touch_one_by_one";b.qf.create=function(){return new b.qf};
b.pf=b.V.extend({jo:null,mo:null,lo:null,ko:null,ctor:function(){b.V.prototype.ctor.call(this,b.V.Ut,b.pf.Sa,null)},k:function(){var a=new b.pf;a.jo=this.jo;a.mo=this.mo;a.lo=this.lo;a.ko=this.ko;return a},Pg:function(){return null===this.jo&&null===this.mo&&null===this.lo&&null===this.ko?(b.log(b.j.VJ),!1):!0}});b.pf.Sa="__cc_touch_all_at_once";b.pf.create=function(){return new b.pf};
b.V.create=function(a){b.assert(a&&a.event,b.j.SG);var c=a.event;delete a.event;var d=null;c===b.V.sm?d=new b.qf:c===b.V.Ut?d=new b.pf:c===b.V.li?d=new b.oh:c===b.V.Nl?(d=new b.zm(a.LO,a.af),delete a.LO,delete a.af):c===b.V.Dj?d=new b.nh:c===b.V.ci?(d=new b.mh(a.af),delete a.af):c===b.V.gm&&(d=new b.Am);for(var e in a)d[e]=a[e];return d};
b.Am=b.V.extend({k:function(){var a=new b.Am;a.ao=this.ao;return a},Pg:function(){return this.ao?!0:(b.log("Invalid EventListenerFocus!"),!1)},ao:null,ctor:function(){b.V.prototype.ctor.call(this,b.V.gm,b.Am.Sa,function(a){this.ao&&this.ao(a.qD,a.pD)})}});b.Am.Sa="__cc_focus_event";b.XJ=b.Aa.extend({Jd:null,Od:null,kE:0,ctor:function(){this.Jd=[];this.Od=[]},size:function(){return this.Jd.length+this.Od.length},empty:function(){return 0===this.Jd.length&&0===this.Od.length},push:function(a){0===a.vh?this.Od.push(a):this.Jd.push(a)},TN:function(){this.Od.length=0},SN:function(){this.Jd.length=0},clear:function(){this.Od.length=0;this.Jd.length=0},f_:function(){return this.Jd},T_:function(){return this.Od}});
b.Wp=function(a){var c=b.Oa,d=a.Ph;if(d===c.ci)return b.mh.Sa;if(d===c.Nl)return a.Xu;if(d===c.Dj)return b.nh.Sa;if(d===c.li)return b.oh.Sa;if(d===c.gm)return b.Am.Sa;d===c.Lp&&b.log(b.j.Wp);return""};
b.Z={ht:0,Qo:1,Ql:2,fU:3,pe:{},on:{},Ef:{},Oq:{},kB:{},Kk:[],Om:[],Ch:0,lk:!1,OB:0,HL:[b.q.lt,b.q.Vo],gr:function(a){null!=this.Ef[a.P]&&this.Om.push(a);a=a.F;for(var c=0,d=a.length;c<d;c++)this.gr(a[c])},rl:function(a,c){var d=this.Ef[a.P],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].pw(!0);if(!0===c)for(d=a.F,e=0,f=d.length;e<f;e++)this.rl(d[e],!0)},$g:function(a,c){var d=this.Ef[a.P],e,f;if(d)for(e=0,f=d.length;e<f;e++)d[e].pw(!1);this.gr(a);if(!0===c)for(d=a.F,e=0,f=d.length;e<f;e++)this.$g(d[e],
!0)},eK:function(a){0===this.Ch?this.ZA(a):this.Kk.push(a)},ZA:function(a){var c=a.Cf,d=this.pe[c];d||(d=new b.XJ,this.pe[c]=d);d.push(a);0===a.vh?(this.Li(c,this.Ql),c=a.n,null===c&&b.log(b.j.EO),this.lK(c,a),c.If&&this.$g(c)):this.Li(c,this.Qo)},lv:function(a){return this.pe[a]},$M:function(){if(0!==this.Om.length){for(var a=this.Om,c,d,e=this.Ef,f=0,g=a.length;f<g;f++)if(c=e[a[f].P])for(var h=0,k=c.length;h<k;h++)(d=c[h])&&this.Li(d.Cf,this.Ql);this.Om.length=0}},nC:function(a){if(a)for(var c,
d=0;d<a.length;)c=a[d],c.Ni(!1),null!=c.n&&(this.Su(c.n,c),c.yk(null)),0===this.Ch?b.Jc(a,c):++d},Gi:function(a){var c=this.pe[a];if(c){var d=c.Jd;this.nC(c.Od);this.nC(d);delete this.on[a];this.Ch||(c.clear(),delete this.pe[a])}for(var d=this.Kk,e,c=0;c<d.length;)(e=d[c])&&e.Cf===a?b.Jc(d,e):++c},Aw:function(a){var c=this.ht,d=this.on;d[a]&&(c=d[a]);c!==this.ht&&(d[a]=this.ht,c&this.Qo&&this.NM(a),c&this.Ql&&((c=b.la.Nb)?this.PM(a,c):d[a]=this.Ql))},PM:function(a,c){var d=this.lv(a);if(d){var e=
d.Od;e&&0!==e.length&&(this.OB=0,this.Oq={},this.Xw(c,!0),d.Od.sort(this.MM))}},MM:function(a,c){var d=b.Z.Oq,e=a.n,f=c.n;return c&&f&&d[f.P]?a&&e&&d[e.P]?d[c.n.P]-d[a.n.P]:1:-1},NM:function(a){if(a=this.pe[a]){var c=a.Jd;if(c&&0!==c.length){c.sort(this.OM);for(var d=0,e=c.length;d<e&&!(0<=c[d].vh);)++d;a.kE=d}}},OM:function(a,c){return a.vh-c.vh},Nv:function(a){if(a=this.pe[a]){var c=a.Jd,d=a.Od,e,f;if(d)for(e=0;e<d.length;)f=d[e],f.td?++e:b.Jc(d,f);if(c)for(e=0;e<c.length;)f=c[e],f.td?++e:b.Jc(c,
f);d&&0===d.length&&a.TN();c&&0===c.length&&a.SN()}},wr:function(a){var c=this.Ch;b.assert(0<c,b.j.TG);if(!(1<c)){a.Ph===b.Oa.Lp?(this.Nv(b.qf.Sa),this.Nv(b.pf.Sa)):this.Nv(b.Wp(a));b.assert(1===c,b.j.UG);a=this.pe;var c=this.on,d;for(d in a)a[d].empty()&&(delete c[d],delete a[d]);d=this.Kk;if(0!==d.length){a=0;for(c=d.length;a<c;a++)this.ZA(d[a]);this.Kk.length=0}}},aM:function(a,c){if(!a.KL)return!1;var d=c.event,e=c.lF;d.nw(a.n);var f=!1,g,h=d.uh,k=b.fe.Cj;h===k.Zs?a.lj&&(f=a.lj(e,d))&&a.td&&a.Vj.push(e):
0<a.Vj.length&&-1!==(g=a.Vj.indexOf(e))&&(f=!0,h===k.ut&&a.io?a.io(e,d):h===k.jt?(a.ho&&a.ho(e,d),a.td&&a.Vj.splice(g,1)):h===k.bt&&(a.fo&&a.fo(e,d),a.td&&a.Vj.splice(g,1)));return d.Ai?(b.Z.wr(d),!0):f&&a.td&&a.El?(c.QQ&&c.touches.splice(e,1),!0):!1},zK:function(a){this.Aw(b.qf.Sa);this.Aw(b.pf.Sa);var c=this.lv(b.qf.Sa),d=this.lv(b.pf.Sa);if(null!==c||null!==d){var e=a.Oh,f=b.HD(e),g={event:a,QQ:c&&d,touches:f,lF:null};if(c)for(var h=0;h<e.length;h++)if(g.lF=e[h],this.Ru(c,this.aM,g),a.Ai)return;
if(d&&0<f.length&&(this.Ru(d,this.cM,{event:a,touches:f}),a.Ai))return;this.wr(a)}},cM:function(a,c){if(!a.td)return!1;var d=b.fe.Cj,e=c.event,f=c.touches,g=e.uh;e.nw(a.n);g===d.Zs&&a.jo?a.jo(f,e):g===d.ut&&a.mo?a.mo(f,e):g===d.jt&&a.lo?a.lo(f,e):g===d.bt&&a.ko&&a.ko(f,e);return e.Ai?(b.Z.wr(e),!0):!1},lK:function(a,c){var d=this.Ef[a.P];d||(d=[],this.Ef[a.P]=d);d.push(c)},Su:function(a,c){var d=this.Ef[a.P];d&&(b.Jc(d,c),0===d.length&&delete this.Ef[a.P])},Ru:function(a,c,d){var e=!1,f=a.Jd,g=a.Od,
h=0,k;if(f&&0!==f.length)for(;h<a.kE;++h)if(k=f[h],k.isEnabled()&&!k.Ab&&k.td&&c(k,d)){e=!0;break}if(g&&!e)for(a=0;a<g.length;a++)if(k=g[a],k.isEnabled()&&!k.Ab&&k.td&&c(k,d)){e=!0;break}if(f&&!e)for(;h<f.length&&(k=f[h],!k.isEnabled()||k.Ab||!k.td||!c(k,d));++h);},Li:function(a,c){var d=this.on;d[a]=null==d[a]?c:c|d[a]},Xw:function(a,c){var d=a.F,e=0,f=d.length,g=this.kB,h=this.Ef;if(0<f){for(var k;e<f;e++)if((k=d[e])&&0>k.yb)this.Xw(k,!1);else break;null!=h[a.P]&&(g[a.qg]||(g[a.qg]=[]),g[a.qg].push(a.P));
for(;e<f;e++)(k=d[e])&&this.Xw(k,!1)}else null!=h[a.P]&&(g[a.qg]||(g[a.qg]=[]),g[a.qg].push(a.P));if(c){var d=[],m;for(m in g)d.push(m);d.sort(this.QM);m=d.length;k=this.Oq;for(e=0;e<m;e++)for(f=g[d[e]],h=0;h<f.length;h++)k[f[h]]=++this.OB;this.kB={}}},QM:function(a,c){return a-c},addListener:function(a,c){b.assert(a&&c,b.j.GO);if(!(a instanceof b.V))b.assert(!b.Tx(c),b.j.HO),a=b.V.create(a);else if(a.td){b.log(b.j.IO);return}if(a.Pg()){if(b.Tx(c)){if(0===c){b.log(b.j.FO);return}a.yk(null);a.ow(c);
a.Ni(!0);a.pw(!1)}else a.yk(c),a.ow(0),a.Ni(!0);this.eK(a);return a}},$i:function(a,c){var d=new b.zm(a,c);this.addListener(d,1);return d},removeListener:function(a){if(null!=a){var c,d=this.pe,e;for(e in d){var f=d[e],g=f.Jd;(c=this.oC(f.Od,a))?this.Li(a.Cf,this.Ql):(c=this.oC(g,a))&&this.Li(a.Cf,this.Qo);f.empty()&&(delete this.on[a.Cf],delete d[e]);if(c)break}if(!c)for(c=this.Kk,d=0,e=c.length;d<e;d++)if(f=c[d],f===a){b.Jc(c,f);f.Ni(!1);break}}},DW:function(a,c){if(null==a)return!1;for(var d=0,
e=a.length;d<e;d++){var f=a[d];if(f.rk===c||f.Rq===c)return f.Ni(!1),null!=f.n&&(this.Su(f.n,f),f.yk(null)),0===this.Ch&&b.Jc(a,f),!0}return!1},oC:function(a,c){if(null==a)return!1;for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f===c)return f.Ni(!1),null!=f.n&&(this.Su(f.n,f),f.yk(null)),0===this.Ch&&b.Jc(a,f),!0}return!1},$E:function(a,c){if(a instanceof b.e){delete this.Oq[a.P];b.Jc(this.Om,a);var d=this.Ef[a.P];if(d){for(var e=b.HD(d),d=0;d<e.length;d++)this.removeListener(e[d]);e.length=0}e=this.Kk;
for(d=0;d<e.length;){var f=e[d];f.n===a?(f.yk(null),f.Ni(!1),e.splice(d,1)):++d}if(!0===c)for(e=a.F,d=0,f=e.length;d<f;d++)this.$E(e[d],!0)}else a===b.V.sm?this.Gi(b.qf.Sa):a===b.V.Ut?this.Gi(b.pf.Sa):a===b.V.li?this.Gi(b.oh.Sa):a===b.V.ci?this.Gi(b.mh.Sa):a===b.V.Dj?this.Gi(b.nh.Sa):b.log(b.j.JO)},F3:function(a){this.Gi(a)},y3:function(){var a=this.pe,c=this.HL,d;for(d in a)-1===c.indexOf(d)&&this.Gi(d)},c5:function(a,c){if(null!=a){var d=this.pe,e;for(e in d){var f=d[e].Jd;if(f&&-1!==f.indexOf(a)){null!=
a.n&&b.log(b.j.KO);a.vh!==c&&(a.ow(c),this.Li(a.Cf,this.Qo));break}}}},Xd:function(a){this.lk=a},isEnabled:function(){return this.lk},dispatchEvent:function(a){if(this.lk){this.$M();this.Ch++;if(!a||!a.PP)throw Error("event is undefined");if(a.Ph===b.Oa.Lp)this.zK(a);else{var c=b.Wp(a);this.Aw(c);c=this.pe[c];null!=c&&this.Ru(c,this.XL,a);this.wr(a)}this.Ch--}},XL:function(a,c){c.nw(a.n);a.Rq(c);return c.Ai},jY:function(a,c){var d=new b.ii(a);d.setUserData(c);this.dispatchEvent(d)}};b.RG=b.Oa.extend({Az:null,ctor:function(a){b.Oa.prototype.ctor.call(this,b.Oa.ci);this.Az=a}});b.Qy=b.Oa.extend({zv:0,vB:!1,ctor:function(a,c){b.Oa.prototype.ctor.call(this,b.Oa.Dj);this.zv=a;this.vB=c}});b.mh=b.V.extend({Qq:null,ctor:function(a){this.Qq=a;var c=this;b.V.prototype.ctor.call(this,b.V.ci,b.mh.Sa,function(a){c.Qq(a.Az,a)})},Pg:function(){b.assert(this.Qq,b.j.TJ);return!0},k:function(){return new b.mh(this.Qq)}});b.mh.Sa="__cc_acceleration";b.mh.create=function(a){return new b.mh(a)};
b.nh=b.V.extend({bo:null,co:null,ctor:function(){var a=this;b.V.prototype.ctor.call(this,b.V.Dj,b.nh.Sa,function(c){c.vB?a.bo&&a.bo(c.zv,c):a.co&&a.co(c.zv,c)})},k:function(){var a=new b.nh;a.bo=this.bo;a.co=this.co;return a},Pg:function(){return null===this.bo&&null===this.co?(b.log(b.j.UJ),!1):!0}});b.nh.Sa="__cc_keyboard";b.nh.create=function(){return new b.nh};b.rR={cd:!0,Jg:[],Dg:[],$m:!1,dq:{},qi:[],ng:0,Le:b.color(),Oz:"rgb(0, 0, 0)",dE:function(a){return a.ld()},fb:function(a){var c=this.Dg,d,e=b.view.ha,f=b.view.Da,g=a||b.o;g.fx();a=0;for(d=c.length;a<d;a++)c[a].fb(g,e,f)},pC:function(a,c,d,e){a||b.log("The context of RenderTexture is invalid.");d=b.Ug(d)?1:d;e=b.Ug(e)?1:e;c=c||this.ng;var f=this.dq[c],g,h;a.fx();g=0;for(h=f.length;g<h;g++)f[g].fb(a,d,e);f.length=0;a=this.qi;delete this.dq[c];b.Jc(a,c);0===a.length?this.$m=!1:this.ng=a[a.length-1]},
Mw:function(a){this.$m=!0;a=a||0;this.dq[a]=[];-1===this.qi.indexOf(a)&&this.qi.push(a);this.ng=a},WM:function(){this.$m=!1},fF:function(){this.cd=!1;this.Jg.length=0},transform:function(){var a=this.Jg;a.sort(this.Bw);for(var c=0,d=a.length;c<d;c++)0!==a[c].D&&a[c].updateStatus();a.length=0},ba:function(){return 0<this.Jg.length},Bw:function(a,c){return a.Uc-c.Uc},TE:function(a){this.Jg.push(a)},clear:function(){var a=b.xa,c=b.o,d=c.getContext();d.setTransform(1,0,0,1,0,0);d.clearRect(0,0,a.width,
a.height);if(0!==this.Le.r||0!==this.Le.g||0!==this.Le.b)c.jf(this.Oz),c.Al(this.Le.a),d.fillRect(0,0,a.width,a.height)},DD:function(){this.Dg.length=0;this.qi.length=0;this.$m=!1},Dd:function(a){if(a.qb)if(this.$m){var c=this.dq[this.ng];-1===c.indexOf(a)&&c.push(a)}else-1===this.Dg.indexOf(a)&&this.Dg.push(a)}};
(function(){b.et=function(a){this.jb=a;this.wk=0;this.Ku=a.globalAlpha;this.Lu=a.globalCompositeOperation;this.kq=a.fillStyle;this.Mu=a.strokeStyle;this.Pq=this.Jv=0;this.qn=this.height;this.su=0};var a=b.et.prototype;a.dF=function(){var a=this.jb;this.Ku=a.globalAlpha;this.Lu=a.globalCompositeOperation;this.kq=a.fillStyle;this.Mu=a.strokeStyle;this.qn=this.jb.canvas.height+this.Pq};a.zo=function(a,d){this.Jv=a;this.Pq=d;this.qn=this.jb.canvas.height+this.Pq};a.fx=function(){this.qn=this.jb.canvas.height+
this.Pq};a.K5=function(a,d){this.ha=a;this.Da=d};a.getContext=function(){return this.jb};a.save=function(){this.jb.save();this.wk++};a.restore=function(){this.jb.restore();this.wk--};a.Al=function(a){0<this.wk?this.jb.globalAlpha=a:this.Ku!==a&&(this.Ku=a,this.jb.globalAlpha=a)};a.wo=function(a){0<this.wk?this.jb.globalCompositeOperation=a:this.Lu!==a&&(this.Lu=a,this.jb.globalCompositeOperation=a)};a.jf=function(a){0<this.wk?this.jb.fillStyle=a:this.kq!==a&&(this.kq=a,this.jb.fillStyle=a)};a.Ns=
function(a){0<this.wk?this.jb.strokeStyle=a:this.Mu!==a&&(this.Mu=a,this.jb.strokeStyle=a)};a.setTransform=function(a,d,e){0<this.su?(this.restore(),this.save(),this.jb.transform(a.a,-a.b,-a.c,a.I,a.X*d,-(a.Y*e))):this.jb.setTransform(a.a,-a.b,-a.c,a.I,this.Jv+a.X*d,this.qn-a.Y*e)};a.TW=function(a,d,e,f){a?(this.su++,this.jb.setTransform(d.a,d.c,d.b,d.I,this.Jv+d.X*e,this.qn-d.Y*f),this.save()):(this.su--,this.restore())}})();b.sR={cd:!0,Jg:[],Dg:[],Hq:!1,cq:{},qi:[],ng:0,Le:b.color(),dE:function(a){return a.ld()},fb:function(a){var c=this.Dg,d,e=a||b.o;a=0;for(d=c.length;a<d;a++)c[a].fb(e)},Mw:function(a){this.Hq=!0;a=a||0;this.cq[a]=[];this.qi.push(a);this.ng=a},WM:function(){this.Hq=!1},EW:function(a){a=a||this.ng;var c=this.cq[a],d,e,f=b.o,g=this.qi;d=0;for(e=c.length;d<e;d++)c[d].fb(f);c.length=0;delete this.cq[a];b.Jc(g,a);0===g.length?this.Hq=!1:this.ng=g[g.length-1]},fF:function(){this.cd=!1;this.Jg.length=0},
transform:function(){var a=this.Jg;a.sort(this.Bw);for(var c=0,d=a.length;c<d;c++)a[c].updateStatus();a.length=0},ba:function(){return 0<this.Jg.length},Bw:function(a,c){return a.Uc-c.Uc},TE:function(a){this.Jg.push(a)},DD:function(){this.Dg.length=0},clear:function(){var a=b.o;a.clearColor(this.Le.r,this.Le.g,this.Le.b,this.Le.a);a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)},xo:function(a){var c=b.o;a?(c.clearDepth(1),c.enable(c.DEPTH_TEST),c.depthFunc(c.LEQUAL)):c.disable(c.DEPTH_TEST)},Dd:function(a){if(a.qb)if(this.Hq){var c=
this.cq[this.ng];-1===c.indexOf(a)&&c.push(a)}else-1===this.Dg.indexOf(a)&&this.Dg.push(a)}};b.ca.Et=function(){var a=b.e.prototype;b.m(a,"x",a.yd,a.aS);b.m(a,"y",a.df,a.bS);b.m(a,"width",a.Oe,a.zk);b.m(a,"height",a.Ah,a.xk);b.m(a,"anchorX",a.cv,a.hw);b.m(a,"anchorY",a.RK,a.iw);b.m(a,"skewX",a.HP,a.jS);b.m(a,"skewY",a.IP,a.kS);b.m(a,"zIndex",a.pP,a.yF);b.m(a,"vertexZ",a.TP,a.wS);b.m(a,"rotation",a.BP,a.fS);b.m(a,"rotationX",a.CP,a.gS);b.m(a,"rotationY",a.DP,a.hS);b.m(a,"scale",a.EP,a.Ks);b.m(a,"scaleX",a.eE,a.ly);b.m(a,"scaleY",a.fE,a.my);b.m(a,"children",a.$O);b.m(a,"childrenCount",a.aP);
b.m(a,"parent",a.getParent,a.zF);b.m(a,"visible",a.AQ,a.Qs);b.m(a,"running",a.xQ);b.m(a,"ignoreAnchor",a.uQ,a.bs);b.m(a,"actionManager",a.Or,a.mF);b.m(a,"scheduler",a.fj,a.DF);b.m(a,"shaderProgram",a.cl,a.uj);b.m(a,"opacity",a.Zk,a.Yd);b.m(a,"opacityModifyRGB",a.Yh);b.m(a,"cascadeOpacity",a.rQ,a.yl);b.m(a,"color",a.Rg,a.Ea);b.m(a,"cascadeColor",a.qQ,a.sj)};b.Zy=-1;b.fy=1;
b.e=b.Aa.extend({yb:0,qg:0,yr:0,Ji:0,vk:0,ha:1,Da:1,re:null,kn:null,Qw:!1,PB:!1,Fg:0,Gg:0,F:null,bc:!0,je:null,K:null,If:!1,ra:null,zi:!1,tag:b.Zy,userData:null,userObject:null,ud:!1,Ma:null,arrivalOrder:0,Ed:null,Yb:null,eW:null,qu:!1,pu:null,ke:null,yv:!1,pc:"Node",OC:!1,Ci:"",Bg:255,sd:null,Rc:!1,Sc:!1,f:null,ri:null,ctor:function(){this.AL();this.DL()},AL:function(){this.je=b.i(0,0);this.K=b.size(0,0);this.re=b.i(0,0);this.kn=b.i(0,0);this.F=[];var a=b.la;this.Ed=a.Or();this.Yb=a.fj();this.pu=
{a:1,b:0,c:0,I:1,X:0,Y:0};b.wG&&(this.ke=new b.wG(this));this.Bg=255;this.sd=b.color(255,255,255,255);this.Sc=this.Rc=!1},fa:function(){return!0},Ke:function(a,c){if(a&&0!==a.length){var d,e=a.length,f;d=b.e.te;switch(c){case d.zc:for(d=0;d<e;d++)(f=a[d])&&f.zc();break;case d.Ac:for(d=0;d<e;d++)(f=a[d])&&f.Ac();break;case d.bg:for(d=0;d<e;d++)(f=a[d])&&f.bg();break;case d.Pf:for(d=0;d<e;d++)(f=a[d])&&f.Pf();break;case d.$d:for(d=0;d<e;d++)(f=a[d])&&f.$d();break;case d.Ud:for(d=0;d<e;d++)(f=a[d])&&
f.Ud();break;case d.Zd:for(d=0;d<e;d++)(f=a[d])&&f.Zd();break;default:b.assert(0,b.j.tH)}}},yX:function(a){for(var c in a)this[c]=a[c]},HP:function(){return this.Fg},jS:function(a){this.Fg=a;this.f.S(b.e.H.ba)},IP:function(){return this.Gg},kS:function(a){this.Gg=a;this.f.S(b.e.H.ba)},yF:function(a){this.yb=a;this.ra&&this.ra.to(this,a);b.Z.gr(this)},FC:function(a){this.yb=a},pP:function(){return this.yb},x0:function(){b.log(b.j.zH);return this.yb},L5:function(a){b.log(b.j.JH);this.yF(a)},L4:function(a){this.qg!==
a&&(this.qg=a,b.Z.gr(this))},o_:function(){return this.qg},TP:function(){return this.yr},wS:function(a){this.yr=a},BP:function(){this.Ji!==this.vk&&b.log(b.j.xH);return this.Ji},fS:function(a){this.Ji=this.vk=a;this.f.S(b.e.H.ba)},CP:function(){return this.Ji},gS:function(a){this.Ji=a;this.f.S(b.e.H.ba)},DP:function(){return this.vk},hS:function(a){this.vk=a;this.f.S(b.e.H.ba)},EP:function(){this.ha!==this.Da&&b.log(b.j.yH);return this.ha},Ks:function(a,c){this.ha=a;this.Da=c||0===c?c:a;this.f.S(b.e.H.ba)},
eE:function(){return this.ha},ly:function(a){this.ha=a;this.f.S(b.e.H.ba)},fE:function(){return this.Da},my:function(a){this.Da=a;this.f.S(b.e.H.ba)},gb:function(a,c){var d=this.re;if(void 0===c){if(d.x===a.x&&d.y===a.y)return;d.x=a.x;d.y=a.y}else{if(d.x===a&&d.y===c)return;d.x=a;d.y=c}this.Qw=!1;this.f.S(b.e.H.ba)},U4:function(a,c){var d=this.kn;void 0===c?(d.x=a.x,d.y=a.y):(d.x=a,d.y=c);this.PB=this.Qw=!0;this.f.S(b.e.H.ba)},J_:function(){return b.i(this.re)},A_:function(){return b.i(this.kn)},
yd:function(){return this.re.x},aS:function(a){this.re.x=a;this.f.S(b.e.H.ba)},df:function(){return this.re.y},bS:function(a){this.re.y=a;this.f.S(b.e.H.ba)},aP:function(){return this.F.length},$O:function(){return this.F},AQ:function(){return this.bc},Qs:function(a){this.bc!==a&&(this.bc=a,this.f.S(b.e.H.ba),b.sa.cd=!0)},FZ:function(){return b.i(this.je)},cg:function(a,c){var d=this.je;if(void 0===c){if(a.x===d.x&&a.y===d.y)return;d.x=a.x;d.y=a.y}else{if(a===d.x&&c===d.y)return;d.x=a;d.y=c}ga(this.f)},
cv:function(){return this.je.x},hw:function(a){this.je.x!==a&&(this.je.x=a,ga(this.f))},RK:function(){return this.je.y},iw:function(a){this.je.y!==a&&(this.je.y=a,ga(this.f))},Pr:function(){return this.f.Pr()},Oe:function(){return this.K.width},zk:function(a){this.K.width=a;ga(this.f)},Ah:function(){return this.K.height},xk:function(a){this.K.height=a;ga(this.f)},Sf:function(){return b.size(this.K)},ed:function(a,c){var d=this.K;if(void 0===c){if(a.width===d.width&&a.height===d.height)return;d.width=
a.width;d.height=a.height}else{if(a===d.width&&c===d.height)return;d.width=a;d.height=c}ga(this.f)},xQ:function(){return this.If},getParent:function(){return this.ra},zF:function(a){this.ra=a},uQ:function(){return this.zi},bs:function(a){a!==this.zi&&(this.zi=a,this.f.S(b.e.H.ba))},Ix:function(){return this.tag},Os:function(a){this.tag=a},WR:function(a){this.Ci=a},getName:function(){return this.Ci},getUserData:function(){return this.userData},setUserData:function(a){this.userData=a},p0:function(){return this.userObject},
H5:function(a){this.userObject!==a&&(this.userObject=a)},E_:function(){return this.arrivalOrder},YR:function(a){this.arrivalOrder=a},Or:function(){this.Ed||(this.Ed=b.la.Or());return this.Ed},mF:function(a){this.Ed!==a&&(this.py(),this.Ed=a)},fj:function(){this.Yb||(this.Yb=b.la.fj());return this.Yb},DF:function(a){this.Yb!==a&&(this.sy(),this.Yb=a)},EX:function(){b.log(b.j.vH);return this.YO()},YO:function(){var a=b.rect(0,0,this.K.width,this.K.height);return b.jC(a,this.wc())},Pf:function(){this.py();
this.sy();b.Z.$E(this);this.Ke(this.F,b.e.te.Pf)},Uh:function(a){var c=this.F;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];if(e&&e.tag===a)return e}return null},PZ:function(a){if(!a)return b.log("Invalid name"),null;for(var c=this.F,d=0,e=c.length;d<e;d++)if(c[d].Ci===a)return c[d];return null},ea:function(a,c,d){c=void 0===c?a.yb:c;var e,f=!1;b.Ug(d)?(d=void 0,e=a.Ci):b.Cd(d)?(e=d,d=void 0):b.Tx(d)&&(f=!0,e="");b.assert(a,b.j.uH);b.assert(null===a.ra,"child already added. It can't be added again");
this.dK(a,c,d,e,f)},dK:function(a,c,d,e,f){this.F||(this.F=[]);this.GL(a,c);f?a.Os(d):a.WR(e);a.zF(this);a.YR(b.fy++);this.If&&(a.zc(),this.yv&&a.bg());this.Rc&&a.f.S(b.e.H.Ob);this.Sc&&a.f.S(b.e.H.ec)},ay:function(a){this.ra&&(void 0===a&&(a=!0),this.ra.removeChild(this,a))},G3:function(a){b.log(b.j.DH);this.ay(a)},removeChild:function(a,c){0!==this.F.length&&(void 0===c&&(c=!0),-1<this.F.indexOf(a)&&this.xK(a,c),b.sa.cd=!0)},D3:function(a,c){a===b.Zy&&b.log(b.j.BH);var d=this.Uh(a);d?this.removeChild(d,
c):b.log(b.j.CH,a)},x3:function(a){this.so(a)},so:function(a){var c=this.F;if(null!==c){void 0===a&&(a=!0);for(var d=0;d<c.length;d++){var e=c[d];e&&(this.If&&(e.Ud(),e.Ac()),a&&e.Pf(),e.parent=null,e.f.Kr())}this.F.length=0;b.sa.cd=!0}},xK:function(a,c){this.If&&(a.Ud(),a.Ac());c&&a.Pf();a.parent=null;a.f.Kr();b.Jc(this.F,a)},GL:function(a,c){b.sa.cd=this.ud=!0;this.F.push(a);a.FC(c)},ah:function(){this.f.S(b.e.H.ba)},to:function(a,c){b.assert(a,b.j.EH);b.sa.cd=this.ud=!0;a.arrivalOrder=b.fy;b.fy++;
a.FC(c);this.f.S(b.e.H.Yg)},Zd:function(){if(this.ud){var a=this.F,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.yb<a[e].yb)a[e+1]=a[e];else if(f.yb===a[e].yb&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.ud=!1}},sY:function(){},cT:function(){null!==this.ra&&(this.ra.cT(),this.ra.transform())},zc:function(){this.yv=!1;this.If=!0;this.Ke(this.F,b.e.te.zc);this.uo()},bg:function(){this.yv=!0;this.Ke(this.F,b.e.te.bg)},Ud:function(){this.Ke(this.F,b.e.te.Ud)},
Ac:function(){this.If=!1;this.pause();this.Ke(this.F,b.e.te.Ac);this.mR()},ey:function(a){b.assert(a,b.j.GH);this.actionManager.gN(a,this,!this.If);return a},py:function(){this.actionManager&&this.actionManager.ZE(this)},MS:function(a){this.actionManager.YE(a)},NS:function(a){a===b.zj?b.log(b.j.KH):this.actionManager.lR(a,this)},xx:function(a){return a===b.zj?(b.log(b.j.wH),null):this.actionManager.xx(a,this)},C_:function(){return this.actionManager.TQ(this)},xl:function(){this.BR(0)},BR:function(a){this.scheduler.xl(this,
a,!this.If)},eh:function(){this.scheduler.eh(this)},vo:function(a,c,d,e,f){var g=arguments.length;"function"===typeof a?1===g?(c=0,d=b.He,e=0,f=this.P):2===g?"number"===typeof c?(d=b.He,e=0,f=this.P):(f=c,c=0,d=b.He,e=0):3===g?("string"===typeof d?(f=d,d=b.He):f=this.P,e=0):4===g&&(f=this.P):1===g?(c=0,d=b.He,e=0):2===g&&(d=b.He,e=0);b.assert(a,b.j.HH);b.assert(0<=c,b.j.IH);d=null==d?b.He:d;this.scheduler.vo(a,this,c||0,d,e||0,!this.If,f)},hy:function(a,c,d){void 0===d&&(d=this.P);this.vo(a,0,0,c,
d)},yj:function(a){a&&this.scheduler.yj(a,this)},sy:function(){this.scheduler.TF(this)},S3:function(){b.log(b.j.FH);this.uo()},uo:function(){this.scheduler.$g(this);this.actionManager&&this.actionManager.$g(this);b.Z.$g(this)},b3:function(){b.log(b.j.AH);this.pause()},pause:function(){this.scheduler.rl(this);this.actionManager&&this.actionManager.rl(this);b.Z.rl(this)},i4:function(a){if(void 0===a)return this.qu=!1;this.pu=a;this.f.S(b.e.H.ba);this.qu=!0},Fx:function(){this.f.Fx()},Y2:function(){return this.Fx()},
Vh:function(){for(var a=this.wc(),c=this.ra;null!==c;c=c.parent)a=b.Kn(a,c.wc());return a},d2:function(){return this.Vh()},jE:function(){return b.uD(this.Vh())},H6:function(){return this.jE()},ix:function(a){return b.Vd(a,this.jE())},GD:function(a){a=a||b.i(0,0);return b.Vd(a,this.Vh())},$N:function(a){return b.Kc(this.ix(a),this.f.Pr())},TX:function(a){a=a||b.i(0,0);a=b.pl(a,this.f.Pr());return this.GD(a)},$V:function(a){a=this.GD(a);return b.la.FD(a)},UX:function(a){return this.ix(a.ej())},VX:function(a){a=
b.la.ED(a.ej());return this.$N(a)},update:function(a){this.ke&&!this.ke.Y0()&&this.ke.za(a)},$d:function(){this.Ke(this.F,b.e.te.$d)},zs:function(){},Wd:function(){},cP:function(a){return this.ke?this.ke.cP(a):null},$W:function(a){this.ke&&this.ke.add(a)},E3:function(a){return this.ke?this.ke.remove(a):!1},mR:function(){this.ke&&this.ke.v3()},Zr:null,za:function(a){this.f.za(a)},transform:function(a,c){this.f.transform(a,c)},c2:function(){return this.wc()},wc:function(a){var c=this.f.wc();if(a)for(var c=
{a:c.a,b:c.b,c:c.c,I:c.I,X:c.X,Y:c.Y},d=this.ra;null!=d&&d!=a;d=d.getParent())b.lN(c,d.wc());return c},z_:function(a){return this.wc(a)},zx:function(){this.ri||(this.ri=new b.Ol);return this.ri},p_:function(){return this.Zr},M4:function(a){this.Zr=a},cl:function(){return this.f.cl()},uj:function(a){this.f.uj(a)},n_:function(){return 0},K4:function(){},ZO:function(){var a=b.rect(0,0,this.K.width,this.K.height),c=this.Vh(),a=b.Zx(a,c);if(!this.F)return a;for(var d=this.F,e=0;e<d.length;e++){var f=d[e];
f&&f.bc&&(f=f.Wm(c))&&(a=b.ts(a,f))}return a},Wm:function(a){var c=b.rect(0,0,this.K.width,this.K.height);a=void 0===a?this.wc():b.Kn(this.wc(),a);c=b.Zx(c,a);if(!this.F)return c;for(var d=this.F,e=0;e<d.length;e++){var f=d[e];f&&f.bc&&(f=f.Wm(a))&&(c=b.ts(c,f))}return c},Zk:function(){return this.Bg},Sr:function(){return this.f.Sr()},Yd:function(a){this.Bg=a;this.f.S(b.e.H.ec)},WF:function(a){ha(this.f,a)},rQ:function(){return this.Sc},yl:function(a){this.Sc!==a&&(this.Sc=a,a=this.f,a.Cu=!0,a.S(b.e.H.ec))},
Rg:function(){var a=this.sd;return b.color(a.r,a.g,a.b,a.a)},Rr:function(){return this.f.Rr()},Ea:function(a){var c=this.sd;c.r=a.r;c.g=a.g;c.b=a.b;this.f.S(b.e.H.Ob)},VF:function(a){ia(this.f,a)},qQ:function(){return this.Rc},sj:function(a){this.Rc!==a&&(this.Rc=a,a=this.f,a.Bu=!0,a.S(b.e.H.Ob))},tj:function(){},Yh:function(){return!1},DL:function(){this.f=b.sa.dE(this)},ld:function(){return b.ta===b.q.Jb?new b.e.t(this):new b.e.B(this)},dZ:function(a,c){b.assert(a&&0!=a.length,"Invalid name");b.assert(null!=
c,"Invalid callback function");var d=a.length,e=0,f=d,g=!1;2<d&&"/"===a[0]&&"/"===a[1]&&(g=!0,e=2,f-=2);var h=!1;3<d&&"/"===a[d-3]&&"."===a[d-2]&&"."===a[d-1]&&(h=!0,f-=3);d=a.substr(e,f);h&&(d="[[:alnum:]]+/"+d);g?this.ND(this,d,c):this.lx(d,c)},ND:function(a,c,d){if(!a.lx(c,d))for(var e=a.F,f=e.length,g=0;g<f&&(a=e[g],!this.ND(a,c,d));g++);},lx:function(a,c){var d=a.indexOf("/"),e=a,f=!1;-1!==d&&(e=a.substr(0,d),f=!0);for(var d=!1,g,h=this.F,k=h.length,m=0;m<k;m++)if(g=h[m],-1!==g.Ci.indexOf(e))if(f){if(d=
g.lx(a,c))break}else if(c(g)){d=!0;break}return d}});b.e.create=function(){return new b.e};b.e.te={zc:1,Ac:2,Pf:3,bg:4,$d:5,Ud:6,Zd:7};b.assert(b.mc(b.ca.Et),b.j.of,"BaseNodesPropertyDefine.js");b.ca.Et();delete b.ca.Et;b.fi=function(a,c){this.qb=!0;this.$b=a;this.Ub=c;this.fb=function(a,c,f){this.Ub&&this.Ub.call(this.$b,a,c,f)}};b.e.H={ba:1,D6:2,Ob:4,ec:8,FX:16,Yg:32,Gl:64,Ad:128,all:255};b.e.hb=function(a){this.D=1;this.n=a;this.qb=!1;this.uf=new b.$H;this.sr={a:1,b:0,c:0,I:1,X:0,Y:0};this.Og={a:1,b:0,c:0,I:1,X:0,Y:0};this.tB={a:1,b:0,c:0,I:1,X:0,Y:0};this.Gb=255;this.xb=b.color(255,255,255,255);this.Cu=this.Bu=!1;this.Uc=-1};
b.e.hb.prototype={constructor:b.e.hb,Pr:function(){return b.i(this.uf)},Rr:function(){var a=this.xb;return b.color(a.r,a.g,a.b,a.a)},Sr:function(){return this.Gb},Fx:function(){this.D&b.e.H.ba&&(this.tB=b.uD(this.wc()));return this.tB},Kr:function(){},S:function(a){0===this.D&&0!==a&&b.sa.TE(this);this.D|=a},ac:function(){},updateStatus:function(){var a=b.e.H,c=this.D,d=c&a.Ob,e=c&a.ec;d&&ia(this);e&&ha(this);(d||e)&&this.ac();c&a.ba&&(this.transform(H(this),!0),this.D^=this.D&a.ba);c&a.Yg&&(this.D^=
this.D&a.Yg)},wc:function(){var a=this.n;if(a.Qw&&a.ra){var c=a.ra.K;a.re.x=a.kn.x*c.width;a.re.y=a.kn.y*c.height;a.PB=!1;this.D|=b.e.H.ba}if(this.D&b.e.H.ba){c=this.sr;c.X=a.re.x;c.Y=a.re.y;var d=1,e=0,f=0,g=1;a.Ji&&(g=0.017453292519943295*a.Ji,f=Math.sin(g),g=Math.cos(g));a.vk&&(e=0.017453292519943295*a.vk,d=Math.cos(e),e=-Math.sin(e));c.a=d;c.b=e;c.c=f;c.I=g;var h=a.ha,k=a.Da,m=this.uf.x,n=this.uf.y,p=1E-6>h&&-1E-6<h?1E-6:h,r=1E-6>k&&-1E-6<k?1E-6:k;if(1!==h||1!==k)d=c.a*=p,e=c.b*=p,f=c.c*=r,g=
c.I*=r;if(a.Fg||a.Gg)h=Math.tan(-a.Fg*Math.PI/180),k=Math.tan(-a.Gg*Math.PI/180),Infinity===h&&(h=99999999),Infinity===k&&(k=99999999),p=n*h,r=m*k,c.a=d-f*k,c.b=e-g*k,c.c=f-d*h,c.I=g-e*h,c.X+=d*p+f*r,c.Y+=e*p+g*r;c.X-=d*m+f*n;c.Y-=e*m+g*n;a.zi&&(c.X+=m,c.Y+=n);a.qu&&(this.sr=b.Kn(c,a.pu))}return this.sr},Qd:function(a){var c=b.e.H,d=this.D,e=a?a.n:null;e&&e.Rc&&a.D&c.Ob&&(d|=c.Ob);e&&e.Sc&&a.D&c.ec&&(d|=c.ec);a&&a.D&c.ba&&(d|=c.ba);var e=d&c.Ob,f=d&c.ec;this.D=d;e&&ja(this);f&&ka(this);(e||f)&&this.ac();
(b.ta===b.q.ic||d&c.ba)&&this.transform(a,!0);d&c.Yg&&(this.D^=this.D&c.Yg)}};function la(a){var c=a.n,d=c.F,e,f=d.length;if(0<f){c.Zd();for(c=0;c<f;c++)if(e=d[c],0>e.yb)e.f.za(a);else break;for(b.sa.Dd(a);c<f;c++)d[c].f.za(a)}else b.sa.Dd(a);a.D=0}function ka(a){var c,d=a.n;if(void 0===c){var e=d.ra;c=255;e&&e.Sc&&(c=e.Sr())}a.Gb=d.Bg*c/255}function ja(a){var c,d=a.n;a=a.xb;var e=d.sd;void 0===c&&(c=(c=d.ra)&&c.Rc?c.Rr():b.color.WHITE);a.r=0|e.r*c.r/255;a.g=0|e.g*c.g/255;a.b=0|e.b*c.b/255}
function ha(a,c){var d=a.n,e,f,g;if(a.Cu&&!d.Sc){a.Gb=d.Bg;f=d.F;d=0;for(e=f.length;d<e;d++)(g=f[d])&&g.f&&ha(g.f,255);a.Cu=!1}else if(void 0===c&&(e=d.ra,c=255,e&&e.Sc&&(c=e.Sr())),a.Gb=d.Bg*c/255,d.Sc)for(f=d.F,d=0,e=f.length;d<e;d++)(g=f[d])&&g.f&&(ha(g.f,a.Gb),g.f.ac());a.D^=a.D&b.e.H.ec}
function ia(a,c){var d=a.n,e=a.xb,f=d.sd,g,h;if(a.Bu&&!d.Rc){e.r=f.r;e.g=f.g;e.b=f.b;e=new b.Nc(255,255,255,255);g=d.F;d=0;for(f=g.length;d<f;d++)(h=g[d])&&h.f&&ia(h.f,e);a.Bu=!1}else if(void 0===c&&(c=(g=d.ra)&&g.Rc?g.Rr():b.color.WHITE),e.r=0|f.r*c.r/255,e.g=0|f.g*c.g/255,e.b=0|f.b*c.b/255,d.Rc)for(g=d.F,d=0,f=g.length;d<f;d++)(h=g[d])&&h.f&&(ia(h.f,e),h.f.ac());a.D^=a.D&b.e.H.Ob}function H(a){return a.n&&a.n.ra&&a.n.ra.f?a.n.ra.f:null}
function ga(a){var c=a.uf,d=a.n.K,e=a.n.je;c.x=d.width*e.x;c.y=d.height*e.y;a.S(b.e.H.ba)}
(function(){b.e.t=function(a){b.e.hb.call(this,a);this.Hm=null;this.Gd=!1};var a=b.e.t.prototype=Object.create(b.e.hb.prototype);a.constructor=b.e.t;a.transform=function(a,d){var e=this.wc(),f=this.Og;this.Gd=!0;if(a){var g=a.Og;f.a=e.a*g.a+e.b*g.c;f.b=e.a*g.b+e.b*g.I;f.c=e.c*g.a+e.I*g.c;f.I=e.c*g.b+e.I*g.I;f.X=g.a*e.X+g.c*e.Y+g.X;f.Y=g.I*e.Y+g.Y+g.b*e.X}else f.a=e.a,f.b=e.b,f.c=e.c,f.I=e.I,f.X=e.X,f.Y=e.Y;if(d&&(e=this.n.F)&&0!==e.length)for(f=0,g=e.length;f<g;f++)e[f].f.transform(this,d)};a.za=
function(a){if(this.n.bc){if(a=a||H(this))this.Uc=a.Uc+1;this.Qd(a);la(this)}};a.S=function(a,d){b.e.hb.prototype.S.call(this,a,d);this.DC(d);this.Hm&&this.Hm.S(a,!0)};a.DC=function(){!1===this.Gd&&(this.Gd=!0)};a.fr=function(a){if(this.Hm!==a){this.Hm=a;for(var d=this.n.F,e=0,f=d.length;e<f;e++)d[e].f.fr(a)}};a.Kr=function(){this.Hm=null;for(var a=this.n.F,d,e=0,f=a.length;e<f;e++)(d=a[e])&&d.f&&d.f.Kr()};a.uj=function(){};a.cl=function(){return null};b.e.t.gB=function(a){return a?a.src===b.SRC_ALPHA&&
a.ya===b.ONE||a.src===b.ONE&&a.ya===b.ONE?"lighter":a.src===b.ZERO&&a.ya===b.SRC_ALPHA?"destination-in":a.src===b.ZERO&&a.ya===b.ONE_MINUS_SRC_ALPHA?"destination-out":"source-over":"source-over"}})();(function(){b.e.B=function(a){b.e.hb.call(this,a);a=new b.d.Q;var d=a.l;d[2]=d[3]=d[6]=d[7]=d[8]=d[9]=d[11]=d[14]=0;d[10]=d[15]=1;this.VM=a;this.Zc=new b.d.Q;this.ri=this.Ma=null};var a=b.e.B.prototype=Object.create(b.e.hb.prototype);a.constructor=b.e.B;a.ac=function(){};a.za=function(a){var d=this.n;d.bc&&(a=a||H(this),d.ra&&d.ra.f&&(this.Uc=d.ra.f.Uc+1),d=b.Na,d.stack.push(d.top),this.Qd(a),d.top=this.Zc,la(this),d.top=d.stack.pop())};a.transform=function(a,d){var e=this.VM,f=this.Zc,g=this.n,h=
(a=a||H(this))?a.Zc:b.Na.top,k=this.wc();this.D^=this.D&b.e.H.ba;var m=e.l;m[0]=k.a;m[4]=k.c;m[12]=k.X;m[1]=k.b;m[5]=k.I;m[13]=k.Y;m[14]=g.yr;b.ks(f,h,e);null===g.ri||null!==g.Zr&&g.Zr.T0()||(h=this.uf.x,k=this.uf.y,0!==h||0!==k?(b.jz||(h|=0,k|=0),m=b.d.Q.Vk(h,k,0,e),f.multiply(m),g.ri.KB(f),m=b.d.Q.Vk(-h,-k,0,m),f.multiply(m),e.dc()):g.ri.KB(f));if(d&&g.F&&0!==g.F.length)for(g=g.F,e=0,f=g.length;e<f;e++)g[e].f.transform(this,d)};a.uj=function(a){this.Ma=a};a.cl=function(){return this.Ma}})();b.Sb=b.e.extend({textureAtlas:null,quadsToDraw:0,mk:0,zB:0,Ld:0,Vc:0,zb:!1,T:null,Dq:!1,pc:"AtlasNode",$:null,VW:null,ctor:function(a,c,d,e){b.e.prototype.ctor.call(this);this.T={src:b.fg,ya:b.mf};this.Dq=!1;void 0!==e&&this.jQ(a,c,d,e)},ld:function(){this.f=b.ta===b.q.Jb?new b.Sb.t(this):new b.Sb.B(this)},Jl:function(){b.log(b.j.eG)},Rg:function(){return this.zb?this.f.vi:b.e.prototype.Rg.call(this)},tj:function(a){var c=this.color;this.zb=a;this.Ea(c)},Yh:function(){return this.zb},Qr:function(){return this.T},
Ds:function(a,c){this.T=void 0===c?a:{src:a,ya:c}},Bo:function(a){this.textureAtlas=a},Wh:function(){return this.textureAtlas},N_:function(){return this.quadsToDraw},e5:function(a){this.quadsToDraw=a},jQ:function(a,c,d,e){if(!a)throw Error("cc.AtlasNode.initWithTileFile(): title should not be null");a=b.Ra.tc(a);return this.ua(a,c,d,e)},ua:function(a,c,d,e){return this.f.ua(a,c,d,e)},Ea:function(a){this.f.Ea(a)},Yd:function(a){this.f.Yd(a)},Db:function(){return this.$},nb:function(a){this.$=a},LW:function(a){this.Dq=
a}});w=b.Sb.prototype;b.m(w,"opacity",w.Zk,w.Yd);b.m(w,"color",w.Rg,w.Ea);b.m(w,"texture",w.Db,w.nb);b.ee.prototype.apply(w);b.Sb.create=function(a,c,d,e){return new b.Sb(a,c,d,e)};(function(){b.Sb.t=function(a){b.e.t.call(this,a);this.qb=!1;this.vi=b.color.WHITE;this.Rd=null};var a=b.Sb.t.prototype=Object.create(b.e.t.prototype);a.constructor=b.Sb.t;a.ua=function(a,d,e,f){var g=this.n;g.Ld=d;g.Vc=e;g.zb=!0;g.$=a;if(!g.$)return b.log(b.j.yy),!1;this.Rd=a;this.zu();g.quadsToDraw=f;return!0};a.Ea=function(a){var d=this.n.sd;if(d.r!==a.r||d.g!==a.g||d.b!==a.b)this.vi=a,this.Uj()};a.Uj=function(){var a=this.n.$,d=this.vi,e=a.Fa,e=b.rect(0,0,e.width,e.height);a===this.Rd?this.Rd=
a.Vm(d.r,d.g,d.b,e):a.Vm(d.r,d.g,d.b,e,this.Rd.Fa)};a.Yd=function(a){b.e.prototype.Yd.call(this.n,a)};a.zu=function(){var a=this.n,d=a.$.Sf();a.zB=0|d.height/a.Vc;a.mk=0|d.width/a.Ld}})();(function(){b.Sb.B=function(a){b.e.B.call(this,a);this.qb=!0;this.Ga=null;this.vi=b.color.WHITE;this.Ow=this.fq=null;this.Ma=b.Ce.nc(b.Rt);this.Ow=b.o.getUniformLocation(this.Ma.al(),"u_color")};var a=b.Sb.B.prototype=Object.create(b.e.B.prototype);a.constructor=b.Sb.B;a.Vi=function(){var a=this.n;this.Ga.texture.fl()||(a.T.src=b.SRC_ALPHA,a.T.ya=b.ONE_MINUS_SRC_ALPHA)};a.jD=function(){this.n.zb=this.Ga.texture.fl()};a.fb=function(a){a=a||b.o;var d=this.n;this.Ma.Rb();this.Ma.Oi(this.Zc);b.Vf(d.T.src,
d.T.ya);this.Ow&&this.fq&&(a.uniform4fv(this.Ow,this.fq),this.Ga.PD(d.quadsToDraw))};a.ua=function(a,d,e,f){var g=this.n;g.Ld=d;g.Vc=e;this.vi=b.color.WHITE;g.zb=!0;g.T.src=b.fg;g.T.ya=b.mf;d=g.sd;this.fq=new Float32Array([d.r/255,d.g/255,d.b/255,g.Bg/255]);this.Ga=new b.jg;this.Ga.ua(a,f);if(!this.Ga)return b.log(b.j.yy),!1;this.Vi();this.jD();this.zu();g.quadsToDraw=f;return!0};a.Ea=function(a){var d=b.color(a.r,a.g,a.b),e=this.n;this.vi=a;a=this.Gb;e.zb&&(d.r=d.r*a/255,d.g=d.g*a/255,d.b=d.b*a/
255);b.e.prototype.Ea.call(e,d)};a.Yd=function(a){var d=this.n;b.e.prototype.Yd.call(d,a);d.zb&&(d.color=this.vi)};a.ac=function(){var a=this.xb;this.fq=new Float32Array([a.r/255,a.g/255,a.b/255,this.Gb/255])};a.Db=function(){return this.Ga.texture};a.nb=function(a){this.Ga.texture=a;this.Vi();this.jD()};a.zu=function(){var a=this.n,d=this.Ga.texture,e=d.Sf();a.Dq&&(e=d.K);a.zB=0|e.height/a.Vc;a.mk=0|e.width/a.Ld}})();b.ca.hu=function(){b.ma=b.Aa.extend({xW:!0,tk:null,yg:0,xg:0,Ci:"",K:null,$f:0,ag:0,Cq:!1,hk:!1,shaderProgram:null,L:!1,Fa:null,Ng:null,url:null,ctor:function(){this.K=b.size(0,0);this.tk=b.ma.MD},$x:function(){this.Ng&&b.o.deleteTexture(this.Ng);b.O.Wd(this.url)},bE:function(){return this.tk},Hx:function(){return this.yg},Gx:function(){return this.xg},getName:function(){return this.Ng},Sf:function(){return b.size(this.K.width/b.Qa(),this.K.height/b.Qa())},Oe:function(){return this.K.width/b.Qa()},
Ah:function(){return this.K.height/b.Qa()},dP:function(){return this.K},sP:function(){return this.$f},UR:function(a){this.$f=a},tP:function(){return this.ag},VR:function(a){this.ag=a},cl:function(){return this.shaderProgram},uj:function(a){this.shaderProgram=a},fl:function(){return this.Cq},YP:function(){return this.hk},description:function(){return"\x3ccc.Texture2D | Name \x3d "+this.Ci+" | Dimensions \x3d "+this.yg+" x "+this.xg+" | Coordinates \x3d ("+this.$f+", "+this.ag+")\x3e"},kR:function(){},
EQ:function(a){return a},qE:function(a,c,d,e,f){var g=b.ma,h=b.o,k=h.RGBA,m=h.UNSIGNED_BYTE,n=d*b.ma.wz[c]/8;0===n%8?h.pixelStorei(h.UNPACK_ALIGNMENT,8):0===n%4?h.pixelStorei(h.UNPACK_ALIGNMENT,4):0===n%2?h.pixelStorei(h.UNPACK_ALIGNMENT,2):h.pixelStorei(h.UNPACK_ALIGNMENT,1);this.Ng=h.createTexture();b.ef(this);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,h.LINEAR);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,
h.TEXTURE_WRAP_T,h.CLAMP_TO_EDGE);switch(c){case g.nm:k=h.RGBA;break;case g.mm:k=h.RGB;break;case g.xp:m=h.UNSIGNED_SHORT_4_4_4_4;break;case g.wp:m=h.UNSIGNED_SHORT_5_5_5_1;break;case g.lm:m=h.UNSIGNED_SHORT_5_6_5;break;case g.Bt:k=h.LUMINANCE_ALPHA;break;case g.vp:k=h.ALPHA;break;case g.Ct:k=h.LUMINANCE;break;default:b.assert(0,b.j.cJ)}h.texImage2D(h.TEXTURE_2D,0,k,d,e,0,k,m,a);this.K.width=f.width;this.K.height=f.height;this.yg=d;this.xg=e;this.tk=c;this.$f=f.width/d;this.ag=f.height/e;this.hk=
this.Cq=!1;this.shaderProgram=b.Ce.nc(b.Ep);return this.L=!0},lO:function(a){var c=[0,this.ag,this.$f,this.ag,0,0,this.$f,0],d=this.yg*this.$f,e=this.xg*this.ag;a=[a.x,a.y,0,d+a.x,a.y,0,a.x,e+a.y,0,d+a.x,e+a.y,0];b.xc(b.Dc|b.Sp);this.Ma.Rb();this.Ma.GF();b.ef(this);d=b.o;d.vertexAttribPointer(b.Ua,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.ie,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},nO:function(a){var c=[0,this.ag,this.$f,this.ag,0,0,this.$f,0];a=[a.x,a.y,a.x+a.width,a.y,a.x,a.y+a.height,
a.x+a.width,a.y+a.height];b.xc(b.Dc|b.Sp);this.Ma.Rb();this.Ma.GF();b.ef(this);var d=b.o;d.vertexAttribPointer(b.Ua,2,d.FLOAT,!1,0,a);d.vertexAttribPointer(b.ie,2,d.FLOAT,!1,0,c);d.drawArrays(d.TRIANGLE_STRIP,0,4)},uE:function(a){if(null==a)return b.log(b.j.fJ),!1;var c=a.VP(),d=a.kP(),e=b.gx.gn;if(c>e||d>e)return b.log(b.j.gJ,c,d,e,e),!1;this.L=!0;return this.BL(a,c,d)},Bd:function(a){a&&(this.Ng=b.o.createTexture(),this.Fa=a,this.L=!0)},mP:function(){return this.Fa},vQ:function(){return this.L},
tb:function(a){a=void 0===a?!1:a;if(b.q.rn){if(!this.Fa){var c=b.O.zd(this.url);if(!c)return;this.Bd(c)}this.Fa.width&&this.Fa.height&&(c=b.o,b.ef(this),c.pixelStorei(c.UNPACK_ALIGNMENT,4),a&&c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1),c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,this.Fa),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,
c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),this.shaderProgram=b.Ce.nc(b.Ep),b.ef(null),a&&c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),c=this.Fa.height,this.yg=this.K.width=this.Fa.width,this.xg=this.K.height=c,this.tk=b.ma.nm,this.ag=this.$f=1,this.Cq=a,this.hk=!1,this.dispatchEvent("load"))}},Td:function(){b.log(b.j.lJ);return null},dQ:function(){b.log(b.j.eJ);return!1},eQ:function(){b.log(b.j.iJ);return!1},fQ:function(){b.log(b.j.kJ);return!1},pS:function(a,c,d,e){var f=b.o;void 0!==c&&(a={KE:a,IE:c,
Jo:d,Ko:e});b.assert(this.yg===b.yt(this.yg)&&this.xg===b.yt(this.xg)||a.Jo===f.CLAMP_TO_EDGE&&a.Ko===f.CLAMP_TO_EDGE,"WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures");b.ef(this);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,a.KE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MAG_FILTER,a.IE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,a.Jo);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,a.Ko)},GR:function(){var a=b.o;b.ef(this);this.hk?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,
a.LINEAR_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR)},DR:function(){var a=b.o;b.ef(this);this.hk?a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST_MIPMAP_NEAREST):a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)},generateMipmap:function(){b.assert(this.yg===b.yt(this.yg)&&this.xg===b.yt(this.xg),"Mimpap texture only works in POT textures");
b.ef(this);b.o.generateMipmap(b.o.TEXTURE_2D);this.hk=!0},OS:function(){return b.ma.ZJ[this.tk]},KN:function(a){a=a||this.tk;var c=b.ma.wz[a];if(null!=c)return c;b.log(b.j.bJ,a);return-1},BL:function(a,c,d){var e=b.ma,f=a.getData(),g=null,g=null,h=a.G0(),k=b.size(a.VP(),a.kP()),m=e.MD,n=a.IZ();h||(8<=n?m=e.mm:(b.log(b.j.ZI),m=e.lm));var p=c*d;if(m===e.lm)if(h)for(f=new Uint16Array(c*d),g=a.getData(),n=0;n<p;++n)f[n]=(g[n]>>0&255)>>3<<11|(g[n]>>8&255)>>2<<5|(g[n]>>16&255)>>3<<0;else for(f=new Uint16Array(c*
d),g=a.getData(),n=0;n<p;++n)f[n]=(g[n]&255)>>3<<11|(g[n]&255)>>2<<5|(g[n]&255)>>3<<0;else if(m===e.xp)for(f=new Uint16Array(c*d),g=a.getData(),n=0;n<p;++n)f[n]=(g[n]>>0&255)>>4<<12|(g[n]>>8&255)>>4<<8|(g[n]>>16&255)>>4<<4|(g[n]>>24&255)>>4<<0;else if(m===e.wp)for(f=new Uint16Array(c*d),g=a.getData(),n=0;n<p;++n)f[n]=(g[n]>>0&255)>>3<<11|(g[n]>>8&255)>>3<<6|(g[n]>>16&255)>>3<<1|(g[n]>>24&255)>>7<<0;else if(m===e.vp)for(f=new Uint8Array(c*d),g=a.getData(),n=0;n<p;++n)f[n]=g>>24&255;if(h&&m===e.mm)for(g=
a.getData(),f=new Uint8Array(c*d*3),n=0;n<p;++n)f[3*n]=g>>0&255,f[3*n+1]=g>>8&255,f[3*n+2]=g>>16&255;this.qE(f,m,c,d,k);a.getData();this.Cq=a.d1();return!0},Jn:function(a,c){this.addEventListener("load",a,c)},oR:function(a){this.removeEventListener("load",a)}})};
b.ca.iu=function(){var a=b.jg.prototype;a.LC=function(){var a=b.o;this.Fd[0]=a.createBuffer();this.Fd[1]=a.createBuffer();this.Ei=a.createBuffer();this.Nq()};a.Nq=function(){var a=b.o;a.bindBuffer(a.ARRAY_BUFFER,this.Ei);a.bufferData(a.ARRAY_BUFFER,this.rd,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Fd[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.Kd,a.STATIC_DRAW)};a.PD=function(a){var d;d=0;if(0!==a&&this.texture&&this.texture.L){var e=b.o;b.ef(this.texture);b.xc(b.gu);e.bindBuffer(e.ARRAY_BUFFER,
this.Ei);this.dirty&&(e.bufferData(e.ARRAY_BUFFER,this.rd,e.DYNAMIC_DRAW),this.dirty=!1);e.vertexAttribPointer(b.Ua,3,e.FLOAT,!1,24,0);e.vertexAttribPointer(b.he,4,e.UNSIGNED_BYTE,!0,24,12);e.vertexAttribPointer(b.ie,2,e.FLOAT,!1,24,16);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.Fd[1]);b.lz?e.drawElements(e.TRIANGLE_STRIP,6*a,e.UNSIGNED_SHORT,6*d*this.Kd.BYTES_PER_ELEMENT):e.drawElements(e.TRIANGLES,6*a,e.UNSIGNED_SHORT,6*d*this.Kd.BYTES_PER_ELEMENT);b.Rf++}}};
b.ca.ju=function(){var a=b.Ra;a.tb=function(a){var d=this.Cb,e;b.q.rn||(d=this.fn);e=d[a];e||(e=d[a]=new b.ma,e.url=a);".png"===b.path.Th(a)?e.tb(!0):e.tb()};a.tc=function(a,d,e){b.assert(a,b.j.aJ);var f=this.Cb;b.q.rn||(f=this.fn);var g=f[a]||f[b.O.bv(a)];if(g)return g.L?d&&d.call(e,g):g.addEventListener("load",function(){d&&d.call(e,g)},e),g;g=f[a]=new b.ma;g.url=a;(b.O.Mz(a)?b.O.load:b.O.nl).call(b.O,a,function(g){if(g)return d&&d.call(e,g);b.Ra.tb(a);g=f[a];d&&d.call(e,g)});return g};a.hN=a.tc;
a=null};b.ca.Ht=function(){var a=b.ma;a.lV=function(a){b.YH=a};a.nm=2;a.mm=3;a.lm=4;a.vp=5;a.Ct=6;a.Bt=7;a.xp=8;a.wp=7;a.dz=9;a.cz=10;a.QH=a.nm;a.MD=a.QH;var c=b.ma.ZJ={};c[a.nm]="RGBA8888";c[a.mm]="RGB888";c[a.lm]="RGB565";c[a.vp]="A8";c[a.Ct]="I8";c[a.Bt]="AI88";c[a.xp]="RGBA4444";c[a.wp]="RGB5A1";c[a.dz]="PVRTC4";c[a.cz]="PVRTC2";c=b.ma.wz={};c[a.nm]=32;c[a.mm]=24;c[a.lm]=16;c[a.vp]=8;c[a.Ct]=8;c[a.Bt]=16;c[a.xp]=16;c[a.wp]=16;c[a.dz]=4;c[a.cz]=3;a=b.ma.prototype;b.m(a,"name",a.getName);b.m(a,"pixelFormat",
a.bE);b.m(a,"pixelsWidth",a.Hx);b.m(a,"pixelsHeight",a.Gx);b.m(a,"width",a.Oe);b.m(a,"height",a.Ah)};b.ca.It=function(){var a=b.jg.prototype;b.m(a,"totalQuads",a.iE);b.m(a,"capacity",a.VD);b.m(a,"quads",a.cE,a.BF)};b.oT=51;b.rT=19;b.tT=18;b.qT=50;b.nT=34;b.lT=35;b.mT=33;b.pT=49;b.sT=17;b.YH=!1;
b.q.addEventListener(b.q.nf,function(){if(b.ta===b.q.Jb){var a={K:null,L:!1,Fa:null,url:null,Yq:null,ctor:function(){this.K=b.size(0,0);this.L=!1;this.Fa=null;this.Yq=""},Hx:function(){return this.K.width},Gx:function(){return this.K.height},Sf:function(){var a=b.Qa();return b.size(this.K.width/a,this.K.height/a)},Oe:function(){return this.K.width/b.Qa()},Ah:function(){return this.K.height/b.Qa()},dP:function(){return this.K},Bd:function(a){a&&(this.Fa=a,this.K.width=a.width,this.K.height=a.height,
this.L=!0)},mP:function(){return this.Fa},vQ:function(){return this.L},tb:function(){if(!this.L){if(!this.Fa){var a=b.O.zd(this.url);if(!a)return;this.Bd(a)}a=this.Fa;this.K.width=a.width;this.K.height=a.height;this.dispatchEvent("load")}},description:function(){return"\x3ccc.Texture2D | width \x3d "+this.K.width+" height "+this.K.height+"\x3e"},qE:function(){return!1},uE:function(){return!1},Td:function(){return!1},$x:function(){b.O.Wd(this.url)},getName:function(){return null},sP:function(){return 1},
UR:function(){},tP:function(){return 1},VR:function(){},bE:function(){return null},cl:function(){return null},uj:function(){},fl:function(){return!1},YP:function(){return!1},kR:function(){},EQ:function(a){return a},lO:function(){},nO:function(){},dQ:function(){b.log(b.j.dJ);return!1},eQ:function(){b.log(b.j.hJ);return!1},fQ:function(){b.log(b.j.jJ);return!1},pS:function(a,d,e,f){void 0!==d&&(a={KE:a,IE:d,Jo:e,Ko:f});this.Yq=a.Jo===b.REPEAT&&a.Ko===b.REPEAT?"repeat":a.Jo===b.REPEAT?"repeat-x":a.Ko===
b.REPEAT?"repeat-y":""},GR:function(){},DR:function(){},generateMipmap:function(){},OS:function(){return""},KN:function(){return-1},Jn:function(a,d){this.addEventListener("load",a,d)},oR:function(a){this.removeEventListener("load",a)},Vm:function(){},PK:function(){if(this.BD)return this.BD;var a=[document.createElement("canvas"),document.createElement("canvas"),document.createElement("canvas"),document.createElement("canvas")],d=this.Fa,e=d.width,f=d.height;a[0].width=e;a[0].height=f;a[1].width=e;
a[1].height=f;a[2].width=e;a[2].height=f;a[3].width=e;a[3].height=f;var g=a[3].getContext("2d");g.drawImage(d,0,0);for(var g=g.getImageData(0,0,e,f).data,h,k=0;4>k;k++){h=a[k].getContext("2d");for(var m=h.getImageData(0,0,e,f),n=m.data,p=0;p<g.length;p+=4)n[p]=0===k?g[p]:0,n[p+1]=1===k?g[p+1]:0,n[p+2]=2===k?g[p+2]:0,n[p+3]=g[p+3];h.putImageData(m,0,0)}d.onload=null;return this.BD=a},sv:null,vu:null,wv:!1,UW:function(a){this.L&&this.wv!==a&&((this.wv=a)?(this.vu=this.Fa,this.sv||(this.sv=b.ma.NK(this.Fa)),
this.Fa=this.sv):null!==this.vu&&(this.Fa=this.vu))}};a.Vm=b.W.RM?function(a,d,e,f,g){var h=!1;g?h=!0:g=document.createElement("canvas");var k=this.Fa;f||(f=b.rect(0,0,k.width,k.height));g.width=f.width;g.height=f.height;var m=g.getContext("2d");m.globalCompositeOperation="source-over";m.fillStyle="rgb("+(a|0)+","+(d|0)+","+(e|0)+")";m.fillRect(0,0,f.width,f.height);m.globalCompositeOperation="multiply";m.drawImage(k,f.x,f.y,f.width,f.height,0,0,f.width,f.height);m.globalCompositeOperation="destination-atop";
m.drawImage(k,f.x,f.y,f.width,f.height,0,0,f.width,f.height);if(h)return g;a=new b.ma;a.Bd(g);a.tb();return a}:function(a,d,e,f,g){var h=!1;g?h=!0:g=document.createElement("canvas");var k=this.Fa;f||(f=b.rect(0,0,k.width,k.height));var m,n,k=f.x;m=f.y;n=f.width;f=f.height;if(n&&f){g.width=n;g.height=f;var p=g.getContext("2d"),r=b.Ra.NP(this);p.globalCompositeOperation="lighter";p.drawImage(r[3],k,m,n,f,0,0,n,f);0<a&&(p.globalAlpha=a/255,p.drawImage(r[0],k,m,n,f,0,0,n,f));0<d&&(p.globalAlpha=d/255,
p.drawImage(r[1],k,m,n,f,0,0,n,f));0<e&&(p.globalAlpha=e/255,p.drawImage(r[2],k,m,n,f,0,0,n,f));if(h)return g;a=new b.ma;a.Bd(g);a.tb();return a}};b.ma=b.Aa.extend(a);b.ma.NK=function(a){var d,e;if(null===a)return null;e=e||document.createElement("canvas");d=d||b.rect(0,0,a.width,a.height);e.width=d.width;e.height=d.height;var f=e.getContext("2d");f.drawImage(a,d.x,d.y,d.width,d.height,0,0,d.width,d.height);a=f.getImageData(0,0,d.width,d.height);d=a.data;for(var g=0,h=d.length;g<h;g+=4)d[g]=d[g+1]=
d[g+2]=0.34*d[g]+0.5*d[g+1]+0.16*d[g+2];f.putImageData(a,0,0);return e}}else b.ta===b.q.ic&&(b.assert(b.mc(b.ca.hu),b.j.of,"TexturesWebGL.js"),b.ca.hu(),delete b.ca.hu);b.ee.prototype.apply(b.ma.prototype);b.assert(b.mc(b.ca.Ht),b.j.of,"TexturesPropertyDefine.js");b.ca.Ht();delete b.ca.Ht});b.Ra={Cb:{},zn:{},UM:0|1E3*Math.random(),fn:{},FL:function(){var a,c=this.fn,d=this.Cb;for(a in c){var e=c[a];e.tb();d[a]=e}this.fn={}},dX:function(){b.log(b.j.SS)},aX:function(){b.log(b.j.QS)},description:function(){return"\x3cTextureCache | Number of textures \x3d "+this.Cb.length+"\x3e"},h6:function(a){b.log(b.j.XS);return this.Sn(a)},Sn:function(a){return this.Cb[a]||this.Cb[b.O.bv(a)]},nP:function(a){for(var c in this.Cb)if(this.Cb[c]===a)return c;return null},MK:function(a){return"_textureKey_"+
a},NP:function(a){var c=a.Fa,d=this.nP(c);d||(d=c instanceof HTMLImageElement?c.src:this.MK(a.P));this.zn[d]||(this.zn[d]=a.PK());return this.zn[d]},cX:function(){b.log(b.j.RS)},A3:function(){var a=this.Cb,c;for(c in a)a[c]&&a[c].$x();this.Cb={}},N3:function(a){if(a){var c=this.Cb,d;for(d in c)c[d]===a&&(c[d].$x(),delete c[d])}},O3:function(a){null!=a&&this.Cb[a]&&delete this.Cb[a]},GX:function(a,c){if(c instanceof b.ma)this.Cb[a]=c;else{var d=new b.ma;d.Bd(c);d.tb();this.Cb[a]=d}},jX:function(a,
c){b.assert(a,b.j.US);if(c&&this.Cb[c])return this.Cb[c];var d=new b.ma;d.uE(a);null!=c?this.Cb[c]=d:b.log(b.j.TS);return d},xY:function(){var a=0,c=0,d=this.Cb,e;for(e in d){var f=d[e];a++;f.Fa instanceof HTMLImageElement?b.log(b.j.VS,e,f.Fa.src,f.pixelsWidth,f.pixelsHeight):b.log(b.j.PF,e,f.pixelsWidth,f.pixelsHeight);c+=f.pixelsWidth*f.pixelsHeight*4}d=this.zn;for(e in d){var f=d[e],g;for(g in f){var h=f[g];a++;b.log(b.j.PF,e,h.width,h.height);c+=h.width*h.height*4}}b.log(b.j.WS,a,c/1024,(c/1048576).toFixed(2))},
Wj:function(){this.Cb={};this.zn={};this.UM=0|1E3*Math.random();this.fn={}}};
b.q.addEventListener(b.q.nf,function(){if(b.ta===b.q.Jb){var a=b.Ra;a.tb=function(a){var d=this.Cb,e=d[a];e||(e=d[a]=new b.ma,e.url=a);e.tb()};a.tc=function(a,d,e){b.assert(a,b.j.$I);var f=this.Cb,g=f[a]||f[b.O.bv(a)];if(g)return g.L?d&&d.call(e,g):g.addEventListener("load",function(){d&&d.call(e,g)},e),g;g=f[a]=new b.ma;g.url=a;(b.O.Mz(a)?b.O.load:b.O.nl).call(b.O,a,function(g){if(g)return d&&d.call(e,g);b.Ra.tb(a);g=f[a];d&&d.call(e,g)});return g};a.hN=a.tc;a=null}else b.ta===b.q.ic&&(b.assert(b.mc(b.ca.ju),
b.j.of,"TexturesWebGL.js"),b.ca.ju(),delete b.ca.ju)});b.jg=b.Aa.extend({dirty:!1,texture:null,Kd:null,Fd:null,Qc:0,Xc:null,rd:null,Ei:null,Nd:null,ctor:function(a,c){this.Fd=[];b.Cd(a)?this.ds(a,c):a instanceof b.ma&&this.ua(a,c)},iE:function(){return this.na},VD:function(){return this.Qc},Db:function(){return this.texture},nb:function(a){this.texture=a},sF:function(a){this.dirty=a},BE:function(){return this.dirty},cE:function(){return this.Xc},BF:function(a){this.Xc=a},aW:function(a,c){if(a)for(var d=0;d<a.length;d++)this.hr(a[d],c+d)},hr:function(a,
c){var d=this.Xc;d[c]?(d[c].bl=a.bl,d[c].br=a.br,d[c].tl=a.tl,d[c].tr=a.tr):d[c]=new b.ib(a.tl,a.bl,a.tr,a.br,this.rd,c*b.ib.BYTES_PER_ELEMENT)},description:function(){return"\x3ccc.TextureAtlas | totalQuads \x3d"+this.na+"\x3e"},KC:function(){if(0!==this.Qc)for(var a=this.Kd,c=this.Qc,d=0;d<c;d++)b.lz?(a[6*d+0]=4*d+0,a[6*d+1]=4*d+0,a[6*d+2]=4*d+2,a[6*d+3]=4*d+1,a[6*d+4]=4*d+3,a[6*d+5]=4*d+3):(a[6*d+0]=4*d+0,a[6*d+1]=4*d+1,a[6*d+2]=4*d+2,a[6*d+3]=4*d+3,a[6*d+4]=4*d+2,a[6*d+5]=4*d+1)},LC:function(){var a=
b.o;this.Fd[0]=a.createBuffer();this.Fd[1]=a.createBuffer();this.Ei=a.createBuffer();this.Nq()},Nq:function(){var a=b.o;a.bindBuffer(a.ARRAY_BUFFER,this.Ei);a.bufferData(a.ARRAY_BUFFER,this.rd,a.DYNAMIC_DRAW);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Fd[1]);a.bufferData(a.ELEMENT_ARRAY_BUFFER,this.Kd,a.STATIC_DRAW)},ds:function(a,c){var d=b.Ra.tc(a);if(d)return this.ua(d,c);b.log(b.j.mJ,a);return!1},ua:function(a,c){b.assert(a,b.j.nJ);this.Qc=c|=0;this.na=0;this.texture=a;this.Xc=[];this.Kd=new Uint16Array(6*
c);var d=b.ib.BYTES_PER_ELEMENT;this.rd=new ArrayBuffer(d*c);this.Nd=new Uint8Array(this.rd);if((!this.Xc||!this.Kd)&&0<c)return!1;for(var e=this.Xc,f=0;f<c;f++)e[f]=new b.ib(null,null,null,null,this.rd,f*d);this.KC();this.LC();return this.dirty=!0},Vs:function(a,c){b.assert(a,b.j.xJ);b.assert(0<=c&&c<this.Qc,b.j.yJ);this.na=Math.max(c+1,this.na);this.hr(a,c);this.dirty=!0},kl:function(a,c){b.assert(c<this.Qc,b.j.qJ);this.na++;if(this.na>this.Qc)b.log(b.j.qz);else{var d=b.ib.BYTES_PER_ELEMENT,e=c*
d,f=(this.na-1-c)*d;this.Xc[this.na-1]=new b.ib(null,null,null,null,this.rd,(this.na-1)*d);this.Nd.set(this.Nd.subarray(e,e+f),e+d);this.hr(a,c);this.dirty=!0}},Q0:function(a,c,d){d=d||a.length;b.assert(c+d<=this.Qc,b.j.rJ);var e=b.ib.BYTES_PER_ELEMENT;this.na+=d;if(this.na>this.Qc)b.log(b.j.qz);else{var f=c*e,g=(this.na-1-c-d)*e,h=this.na-1-d,k;for(k=0;k<d;k++)this.Xc[h+k]=new b.ib(null,null,null,null,this.rd,(this.na-1)*e);this.Nd.set(this.Nd.subarray(f,f+g),f+e*d);for(k=0;k<d;k++)this.hr(a[k],
c+k);this.dirty=!0}},O0:function(a,c){if(a!==c){b.assert(0<=c||c<this.na,b.j.oJ);b.assert(0<=a||a<this.na,b.j.pJ);var d=b.ib.BYTES_PER_ELEMENT,e=this.Nd,f=e.subarray(a*d,d),g;a>c?(g=c*d,e.set(e.subarray(g,g+(a-c)*d),g+d),e.set(f,g)):(g=(a+1)*d,e.set(e.subarray(g,g+(c-a)*d),g-d),e.set(f,c*d));this.dirty=!0}},ws:function(a){b.assert(a<this.na,b.j.vJ);var c=b.ib.BYTES_PER_ELEMENT;this.na--;this.Xc.length=this.na;if(a!==this.na){var d=(a+1)*c;this.Nd.set(this.Nd.subarray(d,d+(this.na-a)*c),d-c)}this.dirty=
!0},I3:function(a,c){b.assert(a+c<=this.na,b.j.wJ);this.na-=c;if(a!==this.na){var d=b.ib.BYTES_PER_ELEMENT,e=(a+c)*d;this.Nd.set(this.Nd.subarray(e,e+(this.na-a)*d),a*d)}this.dirty=!0},vs:function(){this.na=this.Xc.length=0},Li:function(a){this.dirty=a},gF:function(a){if(a===this.Qc)return!0;var c=b.ib.BYTES_PER_ELEMENT,d=this.Qc;this.na=Math.min(this.na,a);var e=this.Qc=0|a,f=this.na;if(null===this.Xc)for(this.Xc=[],this.rd=new ArrayBuffer(c*e),this.Nd=new Uint8Array(this.rd),a=0;a<e;a++)this.Xc=
new b.ib(null,null,null,null,this.rd,a*c);else{var g,h,k=this.Xc;if(e>d){g=[];h=new ArrayBuffer(c*e);for(a=0;a<f;a++)g[a]=new b.ib(k[a].tl,k[a].bl,k[a].tr,k[a].br,h,a*c);for(;a<e;a++)g[a]=new b.ib(null,null,null,null,h,a*c)}else for(f=Math.max(f,e),g=[],h=new ArrayBuffer(c*e),a=0;a<f;a++)g[a]=new b.ib(k[a].tl,k[a].bl,k[a].tr,k[a].br,h,a*c);this.Nd=new Uint8Array(h);this.Xc=g;this.rd=h}null===this.Kd?this.Kd=new Uint16Array(6*e):e>d?(c=new Uint16Array(6*e),c.set(this.Kd,0),this.Kd=c):this.Kd=this.Kd.subarray(0,
6*e);this.KC();this.Nq();return this.dirty=!0},bQ:function(a){this.na+=a},X1:function(a,c,d){if(void 0===d){if(d=c,c=this.na-a,b.assert(d+(this.na-a)<=this.Qc,b.j.sJ),0===c)return}else if(b.assert(d+c<=this.na,b.j.tJ),b.assert(a<this.na,b.j.uJ),a===d)return;var e=b.ib.BYTES_PER_ELEMENT,f=a*e,g=c*e,h=this.Nd,k=h.subarray(f,f+g),m=d*e;d<a?(c=d*e,h.set(h.subarray(c,c+(a-d)*e),c+g)):(c=(a+c)*e,h.set(h.subarray(c,c+(d-a)*e),f));h.set(k,m);this.dirty=!0},vZ:function(a,c){for(var d=c*b.ib.BYTES_PER_ELEMENT,
e=new Uint8Array(this.rd,a*b.ib.BYTES_PER_ELEMENT,d),f=0;f<d;f++)e[f]=0},rO:function(){this.PD(this.na)},BW:function(){var a=b.o;this.Fd&&(this.Fd[0]&&a.deleteBuffer(this.Fd[0]),this.Fd[1]&&a.deleteBuffer(this.Fd[1]));this.Ei&&a.deleteBuffer(this.Ei)}});w=b.jg.prototype;b.m(w,"totalQuads",w.iE);b.m(w,"capacity",w.VD);b.m(w,"quads",w.cE,w.BF);b.jg.create=function(a,c){return new b.jg(a,c)};b.jg.jx=b.jg.create;
b.q.addEventListener(b.q.nf,function(){b.ta===b.q.ic&&(b.assert(b.mc(b.ca.iu),b.j.of,"TexturesWebGL.js"),b.ca.iu(),delete b.ca.iu)});b.assert(b.mc(b.ca.It),b.j.of,"TexturesPropertyDefine.js");b.ca.It();delete b.ca.It;b.Gp=b.e.extend({pc:"Scene",ctor:function(){b.e.prototype.ctor.call(this);this.zi=!0;this.cg(0.5,0.5);this.ed(b.la.Uf())}});b.Gp.create=function(){return new b.Gp};b.tt=b.Gp.extend({Af:null,Ec:null,pc:"LoaderScene",Rh:null,target:null,fa:function(){var a=this,c=200,d=a.Iz=new b.Ta(b.color(32,32,32,255));a.ea(d,0);var e=24,f=-c/2+100;b.IB&&(b.O.nl(b.IB,{Xh:!1},function(d,e){c=e.height;a.EL(e,b.Ll.Cr)}),e=14,f=-c/2-10);e=a.Ec=new b.A("Loading... 0%","Arial",e);e.gb(b.pl(b.Ll.Cr,b.i(0,f)));e.Ea(b.color(180,180,180));d.ea(this.Ec,10);return!0},EL:function(a,c){var d=new b.ma;d.Bd(a);d.tb();d=this.SL=new b.M(d);d.Ks(b.Qa());d.x=c.x;d.y=c.y;this.Iz.ea(d,10)},zc:function(){b.e.prototype.zc.call(this);
this.vo(this.UC,0.3)},Ac:function(){b.e.prototype.Ac.call(this);this.Ec.oc("Loading... 0%")},gQ:function(a,c,d){b.Cd(a)&&(a=[a]);this.uR=a||[];this.Rh=c;this.target=d},UC:function(){var a=this;a.yj(a.UC);b.O.load(a.uR,function(c,d,e){c=Math.min(e/d*100|0,100);a.Ec.oc("Loading... "+c+"%")},function(){a.Rh&&a.Rh.call(a.target)})},aN:function(){this.f.S(b.e.H.ba);this.Iz.f.S(b.e.H.ba);this.Ec.f.S(b.e.H.ba);this.SL.f.S(b.e.H.ba)}});
b.tt.fR=function(a,c){var d=ma,e=b;e.$n||(e.$n=new b.tt,e.$n.fa(),b.Z.$i(b.qa.Uo,function(){e.$n.aN()}));e.$n.gQ(d,a,c);b.la.Bs(e.$n)};b.Pa=b.e.extend({pc:"Layer",ctor:function(){var a=b.e.prototype;a.ctor.call(this);this.zi=!0;a.cg.call(this,0.5,0.5);a.ed.call(this,b.bi)},fa:function(){this.zi=!0;this.cg(0.5,0.5);this.ed(b.bi);this.Sc=this.Rc=!1;return!0},dx:function(){this.f.dx()},Go:function(){this.f.Go()},pQ:function(){return this.f.tg},ea:function(a,c,d){b.e.prototype.ea.call(this,a,c,d);this.f.Hz(a)},ld:function(){return b.ta===b.q.Jb?new b.Pa.t(this):new b.Pa.B(this)}});b.Pa.create=function(){return new b.Pa};
b.Ta=b.Pa.extend({T:null,pc:"LayerColor",Qr:function(){return this.T},MX:function(a,c){this.width=a;this.height=c},LX:function(a){this.width=a},KX:function(a){this.height=a},tj:function(){},Yh:function(){return!1},ctor:function(a,c,d){b.Pa.prototype.ctor.call(this);this.T=new b.vb(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);b.Ta.prototype.fa.call(this,a,c,d)},fa:function(a,c,d){b.ta!==b.q.Jb&&(this.shaderProgram=b.Ce.nc(b.Dp));var e=b.la.Uf();a=a||b.color(0,0,0,255);c=void 0===c?e.width:c;d=void 0===d?e.height:
d;e=this.sd;e.r=a.r;e.g=a.g;e.b=a.b;this.Bg=a.a;this.f.S(b.e.H.Ob|b.e.H.ec);b.Ta.prototype.ed.call(this,c,d);return!0},Ds:function(a,c){var d=this.T;void 0===c?(d.src=a.src,d.ya=a.ya):(d.src=a,d.ya=c);this.f.Ho(d)},zk:function(a){b.e.prototype.zk.call(this,a);this.f.mD(a)},xk:function(a){b.e.prototype.xk.call(this,a);this.f.lD(a)},ed:function(a,c){b.Pa.prototype.ed.call(this,a,c);this.f.kD(a,c)},ld:function(){return b.ta===b.q.Jb?new b.Ta.t(this):new b.Ta.B(this)}});
b.Ta.create=function(a,c,d){return new b.Ta(a,c,d)};var na=b.Ta.prototype;b.m(na,"width",na.Oe,na.zk);b.m(na,"height",na.Ah,na.xk);
b.Oc=b.Ta.extend({Pm:null,Ek:255,Zj:255,ph:null,Iu:!1,pc:"LayerGradient",Tc:[],ctor:function(a,c,d,e){b.Ta.prototype.ctor.call(this);this.Pm=b.color(0,0,0,255);this.ph=b.i(0,-1);this.Zj=this.Ek=255;e&&e instanceof Array?(this.Tc=e,e.splice(0,0,{i:0,color:a||b.color.BLACK}),e.push({i:1,color:c||b.color.BLACK})):this.Tc=[{i:0,color:a||b.color.BLACK},{i:1,color:c||b.color.BLACK}];b.Oc.prototype.fa.call(this,a,c,d,e)},fa:function(a,c,d){a=a||b.color(0,0,0,255);c=c||b.color(0,0,0,255);d=d||b.i(0,-1);var e=
this.Pm;this.Ek=a.a;e.r=c.r;e.g=c.g;e.b=c.b;this.Zj=c.a;this.ph=d;this.Iu=!0;b.Ta.prototype.fa.call(this,b.color(a.r,a.g,a.b,255));this.f.S(b.e.H.Ob|b.e.H.ec|b.e.H.Ad);return!0},ed:function(a,c){b.Ta.prototype.ed.call(this,a,c);this.f.S(b.e.H.Ad)},zk:function(a){b.Ta.prototype.zk.call(this,a);this.f.S(b.e.H.Ad)},xk:function(a){b.Ta.prototype.xk.call(this,a);this.f.S(b.e.H.Ad)},KP:function(){return b.color(this.sd)},mS:function(a){this.color=a;var c=this.Tc;c&&0<c.length&&(c=c[0].color,c.r=a.r,c.g=
a.g,c.b=a.b)},OR:function(a){var c=this.Pm;c.r=a.r;c.g=a.g;c.b=a.b;(c=this.Tc)&&0<c.length&&(c=c[c.length-1].color,c.r=a.r,c.g=a.g,c.b=a.b);this.f.S(b.e.H.Ob)},iP:function(){return b.color(this.Pm)},nS:function(a){this.Ek=a;var c=this.Tc;c&&0<c.length&&(c[0].color.a=a);this.f.S(b.e.H.ec)},LP:function(){return this.Ek},PR:function(a){this.Zj=a;var c=this.Tc;c&&0<c.length&&(c[c.length-1].color.a=a);this.f.S(b.e.H.ec)},jP:function(){return this.Zj},uS:function(a){this.ph.x=a.x;this.ph.y=a.y;this.f.S(b.e.H.Ad)},
SP:function(){return b.i(this.ph.x,this.ph.y)},W0:function(){return this.Iu},q4:function(a){this.Iu=a;this.f.S(b.e.H.Ad)},bP:function(){return this.Tc},JR:function(a){this.Tc=a;this.f.S(b.e.H.Ob|b.e.H.ec|b.e.H.Ad)},ld:function(){return b.ta===b.q.Jb?new b.Oc.t(this):new b.Oc.B(this)}});b.Oc.create=function(a,c,d,e){return new b.Oc(a,c,d,e)};var I=b.Oc.prototype;b.m(I,"startColor",I.KP,I.mS);b.m(I,"endColor",I.iP,I.OR);b.m(I,"startOpacity",I.LP,I.nS);b.m(I,"endOpacity",I.jP,I.PR);
b.m(I,"vector",I.SP,I.uS);b.m(I,"colorStops",I.bP,I.JR);
b.tp=b.Pa.extend({yi:0,Bf:null,pc:"LayerMultiplex",ctor:function(a){b.Pa.prototype.ctor.call(this);a instanceof Array?b.tp.prototype.wE.call(this,a):b.tp.prototype.wE.call(this,Array.prototype.slice.call(arguments))},wE:function(a){0<a.length&&null==a[a.length-1]&&b.log(b.j.mH);this.Bf=a;this.yi=0;this.ea(this.Bf[this.yi]);return!0},c6:function(a){a>=this.Bf.length?b.log(b.j.nH):(this.removeChild(this.Bf[this.yi],!0),this.yi=a,this.ea(this.Bf[a]))},d6:function(a){a>=this.Bf.length?b.log(b.j.oH):(this.removeChild(this.Bf[this.yi],
!0),this.Bf[this.yi]=null,this.yi=a,this.ea(this.Bf[a]))},bX:function(a){a?this.Bf.push(a):b.log(b.j.lH)}});b.tp.create=function(){return new b.tp(Array.prototype.slice.call(arguments))};(function(){b.Pa.t=function(a){b.e.t.call(this,a);this.tg=!1;this.rh=null;this.Ic=2};var a=b.Pa.t.prototype=Object.create(b.e.t.prototype);a.constructor=b.Pa.t;a.DC=function(a){a&&0===this.Ic&&(this.Ic=2);!1===this.Gd&&(this.Gd=!0)};a.updateStatus=function(){var a=b.e.H;this.D&a.Yg&&(this.Gd=!0,0===this.Ic&&(this.Ic=2),this.D^=this.D&a.Yg);b.e.hb.prototype.updateStatus.call(this)};a.Qd=function(a){var d=b.e.H;this.D&d.Yg&&(this.Gd=!0,0===this.Ic&&(this.Ic=2),this.D^=this.D&d.Yg);b.e.hb.prototype.Qd.call(this,
a)};a.transform=function(a,d){var e=this.Og,f=e.a,g=e.b,h=e.c,k=e.I;b.e.t.prototype.transform.call(this,a,d);e.a===f&&e.b===g&&e.c===h&&e.I===k||0!==this.Ic||(this.Ic=2)};a.dx=function(){if(!this.tg){this.qb=!0;this.tg=this.Gd=b.sa.cd=!0;0===this.Ic&&(this.Ic=2);for(var a=this.n.F,d=0,e=a.length;d<e;d++)a[d].f.fr(this);this.rh||(this.rh=new b.mG,this.rh.cg(0,0))}};a.Go=function(){if(this.tg){b.sa.cd=!0;this.tg=this.qb=!1;this.Gd=!0;0===this.Ic&&(this.Ic=2);for(var a=this.n.F,d=0,e=a.length;d<e;d++)a[d].f.fr(null)}};
a.pQ=function(){return this.tg};a.fb=function(){if(this.Gd){var a=this.n,d=a.F,e=this.rh;this.transform(H(this),!0);var f=this.gv();f.width=0|f.width+0.5;f.height=0|f.height+0.5;var g=e.Gm,h=g.getContext();e.gb(f.x,f.y);if(0<this.Ic){e.eF(f.width,f.height);g.zo(0-f.x,h.canvas.height-f.height+f.y);a.Zd();b.sa.Mw(this.P);a=0;for(f=d.length;a<f;a++)d[a].za(this);b.sa.pC(g,this.P);e.transform();this.Ic--}this.Gd=!1}};a.za=function(a){if(this.tg){var d=this.n,e=d.F.length;d.bc&&0!==e&&(this.Qd(a),b.sa.Dd(this),
this.rh.za(this),this.D=0)}else b.e.t.prototype.za.call(this,a)};a.Hz=function(a){a.ra===this.n&&this.tg&&a.f.fr(this)};a.gv=function(){var a=null,d=this.n;if(!d.F||0===d.F.length)return b.rect(0,0,10,10);for(var e=d.Vh(),d=d.F,f=0,g=d.length;f<g;f++){var h=d[f];h&&h.bc&&(a?(h=h.Wm(e))&&(a=b.ts(a,h)):a=h.Wm(e))}return a}})();
(function(){b.Ta.t=function(a){b.Pa.t.call(this,a);this.qb=!0;this.mg="source-over";this.mK=new b.fi(this,this.nK)};var a=b.Ta.t.prototype=Object.create(b.Pa.t.prototype);a.constructor=b.Ta.t;a.Go=function(){b.Pa.t.prototype.Go.call(this);this.qb=!0};a.fb=function(a,d,e){a=a||b.o;var f=a.getContext(),g=this.n,h=this.xb,k=this.Gb/255,m=g.K.width,g=g.K.height;0!==k&&(a.wo(this.mg),a.Al(k),a.jf("rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+", 1)"),a.setTransform(this.Og,d,e),f.fillRect(0,0,m*d,-g*e),b.Rf++)};
a.Ho=function(a){this.mg=b.e.t.gB(a)};a.kD=a.mD=a.lD=function(){};a.nK=function(){if(this.Gd){var a=this.n,d=this.rh,e=a.F,f=e.length;this.transform(H(this),!0);var g=this.gv();g.width=0|g.width+0.5;g.height=0|g.height+0.5;var h=d.Gm,k=h.getContext();d.gb(g.x,g.y);if(0<this.Ic){k.fillStyle=h.kq;d.eF(g.width,g.height);h.zo(0-g.x,k.canvas.height-g.height+g.y);b.sa.Mw(this.P);if(0<f){a.Zd();for(a=0;a<f;a++)if(g=e[a],0>g.yb)g.f.za(this);else break;for(b.sa.Dd(this);a<f;a++)e[a].f.za(this)}else b.sa.Dd(this);
b.sa.pC(h,this.P);d.transform();this.Ic--}this.Gd=!1}};a.za=function(a){this.tg?this.n.bc&&(this.Qd(a),b.sa.Dd(this.mK),this.rh.f.S(b.e.H.ba),this.rh.za(this),this.D=0):b.e.t.prototype.za.call(this)};a.gv=function(){var a=this.n,d=b.rect(0,0,a.K.width,a.K.height),e=a.Vh(),d=b.Zx(d,a.Vh());if(!a.F||0===a.F.length)return d;for(var a=a.F,f=0;f<a.length;f++){var g=a[f];g&&g.bc&&(g=g.Wm(e),d=b.ts(d,g))}return d}})();
(function(){b.Oc.hb={updateStatus:function(){var a=b.e.H;this.D&a.Ad&&(this.D|=a.Ob,this.D^=this.D&a.Ad);b.e.hb.prototype.updateStatus.call(this)}};b.Oc.t=function(a){b.Ta.t.call(this,a);this.qb=!0;this.Jf=b.i(0,0);this.qq=b.i(0,0);this.QA=this.WC=null};var a=b.Oc.t.prototype=Object.create(b.Ta.t.prototype);b.jl(b.Oc.hb,a);a.constructor=b.Oc.t;a.fb=function(a,d,e){a=a||b.o;var f=a.getContext(),g=this.n,h=this.Gb/255;if(0!==h){var k=g.K.width,m=g.K.height;a.wo(this.mg);a.Al(h);h=f.createLinearGradient(this.Jf.x*
d,this.Jf.y*e,this.qq.x*d,this.qq.y*e);if(g.Tc)for(var n=0;n<g.Tc.length;n++)h.addColorStop(g.Tc[n].i,this.Rz[n]);else h.addColorStop(0,this.WC),h.addColorStop(1,this.QA);a.jf(h);a.setTransform(this.Og,d,e);f.fillRect(0,0,k*d,-m*e);b.Rf++}};a.Qd=function(a){var d=b.e.H,e=this.D;e&d.Ad&&(this.D|=d.Ob,this.D=e&d.Ad^e);b.e.hb.prototype.Qd.call(this,a)};a.ac=function(){var a=this.n,d=a.K,e=0.5*d.width,d=0.5*d.height;this.D^=this.D&b.e.H.Ad;var f=b.ME(b.i(0,-1),a.ph),f=b.YQ(b.i(0,-1),b.i(0,0),f),g=Math.min(Math.abs(1/
f.x),Math.abs(1/f.y));this.Jf.x=e*-f.x*g+e;this.Jf.y=d*f.y*g-d;this.qq.x=e*f.x*g+e;this.qq.y=d*-f.y*g-d;e=this.xb;d=a.Pm;f=a.Zj/255;this.WC="rgba("+Math.round(e.r)+","+Math.round(e.g)+","+Math.round(e.b)+","+(a.Ek/255).toFixed(4)+")";this.QA="rgba("+Math.round(d.r)+","+Math.round(d.g)+","+Math.round(d.b)+","+f.toFixed(4)+")";if(a.Tc)for(this.Zj=this.Ek=0,this.Rz=[],e=0;e<a.Tc.length;e++)d=a.Tc[e].color,this.Rz.push("rgba("+Math.round(d.r)+","+Math.round(d.g)+","+Math.round(d.b)+","+(null==d.a?1:d.a/
255).toFixed(4)+")")}})();(function(){b.Pa.B=function(a){b.e.B.call(this,a)};var a=b.Pa.B.prototype=Object.create(b.e.B.prototype);a.constructor=b.Pa.B;a.dx=function(){};a.Go=function(){};a.Hz=function(){}})();
(function(){b.Ta.B=function(a){b.Pa.B.call(this,a);this.qb=!0;this.jr=new ArrayBuffer(32);this.ir=new ArrayBuffer(16);a=this.jr;var d=this.ir,e=D.BYTES_PER_ELEMENT,f=b.Nc.BYTES_PER_ELEMENT;this.Ck=[new D(0,0,a,0),new D(0,0,a,e),new D(0,0,a,2*e),new D(0,0,a,3*e)];this.SC=[b.color(0,0,0,255,d,0),b.color(0,0,0,255,d,f),b.color(0,0,0,255,d,2*f),b.color(0,0,0,255,d,3*f)];this.Vw=b.o.createBuffer();this.Hu=b.o.createBuffer()};var a=b.Ta.B.prototype=Object.create(b.Pa.B.prototype);a.constructor=b.Ta.B;a.fb=
function(a){a=a||b.o;var d=this.n;this.Ma.Rb();this.Ma.Oi(this.Zc);b.xc(b.Dc|b.wm);b.Vf(d.T.src,d.T.ya);a.bindBuffer(a.ARRAY_BUFFER,this.Vw);a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Hu);a.vertexAttribPointer(b.he,4,a.UNSIGNED_BYTE,!0,0,0);a.drawArrays(a.TRIANGLE_STRIP,0,this.Ck.length)};a.kD=function(a,d){var e=this.Ck;void 0===d?(e[1].x=a.width,e[2].y=a.height,e[3].x=a.width,e[3].y=a.height):(e[1].x=a,e[2].y=d,e[3].x=a,e[3].y=d);this.$p()};a.mD=function(a){var d=
this.Ck;d[1].x=a;d[3].x=a;this.$p()};a.lD=function(a){var d=this.Ck;d[2].y=a;d[3].y=a;this.$p()};a.ac=function(){for(var a=this.xb,d=this.Gb,e=this.SC,f=0;4>f;f++)e[f].r=a.r,e[f].g=a.g,e[f].b=a.b,e[f].a=d;this.Jz()};a.$p=function(){var a=b.o;a.bindBuffer(a.ARRAY_BUFFER,this.Vw);a.bufferData(a.ARRAY_BUFFER,this.jr,a.STATIC_DRAW)};a.Jz=function(){var a=b.o;a.bindBuffer(a.ARRAY_BUFFER,this.Hu);a.bufferData(a.ARRAY_BUFFER,this.ir,a.STATIC_DRAW)};a.Ho=function(){}})();
(function(){b.Oc.B=function(a){b.Ta.B.call(this,a);this.qb=!0;this.Pz=new b.Kt;this.Qz=!1};var a=b.Oc.B.prototype=Object.create(b.Ta.B.prototype);b.jl(b.Oc.hb,a);a.constructor=b.Oc.B;a.Qd=function(a){var d=b.e.H,e=this.D,f=a?a.n:null;f&&f.Rc&&a.D&d.Ob&&(e|=d.Ob);f&&f.Sc&&a.D&d.ec&&(e|=d.ec);a&&a.D&d.ba&&(e|=d.ba);var f=e&d.Ob,g=e&d.ec;this.D=e;f&&ja(this);g&&ka(this);this.transform(a);(f||g||e&d.Ad)&&this.ac()};a.ac=function(){this.D^=this.D&b.e.H.Ad;var a=this.n,d=a.Tc;if(d&&!(2>d.length)){this.Qz=
!0;var e=d.length,f=2*e,g,h=a.K;this.jr=new ArrayBuffer(8*f);this.ir=new ArrayBuffer(4*f);var k=this.Ck,m=this.SC;k.length=0;m.length=0;var n=this.jr,p=this.ir,r=D.BYTES_PER_ELEMENT,t=b.Nc.BYTES_PER_ELEMENT;for(g=0;g<f;g++)k.push(new D(0,0,n,r*g)),m.push(b.color(0,0,0,255,p,t*g));g=Math.PI+b.ME(b.i(0,-1),a.ph);a=b.i(h.width/2,h.height/2);n=Math.round(b.Yx(g));f=b.mN(a.x,a.y);f=b.nN(f,g);90>n?(n=b.i(-a.x,a.y),p=b.i(a.x,a.y)):180>n?(n=b.i(a.x,a.y),p=b.i(a.x,-a.y)):270>n?(n=b.i(a.x,-a.y),p=b.i(-a.x,
-a.y)):(n=b.i(-a.x,-a.y),p=b.i(-a.x,a.y));r=Math.sin(g);g=Math.cos(g);f=b.oN(f,Math.abs((n.x*g-n.y*r)/a.x),Math.abs((p.x*r+p.y*g)/a.y));for(g=0;g<e;g++)n=d[g].i*h.height,p=b.Vd(-a.x,n-a.y,f),k[2*g].x=p.x,k[2*g].y=p.y,n=b.Vd(h.width-a.x,n-a.y,f),k[2*g+1].x=n.x,k[2*g+1].y=n.y;h=this.Gb/255;for(g=0;g<e;g++)k=d[g].color,a=m[2*g],f=m[2*g+1],a.r=k.r,a.g=k.g,a.b=k.b,a.a=k.a*h,f.r=k.r,f.g=k.g,f.b=k.b,f.a=k.a*h;this.$p();this.Jz()}};a.fb=function(a){a=a||b.o;var d=this.n,e=this.XK();a.enable(a.SCISSOR_TEST);
b.view.iS(e.x,e.y,e.width,e.height);this.Ma.Rb();this.Ma.Oi(this.Zc);b.xc(b.Dc|b.wm);b.Vf(d.T.src,d.T.ya);a.bindBuffer(a.ARRAY_BUFFER,this.Vw);a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Hu);a.vertexAttribPointer(b.he,4,a.UNSIGNED_BYTE,!0,0,0);a.drawArrays(a.TRIANGLE_STRIP,0,this.Ck.length);a.disable(a.SCISSOR_TEST)};a.XK=function(){if(this.Qz){var a=this.n,d=b.rect(0,0,a.K.width,a.K.height),a=a.Vh();this.Pz=b.jC(d,a)}return this.Pz}})();b.ca.Gt=function(){var a=b.M.prototype;b.m(a,"opacityModifyRGB",a.Yh,a.tj);b.m(a,"opacity",a.Zk,a.Yd);b.m(a,"color",a.Rg,a.Ea);b.m(a,"flippedX",a.sQ,a.QR);b.m(a,"flippedY",a.tQ,a.RR);b.m(a,"offsetX",a.gL);b.m(a,"offsetY",a.hL);b.m(a,"texture",a.Db,a.nb);b.m(a,"textureRectRotated",a.zQ);b.m(a,"batchNode",a.XO,a.Cs);b.m(a,"quad",a.Vr)};b.M=b.e.extend({dirty:!1,atlasIndex:0,textureAtlas:null,Ja:null,Fi:null,gk:null,Pi:!1,Nk:null,T:null,$:null,ia:null,Cg:!1,Mb:null,Ui:null,zb:!1,jc:!1,kc:!1,L:!1,pc:"Sprite",ctor:function(a,c,d){b.e.prototype.ctor.call(this);this.Pi=!1;this.Mb=b.i(0,0);this.Ui=b.i(0,0);this.T={src:b.fg,ya:b.mf};this.ia=b.rect(0,0,0,0);this.LM(a,c,d)},Eo:function(){return this.L},Jn:function(a,c){this.addEventListener("load",a,c)},BE:function(){return this.dirty},sF:function(a){this.dirty=a},zQ:function(){return this.Cg},
HZ:function(){return this.atlasIndex},l4:function(a){this.atlasIndex=a},OP:function(){return b.rect(this.ia)},Wh:function(){return this.textureAtlas},Bo:function(a){this.textureAtlas=a},xP:function(){return b.i(this.Mb)},gL:function(){return this.Mb.x},hL:function(){return this.Mb.y},Qr:function(){return this.T},Xf:function(a){b.assert(a,b.j.KI);a.L||(this.L=!1,a.addEventListener("load",this.f.RC,this));var c=b.ta===b.q.Jb?!1:a.vd,c=this.ua(a.Db(),a.Sg(),c);this.Bl(a);return c},M0:function(a){b.assert(a,
b.j.LI);var c=b.vj.Tf(a);b.assert(c,a+b.j.MI);return this.Xf(c)},v6:function(a){this.textureAtlas=a.Wh();this.Ja=a},vS:function(a){var c=this.ia;c.x=a.x;c.y=a.y;c.width=a.width;c.height=a.height},Zd:function(){if(this.ud){var a=this.F,c=a.length,d,e,f;for(d=1;d<c;d++){f=a[d];for(e=d-1;0<=e;){if(f.yb<a[e].yb)a[e+1]=a[e];else if(f.yb===a[e].yb&&f.arrivalOrder<a[e].arrivalOrder)a[e+1]=a[e];else break;e--}a[e+1]=f}this.Ja&&this.Ke(a,b.e.te.Zd);this.ud=!1}},to:function(a,c){b.assert(a,b.j.OI);-1===this.F.indexOf(a)?
b.log(b.j.NI):c!==a.zIndex&&(this.Ja&&!this.ud&&(this.rw(),this.Ja.aF(!0)),b.e.prototype.to.call(this,a,c))},removeChild:function(a,c){this.Ja&&this.Ja.xs(a);b.e.prototype.removeChild.call(this,a,c)},Qs:function(a){b.e.prototype.Qs.call(this,a);this.f.iy(!0)},so:function(a){var c=this.F,d=this.Ja;if(d&&null!=c)for(var e=0,f=c.length;e<f;e++)d.xs(c[e]);b.e.prototype.so.call(this,a);this.gk=!1},bs:function(a){this.Ja?b.log(b.j.II):b.e.prototype.bs.call(this,a)},QR:function(a){this.jc!==a&&(this.jc=
a,this.ub(this.ia,this.Cg,this.K),this.ah(!0))},RR:function(a){this.kc!==a&&(this.kc=a,this.ub(this.ia,this.Cg,this.K),this.ah(!0))},sQ:function(){return this.jc},tQ:function(){return this.kc},tj:function(a){this.zb!==a&&(this.zb=a,this.f.EC())},Yh:function(){return this.zb},A4:function(a,c){b.assert(a,b.j.TI);var d=b.zr.UD(a);d?(d=d.ne[c])?this.Bl(d.Tf()):b.log(b.j.SI):b.log(b.j.RI)},XO:function(){return this.Ja},rw:function(){if(!this.ud){this.ud=!0;for(var a=this.ra;a&&a!==this.Ja;)a.rw(),a=a.parent}},
Db:function(){return this.$},LM:function(a,c,d){if(void 0===a)b.M.prototype.fa.call(this);else if(b.Cd(a))"#"===a[0]?(c=b.vj.Tf(a.substr(1,a.length-1)))?this.Xf(c):b.log("%s does not exist",a):b.M.prototype.fa.call(this,a,c);else if("object"===typeof a)if(a instanceof b.ma)this.ua(a,c,d);else if(a instanceof b.Cc)this.Xf(a);else if(a instanceof HTMLImageElement||a instanceof HTMLCanvasElement)c=new b.ma,c.Bd(a),c.tb(),this.ua(c)},Vr:function(){return this.f.Vr()},Ds:function(a,c){var d=this.T;void 0===
c?(d.src=a.src,d.ya=a.ya):(d.src=a,d.ya=c);this.f.Ho(d)},fa:function(){if(0<arguments.length)return this.ds(arguments[0],arguments[1]);b.e.prototype.fa.call(this);this.dirty=this.Fi=!1;this.T.src=b.fg;this.T.ya=b.mf;this.texture=null;this.jc=this.kc=!1;this.anchorY=this.anchorX=0.5;this.Mb.x=0;this.Mb.y=0;this.gk=!1;this.f.Se();this.ub(b.rect(0,0,0,0),!1,b.size(0,0));return!0},ds:function(a,c){b.assert(a,b.j.JI);var d=b.Ra.Sn(a);if(d){if(!c){var e=d.Sf();c=b.rect(0,0,e.width,e.height)}return this.ua(d,
c)}d=b.Ra.tc(a);return this.ua(d,c||b.rect(0,0,d.K.width,d.K.height))},ua:function(a,c,d,e){b.assert(0!==arguments.length,b.j.pG);d=d||!1;a=this.f.qB(a,c,d,e);if(!b.e.prototype.fa.call(this))return!1;this.Ja=null;this.dirty=this.Fi=!1;this.zb=!0;this.T.src=b.fg;this.T.ya=b.mf;this.jc=this.kc=!1;this.cg(0.5,0.5);this.Mb.x=0;this.Mb.y=0;this.gk=!1;this.f.Se();var f=a.L;this.L=f;if(!f)return this.Cg=d,c&&(this.ia.x=c.x,this.ia.y=c.y,this.ia.width=c.width,this.ia.height=c.height),this.texture&&this.texture.removeEventListener("load",
this),a.addEventListener("load",this.f.ZC,this),this.texture=a,!0;c||(c=b.rect(0,0,a.width,a.height));this.f.Nz(a,c,d);this.nb(a);this.ub(c,d);this.Cs(null);return!0},ub:function(a,c,d,e){this.Cg=c||!1;this.ed(d||a);this.vS(a);this.f.IC(a,e);a=this.Ui.x;c=this.Ui.y;this.jc&&(a=-a);this.kc&&(c=-c);d=this.ia;this.Mb.x=a+(this.K.width-d.width)/2;this.Mb.y=c+(this.K.height-d.height)/2;this.Ja?this.dirty=!0:this.f.aw()},$d:function(){this.f.$d()},ea:function(a,c,d){b.assert(a,b.j.nG);null==c&&(c=a.yb);
null==d&&(d=a.tag);this.f.CC(a)&&(b.e.prototype.ea.call(this,a,c,d),this.gk=!0)},Bl:function(a){var c=this;b.Cd(a)&&(a=b.vj.Tf(a),b.assert(a,b.j.UI));this.ah(!0);var d=a.aE();c.Ui.x=d.x;c.Ui.y=d.y;d=a.Db();a.L?(c.L=!0,d!==c.$&&(c.Eg(d),c.Ea(c.sd)),c.ub(a.Sg(),a.vd,a.Tr())):(c.L=!1,a.addEventListener("load",function(a){c.L=!0;var d=a.Db();d!==c.$&&c.Eg(d);c.ub(a.Sg(),a.vd,a.Tr());c.dispatchEvent("load");c.Ea(c.sd)},c));this.f.iD(d)},z4:function(a){b.log(b.j.QI);this.Bl(a)},Sx:function(a){return this.f.Sx(a)},
kO:function(){return this.Tf()},Tf:function(){return new b.Cc(this.$,b.ro(this.ia),this.Cg,b.eR(this.Ui),b.DS(this.K))},Cs:function(a){(this.Ja=a)?(this.Nk={a:1,b:0,c:0,I:1,X:0,Y:0},this.textureAtlas=this.Ja.Wh()):(this.atlasIndex=b.M.Ty,this.textureAtlas=null,this.dirty=this.Fi=!1,this.f.aw())},nb:function(a){if(!a)return this.f.Eg(null);var c=b.Cd(a);c&&(a=b.Ra.tc(a));a.L?(this.Eg(a,c),this.Ea(this.sd),this.L=!0):(this.f.Eg(null),a.addEventListener("load",function(){this.Eg(a,c);this.Ea(this.sd);
this.L=!0},this))},Eg:function(a,c){this.f.Eg(a);c&&this.qK(a)},qK:function(a){a=a.K;a=b.rect(0,0,a.width,a.height);this.ub(a)},ld:function(){return b.ta===b.q.Jb?new b.M.t(this):new b.M.B(this)}});b.M.create=function(a,c,d){return new b.M(a,c,d)};b.M.jx=b.M.create;b.M.bY=b.M.create;b.M.aY=b.M.create;b.M.Ty=-1;b.ee.prototype.apply(b.M.prototype);b.assert(b.mc(b.ca.Gt),b.j.of,"SpritesPropertyDefine.js");b.ca.Gt();delete b.ca.Gt;(function(){b.M.t=function(a){b.e.t.call(this,a);this.qb=!0;this.Si={by:0,cy:0,x:0,y:0,width:0,height:0,ZF:!1};this.mg="source-over";this.gq=!1;this.Rd=null};var a=b.M.t.prototype=Object.create(b.e.t.prototype);a.constructor=b.M.t;a.Se=function(){};a.iy=function(){};a.aw=function(){};a.Eg=function(a){var d=this.n;d.$!==a&&(d.L=a?a.L:!1,d.$=a,this.ac())};a.EC=function(){this.S(b.e.H.Ob|b.e.H.ec)};a.Sx=function(a){var d=this.n;return a.Db()!==d.$?!1:b.XE(a.Sg(),d.ia)};a.Ho=function(a){this.mg=b.e.t.gB(a)};
a.CC=function(){return!0};a.qB=function(a,d,e,f){e&&a.L&&(a=a.Fa,a=b.M.t.Nu(a,d,f),f=new b.ma,f.Bd(a),f.tb(),a=f,d.x=d.y=0,this.n.ia=b.rect(0,0,d.width,d.height));return a};a.Nz=function(a,d){if(a&&a.url){var e=d.y+d.height;d.x+d.width>a.width&&b.error(b.j.Mt,a.url);e>a.height&&b.error(b.j.Lt,a.url)}};a.fb=function(a,d,e){var f=this.n,g=this.Si,h=this.Gb/255,k=this.Rd||f.$;if((!k||0!==g.width&&0!==g.height&&k.L)&&0!==h){a=a||b.o;var m=a.getContext(),n=f.Mb.x,p=f.ia.height,r=f.ia.width,t=-f.Mb.y-p;
a.setTransform(this.Og,d,e);a.wo(this.mg);a.Al(h);(f.jc||f.kc)&&a.save();f.jc&&(n=-n-r,m.scale(-1,1));f.kc&&(t=f.Mb.y,m.scale(1,-1));var s,u,v;this.gq?s=h=0:(h=g.by,s=g.cy);u=g.width;v=g.height;n*=d;t*=e;r*=d;p*=e;k?(d=k.Fa,""!==k.Yq?(a.jf(m.createPattern(d,k.Yq)),m.fillRect(n,t,r,p)):m.drawImage(d,h,s,u,v,n,t,r,p)):(k=f.K,g.ZF&&(g=this.xb,a.jf("rgba("+g.r+","+g.g+","+g.b+",1)"),m.fillRect(n,t,k.width*d,k.height*e)));(f.jc||f.kc)&&a.restore();b.Rf++}};a.ac=function(){var a=this.n.$,d=this.Si,e=this.xb;
a&&(255!==e.r||255!==e.g||255!==e.b?(this.Rd=a.Vm(e.r,e.g,e.b,d),this.gq=!0):a&&(this.Rd=a,this.gq=!1))};a.Vr=function(){return null};a.iD=function(a,d){this.gq=!1;this.Si.by=this.Si.x;this.Si.cy=this.Si.y;if(d=d||a.L){var e=this.n.Rg();255===e.r&&255===e.g&&255===e.b||this.ac()}};a.$d=function(){var a=this.n;if(a.dirty){var d=a.ra;!a.bc||d&&d!==a.Ja&&d.Pi?a.Pi=!0:(a.Pi=!1,a.Nk=d&&d!==a.Ja?b.Kn(this.wc(),d.Nk):this.wc());a.Fi=!1;a.dirty=!1}a.gk&&a.Ke(a.F,b.e.te.$d)};a.RC=function(a){this.ub(a.Sg(),
a.vd,a.Tr());this.f.ac();this.dispatchEvent("load")};a.ZC=function(a){if(!this.L){this.L=!0;var d=this.ia,e=this.f;d?b.Zv(d)&&(d.width=a.width,d.height=a.height):d=b.rect(0,0,a.width,a.height);this.texture=a;this.ub(d,this.Cg);a=e.xb;255===a.r&&255===a.g&&255===a.b||e.ac();this.Cs(this.Ja);this.dispatchEvent("load")}};a.IC=function(a,d){void 0===d&&(d=!0);var e=this.Si,f=d?b.Qa():1;e.by=e.x=0|a.x*f;e.cy=e.y=0|a.y*f;e.width=0|a.width*f;e.height=0|a.height*f;e.ZF=!(0===e.width||0===e.height||0>e.x||
0>e.y)};b.M.t.Nu=function(a,d,e){if(!a)return null;if(!d)return a;e=null==e?!0:e;var f=document.createElement("canvas");f.width=d.width;f.height=d.height;var g=f.getContext("2d");g.translate(f.width/2,f.height/2);e?g.rotate(-1.5707963267948966):g.rotate(1.5707963267948966);g.drawImage(a,d.x,d.y,d.height,d.width,-d.height/2,-d.width/2,d.height,d.width);return f}})();(function(){b.M.B=function(a){b.e.B.call(this,a);this.qb=!0;this.zg=new b.ib;this.dC=b.o.createBuffer();this.Ag=!0;this.Fi=this.Va=!1};var a=b.M.B.prototype=Object.create(b.e.B.prototype);a.constructor=b.M.B;a.Ho=function(){};a.S=function(a){b.e.B.prototype.S.call(this,a);this.Va=!0};a.iy=function(a){this.Va=this.Fi=a;for(var d=this.n.F,e,f=d?d.length:0,g=0;g<f;g++)e=d[g],e instanceof b.M&&e.f.iy(a)};a.CC=function(a){var d=this.n;if(d.Ja){if(!(a instanceof b.M))return b.log(b.j.FI),!1;a.texture.Ng!==
d.textureAtlas.texture.Ng&&b.log(b.j.GI);d.Ja.appendChild(a);d.ud||d.rw()}return!0};a.qB=function(a){return a};a.Sx=function(a){var d=this.n;return b.XE(a.Sg(),d.ia)&&a.Db().getName()===d.$.getName()&&b.cR(a.aE(),d.Ui)};a.Se=function(){var a={r:255,g:255,b:255,a:255},d=this.zg;d.bl.colors=a;d.br.colors=a;d.tl.colors=a;d.tr.colors=a;this.Ag=!0};a.aw=function(){var a=this.n,d=a.Mb.x,e=a.Mb.y,f=d+a.ia.width,a=e+a.ia.height,g=this.zg;g.bl.vertices={x:d,y:e,z:0};g.br.vertices={x:f,y:e,z:0};g.tl.vertices=
{x:d,y:a,z:0};g.tr.vertices={x:f,y:a,z:0};this.Ag=!0};a.Vr=function(){return this.zg};a.iD=function(){};a.RC=function(a){this.ub(a.Sg(),a.vd,a.Tr());this.dispatchEvent("load")};a.ZC=function(a){var d=this.f;if(!this.L){this.L=!0;var e=this.ia;e?b.Zv(e)&&(e.width=a.width,e.height=a.height):e=b.rect(0,0,a.width,a.height);this.texture=a;this.ub(e,this.Cg);this.Cs(this.Ja);d.Ag=!0;this.dispatchEvent("load")}};a.IC=function(a,d){void 0===d&&(d=!0);d&&(a=b.ro(a));var e=this.n,f=e.Ja?e.textureAtlas.texture:
e.$;if(f){var g=f.pixelsWidth,h=f.pixelsHeight,k,m,n=this.zg;e.Cg?(b.pt?(f=(2*a.x+1)/(2*g),g=f+(2*a.height-2)/(2*g),k=(2*a.y+1)/(2*h),h=k+(2*a.width-2)/(2*h)):(f=a.x/g,g=(a.x+a.height)/g,k=a.y/h,h=(a.y+a.width)/h),e.jc&&(m=k,k=h,h=m),e.kc&&(m=f,f=g,g=m),n.bl.texCoords.u=f,n.bl.texCoords.v=k,n.br.texCoords.u=f,n.br.texCoords.v=h,n.tl.texCoords.u=g,n.tl.texCoords.v=k,n.tr.texCoords.u=g,n.tr.texCoords.v=h):(b.pt?(f=(2*a.x+1)/(2*g),g=f+(2*a.width-2)/(2*g),k=(2*a.y+1)/(2*h),h=k+(2*a.height-2)/(2*h)):(f=
a.x/g,g=(a.x+a.width)/g,k=a.y/h,h=(a.y+a.height)/h),e.jc&&(m=f,f=g,g=m),e.kc&&(m=k,k=h,h=m),n.bl.texCoords.u=f,n.bl.texCoords.v=h,n.br.texCoords.u=g,n.br.texCoords.v=h,n.tl.texCoords.u=f,n.tl.texCoords.v=k,n.tr.texCoords.u=g,n.tr.texCoords.v=k);this.Ag=!0}};a.transform=function(a,d){b.e.B.prototype.transform.call(this,a,d);this.Va=!0};a.EC=function(){};a.ac=function(){var a=this.xb,d=this.Gb,e=this.n,a={r:a.r,g:a.g,b:a.b,a:d};e.zb&&(a.r*=d/255,a.g*=d/255,a.b*=d/255);d=this.zg;d.bl.colors=a;d.br.colors=
a;d.tl.colors=a;d.tr.colors=a;e.Ja&&(e.atlasIndex!==b.M.Ty?e.textureAtlas.Vs(d,e.atlasIndex):this.Va=!0);this.Ag=!0};a.Vi=function(){if(this.Ja)b.log(b.j.EI);else{var a=this.n,d=a.T;a.$&&a.$.fl()?(d.src===b.SRC_ALPHA&&d.ya===b.mf&&(d.src=b.ONE),a.opacityModifyRGB=!0):(d.src===b.ONE&&d.ya===b.mf&&(d.src=b.SRC_ALPHA),a.opacityModifyRGB=!1)}};a.Eg=function(a){var d=this.n;if(d.Ja){if(d.Ja.texture!==a){b.log(b.j.VI);return}}else d.$!==a&&(d.L=a?a.L:!1,d.$=a,this.Vi());this.Ma=a?b.Ce.nc(b.pm):b.Ce.nc(b.Dp)};
a.$d=function(){var a=this.n;if(this.Va){var d=this.zg,e=a.ra;if(!a.bc||e&&e!==a.Ja&&e.Pi)d.br.vertices=d.tl.vertices=d.tr.vertices=d.bl.vertices={x:0,y:0,z:0},a.Pi=!0;else{a.Pi=!1;0!==this.D&&(this.updateStatus(),this.D=0);a.Nk=e&&e!==a.Ja?b.Kn(this.wc(),e.Nk):this.wc();var f=a.Nk,g=a.ia,e=a.Mb.x,h=a.Mb.y,k=e+g.width,m=h+g.height,n=f.X,p=f.Y,r=f.a,t=f.b,s=f.I,u=-f.c,f=e*r-h*u+n,g=e*t+h*s+p,v=k*r-h*u+n,h=k*t+h*s+p,x=k*r-m*u+n,k=k*t+m*s+p,n=e*r-m*u+n,e=e*t+m*s+p,m=a.yr;b.jz||(f|=0,g|=0,v|=0,h|=0,x|=
0,k|=0,n|=0,e|=0);d.bl.vertices={x:f,y:g,z:m};d.br.vertices={x:v,y:h,z:m};d.tl.vertices={x:n,y:e,z:m};d.tr.vertices={x:x,y:k,z:m}}a.textureAtlas.Vs(d,a.atlasIndex);this.Va=a.Fi=!1}a.gk&&a.Ke(a.F,b.e.te.$d)};a.Nz=function(a,d,e){a&&a.url&&(e?(e=d.x+d.height,d=d.y+d.width):(e=d.x+d.width,d=d.y+d.height),e>a.width&&b.error(b.j.Mt,a.url),d>a.height&&b.error(b.j.Lt,a.url))};a.fb=function(a){var d=this.n,e=d.$;e&&!e.L||0===this.Gb||(a=a||b.o,e?e.L&&(this.Ma.Rb(),this.Ma.Oi(this.Zc),b.Vf(d.T.src,d.T.ya),
b.Jx(0,e),b.xc(b.gu),a.bindBuffer(a.ARRAY_BUFFER,this.dC),this.Ag&&(a.bufferData(a.ARRAY_BUFFER,this.zg.arrayBuffer,a.DYNAMIC_DRAW),this.Ag=!1),a.vertexAttribPointer(0,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(1,4,a.UNSIGNED_BYTE,!0,24,12),a.vertexAttribPointer(2,2,a.FLOAT,!1,24,16),a.drawArrays(a.TRIANGLE_STRIP,0,4)):(this.Ma.Rb(),this.Ma.Oi(this.Zc),b.Vf(d.T.src,d.T.ya),b.ef(null),b.xc(b.Dc|b.wm),a.bindBuffer(a.ARRAY_BUFFER,this.dC),this.Ag&&(a.bufferData(a.ARRAY_BUFFER,this.zg.arrayBuffer,a.STATIC_DRAW),
this.Ag=!1),a.vertexAttribPointer(b.Ua,3,a.FLOAT,!1,24,0),a.vertexAttribPointer(b.he,4,a.UNSIGNED_BYTE,!0,24,12),a.drawArrays(a.TRIANGLE_STRIP,0,4)),b.Rf++,0===b.Tt&&!d.OC)||(b.Yn(b.ji),b.Na.stack.push(b.Na.top),b.Na.top=this.Zc,1===b.Tt||d.OC?(d=this.zg,d=[b.i(d.tl.vertices.x,d.tl.vertices.y),b.i(d.bl.vertices.x,d.bl.vertices.y),b.i(d.br.vertices.x,d.br.vertices.y),b.i(d.tr.vertices.x,d.tr.vertices.y)],b.th.ze(d,4,!0)):2===b.Tt&&(e=d.OP(),d=d.xP(),d=[b.i(d.x,d.y),b.i(d.x+e.width,d.y),b.i(d.x+e.width,
d.y+e.height),b.i(d.x,d.y+e.height)],b.th.ze(d,4,!0)),b.Na.top=b.Na.stack.pop())}})();b.pb=b.e.extend({T:null,od:null,pc:"SpriteBatchNode",ctor:function(a,c){b.e.prototype.ctor.call(this);this.od=[];this.T=new b.vb(b.fg,b.mf);var d;c=c||b.pb.Iy;b.Cd(a)?(d=b.Ra.Sn(a))||(d=b.Ra.tc(a)):a instanceof b.ma&&(d=a);d&&this.ua(d,c)},hX:function(a,c,d){b.assert(a,b.j.yI);if(!(a instanceof b.M))return b.log(b.j.xI),null;a.atlasIndex=c;var e=0,f,g=this.od;if(g&&0<g.length)for(e=0,f=g.length;e<f;e++){var h=g[e];if(h&&h.atlasIndex>=c)break}g.splice(e,0,a);b.e.prototype.ea.call(this,a,c,d);this.aF(!1);
return this},Wh:function(){return this.f.Wh()},Bo:function(){},fP:function(){return this.od},ds:function(a,c){var d=b.Ra.Sn(a);d||(d=b.Ra.tc(a));return this.ua(d,c)},MW:function(){},fa:function(a,c){var d=b.Ra.Sn(a);d||(d=b.Ra.tc(a));return this.ua(d,c)},Un:function(){this.f.Un()},C3:function(a,c){this.removeChild(this.F[a],c)},VE:function(a,c){var d=a.children;if(d&&0<d.length)for(var e=0;e<d.length;e++){var f=d[e];f&&0>f.zIndex&&(c=this.VE(f,c))}!a===this&&(a.atlasIndex=c,c++);if(d&&0<d.length)for(e=
0;e<d.length;e++)(f=d[e])&&0<=f.zIndex&&(c=this.VE(f,c));return c},Px:function(a){var c=a.children;return c&&0!==c.length?this.Px(c[c.length-1]):a.atlasIndex},OQ:function(a){var c=a.children;return c&&0!==c.length?this.OQ(c[c.length-1]):a.atlasIndex},FN:function(a,c){var d=a.parent,e=d.children,f=e.indexOf(a),g=null;0<f&&f<b.sz&&(g=e[f-1]);return d===this?0===f?0:this.Px(g)+1:0===f?0>c?d.atlasIndex:d.atlasIndex+1:0>g.zIndex&&0>c||0<=g.zIndex&&0<=c?this.Px(g)+1:d.atlasIndex+1},aF:function(a){this.ud=
a},Ds:function(a,c){this.T=void 0===c?a:{src:a,ya:c}},Qr:function(){return new b.vb(this.T.src,this.T.ya)},to:function(a,c){b.assert(a,b.j.DI);-1===this.F.indexOf(a)?b.log(b.j.CI):c!==a.zIndex&&b.e.prototype.to.call(this,a,c)},removeChild:function(a,c){null!=a&&(-1===this.F.indexOf(a)?b.log(b.j.BI):(this.xs(a),b.e.prototype.removeChild.call(this,a,c)))},t6:function(a,c){b.assert(a,b.j.tG);a instanceof b.M?(this.f.CD(),a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.$d()):b.log(b.j.sG)},P0:function(a,
c){b.assert(a,b.j.rG);a instanceof b.M?(this.f.kl(a,c),a.batchNode=this,a.atlasIndex=c,a.dirty=!0,a.$d(),this.f.LD(a,c)):b.log(b.j.qG)},ua:function(a,c){this.F.length=0;this.od.length=0;c=c||b.pb.Iy;this.f.ua(a,c);return!0},nQ:function(a,c){a.batchNode=this;a.atlasIndex=c;a.dirty=!0;this.f.kl(a,c);this.od.splice(c,0,a);var d=c+1,e=this.od;if(e&&0<e.length)for(;d<e.length;d++)e[d].atlasIndex++;var e=a.children,f,g;if(e)for(d=0,g=e.length||0;d<g;d++)(f=e[d])&&this.nQ(f,this.FN(f,f.zIndex))},appendChild:function(a){this.ud=
!0;a.batchNode=this;a.dirty=!0;this.od.push(a);var c=this.od.length-1;a.atlasIndex=c;this.f.kl(a,c);a=a.children;for(var c=0,d=a.length||0;c<d;c++)this.appendChild(a[c])},xs:function(a){this.f.ws(a.atlasIndex);a.batchNode=null;var c=this.od,d=c.indexOf(a);if(-1!==d){c.splice(d,1);for(var e=c.length;d<e;++d)c[d].atlasIndex--}if(a=a.children)for(c=0,d=a.length||0;c<d;c++)a[c]&&this.xs(a[c])},Db:function(){return this.f.Db()},nb:function(a){this.f.nb(a)},ea:function(a,c,d){b.assert(null!=a,b.j.oG);this.f.DE(a)&&
(c=null==c?a.zIndex:c,d=null==d?a.tag:d,b.e.prototype.ea.call(this,a,c,d),this.appendChild(a))},so:function(a){var c=this.od;if(c&&0<c.length)for(var d=0,e=c.length;d<e;d++)c[d]&&(c[d].batchNode=null);b.e.prototype.so.call(this,a);this.od.length=0;this.f.vs()},Zd:function(){if(this.ud){var a=this.F,c,d=0,e=a.length,f;for(c=1;c<e;c++){var g=a[c],d=c-1;for(f=a[d];0<=d&&(g.yb<f.yb||g.yb===f.yb&&g.arrivalOrder<f.arrivalOrder);)a[d+1]=f,d-=1,f=a[d];a[d+1]=g}0<a.length&&(this.Ke(a,b.e.te.Zd),this.f.UF(a));
this.ud=!1}},ld:function(){return b.ta===b.q.Jb?new b.pb.t(this):new b.pb.B(this)}});w=b.pb.prototype;b.m(w,"texture",w.Db,w.nb);b.m(w,"textureAtlas",w.Wh,w.Bo);b.m(w,"descendants",w.fP);b.pb.Iy=29;b.pb.create=function(a,c){return new b.pb(a,c)};b.pb.jx=b.pb.create;(function(){b.pb.t=function(a){b.e.t.call(this,a);this.Rd=this.$=null};var a=b.pb.t.prototype=Object.create(b.e.t.prototype);a.constructor=b.pb.t;a.CD=function(){};a.DE=function(a){return a instanceof b.M?!0:(b.log(b.j.kz),!1)};a.ua=function(a){this.Rd=this.$=a};a.kl=function(){};a.Un=function(){};a.ws=function(){};a.vs=function(){};a.Db=function(){return this.$};a.nb=function(a){this.$=a;for(var d=this.n.F,e=0;e<d.length;e++)d[e].nb(a)};a.UF=function(a){for(var d=this.n.od.length=0,e=a.length;d<
e;d++)this.ur(a[d])};a.ur=function(a){var d=this.n.od,e=a.children,f,g=e.length;for(f=0;f<g;f++)if(0>e[f].yb)d.push(e[f]);else break;for(d.push(a);f<g;f++)d.push(e[f])};a.Wh=function(){};a.Bo=function(){};a.LD=function(a,d){this.n.F.splice(d,0,a)}})();(function(){b.pb.B=function(a){b.e.B.call(this,a);this.qb=!0;this.Ga=null};var a=b.pb.B.prototype=Object.create(b.e.B.prototype);a.constructor=b.pb.B;a.DE=function(a){return a instanceof b.M?a.texture!=this.Db()?(b.log(b.j.HI),!1):!0:(b.log(b.j.kz),!1)};a.fb=function(){var a=this.n;0!==this.Ga.totalQuads&&(this.Ma.Rb(),this.Ma.Oi(this.Zc),a.Ke(a.F,b.e.te.$d),b.Vf(a.T.src,a.T.ya),this.Ga.rO())};a.za=function(a){var d=this.n;if(d.bc){d.ra&&d.ra.f&&(this.Uc=d.ra.f.Uc+1);var e=b.Na;e.stack.push(e.top);
this.D&b.e.H.ba||this.transform(a);this.updateStatus(a);e.top=this.Zc;d.Zd();b.sa.Dd(this);this.D=0;e.top=e.stack.pop()}};a.CD=function(a){for(var d=this.Ga;a>=d.capacity||d.capacity===d.totalQuads;)this.Un()};a.Un=function(){var a=this.Ga.capacity,d=Math.floor(4*(a+1)/3);b.log(b.j.zI,a,d);this.Ga.gF(d)||b.log(b.j.AI)};a.ua=function(a,d){this.Ga=new b.jg;this.Ga.ua(a,d);this.Vi();this.Ma=b.Ce.nc(b.pm)};a.kl=function(a,d){var e=this.Ga;e.totalQuads>=e.capacity&&this.Un();e.kl(a.quad,d)};a.ws=function(a){this.Ga.ws(a)};
a.Db=function(){return this.Ga.texture};a.nb=function(a){this.Ga.nb(a);a&&this.Vi()};a.vs=function(){this.Ga.vs()};a.or=function(a,d){var e=this.n.od,f=this.Ga,g=f.quads,h=e[a],k=b.uz(g[a]);e[d].atlasIndex=a;e[a]=e[d];f.Vs(g[d],a);e[d]=h;f.Vs(k,d)};a.ur=function(a,d){var e=0,f=a.children;f&&(e=f.length);var g=0;if(0===e)g=a.atlasIndex,a.atlasIndex=d,a.arrivalOrder=0,g!==d&&this.or(g,d),d++;else{g=!0;0<=f[0].zIndex&&(g=a.atlasIndex,a.atlasIndex=d,a.arrivalOrder=0,g!==d&&this.or(g,d),d++,g=!1);for(e=
0;e<f.length;e++){var h=f[e];g&&0<=h.zIndex&&(g=a.atlasIndex,a.atlasIndex=d,a.arrivalOrder=0,g!==d&&this.or(g,d),d++,g=!1);d=this.ur(h,d)}g&&(g=a.atlasIndex,a.atlasIndex=d,a.arrivalOrder=0,g!==d&&this.or(g,d),d++)}return d};a.UF=function(a){for(var d=0,e=0;e<a.length;e++)d=this.ur(a[e],d)};a.Vi=function(){if(!this.Ga.texture.fl()){var a=this.n.T;a.src=b.SRC_ALPHA;a.ya=b.ONE_MINUS_SRC_ALPHA}};a.Wh=function(){return this.Ga};a.Bo=function(a){a!==this.Ga&&(this.Ga=a)};a.LD=function(){}})();b.mG=b.M.extend({yu:null,Gm:null,ctor:function(){b.M.prototype.ctor.call(this);var a=document.createElement("canvas");a.width=a.height=10;this.yu=a;this.Gm=new b.et(a.getContext("2d"));var c=new b.ma;c.Bd(a);c.tb();this.nb(c)},LZ:function(){return this.Gm},KZ:function(){return this.yu},eF:function(a,c){var d=this.yu,e=this.Gm,f=e.jb.strokeStyle,g=e.jb.fillStyle;void 0===c&&(c=a.height,a=a.width);d.width=a;d.height=c;f!==e.jb.strokeStyle&&(e.jb.strokeStyle=f);g!==e.jb.fillStyle&&(e.jb.fillStyle=g);
this.Db().tb();this.ub(b.rect(0,0,a,c),!1,null,!1)}});b.ce=b.Aa.extend({Bk:null,qc:0,Rk:null,ctor:function(a,c,d){this.Bk=a||null;this.qc=c||0;this.Rk=d||null},k:function(){var a=new b.ce;a.Xf(this.Bk.k(),this.qc,this.Rk);return a},Ir:function(){return b.k(this)},copy:function(){var a=new b.ce;a.Xf(this.Bk.k(),this.qc,this.Rk);return a},Xf:function(a,c,d){this.Bk=a;this.qc=c;this.Rk=d;return!0},Tf:function(){return this.Bk},Bl:function(a){this.Bk=a},VZ:function(){return this.qc},v4:function(a){this.qc=a},o0:function(){return this.Rk},G5:function(a){this.Rk=
a}});b.ce.create=function(a,c,d){return new b.ce(a,c,d)};
b.eg=b.Aa.extend({ne:null,ug:0,Ii:!1,N:0,qc:0,Kf:0,ctor:function(a,c,d){this.ne=[];if(void 0===a)this.zE(null,0);else{var e=a[0];e&&(e instanceof b.Cc?this.zE(a,c,d):e instanceof b.ce&&this.cs(a,c,d))}},m_:function(){return this.ne},J4:function(a){this.ne=a},cx:function(a){var c=new b.ce;c.Xf(a,1,null);this.ne.push(c);this.Kf++},fX:function(a){a=b.Ra.tc(a);var c=b.rect(0,0,0,0);c.width=a.width;c.height=a.height;a=new b.Cc(a,c);this.cx(a)},gX:function(a,c){var d=new b.Cc(a,c);this.cx(d)},cs:function(a,
c,d){b.Ln(a,b.ce);this.qc=c;this.ug=void 0===d?1:d;this.Kf=0;c=this.ne;for(d=c.length=0;d<a.length;d++){var e=a[d];c.push(e);this.Kf+=e.qc}return!0},k:function(){var a=new b.eg;a.cs(this.Uz(),this.qc,this.ug);a.Js(this.Ii);return a},Ir:function(){var a=new b.eg;a.cs(this.Uz(),this.qc,this.ug);a.Js(this.Ii);return a},Uz:function(){for(var a=[],c=0;c<this.ne.length;c++)a.push(this.ne[c].k());return a},copy:function(){return this.Ir(null)},v_:function(){return this.ug},R4:function(a){this.ug=a},Js:function(a){this.Ii=
a},Q_:function(){return this.Ii},Ax:function(){return this.Kf*this.qc},UZ:function(){return this.qc},u4:function(a){this.qc=a},g0:function(){return this.Kf},zE:function(a,c,d){b.Ln(a,b.Cc);this.ug=void 0===d?1:d;this.qc=c||0;this.Kf=0;c=this.ne;c.length=0;if(a){for(d=0;d<a.length;d++){var e=a[d],f=new b.ce;f.Xf(e,1,null);c.push(f)}this.Kf+=a.length}return!0},zs:function(){},Wd:function(){}});b.eg.create=function(a,c,d){return new b.eg(a,c,d)};b.eg.ZX=b.eg.create;b.zr={Lj:{},sD:function(a,c){this.Lj[c]=a},B3:function(a){a&&this.Lj[a]&&delete this.Lj[a]},UD:function(a){return this.Lj[a]?this.Lj[a]:null},cK:function(a,c){var d=a.animations;if(d){var e=1,f=a.properties;if(f)for(var e=null!=f.format?parseInt(f.format):e,f=f.spritesheets,g=b.vj,h=b.path,k=0;k<f.length;k++)g.iN(h.Dr(c,f[k]));switch(e){case 1:this.fM(d);break;case 2:this.gM(d);break;default:b.log(b.j.vN)}}else b.log(b.j.uN)},ZW:function(a){b.assert(a,b.j.DN);var c=b.O.zd(a);c?this.cK(c,a):b.log(b.j.CN)},
fM:function(a){var c=b.vj,d;for(d in a){var e=a[d],f=e.frames,e=parseFloat(e.delay)||0,g=null;if(f){for(var g=[],h=0;h<f.length;h++){var k=c.Tf(f[h]);if(k){var m=new b.ce;m.Xf(k,1,null);g.push(m)}else b.log(b.j.xN,d,f[h])}0===g.length?b.log(b.j.yN,d):(g.length!==f.length&&b.log(b.j.zN,d),g=new b.eg(g,e,1),b.zr.sD(g,d))}else b.log(b.j.wN,d)}},gM:function(a){var c=b.vj,d;for(d in a){var e=a[d],f=parseInt(e.loops),f=e.loop?b.He:isNaN(f)?1:f,g=e.restoreOriginalFrame&&!0==e.restoreOriginalFrame?!0:!1,
h=e.frames;if(h){for(var k=[],m=0;m<h.length;m++){var n=h[m],p=n.spriteframe,r=c.Tf(p);if(r){var p=parseFloat(n.delayUnits)||0,n=n.notification,t=new b.ce;t.Xf(r,p,n);k.push(t)}else b.log(b.j.BN,d,p)}e=parseFloat(e.delayPerUnit)||0;h=new b.eg;h.cs(k,e,f);h.Js(g);b.zr.sD(h,d)}else b.log(b.j.AN,d)}},Wj:function(){this.Lj={}}};b.Cc=b.Aa.extend({Za:null,Gh:null,Yc:null,vd:!1,ia:null,qe:null,Md:null,$:null,Ik:"",L:!1,ctor:function(a,c,d,e,f){this.Za=b.i(0,0);this.qe=b.i(0,0);this.Gh=b.size(0,0);this.vd=!1;this.Md=b.size(0,0);this.Ik="";this.$=null;this.L=!1;void 0!==a&&void 0!==c&&(void 0===d||void 0===e||void 0===f?this.ua(a,c):this.ua(a,c,d,e,f))},Eo:function(){return this.L},Jn:function(a,c){this.addEventListener("load",a,c)},AP:function(){var a=this.Yc;return b.rect(a.x,a.y,a.width,a.height)},h5:function(a){this.Yc||
(this.Yc=b.rect(0,0,0,0));this.Yc.x=a.x;this.Yc.y=a.y;this.Yc.width=a.width;this.Yc.height=a.height;this.ia=b.ss(a)},f1:function(){return this.vd},j5:function(a){this.vd=a},Sg:function(){var a=this.ia;return b.rect(a.x,a.y,a.width,a.height)},CF:function(a){this.ia||(this.ia=b.rect(0,0,0,0));this.ia.x=a.x;this.ia.y=a.y;this.ia.width=a.width;this.ia.height=a.height;this.Yc=b.ro(this.ia)},D_:function(){return b.i(this.qe)},X4:function(a){this.qe.x=a.x;this.qe.y=a.y;b.Qv(this.qe,this.Za)},F_:function(){return b.size(this.Md)},
Z4:function(a){this.Md.width=a.width;this.Md.height=a.height},Tr:function(){return b.size(this.Gh)},Y4:function(a){this.Gh.width=a.width;this.Gh.height=a.height},Db:function(){if(this.$)return this.$;if(""!==this.Ik){var a=b.Ra.tc(this.Ik);a&&(this.L=a.L);return a}return null},nb:function(a){if(this.$!==a){var c=a.L;this.L=c;this.$=a;c||a.addEventListener("load",function(a){this.L=!0;if(this.vd&&b.ta===b.q.Jb){var c=a.Fa,c=b.M.t.Nu(c,this.Sg()),f=new b.ma;f.Bd(c);f.tb();this.nb(f);c=this.Sg();this.CF(b.rect(0,
0,c.width,c.height))}c=this.ia;0===c.width&&0===c.height&&(c=a.width,a=a.height,this.ia.width=c,this.ia.height=a,this.Yc=b.ro(this.ia),this.Md.width=this.Yc.width,this.Md.height=this.Yc.height,this.Gh.width=c,this.Gh.height=a);this.dispatchEvent("load")},this)}},aE:function(){return b.i(this.Za)},zo:function(a){this.Za.x=a.x;this.Za.y=a.y},k:function(){var a=new b.Cc;a.ua(this.Ik,this.Yc,this.vd,this.qe,this.Md);a.nb(this.$);return a},Ir:function(){var a=new b.Cc;a.ua(this.Ik,this.Yc,this.vd,this.qe,
this.Md);a.nb(this.$);return a},copy:function(){return this.Ir()},ua:function(a,c,d,e,f){2===arguments.length&&(c=b.ro(c));e=e||b.i(0,0);f=f||c;d=d||!1;b.Cd(a)?(this.$=null,this.Ik=a):a instanceof b.ma&&this.nb(a);a=this.Db();this.Yc=c;c=this.ia=b.ss(c);if(a&&a.url&&a.L){var g,h;d?(g=c.x+c.height,h=c.y+c.width):(g=c.x+c.width,h=c.y+c.height);g>a.Hx()&&b.error(b.j.Mt,a.url);h>a.Gx()&&b.error(b.j.Lt,a.url)}this.qe.x=e.x;this.qe.y=e.y;b.Qv(e,this.Za);this.Md.width=f.width;this.Md.height=f.height;b.PC(f,
this.Gh);this.vd=d;return!0}});b.ee.prototype.apply(b.Cc.prototype);b.Cc.create=function(a,c,d,e,f){return new b.Cc(a,c,d,e,f)};b.Cc.jx=b.Cc.create;b.Cc.gW=function(a,c,d,e,f){var g=new b.Cc;g.$=a;g.Yc=c;g.ia=b.ss(c);g.qe.x=e.x;g.qe.y=e.y;b.Qv(g.qe,g.Za);g.Md.width=f.width;g.Md.height=f.height;b.PC(g.Md,g.Gh);g.vd=d;return g};b.vj={xz:/^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/,SJ:/^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/,Ye:{},Hg:{},zf:{},kC:function(a){return(a=this.SJ.exec(a))?b.rect(parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]),parseFloat(a[4])):b.rect(0,0,0,0)},XB:function(a){return(a=this.xz.exec(a))?b.i(parseFloat(a[1]),parseFloat(a[2])):b.i(0,0)},zw:function(a){return(a=this.xz.exec(a))?b.size(parseFloat(a[1]),
parseFloat(a[2])):b.size(0,0)},$K:function(a){var c=b.O.zd(a);b.assert(c,b.j.KF,a);b.O.Wd(a);if(c.jk)return this.zf[a]=c;this.zf[a]=this.UB(c);return this.zf[a]},aL:function(a,c){b.assert(c,b.j.KF,a);this.zf[a]=this.UB(c);return this.zf[a]},UB:function(a){var c=a.frames,d=a.metadata||a.meta;a={};var e={},f=0;d&&(f=d.format,f=1>=f.length?parseInt(f):f,e.aQ=d.textureFileName||d.textureFileName||d.image);for(var g in c){var h=c[g];if(h){d={};if(0==f){d.rect=b.rect(h.x,h.y,h.width,h.height);d.As=!1;d.offset=
b.i(h.offsetX,h.offsetY);var k=h.originalWidth,h=h.originalHeight;k&&h||b.log(b.j.JS);k=Math.abs(k);h=Math.abs(h);d.size=b.size(k,h)}else if(1==f||2==f)d.rect=this.kC(h.frame),d.As=h.rotated||!1,d.offset=this.XB(h.offset),d.size=this.zw(h.sourceSize);else if(3==f){var k=this.zw(h.spriteSize),m=this.kC(h.textureRect);k&&(m=b.rect(m.x,m.y,k.width,k.height));d.rect=m;d.As=h.textureRotated||!1;d.offset=this.XB(h.spriteOffset);d.size=this.zw(h.spriteSourceSize);d.pN=h.aliases}else k=h.frame,m=h.sourceSize,
g=h.filename||g,d.rect=b.rect(k.x,k.y,k.w,k.h),d.As=h.rotated||!1,d.offset=b.i(0,0),d.size=b.size(m.w,m.h);a[g]=d}}return{jk:!0,frames:a,ms:e}},SV:function(a,c,d){b.assert(a,b.j.LF);c&&c.frames&&(c=this.zf[a]||this.aL(a,c),this.Wz(a,c,d))},Wz:function(a,c,d){var e=c.frames;c=c.ms;d?d instanceof b.ma||(b.Cd(d)?d=b.Ra.tc(d):b.assert(0,b.j.LS)):d=b.Ra.tc(b.path.Dr(a,c.aQ||".png"));a=this.Hg;c=this.Ye;for(var f in e){var g=e[f],h=c[f];if(!h){h=new b.Cc(d,g.rect,g.As,g.offset,g.size);if(g=g.pN)for(var k=
0,m=g.length;k<m;k++){var n=g[k];a[n]&&b.log(b.j.KS,n);a[n]=f}b.ta===b.q.Jb&&h.vd&&h.Db().L&&(g=h.Db().Fa,g=b.M.t.Nu(g,h.AP()),k=new b.ma,k.Bd(g),k.tb(),h.nb(k),g=h.ia,h.CF(b.rect(0,0,g.width,g.height)));c[f]=h}}},iN:function(a,c){b.assert(a,b.j.LF);var d=this.zf[a]||b.O.zd(a);d&&d.frames&&(d=this.zf[a]||this.$K(a),this.Wz(a,d,c))},YV:function(a){a=a.frames;for(var c in a)this.Ye[c]&&b.log(b.j.IS,c)},cx:function(a,c){this.Ye[c]=a},K3:function(){this.Ye={};this.Hg={}},J3:function(a){a&&(this.Hg[a]&&
delete this.Hg[a],this.Ye[a]&&delete this.Ye[a])},L3:function(a){var c=this.Ye,d=this.Hg;if(a=this.zf[a]){a=a.frames;for(var e in a)if(c[e]){delete c[e];for(var f in d)d[f]===e&&delete d[f]}}},M3:function(a){var c=this.Ye,d=this.Hg,e;for(e in c){var f=c[e];if(f&&f.Db()===a){delete c[e];for(var g in d)d[g]===e&&delete d[g]}}},Tf:function(a){var c=this.Ye[a];if(!c){var d=this.Hg[a];d&&((c=this.Ye[d.toString()])||delete this.Hg[a])}return c},Wj:function(){this.Ye={};this.Hg={};this.zf={}}};b.gx={lU:0,sV:1,INT:2,gU:3,BT:4,gn:0,TL:0,Iw:!1,Hw:!1,Fw:!1,Gw:!1,Jw:!1,uW:0,Gv:0,Up:"",Fn:{},jk:!1,Se:function(){var a=this.Fn;a["cocos2d.x.version"]=b.kt;a["cocos2d.x.compiled_with_profiler"]=!1;a["cocos2d.x.compiled_with_gl_state_cache"]=b.Ee;this.jk=!0},x_:function(){return this.gn},w_:function(){return this.TL},y_:function(){return this.Gv},X5:function(){return this.Hw},Y5:function(){return this.Iw},W5:function(){return!1},Z5:function(){return!1},T5:function(){return!1},U5:function(){return this.Fw},
V5:function(){return this.Gw},a6:function(){return this.Jw},Er:function(a){return-1<this.Up.indexOf(a)},q0:function(a,c){this.jk||this.Se();var d=this.Fn;return d[a]?d[a]:c},I5:function(a,c){this.Fn[a]=c},tO:function(){0===b.Ee&&(b.log(""),b.log(b.j.VN),b.log(""))},WO:function(){if(b.ta!==b.q.Jb){this.jk||this.Se();var a=b.o,c=this.Fn;c["gl.vendor"]=a.getParameter(a.VENDOR);c["gl.renderer"]=a.getParameter(a.RENDERER);c["gl.version"]=a.getParameter(a.VERSION);this.Up="";for(var d=a.getSupportedExtensions(),
e=0;e<d.length;e++)this.Up+=d[e]+" ";this.gn=a.getParameter(a.MAX_TEXTURE_SIZE);c["gl.max_texture_size"]=this.gn;this.Gv=a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS);c["gl.max_texture_units"]=this.Gv;this.Iw=this.Er("GL_IMG_texture_compression_pvrtc");c["gl.supports_PVRTC"]=this.Iw;this.Hw=!1;c["gl.supports_NPOT"]=this.Hw;this.Fw=this.Er("GL_IMG_texture_format_BGRA888");c["gl.supports_BGRA8888"]=this.Fw;this.Gw=this.Er("GL_EXT_discard_framebuffer");c["gl.supports_discard_framebuffer"]=this.Gw;
this.Jw=this.Er("vertex_array_object");c["gl.supports_vertex_array_object"]=this.Jw;b.Uk()}},R1:function(a){this.jk||this.Se();var c=b.O.zd(a);if(!c)throw Error("Please load the resource first : "+a);b.assert(c,b.j.XN,a);if(c=c.data)for(var d in c)this.Fn[d]=c[d];else b.log(b.j.WN,a)}};b.Rf=0;b.Ry=function(a){b.Xn(b.ki,a);var c=new b.d.Q;b.Xn(b.ji,c);a.multiply(c)};
b.qa=b.Aa.extend({tW:!1,hn:!1,Ab:!1,$q:!1,Ki:!1,Kj:0,Kv:0,uk:0,wi:1,sh:0,sc:null,Eh:null,Df:null,Ff:null,Gf:null,We:null,Xv:null,Nb:null,Bn:0,AC:0,dW:null,Yb:null,Ed:null,tq:null,Vu:null,Wu:null,Uu:null,ctor:function(){var a=this;a.Eh=Date.now();b.Z.$i(b.q.Vo,function(){a.Eh=Date.now()})},fa:function(){this.Kv=this.Kj=1/b.hO;this.We=[];this.uk=b.qa.WH;this.Xv=null;this.Bn=0;this.Eh=Date.now();this.$q=this.Ab=!1;this.sc=b.size(0,0);this.Gf=null;this.wi=1;this.Yb=new b.Gj;b.vy?(this.Ed=new b.vy,this.Yb.xl(this.Ed,
b.Gj.om,!1)):this.Ed=null;this.Vu=new b.ii(b.qa.QG);this.Vu.setUserData(this);this.Wu=new b.ii(b.qa.Py);this.Wu.setUserData(this);this.Uu=new b.ii(b.qa.PG);this.Uu.setUserData(this);this.tq=new b.ii(b.qa.Uo);this.tq.setUserData(this);return!0},MN:function(){var a=Date.now();this.hn?(this.sh=0,this.hn=!1):this.sh=(a-this.Eh)/1E3;0<b.q.eb[b.q.Mc.Pn]&&0.2<this.sh&&(this.sh=1/60);this.Eh=a},ED:null,FD:null,sO:function(){var a=b.sa;this.MN();this.Ab||(this.Yb.update(this.sh),b.Z.dispatchEvent(this.Vu));
a.clear();this.Df&&this.XR();this.wu&&this.wu();this.Nb&&(!0===a.cd?(b.sa.DD(),this.Nb.f.Uc=0,this.Nb.za(),a.fF()):!0===a.ba()&&a.transform());this.Ff&&this.Ff.za();b.Z.dispatchEvent(this.Wu);b.Rf=0;this.ru&&this.ru();a.fb(b.o);this.Bn++;b.Z.dispatchEvent(this.Uu);this.pK()},wu:null,ru:null,end:function(){this.$q=!0},QZ:function(){return this.wi},B_:function(){return this.Ff},Uf:function(){return b.size(this.sc)},w0:function(){return b.size(this.sc.width*this.wi,this.sc.height*this.wi)},dl:null,Xr:null,
el:null,pause:function(){this.Ab||(this.Kv=this.Kj,this.oF(0.25),this.Ab=!0)},d3:function(){b.assert(this.Nb,b.j.HG);this.We.pop();var a=this.We.length;0===a?this.end():(this.Ki=!0,this.Df=this.We[a-1])},hR:function(){b.zr.Wj();b.vj.Wj();b.Ra.Wj()},iR:function(){this.fj().eT();b.Z&&b.Z.Xd(!1);this.Nb&&(this.Nb.Ud(),this.Nb.Ac(),this.Nb.Pf());this.Df=this.Nb=null;this.We.length=0;this.OF();this.hR();b.Uk()},jR:function(a){b.assert(a,b.j.Ny);this.Ki=!1;this.We.push(a);this.Df=a},Bs:function(a){b.assert(a,
b.j.Ny);if(this.Nb){var c=this.We.length;0===c?(this.Ki=!0,this.We[c]=a):(this.Ki=!0,this.We[c-1]=a);this.Df=a}else this.jR(a),this.MF()},uo:function(){this.Ab&&(this.oF(this.Kv),(this.Eh=Date.now())||b.log(b.j.JG),this.Ab=!1,this.sh=0)},r4:function(a){a!==this.wi&&(this.wi=a)},xo:null,rF:null,t4:function(){},S4:function(a){this.hn=a},XR:function(){var a=!1,c=!1;b.rz&&(a=this.Nb?this.Nb instanceof b.rz:!1,c=this.Df?this.Df instanceof b.rz:!1);if(!c){if(c=this.Nb)c.Ud(),c.Ac();this.Ki&&c&&c.Pf()}this.Nb=
this.Df;b.sa.cd=!0;this.Df=null;a||null===this.Nb||(this.Nb.zc(),this.Nb.bg())},V4:function(a){b.sa.cd=!0;this.Ff&&(this.Ff.Ud(),this.Ff.Ac(),this.Ff.Pf());if(this.Ff=a)this.Ff.zc(),this.Ff.bg()},WZ:function(){return this.Xv},w4:function(a){this.Xv=a},Is:null,Ao:null,HF:null,yP:null,Ur:null,nF:null,j1:function(){return this.Ki},S_:function(){return this.Nb},GZ:function(){return this.Kj},X0:function(){return b.oo?b.oo.yQ():!1},NR:function(a){b.oo&&(a?b.oo.AS():b.oo.$P())},gE:function(){return this.AC},
a1:function(){return this.hn},wQ:function(){return this.Ab},h0:function(){return this.Bn},e3:function(){this.RE(1)},RE:function(a){b.assert(this.Nb,b.j.IG);var c=this.We,d=c.length;if(0===a)this.end();else if(!(a>=d)){for(;d>a;){var e=c.pop();e.running&&(e.Ud(),e.Ac());e.Pf();d--}this.Df=c[c.length-1];this.Ki=!0}},fj:function(){return this.Yb},DF:function(a){this.Yb!==a&&(this.Yb=a)},Or:function(){return this.Ed},mF:function(a){this.Ed!==a&&(this.Ed=a)},XZ:function(){return this.sh},pK:function(){this.AC=
(Date.now()-this.Eh)/1E3}});b.qa.Uo="director_projection_changed";b.qa.QG="director_after_update";b.qa.Py="director_after_visit";b.qa.PG="director_after_draw";b.LG=b.qa.extend({es:!1,MF:function(){this.hn=!0;this.es=!1},JE:function(){this.$q?(this.$q=!1,this.iR()):this.es||this.sO()},OF:function(){this.es=!0},oF:function(a){this.Kj=a;this.es||(this.OF(),this.MF())}});b.qa.oy=null;b.qa.TD=!0;b.qa.kv=function(){b.qa.TD&&(b.qa.TD=!1,b.qa.oy=new b.LG,b.qa.oy.fa());return b.qa.oy};b.hO=60;b.qa.UH=0;
b.qa.fz=1;b.qa.VH=3;b.qa.WH=b.qa.fz;b.q.addEventListener(b.q.nf,function(){if(b.ta===b.q.Jb){var a=b.qa.prototype;a.Ur=function(){return this.uk};a.Ao=function(a){this.uk=a;b.Z.dispatchEvent(this.tq)};a.xo=function(){};a.rF=function(a){b.sa.Le=a;b.sa.Oz="rgb("+a.r+","+a.g+","+a.b+")"};a.Is=function(a){this.sc.width=b.xa.width;this.sc.height=b.xa.height;this.Gf=a||b.view;b.Z&&b.Z.Xd(!0)};a.dl=function(){return this.Uf()};a.Xr=function(){return b.i(0,0)}}else b.qa.Tm=new Image,b.qa.Tm.addEventListener("load",function(){b.qa.fW=!0}),b.Tm&&
(b.qa.Tm.src=b.Tm)});b.q.addEventListener(b.q.nf,function(){if(b.ta===b.q.ic){b.iU=b.Aa.extend({s6:function(){}});var a=b.qa.prototype,c=function(a){if(a&&a.f){a.f.S(b.e.H.ba);var e=a.F;for(a=0;a<e.length;a++)c(e[a])}};b.Z.$i(b.qa.Uo,function(){for(var a=b.la.We,e=0;e<a.length;e++)c(a[e])});a.Ao=function(a){var c=this.sc;this.HF();var f=this.Gf,g=f.ad.x/f.ha,f=f.ad.y/f.Da;switch(a){case b.qa.UH:b.Yn(b.ki);b.is();c=b.d.Q.fO(-g,c.width-g,-f,c.height-f);b.js(c);b.Yn(b.ji);b.is();break;case b.qa.fz:var h=this.el(),k=new b.d.Q,
m=new b.d.Q;b.Yn(b.ki);b.is();k=b.d.Q.gO(c.width/c.height,2*h);b.js(k);b.Yn(b.ji);b.is();m.Ux(new b.d.ga(-g+c.width/2,-f+c.height/2,h),new b.d.ga(-g+c.width/2,-f+c.height/2,0),new b.d.ga(0,1,0));b.js(m);break;case b.qa.VH:break;default:b.log(b.j.KG)}this.uk=a;b.Z.dispatchEvent(this.tq);b.dS();b.sa.cd=!0};a.xo=function(a){b.sa.xo(a)};a.rF=function(a){b.sa.Le=a};a.Is=function(a){this.sc.width=b.xa.width;this.sc.height=b.xa.height;this.Gf=a||b.view;a=b.gx;a.WO();a.tO();this.vF();b.Z&&b.Z.Xd(!0)};a.Wj=
function(){var a=b.o;a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT)};a.wu=function(){b.JQ()};a.ru=function(){b.IQ()};a.ED=function(a){var c=new b.d.Q;b.Ry(c);var f=c.inverse(),c=c.l[14]/c.l[15],g=this.Gf.XD();a=new b.d.ga(2*a.x/g.width-1,1-2*a.y/g.height,c);a.SF(f);return b.i(a.x,a.y)};a.FD=function(a){var c=new b.d.Q;b.Ry(c);a=new b.d.ga(a.x,a.y,0);a.SF(c);c=this.Gf.XD();return b.i(c.width*(0.5*a.x+0.5),c.height*(0.5*-a.y+0.5))};a.dl=function(){return this.Gf.dl()};a.Xr=function(){return this.Gf.Xr()};
a.el=function(){return this.sc.height/1.1566};a.HF=function(){var a=this.Gf;if(a){var c=this.sc;a.yS(-a.ad.x/a.ha,-a.ad.y/a.Da,c.width,c.height)}};a.yP=function(){return this.Gf};a.Ur=function(){return this.uk};a.nF=function(a){a?b.Vf(b.fg,b.mf):b.Vf(b.o.ONE,b.o.ZERO)};a.vF=function(){this.nF(!0);this.xo(!1);this.Ao(this.uk);b.o.clearColor(0,0,0,0)}}});b.Ol=b.Aa.extend({bk:null,ck:null,dk:null,si:null,ti:null,ui:null,Ok:null,Pk:null,Qk:null,Va:!1,ok:null,ctor:function(){this.ok=new b.d.Q;this.restore()},description:function(){return"\x3cCCCamera | center \x3d("+this.si+","+this.ti+","+this.ui+")\x3e"},sF:function(a){this.Va=a},BE:function(){return this.Va},restore:function(){this.bk=this.ck=0;this.dk=b.Ol.el();this.Ok=this.si=this.ti=this.ui=0;this.Pk=1;this.Qk=0;this.ok.dc();this.Va=!1},S1:function(){this.Va&&(this.ok.Ux(new b.d.ga(this.bk,this.ck,
this.dk),new b.d.ga(this.si,this.ti,this.ui),new b.d.ga(this.Ok,this.Pk,this.Qk)),this.Va=!1);b.js(this.ok)},KB:function(a){this.Va&&(this.ok.Ux(new b.d.ga(this.bk,this.ck,this.dk),new b.d.ga(this.si,this.ti,this.ui),new b.d.ga(this.Ok,this.Pk,this.Qk)),this.Va=!1);a.multiply(this.ok)},D4:function(a,c,d){this.tF(a,c,d)},tF:function(a,c,d){this.bk=a;this.ck=c;this.dk=d;this.Va=!0},p4:function(a,c,d){this.IR(a,c,d)},IR:function(a,c,d){this.si=a;this.ti=c;this.ui=d;this.Va=!0},F5:function(a,c,d){this.tS(a,
c,d)},tS:function(a,c,d){this.Ok=a;this.Pk=c;this.Qk=d;this.Va=!0},e_:function(){return{x:this.bk,y:this.ck,z:this.dk}},YD:function(){return{x:this.bk,y:this.ck,z:this.dk}},OZ:function(){return{x:this.si,y:this.ti,z:this.ui}},WD:function(){return{x:this.si,y:this.ti,z:this.ui}},n0:function(){return{x:this.Ok,y:this.Pk,z:this.Qk}},QP:function(){return{x:this.Ok,y:this.Pk,z:this.Qk}},PV:function(){}});b.Ol.el=function(){return b.np};b.kV=b.om+1;b.Vy=function(a,c,d,e){this.next=null;this.af=a;this.target=c;this.sl=d;this.paused=e;this.Xg=!1};b.Sy=function(a,c,d,e){this.list=a;this.Sd=c;this.target=d;this.af=null;this.as=e};b.aH=b.H0=function(a,c,d,e,f,g,h){this.fd=a;this.target=c;this.Il=d;this.Nn=e;this.On=f;this.paused=g;this.as=h};
b.cu=b.Aa.extend({Yb:null,Wa:0,er:!1,En:!1,Ti:0,dr:0,Nm:0,Af:0,t_:function(){return this.Af},setInterval:function(a){this.Af=a},IF:function(a,c,d){this.Wa=-1;this.Af=a;this.Nm=d;this.En=0<this.Nm;this.dr=c;this.er=this.dr===b.He},$h:function(){return 0},cancel:function(){return 0},ctor:function(){this.Yb=null;this.Wa=-1;this.En=this.er=!1;this.Af=this.Nm=this.dr=this.Ti=0},update:function(a){-1===this.Wa?this.Ti=this.Wa=0:(this.Wa+=a,this.er&&!this.En?this.Wa>=this.Af&&(this.$h(),this.Wa=0):(this.En?
this.Wa>=this.Nm&&(this.$h(),this.Wa-=this.Nm,this.Ti+=1,this.En=!1):this.Wa>=this.Af&&(this.$h(),this.Wa=0,this.Ti+=1),!this.er&&this.Ti>this.dr&&this.cancel()))}});b.AJ=b.cu.extend({$b:null,Hh:null,ctor:function(){this.Hh=this.$b=null},hQ:function(a,c,d,e,f,g){this.Yb=a;this.$b=d;this.Hh=c;this.IF(e,f,g);return!0},Y_:function(){return this.Hh},$h:function(){this.$b&&this.Hh&&this.$b.call(this.Hh,this.Wa)},cancel:function(){this.Yb.yj(this.Hh,this.$b)}});
b.zJ=b.cu.extend({$b:null,Ub:null,CB:null,ctor:function(){this.Ub=this.$b=null},hj:function(a,c,d,e,f,g,h){this.Yb=a;this.$b=d;this.Ub=c;this.CB=e;this.IF(f,g,h);return!0},MZ:function(){return this.Ub},getKey:function(){return this.CB},$h:function(){this.Ub&&this.Ub.call(this.$b,this.Wa)},cancel:function(){this.Yb.yj(this.Ub,this.$b)}});
b.Gj=b.Aa.extend({An:1,Mf:null,Lf:null,Nf:null,sg:null,Mj:null,Qe:null,Lb:null,wf:!1,Cn:!1,ctor:function(){this.An=1;this.Mf=[];this.Lf=[];this.Nf=[];this.Qe={};this.sg={};this.Lb=null;this.Cn=this.wf=!1;this.Mj=[]},sM:function(a,c,d,e){var f=this.Qe[c.P];if(f&&f.Sd)if(f.Sd.sl!==d){if(this.Cn){b.log("warning: you CANNOT change update priority in scheduled function");f.Sd.Xg=!1;f.Sd.paused=e;return}this.eh(c)}else{f.Sd.Xg=!1;f.Sd.paused=e;return}0===d?this.kK(this.Lf,a,c,e):0>d?this.cC(this.Mf,a,c,
d,e):this.cC(this.Nf,a,c,d,e)},$v:function(a){delete this.sg[a.target.P];b.Jc(this.Mj,a);a.cu=null;a.target=null},ar:function(a){if(a=this.Qe[a.target.P])b.Jc(a.list,a.Sd),delete this.Qe[a.target.P],a.Sd=null,a.target=null},cC:function(a,c,d,e,f){c=new b.Vy(c,d,e,f);if(a){f=a.length-1;for(var g=0;g<=f&&!(e<a[g].sl);g++);a.splice(g,0,c)}else a=[],a.push(c);this.Qe[d.P]=new b.Sy(a,c,d);return a},kK:function(a,c,d,e){c=new b.Vy(c,d,0,e);a.push(c);this.Qe[d.P]=new b.Sy(a,c,d,null)},r5:function(a){this.An=
a},f0:function(){return this.An},update:function(a){this.Cn=!0;1!==this.An&&(a*=this.An);var c,d,e,f;c=0;d=this.Mf;for(e=d.length;c<e;c++)f=d[c],f.paused||f.Xg||f.af(a);c=0;d=this.Lf;for(e=d.length;c<e;c++)f=d[c],f.paused||f.Xg||f.af(a);c=0;d=this.Nf;for(e=d.length;c<e;c++)f=d[c],f.paused||f.Xg||f.af(a);e=this.Mj;for(c=0;c<e.length;c++){this.Lb=d=e[c];this.wf=!1;if(!d.paused)for(d.Il=0;d.Il<d.fd.length;++d.Il)d.Nn=d.fd[d.Il],d.On=!1,d.Nn.update(a),d.Nn=null;this.wf&&0===this.Lb.fd.length&&this.$v(this.Lb)}c=
0;for(d=this.Mf;c<d.length;)f=d[c],f.Xg?this.ar(f):c++;c=0;for(d=this.Lf;c<d.length;)f=d[c],f.Xg?this.ar(f):c++;c=0;for(d=this.Nf;c<d.length;)f=d[c],f.Xg?this.ar(f):c++;this.Cn=!1;this.Lb=null},a4:function(a,c,d,e,f,g){this.vo(c,a,d,e,f,g,a.P+"")},vo:function(a,c,d,e,f,g,h){var k=!1;if("function"!==typeof a)var m=a,k=!0;if(!1===k){if(4===arguments.length||5===arguments.length)h=f,g=e,f=0,e=b.He}else 4===arguments.length&&(g=e,e=b.He,f=0);void 0===h&&(h=c.P+"");b.assert(c,b.j.wI);var n=this.sg[c.P];
n?b.assert(n.paused===g,""):(n=new b.aH(null,c,0,null,null,g,null),this.Mj.push(n),this.sg[c.P]=n);var p,r;if(null==n.fd)n.fd=[];else if(!1===k)for(r=0;r<n.fd.length;r++){if(p=n.fd[r],a===p.Ub){b.log(b.j.vI,p.Af.toFixed(4),d.toFixed(4));p.Af=d;return}}else for(r=0;r<n.fd.length;++r)if((p=n.fd[r])&&m===p.Hh){b.log("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f",p.Af,d);p.setInterval(d);return}!1===k?(p=new b.zJ,p.hj(this,a,c,h,d,e,f)):(p=new b.AJ,p.hQ(this,
m,c,d,e,f));n.fd.push(p)},xl:function(a,c,d){this.sM(function(c){a.update(c)},a,c,d)},sL:function(a,c){switch(typeof a){case "number":case "string":return a===c.getKey();case "function":return a===c.Ub;default:return a===c.Hh}},yj:function(a,c){if(c&&a){var d=this.sg[c.P];if(d)for(var e=d.fd,f=0,g=e.length;f<g;f++){var h=e[f];if(this.sL(a,h)){h!==d.Nn||d.On||(d.On=!0);e.splice(f,1);d.Il>=f&&d.Il--;0===e.length&&(this.Lb===d?this.wf=!0:this.$v(d));break}}}},eh:function(a){null!=a&&(a=this.Qe[a.P])&&
(this.Cn?a.Sd.Xg=!0:this.ar(a.Sd))},TF:function(a){if(null!=a){var c=this.sg[a.P];c&&(-1<c.fd.indexOf(c.Nn)&&!c.On&&(c.On=!0),c.fd.length=0,this.Lb===c?this.wf=!0:this.$v(c));this.eh(a)}},eT:function(){this.ty(b.Gj.om)},ty:function(a){var c,d,e=this.Mj;for(c=e.length-1;0<=c;c--)d=e[c],this.TF(d.target);e=0;if(0>a)for(c=0;c<this.Mf.length;)e=this.Mf.length,(d=this.Mf[c])&&d.sl>=a&&this.eh(d.target),e==this.Mf.length&&c++;if(0>=a)for(c=0;c<this.Lf.length;)e=this.Lf.length,(d=this.Lf[c])&&this.eh(d.target),
e==this.Lf.length&&c++;for(c=0;c<this.Nf.length;)e=this.Nf.length,(d=this.Nf[c])&&d.sl>=a&&this.eh(d.target),e==this.Nf.length&&c++},g1:function(a,c){b.assert(a,"Argument key must not be empty");b.assert(c,"Argument target must be non-nullptr");var d=this.Qe[c.P];if(!d)return!1;if(null!=d.fd)for(var d=d.fd,e=0;e<d.length;++e)if(a===d[e].getKey())return!0;return!1},a3:function(){return this.$Q(b.Gj.om)},$Q:function(a){var c=[],d,e=this.Mj,f,g;f=0;for(g=e.length;f<g;f++)if(d=e[f])d.paused=!0,c.push(d.target);
if(0>a)for(f=0;f<this.Mf.length;f++)(d=this.Mf[f])&&d.sl>=a&&(d.paused=!0,c.push(d.target));if(0>=a)for(f=0;f<this.Lf.length;f++)if(d=this.Lf[f])d.paused=!0,c.push(d.target);for(f=0;f<this.Nf.length;f++)(d=this.Nf[f])&&d.sl>=a&&(d.paused=!0,c.push(d.target));return c},vR:function(a){if(a)for(var c=0;c<a.length;c++)this.$g(a[c])},rl:function(a){b.assert(a,b.j.tI);var c=this.sg[a.P];c&&(c.paused=!0);if(a=this.Qe[a.P])a.Sd.paused=!0},$g:function(a){b.assert(a,b.j.uI);var c=this.sg[a.P];c&&(c.paused=
!1);if(a=this.Qe[a.P])a.Sd.paused=!1},m1:function(a){b.assert(a,b.j.sI);var c=this.sg[a.P];return c?c.paused:(a=this.Qe[a.P])?a.Sd.paused:!1},b4:function(a,c,d){this.xl(a,c,d)},p6:function(a,c){this.yj(c,a)},q6:function(a){this.eh(a)},n6:function(a){this.yj(a.P+"",a)},sy:function(){this.ty(b.Gj.om)},o6:function(a){this.ty(a)}});b.Gj.om=-2147483648;b.bz=2*Math.PI;
b.Oy=b.Aa.extend({xu:[],o:null,ctor:function(a){this.o=a},oO:function(a,c){c||(c=1);var d=b.view.ha,e=b.i(a.x*d,a.y*b.view.Da),f=this.o.getContext();f.beginPath();f.arc(e.x,-e.y,c*d,0,2*Math.PI,!1);f.closePath();f.fill()},pO:function(a,c,d){if(null!=a){d||(d=1);c=this.o.getContext();var e=b.view.ha,f=b.view.Da;c.beginPath();for(var g=0,h=a.length;g<h;g++)c.arc(a[g].x*e,-a[g].y*f,d*e,0,2*Math.PI,!1);c.closePath();c.fill()}},Qg:function(a,c){var d=this.o.getContext(),e=b.view.ha,f=b.view.Da;d.beginPath();
d.moveTo(a.x*e,-a.y*f);d.lineTo(c.x*e,-c.y*f);d.closePath();d.stroke()},Lr:function(a,c){this.Qg(b.i(a.x,a.y),b.i(c.x,a.y));this.Qg(b.i(c.x,a.y),b.i(c.x,c.y));this.Qg(b.i(c.x,c.y),b.i(a.x,c.y));this.Qg(b.i(a.x,c.y),b.i(a.x,a.y))},QD:function(a,c,d){a=[a,b.i(c.x,a.y),c,b.i(a.x,c.y)];this.sx(a,4,d)},ze:function(a,c,d,e){e=e||!1;if(null!=a){if(3>a.length)throw Error("Polygon's point must greater than 2");var f=a[0];c=this.o.getContext();var g=b.view.ha,h=b.view.Da;c.beginPath();c.moveTo(f.x*g,-f.y*h);
for(var f=1,k=a.length;f<k;f++)c.lineTo(a[f].x*g,-a[f].y*h);d&&c.closePath();e?c.fill():c.stroke()}},sx:function(a,c,d){this.yo(d.r,d.g,d.b,d.a);this.ze(a,c,!0,!0)},nx:function(a,c,d,e,f){f=f||!1;e=this.o.getContext();var g=b.view.ha,h=b.view.Da;e.beginPath();e.arc(0|a.x*g,0|-(a.y*h),c*g,-d,-(d-2*Math.PI),!1);f&&e.lineTo(0|a.x*g,0|-(a.y*h));e.stroke()},qx:function(a,c,d,e){for(var f=this.xu,g=f.length=0,h=0;h<e;h++)f.push(b.i(Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,Math.pow(1-g,2)*a.y+2*(1-g)*g*
c.y+g*g*d.y)),g+=1/e;f.push(b.i(d.x,d.y));this.ze(f,e+1,!1,!1)},ox:function(a,c,d,e,f){for(var g=this.xu,h=g.length=0,k=0;k<f;k++)g.push(b.i(Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y)),h+=1/f;g.push(b.i(e.x,e.y));this.ze(g,f+1,!1,!1)},mx:function(a,c){this.dj(a,0.5,c)},dj:function(a,c,d){b.o.Ns("rgba(255,255,255,1)");var e=this.xu;e.length=0;for(var f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1===g?(f=a.length-
1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.VT(b.Pb(a,f-1),b.Pb(a,f-0),b.Pb(a,f+1),b.Pb(a,f+2),c,g),e.push(f);this.ze(e,d+1,!1,!1)},drawImage:function(a,c,d,e,f){var g=arguments.length,h=this.o.getContext();switch(g){case 2:h.drawImage(a,c.x,-(c.y+a.height));break;case 3:h.drawImage(a,c.x,-(c.y+d.height),d.width,d.height);break;case 5:h.drawImage(a,c.x,c.y,d.width,d.height,e.x,-(e.y+f.height),f.width,f.height);break;default:throw Error("Argument must be non-nil");}},vY:function(a,c,d){a=a||this.o;var e=a.getContext();
c*=b.view.ha;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);a.jf(d+",1)");var f=c/10;e.beginPath();e.moveTo(-c,c);e.lineTo(0,f);e.lineTo(c,c);e.lineTo(f,0);e.lineTo(c,-c);e.lineTo(0,-f);e.lineTo(-c,-c);e.lineTo(-f,0);e.lineTo(-c,c);e.closePath();e.fill();var g=e.createRadialGradient(0,0,f,0,0,c);g.addColorStop(0,d+", 1)");g.addColorStop(0.3,d+", 0.8)");g.addColorStop(1,d+", 0.0)");a.jf(g);e.beginPath();e.arc(0,0,c-f,0,b.bz,!1);e.closePath();e.fill()},tY:function(a,c,d){a=a||this.o;var e=a.getContext();
c*=b.view.ha;d="rgba("+(0|d.r)+","+(0|d.g)+","+(0|d.b);var f=e.createRadialGradient(0,0,c/10,0,0,c);f.addColorStop(0,d+", 1)");f.addColorStop(0.3,d+", 0.8)");f.addColorStop(0.6,d+", 0.4)");f.addColorStop(1,d+", 0.0)");a.jf(f);e.beginPath();e.arc(0,0,c,0,b.bz,!1);e.closePath();e.fill()},fillText:function(a,c,d){this.o.getContext().fillText(a,c,-d)},yo:function(a,c,d,e){this.o.jf("rgba("+a+","+c+","+d+","+e/255+")");this.o.Ns("rgba("+a+","+c+","+d+","+e/255+")")},ZR:function(){},xF:function(a){this.o.getContext().lineWidth=
a*b.view.ha}});b.MG=b.Aa.extend({o:null,Zm:!1,sb:null,vf:-1,kd:null,Sv:-1,Rv:-1,ctor:function(a){null==a&&(a=b.o);if(!a instanceof WebGLRenderingContext)throw Error("Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext");this.o=a;this.kd=new Float32Array([1,1,1,1])},Vg:function(){this.Zm||(this.sb=b.Ce.nc(b.St),this.vf=this.o.getUniformLocation(this.sb.al(),"u_color"),this.Sv=this.o.getUniformLocation(this.sb.al(),"u_pointSize"),this.Zm=!0)},uY:function(){this.Zm=!1},oO:function(a){this.Vg();
var c=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);c.uniform4fv(this.vf,this.kd);this.sb.Ps(this.Sv,this.Rv);var d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([a.x,a.y]),c.STATIC_DRAW);c.vertexAttribPointer(b.Ua,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,1);c.deleteBuffer(d);b.Wf()},pO:function(a){if(a&&0!==a.length){this.Vg();var c=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);c.uniform4fv(this.vf,this.kd);this.sb.Ps(this.Sv,this.Rv);var d=c.createBuffer();
c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.Zq(a),c.STATIC_DRAW);c.vertexAttribPointer(b.Ua,2,c.FLOAT,!1,0,0);c.drawArrays(c.POINTS,0,a.length);c.deleteBuffer(d);b.Wf()}},Zq:function(a){for(var c=new Float32Array(2*a.length),d=0;d<a.length;d++)c[2*d]=a[d].x,c[2*d+1]=a[d].y;return c},Qg:function(a,c){this.Vg();var d=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);d.uniform4fv(this.vf,this.kd);var e=d.createBuffer();d.bindBuffer(d.ARRAY_BUFFER,e);d.bufferData(d.ARRAY_BUFFER,this.Zq([a,
c]),d.STATIC_DRAW);d.vertexAttribPointer(b.Ua,2,d.FLOAT,!1,0,0);d.drawArrays(d.LINES,0,2);d.deleteBuffer(e);b.Wf()},Lr:function(a,c){this.Qg(b.i(a.x,a.y),b.i(c.x,a.y));this.Qg(b.i(c.x,a.y),b.i(c.x,c.y));this.Qg(b.i(c.x,c.y),b.i(a.x,c.y));this.Qg(b.i(a.x,c.y),b.i(a.x,a.y))},QD:function(a,c,d){a=[a,b.i(c.x,a.y),c,b.i(a.x,c.y)];this.sx(a,4,d)},ze:function(a,c,d){this.Vg();c=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);c.uniform4fv(this.vf,this.kd);var e=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,e);
c.bufferData(c.ARRAY_BUFFER,this.Zq(a),c.STATIC_DRAW);c.vertexAttribPointer(b.Ua,2,c.FLOAT,!1,0,0);d?c.drawArrays(c.LINE_LOOP,0,a.length):c.drawArrays(c.LINE_STRIP,0,a.length);c.deleteBuffer(e);b.Wf()},sx:function(a,c,d){this.Vg();d&&this.yo(d.r,d.g,d.b,d.a);c=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);c.uniform4fv(this.vf,this.kd);d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,this.Zq(a),c.STATIC_DRAW);c.vertexAttribPointer(b.Ua,2,c.FLOAT,!1,0,0);c.drawArrays(c.TRIANGLE_FAN,
0,a.length);c.deleteBuffer(d);b.Wf()},nx:function(a,c,d,e,f){this.Vg();var g=1;f&&g++;var h=2*Math.PI/e;if(f=new Float32Array(2*(e+2))){for(var k=0;k<=e;k++){var m=k*h,n=c*Math.sin(m+d)+a.y;f[2*k]=c*Math.cos(m+d)+a.x;f[2*k+1]=n}f[2*(e+1)]=a.x;f[2*(e+1)+1]=a.y;a=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);a.uniform4fv(this.vf,this.kd);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,
0,e+g);a.deleteBuffer(c);b.Wf()}},qx:function(a,c,d,e){this.Vg();for(var f=new Float32Array(2*(e+1)),g=0,h=0;h<e;h++)f[2*h]=Math.pow(1-g,2)*a.x+2*(1-g)*g*c.x+g*g*d.x,f[2*h+1]=Math.pow(1-g,2)*a.y+2*(1-g)*g*c.y+g*g*d.y,g+=1/e;f[2*e]=d.x;f[2*e+1]=d.y;a=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);a.uniform4fv(this.vf,this.kd);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,f,a.STATIC_DRAW);a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,0,e+1);a.deleteBuffer(c);
b.Wf()},ox:function(a,c,d,e,f){this.Vg();for(var g=new Float32Array(2*(f+1)),h=0,k=0;k<f;k++)g[2*k]=Math.pow(1-h,3)*a.x+3*Math.pow(1-h,2)*h*c.x+3*(1-h)*h*h*d.x+h*h*h*e.x,g[2*k+1]=Math.pow(1-h,3)*a.y+3*Math.pow(1-h,2)*h*c.y+3*(1-h)*h*h*d.y+h*h*h*e.y,h+=1/f;g[2*f]=e.x;g[2*f+1]=e.y;a=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);a.uniform4fv(this.vf,this.kd);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,g,a.STATIC_DRAW);a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,0,0);a.drawArrays(a.LINE_STRIP,
0,f+1);a.deleteBuffer(c);b.Wf()},mx:function(a,c){this.dj(a,0.5,c)},dj:function(a,c,d){this.Vg();for(var e=new Float32Array(2*(d+1)),f,g,h=1/a.length,k=0;k<d+1;k++)g=k/d,1===g?(f=a.length-1,g=1):(f=0|g/h,g=(g-h*f)/h),f=b.Br(b.Pb(a,f-1),b.Pb(a,f),b.Pb(a,f+1),b.Pb(a,f+2),c,g),e[2*k]=f.x,e[2*k+1]=f.y;a=this.o;this.sb.Rb();this.sb.dg();b.xc(b.Dc);a.uniform4fv(this.vf,this.kd);c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,e,a.STATIC_DRAW);a.vertexAttribPointer(b.Ua,2,a.FLOAT,
!1,0,0);a.drawArrays(a.LINE_STRIP,0,d+1);a.deleteBuffer(c);b.Wf()},yo:function(a,c,d,e){this.kd[0]=a/255;this.kd[1]=c/255;this.kd[2]=d/255;this.kd[3]=e/255},ZR:function(a){this.Rv=a*b.Qa()},xF:function(a){this.o.lineWidth&&this.o.lineWidth(a)}});b.ca.Ft=function(){var a=b.A.prototype;b.m(a,"color",a.Rg,a.Ea);b.m(a,"opacity",a.Zk,a.Yd);b.m(a,"string",a.gj,a.oc);b.m(a,"textAlign",a.lP,a.SR);b.m(a,"verticalAlign",a.UP,a.xS);b.m(a,"fontSize",a.Cx,a.Gs);b.m(a,"fontName",a.Bx,a.Fs);b.m(a,"font",a.ZK,a.xM);b.m(a,"boundingWidth",a.hv,a.vM);b.m(a,"boundingHeight",a.VK,a.uM);b.m(a,"fillStyle",a.YK,a.uF);b.m(a,"strokeStyle",a.pL,a.HM);b.m(a,"lineWidth",a.eL,a.zM);b.m(a,"shadowOffsetX",a.mL,a.DM);b.m(a,"shadowOffsetY",a.nL,a.EM);b.m(a,"shadowOpacity",
a.oL,a.FM);b.m(a,"shadowBlur",a.lL,a.CM)};b.A=b.M.extend({kb:null,rg:b.rm,Mg:b.xm,Xa:null,Ya:0,lb:"",Tq:null,QB:!0,Zb:!1,lc:null,Mh:0,Lh:0,Ak:null,ue:!1,Gk:null,Ig:0,yn:null,Dw:0,Ew:0,qk:!1,Cv:null,pc:"LabelTTF",og:"normal",pg:"normal",en:"normal",Td:function(a,c,d,e,f,g){a=a?a+"":"";d=d||16;e=e||b.size(0,0);f=f||b.Kp;g=g||b.xm;this.zb=!1;this.kb=b.size(e.width,e.height);this.Xa=c||"Arial";this.rg=f;this.Mg=g;this.Ya=d;this.f.Kh(this.Xa,d,this.og,this.pg);this.string=a;this.f.Jh();this.f.Wi();this.rb();return!0},rb:function(){this.qk=!0;
this.f.S(b.e.H.Gl)},ctor:function(a,c,d,e,f,g){b.M.prototype.ctor.call(this);this.kb=b.size(0,0);this.rg=b.Kp;this.Mg=b.xm;this.zb=!1;this.Xa="Arial";this.Zb=!1;this.lc=b.i(0,0);this.Lh=this.Mh=0;this.ue=!1;this.Gk=b.color(255,255,255,255);this.Ig=0;this.yn=b.color(255,255,255,255);this.Ew=this.Dw=0;this.qk=!1;this.Cv=[];this.f.Jh();this.L=!0;c&&c instanceof ea?this.iQ(a,c):b.A.prototype.Td.call(this,a,c,d,e,f,g)},fa:function(){return this.Td(" ",this.Xa,this.Ya)},description:function(){return"\x3ccc.LabelTTF | FontName \x3d"+
this.Xa+" FontSize \x3d "+this.Ya.toFixed(1)+"\x3e"},Ex:function(){return!this.en||this.en.charAt?this.f.xh:this.en||this.f.xh},Q4:function(a){this.en=a},gj:function(){return this.lb},lP:function(){return this.rg},UP:function(){return this.Mg},a_:function(){return b.size(this.kb)},Cx:function(){return this.Ya},Bx:function(){return this.Xa},iQ:function(a,c){this.nD(c,!1);this.string=a;return!0},q5:function(a){a&&this.nD(a,!0)},e0:function(){return this.iM(!1)},CO:function(a,c,d,e){null!=a.r&&null!=
a.g&&null!=a.b&&null!=a.a?this.FK(a,c,d):this.PA(a,c,d,e)},PA:function(a,c,d,e){d=d||0.5;!1===this.Zb&&(this.Zb=!0);var f=this.lc;if(f&&f.x!==a||f.bd!==c)f.x=a,f.y=c;this.Mh!==d&&(this.Mh=d);this.f.Jh();this.Lh!==e&&(this.Lh=e);this.rb()},FK:function(a,c,d){this.Ak||(this.Ak=b.color(255,255,255,128));this.Ak.r=a.r;this.Ak.g=a.g;this.Ak.b=a.b;this.PA(c.width||c.x||0,c.height||c.y||0,null!=a.a?a.a/255:0.5,d)},mL:function(){return this.lc.x},DM:function(a){!1===this.Zb&&(this.Zb=!0);this.lc.x!==a&&(this.lc.x=
a,this.rb())},nL:function(){return this.lc.bd},EM:function(a){!1===this.Zb&&(this.Zb=!0);this.lc.bd!==a&&(this.lc.bd=a,this.rb())},oW:function(){return b.i(this.lc.x,this.lc.y)},OW:function(a){!1===this.Zb&&(this.Zb=!0);if(this.lc.x!==a.x||this.lc.y!==a.y)this.lc.x=a.x,this.lc.y=a.y,this.rb()},oL:function(){return this.Mh},FM:function(a){!1===this.Zb&&(this.Zb=!0);this.Mh!==a&&(this.Mh=a,this.f.Jh(),this.rb())},lL:function(){return this.Lh},CM:function(a){!1===this.Zb&&(this.Zb=!0);this.Lh!==a&&(this.Lh=
a,this.rb())},hY:function(){this.Zb&&(this.Zb=!1,this.rb())},DO:function(a,c){!1===this.ue&&(this.ue=!0);var d=this.Gk;if(d.r!==a.r||d.g!==a.g||d.b!==a.b)d.r=a.r,d.g=a.g,d.b=a.b,this.f.Jh();this.Ig!==c&&(this.Ig=c||0);this.rb()},pL:function(){return this.Gk},HM:function(a){!1===this.ue&&(this.ue=!0);var c=this.Gk;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.f.Jh(),this.rb()},eL:function(){return this.Ig},zM:function(a){!1===this.ue&&(this.ue=!0);this.Ig!==a&&(this.Ig=a||0,this.rb())},
iY:function(){this.ue&&(this.ue=!1,this.rb())},uF:function(a){var c=this.yn;if(c.r!==a.r||c.g!==a.g||c.b!==a.b)c.r=a.r,c.g=a.g,c.b=a.b,this.f.Jh(),this.qk=!0},YK:function(){return this.yn},nD:function(a,c){a.xZ?(this.kb.width=a.boundingWidth,this.kb.height=a.boundingHeight):(this.kb.width=0,this.kb.height=0);this.rg=a.textAlign;this.Mg=a.verticalAlign;this.Xa=a.fontName;this.Ya=a.fontSize||12;this.en=a.lineHeight?a.lineHeight:this.Ya;this.f.Kh(a);a.JF&&this.CO(a.shadowOffsetX,a.shadowOffsetY,a.shadowOpacity,
a.shadowBlur);a.qy&&this.DO(a.strokeStyle,a.lineWidth);this.uF(a.fillStyle);c&&this.f.Wi();var d=b.e.H;this.f.S(d.Ob|d.ec|d.Gl)},iM:function(a){var c=new ea;a?(c.fontSize=this.Ya,c.boundingWidth=b.Qa()*this.kb.width,c.boundingHeight=b.Qa()*this.kb.height):(c.fontSize=this.Ya,c.boundingWidth=this.kb.width,c.boundingHeight=this.kb.height);c.fontName=this.Xa;c.textAlign=this.rg;c.verticalAlign=this.Mg;if(this.ue){c.qy=!0;var d=this.Gk;c.strokeStyle=b.color(d.r,d.g,d.b);c.lineWidth=this.Ig}else c.qy=
!1;this.Zb?(c.JF=!0,c.shadowBlur=this.Lh,c.shadowOpacity=this.Mh,c.shadowOffsetX=(a?b.Qa():1)*this.lc.x,c.shadowOffsetY=(a?b.Qa():1)*this.lc.y):c.Zb=!1;a=this.yn;c.fillStyle=b.color(a.r,a.g,a.b);return c},oc:function(a){a=String(a);this.Tq!==a&&(this.Tq=a+"",this.xr(),this.rb(),this.f.S(b.e.H.ba))},xr:function(){this.lb&&""!==this.lb||this.lb===this.Tq||(b.sa.cd=!0);this.lb=this.Tq},SR:function(a){a!==this.rg&&(this.rg=a,this.rb())},xS:function(a){a!==this.Mg&&(this.Mg=a,this.rb())},x4:function(a,
c){var d;void 0===c?(d=a.width,c=a.height):d=a;if(d!==this.kb.width||c!==this.kb.height)this.kb.width=d,this.kb.height=c,this.xr(),this.rb()},hv:function(){return this.kb.width},vM:function(a){a!==this.kb.width&&(this.kb.width=a,this.xr(),this.rb())},VK:function(){return this.kb.height},uM:function(a){a!==this.kb.height&&(this.kb.height=a,this.xr(),this.rb())},Gs:function(a){this.Ya!==a&&(this.Ya=a,this.f.Kh(this.Xa,this.Ya,this.og,this.pg),this.rb())},Fs:function(a){this.Xa&&this.Xa!==a&&(this.Xa=
a,this.f.Kh(this.Xa,this.Ya,this.og,this.pg),this.rb())},ZK:function(){return this.f.jv()},xM:function(a){if(a=b.A.KK.exec(a))this.Ya=parseInt(a[1]),this.Xa=a[2],this.f.Kh(this.Xa,this.Ya,this.og,this.pg),this.rb()},Sf:function(){this.qk&&this.f.Dn();return b.M.prototype.Sf.call(this)},Oe:function(){this.qk&&this.f.Dn();return b.M.prototype.Oe.call(this)},Ah:function(){this.qk&&this.f.Dn();return b.M.prototype.Ah.call(this)},ub:function(a,c,d){b.M.prototype.ub.call(this,a,c,d,!1)},B4:function(a){this.QB=
a},ld:function(){return b.ta===b.q.ic?new b.A.B(this):this.QB?new b.A.ct(this):new b.A.t(this)},Kh:function(a){this.og!==a&&(this.og=a,this.f.Kh(this.Xa,this.Ya,this.og,this.pg),this.rb())},jv:function(){return this.og},KW:function(a){this.pg!==a&&(this.pg=a,this.f.Kh(this.Xa,this.Ya,this.og,this.pg),this.rb())},jW:function(){return this.pg}});b.assert(b.mc(b.ca.Ft),b.j.of,"LabelTTFPropertyDefine.js");b.ca.Ft();delete b.ca.Ft;b.A.KK=/^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/;
b.A.create=function(a,c,d,e,f,g){return new b.A(a,c,d,e,f,g)};b.A.$X=b.A.create;b.A.$J=b.NJ?b.pm:b.Pt;b.A.kg=document.createElement("div");b.A.kg.style.fontFamily="Arial";b.A.kg.style.position="absolute";b.A.kg.style.left="-100px";b.A.kg.style.top="-100px";b.A.kg.style.lineHeight="normal";document.body?document.body.appendChild(b.A.kg):window.addEventListener("load",function(){this.removeEventListener("load",arguments.callee,!1);document.body.appendChild(b.A.kg)},!1);
b.A.yz=function(a,c){if(a instanceof ea){var d=b.A.Vp[fa(a)];if(0<d)return d;var e=b.A.kg;e.innerHTML="ajghl~!";e.style.fontFamily=a.fontName;e.style.fontSize=a.fontSize+"px";e.style.fontStyle=a.fontStyle;e.style.fontWeight=a.fontWeight;d=e.clientHeight;b.A.Vp[fa(a)]=d;e.innerHTML="";return d}d=b.A.Vp[a+"."+c];if(0<d)return d;e=b.A.kg;e.innerHTML="ajghl~!";e.style.fontFamily=a;e.style.fontSize=c+"px";d=e.clientHeight;b.A.Vp[a+"."+c]=d;e.innerHTML="";return d};b.A.Vp={};b.A.SM=["left","center","right"];b.A.TM=["top","middle","bottom"];b.A.$F=!0;b.A.rD=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/;b.A.YC=/^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/;b.A.EB=/([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/;b.A.DB=/[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/;
b.A.XA=/^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/;
(function(){b.A.hb=function(){this.xh=18;this.yh="";this.MC="rgba(128, 128, 128, 0.5)";this.XC="";this.WA="rgba(255,255,255,1)";this.Jq=this.Av=null;this.Cv=[];this.Pd=[];this.an=!1;this.Fk=[];this.cr=0};var a=b.A.hb.prototype;a.constructor=b.A.hb;a.Kh=function(a,d,e,f){a instanceof ea?(this.yh=fa(a),this.xh=b.A.yz(a)):(this.yh=e+" "+f+" "+d+"px '"+a+"'",this.xh=b.A.yz(a,d))};a.jv=function(){return this.yh};a.iW=function(){return this.xh};a.ac=function(){this.Jh();this.Wi()};a.Jh=function(){var a=
this.xb,d=this.n,e=d.Ak||this.xb,f=d.Gk,g=d.yn,h=a.r/255,k=a.g/255,a=a.b/255;this.MC="rgba("+(0|h*e.r)+","+(0|k*e.g)+","+(0|a*e.b)+","+d.Mh+")";this.WA="rgba("+(0|h*g.r)+","+(0|k*g.g)+","+(0|a*g.b)+", 1)";this.XC="rgba("+(0|h*f.r)+","+(0|k*f.g)+","+(0|a*f.b)+", 1)"};a.Dn=function(){var a=this.n,d=a.kb.width,e,f,g=this.Cv;g.length=0;this.an=!1;this.MB();if(0!==d)for(this.Pd=a.lb.split("\n"),e=0;e<this.Pd.length;e++)this.Gu(this.Pd,e,d);else for(this.Pd=a.lb.split("\n"),e=0,f=this.Pd.length;e<f;e++)g.push(this.Bi(this.Pd[e]));
1<this.Pd.length&&(this.an=!0);f=e=0;a.ue&&(e=f=2*a.Ig);if(a.Zb){var h=a.lc;e+=2*Math.abs(h.x);f+=2*Math.abs(h.y)}d=0===d?this.an?b.size(Math.ceil(Math.max.apply(Math,g)+e),Math.ceil(this.xh*this.Pd.length+f)):b.size(Math.ceil(this.Bi(a.lb)+e),Math.ceil(this.xh+f)):0===a.kb.height?this.an?b.size(Math.ceil(d+e),Math.ceil(a.Ex()*this.Pd.length+f)):b.size(Math.ceil(d+e),Math.ceil(a.Ex()+f)):b.size(Math.ceil(d+e),Math.ceil(a.kb.height+f));"normal"!==a.jv()&&(d.width=Math.ceil(d.width+0.3*a.Ya));a.ed(d);
a.Dw=e;a.Ew=f;a=a.je;this.uf.x=0.5*e+(d.width-e)*a.x;this.uf.y=0.5*f+(d.height-f)*a.y};a.xC=function(){var a=this.n,d=a.Dw,e=a.Ew,f=a.K.height-e,g=a.Mg,h=a.rg,k=0.5*d,e=f+0.5*e,m=0,n=0,p=[],r=a.K.width-d,a=a.Ex(),d=(a-this.xh)/2,m=h===b.nz?m+r:h===b.rm?m+r/2:m+0;if(this.an)for(h=this.Pd.length,g===b.vz?n=a-2*d+f-a*h:g===b.RJ&&(n=(a-2*d)/2+(f-a*h)/2),g=0;g<h;g++)p.push(-f+(a*g+d)+n);else g!==b.vz&&(n=g===b.xm?n-f:n-0.5*f),p.push(n);f={Gr:b.i(k,e),Lo:m,az:p};this.Fk.push(f)};a.EK=function(a){if(a){var d=
this.Fk.pop();a.setTransform(1,0,0,1,d.Gr.x,d.Gr.y);this.OD(a,d.Lo,d.az)}};a.Gu=function(a,d,e){var f=a[d],g=this.Bi(f);if(g>e&&1<f.length){for(var h=e/g*f.length|0,k=f.substr(h),m=g-this.Bi(k),n,p=0,r=0;m>e&&100>r++;)h*=e/m,h|=0,k=f.substr(h),m=g-this.Bi(k);for(r=0;m<e&&100>r++;)k&&(p=(n=b.A.rD.exec(k))?n[0].length:1,n=k),h+=p,k=f.substr(h),m=g-this.Bi(k);h-=p;0===h&&(h=1,n=n.substr(1));e=f.substr(0,h);b.A.$F&&b.A.YC.test(n||k)&&(g=b.A.EB.exec(e),h-=g?g[0].length:0,n=f.substr(h),e=f.substr(0,h));
b.A.XA.test(n)&&(g=b.A.DB.exec(e))&&e!==g[0]&&(h-=g[0].length,n=f.substr(h),e=f.substr(0,h));a[d]=n||k;a.splice(d,0,e)}};a.updateStatus=function(){var a=b.e.H,d=this.D;b.e.hb.prototype.updateStatus.call(this);d&a.Gl&&this.Wi();this.D&a.ba&&(this.transform(H(this),!0),this.D^=this.D&b.e.H.ba)};a.Qd=function(a){var d=b.e.H,e=this.D;b.e.hb.prototype.Qd.call(this,a);e&d.Gl&&this.Wi();(b.ta===b.q.ic||e&d.ba)&&this.transform(a)};a.OD=function(a,d,e){var f=this.n;if(f.Zb){var g=f.lc;a.shadowColor=this.MC;
a.shadowOffsetX=g.x;a.shadowOffsetY=-g.y;a.shadowBlur=f.Lh}var g=f.rg,h=f.Mg,k=f.Ig;a.font!==this.yh&&(a.font=this.yh);a.fillStyle=this.WA;if(f=f.ue)a.lineWidth=2*k,a.strokeStyle=this.XC;a.textBaseline=b.A.TM[h];a.textAlign=b.A.SM[g];g=this.Pd.length;for(h=0;h<g;h++)k=this.Pd[h],f&&a.strokeText(k,d,e[h]),a.fillText(k,d,e[h]);b.Rf++}})();
(function(){b.A.fh=function(a){b.A.hb.call(this,a);a=this.Av=document.createElement("canvas");a.width=1;a.height=1;this.Jq=a.getContext("2d")};b.A.fh.prototype=Object.create(b.A.hb.prototype);b.jl(b.A.hb.prototype,b.A.fh.prototype);var a=b.A.fh.prototype;a.constructor=b.A.fh;a.Wi=function(){this.D^=this.D&b.e.H.Gl;var a=this.n,d=a.K;this.Dn();var e=d.width,f=d.height,g=this.Jq,h=this.Av;if(!a.$){var k=new b.ma;k.Bd(this.Av);a.nb(k)}if(0===a.lb.length)return h.width=1,h.height=d.height||1,a.$&&a.$.tb(),
a.ub(b.rect(0,0,1,d.height)),!0;g.font=this.yh;d=h.width===e&&h.height===f;h.width=e;h.height=f;d&&g.clearRect(0,0,e,f);this.xC();this.EK(g);a.$&&a.$.tb();a.ub(b.rect(0,0,e,f));return!0};a.MB=function(){this.Jq.font=this.yh};a.Bi=function(a){return this.Jq.measureText(a).width}})();(function(){b.A.ct=function(a){b.M.t.call(this,a);b.A.fh.call(this)};var a=b.A.ct.prototype=Object.create(b.M.t.prototype);b.jl(b.A.fh.prototype,a);a.constructor=b.A.ct})();
(function(){b.A.t=function(a){b.M.t.call(this,a);b.A.hb.call(this)};b.A.t.prototype=Object.create(b.M.t.prototype);b.jl(b.A.hb.prototype,b.A.t.prototype);var a=b.A.t.prototype;a.constructor=b.A.t;a.MB=function(){};a.Bi=function(a){var d=b.o.getContext();d.font=this.yh;return d.measureText(a).width};a.Wi=function(){this.D^=this.D&b.e.H.Gl;var a=this.n,d=a.K;this.Dn();var e=d.width,f=d.height;if(0===a.lb.length)return a.ub(b.rect(0,0,1,d.height)),!0;this.xC();a.ub(b.rect(0,0,e,f));return!0};a.fb=function(a){var d=
b.view.ha,e=b.view.Da;a=a||b.o;var f=a.getContext();if(f){var g=this.n;a.fx();if(!(0>=this.Fk.length)){var h=this.cr>=this.Fk.length?this.cr-this.Fk.length:this.cr,k=this.Fk[h];this.cr=h+1;var m=g.Mb.x,h=-g.Mb.y-g.ia.height,n=this.Gb/255;a.setTransform(this.Og,d,e);a.wo(this.mg);a.Al(n);a.save();g.jc&&(m=-m-g.ia.width,f.scale(-1,1));g.kc&&(h=g.Mb.y,f.scale(1,-1));d=k.Lo+k.Gr.x+m*d;g=[];m=this.Pd.length;for(n=0;n<m;n++)g.push(k.az[n]+k.Gr.y+h*e);this.OD(f,d,g);a.restore()}}}})();(function(){b.A.B=function(a){b.M.B.call(this,a);b.A.fh.call(this);this.uj(b.Ce.nc(b.A.$J))};var a=b.A.B.prototype=Object.create(b.M.B.prototype);b.jl(b.A.fh.prototype,a);a.constructor=b.A.B;a.ac=function(){this.Wi();b.M.B.prototype.ac.call(this)}})();b.$G=b.Aa.extend({mb:null,target:null,Zi:0,xd:null,cj:!1,paused:!1,as:null,ctor:function(){this.mb=[];this.target=null;this.Zi=0;this.xd=null;this.paused=this.cj=!1;this.as=null}});
b.vy=b.Aa.extend({oe:null,Nj:null,Lb:null,wf:!1,IW:function(a,c){for(var d=0;d<a.length;d++)if(c===a[d].target)return a[d];return null},ctor:function(){this.oe={};this.Nj=[];this.Lb=null;this.wf=!1},gN:function(a,c,d){if(!a)throw Error("cc.ActionManager.addAction(): action must be non-null");if(!c)throw Error("cc.ActionManager.addAction(): action must be non-null");var e=this.oe[c.P];e||(e=new b.$G,e.paused=d,e.target=c,this.oe[c.P]=e,this.Nj.push(e));this.bK(e);e.mb.push(a);a.G(c)},w3:function(){for(var a=
this.Nj,c=0;c<a.length;c++){var d=a[c];d&&this.ZE(d.target,!0)}},ZE:function(a,c){if(null!=a){var d=this.oe[a.P];d&&(-1===d.mb.indexOf(d.xd)||d.cj||(d.cj=!0),d.mb.length=0,this.Lb!==d||c?this.Pu(d):this.wf=!0)}},YE:function(a){if(null!=a){var c=this.oe[a.originalTarget.P];if(c)for(var d=0;d<c.mb.length;d++){if(c.mb[d]===a){c.mb.splice(d,1);break}}else b.log(b.j.dG)}},lR:function(a,c){a===b.zj&&b.log(b.j.wy);b.assert(c,b.j.wy);var d=this.oe[c.P];if(d)for(var e=d.mb.length,f=0;f<e;++f){var g=d.mb[f];
if(g&&g.Ix()===a&&g.originalTarget===c){this.kM(f,d);break}}},xx:function(a,c){a===b.zj&&b.log(b.j.bG);var d=this.oe[c.P];if(d){if(null!=d.mb)for(var e=0;e<d.mb.length;++e){var f=d.mb[e];if(f&&f.Ix()===a)return f}b.log(b.j.cG,a)}return null},TQ:function(a){return(a=this.oe[a.P])?a.mb?a.mb.length:0:0},rl:function(a){if(a=this.oe[a.P])a.paused=!0},$g:function(a){if(a=this.oe[a.P])a.paused=!1},Z2:function(){for(var a=[],c=this.Nj,d=0;d<c.length;d++){var e=c[d];e&&!e.paused&&(e.paused=!0,a.push(e.target))}return a},
vR:function(a){if(a)for(var c=0;c<a.length;c++)a[c]&&this.$g(a[c])},g3:function(){b.la.fj().eh(this)},kM:function(a,c){c.mb[a]!==c.xd||c.cj||(c.cj=!0);c.mb.splice(a,1);c.Zi>=a&&c.Zi--;0===c.mb.length&&(this.Lb===c?this.wf=!0:this.Pu(c))},Pu:function(a){var c=!1;a&&(this.oe[a.target.P]&&(delete this.oe[a.target.P],b.Jc(this.Nj,a),c=!0),a.mb=null,a.target=null);return c},bK:function(a){null==a.mb&&(a.mb=[])},update:function(a){for(var c=this.Nj,d,e=0;e<c.length;e++){d=this.Lb=c[e];if(!d.paused)for(d.Zi=
0;d.Zi<(d.mb?d.mb.length:0);d.Zi++)if(d.xd=d.mb[d.Zi],d.xd){d.cj=!1;d.xd.step(a*(d.xd.un?d.xd.Hc:1));if(d.cj)d.xd=null;else if(d.xd.Ae()){d.xd.stop();var f=d.xd;d.xd=null;this.YE(f)}d.xd=null}this.wf&&0===d.mb.length&&this.Pu(d)&&e--}}});b.oo=function(){function a(){_FPSLabel.f.S(b.e.H.ba);_SPFLabel.f.S(b.e.H.ba);_drawsLabel.f.S(b.e.H.ba)}function c(){_lastSPF=b.la.gE();e++;_accumDt+=b.la.sh;if(_accumDt>b.Ly){_frameRate=e/_accumDt;_accumDt=e=0;if(p.Wx){var a=_frameRate,c=i=g.length-1,d=0;m++;for(n+=a;0<=i;i--)if(a>=g[i]){h[i]++;break}if(m>=f){d=n/f;for(i=c;0<i;i--)if(a=h[i]/f,0.6<=a&&d>=g[i]){i!=k&&(k=i,p.Wx&&p.Wx(d.toFixed(2)));break}n=m=_changeCount=0;for(i=c;0<i;i--)h[i]=0}}_showFPS&&(_SPFLabel.string=_lastSPF.toFixed(3),_FPSLabel.string=
_frameRate.toFixed(1),_drawsLabel.string=(0|b.Rf).toString())}_showFPS&&(_FPSLabel.za(),_SPFLabel.za(),_drawsLabel.za())}var d=_showFPS=!1,e=_frameRate=_lastSPF=_accumDt=0;_afterVisitListener=_FPSLabel=_SPFLabel=_drawsLabel=null;var f=10,g=[0,10,20,30],h=[0,0,0,0],k=3,m=0,n=0,p={Wx:null,gE:function(){return _lastSPF},k_:function(){return _frameRate},d5:function(a){!isNaN(a)&&0<a&&(f=a/b.Ly)},R3:function(){b.Z.addListener(_afterVisitListener,1)},S5:function(){b.Z.removeListener(_afterVisitListener)},
yQ:function(){return _showFPS},AS:function(){d||this.fa();if(b.A&&!_FPSLabel){var a=0,a=b.bi.width,c=b.bi.height,e=b.EG,a=a>c?0|c/320*24:0|a/320*24;_FPSLabel=new b.A("000.0","Arial",a);_SPFLabel=new b.A("0.000","Arial",a);_drawsLabel=new b.A("0000","Arial",a);_drawsLabel.gb(_drawsLabel.width/2+e.x,5*_drawsLabel.height/2+e.y);_SPFLabel.gb(_SPFLabel.width/2+e.x,3*_SPFLabel.height/2+e.y);_FPSLabel.gb(_FPSLabel.width/2+e.x,_FPSLabel.height/2+e.y)}_FPSLabel&&(_showFPS=!0)},$P:function(){_showFPS=!1},fa:function(){d||
(_afterVisitListener=b.Z.$i(b.qa.Py,c),b.Z.$i(b.qa.Uo,a),d=!0)}};return p}();b.d=b.d||{};b.d.Tb=0.015625;b.d.Eb=function(a){return a*a};b.d.sX=function(a,c){return a+b.d.Tb>c&&a-b.d.Tb<c};(function(a){a.d.Ij=function(a,c){void 0===c?(this.x=a.x,this.y=a.y):(this.x=a||0,this.y=c||0)};var c=a.d.Ij.prototype;c.fill=function(a,c){this.x=a;this.y=c};c.length=function(){return Math.sqrt(a.d.Eb(this.x)+a.d.Eb(this.y))};c.ll=function(){return a.d.Eb(this.x)+a.d.Eb(this.y)};c.normalize=function(){var a=1/this.length();this.x*=a;this.y*=a;return this};a.d.Ij.add=function(a,c,f){a.x=c.x+f.x;a.y=c.y+f.y;return a};c.add=function(a){this.x+=a.x;this.y+=a.y;return this};c.Sh=function(a){return this.x*
a.x+this.y*a.y};a.d.Ij.wj=function(a,c,f){a.x=c.x-f.x;a.y=c.y-f.y;return a};c.wj=function(a){this.x-=a.x;this.y-=a.y;return this};c.transform=function(a){var c=this.x,f=this.y;this.x=c*a.l[0]+f*a.l[3]+a.l[6];this.y=c*a.l[1]+f*a.l[4]+a.l[7];return this};a.d.Ij.scale=function(a,c,f){a.x=c.x*f;a.y=c.y*f;return a};c.scale=function(a){this.x*=a;this.y*=a;return this};c.Mr=function(c){return this.x<c.x+a.d.Tb&&this.x>c.x-a.d.Tb&&this.y<c.y+a.d.Tb&&this.y>c.y-a.d.Tb}})(b);(function(a){a.I1=a.d.ga=function(a,c,f){a&&void 0===c?(this.x=a.x,this.y=a.y,this.z=a.z):(this.x=a||0,this.y=c||0,this.z=f||0)};a.d.z6=function(c,e,f){return new a.d.ga(c,e,f)};var c=a.d.ga.prototype;c.fill=function(a,c,f){a&&void 0===c?(this.x=a.x,this.y=a.y,this.z=a.z):(this.x=a,this.y=c,this.z=f);return this};c.length=function(){return Math.sqrt(a.d.Eb(this.x)+a.d.Eb(this.y)+a.d.Eb(this.z))};c.ll=function(){return a.d.Eb(this.x)+a.d.Eb(this.y)+a.d.Eb(this.z)};c.normalize=function(){var a=1/this.length();
this.x*=a;this.y*=a;this.z*=a;return this};c.Qf=function(a){var c=this.x,f=this.y,g=this.z;this.x=f*a.z-g*a.y;this.y=g*a.x-c*a.z;this.z=c*a.y-f*a.x};c.Sh=function(a){return this.x*a.x+this.y*a.y+this.z*a.z};c.add=function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z;return this};c.wj=function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z;return this};c.transform=function(a){var c=this.x,f=this.y,g=this.z;a=a.l;this.x=c*a[0]+f*a[4]+g*a[8]+a[12];this.y=c*a[1]+f*a[5]+g*a[9]+a[13];this.z=c*a[2]+f*a[6]+g*a[10]+a[14];
return this};c.k6=function(a){var c=this.x,f=this.y,g=this.z;a=a.l;this.x=c*a[0]+f*a[4]+g*a[8];this.y=c*a[1]+f*a[5]+g*a[9];this.z=c*a[2]+f*a[6]+g*a[10];return this};c.SF=function(c){var e=new a.d.ym(this.x,this.y,this.z,1);e.transform(c);this.x=e.x/e.J;this.y=e.y/e.J;this.z=e.z/e.J};c.scale=function(a){this.x*=a;this.y*=a;this.z*=a;return this};c.Mr=function(c){var e=a.d.Tb;return this.x<c.x+e&&this.x>c.x-e&&this.y<c.y+e&&this.y>c.y-e&&this.z<c.z+e&&this.z>c.z-e};c.R0=function(c){c=c.l;var e=new a.d.ga(this.x-
c[12],this.y-c[13],this.z-c[14]);this.x=e.x*c[0]+e.y*c[1]+e.z*c[2];this.y=e.x*c[4]+e.y*c[5]+e.z*c[6];this.z=e.x*c[8]+e.y*c[9]+e.z*c[10];return this};c.S0=function(a){var c=this.x,f=this.y,g=this.z;a=a.l;this.x=c*a[0]+f*a[1]+g*a[2];this.y=c*a[4]+f*a[5]+g*a[6];this.z=c*a[8]+f*a[9]+g*a[10];return this};c.uc=function(a){if(!a)return this;this.x=a.x;this.y=a.y;this.z=a.z;return this};a.d.ga.I6=function(a){a.x=a.y=a.z=0;return a};c.$S=function(){var a=new Float32Array(3);a[0]=this.x;a[1]=this.y;a[2]=this.z;
return a}})(b);(function(a){a.d.ym=function(a,c,f,g){a&&void 0===c?(this.x=a.x,this.y=a.y,this.z=a.z,this.J=a.J):(this.x=a||0,this.y=c||0,this.z=f||0,this.J=g||0)};a.J1=a.d.ym;var c=a.d.ym.prototype;c.fill=function(a,c,f,g){a&&void 0===c?(this.x=a.x,this.y=a.y,this.z=a.z,this.J=a.J):(this.x=a,this.y=c,this.z=f,this.J=g)};c.add=function(a){if(!a)return this;this.x+=a.x;this.y+=a.y;this.z+=a.z;this.J+=a.J;return this};c.Sh=function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.J*a.J};c.length=function(){return Math.sqrt(a.d.Eb(this.x)+
a.d.Eb(this.y)+a.d.Eb(this.z)+a.d.Eb(this.J))};c.ll=function(){return a.d.Eb(this.x)+a.d.Eb(this.y)+a.d.Eb(this.z)+a.d.Eb(this.J)};c.LQ=function(){return this};c.normalize=function(){var a=1/this.length();this.x*=a;this.y*=a;this.z*=a;this.J*=a;return this};c.scale=function(a){this.normalize();this.x*=a;this.y*=a;this.z*=a;this.J*=a;return this};c.wj=function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z;this.J-=a.J};c.transform=function(a){var c=this.x,f=this.y,g=this.z,h=this.J;a=a.l;this.x=c*a[0]+f*a[4]+
g*a[8]+h*a[12];this.y=c*a[1]+f*a[5]+g*a[9]+h*a[13];this.z=c*a[2]+f*a[6]+g*a[10]+h*a[14];this.J=c*a[3]+f*a[7]+g*a[11]+h*a[15];return this};a.d.ym.j6=function(c,e){for(var f=[],g=0;g<c.length;g++){var h=new a.d.ym(c[g]);h.transform(e);f.push(h)}return f};c.Mr=function(c){var e=a.d.Tb;return this.x<c.x+e&&this.x>c.x-e&&this.y<c.y+e&&this.y>c.y-e&&this.z<c.z+e&&this.z>c.z-e&&this.J<c.J+e&&this.J>c.J-e};c.uc=function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.J=a.J;return this};c.$S=function(){var a=new Float32Array(4);
a[0]=this.x;a[1]=this.y;a[2]=this.z;a[3]=this.J;return a}})(b);(function(a){a.d.cI=function(c,d){this.start=c||new a.d.Ij;this.dir=d||new a.d.Ij};a.d.cI.prototype.fill=function(a,d,e,f){this.start.x=a;this.start.y=d;this.dir.x=e;this.dir.y=f}})(b);window.OJ=window.OJ||window.xy;window.ZG=window.ZG||window.xy;
(function(a){a.d.Ib=function(a){this.l=a&&a.l?new Float32Array(a.l):new Float32Array(9)};a.w1=a.d.Ib;var c=a.d.Ib.prototype;c.fill=function(a){var c=this.l;a=a.l;c[0]=a[0];c[1]=a[1];c[2]=a[2];c[3]=a[3];c[4]=a[4];c[5]=a[5];c[6]=a[6];c[7]=a[7];c[8]=a[8];return this};c.jN=function(){var a=this.l,c=a[0],d=a[1],h=a[2],k=a[3],m=a[4],n=a[5],p=a[6],r=a[7],t=a[8];a[0]=m*t-n*r;a[1]=h*r-d*t;a[2]=d*n-h*m;a[3]=n*p-k*t;a[4]=c*t-h*p;a[5]=h*k-c*n;a[6]=k*r-m*p;a[8]=c*m-d*k};c.dc=function(){var a=this.l;a[1]=a[2]=
a[3]=a[5]=a[6]=a[7]=0;a[0]=a[4]=a[8]=1;return this};var d=new a.d.Ib;c.inverse=function(a){if(0===a)return this;d.uc(this);a=1/a;this.jN();this.PQ(a);return this};c.CE=function(){var a=this.l;return 1===a[0]&&0===a[1]&&0===a[2]&&0===a[3]&&1===a[4]&&0===a[5]&&0===a[6]&&0===a[7]&&1===a[8]};c.dT=function(){var a=this.l,c=a[1],d=a[2],h=a[5],k=a[6],m=a[7];a[1]=a[3];a[2]=k;a[3]=c;a[5]=m;a[6]=d;a[7]=h;return this};c.fY=function(){var a=this.l,c=a[0]*a[4]*a[8]+a[1]*a[5]*a[6]+a[2]*a[3]*a[7];return c-=a[2]*
a[4]*a[6]+a[0]*a[5]*a[7]+a[1]*a[3]*a[8]};c.multiply=function(a){var c=this.l,d=a.l;a=c[0];var h=c[1],k=c[2],m=c[3],n=c[4],p=c[5],r=c[6],t=c[7],s=c[8],u=d[0],v=d[1],x=d[2],C=d[3],A=d[4],B=d[5],z=d[6],y=d[7],d=d[8];c[0]=a*u+m*v+r*x;c[1]=h*u+n*v+t*x;c[2]=k*u+p*v+s*x;c[3]=k*u+p*v+s*x;c[4]=h*C+n*A+t*B;c[5]=k*C+p*A+s*B;c[6]=a*z+m*y+r*d;c[7]=h*z+n*y+t*d;c[8]=k*z+p*y+s*d;return this};c.PQ=function(a){var c=this.l;c[0]*=a;c[1]*=a;c[2]*=a;c[3]*=a;c[4]*=a;c[5]*=a;c[6]*=a;c[7]*=a;c[8]*=a};a.d.Ib.U3=function(c,
d){var g=Math.cos(d),h=Math.sin(d),k=new a.d.Ib,m=k.l;m[0]=g+c.x*c.x*(1-g);m[1]=c.z*h+c.y*c.x*(1-g);m[2]=-c.y*h+c.z*c.x*(1-g);m[3]=-c.z*h+c.x*c.y*(1-g);m[4]=g+c.y*c.y*(1-g);m[5]=c.x*h+c.z*c.y*(1-g);m[6]=c.y*h+c.x*c.z*(1-g);m[7]=-c.x*h+c.y*c.z*(1-g);m[8]=g+c.z*c.z*(1-g);return k};c.uc=function(c){if(this===c)return a.log("cc.math.Matrix3.assign(): current matrix equals matIn"),this;var d=this.l;c=c.l;d[0]=c[0];d[1]=c[1];d[2]=c[2];d[3]=c[3];d[4]=c[4];d[5]=c[5];d[6]=c[6];d[7]=c[7];d[8]=c[8];return this};
c.Mr=function(c){if(this===c)return!0;var d=a.d.Tb,g=this.l;c=c.l;for(var h=0;9>h;++h)if(!(g[h]+d>c[h]&&g[h]-d<c[h]))return!1;return!0};a.d.Ib.cO=function(c){var d=new a.d.Ib,g=d.l;g[0]=1;g[1]=0;g[2]=0;g[3]=0;g[4]=Math.cos(c);g[5]=Math.sin(c);g[6]=0;g[7]=-Math.sin(c);g[8]=Math.cos(c);return d};a.d.Ib.dO=function(c){var d=new a.d.Ib,g=d.l;g[0]=Math.cos(c);g[1]=0;g[2]=-Math.sin(c);g[3]=0;g[4]=1;g[5]=0;g[6]=Math.sin(c);g[7]=0;g[8]=Math.cos(c);return d};a.d.Ib.eO=function(c){var d=new a.d.Ib,g=d.l;g[0]=
Math.cos(c);g[1]=-Math.sin(c);g[2]=0;g[3]=Math.sin(c);g[4]=Math.cos(c);g[5]=0;g[6]=0;g[7]=0;g[8]=1;return d};a.d.Ib.XX=function(c){var d=new a.d.Ib,g=d.l;g[0]=Math.cos(c);g[1]=Math.sin(c);g[2]=0;g[3]=-Math.sin(c);g[4]=Math.cos(c);g[5]=0;g[6]=0;g[7]=0;g[8]=1;return d};a.d.Ib.JD=function(c,d){var g=new a.d.Ib;g.dc();g.l[0]=c;g.l[4]=d;return g};a.d.Ib.Vk=function(c,d){var g=new a.d.Ib;g.dc();g.l[6]=c;g.l[7]=d;return g};a.d.Ib.bO=function(c){if(!c)return null;var d=new a.d.Ib,g=d.l;g[0]=1-2*(c.y*c.y+
c.z*c.z);g[1]=2*(c.x*c.y-c.J*c.z);g[2]=2*(c.x*c.z+c.J*c.y);g[3]=2*(c.x*c.y+c.J*c.z);g[4]=1-2*(c.x*c.x+c.z*c.z);g[5]=2*(c.y*c.z-c.J*c.x);g[6]=2*(c.x*c.z-c.J*c.y);g[7]=2*(c.y*c.z+c.J*c.x);g[8]=1-2*(c.x*c.x+c.y*c.y);return d};c.W3=function(){return a.d.Ge.jF(this).ry()}})(b);(function(a){a.d.Q=function(a){this.l=a&&a.l?new Float32Array(a.l):new Float32Array(16)};a.x1=a.d.Q;var c=a.d.Q.prototype;c.fill=function(a){for(var c=this.l,d=0;16>d;d++)c[d]=a[d];return this};a.z1=function(a){var c=a.l;c[1]=c[2]=c[3]=c[4]=c[6]=c[7]=c[8]=c[9]=c[11]=c[12]=c[13]=c[14]=0;c[0]=c[5]=c[10]=c[15]=1;return a};c.dc=function(){var a=this.l;a[1]=a[2]=a[3]=a[4]=a[6]=a[7]=a[8]=a[9]=a[11]=a[12]=a[13]=a[14]=0;a[0]=a[5]=a[10]=a[15]=1;return this};c.get=function(a,c){return this.l[a+4*c]};c.set=
function(a,c,d){this.l[a+4*c]=d};c.Fl=function(a,c,d,e){var m=this.l,n=m[a+4*c];m[a+4*c]=m[d+4*e];m[d+4*e]=n};a.d.Q.eB=function(a,c){var d,e=0,m=0,n,p,r,t,s=[0,0,0,0],u=[0,0,0,0],v=[0,0,0,0];for(d=0;4>d;d++){for(n=t=0;4>n;n++)if(1!==v[n])for(p=0;4>p;p++)0===v[p]&&(r=Math.abs(a.get(n,p)),r>=t&&(t=r,m=n,e=p));++v[e];if(m!==e){for(n=0;4>n;n++)a.Fl(m,n,e,n);for(n=0;4>n;n++)c.Fl(m,n,e,n)}u[d]=m;s[d]=e;if(0===a.get(e,e))return!1;p=1/a.get(e,e);a.set(e,e,1);for(n=0;4>n;n++)a.set(e,n,a.get(e,n)*p);for(n=
0;4>n;n++)c.set(e,n,c.get(e,n)*p);for(p=0;4>p;p++)if(p!==e){r=a.get(p,e);a.set(p,e,0);for(n=0;4>n;n++)a.set(p,n,a.get(p,n)-a.get(e,n)*r);for(n=0;4>n;n++)c.set(p,n,a.get(p,n)-c.get(e,n)*r)}}for(n=3;0<=n;n--)if(u[n]!==s[n])for(p=0;4>p;p++)a.Fl(p,u[n],p,s[n]);return!0};var d=(new a.d.Q).dc();a.A1=function(c,e){var h=new a.d.Q(e),k=new a.d.Q(d);if(!1===a.d.Q.eB(h,k))return null;c.uc(h);return c};c.inverse=function(){var c=new a.d.Q(this),e=new a.d.Q(d);return!1===a.d.Q.eB(c,e)?null:c};c.CE=function(){var a=
this.l;return 1===a[0]&&0===a[1]&&0===a[2]&&0===a[3]&&0===a[4]&&1===a[5]&&0===a[6]&&0===a[7]&&0===a[8]&&0===a[9]&&1===a[10]&&0===a[11]&&0===a[12]&&0===a[13]&&0===a[14]&&1===a[15]};c.dT=function(){var a=this.l,c=a[1],d=a[2],e=a[3],m=a[6],n=a[7],p=a[8],r=a[9],t=a[11],s=a[12],u=a[13],v=a[14];a[1]=a[4];a[2]=p;a[3]=s;a[4]=c;a[6]=r;a[7]=u;a[8]=d;a[9]=m;a[11]=v;a[12]=e;a[13]=n;a[14]=t;return this};a.ks=function(a,c,d){a=a.l;var e=c.l,m=d.l;d=e[0];c=e[1];var n=e[2],p=e[3],r=e[4],t=e[5],s=e[6],u=e[7],v=e[8],
x=e[9],C=e[10],A=e[11],B=e[12],z=e[13],y=e[14],e=e[15],F=m[0],J=m[1],L=m[2],M=m[3],O=m[4],P=m[5],Q=m[6],R=m[7],S=m[8],T=m[9],U=m[10],V=m[11],W=m[12],X=m[13],Y=m[14],m=m[15];a[0]=F*d+J*r+L*v+M*B;a[1]=F*c+J*t+L*x+M*z;a[2]=F*n+J*s+L*C+M*y;a[3]=F*p+J*u+L*A+M*e;a[4]=O*d+P*r+Q*v+R*B;a[5]=O*c+P*t+Q*x+R*z;a[6]=O*n+P*s+Q*C+R*y;a[7]=O*p+P*u+Q*A+R*e;a[8]=S*d+T*r+U*v+V*B;a[9]=S*c+T*t+U*x+V*z;a[10]=S*n+T*s+U*C+V*y;a[11]=S*p+T*u+U*A+V*e;a[12]=W*d+X*r+Y*v+m*B;a[13]=W*c+X*t+Y*x+m*z;a[14]=W*n+X*s+Y*C+m*y;a[15]=W*
p+X*u+Y*A+m*e};c.multiply=function(a){var c=this.l,d=a.l;a=c[0];var e=c[1],m=c[2],n=c[3],p=c[4],r=c[5],t=c[6],s=c[7],u=c[8],v=c[9],x=c[10],C=c[11],A=c[12],B=c[13],z=c[14],y=c[15],F=d[0],J=d[1],L=d[2],M=d[3],O=d[4],P=d[5],Q=d[6],R=d[7],S=d[8],T=d[9],U=d[10],V=d[11],W=d[12],X=d[13],Y=d[14],d=d[15];c[0]=F*a+J*p+L*u+M*A;c[1]=F*e+J*r+L*v+M*B;c[2]=F*m+J*t+L*x+M*z;c[3]=F*n+J*s+L*C+M*y;c[4]=O*a+P*p+Q*u+R*A;c[5]=O*e+P*r+Q*v+R*B;c[6]=O*m+P*t+Q*x+R*z;c[7]=O*n+P*s+Q*C+R*y;c[8]=S*a+T*p+U*u+V*A;c[9]=S*e+T*r+U*
v+V*B;c[10]=S*m+T*t+U*x+V*z;c[11]=S*n+T*s+U*C+V*y;c[12]=W*a+X*p+Y*u+d*A;c[13]=W*e+X*r+Y*v+d*B;c[14]=W*m+X*t+Y*x+d*z;c[15]=W*n+X*s+Y*C+d*y;return this};a.rP=function(){var a=b.hf.top.l,c=b.gf.top.l,d=new Float32Array(16);d[0]=a[0]*c[0]+a[4]*c[1]+a[8]*c[2]+a[12]*c[3];d[1]=a[1]*c[0]+a[5]*c[1]+a[9]*c[2]+a[13]*c[3];d[2]=a[2]*c[0]+a[6]*c[1]+a[10]*c[2]+a[14]*c[3];d[3]=a[3]*c[0]+a[7]*c[1]+a[11]*c[2]+a[15]*c[3];d[4]=a[0]*c[4]+a[4]*c[5]+a[8]*c[6]+a[12]*c[7];d[5]=a[1]*c[4]+a[5]*c[5]+a[9]*c[6]+a[13]*c[7];d[6]=
a[2]*c[4]+a[6]*c[5]+a[10]*c[6]+a[14]*c[7];d[7]=a[3]*c[4]+a[7]*c[5]+a[11]*c[6]+a[15]*c[7];d[8]=a[0]*c[8]+a[4]*c[9]+a[8]*c[10]+a[12]*c[11];d[9]=a[1]*c[8]+a[5]*c[9]+a[9]*c[10]+a[13]*c[11];d[10]=a[2]*c[8]+a[6]*c[9]+a[10]*c[10]+a[14]*c[11];d[11]=a[3]*c[8]+a[7]*c[9]+a[11]*c[10]+a[15]*c[11];d[12]=a[0]*c[12]+a[4]*c[13]+a[8]*c[14]+a[12]*c[15];d[13]=a[1]*c[12]+a[5]*c[13]+a[9]*c[14]+a[13]*c[15];d[14]=a[2]*c[12]+a[6]*c[13]+a[10]*c[14]+a[14]*c[15];d[15]=a[3]*c[12]+a[7]*c[13]+a[11]*c[14]+a[15]*c[15];return d};
a.y1=function(c,d){if(c===d)return a.log("cc.kmMat4Assign(): pOut equals pIn"),c;var e=c.l,k=d.l;e[0]=k[0];e[1]=k[1];e[2]=k[2];e[3]=k[3];e[4]=k[4];e[5]=k[5];e[6]=k[6];e[7]=k[7];e[8]=k[8];e[9]=k[9];e[10]=k[10];e[11]=k[11];e[12]=k[12];e[13]=k[13];e[14]=k[14];e[15]=k[15];return c};c.uc=function(c){if(this===c)return a.log("cc.mat.Matrix4.assignFrom(): mat4 equals current matrix"),this;var d=this.l;c=c.l;d[0]=c[0];d[1]=c[1];d[2]=c[2];d[3]=c[3];d[4]=c[4];d[5]=c[5];d[6]=c[6];d[7]=c[7];d[8]=c[8];d[9]=c[9];
d[10]=c[10];d[11]=c[11];d[12]=c[12];d[13]=c[13];d[14]=c[14];d[15]=c[15];return this};c.Mr=function(c){if(this===c)return a.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."),!0;var d=this.l;c=c.l;for(var e=a.d.Tb,k=0;16>k;k++)if(!(d[k]+e>c[k]&&d[k]-e<c[k]))return!1;return!0};a.d.Q.cO=function(c,d){d=d||new a.d.Q;var e=d.l;e[0]=1;e[3]=e[2]=e[1]=0;e[4]=0;e[5]=Math.cos(c);e[6]=Math.sin(c);e[7]=0;e[8]=0;e[9]=-Math.sin(c);e[10]=Math.cos(c);e[11]=0;e[14]=e[13]=e[12]=0;e[15]=1;return d};a.d.Q.dO=
function(c,d){d=d||new a.d.Q;var e=d.l;e[0]=Math.cos(c);e[1]=0;e[2]=-Math.sin(c);e[3]=0;e[7]=e[6]=e[4]=0;e[5]=1;e[8]=Math.sin(c);e[9]=0;e[10]=Math.cos(c);e[11]=0;e[14]=e[13]=e[12]=0;e[15]=1;return d};a.d.Q.eO=function(c,d){d=d||new a.d.Q;var e=d.l;e[0]=Math.cos(c);e[1]=Math.sin(c);e[3]=e[2]=0;e[4]=-Math.sin(c);e[5]=Math.cos(c);e[7]=e[6]=0;e[11]=e[9]=e[8]=0;e[10]=1;e[14]=e[13]=e[12]=0;e[15]=1;return d};a.d.Q.WX=function(c,d,e,k){k=k||new a.d.Q;var m=Math.cos(c);c=Math.sin(c);var n=Math.cos(d);d=Math.sin(d);
var p=Math.cos(e);e=Math.sin(e);var r=c*d,t=m*d,s=k.l;s[0]=n*p;s[4]=n*e;s[8]=-d;s[1]=r*p-m*e;s[5]=r*e+m*p;s[9]=c*n;s[2]=t*p+c*e;s[6]=t*e-c*p;s[10]=m*n;s[3]=s[7]=s[11]=0;s[15]=1;return k};a.d.Q.bO=function(c,d){d=d||new a.d.Q;var e=d.l;e[0]=1-2*(c.y*c.y+c.z*c.z);e[1]=2*(c.x*c.y+c.z*c.J);e[2]=2*(c.x*c.z-c.y*c.J);e[3]=0;e[4]=2*(c.x*c.y-c.z*c.J);e[5]=1-2*(c.x*c.x+c.z*c.z);e[6]=2*(c.z*c.y+c.x*c.J);e[7]=0;e[8]=2*(c.x*c.z+c.y*c.J);e[9]=2*(c.y*c.z-c.x*c.J);e[10]=1-2*(c.x*c.x+c.y*c.y);e[11]=0;e[14]=e[13]=
e[12]=0;e[15]=1;return d};a.d.Q.YX=function(c,d,e){e=e||new a.d.Q;var k=e.l;c=c.l;k[0]=c[0];k[1]=c[1];k[2]=c[2];k[3]=0;k[4]=c[3];k[5]=c[4];k[6]=c[5];k[7]=0;k[8]=c[6];k[9]=c[7];k[10]=c[8];k[11]=0;k[12]=d.x;k[13]=d.y;k[14]=d.z;k[15]=1;return e};a.d.Q.JD=function(c,d,e,k){k=k||new a.d.Q;var m=k.l;m[0]=c;m[5]=d;m[10]=e;m[15]=1;m[1]=m[2]=m[3]=m[4]=m[6]=m[7]=m[8]=m[9]=m[11]=m[12]=m[13]=m[14]=0;return k};a.F1=function(a,c,d,e){a.l[0]=a.l[5]=a.l[10]=a.l[15]=1;a.l[1]=a.l[2]=a.l[3]=a.l[4]=a.l[6]=a.l[7]=a.l[8]=
a.l[9]=a.l[11]=0;a.l[12]=c;a.l[13]=d;a.l[14]=e;return a};a.d.Q.Vk=function(c,d,e,k){k=k||new a.d.Q;k.dc();k.l[12]=c;k.l[13]=d;k.l[14]=e;return k};c.m0=function(){var c=this.l;return(new a.d.ga(c[4],c[5],c[6])).normalize()};c.R_=function(){var c=this.l;return(new a.d.ga(c[0],c[1],c[2])).normalize()};c.i_=function(){var c=this.l;return(new a.d.ga(c[8],c[9],c[10])).normalize()};a.D1=function(c,d,e,k,m){var n=a.ye(d/2);d=m-k;var p=Math.sin(n);if(0===d||0===p||0===e)return null;n=Math.cos(n)/p;c.dc();
c.l[0]=n/e;c.l[5]=n;c.l[10]=-(m+k)/d;c.l[11]=-1;c.l[14]=-2*k*m/d;c.l[15]=0;return c};a.d.Q.gO=function(c,d){var e=a.ye(30),k=d-0.1,m=Math.sin(e);if(0===k||0===m||0===c)return null;var e=Math.cos(e)/m,m=new a.d.Q,n=m.l;m.dc();n[0]=e/c;n[5]=e;n[10]=-(d+0.1)/k;n[11]=-1;n[14]=-0.2*d/k;n[15]=0;return m};a.C1=function(a,c,d,e,m,n,p){a.dc();a.l[0]=2/(d-c);a.l[5]=2/(m-e);a.l[10]=-2/(p-n);a.l[12]=-((d+c)/(d-c));a.l[13]=-((m+e)/(m-e));a.l[14]=-((p+n)/(p-n));return a};a.d.Q.fO=function(c,d,e,k){var m=new a.d.Q,
n=m.l;m.dc();n[0]=2/(d-c);n[5]=2/(k-e);n[10]=-2/2048;n[12]=-((d+c)/(d-c));n[13]=-((k+e)/(k-e));n[14]=-0;return m};a.B1=function(c,d,e,k){e=new a.d.ga(e);var m=new a.d.ga(k);e.wj(d);e.normalize();m.normalize();k=new a.d.ga(e);k.Qf(m);k.normalize();m=new a.d.ga(k);m.Qf(e);k.normalize();c.dc();c.l[0]=k.x;c.l[4]=k.y;c.l[8]=k.z;c.l[1]=m.x;c.l[5]=m.y;c.l[9]=m.z;c.l[2]=-e.x;c.l[6]=-e.y;c.l[10]=-e.z;d=a.d.Q.Vk(-d.x,-d.y,-d.z);c.multiply(d);return c};var e=new a.d.Q;c.Ux=function(c,d,h){d=new a.d.ga(d);var k=
new a.d.ga(h);h=this.l;d.wj(c);d.normalize();k.normalize();var m=new a.d.ga(d);m.Qf(k);m.normalize();k=new a.d.ga(m);k.Qf(d);m.normalize();this.dc();h[0]=m.x;h[4]=m.y;h[8]=m.z;h[1]=k.x;h[5]=k.y;h[9]=k.z;h[2]=-d.x;h[6]=-d.y;h[10]=-d.z;e=a.d.Q.Vk(-c.x,-c.y,-c.z,e);this.multiply(e)};a.E1=function(c,d,e){var k=Math.cos(e);e=Math.sin(e);d=new a.d.ga(d);d.normalize();c.l[0]=k+d.x*d.x*(1-k);c.l[1]=d.z*e+d.y*d.x*(1-k);c.l[2]=-d.y*e+d.z*d.x*(1-k);c.l[3]=0;c.l[4]=-d.z*e+d.x*d.y*(1-k);c.l[5]=k+d.y*d.y*(1-k);
c.l[6]=d.x*e+d.z*d.y*(1-k);c.l[7]=0;c.l[8]=d.y*e+d.x*d.z*(1-k);c.l[9]=-d.x*e+d.y*d.z*(1-k);c.l[10]=k+d.z*d.z*(1-k);c.l[11]=0;c.l[12]=0;c.l[13]=0;c.l[14]=0;c.l[15]=1;return c};a.d.Q.aO=function(c,d,e){e=e||new a.d.Q;var k=this.l,m=Math.cos(d);d=Math.sin(d);c=new a.d.ga(c);c.normalize();k[0]=m+c.x*c.x*(1-m);k[1]=c.z*d+c.y*c.x*(1-m);k[2]=-c.y*d+c.z*c.x*(1-m);k[3]=0;k[4]=-c.z*d+c.x*c.y*(1-m);k[5]=m+c.y*c.y*(1-m);k[6]=c.x*d+c.z*c.y*(1-m);k[7]=0;k[8]=c.y*d+c.x*c.z*(1-m);k[9]=-c.x*d+c.y*c.z*(1-m);k[10]=
m+c.z*c.z*(1-m);k[11]=0;k[12]=k[13]=k[14]=0;k[15]=1;return e};c.MO=function(){var c=new a.d.Ib,d=this.l,e=c.l;e[0]=d[0];e[1]=d[1];e[2]=d[2];e[3]=d[4];e[4]=d[5];e[5]=d[6];e[6]=d[8];e[7]=d[9];e[8]=d[10];return c};c.hZ=function(c){var d=new a.d.ab,e=this.l;switch(c){case a.d.ab.bI:d.a=e[3]-e[0];d.b=e[7]-e[4];d.c=e[11]-e[8];d.I=e[15]-e[12];break;case a.d.ab.kH:d.a=e[3]+e[0];d.b=e[7]+e[4];d.c=e[11]+e[8];d.I=e[15]+e[12];break;case a.d.ab.fG:d.a=e[3]+e[1];d.b=e[7]+e[5];d.c=e[11]+e[9];d.I=e[15]+e[13];break;
case a.d.ab.WI:d.a=e[3]-e[1];d.b=e[7]-e[5];d.c=e[11]-e[9];d.I=e[15]-e[13];break;case a.d.ab.VG:d.a=e[3]-e[2];d.b=e[7]-e[6];d.c=e[11]-e[10];d.I=e[15]-e[14];break;case a.d.ab.rH:d.a=e[3]+e[2];d.b=e[7]+e[6];d.c=e[11]+e[10];d.I=e[15]+e[14];break;default:a.log("cc.math.Matrix4.extractPlane: Invalid plane index")}c=Math.sqrt(d.a*d.a+d.b*d.b+d.c*d.c);d.a/=c;d.b/=c;d.c/=c;d.I/=c;return d};c.ry=function(){var c=this.MO();return a.d.Ge.jF(c).ry()}})(b);(function(a){a.d.ab=function(a,c,f,g){a&&void 0===c?(this.a=a.a,this.b=a.b,this.c=a.c,this.I=a.I):(this.a=a||0,this.b=c||0,this.c=f||0,this.I=g||0)};a.G1=a.d.ab;var c=a.d.ab.prototype;a.d.ab.kH=0;a.d.ab.bI=1;a.d.ab.fG=2;a.d.ab.WI=3;a.d.ab.rH=4;a.d.ab.VG=5;a.d.ab.SH=0;a.d.ab.RH=1;a.d.ab.TH=2;c.Sh=function(a){return this.a*a.x+this.b*a.y+this.c*a.z+this.I*a.J};c.kY=function(a){return this.a*a.x+this.b*a.y+this.c*a.z+this.I};c.lY=function(a){return this.a*a.x+this.b*a.y+this.c*a.z};a.d.ab.zZ=function(c,
e){return new a.d.ab(e.x,e.y,e.z,-e.Sh(c))};a.d.ab.AZ=function(c,e,f){e=new a.d.ga(e);f=new a.d.ga(f);var g=new a.d.ab;e.wj(c);f.wj(c);e.Qf(f);e.normalize();g.a=e.x;g.b=e.y;g.c=e.z;g.I=e.scale(-1).Sh(c);return g};c.normalize=function(){var c=new a.d.ga(this.a,this.b,this.c),e=1/c.length();c.normalize();this.a=c.x;this.b=c.y;this.c=c.z;this.I*=e;return this};c.NX=function(c){c=this.a*c.x+this.b*c.y+this.c*c.z+this.I;return 0.001<c?a.d.ab.SH:-0.001>c?a.d.ab.RH:a.d.ab.TH}})(b);(function(a){a.d.Ge=function(a,c,f,g){a&&void 0===c?(this.x=a.x,this.y=a.y,this.z=a.z,this.J=a.J):(this.x=a||0,this.y=c||0,this.z=f||0,this.J=g||0)};a.H1=a.d.Ge;var c=a.d.Ge.prototype;c.YN=function(a){this.x=-a.x;this.y=-a.y;this.z=-a.z;this.J=a.J;return this};c.Sh=function(a){return this.J*a.J+this.x*a.x+this.y*a.y+this.z*a.z};c.gZ=function(){return this};c.dc=function(){this.z=this.y=this.x=0;this.J=1;return this};c.inverse=function(){var c=this.length();if(Math.abs(c)>a.d.Tb)return this.J=this.z=
this.y=this.x=0,this;this.YN(this).scale(1/c);return this};c.CE=function(){return 0===this.x&&0===this.y&&0===this.z&&1===this.J};c.length=function(){return Math.sqrt(this.ll())};c.ll=function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.J*this.J};c.multiply=function(a){var c=this.x,f=this.y,g=this.z,h=this.J;this.J=h*a.J-c*a.x-f*a.y-g*a.z;this.x=h*a.x+c*a.J+f*a.z-g*a.y;this.y=h*a.y+f*a.J+g*a.x-c*a.z;this.z=h*a.z+g*a.J+c*a.y-f*a.x;return this};c.normalize=function(){var c=this.length();
if(Math.abs(c)<=a.d.Tb)throw Error("current quaternion is an invalid value");this.scale(1/c);return this};c.iF=function(a){var c=0.5*Math.PI,f=Math.sin(c);this.J=Math.cos(c);this.x=a.x*f;this.y=a.y*f;this.z=a.z*f};a.d.Ge.jF=function(c){if(!c)return null;var e,f,g;e=[];f=c.l;c=0;e[0]=f[0];e[1]=f[3];e[2]=f[6];e[4]=f[1];e[5]=f[4];e[6]=f[7];e[8]=f[2];e[9]=f[5];e[10]=f[8];e[15]=1;var h=e[0];c=h[0]+h[5]+h[10]+1;c>a.d.Tb?(c=2*Math.sqrt(c),e=(h[9]-h[6])/c,f=(h[2]-h[8])/c,g=(h[4]-h[1])/c,c*=0.25):h[0]>h[5]&&
h[0]>h[10]?(c=2*Math.sqrt(1+h[0]-h[5]-h[10]),e=0.25*c,f=(h[4]+h[1])/c,g=(h[2]+h[8])/c,c=(h[9]-h[6])/c):h[5]>h[10]?(c=2*Math.sqrt(1+h[5]-h[0]-h[10]),e=(h[4]+h[1])/c,f=0.25*c,g=(h[9]+h[6])/c,c=(h[2]-h[8])/c):(c=2*Math.sqrt(1+h[10]-h[0]-h[5]),e=(h[2]+h[8])/c,f=(h[9]+h[6])/c,g=0.25*c,c=(h[4]-h[1])/c);return new a.d.Ge(e,f,g,c)};a.d.Ge.X3=function(c,e,f){var g,h,k,m,n;g=a.ye(e)/2;h=a.ye(c)/2;k=a.ye(f)/2;f=Math.cos(g);c=Math.cos(h);e=Math.cos(k);g=Math.sin(g);h=Math.sin(h);k=Math.sin(k);m=c*e;n=h*k;var p=
new a.d.Ge;p.J=f*m+g*n;p.x=g*m-f*n;p.y=f*h*e+g*c*k;p.z=f*c*k-g*h*e;p.normalize();return p};c.O5=function(c,e){if(this.x===c.x&&this.y===c.y&&this.z===c.z&&this.J===c.J)return this;var f=this.Sh(c),g=Math.acos(f),f=Math.sqrt(1-a.d.Eb(f)),h=Math.sin(e*g)/f,k=new a.d.Ge(c);this.scale(Math.sin((1-e)*g)/f);k.scale(h);this.add(k);return this};c.ry=function(){var c,e,f=new a.d.ga;c=Math.acos(this.J);e=Math.sqrt(a.d.Eb(this.x)+a.d.Eb(this.y)+a.d.Eb(this.z));e>-a.d.Tb&&e<a.d.Tb||e<2*Math.PI+a.d.Tb&&e>2*Math.PI-
a.d.Tb?(c=0,f.x=0,f.y=0,f.z=1):(c*=2,f.x=this.x/e,f.y=this.y/e,f.z=this.z/e,f.normalize());return{axis:f,uX:c}};c.scale=function(a){this.x*=a;this.y*=a;this.z*=a;this.J*=a;return this};c.uc=function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.J=a.J;return this};c.add=function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z;this.J+=a.J;return this};a.d.Ge.V3=function(c,e,f){var g=new a.d.ga(c),h=new a.d.ga(e);g.normalize();h.normalize();var k=g.Sh(h);e=new a.d.Ge;if(1<=k)return e.dc(),e;-0.999999>k?Math.abs(f.ll())<
a.d.Tb?e.iF(f):(g=new a.d.ga(1,0,0),g.Qf(c),Math.abs(g.ll())<a.d.Tb&&(g.fill(0,1,0),g.Qf(c)),g.normalize(),e.iF(g)):(c=Math.sqrt(2*(1+k)),f=1/c,g.Qf(h),e.x=g.x*f,e.y=g.y*f,e.z=g.z*f,e.J=0.5*c,e.normalize());return e};c.Z1=function(c){var e=this.x,f=this.y,g=this.z,h=new a.d.ga(c),k=new a.d.ga(e,f,g),e=new a.d.ga(e,f,g);k.Qf(c);e.Qf(k);k.scale(2*q.J);e.scale(2);h.add(k);h.add(e);return h}})(b);b.d.Mo=function(a,c){this.min=a||new b.d.ga;this.max=c||new b.d.ga};b.d.Mo.prototype.ZN=function(a){return a.x>=this.min.x&&a.x<=this.max.x&&a.y>=this.min.y&&a.y<=this.max.y&&a.z>=this.min.z&&a.z<=this.max.z};b.d.Mo.ZN=function(a,c){return a.x>=c.min.x&&a.x<=c.max.x&&a.y>=c.min.y&&a.y<=c.max.y&&a.z>=c.min.z&&a.z<=c.max.z};b.d.Mo.prototype.uc=function(a){this.min.uc(a.min);this.max.uc(a.max)};b.d.Mo.assign=function(a,c){a.min.uc(c.min);a.max.uc(c.max);return a};(function(a){a.d.jm=function(a,c){this.top=a;this.stack=c||[]};a.K1=a.d.jm;var c=a.d.jm.prototype;c.Vn=function(){this.stack.length=0;this.top=null};a.M1=function(c,e){c.stack.push(c.top);c.top=new a.d.Q(e)};a.L1=function(a){a.top=a.stack.pop()};a.N1=function(a){a.stack=null;a.top=null};c.push=function(c){c=c||this.top;this.stack.push(this.top);this.top=new a.d.Q(c)};c.pop=function(){this.top=this.stack.pop()};c.Wd=function(){this.LB=this.top=this.stack=null};c.kW=function(c){var e=this.LB;if(0===
e.length)return new a.d.Q(c);e=e.pop();e.uc(c);return e};c.AW=function(a){this.LB.push(a)}})(b);(function(a){a.ji=5888;a.ki=5889;a.Uy=5890;a.gf=new a.d.jm;a.hf=new a.d.jm;a.Hl=new a.d.jm;a.Na=null;a.KQ=function(){var c=new a.d.Q;a.gf.Vn();a.hf.Vn();a.Hl.Vn();a.Na=a.gf;a.lQ=!0;c.dc();a.gf.push(c);a.hf.push(c);a.Hl.push(c)};a.KQ();a.HQ=function(){a.gf.Wd();a.gf=null;a.hf.Wd();a.hf=null;a.Hl.Wd();a.Hl=null;a.lQ=!1;a.Na=null};a.JQ=function(){a.Na.push(a.Na.top)};a.s1=function(c){a.Na.stack.push(a.Na.top);c.uc(a.Na.top);a.Na.top=c};a.IQ=function(){a.Na.top=a.Na.stack.pop()};a.Yn=function(c){switch(c){case a.ji:a.Na=
a.gf;break;case a.ki:a.Na=a.hf;break;case a.Uy:a.Na=a.Hl;break;default:throw Error("Invalid matrix mode specified");}};a.is=function(){a.Na.top.dc()};a.r1=function(c){a.Na.top.uc(c)};a.js=function(c){a.Na.top.multiply(c)};var c=new a.d.Q;a.v1=function(d,f,g){d=a.d.Q.Vk(d,f,g,c);a.Na.top.multiply(d)};var d=new a.d.ga;a.t1=function(e,f,g,h){d.fill(f,g,h);e=a.d.Q.aO(d,a.ye(e),c);a.Na.top.multiply(e)};a.u1=function(d,f,g){d=a.d.Q.JD(d,f,g,c);a.Na.top.multiply(d)};a.Xn=function(c,d){switch(c){case a.ji:d.uc(a.gf.top);
break;case a.ki:d.uc(a.hf.top);break;case a.Uy:d.uc(a.Hl.top);break;default:throw Error("Invalid matrix mode specified");}}})(b);b.qI="precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n";b.rI="attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}";b.eI="precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} ";
b.hI="attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}";b.fI="// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}";
b.gI="attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}";b.mI="precision lowp float; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}";
b.pI="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";b.nI="precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}";b.oI="attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}";
b.iI="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}";b.jI="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
b.lI="precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}";b.iz="attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}";
b.kI="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}";b.qV="precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}";b.Ce={Xt:0,Yt:1,Vt:2,Wt:3,$t:4,Zt:5,au:6,pz:7,EV:8,Xb:{},Se:function(){this.NQ();return!0},Wc:function(a,c){switch(c){case this.Xt:a.Yf(b.iz,b.lI);a.cc(b.di,b.Ua);a.cc(b.Ml,b.he);a.cc(b.Aj,b.ie);break;case this.Yt:a.Yf(b.iz,b.kI);a.cc(b.di,b.Ua);a.cc(b.Ml,b.he);a.cc(b.Aj,b.ie);break;case this.Vt:a.Yf(b.hI,b.eI);a.cc(b.di,b.Ua);a.cc(b.Ml,b.he);break;case this.Wt:a.Yf(b.pI,b.mI);a.cc(b.di,b.Ua);a.cc(b.Aj,b.ie);break;case this.$t:a.Yf(b.oI,b.nI);a.cc(b.di,b.Ua);a.cc(b.Aj,b.ie);break;case this.Zt:a.Yf(b.jI,
b.iI);a.cc(b.di,b.Ua);a.cc(b.Ml,b.he);a.cc(b.Aj,b.ie);break;case this.au:a.Yf(b.rI,b.qI);a.cc("aVertex",b.Ua);break;case this.pz:a.Yf(b.gI,b.fI);a.cc(b.di,b.Ua);a.cc(b.Aj,b.ie);a.cc(b.Ml,b.he);break;default:b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type");return}a.link();a.gT()},NQ:function(){var a=new b.Bc;this.Wc(a,this.Xt);this.Xb[b.pm]=a;this.Xb.ShaderPositionTextureColor=a;a=new b.Bc;this.Wc(a,this.Yt);this.Xb[b.Qt]=a;this.Xb.ShaderPositionTextureColorAlphaTest=a;a=new b.Bc;
this.Wc(a,this.Vt);this.Xb[b.Dp]=a;this.Xb.ShaderPositionColor=a;a=new b.Bc;this.Wc(a,this.Wt);this.Xb[b.Ep]=a;this.Xb.ShaderPositionTexture=a;a=new b.Bc;this.Wc(a,this.$t);this.Xb[b.Rt]=a;this.Xb.ShaderPositionTextureUColor=a;a=new b.Bc;this.Wc(a,this.Zt);this.Xb[b.Pt]=a;this.Xb.ShaderPositionTextureA8Color=a;a=new b.Bc;this.Wc(a,this.au);this.Xb[b.St]=a;this.Xb.ShaderPositionUColor=a;a=new b.Bc;this.Wc(a,this.pz);this.Xb[b.hz]=a;this.Xb.ShaderPositionLengthTextureColor=a},u3:function(){var a=this.nc(b.pm);
a.reset();this.Wc(a,this.Xt);a=this.nc(b.Qt);a.reset();this.Wc(a,this.Yt);a=this.nc(b.Dp);a.reset();this.Wc(a,this.Vt);a=this.nc(b.Ep);a.reset();this.Wc(a,this.Wt);a=this.nc(b.Rt);a.reset();this.Wc(a,this.$t);a=this.nc(b.Pt);a.reset();this.Wc(a,this.Zt);a=this.nc(b.St);a.reset();this.Wc(a,this.au)},nc:function(a){return this.Xb[a]},al:function(a){return this.Xb[a]},eX:function(a,c){this.Xb[c]=a}};b.bH=function(){this.location=this.value=void 0;this.as={}};
b.Bc=b.Aa.extend({U:null,La:null,wd:null,me:null,ka:null,Pe:null,Pw:!1,$c:function(a,c){if(null==a)return!1;for(var d=!0,e=null,f=0;f<this.Pe.length;f++)this.Pe[f].location==a&&(e=this.Pe[f]);e?e.value==c?d=!1:e.value=c:(e=new b.bH,e.location=a,e.value=c,this.Pe.push(e));return d},cW:function(){return"\x3cCCGLProgram \x3d "+this.toString()+" | Program \x3d "+this.La.toString()+", VertexShader \x3d "+this.wd.toString()+", FragmentShader \x3d "+this.me.toString()+"\x3e"},Sz:function(a,c,d){if(!d||!a)return!1;
d=(b.Bc.IL()?"precision highp float;\n":"precision mediump float;\n")+"uniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \nuniform sampler2D CC_Texture0; \n//CC INCLUDES END \n"+d;this.U.shaderSource(a,d);this.U.compileShader(a);d=this.U.getShaderParameter(a,this.U.COMPILE_STATUS);d||(b.log("cocos2d: ERROR: Failed to compile shader:\n"+
this.U.getShaderSource(a)),c===this.U.VERTEX_SHADER?b.log("cocos2d: \n"+this.iT()):b.log("cocos2d: \n"+this.VO()));return!0===d},ctor:function(a,c,d){this.ka=[];this.Pe=[];this.U=d||b.o;a&&c&&this.fa(a,c)},eY:function(){this.Pe=this.ka=this.me=this.wd=null;this.U.deleteProgram(this.La)},Yf:function(a,c){var d=this.U;this.La=d.createProgram();this.me=this.wd=null;a&&(this.wd=d.createShader(d.VERTEX_SHADER),this.Sz(this.wd,d.VERTEX_SHADER,a)||b.log("cocos2d: ERROR: Failed to compile vertex shader"));
c&&(this.me=d.createShader(d.FRAGMENT_SHADER),this.Sz(this.me,d.FRAGMENT_SHADER,c)||b.log("cocos2d: ERROR: Failed to compile fragment shader"));this.wd&&d.attachShader(this.La,this.wd);b.Uk();this.me&&d.attachShader(this.La,this.me);this.Pe.length=0;b.Uk();return!0},Td:function(a,c){return this.Yf(a,c)},kQ:function(a,c){var d=b.O.zd(a);if(!d)throw Error("Please load the resource firset : "+a);var e=b.O.zd(c);if(!e)throw Error("Please load the resource firset : "+c);return this.Yf(d,e)},fa:function(a,
c){return this.kQ(a,c)},cc:function(a,c){this.U.bindAttribLocation(this.La,c,a)},link:function(){if(!this.La)return b.log("cc.GLProgram.link(): Cannot link invalid program"),!1;this.U.linkProgram(this.La);this.wd&&this.U.deleteShader(this.wd);this.me&&this.U.deleteShader(this.me);this.me=this.wd=null;return b.q.eb[b.q.Mc.Pn]&&!this.U.getProgramParameter(this.La,this.U.LINK_STATUS)?(b.log("cocos2d: ERROR: Failed to link program: "+this.U.getProgramInfoLog(this.La)),b.WP(this.La),this.La=null,!1):!0},
Rb:function(){b.Kx(this.La)},gT:function(){this.ka[b.um]=this.U.getUniformLocation(this.La,b.IJ);this.ka[b.tm]=this.U.getUniformLocation(this.La,b.GJ);this.ka[b.Hj]=this.U.getUniformLocation(this.La,b.HJ);this.ka[b.Rp]=this.U.getUniformLocation(this.La,b.MJ);this.ka[b.Qp]=this.U.getUniformLocation(this.La,b.LJ);this.ka[b.Pp]=this.U.getUniformLocation(this.La,b.FJ);this.Pw=null!=this.ka[b.Rp]||null!=this.ka[b.Qp]||null!=this.ka[b.Pp];this.ka[b.vm]=this.U.getUniformLocation(this.La,b.JJ);this.ka[b.eu]=
this.U.getUniformLocation(this.La,b.KJ);this.Rb();this.FF(this.ka[b.eu],0)},j0:function(a){if(!a)throw Error("cc.GLProgram.getUniformLocationForName(): uniform name should be non-null");if(!this.La)throw Error("cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized");return this.U.getUniformLocation(this.La,a)},k0:function(){return this.ka[b.Hj]},l0:function(){return this.ka[b.eu]},FF:function(a,c){this.$c(a,c)&&this.U.uniform1i(a,
c)},x5:function(a,c,d){this.$c(a,[c,d])&&this.U.uniform2i(a,c,d)},A5:function(a,c,d,e){this.$c(a,[c,d,e])&&this.U.uniform3i(a,c,d,e)},D5:function(a,c,d,e,f){this.$c(a,[c,d,e,f])&&this.U.uniform4i(a,c,d,e,f)},y5:function(a,c){this.$c(a,c)&&this.U.uniform2iv(a,c)},B5:function(a,c){this.$c(a,c)&&this.U.uniform3iv(a,c)},E5:function(a,c){this.$c(a,c)&&this.U.uniform4iv(a,c)},v5:function(a,c){this.FF(a,c)},Ps:function(a,c){this.$c(a,c)&&this.U.uniform1f(a,c)},rS:function(a,c,d){this.$c(a,[c,d])&&this.U.uniform2f(a,
c,d)},sS:function(a,c,d,e){this.$c(a,[c,d,e])&&this.U.uniform3f(a,c,d,e)},bh:function(a,c,d,e,f){this.$c(a,[c,d,e,f])&&this.U.uniform4f(a,c,d,e,f)},w5:function(a,c){this.$c(a,c)&&this.U.uniform2fv(a,c)},z5:function(a,c){this.$c(a,c)&&this.U.uniform3fv(a,c)},C5:function(a,c){this.$c(a,c)&&this.U.uniform4fv(a,c)},Cl:function(a,c){this.$c(a,c)&&this.U.uniformMatrix4fv(a,!1,c)},u5:function(){if(!(2>arguments.length))switch(arguments.length){case 2:this.Ps(arguments[0],arguments[1]);break;case 3:this.rS(arguments[0],
arguments[1],arguments[2]);break;case 4:this.sS(arguments[0],arguments[1],arguments[2],arguments[3]);break;case 5:this.bh(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4])}},GF:function(){var a=new b.d.Q,c=new b.d.Q,d=new b.d.Q;b.Xn(b.ki,a);b.Xn(b.ji,c);b.ks(d,a,c);this.Cl(this.ka[b.um],a.l,1);this.Cl(this.ka[b.tm],c.l,1);this.Cl(this.ka[b.Hj],d.l,1);this.Pw&&(a=b.la,a=a.Bn*a.Kj,this.bh(this.ka[b.Rp],a/10,a,2*a,4*a),this.bh(this.ka[b.Qp],a/8,a/4,a/2,Math.sin(a)),this.bh(this.ka[b.Pp],
a/8,a/4,a/2,Math.cos(a)));-1!==this.ka[b.vm]&&this.bh(this.ka[b.vm],Math.random(),Math.random(),Math.random(),Math.random())},QW:function(a){if(a&&a.f){var c=new b.d.Q,d=new b.d.Q;b.Xn(b.ki,c);b.ks(d,c,a.f.Zc);this.Cl(this.ka[b.um],c.l,1);this.Cl(this.ka[b.tm],a.f.Zc.l,1);this.Cl(this.ka[b.Hj],d.l,1);this.Pw&&(a=b.la,a=a.Bn*a.Kj,this.bh(this.ka[b.Rp],a/10,a,2*a,4*a),this.bh(this.ka[b.Qp],a/8,a/4,a/2,Math.sin(a)),this.bh(this.ka[b.Pp],a/8,a/4,a/2,Math.cos(a)));-1!==this.ka[b.vm]&&this.bh(this.ka[b.vm],
Math.random(),Math.random(),Math.random(),Math.random())}},s5:function(){this.U.uniformMatrix4fv(this.ka[b.Hj],!1,b.rP())},t5:function(a){b.ks(a,b.hf.top,b.gf.top);this.U.uniformMatrix4fv(this.ka[b.Hj],!1,a.l)},dg:function(){this.U.uniformMatrix4fv(this.ka[b.tm],!1,b.gf.top.l);this.U.uniformMatrix4fv(this.ka[b.um],!1,b.hf.top.l)},Oi:function(a){if(!a)throw Error("modelView matrix is undefined.");this.U.uniformMatrix4fv(this.ka[b.tm],!1,a.l);this.U.uniformMatrix4fv(this.ka[b.um],!1,b.hf.top.l)},iT:function(){return this.U.getShaderInfoLog(this.wd)},
r0:function(){return this.U.getShaderInfoLog(this.wd)},j_:function(){return this.U.getShaderInfoLog(this.wd)},VO:function(){return this.U.getShaderInfoLog(this.me)},f3:function(){return this.U.getProgramInfoLog(this.La)},M_:function(){return this.U.getProgramInfoLog(this.La)},reset:function(){this.me=this.wd=null;this.ka.length=0;this.U.deleteProgram(this.La);this.La=null;for(var a=0;a<this.Pe.length;a++)this.Pe[a].value=null,this.Pe[a]=null;this.Pe.length=0},al:function(){return this.La},zs:function(){},
Wd:function(){}});b.Bc.create=function(a,c){return new b.Bc(a,c)};b.Bc.tv=null;b.Bc.IL=function(){if(null==b.Bc.tv){var a=b.o;b.Bc.tv=0!==a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).precision}return b.Bc.tv};b.AF=function(a,c){a.shaderProgram=c;var d=a.children;if(d)for(var e=0;e<d.length;e++)b.AF(d[e],c)};b.Zz=-1;b.Tw=!1;b.Sw=!1;b.Uw=!1;b.Ee&&(b.pH=16,b.Mm=-1,b.Lm=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],b.Qj=-1,b.Pj=-1,b.YJ=0,b.mz&&(b.cD=0));b.D0=function(){b.HQ();b.Zz=-1;b.Tw=!1;b.Sw=!1;b.Uw=!1;if(b.Ee){b.Mm=-1;for(var a=0;a<b.pH;a++)b.Lm[a]=-1;b.Qj=-1;b.Pj=-1;b.YJ=0}};b.Kx=function(a){a!==b.Mm&&(b.Mm=a,b.o.useProgram(a))};b.Ee||(b.Kx=function(a){b.o.useProgram(a)});b.WP=function(a){b.Ee&&a===b.Mm&&(b.Mm=-1);gl.deleteProgram(a)};
b.Vf=function(a,c){if(a!==b.Qj||c!==b.Pj)b.Qj=a,b.Pj=c,b.Es(a,c)};b.Es=function(a,c){var d=b.o;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),b.o.blendFunc(a,c))};b.z0=function(a,c){if(a!==b.Qj||c!==b.Pj){b.Qj=a;b.Pj=c;var d=b.o;a===d.ONE&&c===d.ZERO?d.disable(d.BLEND):(d.enable(d.BLEND),d.blendFuncSeparate(d.SRC_ALPHA,c,a,c))}};b.Ee||(b.Vf=b.Es);b.A0=function(){var a=b.o;a.blendEquation(a.FUNC_ADD);b.Ee?b.Es(b.Qj,b.Pj):b.Es(a.fg,a.mf)};b.dS=function(){b.Zz=-1};
b.xc=function(a){var c=b.o,d=a&b.Dc;d!==b.Tw&&(d?c.enableVertexAttribArray(b.Ua):c.disableVertexAttribArray(b.Ua),b.Tw=d);d=a&b.wm;d!==b.Sw&&(d?c.enableVertexAttribArray(b.he):c.disableVertexAttribArray(b.he),b.Sw=d);a&=b.Sp;a!==b.Uw&&(a?c.enableVertexAttribArray(b.ie):c.disableVertexAttribArray(b.ie),b.Uw=a)};b.ef=function(a){b.Jx(0,a)};b.Jx=function(a,c){if(b.Lm[a]!==c){b.Lm[a]=c;var d=b.o;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Ng):d.bindTexture(d.TEXTURE_2D,null)}};
b.Ee||(b.Jx=function(a,c){var d=b.o;d.activeTexture(d.TEXTURE0+a);c?d.bindTexture(d.TEXTURE_2D,c.Ng):d.bindTexture(d.TEXTURE_2D,null)});b.B0=function(a){b.XP(a)};b.XP=function(a){b.Ee&&a===b.Lm[0]&&(b.Lm[0]=-1);b.o.deleteTexture(a)};b.y0=function(a){b.mz&&b.Ee&&b.cD!==a&&(b.cD=a)};b.C0=function(){};b.zj=-1;
b.hc=b.Aa.extend({originalTarget:null,target:null,tag:b.zj,ctor:function(){this.target=this.originalTarget=null;this.tag=b.zj},copy:function(){b.log("copy is deprecated. Please use clone instead.");return this.k()},k:function(){var a=new b.hc;a.originalTarget=null;a.target=null;a.tag=this.tag;return a},Ae:function(){return!0},G:function(a){this.target=this.originalTarget=a},stop:function(){this.target=null},step:function(){b.log("[Action step]. override me")},update:function(){b.log("[Action update]. override me")},b0:function(){return this.target},
oS:function(a){this.target=a},G_:function(){return this.originalTarget},a5:function(a){this.originalTarget=a},Ix:function(){return this.tag},Os:function(a){this.tag=a},zs:function(){},Wd:function(){}});b.action=function(){return new b.hc};b.hc.create=b.action;b.hg=b.hc.extend({N:0,ctor:function(){b.hc.prototype.ctor.call(this);this.N=0},Ax:function(){return this.N*(this.we||1)},C4:function(a){this.N=a},reverse:function(){b.log("cocos2d: FiniteTimeAction#reverse: Implement me");return null},k:function(){return new b.hg}});
b.Jp=b.hc.extend({Hc:0,Ca:null,ctor:function(a,c){b.hc.prototype.ctor.call(this);this.Hc=0;this.Ca=null;a&&this.R(a,c)},JP:function(){return this.Hc},lS:function(a){this.Hc=a},R:function(a,c){if(!a)throw Error("cc.Speed.initWithAction(): action must be non nil");this.Ca=a;this.Hc=c;return!0},k:function(){var a=new b.Jp;a.R(this.Ca.k(),this.Hc);return a},G:function(a){b.hc.prototype.G.call(this,a);this.Ca.G(a)},stop:function(){this.Ca.stop();b.hc.prototype.stop.call(this)},step:function(a){this.Ca.step(a*
this.Hc)},Ae:function(){return this.Ca.Ae()},reverse:function(){return new b.Jp(this.Ca.reverse(),this.Hc)},wF:function(a){this.Ca!==a&&(this.Ca=a)},Dx:function(){return this.Ca}});b.speed=function(a,c){return new b.Jp(a,c)};b.Jp.create=b.speed;
b.qt=b.hc.extend({ek:null,Rj:!1,bq:!1,Bq:null,Um:null,$w:null,kj:0,qj:0,xj:0,aj:0,ctor:function(a,c){b.hc.prototype.ctor.call(this);this.ek=null;this.bq=this.Rj=!1;this.Um=this.Bq=null;this.aj=this.xj=this.qj=this.kj=0;this.$w=b.rect(0,0,0,0);a&&(c?this.il(a,c):this.il(a))},k:function(){var a=new b.qt,c=this.$w;a.il(this.ek,new b.Kt(c.x,c.y,c.width,c.height));return a},V0:function(){return this.Rj},m4:function(a){this.Rj=a},il:function(a,c){if(!a)throw Error("cc.Follow.initWithAction(): followedNode must be non nil");
c=c||b.rect(0,0,0,0);this.ek=a;this.$w=c;this.Rj=!b.Zv(c);this.bq=!1;var d=b.la.Uf();this.Um=b.i(d.width,d.height);this.Bq=b.nj(this.Um,0.5);this.Rj&&(this.kj=-(c.x+c.width-this.Um.x),this.qj=-c.x,this.xj=-c.y,this.aj=-(c.y+c.height-this.Um.y),this.qj<this.kj&&(this.qj=this.kj=(this.kj+this.qj)/2),this.xj<this.aj&&(this.xj=this.aj=(this.xj+this.aj)/2),this.xj===this.aj&&this.kj===this.qj&&(this.bq=!0));return!0},step:function(){var a=this.ek.x,c=this.ek.y,a=this.Bq.x-a,c=this.Bq.y-c;this.target.f.D=
0;this.Rj?this.bq||this.target.gb(b.Fr(a,this.kj,this.qj),b.Fr(c,this.aj,this.xj)):this.target.gb(a,c)},Ae:function(){return!this.ek.running},stop:function(){this.target=null;b.hc.prototype.stop.call(this)}});b.SO=function(a,c){return new b.qt(a,c)};b.qt.create=b.SO;b.C=b.hg.extend({Wa:0,vq:!1,le:null,we:1,sn:!1,Hi:!1,Hc:1,un:!1,ctor:function(a){this.we=this.Hc=1;this.sn=!1;this.MAX_VALUE=2;this.un=this.Hi=!1;b.hg.prototype.ctor.call(this);void 0!==a&&this.s(a)},b_:function(){return this.Wa},s:function(a){this.N=0===a?b.np:a;this.Wa=0;return this.vq=!0},Ae:function(){return this.Wa>=this.N},da:function(a){a.sn=this.sn;a.Hc=this.Hc;a.we=this.we;a.le=this.le;a.un=this.un;a.Hi=this.Hi},Gc:function(a){if(this.le){a.le=[];for(var c=0;c<this.le.length;c++)a.le.push(this.le[c].reverse())}},
k:function(){var a=new b.C(this.N);this.da(a);return a},oa:function(a){this.le?this.le.length=0:this.le=[];for(var c=0;c<arguments.length;c++)this.le.push(arguments[c]);return this},Vb:function(a){var c=this.le;if(!c||0===c.length)return a;for(var d=0,e=c.length;d<e;d++)a=c[d].oa(a);return a},step:function(a){this.vq?(this.vq=!1,this.Wa=0):this.Wa+=a;a=this.Wa/(1.192092896E-7<this.N?this.N:1.192092896E-7);a=1>a?a:1;this.update(0<a?a:0);this.Hi&&1<this.we&&this.Ae()&&(this.sn||this.we--,this.G(this.target),
this.step(this.Wa-this.N))},G:function(a){b.hc.prototype.G.call(this,a);this.Wa=0;this.vq=!0},reverse:function(){b.log("cc.IntervalAction: reverse not implemented.");return null},k4:function(){b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.")},EZ:function(){b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.");return 0},speed:function(a){if(0>=a)return b.log("The speed parameter error"),this;this.un=!0;this.Hc*=a;return this},JP:function(){return this.Hc},
lS:function(a){this.Hc=a;return this},repeat:function(a){a=Math.round(a);if(isNaN(a)||1>a)return b.log("The repeat parameter error"),this;this.Hi=!0;this.we*=a;return this},bF:function(){this.Hi=!0;this.we=this.MAX_VALUE;this.sn=!0;return this}});b.eN=function(a){return new b.C(a)};b.C.create=b.eN;
b.ig=b.C.extend({tf:null,QC:null,dn:0,ctor:function(a){b.C.prototype.ctor.call(this);this.tf=[];var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=b.ig.lg(e,c[f]));this.ij(e,c[d])}},ij:function(a,c){if(!a||!c)throw Error("cc.Sequence.initWithTwoActions(): arguments must all be non nil");this.s(a.N+c.N);this.tf[0]=a;this.tf[1]=c;return!0},k:function(){var a=new b.ig;this.da(a);
a.ij(this.tf[0].k(),this.tf[1].k());return a},G:function(a){b.C.prototype.G.call(this,a);this.QC=this.tf[0].N/this.N;this.dn=-1},stop:function(){-1!==this.dn&&this.tf[this.dn].stop();b.hc.prototype.stop.call(this)},update:function(a){var c=0,d=this.QC,e=this.tf,f=this.dn;a=this.Vb(a);a<d?(a=0!==d?a/d:1,0===c&&1===f&&(e[1].update(0),e[1].stop())):(c=1,a=1===d?1:(a-d)/(1-d),-1===f&&(e[0].G(this.target),e[0].update(1),e[0].stop()),f||(e[0].update(1),e[0].stop()));e=e[c];f===c&&e.Ae()||(f!==c&&e.G(this.target),
a*=e.we,e.update(1<a?a%1:a),this.dn=c)},reverse:function(){var a=b.ig.lg(this.tf[1].reverse(),this.tf[0].reverse());this.da(a);this.Gc(a);return a}});b.CR=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d,e,f,g;c&&0<c.length;)for(e=Array.prototype.shift.call(c),g=e.we||1,e.Hi=!1,e.we=1,f=0,d||(d=e,f=1),f;f<g;f++)d=b.ig.lg(d,e);return d};b.ig.create=b.CR;
b.ig.lg=function(a,c){var d=new b.ig;d.ij(a,c);return d};
b.zp=b.C.extend({ve:0,Nh:0,Iv:0,Dz:!1,Ca:null,ctor:function(a,c){b.C.prototype.ctor.call(this);void 0!==c&&this.R(a,c)},R:function(a,c){return this.s(a.N*c)?(this.ve=c,this.Ca=a,a instanceof b.lf&&(this.Dz=!0,this.ve-=1),this.Nh=0,!0):!1},k:function(){var a=new b.zp;this.da(a);a.R(this.Ca.k(),this.ve);return a},G:function(a){this.Nh=0;this.Iv=this.Ca.N/this.N;b.C.prototype.G.call(this,a);this.Ca.G(a)},stop:function(){this.Ca.stop();b.hc.prototype.stop.call(this)},update:function(a){a=this.Vb(a);var c=
this.Ca,d=this.N,e=this.ve,f=this.Iv;if(a>=f){for(;a>f&&this.Nh<e;)c.update(1),this.Nh++,c.stop(),c.G(this.target),this.Iv=f+=c.N/d;1<=a&&this.Nh<e&&this.Nh++;this.Dz||(this.Nh===e?(c.update(1),c.stop()):c.update(a-(f-c.N/d)))}else c.update(a*e%1)},Ae:function(){return this.Nh===this.ve},reverse:function(){var a=new b.zp(this.Ca.reverse(),this.ve);this.da(a);this.Gc(a);return a},wF:function(a){this.Ca!==a&&(this.Ca=a)},Dx:function(){return this.Ca}});b.repeat=function(a,c){return new b.zp(a,c)};
b.zp.create=b.repeat;
b.Ap=b.C.extend({Ca:null,ctor:function(a){b.C.prototype.ctor.call(this);this.Ca=null;a&&this.R(a)},R:function(a){if(!a)throw Error("cc.RepeatForever.initWithAction(): action must be non null");this.Ca=a;return!0},k:function(){var a=new b.Ap;this.da(a);a.R(this.Ca.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.Ca.G(a)},step:function(a){var c=this.Ca;c.step(a);c.Ae()&&(c.G(this.target),c.step(c.Wa-c.N))},Ae:function(){return!1},reverse:function(){var a=new b.Ap(this.Ca.reverse());this.da(a);
this.Gc(a);return a},wF:function(a){this.Ca!==a&&(this.Ca=a)},Dx:function(){return this.Ca}});b.bF=function(a){return new b.Ap(a)};b.Ap.create=b.bF;
b.pi=b.C.extend({vg:null,Lg:null,ctor:function(a){b.C.prototype.ctor.call(this);this.Lg=this.vg=null;var c=a instanceof Array?a:arguments,d=c.length-1;0<=d&&null==c[d]&&b.log("parameters should not be ending with null in Javascript");if(0<=d){for(var e=c[0],f=1;f<d;f++)c[f]&&(e=b.pi.lg(e,c[f]));this.ij(e,c[d])}},ij:function(a,c){if(!a||!c)throw Error("cc.Spawn.initWithTwoActions(): arguments must all be non null");var d=!1,e=a.N,f=c.N;this.s(Math.max(e,f))&&(this.vg=a,this.Lg=c,e>f?this.Lg=b.ig.lg(c,
b.kx(e-f)):e<f&&(this.vg=b.ig.lg(a,b.kx(f-e))),d=!0);return d},k:function(){var a=new b.pi;this.da(a);a.ij(this.vg.k(),this.Lg.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.vg.G(a);this.Lg.G(a)},stop:function(){this.vg.stop();this.Lg.stop();b.hc.prototype.stop.call(this)},update:function(a){a=this.Vb(a);this.vg&&this.vg.update(a);this.Lg&&this.Lg.update(a)},reverse:function(){var a=b.pi.lg(this.vg.reverse(),this.Lg.reverse());this.da(a);this.Gc(a);return a}});
b.GS=function(a){var c=a instanceof Array?a:arguments;0<c.length&&null==c[c.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var d=c[0],e=1;e<c.length;e++)null!=c[e]&&(d=b.pi.lg(d,c[e]));return d};b.pi.create=b.GS;b.pi.lg=function(a,c){var d=new b.pi;d.ij(a,c);return d};
b.Nt=b.C.extend({pq:0,vn:0,kA:0,Tu:0,Dk:0,lA:0,ctor:function(a,c,d){b.C.prototype.ctor.call(this);void 0!==c&&this.s(a,c,d)},s:function(a,c,d){return b.C.prototype.s.call(this,a)?(this.pq=c||0,this.Tu=d||this.pq,!0):!1},k:function(){var a=new b.Nt;this.da(a);a.s(this.N,this.pq,this.Tu);return a},G:function(a){b.C.prototype.G.call(this,a);var c=a.rotationX%360,d=this.pq-c;180<d&&(d-=360);-180>d&&(d+=360);this.vn=c;this.kA=d;this.Dk=a.rotationY%360;a=this.Tu-this.Dk;180<a&&(a-=360);-180>a&&(a+=360);
this.lA=a},reverse:function(){b.log("cc.RotateTo.reverse(): it should be overridden in subclass.")},update:function(a){a=this.Vb(a);this.target&&(this.target.rotationX=this.vn+this.kA*a,this.target.rotationY=this.Dk+this.lA*a)}});b.yR=function(a,c,d){return new b.Nt(a,c,d)};b.Nt.create=b.yR;
b.Cp=b.C.extend({Je:0,vn:0,Zp:0,Dk:0,ctor:function(a,c,d){b.C.prototype.ctor.call(this);void 0!==c&&this.s(a,c,d)},s:function(a,c,d){return b.C.prototype.s.call(this,a)?(this.Je=c||0,this.Zp=d||this.Je,!0):!1},k:function(){var a=new b.Cp;this.da(a);a.s(this.N,this.Je,this.Zp);return a},G:function(a){b.C.prototype.G.call(this,a);this.vn=a.rotationX;this.Dk=a.rotationY},update:function(a){a=this.Vb(a);this.target&&(this.target.rotationX=this.vn+this.Je*a,this.target.rotationY=this.Dk+this.Zp*a)},reverse:function(){var a=
new b.Cp(this.N,-this.Je,-this.Zp);this.da(a);this.Gc(a);return a}});b.xR=function(a,c,d){return new b.Cp(a,c,d)};b.Cp.create=b.xR;
b.jh=b.C.extend({Hf:null,Bb:null,Hb:null,ctor:function(a,c,d){b.C.prototype.ctor.call(this);this.Hf=b.i(0,0);this.Bb=b.i(0,0);this.Hb=b.i(0,0);void 0!==c&&this.s(a,c,d)},s:function(a,c,d){return b.C.prototype.s.call(this,a)?(void 0!==c.x&&(d=c.y,c=c.x),this.Hf.x=c,this.Hf.y=d,!0):!1},k:function(){var a=new b.jh;this.da(a);a.s(this.N,this.Hf);return a},G:function(a){b.C.prototype.G.call(this,a);var c=a.yd();a=a.df();this.Hb.x=c;this.Hb.y=a;this.Bb.x=c;this.Bb.y=a},update:function(a){a=this.Vb(a);if(this.target){var c=
this.Hf.x*a;a*=this.Hf.y;var d=this.Bb;if(b.So){var e=this.target.df(),f=this.Hb;d.x=d.x+this.target.yd()-f.x;d.y=d.y+e-f.y;c+=d.x;a+=d.y;f.x=c;f.y=a;this.target.gb(c,a)}else this.target.gb(d.x+c,d.y+a)}},reverse:function(){var a=new b.jh(this.N,b.i(-this.Hf.x,-this.Hf.y));this.da(a);this.Gc(a);return a}});b.moveBy=function(a,c,d){return new b.jh(a,c,d)};b.jh.create=b.moveBy;
b.wt=b.jh.extend({Id:null,ctor:function(a,c,d){b.jh.prototype.ctor.call(this);this.Id=b.i(0,0);void 0!==c&&this.s(a,c,d)},s:function(a,c,d){return b.jh.prototype.s.call(this,a,c,d)?(void 0!==c.x&&(d=c.y,c=c.x),this.Id.x=c,this.Id.y=d,!0):!1},k:function(){var a=new b.wt;this.da(a);a.s(this.N,this.Id);return a},G:function(a){b.jh.prototype.G.call(this,a);this.Hf.x=this.Id.x-a.yd();this.Hf.y=this.Id.y-a.df()}});b.moveTo=function(a,c,d){return new b.wt(a,c,d)};b.wt.create=b.moveTo;
b.oi=b.C.extend({Fg:0,Gg:0,kr:0,lr:0,rq:0,sq:0,md:0,nd:0,ctor:function(a,c,d){b.C.prototype.ctor.call(this);void 0!==d&&this.s(a,c,d)},s:function(a,c,d){var e=!1;b.C.prototype.s.call(this,a)&&(this.rq=c,this.sq=d,e=!0);return e},k:function(){var a=new b.oi;this.da(a);a.s(this.N,this.rq,this.sq);return a},G:function(a){b.C.prototype.G.call(this,a);this.kr=a.skewX%180;this.md=this.rq-this.kr;180<this.md&&(this.md-=360);-180>this.md&&(this.md+=360);this.lr=a.skewY%360;this.nd=this.sq-this.lr;180<this.nd&&
(this.nd-=360);-180>this.nd&&(this.nd+=360)},update:function(a){a=this.Vb(a);this.target.skewX=this.kr+this.md*a;this.target.skewY=this.lr+this.nd*a}});b.FS=function(a,c,d){return new b.oi(a,c,d)};b.oi.create=b.FS;
b.Ip=b.oi.extend({ctor:function(a,c,d){b.oi.prototype.ctor.call(this);void 0!==d&&this.s(a,c,d)},s:function(a,c,d){var e=!1;b.oi.prototype.s.call(this,a,c,d)&&(this.Fg=c,this.Gg=d,e=!0);return e},k:function(){var a=new b.Ip;this.da(a);a.s(this.N,this.Fg,this.Gg);return a},G:function(a){b.oi.prototype.G.call(this,a);this.md=this.Fg;this.nd=this.Gg;this.rq=this.kr+this.md;this.sq=this.lr+this.nd},reverse:function(){var a=new b.Ip(this.N,-this.Fg,-this.Gg);this.da(a);this.Gc(a);return a}});
b.ES=function(a,c,d){return new b.Ip(a,c,d)};b.Ip.create=b.ES;
b.ih=b.C.extend({Bb:null,xf:null,Ym:0,cn:0,Hb:null,ctor:function(a,c,d,e,f){b.C.prototype.ctor.call(this);this.Bb=b.i(0,0);this.Hb=b.i(0,0);this.xf=b.i(0,0);void 0!==e&&this.s(a,c,d,e,f)},s:function(a,c,d,e,f){return b.C.prototype.s.call(this,a)?(void 0===f&&(f=e,e=d,d=c.y,c=c.x),this.xf.x=c,this.xf.y=d,this.Ym=e,this.cn=f,!0):!1},k:function(){var a=new b.ih;this.da(a);a.s(this.N,this.xf,this.Ym,this.cn);return a},G:function(a){b.C.prototype.G.call(this,a);var c=a.yd();a=a.df();this.Hb.x=c;this.Hb.y=
a;this.Bb.x=c;this.Bb.y=a},update:function(a){a=this.Vb(a);if(this.target){var c=a*this.cn%1,c=4*this.Ym*c*(1-c),c=c+this.xf.y*a;a*=this.xf.x;var d=this.Bb;if(b.So){var e=this.target.df(),f=this.Hb;d.x=d.x+this.target.yd()-f.x;d.y=d.y+e-f.y;a+=d.x;c+=d.y;f.x=a;f.y=c;this.target.gb(a,c)}else this.target.gb(d.x+a,d.y+c)}},reverse:function(){var a=new b.ih(this.N,b.i(-this.xf.x,-this.xf.y),this.Ym,this.cn);this.da(a);this.Gc(a);return a}});b.CQ=function(a,c,d,e,f){return new b.ih(a,c,d,e,f)};
b.ih.create=b.CQ;b.st=b.ih.extend({Id:null,ctor:function(a,c,d,e,f){b.ih.prototype.ctor.call(this);this.Id=b.i(0,0);void 0!==e&&this.s(a,c,d,e,f)},s:function(a,c,d,e,f){return b.ih.prototype.s.call(this,a,c,d,e,f)?(void 0===f&&(d=c.y,c=c.x),this.Id.x=c,this.Id.y=d,!0):!1},G:function(a){b.ih.prototype.G.call(this,a);this.xf.x=this.Id.x-this.Bb.x;this.xf.y=this.Id.y-this.Bb.y},k:function(){var a=new b.st;this.da(a);a.s(this.N,this.Id,this.Ym,this.cn);return a}});
b.DQ=function(a,c,d,e,f){return new b.st(a,c,d,e,f)};b.st.create=b.DQ;b.wD=function(a,c,d,e){return 0*Math.pow(1-e,3)+3*e*Math.pow(1-e,2)*a+3*Math.pow(e,2)*(1-e)*c+Math.pow(e,3)*d};
b.ei=b.C.extend({Hd:null,Bb:null,Hb:null,ctor:function(a,c){b.C.prototype.ctor.call(this);this.Hd=[];this.Bb=b.i(0,0);this.Hb=b.i(0,0);c&&this.s(a,c)},s:function(a,c){return b.C.prototype.s.call(this,a)?(this.Hd=c,!0):!1},k:function(){var a=new b.ei;this.da(a);for(var c=[],d=0;d<this.Hd.length;d++){var e=this.Hd[d];c.push(b.i(e.x,e.y))}a.s(this.N,c);return a},G:function(a){b.C.prototype.G.call(this,a);var c=a.yd();a=a.df();this.Hb.x=c;this.Hb.y=a;this.Bb.x=c;this.Bb.y=a},update:function(a){a=this.Vb(a);
if(this.target){var c=this.Hd,d=b.wD(c[0].x,c[1].x,c[2].x,a);a=b.wD(c[0].y,c[1].y,c[2].y,a);c=this.Bb;if(b.So){var e=this.target.df(),f=this.Hb;c.x=c.x+this.target.yd()-f.x;c.y=c.y+e-f.y;d+=c.x;a+=c.y;f.x=d;f.y=a;this.target.gb(d,a)}else this.target.gb(c.x+d,c.y+a)}},reverse:function(){var a=this.Hd,a=[b.pl(a[1],b.Xx(a[2])),b.pl(a[0],b.Xx(a[2])),b.Xx(a[2])],a=new b.ei(this.N,a);this.da(a);this.Gc(a);return a}});b.IN=function(a,c){return new b.ei(a,c)};b.ei.create=b.IN;
b.at=b.ei.extend({rr:null,ctor:function(a,c){b.ei.prototype.ctor.call(this);this.rr=[];c&&this.s(a,c)},s:function(a,c){return b.C.prototype.s.call(this,a)?(this.rr=c,!0):!1},k:function(){var a=new b.at;this.da(a);a.s(this.N,this.rr);return a},G:function(a){b.ei.prototype.G.call(this,a);a=this.Bb;var c=this.rr,d=this.Hd;d[0]=b.Kc(c[0],a);d[1]=b.Kc(c[1],a);d[2]=b.Kc(c[2],a)}});b.JN=function(a,c){return new b.at(a,c)};b.at.create=b.JN;
b.qm=b.C.extend({ha:1,Da:1,wn:1,xn:1,$j:0,ak:0,md:0,nd:0,ctor:function(a,c,d){b.C.prototype.ctor.call(this);void 0!==c&&this.s(a,c,d)},s:function(a,c,d){return b.C.prototype.s.call(this,a)?(this.$j=c,this.ak=null!=d?d:c,!0):!1},k:function(){var a=new b.qm;this.da(a);a.s(this.N,this.$j,this.ak);return a},G:function(a){b.C.prototype.G.call(this,a);this.wn=a.scaleX;this.xn=a.scaleY;this.md=this.$j-this.wn;this.nd=this.ak-this.xn},update:function(a){a=this.Vb(a);this.target&&(this.target.scaleX=this.wn+
this.md*a,this.target.scaleY=this.xn+this.nd*a)}});b.gy=function(a,c,d){return new b.qm(a,c,d)};b.qm.create=b.gy;b.Fp=b.qm.extend({G:function(a){b.qm.prototype.G.call(this,a);this.md=this.wn*this.$j-this.wn;this.nd=this.xn*this.ak-this.xn},reverse:function(){var a=new b.Fp(this.N,1/this.$j,1/this.ak);this.da(a);this.Gc(a);return a},k:function(){var a=new b.Fp;this.da(a);a.s(this.N,this.$j,this.ak);return a}});b.AR=function(a,c,d){return new b.Fp(a,c,d)};b.Fp.create=b.AR;
b.Po=b.C.extend({ve:0,TB:!1,ctor:function(a,c){b.C.prototype.ctor.call(this);void 0!==c&&this.s(a,c)},s:function(a,c){return b.C.prototype.s.call(this,a)?(this.ve=c,!0):!1},k:function(){var a=new b.Po;this.da(a);a.s(this.N,this.ve);return a},update:function(a){a=this.Vb(a);if(this.target&&!this.Ae()){var c=1/this.ve;this.target.visible=a%c>c/2}},G:function(a){b.C.prototype.G.call(this,a);this.TB=a.visible},stop:function(){this.target.visible=this.TB;b.C.prototype.stop.call(this)},reverse:function(){var a=
new b.Po(this.N,this.ve);this.da(a);this.Gc(a);return a}});b.blink=function(a,c){return new b.Po(a,c)};b.Po.create=b.blink;
b.hh=b.C.extend({Lk:0,xq:0,ctor:function(a,c){b.C.prototype.ctor.call(this);void 0!==c&&this.s(a,c)},s:function(a,c){return b.C.prototype.s.call(this,a)?(this.Lk=c,!0):!1},k:function(){var a=new b.hh;this.da(a);a.s(this.N,this.Lk);return a},update:function(a){a=this.Vb(a);var c=void 0!==this.xq?this.xq:255;this.target.opacity=c+(this.Lk-c)*a},G:function(a){b.C.prototype.G.call(this,a);this.xq=a.opacity}});b.PO=function(a,c){return new b.hh(a,c)};b.hh.create=b.PO;
b.op=b.hh.extend({ew:null,ctor:function(a){b.hh.prototype.ctor.call(this);null==a&&(a=0);this.s(a,255)},reverse:function(){var a=new b.pp;a.s(this.N,0);this.da(a);this.Gc(a);return a},k:function(){var a=new b.op;this.da(a);a.s(this.N,this.Lk);return a},G:function(a){this.ew&&(this.Lk=this.ew.xq);b.hh.prototype.G.call(this,a)}});b.NO=function(a){return new b.op(a)};b.op.create=b.NO;
b.pp=b.hh.extend({ctor:function(a){b.hh.prototype.ctor.call(this);null==a&&(a=0);this.s(a,0)},reverse:function(){var a=new b.op;a.ew=this;a.s(this.N,255);this.da(a);this.Gc(a);return a},k:function(){var a=new b.pp;this.da(a);a.s(this.N,this.Lk);return a}});b.OO=function(a){return new b.pp(a)};b.pp.create=b.OO;
b.du=b.C.extend({qr:null,Zu:null,ctor:function(a,c,d,e){b.C.prototype.ctor.call(this);this.qr=b.color(0,0,0);this.Zu=b.color(0,0,0);void 0!==e&&this.s(a,c,d,e)},s:function(a,c,d,e){return b.C.prototype.s.call(this,a)?(this.qr=b.color(c,d,e),!0):!1},k:function(){var a=new b.du;this.da(a);var c=this.qr;a.s(this.N,c.r,c.g,c.b);return a},G:function(a){b.C.prototype.G.call(this,a);this.Zu=this.target.color},update:function(a){a=this.Vb(a);var c=this.Zu,d=this.qr;c&&this.target.Ea(b.color(c.r+(d.r-c.r)*
a,c.g+(d.g-c.g)*a,c.b+(d.b-c.b)*a))}});b.ZS=function(a,c,d,e){return new b.du(a,c,d,e)};b.du.create=b.ZS;
b.Mp=b.C.extend({nq:0,mq:0,lq:0,dB:0,cB:0,bB:0,ctor:function(a,c,d,e){b.C.prototype.ctor.call(this);void 0!==e&&this.s(a,c,d,e)},s:function(a,c,d,e){return b.C.prototype.s.call(this,a)?(this.nq=c,this.mq=d,this.lq=e,!0):!1},k:function(){var a=new b.Mp;this.da(a);a.s(this.N,this.nq,this.mq,this.lq);return a},G:function(a){b.C.prototype.G.call(this,a);a=a.color;this.dB=a.r;this.cB=a.g;this.bB=a.b},update:function(a){a=this.Vb(a);this.target.color=b.color(this.dB+this.nq*a,this.cB+this.mq*a,this.bB+
this.lq*a)},reverse:function(){var a=new b.Mp(this.N,-this.nq,-this.mq,-this.lq);this.da(a);this.Gc(a);return a}});b.YS=function(a,c,d,e){return new b.Mp(a,c,d,e)};b.Mp.create=b.YS;b.Ro=b.C.extend({update:function(){},reverse:function(){var a=new b.Ro(this.N);this.da(a);this.Gc(a);return a},k:function(){var a=new b.Ro;this.da(a);a.s(this.N);return a}});b.kx=function(a){return new b.Ro(a)};b.Ro.create=b.kx;
b.Bp=b.C.extend({wg:null,ctor:function(a){b.C.prototype.ctor.call(this);this.wg=null;a&&this.R(a)},R:function(a){if(!a)throw Error("cc.ReverseTime.initWithAction(): action must be non null");if(a===this.wg)throw Error("cc.ReverseTime.initWithAction(): the action was already passed in.");return b.C.prototype.s.call(this,a.N)?(this.wg=a,!0):!1},k:function(){var a=new b.Bp;this.da(a);a.R(this.wg.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.wg.G(a)},update:function(a){a=this.Vb(a);this.wg&&
this.wg.update(1-a)},reverse:function(){return this.wg.k()},stop:function(){this.wg.stop();b.hc.prototype.stop.call(this)}});b.wR=function(a){return new b.Bp(a)};b.Bp.create=b.wR;
b.Oo=b.C.extend({qh:null,jn:0,Ov:null,uq:0,Cw:null,wK:0,ctor:function(a){b.C.prototype.ctor.call(this);this.Cw=[];a&&this.oE(a)},UD:function(){return this.qh},FR:function(a){this.qh=a},SZ:function(){return this.wK},oE:function(a){if(!a)throw Error("cc.Animate.initWithAnimation(): animation must be non-NULL");var c=a.Ax();if(this.s(c*a.ug)){this.jn=0;this.FR(a);this.Ov=null;this.uq=0;var d=this.Cw,e=d.length=0,f=c/a.Kf;a=a.ne;b.Ln(a,b.ce);for(var g=0;g<a.length;g++){var h=e*f/c,e=e+a[g].qc;d.push(h)}return!0}return!1},
k:function(){var a=new b.Oo;this.da(a);a.oE(this.qh.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.qh.Ii&&(this.Ov=a.kO());this.uq=this.jn=0},update:function(a){a=this.Vb(a);1>a&&(a*=this.qh.ug,(0|a)>this.uq&&(this.jn=0,this.uq++),a%=1);for(var c=this.qh.ne,d=c.length,e=this.Cw,f=this.jn;f<d;f++)if(e[f]<=a)_currFrameIndex=f,this.target.Bl(c[_currFrameIndex].Tf()),this.jn=f+1;else break},reverse:function(){var a=this.qh,c=a.ne,d=[];b.Ln(c,b.ce);if(0<c.length)for(var e=c.length-1;0<=
e;e--){var f=c[e];if(!f)break;d.push(f.k())}c=new b.eg(d,a.qc,a.ug);c.Js(a.Ii);a=new b.Oo(c);this.da(a);this.Gc(a);return a},stop:function(){this.qh.Ii&&this.target&&this.target.Bl(this.Ov);b.hc.prototype.stop.call(this)}});b.tN=function(a){return new b.Oo(a)};b.Oo.create=b.tN;
b.bu=b.C.extend({Cm:null,fk:null,ctor:function(a,c){b.C.prototype.ctor.call(this);c&&this.il(a,c)},il:function(a,c){return this.s(c.N)?(this.fk=a,this.Cm=c,!0):!1},k:function(){var a=new b.bu;this.da(a);a.il(this.fk,this.Cm.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.Cm.G(this.fk)},stop:function(){this.Cm.stop()},update:function(a){a=this.Vb(a);this.Cm.update(a)},h_:function(){return this.fk},F4:function(a){this.fk!==a&&(this.fk=a)}});b.PS=function(a,c){return new b.bu(a,c)};
b.bu.create=b.PS;b.lf=b.hg.extend({Ae:function(){return!0},step:function(){this.update(1)},update:function(){},reverse:function(){return this.k()},k:function(){return new b.lf}});b.Hp=b.lf.extend({update:function(){this.target.visible=!0},reverse:function(){return new b.sp},k:function(){return new b.Hp}});b.show=function(){return new b.Hp};b.Hp.create=b.show;b.sp=b.lf.extend({update:function(){this.target.visible=!1},reverse:function(){return new b.Hp},k:function(){return new b.sp}});b.ZP=function(){return new b.sp};
b.sp.create=b.ZP;b.Np=b.lf.extend({update:function(){this.target.visible=!this.target.visible},reverse:function(){return new b.Np},k:function(){return new b.Np}});b.aT=function(){return new b.Np};b.Np.create=b.aT;b.yp=b.lf.extend({Iq:!0,ctor:function(a){b.hg.prototype.ctor.call(this);void 0!==a&&this.fa(a)},update:function(){this.target.ay(this.Iq)},fa:function(a){this.Iq=a;return!0},reverse:function(){return new b.yp(this.Iq)},k:function(){return new b.yp(this.Iq)}});b.qR=function(a){return new b.yp(a)};
b.yp.create=b.qR;b.qp=b.lf.extend({jc:!1,ctor:function(a){b.hg.prototype.ctor.call(this);this.jc=!1;void 0!==a&&this.rE(a)},rE:function(a){this.jc=a;return!0},update:function(){this.target.flippedX=this.jc},reverse:function(){return new b.qp(!this.jc)},k:function(){var a=new b.qp;a.rE(this.jc);return a}});b.QO=function(a){return new b.qp(a)};b.qp.create=b.QO;
b.rp=b.lf.extend({kc:!1,ctor:function(a){b.hg.prototype.ctor.call(this);this.kc=!1;void 0!==a&&this.sE(a)},sE:function(a){this.kc=a;return!0},update:function(){this.target.flippedY=this.kc},reverse:function(){return new b.rp(!this.kc)},k:function(){var a=new b.rp;a.sE(this.kc);return a}});b.RO=function(a){return new b.rp(a)};b.rp.create=b.RO;
b.Dt=b.lf.extend({$e:0,bd:0,ctor:function(a,c){b.hg.prototype.ctor.call(this);this.bd=this.$e=0;void 0!==a&&(void 0!==a.x&&(c=a.y,a=a.x),this.yE(a,c))},yE:function(a,c){this.$e=a;this.bd=c;return!0},update:function(){this.target.gb(this.$e,this.bd)},k:function(){var a=new b.Dt;a.yE(this.$e,this.bd);return a}});b.aR=function(a,c){return new b.Dt(a,c)};b.Dt.create=b.aR;
b.dt=b.lf.extend({Ih:null,yq:null,Ou:null,ctor:function(a,c,d){b.hg.prototype.ctor.call(this);this.tE(a,c,d)},tE:function(a,c,d){a&&(this.yq=a);c&&(this.Ih=c);void 0!==d&&(this.Ou=d);return!0},execute:function(){this.yq&&this.yq.call(this.Ih,this.target,this.Ou)},update:function(){this.execute()},c0:function(){return this.Ih},o5:function(a){a!==this.Ih&&(this.Ih&&(this.Ih=null),this.Ih=a)},k:function(){var a=new b.dt;a.tE(this.yq,this.Ih,this.Ou);return a}});
b.NN=function(a,c,d){return new b.dt(a,c,d)};b.dt.create=b.NN;b.Ys=b.C.extend({Du:0,Eu:0,Fu:0,TA:0,UA:0,VA:0,dD:0,eD:0,fD:0,ctor:function(){b.C.prototype.ctor.call(this);this.fD=this.eD=this.dD=this.VA=this.UA=this.TA=this.Fu=this.Eu=this.Du=0},G:function(a){b.C.prototype.G.call(this,a);a=a.zx();var c=a.WD();this.Du=c.x;this.Eu=c.y;this.Fu=c.z;c=a.YD();this.TA=c.x;this.UA=c.y;this.VA=c.z;a=a.QP();this.dD=a.x;this.eD=a.y;this.fD=a.z},k:function(){return new b.Ys},reverse:function(){return new b.Bp(this)}});
b.At=b.Ys.extend({pn:0,Qu:0,Em:0,iA:0,Je:0,hA:0,hC:0,fC:0,gC:0,eC:0,ctor:function(a,c,d,e,f,g,h){b.Ys.prototype.ctor.call(this);void 0!==h&&this.s(a,c,d,e,f,g,h)},s:function(a,c,d,e,f,g,h){return b.C.prototype.s.call(this,a)?(this.pn=c,this.Qu=d,this.Em=e,this.iA=f,this.Je=g,this.hA=h,this.fC=b.ye(f),this.eC=b.ye(h),!0):!1},HS:function(){var a,c;c=this.target.zx();var d=c.YD();a=c.WD();c=d.x-a.x;var e=d.y-a.y;a=d.z-a.z;var d=Math.sqrt(Math.pow(c,2)+Math.pow(e,2)+Math.pow(a,2)),f=Math.sqrt(Math.pow(c,
2)+Math.pow(e,2));0===f&&(f=b.np);0===d&&(d=b.np);a=Math.acos(a/d);c=0>c?Math.PI-Math.asin(e/f):Math.asin(e/f);return{RQ:d/b.Ol.el(),jT:a,azimuth:c}},G:function(a){b.C.prototype.G.call(this,a);a=this.HS();isNaN(this.pn)&&(this.pn=a.RQ);isNaN(this.Em)&&(this.Em=b.Yx(a.jT));isNaN(this.Je)&&(this.Je=b.Yx(a.azimuth));this.hC=b.ye(this.Em);this.gC=b.ye(this.Je)},k:function(){var a=new b.At;a.s(this.N,this.pn,this.Qu,this.Em,this.iA,this.Je,this.hA);return a},update:function(a){a=this.Vb(a);var c=(this.pn+
this.Qu*a)*b.Ol.el(),d=this.hC+this.fC*a,e=this.gC+this.eC*a;a=Math.sin(d)*Math.cos(e)*c+this.Du;e=Math.sin(d)*Math.sin(e)*c+this.Eu;c=Math.cos(d)*c+this.Fu;this.target.zx().tF(a,e,c);this.target.ah()}});b.VQ=function(a,c,d,e,f,g,h){return new b.At(a,c,d,e,f,g,h)};b.At.create=b.VQ;b.pa=b.C.extend({p:null,ctor:function(a){b.C.prototype.ctor.call(this);a&&this.R(a)},R:function(a){if(!a)throw Error("cc.ActionEase.initWithAction(): action must be non nil");return this.s(a.Ax())?(this.p=a,!0):!1},k:function(){var a=new b.pa;a.R(this.p.k());return a},G:function(a){b.C.prototype.G.call(this,a);this.p.G(this.target)},stop:function(){this.p.stop();b.C.prototype.stop.call(this)},update:function(a){this.p.update(a)},reverse:function(){return new b.pa(this.p.reverse())},Dx:function(){return this.p}});
b.dN=function(a){return new b.pa(a)};b.pa.create=b.dN;b.hi=b.pa.extend({cb:0,ctor:function(a,c){b.pa.prototype.ctor.call(this);void 0!==c&&this.R(a,c)},f5:function(a){this.cb=a},O_:function(){return this.cb},R:function(a,c){return b.pa.prototype.R.call(this,a)?(this.cb=c,!0):!1},k:function(){var a=new b.hi;a.R(this.p.k(),this.cb);return a},reverse:function(){return new b.hi(this.p.reverse(),1/this.cb)}});b.AO=function(a,c){return new b.hi(a,c)};b.hi.create=b.AO;
b.hp=b.hi.extend({update:function(a){this.p.update(Math.pow(a,this.cb))},reverse:function(){return new b.hp(this.p.reverse(),1/this.cb)},k:function(){var a=new b.hp;a.R(this.p.k(),this.cb);return a}});b.hp.create=function(a,c){return new b.hp(a,c)};b.SD=function(a){return{cb:a,oa:function(a){return Math.pow(a,this.cb)},reverse:function(){return b.SD(1/this.cb)}}};
b.jp=b.hi.extend({update:function(a){this.p.update(Math.pow(a,1/this.cb))},reverse:function(){return new b.jp(this.p.reverse(),1/this.cb)},k:function(){var a=new b.jp;a.R(this.p.k(),this.cb);return a}});b.jp.create=function(a,c){return new b.jp(a,c)};b.zO=function(a){return{cb:a,oa:function(a){return Math.pow(a,1/this.cb)},reverse:function(){return b.zO(1/this.cb)}}};
b.ip=b.hi.extend({update:function(a){a*=2;1>a?this.p.update(0.5*Math.pow(a,this.cb)):this.p.update(1-0.5*Math.pow(2-a,this.cb))},k:function(){var a=new b.ip;a.R(this.p.k(),this.cb);return a},reverse:function(){return new b.ip(this.p.reverse(),this.cb)}});b.ip.create=function(a,c){return new b.ip(a,c)};b.yO=function(a){return{cb:a,oa:function(a){a*=2;return 1>a?0.5*Math.pow(a,this.cb):1-0.5*Math.pow(2-a,this.cb)},reverse:function(){return b.yO(this.cb)}}};
b.ep=b.pa.extend({update:function(a){this.p.update(0===a?0:Math.pow(2,10*(a-1)))},reverse:function(){return new b.gp(this.p.reverse())},k:function(){var a=new b.ep;a.R(this.p.k());return a}});b.ep.create=function(a){return new b.ep(a)};b.AA={oa:function(a){return 0===a?0:Math.pow(2,10*(a-1))},reverse:function(){return b.CA}};b.MY=function(){return b.AA};
b.gp=b.pa.extend({update:function(a){this.p.update(1===a?1:-Math.pow(2,-10*a)+1)},reverse:function(){return new b.ep(this.p.reverse())},k:function(){var a=new b.gp;a.R(this.p.k());return a}});b.gp.create=function(a){return new b.gp(a)};b.CA={oa:function(a){return 1===a?1:-Math.pow(2,-10*a)+1},reverse:function(){return b.AA}};b.OY=function(){return b.CA};
b.fp=b.pa.extend({update:function(a){1!==a&&0!==a&&(a*=2,a=1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2));this.p.update(a)},reverse:function(){return new b.fp(this.p.reverse())},k:function(){var a=new b.fp;a.R(this.p.k());return a}});b.fp.create=function(a){return new b.fp(a)};b.BA={oa:function(a){return 1!==a&&0!==a?(a*=2,1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2)):a},reverse:function(){return b.BA}};b.NY=function(){return b.BA};
b.kp=b.pa.extend({update:function(a){a=0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1;this.p.update(a)},reverse:function(){return new b.mp(this.p.reverse())},k:function(){var a=new b.kp;a.R(this.p.k());return a}});b.kp.create=function(a){return new b.kp(a)};b.MA={oa:function(a){return 0===a||1===a?a:-1*Math.cos(a*Math.PI/2)+1},reverse:function(){return b.OA}};b.YY=function(){return b.MA};
b.mp=b.pa.extend({update:function(a){a=0===a||1===a?a:Math.sin(a*Math.PI/2);this.p.update(a)},reverse:function(){return new b.kp(this.p.reverse())},k:function(){var a=new b.mp;a.R(this.p.k());return a}});b.mp.create=function(a){return new b.mp(a)};b.OA={oa:function(a){return 0===a||1===a?a:Math.sin(a*Math.PI/2)},reverse:function(){return b.MA}};b.$Y=function(){return b.OA};
b.lp=b.pa.extend({update:function(a){a=0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1);this.p.update(a)},k:function(){var a=new b.lp;a.R(this.p.k());return a},reverse:function(){return new b.lp(this.p.reverse())}});b.lp.create=function(a){return new b.lp(a)};b.NA={oa:function(a){return 0===a||1===a?a:-0.5*(Math.cos(Math.PI*a)-1)},reverse:function(){return b.NA}};b.ZY=function(){return b.NA};
b.Bj=b.pa.extend({Ka:0.3,ctor:function(a,c){b.pa.prototype.ctor.call(this);a&&this.R(a,c)},H_:function(){return this.Ka},b5:function(a){this.Ka=a},R:function(a,c){b.pa.prototype.R.call(this,a);this.Ka=null==c?0.3:c;return!0},reverse:function(){b.log("cc.EaseElastic.reverse(): it should be overridden in subclass.");return null},k:function(){var a=new b.Bj;a.R(this.p.k(),this.Ka);return a}});b.Bj.create=function(a,c){return new b.Bj(a,c)};
b.bp=b.Bj.extend({update:function(a){var c=0;0===a||1===a?c=a:(c=this.Ka/4,a-=1,c=-Math.pow(2,10*a)*Math.sin((a-c)*Math.PI*2/this.Ka));this.p.update(c)},reverse:function(){return new b.dp(this.p.reverse(),this.Ka)},k:function(){var a=new b.bp;a.R(this.p.k(),this.Ka);return a}});b.bp.create=function(a,c){return new b.bp(a,c)};b.yA={oa:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)},reverse:function(){return b.zA}};
b.vO=function(a){return a&&0.3!==a?{Ka:a,oa:function(a){if(0===a||1===a)return a;a-=1;return-Math.pow(2,10*a)*Math.sin((a-this.Ka/4)*Math.PI*2/this.Ka)},reverse:function(){return b.xO(this.Ka)}}:b.yA};b.dp=b.Bj.extend({update:function(a){var c=0,c=0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-this.Ka/4)*Math.PI*2/this.Ka)+1;this.p.update(c)},reverse:function(){return new b.bp(this.p.reverse(),this.Ka)},k:function(){var a=new b.dp;a.R(this.p.k(),this.Ka);return a}});
b.dp.create=function(a,c){return new b.dp(a,c)};b.zA={oa:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-0.075)*Math.PI*2/0.3)+1},reverse:function(){return b.yA}};b.xO=function(a){return a&&0.3!==a?{Ka:a,oa:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin((a-this.Ka/4)*Math.PI*2/this.Ka)+1},reverse:function(){return b.vO(this.Ka)}}:b.zA};
b.cp=b.Bj.extend({update:function(a){var c=0,c=this.Ka;if(0===a||1===a)c=a;else{c||(c=this.Ka=0.3*1.5);var d=c/4;a=2*a-1;c=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-d)*Math.PI*2/c):Math.pow(2,-10*a)*Math.sin((a-d)*Math.PI*2/c)*0.5+1}this.p.update(c)},reverse:function(){return new b.cp(this.p.reverse(),this.Ka)},k:function(){var a=new b.cp;a.R(this.p.k(),this.Ka);return a}});b.cp.create=function(a,c){return new b.cp(a,c)};
b.wO=function(a){return{Ka:a||0.3,oa:function(a){var d=0,d=this.Ka;if(0===a||1===a)d=a;else{d||(d=this.Ka=0.3*1.5);var e=d/4;a=2*a-1;d=0>a?-0.5*Math.pow(2,10*a)*Math.sin((a-e)*Math.PI*2/d):Math.pow(2,-10*a)*Math.sin((a-e)*Math.PI*2/d)*0.5+1}return d},reverse:function(){return b.wO(this.Ka)}}};
b.gi=b.pa.extend({Ar:function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375},k:function(){var a=new b.gi;a.R(this.p.k());return a},reverse:function(){return new b.gi(this.p.reverse())}});b.gi.create=function(a){return new b.gi(a)};
b.Zo=b.gi.extend({update:function(a){this.p.update(1-this.Ar(1-a))},reverse:function(){return new b.ap(this.p.reverse())},k:function(){var a=new b.Zo;a.R(this.p.k());return a}});b.Zo.create=function(a){return new b.Zo(a)};b.aq=function(a){if(a<1/2.75)return 7.5625*a*a;if(a<2/2.75)return a-=1.5/2.75,7.5625*a*a+0.75;if(a<2.5/2.75)return a-=2.25/2.75,7.5625*a*a+0.9375;a-=2.625/2.75;return 7.5625*a*a+0.984375};b.pA={oa:function(a){return 1-b.aq(1-a)},reverse:function(){return b.rA}};b.DY=function(){return b.pA};
b.ap=b.gi.extend({update:function(a){this.p.update(this.Ar(a))},reverse:function(){return new b.Zo(this.p.reverse())},k:function(){var a=new b.ap;a.R(this.p.k());return a}});b.ap.create=function(a){return new b.ap(a)};b.rA={oa:function(a){return b.aq(a)},reverse:function(){return b.pA}};b.FY=function(){return b.rA};b.$o=b.gi.extend({update:function(a){var c=0,c=0.5>a?0.5*(1-this.Ar(1-2*a)):0.5*this.Ar(2*a-1)+0.5;this.p.update(c)},k:function(){var a=new b.$o;a.R(this.p.k());return a},reverse:function(){return new b.$o(this.p.reverse())}});
b.$o.create=function(a){return new b.$o(a)};b.qA={oa:function(a){return a=0.5>a?0.5*(1-b.aq(1-2*a)):0.5*b.aq(2*a-1)+0.5},reverse:function(){return b.qA}};b.EY=function(){return b.qA};b.Wo=b.pa.extend({update:function(a){this.p.update(0===a||1===a?a:a*a*(2.70158*a-1.70158))},reverse:function(){return new b.Yo(this.p.reverse())},k:function(){var a=new b.Wo;a.R(this.p.k());return a}});b.Wo.create=function(a){return new b.Wo(a)};b.mA={oa:function(a){return 0===a||1===a?a:a*a*(2.70158*a-1.70158)},reverse:function(){return b.oA}};
b.AY=function(){return b.mA};b.Yo=b.pa.extend({update:function(a){a-=1;this.p.update(a*a*(2.70158*a+1.70158)+1)},reverse:function(){return new b.Wo(this.p.reverse())},k:function(){var a=new b.Yo;a.R(this.p.k());return a}});b.Yo.create=function(a){return new b.Yo(a)};b.oA={oa:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},reverse:function(){return b.mA}};b.CY=function(){return b.oA};
b.Xo=b.pa.extend({update:function(a){a*=2;1>a?this.p.update(a*a*(3.5949095*a-2.5949095)/2):(a-=2,this.p.update(a*a*(3.5949095*a+2.5949095)/2+1))},k:function(){var a=new b.Xo;a.R(this.p.k());return a},reverse:function(){return new b.Xo(this.p.reverse())}});b.Xo.create=function(a){return new b.Xo(a)};b.nA={oa:function(a){a*=2;if(1>a)return a*a*(3.5949095*a-2.5949095)/2;a-=2;return a*a*(3.5949095*a+2.5949095)/2+1},reverse:function(){return b.nA}};b.BY=function(){return b.nA};
b.Rl=b.pa.extend({Uq:null,Vq:null,Wq:null,Xq:null,ctor:function(a){b.pa.prototype.ctor.call(this,a)},aa:function(a,c,d,e,f){return Math.pow(1-f,3)*a+3*f*Math.pow(1-f,2)*c+3*Math.pow(f,2)*(1-f)*d+Math.pow(f,3)*e},update:function(a){this.p.update(this.aa(this.Uq,this.Vq,this.Wq,this.Xq,a))},k:function(){var a=new b.Rl;a.R(this.p.k());a.pF(this.Uq,this.Vq,this.Wq,this.Xq);return a},reverse:function(){var a=new b.Rl(this.p.reverse());a.pF(this.Xq,this.Wq,this.Vq,this.Uq);return a},pF:function(a,c,d,e){this.Uq=
a||0;this.Vq=c||0;this.Wq=d||0;this.Xq=e||0}});b.Rl.create=function(a){return new b.Rl(a)};b.uO=function(a,c,d,e){return{oa:function(f){return b.Rl.prototype.aa(a,c,d,e,f)},reverse:function(){return b.uO(e,d,c,a)}}};b.Yl=b.pa.extend({aa:function(a){return Math.pow(a,2)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Yl;a.R(this.p.k());return a},reverse:function(){return new b.Yl(this.p.reverse())}});b.Yl.create=function(a){return new b.Yl(a)};b.DA={oa:b.Yl.prototype.aa,reverse:function(){return b.DA}};
b.PY=function(){return b.DA};b.$l=b.pa.extend({aa:function(a){return-a*(a-2)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.$l;a.R();return a},reverse:function(){return new b.$l(this.p.reverse())}});b.$l.create=function(a){return new b.$l(a)};b.FA={oa:b.$l.prototype.aa,reverse:function(){return b.FA}};b.RY=function(){return b.FA};
b.Zl=b.pa.extend({aa:function(a){var c=a;a*=2;1>a?c=a*a*0.5:(--a,c=-0.5*(a*(a-2)-1));return c},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Zl;a.R(this.p.k());return a},reverse:function(){return new b.Zl(this.p.reverse())}});b.Zl.create=function(a){return new b.Zl(a)};b.EA={oa:b.Zl.prototype.aa,reverse:function(){return b.EA}};b.QY=function(){return b.EA};
b.am=b.pa.extend({aa:function(a){return a*a*a*a},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.am;a.R(this.p.k());return a},reverse:function(){return new b.am(this.p.reverse())}});b.am.create=function(a){return new b.am(a)};b.GA={oa:b.am.prototype.aa,reverse:function(){return b.GA}};b.SY=function(){return b.GA};b.cm=b.pa.extend({aa:function(a){a-=1;return-(a*a*a*a-1)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.cm;a.R(this.p.k());return a},reverse:function(){return new b.cm(this.p.reverse())}});
b.cm.create=function(a){return new b.cm(a)};b.IA={oa:b.cm.prototype.aa,reverse:function(){return b.IA}};b.UY=function(){return b.IA};b.bm=b.pa.extend({aa:function(a){a*=2;if(1>a)return 0.5*a*a*a*a;a-=2;return-0.5*(a*a*a*a-2)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.bm;a.R(this.p.k());return a},reverse:function(){return new b.bm(this.p.reverse())}});b.bm.create=function(a){return new b.bm(a)};b.HA={oa:b.bm.prototype.aa,reverse:function(){return b.HA}};b.TY=function(){return b.HA};
b.dm=b.pa.extend({aa:function(a){return a*a*a*a*a},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.dm;a.R(this.p.k());return a},reverse:function(){return new b.dm(this.p.reverse())}});b.dm.create=function(a){return new b.dm(a)};b.JA={oa:b.dm.prototype.aa,reverse:function(){return b.JA}};b.VY=function(){return b.JA};b.fm=b.pa.extend({aa:function(a){a-=1;return a*a*a*a*a+1},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.fm;a.R(this.p.k());return a},reverse:function(){return new b.fm(this.p.reverse())}});
b.fm.create=function(a){return new b.fm(a)};b.LA={oa:b.fm.prototype.aa,reverse:function(){return b.LA}};b.XY=function(){return b.LA};b.em=b.pa.extend({aa:function(a){a*=2;if(1>a)return 0.5*a*a*a*a*a;a-=2;return 0.5*(a*a*a*a*a+2)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.em;a.R(this.p.k());return a},reverse:function(){return new b.em(this.p.reverse())}});b.em.create=function(a){return new b.em(a)};b.KA={oa:b.em.prototype.aa,reverse:function(){return b.KA}};b.WY=function(){return b.KA};
b.Sl=b.pa.extend({aa:function(a){return-1*(Math.sqrt(1-a*a)-1)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Sl;a.R(this.p.k());return a},reverse:function(){return new b.Sl(this.p.reverse())}});b.Sl.create=function(a){return new b.Sl(a)};b.sA={oa:b.Sl.prototype.aa,reverse:function(){return b.sA}};b.GY=function(){return b.sA};
b.Ul=b.pa.extend({aa:function(a){a-=1;return Math.sqrt(1-a*a)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Ul;a.R(this.p.k());return a},reverse:function(){return new b.Ul(this.p.reverse())}});b.Ul.create=function(a){return new b.Ul(a)};b.uA={oa:b.Ul.prototype.aa,reverse:function(){return b.uA}};b.IY=function(){return b.uA};
b.Tl=b.pa.extend({aa:function(a){a*=2;if(1>a)return-0.5*(Math.sqrt(1-a*a)-1);a-=2;return 0.5*(Math.sqrt(1-a*a)+1)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Tl;a.R(this.p.k());return a},reverse:function(){return new b.Tl(this.p.reverse())}});b.Tl.create=function(a){return new b.Tl(a)};b.tA={oa:b.Tl.prototype.aa,reverse:function(){return b.tA}};b.HY=function(){return b.tA};
b.Vl=b.pa.extend({aa:function(a){return a*a*a},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Vl;a.R(this.p.k());return a},reverse:function(){return new b.Vl(this.p.reverse())}});b.Vl.create=function(a){return new b.Vl(a)};b.vA={oa:b.Vl.prototype.aa,reverse:function(){return b.vA}};b.JY=function(){return b.vA};b.Xl=b.pa.extend({aa:function(a){a-=1;return a*a*a+1},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Xl;a.R(this.p.k());return a},reverse:function(){return new b.Xl(this.p.reverse())}});
b.Xl.create=function(a){return new b.Xl(a)};b.xA={oa:b.Xl.prototype.aa,reverse:function(){return b.xA}};b.LY=function(){return b.xA};b.Wl=b.pa.extend({aa:function(a){a*=2;if(1>a)return 0.5*a*a*a;a-=2;return 0.5*(a*a*a+2)},update:function(a){this.p.update(this.aa(a))},k:function(){var a=new b.Wl;a.R(this.p.k());return a},reverse:function(){return new b.Wl(this.p.reverse())}});b.Wl.create=function(a){return new b.Wl(a)};b.wA={oa:b.Wl.prototype.aa,reverse:function(){return b.wA}};b.KY=function(){return b.wA};b.Br=function(a,c,d,e,f,g){var h=g*g,k=h*g,m=(1-f)/2;f=m*(-k+2*h-g);var n=m*(-k+h)+(2*k-3*h+1);g=m*(k-2*h+g)+(-2*k+3*h);h=m*(k-h);return b.i(a.x*f+c.x*n+d.x*g+e.x*h,a.y*f+c.y*n+d.y*g+e.y*h)};b.hF=function(a){for(var c=[],d=a.length-1;0<=d;d--)c.push(b.i(a[d].x,a[d].y));return c};b.UN=function(a){for(var c=[],d=0;d<a.length;d++)c.push(b.i(a[d].x,a[d].y));return c};b.Hr=b.UN;b.Pb=function(a,c){var d=Math.min(a.length-1,Math.max(c,0));return a[d]};
b.T3=function(a){for(var c=a.length,d=0|c/2,e=0;e<d;++e){var f=a[e];a[e]=a[c-e-1];a[c-e-1]=f}};
b.gg=b.C.extend({Te:null,jA:0,Hk:0,Hb:null,Cz:null,ctor:function(a,c,d){b.C.prototype.ctor.call(this);this.Te=[];void 0!==d&&this.s(a,c,d)},s:function(a,c,d){if(!c||0===c.length)throw Error("Invalid configuration. It must at least have one control point");return b.C.prototype.s.call(this,a)?(this.$R(c),this.Hk=d,!0):!1},k:function(){var a=new b.gg;a.s(this.N,b.Hr(this.Te),this.Hk);return a},G:function(a){b.C.prototype.G.call(this,a);this.jA=1/(this.Te.length-1);this.Hb=b.i(this.target.yd(),this.target.df());
this.Cz=b.i(0,0)},update:function(a){a=this.Vb(a);var c,d=this.Te;if(1===a)c=d.length-1,a=1;else{var e=this.jA;c=0|a/e;a=(a-e*c)/e}c=b.Br(b.Pb(d,c-1),b.Pb(d,c-0),b.Pb(d,c+1),b.Pb(d,c+2),this.Hk,a);b.So&&(d=this.target.yd()-this.Hb.x,a=this.target.df()-this.Hb.y,0!==d||0!==a)&&(e=this.Cz,d=e.x+d,a=e.y+a,e.x=d,e.y=a,c.x+=d,c.y+=a);this.XF(c)},reverse:function(){var a=b.hF(this.Te);return b.AD(this.N,a,this.Hk)},XF:function(a){this.target.gb(a);this.Hb=a},I_:function(){return this.Te},$R:function(a){this.Te=
a}});b.AD=function(a,c,d){return new b.gg(a,c,d)};b.gg.create=b.AD;
b.Pl=b.gg.extend({Bb:null,ctor:function(a,c,d){b.gg.prototype.ctor.call(this);this.Bb=b.i(0,0);void 0!==d&&this.s(a,c,d)},G:function(a){b.gg.prototype.G.call(this,a);this.Bb.x=a.yd();this.Bb.y=a.df()},reverse:function(){for(var a=this.Te.slice(),c,d=a[0],e=1;e<a.length;++e)c=a[e],a[e]=b.Kc(c,d),d=c;a=b.hF(a);d=a[a.length-1];a.pop();d.x=-d.x;d.y=-d.y;a.unshift(d);for(e=1;e<a.length;++e)c=a[e],c.x=-c.x,c.y=-c.y,c.x+=d.x,c.y+=d.y,d=a[e]=c;return b.zD(this.N,a,this.Hk)},XF:function(a){var c=this.Bb,d=
a.x+c.x;a=a.y+c.y;this.Hb.x=d;this.Hb.y=a;this.target.gb(d,a)},k:function(){var a=new b.Pl;a.s(this.N,b.Hr(this.Te),this.Hk);return a}});b.zD=function(a,c,d){return new b.Pl(a,c,d)};b.Pl.create=b.zD;b.gt=b.gg.extend({ctor:function(a,c){c&&this.s(a,c)},s:function(a,c){return b.gg.prototype.s.call(this,a,c,0.5)},k:function(){var a=new b.gt;a.s(this.N,b.Hr(this.Te));return a}});b.PN=function(a,c){return new b.gt(a,c)};b.gt.create=b.PN;
b.ft=b.Pl.extend({ctor:function(a,c){b.Pl.prototype.ctor.call(this);c&&this.s(a,c)},s:function(a,c){return b.gg.prototype.s.call(this,a,c,0.5)},k:function(){var a=new b.ft;a.s(this.N,b.Hr(this.Te));return a}});b.ON=function(a,c){return new b.ft(a,c)};b.ft.create=b.ON;b.xT=b.Aa.extend({fT:function(){}});
b.No=b.C.extend({key:"",Nr:0,Ts:0,iO:0,ctor:function(a,c,d,e){b.C.prototype.ctor.call(this);this.key="";void 0!==e&&this.s(a,c,d,e)},s:function(a,c,d,e){return b.C.prototype.s.call(this,a)?(this.key=c,this.Ts=e,this.Nr=d,!0):!1},G:function(a){if(!a||!a.fT)throw Error("cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function");b.C.prototype.G.call(this,a);this.iO=this.Ts-this.Nr},update:function(){},reverse:function(){return new b.No(this.duration,this.key,
this.Ts,this.Nr)},k:function(){var a=new b.No;a.s(this.N,this.key,this.Nr,this.Ts);return a}});b.fN=function(a,c,d,e){return new b.No(a,c,d,e)};b.No.create=b.fN;b.Aq=b.fH;b.Xm="Arial";b.jB=!1;
b.wb=b.e.extend({pd:!1,$b:null,Ub:null,bn:!1,pc:"MenuItem",ctor:function(a,c){var d=b.e.prototype;d.ctor.call(this);this.Ub=this.$b=null;this.pd=this.bn=!1;d.cg.call(this,0.5,0.5);this.$b=c||null;if(this.Ub=a||null)this.pd=!0},i1:function(){return this.bn},tj:function(){},Yh:function(){return!1},oS:function(a,c){this.$b=c;this.Ub=a},isEnabled:function(){return this.pd},Xd:function(a){this.pd=a},hj:function(a,c){this.anchorY=this.anchorX=0.5;this.$b=c;this.Ub=a;this.pd=!0;this.bn=!1;return!0},rect:function(){var a=
this.re,c=this.K,d=this.je;return b.rect(a.x-c.width*d.x,a.y-c.height*d.y,c.width,c.height)},selected:function(){this.bn=!0},kf:function(){this.bn=!1},o4:function(a,c){this.$b=c;this.Ub=a},In:function(){if(this.pd){var a=this.$b,c=this.Ub;if(c)if(a&&b.Cd(c))a[c](this);else a&&b.mc(c)?c.call(a,this):c(this)}}});w=b.wb.prototype;b.m(w,"enabled",w.isEnabled,w.Xd);b.wb.create=function(a,c){return new b.wb(a,c)};
b.ni=b.wb.extend({Yj:null,Ec:null,sk:0,Jm:null,ctor:function(a,c,d){b.wb.prototype.ctor.call(this,c,d);this.Jm=this.Ec=this.Yj=null;a&&(this.sk=1,this.Jm=b.color.WHITE,this.Yj=b.color(126,126,126),this.Hs(a),this.sj(!0),this.yl(!0))},gP:function(){return this.Yj},MR:function(a){this.Yj=a},oP:function(){return this.Ec},Hs:function(a){a&&(this.ea(a),a.anchorX=0,a.anchorY=0,this.width=a.width,this.height=a.height,a.sj(!0));this.Ec&&this.removeChild(this.Ec,!0);this.Ec=a},Xd:function(a){this.pd!==a&&
(a?this.Ea(this.Jm):(this.Jm=this.color,this.Ea(this.Yj)));b.wb.prototype.Xd.call(this,a)},vE:function(a,c,d){this.hj(c,d);this.sk=1;this.Jm=b.color.WHITE;this.Yj=b.color(126,126,126);this.Hs(a);this.sj(!0);this.yl(!0);return!0},oc:function(a){this.Ec.string=a;this.width=this.Ec.width;this.height=this.Ec.height},gj:function(){return this.Ec.string},In:function(){this.pd&&(this.py(),this.scale=this.sk,b.wb.prototype.In.call(this))},selected:function(){if(this.pd){b.wb.prototype.selected.call(this);
var a=this.xx(b.Tp);a?this.MS(a):this.sk=this.scale;a=b.gy(0.1,1.2*this.sk);a.Os(b.Tp);this.ey(a)}},kf:function(){if(this.pd){b.wb.prototype.kf.call(this);this.NS(b.Tp);var a=b.gy(0.1,this.sk);a.Os(b.Tp);this.ey(a)}}});w=b.ni.prototype;b.m(w,"string",w.gj,w.oc);b.m(w,"disabledColor",w.gP,w.MR);b.m(w,"label",w.oP,w.Hs);b.ni.create=function(a,c,d){return new b.ni(a,c,d)};
b.Xy=b.ni.extend({ctor:function(a,c,d,e,f,g,h){var k;a&&0<a.length&&(k=new b.gd(a,c,d,e,f));b.ni.prototype.ctor.call(this,k,g,h)},Td:function(a,c,d,e,f,g,h){if(!a||0===a.length)throw Error("cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0");var k=new b.gd;k.Td(a,c,d,e,f);this.vE(k,g,h);return!0}});b.Xy.create=function(a,c,d,e,f,g,h){return new b.Xy(a,c,d,e,f,g,h)};
b.mi=b.ni.extend({Ya:null,Xa:null,ctor:function(a,c,d){var e;a&&0<a.length?(this.Xa=b.Xm,this.Ya=b.Aq,e=new b.A(a,this.Xa,this.Ya)):(this.Ya=0,this.Xa="");b.ni.prototype.ctor.call(this,e,c,d)},Td:function(a,c,d){if(!a||0===a.length)throw Error("Value should be non-null and its length should be greater than 0");this.Xa=b.Xm;this.Ya=b.Aq;a=new b.A(a,this.Xa,this.Ya);this.vE(a,c,d);return!0},Gs:function(a){this.Ya=a;this.iC()},Cx:function(){return this.Ya},Fs:function(a){this.Xa=a;this.iC()},Bx:function(){return this.Xa},
iC:function(){var a=new b.A(this.Ec.string,this.Xa,this.Ya);this.Hs(a)}});b.mi.Gs=function(a){b.Aq=a};b.mi.fontSize=function(){return b.Aq};b.mi.Fs=function(a){b.jB&&(b.Xm="");b.Xm=a;b.jB=!0};w=b.mi.prototype;b.m(w,"fontSize",w.Cx,w.Gs);b.m(w,"fontName",w.Bx,w.Fs);b.mi.fontName=function(){return b.Xm};b.mi.create=function(a,c,d){return new b.mi(a,c,d)};
b.Ej=b.wb.extend({Fc:null,Xe:null,Ne:null,ctor:function(a,c,d,e,f){b.wb.prototype.ctor.call(this);this.Ne=this.Xe=this.Fc=null;if(void 0!==c){var g,h,k;void 0!==f?(g=d,k=e,h=f):void 0!==e&&b.mc(e)?(g=d,k=e):void 0!==e&&b.mc(d)?(h=e,k=d,g=null):void 0===d&&(g=null);this.xE(a,c,g,k,h)}},wP:function(){return this.Fc},ky:function(a){this.Fc!==a&&(a&&(this.ea(a,0,b.sH),a.anchorX=0,a.anchorY=0),this.Fc&&this.removeChild(this.Fc,!0),this.Fc=a)&&(this.width=this.Fc.width,this.height=this.Fc.height,this.vr(),
a.Eo&&!a.L&&a.addEventListener("load",function(a){this.width=a.width;this.height=a.height},this))},FP:function(){return this.Xe},ny:function(a){this.Xe!==a&&(a&&(this.ea(a,0,b.dI),a.anchorX=0,a.anchorY=0),this.Xe&&this.removeChild(this.Xe,!0),this.Xe=a,this.vr())},hP:function(){return this.Ne},jy:function(a){this.Ne!==a&&(a&&(this.ea(a,0,b.FG),a.anchorX=0,a.anchorY=0),this.Ne&&this.removeChild(this.Ne,!0),this.Ne=a,this.vr())},xE:function(a,c,d,e,f){this.hj(e,f);this.ky(a);this.ny(c);this.jy(d);if(a=
this.Fc)this.width=a.width,this.height=a.height,a.Eo&&!a.L&&a.addEventListener("load",function(a){this.width=a.width;this.height=a.height;this.sj(!0);this.yl(!0)},this);this.sj(!0);this.yl(!0);return!0},selected:function(){b.wb.prototype.selected.call(this);this.Fc&&(this.Ne&&(this.Ne.visible=!1),this.Xe?(this.Fc.visible=!1,this.Xe.visible=!0):this.Fc.visible=!0)},kf:function(){b.wb.prototype.kf.call(this);this.Fc&&(this.Fc.visible=!0,this.Xe&&(this.Xe.visible=!1),this.Ne&&(this.Ne.visible=!1))},
Xd:function(a){this.pd!==a&&(b.wb.prototype.Xd.call(this,a),this.vr())},vr:function(){var a=this.Fc,c=this.Xe,d=this.Ne;this.pd?(a&&(a.visible=!0),c&&(c.visible=!1),d&&(d.visible=!1)):d?(a&&(a.visible=!1),c&&(c.visible=!1),d&&(d.visible=!0)):(a&&(a.visible=!0),c&&(c.visible=!1))}});w=b.Ej.prototype;b.m(w,"normalImage",w.wP,w.ky);b.m(w,"selectedImage",w.FP,w.ny);b.m(w,"disabledImage",w.hP,w.jy);b.Ej.create=function(a,c,d,e,f){return new b.Ej(a,c,d,e,f||void 0)};
b.Yy=b.Ej.extend({ctor:function(a,c,d,e,f){var g=null,h=null,k=null,m=null,n=null;void 0===a||null===a?b.Ej.prototype.ctor.call(this):(g=new b.M(a),c&&(h=new b.M(c)),void 0===e?m=d:void 0===f?(m=d,n=e):f&&(k=new b.M(d),m=e,n=f),b.Ej.prototype.ctor.call(this,g,h,k,m,n))},T4:function(a){this.ky(new b.M(a))},k5:function(a){this.ny(new b.M(a))},y4:function(a){this.jy(new b.M(a))},L0:function(a,c,d,e,f){var g=null,h=null,k=null;a&&(g=new b.M(a));c&&(h=new b.M(c));d&&(k=new b.M(d));return this.xE(g,h,k,
e,f)}});b.Yy.create=function(a,c,d,e,f){return new b.Yy(a,c,d,e,f)};
b.vt=b.wb.extend({Qb:null,se:0,Sq:null,Im:null,ctor:function(){b.wb.prototype.ctor.call(this);this.se=0;this.Qb=[];this.Sq=0;this.Im=b.color.WHITE;0<arguments.length&&this.Rx(Array.prototype.slice.apply(arguments))},Zk:function(){return this.Sq},Yd:function(a){this.Sq=a;if(this.Qb&&0<this.Qb.length)for(var c=0;c<this.Qb.length;c++)this.Qb[c].opacity=a;this.Im.a=a},Rg:function(){var a=this.Im;return b.color(a.r,a.g,a.b,a.a)},Ea:function(a){var c=this.Im;c.r=a.r;c.g=a.g;c.b=a.b;if(this.Qb&&0<this.Qb.length)for(c=
0;c<this.Qb.length;c++)this.Qb[c].Ea(a);void 0===a.a||a.cN||this.Yd(a.a)},GP:function(){return this.se},Ls:function(a){if(a!==this.se){this.se=a;(a=this.Uh(b.Gy))&&a.ay(!1);a=this.Qb[this.se];this.ea(a,0,b.Gy);var c=a.width,d=a.height;this.width=c;this.height=d;a.gb(c/2,d/2)}},a0:function(){return this.Qb},m5:function(a){this.Qb=a},Rx:function(a){var c=a.length;b.mc(a[a.length-2])?(this.hj(a[a.length-2],a[a.length-1]),c-=2):b.mc(a[a.length-1])?(this.hj(a[a.length-1],null),c-=1):this.hj(null,null);
for(var d=this.Qb,e=d.length=0;e<c;e++)a[e]&&d.push(a[e]);this.se=b.sz;this.Ls(0);this.sj(!0);this.yl(!0);return!0},iX:function(a){this.Qb.push(a)},In:function(){this.pd&&this.Ls((this.se+1)%this.Qb.length);b.wb.prototype.In.call(this)},selected:function(){b.wb.prototype.selected.call(this);this.Qb[this.se].selected()},kf:function(){b.wb.prototype.kf.call(this);this.Qb[this.se].kf()},Xd:function(a){if(this.pd!==a){b.wb.prototype.Xd.call(this,a);var c=this.Qb;if(c&&0<c.length)for(var d=0;d<c.length;d++)c[d].enabled=
a}},d4:function(){return this.Qb[this.se]},X_:function(){return this.Qb[this.se]},zc:function(){b.e.prototype.zc.call(this);this.Ls(this.se)}});w=b.vt.prototype;b.m(w,"selectedIndex",w.GP,w.Ls);b.vt.create=function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var a=new b.vt;a.Rx(Array.prototype.slice.apply(arguments));return a};b.im=0;b.hm=1;b.UU=-128;b.Jy=5;
b.km=b.Pa.extend({enabled:!1,$a:null,Ze:-1,$C:null,pc:"Menu",ctor:function(a){b.Pa.prototype.ctor.call(this);this.Im=b.color.WHITE;this.enabled=!1;this.Sq=255;this.$a=null;this.Ze=-1;this.$C=b.V.create({event:b.V.sm,El:!0,lj:this.Mv,io:this.bM,ho:this.$L,fo:this.ZL});0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var c=arguments.length,d;if(0===c)d=[];else if(1===c)d=a instanceof Array?a:[a];else if(1<c){d=[];for(var e=0;e<
c;e++)arguments[e]&&d.push(arguments[e])}this.pE(d)},zc:function(){var a=this.$C;a.td||b.Z.addListener(a,this);b.e.prototype.zc.call(this)},isEnabled:function(){return this.enabled},Xd:function(a){this.enabled=a},Rx:function(a){var c=[];if(a)for(var d=0;d<a.length;d++)a[d]&&c.push(a[d]);return this.pE(c)},pE:function(a){if(b.Pa.prototype.fa.call(this)){this.enabled=!0;var c=b.bi;this.gb(c.width/2,c.height/2);this.ed(c);this.cg(0.5,0.5);this.bs(!0);if(a)for(c=0;c<a.length;c++)this.ea(a[c],c);this.$a=
null;this.Ze=b.im;return this.cascadeOpacity=this.cascadeColor=!0}return!1},ea:function(a,c,d){if(!(a instanceof b.wb))throw Error("cc.Menu.addChild() : Menu only supports MenuItem objects as children");b.Pa.prototype.ea.call(this,a,c,d)},rX:function(){this.rN(b.Jy)},rN:function(a){var c=-a,d=this.F,e,f,g,h;if(d&&0<d.length){f=0;for(e=d.length;f<e;f++)c+=d[f].height*d[f].scaleY+a;var k=c/2;f=0;for(e=d.length;f<e;f++)h=d[f],g=h.height,c=h.scaleY,h.gb(0,k-g*c/2),k-=g*c+a}},oX:function(){this.qN(b.Jy)},
qN:function(a){var c=-a,d=this.F,e,f,g,h;if(d&&0<d.length){e=0;for(f=d.length;e<f;e++)c+=d[e].width*d[e].scaleX+a;var k=-c/2;e=0;for(f=d.length;e<f;e++)h=d[e],c=h.scaleX,g=d[e].width,h.gb(k+g*c/2,0),k+=g*c+a}},pX:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");for(var a=[],c=0;c<arguments.length;c++)a.push(arguments[c]);var d=-5,e=0,f=0,g=0,h,k,m,n=this.F;if(n&&0<n.length)for(c=0,m=n.length;c<m;c++)e>=a.length||!(h=
a[e])||(k=n[c].height,f=f>=k||isNaN(k)?f:k,++g,g>=h&&(d+=f+5,f=g=0,++e));var p=b.la.Uf(),r=h=f=e=0,t=0,d=d/2;if(n&&0<n.length)for(c=0,m=n.length;c<m;c++){var s=n[c];0===h&&(h=a[e],t=r=p.width/(1+h));k=s.Ah();f=f>=k||isNaN(k)?f:k;s.gb(t-p.width/2,d-k/2);t+=r;++g;g>=h&&(d-=f+5,f=h=g=0,++e)}},qX:function(){0<arguments.length&&null==arguments[arguments.length-1]&&b.log("parameters should not be ending with null in Javascript");var a=[],c;for(c=0;c<arguments.length;c++)a.push(arguments[c]);var d=[],e=
[],f=-10,g=-5,h=0,k=0,m=0,n,p,r,t,s=this.F;if(s&&0<s.length)for(c=0,r=s.length;c<r;c++)(p=s[c],h>=a.length||!(n=a[h]))||(t=p.width,k=k>=t||isNaN(t)?k:t,g+=p.height+5,++m,m>=n&&(d.push(k),e.push(g),f+=k+10,k=m=0,g=-5,++h));g=b.la.Uf();n=k=h=0;var f=-f/2,u=0;if(s&&0<s.length)for(c=0,r=s.length;c<r;c++)p=s[c],0===n&&(n=a[h],u=e[h]),t=p.Oe(),k=k>=t||isNaN(t)?k:t,p.gb(f+d[h]/2,u-g.height/2),u-=p.height+10,++m,m>=n&&(f+=k+5,k=n=m=0,++h)},removeChild:function(a,c){null!=a&&(a instanceof b.wb?(this.$a===
a&&(this.$a=null),b.e.prototype.removeChild.call(this,a,c)):b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children"))},Mv:function(a,c){var d=c.Lb;if(d.Ze!==b.im||!d.bc||!d.enabled)return!1;for(var e=d.parent;null!=e;e=e.parent)if(!e.bc)return!1;d.$a=d.yB(a);return d.$a?(d.Ze=b.hm,d.$a.selected(),d.$a.ah(),!0):!1},$L:function(a,c){var d=c.Lb;d.Ze!==b.hm?b.log("cc.Menu.onTouchEnded(): invalid state"):(d.$a&&(d.$a.kf(),d.$a.ah(),d.$a.In()),d.Ze=b.im)},ZL:function(a,c){var d=c.Lb;
d.Ze!==b.hm?b.log("cc.Menu.onTouchCancelled(): invalid state"):(d.$a&&(d.$a.kf(),d.$a.ah()),d.Ze=b.im)},bM:function(a,c){var d=c.Lb;if(d.Ze!==b.hm)b.log("cc.Menu.onTouchMoved(): invalid state");else{var e=d.yB(a);e!==d.$a&&(d.$a&&(d.$a.kf(),d.$a.ah()),d.$a=e,d.$a&&(d.$a.selected(),d.$a.ah()))}},Ac:function(){this.Ze===b.hm&&(this.$a&&(this.$a.kf(),this.$a=null),this.Ze=b.im);b.e.prototype.Ac.call(this)},tj:function(){},Yh:function(){return!1},yB:function(a){a=a.ej();var c=this.F,d;if(c&&0<c.length)for(var e=
c.length-1;0<=e;e--)if(d=c[e],d.bc&&d.isEnabled()){var f=d.ix(a),g=d.rect();g.x=0;g.y=0;if(b.WE(g,f))return d}return null}});w=b.km.prototype;b.km.create=function(a){var c=arguments.length;0<c&&null==arguments[c-1]&&b.log("parameters should not be ending with null in Javascript");return 0===c?new b.km:1===c?new b.km(a):new b.km(Array.prototype.slice.call(arguments,0))};b.gd=b.Sb.extend({lb:null,Ev:null,L:!1,pc:"LabelAtlas",ctor:function(a,c,d,e,f){b.Sb.prototype.ctor.call(this);this.f.qF();c&&b.gd.prototype.Td.call(this,a,c,d,e,f)},ld:function(){return b.ta===b.q.ic?new b.gd.B(this):new b.gd.t(this)},Eo:function(){return this.L},Jn:function(a,c){this.addEventListener("load",a,c)},Td:function(a,c,d,e,f){var g=a+"",h,k;if(void 0===d){d=b.O.zd(c);if(1!==parseInt(d.version,10))return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"),
!1;c=b.path.Dr(c,d.textureFilename);e=b.Qa();h=parseInt(d.itemWidth,10)/e;k=parseInt(d.itemHeight,10)/e;d=String.fromCharCode(parseInt(d.firstChar,10))}else h=d||0,k=e||0,d=f||" ";var m=null,m=c instanceof b.ma?c:b.Ra.tc(c);this.L=c=m.L;c||(this.lb=g,m.addEventListener("load",function(){this.ua(m,h,k,g.length);this.string=this.lb;this.Ea(this.f.xb);this.dispatchEvent("load")},this));return this.ua(m,h,k,g.length)?(this.Ev=d,this.string=g,!0):!1},Ea:function(a){b.Sb.prototype.Ea.call(this,a);this.f.Jl()},
gj:function(){return this.lb},ea:function(a,c,d){this.f.Ez(a);b.e.prototype.ea.call(this,a,c,d)},Jl:function(){this.f.Jl()},oc:function(a){a=String(a);var c=a.length;this.lb=a;this.ed(c*this.Ld,this.Vc);this.f.oc(a);this.f.Jl();this.quadsToDraw=c}});var K=b.gd.prototype;b.m(K,"opacity",K.Zk,K.Yd);b.m(K,"color",K.Rg,K.Ea);b.m(K,"string",K.gj,K.oc);b.gd.create=function(a,c,d,e,f){return new b.gd(a,c,d,e,f)};(function(){b.gd.t=function(a){b.Sb.t.call(this,a);this.qb=!1};var a=b.gd.t.prototype=Object.create(b.Sb.t.prototype);a.constructor=b.gd.t;a.qF=function(){var a=this.n;a.Sc=!0;a.Rc=!1};a.Jl=function(){for(var a=this.n,d=a.lb||"",e=d.length,f=this.Rd,g=a.Ld,h=a.Vc,k=0,m=-1;k<e;k++){var n=d.charCodeAt(k)-a.Ev.charCodeAt(0),p=parseInt(n%a.mk,10),n=parseInt(n/a.mk,10);if(!(0>p||0>n||(p=b.rect(p*g,n*h,g,h),n=f.K,0>p.x||0>p.y||p.x+p.width>n.width||p.y+p.height>n.height))){m++;var n=d.charCodeAt(k),r=a.Uh(k);
r?32===n?(r.fa(),r.ub(b.rect(0,0,10,10),!1,b.size(0,0))):(r.ua(f,p),r.visible=!0):(r=new b.M,32===n?(r.fa(),r.ub(b.rect(0,0,10,10),!1,b.size(0,0))):r.ua(f,p),b.e.prototype.ea.call(a,r,0,k));r.gb(m*g+g/2,h/2)}}this.uy(k,m+1)};a.uy=function(a,d){var e=this.n,f=e.K;a!==d&&a*e.Ld===f.width&&e.Vc===f.height&&e.ed(d*e.Ld,e.Vc)};a.oc=function(){var a=this.n;if(a.F)for(var a=a.F,d=a.length,e=0;e<d;e++){var f=a[e];f&&!f.NL&&(f.visible=!1)}};a.Ez=function(){child.NL=!0}})();(function(){b.gd.B=function(a){b.Sb.B.call(this,a);this.qb=!0};var a=b.gd.B.prototype=Object.create(b.Sb.B.prototype);a.constructor=b.gd.B;a.qF=function(){var a=this.n;a.Sc=!0;a.Rc=!0};a.fb=function(a){b.Sb.B.prototype.fb.call(this,a);if(b.hH){var d=this.n;a=d.Sf();var d=d.ZO(),e=d.x,f=d.y;a.width=d.width;a.height=d.height;a=[b.i(e,f),b.i(e+a.width,f),b.i(a.width+e,a.height+f),b.i(e,f+a.height)];b.th.ze(a,4,!0)}};a.Jl=function(){var a=this.n,d=a.lb,e=d.length,f=this.Ga,g=f.texture,h=g.pixelsWidth,
g=g.pixelsHeight,k=a.Ld,m=a.Vc;a.Dq||(k=a.Ld*b.Qa(),m=a.Vc*b.Qa());e>f.Qc&&b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length");for(var n=f.quads,p=this.xb,p={r:p.r,g:p.g,b:p.b,a:a.Gb},r=a.Ld,t=a.Vc,s=0,u=-1;s<e;s++){var v=d.charCodeAt(s)-a.Ev.charCodeAt(0),x=v%a.mk,C=0|v/a.mk;if(!(0>x||0>C||x*r+r>h||C*t+t>g)){u++;var A;b.pt?(x=(2*x*k+1)/(2*h),v=x+(2*k-2)/(2*h),C=(2*C*m+1)/(2*g),A=C+(2*m-2)/(2*g)):(x=x*k/h,v=x+k/h,C=C*m/g,A=C+m/g);var B=n[s],z=B.tl,y=B.tr,F=B.bl,B=B.br;z.texCoords.u=
x;z.texCoords.v=C;y.texCoords.u=v;y.texCoords.v=C;F.texCoords.u=x;F.texCoords.v=A;B.texCoords.u=v;B.texCoords.v=A;F.vertices.x=u*r;F.vertices.y=0;F.vertices.z=0;B.vertices.x=u*r+r;B.vertices.y=0;B.vertices.z=0;z.vertices.x=u*r;z.vertices.y=a.Vc;z.vertices.z=0;y.vertices.x=u*r+r;y.vertices.y=a.Vc;y.vertices.z=0;z.colors=p;y.colors=p;F.colors=p;B.colors=p}}this.uy(s,u+1);0<e&&(f.dirty=!0,a=f.totalQuads,e>a&&f.bQ(e-a))};a.uy=function(a,d){var e=this.n,f=e.K;a!==d&&a*e.Ld===f.width&&e.Vc===f.height&&
e.ed(d*e.Ld,e.Vc)};a.oc=function(a){a=a.length;a>this.Ga.totalQuads&&this.Ga.gF(a)};a.Ez=function(){}})();b.BU=-1;
b.Fe=b.pb.extend({zb:!1,lb:"",Hd:null,wq:"",kk:"",Dm:b.rm,Hn:-1,Mq:!1,Eq:null,rC:null,L:!1,pc:"LabelBMFont",ld:function(){return b.ta===b.q.ic?new b.Fe.B(this):new b.Fe.t(this)},HC:function(a,c){c?this.kk=a:this.lb=a;var d=this.F;if(d)for(var e=0;e<d.length;e++){var f=d[e];f&&f.Qs(!1)}this.L&&(this.Jr(),c&&this.De())},ctor:function(a,c,d,e,f){b.pb.prototype.ctor.call(this);this.Eq=b.i(0,0);this.rC=[];this.Sc=this.Rc=!0;this.Td(a,c,d,e,f)},Eo:function(){return this.L},Jn:function(a,c){this.addEventListener("load",a,
c)},Yh:function(){return this.zb},tj:function(a){this.zb=a;if(a=this.F)for(var c=0;c<a.length;c++){var d=a[c];d&&(d.opacityModifyRGB=this.zb)}},Uj:function(){this.f.Uj()},fa:function(){return this.Td(null,null,null,null,null)},Td:function(a,c,d,e,f){a=a||"";this.Hd&&b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported");if(c){var g=b.O.zd(c);if(!g)return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"),!1;this.Hd=g;this.wq=c;c=b.Ra.tc(g.vD);
(this.L=g=c.L)||c.addEventListener("load",function(a){this.L=!0;this.ua(a,this.kk.length);this.oc(this.kk,!0);this.dispatchEvent("load")},this)}else c=new b.ma,g=new Image,c.Bd(g),this.L=!1;return this.ua(c,a.length)?(this.Dm=e||b.Kp,this.Eq=f||b.i(0,0),this.Hn=null==d?-1:d,this.Bg=255,this.sd=b.color(255,255,255,255),this.K.width=0,this.K.height=0,this.cg(0.5,0.5),this.f.rB(),this.oc(a,!0),!0):!1},Jr:function(){var a=this.f.$||this.textureAtlas.texture,c=0,d=b.size(0,0),e=0,f=1,g=this.lb,h=g?g.length:
0;if(0!==h){var k,m=this.Hd,n=m.FQ,p=m.ex,r=m.TO;for(k=0;k<h-1;k++)10===g.charCodeAt(k)&&f++;var t=p*f,f=-(p-p*f),s=-1;for(k=0;k<h;k++)if(p=g.charCodeAt(k),0!==p)if(10===p)c=0,f-=m.ex;else{var s=n[s<<16|p&65535]||0,u=r[p];u||(b.log("cocos2d: LabelBMFont: character not found "+g[k]),u={rect:{x:0,y:0,width:0,height:0},Lo:0,aG:0,Xs:0});var v=b.rect(u.rect.x,u.rect.y,u.rect.width,u.rect.height),v=b.ss(v);v.x+=this.Eq.x;v.y+=this.Eq.y;var x=this.Uh(k);x?this.f.hD(x,v,p):(x=new b.M,x.ua(a,v,!1),x.vW=!0,
this.ea(x,0,k));x.opacityModifyRGB=this.zb;this.f.gD(x);v=b.i(c+u.Lo+0.5*u.rect.width+s,f+(m.ex-u.aG)-0.5*v.height*b.Qa());x.gb(b.dR(v));c+=u.Xs+s;s=p;e<c&&(e=c)}d.width=u&&u.Xs<u.rect.width?e-u.Xs+u.rect.width:e;d.height=t;this.ed(b.CS(d))}},u6:function(a){var c=this.F;if(c)for(var d=0,e=c.length;d<e;d++){var f=c[d];f&&(f.visible=!1)}this.Hd&&this.Jr();a||this.De()},gj:function(){return this.kk},oc:function(a,c){a=String(a);null==c&&(c=!0);null!=a&&b.Cd(a)||(a+="");this.kk=a;this.HC(a,c)},GM:function(a){this.oc(a,
!1)},n4:function(a){this.oc(a,!0)},zq:function(a,c){if(0>=c)return 0;var d=this.Uh(a);return this.hB(this.Uh(a+c))-this.hB(d)},Gu:function(a,c,d,e){for(var f=a[c],g=0,h=0;h<c;h++)g+=a[h].length;var g=g+c-e,k=this.zq(g,a[c].length-1);if(k>d&&1<f.length){e=d/k*f.length|0;for(var h=f.substr(e),m=k-this.zq(g+e,h.length-1),n,p=0,r=0;m>d&&100>r++;)e*=d/m,e|=0,h=f.substr(e),m=k-this.zq(g+e,h.length-1);for(r=0;m<d&&100>r++;)h&&(p=(n=b.A.rD.exec(h))?n[0].length:1,n=h),this.Mq&&(p=0),e+=p,h=f.substr(e),m=k-
this.zq(g+e,h.length-1);e-=p;0===e&&(e=1,n=n.substr(1));d=f.substr(0,e);b.A.$F&&b.A.YC.test(n||h)&&(p=(g=b.A.EB.exec(d))?g[0].length:0,this.Mq&&(p=0),e-=p,n=f.substr(e),d=f.substr(0,e));b.A.XA.test(n)&&(g=b.A.DB.exec(d))&&d!==g[0]&&(p=g[0].length,this.Mq&&(p=0),e-=p,n=f.substr(e),d=f.substr(0,e));a[c]=n||h;a.splice(c,0,d)}},De:function(){this.string=this.kk;var a,c,d;if(0<this.Hn){var e=this.string.split("\n"),f="",g=0,h=0;for(a=0;a<e.length;a++)h=e.length,this.Gu(e,a,this.Hn*this.ha,g),h<e.length&&
g++,0<a&&(f+="\n"),f+=e[a];f+=String.fromCharCode(0);this.HC(f,!1)}if(this.Dm!==b.Kp)for(e=a=0,f=this.lb.length,g=[],h=0;h<f;h++)if(10===this.lb[h].charCodeAt(0)||0===this.lb[h].charCodeAt(0)){c=0;var k=g.length;if(0===k)e++;else if(d=a+k-1+e,!(0>d)){var m=this.Uh(d);if(null!=m){c=m.yd()+m.Oe()/2;m=0;switch(this.Dm){case b.rm:m=this.width/2-c/2;break;case b.nz:m=this.width-c}if(0!==m)for(c=0;c<k;c++)d=a+c+e,0>d||(d=this.Uh(d))&&(d.x+=m);a+=k;e++;g.length=0}}}else g.push(this.lb[a])},ER:function(a){this.Dm=
a;this.De()},QK:function(){return this.Dm},HR:function(a){this.Hn=a;this.De()},hv:function(){return this.Hn},P4:function(a){this.Mq=a;this.De()},Ks:function(a,c){b.e.prototype.Ks.call(this,a,c);this.De()},ly:function(a){b.e.prototype.ly.call(this,a);this.De()},my:function(a){b.e.prototype.my.call(this,a);this.De()},E4:function(a){if(null!=a&&a!==this.wq){var c=b.O.zd(a);c?(this.wq=a,this.Hd=c,a=b.Ra.tc(c.vD),this.L=c=a.L,this.texture=a,c?this.Jr():a.addEventListener("load",function(a){this.L=!0;this.texture=
a;this.Jr();this.Uj();this.De();this.dispatchEvent("load")},this)):b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file")}},g_:function(){return this.wq},nb:function(a){this.f.nb(a)},cg:function(a,c){b.e.prototype.cg.call(this,a,c);this.De()},hw:function(a){b.e.prototype.hw.call(this,a);this.De()},iw:function(a){b.e.prototype.iw.call(this,a);this.De()},VV:function(){},sW:function(a,c){var d=0;if(this.tK.GQ){var e=this.tK.GQ[(a<<16|c&65535).toString()];e&&(d=e.tX)}return d},
hB:function(a){return a.yd()*this.ha-a.Oe()*this.ha*a.cv()},lW:function(a){return a.yd()*this.ha+a.Oe()*this.ha*a.cv()},xB:function(a){a=a.charCodeAt(0);return 9<=a&&13>=a||32===a||133===a||160===a||5760===a||8192<=a&&8202>=a||8232===a||8233===a||8239===a||8287===a||12288===a},XW:function(a){var c=a.length;if(!(0>=c)&&(c-=1,this.xB(a[c]))){for(var d=c-1;0<=d;--d)if(this.xB(a[d]))c=d;else break;this.bN(a,c)}},bN:function(a,c){var d=a.length;c>=d||0>c||a.splice(c,d)}});var N=b.Fe.prototype;b.ee.prototype.apply(N);
b.m(N,"string",N.gj,N.GM);b.m(N,"boundingWidth",N.hv,N.HR);b.m(N,"textAlign",N.QK,N.ER);b.Fe.create=function(a,c,d,e,f){return new b.Fe(a,c,d,e,f)};
b.IK={cH:/info [^\n]*(\n|$)/gi,vG:/common [^\n]*(\n|$)/gi,PH:/page [^\n]*(\n|$)/gi,uG:/char [^\n]*(\n|$)/gi,gH:/kerning [^\n]*(\n|$)/gi,eH:/\w+=[^ \r\n]+/gi,dH:/^[\-]?\d+$/,mn:function(a){a=a.match(this.eH);var c={};if(a)for(var d=0,e=a.length;d<e;d++){var f=a[d],g=f.indexOf("\x3d"),h=f.substring(0,g),f=f.substring(g+1);f.match(this.dH)?f=parseInt(f):'"'===f[0]&&(f=f.substring(1,f.length-1));c[h]=f}return c},ZQ:function(a,c){var d={};this.mn(a.match(this.cH)[0]);var e=this.mn(a.match(this.vG)[0]);
d.ex=e.lineHeight;if(b.ta===b.q.ic){var f=b.gx.gn;(e.scaleW>f.width||e.scaleH>f.height)&&b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported")}1!==e.pages&&b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page");e=this.mn(a.match(this.PH)[0]);0!==e.id&&b.log("cc.LabelBMFont._parseImageFileName() : file could not be found");d.vD=b.path.Dr(c,e.file);for(var g=a.match(this.uG),h=d.TO={},e=0,f=g.length;e<f;e++){var k=this.mn(g[e]);h[k.id]={rect:{x:k.x,y:k.y,
width:k.width,height:k.height},Lo:k.xoffset,aG:k.yoffset,Xs:k.xadvance}}g=d.FQ={};if(h=a.match(this.gH))for(e=0,f=h.length;e<f;e++)k=this.mn(h[e]),g[k.first<<16|k.second&65535]=k.amount;return d},load:function(a,c,d,e){var f=this;b.O.ls(a,function(a,d){if(a)return e(a);e(null,f.ZQ(d,c))})}};b.O.Zg(["fnt"],b.IK);(function(){b.Fe.t=function(a){b.pb.t.call(this,a);this.qb=!0};var a=b.Fe.t.prototype=Object.create(b.pb.t.prototype);a.constructor=b.Fe.t;a.fb=function(){void 0};a.hD=function(a,d,e){32===e?a.ub(d,!1,b.size(0,0)):(a.ub(d,!1),a.visible=!0)};a.gD=function(a){a.xb=this.xb;a.f.S(b.e.H.Ob);a.Gb=this.Gb;a.f.S(b.e.H.ec)};a.nb=function(a){for(var d=this.n.F,e=this.xb,f=0;f<d.length;f++){var g=d[f],h=g.f,k=h.xb;if(this.$===h.$||k.r===e.r&&k.g===e.g&&k.b===e.b)g.texture=a}this.$=a};a.Uj=function(){var a=this.n,
d=this.Rd,e=d.Sf(),a=a.$,f=a.Fa,g=this.xb,h=b.rect(0,0,f.width,f.height);d&&0<e.width&&f&&(this.Rd=a.Vm(g.r,g.g,g.b,h))};a.ZM=function(a){b.e.prototype.WF.call(a,this.Gb)};a.YM=function(a){b.e.prototype.VF.call(a,this.xb)};a.rB=function(){}})();(function(){b.Fe.B=function(a){b.pb.B.call(this,a);this.qb=!0};var a=b.Fe.B.prototype=Object.create(b.pb.B.prototype);a.constructor=b.Fe.B;a.hD=function(a,d){a.ub(d,!1);a.visible=!0};a.Uj=function(){};a.ZM=function(a){a.WF(this.Gb)};a.YM=function(a){a.VF(this.xb)};a.rB=function(){var a=this.n,d=a.textureAtlas.texture;a.zb=d.fl();var e=a.rC=new b.M;e.ua(d,b.rect(0,0,0,0),!1);e.batchNode=a};a.fb=function(a){b.pb.B.prototype.fb.call(this,a);a=this.n;if(b.iH){a=a.Sf();var d=b.i(0|-this.uf.x,0|-this.uf.y);
a=[b.i(d.x,d.y),b.i(d.x+a.width,d.y),b.i(d.x+a.width,d.y+a.height),b.i(d.x,d.y+a.height)];b.th.yo(0,255,0,255);b.th.ze(a,4,!0)}};a.gD=function(){}})();b.x6=function(){return{x:0,y:0}};b.ai=function(a,c){return{x:a,y:c}};b.Lc=function(a,c){return b.ai(a.x+c.x,a.y+c.y)};b.ob=function(a,c){return b.ai(a.x-c.x,a.y-c.y)};b.gc=function(a,c){return b.ai(a.x*c,a.y*c)};b.Kl=function(a){return b.ai(-a.y,a.x)};b.ae=function(a){return b.ai(-a.x,-a.y)};b.YF=function(a,c){return a.x*c.x+a.y*c.y};b.w6=function(a){return b.ai(Math.cos(a),Math.sin(a))};b.Io=function(a){a=b.Be(b.i(a.x,a.y));return b.ai(a.x,a.y)};b.Pc=function(a){return b.ai(a.x,a.y)};
b.ja=function(a){return{u:a.x,v:a.y}};b.wa=b.e.extend({Ba:null,T:null,rc:1,yf:null,Qr:function(){return this.T},Ds:function(a,c){void 0===c?(this.T.src=a.src,this.T.ya=a.ya):(this.T.src=a,this.T.ya=c)},xF:function(a){this.rc=a},u_:function(){return this.rc},yo:function(a){var c=this.yf;c.r=a.r;c.g=a.g;c.b=a.b;c.a=null==a.a?255:a.a},vc:function(){return b.color(this.yf.r,this.yf.g,this.yf.b,this.yf.a)}});b.wa.create=function(){return new b.wa};b.wa.oz=0;b.wa.YI=1;b.wa.kh=2;
b.q.addEventListener(b.q.nf,function(){b.ta===b.q.Jb?(b.lh=function(a){this.type=a;this.fillColor=this.be=null;this.lineWidth=0;this.Wg=null;this.lineCap="butt";this.Tg=this.gs=this.fs=!1},b.extend(b.wa.prototype,{pc:"DrawNodeCanvas",ctor:function(){b.e.prototype.ctor.call(this);var a=this.f;a.Ba=this.Ba=[];a.yf=this.yf=b.color(255,255,255,255);a.T=this.T=new b.vb(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);this.fa()},Lr:function(a,c,d,e,f){e=null==e?this.rc:e;f=f||this.vc();null==f.a&&(f.a=255);a=[a,b.i(c.x,
a.y),c,b.i(a.x,c.y)];c=new b.lh(b.wa.kh);c.be=a;c.lineWidth=e;c.Wg=f;c.fs=!0;c.Tg=!0;c.lineCap="butt";if(c.fillColor=d)null==d.a&&(d.a=255),c.gs=!0;this.Ba.push(c)},nx:function(a,c,d,e,f,g,h){g=g||this.rc;h=h||this.vc();null==h.a&&(h.a=255);for(var k=2*Math.PI/e,m=[],n=0;n<=e;n++){var p=n*k;m.push(b.i(c*Math.cos(p+d)+a.x,c*Math.sin(p+d)+a.y))}f&&m.push(b.i(a.x,a.y));a=new b.lh(b.wa.kh);a.be=m;a.lineWidth=g;a.Wg=h;a.fs=!0;a.Tg=!0;this.Ba.push(a)},qx:function(a,c,d,e,f,g){f=f||this.rc;g=g||this.vc();
null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(b.i(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(b.i(d.x,d.y));a=new b.lh(b.wa.kh);a.be=h;a.lineWidth=f;a.Wg=g;a.Tg=!0;a.lineCap="round";this.Ba.push(a)},ox:function(a,c,d,e,f,g,h){g=g||this.rc;h=h||this.vc();null==h.a&&(h.a=255);for(var k=[],m=0,n=0;n<f;n++)k.push(b.i(Math.pow(1-m,3)*a.x+3*Math.pow(1-m,2)*m*c.x+3*(1-m)*m*m*d.x+m*m*m*e.x,Math.pow(1-m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-
m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(b.i(e.x,e.y));a=new b.lh(b.wa.kh);a.be=k;a.lineWidth=g;a.Wg=h;a.Tg=!0;a.lineCap="round";this.Ba.push(a)},mx:function(a,c,d,e){this.dj(a,0.5,c,d,e)},dj:function(a,c,d,e,f){e=e||this.rc;f=f||this.vc();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,n=0;n<d+1;n++)k=n/d,1===k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.Br(b.Pb(a,h-1),b.Pb(a,h-0),b.Pb(a,h+1),b.Pb(a,h+2),c,k),g.push(h);a=new b.lh(b.wa.kh);a.be=g;a.lineWidth=e;a.Wg=f;a.Tg=!0;a.lineCap="round";this.Ba.push(a)},
px:function(a,c,d){d=d||this.vc();null==d.a&&(d.a=255);var e=new b.lh(b.wa.oz);e.be=[a];e.lineWidth=c;e.fillColor=d;this.Ba.push(e)},mO:function(a,c,d){if(a&&0!=a.length){d=d||this.vc();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.px(a[e],c,d)}},rx:function(a,c,d,e){d=d||this.rc;e=e||this.vc();null==e.a&&(e.a=255);var f=new b.lh(b.wa.kh);f.be=[a,c];f.lineWidth=2*d;f.Wg=e;f.Tg=!0;f.lineCap="round";this.Ba.push(f)},qO:function(a,c,d,e){d=null==d?this.rc:d;e=e||this.vc();null==e.a&&(e.a=
255);var f=new b.lh(b.wa.kh);f.be=a;f.fillColor=c;f.lineWidth=d;f.Wg=e;f.fs=!0;f.Tg=!0;f.lineCap="round";c&&(f.gs=!0);this.Ba.push(f)},ze:function(a,c,d,e){for(var f=[],g=0;g<a.length;g++)f.push(b.i(a[g].x,a[g].y));return this.qO(f,c,d,e)},clear:function(){this.Ba.length=0},ld:function(){return new b.wa.t(this)}})):b.ta===b.q.ic&&b.extend(b.wa.prototype,{Tj:0,Kg:null,bD:null,aD:null,Va:!1,pc:"DrawNodeWebGL",ctor:function(){b.e.prototype.ctor.call(this);this.Ba=[];this.T=new b.vb(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);
this.yf=b.color(255,255,255,255);this.fa()},fa:function(){return b.e.prototype.fa.call(this)?(this.shaderProgram=b.Ce.nc(b.hz),this.Qm(64),this.bD=b.o.createBuffer(),this.Va=!0):!1},Lr:function(a,c,d,e,f){e=null==e?this.rc:e;f=f||this.vc();null==f.a&&(f.a=255);a=[a,b.i(c.x,a.y),c,b.i(a.x,c.y)];null==d?this.oq(a,e,f,!0):this.ze(a,d,e,f)},nx:function(a,c,d,e,f,g,h){g=g||this.rc;h=h||this.vc();null==h.a&&(h.a=255);var k=2*Math.PI/e,m=[],n;for(n=0;n<=e;n++){var p=n*k;m.push(b.i(c*Math.cos(p+d)+a.x,c*
Math.sin(p+d)+a.y))}f&&m.push(b.i(a.x,a.y));g*=0.5;n=0;for(a=m.length;n<a-1;n++)this.rx(m[n],m[n+1],g,h)},qx:function(a,c,d,e,f,g){f=f||this.rc;g=g||this.vc();null==g.a&&(g.a=255);for(var h=[],k=0,m=0;m<e;m++)h.push(b.i(Math.pow(1-k,2)*a.x+2*(1-k)*k*c.x+k*k*d.x,Math.pow(1-k,2)*a.y+2*(1-k)*k*c.y+k*k*d.y)),k+=1/e;h.push(b.i(d.x,d.y));this.oq(h,f,g,!1)},ox:function(a,c,d,e,f,g,h){g=g||this.rc;h=h||this.vc();null==h.a&&(h.a=255);for(var k=[],m=0,n=0;n<f;n++)k.push(b.i(Math.pow(1-m,3)*a.x+3*Math.pow(1-
m,2)*m*c.x+3*(1-m)*m*m*d.x+m*m*m*e.x,Math.pow(1-m,3)*a.y+3*Math.pow(1-m,2)*m*c.y+3*(1-m)*m*m*d.y+m*m*m*e.y)),m+=1/f;k.push(b.i(e.x,e.y));this.oq(k,g,h,!1)},mx:function(a,c,d,e){this.dj(a,0.5,c,d,e)},dj:function(a,c,d,e,f){e=e||this.rc;f=f||this.vc();null==f.a&&(f.a=255);for(var g=[],h,k,m=1/a.length,n=0;n<d+1;n++)k=n/d,1===k?(h=a.length-1,k=1):(h=0|k/m,k=(k-m*h)/m),h=b.Br(b.Pb(a,h-1),b.Pb(a,h-0),b.Pb(a,h+1),b.Pb(a,h+2),c,k),g.push(h);e*=0.5;a=0;for(c=g.length;a<c-1;a++)this.rx(g[a],g[a+1],e,f)},mM:function(){var a=
b.o;b.xc(b.gu);a.bindBuffer(a.ARRAY_BUFFER,this.bD);this.Va&&(a.bufferData(a.ARRAY_BUFFER,this.Kg,a.STREAM_DRAW),this.Va=!1);var c=b.Ie.BYTES_PER_ELEMENT;a.vertexAttribPointer(b.Ua,2,a.FLOAT,!1,c,0);a.vertexAttribPointer(b.he,4,a.UNSIGNED_BYTE,!0,c,8);a.vertexAttribPointer(b.ie,2,a.FLOAT,!1,c,12);a.drawArrays(a.TRIANGLES,0,3*this.Ba.length);b.Wf()},Qm:function(a){var c=this.Ba;if(c.length+a>this.Tj){var d=b.bb.BYTES_PER_ELEMENT;this.Tj+=Math.max(this.Tj,a);if(null==c||0===c.length)this.Ba=[],this.Kg=
new ArrayBuffer(d*this.Tj),this.aD=new Uint8Array(this.Kg);else{a=[];for(var e=new ArrayBuffer(d*this.Tj),f=0;f<c.length;f++)a[f]=new b.bb(c[f].a,c[f].b,c[f].c,e,f*d);this.aD=new Uint8Array(e);this.Kg=e;this.Ba=a}}},px:function(a,c,d){d=d||this.vc();null==d.a&&(d.a=255);var e={r:0|d.r,g:0|d.g,b:0|d.b,a:0|d.a};d={vertices:{x:a.x-c,y:a.y-c},colors:e,texCoords:{u:-1,v:-1}};var f={vertices:{x:a.x-c,y:a.y+c},colors:e,texCoords:{u:-1,v:1}},g={vertices:{x:a.x+c,y:a.y+c},colors:e,texCoords:{u:1,v:1}};a={vertices:{x:a.x+
c,y:a.y-c},colors:e,texCoords:{u:1,v:-1}};this.Qm(6);this.Ba.push(new b.bb(d,f,g,this.Kg,this.Ba.length*b.bb.BYTES_PER_ELEMENT));this.Ba.push(new b.bb(d,g,a,this.Kg,this.Ba.length*b.bb.BYTES_PER_ELEMENT));this.Va=!0},mO:function(a,c,d){if(a&&0!==a.length){d=d||this.vc();null==d.a&&(d.a=255);for(var e=0,f=a.length;e<f;e++)this.px(a[e],c,d)}},rx:function(a,c,d,e){e=e||this.vc();null==e.a&&(e.a=255);d=d||0.5*this.rc;this.Qm(18);e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=b.Pc(a);c=b.Pc(c);a=b.Io(b.Kl(b.ob(c,
f)));var g=b.Kl(a),h=b.gc(a,d);d=b.gc(g,d);var k=b.Lc(c,b.ob(h,d)),m=b.ob(c,h),n=b.Lc(c,h),p=b.ob(f,h),r=b.Lc(f,h),t=b.ob(f,b.ob(h,d)),f=b.Lc(f,b.Lc(h,d)),s=b.bb.BYTES_PER_ELEMENT,u=this.Kg,v=this.Ba;v.push(new b.bb({vertices:b.ob(c,b.Lc(h,d)),colors:e,texCoords:b.ja(b.ae(b.Lc(a,g)))},{vertices:k,colors:e,texCoords:b.ja(b.ob(a,g))},{vertices:m,colors:e,texCoords:b.ja(b.ae(a))},u,v.length*s));v.push(new b.bb({vertices:n,colors:e,texCoords:b.ja(a)},{vertices:k,colors:e,texCoords:b.ja(b.ob(a,g))},{vertices:m,
colors:e,texCoords:b.ja(b.ae(a))},u,v.length*s));v.push(new b.bb({vertices:n,colors:e,texCoords:b.ja(a)},{vertices:p,colors:e,texCoords:b.ja(b.ae(a))},{vertices:m,colors:e,texCoords:b.ja(b.ae(a))},u,v.length*s));v.push(new b.bb({vertices:n,colors:e,texCoords:b.ja(a)},{vertices:p,colors:e,texCoords:b.ja(b.ae(a))},{vertices:r,colors:e,texCoords:b.ja(a)},u,v.length*s));v.push(new b.bb({vertices:t,colors:e,texCoords:b.ja(b.ob(g,a))},{vertices:p,colors:e,texCoords:b.ja(b.ae(a))},{vertices:r,colors:e,texCoords:b.ja(a)},
u,v.length*s));v.push(new b.bb({vertices:t,colors:e,texCoords:b.ja(b.ob(g,a))},{vertices:f,colors:e,texCoords:b.ja(b.Lc(a,g))},{vertices:r,colors:e,texCoords:b.ja(a)},u,v.length*s));this.Va=!0},ze:function(a,c,d,e){if(null==c)this.oq(a,d,e,!0);else{null==c.a&&(c.a=255);null==e.a&&(e.a=255);d=null==d?this.rc:d;d*=0.5;c={r:0|c.r,g:0|c.g,b:0|c.b,a:0|c.a};e={r:0|e.r,g:0|e.g,b:0|e.b,a:0|e.a};var f=[],g,h,k,m,n=a.length;for(g=0;g<n;g++){h=b.Pc(a[(g-1+n)%n]);k=b.Pc(a[g]);m=b.Pc(a[(g+1)%n]);var p=b.Io(b.Kl(b.ob(k,
h)));k=b.Io(b.Kl(b.ob(m,k)));f[g]={offset:b.gc(b.Lc(p,k),1/(b.YF(p,k)+1)),ns:k}}p=0<d;this.Qm(3*(3*n-2));var r=b.bb.BYTES_PER_ELEMENT,t=this.Kg,s=this.Ba,u=!1==p?0.5:0;for(g=0;g<n-2;g++)h=b.ob(b.Pc(a[0]),b.gc(f[0].offset,u)),k=b.ob(b.Pc(a[g+1]),b.gc(f[g+1].offset,u)),m=b.ob(b.Pc(a[g+2]),b.gc(f[g+2].offset,u)),s.push(new b.bb({vertices:h,colors:c,texCoords:b.ja({x:0,y:0})},{vertices:k,colors:c,texCoords:b.ja({x:0,y:0})},{vertices:m,colors:c,texCoords:b.ja({x:0,y:0})},t,s.length*r));for(g=0;g<n;g++){u=
(g+1)%n;h=b.Pc(a[g]);k=b.Pc(a[u]);m=f[g].ns;var v=f[g].offset,x=f[u].offset,u=p?b.ob(h,b.gc(v,d)):b.ob(h,b.gc(v,0.5)),C=p?b.ob(k,b.gc(x,d)):b.ob(k,b.gc(x,0.5));h=p?b.Lc(h,b.gc(v,d)):b.Lc(h,b.gc(v,0.5));k=p?b.Lc(k,b.gc(x,d)):b.Lc(k,b.gc(x,0.5));p?(s.push(new b.bb({vertices:u,colors:e,texCoords:b.ja(b.ae(m))},{vertices:C,colors:e,texCoords:b.ja(b.ae(m))},{vertices:k,colors:e,texCoords:b.ja(m)},t,s.length*r)),s.push(new b.bb({vertices:u,colors:e,texCoords:b.ja(b.ae(m))},{vertices:h,colors:e,texCoords:b.ja(m)},
{vertices:k,colors:e,texCoords:b.ja(m)},t,s.length*r))):(s.push(new b.bb({vertices:u,colors:c,texCoords:b.ja({x:0,y:0})},{vertices:C,colors:c,texCoords:b.ja({x:0,y:0})},{vertices:k,colors:c,texCoords:b.ja(m)},t,s.length*r)),s.push(new b.bb({vertices:u,colors:c,texCoords:b.ja({x:0,y:0})},{vertices:h,colors:c,texCoords:b.ja(m)},{vertices:k,colors:c,texCoords:b.ja(m)},t,s.length*r)))}this.Va=!0}},oq:function(a,c,d,e){c=null==c?this.rc:c;d=d||this.yf;null==d.a&&(d.a=255);c*=0.5;if(!(0>=c)){d={r:0|d.r,
g:0|d.g,b:0|d.b,a:0|d.a};var f=[],g,h,k,m,n=a.length;for(g=0;g<n;g++){h=b.Pc(a[(g-1+n)%n]);k=b.Pc(a[g]);m=b.Pc(a[(g+1)%n]);var p=b.Io(b.Kl(b.ob(k,h)));k=b.Io(b.Kl(b.ob(m,k)));f[g]={offset:b.gc(b.Lc(p,k),1/(b.YF(p,k)+1)),ns:k}}this.Qm(3*(3*n-2));m=b.bb.BYTES_PER_ELEMENT;var p=this.Kg,r=this.Ba;e=e?n:n-1;for(g=0;g<e;g++){var t=(g+1)%n;h=b.Pc(a[g]);k=b.Pc(a[t]);var s=f[g].ns,u=f[g].offset,t=f[t].offset,v=b.ob(h,b.gc(u,c));h=b.Lc(h,b.gc(u,c));u=b.Lc(k,b.gc(t,c));r.push(new b.bb({vertices:v,colors:d,texCoords:b.ja(b.ae(s))},
{vertices:b.ob(k,b.gc(t,c)),colors:d,texCoords:b.ja(b.ae(s))},{vertices:u,colors:d,texCoords:b.ja(s)},p,r.length*m));r.push(new b.bb({vertices:v,colors:d,texCoords:b.ja(b.ae(s))},{vertices:h,colors:d,texCoords:b.ja(s)},{vertices:u,colors:d,texCoords:b.ja(s)},p,r.length*m))}this.Va=!0}},clear:function(){this.Ba.length=0;this.Va=!0},ld:function(){return new b.wa.B(this)}})});b.wa.t=function(a){b.e.t.call(this,a);this.qb=!0;this.T=this.yf=this.Ba=null};b.wa.t.prototype=Object.create(b.e.t.prototype);b.wa.t.prototype.constructor=b.wa.t;
b.extend(b.wa.t.prototype,{fb:function(a,c,d){a=a||b.o;a.getContext();var e=this.n.Gb/255;if(0!==e){a.setTransform(this.Og,c,d);a.Al(e);this.T&&this.T.src===b.SRC_ALPHA&&this.T.ya===b.ONE&&a.wo("lighter");for(var e=this.Ba,f=0,g=e.length;f<g;f++){var h=e[f];switch(h.type){case b.wa.oz:this.AK(a,h,c,d);break;case b.wa.YI:this.DK(a,h,c,d);break;case b.wa.kh:this.CK(a,h,c,d)}}}},AK:function(a,c,d,e){var f=c.fillColor,g=c.be[0];c=c.lineWidth;var h=a.getContext();a.jf("rgba("+(0|f.r)+","+(0|f.g)+","+(0|
f.b)+","+f.a/255+")");h.beginPath();h.arc(g.x*d,-g.y*e,c*d,0,2*Math.PI,!1);h.closePath();h.fill()},DK:function(a,c,d,e){var f=c.Wg,g=c.be[0],h=c.be[1],k=c.lineWidth;c=c.lineCap;var m=a.getContext();a.Ns("rgba("+(0|f.r)+","+(0|f.g)+","+(0|f.b)+","+f.a/255+")");m.lineWidth=k*d;m.beginPath();m.lineCap=c;m.moveTo(g.x*d,-g.y*e);m.lineTo(h.x*d,-h.y*e);m.stroke()},CK:function(a,c,d,e){var f=c.be,g=c.lineCap;if(null!=f){var h=c.fillColor,k=c.lineWidth,m=c.Wg,n=c.fs,p=c.gs;c=c.Tg;var r=a.getContext(),t=f[0];
r.lineCap=g;h&&a.jf("rgba("+(0|h.r)+","+(0|h.g)+","+(0|h.b)+","+h.a/255+")");k&&(r.lineWidth=k*d);m&&a.Ns("rgba("+(0|m.r)+","+(0|m.g)+","+(0|m.b)+","+m.a/255+")");r.beginPath();r.moveTo(t.x*d,-t.y*e);a=1;for(g=f.length;a<g;a++)r.lineTo(f[a].x*d,-f[a].y*e);n&&r.closePath();p&&r.fill();c&&r.stroke()}}});b.wa.B=function(a){b.e.B.call(this,a);this.qb=!0};b.wa.B.prototype=Object.create(b.e.B.prototype);b.wa.B.prototype.constructor=b.wa.B;b.wa.B.prototype.fb=function(){var a=this.n;b.Vf(a.T.src,a.T.ya);this.Ma.Rb();this.Ma.Oi(this.Zc);a.mM()};b.Co=-1;
b.va=b.e.extend({Tk:0,Zf:!1,Ha:null,pc:"ClippingNode",ctor:function(a){a=a||null;b.e.prototype.ctor.call(this);this.Ha=a;this.Tk=1;this.Zf=!1;this.f.Qx()},fa:function(a){this.Ha=a;this.Tk=1;this.Zf=!1;this.f.Qx();return!0},zc:function(){b.e.prototype.zc.call(this);this.Ha.zc()},bg:function(){b.e.prototype.bg.call(this);this.Ha.bg()},Ud:function(){this.Ha.Ud();b.e.prototype.Ud.call(this)},Ac:function(){this.Ha.Ac();b.e.prototype.Ac.call(this)},DZ:function(){return this.Tk},j4:function(a){this.Tk=a},
Z0:function(){return this.Zf},O4:function(a){this.Zf=a},MP:function(){return this.Ha},Ms:function(a){this.Ha!==a&&this.f.Ms(a)},ld:function(){return b.ta===b.q.Jb?new b.va.t(this):new b.va.B(this)}});w=b.va.prototype;b.m(w,"stencil",w.MP,w.Ms);b.va.create=function(a){return new b.va(a)};(function(){b.va.t=function(a){b.e.t.call(this,a);this.Xj=this.lB=this.qb=!1;this.pM=new b.fi(this,this.rM);this.nM=new b.fi(this,this.sK);this.oM=new b.fi(this,this.qM)};var a=b.va.t.prototype=Object.create(b.e.t.prototype);a.constructor=b.va.t;a.Qx=function(){};a.Ms=function(a){if(null!=a)if(this.n.Ha=a,a instanceof b.wa){if(a.Ba)for(var d=0;d<a.Ba.length;d++)a.Ba[d].gs=!1,a.Ba[d].Tg=!1;a.f.fb=function(d,f,g){f=f||b.view.ha;g=g||b.view.Da;d=(d||b.o).getContext();var h=this.sr;d.transform(h.a,h.b,
h.c,h.I,h.X*f,-h.Y*g);for(h=0;h<a.Ba.length;h++){var k=a.Ba[h].be,m=k[0];d.moveTo(m.x*f,-m.y*g);for(m=k.length-1;0<m;m--)d.lineTo(k[m].x*f,-k[m].y*g)}}}else a.ra=this.n};a.rM=function(a,d,e){var f=a||b.o;a=f.getContext();this.Xj?(d=b.va.t.iB(),e=a.canvas,d.width=e.width,d.height=e.height,d.getContext("2d").drawImage(e,0,0)):(f.save(),a.beginPath(),f.setTransform(this.Og,d,e),this.n.Zf&&(a.rect(0,0,a.canvas.width,-a.canvas.height),a.clip()))};a.GC=function(a){if(a){var d=this.n;a.f&&a.f.mg&&(a.f.mg=
d.Zf?"destination-out":"destination-in");if(a.F){a=a.F;for(var d=0,e=a.length;d<e;d++)this.GC(a[d])}}};a.sK=function(a){var d=this.n;a=(a||b.o).getContext();this.Xj?this.GC(d.Ha):a.clip()};a.qM=function(a){var d=b.va.t.iB();a=a||b.o;var e=a.getContext();this.Xj?(e.save(),e.setTransform(1,0,0,1,0,0),e.globalCompositeOperation="destination-over",e.drawImage(d,0,0),e.restore(),this.D=0):a.restore()};a.transform=function(a,d){b.e.t.prototype.transform.call(this,a,d);var e=this.n;e.Ha&&e.Ha.f&&e.Ha.f.transform(this,
d)};a.Au=function(a){if(!0===a||!1===a)b.va.t.prototype.lB=a;return b.va.t.prototype.lB};a.za=function(a){var d=this.n;if(d.bc){if(a=a||H(this))this.Uc=a.Uc+1;this.Xj=!(!this.Au()&&d.Ha instanceof b.wa);if(d.Ha&&d.Ha.visible){this.Qd(a);b.sa.Dd(this.pM);this.Xj?b.e.t.prototype.za.call(this,a):d.Ha.za(this);b.sa.Dd(this.nM);if(this.Xj)d.Ha.za(this);else{a=d.F;this.Au(!0);var e=a.length;if(0<e)for(d.Zd(),d=0;d<e;d++)a[d].f.za(this);this.Au(!1)}b.sa.Dd(this.oM);this.D=0}else this.Zf&&b.e.t.prototype.za.call(this,
a)}};b.va.t.NC=null;b.va.t.iB=function(){return b.va.t.NC||(b.va.t.NC=document.createElement("canvas"))}})();(function(){b.va.B=function(a){b.e.B.call(this,a);this.qb=!1;this.oK=new b.fi(this,this.WL);this.gK=new b.fi(this,this.UL);this.hK=new b.fi(this,this.VL);this.Fv=this.Yz=this.$z=this.gA=this.dA=this.cA=this.aA=this.fA=this.eA=this.bA=null};var a=b.va.B.prototype=Object.create(b.e.B.prototype);a.constructor=b.va.B;b.va.B.vv=null;b.va.B.Yw=null;b.va.B.Kq=-1;a.Qx=function(){b.va.B.vv=!0;b.va.B.vv&&(b.Co=b.o.getParameter(b.o.STENCIL_BITS),0>=b.Co&&b.log("Stencil buffer is not enabled."),b.va.B.vv=!1)};
a.transform=function(a,d){var e=this.n;b.e.B.prototype.transform.call(this,a,d);e.Ha&&e.Ha.f.transform(this,d)};a.za=function(a){var d=this.n;if(d.bc)if(d.ra&&d.ra.f&&(this.Uc=d.ra.f.Uc+1),1>b.Co)b.e.B.prototype.za.call(this,a);else if(d.Ha&&d.Ha.visible)if(b.va.B.Kq+1===b.Co)b.va.B.Yw=!0,b.va.B.Yw&&(b.log("Nesting more than "+b.Co+"stencils is not supported. Everything will be drawn without stencil for this node and its children."),b.va.B.Yw=!1),b.e.B.prototype.za.call(this,a);else{b.sa.Dd(this.oK);
var e=b.Na;e.stack.push(e.top);this.Qd(a);e.top=this.Zc;d.Ha.f.za(this);b.sa.Dd(this.gK);if((a=d.F)&&0<a.length){var f=a.length;d.Zd();for(d=0;d<f;d++)a[d].f.za(this)}b.sa.Dd(this.hK);this.D=0;e.top=e.stack.pop()}else d.Zf&&b.e.B.prototype.za.call(this,a)};a.Ms=function(a){var d=this.n;d.Ha&&(d.Ha.ra=null);d.Ha=a;d.Ha&&(d.Ha.ra=d)};a.BK=function(){var a=b.hf;a.push();a.top.dc();var d=b.gf;d.push();d.top.dc();b.th.QD(b.i(-1,-1),b.i(1,1),b.color(255,255,255,255));a.pop();d.pop()};a.WL=function(a){var d=
a||b.o;a=this.n;b.va.B.Kq++;var e=1<<b.va.B.Kq;this.Fv=e|e-1;this.$z=d.isEnabled(d.STENCIL_TEST);this.gA=d.getParameter(d.STENCIL_WRITEMASK);this.bA=d.getParameter(d.STENCIL_FUNC);this.eA=d.getParameter(d.STENCIL_REF);this.fA=d.getParameter(d.STENCIL_VALUE_MASK);this.aA=d.getParameter(d.STENCIL_FAIL);this.cA=d.getParameter(d.STENCIL_PASS_DEPTH_FAIL);this.dA=d.getParameter(d.STENCIL_PASS_DEPTH_PASS);d.enable(d.STENCIL_TEST);d.stencilMask(e);this.Yz=d.getParameter(d.DEPTH_WRITEMASK);d.depthMask(!1);
d.stencilFunc(d.NEVER,e,e);d.stencilOp(a.Zf?d.REPLACE:d.ZERO,d.KEEP,d.KEEP);this.BK();d.stencilFunc(d.NEVER,e,e);d.stencilOp(a.Zf?d.ZERO:d.REPLACE,d.KEEP,d.KEEP);1>a.Tk&&(e=b.Ce.nc(b.Qt),d=d.getUniformLocation(e.al(),b.EJ),b.Kx(e.al()),e.Ps(d,a.Tk),b.AF(a.Ha,e))};a.UL=function(a){a=a||b.o;a.depthMask(this.Yz);a.stencilFunc(a.EQUAL,this.Fv,this.Fv);a.stencilOp(a.KEEP,a.KEEP,a.KEEP)};a.VL=function(a){a=a||b.o;a.stencilFunc(this.bA,this.eA,this.fA);a.stencilOp(this.aA,this.cA,this.dA);a.stencilMask(this.gA);
this.$z||a.disable(a.STENCIL_TEST);b.va.B.Kq--}})();var ma="res/1.png res/2.png res/3.png res/4.png res/5.png res/bg.jpg".split(" ");var ta=b.Pa.extend({yc:null,Us:null,Zh:0,ml:0,Do:0,ff:0,dh:0,map:null,Vx:!1,ctor:function(){this._super();var a=b.bi,c=new b.M("res/bg.jpg");this.ea(c,1);c.x=a.width/2;c.y=a.height/2;c=new b.va;this.ea(c,2);this.yc=new b.Pa;this.yc.x=(a.width-Z*$)/2;this.yc.y=(a.height-Z*$)/2;c.ea(this.yc,1);a=new b.wa;a.Lr(b.i(this.yc.x,this.yc.y),b.i(this.yc.x+Z*$,this.yc.y+Z*$),b.color(0,0,0),1,b.color(0,0,0));c.stencil=a;"touches"in b.W.bj?b.Z.addListener({event:b.V.sm,lj:this.Mv.bind(this)},this.yc):b.Z.addListener({event:b.V.li,
eo:this.YL.bind(this)},this.yc);this.Se();this.Us=new oa(this);this.ea(this.Us,3);return!0},Se:function(){this.Do=0;var a=b.W.localStorage.getItem("level")||0;this.ml=parseInt(a);a=b.W.localStorage.getItem("score")||0;this.Zh=parseInt(a);this.ff=pa[this.ml].ff;this.dh=pa[this.ml].dh;this.map=[];for(a=0;a<$;a++){for(var c=[],d=0;d<$;d++){var e=qa.KD(a,d);this.yc.ea(e);e.x=a*Z+Z/2;e.y=d*Z+Z/2;c.push(e)}this.map.push(c)}},Mv:function(a){this.YB(Math.floor((a.ej().x-this.yc.x)/Z),Math.floor((a.ej().y-
this.yc.y)/Z));return!0},YL:function(a){this.YB(Math.floor((a.ZD()-this.yc.x)/Z),Math.floor((a.$D()-this.yc.y)/Z))},YB:function(a,c){if(!this.Vx){for(var d=[this.map[a][c]],e=0,f=function(a){0>d.indexOf(a)&&d.push(a)};e<d.length;){var g=d[e];this.eq(g.dd-1,g.fc)&&this.map[g.dd-1][g.fc].type==g.type&&f(this.map[g.dd-1][g.fc]);this.eq(g.dd+1,g.fc)&&this.map[g.dd+1][g.fc].type==g.type&&f(this.map[g.dd+1][g.fc]);this.eq(g.dd,g.fc-1)&&this.map[g.dd][g.fc-1].type==g.type&&f(this.map[g.dd][g.fc-1]);this.eq(g.dd,
g.fc+1)&&this.map[g.dd][g.fc+1].type==g.type&&f(this.map[g.dd][g.fc+1]);e++}if(!(1>=d.length)){this.Do++;this.Vx=!0;for(e=0;e<d.length;e++)g=d[e],this.yc.removeChild(g),this.map[g.dd][g.fc]=null;this.Zh+=d.length*d.length;this.OK();this.rK()}}},eq:function(a,c){return 0<=a&&a<$&&0<=c&&c<$?!0:!1},OK:function(){for(var a=0,c=0;c<$;c++){for(var d=0,e=0;e<this.map[c].length;e++){var f=this.map[c][e];if(f){var g=d;if(0<g){var h=Math.sqrt(2*g/ra);h>a&&(a=h);h=b.moveTo(h,f.x,f.y-Z*g).oa(b.SD(2));f.ey(h);
f.fc-=g;this.map[c][e]=null;this.map[c][f.fc]=f}}else f=qa.KD(c,$+d),this.yc.ea(f),f.x=f.dd*Z+Z/2,f.y=f.fc*Z+Z/2,this.map[c][f.fc]=f,d++}for(e=this.map[c].length;e>=$;e--)this.map[c].splice(e,1)}this.hy(this.GK.bind(this),a)},GK:function(){this.Vx=!1},rK:function(){this.Zh>this.dh?(this.Us.BS(),this.Zh+=30*(this.ff-this.Do),b.W.localStorage.setItem("level",this.ml+1),b.W.localStorage.setItem("score",this.Zh),this.hy(function(){b.la.Bs(new sa)},3)):this.Do>=this.ff&&(this.Us.zS(),b.W.localStorage.setItem("level",
0),b.W.localStorage.setItem("score",0),this.hy(function(){b.la.Bs(new sa)},3))}}),sa=b.Gp.extend({zc:function(){this._super();var a=new ta;this.ea(a)}});var Z=64,$=10,ra=30,pa=[{ff:30,dh:500},{ff:25,dh:1E3},{ff:20,dh:2E3},{ff:20,dh:3E3},{ff:15,dh:4E3},{ff:10,dh:5E3}];var oa=b.Pa.extend({EE:null,kF:null,NF:null,Xk:null,ctor:function(a){this._super();this.Xk=a;this.zL();this.xl()},zL:function(){var a=b.la.Uf(),c=new b.A("Level","arial",36);c.x=100;c.y=a.height-50;c.Ea(b.color(0,0,0));this.ea(c);a=new b.A("1","arial",36);a.x=100;a.y=c.y-40;a.Ea(b.color(0,0,0));this.ea(a);this.EE=a;var d=new b.A("Score","arial",36);d.x=370;d.y=c.y;d.Ea(b.color(0,0,0));this.ea(d);d=new b.A("1","arial",36);d.x=370;d.y=a.y;d.Ea(b.color(0,0,0));this.ea(d);this.kF=d;d=new b.A("Step","arial",
36);d.x=620;d.y=c.y;d.Ea(b.color(0,0,0));this.ea(d);c=new b.A("1","arial",36);c.x=620;c.y=a.y;c.Ea(b.color(0,0,0));this.ea(c);this.NF=c},BS:function(){var a=new b.Ta(b.color(255,255,255),500,500);this.ea(a,1);var c=b.la.Uf();a.x=(c.width-a.width)/2;a.y=(c.height-a.height)/2;c=new b.A("\u606d\u559c\uff0c\u5df2\u5b8c\u6210\u7b2c"+(this.Xk.ml+1)+"\u5173\uff0c\n\u5269\u4f59\u6b65\u657030\u500d\u5956\u52b1\uff01","arial",50);c.Ea(b.color(0,0,0));c.x=250;c.y=250;a.ea(c)},zS:function(){var a=new b.Ta(b.color(255,
255,255),500,500);this.ea(a,1);var c=b.la.Uf();a.x=(c.width-a.width)/2;a.y=(c.height-a.height)/2;c=new b.A("\u5931\u8d25\u4e86\uff0c\n\u4ece\u5934\u6765\u8fc7\u5427\uff01","arial",56);c.Ea(b.color(0,0,0));c.x=250;c.y=250;a.ea(c)},update:function(){this.EE.oc(""+(this.Xk.ml+1));this.kF.oc(""+this.Xk.Zh);this.NF.oc(""+(this.Xk.ff-this.Xk.Do))}});var qa=b.M.extend({type:0,dd:0,fc:0,ctor:function(a,c,d){this._super("res/"+(a+1)+".png");this.fa(a,c,d)},fa:function(a,c,d){this.type=a;this.dd=c;this.fc=d}});qa.KD=function(a,c){return new qa(parseInt(5*Math.random()),a,c)};b.q.ol=function(){b.view.kN(!0);b.view.zl(720,1280,b.hd.SHOW_ALL);b.view.tR(!0);b.tt.fR(function(){b.la.Bs(new sa)},this)};b.q.zR();