-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
578 lines (578 loc) · 278 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
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
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var ba,da,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,A,sa,ta,ua,va,wa,za,Aa,U,Ba,Ca,Da,Ea,Fa,V,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,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,Ib,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,b,f){this.set(a,c,b,f)}function p(){this.hb=this.gb=this.jb=this.ib=this.qb=this.pb=this.Va=this.Ua=0}function q(a,c,b,f){a<c?b<f?(y=a<b?a:b,J=c>f?c:f):(y=a<f?a:f,J=c>b?c:b):b<f?(y=c<b?c:b,J=a>f?a:f):(y=c<f?c:f,J=a>b?a:b)}function u(){this.items=this.Ee=null;this.Oj=0;O&&(this.Ee=new Set);this.Ui=[];this.Nf=!0}function k(a){I[z++]=a}function n(){this.X=this.Nn=this.y=this.ij=0}function h(a){this.Pa=[];this.ml=this.ol=this.pl=this.nl=0;this.Ck(a)}function a(a,c){this.Fb=
a;this.Tb=c;this.cells={}}function b(a,c){this.Fb=a;this.Tb=c;this.cells={}}function d(a,c,b){var f;return w.length?(f=w.pop(),f.lp=a,f.x=c,f.y=b,f):new da(a,c,b)}function c(a,c,b){this.lp=a;this.x=c;this.y=b;this.Wb=new fa}function f(a,c,b){var f;return x.length?(f=x.pop(),f.lp=a,f.x=c,f.y=b,f):new ga(a,c,b)}function r(a,c,b){this.lp=a;this.x=c;this.y=b;this.Wb=[];this.ei=!0;this.Ae=new fa;this.fj=!1}function g(a,c){return a.je-c.je}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ia=function(a){window.console&&window.console.error&&window.console.error(a)};ba=function(a){return a};ja=function(a){return"undefined"===typeof a};ka=function(a){return"number"===typeof a};la=function(a){return"string"===typeof a};ma=function(a){return 0<a&&0===(a-1&a)};na=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};oa=function(a){return 0>a?-a:a};pa=function(a,c){return a>c?a:c};qa=function(a,c){return a<c?a:c};ra=Math.PI;A=function(a){return 0<=a?a|0:(a|0)-1};sa=function(a){var c=
a|0;return c===a?c:c+1};ta=function(a,c,b,f,m,d,g,l){var r,v,t,h;a<b?(v=a,r=b):(v=b,r=a);m<g?(h=m,t=g):(h=g,t=m);if(r<h||v>t)return!1;c<f?(v=c,r=f):(v=f,r=c);d<l?(h=d,t=l):(h=l,t=d);if(r<h||v>t)return!1;r=m-a+g-b;v=d-c+l-f;a=b-a;c=f-c;m=g-m;d=l-d;l=oa(c*m-d*a);return oa(m*v-d*r)>l?!1:oa(a*v-c*r)<=l};e.prototype.set=function(a,c,b,f){this.left=a;this.top=c;this.right=b;this.bottom=f};e.prototype.Hh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=
function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.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)};e.prototype.PA=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.QA=
function(a,c,b){return!(a.right+c<this.left||a.bottom+b<this.top||a.left+c>this.right||a.top+b>this.bottom)};e.prototype.qc=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.qj=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ua=e;p.prototype.Ki=function(a){this.Ua=a.left;this.Va=a.top;this.pb=a.right;this.qb=a.top;this.ib=a.right;this.jb=a.bottom;this.gb=a.left;this.hb=a.bottom};p.prototype.Zu=function(a,
c){if(0===c)this.Ki(a);else{var b=Math.sin(c),f=Math.cos(c),m=a.left*b,d=a.top*b,g=a.right*b,b=a.bottom*b,l=a.left*f,r=a.top*f,v=a.right*f,f=a.bottom*f;this.Ua=l-d;this.Va=r+m;this.pb=v-d;this.qb=r+g;this.ib=v-b;this.jb=f+g;this.gb=l-b;this.hb=f+m}};p.prototype.offset=function(a,c){this.Ua+=a;this.Va+=c;this.pb+=a;this.qb+=c;this.ib+=a;this.jb+=c;this.gb+=a;this.hb+=c;return this};var y=0,J=0;p.prototype.qs=function(a){q(this.Ua,this.pb,this.ib,this.gb);a.left=y;a.right=J;q(this.Va,this.qb,this.jb,
this.hb);a.top=y;a.bottom=J};p.prototype.qc=function(a,c){var b=this.Ua,f=this.Va,m=this.pb-b,d=this.qb-f,g=this.ib-b,l=this.jb-f,r=a-b,v=c-f,t=m*m+d*d,h=m*g+d*l,d=m*r+d*v,e=g*g+l*l,n=g*r+l*v,y=1/(t*e-h*h),m=(e*d-h*n)*y,t=(t*n-h*d)*y;if(0<=m&&0<t&&1>m+t)return!0;m=this.gb-b;d=this.hb-f;t=m*m+d*d;h=m*g+d*l;d=m*r+d*v;y=1/(t*e-h*h);m=(e*d-h*n)*y;t=(t*n-h*d)*y;return 0<=m&&0<t&&1>m+t};p.prototype.Lf=function(a,c){if(c)switch(a){case 0:return this.Ua;case 1:return this.pb;case 2:return this.ib;case 3:return this.gb;
case 4:return this.Ua;default:return this.Ua}else switch(a){case 0:return this.Va;case 1:return this.qb;case 2:return this.jb;case 3:return this.hb;case 4:return this.Va;default:return this.Va}};p.prototype.Yt=function(){return(this.Ua+this.pb+this.ib+this.gb)/4};p.prototype.Zt=function(){return(this.Va+this.qb+this.jb+this.hb)/4};p.prototype.it=function(a){var c=a.Yt(),b=a.Zt();if(this.qc(c,b))return!0;c=this.Yt();b=this.Zt();if(a.qc(c,b))return!0;var f,m,d,g,l,t,v,r;for(v=0;4>v;v++)for(r=0;4>r;r++)if(c=
this.Lf(v,!0),b=this.Lf(v,!1),f=this.Lf(v+1,!0),m=this.Lf(v+1,!1),d=a.Lf(r,!0),g=a.Lf(r,!1),l=a.Lf(r+1,!0),t=a.Lf(r+1,!1),ta(c,b,f,m,d,g,l,t))return!0;return!1};va=p;wa=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a};za=function(a,c){var b,f;c=A(c);if(!(0>c||c>=a.length)){b=c;for(f=a.length-1;b<f;b++)a[b]=a[b+1];Aa(a,f)}};Aa=function(a,c){a.length=c};U=function(a){Aa(a,0)};Ba=function(a,c){U(a);var b,f;b=0;for(f=c.length;b<f;++b)a[b]=c[b]};Ca=function(a,c){a.push.apply(a,c)};
Da=function(a,c){var b,f;b=0;for(f=a.length;b<f;++b)if(a[b]===c)return b;return-1};Ea=function(a,c){var b=Da(a,c);-1!==b&&za(a,b)};Fa=function(a,c,b){return a<c?c:a>b?b:a};V=function(a){return a/(180/ra)};Ha=function(a){return 180/ra*a};Ia=function(a){a%=360;0>a&&(a+=360);return a};Ja=function(a){a%=2*ra;0>a&&(a+=2*ra);return a};Ka=function(a){return Ia(Ha(a))};La=function(a){return Ja(V(a))};Ma=function(a,c,b,f){return Math.atan2(f-c,b-a)};Na=function(a,c){if(a===c)return 0;var b=Math.sin(a),f=Math.cos(a),
m=Math.sin(c),d=Math.cos(c),b=b*m+f*d;return 1<=b?0:-1>=b?ra:Math.acos(b)};Oa=function(a,c,b){var f=Math.sin(a),m=Math.cos(a),d=Math.sin(c),g=Math.cos(c);return Math.acos(f*d+m*g)>b?0<m*d-f*g?Ja(a+b):Ja(a-b):Ja(c)};Qa=function(a,c){var b=Math.sin(a),f=Math.cos(a),m=Math.sin(c),d=Math.cos(c);return 0>=f*m-b*d};Ra=function(a,c,b,f,m,d){if(0===b)return d?a:c;var g=Math.sin(b);b=Math.cos(b);a-=f;c-=m;var l=a*g;a=a*b-c*g;c=c*b+l;return d?a+f:c+m};Sa=function(a,c,b,f){a=b-a;c=f-c;return Math.sqrt(a*a+c*
c)};Ta=function(a,c){return!a!==!c};Ua=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Va=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var l=+new Date;Wa=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()-l};var m=!1,
t=m=!1,P=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),P=window.c2ejecta);var O=!m&&!P&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;u.prototype.contains=function(a){return this.$e()?!1:O?this.Ee.has(a):this.items&&this.items.hasOwnProperty(a)};u.prototype.add=function(a){if(O)this.Ee.has(a)||(this.Ee.add(a),this.Nf=
!1);else{var c=a.toString(),b=this.items;b?b.hasOwnProperty(c)||(b[c]=a,this.Oj++,this.Nf=!1):(this.items={},this.items[c]=a,this.Oj=1,this.Nf=!1)}};u.prototype.remove=function(a){if(!this.$e())if(O)this.Ee.has(a)&&(this.Ee["delete"](a),this.Nf=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Oj--,this.Nf=!1)}};u.prototype.clear=function(){this.$e()||(O?this.Ee.clear():(this.items=null,this.Oj=0),U(this.Ui),this.Nf=!0)};u.prototype.$e=function(){return 0===
this.count()};u.prototype.count=function(){return O?this.Ee.size:this.Oj};var I=null,z=0;u.prototype.nC=function(){if(!this.Nf){if(O)U(this.Ui),I=this.Ui,z=0,this.Ee.forEach(k),I=null,z=0;else{var a=this.Ui;U(a);var c,b=0,f=this.items;if(f)for(c in f)f.hasOwnProperty(c)&&(a[b++]=f[c])}this.Nf=!0}};u.prototype.Af=function(){this.nC();return this.Ui};fa=u;new fa;Xa=function(a,c){O?Ya(a,c.Ee):Za(a,c.Af())};Ya=function(a,c){var b,f,m,d;f=b=0;for(m=a.length;b<m;++b)d=a[b],c.has(d)||(a[f++]=d);Aa(a,f)};
Za=function(a,c){var b,f,d,m;f=b=0;for(d=a.length;b<d;++b)m=a[b],-1===Da(c,m)&&(a[f++]=m);Aa(a,f)};n.prototype.add=function(a){this.y=a-this.ij;this.Nn=this.X+this.y;this.ij=this.Nn-this.X-this.y;this.X=this.Nn};n.prototype.reset=function(){this.X=this.Nn=this.y=this.ij=0};$a=n;ab=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};h.prototype.Ck=function(a){this.Gu=a;this.gd=a.length/2;this.Pa.length=a.length;this.sl=this.tl=-1;this.us=0};h.prototype.bi=function(){return!this.Gu.length};
h.prototype.Ia=function(){for(var a=this.Pa,c=a[0],b=c,f=a[1],m=f,d,g,l=1,r=this.gd;l<r;++l)g=2*l,d=a[g],g=a[g+1],d<c&&(c=d),d>b&&(b=d),g<f&&(f=g),g>m&&(m=g);this.nl=c;this.ol=b;this.pl=f;this.ml=m};h.prototype.Ki=function(a,c,b){this.Pa.length=8;this.gd=4;var f=this.Pa;f[0]=a.left-c;f[1]=a.top-b;f[2]=a.right-c;f[3]=a.top-b;f[4]=a.right-c;f[5]=a.bottom-b;f[6]=a.left-c;f[7]=a.bottom-b;this.tl=a.right-a.left;this.sl=a.bottom-a.top;this.Ia()};h.prototype.Ji=function(a,c,b,f,d){this.Pa.length=8;this.gd=
4;var m=this.Pa;m[0]=a.Ua-c;m[1]=a.Va-b;m[2]=a.pb-c;m[3]=a.qb-b;m[4]=a.ib-c;m[5]=a.jb-b;m[6]=a.gb-c;m[7]=a.hb-b;this.tl=f;this.sl=d;this.Ia()};h.prototype.Yu=function(a){this.gd=a.gd;Ba(this.Pa,a.Pa);this.nl=a.nl;this.pl=a.pl;this.ol=a.ol;this.ml=a.ml};h.prototype.Ag=function(a,c,b){if(this.tl!==a||this.sl!==c||this.us!==b){this.tl=a;this.sl=c;this.us=b;var f,m,d,g,l,r=0,v=1,t=this.Gu,h=this.Pa;0!==b&&(r=Math.sin(b),v=Math.cos(b));b=0;for(d=this.gd;b<d;b++)f=2*b,m=f+1,g=t[f]*a,l=t[m]*c,h[f]=g*v-l*
r,h[m]=l*v+g*r;this.Ia()}};h.prototype.qc=function(a,c){var b=this.Pa;if(a===b[0]&&c===b[1])return!0;var f,m,d,g=this.gd,l=this.nl-110,r=this.pl-101,v=this.ol+131,t=this.ml+120,h,e,n=0,y=0;for(f=0;f<g;f++)m=2*f,d=(f+1)%g*2,h=b[m],m=b[m+1],e=b[d],d=b[d+1],ta(l,r,a,c,h,m,e,d)&&n++,ta(v,t,a,c,h,m,e,d)&&y++;return 1===n%2||1===y%2};h.prototype.Fj=function(a,c,b){var f=a.Pa,m=this.Pa;if(this.qc(f[0]+c,f[1]+b)||a.qc(m[0]-c,m[1]-b))return!0;var d,g,l,r,v,t,h,e,n,y,J,z;d=0;for(r=this.gd;d<r;d++)for(g=2*d,
l=(d+1)%r*2,e=m[g],g=m[g+1],n=m[l],y=m[l+1],l=0,h=a.gd;l<h;l++)if(v=2*l,t=(l+1)%h*2,J=f[v]+c,v=f[v+1]+b,z=f[t]+c,t=f[t+1]+b,ta(e,g,n,y,J,v,z,t))return!0;return!1};h.prototype.kB=function(a){var c,b,f;c=0;for(b=this.gd;c<b;++c)f=2*c,this.Pa[f]=2*a-this.Pa[f]};h.prototype.aA=function(a){var c,b,f;c=0;for(b=this.gd;c<b;++c)f=2*c+1,this.Pa[f]=2*a-this.Pa[f]};h.prototype.Ty=function(){var a,c,b,f,m;a=0;for(c=this.gd;a<c;++a)b=2*a,f=b+1,m=this.Pa[b],this.Pa[b]=this.Pa[f],this.Pa[f]=m};bb=h;a.prototype.Yf=
function(a,c,b){var f;f=this.cells[a];return f?(f=f[c])?f:b?(f=d(this,a,c),this.cells[a][c]=f):null:b?(f=d(this,a,c),this.cells[a]={},this.cells[a][c]=f):null};a.prototype.Ic=function(a){return A(a/this.Fb)};a.prototype.Jc=function(a){return A(a/this.Tb)};a.prototype.update=function(a,c,b){var f,m,d,g,l;if(c)for(f=c.left,m=c.right;f<=m;++f)for(d=c.top,g=c.bottom;d<=g;++d)if(!b||!b.qc(f,d))if(l=this.Yf(f,d,!1))l.remove(a),l.$e()&&(l.Wb.clear(),1E3>w.length&&w.push(l),this.cells[f][d]=null);if(b)for(f=
b.left,m=b.right;f<=m;++f)for(d=b.top,g=b.bottom;d<=g;++d)c&&c.qc(f,d)||this.Yf(f,d,!0).xp(a)};a.prototype.nn=function(a,c){var b,f,m,d,g,l;b=this.Ic(a.left);m=this.Jc(a.top);f=this.Ic(a.right);for(g=this.Jc(a.bottom);b<=f;++b)for(d=m;d<=g;++d)(l=this.Yf(b,d,!1))&&l.dump(c)};eb=a;b.prototype.Yf=function(a,c,b){var m;m=this.cells[a];return m?(m=m[c])?m:b?(m=f(this,a,c),this.cells[a][c]=m):null:b?(m=f(this,a,c),this.cells[a]={},this.cells[a][c]=m):null};b.prototype.Ic=function(a){return A(a/this.Fb)};
b.prototype.Jc=function(a){return A(a/this.Tb)};b.prototype.update=function(a,c,b){var f,m,d,g,l;if(c)for(f=c.left,m=c.right;f<=m;++f)for(d=c.top,g=c.bottom;d<=g;++d)if(!b||!b.qc(f,d))if(l=this.Yf(f,d,!1))l.remove(a),l.$e()&&(l.reset(),1E3>x.length&&x.push(l),this.cells[f][d]=null);if(b)for(f=b.left,m=b.right;f<=m;++f)for(d=b.top,g=b.bottom;d<=g;++d)c&&c.qc(f,d)||this.Yf(f,d,!0).xp(a)};b.prototype.nn=function(a,c,b,f,m){var d,g;a=this.Ic(a);c=this.Jc(c);b=this.Ic(b);for(d=this.Jc(f);a<=b;++a)for(f=
c;f<=d;++f)(g=this.Yf(a,f,!1))&&g.dump(m)};b.prototype.gB=function(a){var c,b,f,m,d;c=a.left;f=a.top;b=a.right;for(m=a.bottom;c<=b;++c)for(a=f;a<=m;++a)if(d=this.Yf(c,a,!1))d.ei=!1};fb=b;var w=[];c.prototype.$e=function(){return this.Wb.$e()};c.prototype.xp=function(a){this.Wb.add(a)};c.prototype.remove=function(a){this.Wb.remove(a)};c.prototype.dump=function(a){Ca(a,this.Wb.Af())};da=c;var x=[];r.prototype.$e=function(){if(!this.Wb.length)return!0;if(this.Wb.length>this.Ae.count())return!1;this.Vo();
return!0};r.prototype.xp=function(a){this.Ae.contains(a)?(this.Ae.remove(a),this.Ae.$e()&&(this.fj=!1)):this.Wb.length?(this.Wb[this.Wb.length-1].ue()>a.ue()&&(this.ei=!1),this.Wb.push(a)):(this.Wb.push(a),this.ei=!0)};r.prototype.remove=function(a){this.Ae.add(a);this.fj=!0;30<=this.Ae.count()&&this.Vo()};r.prototype.Vo=function(){this.fj&&(this.Ae.count()===this.Wb.length?this.reset():(Xa(this.Wb,this.Ae),this.Ae.clear(),this.fj=!1))};r.prototype.sz=function(){this.ei||(this.Wb.sort(g),this.ei=
!0)};r.prototype.reset=function(){U(this.Wb);this.ei=!0;this.Ae.clear();this.fj=!1};r.prototype.dump=function(a){this.Vo();this.sz();this.Wb.length&&a.push(this.Wb)};ga=r;var L="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":L[a-1]};hb=function(a,c,b){if(b)switch(a.wc=b.ONE,a.rc=b.ONE_MINUS_SRC_ALPHA,c){case 1:a.wc=b.ONE;a.rc=b.ONE;break;case 3:a.wc=b.ONE;a.rc=b.ZERO;break;
case 4:a.wc=b.ONE_MINUS_DST_ALPHA;a.rc=b.ONE;break;case 5:a.wc=b.DST_ALPHA;a.rc=b.ZERO;break;case 6:a.wc=b.ZERO;a.rc=b.SRC_ALPHA;break;case 7:a.wc=b.ONE_MINUS_DST_ALPHA;a.rc=b.ZERO;break;case 8:a.wc=b.ZERO;a.rc=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.wc=b.DST_ALPHA;a.rc=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.wc=b.ONE_MINUS_DST_ALPHA,a.rc=b.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===
c.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var gc="undefined"!==typeof Float32Array?Float32Array:Array;function hc(e){var p=new gc(3);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2]);return p}
function ic(e){var p=new gc(16);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p[9]=e[9],p[10]=e[10],p[11]=e[11],p[12]=e[12],p[13]=e[13],p[14]=e[14],p[15]=e[15]);return p}function jc(e,p){p[0]=e[0];p[1]=e[1];p[2]=e[2];p[3]=e[3];p[4]=e[4];p[5]=e[5];p[6]=e[6];p[7]=e[7];p[8]=e[8];p[9]=e[9];p[10]=e[10];p[11]=e[11];p[12]=e[12];p[13]=e[13];p[14]=e[14];p[15]=e[15]}
function kc(e,p){var q=p[0],u=p[1];p=p[2];e[0]*=q;e[1]*=q;e[2]*=q;e[3]*=q;e[4]*=u;e[5]*=u;e[6]*=u;e[7]*=u;e[8]*=p;e[9]*=p;e[10]*=p;e[11]*=p}
function lc(e,p,q,u){u||(u=ic());var k,n,h,a,b,d,c,f,r=e[0],g=e[1];e=e[2];n=q[0];h=q[1];k=q[2];q=p[1];d=p[2];r===p[0]&&g===q&&e===d?(e=u,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(q=r-p[0],d=g-p[1],c=e-p[2],f=1/Math.sqrt(q*q+d*d+c*c),q*=f,d*=f,c*=f,p=h*c-k*d,k=k*q-n*c,n=n*d-h*q,(f=Math.sqrt(p*p+k*k+n*n))?(f=1/f,p*=f,k*=f,n*=f):n=k=p=0,h=d*n-c*k,a=c*p-q*n,b=q*k-d*p,(f=Math.sqrt(h*h+a*a+b*b))?(f=1/f,h*=f,a*=f,b*=f):b=a=h=0,
u[0]=p,u[1]=h,u[2]=q,u[3]=0,u[4]=k,u[5]=a,u[6]=d,u[7]=0,u[8]=n,u[9]=b,u[10]=c,u[11]=0,u[12]=-(p*r+k*g+n*e),u[13]=-(h*r+a*g+b*e),u[14]=-(q*r+d*g+c*e),u[15]=1)}
(function(){function e(a,b,d){this.bf=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Oa=!!d;this.tm=this.Hj=!1;this.Gl=0;this.fo=1;this.pr=1E3;this.uC=(this.pr-this.fo)/32768;this.Co=hc([0,0,100]);this.Ht=hc([0,0,0]);this.Av=hc([0,1,0]);this.Xk=hc([1,1,1]);this.Gs=!0;this.Mm=ic();this.qd=ic();this.Lp=ic();this.Ko=ic();this.K=a;this.version=0===this.K.getParameter(this.K.VERSION).indexOf("WebGL 2")?2:1;this.dt()}function p(a,b,d){this.K=a;this.Dk=
b;this.name=d;this.Ed=a.getAttribLocation(b,"aPos");this.kg=a.getAttribLocation(b,"aTex");this.Ft=a.getUniformLocation(b,"matP");this.Hm=a.getUniformLocation(b,"matMV");this.qi=a.getUniformLocation(b,"opacity");this.Rp=a.getUniformLocation(b,"colorFill");this.Gt=a.getUniformLocation(b,"samplerFront");this.$j=a.getUniformLocation(b,"samplerBack");this.bh=a.getUniformLocation(b,"destStart");this.ah=a.getUniformLocation(b,"destEnd");this.bk=a.getUniformLocation(b,"seconds");this.Tp=a.getUniformLocation(b,
"pixelWidth");this.Sp=a.getUniformLocation(b,"pixelHeight");this.Zj=a.getUniformLocation(b,"layerScale");this.Yj=a.getUniformLocation(b,"layerAngle");this.ck=a.getUniformLocation(b,"viewOrigin");this.ak=a.getUniformLocation(b,"scrollPos");this.KA=!!(this.Tp||this.Sp||this.bk||this.$j||this.bh||this.ah||this.Zj||this.Yj||this.ck||this.ak);this.Pt=this.Qt=-999;this.Lm=1;this.Lt=this.Kt=0;this.Nt=this.Jt=this.It=1;this.Tt=this.St=this.Rt=this.Vt=this.Ut=this.Mt=0;this.Kp=[];this.Ot=ic();this.qi&&a.uniform1f(this.qi,
1);this.Rp&&a.uniform4f(this.Rp,1,1,1,1);this.Gt&&a.uniform1i(this.Gt,0);this.$j&&a.uniform1i(this.$j,1);this.bh&&a.uniform2f(this.bh,0,0);this.ah&&a.uniform2f(this.ah,1,1);this.Zj&&a.uniform1f(this.Zj,1);this.Yj&&a.uniform1f(this.Yj,0);this.ck&&a.uniform2f(this.ck,0,0);this.ak&&a.uniform2f(this.ak,0,0);this.bk&&a.uniform1f(this.bk,0);this.Og=!1}function q(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 u(a,b){this.type=a;this.D=b;this.K=b.K;this.Oc=this.mc=this.ru=0;this.ja=this.Nd=null;this.$u=[]}var k=ic();e.prototype.dt=function(){var a=this.K,b;this.At=1;this.Ug=this.gg=null;this.Fl=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.Oa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Bt=a.ONE;this.zt=a.ONE_MINUS_SRC_ALPHA;this.Uk=new Float32Array(8E3*(this.Oa?3:2));this.Lk=new Float32Array(16E3);this.uq=new Float32Array(32E3);this.tq=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.tq);a.bufferData(a.ARRAY_BUFFER,this.uq.byteLength,a.DYNAMIC_DRAW);this.Tk=Array(4);this.Kk=Array(4);for(b=0;4>b;b++)this.Tk[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Tk[b]),a.bufferData(a.ARRAY_BUFFER,this.Uk.byteLength,a.DYNAMIC_DRAW),this.Kk[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Kk[b]),a.bufferData(a.ARRAY_BUFFER,this.Lk.byteLength,a.DYNAMIC_DRAW);this.Qe=0;this.NA=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.NA);for(var d=new Uint16Array(12E3),c=b=0;12E3>b;)d[b++]=c,d[b++]=c+1,d[b++]=c+2,d[b++]=c,d[b++]=c+2,d[b++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.Di=this.tg=this.Pd=0;this.fb=[];b=this.Oa?"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}";d=this.mj({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.fb.push(d);d=this.mj({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.fb.push(d);d=this.mj({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.fb.push(d);d=this.mj({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.fb.push(d);for(var f in mc)mc.hasOwnProperty(f)&&this.fb.push(this.mj(mc[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Vd=[];this.xd=0;this.fc=this.Kb=!1;this.As=this.Rj=-1;this.Ih=null;this.To=a.createFramebuffer();this.Kl=this.qn=null;this.ns=!1;this.Oa&&(this.Kl=a.createRenderbuffer());this.ug=hc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.jB=a[0];this.Xp=a[1];2048<this.Xp&&(this.Xp=2048);this.Uc(0)};p.prototype.ir=function(a){q(this.Ot,
a)||(jc(a,this.Ot),this.K.uniformMatrix4fv(this.Hm,!1,a))};e.prototype.mj=function(a,b,d){var c=this.K,f=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(f,a.src);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(f),c.deleteShader(f),Error("error compiling fragment shader: "+a);var r=c.createShader(c.VERTEX_SHADER);c.shaderSource(r,b);c.compileShader(r);if(!c.getShaderParameter(r,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(r),c.deleteShader(f),c.deleteShader(r),
Error("error compiling vertex shader: "+a);b=c.createProgram();c.attachShader(b,f);c.attachShader(b,r);c.linkProgram(b);if(!c.getProgramParameter(b,c.LINK_STATUS))throw a=c.getProgramInfoLog(b),c.deleteShader(f),c.deleteShader(r),c.deleteProgram(b),Error("error linking shader program: "+a);c.useProgram(b);c.deleteShader(f);c.deleteShader(r);f=new p(c,b,d);f.Pl=a.Pl||0;f.Ql=a.Ql||0;f.Jo=!!a.Jo;f.Gd=!!a.Gd;f.zo=!!a.zo;f.fa=a.fa||[];a=0;for(r=f.fa.length;a<r;a++)f.fa[a][1]=c.getUniformLocation(b,f.fa[a][0]),
f.Kp.push(0),c.uniform1f(f.fa[a][1],0);return f};e.prototype.ip=function(a){var b,d;b=0;for(d=this.fb.length;b<d;b++)if(this.fb[b].name===a)return b;return-1};e.prototype.Fu=function(a,b,d){var c=this.qd,f=this.Mm,r=[0,0,0,0,0,0,0,0];r[0]=c[0]*a+c[4]*b+c[12];r[1]=c[1]*a+c[5]*b+c[13];r[2]=c[2]*a+c[6]*b+c[14];r[3]=c[3]*a+c[7]*b+c[15];r[4]=f[0]*r[0]+f[4]*r[1]+f[8]*r[2]+f[12]*r[3];r[5]=f[1]*r[0]+f[5]*r[1]+f[9]*r[2]+f[13]*r[3];r[6]=f[2]*r[0]+f[6]*r[1]+f[10]*r[2]+f[14]*r[3];r[7]=-r[2];0!==r[7]&&(r[7]=1/
r[7],r[4]*=r[7],r[5]*=r[7],r[6]*=r[7],d[0]=(.5*r[4]+.5)*this.width,d[1]=(.5*r[5]+.5)*this.height)};e.prototype.oh=function(a,b,d){if(this.width!==a||this.height!==b||d){this.pe();d=this.K;this.width=a;this.height=b;d.viewport(0,0,a,b);lc(this.Co,this.Ht,this.Av,this.qd);if(this.Oa){var c=-a/2;a=a/2;var f=b/2;b=-b/2;var r=this.fo,g=this.pr,h=this.Mm;h||(h=ic());var e=a-c,l=b-f,m=g-r;h[0]=2/e;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/l;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/m;h[11]=0;h[12]=-(c+a)/e;h[13]=-(b+
f)/l;h[14]=-(g+r)/m;h[15]=1;this.Xk[0]=1;this.Xk[1]=1}else b=a/b,c=this.fo,a=this.pr,h=this.Mm,g=c*Math.tan(45*Math.PI/360),b*=g,f=-b,r=-g,h||(h=ic()),e=b-f,l=g-r,m=a-c,h[0]=2*c/e,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*c/l,h[6]=0,h[7]=0,h[8]=(b+f)/e,h[9]=(g+r)/l,h[10]=-(a+c)/m,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(a*c*2)/m,h[15]=0,c=[0,0],a=[0,0],this.Fu(0,0,c),this.Fu(1,1,a),this.Xk[0]=1/(a[0]-c[0]),this.Xk[1]=-1/(a[1]-c[1]);c=0;for(a=this.fb.length;c<a;c++)f=this.fb[c],f.Og=!1,f.Ft&&(d.useProgram(f.Dk),
d.uniformMatrix4fv(f.Ft,!1,this.Mm));d.useProgram(this.fb[this.Rj].Dk);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Ug=this.gg=null;this.Kl&&(d.bindFramebuffer(d.FRAMEBUFFER,this.To),d.bindRenderbuffer(d.RENDERBUFFER,this.Kl),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.ns||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Kl),this.ns=!0),d.bindRenderbuffer(d.RENDERBUFFER,
null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.qn=null)}};e.prototype.Jd=function(){lc(this.Co,this.Ht,this.Av,this.qd);kc(this.qd,this.Xk)};e.prototype.translate=function(a,b){if(0!==a||0!==b){this.ug[0]=a;this.ug[1]=b;this.ug[2]=0;var d=this.qd,c=this.ug,f=c[0],r=c[1],c=c[2];d[12]=d[0]*f+d[4]*r+d[8]*c+d[12];d[13]=d[1]*f+d[5]*r+d[9]*c+d[13];d[14]=d[2]*f+d[6]*r+d[10]*c+d[14];d[15]=d[3]*f+d[7]*r+d[11]*c+d[15]}};e.prototype.scale=function(a,b){if(1!==a||1!==b)this.ug[0]=a,this.ug[1]=b,this.ug[2]=
1,kc(this.qd,this.ug)};e.prototype.sn=function(a){if(0!==a){var b=this.qd,d,c=Math.sin(a);a=Math.cos(a);var f=b[0],r=b[1],g=b[2],h=b[3],e=b[4],l=b[5],m=b[6],t=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=f*a+e*c;d[1]=r*a+l*c;d[2]=g*a+m*c;d[3]=h*a+t*c;d[4]=f*-c+e*a;d[5]=r*-c+l*a;d[6]=g*-c+m*a;d[7]=h*-c+t*a}};e.prototype.ud=function(){if(!q(this.Lp,this.qd)){var a=this.Ec();a.type=5;a.ja?jc(this.qd,a.ja):a.ja=ic(this.qd);jc(this.qd,
this.Lp);this.fc=this.Kb=!1}};e.prototype.yn=function(a){this.Oa&&(32760<a&&(a=32760),this.Gl=this.Co[2]-this.fo-a*this.uC)};u.prototype.cz=function(){var a=this.K,b=this.D;0!==this.mc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.To),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.tm=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.tm=
!1)};u.prototype.gz=function(){this.K.bindTexture(this.K.TEXTURE_2D,this.Nd)};u.prototype.hz=function(){var a=this.K;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Nd);a.activeTexture(a.TEXTURE0)};u.prototype.dz=function(){var a=this.ru,b=this.D;b.Fl=a;b=b.Ih;b.qi&&b.Lm!==a&&(b.Lm=a,this.K.uniform1f(b.qi,a))};u.prototype.Yy=function(){this.K.drawElements(this.K.TRIANGLES,this.Oc,this.K.UNSIGNED_SHORT,this.mc)};u.prototype.$y=function(){this.K.blendFunc(this.mc,this.Oc)};u.prototype.iz=
function(){var a,b,d,c=this.D.fb,f=this.D.As;a=0;for(b=c.length;a<b;a++)d=c[a],a===f&&d.Hm?(d.ir(this.ja),d.Og=!0):d.Og=!1;jc(this.ja,this.D.Ko)};u.prototype.Zy=function(){var a=this.K,b=this.D;this.Nd?(b.Ug===this.Nd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Ug=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.To),b.tm||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Nd,0)):(b.Oa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};u.prototype.Vy=function(){var a=this.K,b=this.mc;0===b?(a.clearColor(this.ja[0],this.ja[1],this.ja[2],this.ja[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.ja[0],this.ja[1],this.ja[2],this.ja[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};u.prototype.bz=function(){var a=this.K;0!==this.mc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};u.prototype.Xy=
function(){var a=this.K,b=this.D;b.Oa&&a.disable(a.DEPTH_TEST);var d=b.fb[1];a.useProgram(d.Dk);!d.Og&&d.Hm&&(d.ir(b.Ko),d.Og=!0);a.enableVertexAttribArray(d.Ed);a.bindBuffer(a.ARRAY_BUFFER,b.tq);a.vertexAttribPointer(d.Ed,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.mc/4,this.Oc);d=b.Ih;a.useProgram(d.Dk);0<=d.Ed&&(a.enableVertexAttribArray(d.Ed),a.bindBuffer(a.ARRAY_BUFFER,b.Tk[b.Qe]),a.vertexAttribPointer(d.Ed,b.Oa?3:2,a.FLOAT,!1,0,0));0<=d.kg&&(a.enableVertexAttribArray(d.kg),a.bindBuffer(a.ARRAY_BUFFER,
b.Kk[b.Qe]),a.vertexAttribPointer(d.kg,2,a.FLOAT,!1,0,0));b.Oa&&a.enable(a.DEPTH_TEST)};u.prototype.ez=function(){var a=this.K,b=this.D,d=b.fb[this.mc];b.As=this.mc;b.Ih=d;a.useProgram(d.Dk);!d.Og&&d.Hm&&(d.ir(b.Ko),d.Og=!0);d.qi&&d.Lm!==b.Fl&&(d.Lm=b.Fl,a.uniform1f(d.qi,b.Fl));0<=d.Ed&&(a.enableVertexAttribArray(d.Ed),a.bindBuffer(a.ARRAY_BUFFER,b.Tk[b.Qe]),a.vertexAttribPointer(d.Ed,b.Oa?3:2,a.FLOAT,!1,0,0));0<=d.kg&&(a.enableVertexAttribArray(d.kg),a.bindBuffer(a.ARRAY_BUFFER,b.Kk[b.Qe]),a.vertexAttribPointer(d.kg,
2,a.FLOAT,!1,0,0))};u.prototype.az=function(){var a=this.ja;this.K.uniform4f(this.D.Ih.Rp,a[0],a[1],a[2],a[3])};u.prototype.fz=function(){var a,b,d=this.D.Ih,c=this.K;a=this.ja;d.$j&&this.D.Ug!==this.Nd&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Nd),this.D.Ug=this.Nd,c.activeTexture(c.TEXTURE0));var f=a[0];d.Tp&&f!==d.Qt&&(d.Qt=f,c.uniform1f(d.Tp,f));f=a[1];d.Sp&&f!==d.Pt&&(d.Pt=f,c.uniform1f(d.Sp,f));f=a[2];b=a[3];!d.bh||f===d.Kt&&b===d.Lt||(d.Kt=f,d.Lt=b,c.uniform2f(d.bh,f,b));
f=a[4];b=a[5];!d.ah||f===d.It&&b===d.Jt||(d.It=f,d.Jt=b,c.uniform2f(d.ah,f,b));f=a[6];d.Zj&&f!==d.Nt&&(d.Nt=f,c.uniform1f(d.Zj,f));f=a[7];d.Yj&&f!==d.Mt&&(d.Mt=f,c.uniform1f(d.Yj,f));f=a[8];b=a[9];!d.ck||f===d.Ut&&b===d.Vt||(d.Ut=f,d.Vt=b,c.uniform2f(d.ck,f,b));f=a[10];b=a[11];!d.ak||f===d.Rt&&b===d.St||(d.Rt=f,d.St=b,c.uniform2f(d.ak,f,b));f=a[12];d.bk&&f!==d.Tt&&(d.Tt=f,c.uniform1f(d.bk,f));if(d.fa.length)for(a=0,b=d.fa.length;a<b;a++)f=this.$u[a],f!==d.Kp[a]&&(d.Kp[a]=f,c.uniform1f(d.fa[a][1],
f))};e.prototype.Ec=function(){this.xd===this.Vd.length&&this.Vd.push(new u(0,this));return this.Vd[this.xd++]};e.prototype.pe=function(){if(0!==this.xd&&!this.K.isContextLost()){var a=this.K;0<this.Di&&(a.bindBuffer(a.ARRAY_BUFFER,this.tq),a.bufferSubData(a.ARRAY_BUFFER,0,this.uq.subarray(0,this.Di)),b&&0<=b.Ed&&"<point>"===b.name&&a.vertexAttribPointer(b.Ed,4,a.FLOAT,!1,0,0));if(0<this.Pd){var b=this.Ih;a.bindBuffer(a.ARRAY_BUFFER,this.Tk[this.Qe]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Uk.subarray(0,
this.Pd));b&&0<=b.Ed&&"<point>"!==b.name&&a.vertexAttribPointer(b.Ed,this.Oa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Kk[this.Qe]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Lk.subarray(0,this.tg));b&&0<=b.kg&&"<point>"!==b.name&&a.vertexAttribPointer(b.kg,2,a.FLOAT,!1,0,0)}for(var d,a=0,b=this.xd;a<b;a++)switch(d=this.Vd[a],d.type){case 1:d.Yy();break;case 2:d.gz();break;case 3:d.dz();break;case 4:d.$y();break;case 5:d.iz();break;case 6:d.Zy();break;case 7:d.Vy();break;case 8:d.Xy();break;
case 9:d.ez();break;case 10:d.fz();break;case 11:d.hz();break;case 12:d.az();break;case 13:d.bz();break;case 14:d.cz()}this.Di=this.tg=this.Pd=this.xd=0;this.tm=this.fc=this.Kb=!1;this.Qe++;4<=this.Qe&&(this.Qe=0)}};e.prototype.Fe=function(a){if(a!==this.At&&!this.Hj){var b=this.Ec();b.type=3;this.At=b.ru=a;this.fc=this.Kb=!1}};e.prototype.vc=function(a){if(a!==this.gg){var b=this.Ec();b.type=2;this.gg=b.Nd=a;this.fc=this.Kb=!1}};e.prototype.rg=function(a,b){if((a!==this.Bt||b!==this.zt)&&!this.Hj){var d=
this.Ec();d.type=4;d.mc=a;d.Oc=b;this.Bt=a;this.zt=b;this.fc=this.Kb=!1}};e.prototype.Ou=function(){this.rg(this.K.ONE,this.K.ONE_MINUS_SRC_ALPHA)};e.prototype.Fi=function(a,b,d,c,f,r,g,h){15992<=this.Pd&&this.pe();var e=this.Pd,l=this.tg,m=this.Uk,t=this.Lk,n=this.Gl;if(this.Kb)this.Vd[this.xd-1].Oc+=6;else{var k=this.Ec();k.type=1;k.mc=this.Oa?e:e/2*3;k.Oc=6;this.Kb=!0;this.fc=!1}this.Oa?(m[e++]=a,m[e++]=b,m[e++]=n,m[e++]=d,m[e++]=c,m[e++]=n,m[e++]=f,m[e++]=r,m[e++]=n,m[e++]=g,m[e++]=h,m[e++]=n):
(m[e++]=a,m[e++]=b,m[e++]=d,m[e++]=c,m[e++]=f,m[e++]=r,m[e++]=g,m[e++]=h);t[l++]=0;t[l++]=0;t[l++]=1;t[l++]=0;t[l++]=1;t[l++]=1;t[l++]=0;t[l++]=1;this.Pd=e;this.tg=l};e.prototype.Id=function(a,b,d,c,f,r,g,h,e){15992<=this.Pd&&this.pe();var l=this.Pd,m=this.tg,t=this.Uk,n=this.Lk,k=this.Gl;if(this.Kb)this.Vd[this.xd-1].Oc+=6;else{var p=this.Ec();p.type=1;p.mc=this.Oa?l:l/2*3;p.Oc=6;this.Kb=!0;this.fc=!1}var p=e.left,z=e.top,w=e.right;e=e.bottom;this.Oa?(t[l++]=a,t[l++]=b,t[l++]=k,t[l++]=d,t[l++]=c,
t[l++]=k,t[l++]=f,t[l++]=r,t[l++]=k,t[l++]=g,t[l++]=h,t[l++]=k):(t[l++]=a,t[l++]=b,t[l++]=d,t[l++]=c,t[l++]=f,t[l++]=r,t[l++]=g,t[l++]=h);n[m++]=p;n[m++]=z;n[m++]=w;n[m++]=z;n[m++]=w;n[m++]=e;n[m++]=p;n[m++]=e;this.Pd=l;this.tg=m};e.prototype.LB=function(a,b,d,c,f,r,g,h,e,l,m,t,n,k,p,z){15992<=this.Pd&&this.pe();var w=this.Pd,u=this.tg,q=this.Uk,G=this.Lk,B=this.Gl;if(this.Kb)this.Vd[this.xd-1].Oc+=6;else{var Q=this.Ec();Q.type=1;Q.mc=this.Oa?w:w/2*3;Q.Oc=6;this.Kb=!0;this.fc=!1}this.Oa?(q[w++]=a,
q[w++]=b,q[w++]=B,q[w++]=d,q[w++]=c,q[w++]=B,q[w++]=f,q[w++]=r,q[w++]=B,q[w++]=g,q[w++]=h,q[w++]=B):(q[w++]=a,q[w++]=b,q[w++]=d,q[w++]=c,q[w++]=f,q[w++]=r,q[w++]=g,q[w++]=h);G[u++]=e;G[u++]=l;G[u++]=m;G[u++]=t;G[u++]=n;G[u++]=k;G[u++]=p;G[u++]=z;this.Pd=w;this.tg=u};e.prototype.yB=function(a,b,d,c){7996<=this.Di&&this.pe();var f=this.Di,r=this.uq;if(this.fc)this.Vd[this.xd-1].Oc++;else{var g=this.Ec();g.type=8;g.mc=f;g.Oc=1;this.fc=!0;this.Kb=!1}r[f++]=a;r[f++]=b;r[f++]=d;r[f++]=c;this.Di=f};e.prototype.Uc=
function(a){if(this.Rj!==a){if(!this.fb[a]){if(0===this.Rj)return;a=0}var b=this.Ec();b.type=9;this.Rj=b.mc=a;this.fc=this.Kb=!1}};e.prototype.qk=function(a){a=this.fb[a];return!(!a.bh&&!a.ah)};e.prototype.wq=function(a){a=this.fb[a];return!!(a.bh||a.ah||a.Jo)};e.prototype.vq=function(a){return this.fb[a].Gd};e.prototype.IB=function(a){a=this.fb[a];return 0!==a.Pl||0!==a.Ql};e.prototype.qA=function(a){return this.fb[a].Pl};e.prototype.rA=function(a){return this.fb[a].Ql};e.prototype.sA=function(a,
b){return this.fb[a].fa[b][2]};e.prototype.kn=function(a){return this.fb[a].zo};e.prototype.Ii=function(a,b,d,c,f,r,g,h,e,l,m,t,n,k,p){var z=this.fb[this.Rj],w,u;if(z.KA||p.length){w=this.Ec();w.type=10;w.ja?jc(this.qd,w.ja):w.ja=ic();u=w.ja;u[0]=b;u[1]=d;u[2]=c;u[3]=f;u[4]=r;u[5]=g;u[6]=h;u[7]=e;u[8]=l;u[9]=m;u[10]=t;u[11]=n;u[12]=k;z.$j?w.Nd=a:w.Nd=null;if(p.length)for(d=w.$u,d.length=p.length,a=0,b=p.length;a<b;a++)d[a]=p[a];this.fc=this.Kb=!1}};e.prototype.clear=function(a,b,d,c){var f=this.Ec();
f.type=7;f.mc=0;f.ja||(f.ja=ic());f.ja[0]=a;f.ja[1]=b;f.ja[2]=d;f.ja[3]=c;this.fc=this.Kb=!1};e.prototype.clearRect=function(a,b,d,c){if(!(0>d||0>c)){var f=this.Ec();f.type=7;f.mc=1;f.ja||(f.ja=ic());f.ja[0]=a;f.ja[1]=b;f.ja[2]=d;f.ja[3]=c;this.fc=this.Kb=!1}};e.prototype.Su=function(a){if(this.Oa&&(a=!!a,this.Hj!==a)){var b=this.Ec();b.type=14;b.mc=a?1:0;this.fc=this.Kb=!1;this.Hj=a;this.qn=null;this.Hj?this.Uc(2):this.Uc(0)}};e.prototype.Qu=function(a){if(this.Oa){var b=this.Ec();b.type=13;b.mc=
a?1:0;this.fc=this.Kb=!1}};e.prototype.Os=function(){jc(this.Lp,k);this.Jd();this.ud();var a=this.width/2,b=this.height/2;this.Fi(-a,b,a,b,a,-b,-a,-b);jc(k,this.qd);this.ud()};e.prototype.Pu=function(a,b,d){this.Uc(3);var c=this.Ec();c.type=12;c.ja||(c.ja=ic());c.ja[0]=a;c.ja[1]=b;c.ja[2]=d;c.ja[3]=1;this.fc=this.Kb=!1};e.prototype.dC=function(){this.Uc(0)};e.prototype.RB=function(){this.Uc(2)};e.prototype.HB=function(){this.pe();this.K.flush()};var n=[],h={};e.prototype.Ly=function(){U(n);h={}};
e.prototype.hg=function(a,b,d,c){b=!!b;d=!!d;var f=a.src+","+b+","+d+(b?",undefined":""),r=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(f))return r=h[f],r.rl++,r;this.pe();var g=this.K,e=ma(a.width)&&ma(a.height),r=g.createTexture();g.bindTexture(g.TEXTURE_2D,r);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var k=g.RGBA,l=g.RGBA,m=g.UNSIGNED_BYTE;if(c&&!this.bf)switch(c){case 1:l=k=g.RGB;break;case 2:m=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:l=k=
g.RGB,m=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!e&&b){c=document.createElement("canvas");c.width=na(a.width);c.height=na(a.height);var t=c.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=d:(t.webkitImageSmoothingEnabled=d,t.mozImageSmoothingEnabled=d,t.msImageSmoothingEnabled=d);t.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);g.texImage2D(g.TEXTURE_2D,0,k,l,m,c)}else g.texImage2D(g.TEXTURE_2D,0,k,l,m,a);b?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,
g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));d?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(e||2<=this.version)&&this.Gs?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,
g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.gg=null;r.zg=a.width;r.yg=a.height;r.rl=1;r.ts=f;n.push(r);return h[f]=r};e.prototype.Yc=function(a,b,d,c,f){this.pe();var r=this.K;this.bf&&(c=!1);var g=r.createTexture();r.bindTexture(r.TEXTURE_2D,g);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,a,b,0,r.RGBA,c?r.UNSIGNED_SHORT_4_4_4_4:r.UNSIGNED_BYTE,null);f?(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.REPEAT),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,
r.REPEAT)):(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE));r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,d?r.LINEAR:r.NEAREST);r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,d?r.LINEAR:r.NEAREST);r.bindTexture(r.TEXTURE_2D,null);this.gg=null;g.zg=a;g.yg=b;n.push(g);return g};e.prototype.Iv=function(a,b,d){this.pe();var c=this.K;this.bf&&(d=!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,
!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,d?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}c.bindTexture(c.TEXTURE_2D,null);this.gg=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.rl&&1<a.rl?a.rl--:(this.pe(),a===this.gg&&(this.K.bindTexture(this.K.TEXTURE_2D,null),this.gg=null),a===this.Ug&&(this.K.activeTexture(this.K.TEXTURE1),this.K.bindTexture(this.K.TEXTURE_2D,null),this.K.activeTexture(this.K.TEXTURE0),
this.Ug=null),Ea(n,a),"undefined"!==typeof a.ts&&delete h[a.ts],this.K.deleteTexture(a)))};e.prototype.Kd=function(a){if(a!==this.qn){var b=this.Ec();b.type=6;this.qn=b.Nd=a;this.fc=this.Kb=!1}};lb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.md=(this.um=/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.tc=!!a.dc;this.kt="undefined"!==typeof window.AppMobi||
this.tc;this.$c=!!window.c2cocoonjs;this.Dd=!!window.c2ejecta;this.$c&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Dd&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.Sa=this.tc||this.$c||this.Dd;this.Jj=
/edge\//i.test(navigator.userAgent);this.bf=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Jj;this.nt=/tizen/i.test(navigator.userAgent);this.Gj=/android/i.test(navigator.userAgent)&&!this.nt&&!this.bf&&!this.Jj;this.tt=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.bf&&!this.Jj;this.bB=/ipad/i.test(navigator.userAgent);this.gi=this.tt||this.bB||this.Dd;this.zp=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.bf&&!this.Jj;this.jt=/amazonwebappplatform/i.test(navigator.userAgent);this.UA=/firefox/i.test(navigator.userAgent);this.YA=/safari/i.test(navigator.userAgent)&&!this.zp&&!this.bf&&!this.Jj;this.ZA=/windows/i.test(navigator.userAgent);this.Cp="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.ot=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.aB=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Lj=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Gp=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.xm=!!window.cr_windows10;this.Fp=this.ot||this.aB||this.Gp||this.xm;this.SA=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.rm=this.Gj&&!this.zp&&!this.um&&!this.UA&&!this.jt&&!this.Sa;this.devicePixelRatio=
1;this.cf=this.md||this.um||this.kt||this.$c||this.Gj||this.gi||this.Lj||this.Gp||this.SA||this.nt||this.Dd;this.cf||(this.cf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.wm=!!(this.gi&&this.md&&window.webkit);"undefined"===typeof cr_is_preview||this.Cp||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Cp=!0);this.canvas=a;this.vs=document.getElementById("c2canvasdiv");
this.D=this.K=null;this.kp="(unavailable)";this.Oa=!1;this.Gg=0;this.Qa=null;this.Wl=!1;this.ju=this.ku=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.tc&&(window.c2runtime=this);this.Cp&&(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.rm&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.V=this.width;this.U=this.height;this.Dl=this.width;this.oj=this.height;this.mi=window.innerWidth;this.li=window.innerHeight;this.Z=!0;this.Kj=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.G=[];this.bb=[];this.oi={};this.cd=[];this.So={};
this.Ue=[];this.Wi=[];this.Wn=[];this.wy=[];this.xy=[];this.xt=this.hv=null;this.Eg={};this.Bp=this.$f=!1;this.nd=0;this.Ap=this.Ep=!1;this.Yd=[];this.Ij=!1;this.Dm=this.Iq="";this.Ob=null;this.df="";this.Ik=this.cv=!1;this.Vl=[];this.Fg=this.Vf=0;this.$t=30;this.Io=this.dk=0;this.wh=1;this.wb=new $a;this.Bf=new $a;this.Qm=this.fm=this.Jg=this.fe=this.Wg=this.Wo=this.Am=0;this.Xd=null;this.Ml=[];this.Ro=[];this.Ol=-1;this.Up=[[]];this.cr=this.Im=0;this.ln(null);this.Wp=[];this.Km=-1;this.eu=this.ik=
0;this.Np=!0;this.tj=0;this.Jk=[];this.Zq=this.zq=-1;this.dg=!0;this.Gm=0;this.vm=!1;this.fC=0;this.Dh=null;this.ub=this.nm=!1;this.iu=new fa;this.fq=new fa;this.gq=new fa;this.mh=[];this.ee=new bb([]);this.Uq=new bb([]);this.Jf=[];this.Wh={};this.Rf={};this.Hf={};this.Vi={};this.os={};this.Et=this.Cm=this.yb=this.Nb=this.Dt=this.Bm=this.za=null;this.Ti=this.Hp=!1;this.Yo=[null,null];this.Sh=0;this.Uo="";this.nf={};this.Gk=this.ig=null;this.gv="";this.Pm=[];this.QB()}}function p(a,c){return 128>=
c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function q(){try{return!!window.indexedDB}catch(a){return!1}}function u(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function k(a,c,b,f){try{var m=indexedDB.open("_C2SaveStates");m.onupgradeneeded=u;m.onerror=f;m.onsuccess=function(m){m=m.target.result;m.onerror=f;m.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=b}}catch(d){f(d)}}function n(a,c,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=
u;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var m=f.transaction(["saves"]).objectStore("saves").get(a);m.onsuccess=function(){m.result?c(m.result.data):c(null)}}}catch(m){b(m)}}function h(){ha("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 c,b={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof fa||a[c]&&"undefined"!==
typeof a[c].lD||"spriteCreatedDestroyCallback"!==c&&(b[c]=a[c]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.QB=function(){var a=this;if(this.wm)this.Yz(function(c){a.Xj(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Lj?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var b="data.js";if(this.ot||this.Lj||this.Gp||
this.xm)b="data.json";c.open("GET",b,!0);var f=!1;if(!this.Sa&&"response"in c&&"responseType"in c)try{c.responseType="json",f="json"===c.responseType}catch(m){f=!1}if(!f&&"responseType"in c)try{c.responseType="text"}catch(d){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.Lj?c.onreadystatechange=function(){4===c.readyState&&a.Xj(JSON.parse(c.responseText))}:(c.onload=function(){if(f)a.Xj(c.response);else if(a.Dd){var b=c.responseText,b=b.substr(b.indexOf("{"));
a.Xj(JSON.parse(b))}else a.Xj(JSON.parse(c.responseText))},c.onerror=function(a){ia("Error requesting "+b+":");ia(a)});c.send()}};e.prototype.OA=function(){var a=this,c,b,f,m,d,g,l,r,t;this.Sg=(!this.Sa||this.Dd||this.md)&&this.oC&&!this.rm;0===this.zc&&this.gi&&(this.Sg=!1);this.devicePixelRatio=this.Sg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.oc();0<this.zc&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.nB();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.D.dt();a.D.oh(a.D.width,a.D.height,!0);a.Nb=null;a.yb=null;a.Yo[0]=null;a.Yo[1]=null;a.oB();a.Z=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.qz&&(this.$c||this.Dd||!this.Sa)&&(c={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.Gj||(this.K=this.canvas.getContext("webgl2",c)),this.K||(this.K=this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c)))}catch(h){}if(this.K){if(c=this.K.getExtension("WEBGL_debug_renderer_info"))this.kp=this.K.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.K.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Oa&&(this.kp+=" [front-to-back enabled]");this.Sa||(this.ic=document.createElement("canvas"),
jQuery(this.ic).appendTo(this.canvas.parentNode),this.ic.oncontextmenu=function(){return!1},this.ic.onselectstart=function(){return!1},this.ic.width=Math.round(this.Dl*this.devicePixelRatio),this.ic.height=Math.round(this.oj*this.devicePixelRatio),jQuery(this.ic).css({width:this.Dl+"px",height:this.oj+"px"}),this.Du(),this.qq=this.ic.getContext("2d"));this.D=new lb(this.K,this.cf,this.Oa);this.D.oh(this.canvas.width,this.canvas.height);this.D.Gs=0!==this.jz;this.Qa=null;c=0;for(b=this.G.length;c<
b;c++)for(d=this.G[c],f=0,m=d.ba.length;f<m;f++)l=d.ba[f],l.Db=this.D.ip(l.id),l.Gd=this.D.vq(l.Db),this.Ti=this.Ti||this.D.qk(l.Db);c=0;for(b=this.cd.length;c<b;c++){r=this.cd[c];f=0;for(m=r.ba.length;f<m;f++)l=r.ba[f],l.Db=this.D.ip(l.id),l.Gd=this.D.vq(l.Db);r.ie();f=0;for(m=r.da.length;f<m;f++){t=r.da[f];d=0;for(g=t.ba.length;d<g;d++)l=t.ba[d],l.Db=this.D.ip(l.id),l.Gd=this.D.vq(l.Db),this.Ti=this.Ti||this.D.qk(l.Db);t.ie()}}}else{if(0<this.zc&&this.tc){this.canvas=null;document.oncontextmenu=
function(){return!1};document.onselectstart=function(){return!1};this.Qa=AppMobi.canvas.getContext("2d");try{this.Qa.samplingMode=this.Ka?"smooth":"sharp",this.Qa.globalScale=1,this.Qa.HTML5CompatibilityMode=!0,this.Qa.imageSmoothingEnabled=this.Ka}catch(e){}0!==this.width&&0!==this.height&&(this.Qa.width=this.width,this.Qa.height=this.height)}this.Qa||(this.$c?(c={antialias:!!this.Ka,alpha:!0},this.Qa=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Qa=this.canvas.getContext("2d",c)),this.xn(this.Qa,
this.Ka));this.qq=this.ic=null}this.pv=function(c){a.Ma(!1,c)};window==window.top||this.Sa||this.Fp||this.Lj||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.$c&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.Dm="__c2_continuouspreview",this.Ik=!0),this.wB&&
!this.cf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.lg()});this.Sa||(c=function(a){if(kb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?
document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.zc&&this.Sg&&1<this.devicePixelRatio&&this.setSize(this.Ab,this.zb,!0);this.yv();this.HA();this.go();this.N={}};e.prototype.setSize=function(a,c,b){var f=0,m=0,d=0,l=0,l=0;if(this.mi!==a||this.li!==c||b){this.mi=a;this.li=c;var g=this.zc;if((d=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.vm)&&!this.md)||
0!==this.zc||b)d&&(g=this.Sh),b=this.devicePixelRatio,4<=g?(5===g&&1!==b&&(a+=1,c+=1),d=this.Ab/this.zb,a/c>d?(d*=c,5===g?(l=d*b/this.Ab,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),d=this.Ab*l/b,l=this.zb*l/b,f=(a-d)/2,m=(c-l)/2,a=d,c=l):(f=(a-d)/2,a=d)):(l=a/d,5===g?(l=l*b/this.zb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),d=this.Ab*l/b,l=this.zb*l/b,f=(a-d)/2,m=(c-l)/2,a=d):m=(c-l)/2,c=l)):d&&0===g&&(f=Math.floor((a-this.Ab)/2),m=Math.floor((c-this.zb)/2),a=this.Ab,c=this.zb),2>g&&(this.hj=
b),this.Dl=Math.round(a),this.oj=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.Z=!0,this.Jv?(this.V=this.width,this.U=this.height,this.jd=!0):this.width<this.Ab&&this.height<this.zb||1===g?(this.V=this.width,this.U=this.height,this.jd=!0):(this.V=this.Ab,this.U=this.zb,this.jd=!1,2===g?(d=this.Ab/this.zb,g=this.mi/this.li,g<d?this.V=this.U*g:g>d&&(this.U=this.V/g)):3===g&&(d=this.Ab/this.zb,g=this.mi/this.li,g>d?this.V=this.U*g:g<d&&(this.U=this.V/g))),this.vs&&!this.Sa&&
(jQuery(this.vs).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(m)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(c*b),this.Dd?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(m)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+
"px"):this.Sg&&!this.Sa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.ic&&(this.ic.width=Math.round(a*b),this.ic.height=Math.round(c*b),this.ic.style.width=this.Dl+"px",this.ic.style.height=this.oj+"px"),this.D&&this.D.oh(Math.round(a*b),Math.round(c*b)),this.tc&&this.Qa&&(this.Qa.width=Math.round(a),this.Qa.height=Math.round(c)),this.Qa&&this.xn(this.Qa,this.Ka),this.yv(),this.tt&&!this.md&&window.scrollTo(0,0)}};e.prototype.yv=function(){if(this.Ay&&
0!==this.pq){var a="portrait";2===this.pq&&(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(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};e.prototype.nB=function(){this.D.Ly();this.Hp=
!0;var a,c,b;a=0;for(c=this.G.length;a<c;a++)b=this.G[a],b.jh&&b.jh()};e.prototype.oB=function(){this.Hp=!1;var a,c,b;a=0;for(c=this.G.length;a<c;a++)b=this.G[a],b.Ai&&b.Ai()};e.prototype.Du=function(){if(!this.Sa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.vm)&&!this.md?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.ic).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Kj)for(ha("[Construct 2] Suspending"),this.Kj=!0,-1!==this.zq&&d&&d(this.zq),-1!==this.Zq&&clearTimeout(this.Zq),a=0,c=this.Jk.length;a<c;a++)this.Jk[a](!0);else if(!a&&this.Kj){ha("[Construct 2] Resuming");this.Kj=!1;this.Am=Wa();this.Wg=Wa();a=this.dk=this.fm=0;for(c=this.Jk.length;a<c;a++)this.Jk[a](!1);this.Ma(!1)}};e.prototype.gs=function(a){this.Jk.push(a)};
e.prototype.Ef=function(a){return this.Pm[a]};e.prototype.Xj=function(a){a&&a.project||ia("Project model unavailable");a=a.project;this.name=a[0];this.Ns=a[1];this.zc=a[12];this.Ab=a[10];this.zb=a[11];this.yu=this.Ab/2;this.zu=this.zb/2;this.Sa&&!this.Dd&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.zc=3);this.lr=a[18];this.jg=a[19];if(0===this.jg){var c=new Image;c.crossOrigin="anonymous";this.Tu(c,
"loading-logo.png");this.ig={Jm:c}}else if(4===this.jg){c=new Image;c.src="";var b=new Image;b.src="";var f=new Image;f.src="";var d=new Image;d.src="";var m=new Image;m.src="";var l=new Image;l.src="";var g=new Image;g.src="";var r=new Image;r.src="";var t=new Image;t.src="";var h=new Image;h.src="";var e=new Image;e.src="";var n=new Image;n.src="";this.ig={Jm:[c,b,f,d],DB:[m,l,g,r],rC:[t,h,e,n]}}this.ik=a[21];this.Pm=nc();this.He=new X(this);c=0;for(b=a[2].length;c<b;c++)g=a[2][c],f=this.Ef(g[0]),
mb(g,f.prototype),r=new f(this),r.Fn=g[1],r.bg=g[2],r.qD=g[5],r.bu=g[9],r.J&&r.J(),this.plugins.push(r);this.Pm=nc();c=0;for(b=a[3].length;c<b;c++){g=a[3][c];m=this.Ef(g[1]);r=null;f=0;for(d=this.plugins.length;f<d;f++)if(this.plugins[f]instanceof m){r=this.plugins[f];break}t=new r.T(r);t.name=g[0];t.M=g[2];t.yp=g[3].slice(0);t.qC=g[3].length;t.By=g[4];t.cA=g[5];t.qa=g[11];t.M?(t.gh=[],t.Ve=this.tj++,t.Za=null):(t.gh=null,t.Ve=-1,t.Za=[]);t.Tl=null;t.Qh=null;t.Hs=null;t.gc=!1;t.Xc=null;g[6]?(t.Pi=
g[6][0],t.Mk=g[6][1],t.uh=g[6][2]):(t.Pi=null,t.Mk=0,t.uh=0);g[7]?t.Wc=g[7]:t.Wc=null;t.index=c;t.k=[];t.Il=[];t.vf=[new nb(t)];t.oe=0;t.Bd=null;t.Qy=0;t.Ni=!0;t.Xn=ob;t.Us=pb;t.oA=qb;t.ca=rb;t.sk=ub;t.tk=vb;t.ng=wb;t.hm=xb;t.$o=yb;t.ep=zb;t.Td=Ab;t.fp=Bb;t.kj=new eb(this.Ab,this.zb);t.jl=!0;t.kl=!1;t.N={};t.toString=Cb;t.bb=[];f=0;for(d=g[8].length;f<d;f++){h=g[8][f];e=this.Ef(h[1]);n=null;m=0;for(l=this.bb.length;m<l;m++)if(this.bb[m]instanceof e){n=this.bb[m];break}n||(n=new e(this),n.Om=[],n.Nm=
new fa,n.J&&n.J(),this.bb.push(n),oc&&n instanceof oc&&(this.hv=n),pc&&n instanceof pc&&(this.xt=n));-1===n.Om.indexOf(t)&&n.Om.push(t);m=new n.T(n,t);m.name=h[0];m.qa=h[2];m.J();t.bb.push(m)}t.global=g[9];t.Dp=g[10];t.ba=[];f=0;for(d=g[12].length;f<d;f++)t.ba.push({id:g[12][f][0],name:g[12][f][1],Db:-1,Gd:!1,Wa:!0,index:f});t.Qn=g[13];this.lr&&!t.M&&!t.Dp&&r.bg||t.J();t.name&&(this.types[t.name]=t);this.G.push(t);r.Fn&&(f=new r.P(t),f.uid=this.ik++,f.Hu=this.eu++,f.Qg=0,f.zj=Db,f.toString=Eb,f.B=
g[14],f.J(),t.k.push(f),this.nf[f.uid.toString()]=f)}c=0;for(b=a[4].length;c<b;c++)for(m=a[4][c],l=this.G[m[0]],f=1,d=m.length;f<d;f++)g=this.G[m[f]],g.Za.push(l),l.gh.push(g);c=0;for(b=a[28].length;c<b;c++){m=a[28][c];l=[];f=0;for(d=m.length;f<d;f++)l.push(this.G[m[f]]);f=0;for(d=l.length;f<d;f++)l[f].gc=!0,l[f].Xc=l}if(0<this.tj)for(c=0,b=this.G.length;c<b;c++)if(g=this.G[c],!g.M&&g.Za.length){g.Tl=Array(this.tj);g.Qh=Array(this.tj);g.Hs=Array(this.tj);t=[];f=n=e=h=0;for(d=g.Za.length;f<d;f++)for(r=
g.Za[f],g.Tl[r.Ve]=h,h+=r.qC,g.Qh[r.Ve]=e,e+=r.By,g.Hs[r.Ve]=n,n+=r.cA,m=0,l=r.ba.length;m<l;m++)t.push(wa({},r.ba[m]));g.ba=t.concat(g.ba);f=0;for(d=g.ba.length;f<d;f++)g.ba[f].index=f}c=0;for(b=a[5].length;c<b;c++)g=a[5][c],f=new Fb(this,g),this.oi[f.name]=f,this.cd.push(f);c=0;for(b=a[6].length;c<b;c++)g=a[6][c],f=new Gb(this,g),this.So[f.name]=f,this.Ue.push(f);c=0;for(b=this.Ue.length;c<b;c++)this.Ue[c].nb();c=0;for(b=this.Ue.length;c<b;c++)this.Ue[c].hr();c=0;for(b=this.Wn.length;c<b;c++)this.Wn[c].nb();
U(this.Wn);this.zy=a[7];this.Uo=a[8];this.uc=a[9];this.hj=1;this.qz=a[13];this.Ka=a[14];this.xs=a[15];this.oC=a[17];this.pq=a[20];this.Ay=0<this.pq;this.wB=a[22];this.jd=this.Jv=a[23];this.jz=a[24];this.EB=a[25];this.Oa=a[27]&&!this.bf;this.Kn=Date.now();U(this.Pm);this.OA()};var c=!1,f=0,r=[];e.prototype.MB=function(a,c){function b(){f--;m.Wt()}var m=this;a.addEventListener("load",b);a.addEventListener("error",b);r.push([a,c]);this.Wt()};e.prototype.Wt=function(){for(var a;r.length&&100>f;)f++,a=
r.shift(),this.Tu(a[0],a[1])};e.prototype.Vk=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){c=a.rs=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.Dd?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(c){a.src=c},function(f){c=a.rs=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.MB(a,b)));this.Wi.push(a)};e.prototype.$z=function(a){var c,b;c=0;
for(b=this.Wi.length;c<b;c++)if(this.Wi[c].My===a)return this.Wi[c];return null};var g=0,y=!1;e.prototype.HA=function(){this.Dh&&(g=this.Dh.bC(this.zy))};e.prototype.ls=function(){var a=g,c=0,b=0,f=!0,m,d,b=0;for(m=this.Wi.length;b<m;b++){d=this.Wi[b];var l=d.Bl;if(!l||0>=l)l=5E4;a+=l;d.src&&(d.complete||d.loaded)&&!d.rs?c+=l:f=!1}f&&this.EB&&this.Dh&&(y||(this.Dh.gC(),y=!0),b=this.Dh.pA(),c+=b,b<g&&(f=!1));this.be=0==a?1:c/a;return f};var J=!1;e.prototype.go=function(){if(this.Qa||this.D){var a=
this.Qa||this.qq;this.ic&&this.Du();var f=window.innerWidth,m=window.innerHeight;this.mi===f&&this.li===m||this.setSize(f,m);this.be=0;this.Ct=-1;var d=this;if(this.ls()&&(4!==this.jg||J))this.IA();else{m=Date.now()-this.Kn;if(a){var g=this.width,l=this.height,f=this.devicePixelRatio;if(3>this.jg&&(this.$c||500<=m&&this.Ct!=this.be)){a.clearRect(0,0,g,l);var m=g/2,l=l/2,g=0===this.jg&&this.ig.Jm.complete,t=40*f,r=0,h=80*f,e;if(g){var n=this.ig.Jm,h=n.width*f;e=n.height*f;t=h/2;r=e/2;a.drawImage(n,
A(m-t),A(l-r),h,e)}1>=this.jg?(m=A(m-t)+.5,l=A(l+(r+(g?12*f:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(m,l,Math.floor(h*this.be),6*f),a.strokeStyle="black",a.strokeRect(m,l,h,6*f),a.strokeStyle="white",a.strokeRect(m-1*f,l-1*f,h+2*f,8*f)):2===this.jg&&(a.font=this.Dd?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.ED="middle",f=Math.round(100*this.be)+"%",g=a.measureText?a.measureText(f):null,a.fillText(f,m-(g?g.width:0)/2,l));this.Ct=this.be}else if(4===this.jg){this.oz(a);b?b(function(){d.go()}):
setTimeout(function(){d.go()},16);return}}setTimeout(function(){d.go()},this.$c?10:100)}}};var l=-1,m="undefined"===typeof cr_is_preview?200:0,t=!0,P=!1,O=0,I=0,z="undefined"===typeof cr_is_preview?3E3:0,w=null,x=null,L=0;e.prototype.oz=function(a){if(!J){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),d=this.ig.Jm,g=this.ig.DB,r=this.ig.rC,h=0;4>h;++h)if(!d[h].complete||!g[h].complete||!r[h].complete)return;0===L&&(l=Date.now());var h=Date.now(),e=!1,n=a,k,y;t||P?(a.clearRect(0,0,b,f),w&&
w.width===b&&w.height===f||(w=document.createElement("canvas"),w.width=b,w.height=f,x=w.getContext("2d")),n=x,e=!0,t&&1===L&&(l=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,b,f);256<this.oj?(k=Fa(.22*f,105,.6*b),y=.25*k,n.drawImage(p(g,k),.5*b-k/2,.2*f-y/2,k,y),y=k=Math.min(.395*f,.95*b),n.drawImage(p(d,k),.5*b-k/2,.485*f-y/2,k,y),k=Fa(.22*f,105,.6*b),y=.25*k,n.drawImage(p(r,k),.5*b-k/2,.868*f-y/2,k,y),n.fillStyle="#3C3C3C",k=b,y=Math.max(.005*f,2),n.fillRect(0,.8*f-y/2,k,y),
n.fillStyle=c?"red":"#E0FF65",k=b*this.be,n.fillRect(.5*b-k/2,.8*f-y/2,k,y)):(y=k=.55*f,n.drawImage(p(d,k),.5*b-k/2,.45*f-y/2,k,y),n.fillStyle="#3C3C3C",k=b,y=Math.max(.005*f,2),n.fillRect(0,.85*f-y/2,k,y),n.fillStyle=c?"red":"#E0FF65",k=b*this.be,n.fillRect(.5*b-k/2,.85*f-y/2,k,y));e&&(t?a.globalAlpha=0===L?0:Math.min((h-l)/300,1):P&&(a.globalAlpha=Math.max(1-(h-I)/300,0)),a.drawImage(w,0,0,b,f));t&&300<=h-l&&2<=L&&(t=!1,O=h);!t&&h-O>=z&&!P&&1<=this.be&&(P=!0,I=h);if(P&&h-I>=300+m||"undefined"!==
typeof cr_is_preview&&1<=this.be&&500>Date.now()-l)J=!0,P=t=!1,this.ig=x=w=null;++L}};e.prototype.IA=function(){this.ic&&(this.canvas.parentNode.removeChild(this.ic),this.ic=this.qq=null);this.Kn=Date.now();this.Wg=Wa();var a,c,b;if(this.lr)for(a=0,c=this.G.length;a<c;a++)b=this.G[a],b.M||b.Dp||!b.na.bg||b.J();else this.dg=!1;a=0;for(c=this.cd.length;a<c;a++)this.cd[a].Ny();2<=this.zc&&(a=this.Ab/this.zb,c=this.width/this.height,this.hj=2!==this.zc&&c>a||2===this.zc&&c<a?this.height/this.zb:this.width/
this.Ab);this.Ns?this.oi[this.Ns].Sq():this.cd[0].Sq();this.lr||(this.Gm=1,this.trigger(X.prototype.n.Lr,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.G.length;a<c;a++)b=this.G[a],b.lu&&b.lu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ma(!1);this.tc&&AppMobi.webview.execute("onGameReady();")};e.prototype.Ma=function(a,c,f){if(this.za){var m=
Wa();if(f||!this.Kj||a){a||(b?this.zq=b(this.pv):this.Zq=setTimeout(this.pv,this.cf?1:16));c=c||m;var d=this.zc;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.md)||this.vm)&&0<this.Sh&&(d=this.Sh);if(0<d){var d=window.innerWidth,g=window.innerHeight;this.mi===d&&this.li===g||this.setSize(d,g)}this.Sa||(f?this.Wl||(this.Wl=!0):this.Wl?(this.Wl=!1,0===this.zc&&this.setSize(Math.round(this.ku/this.devicePixelRatio),Math.round(this.ju/
this.devicePixelRatio),!0)):(this.ku=this.width,this.ju=this.height));this.dg&&(f=this.ls(),this.Gm=this.be,f&&(this.dg=!1,this.be=1,this.trigger(X.prototype.n.Lr,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.fB(c);!this.Z&&!this.$c||this.Hp||this.Ik||a||(this.Z=!1,this.D?this.Hb():this.Mc(),this.Gk&&(this.canvas&&this.canvas.toDataURL&&(this.gv=this.canvas.toDataURL(this.Gk[0],this.Gk[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.gv),this.trigger(X.prototype.n.Vw,null)),this.Gk=
null));this.oD||(this.fe++,this.Jg++,this.fm++);this.dk+=Wa()-m}}};e.prototype.fB=function(a){var c,b,f,m,d,g,l,t;1E3<=a-this.Wg&&(this.Wg+=1E3,1E3<=a-this.Wg&&(this.Wg=a),this.Wo=this.fm,this.fm=0,this.Io=this.dk,this.dk=0);c=0;0!==this.Am&&(c=a-this.Am,0>c&&(c=0),this.Fg=c/=1E3,.5<this.Fg?this.Fg=0:this.Fg>1/this.$t&&(this.Fg=1/this.$t));this.Am=a;this.Vf=this.Fg*this.wh;this.wb.add(this.Vf);this.Bf.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||
this.vm)&&!this.md;2<=this.zc||a&&0<this.Sh?(c=this.Ab/this.zb,b=this.width/this.height,f=this.zc,a&&0<this.Sh&&(f=this.Sh),this.hj=2!==f&&b>c||2===f&&b<c?this.height/this.zb:this.width/this.Ab,this.za&&(this.za.Jq(this.za.scrollX),this.za.Kq(this.za.scrollY))):this.hj=this.Sg?this.devicePixelRatio:1;this.oc();this.nd++;this.He.UB();this.nd--;this.oc();this.nd++;b=this.iu.Af();a=0;for(c=b.length;a<c;a++)b[a].zD();a=0;for(c=this.G.length;a<c;a++)if(g=this.G[a],!g.M&&(g.bb.length||g.Za.length))for(b=
0,f=g.k.length;b<f;b++)for(l=g.k[b],m=0,d=l.W.length;m<d;m++)l.W[m].Ma();a=0;for(c=this.G.length;a<c;a++)if(g=this.G[a],!g.M&&(g.bb.length||g.Za.length))for(b=0,f=g.k.length;b<f;b++)for(l=g.k[b],m=0,d=l.W.length;m<d;m++)t=l.W[m],t.Eu&&t.Eu();b=this.fq.Af();a=0;for(c=b.length;a<c;a++)b[a].Ma();this.nd--;this.JA();for(a=0;this.Xd&&10>a++;)this.Fs(this.Xd);a=0;for(c=this.Ue.length;a<c;a++)this.Ue[a].pp=!1;this.za.Hg&&this.za.Hg.Cb();U(this.mh);this.Np=!1;this.nd++;a=0;for(c=this.G.length;a<c;a++)if(g=
this.G[a],!g.M&&(g.bb.length||g.Za.length))for(b=0,f=g.k.length;b<f;b++)for(l=g.k[b],m=0,d=l.W.length;m<d;m++)t=l.W[m],t.Nk&&t.Nk();b=this.gq.Af();a=0;for(c=b.length;a<c;a++)b[a].Nk();this.nd--};e.prototype.lg=function(){var a,c,b,f,m,d,g,l,t;a=0;for(c=this.G.length;a<c;a++)if(g=this.G[a],!g.M)for(b=0,f=g.k.length;b<f;b++)if(l=g.k[b],l.lg&&l.lg(),l.W)for(m=0,d=l.W.length;m<d;m++)t=l.W[m],t.lg&&t.lg()};e.prototype.Fs=function(a){var c=this.za;this.za.hC();var b,f,m;if(this.D)for(b=0,f=this.G.length;b<
f;b++)m=this.G[b],m.M||!m.Si||m.global&&0!==m.k.length||-1!==a.Ej.indexOf(m)||m.Si();c==a&&U(this.He.Vc);U(this.mh);this.Mu(!0);a.Sq();this.Mu(!1);this.Np=this.Z=!0;this.oc()};e.prototype.Mu=function(a){var c,b,f,m,d,g,l,t,r;c=0;for(b=this.bb.length;c<b;c++)f=this.bb[c],a?f.jk&&f.jk():f.lk&&f.lk();c=0;for(b=this.G.length;c<b;c++)if(f=this.G[c],f.global||f.na.Fn)for(m=0,d=f.k.length;m<d;m++)if(g=f.k[m],a?g.jk&&g.jk():g.lk&&g.lk(),g.W)for(l=0,t=g.W.length;l<t;l++)r=g.W[l],a?r.jk&&r.jk():r.lk&&r.lk()};
e.prototype.vh=function(a){this.fq.add(a)};e.prototype.kC=function(a){this.gq.add(a)};e.prototype.Zf=function(a){return a&&-1!==a.hk?this.Fg*a.hk:this.Vf};e.prototype.Mc=function(){this.za.Mc(this.Qa);this.tc&&this.Qa.present()};e.prototype.Hb=function(){this.Oa&&(this.Gg=1,this.za.Uf(this.D));this.za.Hb(this.D);this.D.HB()};e.prototype.hl=function(a){a&&this.Ml.push(a)};e.prototype.Lu=function(a){Ea(this.Ml,a)};e.prototype.Mg=function(a){a=a.toString();return this.nf.hasOwnProperty(a)?this.nf[a]:
null};var G=[];e.prototype.ke=function(a){var c,b;c=a.type.name;var f=null;if(this.Eg.hasOwnProperty(c)){if(f=this.Eg[c],f.contains(a))return}else f=G.length?G.pop():new fa,this.Eg[c]=f;f.add(a);this.$f=!0;if(a.gc)for(c=0,b=a.siblings.length;c<b;c++)this.ke(a.siblings[c]);this.Bp&&f.Ui.push(a);this.Ap||(this.nd++,this.trigger(Object.getPrototypeOf(a.type.na).n.Br,a),this.nd--)};e.prototype.oc=function(){if(this.$f){var a,c,b,f,m,d;this.Bp=!0;b=0;for(m=this.Yd.length;b<m;++b)for(a=this.Yd[b],c=a.type,
c.k.push(a),f=0,d=c.Za.length;f<d;++f)c.Za[f].k.push(a),c.Za[f].Ni=!0;U(this.Yd);this.Mw();Va(this.Eg);this.$f=this.Bp=!1}};e.prototype.Mw=function(){for(var a in this.Eg)this.Eg.hasOwnProperty(a)&&this.Uv(this.Eg[a])};e.prototype.Uv=function(a){var c=a.Af(),b=c[0].type,f,m,d,g,l,t;Xa(b.k,a);b.Ni=!0;0===b.k.length&&(b.kl=!1);f=0;for(m=b.Za.length;f<m;++f)t=b.Za[f],Xa(t.k,a),t.Ni=!0;f=0;for(m=this.He.Vc.length;f<m;++f)if(l=this.He.Vc[f],l.Gc.hasOwnProperty(b.index)&&Xa(l.Gc[b.index].Ze,a),!b.M)for(d=
0,g=b.Za.length;d<g;++d)t=b.Za[d],l.Gc.hasOwnProperty(t.index)&&Xa(l.Gc[t.index].Ze,a);if(l=c[0].u){if(l.vd)for(d=l.k,f=0,m=d.length;f<m;++f)g=d[f],a.contains(g)&&(g.Ia(),l.lc.update(g,g.Sc,null),g.Sc.set(0,0,-1,-1));Xa(l.k,a);l.Bk(0)}for(f=0;f<c.length;++f)this.Tv(c[f],b);a.clear();G.push(a);this.Z=!0};e.prototype.Tv=function(a,c){var b,f,m;b=0;for(f=this.Ml.length;b<f;++b)this.Ml[b](a);a.yd&&c.kj.update(a,a.yd,null);(b=a.u)&&b.Gi(a,!0);if(a.W)for(b=0,f=a.W.length;b<f;++b)m=a.W[b],m.ae&&m.ae(),m.behavior.Nm.remove(a);
this.iu.remove(a);this.fq.remove(a);this.gq.remove(a);a.ae&&a.ae();this.nf.hasOwnProperty(a.uid.toString())&&delete this.nf[a.uid.toString()];this.Qm--;100>c.Il.length&&c.Il.push(a)};e.prototype.Cl=function(a,c,b,f){if(a.M){var m=A(Math.random()*a.gh.length);return this.Cl(a.gh[m],c,b,f)}return a.Bd?this.Sf(a.Bd,c,!1,b,f,!1):null};var B=[];e.prototype.Sf=function(a,c,b,f,m,d){var g,l,t,r;if(!a)return null;var h=this.G[a[1]],e=h.na.bg;if(this.dg&&e&&!h.Dp||e&&!this.D&&11===a[0][11])return null;var n=
c;e||(c=null);var k;h.Il.length?(k=h.Il.pop(),k.kc=!0,h.na.P.call(k,h)):(k=new h.na.P(h),k.kc=!1);!b||d||this.nf.hasOwnProperty(a[2].toString())?k.uid=this.ik++:k.uid=a[2];this.nf[k.uid.toString()]=k;k.Hu=this.eu++;k.Qg=h.k.length;g=0;for(l=this.Yd.length;g<l;++g)this.Yd[g].type===h&&k.Qg++;k.zj=Db;k.toString=Eb;t=a[3];if(k.kc)Va(k.N);else{k.N={};if("undefined"!==typeof cr_is_preview)for(k.ht=[],k.ht.length=t.length,g=0,l=t.length;g<l;g++)k.ht[g]=t[g][1];k.Mb=[];k.Mb.length=t.length}g=0;for(l=t.length;g<
l;g++)k.Mb[g]=t[g][0];if(e){var z=a[0];k.x=ja(f)?z[0]:f;k.y=ja(m)?z[1]:m;k.z=z[2];k.width=z[3];k.height=z[4];k.depth=z[5];k.q=z[6];k.opacity=z[7];k.Ac=z[8];k.Bc=z[9];k.pc=z[10];g=z[11];!this.D&&h.ba.length&&(k.pc=g);k.lj=gb(k.pc);this.K&&hb(k,k.pc,this.K);if(k.kc){g=0;for(l=z[12].length;g<l;g++)for(t=0,r=z[12][g].length;t<r;t++)k.cb[g][t]=z[12][g][t];k.Na.set(0,0,0,0);k.yd.set(0,0,-1,-1);k.Sc.set(0,0,-1,-1);k.Zb.Ki(k.Na);U(k.Bo)}else{k.cb=z[12].slice(0);g=0;for(l=k.cb.length;g<l;g++)k.cb[g]=z[12][g].slice(0);
k.Ca=[];k.Gf=[];k.Gf.length=h.ba.length;k.Na=new ua(0,0,0,0);k.yd=new ua(0,0,-1,-1);k.Sc=new ua(0,0,-1,-1);k.Zb=new va;k.Bo=[];k.F=Hb;k.vy=Ib;k.qc=Mb;k.Ia=Nb;k.Fv=Ob;k.kr=Pb;k.ue=Qb}k.Qi=!1;k.tv=0;k.sv=0;k.rv=null;14===z.length&&(k.Qi=!0,k.tv=z[13][0],k.sv=z[13][1],k.rv=z[13][2]);g=0;for(l=h.ba.length;g<l;g++)k.Gf[g]=!0;k.tf=!0;k.ie=Rb;k.ie();k.Gv=!!k.Ca.length;k.ql=!0;k.Fo=!0;h.jl=!0;k.visible=!0;k.hk=-1;k.u=c;k.je=c.k.length;k.Gg=0;"undefined"===typeof k.Ea&&(k.Ea=null);this.Z=k.zd=!0}var y;U(B);
g=0;for(l=h.Za.length;g<l;g++)B.push.apply(B,h.Za[g].bb);B.push.apply(B,h.bb);if(k.kc)for(g=0,l=B.length;g<l;g++){var P=B[g];y=k.W[g];y.kc=!0;P.behavior.P.call(y,P,k);z=a[4][g];t=0;for(r=z.length;t<r;t++)y.B[t]=z[t];y.J();P.behavior.Nm.add(k)}else for(k.W=[],g=0,l=B.length;g<l;g++)P=B[g],y=new P.behavior.P(P,k),y.kc=!1,y.B=a[4][g].slice(0),y.J(),k.W.push(y),P.behavior.Nm.add(k);z=a[5];if(k.kc)for(g=0,l=z.length;g<l;g++)k.B[g]=z[g];else k.B=z.slice(0);this.Yd.push(k);this.$f=!0;c&&(c.gj(k,!0),1!==
c.Qc||1!==c.Rc)&&(h.kl=!0);this.Qm++;if(h.gc){if(k.gc=!0,k.kc?U(k.siblings):k.siblings=[],!b&&!d){g=0;for(l=h.Xc.length;g<l;g++)if(h.Xc[g]!==h){if(!h.Xc[g].Bd)return null;k.siblings.push(this.Sf(h.Xc[g].Bd,n,!1,e?k.x:f,e?k.y:m,!0))}g=0;for(l=k.siblings.length;g<l;g++)for(k.siblings[g].siblings.push(k),t=0;t<l;t++)g!==t&&k.siblings[g].siblings.push(k.siblings[t])}}else k.gc=!1,k.siblings=null;k.J();g=0;for(l=k.W.length;g<l;g++)k.W[g].CB&&k.W[g].CB();return k};e.prototype.wj=function(a){var c,b;c=0;
for(b=this.za.da.length;c<b;c++){var f=this.za.da[c];if(jb(f.name,a))return f}return null};e.prototype.Xe=function(a){a=A(a);0>a&&(a=0);a>=this.za.da.length&&(a=this.za.da.length-1);return this.za.da[a]};e.prototype.Go=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ca().ka=!0};e.prototype.sk=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].sk()};e.prototype.tk=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].tk()};e.prototype.ng=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].ng()};
e.prototype.Cv=function(a){if(a.jl){var c,b,f=a.k;c=0;for(b=f.length;c<b;++c)f[c].kr();f=this.Yd;c=0;for(b=f.length;c<b;++c)f[c].type===a&&f[c].kr();a.jl=!1}};e.prototype.cp=function(a,c,b,f){var m,g,d=a?1!==a.Qc||1!==a.Rc:!1;if(c.M)for(a=0,m=c.gh.length;a<m;++a)g=c.gh[a],d||g.kl?Ca(f,g.k):(this.Cv(g),g.kj.nn(b,f));else d||c.kl?Ca(f,c.k):(this.Cv(c),c.kj.nn(b,f))};e.prototype.Ys=function(a,c,b,f){var m,g;m=0;for(g=c.length;m<g;++m)this.cp(a,c[m],b,f)};e.prototype.tA=function(a,c,b){var f=this.hv;
f&&this.Ys(a,f.Om,c,b)};e.prototype.mA=function(a,c,b){var f=this.xt;f&&this.Ys(a,f.Om,c,b)};e.prototype.Oi=function(a,c,b,f){var m=a.ca(),g,d,l,t,r=this.kb().sb.rd,h,e,k;if(m.ka)for(f||(m.ka=!1,U(m.k)),g=0,t=a.k.length;g<t;g++)if(l=a.k[g],l.Ia(),h=l.u.Eb(c,b,!0),e=l.u.Eb(c,b,!1),l.qc(h,e)){if(f)return!1;m.k.push(l)}else r&&m.la.push(l);else{d=0;k=r?m.la:m.k;g=0;for(t=k.length;g<t;g++)if(l=k[g],l.Ia(),h=l.u.Eb(c,b,!0),e=l.u.Eb(c,b,!1),l.qc(h,e)){if(f)return!1;r?m.k.push(l):(m.k[d]=m.k[g],d++)}f||
(k.length=d)}a.Td();return f?!0:m.op()};e.prototype.nc=function(a,c){if(!(a&&c&&a!==c&&a.zd&&c.zd))return!1;a.Ia();c.Ia();var b=a.u,f=c.u,m,g,d,l,t,r,h,e;if(b===f||b.Qc===f.Qc&&f.Rc===f.Rc&&b.scale===f.scale&&b.q===f.q&&b.xc===f.xc){if(!a.Na.PA(c.Na)||!a.Zb.it(c.Zb)||a.Qi&&c.Qi)return!1;if(a.Qi)return this.nv(a,c);if(c.Qi)return this.nv(c,a);h=a.Ea&&!a.Ea.bi();m=c.Ea&&!c.Ea.bi();if(!h&&!m)return!0;h?(a.Ea.Ag(a.width,a.height,a.q),h=a.Ea):(this.ee.Ji(a.Zb,a.x,a.y,a.width,a.height),h=this.ee);m?(c.Ea.Ag(c.width,
c.height,c.q),e=c.Ea):(this.ee.Ji(c.Zb,c.x,c.y,c.width,c.height),e=this.ee);return h.Fj(e,c.x-a.x,c.y-a.y)}h=a.Ea&&!a.Ea.bi();m=c.Ea&&!c.Ea.bi();h?(a.Ea.Ag(a.width,a.height,a.q),this.ee.Yu(a.Ea)):this.ee.Ji(a.Zb,a.x,a.y,a.width,a.height);h=this.ee;m?(c.Ea.Ag(c.width,c.height,c.q),this.Uq.Yu(c.Ea)):this.Uq.Ji(c.Zb,c.x,c.y,c.width,c.height);e=this.Uq;m=0;for(g=h.gd;m<g;m++)d=2*m,l=d+1,t=h.Pa[d],r=h.Pa[l],h.Pa[d]=b.$a(t+a.x,r+a.y,!0),h.Pa[l]=b.$a(t+a.x,r+a.y,!1);h.Ia();m=0;for(g=e.gd;m<g;m++)d=2*m,l=
d+1,t=e.Pa[d],r=e.Pa[l],e.Pa[d]=f.$a(t+c.x,r+c.y,!0),e.Pa[l]=f.$a(t+c.x,r+c.y,!1);e.Ia();return h.Fj(e,0,0)};var Q=new va;new ua(0,0,0,0);var S=[];e.prototype.nv=function(a,c){var b,f,m,g,d=c.Na,l=a.x,t=a.y;a.gA(d,S);var r=c.Ea&&!c.Ea.bi();b=0;for(f=S.length;b<f;++b)if(m=S[b],g=m.Ga,d.QA(g,l,t)&&(Q.Ki(g),Q.offset(l,t),Q.it(c.Zb)))if(r)if(c.Ea.Ag(c.width,c.height,c.q),m.qf){if(m.qf.Fj(c.Ea,c.x-(l+g.left),c.y-(t+g.top)))return U(S),!0}else{if(this.ee.Ji(Q,0,0,g.right-g.left,g.bottom-g.top),this.ee.Fj(c.Ea,
c.x,c.y))return U(S),!0}else if(m.qf){if(this.ee.Ji(c.Zb,0,0,c.width,c.height),m.qf.Fj(this.ee,-(l+g.left),-(t+g.top)))return U(S),!0}else return U(S),!0;U(S);return!1};e.prototype.dr=function(a,c){if(!c)return!1;var b,f,m,g,d;b=0;for(f=a.bb.length;b<f;b++)if(a.bb[b].behavior instanceof c)return!0;if(!a.M)for(b=0,f=a.Za.length;b<f;b++)for(d=a.Za[b],m=0,g=d.bb.length;m<g;m++)if(d.bb[m].behavior instanceof c)return!0;return!1};e.prototype.er=function(a){return this.dr(a,fc.OC)};e.prototype.fr=function(a){return this.dr(a,
fc.PC)};var E=[];e.prototype.ob=function(a){var c,b,f;a.Ia();this.tA(a.u,a.Na,E);c=0;for(b=E.length;c<b;++c)if(f=E[c],f.N.solidEnabled&&this.nc(a,f))return U(E),f;U(E);return null};var R=[];e.prototype.Ie=function(a,c){var b=null;c&&(b=R,U(b));a.Ia();this.mA(a.u,a.Na,E);var f,m,g;f=0;for(m=E.length;f<m;++f)if(g=E[f],g.N.jumpthruEnabled&&this.nc(a,g))if(c)b.push(g);else return U(E),g;U(E);return b};e.prototype.Hd=function(a,c,b,f,m,g){f=f||50;var d=a.x,l=a.y,t,r=null,h=null;for(t=0;t<f;t++)if(a.x=
d+c*t,a.y=l+b*t,a.F(),!this.nc(a,r)&&((r=this.ob(a))&&(h=r),!r&&(m&&(g?r=this.nc(a,g)?g:null:r=this.Ie(a),r&&(h=r)),!r)))return h&&this.mn(a,c,b,h),!0;a.x=d;a.y=l;a.F();return!1};e.prototype.xq=function(a,c,b,f){f=f||50;var m=a.x,g=a.y,d=null,l=null,t,r,h;for(t=0;t<f;++t)for(r=0;2>r;++r)if(h=2*r-1,a.x=m+c*t*h,a.y=g+b*t*h,a.F(),!this.nc(a,d))if(d=this.ob(a))l=d;else return l&&this.mn(a,c*h,b*h,l),!0;a.x=m;a.y=g;a.F();return!1};e.prototype.mn=function(a,c,b,f){var m=2,g,d=!1;g=!1;for(var l=a.x,t=a.y;16>=
m;)g=1/m,m*=2,a.x+=c*g*(d?1:-1),a.y+=b*g*(d?1:-1),a.F(),this.nc(a,f)?g=d=!0:(g=d=!1,l=a.x,t=a.y);g&&(a.x=l,a.y=t,a.F())};e.prototype.Iu=function(a,c){var b=ja(c)?100:c,f=0,m=a.x,g=a.y,d=0,l=0,t=0,r=this.ob(a);if(!r)return!0;for(;f<=b;){switch(d){case 0:l=0;t=-1;f++;break;case 1:l=1;t=-1;break;case 2:l=1;t=0;break;case 3:t=l=1;break;case 4:l=0;t=1;break;case 5:l=-1;t=1;break;case 6:l=-1;t=0;break;case 7:t=l=-1}d=(d+1)%8;a.x=A(m+l*f);a.y=A(g+t*f);a.F();if(!this.nc(a,r)&&(r=this.ob(a),!r))return!0}a.x=
m;a.y=g;a.F();return!1};e.prototype.rf=function(a,c){a.zd&&c.zd&&this.mh.push([a,c])};e.prototype.uy=function(a,c,b){var f,m,g;f=0;for(m=this.mh.length;f<m;++f){g=this.mh[f];if(g[0]===a)g=g[1];else if(g[1]===a)g=g[0];else continue;if(c.M){if(-1===c.gh.indexOf(c))continue}else if(g.type!==c)continue;-1===b.indexOf(g)&&b.push(g)}};e.prototype.Iy=function(a,c){var b,f,m;b=0;for(f=this.mh.length;b<f;b++)if(m=this.mh[b],m[0]===a&&m[1]===c||m[0]===c&&m[1]===a)return!0;return!1};e.prototype.Fy=function(a,
c,b){var f=a.x,m=a.y,g=pa(10,Sa(c,b,f,m)),d=Ma(c,b,f,m),l=this.ob(a);if(!l)return Ja(d+ra);var t=l,r,h,e,k,n=V(5);for(r=1;36>r;r++)if(h=d-r*n,a.x=c+Math.cos(h)*g,a.y=b+Math.sin(h)*g,a.F(),!this.nc(a,t)&&(t=this.ob(a),!t)){e=h;break}36===r&&(e=Ja(d+ra));t=l;for(r=1;36>r;r++)if(h=d+r*n,a.x=c+Math.cos(h)*g,a.y=b+Math.sin(h)*g,a.F(),!this.nc(a,t)&&(t=this.ob(a),!t)){k=h;break}36===r&&(k=Ja(d+ra));a.x=f;a.y=m;a.F();if(k===e)return k;a=Na(k,e)/2;a=Qa(k,e)?Ja(e+a+ra):Ja(k+a);e=Math.cos(d);d=Math.sin(d);
k=Math.cos(a);a=Math.sin(a);c=e*k+d*a;return Ma(0,0,e-2*c*k,d-2*c*a)};var T=-1;e.prototype.trigger=function(a,c,b){if(!this.za)return!1;var f=this.za.Hg;if(!f)return!1;var m=!1,g,d,l;T++;var t=f.No;d=0;for(l=t.length;d<l;++d)g=this.wv(a,c,t[d],b),m=m||g;g=this.wv(a,c,f,b);T--;return m||g};e.prototype.wv=function(a,c,b,f){var m=!1,g,d,l,t;if(c)for(l=this.br(a,c,c.type.name,b,f),m=m||l,t=c.type.Za,g=0,d=t.length;g<d;++g)l=this.br(a,c,t[g].name,b,f),m=m||l;else l=this.br(a,c,"system",b,f),m=m||l;return m};
e.prototype.br=function(a,c,b,f,m){var g,d=!1,l=!1,l="undefined"!==typeof m,t=(l?f.Js:f.xv)[b];if(!t)return d;var r=null;f=0;for(g=t.length;f<g;++f)if(t[f].method==a){r=t[f].rj;break}if(!r)return d;var h;l?h=r[m]:h=r;if(!h)return null;f=0;for(g=h.length;f<g;f++)a=h[f][0],m=h[f][1],l=this.Xz(c,b,a,m),d=d||l;return d};e.prototype.Xz=function(a,c,b,f){var m,g,d=!1;this.cr++;var l=this.kb().sb;l&&this.sk(l.sg);var t=1<this.cr;this.sk(b.sg);t&&this.JB();var r=this.ln(b);r.sb=b;a&&(m=this.types[c].ca(),
m.ka=!1,U(m.k),m.k[0]=a,this.types[c].Td());a=!0;if(b.parent){c=r.lv;for(m=b.parent;m;)c.push(m),m=m.parent;c.reverse();m=0;for(g=c.length;m<g;m++)if(!c[m].WB()){a=!1;break}}a&&(this.Jg++,b.rd?b.VB(f):b.Cb(),d=d||r.Vg);this.gn();t&&this.AB();this.ng(b.sg);l&&this.ng(l.sg);this.$f&&0===this.nd&&0===T&&!this.Ep&&this.oc();this.cr--;return d};e.prototype.Uh=function(){var a=this.kb();return a.sb.Gb[a.rb]};e.prototype.TA=function(){return 0===this.kb().rb};e.prototype.hA=function(){var a=this.kb();return a.sb.wd[a.Lc]};
e.prototype.JB=function(){this.Im++;this.Im>=this.Up.length&&this.Up.push([])};e.prototype.AB=function(){this.Im--};e.prototype.Rs=function(){return this.Up[this.Im]};e.prototype.ln=function(a){this.Ol++;this.Ol>=this.Ro.length&&this.Ro.push(new Sb);var c=this.kb();c.reset(a);return c};e.prototype.gn=function(){this.Ol--};e.prototype.kb=function(){return this.Ro[this.Ol]};e.prototype.KB=function(){this.Km++;this.Km>=this.Wp.length&&this.Wp.push(ba({name:void 0,index:0,Yb:!1}));var a=this.iA();a.name=
void 0;a.index=0;a.Yb=!1;return a};e.prototype.BB=function(){this.Km--};e.prototype.iA=function(){return this.Wp[this.Km]};e.prototype.Ts=function(a,c){for(var b,f,m,g,d,l;c;){b=0;for(f=c.Md.length;b<f;b++)if(l=c.Md[b],l instanceof Tb&&jb(a,l.name))return l;c=c.parent}b=0;for(f=this.Ue.length;b<f;b++)for(d=this.Ue[b],m=0,g=d.Wf.length;m<g;m++)if(l=d.Wf[m],l instanceof Tb&&jb(a,l.name))return l;return null};e.prototype.Vs=function(a){var c,b;c=0;for(b=this.cd.length;c<b;c++)if(this.cd[c].qa===a)return this.cd[c];
return null};e.prototype.jm=function(a){var c,b;c=0;for(b=this.G.length;c<b;c++)if(this.G[c].qa===a)return this.G[c];return null};e.prototype.jA=function(a){var c,b;c=0;for(b=this.Jf.length;c<b;c++)if(this.Jf[c].qa===a)return this.Jf[c];return null};e.prototype.Uy=function(a,c){this.Gk=[a,c];this.Z=!0};e.prototype.JA=function(){var a=this,c=this.Iq,b=this.df,f=this.Dm,m=!1;this.cv&&(m=!0,c="__c2_continuouspreview",this.cv=!1);if(c.length){this.oc();b=this.$B();if(q()&&!this.$c)k(c,b,function(){ha("Saved state to IndexedDB storage ("+
b.length+" bytes)");a.df=b;a.trigger(X.prototype.n.ko,null);b=a.df="";m&&h()},function(f){try{localStorage.setItem("__c2save_"+c,b),ha("Saved state to WebStorage ("+b.length+" bytes)"),a.df=b,a.trigger(X.prototype.n.ko,null),b=a.df="",m&&h()}catch(g){ha("Failed to save game state: "+f+"; "+g),a.trigger(X.prototype.n.Qr,null)}});else try{localStorage.setItem("__c2save_"+c,b),ha("Saved state to WebStorage ("+b.length+" bytes)"),a.df=b,this.trigger(X.prototype.n.ko,null),b=a.df="",m&&h()}catch(g){ha("Error saving to WebStorage: "+
g),a.trigger(X.prototype.n.Qr,null)}this.Dm=this.Iq="";this.Ob=null}if(f.length){if(q()&&!this.$c)n(f,function(c){c?(a.Ob=c,ha("Loaded state from IndexedDB storage ("+a.Ob.length+" bytes)")):(a.Ob=localStorage.getItem("__c2save_"+f)||"",ha("Loaded state from WebStorage ("+a.Ob.length+" bytes)"));a.Ik=!1;a.Ob||(a.Ob=null,a.trigger(X.prototype.n.cl,null))},function(){a.Ob=localStorage.getItem("__c2save_"+f)||"";ha("Loaded state from WebStorage ("+a.Ob.length+" bytes)");a.Ik=!1;a.Ob||(a.Ob=null,a.trigger(X.prototype.n.cl,
null))});else{try{this.Ob=localStorage.getItem("__c2save_"+f)||"",ha("Loaded state from WebStorage ("+this.Ob.length+" bytes)")}catch(d){this.Ob=null}this.Ik=!1;a.Ob||(a.Ob=null,a.trigger(X.prototype.n.cl,null))}this.Iq=this.Dm=""}null!==this.Ob&&(this.oc(),this.eB(this.Ob)?(this.df=this.Ob,this.trigger(X.prototype.n.kx,null),this.df=""):a.trigger(X.prototype.n.cl,null),this.Ob=null)};e.prototype.$B=function(){var c,b,f,m,g,d,l,t={c2save:!0,version:1,rt:{time:this.wb.X,walltime:this.Bf.X,timescale:this.wh,
tickcount:this.fe,execcount:this.Jg,next_uid:this.ik,running_layout:this.za.qa,start_time_offset:Date.now()-this.Kn},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};c=0;for(b=this.G.length;c<b;c++)if(g=this.G[c],!g.M&&!this.er(g)){d={instances:[]};Ua(g.N)&&(d.ex=a(g.N));f=0;for(m=g.k.length;f<m;f++)d.instances.push(this.Hq(g.k[f]));t.types[g.qa.toString()]=d}c=0;for(b=this.cd.length;c<b;c++)f=this.cd[c],t.layouts[f.qa.toString()]=f.ab();m=t.events.groups;c=0;for(b=this.Jf.length;c<
b;c++)f=this.Jf[c],m[f.qa.toString()]=this.Wh[f.Aj].Ng;b=t.events.cnds;for(l in this.Rf)this.Rf.hasOwnProperty(l)&&(c=this.Rf[l],Ua(c.N)&&(b[l]={ex:a(c.N)}));b=t.events.acts;for(l in this.Hf)this.Hf.hasOwnProperty(l)&&(c=this.Hf[l],Ua(c.N)&&(b[l]={ex:a(c.N)}));b=t.events.vars;for(l in this.Vi)this.Vi.hasOwnProperty(l)&&(c=this.Vi[l],c.ym||c.parent&&!c.Nj||(b[l]=c.data));t.system=this.He.ab();return JSON.stringify(t)};e.prototype.Ku=function(){var a,c,b,f,m,g;this.nf={};a=0;for(c=this.G.length;a<c;a++)if(b=
this.G[a],!b.M)for(f=0,m=b.k.length;f<m;f++)g=b.k[f],this.nf[g.uid.toString()]=g};e.prototype.eB=function(a){var c;try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||1<c.version)return!1;this.Ij=!0;a=c.rt;this.wb.reset();this.wb.X=a.time;this.Bf.reset();this.Bf.X=a.walltime||0;this.wh=a.timescale;this.fe=a.tickcount;this.Jg=a.execcount;this.Kn=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.za.qa)if(f=this.Vs(f))this.Fs(f);else return;var m,g,d,l,t,r,h;r=c.types;for(g in r)if(r.hasOwnProperty(g)&&
(l=this.jm(parseInt(g,10)))&&!l.M&&!this.er(l)){r[g].ex?l.N=r[g].ex:Va(l.N);t=l.k;d=r[g].instances;f=0;for(m=qa(t.length,d.length);f<m;f++)this.Em(t[f],d[f]);f=d.length;for(m=t.length;f<m;f++)this.ke(t[f]);f=t.length;for(m=d.length;f<m;f++){t=null;if(l.na.bg&&(t=this.za.im(d[f].w.l),!t))continue;t=this.Sf(l.Bd,t,!1,0,0,!0);this.Em(t,d[f])}l.Ni=!0}this.oc();this.Ku();m=c.layouts;for(g in m)m.hasOwnProperty(g)&&(f=this.Vs(parseInt(g,10)))&&f.lb(m[g]);m=c.events.groups;for(g in m)m.hasOwnProperty(g)&&
(f=this.jA(parseInt(g,10)))&&this.Wh[f.Aj]&&this.Wh[f.Aj].zk(m[g]);f=c.events.cnds;for(g in this.Rf)this.Rf.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Rf[g].N=f[g].ex:this.Rf[g].N={});f=c.events.acts;for(g in this.Hf)this.Hf.hasOwnProperty(g)&&(f.hasOwnProperty(g)?this.Hf[g].N=f[g].ex:this.Hf[g].N={});f=c.events.vars;for(g in f)f.hasOwnProperty(g)&&this.Vi.hasOwnProperty(g)&&(this.Vi[g].data=f[g]);this.ik=a.next_uid;this.Ij=!1;f=0;for(m=this.Vl.length;f<m;++f)t=this.Vl[f],this.trigger(Object.getPrototypeOf(t.type.na).n.Bh,
t);U(this.Vl);this.He.lb(c.system);f=0;for(m=this.G.length;f<m;f++)if(l=this.G[f],!l.M&&!this.er(l))for(c=0,g=l.k.length;c<g;c++){t=l.k[c];if(l.gc)for(r=t.zj(),U(t.siblings),a=0,d=l.Xc.length;a<d;a++)h=l.Xc[a],l!==h&&t.siblings.push(h.k[r]);t.Qd&&t.Qd();if(t.W)for(a=0,d=t.W.length;a<d;a++)r=t.W[a],r.Qd&&r.Qd()}return this.Z=!0};e.prototype.Hq=function(c,b){var f,m,g,d,l;d=c.type;g=d.na;var t={};b?t.c2=!0:t.uid=c.uid;Ua(c.N)&&(t.ex=a(c.N));if(c.Mb&&c.Mb.length)for(t.ivs={},f=0,m=c.Mb.length;f<m;f++)t.ivs[c.type.yp[f].toString()]=
c.Mb[f];if(g.bg){g={x:c.x,y:c.y,w:c.width,h:c.height,l:c.u.qa,zi:c.ue()};0!==c.q&&(g.a=c.q);1!==c.opacity&&(g.o=c.opacity);.5!==c.Ac&&(g.hX=c.Ac);.5!==c.Bc&&(g.hY=c.Bc);0!==c.pc&&(g.bm=c.pc);c.visible||(g.v=c.visible);c.zd||(g.ce=c.zd);-1!==c.hk&&(g.mts=c.hk);if(d.ba.length)for(g.fx=[],f=0,m=d.ba.length;f<m;f++)l=d.ba[f],g.fx.push({name:l.name,active:c.Gf[l.index],params:c.cb[l.index]});t.w=g}if(c.W&&c.W.length)for(t.behs={},f=0,m=c.W.length;f<m;f++)d=c.W[f],d.ab&&(t.behs[d.type.qa.toString()]=d.ab());
c.ab&&(t.data=c.ab());return t};e.prototype.lA=function(a,c){var b,f;b=0;for(f=a.yp.length;b<f;b++)if(a.yp[b]===c)return b;return-1};e.prototype.fA=function(a,c){var b,f;b=0;for(f=a.W.length;b<f;b++)if(a.W[b].type.qa===c)return b;return-1};e.prototype.Em=function(a,c,b){var f,m,g,d,l;l=a.type;var t=l.na;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.N=c.ex:Va(a.N);if(m=c.ivs)for(f in m)m.hasOwnProperty(f)&&(g=this.lA(l,parseInt(f,10)),0>g||g>=a.Mb.length||(d=m[f],null===d&&(d=NaN),a.Mb[g]=d));if(t.bg){g=
c.w;a.u.qa!==g.l&&(m=a.u,a.u=this.za.im(g.l),a.u?(m.Gi(a,!0),a.u.gj(a,!0),a.F(),a.u.Bk(0)):(a.u=m,b||this.ke(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.je=g.zi;a.q=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Ac=g.hasOwnProperty("hX")?g.hX:.5;a.Bc=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.zd=g.hasOwnProperty("ce")?g.ce:!0;a.hk=g.hasOwnProperty("mts")?g.mts:-1;a.pc=g.hasOwnProperty("bm")?g.bm:0;a.lj=gb(a.pc);this.K&&hb(a,a.pc,this.K);a.F();
if(g.hasOwnProperty("fx"))for(b=0,m=g.fx.length;b<m;b++)d=l.ep(g.fx[b].name),0>d||(a.Gf[d]=g.fx[b].active,a.cb[d]=g.fx[b].params);a.ie()}if(l=c.behs)for(f in l)l.hasOwnProperty(f)&&(b=this.fA(a,parseInt(f,10)),0>b||a.W[b].lb(l[f]));c.data&&a.lb(c.data)};e.prototype.Ks=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};e.prototype.Yz=function(a,c){this.Ks("data.js",function(b){var f=new FileReader;f.onload=function(c){a(c.target.result)};
f.onerror=c;f.readAsText(b)},c)};var H=[],C=0;e.prototype.aq=function(){if(H.length&&!(8<=C)){C++;var a=H.shift();this.Wy(a.filename,a.iC,a.uz)}};e.prototype.Ls=function(a,c,b){var f=this;H.push({filename:a,iC:function(a){C--;f.aq();c(a)},uz:function(a){C--;f.aq();b(a)}});this.aq()};e.prototype.Wy=function(a,c,b){this.Ks(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};e.prototype.Zz=function(a,c,b){var f="",g=a.toLowerCase(),m=g.substr(g.length-
4),g=g.substr(g.length-5);".mp4"===m?f="video/mp4":".webm"===g?f="video/webm":".m4a"===m?f="audio/mp4":".mp3"===m&&(f="audio/mpeg");this.Ls(a,function(a){a=URL.createObjectURL(new Blob([a],{type:f}));c(a)},b)};e.prototype.RA=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.Tu=function(a,c){this.wm&&!this.RA(c)?this.Zz(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.xn=function(a,c){"undefined"!==
typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Ub=function(a){return new e(document.getElementById(a))};Vb=function(a,c){return new e({dc:!0,width:a,height:c})};window.cr_createRuntime=Ub;window.cr_createDCRuntime=Vb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ne=!0;document.body.appendChild(a);a=new e(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 e(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,p){var q=window.cr_getC2Runtime();q&&q.Uy(e,p)};window.cr_sizeCanvas=function(e,p){if(0!==e&&0!==p){var q=window.cr_getC2Runtime();q&&q.setSize(e,p)}};window.cr_setSuspended=function(e){var p=window.cr_getC2Runtime();p&&p.setSuspended(e)};
(function(){function e(a,b){this.b=a;this.Hg=null;this.scrollX=this.b.Ab/2;this.scrollY=this.b.zb/2;this.scale=1;this.q=0;this.Rh=!0;this.name=b[0];this.uB=b[1];this.tB=b[2];this.width=b[1];this.height=b[2];this.zv=b[3];this.av=b[4];this.qa=b[5];var d=b[6],g,h;this.da=[];this.Ej=[];g=0;for(h=d.length;g<h;g++){var e=new Wb(this,d[g]);e.gu=g;this.da.push(e)}d=b[7];this.ag=[];g=0;for(h=d.length;g<h;g++){var e=d[g],l=this.b.G[e[1]];l.Bd||(l.Bd=e);this.ag.push(e);-1===this.Ej.indexOf(l)&&this.Ej.push(l)}this.ba=
[];this.Ca=[];this.tf=!0;this.cb=[];g=0;for(h=b[8].length;g<h;g++)this.ba.push({id:b[8][g][0],name:b[8][g][1],Db:-1,Gd:!1,Wa:!0,index:g}),this.cb.push(b[8][g][2].slice(0));this.ie();this.pg=new ua(0,0,1,1);this.Aq=new ua(0,0,1,1);this.mg={}}function p(a,b){return a.je-b.je}function q(a,b){this.xb=a;this.b=a.b;this.k=[];this.scale=1;this.q=0;this.Te=!1;this.xf=new ua(0,0,0,0);this.uv=new va;this.Aa=this.ta=this.Ba=this.ra=0;this.yh=!1;this.Df=-1;this.Ho=0;this.name=b[0];this.index=b[1];this.qa=b[2];
this.visible=b[3];this.Ud=b[4];this.he=b[5];this.Qc=b[6];this.Rc=b[7];this.opacity=b[8];this.em=b[9];this.vd=b[10];this.xc=b[11];this.pc=b[12];this.pz=b[13];this.lj="source-over";this.rc=this.wc=0;this.lc=null;this.ef=u();this.de=!0;this.ni=new ua(0,0,-1,-1);this.ac=new ua(0,0,-1,-1);this.vd&&(this.lc=new fb(this.b.Ab,this.b.zb));this.Be=!1;var d=b[14],g,h;this.jv=[];this.ld=[];this.nj=[];g=0;for(h=d.length;g<h;g++){var e=d[g],l=this.b.G[e[1]];l.Bd||(l.Bd=e,l.Qy=this.index);this.ld.push(e);-1===this.xb.Ej.indexOf(l)&&
this.xb.Ej.push(l)}Ba(this.jv,this.ld);this.ba=[];this.Ca=[];this.tf=!0;this.cb=[];g=0;for(h=b[15].length;g<h;g++)this.ba.push({id:b[15][g][0],name:b[15][g][1],Db:-1,Gd:!1,Wa:!0,index:g}),this.cb.push(b[15][g][2].slice(0));this.ie();this.pg=new ua(0,0,1,1);this.Aq=new ua(0,0,1,1)}function u(){return a.length?a.pop():[]}function k(c){U(c);a.push(c)}e.prototype.ZB=function(a){var b=a.type.qa.toString();this.mg.hasOwnProperty(b)||(this.mg[b]=[]);this.mg[b].push(this.b.Hq(a))};e.prototype.Zs=function(){var a=
this.da[0];return!a.he&&1===a.opacity&&!a.em&&a.visible};e.prototype.ie=function(){U(this.Ca);this.tf=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Wa&&(this.Ca.push(d),d.Gd||(this.tf=!1))};e.prototype.dp=function(a){var b,d,g;b=0;for(d=this.ba.length;b<d;b++)if(g=this.ba[b],g.name===a)return g;return null};var n=[],h=!0;e.prototype.Sq=function(){this.av&&(this.Hg=this.b.So[this.av],this.Hg.hr());this.b.za=this;this.width=this.uB;this.height=this.tB;this.scrollX=this.b.Ab/2;this.scrollY=
this.b.zb/2;var a,b,d,g,e,k,l;a=0;for(d=this.b.G.length;a<d;a++)if(b=this.b.G[a],!b.M)for(e=b.k,b=0,g=e.length;b<g;b++)if(k=e[b],k.u){var m=k.u.gu;m>=this.da.length&&(m=this.da.length-1);k.u=this.da[m];-1===k.u.k.indexOf(k)&&k.u.k.push(k);k.u.yh=!0}if(!h)for(a=0,d=this.da.length;a<d;++a)this.da[a].k.sort(p);U(n);this.Dy();a=0;for(d=this.da.length;a<d;a++)k=this.da[a],k.Oy(),k.Zn();e=!1;if(!this.Rh){for(l in this.mg)if(this.mg.hasOwnProperty(l)&&(b=this.b.jm(parseInt(l,10)))&&!b.M&&this.b.fr(b)){g=
this.mg[l];a=0;for(d=g.length;a<d;a++){k=null;if(b.na.bg&&(k=this.im(g[a].w.l),!k))continue;k=this.b.Sf(b.Bd,k,!1,0,0,!0);this.b.Em(k,g[a]);e=!0;n.push(k)}U(g)}a=0;for(d=this.da.length;a<d;a++)this.da[a].k.sort(p),this.da[a].yh=!0}e&&(this.b.oc(),this.b.Ku());for(a=0;a<n.length;a++)if(k=n[a],k.type.gc)for(d=k.zj(),b=0,g=k.type.Xc.length;b<g;b++)l=k.type.Xc[b],k.type!==l&&(l.k.length>d?k.siblings.push(l.k[d]):l.Bd&&(e=this.b.Sf(l.Bd,k.u,!0,k.x,k.y,!0),this.b.oc(),l.Xn(),k.siblings.push(e),n.push(e)));
a=0;for(d=this.ag.length;a<d;a++)k=this.ag[a],b=this.b.G[k[1]],b.gc||this.b.Sf(this.ag[a],null,!0);this.b.Xd=null;this.b.oc();if(this.b.Qa&&!this.b.Sa)for(a=0,d=this.b.G.length;a<d;a++)l=this.b.G[a],!l.M&&l.k.length&&l.Ei&&l.Ei(this.b.Qa);if(this.b.Ij)Ba(this.b.Vl,n);else for(a=0,d=n.length;a<d;a++)k=n[a],this.b.trigger(Object.getPrototypeOf(k.type.na).n.Bh,k);U(n);this.b.Ij||this.b.trigger(X.prototype.n.Kr,null);this.Rh=!1};e.prototype.Ny=function(){var a,b,d,g,h;b=a=0;for(d=this.ag.length;a<d;a++)g=
this.ag[a],h=this.b.G[g[1]],h.global?h.gc||this.b.Sf(g,null,!0):(this.ag[b]=g,b++);Aa(this.ag,b)};e.prototype.hC=function(){this.b.Ij||this.b.trigger(X.prototype.n.jx,null);this.b.Ap=!0;U(this.b.He.Vc);var a,b,d,g,e,k;if(!this.Rh)for(a=0,b=this.da.length;a<b;a++)for(this.da[a].jr(),e=this.da[a].k,d=0,g=e.length;d<g;d++)k=e[d],k.type.global||this.b.fr(k.type)&&this.ZB(k);a=0;for(b=this.da.length;a<b;a++){e=this.da[a].k;d=0;for(g=e.length;d<g;d++)k=e[d],k.type.global||this.b.ke(k);this.b.oc();U(e);
this.da[a].yh=!0}a=0;for(b=this.b.G.length;a<b;a++)if(e=this.b.G[a],!(e.global||e.na.bg||e.na.Fn||e.M)){d=0;for(g=e.k.length;d<g;d++)this.b.ke(e.k[d]);this.b.oc()}h=!1;this.b.Ap=!1};new ua(0,0,0,0);e.prototype.Mc=function(a){var b,d=a,g=!1,h=!this.b.jd;h&&(this.b.Cm||(this.b.Cm=document.createElement("canvas"),b=this.b.Cm,b.width=this.b.V,b.height=this.b.U,this.b.Et=b.getContext("2d"),g=!0),b=this.b.Cm,d=this.b.Et,b.width!==this.b.V&&(b.width=this.b.V,g=!0),b.height!==this.b.U&&(b.height=this.b.U,
g=!0),g&&this.b.xn(d,this.b.Ka));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.b.xs&&!this.Zs()&&d.clearRect(0,0,this.b.V,this.b.U);var e,l,g=0;for(e=this.da.length;g<e;g++)l=this.da[g],l.visible&&0<l.opacity&&11!==l.pc&&(l.k.length||!l.he)?l.Mc(d):l.Zn();h&&a.drawImage(b,0,0,this.b.width,this.b.height)};e.prototype.Uf=function(a){a.Su(!0);this.b.yb||(this.b.yb=a.Yc(this.b.V,this.b.U,this.b.Ka));if(this.b.yb.zg!==this.b.V||this.b.yb.yg!==this.b.U)a.deleteTexture(this.b.yb),this.b.yb=
a.Yc(this.b.V,this.b.U,this.b.Ka);a.Kd(this.b.yb);this.b.jd||a.oh(this.b.V,this.b.U);var b,d;for(b=this.da.length-1;0<=b;--b)d=this.da[b],d.visible&&1===d.opacity&&d.tf&&0===d.pc&&(d.k.length||!d.he)?d.Uf(a):d.Zn();a.Su(!1)};e.prototype.Hb=function(a){var b=0<this.Ca.length||this.b.Ti||!this.b.jd||this.b.Oa;if(b){this.b.yb||(this.b.yb=a.Yc(this.b.V,this.b.U,this.b.Ka));if(this.b.yb.zg!==this.b.V||this.b.yb.yg!==this.b.U)a.deleteTexture(this.b.yb),this.b.yb=a.Yc(this.b.V,this.b.U,this.b.Ka);a.Kd(this.b.yb);
this.b.jd||a.oh(this.b.V,this.b.U)}else this.b.yb&&(a.Kd(null),a.deleteTexture(this.b.yb),this.b.yb=null);this.b.xs&&!this.Zs()&&a.clear(0,0,0,0);var d,g,h;d=0;for(g=this.da.length;d<g;d++)h=this.da[d],h.visible&&0<h.opacity&&(h.k.length||!h.he)?h.Hb(a):h.Zn();b&&(0===this.Ca.length||1===this.Ca.length&&this.b.jd?(1===this.Ca.length?(b=this.Ca[0].index,a.Uc(this.Ca[0].Db),a.Ii(null,1/this.b.V,1/this.b.U,0,0,1,1,this.scale,this.q,0,0,this.b.V/2,this.b.U/2,this.b.wb.X,this.cb[b]),a.kn(this.Ca[0].Db)&&
(this.b.Z=!0)):a.Uc(0),this.b.jd||a.oh(this.b.width,this.b.height),a.Kd(null),a.Qu(!1),a.Fe(1),a.vc(this.b.yb),a.Ou(),a.Jd(),a.ud(),b=this.b.width/2,d=this.b.height/2,a.Fi(-b,d,b,d,b,-d,-b,-d),a.vc(null),a.Qu(!0)):this.Bq(a,null,null,null))};e.prototype.xj=function(){return 0<this.Ca.length||this.b.Ti||!this.b.jd||this.b.Oa?this.b.yb:null};e.prototype.Ws=function(){var a=this.da[0].Nc(),b,d,g;b=1;for(d=this.da.length;b<d;b++)g=this.da[b],(0!==g.Qc||0!==g.Rc)&&g.Nc()<a&&(a=g.Nc());return a};e.prototype.Jq=
function(a){if(!this.zv){var b=1/this.Ws()*this.b.V/2;a>this.width-b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.Z=!0)};e.prototype.Kq=function(a){if(!this.zv){var b=1/this.Ws()*this.b.U/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.Z=!0)};e.prototype.Dy=function(){this.Jq(this.scrollX);this.Kq(this.scrollY)};e.prototype.Bq=function(a,b,d,g){var h=d?d.Ca:b?b.Ca:this.Ca,e=1,l=0,m=0,t=0,k=this.b.V,n=this.b.U;d?(e=d.u.Nc(),l=d.u.Jb(),
m=d.u.ra,t=d.u.ta,k=d.u.Ba,n=d.u.Aa):b&&(e=b.Nc(),l=b.Jb(),m=b.ra,t=b.ta,k=b.Ba,n=b.Aa);var p=this.b.Yo,z,u,q,L,G=0,B=1,Q,S,E=this.b.V,R=this.b.U,T=E/2,H=R/2,C=b?b.pg:this.pg,v=b?b.Aq:this.Aq,M=0,D=0,F=0,N=0,W=E,Z=E,K=R,ea=R,aa=q=0;L=d?d.u.Jb():0;if(d){z=0;for(u=h.length;z<u;z++)q+=a.qA(h[z].Db),aa+=a.rA(h[z].Db);N=d.Na;M=b.$a(N.left,N.top,!0,!0);F=b.$a(N.left,N.top,!1,!0);W=b.$a(N.right,N.bottom,!0,!0);K=b.$a(N.right,N.bottom,!1,!0);0!==L&&(z=b.$a(N.right,N.top,!0,!0),u=b.$a(N.right,N.top,!1,!0),
D=b.$a(N.left,N.bottom,!0,!0),N=b.$a(N.left,N.bottom,!1,!0),L=Math.min(M,W,z,D),W=Math.max(M,W,z,D),M=L,L=Math.min(F,K,u,N),K=Math.max(F,K,u,N),F=L);M-=q;F-=aa;W+=q;K+=aa;v.left=M/E;v.top=1-F/R;v.right=W/E;v.bottom=1-K/R;D=M=A(M);N=F=A(F);Z=W=sa(W);ea=K=sa(K);D-=q;N-=aa;Z+=q;ea+=aa;0>M&&(M=0);0>F&&(F=0);W>E&&(W=E);K>R&&(K=R);0>D&&(D=0);0>N&&(N=0);Z>E&&(Z=E);ea>R&&(ea=R);C.left=M/E;C.top=1-F/R;C.right=W/E;C.bottom=1-K/R}else C.left=v.left=0,C.top=v.top=0,C.right=v.right=1,C.bottom=v.bottom=1;aa=d&&
(a.qk(h[0].Db)||0!==q||0!==aa||1!==d.opacity||d.type.na.bu)||b&&!d&&1!==b.opacity;a.Ou();if(aa){p[G]||(p[G]=a.Yc(E,R,this.b.Ka));if(p[G].zg!==E||p[G].yg!==R)a.deleteTexture(p[G]),p[G]=a.Yc(E,R,this.b.Ka);a.Uc(0);a.Kd(p[G]);S=ea-N;a.clearRect(D,R-N-S,Z-D,S);d?d.Hb(a):(a.vc(this.b.Nb),a.Fe(b.opacity),a.Jd(),a.translate(-T,-H),a.ud(),a.Id(M,K,W,K,W,F,M,F,C));v.left=v.top=0;v.right=v.bottom=1;d&&(L=C.top,C.top=C.bottom,C.bottom=L);G=1;B=0}a.Fe(1);q=h.length-1;var xa=a.wq(h[q].Db)||!b&&!d&&!this.b.jd;
z=L=0;for(u=h.length;z<u;z++){p[G]||(p[G]=a.Yc(E,R,this.b.Ka));if(p[G].zg!==E||p[G].yg!==R)a.deleteTexture(p[G]),p[G]=a.Yc(E,R,this.b.Ka);a.Uc(h[z].Db);L=h[z].index;a.kn(h[z].Db)&&(this.b.Z=!0);0!=z||aa?(a.Ii(g,1/E,1/R,v.left,v.top,v.right,v.bottom,e,l,m,t,(m+k)/2,(t+n)/2,this.b.wb.X,d?d.cb[L]:b?b.cb[L]:this.cb[L]),a.vc(null),z!==q||xa?(a.Kd(p[G]),S=ea-N,Q=R-N-S,a.clearRect(D,Q,Z-D,S)):(d?a.rg(d.wc,d.rc):b&&a.rg(b.wc,b.rc),a.Kd(g)),a.vc(p[B]),a.Jd(),a.translate(-T,-H),a.ud(),a.Id(M,K,W,K,W,F,M,F,
C),z!==q||xa||a.vc(null)):(a.Kd(p[G]),S=ea-N,Q=R-N-S,a.clearRect(D,Q,Z-D,S),d?(d.$b&&d.$b.H?(Q=d.$b.H,B=1/Q.width,Q=1/Q.height):(B=1/d.width,Q=1/d.height),a.Ii(g,B,Q,v.left,v.top,v.right,v.bottom,e,l,m,t,(m+k)/2,(t+n)/2,this.b.wb.X,d.cb[L]),d.Hb(a)):(a.Ii(g,1/E,1/R,0,0,1,1,e,l,m,t,(m+k)/2,(t+n)/2,this.b.wb.X,b?b.cb[L]:this.cb[L]),a.vc(b?this.b.Nb:this.b.yb),a.Jd(),a.translate(-T,-H),a.ud(),a.Id(M,K,W,K,W,F,M,F,C)),v.left=v.top=0,v.right=v.bottom=1,d&&!xa&&(L=K,K=F,F=L));G=0===G?1:0;B=0===G?1:0}xa&&
(a.Uc(0),d?a.rg(d.wc,d.rc):b?a.rg(b.wc,b.rc):this.b.jd||(a.oh(this.b.width,this.b.height),T=this.b.width/2,H=this.b.height/2,F=M=0,W=this.b.width,K=this.b.height),a.Kd(g),a.vc(p[B]),a.Jd(),a.translate(-T,-H),a.ud(),d&&1===h.length&&!aa?a.Id(M,F,W,F,W,K,M,K,C):a.Id(M,K,W,K,W,F,M,F,C),a.vc(null))};e.prototype.im=function(a){var b,d;b=0;for(d=this.da.length;b<d;b++)if(this.da[b].qa===a)return this.da[b];return null};e.prototype.ab=function(){var a,b,d,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,
a:this.q,w:this.width,h:this.height,fv:this.Rh,persist:this.mg,fx:[],layers:{}};a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],g.fx.push({name:d.name,active:d.Wa,params:this.cb[d.index]});a=0;for(b=this.da.length;a<b;a++)d=this.da[a],g.layers[d.qa.toString()]=d.ab();return g};e.prototype.lb=function(a){var b,d,g,h;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.q=a.a;this.width=a.w;this.height=a.h;this.mg=a.persist;"undefined"!==typeof a.fv&&(this.Rh=a.fv);var e=a.fx;b=0;for(d=e.length;b<d;b++)if(g=
this.dp(e[b].name))g.Wa=e[b].active,this.cb[g.index]=e[b].params;this.ie();b=a.layers;for(h in b)b.hasOwnProperty(h)&&(a=this.im(parseInt(h,10)))&&a.lb(b[h])};Fb=e;q.prototype.ie=function(){U(this.Ca);this.tf=!0;var a,b,d;a=0;for(b=this.ba.length;a<b;a++)d=this.ba[a],d.Wa&&(this.Ca.push(d),d.Gd||(this.tf=!1))};q.prototype.dp=function(a){var b,d,g;b=0;for(d=this.ba.length;b<d;b++)if(g=this.ba[b],g.name===a)return g;return null};q.prototype.Oy=function(){var a,b,d,g,h,e;b=a=0;for(d=this.ld.length;a<
d;a++){g=this.ld[a];h=this.b.G[g[1]];e=this.b.fr(h);h=!0;if(!e||this.xb.Rh){g=this.b.Sf(g,this,!0);if(!g)continue;n.push(g);g.type.global&&(h=!1,this.nj.push(g.uid))}h&&(this.ld[b]=this.ld[a],b++)}this.ld.length=b;this.b.oc();!this.b.D&&this.ba.length&&(this.pc=this.pz);this.lj=gb(this.pc);this.b.K&&hb(this,this.pc,this.b.K);this.de=!0};q.prototype.Gi=function(a,b){var d=Da(this.k,a);0>d||(b&&this.vd&&a.Sc&&a.Sc.right>=a.Sc.left&&(a.Ia(),this.lc.update(a,a.Sc,null),a.Sc.set(0,0,-1,-1)),d===this.k.length-
1?this.k.pop():(za(this.k,d),this.Bk(d)),this.de=!0)};q.prototype.gj=function(a,b){a.je=this.k.length;this.k.push(a);b&&this.vd&&a.Sc&&a.F();this.de=!0};q.prototype.GB=function(a){this.k.unshift(a);this.Bk(0)};q.prototype.lB=function(a,b,d){var g=a.ue();b=b.ue();za(this.k,g);g<b&&b--;d&&b++;b===this.k.length?this.k.push(a):this.k.splice(b,0,a);this.Bk(g<b?g:b)};q.prototype.Bk=function(a){-1===this.Df?this.Df=a:a<this.Df&&(this.Df=a);this.de=this.yh=!0};q.prototype.jr=function(){if(this.yh){-1===this.Df&&
(this.Df=0);var a,b,d;if(this.vd)for(a=this.Df,b=this.k.length;a<b;++a)d=this.k[a],d.je=a,this.lc.gB(d.Sc);else for(a=this.Df,b=this.k.length;a<b;++a)this.k[a].je=a;this.yh=!1;this.Df=-1}};q.prototype.Nc=function(a){return this.nA()*(this.b.jd||a?this.b.hj:1)};q.prototype.nA=function(){return(this.scale*this.xb.scale-1)*this.xc+1};q.prototype.Jb=function(){return this.Te?0:Ja(this.xb.q+this.q)};var a=[],b=[],d=[];q.prototype.hp=function(){this.jr();this.lc.nn(this.ra,this.ta,this.Ba,this.Aa,d);if(!d.length)return u();
if(1===d.length){var a=u();Ba(a,d[0]);U(d);return a}for(var f=!0;1<d.length;){for(var a=d,h=void 0,g=void 0,e=void 0,n=void 0,l=void 0,h=0,g=a.length;h<g-1;h+=2){var e=a[h],n=a[h+1],l=u(),m=e,t=n,p=l,q=0,I=0,z=0,w=m.length,x=t.length,L=void 0,G=void 0;for(p.length=w+x;q<w&&I<x;++z)L=m[q],G=t[I],L.je<G.je?(p[z]=L,++q):(p[z]=G,++I);for(;q<w;++q,++z)p[z]=m[q];for(;I<x;++I,++z)p[z]=t[I];f||(k(e),k(n));b.push(l)}1===g%2&&(f?(e=u(),Ba(e,a[g-1]),b.push(e)):b.push(a[g-1]));Ba(a,b);U(b);f=!1}a=d[0];U(d);return a};
q.prototype.Mc=function(a){this.Be=this.em||1!==this.opacity||0!==this.pc;var b=this.b.canvas,d=a,g=!1;this.Be&&(this.b.Bm||(this.b.Bm=document.createElement("canvas"),b=this.b.Bm,b.width=this.b.V,b.height=this.b.U,this.b.Dt=b.getContext("2d"),g=!0),b=this.b.Bm,d=this.b.Dt,b.width!==this.b.V&&(b.width=this.b.V,g=!0),b.height!==this.b.U&&(b.height=this.b.U,g=!0),g&&this.b.xn(d,this.b.Ka),this.he&&d.clearRect(0,0,this.b.V,this.b.U));d.globalAlpha=1;d.globalCompositeOperation="source-over";this.he||
(d.fillStyle="rgb("+this.Ud[0]+","+this.Ud[1]+","+this.Ud[2]+")",d.fillRect(0,0,this.b.V,this.b.U));d.save();this.Te=!0;var g=this.Eb(0,0,!0,!0),h=this.Eb(0,0,!1,!0);this.Te=!1;this.b.uc&&(g=Math.round(g),h=Math.round(h));this.rn(g,h,d);var e=this.Nc();d.scale(e,e);d.translate(-g,-h);this.vd?(this.ac.left=this.lc.Ic(this.ra),this.ac.top=this.lc.Jc(this.ta),this.ac.right=this.lc.Ic(this.Ba),this.ac.bottom=this.lc.Jc(this.Aa),this.de||!this.ac.qj(this.ni)?(k(this.ef),g=this.hp(),this.de=!1,this.ni.Hh(this.ac)):
g=this.ef):g=this.k;for(var l,m=null,h=0,e=g.length;h<e;++h)l=g[h],l!==m&&(this.kz(l,d),m=l);this.vd&&(this.ef=g);d.restore();this.Be&&(a.globalCompositeOperation=this.lj,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};q.prototype.kz=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var d=a.Na;d.right<this.ra||d.bottom<this.ta||d.left>this.Ba||d.top>this.Aa||(b.globalCompositeOperation=a.lj,a.Mc(b))}};q.prototype.Zn=function(){this.Te=!0;var a=this.Eb(0,0,!0,!0),b=this.Eb(0,0,!1,!0);this.Te=
!1;this.b.uc&&(a=Math.round(a),b=Math.round(b));this.rn(a,b,null)};q.prototype.rn=function(a,b,d){var g=this.Nc();this.ra=a;this.ta=b;this.Ba=a+1/g*this.b.V;this.Aa=b+1/g*this.b.U;this.ra>this.Ba&&(a=this.ra,this.ra=this.Ba,this.Ba=a);this.ta>this.Aa&&(a=this.ta,this.ta=this.Aa,this.Aa=a);a=this.Jb();0!==a&&(d&&(d.translate(this.b.V/2,this.b.U/2),d.rotate(-a),d.translate(this.b.V/-2,this.b.U/-2)),this.xf.set(this.ra,this.ta,this.Ba,this.Aa),this.xf.offset((this.ra+this.Ba)/-2,(this.ta+this.Aa)/-2),
this.uv.Zu(this.xf,a),this.uv.qs(this.xf),this.xf.offset((this.ra+this.Ba)/2,(this.ta+this.Aa)/2),this.ra=this.xf.left,this.ta=this.xf.top,this.Ba=this.xf.right,this.Aa=this.xf.bottom)};q.prototype.Uf=function(a){if(this.Be=this.em){this.b.Nb||(this.b.Nb=a.Yc(this.b.V,this.b.U,this.b.Ka));if(this.b.Nb.zg!==this.b.V||this.b.Nb.yg!==this.b.U)a.deleteTexture(this.b.Nb),this.b.Nb=a.Yc(this.b.V,this.b.U,this.b.Ka);a.Kd(this.b.Nb)}this.Te=!0;var b=this.Eb(0,0,!0,!0),d=this.Eb(0,0,!1,!0);this.Te=!1;this.b.uc&&
(b=Math.round(b),d=Math.round(d));this.rn(b,d,null);b=this.Nc();a.Jd();a.scale(b,b);a.sn(-this.Jb());a.translate((this.ra+this.Ba)/-2,(this.ta+this.Aa)/-2);a.ud();this.vd?(this.ac.left=this.lc.Ic(this.ra),this.ac.top=this.lc.Jc(this.ta),this.ac.right=this.lc.Ic(this.Ba),this.ac.bottom=this.lc.Jc(this.Aa),this.de||!this.ac.qj(this.ni)?(k(this.ef),b=this.hp(),this.de=!1,this.ni.Hh(this.ac)):b=this.ef):b=this.k;for(var g,h=null,d=b.length-1;0<=d;--d)g=b[d],g!==h&&(this.mz(b[d],a),h=g);this.vd&&(this.ef=
b);this.he||(this.Ho=this.b.Gg++,a.yn(this.Ho),a.Pu(1,1,1),a.Os(),a.RB())};q.prototype.Hb=function(a){var b=0,d=0;if(this.Be=this.em||1!==this.opacity||0<this.Ca.length||0!==this.pc){this.b.Nb||(this.b.Nb=a.Yc(this.b.V,this.b.U,this.b.Ka));if(this.b.Nb.zg!==this.b.V||this.b.Nb.yg!==this.b.U)a.deleteTexture(this.b.Nb),this.b.Nb=a.Yc(this.b.V,this.b.U,this.b.Ka);a.Kd(this.b.Nb);this.he&&a.clear(0,0,0,0)}this.he||(this.b.Oa?(a.yn(this.Ho),a.Pu(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255),a.Os(),a.dC()):
a.clear(this.Ud[0]/255,this.Ud[1]/255,this.Ud[2]/255,1));this.Te=!0;var g=this.Eb(0,0,!0,!0),b=this.Eb(0,0,!1,!0);this.Te=!1;this.b.uc&&(g=Math.round(g),b=Math.round(b));this.rn(g,b,null);g=this.Nc();a.Jd();a.scale(g,g);a.sn(-this.Jb());a.translate((this.ra+this.Ba)/-2,(this.ta+this.Aa)/-2);a.ud();this.vd?(this.ac.left=this.lc.Ic(this.ra),this.ac.top=this.lc.Jc(this.ta),this.ac.right=this.lc.Ic(this.Ba),this.ac.bottom=this.lc.Jc(this.Aa),this.de||!this.ac.qj(this.ni)?(k(this.ef),b=this.hp(),this.de=
!1,this.ni.Hh(this.ac)):b=this.ef):b=this.k;var h,e,l=null,d=0;for(h=b.length;d<h;++d)e=b[d],e!==l&&(this.lz(b[d],a),l=e);this.vd&&(this.ef=b);this.Be&&(b=this.Ca.length?this.Ca[0].Db:0,d=this.Ca.length?this.Ca[0].index:0,0===this.Ca.length||1===this.Ca.length&&!a.wq(b)&&1===this.opacity?(1===this.Ca.length?(a.Uc(b),a.Ii(this.xb.xj(),1/this.b.V,1/this.b.U,0,0,1,1,g,this.Jb(),this.ra,this.ta,(this.ra+this.Ba)/2,(this.ta+this.Aa)/2,this.b.wb.X,this.cb[d]),a.kn(b)&&(this.b.Z=!0)):a.Uc(0),a.Kd(this.xb.xj()),
a.Fe(this.opacity),a.vc(this.b.Nb),a.rg(this.wc,this.rc),a.Jd(),a.ud(),g=this.b.V/2,b=this.b.U/2,a.Fi(-g,b,g,b,g,-b,-g,-b),a.vc(null)):this.xb.Bq(a,this,null,this.xb.xj()))};q.prototype.lz=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var d=a.Na;d.right<this.ra||d.bottom<this.ta||d.left>this.Ba||d.top>this.Aa||(b.yn(a.Gg),a.Gv?this.nz(a,b):(b.Uc(0),b.rg(a.wc,a.rc),a.Hb(b)))}};q.prototype.mz=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ia();var d=a.Na;d.right<this.ra||d.bottom<
this.ta||d.left>this.Ba||d.top>this.Aa||(a.Gg=this.b.Gg++,0===a.pc&&1===a.opacity&&a.tf&&a.Uf&&(b.yn(a.Gg),a.Uf(b)))}};q.prototype.nz=function(a,b){var d=a.Ca[0].Db,g=a.Ca[0].index,h=this.Nc();if(1!==a.Ca.length||b.wq(d)||b.IB(d)||(a.q||a.u.Jb())&&b.qk(d)||1!==a.opacity||a.type.na.bu)this.xb.Bq(b,this,a,this.Be?this.b.Nb:this.xb.xj()),b.Jd(),b.scale(h,h),b.sn(-this.Jb()),b.translate((this.ra+this.Ba)/-2,(this.ta+this.Aa)/-2),b.ud();else{b.Uc(d);b.rg(a.wc,a.rc);b.kn(d)&&(this.b.Z=!0);var e=0,l=0,m=
0,t=0;b.qk(d)&&(t=a.Na,e=this.$a(t.left,t.top,!0,!0),l=this.$a(t.left,t.top,!1,!0),m=this.$a(t.right,t.bottom,!0,!0),t=this.$a(t.right,t.bottom,!1,!0),e=e/windowWidth,l=1-l/windowHeight,m=m/windowWidth,t=1-t/windowHeight);var k;a.$b&&a.$b.H?(k=a.$b.H,d=1/k.width,k=1/k.height):(d=1/a.width,k=1/a.height);b.Ii(this.Be?this.b.Nb:this.xb.xj(),d,k,e,l,m,t,h,this.Jb(),this.ra,this.ta,(this.ra+this.Ba)/2,(this.ta+this.Aa)/2,this.b.wb.X,a.cb[g]);a.Hb(b)}};q.prototype.Eb=function(a,b,d,g){var h=this.b.devicePixelRatio;
this.b.Sg&&(a*=h,b*=h);var h=this.b.yu,e=this.b.zu,h=(this.xb.scrollX-h)*this.Qc+h,e=(this.xb.scrollY-e)*this.Rc+e,l=h,m=e,t=1/this.Nc(!g);g?(l-=this.b.V*t/2,m-=this.b.U*t/2):(l-=this.b.width*t/2,m-=this.b.height*t/2);l+=a*t;m+=b*t;b=this.Jb();0!==b&&(l-=h,m-=e,a=Math.cos(b),b=Math.sin(b),g=l*a-m*b,m=m*a+l*b,l=g+h,m+=e);return d?l:m};q.prototype.$a=function(a,b,d,g){var h=this.b.yu,e=this.b.zu,l=(this.xb.scrollX-h)*this.Qc+h,m=(this.xb.scrollY-e)*this.Rc+e,e=l,h=m,t=this.Jb();if(0!==t){a-=l;b-=m;
var k=Math.cos(-t),t=Math.sin(-t),n=a*k-b*t;b=b*k+a*t;a=n+l;b+=m}l=1/this.Nc(!g);g?(e-=this.b.V*l/2,h-=this.b.U*l/2):(e-=this.b.width*l/2,h-=this.b.height*l/2);e=(a-e)/l;h=(b-h)/l;a=this.b.devicePixelRatio;this.b.Sg&&!g&&(e/=a,h/=a);return d?e:h};q.prototype.ab=function(){var a,b,d,g={s:this.scale,a:this.q,vl:this.ra,vt:this.ta,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.Ud,t:this.he,px:this.Qc,py:this.Rc,o:this.opacity,zr:this.xc,fx:[],cg:this.nj,instances:[]};a=0;for(b=this.ba.length;a<b;a++)d=
this.ba[a],g.fx.push({name:d.name,active:d.Wa,params:this.cb[d.index]});return g};q.prototype.lb=function(a){var b,d,g;this.scale=a.s;this.q=a.a;this.ra=a.vl;this.ta=a.vt;this.Ba=a.vr;this.Aa=a.vb;this.visible=a.v;this.Ud=a.bc;this.he=a.t;this.Qc=a.px;this.Rc=a.py;this.opacity=a.o;this.xc=a.zr;this.nj=a.cg||[];Ba(this.ld,this.jv);var h=new fa;b=0;for(g=this.nj.length;b<g;++b)h.add(this.nj[b]);d=b=0;for(g=this.ld.length;b<g;++b)h.contains(this.ld[b][2])||(this.ld[d]=this.ld[b],++d);Aa(this.ld,d);d=
a.fx;b=0;for(g=d.length;b<g;b++)if(a=this.dp(d[b].name))a.Wa=d[b].active,this.cb[a.index]=d[b].params;this.ie();this.k.sort(p);this.yh=!0};Wb=q})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function p(a,b){return a.index-b.index}function q(a){var b,c,d,g;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>=y.length&&(y.length=a.length+1);y[a.length]||(y[a.length]=[]);g=y[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function u(a,b){this.b=a;this.xv={};this.Js={};this.pp=!1;this.ct=new fa;this.No=[];this.yo=[];this.name=b[0];var c=b[1];this.Wf=[];var d,g;d=0;for(g=c.length;d<g;d++)this.et(c[d],null,this.Wf)}function k(a){this.type=a;this.k=[];this.la=[];this.ka=!0}function n(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ja=[];this.sg=[];this.$s=this.Sn=this.$q=this.qm=this.group=this.Rq=!1;this.Gb=[];this.wd=[];this.Md=[];this.Aj="";this.Ng=this.qm=this.group=!1;this.zl=null;c[1]&&(this.Aj=c[1][1].toLowerCase(),
this.group=!0,this.qm=!!c[1][0],this.zl=[],this.Ng=this.qm,this.b.Jf.push(this),this.b.Wh[this.Aj]=this);this.rd=c[2];this.qa=c[4];this.group||(this.b.os[this.qa.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Xb(this,d[a]);g.index=a;this.Gb.push(g);this.es(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Yb(this,d[a]),g.index=a,this.wd.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.et(c[a],this,this.Md);this.zm=!1;this.Gb.length&&(this.zm=null==this.Gb[0].type&&
this.Gb[0].cc==X.prototype.n.qr)}function h(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.gc))for(c=0,d=a.Xc.length;c<d;c++)g=a.Xc[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function a(a,b){this.hd=a;this.sheet=a.sheet;this.b=a.b;this.fa=[];this.eb=[];this.N={};this.index=-1;this.ej=!1;this.cc=this.b.Ef(b[1]);this.trigger=0<b[3];this.Is=2===b[3];this.xe=b[4];this.Zh=b[5];this.cB=b[6];this.qa=b[7];this.b.Rf[this.qa.toString()]=this;-1===b[0]?(this.type=null,this.Cb=this.Gq,this.xg=null,this.Wd=
-1):(this.type=this.b.G[b[0]],this.Cb=this.cB?this.XB:this.Fq,b[2]?(this.xg=this.type.hm(b[2]),this.Wd=this.type.$o(b[2])):(this.xg=null,this.Wd=-1),this.hd.parent&&this.hd.parent.zn());this.Is&&(this.Cb=this.YB);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new Zb(this,g[c]);this.fa.push(f)}this.eb.length=g.length}}function b(a,b){this.hd=a;this.sheet=a.sheet;this.b=a.b;this.fa=[];this.eb=[];this.N={};this.index=-1;this.ej=!1;this.cc=this.b.Ef(b[1]);-1===b[0]?(this.type=null,
this.Cb=this.Gq,this.xg=null,this.Wd=-1):(this.type=this.b.G[b[0]],this.Cb=this.Fq,b[2]?(this.xg=this.type.hm(b[2]),this.Wd=this.type.$o(b[2])):(this.xg=null,this.Wd=-1));this.qa=b[3];this.b.Hf[this.qa.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new Zb(this,g[c]);this.fa.push(f)}this.eb.length=g.length}}function d(){l++;J.length===l&&J.push(new $b);return J[l]}function c(a,b){this.Ta=a;this.hd=a.hd;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.re=null;this.uf=
0;this.get=null;this.ys=0;this.xb=null;this.key=0;this.object=null;this.index=0;this.Qk=this.rh=this.Qk=this.rh=this.Ms=this.Ig=this.Rk=null;this.Od=!1;var c,d,g;switch(b[0]){case 0:case 7:this.re=new ac(this,b[1]);this.uf=0;this.get=this.yA;break;case 1:this.re=new ac(this,b[1]);this.uf=0;this.get=this.zA;break;case 5:this.re=new ac(this,b[1]);this.uf=0;this.get=this.DA;break;case 3:case 8:this.ys=b[1];this.get=this.wA;break;case 6:this.xb=this.b.oi[b[1]];this.get=this.EA;break;case 9:this.key=b[1];
this.get=this.CA;break;case 4:this.object=this.b.G[b[1]];this.get=this.FA;this.hd.es(this.object);this.Ta instanceof Yb?this.hd.zn():this.hd.parent&&this.hd.parent.zn();break;case 10:this.index=b[1];a.type&&a.type.M?(this.get=this.AA,this.Od=!0):this.get=this.BA;break;case 11:this.Rk=b[1];this.Ig=null;this.get=this.xA;break;case 2:case 12:this.Ms=b[1];this.get=this.vA;break;case 13:for(this.get=this.GA,this.rh=[],this.Qk=[],c=1,d=b.length;c<d;c++)g=new Zb(this.Ta,b[c]),this.rh.push(g),this.Qk.push(0)}}
function f(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ja=[];this.name=c[1];this.$n=c[2];this.tp=c[3];this.Nj=!!c[4];this.ym=!!c[5];this.qa=c[6];this.b.Vi[this.qa.toString()]=this;this.data=this.tp;this.parent?(this.dh=this.Nj||this.ym?-1:this.b.fC++,this.b.xy.push(this)):(this.dh=-1,this.b.wy.push(this))}function r(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ja=[];this.Dj=null;this.MA=c[1];this.Wa=!0}function g(){this.lv=[];this.reset(null)}var y=[];u.prototype.toString=function(){return this.name};
u.prototype.et=function(a,b,c){switch(a[0]){case 0:a=new bc(this,b,a);if(a.rd)for(c.push(a),c=0,b=a.Gb.length;c<b;c++)a.Gb[c].trigger&&this.gt(a,c);else a.qt()?this.gt(a,0):c.push(a);break;case 1:a=new Tb(this,b,a);c.push(a);break;case 2:a=new cc(this,b,a),c.push(a)}};u.prototype.nb=function(){var a,b;a=0;for(b=this.Wf.length;a<b;a++)this.Wf[a].nb(a<b-1&&this.Wf[a+1].zm)};u.prototype.hr=function(){U(this.No);U(this.yo);this.ds(this);U(this.yo)};u.prototype.ds=function(a){var b,c,d,g,f=a.No,l=a.yo,
h=this.ct.Af();b=0;for(c=h.length;b<c;++b)d=h[b],g=d.Dj,!d.Wa||a===g||-1<l.indexOf(g)||(l.push(g),g.ds(a),f.push(g))};u.prototype.Cb=function(a){this.b.CD||(this.pp=!0,a||(this.b.Ep=!0));var b,c;b=0;for(c=this.Wf.length;b<c;b++){var d=this.Wf[b];d.Cb();this.b.Go(d.Ja);this.b.$f&&this.b.oc()}a||(this.b.Ep=!1)};u.prototype.gt=function(a,b){a.rd||this.b.Wn.push(a);var c,d,g=a.Gb[b],f;g.type?f=g.type.name:f="system";var l=(c=g.Is)?this.Js:this.xv;l[f]||(l[f]=[]);f=l[f];l=g.cc;if(c){if(g.fa.length&&(g=
g.fa[0],1===g.type&&2===g.re.type)){g=g.re.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==l){c=f[c].rj;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:l,rj:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==l){f[c].rj.push([a,b]);return}Y&&l===Y.prototype.n.Ch?f.unshift({method:l,rj:[[a,b]]}):f.push({method:l,rj:[[a,b]]})}};Gb=u;k.prototype.op=function(){return this.ka?this.type.k.length:this.k.length};k.prototype.Zc=function(){return this.ka?this.type.k:
this.k};k.prototype.ok=function(a){a&&(a.b.kb().sb.rd?(this.ka&&(U(this.k),Ba(this.la,a.type.k),this.ka=!1),a=this.la.indexOf(a),-1!==a&&(this.k.push(this.la[a]),this.la.splice(a,1))):(this.ka=!1,U(this.k),this.k[0]=a))};nb=k;window._c2hh_="25393FB06DF78920331A8DB6FB7175B2B6E939D5";n.prototype.nb=function(a){var b,c=this.parent;if(this.group)for(this.Sn=!0;c;){if(!c.group){this.Sn=!1;break}c=c.parent}this.$q=!this.qt()&&(!this.parent||this.parent.group&&this.parent.Sn);this.$s=!!a;this.sg=this.Ja.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ja.length;a<b;a++)this.ty(c.Ja[a]);c=c.parent}this.Ja=q(this.Ja);this.sg=q(this.sg);a=0;for(b=this.Gb.length;a<b;a++)this.Gb[a].nb();a=0;for(b=this.wd.length;a<b;a++)this.wd[a].nb();a=0;for(b=this.Md.length;a<b;a++)this.Md[a].nb(a<b-1&&this.Md[a+1].zm)};n.prototype.zk=function(a){if(this.Ng!==!!a){this.Ng=!!a;var b;a=0;for(b=this.zl.length;a<b;++a)this.zl[a].Bv();0<b&&this.b.za.Hg&&this.b.za.Hg.hr()}};n.prototype.es=function(a){h(a,this.Ja)};n.prototype.ty=function(a){h(a,
this.sg)};n.prototype.zn=function(){this.Rq=!0;this.parent&&this.parent.zn()};n.prototype.qt=function(){return this.Gb.length?this.Gb[0].trigger:!1};n.prototype.Cb=function(){var a,b,c=!1,d=this.b,g=this.b.kb();g.sb=this;var f=this.Gb;this.zm||(g.Po=!1);if(this.rd){0===f.length&&(c=!0);g.rb=0;for(a=f.length;g.rb<a;g.rb++)b=f[g.rb],b.trigger||(b=b.Cb())&&(c=!0);(g.Vg=c)&&this.tn()}else{g.rb=0;for(a=f.length;g.rb<a;g.rb++)if(b=f[g.rb].Cb(),!b){g.Vg=!1;this.$q&&d.$f&&d.oc();return}g.Vg=!0;this.tn()}this.rz(g)};
n.prototype.rz=function(a){a.Vg&&this.$s&&(a.Po=!0);this.$q&&this.b.$f&&this.b.oc()};n.prototype.VB=function(a){this.b.kb().sb=this;this.Gb[a].Cb()&&(this.tn(),this.b.kb().Vg=!0)};n.prototype.tn=function(){var a=this.b.kb(),b;a.Lc=0;for(b=this.wd.length;a.Lc<b;a.Lc++)if(this.wd[a.Lc].Cb())return;this.Nu()};n.prototype.TB=function(){var a=this.b.kb(),b;for(b=this.wd.length;a.Lc<b;a.Lc++)if(this.wd[a.Lc].Cb())return;this.Nu()};n.prototype.Nu=function(){if(this.Md.length){var a,b,c,d,g=this.Md.length-
1;this.b.ln(this);if(this.Rq)for(a=0,b=this.Md.length;a<b;a++)c=this.Md[a],(d=!this.Sn||!this.group&&a<g)&&this.b.tk(c.Ja),c.Cb(),d?this.b.ng(c.Ja):this.b.Go(c.Ja);else for(a=0,b=this.Md.length;a<b;a++)this.Md[a].Cb();this.b.gn()}};n.prototype.WB=function(){var a=this.b.kb();a.sb=this;var b=!1,c;a.rb=0;for(c=this.Gb.length;a.rb<c;a.rb++)if(this.Gb[a.rb].Cb())b=!0;else if(!this.rd)return!1;return this.rd?b:!0};n.prototype.Eq=function(){this.b.Jg++;var a=this.b.kb().rb,b=this.b.ln(this);if(!this.rd)for(b.rb=
a+1,a=this.Gb.length;b.rb<a;b.rb++)if(!this.Gb[b.rb].Cb()){this.b.gn();return}this.tn();this.b.gn()};n.prototype.VA=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.Gb[b].type===a.type)return!1;return!0};bc=n;a.prototype.nb=function(){var a,b,c;a=0;for(b=this.fa.length;a<b;a++)c=this.fa[a],c.nb(),c.Od&&(this.ej=!0)};a.prototype.YB=function(){return!0};a.prototype.Gq=function(){var a,b;a=0;for(b=this.fa.length;a<b;a++)this.eb[a]=this.fa[a].get();return Ta(this.cc.apply(this.b.He,
this.eb),this.Zh)};a.prototype.XB=function(){var a,b;a=0;for(b=this.fa.length;a<b;a++)this.eb[a]=this.fa[a].get();a=this.cc.apply(this.xg?this.xg:this.type,this.eb);this.type.Td();return a};a.prototype.Fq=function(){var a,b,c,d,g,f,l,h,e=this.type,k=e.ca(),r=this.hd.rd&&!this.trigger;b=0;var n=e.gc,p=e.M,u=e.Ve,q=this.Wd,y=-1<q,J=this.ej,C=this.fa,v=this.eb,M=this.Zh,D=this.cc,F;if(J)for(b=0,g=C.length;b<g;++b)f=C[b],f.Od||(v[b]=f.get(0));else for(b=0,g=C.length;b<g;++b)v[b]=C[b].get(0);if(k.ka){U(k.k);
U(k.la);F=e.k;a=0;for(d=F.length;a<d;++a){h=F[a];if(J)for(b=0,g=C.length;b<g;++b)f=C[b],f.Od&&(v[b]=f.get(a));y?(b=0,p&&(b=h.type.Qh[u]),b=D.apply(h.W[q+b],v)):b=D.apply(h,v);(l=Ta(b,M))?k.k.push(h):r&&k.la.push(h)}e.finish&&e.finish(!0);k.ka=!1;e.Td();return k.op()}c=0;F=(l=r&&!this.hd.VA(this))?k.la:k.k;var N=!1;a=0;for(d=F.length;a<d;++a){h=F[a];if(J)for(b=0,g=C.length;b<g;++b)f=C[b],f.Od&&(v[b]=f.get(a));y?(b=0,p&&(b=h.type.Qh[u]),b=D.apply(h.W[q+b],v)):b=D.apply(h,v);if(Ta(b,M))if(N=!0,l){if(k.k.push(h),
n)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ca().k.push(f)}else{F[c]=h;if(n)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ca().k[c]=f;c++}else if(l){F[c]=h;if(n)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ca().la[c]=f;c++}else if(r&&(k.la.push(h),n))for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.ca().la.push(f)}Aa(F,c);if(n)for(p=e.Xc,a=0,d=p.length;a<d;a++)h=p[a].ca(),l?Aa(h.la,c):Aa(h.k,c);c=N;if(l&&!N)for(a=0,d=k.k.length;a<d;a++){h=k.k[a];
if(J)for(b=0,g=C.length;b<g;b++)f=C[b],f.Od&&(v[b]=f.get(a));b=y?D.apply(h.W[q],v):D.apply(h,v);if(Ta(b,M)){N=!0;break}}e.finish&&e.finish(c||r);return r?N:k.op()};Xb=a;b.prototype.nb=function(){var a,b,c;a=0;for(b=this.fa.length;a<b;a++)c=this.fa[a],c.nb(),c.Od&&(this.ej=!0)};b.prototype.Gq=function(){var a=this.b,b,c,d=this.fa,g=this.eb;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.cc.apply(a.He,g)};b.prototype.Fq=function(){var a=this.type,b=this.Wd,c=a.Ve,d=this.ej,g=this.fa,f=this.eb,
l=this.cc,h=a.ca().Zc(),a=a.M,e=-1<b,k,r,n,p,u,q;if(d)for(r=0,p=g.length;r<p;++r)u=g[r],u.Od||(f[r]=u.get(0));else for(r=0,p=g.length;r<p;++r)f[r]=g[r].get(0);k=0;for(n=h.length;k<n;++k){q=h[k];if(d)for(r=0,p=g.length;r<p;++r)u=g[r],u.Od&&(f[r]=u.get(k));e?(r=0,a&&(r=q.type.Qh[c]),l.apply(q.W[b+r],f)):l.apply(q,f)}return!1};Yb=b;var J=[],l=-1;c.prototype.nb=function(){var a,b;if(11===this.type)this.Ig=this.b.Ts(this.Rk,this.hd.parent);else if(13===this.type)for(a=0,b=this.rh.length;a<b;a++)this.rh[a].nb();
this.re&&this.re.nb()};c.prototype.iB=function(a){this.Od||!a||a.na.Fn||(this.Od=!0)};c.prototype.Xu=function(){this.Od=!0};c.prototype.yA=function(a){this.uf=a||0;a=d();this.re.get(a);l--;return a.data};c.prototype.zA=function(a){this.uf=a||0;a=d();this.re.get(a);l--;return la(a.data)?a.data:""};c.prototype.FA=function(){return this.object};c.prototype.wA=function(){return this.ys};c.prototype.DA=function(a){this.uf=a||0;a=d();this.re.get(a);l--;return a.Ub()?this.b.Xe(a.data):this.b.wj(a.data)};
c.prototype.EA=function(){return this.xb};c.prototype.CA=function(){return this.key};c.prototype.BA=function(){return this.index};c.prototype.AA=function(a){a=a||0;var b=this.Ta.type,c=null,c=b.ca(),d=c.Zc();if(d.length)c=d[a%d.length].type;else if(c.la.length)c=c.la[a%c.la.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.Tl[b.Ve]};c.prototype.xA=function(){return this.Ig};c.prototype.vA=function(){return this.Ms};c.prototype.GA=function(){var a,b;a=0;for(b=
this.rh.length;a<b;a++)this.Qk[a]=this.rh[a].get();return this.Qk};Zb=c;f.prototype.nb=function(){this.Ja=q(this.Ja)};f.prototype.ph=function(a){var b=this.b.Rs();this.parent&&!this.Nj&&b?(this.dh>=b.length&&(b.length=this.dh+1),b[this.dh]=a):this.data=a};f.prototype.yj=function(){var a=this.b.Rs();return!this.parent||this.Nj||!a||this.ym?this.data:this.dh>=a.length||"undefined"===typeof a[this.dh]?this.tp:a[this.dh]};f.prototype.Cb=function(){!this.parent||this.Nj||this.ym||this.ph(this.tp)};Tb=
f;r.prototype.toString=function(){return"include:"+this.Dj.toString()};r.prototype.nb=function(){this.Dj=this.b.So[this.MA];this.sheet.ct.add(this);this.Ja=q(this.Ja);for(var a=this.parent;a;)a.group&&a.zl.push(this),a=a.parent;this.Bv()};r.prototype.Cb=function(){this.parent&&this.b.sk(this.b.G);this.Dj.pp||this.Dj.Cb(!0);this.parent&&this.b.ng(this.b.G)};r.prototype.Bv=function(){for(var a=this.parent;a;){if(a.group&&!a.Ng){this.Wa=!1;return}a=a.parent}this.Wa=!0};cc=r;g.prototype.reset=function(a){this.sb=
a;this.Lc=this.rb=0;U(this.lv);this.Po=this.Vg=!1};g.prototype.XA=function(){return this.sb.Rq?!0:this.rb<this.sb.Gb.length-1?!!this.sb.Ja.length:!1};Sb=g})();
(function(){function e(h,a){this.Ta=h;this.b=h.b;this.type=a[0];this.get=[this.Kz,this.Gz,this.Tz,this.Wz,this.vz,this.Uz,this.Oz,this.Dz,this.Nz,this.Sz,this.wz,this.Rz,this.Ez,this.Pz,this.Lz,this.Mz,this.Hz,this.Iz,this.Cz,this.Vz,this.Qz,this.Jz,this.Bz,this.Fz][this.type];var b=null;this.lf=this.fa=this.eb=this.cc=this.Pn=this.second=this.first=this.value=null;this.Wd=-1;this.Zd=null;this.Hv=-1;this.Ig=this.Rk=null;this.Hi=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ac(h,a[1]);break;case 18:this.first=new ac(h,a[1]);this.second=new ac(h,a[2]);this.Pn=new ac(h,a[3]);break;case 19:this.cc=this.b.Ef(a[1]);this.cc!==X.prototype.ea.random&&this.cc!==X.prototype.ea.Jy||this.Ta.Xu();this.eb=[];this.fa=[];3===a.length?(b=a[2],this.eb.length=b.length+1):this.eb.length=1;break;case 20:this.lf=this.b.G[a[1]];this.Wd=-1;this.cc=this.b.Ef(a[2]);this.Hi=a[3];qc&&this.cc===qc.prototype.ea.Rv&&this.Ta.Xu();a[4]?this.Zd=new ac(h,a[4]):this.Zd=null;this.eb=[];this.fa=[];6===
a.length?(b=a[5],this.eb.length=b.length+1):this.eb.length=1;break;case 21:this.lf=this.b.G[a[1]];this.Hi=a[2];a[3]?this.Zd=new ac(h,a[3]):this.Zd=null;this.Hv=a[4];break;case 22:this.lf=this.b.G[a[1]];this.lf.hm(a[2]);this.Wd=this.lf.$o(a[2]);this.cc=this.b.Ef(a[3]);this.Hi=a[4];a[5]?this.Zd=new ac(h,a[5]):this.Zd=null;this.eb=[];this.fa=[];7===a.length?(b=a[6],this.eb.length=b.length+1):this.eb.length=1;break;case 23:this.Rk=a[1],this.Ig=null}this.Ta.iB(this.lf);4<=this.type&&17>=this.type&&(this.first=
new ac(h,a[1]),this.second=new ac(h,a[2]));if(b){var d,c;d=0;for(c=b.length;d<c;d++)this.fa.push(new ac(h,b[d]))}}function p(){++n;k.length===n&&k.push(new $b);return k[n]}function q(h,a,b){var d,c;d=0;for(c=h.length;d<c;++d)h[d].get(b),a[d+1]=b.data}function u(h,a){this.type=h||dc.Ah;this.data=a||0;this.ih=null;this.type==dc.Ah&&(this.data=Math.floor(this.data))}e.prototype.nb=function(){23===this.type&&(this.Ig=this.Ta.b.Ts(this.Rk,this.Ta.hd.parent));this.first&&this.first.nb();this.second&&this.second.nb();
this.Pn&&this.Pn.nb();this.Zd&&this.Zd.nb();if(this.fa){var h,a;h=0;for(a=this.fa.length;h<a;h++)this.fa[h].nb()}};var k=[],n=-1;e.prototype.Vz=function(h){var a=this.fa,b=this.eb;b[0]=h;h=p();q(a,b,h);--n;this.cc.apply(this.b.He,b)};e.prototype.Qz=function(h){var a=this.lf,b=this.eb,d=this.fa,c=this.Zd,f=this.cc,e=this.Ta.uf,g=a.ca(),k=g.Zc();if(!k.length)if(g.la.length)k=g.la;else{this.Hi?h.Fc(""):h.La(0);return}b[0]=h;h.ih=a;h=p();q(d,b,h);c&&(c.get(h),h.Ub()&&(e=h.data,k=a.k));--n;a=k.length;
if(e>=a||e<=-a)e%=a;0>e&&(e+=a);f.apply(k[e],b)};e.prototype.Bz=function(h){var a=this.lf,b=this.eb,d=this.fa,c=this.Zd,f=this.Wd,e=this.cc,g=this.Ta.uf,k=a.ca(),u=k.Zc();if(!u.length)if(k.la.length)u=k.la;else{this.Hi?h.Fc(""):h.La(0);return}b[0]=h;h.ih=a;h=p();q(d,b,h);c&&(c.get(h),h.Ub()&&(g=h.data,u=a.k));--n;d=u.length;if(g>=d||g<=-d)g%=d;0>g&&(g+=d);g=u[g];u=0;a.M&&(u=g.type.Qh[a.Ve]);e.apply(g.W[f+u],b)};e.prototype.Jz=function(h){var a=this.Zd,b=this.lf,d=this.Hv,c=this.Ta.uf,f=b.ca(),e=f.Zc();
if(!e.length)if(f.la.length)e=f.la;else{this.Hi?h.Fc(""):h.La(0);return}if(a){f=p();a.get(f);if(f.Ub()){c=f.data;e=b.k;0!==e.length&&(c%=e.length,0>c&&(c+=e.length));c=b.fp(c);b=c.Mb[d];la(b)?h.Fc(b):h.O(b);--n;return}--n}a=e.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=e[c];e=0;b.M&&(e=c.type.Tl[b.Ve]);b=c.Mb[d+e];la(b)?h.Fc(b):h.O(b)};e.prototype.Kz=function(h){h.type=dc.Ah;h.data=this.value};e.prototype.Gz=function(h){h.type=dc.zh;h.data=this.value};e.prototype.Tz=function(h){h.type=dc.String;h.data=
this.value};e.prototype.Wz=function(h){this.first.get(h);h.Ub()&&(h.data=-h.data)};e.prototype.vz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data+=a.data,a.ci()&&h.ri());--n};e.prototype.Uz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data-=a.data,a.ci()&&h.ri());--n};e.prototype.Oz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data*=a.data,a.ci()&&h.ri());--n};e.prototype.Dz=function(h){this.first.get(h);
var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data/=a.data,h.ri());--n};e.prototype.Nz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data%=a.data,a.ci()&&h.ri());--n};e.prototype.Sz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data=Math.pow(h.data,a.data),a.ci()&&h.ri());--n};e.prototype.wz=function(h){this.first.get(h);var a=p();this.second.get(a);a.fi()||h.fi()?this.yz(h,a):this.xz(h,a);--n};e.prototype.yz=function(h,a){h.fi()&&
a.fi()?this.Az(h,a):this.zz(h,a)};e.prototype.Az=function(h,a){h.data+=a.data};e.prototype.zz=function(h,a){h.fi()?h.data+=(Math.round(1E10*a.data)/1E10).toString():h.Fc(h.data.toString()+a.data)};e.prototype.xz=function(h,a){h.La(h.data&&a.data?1:0)};e.prototype.Rz=function(h){this.first.get(h);var a=p();this.second.get(a);h.Ub()&&a.Ub()&&(h.data||a.data?h.La(1):h.La(0));--n};e.prototype.Cz=function(h){this.first.get(h);h.data?this.second.get(h):this.Pn.get(h)};e.prototype.Ez=function(h){this.first.get(h);
var a=p();this.second.get(a);h.La(h.data===a.data?1:0);--n};e.prototype.Pz=function(h){this.first.get(h);var a=p();this.second.get(a);h.La(h.data!==a.data?1:0);--n};e.prototype.Lz=function(h){this.first.get(h);var a=p();this.second.get(a);h.La(h.data<a.data?1:0);--n};e.prototype.Mz=function(h){this.first.get(h);var a=p();this.second.get(a);h.La(h.data<=a.data?1:0);--n};e.prototype.Hz=function(h){this.first.get(h);var a=p();this.second.get(a);h.La(h.data>a.data?1:0);--n};e.prototype.Iz=function(h){this.first.get(h);
var a=p();this.second.get(a);h.La(h.data>=a.data?1:0);--n};e.prototype.Fz=function(h){var a=this.Ig.yj();ka(a)?h.O(a):h.Fc(a)};ac=e;u.prototype.ci=function(){return this.type===dc.zh};u.prototype.Ub=function(){return this.type===dc.Ah||this.type===dc.zh};u.prototype.fi=function(){return this.type===dc.String};u.prototype.ri=function(){this.ci()||(this.fi()&&(this.data=parseFloat(this.data)),this.type=dc.zh)};u.prototype.La=function(h){this.type=dc.Ah;this.data=Math.floor(h)};u.prototype.O=function(h){this.type=
dc.zh;this.data=h};u.prototype.Fc=function(h){this.type=dc.String;this.data=h};u.prototype.An=function(h){ka(h)?(this.type=dc.zh,this.data=h):la(h)?(this.type=dc.String,this.data=h.toString()):(this.type=dc.Ah,this.data=0)};$b=u;dc={Ah:0,zh:1,String:2}})();function X(e){this.b=e;this.Vc=[]}
X.prototype.ab=function(){var e={},p,q,u,k,n,h,a,b;e.waits=[];var d=e.waits,c;p=0;for(q=this.Vc.length;p<q;p++){h=this.Vc[p];c={t:h.time,st:h.dv,s:h.Qq,ev:h.Oh.qa,sm:[],sols:{}};h.Oh.wd[h.Lc]&&(c.act=h.Oh.wd[h.Lc].qa);u=0;for(k=h.Ja.length;u<k;u++)c.sm.push(h.Ja[u].qa);for(n in h.Gc)if(h.Gc.hasOwnProperty(n)){a=this.b.G[parseInt(n,10)];b={sa:h.Gc[n].un,insts:[]};u=0;for(k=h.Gc[n].Ze.length;u<k;u++)b.insts.push(h.Gc[n].Ze[u].uid);c.sols[a.qa.toString()]=b}d.push(c)}return e};
X.prototype.lb=function(e){e=e.waits;var p,q,u,k,n,h,a,b,d,c,f;U(this.Vc);p=0;for(q=e.length;p<q;p++)if(h=e[p],b=this.b.os[h.ev.toString()]){d=-1;u=0;for(k=b.wd.length;u<k;u++)if(b.wd[u].qa===h.act){d=u;break}if(-1!==d){a={Gc:{},Ja:[],Oo:!1};a.time=h.t;a.dv=h.st||"";a.Qq=!!h.s;a.Oh=b;a.Lc=d;u=0;for(k=h.sm.length;u<k;u++)(b=this.b.jm(h.sm[u]))&&a.Ja.push(b);for(n in h.sols)if(h.sols.hasOwnProperty(n)&&(b=this.b.jm(parseInt(n,10)))){d=h.sols[n];c={un:d.sa,Ze:[]};u=0;for(k=d.insts.length;u<k;u++)(f=
this.b.Mg(d.insts[u]))&&c.Ze.push(f);a.Gc[b.index.toString()]=c}this.Vc.push(a)}}};
(function(){function e(){}function p(){}function q(){}var u=X.prototype;e.prototype.iw=function(){return!0};e.prototype.Kr=function(){return!0};e.prototype.jx=function(){return!0};e.prototype.Wv=function(a,d,c){return ec(a,d,c)};var k=[],n=-1;e.prototype.lw=function(a){var d=a.ca();n++;k.length===n&&k.push([]);var c=k[n];Ba(c,d.Zc());var f=this.b.kb(),h=f.sb,g=f.XA(),f=this.b.KB(),e,p,l,m,t,u,q=a.gc;if(g)for(g=0,e=c.length;g<e&&!f.Yb;g++){this.b.tk(h.Ja);m=c[g];d=a.ca();d.ka=!1;U(d.k);d.k[0]=m;if(q)for(p=
0,l=m.siblings.length;p<l;p++)t=m.siblings[p],u=t.type.ca(),u.ka=!1,U(u.k),u.k[0]=t;f.index=g;h.Eq();this.b.ng(h.Ja)}else for(d.ka=!1,U(d.k),g=0,e=c.length;g<e&&!f.Yb;g++){m=c[g];d.k[0]=m;if(q)for(p=0,l=m.siblings.length;p<l;p++)t=m.siblings[p],u=t.type.ca(),u.ka=!1,U(u.k),u.k[0]=t;f.index=g;h.Eq()}U(c);this.b.BB();n--;return!1};e.prototype.gy=function(){var a=this.b.Uh().N;"undefined"===typeof a.TriggerOnce_lastTick&&(a.TriggerOnce_lastTick=-1);var d=a.TriggerOnce_lastTick,c=this.b.fe;a.TriggerOnce_lastTick=
c;return this.b.Np||d!==c-1};e.prototype.hw=function(a){var d=this.b.Uh(),c=d.N.Every_lastTime||0,f=this.b.wb.X;"undefined"===typeof d.N.Every_seconds&&(d.N.Every_seconds=a);var h=d.N.Every_seconds;if(f>=c+h)return d.N.Every_lastTime=c+h,f>=d.N.Every_lastTime+.04&&(d.N.Every_lastTime=f),d.N.Every_seconds=a,!0;f<c-.1&&(d.N.Every_lastTime=f);return!1};e.prototype.$v=function(a,d,c){return ec(a.yj(),d,c)};e.prototype.Bw=function(a){return(a=this.b.Wh[a.toLowerCase()])&&a.Ng};e.prototype.qr=function(){var a=
this.b.kb();return a.Po?!1:!a.Vg};e.prototype.Lr=function(){return!0};e.prototype.Vw=function(){return!0};e.prototype.ko=function(){return!0};e.prototype.Qr=function(){return!0};e.prototype.kx=function(){return!0};e.prototype.cl=function(){return!0};e.prototype.Ov=function(a,d,c){return Na(V(a),V(c))<=V(d)};e.prototype.zw=function(a,d){return Qa(V(a),V(d))};e.prototype.ww=function(a,d,c){a=La(a);d=La(d);c=La(c);return Qa(c,d)?Qa(a,d)&&!Qa(a,c):!(!Qa(a,d)&&Qa(a,c))};u.n=new e;p.prototype.ow=function(a){this.b.dg||
this.b.Xd||(this.b.Xd=a)};p.prototype.Ow=function(a){if(!this.b.dg&&!this.b.Xd){var d=this.b.cd.indexOf(this.b.za);if(!a||0!==d)if(a||d!==this.b.cd.length-1)this.b.Xd=this.b.cd[d+(a?-1:1)]}};p.prototype.ew=function(a,d,c,f){if(d&&a&&(d=this.b.Cl(a,d,c,f))){this.b.nd++;var h;this.b.trigger(Object.getPrototypeOf(a.na).n.Bh,d);if(d.gc)for(c=0,f=d.siblings.length;c<f;c++)h=d.siblings[c],this.b.trigger(Object.getPrototypeOf(h.type.na).n.Bh,h);this.b.nd--;a=a.ca();a.ka=!1;U(a.k);a.k[0]=d;if(d.gc)for(c=
0,f=d.siblings.length;c<f;c++)h=d.siblings[c],a=h.type.ca(),a.ka=!1,U(a.k),a.k[0]=h}};p.prototype.Xx=function(a,d){0===a.$n?ka(d)?a.ph(d):a.ph(parseFloat(d)):1===a.$n&&a.ph(d.toString())};p.prototype.Mv=function(a,d){0===a.$n?ka(d)?a.ph(a.yj()+d):a.ph(a.yj()+parseFloat(d)):1===a.$n&&a.ph(a.yj()+d.toString())};p.prototype.Nx=function(a,d){var c=this.b.Wh[a.toLowerCase()];if(c)switch(d){case 0:c.zk(!1);break;case 1:c.zk(!0);break;case 2:c.zk(!c.Ng)}};var h=[],a=[];p.prototype.iy=function(b){if(!(0>
b)){var d,c,f,e=this.b.kb(),g;h.length?g=h.pop():g={Gc:{},Ja:[]};g.Oo=!1;g.time=this.b.wb.X+b;g.dv="";g.Qq=!1;g.Oh=e.sb;g.Lc=e.Lc+1;b=0;for(d=this.b.G.length;b<d;b++)f=this.b.G[b],c=f.ca(),c.ka&&-1===e.sb.Ja.indexOf(f)||(g.Ja.push(f),f=void 0,a.length?f=a.pop():f={Ze:[]},f.un=!1,f.un=c.ka,Ba(f.Ze,c.k),g.Gc[b.toString()]=f);this.Vc.push(g);return!0}};p.prototype.pw=function(a){if(!this.b.dg&&!this.b.Xd)for(var d in this.b.oi)if(this.b.oi.hasOwnProperty(d)&&jb(d,a)){this.b.Xd=this.b.oi[d];break}};p.prototype.Ex=
function(){if(!this.b.dg&&!this.b.Xd&&this.b.za){this.b.Xd=this.b.za;var a,d,c;a=0;for(d=this.b.Jf.length;a<d;a++)c=this.b.Jf[a],c.zk(c.qm)}};u.C=new p;q.prototype["int"]=function(a,d){la(d)?(a.La(parseInt(d,10)),isNaN(a.data)&&(a.data=0)):a.La(d)};q.prototype["float"]=function(a,d){la(d)?(a.O(parseFloat(d)),isNaN(a.data)&&(a.data=0)):a.O(d)};q.prototype.random=function(a,d,c){void 0===c?a.O(Math.random()*d):a.O(Math.random()*(c-d)+d)};q.prototype.sqrt=function(a,d){a.O(Math.sqrt(d))};q.prototype.abs=
function(a,d){a.O(Math.abs(d))};q.prototype.round=function(a,d){a.La(Math.round(d))};q.prototype.floor=function(a,d){a.La(Math.floor(d))};q.prototype.ceil=function(a,d){a.La(Math.ceil(d))};q.prototype.sin=function(a,d){a.O(Math.sin(V(d)))};q.prototype.cos=function(a,d){a.O(Math.cos(V(d)))};q.prototype.tan=function(a,d){a.O(Math.tan(V(d)))};q.prototype.asin=function(a,d){a.O(Ha(Math.asin(d)))};q.prototype.acos=function(a,d){a.O(Ha(Math.acos(d)))};q.prototype.atan=function(a,d){a.O(Ha(Math.atan(d)))};
q.prototype.exp=function(a,d){a.O(Math.exp(d))};q.prototype.log10=function(a,d){a.O(Math.log(d)/Math.LN10)};q.prototype.max=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var c,f,h;c=2;for(f=arguments.length;c<f;c++)h=arguments[c],"number"===typeof h&&d<h&&(d=h);a.O(d)};q.prototype.min=function(a){var d=arguments[1];"number"!==typeof d&&(d=0);var c,f,h;c=2;for(f=arguments.length;c<f;c++)h=arguments[c],"number"===typeof h&&d>h&&(d=h);a.O(d)};q.prototype.Vf=function(a){a.O(this.b.Vf)};q.prototype.wh=
function(a){a.O(this.b.wh)};q.prototype.time=function(a){a.O(this.b.wb.X)};q.prototype.fe=function(a){a.La(this.b.fe)};q.prototype.Qm=function(a){a.La(this.b.Qm)};q.prototype.Wo=function(a){a.La(this.b.Wo)};q.prototype.q=function(a,d,c,f,h){a.O(Ha(Ma(d,c,f,h)))};q.prototype.left=function(a,d,c){a.Fc(la(d)?d.substr(0,c):"")};q.prototype.right=function(a,d,c){a.Fc(la(d)?d.substr(d.length-c):"")};q.prototype.replace=function(a,d,c,f){la(d)&&la(c)&&la(f)?a.Fc(d.replace(new RegExp(ab(c),"gi"),f)):a.Fc(la(d)?
d:"")};q.prototype.trim=function(a,d){a.Fc(la(d)?d.trim():"")};q.prototype.dB=function(a){this.b.za?a.Fc(this.b.za.name):a.Fc("")};q.prototype.Jy=function(a){var d=A(Math.random()*(arguments.length-1));a.An(arguments[d+1])};q.prototype.Io=function(a){a.O(this.b.Io/1E3)};q.prototype.Gm=function(a){a.O(this.b.Gm)};u.ea=new q;u.UB=function(){var b,d,c,f,e,g,k=this.b.kb();b=0;for(c=this.Vc.length;b<c;b++){f=this.Vc[b];if(-1===f.time){if(!f.Qq)continue}else if(f.time>this.b.wb.X)continue;k.sb=f.Oh;k.Lc=
f.Lc;k.rb=0;for(d in f.Gc)f.Gc.hasOwnProperty(d)&&(e=this.b.G[parseInt(d,10)].ca(),g=f.Gc[d],e.ka=g.un,Ba(e.k,g.Ze),e=g,U(e.Ze),a.push(e));f.Oh.TB();this.b.Go(f.Ja);f.Oo=!0}d=b=0;for(c=this.Vc.length;b<c;b++)f=this.Vc[b],this.Vc[d]=f,f.Oo?(Va(f.Gc),U(f.Ja),h.push(f)):d++;Aa(this.Vc,d)}})();
(function(){mb=function(e,q){var u=e[1],k=e[3],n=e[4],h=e[5],a=e[6],b=e[7],d=e[8];q.n||(q.n={});q.C||(q.C={});q.ea||(q.ea={});var c=q.n,f=q.C,r=q.ea;k&&(c.CC=function(a,b){return ec(this.x,a,b)},c.bw=function(a,b){return ec(this.y,a,b)},c.FC=function(){var a=this.u;this.Ia();var b=this.Na;return!(b.right<a.ra||b.bottom<a.ta||b.left>a.Ba||b.top>a.Aa)},c.GC=function(){this.Ia();var a=this.Na,b=this.b.za;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.RC=function(a,b,c){var d=this.ca(),
f=d.Zc();if(!f.length)return!1;var h=f[0],e=h,k=Sa(h.x,h.y,b,c),n,r,p;n=1;for(r=f.length;n<r;n++)if(h=f[n],p=Sa(h.x,h.y,b,c),0===a&&p<k||1===a&&p>k)k=p,e=h;d.ok(e);return!0},f.dD=function(a){this.x!==a&&(this.x=a,this.F())},f.$x=function(a){this.y!==a&&(this.y=a,this.F())},f.bD=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.F()},f.Ux=function(a,b){var c=a.oA(this);if(c){var d;c.Lg?(d=c.Lg(b,!0),c=c.Lg(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.F()}},f.KC=
function(a){0!==a&&(this.x+=Math.cos(this.q)*a,this.y+=Math.sin(this.q)*a,this.F())},f.JC=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.F())},r.ro=function(a){a.O(this.x)},r.so=function(a){a.O(this.y)},r.Vf=function(a){a.O(this.b.Zf(this))});n&&(c.aw=function(a,b){return ec(this.width,a,b)},c.AC=function(a,b){return ec(this.height,a,b)},f.Wr=function(a){this.width!==a&&(this.width=a,this.F())},f.$C=function(a){this.height!==a&&(this.height=a,this.F())},f.Vx=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.F()},r.jy=function(a){a.O(this.width)},r.rw=function(a){a.O(this.height)},r.xC=function(a){this.Ia();a.O(this.Na.left)},r.zC=function(a){this.Ia();a.O(this.Na.top)},r.yC=function(a){this.Ia();a.O(this.Na.right)},r.wC=function(a){this.Ia();a.O(this.Na.bottom)});h&&(c.Ov=function(a,b){return Na(this.q,V(b))<=V(a)},c.zw=function(a){return Qa(this.q,V(a))},c.ww=function(a,b){var c=La(a),d=La(b),f=Ja(this.q);return Qa(d,c)?Qa(f,c)&&
!Qa(f,d):!(!Qa(f,c)&&Qa(f,d))},f.Tr=function(a){a=V(Ia(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.VC=function(a){0===a||isNaN(a)||(this.q+=V(a),this.q=Ja(this.q),this.F())},f.WC=function(a){0===a||isNaN(a)||(this.q-=V(a),this.q=Ja(this.q),this.F())},f.XC=function(a,b){var c=Oa(this.q,V(b),V(a));isNaN(c)||this.q===c||(this.q=c,this.F())},f.YC=function(a,b,c){a=Oa(this.q,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.q===a||(this.q=a,this.F())},f.cD=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.q===c||(this.q=c,this.F())},r.Nv=function(a){a.O(Ka(this.q))});u||(c.Yv=function(a,b,c){return ec(this.Mb[a],b,c)},c.xw=function(a){return this.Mb[a]},c.SC=function(a,b){var c=this.ca(),d=c.Zc();if(!d.length)return!1;var f=d[0],h=f,e=f.Mb[b],k,n,r;k=1;for(n=d.length;k<n;k++)if(f=d[k],r=f.Mb[b],0===a&&r<e||1===a&&r>e)e=r,h=f;c.ok(h);return!0},c.QC=function(a){var b,c,d,f,h;if(this.b.Uh().Zh){h=this.ca();if(h.ka)for(h.ka=!1,U(h.k),U(h.la),d=this.k,b=0,c=d.length;b<c;b++)f=d[b],
f.uid===a?h.la.push(f):h.k.push(f);else{d=b=0;for(c=h.k.length;b<c;b++)f=h.k[b],h.k[d]=f,f.uid===a?h.la.push(f):d++;Aa(h.k,d)}this.Td();return!!h.k.length}f=this.b.Mg(a);if(!f)return!1;h=this.ca();if(!h.ka&&-1===h.k.indexOf(f))return!1;if(this.M)for(a=f.type.Za,b=0,c=a.length;b<c;b++){if(a[b]===this)return h.ok(f),this.Td(),!0}else if(f.type===this)return h.ok(f),this.Td(),!0;return!1},c.Bh=function(){return!0},c.Br=function(){return!0},f.Ox=function(a,b){var c=this.Mb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):
la(c[a])&&(c[a]=la(b)?b:b.toString())},f.vC=function(a,b){var c=this.Mb;ka(c[a])?c[a]=ka(b)?c[a]+b:c[a]+parseFloat(b):la(c[a])&&(c[a]=la(b)?c[a]+b:c[a]+b.toString())},f.fy=function(a,b){var c=this.Mb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},f.Kx=function(a,b){this.Mb[a]=b?1:0},f.eD=function(a){this.Mb[a]=1-this.Mb[a]},f.gw=function(){this.b.ke(this)},f.Nw||(f.Nw=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Em(this,b,!0);this.Qd&&this.Qd();if(this.W)for(a=0,b=this.W.length;a<
b;++a)c=this.W[a],c.Qd&&c.Qd()}),r.dw=function(a){var b=a.ih.k.length,c,d,f;c=0;for(d=this.b.Yd.length;c<d;c++)f=this.b.Yd[c],a.ih.M?0<=f.type.Za.indexOf(a.ih)&&b++:f.type===a.ih&&b++;a.La(b)},r.UC=function(a){a.La(a.ih.ca().Zc().length)},r.fD=function(a){a.La(this.uid)},r.DC=function(a){a.La(this.zj())},r.Qv||(r.Qv=function(a){a.Fc(JSON.stringify(this.b.Hq(this,!0)))}));a&&(c.Kw=function(){return this.visible},f.Vr=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.Z=!0)},c.BC=function(a,b){return ec(ib(100*
this.opacity),a,b)},f.aD=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.Z=!0)},r.Opacity=function(a){a.O(ib(100*this.opacity))});b&&(c.EC=function(a){return a?this.u===a:!1},c.TC=function(a){var b=this.ca(),c=b.Zc();if(!c.length)return!1;var d=c[0],f=d,h,e;h=1;for(e=c.length;h<e;h++)if(d=c[h],0===a){if(d.u.index>f.u.index||d.u.index===f.u.index&&d.ue()>f.ue())f=d}else if(d.u.index<f.u.index||d.u.index===f.u.index&&d.ue()<f.ue())f=d;b.ok(f);return!0},f.NC=function(){var a=
this.u,b=a.k;b.length&&b[b.length-1]===this||(a.Gi(this,!1),a.gj(this,!1),this.b.Z=!0)},f.LC=function(){var a=this.u,b=a.k;b.length&&b[0]===this||(a.Gi(this,!1),a.GB(this),this.b.Z=!0)},f.MC=function(a){a&&a!=this.u&&(this.u.Gi(this,!0),this.u=a,a.gj(this,!0),this.b.Z=!0)},f.hD=function(a,b){var c=0===a;if(b){var d=b.Us(this);d&&d.uid!==this.uid&&(this.u.index!==d.u.index&&(this.u.Gi(this,!0),this.u=d.u,d.u.gj(this,!0)),this.u.lB(this,d,c),this.b.Z=!0)}},r.IC=function(a){a.La(this.u.gu)},r.HC=function(a){a.Fc(this.u.name)},
r.gD=function(a){a.La(this.ue())});d&&(f.Mx=function(a,b){if(this.b.D){var c=this.type.ep(b);if(!(0>c)){var d=1===a;this.Gf[c]!==d&&(this.Gf[c]=d,this.ie(),this.b.Z=!0)}}},f.ZC=function(a,b,c){if(this.b.D){var d=this.type.ep(a);0>d||(a=this.type.ba[d],d=this.cb[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.D.sA(a.Db,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Wa&&(this.b.Z=!0))))}})};Hb=function(){this.Fo=this.ql=!0;this.type.jl=!0;this.b.Z=!0;var e,q,u=this.Bo;e=0;for(q=u.length;e<q;++e)u[e](this);this.u.vd&&
this.Ia()};Ib=function(e){e&&this.Bo.push(e)};Nb=function(){if(this.ql){var e=this.Na,q=this.Zb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Ac*this.width,-this.Bc*this.height);this.q?(e.offset(-this.x,-this.y),q.Zu(e,this.q),q.offset(this.x,this.y),q.qs(e)):q.Ki(e);e.normalize();this.ql=!1;this.Fv()}};var e=new ua(0,0,0,0);Ob=function(){if(this.u.vd){var p=this.u.lc,q=this.Na;e.set(p.Ic(q.left),p.Jc(q.top),p.Ic(q.right),p.Jc(q.bottom));this.Sc.qj(e)||(this.Sc.right<this.Sc.left?
p.update(this,null,e):p.update(this,this.Sc,e),this.Sc.Hh(e),this.u.de=!0)}};Pb=function(){if(this.Fo&&this.zd){this.Ia();var p=this.type.kj,q=this.Na;e.set(p.Ic(q.left),p.Jc(q.top),p.Ic(q.right),p.Jc(q.bottom));this.yd.qj(e)||(this.yd.right<this.yd.left?p.update(this,null,e):p.update(this,this.yd,e),this.yd.Hh(e),this.Fo=!1)}};Mb=function(e,q){return this.Na.qc(e,q)&&this.Zb.qc(e,q)?this.Qi?this.jC(e,q):this.Ea&&!this.Ea.bi()?(this.Ea.Ag(this.width,this.height,this.q),this.Ea.qc(e-this.x,q-this.y)):
!0:!1};Db=function(){this.type.Xn();return this.Qg};Qb=function(){this.u.jr();return this.je};Rb=function(){U(this.Ca);var e,q,u,k=!0;e=0;for(q=this.Gf.length;e<q;e++)this.Gf[e]&&(u=this.type.ba[e],this.Ca.push(u),u.Gd||(k=!1));this.Gv=!!this.Ca.length;this.tf=k};Eb=function(){return"Inst"+this.Hu};pb=function(e){if(e&&e.gc&&e.type!=this){var q,u,k;q=0;for(u=e.siblings.length;q<u;q++)if(k=e.siblings[q],k.type==this)return k}e=this.ca().Zc();return e.length?e[0]:null};qb=function(e){var q=this.ca().Zc();
return q.length?q[e.zj()%q.length]:null};ob=function(){if(this.Ni&&!this.M){var e,q;e=0;for(q=this.k.length;e<q;e++)this.k[e].Qg=e;var u=e,k=this.b.Yd;e=0;for(q=k.length;e<q;++e)k[e].type===this&&(k[e].Qg=u++);this.Ni=!1}};Bb=function(e){if(e<this.k.length)return this.k[e];e-=this.k.length;var q=this.b.Yd,u,k;u=0;for(k=q.length;u<k;++u)if(q[u].type===this){if(0===e)return q[u];--e}return null};rb=function(){return this.vf[this.oe]};ub=function(){this.oe++;this.oe===this.vf.length?this.vf.push(new nb(this)):
(this.vf[this.oe].ka=!0,U(this.vf[this.oe].la))};vb=function(){this.oe++;this.oe===this.vf.length&&this.vf.push(new nb(this));var e=this.vf[this.oe],q=this.vf[this.oe-1];q.ka?e.ka=!0:(e.ka=!1,Ba(e.k,q.k));U(e.la)};wb=function(){this.oe--};xb=function(e){var q,u,k,n,h,a=0;if(!this.M)for(q=0,u=this.Za.length;q<u;q++)for(h=this.Za[q],k=0,n=h.bb.length;k<n;k++){if(e===h.bb[k].name)return this.N.lastBehIndex=a,h.bb[k];a++}q=0;for(u=this.bb.length;q<u;q++){if(e===this.bb[q].name)return this.N.lastBehIndex=
a,this.bb[q];a++}return null};yb=function(e){return this.hm(e)?this.N.lastBehIndex:-1};zb=function(e){var q,u;q=0;for(u=this.ba.length;q<u;q++)if(this.ba[q].name===e)return q;return-1};Ab=function(){if(this.gc&&!this.M){var e,q,u,k,n,h,a;this.Xn();h=this.ca();var b=h.ka,d=(e=this.b.kb())&&e.sb&&e.sb.rd;e=0;for(q=this.Xc.length;e<q;e++)if(n=this.Xc[e],n!==this&&(n.Xn(),a=n.ca(),a.ka=b,!b)){U(a.k);u=0;for(k=h.k.length;u<k;++u)a.k[u]=n.fp(h.k[u].Qg);if(d)for(U(a.la),u=0,k=h.la.length;u<k;++u)a.la[u]=
n.fp(h.la[u].Qg)}}};Cb=function(){return"Type"+this.qa};ec=function(e,q,u){if("undefined"===typeof e||"undefined"===typeof u)return!1;switch(q){case 0:return e===u;case 1:return e!==u;case 2:return e<u;case 3:return e<=u;case 4:return e>u;case 5:return e>=u;default:return!1}}})();
var mc={replacecolor:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform mediump float rsource;\nuniform mediump float gsource;\nuniform mediump float bsource;\nuniform mediump float rdest;\nuniform mediump float gdest;\nuniform mediump float bdest;\nuniform lowp float tolerance;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp float a = front.a;\nif (a != 0.0)\nfront.rgb /= a;\nlowp float diff = length(front.rgb - vec3(rsource, gsource, bsource) / 255.0);\nif (diff <= tolerance)\n{\nfront.rgb = mix(front.rgb, vec3(rdest, gdest, bdest) / 255.0, 1.0 - diff / tolerance);\n}\nfront.rgb *= a;\ngl_FragColor = front;\n}",Pl:0,
Ql:0,Jo:!1,Gd:!0,zo:!1,fa:[["rsource",0,0],["gsource",0,0],["bsource",0,0],["rdest",0,0],["gdest",0,0],["bdest",0,0],["tolerance",0,1]]}};function rc(e){this.b=e}
(function(){function e(a){-1===sb.indexOf(a)&&sb.push(a)}function p(a){var b=a.A,c;try{c=b.play()}catch(d){e(a);return}c?c.catch(function(){e(a)}):Mc&&!E.ub&&e(a)}function q(){var a,b,c,d;Nc||xa||!v||(u(),"running"===v.state&&(Nc=!0));var f=sb.slice(0);U(sb);if(!Z)for(a=0,b=f.length;a<b;++a)c=f[a],c.Yb||c.ad||(d=c.A.play())&&d.catch(function(){e(c)})}function u(){"suspended"===v.state&&v.resume&&v.resume();if(v.createBuffer){var a=v.createBuffer(1,220,22050),c=v.createBufferSource();c.buffer=a;c.connect(v.destination);
b(c)}}function k(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return ca.hasOwnProperty(a)&&ca[a].length?ca[a][0].kd():v.destination}function h(){return v.createGain?v.createGain():v.createGainNode()}function a(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function b(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function d(a,b,c,d){a.start?a.start(d||0,b):a.noteGrainOn(d||0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}
function f(a,b,c,d,f,g){this.type="filter";this.mb=[a,b,c,d,f,g];this.wa=h();this.aa=h();this.aa.gain.value=g;this.Y=h();this.Y.gain.value=1-g;this.tb=v.createBiquadFilter();this.tb.type="number"===typeof this.tb.type?a:Rc[a];this.tb.frequency.value=b;this.tb.detune&&(this.tb.detune.value=c);this.tb.Q.value=d;this.tb.gain.value=f;this.wa.connect(this.tb);this.wa.connect(this.Y);this.tb.connect(this.aa)}function r(b,c,d){this.type="delay";this.mb=[b,c,d];this.wa=h();this.aa=h();this.aa.gain.value=
d;this.Y=h();this.Y.gain.value=1-d;this.ek=h();this.Cd=a(b);this.Cd.delayTime.value=b;this.Jl=h();this.Jl.gain.value=c;this.wa.connect(this.ek);this.wa.connect(this.Y);this.ek.connect(this.aa);this.ek.connect(this.Cd);this.Cd.connect(this.Jl);this.Jl.connect(this.ek)}function g(a,b,c,d){this.type="convolve";this.mb=[b,c,d];this.wa=h();this.aa=h();this.aa.gain.value=c;this.Y=h();this.Y.gain.value=1-c;this.Bg=v.createConvolver();a&&(this.Bg.normalize=b,this.Bg.buffer=a);this.wa.connect(this.Bg);this.wa.connect(this.Y);
this.Bg.connect(this.aa)}function y(c,d,f,g,l){this.type="flanger";this.mb=[c,d,f,g,l];this.wa=h();this.Y=h();this.Y.gain.value=1-l/2;this.aa=h();this.aa.gain.value=l/2;this.Ul=h();this.Ul.gain.value=g;this.Cd=a(c+d);this.Cd.delayTime.value=c;this.Xb=v.createOscillator();this.Xb.frequency.value=f;this.fd=h();this.fd.gain.value=d;this.wa.connect(this.Cd);this.wa.connect(this.Y);this.Cd.connect(this.aa);this.Cd.connect(this.Ul);this.Ul.connect(this.Cd);this.Xb.connect(this.fd);this.fd.connect(this.Cd.delayTime);
b(this.Xb)}function J(a,c,d,f,g,l){this.type="phaser";this.mb=[a,c,d,f,g,l];this.wa=h();this.Y=h();this.Y.gain.value=1-l/2;this.aa=h();this.aa.gain.value=l/2;this.tb=v.createBiquadFilter();this.tb.type="number"===typeof this.tb.type?7:"allpass";this.tb.frequency.value=a;this.tb.detune&&(this.tb.detune.value=c);this.tb.Q.value=d;this.Xb=v.createOscillator();this.Xb.frequency.value=g;this.fd=h();this.fd.gain.value=f;this.wa.connect(this.tb);this.wa.connect(this.Y);this.tb.connect(this.aa);this.Xb.connect(this.fd);
this.fd.connect(this.tb.frequency);b(this.Xb)}function l(a){this.type="gain";this.mb=[a];this.ya=h();this.ya.gain.value=a}function m(a,c){this.type="tremolo";this.mb=[a,c];this.ya=h();this.ya.gain.value=1-c/2;this.Xb=v.createOscillator();this.Xb.frequency.value=a;this.fd=h();this.fd.gain.value=c/2;this.Xb.connect(this.fd);this.fd.connect(this.ya.gain);b(this.Xb)}function t(a,c){this.type="ringmod";this.mb=[a,c];this.wa=h();this.aa=h();this.aa.gain.value=c;this.Y=h();this.Y.gain.value=1-c;this.yk=
h();this.yk.gain.value=0;this.Xb=v.createOscillator();this.Xb.frequency.value=a;this.Xb.connect(this.yk.gain);b(this.Xb);this.wa.connect(this.yk);this.wa.connect(this.Y);this.yk.connect(this.aa)}function P(a,b,c,d,f){this.type="distortion";this.mb=[a,b,c,d,f];this.wa=h();this.jn=h();this.hn=h();this.aC(c,Math.pow(10,d/20));this.aa=h();this.aa.gain.value=f;this.Y=h();this.Y.gain.value=1-f;this.bo=v.createWaveShaper();this.Hl=new Float32Array(65536);this.dA(a,b);this.bo.Hl=this.Hl;this.wa.connect(this.jn);
this.wa.connect(this.Y);this.jn.connect(this.bo);this.bo.connect(this.hn);this.hn.connect(this.aa)}function O(a,b,c,d,f){this.type="compressor";this.mb=[a,b,c,d,f];this.ya=v.createDynamicsCompressor();try{this.ya.threshold.value=a,this.ya.knee.value=b,this.ya.ratio.value=c,this.ya.attack.value=d,this.ya.release.value=f}catch(g){}}function I(a,b){this.type="analyser";this.mb=[a,b];this.ya=v.createAnalyser();this.ya.fftSize=a;this.ya.smoothingTimeConstant=b;this.bA=new Float32Array(this.ya.frequencyBinCount);
this.bv=new Uint8Array(a);this.mk=0}function z(){this.Fa=null;this.Fm=0}function w(a,b){this.src=a;this.ma=C;this.ve=b;this.il=!1;var c=this;this.si=this.Bi=null;this.Ci=[];this.vn=0;this.nr=this.Sl=this.kv=this.an=!1;1===C&&b&&!tb&&(this.ma=0,this.Bi=h());this.Pe=this.xa=null;var d;switch(this.ma){case 0:this.xa=new Audio;this.xa.crossOrigin="anonymous";this.xa.addEventListener("canplaythrough",function(){c.nr=!0});1===C&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.kv=!0,
this.xa.addEventListener("canplay",function(){!c.si&&c.xa&&(c.si=v.createMediaElementSource(c.xa),c.si.connect(c.Bi))}));this.xa.autoplay=!1;this.xa.yD="auto";this.xa.src=a;break;case 1:E.wm?E.Ls(a,function(a){c.Pe=a;c.Bs()},function(){c.Sl=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Pe=d.response;c.Bs()},d.onerror=function(){c.Sl=!0},d.send());break;case 2:this.xa=!0;break;case 3:this.xa=!0}}function x(a,b){var c=this;this.tag=b;this.Yb=this.te=
!0;this.src=a.src;this.buffer=a;this.ma=C;this.ve=a.ve;this.playbackRate=1;this.Yh=!0;this.ad=this.sd=!1;this.Tc=0;this.Mj=this.di=this.xe=!1;this.volume=1;this.oq=function(a){if(!c.ad&&!c.sd){var b=this;b||(b=a.target);b===c.gl&&(c.Yh=!0,c.Yb=!0,T=c.tag,E.trigger(rc.prototype.n.$k,R))}};this.gl=null;this.ai=1===W&&!this.ve||2===W;this.vi=1;this.startTime=this.ai?E.wb.X:E.Bf.X;this.Bb=this.Ib=null;this.ze=!1;this.hc=null;this.vu=this.uu=this.tu=this.su=this.xu=this.wu=0;this.A=null;var d=!1;1!==this.ma||
0!==this.buffer.ma||this.buffer.kv||(this.ma=0);switch(this.ma){case 0:this.ve?(this.A=a.xa,d=!a.il,a.il=!0):(this.A=new Audio,this.A.crossOrigin="anonymous",this.A.autoplay=!1,this.A.src=a.xa.src,d=!0);d&&this.A.addEventListener("ended",function(){T=c.tag;c.Yb=!0;E.trigger(rc.prototype.n.$k,R)});break;case 1:this.Ib=h();this.Ib.connect(n(b));1===this.buffer.ma?a.xa&&(this.A=v.createBufferSource(),this.A.buffer=a.xa,this.A.connect(this.Ib)):(this.A=this.buffer.xa,this.buffer.Bi.connect(this.Ib),this.buffer.il||
(this.buffer.il=!0,this.buffer.xa.addEventListener("ended",function(){T=c.tag;c.Yb=!0;E.trigger(rc.prototype.n.$k,R)})));break;case 2:this.A=new window.Media(H+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.Yh=!0,c.Yb=!0,T=c.tag,E.trigger(rc.prototype.n.$k,R))});break;case 3:this.A=!0}}function L(a){U(Ga);if(a.length){var b,c,d;b=0;for(c=D.length;b<c;b++)d=D[b],jb(a,d.tag)&&Ga.push(d)}else F&&!F.Pg()&&(U(Ga),Ga[0]=F)}function G(a,b){ca.hasOwnProperty(a)?ca[a].push(b):ca[a]=[b];
var c,d,f,g,l=v.destination;if(ca.hasOwnProperty(a)&&(f=ca[a],f.length))for(l=f[0].kd(),c=0,d=f.length;c<d;c++)g=f[c],c+1===d?g.Ad(v.destination):g.Ad(f[c+1].kd());L(a);c=0;for(d=Ga.length;c<d;c++)Ga[c].NB(l);Pa&&Lb===a&&(Pa.disconnect(),Pa.connect(l))}function B(){}function Q(){}var S=rc.prototype;S.T=function(a){this.na=a;this.b=a.b};S.T.prototype.J=function(){};var E=null,R=null,T="",H="",C=0,v=null,M=[],D=[],F=null,N=!1,W=0,Z=!1,K=1,ea=0,aa=0,xa=!1,Kb=1,Jb=1,Ic=10,Kc=1E4,Lc=1,Pa=null,Lb="",Mc=
!1,sb=[],tb=!1,Nc=!1;document.addEventListener("pointerup",q,!0);document.addEventListener("touchend",q,!0);document.addEventListener("click",q,!0);document.addEventListener("keydown",q,!0);document.addEventListener("gamepadconnected",q,!0);var ca={},Rc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");f.prototype.Ad=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};f.prototype.remove=function(){this.wa.disconnect();this.tb.disconnect();
this.aa.disconnect();this.Y.disconnect()};f.prototype.kd=function(){return this.wa};r.prototype.Ad=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};r.prototype.remove=function(){this.wa.disconnect();this.ek.disconnect();this.Cd.disconnect();this.Jl.disconnect();this.aa.disconnect();this.Y.disconnect()};r.prototype.kd=function(){return this.wa};g.prototype.Ad=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};g.prototype.remove=
function(){this.wa.disconnect();this.Bg.disconnect();this.aa.disconnect();this.Y.disconnect()};g.prototype.kd=function(){return this.wa};y.prototype.Ad=function(a){this.Y.disconnect();this.Y.connect(a);this.aa.disconnect();this.aa.connect(a)};y.prototype.remove=function(){this.wa.disconnect();this.Cd.disconnect();this.Xb.disconnect();this.fd.disconnect();this.Y.disconnect();this.aa.disconnect();this.Ul.disconnect()};y.prototype.kd=function(){return this.wa};J.prototype.Ad=function(a){this.Y.disconnect();
this.Y.connect(a);this.aa.disconnect();this.aa.connect(a)};J.prototype.remove=function(){this.wa.disconnect();this.tb.disconnect();this.Xb.disconnect();this.fd.disconnect();this.Y.disconnect();this.aa.disconnect()};J.prototype.kd=function(){return this.wa};l.prototype.Ad=function(a){this.ya.disconnect();this.ya.connect(a)};l.prototype.remove=function(){this.ya.disconnect()};l.prototype.kd=function(){return this.ya};m.prototype.Ad=function(a){this.ya.disconnect();this.ya.connect(a)};m.prototype.remove=
function(){this.Xb.disconnect();this.fd.disconnect();this.ya.disconnect()};m.prototype.kd=function(){return this.ya};t.prototype.Ad=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};t.prototype.remove=function(){this.Xb.disconnect();this.yk.disconnect();this.wa.disconnect();this.aa.disconnect();this.Y.disconnect()};t.prototype.kd=function(){return this.wa};P.prototype.aC=function(a,b){.01>a&&(a=.01);this.jn.gain.value=a;this.hn.gain.value=Math.pow(1/a,.6)*
b};P.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};P.prototype.dA=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,g=0;32768>g;++g)f=g/32768,f=this.shape(f,c,d),this.Hl[32768+g]=f,this.Hl[32768-g-1]=-f};P.prototype.Ad=function(a){this.aa.disconnect();this.aa.connect(a);this.Y.disconnect();this.Y.connect(a)};P.prototype.remove=function(){this.wa.disconnect();this.jn.disconnect();this.bo.disconnect();this.hn.disconnect();
this.aa.disconnect();this.Y.disconnect()};P.prototype.kd=function(){return this.wa};O.prototype.Ad=function(a){this.ya.disconnect();this.ya.connect(a)};O.prototype.remove=function(){this.ya.disconnect()};O.prototype.kd=function(){return this.ya};I.prototype.Ma=function(){this.ya.getFloatFrequencyData(this.bA);this.ya.getByteTimeDomainData(this.bv);for(var a=this.ya.fftSize,b=0,c=this.mk=0,d=0;b<a;b++)d=(this.bv[b]-128)/128,0>d&&(d=-d),this.mk<d&&(this.mk=d),c+=d*d;this.mk=k(this.mk);k(Math.sqrt(c/
a))};I.prototype.Ad=function(a){this.ya.disconnect();this.ya.connect(a)};I.prototype.remove=function(){this.ya.disconnect()};I.prototype.kd=function(){return this.ya};z.prototype.Ak=function(a){this.Fa=a};z.prototype.om=function(){return!!this.Fa};z.prototype.Ma=function(){};w.prototype.OB=function(){var a,b,c,d;c=a=0;for(b=D.length;a<b;++a)d=D[a],D[c]=d,d.buffer===this?d.stop():++c;D.length=c;this.si&&(this.si.disconnect(),this.si=null);this.Bi&&(this.Bi.disconnect(),this.Bi=null);this.Pe=this.xa=
null};w.prototype.Bs=function(){if(!this.xa&&this.Pe){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.Pe,function(b){a.xa=b;a.Pe=null;var c,d,f;if(ja(a.cn)||Z)ja(a.Al)||(c=a.Al.Bg,c.normalize=a.fu,c.buffer=b);else if(a.Ci.length){c=0;for(d=a.Ci.length;c<d;c++){b=a.Ci[c];f=new x(a,b.ov);f.Nq(!0);if("undefined"!==typeof b.hu&&(b.Fa=E.Mg(b.hu),!b.Fa))continue;if(b.Fa){var g=Ra(b.Fa.x,b.Fa.y,-b.Fa.u.Jb(),ea,aa,!0),l=Ra(b.Fa.x,b.Fa.y,-b.Fa.u.Jb(),ea,aa,!1);f.Mq(g,l,Ha(b.Fa.q-b.Fa.u.Jb()),b.qp,b.dq,
b.hq);f.Ak(b.Fa)}else f.Mq(b.x,b.y,b.ny,b.qp,b.dq,b.hq);f.play(a.Vp,a.mr,a.vn);a.an&&f.pause();D.push(f)}U(a.Ci)}else f=new x(a,a.cn||""),f.play(a.Vp,a.mr,a.vn),a.an&&f.pause(),D.push(f)},function(){a.Sl=!0});else if(this.xa=v.createBuffer(this.Pe,!1),this.Pe=null,ja(this.cn)||Z)ja(this.Al)||(b=this.Al.Bg,b.normalize=this.fu,b.buffer=this.xa);else{var b=new x(this,this.cn);b.play(this.Vp,this.mr,this.vn);this.an&&b.pause();D.push(b)}}};w.prototype.lt=function(){switch(this.ma){case 0:var a=4<=this.xa.readyState;
a&&(this.nr=!0);return a||this.nr;case 1:return!!this.Pe||!!this.xa;case 2:return!0;case 3:return!0}return!1};w.prototype.WA=function(){switch(this.ma){case 0:return this.lt();case 1:return!!this.xa;case 2:return!0;case 3:return!0}return!1};w.prototype.LA=function(){switch(this.ma){case 0:return!!this.xa.error;case 1:return this.Sl}return!1};x.prototype.Pg=function(){switch(this.ma){case 0:return this.A.ended;case 1:return 1===this.buffer.ma?!this.te&&!this.Yb&&this.A.loop||this.ad?!1:this.Yh:this.A.ended;
case 2:return this.Yh;case 3:!0}return!0};x.prototype.Hy=function(){return this.te||this.Yb?!0:this.Pg()};x.prototype.Nq=function(a){1===C&&(!this.ze&&a?this.Ib&&(this.Bb||(this.Bb=v.createPanner(),this.Bb.panningModel="number"===typeof this.Bb.panningModel?Kb:["equalpower","HRTF","soundfield"][Kb],this.Bb.distanceModel="number"===typeof this.Bb.distanceModel?Jb:["linear","inverse","exponential"][Jb],this.Bb.refDistance=Ic,this.Bb.maxDistance=Kc,this.Bb.rolloffFactor=Lc),this.Ib.disconnect(),this.Ib.connect(this.Bb),
this.Bb.connect(n(this.tag)),this.ze=!0):this.ze&&!a&&this.Ib&&(this.Bb.disconnect(),this.Ib.disconnect(),this.Ib.connect(n(this.tag)),this.ze=!1))};x.prototype.Mq=function(a,b,c,d,f,g){this.ze&&1===C&&(this.Bb.setPosition(a,b,0),this.Bb.setOrientation(Math.cos(V(c)),Math.sin(V(c)),0),this.Bb.coneInnerAngle=d,this.Bb.coneOuterAngle=f,this.Bb.coneOuterGain=g,this.wu=a,this.xu=b,this.su=c,this.tu=d,this.uu=f,this.vu=g)};x.prototype.Ak=function(a){this.ze&&1===C&&(this.hc||(this.hc=new z),this.hc.Ak(a))};
x.prototype.Ma=function(a){if(this.ze&&1===C&&this.hc&&this.hc.om()&&this.$h()){this.hc.Ma(a);a=this.hc.Fa;var b=Ra(a.x,a.y,-a.u.Jb(),ea,aa,!0),c=Ra(a.x,a.y,-a.u.Jb(),ea,aa,!1);this.Bb.setPosition(b,c,0);b=0;"undefined"!==typeof this.hc.Fa.q&&(b=a.q-a.u.Jb(),this.Bb.setOrientation(Math.cos(b),Math.sin(b),0))}};x.prototype.play=function(a,c,f,g){var l=this.A;this.xe=a;this.volume=c;f=f||0;g=g||0;switch(this.ma){case 0:1!==l.playbackRate&&(l.playbackRate=1);l.volume!==c*K&&(l.volume=c*K);l.loop!==a&&
(l.loop=a);l.muted&&(l.muted=!1);if(l.currentTime!==f)try{l.currentTime=f}catch(h){}p(this);break;case 1:this.muted=!1;this.vi=1;if(1===this.buffer.ma)this.Ib.gain.value=c*K,this.te||(this.A=v.createBufferSource(),this.A.buffer=this.buffer.xa,this.A.connect(this.Ib)),this.A.onended=this.oq,this.gl=this.A,this.A.loop=a,this.Yh=!1,0===f?b(this.A,g):d(this.A,f,this.Kg(),g);else{1!==l.playbackRate&&(l.playbackRate=1);l.loop!==a&&(l.loop=a);l.volume=c*K;if(l.currentTime!==f)try{l.currentTime=f}catch(e){}p(this)}break;
case 2:(!this.te&&this.Yb||0!==f)&&l.seekTo(f);l.play();this.Yh=!1;break;case 3:E.tc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ai?E.wb.X:E.Bf.X)-f;this.ad=this.Yb=this.te=!1};x.prototype.stop=function(){switch(this.ma){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ma?c(this.A):this.A.paused||this.A.pause();break;case 2:this.A.stop();break;case 3:E.tc&&AppMobi.context.stopSound(this.src)}this.Yb=!0;this.ad=
!1};x.prototype.pause=function(){if(!(this.te||this.Yb||this.Pg()||this.ad)){switch(this.ma){case 0:this.A.paused||this.A.pause();break;case 1:1===this.buffer.ma?(this.Tc=this.gp(!0),this.xe&&(this.Tc=this.Tc%this.Kg()),this.ad=!0,c(this.A)):this.A.paused||this.A.pause();break;case 2:this.A.pause();break;case 3:E.tc&&AppMobi.context.stopSound(this.src)}this.ad=!0}};x.prototype.SB=function(){if(!(this.te||this.Yb||this.Pg())&&this.ad){switch(this.ma){case 0:p(this);break;case 1:1===this.buffer.ma?
(this.A=v.createBufferSource(),this.A.buffer=this.buffer.xa,this.A.connect(this.Ib),this.A.onended=this.oq,this.gl=this.A,this.A.loop=this.xe,this.Ib.gain.value=K*this.volume*this.vi,this.Yn(),this.startTime=(this.ai?E.wb.X:E.Bf.X)-this.Tc/(this.playbackRate||.001),d(this.A,this.Tc,this.Kg())):p(this);break;case 2:this.A.play();break;case 3:E.tc&&AppMobi.context.resumeSound(this.src)}this.ad=!1}};x.prototype.seek=function(a){if(!(this.te||this.Yb||this.Pg()))switch(this.ma){case 0:try{this.A.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.ma)this.ad?this.Tc=a:(this.pause(),this.Tc=a,this.SB());else try{this.A.currentTime=a}catch(c){}break;case 3:E.tc&&AppMobi.context.seekSound(this.src,a)}};x.prototype.NB=function(a){1===this.ma&&(this.ze?(this.Bb.disconnect(),this.Bb.connect(a)):(this.Ib.disconnect(),this.Ib.connect(a)))};x.prototype.Kg=function(){var a=0;switch(this.ma){case 0:"undefined"!==typeof this.A.duration&&(a=this.A.duration);break;case 1:a=this.buffer.xa.duration;break;case 2:a=
this.A.getDuration();break;case 3:E.tc&&(a=AppMobi.context.getDurationSound(this.src))}return a};x.prototype.gp=function(a){var b=this.Kg(),c=0;switch(this.ma){case 0:"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 1:if(1===this.buffer.ma){if(this.ad)return this.Tc;c=(this.ai?E.wb.X:E.Bf.X)-this.startTime}else"undefined"!==typeof this.A.currentTime&&(c=this.A.currentTime);break;case 3:E.tc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.xe&&
c>b&&(c=b);return c};x.prototype.$h=function(){return!this.ad&&!this.te&&!this.Yb&&!this.Pg()};x.prototype.eC=function(){return!this.te&&!this.Yb&&!this.Pg()};x.prototype.mC=function(){var a=this.volume*K;isFinite(a)||(a=0);switch(this.ma){case 0:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a);break;case 1:1===this.buffer.ma?this.Ib.gain.value=a*this.vi:"undefined"!==typeof this.A.volume&&this.A.volume!==a&&(this.A.volume=a)}};x.prototype.Nl=function(a){switch(this.ma){case 0:this.A.muted!==
!!a&&(this.A.muted=!!a);break;case 1:1===this.buffer.ma?(this.vi=a?0:1,this.Ib.gain.value=K*this.volume*this.vi):this.A.muted!==!!a&&(this.A.muted=!!a)}};x.prototype.Uu=function(a){this.di=!!a;this.Nl(this.di||this.Mj)};x.prototype.Vu=function(a){this.Mj=!!a;this.Nl(this.di||this.Mj)};x.prototype.Yn=function(){var a=this.playbackRate;this.ai&&(a*=E.wh);switch(this.ma){case 0:this.A.playbackRate!==a&&(this.A.playbackRate=a);break;case 1:1===this.buffer.ma?this.A.playbackRate.value!==a&&(this.A.playbackRate.value=
a):this.A.playbackRate!==a&&(this.A.playbackRate=a)}};x.prototype.cC=function(a){switch(this.ma){case 0:a?this.$h()?(this.sd=!0,this.A.pause()):this.sd=!1:this.sd&&(this.A.play(),this.sd=!1);break;case 1:a?this.$h()?(this.sd=!0,1===this.buffer.ma?(this.Tc=this.gp(!0),this.xe&&(this.Tc=this.Tc%this.Kg()),c(this.A)):this.A.pause()):this.sd=!1:this.sd&&(1===this.buffer.ma?(this.A=v.createBufferSource(),this.A.buffer=this.buffer.xa,this.A.connect(this.Ib),this.A.onended=this.oq,this.gl=this.A,this.A.loop=
this.xe,this.Ib.gain.value=K*this.volume*this.vi,this.Yn(),this.startTime=(this.ai?E.wb.X:E.Bf.X)-this.Tc/(this.playbackRate||.001),d(this.A,this.Tc,this.Kg())):this.A.play(),this.sd=!1);break;case 2:a?this.$h()?(this.A.pause(),this.sd=!0):this.sd=!1:this.sd&&(this.sd=!1,this.A.play())}};S.P=function(a){this.type=a;E=this.b=a.b;R=this;this.dd=null;this.Wj=-600;this.b.wm&&(tb=!0);!(this.b.gi||this.b.Gj&&(this.b.zp||this.b.rm))||this.b.um||this.b.Sa||this.b.jt||tb||(Mc=!0);v=null;"undefined"!==typeof AudioContext?
(C=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(C=1,v=new webkitAudioContext);this.b.gi&&v&&(v.close&&v.close(),"undefined"!==typeof AudioContext?v=new AudioContext:"undefined"!==typeof webkitAudioContext&&(v=new webkitAudioContext));1!==C&&(this.b.md&&"undefined"!==typeof window.Media?C=2:this.b.kt&&(C=3));2===C&&(H=location.href,a=H.lastIndexOf("/"),-1<a&&(H=H.substr(0,a+1)),H=H.replace("file://",""));if(this.b.YA&&this.b.ZA&&"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.ke(this);else{if(this.b.tc)N=this.b.Gj;else try{N=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.xm}catch(b){N=!1}this.b.vh(this)}};var ya=S.P.prototype;ya.J=function(){this.b.Dh=this;W=this.B[0];this.sf=this.B[1];this.xB=0!==this.B[2];this.du=0;Kb=this.B[3];Jb=this.B[4];this.Wj=-this.B[5];Ic=this.B[6];Kc=this.B[7];Lc=this.B[8];this.dd=new z;var a=this.b.V||this.b.width,b=this.b.U||this.b.height;1===C&&(v.listener.setPosition(a/2,b/2,this.Wj),v.listener.setOrientation(0,0,
1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Pa&&Pa.disconnect();Lb=b.toLowerCase();Pa=v.createMediaStreamSource(a);Pa.connect(n(Lb))});this.b.gs(function(a){R.rB(a)});var c=this;this.b.hl(function(a){c.kk(a)})};ya.kk=function(a){var b,c,d;b=0;for(c=D.length;b<c;b++)d=D[b],d.hc&&d.hc.Fa===a&&(d.hc.Fa=null,d.ze&&d.$h()&&d.xe&&d.stop());this.dd.Fa===a&&(this.dd.Fa=null)};ya.ab=function(){var a={silent:Z,masterVolume:K,listenerZ:this.Wj,listenerUid:this.dd.om()?this.dd.Fa.uid:-1,playing:[],effects:{}},
b=a.playing,c,d,f,g,l,h;c=0;for(d=D.length;c<d;c++)f=D[c],!f.eC()||3===this.sf||f.ve&&1===this.sf||!f.ve&&2===this.sf||(g=f.gp(),f.xe&&(g=g%f.Kg()),g={tag:f.tag,buffersrc:f.buffer.src,is_music:f.ve,playbackTime:g,volume:f.volume,looping:f.xe,muted:f.di,playbackRate:f.playbackRate,paused:f.ad,resume_position:f.Tc},f.ze&&(g.pan={},h=g.pan,f.hc&&f.hc.om()?h.objUid=f.hc.Fa.uid:(h.x=f.wu,h.y=f.xu,h.a=f.su),h.ia=f.tu,h.oa=f.uu,h.og=f.vu),b.push(g));b=a.effects;for(l in ca)if(ca.hasOwnProperty(l)){f=[];
c=0;for(d=ca[l].length;c<d;c++)f.push({type:ca[l][c].type,params:ca[l][c].mb});b[l]=f}return a};var cb=[];ya.lb=function(a){var b=a.silent;K=a.masterVolume;this.Wj=a.listenerZ;this.dd.Ak(null);var c=a.listenerUid;-1!==c&&(this.dd.Fm=c,cb.push(this.dd));var c=a.playing,d,h,e,k,n,u,q,p,w,x,B;if(3!==this.sf)for(d=0,h=D.length;d<h;d++)w=D[d],w.ve&&1===this.sf||(w.ve||2!==this.sf)&&w.stop();for(n in ca)if(ca.hasOwnProperty(n))for(d=0,h=ca[n].length;d<h;d++)ca[n][d].remove();Va(ca);for(n in a.effects)if(a.effects.hasOwnProperty(n))for(u=
a.effects[n],d=0,h=u.length;d<h;d++)switch(e=u[d].type,x=u[d].params,e){case "filter":G(n,new f(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "delay":G(n,new r(x[0],x[1],x[2]));break;case "convolve":e=x[2];w=this.gm(e,!1);w.xa?e=new g(w.xa,x[0],x[1],e):(e=new g(null,x[0],x[1],e),w.fu=x[0],w.Al=e);G(n,e);break;case "flanger":G(n,new y(x[0],x[1],x[2],x[3],x[4]));break;case "phaser":G(n,new J(x[0],x[1],x[2],x[3],x[4],x[5]));break;case "gain":G(n,new l(x[0]));break;case "tremolo":G(n,new m(x[0],x[1]));break;
case "ringmod":G(n,new t(x[0],x[1]));break;case "distortion":G(n,new P(x[0],x[1],x[2],x[3],x[4]));break;case "compressor":G(n,new O(x[0],x[1],x[2],x[3],x[4]));break;case "analyser":G(n,new I(x[0],x[1]))}d=0;for(h=c.length;d<h;d++)3===this.sf||(a=c[d],e=a.buffersrc,k=a.is_music,n=a.tag,u=a.playbackTime,q=a.looping,p=a.volume,B=(x=a.pan)&&x.hasOwnProperty("objUid")?x.objUid:-1,k&&1===this.sf)||!k&&2===this.sf||((w=this.Qs(e,n,k,q,p))?(w.Tc=a.resume_position,w.Nq(!!x),w.play(q,p,u),w.Yn(),w.mC(),w.Nl(w.di||
w.Mj),a.paused&&w.pause(),a.muted&&w.Uu(!0),w.Nl(w.di||w.Mj),x&&(-1!==B?(w.hc=w.hc||new z,w.hc.Fm=B,cb.push(w.hc)):w.Mq(x.x,x.y,x.a,x.ia,x.oa,x.og))):(w=this.gm(e,k),w.vn=u,w.an=a.paused,x&&(-1!==B?w.Ci.push({hu:B,qp:x.ia,dq:x.oa,hq:x.og,ov:n}):w.Ci.push({x:x.x,y:x.y,ny:x.a,qp:x.ia,dq:x.oa,hq:x.og,ov:n}))));if(b&&!Z){d=0;for(h=D.length;d<h;d++)D[d].Vu(!0);Z=!0}else if(!b&&Z){d=0;for(h=D.length;d<h;d++)D[d].Vu(!1);Z=!1}};ya.Qd=function(){var a,b,c,d;a=0;for(b=cb.length;a<b;a++)c=cb[a],d=this.b.Mg(c.Fm),
c.Ak(d),c.Fm=-1,d&&(ea=d.x,aa=d.y);U(cb)};ya.rB=function(a){if(!this.xB){!a&&v&&v.resume&&(v.resume(),xa=!1);var b,c;b=0;for(c=D.length;b<c;b++)D[b].cC(a);a&&v&&v.suspend&&(v.suspend(),xa=!0)}};ya.Ma=function(){var a=this.b.Vf,b,c,d;b=0;for(c=D.length;b<c;b++)d=D[b],d.Ma(a),0!==W&&d.Yn();var f,g;for(f in ca)if(ca.hasOwnProperty(f))for(d=ca[f],b=0,c=d.length;b<c;b++)g=d[b],g.Ma&&g.Ma();1===C&&this.dd.om()&&(this.dd.Ma(a),ea=this.dd.Fa.x,aa=this.dd.Fa.y,v.listener.setPosition(this.dd.Fa.x,this.dd.Fa.y,
this.Wj))};var db=[];ya.bC=function(a){var b,c,d,f,g,l=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(g=4<f.length&&".ogg"===f.substr(f.length-4))&&N||!g&&!N)db.push({filename:f,size:d,Fa:null}),l+=d;return l};ya.gC=function(){var a,b,c,d;a=0;for(b=db.length;a<b;++a)c=db[a],d=this.b.Uo+c.filename,c.Fa=this.gm(d,!1)};ya.pA=function(){var a=0,b,c,d;b=0;for(c=db.length;b<c;++b)d=db[b],d.Fa.WA()||d.Fa.LA()||this.b.Sa||this.b.rm?a+=d.size:d.Fa.lt()&&(a+=Math.floor(d.size/2));return a};ya.PB=function(){var a,
b,c,d;c=a=0;for(b=M.length;a<b;++a)d=M[a],M[c]=d,d.ve?d.OB():++c;M.length=c};ya.gm=function(a,b){var c,d,f,g=null;c=0;for(d=M.length;c<d;c++)if(f=M[c],f.src===a){g=f;break}g||(tb&&b&&this.PB(),g=new w(a,b),M.push(g));return g};ya.Qs=function(a,b,c,d,f){var g,l,h;g=0;for(l=D.length;g<l;g++)if(h=D[g],h.src===a&&(h.Hy()||c))return h.tag=b,h;a=this.gm(a,c);if(!a.xa)return"<preload>"!==b&&(a.cn=b,a.Vp=d,a.mr=f),null;h=new x(a,b);D.push(h);return h};var Ga=[];B.prototype.$k=function(a){return jb(T,a)};
B.prototype.Jw=function(a){L(a);var b;a=0;for(b=Ga.length;a<b;a++)if(Ga[a].$h())return!0;return!1};S.n=new B;Q.prototype.Play=function(a,b,c,d){!Z&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),F=this.Qs(this.b.Uo+a[0]+(N?".ogg":".m4a"),d,a[1],0!==b,c))&&(F.Nq(!1),F.play(0!==b,c,0,this.du),this.du=0)};Q.prototype.Tx=function(a,b){L(a);var c,d;c=0;for(d=Ga.length;c<d;c++)Ga[c].Uu(0===b)};S.C=new Q;S.ea=new function(){}})();function sc(e){this.b=e}
(function(){function e(){n&&h&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(b){a.qB(b)})}function p(){}function q(){}var u=sc.prototype;u.T=function(a){this.na=a;this.b=a.b};var k=u.T.prototype;k.J=function(){};var n=!1,h=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){n=!0;e()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
k.lu=function(){h=!0;e()};u.P=function(a){this.type=a;this.b=a.b};k=u.P.prototype;k.J=function(){var b=this;window.addEventListener("resize",function(){b.b.trigger(sc.prototype.n.ux,b)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){b.b.trigger(sc.prototype.n.qx,b)}),window.addEventListener("offline",function(){b.b.trigger(sc.prototype.n.nx,b)}));this.b.tc||(document.addEventListener("appMobi.device.update.available",function(){b.b.trigger(sc.prototype.n.no,
b)}),document.addEventListener("backbutton",function(){b.b.trigger(sc.prototype.n.Zk,b)}),document.addEventListener("menubutton",function(){b.b.trigger(sc.prototype.n.Mr,b)}),document.addEventListener("searchbutton",function(){b.b.trigger(sc.prototype.n.vx,b)}),document.addEventListener("tizenhwkey",function(a){var c;switch(a.keyName){case "back":c=b.b.trigger(sc.prototype.n.Zk,b);!c&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(c=b.b.trigger(sc.prototype.n.Mr,
b))||a.preventDefault()}}));this.b.xm&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){b.b.trigger(sc.prototype.n.Zk,b)&&(a.handled=!0)}):this.b.Fp&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!b.b.trigger(sc.prototype.n.Zk,b)});this.b.gs(function(a){a?b.b.trigger(sc.prototype.n.rx,b):b.b.trigger(sc.prototype.n.tx,b)});this.pt="undefined"!==typeof window.is_scirra_arcade};k.qB=function(a){a=
a.data.type;"downloading-update"===a?this.b.trigger(sc.prototype.n.zx,this):"update-ready"===a||"update-pending"===a?this.b.trigger(sc.prototype.n.no,this):"offline-ready"===a&&this.b.trigger(sc.prototype.n.ox,this)};p.prototype.qx=function(){return!0};p.prototype.nx=function(){return!0};p.prototype.no=function(){return!0};p.prototype.tx=function(){return!0};p.prototype.rx=function(){return!0};p.prototype.ux=function(){return!0};p.prototype.Zk=function(){return!0};p.prototype.Mr=function(){return!0};
p.prototype.vx=function(){return!0};p.prototype.zx=function(){return!0};p.prototype.no=function(){return!0};p.prototype.ox=function(){return!0};u.n=new p;q.prototype.Vv=function(){this.b.$c?CocoonJS.App.forceToFinish():window.tizen?window.tizen.application.getCurrentApplication().exit():navigator.app&&navigator.app.exitApp?navigator.app.exitApp():navigator.device&&navigator.device.exitApp?navigator.device.exitApp():this.pt||this.b.Sa||window.close()};q.prototype.qw=function(a,d){this.b.$c?CocoonJS.App.openURL(a):
this.b.Dd?ejecta.openURL(a):this.b.Fp?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):self.cordova&&self.cordova.InAppBrowser?self.cordova.InAppBrowser.open(a,"_system"):this.pt||this.b.Sa||window.open(a,d)};u.C=new q;u.ea=new function(){}})();function qc(e){this.b=e}
(function(){function e(){this.name="";this.wk=0;this.mb=[]}function p(){a++;a===h.length&&h.push(new e);return h[a]}function q(){}function u(){}function k(){}var n=qc.prototype;n.T=function(a){this.na=a;this.b=a.b};n.T.prototype.J=function(){};n.P=function(a){this.type=a;this.b=a.b};var h=[],a=-1;n.P.prototype.J=function(){var b=this;window.c2_callFunction=function(d,c){var f,h,g,e=p();e.name=d.toLowerCase();e.wk=0;if(c)for(e.mb.length=c.length,f=0,h=c.length;f<h;++f)g=c[f],e.mb[f]="number"===typeof g||
"string"===typeof g?g:"boolean"===typeof g?g?1:0:0;else U(e.mb);b.b.trigger(qc.prototype.n.bl,b,e.name);a--;return e.wk}};q.prototype.bl=function(b){var d=0>a?null:h[a];return d?jb(b,d.name):!1};q.prototype.Zv=function(b,d,c){var f=0>a?null:h[a];if(!f)return!1;b=A(b);return 0>b||b>=f.mb.length?!1:ec(f.mb[b],d,c)};n.n=new q;u.prototype.CallFunction=function(b,d){var c=p();c.name=b.toLowerCase();c.wk=0;Ba(c.mb,d);this.b.trigger(qc.prototype.n.bl,this,c.name);a--};n.C=new u;k.prototype.Cx=function(b,
d){d=A(d);var c=0>a?null:h[a];c?0<=d&&d<c.mb.length?b.An(c.mb[d]):b.La(0):b.La(0)};k.prototype.Rv=function(b,d){var c=p();c.name=d.toLowerCase();c.wk=0;U(c.mb);var f,h;f=2;for(h=arguments.length;f<h;f++)c.mb.push(arguments[f]);this.b.trigger(qc.prototype.n.bl,this,c.name);a--;b.An(c.wk)};n.ea=new k})();function tc(e){this.b=e}
(function(){function e(){}var p=tc.prototype;p.T=function(e){this.na=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e){this.type=e;this.b=e.b;this.ki=Array(256);this.Pk=Array(256);this.yf=0};var q=p.P.prototype;q.J=function(){var e=this;this.b.Sa||(jQuery(document).keydown(function(n){e.iq(n)}),jQuery(document).keyup(function(n){e.jq(n)}))};var u=[32,33,34,35,36,37,38,39,40,44];q.iq=function(e){var n=!1;window!=window.top&&-1<u.indexOf(e.which)&&(e.preventDefault(),n=!0,e.stopPropagation());
if(this.ki[e.which])this.Pk[e.which]&&!n&&e.preventDefault();else{this.ki[e.which]=!0;this.yf=e.which;this.b.ub=!0;this.b.trigger(tc.prototype.n.Uw,this);var h=this.b.trigger(tc.prototype.n.Gr,this),a=this.b.trigger(tc.prototype.n.ix,this);this.b.ub=!1;if(h||a)this.Pk[e.which]=!0,n||e.preventDefault()}};q.jq=function(e){this.ki[e.which]=!1;this.yf=e.which;this.b.ub=!0;this.b.trigger(tc.prototype.n.ur,this);var n=this.b.trigger(tc.prototype.n.Ir,this),h=this.b.trigger(tc.prototype.n.Hr,this);this.b.ub=
!1;if(n||h||this.Pk[e.which])this.Pk[e.which]=!0,e.preventDefault()};q.lg=function(){var e;for(e=0;256>e;++e)if(this.ki[e]){this.ki[e]=!1;this.yf=e;this.b.trigger(tc.prototype.n.ur,this);var n=this.b.trigger(tc.prototype.n.Ir,this),h=this.b.trigger(tc.prototype.n.Hr,this);if(n||h)this.Pk[e]=!0}};q.ab=function(){return{triggerKey:this.yf}};q.lb=function(e){this.yf=e.triggerKey};e.prototype.Cw=function(e){return this.ki[e]};e.prototype.Gr=function(e){return e===this.yf};e.prototype.Uw=function(){return!0};
e.prototype.ur=function(){return!0};e.prototype.Ir=function(e){return e===this.yf};e.prototype.ix=function(e){return e===this.yf};e.prototype.Hr=function(e){return e===this.yf};p.n=new e;p.C=new function(){};p.ea=new function(){}})();var uc=!1;
try{!function(){var e,p,q;!function(){var u={},k={};e=function(e,h,a){u[e]={Ry:h,Gy:a}};q=p=function(e){function h(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=e.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var f=a[c];".."===f?b.pop():"."!==f&&b.push(f)}return b.join("/")}if(q.iD=u,k[e])return k[e];if(k[e]={},!u[e])throw Error("Could not find module "+e);for(var a,b=u[e],d=b.Ry,b=b.Gy,c=[],f=0,r=d.length;r>f;f++)"exports"===d[f]?c.push(a={}):c.push(p(h(d[f])));d=b.apply(this,c);return k[e]=
a||d}}();e("promise/all",["./utils","exports"],function(e,k){var n=e.isArray,h=e.isFunction;k.all=function(a){if(!n(a))throw new TypeError("You must pass an array to all.");return new this(function(b,d){function c(a){return function(c){e[a]=c;0===--g&&b(e)}}var f,e=[],g=a.length;0===g&&b([]);for(var k=0;k<a.length;k++)(f=a[k])&&h(f.then)?f.then(c(k),d):(e[k]=f,0===--g&&b(e))})}});e("promise/asap",["exports"],function(e){function k(){return function(){process.xD(a)}}function n(){var b=0,d=new c(a),
f=document.createTextNode("");return d.observe(f,{characterData:!0}),function(){f.data=b=++b%2}}function h(){return function(){f.setTimeout(a,1)}}function a(){for(var a=0;a<r.length;a++){var b=r[a];(0,b[0])(b[1])}r=[]}var b,d="undefined"!=typeof window?window:{},c=d.MutationObserver||d.WebKitMutationObserver,f="undefined"!=typeof global?global:void 0===this?window:this,r=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?k():c?n():h();e.yy=function(a,c){1===r.push([a,
c])&&b()}});e("promise/config",["exports"],function(e){var k={pD:!1};e.zs=k;e.Ky=function(e,h){return 2!==arguments.length?k[e]:void(k[e]=h)}});e("promise/polyfill",["./promise","./utils","exports"],function(e,k,n){var h=e.Promise,a=k.isFunction;n.zB=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 d;return new b.Promise(function(a){d=
a}),a(d)}()||(b.Promise=h)}});e("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(e,k,n,h,a,b,d,c){function f(a){if(!x(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof f))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.fl=[];r(a,this)}function r(a,b){function c(a){m(b,
a)}function d(a){P(b,a)}try{a(c,d)}catch(f){d(f)}}function g(a,b,c,d){var f,g,e,h,t=x(c);if(t)try{f=c(d),e=!0}catch(k){h=!0,g=k}else f=d,e=!0;l(b,f)||(t&&e?m(b,f):h?P(b,g):a===B?m(b,f):a===Q&&P(b,f))}function q(a,b,c,d){a=a.fl;var f=a.length;a[f]=b;a[f+B]=c;a[f+Q]=d}function p(a,b){for(var c,d,f=a.fl,l=a.el,e=0;e<f.length;e+=3)c=f[e],d=f[e+b],g(b,c,d,l);a.fl=null}function l(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(w(b)&&(d=b.then,
x(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?m(a,d):t(a,d)))},function(b){return c?!0:(c=!0,void P(a,b))}),!0}catch(f){return c?!0:(P(a,f),!0)}return!1}function m(a,b){a===b?t(a,b):l(a,b)||t(a,b)}function t(a,b){a.Ne===L&&(a.Ne=G,a.el=b,z.async(O,a))}function P(a,b){a.Ne===L&&(a.Ne=G,a.el=b,z.async(I,a))}function O(a){p(a,a.Ne=B)}function I(a){p(a,a.Ne=Q)}var z=e.zs,w=(e.Ky,k.mB),x=k.isFunction;e=(k.now,n.all);h=h.race;a=a.resolve;b=b.reject;z.async=d.yy;var L=void 0,G=0,B=1,Q=2;
f.prototype={constructor:f,Ne:void 0,el:void 0,fl:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Ne){var f=arguments;z.async(function(){g(c.Ne,d,f[c.Ne-1],c.el)})}else q(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};f.all=e;f.race=h;f.resolve=a;f.reject=b;c.Promise=f});e("promise/race",["./utils","exports"],function(e,k){var n=e.isArray;k.race=function(e){if(!n(e))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var d,c=0;c<e.length;c++)(d=e[c])&&"function"==typeof d.then?d.then(a,b):a(d)})}});e("promise/reject",["exports"],function(e){e.reject=function(e){return new this(function(n,h){h(e)})}});e("promise/resolve",["exports"],function(e){e.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(n){n(e)})}});e("promise/utils",["exports"],function(e){function k(e){return"function"==typeof e}var n=Date.now||function(){return(new Date).getTime()};e.mB=function(e){return k(e)||
"object"==typeof e&&null!==e};e.isFunction=k;e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.now=n});p("promise/polyfill").zB()}();var vc=function(){return function(e){function p(u){if(q[u])return q[u].qe;var k=q[u]={qe:{},id:u,loaded:!1};return e[u].call(k.qe,k,k.qe,p),k.loaded=!0,k.qe}var q={};return p.ne=e,p.ij=q,p.Ip="",p(0)}([function(e,p,q){p.dl=!0;var u=function(e){function n(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function h(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(g(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in d)if(d.hasOwnProperty(b)&&d[b]===a)return!0;return!1}var b={},d={Zi:"asyncStorage",$i:"localStorageWrapper",bj:"webSQLStorage"},c="clear getItem iterate key keys length removeItem setItem".split(" "),f={description:"",Nh:[d.Zi,d.bj,d.$i].slice(),name:"localforage",size:4980736,Ha:"keyvaluepairs",
version:1},r=function(a){var b={},c;try{var f=f||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.yt||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:f&&"function"==typeof f.open&&"undefined"!=typeof a.IDBKeyRange}catch(g){c=!1}b[d.Zi]=!!c;var e;try{e=a.openDatabase}catch(h){e=!1}b[d.bj]=!!e;var k;try{k=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(n){k=
!1}return b[d.$i]=!!k,b}(e),g=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.Zi=d.Zi;this.$i=d.$i;this.bj=d.bj;this.uo=h({},f);this.vg=h({},this.uo,a);this.Yr=this.le=null;this.Ff=!1;this.Da=null;this.Zr();this.Ru(this.vg.Nh)}return e.prototype.zs=function(a){if("object"==typeof a){if(this.Ff)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.vg[b]=a[b];return"driver"in a&&a.Nh&&this.Ru(this.vg.Nh),!0}return"string"==typeof a?this.vg[a]:this.vg},e.prototype.Nh=function(){return this.cj||null},e.prototype.Ss=function(c,d,f){var g=this,e=function(){if(a(c))switch(c){case g.Zi:return new Promise(function(a){a(q(1))});case g.$i:return new Promise(function(a){a(q(2))});case g.bj:return new Promise(function(a){a(q(4))})}else if(b[c])return Promise.resolve(b[c]);return Promise.reject(Error("Driver not found."))}();
return e.then(d,f),e},e.prototype.ready=function(a){var b=this,c=b.le.then(function(){return null===b.Ff&&(b.Ff=b.Yr()),b.Ff});return c.then(a,a),c},e.prototype.Ru=function(a,b,c){function d(){e.vg.Nh=e.Nh()}function f(a){return function(){function b(){for(;c<a.length;){var f=a[c];return c++,e.Da=null,e.Ff=null,e.Ss(f).then(function(a){return e.ky(a),d(),e.Ff=e.wo(e.vg),e.Ff})["catch"](b)}d();return e.le=Promise.reject(Error("No available storage method found.")),e.le}var c=0;return b()}}var e=this;
g(a)||(a=[a]);var h=this.my(a);return this.le=(null!==this.le?this.le["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=h[0];return e.Da=null,e.Ff=null,e.Ss(a).then(function(a){e.cj=a.cj;d();e.Zr();e.Yr=f(h)})})["catch"](function(){d();return e.le=Promise.reject(Error("No available storage method found.")),e.le}),this.le.then(b,c),this.le},e.prototype.supports=function(a){return!!r[a]},e.prototype.ky=function(a){h(this,a)},e.prototype.my=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var f=a[c];this.supports(f)&&b.push(f)}return b},e.prototype.Zr=function(){for(var a=0;a<c.length;a++)n(this,c[a])},e.prototype.Cl=function(a){return new e(a)},e}())}("undefined"!=typeof window?window:self);p["default"]=u;e.qe=p["default"]},function(e,p){p.dl=!0;p["default"]=function(e){function u(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (e.BlobBuilder||e.ne||e.Ip||e.WebKitBlobBuilder),f=0;f<a.length;f+=1)d.append(a[f]);
return d.getBlob(b.type)}}function k(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function n(a){return(new Promise(function(b,c){var d=u([""],{type:"image/png"}),f=a.transaction([L],"readwrite");f.objectStore(L).put(d,
"key");f.oncomplete=function(){var d=a.transaction([L],"readwrite").objectStore(L).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);k(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};f.onerror=f.onabort=c}))["catch"](function(){return!1})}function h(a){return"boolean"==typeof w?Promise.resolve(w):n(a).then(function(a){return w=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({Xr:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),f=new Uint8Array(d),g=0;c>g;g++)f[g]=b.charCodeAt(g);return u([d],{type:a.type})}function d(a){var b=this,c=b.vo().then(function(){var a=x[b.Da.name];return a&&a.Jh?a.Jh:void 0});return c.then(a,a),c}function c(a){a=x[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Cs.push(b);a.Jh?a.Jh=a.Jh.then(function(){return b.promise}):
a.Jh=b.promise}function f(a){function b(){return Promise.resolve()}var c=this,f={db:null};if(a)for(var g in a)f[g]=a[g];x||(x={});var l=x[f.name];l||(l={cm:[],db:null,Jh:null,Cs:[]},x[f.name]=l);l.cm.push(c);c.vo||(c.vo=c.ready,c.ready=d);a=[];for(g=0;g<l.cm.length;g++){var h=l.cm[g];h!==c&&a.push(h.vo()["catch"](b))}var m=l.cm.slice(0);return Promise.all(a).then(function(){return f.db=l.db,r(f,!1)}).then(function(a){f.db=a;var b;b=c.uo.version;if(f.db){var d=!f.db.objectStoreNames.contains(f.Ha),
g=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&e.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),g||d)?(d&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?r(f,!0):a}).then(function(a){f.db=l.db=a;c.Da=f;for(a=0;a<m.length;a++){var b=m[a];b!==c&&(b.Da.db=f.db,b.Da.version=f.version)}})}function r(a,b){return new Promise(function(d,f){if(a.db){if(!b)return d(a.db);
c(a);a.db.close()}var g=[a.name];b&&g.push(a.version);var l=z.open.apply(z,g);b&&(l.onupgradeneeded=function(b){var c=l.result;try{c.createObjectStore(a.Ha),1>=b.oldVersion&&c.createObjectStore(L)}catch(d){if("ConstraintError"!==d.name)throw d;e.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ha+'" already exists.')}});l.onerror=function(){f(l.error)};l.onsuccess=function(){d(l.result);var b=x[a.name].Cs.pop();
b&&b.resolve()}})}function g(a,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,f){d.ready().then(function(){var g=d.Da,e=g.db.transaction(g.Ha,"readonly").objectStore(g.Ha).get(a);e.onsuccess=function(){var a=e.result;void 0===a&&(a=null);a&&a.Xr&&(a=b(a));c(a)};e.onerror=function(){f(e.error)}})["catch"](f)});return I(f,c),f}function p(a,c){var d=this,f=new Promise(function(c,f){d.ready().then(function(){var g=
d.Da,e=g.db.transaction(g.Ha,"readonly").objectStore(g.Ha).openCursor(),l=1;e.onsuccess=function(){var d=e.result;if(d){var f=d.value;f&&f.Xr&&(f=b(f));f=a(f,d.key,l++);void 0!==f?c(f):d["continue"]()}else c()};e.onerror=function(){f(e.error)}})["catch"](f)});return I(f,c),f}function J(b,c,d){var f=this;"string"!=typeof b&&(e.console.warn(b+" used as a key, but it is not a string."),b=String(b));var g=new Promise(function(d,g){var e;f.ready().then(function(){return e=f.Da,c instanceof Blob?h(e.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=e.db.transaction(e.Ha,"readwrite"),f=c.objectStore(e.Ha);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){g(l.error?l.error:l.transaction.error)};var l=f.put(a,b)})["catch"](g)});return I(g,d),g}function l(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Da,g=f.db.transaction(f.Ha,"readwrite"),
e=g.objectStore(f.Ha)["delete"](a);g.oncomplete=function(){b()};g.onerror=function(){d(e.error)};g.onabort=function(){d(e.error?e.error:e.transaction.error)}})["catch"](d)});return I(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da,f=d.db.transaction(d.Ha,"readwrite"),g=f.objectStore(d.Ha).clear();f.oncomplete=function(){a()};f.onabort=f.onerror=function(){c(g.error?g.error:g.transaction.error)}})["catch"](c)});return I(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da,f=d.db.transaction(d.Ha,"readonly").objectStore(d.Ha).count();f.onsuccess=function(){a(f.result)};f.onerror=function(){c(f.error)}})["catch"](c)});return I(c,a),c}function P(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var f=c.Da,g=!1,e=f.db.transaction(f.Ha,"readonly").objectStore(f.Ha).openCursor();e.onsuccess=function(){var c=e.result;return c?void(0===a?b(c.key):g?b(c.key):(g=
!0,c.advance(a))):void b(null)};e.onerror=function(){d(e.error)}})["catch"](d)});return I(d,b),d}function O(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da,f=d.db.transaction(d.Ha,"readonly").objectStore(d.Ha).openCursor(),g=[];f.onsuccess=function(){var b=f.result;return b?(g.push(b.key),void b["continue"]()):void a(g)};f.onerror=function(){c(f.error)}})["catch"](c)});return I(c,a),c}function I(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var z=z||e.indexedDB||
e.webkitIndexedDB||e.mozIndexedDB||e.yt||e.msIndexedDB;if(z){var w,x,L="local-forage-detect-blob-support";return{cj:"asyncStorage",wo:f,ut:p,getItem:g,setItem:J,removeItem:l,clear:m,length:t,key:P,keys:O}}}("undefined"!=typeof window?window:self);e.qe=p["default"]},function(e,p,q){p.dl=!0;p["default"]=function(e){function k(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var n=null;try{if(!(e.localStorage&&"setItem"in e.localStorage))return;n=e.localStorage}catch(h){return}return{cj:"localStorageWrapper",
wo:function(a){var b={};if(a)for(var d in a)b[d]=a[d];return b.we=b.name+"/",b.Ha!==this.uo.Ha&&(b.we+=b.Ha+"/"),this.Da=b,(new Promise(function(a){a(q(3))})).then(function(a){return b.nh=a,Promise.resolve()})},ut:function(a,b){var d=this,c=d.ready().then(function(){for(var b=d.Da,c=b.we,g=c.length,e=n.length,h=1,l=0;e>l;l++){var m=n.key(l);if(0===m.indexOf(c)){var t=n.getItem(m);if(t&&(t=b.nh.Ll(t)),t=a(t,m.substring(g),h++),void 0!==t)return t}}});return k(c,b),c},getItem:function(a,b){var d=this;
"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){var b=d.Da,c=n.getItem(b.we+a);return c&&(c=b.nh.Ll(c)),c});return k(c,b),c},setItem:function(a,b,d){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=c.ready().then(function(){void 0===b&&(b=null);var d=b;return new Promise(function(f,e){var h=c.Da;h.nh.serialize(b,function(b,c){if(c)e(c);else try{n.setItem(h.we+
a,b),f(d)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||e(t),e(t)}})})});return k(f,d),f},removeItem:function(a,b){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){n.removeItem(d.Da.we+a)});return k(c,b),c},clear:function(a){var b=this,d=b.ready().then(function(){for(var a=b.Da.we,d=n.length-1;0<=d;d--){var e=n.key(d);0===e.indexOf(a)&&n.removeItem(e)}});return k(d,a),d},length:function(a){var b=
this.keys().then(function(a){return a.length});return k(b,a),b},key:function(a,b){var d=this,c=d.ready().then(function(){var b,c=d.Da;try{b=n.key(a)}catch(g){b=null}return b&&(b=b.substring(c.we.length)),b});return k(c,b),c},keys:function(a){var b=this,d=b.ready().then(function(){for(var a=b.Da,d=n.length,e=[],g=0;d>g;g++)0===n.key(g).indexOf(a.we)&&e.push(n.key(g).substring(a.we.length));return e});return k(d,a),d}}}("undefined"!=typeof window?window:self);e.qe=p["default"]},function(e,p){p.dl=!0;
p["default"]=function(e){function u(a){var b,d,c,f,e;b=.75*a.length;var g=a.length,h=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var k=new ArrayBuffer(b),l=new Uint8Array(k);for(b=0;g>b;b+=4)d=n.indexOf(a[b]),c=n.indexOf(a[b+1]),f=n.indexOf(a[b+2]),e=n.indexOf(a[b+3]),l[h++]=d<<2|c>>4,l[h++]=(15&c)<<4|f>>2,l[h++]=(3&f)<<6|63&e;return k}function k(a){var b=new Uint8Array(a),d="";for(a=0;a<b.length;a+=3)d+=n[b[a]>>2],d+=n[(3&b[a])<<4|b[a+1]>>4],d+=n[(15&b[a+1])<<2|b[a+2]>>6],d+=n[63&b[a+2]];
return 2===b.length%3?d=d.substring(0,d.length-1)+"=":1===b.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var d="";if(a&&(d=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var c,f="__lfsc__:";a instanceof ArrayBuffer?(c=a,f+="arbf"):(c=a.buffer,"[object Int8Array]"===d?f+="si08":"[object Uint8Array]"===
d?f+="ui08":"[object Uint8ClampedArray]"===d?f+="uic8":"[object Int16Array]"===d?f+="si16":"[object Uint16Array]"===d?f+="ur16":"[object Int32Array]"===d?f+="si32":"[object Uint32Array]"===d?f+="ui32":"[object Float32Array]"===d?f+="fl32":"[object Float64Array]"===d?f+="fl64":b(Error("Failed to get type for BinaryArray")));b(f+k(c))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var c="~~local_forage_type~"+a.type+"~"+k(this.result);b("__lfsc__:blob"+c)},d.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(e){console.error("Couldn't convert value into a JSON string: ",
a),b(null,e)}},Ll:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,d=a.substring(13);a=a.substring(9,13);if("blob"===a&&h.test(d)){var c=d.match(h);b=c[1];d=d.substring(c[0].length)}d=u(d);switch(a){case "arbf":return d;case "blob":var f;d=[d];b={type:b};d=d||[];b=b||{};try{f=new Blob(d,b)}catch(k){if("TypeError"!==k.name)throw k;f=new (e.BlobBuilder||e.ne||e.Ip||e.WebKitBlobBuilder);for(a=0;a<d.length;a+=1)f.append(d[a]);f=f.getBlob(b.type)}return f;case "si08":return new Int8Array(d);
case "ui08":return new Uint8Array(d);case "uic8":return new Uint8ClampedArray(d);case "si16":return new Int16Array(d);case "ur16":return new Uint16Array(d);case "si32":return new Int32Array(d);case "ui32":return new Uint32Array(d);case "fl32":return new Float32Array(d);case "fl64":return new Float64Array(d);default:throw Error("Unkown type: "+a);}},DD:u,kD:k}}("undefined"!=typeof window?window:self);e.qe=p["default"]},function(e,p,q){p.dl=!0;p["default"]=function(e){function k(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var f=new Promise(function(a,d){try{c.db=p(c.name,String(c.version),c.description,c.size)}catch(f){return d(f)}c.db.transaction(function(f){f.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ha+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.Da=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(q(3))})).then(function(a){return c.nh=a,f})}function n(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Da;f.db.transaction(function(c){c.executeSql("SELECT * FROM "+f.Ha+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=f.nh.Ll(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function h(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var f=c.Da;f.db.transaction(function(c){c.executeSql("SELECT * FROM "+f.Ha,[],function(c,d){for(var g=d.rows,
e=g.length,l=0;e>l;l++){var h=g.item(l),m=h.value;if(m&&(m=f.nh.Ll(m)),m=a(m,h.key,l+1),void 0!==m)return void b(m)}b()},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,f){d.ready().then(function(){void 0===b&&(b=null);var g=b,e=d.Da;e.nh.serialize(b,function(b,d){d?f(d):e.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+e.Ha+
" (key, value) VALUES (?, ?)",[a,b],function(){c(g)},function(a,b){f(b)})},function(a){a.code===a.QUOTA_ERR&&f(a)})})})["catch"](f)});return g(f,c),f}function b(a,b){var c=this;"string"!=typeof a&&(e.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var f=c.Da;f.db.transaction(function(c){c.executeSql("DELETE FROM "+f.Ha+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function d(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.Ha,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function c(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.Ha,[],function(b,c){var d=c.rows.item(0).ij;a(d)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function f(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var f=c.Da;f.db.transaction(function(c){c.executeSql("SELECT key FROM "+f.Ha+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return g(d,b),d}function r(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.Da;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.Ha,[],function(b,c){for(var d=[],f=0;f<c.rows.length;f++)d.push(c.rows.item(f).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function g(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var p=e.openDatabase;if(p)return{cj:"webSQLStorage",wo:k,ut:h,getItem:n,setItem:a,removeItem:b,clear:d,length:c,key:f,keys:r}}("undefined"!=typeof window?window:self);e.qe=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.qe=vc():"function"==typeof define&&define.jD?define([],vc):"object"==typeof exports?exports.localforage=vc():this.localforage=
vc()}catch(wc){uc=!0}function xc(e){this.b=e}
(function(){function e(a){a.b.trigger(xc.prototype.n.al,a)}function p(){}function q(){}function u(){}var k="",n="",h="";"undefined"!==typeof window.is_scirra_arcade&&(h="sa"+window.scirra_arcade_id+"_");var a=xc.prototype;a.T=function(a){this.na=a;this.b=a.b};a.T.prototype.J=function(){};a.P=function(a){this.type=a;this.b=a.b};var b=a.P.prototype;b.J=function(){this.rq=this.sq=0};b.ae=function(){};b.ab=function(){return{}};b.lb=function(){};p.prototype.hx=function(a){return k===a};p.prototype.Tw=
function(){return!0};p.prototype.Dr=function(a){return k===a};p.prototype.Sw=function(){return!0};p.prototype.al=function(){return!0};p.prototype.Cr=function(a){return k===a};p.prototype.Er=function(a){return k===a};p.prototype.Qw=function(){return!0};p.prototype.Pw=function(){return!0};a.n=new p;q.prototype.Px=function(a,b){if(uc)e(this);else{var f=h+a;this.sq++;var r=this;localforage.setItem(f,b,function(b,c){r.sq--;b?r.b.trigger(xc.prototype.n.al,r):(k=a,n=c,r.b.trigger(xc.prototype.n.Tw,r),r.b.trigger(xc.prototype.n.hx,
r),n=k="");0===r.sq&&r.b.trigger(xc.prototype.n.Qw,r)})}};q.prototype.mw=function(a){if(uc)e(this);else{var b=h+a;this.rq++;var f=this;localforage.getItem(b,function(b,c){f.rq--;if(b)f.b.trigger(xc.prototype.n.al,f);else{k=a;n=c;if("undefined"===typeof n||null===n)n="";f.b.trigger(xc.prototype.n.Sw,f);f.b.trigger(xc.prototype.n.Dr,f);n=k=""}0===f.rq&&f.b.trigger(xc.prototype.n.Pw,f)})}};q.prototype.Sv=function(a){if(uc)e(this);else{var b=this;localforage.getItem(h+a,function(f,e){f?b.b.trigger(xc.prototype.n.al,
b):(k=a,null===e?(n="",b.b.trigger(xc.prototype.n.Er,b)):(n=e,b.b.trigger(xc.prototype.n.Cr,b)),n=k="")})}};a.C=new q;u.prototype.Lw=function(a){a.An(n)};a.ea=new u})();function yc(e){this.b=e}
(function(){function e(){}function p(){}var q=yc.prototype;q.T=function(e){this.na=e;this.b=e.b};q.T.prototype.J=function(){};q.P=function(e){this.type=e;this.b=e.b;this.Eh=Array(4);this.vv=this.Un=this.xh=this.kf=this.jf=0;this.np=!1};var u=q.P.prototype;u.J=function(){var e=this;if(!this.b.Sa){jQuery(document).mousemove(function(a){e.lq(a)});jQuery(document).mousedown(function(a){e.kq(a)});jQuery(document).mouseup(function(a){e.mq(a)});jQuery(document).dblclick(function(a){e.pB(a)});var h=function(a){e.sB(a)};
document.addEventListener("mousewheel",h,!1);document.addEventListener("DOMMouseScroll",h,!1)}};var k={left:0,top:0};u.lq=function(e){var h=this.b.Sa?k:jQuery(this.b.canvas).offset();this.jf=e.pageX-h.left;this.kf=e.pageY-h.top};u.au=function(){return 0<this.b.zc?!0:0<=this.jf&&0<=this.kf&&this.jf<this.b.width&&this.kf<this.b.height};u.kq=function(e){this.au()&&(this.Eh[e.which]=!0,this.b.ub=!0,this.b.trigger(yc.prototype.n.Rw,this),this.xh=e.which-1,this.Un=0,this.b.trigger(yc.prototype.n.Ar,this),
this.b.trigger(yc.prototype.n.jo,this),this.b.ub=!1)};u.mq=function(e){this.Eh[e.which]&&(this.b.nm&&!this.b.cf&&e.preventDefault(),this.b.nm=!0,this.Eh[e.which]=!1,this.b.ub=!0,this.xh=e.which-1,this.b.trigger(yc.prototype.n.Pr,this),this.b.ub=!1)};u.pB=function(e){this.au()&&(e.preventDefault(),this.b.ub=!0,this.xh=e.which-1,this.Un=1,this.b.trigger(yc.prototype.n.Ar,this),this.b.trigger(yc.prototype.n.jo,this),this.b.ub=!1)};u.sB=function(e){this.vv=0>(e.wheelDelta?e.wheelDelta:e.detail?-e.detail:
0)?0:1;this.np=!1;this.b.ub=!0;this.b.trigger(yc.prototype.n.Bx,this);this.b.ub=!1;this.np&&kb(e)&&e.preventDefault()};u.lg=function(){var e,h;e=0;for(h=this.Eh.length;e<h;++e)this.Eh[e]&&(this.Eh[e]=!1,this.xh=e-1,this.b.trigger(yc.prototype.n.Pr,this))};e.prototype.Ar=function(e,h){return e===this.xh&&h===this.Un};e.prototype.Rw=function(){return!0};e.prototype.Pr=function(e){return e===this.xh};e.prototype.Gw=function(e){var h=this.b.Uh();return Ta(this.b.Oi(e,this.jf,this.kf,h.Zh),h.Zh)};e.prototype.jo=
function(e,h,a){return e!==this.xh||h!==this.Un?!1:this.b.Oi(a,this.jf,this.kf,!1)};e.prototype.Bx=function(e){this.np=!0;return e===this.vv};q.n=new e;q.C=new function(){};p.prototype.ro=function(e,h){var a,b,d,c,f;ja(h)?(a=this.b.Xe(0),b=a.scale,d=a.xc,c=a.Qc,f=a.q,a.scale=1,a.xc=1,a.Qc=1,a.q=0,e.O(a.Eb(this.jf,this.kf,!0)),a.scale=b,a.xc=d,a.Qc=c,a.q=f):(a=ka(h)?this.b.Xe(h):this.b.wj(h))?e.O(a.Eb(this.jf,this.kf,!0)):e.O(0)};p.prototype.so=function(e,h){var a,b,d,c,f;ja(h)?(a=this.b.Xe(0),b=a.scale,
d=a.xc,c=a.Rc,f=a.q,a.scale=1,a.xc=1,a.Rc=1,a.q=0,e.O(a.Eb(this.jf,this.kf,!1)),a.scale=b,a.xc=d,a.Rc=c,a.q=f):(a=ka(h)?this.b.Xe(h):this.b.wj(h))?e.O(a.Eb(this.jf,this.kf,!1)):e.O(0)};q.ea=new p})();function zc(e){this.b=e}
(function(){function e(e){this.Ta=e;this.Wa=!1;this.q=this.speed=this.y=this.x=0;this.opacity=1;this.If=this.Xh=this.size=this.km=0}function p(){}var q=zc.prototype;q.T=function(e){this.na=e;this.b=e.b};var u=q.T.prototype;u.J=function(){this.M||(this.H=new Image,this.H.Bl=this.Mk,this.R=null,this.b.Vk(this.H,this.Pi))};u.jh=function(){this.M||(this.R=null)};u.Ai=function(){this.M||!this.k.length||this.R||(this.R=this.b.D.hg(this.H,!0,this.b.Ka,this.uh))};u.pi=function(){this.M||this.R||!this.b.D||
(this.R=this.b.D.hg(this.H,!0,this.b.Ka,this.uh))};u.Si=function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};u.Ei=function(e){e.drawImage(this.H,0,0)};e.prototype.init=function(){var e=this.Ta;this.x=e.x-e.co/2+Math.random()*e.co;this.y=e.y-e.eo/2+Math.random()*e.eo;this.speed=e.wp-e.Hn/2+Math.random()*e.Hn;this.q=e.q-e.In/2+Math.random()*e.In;this.opacity=e.up;this.size=e.vp-e.Gn/2+Math.random()*e.Gn;this.km=e.mp-e.lm/2+Math.random()*e.lm;this.If=this.Xh=0};e.prototype.Ma=
function(e){var h=this.Ta;this.x+=Math.cos(this.q)*this.speed*e;this.y+=Math.sin(this.q)*this.speed*e;this.y+=this.Xh*e;this.speed+=h.Kc*e;this.size+=this.km*e;this.Xh+=h.ec*e;this.If+=e;1>this.size?this.Wa=!1:(0!==h.Tj&&(this.q+=Math.random()*h.Tj*e-h.Tj*e/2),0!==h.Vj&&(this.speed+=Math.random()*h.Vj*e-h.Vj*e/2),0!==h.Uj&&(this.opacity+=Math.random()*h.Uj*e-h.Uj*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=h.Lh&&this.If>=h.timeout&&(this.Wa=!1),2===h.Lh&&0>=this.speed&&
(this.Wa=!1))};e.prototype.Mc=function(e){var h=this.Ta.opacity*this.opacity;if(0!==h){0===this.Ta.Lh&&(h*=1-this.If/this.Ta.timeout);e.globalAlpha=h;var h=this.x-this.size/2,a=this.y-this.size/2;this.Ta.b.uc&&(h=h+.5|0,a=a+.5|0);e.drawImage(this.Ta.type.H,h,a,this.size,this.size)}};e.prototype.Hb=function(e){var h=this.Ta.opacity*this.opacity;0===this.Ta.Lh&&(h*=1-this.If/this.Ta.timeout);var a=this.size,b=a*this.Ta.Au,d=this.x-a/2,c=this.y-a/2;this.Ta.b.uc&&(d=d+.5|0,c=c+.5|0);1>b||0===h||(b<e.jB||
b>e.Xp?(e.Fe(h),e.Fi(d,c,d+a,c,d+a,c+a,d,c+a)):e.yB(this.x,this.y,b,h))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};q.P=function(e){this.type=e;this.b=e.b};var u=q.P.prototype,k=[];u.J=function(){var e=this.B;this.pn=e[0];this.In=V(e[1]);this.Li=e[2];this.Jn=!0;this.wp=e[3];this.vp=e[4];this.up=e[5]/100;this.mp=e[6];this.co=
e[7];this.eo=e[8];this.Hn=e[9];this.Gn=e[10];this.lm=e[11];this.Kc=e[12];this.ec=e[13];this.Tj=e[14];this.Vj=e[15];this.Uj=e[16];this.Lh=e[17];this.timeout=e[18];this.kh=0;this.Au=1;this.Ym=this.x;this.$m=this.y;this.Zm=this.x;this.Xm=this.y;this.vy(function(e){e.Na.set(e.Ym,e.$m,e.Zm,e.Xm);e.Zb.Ki(e.Na);e.ql=!1;e.kr();e.Fv()});this.kc||(this.Dc=[]);this.b.vh(this);this.type.pi();if(1===this.Li)for(e=0;e<this.pn;e++)this.xo().opacity=0;this.Yl=!0};u.ab=function(){var e={r:this.pn,sc:this.In,st:this.Li,
s:this.Jn,isp:this.wp,isz:this.vp,io:this.up,gr:this.mp,xr:this.co,yr:this.eo,spr:this.Hn,szr:this.Gn,grnd:this.lm,acc:this.Kc,g:this.ec,lar:this.Tj,lsr:this.Vj,lor:this.Uj,dm:this.Lh,to:this.timeout,pcc:this.kh,ft:this.Yl,p:[]},h,a,b,d=e.p;h=0;for(a=this.Dc.length;h<a;h++)b=this.Dc[h],d.push([b.x,b.y,b.speed,b.q,b.opacity,b.km,b.size,b.Xh,b.If]);return e};u.lb=function(e){this.pn=e.r;this.In=e.sc;this.Li=e.st;this.Jn=e.s;this.wp=e.isp;this.vp=e.isz;this.up=e.io;this.mp=e.gr;this.co=e.xr;this.eo=
e.yr;this.Hn=e.spr;this.Gn=e.szr;this.lm=e.grnd;this.Kc=e.acc;this.ec=e.g;this.Tj=e.lar;this.Vj=e.lsr;this.Uj=e.lor;this.Lh=e.dm;this.timeout=e.to;this.kh=e.pcc;this.Yl=e.ft;k.push.apply(k,this.Dc);U(this.Dc);var h,a,b,d=e.p;e=0;for(h=d.length;e<h;e++)a=this.xo(),b=d[e],a.x=b[0],a.y=b[1],a.speed=b[2],a.q=b[3],a.opacity=b[4],a.km=b[5],a.size=b[6],a.Xh=b[7],a.If=b[8]};u.ae=function(){k.push.apply(k,this.Dc);U(this.Dc)};u.xo=function(){var n;k.length?(n=k.pop(),n.Ta=this):n=new e(this);this.Dc.push(n);
n.Wa=!0;return n};u.Ma=function(){var e=this.b.Zf(this),h,a,b,d;if(0===this.Li&&this.Jn)for(this.kh+=e*this.pn,a=A(this.kh),this.kh-=a,h=0;h<a;h++)b=this.xo(),b.init();this.Ym=this.x;this.$m=this.y;this.Zm=this.x;this.Xm=this.y;d=h=0;for(a=this.Dc.length;h<a;h++)b=this.Dc[h],this.Dc[d]=b,this.b.Z=!0,1===this.Li&&this.Yl&&b.init(),b.Ma(e),b.Wa?(b.left()<this.Ym&&(this.Ym=b.left()),b.right()>this.Zm&&(this.Zm=b.right()),b.top()<this.$m&&(this.$m=b.top()),b.bottom()>this.Xm&&(this.Xm=b.bottom()),d++):
k.push(b);Aa(this.Dc,d);this.F();this.Yl=!1;1===this.Li&&0===this.Dc.length&&this.b.ke(this)};u.Mc=function(e){var h,a,b,d=this.u;h=0;for(a=this.Dc.length;h<a;h++)b=this.Dc[h],b.right()>=d.ra&&b.bottom()>=d.ta&&b.left()<=d.Ba&&b.top()<=d.Aa&&b.Mc(e)};u.Hb=function(e){this.Au=this.u.Nc();e.vc(this.type.R);var h,a,b,d=this.u;h=0;for(a=this.Dc.length;h<a;h++)b=this.Dc[h],b.right()>=d.ra&&b.bottom()>=d.ta&&b.left()<=d.Ba&&b.top()<=d.Aa&&b.Hb(e)};q.n=new function(){};p.prototype.Wx=function(e){this.Jn=
0!==e};q.C=new p;q.ea=new function(){}})();function Y(e){this.b=e}
(function(){function e(){if(0===this.Mo.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mi?b.drawImage(this.H,this.xi,this.yi,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.H,0,0,this.width,this.height);this.Mo=a.toDataURL("image/png")}return this.Mo}function p(){}function q(a){a[0]=0;a[1]=0;a[2]=0;y.push(a)}function u(a,b){return a<b?""+a+","+b:""+b+","+a}function k(a,b,c,d){b=b.uid;c=c.uid;var f=u(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var e=y.length?y.pop():[0,0,0];e[0]=b;e[1]=c;e[2]=d;a[f]=e}}function n(a,b,c){b=u(b.uid,c.uid);a.hasOwnProperty(b)&&(q(a[b]),delete a[b])}function h(a,b,c){b=u(b.uid,c.uid);if(a.hasOwnProperty(b))return J=a[b][2],!0;J=-2;return!1}function a(a,b,c){if(!a)return!1;var d=0!==b||0!==c,f,e,g=!1,l,h=this.b.Uh(),k=h.type,h=h.Zh,r=a.ca();l=this.b.kb().sb.rd;r.ka?(this.Ia(),I.Hh(this.Na),I.offset(b,c),this.b.cp(this.u,a,I,O),r=O):r=l?this.b.TA()&&!r.la.length&&r.k.length?r.k:r.la:r.k;m=a;P=k!==a&&!h;
d&&(f=this.x,e=this.y,this.x+=b,this.y+=c,this.F());b=0;for(c=r.length;b<c;b++)if(l=r[b],this.b.nc(this,l)){g=!0;if(h)break;k!==a&&t.add(l)}d&&(this.x=f,this.y=e,this.F());U(O);return g}function b(){}function d(){}var c=Y.prototype;c.T=function(a){this.na=a;this.b=a.b};var f=c.T.prototype;f.J=function(){if(!this.M){var a,b,c,d,f,g,l,h,m;this.Rd=[];this.Bj=!1;a=0;for(b=this.Wc.length;a<b;a++){f=this.Wc[a];l={};l.name=f[0];l.speed=f[1];l.loop=f[2];l.Cq=f[3];l.Dq=f[4];l.Bu=f[5];l.qa=f[6];l.frames=[];
c=0;for(d=f[7].length;c<d;c++)g=f[7][c],h={},h.Pi=g[0],h.Mk=g[1],h.xi=g[2],h.yi=g[3],h.width=g[4],h.height=g[5],h.duration=g[6],h.Ac=g[7],h.Bc=g[8],h.sp=g[9],h.dn=g[10],h.Cu=g[11],h.Mi=0!==h.width,h.Mo="",h.nD=e,m={left:0,top:0,right:1,bottom:1},h.Pq=m,h.R=null,(m=this.b.$z(g[0]))?h.H=m:(h.H=new Image,h.H.My=g[0],h.H.Bl=g[1],h.H.Ey=null,this.b.Vk(h.H,g[0])),l.frames.push(h),this.Rd.push(h);this.Wc[a]=l}}};f.Dv=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.El=c.$b.R};f.jh=function(){if(!this.M){var a,
b,c;a=0;for(b=this.Rd.length;a<b;++a)c=this.Rd[a],c.H.Ey=null,c.R=null;this.Bj=!1;this.Dv()}};f.Ai=function(){if(!this.M&&this.k.length){var a,b,c;a=0;for(b=this.Rd.length;a<b;++a)c=this.Rd[a],c.R=this.b.D.hg(c.H,!1,this.b.Ka,c.Cu);this.Dv()}};f.pi=function(){if(!this.M&&!this.Bj&&this.b.D){var a,b,c;a=0;for(b=this.Rd.length;a<b;++a)c=this.Rd[a],c.R=this.b.D.hg(c.H,!1,this.b.Ka,c.Cu);this.Bj=!0}};f.Si=function(){if(!this.M&&!this.k.length&&this.Bj){var a,b,c;a=0;for(b=this.Rd.length;a<b;++a)c=this.Rd[a],
this.b.D.deleteTexture(c.R),c.R=null;this.Bj=!1}};var r=[];f.Ei=function(a){var b,c,d;U(r);b=0;for(c=this.Rd.length;b<c;++b)d=this.Rd[b].H,-1===r.indexOf(d)&&(a.drawImage(d,0,0),r.push(d))};c.P=function(a){this.type=a;this.b=a.b;a=this.type.Wc[0].frames[0].dn;this.kc?this.Ea.Ck(a):this.Ea=new bb(a)};var g=c.P.prototype;g.J=function(){this.visible=0===this.B[0];this.pm=this.Tg=!1;this.zd=0!==this.B[3];this.Ra=this.Ps(this.B[1])||this.type.Wc[0];this.S=this.B[2];0>this.S&&(this.S=0);this.S>=this.Ra.frames.length&&
(this.S=this.Ra.frames.length-1);var a=this.Ra.frames[this.S];this.Ea.Ck(a.dn);this.Ac=a.Ac;this.Bc=a.Bc;this.Cg=this.Ra.speed;this.Tf=this.Ra.Dq;1===this.type.Wc.length&&1===this.type.Wc[0].frames.length||0===this.Cg||(this.b.vh(this),this.Tg=!0);this.kc?this.me.reset():this.me=new $a;this.We=this.me.X;this.wg=!0;this.Oe=0;this.Kf=!0;this.Fh=this.hs="";this.ws=0;this.ul=-1;this.type.pi();var b,c,d,f,e,g,l,a=0;for(b=this.type.Wc.length;a<b;a++)for(f=this.type.Wc[a],c=0,d=f.frames.length;c<d;c++)e=
f.frames[c],0===e.width&&(e.width=e.H.width,e.height=e.H.height),e.Mi&&(l=e.H,g=e.Pq,g.left=e.xi/l.width,g.top=e.yi/l.height,g.right=(e.xi+e.width)/l.width,g.bottom=(e.yi+e.height)/l.height,0===e.xi&&0===e.yi&&e.width===l.width&&e.height===l.height&&(e.Mi=!1));this.$b=this.Ra.frames[this.S];this.El=this.$b.R};g.ab=function(){var a={a:this.Ra.qa,f:this.S,cas:this.Cg,fs:this.We,ar:this.Oe,at:this.me.X,rt:this.Tf};this.wg||(a.ap=this.wg);this.Kf||(a.af=this.Kf);return a};g.lb=function(a){var b=this.eA(a.a);
b&&(this.Ra=b);this.S=a.f;0>this.S&&(this.S=0);this.S>=this.Ra.frames.length&&(this.S=this.Ra.frames.length-1);this.Cg=a.cas;this.We=a.fs;this.Oe=a.ar;this.me.reset();this.me.X=a.at;this.wg=a.hasOwnProperty("ap")?a.ap:!0;this.Kf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Tf=a.rt:this.Tf=this.Ra.Dq;this.$b=this.Ra.frames[this.S];this.El=this.$b.R;this.Ea.Ck(this.$b.dn);this.Ac=this.$b.Ac;this.Bc=this.$b.Bc};g.Ao=function(a){this.S=a?0:this.Ra.frames.length-1;this.wg=!1;this.hs=this.Ra.name;
this.pm=!0;this.b.trigger(Y.prototype.n.tr,this);this.b.trigger(Y.prototype.n.sr,this);this.pm=!1;this.Oe=0};g.ne=function(){return this.me.X};g.Ma=function(){this.me.add(this.b.Zf(this));this.Fh.length&&this.Ds();0<=this.ul&&this.Es();var a=this.me.X,b=this.Ra,c=b.frames[this.S],d=c.duration/this.Cg;this.wg&&a>=this.We+d&&(this.Kf?this.S++:this.S--,this.We+=d,this.S>=b.frames.length&&(b.Bu?(this.Kf=!1,this.S=b.frames.length-2):b.loop?this.S=this.Tf:(this.Oe++,this.Oe>=b.Cq?this.Ao(!1):this.S=this.Tf)),
0>this.S&&(b.Bu?(this.S=1,this.Kf=!0,b.loop||(this.Oe++,this.Oe>=b.Cq&&this.Ao(!0))):b.loop?this.S=this.Tf:(this.Oe++,this.Oe>=b.Cq?this.Ao(!0):this.S=this.Tf)),0>this.S?this.S=0:this.S>=b.frames.length&&(this.S=b.frames.length-1),a>this.We+b.frames[this.S].duration/this.Cg&&(this.We=a),a=b.frames[this.S],this.Ch(c,a),this.b.Z=!0)};g.Ps=function(a){var b,c,d;b=0;for(c=this.type.Wc.length;b<c;b++)if(d=this.type.Wc[b],jb(d.name,a))return d;return null};g.eA=function(a){var b,c,d;b=0;for(c=this.type.Wc.length;b<
c;b++)if(d=this.type.Wc[b],d.qa===a)return d;return null};g.Ds=function(){var a=this.Ra.frames[this.S],b=this.Ps(this.Fh);this.Fh="";!b||jb(b.name,this.Ra.name)&&this.wg||(this.Ra=b,this.Cg=b.speed,this.Tf=b.Dq,0>this.S&&(this.S=0),this.S>=this.Ra.frames.length&&(this.S=this.Ra.frames.length-1),1===this.ws&&(this.S=0),this.wg=!0,this.We=this.me.X,this.Kf=!0,this.Ch(a,this.Ra.frames[this.S]),this.b.Z=!0)};g.Es=function(){var a=this.Ra.frames[this.S],b=this.S;this.S=A(this.ul);0>this.S&&(this.S=0);
this.S>=this.Ra.frames.length&&(this.S=this.Ra.frames.length-1);b!==this.S&&(this.Ch(a,this.Ra.frames[this.S]),this.We=this.me.X,this.b.Z=!0);this.ul=-1};g.Ch=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.Ac=b.Ac;this.Bc=b.Bc;this.Ea.Ck(b.dn);this.F();this.$b=b;this.El=b.R;c=0;for(d=this.W.length;c<d;c++)f=this.W[c],f.ou&&f.ou(a,b);this.b.trigger(Y.prototype.n.Ch,this)};g.Mc=function(a){a.globalAlpha=this.opacity;var b=this.$b,c=
b.Mi,d=b.H,f=this.x,e=this.y,g=this.width,l=this.height;if(0===this.q&&0<=g&&0<=l)f-=this.Ac*g,e-=this.Bc*l,this.b.uc&&(f=Math.round(f),e=Math.round(e)),c?a.drawImage(d,b.xi,b.yi,b.width,b.height,f,e,g,l):a.drawImage(d,f,e,g,l);else{this.b.uc&&(f=Math.round(f),e=Math.round(e));a.save();var h=0<g?1:-1,m=0<l?1:-1;a.translate(f,e);1===h&&1===m||a.scale(h,m);a.rotate(this.q*h*m);f=0-this.Ac*oa(g);e=0-this.Bc*oa(l);c?a.drawImage(d,b.xi,b.yi,b.width,b.height,f,e,oa(g),oa(l)):a.drawImage(d,f,e,oa(g),oa(l));
a.restore()}};g.Uf=function(a){this.Hb(a)};g.Hb=function(a){a.vc(this.El);a.Fe(this.opacity);var b=this.$b,c=this.Zb;if(this.b.uc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.Mi?a.Id(c.Ua+d,c.Va+f,c.pb+d,c.qb+f,c.ib+d,c.jb+f,c.gb+d,c.hb+f,b.Pq):a.Fi(c.Ua+d,c.Va+f,c.pb+d,c.qb+f,c.ib+d,c.jb+f,c.gb+d,c.hb+f)}else b.Mi?a.Id(c.Ua,c.Va,c.pb,c.qb,c.ib,c.jb,c.gb,c.hb,b.Pq):a.Fi(c.Ua,c.Va,c.pb,c.qb,c.ib,c.jb,c.gb,c.hb)};g.kA=function(a){var b=this.$b,c,d;c=0;for(d=b.sp.length;c<d;c++)if(jb(a,
b.sp[c][0]))return c;return-1};g.Lg=function(a,b){var c=this.$b,d=c.sp,f;la(a)?f=this.kA(a):f=a-1;f=A(f);if(0>f||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Ac)*this.width,d=d[f][2],d=(d-c.Bc)*this.height,c=Math.cos(this.q);f=Math.sin(this.q);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var y=[],J=-2,l=[];p.prototype.Ww=function(a){if(!a)return!1;var b=this.b,c=b.Uh(),d=c.type,f=null;c.N.collmemory?f=c.N.collmemory:(f={},c.N.collmemory=f);c.N.spriteCreatedDestroyCallback||(c.N.spriteCreatedDestroyCallback=
!0,b.hl(function(a){var b=c.N.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(q(b[d]),delete b[d])}));var e=d.ca(),g=a.ca(),e=e.Zc(),m,t,r,u,p,P,O,I=this.b.fe,y=I-1,F=b.kb().sb;for(t=0;t<e.length;t++){r=e[t];g.ka?(r.Ia(),this.b.cp(r.u,a,r.Na,l),m=l,this.b.uy(r,a,m)):m=g.Zc();for(u=0;u<m.length;u++)p=m[u],b.nc(r,p)||b.Iy(r,p)?(P=h(f,r,p),P=!P||J<y,k(f,r,p,I),P&&(b.tk(F.Ja),P=d.ca(),O=a.ca(),P.ka=!1,O.ka=!1,d===a?(P.k.length=2,P.k[0]=r,P.k[1]=p,d.Td()):(P.k.length=
1,O.k.length=1,P.k[0]=r,O.k[0]=p,d.Td(),a.Td()),F.Eq(),b.ng(F.Ja))):n(f,r,p);U(l)}return!1};var m=null,t=new fa,P=!1,O=[],I=new ua(0,0,0,0);f.finish=function(a){if(P){if(a){var b=this.b.kb().sb.rd;a=m.ca();var c=t.Af(),d,f;if(a.ka){a.ka=!1;U(a.k);d=0;for(f=c.length;d<f;++d)a.k[d]=c[d];if(b)for(U(a.la),d=0,f=m.k.length;d<f;++d)c=m.k[d],t.contains(c)||a.la.push(c)}else if(b)for(b=a.k.length,d=0,f=c.length;d<f;++d)a.k[b+d]=c[d],Ea(a.la,c[d]);else Ba(a.k,c);m.Td()}t.clear();P=!1}};p.prototype.Hw=function(b){return a.call(this,
b,0,0)};p.prototype.Iw=function(b,c,d){return a.call(this,b,c,d)};p.prototype.vw=function(a){return this.Fh.length?jb(this.Fh,a):jb(this.Ra.name,a)};p.prototype.Xv=function(a,b){return ec(this.S,a,b)};p.prototype.sr=function(a){return jb(this.hs,a)};p.prototype.tr=function(){return!0};p.prototype.Ch=function(){return!0};p.prototype.Dw=function(){return 0>this.width};c.n=new p;b.prototype.cy=function(a,b,c){if(a&&b&&(b=this.b.Cl(a,b,this.Lg(c,!0),this.Lg(c,!1)))){"undefined"!==typeof b.q&&(b.q=this.q,
b.F());this.b.nd++;var d,f,e;this.b.trigger(Object.getPrototypeOf(a.na).n.Bh,b);if(b.gc)for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],this.b.trigger(Object.getPrototypeOf(e.type.na).n.Bh,e);this.b.nd--;d=this.b.hA();c=!1;if(ja(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.Jg)c=!0,d.N.Spawn_LastExec=this.b.Jg;if(a!=this.type&&(a=a.ca(),a.ka=!1,c?(U(a.k),a.k[0]=b):a.k.push(b),b.gc))for(d=0,f=b.siblings.length;d<f;d++)e=b.siblings[d],a=e.type.ca(),a.ka=!1,c?(U(a.k),a.k[0]=e):a.k.push(e)}};b.prototype.Hx=
function(a,b){this.Fh=a;this.ws=b;this.Tg||(this.b.vh(this),this.Tg=!0);this.pm||this.Ds()};b.prototype.Ix=function(a){this.ul=a;this.Tg||(this.b.vh(this),this.Tg=!0);this.pm||this.Es()};b.prototype.Jx=function(a){this.Cg=oa(a);this.Kf=0<=a;this.Tg||(this.b.vh(this),this.Tg=!0)};b.prototype.Sx=function(a){a=oa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.F())};b.prototype.Lx=function(a){this.zd!==(0!==a)&&((this.zd=0!==a)?this.F():(this.yd.right>=this.yd.left&&this.type.kj.update(this,
this.yd,null),this.yd.set(0,0,-1,-1)))};c.C=new b;d.prototype.Pv=function(a){a.La(this.S)};d.prototype.sw=function(a,b){a.O(this.Lg(b,!0))};d.prototype.uw=function(a,b){a.O(this.Lg(b,!1))};c.ea=new d})();function Ac(e){this.b=e}
(function(){function e(a,b){return a.length?a.pop():new b}function p(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<h&&a.push(b[c]);U(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<h&&a.push(b[d]),delete b[d])}function q(b,c,d){var f=b.Cc;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(e(a,Object));c=f[c];c.text=d;c.width=b.bq(d);b.wf=pa(b.wf,c.width)}function u(){}var k=Ac.prototype;k.J=function(){};k.T=function(a){this.na=a;this.b=a.b};var n=k.T.prototype;n.J=function(){this.M||
(this.H=new Image,this.b.Vk(this.H,this.Pi),this.R=null)};n.jh=function(){this.M||(this.R=null)};n.Ai=function(){if(!this.M&&this.k.length){this.R||(this.R=this.b.D.hg(this.H,!1,this.b.Ka,this.uh));var a,b;a=0;for(b=this.k.length;a<b;a++)this.k[a].R=this.R}};n.Si=function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};n.Ei=function(a){a.drawImage(this.H,0,0)};k.P=function(a){this.type=a;this.b=a.b};n=k.P.prototype;n.ae=function(){p(a,this.Cc,!0);p(b,this.xl,!1);p(d,
this.yl,!1);Va(this.Qf)};n.J=function(){this.H=this.type.H;this.wl=this.B[0];this.Of=this.B[1];this.characterSet=this.B[2];this.text=this.B[3];this.Pf=this.B[4];this.visible=0===this.B[5];this.Ye=this.B[6]/2;this.zf=this.B[7]/2;this.Yk=0===this.B[9];this.Gh=this.B[10];this.lineHeight=this.B[11];this.Je=this.wf=0;this.kc?(U(this.Cc),Va(this.xl),Va(this.yl),Va(this.Qf)):(this.Cc=[],this.xl={},this.yl={},this.Qf={});this.td=!0;this.Yg=this.width;this.b.D&&(this.type.R||(this.type.R=this.b.D.hg(this.type.H,
!1,this.b.Ka,this.type.uh)),this.R=this.type.R);this.ey()};n.ab=function(){var a={t:this.text,csc:this.Pf,csp:this.Gh,lh:this.lineHeight,tw:this.wf,th:this.Je,lrt:this.Xg,ha:this.Ye,va:this.zf,cw:{}},b;for(b in this.Qf)a.cw[b]=this.Qf[b];return a};n.lb=function(a){this.text=a.t;this.Pf=a.csc;this.Gh=a.csp;this.lineHeight=a.lh;this.wf=a.tw;this.Je=a.th;this.Xg=a.lrt;a.hasOwnProperty("ha")&&(this.Ye=a.ha);a.hasOwnProperty("va")&&(this.zf=a.va);for(var b in a.cw)this.Qf[b]=a.cw[b];this.td=!0;this.Yg=
this.width};var h=1E3,a=[],b=[],d=[];n.ey=function(){for(var a=this.H,c=a.width,f=a.height,a=this.wl,h=this.Of,l=a/c,m=h/f,k=this.characterSet,c=Math.floor(c/a),f=Math.floor(f/h),u=0;u<k.length&&!(u>=c*f);u++){var n=u%c,p=Math.floor(u/c),q=k.charAt(u);if(this.b.D){var w=this.yl,x=n*l,L=p*m,n=(n+1)*l,p=(p+1)*m;void 0===w[q]&&(w[q]=e(d,ua));w[q].left=x;w[q].top=L;w[q].right=n;w[q].bottom=p}else w=this.xl,n=n*a,p=p*h,x=a,L=h,void 0===w[q]&&(w[q]=e(b,Object)),w[q].x=n,w[q].y=p,w[q].ao=x,w[q].mm=L}};var c=
[];k.oo=function(a){U(c);for(var b="",d,f=0;f<a.length;)if(d=a.charAt(f),"\n"===d)b.length&&(c.push(b),b=""),c.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));c.push(b);b=""}else f<a.length&&(b+=d,f++);b.length&&c.push(b)};k.po=function(b){var c=b.text,d=b.Cc;if(c&&c.length){var f=b.width;if(2>=f)p(a,d,!0);else{var l=b.Pf,h=b.Gh;if(c.length*(b.wl*l+h)-h<=f&&-1===c.indexOf("\n")&&(h=b.bq(c),h<=f)){p(a,d,!0);d.push(e(a,
Object));d[0].text=c;d[0].width=h;b.wf=h;b.Je=b.Of*l+b.lineHeight;return}this.qo(b);b.Je=d.length*(b.Of*l+b.lineHeight)}}else p(a,d,!0)};k.qo=function(b){var d=b.Yk,f=b.text,e=b.Cc,l=b.width;d&&(this.oo(f),f=c);var m="",k,u,n,p=0,z=!1;for(n=0;n<f.length;n++)"\n"===f[n]?(!0===z?z=!1:(q(b,p,m),p++),m=""):(z=!1,k=m,m+=f[n],u=b.bq(m.replace(/\s\s*$/,"")),u>l&&(""===k?(q(b,p,m),m="",z=!0):(q(b,p,k),m=f[n]),p++,d||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(q(b,p,m),p++);for(n=p;n<e.length;n++)a.length<
h&&a.push(e[n]);e.length=p};n.bq=function(a){for(var b=this.Gh,c=a.length,d=0,f=0;f<c;f++)d+=this.bp(a.charAt(f))*this.Pf+b;return d-(0<d?b:0)};n.bp=function(a){var b=this.Qf;return void 0!==b[a]?b[a]:this.wl};n.Ju=function(){if(this.td||this.width!==this.Yg)this.Je=this.wf=0,this.type.na.po(this),this.td=!1,this.Yg=this.width};n.Mc=function(a){var b=this.H;if(""!==this.text&&null!=b&&(this.Ju(),!(this.height<this.Of*this.Pf+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.uc&&
(b=Math.round(b),c=Math.round(c));var d=this.u.ra,f=this.u.ta,e=this.u.Ba,h=this.u.Aa;a.save();a.translate(b,c);a.rotate(this.q);for(var k=this.q,n=this.Ye,u=this.Pf,p=this.Of*u,q=this.lineHeight,x=this.Gh,L=this.Cc,G,B=-(this.Ac*this.width),Q=-(this.Bc*this.height),Q=Q+this.zf*pa(0,this.height-this.Je),S,E,R,T=0;T<L.length;T++){var H=L[T].text;G=n*pa(0,this.width-L[T].width);S=B+G;Q+=q;if(0===k&&c+Q+p<f)Q+=p;else{for(var C=0;C<H.length;C++){E=H.charAt(C);G=this.bp(E);var v=this.xl[E];if(0===k&&b+
S+G*u+x<d)S+=G*u+x;else{if(S+G*u>this.width+1E-5)break;void 0!==v&&(E=S,R=Q,0===k&&1===u&&(E=Math.round(E),R=Math.round(R)),a.drawImage(this.H,v.x,v.y,v.ao,v.mm,E,R,v.ao*u,v.mm*u));S+=G*u+x;if(0===k&&b+S>e)break}}Q+=p;if(0===k&&(Q+p+q>this.height||c+Q>h))break}}a.restore()}};var f=new va;n.Hb=function(a){a.vc(this.R);a.Fe(this.opacity);if(this.text&&(this.Ju(),!(this.height<this.Of*this.Pf+this.lineHeight))){this.Ia();var b=this.Zb,c=0,d=0;this.b.uc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var e=this.u.ra,h=this.u.ta,k=this.u.Ba,u=this.u.Aa,n=this.q,p=this.Ye,q=this.zf,w=this.Pf,x=this.Of*w,L=this.lineHeight,G=this.Gh,B=this.Cc,Q=this.Je,S,E,R;0!==n&&(E=Math.cos(n),R=Math.sin(n));for(var c=b.Ua+c,b=b.Va+d,T,q=q*pa(0,this.height-Q),H,C,Q=0;Q<B.length;Q++)if(d=B[Q].text,T=S=p*pa(0,this.width-B[Q].width),q+=L,0===n&&b+q+x<h)q+=x;else{for(var v=0;v<d.length;v++){var M=d.charAt(v);S=this.bp(M);M=this.yl[M];if(0===n&&c+T+S*w+G<e)T+=S*w+G;else{if(T+S*w>this.width+1E-5)break;if(void 0!==
M){var D=this.wl*w,F=this.Of*w;H=T;C=q;0===n&&1===w&&(H=Math.round(H),C=Math.round(C));f.Ua=H;f.Va=C;f.pb=H+D;f.qb=C;f.gb=H;f.hb=C+F;f.ib=H+D;f.jb=C+F;0!==n&&(H=f,C=E,D=R,F=void 0,F=H.Ua*C-H.Va*D,H.Va=H.Va*C+H.Ua*D,H.Ua=F,F=H.pb*C-H.qb*D,H.qb=H.qb*C+H.pb*D,H.pb=F,F=H.gb*C-H.hb*D,H.hb=H.hb*C+H.gb*D,H.gb=F,F=H.ib*C-H.jb*D,H.jb=H.jb*C+H.ib*D,H.ib=F);f.offset(c,b);a.Id(f.Ua,f.Va,f.pb,f.qb,f.ib,f.jb,f.gb,f.hb,M)}T+=S*w+G;if(0===n&&c+T>k)break}}q+=x;if(0===n&&(q+x+L>this.height||b+q>u))break}}};k.n=new function(){};
u.prototype.Ur=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.td=!0,this.b.Z=!0)};n.ne=function(a,b){var c=parseInt(b,10);this.Qf[a]!==c&&(this.Qf[a]=c,this.td=!0,this.b.Z=!0)};k.C=new u;k.ea=new function(){}})();function Bc(e){this.b=e}
(function(){function e(){return a.length?a.pop():{}}function p(b){var d,c;d=0;for(c=b.length;d<c;d++)a.push(b[d]);U(b)}function q(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function u(){}var k=Bc.prototype;k.J=function(){k.C.Wr=function(a){this.width!==a&&(this.width=a,this.td=!0,this.F())}};k.T=function(a){this.na=a;this.b=a.b};var n=k.T.prototype;n.J=function(){};n.jh=function(){if(!this.M){var a,d,c;a=0;for(d=this.k.length;a<d;a++)c=this.k[a],c.ye=null,c.hh=null,
c.ed=null}};k.P=function(a){this.type=a;this.b=a.b;this.kc?U(this.Cc):this.Cc=[];this.td=!0};n=k.P.prototype;n.J=function(){this.text=this.B[0];this.visible=0===this.B[1];this.font=this.B[2];this.color=this.B[3];this.Ye=this.B[4];this.zf=this.B[5];this.Yk=0===this.B[7];this.Yg=this.gf=this.width;this.ff=this.height;this.Op=this.B[8];this.$l=this.Ph="";this.Je=this.wf=this.rk=0;this.vB();this.ed=this.hh=this.ye=null;this.cu=!1;this.Xg=this.b.fe;this.kc?this.pg.set(0,0,1,1):this.pg=new ua(0,0,1,1);
this.b.D&&this.b.vh(this)};n.vB=function(){var a=this.font.split(" "),d;for(d=0;d<a.length;d++)if("pt"===a[d].substr(a[d].length-2,2)){this.rk=parseInt(a[d].substr(0,a[d].length-2));this.yq=Math.ceil(this.rk/72*96)+4;0<d&&(this.$l=a[d-1]);this.Ph=a[d+1];for(d+=2;d<a.length;d++)this.Ph+=" "+a[d];break}};n.ab=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ye,va:this.zf,wr:this.Yk,lho:this.Op,fn:this.Ph,fs:this.$l,ps:this.rk,pxh:this.yq,tw:this.wf,th:this.Je,lrt:this.Xg}};n.lb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Ye=a.ha;this.zf=a.va;this.Yk=a.wr;this.Op=a.lho;this.Ph=a.fn;this.$l=a.fs;this.rk=a.ps;this.yq=a.pxh;this.wf=a.tw;this.Je=a.th;this.Xg=a.lrt;this.td=!0;this.Yg=this.gf=this.width;this.ff=this.height};n.Ma=function(){if(this.b.D&&this.ed&&300<=this.b.fe-this.Xg){var a=this.u;this.Ia();var d=this.Na;if(d.right<a.ra||d.bottom<a.ta||d.left>a.Ba||d.top>a.Aa)this.b.D.deleteTexture(this.ed),this.ye=this.hh=this.ed=null}};n.ae=function(){this.ye=this.hh=null;this.b.D&&
this.ed&&this.b.D.deleteTexture(this.ed);this.ed=null};n.ne=function(){this.font=this.$l+" "+this.rk.toString()+"pt "+this.Ph;this.td=!0;this.b.Z=!0};n.Mc=function(a,d){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=d?1:this.opacity;var c=1;d&&(c=Math.abs(this.u.Nc()),a.save(),a.scale(c,c));if(this.td||this.width!==this.Yg)this.type.na.po(this.text,this.Cc,a,this.width,this.Yk),this.td=!1,this.Yg=this.width;this.Ia();var c=d?0:this.Zb.Ua,f=d?0:this.Zb.Va;this.b.uc&&(c=
c+.5|0,f=f+.5|0);0===this.q||d||(a.save(),a.translate(c,f),a.rotate(this.q),f=c=0);var e=f+this.height,g=this.yq,g=g+this.Op,h,k;1===this.zf?f+=Math.max(this.height/2-this.Cc.length*g/2,0):2===this.zf&&(f+=Math.max(this.height-this.Cc.length*g-2,0));for(k=0;k<this.Cc.length&&!(h=c,1===this.Ye?h=c+(this.width-this.Cc[k].width)/2:2===this.Ye&&(h=c+(this.width-this.Cc[k].width)),a.fillText(this.Cc[k].text,h,f),f+=g,f>=e-g);k++);(0!==this.q||d)&&a.restore();this.Xg=this.b.fe};n.Hb=function(a){if(!(1>
this.width||1>this.height)){var d=this.td||this.cu;this.cu=!1;var c=this.u.Nc(),f=this.u.Jb(),e=this.pg,g=c*this.width,h=c*this.height,k=Math.ceil(g),l=Math.ceil(h),m=Math.abs(k),t=Math.abs(l),n=this.b.V/2,u=this.b.U/2;this.hh||(this.ye=document.createElement("canvas"),this.ye.width=m,this.ye.height=t,this.gf=m,this.ff=t,d=!0,this.hh=this.ye.getContext("2d"));if(m!==this.gf||t!==this.ff)this.ye.width=m,this.ye.height=t,this.ed&&(a.deleteTexture(this.ed),this.ed=null),d=!0;d&&(this.hh.clearRect(0,
0,m,t),this.Mc(this.hh,!0),this.ed||(this.ed=a.Yc(m,t,this.b.Ka,this.b.cf)),a.Iv(this.ye,this.ed,this.b.cf));this.gf=m;this.ff=t;a.vc(this.ed);a.Fe(this.opacity);a.Jd();a.translate(-n,-u);a.ud();var p=this.Zb,d=this.u.$a(p.Ua,p.Va,!0,!0),m=this.u.$a(p.Ua,p.Va,!1,!0),t=this.u.$a(p.pb,p.qb,!0,!0),n=this.u.$a(p.pb,p.qb,!1,!0),u=this.u.$a(p.ib,p.jb,!0,!0),q=this.u.$a(p.ib,p.jb,!1,!0),w=this.u.$a(p.gb,p.hb,!0,!0),p=this.u.$a(p.gb,p.hb,!1,!0);if(this.b.uc||0===this.q&&0===f)var x=(d+.5|0)-d,L=(m+.5|0)-
m,d=d+x,m=m+L,t=t+x,n=n+L,u=u+x,q=q+L,w=w+x,p=p+L;0===this.q&&0===f?(t=d+k,n=m,u=t,q=m+l,w=d,p=q,e.right=1,e.bottom=1):(e.right=g/k,e.bottom=h/l);a.Id(d,m,t,n,u,q,w,p,e);a.Jd();a.scale(c,c);a.sn(-this.u.Jb());a.translate((this.u.ra+this.u.Ba)/-2,(this.u.ta+this.u.Aa)/-2);a.ud();this.Xg=this.b.fe}};var h=[];k.oo=function(a){U(h);for(var d="",c,f=0;f<a.length;)if(c=a.charAt(f),"\n"===c)d.length&&(h.push(d),d=""),h.push("\n"),++f;else if(" "===c||"\t"===c||"-"===c){do d+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));h.push(d);d=""}else f<a.length&&(d+=c,f++);d.length&&h.push(d)};var a=[];k.po=function(a,d,c,f,h){if(a&&a.length)if(2>=f)p(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=f){p(d);d.push(e());d[0].text=a;d[0].width=g;return}}this.qo(a,d,c,f,h)}else p(d)};k.qo=function(b,d,c,f,k){k&&(this.oo(b),b=h);var g="",n,u,l,m=0;for(l=0;l<b.length;l++)"\n"===b[l]?(m>=d.length&&d.push(e()),g=q(g),u=d[m],u.text=g,u.width=c.measureText(g).width,
m++,g=""):(n=g,g+=b[l],u=c.measureText(g).width,u>=f&&(m>=d.length&&d.push(e()),n=q(n),u=d[m],u.text=n,u.width=c.measureText(n).width,m++,g=b[l],k||" "!==g||(g="")));g.length&&(m>=d.length&&d.push(e()),g=q(g),u=d[m],u.text=g,u.width=c.measureText(g).width,m++);for(l=m;l<d.length;l++)a.push(d[l]);d.length=m};k.n=new function(){};u.prototype.Ur=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.td=!0,this.b.Z=!0)};k.C=new u;k.ea=new function(){}})();
function Cc(e){this.b=e}
(function(){var e=Cc.prototype;e.T=function(e){this.na=e;this.b=e.b};var p=e.T.prototype;p.J=function(){this.M||(this.H=new Image,this.H.Bl=this.Mk,this.b.Vk(this.H,this.Pi),this.R=this.pattern=null)};p.jh=function(){this.M||(this.R=null)};p.Ai=function(){if(!this.M&&this.k.length){this.R||(this.R=this.b.D.hg(this.H,!0,this.b.Ka,this.uh));var e,u;e=0;for(u=this.k.length;e<u;e++)this.k[e].R=this.R}};p.pi=function(){this.M||this.R||!this.b.D||(this.R=this.b.D.hg(this.H,!0,this.b.Ka,this.uh))};p.Si=
function(){this.M||this.k.length||!this.R||(this.b.D.deleteTexture(this.R),this.R=null)};p.Ei=function(e){e.drawImage(this.H,0,0)};e.P=function(e){this.type=e;this.b=e.b};p=e.P.prototype;p.J=function(){this.visible=0===this.B[0];this.pg=new ua(0,0,0,0);this.bt=!1;this.H=this.type.H;this.b.D?(this.type.pi(),this.R=this.type.R):(this.type.pattern||(this.type.pattern=this.b.Qa.createPattern(this.type.H,"repeat")),this.pattern=this.type.pattern)};p.Qd=function(){this.bt=!1;this.H=this.type.H};p.ae=function(){this.b.D&&
this.bt&&this.R&&(this.b.D.deleteTexture(this.R),this.R=null)};p.Mc=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var u=this.x,k=this.y;this.b.uc&&(u=Math.round(u),k=Math.round(k));var n=-(this.Ac*this.width),h=-(this.Bc*this.height),a=n%this.H.width,b=h%this.H.height;0>a&&(a+=this.H.width);0>b&&(b+=this.H.height);e.translate(u,k);e.rotate(this.q);e.translate(a,b);e.fillRect(n-a,h-b,this.width,this.height);e.restore()};p.Uf=function(e){this.Hb(e)};p.Hb=function(e){e.vc(this.R);
e.Fe(this.opacity);var u=this.pg;u.right=this.width/this.H.width;u.bottom=this.height/this.H.height;var k=this.Zb;if(this.b.uc){var n=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;e.Id(k.Ua+n,k.Va+h,k.pb+n,k.qb+h,k.ib+n,k.jb+h,k.gb+n,k.hb+h,u)}else e.Id(k.Ua,k.Va,k.pb,k.qb,k.ib,k.jb,k.gb,k.hb,u)};e.n=new function(){};e.C=new function(){};e.ea=new function(){}})();function Dc(e){this.b=e}
(function(){function e(){this.Rn=this.id=-1;this.ks=this.Mh=this.Sk=this.Cj=!1;this.Ga=new ua(0,0,0,0)}function p(a){1E4>r.length&&r.push(a)}function q(){this.id=-1;this.Ga=new ua(0,0,0,0);this.qf=null}function u(a){1E4>g.length&&g.push(a)}function k(a,b,c){var d;return y.length?(d=y.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.Fb*d.j.Sb,d.top=d.y*d.j.Tb*d.j.Rb,d.clear(),d.uk=!1,d):new n(a,b,c)}function n(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.Fb*this.j.Sb;this.top=this.y*this.j.Tb*this.j.Rb;
this.Ke=[];this.jc=[];this.yc=[];this.uk=!1;var d,f;a=0;for(b=this.j.Tb;a<b;++a){f=[];c=0;for(d=this.j.Fb;c<d;++c)f.push(-1);this.Ke.push(f)}}var h=Dc.prototype;h.T=function(a){this.na=a;this.b=a.b};var a=h.T.prototype;a.J=function(){var a,b,c;if(!this.M&&(this.H=new Image,this.H.Bl=this.Mk,this.b.Vk(this.H,this.Pi),this.Dg=[],this.Lo=!1,this.ge=[],this.qv=!1,this.Qn&&this.Qn.length))for(a=0,b=this.Qn.length;a<b;++a)(c=this.Qn[a])?this.ge.push({qf:c,Zl:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.ge.push(null)};a.Mf=function(a,b,c,d,f,e){if(!(0>a||a>=this.ge.length)&&this.ge[a]){var g=this.ge[a].Zl;a=new bb(this.ge[a].qf);a.Ag(b,c,0);e&&a.Ty();d&&a.kB(b/2);f&&a.aA(c/2);g[d?1:0][f?1:0][e?1:0]=a}};a.Xs=function(a){if(-1===a)return null;var e=a&f;return 0>e||e>=this.ge.length||!this.ge[e]?null:this.ge[e].Zl[a&b?1:0][a&d?1:0][a&c?1:0]};a.Xo=function(){var a,b,c=this.b.D;if(c)for(a=0,b=this.Dg.length;a<b;++a)c.deleteTexture(this.Dg[a]);U(this.Dg);this.Lo=!1};a.Zp=function(a,b,c,
d,f,e,g){if(!(this.Lo||0>=a||0>=b)){this.Xo();var h=this.H.width,k=this.H.height,u;for(u=d;u+b<=k;u+=b+e)for(d=c;d+a<=h;d+=a+f)this.Dg.push(this.fw(d,u,a,b,g));this.Lo=!0}};a.fw=function(a,b,c,d,f){if(this.b.D)return this.ho(a,b,c,d,!1,!1,!1,f);var e=[[[null,null],[null,null]],[[null,null],[null,null]]];e[0][0][0]=this.ho(a,b,c,d,!1,!1,!1,f);return{Zl:e,x:a,y:b,ao:c,mm:d}};a.rr=function(a,b,c,d,f){if(0>a||a>=this.Dg.length)return null;a=this.Dg[a];var e=a.Zl;b=b?1:0;c=c?1:0;d=d?1:0;var g=e[b][c][d];
if(g)return g;g=this.ho(a.x,a.y,a.ao,a.mm,0!==b,0!==c,0!==d,f);return e[b][c][d]=g};a.ho=function(a,b,c,d,f,e,g,h){var k=c,u=d;this.b.D&&!h&&(ma(k)||(k=na(k)),ma(u)||(u=na(u)));var n=document.createElement("canvas");n.width=k;n.height=u;var p=n.getContext("2d");if(this.b.Qa)return f?e?(g?(p.rotate(Math.PI/2),p.scale(-1,1)):p.scale(-1,-1),p.translate(-k,-u)):g?(p.rotate(Math.PI/2),p.translate(0,-u)):(p.scale(-1,1),p.translate(-k,0)):e?g?(p.rotate(-Math.PI/2),p.translate(-k,0)):(p.scale(1,-1),p.translate(0,
-u)):g&&(p.scale(-1,1),p.rotate(Math.PI/2)),p.drawImage(this.H,a,b,c,d,0,0,k,u),h?n:this.b.Qa.createPattern(n,"repeat");p.drawImage(this.H,a,b,c,d,0,0,k,u);a=this.b.D.Yc(k,u,this.b.Ka,!1,!h);this.b.D.Iv(n,a);return a};a.jh=function(){this.M||this.Xo()};a.Ai=function(){};a.pi=function(){};a.Si=function(){this.M||this.k.length||this.Xo()};a.Ei=function(){};h.P=function(a){this.type=a;this.b=a.b};var a=h.P.prototype,b=-2147483648,d=1073741824,c=536870912,f=536870911,r=[],g=[],y=[];n.prototype.clear=
function(){var a,b,c,d,f;this.Ke.length=this.j.Tb;a=0;for(b=this.Ke.length;a<b;++a)for(f=this.Ke[a],f||(f=[],this.Ke[a]=f),f.length=this.j.Fb,c=0,d=f.length;c<d;++c)f[c]=-1};n.prototype.fk=function(){if(!this.uk){var a=this.j.Sb,h=this.j.Rb;if(!(0>=a||0>=h)){var k,n,O,I,z,w;k=0;for(n=this.jc.length;k<n;++k)p(this.jc[k]);k=0;for(n=this.yc.length;k<n;++k)u(this.yc[k]);U(this.jc);U(this.yc);var x=Math.min(this.j.Fd,Math.floor(this.j.width/a)),y=Math.min(this.j.$d,Math.floor(this.j.height/h)),x=x-this.left/
a,y=y-this.top/h;x>this.j.Fb&&(x=this.j.Fb);y>this.j.Tb&&(y=this.j.Tb);var G=this.j.qg,B=null;k=0;for(n=y;k<n;++k){z=this.Ke[k];O=0;for(I=x;O<I;++O)w=z[O],-1===w?B&&(this.jc.push(B),B=null):G||!B||w!==B.id?(B&&this.jc.push(B),B=r.length?r.pop():new e,B.id=w,B.Rn=w&f,B.Cj=0!==(w&b),B.Sk=0!==(w&d),B.Mh=0!==(w&c),B.ks=B.Cj||B.Sk||B.Mh,B.Ga.left=O*a+this.left,B.Ga.top=k*h+this.top,B.Ga.right=B.Ga.left+a,B.Ga.bottom=B.Ga.top+h):B.Ga.right+=a;B&&(this.jc.push(B),B=null)}var B=null,J=!1;k=0;for(n=y;k<n;++k){z=
this.Ke[k];O=0;for(I=x;O<I;++O)w=z[O],-1===w?B&&(this.yc.push(B),B=null,J=!1):(y=this.j.type.Xs(w),!B||y||J?(B&&this.yc.push(B),B=g.length?g.pop():new q,B.id=w,B.qf=y?y:null,w=B.Ga,w.left=O*a+this.left,w.top=k*h+this.top,w.right=w.left+a,w.bottom=w.top+h,J=!!y):B.Ga.right+=a);B&&(this.yc.push(B),B=null,J=!1)}if(!G)for(n=this.jc.length,k=0;k<n;++k)for(I=this.jc[k],a=k+1;a<n;++a)if(O=this.jc[a],!(O.Ga.top<I.Ga.bottom)){if(O.Ga.top>I.Ga.bottom)break;if(O.Ga.right>I.Ga.right||O.Ga.left>I.Ga.left)break;
O.id===I.id&&O.Ga.left===I.Ga.left&&O.Ga.right===I.Ga.right&&(p(this.jc[a]),this.jc.splice(a,1),--n,I.Ga.bottom+=h,--a)}n=this.yc.length;for(k=0;k<n;++k)if(I=this.yc[k],!I.qf)for(z=I.Ga,a=k+1;a<n;++a)if(O=this.yc[a],I=O.Ga,!(I.top<z.bottom)){if(I.top>z.bottom)break;if(I.right>z.right||I.left>z.left)break;O.qf||I.left!==z.left||I.right!==z.right||(u(this.yc[a]),this.yc.splice(a,1),--n,z.bottom+=h,--a)}this.uk=!0}}};n.prototype.Oq=function(a,b,c){this.Ke[b][a]!==c&&(this.Ke[b][a]=c,this.uk=!1,this.j.ll=
!0,this.j.nk=!0,this.j.b.Z=!0)};a.J=function(){var a,b,c;this.visible=0===this.B[0];this.Sb=this.B[1];this.Rb=this.B[2];this.Vq=this.B[3];this.Xq=this.B[4];this.Wq=this.B[5];this.Yq=this.B[6];this.qg=0!==this.B[7];this.Fd=this.tv;this.$d=this.sv;this.gf=this.width;this.ff=this.height;var d=this.Sb,f=this.Rb;0===d&&(d=1);0===f&&(f=1);this.Fb=Math.ceil(this.b.Ab/d);this.Tb=Math.ceil(this.b.zb/f);if(!this.type.qv)for(this.type.qv=!0,a=0,b=this.type.ge.length;a<b;++a)if(c=this.type.ge[a])this.type.Mf(a,
d,f,!1,!1,!1),this.type.Mf(a,d,f,!1,!1,!0),this.type.Mf(a,d,f,!1,!0,!1),this.type.Mf(a,d,f,!1,!0,!0),this.type.Mf(a,d,f,!0,!1,!1),this.type.Mf(a,d,f,!0,!1,!0),this.type.Mf(a,d,f,!0,!0,!1),this.type.Mf(a,d,f,!0,!0,!0);this.kc||(this.Hc=[]);this.$p(!0);this.Wu(this.rv);this.type.Zp(this.Sb,this.Rb,this.Vq,this.Xq,this.Wq,this.Yq,this.qg);this.nk=!1;this.ll=!0;this.Yp()};a.Yp=function(){if(this.ll){var a,b,c,d,f;a=0;for(b=this.Hc.length;a<b;++a)for(f=this.Hc[a],c=0,d=f.length;c<d;++c)f[c].fk();this.ll=
!1}};a.wn=function(){var a,b,c,d,f;a=0;for(b=this.Hc.length;a<b;++a)for(f=this.Hc[a],c=0,d=f.length;c<d;++c)f[c].uk=!1;this.ll=!0};a.$p=function(a){var b=A(this.width/this.Sb),c=A(this.height/this.Rb);if(!(b<=this.Fd&&c<=this.$d)||a){var d;a?(a=Math.ceil(this.$d/this.Tb),d=Math.ceil(this.Fd/this.Fb)):(a=this.Hc.length,d=Math.ceil(this.Fd/this.Fb),c>this.$d&&(this.$d=c,a=Math.ceil(this.$d/this.Tb)),b>this.Fd&&(this.Fd=b,d=Math.ceil(this.Fd/this.Fb)),this.wn(),this.nk=!0,this.b.Z=!0);for(var f,b=0;b<
a;++b)if(f=this.Hc[b])for(c=f.length;c<d;++c)f.push(k(this,c,b));else{f=[];for(c=0;c<d;++c)f.push(k(this,c,b));this.Hc[b]=f}}};a.Do=function(a,b){if(0>a||0>b)return null;var c=A(b/this.Tb);if(c>=this.Hc.length)return null;var c=this.Hc[c],d=A(a/this.Fb);return d>=c.length?null:c[d]};a.Eo=function(a,b){if(0>a||0>b||b>=this.Hc.length)return null;var c=this.Hc[b];return a>=c.length?null:c[a]};a.Wu=function(a){var f=[];a=a.split(",");var e,g,h,k,n;e=0;for(g=a.length;e<g;++e)if(h=a[e],k=h.indexOf("x"),
-1<k)for(n=parseInt(h.substring(0,k),10),h=h.substring(k+1),k=parseInt(h,10),-1<h.indexOf("h")&&(k|=b),-1<h.indexOf("v")&&(k|=d),-1<h.indexOf("d")&&(k|=c);0<n;--n)f.push(k);else k=parseInt(h,10),-1<h.indexOf("h")&&(k|=b),-1<h.indexOf("v")&&(k|=d),-1<h.indexOf("d")&&(k|=c),f.push(k);for(e=a=0;e<this.$d;++e)for(g=0;g<this.Fd;++g)n=f[a++],(h=this.Do(g,e))&&h.Oq(g%this.Fb,e%this.Tb,n)};a.uA=function(){var a="";if(0>=this.Fd||0>=this.$d)return a;var e=1,g=this.jp(0,0),h,k,n,u,p,r,q,y;u=A(this.width/this.Sb);
k=A(this.height/this.Rb);for(h=0;h<k;++h)for(n=0===h?1:0;n<u;++n)p=this.jp(n,h),p===g?++e:(-1===g?(r=-1,g=y=q=!1):(r=g&f,q=0!==(g&b),y=0!==(g&d),g=0!==(g&c)),a=1===e?a+(""+r):a+(""+e+"x"+r),q&&(a+="h"),y&&(a+="v"),g&&(a+="d"),a+=",",e=1,g=p);-1===g?(r=-1,g=y=q=!1):(r=g&f,q=0!==(g&b),y=0!==(g&d),g=0!==(g&c));a=1===e?a+(""+r):a+(""+e+"x"+r);q&&(a+="h");y&&(a+="v");g&&(a+="d");return a};a.jp=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Fd||b>=this.$d)return-1;var c=this.Do(a,b);
return c?c.Ke[b%this.Tb][a%this.Fb]:-1};a.Oq=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Fd||b>=this.$d)return-1;var d=this.Do(a,b);if(!d)return-1;d.Oq(a%this.Fb,b%this.Tb,c)};a.Kv=function(a){return Math.floor((a-this.x)/(this.Fb*this.Sb))};a.Lv=function(a){return Math.floor((a-this.y)/(this.Tb*this.Rb))};a.sC=function(a){return Math.floor((a-this.x)/this.Sb)};a.tC=function(a){return Math.floor((a-this.y)/this.Rb)};a.gA=function(a,b){var c=this.Lv(a.top),d=this.Kv(a.right),
f=this.Lv(a.bottom),e,g,h;for(e=this.Kv(a.left);e<=d;++e)for(g=c;g<=f;++g)if(h=this.Eo(e,g))h.fk(),Ca(b,h.yc)};a.jC=function(a,b){var c=this.jp(this.sC(a),this.tC(b));if(-1===c)return!1;c=this.type.Xs(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.Rb)*this.Rb+this.y;a-=Math.floor((a-this.x)/this.Sb)*this.Sb+this.x;return c.qc(a,b-d)};a.ne=function(a){var b,c,d,f,e,g;b=0;for(c=this.Hc.length;b<c;++b)for(e=this.Hc[b],d=0,f=e.length;d<f;++d)g=e[d],g.fk(),Ca(a,g.yc)};a.ae=function(){var a,b,c,d,f;
a=0;for(b=this.Hc.length;a<b;++a){f=this.Hc[a];c=0;for(d=f.length;c<d;++c){for(var e=f[c],g=void 0,h=void 0,g=0,h=e.jc.length;g<h;++g)p(e.jc[g]);U(e.jc);g=0;for(h=e.yc.length;g<h;++g)u(e.yc[g]);U(e.yc);1E3>y.length&&y.push(e)}U(f)}U(this.Hc)};a.ab=function(){this.$p();return{w:A(this.width/this.Sb),h:A(this.height/this.Rb),d:this.uA()}};a.lb=function(a){this.Fd=a.w;this.$d=a.h;this.$p(!0);this.Wu(a.d);this.nk=!0;this.wn()};a.Mc=function(a){if(!(0>=this.Sb||0>=this.Rb)){this.type.Zp(this.Sb,this.Rb,
this.Vq,this.Xq,this.Wq,this.Yq,this.qg);if(this.width!==this.gf||this.height!==this.ff)this.nk=!0,this.wn(),this.Yp(),this.gf=this.width,this.ff=this.height;a.globalAlpha=this.opacity;var b=this.u,c=b.ra,d=b.ta,f=b.Ba,b=b.Aa,e=this.x,g=this.y,h=this.qg,k;this.b.uc&&(e=Math.round(e),g=Math.round(g));var n=this.Fb*this.Sb,u=this.Tb*this.Rb,p=Math.floor((c-e)/n),n=Math.floor((f-e)/n),r=Math.floor((d-g)/u),u=Math.floor((b-g)/u),q=e%this.Sb,y=g%this.Rb;this.qg&&(y=q=0);if(0!==q||0!==y)a.save(),a.translate(q,
y),e-=q,g-=y,c-=q,d-=y,f-=q,b-=y;for(var J,T,H,C,v,M,D,F,N;p<=n;++p)for(J=r;J<=u;++J)if(T=this.Eo(p,J))for(T.fk(),H=0,C=T.jc.length;H<C;++H)v=T.jc[H],-1!==v.id&&(k=v.Ga,M=k.left+e,D=k.top+g,F=k.right+e,k=k.bottom+g,M>f||F<c||D>b||k<d||(N=this.type.rr(v.Rn,v.Cj,v.Sk,v.Mh,this.qg),h?a.drawImage(N,M,D):(a.fillStyle=this.type.rr(v.Rn,v.Cj,v.Sk,v.Mh,this.qg),a.fillRect(M,D,F-M,k-D))));0===q&&0===y||a.restore()}};var J=new ua(0,0,1,1);a.Uf=function(a){this.Hb(a)};a.Hb=function(a){if(!(0>=this.Sb||0>=this.Rb)){this.type.Zp(this.Sb,
this.Rb,this.Vq,this.Xq,this.Wq,this.Yq,this.qg);if(this.width!==this.gf||this.height!==this.ff)this.nk=!0,this.wn(),this.Yp(),this.gf=this.width,this.ff=this.height;a.Fe(this.opacity);var b=this.type.Dg,c=this.u,d=c.ra,f=c.ta,e=c.Ba,c=c.Aa,g=this.x,h=this.y,k;this.b.uc&&(g=Math.round(g),h=Math.round(h));var n=this.Fb*this.Sb,u=this.Tb*this.Rb,p=Math.floor((e-g)/n),r=Math.floor((f-h)/u),u=Math.floor((c-h)/u),q,y,R,T,H,C,v,M,D,F,N,W,Z,K,ea,aa,xa;for(ea=Math.floor((d-g)/n);ea<=p;++ea)for(aa=r;aa<=u;++aa)if(xa=
this.Eo(ea,aa))for(xa.fk(),n=0,q=xa.jc.length;n<q;++n)y=xa.jc[n],-1!==y.id&&(k=y.Ga,R=k.left+g,T=k.top+h,H=k.right+g,k=k.bottom+h,R>e||H<d||T>c||k<f||(a.vc(b[y.Rn]),J.right=(H-R)/this.Sb,J.bottom=(k-T)/this.Rb,y.ks?(y.Mh&&(K=J.right,J.right=J.bottom,J.bottom=K),v=C=0,M=J.right,D=0,F=J.right,N=J.bottom,W=0,Z=J.bottom,y.Mh&&(K=W,W=M,M=K,K=Z,Z=D,D=K),y.Cj&&(K=C,C=M,M=K,K=v,v=D,D=K,K=W,W=F,F=K,K=Z,Z=N,N=K),y.Sk&&(K=C,C=W,W=K,K=v,v=Z,Z=K,K=M,M=F,F=K,K=D,D=N,N=K),a.LB(R,T,H,T,H,k,R,k,C,v,M,D,F,N,W,Z)):
a.Id(R,T,H,T,H,k,R,k,J)))}};h.n=new function(){};h.C=new function(){};h.ea=new function(){}})();function Ec(e){this.b=e}
(function(){function e(a){d=a.x;c=a.y;f=a.z}function p(a,b,c,d){var f;f=r.length?r.pop():new q;f.init(a,b,c,d);return f}function q(){this.Hk=this.id=this.$g=this.Zg=this.y=this.x=this.Mn=this.Ln=this.Mp=this.time=this.Tq=0;this.Ok=this.Vn=!1}function u(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function k(){}function n(){}var h=Ec.prototype;h.T=function(a){this.na=a;
this.b=a.b};h.T.prototype.J=function(){};h.P=function(a){this.type=a;this.b=a.b;this.touches=[];this.cq=!1};var a=h.P.prototype,b={left:0,top:0};a.uj=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 d=0,c=0,f=0,r=[];q.prototype.init=function(a,b,c,d){var f=Wa();this.Tq=this.Mp=this.time=f;this.Ln=a;this.Mn=b;this.x=a;this.y=b;this.Zg=a;this.$g=b;this.pressure=this.height=this.width=0;this.id=c;this.Hk=d;this.Ok=this.Vn=!1};q.prototype.update=
function(a,b,c,d,f,e){this.Mp=this.time;this.time=a;this.Zg=this.x;this.$g=this.y;this.x=b;this.y=c;this.width=d;this.height=f;this.pressure=e;!this.Ok&&15<=Sa(this.Ln,this.Mn,this.x,this.y)&&(this.Ok=!0)};q.prototype.hB=function(a,b){!this.Vn&&500<=Wa()-this.Tq&&!this.Ok&&15>Sa(this.Ln,this.Mn,this.x,this.y)&&(this.Vn=!0,a.Me=this.Hk,a.Ri=this.id,a.Vh=b,a.b.trigger(Ec.prototype.n.cx,a),a.Re=this.x,a.Se=this.y,a.b.trigger(Ec.prototype.n.gx,a),a.Vh=0)};var g=-1E3,y=-1E3,J=-1E4;q.prototype.Xt=function(a,
b){if(!this.Vn){var c=Wa();333>=c-this.Tq&&!this.Ok&&15>Sa(this.Ln,this.Mn,this.x,this.y)&&(a.Me=this.Hk,a.Ri=this.id,a.Vh=b,666>=c-J&&25>Sa(g,y,this.x,this.y)?(a.b.trigger(Ec.prototype.n.Xw,a),a.Re=this.x,a.Se=this.y,a.b.trigger(Ec.prototype.n.Yw,a),y=g=-1E3,J=-1E4):(a.b.trigger(Ec.prototype.n.xx,a),a.Re=this.x,a.Se=this.y,a.b.trigger(Ec.prototype.n.yx,a),g=this.x,y=this.y,J=c),a.Vh=0)}};a.J=function(){this.$A=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Vh=this.Ri=this.Me=
this.Se=this.Re=this.bs=this.as=this.$r=this.ry=this.qy=this.oy=this.Wm=this.Vm=this.Um=0;this.pC=0!==this.B[0];var a=0<this.b.zc?document:this.b.canvas,b=document;this.b.tc?b=a=window.Canvas:this.b.$c&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.nu(a)},!1),a.addEventListener("pointermove",function(a){c.mu(a)},!1),b.addEventListener("pointerup",function(a){c.Sm(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.Sm(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.nu(a)},!1),a.addEventListener("MSPointerMove",function(a){c.mu(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.Sm(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.Sm(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.qu(a)},!1),a.addEventListener("touchmove",function(a){c.pu(a)},!1),b.addEventListener("touchend",function(a){c.nq(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.nq(a,!0)},
!1));if(this.$A){var d=function(a){a=a.reading;c.$r=a.accelerationX;c.as=a.accelerationY;c.bs=a.accelerationZ},f=function(a){a=a.reading;c.Um=a.yawDegrees;c.Vm=a.pitchDegrees;c.Wm=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",d));var h=Windows.Devices.Sensors.Inclinometer.getDefault();h&&(h.reportInterval=Math.max(h.minimumReportInterval,16),h.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",d),h&&h.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",d),h&&h.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.Um=a.alpha||0;c.Vm=a.beta||0;c.Wm=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.oy=a.accelerationIncludingGravity.x||0,c.qy=a.accelerationIncludingGravity.y||
0,c.ry=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.$r=a.acceleration.x||0,c.as=a.acceleration.y||0,c.bs=a.acceleration.z||0)},!1);this.pC&&!this.b.Sa&&(jQuery(document).mousemove(function(a){c.lq(a)}),jQuery(document).mousedown(function(a){c.kq(a)}),jQuery(document).mouseup(function(a){c.mq(a)}));!this.b.gi&&this.b.md&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(e,null,{frequency:40});this.b.kC(this)};a.mu=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var c=this.uj(a.pointerId),d=Wa();if(0<=c){var f=this.b.Sa?b:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,a.pageX-f.left,a.pageY-f.top,a.width||0,a.height||0,a.pressure||0)}}};a.nu=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.Sa?b:jQuery(this.b.canvas).offset(),d=a.pageX-c.left,c=a.pageY-c.top;Wa();
this.Me=this.touches.length;this.Ri=a.pointerId;this.touches.push(p(d,c,a.pointerId,this.Me));this.b.ub=!0;this.b.trigger(Ec.prototype.n.Or,this);this.b.trigger(Ec.prototype.n.Sr,this);this.Re=d;this.Se=c;this.b.trigger(Ec.prototype.n.lo,this);this.b.ub=!1}};a.Sm=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.uj(a.pointerId);this.Me=0<=c?this.touches[c].Hk:-1;this.Ri=0<=c?this.touches[c].id:-1;this.b.ub=!0;this.b.trigger(Ec.prototype.n.Nr,
this);this.b.trigger(Ec.prototype.n.Rr,this);0<=c&&(b||this.touches[c].Xt(this,c),100>r.length&&r.push(this.touches[c]),this.touches.splice(c,1));this.b.ub=!1}};a.pu=function(a){a.preventDefault&&a.preventDefault();var c=Wa(),d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.uj(e.identifier),0<=g){var h=this.b.Sa?b:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,e.pageX-h.left,e.pageY-h.top,2*(e.AD||e.GD||e.sD||e.vD||0),2*(e.BD||e.HD||e.tD||
e.wD||0),e.mD||e.FD||e.rD||e.uD||0)}};a.qu=function(a){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.b.Sa?b:jQuery(this.b.canvas).offset();Wa();this.b.ub=!0;var d,f,e,g;d=0;for(f=a.changedTouches.length;d<f;d++)if(e=a.changedTouches[d],g=this.uj(e.identifier),-1===g){g=e.pageX-c.left;var h=e.pageY-c.top;this.Me=this.touches.length;this.Ri=e.identifier;this.touches.push(p(g,h,e.identifier,this.Me));this.b.trigger(Ec.prototype.n.Or,this);this.b.trigger(Ec.prototype.n.Sr,this);this.Re=g;this.Se=
h;this.b.trigger(Ec.prototype.n.lo,this)}this.b.ub=!1};a.nq=function(a,b){a.preventDefault&&kb(a)&&a.preventDefault();this.b.ub=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.uj(f.identifier),0<=f&&(this.Me=this.touches[f].Hk,this.Ri=this.touches[f].id,this.b.trigger(Ec.prototype.n.Nr,this),this.b.trigger(Ec.prototype.n.Rr,this),b||this.touches[f].Xt(this,f),100>r.length&&r.push(this.touches[f]),this.touches.splice(f,1));this.b.ub=!1};a.ne=function(){return this.b.md&&
0===this.Um&&0!==f?90*f:this.Um};a.Ip=function(){return this.b.md&&0===this.Vm&&0!==c?90*c:this.Vm};a.yt=function(){return this.b.md&&0===this.Wm&&0!==d?90*d:this.Wm};a.kq=function(a){u(a)||(this.qu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.cq=!0)};a.lq=function(a){this.cq&&!u(a)&&this.pu({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.mq=function(a){a.preventDefault&&this.b.nm&&!this.b.cf&&a.preventDefault();this.b.nm=!0;u(a)||(this.nq({changedTouches:[{pageX:a.pageX,
pageY:a.pageY,identifier:0}]}),this.cq=!1)};a.Nk=function(){var a,b,c,d=Wa();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Mp=d),c.hB(this,a)};k.prototype.Sr=function(){return!0};k.prototype.Rr=function(){return!0};k.prototype.lo=function(a){return a?this.b.Oi(a,this.Re,this.Se,!1):!1};k.prototype.Or=function(a){a=Math.floor(a);return a===this.Me};k.prototype.Nr=function(a){a=Math.floor(a);return a===this.Me};k.prototype.cx=function(){return!0};k.prototype.xx=function(){return!0};
k.prototype.Xw=function(){return!0};k.prototype.gx=function(a){return a?this.b.Oi(a,this.Re,this.Se,!1):!1};k.prototype.yx=function(a){return a?this.b.Oi(a,this.Re,this.Se,!1):!1};k.prototype.Yw=function(a){return a?this.b.Oi(a,this.Re,this.Se,!1):!1};h.n=new k;h.C=new function(){};n.prototype.ro=function(a,b){var c=this.Vh;if(0>c||c>=this.touches.length)a.O(0);else{var d,f,e,g,h;ja(b)?(d=this.b.Xe(0),f=d.scale,e=d.xc,g=d.Qc,h=d.q,d.scale=1,d.xc=1,d.Qc=1,d.q=0,a.O(d.Eb(this.touches[c].x,this.touches[c].y,
!0)),d.scale=f,d.xc=e,d.Qc=g,d.q=h):(d=ka(b)?this.b.Xe(b):this.b.wj(b))?a.O(d.Eb(this.touches[c].x,this.touches[c].y,!0)):a.O(0)}};n.prototype.so=function(a,b){var c=this.Vh;if(0>c||c>=this.touches.length)a.O(0);else{var d,f,e,g,h;ja(b)?(d=this.b.Xe(0),f=d.scale,e=d.xc,g=d.Rc,h=d.q,d.scale=1,d.xc=1,d.Rc=1,d.q=0,a.O(d.Eb(this.touches[c].x,this.touches[c].y,!1)),d.scale=f,d.xc=e,d.Rc=g,d.q=h):(d=ka(b)?this.b.Xe(b):this.b.wj(b))?a.O(d.Eb(this.touches[c].x,this.touches[c].y,!1)):a.O(0)}};h.ea=new n})();
function Fc(e){this.b=e}
(function(){function e(){}var p=Fc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){var e=this.B[0];this.Kc=this.B[1];this.ec=this.B[2];this.Cy=0!==this.B[3];this.Lq=0!==this.B[4];this.I=Math.cos(this.j.q)*e;this.L=Math.sin(this.j.q)*e;this.Zg=this.j.x;this.$g=this.j.y;this.od=this.j.q;this.Tn=0;this.enabled=0!==this.B[5]};q.ab=function(){return{acc:this.Kc,g:this.ec,
dx:this.I,dy:this.L,lx:this.Zg,ly:this.$g,lka:this.od,t:this.Tn,e:this.enabled}};q.lb=function(e){this.Kc=e.acc;this.ec=e.g;this.I=e.dx;this.L=e.dy;this.Zg=e.lx;this.$g=e.ly;this.od=e.lka;this.Tn=e.t;this.enabled=e.e};q.Ma=function(){if(this.enabled){var e=this.b.Zf(this.j),k,n;this.j.q!==this.od&&(this.Lq&&(k=Sa(0,0,this.I,this.L),this.I=Math.cos(this.j.q)*k,this.L=Math.sin(this.j.q)*k),this.od=this.j.q);0!==this.Kc&&(k=Sa(0,0,this.I,this.L),n=0===this.I&&0===this.L?this.j.q:Ma(0,0,this.I,this.L),
k+=this.Kc*e,0>k&&(k=0),this.I=Math.cos(n)*k,this.L=Math.sin(n)*k);0!==this.ec&&(this.L+=this.ec*e);this.Zg=this.j.x;this.$g=this.j.y;if(0!==this.I||0!==this.L)if(this.j.x+=this.I*e,this.j.y+=this.L*e,this.Tn+=Sa(0,0,this.I*e,this.L*e),this.Lq&&(this.j.q=Ma(0,0,this.I,this.L),this.j.F(),this.od=this.j.q),this.j.F(),this.Cy&&(k=this.b.ob(this.j)))this.b.rf(this.j,k),k=Sa(0,0,this.I,this.L),n=this.b.Fy(this.j,this.Zg,this.$g),this.I=Math.cos(n)*k,this.L=Math.sin(n)*k,this.j.x+=this.I*e,this.j.y+=this.L*
e,this.j.F(),this.Lq&&(this.od=this.j.q=n,this.j.F()),this.b.Hd(this.j,this.I/k,this.L/k,Math.max(2.5*k*e,30))||this.b.Iu(this.j,100)}};p.n=new function(){};e.prototype.Gx=function(e){e=V(e);var k=Sa(0,0,this.I,this.L);this.I=Math.cos(e)*k;this.L=Math.sin(e)*k};e.prototype.aj=function(e){this.enabled=1===e};p.C=new e;p.ea=new function(){}})();function Gc(e){this.b=e}
(function(){function e(){}var p=Gc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){this.cs=1===this.B[0];this.sj=this.B[1];this.Wk=this.B[2];this.Rl=this.B[3];this.Sy=this.B[4];this.Qb=this.cs?0:3;this.kc?this.Ld.reset():this.Ld=new $a;this.fh=this.j.opacity?this.j.opacity:1;this.cs&&(0===this.sj?(this.Qb=1,0===this.Wk&&(this.Qb=2)):(this.j.opacity=0,this.b.Z=
!0))};q.ab=function(){return{fit:this.sj,wt:this.Wk,fot:this.Rl,s:this.Qb,st:this.Ld.X,mo:this.fh}};q.lb=function(e){this.sj=e.fit;this.Wk=e.wt;this.Rl=e.fot;this.Qb=e.s;this.Ld.reset();this.Ld.X=e.st;this.fh=e.mo};q.Ma=function(){this.Ld.add(this.b.Zf(this.j));0===this.Qb&&(this.j.opacity=this.Ld.X/this.sj*this.fh,this.b.Z=!0,this.j.opacity>=this.fh&&(this.j.opacity=this.fh,this.Qb=1,this.Ld.reset(),this.b.trigger(Gc.prototype.n.Zw,this.j)));1===this.Qb&&this.Ld.X>=this.Wk&&(this.Qb=2,this.Ld.reset(),
this.b.trigger(Gc.prototype.n.Ax,this.j));2===this.Qb&&0!==this.Rl&&(this.j.opacity=this.fh-this.Ld.X/this.Rl*this.fh,this.b.Z=!0,0>this.j.opacity&&(this.j.opacity=0,this.Qb=3,this.Ld.reset(),this.b.trigger(Gc.prototype.n.$w,this.j),1===this.Sy&&this.b.ke(this.j)))};q.ne=function(){this.Qb=0;this.Ld.reset();0===this.sj?(this.Qb=1,0===this.Wk&&(this.Qb=2)):(this.j.opacity=0,this.b.Z=!0)};e.prototype.$w=function(){return!0};e.prototype.Zw=function(){return!0};e.prototype.Ax=function(){return!0};p.n=
new e;p.C=new function(){};p.ea=new function(){}})();function Hc(e){this.b=e}
(function(){function e(){}function p(){}var q=Hc.prototype;q.T=function(e){this.behavior=e;this.b=e.b};q.T.prototype.J=function(){};q.P=function(e,n){this.type=e;this.behavior=e.behavior;this.j=n;this.b=e.b};var u=q.P.prototype;u.J=function(){this.Le=this.Ge=this.Qb=this.Rm=this.Tm=0};u.ab=function(){return{ontime:this.Tm,offtime:this.Rm,stage:this.Qb,stagetimeleft:this.Ge,timeleft:this.Le}};u.lb=function(e){this.Tm=e.ontime;this.Rm=e.offtime;this.Qb=e.stage;this.Ge=e.stagetimeleft;this.Le=e.timeleft;
null===this.Le&&(this.Le=Infinity)};u.Ma=function(){if(!(0>=this.Le)){var e=this.b.Zf(this.j);this.Le-=e;0>=this.Le?(this.Le=0,this.j.visible=!0,this.b.Z=!0,this.b.trigger(Hc.prototype.n.bx,this.j)):(this.Ge-=e,0>=this.Ge&&(0===this.Qb?(this.j.visible=!1,this.Qb=1,this.Ge+=this.Rm):(this.j.visible=!0,this.Qb=0,this.Ge+=this.Tm),this.b.Z=!0))}};e.prototype.bx=function(){return!0};q.n=new e;p.prototype.kw=function(e,n,h){this.Tm=e;this.Rm=n;this.Qb=1;this.Ge=n;this.Le=h;this.j.visible=!1;this.b.Z=!0};
q.C=new p;q.ea=new function(){}})();function Jc(e){this.b=e}
(function(){function e(){}var p=Jc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){this.Pb=null;this.bn=-1;this.mode=this.od=this.On=this.wi=this.pf=this.pk=0;var e=this;this.kc||(this.gk=function(k){e.kk(k)});this.b.hl(this.gk)};q.ab=function(){return{uid:this.Pb?this.Pb.uid:-1,pa:this.pk,pd:this.pf,msa:this.wi,tsa:this.On,lka:this.od,m:this.mode}};q.lb=
function(e){this.bn=e.uid;this.pk=e.pa;this.pf=e.pd;this.wi=e.msa;this.On=e.tsa;this.od=e.lka;this.mode=e.m};q.Qd=function(){-1===this.bn?this.Pb=null:this.Pb=this.b.Mg(this.bn);this.bn=-1};q.kk=function(e){this.Pb==e&&(this.Pb=null)};q.ae=function(){this.Pb=null;this.b.Lu(this.gk)};q.Ma=function(){};q.Nk=function(){if(this.Pb){this.od!==this.j.q&&(this.wi=Ja(this.wi+(this.j.q-this.od)));var e=this.j.x,k=this.j.y;if(3===this.mode||4===this.mode){var n=Sa(this.j.x,this.j.y,this.Pb.x,this.Pb.y);if(n>
this.pf||4===this.mode&&n<this.pf)k=Ma(this.Pb.x,this.Pb.y,this.j.x,this.j.y),e=this.Pb.x+Math.cos(k)*this.pf,k=this.Pb.y+Math.sin(k)*this.pf}else e=this.Pb.x+Math.cos(this.Pb.q+this.pk)*this.pf,k=this.Pb.y+Math.sin(this.Pb.q+this.pk)*this.pf;this.od=n=Ja(this.wi+(this.Pb.q-this.On));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===e&&this.j.y===k||(this.j.x=e,this.j.y=k,this.j.F());0!==this.mode&&2!==this.mode||this.j.q===n||(this.j.q=n,this.j.F())}};p.n=new function(){};e.prototype.Dx=
function(e,k){if(e){var n=e.Us(this.j);n&&(this.Pb=n,this.pk=Ma(n.x,n.y,this.j.x,this.j.y)-n.q,this.pf=Sa(n.x,n.y,this.j.x,this.j.y),this.od=this.wi=this.j.q,this.On=n.q,this.mode=k)}};p.C=new e;p.ea=new function(){}})();function Oc(e){this.b=e}
(function(){function e(){}function p(){}var q=Oc.prototype;q.T=function(e){this.behavior=e;this.b=e.b};q.T.prototype.J=function(){};q.P=function(e,n){this.type=e;this.behavior=e.behavior;this.j=n;this.b=e.b;this.Fk=this.En=this.Dn=this.rp=this.jj=this.pj=this.hi=this.ji=this.xk=this.Sj=!1;this.Vb=null;this.Pp=-1;this.fg=this.eg=0;this.vj=!1;this.Xf=this.Sd=0;this.Xl=!0;this.L=this.I=0};var u=q.P.prototype;u.Ev=function(){this.Xa=Math.cos(this.Th);this.Ya=Math.sin(this.Th);this.Ce=Math.cos(this.Th-
Math.PI/2);this.De=Math.sin(this.Th-Math.PI/2);this.Xa=ib(this.Xa);this.Ya=ib(this.Ya);this.Ce=ib(this.Ce);this.De=ib(this.De);this.Zo=this.ec;0>this.ec&&(this.Xa*=-1,this.Ya*=-1,this.ec=Math.abs(this.ec))};u.J=function(){this.hf=this.B[0];this.Kc=this.B[1];this.Kh=this.B[2];this.Pj=this.B[3];this.Zo=this.ec=this.B[4];this.eh=this.B[5];this.Qo=0!==this.B[6];this.Jp=this.B[7]/1E3;this.Py=1===this.B[8];this.enabled=0!==this.B[9];this.Xi=!1;this.Yi=this.b.Ie(this.j);this.Qp=-1;this.sh=0;this.Th=V(90);
this.Ev();var e=this;this.Py&&!this.b.Sa&&(jQuery(document).keydown(function(n){e.iq(n)}),jQuery(document).keyup(function(n){e.jq(n)}));this.kc||(this.gk=function(n){e.kk(n)});this.b.hl(this.gk);this.j.N.isPlatformBehavior=!0};u.ab=function(){return{ii:this.rp,lfx:this.eg,lfy:this.fg,lfo:this.Vb?this.Vb.uid:-1,am:this.Sd,en:this.enabled,fall:this.Xf,ft:this.Xl,dx:this.I,dy:this.L,ms:this.hf,acc:this.Kc,dec:this.Kh,js:this.Pj,g:this.ec,g1:this.Zo,mf:this.eh,wof:this.Xi,woj:this.Yi?this.Yi.uid:-1,ga:this.Th,
edj:this.Qo,cdj:this.jj,dj:this.pj,sus:this.Jp}};u.lb=function(e){this.rp=e.ii;this.eg=e.lfx;this.fg=e.lfy;this.Pp=e.lfo;this.Sd=e.am;this.enabled=e.en;this.Xf=e.fall;this.Xl=e.ft;this.I=e.dx;this.L=e.dy;this.hf=e.ms;this.Kc=e.acc;this.Kh=e.dec;this.Pj=e.js;this.ec=e.g;this.Zo=e.g1;this.eh=e.mf;this.Xi=e.wof;this.Qp=e.woj;this.Th=e.ga;this.Qo=e.edj;this.jj=e.cdj;this.pj=e.dj;this.Jp=e.sus;this.Fk=this.En=this.Dn=this.hi=this.ji=this.xk=this.Sj=!1;this.sh=0;this.Ev()};u.Qd=function(){-1===this.Pp?
this.Vb=null:this.Vb=this.b.Mg(this.Pp);-1===this.Qp?this.Yi=null:this.Yi=this.b.Mg(this.Qp)};u.kk=function(e){this.Vb==e&&(this.Vb=null)};u.ae=function(){this.Vb=null;this.b.Lu(this.gk)};u.iq=function(e){switch(e.which){case 38:e.preventDefault();this.ji=!0;break;case 37:e.preventDefault();this.Sj=!0;break;case 39:e.preventDefault(),this.xk=!0}};u.jq=function(e){switch(e.which){case 38:e.preventDefault();this.hi=this.ji=!1;break;case 37:e.preventDefault();this.Sj=!1;break;case 39:e.preventDefault(),
this.xk=!1}};u.lg=function(){this.ji=this.xk=this.Sj=!1};u.ne=function(){return 0>this.ec?-1:1};u.mt=function(){var e=null,n=null,h,a;h=this.j.x;a=this.j.y;this.j.x+=this.Xa;this.j.y+=this.Ya;this.j.F();if(this.Vb&&this.b.nc(this.j,this.Vb)&&(!this.b.dr(this.Vb.type,oc)||this.Vb.N.solidEnabled))return this.j.x=h,this.j.y=a,this.j.F(),this.Vb;(e=this.b.ob(this.j))||0!==this.Xf||(n=this.b.Ie(this.j,!0));this.j.x=h;this.j.y=a;this.j.F();if(e){if(this.b.nc(this.j,e))return null;this.vj=!1;return e}if(n&&
n.length){a=e=0;for(h=n.length;e<h;e++)n[a]=n[e],this.b.nc(this.j,n[e])||a++;if(1<=a)return this.vj=!0,n[0]}return null};u.Ma=function(){};u.Eu=function(){var e=this.b.Zf(this.j),n,h,a,b,d,c,f,p,g;this.ji||this.Fk||(this.hi=!1);var u=this.Sj||this.Dn;a=this.xk||this.En;var q=(b=this.ji||this.Fk)&&!this.hi;this.Fk=this.En=this.Dn=!1;if(this.enabled){this.rp&&(q=b=a=u=!1);b||(this.sh=0);p=this.Vb;g=!1;this.Xl&&((this.b.ob(this.j)||this.b.Ie(this.j))&&this.b.Hd(this.j,-this.Xa,-this.Ya,4,!0),this.Xl=
!1);!p||0!==this.L||p.y===this.fg&&p.x===this.eg||(n=p.x-this.eg,h=p.y-this.fg,this.j.x+=n,this.j.y+=h,this.j.F(),this.eg=p.x,this.fg=p.y,g=!0,this.b.ob(this.j)&&this.b.Hd(this.j,-n,-h,2.5*Math.sqrt(n*n+h*h)));var l=this.mt();if(h=this.b.ob(this.j))if(d=Math.abs(this.j.width),c=Math.abs(this.j.height),this.j.N.inputPredicted)this.b.Hd(this.j,-this.Xa,-this.Ya,10,!1);else if(this.b.xq(this.j,-this.Xa,-this.Ya,c/8))this.b.rf(this.j,h);else if(this.b.xq(this.j,this.Ce,this.De,d/2))this.b.rf(this.j,h);
else if(this.b.xq(this.j,this.Xa,this.Ya,c/2))this.b.rf(this.j,h);else if(this.b.Iu(this.j,Math.max(d,c)/2))this.b.rf(this.j,h);else return;l?(this.jj=this.pj=!1,0<this.L&&(this.Xi||(this.b.mn(this.j,-this.Xa,-this.Ya,l),this.Xi=!0),this.L=0),p!=l)?(this.Vb=l,this.eg=l.x,this.fg=l.y,this.b.rf(this.j,l)):g&&(h=this.b.ob(this.j))&&(this.b.rf(this.j,h),0!==n&&(0<n?this.b.Hd(this.j,-this.Ce,-this.De):this.b.Hd(this.j,this.Ce,this.De)),this.b.Hd(this.j,-this.Xa,-this.Ya)):b||(this.jj=!0);if(l&&q||!l&&
this.Qo&&b&&this.jj&&!this.pj)p=this.j.x,g=this.j.y,this.j.x-=this.Xa,this.j.y-=this.Ya,this.j.F(),this.b.ob(this.j)?q=!1:(this.sh=this.Jp,this.b.trigger(Oc.prototype.n.Fr,this.j),this.Sd=2,this.L=-this.Pj,q=!0,l?this.hi=!0:this.pj=!0),this.j.x=p,this.j.y=g,this.j.F();l||(b&&0<this.sh?(this.L=-this.Pj,this.sh-=e):(this.Vb=null,this.L+=this.ec*e,this.L>this.eh&&(this.L=this.eh)),q&&(this.hi=!0));this.Xi=!!l;u==a&&(0>this.I?(this.I+=this.Kh*e,0<this.I&&(this.I=0)):0<this.I&&(this.I-=this.Kh*e,0>this.I&&
(this.I=0)));u&&!a&&(this.I=0<this.I?this.I-(this.Kc+this.Kh)*e:this.I-this.Kc*e);a&&!u&&(this.I=0>this.I?this.I+(this.Kc+this.Kh)*e:this.I+this.Kc*e);this.I>this.hf?this.I=this.hf:this.I<-this.hf&&(this.I=-this.hf);u=!1;0!==this.I&&(p=this.j.x,g=this.j.y,n=this.I*e*this.Ce,h=this.I*e*this.De,this.j.x+=this.Ce*(1<this.I?1:-1)-this.Xa,this.j.y+=this.De*(1<this.I?1:-1)-this.Ya,this.j.F(),b=!1,d=this.b.ob(this.j),this.j.x=p+n,this.j.y=g+h,this.j.F(),a=this.b.ob(this.j),!a&&l&&(a=this.b.Ie(this.j))&&
(this.j.x=p,this.j.y=g,this.j.F(),this.b.nc(this.j,a)?(a=null,b=!1):b=!0,this.j.x=p+n,this.j.y=g+h,this.j.F()),a?(n=Math.abs(this.I*e)+2,d||!this.b.Hd(this.j,-this.Xa,-this.Ya,n,b,a))?(this.b.rf(this.j,a),n=Math.max(Math.abs(this.I*e*2.5),30),this.b.Hd(this.j,this.Ce*(0>this.I?1:-1),this.De*(0>this.I?1:-1),n,!1)?!l||b||this.vj||(p=this.j.x,g=this.j.y,this.j.x+=this.Xa,this.j.y+=this.Ya,this.b.ob(this.j)?this.b.Hd(this.j,-this.Xa,-this.Ya,3,!1)||(this.j.x=p,this.j.y=g,this.j.F()):(this.j.x=p,this.j.y=
g,this.j.F())):(this.j.x=p,this.j.y=g,this.j.F()),b||(this.I=0)):!d&&!q&&Math.abs(this.L)<Math.abs(this.Pj/4)&&(this.L=0,l||(u=!0)):(p=this.mt(),l&&!p?(h=Math.ceil(Math.abs(this.I*e))+2,p=this.j.x,g=this.j.y,this.j.x+=this.Xa*h,this.j.y+=this.Ya*h,this.j.F(),this.b.ob(this.j)||this.b.Ie(this.j)?this.b.Hd(this.j,-this.Xa,-this.Ya,h+2,!0):(this.j.x=p,this.j.y=g,this.j.F())):p&&(!l&&this.vj&&(this.Vb=p,this.eg=p.x,this.fg=p.y,this.L=0,u=!0),0===this.L&&this.b.mn(this.j,-this.Xa,-this.Ya,p))));if(0!==
this.L){p=this.j.x;g=this.j.y;this.j.x+=this.L*e*this.Xa;this.j.y+=this.L*e*this.Ya;n=this.j.x;a=this.j.y;this.j.F();h=this.b.ob(this.j);b=!1;if(!h&&0<this.L&&!l){if((b=0<this.Xf?null:this.b.Ie(this.j,!0))&&b.length){if(this.Yi){this.j.x=p;this.j.y=g;this.j.F();f=d=0;for(c=b.length;d<c;d++)b[f]=b[d],this.b.nc(this.j,b[d])||f++;b.length=f;this.j.x=n;this.j.y=a;this.j.F()}1<=b.length&&(h=b[0])}b=!!h}h&&(this.b.rf(this.j,h),this.sh=0,n=b?Math.abs(this.L*e*2.5+10):Math.max(Math.abs(this.L*e*2.5+10),30),
this.b.Hd(this.j,this.Xa*(0>this.L?1:-1),this.Ya*(0>this.L?1:-1),n,b,h)?(this.Vb=h,this.eg=h.x,this.fg=h.y,(this.vj=b)&&(u=!0),this.L=0):(this.j.x=p,this.j.y=g,this.j.F(),this.Xi=!0,b||(this.L=0)))}3!==this.Sd&&0<this.L&&!l&&(this.b.trigger(Oc.prototype.n.ax,this.j),this.Sd=3);(l||u)&&0<=this.L&&(3===this.Sd||u||q&&0===this.L?(this.b.trigger(Oc.prototype.n.Jr,this.j),this.Sd=0===this.I&&0===this.L?0:1):(0!==this.Sd&&0===this.I&&0===this.L&&(this.b.trigger(Oc.prototype.n.wx,this.j),this.Sd=0),1===
this.Sd||0===this.I&&0===this.L||q||(this.b.trigger(Oc.prototype.n.mx,this.j),this.Sd=1)));0<this.Xf&&this.Xf--;this.Yi=this.b.Ie(this.j)}};e.prototype.Ew=function(){return 0!==this.I||0!==this.L};e.prototype.Fw=function(){if(0!==this.L)return!1;var e=null,n=null,h,a;h=this.j.x;a=this.j.y;this.j.x+=this.Xa;this.j.y+=this.Ya;this.j.F();(e=this.b.ob(this.j))||0!==this.Xf||(n=this.b.Ie(this.j,!0));this.j.x=h;this.j.y=a;this.j.F();if(e)return!this.b.nc(this.j,e);if(n&&n.length){a=e=0;for(h=n.length;e<
h;e++)n[a]=n[e],this.b.nc(this.j,n[e])||a++;if(1<=a)return!0}return!1};e.prototype.yw=function(e){var n=!1,h=this.j.x,a=this.j.y;0===e?(this.j.x-=2*this.Ce,this.j.y-=2*this.De):(this.j.x+=2*this.Ce,this.j.y+=2*this.De);this.j.F();if(!this.b.ob(this.j))return this.j.x=h,this.j.y=a,this.j.F(),!1;this.j.x-=3*this.Xa;this.j.y-=3*this.Ya;this.j.F();n=this.b.ob(this.j);this.j.x=h;this.j.y=a;this.j.F();return n};e.prototype.Aw=function(){return 0<this.L};e.prototype.Fr=function(){return!0};e.prototype.ax=
function(){return!0};e.prototype.wx=function(){return!0};e.prototype.mx=function(){return!0};e.prototype.Jr=function(){return!0};q.n=new e;p.prototype.Rx=function(e){this.hf=e;0>this.hf&&(this.hf=0)};p.prototype.Qx=function(e){this.eh=e;0>this.eh&&(this.eh=0)};p.prototype.by=function(e){switch(e){case 0:this.Dn=!0;break;case 1:this.En=!0;break;case 2:this.Fk=!0}};p.prototype.Yx=function(e){this.I=e};p.prototype.Zx=function(e){this.L=e};p.prototype.aj=function(e){this.enabled!==(1===e)&&(this.enabled=
1===e,this.enabled||(this.Vb=null))};p.prototype.jw=function(){var e=this.j.x,n=this.j.y;this.j.x+=this.Xa;this.j.y+=this.Ya;this.j.F();var h=this.b.Ie(this.j,!1);this.j.x=e;this.j.y=n;this.j.F();h&&(this.Xf=3,this.Vb=null)};q.C=new p;q.ea=new function(){}})();function Pc(e){this.b=e}
(function(){function e(){}var p=Pc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,a){this.type=e;this.behavior=e.behavior;this.j=a;this.b=e.b;this.Lb=0};var q=p.P.prototype,u=2*Math.PI,k=Math.PI/2,n=3*Math.PI/2;q.J=function(){this.Wa=1===this.B[0];this.ti=this.B[1];this.or=this.B[2];this.of=this.B[3];this.of+=Math.random()*this.B[4];0===this.of?this.Lb=0:(this.Lb=this.B[5]/this.of*u,this.Lb+=Math.random()*this.B[6]/this.of*u);this.Pc=this.B[7];this.Pc+=
Math.random()*this.B[8];this.vk=this.Rg=this.ua=0;5===this.ti&&(this.Pc=V(this.Pc));this.init()};q.ab=function(){return{i:this.Lb,a:this.Wa,mv:this.ti,w:this.or,p:this.of,mag:this.Pc,iv:this.ua,iv2:this.Rg,r:this.vk,lkv:this.bd,lkv2:this.Qj}};q.lb=function(e){this.Lb=e.i;this.Wa=e.a;this.ti=e.mv;this.or=e.w;this.of=e.p;this.Pc=e.mag;this.ua=e.iv;this.Rg=e.iv2||0;this.vk=e.r;this.bd=e.lkv;this.Qj=e.lkv2||0};q.init=function(){switch(this.ti){case 0:this.ua=this.j.x;break;case 1:this.ua=this.j.y;break;
case 2:this.ua=this.j.width;this.vk=this.j.height/this.j.width;break;case 3:this.ua=this.j.width;break;case 4:this.ua=this.j.height;break;case 5:this.ua=this.j.q;break;case 6:this.ua=this.j.opacity;break;case 7:this.ua=0;break;case 8:this.ua=this.j.x,this.Rg=this.j.y}this.bd=this.ua;this.Qj=this.Rg};q.Cf=function(e){e=e%u;switch(this.or){case 0:return Math.sin(e);case 1:return e<=k?e/k:e<=n?1-2*(e-k)/Math.PI:(e-n)/k-1;case 2:return 2*e/u-1;case 3:return-2*e/u+1;case 4:return e<Math.PI?-1:1}return 0};
q.Ma=function(){var e=this.b.Zf(this.j);this.Wa&&0!==e&&(0===this.of?this.Lb=0:(this.Lb+=e/this.of*u,this.Lb=this.Lb%u),this.lC())};q.lC=function(){switch(this.ti){case 0:this.j.x!==this.bd&&(this.ua+=this.j.x-this.bd);this.j.x=this.ua+this.Cf(this.Lb)*this.Pc;this.bd=this.j.x;break;case 1:this.j.y!==this.bd&&(this.ua+=this.j.y-this.bd);this.j.y=this.ua+this.Cf(this.Lb)*this.Pc;this.bd=this.j.y;break;case 2:this.j.width=this.ua+this.Cf(this.Lb)*this.Pc;this.j.height=this.j.width*this.vk;break;case 3:this.j.width=
this.ua+this.Cf(this.Lb)*this.Pc;break;case 4:this.j.height=this.ua+this.Cf(this.Lb)*this.Pc;break;case 5:this.j.q!==this.bd&&(this.ua=Ja(this.ua+(this.j.q-this.bd)));this.j.q=Ja(this.ua+this.Cf(this.Lb)*this.Pc);this.bd=this.j.q;break;case 6:this.j.opacity=this.ua+this.Cf(this.Lb)*this.Pc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.bd&&(this.ua+=this.j.x-this.bd),this.j.y!==this.Qj&&(this.Rg+=this.j.y-this.Qj),this.j.x=this.ua+Math.cos(this.j.q)*
this.Cf(this.Lb)*this.Pc,this.j.y=this.Rg+Math.sin(this.j.q)*this.Cf(this.Lb)*this.Pc,this.bd=this.j.x,this.Qj=this.j.y}this.j.F()};q.ou=function(e,a){switch(this.ti){case 2:this.ua*=a.width/e.width;this.vk=a.height/a.width;break;case 3:this.ua*=a.width/e.width;break;case 4:this.ua*=a.height/e.height}};p.n=new function(){};e.prototype.Fx=function(e){this.Wa=1===e};e.prototype.hy=function(){this.init()};p.C=new e;p.ea=new function(){}})();function Qc(e){this.b=e}
(function(){var e=Qc.prototype;e.T=function(e){this.behavior=e;this.b=e.b};e.T.prototype.J=function(){};e.P=function(e,q){this.type=e;this.behavior=e.behavior;this.j=q;this.b=e.b};e=e.P.prototype;e.J=function(){};e.Ma=function(){this.j.Ia();var e=this.j.Na,q=this.j.u.xb;(0>e.right||0>e.bottom||e.left>q.width||e.top>q.height)&&this.b.ke(this.j)}})();function pc(e){this.b=e}
(function(){function e(){}var p=pc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){this.j.N.jumpthruEnabled=0!==this.B[0]};q.Ma=function(){};p.n=new function(){};e.prototype.aj=function(e){this.j.N.jumpthruEnabled=!!e};p.C=new e})();function Sc(e){this.b=e;this.Cn=this.Ek=this.qh=this.Bn=0}
(function(){function e(){}var p=Sc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){this.enabled=0!==this.B[0]};q.ab=function(){return{smg:this.behavior.Bn,ss:this.behavior.qh,se:this.behavior.Ek,smd:this.behavior.Cn}};q.lb=function(e){this.behavior.Bn=e.smg;this.behavior.qh=e.ss;this.behavior.Ek=e.se;this.behavior.Cn=e.smd};q.Ma=function(){};q.Nk=function(){if(this.enabled){var e=
this.behavior.Nm.Af(),k=0,n=0,h,a,b,d=0;h=0;for(a=e.length;h<a;h++){a:{b=e[h];for(var c=void 0,f=void 0,p=void 0,c=0,f=b.W.length;c<f;++c)if(p=b.W[c],p.behavior instanceof Sc){b=p;break a}b=null}b&&b.enabled&&(k+=e[h].x,n+=e[h].y,++d)}e=this.j.u.xb;a=this.b.wb.X;b=h=0;a>=this.behavior.qh&&a<this.behavior.Ek&&(h=this.behavior.Bn*Math.min(this.b.wh,1),0===this.behavior.Cn&&(h*=1-(a-this.behavior.qh)/(this.behavior.Ek-this.behavior.qh)),a=Math.random()*Math.PI*2,b=Math.random()*h,h=Math.cos(a)*b,b*=
Math.sin(a));e.Jq(k/d+h);e.Kq(n/d+b)}};e.prototype.ay=function(e,k,n){this.behavior.Bn=e;this.behavior.qh=this.b.wb.X;this.behavior.Ek=this.behavior.qh+k;this.behavior.Cn=n};e.prototype.aj=function(e){this.enabled=0!==e};p.C=new e})();function oc(e){this.b=e}
(function(){function e(){}var p=oc.prototype;p.T=function(e){this.behavior=e;this.b=e.b};p.T.prototype.J=function(){};p.P=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var q=p.P.prototype;q.J=function(){this.j.N.solidEnabled=0!==this.B[0]};q.Ma=function(){};p.n=new function(){};e.prototype.aj=function(e){this.j.N.solidEnabled=!!e};p.C=new e})();
function nc(){return[sc,rc,zc,xc,yc,qc,tc,Ac,Cc,Dc,Bc,Ec,Y,Fc,oc,Jc,Qc,Oc,pc,Pc,Gc,Sc,Hc,X.prototype.n.Kr,Jc.prototype.C.Dx,X.prototype.n.Bw,Y.prototype.n.Yv,Y.prototype.C.fy,X.prototype.ea.Vf,Y.prototype.C.Ox,Y.prototype.n.Ww,Oc.prototype.n.Fw,Y.prototype.n.vw,Oc.prototype.n.Aw,Sc.prototype.C.ay,Oc.prototype.C.Zx,qc.prototype.C.CallFunction,Y.prototype.n.xw,Y.prototype.C.Kx,Y.prototype.C.Lx,Y.prototype.C.Hx,Y.prototype.C.Tr,Y.prototype.ea.Nv,Y.prototype.n.Dw,Oc.prototype.C.Yx,Oc.prototype.n.Ew,Y.prototype.n.Iw,
X.prototype.n.gy,Y.prototype.C.Sx,Oc.prototype.C.by,Y.prototype.n.Hw,X.prototype.n.Wv,Y.prototype.ea.ro,X.prototype.n.qr,X.prototype.n.lw,Y.prototype.n.Kw,X.prototype.n.iw,Cc.prototype.C.Wr,Oc.prototype.C.Rx,Y.prototype.n.sr,Oc.prototype.n.yw,X.prototype.C.iy,X.prototype.C.Nx,Y.prototype.C.Ux,tc.prototype.n.Cw,tc.prototype.n.Gr,Oc.prototype.C.Qx,qc.prototype.n.bl,qc.prototype.n.Zv,qc.prototype.ea.Cx,X.prototype.C.ew,Y.prototype.ea.so,Oc.prototype.C.jw,Oc.prototype.n.Fr,Y.prototype.ea.sw,Y.prototype.ea.uw,
rc.prototype.C.Play,Y.prototype.C.gw,Y.prototype.n.Xv,Oc.prototype.n.Jr,X.prototype.n.hw,zc.prototype.C.Tr,Pc.prototype.C.hy,Pc.prototype.C.Fx,Oc.prototype.C.aj,Y.prototype.C.Jx,zc.prototype.C.Wx,Y.prototype.C.Vr,Y.prototype.C.Vx,Ac.prototype.C.Mx,Fc.prototype.C.Gx,Cc.prototype.n.bw,Cc.prototype.C.$x,yc.prototype.n.jo,Ec.prototype.n.lo,X.prototype.C.Xx,Ac.prototype.C.Ur,xc.prototype.C.Px,xc.prototype.C.Sv,xc.prototype.n.Cr,xc.prototype.C.mw,xc.prototype.n.Er,xc.prototype.n.Dr,xc.prototype.ea.Lw,X.prototype.n.$v,
yc.prototype.n.Gw,X.prototype.C.ow,sc.prototype.C.qw,Hc.prototype.C.kw,X.prototype.C.pw,Y.prototype.ea.Pv,sc.prototype.C.Vv,Y.prototype.n.aw,Y.prototype.ea.jy,Y.prototype.ea.rw,X.prototype.C.Ex,Y.prototype.n.Br,X.prototype.ea.dB,X.prototype.C.Mv,X.prototype.C.Ow,Y.prototype.ea.dw,Y.prototype.C.cy,Ac.prototype.C.Vr,Y.prototype.n.tr,Y.prototype.C.Ix,rc.prototype.C.Tx,rc.prototype.n.Jw]};