-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
695 lines (695 loc) · 333 KB
/
c2runtime.js
File metadata and controls
695 lines (695 loc) · 333 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
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ba,da,ea,fa,ga,ka,la,ma,na,oa,pa,qa,ra,sa,ta,A,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Ea,Fa,J,Ga,Ha,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Wa,Xa,Ya,Za,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,d,h,b){this.set(a,d,h,b)}function p(){this.lb=this.kb=this.nb=this.mb=this.Ab=this.zb=this.Ya=this.Xa=0}function n(a,d,h,b){a<d?h<b?(l=a<h?a:h,v=d>b?d:b):(l=a<b?a:b,v=d>h?d:h):h<b?(l=d<h?d:h,v=a>b?a:b):(l=d<b?d:b,v=a>h?a:h)}function m(){this.items=this.Fb=null;this.gl=0;w&&(this.Fb=new Set);this.Uj=[];this.Bg=!0}function g(a){t[T++]=a}function q(){this.ea=this.vp=this.y=this.pk=0}function e(a){this.Wa=[];this.an=this.cn=this.dn=this.bn=0;this.gm(a)}function a(a,d){this.Qb=
a;this.$b=d;this.cells={}}function b(a,d){this.Qb=a;this.$b=d;this.cells={}}function c(a,d,h){var b;return G.length?(b=G.pop(),b.hr=a,b.x=d,b.y=h,b):new da(a,d,h)}function d(a,d,h){this.hr=a;this.x=d;this.y=h;this.fc=new ea}function k(a,d,h){var b;return z.length?(b=z.pop(),b.hr=a,b.x=d,b.y=h,b):new fa(a,d,h)}function u(a,d,h){this.hr=a;this.x=d;this.y=h;this.fc=[];this.gj=!0;this.pf=new ea;this.lk=!1}function h(a,d){return a.Se-d.Se}ga=function(a){window.console&&window.console.log&&window.console.log(a)};
ka=function(a){window.console&&window.console.error&&window.console.error(a)};ba=function(a){return a};la=function(a){return"undefined"===typeof a};ma=function(a){return"number"===typeof a};na=function(a){return"string"===typeof a};oa=function(a){return 0<a&&0===(a-1&a)};pa=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};qa=function(a){return 0>a?-a:a};ra=function(a,d){return a>d?a:d};sa=function(a,d){return a<d?a:d};ta=Math.PI;A=function(a){return 0<=a?a|0:(a|0)-1};ua=function(a){var d=
a|0;return d===a?d:d+1};va=function(a,d,h,b,k,c,l,r){var e,x,u,v;a<h?(x=a,e=h):(x=h,e=a);k<l?(v=k,u=l):(v=l,u=k);if(e<v||x>u)return!1;d<b?(x=d,e=b):(x=b,e=d);c<r?(v=c,u=r):(v=r,u=c);if(e<v||x>u)return!1;e=k-a+l-h;x=c-d+r-b;a=h-a;d=b-d;k=l-k;c=r-c;r=qa(d*k-c*a);return qa(k*x-c*e)>r?!1:qa(a*x-d*e)<=r};f.prototype.set=function(a,d,h,b){this.left=a;this.top=d;this.right=h;this.bottom=b};f.prototype.Hi=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=
function(){return this.right-this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.Qv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.Rv=
function(a,d,h){return!(a.right+d<this.left||a.bottom+h<this.top||a.left+d>this.right||a.top+h>this.bottom)};f.prototype.ac=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};f.prototype.zk=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};wa=f;p.prototype.gh=function(a){this.Xa=a.left;this.Ya=a.top;this.zb=a.right;this.Ab=a.top;this.mb=a.right;this.nb=a.bottom;this.kb=a.left;this.lb=a.bottom};p.prototype.Rx=function(a,
d){if(0===d)this.gh(a);else{var h=Math.sin(d),b=Math.cos(d),k=a.left*h,c=a.top*h,l=a.right*h,h=a.bottom*h,r=a.left*b,e=a.top*b,x=a.right*b,b=a.bottom*b;this.Xa=r-c;this.Ya=e+k;this.zb=x-c;this.Ab=e+l;this.mb=x-h;this.nb=b+l;this.kb=r-h;this.lb=b+k}};p.prototype.offset=function(a,d){this.Xa+=a;this.Ya+=d;this.zb+=a;this.Ab+=d;this.mb+=a;this.nb+=d;this.kb+=a;this.lb+=d;return this};var l=0,v=0;p.prototype.Iu=function(a){n(this.Xa,this.zb,this.mb,this.kb);a.left=l;a.right=v;n(this.Ya,this.Ab,this.nb,
this.lb);a.top=l;a.bottom=v};p.prototype.ac=function(a,d){var h=this.Xa,b=this.Ya,k=this.zb-h,c=this.Ab-b,l=this.mb-h,r=this.nb-b,e=a-h,x=d-b,u=k*k+c*c,v=k*l+c*r,c=k*e+c*x,g=l*l+r*r,t=l*e+r*x,f=1/(u*g-v*v),k=(g*c-v*t)*f,u=(u*t-v*c)*f;if(0<=k&&0<u&&1>k+u)return!0;k=this.kb-h;c=this.lb-b;u=k*k+c*c;v=k*l+c*r;c=k*e+c*x;f=1/(u*g-v*v);k=(g*c-v*t)*f;u=(u*t-v*c)*f;return 0<=k&&0<u&&1>k+u};p.prototype.yg=function(a,d){if(d)switch(a){case 0:return this.Xa;case 1:return this.zb;case 2:return this.mb;case 3:return this.kb;
case 4:return this.Xa;default:return this.Xa}else switch(a){case 0:return this.Ya;case 1:return this.Ab;case 2:return this.nb;case 3:return this.lb;case 4:return this.Ya;default:return this.Ya}};p.prototype.Iw=function(){return(this.Xa+this.zb+this.mb+this.kb)/4};p.prototype.Jw=function(){return(this.Ya+this.Ab+this.nb+this.lb)/4};p.prototype.rr=function(a){var d=a.Iw(),h=a.Jw();if(this.ac(d,h))return!0;d=this.Iw();h=this.Jw();if(a.ac(d,h))return!0;var b,k,c,l,r,e,x,u;for(x=0;4>x;x++)for(u=0;4>u;u++)if(d=
this.yg(x,!0),h=this.yg(x,!1),b=this.yg(x+1,!0),k=this.yg(x+1,!1),c=a.yg(u,!0),l=a.yg(u,!1),r=a.yg(u+1,!0),e=a.yg(u+1,!1),va(d,h,b,k,c,l,r,e))return!0;return!1};xa=p;ya=function(a,d,h){return Math.max(Math.min(a,255),0)|Math.max(Math.min(d,255),0)<<8|Math.max(Math.min(h,255),0)<<16};za=function(a){return a&255};Aa=function(a){return(a&65280)>>8};Ba=function(a){return(a&16711680)>>16};Ca=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};Ea=function(a,d){var h,b;d=A(d);if(!(0>
d||d>=a.length)){h=d;for(b=a.length-1;h<b;h++)a[h]=a[h+1];Fa(a,b)}};Fa=function(a,d){a.length=d};J=function(a){Fa(a,0)};Ga=function(a,d){J(a);var h,b;h=0;for(b=d.length;h<b;++h)a[h]=d[h]};Ha=function(a,d){a.push.apply(a,d)};Ia=function(a,d){var h,b;h=0;for(b=a.length;h<b;++h)if(a[h]===d)return h;return-1};Ja=function(a,d){var h=Ia(a,d);-1!==h&&Ea(a,h)};Ka=function(a,d,h){return a<d?d:a>h?h:a};Ma=function(a){return a/(180/ta)};Na=function(a){return 180/ta*a};Oa=function(a){a%=360;0>a&&(a+=360);return a};
Pa=function(a){a%=2*ta;0>a&&(a+=2*ta);return a};Qa=function(a){return Oa(Na(a))};Ra=function(a){return Pa(Ma(a))};Sa=function(a,d,h,b){return Math.atan2(b-d,h-a)};Ta=function(a,d){if(a===d)return 0;var h=Math.sin(a),b=Math.cos(a),k=Math.sin(d),c=Math.cos(d),h=h*k+b*c;return 1<=h?0:-1>=h?ta:Math.acos(h)};Wa=function(a,d,h){var b=Math.sin(a),k=Math.cos(a),c=Math.sin(d),l=Math.cos(d);return Math.acos(b*c+k*l)>h?0<k*c-b*l?Pa(a+h):Pa(a-h):Pa(d)};Xa=function(a,d){var h=Math.sin(a),b=Math.cos(a),k=Math.sin(d),
c=Math.cos(d);return 0>=b*k-h*c};Ya=function(a,d,h,b,k,c){if(0===h)return c?a:d;var l=Math.sin(h);h=Math.cos(h);a-=b;d-=k;var r=a*l;a=a*h-d*l;d=d*h+r;return c?a+b:d+k};Za=function(a,d,h,b){a=h-a;d=b-d;return Math.sqrt(a*a+d*d)};bb=function(a,d){return!a!==!d};cb=function(a,d,h){return a===d?0:(h-a)/(d-a)};db=function(a,d,h){var b=Ta(a,d);return Xa(d,a)?a+b*h:a-b*h};eb=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;return!1};fb=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};
var F=+new Date;gb=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-F};var r=!1,C=r=!1,D=!1;"undefined"!==typeof window&&(r=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),r=!r&&/safari/i.test(navigator.userAgent),C=/(iphone|ipod|ipad)/i.test(navigator.userAgent),
D=window.c2ejecta);var w=!r&&!D&&!C&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;m.prototype.contains=function(a){return this.Mf()?!1:w?this.Fb.has(a):this.items&&this.items.hasOwnProperty(a)};m.prototype.add=function(a){if(w)this.Fb.has(a)||(this.Fb.add(a),this.Bg=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.gl++,this.Bg=!1):(this.items={},this.items[d]=a,this.gl=1,this.Bg=!1)}};m.prototype.remove=function(a){if(!this.Mf())if(w)this.Fb.has(a)&&
(this.Fb["delete"](a),this.Bg=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.gl--,this.Bg=!1)}};m.prototype.clear=function(){this.Mf()||(w?this.Fb.clear():(this.items=null,this.gl=0),J(this.Uj),this.Bg=!0)};m.prototype.Mf=function(){return 0===this.count()};m.prototype.count=function(){return w?this.Fb.size:this.gl};var t=null,T=0;m.prototype.hG=function(){if(!this.Bg){if(w)J(this.Uj),t=this.Uj,T=0,this.Fb.forEach(g),t=null,T=0;else{var a=this.Uj;J(a);
var d,h=0,b=this.items;if(b)for(d in b)b.hasOwnProperty(d)&&(a[h++]=b[d])}this.Bg=!0}};m.prototype.ee=function(){this.hG();return this.Uj};ea=m;new ea;hb=function(a,d){w?ib(a,d.Fb):jb(a,d.ee())};ib=function(a,d){var h,b,k,c;b=h=0;for(k=a.length;h<k;++h)c=a[h],d.has(c)||(a[b++]=c);Fa(a,b)};jb=function(a,d){var h,b,k,c;b=h=0;for(k=a.length;h<k;++h)c=a[h],-1===Ia(d,c)&&(a[b++]=c);Fa(a,b)};q.prototype.add=function(a){this.y=a-this.pk;this.vp=this.ea+this.y;this.pk=this.vp-this.ea-this.y;this.ea=this.vp};
q.prototype.reset=function(){this.ea=this.vp=this.y=this.pk=0};kb=q;lb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};e.prototype.gm=function(a){this.vx=a;this.ld=a.length/2;this.Wa.length=a.length;this.jn=this.kn=-1;this.Lu=0};e.prototype.Sh=function(){return!this.vx.length};e.prototype.fa=function(){for(var a=this.Wa,d=a[0],h=d,b=a[1],k=b,c,l,r=1,e=this.ld;r<e;++r)l=2*r,c=a[l],l=a[l+1],c<d&&(d=c),c>h&&(h=c),l<b&&(b=l),l>k&&(k=l);this.bn=d;this.cn=h;this.dn=b;this.an=k};e.prototype.gh=
function(a,d,h){this.Wa.length=8;this.ld=4;var b=this.Wa;b[0]=a.left-d;b[1]=a.top-h;b[2]=a.right-d;b[3]=a.top-h;b[4]=a.right-d;b[5]=a.bottom-h;b[6]=a.left-d;b[7]=a.bottom-h;this.kn=a.right-a.left;this.jn=a.bottom-a.top;this.fa()};e.prototype.qi=function(a,d,h,b,k){this.Wa.length=8;this.ld=4;var c=this.Wa;c[0]=a.Xa-d;c[1]=a.Ya-h;c[2]=a.zb-d;c[3]=a.Ab-h;c[4]=a.mb-d;c[5]=a.nb-h;c[6]=a.kb-d;c[7]=a.lb-h;this.kn=b;this.jn=k;this.fa()};e.prototype.Qx=function(a){this.ld=a.ld;Ga(this.Wa,a.Wa);this.bn=a.bn;
this.dn=a.dn;this.cn=a.cn;this.an=a.an};e.prototype.Ag=function(a,d,h){if(this.kn!==a||this.jn!==d||this.Lu!==h){this.kn=a;this.jn=d;this.Lu=h;var b,k,c,l,r,e=0,x=1,u=this.vx,v=this.Wa;0!==h&&(e=Math.sin(h),x=Math.cos(h));h=0;for(c=this.ld;h<c;h++)b=2*h,k=b+1,l=u[b]*a,r=u[k]*d,v[b]=l*x-r*e,v[k]=r*x+l*e;this.fa()}};e.prototype.ac=function(a,d){var h=this.Wa;if(a===h[0]&&d===h[1])return!0;var b,k,c,l=this.ld,r=this.bn-110,e=this.dn-101,x=this.cn+131,u=this.an+120,v,g,t=0,f=0;for(b=0;b<l;b++)k=2*b,c=
(b+1)%l*2,v=h[k],k=h[k+1],g=h[c],c=h[c+1],va(r,e,a,d,v,k,g,c)&&t++,va(x,u,a,d,v,k,g,c)&&f++;return 1===t%2||1===f%2};e.prototype.Oh=function(a,d,h){var b=a.Wa,k=this.Wa;if(this.ac(b[0]+d,b[1]+h)||a.ac(k[0]-d,k[1]-h))return!0;var c,l,r,e,x,u,v,g,t,f,C,w;c=0;for(e=this.ld;c<e;c++)for(l=2*c,r=(c+1)%e*2,g=k[l],l=k[l+1],t=k[r],f=k[r+1],r=0,v=a.ld;r<v;r++)if(x=2*r,u=(r+1)%v*2,C=b[x]+d,x=b[x+1]+h,w=b[u]+d,u=b[u+1]+h,va(g,l,t,f,C,x,w,u))return!0;return!1};e.prototype.KE=function(a){var d,h,b;d=0;for(h=this.ld;d<
h;++d)b=2*d,this.Wa[b]=2*a-this.Wa[b]};e.prototype.yD=function(a){var d,h,b;d=0;for(h=this.ld;d<h;++d)b=2*d+1,this.Wa[b]=2*a-this.Wa[b]};e.prototype.oC=function(){var a,d,h,b,k;a=0;for(d=this.ld;a<d;++a)h=2*a,b=h+1,k=this.Wa[h],this.Wa[h]=this.Wa[b],this.Wa[b]=k};mb=e;a.prototype.Ng=function(a,d,h){var b;b=this.cells[a];return b?(b=b[d])?b:h?(b=c(this,a,d),this.cells[a][d]=b):null:h?(b=c(this,a,d),this.cells[a]={},this.cells[a][d]=b):null};a.prototype.Pc=function(a){return A(a/this.Qb)};a.prototype.Qc=
function(a){return A(a/this.$b)};a.prototype.update=function(a,d,h){var b,k,c,l,r;if(d)for(b=d.left,k=d.right;b<=k;++b)for(c=d.top,l=d.bottom;c<=l;++c)if(!h||!h.ac(b,c))if(r=this.Ng(b,c,!1))r.remove(a),r.Mf()&&(r.fc.clear(),1E3>G.length&&G.push(r),this.cells[b][c]=null);if(h)for(b=h.left,k=h.right;b<=k;++b)for(c=h.top,l=h.bottom;c<=l;++c)d&&d.ac(b,c)||this.Ng(b,c,!0).or(a)};a.prototype.Wo=function(a,d){var h,b,k,c,l,r;h=this.Pc(a.left);k=this.Qc(a.top);b=this.Pc(a.right);for(l=this.Qc(a.bottom);h<=
b;++h)for(c=k;c<=l;++c)(r=this.Ng(h,c,!1))&&r.dump(d)};nb=a;b.prototype.Ng=function(a,d,h){var b;b=this.cells[a];return b?(b=b[d])?b:h?(b=k(this,a,d),this.cells[a][d]=b):null:h?(b=k(this,a,d),this.cells[a]={},this.cells[a][d]=b):null};b.prototype.Pc=function(a){return A(a/this.Qb)};b.prototype.Qc=function(a){return A(a/this.$b)};b.prototype.update=function(a,d,h){var b,k,c,l,r;if(d)for(b=d.left,k=d.right;b<=k;++b)for(c=d.top,l=d.bottom;c<=l;++c)if(!h||!h.ac(b,c))if(r=this.Ng(b,c,!1))r.remove(a),r.Mf()&&
(r.reset(),1E3>z.length&&z.push(r),this.cells[b][c]=null);if(h)for(b=h.left,k=h.right;b<=k;++b)for(c=h.top,l=h.bottom;c<=l;++c)d&&d.ac(b,c)||this.Ng(b,c,!0).or(a)};b.prototype.Wo=function(a,d,h,b,k){var c,l;a=this.Pc(a);d=this.Qc(d);h=this.Pc(h);for(c=this.Qc(b);a<=h;++a)for(b=d;b<=c;++b)(l=this.Ng(a,b,!1))&&l.dump(k)};b.prototype.GE=function(a){var d,h,b,k,c;d=a.left;b=a.top;h=a.right;for(k=a.bottom;d<=h;++d)for(a=b;a<=k;++a)if(c=this.Ng(d,a,!1))c.gj=!1};ob=b;var G=[];d.prototype.Mf=function(){return this.fc.Mf()};
d.prototype.or=function(a){this.fc.add(a)};d.prototype.remove=function(a){this.fc.remove(a)};d.prototype.dump=function(a){Ha(a,this.fc.ee())};da=d;var z=[];u.prototype.Mf=function(){if(!this.fc.length)return!0;if(this.fc.length>this.pf.count())return!1;this.Sq();return!0};u.prototype.or=function(a){this.pf.contains(a)?(this.pf.remove(a),this.pf.Mf()&&(this.lk=!1)):this.fc.length?(this.fc[this.fc.length-1].Td()>a.Td()&&(this.gj=!1),this.fc.push(a)):(this.fc.push(a),this.gj=!0)};u.prototype.remove=
function(a){this.pf.add(a);this.lk=!0;30<=this.pf.count()&&this.Sq()};u.prototype.Sq=function(){this.lk&&(this.pf.count()===this.fc.length?this.reset():(hb(this.fc,this.pf),this.pf.clear(),this.lk=!1))};u.prototype.PC=function(){this.gj||(this.fc.sort(h),this.gj=!0)};u.prototype.reset=function(){J(this.fc);this.gj=!0;this.pf.clear();this.lk=!1};u.prototype.dump=function(a){this.Sq();this.PC();this.fc.length&&a.push(this.fc)};fa=u;var E="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
pb=function(a){return 0>=a||11<=a?"source-over":E[a-1]};qb=function(a,d,h){if(h)switch(a.yc=h.ONE,a.mc=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.yc=h.ONE;a.mc=h.ONE;break;case 3:a.yc=h.ONE;a.mc=h.ZERO;break;case 4:a.yc=h.ONE_MINUS_DST_ALPHA;a.mc=h.ONE;break;case 5:a.yc=h.DST_ALPHA;a.mc=h.ZERO;break;case 6:a.yc=h.ZERO;a.mc=h.SRC_ALPHA;break;case 7:a.yc=h.ONE_MINUS_DST_ALPHA;a.mc=h.ZERO;break;case 8:a.yc=h.ZERO;a.mc=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.yc=h.DST_ALPHA;a.mc=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.yc=
h.ONE_MINUS_DST_ALPHA,a.mc=h.SRC_ALPHA}};rb=function(a){return Math.round(1E6*a)/1E6};ub=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};vb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ub(a.tagName,"canvas")?!0:!1}})();var pc="undefined"!==typeof Float32Array?Float32Array:Array;function qc(f){var p=new pc(3);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2]);return p}
function rc(f){var p=new pc(16);f&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[12]=f[12],p[13]=f[13],p[14]=f[14],p[15]=f[15]);return p}function sc(f,p){p[0]=f[0];p[1]=f[1];p[2]=f[2];p[3]=f[3];p[4]=f[4];p[5]=f[5];p[6]=f[6];p[7]=f[7];p[8]=f[8];p[9]=f[9];p[10]=f[10];p[11]=f[11];p[12]=f[12];p[13]=f[13];p[14]=f[14];p[15]=f[15]}
function tc(f,p){var n=p[0],m=p[1];p=p[2];f[0]*=n;f[1]*=n;f[2]*=n;f[3]*=n;f[4]*=m;f[5]*=m;f[6]*=m;f[7]*=m;f[8]*=p;f[9]*=p;f[10]*=p;f[11]*=p}
function uc(f,p,n,m){m||(m=rc());var g,q,e,a,b,c,d,k,u=f[0],h=f[1];f=f[2];q=n[0];e=n[1];g=n[2];n=p[1];c=p[2];u===p[0]&&h===n&&f===c?(f=m,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(n=u-p[0],c=h-p[1],d=f-p[2],k=1/Math.sqrt(n*n+c*c+d*d),n*=k,c*=k,d*=k,p=e*d-g*c,g=g*n-q*d,q=q*c-e*n,(k=Math.sqrt(p*p+g*g+q*q))?(k=1/k,p*=k,g*=k,q*=k):q=g=p=0,e=c*q-d*g,a=d*p-n*q,b=n*g-c*p,(k=Math.sqrt(e*e+a*a+b*b))?(k=1/k,e*=k,a*=k,b*=k):b=a=e=0,
m[0]=p,m[1]=e,m[2]=n,m[3]=0,m[4]=g,m[5]=a,m[6]=c,m[7]=0,m[8]=q,m[9]=b,m[10]=d,m[11]=0,m[12]=-(p*u+g*h+q*f),m[13]=-(e*u+a*h+b*f),m[14]=-(n*u+c*h+d*f),m[15]=1)}
(function(){function f(a,b,c){this.df=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ua=!!c;this.fo=this.al=!1;this.xn=0;this.Qp=1;this.pt=1E3;this.qG=(this.pt-this.Qp)/32768;this.rq=qc([0,0,100]);this.pw=qc([0,0,0]);this.uy=qc([0,1,0]);this.Jm=qc([1,1,1]);this.jv=!0;this.zo=rc();this.Ed=rc();this.Er=rc();this.zq=rc();this.T=a;this.version=0===this.T.getParameter(this.T.VERSION).indexOf("WebGL 2")?2:1;this.Mv()}function p(a,b,c){this.T=a;this.hm=
b;this.name=c;this.Ud=a.getAttribLocation(b,"aPos");this.Yg=a.getAttribLocation(b,"aTex");this.mw=a.getUniformLocation(b,"matP");this.vo=a.getUniformLocation(b,"matMV");this.qj=a.getUniformLocation(b,"opacity");this.Pr=a.getUniformLocation(b,"colorFill");this.ow=a.getUniformLocation(b,"samplerFront");this.ql=a.getUniformLocation(b,"samplerBack");this.bi=a.getUniformLocation(b,"destStart");this.ai=a.getUniformLocation(b,"destEnd");this.sl=a.getUniformLocation(b,"seconds");this.Rr=a.getUniformLocation(b,
"pixelWidth");this.Qr=a.getUniformLocation(b,"pixelHeight");this.pl=a.getUniformLocation(b,"layerScale");this.ol=a.getUniformLocation(b,"layerAngle");this.tl=a.getUniformLocation(b,"viewOrigin");this.rl=a.getUniformLocation(b,"scrollPos");this.gE=!!(this.Rr||this.Qr||this.sl||this.ql||this.bi||this.ai||this.pl||this.ol||this.tl||this.rl);this.yw=this.zw=-999;this.yo=1;this.uw=this.sw=0;this.ww=this.rw=this.qw=1;this.Cw=this.Bw=this.Aw=this.Ew=this.Dw=this.vw=0;this.Dr=[];this.xw=rc();this.qj&&a.uniform1f(this.qj,
1);this.Pr&&a.uniform4f(this.Pr,1,1,1,1);this.ow&&a.uniform1i(this.ow,0);this.ql&&a.uniform1i(this.ql,1);this.bi&&a.uniform2f(this.bi,0,0);this.ai&&a.uniform2f(this.ai,1,1);this.pl&&a.uniform1f(this.pl,1);this.ol&&a.uniform1f(this.ol,0);this.tl&&a.uniform2f(this.tl,0,0);this.rl&&a.uniform2f(this.rl,0,0);this.sl&&a.uniform1f(this.sl,0);this.Jh=!1}function n(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function m(a,b){this.type=a;this.F=b;this.T=b.T;this.xd=this.Hc=this.Xw=0;this.za=this.be=null;this.Sx=[]}var g=rc();f.prototype.Mv=function(){var a=this.T,b;this.fw=1;this.Uh=this.Vg=null;this.wn=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.Ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.gw=a.ONE;this.ew=a.ONE_MINUS_SRC_ALPHA;this.Bm=new Float32Array(8E3*(this.Ua?3:2));this.qm=new Float32Array(16E3);this.kx=new Float32Array(32E3);this.os=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.os);a.bufferData(a.ARRAY_BUFFER,this.kx.byteLength,a.DYNAMIC_DRAW);this.Am=Array(4);this.pm=Array(4);for(b=0;4>b;b++)this.Am[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Am[b]),a.bufferData(a.ARRAY_BUFFER,this.Bm.byteLength,a.DYNAMIC_DRAW),this.pm[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.pm[b]),a.bufferData(a.ARRAY_BUFFER,this.qm.byteLength,a.DYNAMIC_DRAW);this.Af=0;this.jE=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.jE);for(var c=new Uint16Array(12E3),d=b=0;12E3>b;)c[b++]=d,c[b++]=d+1,c[b++]=d+2,c[b++]=d,c[b++]=d+2,c[b++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.qs=this.ih=this.ge=0;this.wb=[];b=this.Ua?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.uk({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.wb.push(c);c=this.uk({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.wb.push(c);c=this.uk({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.wb.push(c);c=this.uk({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.wb.push(c);for(var k in vc)vc.hasOwnProperty(k)&&this.wb.push(this.uk(vc[k],b,k));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Ve=[];this.ke=0;this.cc=!1;this.Xu=this.jl=-1;this.Ii=null;this.Qq=a.createFramebuffer();this.Dn=this.Yo=null;this.Fu=!1;this.Ua&&(this.Dn=a.createRenderbuffer());this.mh=qc([0,0,0]);this.Fw=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Fw&&(this.Fw=2048);this.Zc(0)};p.prototype.it=function(a){n(this.xw,a)||(sc(a,this.xw),this.T.uniformMatrix4fv(this.vo,
!1,a))};f.prototype.uk=function(a,b,c){var d=this.T,k=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(k,a.src);d.compileShader(k);if(!d.getShaderParameter(k,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(k),d.deleteShader(k),Error("error compiling fragment shader: "+a);var e=d.createShader(d.VERTEX_SHADER);d.shaderSource(e,b);d.compileShader(e);if(!d.getShaderParameter(e,d.COMPILE_STATUS))throw a=d.getShaderInfoLog(e),d.deleteShader(k),d.deleteShader(e),Error("error compiling vertex shader: "+a);b=
d.createProgram();d.attachShader(b,k);d.attachShader(b,e);d.linkProgram(b);if(!d.getProgramParameter(b,d.LINK_STATUS))throw a=d.getProgramInfoLog(b),d.deleteShader(k),d.deleteShader(e),d.deleteProgram(b),Error("error linking shader program: "+a);d.useProgram(b);d.deleteShader(k);d.deleteShader(e);k=new p(d,b,c);k.Oq=a.Oq||0;k.Pq=a.Pq||0;k.Wu=!!a.Wu;k.He=!!a.He;k.Cu=!!a.Cu;k.ua=a.ua||[];a=0;for(e=k.ua.length;a<e;a++)k.ua[a][1]=d.getUniformLocation(b,k.ua[a][0]),k.Dr.push(0),d.uniform1f(k.ua[a][1],
0);return k};f.prototype.dr=function(a){var b,c;b=0;for(c=this.wb.length;b<c;b++)if(this.wb[b].name===a)return b;return-1};f.prototype.ux=function(a,b,c){var d=this.Ed,k=this.zo,e=[0,0,0,0,0,0,0,0];e[0]=d[0]*a+d[4]*b+d[12];e[1]=d[1]*a+d[5]*b+d[13];e[2]=d[2]*a+d[6]*b+d[14];e[3]=d[3]*a+d[7]*b+d[15];e[4]=k[0]*e[0]+k[4]*e[1]+k[8]*e[2]+k[12]*e[3];e[5]=k[1]*e[0]+k[5]*e[1]+k[9]*e[2]+k[13]*e[3];e[6]=k[2]*e[0]+k[6]*e[1]+k[10]*e[2]+k[14]*e[3];e[7]=-e[2];0!==e[7]&&(e[7]=1/e[7],e[4]*=e[7],e[5]*=e[7],e[6]*=e[7],
c[0]=(.5*e[4]+.5)*this.width,c[1]=(.5*e[5]+.5)*this.height)};f.prototype.oi=function(a,b,c){if(this.width!==a||this.height!==b||c){this.Hf();c=this.T;this.width=a;this.height=b;c.viewport(0,0,a,b);uc(this.rq,this.pw,this.uy,this.Ed);if(this.Ua){var d=-a/2;a=a/2;var k=b/2;b=-b/2;var e=this.Qp,h=this.pt,l=this.zo;l||(l=rc());var v=a-d,g=b-k,r=h-e;l[0]=2/v;l[1]=0;l[2]=0;l[3]=0;l[4]=0;l[5]=2/g;l[6]=0;l[7]=0;l[8]=0;l[9]=0;l[10]=-2/r;l[11]=0;l[12]=-(d+a)/v;l[13]=-(b+k)/g;l[14]=-(h+e)/r;l[15]=1;this.Jm[0]=
1;this.Jm[1]=1}else b=a/b,d=this.Qp,a=this.pt,l=this.zo,h=d*Math.tan(45*Math.PI/360),b*=h,k=-b,e=-h,l||(l=rc()),v=b-k,g=h-e,r=a-d,l[0]=2*d/v,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=2*d/g,l[6]=0,l[7]=0,l[8]=(b+k)/v,l[9]=(h+e)/g,l[10]=-(a+d)/r,l[11]=-1,l[12]=0,l[13]=0,l[14]=-(a*d*2)/r,l[15]=0,d=[0,0],a=[0,0],this.ux(0,0,d),this.ux(1,1,a),this.Jm[0]=1/(a[0]-d[0]),this.Jm[1]=-1/(a[1]-d[1]);d=0;for(a=this.wb.length;d<a;d++)k=this.wb[d],k.Jh=!1,k.mw&&(c.useProgram(k.hm),c.uniformMatrix4fv(k.mw,!1,this.zo));c.useProgram(this.wb[this.jl].hm);
c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE1);c.bindTexture(c.TEXTURE_2D,null);c.activeTexture(c.TEXTURE0);this.Uh=this.Vg=null;this.Dn&&(c.bindFramebuffer(c.FRAMEBUFFER,this.Qq),c.bindRenderbuffer(c.RENDERBUFFER,this.Dn),c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,this.width,this.height),this.Fu||(c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,this.Dn),this.Fu=!0),c.bindRenderbuffer(c.RENDERBUFFER,null),c.bindFramebuffer(c.FRAMEBUFFER,null),
this.Yo=null)}};f.prototype.Yd=function(){uc(this.rq,this.pw,this.uy,this.Ed);tc(this.Ed,this.Jm)};f.prototype.translate=function(a,b){if(0!==a||0!==b){this.mh[0]=a;this.mh[1]=b;this.mh[2]=0;var c=this.Ed,d=this.mh,k=d[0],e=d[1],d=d[2];c[12]=c[0]*k+c[4]*e+c[8]*d+c[12];c[13]=c[1]*k+c[5]*e+c[9]*d+c[13];c[14]=c[2]*k+c[6]*e+c[10]*d+c[14];c[15]=c[3]*k+c[7]*e+c[11]*d+c[15]}};f.prototype.scale=function(a,b){if(1!==a||1!==b)this.mh[0]=a,this.mh[1]=b,this.mh[2]=1,tc(this.Ed,this.mh)};f.prototype.bp=function(a){if(0!==
a){var b=this.Ed,c,d=Math.sin(a);a=Math.cos(a);var k=b[0],e=b[1],h=b[2],l=b[3],v=b[4],g=b[5],r=b[6],f=b[7];c?b!==c&&(c[8]=b[8],c[9]=b[9],c[10]=b[10],c[11]=b[11],c[12]=b[12],c[13]=b[13],c[14]=b[14],c[15]=b[15]):c=b;c[0]=k*a+v*d;c[1]=e*a+g*d;c[2]=h*a+r*d;c[3]=l*a+f*d;c[4]=k*-d+v*a;c[5]=e*-d+g*a;c[6]=h*-d+r*a;c[7]=l*-d+f*a}};f.prototype.Jd=function(){if(!n(this.Er,this.Ed)){var a=this.Wc();a.type=5;a.za?sc(this.Ed,a.za):a.za=rc(this.Ed);sc(this.Ed,this.Er);this.cc=!1}};f.prototype.kp=function(a){this.Ua&&
(32760<a&&(a=32760),this.xn=this.rq[2]-this.Qp-a*this.qG)};m.prototype.yC=function(){var a=this.T,b=this.F;0!==this.Hc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Qq),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.fo=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.fo=!1)};m.prototype.CC=function(){this.T.bindTexture(this.T.TEXTURE_2D,
this.be)};m.prototype.DC=function(){var a=this.T;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.be);a.activeTexture(a.TEXTURE0)};m.prototype.zC=function(){var a=this.Xw,b=this.F;b.wn=a;b=b.Ii;b.qj&&b.yo!==a&&(b.yo=a,this.T.uniform1f(b.qj,a))};m.prototype.tC=function(){this.T.drawElements(this.T.TRIANGLES,this.xd,this.T.UNSIGNED_SHORT,this.Hc)};m.prototype.vC=function(){this.T.blendFunc(this.Hc,this.xd)};m.prototype.FC=function(){var a,b,c,d=this.F.wb,k=this.F.Xu;a=0;for(b=d.length;a<
b;a++)c=d[a],a===k&&c.vo?(c.it(this.za),c.Jh=!0):c.Jh=!1;sc(this.za,this.F.zq)};m.prototype.uC=function(){var a=this.T,b=this.F;this.be?(b.Uh===this.be&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Uh=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Qq),b.fo||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.be,0)):(b.Ua||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
m.prototype.qC=function(){var a=this.T,b=this.Hc;0===b?(a.clearColor(this.za[0],this.za[1],this.za[2],this.za[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.za[0],this.za[1],this.za[2],this.za[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};m.prototype.xC=function(){var a=this.T;0!==this.Hc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};m.prototype.sC=function(){var a=this.T,b=this.F;b.Ua&&a.disable(a.DEPTH_TEST);
var c=b.wb[1];a.useProgram(c.hm);!c.Jh&&c.vo&&(c.it(b.zq),c.Jh=!0);a.enableVertexAttribArray(c.Ud);a.bindBuffer(a.ARRAY_BUFFER,b.os);a.vertexAttribPointer(c.Ud,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Hc/4,this.xd);c=b.Ii;a.useProgram(c.hm);0<=c.Ud&&(a.enableVertexAttribArray(c.Ud),a.bindBuffer(a.ARRAY_BUFFER,b.Am[b.Af]),a.vertexAttribPointer(c.Ud,b.Ua?3:2,a.FLOAT,!1,0,0));0<=c.Yg&&(a.enableVertexAttribArray(c.Yg),a.bindBuffer(a.ARRAY_BUFFER,b.pm[b.Af]),a.vertexAttribPointer(c.Yg,2,a.FLOAT,!1,
0,0));b.Ua&&a.enable(a.DEPTH_TEST)};m.prototype.AC=function(){var a=this.T,b=this.F,c=b.wb[this.Hc];b.Xu=this.Hc;b.Ii=c;a.useProgram(c.hm);!c.Jh&&c.vo&&(c.it(b.zq),c.Jh=!0);c.qj&&c.yo!==b.wn&&(c.yo=b.wn,a.uniform1f(c.qj,b.wn));0<=c.Ud&&(a.enableVertexAttribArray(c.Ud),a.bindBuffer(a.ARRAY_BUFFER,b.Am[b.Af]),a.vertexAttribPointer(c.Ud,b.Ua?3:2,a.FLOAT,!1,0,0));0<=c.Yg&&(a.enableVertexAttribArray(c.Yg),a.bindBuffer(a.ARRAY_BUFFER,b.pm[b.Af]),a.vertexAttribPointer(c.Yg,2,a.FLOAT,!1,0,0))};m.prototype.wC=
function(){var a=this.za;this.T.uniform4f(this.F.Ii.Pr,a[0],a[1],a[2],a[3])};m.prototype.BC=function(){var a,b,c=this.F.Ii,d=this.T;a=this.za;c.ql&&this.F.Uh!==this.be&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,this.be),this.F.Uh=this.be,d.activeTexture(d.TEXTURE0));var k=a[0];c.Rr&&k!==c.zw&&(c.zw=k,d.uniform1f(c.Rr,k));k=a[1];c.Qr&&k!==c.yw&&(c.yw=k,d.uniform1f(c.Qr,k));k=a[2];b=a[3];!c.bi||k===c.sw&&b===c.uw||(c.sw=k,c.uw=b,d.uniform2f(c.bi,k,b));k=a[4];b=a[5];!c.ai||k===c.qw&&b===
c.rw||(c.qw=k,c.rw=b,d.uniform2f(c.ai,k,b));k=a[6];c.pl&&k!==c.ww&&(c.ww=k,d.uniform1f(c.pl,k));k=a[7];c.ol&&k!==c.vw&&(c.vw=k,d.uniform1f(c.ol,k));k=a[8];b=a[9];!c.tl||k===c.Dw&&b===c.Ew||(c.Dw=k,c.Ew=b,d.uniform2f(c.tl,k,b));k=a[10];b=a[11];!c.rl||k===c.Aw&&b===c.Bw||(c.Aw=k,c.Bw=b,d.uniform2f(c.rl,k,b));k=a[12];c.sl&&k!==c.Cw&&(c.Cw=k,d.uniform1f(c.sl,k));if(c.ua.length)for(a=0,b=c.ua.length;a<b;a++)k=this.Sx[a],k!==c.Dr[a]&&(c.Dr[a]=k,d.uniform1f(c.ua[a][1],k))};f.prototype.Wc=function(){this.ke===
this.Ve.length&&this.Ve.push(new m(0,this));return this.Ve[this.ke++]};f.prototype.Hf=function(){if(0!==this.ke&&!this.T.isContextLost()){var a=this.T;0<this.qs&&(a.bindBuffer(a.ARRAY_BUFFER,this.os),a.bufferSubData(a.ARRAY_BUFFER,0,this.kx.subarray(0,this.qs)),b&&0<=b.Ud&&"<point>"===b.name&&a.vertexAttribPointer(b.Ud,4,a.FLOAT,!1,0,0));if(0<this.ge){var b=this.Ii;a.bindBuffer(a.ARRAY_BUFFER,this.Am[this.Af]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Bm.subarray(0,this.ge));b&&0<=b.Ud&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Ud,this.Ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.pm[this.Af]);a.bufferSubData(a.ARRAY_BUFFER,0,this.qm.subarray(0,this.ih));b&&0<=b.Yg&&"<point>"!==b.name&&a.vertexAttribPointer(b.Yg,2,a.FLOAT,!1,0,0)}for(var c,a=0,b=this.ke;a<b;a++)switch(c=this.Ve[a],c.type){case 1:c.tC();break;case 2:c.CC();break;case 3:c.zC();break;case 4:c.vC();break;case 5:c.FC();break;case 6:c.uC();break;case 7:c.qC();break;case 8:c.sC();break;case 9:c.AC();break;case 10:c.BC();break;
case 11:c.DC();break;case 12:c.wC();break;case 13:c.xC();break;case 14:c.yC()}this.qs=this.ih=this.ge=this.ke=0;this.fo=this.cc=!1;this.Af++;4<=this.Af&&(this.Af=0)}};f.prototype.Oe=function(a){if(a!==this.fw&&!this.al){var b=this.Wc();b.type=3;this.fw=b.Xw=a;this.cc=!1}};f.prototype.jc=function(a){if(a!==this.Vg){var b=this.Wc();b.type=2;this.Vg=b.be=a;this.cc=!1}};f.prototype.ag=function(a,b){if((a!==this.gw||b!==this.ew)&&!this.al){var c=this.Wc();c.type=4;c.Hc=a;c.xd=b;this.gw=a;this.ew=b;this.cc=
!1}};f.prototype.Fx=function(){this.ag(this.T.ONE,this.T.ONE_MINUS_SRC_ALPHA)};f.prototype.Ej=function(a,b,c,d,k,e,h,l){15992<=this.ge&&this.Hf();var v=this.ge,g=this.ih,r=this.Bm,f=this.qm,m=this.xn;if(this.cc)this.Ve[this.ke-1].xd+=6;else{var w=this.Wc();w.type=1;w.Hc=this.Ua?v:v/2*3;w.xd=6;this.cc=!0}this.Ua?(r[v++]=a,r[v++]=b,r[v++]=m,r[v++]=c,r[v++]=d,r[v++]=m,r[v++]=k,r[v++]=e,r[v++]=m,r[v++]=h,r[v++]=l,r[v++]=m):(r[v++]=a,r[v++]=b,r[v++]=c,r[v++]=d,r[v++]=k,r[v++]=e,r[v++]=h,r[v++]=l);f[g++]=
0;f[g++]=0;f[g++]=1;f[g++]=0;f[g++]=1;f[g++]=1;f[g++]=0;f[g++]=1;this.ge=v;this.ih=g};f.prototype.nd=function(a,b,c,d,k,e,h,l,v){15992<=this.ge&&this.Hf();var g=this.ge,r=this.ih,f=this.Bm,m=this.qm,w=this.xn;if(this.cc)this.Ve[this.ke-1].xd+=6;else{var t=this.Wc();t.type=1;t.Hc=this.Ua?g:g/2*3;t.xd=6;this.cc=!0}var t=v.left,q=v.top,G=v.right;v=v.bottom;this.Ua?(f[g++]=a,f[g++]=b,f[g++]=w,f[g++]=c,f[g++]=d,f[g++]=w,f[g++]=k,f[g++]=e,f[g++]=w,f[g++]=h,f[g++]=l,f[g++]=w):(f[g++]=a,f[g++]=b,f[g++]=c,
f[g++]=d,f[g++]=k,f[g++]=e,f[g++]=h,f[g++]=l);m[r++]=t;m[r++]=q;m[r++]=G;m[r++]=q;m[r++]=G;m[r++]=v;m[r++]=t;m[r++]=v;this.ge=g;this.ih=r};f.prototype.wF=function(a,b,c,d,k,e,h,l,g,f,r,m,q,w,t,T){15992<=this.ge&&this.Hf();var G=this.ge,p=this.ih,n=this.Bm,L=this.qm,P=this.xn;if(this.cc)this.Ve[this.ke-1].xd+=6;else{var S=this.Wc();S.type=1;S.Hc=this.Ua?G:G/2*3;S.xd=6;this.cc=!0}this.Ua?(n[G++]=a,n[G++]=b,n[G++]=P,n[G++]=c,n[G++]=d,n[G++]=P,n[G++]=k,n[G++]=e,n[G++]=P,n[G++]=h,n[G++]=l,n[G++]=P):(n[G++]=
a,n[G++]=b,n[G++]=c,n[G++]=d,n[G++]=k,n[G++]=e,n[G++]=h,n[G++]=l);L[p++]=g;L[p++]=f;L[p++]=r;L[p++]=m;L[p++]=q;L[p++]=w;L[p++]=t;L[p++]=T;this.ge=G;this.ih=p};f.prototype.Zc=function(a){if(this.jl!==a){if(!this.wb[a]){if(0===this.jl)return;a=0}var b=this.Wc();b.type=9;this.jl=b.Hc=a;this.cc=!1}};f.prototype.Tl=function(a){a=this.wb[a];return!(!a.bi&&!a.ai)};f.prototype.us=function(a){a=this.wb[a];return!!(a.bi||a.ai||a.Wu)};f.prototype.ts=function(a){return this.wb[a].He};f.prototype.uF=function(a){a=
this.wb[a];return 0!==a.Oq||0!==a.Pq};f.prototype.PD=function(a){return this.wb[a].Oq};f.prototype.QD=function(a){return this.wb[a].Pq};f.prototype.RD=function(a,b){return this.wb[a].ua[b][2]};f.prototype.To=function(a){return this.wb[a].Cu};f.prototype.Kj=function(a,b,c,d,k,e,h,l,g,f,r,m,q,w,t){var T=this.wb[this.jl],n,p;if(T.gE||t.length){n=this.Wc();n.type=10;n.za?sc(this.Ed,n.za):n.za=rc();p=n.za;p[0]=b;p[1]=c;p[2]=d;p[3]=k;p[4]=e;p[5]=h;p[6]=l;p[7]=g;p[8]=f;p[9]=r;p[10]=m;p[11]=q;p[12]=w;T.ql?
n.be=a:n.be=null;if(t.length)for(c=n.Sx,c.length=t.length,a=0,b=t.length;a<b;a++)c[a]=t[a];this.cc=!1}};f.prototype.clear=function(a,b,c,d){var k=this.Wc();k.type=7;k.Hc=0;k.za||(k.za=rc());k.za[0]=a;k.za[1]=b;k.za[2]=c;k.za[3]=d;this.cc=!1};f.prototype.clearRect=function(a,b,c,d){if(!(0>c||0>d)){var k=this.Wc();k.type=7;k.Hc=1;k.za||(k.za=rc());k.za[0]=a;k.za[1]=b;k.za[2]=c;k.za[3]=d;this.cc=!1}};f.prototype.Jx=function(a){if(this.Ua&&(a=!!a,this.al!==a)){var b=this.Wc();b.type=14;b.Hc=a?1:0;this.cc=
!1;this.al=a;this.Yo=null;this.al?this.Zc(2):this.Zc(0)}};f.prototype.Hx=function(a){if(this.Ua){var b=this.Wc();b.type=13;b.Hc=a?1:0;this.cc=!1}};f.prototype.tv=function(){sc(this.Er,g);this.Yd();this.Jd();var a=this.width/2,b=this.height/2;this.Ej(-a,b,a,b,a,-b,-a,-b);sc(g,this.Ed);this.Jd()};f.prototype.Gx=function(a,b,c){this.Zc(3);var d=this.Wc();d.type=12;d.za||(d.za=rc());d.za[0]=a;d.za[1]=b;d.za[2]=c;d.za[3]=1;this.cc=!1};f.prototype.TF=function(){this.Zc(0)};f.prototype.CF=function(){this.Zc(2)};
f.prototype.rF=function(){this.Hf();this.T.flush()};var q=[],e={};f.prototype.fC=function(){J(q);e={}};f.prototype.Cd=function(a,b,c,d,k){b=!!b;c=!!c;var g=a.src+","+b+","+c+(b?","+k:""),h=null;if("undefined"!==typeof a.src&&e.hasOwnProperty(g))return h=e[g],h.hn++,h;this.Hf();var l=this.T,v=oa(a.width)&&oa(a.height),h=l.createTexture();l.bindTexture(l.TEXTURE_2D,h);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var f=l.RGBA,r=l.RGBA,m=l.UNSIGNED_BYTE;if(d&&!this.df)switch(d){case 1:r=f=l.RGB;
break;case 2:m=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=f=l.RGB,m=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!v&&b){d=document.createElement("canvas");d.width=pa(a.width);d.height=pa(a.height);var n=d.getContext("2d");"undefined"!==typeof n.imageSmoothingEnabled?n.imageSmoothingEnabled=c:(n.webkitImageSmoothingEnabled=c,n.mozImageSmoothingEnabled=c,n.msImageSmoothingEnabled=c);n.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);l.texImage2D(l.TEXTURE_2D,
0,f,r,m,d)}else l.texImage2D(l.TEXTURE_2D,0,f,r,m,a);b?"repeat-x"===k?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE)):("repeat-y"===k?l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));
c?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR),(v||2<=this.version)&&this.jv?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Vg=null;h.oe=a.width;h.ne=a.height;h.hn=1;h.Ku=g;q.push(h);return e[g]=h};f.prototype.Sc=
function(a,b,c,d,k){this.Hf();var e=this.T;this.df&&(d=!1);var h=e.createTexture();e.bindTexture(e.TEXTURE_2D,h);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);k?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,
c?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,c?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Vg=null;h.oe=a;h.ne=b;q.push(h);return h};f.prototype.Jp=function(a,b,c){this.Hf();var d=this.T;this.df&&(c=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(k){console&&console.error&&console.error("Error updating WebGL texture: ",k)}d.bindTexture(d.TEXTURE_2D,
null);this.Vg=null};f.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.hn&&1<a.hn?a.hn--:(this.Hf(),a===this.Vg&&(this.T.bindTexture(this.T.TEXTURE_2D,null),this.Vg=null),a===this.Uh&&(this.T.activeTexture(this.T.TEXTURE1),this.T.bindTexture(this.T.TEXTURE_2D,null),this.T.activeTexture(this.T.TEXTURE0),this.Uh=null),Ja(q,a),"undefined"!==typeof a.Ku&&delete e[a.Ku],this.T.deleteTexture(a)))};f.prototype.Zd=function(a){if(a!==this.Yo){var b=this.Wc();b.type=6;this.Yo=b.be=a;this.cc=!1}};
wb=f})();
(function(){function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.Ad=(this.$k=/crosswalk/i.test(navigator.userAgent)||/xwalk/i.test(navigator.userAgent)||!("undefined"===typeof window.c2isCrosswalk||!window.c2isCrosswalk))||"undefined"!==typeof window.device&&("undefined"!==typeof window.device.cordova||"undefined"!==typeof window.device.phonegap)||"undefined"!==typeof window.c2iscordova&&window.c2iscordova;this.Ec=!!a.dc;this.Uv="undefined"!==typeof window.AppMobi||this.Ec;
this.zd=!!window.c2cocoonjs;this.ve=!!window.c2ejecta;this.zd&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.ve&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.N=this.Ec||this.zd||this.ve;this.$i=/edge\//i.test(navigator.userAgent);
this.df=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.$i;this.Yv=/tizen/i.test(navigator.userAgent);this.Zi=/android/i.test(navigator.userAgent)&&!this.Yv&&!this.df&&!this.$i;this.aw=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.df&&!this.$i;this.zE=/ipad/i.test(navigator.userAgent);this.Th=this.aw||this.zE||this.ve;this.ho=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&
!this.df&&!this.$i;this.Tv=/amazonwebappplatform/i.test(navigator.userAgent);this.oE=/firefox/i.test(navigator.userAgent);this.sE=/safari/i.test(navigator.userAgent)&&!this.ho&&!this.df&&!this.$i;this.vE=/windows/i.test(navigator.userAgent);this.cl="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Zv=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.xE=!("undefined"===typeof window.c2isWindows8Capable||
!window.c2isWindows8Capable);this.dl=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Ar=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.yr=!!window.cr_windows10;this.uE=this.Zv||this.xE||this.Ar||this.yr;this.mE=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Yk=this.Zi&&!this.ho&&!this.$k&&!this.oE&&!this.Tv&&!this.N;this.devicePixelRatio=1;this.ef=this.Ad||this.$k||this.Uv||this.zd||this.Zi||this.Th||
this.dl||this.Ar||this.mE||this.Yv||this.ve;this.ef||(this.ef=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.jo=!!(this.Th&&this.Ad&&window.webkit);"undefined"===typeof cr_is_preview||this.cl||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.cl=!0);this.canvas=a;this.Pd=document.getElementById("c2canvasdiv");this.F=this.T=null;this.gr="(unavailable)";this.Ua=
!1;this.zh=0;this.Za=null;this.On=!1;this.Vw=this.Ww=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ec&&(window.c2runtime=this);this.cl&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&
window.nwgui.App.clearCache());this.Yk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.aa=this.width;this.Z=this.height;this.un=this.width;this.wk=this.height;this.nj=window.innerWidth;this.mj=window.innerHeight;this.ca=!0;this.Rh=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.P=[];this.jb=[];this.pj={};this.Ce=[];this.Nq={};this.If=[];this.Wj=[];this.Dp=[];this.PB=[];this.QB=
[];this.dw=this.Zx=null;this.xh={};this.tr=this.Pg=!1;this.Bd=0;this.sr=this.xr=!1;this.te=[];this.bl=!1;this.ll=this.ep="";this.Xb=null;this.Of="";this.nm=this.Vx=!1;this.Nn=[];this.Lg=this.yh=0;this.Kw=30;this.yq=this.ul=0;this.kh=1;this.Vb=new kb;this.mg=new kb;this.Eo=this.Vn=this.Ch=this.Id=this.Wh=this.Un=this.po=0;this.sh=null;this.Fn=[];this.Mq=[];this.Jn=-1;this.Sr=[[]];this.ct=this.wo=0;this.Uo(null);this.wl=[];this.xl=-1;this.Rw=this.El=0;this.Kr=!0;this.Ck=0;this.om=[];this.Ys=this.ys=
-1;this.ij=!0;this.nl=0;this.io=!1;this.WF=0;this.Ei=null;this.xa=this.ao=!1;this.$r=new ea;this.as=new ea;this.bs=new ea;this.mi=[];this.$c=new mb([]);this.Qs=new mb([]);this.Di=[];this.Vi={};this.Fg={};this.vg={};this.Vj={};this.Gu={};this.jw=this.ro=this.Lb=this.Wb=this.iw=this.qo=this.Da=null;this.Tj=this.Br=!1;this.Uq=[null,null];this.Ri=0;this.Ek="";this.Vf={};this.lm=this.Wg=null;this.Yx="";this.Do=[];this.BF()}}function p(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function n(){try{return!!window.indexedDB}catch(a){return!1}}
function m(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function g(a,d,h,b){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=m;k.onerror=b;k.onsuccess=function(k){k=k.target.result;k.onerror=b;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(c){b(c)}}function q(a,d,h){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=m;b.onerror=h;b.onsuccess=function(b){b=b.target.result;b.onerror=h;var k=b.transaction(["saves"]).objectStore("saves").get(a);
k.onsuccess=function(){k.result?d(k.result.data):d(null)}}}catch(k){h(k)}}function e(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var d,h={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ea||a[d]&&"undefined"!==typeof a[d].iH||"spriteCreatedDestroyCallback"!==d&&(h[d]=a[d]);return h}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.BF=function(){var a=this;if(this.jo)this.vD(function(d){a.ml(JSON.parse(d))},function(){alert("Error fetching data.js")});else{var d;this.dl?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var h="data.js";if(this.Zv||this.dl||this.Ar||this.yr)h="data.json";d.open("GET",h,!0);var b=!1;if(!this.N&&"response"in d&&"responseType"in d)try{d.responseType="json",b="json"===d.responseType}catch(k){b=
!1}if(!b&&"responseType"in d)try{d.responseType="text"}catch(c){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(l){}this.dl?d.onreadystatechange=function(){4===d.readyState&&a.ml(JSON.parse(d.responseText))}:(d.onload=function(){if(b)a.ml(d.response);else if(a.ve){var h=d.responseText,h=h.substr(h.indexOf("{"));a.ml(JSON.parse(h))}else a.ml(JSON.parse(d.responseText))},d.onerror=function(a){ka("Error requesting "+h+":");ka(a)});d.send()}};f.prototype.kE=
function(){var a=this,d,h,b,k,c,l,e,r,g;this.Qh=(!this.N||this.ve||this.Ad)&&this.jG&&!this.Yk;0===this.Dc&&this.Th&&(this.Qh=!1);this.devicePixelRatio=this.Qh?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Ac();0<this.Dc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.TE();ga("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.F.Mv();a.F.oi(a.F.width,a.F.height,!0);a.Wb=null;a.Lb=null;a.Uq[0]=null;a.Uq[1]=null;a.UE();a.ca=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.NC&&(this.zd||this.ve||!this.N)&&(d={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Zi||(this.T=this.canvas.getContext("webgl2",d)),this.T||(this.T=this.canvas.getContext("webgl",
d)||this.canvas.getContext("experimental-webgl",d)))}catch(v){}if(this.T){if(d=this.T.getExtension("WEBGL_debug_renderer_info"))this.gr=this.T.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.T.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.Ua&&(this.gr+=" [front-to-back enabled]");this.N||(this.uc=document.createElement("canvas"),jQuery(this.uc).appendTo(this.canvas.parentNode),this.uc.oncontextmenu=function(){return!1},this.uc.onselectstart=function(){return!1},this.uc.width=Math.round(this.un*
this.devicePixelRatio),this.uc.height=Math.round(this.wk*this.devicePixelRatio),jQuery(this.uc).css({width:this.un+"px",height:this.wk+"px"}),this.nx(),this.ns=this.uc.getContext("2d"));this.F=new wb(this.T,this.ef,this.Ua);this.F.oi(this.canvas.width,this.canvas.height);this.F.jv=0!==this.GC;this.Za=null;d=0;for(h=this.P.length;d<h;d++)for(c=this.P[d],b=0,k=c.na.length;b<k;b++)e=c.na[b],e.Ob=this.F.dr(e.id),e.He=this.F.ts(e.Ob),this.Tj=this.Tj||this.F.Tl(e.Ob);d=0;for(h=this.Ce.length;d<h;d++){r=
this.Ce[d];b=0;for(k=r.na.length;b<k;b++)e=r.na[b],e.Ob=this.F.dr(e.id),e.He=this.F.ts(e.Ob);r.Re();b=0;for(k=r.qa.length;b<k;b++){g=r.qa[b];c=0;for(l=g.na.length;c<l;c++)e=g.na[c],e.Ob=this.F.dr(e.id),e.He=this.F.ts(e.Ob),this.Tj=this.Tj||this.F.Tl(e.Ob);g.Re()}}}else{if(0<this.Dc&&this.Ec){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Za=AppMobi.canvas.getContext("2d");try{this.Za.samplingMode=this.Ra?"smooth":"sharp",this.Za.globalScale=
1,this.Za.HTML5CompatibilityMode=!0,this.Za.imageSmoothingEnabled=this.Ra}catch(f){}0!==this.width&&0!==this.height&&(this.Za.width=this.width,this.Za.height=this.height)}this.Za||(this.zd?(d={antialias:!!this.Ra,alpha:!0},this.Za=this.canvas.getContext("2d",d)):(d={alpha:!0},this.Za=this.canvas.getContext("2d",d)),this.jp(this.Za,this.Ra));this.ns=this.uc=null}this.ey=function(d){a.Ea(!1,d)};window==window.top||this.N||this.uE||this.dl||(document.addEventListener("mousedown",function(){window.focus()},
!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.zd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.ll="__c2_continuouspreview",this.nm=!0),this.iF&&!this.ef&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var d=window.parent;d&&d.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",
function(){a.Xf()});this.N||(d=function(a){if(vb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Dc&&this.Qh&&1<this.devicePixelRatio&&
this.setSize(this.gb,this.fb,!0);this.qy();this.dE();this.go();this.V={}};f.prototype.setSize=function(a,d,h){var b=0,k=0,c=0,e=0,e=0;if(this.nj!==a||this.mj!==d||h){this.nj=a;this.mj=d;var l=this.Dc;if((c=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.io)&&!this.Ad)||0!==this.Dc||h)c&&(l=this.Ri),h=this.devicePixelRatio,4<=l?(5===l&&1!==h&&(a+=1,d+=1),c=this.gb/this.fb,a/d>c?(c*=d,5===l?(e=c*h/this.gb,1<e?e=Math.floor(e):1>e&&(e=1/
Math.ceil(1/e)),c=this.gb*e/h,e=this.fb*e/h,b=(a-c)/2,k=(d-e)/2,a=c,d=e):(b=(a-c)/2,a=c)):(e=a/c,5===l?(e=e*h/this.fb,1<e?e=Math.floor(e):1>e&&(e=1/Math.ceil(1/e)),c=this.gb*e/h,e=this.fb*e/h,b=(a-c)/2,k=(d-e)/2,a=c):k=(d-e)/2,d=e)):c&&0===l&&(b=Math.floor((a-this.gb)/2),k=Math.floor((d-this.fb)/2),a=this.gb,d=this.fb),2>l&&(this.nk=h),this.un=Math.round(a),this.wk=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.ca=!0,this.Cy?(this.aa=this.width,this.Z=this.height,this.vd=
!0):this.width<this.gb&&this.height<this.fb||1===l?(this.aa=this.width,this.Z=this.height,this.vd=!0):(this.aa=this.gb,this.Z=this.fb,this.vd=!1,2===l?(c=this.gb/this.fb,l=this.nj/this.mj,l<c?this.aa=this.Z*l:l>c&&(this.Z=this.aa/l)):3===l&&(c=this.gb/this.fb,l=this.nj/this.mj,l>c?this.aa=this.Z*l:l<c&&(this.Z=this.aa/l))),this.Pd&&!this.N&&(jQuery(this.Pd).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(b)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&
jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(d*h),this.ve?(this.canvas.style.left=Math.floor(b)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px"):this.Qh&&!this.N&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.uc&&(this.uc.width=Math.round(a*h),this.uc.height=
Math.round(d*h),this.uc.style.width=this.un+"px",this.uc.style.height=this.wk+"px"),this.F&&this.F.oi(Math.round(a*h),Math.round(d*h)),this.Ec&&this.Za&&(this.Za.width=Math.round(a),this.Za.height=Math.round(d)),this.Za&&this.jp(this.Za,this.Ra),this.qy(),this.aw&&!this.Ad&&window.scrollTo(0,0)}};f.prototype.qy=function(){if(this.WB&&0!==this.ls){var a="portrait";2===this.ls&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?
screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&console.warn&&console.warn("Failed to lock orientation: ",d)}}};f.prototype.TE=function(){this.F.fC();this.Br=!0;var a,d,h;a=0;for(d=this.P.length;a<d;a++)h=this.P[a],h.ah&&h.ah()};f.prototype.UE=function(){this.Br=!1;var a,d,h;a=0;for(d=this.P.length;a<d;a++)h=this.P[a],h.zj&&h.zj()};f.prototype.nx=
function(){if(!this.N){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.io)&&!this.Ad?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.uc).css(a)}};var c=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var d;if(a&&!this.Rh)for(ga("[Construct 2] Suspending"),
this.Rh=!0,-1!==this.ys&&c&&c(this.ys),-1!==this.Ys&&clearTimeout(this.Ys),a=0,d=this.om.length;a<d;a++)this.om[a](!0);else if(!a&&this.Rh){ga("[Construct 2] Resuming");this.Rh=!1;this.po=gb();this.Wh=gb();a=this.ul=this.Vn=0;for(d=this.om.length;a<d;a++)this.om[a](!1);this.Ea(!1)}};f.prototype.jq=function(a){this.om.push(a)};f.prototype.qg=function(a){return this.Do[a]};f.prototype.ml=function(a){a&&a.project||ka("Project model unavailable");a=a.project;this.name=a[0];this.sv=a[1];this.Dc=a[12];
this.gb=a[10];this.fb=a[11];this.gx=this.gb/2;this.hx=this.fb/2;this.N&&!this.ve&&(4<=a[12]||0===a[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Dc=3);this.lt=a[18];this.Xg=a[19];if(0===this.Xg){var d=new Image;d.crossOrigin="anonymous";this.Kx(d,"loading-logo.png");this.Wg={xo:d}}else if(4===this.Xg){d=new Image;d.src="";var h=new Image;h.src="";var b=new Image;b.src="";var c=new Image;c.src="";var k=new Image;
k.src="";var e=new Image;e.src="";var l=new Image;l.src="";var r=new Image;r.src="";var g=new Image;g.src="";var v=new Image;v.src="";var f=new Image;f.src="";var u=new Image;u.src="";this.Wg={xo:[d,h,b,c],oF:[k,e,l,r],pG:[g,v,f,u]}}this.El=a[21];this.Do=wc();this.sf=new M(this);d=0;for(h=a[2].length;d<h;d++)l=a[2][d],b=this.qg(l[0]),xb(l,b.prototype),r=new b(this),r.rp=l[1],r.Rg=l[2],r.yE=l[5],r.Pw=l[9],r.I&&r.I(),this.plugins.push(r);this.Do=wc();d=0;for(h=a[3].length;d<h;d++){l=a[3][d];k=this.qg(l[1]);
r=null;b=0;for(c=this.plugins.length;b<c;b++)if(this.plugins[b]instanceof k){r=this.plugins[b];break}g=new r.L(r);g.name=l[0];g.U=l[2];g.qr=l[3].slice(0);g.nG=l[3].length;g.XB=l[4];g.AD=l[5];g.ya=l[11];g.U?(g.Fe=[],g.$e=this.Ck++,g.hb=null):(g.Fe=null,g.$e=-1,g.hb=[]);g.Dk=null;g.Pi=null;g.lv=null;g.qc=!1;g.dd=null;l[6]?(g.Oj=l[6][0],g.rm=l[6][1],g.jh=l[6][2]):(g.Oj=null,g.rm=0,g.jh=0);l[7]?g.cd=l[7]:g.cd=null;g.index=d;g.n=[];g.zn=[];g.gg=[new yb(g)];g.Xe=0;g.Rd=null;g.Zu=0;g.Mj=!0;g.Fp=zb;g.Jk=
Ab;g.ND=Bb;g.da=Cb;g.Vl=Db;g.Dj=Eb;g.Zf=Fb;g.Xn=Gb;g.Wq=Hb;g.Zq=Kb;g.td=Lb;g.$q=Mb;g.qn=new nb(this.gb,this.fb);g.Wm=!0;g.Xm=!1;g.V={};g.toString=Nb;g.jb=[];b=0;for(c=l[8].length;b<c;b++){v=l[8][b];f=this.qg(v[1]);u=null;k=0;for(e=this.jb.length;k<e;k++)if(this.jb[k]instanceof f){u=this.jb[k];break}u||(u=new f(this),u.Bo=[],u.fi=new ea,u.I&&u.I(),this.jb.push(u),xc&&u instanceof xc&&(this.Zx=u),oc.BE&&u instanceof oc.BE&&(this.dw=u));-1===u.Bo.indexOf(g)&&u.Bo.push(g);k=new u.L(u,g);k.name=v[0];k.ya=
v[2];k.I();g.jb.push(k)}g.global=l[9];g.ur=l[10];g.na=[];b=0;for(c=l[12].length;b<c;b++)g.na.push({id:l[12][b][0],name:l[12][b][1],Ob:-1,He:!1,sd:!0,index:b});g.xp=l[13];this.lt&&!g.U&&!g.ur&&r.Rg||g.I();g.name&&(this.types[g.name]=g);this.P.push(g);r.rp&&(b=new r.K(g),b.uid=this.El++,b.wx=this.Rw++,b.Nh=0,b.Pk=Ob,b.toString=Pb,b.q=l[14],b.I(),g.n.push(b),this.Vf[b.uid.toString()]=b)}d=0;for(h=a[4].length;d<h;d++)for(k=a[4][d],e=this.P[k[0]],b=1,c=k.length;b<c;b++)l=this.P[k[b]],l.hb.push(e),e.Fe.push(l);
d=0;for(h=a[28].length;d<h;d++){k=a[28][d];e=[];b=0;for(c=k.length;b<c;b++)e.push(this.P[k[b]]);b=0;for(c=e.length;b<c;b++)e[b].qc=!0,e[b].dd=e}if(0<this.Ck)for(d=0,h=this.P.length;d<h;d++)if(l=this.P[d],!l.U&&l.hb.length){l.Dk=Array(this.Ck);l.Pi=Array(this.Ck);l.lv=Array(this.Ck);g=[];b=u=f=v=0;for(c=l.hb.length;b<c;b++)for(r=l.hb[b],l.Dk[r.$e]=v,v+=r.nG,l.Pi[r.$e]=f,f+=r.XB,l.lv[r.$e]=u,u+=r.AD,k=0,e=r.na.length;k<e;k++)g.push(Ca({},r.na[k]));l.na=g.concat(l.na);b=0;for(c=l.na.length;b<c;b++)l.na[b].index=
b}d=0;for(h=a[5].length;d<h;d++)l=a[5][d],b=new Qb(this,l),this.pj[b.name]=b,this.Ce.push(b);d=0;for(h=a[6].length;d<h;d++)l=a[6][d],b=new Rb(this,l),this.Nq[b.name]=b,this.If.push(b);d=0;for(h=this.If.length;d<h;d++)this.If[d].Eb();d=0;for(h=this.If.length;d<h;d++)this.If[d].ht();d=0;for(h=this.Dp.length;d<h;d++)this.Dp[d].Eb();J(this.Dp);this.VB=a[7];this.Ek=a[8];this.Gc=a[9];this.nk=1;this.NC=a[13];this.Ra=a[14];this.Qu=a[15];this.jG=a[17];this.ls=a[20];this.WB=0<this.ls;this.iF=a[22];this.vd=
this.Cy=a[23];this.GC=a[24];this.pF=a[25];this.Ua=a[27]&&!this.df;this.sp=Date.now();J(this.Do);this.kE()};var d=!1,k=0,u=[];f.prototype.xF=function(a,d){function h(){k--;b.Gw()}var b=this;a.addEventListener("load",h);a.addEventListener("error",h);u.push([a,d]);this.Gw()};f.prototype.Gw=function(){for(var a;u.length&&100>k;)k++,a=u.shift(),this.Kx(a[0],a[1])};f.prototype.Dm=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){d=a.Ju=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",h)};this.ve?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(d){a.src=d},function(b){d=a.Ju=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ",b)}):(a.crossOrigin="anonymous",this.xF(a,h)));this.Wj.push(a)};f.prototype.xD=function(a){var d,h;d=0;for(h=this.Wj.length;d<h;d++)if(this.Wj[d].iC===a)return this.Wj[d];return null};var h=0,l=!1;f.prototype.dE=function(){this.Ei&&(h=this.Ei.RF(this.VB))};f.prototype.Eu=function(){var a=
h,d=0,b=0,k=!0,c,e,b=0;for(c=this.Wj.length;b<c;b++){e=this.Wj[b];var r=e.tn;if(!r||0>=r)r=5E4;a+=r;e.src&&(e.complete||e.loaded)&&!e.Ju?d+=r:k=!1}k&&this.pF&&this.Ei&&(l||(this.Ei.XF(),l=!0),b=this.Ei.OD(),d+=b,b<h&&(k=!1));this.Ie=0==a?1:d/a;return k};var v=!1;f.prototype.go=function(){if(this.Za||this.F){var a=this.Za||this.ns;this.uc&&this.nx();var h=window.innerWidth,k=window.innerHeight;this.nj===h&&this.mj===k||this.setSize(h,k);this.Ie=0;this.hw=-1;var c=this;if(this.Eu()&&(4!==this.Xg||v))this.eE();
else{k=Date.now()-this.sp;if(a){var l=this.width,e=this.height,h=this.devicePixelRatio;if(3>this.Xg&&(this.zd||500<=k&&this.hw!=this.Ie)){a.clearRect(0,0,l,e);var k=l/2,e=e/2,l=0===this.Xg&&this.Wg.xo.complete,r=40*h,g=0,u=80*h,f;if(l){var t=this.Wg.xo,u=t.width*h;f=t.height*h;r=u/2;g=f/2;a.drawImage(t,A(k-r),A(e-g),u,f)}1>=this.Xg?(k=A(k-r)+.5,e=A(e+(g+(l?12*h:0)))+.5,a.fillStyle=d?"red":"DodgerBlue",a.fillRect(k,e,Math.floor(u*this.Ie),6*h),a.strokeStyle="black",a.strokeRect(k,e,u,6*h),a.strokeStyle=
"white",a.strokeRect(k-1*h,e-1*h,u+2*h,8*h)):2===this.Xg&&(a.font=this.ve?"12pt ArialMT":"12pt Arial",a.fillStyle=d?"#f00":"#999",a.DH="middle",h=Math.round(100*this.Ie)+"%",l=a.measureText?a.measureText(h):null,a.fillText(h,k-(l?l.width:0)/2,e));this.hw=this.Ie}else if(4===this.Xg){this.LC(a);b?b(function(){c.go()}):setTimeout(function(){c.go()},16);return}}setTimeout(function(){c.go()},this.zd?10:100)}}};var F=-1,r="undefined"===typeof cr_is_preview?200:0,C=!0,D=!1,w=0,t=0,T="undefined"===typeof cr_is_preview?
3E3:0,G=null,z=null,E=0;f.prototype.LC=function(a){if(!v){for(var h=Math.ceil(this.width),b=Math.ceil(this.height),k=this.Wg.xo,c=this.Wg.oF,l=this.Wg.pG,e=0;4>e;++e)if(!k[e].complete||!c[e].complete||!l[e].complete)return;0===E&&(F=Date.now());var e=Date.now(),g=!1,u=a,f,m;C||D?(a.clearRect(0,0,h,b),G&&G.width===h&&G.height===b||(G=document.createElement("canvas"),G.width=h,G.height=b,z=G.getContext("2d")),u=z,g=!0,C&&1===E&&(F=Date.now())):a.globalAlpha=1;u.fillStyle="#333333";u.fillRect(0,0,h,
b);256<this.wk?(f=Ka(.22*b,105,.6*h),m=.25*f,u.drawImage(p(c,f),.5*h-f/2,.2*b-m/2,f,m),m=f=Math.min(.395*b,.95*h),u.drawImage(p(k,f),.5*h-f/2,.485*b-m/2,f,m),f=Ka(.22*b,105,.6*h),m=.25*f,u.drawImage(p(l,f),.5*h-f/2,.868*b-m/2,f,m),u.fillStyle="#3C3C3C",f=h,m=Math.max(.005*b,2),u.fillRect(0,.8*b-m/2,f,m),u.fillStyle=d?"red":"#E0FF65",f=h*this.Ie,u.fillRect(.5*h-f/2,.8*b-m/2,f,m)):(m=f=.55*b,u.drawImage(p(k,f),.5*h-f/2,.45*b-m/2,f,m),u.fillStyle="#3C3C3C",f=h,m=Math.max(.005*b,2),u.fillRect(0,.85*b-
m/2,f,m),u.fillStyle=d?"red":"#E0FF65",f=h*this.Ie,u.fillRect(.5*h-f/2,.85*b-m/2,f,m));g&&(C?a.globalAlpha=0===E?0:Math.min((e-F)/300,1):D&&(a.globalAlpha=Math.max(1-(e-t)/300,0)),a.drawImage(G,0,0,h,b));C&&300<=e-F&&2<=E&&(C=!1,w=e);!C&&e-w>=T&&!D&&1<=this.Ie&&(D=!0,t=e);if(D&&e-t>=300+r||"undefined"!==typeof cr_is_preview&&1<=this.Ie&&500>Date.now()-F)v=!0,D=C=!1,this.Wg=z=G=null;++E}};f.prototype.eE=function(){this.uc&&(this.canvas.parentNode.removeChild(this.uc),this.uc=this.ns=null);this.sp=
Date.now();this.Wh=gb();var a,d,h;if(this.lt)for(a=0,d=this.P.length;a<d;a++)h=this.P[a],h.U||h.ur||!h.X.Rg||h.I();else this.ij=!1;a=0;for(d=this.Ce.length;a<d;a++)this.Ce[a].jC();2<=this.Dc&&(a=this.gb/this.fb,d=this.width/this.height,this.nk=2!==this.Dc&&d>a||2===this.Dc&&d<a?this.height/this.fb:this.width/this.gb);this.sv?this.pj[this.sv].Os():this.Ce[0].Os();this.lt||(this.nl=1,this.trigger(M.prototype.j.Mt,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(d=this.P.length;a<d;a++)h=this.P[a],h.SE&&h.SE();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ea(!1);this.Ec&&AppMobi.webview.execute("onGameReady();")};f.prototype.Ea=function(a,d,h){if(this.Da){var k=gb();if(h||!this.Rh||a){a||(b?this.ys=b(this.ey):this.Ys=setTimeout(this.ey,this.ef?1:16));d=d||k;var c=this.Dc;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Ad)||this.io)&&0<this.Ri&&(c=this.Ri);if(0<c){var c=window.innerWidth,l=window.innerHeight;this.nj===c&&this.mj===l||this.setSize(c,l)}this.N||(h?this.On||(this.On=!0):this.On?(this.On=!1,0===this.Dc&&this.setSize(Math.round(this.Ww/this.devicePixelRatio),Math.round(this.Vw/this.devicePixelRatio),!0)):(this.Ww=this.width,this.Vw=this.height));this.ij&&(h=this.Eu(),this.nl=this.Ie,h&&(this.ij=!1,this.Ie=1,this.trigger(M.prototype.j.Mt,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.DE(d);
!this.ca&&!this.zd||this.Br||this.nm||a||(this.ca=!1,this.F?this.eb():this.Tb(),this.lm&&(this.canvas&&this.canvas.toDataURL&&(this.Yx=this.canvas.toDataURL(this.lm[0],this.lm[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Yx),this.trigger(M.prototype.j.dA,null)),this.lm=null));this.lH||(this.Id++,this.Ch++,this.Vn++);this.ul+=gb()-k}}};f.prototype.DE=function(a){var d,h,b,k,c,l,e,r;1E3<=a-this.Wh&&(this.Wh+=1E3,1E3<=a-this.Wh&&(this.Wh=a),this.Un=this.Vn,this.Vn=0,this.yq=this.ul,this.ul=0);
d=0;0!==this.po&&(d=a-this.po,0>d&&(d=0),this.Lg=d/=1E3,.5<this.Lg?this.Lg=0:this.Lg>1/this.Kw&&(this.Lg=1/this.Kw));this.po=a;this.yh=this.Lg*this.kh;this.Vb.add(this.yh);this.mg.add(d);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.io)&&!this.Ad;2<=this.Dc||a&&0<this.Ri?(d=this.gb/this.fb,h=this.width/this.height,b=this.Dc,a&&0<this.Ri&&(b=this.Ri),this.nk=2!==b&&h>d||2===b&&h<d?this.height/this.fb:this.width/this.gb,this.Da&&(this.Da.fp(this.Da.scrollX),
this.Da.gp(this.Da.scrollY))):this.nk=this.Qh?this.devicePixelRatio:1;this.Ac();this.Bd++;this.sf.HF();this.Bd--;this.Ac();this.Bd++;h=this.$r.ee();a=0;for(d=h.length;a<d;a++)h[a].sF();a=0;for(d=this.P.length;a<d;a++)if(l=this.P[a],!l.U&&(l.jb.length||l.hb.length))for(h=0,b=l.n.length;h<b;h++)for(e=l.n[h],k=0,c=e.Y.length;k<c;k++)e.Y[k].Ea();a=0;for(d=this.P.length;a<d;a++)if(l=this.P[a],!l.U&&(l.jb.length||l.hb.length))for(h=0,b=l.n.length;h<b;h++)for(e=l.n[h],k=0,c=e.Y.length;k<c;k++)r=e.Y[k],r.ox&&
r.ox();h=this.as.ee();a=0;for(d=h.length;a<d;a++)h[a].Ea();this.Bd--;this.fE();for(a=0;this.sh&&10>a++;)this.dv(this.sh);a=0;for(d=this.If.length;a<d;a++)this.If[a].kr=!1;this.Da.Ah&&this.Da.Ah.Nb();J(this.mi);this.Kr=!1;this.Bd++;a=0;for(d=this.P.length;a<d;a++)if(l=this.P[a],!l.U&&(l.jb.length||l.hb.length))for(h=0,b=l.n.length;h<b;h++)for(e=l.n[h],k=0,c=e.Y.length;k<c;k++)r=e.Y[k],r.Pj&&r.Pj();h=this.bs.ee();a=0;for(d=h.length;a<d;a++)h[a].Pj();this.Bd--};f.prototype.Xf=function(){var a,d,h,b,
k,c,l,e,r;a=0;for(d=this.P.length;a<d;a++)if(l=this.P[a],!l.U)for(h=0,b=l.n.length;h<b;h++)if(e=l.n[h],e.Xf&&e.Xf(),e.Y)for(k=0,c=e.Y.length;k<c;k++)r=e.Y[k],r.Xf&&r.Xf()};f.prototype.dv=function(a){var d=this.Da;this.Da.YF();var h,b,k;if(this.F)for(h=0,b=this.P.length;h<b;h++)k=this.P[h],k.U||!k.Rj||k.global&&0!==k.n.length||-1!==a.Wk.indexOf(k)||k.Rj();d==a&&J(this.sf.bd);J(this.mi);this.Dx(!0);a.Os();this.Dx(!1);this.Kr=this.ca=!0;this.Ac()};f.prototype.Dx=function(a){var d,h,b,k,c,l,e,r,g;d=0;
for(h=this.jb.length;d<h;d++)b=this.jb[d],a?b.xj&&b.xj():b.yj&&b.yj();d=0;for(h=this.P.length;d<h;d++)if(b=this.P[d],b.global||b.X.rp)for(k=0,c=b.n.length;k<c;k++)if(l=b.n[k],a?l.xj&&l.xj():l.yj&&l.yj(),l.Y)for(e=0,r=l.Y.length;e<r;e++)g=l.Y[e],a?g.xj&&g.xj():g.yj&&g.yj()};f.prototype.tF=function(a){this.$r.add(a)};f.prototype.qd=function(a){this.as.add(a)};f.prototype.bG=function(a){this.bs.add(a)};f.prototype.Fh=function(a){return a&&-1!==a.Dl?this.Lg*a.Dl:this.yh};f.prototype.Tb=function(){this.Da.Tb(this.Za);
this.Ec&&this.Za.present()};f.prototype.eb=function(){this.Ua&&(this.zh=1,this.Da.Ff(this.F));this.Da.eb(this.F);this.F.rF()};f.prototype.jk=function(a){a&&this.Fn.push(a)};f.prototype.Bx=function(a){Ja(this.Fn,a)};f.prototype.Og=function(a){a=a.toString();return this.Vf.hasOwnProperty(a)?this.Vf[a]:null};var L=[];f.prototype.Ld=function(a){var d,h;d=a.type.name;var b=null;if(this.xh.hasOwnProperty(d)){if(b=this.xh[d],b.contains(a))return}else b=L.length?L.pop():new ea,this.xh[d]=b;b.add(a);this.Pg=
!0;if(a.qc)for(d=0,h=a.siblings.length;d<h;d++)this.Ld(a.siblings[d]);this.tr&&b.Uj.push(a);this.sr||(this.Bd++,this.trigger(Object.getPrototypeOf(a.type.X).j.Et,a),this.Bd--)};f.prototype.Ac=function(){if(this.Pg){var a,d,h,b,k,c;this.tr=!0;h=0;for(k=this.te.length;h<k;++h)for(a=this.te[h],d=a.type,d.n.push(a),b=0,c=d.hb.length;b<c;++b)d.hb[b].n.push(a),d.hb[b].Mj=!0;J(this.te);this.Mz();fb(this.xh);this.Pg=this.tr=!1}};f.prototype.Mz=function(){for(var a in this.xh)this.xh.hasOwnProperty(a)&&this.Ry(this.xh[a])};
f.prototype.Ry=function(a){var d=a.ee(),h=d[0].type,b,k,c,l,e,r;hb(h.n,a);h.Mj=!0;0===h.n.length&&(h.Xm=!1);b=0;for(k=h.hb.length;b<k;++b)r=h.hb[b],hb(r.n,a),r.Mj=!0;b=0;for(k=this.sf.bd.length;b<k;++b)if(e=this.sf.bd[b],e.Mc.hasOwnProperty(h.index)&&hb(e.Mc[h.index].Lf,a),!h.U)for(c=0,l=h.hb.length;c<l;++c)r=h.hb[c],e.Mc.hasOwnProperty(r.index)&&hb(e.Mc[r.index].Lf,a);if(e=d[0].r){if(e.Kd)for(c=e.n,b=0,k=c.length;b<k;++b)l=c[b],a.contains(l)&&(l.fa(),e.xc.update(l,l.Xc,null),l.Xc.set(0,0,-1,-1));
hb(e.n,a);e.fm(0)}for(b=0;b<d.length;++b)this.Qy(d[b],h);a.clear();L.push(a);this.ca=!0};f.prototype.Qy=function(a,d){var h,b,k;h=0;for(b=this.Fn.length;h<b;++h)this.Fn[h](a);a.Gg&&d.qn.update(a,a.Gg,null);(h=a.r)&&h.Gj(a,!0);if(a.Y)for(h=0,b=a.Y.length;h<b;++h)k=a.Y[h],k.gc&&k.gc(),k.behavior.fi.remove(a);this.$r.remove(a);this.as.remove(a);this.bs.remove(a);a.gc&&a.gc();this.Vf.hasOwnProperty(a.uid.toString())&&delete this.Vf[a.uid.toString()];this.Eo--;100>d.zn.length&&d.zn.push(a)};f.prototype.tk=
function(a,d,h,b){if(a.U){var k=A(Math.random()*a.Fe.length);return this.tk(a.Fe[k],d,h,b)}return a.Rd?this.Ig(a.Rd,d,!1,h,b,!1):null};var P=[];f.prototype.Ig=function(a,d,h,b,k,c){var l,e,r,g;if(!a)return null;var v=this.P[a[1]],f=v.X.Rg;if(this.ij&&f&&!v.ur||f&&!this.F&&11===a[0][11])return null;var u=d;f||(d=null);var t;v.zn.length?(t=v.zn.pop(),t.Yb=!0,v.X.K.call(t,v)):(t=new v.X.K(v),t.Yb=!1);!h||c||this.Vf.hasOwnProperty(a[2].toString())?t.uid=this.El++:t.uid=a[2];this.Vf[t.uid.toString()]=
t;t.wx=this.Rw++;t.Nh=v.n.length;l=0;for(e=this.te.length;l<e;++l)this.te[l].type===v&&t.Nh++;t.Pk=Ob;t.toString=Pb;r=a[3];if(t.Yb)fb(t.V);else{t.V={};if("undefined"!==typeof cr_is_preview)for(t.Pv=[],t.Pv.length=r.length,l=0,e=r.length;l<e;l++)t.Pv[l]=r[l][1];t.Va=[];t.Va.length=r.length}l=0;for(e=r.length;l<e;l++)t.Va[l]=r[l][0];if(f){var m=a[0];t.x=la(b)?m[0]:b;t.y=la(k)?m[1]:k;t.z=m[2];t.width=m[3];t.height=m[4];t.depth=m[5];t.u=m[6];t.opacity=m[7];t.oc=m[8];t.pc=m[9];t.Cc=m[10];l=m[11];!this.F&&
v.na.length&&(t.Cc=l);t.sk=pb(t.Cc);this.T&&qb(t,t.Cc,this.T);if(t.Yb){l=0;for(e=m[12].length;l<e;l++)for(r=0,g=m[12][l].length;r<g;r++)t.pb[l][r]=m[12][l][r];t.ma.set(0,0,0,0);t.Gg.set(0,0,-1,-1);t.Xc.set(0,0,-1,-1);t.Zb.gh(t.ma);J(t.pq)}else{t.pb=m[12].slice(0);l=0;for(e=t.pb.length;l<e;l++)t.pb[l]=m[12][l].slice(0);t.Na=[];t.ug=[];t.ug.length=v.na.length;t.ma=new wa(0,0,0,0);t.Gg=new wa(0,0,-1,-1);t.Xc=new wa(0,0,-1,-1);t.Zb=new xa;t.pq=[];t.H=Sb;t.fH=Tb;t.ac=Ub;t.fa=Vb;t.iG=Wb;t.zy=Xb;t.Td=Zb}t.ti=
!1;t.iy=0;t.hy=0;t.gy=null;14===m.length&&(t.ti=!0,t.iy=m[13][0],t.hy=m[13][1],t.gy=m[13][2]);l=0;for(e=v.na.length;l<e;l++)t.ug[l]=!0;t.bg=!0;t.Re=$b;t.Re();t.Ay=!!t.Na.length;t.oq=!0;t.uq=!0;v.Wm=!0;t.visible=!0;t.Dl=-1;t.r=d;t.Se=d.n.length;t.zh=0;"undefined"===typeof t.Ba&&(t.Ba=null);this.ca=t.We=!0}var w;J(P);l=0;for(e=v.hb.length;l<e;l++)P.push.apply(P,v.hb[l].jb);P.push.apply(P,v.jb);if(t.Yb)for(l=0,e=P.length;l<e;l++){var C=P[l];w=t.Y[l];w.Yb=!0;C.behavior.K.call(w,C,t);m=a[4][l];r=0;for(g=
m.length;r<g;r++)w.q[r]=m[r];w.I();C.behavior.fi.add(t)}else for(t.Y=[],l=0,e=P.length;l<e;l++)C=P[l],w=new C.behavior.K(C,t),w.Yb=!1,w.q=a[4][l].slice(0),w.I(),t.Y.push(w),C.behavior.fi.add(t);m=a[5];if(t.Yb)for(l=0,e=m.length;l<e;l++)t.q[l]=m[l];else t.q=m.slice(0);this.te.push(t);this.Pg=!0;d&&(d.mk(t,!0),1!==d.Uc||1!==d.Vc)&&(v.Xm=!0);this.Eo++;if(v.qc){if(t.qc=!0,t.Yb?J(t.siblings):t.siblings=[],!h&&!c){l=0;for(e=v.dd.length;l<e;l++)if(v.dd[l]!==v){if(!v.dd[l].Rd)return null;t.siblings.push(this.Ig(v.dd[l].Rd,
u,!1,f?t.x:b,f?t.y:k,!0))}l=0;for(e=t.siblings.length;l<e;l++)for(t.siblings[l].siblings.push(t),r=0;r<e;r++)l!==r&&t.siblings[l].siblings.push(t.siblings[r])}}else t.qc=!1,t.siblings=null;t.I();l=0;for(e=t.Y.length;l<e;l++)t.Y[l].nF&&t.Y[l].nF();return t};f.prototype.Lk=function(a){var d,h;d=0;for(h=this.Da.qa.length;d<h;d++){var b=this.Da.qa[d];if(ub(b.name,a))return b}return null};f.prototype.Jf=function(a){a=A(a);0>a&&(a=0);a>=this.Da.qa.length&&(a=this.Da.qa.length-1);return this.Da.qa[a]};f.prototype.wq=
function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].da().ta=!0};f.prototype.Vl=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Vl()};f.prototype.Dj=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Dj()};f.prototype.Zf=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Zf()};f.prototype.wy=function(a){if(a.Wm){var d,h,b=a.n;d=0;for(h=b.length;d<h;++d)b[d].zy();b=this.te;d=0;for(h=b.length;d<h;++d)b[d].type===a&&b[d].zy();a.Wm=!1}};f.prototype.Yn=function(a,d,h,b){var k,c,l=a?1!==a.Uc||1!==
a.Vc:!1;if(d.U)for(a=0,k=d.Fe.length;a<k;++a)c=d.Fe[a],l||c.Xm?Ha(b,c.n):(this.wy(c),c.qn.Wo(h,b));else l||d.Xm?Ha(b,d.n):(this.wy(d),d.qn.Wo(h,b))};f.prototype.er=function(a,d,h,b){var k,c;k=0;for(c=d.length;k<c;++k)this.Yn(a,d[k],h,b)};f.prototype.Fv=function(a,d,h){var b=this.Zx;b&&this.er(a,b.Bo,d,h)};f.prototype.LD=function(a,d,h){var b=this.dw;b&&this.er(a,b.Bo,d,h)};f.prototype.Nj=function(a,d,h,b){var k=a.da(),c,l,e,r,g=this.sb().Bb.Fd,t,v,f;if(k.ta)for(b||(k.ta=!1,J(k.n)),c=0,r=a.n.length;c<
r;c++)if(e=a.n[c],e.fa(),t=e.r.bb(d,h,!0),v=e.r.bb(d,h,!1),e.ac(t,v)){if(b)return!1;k.n.push(e)}else g&&k.wa.push(e);else{l=0;f=g?k.wa:k.n;c=0;for(r=f.length;c<r;c++)if(e=f[c],e.fa(),t=e.r.bb(d,h,!0),v=e.r.bb(d,h,!1),e.ac(t,v)){if(b)return!1;g?k.n.push(e):(k.n[l]=k.n[c],l++)}b||(f.length=l)}a.td();return b?!0:k.jr()};f.prototype.zc=function(a,d){if(!(a&&d&&a!==d&&a.We&&d.We))return!1;a.fa();d.fa();var h=a.r,b=d.r,k,c,l,e,r,g,t,v;if(h===b||h.Uc===b.Uc&&b.Vc===b.Vc&&h.scale===b.scale&&h.u===b.u&&h.Ic===
b.Ic){if(!a.ma.Qv(d.ma)||!a.Zb.rr(d.Zb)||a.ti&&d.ti)return!1;if(a.ti)return this.cy(a,d);if(d.ti)return this.cy(d,a);t=a.Ba&&!a.Ba.Sh();k=d.Ba&&!d.Ba.Sh();if(!t&&!k)return!0;t?(a.Ba.Ag(a.width,a.height,a.u),t=a.Ba):(this.$c.qi(a.Zb,a.x,a.y,a.width,a.height),t=this.$c);k?(d.Ba.Ag(d.width,d.height,d.u),v=d.Ba):(this.$c.qi(d.Zb,d.x,d.y,d.width,d.height),v=this.$c);return t.Oh(v,d.x-a.x,d.y-a.y)}t=a.Ba&&!a.Ba.Sh();k=d.Ba&&!d.Ba.Sh();t?(a.Ba.Ag(a.width,a.height,a.u),this.$c.Qx(a.Ba)):this.$c.qi(a.Zb,a.x,
a.y,a.width,a.height);t=this.$c;k?(d.Ba.Ag(d.width,d.height,d.u),this.Qs.Qx(d.Ba)):this.Qs.qi(d.Zb,d.x,d.y,d.width,d.height);v=this.Qs;k=0;for(c=t.ld;k<c;k++)l=2*k,e=l+1,r=t.Wa[l],g=t.Wa[e],t.Wa[l]=h.ba(r+a.x,g+a.y,!0),t.Wa[e]=h.ba(r+a.x,g+a.y,!1);t.fa();k=0;for(c=v.ld;k<c;k++)l=2*k,e=l+1,r=v.Wa[l],g=v.Wa[e],v.Wa[l]=b.ba(r+d.x,g+d.y,!0),v.Wa[e]=b.ba(r+d.x,g+d.y,!1);v.fa();return t.Oh(v,0,0)};var S=new xa;new wa(0,0,0,0);var V=[];f.prototype.cy=function(a,d){var h,b,k,c,l=d.ma,e=a.x,r=a.y;a.wv(l,V);
var g=d.Ba&&!d.Ba.Sh();h=0;for(b=V.length;h<b;++h)if(k=V[h],c=k.Oa,l.Rv(c,e,r)&&(S.gh(c),S.offset(e,r),S.rr(d.Zb)))if(g)if(d.Ba.Ag(d.width,d.height,d.u),k.Ge){if(k.Ge.Oh(d.Ba,d.x-(e+c.left),d.y-(r+c.top)))return J(V),!0}else{if(this.$c.qi(S,0,0,c.right-c.left,c.bottom-c.top),this.$c.Oh(d.Ba,d.x,d.y))return J(V),!0}else if(k.Ge){if(this.$c.qi(d.Zb,0,0,d.width,d.height),k.Ge.Oh(this.$c,-(e+c.left),-(r+c.top)))return J(V),!0}else return J(V),!0;J(V);return!1};f.prototype.Rs=function(a,d){if(!d||!d.We)return!1;
d.fa();if(!d.ma.Qv(a))return!1;if(d.ti){d.wv(a,V);var h,b,k,c,l=d.x,e=d.y;h=0;for(b=V.length;h<b;++h)if(k=V[h],c=k.Oa,a.Rv(c,l,e))if(k.Ge){if(this.$c.gh(a,0,0),k.Ge.Oh(this.$c,-(l+c.left),-(e+c.top)))return J(V),!0}else return J(V),!0;J(V);return!1}S.gh(a);if(!d.Zb.rr(S))return!1;if(!d.Ba||d.Ba.Sh())return!0;d.Ba.Ag(d.width,d.height,d.u);S.offset(-a.left,-a.top);this.$c.qi(S,0,0,1,1);return d.Ba.Oh(this.$c,a.left-d.x,a.top-d.y)};f.prototype.dt=function(a,d){if(!d)return!1;var h,b,k,c,l;h=0;for(b=
a.jb.length;h<b;h++)if(a.jb[h].behavior instanceof d)return!0;if(!a.U)for(h=0,b=a.hb.length;h<b;h++)for(l=a.hb[h],k=0,c=l.jb.length;k<c;k++)if(l.jb[k].behavior instanceof d)return!0;return!1};f.prototype.et=function(a){return this.dt(a,oc.LG)};f.prototype.gt=function(a){return this.dt(a,oc.MG)};var K=[];f.prototype.ib=function(a){var d,h,b;a.fa();this.Fv(a.r,a.ma,K);d=0;for(h=K.length;d<h;++d)if(b=K[d],b.V.solidEnabled&&this.zc(a,b))return J(K),b;J(K);return null};f.prototype.aG=function(a){var d,
h,b;this.Fv(null,a,K);d=0;for(h=K.length;d<h;++d)if(b=K[d],b.V.solidEnabled&&this.Rs(a,b))return J(K),b;J(K);return null};var y=[];f.prototype.hg=function(a,d){var h=null;d&&(h=y,J(h));a.fa();this.LD(a.r,a.ma,K);var b,k,c;b=0;for(k=K.length;b<k;++b)if(c=K[b],c.V.jumpthruEnabled&&this.zc(a,c))if(d)h.push(c);else return J(K),c;J(K);return h};f.prototype.md=function(a,d,h,b,k,c){b=b||50;var l=a.x,e=a.y,r,g=null,t=null;for(r=0;r<b;r++)if(a.x=l+d*r,a.y=e+h*r,a.H(),!this.zc(a,g)&&((g=this.ib(a))&&(t=g),
!g&&(k&&(c?g=this.zc(a,c)?c:null:g=this.hg(a),g&&(t=g)),!g)))return t&&this.Vo(a,d,h,t),!0;a.x=l;a.y=e;a.H();return!1};f.prototype.vs=function(a,d,h,b){b=b||50;var k=a.x,c=a.y,l=null,e=null,r,g,t;for(r=0;r<b;++r)for(g=0;2>g;++g)if(t=2*g-1,a.x=k+d*r*t,a.y=c+h*r*t,a.H(),!this.zc(a,l))if(l=this.ib(a))e=l;else return e&&this.Vo(a,d*t,h*t,e),!0;a.x=k;a.y=c;a.H();return!1};f.prototype.Vo=function(a,d,h,b){var k=2,c,l=!1;c=!1;for(var e=a.x,r=a.y;16>=k;)c=1/k,k*=2,a.x+=d*c*(l?1:-1),a.y+=h*c*(l?1:-1),a.H(),
this.zc(a,b)?c=l=!0:(c=l=!1,e=a.x,r=a.y);c&&(a.x=e,a.y=r,a.H())};f.prototype.ws=function(a,d){var h=la(d)?100:d,b=0,k=a.x,c=a.y,l=0,e=0,r=0,g=this.ib(a);if(!g)return!0;for(;b<=h;){switch(l){case 0:e=0;r=-1;b++;break;case 1:e=1;r=-1;break;case 2:e=1;r=0;break;case 3:r=e=1;break;case 4:e=0;r=1;break;case 5:e=-1;r=1;break;case 6:e=-1;r=0;break;case 7:r=e=-1}l=(l+1)%8;a.x=A(k+e*b);a.y=A(c+r*b);a.H();if(!this.zc(a,g)&&(g=this.ib(a),!g))return!0}a.x=k;a.y=c;a.H();return!1};f.prototype.Gd=function(a,d){a.We&&
d.We&&this.mi.push([a,d])};f.prototype.OB=function(a,d,h){var b,k,c;b=0;for(k=this.mi.length;b<k;++b){c=this.mi[b];if(c[0]===a)c=c[1];else if(c[1]===a)c=c[0];else continue;if(d.U){if(-1===d.Fe.indexOf(d))continue}else if(c.type!==d)continue;-1===h.indexOf(c)&&h.push(c)}};f.prototype.dC=function(a,d){var h,b,k;h=0;for(b=this.mi.length;h<b;h++)if(k=this.mi[h],k[0]===a&&k[1]===d||k[0]===d&&k[1]===a)return!0;return!1};f.prototype.aC=function(a,d,h){var b=a.x,k=a.y,c=ra(10,Za(d,h,b,k)),l=Sa(d,h,b,k),e=
this.ib(a);if(!e)return Pa(l+ta);var r=e,g,t,v,f,u=Ma(5);for(g=1;36>g;g++)if(t=l-g*u,a.x=d+Math.cos(t)*c,a.y=h+Math.sin(t)*c,a.H(),!this.zc(a,r)&&(r=this.ib(a),!r)){v=t;break}36===g&&(v=Pa(l+ta));r=e;for(g=1;36>g;g++)if(t=l+g*u,a.x=d+Math.cos(t)*c,a.y=h+Math.sin(t)*c,a.H(),!this.zc(a,r)&&(r=this.ib(a),!r)){f=t;break}36===g&&(f=Pa(l+ta));a.x=b;a.y=k;a.H();if(f===v)return f;a=Ta(f,v)/2;a=Xa(f,v)?Pa(v+a+ta):Pa(f+a);v=Math.cos(l);l=Math.sin(l);f=Math.cos(a);a=Math.sin(a);d=v*f+l*a;return Sa(0,0,v-2*d*
f,l-2*d*a)};var W=-1;f.prototype.trigger=function(a,d,h){if(!this.Da)return!1;var b=this.Da.Ah;if(!b)return!1;var k=!1,c,l,e;W++;var r=b.Dq;l=0;for(e=r.length;l<e;++l)c=this.ny(a,d,r[l],h),k=k||c;c=this.ny(a,d,b,h);W--;return k||c};f.prototype.ny=function(a,d,h,b){var k=!1,c,l,e,r;if(d)for(e=this.bt(a,d,d.type.name,h,b),k=k||e,r=d.type.hb,c=0,l=r.length;c<l;++c)e=this.bt(a,d,r[c].name,h,b),k=k||e;else e=this.bt(a,d,"system",h,b),k=k||e;return k};f.prototype.bt=function(a,d,h,b,k){var c,l=!1,e=!1,
e="undefined"!==typeof k,r=(e?b.nv:b.oy)[h];if(!r)return l;var g=null;b=0;for(c=r.length;b<c;++b)if(r[b].method==a){g=r[b].Ak;break}if(!g)return l;var t;e?t=g[k]:t=g;if(!t)return null;b=0;for(c=t.length;b<c;b++)a=t[b][0],k=t[b][1],e=this.sD(d,h,a,k),l=l||e;return l};f.prototype.sD=function(a,d,h,b){var k,c,l=!1;this.ct++;var e=this.sb().Bb;e&&this.Vl(e.hh);var r=1<this.ct;this.Vl(h.hh);r&&this.vF();var g=this.Uo(h);g.Bb=h;a&&(k=this.types[d].da(),k.ta=!1,J(k.n),k.n[0]=a,this.types[d].td());a=!0;if(h.parent){d=
g.by;for(k=h.parent;k;)d.push(k),k=k.parent;d.reverse();k=0;for(c=d.length;k<c;k++)if(!d[k].JF()){a=!1;break}}a&&(this.Ch++,h.Fd?h.IF(b):h.Nb(),l=l||g.Vh);this.Qo();r&&this.mF();this.Zf(h.hh);e&&this.Zf(e.hh);this.Pg&&0===this.Bd&&0===W&&!this.xr&&this.Ac();this.ct--;return l};f.prototype.Eh=function(){var a=this.sb();return a.Bb.Rb[a.Gb]};f.prototype.nE=function(){return 0===this.sb().Gb};f.prototype.GD=function(){var a=this.sb();return a.Bb.Nd[a.Rc]};f.prototype.vF=function(){this.wo++;this.wo>=
this.Sr.length&&this.Sr.push([])};f.prototype.mF=function(){this.wo--};f.prototype.xv=function(){return this.Sr[this.wo]};f.prototype.Uo=function(a){this.Jn++;this.Jn>=this.Mq.length&&this.Mq.push(new ac);var d=this.sb();d.reset(a);return d};f.prototype.Qo=function(){this.Jn--};f.prototype.sb=function(){return this.Mq[this.Jn]};f.prototype.xx=function(){this.xl++;this.xl>=this.wl.length&&this.wl.push(ba({name:void 0,index:0,Pb:!1}));var a=this.yv();a.name=void 0;a.index=0;a.Pb=!1;return a};f.prototype.mx=
function(){this.xl--};f.prototype.yv=function(){return this.wl[this.xl]};f.prototype.Av=function(a,d){for(var h,b,k,c,l,e;d;){h=0;for(b=d.ae.length;h<b;h++)if(e=d.ae[h],e instanceof bc&&ub(a,e.name))return e;d=d.parent}h=0;for(b=this.If.length;h<b;h++)for(l=this.If[h],k=0,c=l.Mg.length;k<c;k++)if(e=l.Mg[k],e instanceof bc&&ub(a,e.name))return e;return null};f.prototype.Dv=function(a){var d,h;d=0;for(h=this.Ce.length;d<h;d++)if(this.Ce[d].ya===a)return this.Ce[d];return null};f.prototype.Ti=function(a){var d,
h;d=0;for(h=this.P.length;d<h;d++)if(this.P[d].ya===a)return this.P[d];return null};f.prototype.ID=function(a){var d,h;d=0;for(h=this.Di.length;d<h;d++)if(this.Di[d].ya===a)return this.Di[d];return null};f.prototype.pC=function(a,d){this.lm=[a,d];this.ca=!0};f.prototype.fE=function(){var a=this,d=this.ep,h=this.Of,b=this.ll,k=!1;this.Vx&&(k=!0,d="__c2_continuouspreview",this.Vx=!1);if(d.length){this.Ac();h=this.NF();if(n()&&!this.zd)g(d,h,function(){ga("Saved state to IndexedDB storage ("+h.length+
" bytes)");a.Of=h;a.trigger(M.prototype.j.Yp,null);h=a.Of="";k&&e()},function(b){try{localStorage.setItem("__c2save_"+d,h),ga("Saved state to WebStorage ("+h.length+" bytes)"),a.Of=h,a.trigger(M.prototype.j.Yp,null),h=a.Of="",k&&e()}catch(c){ga("Failed to save game state: "+b+"; "+c),a.trigger(M.prototype.j.Yt,null)}});else try{localStorage.setItem("__c2save_"+d,h),ga("Saved state to WebStorage ("+h.length+" bytes)"),a.Of=h,this.trigger(M.prototype.j.Yp,null),h=a.Of="",k&&e()}catch(c){ga("Error saving to WebStorage: "+
c),a.trigger(M.prototype.j.Yt,null)}this.ll=this.ep="";this.Xb=null}if(b.length){if(n()&&!this.zd)q(b,function(d){d?(a.Xb=d,ga("Loaded state from IndexedDB storage ("+a.Xb.length+" bytes)")):(a.Xb=localStorage.getItem("__c2save_"+b)||"",ga("Loaded state from WebStorage ("+a.Xb.length+" bytes)"));a.nm=!1;a.Xb||(a.Xb=null,a.trigger(M.prototype.j.Om,null))},function(){a.Xb=localStorage.getItem("__c2save_"+b)||"";ga("Loaded state from WebStorage ("+a.Xb.length+" bytes)");a.nm=!1;a.Xb||(a.Xb=null,a.trigger(M.prototype.j.Om,
null))});else{try{this.Xb=localStorage.getItem("__c2save_"+b)||"",ga("Loaded state from WebStorage ("+this.Xb.length+" bytes)")}catch(l){this.Xb=null}this.nm=!1;a.Xb||(a.Xb=null,a.trigger(M.prototype.j.Om,null))}this.ep=this.ll=""}null!==this.Xb&&(this.Ac(),this.CE(this.Xb)?(this.Of=this.Xb,this.trigger(M.prototype.j.rA,null),this.Of=""):a.trigger(M.prototype.j.Om,null),this.Xb=null)};f.prototype.NF=function(){var d,h,b,k,c,l,e,r={c2save:!0,version:1,rt:{time:this.Vb.ea,walltime:this.mg.ea,timescale:this.kh,
tickcount:this.Id,execcount:this.Ch,next_uid:this.El,running_layout:this.Da.ya,start_time_offset:Date.now()-this.sp},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};d=0;for(h=this.P.length;d<h;d++)if(c=this.P[d],!c.U&&!this.et(c)){l={instances:[]};eb(c.V)&&(l.ex=a(c.V));b=0;for(k=c.n.length;b<k;b++)l.instances.push(this.Gs(c.n[b]));r.types[c.ya.toString()]=l}d=0;for(h=this.Ce.length;d<h;d++)b=this.Ce[d],r.layouts[b.ya.toString()]=b.Ma();k=r.events.groups;d=0;for(h=this.Di.length;d<
h;d++)b=this.Di[d],k[b.ya.toString()]=this.Vi[b.Qk].Ih;h=r.events.cnds;for(e in this.Fg)this.Fg.hasOwnProperty(e)&&(d=this.Fg[e],eb(d.V)&&(h[e]={ex:a(d.V)}));h=r.events.acts;for(e in this.vg)this.vg.hasOwnProperty(e)&&(d=this.vg[e],eb(d.V)&&(h[e]={ex:a(d.V)}));h=r.events.vars;for(e in this.Vj)this.Vj.hasOwnProperty(e)&&(d=this.Vj[e],d.ko||d.parent&&!d.fl||(h[e]=d.data));r.system=this.sf.Ma();return JSON.stringify(r)};f.prototype.Ax=function(){var a,d,h,b,k,c;this.Vf={};a=0;for(d=this.P.length;a<d;a++)if(h=
this.P[a],!h.U)for(b=0,k=h.n.length;b<k;b++)c=h.n[b],this.Vf[c.uid.toString()]=c};f.prototype.CE=function(a){var d;try{d=JSON.parse(a)}catch(h){return!1}if(!d.c2save||1<d.version)return!1;this.bl=!0;a=d.rt;this.Vb.reset();this.Vb.ea=a.time;this.mg.reset();this.mg.ea=a.walltime||0;this.kh=a.timescale;this.Id=a.tickcount;this.Ch=a.execcount;this.sp=Date.now()-a.start_time_offset;var b=a.running_layout;if(b!==this.Da.ya)if(b=this.Dv(b))this.dv(b);else return;var k,c,l,e,r,g,t;g=d.types;for(c in g)if(g.hasOwnProperty(c)&&
(e=this.Ti(parseInt(c,10)))&&!e.U&&!this.et(e)){g[c].ex?e.V=g[c].ex:fb(e.V);r=e.n;l=g[c].instances;b=0;for(k=sa(r.length,l.length);b<k;b++)this.so(r[b],l[b]);b=l.length;for(k=r.length;b<k;b++)this.Ld(r[b]);b=r.length;for(k=l.length;b<k;b++){r=null;if(e.X.Rg&&(r=this.Da.Zn(l[b].w.l),!r))continue;r=this.Ig(e.Rd,r,!1,0,0,!0);this.so(r,l[b])}e.Mj=!0}this.Ac();this.Ax();k=d.layouts;for(c in k)k.hasOwnProperty(c)&&(b=this.Dv(parseInt(c,10)))&&b.Sa(k[c]);k=d.events.groups;for(c in k)k.hasOwnProperty(c)&&
(b=this.ID(parseInt(c,10)))&&this.Vi[b.Qk]&&this.Vi[b.Qk].lp(k[c]);b=d.events.cnds;for(c in this.Fg)this.Fg.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.Fg[c].V=b[c].ex:this.Fg[c].V={});b=d.events.acts;for(c in this.vg)this.vg.hasOwnProperty(c)&&(b.hasOwnProperty(c)?this.vg[c].V=b[c].ex:this.vg[c].V={});b=d.events.vars;for(c in b)b.hasOwnProperty(c)&&this.Vj.hasOwnProperty(c)&&(this.Vj[c].data=b[c]);this.El=a.next_uid;this.bl=!1;b=0;for(k=this.Nn.length;b<k;++b)r=this.Nn[b],this.trigger(Object.getPrototypeOf(r.type.X).j.sg,
r);J(this.Nn);this.sf.Sa(d.system);b=0;for(k=this.P.length;b<k;b++)if(e=this.P[b],!e.U&&!this.et(e))for(d=0,c=e.n.length;d<c;d++){r=e.n[d];if(e.qc)for(g=r.Pk(),J(r.siblings),a=0,l=e.dd.length;a<l;a++)t=e.dd[a],e!==t&&r.siblings.push(t.n[g]);r.Od&&r.Od();if(r.Y)for(a=0,l=r.Y.length;a<l;a++)g=r.Y[a],g.Od&&g.Od()}return this.ca=!0};f.prototype.Gs=function(d,h){var b,k,c,l,e;l=d.type;c=l.X;var r={};h?r.c2=!0:r.uid=d.uid;eb(d.V)&&(r.ex=a(d.V));if(d.Va&&d.Va.length)for(r.ivs={},b=0,k=d.Va.length;b<k;b++)r.ivs[d.type.qr[b].toString()]=
d.Va[b];if(c.Rg){c={x:d.x,y:d.y,w:d.width,h:d.height,l:d.r.ya,zi:d.Td()};0!==d.u&&(c.a=d.u);1!==d.opacity&&(c.o=d.opacity);.5!==d.oc&&(c.hX=d.oc);.5!==d.pc&&(c.hY=d.pc);0!==d.Cc&&(c.bm=d.Cc);d.visible||(c.v=d.visible);d.We||(c.ce=d.We);-1!==d.Dl&&(c.mts=d.Dl);if(l.na.length)for(c.fx=[],b=0,k=l.na.length;b<k;b++)e=l.na[b],c.fx.push({name:e.name,active:d.ug[e.index],params:d.pb[e.index]});r.w=c}if(d.Y&&d.Y.length)for(r.behs={},b=0,k=d.Y.length;b<k;b++)l=d.Y[b],l.Ma&&(r.behs[l.type.ya.toString()]=l.Ma());
d.Ma&&(r.data=d.Ma());return r};f.prototype.KD=function(a,d){var h,b;h=0;for(b=a.qr.length;h<b;h++)if(a.qr[h]===d)return h;return-1};f.prototype.FD=function(a,d){var h,b;h=0;for(b=a.Y.length;h<b;h++)if(a.Y[h].type.ya===d)return h;return-1};f.prototype.so=function(a,d,h){var b,k,c,l,e;e=a.type;var r=e.X;if(h){if(!d.c2)return}else a.uid=d.uid;d.ex?a.V=d.ex:fb(a.V);if(k=d.ivs)for(b in k)k.hasOwnProperty(b)&&(c=this.KD(e,parseInt(b,10)),0>c||c>=a.Va.length||(l=k[b],null===l&&(l=NaN),a.Va[c]=l));if(r.Rg){c=
d.w;a.r.ya!==c.l&&(k=a.r,a.r=this.Da.Zn(c.l),a.r?(k.Gj(a,!0),a.r.mk(a,!0),a.H(),a.r.fm(0)):(a.r=k,h||this.Ld(a)));a.x=c.x;a.y=c.y;a.width=c.w;a.height=c.h;a.Se=c.zi;a.u=c.hasOwnProperty("a")?c.a:0;a.opacity=c.hasOwnProperty("o")?c.o:1;a.oc=c.hasOwnProperty("hX")?c.hX:.5;a.pc=c.hasOwnProperty("hY")?c.hY:.5;a.visible=c.hasOwnProperty("v")?c.v:!0;a.We=c.hasOwnProperty("ce")?c.ce:!0;a.Dl=c.hasOwnProperty("mts")?c.mts:-1;a.Cc=c.hasOwnProperty("bm")?c.bm:0;a.sk=pb(a.Cc);this.T&&qb(a,a.Cc,this.T);a.H();
if(c.hasOwnProperty("fx"))for(h=0,k=c.fx.length;h<k;h++)l=e.Zq(c.fx[h].name),0>l||(a.ug[l]=c.fx[h].active,a.pb[l]=c.fx[h].params);a.Re()}if(e=d.behs)for(b in e)e.hasOwnProperty(b)&&(h=this.FD(a,parseInt(b,10)),0>h||a.Y[h].Sa(e[b]));d.data&&a.Sa(d.data)};f.prototype.ov=function(a,d,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(d,h)},h)};f.prototype.vD=function(a,d){this.ov("data.js",function(h){var b=new FileReader;b.onload=function(d){a(d.target.result)};
b.onerror=d;b.readAsText(h)},d)};var ha=[],O=0;f.prototype.Wr=function(){if(ha.length&&!(8<=O)){O++;var a=ha.shift();this.rC(a.filename,a.ZF,a.QC)}};f.prototype.pv=function(a,d,h){var b=this;ha.push({filename:a,ZF:function(a){O--;b.Wr();d(a)},QC:function(a){O--;b.Wr();h(a)}});this.Wr()};f.prototype.rC=function(a,d,h){this.ov(a,function(a){var h=new FileReader;h.onload=function(a){d(a.target.result)};h.readAsArrayBuffer(a)},h)};f.prototype.wD=function(a,d,h){var b="",c=a.toLowerCase(),k=c.substr(c.length-
4),c=c.substr(c.length-5);".mp4"===k?b="video/mp4":".webm"===c?b="video/webm":".m4a"===k?b="audio/mp4":".mp3"===k&&(b="audio/mpeg");this.pv(a,function(a){a=URL.createObjectURL(new Blob([a],{type:b}));d(a)},h)};f.prototype.Sv=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};f.prototype.Kx=function(a,d){this.jo&&!this.Sv(d)?this.wD(d,function(d){a.src=d},function(a){alert("Failed to load image: "+a)}):a.src=d};f.prototype.jp=function(a,d){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=d:(a.webkitImageSmoothingEnabled=d,a.mozImageSmoothingEnabled=d,a.msImageSmoothingEnabled=d)};cc=function(a){return new f(document.getElementById(a))};dc=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=cc;window.cr_createDCRuntime=dc;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.kc=!0;document.body.appendChild(a);a=new f(a);
window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,p){var n=window.cr_getC2Runtime();n&&n.pC(f,p)};window.cr_sizeCanvas=function(f,p){if(0!==f&&0!==p){var n=window.cr_getC2Runtime();n&&n.setSize(f,p)}};window.cr_setSuspended=function(f){var p=window.cr_getC2Runtime();p&&p.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.Ah=null;this.scrollX=this.b.gb/2;this.scrollY=this.b.fb/2;this.scale=1;this.u=0;this.Qi=!0;this.name=b[0];this.cF=b[1];this.bF=b[2];this.width=b[1];this.height=b[2];this.ty=b[3];this.Tx=b[4];this.ya=b[5];var c=b[6],h,l;this.qa=[];this.Wk=[];h=0;for(l=c.length;h<l;h++){var e=new ec(this,c[h]);e.Tw=h;this.qa.push(e)}c=b[7];this.Qg=[];h=0;for(l=c.length;h<l;h++){var e=c[h],g=this.b.P[e[1]];g.Rd||(g.Rd=e);this.Qg.push(e);-1===this.Wk.indexOf(g)&&this.Wk.push(g)}this.na=
[];this.Na=[];this.bg=!0;this.pb=[];h=0;for(l=b[8].length;h<l;h++)this.na.push({id:b[8][h][0],name:b[8][h][1],Ob:-1,He:!1,sd:!0,index:h}),this.pb.push(b[8][h][2].slice(0));this.Re();this.Xd=new wa(0,0,1,1);this.zs=new wa(0,0,1,1);this.bh={}}function p(a,b){return a.Se-b.Se}function n(a,b){this.Kb=a;this.b=a.b;this.n=[];this.scale=1;this.u=0;this.Ef=!1;this.jg=new wa(0,0,0,0);this.jy=new xa;this.Ia=this.Ga=this.Ja=this.Fa=0;this.Ai=!1;this.ng=-1;this.xq=0;this.name=b[0];this.index=b[1];this.ya=b[2];
this.visible=b[3];this.Bc=b[4];this.Qe=b[5];this.Uc=b[6];this.Vc=b[7];this.opacity=b[8];this.Tn=b[9];this.Kd=b[10];this.Ic=b[11];this.Cc=b[12];this.MC=b[13];this.sk="source-over";this.mc=this.yc=0;this.xc=null;this.Pf=m();this.Le=!0;this.oj=new wa(0,0,-1,-1);this.lc=new wa(0,0,-1,-1);this.Kd&&(this.xc=new ob(this.b.gb,this.b.fb));this.qf=!1;var c=b[14],h,l;this.$x=[];this.yd=[];this.vk=[];h=0;for(l=c.length;h<l;h++){var e=c[h],g=this.b.P[e[1]];g.Rd||(g.Rd=e,g.Zu=this.index);this.yd.push(e);-1===this.Kb.Wk.indexOf(g)&&
this.Kb.Wk.push(g)}Ga(this.$x,this.yd);this.na=[];this.Na=[];this.bg=!0;this.pb=[];h=0;for(l=b[15].length;h<l;h++)this.na.push({id:b[15][h][0],name:b[15][h][1],Ob:-1,He:!1,sd:!0,index:h}),this.pb.push(b[15][h][2].slice(0));this.Re();this.Xd=new wa(0,0,1,1);this.zs=new wa(0,0,1,1)}function m(){return a.length?a.pop():[]}function g(d){J(d);a.push(d)}f.prototype.MF=function(a){var b=a.type.ya.toString();this.bh.hasOwnProperty(b)||(this.bh[b]=[]);this.bh[b].push(this.b.Gs(a))};f.prototype.Iv=function(){var a=
this.qa[0];return!a.Qe&&1===a.opacity&&!a.Tn&&a.visible};f.prototype.Re=function(){J(this.Na);this.bg=!0;var a,b,c;a=0;for(b=this.na.length;a<b;a++)c=this.na[a],c.sd&&(this.Na.push(c),c.He||(this.bg=!1))};f.prototype.Yq=function(a){var b,c,h;b=0;for(c=this.na.length;b<c;b++)if(h=this.na[b],h.name===a)return h;return null};var q=[],e=!0;f.prototype.Os=function(){this.Tx&&(this.Ah=this.b.Nq[this.Tx],this.Ah.ht());this.b.Da=this;this.width=this.cF;this.height=this.bF;this.scrollX=this.b.gb/2;this.scrollY=
this.b.fb/2;var a,b,c,h,l,g,f;a=0;for(c=this.b.P.length;a<c;a++)if(b=this.b.P[a],!b.U)for(l=b.n,b=0,h=l.length;b<h;b++)if(g=l[b],g.r){var r=g.r.Tw;r>=this.qa.length&&(r=this.qa.length-1);g.r=this.qa[r];-1===g.r.n.indexOf(g)&&g.r.n.push(g);g.r.Ai=!0}if(!e)for(a=0,c=this.qa.length;a<c;++a)this.qa[a].n.sort(p);J(q);this.ZB();a=0;for(c=this.qa.length;a<c;a++)g=this.qa[a],g.kC(),g.Hp();l=!1;if(!this.Qi){for(f in this.bh)if(this.bh.hasOwnProperty(f)&&(b=this.b.Ti(parseInt(f,10)))&&!b.U&&this.b.gt(b)){h=
this.bh[f];a=0;for(c=h.length;a<c;a++){g=null;if(b.X.Rg&&(g=this.Zn(h[a].w.l),!g))continue;g=this.b.Ig(b.Rd,g,!1,0,0,!0);this.b.so(g,h[a]);l=!0;q.push(g)}J(h)}a=0;for(c=this.qa.length;a<c;a++)this.qa[a].n.sort(p),this.qa[a].Ai=!0}l&&(this.b.Ac(),this.b.Ax());for(a=0;a<q.length;a++)if(g=q[a],g.type.qc)for(c=g.Pk(),b=0,h=g.type.dd.length;b<h;b++)f=g.type.dd[b],g.type!==f&&(f.n.length>c?g.siblings.push(f.n[c]):f.Rd&&(l=this.b.Ig(f.Rd,g.r,!0,g.x,g.y,!0),this.b.Ac(),f.Fp(),g.siblings.push(l),q.push(l)));
a=0;for(c=this.Qg.length;a<c;a++)g=this.Qg[a],b=this.b.P[g[1]],b.qc||this.b.Ig(this.Qg[a],null,!0);this.b.sh=null;this.b.Ac();if(this.b.Za&&!this.b.N)for(a=0,c=this.b.P.length;a<c;a++)f=this.b.P[a],!f.U&&f.n.length&&f.Sl&&f.Sl(this.b.Za);if(this.b.bl)Ga(this.b.Nn,q);else for(a=0,c=q.length;a<c;a++)g=q[a],this.b.trigger(Object.getPrototypeOf(g.type.X).j.sg,g);J(q);this.b.bl||this.b.trigger(M.prototype.j.Lt,null);this.Qi=!1};f.prototype.jC=function(){var a,b,c,h,l;b=a=0;for(c=this.Qg.length;a<c;a++)h=
this.Qg[a],l=this.b.P[h[1]],l.global?l.qc||this.b.Ig(h,null,!0):(this.Qg[b]=h,b++);Fa(this.Qg,b)};f.prototype.YF=function(){this.b.bl||this.b.trigger(M.prototype.j.Kt,null);this.b.sr=!0;J(this.b.sf.bd);var a,b,c,h,l,g;if(!this.Qi)for(a=0,b=this.qa.length;a<b;a++)for(this.qa[a].jt(),l=this.qa[a].n,c=0,h=l.length;c<h;c++)g=l[c],g.type.global||this.b.gt(g.type)&&this.MF(g);a=0;for(b=this.qa.length;a<b;a++){l=this.qa[a].n;c=0;for(h=l.length;c<h;c++)g=l[c],g.type.global||this.b.Ld(g);this.b.Ac();J(l);
this.qa[a].Ai=!0}a=0;for(b=this.b.P.length;a<b;a++)if(l=this.b.P[a],!(l.global||l.X.Rg||l.X.rp||l.U)){c=0;for(h=l.n.length;c<h;c++)this.b.Ld(l.n[c]);this.b.Ac()}e=!1;this.b.sr=!1};new wa(0,0,0,0);f.prototype.Tb=function(a){var b,c=a,h=!1,l=!this.b.vd;l&&(this.b.ro||(this.b.ro=document.createElement("canvas"),b=this.b.ro,b.width=this.b.aa,b.height=this.b.Z,this.b.jw=b.getContext("2d"),h=!0),b=this.b.ro,c=this.b.jw,b.width!==this.b.aa&&(b.width=this.b.aa,h=!0),b.height!==this.b.Z&&(b.height=this.b.Z,
h=!0),h&&this.b.jp(c,this.b.Ra));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.Qu&&!this.Iv()&&c.clearRect(0,0,this.b.aa,this.b.Z);var e,g,h=0;for(e=this.qa.length;h<e;h++)g=this.qa[h],g.visible&&0<g.opacity&&11!==g.Cc&&(g.n.length||!g.Qe)?g.Tb(c):g.Hp();l&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Ff=function(a){a.Jx(!0);this.b.Lb||(this.b.Lb=a.Sc(this.b.aa,this.b.Z,this.b.Ra));if(this.b.Lb.oe!==this.b.aa||this.b.Lb.ne!==this.b.Z)a.deleteTexture(this.b.Lb),this.b.Lb=
a.Sc(this.b.aa,this.b.Z,this.b.Ra);a.Zd(this.b.Lb);this.b.vd||a.oi(this.b.aa,this.b.Z);var b,c;for(b=this.qa.length-1;0<=b;--b)c=this.qa[b],c.visible&&1===c.opacity&&c.bg&&0===c.Cc&&(c.n.length||!c.Qe)?c.Ff(a):c.Hp();a.Jx(!1)};f.prototype.eb=function(a){var b=0<this.Na.length||this.b.Tj||!this.b.vd||this.b.Ua;if(b){this.b.Lb||(this.b.Lb=a.Sc(this.b.aa,this.b.Z,this.b.Ra));if(this.b.Lb.oe!==this.b.aa||this.b.Lb.ne!==this.b.Z)a.deleteTexture(this.b.Lb),this.b.Lb=a.Sc(this.b.aa,this.b.Z,this.b.Ra);a.Zd(this.b.Lb);
this.b.vd||a.oi(this.b.aa,this.b.Z)}else this.b.Lb&&(a.Zd(null),a.deleteTexture(this.b.Lb),this.b.Lb=null);this.b.Qu&&!this.Iv()&&a.clear(0,0,0,0);var c,h,l;c=0;for(h=this.qa.length;c<h;c++)l=this.qa[c],l.visible&&0<l.opacity&&(l.n.length||!l.Qe)?l.eb(a):l.Hp();b&&(0===this.Na.length||1===this.Na.length&&this.b.vd?(1===this.Na.length?(b=this.Na[0].index,a.Zc(this.Na[0].Ob),a.Kj(null,1/this.b.aa,1/this.b.Z,0,0,1,1,this.scale,this.u,0,0,this.b.aa/2,this.b.Z/2,this.b.Vb.ea,this.pb[b]),a.To(this.Na[0].Ob)&&
(this.b.ca=!0)):a.Zc(0),this.b.vd||a.oi(this.b.width,this.b.height),a.Zd(null),a.Hx(!1),a.Oe(1),a.jc(this.b.Lb),a.Fx(),a.Yd(),a.Jd(),b=this.b.width/2,c=this.b.height/2,a.Ej(-b,c,b,c,b,-c,-b,-c),a.jc(null),a.Hx(!0)):this.As(a,null,null,null))};f.prototype.Mk=function(){return 0<this.Na.length||this.b.Tj||!this.b.vd||this.b.Ua?this.b.Lb:null};f.prototype.Ev=function(){var a=this.qa[0].Jb(),b,c,h;b=1;for(c=this.qa.length;b<c;b++)h=this.qa[b],(0!==h.Uc||0!==h.Vc)&&h.Jb()<a&&(a=h.Jb());return a};f.prototype.fp=
function(a){if(!this.ty){var b=1/this.Ev()*this.b.aa/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.ca=!0)};f.prototype.gp=function(a){if(!this.ty){var b=1/this.Ev()*this.b.Z/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.ca=!0)};f.prototype.ZB=function(){this.fp(this.scrollX);this.gp(this.scrollY)};f.prototype.As=function(a,b,c,h){var l=c?c.Na:b?b.Na:this.Na,e=1,g=0,r=0,f=0,m=this.b.aa,w=this.b.Z;c?(e=c.r.Jb(),g=c.r.rb(),
r=c.r.Fa,f=c.r.Ga,m=c.r.Ja,w=c.r.Ia):b&&(e=b.Jb(),g=b.rb(),r=b.Fa,f=b.Ga,m=b.Ja,w=b.Ia);var t=this.b.Uq,q,n,p,E,L=0,P=1,S,V,K=this.b.aa,y=this.b.Z,W=K/2,ha=y/2,O=b?b.Xd:this.Xd,x=b?b.zs:this.zs,B=0,R=0,I=0,H=0,N=K,aa=K,Q=y,Y=y,Z=p=0;E=c?c.r.rb():0;if(c){q=0;for(n=l.length;q<n;q++)p+=a.PD(l[q].Ob),Z+=a.QD(l[q].Ob);H=c.ma;B=b.ba(H.left,H.top,!0,!0);I=b.ba(H.left,H.top,!1,!0);N=b.ba(H.right,H.bottom,!0,!0);Q=b.ba(H.right,H.bottom,!1,!0);0!==E&&(q=b.ba(H.right,H.top,!0,!0),n=b.ba(H.right,H.top,!1,!0),
R=b.ba(H.left,H.bottom,!0,!0),H=b.ba(H.left,H.bottom,!1,!0),E=Math.min(B,N,q,R),N=Math.max(B,N,q,R),B=E,E=Math.min(I,Q,n,H),Q=Math.max(I,Q,n,H),I=E);B-=p;I-=Z;N+=p;Q+=Z;x.left=B/K;x.top=1-I/y;x.right=N/K;x.bottom=1-Q/y;R=B=A(B);H=I=A(I);aa=N=ua(N);Y=Q=ua(Q);R-=p;H-=Z;aa+=p;Y+=Z;0>B&&(B=0);0>I&&(I=0);N>K&&(N=K);Q>y&&(Q=y);0>R&&(R=0);0>H&&(H=0);aa>K&&(aa=K);Y>y&&(Y=y);O.left=B/K;O.top=1-I/y;O.right=N/K;O.bottom=1-Q/y}else O.left=x.left=0,O.top=x.top=0,O.right=x.right=1,O.bottom=x.bottom=1;Z=c&&(a.Tl(l[0].Ob)||
0!==p||0!==Z||1!==c.opacity||c.type.X.Pw)||b&&!c&&1!==b.opacity;a.Fx();if(Z){t[L]||(t[L]=a.Sc(K,y,this.b.Ra));if(t[L].oe!==K||t[L].ne!==y)a.deleteTexture(t[L]),t[L]=a.Sc(K,y,this.b.Ra);a.Zc(0);a.Zd(t[L]);V=Y-H;a.clearRect(R,y-H-V,aa-R,V);c?c.eb(a):(a.jc(this.b.Wb),a.Oe(b.opacity),a.Yd(),a.translate(-W,-ha),a.Jd(),a.nd(B,Q,N,Q,N,I,B,I,O));x.left=x.top=0;x.right=x.bottom=1;c&&(E=O.top,O.top=O.bottom,O.bottom=E);L=1;P=0}a.Oe(1);p=l.length-1;var ia=a.us(l[p].Ob)||!b&&!c&&!this.b.vd;q=E=0;for(n=l.length;q<
n;q++){t[L]||(t[L]=a.Sc(K,y,this.b.Ra));if(t[L].oe!==K||t[L].ne!==y)a.deleteTexture(t[L]),t[L]=a.Sc(K,y,this.b.Ra);a.Zc(l[q].Ob);E=l[q].index;a.To(l[q].Ob)&&(this.b.ca=!0);0!=q||Z?(a.Kj(h,1/K,1/y,x.left,x.top,x.right,x.bottom,e,g,r,f,(r+m)/2,(f+w)/2,this.b.Vb.ea,c?c.pb[E]:b?b.pb[E]:this.pb[E]),a.jc(null),q!==p||ia?(a.Zd(t[L]),V=Y-H,S=y-H-V,a.clearRect(R,S,aa-R,V)):(c?a.ag(c.yc,c.mc):b&&a.ag(b.yc,b.mc),a.Zd(h)),a.jc(t[P]),a.Yd(),a.translate(-W,-ha),a.Jd(),a.nd(B,Q,N,Q,N,I,B,I,O),q!==p||ia||a.jc(null)):
(a.Zd(t[L]),V=Y-H,S=y-H-V,a.clearRect(R,S,aa-R,V),c?(c.Sb&&c.Sb.O?(S=c.Sb.O,P=1/S.width,S=1/S.height):(P=1/c.width,S=1/c.height),a.Kj(h,P,S,x.left,x.top,x.right,x.bottom,e,g,r,f,(r+m)/2,(f+w)/2,this.b.Vb.ea,c.pb[E]),c.eb(a)):(a.Kj(h,1/K,1/y,0,0,1,1,e,g,r,f,(r+m)/2,(f+w)/2,this.b.Vb.ea,b?b.pb[E]:this.pb[E]),a.jc(b?this.b.Wb:this.b.Lb),a.Yd(),a.translate(-W,-ha),a.Jd(),a.nd(B,Q,N,Q,N,I,B,I,O)),x.left=x.top=0,x.right=x.bottom=1,c&&!ia&&(E=Q,Q=I,I=E));L=0===L?1:0;P=0===L?1:0}ia&&(a.Zc(0),c?a.ag(c.yc,
c.mc):b?a.ag(b.yc,b.mc):this.b.vd||(a.oi(this.b.width,this.b.height),W=this.b.width/2,ha=this.b.height/2,I=B=0,N=this.b.width,Q=this.b.height),a.Zd(h),a.jc(t[P]),a.Yd(),a.translate(-W,-ha),a.Jd(),c&&1===l.length&&!Z?a.nd(B,I,N,I,N,Q,B,Q,O):a.nd(B,Q,N,Q,N,I,B,I,O),a.jc(null))};f.prototype.Zn=function(a){var b,c;b=0;for(c=this.qa.length;b<c;b++)if(this.qa[b].ya===a)return this.qa[b];return null};f.prototype.Ma=function(){var a,b,c,h={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.u,w:this.width,
h:this.height,fv:this.Qi,persist:this.bh,fx:[],layers:{}};a=0;for(b=this.na.length;a<b;a++)c=this.na[a],h.fx.push({name:c.name,active:c.sd,params:this.pb[c.index]});a=0;for(b=this.qa.length;a<b;a++)c=this.qa[a],h.layers[c.ya.toString()]=c.Ma();return h};f.prototype.Sa=function(a){var b,c,h,l;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.u=a.a;this.width=a.w;this.height=a.h;this.bh=a.persist;"undefined"!==typeof a.fv&&(this.Qi=a.fv);var e=a.fx;b=0;for(c=e.length;b<c;b++)if(h=this.Yq(e[b].name))h.sd=
e[b].active,this.pb[h.index]=e[b].params;this.Re();b=a.layers;for(l in b)b.hasOwnProperty(l)&&(a=this.Zn(parseInt(l,10)))&&a.Sa(b[l])};Qb=f;n.prototype.Re=function(){J(this.Na);this.bg=!0;var a,b,c;a=0;for(b=this.na.length;a<b;a++)c=this.na[a],c.sd&&(this.Na.push(c),c.He||(this.bg=!1))};n.prototype.Yq=function(a){var b,c,h;b=0;for(c=this.na.length;b<c;b++)if(h=this.na[b],h.name===a)return h;return null};n.prototype.kC=function(){var a,b,c,h,l,e;b=a=0;for(c=this.yd.length;a<c;a++){h=this.yd[a];l=this.b.P[h[1]];
e=this.b.gt(l);l=!0;if(!e||this.Kb.Qi){h=this.b.Ig(h,this,!0);if(!h)continue;q.push(h);h.type.global&&(l=!1,this.vk.push(h.uid))}l&&(this.yd[b]=this.yd[a],b++)}this.yd.length=b;this.b.Ac();!this.b.F&&this.na.length&&(this.Cc=this.MC);this.sk=pb(this.Cc);this.b.T&&qb(this,this.Cc,this.b.T);this.Le=!0};n.prototype.Gj=function(a,b){var c=Ia(this.n,a);0>c||(b&&this.Kd&&a.Xc&&a.Xc.right>=a.Xc.left&&(a.fa(),this.xc.update(a,a.Xc,null),a.Xc.set(0,0,-1,-1)),c===this.n.length-1?this.n.pop():(Ea(this.n,c),
this.fm(c)),this.Le=!0)};n.prototype.mk=function(a,b){a.Se=this.n.length;this.n.push(a);b&&this.Kd&&a.Xc&&a.H();this.Le=!0};n.prototype.qF=function(a){this.n.unshift(a);this.fm(0)};n.prototype.LE=function(a,b,c){var h=a.Td();b=b.Td();Ea(this.n,h);h<b&&b--;c&&b++;b===this.n.length?this.n.push(a):this.n.splice(b,0,a);this.fm(h<b?h:b)};n.prototype.fm=function(a){-1===this.ng?this.ng=a:a<this.ng&&(this.ng=a);this.Le=this.Ai=!0};n.prototype.jt=function(){if(this.Ai){-1===this.ng&&(this.ng=0);var a,b,c;
if(this.Kd)for(a=this.ng,b=this.n.length;a<b;++a)c=this.n[a],c.Se=a,this.xc.GE(c.Xc);else for(a=this.ng,b=this.n.length;a<b;++a)this.n[a].Se=a;this.Ai=!1;this.ng=-1}};n.prototype.Jb=function(a){return this.MD()*(this.b.vd||a?this.b.nk:1)};n.prototype.MD=function(){return(this.scale*this.Kb.scale-1)*this.Ic+1};n.prototype.rb=function(){return this.Ef?0:Pa(this.Kb.u+this.u)};var a=[],b=[],c=[];n.prototype.cr=function(){this.jt();this.xc.Wo(this.Fa,this.Ga,this.Ja,this.Ia,c);if(!c.length)return m();
if(1===c.length){var a=m();Ga(a,c[0]);J(c);return a}for(var e=!0;1<c.length;){for(var a=c,f=void 0,h=void 0,l=void 0,v=void 0,q=void 0,f=0,h=a.length;f<h-1;f+=2){var l=a[f],v=a[f+1],q=m(),r=l,C=v,n=q,w=0,t=0,T=0,p=r.length,z=C.length,E=void 0,L=void 0;for(n.length=p+z;w<p&&t<z;++T)E=r[w],L=C[t],E.Se<L.Se?(n[T]=E,++w):(n[T]=L,++t);for(;w<p;++w,++T)n[T]=r[w];for(;t<z;++t,++T)n[T]=C[t];e||(g(l),g(v));b.push(q)}1===h%2&&(e?(l=m(),Ga(l,a[h-1]),b.push(l)):b.push(a[h-1]));Ga(a,b);J(b);e=!1}a=c[0];J(c);return a};
n.prototype.Tb=function(a){this.qf=this.Tn||1!==this.opacity||0!==this.Cc;var b=this.b.canvas,c=a,h=!1;this.qf&&(this.b.qo||(this.b.qo=document.createElement("canvas"),b=this.b.qo,b.width=this.b.aa,b.height=this.b.Z,this.b.iw=b.getContext("2d"),h=!0),b=this.b.qo,c=this.b.iw,b.width!==this.b.aa&&(b.width=this.b.aa,h=!0),b.height!==this.b.Z&&(b.height=this.b.Z,h=!0),h&&this.b.jp(c,this.b.Ra),this.Qe&&c.clearRect(0,0,this.b.aa,this.b.Z));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Qe||
(c.fillStyle="rgb("+this.Bc[0]+","+this.Bc[1]+","+this.Bc[2]+")",c.fillRect(0,0,this.b.aa,this.b.Z));c.save();this.Ef=!0;var h=this.bb(0,0,!0,!0),l=this.bb(0,0,!1,!0);this.Ef=!1;this.b.Gc&&(h=Math.round(h),l=Math.round(l));this.$o(h,l,c);var e=this.Jb();c.scale(e,e);c.translate(-h,-l);this.Kd?(this.lc.left=this.xc.Pc(this.Fa),this.lc.top=this.xc.Qc(this.Ga),this.lc.right=this.xc.Pc(this.Ja),this.lc.bottom=this.xc.Qc(this.Ia),this.Le||!this.lc.zk(this.oj)?(g(this.Pf),h=this.cr(),this.Le=!1,this.oj.Hi(this.lc)):
h=this.Pf):h=this.n;for(var f,r=null,l=0,e=h.length;l<e;++l)f=h[l],f!==r&&(this.HC(f,c),r=f);this.Kd&&(this.Pf=h);c.restore();this.qf&&(a.globalCompositeOperation=this.sk,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};n.prototype.HC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var c=a.ma;c.right<this.Fa||c.bottom<this.Ga||c.left>this.Ja||c.top>this.Ia||(b.globalCompositeOperation=a.sk,a.Tb(b))}};n.prototype.Hp=function(){this.Ef=!0;var a=this.bb(0,0,!0,!0),b=this.bb(0,0,!1,!0);this.Ef=
!1;this.b.Gc&&(a=Math.round(a),b=Math.round(b));this.$o(a,b,null)};n.prototype.$o=function(a,b,c){var h=this.Jb();this.Fa=a;this.Ga=b;this.Ja=a+1/h*this.b.aa;this.Ia=b+1/h*this.b.Z;this.Fa>this.Ja&&(a=this.Fa,this.Fa=this.Ja,this.Ja=a);this.Ga>this.Ia&&(a=this.Ga,this.Ga=this.Ia,this.Ia=a);a=this.rb();0!==a&&(c&&(c.translate(this.b.aa/2,this.b.Z/2),c.rotate(-a),c.translate(this.b.aa/-2,this.b.Z/-2)),this.jg.set(this.Fa,this.Ga,this.Ja,this.Ia),this.jg.offset((this.Fa+this.Ja)/-2,(this.Ga+this.Ia)/
-2),this.jy.Rx(this.jg,a),this.jy.Iu(this.jg),this.jg.offset((this.Fa+this.Ja)/2,(this.Ga+this.Ia)/2),this.Fa=this.jg.left,this.Ga=this.jg.top,this.Ja=this.jg.right,this.Ia=this.jg.bottom)};n.prototype.Ff=function(a){if(this.qf=this.Tn){this.b.Wb||(this.b.Wb=a.Sc(this.b.aa,this.b.Z,this.b.Ra));if(this.b.Wb.oe!==this.b.aa||this.b.Wb.ne!==this.b.Z)a.deleteTexture(this.b.Wb),this.b.Wb=a.Sc(this.b.aa,this.b.Z,this.b.Ra);a.Zd(this.b.Wb)}this.Ef=!0;var b=this.bb(0,0,!0,!0),c=this.bb(0,0,!1,!0);this.Ef=
!1;this.b.Gc&&(b=Math.round(b),c=Math.round(c));this.$o(b,c,null);b=this.Jb();a.Yd();a.scale(b,b);a.bp(-this.rb());a.translate((this.Fa+this.Ja)/-2,(this.Ga+this.Ia)/-2);a.Jd();this.Kd?(this.lc.left=this.xc.Pc(this.Fa),this.lc.top=this.xc.Qc(this.Ga),this.lc.right=this.xc.Pc(this.Ja),this.lc.bottom=this.xc.Qc(this.Ia),this.Le||!this.lc.zk(this.oj)?(g(this.Pf),b=this.cr(),this.Le=!1,this.oj.Hi(this.lc)):b=this.Pf):b=this.n;for(var h,l=null,c=b.length-1;0<=c;--c)h=b[c],h!==l&&(this.JC(b[c],a),l=h);
this.Kd&&(this.Pf=b);this.Qe||(this.xq=this.b.zh++,a.kp(this.xq),a.Gx(1,1,1),a.tv(),a.CF())};n.prototype.eb=function(a){var b=0,c=0;if(this.qf=this.Tn||1!==this.opacity||0<this.Na.length||0!==this.Cc){this.b.Wb||(this.b.Wb=a.Sc(this.b.aa,this.b.Z,this.b.Ra));if(this.b.Wb.oe!==this.b.aa||this.b.Wb.ne!==this.b.Z)a.deleteTexture(this.b.Wb),this.b.Wb=a.Sc(this.b.aa,this.b.Z,this.b.Ra);a.Zd(this.b.Wb);this.Qe&&a.clear(0,0,0,0)}this.Qe||(this.b.Ua?(a.kp(this.xq),a.Gx(this.Bc[0]/255,this.Bc[1]/255,this.Bc[2]/
255),a.tv(),a.TF()):a.clear(this.Bc[0]/255,this.Bc[1]/255,this.Bc[2]/255,1));this.Ef=!0;var h=this.bb(0,0,!0,!0),b=this.bb(0,0,!1,!0);this.Ef=!1;this.b.Gc&&(h=Math.round(h),b=Math.round(b));this.$o(h,b,null);h=this.Jb();a.Yd();a.scale(h,h);a.bp(-this.rb());a.translate((this.Fa+this.Ja)/-2,(this.Ga+this.Ia)/-2);a.Jd();this.Kd?(this.lc.left=this.xc.Pc(this.Fa),this.lc.top=this.xc.Qc(this.Ga),this.lc.right=this.xc.Pc(this.Ja),this.lc.bottom=this.xc.Qc(this.Ia),this.Le||!this.lc.zk(this.oj)?(g(this.Pf),
b=this.cr(),this.Le=!1,this.oj.Hi(this.lc)):b=this.Pf):b=this.n;var l,e,f=null,c=0;for(l=b.length;c<l;++c)e=b[c],e!==f&&(this.IC(b[c],a),f=e);this.Kd&&(this.Pf=b);this.qf&&(b=this.Na.length?this.Na[0].Ob:0,c=this.Na.length?this.Na[0].index:0,0===this.Na.length||1===this.Na.length&&!a.us(b)&&1===this.opacity?(1===this.Na.length?(a.Zc(b),a.Kj(this.Kb.Mk(),1/this.b.aa,1/this.b.Z,0,0,1,1,h,this.rb(),this.Fa,this.Ga,(this.Fa+this.Ja)/2,(this.Ga+this.Ia)/2,this.b.Vb.ea,this.pb[c]),a.To(b)&&(this.b.ca=!0)):
a.Zc(0),a.Zd(this.Kb.Mk()),a.Oe(this.opacity),a.jc(this.b.Wb),a.ag(this.yc,this.mc),a.Yd(),a.Jd(),h=this.b.aa/2,b=this.b.Z/2,a.Ej(-h,b,h,b,h,-b,-h,-b),a.jc(null)):this.Kb.As(a,this,null,this.Kb.Mk()))};n.prototype.IC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var c=a.ma;c.right<this.Fa||c.bottom<this.Ga||c.left>this.Ja||c.top>this.Ia||(b.kp(a.zh),a.Ay?this.KC(a,b):(b.Zc(0),b.ag(a.yc,a.mc),a.eb(b)))}};n.prototype.JC=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.fa();var c=
a.ma;c.right<this.Fa||c.bottom<this.Ga||c.left>this.Ja||c.top>this.Ia||(a.zh=this.b.zh++,0===a.Cc&&1===a.opacity&&a.bg&&a.Ff&&(b.kp(a.zh),a.Ff(b)))}};n.prototype.KC=function(a,b){var c=a.Na[0].Ob,h=a.Na[0].index,l=this.Jb();if(1!==a.Na.length||b.us(c)||b.uF(c)||(a.u||a.r.rb())&&b.Tl(c)||1!==a.opacity||a.type.X.Pw)this.Kb.As(b,this,a,this.qf?this.b.Wb:this.Kb.Mk()),b.Yd(),b.scale(l,l),b.bp(-this.rb()),b.translate((this.Fa+this.Ja)/-2,(this.Ga+this.Ia)/-2),b.Jd();else{b.Zc(c);b.ag(a.yc,a.mc);b.To(c)&&
(this.b.ca=!0);var e=0,g=0,r=0,f=0;b.Tl(c)&&(f=a.ma,e=this.ba(f.left,f.top,!0,!0),g=this.ba(f.left,f.top,!1,!0),r=this.ba(f.right,f.bottom,!0,!0),f=this.ba(f.right,f.bottom,!1,!0),e=e/windowWidth,g=1-g/windowHeight,r=r/windowWidth,f=1-f/windowHeight);var m;a.Sb&&a.Sb.O?(m=a.Sb.O,c=1/m.width,m=1/m.height):(c=1/a.width,m=1/a.height);b.Kj(this.qf?this.b.Wb:this.Kb.Mk(),c,m,e,g,r,f,l,this.rb(),this.Fa,this.Ga,(this.Fa+this.Ja)/2,(this.Ga+this.Ia)/2,this.b.Vb.ea,a.pb[h]);a.eb(b)}};n.prototype.bb=function(a,
b,c,h){var e=this.b.devicePixelRatio;this.b.Qh&&(a*=e,b*=e);var e=this.b.gx,g=this.b.hx,e=(this.Kb.scrollX-e)*this.Uc+e,g=(this.Kb.scrollY-g)*this.Vc+g,f=e,r=g,m=1/this.Jb(!h);h?(f-=this.b.aa*m/2,r-=this.b.Z*m/2):(f-=this.b.width*m/2,r-=this.b.height*m/2);f+=a*m;r+=b*m;b=this.rb();0!==b&&(f-=e,r-=g,a=Math.cos(b),b=Math.sin(b),h=f*a-r*b,r=r*a+f*b,f=h+e,r+=g);return c?f:r};n.prototype.ba=function(a,b,c,h){var e=this.b.gx,g=this.b.hx,f=(this.Kb.scrollX-e)*this.Uc+e,r=(this.Kb.scrollY-g)*this.Vc+g,g=
f,e=r,m=this.rb();if(0!==m){a-=f;b-=r;var q=Math.cos(-m),m=Math.sin(-m),w=a*q-b*m;b=b*q+a*m;a=w+f;b+=r}f=1/this.Jb(!h);h?(g-=this.b.aa*f/2,e-=this.b.Z*f/2):(g-=this.b.width*f/2,e-=this.b.height*f/2);g=(a-g)/f;e=(b-e)/f;a=this.b.devicePixelRatio;this.b.Qh&&!h&&(g/=a,e/=a);return c?g:e};n.prototype.Ma=function(){var a,b,c,h={s:this.scale,a:this.u,vl:this.Fa,vt:this.Ga,vr:this.Ja,vb:this.Ia,v:this.visible,bc:this.Bc,t:this.Qe,px:this.Uc,py:this.Vc,o:this.opacity,zr:this.Ic,fx:[],cg:this.vk,instances:[]};
a=0;for(b=this.na.length;a<b;a++)c=this.na[a],h.fx.push({name:c.name,active:c.sd,params:this.pb[c.index]});return h};n.prototype.Sa=function(a){var b,c,h;this.scale=a.s;this.u=a.a;this.Fa=a.vl;this.Ga=a.vt;this.Ja=a.vr;this.Ia=a.vb;this.visible=a.v;this.Bc=a.bc;this.Qe=a.t;this.Uc=a.px;this.Vc=a.py;this.opacity=a.o;this.Ic=a.zr;this.vk=a.cg||[];Ga(this.yd,this.$x);var e=new ea;b=0;for(h=this.vk.length;b<h;++b)e.add(this.vk[b]);c=b=0;for(h=this.yd.length;b<h;++b)e.contains(this.yd[b][2])||(this.yd[c]=
this.yd[b],++c);Fa(this.yd,c);c=a.fx;b=0;for(h=c.length;b<h;b++)if(a=this.Yq(c[b].name))a.sd=c[b].active,this.pb[a.index]=c[b].params;this.Re();this.n.sort(p);this.Ai=!0};ec=n})();
(function(){function f(a,b){var d,h=a.length;switch(h){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(d=0;d<h;d++)if(a[d]!==b[d])return!1;return!0}}function p(a,b){return a.index-b.index}function n(a){var b,d,h,c;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(p);a.length>=l.length&&(l.length=a.length+1);l[a.length]||(l[a.length]=[]);c=l[a.length];b=0;for(d=c.length;b<d;b++)if(h=c[b],f(a,h))return h;c.push(a);return a}
function m(a,b){this.b=a;this.oy={};this.nv={};this.kr=!1;this.Lv=new ea;this.Dq=[];this.kq=[];this.name=b[0];var d=b[1];this.Mg=[];var h,c;h=0;for(c=d.length;h<c;h++)this.Nv(d[h],null,this.Mg)}function g(a){this.type=a;this.n=[];this.wa=[];this.ta=!0}function q(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Pa=[];this.hh=[];this.Jv=this.zp=this.$s=this.nr=this.group=this.Ns=!1;this.Rb=[];this.Nd=[];this.ae=[];this.Qk="";this.Ih=this.nr=this.group=!1;this.rn=null;d[1]&&(this.Qk=d[1][1].toLowerCase(),
this.group=!0,this.nr=!!d[1][0],this.rn=[],this.Ih=this.nr,this.b.Di.push(this),this.b.Vi[this.Qk]=this);this.Fd=d[2];this.ya=d[4];this.group||(this.b.Gu[this.ya.toString()]=this);var h=d[5];a=0;for(b=h.length;a<b;a++){var c=new fc(this,h[a]);c.index=a;this.Rb.push(c);this.yu(c.type)}h=d[6];a=0;for(b=h.length;a<b;a++)c=new gc(this,h[a]),c.index=a,this.Nd.push(c);if(8===d.length)for(d=d[7],a=0,b=d.length;a<b;a++)this.sheet.Nv(d[a],this,this.ae);this.no=!1;this.Rb.length&&(this.no=null==this.Rb[0].type&&
this.Rb[0].nc==M.prototype.j.ut)}function e(a,b){var d,h,c;if(a&&(-1===b.indexOf(a)&&b.push(a),a.qc))for(d=0,h=a.dd.length;d<h;d++)c=a.dd[d],a!==c&&-1===b.indexOf(c)&&b.push(c)}function a(a,b){this.ud=a;this.sheet=a.sheet;this.b=a.b;this.ua=[];this.ub=[];this.V={};this.index=-1;this.kk=!1;this.nc=this.b.qg(b[1]);this.trigger=0<b[3];this.mv=2===b[3];this.jf=b[4];this.Yi=b[5];this.AE=b[6];this.ya=b[7];this.b.Fg[this.ya.toString()]=this;-1===b[0]?(this.type=null,this.Nb=this.Fs,this.qh=null,this.le=
-1):(this.type=this.b.P[b[0]],this.Nb=this.AE?this.KF:this.Es,b[2]?(this.qh=this.type.Xn(b[2]),this.le=this.type.Wq(b[2])):(this.qh=null,this.le=-1),this.ud.parent&&this.ud.parent.np());this.mv&&(this.Nb=this.LF);if(10===b.length){var d,h,c=b[9];d=0;for(h=c.length;d<h;d++){var e=new hc(this,c[d]);this.ua.push(e)}this.ub.length=c.length}}function b(a,b){this.ud=a;this.sheet=a.sheet;this.b=a.b;this.ua=[];this.ub=[];this.V={};this.index=-1;this.kk=!1;this.nc=this.b.qg(b[1]);-1===b[0]?(this.type=null,
this.Nb=this.Fs,this.qh=null,this.le=-1):(this.type=this.b.P[b[0]],this.Nb=this.Es,b[2]?(this.qh=this.type.Xn(b[2]),this.le=this.type.Wq(b[2])):(this.qh=null,this.le=-1));this.ya=b[3];this.b.vg[this.ya.toString()]=this;if(6===b.length){var d,h,c=b[5];d=0;for(h=c.length;d<h;d++){var e=new hc(this,c[d]);this.ua.push(e)}this.ub.length=c.length}}function c(){F++;v.length===F&&v.push(new ic);return v[F]}function d(a,b){this.Wd=a;this.ud=a.ud;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.Ze=null;this.fg=
0;this.get=null;this.Tu=0;this.Kb=null;this.key=0;this.object=null;this.index=0;this.xm=this.ri=this.xm=this.ri=this.qv=this.Bh=this.ym=null;this.fe=!1;var d,h,c;switch(b[0]){case 0:case 7:this.Ze=new jc(this,b[1]);this.fg=0;this.get=this.VD;break;case 1:this.Ze=new jc(this,b[1]);this.fg=0;this.get=this.WD;break;case 5:this.Ze=new jc(this,b[1]);this.fg=0;this.get=this.$D;break;case 3:case 8:this.Tu=b[1];this.get=this.TD;break;case 6:this.Kb=this.b.pj[b[1]];this.get=this.aE;break;case 9:this.key=b[1];
this.get=this.ZD;break;case 4:this.object=this.b.P[b[1]];this.get=this.bE;this.ud.yu(this.object);this.Wd instanceof gc?this.ud.np():this.ud.parent&&this.ud.parent.np();break;case 10:this.index=b[1];a.type&&a.type.U?(this.get=this.XD,this.fe=!0):this.get=this.YD;break;case 11:this.ym=b[1];this.Bh=null;this.get=this.UD;break;case 2:case 12:this.qv=b[1];this.get=this.SD;break;case 13:for(this.get=this.cE,this.ri=[],this.xm=[],d=1,h=b.length;d<h;d++)c=new hc(this.Wd,b[d]),this.ri.push(c),this.xm.push(0)}}
function k(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Pa=[];this.name=d[1];this.Ip=d[2];this.mr=d[3];this.fl=!!d[4];this.ko=!!d[5];this.ya=d[6];this.b.Vj[this.ya.toString()]=this;this.data=this.mr;this.parent?(this.ci=this.fl||this.ko?-1:this.b.WF++,this.b.QB.push(this)):(this.ci=-1,this.b.PB.push(this))}function u(a,b,d){this.sheet=a;this.parent=b;this.b=a.b;this.Pa=[];this.Vk=null;this.iE=d[1];this.sd=!0}function h(){this.by=[];this.reset(null)}var l=[];m.prototype.toString=function(){return this.name};
m.prototype.Nv=function(a,b,d){switch(a[0]){case 0:a=new kc(this,b,a);if(a.Fd)for(d.push(a),d=0,b=a.Rb.length;d<b;d++)a.Rb[d].trigger&&this.Ov(a,d);else a.$v()?this.Ov(a,0):d.push(a);break;case 1:a=new bc(this,b,a);d.push(a);break;case 2:a=new lc(this,b,a),d.push(a)}};m.prototype.Eb=function(){var a,b;a=0;for(b=this.Mg.length;a<b;a++)this.Mg[a].Eb(a<b-1&&this.Mg[a+1].no)};m.prototype.ht=function(){J(this.Dq);J(this.kq);this.xu(this);J(this.kq)};m.prototype.xu=function(a){var b,d,h,c,e=a.Dq,l=a.kq,
k=this.Lv.ee();b=0;for(d=k.length;b<d;++b)h=k[b],c=h.Vk,!h.sd||a===c||-1<l.indexOf(c)||(l.push(c),c.xu(a),e.push(c))};m.prototype.Nb=function(a){this.b.zH||(this.kr=!0,a||(this.b.xr=!0));var b,d;b=0;for(d=this.Mg.length;b<d;b++){var h=this.Mg[b];h.Nb();this.b.wq(h.Pa);this.b.Pg&&this.b.Ac()}a||(this.b.xr=!1)};m.prototype.Ov=function(a,b){a.Fd||this.b.Dp.push(a);var d,h,c=a.Rb[b],e;c.type?e=c.type.name:e="system";var l=(d=c.mv)?this.nv:this.oy;l[e]||(l[e]=[]);e=l[e];l=c.nc;if(d){if(c.ua.length&&(c=
c.ua[0],1===c.type&&2===c.Ze.type)){c=c.Ze.value.toLowerCase();d=0;for(h=e.length;d<h;d++)if(e[d].method==l){d=e[d].Ak;d[c]?d[c].push([a,b]):d[c]=[[a,b]];return}d={};d[c]=[[a,b]];e.push({method:l,Ak:d})}}else{d=0;for(h=e.length;d<h;d++)if(e[d].method==l){e[d].Ak.push([a,b]);return}U&&l===U.prototype.j.nh?e.unshift({method:l,Ak:[[a,b]]}):e.push({method:l,Ak:[[a,b]]})}};Rb=m;g.prototype.jr=function(){return this.ta?this.type.n.length:this.n.length};g.prototype.Kc=function(){return this.ta?this.type.n:
this.n};g.prototype.Rl=function(a){a&&(a.b.sb().Bb.Fd?(this.ta&&(J(this.n),Ga(this.wa,a.type.n),this.ta=!1),a=this.wa.indexOf(a),-1!==a&&(this.n.push(this.wa[a]),this.wa.splice(a,1))):(this.ta=!1,J(this.n),this.n[0]=a))};yb=g;window._c2hh_="AD2A9958E39EA2E259E67C30FB5D2A001E3168C0";q.prototype.Eb=function(a){var b,d=this.parent;if(this.group)for(this.zp=!0;d;){if(!d.group){this.zp=!1;break}d=d.parent}this.$s=!this.$v()&&(!this.parent||this.parent.group&&this.parent.zp);this.Jv=!!a;this.hh=this.Pa.slice(0);
for(d=this.parent;d;){a=0;for(b=d.Pa.length;a<b;a++)this.NB(d.Pa[a]);d=d.parent}this.Pa=n(this.Pa);this.hh=n(this.hh);a=0;for(b=this.Rb.length;a<b;a++)this.Rb[a].Eb();a=0;for(b=this.Nd.length;a<b;a++)this.Nd[a].Eb();a=0;for(b=this.ae.length;a<b;a++)this.ae[a].Eb(a<b-1&&this.ae[a+1].no)};q.prototype.lp=function(a){if(this.Ih!==!!a){this.Ih=!!a;var b;a=0;for(b=this.rn.length;a<b;++a)this.rn[a].vy();0<b&&this.b.Da.Ah&&this.b.Da.Ah.ht()}};q.prototype.yu=function(a){e(a,this.Pa)};q.prototype.NB=function(a){e(a,
this.hh)};q.prototype.np=function(){this.Ns=!0;this.parent&&this.parent.np()};q.prototype.$v=function(){return this.Rb.length?this.Rb[0].trigger:!1};q.prototype.Nb=function(){var a,b,d=!1,h=this.b,c=this.b.sb();c.Bb=this;var e=this.Rb;this.no||(c.Kq=!1);if(this.Fd){0===e.length&&(d=!0);c.Gb=0;for(a=e.length;c.Gb<a;c.Gb++)b=e[c.Gb],b.trigger||(b=b.Nb())&&(d=!0);(c.Vh=d)&&this.cp()}else{c.Gb=0;for(a=e.length;c.Gb<a;c.Gb++)if(b=e[c.Gb].Nb(),!b){c.Vh=!1;this.$s&&h.Pg&&h.Ac();return}c.Vh=!0;this.cp()}this.OC(c)};
q.prototype.OC=function(a){a.Vh&&this.Jv&&(a.Kq=!0);this.$s&&this.b.Pg&&this.b.Ac()};q.prototype.IF=function(a){this.b.sb().Bb=this;this.Rb[a].Nb()&&(this.cp(),this.b.sb().Vh=!0)};q.prototype.cp=function(){var a=this.b.sb(),b;a.Rc=0;for(b=this.Nd.length;a.Rc<b;a.Rc++)if(this.Nd[a.Rc].Nb())return;this.Ex()};q.prototype.EF=function(){var a=this.b.sb(),b;for(b=this.Nd.length;a.Rc<b;a.Rc++)if(this.Nd[a.Rc].Nb())return;this.Ex()};q.prototype.Ex=function(){if(this.ae.length){var a,b,d,h,c=this.ae.length-
1;this.b.Uo(this);if(this.Ns)for(a=0,b=this.ae.length;a<b;a++)d=this.ae[a],(h=!this.zp||!this.group&&a<c)&&this.b.Dj(d.Pa),d.Nb(),h?this.b.Zf(d.Pa):this.b.wq(d.Pa);else for(a=0,b=this.ae.length;a<b;a++)this.ae[a].Nb();this.b.Qo()}};q.prototype.JF=function(){var a=this.b.sb();a.Bb=this;var b=!1,d;a.Gb=0;for(d=this.Rb.length;a.Gb<d;a.Gb++)if(this.Rb[a.Gb].Nb())b=!0;else if(!this.Fd)return!1;return this.Fd?b:!0};q.prototype.Zl=function(){this.b.Ch++;var a=this.b.sb().Gb,b=this.b.Uo(this);if(!this.Fd)for(b.Gb=
a+1,a=this.Rb.length;b.Gb<a;b.Gb++)if(!this.Rb[b.Gb].Nb()){this.b.Qo();return}this.cp();this.b.Qo()};q.prototype.pE=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Rb[b].type===a.type)return!1;return!0};kc=q;a.prototype.Eb=function(){var a,b,d;a=0;for(b=this.ua.length;a<b;a++)d=this.ua[a],d.Eb(),d.fe&&(this.kk=!0)};a.prototype.LF=function(){return!0};a.prototype.Fs=function(){var a,b;a=0;for(b=this.ua.length;a<b;a++)this.ub[a]=this.ua[a].get();return bb(this.nc.apply(this.b.sf,
this.ub),this.Yi)};a.prototype.KF=function(){var a,b;a=0;for(b=this.ua.length;a<b;a++)this.ub[a]=this.ua[a].get();a=this.nc.apply(this.qh?this.qh:this.type,this.ub);this.type.td();return a};a.prototype.Es=function(){var a,b,d,h,c,e,l,k,g=this.type,f=g.da(),m=this.ud.Fd&&!this.trigger;b=0;var v=g.qc,q=g.U,n=g.$e,p=this.le,u=-1<p,F=this.kk,O=this.ua,x=this.ub,B=this.Yi,R=this.nc,I;if(F)for(b=0,c=O.length;b<c;++b)e=O[b],e.fe||(x[b]=e.get(0));else for(b=0,c=O.length;b<c;++b)x[b]=O[b].get(0);if(f.ta){J(f.n);
J(f.wa);I=g.n;a=0;for(h=I.length;a<h;++a){k=I[a];if(F)for(b=0,c=O.length;b<c;++b)e=O[b],e.fe&&(x[b]=e.get(a));u?(b=0,q&&(b=k.type.Pi[n]),b=R.apply(k.Y[p+b],x)):b=R.apply(k,x);(l=bb(b,B))?f.n.push(k):m&&f.wa.push(k)}g.finish&&g.finish(!0);f.ta=!1;g.td();return f.jr()}d=0;I=(l=m&&!this.ud.pE(this))?f.wa:f.n;var H=!1;a=0;for(h=I.length;a<h;++a){k=I[a];if(F)for(b=0,c=O.length;b<c;++b)e=O[b],e.fe&&(x[b]=e.get(a));u?(b=0,q&&(b=k.type.Pi[n]),b=R.apply(k.Y[p+b],x)):b=R.apply(k,x);if(bb(b,B))if(H=!0,l){if(f.n.push(k),
v)for(b=0,c=k.siblings.length;b<c;b++)e=k.siblings[b],e.type.da().n.push(e)}else{I[d]=k;if(v)for(b=0,c=k.siblings.length;b<c;b++)e=k.siblings[b],e.type.da().n[d]=e;d++}else if(l){I[d]=k;if(v)for(b=0,c=k.siblings.length;b<c;b++)e=k.siblings[b],e.type.da().wa[d]=e;d++}else if(m&&(f.wa.push(k),v))for(b=0,c=k.siblings.length;b<c;b++)e=k.siblings[b],e.type.da().wa.push(e)}Fa(I,d);if(v)for(q=g.dd,a=0,h=q.length;a<h;a++)k=q[a].da(),l?Fa(k.wa,d):Fa(k.n,d);d=H;if(l&&!H)for(a=0,h=f.n.length;a<h;a++){k=f.n[a];
if(F)for(b=0,c=O.length;b<c;b++)e=O[b],e.fe&&(x[b]=e.get(a));b=u?R.apply(k.Y[p],x):R.apply(k,x);if(bb(b,B)){H=!0;break}}g.finish&&g.finish(d||m);return m?H:f.jr()};fc=a;b.prototype.Eb=function(){var a,b,d;a=0;for(b=this.ua.length;a<b;a++)d=this.ua[a],d.Eb(),d.fe&&(this.kk=!0)};b.prototype.Fs=function(){var a=this.b,b,d,h=this.ua,c=this.ub;b=0;for(d=h.length;b<d;++b)c[b]=h[b].get();return this.nc.apply(a.sf,c)};b.prototype.Es=function(){var a=this.type,b=this.le,d=a.$e,h=this.kk,c=this.ua,e=this.ub,
l=this.nc,k=a.da().Kc(),a=a.U,g=-1<b,f,m,v,q,n,p;if(h)for(m=0,q=c.length;m<q;++m)n=c[m],n.fe||(e[m]=n.get(0));else for(m=0,q=c.length;m<q;++m)e[m]=c[m].get(0);f=0;for(v=k.length;f<v;++f){p=k[f];if(h)for(m=0,q=c.length;m<q;++m)n=c[m],n.fe&&(e[m]=n.get(f));g?(m=0,a&&(m=p.type.Pi[d]),l.apply(p.Y[b+m],e)):l.apply(p,e)}return!1};gc=b;var v=[],F=-1;d.prototype.Eb=function(){var a,b;if(11===this.type)this.Bh=this.b.Av(this.ym,this.ud.parent);else if(13===this.type)for(a=0,b=this.ri.length;a<b;a++)this.ri[a].Eb();
this.Ze&&this.Ze.Eb()};d.prototype.JE=function(a){this.fe||!a||a.X.rp||(this.fe=!0)};d.prototype.Ox=function(){this.fe=!0};d.prototype.VD=function(a){this.fg=a||0;a=c();this.Ze.get(a);F--;return a.data};d.prototype.WD=function(a){this.fg=a||0;a=c();this.Ze.get(a);F--;return na(a.data)?a.data:""};d.prototype.bE=function(){return this.object};d.prototype.TD=function(){return this.Tu};d.prototype.$D=function(a){this.fg=a||0;a=c();this.Ze.get(a);F--;return a.ec()?this.b.Jf(a.data):this.b.Lk(a.data)};
d.prototype.aE=function(){return this.Kb};d.prototype.ZD=function(){return this.key};d.prototype.YD=function(){return this.index};d.prototype.XD=function(a){a=a||0;var b=this.Wd.type,d=null,d=b.da(),h=d.Kc();if(h.length)d=h[a%h.length].type;else if(d.wa.length)d=d.wa[a%d.wa.length].type;else if(b.n.length)d=b.n[a%b.n.length].type;else return 0;return this.index+d.Dk[b.$e]};d.prototype.UD=function(){return this.Bh};d.prototype.SD=function(){return this.qv};d.prototype.cE=function(){var a,b;a=0;for(b=
this.ri.length;a<b;a++)this.xm[a]=this.ri[a].get();return this.xm};hc=d;k.prototype.Eb=function(){this.Pa=n(this.Pa)};k.prototype.pi=function(a){var b=this.b.xv();this.parent&&!this.fl&&b?(this.ci>=b.length&&(b.length=this.ci+1),b[this.ci]=a):this.data=a};k.prototype.Ok=function(){var a=this.b.xv();return!this.parent||this.fl||!a||this.ko?this.data:this.ci>=a.length||"undefined"===typeof a[this.ci]?this.mr:a[this.ci]};k.prototype.Nb=function(){!this.parent||this.fl||this.ko||this.pi(this.mr)};bc=
k;u.prototype.toString=function(){return"include:"+this.Vk.toString()};u.prototype.Eb=function(){this.Vk=this.b.Nq[this.iE];this.sheet.Lv.add(this);this.Pa=n(this.Pa);for(var a=this.parent;a;)a.group&&a.rn.push(this),a=a.parent;this.vy()};u.prototype.Nb=function(){this.parent&&this.b.Vl(this.b.P);this.Vk.kr||this.Vk.Nb(!0);this.parent&&this.b.Zf(this.b.P)};u.prototype.vy=function(){for(var a=this.parent;a;){if(a.group&&!a.Ih){this.sd=!1;return}a=a.parent}this.sd=!0};lc=u;h.prototype.reset=function(a){this.Bb=
a;this.Rc=this.Gb=0;J(this.by);this.Kq=this.Vh=!1};h.prototype.Wv=function(){return this.Bb.Ns?!0:this.Gb<this.Bb.Rb.length-1?!!this.Bb.Pa.length:!1};ac=h})();
(function(){function f(e,a){this.Wd=e;this.b=e.b;this.type=a[0];this.get=[this.fD,this.bD,this.oD,this.rD,this.RC,this.pD,this.jD,this.ZC,this.iD,this.nD,this.SC,this.mD,this.$C,this.kD,this.gD,this.hD,this.cD,this.dD,this.YC,this.qD,this.lD,this.eD,this.XC,this.aD][this.type];var b=null;this.Uf=this.ua=this.ub=this.nc=this.wp=this.second=this.first=this.value=null;this.le=-1;this.ue=null;this.By=-1;this.Bh=this.ym=null;this.Hj=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new jc(e,a[1]);break;case 18:this.first=new jc(e,a[1]);this.second=new jc(e,a[2]);this.wp=new jc(e,a[3]);break;case 19:this.nc=this.b.qg(a[1]);this.nc!==M.prototype.B.random&&this.nc!==M.prototype.B.Pu||this.Wd.Ox();this.ub=[];this.ua=[];3===a.length?(b=a[2],this.ub.length=b.length+1):this.ub.length=1;break;case 20:this.Uf=this.b.P[a[1]];this.le=-1;this.nc=this.b.qg(a[2]);this.Hj=a[3];yc&&this.nc===yc.prototype.B.Py&&this.Wd.Ox();a[4]?this.ue=new jc(e,a[4]):this.ue=null;this.ub=[];this.ua=[];6===
a.length?(b=a[5],this.ub.length=b.length+1):this.ub.length=1;break;case 21:this.Uf=this.b.P[a[1]];this.Hj=a[2];a[3]?this.ue=new jc(e,a[3]):this.ue=null;this.By=a[4];break;case 22:this.Uf=this.b.P[a[1]];this.Uf.Xn(a[2]);this.le=this.Uf.Wq(a[2]);this.nc=this.b.qg(a[3]);this.Hj=a[4];a[5]?this.ue=new jc(e,a[5]):this.ue=null;this.ub=[];this.ua=[];7===a.length?(b=a[6],this.ub.length=b.length+1):this.ub.length=1;break;case 23:this.ym=a[1],this.Bh=null}this.Wd.JE(this.Uf);4<=this.type&&17>=this.type&&(this.first=
new jc(e,a[1]),this.second=new jc(e,a[2]));if(b){var c,d;c=0;for(d=b.length;c<d;c++)this.ua.push(new jc(e,b[c]))}}function p(){++q;g.length===q&&g.push(new ic);return g[q]}function n(e,a,b){var c,d;c=0;for(d=e.length;c<d;++c)e[c].get(b),a[c+1]=b.data}function m(e,a){this.type=e||mc.Ci;this.data=a||0;this.hi=null;this.type==mc.Ci&&(this.data=Math.floor(this.data))}f.prototype.Eb=function(){23===this.type&&(this.Bh=this.Wd.b.Av(this.ym,this.Wd.ud.parent));this.first&&this.first.Eb();this.second&&this.second.Eb();
this.wp&&this.wp.Eb();this.ue&&this.ue.Eb();if(this.ua){var e,a;e=0;for(a=this.ua.length;e<a;e++)this.ua[e].Eb()}};var g=[],q=-1;f.prototype.qD=function(e){var a=this.ua,b=this.ub;b[0]=e;e=p();n(a,b,e);--q;this.nc.apply(this.b.sf,b)};f.prototype.lD=function(e){var a=this.Uf,b=this.ub,c=this.ua,d=this.ue,k=this.nc,g=this.Wd.fg,h=a.da(),l=h.Kc();if(!l.length)if(h.wa.length)l=h.wa;else{this.Hj?e.R(""):e.ka(0);return}b[0]=e;e.hi=a;e=p();n(c,b,e);d&&(d.get(e),e.ec()&&(g=e.data,l=a.n));--q;a=l.length;if(g>=
a||g<=-a)g%=a;0>g&&(g+=a);k.apply(l[g],b)};f.prototype.XC=function(e){var a=this.Uf,b=this.ub,c=this.ua,d=this.ue,k=this.le,g=this.nc,h=this.Wd.fg,l=a.da(),f=l.Kc();if(!f.length)if(l.wa.length)f=l.wa;else{this.Hj?e.R(""):e.ka(0);return}b[0]=e;e.hi=a;e=p();n(c,b,e);d&&(d.get(e),e.ec()&&(h=e.data,f=a.n));--q;c=f.length;if(h>=c||h<=-c)h%=c;0>h&&(h+=c);h=f[h];f=0;a.U&&(f=h.type.Pi[a.$e]);g.apply(h.Y[k+f],b)};f.prototype.eD=function(e){var a=this.ue,b=this.Uf,c=this.By,d=this.Wd.fg,k=b.da(),g=k.Kc();if(!g.length)if(k.wa.length)g=
k.wa;else{this.Hj?e.R(""):e.ka(0);return}if(a){k=p();a.get(k);if(k.ec()){d=k.data;g=b.n;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=b.$q(d);b=d.Va[c];na(b)?e.R(b):e.S(b);--q;return}--q}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;b.U&&(g=d.type.Dk[b.$e]);b=d.Va[c+g];na(b)?e.R(b):e.S(b)};f.prototype.fD=function(e){e.type=mc.Ci;e.data=this.value};f.prototype.bD=function(e){e.type=mc.Bi;e.data=this.value};f.prototype.oD=function(e){e.type=mc.String;e.data=this.value};f.prototype.rD=function(e){this.first.get(e);
e.ec()&&(e.data=-e.data)};f.prototype.RC=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data+=a.data,a.ej()&&e.rj());--q};f.prototype.pD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data-=a.data,a.ej()&&e.rj());--q};f.prototype.jD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data*=a.data,a.ej()&&e.rj());--q};f.prototype.ZC=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data/=
a.data,e.rj());--q};f.prototype.iD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data%=a.data,a.ej()&&e.rj());--q};f.prototype.nD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data=Math.pow(e.data,a.data),a.ej()&&e.rj());--q};f.prototype.SC=function(e){this.first.get(e);var a=p();this.second.get(a);a.hj()||e.hj()?this.UC(e,a):this.TC(e,a);--q};f.prototype.UC=function(e,a){e.hj()&&a.hj()?this.WC(e,a):this.VC(e,a)};f.prototype.WC=function(e,
a){e.data+=a.data};f.prototype.VC=function(e,a){e.hj()?e.data+=(Math.round(1E10*a.data)/1E10).toString():e.R(e.data.toString()+a.data)};f.prototype.TC=function(e,a){e.ka(e.data&&a.data?1:0)};f.prototype.mD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ec()&&a.ec()&&(e.data||a.data?e.ka(1):e.ka(0));--q};f.prototype.YC=function(e){this.first.get(e);e.data?this.second.get(e):this.wp.get(e)};f.prototype.$C=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data===a.data?
1:0);--q};f.prototype.kD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data!==a.data?1:0);--q};f.prototype.gD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data<a.data?1:0);--q};f.prototype.hD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data<=a.data?1:0);--q};f.prototype.cD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data>a.data?1:0);--q};f.prototype.dD=function(e){this.first.get(e);var a=p();this.second.get(a);e.ka(e.data>=
a.data?1:0);--q};f.prototype.aD=function(e){var a=this.Bh.Ok();ma(a)?e.S(a):e.R(a)};jc=f;m.prototype.ej=function(){return this.type===mc.Bi};m.prototype.ec=function(){return this.type===mc.Ci||this.type===mc.Bi};m.prototype.hj=function(){return this.type===mc.String};m.prototype.rj=function(){this.ej()||(this.hj()&&(this.data=parseFloat(this.data)),this.type=mc.Bi)};m.prototype.ka=function(e){this.type=mc.Ci;this.data=Math.floor(e)};m.prototype.S=function(e){this.type=mc.Bi;this.data=e};m.prototype.R=
function(e){this.type=mc.String;this.data=e};m.prototype.Px=function(e){ma(e)?(this.type=mc.Bi,this.data=e):na(e)?(this.type=mc.String,this.data=e.toString()):(this.type=mc.Ci,this.data=0)};ic=m;mc={Ci:0,Bi:1,String:2}})();function M(f){this.b=f;this.bd=[]}
M.prototype.Ma=function(){var f={},p,n,m,g,q,e,a,b;f.waits=[];var c=f.waits,d;p=0;for(n=this.bd.length;p<n;p++){e=this.bd[p];d={t:e.time,st:e.Xx,s:e.Ms,ev:e.Ni.ya,sm:[],sols:{}};e.Ni.Nd[e.Rc]&&(d.act=e.Ni.Nd[e.Rc].ya);m=0;for(g=e.Pa.length;m<g;m++)d.sm.push(e.Pa[m].ya);for(q in e.Mc)if(e.Mc.hasOwnProperty(q)){a=this.b.P[parseInt(q,10)];b={sa:e.Mc[q].dp,insts:[]};m=0;for(g=e.Mc[q].Lf.length;m<g;m++)b.insts.push(e.Mc[q].Lf[m].uid);d.sols[a.ya.toString()]=b}c.push(d)}return f};
M.prototype.Sa=function(f){f=f.waits;var p,n,m,g,q,e,a,b,c,d,k;J(this.bd);p=0;for(n=f.length;p<n;p++)if(e=f[p],b=this.b.Gu[e.ev.toString()]){c=-1;m=0;for(g=b.Nd.length;m<g;m++)if(b.Nd[m].ya===e.act){c=m;break}if(-1!==c){a={Mc:{},Pa:[],Fq:!1};a.time=e.t;a.Xx=e.st||"";a.Ms=!!e.s;a.Ni=b;a.Rc=c;m=0;for(g=e.sm.length;m<g;m++)(b=this.b.Ti(e.sm[m]))&&a.Pa.push(b);for(q in e.sols)if(e.sols.hasOwnProperty(q)&&(b=this.b.Ti(parseInt(q,10)))){c=e.sols[q];d={dp:c.sa,Lf:[]};m=0;for(g=c.insts.length;m<g;m++)(k=
this.b.Og(c.insts[m]))&&d.Lf.push(k);a.Mc[b.index.toString()]=d}this.bd.push(a)}}};
(function(){function f(){}function p(){}function n(){}var m=M.prototype;f.prototype.hz=function(){return!0};f.prototype.Lt=function(){return!0};f.prototype.Kt=function(){return!0};f.prototype.Sy=function(a,c,d){return nc(a,c,d)};f.prototype.Nz=function(a){return a?a.visible:!1};f.prototype.MA=function(a){var c=this.b.sb(),d=c.Bb,e=c.Wv(),c=this.b.xx();if(e)for(e=0;e<a&&!c.Pb;e++)this.b.Dj(d.Pa),c.index=e,d.Zl(),this.b.Zf(d.Pa);else for(e=0;e<a&&!c.Pb;e++)c.index=e,d.Zl();this.b.mx();return!1};var g=
[],q=-1;f.prototype.jz=function(a){var c=a.da();q++;g.length===q&&g.push([]);var d=g[q];Ga(d,c.Kc());var e=this.b.sb(),f=e.Bb,h=e.Wv(),e=this.b.xx(),l,m,n,r,p,D,w=a.qc;if(h)for(h=0,l=d.length;h<l&&!e.Pb;h++){this.b.Dj(f.Pa);r=d[h];c=a.da();c.ta=!1;J(c.n);c.n[0]=r;if(w)for(m=0,n=r.siblings.length;m<n;m++)p=r.siblings[m],D=p.type.da(),D.ta=!1,J(D.n),D.n[0]=p;e.index=h;f.Zl();this.b.Zf(f.Pa)}else for(c.ta=!1,J(c.n),h=0,l=d.length;h<l&&!e.Pb;h++){r=d[h];c.n[0]=r;if(w)for(m=0,n=r.siblings.length;m<n;m++)p=
r.siblings[m],D=p.type.da(),D.ta=!1,J(D.n),D.n[0]=p;e.index=h;f.Zl()}J(d);this.b.mx();q--;return!1};f.prototype.GA=function(a,c,d,e){var f,h,l,m;if(a){q++;g.length===q&&g.push([]);var n=g[q],r=a.da();Ga(n,r.Kc());r.ta&&J(r.wa);var p=this.b.Eh();l=f=0;for(h=n.length;f<h;f++)m=n[f],n[l]=m,c=p.ua[1].get(f),e=p.ua[3].get(f),nc(c,d,e)?l++:r.wa.push(m);Fa(n,l);r.ta=!1;Ga(r.n,n);J(n);q--;a.td();return!!r.n.length}};f.prototype.EB=function(){var a=this.b.Eh().V;"undefined"===typeof a.TriggerOnce_lastTick&&
(a.TriggerOnce_lastTick=-1);var c=a.TriggerOnce_lastTick,d=this.b.Id;a.TriggerOnce_lastTick=d;return this.b.Kr||c!==d-1};f.prototype.gz=function(a){var c=this.b.Eh(),d=c.V.Every_lastTime||0,e=this.b.Vb.ea;"undefined"===typeof c.V.Every_seconds&&(c.V.Every_seconds=a);var g=c.V.Every_seconds;if(e>=d+g)return c.V.Every_lastTime=d+g,e>=c.V.Every_lastTime+.04&&(c.V.Every_lastTime=e),c.V.Every_seconds=a,!0;e<d-.1&&(c.V.Every_lastTime=e);return!1};f.prototype.$y=function(a,c,d){return nc(a.Ok(),c,d)};f.prototype.Az=
function(a){return(a=this.b.Vi[a.toLowerCase()])&&a.Ih};f.prototype.ut=function(){var a=this.b.sb();return a.Kq?!1:!a.Vh};f.prototype.Mt=function(){return!0};f.prototype.dA=function(){return!0};f.prototype.Yp=function(){return!0};f.prototype.Yt=function(){return!0};f.prototype.rA=function(){return!0};f.prototype.Om=function(){return!0};f.prototype.Ly=function(a,c,d){return Ta(Ma(a),Ma(d))<=Ma(c)};f.prototype.yz=function(a,c){return Xa(Ma(a),Ma(c))};f.prototype.vz=function(a,c,d){a=Ra(a);c=Ra(c);d=
Ra(d);return Xa(d,c)?Xa(a,c)&&!Xa(a,d):!(!Xa(a,c)&&Xa(a,d))};m.j=new f;p.prototype.mz=function(a){this.b.ij||this.b.sh||(this.b.sh=a)};p.prototype.cz=function(a,c,d,e){if(c&&a&&(c=this.b.tk(a,c,d,e))){this.b.Bd++;var g;this.b.trigger(Object.getPrototypeOf(a.X).j.sg,c);if(c.qc)for(d=0,e=c.siblings.length;d<e;d++)g=c.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.X).j.sg,g);this.b.Bd--;a=a.da();a.ta=!1;J(a.n);a.n[0]=c;if(c.qc)for(d=0,e=c.siblings.length;d<e;d++)g=c.siblings[d],a=g.type.da(),
a.ta=!1,J(a.n),a.n[0]=g}};p.prototype.cB=function(a,c){a&&a.visible!==c&&(a.visible=c,this.b.ca=!0)};p.prototype.bB=function(a,c){a&&(c=Ka(c/100,0,1),a.opacity!==c&&(a.opacity=c,this.b.ca=!0))};p.prototype.OA=function(a){if(a=a.Jk())this.b.Da.fp(a.x),this.b.Da.gp(a.y)};p.prototype.hB=function(a,c){0===a.Ip?ma(c)?a.pi(c):a.pi(parseFloat(c)):1===a.Ip&&a.pi(c.toString())};p.prototype.Ky=function(a,c){0===a.Ip?ma(c)?a.pi(a.Ok()+c):a.pi(a.Ok()+parseFloat(c)):1===a.Ip&&a.pi(a.Ok()+c.toString())};p.prototype.ZA=
function(a,c){var d=this.b.Vi[a.toLowerCase()];if(d)switch(c){case 0:d.lp(!1);break;case 1:d.lp(!0);break;case 2:d.lp(!d.Ih)}};p.prototype.gB=function(a){0>a&&(a=0);this.b.kh=a};var e=[],a=[];p.prototype.HB=function(b){if(!(0>b)){var c,d,k,g=this.b.sb(),h;e.length?h=e.pop():h={Mc:{},Pa:[]};h.Fq=!1;h.time=this.b.Vb.ea+b;h.Xx="";h.Ms=!1;h.Ni=g.Bb;h.Rc=g.Rc+1;b=0;for(c=this.b.P.length;b<c;b++)k=this.b.P[b],d=k.da(),d.ta&&-1===g.Bb.Pa.indexOf(k)||(h.Pa.push(k),k=void 0,a.length?k=a.pop():k={Lf:[]},k.dp=
!1,k.dp=d.ta,Ga(k.Lf,d.n),h.Mc[b.toString()]=k);this.bd.push(h);return!0}};p.prototype.aB=function(a,c){if(a){var d=za(c),e=Aa(c),g=Ba(c);if(a.Bc[0]!==d||a.Bc[1]!==e||a.Bc[2]!==g)a.Bc[0]=d,a.Bc[1]=e,a.Bc[2]=g,this.b.ca=!0}};p.prototype.nz=function(a){if(!this.b.ij&&!this.b.sh)for(var c in this.b.pj)if(this.b.pj.hasOwnProperty(c)&&ub(c,a)){this.b.sh=this.b.pj[c];break}};p.prototype.NA=function(a){this.b.ep=a};p.prototype.Uz=function(a){this.b.ll=a};m.A=new p;n.prototype["int"]=function(a,c){na(c)?
(a.ka(parseInt(c,10)),isNaN(a.data)&&(a.data=0)):a.ka(c)};n.prototype["float"]=function(a,c){na(c)?(a.S(parseFloat(c)),isNaN(a.data)&&(a.data=0)):a.S(c)};n.prototype.random=function(a,c,d){void 0===d?a.S(Math.random()*c):a.S(Math.random()*(d-c)+c)};n.prototype.sqrt=function(a,c){a.S(Math.sqrt(c))};n.prototype.abs=function(a,c){a.S(Math.abs(c))};n.prototype.round=function(a,c){a.ka(Math.round(c))};n.prototype.floor=function(a,c){a.ka(Math.floor(c))};n.prototype.ceil=function(a,c){a.ka(Math.ceil(c))};
n.prototype.sin=function(a,c){a.S(Math.sin(Ma(c)))};n.prototype.cos=function(a,c){a.S(Math.cos(Ma(c)))};n.prototype.tan=function(a,c){a.S(Math.tan(Ma(c)))};n.prototype.asin=function(a,c){a.S(Na(Math.asin(c)))};n.prototype.acos=function(a,c){a.S(Na(Math.acos(c)))};n.prototype.atan=function(a,c){a.S(Na(Math.atan(c)))};n.prototype.exp=function(a,c){a.S(Math.exp(c))};n.prototype.log10=function(a,c){a.S(Math.log(c)/Math.LN10)};n.prototype.max=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,
e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&c<g&&(c=g);a.S(c)};n.prototype.min=function(a){var c=arguments[1];"number"!==typeof c&&(c=0);var d,e,g;d=2;for(e=arguments.length;d<e;d++)g=arguments[d],"number"===typeof g&&c>g&&(c=g);a.S(c)};n.prototype.yh=function(a){a.S(this.b.yh)};n.prototype.kh=function(a){a.S(this.b.kh)};n.prototype.time=function(a){a.S(this.b.Vb.ea)};n.prototype.Id=function(a){a.ka(this.b.Id)};n.prototype.Eo=function(a){a.ka(this.b.Eo)};n.prototype.Un=
function(a){a.ka(this.b.Un)};n.prototype.EE=function(a,c){var d,e;if(this.b.wl.length)if(c){for(e=this.b.xl;0<=e;--e)if(d=this.b.wl[e],d.name===c){a.ka(d.index);return}a.ka(0)}else d=this.b.yv(),a.ka(d?d.index:-1);else a.ka(0)};n.prototype.u=function(a,c,d,e,g){a.S(Na(Sa(c,d,e,g)))};n.prototype.NE=function(a){a.R("\n")};n.prototype.find=function(a,c,d){na(c)&&na(d)?a.ka(c.search(new RegExp(lb(d),"i"))):a.ka(-1)};n.prototype.left=function(a,c,d){a.R(na(c)?c.substr(0,d):"")};n.prototype.right=function(a,
c,d){a.R(na(c)?c.substr(c.length-d):"")};n.prototype.cG=function(a,c,d,e){na(c)&&na(e)?(c=c.split(e),d=A(d),0>d||d>=c.length?a.R(""):a.R(c[d])):a.R("")};n.prototype.replace=function(a,c,d,e){na(c)&&na(d)&&na(e)?a.R(c.replace(new RegExp(lb(d),"gi"),e)):a.R(na(c)?c:"")};n.prototype.trim=function(a,c){a.R(na(c)?c.trim():"")};n.prototype.Pu=function(a){var c=A(Math.random()*(arguments.length-1));a.Px(arguments[c+1])};n.prototype.FF=function(a,c,d,e){a.ka(ya(c,d,e))};n.prototype.yq=function(a){a.S(this.b.yq/
1E3)};n.prototype.nl=function(a){a.S(this.b.nl)};m.B=new n;m.HF=function(){var b,c,d,g,f,h,l=this.b.sb();b=0;for(d=this.bd.length;b<d;b++){g=this.bd[b];if(-1===g.time){if(!g.Ms)continue}else if(g.time>this.b.Vb.ea)continue;l.Bb=g.Ni;l.Rc=g.Rc;l.Gb=0;for(c in g.Mc)g.Mc.hasOwnProperty(c)&&(f=this.b.P[parseInt(c,10)].da(),h=g.Mc[c],f.ta=h.dp,Ga(f.n,h.Lf),f=h,J(f.Lf),a.push(f));g.Ni.EF();this.b.wq(g.Pa);g.Fq=!0}c=b=0;for(d=this.bd.length;b<d;b++)g=this.bd[b],this.bd[c]=g,g.Fq?(fb(g.Mc),J(g.Pa),e.push(g)):
c++;Fa(this.bd,c)}})();
(function(){xb=function(f,n){var m=f[1],g=f[3],q=f[4],e=f[5],a=f[6],b=f[7],c=f[8];n.j||(n.j={});n.A||(n.A={});n.B||(n.B={});var d=n.j,k=n.A,u=n.B;g&&(d.az=function(a,b){return nc(this.x,a,b)},d.bz=function(a,b){return nc(this.y,a,b)},d.CG=function(){var a=this.r;this.fa();var b=this.ma;return!(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Ja||b.top>a.Ia)},d.DG=function(){this.fa();var a=this.ma,b=this.b.Da;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.NG=function(a,b,d){var c=this.da(),
e=c.Kc();if(!e.length)return!1;var g=e[0],k=g,f=Za(g.x,g.y,b,d),t,m,q;t=1;for(m=e.length;t<m;t++)if(g=e[t],q=Za(g.x,g.y,b,d),0===a&&q<f||1===a&&q>f)f=q,k=g;c.Rl(k);return!0},k.qu=function(a){this.x!==a&&(this.x=a,this.H())},k.Pm=function(a){this.y!==a&&(this.y=a,this.H())},k.$p=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.H()},k.YG=function(a,b){var d=a.ND(this);if(d){var c;d.Kk?(c=d.Kk(b,!0),d=d.Kk(b,!1)):(c=d.x,d=d.y);if(this.x!==c||this.y!==d)this.x=c,this.y=d,this.H()}},k.HG=
function(a){0!==a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.H())},k.GG=function(a,b){0!==b&&(this.x+=Math.cos(Ma(a))*b,this.y+=Math.sin(Ma(a))*b,this.H())},u.hk=function(a){a.S(this.x)},u.oh=function(a){a.S(this.y)},u.yh=function(a){a.S(this.b.Fh(this))});q&&(d.xG=function(a,b){return nc(this.width,a,b)},d.wG=function(a,b){return nc(this.height,a,b)},k.pu=function(a){this.width!==a&&(this.width=a,this.H())},k.$A=function(a){this.height!==a&&(this.height=a,this.H())},k.eB=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.H()},u.bH=function(a){a.S(this.width)},u.zG=function(a){a.S(this.height)},u.tG=function(a){this.fa();a.S(this.ma.left)},u.vG=function(a){this.fa();a.S(this.ma.top)},u.uG=function(a){this.fa();a.S(this.ma.right)},u.sG=function(a){this.fa();a.S(this.ma.bottom)});e&&(d.Ly=function(a,b){return Ta(this.u,Ma(b))<=Ma(a)},d.yz=function(a){return Xa(this.u,Ma(a))},d.vz=function(a,b){var d=Ra(a),c=Ra(b),e=Pa(this.u);return Xa(c,d)?Xa(e,d)&&
!Xa(e,c):!(!Xa(e,d)&&Xa(e,c))},k.SA=function(a){a=Ma(Oa(a));isNaN(a)||this.u===a||(this.u=a,this.H())},k.RG=function(a){0===a||isNaN(a)||(this.u+=Ma(a),this.u=Pa(this.u),this.H())},k.SG=function(a){0===a||isNaN(a)||(this.u-=Ma(a),this.u=Pa(this.u),this.H())},k.TG=function(a,b){var d=Wa(this.u,Ma(b),Ma(a));isNaN(d)||this.u===d||(this.u=d,this.H())},k.UG=function(a,b,d){a=Wa(this.u,Math.atan2(d-this.y,b-this.x),Ma(a));isNaN(a)||this.u===a||(this.u=a,this.H())},k.ZG=function(a,b){var d=Math.atan2(b-
this.y,a-this.x);isNaN(d)||this.u===d||(this.u=d,this.H())},u.rG=function(a){a.S(Qa(this.u))});m||(d.Uy=function(a,b,d){return nc(this.Va[a],b,d)},d.BG=function(a){return this.Va[a]},d.OG=function(a,b){var d=this.da(),c=d.Kc();if(!c.length)return!1;var e=c[0],g=e,k=e.Va[b],f,t,m;f=1;for(t=c.length;f<t;f++)if(e=c[f],m=e.Va[b],0===a&&m<k||1===a&&m>k)k=m,g=e;d.Rl(g);return!0},d.HA=function(a){var b,d,c,e,g;if(this.b.Eh().Yi){g=this.da();if(g.ta)for(g.ta=!1,J(g.n),J(g.wa),c=this.n,b=0,d=c.length;b<d;b++)e=
c[b],e.uid===a?g.wa.push(e):g.n.push(e);else{c=b=0;for(d=g.n.length;b<d;b++)e=g.n[b],g.n[c]=e,e.uid===a?g.wa.push(e):c++;Fa(g.n,c)}this.td();return!!g.n.length}e=this.b.Og(a);if(!e)return!1;g=this.da();if(!g.ta&&-1===g.n.indexOf(e))return!1;if(this.U)for(a=e.type.hb,b=0,d=a.length;b<d;b++){if(a[b]===this)return g.Rl(e),this.td(),!0}else if(e.type===this)return g.Rl(e),this.td(),!0;return!1},d.sg=function(){return!0},d.Et=function(){return!0},k.nu=function(a,b){var d=this.Va;ma(d[a])?d[a]=ma(b)?b:
parseFloat(b):na(d[a])&&(d[a]=na(b)?b:b.toString())},k.Iy=function(a,b){var d=this.Va;ma(d[a])?d[a]=ma(b)?d[a]+b:d[a]+parseFloat(b):na(d[a])&&(d[a]=na(b)?d[a]+b:d[a]+b.toString())},k.$G=function(a,b){var d=this.Va;ma(d[a])&&(d[a]=ma(b)?d[a]-b:d[a]-parseFloat(b))},k.VG=function(a,b){this.Va[a]=b?1:0},k.aH=function(a){this.Va[a]=1-this.Va[a]},k.Sp=function(){this.b.Ld(this)},k.At||(k.At=function(a){var b,d;try{b=JSON.parse(a)}catch(c){return}this.b.so(this,b,!0);this.Od&&this.Od();if(this.Y)for(a=0,
b=this.Y.length;a<b;++a)d=this.Y[a],d.Od&&d.Od()}),u.yG=function(a){var b=a.hi.n.length,d,c,e;d=0;for(c=this.b.te.length;d<c;d++)e=this.b.te[d],a.hi.U?0<=e.type.hb.indexOf(a.hi)&&b++:e.type===a.hi&&b++;a.ka(b)},u.QG=function(a){a.ka(a.hi.da().Kc().length)},u.GB=function(a){a.ka(this.uid)},u.AG=function(a){a.ka(this.Pk())},u.Rp||(u.Rp=function(a){a.R(JSON.stringify(this.b.Gs(this,!0)))}));a&&(d.Lz=function(){return this.visible},k.Te=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ca=!0)},
d.Wy=function(a,b){return nc(rb(100*this.opacity),a,b)},k.ou=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ca=!0)},u.Opacity=function(a){a.S(rb(100*this.opacity))});b&&(d.Gz=function(a){return a?this.r===a:!1},d.PG=function(a){var b=this.da(),d=b.Kc();if(!d.length)return!1;var c=d[0],e=c,g,k;g=1;for(k=d.length;g<k;g++)if(c=d[g],0===a){if(c.r.index>e.r.index||c.r.index===e.r.index&&c.Td()>e.Td())e=c}else if(c.r.index<e.r.index||c.r.index===e.r.index&&c.Td()<e.Td())e=
c;b.Rl(e);return!0},k.KG=function(){var a=this.r,b=a.n;b.length&&b[b.length-1]===this||(a.Gj(this,!1),a.mk(this,!1),this.b.ca=!0)},k.IG=function(){var a=this.r,b=a.n;b.length&&b[0]===this||(a.Gj(this,!1),a.qF(this),this.b.ca=!0)},k.JG=function(a){a&&a!=this.r&&(this.r.Gj(this,!0),this.r=a,a.mk(this,!0),this.b.ca=!0)},k.dH=function(a,b){var d=0===a;if(b){var c=b.Jk(this);c&&c.uid!==this.uid&&(this.r.index!==c.r.index&&(this.r.Gj(this,!0),this.r=c.r,c.r.mk(this,!0)),this.r.LE(this,c,d),this.b.ca=!0)}},
u.FG=function(a){a.ka(this.r.Tw)},u.EG=function(a){a.R(this.r.name)},u.cH=function(a){a.ka(this.Td())});c&&(k.WG=function(a,b){if(this.b.F){var d=this.type.Zq(b);if(!(0>d)){var c=1===a;this.ug[d]!==c&&(this.ug[d]=c,this.Re(),this.b.ca=!0)}}},k.XG=function(a,b,d){if(this.b.F){var c=this.type.Zq(a);0>c||(a=this.type.na[c],c=this.pb[c],b=Math.floor(b),0>b||b>=c.length||(1===this.b.F.RD(a.Ob,b)&&(d/=100),c[b]!==d&&(c[b]=d,a.sd&&(this.b.ca=!0))))}})};Sb=function(){this.uq=this.oq=!0;this.type.Wm=!0;this.b.ca=
!0;var f,n,m=this.pq;f=0;for(n=m.length;f<n;++f)m[f](this);this.r.Kd&&this.fa()};Tb=function(f){f&&this.pq.push(f)};Vb=function(){if(this.oq){var f=this.ma,n=this.Zb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.oc*this.width,-this.pc*this.height);this.u?(f.offset(-this.x,-this.y),n.Rx(f,this.u),n.offset(this.x,this.y),n.Iu(f)):n.gh(f);f.normalize();this.oq=!1;this.iG()}};var f=new wa(0,0,0,0);Wb=function(){if(this.r.Kd){var p=this.r.xc,n=this.ma;f.set(p.Pc(n.left),p.Qc(n.top),
p.Pc(n.right),p.Qc(n.bottom));this.Xc.zk(f)||(this.Xc.right<this.Xc.left?p.update(this,null,f):p.update(this,this.Xc,f),this.Xc.Hi(f),this.r.Le=!0)}};Xb=function(){if(this.uq&&this.We){this.fa();var p=this.type.qn,n=this.ma;f.set(p.Pc(n.left),p.Qc(n.top),p.Pc(n.right),p.Qc(n.bottom));this.Gg.zk(f)||(this.Gg.right<this.Gg.left?p.update(this,null,f):p.update(this,this.Gg,f),this.Gg.Hi(f),this.uq=!1)}};Ub=function(f,n){return this.ma.ac(f,n)&&this.Zb.ac(f,n)?this.ti?this.$F(f,n):this.Ba&&!this.Ba.Sh()?
(this.Ba.Ag(this.width,this.height,this.u),this.Ba.ac(f-this.x,n-this.y)):!0:!1};Ob=function(){this.type.Fp();return this.Nh};Zb=function(){this.r.jt();return this.Se};$b=function(){J(this.Na);var f,n,m,g=!0;f=0;for(n=this.ug.length;f<n;f++)this.ug[f]&&(m=this.type.na[f],this.Na.push(m),m.He||(g=!1));this.Ay=!!this.Na.length;this.bg=g};Pb=function(){return"Inst"+this.wx};Ab=function(f){if(f&&f.qc&&f.type!=this){var n,m,g;n=0;for(m=f.siblings.length;n<m;n++)if(g=f.siblings[n],g.type==this)return g}f=
this.da().Kc();return f.length?f[0]:null};Bb=function(f){var n=this.da().Kc();return n.length?n[f.Pk()%n.length]:null};zb=function(){if(this.Mj&&!this.U){var f,n;f=0;for(n=this.n.length;f<n;f++)this.n[f].Nh=f;var m=f,g=this.b.te;f=0;for(n=g.length;f<n;++f)g[f].type===this&&(g[f].Nh=m++);this.Mj=!1}};Mb=function(f){if(f<this.n.length)return this.n[f];f-=this.n.length;var n=this.b.te,m,g;m=0;for(g=n.length;m<g;++m)if(n[m].type===this){if(0===f)return n[m];--f}return null};Cb=function(){return this.gg[this.Xe]};
Db=function(){this.Xe++;this.Xe===this.gg.length?this.gg.push(new yb(this)):(this.gg[this.Xe].ta=!0,J(this.gg[this.Xe].wa))};Eb=function(){this.Xe++;this.Xe===this.gg.length&&this.gg.push(new yb(this));var f=this.gg[this.Xe],n=this.gg[this.Xe-1];n.ta?f.ta=!0:(f.ta=!1,Ga(f.n,n.n));J(f.wa)};Fb=function(){this.Xe--};Gb=function(f){var n,m,g,q,e,a=0;if(!this.U)for(n=0,m=this.hb.length;n<m;n++)for(e=this.hb[n],g=0,q=e.jb.length;g<q;g++){if(f===e.jb[g].name)return this.V.lastBehIndex=a,e.jb[g];a++}n=0;
for(m=this.jb.length;n<m;n++){if(f===this.jb[n].name)return this.V.lastBehIndex=a,this.jb[n];a++}return null};Hb=function(f){return this.Xn(f)?this.V.lastBehIndex:-1};Kb=function(f){var n,m;n=0;for(m=this.na.length;n<m;n++)if(this.na[n].name===f)return n;return-1};Lb=function(){if(this.qc&&!this.U){var f,n,m,g,q,e,a;this.Fp();e=this.da();var b=e.ta,c=(f=this.b.sb())&&f.Bb&&f.Bb.Fd;f=0;for(n=this.dd.length;f<n;f++)if(q=this.dd[f],q!==this&&(q.Fp(),a=q.da(),a.ta=b,!b)){J(a.n);m=0;for(g=e.n.length;m<
g;++m)a.n[m]=q.$q(e.n[m].Nh);if(c)for(J(a.wa),m=0,g=e.wa.length;m<g;++m)a.wa[m]=q.$q(e.wa[m].Nh)}}};Nb=function(){return"Type"+this.ya};nc=function(f,n,m){if("undefined"===typeof f||"undefined"===typeof m)return!1;switch(n){case 0:return f===m;case 1:return f!==m;case 2:return f<m;case 3:return f<=m;case 4:return f>m;case 5:return f>=m;default:return!1}}})();var vc={};function zc(f){this.b=f}
(function(){function f(a){-1===Ib.indexOf(a)&&Ib.push(a)}function p(a){var b=a.G,d;try{d=b.play()}catch(c){f(a);return}d?d.catch(function(){f(a)}):ad&&!y.xa&&f(a)}function n(){var a,b,d,c;bd||ca||!B||(m(),"running"===B.state&&(bd=!0));var h=Ib.slice(0);J(Ib);if(!Q)for(a=0,b=h.length;a<b;++a)d=h[a],d.Pb||d.gd||(c=d.G.play())&&c.catch(function(){f(d)})}function m(){"suspended"===B.state&&B.resume&&B.resume();if(B.createBuffer){var a=B.createBuffer(1,220,22050),b=B.createBufferSource();b.buffer=a;b.connect(B.destination);
c(b)}}function g(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function q(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function e(a){a=a.toLowerCase();return ja.hasOwnProperty(a)&&ja[a].length?ja[a][0].wd():B.destination}function a(){return B.createGain?B.createGain():B.createGainNode()}function b(a){return B.createDelay?B.createDelay(a):B.createDelayNode(a)}function c(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function d(a,b,d,c){a.start?a.start(c||0,b):a.noteGrainOn(c||
0,b,d-b)}function k(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function u(b,d,c,h,e,l){this.type="filter";this.vc=[b,d,c,h,e,l];this.Ha=a();this.la=a();this.la.gain.value=l;this.ja=a();this.ja.gain.value=1-l;this.Ib=B.createBiquadFilter();this.Ib.type="number"===typeof this.Ib.type?b:id[b];this.Ib.frequency.value=d;this.Ib.detune&&(this.Ib.detune.value=c);this.Ib.Q.value=h;this.Ib.gain.value=e;this.Ha.connect(this.Ib);this.Ha.connect(this.ja);this.Ib.connect(this.la)}function h(d,c,h){this.type=
"delay";this.vc=[d,c,h];this.Ha=a();this.la=a();this.la.gain.value=h;this.ja=a();this.ja.gain.value=1-h;this.yl=a();this.Sd=b(d);this.Sd.delayTime.value=d;this.An=a();this.An.gain.value=c;this.Ha.connect(this.yl);this.Ha.connect(this.ja);this.yl.connect(this.la);this.yl.connect(this.Sd);this.Sd.connect(this.An);this.An.connect(this.yl)}function l(b,d,c,h){this.type="convolve";this.vc=[d,c,h];this.Ha=a();this.la=a();this.la.gain.value=c;this.ja=a();this.ja.gain.value=1-c;this.uh=B.createConvolver();
b&&(this.uh.normalize=d,this.uh.buffer=b);this.Ha.connect(this.uh);this.Ha.connect(this.ja);this.uh.connect(this.la)}function v(d,h,e,l,g){this.type="flanger";this.vc=[d,h,e,l,g];this.Ha=a();this.ja=a();this.ja.gain.value=1-g/2;this.la=a();this.la.gain.value=g/2;this.Mn=a();this.Mn.gain.value=l;this.Sd=b(d+h);this.Sd.delayTime.value=d;this.hc=B.createOscillator();this.hc.frequency.value=e;this.kd=a();this.kd.gain.value=h;this.Ha.connect(this.Sd);this.Ha.connect(this.ja);this.Sd.connect(this.la);this.Sd.connect(this.Mn);
this.Mn.connect(this.Sd);this.hc.connect(this.kd);this.kd.connect(this.Sd.delayTime);c(this.hc)}function F(b,d,h,e,l,g){this.type="phaser";this.vc=[b,d,h,e,l,g];this.Ha=a();this.ja=a();this.ja.gain.value=1-g/2;this.la=a();this.la.gain.value=g/2;this.Ib=B.createBiquadFilter();this.Ib.type="number"===typeof this.Ib.type?7:"allpass";this.Ib.frequency.value=b;this.Ib.detune&&(this.Ib.detune.value=d);this.Ib.Q.value=h;this.hc=B.createOscillator();this.hc.frequency.value=l;this.kd=a();this.kd.gain.value=
e;this.Ha.connect(this.Ib);this.Ha.connect(this.ja);this.Ib.connect(this.la);this.hc.connect(this.kd);this.kd.connect(this.Ib.frequency);c(this.hc)}function r(b){this.type="gain";this.vc=[b];this.La=a();this.La.gain.value=b}function C(b,d){this.type="tremolo";this.vc=[b,d];this.La=a();this.La.gain.value=1-d/2;this.hc=B.createOscillator();this.hc.frequency.value=b;this.kd=a();this.kd.gain.value=d/2;this.hc.connect(this.kd);this.kd.connect(this.La.gain);c(this.hc)}function D(b,d){this.type="ringmod";
this.vc=[b,d];this.Ha=a();this.la=a();this.la.gain.value=d;this.ja=a();this.ja.gain.value=1-d;this.$l=a();this.$l.gain.value=0;this.hc=B.createOscillator();this.hc.frequency.value=b;this.hc.connect(this.$l.gain);c(this.hc);this.Ha.connect(this.$l);this.Ha.connect(this.ja);this.$l.connect(this.la)}function w(b,d,c,h,e){this.type="distortion";this.vc=[b,d,c,h,e];this.Ha=a();this.So=a();this.Ro=a();this.OF(c,Math.pow(10,h/20));this.la=a();this.la.gain.value=e;this.ja=a();this.ja.gain.value=1-e;this.Lp=
B.createWaveShaper();this.yn=new Float32Array(65536);this.CD(b,d);this.Lp.yn=this.yn;this.Ha.connect(this.So);this.Ha.connect(this.ja);this.So.connect(this.Lp);this.Lp.connect(this.Ro);this.Ro.connect(this.la)}function t(a,b,d,c,h){this.type="compressor";this.vc=[a,b,d,c,h];this.La=B.createDynamicsCompressor();try{this.La.threshold.value=a,this.La.knee.value=b,this.La.ratio.value=d,this.La.attack.value=c,this.La.release.value=h}catch(e){}}function T(a,b){this.type="analyser";this.vc=[a,b];this.La=
B.createAnalyser();this.La.fftSize=a;this.La.smoothingTimeConstant=b;this.zD=new Float32Array(this.La.frequencyBinCount);this.Ux=new Uint8Array(a);this.Ol=0}function G(){this.Ca=null;this.uo=0}function z(b,d){this.src=b;this.Aa=x;this.gf=d;this.Vm=!1;var c=this;this.sj=this.Bj=null;this.ji=[];this.ip=0;this.ot=this.Ln=this.ay=this.Lo=!1;1===x&&d&&!Jb&&(this.Aa=0,this.Bj=a());this.zf=this.Ka=null;var h;switch(this.Aa){case 0:this.Ka=new Audio;this.Ka.crossOrigin="anonymous";this.Ka.addEventListener("canplaythrough",
function(){c.ot=!0});1===x&&B.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.ay=!0,this.Ka.addEventListener("canplay",function(){!c.sj&&c.Ka&&(c.sj=B.createMediaElementSource(c.Ka),c.sj.connect(c.Bj))}));this.Ka.autoplay=!1;this.Ka.qx="auto";this.Ka.src=b;break;case 1:y.jo?y.pv(b,function(a){c.zf=a;c.Yu()},function(){c.Ln=!0}):(h=new XMLHttpRequest,h.open("GET",b,!0),h.responseType="arraybuffer",h.onload=function(){c.zf=h.response;c.Yu()},h.onerror=function(){c.Ln=!0},h.send());
break;case 2:this.Ka=!0;break;case 3:this.Ka=!0}}function E(b,d){var c=this;this.tag=d;this.Pb=this.cf=!0;this.src=b.src;this.buffer=b;this.Aa=x;this.gf=b.gf;this.playbackRate=1;this.Xi=!0;this.gd=this.Hd=!1;this.Yc=0;this.el=this.fj=this.jf=!1;this.volume=1;this.ks=function(a){if(!c.gd&&!c.Hd){var b=this;b||(b=a.target);b===c.Um&&(c.Xi=!0,c.Pb=!0,ha=c.tag,y.trigger(zc.prototype.j.Mm,W))}};this.Um=null;this.bj=1===aa&&!this.gf||2===aa;this.tj=1;this.startTime=this.bj?y.Vb.ea:y.mg.ea;this.Mb=this.Ub=
null;this.nf=!1;this.tc=null;this.ax=this.$w=this.Zw=this.Yw=this.cx=this.bx=0;this.G=null;var h=!1;1!==this.Aa||0!==this.buffer.Aa||this.buffer.ay||(this.Aa=0);switch(this.Aa){case 0:this.gf?(this.G=b.Ka,h=!b.Vm,b.Vm=!0):(this.G=new Audio,this.G.crossOrigin="anonymous",this.G.autoplay=!1,this.G.src=b.Ka.src,h=!0);h&&this.G.addEventListener("ended",function(){ha=c.tag;c.Pb=!0;y.trigger(zc.prototype.j.Mm,W)});break;case 1:this.Ub=a();this.Ub.connect(e(d));1===this.buffer.Aa?b.Ka&&(this.G=B.createBufferSource(),
this.G.buffer=b.Ka,this.G.connect(this.Ub)):(this.G=this.buffer.Ka,this.buffer.Bj.connect(this.Ub),this.buffer.Vm||(this.buffer.Vm=!0,this.buffer.Ka.addEventListener("ended",function(){ha=c.tag;c.Pb=!0;y.trigger(zc.prototype.j.Mm,W)})));break;case 2:this.G=new window.Media(O+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Xi=!0,c.Pb=!0,ha=c.tag,y.trigger(zc.prototype.j.Mm,W))});break;case 3:this.G=!0}}function L(a){J(La);if(a.length){var b,d,c;b=0;for(d=I.length;b<d;b++)c=I[b],ub(a,
c.tag)&&La.push(c)}else H&&!H.Kh()&&(J(La),La[0]=H)}function P(a,b){ja.hasOwnProperty(a)?ja[a].push(b):ja[a]=[b];var d,c,h,e,l=B.destination;if(ja.hasOwnProperty(a)&&(h=ja[a],h.length))for(l=h[0].wd(),d=0,c=h.length;d<c;d++)e=h[d],d+1===c?e.Qd(B.destination):e.Qd(h[d+1].wd());L(a);d=0;for(c=La.length;d<c;d++)La[d].yF(l);ab&&Yb===a&&(ab.disconnect(),ab.connect(l))}function S(){}function V(){}var K=zc.prototype;K.L=function(a){this.X=a;this.b=a.b};K.L.prototype.I=function(){};var y=null,W=null,ha="",
O="",x=0,B=null,R=[],I=[],H=null,N=!1,aa=0,Q=!1,Y=1,Z=0,ia=0,ca=!1,Ua=1,Va=1,$a=10,Zc=1E4,$c=1,ab=null,Yb="",ad=!1,Ib=[],Jb=!1,bd=!1;document.addEventListener("pointerup",n,!0);document.addEventListener("touchend",n,!0);document.addEventListener("click",n,!0);document.addEventListener("keydown",n,!0);document.addEventListener("gamepadconnected",n,!0);var ja={},id="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");u.prototype.Qd=function(a){this.la.disconnect();this.la.connect(a);
this.ja.disconnect();this.ja.connect(a)};u.prototype.remove=function(){this.Ha.disconnect();this.Ib.disconnect();this.la.disconnect();this.ja.disconnect()};u.prototype.wd=function(){return this.Ha};h.prototype.Qd=function(a){this.la.disconnect();this.la.connect(a);this.ja.disconnect();this.ja.connect(a)};h.prototype.remove=function(){this.Ha.disconnect();this.yl.disconnect();this.Sd.disconnect();this.An.disconnect();this.la.disconnect();this.ja.disconnect()};h.prototype.wd=function(){return this.Ha};
l.prototype.Qd=function(a){this.la.disconnect();this.la.connect(a);this.ja.disconnect();this.ja.connect(a)};l.prototype.remove=function(){this.Ha.disconnect();this.uh.disconnect();this.la.disconnect();this.ja.disconnect()};l.prototype.wd=function(){return this.Ha};v.prototype.Qd=function(a){this.ja.disconnect();this.ja.connect(a);this.la.disconnect();this.la.connect(a)};v.prototype.remove=function(){this.Ha.disconnect();this.Sd.disconnect();this.hc.disconnect();this.kd.disconnect();this.ja.disconnect();
this.la.disconnect();this.Mn.disconnect()};v.prototype.wd=function(){return this.Ha};F.prototype.Qd=function(a){this.ja.disconnect();this.ja.connect(a);this.la.disconnect();this.la.connect(a)};F.prototype.remove=function(){this.Ha.disconnect();this.Ib.disconnect();this.hc.disconnect();this.kd.disconnect();this.ja.disconnect();this.la.disconnect()};F.prototype.wd=function(){return this.Ha};r.prototype.Qd=function(a){this.La.disconnect();this.La.connect(a)};r.prototype.remove=function(){this.La.disconnect()};
r.prototype.wd=function(){return this.La};C.prototype.Qd=function(a){this.La.disconnect();this.La.connect(a)};C.prototype.remove=function(){this.hc.disconnect();this.kd.disconnect();this.La.disconnect()};C.prototype.wd=function(){return this.La};D.prototype.Qd=function(a){this.la.disconnect();this.la.connect(a);this.ja.disconnect();this.ja.connect(a)};D.prototype.remove=function(){this.hc.disconnect();this.$l.disconnect();this.Ha.disconnect();this.la.disconnect();this.ja.disconnect()};D.prototype.wd=
function(){return this.Ha};w.prototype.OF=function(a,b){.01>a&&(a=.01);this.So.gain.value=a;this.Ro.gain.value=Math.pow(1/a,.6)*b};w.prototype.shape=function(a,b,d){var c=1.05*d*b-b;d=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+c*(1-Math.exp(-(1/c)*(a-b)));return b*d};w.prototype.CD=function(a,b){for(var d=Math.pow(10,a/20),c=Math.pow(10,b/20),h=0,e=0;32768>e;++e)h=e/32768,h=this.shape(h,d,c),this.yn[32768+e]=h,this.yn[32768-e-1]=-h};w.prototype.Qd=function(a){this.la.disconnect();this.la.connect(a);this.ja.disconnect();
this.ja.connect(a)};w.prototype.remove=function(){this.Ha.disconnect();this.So.disconnect();this.Lp.disconnect();this.Ro.disconnect();this.la.disconnect();this.ja.disconnect()};w.prototype.wd=function(){return this.Ha};t.prototype.Qd=function(a){this.La.disconnect();this.La.connect(a)};t.prototype.remove=function(){this.La.disconnect()};t.prototype.wd=function(){return this.La};T.prototype.Ea=function(){this.La.getFloatFrequencyData(this.zD);this.La.getByteTimeDomainData(this.Ux);for(var a=this.La.fftSize,
b=0,d=this.Ol=0,c=0;b<a;b++)c=(this.Ux[b]-128)/128,0>c&&(c=-c),this.Ol<c&&(this.Ol=c),d+=c*c;this.Ol=q(this.Ol);q(Math.sqrt(d/a))};T.prototype.Qd=function(a){this.La.disconnect();this.La.connect(a)};T.prototype.remove=function(){this.La.disconnect()};T.prototype.wd=function(){return this.La};G.prototype.Jj=function(a){this.Ca=a};G.prototype.bo=function(){return!!this.Ca};G.prototype.Ea=function(){};z.prototype.zF=function(){var a,b,d,c;d=a=0;for(b=I.length;a<b;++a)c=I[a],I[d]=c,c.buffer===this?c.stop():
++d;I.length=d;this.sj&&(this.sj.disconnect(),this.sj=null);this.Bj&&(this.Bj.disconnect(),this.Bj=null);this.zf=this.Ka=null};z.prototype.Yu=function(){if(!this.Ka&&this.zf){var a=this;if(B.decodeAudioData)B.decodeAudioData(this.zf,function(b){a.Ka=b;a.zf=null;var d,c,h;if(la(a.Oo)||Q)la(a.sn)||(d=a.sn.uh,d.normalize=a.Sw,d.buffer=b);else if(a.ji.length){d=0;for(c=a.ji.length;d<c;d++){b=a.ji[d];h=new E(a,b.Ts);h.dm(!0);if("undefined"!==typeof b.Uw&&(b.Ca=y.Og(b.Uw),!b.Ca))continue;if(b.Ca){var e=
Ya(b.Ca.x,b.Ca.y,-b.Ca.r.rb(),Z,ia,!0),l=Ya(b.Ca.x,b.Ca.y,-b.Ca.r.rb(),Z,ia,!1);h.mp(e,l,Na(b.Ca.u-b.Ca.r.rb()),b.co,b.Co,b.Fo);h.Jj(b.Ca)}else h.mp(b.x,b.y,b.Md,b.co,b.Co,b.Fo);h.play(a.Tr,a.nt,a.ip);a.Lo&&h.pause();I.push(h)}J(a.ji)}else h=new E(a,a.Oo||""),h.play(a.Tr,a.nt,a.ip),a.Lo&&h.pause(),I.push(h)},function(){a.Ln=!0});else if(this.Ka=B.createBuffer(this.zf,!1),this.zf=null,la(this.Oo)||Q)la(this.sn)||(b=this.sn.uh,b.normalize=this.Sw,b.buffer=this.Ka);else{var b=new E(this,this.Oo);b.play(this.Tr,
this.nt,this.ip);this.Lo&&b.pause();I.push(b)}}};z.prototype.Vv=function(){switch(this.Aa){case 0:var a=4<=this.Ka.readyState;a&&(this.ot=!0);return a||this.ot;case 1:return!!this.zf||!!this.Ka;case 2:return!0;case 3:return!0}return!1};z.prototype.rE=function(){switch(this.Aa){case 0:return this.Vv();case 1:return!!this.Ka;case 2:return!0;case 3:return!0}return!1};z.prototype.hE=function(){switch(this.Aa){case 0:return!!this.Ka.error;case 1:return this.Ln}return!1};E.prototype.Kh=function(){switch(this.Aa){case 0:return this.G.ended;
case 1:return 1===this.buffer.Aa?!this.cf&&!this.Pb&&this.G.loop||this.gd?!1:this.Xi:this.G.ended;case 2:return this.Xi;case 3:!0}return!0};E.prototype.cC=function(){return this.cf||this.Pb?!0:this.Kh()};E.prototype.dm=function(a){1===x&&(!this.nf&&a?this.Ub&&(this.Mb||(this.Mb=B.createPanner(),this.Mb.panningModel="number"===typeof this.Mb.panningModel?Ua:["equalpower","HRTF","soundfield"][Ua],this.Mb.distanceModel="number"===typeof this.Mb.distanceModel?Va:["linear","inverse","exponential"][Va],
this.Mb.refDistance=$a,this.Mb.maxDistance=Zc,this.Mb.rolloffFactor=$c),this.Ub.disconnect(),this.Ub.connect(this.Mb),this.Mb.connect(e(this.tag)),this.nf=!0):this.nf&&!a&&this.Ub&&(this.Mb.disconnect(),this.Ub.disconnect(),this.Ub.connect(e(this.tag)),this.nf=!1))};E.prototype.mp=function(a,b,d,c,h,e){this.nf&&1===x&&(this.Mb.setPosition(a,b,0),this.Mb.setOrientation(Math.cos(Ma(d)),Math.sin(Ma(d)),0),this.Mb.coneInnerAngle=c,this.Mb.coneOuterAngle=h,this.Mb.coneOuterGain=e,this.bx=a,this.cx=b,this.Yw=
d,this.Zw=c,this.$w=h,this.ax=e)};E.prototype.Jj=function(a){this.nf&&1===x&&(this.tc||(this.tc=new G),this.tc.Jj(a))};E.prototype.Ea=function(a){if(this.nf&&1===x&&this.tc&&this.tc.bo()&&this.aj()){this.tc.Ea(a);a=this.tc.Ca;var b=Ya(a.x,a.y,-a.r.rb(),Z,ia,!0),d=Ya(a.x,a.y,-a.r.rb(),Z,ia,!1);this.Mb.setPosition(b,d,0);b=0;"undefined"!==typeof this.tc.Ca.u&&(b=a.u-a.r.rb(),this.Mb.setOrientation(Math.cos(b),Math.sin(b),0))}};E.prototype.play=function(a,b,h,e){var l=this.G;this.jf=a;this.volume=b;
h=h||0;e=e||0;switch(this.Aa){case 0:1!==l.playbackRate&&(l.playbackRate=1);l.volume!==b*Y&&(l.volume=b*Y);l.loop!==a&&(l.loop=a);l.muted&&(l.muted=!1);if(l.currentTime!==h)try{l.currentTime=h}catch(g){}p(this);break;case 1:this.muted=!1;this.tj=1;if(1===this.buffer.Aa)this.Ub.gain.value=b*Y,this.cf||(this.G=B.createBufferSource(),this.G.buffer=this.buffer.Ka,this.G.connect(this.Ub)),this.G.onended=this.ks,this.Um=this.G,this.G.loop=a,this.Xi=!1,0===h?c(this.G,e):d(this.G,h,this.Gh(),e);else{1!==
l.playbackRate&&(l.playbackRate=1);l.loop!==a&&(l.loop=a);l.volume=b*Y;if(l.currentTime!==h)try{l.currentTime=h}catch(k){}p(this)}break;case 2:(!this.cf&&this.Pb||0!==h)&&l.seekTo(h);l.play();this.Xi=!1;break;case 3:y.Ec?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.bj?y.Vb.ea:y.mg.ea)-h;this.gd=this.Pb=this.cf=!1};E.prototype.stop=function(){switch(this.Aa){case 0:this.G.paused||this.G.pause();break;case 1:1===this.buffer.Aa?k(this.G):
this.G.paused||this.G.pause();break;case 2:this.G.stop();break;case 3:y.Ec&&AppMobi.context.stopSound(this.src)}this.Pb=!0;this.gd=!1};E.prototype.pause=function(){if(!(this.cf||this.Pb||this.Kh()||this.gd)){switch(this.Aa){case 0:this.G.paused||this.G.pause();break;case 1:1===this.buffer.Aa?(this.Yc=this.br(!0),this.jf&&(this.Yc=this.Yc%this.Gh()),this.gd=!0,k(this.G)):this.G.paused||this.G.pause();break;case 2:this.G.pause();break;case 3:y.Ec&&AppMobi.context.stopSound(this.src)}this.gd=!0}};E.prototype.DF=
function(){if(!(this.cf||this.Pb||this.Kh())&&this.gd){switch(this.Aa){case 0:p(this);break;case 1:1===this.buffer.Aa?(this.G=B.createBufferSource(),this.G.buffer=this.buffer.Ka,this.G.connect(this.Ub),this.G.onended=this.ks,this.Um=this.G,this.G.loop=this.jf,this.Ub.gain.value=Y*this.volume*this.tj,this.Gp(),this.startTime=(this.bj?y.Vb.ea:y.mg.ea)-this.Yc/(this.playbackRate||.001),d(this.G,this.Yc,this.Gh())):p(this);break;case 2:this.G.play();break;case 3:y.Ec&&AppMobi.context.resumeSound(this.src)}this.gd=
!1}};E.prototype.seek=function(a){if(!(this.cf||this.Pb||this.Kh()))switch(this.Aa){case 0:try{this.G.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.Aa)this.gd?this.Yc=a:(this.pause(),this.Yc=a,this.DF());else try{this.G.currentTime=a}catch(d){}break;case 3:y.Ec&&AppMobi.context.seekSound(this.src,a)}};E.prototype.yF=function(a){1===this.Aa&&(this.nf?(this.Mb.disconnect(),this.Mb.connect(a)):(this.Ub.disconnect(),this.Ub.connect(a)))};E.prototype.Gh=function(){var a=0;switch(this.Aa){case 0:"undefined"!==
typeof this.G.duration&&(a=this.G.duration);break;case 1:a=this.buffer.Ka.duration;break;case 2:a=this.G.getDuration();break;case 3:y.Ec&&(a=AppMobi.context.getDurationSound(this.src))}return a};E.prototype.br=function(a){var b=this.Gh(),d=0;switch(this.Aa){case 0:"undefined"!==typeof this.G.currentTime&&(d=this.G.currentTime);break;case 1:if(1===this.buffer.Aa){if(this.gd)return this.Yc;d=(this.bj?y.Vb.ea:y.mg.ea)-this.startTime}else"undefined"!==typeof this.G.currentTime&&(d=this.G.currentTime);
break;case 3:y.Ec&&(d=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(d*=this.playbackRate);!this.jf&&d>b&&(d=b);return d};E.prototype.aj=function(){return!this.gd&&!this.cf&&!this.Pb&&!this.Kh()};E.prototype.VF=function(){return!this.cf&&!this.Pb&&!this.Kh()};E.prototype.gG=function(){var a=this.volume*Y;isFinite(a)||(a=0);switch(this.Aa){case 0:"undefined"!==typeof this.G.volume&&this.G.volume!==a&&(this.G.volume=a);break;case 1:1===this.buffer.Aa?this.Ub.gain.value=a*this.tj:"undefined"!==
typeof this.G.volume&&this.G.volume!==a&&(this.G.volume=a)}};E.prototype.Hn=function(a){switch(this.Aa){case 0:this.G.muted!==!!a&&(this.G.muted=!!a);break;case 1:1===this.buffer.Aa?(this.tj=a?0:1,this.Ub.gain.value=Y*this.volume*this.tj):this.G.muted!==!!a&&(this.G.muted=!!a)}};E.prototype.QF=function(){this.fj=!0;this.Hn(this.fj||this.el)};E.prototype.Mx=function(a){this.el=!!a;this.Hn(this.fj||this.el)};E.prototype.Gp=function(){var a=this.playbackRate;this.bj&&(a*=y.kh);switch(this.Aa){case 0:this.G.playbackRate!==
a&&(this.G.playbackRate=a);break;case 1:1===this.buffer.Aa?this.G.playbackRate.value!==a&&(this.G.playbackRate.value=a):this.G.playbackRate!==a&&(this.G.playbackRate=a)}};E.prototype.SF=function(a){switch(this.Aa){case 0:a?this.aj()?(this.Hd=!0,this.G.pause()):this.Hd=!1:this.Hd&&(this.G.play(),this.Hd=!1);break;case 1:a?this.aj()?(this.Hd=!0,1===this.buffer.Aa?(this.Yc=this.br(!0),this.jf&&(this.Yc=this.Yc%this.Gh()),k(this.G)):this.G.pause()):this.Hd=!1:this.Hd&&(1===this.buffer.Aa?(this.G=B.createBufferSource(),
this.G.buffer=this.buffer.Ka,this.G.connect(this.Ub),this.G.onended=this.ks,this.Um=this.G,this.G.loop=this.jf,this.Ub.gain.value=Y*this.volume*this.tj,this.Gp(),this.startTime=(this.bj?y.Vb.ea:y.mg.ea)-this.Yc/(this.playbackRate||.001),d(this.G,this.Yc,this.Gh())):this.G.play(),this.Hd=!1);break;case 2:a?this.aj()?(this.G.pause(),this.Hd=!0):this.Hd=!1:this.Hd&&(this.Hd=!1,this.G.play())}};K.K=function(a){this.type=a;y=this.b=a.b;W=this;this.hd=null;this.kl=-600;this.b.jo&&(Jb=!0);!(this.b.Th||this.b.Zi&&
(this.b.ho||this.b.Yk))||this.b.$k||this.b.N||this.b.Tv||Jb||(ad=!0);B=null;"undefined"!==typeof AudioContext?(x=1,B=new AudioContext):"undefined"!==typeof webkitAudioContext&&(x=1,B=new webkitAudioContext);this.b.Th&&B&&(B.close&&B.close(),"undefined"!==typeof AudioContext?B=new AudioContext:"undefined"!==typeof webkitAudioContext&&(B=new webkitAudioContext));1!==x&&(this.b.Ad&&"undefined"!==typeof window.Media?x=2:this.b.Uv&&(x=3));2===x&&(O=location.href,a=O.lastIndexOf("/"),-1<a&&(O=O.substr(0,
a+1)),O=O.replace("file://",""));if(this.b.sE&&this.b.vE&&"undefined"===typeof Audio)alert("It looks like you're using Safari for Windows without Quicktime. Audio cannot be played until Quicktime is installed."),this.b.Ld(this);else{if(this.b.Ec)N=this.b.Zi;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.yr}catch(b){N=!1}this.b.qd(this)}};var Da=K.K.prototype;Da.I=function(){this.b.Ei=this;aa=this.q[0];this.$f=this.q[1];this.kF=0!==this.q[2];this.uj=0;Ua=this.q[3];Va=
this.q[4];this.kl=-this.q[5];$a=this.q[6];Zc=this.q[7];$c=this.q[8];this.hd=new G;var a=this.b.aa||this.b.width,b=this.b.Z||this.b.height;1===x&&(B.listener.setPosition(a/2,b/2,this.kl),B.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ab&&ab.disconnect();Yb=b.toLowerCase();ab=B.createMediaStreamSource(a);ab.connect(e(Yb))});this.b.jq(function(a){W.hs(a)});var d=this;this.b.jk(function(a){d.Gl(a)})};Da.Gl=function(a){var b,d,c;b=0;for(d=I.length;b<d;b++)c=I[b],c.tc&&
c.tc.Ca===a&&(c.tc.Ca=null,c.nf&&c.aj()&&c.jf&&c.stop());this.hd.Ca===a&&(this.hd.Ca=null)};Da.Ma=function(){var a={silent:Q,masterVolume:Y,listenerZ:this.kl,listenerUid:this.hd.bo()?this.hd.Ca.uid:-1,playing:[],effects:{}},b=a.playing,d,c,h,e,l,g;d=0;for(c=I.length;d<c;d++)h=I[d],!h.VF()||3===this.$f||h.gf&&1===this.$f||!h.gf&&2===this.$f||(e=h.br(),h.jf&&(e=e%h.Gh()),e={tag:h.tag,buffersrc:h.buffer.src,is_music:h.gf,playbackTime:e,volume:h.volume,looping:h.jf,muted:h.fj,playbackRate:h.playbackRate,
paused:h.gd,resume_position:h.Yc},h.nf&&(e.pan={},g=e.pan,h.tc&&h.tc.bo()?g.objUid=h.tc.Ca.uid:(g.x=h.bx,g.y=h.cx,g.a=h.Yw),g.ia=h.Zw,g.oa=h.$w,g.og=h.ax),b.push(e));b=a.effects;for(l in ja)if(ja.hasOwnProperty(l)){h=[];d=0;for(c=ja[l].length;d<c;d++)h.push({type:ja[l][d].type,params:ja[l][d].vc});b[l]=h}return a};var sb=[];Da.Sa=function(a){var b=a.silent;Y=a.masterVolume;this.kl=a.listenerZ;this.hd.Jj(null);var d=a.listenerUid;-1!==d&&(this.hd.uo=d,sb.push(this.hd));var d=a.playing,c,e,g,k,f,m,
q,n,p,z,L;if(3!==this.$f)for(c=0,e=I.length;c<e;c++)p=I[c],p.gf&&1===this.$f||(p.gf||2!==this.$f)&&p.stop();for(f in ja)if(ja.hasOwnProperty(f))for(c=0,e=ja[f].length;c<e;c++)ja[f][c].remove();fb(ja);for(f in a.effects)if(a.effects.hasOwnProperty(f))for(m=a.effects[f],c=0,e=m.length;c<e;c++)switch(g=m[c].type,z=m[c].params,g){case "filter":P(f,new u(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "delay":P(f,new h(z[0],z[1],z[2]));break;case "convolve":g=z[2];p=this.Ik(g,!1);p.Ka?g=new l(p.Ka,z[0],z[1],
g):(g=new l(null,z[0],z[1],g),p.Sw=z[0],p.sn=g);P(f,g);break;case "flanger":P(f,new v(z[0],z[1],z[2],z[3],z[4]));break;case "phaser":P(f,new F(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "gain":P(f,new r(z[0]));break;case "tremolo":P(f,new C(z[0],z[1]));break;case "ringmod":P(f,new D(z[0],z[1]));break;case "distortion":P(f,new w(z[0],z[1],z[2],z[3],z[4]));break;case "compressor":P(f,new t(z[0],z[1],z[2],z[3],z[4]));break;case "analyser":P(f,new T(z[0],z[1]))}c=0;for(e=d.length;c<e;c++)3===this.$f||
(a=d[c],g=a.buffersrc,k=a.is_music,f=a.tag,m=a.playbackTime,q=a.looping,n=a.volume,L=(z=a.pan)&&z.hasOwnProperty("objUid")?z.objUid:-1,k&&1===this.$f)||!k&&2===this.$f||((p=this.Wn(g,f,k,q,n))?(p.Yc=a.resume_position,p.dm(!!z),p.play(q,n,m),p.Gp(),p.gG(),p.Hn(p.fj||p.el),a.paused&&p.pause(),a.muted&&p.QF(),p.Hn(p.fj||p.el),z&&(-1!==L?(p.tc=p.tc||new G,p.tc.uo=L,sb.push(p.tc)):p.mp(z.x,z.y,z.a,z.ia,z.oa,z.og))):(p=this.Ik(g,k),p.ip=m,p.Lo=a.paused,z&&(-1!==L?p.ji.push({Uw:L,co:z.ia,Co:z.oa,Fo:z.og,
Ts:f}):p.ji.push({x:z.x,y:z.y,Md:z.a,co:z.ia,Co:z.oa,Fo:z.og,Ts:f}))));if(b&&!Q){c=0;for(e=I.length;c<e;c++)I[c].Mx(!0);Q=!0}else if(!b&&Q){c=0;for(e=I.length;c<e;c++)I[c].Mx(!1);Q=!1}};Da.Od=function(){var a,b,d,c;a=0;for(b=sb.length;a<b;a++)d=sb[a],c=this.b.Og(d.uo),d.Jj(c),d.uo=-1,c&&(Z=c.x,ia=c.y);J(sb)};Da.hs=function(a){if(!this.kF){!a&&B&&B.resume&&(B.resume(),ca=!1);var b,d;b=0;for(d=I.length;b<d;b++)I[b].SF(a);a&&B&&B.suspend&&(B.suspend(),ca=!0)}};Da.Ea=function(){var a=this.b.yh,b,d,c;
b=0;for(d=I.length;b<d;b++)c=I[b],c.Ea(a),0!==aa&&c.Gp();var h,e;for(h in ja)if(ja.hasOwnProperty(h))for(c=ja[h],b=0,d=c.length;b<d;b++)e=c[b],e.Ea&&e.Ea();1===x&&this.hd.bo()&&(this.hd.Ea(a),Z=this.hd.Ca.x,ia=this.hd.Ca.y,B.listener.setPosition(this.hd.Ca.x,this.hd.Ca.y,this.kl))};var tb=[];Da.RF=function(a){var b,d,c,h,e,l=0;b=0;for(d=a.length;b<d;++b)if(c=a[b],h=c[0],c=2*c[1],(e=4<h.length&&".ogg"===h.substr(h.length-4))&&N||!e&&!N)tb.push({filename:h,size:c,Ca:null}),l+=c;return l};Da.XF=function(){var a,
b,d,c;a=0;for(b=tb.length;a<b;++a)d=tb[a],c=this.b.Ek+d.filename,d.Ca=this.Ik(c,!1)};Da.OD=function(){var a=0,b,d,c;b=0;for(d=tb.length;b<d;++b)c=tb[b],c.Ca.rE()||c.Ca.hE()||this.b.N||this.b.Yk?a+=c.size:c.Ca.Vv()&&(a+=Math.floor(c.size/2));return a};Da.AF=function(){var a,b,d,c;d=a=0;for(b=R.length;a<b;++a)c=R[a],R[d]=c,c.gf?c.zF():++d;R.length=d};Da.Ik=function(a,b){var d,c,h,e=null;d=0;for(c=R.length;d<c;d++)if(h=R[d],h.src===a){e=h;break}e||(Jb&&b&&this.AF(),e=new z(a,b),R.push(e));return e};
Da.Wn=function(a,b,d,c,h){var e,l,g;e=0;for(l=I.length;e<l;e++)if(g=I[e],g.src===a&&(g.cC()||d))return g.tag=b,g;a=this.Ik(a,d);if(!a.Ka)return"<preload>"!==b&&(a.Oo=b,a.Tr=c,a.nt=h),null;g=new E(a,b);I.push(g);return g};var La=[];S.prototype.Mm=function(a){return ub(ha,a)};S.prototype.Jz=function(a){L(a);var b;a=0;for(b=La.length;a<b;a++)if(La[a].aj())return!0;return!1};K.j=new S;V.prototype.Play=function(a,b,d,c){!Q&&(d=g(d),H=this.Wn(this.b.Ek+a[0]+(N?".ogg":".m4a"),c,a[1],0!==b,d))&&(H.dm(!1),
H.play(0!==b,d,0,this.uj),this.uj=0)};V.prototype.IA=function(a,b,d,c,h,e,l,k){if(!Q&&c&&(c=c.Jk())){d=g(d);var f=a[1];a=this.b.Ek+a[0]+(N?".ogg":".m4a");(H=this.Wn(a,k,f,0!==b,d))?(H.dm(!0),k=Ya(c.x,c.y,-c.r.rb(),Z,ia,!0),a=Ya(c.x,c.y,-c.r.rb(),Z,ia,!1),H.mp(k,a,Na(c.u-c.r.rb()),h,e,g(l)),H.Jj(c),H.play(0!==b,d,0,this.uj),this.uj=0):this.Ik(a,f).ji.push({Ca:c,co:h,Co:e,Fo:g(l),Ts:k})}};V.prototype.JA=function(a,b,d,c,h){!Q&&(c=g(c),H=this.Wn(this.b.Ek+b.toLowerCase()+(N?".ogg":".m4a"),h,1===a,0!==
d,c))&&(H.dm(!1),H.play(0!==d,c,0,this.uj),this.uj=0)};V.prototype.Qm=function(a){L(a);var b;a=0;for(b=La.length;a<b;a++)La[a].stop()};V.prototype.wB=function(){var a,b;a=0;for(b=I.length;a<b;a++)I[a].stop()};K.A=new V;K.B=new function(){}})();function Ac(f){this.b=f}
(function(){function f(){}function p(){}var n=Ac.prototype;n.L=function(g){this.X=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g){this.type=g;this.b=g.b};var m=n.K.prototype;m.I=function(){this.b.N?ga("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.Ph=1===this.q[0],this.fd=document.createElement("input"),this.k=this.Ph?document.createElement("label"):this.fd,this.il=null,this.fd.type=this.Ph?"checkbox":"button",this.fd.id=this.q[6],jQuery(this.k).appendTo(this.b.Pd?
this.b.Pd:"body"),this.Ph?(jQuery(this.fd).appendTo(this.k),this.il=document.createTextNode(this.q[1]),jQuery(this.k).append(this.il),this.fd.checked=0!==this.q[7],jQuery(this.k).css("font-family","sans-serif"),jQuery(this.k).css("display","inline-block"),jQuery(this.k).css("color","black")):this.fd.value=this.q[1],this.k.title=this.q[2],this.fd.disabled=0===this.q[4],this.ok=0!==this.q[5],this.qb=!1,0===this.q[3]&&(jQuery(this.k).hide(),this.visible=!1,this.qb=!0),this.fd.onclick=function(g){return function(f){f.stopPropagation();
g.b.xa=!0;g.b.trigger(Ac.prototype.j.rg,g);g.b.xa=!1}}(this),this.k.addEventListener("touchstart",function(g){g.stopPropagation()},!1),this.k.addEventListener("touchmove",function(g){g.stopPropagation()},!1),this.k.addEventListener("touchend",function(g){g.stopPropagation()},!1),jQuery(this.k).mousedown(function(g){g.stopPropagation()}),jQuery(this.k).mouseup(function(g){g.stopPropagation()}),jQuery(this.k).keydown(function(g){g.stopPropagation()}),jQuery(this.k).keyup(function(g){g.stopPropagation()}),
this.Ae=this.Be=this.we=this.ye=this.ze=this.xe=0,this.rd(!0),this.b.qd(this))};m.Ma=function(){var g={tooltip:this.k.title,disabled:!!this.fd.disabled};this.Ph?(g.checked=!!this.fd.checked,g.text=this.il.nodeValue):g.text=this.k.value;return g};m.Sa=function(g){this.k.title=g.tooltip;this.fd.disabled=g.disabled;this.Ph?(this.fd.checked=g.checked,this.il.nodeValue=g.text):this.k.value=g.text};m.gc=function(){this.b.N||(jQuery(this.k).remove(),this.k=null)};m.Ea=function(){this.rd()};m.rd=function(g){if(!this.b.N){var f=
this.r.ba(this.x,this.y,!0),e=this.r.ba(this.x,this.y,!1),a=this.r.ba(this.x+this.width,this.y+this.height,!0),b=this.r.ba(this.x+this.width,this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.r.visible||0>=a||0>=b||f>=c||e>=d?(this.qb||jQuery(this.k).hide(),this.qb=!0):(1>f&&(f=1),1>e&&(e=1),a>=c&&(a=c-1),b>=d&&(b=d-1),c=window.innerWidth,d=window.innerHeight,g||this.xe!==f||this.ze!==e||this.ye!==a||this.we!==b||this.Be!==c||
this.Ae!==d?(this.xe=f,this.ze=e,this.ye=a,this.we=b,this.Be=c,this.Ae=d,this.qb&&(jQuery(this.k).show(),this.qb=!1),g=Math.round(f)+jQuery(this.b.canvas).offset().left,c=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:g,top:c}),jQuery(this.k).width(Math.round(a-f)),jQuery(this.k).height(Math.round(b-e)),this.ok&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-.2+"em")):this.qb&&(jQuery(this.k).show(),this.qb=
!1))}};m.Tb=function(){};m.eb=function(){};f.prototype.rg=function(){return!0};f.prototype.xz=function(){return this.Ph&&this.fd.checked};n.j=new f;p.prototype.fk=function(g){this.b.N||(this.Ph?this.il.nodeValue=g:this.k.value=g)};p.prototype.Te=function(g){this.b.N||(this.visible=0!==g)};p.prototype.Oc=function(g){this.b.N||(this.fd.disabled=0===g)};p.prototype.ek=function(g,f){this.b.N||jQuery(this.k).css(g,f)};n.A=new p;n.B=new function(){}})();function Bc(f){this.b=f}
(function(){function f(){}var p=Bc.prototype;p.L=function(a){this.X=a;this.b=a.b};var n=null,m=null,g=null,q=null,e,a,b,c,d=null;p.L.prototype.I=function(){};p.K=function(a){this.type=a;this.b=a.b};var k=p.K.prototype;k.I=function(){m=[!0,!1][this.q[6]];g=[!0,!1][this.q[4]];q=[!0,!1][this.q[3]];d=[!0,!1][this.q[5]];e=this.q[0];a=this.q[1];b=this.q[2];if(""==e&&""==a&&""==b)return m&&console.error("Please set an API key."),!1;if(""!=a&&""==b)return m&&console.error("Please set a secret if you want to use the Basic API key."),
!1;if(""==a&&""!=b)return m&&console.error("Please set a basic API key."),!1;var k=""==e||null==e?{key:a,secret:b,sandbox:g}:{key:e,sandbox:g};c={rememberUser:q};d&&this.ez(k,c)};k.ez=function(a,b){n=new Dropbox.Client(a);n.authDriver(new Dropbox.Drivers.Redirect(b));n.authenticate(function(a){if(a)return k.kc(a)});n.onAuthStateChange.dispatch=function(a){return function(){4==n.authState?a.b.trigger(Bc.prototype.j.lE,a):5==n.authState&&a.b.trigger(Bc.prototype.j.tE,a)}}(this)};k.kc=function(a){if(m)switch(a.status){case 401:alert("Error 401\nThe user token expired");
break;case 404:alert("Error 404\nThe file or folder you tried to access is not in the user's Dropbox");break;case 507:alert("Error 507\nYour Dropbox is full. You are over your allowed quota");break;case 503:alert("Error 503\nToo many API requests. Try again later");break;case 400:alert("Error 400\nBad input parameter");case 403:alert("Error 403\nBad OAuth request");case 405:alert("Error 405\nRequest method not expected");default:alert("An undefined bug is occured. Please refresh the page.\nIf it persists, please contact iosconstruct.devs@gmail.com")}};
f.prototype.lE=function(){return!0};f.prototype.tE=function(){return!0};p.j=new f;p.A=new function(){};p.B=new function(){}})();function Cc(f){this.b=f}
(function(){function f(){q||(q=!0,a.trigger(Cc.prototype.j.Nt,b),FB.api("/me?fields=name,first_name,last_name",function(d){e=d.name;a.trigger(Cc.prototype.j.Ot,b)}))}function p(){}var n=Cc.prototype;n.L=function(a){this.X=a;this.b=a.b};var m="",g=!1,q=!1,e="",a=null,b=null,c=!1;n.L.prototype.I=function(){};n.K=function(a){this.type=a;this.b=a.b};var d=n.K.prototype;d.I=function(){this.b.N?ga("[Construct 2] Facebook plugin not supported on this platform - the object will not be created"):(this.b.qd(this),
m=this.q[0],a=this.b,b=this,window.fbAsyncInit=function(){var d=location.pathname;"/"!==d.substr(d.length-1)&&(d=d.substr(0,d.lastIndexOf("/")+1));FB.init({version:"v2.11",appId:m,channelURL:"//"+location.hostname+d+"channel.html",status:!0,cookie:!0,oauth:!0,xfbml:!1});g=!0;FB.Event.subscribe("auth.login",function(a){a.authResponse&&f()});FB.Event.subscribe("auth.logout",function(){q&&(q=!1,e="",a.trigger(Cc.prototype.j.sA,b))});FB.getLoginStatus(function(a){a.authResponse&&f()});c||(c=!0,a.trigger(Cc.prototype.j.Vt,
b))},m.length&&function(a){var b;a.getElementById("facebook-jssdk")||(b=a.createElement("script"),b.id="facebook-jssdk",b.async=!0,b.src="//connect.facebook.net/en_US/sdk.js",a.getElementsByTagName("head")[0].appendChild(b))}(document))};d.Ea=function(){!c&&g&&(c=!0,a.trigger(Cc.prototype.j.Vt,b))};d.yj=function(){this.b.N||(q&&a.trigger(Cc.prototype.j.Nt,b),e.length&&a.trigger(Cc.prototype.j.Ot,b))};p.prototype.Vt=function(){return!0};p.prototype.Nt=function(){return!0};p.prototype.sA=function(){return!0};
p.prototype.Ot=function(){return!0};n.j=new p;n.A=new function(){};n.B=new function(){}})();function yc(f){this.b=f}
(function(){function f(){this.name="";this.Yl=0;this.vc=[]}function p(){a++;a===e.length&&e.push(new f);return e[a]}function n(){}function m(){}function g(){}var q=yc.prototype;q.L=function(a){this.X=a;this.b=a.b};q.L.prototype.I=function(){};q.K=function(a){this.type=a;this.b=a.b};var e=[],a=-1;q.K.prototype.I=function(){var b=this;window.c2_callFunction=function(c,d){var e,g,h,l=p();l.name=c.toLowerCase();l.Yl=0;if(d)for(l.vc.length=d.length,e=0,g=d.length;e<g;++e)h=d[e],l.vc[e]="number"===typeof h||
"string"===typeof h?h:"boolean"===typeof h?h?1:0:0;else J(l.vc);b.b.trigger(yc.prototype.j.Nm,b,l.name);a--;return l.Yl}};n.prototype.Nm=function(b){var c=0>a?null:e[a];return c?ub(b,c.name):!1};q.j=new n;m.prototype.CallFunction=function(b,c){var d=p();d.name=b.toLowerCase();d.Yl=0;Ga(d.vc,c);this.b.trigger(yc.prototype.j.Nm,this,d.name);a--};q.A=new m;g.prototype.Py=function(b,c){var d=p();d.name=c.toLowerCase();d.Yl=0;J(d.vc);var e,g;e=2;for(g=arguments.length;e<g;e++)d.vc.push(arguments[e]);this.b.trigger(yc.prototype.j.Nm,
this,d.name);a--;b.Px(d.Yl)};q.B=new g})();function Dc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Dc.prototype,g=[];m.L=function(e){this.X=e;this.b=e.b};m.L.prototype.I=function(){};m.K=function(e){this.type=e;this.b=e.b;this.link=document.createElement("a");this.frame=null;this.visible=!1;this.load=0;this.scale=1;this.url=this.pg=this.tt="";g.push(this)};var q=m.K.prototype;q.I=function(){this.k=document.createElement("div");this.q[7]?(this.k.innerHTML=this.q[9],this.frame=this.k):(this.k.Lh=document.createElement("iframe"),this.k.Lh.style.width=
"100%",this.k.Lh.style.height="100%",this.frame=this.k.Lh,this.q[8]&&this.zt(this.q[8]));this.frame.id=this.q[0]||this.FE();this.frame.vq=this.q[1];this.frame.setAttribute("id",this.frame.id);this.frame.setAttribute("class",this.frame.vq);this.q[3]&&this.frame.setAttribute("title",this.q[3]);this.frame.setAttribute("frameborder",0);this.frame.setAttribute("allowFullScreen","");var e=0<this.width?1:-1,a=0<this.height?1:-1;this.k.style.cssText="-webkit-transform:rotate("+this.u*e*a*180/3.1416+"deg);-moz-transform:rotate("+
this.u*e*a*180/3.1416+"deg);-o-transform:rotate("+this.u*e*a*180/3.1416+"deg);-ms-transform:rotate("+this.u*e*a*180/3.1416+"deg);";this.frame.style.background=this.q[4];this.frame.style.border=this.q[5];this.frame.style.color=this.q[10];switch(this.q[6]){case 0:this.frame.setAttribute("scrolling","no");this.frame.style.overflow="hidden";break;case 1:this.frame.style.overflow="auto";break;case 2:this.frame.style.overflowX="auto";this.frame.style.overflowY="hidden";break;case 3:this.frame.style.overflowX=
"hidden",this.frame.style.overflowY="auto"}this.q[11]||($(this.frame).css("user-select","none"),$(this.frame).css("cursor","default"));this.q[13]&&this.rz(this.q[13].replace(/\s/g,""));this.q[14]&&this.sz(this.q[14].replace(/\s/g,""));$(this.k).appendTo(this.b.Pd?this.b.Pd:"body");$(this.k.Lh).appendTo($(this.k));$(this.frame).bind("contextmenu",function(){return!1});this.q[2]||(jQuery(this.k).hide(),this.visible=!1);this.rd();this.b.qd(this)};q.Ma=function(){return{id:this.frame.id,"class":this.frame.vq,
html:this.k.innerHTML,css:this.k.style.cssText,style:this.frame.style.cssText,url:this.q[7]?"":this.k.Lh.contentWindow.location.href}};q.Sa=function(e){this.frame.id=e.id;this.frame.vq=e["class"];this.k.style.cssText=e.css;this.q[7]?this.k.innerHTML=e.html:(this.k.Lh.style.cssText=e.style,this.zt(e.url))};q.Tb=function(){};q.eb=function(){};q.gc=function(){g.splice(g.indexOf(this),1);jQuery(this.frame).remove();this.k=null};q.Ea=function(){this.rd()};q.rd=function(){if(!this.b.N){var e=this.r.ba(this.x,
this.y,!0),a=this.r.ba(this.x,this.y,!1),b=this.r.ba(this.x+this.width,this.y+this.height,!0),c=this.r.ba(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.r.visible||0>=b||0>=c||e>=this.b.width||a>=this.b.height)jQuery(this.k).hide();else{e=1>e?1:Math.round(e);a=1>a?1:Math.round(a);b=b>=this.b.width?Math.round(this.b.width-1):Math.round(b);c=c>=this.b.height?Math.round(this.b.height-1):Math.round(c);jQuery(this.k).show();var d=e+jQuery(this.b.canvas).offset().left,g=a+jQuery(this.b.canvas).offset().top;
jQuery(this.k).offset({left:parseInt(d),top:parseInt(g)});jQuery(this.k).width(b-e);jQuery(this.k).height(c-a);this.k.width=Math.round(this.k.width);this.k.height=Math.round(this.k.height);this.k.x=Math.round(this.k.x);this.k.y=Math.round(this.k.y);1==this.q[12]&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-.2+"em");2==this.q[12]&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-.4+"em");3==this.q[12]&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-
.1+"em");4==this.q[12]&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio+"em")}}};q.FE=function(){for(var e="",a=0;10>a;a++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(62*Math.random()));return e};q.rz=function(e){for(var a=e.replace(/ /gi).split(";"),b=0;b<a.length;b++){var c=$("link[href='"+a[b]+"']").offset();""!=a[b]&&"undefined"===typeof c&&(this.pg+=this.pg.length?" "+e:e,this.ak=document.createElement("link"),this.ak.setAttribute("type",
"text/css"),this.ak.setAttribute("rel","stylesheet"),this.ak.setAttribute("href",a[b]),"undefined"!=typeof this.ak&&document.getElementsByTagName("head")[0].appendChild(this.ak))}};q.sz=function(e){e=e.replace(/ /gi).split(";");for(var a=0;a<e.length;a++){var b=$("script[src='"+e[a]+"']").offset();""!=e[a]&&"undefined"===typeof b&&(this.ck=document.createElement("script"),this.ck.setAttribute("type","text/javascript"),this.ck.setAttribute("async","async"),this.ck.setAttribute("src",e[a]),"undefined"!=
typeof this.ck&&document.getElementsByTagName("head")[0].appendChild(this.ck))}};q.kc=function(e,a){var b=document.getElementsByTagName(a),c="script"===a?"src":"href";this.pg="script"===a?this.pg:this.pg.replace(e,"").replace(/^\s+|\s+$/g,"");for(var d=0;d<b.length;d++)if(b[d].getAttribute(c)===e){b[d].parentNode.removeChild(b[d]);break}};q.zt=function(e){if(!this.q[7]){e=0==e.indexOf("http")?e:"http://"+e;var a=this;this.url=e;this.load=1;this.k.Lh.src=this.url;this.b.trigger(f.prototype.Tk,this);
jQuery.ajax({context:a,dataType:"text",type:"GET",url:e,success:function(){a.frame.onload=function(){return function(){a.url=a.frame.contentWindow.location.href;a.b.trigger(f.prototype.oo,a)}}(a);a.load=0},error:function(){a.frame.onload=function(){return function(){a.url=a.frame.contentWindow.location.href;a.b.trigger(f.prototype.kc,a)}}(a);a.load=0}})}};m.kc=new function(){};f.prototype.kc=function(){return!0};f.prototype.oo=function(){return!0};f.prototype.Ez=function(){return this.b.N?!1:this.load};
f.prototype.Tk=function(){return!0};m.j=new f;p.prototype.Te=function(e){this.b.N||(this.visible=0!==e)};m.A=new p;n.prototype.pg=function(e){e.R(this.pg)};n.prototype.tt=function(e){e.R(this.tt)};m.B=new n})();function Ec(f){this.b=f}
(function(){function f(){}var p=Ec.prototype;p.L=function(g){this.X=g;this.b=g.b};p.L.prototype.I=function(){};p.K=function(g){this.type=g;this.b=g.b;this.lj=Array(256);this.wm=Array(256);this.kg=0};var n=p.K.prototype;n.I=function(){var g=this;this.b.N||(jQuery(document).keydown(function(f){g.Hl(f)}),jQuery(document).keyup(function(f){g.Il(f)}))};var m=[32,33,34,35,36,37,38,39,40,44];n.Hl=function(g){var f=!1;window!=window.top&&-1<m.indexOf(g.which)&&(g.preventDefault(),f=!0,g.stopPropagation());
if(this.lj[g.which])this.wm[g.which]&&!f&&g.preventDefault();else{this.lj[g.which]=!0;this.kg=g.which;this.b.xa=!0;this.b.trigger(Ec.prototype.j.aA,this);var e=this.b.trigger(Ec.prototype.j.Ht,this),a=this.b.trigger(Ec.prototype.j.pA,this);this.b.xa=!1;if(e||a)this.wm[g.which]=!0,f||g.preventDefault()}};n.Il=function(g){this.lj[g.which]=!1;this.kg=g.which;this.b.xa=!0;this.b.trigger(Ec.prototype.j.Ct,this);var f=this.b.trigger(Ec.prototype.j.Jt,this),e=this.b.trigger(Ec.prototype.j.It,this);this.b.xa=
!1;if(f||e||this.wm[g.which])this.wm[g.which]=!0,g.preventDefault()};n.Xf=function(){var g;for(g=0;256>g;++g)if(this.lj[g]){this.lj[g]=!1;this.kg=g;this.b.trigger(Ec.prototype.j.Ct,this);var f=this.b.trigger(Ec.prototype.j.Jt,this),e=this.b.trigger(Ec.prototype.j.It,this);if(f||e)this.wm[g]=!0}};n.Ma=function(){return{triggerKey:this.kg}};n.Sa=function(g){this.kg=g.triggerKey};f.prototype.Dz=function(g){return this.lj[g]};f.prototype.Ht=function(g){return g===this.kg};f.prototype.aA=function(){return!0};
f.prototype.Ct=function(){return!0};f.prototype.Jt=function(g){return g===this.kg};f.prototype.pA=function(g){return g===this.kg};f.prototype.It=function(g){return g===this.kg};p.j=new f;p.A=new function(){};p.B=new function(){}})();function Fc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Fc.prototype;m.L=function(g){this.X=g;this.b=g.b};m.L.prototype.I=function(){};m.K=function(g){this.type=g;this.b=g.b};var g=m.K.prototype;g.I=function(){if(this.b.N)ga("[Construct 2] List plugin not supported on this platform - the object will not be created");else{this.k=document.createElement("select");this.k.id=this.q[7];jQuery(this.k).appendTo(this.b.Pd?this.b.Pd:"body");this.k.title=this.q[1];this.k.disabled=0===this.q[3];0===this.q[4]&&
(this.k.size=2);this.k.multiple=0!==this.q[5];this.ok=0!==this.q[6];0===this.q[2]&&(jQuery(this.k).hide(),this.visible=!1);if(this.q[0]){var g=this.q[0].split(";"),e,a,b;e=0;for(a=g.length;e<a;e++)b=document.createElement("option"),b.text=g[e],this.k.add(b)}var c=this;this.k.onchange=function(){c.b.trigger(Fc.prototype.j.Zt,c)};this.k.onclick=function(a){a.stopPropagation();c.b.xa=!0;c.b.trigger(Fc.prototype.j.rg,c);c.b.xa=!1};this.k.ondblclick=function(a){a.stopPropagation();c.b.xa=!0;c.b.trigger(Fc.prototype.j.Wp,
c);c.b.xa=!1};this.k.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchend",function(a){a.stopPropagation()},!1);jQuery(this.k).mousedown(function(a){a.stopPropagation()});jQuery(this.k).mouseup(function(a){a.stopPropagation()});this.Ae=this.Be=this.we=this.ye=this.ze=this.xe=0;this.cj=!0;this.rd(!0);this.b.qd(this)}};g.Ma=function(){var g={tooltip:this.k.title,disabled:!!this.k.disabled,
items:[],sel:[]},e,a,b=g.items;e=0;for(a=this.k.length;e<a;e++)b.push(this.k.options[e].text);b=g.sel;if(this.k.multiple)for(e=0,a=this.k.length;e<a;e++)this.k.options[e].selected&&b.push(e);else b.push(this.k.selectedIndex);return g};g.Sa=function(g){this.k.title=g.tooltip;this.k.disabled=g.disabled;for(var e=g.items;this.k.length;)this.k.remove(this.k.length-1);var a,b,c;a=0;for(b=e.length;a<b;a++)c=document.createElement("option"),c.text=e[a],this.k.add(c);g=g.sel;if(this.k.multiple)for(a=0,b=
g.length;a<b;a++)g[a]<this.k.length&&(this.k.options[g[a]].selected=!0);else 1<=g.length&&(this.k.selectedIndex=g[0])};g.gc=function(){this.b.N||(jQuery(this.k).remove(),this.k=null)};g.Ea=function(){this.rd()};g.rd=function(g){if(!this.b.N){var e=this.r.ba(this.x,this.y,!0),a=this.r.ba(this.x,this.y,!1),b=this.r.ba(this.x+this.width,this.y+this.height,!0),c=this.r.ba(this.x+this.width,this.y+this.height,!1),d=this.b.width/this.b.devicePixelRatio,f=this.b.height/this.b.devicePixelRatio;!this.visible||
!this.r.visible||0>=b||0>=c||e>=d||a>=f?(this.cj&&jQuery(this.k).hide(),this.cj=!1):(1>e&&(e=1),1>a&&(a=1),b>=d&&(b=d-1),c>=f&&(c=f-1),d=window.innerWidth,f=window.innerHeight,g||this.xe!==e||this.ze!==a||this.ye!==b||this.we!==c||this.Be!==d||this.Ae!==f?(this.xe=e,this.ze=a,this.ye=b,this.we=c,this.Be=d,this.Ae=f,this.cj||(jQuery(this.k).show(),this.cj=!0),g=Math.round(e)+jQuery(this.b.canvas).offset().left,d=Math.round(a)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),
jQuery(this.k).offset({left:g,top:d}),jQuery(this.k).width(Math.round(b-e)),jQuery(this.k).height(Math.round(c-a)),this.ok&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-.2+"em")):this.cj||(jQuery(this.k).show(),this.cj=!0))}};g.Tb=function(){};g.eb=function(){};f.prototype.Yy=function(g,e){return nc(this.k.selectedIndex,g,e)};f.prototype.Zt=function(){return!0};f.prototype.rg=function(){return!0};f.prototype.Wp=function(){return!0};m.j=new f;p.prototype.Te=function(g){this.b.N||
(this.visible=0!==g)};p.prototype.Oc=function(g){this.b.N||(this.k.disabled=0===g)};p.prototype.ek=function(g,e){this.b.N||jQuery(this.k).css(g,e)};m.A=new p;n.prototype.PA=function(g){this.b.N?g.ka(0):g.ka(this.k.selectedIndex)};n.prototype.QA=function(g){if(this.b.N)g.R("");else{var e=this.k.selectedIndex;0>e||e>=this.k.length?g.R(""):g.R(this.k.options[e].text)}};m.B=new n})();
try{!function(){var f,p,n;!function(){var m={},g={};f=function(g,e,a){m[g]={mC:e,bC:a}};n=p=function(f){function e(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=f.split("/").slice(0,-1),d=0,c=a.length;c>d;d++){var e=a[d];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(n.eH=m,g[f])return g[f];if(g[f]={},!m[f])throw Error("Could not find module "+f);for(var a,b=m[f],c=b.mC,b=b.bC,d=[],k=0,u=c.length;u>k;k++)"exports"===c[k]?d.push(a={}):d.push(p(e(c[k])));c=b.apply(this,d);return g[f]=
a||c}}();f("promise/all",["./utils","exports"],function(f,g){var n=f.isArray,e=f.isFunction;g.all=function(a){if(!n(a))throw new TypeError("You must pass an array to all.");return new this(function(b,c){function d(a){return function(d){f[a]=d;0===--h&&b(f)}}var g,f=[],h=a.length;0===h&&b([]);for(var l=0;l<a.length;l++)(g=a[l])&&e(g.then)?g.then(d(l),c):(f[l]=g,0===--h&&b(f))})}});f("promise/asap",["exports"],function(f){function g(){return function(){process.vH(a)}}function n(){var b=0,c=new d(a),
e=document.createTextNode("");return c.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function e(){return function(){k.setTimeout(a,1)}}function a(){for(var a=0;a<p.length;a++){var b=p[a];(0,b[0])(b[1])}p=[]}var b,c="undefined"!=typeof window?window:{},d=c.MutationObserver||c.WebKitMutationObserver,k="undefined"!=typeof global?global:void 0===this?window:this,p=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?g():d?n():e();f.UB=function(a,d){1===p.push([a,
d])&&b()}});f("promise/config",["exports"],function(f){var g={mH:!1};f.Uu=g;f.eC=function(f,e){return 2!==arguments.length?g[f]:void(g[f]=e)}});f("promise/polyfill",["./promise","./utils","exports"],function(f,g,n){var e=f.Promise,a=g.isFunction;n.lF=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var c;return new b.Promise(function(a){c=
a}),a(c)}()||(b.Promise=e)}});f("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(f,g,n,e,a,b,c,d){function k(a){if(!z(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof k))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.Tm=[];p(a,this)}function p(a,b){function d(a){r(b,
a)}function c(a){D(b,a)}try{a(d,c)}catch(h){c(h)}}function h(a,b,d,c){var h,e,g,l,f=z(d);if(f)try{h=d(c),g=!0}catch(k){l=!0,e=k}else h=c,g=!0;F(b,h)||(f&&g?r(b,h):l?D(b,e):a===P?r(b,h):a===S&&D(b,h))}function l(a,b,d,c){a=a.Tm;var h=a.length;a[h]=b;a[h+P]=d;a[h+S]=c}function v(a,b){for(var d,c,e=a.Tm,g=a.Sm,l=0;l<e.length;l+=3)d=e[l],c=e[l+b],h(b,d,c,g);a.Tm=null}function F(a,b){var d,c=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(G(b)&&(c=b.then,
z(c)))return c.call(b,function(c){return d?!0:(d=!0,void(b!==c?r(a,c):C(a,c)))},function(b){return d?!0:(d=!0,void D(a,b))}),!0}catch(h){return d?!0:(D(a,h),!0)}return!1}function r(a,b){a===b?C(a,b):F(a,b)||C(a,b)}function C(a,b){a.xf===E&&(a.xf=L,a.Sm=b,T.async(w,a))}function D(a,b){a.xf===E&&(a.xf=L,a.Sm=b,T.async(t,a))}function w(a){v(a,a.xf=P)}function t(a){v(a,a.xf=S)}var T=f.Uu,G=(f.eC,g.OE),z=g.isFunction;f=(g.now,n.all);e=e.race;a=a.resolve;b=b.reject;T.async=c.UB;var E=void 0,L=0,P=1,S=2;
k.prototype={constructor:k,xf:void 0,Sm:void 0,Tm:void 0,then:function(a,b){var d=this,c=new this.constructor(function(){});if(this.xf){var e=arguments;T.async(function(){h(d.xf,c,e[d.xf-1],d.Sm)})}else l(this,c,a,b);return c},"catch":function(a){return this.then(null,a)}};k.all=f;k.race=e;k.resolve=a;k.reject=b;d.Promise=k});f("promise/race",["./utils","exports"],function(f,g){var n=f.isArray;g.race=function(e){if(!n(e))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var c,d=0;d<e.length;d++)(c=e[d])&&"function"==typeof c.then?c.then(a,b):a(c)})}});f("promise/reject",["exports"],function(f){f.reject=function(g){return new this(function(f,e){e(g)})}});f("promise/resolve",["exports"],function(f){f.resolve=function(g){return g&&"object"==typeof g&&g.constructor===this?g:new this(function(f){f(g)})}});f("promise/utils",["exports"],function(f){function g(e){return"function"==typeof e}var n=Date.now||function(){return(new Date).getTime()};f.OE=function(e){return g(e)||
"object"==typeof e&&null!==e};f.isFunction=g;f.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)};f.now=n});p("promise/polyfill").lF()}();var Gc=function(){return function(f){function p(m){if(n[m])return n[m].Ye;var g=n[m]={Ye:{},id:m,loaded:!1};return f[m].call(g.Ye,g,g.Ye,p),g.loaded=!0,g.Ye}var n={};return p.kc=f,p.pk=n,p.Tk="",p(0)}([function(f,p,n){p.Rm=!0;var m=function(g){function f(a,b){a[b]=function(){var d=arguments;return a.ready().then(function(){return a[b].apply(a,
d)})}}function e(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var d in b)b.hasOwnProperty(d)&&(h(b[d])?arguments[0][d]=b[d].slice():arguments[0][d]=b[d])}return arguments[0]}function a(a){for(var b in c)if(c.hasOwnProperty(b)&&c[b]===a)return!0;return!1}var b={},c={bk:"asyncStorage",dk:"localStorageWrapper",gk:"webSQLStorage"},d="clear getItem iterate key keys length removeItem setItem".split(" "),k={description:"",Mi:[c.bk,c.gk,c.dk].slice(),name:"localforage",size:4980736,Ta:"keyvaluepairs",
version:1},m=function(a){var b={},d;try{var h=h||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.oo||a.msIndexedDB;d="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:h&&"function"==typeof h.open&&"undefined"!=typeof a.IDBKeyRange}catch(e){d=!1}b[c.bk]=!!d;var g;try{g=a.openDatabase}catch(f){g=!1}b[c.gk]=!!g;var k;try{k=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(m){k=
!1}return b[c.dk]=!!k,b}(g),h=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function g(a){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");this.bk=c.bk;this.dk=c.dk;this.gk=c.gk;this.fq=e({},k);this.ph=e({},this.fq,a);this.su=this.Ue=null;this.tg=!1;this.Qa=null;this.tu();this.Ix(this.ph.Mi)}return g.prototype.Uu=function(a){if("object"==typeof a){if(this.tg)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.ph[b]=a[b];return"driver"in a&&a.Mi&&this.Ix(this.ph.Mi),!0}return"string"==typeof a?this.ph[a]:this.ph},g.prototype.Mi=function(){return this.ik||null},g.prototype.zv=function(d,c,h){var e=this,g=function(){if(a(d))switch(d){case e.bk:return new Promise(function(a){a(n(1))});case e.dk:return new Promise(function(a){a(n(2))});case e.gk:return new Promise(function(a){a(n(4))})}else if(b[d])return Promise.resolve(b[d]);return Promise.reject(Error("Driver not found."))}();
return g.then(c,h),g},g.prototype.ready=function(a){var b=this,d=b.Ue.then(function(){return null===b.tg&&(b.tg=b.su()),b.tg});return d.then(a,a),d},g.prototype.Ix=function(a,b,d){function c(){g.ph.Mi=g.Mi()}function e(a){return function(){function b(){for(;d<a.length;){var h=a[d];return d++,g.Qa=null,g.tg=null,g.zv(h).then(function(a){return g.IB(a),c(),g.tg=g.hq(g.ph),g.tg})["catch"](b)}c();return g.Ue=Promise.reject(Error("No available storage method found.")),g.Ue}var d=0;return b()}}var g=this;
h(a)||(a=[a]);var l=this.JB(a);return this.Ue=(null!==this.Ue?this.Ue["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=l[0];return g.Qa=null,g.tg=null,g.zv(a).then(function(a){g.ik=a.ik;c();g.tu();g.su=e(l)})})["catch"](function(){c();return g.Ue=Promise.reject(Error("No available storage method found.")),g.Ue}),this.Ue.then(b,d),this.Ue},g.prototype.supports=function(a){return!!m[a]},g.prototype.IB=function(a){e(this,a)},g.prototype.JB=function(a){for(var b=
[],d=0,c=a.length;c>d;d++){var h=a[d];this.supports(h)&&b.push(h)}return b},g.prototype.tu=function(){for(var a=0;a<d.length;a++)f(this,d[a])},g.prototype.tk=function(a){return new g(a)},g}())}("undefined"!=typeof window?window:self);p["default"]=m;f.Ye=p["default"]},function(f,p){p.Rm=!0;p["default"]=function(f){function m(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(d){if("TypeError"!==d.name)throw d;for(var c=new (f.BlobBuilder||f.kc||f.Tk||f.WebKitBlobBuilder),h=0;h<a.length;h+=1)c.append(a[h]);
return c.getBlob(b.type)}}function g(a){return new Promise(function(b,d){var c=new XMLHttpRequest;c.open("GET",a);c.withCredentials=!0;c.responseType="arraybuffer";c.onreadystatechange=function(){return 4===c.readyState?200===c.status?b({response:c.response,type:c.getResponseHeader("Content-Type")}):void d({status:c.status,response:c.response}):void 0};c.send()})}function q(a){return(new Promise(function(b,d){var c=m([""],{type:"image/png"}),h=a.transaction([E],"readwrite");h.objectStore(E).put(c,
"key");h.oncomplete=function(){var c=a.transaction([E],"readwrite").objectStore(E).get("key");c.onerror=d;c.onsuccess=function(a){var d=URL.createObjectURL(a.target.result);g(d).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(d)})}};h.onerror=h.onabort=d}))["catch"](function(){return!1})}function e(a){return"boolean"==typeof G?Promise.resolve(G):q(a).then(function(a){return G=a})}function a(a){return new Promise(function(b,d){var c=new FileReader;
c.onerror=d;c.onloadend=function(d){b({ru:!0,data:btoa(d.target.result||""),type:a.type})};c.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),d=b.length,c=new ArrayBuffer(d),h=new Uint8Array(c),e=0;d>e;e++)h[e]=b.charCodeAt(e);return m([c],{type:a.type})}function c(a){var b=this,d=b.gq().then(function(){var a=z[b.Qa.name];return a&&a.Ji?a.Ji:void 0});return d.then(a,a),d}function d(a){a=z[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.$u.push(b);a.Ji?a.Ji=a.Ji.then(function(){return b.promise}):
a.Ji=b.promise}function k(a){function b(){return Promise.resolve()}var d=this,h={db:null};if(a)for(var e in a)h[e]=a[e];z||(z={});var g=z[h.name];g||(g={Sn:[],db:null,Ji:null,$u:[]},z[h.name]=g);g.Sn.push(d);d.gq||(d.gq=d.ready,d.ready=c);a=[];for(e=0;e<g.Sn.length;e++){var l=g.Sn[e];l!==d&&a.push(l.gq()["catch"](b))}var k=g.Sn.slice(0);return Promise.all(a).then(function(){return h.db=g.db,p(h,!1)}).then(function(a){h.db=a;var b;b=d.fq.version;if(h.db){var c=!h.db.objectStoreNames.contains(h.Ta),
e=h.version>h.db.version;(h.version<h.db.version&&(h.version!==b&&f.console.warn('The database "'+h.name+"\" can't be downgraded from version "+h.db.version+" to version "+h.version+"."),h.version=h.db.version),e||c)?(c&&(b=h.db.version+1,b>h.version&&(h.version=b)),b=!0):b=!1}else b=!0;return b?p(h,!0):a}).then(function(a){h.db=g.db=a;d.Qa=h;for(a=0;a<k.length;a++){var b=k[a];b!==d&&(b.Qa.db=h.db,b.Qa.version=h.version)}})}function p(a,b){return new Promise(function(c,h){if(a.db){if(!b)return c(a.db);
d(a);a.db.close()}var e=[a.name];b&&e.push(a.version);var g=T.open.apply(T,e);b&&(g.onupgradeneeded=function(b){var d=g.result;try{d.createObjectStore(a.Ta),1>=b.oldVersion&&d.createObjectStore(E)}catch(c){if("ConstraintError"!==c.name)throw c;f.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ta+'" already exists.')}});g.onerror=function(){h(g.error)};g.onsuccess=function(){c(g.result);var b=z[a.name].$u.pop();
b&&b.resolve()}})}function h(a,d){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var h=new Promise(function(d,h){c.ready().then(function(){var e=c.Qa,g=e.db.transaction(e.Ta,"readonly").objectStore(e.Ta).get(a);g.onsuccess=function(){var a=g.result;void 0===a&&(a=null);a&&a.ru&&(a=b(a));d(a)};g.onerror=function(){h(g.error)}})["catch"](h)});return t(h,d),h}function l(a,d){var c=this,h=new Promise(function(d,h){c.ready().then(function(){var e=
c.Qa,g=e.db.transaction(e.Ta,"readonly").objectStore(e.Ta).openCursor(),l=1;g.onsuccess=function(){var c=g.result;if(c){var h=c.value;h&&h.ru&&(h=b(h));h=a(h,c.key,l++);void 0!==h?d(h):c["continue"]()}else d()};g.onerror=function(){h(g.error)}})["catch"](h)});return t(h,d),h}function v(b,d,c){var h=this;"string"!=typeof b&&(f.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=new Promise(function(c,g){var l;h.ready().then(function(){return l=h.Qa,d instanceof Blob?e(l.db).then(function(b){return b?
d:a(d)}):d}).then(function(a){var d=l.db.transaction(l.Ta,"readwrite"),h=d.objectStore(l.Ta);null===a&&(a=void 0);d.oncomplete=function(){void 0===a&&(a=null);c(a)};d.onabort=d.onerror=function(){g(e.error?e.error:e.transaction.error)};var e=h.put(a,b)})["catch"](g)});return t(g,c),g}function F(a,b){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=new Promise(function(b,c){d.ready().then(function(){var h=d.Qa,e=h.db.transaction(h.Ta,"readwrite"),
g=e.objectStore(h.Ta)["delete"](a);e.oncomplete=function(){b()};e.onerror=function(){c(g.error)};e.onabort=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return t(c,b),c}function r(a){var b=this,d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa,h=c.db.transaction(c.Ta,"readwrite"),e=h.objectStore(c.Ta).clear();h.oncomplete=function(){a()};h.onabort=h.onerror=function(){d(e.error?e.error:e.transaction.error)}})["catch"](d)});return t(d,a),d}function C(a){var b=this,
d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa,h=c.db.transaction(c.Ta,"readonly").objectStore(c.Ta).count();h.onsuccess=function(){a(h.result)};h.onerror=function(){d(h.error)}})["catch"](d)});return t(d,a),d}function D(a,b){var d=this,c=new Promise(function(b,c){return 0>a?void b(null):void d.ready().then(function(){var h=d.Qa,e=!1,g=h.db.transaction(h.Ta,"readonly").objectStore(h.Ta).openCursor();g.onsuccess=function(){var d=g.result;return d?void(0===a?b(d.key):e?b(d.key):(e=
!0,d.advance(a))):void b(null)};g.onerror=function(){c(g.error)}})["catch"](c)});return t(c,b),c}function w(a){var b=this,d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa,h=c.db.transaction(c.Ta,"readonly").objectStore(c.Ta).openCursor(),e=[];h.onsuccess=function(){var b=h.result;return b?(e.push(b.key),void b["continue"]()):void a(e)};h.onerror=function(){d(h.error)}})["catch"](d)});return t(d,a),d}function t(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var T=T||f.indexedDB||
f.webkitIndexedDB||f.mozIndexedDB||f.oo||f.msIndexedDB;if(T){var G,z,E="local-forage-detect-blob-support";return{ik:"asyncStorage",hq:k,bw:l,getItem:h,setItem:v,removeItem:F,clear:r,length:C,key:D,keys:w}}}("undefined"!=typeof window?window:self);f.Ye=p["default"]},function(f,p,n){p.Rm=!0;p["default"]=function(f){function g(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var q=null;try{if(!(f.localStorage&&"setItem"in f.localStorage))return;q=f.localStorage}catch(e){return}return{ik:"localStorageWrapper",
hq:function(a){var b={};if(a)for(var c in a)b[c]=a[c];return b.hf=b.name+"/",b.Ta!==this.fq.Ta&&(b.hf+=b.Ta+"/"),this.Qa=b,(new Promise(function(a){a(n(3))})).then(function(a){return b.ni=a,Promise.resolve()})},bw:function(a,b){var c=this,d=c.ready().then(function(){for(var b=c.Qa,d=b.hf,h=d.length,e=q.length,g=1,f=0;e>f;f++){var r=q.key(f);if(0===r.indexOf(d)){var m=q.getItem(r);if(m&&(m=b.ni.En(m)),m=a(m,r.substring(h),g++),void 0!==m)return m}}});return g(d,b),d},getItem:function(a,b){var c=this;
"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){var b=c.Qa,d=q.getItem(b.hf+a);return d&&(d=b.ni.En(d)),d});return g(d,b),d},setItem:function(a,b,c){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=d.ready().then(function(){void 0===b&&(b=null);var c=b;return new Promise(function(h,e){var g=d.Qa;g.ni.serialize(b,function(b,d){if(d)e(d);else try{q.setItem(g.hf+
a,b),h(c)}catch(f){"QuotaExceededError"!==f.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==f.name||e(f),e(f)}})})});return g(e,c),e},removeItem:function(a,b){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=c.ready().then(function(){q.removeItem(c.Qa.hf+a)});return g(d,b),d},clear:function(a){var b=this,c=b.ready().then(function(){for(var a=b.Qa.hf,c=q.length-1;0<=c;c--){var e=q.key(c);0===e.indexOf(a)&&q.removeItem(e)}});return g(c,a),c},length:function(a){var b=
this.keys().then(function(a){return a.length});return g(b,a),b},key:function(a,b){var c=this,d=c.ready().then(function(){var b,d=c.Qa;try{b=q.key(a)}catch(h){b=null}return b&&(b=b.substring(d.hf.length)),b});return g(d,b),d},keys:function(a){var b=this,c=b.ready().then(function(){for(var a=b.Qa,c=q.length,e=[],h=0;c>h;h++)0===q.key(h).indexOf(a.hf)&&e.push(q.key(h).substring(a.hf.length));return e});return g(c,a),c}}}("undefined"!=typeof window?window:self);f.Ye=p["default"]},function(f,p){p.Rm=!0;
p["default"]=function(f){function m(a){var b,c,d,e,g;b=.75*a.length;var h=a.length,l=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var f=new ArrayBuffer(b),m=new Uint8Array(f);for(b=0;h>b;b+=4)c=q.indexOf(a[b]),d=q.indexOf(a[b+1]),e=q.indexOf(a[b+2]),g=q.indexOf(a[b+3]),m[l++]=c<<2|d>>4,m[l++]=(15&d)<<4|e>>2,m[l++]=(3&e)<<6|63&g;return f}function g(a){var b=new Uint8Array(a),c="";for(a=0;a<b.length;a+=3)c+=q[b[a]>>2],c+=q[(3&b[a])<<4|b[a+1]>>4],c+=q[(15&b[a+1])<<2|b[a+2]>>6],c+=q[63&b[a+2]];
return 2===b.length%3?c=c.substring(0,c.length-1)+"=":1===b.length%3&&(c=c.substring(0,c.length-2)+"=="),c}var q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var c="";if(a&&(c=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var d,e="__lfsc__:";a instanceof ArrayBuffer?(d=a,e+="arbf"):(d=a.buffer,"[object Int8Array]"===c?e+="si08":"[object Uint8Array]"===
c?e+="ui08":"[object Uint8ClampedArray]"===c?e+="uic8":"[object Int16Array]"===c?e+="si16":"[object Uint16Array]"===c?e+="ur16":"[object Int32Array]"===c?e+="si32":"[object Uint32Array]"===c?e+="ui32":"[object Float32Array]"===c?e+="fl32":"[object Float64Array]"===c?e+="fl64":b(Error("Failed to get type for BinaryArray")));b(e+g(d))}else if("[object Blob]"===c)c=new FileReader,c.onload=function(){var d="~~local_forage_type~"+a.type+"~"+g(this.result);b("__lfsc__:blob"+d)},c.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(f){console.error("Couldn't convert value into a JSON string: ",
a),b(null,f)}},En:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,c=a.substring(13);a=a.substring(9,13);if("blob"===a&&e.test(c)){var d=c.match(e);b=d[1];c=c.substring(d[0].length)}c=m(c);switch(a){case "arbf":return c;case "blob":var g;c=[c];b={type:b};c=c||[];b=b||{};try{g=new Blob(c,b)}catch(q){if("TypeError"!==q.name)throw q;g=new (f.BlobBuilder||f.kc||f.Tk||f.WebKitBlobBuilder);for(a=0;a<c.length;a+=1)g.append(c[a]);g=g.getBlob(b.type)}return g;case "si08":return new Int8Array(c);
case "ui08":return new Uint8Array(c);case "uic8":return new Uint8ClampedArray(c);case "si16":return new Int16Array(c);case "ur16":return new Uint16Array(c);case "si32":return new Int32Array(c);case "ui32":return new Uint32Array(c);case "fl32":return new Float32Array(c);case "fl64":return new Float64Array(c);default:throw Error("Unkown type: "+a);}},CH:m,hH:g}}("undefined"!=typeof window?window:self);f.Ye=p["default"]},function(f,p,n){p.Rm=!0;p["default"]=function(f){function g(a){var b=this,d={db:null};
if(a)for(var c in a)d[c]="string"!=typeof a[c]?a[c].toString():a[c];var h=new Promise(function(a,c){try{d.db=l(d.name,String(d.version),d.description,d.size)}catch(h){return c(h)}d.db.transaction(function(h){h.executeSql("CREATE TABLE IF NOT EXISTS "+d.Ta+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Qa=d;a()},function(a,b){c(b)})})});return(new Promise(function(a){a(n(3))})).then(function(a){return d.ni=a,h})}function q(a,b){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var c=new Promise(function(b,c){d.ready().then(function(){var h=d.Qa;h.db.transaction(function(d){d.executeSql("SELECT * FROM "+h.Ta+" WHERE key = ? LIMIT 1",[a],function(a,d){var c=d.rows.length?d.rows.item(0).value:null;c&&(c=h.ni.En(c));b(c)},function(a,b){c(b)})})})["catch"](c)});return h(c,b),c}function e(a,b){var d=this,c=new Promise(function(b,c){d.ready().then(function(){var h=d.Qa;h.db.transaction(function(d){d.executeSql("SELECT * FROM "+h.Ta,[],function(d,c){for(var e=c.rows,
g=e.length,l=0;g>l;l++){var f=e.item(l),k=f.value;if(k&&(k=h.ni.En(k)),k=a(k,f.key,l+1),void 0!==k)return void b(k)}b()},function(a,b){c(b)})})})["catch"](c)});return h(c,b),c}function a(a,b,d){var c=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(d,h){c.ready().then(function(){void 0===b&&(b=null);var e=b,g=c.Qa;g.ni.serialize(b,function(b,c){c?h(c):g.db.transaction(function(c){c.executeSql("INSERT OR REPLACE INTO "+g.Ta+
" (key, value) VALUES (?, ?)",[a,b],function(){d(e)},function(a,b){h(b)})},function(a){a.code===a.QUOTA_ERR&&h(a)})})})["catch"](h)});return h(e,d),e}function b(a,b){var d=this;"string"!=typeof a&&(f.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=new Promise(function(b,c){d.ready().then(function(){var h=d.Qa;h.db.transaction(function(d){d.executeSql("DELETE FROM "+h.Ta+" WHERE key = ?",[a],function(){b()},function(a,b){c(b)})})})["catch"](c)});return h(c,b),c}function c(a){var b=
this,d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa;c.db.transaction(function(b){b.executeSql("DELETE FROM "+c.Ta,[],function(){a()},function(a,b){d(b)})})})["catch"](d)});return h(d,a),d}function d(a){var b=this,d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa;c.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+c.Ta,[],function(b,d){var c=d.rows.item(0).pk;a(c)},function(a,b){d(b)})})})["catch"](d)});return h(d,a),d}function k(a,b){var d=this,
c=new Promise(function(b,c){d.ready().then(function(){var h=d.Qa;h.db.transaction(function(d){d.executeSql("SELECT key FROM "+h.Ta+" WHERE id = ? LIMIT 1",[a+1],function(a,d){var c=d.rows.length?d.rows.item(0).key:null;b(c)},function(a,b){c(b)})})})["catch"](c)});return h(c,b),c}function p(a){var b=this,d=new Promise(function(a,d){b.ready().then(function(){var c=b.Qa;c.db.transaction(function(b){b.executeSql("SELECT key FROM "+c.Ta,[],function(b,d){for(var c=[],h=0;h<d.rows.length;h++)c.push(d.rows.item(h).key);
a(c)},function(a,b){d(b)})})})["catch"](d)});return h(d,a),d}function h(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var l=f.openDatabase;if(l)return{ik:"webSQLStorage",hq:g,bw:e,getItem:q,setItem:a,removeItem:b,clear:c,length:d,key:k,keys:p}}("undefined"!=typeof window?window:self);f.Ye=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Ye=Gc():"function"==typeof define&&define.gH?define([],Gc):"object"==typeof exports?exports.localforage=Gc():this.localforage=
Gc()}catch(Hc){}function Ic(f){this.b=f}(function(){function f(){}function p(){}var n=Ic.prototype;n.L=function(g){this.X=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g){this.type=g;this.b=g.b};var m=n.K.prototype;m.I=function(){};m.gc=function(){};m.Ma=function(){return{}};m.Sa=function(){};f.prototype.kc=function(){return!0};n.j=new f;n.A=new function(){};p.prototype.xt=function(g){g.R("")};n.B=new p})();function Jc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Jc.prototype;m.L=function(a){this.X=a;this.b=a.b};m.L.prototype.I=function(){};m.K=function(a){this.type=a;this.b=a.b;this.rh=Array(4);this.my=this.Bp=this.wi=this.Tf=this.Sf=0;this.ir=!1};var g=m.K.prototype;g.I=function(){var a=this;if(!this.b.N){jQuery(document).mousemove(function(b){a.Kl(b)});jQuery(document).mousedown(function(b){a.Jl(b)});jQuery(document).mouseup(function(b){a.Ll(b)});jQuery(document).dblclick(function(b){a.VE(b)});
var b=function(b){a.$E(b)};document.addEventListener("mousewheel",b,!1);document.addEventListener("DOMMouseScroll",b,!1)}};var q={left:0,top:0};g.Kl=function(a){var b=this.b.N?q:jQuery(this.b.canvas).offset();this.Sf=a.pageX-b.left;this.Tf=a.pageY-b.top};g.Lw=function(){return 0<this.b.Dc?!0:0<=this.Sf&&0<=this.Tf&&this.Sf<this.b.width&&this.Tf<this.b.height};g.Jl=function(a){this.Lw()&&(this.rh[a.which]=!0,this.b.xa=!0,this.b.trigger(Jc.prototype.j.$z,this),this.wi=a.which-1,this.Bp=0,this.b.trigger(Jc.prototype.j.Vp,
this),this.b.trigger(Jc.prototype.j.Xp,this),this.b.xa=!1)};g.Ll=function(a){this.rh[a.which]&&(this.b.ao&&!this.b.ef&&a.preventDefault(),this.b.ao=!0,this.rh[a.which]=!1,this.b.xa=!0,this.wi=a.which-1,this.b.trigger(Jc.prototype.j.Wt,this),this.b.xa=!1)};g.VE=function(a){this.Lw()&&(a.preventDefault(),this.b.xa=!0,this.wi=a.which-1,this.Bp=1,this.b.trigger(Jc.prototype.j.Vp,this),this.b.trigger(Jc.prototype.j.Xp,this),this.b.xa=!1)};g.$E=function(a){this.my=0>(a.wheelDelta?a.wheelDelta:a.detail?
-a.detail:0)?0:1;this.ir=!1;this.b.xa=!0;this.b.trigger(Jc.prototype.j.mu,this);this.b.xa=!1;this.ir&&vb(a)&&a.preventDefault()};g.Xf=function(){var a,b;a=0;for(b=this.rh.length;a<b;++a)this.rh[a]&&(this.rh[a]=!1,this.wi=a-1,this.b.trigger(Jc.prototype.j.Wt,this))};f.prototype.Vp=function(a,b){return a===this.wi&&b===this.Bp};f.prototype.$z=function(){return!0};f.prototype.wz=function(a){return this.rh[a+1]};f.prototype.Wt=function(a){return a===this.wi};f.prototype.Hz=function(a){var b=this.b.Eh();
return bb(this.b.Nj(a,this.Sf,this.Tf,b.Yi),b.Yi)};f.prototype.Xp=function(a,b,c){return a!==this.wi||b!==this.Bp?!1:this.b.Nj(c,this.Sf,this.Tf,!1)};f.prototype.mu=function(a){this.ir=!0;return a===this.my};m.j=new f;var e=null;p.prototype.XA=function(a){this.b.N||(a="auto pointer text crosshair move help wait none".split(" ")[a],e!==a&&(e=a,document.body.style.cursor=a))};p.prototype.YA=function(a){this.b.N||this.b.ef||!a||(a=a.Jk())&&a.Sb&&(a=a.Sb,e!==a&&(e=a,a="url("+a.HD()+") "+Math.round(a.oc*
a.width)+" "+Math.round(a.pc*a.height)+", auto",document.body.style.cursor="",document.body.style.cursor=a))};m.A=new p;n.prototype.hk=function(a,b){var c,d,e,g,h;la(b)?(c=this.b.Jf(0),d=c.scale,e=c.Ic,g=c.Uc,h=c.u,c.scale=1,c.Ic=1,c.Uc=1,c.u=0,a.S(c.bb(this.Sf,this.Tf,!0)),c.scale=d,c.Ic=e,c.Uc=g,c.u=h):(c=ma(b)?this.b.Jf(b):this.b.Lk(b))?a.S(c.bb(this.Sf,this.Tf,!0)):a.S(0)};n.prototype.oh=function(a,b){var c,d,e,g,h;la(b)?(c=this.b.Jf(0),d=c.scale,e=c.Ic,g=c.Vc,h=c.u,c.scale=1,c.Ic=1,c.Vc=1,c.u=
0,a.S(c.bb(this.Sf,this.Tf,!1)),c.scale=d,c.Ic=e,c.Vc=g,c.u=h):(c=ma(b)?this.b.Jf(b):this.b.Lk(b))?a.S(c.bb(this.Sf,this.Tf,!1)):a.S(0)};m.B=new n})();function X(f){this.b=f}
(function(){function f(a){this.i=a;this.history=[]}function p(a){this.RE=a;this.u=this.y=this.x=this.timestamp=0;this.Sg=[]}function n(a,b,d,c){a=b-a;if(0===a)return 0;b=qa(a);if(b<=qa(d/10)||1>b||1E3<=b)return a;var e=b/50;c&&(e=ra(e,1));c=qa(d/5);10<=b&&(e=b/10,c=qa(d/2));d=ra(e,c);d>b&&(d=b);return 0<a?d:-d}function m(){}function g(){}function q(a){switch(a){case 0:return"o";case 1:return"r";case 2:return"u";default:return"o"}}function e(){}function a(a,b){if(!a)return null;b=Math.floor(b);return 0>
b||b>=a.length?null:a[b]}var b=X.prototype;b.L=function(a){this.X=a;this.b=a.b};b.L.prototype.I=function(){};b.K=function(a){this.type=a;this.b=a.b};var c=b.K.prototype,d=!1;c.I=function(){this.J=null;(d=window.C2Multiplayer_IsSupported())&&"undefined"!==typeof window.C2Multiplayer&&(this.J=new window.C2Multiplayer);this.Nw=this.Zr=this.Ow=this.Mw=this.kw=this.Pl=this.Ql=this.kv=this.Wx="";this.Ep={};this.Xk={};this.of={};this.Xj=this.Ij=this.BD=null;this.eo=[];this.vi=[];this.lf={};var a=this;d&&
(this.J.onserverlist=function(){a.b.trigger(X.prototype.j.vA,a)},this.J.onsignallingerror=function(b){a.PF(b);a.b.trigger(X.prototype.j.bu,a)},this.J.onsignallingclose=function(){a.b.trigger(X.prototype.j.au,a);a.Wx=""},this.J.onsignallingwelcome=function(){a.b.trigger(X.prototype.j.$t,a)},this.J.onsignallinglogin=function(){a.b.trigger(X.prototype.j.fu,a)},this.J.onsignallingjoin=function(b){a.Xk={};a.of={};a.vi.length=0;a.eo.length=0;a.lf={};a.b.trigger(X.prototype.j.cu,a);a.b.Rh&&b&&a.Xj.postMessage("start")},
this.J.onsignallingleave=function(){a.b.trigger(X.prototype.j.eu,a)},this.J.onsignallingkicked=function(){a.b.trigger(X.prototype.j.du,a)},this.J.onbeforeclientupdate=function(){a.b.trigger(X.prototype.j.Dt,a)},this.J.onpeeropen=function(b){a.Ql=b.id;a.Pl=b.alias;a.b.trigger(X.prototype.j.St,a)},this.J.onpeerclose=function(b,d){a.Ql=b.id;a.Pl=b.alias;a.kw=d||"unknown";var c=a.vv(b);if(c){var e=a.Ep[c.type];e&&e.removeObjectNid(b.nid);a.b.Ld(c)}a.of.hasOwnProperty(b.id)&&delete a.of[b.id];a.b.trigger(X.prototype.j.Tt,
a)},this.J.onpeermessage=function(b,d){a.Ow=d.t;a.Zr=d.f?d.f:b.id;a.Nw=a.J.getAliasFromId(a.Zr);a.Mw=d.m;a.b.trigger(X.prototype.j.bA,a);a.b.trigger(X.prototype.j.Ut,a)},this.J.onsignallinginstancelist=function(b){a.BD=b;a.b.trigger(X.prototype.j.mA,a)},this.J.onsignallingroomlist=function(b){a.Ij=b;a.b.trigger(X.prototype.j.Xt,a)},this.J.ongetobjectcount=function(a){return a.n.length},this.J.ongetobjectvalue=function(b,d,c){if(!c)return b.n[d].uid;b=b.n[d];switch(c.tag){case "x":return b.x;case "y":return b.y;
case "a":return b.u;case "iv":if(c.clientvaluetag&&(d=a.Xk[b.uid])&&a.J.me!==d&&!d.wasRemoved&&d.hasClientState(c.clientvaluetag))return d.getInterpClientState(c.clientvaluetag);c=b.Va[c.userdata];return"number"===typeof c?c:0;default:return 0}},this.J.oninstancedestroyed=function(b,d,c){var e=b.userdata;b=e.pr;e.Cq||(e.Cq={});e.Cq[d]=c;b&&b.hasOwnProperty(d)&&((c=b[d])&&a.b.Ld(c),delete b[d])},this.b.jk(function(b){var d,c=b.uid;a.Xk.hasOwnProperty(c)&&delete a.Xk[c];for(d in a.of)if(a.of.hasOwnProperty(d)&&
a.of[d]===b){delete a.of[d];break}a.lf.hasOwnProperty(c)&&delete a.lf[c];d=a.eo.indexOf(b);-1<d&&a.eo.splice(d,1);d=a.vi.indexOf(b);-1<d&&a.vi.splice(d,1);a.J.removeObjectId(c)}),this.Xj=new Worker("waker.js"),this.Xj.addEventListener("message",function(b){"tick"===b.data&&a.b.Rh&&a.b.Ea(!0)},!1),this.Xj.postMessage(""));this.b.jq(function(b){d&&a.J.isHost()&&(b?a.Xj.postMessage("start"):a.Xj.postMessage("stop"))});this.b.tF(this)};c.vv=function(a){a=a.id;return this.of.hasOwnProperty(a)?this.of[a]:
null};c.qE=function(a){return 0<=this.eo.indexOf(a)};c.sF=function(){if(d){this.J.tick(this.b.Lg);this.dG();var a,b,c;if(this.J.isInRoom()&&!this.J.isHost())for(a=0,b=this.J.registeredObjects.length;a<b;++a)c=this.J.registeredObjects[a],this.fG(c)}};var k=[];c.fG=function(a){a.tick();var b=a.obj,d=a.getCount(),c=a.netvalues,e=a.userdata;e.pr||(e.pr={});var g=e.pr,e=e.Cq,f=a.simTime,m,t,n,q,p,u,L,P=c.length;for(m in g)g.hasOwnProperty(m)&&(q=g[m],this.b.Og(q.uid)||delete g[m]);if(e)for(m in e)e.hasOwnProperty(m)&&
e[m]<f-3E3&&delete e[m];for(m=0;m<d;++m)if(t=a.getNetInstAt(m),n=t.nid,e&&e[n]>=f-3E3)k.push(t),g.hasOwnProperty(n)&&(this.b.Ld(g[n]),delete g[n]);else{if(g.hasOwnProperty(n))q=g[n],L=!1;else{if(q=this.J.getPeerByNid(n))this.Ql=q.id,this.Pl=q.alias;else{if(a.hasOverriddenNids)continue;this.Pl=this.Ql=""}q=this.b.tk(b,this.b.Da.qa[b.Zu],-1E3,-1E3);g[n]=q;L=!0}if(t.isTimedOut(f))k.push(t),g.hasOwnProperty(n)&&delete g[n],this.b.Ld(q);else{if(this.qE(q))this.hC(q,t,c,f);else for(u=0;u<P;++u)switch(n=
t.getInterp(f,u),p=c[u],p.tag){case "x":q.x=n;q.H();break;case "y":q.y=n;q.H();break;case "a":q.u=n;q.H();break;case "iv":p=p.userdata;if(p>q.Va.length||"number"!==typeof q.Va[p])break;q.Va[p]=n}L&&this.b.trigger(Object.getPrototypeOf(b.X).j.sg,q)}}m=0;for(d=k.length;m<d;++m)a.removeNetInstance(k[m]);k.length=0};c.dG=function(){var a=this.J.getHostInputArrivalTime(),b,d;b=0;for(d=this.vi.length;b<d;++b)this.eG(this.vi[b],a)};f.prototype.Cv=function(a){if(2>this.history.length)return 0;var b=this.history[this.history.length-
2],d=this.history[this.history.length-1];switch(a){case "x":return d.x-b.x;case "y":return d.y-b.y;case "a":return d.u-b.u;case "iv":return d.Sg[void 0]-b.Sg[void 0]}return 0};f.prototype.Bv=function(a,b,d,c){var e,g,f,k=null,m=null;e=0;for(g=this.history.length;e<g;++e)if(f=this.history[e],f.timestamp<d)k=f;else{e+1<this.history.length&&(m=this.history[e+1]);break}if(k){e=0;switch(a){case "x":e=k.x;break;case "y":e=k.y;break;case "a":e=k.u;break;case "iv":e=k.Sg[b]}if(!m)return e;g=e;switch(a){case "x":g=
m.x;break;case "y":g=m.y;break;case "a":g=m.u;break;case "iv":g=m.Sg[b]}return window.interpNetValue(c,e,g,cb(k.timestamp,m.timestamp,d),!1)}};f.prototype.TB=function(a,b,d){var c,e,g;c=0;for(e=this.history.length;c<e;++c)switch(g=this.history[c],a){case "x":g.x+=d;break;case "y":g.y+=d;break;case "a":g.u+=d;break;case "iv":g.Sg[b]+=d}};var u=[];c.eG=function(a,b){this.lf.hasOwnProperty(a.uid)||(this.lf[a.uid]=new f(a));var d=this.lf[a.uid],c;u.length?(c=u.pop(),c.RE=d):c=new p(d);c.timestamp=b;c.x=
a.x;c.y=a.y;c.u=a.u;Ga(c.Sg,a.Va);for(d.history.push(c);0<d.history.length&&d.history[0].timestamp<=b-2E3;)c=d.history.shift(),c.Sg.length=0,1E3>u.length&&u.push(c)};c.hC=function(a,b,d,c){if(this.lf.hasOwnProperty(a.uid)){var e=this.lf[a.uid],g,f,k,m,q,p,z,u=d.length,L=Za(0,0,e.Cv("x"),e.Cv("y")),P=!!a.V.isPlatformBehavior;for(g=0;g<u;++g)if(q=d[g],p=q.tag,z=q.userdata,m=q.interp,f=b.getLatestUpdate())if(k=f.data[g],m=e.Bv(p,z,f.timestamp,m),"undefined"!==typeof m){f=0;switch(p){case "x":f=n(m,k,
L,P);0!==f&&(a.x+=f,a.H());break;case "y":f=n(m,k,L,P);0!==f&&(a.y+=f,a.H());break;case "a":f=db(m,k,.5)-m;0!==f&&(a.u+=f,a.H());break;case "iv":k=z;if(k>a.Va.length||"number"!==typeof a.Va[k])break;q.clientvaluetag||(a.Va[k]=b.getInterp(c,g))}0!==f&&e.TB(p,z,f)}}};c.PF=function(a){this.kv=a?"string"===typeof a?a:"string"===typeof a.message?a.message:"string"===typeof a.bv?a.bv:"string"===typeof a.data?a.data:"string"===typeof a.type?a.type:"error":"unknown error"};c.gc=function(){};c.Ma=function(){return{}};
c.Sa=function(){};m.prototype.vA=function(){return!0};m.prototype.bu=function(){return!0};m.prototype.$t=function(){return!0};m.prototype.au=function(){return!0};m.prototype.fu=function(){return!0};m.prototype.cu=function(){return!0};m.prototype.eu=function(){return!0};m.prototype.du=function(){return!0};m.prototype.St=function(){return!0};m.prototype.Tt=function(){return!0};m.prototype.lB=function(){return d&&this.J.isConnected()};m.prototype.Bz=function(){return d&&this.J.isHost()};m.prototype.Ut=
function(a){return this.Ow===a};m.prototype.bA=function(){return!0};m.prototype.Dt=function(){return!0};m.prototype.mA=function(){return!0};m.prototype.Xt=function(){return!0};b.j=new m;g.prototype.jB=function(a){d&&!this.J.isConnected()&&(this.Wx=a,this.J.signallingConnect(a))};g.prototype.kB=function(){d&&this.J.isConnected()&&this.J.signallingDisconnect()};g.prototype.mB=function(a){d&&this.J.isConnected&&!this.J.isLoggedIn()&&this.J.signallingLogin(a)};g.prototype.iB=function(a,b,c,e,g){d&&this.J.isLoggedIn()&&
!this.J.isInRoom()&&this.J.signallingAutoJoinGameRoom(a,b,c,e,0===g)};g.prototype.RA=function(a,b,c,e){d&&(a||(a=this.J.getHostID()),(a=this.J.getPeerById(a))&&a.send(q(e),JSON.stringify({c:"m",t:b,m:c})))};g.prototype.pz=function(a,b,c,e){if(d){var g=this.J.getPeerById(a);a={c:"m",t:b,f:a||this.J.getHostID(),m:c};this.J.hostBroadcast(q(e),JSON.stringify(a),g)}};c.hv=function(a,b,c,e){d&&(e=this.J.registerObject(a,a.ya,e),1===b?(e.addValue(this.J.INTERP_LINEAR,c,"x"),e.addValue(this.J.INTERP_LINEAR,
c,"y")):2===b?e.addValue(this.J.INTERP_ANGULAR,c,"a"):3===b&&(e.addValue(this.J.INTERP_LINEAR,c,"x"),e.addValue(this.J.INTERP_LINEAR,c,"y"),e.addValue(this.J.INTERP_ANGULAR,c,"a")),this.Ep[a]=e)};g.prototype.yB=function(a,b,c,e){if(d){var g,f;if(a.U)for(g=0,f=a.Fe.length;g<f;++g)this.hv(a.Fe[g],b,c,e);else this.hv(a,b,c,e)}};c.iv=function(a,b,c,e,g){if(d&&(a=this.Ep[a])){var f=this.J.INTERP_NONE;1===e?f=this.J.INTERP_LINEAR:2===e&&(f=this.J.INTERP_ANGULAR);a.addValue(f,c,"iv",b,g)}};g.prototype.zB=
function(a,b,c,e,g){if(d){var f,k,m;if(a.U)for(f=0,k=a.Fe.length;f<k;++f)m=a.Fe[f],this.iv(m,b+m.Dk[a.$e],c,e,g);else this.iv(a,b,c,e,g)}};g.prototype.Oy=function(a,b){if(d){var c=a.Jk();if(c){var e=this.Ep[a];if(e){var g=this.J.getPeerById(b);g&&(this.J.isHost()&&(e.overrideNid(c.uid,g.nid),-1===this.vi.indexOf(c)&&this.vi.push(c)),this.Xk[c.uid]=g,this.of[g.id]=c)}}}};g.prototype.WA=function(a,b){d&&this.J.setClientState(a,b)};g.prototype.Hy=function(a,b,c){d&&this.J.addClientInputValue(a,b,c)};
g.prototype.pB=function(a,b,c){if(d){var e="all";1===c?e="unlocked":2===c&&(e="available");this.J.signallingRequestRoomList(a,b,e)}};b.A=new g;e.prototype.qB=function(a){a.R(d?this.J.sigserv_version:"")};e.prototype.oB=function(a){a.R(d?this.J.sigserv_name:"")};e.prototype.nB=function(a){a.R(d?this.J.sigserv_motd:"")};e.prototype.Xz=function(a){a.R(d?this.J.getMyAlias():"")};e.prototype.xt=function(a){a.R(this.kv)};e.prototype.Yz=function(a){a.R(d?this.J.getMyID():"")};e.prototype.CA=function(a){a.R(this.Ql)};
e.prototype.yA=function(a){a.R(this.Pl)};e.prototype.qz=function(a){a.R(d?this.J.getHostID():"")};e.prototype.oz=function(a){a.R(d?this.J.getHostAlias():"")};e.prototype.Wz=function(a){a.R(this.Mw)};e.prototype.lz=function(a){a.R(this.Zr)};e.prototype.kz=function(a){a.R(this.Nw)};e.prototype.AA=function(a,b){a.R(d?this.J.getAliasFromId(b):"")};e.prototype.EA=function(a,b){if(d){var c=this.J.getPeerById(b);a.S(c?c.latency:0)}else a.S(0)};e.prototype.FA=function(a,b,c){d?(b=this.J.getPeerById(b),a.S(b?
b.getInterpClientState(c):0)):a.S(0)};e.prototype.BA=function(a){a.ka(d?this.J.getPeerCount():0)};e.prototype.Pz=function(a){a.ka(this.Ij?this.Ij.length:0)};e.prototype.Rz=function(b,d){var c=a(this.Ij,d);b.R(c?c.name:"")};e.prototype.Sz=function(b,d){var c=a(this.Ij,d);b.ka(c?c.peercount:0)};e.prototype.Qz=function(b,d){var c=a(this.Ij,d);b.ka(c?c.maxpeercount:0)};e.prototype.Oz=function(a){a.R(this.kw)};c.kc=function(a,b,c,e){if(!d||!this.J.isHost())return 0;var g=this.J.getPeerById(a);if(!g)return 0;
var f=this.vv(g);if(!f)return 0;a=0;switch(c){case "x":a=f.x;break;case "y":a=f.y;break;case "a":a=f.u}b=this.J.getPeerById(b);if(!b||b===g||this.J.me===b)return a;b=2*(b.latency+this.J.clientDelay);f=f.uid;if(!this.lf.hasOwnProperty(f))return a;e=this.lf[f].Bv(c,0,gb()-b,e);return"undefined"===typeof e?a:e};e.prototype.DA=function(a,b){if(d){b=Math.floor(b);var c=this.J.getPeerAt(b);a.R(c?c.id:"")}else a.R("")};e.prototype.zA=function(a,b){if(d){b=Math.floor(b);var c=this.J.getPeerAt(b);a.R(c?c.alias:
"")}else a.R("")};b.B=new e})();function Kc(f){this.b=f}
(function(){function f(f,g,n,e,a,b,c,d,k,p){f.save();f.fillStyle=g;g=a%n;var h=b%e;0>g&&(g+=n);0>h&&(h+=e);f.translate(g+k,h+p);f.fillRect(a-g-k,b-h-p,c,d);f.restore()}var p=Kc.prototype;p.L=function(f){this.X=f;this.b=f.b};var n=p.L.prototype;n.I=function(){this.U||(this.O=new Image,this.O.tn=this.rm,this.b.Dm(this.O,this.Oj),this.Fm=this.Im=this.Hm=this.Gm=this.$j=this.M=this.Hu=this.ky=this.Cx=this.lw=this.Rq=null)};n.ah=function(){this.U||(this.Fm=this.Im=this.Hm=this.Gm=this.$j=this.M=null)};
n.zj=function(){this.U||!this.n.length||this.M||(this.M=this.b.F.Cd(this.O,!0,this.b.Ra,this.jh))};n.Rj=function(){this.U||this.n.length||!this.b.F||(this.b.F.deleteTexture(this.M),this.b.F.deleteTexture(this.$j),this.b.F.deleteTexture(this.Gm),this.b.F.deleteTexture(this.Hm),this.b.F.deleteTexture(this.Im),this.b.F.deleteTexture(this.Fm),this.Fm=this.Im=this.Hm=this.Gm=this.$j=this.M=null)};n.rf=function(f,g,n,e){var a=document.createElement("canvas");n=n-f;e=e-g;a.width=n;a.height=e;a.getContext("2d").drawImage(this.O,
f,g,n,e,0,0,n,e);return a};n.lC=function(f,g,n,e){var a=this.O.width,b=this.O.height,c=a-g,d=b-e;if(this.b.F){if(!this.$j){var k=this.b.F,p=this.b.Ra,h=this.jh;c>f&&d>n&&(this.$j=k.Cd(this.rf(f,n,c,d),!0,p,h));0<f&&d>n&&(this.Gm=k.Cd(this.rf(0,n,f,d),!0,p,h,"repeat-y"));0<g&&d>n&&(this.Hm=k.Cd(this.rf(c,n,a,d),!0,p,h,"repeat-y"));0<n&&c>f&&(this.Im=k.Cd(this.rf(f,0,c,n),!0,p,h,"repeat-x"));0<e&&c>f&&(this.Fm=k.Cd(this.rf(f,d,c,b),!0,p,h,"repeat-x"))}}else this.Rq||(k=this.b.Za,c>f&&d>n&&(this.Rq=
k.createPattern(this.rf(f,n,c,d),"repeat")),0<f&&d>n&&(this.lw=k.createPattern(this.rf(0,n,f,d),"repeat")),0<g&&d>n&&(this.Cx=k.createPattern(this.rf(c,n,a,d),"repeat")),0<n&&c>f&&(this.ky=k.createPattern(this.rf(f,0,c,n),"repeat")),0<e&&c>f&&(this.Hu=k.createPattern(this.rf(f,d,c,b),"repeat")))};p.K=function(f){this.type=f;this.b=f.b};n=p.K.prototype;n.I=function(){this.Lr=this.q[0];this.Ds=this.q[1];this.Zs=this.q[2];this.qq=this.q[3];this.In=this.q[4];this.fill=this.q[5];this.visible=0===this.q[6];
this.Ne=0!==this.q[8];this.Yb?this.Xd.set(0,0,0,0):this.Xd=new wa(0,0,0,0);this.b.F&&!this.type.M&&(this.type.M=this.b.F.Cd(this.type.O,!1,this.b.Ra,this.type.jh));this.type.lC(this.Lr,this.Ds,this.Zs,this.qq)};n.Tb=function(m){var g=this.type.O,n=this.Lr,e=this.Ds,a=this.Zs,b=this.qq,c=g.width,d=g.height,k=c-e,p=d-b;m.globalAlpha=this.opacity;m.save();var h=this.x,l=this.y,v=this.width,F=this.height;this.b.Gc&&(h=Math.round(h),l=Math.round(l));var r=-(this.oc*this.width),C=-(this.pc*this.height),
D=r%c,w=C%d;0>D&&(D+=c);0>w&&(w+=d);m.translate(h+D,l+w);c=r-D;C-=w;w=this.Ne?1:0;0<n&&0<a&&m.drawImage(g,0,0,n+w,a+w,c,C,n+w,a+w);0<e&&0<a&&m.drawImage(g,k-w,0,e+w,a+w,c+v-e-w,C,e+w,a+w);0<e&&0<b&&m.drawImage(g,k-w,p-w,e+w,b+w,c+v-e-w,C+F-b-w,e+w,b+w);0<n&&0<b&&m.drawImage(g,0,p-w,n+w,b+w,c,C+F-b-w,n+w,b+w);0===this.In?(w=2===this.fill?0:w,0<n&&p>a&&f(m,this.type.lw,n,p-a,c,C+a,n+w,F-a-b,0,0),0<e&&p>a&&f(m,this.type.Cx,e,p-a,c+v-e-w,C+a,e+w,F-a-b,w,0),0<a&&k>n&&f(m,this.type.ky,k-n,a,c+n,C,v-n-e,
a+w,0,0),0<b&&k>n&&f(m,this.type.Hu,k-n,b,c+n,C+F-b-w,v-n-e,b+w,0,w)):1===this.In&&(0<n&&p>a&&0<F-a-b&&m.drawImage(g,0,a,n,p-a,c,C+a,n,F-a-b),0<e&&p>a&&0<F-a-b&&m.drawImage(g,k,a,e,p-a,c+v-e,C+a,e,F-a-b),0<a&&k>n&&0<v-n-e&&m.drawImage(g,n,0,k-n,a,c+n,C,v-n-e,a),0<b&&k>n&&0<v-n-e&&m.drawImage(g,n,p,k-n,b,c+n,C+F-b,v-n-e,b));p>a&&k>n&&(0===this.fill?f(m,this.type.Rq,k-n,p-a,c+n,C+a,v-n-e,F-a-b,0,0):1===this.fill&&0<v-n-e&&0<F-a-b&&m.drawImage(g,n,a,k-n,p-a,c+n,C+a,v-n-e,F-a-b));m.restore()};n.Gf=function(f,
g,n,e,a,b,c,d,k,p){f.jc(g);var h=this.Xd;h.left=n/g.oe;h.top=e/g.ne;h.right=(n+a)/g.oe;h.bottom=(e+b)/g.ne;f.nd(c,d,c+k,d,c+k,d+p,c,d+p,h)};n.tm=function(f,g,n,e,a,b,c,d){f.jc(g);var k=this.Xd;k.left=-c/g.oe;k.top=-d/g.ne;k.right=(a-c)/g.oe;k.bottom=(b-d)/g.ne;f.nd(n,e,n+a,e,n+a,e+b,n,e+b,k)};n.Ff=function(f){this.eb(f)};n.eb=function(f){var g=this.Lr,n=this.Ds,e=this.Zs,a=this.qq,b=this.type.O.width-n,c=this.type.O.height-a;f.Oe(this.opacity);var d=this.Zb,k=d.Xa,d=d.Ya,p=this.width,h=this.height;
this.b.Gc&&(k=Math.round(k),d=Math.round(d));var l=this.Ne?1:0;0<g&&0<e&&this.Gf(f,this.type.M,0,0,g+l,e+l,k,d,g+l,e+l);0<n&&0<e&&this.Gf(f,this.type.M,b-l,0,n+l,e+l,k+p-n-l,d,n+l,e+l);0<n&&0<a&&this.Gf(f,this.type.M,b-l,c-l,n+l,a+l,k+p-n-l,d+h-a-l,n+l,a+l);0<g&&0<a&&this.Gf(f,this.type.M,0,c-l,g+l,a+l,k,d+h-a-l,g+l,a+l);0===this.In?(l=2===this.fill?0:l,0<g&&c>e&&this.tm(f,this.type.Gm,k,d+e,g+l,h-e-a,0,0),0<n&&c>e&&this.tm(f,this.type.Hm,k+p-n-l,d+e,n+l,h-e-a,l,0),0<e&&b>g&&this.tm(f,this.type.Im,
k+g,d,p-g-n,e+l,0,0),0<a&&b>g&&this.tm(f,this.type.Fm,k+g,d+h-a-l,p-g-n,a+l,0,l)):1===this.In&&(0<g&&c>e&&this.Gf(f,this.type.M,0,e,g,c-e,k,d+e,g,h-e-a),0<n&&c>e&&this.Gf(f,this.type.M,b,e,n,c-e,k+p-n,d+e,n,h-e-a),0<e&&b>g&&this.Gf(f,this.type.M,g,0,b-g,e,k+g,d,p-g-n,e),0<a&&b>g&&this.Gf(f,this.type.M,g,c,b-g,a,k+g,d+h-a,p-g-n,a));c>e&&b>g&&(0===this.fill?this.tm(f,this.type.$j,k+g,d+e,p-g-n,h-e-a,0,0):1===this.fill&&this.Gf(f,this.type.M,g,e,b-g,c-e,k+g,d+e,p-g-n,h-e-a))};p.j=new function(){};p.A=
new function(){};p.B=new function(){}})();function U(f){this.b=f}
(function(){function f(){if(0===this.Bq.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Lj?b.drawImage(this.O,this.vj,this.wj,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.O,0,0,this.width,this.height);this.Bq=a.toDataURL("image/png")}return this.Bq}function p(){}function n(a){a[0]=0;a[1]=0;a[2]=0;h.push(a)}function m(a,b){return a<b?""+a+","+b:""+b+","+a}function g(a,b,d,c){b=b.uid;d=d.uid;var e=m(b,d);if(a.hasOwnProperty(e))a[e][2]=
c;else{var g=h.length?h.pop():[0,0,0];g[0]=b;g[1]=d;g[2]=c;a[e]=g}}function q(a,b,d){b=m(b.uid,d.uid);a.hasOwnProperty(b)&&(n(a[b]),delete a[b])}function e(a,b,d){b=m(b.uid,d.uid);if(a.hasOwnProperty(b))return l=a[b][2],!0;l=-2;return!1}function a(){}function b(){}var c=U.prototype;c.L=function(a){this.X=a;this.b=a.b};var d=c.L.prototype;d.I=function(){if(!this.U){var a,b,d,c,e,h,g,l,k;this.he=[];this.Rk=!1;a=0;for(b=this.cd.length;a<b;a++){e=this.cd[a];g={};g.name=e[0];g.speed=e[1];g.loop=e[2];g.Bs=
e[3];g.Cs=e[4];g.ix=e[5];g.ya=e[6];g.frames=[];d=0;for(c=e[7].length;d<c;d++)h=e[7][d],l={},l.Oj=h[0],l.rm=h[1],l.vj=h[2],l.wj=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.oc=h[7],l.pc=h[8],l.lr=h[9],l.Po=h[10],l.jx=h[11],l.Lj=0!==l.width,l.Bq="",l.HD=f,k={left:0,top:0,right:1,bottom:1},l.Ls=k,l.M=null,(k=this.b.xD(h[0]))?l.O=k:(l.O=new Image,l.O.iC=h[0],l.O.tn=h[1],l.O.$B=null,this.b.Dm(l.O,h[0])),g.frames.push(l),this.he.push(l);this.cd[a]=g}}};d.xy=function(){var a,b,d;a=0;for(b=this.n.length;a<
b;a++)d=this.n[a],d.vn=d.Sb.M};d.ah=function(){if(!this.U){var a,b,d;a=0;for(b=this.he.length;a<b;++a)d=this.he[a],d.O.$B=null,d.M=null;this.Rk=!1;this.xy()}};d.zj=function(){if(!this.U&&this.n.length){var a,b,d;a=0;for(b=this.he.length;a<b;++a)d=this.he[a],d.M=this.b.F.Cd(d.O,!1,this.b.Ra,d.jx);this.xy()}};d.to=function(){if(!this.U&&!this.Rk&&this.b.F){var a,b,d;a=0;for(b=this.he.length;a<b;++a)d=this.he[a],d.M=this.b.F.Cd(d.O,!1,this.b.Ra,d.jx);this.Rk=!0}};d.Rj=function(){if(!this.U&&!this.n.length&&
this.Rk){var a,b,d;a=0;for(b=this.he.length;a<b;++a)d=this.he[a],this.b.F.deleteTexture(d.M),d.M=null;this.Rk=!1}};var k=[];d.Sl=function(a){var b,d,c;J(k);b=0;for(d=this.he.length;b<d;++b)c=this.he[b].O,-1===k.indexOf(c)&&(a.drawImage(c,0,0),k.push(c))};c.K=function(a){this.type=a;this.b=a.b;a=this.type.cd[0].frames[0].Po;this.Yb?this.Ba.gm(a):this.Ba=new mb(a)};var u=c.K.prototype;u.I=function(){this.visible=0===this.q[0];this.Uk=this.Nf=!1;this.We=0!==this.q[3];this.$a=this.uv(this.q[1])||this.type.cd[0];
this.W=this.q[2];0>this.W&&(this.W=0);this.W>=this.$a.frames.length&&(this.W=this.$a.frames.length-1);var a=this.$a.frames[this.W];this.Ba.gm(a.Po);this.oc=a.oc;this.pc=a.pc;this.vh=this.$a.speed;this.Jg=this.$a.Cs;1===this.type.cd.length&&1===this.type.cd[0].frames.length||0===this.vh||(this.b.qd(this),this.Nf=!0);this.Yb?this.je.reset():this.je=new kb;this.bf=this.je.ea;this.xg=!0;this.yf=0;this.wg=!0;this.Fi=this.Bu="";this.Ou=0;this.rk=-1;this.type.to();var b,d,c,e,h,g,f,a=0;for(b=this.type.cd.length;a<
b;a++)for(e=this.type.cd[a],d=0,c=e.frames.length;d<c;d++)h=e.frames[d],0===h.width&&(h.width=h.O.width,h.height=h.O.height),h.Lj&&(f=h.O,g=h.Ls,g.left=h.vj/f.width,g.top=h.wj/f.height,g.right=(h.vj+h.width)/f.width,g.bottom=(h.wj+h.height)/f.height,0===h.vj&&0===h.wj&&h.width===f.width&&h.height===f.height&&(h.Lj=!1));this.Sb=this.$a.frames[this.W];this.vn=this.Sb.M};u.Ma=function(){var a={a:this.$a.ya,f:this.W,cas:this.vh,fs:this.bf,ar:this.yf,at:this.je.ea,rt:this.Jg};this.xg||(a.ap=this.xg);this.wg||
(a.af=this.wg);return a};u.Sa=function(a){var b=this.ED(a.a);b&&(this.$a=b);this.W=a.f;0>this.W&&(this.W=0);this.W>=this.$a.frames.length&&(this.W=this.$a.frames.length-1);this.vh=a.cas;this.bf=a.fs;this.yf=a.ar;this.je.reset();this.je.ea=a.at;this.xg=a.hasOwnProperty("ap")?a.ap:!0;this.wg=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Jg=a.rt:this.Jg=this.$a.Cs;this.Sb=this.$a.frames[this.W];this.vn=this.Sb.M;this.Ba.gm(this.Sb.Po);this.oc=this.Sb.oc;this.pc=this.Sb.pc};u.mq=function(a){this.W=
a?0:this.$a.frames.length-1;this.xg=!1;this.Bu=this.$a.name;this.Uk=!0;this.b.trigger(U.prototype.j.Bt,this);this.b.trigger(U.prototype.j.Zz,this);this.Uk=!1;this.yf=0};u.kc=function(){return this.je.ea};u.Ea=function(){this.je.add(this.b.Fh(this));this.Fi.length&&this.cv();0<=this.rk&&this.Hq();var a=this.je.ea,b=this.$a,d=b.frames[this.W],c=d.duration/this.vh;this.xg&&a>=this.bf+c&&(this.wg?this.W++:this.W--,this.bf+=c,this.W>=b.frames.length&&(b.ix?(this.wg=!1,this.W=b.frames.length-2):b.loop?
this.W=this.Jg:(this.yf++,this.yf>=b.Bs?this.mq(!1):this.W=this.Jg)),0>this.W&&(b.ix?(this.W=1,this.wg=!0,b.loop||(this.yf++,this.yf>=b.Bs&&this.mq(!0))):b.loop?this.W=this.Jg:(this.yf++,this.yf>=b.Bs?this.mq(!0):this.W=this.Jg)),0>this.W?this.W=0:this.W>=b.frames.length&&(this.W=b.frames.length-1),a>this.bf+b.frames[this.W].duration/this.vh&&(this.bf=a),a=b.frames[this.W],this.nh(d,a),this.b.ca=!0)};u.uv=function(a){var b,d,c;b=0;for(d=this.type.cd.length;b<d;b++)if(c=this.type.cd[b],ub(c.name,a))return c;
return null};u.ED=function(a){var b,d,c;b=0;for(d=this.type.cd.length;b<d;b++)if(c=this.type.cd[b],c.ya===a)return c;return null};u.cv=function(){var a=this.$a.frames[this.W],b=this.uv(this.Fi);this.Fi="";!b||ub(b.name,this.$a.name)&&this.xg||(this.$a=b,this.vh=b.speed,this.Jg=b.Cs,0>this.W&&(this.W=0),this.W>=this.$a.frames.length&&(this.W=this.$a.frames.length-1),1===this.Ou&&(this.W=0),this.xg=!0,this.bf=this.je.ea,this.wg=!0,this.nh(a,this.$a.frames[this.W]),this.b.ca=!0)};u.Hq=function(){var a=
this.$a.frames[this.W],b=this.W;this.W=A(this.rk);0>this.W&&(this.W=0);this.W>=this.$a.frames.length&&(this.W=this.$a.frames.length-1);b!==this.W&&(this.nh(a,this.$a.frames[this.W]),this.bf=this.je.ea,this.b.ca=!0);this.rk=-1};u.nh=function(a,b){var d=a.width,c=a.height,e=b.width,h=b.height;d!=e&&(this.width*=e/d);c!=h&&(this.height*=h/c);this.oc=b.oc;this.pc=b.pc;this.Ba.gm(b.Po);this.H();this.Sb=b;this.vn=b.M;d=0;for(c=this.Y.length;d<c;d++)e=this.Y[d],e.YE&&e.YE(a,b);this.b.trigger(U.prototype.j.nh,
this)};u.Tb=function(a){a.globalAlpha=this.opacity;var b=this.Sb,d=b.Lj,c=b.O,e=this.x,h=this.y,g=this.width,f=this.height;if(0===this.u&&0<=g&&0<=f)e-=this.oc*g,h-=this.pc*f,this.b.Gc&&(e=Math.round(e),h=Math.round(h)),d?a.drawImage(c,b.vj,b.wj,b.width,b.height,e,h,g,f):a.drawImage(c,e,h,g,f);else{this.b.Gc&&(e=Math.round(e),h=Math.round(h));a.save();var l=0<g?1:-1,k=0<f?1:-1;a.translate(e,h);1===l&&1===k||a.scale(l,k);a.rotate(this.u*l*k);e=0-this.oc*qa(g);h=0-this.pc*qa(f);d?a.drawImage(c,b.vj,
b.wj,b.width,b.height,e,h,qa(g),qa(f)):a.drawImage(c,e,h,qa(g),qa(f));a.restore()}};u.Ff=function(a){this.eb(a)};u.eb=function(a){a.jc(this.vn);a.Oe(this.opacity);var b=this.Sb,d=this.Zb;if(this.b.Gc){var c=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Lj?a.nd(d.Xa+c,d.Ya+e,d.zb+c,d.Ab+e,d.mb+c,d.nb+e,d.kb+c,d.lb+e,b.Ls):a.Ej(d.Xa+c,d.Ya+e,d.zb+c,d.Ab+e,d.mb+c,d.nb+e,d.kb+c,d.lb+e)}else b.Lj?a.nd(d.Xa,d.Ya,d.zb,d.Ab,d.mb,d.nb,d.kb,d.lb,b.Ls):a.Ej(d.Xa,d.Ya,d.zb,d.Ab,d.mb,d.nb,d.kb,d.lb)};
u.JD=function(a){var b=this.Sb,d,c;d=0;for(c=b.lr.length;d<c;d++)if(ub(a,b.lr[d][0]))return d;return-1};u.Kk=function(a,b){var d=this.Sb,c=d.lr,e;na(a)?e=this.JD(a):e=a-1;e=A(e);if(0>e||e>=c.length)return b?this.x:this.y;var h=(c[e][1]-d.oc)*this.width,c=c[e][2],c=(c-d.pc)*this.height,d=Math.cos(this.u);e=Math.sin(this.u);var g=h*d-c*e,c=c*d+h*e,h=g+this.x,c=c+this.y;return b?h:c};var h=[],l=-2,v=[];p.prototype.eA=function(a){if(!a)return!1;var b=this.b,d=b.Eh(),c=d.type,h=null;d.V.collmemory?h=d.V.collmemory:
(h={},d.V.collmemory=h);d.V.spriteCreatedDestroyCallback||(d.V.spriteCreatedDestroyCallback=!0,b.jk(function(a){var b=d.V.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(n(b[c]),delete b[c])}));var f=c.da(),k=a.da(),f=f.Kc(),m,r,p,w,u,D,F,C=this.b.Id,B=C-1,R=b.sb().Bb;for(r=0;r<f.length;r++){p=f[r];k.ta?(p.fa(),this.b.Yn(p.r,a,p.ma,v),m=v,this.b.OB(p,a,m)):m=k.Kc();for(w=0;w<m.length;w++)u=m[w],b.zc(p,u)||b.dC(p,u)?(D=e(h,p,u),D=!D||l<B,g(h,p,u,C),D&&(b.Dj(R.Pa),
D=c.da(),F=a.da(),D.ta=!1,F.ta=!1,c===a?(D.n.length=2,D.n[0]=p,D.n[1]=u,c.td()):(D.n.length=1,F.n.length=1,D.n[0]=p,F.n[0]=u,c.td(),a.td()),R.Zl(),b.Zf(R.Pa))):q(h,p,u);J(v)}return!1};var F=null,r=new ea,C=!1,D=[],w=new wa(0,0,0,0);d.finish=function(a){if(C){if(a){var b=this.b.sb().Bb.Fd;a=F.da();var d=r.ee(),c,e;if(a.ta){a.ta=!1;J(a.n);c=0;for(e=d.length;c<e;++c)a.n[c]=d[c];if(b)for(J(a.wa),c=0,e=F.n.length;c<e;++c)d=F.n[c],r.contains(d)||a.wa.push(d)}else if(b)for(b=a.n.length,c=0,e=d.length;c<
e;++c)a.n[b+c]=d[c],Ja(a.wa,d[c]);else Ga(a.n,d);F.td()}r.clear();C=!1}};p.prototype.Iz=function(a){if(a){var b=!1,d,c,e,h=this.b.Eh(),g=h.type,h=h.Yi;d=a.da();c=this.b.sb().Bb.Fd;var f;d.ta?(this.fa(),w.Hi(this.ma),w.offset(0,0),this.b.Yn(this.r,a,w,D),f=D):f=c?this.b.nE()&&!d.wa.length&&d.n.length?d.n:d.wa:d.n;F=a;C=g!==a&&!h;d=0;for(c=f.length;d<c;d++)if(e=f[d],this.b.zc(this,e)){b=!0;if(h)break;g!==a&&r.add(e)}J(D);a=b}else a=!1;return a};p.prototype.uz=function(a){return this.Fi.length?ub(this.Fi,
a):ub(this.$a.name,a)};p.prototype.Ty=function(a,b){return nc(this.W,a,b)};p.prototype.Zz=function(a){return ub(this.Bu,a)};p.prototype.Bt=function(){return!0};p.prototype.nh=function(){return!0};c.j=new p;a.prototype.rB=function(a,b,d){if(a&&b&&(b=this.b.tk(a,b,this.Kk(d,!0),this.Kk(d,!1)))){"undefined"!==typeof b.u&&(b.u=this.u,b.H());this.b.Bd++;var c,e,h;this.b.trigger(Object.getPrototypeOf(a.X).j.sg,b);if(b.qc)for(c=0,e=b.siblings.length;c<e;c++)h=b.siblings[c],this.b.trigger(Object.getPrototypeOf(h.type.X).j.sg,
h);this.b.Bd--;c=this.b.GD();d=!1;if(la(c.V.Spawn_LastExec)||c.V.Spawn_LastExec<this.b.Ch)d=!0,c.V.Spawn_LastExec=this.b.Ch;if(a!=this.type&&(a=a.da(),a.ta=!1,d?(J(a.n),a.n[0]=b):a.n.push(b),b.qc))for(c=0,e=b.siblings.length;c<e;c++)h=b.siblings[c],a=h.type.da(),a.ta=!1,d?(J(a.n),a.n[0]=h):a.n.push(h)}};a.prototype.tB=function(a){this.xg=!0;this.bf=this.je.ea;1===a&&0!==this.W&&(this.rk=0,this.Uk||this.Hq());this.Nf||(this.b.qd(this),this.Nf=!0)};a.prototype.TA=function(a,b){this.Fi=a;this.Ou=b;this.Nf||
(this.b.qd(this),this.Nf=!0);this.Uk||this.cv()};a.prototype.UA=function(a){this.rk=a;this.Nf||(this.b.qd(this),this.Nf=!0);this.Uk||this.Hq()};a.prototype.VA=function(a){this.vh=qa(a);this.wg=0<=a;this.Nf||(this.b.qd(this),this.Nf=!0)};c.A=new a;b.prototype.My=function(a){a.ka(this.W)};b.prototype.Ny=function(a){a.R(this.$a.name)};c.B=new b})();function Lc(f){this.b=f}
(function(){function f(a,b){return a.length?a.pop():new b}function p(a,d,c){if(c){var e;c=0;for(e=d.length;c<e;c++)a.length<b&&a.push(d[c]);J(d)}else for(e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a.length<b&&a.push(d[e]),delete d[e])}function n(a,b,d){var e=a.Lc;d=d.replace(/\s\s*$/,"");b>=e.length&&e.push(f(c,Object));b=e[b];b.text=d;b.width=a.Xr(d);a.ig=ra(a.ig,b.width)}function m(){}function g(){}function q(){}var e=Lc.prototype;e.I=function(){};e.L=function(a){this.X=a;this.b=a.b};var a=
e.L.prototype;a.I=function(){this.U||(this.O=new Image,this.b.Dm(this.O,this.Oj),this.M=null)};a.ah=function(){this.U||(this.M=null)};a.zj=function(){if(!this.U&&this.n.length){this.M||(this.M=this.b.F.Cd(this.O,!1,this.b.Ra,this.jh));var a,b;a=0;for(b=this.n.length;a<b;a++)this.n[a].M=this.M}};a.Rj=function(){this.U||this.n.length||!this.M||(this.b.F.deleteTexture(this.M),this.M=null)};a.Sl=function(a){a.drawImage(this.O,0,0)};e.K=function(a){this.type=a;this.b=a.b};a=e.K.prototype;a.gc=function(){p(c,
this.Lc,!0);p(d,this.nn,!1);p(k,this.pn,!1);fb(this.Eg)};a.I=function(){this.O=this.type.O;this.ln=this.q[0];this.Cg=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.Dg=this.q[4];this.visible=0===this.q[5];this.Kf=this.q[6]/2;this.lg=this.q[7]/2;this.Km=0===this.q[9];this.Gi=this.q[10];this.lineHeight=this.q[11];this.tf=this.ig=0;this.Yb?(J(this.Lc),fb(this.nn),fb(this.pn),fb(this.Eg)):(this.Lc=[],this.nn={},this.pn={},this.Eg={});this.ad=!0;this.Yh=this.width;this.b.F&&(this.type.M||
(this.type.M=this.b.F.Cd(this.type.O,!1,this.b.Ra,this.type.jh)),this.M=this.type.M);this.sB()};a.Ma=function(){var a={t:this.text,csc:this.Dg,csp:this.Gi,lh:this.lineHeight,tw:this.ig,th:this.tf,lrt:this.Xh,ha:this.Kf,va:this.lg,cw:{}},b;for(b in this.Eg)a.cw[b]=this.Eg[b];return a};a.Sa=function(a){this.text=a.t;this.Dg=a.csc;this.Gi=a.csp;this.lineHeight=a.lh;this.ig=a.tw;this.tf=a.th;this.Xh=a.lrt;a.hasOwnProperty("ha")&&(this.Kf=a.ha);a.hasOwnProperty("va")&&(this.lg=a.va);for(var b in a.cw)this.Eg[b]=
a.cw[b];this.ad=!0;this.Yh=this.width};var b=1E3,c=[],d=[],k=[];a.sB=function(){for(var a=this.O,b=a.width,c=a.height,a=this.ln,e=this.Cg,h=a/b,g=e/c,m=this.characterSet,b=Math.floor(b/a),c=Math.floor(c/e),n=0;n<m.length&&!(n>=b*c);n++){var p=n%b,q=Math.floor(n/b),u=m.charAt(n);if(this.b.F){var E=this.pn,L=p*h,P=q*g,p=(p+1)*h,q=(q+1)*g;void 0===E[u]&&(E[u]=f(k,wa));E[u].left=L;E[u].top=P;E[u].right=p;E[u].bottom=q}else E=this.nn,p=p*a,q=q*e,L=a,P=e,void 0===E[u]&&(E[u]=f(d,Object)),E[u].x=p,E[u].y=
q,E[u].Kp=L,E[u].$n=P}};var u=[];e.bq=function(a){J(u);for(var b="",d,c=0;c<a.length;)if(d=a.charAt(c),"\n"===d)b.length&&(u.push(b),b=""),u.push("\n"),++c;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(c),c++;while(c<a.length&&(" "===a.charAt(c)||"\t"===a.charAt(c)));u.push(b);b=""}else c<a.length&&(b+=d,c++);b.length&&u.push(b)};e.cq=function(a){var b=a.text,d=a.Lc;if(b&&b.length){var e=a.width;if(2>=e)p(c,d,!0);else{var h=a.Dg,g=a.Gi;if(b.length*(a.ln*h+g)-g<=e&&-1===b.indexOf("\n")&&(g=a.Xr(b),
g<=e)){p(c,d,!0);d.push(f(c,Object));d[0].text=b;d[0].width=g;a.ig=g;a.tf=a.Cg*h+a.lineHeight;return}this.dq(a);a.tf=d.length*(a.Cg*h+a.lineHeight)}}else p(c,d,!0)};e.dq=function(a){var d=a.Km,e=a.text,h=a.Lc,g=a.width;d&&(this.bq(e),e=u);var f="",k,m,p,q=0,z=!1;for(p=0;p<e.length;p++)"\n"===e[p]?(!0===z?z=!1:(n(a,q,f),q++),f=""):(z=!1,k=f,f+=e[p],m=a.Xr(f.replace(/\s\s*$/,"")),m>g&&(""===k?(n(a,q,f),f="",z=!0):(n(a,q,k),f=e[p]),q++,d||" "!==f||(f="")));f.replace(/\s\s*$/,"").length&&(n(a,q,f),q++);
for(p=q;p<h.length;p++)c.length<b&&c.push(h[p]);h.length=q};a.Xr=function(a){for(var b=this.Gi,d=a.length,c=0,e=0;e<d;e++)c+=this.Xq(a.charAt(e))*this.Dg+b;return c-(0<c?b:0)};a.Xq=function(a){var b=this.Eg;return void 0!==b[a]?b[a]:this.ln};a.zx=function(){if(this.ad||this.width!==this.Yh)this.tf=this.ig=0,this.type.X.cq(this),this.ad=!1,this.Yh=this.width};a.Tb=function(a){var b=this.O;if(""!==this.text&&null!=b&&(this.zx(),!(this.height<this.Cg*this.Dg+this.lineHeight))){a.globalAlpha=this.opacity;
var b=this.x,d=this.y;this.b.Gc&&(b=Math.round(b),d=Math.round(d));var c=this.r.Fa,e=this.r.Ga,h=this.r.Ja,g=this.r.Ia;a.save();a.translate(b,d);a.rotate(this.u);for(var f=this.u,k=this.Kf,m=this.Dg,n=this.Cg*m,p=this.lineHeight,q=this.Gi,u=this.Lc,S,V=-(this.oc*this.width),K=-(this.pc*this.height),K=K+this.lg*ra(0,this.height-this.tf),y,W,ha,O=0;O<u.length;O++){var x=u[O].text;S=k*ra(0,this.width-u[O].width);y=V+S;K+=p;if(0===f&&d+K+n<e)K+=n;else{for(var B=0;B<x.length;B++){W=x.charAt(B);S=this.Xq(W);
var R=this.nn[W];if(0===f&&b+y+S*m+q<c)y+=S*m+q;else{if(y+S*m>this.width+1E-5)break;void 0!==R&&(W=y,ha=K,0===f&&1===m&&(W=Math.round(W),ha=Math.round(ha)),a.drawImage(this.O,R.x,R.y,R.Kp,R.$n,W,ha,R.Kp*m,R.$n*m));y+=S*m+q;if(0===f&&b+y>h)break}}K+=n;if(0===f&&(K+n+p>this.height||d+K>g))break}}a.restore()}};var h=new xa;a.eb=function(a){a.jc(this.M);a.Oe(this.opacity);if(this.text&&(this.zx(),!(this.height<this.Cg*this.Dg+this.lineHeight))){this.fa();var b=this.Zb,d=0,c=0;this.b.Gc&&(d=Math.round(this.x)-
this.x,c=Math.round(this.y)-this.y);var e=this.r.Fa,g=this.r.Ga,f=this.r.Ja,k=this.r.Ia,m=this.u,n=this.Kf,p=this.lg,q=this.Dg,u=this.Cg*q,P=this.lineHeight,S=this.Gi,V=this.Lc,K=this.tf,y,W,ha;0!==m&&(W=Math.cos(m),ha=Math.sin(m));for(var d=b.Xa+d,b=b.Ya+c,O,p=p*ra(0,this.height-K),x,B,K=0;K<V.length;K++)if(c=V[K].text,O=y=n*ra(0,this.width-V[K].width),p+=P,0===m&&b+p+u<g)p+=u;else{for(var R=0;R<c.length;R++){var I=c.charAt(R);y=this.Xq(I);I=this.pn[I];if(0===m&&d+O+y*q+S<e)O+=y*q+S;else{if(O+y*
q>this.width+1E-5)break;if(void 0!==I){var H=this.ln*q,N=this.Cg*q;x=O;B=p;0===m&&1===q&&(x=Math.round(x),B=Math.round(B));h.Xa=x;h.Ya=B;h.zb=x+H;h.Ab=B;h.kb=x;h.lb=B+N;h.mb=x+H;h.nb=B+N;0!==m&&(x=h,B=W,H=ha,N=void 0,N=x.Xa*B-x.Ya*H,x.Ya=x.Ya*B+x.Xa*H,x.Xa=N,N=x.zb*B-x.Ab*H,x.Ab=x.Ab*B+x.zb*H,x.zb=N,N=x.kb*B-x.lb*H,x.lb=x.lb*B+x.kb*H,x.kb=N,N=x.mb*B-x.nb*H,x.nb=x.nb*B+x.mb*H,x.mb=N);h.offset(d,b);a.nd(h.Xa,h.Ya,h.zb,h.Ab,h.mb,h.nb,h.kb,h.lb,I)}O+=y*q+S;if(0===m&&d+O>f)break}}p+=u;if(0===m&&(p+u+P>
this.height||b+p>k))break}}};m.prototype.Lm=function(a,b){return b?this.text==a:ub(this.text,a)};e.j=new m;g.prototype.fk=function(a){ma(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.ad=!0,this.b.ca=!0)};g.prototype.qt=function(a){ma(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.ad=!0,this.b.ca=!0};a.kc=function(a,b){var d=parseInt(b,10);this.Eg[a]!==d&&(this.Eg[a]=d,this.ad=!0,this.b.ca=!0)};e.A=new g;q.prototype.Text=function(a){a.R(this.text)};
e.B=new q})();function Mc(f){this.b=f}
(function(){function f(){return c.length?c.pop():{}}function p(a){var b,e;b=0;for(e=a.length;b<e;b++)c.push(a[b]);J(a)}function n(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function m(){}function g(){}function q(){}var e=Mc.prototype;e.I=function(){e.A.pu=function(a){this.width!==a&&(this.width=a,this.ad=!0,this.H())}};e.L=function(a){this.X=a;this.b=a.b};var a=e.L.prototype;a.I=function(){};a.ah=function(){if(!this.U){var a,b,c;a=0;for(b=this.n.length;a<b;a++)c=this.n[a],
c.kf=null,c.gi=null,c.jd=null}};e.K=function(a){this.type=a;this.b=a.b;this.Yb?J(this.Lc):this.Lc=[];this.ad=!0};a=e.K.prototype;a.I=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.Kf=this.q[4];this.lg=this.q[5];this.Km=0===this.q[7];this.Yh=this.Rf=this.width;this.Qf=this.height;this.Mr=this.q[8];this.Rn=this.Oi="";this.tf=this.ig=this.Ul=0;this.fF();this.jd=this.gi=this.kf=null;this.Qw=!1;this.Xh=this.b.Id;this.Yb?this.Xd.set(0,0,1,1):this.Xd=
new wa(0,0,1,1);this.b.F&&this.b.qd(this)};a.fF=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Ul=parseInt(a[b].substr(0,a[b].length-2));this.xs=Math.ceil(this.Ul/72*96)+4;0<b&&(this.Rn=a[b-1]);this.Oi=a[b+1];for(b+=2;b<a.length;b++)this.Oi+=" "+a[b];break}};a.Ma=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Kf,va:this.lg,wr:this.Km,lho:this.Mr,fn:this.Oi,fs:this.Rn,ps:this.Ul,pxh:this.xs,tw:this.ig,th:this.tf,lrt:this.Xh}};
a.Sa=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.Kf=a.ha;this.lg=a.va;this.Km=a.wr;this.Mr=a.lho;this.Oi=a.fn;this.Rn=a.fs;this.Ul=a.ps;this.xs=a.pxh;this.ig=a.tw;this.tf=a.th;this.Xh=a.lrt;this.ad=!0;this.Yh=this.Rf=this.width;this.Qf=this.height};a.Ea=function(){if(this.b.F&&this.jd&&300<=this.b.Id-this.Xh){var a=this.r;this.fa();var b=this.ma;if(b.right<a.Fa||b.bottom<a.Ga||b.left>a.Ja||b.top>a.Ia)this.b.F.deleteTexture(this.jd),this.kf=this.gi=this.jd=null}};a.gc=function(){this.kf=
this.gi=null;this.b.F&&this.jd&&this.b.F.deleteTexture(this.jd);this.jd=null};a.kc=function(){this.font=this.Rn+" "+this.Ul.toString()+"pt "+this.Oi;this.ad=!0;this.b.ca=!0};a.Tb=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.r.Jb()),a.save(),a.scale(c,c));if(this.ad||this.width!==this.Yh)this.type.X.cq(this.text,this.Lc,a,this.width,this.Km),this.ad=!1,this.Yh=this.width;this.fa();var c=b?0:this.Zb.Xa,e=b?0:this.Zb.Ya;
this.b.Gc&&(c=c+.5|0,e=e+.5|0);0===this.u||b||(a.save(),a.translate(c,e),a.rotate(this.u),e=c=0);var g=e+this.height,f=this.xs,f=f+this.Mr,m,n;1===this.lg?e+=Math.max(this.height/2-this.Lc.length*f/2,0):2===this.lg&&(e+=Math.max(this.height-this.Lc.length*f-2,0));for(n=0;n<this.Lc.length&&!(m=c,1===this.Kf?m=c+(this.width-this.Lc[n].width)/2:2===this.Kf&&(m=c+(this.width-this.Lc[n].width)),a.fillText(this.Lc[n].text,m,e),e+=f,e>=g-f);n++);(0!==this.u||b)&&a.restore();this.Xh=this.b.Id};a.eb=function(a){if(!(1>
this.width||1>this.height)){var b=this.ad||this.Qw;this.Qw=!1;var c=this.r.Jb(),e=this.r.rb(),g=this.Xd,f=c*this.width,m=c*this.height,n=Math.ceil(f),p=Math.ceil(m),q=Math.abs(n),w=Math.abs(p),t=this.b.aa/2,T=this.b.Z/2;this.gi||(this.kf=document.createElement("canvas"),this.kf.width=q,this.kf.height=w,this.Rf=q,this.Qf=w,b=!0,this.gi=this.kf.getContext("2d"));if(q!==this.Rf||w!==this.Qf)this.kf.width=q,this.kf.height=w,this.jd&&(a.deleteTexture(this.jd),this.jd=null),b=!0;b&&(this.gi.clearRect(0,
0,q,w),this.Tb(this.gi,!0),this.jd||(this.jd=a.Sc(q,w,this.b.Ra,this.b.ef)),a.Jp(this.kf,this.jd,this.b.ef));this.Rf=q;this.Qf=w;a.jc(this.jd);a.Oe(this.opacity);a.Yd();a.translate(-t,-T);a.Jd();var G=this.Zb,b=this.r.ba(G.Xa,G.Ya,!0,!0),q=this.r.ba(G.Xa,G.Ya,!1,!0),w=this.r.ba(G.zb,G.Ab,!0,!0),t=this.r.ba(G.zb,G.Ab,!1,!0),T=this.r.ba(G.mb,G.nb,!0,!0),z=this.r.ba(G.mb,G.nb,!1,!0),E=this.r.ba(G.kb,G.lb,!0,!0),G=this.r.ba(G.kb,G.lb,!1,!0);if(this.b.Gc||0===this.u&&0===e)var L=(b+.5|0)-b,P=(q+.5|0)-
q,b=b+L,q=q+P,w=w+L,t=t+P,T=T+L,z=z+P,E=E+L,G=G+P;0===this.u&&0===e?(w=b+n,t=q,T=w,z=q+p,E=b,G=z,g.right=1,g.bottom=1):(g.right=f/n,g.bottom=m/p);a.nd(b,q,w,t,T,z,E,G,g);a.Yd();a.scale(c,c);a.bp(-this.r.rb());a.translate((this.r.Fa+this.r.Ja)/-2,(this.r.Ga+this.r.Ia)/-2);a.Jd();this.Xh=this.b.Id}};var b=[];e.bq=function(a){J(b);for(var c="",e,h=0;h<a.length;)if(e=a.charAt(h),"\n"===e)c.length&&(b.push(c),c=""),b.push("\n"),++h;else if(" "===e||"\t"===e||"-"===e){do c+=a.charAt(h),h++;while(h<a.length&&
(" "===a.charAt(h)||"\t"===a.charAt(h)));b.push(c);c=""}else h<a.length&&(c+=e,h++);c.length&&b.push(c)};var c=[];e.cq=function(a,b,c,e,g){if(a&&a.length)if(2>=e)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var m=c.measureText(a).width;if(m<=e){p(b);b.push(f());b[0].text=a;b[0].width=m;return}}this.dq(a,b,c,e,g)}else p(b)};e.dq=function(a,e,g,h,l){l&&(this.bq(a),a=b);var m="",p,r,q,D=0;for(q=0;q<a.length;q++)"\n"===a[q]?(D>=e.length&&e.push(f()),m=n(m),r=e[D],r.text=m,r.width=g.measureText(m).width,
D++,m=""):(p=m,m+=a[q],r=g.measureText(m).width,r>=h&&(D>=e.length&&e.push(f()),p=n(p),r=e[D],r.text=p,r.width=g.measureText(p).width,D++,m=a[q],l||" "!==m||(m="")));m.length&&(D>=e.length&&e.push(f()),m=n(m),r=e[D],r.text=m,r.width=g.measureText(m).width,D++);for(q=D;q<e.length;q++)c.push(e[q]);e.length=D};m.prototype.Lm=function(a,b){return b?this.text==a:ub(this.text,a)};e.j=new m;g.prototype.fk=function(a){ma(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.ad=
!0,this.b.ca=!0)};g.prototype.qt=function(a){ma(a)&&(a=Math.round(1E10*a)/1E10);if(a=a.toString())this.text+=a,this.ad=!0,this.b.ca=!0};e.A=new g;q.prototype.Text=function(a){a.R(this.text)};e.B=new q})();function Nc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Nc.prototype;m.L=function(e){this.X=e;this.b=e.b};m.L.prototype.I=function(){};m.K=function(e){this.type=e;this.b=e.b};var g=m.K.prototype,q="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(q[2]="text",q[3]="text",q[4]="text",q[5]="text");g.I=function(){if(this.b.N)ga("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.q[7]?(this.k=document.createElement("textarea"),
jQuery(this.k).css("resize","none")):(this.k=document.createElement("input"),this.k.type=q[this.q[7]]);this.k.id=this.q[9];jQuery(this.k).appendTo(this.b.Pd?this.b.Pd:"body");this.k.autocomplete="off";this.k.value=this.q[0];this.k.placeholder=this.q[1];this.k.title=this.q[2];this.k.disabled=0===this.q[4];this.k.readOnly=1===this.q[5];this.k.spellcheck=1===this.q[6];this.ok=0!==this.q[8];this.qb=!1;0===this.q[3]&&(jQuery(this.k).hide(),this.visible=!1,this.qb=!0);var e=function(a){return function(){a.b.trigger(Nc.prototype.j.iu,
a)}}(this);this.k.oninput=e;-1!==navigator.userAgent.indexOf("MSIE")&&(this.k.oncut=e);this.k.onclick=function(a){return function(b){b.stopPropagation();a.b.xa=!0;a.b.trigger(Nc.prototype.j.rg,a);a.b.xa=!1}}(this);this.k.ondblclick=function(a){return function(b){b.stopPropagation();a.b.xa=!0;a.b.trigger(Nc.prototype.j.Wp,a);a.b.xa=!1}}(this);this.k.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.k.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.k).mousedown(function(a){a.stopPropagation()});jQuery(this.k).mouseup(function(a){a.stopPropagation()});jQuery(this.k).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.k).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Ae=this.Be=this.we=this.ye=this.ze=this.xe=0;this.rd(!0);this.b.qd(this)}};g.Ma=function(){return{text:this.k.value,placeholder:this.k.placeholder,tooltip:this.k.title,disabled:!!this.k.disabled,
readonly:!!this.k.readOnly,spellcheck:!!this.k.spellcheck}};g.Sa=function(e){this.k.value=e.text;this.k.placeholder=e.placeholder;this.k.title=e.tooltip;this.k.disabled=e.disabled;this.k.readOnly=e.readonly;this.k.spellcheck=e.spellcheck};g.gc=function(){this.b.N||(jQuery(this.k).remove(),this.k=null)};g.Ea=function(){this.rd()};g.rd=function(e){if(!this.b.N){var a=this.r.ba(this.x,this.y,!0),b=this.r.ba(this.x,this.y,!1),c=this.r.ba(this.x+this.width,this.y+this.height,!0),d=this.r.ba(this.x+this.width,
this.y+this.height,!1),g=this.b.width/this.b.devicePixelRatio,f=this.b.height/this.b.devicePixelRatio;!this.visible||!this.r.visible||0>=c||0>=d||a>=g||b>=f?(this.qb||jQuery(this.k).hide(),this.qb=!0):(1>a&&(a=1),1>b&&(b=1),c>=g&&(c=g-1),d>=f&&(d=f-1),g=window.innerWidth,f=window.innerHeight,e||this.xe!==a||this.ze!==b||this.ye!==c||this.we!==d||this.Be!==g||this.Ae!==f?(this.xe=a,this.ze=b,this.ye=c,this.we=d,this.Be=g,this.Ae=f,this.qb&&(jQuery(this.k).show(),this.qb=!1),e=Math.round(a)+jQuery(this.b.canvas).offset().left,
g=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:e,top:g}),jQuery(this.k).width(Math.round(c-a)),jQuery(this.k).height(Math.round(d-b)),this.ok&&jQuery(this.k).css("font-size",this.r.Jb(!0)/this.b.devicePixelRatio-.2+"em")):this.qb&&(jQuery(this.k).show(),this.qb=!1))}};g.Tb=function(){};g.eb=function(){};f.prototype.Lm=function(e,a){return this.b.N?!1:0===a?ub(this.k.value,e):this.k.value===e};f.prototype.iu=function(){return!0};
f.prototype.rg=function(){return!0};f.prototype.Wp=function(){return!0};m.j=new f;p.prototype.fk=function(e){this.b.N||(this.k.value=e)};p.prototype.Te=function(e){this.b.N||(this.visible=0!==e)};p.prototype.Oc=function(e){this.b.N||(this.k.disabled=0===e)};p.prototype.ek=function(e,a){this.b.N||jQuery(this.k).css(e,a)};m.A=new p;n.prototype.Text=function(e){this.b.N?e.R(""):e.R(this.k.value)};m.B=new n})();function Oc(f){this.b=f}
(function(){var f=Oc.prototype;f.L=function(f){this.X=f;this.b=f.b};var p=f.L.prototype;p.I=function(){this.U||(this.O=new Image,this.O.tn=this.rm,this.b.Dm(this.O,this.Oj),this.M=this.pattern=null)};p.ah=function(){this.U||(this.M=null)};p.zj=function(){if(!this.U&&this.n.length){this.M||(this.M=this.b.F.Cd(this.O,!0,this.b.Ra,this.jh));var f,m;f=0;for(m=this.n.length;f<m;f++)this.n[f].M=this.M}};p.to=function(){this.U||this.M||!this.b.F||(this.M=this.b.F.Cd(this.O,!0,this.b.Ra,this.jh))};p.Rj=function(){this.U||
this.n.length||!this.M||(this.b.F.deleteTexture(this.M),this.M=null)};p.Sl=function(f){f.drawImage(this.O,0,0)};f.K=function(f){this.type=f;this.b=f.b};p=f.K.prototype;p.I=function(){this.visible=0===this.q[0];this.Xd=new wa(0,0,0,0);this.Kv=!1;this.O=this.type.O;this.b.F?(this.type.to(),this.M=this.type.M):(this.type.pattern||(this.type.pattern=this.b.Za.createPattern(this.type.O,"repeat")),this.pattern=this.type.pattern)};p.Od=function(){this.Kv=!1;this.O=this.type.O};p.gc=function(){this.b.F&&
this.Kv&&this.M&&(this.b.F.deleteTexture(this.M),this.M=null)};p.Tb=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var m=this.x,g=this.y;this.b.Gc&&(m=Math.round(m),g=Math.round(g));var p=-(this.oc*this.width),e=-(this.pc*this.height),a=p%this.O.width,b=e%this.O.height;0>a&&(a+=this.O.width);0>b&&(b+=this.O.height);f.translate(m,g);f.rotate(this.u);f.translate(a,b);f.fillRect(p-a,e-b,this.width,this.height);f.restore()};p.Ff=function(f){this.eb(f)};p.eb=function(f){f.jc(this.M);
f.Oe(this.opacity);var m=this.Xd;m.right=this.width/this.O.width;m.bottom=this.height/this.O.height;var g=this.Zb;if(this.b.Gc){var p=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;f.nd(g.Xa+p,g.Ya+e,g.zb+p,g.Ab+e,g.mb+p,g.nb+e,g.kb+p,g.lb+e,m)}else f.nd(g.Xa,g.Ya,g.zb,g.Ab,g.mb,g.nb,g.kb,g.lb,m)};f.j=new function(){};f.A=new function(){};f.B=new function(){}})();function Pc(f){this.b=f}
(function(){function f(){this.yp=this.id=-1;this.Du=this.Li=this.zm=this.Sk=!1;this.Oa=new wa(0,0,0,0)}function p(a){1E4>F.length&&F.push(a)}function n(){this.id=-1;this.Oa=new wa(0,0,0,0);this.Ge=null}function m(a){1E4>r.length&&r.push(a)}function g(a,b,d){var c;return C.length?(c=C.pop(),c.i=a,c.x=b,c.y=d,c.left=c.x*c.i.Qb*c.i.yb,c.top=c.y*c.i.$b*c.i.xb,c.clear(),c.Wl=!1,c):new q(a,b,d)}function q(a,b,c){this.i=a;this.x=b;this.y=c;this.left=this.x*this.i.Qb*this.i.yb;this.top=this.y*this.i.$b*this.i.xb;
this.uf=[];this.wc=[];this.Jc=[];this.Wl=!1;var d,e;a=0;for(b=this.i.$b;a<b;++a){e=[];c=0;for(d=this.i.Qb;c<d;++c)e.push(-1);this.uf.push(e)}}function e(){}function a(a){switch(a){case 0:return 0;case 1:return u;case 2:return h;case 3:return u|l;case 4:return u|h;case 5:return h|l;case 6:return u|h|l;case 7:return l;default:return 0}}function b(){}function c(){}var d=Pc.prototype;d.L=function(a){this.X=a;this.b=a.b};var k=d.L.prototype;k.I=function(){var a,b,c;if(!this.U&&(this.O=new Image,this.O.tn=
this.rm,this.b.Dm(this.O,this.Oj),this.wh=[],this.Aq=!1,this.Pe=[],this.fy=!1,this.xp&&this.xp.length))for(a=0,b=this.xp.length;a<b;++a)(c=this.xp[a])?this.Pe.push({Ge:c,Qn:[[[null,null],[null,null]],[[null,null],[null,null]]]}):this.Pe.push(null)};k.zg=function(a,b,c,d,e,h){if(!(0>a||a>=this.Pe.length)&&this.Pe[a]){var g=this.Pe[a].Qn;a=new mb(this.Pe[a].Ge);a.Ag(b,c,0);h&&a.oC();d&&a.KE(b/2);e&&a.yD(c/2);g[d?1:0][e?1:0][h?1:0]=a}};k.Gv=function(a){if(-1===a)return null;var b=a&v;return 0>b||b>=
this.Pe.length||!this.Pe[b]?null:this.Pe[b].Qn[a&u?1:0][a&h?1:0][a&l?1:0]};k.Tq=function(){var a,b,c=this.b.F;if(c)for(a=0,b=this.wh.length;a<b;++a)c.deleteTexture(this.wh[a]);J(this.wh);this.Aq=!1};k.Vr=function(a,b,c,d,e,h,g){if(!(this.Aq||0>=a||0>=b)){this.Tq();var f=this.O.width,k=this.O.height,l;for(l=d;l+b<=k;l+=b+h)for(d=c;d+a<=f;d+=a+e)this.wh.push(this.dz(d,l,a,b,g));this.Aq=!0}};k.dz=function(a,b,c,d,e){if(this.b.F)return this.Tp(a,b,c,d,!1,!1,!1,e);var h=[[[null,null],[null,null]],[[null,
null],[null,null]]];h[0][0][0]=this.Tp(a,b,c,d,!1,!1,!1,e);return{Qn:h,x:a,y:b,Kp:c,$n:d}};k.yt=function(a,b,c,d,e){if(0>a||a>=this.wh.length)return null;a=this.wh[a];var h=a.Qn;b=b?1:0;c=c?1:0;d=d?1:0;var g=h[b][c][d];if(g)return g;g=this.Tp(a.x,a.y,a.Kp,a.$n,0!==b,0!==c,0!==d,e);return h[b][c][d]=g};k.Tp=function(a,b,c,d,e,h,g,f){var l=c,k=d;this.b.F&&!f&&(oa(l)||(l=pa(l)),oa(k)||(k=pa(k)));var m=document.createElement("canvas");m.width=l;m.height=k;var n=m.getContext("2d");if(this.b.Za)return e?
h?(g?(n.rotate(Math.PI/2),n.scale(-1,1)):n.scale(-1,-1),n.translate(-l,-k)):g?(n.rotate(Math.PI/2),n.translate(0,-k)):(n.scale(-1,1),n.translate(-l,0)):h?g?(n.rotate(-Math.PI/2),n.translate(-l,0)):(n.scale(1,-1),n.translate(0,-k)):g&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.O,a,b,c,d,0,0,l,k),f?m:this.b.Za.createPattern(m,"repeat");n.drawImage(this.O,a,b,c,d,0,0,l,k);a=this.b.F.Sc(l,k,this.b.Ra,!1,!f);this.b.F.Jp(m,a);return a};k.ah=function(){this.U||this.Tq()};k.zj=function(){};k.to=
function(){};k.Rj=function(){this.U||this.n.length||this.Tq()};k.Sl=function(){};d.K=function(a){this.type=a;this.b=a.b};var k=d.K.prototype,u=-2147483648,h=1073741824,l=536870912,v=536870911,F=[],r=[],C=[];q.prototype.clear=function(){var a,b,c,d,e;this.uf.length=this.i.$b;a=0;for(b=this.uf.length;a<b;++a)for(e=this.uf[a],e||(e=[],this.uf[a]=e),e.length=this.i.Qb,c=0,d=e.length;c<d;++c)e[c]=-1};q.prototype.zl=function(){if(!this.Wl){var a=this.i.yb,b=this.i.xb;if(!(0>=a||0>=b)){var c,d,e,g,k,q;c=
0;for(d=this.wc.length;c<d;++c)p(this.wc[c]);c=0;for(d=this.Jc.length;c<d;++c)m(this.Jc[c]);J(this.wc);J(this.Jc);var D=Math.min(this.i.Dd,Math.floor(this.i.width/a)),C=Math.min(this.i.Vd,Math.floor(this.i.height/b)),D=D-this.left/a,C=C-this.top/b;D>this.i.Qb&&(D=this.i.Qb);C>this.i.$b&&(C=this.i.$b);var K=this.i.Ne,y=null;c=0;for(d=C;c<d;++c){k=this.uf[c];e=0;for(g=D;e<g;++e)q=k[e],-1===q?y&&(this.wc.push(y),y=null):K||!y||q!==y.id?(y&&this.wc.push(y),y=F.length?F.pop():new f,y.id=q,y.yp=q&v,y.Sk=
0!==(q&u),y.zm=0!==(q&h),y.Li=0!==(q&l),y.Du=y.Sk||y.zm||y.Li,y.Oa.left=e*a+this.left,y.Oa.top=c*b+this.top,y.Oa.right=y.Oa.left+a,y.Oa.bottom=y.Oa.top+b):y.Oa.right+=a;y&&(this.wc.push(y),y=null)}var y=null,W=!1;c=0;for(d=C;c<d;++c){k=this.uf[c];e=0;for(g=D;e<g;++e)q=k[e],-1===q?y&&(this.Jc.push(y),y=null,W=!1):(C=this.i.type.Gv(q),!y||C||W?(y&&this.Jc.push(y),y=r.length?r.pop():new n,y.id=q,y.Ge=C?C:null,q=y.Oa,q.left=e*a+this.left,q.top=c*b+this.top,q.right=q.left+a,q.bottom=q.top+b,W=!!C):y.Oa.right+=
a);y&&(this.Jc.push(y),y=null,W=!1)}if(!K)for(d=this.wc.length,c=0;c<d;++c)for(g=this.wc[c],a=c+1;a<d;++a)if(e=this.wc[a],!(e.Oa.top<g.Oa.bottom)){if(e.Oa.top>g.Oa.bottom)break;if(e.Oa.right>g.Oa.right||e.Oa.left>g.Oa.left)break;e.id===g.id&&e.Oa.left===g.Oa.left&&e.Oa.right===g.Oa.right&&(p(this.wc[a]),this.wc.splice(a,1),--d,g.Oa.bottom+=b,--a)}d=this.Jc.length;for(c=0;c<d;++c)if(g=this.Jc[c],!g.Ge)for(k=g.Oa,a=c+1;a<d;++a)if(e=this.Jc[a],g=e.Oa,!(g.top<k.bottom)){if(g.top>k.bottom)break;if(g.right>
k.right||g.left>k.left)break;e.Ge||g.left!==k.left||g.right!==k.right||(m(this.Jc[a]),this.Jc.splice(a,1),--d,k.bottom+=b,--a)}this.Wl=!0}}};q.prototype.em=function(a,b,c){this.uf[b][a]!==c&&(this.uf[b][a]=c,this.Wl=!1,this.i.Ym=!0,this.i.Cj=!0,this.i.b.ca=!0)};k.I=function(){var a,b,c;this.visible=0===this.q[0];this.yb=this.q[1];this.xb=this.q[2];this.Us=this.q[3];this.Ws=this.q[4];this.Vs=this.q[5];this.Xs=this.q[6];this.Ne=0!==this.q[7];this.Dd=this.iy;this.Vd=this.hy;this.Rf=this.width;this.Qf=
this.height;var d=this.yb,e=this.xb;0===d&&(d=1);0===e&&(e=1);this.Qb=Math.ceil(this.b.gb/d);this.$b=Math.ceil(this.b.fb/e);if(!this.type.fy)for(this.type.fy=!0,a=0,b=this.type.Pe.length;a<b;++a)if(c=this.type.Pe[a])this.type.zg(a,d,e,!1,!1,!1),this.type.zg(a,d,e,!1,!1,!0),this.type.zg(a,d,e,!1,!0,!1),this.type.zg(a,d,e,!1,!0,!0),this.type.zg(a,d,e,!0,!1,!1),this.type.zg(a,d,e,!0,!1,!0),this.type.zg(a,d,e,!0,!0,!1),this.type.zg(a,d,e,!0,!0,!0);this.Yb||(this.Nc=[]);this.di(!0);this.Is(this.gy);this.type.Vr(this.yb,
this.xb,this.Us,this.Ws,this.Vs,this.Xs,this.Ne);this.Cj=!1;this.Ym=!0;this.Ur()};k.Ur=function(){if(this.Ym){var a,b,c,d,e;a=0;for(b=this.Nc.length;a<b;++a)for(e=this.Nc[a],c=0,d=e.length;c<d;++c)e[c].zl();this.Ym=!1}};k.cm=function(){var a,b,c,d,e;a=0;for(b=this.Nc.length;a<b;++a)for(e=this.Nc[a],c=0,d=e.length;c<d;++c)e[c].Wl=!1;this.Ym=!0};k.di=function(a){var b=A(this.width/this.yb),c=A(this.height/this.xb);if(!(b<=this.Dd&&c<=this.Vd)||a){var d;a?(a=Math.ceil(this.Vd/this.$b),d=Math.ceil(this.Dd/
this.Qb)):(a=this.Nc.length,d=Math.ceil(this.Dd/this.Qb),c>this.Vd&&(this.Vd=c,a=Math.ceil(this.Vd/this.$b)),b>this.Dd&&(this.Dd=b,d=Math.ceil(this.Dd/this.Qb)),this.cm(),this.Cj=!0,this.b.ca=!0);for(var e,b=0;b<a;++b)if(e=this.Nc[b])for(c=e.length;c<d;++c)e.push(g(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(g(this,c,b));this.Nc[b]=e}}};k.sq=function(a,b){if(0>a||0>b)return null;var c=A(b/this.$b);if(c>=this.Nc.length)return null;var c=this.Nc[c],d=A(a/this.Qb);return d>=c.length?null:c[d]};k.tq=
function(a,b){if(0>a||0>b||b>=this.Nc.length)return null;var c=this.Nc[b];return a>=c.length?null:c[a]};k.Is=function(a){var b=[];a=a.split(",");var c,d,e,g,f;c=0;for(d=a.length;c<d;++c)if(e=a[c],g=e.indexOf("x"),-1<g)for(f=parseInt(e.substring(0,g),10),e=e.substring(g+1),g=parseInt(e,10),-1<e.indexOf("h")&&(g|=u),-1<e.indexOf("v")&&(g|=h),-1<e.indexOf("d")&&(g|=l);0<f;--f)b.push(g);else g=parseInt(e,10),-1<e.indexOf("h")&&(g|=u),-1<e.indexOf("v")&&(g|=h),-1<e.indexOf("d")&&(g|=l),b.push(g);for(c=
a=0;c<this.Vd;++c)for(d=0;d<this.Dd;++d)f=b[a++],(e=this.sq(d,c))&&e.em(d%this.Qb,c%this.$b,f)};k.Hv=function(){var a="";if(0>=this.Dd||0>=this.Vd)return a;var b=1,c=this.Nk(0,0),d,e,g,f,k,m,n,p;f=A(this.width/this.yb);e=A(this.height/this.xb);for(d=0;d<e;++d)for(g=0===d?1:0;g<f;++g)k=this.Nk(g,d),k===c?++b:(-1===c?(m=-1,c=p=n=!1):(m=c&v,n=0!==(c&u),p=0!==(c&h),c=0!==(c&l)),a=1===b?a+(""+m):a+(""+b+"x"+m),n&&(a+="h"),p&&(a+="v"),c&&(a+="d"),a+=",",b=1,c=k);-1===c?(m=-1,c=p=n=!1):(m=c&v,n=0!==(c&u),
p=0!==(c&h),c=0!==(c&l));a=1===b?a+(""+m):a+(""+b+"x"+m);n&&(a+="h");p&&(a+="v");c&&(a+="d");return a};k.Nk=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Dd||b>=this.Vd)return-1;var c=this.sq(a,b);return c?c.uf[b%this.$b][a%this.Qb]:-1};k.em=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Dd||b>=this.Vd)return-1;var d=this.sq(a,b);if(!d)return-1;d.em(a%this.Qb,b%this.$b,c)};k.Dy=function(a){return Math.floor((a-this.x)/(this.Qb*this.yb))};k.Ey=function(a){return Math.floor((a-
this.y)/(this.$b*this.xb))};k.Fy=function(a){return Math.floor((a-this.x)/this.yb)};k.Gy=function(a){return Math.floor((a-this.y)/this.xb)};k.wv=function(a,b){var c=this.Ey(a.top),d=this.Dy(a.right),e=this.Ey(a.bottom),h,g,f;for(h=this.Dy(a.left);h<=d;++h)for(g=c;g<=e;++g)if(f=this.tq(h,g))f.zl(),Ha(b,f.Jc)};k.$F=function(a,b){var c=this.Nk(this.Fy(a),this.Gy(b));if(-1===c)return!1;c=this.type.Gv(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.xb)*this.xb+this.y;a-=Math.floor((a-this.x)/this.yb)*
this.yb+this.x;return c.ac(a,b-d)};k.kc=function(a){var b,c,d,e,h,g;b=0;for(c=this.Nc.length;b<c;++b)for(h=this.Nc[b],d=0,e=h.length;d<e;++d)g=h[d],g.zl(),Ha(a,g.Jc)};k.gc=function(){var a,b,c,d,e;a=0;for(b=this.Nc.length;a<b;++a){e=this.Nc[a];c=0;for(d=e.length;c<d;++c){for(var h=e[c],g=void 0,f=void 0,g=0,f=h.wc.length;g<f;++g)p(h.wc[g]);J(h.wc);g=0;for(f=h.Jc.length;g<f;++g)m(h.Jc[g]);J(h.Jc);1E3>C.length&&C.push(h)}J(e)}J(this.Nc)};k.Ma=function(){this.di();return{w:A(this.width/this.yb),h:A(this.height/
this.xb),d:this.Hv()}};k.Sa=function(a){this.Dd=a.w;this.Vd=a.h;this.di(!0);this.Is(a.d);this.Cj=!0;this.cm()};k.Tb=function(a){if(!(0>=this.yb||0>=this.xb)){this.type.Vr(this.yb,this.xb,this.Us,this.Ws,this.Vs,this.Xs,this.Ne);if(this.width!==this.Rf||this.height!==this.Qf)this.Cj=!0,this.cm(),this.Ur(),this.Rf=this.width,this.Qf=this.height;a.globalAlpha=this.opacity;var b=this.r,c=b.Fa,d=b.Ga,e=b.Ja,b=b.Ia,h=this.x,g=this.y,f=this.Ne,k;this.b.Gc&&(h=Math.round(h),g=Math.round(g));var l=this.Qb*
this.yb,m=this.$b*this.xb,n=Math.floor((c-h)/l),l=Math.floor((e-h)/l),p=Math.floor((d-g)/m),m=Math.floor((b-g)/m),r=h%this.yb,q=g%this.xb;this.Ne&&(q=r=0);if(0!==r||0!==q)a.save(),a.translate(r,q),h-=r,g-=q,c-=r,d-=q,e-=r,b-=q;for(var u,v,D,C,F,N,aa,Q,Y;n<=l;++n)for(u=p;u<=m;++u)if(v=this.tq(n,u))for(v.zl(),D=0,C=v.wc.length;D<C;++D)F=v.wc[D],-1!==F.id&&(k=F.Oa,N=k.left+h,aa=k.top+g,Q=k.right+h,k=k.bottom+g,N>e||Q<c||aa>b||k<d||(Y=this.type.yt(F.yp,F.Sk,F.zm,F.Li,this.Ne),f?a.drawImage(Y,N,aa):(a.fillStyle=
this.type.yt(F.yp,F.Sk,F.zm,F.Li,this.Ne),a.fillRect(N,aa,Q-N,k-aa))));0===r&&0===q||a.restore()}};var D=new wa(0,0,1,1);k.Ff=function(a){this.eb(a)};k.eb=function(a){if(!(0>=this.yb||0>=this.xb)){this.type.Vr(this.yb,this.xb,this.Us,this.Ws,this.Vs,this.Xs,this.Ne);if(this.width!==this.Rf||this.height!==this.Qf)this.Cj=!0,this.cm(),this.Ur(),this.Rf=this.width,this.Qf=this.height;a.Oe(this.opacity);var b=this.type.wh,c=this.r,d=c.Fa,e=c.Ga,h=c.Ja,c=c.Ia,g=this.x,f=this.y,k;this.b.Gc&&(g=Math.round(g),
f=Math.round(f));var l=this.Qb*this.yb,m=this.$b*this.xb,n=Math.floor((h-g)/l),p=Math.floor((e-f)/m),m=Math.floor((c-f)/m),r,q,u,v,C,F,H,N,aa,Q,Y,Z,ia,ca,Ua,Va,$a;for(Ua=Math.floor((d-g)/l);Ua<=n;++Ua)for(Va=p;Va<=m;++Va)if($a=this.tq(Ua,Va))for($a.zl(),l=0,r=$a.wc.length;l<r;++l)q=$a.wc[l],-1!==q.id&&(k=q.Oa,u=k.left+g,v=k.top+f,C=k.right+g,k=k.bottom+f,u>h||C<d||v>c||k<e||(a.jc(b[q.yp]),D.right=(C-u)/this.yb,D.bottom=(k-v)/this.xb,q.Du?(q.Li&&(ca=D.right,D.right=D.bottom,D.bottom=ca),H=F=0,N=D.right,
aa=0,Q=D.right,Y=D.bottom,Z=0,ia=D.bottom,q.Li&&(ca=Z,Z=N,N=ca,ca=ia,ia=aa,aa=ca),q.Sk&&(ca=F,F=N,N=ca,ca=H,H=aa,aa=ca,ca=Z,Z=Q,Q=ca,ca=ia,ia=Y,Y=ca),q.zm&&(ca=F,F=Z,Z=ca,ca=H,H=ia,ia=ca,ca=N,N=Q,Q=ca,ca=aa,aa=Y,Y=ca),a.wF(u,v,C,v,C,k,u,k,F,H,N,aa,Q,Y,Z,ia)):a.nd(u,v,C,v,C,k,u,k,D)))}};e.prototype.Zy=function(a,b,c,d){a=this.Nk(a,b);-1!==a&&(a=a&v);return nc(a,c,d)};d.j=new e;b.prototype.fz=function(a,b){this.di();this.em(a,b,-1)};b.prototype.fB=function(b,c,d,e){this.di();this.em(b,c,d&v|a(e))};
b.prototype.Tz=function(a){var b;try{b=JSON.parse(a)}catch(c){return}b.c2tilemap&&(this.Dd=b.width,this.Vd=b.height,this.di(!0),this.Is(b.data),this.cm(),this.Cj=!0)};d.A=new b;c.prototype.AB=function(a,b,c){b=this.Nk(b,c);a.ka(-1===b?-1:b&v)};c.prototype.KA=function(a,b){a.S(this.Fy(b))};c.prototype.LA=function(a,b){a.S(this.Gy(b))};c.prototype.BB=function(a,b){a.S(b*this.yb+this.x+this.yb/2)};c.prototype.CB=function(a,b){a.S(b*this.xb+this.y+this.xb/2)};c.prototype.DB=function(a){this.di();a.R(JSON.stringify({c2tilemap:!0,
width:A(this.width/this.yb),height:A(this.height/this.xb),data:this.Hv()}))};d.B=new c})();function Qc(f){this.b=f}
(function(){function f(a){c=a.x;d=a.y;k=a.z}function p(a,b,c,d){var e;e=u.length?u.pop():new n;e.init(a,b,c,d);return e}function n(){this.mm=this.id=this.$h=this.Zh=this.y=this.x=this.up=this.tp=this.Ir=this.time=this.Ps=0;this.um=this.Cp=!1}function m(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function g(){}function q(){}var e=Qc.prototype;e.L=function(a){this.X=a;
this.b=a.b};e.L.prototype.I=function(){};e.K=function(a){this.type=a;this.b=a.b;this.touches=[];this.Yr=!1};var a=e.K.prototype,b={left:0,top:0};a.Fk=function(a){var b,c;b=0;for(c=this.touches.length;b<c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,d=0,k=0,u=[];n.prototype.init=function(a,b,c,d){var e=gb();this.Ps=this.Ir=this.time=e;this.tp=a;this.up=b;this.x=a;this.y=b;this.Zh=a;this.$h=b;this.pressure=this.height=this.width=0;this.id=c;this.mm=d;this.um=this.Cp=!1};n.prototype.update=
function(a,b,c,d,e,h){this.Ir=this.time;this.time=a;this.Zh=this.x;this.$h=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=h;!this.um&&15<=Za(this.tp,this.up,this.x,this.y)&&(this.um=!0)};n.prototype.IE=function(a,b){!this.Cp&&500<=gb()-this.Ps&&!this.um&&15>Za(this.tp,this.up,this.x,this.y)&&(this.Cp=!0,a.vf=this.mm,a.Qj=this.id,a.Ui=b,a.b.trigger(Qc.prototype.j.Gt,a),a.Bf=this.x,a.Cf=this.y,a.b.trigger(Qc.prototype.j.nA,a),a.Ui=0)};var h=-1E3,l=-1E3,v=-1E4;n.prototype.Hw=function(a,
b){if(!this.Cp){var c=gb();333>=c-this.Ps&&!this.um&&15>Za(this.tp,this.up,this.x,this.y)&&(a.vf=this.mm,a.Qj=this.id,a.Ui=b,666>=c-v&&25>Za(h,l,this.x,this.y)?(a.b.trigger(Qc.prototype.j.fA,a),a.Bf=this.x,a.Cf=this.y,a.b.trigger(Qc.prototype.j.gA,a),l=h=-1E3,v=-1E4):(a.b.trigger(Qc.prototype.j.gu,a),a.Bf=this.x,a.Cf=this.y,a.b.trigger(Qc.prototype.j.hu,a),h=this.x,l=this.y,v=c),a.Ui=0)}};a.I=function(){this.wE=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ui=this.Qj=this.vf=
this.Cf=this.Bf=this.wu=this.vu=this.uu=this.MB=this.LB=this.KB=this.Ko=this.Jo=this.Io=0;this.kG=0!==this.q[0];var a=0<this.b.Dc?document:this.b.canvas,b=document;this.b.Ec?b=a=window.Canvas:this.b.zd&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Nl(a)},!1),a.addEventListener("pointermove",function(a){c.Ml(a)},!1),b.addEventListener("pointerup",function(a){c.Wf(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Wf(a,!0)},!1),this.b.canvas&&
(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),this.b.canvas.addEventListener("gesturehold",function(a){a.preventDefault()},!1),document.addEventListener("gesturehold",function(a){a.preventDefault()},!1))):window.navigator.msPointerEnabled?(a.addEventListener("MSPointerDown",function(a){c.Nl(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Ml(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Wf(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Wf(a,!0)},!1),this.b.canvas&&(this.b.canvas.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1),document.addEventListener("MSGestureHold",function(a){a.preventDefault()},!1))):(a.addEventListener("touchstart",function(a){c.Ho(a)},!1),a.addEventListener("touchmove",function(a){c.Go(a)},!1),b.addEventListener("touchend",function(a){c.Aj(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Aj(a,!0)},
!1));if(this.wE){var d=function(a){a=a.reading;c.uu=a.accelerationX;c.vu=a.accelerationY;c.wu=a.accelerationZ},e=function(a){a=a.reading;c.Io=a.yawDegrees;c.Jo=a.pitchDegrees;c.Ko=a.rollDegrees},h=Windows.Devices.Sensors.Accelerometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",d));var g=Windows.Devices.Sensors.Inclinometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(h&&h.removeEventListener("readingchanged",d),g&&g.removeEventListener("readingchanged",e)):(h&&h.addEventListener("readingchanged",d),g&&g.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",function(a){c.Io=a.alpha||0;c.Jo=a.beta||0;c.Ko=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.KB=a.accelerationIncludingGravity.x||0,c.LB=a.accelerationIncludingGravity.y||
0,c.MB=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.uu=a.acceleration.x||0,c.vu=a.acceleration.y||0,c.wu=a.acceleration.z||0)},!1);this.kG&&!this.b.N&&(jQuery(document).mousemove(function(a){c.Kl(a)}),jQuery(document).mousedown(function(a){c.Jl(a)}),jQuery(document).mouseup(function(a){c.Ll(a)}));!this.b.Th&&this.b.Ad&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(f,null,{frequency:40});this.b.bG(this)};a.Ml=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.Fk(a.pointerId),d=gb();if(0<=c){var e=this.b.N?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.Nl=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var c=this.b.N?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;gb();
this.vf=this.touches.length;this.Qj=a.pointerId;this.touches.push(p(d,c,a.pointerId,this.vf));this.b.xa=!0;this.b.trigger(Qc.prototype.j.Qt,this);this.b.trigger(Qc.prototype.j.lu,this);this.Bf=d;this.Cf=c;this.b.trigger(Qc.prototype.j.ku,this);this.b.xa=!1}};a.Wf=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&vb(a)&&a.preventDefault();var c=this.Fk(a.pointerId);this.vf=0<=c?this.touches[c].mm:-1;this.Qj=0<=c?this.touches[c].id:-1;this.b.xa=!0;this.b.trigger(Qc.prototype.j.Pt,
this);this.b.trigger(Qc.prototype.j.ju,this);0<=c&&(b||this.touches[c].Hw(this,c),100>u.length&&u.push(this.touches[c]),this.touches.splice(c,1));this.b.xa=!1}};a.Go=function(a){a.preventDefault&&a.preventDefault();var c=gb(),d,e,h,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(h=a.changedTouches[d],g=this.Fk(h.identifier),0<=g){var f=this.b.N?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,h.pageX-f.left,h.pageY-f.top,2*(h.xH||h.GH||h.qH||h.tH||0),2*(h.yH||h.HH||h.rH||h.uH||
0),h.kH||h.FH||h.pH||h.sH||0)}};a.Ho=function(a){a.preventDefault&&vb(a)&&a.preventDefault();var c=this.b.N?b:jQuery(this.b.canvas).offset();gb();this.b.xa=!0;var d,e,h,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(h=a.changedTouches[d],g=this.Fk(h.identifier),-1===g){g=h.pageX-c.left;var f=h.pageY-c.top;this.vf=this.touches.length;this.Qj=h.identifier;this.touches.push(p(g,f,h.identifier,this.vf));this.b.trigger(Qc.prototype.j.Qt,this);this.b.trigger(Qc.prototype.j.lu,this);this.Bf=g;this.Cf=f;
this.b.trigger(Qc.prototype.j.ku,this)}this.b.xa=!1};a.Aj=function(a,b){a.preventDefault&&vb(a)&&a.preventDefault();this.b.xa=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.Fk(e.identifier),0<=e&&(this.vf=this.touches[e].mm,this.Qj=this.touches[e].id,this.b.trigger(Qc.prototype.j.Pt,this),this.b.trigger(Qc.prototype.j.ju,this),b||this.touches[e].Hw(this,e),100>u.length&&u.push(this.touches[e]),this.touches.splice(e,1));this.b.xa=!1};a.kc=function(){return this.b.Ad&&
0===this.Io&&0!==k?90*k:this.Io};a.Tk=function(){return this.b.Ad&&0===this.Jo&&0!==d?90*d:this.Jo};a.oo=function(){return this.b.Ad&&0===this.Ko&&0!==c?90*c:this.Ko};a.Jl=function(a){m(a)||(this.Ho({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Yr=!0)};a.Kl=function(a){this.Yr&&!m(a)&&this.Go({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Ll=function(a){a.preventDefault&&this.b.ao&&!this.b.ef&&a.preventDefault();this.b.ao=!0;m(a)||(this.Aj({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.Yr=!1)};a.Pj=function(){var a,b,c,d=gb();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Ir=d),c.IE(this,a)};g.prototype.lu=function(){return!0};g.prototype.ju=function(){return!0};g.prototype.ku=function(a){return a?this.b.Nj(a,this.Bf,this.Cf,!1):!1};var F=[];g.prototype.Kz=function(a){if(!a)return!1;var b=a.da(),c=b.Kc(),d,e,h,g,f,k;h=0;for(g=c.length;h<g;h++){var l=c[h];l.fa();f=0;for(k=this.touches.length;f<k;f++)if(e=this.touches[f],
d=l.r.bb(e.x,e.y,!0),e=l.r.bb(e.x,e.y,!1),l.ac(d,e)){F.push(l);break}}return F.length?(b.ta=!1,Ga(b.n,F),a.td(),J(F),!0):!1};g.prototype.Qt=function(a){a=Math.floor(a);return a===this.vf};g.prototype.Pt=function(a){a=Math.floor(a);return a===this.vf};g.prototype.Gt=function(){return!0};g.prototype.gu=function(){return!0};g.prototype.fA=function(){return!0};g.prototype.nA=function(a){return a?this.b.Nj(a,this.Bf,this.Cf,!1):!1};g.prototype.hu=function(a){return a?this.b.Nj(a,this.Bf,this.Cf,!1):!1};
g.prototype.gA=function(a){return a?this.b.Nj(a,this.Bf,this.Cf,!1):!1};e.j=new g;e.A=new function(){};q.prototype.hk=function(a,b){var c=this.Ui;if(0>c||c>=this.touches.length)a.S(0);else{var d,e,h,g,f;la(b)?(d=this.b.Jf(0),e=d.scale,h=d.Ic,g=d.Uc,f=d.u,d.scale=1,d.Ic=1,d.Uc=1,d.u=0,a.S(d.bb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Ic=h,d.Uc=g,d.u=f):(d=ma(b)?this.b.Jf(b):this.b.Lk(b))?a.S(d.bb(this.touches[c].x,this.touches[c].y,!0)):a.S(0)}};q.prototype.oh=function(a,b){var c=this.Ui;
if(0>c||c>=this.touches.length)a.S(0);else{var d,e,h,g,f;la(b)?(d=this.b.Jf(0),e=d.scale,h=d.Ic,g=d.Vc,f=d.u,d.scale=1,d.Ic=1,d.Vc=1,d.u=0,a.S(d.bb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Ic=h,d.Vc=g,d.u=f):(d=ma(b)?this.b.Jf(b):this.b.Lk(b))?a.S(d.bb(this.touches[c].x,this.touches[c].y,!1)):a.S(0)}};e.B=new q})();function Rc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Rc.prototype;m.L=function(a){this.X=a;this.b=a.b};m.L.prototype.I=function(){};m.K=function(a){this.type=a;this.b=a.b};var g=m.K.prototype,q="",e="undefined"!==typeof window.is_scirra_arcade;e&&(q="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(b){a=!1}g.I=function(){a||ga("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};f.prototype.uA=function(){return!0};f.prototype.Vy=
function(b,d,e){if(!a)return!1;b=localStorage.getItem(q+b)||"";return e?b==d:ub(b,d)};m.j=new f;p.prototype.xB=function(b,d){if(a)try{localStorage.setItem(q+b,d)}catch(e){this.b.trigger(Rc.prototype.j.uA,this)}};m.A=new p;n.prototype.Vz=function(b,d){a?b.R(localStorage.getItem(q+d)||""):b.R("")};n.prototype.Rp=function(b){if(a){var d={},g,f,h;g=0;for(f=localStorage.length;g<f;g++)h=localStorage.key(g),e?h.substr(0,q.length)===q&&(d[h.substr(q.length)]=localStorage.getItem(h)):d[h]=localStorage.getItem(h);
b.R(JSON.stringify({c2dictionary:!0,data:d}))}else b.R("")};m.B=new n})();function Sc(f){this.b=f}
(function(){function f(){}function p(){}function n(){}var m=Sc.prototype;m.L=function(g){this.X=g;this.b=g.b};m.L.prototype.I=function(){};m.K=function(g){this.type=g;this.b=g.b};m.K.prototype.I=function(){this.Su=this.q[0];this.tx=!!this.q[1];!this.tx&&this.b.cl&&(this.qe=require("discord-rich-presence/")(this.Su),this.GF=this.qe.first,this.kt=this.rs=this.Sj=this.id=this.$m=null)};f.prototype.aF=function(){return!0};m.j=new f;p.prototype.UF=function(g,f,e,a,b,c){!this.tx&&this.b.cl&&(null==this.qe&&
(this.qe=require("discord-rich-presence/")(this.Su)),null==this.Sj&&null!=this.qe.second.xi&&(this.Sj=this.qe.second.xi.Sj,this.$m="https://cdn.discordapp.com/avatars/"+this.qe.second.xi.id+"/"+this.qe.second.xi.$m+".png",this.id=this.qe.second.xi.id,this.rs=this.qe.second.xi.wH,this.kt=this.qe.second.xi.Sj+"#"+this.qe.second.xi.jH),this.GF.EH({bv:f,state:g,AH:b,BH:c,nH:e,oH:a}),this.b.trigger(Sc.prototype.j.aF,this))};m.A=new p;n.prototype.Sj=function(g){g.R(this.Sj)};n.prototype.$m=function(g){g.R(this.$m)};
n.prototype.kt=function(g){g.R(this.kt)};n.prototype.id=function(g){g.R(this.id)};n.prototype.rs=function(g){g.R(this.rs)};m.B=new n})();function Tc(f){this.b=f}
(function(){function f(){}function p(){}var n=Tc.prototype;n.L=function(g){this.X=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g){this.type=g;this.b=g.b};var m=n.K.prototype;m.I=function(){this.b.N?ga("[Construct 2] Progress Bar plugin not supported on this platform - the object will not be created"):(this.k=document.createElement("progress"),this.value=this.q[0],this.max=this.q[1],0<this.max&&0<=this.value&&(this.k.max=this.max,this.k.value=this.value),this.k.id=this.q[4],this.k.title=
this.q[2],jQuery(this.k).appendTo(this.b.Pd?this.b.Pd:"body"),this.qb=!1,0===this.q[3]&&(jQuery(this.k).hide(),this.visible=!1,this.qb=!0),this.k.onclick=function(g){return function(f){f.stopPropagation();g.b.xa=!0;g.b.trigger(Tc.prototype.j.rg,g);g.b.xa=!1}}(this),this.k.addEventListener("touchstart",function(g){g.stopPropagation()},!1),this.k.addEventListener("touchmove",function(g){g.stopPropagation()},!1),this.k.addEventListener("touchend",function(g){g.stopPropagation()},!1),jQuery(this.k).mousedown(function(g){g.stopPropagation()}),
jQuery(this.k).mouseup(function(g){g.stopPropagation()}),this.Ae=this.Be=this.we=this.ye=this.ze=this.xe=0,this.rd(!0),this.b.qd(this))};m.Ma=function(){return{v:this.k.value,m:this.k.max}};m.Sa=function(g){this.k.value=g.v;this.k.max=g.m};m.gc=function(){this.b.N||(jQuery(this.k).remove(),this.k=null)};m.Ea=function(){this.rd()};m.rd=function(g){if(!this.b.N){var f=this.r.ba(this.x,this.y,!0),e=this.r.ba(this.x,this.y,!1),a=this.r.ba(this.x+this.width,this.y+this.height,!0),b=this.r.ba(this.x+this.width,
this.y+this.height,!1),c=this.b.width/this.b.devicePixelRatio,d=this.b.height/this.b.devicePixelRatio;!this.visible||!this.r.visible||0>=a||0>=b||f>=c||e>=d?(this.qb||jQuery(this.k).hide(),this.qb=!0):(1>f&&(f=1),1>e&&(e=1),a>=c&&(a=c-1),b>=d&&(b=d-1),c=window.innerWidth,d=window.innerHeight,g||this.xe!==f||this.ze!==e||this.ye!==a||this.we!==b||this.Be!==c||this.Ae!==d?(this.xe=f,this.ze=e,this.ye=a,this.we=b,this.Be=c,this.Ae=d,this.qb&&(jQuery(this.k).show(),this.qb=!1),g=Math.round(f)+jQuery(this.b.canvas).offset().left,
c=Math.round(e)+jQuery(this.b.canvas).offset().top,jQuery(this.k).css("position","absolute"),jQuery(this.k).offset({left:g,top:c}),jQuery(this.k).width(Math.round(a-f)),jQuery(this.k).height(Math.round(b-e))):this.qb&&(jQuery(this.k).show(),this.qb=!1))}};m.Tb=function(){};m.eb=function(){};f.prototype.rg=function(){return!0};f.prototype.Xy=function(g,f){return this.N?!1:nc(this.k.value,g,f)};n.j=new f;p.prototype.Te=function(g){this.b.N||(this.visible=0!==g)};p.prototype.ek=function(g,f){this.b.N||
jQuery(this.k).css(g,f)};p.prototype.dB=function(g){this.b.N||(this.value=g,this.k.max=this.max,this.k.value=this.value)};n.A=new p;n.B=new function(){}})();function Uc(f){this.b=f}
(function(){function f(e){switch(e){case 0:return"top-right";case 1:return"top-left";case 2:return"bottom-left"}return"bottom-right"}function p(e){switch(e){case 1:return"medium";case 2:return"fast"}return"slow"}function n(e){switch(e){case 1:return"gritter-light";case 2:return"gritter-success";case 3:return"gritter-info";case 4:return"gritter-warning";case 5:return"gritter-error";case 6:return"gritter-red";case 7:return"gritter-yellow";case 8:return"gritter-blue";case 9:return"gritter-green"}return""}
function m(){}var g=Uc.prototype;g.L=function(e){this.X=e;this.b=e.b};g.L.prototype.I=function(){};g.K=function(e){this.type=e;this.b=e.b};var q=g.K.prototype;q.I=function(){this.position=f(this.q[0]);this.tD=p(this.q[1]);this.uD=p(this.q[2]);this.time=this.q[3];this.HE=this.q[4];this.dF=0===this.q[5]?!0:!1;this.eF=this.q[6];jQuery.extend(jQuery.gritter.options,{position:this.position,fade_in_speed:this.tD,fade_out_speed:this.uD,time:this.time,max_to_display:this.HE})};q.gc=function(){};q.Ma=function(){return{}};
q.Sa=function(){};q.Tb=function(){};q.eb=function(){};g.j=new function(){};m.prototype.Jy=function(e,a,b){jQuery.gritter.add({title:e,text:a,image:b,sticky:this.dF,class_name:n(this.eF)})};g.A=new m;g.B=new function(){}})();function Vc(f){this.b=f}
(function(){function f(a){return a&&!a.paused&&!a.ended&&0<a.currentTime}function p(){var a=d.slice(0);J(d);var b,c,e,g;b=0;for(c=a.length;b<c;++b)g=a[b],(e=g.play())&&e.catch(function(){n(g)})}function n(a){-1===d.indexOf(a)&&d.push(a)}function m(){}function g(){}var q=Vc.prototype;q.L=function(a){this.X=a;this.b=a.b};var e=q.L.prototype;e.I=function(){};e.ah=function(){if(!this.U){var a,b,c;a=0;for(b=this.n.length;a<b;++a)c=this.n[a],c.M=null}};var e=document.createElement("video"),a=!!e.canPlayType("video/webm"),
b=!!e.canPlayType("video/ogg"),c=!!e.canPlayType("video/mp4"),e=null;q.K=function(a){this.type=a;this.b=a.b};var e=q.K.prototype,d=[];document.addEventListener("touchend",p,!0);document.addEventListener("click",p,!0);document.addEventListener("keydown",p,!0);e.ki=function(a){if(this.video){var b=this;if(a){var c;try{c=this.video.play()}catch(e){n(this.video);return}c?c.catch(function(){b.video&&n(b.video)}):this.lG&&!this.b.xa&&n(this.video)}else a=d.indexOf(this.video),0<=a&&d.splice(a,1)}};e.I=
function(){this.oG=this.q[0];this.QE=this.q[1];this.ME=this.q[2];this.autoplay=this.q[3];this.jF=0!==this.q[4];this.mt=!1;this.video=document.createElement("video");this.video.crossOrigin="anonymous";this.video.playsInline=!0;this.M=null;this.Df=-1;this.Cm=this.yi=null;this.mG=this.b.df||this.b.$i;var a=this;this.video.addEventListener("canplay",function(){a.Df=0;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("canplaythrough",function(){a.Df=1;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("ended",
function(){a.Df=2;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("error",function(){a.Df=3;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("loadstart",function(){a.Df=4;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("playing",function(){a.Df=5;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("pause",function(){a.Df=6;a.b.trigger(Vc.prototype.j.wf,a)});this.video.addEventListener("stalled",function(){a.Df=7;a.b.trigger(Vc.prototype.j.wf,
a)});this.lG=(this.b.Th||this.b.Zi&&(this.b.ho||this.b.Yk))&&!this.b.$k&&!this.b.N;0===this.autoplay?(this.video.autoplay=!1,this.video.qx="none"):1===this.autoplay?(this.video.autoplay=!1,this.video.qx="auto"):2===this.autoplay&&(this.video.autoplay=!0);this.Nx(this.oG,this.QE,this.ME);2===this.autoplay&&this.ki(!0);this.visible=0!==this.q[5];this.b.qd(this);this.Yb||(a=this,this.b.jq(function(b){a.hs(b)}))};e.hs=function(a){!this.jF&&this.video&&(a?f(this.video)&&(this.ki(!1),this.video.pause(),
this.mt=!0):this.mt&&(this.ki(!0),this.mt=!1))};e.Nx=function(d,e,g){var f="";a&&d?f=d:b&&e?f=e:c&&g&&(f=g);f&&(this.b.Sv(f)||(f=f.toLowerCase()),this.video.src=f);this.b.F&&this.M&&(this.b.F.deleteTexture(this.M),this.M=null);this.Cm=this.yi=null};e.gc=function(){this.ki(!1);f(this.video)&&this.video.pause();this.b.F&&this.M&&(this.b.F.deleteTexture(this.M),this.M=null);this.Cm=this.yi=null;this.video.src="";this.video=null};e.Ea=function(){f(this.video)&&(this.b.ca=!0)};e.Ma=function(){return{s:this.video.src||
"",p:!!f(this.video),t:this.video.currentTime||0}};e.Sa=function(a){if(a&&"undefined"!==typeof a.s){var b=a.s;this.Nx(b,b,b);try{this.video.currentTime=a.t}catch(c){}a.p?this.ki(!0):(this.ki(!1),this.video.pause())}};e.Tb=function(a){if(this.video){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var b=b/c,c=this.width,d=this.height,e=0,g=0,f=0,k=0;c/d>b?(f=d*b,k=d,e=Math.floor((c-f)/2),0>e&&(e=0)):(f=c,k=c/b,g=Math.floor((d-k)/2),0>g&&(g=0));a.globalAlpha=this.opacity;a.drawImage(this.video,
this.x+e,this.y+g,f,k)}}};var k=new wa(0,0,0,0),u=new xa;e.eb=function(a){if(this.video){var b=this.video.videoWidth,c=this.video.videoHeight;if(!(0>=b||0>=c)){var d=b/c,e=this.width,g=this.height,f=0,m=0,n=0,p=0;e/g>d?(n=g*d,p=g,f=Math.floor((e-n)/2),0>f&&(f=0)):(n=e,p=e/d,m=Math.floor((g-p)/2),0>m&&(m=0));this.M||(this.M=a.Sc(b,c,this.b.Ra,!1,!1));this.mG?(this.Cm||(this.yi=document.createElement("canvas"),this.yi.width=b,this.yi.height=c,this.Cm=this.yi.getContext("2d")),this.Cm.drawImage(this.video,
0,0),a.Jp(this.yi,this.M)):a.Jp(this.video,this.M);a.ag(this.yc,this.mc);a.Oe(this.opacity);a.jc(this.M);k.set(this.x+f,this.y+m,this.x+f+n,this.y+m+p);u.gh(k);a.Ej(u.Xa,u.Ya,u.zb,u.Ab,u.mb,u.nb,u.kb,u.lb)}}};m.prototype.wf=function(a){return this.Df===a};q.j=new m;g.prototype.Play=function(){this.ki(!0)};q.A=new g;q.B=new function(){}})();function Wc(f){this.b=f}
(function(){function f(){}var p=Wc.prototype;p.L=function(f){this.behavior=f;this.b=f.b};p.L.prototype.I=function(){};p.K=function(f,g){this.type=f;this.behavior=f.behavior;this.i=g;this.b=f.b};var n=p.K.prototype;n.I=function(){this.zu=this.q[0];this.Au=this.q[1];this.SB=this.q[2];this.RB=this.q[3];this.i.fa();this.Mp=this.i.ma.left;this.Pp=this.i.ma.top;this.Np=this.b.gb-this.i.ma.left;this.Op=this.b.fb-this.i.ma.top;this.Xo=this.b.gb-this.i.ma.right;this.gn=this.b.fb-this.i.ma.bottom;this.enabled=
0!==this.q[4]};n.Ma=function(){return{xleft:this.Mp,ytop:this.Pp,xright:this.Np,ybottom:this.Op,rdiff:this.Xo,bdiff:this.gn,enabled:this.enabled}};n.Sa=function(f){this.Mp=f.xleft;this.Pp=f.ytop;this.Np=f.xright;this.Op=f.ybottom;this.Xo=f.rdiff;this.gn=f.bdiff;this.enabled=f.enabled};n.Ea=function(){if(this.enabled){var f,g=this.i.r,n=this.i,e=this.i.ma;0===this.zu?(n.fa(),f=g.Fa+this.Mp-e.left,0!==f&&(n.x+=f,n.H())):1===this.zu&&(n.fa(),f=g.Ja-this.Np-e.left,0!==f&&(n.x+=f,n.H()));0===this.Au?(n.fa(),
f=g.Ga+this.Pp-e.top,0!==f&&(n.y+=f,n.H())):1===this.Au&&(n.fa(),f=g.Ia-this.Op-e.top,0!==f&&(n.y+=f,n.H()));1===this.SB&&(n.fa(),f=g.Ja-this.Xo-e.right,0!==f&&(n.width+=f,0>n.width&&(n.width=0),n.H()));1===this.RB&&(n.fa(),f=g.Ia-this.gn-e.bottom,0!==f&&(n.height+=f,0>n.height&&(n.height=0),n.H()))}};p.j=new function(){};f.prototype.Oc=function(f){this.enabled&&0===f?this.enabled=!1:this.enabled||0===f||(this.i.fa(),this.Mp=this.i.ma.left,this.Pp=this.i.ma.top,this.Np=this.b.gb-this.i.ma.left,this.Op=
this.b.fb-this.i.ma.top,this.Xo=this.b.gb-this.i.ma.right,this.gn=this.b.fb-this.i.ma.bottom,this.enabled=!0)};p.A=new f;p.B=new function(){}})();function Xc(f){this.b=f}
(function(){function f(){}var p=Xc.prototype;p.L=function(f){this.behavior=f;this.b=f.b};p.L.prototype.I=function(){};p.K=function(f,g){this.type=f;this.behavior=f.behavior;this.i=g;this.b=f.b};var n=p.K.prototype;n.I=function(){var f=this.q[0];this.ab=this.q[1];this.ed=this.q[2];this.YB=0!==this.q[3];this.Hs=0!==this.q[4];this.C=Math.cos(this.i.u)*f;this.D=Math.sin(this.i.u)*f;this.Zh=this.i.x;this.$h=this.i.y;this.Fc=this.i.u;this.Ap=0;this.enabled=0!==this.q[5]};n.Ma=function(){return{acc:this.ab,
g:this.ed,dx:this.C,dy:this.D,lx:this.Zh,ly:this.$h,lka:this.Fc,t:this.Ap,e:this.enabled}};n.Sa=function(f){this.ab=f.acc;this.ed=f.g;this.C=f.dx;this.D=f.dy;this.Zh=f.lx;this.$h=f.ly;this.Fc=f.lka;this.Ap=f.t;this.enabled=f.e};n.Ea=function(){if(this.enabled){var f=this.b.Fh(this.i),g,n;this.i.u!==this.Fc&&(this.Hs&&(g=Za(0,0,this.C,this.D),this.C=Math.cos(this.i.u)*g,this.D=Math.sin(this.i.u)*g),this.Fc=this.i.u);0!==this.ab&&(g=Za(0,0,this.C,this.D),n=0===this.C&&0===this.D?this.i.u:Sa(0,0,this.C,
this.D),g+=this.ab*f,0>g&&(g=0),this.C=Math.cos(n)*g,this.D=Math.sin(n)*g);0!==this.ed&&(this.D+=this.ed*f);this.Zh=this.i.x;this.$h=this.i.y;if(0!==this.C||0!==this.D)if(this.i.x+=this.C*f,this.i.y+=this.D*f,this.Ap+=Za(0,0,this.C*f,this.D*f),this.Hs&&(this.i.u=Sa(0,0,this.C,this.D),this.i.H(),this.Fc=this.i.u),this.i.H(),this.YB&&(g=this.b.ib(this.i)))this.b.Gd(this.i,g),g=Za(0,0,this.C,this.D),n=this.b.aC(this.i,this.Zh,this.$h),this.C=Math.cos(n)*g,this.D=Math.sin(n)*g,this.i.x+=this.C*f,this.i.y+=
this.D*f,this.i.H(),this.Hs&&(this.Fc=this.i.u=n,this.i.H()),this.b.md(this.i,this.C/g,this.D/g,Math.max(2.5*g*f,30))||this.b.ws(this.i,100)}};p.j=new function(){};f.prototype.Oc=function(f){this.enabled=1===f};p.A=new f;p.B=new function(){}})();
function Yc(f){this.b=f;var p=this;this.b.N||(jQuery(document).mousemove(function(f){p.Kl(f)}),jQuery(document).mousedown(function(f){p.Jl(f)}),jQuery(document).mouseup(function(f){p.Ll(f)}));f=0<this.b.Dc?document:this.b.canvas;this.b.Ec?f=window.Canvas:this.b.zd&&(f=window);"undefined"!==typeof PointerEvent?(f.addEventListener("pointerdown",function(f){p.Nl(f)},!1),f.addEventListener("pointermove",function(f){p.Ml(f)},!1),f.addEventListener("pointerup",function(f){p.Wf(f)},!1),f.addEventListener("pointercancel",
function(f){p.Wf(f)},!1)):window.navigator.msPointerEnabled?(f.addEventListener("MSPointerDown",function(f){p.Nl(f)},!1),f.addEventListener("MSPointerMove",function(f){p.Ml(f)},!1),f.addEventListener("MSPointerUp",function(f){p.Wf(f)},!1),f.addEventListener("MSPointerCancel",function(f){p.Wf(f)},!1)):(f.addEventListener("touchstart",function(f){p.Ho(f)},!1),f.addEventListener("touchmove",function(f){p.Go(f)},!1),f.addEventListener("touchend",function(f){p.Aj(f)},!1),f.addEventListener("touchcancel",
function(f){p.Aj(f)},!1))}
(function(){function f(e){var a,b;a=0;for(b=e.Y.length;a<b;a++)if(e.Y[a]instanceof m.K)return e.Y[a];return null}function p(){}function n(){}var m=Yc.prototype,g={left:0,top:0};m.Jl=function(e){1===e.which&&this.ds("leftmouse",e.pageX,e.pageY)};m.Kl=function(e){1===e.which&&this.es("leftmouse",e.pageX,e.pageY)};m.Ll=function(e){1===e.which&&this.gs("leftmouse")};m.Ho=function(e){e.preventDefault&&vb(e)&&e.preventDefault();var a,b,c,d;a=0;for(b=e.changedTouches.length;a<b;a++)c=e.changedTouches[a],
d=c.identifier,this.ds(d?d.toString():"<none>",c.pageX,c.pageY)};m.Go=function(e){e.preventDefault&&e.preventDefault();var a,b,c,d;a=0;for(b=e.changedTouches.length;a<b;a++)c=e.changedTouches[a],d=c.identifier,this.es(d?d.toString():"<none>",c.pageX,c.pageY)};m.Aj=function(e){e.preventDefault&&vb(e)&&e.preventDefault();var a,b,c;a=0;for(b=e.changedTouches.length;a<b;a++)c=e.changedTouches[a],c=c.identifier,this.gs(c?c.toString():"<none>")};m.Nl=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&
"mouse"!==e.pointerType&&(e.preventDefault&&vb(e)&&e.preventDefault(),this.ds(e.pointerId.toString(),e.pageX,e.pageY))};m.Ml=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&e.preventDefault(),this.es(e.pointerId.toString(),e.pageX,e.pageY))};m.Wf=function(e){e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType&&(e.preventDefault&&vb(e)&&e.preventDefault(),this.gs(e.pointerId.toString()))};m.ds=function(e,a,b){var c=this.b.N?g:jQuery(this.b.canvas).offset();
a=a-c.left;b=b-c.top;var d,k,m,h,c=this.fi.ee(),l,n,p,q=null;l=0;for(n=c.length;l<n;l++)if(p=c[l],d=f(p),d.enabled&&!d.Kg&&(d=p.r.bb(a,b,!0),k=p.r.bb(a,b,!1),p.fa(),p.ac(d,k)))q?p.r.index>q.r.index?(q=p,m=d,h=k):p.r.index===q.r.index&&p.Td()>q.Td()&&(q=p,m=d,h=k):(q=p,m=d,h=k);q&&f(q).WE(e,m,h)};m.es=function(e,a,b){var c=this.b.N?g:jQuery(this.b.canvas).offset();a=a-c.left;b=b-c.top;var d,k=this.fi.ee(),m,h,l;m=0;for(h=k.length;m<h;m++)d=k[m],l=f(d),!l.enabled||!l.Kg||l.Kg&&l.Jq!==e||(c=d.r.bb(a,
b,!0),d=d.r.bb(a,b,!1),l.XE(c,d))};m.gs=function(e){var a=this.fi.ee(),b,c,d;b=0;for(c=a.length;b<c;b++)d=a[b],d=f(d),d.Kg&&d.Jq===e&&d.ZE()};m.L=function(e){this.behavior=e;this.b=e.b};m.L.prototype.I=function(){};m.K=function(e,a){this.type=e;this.behavior=e.behavior;this.i=a;this.b=e.b};var q=m.K.prototype;q.I=function(){this.Kg=!1;this.D=this.C=0;this.Jq="<none>";this.nq=this.q[0];this.enabled=0!==this.q[1]};q.Ma=function(){return{enabled:this.enabled}};q.Sa=function(e){this.enabled=e.enabled;
this.Kg=!1};q.WE=function(e,a,b){this.C=a-this.i.x;this.D=b-this.i.y;this.Kg=!0;this.Jq=e;this.b.xa=!0;this.b.trigger(Yc.prototype.j.hA,this.i);this.b.xa=!1};q.XE=function(e,a){var b=e-this.C,c=a-this.D;if(0===this.nq){if(this.i.x!==b||this.i.y!==c)this.i.x=b,this.i.y=c,this.i.H()}else 1===this.nq?this.i.x!==b&&(this.i.x=b,this.i.H()):2===this.nq&&this.i.y!==c&&(this.i.y=c,this.i.H())};q.ZE=function(){this.Kg=!1;this.b.xa=!0;this.b.trigger(Yc.prototype.j.iA,this.i);this.b.xa=!1};q.Ea=function(){};
p.prototype.hA=function(){return!0};p.prototype.iA=function(){return!0};m.j=new p;n.prototype.Oc=function(e){this.enabled=0!==e;this.enabled||(this.Kg=!1)};m.A=new n;m.B=new function(){}})();function cd(f){this.b=f}
(function(){function f(){}function p(){}var n=cd.prototype;n.L=function(g){this.behavior=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g,f){this.type=g;this.behavior=g.behavior;this.i=f;this.b=g.b;this.eg=this.dg=this.pp=this.qp=this.Mh=this.Me=this.De=this.yk=this.vm=!1;this.Hr=this.Gr=this.Fr=this.Jr=-1;this.D=this.C=0};var m=n.K.prototype;m.I=function(){this.sc=this.q[0];this.ab=this.q[1];this.Hb=this.q[2];this.Gq=this.q[3];this.lq=this.q[4];this.Eq=1===this.q[5];this.enabled=0!==this.q[6];
this.Eq&&!this.b.N&&(jQuery(document).keydown(function(g){return function(f){g.Hl(f)}}(this)),jQuery(document).keyup(function(g){return function(f){g.Il(f)}}(this)))};m.Ma=function(){return{dx:this.C,dy:this.D,enabled:this.enabled,maxspeed:this.sc,acc:this.ab,dec:this.Hb,ignoreInput:this.Mh}};m.Sa=function(g){this.C=g.dx;this.D=g.dy;this.enabled=g.enabled;this.sc=g.maxspeed;this.ab=g.acc;this.Hb=g.dec;this.Mh=g.ignoreInput;this.eg=this.dg=this.pp=this.qp=this.Me=this.De=this.yk=this.vm=!1;this.Hr=
this.Gr=this.Fr=this.Jr=-1};m.Hl=function(g){var f=this.b.Id;switch(g.which){case 37:g.preventDefault();this.Gr<f&&(this.De=!0);break;case 38:g.preventDefault();this.Jr<f&&(this.vm=!0);break;case 39:g.preventDefault();this.Hr<f&&(this.Me=!0);break;case 40:g.preventDefault(),this.Fr<f&&(this.yk=!0)}};m.Il=function(g){var f=this.b.Id;switch(g.which){case 37:g.preventDefault();this.De=!1;this.Gr=f;break;case 38:g.preventDefault();this.vm=!1;this.Jr=f;break;case 39:g.preventDefault();this.Me=!1;this.Hr=
f;break;case 40:g.preventDefault(),this.yk=!1,this.Fr=f}};m.Xf=function(){this.Me=this.De=this.yk=this.vm=!1};m.Ea=function(){var g=this.b.Fh(this.i),f=this.De||this.dg,e=this.Me||this.eg,a=this.vm||this.qp,b=this.yk||this.pp;this.pp=this.qp=this.eg=this.dg=!1;if(this.enabled){var c=this.b.ib(this.i);if(c&&(this.b.Gd(this.i,c),!this.b.ws(this.i)))return;this.Mh&&(b=a=e=f=!1);0===this.Gq?e=f=!1:1===this.Gq&&(b=a=!1);2===this.Gq&&(a||b)&&(e=f=!1);f==e&&(0>this.C?(this.C+=this.Hb*g,0<this.C&&(this.C=
0)):0<this.C&&(this.C-=this.Hb*g,0>this.C&&(this.C=0)));a==b&&(0>this.D?(this.D+=this.Hb*g,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.Hb*g,0>this.D&&(this.D=0)));f&&!e&&(this.C=0<this.C?this.C-(this.ab+this.Hb)*g:this.C-this.ab*g);e&&!f&&(this.C=0>this.C?this.C+(this.ab+this.Hb)*g:this.C+this.ab*g);a&&!b&&(this.D=0<this.D?this.D-(this.ab+this.Hb)*g:this.D-this.ab*g);b&&!a&&(this.D=0>this.D?this.D+(this.ab+this.Hb)*g:this.D+this.ab*g);if(0!==this.C||0!==this.D){Math.sqrt(this.C*this.C+this.D*this.D)>
this.sc&&(c=Math.atan2(this.D,this.C),this.C=this.sc*Math.cos(c),this.D=this.sc*Math.sin(c));e=this.i.x;a=this.i.y;f=this.i.u;this.i.x+=this.C*g;this.i.H();if(c=this.b.ib(this.i))this.b.md(this.i,0>this.C?1:-1,0,Math.abs(Math.floor(this.C*g)))||(this.i.x=e),this.C=0,this.i.H(),this.b.Gd(this.i,c);this.i.y+=this.D*g;this.i.H();if(c=this.b.ib(this.i))this.b.md(this.i,0,0>this.D?1:-1,Math.abs(Math.floor(this.D*g)))||(this.i.y=a),this.D=0,this.i.H(),this.b.Gd(this.i,c);g=rb(this.C);c=rb(this.D);0===g&&
0===c||!this.i.type.X.yE||(1===this.lq?this.i.u=Ra(90*Math.round(Na(Math.atan2(c,g))/90)):2===this.lq?this.i.u=Ra(45*Math.round(Na(Math.atan2(c,g))/45)):3===this.lq&&(this.i.u=Math.atan2(c,g)));this.i.H();this.i.u!=f&&(c=this.b.ib(this.i))&&(this.i.u=f,this.i.H(),this.b.Gd(this.i,c))}}};f.prototype.Up=function(){return 1E-10<Math.sqrt(this.C*this.C+this.D*this.D)};n.j=new f;p.prototype.Qm=function(){this.D=this.C=0};p.prototype.Zp=function(g){this.sc=g;0>this.sc&&(this.sc=0)};p.prototype.aq=function(g){switch(g){case 0:this.dg=
!0;break;case 1:this.eg=!0;break;case 2:this.qp=!0;break;case 3:this.pp=!0}};p.prototype.Oc=function(g){this.enabled=1===g};n.A=new p;n.B=new function(){}})();function dd(f){this.b=f}
(function(){function f(){}function p(){}var n=dd.prototype;n.L=function(g){this.behavior=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g,f){this.type=g;this.behavior=g.behavior;this.i=f;this.b=g.b};var m=n.K.prototype;m.I=function(){this.iq=1===this.q[0];this.Lx=!1;this.Bk=this.q[1];this.Em=this.q[2];this.Kn=this.q[3];this.nC=this.q[4];this.od=this.iq?0:3;this.Yb?this.$d.reset():this.$d=new kb;this.Zg=this.i.opacity?this.i.opacity:1;this.iq&&(0===this.Bk?(this.od=1,0===this.Em&&(this.od=
2)):(this.i.opacity=0,this.b.ca=!0))};m.Ma=function(){return{fit:this.Bk,wt:this.Em,fot:this.Kn,s:this.od,st:this.$d.ea,mo:this.Zg}};m.Sa=function(g){this.Bk=g.fit;this.Em=g.wt;this.Kn=g.fot;this.od=g.s;this.$d.reset();this.$d.ea=g.st;this.Zg=g.mo};m.Ea=function(){this.$d.add(this.b.Fh(this.i));0===this.od&&(this.i.opacity=this.$d.ea/this.Bk*this.Zg,this.b.ca=!0,this.i.opacity>=this.Zg&&(this.i.opacity=this.Zg,this.od=1,this.$d.reset(),this.b.trigger(dd.prototype.j.Ft,this.i)));1===this.od&&this.$d.ea>=
this.Em&&(this.od=2,this.$d.reset(),this.b.trigger(dd.prototype.j.xA,this.i));2===this.od&&0!==this.Kn&&(this.i.opacity=this.Zg-this.$d.ea/this.Kn*this.Zg,this.b.ca=!0,0>this.i.opacity&&(this.i.opacity=0,this.od=3,this.$d.reset(),this.b.trigger(dd.prototype.j.jA,this.i),1===this.nC&&this.b.Ld(this.i)))};m.EC=function(){this.od=0;this.$d.reset();0===this.Bk?(this.od=1,0===this.Em&&(this.od=2)):(this.i.opacity=0,this.b.ca=!0)};f.prototype.jA=function(){return!0};f.prototype.Ft=function(){return!0};
f.prototype.xA=function(){return!0};n.j=new f;p.prototype.uB=function(){this.iq||this.Lx||(this.Zg=this.i.opacity?this.i.opacity:1,this.Lx=!0);3===this.od&&this.EC()};n.A=new p;n.B=new function(){}})();function ed(f){this.b=f}
(function(){function f(){}function p(){}var n={},m=ed.prototype;m.xj=function(){var a,b;for(a in n)n.hasOwnProperty(a)&&(b=n[a],b.Yf.unsetReady(),b.Xl=!0)};m.L=function(a){this.behavior=a;this.b=a.b};m.L.prototype.I=function(){this.Fl=[];this.Hg=[]};m.K=function(a,b){this.type=a;this.behavior=a.behavior;this.i=b;this.b=a.b};var g=m.K.prototype;g.I=function(){this.ob=this.q[0];3>this.ob&&(this.ob=3);this.pe=this.q[1];this.PE=this.q[2];this.Ee=this.q[3];this.ab=this.q[4];this.Hb=this.q[5];this.Zm=Ma(this.q[6]);
this.Zo=0!==this.q[7];this.Gn=0!==this.q[8];this.enabled=0!==this.q[9];this.Wi=this.Gk=this.Al=this.ff=!1;this.Tc=0;this.Fc=this.Md=this.i.u;this.Fj=this.Ke=this.Je=this.Fb=0;this.$g=Math.ceil(this.b.Da.width/this.ob);this.ei=Math.ceil(this.b.Da.height/this.ob);this.tb=[];this.Ki=!1;this.Cn=this.Bn=0;this.Zk=this.lo=!1;this.Nu=this.Mu=0;this.rv=!0;var a=this;this.Yb||(this.hF=function(){a.lo||(a.Zk=!1,a.gC(),a.Wi=0<a.tb.length,a.Tc=0,a.b.trigger(ed.prototype.j.Rt,a.i),a.Iq())},this.gF=function(){a.lo||
(a.Zk=!1,a.Ru(),a.Wi=!1,a.ff=!1,a.Tc=0,a.b.trigger(ed.prototype.j.kA,a.i),a.Iq())})};g.gc=function(){this.lo=!0;this.Ki=!1};g.Ma=function(){var a={cs:this.ob,cb:this.pe,ms:this.Ee,acc:this.ab,dec:this.Hb,av:this.Zm,re:this.Zo,de:this.Gn,im:this.ff,mfs:this.Al,ftmwm:this.Gk,hp:this.Wi,mn:this.Tc,a:this.Md,lka:this.Fc,s:this.Fb,rx:this.Je,ry:this.Ke,ra:this.Fj,myhc:this.$g,myvc:this.ei,path:this.tb,en:this.enabled,fr:this.rv,obs:[],costs:[]};this.Zk?(a.dfp=!0,a.dpx=this.Mu,a.dpy=this.Nu):(a.dfp=this.Ki,
a.dpx=this.Bn,a.dpy=this.Cn);var b,c;b=0;for(c=this.type.Fl.length;b<c;b++)a.obs.push(this.type.Fl[b].ya);b=0;for(c=this.type.Hg.length;b<c;b++)a.costs.push({sid:this.type.Hg[b].Ca.ya,cost:this.type.Hg[b].Vu});return a};g.Sa=function(a){this.ob=a.cs;this.pe=a.cb;this.Ee=a.ms;this.ab=a.acc;this.Hb=a.dec;this.Zm=a.av;this.Zo=a.re;this.Gn=a.de;this.ff=a.im;this.Al=a.mfs;this.Gk=a.ftmwm;this.Wi=a.hp;this.Tc=a.mn;this.Md=a.a;this.Fc=a.lka;this.Fb=a.s;this.Je=a.rx;this.Ke=a.ry;this.Fj=a.ra;this.$g=a.myhc;
this.ei=a.myvc;this.tb=a.path;this.enabled=a.en;this.rv=a.fr;this.Ki=a.dfp;this.Bn=a.dpx;this.Cn=a.dpy;J(this.type.Fl);var b=a.obs,c,d,e;c=0;for(d=b.length;c<d;c++)(e=this.b.Ti(b[c]))&&this.type.Fl.push(e);J(this.type.Hg);a=a.costs;c=0;for(d=a.length;c<d;c++)(e=this.b.Ti(a[c].sid))&&this.type.Hg.push({Ca:e,Vu:a[c].cost});this.Hh().Yf.setDiagonals(this.Gn)};g.Od=function(){this.Hh().Xl=!0};g.Ea=function(){if(this.enabled&&this.ff){this.Zo&&this.i.u!==this.Fc&&(this.Md=this.i.u);var a=this.b.Fh(this.i),
b,c,d,e,g,h=this.i,f=Math.min(.4*this.Ee,2*Math.abs(this.i.width)),m=Math.max(1.5*this.Fb,30);this.Tc<this.tb.length?(e=this.tb[this.Tc].x,g=this.tb[this.Tc].y,d=Za(this.Je,this.Ke,e,g),d<3*m*a&&(this.Tc++,this.Je=e,this.Ke=g,this.Tc<this.tb.length&&(e=this.tb[this.Tc].x,g=this.tb[this.Tc].y))):(e=this.tb[this.tb.length-1].x,g=this.tb[this.tb.length-1].y);this.Fj=Sa(this.Je,this.Ke,e,g);d=Za(h.x,h.y,this.Je,this.Ke);d<f&&this.Tc<this.tb.length&&(this.Gk?this.Gk=!1:f=m*a,this.Je+=Math.cos(this.Fj)*
f,this.Ke+=Math.sin(this.Fj)*f);b=Sa(h.x,h.y,this.Je,this.Ke);c=Ta(this.Md,b);f=Za(h.x,h.y,this.tb[this.tb.length-1].x,this.tb[this.tb.length-1].y);m=this.Ee*this.Ee/(2*this.Hb);1<d&&(this.Md=Wa(this.Md,b,this.Zm*a),.5>=Na(c)?c=this.Ee:120<=Na(c)||this.Al&&0===this.Tc?(c=0,this.Al=!0):(b=c/this.Zm,d=Za(h.x,h.y,this.Je,this.Ke),d=d/(2*Math.sin(c)),c=d*c/b,0>c&&(c=0),c>this.Ee&&(c=this.Ee)),f<m&&(c=Math.min(c,f/m*this.Ee+this.Ee/40)),this.Fb+=this.ab*a,this.Fb>c&&(this.Fb=c));h.x+=Math.cos(this.Md)*
this.Fb*a;h.y+=Math.sin(this.Md)*this.Fb*a;this.Zo&&(this.Fc=h.u=this.Md);h.H();this.Tc===this.tb.length&&Za(h.x,h.y,e,g)<Math.max(3*this.Fb*a,10)&&(this.Wi=this.ff=!1,this.Fb=this.Tc=0,this.b.trigger(ed.prototype.j.cA,h))}};g.Pj=function(){this.enabled&&(this.DD(),this.Iq())};g.Iq=function(){this.Ki&&!this.lo&&(this.Ki=!1,this.gv(this.i.x,this.i.y,this.Bn,this.Cn))};g.Hh=function(){var a=""+this.ob+","+this.pe;n.hasOwnProperty(a)||(n[a]={Yf:new window.Pathfinder,cells:null,Xl:!1,li:[]});return n[a]};
g.DD=function(){var a=this.Hh();if(!a.Yf.isReady()||a.Xl||a.li.length){var b,c,d,e,g,h,f,m,n,p;if(!a.Yf.isReady()||a.Xl){this.$g=Math.ceil(this.b.Da.width/this.ob);this.ei=Math.ceil(this.b.Da.height/this.ob);b=[];e=b.length=this.$g;g=this.ei;for(c=0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)b[c][d]=this.yx(c,d);a.cells=b;a.Yf.init(this.$g,this.ei,b,this.Gn);a.Xl=!1;J(a.li)}else if(a.li.length){h=0;for(f=a.li.length;h<f;++h){b=a.li[h];m=b[0];n=b[1];e=b[2];c=b[3];b=[];e=e-m;g=c-n;b.length=e;for(c=
0;c<e;++c)for(b[c]=[],b[c].length=g,d=0;d<g;++d)p=this.yx(m+c,n+d),b[c][d]=p,a.cells[m+c][n+d]=p;a.Yf.updateRegion(m,n,e,g,b)}J(a.li)}}};g.Ru=function(){var a,b;a=0;for(b=this.tb.length;a<b;a++)window.freeResultNode(this.tb[a]);J(this.tb)};g.gC=function(){var a=this.Hh().Yf.pathList;this.Ru();var b,c,d,e;b=0;for(c=a.length;b<c;b++)d=a[b],e=window.allocResultNode(),e.x=(d.x+.5)*this.ob,e.y=(d.y+.5)*this.ob,this.tb.push(e)};var q=[],e=new wa;g.yx=function(a,b){var c,d,g,f,h,l=0;e.left=a*this.ob-this.pe;
e.top=b*this.ob-this.pe;e.right=(a+1)*this.ob+this.pe;e.bottom=(b+1)*this.ob+this.pe;if(0===this.PE){if(this.b.aG(e))return window.PF_OBSTACLE}else{this.b.er(this.i.r,this.type.Fl,e,q);c=0;for(d=q.length;c<d;++c)if(this.b.Rs(e,q[c]))return J(q),window.PF_OBSTACLE;q.length=0}c=0;for(d=this.type.Hg.length;c<d;c++){g=this.type.Hg[c].Ca;h=this.type.Hg[c].Vu;this.b.Yn(this.i.r,g,e,q);g=0;for(f=q.length;g<f;++g)this.b.Rs(e,q[g])&&(l+=h);J(q)}return l};g.gv=function(a,b,c,d){var e=this.Hh().Yf;if(e.isReady()){this.Zk=
!0;this.Mu=c;this.Nu=d;a=Math.floor(a/this.ob);b=Math.floor(b/this.ob);c=Math.floor(c/this.ob);d=Math.floor(d/this.ob);var g,h,f,m,n,p,q;if(e.at(c,d)===window.PF_OBSTACLE){g=1E6;for(m=f=h=0;m<this.$g;m++)for(n=0;n<this.ei;n++)e.at(m,n)!==window.PF_OBSTACLE&&(p=c-m,q=d-n,p=p*p+q*q,p<g&&(g=p,h=m,f=n));c=h;d=f}e.findPath(a,b,c,d,this.hF,this.gF)}};f.prototype.Rt=function(){return!0};f.prototype.kA=function(){return!0};f.prototype.Up=function(){return this.ff};f.prototype.cA=function(){return!0};m.j=
new f;p.prototype.iz=function(a,b){this.enabled&&(this.Zk||!this.Hh().Yf.isReady()?(this.Ki=!0,this.Bn=a,this.Cn=b):this.gv(this.i.x,this.i.y,a,b))};p.prototype.vB=function(){this.Wi&&(this.ff&&(this.Gk=!0),this.Al=!this.ff,this.ff=!0,this.Je=this.i.x,this.Ke=this.i.y,this.Fj=this.i.u)};p.prototype.Qm=function(){this.ff=!1};p.prototype.Oc=function(a){this.enabled=0!==a};p.prototype.Zp=function(a){this.Ee=a};g.kc=function(a,b,c,d){var e=Math.min(a,c)-this.pe,g=Math.min(b,d)-this.pe;a=Math.max(a,c)+
this.pe;b=Math.max(b,d)+this.pe;e=Math.max(Math.floor(e/this.ob),0);g=Math.max(Math.floor(g/this.ob),0);a=Math.min(Math.ceil(a/this.ob),this.$g);b=Math.min(Math.ceil(b/this.ob),this.ei);e>=a||g>=b||this.Hh().li.push([e,g,a,b])};m.A=new p;m.B=new function(){}})();function fd(f){this.b=f}
(function(){var f=fd.prototype;f.L=function(f){this.behavior=f;this.b=f.b};f.L.prototype.I=function(){};f.K=function(f,m){this.type=f;this.behavior=f.behavior;this.i=m;this.b=f.b};var p=f.K.prototype;p.I=function(){this.ic=null;this.No=-1;this.mode=this.Fc=this.Ss=this.Cl=this.dh=this.Mo=0;var f=this;this.Yb||(this.Bl=function(m){f.Gl(m)});this.b.jk(this.Bl)};p.Ma=function(){return{uid:this.ic?this.ic.uid:-1,pa:this.Mo,pd:this.dh,msa:this.Cl,tsa:this.Ss,lka:this.Fc,m:this.mode}};p.Sa=function(f){this.No=
f.uid;this.Mo=f.pa;this.dh=f.pd;this.Cl=f.msa;this.Ss=f.tsa;this.Fc=f.lka;this.mode=f.m};p.Od=function(){-1===this.No?this.ic=null:this.ic=this.b.Og(this.No);this.No=-1};p.Gl=function(f){this.ic==f&&(this.ic=null)};p.gc=function(){this.ic=null;this.b.Bx(this.Bl)};p.Ea=function(){};p.Pj=function(){if(this.ic){this.Fc!==this.i.u&&(this.Cl=Pa(this.Cl+(this.i.u-this.Fc)));var f=this.i.x,m=this.i.y;if(3===this.mode||4===this.mode){var g=Za(this.i.x,this.i.y,this.ic.x,this.ic.y);if(g>this.dh||4===this.mode&&
g<this.dh)m=Sa(this.ic.x,this.ic.y,this.i.x,this.i.y),f=this.ic.x+Math.cos(m)*this.dh,m=this.ic.y+Math.sin(m)*this.dh}else f=this.ic.x+Math.cos(this.ic.u+this.Mo)*this.dh,m=this.ic.y+Math.sin(this.ic.u+this.Mo)*this.dh;this.Fc=g=Pa(this.Cl+(this.ic.u-this.Ss));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.i.x===f&&this.i.y===m||(this.i.x=f,this.i.y=m,this.i.H());0!==this.mode&&2!==this.mode||this.i.u===g||(this.i.u=g,this.i.H())}};f.j=new function(){};f.A=new function(){};f.B=new function(){}})();
function gd(f){this.b=f}
(function(){function f(){}function p(){}var n=gd.prototype;n.L=function(g){this.behavior=g;this.b=g.b};n.L.prototype.I=function(){};n.K=function(g,f){this.type=g;this.behavior=g.behavior;this.i=f;this.b=g.b;this.km=this.eg=this.dg=this.Mh=this.qk=this.xk=this.jj=this.kj=this.Me=this.De=!1;this.rc=null;this.Nr=-1;this.Ug=this.Tg=0;this.Hk=!1;this.Dh=this.ie=0;this.Pn=!0;this.D=this.C=0};var m=n.K.prototype;m.yy=function(){this.Cb=Math.cos(this.Si);this.Db=Math.sin(this.Si);this.eh=Math.cos(this.Si-
Math.PI/2);this.fh=Math.sin(this.Si-Math.PI/2);this.Cb=rb(this.Cb);this.Db=rb(this.Db);this.eh=rb(this.eh);this.fh=rb(this.fh);this.Vq=this.ed;0>this.ed&&(this.Cb*=-1,this.Db*=-1,this.ed=Math.abs(this.ed))};m.I=function(){this.sc=this.q[0];this.ab=this.q[1];this.Hb=this.q[2];this.hl=this.q[3];this.Vq=this.ed=this.q[4];this.Ao=this.q[5];this.Lq=0!==this.q[6];this.Cr=this.q[7]/1E3;this.Eq=1===this.q[8];this.enabled=0!==this.q[9];this.Yj=!1;this.Zj=this.b.hg(this.i);this.Or=-1;this.si=0;this.Si=Ma(90);
this.yy();var g=this;this.Eq&&!this.b.N&&(jQuery(document).keydown(function(f){g.Hl(f)}),jQuery(document).keyup(function(f){g.Il(f)}));this.Yb||(this.Bl=function(f){g.Gl(f)});this.b.jk(this.Bl);this.i.V.isPlatformBehavior=!0};m.Ma=function(){return{ii:this.Mh,lfx:this.Tg,lfy:this.Ug,lfo:this.rc?this.rc.uid:-1,am:this.ie,en:this.enabled,fall:this.Dh,ft:this.Pn,dx:this.C,dy:this.D,ms:this.sc,acc:this.ab,dec:this.Hb,js:this.hl,g:this.ed,g1:this.Vq,mf:this.Ao,wof:this.Yj,woj:this.Zj?this.Zj.uid:-1,ga:this.Si,
edj:this.Lq,cdj:this.qk,dj:this.xk,sus:this.Cr}};m.Sa=function(g){this.Mh=g.ii;this.Tg=g.lfx;this.Ug=g.lfy;this.Nr=g.lfo;this.ie=g.am;this.enabled=g.en;this.Dh=g.fall;this.Pn=g.ft;this.C=g.dx;this.D=g.dy;this.sc=g.ms;this.ab=g.acc;this.Hb=g.dec;this.hl=g.js;this.ed=g.g;this.Vq=g.g1;this.Ao=g.mf;this.Yj=g.wof;this.Or=g.woj;this.Si=g.ga;this.Lq=g.edj;this.qk=g.cdj;this.xk=g.dj;this.Cr=g.sus;this.km=this.eg=this.dg=this.jj=this.kj=this.Me=this.De=!1;this.si=0;this.yy()};m.Od=function(){-1===this.Nr?
this.rc=null:this.rc=this.b.Og(this.Nr);-1===this.Or?this.Zj=null:this.Zj=this.b.Og(this.Or)};m.Gl=function(g){this.rc==g&&(this.rc=null)};m.gc=function(){this.rc=null;this.b.Bx(this.Bl)};m.Hl=function(g){switch(g.which){case 38:g.preventDefault();this.kj=!0;break;case 37:g.preventDefault();this.De=!0;break;case 39:g.preventDefault(),this.Me=!0}};m.Il=function(g){switch(g.which){case 38:g.preventDefault();this.jj=this.kj=!1;break;case 37:g.preventDefault();this.De=!1;break;case 39:g.preventDefault(),
this.Me=!1}};m.Xf=function(){this.kj=this.Me=this.De=!1};m.kc=function(){return 0>this.ed?-1:1};m.Xv=function(){var g=null,f=null,e,a;e=this.i.x;a=this.i.y;this.i.x+=this.Cb;this.i.y+=this.Db;this.i.H();if(this.rc&&this.b.zc(this.i,this.rc)&&(!this.b.dt(this.rc.type,xc)||this.rc.V.solidEnabled))return this.i.x=e,this.i.y=a,this.i.H(),this.rc;(g=this.b.ib(this.i))||0!==this.Dh||(f=this.b.hg(this.i,!0));this.i.x=e;this.i.y=a;this.i.H();if(g){if(this.b.zc(this.i,g))return null;this.Hk=!1;return g}if(f&&
f.length){a=g=0;for(e=f.length;g<e;g++)f[a]=f[g],this.b.zc(this.i,f[g])||a++;if(1<=a)return this.Hk=!0,f[0]}return null};m.Ea=function(){};m.ox=function(){var g=this.b.Fh(this.i),f,e,a,b,c,d,k,m,h;this.kj||this.km||(this.jj=!1);var l=this.De||this.dg;a=this.Me||this.eg;var n=(b=this.kj||this.km)&&!this.jj;this.km=this.eg=this.dg=!1;if(this.enabled){this.Mh&&(n=b=a=l=!1);b||(this.si=0);m=this.rc;h=!1;this.Pn&&((this.b.ib(this.i)||this.b.hg(this.i))&&this.b.md(this.i,-this.Cb,-this.Db,4,!0),this.Pn=
!1);!m||0!==this.D||m.y===this.Ug&&m.x===this.Tg||(f=m.x-this.Tg,e=m.y-this.Ug,this.i.x+=f,this.i.y+=e,this.i.H(),this.Tg=m.x,this.Ug=m.y,h=!0,this.b.ib(this.i)&&this.b.md(this.i,-f,-e,2.5*Math.sqrt(f*f+e*e)));var p=this.Xv();if(e=this.b.ib(this.i))if(c=Math.abs(this.i.width),d=Math.abs(this.i.height),this.i.V.inputPredicted)this.b.md(this.i,-this.Cb,-this.Db,10,!1);else if(this.b.vs(this.i,-this.Cb,-this.Db,d/8))this.b.Gd(this.i,e);else if(this.b.vs(this.i,this.eh,this.fh,c/2))this.b.Gd(this.i,e);
else if(this.b.vs(this.i,this.Cb,this.Db,d/2))this.b.Gd(this.i,e);else if(this.b.ws(this.i,Math.max(c,d)/2))this.b.Gd(this.i,e);else return;p?(this.qk=this.xk=!1,0<this.D&&(this.Yj||(this.b.Vo(this.i,-this.Cb,-this.Db,p),this.Yj=!0),this.D=0),m!=p)?(this.rc=p,this.Tg=p.x,this.Ug=p.y,this.b.Gd(this.i,p)):h&&(e=this.b.ib(this.i))&&(this.b.Gd(this.i,e),0!==f&&(0<f?this.b.md(this.i,-this.eh,-this.fh):this.b.md(this.i,this.eh,this.fh)),this.b.md(this.i,-this.Cb,-this.Db)):b||(this.qk=!0);if(p&&n||!p&&
this.Lq&&b&&this.qk&&!this.xk)m=this.i.x,h=this.i.y,this.i.x-=this.Cb,this.i.y-=this.Db,this.i.H(),this.b.ib(this.i)?n=!1:(this.si=this.Cr,this.b.trigger(gd.prototype.j.oA,this.i),this.ie=2,this.D=-this.hl,n=!0,p?this.jj=!0:this.xk=!0),this.i.x=m,this.i.y=h,this.i.H();p||(b&&0<this.si?(this.D=-this.hl,this.si-=g):(this.rc=null,this.D+=this.ed*g,this.D>this.Ao&&(this.D=this.Ao)),n&&(this.jj=!0));this.Yj=!!p;l==a&&(0>this.C?(this.C+=this.Hb*g,0<this.C&&(this.C=0)):0<this.C&&(this.C-=this.Hb*g,0>this.C&&
(this.C=0)));l&&!a&&(this.C=0<this.C?this.C-(this.ab+this.Hb)*g:this.C-this.ab*g);a&&!l&&(this.C=0>this.C?this.C+(this.ab+this.Hb)*g:this.C+this.ab*g);this.C>this.sc?this.C=this.sc:this.C<-this.sc&&(this.C=-this.sc);l=!1;0!==this.C&&(m=this.i.x,h=this.i.y,f=this.C*g*this.eh,e=this.C*g*this.fh,this.i.x+=this.eh*(1<this.C?1:-1)-this.Cb,this.i.y+=this.fh*(1<this.C?1:-1)-this.Db,this.i.H(),b=!1,c=this.b.ib(this.i),this.i.x=m+f,this.i.y=h+e,this.i.H(),a=this.b.ib(this.i),!a&&p&&(a=this.b.hg(this.i))&&
(this.i.x=m,this.i.y=h,this.i.H(),this.b.zc(this.i,a)?(a=null,b=!1):b=!0,this.i.x=m+f,this.i.y=h+e,this.i.H()),a?(f=Math.abs(this.C*g)+2,c||!this.b.md(this.i,-this.Cb,-this.Db,f,b,a))?(this.b.Gd(this.i,a),f=Math.max(Math.abs(this.C*g*2.5),30),this.b.md(this.i,this.eh*(0>this.C?1:-1),this.fh*(0>this.C?1:-1),f,!1)?!p||b||this.Hk||(m=this.i.x,h=this.i.y,this.i.x+=this.Cb,this.i.y+=this.Db,this.b.ib(this.i)?this.b.md(this.i,-this.Cb,-this.Db,3,!1)||(this.i.x=m,this.i.y=h,this.i.H()):(this.i.x=m,this.i.y=
h,this.i.H())):(this.i.x=m,this.i.y=h,this.i.H()),b||(this.C=0)):!c&&!n&&Math.abs(this.D)<Math.abs(this.hl/4)&&(this.D=0,p||(l=!0)):(m=this.Xv(),p&&!m?(e=Math.ceil(Math.abs(this.C*g))+2,m=this.i.x,h=this.i.y,this.i.x+=this.Cb*e,this.i.y+=this.Db*e,this.i.H(),this.b.ib(this.i)||this.b.hg(this.i)?this.b.md(this.i,-this.Cb,-this.Db,e+2,!0):(this.i.x=m,this.i.y=h,this.i.H())):m&&(!p&&this.Hk&&(this.rc=m,this.Tg=m.x,this.Ug=m.y,this.D=0,l=!0),0===this.D&&this.b.Vo(this.i,-this.Cb,-this.Db,m))));if(0!==
this.D){m=this.i.x;h=this.i.y;this.i.x+=this.D*g*this.Cb;this.i.y+=this.D*g*this.Db;f=this.i.x;a=this.i.y;this.i.H();e=this.b.ib(this.i);b=!1;if(!e&&0<this.D&&!p){if((b=0<this.Dh?null:this.b.hg(this.i,!0))&&b.length){if(this.Zj){this.i.x=m;this.i.y=h;this.i.H();k=c=0;for(d=b.length;c<d;c++)b[k]=b[c],this.b.zc(this.i,b[c])||k++;b.length=k;this.i.x=f;this.i.y=a;this.i.H()}1<=b.length&&(e=b[0])}b=!!e}e&&(this.b.Gd(this.i,e),this.si=0,f=b?Math.abs(this.D*g*2.5+10):Math.max(Math.abs(this.D*g*2.5+10),30),
this.b.md(this.i,this.Cb*(0>this.D?1:-1),this.Db*(0>this.D?1:-1),f,b,e)?(this.rc=e,this.Tg=e.x,this.Ug=e.y,(this.Hk=b)&&(l=!0),this.D=0):(this.i.x=m,this.i.y=h,this.i.H(),this.Yj=!0,b||(this.D=0)))}3!==this.ie&&0<this.D&&!p&&(this.b.trigger(gd.prototype.j.lA,this.i),this.ie=3);(p||l)&&0<=this.D&&(3===this.ie||l||n&&0===this.D?(this.b.trigger(gd.prototype.j.qA,this.i),this.ie=0===this.C&&0===this.D?0:1):(0!==this.ie&&0===this.C&&0===this.D&&(this.b.trigger(gd.prototype.j.wA,this.i),this.ie=0),1===
this.ie||0===this.C&&0===this.D||n||(this.b.trigger(gd.prototype.j.tA,this.i),this.ie=1)));0<this.Dh&&this.Dh--;this.Zj=this.b.hg(this.i)}};f.prototype.Up=function(){return 0!==this.C||0!==this.D};f.prototype.Fz=function(){if(0!==this.D)return!1;var g=null,f=null,e,a;e=this.i.x;a=this.i.y;this.i.x+=this.Cb;this.i.y+=this.Db;this.i.H();(g=this.b.ib(this.i))||0!==this.Dh||(f=this.b.hg(this.i,!0));this.i.x=e;this.i.y=a;this.i.H();if(g)return!this.b.zc(this.i,g);if(f&&f.length){a=g=0;for(e=f.length;g<
e;g++)f[a]=f[g],this.b.zc(this.i,f[g])||a++;if(1<=a)return!0}return!1};f.prototype.Cz=function(){return 0>this.D};f.prototype.zz=function(){return 0<this.D};f.prototype.oA=function(){return!0};f.prototype.lA=function(){return!0};f.prototype.wA=function(){return!0};f.prototype.tA=function(){return!0};f.prototype.qA=function(){return!0};n.j=new f;p.prototype.Zp=function(g){this.sc=g;0>this.sc&&(this.sc=0)};p.prototype.aq=function(g){switch(g){case 0:this.dg=!0;break;case 1:this.eg=!0;break;case 2:this.km=
!0}};p.prototype.Oc=function(g){this.enabled!==(1===g)&&(this.enabled=1===g,this.enabled||(this.rc=null))};n.A=new p;n.B=new function(){}})();function hd(f){this.b=f;this.Ks=this.op=this.jm=this.Js=0}
(function(){function f(){}var p=hd.prototype;p.L=function(f){this.behavior=f;this.b=f.b};p.L.prototype.I=function(){};p.K=function(f,g){this.type=f;this.behavior=f.behavior;this.i=g;this.b=f.b};var n=p.K.prototype;n.I=function(){this.enabled=0!==this.q[0]};n.Ma=function(){return{smg:this.behavior.Js,ss:this.behavior.jm,se:this.behavior.op,smd:this.behavior.Ks}};n.Sa=function(f){this.behavior.Js=f.smg;this.behavior.jm=f.ss;this.behavior.op=f.se;this.behavior.Ks=f.smd};n.Ea=function(){};n.Pj=function(){if(this.enabled){var f=
this.behavior.fi.ee(),g=0,n=0,e,a,b,c=0;e=0;for(a=f.length;e<a;e++){a:{b=f[e];for(var d=void 0,k=void 0,p=void 0,d=0,k=b.Y.length;d<k;++d)if(p=b.Y[d],p.behavior instanceof hd){b=p;break a}b=null}b&&b.enabled&&(g+=f[e].x,n+=f[e].y,++c)}f=this.i.r.Kb;a=this.b.Vb.ea;b=e=0;a>=this.behavior.jm&&a<this.behavior.op&&(e=this.behavior.Js*Math.min(this.b.kh,1),0===this.behavior.Ks&&(e*=1-(a-this.behavior.jm)/(this.behavior.op-this.behavior.jm)),a=Math.random()*Math.PI*2,b=Math.random()*e,e=Math.cos(a)*b,b*=
Math.sin(a));f.fp(g/c+e);f.gp(n/c+b)}};f.prototype.Oc=function(f){this.enabled=0!==f};p.A=new f})();function xc(f){this.b=f}(function(){function f(){}var p=xc.prototype;p.L=function(f){this.behavior=f;this.b=f.b};p.L.prototype.I=function(){};p.K=function(f,g){this.type=f;this.behavior=f.behavior;this.i=g;this.b=f.b};var n=p.K.prototype;n.I=function(){this.i.V.solidEnabled=0!==this.q[0]};n.Ea=function(){};p.j=new function(){};f.prototype.Oc=function(f){this.i.V.solidEnabled=!!f};p.A=new f})();
function jd(f){this.b=f}
(function(){var f=jd.prototype;f.L=function(f){this.behavior=f;this.b=f.b};f.L.prototype.I=function(){};f.K=function(f,n){this.type=f;this.behavior=f.behavior;this.i=n;this.b=f.b};f=f.K.prototype;f.I=function(){this.mode=this.q[0]};f.Ea=function(){var f=this.i;f.fa();var n=f.ma,m=f.r,g=m.Kb,q=0,e=0,a=0,b=0;0===this.mode?(e=g.width,b=g.height):(q=m.Fa,e=m.Ja,a=m.Ga,b=m.Ia);n.right<q?(f.x=e-1+(f.x-n.left),f.H()):n.left>e?(f.x=q+1-(n.right-f.x),f.H()):n.bottom<a?(f.y=b-1+(f.y-n.top),f.H()):n.top>b&&
(f.y=a+1-(n.bottom-f.y),f.H())}})();
function wc(){return[Uc,Lc,U,Nc,Oc,Mc,Qc,Pc,Rc,Vc,Dc,Bc,Kc,zc,Ac,Sc,Cc,yc,Jc,Ec,Fc,Ic,X,Tc,Wc,xc,Xc,gd,hd,cd,dd,ed,fd,Yc,jd,M.prototype.j.Lt,X.prototype.A.kB,M.prototype.A.cB,U.prototype.A.Te,X.prototype.A.jB,Sc.prototype.A.UF,M.prototype.j.hz,Jc.prototype.A.YA,M.prototype.A.gB,Fc.prototype.A.ek,U.prototype.A.VA,Mc.prototype.A.fk,Pc.prototype.j.az,Pc.prototype.A.qu,U.prototype.j.Bt,U.prototype.A.tB,Qc.prototype.j.hu,M.prototype.j.Nz,M.prototype.A.hB,M.prototype.A.nz,zc.prototype.A.wB,M.prototype.A.mz,
Ac.prototype.j.rg,Nc.prototype.j.Lm,Nc.prototype.B.Text,M.prototype.A.HB,Jc.prototype.j.Hz,U.prototype.A.UA,X.prototype.j.lB,X.prototype.B.oB,M.prototype.B.NE,X.prototype.B.nB,X.prototype.B.qB,Fc.prototype.B.QA,X.prototype.j.Xt,X.prototype.B.Pz,Kc.prototype.A.Sp,Mc.prototype.A.Sp,X.prototype.A.pB,M.prototype.j.MA,M.prototype.A.cz,Kc.prototype.A.Pm,M.prototype.B.EE,Mc.prototype.A.Pm,Mc.prototype.A.nu,X.prototype.B.Rz,X.prototype.B.Sz,X.prototype.B.Qz,Kc.prototype.j.bz,M.prototype.j.Sy,Jc.prototype.j.wz,
Kc.prototype.A.Te,M.prototype.j.ut,M.prototype.j.$y,M.prototype.B.Pu,Nc.prototype.A.ek,Mc.prototype.B.Text,U.prototype.j.Uy,zc.prototype.A.Qm,yc.prototype.j.Nm,zc.prototype.A.Play,U.prototype.j.Wy,U.prototype.j.Ty,U.prototype.A.nu,yc.prototype.A.CallFunction,Nc.prototype.j.iu,M.prototype.j.Az,Mc.prototype.j.HA,Fc.prototype.j.Zt,M.prototype.A.ZA,X.prototype.j.$t,Ec.prototype.j.Dz,M.prototype.j.GA,U.prototype.B.Ny,Kc.prototype.A.$p,U.prototype.B.hk,U.prototype.B.oh,zc.prototype.j.Jz,M.prototype.j.gz,
M.prototype.B.random,U.prototype.j.eA,cd.prototype.A.aq,gd.prototype.j.Up,U.prototype.A.TA,U.prototype.A.pu,gd.prototype.A.aq,gd.prototype.j.zz,gd.prototype.j.Cz,U.prototype.j.uz,U.prototype.j.Lz,Mc.prototype.j.Lm,U.prototype.A.Sp,zc.prototype.A.JA,U.prototype.j.Gz,Qc.prototype.j.Gt,Pc.prototype.j.Zy,Pc.prototype.B.KA,Qc.prototype.B.hk,Pc.prototype.B.LA,Qc.prototype.B.oh,Pc.prototype.A.fz,M.prototype.A.NA,Ec.prototype.j.Ht,Qc.prototype.j.Kz,M.prototype.A.Ky,Qc.prototype.j.gu,Ac.prototype.j.xz,cd.prototype.A.Oc,
gd.prototype.A.Oc,Ac.prototype.A.Oc,Jc.prototype.j.mu,Jc.prototype.j.Vp,Pc.prototype.A.fB,Jc.prototype.B.hk,Jc.prototype.B.oh,Pc.prototype.B.AB,Pc.prototype.B.BB,Pc.prototype.B.CB,U.prototype.j.nh,U.prototype.j.Iz,Pc.prototype.A.Tz,M.prototype.A.bB,Mc.prototype.A.qt,ed.prototype.A.iz,ed.prototype.j.Rt,ed.prototype.A.vB,Oc.prototype.A.Pm,Oc.prototype.B.oh,M.prototype.A.Uz,M.prototype.B.Un,Fc.prototype.B.PA,X.prototype.A.mB,X.prototype.j.fu,X.prototype.A.iB,X.prototype.B.Yz,X.prototype.j.cu,X.prototype.j.Bz,
X.prototype.A.RA,X.prototype.B.CA,Pc.prototype.B.DB,X.prototype.B.qz,U.prototype.A.rB,zc.prototype.A.IA,Nc.prototype.A.fk,U.prototype.B.Rp,Vc.prototype.j.wf,Jc.prototype.A.XA,M.prototype.j.EB,X.prototype.A.Hy,X.prototype.A.yB,X.prototype.A.zB,X.prototype.A.Oy,Uc.prototype.A.Jy,X.prototype.B.FA,U.prototype.j.sg,X.prototype.j.Dt,X.prototype.A.WA,X.prototype.j.St,hd.prototype.A.Oc,X.prototype.B.yA,X.prototype.j.Tt,cd.prototype.A.Qm,X.prototype.j.bu,X.prototype.j.du,Dc.prototype.j.Ez,Dc.prototype.A.Te,
Tc.prototype.A.dB,M.prototype.B.nl,M.prototype.B["int"],Tc.prototype.j.Xy,dd.prototype.A.uB,Oc.prototype.A.Te,dd.prototype.j.Ft,Rc.prototype.j.Vy,X.prototype.B.EA,X.prototype.j.Ut,U.prototype.A.At,X.prototype.B.Wz,X.prototype.j.eu,Mc.prototype.A.$p,X.prototype.B.oz,Mc.prototype.B.oh,X.prototype.B.kz,X.prototype.B.Xz,X.prototype.A.pz,M.prototype.B.round,U.prototype.B.My,M.prototype.B.cG,U.prototype.A.qu,U.prototype.A.Pm,X.prototype.j.au,M.prototype.A.OA,gd.prototype.j.Fz,U.prototype.A.$p,X.prototype.B.xt,
X.prototype.B.Oz,X.prototype.B.AA,X.prototype.B.lz,M.prototype.j.jz,Rc.prototype.A.xB,Rc.prototype.B.Vz,Jc.prototype.j.Xp,Mc.prototype.A.ou,M.prototype.B.find,U.prototype.A.eB,gd.prototype.A.Zp,Oc.prototype.A.$A,X.prototype.B.BA,X.prototype.B.zA,X.prototype.B.DA,U.prototype.A.ou,U.prototype.A.Iy,U.prototype.j.Et,M.prototype.A.aB,M.prototype.B.FF,Mc.prototype.A.Te,Fc.prototype.j.Yy,U.prototype.A.SA,xc.prototype.A.Oc,Mc.prototype.B.GB,M.prototype.j.Kt]};