-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc2runtime.js
More file actions
executable file
·520 lines (520 loc) · 251 KB
/
c2runtime.js
File metadata and controls
executable file
·520 lines (520 loc) · 251 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ca,da,ea,ga,ha,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,xa,ya,Ba,Ca,Da,A,Ea,Fa,Ga,Ha,Ia,G,Ja,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc={},kc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(d){return d.__proto__}:function(d){return d.constructor.prototype});
(function(){function d(b,a,c,f){this.set(b,a,c,f)}function p(){this.Za=this.Ya=this.ab=this.$a=this.hb=this.gb=this.Ma=this.La=0}function m(b,a,c,f){b<a?c<f?(u=b<c?b:c,B=a>f?a:f):(u=b<f?b:f,B=a>c?a:c):c<f?(u=a<c?a:c,B=b>f?b:f):(u=a<f?a:f,B=b>c?b:c)}function q(){this.items=this.Xd=null;this.Fi=0;I&&(this.Xd=new Set);this.Oh=[];this.$e=!0}function n(b){w[F++]=b}function r(){this.W=this.Xl=this.y=this.$h=0}function k(b){this.Cb=[];this.Qj=this.Sj=this.Tj=this.Rj=0;this.mj(b)}function a(b,a){this.Om=
b;this.Nm=a;this.cells={}}function c(b,a){this.Om=b;this.Nm=a;this.cells={}}function e(b,a,c){var f;return K.length?(f=K.pop(),f.wn=b,f.x=a,f.y=c,f):new ca(b,a,c)}function b(b,a,c){this.wn=b;this.x=a;this.y=c;this.Gb=new da}function f(b,a,c){var f;return v.length?(f=v.pop(),f.wn=b,f.x=a,f.y=c,f):new ea(b,a,c)}function l(b,a,c){this.wn=b;this.x=a;this.y=c;this.Gb=[];this.dh=!0;this.Vd=new da;this.Xh=!1}function g(b,a){return b.Ed-a.Ed}ga=function(b){window.console&&window.console.log&&window.console.log(b)};
ha=function(b){window.console&&window.console.error&&window.console.error(b)};aa=function(b){return b};ja=function(b){return"undefined"===typeof b};ka=function(b){return"number"===typeof b};la=function(b){return"string"===typeof b};ma=function(b){return 0<b&&0===(b-1&b)};na=function(b){--b;for(var a=1;32>a;a<<=1)b=b|b>>a;return b+1};oa=function(b){return 0>b?-b:b};pa=function(b,a){return b>a?b:a};qa=function(b,a){return b<a?b:a};ra=Math.PI;sa=function(b){return 0<=b?b|0:(b|0)-1};ta=function(b){var a=
b|0;return a===b?a:a+1};ua=function(b,a,c,f,h,e,g,l){var z,y,x,t;b<c?(y=b,z=c):(y=c,z=b);h<g?(t=h,x=g):(t=g,x=h);if(z<t||y>x)return!1;a<f?(y=a,z=f):(y=f,z=a);e<l?(t=e,x=l):(t=l,x=e);if(z<t||y>x)return!1;z=h-b+g-c;y=e-a+l-f;b=c-b;a=f-a;h=g-h;e=l-e;l=oa(a*h-e*b);return oa(h*y-e*z)>l?!1:oa(b*y-a*z)<=l};d.prototype.set=function(b,a,c,f){this.left=b;this.top=a;this.right=c;this.bottom=f};d.prototype.Jg=function(b){this.left=b.left;this.top=b.top;this.right=b.right;this.bottom=b.bottom};d.prototype.width=
function(){return this.right-this.left};d.prototype.height=function(){return this.bottom-this.top};d.prototype.offset=function(b,a){this.left+=b;this.top+=a;this.right+=b;this.bottom+=a;return this};d.prototype.normalize=function(){var b=0;this.left>this.right&&(b=this.left,this.left=this.right,this.right=b);this.top>this.bottom&&(b=this.top,this.top=this.bottom,this.bottom=b)};d.prototype.Wx=function(b){return!(b.right<this.left||b.bottom<this.top||b.left>this.right||b.top>this.bottom)};d.prototype.Xx=
function(b,a,c){return!(b.right+a<this.left||b.bottom+c<this.top||b.left+a>this.right||b.top+c>this.bottom)};d.prototype.Wb=function(b,a){return b>=this.left&&b<=this.right&&a>=this.top&&a<=this.bottom};d.prototype.ei=function(b){return this.left===b.left&&this.top===b.top&&this.right===b.right&&this.bottom===b.bottom};xa=d;p.prototype.Fh=function(b){this.La=b.left;this.Ma=b.top;this.gb=b.right;this.hb=b.top;this.$a=b.right;this.ab=b.bottom;this.Ya=b.left;this.Za=b.bottom};p.prototype.Es=function(b,
a){if(0===a)this.Fh(b);else{var c=Math.sin(a),f=Math.cos(a),h=b.left*c,e=b.top*c,g=b.right*c,c=b.bottom*c,l=b.left*f,z=b.top*f,y=b.right*f,f=b.bottom*f;this.La=l-e;this.Ma=z+h;this.gb=y-e;this.hb=z+g;this.$a=y-c;this.ab=f+g;this.Ya=l-c;this.Za=f+h}};p.prototype.offset=function(b,a){this.La+=b;this.Ma+=a;this.gb+=b;this.hb+=a;this.$a+=b;this.ab+=a;this.Ya+=b;this.Za+=a;return this};var u=0,B=0;p.prototype.Up=function(b){m(this.La,this.gb,this.$a,this.Ya);b.left=u;b.right=B;m(this.Ma,this.hb,this.ab,
this.Za);b.top=u;b.bottom=B};p.prototype.Wb=function(b,a){var c=this.La,f=this.Ma,h=this.gb-c,e=this.hb-f,g=this.$a-c,l=this.ab-f,z=b-c,y=a-f,x=h*h+e*e,t=h*g+e*l,e=h*z+e*y,u=g*g+l*l,w=g*z+l*y,d=1/(x*u-t*t),h=(u*e-t*w)*d,x=(x*w-t*e)*d;if(0<=h&&0<x&&1>h+x)return!0;h=this.Ya-c;e=this.Za-f;x=h*h+e*e;t=h*g+e*l;e=h*z+e*y;d=1/(x*u-t*t);h=(u*e-t*w)*d;x=(x*w-t*e)*d;return 0<=h&&0<x&&1>h+x};p.prototype.Ze=function(b,a){if(a)switch(b){case 0:return this.La;case 1:return this.gb;case 2:return this.$a;case 3:return this.Ya;
case 4:return this.La;default:return this.La}else switch(b){case 0:return this.Ma;case 1:return this.hb;case 2:return this.ab;case 3:return this.Za;case 4:return this.Ma;default:return this.Ma}};p.prototype.Dr=function(){return(this.La+this.gb+this.$a+this.Ya)/4};p.prototype.Er=function(){return(this.Ma+this.hb+this.ab+this.Za)/4};p.prototype.Mq=function(b){var a=b.Dr(),c=b.Er();if(this.Wb(a,c))return!0;a=this.Dr();c=this.Er();if(b.Wb(a,c))return!0;var f,h,e,g,l,z,y,x;for(y=0;4>y;y++)for(x=0;4>x;x++)if(a=
this.Ze(y,!0),c=this.Ze(y,!1),f=this.Ze(y+1,!0),h=this.Ze(y+1,!1),e=b.Ze(x,!0),g=b.Ze(x,!1),l=b.Ze(x+1,!0),z=b.Ze(x+1,!1),ua(a,c,f,h,e,g,l,z))return!0;return!1};ya=p;Ba=function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};Ca=function(b,a){var c,f;a=sa(a);if(!(0>a||a>=b.length)){c=a;for(f=b.length-1;c<f;c++)b[c]=b[c+1];Da(b,f)}};Da=function(b,a){b.length=a};A=function(b){Da(b,0)};Ea=function(b,a){A(b);var c,f;c=0;for(f=a.length;c<f;++c)b[c]=a[c]};Fa=function(b,a){b.push.apply(b,
a)};Ga=function(b,a){var c,f;c=0;for(f=b.length;c<f;++c)if(b[c]===a)return c;return-1};Ha=function(b,a){var c=Ga(b,a);-1!==c&&Ca(b,c)};Ia=function(b,a,c){return b<a?a:b>c?c:b};G=function(b){return b/(180/ra)};Ja=function(b){return 180/ra*b};La=function(b){b%=360;0>b&&(b+=360);return b};Ma=function(b){b%=2*ra;0>b&&(b+=2*ra);return b};Na=function(b){return La(Ja(b))};Oa=function(b){return Ma(G(b))};Pa=function(b,a,c,f){return Math.atan2(f-a,c-b)};Qa=function(b,a){if(b===a)return 0;var c=Math.sin(b),
f=Math.cos(b),h=Math.sin(a),e=Math.cos(a),c=c*h+f*e;return 1<=c?0:-1>=c?ra:Math.acos(c)};Ra=function(b,a,c){var f=Math.sin(b),h=Math.cos(b),e=Math.sin(a),g=Math.cos(a);return Math.acos(f*e+h*g)>c?0<h*e-f*g?Ma(b+c):Ma(b-c):Ma(a)};Sa=function(b,a){var c=Math.sin(b),f=Math.cos(b),h=Math.sin(a),e=Math.cos(a);return 0>=f*h-c*e};Ta=function(b,a,c,f,h,e){if(0===c)return e?b:a;var g=Math.sin(c);c=Math.cos(c);b-=f;a-=h;var l=b*g;b=b*c-a*g;a=a*c+l;return e?b+f:a+h};Ua=function(b,a,c,f){b=c-b;a=f-a;return Math.sqrt(b*
b+a*a)};Va=function(b,a){return!b!==!a};Wa=function(b,a,c){return b+(a-b)*c};Xa=function(b){for(var a in b)if(b.hasOwnProperty(a))return!0;return!1};$a=function(b){for(var a in b)b.hasOwnProperty(a)&&delete b[a]};var N=+new Date;ab=function(){if("undefined"!==typeof window.performance){var b=window.performance;if("undefined"!==typeof b.now)return b.now();if("undefined"!==typeof b.webkitNow)return b.webkitNow();if("undefined"!==typeof b.mozNow)return b.mozNow();if("undefined"!==typeof b.msNow)return b.msNow()}return Date.now()-
N};var h=!1,t=h=!1,T=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),t=/(iphone|ipod|ipad)/i.test(navigator.userAgent),T=window.c2ejecta);var I=!h&&!T&&!t&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(b){return this.ve()?!1:I?this.Xd.has(b):this.items&&this.items.hasOwnProperty(b)};q.prototype.add=function(b){if(I)this.Xd.has(b)||(this.Xd.add(b),
this.$e=!1);else{var a=b.toString(),c=this.items;c?c.hasOwnProperty(a)||(c[a]=b,this.Fi++,this.$e=!1):(this.items={},this.items[a]=b,this.Fi=1,this.$e=!1)}};q.prototype.remove=function(b){if(!this.ve())if(I)this.Xd.has(b)&&(this.Xd["delete"](b),this.$e=!1);else if(this.items){b=b.toString();var a=this.items;a.hasOwnProperty(b)&&(delete a[b],this.Fi--,this.$e=!1)}};q.prototype.clear=function(){this.ve()||(I?this.Xd.clear():(this.items=null,this.Fi=0),A(this.Oh),this.$e=!0)};q.prototype.ve=function(){return 0===
this.count()};q.prototype.count=function(){return I?this.Xd.size:this.Fi};var w=null,F=0;q.prototype.Ez=function(){if(!this.$e){if(I)A(this.Oh),w=this.Oh,F=0,this.Xd.forEach(n),w=null,F=0;else{var b=this.Oh;A(b);var a,c=0,f=this.items;if(f)for(a in f)f.hasOwnProperty(a)&&(b[c++]=f[a])}this.$e=!0}};q.prototype.Ef=function(){this.Ez();return this.Oh};da=q;new da;bb=function(b,a){I?cb(b,a.Xd):db(b,a.Ef())};cb=function(b,a){var c,f,h,e;f=c=0;for(h=b.length;c<h;++c)e=b[c],a.has(e)||(b[f++]=e);Da(b,f)};
db=function(b,a){var c,f,h,e;f=c=0;for(h=b.length;c<h;++c)e=b[c],-1===Ga(a,e)&&(b[f++]=e);Da(b,f)};r.prototype.add=function(b){this.y=b-this.$h;this.Xl=this.W+this.y;this.$h=this.Xl-this.W-this.y;this.W=this.Xl};r.prototype.reset=function(){this.W=this.Xl=this.y=this.$h=0};eb=r;fb=function(b){return b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};k.prototype.mj=function(b){this.ms=b;this.yd=b.length/2;this.Cb.length=b.length;this.Wj=this.Xj=-1;this.Xp=0};k.prototype.$g=function(){return!this.ms.length};
k.prototype.Ea=function(){for(var b=this.Cb,a=b[0],c=a,f=b[1],h=f,e,g,l=1,z=this.yd;l<z;++l)g=2*l,e=b[g],g=b[g+1],e<a&&(a=e),e>c&&(c=e),g<f&&(f=g),g>h&&(h=g);this.Rj=a;this.Sj=c;this.Tj=f;this.Qj=h};k.prototype.Fh=function(b,a,c){this.Cb.length=8;this.yd=4;var f=this.Cb;f[0]=b.left-a;f[1]=b.top-c;f[2]=b.right-a;f[3]=b.top-c;f[4]=b.right-a;f[5]=b.bottom-c;f[6]=b.left-a;f[7]=b.bottom-c;this.Xj=b.right-b.left;this.Wj=b.bottom-b.top;this.Ea()};k.prototype.Eh=function(b,a,c,f,h){this.Cb.length=8;this.yd=
4;var e=this.Cb;e[0]=b.La-a;e[1]=b.Ma-c;e[2]=b.gb-a;e[3]=b.hb-c;e[4]=b.$a-a;e[5]=b.ab-c;e[6]=b.Ya-a;e[7]=b.Za-c;this.Xj=f;this.Wj=h;this.Ea()};k.prototype.Ds=function(b){this.yd=b.yd;Ea(this.Cb,b.Cb);this.Rj=b.Rj;this.Tj-b.Tj;this.Sj=b.Sj;this.Qj=b.Qj};k.prototype.Gg=function(b,a,c){if(this.Xj!==b||this.Wj!==a||this.Xp!==c){this.Xj=b;this.Wj=a;this.Xp=c;var f,e,h,g,l,z=0,y=1,x=this.ms,t=this.Cb;0!==c&&(z=Math.sin(c),y=Math.cos(c));c=0;for(h=this.yd;c<h;c++)f=2*c,e=f+1,g=x[f]*b,l=x[e]*a,t[f]=g*y-l*
z,t[e]=l*y+g*z;this.Ea()}};k.prototype.Wb=function(b,a){var c=this.Cb;if(b===c[0]&&a===c[1])return!0;var f,e,h,g=this.yd,l=this.Rj-110,z=this.Tj-101,y=this.Sj+131,x=this.Qj+120,t,u,w=0,d=0;for(f=0;f<g;f++)e=2*f,h=(f+1)%g*2,t=c[e],e=c[e+1],u=c[h],h=c[h+1],ua(l,z,b,a,t,e,u,h)&&w++,ua(y,x,b,a,t,e,u,h)&&d++;return 1===w%2||1===d%2};k.prototype.ti=function(b,a,c){var f=b.Cb,e=this.Cb;if(this.Wb(f[0]+a,f[1]+c)||b.Wb(e[0]-a,e[1]-c))return!0;var h,g,l,z,y,x,t,u,w,d,B,n;h=0;for(z=this.yd;h<z;h++)for(g=2*h,
l=(h+1)%z*2,u=e[g],g=e[g+1],w=e[l],d=e[l+1],l=0,t=b.yd;l<t;l++)if(y=2*l,x=(l+1)%t*2,B=f[y]+a,y=f[y+1]+c,n=f[x]+a,x=f[x+1]+c,ua(u,g,w,d,B,y,n,x))return!0;return!1};gb=k;a.prototype.mf=function(b,a,c){var f;f=this.cells[b];return f?(f=f[a])?f:c?(f=e(this,b,a),this.cells[b][a]=f):null:c?(f=e(this,b,a),this.cells[b]={},this.cells[b][a]=f):null};a.prototype.lc=function(b){return sa(b/this.Om)};a.prototype.mc=function(b){return sa(b/this.Nm)};a.prototype.update=function(b,a,c){var f,e,h,g,l;if(a)for(f=
a.left,e=a.right;f<=e;++f)for(h=a.top,g=a.bottom;h<=g;++h)if(!c||!c.Wb(f,h))if(l=this.mf(f,h,!1))l.remove(b),l.ve()&&(l.Gb.clear(),1E3>K.length&&K.push(l),this.cells[f][h]=null);if(c)for(f=c.left,e=c.right;f<=e;++f)for(h=c.top,g=c.bottom;h<=g;++h)a&&a.Wb(f,h)||this.mf(f,h,!0).Gn(b)};a.prototype.Dl=function(b,a){var c,f,e,h,g,l;c=this.lc(b.left);e=this.mc(b.top);f=this.lc(b.right);for(g=this.mc(b.bottom);c<=f;++c)for(h=e;h<=g;++h)(l=this.mf(c,h,!1))&&l.dump(a)};hb=a;c.prototype.mf=function(b,a,c){var h;
h=this.cells[b];return h?(h=h[a])?h:c?(h=f(this,b,a),this.cells[b][a]=h):null:c?(h=f(this,b,a),this.cells[b]={},this.cells[b][a]=h):null};c.prototype.lc=function(b){return sa(b/this.Om)};c.prototype.mc=function(b){return sa(b/this.Nm)};c.prototype.update=function(b,a,c){var f,h,e,g,l;if(a)for(f=a.left,h=a.right;f<=h;++f)for(e=a.top,g=a.bottom;e<=g;++e)if(!c||!c.Wb(f,e))if(l=this.mf(f,e,!1))l.remove(b),l.ve()&&(l.reset(),1E3>v.length&&v.push(l),this.cells[f][e]=null);if(c)for(f=c.left,h=c.right;f<=
h;++f)for(e=c.top,g=c.bottom;e<=g;++e)a&&a.Wb(f,e)||this.mf(f,e,!0).Gn(b)};c.prototype.Dl=function(b,a,c,f,h){var e,g;b=this.lc(b);a=this.mc(a);c=this.lc(c);for(e=this.mc(f);b<=c;++b)for(f=a;f<=e;++f)(g=this.mf(b,f,!1))&&g.dump(h)};c.prototype.oy=function(b){var a,c,f,h,e;a=b.left;f=b.top;c=b.right;for(h=b.bottom;a<=c;++a)for(b=f;b<=h;++b)if(e=this.mf(a,b,!1))e.dh=!1};ib=c;var K=[];b.prototype.ve=function(){return this.Gb.ve()};b.prototype.Gn=function(b){this.Gb.add(b)};b.prototype.remove=function(b){this.Gb.remove(b)};
b.prototype.dump=function(b){Fa(b,this.Gb.Ef())};ca=b;var v=[];l.prototype.ve=function(){if(!this.Gb.length)return!0;if(this.Gb.length>this.Vd.count())return!1;this.en();return!0};l.prototype.Gn=function(b){this.Vd.contains(b)?(this.Vd.remove(b),this.Vd.ve()&&(this.Xh=!1)):this.Gb.length?(this.Gb[this.Gb.length-1].Od()>b.Od()&&(this.dh=!1),this.Gb.push(b)):(this.Gb.push(b),this.dh=!0)};l.prototype.remove=function(b){this.Vd.add(b);this.Xh=!0;30<=this.Vd.count()&&this.en()};l.prototype.en=function(){this.Xh&&
(this.Vd.count()===this.Gb.length?this.reset():(bb(this.Gb,this.Vd),this.Vd.clear(),this.Xh=!1))};l.prototype.yw=function(){this.dh||(this.Gb.sort(g),this.dh=!0)};l.prototype.reset=function(){A(this.Gb);this.dh=!0;this.Vd.clear();this.Xh=!1};l.prototype.dump=function(b){this.en();this.yw();this.Gb.length&&b.push(this.Gb)};ea=l;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");jb=function(b){return 0>=b||11<=b?"source-over":
C[b-1]};kb=function(b,a,c){if(c)switch(b.ac=c.ONE,b.Xb=c.ONE_MINUS_SRC_ALPHA,a){case 1:b.ac=c.ONE;b.Xb=c.ONE;break;case 3:b.ac=c.ONE;b.Xb=c.ZERO;break;case 4:b.ac=c.ONE_MINUS_DST_ALPHA;b.Xb=c.ONE;break;case 5:b.ac=c.DST_ALPHA;b.Xb=c.ZERO;break;case 6:b.ac=c.ZERO;b.Xb=c.SRC_ALPHA;break;case 7:b.ac=c.ONE_MINUS_DST_ALPHA;b.Xb=c.ZERO;break;case 8:b.ac=c.ZERO;b.Xb=c.ONE_MINUS_SRC_ALPHA;break;case 9:b.ac=c.DST_ALPHA;b.Xb=c.ONE_MINUS_SRC_ALPHA;break;case 10:b.ac=c.ONE_MINUS_DST_ALPHA,b.Xb=c.SRC_ALPHA}};
lb=function(b){return Math.round(1E6*b)/1E6};mb=function(b,a){return"string"!==typeof b||"string"!==typeof a||b.length!==a.length?!1:b===a?!0:b.toLowerCase()===a.toLowerCase()};nb=function(b){b=b.target;return!b||b===document||b===window||document&&document.body&&b===document.body||mb(b.tagName,"canvas")?!0:!1}})();var lc="undefined"!==typeof Float32Array?Float32Array:Array;function mc(d){var p=new lc(3);d&&(p[0]=d[0],p[1]=d[1],p[2]=d[2]);return p}
function nc(d){var p=new lc(16);d&&(p[0]=d[0],p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=d[6],p[7]=d[7],p[8]=d[8],p[9]=d[9],p[10]=d[10],p[11]=d[11],p[12]=d[12],p[13]=d[13],p[14]=d[14],p[15]=d[15]);return p}function oc(d,p){p[0]=d[0];p[1]=d[1];p[2]=d[2];p[3]=d[3];p[4]=d[4];p[5]=d[5];p[6]=d[6];p[7]=d[7];p[8]=d[8];p[9]=d[9];p[10]=d[10];p[11]=d[11];p[12]=d[12];p[13]=d[13];p[14]=d[14];p[15]=d[15]}
function pc(d,p){var m=p[0],q=p[1];p=p[2];d[0]*=m;d[1]*=m;d[2]*=m;d[3]*=m;d[4]*=q;d[5]*=q;d[6]*=q;d[7]*=q;d[8]*=p;d[9]*=p;d[10]*=p;d[11]*=p}
function qc(d,p,m,q){q||(q=nc());var n,r,k,a,c,e,b,f,l=d[0],g=d[1];d=d[2];r=m[0];k=m[1];n=m[2];m=p[1];e=p[2];l===p[0]&&g===m&&d===e?(d=q,d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1):(m=l-p[0],e=g-p[1],b=d-p[2],f=1/Math.sqrt(m*m+e*e+b*b),m*=f,e*=f,b*=f,p=k*b-n*e,n=n*m-r*b,r=r*e-k*m,(f=Math.sqrt(p*p+n*n+r*r))?(f=1/f,p*=f,n*=f,r*=f):r=n=p=0,k=e*r-b*n,a=b*p-m*r,c=m*n-e*p,(f=Math.sqrt(k*k+a*a+c*c))?(f=1/f,k*=f,a*=f,c*=f):c=a=k=0,
q[0]=p,q[1]=k,q[2]=m,q[3]=0,q[4]=n,q[5]=a,q[6]=e,q[7]=0,q[8]=r,q[9]=c,q[10]=b,q[11]=0,q[12]=-(p*l+n*g+r*d),q[13]=-(k*l+a*g+c*d),q[14]=-(m*l+e*g+b*d),q[15]=1)}
(function(){function d(a,c,e){this.we=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ja=!!e;this.Nk=this.wi=!1;this.Um=0;this.rm=1;this.jp=1E3;this.Kz=(this.jp-this.rm)/32768;this.Lm=mc([0,0,100]);this.hr=mc([0,0,0]);this.Ys=mc([0,1,0]);this.Bj=mc([1,1,1]);this.lq=!0;this.hl=nc();this.Uc=nc();this.Rn=nc();this.Tm=nc();this.F=a;this.version=0===this.F.getParameter(this.F.VERSION).indexOf("WebGL 2")?2:1;this.Iq()}function p(a,c,e){this.F=a;this.nj=
c;this.name=e;this.fd=a.getAttribLocation(c,"aPos");this.wf=a.getAttribLocation(c,"aTex");this.er=a.getUniformLocation(c,"matP");this.cl=a.getUniformLocation(c,"matMV");this.kh=a.getUniformLocation(c,"opacity");this.Un=a.getUniformLocation(c,"colorFill");this.fr=a.getUniformLocation(c,"samplerFront");this.Qi=a.getUniformLocation(c,"samplerBack");this.mg=a.getUniformLocation(c,"destStart");this.lg=a.getUniformLocation(c,"destEnd");this.Si=a.getUniformLocation(c,"seconds");this.Wn=a.getUniformLocation(c,
"pixelWidth");this.Vn=a.getUniformLocation(c,"pixelHeight");this.Pi=a.getUniformLocation(c,"layerScale");this.Oi=a.getUniformLocation(c,"layerAngle");this.Ti=a.getUniformLocation(c,"viewOrigin");this.Ri=a.getUniformLocation(c,"scrollPos");this.Rx=!!(this.Wn||this.Vn||this.Si||this.Qi||this.mg||this.lg||this.Pi||this.Oi||this.Ti||this.Ri);this.pr=this.qr=-999;this.gl=1;this.lr=this.kr=0;this.nr=this.jr=this.ir=1;this.tr=this.sr=this.rr=this.Ar=this.ur=this.mr=0;this.Qn=[];this.or=nc();this.kh&&a.uniform1f(this.kh,
1);this.Un&&a.uniform4f(this.Un,1,1,1,1);this.fr&&a.uniform1i(this.fr,0);this.Qi&&a.uniform1i(this.Qi,1);this.mg&&a.uniform2f(this.mg,0,0);this.lg&&a.uniform2f(this.lg,1,1);this.Pi&&a.uniform1f(this.Pi,1);this.Oi&&a.uniform1f(this.Oi,0);this.Ti&&a.uniform2f(this.Ti,0,0);this.Ri&&a.uniform2f(this.Ri,0,0);this.Si&&a.uniform1f(this.Si,0);this.Yf=!1}function m(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]&&a[3]===c[3]&&a[4]===c[4]&&a[5]===c[5]&&a[6]===c[6]&&a[7]===c[7]&&a[8]===c[8]&&a[9]===c[9]&&
a[10]===c[10]&&a[11]===c[11]&&a[12]===c[12]&&a[13]===c[13]&&a[14]===c[14]&&a[15]===c[15]}function q(a,c){this.type=a;this.B=c;this.F=c.F;this.dd=this.cc=this.Wr=0;this.da=this.nd=null;this.Fs=[]}var n=nc();d.prototype.Iq=function(){var a=this.F,c;this.Zq=1;this.eg=this.sf=null;this.hk=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.Ja?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.$q=a.ONE;this.Yq=a.ONE_MINUS_SRC_ALPHA;this.mm=new Float32Array(8E3*(this.Ja?3:2));this.Zl=new Float32Array(16E3);this.wo=new Float32Array(32E3);this.vo=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.vo);a.bufferData(a.ARRAY_BUFFER,this.wo.byteLength,a.DYNAMIC_DRAW);this.zj=Array(4);this.sj=Array(4);for(c=0;4>c;c++)this.zj[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.zj[c]),a.bufferData(a.ARRAY_BUFFER,this.mm.byteLength,a.DYNAMIC_DRAW),this.sj[c]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.sj[c]),a.bufferData(a.ARRAY_BUFFER,this.Zl.byteLength,a.DYNAMIC_DRAW);this.ke=0;this.Ux=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Ux);for(var e=new Uint16Array(12E3),b=c=0;12E3>c;)e[c++]=b,e[c++]=b+1,e[c++]=b+2,e[c++]=b,e[c++]=b+2,e[c++]=b+3,b+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,e,a.STATIC_DRAW);this.yh=this.Jh=this.Pe=0;this.Xa=[];c=this.Ja?"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}";e=this.bi({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}"},c,"<default>");this.Xa.push(e);e=this.bi({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.Xa.push(e);e=this.bi({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},c,"<earlyz>");this.Xa.push(e);e=this.bi({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Xa.push(e);for(var f in rc)rc.hasOwnProperty(f)&&this.Xa.push(this.bi(rc[f],c,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.he=[];this.Jd=0;this.Zb=this.Ob=!1;this.fq=this.Hi=-1;this.Lg=null;this.dn=a.createFramebuffer();this.lk=this.Fl=null;this.Sp=!1;this.Ja&&(this.lk=a.createRenderbuffer());this.Df=mc([0,0,0]);a=a.getParameter(a.ALIASED_POINT_SIZE_RANGE);this.ty=a[0];this.$n=a[1];2048<this.$n&&(this.$n=2048);this.xc(0)};p.prototype.cp=function(a){m(this.or,
a)||(oc(a,this.or),this.F.uniformMatrix4fv(this.cl,!1,a))};d.prototype.bi=function(a,c,e){var b=this.F,f=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(f,a.src);b.compileShader(f);if(!b.getShaderParameter(f,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(f),b.deleteShader(f),Error("error compiling fragment shader: "+a);var l=b.createShader(b.VERTEX_SHADER);b.shaderSource(l,c);b.compileShader(l);if(!b.getShaderParameter(l,b.COMPILE_STATUS))throw a=b.getShaderInfoLog(l),b.deleteShader(f),b.deleteShader(l),
Error("error compiling vertex shader: "+a);c=b.createProgram();b.attachShader(c,f);b.attachShader(c,l);b.linkProgram(c);if(!b.getProgramParameter(c,b.LINK_STATUS))throw a=b.getProgramInfoLog(c),b.deleteShader(f),b.deleteShader(l),b.deleteProgram(c),Error("error linking shader program: "+a);b.useProgram(c);b.deleteShader(f);b.deleteShader(l);f=new p(b,c,e);f.bn=a.bn||0;f.cn=a.cn||0;f.dq=!!a.dq;f.xd=!!a.xd;f.Qp=!!a.Qp;f.Y=a.Y||[];a=0;for(l=f.Y.length;a<l;a++)f.Y[a][1]=b.getUniformLocation(c,f.Y[a][0]),
f.Qn.push(0),b.uniform1f(f.Y[a][1],0);return f};d.prototype.un=function(a){var c,e;c=0;for(e=this.Xa.length;c<e;c++)if(this.Xa[c].name===a)return c;return-1};d.prototype.ls=function(a,c,e){var b=this.Uc,f=this.hl,l=[0,0,0,0,0,0,0,0];l[0]=b[0]*a+b[4]*c+b[12];l[1]=b[1]*a+b[5]*c+b[13];l[2]=b[2]*a+b[6]*c+b[14];l[3]=b[3]*a+b[7]*c+b[15];l[4]=f[0]*l[0]+f[4]*l[1]+f[8]*l[2]+f[12]*l[3];l[5]=f[1]*l[0]+f[5]*l[1]+f[9]*l[2]+f[13]*l[3];l[6]=f[2]*l[0]+f[6]*l[1]+f[10]*l[2]+f[14]*l[3];l[7]=-l[2];0!==l[7]&&(l[7]=1/
l[7],l[4]*=l[7],l[5]*=l[7],l[6]*=l[7],e[0]=(.5*l[4]+.5)*this.width,e[1]=(.5*l[5]+.5)*this.height)};d.prototype.vg=function(a,c,e){if(this.width!==a||this.height!==c||e){this.pe();e=this.F;this.width=a;this.height=c;e.viewport(0,0,a,c);qc(this.Lm,this.hr,this.Ys,this.Uc);if(this.Ja){var b=-a/2;a=a/2;var f=c/2;c=-c/2;var l=this.rm,g=this.jp,u=this.hl;u||(u=nc());var d=a-b,n=c-f,h=g-l;u[0]=2/d;u[1]=0;u[2]=0;u[3]=0;u[4]=0;u[5]=2/n;u[6]=0;u[7]=0;u[8]=0;u[9]=0;u[10]=-2/h;u[11]=0;u[12]=-(b+a)/d;u[13]=-(c+
f)/n;u[14]=-(g+l)/h;u[15]=1;this.Bj[0]=1;this.Bj[1]=1}else c=a/c,b=this.rm,a=this.jp,u=this.hl,g=b*Math.tan(45*Math.PI/360),c*=g,f=-c,l=-g,u||(u=nc()),d=c-f,n=g-l,h=a-b,u[0]=2*b/d,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2*b/n,u[6]=0,u[7]=0,u[8]=(c+f)/d,u[9]=(g+l)/n,u[10]=-(a+b)/h,u[11]=-1,u[12]=0,u[13]=0,u[14]=-(a*b*2)/h,u[15]=0,b=[0,0],a=[0,0],this.ls(0,0,b),this.ls(1,1,a),this.Bj[0]=1/(a[0]-b[0]),this.Bj[1]=-1/(a[1]-b[1]);b=0;for(a=this.Xa.length;b<a;b++)f=this.Xa[b],f.Yf=!1,f.er&&(e.useProgram(f.nj),
e.uniformMatrix4fv(f.er,!1,this.hl));e.useProgram(this.Xa[this.Hi].nj);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE1);e.bindTexture(e.TEXTURE_2D,null);e.activeTexture(e.TEXTURE0);this.eg=this.sf=null;this.lk&&(e.bindFramebuffer(e.FRAMEBUFFER,this.dn),e.bindRenderbuffer(e.RENDERBUFFER,this.lk),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,this.width,this.height),this.Sp||(e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,this.lk),this.Sp=!0),e.bindRenderbuffer(e.RENDERBUFFER,
null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.Fl=null)}};d.prototype.jd=function(){qc(this.Lm,this.hr,this.Ys,this.Uc);pc(this.Uc,this.Bj)};d.prototype.translate=function(a,c){if(0!==a||0!==c){this.Df[0]=a;this.Df[1]=c;this.Df[2]=0;var e=this.Uc,b=this.Df,f=b[0],l=b[1],b=b[2];e[12]=e[0]*f+e[4]*l+e[8]*b+e[12];e[13]=e[1]*f+e[5]*l+e[9]*b+e[13];e[14]=e[2]*f+e[6]*l+e[10]*b+e[14];e[15]=e[3]*f+e[7]*l+e[11]*b+e[15]}};d.prototype.scale=function(a,c){if(1!==a||1!==c)this.Df[0]=a,this.Df[1]=c,this.Df[2]=
1,pc(this.Uc,this.Df)};d.prototype.Hl=function(a){if(0!==a){var c=this.Uc,e,b=Math.sin(a);a=Math.cos(a);var f=c[0],l=c[1],g=c[2],u=c[3],d=c[4],n=c[5],h=c[6],t=c[7];e?c!==e&&(e[8]=c[8],e[9]=c[9],e[10]=c[10],e[11]=c[11],e[12]=c[12],e[13]=c[13],e[14]=c[14],e[15]=c[15]):e=c;e[0]=f*a+d*b;e[1]=l*a+n*b;e[2]=g*a+h*b;e[3]=u*a+t*b;e[4]=f*-b+d*a;e[5]=l*-b+n*a;e[6]=g*-b+h*a;e[7]=u*-b+t*a}};d.prototype.Yc=function(){if(!m(this.Rn,this.Uc)){var a=this.uc();a.type=5;a.da?oc(this.Uc,a.da):a.da=nc(this.Uc);oc(this.Uc,
this.Rn);this.Zb=this.Ob=!1}};d.prototype.Ml=function(a){this.Ja&&(32760<a&&(a=32760),this.Um=this.Lm[2]-this.rm-a*this.Kz)};q.prototype.fw=function(){var a=this.F,c=this.B;0!==this.cc?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,c.dn),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.Nk=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.Nk=
!1)};q.prototype.jw=function(){this.F.bindTexture(this.F.TEXTURE_2D,this.nd)};q.prototype.kw=function(){var a=this.F;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.nd);a.activeTexture(a.TEXTURE0)};q.prototype.gw=function(){var a=this.Wr,c=this.B;c.hk=a;c=c.Lg;c.kh&&c.gl!==a&&(c.gl=a,this.F.uniform1f(c.kh,a))};q.prototype.Zv=function(){this.F.drawElements(this.F.TRIANGLES,this.dd,this.F.UNSIGNED_SHORT,this.cc)};q.prototype.bw=function(){this.F.blendFunc(this.cc,this.dd)};q.prototype.mw=
function(){var a,c,e,b=this.B.Xa,f=this.B.fq;a=0;for(c=b.length;a<c;a++)e=b[a],a===f&&e.cl?(e.cp(this.da),e.Yf=!0):e.Yf=!1;oc(this.da,this.B.Tm)};q.prototype.$v=function(){var a=this.F,c=this.B;this.nd?(c.eg===this.nd&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),c.eg=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.dn),c.Nk||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.nd,0)):(c.Ja||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,
a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.Wv=function(){var a=this.F,c=this.cc;0===c?(a.clearColor(this.da[0],this.da[1],this.da[2],this.da[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.da[0],this.da[1],this.da[2],this.da[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.ew=function(){var a=this.F;0!==this.cc?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.Yv=
function(){var a=this.F,c=this.B;c.Ja&&a.disable(a.DEPTH_TEST);var e=c.Xa[1];a.useProgram(e.nj);!e.Yf&&e.cl&&(e.cp(c.Tm),e.Yf=!0);a.enableVertexAttribArray(e.fd);a.bindBuffer(a.ARRAY_BUFFER,c.vo);a.vertexAttribPointer(e.fd,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.cc/4,this.dd);e=c.Lg;a.useProgram(e.nj);0<=e.fd&&(a.enableVertexAttribArray(e.fd),a.bindBuffer(a.ARRAY_BUFFER,c.zj[c.ke]),a.vertexAttribPointer(e.fd,c.Ja?3:2,a.FLOAT,!1,0,0));0<=e.wf&&(a.enableVertexAttribArray(e.wf),a.bindBuffer(a.ARRAY_BUFFER,
c.sj[c.ke]),a.vertexAttribPointer(e.wf,2,a.FLOAT,!1,0,0));c.Ja&&a.enable(a.DEPTH_TEST)};q.prototype.hw=function(){var a=this.F,c=this.B,e=c.Xa[this.cc];c.fq=this.cc;c.Lg=e;a.useProgram(e.nj);!e.Yf&&e.cl&&(e.cp(c.Tm),e.Yf=!0);e.kh&&e.gl!==c.hk&&(e.gl=c.hk,a.uniform1f(e.kh,c.hk));0<=e.fd&&(a.enableVertexAttribArray(e.fd),a.bindBuffer(a.ARRAY_BUFFER,c.zj[c.ke]),a.vertexAttribPointer(e.fd,c.Ja?3:2,a.FLOAT,!1,0,0));0<=e.wf&&(a.enableVertexAttribArray(e.wf),a.bindBuffer(a.ARRAY_BUFFER,c.sj[c.ke]),a.vertexAttribPointer(e.wf,
2,a.FLOAT,!1,0,0))};q.prototype.dw=function(){var a=this.da;this.F.uniform4f(this.B.Lg.Un,a[0],a[1],a[2],a[3])};q.prototype.iw=function(){var a,c,e=this.B.Lg,b=this.F;a=this.da;e.Qi&&this.B.eg!==this.nd&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,this.nd),this.B.eg=this.nd,b.activeTexture(b.TEXTURE0));var f=a[0];e.Wn&&f!==e.qr&&(e.qr=f,b.uniform1f(e.Wn,f));f=a[1];e.Vn&&f!==e.pr&&(e.pr=f,b.uniform1f(e.Vn,f));f=a[2];c=a[3];!e.mg||f===e.kr&&c===e.lr||(e.kr=f,e.lr=c,b.uniform2f(e.mg,f,c));
f=a[4];c=a[5];!e.lg||f===e.ir&&c===e.jr||(e.ir=f,e.jr=c,b.uniform2f(e.lg,f,c));f=a[6];e.Pi&&f!==e.nr&&(e.nr=f,b.uniform1f(e.Pi,f));f=a[7];e.Oi&&f!==e.mr&&(e.mr=f,b.uniform1f(e.Oi,f));f=a[8];c=a[9];!e.Ti||f===e.ur&&c===e.Ar||(e.ur=f,e.Ar=c,b.uniform2f(e.Ti,f,c));f=a[10];c=a[11];!e.Ri||f===e.rr&&c===e.sr||(e.rr=f,e.sr=c,b.uniform2f(e.Ri,f,c));f=a[12];e.Si&&f!==e.tr&&(e.tr=f,b.uniform1f(e.Si,f));if(e.Y.length)for(a=0,c=e.Y.length;a<c;a++)f=this.Fs[a],f!==e.Qn[a]&&(e.Qn[a]=f,b.uniform1f(e.Y[a][1],f))};
d.prototype.uc=function(){this.Jd===this.he.length&&this.he.push(new q(0,this));return this.he[this.Jd++]};d.prototype.pe=function(){if(0!==this.Jd&&!this.F.isContextLost()){var a=this.F;0<this.yh&&(a.bindBuffer(a.ARRAY_BUFFER,this.vo),a.bufferSubData(a.ARRAY_BUFFER,0,this.wo.subarray(0,this.yh)),c&&0<=c.fd&&"<point>"===c.name&&a.vertexAttribPointer(c.fd,4,a.FLOAT,!1,0,0));if(0<this.Pe){var c=this.Lg;a.bindBuffer(a.ARRAY_BUFFER,this.zj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.mm.subarray(0,
this.Pe));c&&0<=c.fd&&"<point>"!==c.name&&a.vertexAttribPointer(c.fd,this.Ja?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.sj[this.ke]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Zl.subarray(0,this.Jh));c&&0<=c.wf&&"<point>"!==c.name&&a.vertexAttribPointer(c.wf,2,a.FLOAT,!1,0,0)}for(var e,a=0,c=this.Jd;a<c;a++)switch(e=this.he[a],e.type){case 1:e.Zv();break;case 2:e.jw();break;case 3:e.gw();break;case 4:e.bw();break;case 5:e.mw();break;case 6:e.$v();break;case 7:e.Wv();break;case 8:e.Yv();break;
case 9:e.hw();break;case 10:e.iw();break;case 11:e.kw();break;case 12:e.dw();break;case 13:e.ew();break;case 14:e.fw()}this.yh=this.Jh=this.Pe=this.Jd=0;this.Nk=this.Zb=this.Ob=!1;this.ke++;4<=this.ke&&(this.ke=0)}};d.prototype.He=function(a){if(a!==this.Zq&&!this.wi){var c=this.uc();c.type=3;this.Zq=c.Wr=a;this.Zb=this.Ob=!1}};d.prototype.jc=function(a){if(a!==this.sf){var c=this.uc();c.type=2;this.sf=c.nd=a;this.Zb=this.Ob=!1}};d.prototype.Af=function(a,c){if((a!==this.$q||c!==this.Yq)&&!this.wi){var e=
this.uc();e.type=4;e.cc=a;e.dd=c;this.$q=a;this.Yq=c;this.Zb=this.Ob=!1}};d.prototype.vs=function(){this.Af(this.F.ONE,this.F.ONE_MINUS_SRC_ALPHA)};d.prototype.Ah=function(a,c,e,b,f,l,g,u){15992<=this.Pe&&this.pe();var d=this.Pe,n=this.Jh,h=this.mm,t=this.Zl,k=this.Um;if(this.Ob)this.he[this.Jd-1].dd+=6;else{var p=this.uc();p.type=1;p.cc=this.Ja?d:d/2*3;p.dd=6;this.Ob=!0;this.Zb=!1}this.Ja?(h[d++]=a,h[d++]=c,h[d++]=k,h[d++]=e,h[d++]=b,h[d++]=k,h[d++]=f,h[d++]=l,h[d++]=k,h[d++]=g,h[d++]=u,h[d++]=k):
(h[d++]=a,h[d++]=c,h[d++]=e,h[d++]=b,h[d++]=f,h[d++]=l,h[d++]=g,h[d++]=u);t[n++]=0;t[n++]=0;t[n++]=1;t[n++]=0;t[n++]=1;t[n++]=1;t[n++]=0;t[n++]=1;this.Pe=d;this.Jh=n};d.prototype.zd=function(a,c,e,b,f,l,g,d,n){15992<=this.Pe&&this.pe();var k=this.Pe,h=this.Jh,t=this.mm,p=this.Zl,m=this.Um;if(this.Ob)this.he[this.Jd-1].dd+=6;else{var w=this.uc();w.type=1;w.cc=this.Ja?k:k/2*3;w.dd=6;this.Ob=!0;this.Zb=!1}var w=n.left,F=n.top,r=n.right;n=n.bottom;this.Ja?(t[k++]=a,t[k++]=c,t[k++]=m,t[k++]=e,t[k++]=b,
t[k++]=m,t[k++]=f,t[k++]=l,t[k++]=m,t[k++]=g,t[k++]=d,t[k++]=m):(t[k++]=a,t[k++]=c,t[k++]=e,t[k++]=b,t[k++]=f,t[k++]=l,t[k++]=g,t[k++]=d);p[h++]=w;p[h++]=F;p[h++]=r;p[h++]=F;p[h++]=r;p[h++]=n;p[h++]=w;p[h++]=n;this.Pe=k;this.Jh=h};d.prototype.Iy=function(a,c,e,b){7996<=this.yh&&this.pe();var f=this.yh,l=this.wo;if(this.Zb)this.he[this.Jd-1].dd++;else{var g=this.uc();g.type=8;g.cc=f;g.dd=1;this.Zb=!0;this.Ob=!1}l[f++]=a;l[f++]=c;l[f++]=e;l[f++]=b;this.yh=f};d.prototype.xc=function(a){if(this.Hi!==
a){if(!this.Xa[a]){if(0===this.Hi)return;a=0}var c=this.uc();c.type=9;this.Hi=c.cc=a;this.Zb=this.Ob=!1}};d.prototype.dj=function(a){a=this.Xa[a];return!(!a.mg&&!a.lg)};d.prototype.zo=function(a){a=this.Xa[a];return!!(a.mg||a.lg||a.dq)};d.prototype.yo=function(a){return this.Xa[a].xd};d.prototype.Ry=function(a){a=this.Xa[a];return 0!==a.bn||0!==a.cn};d.prototype.xx=function(a){return this.Xa[a].bn};d.prototype.yx=function(a){return this.Xa[a].cn};d.prototype.zx=function(a,c){return this.Xa[a].Y[c][2]};
d.prototype.Bl=function(a){return this.Xa[a].Qp};d.prototype.Dh=function(a,c,e,b,f,l,g,d,n,k,h,t,p,m,w){var F=this.Xa[this.Hi],r,v;if(F.Rx||w.length){r=this.uc();r.type=10;r.da?oc(this.Uc,r.da):r.da=nc();v=r.da;v[0]=c;v[1]=e;v[2]=b;v[3]=f;v[4]=l;v[5]=g;v[6]=d;v[7]=n;v[8]=k;v[9]=h;v[10]=t;v[11]=p;v[12]=m;F.Qi?r.nd=a:r.nd=null;if(w.length)for(e=r.Fs,e.length=w.length,a=0,c=w.length;a<c;a++)e[a]=w[a];this.Zb=this.Ob=!1}};d.prototype.clear=function(a,c,e,b){var f=this.uc();f.type=7;f.cc=0;f.da||(f.da=
nc());f.da[0]=a;f.da[1]=c;f.da[2]=e;f.da[3]=b;this.Zb=this.Ob=!1};d.prototype.clearRect=function(a,c,e,b){if(!(0>e||0>b)){var f=this.uc();f.type=7;f.cc=1;f.da||(f.da=nc());f.da[0]=a;f.da[1]=c;f.da[2]=e;f.da[3]=b;this.Zb=this.Ob=!1}};d.prototype.zs=function(a){if(this.Ja&&(a=!!a,this.wi!==a)){var c=this.uc();c.type=14;c.cc=a?1:0;this.Zb=this.Ob=!1;this.wi=a;this.Fl=null;this.wi?this.xc(2):this.xc(0)}};d.prototype.xs=function(a){if(this.Ja){var c=this.uc();c.type=13;c.cc=a?1:0;this.Zb=this.Ob=!1}};
d.prototype.uq=function(){oc(this.Rn,n);this.jd();this.Yc();var a=this.width/2,c=this.height/2;this.Ah(-a,c,a,c,a,-c,-a,-c);oc(n,this.Uc);this.Yc()};d.prototype.ws=function(a,c,e){this.xc(3);var b=this.uc();b.type=12;b.da||(b.da=nc());b.da[0]=a;b.da[1]=c;b.da[2]=e;b.da[3]=1;this.Zb=this.Ob=!1};d.prototype.rz=function(){this.xc(0)};d.prototype.cz=function(){this.xc(2)};d.prototype.Qy=function(){this.pe();this.F.flush()};var r=[],k={};d.prototype.Nv=function(){A(r);k={}};d.prototype.tf=function(a,c,
e,b){c=!!c;e=!!e;var f=a.src+","+c+","+e+(c?",undefined":""),l=null;if("undefined"!==typeof a.src&&k.hasOwnProperty(f))return l=k[f],l.Vj++,l;this.pe();var g=this.F,d=ma(a.width)&&ma(a.height),l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var n=g.RGBA,p=g.RGBA,h=g.UNSIGNED_BYTE;if(b&&!this.we)switch(b){case 1:p=n=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=n=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(1===
this.version&&!d&&c){b=document.createElement("canvas");b.width=na(a.width);b.height=na(a.height);var t=b.getContext("2d");"undefined"!==typeof t.imageSmoothingEnabled?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e);t.drawImage(a,0,0,a.width,a.height,0,0,b.width,b.height);g.texImage2D(g.TEXTURE_2D,0,n,p,h,b)}else g.texImage2D(g.TEXTURE_2D,0,n,p,h,a);c?(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));e?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(d||2<=this.version)&&this.lq?(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.sf=null;l.Lf=a.width;l.Kf=a.height;l.Vj=1;l.Wp=f;r.push(l);return k[f]=l};d.prototype.Mc=function(a,c,e,b){this.pe();var f=this.F;this.we&&(b=!1);var l=f.createTexture();f.bindTexture(f.TEXTURE_2D,l);f.texImage2D(f.TEXTURE_2D,0,f.RGBA,a,c,0,f.RGBA,b?f.UNSIGNED_SHORT_4_4_4_4:f.UNSIGNED_BYTE,null);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_S,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_WRAP_T,f.CLAMP_TO_EDGE);f.texParameteri(f.TEXTURE_2D,
f.TEXTURE_MAG_FILTER,e?f.LINEAR:f.NEAREST);f.texParameteri(f.TEXTURE_2D,f.TEXTURE_MIN_FILTER,e?f.LINEAR:f.NEAREST);f.bindTexture(f.TEXTURE_2D,null);this.sf=null;l.Lf=a;l.Kf=c;r.push(l);return l};d.prototype.Iz=function(a,c,e){this.pe();var b=this.F;this.we&&(e=!1);b.bindTexture(b.TEXTURE_2D,c);b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,e?b.UNSIGNED_SHORT_4_4_4_4:b.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",
f)}b.bindTexture(b.TEXTURE_2D,null);this.sf=null};d.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Vj&&1<a.Vj?a.Vj--:(this.pe(),a===this.sf&&(this.F.bindTexture(this.F.TEXTURE_2D,null),this.sf=null),a===this.eg&&(this.F.activeTexture(this.F.TEXTURE1),this.F.bindTexture(this.F.TEXTURE_2D,null),this.F.activeTexture(this.F.TEXTURE0),this.eg=null),Ha(r,a),"undefined"!==typeof a.Wp&&delete k[a.Wp],this.F.deleteTexture(a)))};d.prototype.kd=function(a){if(a!==this.Fl){var c=this.uc();c.type=
6;this.Fl=c.nd=a;this.Zb=this.Ob=!1}};qb=d})();
(function(){function d(b){if(b&&(b.getContext||b.dc)&&!b.c2runtime){b.c2runtime=this;var a=this;this.Dc=(this.Ok=/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.Pb=!!b.dc;this.Pq="undefined"!==typeof window.AppMobi||
this.Pb;this.Rc=!!window.c2cocoonjs;this.ed=!!window.c2ejecta;this.Rc&&(CocoonJS.App.onSuspended.addEventListener(function(){a.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){a.setSuspended(!1)}));this.ed&&(document.addEventListener("pagehide",function(){a.setSuspended(!0)}),document.addEventListener("pageshow",function(){a.setSuspended(!1)}),document.addEventListener("resize",function(){a.setSize(window.innerWidth,window.innerHeight)}));this.lb=this.Pb||this.Rc||this.ed;this.yi=
/edge\//i.test(navigator.userAgent);this.we=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.yi;this.Sq=/tizen/i.test(navigator.userAgent);this.vi=/android/i.test(navigator.userAgent)&&!this.Sq&&!this.we&&!this.yi;this.Vq=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.we&&!this.yi;this.iy=/ipad/i.test(navigator.userAgent);this.fh=this.Vq||this.iy||this.ed;this.In=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.we&&!this.yi;this.Oq=/amazonwebappplatform/i.test(navigator.userAgent);this.$x=/firefox/i.test(navigator.userAgent);this.cy=/safari/i.test(navigator.userAgent)&&!this.In&&!this.we&&!this.yi;this.ey=/windows/i.test(navigator.userAgent);this.Pk="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Tq=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.gy=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.qf=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.On=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Rk=!!window.cr_windows10;this.Nn=this.Tq||this.gy||this.On||this.Rk;this.Yx=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Mk=this.vi&&!this.In&&!this.Ok&&!this.$x&&!this.Oq&&!this.lb;this.devicePixelRatio=
1;this.pf=this.Dc||this.Ok||this.Pq||this.Rc||this.vi||this.fh||this.qf||this.On||this.Yx||this.Sq||this.ed;this.pf||(this.pf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Ci=!!(this.fh&&this.Dc&&window.webkit);"undefined"===typeof cr_is_preview||this.Pk||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Pk=!0);this.canvas=b;this.Yp=document.getElementById("c2canvasdiv");
this.B=this.F=null;this.vn="(unavailable)";this.Ja=!1;this.Qf=0;this.Pa=null;this.wk=!1;this.Or=this.Pr=0;this.canvas.oncontextmenu=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.onselectstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.canvas.ontouchstart=function(b){b.preventDefault&&b.preventDefault();return!1};this.Pb&&(window.c2runtime=this);this.Pk&&(window.ondragover=function(b){b.preventDefault();return!1},window.ondrop=function(b){b.preventDefault();
return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Mk&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=b.width;this.height=b.height;this.P=this.width;this.O=this.height;this.fk=this.width;this.di=this.height;this.hh=window.innerWidth;this.gh=window.innerHeight;this.ea=!0;this.Ai=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.D=[];this.Sa=[];this.jh={};this.vd=[];this.an={};
this.qe=[];this.Qh=[];this.im=[];this.zv=[];this.Av=[];this.Ls=null;this.Nf={};this.Kn=this.nf=!1;this.Sc=0;this.Jn=this.Mn=!1;this.td=[];this.xi=!1;this.Zk=this.Jo="";this.zb=null;this.ye="";this.qj=this.Is=!1;this.vk=[];this.Pf=this.jf=0;this.Fr=30;this.Rm=this.Ui=0;this.zg=1;this.Eb=new eb;this.Qe=new eb;this.kl=this.Bk=this.Tf=this.$d=this.gg=this.gn=this.Uk=0;this.ie=null;this.nk=[];this.$m=[];this.pk=-1;this.Xn=[[]];this.Yo=this.dl=0;this.Cl(null);this.Zn=[];this.fl=-1;this.hi=this.Jr=this.Xi=
0;this.rj=[];this.Vo=this.Bo=-1;this.dg=!0;this.bl=0;this.Qk=!1;this.vz=0;this.Fg=null;this.xe=this.Dq=!1;this.Nr=new da;this.jo=new da;this.ko=new da;this.tg=[];this.Bd=new gb([]);this.Uo=new gb([]);this.Ye=[];this.Vg={};this.ef={};this.We={};this.Ph={};this.Tp={};this.dr=this.Yk=this.mb=this.xb=this.cr=this.Xk=this.wa=null;this.Nh=this.Pn=!1;this.hn=[null,null];this.Tg=0;this.uk="";this.Be={};this.oj=this.uf=null;this.Ks="";this.jl=[];this.bz()}}function p(b,a){return 128>=a?b[3]:256>=a?b[2]:512>=
a?b[1]:b[0]}function m(){try{return!!window.indexedDB}catch(b){return!1}}function q(b){b.target.result.createObjectStore("saves",{keyPath:"slot"})}function n(b,a,c,f){try{var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=q;h.onerror=f;h.onsuccess=function(h){h=h.target.result;h.onerror=f;h.transaction(["saves"],"readwrite").objectStore("saves").put({slot:b,data:a}).onsuccess=c}}catch(e){f(e)}}function r(b,a,c){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=q;f.onerror=c;f.onsuccess=
function(f){f=f.target.result;f.onerror=c;var h=f.transaction(["saves"]).objectStore("saves").get(b);h.onsuccess=function(){h.result?a(h.result.data):a(null)}}}catch(h){c(h)}}function k(){ga("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(b){var a,c={};for(a in b)!b.hasOwnProperty(a)||b[a]instanceof da||b[a]&&"undefined"!==typeof b[a].BA||
"spriteCreatedDestroyCallback"!==a&&(c[a]=b[a]);return c}var c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.bz=function(){var b=this;if(this.Ci)this.rq("data.js",function(a){b.Mi(JSON.parse(a))},function(){alert("Error fetching data.js")});else{var a;this.qf?a=new ActiveXObject("Microsoft.XMLHTTP"):a=new XMLHttpRequest;var c="data.js";if(this.Tq||this.qf||this.On||this.Rk)c=
"data.json";a.open("GET",c,!0);var f=!1;if(!this.lb&&"response"in a&&"responseType"in a)try{a.responseType="json",f="json"===a.responseType}catch(h){f=!1}if(!f&&"responseType"in a)try{a.responseType="text"}catch(e){}if("overrideMimeType"in a)try{a.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.qf?a.onreadystatechange=function(){4===a.readyState&&b.Mi(JSON.parse(a.responseText))}:(a.onload=function(){if(f)b.Mi(a.response);else if(b.ed){var c=a.responseText,c=c.substr(c.indexOf("{"));
b.Mi(JSON.parse(c))}else b.Mi(JSON.parse(a.responseText))},a.onerror=function(b){ha("Error requesting "+c+":");ha(b)});a.send()}};d.prototype.Vx=function(){var b=this,a,c,f,h,e,g,l,t,d;this.bg=(!this.lb||this.ed||this.Dc)&&this.Fz&&!this.Mk;0===this.oc&&this.fh&&(this.bg=!1);this.devicePixelRatio=this.bg?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.Ub();0<this.oc&&
this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();b.wy();ga("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){b.B.Iq();b.B.vg(b.B.width,b.B.height,!0);b.xb=null;b.mb=null;b.hn[0]=null;b.hn[1]=null;b.xy();b.ea=!0;ga("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.ww&&(this.Rc||this.ed||!this.lb)&&(a={alpha:!0,
depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.vi||(this.F=this.canvas.getContext("webgl2",a)),this.F||(this.F=this.canvas.getContext("webgl",a)||this.canvas.getContext("experimental-webgl",a)))}catch(u){}if(this.F){if(a=this.F.getExtension("WEBGL_debug_renderer_info"))this.vn=this.F.getParameter(a.UNMASKED_RENDERER_WEBGL)+" ["+this.F.getParameter(a.UNMASKED_VENDOR_WEBGL)+"]";this.Ja&&(this.vn+=" [front-to-back enabled]");this.lb||(this.Sb=document.createElement("canvas"),
jQuery(this.Sb).appendTo(this.canvas.parentNode),this.Sb.oncontextmenu=function(){return!1},this.Sb.onselectstart=function(){return!1},this.Sb.width=Math.round(this.fk*this.devicePixelRatio),this.Sb.height=Math.round(this.di*this.devicePixelRatio),jQuery(this.Sb).css({width:this.fk+"px",height:this.di+"px"}),this.ks(),this.ro=this.Sb.getContext("2d"));this.B=new qb(this.F,this.pf,this.Ja);this.B.vg(this.canvas.width,this.canvas.height);this.B.lq=0!==this.ow;this.Pa=null;a=0;for(c=this.D.length;a<
c;a++)for(e=this.D[a],f=0,h=e.U.length;f<h;f++)l=e.U[f],l.pb=this.B.un(l.id),l.xd=this.B.yo(l.pb),this.Nh=this.Nh||this.B.dj(l.pb);a=0;for(c=this.vd.length;a<c;a++){t=this.vd[a];f=0;for(h=t.U.length;f<h;f++)l=t.U[f],l.pb=this.B.un(l.id),l.xd=this.B.yo(l.pb);t.Dd();f=0;for(h=t.X.length;f<h;f++){d=t.X[f];e=0;for(g=d.U.length;e<g;e++)l=d.U[e],l.pb=this.B.un(l.id),l.xd=this.B.yo(l.pb),this.Nh=this.Nh||this.B.dj(l.pb);d.Dd()}}}else{if(0<this.oc&&this.Pb){this.canvas=null;document.oncontextmenu=function(){return!1};
document.onselectstart=function(){return!1};this.Pa=AppMobi.canvas.getContext("2d");try{this.Pa.samplingMode=this.Fa?"smooth":"sharp",this.Pa.globalScale=1,this.Pa.HTML5CompatibilityMode=!0,this.Pa.imageSmoothingEnabled=this.Fa}catch(w){}0!==this.width&&0!==this.height&&(this.Pa.width=this.width,this.Pa.height=this.height)}this.Pa||(this.Rc?(a={antialias:!!this.Fa,alpha:!0},this.Pa=this.canvas.getContext("2d",a)):(a={alpha:!0},this.Pa=this.canvas.getContext("2d",a)),this.Ll(this.Pa,this.Fa));this.ro=
this.Sb=null}this.Rs=function(a){b.Na(!1,a)};window==window.top||this.lb||this.Nn||this.qf||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Rc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ga("Reloading for continuous preview"),this.Zk="__c2_continuouspreview",this.qj=!0),this.Gy&&!this.pf&&(jQuery(window).focus(function(){b.setSuspended(!1)}),
jQuery(window).blur(function(){var a=window.parent;a&&a.document.hasFocus()||b.setSuspended(!0)})));window.addEventListener("blur",function(){});this.lb||(a=function(b){if(nb(b)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(a){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",a):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",a):document.addEventListener("touchstart",
a),document.addEventListener("mousedown",a));0===this.oc&&this.bg&&1<this.devicePixelRatio&&this.setSize(this.Bb,this.Ab,!0);this.Vs();this.Ox();this.go();this.N={}};d.prototype.setSize=function(b,a,c){var f=0,h=0,e=0,l=0,l=0;if(this.hh!==b||this.gh!==a||c){this.hh=b;this.gh=a;var g=this.oc;if((e=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.Qk)&&!this.Dc)||0!==this.oc||c)e&&(g=this.Tg),c=this.devicePixelRatio,4<=g?(5===g&&1!==c&&(b+=
1,a+=1),e=this.Bb/this.Ab,b/a>e?(e*=a,5===g?(l=e*c/this.Bb,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),e=this.Bb*l/c,l=this.Ab*l/c,f=(b-e)/2,h=(a-l)/2,b=e,a=l):(f=(b-e)/2,b=e)):(l=b/e,5===g?(l=l*c/this.Ab,1<l?l=Math.floor(l):1>l&&(l=1/Math.ceil(1/l)),e=this.Bb*l/c,l=this.Ab*l/c,f=(b-e)/2,h=(a-l)/2,b=e):h=(a-l)/2,a=l)):e&&0===g&&(f=Math.floor((b-this.Bb)/2),h=Math.floor((a-this.Ab)/2),b=this.Bb,a=this.Ab),2>g&&(this.Zh=c),this.fk=Math.round(b),this.di=Math.round(a),this.width=Math.round(b*c),this.height=
Math.round(a*c),this.ea=!0,this.it?(this.P=this.width,this.O=this.height,this.Oc=!0):this.width<this.Bb&&this.height<this.Ab||1===g?(this.P=this.width,this.O=this.height,this.Oc=!0):(this.P=this.Bb,this.O=this.Ab,this.Oc=!1,2===g?(e=this.Bb/this.Ab,g=this.hh/this.gh,g<e?this.P=this.O*g:g>e&&(this.O=this.P/g)):3===g&&(e=this.Bb/this.Ab,g=this.hh/this.gh,g>e?this.P=this.O*g:g<e&&(this.O=this.P/g))),this.Yp&&!this.lb&&(jQuery(this.Yp).css({width:Math.round(b)+"px",height:Math.round(a)+"px","margin-left":Math.floor(f)+
"px","margin-top":Math.floor(h)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(b)+"px",height:Math.round(a)+"px"})),this.canvas&&(this.canvas.width=Math.round(b*c),this.canvas.height=Math.round(a*c),this.ed?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(h)+"px",this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=Math.round(a)+"px"):this.bg&&!this.lb&&(this.canvas.style.width=Math.round(b)+"px",this.canvas.style.height=
Math.round(a)+"px")),this.Sb&&(this.Sb.width=Math.round(b*c),this.Sb.height=Math.round(a*c),this.Sb.style.width=this.fk+"px",this.Sb.style.height=this.di+"px"),this.B&&this.B.vg(Math.round(b*c),Math.round(a*c)),this.Pb&&this.Pa&&(this.Pa.width=Math.round(b),this.Pa.height=Math.round(a)),this.Pa&&this.Ll(this.Pa,this.Fa),this.Vs(),this.Vq&&!this.Dc&&window.scrollTo(0,0)}};d.prototype.Vs=function(){if(this.Dv&&0!==this.qo){var b="portrait";2===this.qo&&(b="landscape");try{screen.orientation&&screen.orientation.lock?
screen.orientation.lock(b).catch(function(){}):screen.lockOrientation?screen.lockOrientation(b):screen.webkitLockOrientation?screen.webkitLockOrientation(b):screen.mozLockOrientation?screen.mozLockOrientation(b):screen.msLockOrientation&&screen.msLockOrientation(b)}catch(a){console&&console.warn&&console.warn("Failed to lock orientation: ",a)}}};d.prototype.wy=function(){this.B.Nv();this.Pn=!0;var b,a,c;b=0;for(a=this.D.length;b<a;b++)c=this.D[b],c.uh&&c.uh()};d.prototype.xy=function(){this.Pn=!1;
var b,a,c;b=0;for(a=this.D.length;b<a;b++)c=this.D[b],c.$i&&c.$i()};d.prototype.ks=function(){if(!this.lb){var b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Qk)&&!this.Dc?jQuery(this.canvas).offset():jQuery(this.canvas).position();b.position="absolute";jQuery(this.Sb).css(b)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;
d.prototype.setSuspended=function(b){var a;if(b&&!this.Ai)for(ga("[Construct 2] Suspending"),this.Ai=!0,-1!==this.Bo&&e&&e(this.Bo),-1!==this.Vo&&clearTimeout(this.Vo),b=0,a=this.rj.length;b<a;b++)this.rj[b](!0);else if(!b&&this.Ai){ga("[Construct 2] Resuming");this.Ai=!1;this.Uk=ab();this.gg=ab();b=this.Ui=this.Bk=0;for(a=this.rj.length;b<a;b++)this.rj[b](!1);this.Na(!1)}};d.prototype.Op=function(b){this.rj.push(b)};d.prototype.Te=function(b){return this.jl[b]};d.prototype.Mi=function(b){b&&b.project||
ha("Project model unavailable");b=b.project;this.name=b[0];this.tq=b[1];this.oc=b[12];this.Bb=b[10];this.Ab=b[11];this.cs=this.Bb/2;this.ds=this.Ab/2;this.lb&&!this.ed&&(4<=b[12]||0===b[12])&&(ga("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.oc=3);this.fp=b[18];this.vf=b[19];if(0===this.vf){var a=new Image;a.crossOrigin="anonymous";this.As(a,"loading-logo.png");this.uf={el:a}}else if(4===this.vf){a=new Image;a.src="";var c=
new Image;c.src="";var f=new Image;f.src="";var e=new Image;e.src="";var h=new Image;h.src="";var l=new Image;l.src="";var g=new Image;g.src="";var t=new Image;t.src="";var d=new Image;d.src="";var u=new Image;u.src="";var w=new Image;w.src="";var n=new Image;n.src="";this.uf={el:[a,c,f,e],Ny:[h,l,g,t],Jz:[d,u,w,n]}}this.Xi=b[21];this.jl=sc();this.Yd=new U(this);a=0;for(c=b[2].length;a<c;a++)g=b[2][a],f=this.Te(g[0]),rb(g,f.prototype),t=new f(this),t.Ql=g[1],t.rf=g[2],t.HA=g[5],t.Gr=g[9],t.M&&t.M(),
this.plugins.push(t);this.jl=sc();a=0;for(c=b[3].length;a<c;a++){g=b[3][a];h=this.Te(g[1]);t=null;f=0;for(e=this.plugins.length;f<e;f++)if(this.plugins[f]instanceof h){t=this.plugins[f];break}d=new t.ga(t);d.name=g[0];d.H=g[2];d.Hn=g[3].slice(0);d.Hz=g[3].length;d.Ev=g[4];d.ix=g[5];d.ja=g[11];d.H?(d.pg=[],d.re=this.hi++,d.Qa=null):(d.pg=null,d.re=-1,d.Qa=[]);d.sk=null;d.Rg=null;d.mq=null;d.Qb=!1;d.Bc=null;g[6]?(d.tj=g[6][0],d.$l=g[6][1],d.yg=g[6][2]):(d.tj=null,d.$l=0,d.yg=0);g[7]?d.zc=g[7]:d.zc=
null;d.index=a;d.d=[];d.jk=[];d.Le=[new sb(d)];d.Kd=0;d.bd=null;d.Rv=0;d.Ih=!0;d.jm=tb;d.zq=ub;d.vx=vb;d.R=wb;d.fj=xb;d.zh=yb;d.Fe=zb;d.Dk=Ab;d.kn=Bb;d.pn=Cb;d.Ac=Db;d.qn=Eb;d.bk=new hb(this.Bb,this.Ab);d.Oj=!0;d.Pj=!1;d.N={};d.toString=Jb;d.Sa=[];f=0;for(e=g[8].length;f<e;f++){u=g[8][f];w=this.Te(u[1]);n=null;h=0;for(l=this.Sa.length;h<l;h++)if(this.Sa[h]instanceof w){n=this.Sa[h];break}n||(n=new w(this),n.fo=[],n.eo=new da,n.M&&n.M(),this.Sa.push(n),tc&&n instanceof tc&&(this.Ls=n));-1===n.fo.indexOf(d)&&
n.fo.push(d);h=new n.ga(n,d);h.name=u[0];h.ja=u[2];h.M();d.Sa.push(h)}d.global=g[9];d.Ln=g[10];d.U=[];f=0;for(e=g[12].length;f<e;f++)d.U.push({id:g[12][f][0],name:g[12][f][1],pb:-1,xd:!1,Oa:!0,index:f});d.YA=g[13];this.fp&&!d.H&&!d.Ln&&t.rf||d.M();d.name&&(this.types[d.name]=d);this.D.push(d);t.Ql&&(f=new t.aa(d),f.uid=this.Xi++,f.ns=this.Jr++,f.$f=0,f.oi=Kb,f.toString=Lb,f.C=g[14],f.M(),d.d.push(f),this.Be[f.uid.toString()]=f)}a=0;for(c=b[4].length;a<c;a++)for(h=b[4][a],l=this.D[h[0]],f=1,e=h.length;f<
e;f++)g=this.D[h[f]],g.Qa.push(l),l.pg.push(g);a=0;for(c=b[28].length;a<c;a++){h=b[28][a];l=[];f=0;for(e=h.length;f<e;f++)l.push(this.D[h[f]]);f=0;for(e=l.length;f<e;f++)l[f].Qb=!0,l[f].Bc=l}if(0<this.hi)for(a=0,c=this.D.length;a<c;a++)if(g=this.D[a],!g.H&&g.Qa.length){g.sk=Array(this.hi);g.Rg=Array(this.hi);g.mq=Array(this.hi);d=[];f=n=w=u=0;for(e=g.Qa.length;f<e;f++)for(t=g.Qa[f],g.sk[t.re]=u,u+=t.Hz,g.Rg[t.re]=w,w+=t.Ev,g.mq[t.re]=n,n+=t.ix,h=0,l=t.U.length;h<l;h++)d.push(Ba({},t.U[h]));g.U=d.concat(g.U);
f=0;for(e=g.U.length;f<e;f++)g.U[f].index=f}a=0;for(c=b[5].length;a<c;a++)g=b[5][a],f=new Mb(this,g),this.jh[f.name]=f,this.vd.push(f);a=0;for(c=b[6].length;a<c;a++)g=b[6][a],f=new Nb(this,g),this.an[f.name]=f,this.qe.push(f);a=0;for(c=this.qe.length;a<c;a++)this.qe[a].eb();a=0;for(c=this.qe.length;a<c;a++)this.qe[a].bp();a=0;for(c=this.im.length;a<c;a++)this.im[a].eb();A(this.im);this.Cv=b[7];this.uk=b[8];this.rc=b[9];this.Zh=1;this.ww=b[13];this.Fa=b[14];this.aq=b[15];this.Fz=b[17];this.qo=b[20];
this.Dv=0<this.qo;this.Gy=b[22];this.Oc=this.it=b[23];this.ow=b[24];this.Oy=b[25];this.Ja=b[27]&&!this.we;this.Ul=Date.now();A(this.jl);this.Vx()};var b=!1,f=0,l=[];d.prototype.Wy=function(b,a){function c(){f--;h.Br()}var h=this;b.addEventListener("load",c);b.addEventListener("error",c);l.push([b,a]);this.Br()};d.prototype.Br=function(){for(var b;l.length&&100>f;)f++,b=l.shift(),this.As(b[0],b[1])};d.prototype.nm=function(a,c){a.cocoonLazyLoad=!0;a.onerror=function(c){b=a.Vp=!0;console&&console.error&&
console.error("Error loading image '"+a.src+"': ",c)};this.ed?a.src=c:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(c,function(b){a.src=b},function(f){b=a.Vp=!0;console&&console.error&&console.error("Error extracting image '"+c+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.Wy(a,c)));this.Qh.push(a)};d.prototype.gx=function(b){var a,c;a=0;for(c=this.Qh.length;a<c;a++)if(this.Qh[a].Ov===b)return this.Qh[a];return null};var g=0,u=!1;d.prototype.Ox=function(){this.Fg&&(g=this.Fg.pz(this.Cv))};
d.prototype.Rp=function(){var b=g,a=0,c=0,f=!0,h,e,c=0;for(h=this.Qh.length;c<h;c++){e=this.Qh[c];var l=e.Sm;if(!l||0>=l)l=5E4;b+=l;e.src&&(e.complete||e.loaded)&&!e.Vp?a+=l:f=!1}f&&this.Oy&&this.Fg&&(u||(this.Fg.wz(),u=!0),c=this.Fg.wx(),a+=c,c<g&&(f=!1));this.tc=0==b?1:a/b;return f};var B=!1;d.prototype.go=function(){if(this.Pa||this.B){var a=this.Pa||this.ro;this.Sb&&this.ks();var f=window.innerWidth,h=window.innerHeight;this.hh===f&&this.gh===h||this.setSize(f,h);this.tc=0;this.br=-1;var e=this;
if(this.Rp()&&(4!==this.vf||B))this.Px();else{h=Date.now()-this.Ul;if(a){var g=this.width,l=this.height,f=this.devicePixelRatio;if(3>this.vf&&(this.Rc||500<=h&&this.br!=this.tc)){a.clearRect(0,0,g,l);var h=g/2,l=l/2,g=0===this.vf&&this.uf.el.complete,d=40*f,t=0,u=80*f,w;if(g){var n=this.uf.el,u=n.width*f;w=n.height*f;d=u/2;t=w/2;a.drawImage(n,sa(h-d),sa(l-t),u,w)}1>=this.vf?(h=sa(h-d)+.5,l=sa(l+(t+(g?12*f:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(h,l,Math.floor(u*this.tc),6*f),a.strokeStyle=
"black",a.strokeRect(h,l,u,6*f),a.strokeStyle="white",a.strokeRect(h-1*f,l-1*f,u+2*f,8*f)):2===this.vf&&(a.font=this.ed?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.XA="middle",f=Math.round(100*this.tc)+"%",g=a.measureText?a.measureText(f):null,a.fillText(f,h-(g?g.width:0)/2,l));this.br=this.tc}else if(4===this.vf){this.uw(a);c?c(function(){e.go()}):setTimeout(function(){e.go()},16);return}}setTimeout(function(){e.go()},this.Rc?10:100)}}};var N=-1,h="undefined"===typeof cr_is_preview?
200:0,t=!0,T=!1,I=0,w=0,F="undefined"===typeof cr_is_preview?3E3:0,K=null,v=null,C=0;d.prototype.uw=function(a){if(!B){for(var c=Math.ceil(this.width),f=Math.ceil(this.height),e=this.uf.el,g=this.uf.Ny,l=this.uf.Jz,d=0;4>d;++d)if(!e[d].complete||!g[d].complete||!l[d].complete)return;0===C&&(N=Date.now());var d=Date.now(),u=!1,n=a,k,r;t||T?(a.clearRect(0,0,c,f),K&&K.width===c&&K.height===f||(K=document.createElement("canvas"),K.width=c,K.height=f,v=K.getContext("2d")),n=v,u=!0,t&&1===C&&(N=Date.now())):
a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,c,f);256<this.di?(k=Ia(.22*f,105,.6*c),r=.25*k,n.drawImage(p(g,k),.5*c-k/2,.2*f-r/2,k,r),r=k=Math.min(.395*f,.95*c),n.drawImage(p(e,k),.5*c-k/2,.485*f-r/2,k,r),k=Ia(.22*f,105,.6*c),r=.25*k,n.drawImage(p(l,k),.5*c-k/2,.868*f-r/2,k,r),n.fillStyle="#3C3C3C",k=c,r=Math.max(.005*f,2),n.fillRect(0,.8*f-r/2,k,r),n.fillStyle=b?"red":"#E0FF65",k=c*this.tc,n.fillRect(.5*c-k/2,.8*f-r/2,k,r)):(r=k=.55*f,n.drawImage(p(e,k),.5*c-k/2,.45*f-r/2,k,r),n.fillStyle=
"#3C3C3C",k=c,r=Math.max(.005*f,2),n.fillRect(0,.85*f-r/2,k,r),n.fillStyle=b?"red":"#E0FF65",k=c*this.tc,n.fillRect(.5*c-k/2,.85*f-r/2,k,r));u&&(t?a.globalAlpha=0===C?0:Math.min((d-N)/300,1):T&&(a.globalAlpha=Math.max(1-(d-w)/300,0)),a.drawImage(K,0,0,c,f));t&&300<=d-N&&2<=C&&(t=!1,I=d);!t&&d-I>=F&&!T&&1<=this.tc&&(T=!0,w=d);if(T&&d-w>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.tc&&500>Date.now()-N)B=!0,T=t=!1,this.uf=v=K=null;++C}};d.prototype.Px=function(){this.Sb&&(this.canvas.parentNode.removeChild(this.Sb),
this.Sb=this.ro=null);this.Ul=Date.now();this.gg=ab();var b,a,c;if(this.fp)for(b=0,a=this.D.length;b<a;b++)c=this.D[b],c.H||c.Ln||!c.qa.rf||c.M();else this.dg=!1;b=0;for(a=this.vd.length;b<a;b++)this.vd[b].Pv();2<=this.oc&&(b=this.Bb/this.Ab,a=this.width/this.height,this.Zh=2!==this.oc&&a>b||2===this.oc&&a<b?this.height/this.Ab:this.width/this.Bb);this.tq?this.jh[this.tq].So():this.vd[0].So();this.fp||(this.bl=1,this.trigger(U.prototype.j.tp,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&
navigator.splashscreen.hide&&navigator.splashscreen.hide();b=0;for(a=this.D.length;b<a;b++)c=this.D[b],c.Qr&&c.Qr();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Na(!1);this.Pb&&AppMobi.webview.execute("onGameReady();")};d.prototype.Na=function(b,a,f){if(this.wa){var h=ab();if(f||!this.Ai||b){b||(c?this.Bo=c(this.Rs):this.Vo=setTimeout(this.Rs,this.pf?1:16));a=a||h;var e=this.oc;((f=(document.mozFullScreen||document.webkitIsFullScreen||
document.fullScreen||!!document.msFullscreenElement)&&!this.Dc)||this.Qk)&&0<this.Tg&&(e=this.Tg);if(0<e){var e=window.innerWidth,g=window.innerHeight;this.hh===e&&this.gh===g||this.setSize(e,g)}this.lb||(f?this.wk||(this.wk=!0):this.wk?(this.wk=!1,0===this.oc&&this.setSize(Math.round(this.Pr/this.devicePixelRatio),Math.round(this.Or/this.devicePixelRatio),!0)):(this.Pr=this.width,this.Or=this.height));this.dg&&(f=this.Rp(),this.bl=this.tc,f&&(this.dg=!1,this.tc=1,this.trigger(U.prototype.j.tp,null),
window.C2_RegisterSW&&window.C2_RegisterSW()));this.ny(a);!this.ea&&!this.Rc||this.Pn||this.qj||b||(this.ea=!1,this.B?this.Mb():this.Cc(),this.oj&&(this.canvas&&this.canvas.toDataURL&&(this.Ks=this.canvas.toDataURL(this.oj[0],this.oj[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Ks),this.trigger(U.prototype.j.ku,null)),this.oj=null));this.FA||(this.$d++,this.Tf++,this.Bk++);this.Ui+=ab()-h}}};d.prototype.ny=function(b){var a,c,f,h,e,g,l,d;1E3<=b-this.gg&&(this.gg+=1E3,1E3<=b-this.gg&&(this.gg=
b),this.gn=this.Bk,this.Bk=0,this.Rm=this.Ui,this.Ui=0);a=0;0!==this.Uk&&(a=b-this.Uk,0>a&&(a=0),this.Pf=a/=1E3,.5<this.Pf?this.Pf=0:this.Pf>1/this.Fr&&(this.Pf=1/this.Fr));this.Uk=b;this.jf=this.Pf*this.zg;this.Eb.add(this.jf);this.Qe.add(a);b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Qk)&&!this.Dc;2<=this.oc||b&&0<this.Tg?(a=this.Bb/this.Ab,c=this.width/this.height,f=this.oc,b&&0<this.Tg&&(f=this.Tg),this.Zh=2!==f&&c>a||2===f&&
c<a?this.height/this.Ab:this.width/this.Bb,this.wa&&(this.wa.Ko(this.wa.scrollX),this.wa.us(this.wa.scrollY))):this.Zh=this.bg?this.devicePixelRatio:1;this.Ub();this.Sc++;this.Yd.fz();this.Sc--;this.Ub();this.Sc++;c=this.Nr.Ef();b=0;for(a=c.length;b<a;b++)c[b].QA();b=0;for(a=this.D.length;b<a;b++)if(g=this.D[b],!g.H&&(g.Sa.length||g.Qa.length))for(c=0,f=g.d.length;c<f;c++)for(l=g.d[c],h=0,e=l.ca.length;h<e;h++)l.ca[h].Na();b=0;for(a=this.D.length;b<a;b++)if(g=this.D[b],!g.H&&(g.Sa.length||g.Qa.length))for(c=
0,f=g.d.length;c<f;c++)for(l=g.d[c],h=0,e=l.ca.length;h<e;h++)d=l.ca[h],d.My&&d.My();c=this.jo.Ef();b=0;for(a=c.length;b<a;b++)c[b].Na();this.Sc--;this.Qx();for(b=0;this.ie&&10>b++;)this.kq(this.ie);b=0;for(a=this.qe.length;b<a;b++)this.qe[b].zn=!1;this.wa.Rf&&this.wa.Rf.ob();A(this.tg);this.Sc++;b=0;for(a=this.D.length;b<a;b++)if(g=this.D[b],!g.H&&(g.Sa.length||g.Qa.length))for(c=0,f=g.d.length;c<f;c++)for(l=g.d[c],h=0,e=l.ca.length;h<e;h++)d=l.ca[h],d.em&&d.em();c=this.ko.Ef();b=0;for(a=c.length;b<
a;b++)c[b].em();this.Sc--};d.prototype.kq=function(b){var a=this.wa;this.wa.xz();var c,f,h;if(this.B)for(c=0,f=this.D.length;c<f;c++)h=this.D[c],h.H||!h.vj||h.global&&0!==h.d.length||-1!==b.si.indexOf(h)||h.vj();a==b&&A(this.Yd.yc);A(this.tg);this.ss(!0);b.So();this.ss(!1);this.ea=!0;this.Ub()};d.prototype.ss=function(b){var a,c,f,h,e,g,l,d,t;a=0;for(c=this.Sa.length;a<c;a++)f=this.Sa[a],b?f.Yi&&f.Yi():f.Zi&&f.Zi();a=0;for(c=this.D.length;a<c;a++)if(f=this.D[a],f.global||f.qa.Ql)for(h=0,e=f.d.length;h<
e;h++)if(g=f.d[h],b?g.Yi&&g.Yi():g.Zi&&g.Zi(),g.ca)for(l=0,d=g.ca.length;l<d;l++)t=g.ca[l],b?t.Yi&&t.Yi():t.Zi&&t.Zi()};d.prototype.Kh=function(b){this.jo.add(b)};d.prototype.zz=function(b){this.ko.add(b)};d.prototype.Uf=function(b){return b&&-1!==b.Wi?this.Pf*b.Wi:this.jf};d.prototype.Cc=function(){this.wa.Cc(this.Pa);this.Pb&&this.Pa.present()};d.prototype.Mb=function(){this.Ja&&(this.Qf=1,this.wa.Of(this.B));this.wa.Mb(this.B);this.B.Qy()};d.prototype.Gm=function(b){b&&this.nk.push(b)};d.prototype.az=
function(b){Ha(this.nk,b)};d.prototype.mi=function(b){b=b.toString();return this.Be.hasOwnProperty(b)?this.Be[b]:null};var H=[];d.prototype.be=function(b){var a,c;a=b.type.name;var f=null;if(this.Nf.hasOwnProperty(a)){if(f=this.Nf[a],f.contains(b))return}else f=H.length?H.pop():new da,this.Nf[a]=f;f.add(b);this.nf=!0;if(b.Qb)for(a=0,c=b.siblings.length;a<c;a++)this.be(b.siblings[a]);this.Kn&&f.Oh.push(b);this.Jn||(this.Sc++,this.trigger(Object.getPrototypeOf(b.type.qa).j.op,b),this.Sc--)};d.prototype.Ub=
function(){if(this.nf){var b,a,c,f,h,e;this.Kn=!0;c=0;for(h=this.td.length;c<h;++c)for(b=this.td[c],a=b.type,a.d.push(b),f=0,e=a.Qa.length;f<e;++f)a.Qa[f].d.push(b),a.Qa[f].Ih=!0;A(this.td);this.$t();$a(this.Nf);this.nf=this.Kn=!1}};d.prototype.$t=function(){for(var b in this.Nf)this.Nf.hasOwnProperty(b)&&this.ut(this.Nf[b])};d.prototype.ut=function(b){var a=b.Ef(),c=a[0].type,f,h,e,g,l,d;bb(c.d,b);c.Ih=!0;0===c.d.length&&(c.Pj=!1);f=0;for(h=c.Qa.length;f<h;++f)d=c.Qa[f],bb(d.d,b),d.Ih=!0;f=0;for(h=
this.Yd.yc.length;f<h;++f)if(l=this.Yd.yc[f],l.kc.hasOwnProperty(c.index)&&bb(l.kc[c.index].ue,b),!c.H)for(e=0,g=c.Qa.length;e<g;++e)d=c.Qa[e],l.kc.hasOwnProperty(d.index)&&bb(l.kc[d.index].ue,b);if(l=a[0].q){if(l.Zc)for(e=l.d,f=0,h=e.length;f<h;++f)g=e[f],b.contains(g)&&(g.Ea(),l.Tb.update(g,g.vc,null),g.vc.set(0,0,-1,-1));bb(l.d,b);l.lj(0)}for(f=0;f<a.length;++f)this.tt(a[f],c);b.clear();H.push(b);this.ea=!0};d.prototype.tt=function(b,a){var c,f,h;c=0;for(f=this.nk.length;c<f;++c)this.nk[c](b);
b.ff&&a.bk.update(b,b.ff,null);(c=b.q)&&c.Bh(b,!0);if(b.ca)for(c=0,f=b.ca.length;c<f;++c)h=b.ca[c],h.Ce&&h.Ce(),h.behavior.eo.remove(b);this.Nr.remove(b);this.jo.remove(b);this.ko.remove(b);b.Ce&&b.Ce();this.Be.hasOwnProperty(b.uid.toString())&&delete this.Be[b.uid.toString()];this.kl--;100>a.jk.length&&a.jk.push(b)};d.prototype.ek=function(b,a,c,f){if(b.H){var h=sa(Math.random()*b.pg.length);return this.ek(b.pg[h],a,c,f)}return b.bd?this.gf(b.bd,a,!1,c,f,!1):null};var S=[];d.prototype.gf=function(b,
a,c,f,h,e){var g,l,d,t;if(!b)return null;var u=this.D[b[1]],w=u.qa.rf;if(this.dg&&w&&!u.Ln||w&&!this.B&&11===b[0][11])return null;var n=a;w||(a=null);var k;u.jk.length?(k=u.jk.pop(),k.ic=!0,u.qa.aa.call(k,u)):(k=new u.qa.aa(u),k.ic=!1);!c||e||this.Be.hasOwnProperty(b[2].toString())?k.uid=this.Xi++:k.uid=b[2];this.Be[k.uid.toString()]=k;k.ns=this.Jr++;k.$f=u.d.length;g=0;for(l=this.td.length;g<l;++g)this.td[g].type===u&&k.$f++;k.oi=Kb;k.toString=Lb;d=b[3];if(k.ic)$a(k.N);else{k.N={};if("undefined"!==
typeof cr_is_preview)for(k.Lq=[],k.Lq.length=d.length,g=0,l=d.length;g<l;g++)k.Lq[g]=d[g][1];k.wb=[];k.wb.length=d.length}g=0;for(l=d.length;g<l;g++)k.wb[g]=d[g][0];if(w){var B=b[0];k.x=ja(f)?B[0]:f;k.y=ja(h)?B[1]:h;k.z=B[2];k.width=B[3];k.height=B[4];k.depth=B[5];k.n=B[6];k.opacity=B[7];k.ec=B[8];k.fc=B[9];k.Vb=B[10];g=B[11];!this.B&&u.U.length&&(k.Vb=g);k.ai=jb(k.Vb);this.F&&kb(k,k.Vb,this.F);if(k.ic){g=0;for(l=B[12].length;g<l;g++)for(d=0,t=B[12][g].length;d<t;d++)k.Ua[g][d]=B[12][g][d];k.Ia.set(0,
0,0,0);k.ff.set(0,0,-1,-1);k.vc.set(0,0,-1,-1);k.Ib.Fh(k.Ia);A(k.Km)}else{k.Ua=B[12].slice(0);g=0;for(l=k.Ua.length;g<l;g++)k.Ua[g]=B[12][g].slice(0);k.ua=[];k.Ve=[];k.Ve.length=u.U.length;k.Ia=new xa(0,0,0,0);k.ff=new xa(0,0,-1,-1);k.vc=new xa(0,0,-1,-1);k.Ib=new ya;k.Km=[];k.Z=Ob;k.yv=Pb;k.Wb=Qb;k.Ea=Rb;k.dt=Sb;k.ep=Tb;k.Od=Ub}k.Lh=!1;k.Cz=0;k.Bz=0;k.Az=null;14===B.length&&(k.Lh=!0,k.Cz=B[13][0],k.Bz=B[13][1],k.Az=B[13][2]);g=0;for(l=u.U.length;g<l;g++)k.Ve[g]=!0;k.Je=!0;k.Dd=Vb;k.Dd();k.et=!!k.ua.length;
k.Uj=!0;k.Mm=!0;u.Oj=!0;k.visible=!0;k.Wi=-1;k.q=a;k.Ed=a.d.length;k.Qf=0;"undefined"===typeof k.za&&(k.za=null);this.ea=k.je=!0}var p;A(S);g=0;for(l=u.Qa.length;g<l;g++)S.push.apply(S,u.Qa[g].Sa);S.push.apply(S,u.Sa);if(k.ic)for(g=0,l=S.length;g<l;g++){var r=S[g];p=k.ca[g];p.ic=!0;r.behavior.aa.call(p,r,k);B=b[4][g];d=0;for(t=B.length;d<t;d++)p.C[d]=B[d];p.M();r.behavior.eo.add(k)}else for(k.ca=[],g=0,l=S.length;g<l;g++)r=S[g],p=new r.behavior.aa(r,k),p.ic=!1,p.C=b[4][g].slice(0),p.M(),k.ca.push(p),
r.behavior.eo.add(k);B=b[5];if(k.ic)for(g=0,l=B.length;g<l;g++)k.C[g]=B[g];else k.C=B.slice(0);this.td.push(k);this.nf=!0;a&&(a.Yh(k,!0),1!==a.gd||1!==a.hd)&&(u.Pj=!0);this.kl++;if(u.Qb){if(k.Qb=!0,k.ic?A(k.siblings):k.siblings=[],!c&&!e){g=0;for(l=u.Bc.length;g<l;g++)if(u.Bc[g]!==u){if(!u.Bc[g].bd)return null;k.siblings.push(this.gf(u.Bc[g].bd,n,!1,w?k.x:f,w?k.y:h,!0))}g=0;for(l=k.siblings.length;g<l;g++)for(k.siblings[g].siblings.push(k),d=0;d<l;d++)g!==d&&k.siblings[g].siblings.push(k.siblings[d])}}else k.Qb=
!1,k.siblings=null;k.M();g=0;for(l=k.ca.length;g<l;g++)k.ca[g].Ly&&k.ca[g].Ly();return k};d.prototype.rn=function(b){var a,c;a=0;for(c=this.wa.X.length;a<c;a++){var f=this.wa.X[a];if(mb(f.name,b))return f}return null};d.prototype.li=function(b){b=sa(b);0>b&&(b=0);b>=this.wa.X.length&&(b=this.wa.X.length-1);return this.wa.X[b]};d.prototype.Pm=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].R().V=!0};d.prototype.fj=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].fj()};d.prototype.zh=function(b){var a,
c;a=0;for(c=b.length;a<c;a++)b[a].zh()};d.prototype.Fe=function(b){var a,c;a=0;for(c=b.length;a<c;a++)b[a].Fe()};d.prototype.$s=function(b){if(b.Oj){var a,c,f=b.d;a=0;for(c=f.length;a<c;++a)f[a].ep();f=this.td;a=0;for(c=f.length;a<c;++a)f[a].type===b&&f[a].ep();b.Oj=!1}};d.prototype.mn=function(b,a,c,f){var h,e,g=b?1!==b.gd||1!==b.hd:!1;if(a.H)for(b=0,h=a.pg.length;b<h;++b)e=a.pg[b],g||e.Pj?Fa(f,e.d):(this.$s(e),e.bk.Dl(c,f));else g||a.Pj?Fa(f,a.d):(this.$s(a),a.bk.Dl(c,f))};d.prototype.Bx=function(b,
a,c,f){var h,e;h=0;for(e=a.length;h<e;++h)this.mn(b,a[h],c,f)};d.prototype.Ax=function(b,a,c){var f=this.Ls;f&&this.Bx(b,f.fo,a,c)};d.prototype.Yl=function(b,a,c){var f=b.R(),h,e,g,l,d=this.Va().bb.Vc,k,t,u;if(f.V)for(f.V=!1,A(f.d),h=0,l=b.d.length;h<l;h++)g=b.d[h],g.Ea(),k=g.q.Jb(a,c,!0),t=g.q.Jb(a,c,!1),g.Wb(k,t)?f.d.push(g):d&&f.ba.push(g);else{e=0;u=d?f.ba:f.d;h=0;for(l=u.length;h<l;h++)g=u[h],g.Ea(),k=g.q.Jb(a,c,!0),t=g.q.Jb(a,c,!1),g.Wb(k,t)&&(d?f.d.push(g):(f.d[e]=f.d[h],e++));u.length=e}b.Ac();
return f.yn()};d.prototype.Cf=function(b,a){if(!(b&&a&&b!==a&&b.je&&a.je))return!1;b.Ea();a.Ea();var c=b.q,f=a.q,h,e,g,l,d,k,t,u;if(c===f||c.gd===f.gd&&f.hd===f.hd&&c.scale===f.scale&&c.n===f.n&&c.Fd===f.Fd){if(!b.Ia.Wx(a.Ia)||!b.Ib.Mq(a.Ib)||b.Lh&&a.Lh)return!1;if(b.Lh)return this.Ps(b,a);if(a.Lh)return this.Ps(a,b);t=b.za&&!b.za.$g();h=a.za&&!a.za.$g();if(!t&&!h)return!0;t?(b.za.Gg(b.width,b.height,b.n),t=b.za):(this.Bd.Eh(b.Ib,b.x,b.y,b.width,b.height),t=this.Bd);h?(a.za.Gg(a.width,a.height,a.n),
u=a.za):(this.Bd.Eh(a.Ib,a.x,a.y,a.width,a.height),u=this.Bd);return t.ti(u,a.x-b.x,a.y-b.y)}t=b.za&&!b.za.$g();h=a.za&&!a.za.$g();t?(b.za.Gg(b.width,b.height,b.n),this.Bd.Ds(b.za)):this.Bd.Eh(b.Ib,b.x,b.y,b.width,b.height);t=this.Bd;h?(a.za.Gg(a.width,a.height,a.n),this.Uo.Ds(a.za)):this.Uo.Eh(a.Ib,a.x,a.y,a.width,a.height);u=this.Uo;h=0;for(e=t.yd;h<e;h++)g=2*h,l=g+1,d=t.Cb[g],k=t.Cb[l],t.Cb[g]=c.Ra(d+b.x,k+b.y,!0),t.Cb[l]=c.Ra(d+b.x,k+b.y,!1);t.Ea();h=0;for(e=u.yd;h<e;h++)g=2*h,l=g+1,d=u.Cb[g],
k=u.Cb[l],u.Cb[g]=f.Ra(d+a.x,k+a.y,!0),u.Cb[l]=f.Ra(d+a.x,k+a.y,!1);u.Ea();return t.ti(u,0,0)};var O=new ya;new xa(0,0,0,0);var P=[];d.prototype.Ps=function(b,a){var c,f,h,e,g=a.Ia,l=b.x,d=b.y;b.DA(g,P);var k=a.za&&!a.za.$g();c=0;for(f=P.length;c<f;++c)if(h=P[c],e=h.TA,g.Xx(e,l,d)&&(O.Fh(e),O.offset(l,d),O.Mq(a.Ib)))if(k)if(a.za.Gg(a.width,a.height,a.n),h.xo){if(h.xo.ti(a.za,a.x-(l+e.left),a.y-(d+e.top)))return A(P),!0}else{if(this.Bd.Eh(O,0,0,e.right-e.left,e.bottom-e.top),this.Bd.ti(a.za,a.x,a.y))return A(P),
!0}else if(h.xo){if(this.Bd.Eh(a.Ib,0,0,a.width,a.height),h.xo.ti(this.Bd,-(l+e.left),-(d+e.top)))return A(P),!0}else return A(P),!0;A(P);return!1};d.prototype.Ws=function(b,a){if(!a)return!1;var c,f,h,e,g;c=0;for(f=b.Sa.length;c<f;c++)if(b.Sa[c].behavior instanceof a)return!0;if(!b.H)for(c=0,f=b.Qa.length;c<f;c++)for(g=b.Qa[c],h=0,e=g.Sa.length;h<e;h++)if(g.Sa[h].behavior instanceof a)return!0;return!1};d.prototype.Zo=function(b){return this.Ws(b,kc.dA)};d.prototype.$o=function(b){return this.Ws(b,
kc.eA)};var M=[];d.prototype.xg=function(b){var a,c,f;b.Ea();this.Ax(b.q,b.Ia,M);a=0;for(c=M.length;a<c;++a)if(f=M[a],f.N.solidEnabled&&this.Cf(b,f))return A(M),f;A(M);return null};d.prototype.Uy=function(b,a,c,f){f=f||50;var h=b.x,e=b.y,g,l=null,d=null;for(g=0;g<f;g++)if(b.x=h+a*g,b.y=e+c*g,b.Z(),!this.Cf(b,l)&&((l=this.xg(b))&&(d=l),!l&&!l))return d&&this.Sy(b,a,c,d),!0;b.x=h;b.y=e;b.Z();return!1};d.prototype.Sy=function(b,a,c,f){var h=2,e,g=!1;e=!1;for(var l=b.x,d=b.y;16>=h;)e=1/h,h*=2,b.x+=a*
e*(g?1:-1),b.y+=c*e*(g?1:-1),b.Z(),this.Cf(b,f)?e=g=!0:(e=g=!1,l=b.x,d=b.y);e&&(b.x=l,b.y=d,b.Z())};d.prototype.Vy=function(b){var a=0,c=b.x,f=b.y,h=0,e=0,g=0,l=this.xg(b);if(l){for(;100>=a;){switch(h){case 0:e=0;g=-1;a++;break;case 1:e=1;g=-1;break;case 2:e=1;g=0;break;case 3:g=e=1;break;case 4:e=0;g=1;break;case 5:e=-1;g=1;break;case 6:e=-1;g=0;break;case 7:g=e=-1}h=(h+1)%8;b.x=sa(c+e*a);b.y=sa(f+g*a);b.Z();if(!this.Cf(b,l)&&(l=this.xg(b),!l))return}b.x=c;b.y=f;b.Z()}};d.prototype.Yy=function(b,
a){b.je&&a.je&&this.tg.push([b,a])};d.prototype.xv=function(b,a,c){var f,h,e;f=0;for(h=this.tg.length;f<h;++f){e=this.tg[f];if(e[0]===b)e=e[1];else if(e[1]===b)e=e[0];else continue;if(a.H){if(-1===a.pg.indexOf(a))continue}else if(e.type!==a)continue;-1===c.indexOf(e)&&c.push(e)}};d.prototype.Lv=function(b,a){var c,f,h;c=0;for(f=this.tg.length;c<f;c++)if(h=this.tg[c],h[0]===b&&h[1]===a||h[0]===a&&h[1]===b)return!0;return!1};d.prototype.Iv=function(b,a,c){var f=b.x,h=b.y,e=pa(10,Ua(a,c,f,h)),g=Pa(a,
c,f,h),l=this.xg(b);if(!l)return Ma(g+ra);var d=l,k,t,u,w,n=G(5);for(k=1;36>k;k++)if(t=g-k*n,b.x=a+Math.cos(t)*e,b.y=c+Math.sin(t)*e,b.Z(),!this.Cf(b,d)&&(d=this.xg(b),!d)){u=t;break}36===k&&(u=Ma(g+ra));d=l;for(k=1;36>k;k++)if(t=g+k*n,b.x=a+Math.cos(t)*e,b.y=c+Math.sin(t)*e,b.Z(),!this.Cf(b,d)&&(d=this.xg(b),!d)){w=t;break}36===k&&(w=Ma(g+ra));b.x=f;b.y=h;b.Z();if(w===u)return w;b=Qa(w,u)/2;b=Sa(w,u)?Ma(u+b+ra):Ma(w+b);u=Math.cos(g);g=Math.sin(g);w=Math.cos(b);b=Math.sin(b);a=u*w+g*b;return Pa(0,
0,u-2*a*w,g-2*a*b)};var E=-1;d.prototype.trigger=function(b,a,c){if(!this.wa)return!1;var f=this.wa.Rf;if(!f)return!1;var h=!1,e,g,l;E++;var d=f.Xm;g=0;for(l=d.length;g<l;++g)e=this.Ts(b,a,d[g],c),h=h||e;e=this.Ts(b,a,f,c);E--;return h||e};d.prototype.Ts=function(b,a,c,f){var h=!1,e,g,l,d;if(a)for(l=this.Xo(b,a,a.type.name,c,f),h=h||l,d=a.type.Qa,e=0,g=d.length;e<g;++e)l=this.Xo(b,a,d[e].name,c,f),h=h||l;else l=this.Xo(b,a,"system",c,f),h=h||l;return h};d.prototype.Xo=function(b,a,c,f,h){var e,g=
!1,l=!1,l="undefined"!==typeof h,d=(l?f.oq:f.Us)[c];if(!d)return g;var k=null;f=0;for(e=d.length;f<e;++f)if(d[f].method==b){k=d[f].fi;break}if(!k)return g;var t;l?t=k[h]:t=k;if(!t)return null;f=0;for(e=t.length;f<e;f++)b=t[f][0],h=t[f][1],l=this.bx(a,c,b,h),g=g||l;return g};d.prototype.bx=function(b,a,c,f){var h,e,g=!1;this.Yo++;var l=this.Va().bb;l&&this.fj(l.Bf);var d=1<this.Yo;this.fj(c.Bf);d&&this.Ty();var k=this.Cl(c);k.bb=c;b&&(h=this.types[a].R(),h.V=!1,A(h.d),h.d[0]=b,this.types[a].Ac());
b=!0;if(c.parent){a=k.Os;for(h=c.parent;h;)a.push(h),h=h.parent;a.reverse();h=0;for(e=a.length;h<e;h++)if(!a[h].hz()){b=!1;break}}b&&(this.Tf++,c.Vc?c.gz(f):c.ob(),g=g||k.fg);this.yl();d&&this.Ky();this.Fe(c.Bf);l&&this.Fe(l.Bf);this.nf&&0===this.Sc&&0===E&&!this.Mn&&this.Ub();this.Yo--;return g};d.prototype.ji=function(){var b=this.Va();return b.bb.rb[b.ib]};d.prototype.Zx=function(){return 0===this.Va().ib};d.prototype.nx=function(){var b=this.Va();return b.bb.$c[b.nc]};d.prototype.Ty=function(){this.dl++;
this.dl>=this.Xn.length&&this.Xn.push([])};d.prototype.Ky=function(){this.dl--};d.prototype.wq=function(){return this.Xn[this.dl]};d.prototype.Cl=function(b){this.pk++;this.pk>=this.$m.length&&this.$m.push(new Wb);var a=this.Va();a.reset(b);return a};d.prototype.yl=function(){this.pk--};d.prototype.Va=function(){return this.$m[this.pk]};d.prototype.os=function(){this.fl++;this.fl>=this.Zn.length&&this.Zn.push(aa({name:void 0,index:0,qb:!1}));var b=this.ox();b.name=void 0;b.index=0;b.qb=!1;return b};
d.prototype.js=function(){this.fl--};d.prototype.ox=function(){return this.Zn[this.fl]};d.prototype.yq=function(b,a){for(var c,f,h,e,g,l;a;){c=0;for(f=a.md.length;c<f;c++)if(l=a.md[c],l instanceof Xb&&mb(b,l.name))return l;a=a.parent}c=0;for(f=this.qe.length;c<f;c++)for(g=this.qe[c],h=0,e=g.kf.length;h<e;h++)if(l=g.kf[h],l instanceof Xb&&mb(b,l.name))return l;return null};d.prototype.Aq=function(b){var a,c;a=0;for(c=this.vd.length;a<c;a++)if(this.vd[a].ja===b)return this.vd[a];return null};d.prototype.Fk=
function(b){var a,c;a=0;for(c=this.D.length;a<c;a++)if(this.D[a].ja===b)return this.D[a];return null};d.prototype.qx=function(b){var a,c;a=0;for(c=this.Ye.length;a<c;a++)if(this.Ye[a].ja===b)return this.Ye[a];return null};d.prototype.Vv=function(b,a){this.oj=[b,a];this.ea=!0};d.prototype.Qx=function(){var b=this,a=this.Jo,c=this.ye,f=this.Zk,h=!1;this.Is&&(h=!0,a="__c2_continuouspreview",this.Is=!1);if(a.length){this.Ub();c=this.lz();if(m()&&!this.Rc)n(a,c,function(){ga("Saved state to IndexedDB storage ("+
c.length+" bytes)");b.ye=c;b.trigger(U.prototype.j.tm,null);c=b.ye="";h&&k()},function(f){try{localStorage.setItem("__c2save_"+a,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),b.ye=c,b.trigger(U.prototype.j.tm,null),c=b.ye="",h&&k()}catch(e){ga("Failed to save game state: "+f+"; "+e),b.trigger(U.prototype.j.yp,null)}});else try{localStorage.setItem("__c2save_"+a,c),ga("Saved state to WebStorage ("+c.length+" bytes)"),b.ye=c,this.trigger(U.prototype.j.tm,null),c=b.ye="",h&&k()}catch(e){ga("Error saving to WebStorage: "+
e),b.trigger(U.prototype.j.yp,null)}this.Zk=this.Jo="";this.zb=null}if(f.length){if(m()&&!this.Rc)r(f,function(a){a?(b.zb=a,ga("Loaded state from IndexedDB storage ("+b.zb.length+" bytes)")):(b.zb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+b.zb.length+" bytes)"));b.qj=!1;b.zb||(b.zb=null,b.trigger(U.prototype.j.Hj,null))},function(){b.zb=localStorage.getItem("__c2save_"+f)||"";ga("Loaded state from WebStorage ("+b.zb.length+" bytes)");b.qj=!1;b.zb||(b.zb=null,b.trigger(U.prototype.j.Hj,
null))});else{try{this.zb=localStorage.getItem("__c2save_"+f)||"",ga("Loaded state from WebStorage ("+this.zb.length+" bytes)")}catch(g){this.zb=null}this.qj=!1;b.zb||(b.zb=null,b.trigger(U.prototype.j.Hj,null))}this.Jo=this.Zk=""}null!==this.zb&&(this.Ub(),this.my(this.zb)?(this.ye=this.zb,this.trigger(U.prototype.j.uu,null),this.ye=""):b.trigger(U.prototype.j.Hj,null),this.zb=null)};d.prototype.lz=function(){var b,c,f,h,e,g,l,d={c2save:!0,version:1,rt:{time:this.Eb.W,walltime:this.Qe.W,timescale:this.zg,
tickcount:this.$d,execcount:this.Tf,next_uid:this.Xi,running_layout:this.wa.ja,start_time_offset:Date.now()-this.Ul},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};b=0;for(c=this.D.length;b<c;b++)if(e=this.D[b],!e.H&&!this.Zo(e)){g={instances:[]};Xa(e.N)&&(g.ex=a(e.N));f=0;for(h=e.d.length;f<h;f++)g.instances.push(this.Io(e.d[f]));d.types[e.ja.toString()]=g}b=0;for(c=this.vd.length;b<c;b++)f=this.vd[b],d.layouts[f.ja.toString()]=f.fb();h=d.events.groups;b=0;for(c=this.Ye.length;b<
c;b++)f=this.Ye[b],h[f.ja.toString()]=this.Vg[f.pi].Xf;c=d.events.cnds;for(l in this.ef)this.ef.hasOwnProperty(l)&&(b=this.ef[l],Xa(b.N)&&(c[l]={ex:a(b.N)}));c=d.events.acts;for(l in this.We)this.We.hasOwnProperty(l)&&(b=this.We[l],Xa(b.N)&&(c[l]={ex:a(b.N)}));c=d.events.vars;for(l in this.Ph)this.Ph.hasOwnProperty(l)&&(b=this.Ph[l],b.Sk||b.parent&&!b.Ei||(c[l]=b.data));d.system=this.Yd.fb();return JSON.stringify(d)};d.prototype.rs=function(){var b,a,c,f,h,e;this.Be={};b=0;for(a=this.D.length;b<a;b++)if(c=
this.D[b],!c.H)for(f=0,h=c.d.length;f<h;f++)e=c.d[f],this.Be[e.uid.toString()]=e};d.prototype.my=function(b){var a;try{a=JSON.parse(b)}catch(c){return!1}if(!a.c2save||1<a.version)return!1;this.xi=!0;b=a.rt;this.Eb.reset();this.Eb.W=b.time;this.Qe.reset();this.Qe.W=b.walltime||0;this.zg=b.timescale;this.$d=b.tickcount;this.Tf=b.execcount;this.Ul=Date.now()-b.start_time_offset;var f=b.running_layout;if(f!==this.wa.ja)if(f=this.Aq(f))this.kq(f);else return;var h,e,g,l,d,k,t;k=a.types;for(e in k)if(k.hasOwnProperty(e)&&
(l=this.Fk(parseInt(e,10)))&&!l.H&&!this.Zo(l)){k[e].ex?l.N=k[e].ex:$a(l.N);d=l.d;g=k[e].instances;f=0;for(h=qa(d.length,g.length);f<h;f++)this.$k(d[f],g[f]);f=g.length;for(h=d.length;f<h;f++)this.be(d[f]);f=d.length;for(h=g.length;f<h;f++){d=null;if(l.qa.rf&&(d=this.wa.Ek(g[f].w.l),!d))continue;d=this.gf(l.bd,d,!1,0,0,!0);this.$k(d,g[f])}l.Ih=!0}this.Ub();this.rs();h=a.layouts;for(e in h)h.hasOwnProperty(e)&&(f=this.Aq(parseInt(e,10)))&&f.yb(h[e]);h=a.events.groups;for(e in h)h.hasOwnProperty(e)&&
(f=this.qx(parseInt(e,10)))&&this.Vg[f.pi]&&this.Vg[f.pi].jj(h[e]);f=a.events.cnds;for(e in this.ef)this.ef.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.ef[e].N=f[e].ex:this.ef[e].N={});f=a.events.acts;for(e in this.We)this.We.hasOwnProperty(e)&&(f.hasOwnProperty(e)?this.We[e].N=f[e].ex:this.We[e].N={});f=a.events.vars;for(e in f)f.hasOwnProperty(e)&&this.Ph.hasOwnProperty(e)&&(this.Ph[e].data=f[e]);this.Xi=b.next_uid;this.xi=!1;f=0;for(h=this.vk.length;f<h;++f)d=this.vk[f],this.trigger(Object.getPrototypeOf(d.type.qa).j.Dg,
d);A(this.vk);this.Yd.yb(a.system);f=0;for(h=this.D.length;f<h;f++)if(l=this.D[f],!l.H&&!this.Zo(l))for(a=0,e=l.d.length;a<e;a++){d=l.d[a];if(l.Qb)for(k=d.oi(),A(d.siblings),b=0,g=l.Bc.length;b<g;b++)t=l.Bc[b],l!==t&&d.siblings.push(t.d[k]);d.Hd&&d.Hd();if(d.ca)for(b=0,g=d.ca.length;b<g;b++)k=d.ca[b],k.Hd&&k.Hd()}return this.ea=!0};d.prototype.Io=function(b,c){var f,h,e,g,l;g=b.type;e=g.qa;var d={};c?d.c2=!0:d.uid=b.uid;Xa(b.N)&&(d.ex=a(b.N));if(b.wb&&b.wb.length)for(d.ivs={},f=0,h=b.wb.length;f<
h;f++)d.ivs[b.type.Hn[f].toString()]=b.wb[f];if(e.rf){e={x:b.x,y:b.y,w:b.width,h:b.height,l:b.q.ja,zi:b.Od()};0!==b.n&&(e.a=b.n);1!==b.opacity&&(e.o=b.opacity);.5!==b.ec&&(e.hX=b.ec);.5!==b.fc&&(e.hY=b.fc);0!==b.Vb&&(e.bm=b.Vb);b.visible||(e.v=b.visible);b.je||(e.ce=b.je);-1!==b.Wi&&(e.mts=b.Wi);if(g.U.length)for(e.fx=[],f=0,h=g.U.length;f<h;f++)l=g.U[f],e.fx.push({name:l.name,active:b.Ve[l.index],params:b.Ua[l.index]});d.w=e}if(b.ca&&b.ca.length)for(d.behs={},f=0,h=b.ca.length;f<h;f++)g=b.ca[f],
g.fb&&(d.behs[g.type.ja.toString()]=g.fb());b.fb&&(d.data=b.fb());return d};d.prototype.tx=function(b,a){var c,f;c=0;for(f=b.Hn.length;c<f;c++)if(b.Hn[c]===a)return c;return-1};d.prototype.mx=function(b,a){var c,f;c=0;for(f=b.ca.length;c<f;c++)if(b.ca[c].type.ja===a)return c;return-1};d.prototype.$k=function(b,a,c){var f,h,e,g,l;l=b.type;var d=l.qa;if(c){if(!a.c2)return}else b.uid=a.uid;a.ex?b.N=a.ex:$a(b.N);if(h=a.ivs)for(f in h)h.hasOwnProperty(f)&&(e=this.tx(l,parseInt(f,10)),0>e||e>=b.wb.length||
(g=h[f],null===g&&(g=NaN),b.wb[e]=g));if(d.rf){e=a.w;b.q.ja!==e.l&&(h=b.q,b.q=this.wa.Ek(e.l),b.q?(h.Bh(b,!0),b.q.Yh(b,!0),b.Z(),b.q.lj(0)):(b.q=h,c||this.be(b)));b.x=e.x;b.y=e.y;b.width=e.w;b.height=e.h;b.Ed=e.zi;b.n=e.hasOwnProperty("a")?e.a:0;b.opacity=e.hasOwnProperty("o")?e.o:1;b.ec=e.hasOwnProperty("hX")?e.hX:.5;b.fc=e.hasOwnProperty("hY")?e.hY:.5;b.visible=e.hasOwnProperty("v")?e.v:!0;b.je=e.hasOwnProperty("ce")?e.ce:!0;b.Wi=e.hasOwnProperty("mts")?e.mts:-1;b.Vb=e.hasOwnProperty("bm")?e.bm:
0;b.ai=jb(b.Vb);this.F&&kb(b,b.Vb,this.F);b.Z();if(e.hasOwnProperty("fx"))for(c=0,h=e.fx.length;c<h;c++)g=l.pn(e.fx[c].name),0>g||(b.Ve[g]=e.fx[c].active,b.Ua[g]=e.fx[c].params);b.Dd()}if(l=a.behs)for(f in l)l.hasOwnProperty(f)&&(c=this.mx(b,parseInt(f,10)),0>c||b.ca[c].yb(l[f]));a.data&&b.yb(a.data)};d.prototype.pq=function(b,a,c){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+b,function(b){b.file(a,c)},c)};d.prototype.rq=function(b,a,c){this.pq(b,function(b){var f=new FileReader;
f.onload=function(b){a(b.target.result)};f.onerror=c;f.readAsText(b)},c)};var V=[],J=0;d.prototype.ao=function(){if(V.length&&!(8<=J)){J++;var b=V.shift();this.Xv(b.filename,b.yz,b.zw)}};d.prototype.qq=function(b,a,c){var f=this;V.push({filename:b,yz:function(b){J--;f.ao();a(b)},zw:function(b){J--;f.ao();c(b)}});this.ao()};d.prototype.Xv=function(b,a,c){this.pq(b,function(b){var c=new FileReader;c.onload=function(b){a(b.target.result)};c.readAsArrayBuffer(b)},c)};d.prototype.cx=function(b,a,c){var f=
"",e=b.toLowerCase(),h=e.substr(e.length-4),e=e.substr(e.length-5);".mp4"===h?f="video/mp4":".webm"===e?f="video/webm":".m4a"===h?f="audio/mp4":".mp3"===h&&(f="audio/mpeg");this.qq(b,function(b){b=URL.createObjectURL(new Blob([b],{type:f}));a(b)},c)};d.prototype.Nq=function(b){return/^(?:[a-z]+:)?\/\//.test(b)||"data:"===b.substr(0,5)||"blob:"===b.substr(0,5)};d.prototype.As=function(b,a){this.Ci&&!this.Nq(a)?this.cx(a,function(a){b.src=a},function(b){alert("Failed to load image: "+b)}):b.src=a};
d.prototype.Ll=function(b,a){"undefined"!==typeof b.imageSmoothingEnabled?b.imageSmoothingEnabled=a:(b.webkitImageSmoothingEnabled=a,b.mozImageSmoothingEnabled=a,b.msImageSmoothingEnabled=a)};Yb=function(b){return new d(document.getElementById(b))};Zb=function(b,a){return new d({dc:!0,width:b,height:a})};window.cr_createRuntime=Yb;window.cr_createDCRuntime=Zb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var b=document.createElement("screencanvas")||document.createElement("canvas");
b.If=!0;document.body.appendChild(b);b=new d(b);window.c2runtime=b;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b};window.createEjectaRuntime=function(){var b=new d(document.getElementById("canvas"));window.c2runtime=b;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return b}})();
window.cr_getC2Runtime=function(){var d=document.getElementById("c2canvas");return d?d.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(d,p){var m=window.cr_getC2Runtime();m&&m.Vv(d,p)};window.cr_sizeCanvas=function(d,p){if(0!==d&&0!==p){var m=window.cr_getC2Runtime();m&&m.setSize(d,p)}};window.cr_setSuspended=function(d){var p=window.cr_getC2Runtime();p&&p.setSuspended(d)};
(function(){function d(b,a){this.b=b;this.Rf=null;this.scrollX=this.b.Bb/2;this.scrollY=this.b.Ab/2;this.scale=1;this.n=0;this.Sg=!0;this.name=a[0];this.Ey=a[1];this.Dy=a[2];this.width=a[1];this.height=a[2];this.Xs=a[3];this.Gs=a[4];this.ja=a[5];var c=a[6],e,d;this.X=[];this.si=[];e=0;for(d=c.length;e<d;e++){var k=new $b(this,c[e]);k.Lr=e;this.X.push(k)}c=a[7];this.of=[];e=0;for(d=c.length;e<d;e++){var k=c[e],n=this.b.D[k[1]];n.bd||(n.bd=k);this.of.push(k);-1===this.si.indexOf(n)&&this.si.push(n)}this.U=
[];this.ua=[];this.Je=!0;this.Ua=[];e=0;for(d=a[8].length;e<d;e++)this.U.push({id:a[8][e][0],name:a[8][e][1],pb:-1,xd:!1,Oa:!0,index:e}),this.Ua.push(a[8][e][2].slice(0));this.Dd();this.zf=new xa(0,0,1,1);this.Co=new xa(0,0,1,1);this.yf={}}function p(b,a){return b.Ed-a.Ed}function m(b,a){this.Fb=b;this.b=b.b;this.d=[];this.scale=1;this.n=0;this.oe=!1;this.Ne=new xa(0,0,0,0);this.Ss=new ya;this.Ca=this.ta=this.Da=this.ra=0;this.Ag=!1;this.Se=-1;this.Qm=0;this.name=a[0];this.index=a[1];this.ja=a[2];
this.visible=a[3];this.rd=a[4];this.Cd=a[5];this.gd=a[6];this.hd=a[7];this.opacity=a[8];this.Ak=a[9];this.Zc=a[10];this.Fd=a[11];this.Vb=a[12];this.vw=a[13];this.ai="source-over";this.Xb=this.ac=0;this.Tb=null;this.ze=q();this.Ad=!0;this.ih=new xa(0,0,-1,-1);this.Lb=new xa(0,0,-1,-1);this.Zc&&(this.Tb=new ib(this.b.Bb,this.b.Ab));this.Wd=!1;var c=a[14],e,d;this.Ms=[];this.Qc=[];this.ci=[];e=0;for(d=c.length;e<d;e++){var k=c[e],n=this.b.D[k[1]];n.bd||(n.bd=k,n.Rv=this.index);this.Qc.push(k);-1===this.Fb.si.indexOf(n)&&
this.Fb.si.push(n)}Ea(this.Ms,this.Qc);this.U=[];this.ua=[];this.Je=!0;this.Ua=[];e=0;for(d=a[15].length;e<d;e++)this.U.push({id:a[15][e][0],name:a[15][e][1],pb:-1,xd:!1,Oa:!0,index:e}),this.Ua.push(a[15][e][2].slice(0));this.Dd();this.zf=new xa(0,0,1,1);this.Co=new xa(0,0,1,1)}function q(){return a.length?a.pop():[]}function n(b){A(b);a.push(b)}d.prototype.kz=function(b){var a=b.type.ja.toString();this.yf.hasOwnProperty(a)||(this.yf[a]=[]);this.yf[a].push(this.b.Io(b))};d.prototype.Eq=function(){var b=
this.X[0];return!b.Cd&&1===b.opacity&&!b.Ak&&b.visible};d.prototype.Dd=function(){A(this.ua);this.Je=!0;var b,a,c;b=0;for(a=this.U.length;b<a;b++)c=this.U[b],c.Oa&&(this.ua.push(c),c.xd||(this.Je=!1))};d.prototype.nn=function(b){var a,c,e;a=0;for(c=this.U.length;a<c;a++)if(e=this.U[a],e.name===b)return e;return null};var r=[],k=!0;d.prototype.So=function(){this.Gs&&(this.Rf=this.b.an[this.Gs],this.Rf.bp());this.b.wa=this;this.width=this.Ey;this.height=this.Dy;this.scrollX=this.b.Bb/2;this.scrollY=
this.b.Ab/2;var b,a,c,e,d,n,m;b=0;for(c=this.b.D.length;b<c;b++)if(a=this.b.D[b],!a.H)for(d=a.d,a=0,e=d.length;a<e;a++)if(n=d[a],n.q){var h=n.q.Lr;h>=this.X.length&&(h=this.X.length-1);n.q=this.X[h];-1===n.q.d.indexOf(n)&&n.q.d.push(n);n.q.Ag=!0}if(!k)for(b=0,c=this.X.length;b<c;++b)this.X[b].d.sort(p);A(r);this.Gv();b=0;for(c=this.X.length;b<c;b++)n=this.X[b],n.Qv(),n.lm();d=!1;if(!this.Sg){for(m in this.yf)if(this.yf.hasOwnProperty(m)&&(a=this.b.Fk(parseInt(m,10)))&&!a.H&&this.b.$o(a)){e=this.yf[m];
b=0;for(c=e.length;b<c;b++){n=null;if(a.qa.rf&&(n=this.Ek(e[b].w.l),!n))continue;n=this.b.gf(a.bd,n,!1,0,0,!0);this.b.$k(n,e[b]);d=!0;r.push(n)}A(e)}b=0;for(c=this.X.length;b<c;b++)this.X[b].d.sort(p),this.X[b].Ag=!0}d&&(this.b.Ub(),this.b.rs());for(b=0;b<r.length;b++)if(n=r[b],n.type.Qb)for(c=n.oi(),a=0,e=n.type.Bc.length;a<e;a++)m=n.type.Bc[a],n.type!==m&&(m.d.length>c?n.siblings.push(m.d[c]):m.bd&&(d=this.b.gf(m.bd,n.q,!0,n.x,n.y,!0),this.b.Ub(),m.jm(),n.siblings.push(d),r.push(d)));b=0;for(c=
this.of.length;b<c;b++)n=this.of[b],a=this.b.D[n[1]],a.Qb||this.b.gf(this.of[b],null,!0);this.b.ie=null;this.b.Ub();if(this.b.Pa&&!this.b.lb)for(b=0,c=this.b.D.length;b<c;b++)m=this.b.D[b],!m.H&&m.d.length&&m.cj&&m.cj(this.b.Pa);if(this.b.xi)Ea(this.b.vk,r);else for(b=0,c=r.length;b<c;b++)n=r[b],this.b.trigger(Object.getPrototypeOf(n.type.qa).j.Dg,n);A(r);this.b.xi||this.b.trigger(U.prototype.j.sp,null);this.Sg=!1};d.prototype.Pv=function(){var b,a,c,e,d;a=b=0;for(c=this.of.length;b<c;b++)e=this.of[b],
d=this.b.D[e[1]],d.global?d.Qb||this.b.gf(e,null,!0):(this.of[a]=e,a++);Da(this.of,a)};d.prototype.xz=function(){this.b.xi||this.b.trigger(U.prototype.j.rp,null);this.b.Jn=!0;A(this.b.Yd.yc);var b,a,c,e,d,n;if(!this.Sg)for(b=0,a=this.X.length;b<a;b++)for(this.X[b].dp(),d=this.X[b].d,c=0,e=d.length;c<e;c++)n=d[c],n.type.global||this.b.$o(n.type)&&this.kz(n);b=0;for(a=this.X.length;b<a;b++){d=this.X[b].d;c=0;for(e=d.length;c<e;c++)n=d[c],n.type.global||this.b.be(n);this.b.Ub();A(d);this.X[b].Ag=!0}b=
0;for(a=this.b.D.length;b<a;b++)if(d=this.b.D[b],!(d.global||d.qa.rf||d.qa.Ql||d.H)){c=0;for(e=d.d.length;c<e;c++)this.b.be(d.d[c]);this.b.Ub()}k=!1;this.b.Jn=!1};new xa(0,0,0,0);d.prototype.Cc=function(b){var a,c=b,e=!1,d=!this.b.Oc;d&&(this.b.Yk||(this.b.Yk=document.createElement("canvas"),a=this.b.Yk,a.width=this.b.P,a.height=this.b.O,this.b.dr=a.getContext("2d"),e=!0),a=this.b.Yk,c=this.b.dr,a.width!==this.b.P&&(a.width=this.b.P,e=!0),a.height!==this.b.O&&(a.height=this.b.O,e=!0),e&&this.b.Ll(c,
this.b.Fa));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.b.aq&&!this.Eq()&&c.clearRect(0,0,this.b.P,this.b.O);var k,n,e=0;for(k=this.X.length;e<k;e++)n=this.X[e],n.visible&&0<n.opacity&&11!==n.Vb&&(n.d.length||!n.Cd)?n.Cc(c):n.lm();d&&b.drawImage(a,0,0,this.b.width,this.b.height)};d.prototype.Of=function(b){b.zs(!0);this.b.mb||(this.b.mb=b.Mc(this.b.P,this.b.O,this.b.Fa));if(this.b.mb.Lf!==this.b.P||this.b.mb.Kf!==this.b.O)b.deleteTexture(this.b.mb),this.b.mb=b.Mc(this.b.P,this.b.O,
this.b.Fa);b.kd(this.b.mb);this.b.Oc||b.vg(this.b.P,this.b.O);var a,c;for(a=this.X.length-1;0<=a;--a)c=this.X[a],c.visible&&1===c.opacity&&c.Je&&0===c.Vb&&(c.d.length||!c.Cd)?c.Of(b):c.lm();b.zs(!1)};d.prototype.Mb=function(b){var a=0<this.ua.length||this.b.Nh||!this.b.Oc||this.b.Ja;if(a){this.b.mb||(this.b.mb=b.Mc(this.b.P,this.b.O,this.b.Fa));if(this.b.mb.Lf!==this.b.P||this.b.mb.Kf!==this.b.O)b.deleteTexture(this.b.mb),this.b.mb=b.Mc(this.b.P,this.b.O,this.b.Fa);b.kd(this.b.mb);this.b.Oc||b.vg(this.b.P,
this.b.O)}else this.b.mb&&(b.kd(null),b.deleteTexture(this.b.mb),this.b.mb=null);this.b.aq&&!this.Eq()&&b.clear(0,0,0,0);var c,e,d;c=0;for(e=this.X.length;c<e;c++)d=this.X[c],d.visible&&0<d.opacity&&(d.d.length||!d.Cd)?d.Mb(b):d.lm();a&&(0===this.ua.length||1===this.ua.length&&this.b.Oc?(1===this.ua.length?(a=this.ua[0].index,b.xc(this.ua[0].pb),b.Dh(null,1/this.b.P,1/this.b.O,0,0,1,1,this.scale,this.n,0,0,this.b.P/2,this.b.O/2,this.b.Eb.W,this.Ua[a]),b.Bl(this.ua[0].pb)&&(this.b.ea=!0)):b.xc(0),
this.b.Oc||b.vg(this.b.width,this.b.height),b.kd(null),b.xs(!1),b.He(1),b.jc(this.b.mb),b.vs(),b.jd(),b.Yc(),a=this.b.width/2,c=this.b.height/2,b.Ah(-a,c,a,c,a,-c,-a,-c),b.jc(null),b.xs(!0)):this.Do(b,null,null,null))};d.prototype.ni=function(){return 0<this.ua.length||this.b.Nh||!this.b.Oc||this.b.Ja?this.b.mb:null};d.prototype.Bq=function(){var b=this.X[0].pc(),a,c,e;a=1;for(c=this.X.length;a<c;a++)e=this.X[a],(0!==e.gd||0!==e.hd)&&e.pc()<b&&(b=e.pc());return b};d.prototype.Ko=function(b){if(!this.Xs){var a=
1/this.Bq()*this.b.P/2;b>this.width-a&&(b=this.width-a);b<a&&(b=a)}this.scrollX!==b&&(this.scrollX=b,this.b.ea=!0)};d.prototype.us=function(b){if(!this.Xs){var a=1/this.Bq()*this.b.O/2;b>this.height-a&&(b=this.height-a);b<a&&(b=a)}this.scrollY!==b&&(this.scrollY=b,this.b.ea=!0)};d.prototype.Gv=function(){this.Ko(this.scrollX);this.us(this.scrollY)};d.prototype.Do=function(b,a,c,e){var d=c?c.ua:a?a.ua:this.ua,k=1,n=0,h=0,t=0,p=this.b.P,r=this.b.O;c?(k=c.q.pc(),n=c.q.tb(),h=c.q.ra,t=c.q.ta,p=c.q.Da,
r=c.q.Ca):a&&(k=a.pc(),n=a.tb(),h=a.ra,t=a.ta,p=a.Da,r=a.Ca);var w=this.b.hn,m,q,v,C,H=0,S=1,O,P,M=this.b.P,E=this.b.O,V=M/2,J=E/2,z=a?a.zf:this.zf,y=a?a.Co:this.Co,x=0,Q=0,D=0,L=0,W=M,va=M,R=E,fa=E,ia=v=0;C=c?c.q.tb():0;if(c){m=0;for(q=d.length;m<q;m++)v+=b.xx(d[m].pb),ia+=b.yx(d[m].pb);L=c.Ia;x=a.Ra(L.left,L.top,!0,!0);D=a.Ra(L.left,L.top,!1,!0);W=a.Ra(L.right,L.bottom,!0,!0);R=a.Ra(L.right,L.bottom,!1,!0);0!==C&&(m=a.Ra(L.right,L.top,!0,!0),q=a.Ra(L.right,L.top,!1,!0),Q=a.Ra(L.left,L.bottom,!0,
!0),L=a.Ra(L.left,L.bottom,!1,!0),C=Math.min(x,W,m,Q),W=Math.max(x,W,m,Q),x=C,C=Math.min(D,R,q,L),R=Math.max(D,R,q,L),D=C);x-=v;D-=ia;W+=v;R+=ia;y.left=x/M;y.top=1-D/E;y.right=W/M;y.bottom=1-R/E;Q=x=sa(x);L=D=sa(D);va=W=ta(W);fa=R=ta(R);Q-=v;L-=ia;va+=v;fa+=ia;0>x&&(x=0);0>D&&(D=0);W>M&&(W=M);R>E&&(R=E);0>Q&&(Q=0);0>L&&(L=0);va>M&&(va=M);fa>E&&(fa=E);z.left=x/M;z.top=1-D/E;z.right=W/M;z.bottom=1-R/E}else z.left=y.left=0,z.top=y.top=0,z.right=y.right=1,z.bottom=y.bottom=1;ia=c&&(b.dj(d[0].pb)||0!==
v||0!==ia||1!==c.opacity||c.type.qa.Gr)||a&&!c&&1!==a.opacity;b.vs();if(ia){w[H]||(w[H]=b.Mc(M,E,this.b.Fa));if(w[H].Lf!==M||w[H].Kf!==E)b.deleteTexture(w[H]),w[H]=b.Mc(M,E,this.b.Fa);b.xc(0);b.kd(w[H]);P=fa-L;b.clearRect(Q,E-L-P,va-Q,P);c?c.Mb(b):(b.jc(this.b.xb),b.He(a.opacity),b.jd(),b.translate(-V,-J),b.Yc(),b.zd(x,R,W,R,W,D,x,D,z));y.left=y.top=0;y.right=y.bottom=1;c&&(C=z.top,z.top=z.bottom,z.bottom=C);H=1;S=0}b.He(1);v=d.length-1;var Aa=b.zo(d[v].pb)||!a&&!c&&!this.b.Oc;m=C=0;for(q=d.length;m<
q;m++){w[H]||(w[H]=b.Mc(M,E,this.b.Fa));if(w[H].Lf!==M||w[H].Kf!==E)b.deleteTexture(w[H]),w[H]=b.Mc(M,E,this.b.Fa);b.xc(d[m].pb);C=d[m].index;b.Bl(d[m].pb)&&(this.b.ea=!0);0!=m||ia?(b.Dh(e,1/M,1/E,y.left,y.top,y.right,y.bottom,k,n,h,t,(h+p)/2,(t+r)/2,this.b.Eb.W,c?c.Ua[C]:a?a.Ua[C]:this.Ua[C]),b.jc(null),m!==v||Aa?(b.kd(w[H]),P=fa-L,O=E-L-P,b.clearRect(Q,O,va-Q,P)):(c?b.Af(c.ac,c.Xb):a&&b.Af(a.ac,a.Xb),b.kd(e)),b.jc(w[S]),b.jd(),b.translate(-V,-J),b.Yc(),b.zd(x,R,W,R,W,D,x,D,z),m!==v||Aa||b.jc(null)):
(b.kd(w[H]),P=fa-L,O=E-L-P,b.clearRect(Q,O,va-Q,P),c?(c.Kb&&c.Kb.G?(O=c.Kb.G,S=1/O.width,O=1/O.height):(S=1/c.width,O=1/c.height),b.Dh(e,S,O,y.left,y.top,y.right,y.bottom,k,n,h,t,(h+p)/2,(t+r)/2,this.b.Eb.W,c.Ua[C]),c.Mb(b)):(b.Dh(e,1/M,1/E,0,0,1,1,k,n,h,t,(h+p)/2,(t+r)/2,this.b.Eb.W,a?a.Ua[C]:this.Ua[C]),b.jc(a?this.b.xb:this.b.mb),b.jd(),b.translate(-V,-J),b.Yc(),b.zd(x,R,W,R,W,D,x,D,z)),y.left=y.top=0,y.right=y.bottom=1,c&&!Aa&&(C=R,R=D,D=C));H=0===H?1:0;S=0===H?1:0}Aa&&(b.xc(0),c?b.Af(c.ac,c.Xb):
a?b.Af(a.ac,a.Xb):this.b.Oc||(b.vg(this.b.width,this.b.height),V=this.b.width/2,J=this.b.height/2,D=x=0,W=this.b.width,R=this.b.height),b.kd(e),b.jc(w[S]),b.jd(),b.translate(-V,-J),b.Yc(),c&&1===d.length&&!ia?b.zd(x,D,W,D,W,R,x,R,z):b.zd(x,R,W,R,W,D,x,D,z),b.jc(null))};d.prototype.Ek=function(b){var a,c;a=0;for(c=this.X.length;a<c;a++)if(this.X[a].ja===b)return this.X[a];return null};d.prototype.fb=function(){var b,a,c,e={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,
fv:this.Sg,persist:this.yf,fx:[],layers:{}};b=0;for(a=this.U.length;b<a;b++)c=this.U[b],e.fx.push({name:c.name,active:c.Oa,params:this.Ua[c.index]});b=0;for(a=this.X.length;b<a;b++)c=this.X[b],e.layers[c.ja.toString()]=c.fb();return e};d.prototype.yb=function(b){var a,c,e,d;this.scrollX=b.sx;this.scrollY=b.sy;this.scale=b.s;this.n=b.a;this.width=b.w;this.height=b.h;this.yf=b.persist;"undefined"!==typeof b.fv&&(this.Sg=b.fv);var k=b.fx;a=0;for(c=k.length;a<c;a++)if(e=this.nn(k[a].name))e.Oa=k[a].active,
this.Ua[e.index]=k[a].params;this.Dd();a=b.layers;for(d in a)a.hasOwnProperty(d)&&(b=this.Ek(parseInt(d,10)))&&b.yb(a[d])};Mb=d;m.prototype.Dd=function(){A(this.ua);this.Je=!0;var b,a,c;b=0;for(a=this.U.length;b<a;b++)c=this.U[b],c.Oa&&(this.ua.push(c),c.xd||(this.Je=!1))};m.prototype.nn=function(b){var a,c,e;a=0;for(c=this.U.length;a<c;a++)if(e=this.U[a],e.name===b)return e;return null};m.prototype.Qv=function(){var b,a,c,e,d,k;a=b=0;for(c=this.Qc.length;b<c;b++){e=this.Qc[b];d=this.b.D[e[1]];k=
this.b.$o(d);d=!0;if(!k||this.Fb.Sg){e=this.b.gf(e,this,!0);if(!e)continue;r.push(e);e.type.global&&(d=!1,this.ci.push(e.uid))}d&&(this.Qc[a]=this.Qc[b],a++)}this.Qc.length=a;this.b.Ub();!this.b.B&&this.U.length&&(this.Vb=this.vw);this.ai=jb(this.Vb);this.b.F&&kb(this,this.Vb,this.b.F);this.Ad=!0};m.prototype.Bh=function(b,a){var c=Ga(this.d,b);0>c||(a&&this.Zc&&b.vc&&b.vc.right>=b.vc.left&&(b.Ea(),this.Tb.update(b,b.vc,null),b.vc.set(0,0,-1,-1)),c===this.d.length-1?this.d.pop():(Ca(this.d,c),this.lj(c)),
this.Ad=!0)};m.prototype.Yh=function(b,a){b.Ed=this.d.length;this.d.push(b);a&&this.Zc&&b.vc&&b.Z();this.Ad=!0};m.prototype.Py=function(b){this.d.unshift(b);this.lj(0)};m.prototype.uy=function(b,a,c){var e=b.Od();a=a.Od();Ca(this.d,e);e<a&&a--;c&&a++;a===this.d.length?this.d.push(b):this.d.splice(a,0,b);this.lj(e<a?e:a)};m.prototype.lj=function(b){-1===this.Se?this.Se=b:b<this.Se&&(this.Se=b);this.Ad=this.Ag=!0};m.prototype.dp=function(){if(this.Ag){-1===this.Se&&(this.Se=0);var b,a,c;if(this.Zc)for(b=
this.Se,a=this.d.length;b<a;++b)c=this.d[b],c.Ed=b,this.Tb.oy(c.vc);else for(b=this.Se,a=this.d.length;b<a;++b)this.d[b].Ed=b;this.Ag=!1;this.Se=-1}};m.prototype.pc=function(b){return this.ux()*(this.b.Oc||b?this.b.Zh:1)};m.prototype.ux=function(){return(this.scale*this.Fb.scale-1)*this.Fd+1};m.prototype.tb=function(){return this.oe?0:Ma(this.Fb.n+this.n)};var a=[],c=[],e=[];m.prototype.tn=function(){this.dp();this.Tb.Dl(this.ra,this.ta,this.Da,this.Ca,e);if(!e.length)return q();if(1===e.length){var b=
q();Ea(b,e[0]);A(e);return b}for(var a=!0;1<e.length;){for(var b=e,d=void 0,g=void 0,k=void 0,p=void 0,r=void 0,d=0,g=b.length;d<g-1;d+=2){var k=b[d],p=b[d+1],r=q(),h=k,t=p,m=r,I=0,w=0,F=0,K=h.length,v=t.length,C=void 0,H=void 0;for(m.length=K+v;I<K&&w<v;++F)C=h[I],H=t[w],C.Ed<H.Ed?(m[F]=C,++I):(m[F]=H,++w);for(;I<K;++I,++F)m[F]=h[I];for(;w<v;++w,++F)m[F]=t[w];a||(n(k),n(p));c.push(r)}1===g%2&&(a?(k=q(),Ea(k,b[g-1]),c.push(k)):c.push(b[g-1]));Ea(b,c);A(c);a=!1}b=e[0];A(e);return b};m.prototype.Cc=
function(b){this.Wd=this.Ak||1!==this.opacity||0!==this.Vb;var a=this.b.canvas,c=b,e=!1;this.Wd&&(this.b.Xk||(this.b.Xk=document.createElement("canvas"),a=this.b.Xk,a.width=this.b.P,a.height=this.b.O,this.b.cr=a.getContext("2d"),e=!0),a=this.b.Xk,c=this.b.cr,a.width!==this.b.P&&(a.width=this.b.P,e=!0),a.height!==this.b.O&&(a.height=this.b.O,e=!0),e&&this.b.Ll(c,this.b.Fa),this.Cd&&c.clearRect(0,0,this.b.P,this.b.O));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.Cd||(c.fillStyle="rgb("+
this.rd[0]+","+this.rd[1]+","+this.rd[2]+")",c.fillRect(0,0,this.b.P,this.b.O));c.save();this.oe=!0;var e=this.Jb(0,0,!0,!0),d=this.Jb(0,0,!1,!0);this.oe=!1;this.b.rc&&(e=Math.round(e),d=Math.round(d));this.Gl(e,d,c);var k=this.pc();c.scale(k,k);c.translate(-e,-d);this.Zc?(this.Lb.left=this.Tb.lc(this.ra),this.Lb.top=this.Tb.mc(this.ta),this.Lb.right=this.Tb.lc(this.Da),this.Lb.bottom=this.Tb.mc(this.Ca),this.Ad||!this.Lb.ei(this.ih)?(n(this.ze),e=this.tn(),this.Ad=!1,this.ih.Jg(this.Lb)):e=this.ze):
e=this.d;for(var p,h=null,d=0,k=e.length;d<k;++d)p=e[d],p!==h&&(this.pw(p,c),h=p);this.Zc&&(this.ze=e);c.restore();this.Wd&&(b.globalCompositeOperation=this.ai,b.globalAlpha=this.opacity,b.drawImage(a,0,0))};m.prototype.pw=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ea();var c=b.Ia;c.right<this.ra||c.bottom<this.ta||c.left>this.Da||c.top>this.Ca||(a.globalCompositeOperation=b.ai,b.Cc(a))}};m.prototype.lm=function(){this.oe=!0;var b=this.Jb(0,0,!0,!0),a=this.Jb(0,0,!1,!0);this.oe=!1;this.b.rc&&
(b=Math.round(b),a=Math.round(a));this.Gl(b,a,null)};m.prototype.Gl=function(b,a,c){var e=this.pc();this.ra=b;this.ta=a;this.Da=b+1/e*this.b.P;this.Ca=a+1/e*this.b.O;this.ra>this.Da&&(b=this.ra,this.ra=this.Da,this.Da=b);this.ta>this.Ca&&(b=this.ta,this.ta=this.Ca,this.Ca=b);b=this.tb();0!==b&&(c&&(c.translate(this.b.P/2,this.b.O/2),c.rotate(-b),c.translate(this.b.P/-2,this.b.O/-2)),this.Ne.set(this.ra,this.ta,this.Da,this.Ca),this.Ne.offset((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2),this.Ss.Es(this.Ne,
b),this.Ss.Up(this.Ne),this.Ne.offset((this.ra+this.Da)/2,(this.ta+this.Ca)/2),this.ra=this.Ne.left,this.ta=this.Ne.top,this.Da=this.Ne.right,this.Ca=this.Ne.bottom)};m.prototype.Of=function(b){if(this.Wd=this.Ak){this.b.xb||(this.b.xb=b.Mc(this.b.P,this.b.O,this.b.Fa));if(this.b.xb.Lf!==this.b.P||this.b.xb.Kf!==this.b.O)b.deleteTexture(this.b.xb),this.b.xb=b.Mc(this.b.P,this.b.O,this.b.Fa);b.kd(this.b.xb)}this.oe=!0;var a=this.Jb(0,0,!0,!0),c=this.Jb(0,0,!1,!0);this.oe=!1;this.b.rc&&(a=Math.round(a),
c=Math.round(c));this.Gl(a,c,null);a=this.pc();b.jd();b.scale(a,a);b.Hl(-this.tb());b.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2);b.Yc();this.Zc?(this.Lb.left=this.Tb.lc(this.ra),this.Lb.top=this.Tb.mc(this.ta),this.Lb.right=this.Tb.lc(this.Da),this.Lb.bottom=this.Tb.mc(this.Ca),this.Ad||!this.Lb.ei(this.ih)?(n(this.ze),a=this.tn(),this.Ad=!1,this.ih.Jg(this.Lb)):a=this.ze):a=this.d;for(var e,d=null,c=a.length-1;0<=c;--c)e=a[c],e!==d&&(this.rw(a[c],b),d=e);this.Zc&&(this.ze=a);this.Cd||(this.Qm=
this.b.Qf++,b.Ml(this.Qm),b.ws(1,1,1),b.uq(),b.cz())};m.prototype.Mb=function(b){var a=0,c=0;if(this.Wd=this.Ak||1!==this.opacity||0<this.ua.length||0!==this.Vb){this.b.xb||(this.b.xb=b.Mc(this.b.P,this.b.O,this.b.Fa));if(this.b.xb.Lf!==this.b.P||this.b.xb.Kf!==this.b.O)b.deleteTexture(this.b.xb),this.b.xb=b.Mc(this.b.P,this.b.O,this.b.Fa);b.kd(this.b.xb);this.Cd&&b.clear(0,0,0,0)}this.Cd||(this.b.Ja?(b.Ml(this.Qm),b.ws(this.rd[0]/255,this.rd[1]/255,this.rd[2]/255),b.uq(),b.rz()):b.clear(this.rd[0]/
255,this.rd[1]/255,this.rd[2]/255,1));this.oe=!0;var e=this.Jb(0,0,!0,!0),a=this.Jb(0,0,!1,!0);this.oe=!1;this.b.rc&&(e=Math.round(e),a=Math.round(a));this.Gl(e,a,null);e=this.pc();b.jd();b.scale(e,e);b.Hl(-this.tb());b.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2);b.Yc();this.Zc?(this.Lb.left=this.Tb.lc(this.ra),this.Lb.top=this.Tb.mc(this.ta),this.Lb.right=this.Tb.lc(this.Da),this.Lb.bottom=this.Tb.mc(this.Ca),this.Ad||!this.Lb.ei(this.ih)?(n(this.ze),a=this.tn(),this.Ad=!1,this.ih.Jg(this.Lb)):
a=this.ze):a=this.d;var d,k,p=null,c=0;for(d=a.length;c<d;++c)k=a[c],k!==p&&(this.qw(a[c],b),p=k);this.Zc&&(this.ze=a);this.Wd&&(a=this.ua.length?this.ua[0].pb:0,c=this.ua.length?this.ua[0].index:0,0===this.ua.length||1===this.ua.length&&!b.zo(a)&&1===this.opacity?(1===this.ua.length?(b.xc(a),b.Dh(this.Fb.ni(),1/this.b.P,1/this.b.O,0,0,1,1,e,this.tb(),this.ra,this.ta,(this.ra+this.Da)/2,(this.ta+this.Ca)/2,this.b.Eb.W,this.Ua[c]),b.Bl(a)&&(this.b.ea=!0)):b.xc(0),b.kd(this.Fb.ni()),b.He(this.opacity),
b.jc(this.b.xb),b.Af(this.ac,this.Xb),b.jd(),b.Yc(),e=this.b.P/2,a=this.b.O/2,b.Ah(-e,a,e,a,e,-a,-e,-a),b.jc(null)):this.Fb.Do(b,this,null,this.Fb.ni()))};m.prototype.qw=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ea();var c=b.Ia;c.right<this.ra||c.bottom<this.ta||c.left>this.Da||c.top>this.Ca||(a.Ml(b.Qf),b.et?this.sw(b,a):(a.xc(0),a.Af(b.ac,b.Xb),b.Mb(a)))}};m.prototype.rw=function(b,a){if(b.visible&&0!==b.width&&0!==b.height){b.Ea();var c=b.Ia;c.right<this.ra||c.bottom<this.ta||c.left>
this.Da||c.top>this.Ca||(b.Qf=this.b.Qf++,0===b.Vb&&1===b.opacity&&b.Je&&b.Of&&(a.Ml(b.Qf),b.Of(a)))}};m.prototype.sw=function(b,a){var c=b.ua[0].pb,e=b.ua[0].index,d=this.pc();if(1!==b.ua.length||a.zo(c)||a.Ry(c)||(b.n||b.q.tb())&&a.dj(c)||1!==b.opacity||b.type.qa.Gr)this.Fb.Do(a,this,b,this.Wd?this.b.xb:this.Fb.ni()),a.jd(),a.scale(d,d),a.Hl(-this.tb()),a.translate((this.ra+this.Da)/-2,(this.ta+this.Ca)/-2),a.Yc();else{a.xc(c);a.Af(b.ac,b.Xb);a.Bl(c)&&(this.b.ea=!0);var k=0,n=0,h=0,t=0;a.dj(c)&&
(t=b.Ia,k=this.Ra(t.left,t.top,!0,!0),n=this.Ra(t.left,t.top,!1,!0),h=this.Ra(t.right,t.bottom,!0,!0),t=this.Ra(t.right,t.bottom,!1,!0),k=k/windowWidth,n=1-n/windowHeight,h=h/windowWidth,t=1-t/windowHeight);var p;b.Kb&&b.Kb.G?(p=b.Kb.G,c=1/p.width,p=1/p.height):(c=1/b.width,p=1/b.height);a.Dh(this.Wd?this.b.xb:this.Fb.ni(),c,p,k,n,h,t,d,this.tb(),this.ra,this.ta,(this.ra+this.Da)/2,(this.ta+this.Ca)/2,this.b.Eb.W,b.Ua[e]);b.Mb(a)}};m.prototype.Jb=function(b,a,c,e){var d=this.b.devicePixelRatio;this.b.bg&&
(b*=d,a*=d);var d=this.b.cs,k=this.b.ds,d=(this.Fb.scrollX-d)*this.gd+d,k=(this.Fb.scrollY-k)*this.hd+k,n=d,h=k,t=1/this.pc(!e);e?(n-=this.b.P*t/2,h-=this.b.O*t/2):(n-=this.b.width*t/2,h-=this.b.height*t/2);n+=b*t;h+=a*t;a=this.tb();0!==a&&(n-=d,h-=k,b=Math.cos(a),a=Math.sin(a),e=n*b-h*a,h=h*b+n*a,n=e+d,h+=k);return c?n:h};m.prototype.Ra=function(b,a,c,e){var d=this.b.cs,k=this.b.ds,n=(this.Fb.scrollX-d)*this.gd+d,h=(this.Fb.scrollY-k)*this.hd+k,k=n,d=h,t=this.tb();if(0!==t){b-=n;a-=h;var p=Math.cos(-t),
t=Math.sin(-t),r=b*p-a*t;a=a*p+b*t;b=r+n;a+=h}n=1/this.pc(!e);e?(k-=this.b.P*n/2,d-=this.b.O*n/2):(k-=this.b.width*n/2,d-=this.b.height*n/2);k=(b-k)/n;d=(a-d)/n;b=this.b.devicePixelRatio;this.b.bg&&!e&&(k/=b,d/=b);return c?k:d};m.prototype.fb=function(){var b,a,c,e={s:this.scale,a:this.n,vl:this.ra,vt:this.ta,vr:this.Da,vb:this.Ca,v:this.visible,bc:this.rd,t:this.Cd,px:this.gd,py:this.hd,o:this.opacity,zr:this.Fd,fx:[],cg:this.ci,instances:[]};b=0;for(a=this.U.length;b<a;b++)c=this.U[b],e.fx.push({name:c.name,
active:c.Oa,params:this.Ua[c.index]});return e};m.prototype.yb=function(b){var a,c,e;this.scale=b.s;this.n=b.a;this.ra=b.vl;this.ta=b.vt;this.Da=b.vr;this.Ca=b.vb;this.visible=b.v;this.rd=b.bc;this.Cd=b.t;this.gd=b.px;this.hd=b.py;this.opacity=b.o;this.Fd=b.zr;this.ci=b.cg||[];Ea(this.Qc,this.Ms);var d=new da;a=0;for(e=this.ci.length;a<e;++a)d.add(this.ci[a]);c=a=0;for(e=this.Qc.length;a<e;++a)d.contains(this.Qc[a][2])||(this.Qc[c]=this.Qc[a],++c);Da(this.Qc,c);c=b.fx;a=0;for(e=c.length;a<e;a++)if(b=
this.nn(c[a].name))b.Oa=c[a].active,this.Ua[b.index]=c[a].params;this.Dd();this.d.sort(p);this.Ag=!0};$b=m})();
(function(){function d(b,a){var c,e=b.length;switch(e){case 0:return!0;case 1:return b[0]===a[0];case 2:return b[0]===a[0]&&b[1]===a[1];default:for(c=0;c<e;c++)if(b[c]!==a[c])return!1;return!0}}function p(b,a){return b.index-a.index}function m(b){var a,c,e,f;2===b.length?b[0].index>b[1].index&&(a=b[0],b[0]=b[1],b[1]=a):2<b.length&&b.sort(p);b.length>=u.length&&(u.length=b.length+1);u[b.length]||(u[b.length]=[]);f=u[b.length];a=0;for(c=f.length;a<c;a++)if(e=f[a],d(b,e))return e;f.push(b);return b}
function q(b,a){this.b=b;this.Us={};this.oq={};this.zn=!1;this.Hq=new da;this.Xm=[];this.Im=[];this.name=a[0];var c=a[1];this.kf=[];var e,f;e=0;for(f=c.length;e<f;e++)this.Jq(c[e],null,this.kf)}function n(b){this.type=b;this.d=[];this.ba=[];this.V=!0}function r(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.xa=[];this.Bf=[];this.Fq=this.fm=this.Wo=this.Kk=this.group=this.Qo=!1;this.rb=[];this.$c=[];this.md=[];this.pi="";this.Xf=this.Kk=this.group=!1;this.ck=null;c[1]&&(this.pi=c[1][1].toLowerCase(),
this.group=!0,this.Kk=!!c[1][0],this.ck=[],this.Xf=this.Kk,this.b.Ye.push(this),this.b.Vg[this.pi]=this);this.Vc=c[2];this.ja=c[4];this.group||(this.b.Tp[this.ja.toString()]=this);var e=c[5];b=0;for(a=e.length;b<a;b++){var f=new ac(this,e[b]);f.index=b;this.rb.push(f);this.Np(f.type)}e=c[6];b=0;for(a=e.length;b<a;b++)f=new bc(this,e[b]),f.index=b,this.$c.push(f);if(8===c.length)for(c=c[7],b=0,a=c.length;b<a;b++)this.sheet.Jq(c[b],this,this.md);this.Tk=!1;this.rb.length&&(this.Tk=null==this.rb[0].type&&
this.rb[0].Nb==U.prototype.j.mp)}function k(b,a){var c,e,f;if(b&&(-1===a.indexOf(b)&&a.push(b),b.Qb))for(c=0,e=b.Bc.length;c<e;c++)f=b.Bc[c],b!==f&&-1===a.indexOf(f)&&a.push(f)}function a(b,a){this.Lc=b;this.sheet=b.sheet;this.b=b.b;this.Y=[];this.Wa=[];this.N={};this.index=-1;this.Wh=!1;this.Nb=this.b.Te(a[1]);this.trigger=0<a[3];this.nq=2===a[3];this.Sd=a[4];this.Lk=a[5];this.jy=a[6];this.ja=a[7];this.b.ef[this.ja.toString()]=this;-1===a[0]?(this.type=null,this.ob=this.Ho,this.Jf=null,this.sd=-1):
(this.type=this.b.D[a[0]],this.ob=this.jy?this.iz:this.Go,a[2]?(this.Jf=this.type.Dk(a[2]),this.sd=this.type.kn(a[2])):(this.Jf=null,this.sd=-1),this.Lc.parent&&this.Lc.parent.Pl());this.nq&&(this.ob=this.jz);if(10===a.length){var c,e,f=a[9];c=0;for(e=f.length;c<e;c++){var g=new cc(this,f[c]);this.Y.push(g)}this.Wa.length=f.length}}function c(b,a){this.Lc=b;this.sheet=b.sheet;this.b=b.b;this.Y=[];this.Wa=[];this.N={};this.index=-1;this.Wh=!1;this.Nb=this.b.Te(a[1]);-1===a[0]?(this.type=null,this.ob=
this.Ho,this.Jf=null,this.sd=-1):(this.type=this.b.D[a[0]],this.ob=this.Go,a[2]?(this.Jf=this.type.Dk(a[2]),this.sd=this.type.kn(a[2])):(this.Jf=null,this.sd=-1));this.ja=a[3];this.b.We[this.ja.toString()]=this;if(6===a.length){var c,e,f=a[5];c=0;for(e=f.length;c<e;c++){var g=new cc(this,f[c]);this.Y.push(g)}this.Wa.length=f.length}}function e(){N++;B.length===N&&B.push(new dc);return B[N]}function b(b,a){this.Ka=b;this.Lc=b.Lc;this.sheet=b.sheet;this.b=b.b;this.type=a[0];this.Md=null;this.Ke=0;this.get=
null;this.bq=0;this.Fb=null;this.key=0;this.object=null;this.index=0;this.wj=this.wg=this.wj=this.wg=this.sq=this.Sf=this.xj=null;this.od=!1;var c,e,f;switch(a[0]){case 0:case 7:this.Md=new ec(this,a[1]);this.Ke=0;this.get=this.Fx;break;case 1:this.Md=new ec(this,a[1]);this.Ke=0;this.get=this.Gx;break;case 5:this.Md=new ec(this,a[1]);this.Ke=0;this.get=this.Kx;break;case 3:case 8:this.bq=a[1];this.get=this.Dx;break;case 6:this.Fb=this.b.jh[a[1]];this.get=this.Lx;break;case 9:this.key=a[1];this.get=
this.Jx;break;case 4:this.object=this.b.D[a[1]];this.get=this.Mx;this.Lc.Np(this.object);this.Ka instanceof bc?this.Lc.Pl():this.Lc.parent&&this.Lc.parent.Pl();break;case 10:this.index=a[1];b.type&&b.type.H?(this.get=this.Hx,this.od=!0):this.get=this.Ix;break;case 11:this.xj=a[1];this.Sf=null;this.get=this.Ex;break;case 2:case 12:this.sq=a[1];this.get=this.Cx;break;case 13:for(this.get=this.Nx,this.wg=[],this.wj=[],c=1,e=a.length;c<e;c++)f=new cc(this.Ka,a[c]),this.wg.push(f),this.wj.push(0)}}function f(b,
a,c){this.sheet=b;this.parent=a;this.b=b.b;this.xa=[];this.name=c[1];this.yj=c[2];this.Cn=c[3];this.Ei=!!c[4];this.Sk=!!c[5];this.ja=c[6];this.b.Ph[this.ja.toString()]=this;this.data=this.Cn;this.parent?(this.ng=this.Ei||this.Sk?-1:this.b.vz++,this.b.Av.push(this)):(this.ng=-1,this.b.zv.push(this))}function l(b,a,c){this.sheet=b;this.parent=a;this.b=b.b;this.xa=[];this.ri=null;this.Tx=c[1];this.Oa=!0}function g(){this.Os=[];this.reset(null)}var u=[];q.prototype.toString=function(){return this.name};
q.prototype.Jq=function(b,a,c){switch(b[0]){case 0:b=new fc(this,a,b);if(b.Vc)for(c.push(b),c=0,a=b.rb.length;c<a;c++)b.rb[c].trigger&&this.Kq(b,c);else b.Uq()?this.Kq(b,0):c.push(b);break;case 1:b=new Xb(this,a,b);c.push(b);break;case 2:b=new gc(this,a,b),c.push(b)}};q.prototype.eb=function(){var b,a;b=0;for(a=this.kf.length;b<a;b++)this.kf[b].eb(b<a-1&&this.kf[b+1].Tk)};q.prototype.bp=function(){A(this.Xm);A(this.Im);this.Mp(this);A(this.Im)};q.prototype.Mp=function(b){var a,c,e,f,g=b.Xm,d=b.Im,
l=this.Hq.Ef();a=0;for(c=l.length;a<c;++a)e=l[a],f=e.ri,!e.Oa||b===f||-1<d.indexOf(f)||(d.push(f),f.Mp(b),g.push(f))};q.prototype.ob=function(b){this.b.UA||(this.zn=!0,b||(this.b.Mn=!0));var a,c;a=0;for(c=this.kf.length;a<c;a++){var e=this.kf[a];e.ob();this.b.Pm(e.xa);this.b.nf&&this.b.Ub()}b||(this.b.Mn=!1)};q.prototype.Kq=function(b,a){b.Vc||this.b.im.push(b);var c,e,f=b.rb[a],g;f.type?g=f.type.name:g="system";var d=(c=f.nq)?this.oq:this.Us;d[g]||(d[g]=[]);g=d[g];d=f.Nb;if(c){if(f.Y.length&&(f=
f.Y[0],1===f.type&&2===f.Md.type)){f=f.Md.value.toLowerCase();c=0;for(e=g.length;c<e;c++)if(g[c].method==d){c=g[c].fi;c[f]?c[f].push([b,a]):c[f]=[[b,a]];return}c={};c[f]=[[b,a]];g.push({method:d,fi:c})}}else{c=0;for(e=g.length;c<e;c++)if(g[c].method==d){g[c].fi.push([b,a]);return}X&&d===X.prototype.j.Eg?g.unshift({method:d,fi:[[b,a]]}):g.push({method:d,fi:[[b,a]]})}};Nb=q;n.prototype.yn=function(){return this.V?this.type.d.length:this.d.length};n.prototype.Yb=function(){return this.V?this.type.d:
this.d};n.prototype.xh=function(b){b&&(b.b.Va().bb.Vc?(this.V&&(A(this.d),Ea(this.ba,b.type.d),this.V=!1),b=this.ba.indexOf(b),-1!==b&&(this.d.push(this.ba[b]),this.ba.splice(b,1))):(this.V=!1,A(this.d),this.d[0]=b))};sb=n;window._c2hh_="42268E51B26ABB109E2D2EE68E1064D6F7C75280";r.prototype.eb=function(b){var a,c=this.parent;if(this.group)for(this.fm=!0;c;){if(!c.group){this.fm=!1;break}c=c.parent}this.Wo=!this.Uq()&&(!this.parent||this.parent.group&&this.parent.fm);this.Fq=!!b;this.Bf=this.xa.slice(0);
for(c=this.parent;c;){b=0;for(a=c.xa.length;b<a;b++)this.wv(c.xa[b]);c=c.parent}this.xa=m(this.xa);this.Bf=m(this.Bf);b=0;for(a=this.rb.length;b<a;b++)this.rb[b].eb();b=0;for(a=this.$c.length;b<a;b++)this.$c[b].eb();b=0;for(a=this.md.length;b<a;b++)this.md[b].eb(b<a-1&&this.md[b+1].Tk)};r.prototype.jj=function(b){if(this.Xf!==!!b){this.Xf=!!b;var a;b=0;for(a=this.ck.length;b<a;++b)this.ck[b].Zs();0<a&&this.b.wa.Rf&&this.b.wa.Rf.bp()}};r.prototype.Np=function(b){k(b,this.xa)};r.prototype.wv=function(b){k(b,
this.Bf)};r.prototype.Pl=function(){this.Qo=!0;this.parent&&this.parent.Pl()};r.prototype.Uq=function(){return this.rb.length?this.rb[0].trigger:!1};r.prototype.ob=function(){var b,a,c=!1,e=this.b,f=this.b.Va();f.bb=this;var g=this.rb;this.Tk||(f.Zm=!1);if(this.Vc){0===g.length&&(c=!0);f.ib=0;for(b=g.length;f.ib<b;f.ib++)a=g[f.ib],a.trigger||(a=a.ob())&&(c=!0);(f.fg=c)&&this.Il()}else{f.ib=0;for(b=g.length;f.ib<b;f.ib++)if(a=g[f.ib].ob(),!a){f.fg=!1;this.Wo&&e.nf&&e.Ub();return}f.fg=!0;this.Il()}this.xw(f)};
r.prototype.xw=function(b){b.fg&&this.Fq&&(b.Zm=!0);this.Wo&&this.b.nf&&this.b.Ub()};r.prototype.gz=function(b){this.b.Va().bb=this;this.rb[b].ob()&&(this.Il(),this.b.Va().fg=!0)};r.prototype.Il=function(){var b=this.b.Va(),a;b.nc=0;for(a=this.$c.length;b.nc<a;b.nc++)if(this.$c[b.nc].ob())return;this.ts()};r.prototype.ez=function(){var b=this.b.Va(),a;for(a=this.$c.length;b.nc<a;b.nc++)if(this.$c[b.nc].ob())return;this.ts()};r.prototype.ts=function(){if(this.md.length){var b,a,c,e,f=this.md.length-
1;this.b.Cl(this);if(this.Qo)for(b=0,a=this.md.length;b<a;b++)c=this.md[b],(e=!this.fm||!this.group&&b<f)&&this.b.zh(c.xa),c.ob(),e?this.b.Fe(c.xa):this.b.Pm(c.xa);else for(b=0,a=this.md.length;b<a;b++)this.md[b].ob();this.b.yl()}};r.prototype.hz=function(){var b=this.b.Va();b.bb=this;var a=!1,c;b.ib=0;for(c=this.rb.length;b.ib<c;b.ib++)if(this.rb[b.ib].ob())a=!0;else if(!this.Vc)return!1;return this.Vc?a:!0};r.prototype.hj=function(){this.b.Tf++;var b=this.b.Va().ib,a=this.b.Cl(this);if(!this.Vc)for(a.ib=
b+1,b=this.rb.length;a.ib<b;a.ib++)if(!this.rb[a.ib].ob()){this.b.yl();return}this.Il();this.b.yl()};r.prototype.ay=function(b){var a=b.index;if(0===a)return!0;for(--a;0<=a;--a)if(this.rb[a].type===b.type)return!1;return!0};fc=r;a.prototype.eb=function(){var b,a,c;b=0;for(a=this.Y.length;b<a;b++)c=this.Y[b],c.eb(),c.od&&(this.Wh=!0)};a.prototype.jz=function(){return!0};a.prototype.Ho=function(){var b,a;b=0;for(a=this.Y.length;b<a;b++)this.Wa[b]=this.Y[b].get();return Va(this.Nb.apply(this.b.Yd,this.Wa),
this.Lk)};a.prototype.iz=function(){var b,a;b=0;for(a=this.Y.length;b<a;b++)this.Wa[b]=this.Y[b].get();b=this.Nb.apply(this.Jf?this.Jf:this.type,this.Wa);this.type.Ac();return b};a.prototype.Go=function(){var b,a,c,e,f,g,d,l,k=this.type,n=k.R(),u=this.Lc.Vc&&!this.trigger;a=0;var p=k.Qb,r=k.H,m=k.re,B=this.sd,q=-1<B,N=this.Wh,z=this.Y,y=this.Wa,x=this.Lk,Q=this.Nb,D;if(N)for(a=0,f=z.length;a<f;++a)g=z[a],g.od||(y[a]=g.get(0));else for(a=0,f=z.length;a<f;++a)y[a]=z[a].get(0);if(n.V){A(n.d);A(n.ba);
D=k.d;b=0;for(e=D.length;b<e;++b){l=D[b];if(N)for(a=0,f=z.length;a<f;++a)g=z[a],g.od&&(y[a]=g.get(b));q?(a=0,r&&(a=l.type.Rg[m]),a=Q.apply(l.ca[B+a],y)):a=Q.apply(l,y);(d=Va(a,x))?n.d.push(l):u&&n.ba.push(l)}k.finish&&k.finish(!0);n.V=!1;k.Ac();return n.yn()}c=0;D=(d=u&&!this.Lc.ay(this))?n.ba:n.d;var L=!1;b=0;for(e=D.length;b<e;++b){l=D[b];if(N)for(a=0,f=z.length;a<f;++a)g=z[a],g.od&&(y[a]=g.get(b));q?(a=0,r&&(a=l.type.Rg[m]),a=Q.apply(l.ca[B+a],y)):a=Q.apply(l,y);if(Va(a,x))if(L=!0,d){if(n.d.push(l),
p)for(a=0,f=l.siblings.length;a<f;a++)g=l.siblings[a],g.type.R().d.push(g)}else{D[c]=l;if(p)for(a=0,f=l.siblings.length;a<f;a++)g=l.siblings[a],g.type.R().d[c]=g;c++}else if(d){D[c]=l;if(p)for(a=0,f=l.siblings.length;a<f;a++)g=l.siblings[a],g.type.R().ba[c]=g;c++}else if(u&&(n.ba.push(l),p))for(a=0,f=l.siblings.length;a<f;a++)g=l.siblings[a],g.type.R().ba.push(g)}Da(D,c);if(p)for(r=k.Bc,b=0,e=r.length;b<e;b++)l=r[b].R(),d?Da(l.ba,c):Da(l.d,c);c=L;if(d&&!L)for(b=0,e=n.d.length;b<e;b++){l=n.d[b];if(N)for(a=
0,f=z.length;a<f;a++)g=z[a],g.od&&(y[a]=g.get(b));a=q?Q.apply(l.ca[B],y):Q.apply(l,y);if(Va(a,x)){L=!0;break}}k.finish&&k.finish(c||u);return u?L:n.yn()};ac=a;c.prototype.eb=function(){var b,a,c;b=0;for(a=this.Y.length;b<a;b++)c=this.Y[b],c.eb(),c.od&&(this.Wh=!0)};c.prototype.Ho=function(){var b=this.b,a,c,e=this.Y,f=this.Wa;a=0;for(c=e.length;a<c;++a)f[a]=e[a].get();return this.Nb.apply(b.Yd,f)};c.prototype.Go=function(){var b=this.type,a=this.sd,c=b.re,e=this.Wh,f=this.Y,g=this.Wa,d=this.Nb,l=
b.R().Yb(),b=b.H,k=-1<a,n,u,p,r,m,B;if(e)for(u=0,r=f.length;u<r;++u)m=f[u],m.od||(g[u]=m.get(0));else for(u=0,r=f.length;u<r;++u)g[u]=f[u].get(0);n=0;for(p=l.length;n<p;++n){B=l[n];if(e)for(u=0,r=f.length;u<r;++u)m=f[u],m.od&&(g[u]=m.get(n));k?(u=0,b&&(u=B.type.Rg[c]),d.apply(B.ca[a+u],g)):d.apply(B,g)}return!1};bc=c;var B=[],N=-1;b.prototype.eb=function(){var b,a;if(11===this.type)this.Sf=this.b.yq(this.xj,this.Lc.parent);else if(13===this.type)for(b=0,a=this.wg.length;b<a;b++)this.wg[b].eb();this.Md&&
this.Md.eb()};b.prototype.ry=function(b){this.od||!b||b.qa.Ql||(this.od=!0)};b.prototype.Cs=function(){this.od=!0};b.prototype.Fx=function(b){this.Ke=b||0;b=e();this.Md.get(b);N--;return b.data};b.prototype.Gx=function(b){this.Ke=b||0;b=e();this.Md.get(b);N--;return la(b.data)?b.data:""};b.prototype.Mx=function(){return this.object};b.prototype.Dx=function(){return this.bq};b.prototype.Kx=function(b){this.Ke=b||0;b=e();this.Md.get(b);N--;return b.Db()?this.b.li(b.data):this.b.rn(b.data)};b.prototype.Lx=
function(){return this.Fb};b.prototype.Jx=function(){return this.key};b.prototype.Ix=function(){return this.index};b.prototype.Hx=function(b){b=b||0;var a=this.Ka.type,c=null,c=a.R(),e=c.Yb();if(e.length)c=e[b%e.length].type;else if(c.ba.length)c=c.ba[b%c.ba.length].type;else if(a.d.length)c=a.d[b%a.d.length].type;else return 0;return this.index+c.sk[a.re]};b.prototype.Ex=function(){return this.Sf};b.prototype.Cx=function(){return this.sq};b.prototype.Nx=function(){var b,a;b=0;for(a=this.wg.length;b<
a;b++)this.wj[b]=this.wg[b].get();return this.wj};cc=b;f.prototype.eb=function(){this.xa=m(this.xa)};f.prototype.Ie=function(b){var a=this.b.wq();this.parent&&!this.Ei&&a?(this.ng>=a.length&&(a.length=this.ng+1),a[this.ng]=b):this.data=b};f.prototype.Wf=function(){var b=this.b.wq();return!this.parent||this.Ei||!b||this.Sk?this.data:this.ng>=b.length||"undefined"===typeof b[this.ng]?this.Cn:b[this.ng]};f.prototype.ob=function(){!this.parent||this.Ei||this.Sk||this.Ie(this.Cn)};Xb=f;l.prototype.toString=
function(){return"include:"+this.ri.toString()};l.prototype.eb=function(){this.ri=this.b.an[this.Tx];this.sheet.Hq.add(this);this.xa=m(this.xa);for(var b=this.parent;b;)b.group&&b.ck.push(this),b=b.parent;this.Zs()};l.prototype.ob=function(){this.parent&&this.b.fj(this.b.D);this.ri.zn||this.ri.ob(!0);this.parent&&this.b.Fe(this.b.D)};l.prototype.Zs=function(){for(var b=this.parent;b;){if(b.group&&!b.Xf){this.Oa=!1;return}b=b.parent}this.Oa=!0};gc=l;g.prototype.reset=function(b){this.bb=b;this.nc=
this.ib=0;A(this.Os);this.Zm=this.fg=!1};g.prototype.Rq=function(){return this.bb.Qo?!0:this.ib<this.bb.rb.length-1?!!this.bb.xa.length:!1};Wb=g})();
(function(){function d(d,a){this.Ka=d;this.b=d.b;this.type=a[0];this.get=[this.Pw,this.Lw,this.Yw,this.ax,this.Aw,this.Zw,this.Tw,this.Iw,this.Sw,this.Xw,this.Bw,this.Ww,this.Jw,this.Uw,this.Qw,this.Rw,this.Mw,this.Nw,this.Hw,this.$w,this.Vw,this.Ow,this.Gw,this.Kw][this.type];var c=null;this.Ae=this.Y=this.Wa=this.Nb=this.cm=this.second=this.first=this.value=null;this.sd=-1;this.ud=null;this.gt=-1;this.Sf=this.xj=null;this.Ch=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new ec(d,a[1]);break;case 18:this.first=new ec(d,a[1]);this.second=new ec(d,a[2]);this.cm=new ec(d,a[3]);break;case 19:this.Nb=this.b.Te(a[1]);this.Nb!==U.prototype.L.random&&this.Nb!==U.prototype.L.$p||this.Ka.Cs();this.Wa=[];this.Y=[];3===a.length?(c=a[2],this.Wa.length=c.length+1):this.Wa.length=1;break;case 20:this.Ae=this.b.D[a[1]];this.sd=-1;this.Nb=this.b.Te(a[2]);this.Ch=a[3];jc.Function&&this.Nb===jc.Function.prototype.L.Qz&&this.Ka.Cs();a[4]?this.ud=new ec(d,a[4]):this.ud=null;this.Wa=[];
this.Y=[];6===a.length?(c=a[5],this.Wa.length=c.length+1):this.Wa.length=1;break;case 21:this.Ae=this.b.D[a[1]];this.Ch=a[2];a[3]?this.ud=new ec(d,a[3]):this.ud=null;this.gt=a[4];break;case 22:this.Ae=this.b.D[a[1]];this.Ae.Dk(a[2]);this.sd=this.Ae.kn(a[2]);this.Nb=this.b.Te(a[3]);this.Ch=a[4];a[5]?this.ud=new ec(d,a[5]):this.ud=null;this.Wa=[];this.Y=[];7===a.length?(c=a[6],this.Wa.length=c.length+1):this.Wa.length=1;break;case 23:this.xj=a[1],this.Sf=null}this.Ka.ry(this.Ae);4<=this.type&&17>=this.type&&
(this.first=new ec(d,a[1]),this.second=new ec(d,a[2]));if(c){var e,b;e=0;for(b=c.length;e<b;e++)this.Y.push(new ec(d,c[e]))}}function p(){++r;n.length===r&&n.push(new dc);return n[r]}function m(d,a,c){var e,b;e=0;for(b=d.length;e<b;++e)d[e].get(c),a[e+1]=c.data}function q(d,a){this.type=d||hc.Cg;this.data=a||0;this.rg=null;this.type==hc.Cg&&(this.data=Math.floor(this.data))}d.prototype.eb=function(){23===this.type&&(this.Sf=this.Ka.b.yq(this.xj,this.Ka.Lc.parent));this.first&&this.first.eb();this.second&&
this.second.eb();this.cm&&this.cm.eb();this.ud&&this.ud.eb();if(this.Y){var d,a;d=0;for(a=this.Y.length;d<a;d++)this.Y[d].eb()}};var n=[],r=-1;d.prototype.$w=function(d){var a=this.Y,c=this.Wa;c[0]=d;d=p();m(a,c,d);--r;this.Nb.apply(this.b.Yd,c)};d.prototype.Vw=function(d){var a=this.Ae,c=this.Wa,e=this.Y,b=this.ud,f=this.Nb,l=this.Ka.Ke,g=a.R(),n=g.Yb();if(!n.length)if(g.ba.length)n=g.ba;else{this.Ch?d.$b(""):d.Ga(0);return}c[0]=d;d.rg=a;d=p();m(e,c,d);b&&(b.get(d),d.Db()&&(l=d.data,n=a.d));--r;
a=n.length;if(l>=a||l<=-a)l%=a;0>l&&(l+=a);f.apply(n[l],c)};d.prototype.Gw=function(d){var a=this.Ae,c=this.Wa,e=this.Y,b=this.ud,f=this.sd,l=this.Nb,g=this.Ka.Ke,n=a.R(),B=n.Yb();if(!B.length)if(n.ba.length)B=n.ba;else{this.Ch?d.$b(""):d.Ga(0);return}c[0]=d;d.rg=a;d=p();m(e,c,d);b&&(b.get(d),d.Db()&&(g=d.data,B=a.d));--r;e=B.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=B[g];B=0;a.H&&(B=g.type.Rg[a.re]);l.apply(g.ca[f+B],c)};d.prototype.Ow=function(d){var a=this.ud,c=this.Ae,e=this.gt,b=this.Ka.Ke,f=
c.R(),l=f.Yb();if(!l.length)if(f.ba.length)l=f.ba;else{this.Ch?d.$b(""):d.Ga(0);return}if(a){f=p();a.get(f);if(f.Db()){b=f.data;l=c.d;0!==l.length&&(b%=l.length,0>b&&(b+=l.length));b=c.qn(b);c=b.wb[e];la(c)?d.$b(c):d.K(c);--r;return}--r}a=l.length;if(b>=a||b<=-a)b%=a;0>b&&(b+=a);b=l[b];l=0;c.H&&(l=b.type.sk[c.re]);c=b.wb[e+l];la(c)?d.$b(c):d.K(c)};d.prototype.Pw=function(d){d.type=hc.Cg;d.data=this.value};d.prototype.Lw=function(d){d.type=hc.Bg;d.data=this.value};d.prototype.Yw=function(d){d.type=
hc.String;d.data=this.value};d.prototype.ax=function(d){this.first.get(d);d.Db()&&(d.data=-d.data)};d.prototype.Aw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data+=a.data,a.ah()&&d.mh());--r};d.prototype.Zw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data-=a.data,a.ah()&&d.mh());--r};d.prototype.Tw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data*=a.data,a.ah()&&d.mh());--r};d.prototype.Iw=function(d){this.first.get(d);
var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data/=a.data,d.mh());--r};d.prototype.Sw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data%=a.data,a.ah()&&d.mh());--r};d.prototype.Xw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data=Math.pow(d.data,a.data),a.ah()&&d.mh());--r};d.prototype.Bw=function(d){this.first.get(d);var a=p();this.second.get(a);a.eh()||d.eh()?this.Dw(d,a):this.Cw(d,a);--r};d.prototype.Dw=function(d,a){d.eh()&&
a.eh()?this.Fw(d,a):this.Ew(d,a)};d.prototype.Fw=function(d,a){d.data+=a.data};d.prototype.Ew=function(d,a){d.eh()?d.data+=(Math.round(1E10*a.data)/1E10).toString():d.$b(d.data.toString()+a.data)};d.prototype.Cw=function(d,a){d.Ga(d.data&&a.data?1:0)};d.prototype.Ww=function(d){this.first.get(d);var a=p();this.second.get(a);d.Db()&&a.Db()&&(d.data||a.data?d.Ga(1):d.Ga(0));--r};d.prototype.Hw=function(d){this.first.get(d);d.data?this.second.get(d):this.cm.get(d)};d.prototype.Jw=function(d){this.first.get(d);
var a=p();this.second.get(a);d.Ga(d.data===a.data?1:0);--r};d.prototype.Uw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Ga(d.data!==a.data?1:0);--r};d.prototype.Qw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Ga(d.data<a.data?1:0);--r};d.prototype.Rw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Ga(d.data<=a.data?1:0);--r};d.prototype.Mw=function(d){this.first.get(d);var a=p();this.second.get(a);d.Ga(d.data>a.data?1:0);--r};d.prototype.Nw=function(d){this.first.get(d);
var a=p();this.second.get(a);d.Ga(d.data>=a.data?1:0);--r};d.prototype.Kw=function(d){var a=this.Sf.Wf();ka(a)?d.K(a):d.$b(a)};ec=d;q.prototype.ah=function(){return this.type===hc.Bg};q.prototype.Db=function(){return this.type===hc.Cg||this.type===hc.Bg};q.prototype.eh=function(){return this.type===hc.String};q.prototype.mh=function(){this.ah()||(this.eh()&&(this.data=parseFloat(this.data)),this.type=hc.Bg)};q.prototype.Ga=function(d){this.type=hc.Cg;this.data=Math.floor(d)};q.prototype.K=function(d){this.type=
hc.Bg;this.data=d};q.prototype.$b=function(d){this.type=hc.String;this.data=d};q.prototype.No=function(d){ka(d)?(this.type=hc.Bg,this.data=d):la(d)?(this.type=hc.String,this.data=d.toString()):(this.type=hc.Cg,this.data=0)};dc=q;hc={Cg:0,Bg:1,String:2}})();function U(d){this.b=d;this.yc=[]}
U.prototype.fb=function(){var d={},p,m,q,n,r,k,a,c;d.waits=[];var e=d.waits,b;p=0;for(m=this.yc.length;p<m;p++){k=this.yc[p];b={t:k.time,st:k.Js,s:k.Po,ev:k.Pg.ja,sm:[],sols:{}};k.Pg.$c[k.nc]&&(b.act=k.Pg.$c[k.nc].ja);q=0;for(n=k.xa.length;q<n;q++)b.sm.push(k.xa[q].ja);for(r in k.kc)if(k.kc.hasOwnProperty(r)){a=this.b.D[parseInt(r,10)];c={sa:k.kc[r].Jl,insts:[]};q=0;for(n=k.kc[r].ue.length;q<n;q++)c.insts.push(k.kc[r].ue[q].uid);b.sols[a.ja.toString()]=c}e.push(b)}return d};
U.prototype.yb=function(d){d=d.waits;var p,m,q,n,r,k,a,c,e,b,f;A(this.yc);p=0;for(m=d.length;p<m;p++)if(k=d[p],c=this.b.Tp[k.ev.toString()]){e=-1;q=0;for(n=c.$c.length;q<n;q++)if(c.$c[q].ja===k.act){e=q;break}if(-1!==e){a={kc:{},xa:[],Ym:!1};a.time=k.t;a.Js=k.st||"";a.Po=!!k.s;a.Pg=c;a.nc=e;q=0;for(n=k.sm.length;q<n;q++)(c=this.b.Fk(k.sm[q]))&&a.xa.push(c);for(r in k.sols)if(k.sols.hasOwnProperty(r)&&(c=this.b.Fk(parseInt(r,10)))){e=k.sols[r];b={Jl:e.sa,ue:[]};q=0;for(n=e.insts.length;q<n;q++)(f=
this.b.mi(e.insts[q]))&&b.ue.push(f);a.kc[c.index.toString()]=b}this.yc.push(a)}}};
(function(){function d(){}function p(){}function m(){}var q=U.prototype;d.prototype.Ht=function(){return!0};d.prototype.sp=function(){return!0};d.prototype.rp=function(){return!0};d.prototype.xt=function(a,e,b){return ic(a,e,b)};d.prototype.cu=function(a){return a?a.visible:!1};d.prototype.Lu=function(a){var e=this.b.Va(),b=e.bb,f=e.Rq(),e=this.b.os();if(f)for(f=0;f<a&&!e.qb;f++)this.b.zh(b.xa),e.index=f,b.hj(),this.b.Fe(b.xa);else for(f=0;f<a&&!e.qb;f++)e.index=f,b.hj();this.b.js();return!1};var n=
[],r=-1;d.prototype.It=function(a){var e=a.R();r++;n.length===r&&n.push([]);var b=n[r];Ea(b,e.Yb());var f=this.b.Va(),d=f.bb,g=f.Rq(),f=this.b.os(),k,p,m,h,t,q,I=a.Qb;if(g)for(g=0,k=b.length;g<k&&!f.qb;g++){this.b.zh(d.xa);h=b[g];e=a.R();e.V=!1;A(e.d);e.d[0]=h;if(I)for(p=0,m=h.siblings.length;p<m;p++)t=h.siblings[p],q=t.type.R(),q.V=!1,A(q.d),q.d[0]=t;f.index=g;d.hj();this.b.Fe(d.xa)}else for(e.V=!1,A(e.d),g=0,k=b.length;g<k&&!f.qb;g++){h=b[g];e.d[0]=h;if(I)for(p=0,m=h.siblings.length;p<m;p++)t=h.siblings[p],
q=t.type.R(),q.V=!1,A(q.d),q.d[0]=t;f.index=g;d.hj()}A(b);this.b.js();r--;return!1};d.prototype.Gu=function(a,e,b,f){var d,g,k,p;if(a){r++;n.length===r&&n.push([]);var m=n[r],h=a.R();Ea(m,h.Yb());h.V&&A(h.ba);var t=this.b.ji();k=d=0;for(g=m.length;d<g;d++)p=m[d],m[k]=p,e=t.Y[1].get(d),f=t.Y[3].get(d),ic(e,b,f)?k++:h.ba.push(p);Da(m,k);h.V=!1;Ea(h.d,m);A(m);r--;a.Ac();return!!h.d.length}};d.prototype.Gt=function(a){var e=this.b.ji(),b=e.N.Every_lastTime||0,f=this.b.Eb.W;"undefined"===typeof e.N.Every_seconds&&
(e.N.Every_seconds=a);var d=e.N.Every_seconds;if(f>=b+d)return e.N.Every_lastTime=b+d,f>=e.N.Every_lastTime+.04&&(e.N.Every_lastTime=f),e.N.Every_seconds=a,!0;f<b-.1&&(e.N.Every_lastTime=f);return!1};d.prototype.Hu=function(a){if(!a)return!1;var e=a.R(),b=e.Yb(),f=sa(Math.random()*b.length);if(f>=b.length)return!1;e.xh(b[f]);a.Ac();return!0};d.prototype.zt=function(a,e,b){return ic(a.Wf(),e,b)};d.prototype.St=function(a){return(a=this.b.Vg[a.toLowerCase()])&&a.Xf};d.prototype.yt=function(a,e,b){return a>=
e&&a<=b};d.prototype.mp=function(){var a=this.b.Va();return a.Zm?!1:!a.fg};d.prototype.tp=function(){return!0};d.prototype.ku=function(){return!0};d.prototype.tm=function(){return!0};d.prototype.yp=function(){return!0};d.prototype.uu=function(){return!0};d.prototype.Hj=function(){return!0};d.prototype.mt=function(a,e,b){return Qa(G(a),G(b))<=G(e)};d.prototype.Rt=function(a,e){return Sa(G(a),G(e))};d.prototype.Qt=function(a,e,b){a=Oa(a);e=Oa(e);b=Oa(b);return Sa(b,e)?Sa(a,e)&&!Sa(a,b):!(!Sa(a,e)&&
Sa(a,b))};q.j=new d;p.prototype.Lt=function(a){this.b.dg||this.b.ie||(this.b.ie=a)};p.prototype.Et=function(a,e,b,f){if(e&&a&&(e=this.b.ek(a,e,b,f))){this.b.Sc++;var d;this.b.trigger(Object.getPrototypeOf(a.qa).j.Dg,e);if(e.Qb)for(b=0,f=e.siblings.length;b<f;b++)d=e.siblings[b],this.b.trigger(Object.getPrototypeOf(d.type.qa).j.Dg,d);this.b.Sc--;a=a.R();a.V=!1;A(a.d);a.d[0]=e;if(e.Qb)for(b=0,f=e.siblings.length;b<f;b++)d=e.siblings[b],a=d.type.R(),a.V=!1,A(a.d),a.d[0]=d}};p.prototype.Wu=function(a,
e){a&&a.visible!==e&&(a.visible=e,this.b.ea=!0)};p.prototype.Ou=function(a){this.b.wa.Ko(a)};p.prototype.av=function(a,e){0===a.yj?ka(e)?a.Ie(e):a.Ie(parseFloat(e)):1===a.yj&&a.Ie(e.toString())};p.prototype.kt=function(a,e){0===a.yj?ka(e)?a.Ie(a.Wf()+e):a.Ie(a.Wf()+parseFloat(e)):1===a.yj&&a.Ie(a.Wf()+e.toString())};p.prototype.lv=function(a,e){0===a.yj&&(ka(e)?a.Ie(a.Wf()-e):a.Ie(a.Wf()-parseFloat(e)))};p.prototype.Tu=function(a,e){var b=this.b.Vg[a.toLowerCase()];if(b)switch(e){case 0:b.jj(!1);
break;case 1:b.jj(!0);break;case 2:b.jj(!b.Xf)}};p.prototype.$u=function(a){0>a&&(a=0);this.b.zg=a};var k=[],a=[];p.prototype.pv=function(c){if(!(0>c)){var e,b,f,d=this.b.Va(),g;k.length?g=k.pop():g={kc:{},xa:[]};g.Ym=!1;g.time=this.b.Eb.W+c;g.Js="";g.Po=!1;g.Pg=d.bb;g.nc=d.nc+1;c=0;for(e=this.b.D.length;c<e;c++)f=this.b.D[c],b=f.R(),b.V&&-1===d.bb.xa.indexOf(f)||(g.xa.push(f),f=void 0,a.length?f=a.pop():f={ue:[]},f.Jl=!1,f.Jl=b.V,Ea(f.ue,b.d),g.kc[c.toString()]=f);this.yc.push(g);return!0}};p.prototype.Mt=
function(a){if(!this.b.dg&&!this.b.ie)for(var e in this.b.jh)if(this.b.jh.hasOwnProperty(e)&&mb(e,a)){this.b.ie=this.b.jh[e];break}};p.prototype.Nu=function(){if(!this.b.dg&&!this.b.ie&&this.b.wa){this.b.ie=this.b.wa;var a,e,b;a=0;for(e=this.b.Ye.length;a<e;a++)b=this.b.Ye[a],b.jj(b.Kk)}};q.A=new p;m.prototype["int"]=function(a,e){la(e)?(a.Ga(parseInt(e,10)),isNaN(a.data)&&(a.data=0)):a.Ga(e)};m.prototype["float"]=function(a,e){la(e)?(a.K(parseFloat(e)),isNaN(a.data)&&(a.data=0)):a.K(e)};m.prototype.random=
function(a,e,b){void 0===b?a.K(Math.random()*e):a.K(Math.random()*(b-e)+e)};m.prototype.sqrt=function(a,e){a.K(Math.sqrt(e))};m.prototype.abs=function(a,e){a.K(Math.abs(e))};m.prototype.round=function(a,e){a.Ga(Math.round(e))};m.prototype.floor=function(a,e){a.Ga(Math.floor(e))};m.prototype.ceil=function(a,e){a.Ga(Math.ceil(e))};m.prototype.sin=function(a,e){a.K(Math.sin(G(e)))};m.prototype.cos=function(a,e){a.K(Math.cos(G(e)))};m.prototype.tan=function(a,e){a.K(Math.tan(G(e)))};m.prototype.asin=
function(a,e){a.K(Ja(Math.asin(e)))};m.prototype.acos=function(a,e){a.K(Ja(Math.acos(e)))};m.prototype.atan=function(a,e){a.K(Ja(Math.atan(e)))};m.prototype.exp=function(a,e){a.K(Math.exp(e))};m.prototype.log10=function(a,e){a.K(Math.log(e)/Math.LN10)};m.prototype.max=function(a){var e=arguments[1];"number"!==typeof e&&(e=0);var b,f,d;b=2;for(f=arguments.length;b<f;b++)d=arguments[b],"number"===typeof d&&e<d&&(e=d);a.K(e)};m.prototype.min=function(a){var e=arguments[1];"number"!==typeof e&&(e=0);
var b,f,d;b=2;for(f=arguments.length;b<f;b++)d=arguments[b],"number"===typeof d&&e>d&&(e=d);a.K(e)};m.prototype.jf=function(a){a.K(this.b.jf)};m.prototype.zg=function(a){a.K(this.b.zg)};m.prototype.time=function(a){a.K(this.b.Eb.W)};m.prototype.$d=function(a){a.Ga(this.b.$d)};m.prototype.kl=function(a){a.Ga(this.b.kl)};m.prototype.gn=function(a){a.Ga(this.b.gn)};m.prototype.Uv=function(a,e,b,f,d){a.K(Ua(e,b,f,d))};m.prototype.n=function(a,e,b,f,d){a.K(Ja(Pa(e,b,f,d)))};m.prototype.mz=function(a){a.K(this.b.wa.scrollX)};
m.prototype.ky=function(a,e,b,f){a.K(Wa(e,b,f))};m.prototype.left=function(a,e,b){a.$b(la(e)?e.substr(0,b):"")};m.prototype.right=function(a,e,b){a.$b(la(e)?e.substr(e.length-b):"")};m.prototype.replace=function(a,e,b,f){la(e)&&la(b)&&la(f)?a.$b(e.replace(new RegExp(fb(b),"gi"),f)):a.$b(la(e)?e:"")};m.prototype.trim=function(a,e){a.$b(la(e)?e.trim():"")};m.prototype.$p=function(a){var e=sa(Math.random()*(arguments.length-1));a.No(arguments[e+1])};m.prototype.Rm=function(a){a.K(this.b.Rm/1E3)};m.prototype.bl=
function(a){a.K(this.b.bl)};q.L=new m;q.fz=function(){var c,e,b,f,d,g,n=this.b.Va();c=0;for(b=this.yc.length;c<b;c++){f=this.yc[c];if(-1===f.time){if(!f.Po)continue}else if(f.time>this.b.Eb.W)continue;n.bb=f.Pg;n.nc=f.nc;n.ib=0;for(e in f.kc)f.kc.hasOwnProperty(e)&&(d=this.b.D[parseInt(e,10)].R(),g=f.kc[e],d.V=g.Jl,Ea(d.d,g.ue),d=g,A(d.ue),a.push(d));f.Pg.ez();this.b.Pm(f.xa);f.Ym=!0}e=c=0;for(b=this.yc.length;c<b;c++)f=this.yc[c],this.yc[e]=f,f.Ym?($a(f.kc),A(f.xa),k.push(f)):e++;Da(this.yc,e)}})();
(function(){rb=function(d,m){var q=d[1],n=d[3],r=d[4],k=d[5],a=d[6],c=d[7],e=d[8];m.j||(m.j={});m.A||(m.A={});m.L||(m.L={});var b=m.j,f=m.A,l=m.L;n&&(b.Bt=function(a,b){return ic(this.x,a,b)},b.Ct=function(a,b){return ic(this.y,a,b)},b.Vz=function(){var a=this.q;this.Ea();var b=this.Ia;return!(b.right<a.ra||b.bottom<a.ta||b.left>a.Da||b.top>a.Ca)},b.Wz=function(){this.Ea();var a=this.Ia,b=this.b.wa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},b.gA=function(a,b,c){var e=this.R(),f=
e.Yb();if(!f.length)return!1;var d=f[0],l=d,n=Ua(d.x,d.y,b,c),k,p,m;k=1;for(p=f.length;k<p;k++)if(d=f[k],m=Ua(d.x,d.y,b,c),0===a&&m<n||1===a&&m>n)n=m,l=d;e.xh(l);return!0},f.cv=function(a){this.x!==a&&(this.x=a,this.Z())},f.uA=function(a){this.y!==a&&(this.y=a,this.Z())},f.Xu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Z()},f.sA=function(a,b){var c=a.vx(this);if(c){var e;c.ki?(e=c.ki(b,!0),c=c.ki(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Z()}},f.aA=function(a){0!==
a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.Z())},f.$z=function(a,b){0!==b&&(this.x+=Math.cos(G(a))*b,this.y+=Math.sin(G(a))*b,this.Z())},l.Ij=function(a){a.K(this.x)},l.Fp=function(a){a.K(this.y)},l.jf=function(a){a.K(this.b.Uf(this))});r&&(b.At=function(a,b){return ic(this.width,a,b)},b.Rz=function(a,b){return ic(this.height,a,b)},f.Dp=function(a){this.width!==a&&(this.width=a,this.Z())},f.qA=function(a){this.height!==a&&(this.height=a,this.Z())},f.Zu=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.Z()},l.Ep=function(a){a.K(this.width)},l.Ot=function(a){a.K(this.height)},l.Nz=function(a){this.Ea();a.K(this.Ia.left)},l.Pz=function(a){this.Ea();a.K(this.Ia.top)},l.Oz=function(a){this.Ea();a.K(this.Ia.right)},l.Mz=function(a){this.Ea();a.K(this.Ia.bottom)});k&&(b.mt=function(a,b){return Qa(this.n,G(b))<=G(a)},b.Rt=function(a){return Sa(this.n,G(a))},b.Qt=function(a,b){var c=Oa(a),e=Oa(b),f=Ma(this.n);return Sa(e,c)?Sa(f,c)&&!Sa(f,e):!(!Sa(f,c)&&
Sa(f,e))},f.Ap=function(a){a=G(La(a));isNaN(a)||this.n===a||(this.n=a,this.Z())},f.jA=function(a){0===a||isNaN(a)||(this.n+=G(a),this.n=Ma(this.n),this.Z())},f.kA=function(a){0===a||isNaN(a)||(this.n-=G(a),this.n=Ma(this.n),this.Z())},f.lA=function(a,b){var c=Ra(this.n,G(b),G(a));isNaN(c)||this.n===c||(this.n=c,this.Z())},f.mA=function(a,b,c){a=Ra(this.n,Math.atan2(c-this.y,b-this.x),G(a));isNaN(a)||this.n===a||(this.n=a,this.Z())},f.tA=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||
this.n===c||(this.n=c,this.Z())},l.Lz=function(a){a.K(Na(this.n))});q||(b.lp=function(a,b,c){return ic(this.wb[a],b,c)},b.Uz=function(a){return this.wb[a]},b.hA=function(a,b){var c=this.R(),e=c.Yb();if(!e.length)return!1;var f=e[0],d=f,l=f.wb[b],n,k,p;n=1;for(k=e.length;n<k;n++)if(f=e[n],p=f.wb[b],0===a&&p<l||1===a&&p>l)l=p,d=f;c.xh(d);return!0},b.fA=function(a){var b,c,e,f,d;if(this.b.ji().Lk){d=this.R();if(d.V)for(d.V=!1,A(d.d),A(d.ba),e=this.d,b=0,c=e.length;b<c;b++)f=e[b],f.uid===a?d.ba.push(f):
d.d.push(f);else{e=b=0;for(c=d.d.length;b<c;b++)f=d.d[b],d.d[e]=f,f.uid===a?d.ba.push(f):e++;Da(d.d,e)}this.Ac();return!!d.d.length}f=this.b.mi(a);if(!f)return!1;d=this.R();if(!d.V&&-1===d.d.indexOf(f))return!1;if(this.H)for(a=f.type.Qa,b=0,c=a.length;b<c;b++){if(a[b]===this)return d.xh(f),this.Ac(),!0}else if(f.type===this)return d.xh(f),this.Ac(),!0;return!1},b.Dg=function(){return!0},b.op=function(){return!0},f.Uu=function(a,b){var c=this.wb;ka(c[a])?c[a]=ka(b)?b:parseFloat(b):la(c[a])&&(c[a]=
la(b)?b:b.toString())},f.jt=function(a,b){var c=this.wb;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.kv=function(a,b){var c=this.wb;ka(c[a])&&(c[a]=ka(b)?c[a]-b:c[a]-parseFloat(b))},f.nA=function(a,b){this.wb[a]=b?1:0},f.vA=function(a){this.wb[a]=1-this.wb[a]},f.Ft=function(){this.b.be(this)},f.du||(f.du=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.$k(this,b,!0);this.Hd&&this.Hd();if(this.ca)for(a=0,b=this.ca.length;a<b;++a)c=this.ca[a],
c.Hd&&c.Hd()}),l.Dt=function(a){var b=a.rg.d.length,c,e,f;c=0;for(e=this.b.td.length;c<e;c++)f=this.b.td[c],a.rg.H?0<=f.type.Qa.indexOf(a.rg)&&b++:f.type===a.rg&&b++;a.Ga(b)},l.Iu=function(a){a.Ga(a.rg.R().Yb().length)},l.nv=function(a){a.Ga(this.uid)},l.Tz=function(a){a.Ga(this.oi())},l.kp||(l.kp=function(a){a.$b(JSON.stringify(this.b.Io(this,!0)))}));a&&(b.Xz=function(){return this.visible},f.Cp=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ea=!0)},b.Sz=function(a,b){return ic(lb(100*
this.opacity),a,b)},f.rA=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ea=!0)},l.Opacity=function(a){a.K(lb(100*this.opacity))});c&&(b.Ut=function(a){return a?this.q===a:!1},b.iA=function(a){var b=this.R(),c=b.Yb();if(!c.length)return!1;var e=c[0],f=e,d,l;d=1;for(l=c.length;d<l;d++)if(e=c[d],0===a){if(e.q.index>f.q.index||e.q.index===f.q.index&&e.Od()>f.Od())f=e}else if(e.q.index<f.q.index||e.q.index===f.q.index&&e.Od()<f.Od())f=e;b.xh(f);return!0},f.cA=function(){var a=
this.q,b=a.d;b.length&&b[b.length-1]===this||(a.Bh(this,!1),a.Yh(this,!1),this.b.ea=!0)},f.eu=function(){var a=this.q,b=a.d;b.length&&b[0]===this||(a.Bh(this,!1),a.Py(this),this.b.ea=!0)},f.bA=function(a){a&&a!=this.q&&(this.q.Bh(this,!0),this.q=a,a.Yh(this,!0),this.b.ea=!0)},f.xA=function(a,b){var c=0===a;if(b){var e=b.zq(this);e&&e.uid!==this.uid&&(this.q.index!==e.q.index&&(this.q.Bh(this,!0),this.q=e.q,e.q.Yh(this,!0)),this.q.uy(this,e,c),this.b.ea=!0)}},l.Zz=function(a){a.Ga(this.q.Lr)},l.Yz=
function(a){a.$b(this.q.name)},l.wA=function(a){a.Ga(this.Od())});e&&(f.oA=function(a,b){if(this.b.B){var c=this.type.pn(b);if(!(0>c)){var e=1===a;this.Ve[c]!==e&&(this.Ve[c]=e,this.Dd(),this.b.ea=!0)}}},f.pA=function(a,b,c){if(this.b.B){var e=this.type.pn(a);0>e||(a=this.type.U[e],e=this.Ua[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.B.zx(a.pb,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.Oa&&(this.b.ea=!0))))}})};Ob=function(){this.Mm=this.Uj=!0;this.type.Oj=!0;this.b.ea=!0;var d,m,q=this.Km;d=0;for(m=
q.length;d<m;++d)q[d](this);this.q.Zc&&this.Ea()};Pb=function(d){d&&this.Km.push(d)};Rb=function(){if(this.Uj){var d=this.Ia,m=this.Ib;d.set(this.x,this.y,this.x+this.width,this.y+this.height);d.offset(-this.ec*this.width,-this.fc*this.height);this.n?(d.offset(-this.x,-this.y),m.Es(d,this.n),m.offset(this.x,this.y),m.Up(d)):m.Fh(d);d.normalize();this.Uj=!1;this.dt()}};var d=new xa(0,0,0,0);Sb=function(){if(this.q.Zc){var p=this.q.Tb,m=this.Ia;d.set(p.lc(m.left),p.mc(m.top),p.lc(m.right),p.mc(m.bottom));
this.vc.ei(d)||(this.vc.right<this.vc.left?p.update(this,null,d):p.update(this,this.vc,d),this.vc.Jg(d),this.q.Ad=!0)}};Tb=function(){if(this.Mm&&this.je){this.Ea();var p=this.type.bk,m=this.Ia;d.set(p.lc(m.left),p.mc(m.top),p.lc(m.right),p.mc(m.bottom));this.ff.ei(d)||(this.ff.right<this.ff.left?p.update(this,null,d):p.update(this,this.ff,d),this.ff.Jg(d),this.Mm=!1)}};Qb=function(d,m){return this.Ia.Wb(d,m)&&this.Ib.Wb(d,m)?this.Lh?this.WA(d,m):this.za&&!this.za.$g()?(this.za.Gg(this.width,this.height,
this.n),this.za.Wb(d-this.x,m-this.y)):!0:!1};Kb=function(){this.type.jm();return this.$f};Ub=function(){this.q.dp();return this.Ed};Vb=function(){A(this.ua);var d,m,q,n=!0;d=0;for(m=this.Ve.length;d<m;d++)this.Ve[d]&&(q=this.type.U[d],this.ua.push(q),q.xd||(n=!1));this.et=!!this.ua.length;this.Je=n};Lb=function(){return"Inst"+this.ns};ub=function(d){if(d&&d.Qb&&d.type!=this){var m,q,n;m=0;for(q=d.siblings.length;m<q;m++)if(n=d.siblings[m],n.type==this)return n}d=this.R().Yb();return d.length?d[0]:
null};vb=function(d){var m=this.R().Yb();return m.length?m[d.oi()%m.length]:null};tb=function(){if(this.Ih&&!this.H){var d,m;d=0;for(m=this.d.length;d<m;d++)this.d[d].$f=d;var q=d,n=this.b.td;d=0;for(m=n.length;d<m;++d)n[d].type===this&&(n[d].$f=q++);this.Ih=!1}};Eb=function(d){if(d<this.d.length)return this.d[d];d-=this.d.length;var m=this.b.td,q,n;q=0;for(n=m.length;q<n;++q)if(m[q].type===this){if(0===d)return m[q];--d}return null};wb=function(){return this.Le[this.Kd]};xb=function(){this.Kd++;
this.Kd===this.Le.length?this.Le.push(new sb(this)):(this.Le[this.Kd].V=!0,A(this.Le[this.Kd].ba))};yb=function(){this.Kd++;this.Kd===this.Le.length&&this.Le.push(new sb(this));var d=this.Le[this.Kd],m=this.Le[this.Kd-1];m.V?d.V=!0:(d.V=!1,Ea(d.d,m.d));A(d.ba)};zb=function(){this.Kd--};Ab=function(d){var m,q,n,r,k,a=0;if(!this.H)for(m=0,q=this.Qa.length;m<q;m++)for(k=this.Qa[m],n=0,r=k.Sa.length;n<r;n++){if(d===k.Sa[n].name)return this.N.lastBehIndex=a,k.Sa[n];a++}m=0;for(q=this.Sa.length;m<q;m++){if(d===
this.Sa[m].name)return this.N.lastBehIndex=a,this.Sa[m];a++}return null};Bb=function(d){return this.Dk(d)?this.N.lastBehIndex:-1};Cb=function(d){var m,q;m=0;for(q=this.U.length;m<q;m++)if(this.U[m].name===d)return m;return-1};Db=function(){if(this.Qb&&!this.H){var d,m,q,n,r,k,a;this.jm();k=this.R();var c=k.V,e=(d=this.b.Va())&&d.bb&&d.bb.Vc;d=0;for(m=this.Bc.length;d<m;d++)if(r=this.Bc[d],r!==this&&(r.jm(),a=r.R(),a.V=c,!c)){A(a.d);q=0;for(n=k.d.length;q<n;++q)a.d[q]=r.qn(k.d[q].$f);if(e)for(A(a.ba),
q=0,n=k.ba.length;q<n;++q)a.ba[q]=r.qn(k.ba[q].$f)}}};Jb=function(){return"Type"+this.ja};ic=function(d,m,q){if("undefined"===typeof d||"undefined"===typeof q)return!1;switch(m){case 0:return d===q;case 1:return d!==q;case 2:return d<q;case 3:return d<=q;case 4:return d>q;case 5:return d>=q;default:return!1}}})();var rc={};function Y(d){this.b=d}
(function(){function d(){}function p(){}function m(){}var q=!1,n=null,r=null,k="",a=Y.prototype;a.ga=function(a){this.qa=a;this.b=a.b};a.ga.prototype.M=function(){};a.aa=function(a){this.type=a;this.b=a.b;this.Nc=this.Rd="";this.tc=0;this.timeout=-1;if(q=this.b.Pk)n=require("path"),r=require("fs"),k=n.dirname((window.process||nw.process).execPath)+"\\"};var c=a.aa.prototype,e=null;window.C2_AJAX_DCSide=function(a,b,c){e&&("success"===a?(e.Nc=b,e.Rd=c,e.b.trigger(Y.prototype.j.Dj,e),e.b.trigger(Y.prototype.j.Th,
e)):"error"===a?(e.Nc=b,e.b.trigger(Y.prototype.j.Ej,e),e.b.trigger(Y.prototype.j.de,e)):"progress"===a&&(e.tc=c,e.Nc=b,e.b.trigger(Y.prototype.j.xp,e)))};c.M=function(){e=this};c.fb=function(){return{lastData:this.Rd}};c.yb=function(a){this.Rd=a.lastData;this.Nc="";this.tc=0};var b={},f="";c.aw=function(a,c){if(this.b.Pb)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+c+'", "GET", null);');else{var e=this,d=null,n=function(){e.Nc=a;e.b.trigger(Y.prototype.j.Ej,e);e.b.trigger(Y.prototype.j.de,
e)},h=function(){if(q){var b=k+c;r.existsSync(b)?r.readFile(b,{encoding:"utf8"},function(b,c){b?n():(e.Nc=a,e.Rd=c.replace(/\r\n/g,"\n"),e.b.trigger(Y.prototype.j.Dj,e),e.b.trigger(Y.prototype.j.Th,e))}):n()}else n()},m=function(b){b.lengthComputable&&(e.tc=b.loaded/b.total,e.Nc=a,e.b.trigger(Y.prototype.j.xp,e))};try{this.b.qf?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;d.onreadystatechange=function(){4===d.readyState&&(e.Nc=a,d.responseText?e.Rd=d.responseText.replace(/\r\n/g,
"\n"):e.Rd="",400<=d.status?(e.b.trigger(Y.prototype.j.Ej,e),e.b.trigger(Y.prototype.j.de,e)):q&&!e.Rd.length||!q&&0===d.status&&!e.Rd.length||(e.b.trigger(Y.prototype.j.Dj,e),e.b.trigger(Y.prototype.j.Th,e)))};this.b.qf||(d.onerror=h,d.ontimeout=h,d.onabort=h,d.onprogress=m);d.open("GET",c);!this.b.qf&&0<=this.timeout&&"undefined"!==typeof d.timeout&&(d.timeout=this.timeout);try{d.responseType="text"}catch(p){}if(d.setRequestHeader){for(var I in b)if(b.hasOwnProperty(I))try{d.setRequestHeader(I,
b[I])}catch(w){}b={}}if(f&&d.overrideMimeType){try{d.overrideMimeType(f)}catch(F){}f=""}d.send()}catch(K){h()}}};d.prototype.Th=function(a){return mb(a,this.Nc)};d.prototype.Dj=function(){return!0};d.prototype.de=function(a){return mb(a,this.Nc)};d.prototype.Ej=function(){return!0};d.prototype.xp=function(a){return mb(a,this.Nc)};a.j=new d;p.prototype.Mu=function(a,b){var c=this;this.b.Ci&&!this.b.Nq(b)?this.b.rq(b,function(b){c.Nc=a;c.Rd=b.replace(/\r\n/g,"\n");c.b.trigger(Y.prototype.j.Dj,c);c.b.trigger(Y.prototype.j.Th,
c)},function(){c.Nc=a;c.b.trigger(Y.prototype.j.Ej,c);c.b.trigger(Y.prototype.j.de,c)}):this.aw(a,b)};a.A=new p;m.prototype.bu=function(a){a.$b(this.Rd)};a.L=new m})();function uc(d){this.b=d}
(function(){function d(a){-1===ob.indexOf(a)&&ob.push(a)}function p(a){var b=a.u,c;try{c=b.play()}catch(e){d(a);return}c?c.catch(function(){d(a)}):Kc&&!E.xe&&d(a)}function m(){var a,b,c,e;Lc||Fb||!x||(q(),"running"===x.state&&(Lc=!0));var f=ob.slice(0);A(ob);if(!R)for(a=0,b=f.length;a<b;++a)c=f[a],c.qb||c.Ec||(e=c.u.play())&&e.catch(function(){d(c)})}function q(){"suspended"===x.state&&x.resume&&x.resume();if(x.createBuffer){var a=x.createBuffer(1,220,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);
e(b)}}function n(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function r(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function k(a){a=a.toLowerCase();return ba.hasOwnProperty(a)&&ba[a].length?ba[a][0].Pc():x.destination}function a(){return x.createGain?x.createGain():x.createGainNode()}function c(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function e(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function b(a,b,c,e){a.start?a.start(e||0,b):a.noteGrainOn(e||
0,b,c-b)}function f(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function l(b,c,e,d,f,h){this.type="filter";this.wd=[b,c,e,d,f,h];this.la=a();this.T=a();this.T.gain.value=h;this.S=a();this.S.gain.value=1-h;this.kb=x.createBiquadFilter();this.kb.type="number"===typeof this.kb.type?b:Oc[b];this.kb.frequency.value=c;this.kb.detune&&(this.kb.detune.value=e);this.kb.Q.value=d;this.kb.gain.value=f;this.la.connect(this.kb);this.la.connect(this.S);this.kb.connect(this.T)}function g(b,e,d){this.type="delay";
this.wd=[b,e,d];this.la=a();this.T=a();this.T.gain.value=d;this.S=a();this.S.gain.value=1-d;this.Vi=a();this.cd=c(b);this.cd.delayTime.value=b;this.kk=a();this.kk.gain.value=e;this.la.connect(this.Vi);this.la.connect(this.S);this.Vi.connect(this.T);this.Vi.connect(this.cd);this.cd.connect(this.kk);this.kk.connect(this.Vi)}function u(b,c,e,d){this.type="convolve";this.wd=[c,e,d];this.la=a();this.T=a();this.T.gain.value=e;this.S=a();this.S.gain.value=1-e;this.Mf=x.createConvolver();b&&(this.Mf.normalize=
c,this.Mf.buffer=b);this.la.connect(this.Mf);this.la.connect(this.S);this.Mf.connect(this.T)}function B(b,d,f,h,g){this.type="flanger";this.wd=[b,d,f,h,g];this.la=a();this.S=a();this.S.gain.value=1-g/2;this.T=a();this.T.gain.value=g/2;this.tk=a();this.tk.gain.value=h;this.cd=c(b+d);this.cd.delayTime.value=b;this.Hb=x.createOscillator();this.Hb.frequency.value=f;this.Ic=a();this.Ic.gain.value=d;this.la.connect(this.cd);this.la.connect(this.S);this.cd.connect(this.T);this.cd.connect(this.tk);this.tk.connect(this.cd);
this.Hb.connect(this.Ic);this.Ic.connect(this.cd.delayTime);e(this.Hb)}function N(b,c,d,f,h,g){this.type="phaser";this.wd=[b,c,d,f,h,g];this.la=a();this.S=a();this.S.gain.value=1-g/2;this.T=a();this.T.gain.value=g/2;this.kb=x.createBiquadFilter();this.kb.type="number"===typeof this.kb.type?7:"allpass";this.kb.frequency.value=b;this.kb.detune&&(this.kb.detune.value=c);this.kb.Q.value=d;this.Hb=x.createOscillator();this.Hb.frequency.value=h;this.Ic=a();this.Ic.gain.value=f;this.la.connect(this.kb);
this.la.connect(this.S);this.kb.connect(this.T);this.Hb.connect(this.Ic);this.Ic.connect(this.kb.frequency);e(this.Hb)}function h(b){this.type="gain";this.wd=[b];this.na=a();this.na.gain.value=b}function t(b,c){this.type="tremolo";this.wd=[b,c];this.na=a();this.na.gain.value=1-c/2;this.Hb=x.createOscillator();this.Hb.frequency.value=b;this.Ic=a();this.Ic.gain.value=c/2;this.Hb.connect(this.Ic);this.Ic.connect(this.na.gain);e(this.Hb)}function T(b,c){this.type="ringmod";this.wd=[b,c];this.la=a();this.T=
a();this.T.gain.value=c;this.S=a();this.S.gain.value=1-c;this.ij=a();this.ij.gain.value=0;this.Hb=x.createOscillator();this.Hb.frequency.value=b;this.Hb.connect(this.ij.gain);e(this.Hb);this.la.connect(this.ij);this.la.connect(this.S);this.ij.connect(this.T)}function I(b,c,e,d,f){this.type="distortion";this.wd=[b,c,e,d,f];this.la=a();this.Al=a();this.zl=a();this.nz(e,Math.pow(10,d/20));this.T=a();this.T.gain.value=f;this.S=a();this.S.gain.value=1-f;this.om=x.createWaveShaper();this.ik=new Float32Array(65536);
this.jx(b,c);this.om.ik=this.ik;this.la.connect(this.Al);this.la.connect(this.S);this.Al.connect(this.om);this.om.connect(this.zl);this.zl.connect(this.T)}function w(a,b,c,e,d){this.type="compressor";this.wd=[a,b,c,e,d];this.na=x.createDynamicsCompressor();try{this.na.threshold.value=a,this.na.knee.value=b,this.na.ratio.value=c,this.na.attack.value=e,this.na.release.value=d}catch(f){}}function F(a,b){this.type="analyser";this.wd=[a,b];this.na=x.createAnalyser();this.na.fftSize=a;this.na.smoothingTimeConstant=
b;this.hx=new Float32Array(this.na.frequencyBinCount);this.Hs=new Uint8Array(a);this.aj=0}function K(){this.Aa=null;this.al=0}function v(b,c){this.src=b;this.fa=y;this.Pd=c;this.Nj=!1;var e=this;this.nh=this.vh=null;this.wh=[];this.Kl=0;this.hp=this.rk=this.Ns=this.tl=!1;1===y&&c&&!pb&&(this.fa=0,this.vh=a());this.ge=this.ma=null;var d;switch(this.fa){case 0:this.ma=new Audio;this.ma.crossOrigin="anonymous";this.ma.addEventListener("canplaythrough",function(){e.hp=!0});1===y&&x.createMediaElementSource&&
!/wiiu/i.test(navigator.userAgent)&&(this.Ns=!0,this.ma.addEventListener("canplay",function(){!e.nh&&e.ma&&(e.nh=x.createMediaElementSource(e.ma),e.nh.connect(e.vh))}));this.ma.autoplay=!1;this.ma.PA="auto";this.ma.src=b;break;case 1:E.Ci?E.qq(b,function(a){e.ge=a;e.gq()},function(){e.rk=!0}):(d=new XMLHttpRequest,d.open("GET",b,!0),d.responseType="arraybuffer",d.onload=function(){e.ge=d.response;e.gq()},d.onerror=function(){e.rk=!0},d.send());break;case 2:this.ma=!0;break;case 3:this.ma=!0}}function C(b,
c){var e=this;this.tag=c;this.qb=this.Nd=!0;this.src=b.src;this.buffer=b;this.fa=y;this.Pd=b.Pd;this.playbackRate=1;this.Xg=!0;this.Ec=this.Wc=!1;this.wc=0;this.Di=this.bh=this.Sd=!1;this.volume=1;this.po=function(a){if(!e.Ec&&!e.Wc){var b=this;b||(b=a.target);b===e.Mj&&(e.Xg=!0,e.qb=!0,J=e.tag,E.trigger(uc.prototype.j.Gj,V))}};this.Mj=null;this.Zg=1===va&&!this.Pd||2===va;this.ph=1;this.startTime=this.Zg?E.Eb.W:E.Qe.W;this.nb=this.sb=null;this.Ud=!1;this.Rb=null;this.$r=this.Zr=this.Yr=this.Xr=this.bs=
this.as=0;this.u=null;var d=!1;1!==this.fa||0!==this.buffer.fa||this.buffer.Ns||(this.fa=0);switch(this.fa){case 0:this.Pd?(this.u=b.ma,d=!b.Nj,b.Nj=!0):(this.u=new Audio,this.u.crossOrigin="anonymous",this.u.autoplay=!1,this.u.src=b.ma.src,d=!0);d&&this.u.addEventListener("ended",function(){J=e.tag;e.qb=!0;E.trigger(uc.prototype.j.Gj,V)});break;case 1:this.sb=a();this.sb.connect(k(c));1===this.buffer.fa?b.ma&&(this.u=x.createBufferSource(),this.u.buffer=b.ma,this.u.connect(this.sb)):(this.u=this.buffer.ma,
this.buffer.vh.connect(this.sb),this.buffer.Nj||(this.buffer.Nj=!0,this.buffer.ma.addEventListener("ended",function(){J=e.tag;e.qb=!0;E.trigger(uc.prototype.j.Gj,V)})));break;case 2:this.u=new window.Media(z+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(e.Xg=!0,e.qb=!0,J=e.tag,E.trigger(uc.prototype.j.Gj,V))});break;case 3:this.u=!0}}function H(a){A(za);if(a.length){var b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],mb(a,e.tag)&&za.push(e)}else L&&!L.Zf()&&(A(za),za[0]=L)}function S(a,
b){ba.hasOwnProperty(a)?ba[a].push(b):ba[a]=[b];var c,e,d,f,h=x.destination;if(ba.hasOwnProperty(a)&&(d=ba[a],d.length))for(h=d[0].Pc(),c=0,e=d.length;c<e;c++)f=d[c],c+1===e?f.ad(x.destination):f.ad(d[c+1].Pc());H(a);c=0;for(e=za.length;c<e;c++)za[c].Xy(h);Ka&&Ib===a&&(Ka.disconnect(),Ka.connect(h))}function O(){}function P(){}var M=uc.prototype;M.ga=function(a){this.qa=a;this.b=a.b};M.ga.prototype.M=function(){};var E=null,V=null,J="",z="",y=0,x=null,Q=[],D=[],L=null,W=!1,va=0,R=!1,fa=1,ia=0,Aa=
0,Fb=!1,Gb=1,Hb=1,Ic=10,Jc=1E4,Mc=1,Ka=null,Ib="",Kc=!1,ob=[],pb=!1,Lc=!1;document.addEventListener("pointerup",m,!0);document.addEventListener("touchend",m,!0);document.addEventListener("click",m,!0);document.addEventListener("keydown",m,!0);document.addEventListener("gamepadconnected",m,!0);var ba={},Oc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");l.prototype.ad=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};l.prototype.remove=
function(){this.la.disconnect();this.kb.disconnect();this.T.disconnect();this.S.disconnect()};l.prototype.Pc=function(){return this.la};g.prototype.ad=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};g.prototype.remove=function(){this.la.disconnect();this.Vi.disconnect();this.cd.disconnect();this.kk.disconnect();this.T.disconnect();this.S.disconnect()};g.prototype.Pc=function(){return this.la};u.prototype.ad=function(a){this.T.disconnect();this.T.connect(a);
this.S.disconnect();this.S.connect(a)};u.prototype.remove=function(){this.la.disconnect();this.Mf.disconnect();this.T.disconnect();this.S.disconnect()};u.prototype.Pc=function(){return this.la};B.prototype.ad=function(a){this.S.disconnect();this.S.connect(a);this.T.disconnect();this.T.connect(a)};B.prototype.remove=function(){this.la.disconnect();this.cd.disconnect();this.Hb.disconnect();this.Ic.disconnect();this.S.disconnect();this.T.disconnect();this.tk.disconnect()};B.prototype.Pc=function(){return this.la};
N.prototype.ad=function(a){this.S.disconnect();this.S.connect(a);this.T.disconnect();this.T.connect(a)};N.prototype.remove=function(){this.la.disconnect();this.kb.disconnect();this.Hb.disconnect();this.Ic.disconnect();this.S.disconnect();this.T.disconnect()};N.prototype.Pc=function(){return this.la};h.prototype.ad=function(a){this.na.disconnect();this.na.connect(a)};h.prototype.remove=function(){this.na.disconnect()};h.prototype.Pc=function(){return this.na};t.prototype.ad=function(a){this.na.disconnect();
this.na.connect(a)};t.prototype.remove=function(){this.Hb.disconnect();this.Ic.disconnect();this.na.disconnect()};t.prototype.Pc=function(){return this.na};T.prototype.ad=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};T.prototype.remove=function(){this.Hb.disconnect();this.ij.disconnect();this.la.disconnect();this.T.disconnect();this.S.disconnect()};T.prototype.Pc=function(){return this.la};I.prototype.nz=function(a,b){.01>a&&(a=.01);this.Al.gain.value=a;
this.zl.gain.value=Math.pow(1/a,.6)*b};I.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};I.prototype.jx=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,f=0;32768>f;++f)d=f/32768,d=this.shape(d,c,e),this.ik[32768+f]=d,this.ik[32768-f-1]=-d};I.prototype.ad=function(a){this.T.disconnect();this.T.connect(a);this.S.disconnect();this.S.connect(a)};I.prototype.remove=function(){this.la.disconnect();this.Al.disconnect();
this.om.disconnect();this.zl.disconnect();this.T.disconnect();this.S.disconnect()};I.prototype.Pc=function(){return this.la};w.prototype.ad=function(a){this.na.disconnect();this.na.connect(a)};w.prototype.remove=function(){this.na.disconnect()};w.prototype.Pc=function(){return this.na};F.prototype.Na=function(){this.na.getFloatFrequencyData(this.hx);this.na.getByteTimeDomainData(this.Hs);for(var a=this.na.fftSize,b=0,c=this.aj=0,e=0;b<a;b++)e=(this.Hs[b]-128)/128,0>e&&(e=-e),this.aj<e&&(this.aj=e),
c+=e*e;this.aj=r(this.aj);r(Math.sqrt(c/a))};F.prototype.ad=function(a){this.na.disconnect();this.na.connect(a)};F.prototype.remove=function(){this.na.disconnect()};F.prototype.Pc=function(){return this.na};K.prototype.kj=function(a){this.Aa=a};K.prototype.Ik=function(){return!!this.Aa};K.prototype.Na=function(){};v.prototype.Zy=function(){var a,b,c,e;c=a=0;for(b=D.length;a<b;++a)e=D[a],D[c]=e,e.buffer===this?e.stop():++c;D.length=c;this.nh&&(this.nh.disconnect(),this.nh=null);this.vh&&(this.vh.disconnect(),
this.vh=null);this.ge=this.ma=null};v.prototype.gq=function(){if(!this.ma&&this.ge){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.ge,function(b){a.ma=b;a.ge=null;var c,e,d;if(ja(a.wl)||R)ja(a.dk)||(c=a.dk.Mf,c.normalize=a.Kr,c.buffer=b);else if(a.wh.length){c=0;for(e=a.wh.length;c<e;c++){b=a.wh[c];d=new C(a,b.Qs);d.Nl(!0);if("undefined"!==typeof b.Mr&&(b.Aa=E.mi(b.Mr),!b.Aa))continue;if(b.Aa){var f=Ta(b.Aa.x,b.Aa.y,-b.Aa.q.tb(),ia,Aa,!0),h=Ta(b.Aa.x,b.Aa.y,-b.Aa.q.tb(),ia,Aa,!1);d.Mo(f,h,
Ja(b.Aa.n-b.Aa.q.tb()),b.An,b.ho,b.lo);d.kj(b.Aa)}else d.Mo(b.x,b.y,b.sv,b.An,b.ho,b.lo);d.play(a.Yn,a.gp,a.Kl);a.tl&&d.pause();D.push(d)}A(a.wh)}else d=new C(a,a.wl||""),d.play(a.Yn,a.gp,a.Kl),a.tl&&d.pause(),D.push(d)},function(){a.rk=!0});else if(this.ma=x.createBuffer(this.ge,!1),this.ge=null,ja(this.wl)||R)ja(this.dk)||(b=this.dk.Mf,b.normalize=this.Kr,b.buffer=this.ma);else{var b=new C(this,this.wl);b.play(this.Yn,this.gp,this.Kl);this.tl&&b.pause();D.push(b)}}};v.prototype.Qq=function(){switch(this.fa){case 0:var a=
4<=this.ma.readyState;a&&(this.hp=!0);return a||this.hp;case 1:return!!this.ge||!!this.ma;case 2:return!0;case 3:return!0}return!1};v.prototype.by=function(){switch(this.fa){case 0:return this.Qq();case 1:return!!this.ma;case 2:return!0;case 3:return!0}return!1};v.prototype.Sx=function(){switch(this.fa){case 0:return!!this.ma.error;case 1:return this.rk}return!1};C.prototype.Zf=function(){switch(this.fa){case 0:return this.u.ended;case 1:return 1===this.buffer.fa?!this.Nd&&!this.qb&&this.u.loop||
this.Ec?!1:this.Xg:this.u.ended;case 2:return this.Xg;case 3:!0}return!0};C.prototype.Kv=function(){return this.Nd||this.qb?!0:this.Zf()};C.prototype.Nl=function(a){1===y&&(!this.Ud&&a?this.sb&&(this.nb||(this.nb=x.createPanner(),this.nb.panningModel="number"===typeof this.nb.panningModel?Gb:["equalpower","HRTF","soundfield"][Gb],this.nb.distanceModel="number"===typeof this.nb.distanceModel?Hb:["linear","inverse","exponential"][Hb],this.nb.refDistance=Ic,this.nb.maxDistance=Jc,this.nb.rolloffFactor=
Mc),this.sb.disconnect(),this.sb.connect(this.nb),this.nb.connect(k(this.tag)),this.Ud=!0):this.Ud&&!a&&this.sb&&(this.nb.disconnect(),this.sb.disconnect(),this.sb.connect(k(this.tag)),this.Ud=!1))};C.prototype.Mo=function(a,b,c,e,d,f){this.Ud&&1===y&&(this.nb.setPosition(a,b,0),this.nb.setOrientation(Math.cos(G(c)),Math.sin(G(c)),0),this.nb.coneInnerAngle=e,this.nb.coneOuterAngle=d,this.nb.coneOuterGain=f,this.as=a,this.bs=b,this.Xr=c,this.Yr=e,this.Zr=d,this.$r=f)};C.prototype.kj=function(a){this.Ud&&
1===y&&(this.Rb||(this.Rb=new K),this.Rb.kj(a))};C.prototype.Na=function(a){if(this.Ud&&1===y&&this.Rb&&this.Rb.Ik()&&this.Yg()){this.Rb.Na(a);a=this.Rb.Aa;var b=Ta(a.x,a.y,-a.q.tb(),ia,Aa,!0),c=Ta(a.x,a.y,-a.q.tb(),ia,Aa,!1);this.nb.setPosition(b,c,0);b=0;"undefined"!==typeof this.Rb.Aa.n&&(b=a.n-a.q.tb(),this.nb.setOrientation(Math.cos(b),Math.sin(b),0))}};C.prototype.play=function(a,c,d,f){var h=this.u;this.Sd=a;this.volume=c;d=d||0;f=f||0;switch(this.fa){case 0:1!==h.playbackRate&&(h.playbackRate=
1);h.volume!==c*fa&&(h.volume=c*fa);h.loop!==a&&(h.loop=a);h.muted&&(h.muted=!1);if(h.currentTime!==d)try{h.currentTime=d}catch(g){}p(this);break;case 1:this.muted=!1;this.ph=1;if(1===this.buffer.fa)this.sb.gain.value=c*fa,this.Nd||(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.sb)),this.u.onended=this.po,this.Mj=this.u,this.u.loop=a,this.Xg=!1,0===d?e(this.u,f):b(this.u,d,this.Vf(),f);else{1!==h.playbackRate&&(h.playbackRate=1);h.loop!==a&&(h.loop=a);h.volume=c*fa;
if(h.currentTime!==d)try{h.currentTime=d}catch(l){}p(this)}break;case 2:(!this.Nd&&this.qb||0!==d)&&h.seekTo(d);h.play();this.Xg=!1;break;case 3:E.Pb?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Zg?E.Eb.W:E.Qe.W)-d;this.Ec=this.qb=this.Nd=!1};C.prototype.stop=function(){switch(this.fa){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.fa?f(this.u):this.u.paused||this.u.pause();break;case 2:this.u.stop();break;case 3:E.Pb&&
AppMobi.context.stopSound(this.src)}this.qb=!0;this.Ec=!1};C.prototype.pause=function(){if(!(this.Nd||this.qb||this.Zf()||this.Ec)){switch(this.fa){case 0:this.u.paused||this.u.pause();break;case 1:1===this.buffer.fa?(this.wc=this.sn(!0),this.Sd&&(this.wc=this.wc%this.Vf()),this.Ec=!0,f(this.u)):this.u.paused||this.u.pause();break;case 2:this.u.pause();break;case 3:E.Pb&&AppMobi.context.stopSound(this.src)}this.Ec=!0}};C.prototype.dz=function(){if(!(this.Nd||this.qb||this.Zf())&&this.Ec){switch(this.fa){case 0:p(this);
break;case 1:1===this.buffer.fa?(this.u=x.createBufferSource(),this.u.buffer=this.buffer.ma,this.u.connect(this.sb),this.u.onended=this.po,this.Mj=this.u,this.u.loop=this.Sd,this.sb.gain.value=fa*this.volume*this.ph,this.km(),this.startTime=(this.Zg?E.Eb.W:E.Qe.W)-this.wc/(this.playbackRate||.001),b(this.u,this.wc,this.Vf())):p(this);break;case 2:this.u.play();break;case 3:E.Pb&&AppMobi.context.resumeSound(this.src)}this.Ec=!1}};C.prototype.seek=function(a){if(!(this.Nd||this.qb||this.Zf()))switch(this.fa){case 0:try{this.u.currentTime=
a}catch(b){}break;case 1:if(1===this.buffer.fa)this.Ec?this.wc=a:(this.pause(),this.wc=a,this.dz());else try{this.u.currentTime=a}catch(c){}break;case 3:E.Pb&&AppMobi.context.seekSound(this.src,a)}};C.prototype.Xy=function(a){1===this.fa&&(this.Ud?(this.nb.disconnect(),this.nb.connect(a)):(this.sb.disconnect(),this.sb.connect(a)))};C.prototype.Vf=function(){var a=0;switch(this.fa){case 0:"undefined"!==typeof this.u.duration&&(a=this.u.duration);break;case 1:a=this.buffer.ma.duration;break;case 2:a=
this.u.getDuration();break;case 3:E.Pb&&(a=AppMobi.context.getDurationSound(this.src))}return a};C.prototype.sn=function(a){var b=this.Vf(),c=0;switch(this.fa){case 0:"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 1:if(1===this.buffer.fa){if(this.Ec)return this.wc;c=(this.Zg?E.Eb.W:E.Qe.W)-this.startTime}else"undefined"!==typeof this.u.currentTime&&(c=this.u.currentTime);break;case 3:E.Pb&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Sd&&
c>b&&(c=b);return c};C.prototype.Yg=function(){return!this.Ec&&!this.Nd&&!this.qb&&!this.Zf()};C.prototype.uz=function(){return!this.Nd&&!this.qb&&!this.Zf()};C.prototype.sz=function(a){this.volume=a;this.ct()};C.prototype.ct=function(){var a=this.volume*fa;isFinite(a)||(a=0);switch(this.fa){case 0:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=a);break;case 1:1===this.buffer.fa?this.sb.gain.value=a*this.ph:"undefined"!==typeof this.u.volume&&this.u.volume!==a&&(this.u.volume=
a)}};C.prototype.ok=function(a){switch(this.fa){case 0:this.u.muted!==!!a&&(this.u.muted=!!a);break;case 1:1===this.buffer.fa?(this.ph=a?0:1,this.sb.gain.value=fa*this.volume*this.ph):this.u.muted!==!!a&&(this.u.muted=!!a)}};C.prototype.oz=function(){this.bh=!0;this.ok(this.bh||this.Di)};C.prototype.Ol=function(a){this.Di=!!a;this.ok(this.bh||this.Di)};C.prototype.km=function(){var a=this.playbackRate;this.Zg&&(a*=E.zg);switch(this.fa){case 0:this.u.playbackRate!==a&&(this.u.playbackRate=a);break;
case 1:1===this.buffer.fa?this.u.playbackRate.value!==a&&(this.u.playbackRate.value=a):this.u.playbackRate!==a&&(this.u.playbackRate=a)}};C.prototype.qz=function(a){switch(this.fa){case 0:a?this.Yg()?(this.Wc=!0,this.u.pause()):this.Wc=!1:this.Wc&&(this.u.play(),this.Wc=!1);break;case 1:a?this.Yg()?(this.Wc=!0,1===this.buffer.fa?(this.wc=this.sn(!0),this.Sd&&(this.wc=this.wc%this.Vf()),f(this.u)):this.u.pause()):this.Wc=!1:this.Wc&&(1===this.buffer.fa?(this.u=x.createBufferSource(),this.u.buffer=
this.buffer.ma,this.u.connect(this.sb),this.u.onended=this.po,this.Mj=this.u,this.u.loop=this.Sd,this.sb.gain.value=fa*this.volume*this.ph,this.km(),this.startTime=(this.Zg?E.Eb.W:E.Qe.W)-this.wc/(this.playbackRate||.001),b(this.u,this.wc,this.Vf())):this.u.play(),this.Wc=!1);break;case 2:a?this.Yg()?(this.u.pause(),this.Wc=!0):this.Wc=!1:this.Wc&&(this.Wc=!1,this.u.play())}};M.aa=function(a){this.type=a;E=this.b=a.b;V=this;this.Gc=null;this.Li=-600;this.b.Ci&&(pb=!0);!(this.b.fh||this.b.vi&&(this.b.In||
this.b.Mk))||this.b.Ok||this.b.lb||this.b.Oq||pb||(Kc=!0);x=null;"undefined"!==typeof AudioContext?(y=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(y=1,x=new webkitAudioContext);this.b.fh&&x&&(x.close&&x.close(),"undefined"!==typeof AudioContext?x=new AudioContext:"undefined"!==typeof webkitAudioContext&&(x=new webkitAudioContext));1!==y&&(this.b.Dc&&"undefined"!==typeof window.Media?y=2:this.b.Pq&&(y=3));2===y&&(z=location.href,a=z.lastIndexOf("/"),-1<a&&(z=z.substr(0,a+1)),z=z.replace("file://",
""));if(this.b.cy&&this.b.ey&&"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.be(this);else{if(this.b.Pb)W=this.b.vi;else try{W=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')&&!this.b.Rk}catch(b){W=!1}this.b.Kh(this)}};var wa=M.aa.prototype;wa.M=function(){this.b.Fg=this;va=this.C[0];this.Ge=this.C[1];this.Hy=0!==this.C[2];this.il=0;Gb=this.C[3];Hb=this.C[4];this.Li=-this.C[5];
Ic=this.C[6];Jc=this.C[7];Mc=this.C[8];this.Gc=new K;var a=this.b.P||this.b.width,b=this.b.O||this.b.height;1===y&&(x.listener.setPosition(a/2,b/2,this.Li),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ka&&Ka.disconnect();Ib=b.toLowerCase();Ka=x.createMediaStreamSource(a);Ka.connect(k(Ib))});this.b.Op(function(a){V.Cy(a)});var c=this;this.b.Gm(function(a){c.no(a)})};wa.no=function(a){var b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Rb&&e.Rb.Aa===a&&(e.Rb.Aa=null,e.Ud&&
e.Yg()&&e.Sd&&e.stop());this.Gc.Aa===a&&(this.Gc.Aa=null)};wa.fb=function(){var a={silent:R,masterVolume:fa,listenerZ:this.Li,listenerUid:this.Gc.Ik()?this.Gc.Aa.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,f,h,g;c=0;for(e=D.length;c<e;c++)d=D[c],!d.uz()||3===this.Ge||d.Pd&&1===this.Ge||!d.Pd&&2===this.Ge||(f=d.sn(),d.Sd&&(f=f%d.Vf()),f={tag:d.tag,buffersrc:d.buffer.src,is_music:d.Pd,playbackTime:f,volume:d.volume,looping:d.Sd,muted:d.bh,playbackRate:d.playbackRate,paused:d.Ec,resume_position:d.wc},
d.Ud&&(f.pan={},g=f.pan,d.Rb&&d.Rb.Ik()?g.objUid=d.Rb.Aa.uid:(g.x=d.as,g.y=d.bs,g.a=d.Xr),g.ia=d.Yr,g.oa=d.Zr,g.og=d.$r),b.push(f));b=a.effects;for(h in ba)if(ba.hasOwnProperty(h)){d=[];c=0;for(e=ba[h].length;c<e;c++)d.push({type:ba[h][c].type,params:ba[h][c].wd});b[h]=d}return a};var Ya=[];wa.yb=function(a){var b=a.silent;fa=a.masterVolume;this.Li=a.listenerZ;this.Gc.kj(null);var c=a.listenerUid;-1!==c&&(this.Gc.al=c,Ya.push(this.Gc));var c=a.playing,e,d,f,n,k,m,r,p,q,v,H;if(3!==this.Ge)for(e=0,
d=D.length;e<d;e++)q=D[e],q.Pd&&1===this.Ge||(q.Pd||2!==this.Ge)&&q.stop();for(k in ba)if(ba.hasOwnProperty(k))for(e=0,d=ba[k].length;e<d;e++)ba[k][e].remove();$a(ba);for(k in a.effects)if(a.effects.hasOwnProperty(k))for(m=a.effects[k],e=0,d=m.length;e<d;e++)switch(f=m[e].type,v=m[e].params,f){case "filter":S(k,new l(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":S(k,new g(v[0],v[1],v[2]));break;case "convolve":f=v[2];q=this.Ck(f,!1);q.ma?f=new u(q.ma,v[0],v[1],f):(f=new u(null,v[0],v[1],f),q.Kr=
v[0],q.dk=f);S(k,f);break;case "flanger":S(k,new B(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":S(k,new N(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":S(k,new h(v[0]));break;case "tremolo":S(k,new t(v[0],v[1]));break;case "ringmod":S(k,new T(v[0],v[1]));break;case "distortion":S(k,new I(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":S(k,new w(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":S(k,new F(v[0],v[1]))}e=0;for(d=c.length;e<d;e++)3===this.Ge||(a=c[e],f=a.buffersrc,n=a.is_music,
k=a.tag,m=a.playbackTime,r=a.looping,p=a.volume,H=(v=a.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,n&&1===this.Ge)||!n&&2===this.Ge||((q=this.jn(f,k,n,r,p))?(q.wc=a.resume_position,q.Nl(!!v),q.play(r,p,m),q.km(),q.ct(),q.ok(q.bh||q.Di),a.paused&&q.pause(),a.muted&&q.oz(),q.ok(q.bh||q.Di),v&&(-1!==H?(q.Rb=q.Rb||new K,q.Rb.al=H,Ya.push(q.Rb)):q.Mo(v.x,v.y,v.a,v.ia,v.oa,v.og))):(q=this.Ck(f,n),q.Kl=m,q.tl=a.paused,v&&(-1!==H?q.wh.push({Mr:H,An:v.ia,ho:v.oa,lo:v.og,Qs:k}):q.wh.push({x:v.x,y:v.y,sv:v.a,
An:v.ia,ho:v.oa,lo:v.og,Qs:k}))));if(b&&!R){e=0;for(d=D.length;e<d;e++)D[e].Ol(!0);R=!0}else if(!b&&R){e=0;for(d=D.length;e<d;e++)D[e].Ol(!1);R=!1}};wa.Hd=function(){var a,b,c,e;a=0;for(b=Ya.length;a<b;a++)c=Ya[a],e=this.b.mi(c.al),c.kj(e),c.al=-1,e&&(ia=e.x,Aa=e.y);A(Ya)};wa.Cy=function(a){if(!this.Hy){!a&&x&&x.resume&&(x.resume(),Fb=!1);var b,c;b=0;for(c=D.length;b<c;b++)D[b].qz(a);a&&x&&x.suspend&&(x.suspend(),Fb=!0)}};wa.Na=function(){var a=this.b.jf,b,c,e;b=0;for(c=D.length;b<c;b++)e=D[b],e.Na(a),
0!==va&&e.km();var d,f;for(d in ba)if(ba.hasOwnProperty(d))for(e=ba[d],b=0,c=e.length;b<c;b++)f=e[b],f.Na&&f.Na();1===y&&this.Gc.Ik()&&(this.Gc.Na(a),ia=this.Gc.Aa.x,Aa=this.Gc.Aa.y,x.listener.setPosition(this.Gc.Aa.x,this.Gc.Aa.y,this.Li))};var Za=[];wa.pz=function(a){var b,c,e,d,f,h=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(f=4<d.length&&".ogg"===d.substr(d.length-4))&&W||!f&&!W)Za.push({filename:d,size:e,Aa:null}),h+=e;return h};wa.wz=function(){var a,b,c,e;a=0;for(b=Za.length;a<
b;++a)c=Za[a],e=this.b.uk+c.filename,c.Aa=this.Ck(e,!1)};wa.wx=function(){var a=0,b,c,e;b=0;for(c=Za.length;b<c;++b)e=Za[b],e.Aa.by()||e.Aa.Sx()||this.b.lb||this.b.Mk?a+=e.size:e.Aa.Qq()&&(a+=Math.floor(e.size/2));return a};wa.$y=function(){var a,b,c,e;c=a=0;for(b=Q.length;a<b;++a)e=Q[a],Q[c]=e,e.Pd?e.Zy():++c;Q.length=c};wa.Ck=function(a,b){var c,e,d,f=null;c=0;for(e=Q.length;c<e;c++)if(d=Q[c],d.src===a){f=d;break}f||(pb&&b&&this.$y(),f=new v(a,b),Q.push(f));return f};wa.jn=function(a,b,c,e,d){var f,
h,g;f=0;for(h=D.length;f<h;f++)if(g=D[f],g.src===a&&(g.Kv()||c))return g.tag=b,g;a=this.Ck(a,c);if(!a.ma)return"<preload>"!==b&&(a.wl=b,a.Yn=e,a.gp=d),null;g=new C(a,b);D.push(g);return g};var za=[];O.prototype.Gj=function(a){return mb(J,a)};O.prototype.Xt=function(a){H(a);var b;a=0;for(b=za.length;a<b;a++)if(za[a].Yg())return!0;return!1};M.j=new O;P.prototype.Play=function(a,b,c,e){!R&&(c=n(c),L=this.jn(this.b.uk+a[0]+(W?".ogg":".m4a"),e,a[1],0!==b,c))&&(L.Nl(!1),L.play(0!==b,c,0,this.il),this.il=
0)};P.prototype.Ku=function(a,b,c,e,d){!R&&(e=n(e),L=this.jn(this.b.uk+b.toLowerCase()+(W?".ogg":".m4a"),d,1===a,0!==c,e))&&(L.Nl(!1),L.play(0!==c,e,0,this.il),this.il=0)};P.prototype.bv=function(a,b){H(a);var c=n(b),e,d;e=0;for(d=za.length;e<d;e++)za[e].sz(c)};P.prototype.jv=function(a){H(a);var b;a=0;for(b=za.length;a<b;a++)za[a].stop()};P.prototype.Yu=function(a){var b;2===a&&(a=R?1:0);if(0===a&&!R){a=0;for(b=D.length;a<b;a++)D[a].Ol(!0);R=!0}else if(1===a&&R){a=0;for(b=D.length;a<b;a++)D[a].Ol(!1);
R=!1}};M.A=new P;M.L=new function(){}})();function vc(d){this.b=d}
(function(){function d(){r&&k&&window.OfflineClientInfo&&window.OfflineClientInfo.SetMessageCallback(function(c){a.By(c)})}function p(){}function m(){}var q=vc.prototype;q.ga=function(a){this.qa=a;this.b=a.b};var n=q.ga.prototype;n.M=function(){};var r=!1,k=!1;document.addEventListener("DOMContentLoaded",function(){if(window.C2_RegisterSW&&navigator.serviceWorker){var a=document.createElement("script");a.onload=function(){r=!0;d()};a.src="offlineClient.js";document.head.appendChild(a)}});var a=null;
n.Qr=function(){k=!0;d()};q.aa=function(a){this.type=a;this.b=a.b};n=q.aa.prototype;n.M=function(){var c=this;window.addEventListener("resize",function(){c.b.trigger(vc.prototype.j.Au,c)});a=this;"undefined"!==typeof navigator.onLine&&(window.addEventListener("online",function(){c.b.trigger(vc.prototype.j.xu,c)}),window.addEventListener("offline",function(){c.b.trigger(vc.prototype.j.vu,c)}));this.b.Pb||(document.addEventListener("appMobi.device.update.available",function(){c.b.trigger(vc.prototype.j.wm,
c)}),document.addEventListener("backbutton",function(){c.b.trigger(vc.prototype.j.Fj,c)}),document.addEventListener("menubutton",function(){c.b.trigger(vc.prototype.j.up,c)}),document.addEventListener("searchbutton",function(){c.b.trigger(vc.prototype.j.Bu,c)}),document.addEventListener("tizenhwkey",function(a){var b;switch(a.keyName){case "back":b=c.b.trigger(vc.prototype.j.Fj,c);!b&&window.tizen&&window.tizen.application.getCurrentApplication().exit();break;case "menu":(b=c.b.trigger(vc.prototype.j.up,
c))||a.preventDefault()}}));this.b.Rk&&"undefined"!==typeof Windows?Windows.UI.Core.SystemNavigationManager.getForCurrentView().addEventListener("backrequested",function(a){c.b.trigger(vc.prototype.j.Fj,c)&&(a.handled=!0)}):this.b.Nn&&WinJS.Application&&(WinJS.Application.onbackclick=function(){return!!c.b.trigger(vc.prototype.j.Fj,c)});this.b.Op(function(a){a?c.b.trigger(vc.prototype.j.yu,c):c.b.trigger(vc.prototype.j.zu,c)});this.hy="undefined"!==typeof window.is_scirra_arcade};n.By=function(a){a=
a.data.type;"downloading-update"===a?this.b.trigger(vc.prototype.j.Eu,this):"update-ready"===a||"update-pending"===a?this.b.trigger(vc.prototype.j.wm,this):"offline-ready"===a&&this.b.trigger(vc.prototype.j.wu,this)};p.prototype.xu=function(){return!0};p.prototype.vu=function(){return!0};p.prototype.wm=function(){return!0};p.prototype.zu=function(){return!0};p.prototype.yu=function(){return!0};p.prototype.Au=function(){return!0};p.prototype.Fj=function(){return!0};p.prototype.up=function(){return!0};
p.prototype.Bu=function(){return!0};p.prototype.Eu=function(){return!0};p.prototype.wm=function(){return!0};p.prototype.wu=function(){return!0};q.j=new p;m.prototype.Nt=function(a,e){this.b.Rc?CocoonJS.App.openURL(a):this.b.ed?ejecta.openURL(a):this.b.Nn?Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri(a)):navigator.app&&navigator.app.loadUrl?navigator.app.loadUrl(a,{openExternal:!0}):this.b.Dc?window.open(a,"_system"):this.hy||this.b.lb||window.open(a,e)};q.A=new m;q.L=new function(){}})();
function wc(d){this.b=d}
(function(){function d(){}function p(){}var m=wc.prototype;m.ga=function(d){this.qa=d;this.b=d.b};m.ga.prototype.M=function(){};m.aa=function(d){this.type=d;this.b=d.b};var q=m.aa.prototype;q.M=function(){this.ne={}};q.fb=function(){return this.ne};q.yb=function(d){this.ne=d;for(var m in this.ne);};m.j=new function(){};d.prototype.qt=function(){$a(this.ne)};d.prototype.au=function(d){var m;try{m=JSON.parse(d)}catch(k){return}if(m.c2dictionary){this.ne=m.data;for(var a in this.ne);}};m.A=new d;p.prototype.Jt=
function(d,m){this.ne.hasOwnProperty(m)?d.No(this.ne[m]):d.Ga(0)};p.prototype.kp=function(d){d.$b(JSON.stringify({c2dictionary:!0,data:this.ne}))};m.L=new p})();var xc=!1;
try{!function(){var d,p,m;!function(){var q={},n={};d=function(d,n,a){q[d]={Sv:n,Jv:a}};m=p=function(d){function k(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=d.split("/").slice(0,-1),c=0,e=a.length;e>c;c++){var f=a[c];".."===f?b.pop():"."!==f&&b.push(f)}return b.join("/")}if(m.yA=q,n[d])return n[d];if(n[d]={},!q[d])throw Error("Could not find module "+d);for(var a,c=q[d],e=c.Sv,c=c.Jv,b=[],f=0,l=e.length;l>f;f++)"exports"===e[f]?b.push(a={}):b.push(p(k(e[f])));e=c.apply(this,b);return n[d]=
a||e}}();d("promise/all",["./utils","exports"],function(d,n){var m=d.isArray,k=d.isFunction;n.all=function(a){if(!m(a))throw new TypeError("You must pass an array to all.");return new this(function(c,e){function b(a){return function(b){l[a]=b;0===--g&&c(l)}}var d,l=[],g=a.length;0===g&&c([]);for(var n=0;n<a.length;n++)(d=a[n])&&k(d.then)?d.then(b(n),e):(l[n]=d,0===--g&&c(l))})}});d("promise/asap",["exports"],function(d){function n(){return function(){process.OA(a)}}function m(){var c=0,e=new b(a),
d=document.createTextNode("");return e.observe(d,{characterData:!0}),function(){d.data=c=++c%2}}function k(){return function(){f.setTimeout(a,1)}}function a(){for(var a=0;a<l.length;a++){var b=l[a];(0,b[0])(b[1])}l=[]}var c,e="undefined"!=typeof window?window:{},b=e.MutationObserver||e.WebKitMutationObserver,f="undefined"!=typeof global?global:void 0===this?window:this,l=[];c="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?n():b?m():k();d.Bv=function(a,b){1===l.push([a,
b])&&c()}});d("promise/config",["exports"],function(d){var n={GA:!1};d.cq=n;d.Mv=function(d,k){return 2!==arguments.length?n[d]:void(n[d]=k)}});d("promise/polyfill",["./promise","./utils","exports"],function(d,n,m){var k=d.Promise,a=n.isFunction;m.Jy=function(){var c;c="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in c&&"resolve"in c.Promise&&"reject"in c.Promise&&"all"in c.Promise&&"race"in c.Promise&&function(){var e;return new c.Promise(function(a){e=
a}),a(e)}()||(c.Promise=k)}});d("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(d,n,m,k,a,c,e,b){function f(a){if(!v(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.Lj=[];l(a,this)}function l(a,b){function c(a){h(b,
a)}function e(a){T(b,a)}try{a(c,e)}catch(d){e(d)}}function g(a,b,c,e){var d,f,g,l,n=v(c);if(n)try{d=c(e),g=!0}catch(k){l=!0,f=k}else d=e,g=!0;N(b,d)||(n&&g?h(b,d):l?T(b,f):a===S?h(b,d):a===O&&T(b,d))}function p(a,b,c,e){a=a.Lj;var d=a.length;a[d]=b;a[d+S]=c;a[d+O]=e}function B(a,b){for(var c,e,d=a.Lj,f=a.Kj,h=0;h<d.length;h+=3)c=d[h],e=d[h+b],g(b,c,e,f);a.Lj=null}function N(a,b){var c,e=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(K(b)&&(e=b.then,
v(e)))return e.call(b,function(e){return c?!0:(c=!0,void(b!==e?h(a,e):t(a,e)))},function(b){return c?!0:(c=!0,void T(a,b))}),!0}catch(d){return c?!0:(T(a,d),!0)}return!1}function h(a,b){a===b?t(a,b):N(a,b)||t(a,b)}function t(a,b){a.ee===C&&(a.ee=H,a.Kj=b,F.async(I,a))}function T(a,b){a.ee===C&&(a.ee=H,a.Kj=b,F.async(w,a))}function I(a){B(a,a.ee=S)}function w(a){B(a,a.ee=O)}var F=d.cq,K=(d.Mv,n.vy),v=n.isFunction;d=(n.now,m.all);k=k.race;a=a.resolve;c=c.reject;F.async=e.Bv;var C=void 0,H=0,S=1,O=2;
f.prototype={constructor:f,ee:void 0,Kj:void 0,Lj:void 0,then:function(a,b){var c=this,e=new this.constructor(function(){});if(this.ee){var d=arguments;F.async(function(){g(c.ee,e,d[c.ee-1],c.Kj)})}else p(this,e,a,b);return e},"catch":function(a){return this.then(null,a)}};f.all=d;f.race=k;f.resolve=a;f.reject=c;b.Promise=f});d("promise/race",["./utils","exports"],function(d,n){var m=d.isArray;n.race=function(d){if(!m(d))throw new TypeError("You must pass an array to race.");return new this(function(a,
c){for(var e,b=0;b<d.length;b++)(e=d[b])&&"function"==typeof e.then?e.then(a,c):a(e)})}});d("promise/reject",["exports"],function(d){d.reject=function(d){return new this(function(m,k){k(d)})}});d("promise/resolve",["exports"],function(d){d.resolve=function(d){return d&&"object"==typeof d&&d.constructor===this?d:new this(function(m){m(d)})}});d("promise/utils",["exports"],function(d){function n(d){return"function"==typeof d}var m=Date.now||function(){return(new Date).getTime()};d.vy=function(d){return n(d)||
"object"==typeof d&&null!==d};d.isFunction=n;d.isArray=function(d){return"[object Array]"===Object.prototype.toString.call(d)};d.now=m});p("promise/polyfill").Jy()}();var yc=function(){return function(d){function p(q){if(m[q])return m[q].Ld;var n=m[q]={Ld:{},id:q,loaded:!1};return d[q].call(n.Ld,n,n.Ld,p),n.loaded=!0,n.Ld}var m={};return p.If=d,p.$h=m,p.Vm="",p(0)}([function(d,p,m){p.Jj=!0;var q=function(d){function p(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function k(){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 e)if(e.hasOwnProperty(b)&&e[b]===a)return!0;return!1}var c={},e={Rh:"asyncStorage",Sh:"localStorageWrapper",Uh:"webSQLStorage"},b="clear getItem iterate key keys length removeItem setItem".split(" "),f={description:"",Og:[e.Rh,e.Uh,e.Sh].slice(),name:"localforage",size:4980736,Ba:"keyvaluepairs",
version:1},l=function(a){var b={},c;try{var d=d||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.Xq||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:d&&"function"==typeof d.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[e.Rh]=!!c;var g;try{g=a.openDatabase}catch(l){g=!1}b[e.Uh]=!!g;var n;try{n=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(k){n=
!1}return b[e.Sh]=!!n,b}(d),g=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.Rh=e.Rh;this.Sh=e.Sh;this.Uh=e.Uh;this.Cm=k({},f);this.Ff=k({},this.Cm,a);this.Hp=this.Gd=null;this.Ue=!1;this.ya=null;this.Ip();this.ys(this.Ff.Og)}return d.prototype.cq=function(a){if("object"==typeof a){if(this.Ue)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.Ff[b]=a[b];return"driver"in a&&a.Og&&this.ys(this.Ff.Og),!0}return"string"==typeof a?this.Ff[a]:this.Ff},d.prototype.Og=function(){return this.Vh||null},d.prototype.xq=function(b,e,d){var f=this,g=function(){if(a(b))switch(b){case f.Rh:return new Promise(function(a){a(m(1))});case f.Sh:return new Promise(function(a){a(m(2))});case f.Uh:return new Promise(function(a){a(m(4))})}else if(c[b])return Promise.resolve(c[b]);return Promise.reject(Error("Driver not found."))}();
return g.then(e,d),g},d.prototype.ready=function(a){var b=this,c=b.Gd.then(function(){return null===b.Ue&&(b.Ue=b.Hp()),b.Ue});return c.then(a,a),c},d.prototype.ys=function(a,b,c){function e(){f.Ff.Og=f.Og()}function d(a){return function(){function b(){for(;c<a.length;){var d=a[c];return c++,f.ya=null,f.Ue=null,f.xq(d).then(function(a){return f.qv(a),e(),f.Ue=f.Em(f.Ff),f.Ue})["catch"](b)}e();return f.Gd=Promise.reject(Error("No available storage method found.")),f.Gd}var c=0;return b()}}var f=this;
g(a)||(a=[a]);var l=this.rv(a);return this.Gd=(null!==this.Gd?this.Gd["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=l[0];return f.ya=null,f.Ue=null,f.xq(a).then(function(a){f.Vh=a.Vh;e();f.Ip();f.Hp=d(l)})})["catch"](function(){e();return f.Gd=Promise.reject(Error("No available storage method found.")),f.Gd}),this.Gd.then(b,c),this.Gd},d.prototype.supports=function(a){return!!l[a]},d.prototype.qv=function(a){k(this,a)},d.prototype.rv=function(a){for(var b=
[],c=0,e=a.length;e>c;c++){var d=a[c];this.supports(d)&&b.push(d)}return b},d.prototype.Ip=function(){for(var a=0;a<b.length;a++)p(this,b[a])},d.prototype.ek=function(a){return new d(a)},d}())}("undefined"!=typeof window?window:self);p["default"]=q;d.Ld=p["default"]},function(d,p){p.Jj=!0;p["default"]=function(d){function p(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var e=new (d.BlobBuilder||d.If||d.Vm||d.WebKitBlobBuilder),f=0;f<a.length;f+=1)e.append(a[f]);
return e.getBlob(b.type)}}function n(a){return new Promise(function(b,c){var e=new XMLHttpRequest;e.open("GET",a);e.withCredentials=!0;e.responseType="arraybuffer";e.onreadystatechange=function(){return 4===e.readyState?200===e.status?b({response:e.response,type:e.getResponseHeader("Content-Type")}):void c({status:e.status,response:e.response}):void 0};e.send()})}function r(a){return(new Promise(function(b,c){var e=p([""],{type:"image/png"}),d=a.transaction([C],"readwrite");d.objectStore(C).put(e,
"key");d.oncomplete=function(){var e=a.transaction([C],"readwrite").objectStore(C).get("key");e.onerror=c;e.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);n(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};d.onerror=d.onabort=c}))["catch"](function(){return!1})}function k(a){return"boolean"==typeof K?Promise.resolve(K):r(a).then(function(a){return K=a})}function a(a){return new Promise(function(b,c){var e=new FileReader;
e.onerror=c;e.onloadend=function(c){b({Gp:!0,data:btoa(c.target.result||""),type:a.type})};e.readAsBinaryString(a)})}function c(a){for(var b=atob(a.data),c=b.length,e=new ArrayBuffer(c),d=new Uint8Array(e),f=0;c>f;f++)d[f]=b.charCodeAt(f);return p([e],{type:a.type})}function e(a){var b=this,c=b.Dm().then(function(){var a=v[b.ya.name];return a&&a.Mg?a.Mg:void 0});return c.then(a,a),c}function b(a){a=v[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.hq.push(b);a.Mg?a.Mg=a.Mg.then(function(){return b.promise}):
a.Mg=b.promise}function f(a){function b(){return Promise.resolve()}var c=this,f={db:null};if(a)for(var h in a)f[h]=a[h];v||(v={});var g=v[f.name];g||(g={zk:[],db:null,Mg:null,hq:[]},v[f.name]=g);g.zk.push(c);c.Dm||(c.Dm=c.ready,c.ready=e);a=[];for(h=0;h<g.zk.length;h++){var n=g.zk[h];n!==c&&a.push(n.Dm()["catch"](b))}var k=g.zk.slice(0);return Promise.all(a).then(function(){return f.db=g.db,l(f,!1)}).then(function(a){f.db=a;var b;b=c.Cm.version;if(f.db){var e=!f.db.objectStoreNames.contains(f.Ba),
h=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&d.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),h||e)?(e&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?l(f,!0):a}).then(function(a){f.db=g.db=a;c.ya=f;for(a=0;a<k.length;a++){var b=k[a];b!==c&&(b.ya.db=f.db,b.ya.version=f.version)}})}function l(a,c){return new Promise(function(e,f){if(a.db){if(!c)return e(a.db);
b(a);a.db.close()}var h=[a.name];c&&h.push(a.version);var g=F.open.apply(F,h);c&&(g.onupgradeneeded=function(b){var c=g.result;try{c.createObjectStore(a.Ba),1>=b.oldVersion&&c.createObjectStore(C)}catch(e){if("ConstraintError"!==e.name)throw e;d.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.Ba+'" already exists.')}});g.onerror=function(){f(g.error)};g.onsuccess=function(){e(g.result);var b=v[a.name].hq.pop();
b&&b.resolve()}})}function g(a,b){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(b,d){e.ready().then(function(){var f=e.ya,h=f.db.transaction(f.Ba,"readonly").objectStore(f.Ba).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.Gp&&(a=c(a));b(a)};h.onerror=function(){d(h.error)}})["catch"](d)});return w(f,b),f}function u(a,b){var e=this,d=new Promise(function(b,d){e.ready().then(function(){var f=
e.ya,h=f.db.transaction(f.Ba,"readonly").objectStore(f.Ba).openCursor(),g=1;h.onsuccess=function(){var e=h.result;if(e){var d=e.value;d&&d.Gp&&(d=c(d));d=a(d,e.key,g++);void 0!==d?b(d):e["continue"]()}else b()};h.onerror=function(){d(h.error)}})["catch"](d)});return w(d,b),d}function B(b,c,e){var f=this;"string"!=typeof b&&(d.console.warn(b+" used as a key, but it is not a string."),b=String(b));var h=new Promise(function(e,d){var h;f.ready().then(function(){return h=f.ya,c instanceof Blob?k(h.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=h.db.transaction(h.Ba,"readwrite"),f=c.objectStore(h.Ba);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);e(a)};c.onabort=c.onerror=function(){d(g.error?g.error:g.transaction.error)};var g=f.put(a,b)})["catch"](d)});return w(h,e),h}function N(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya,f=d.db.transaction(d.Ba,"readwrite"),
h=f.objectStore(d.Ba)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){e(h.error)};f.onabort=function(){e(h.error?h.error:h.transaction.error)}})["catch"](e)});return w(e,b),e}function h(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Ba,"readwrite"),f=d.objectStore(e.Ba).clear();d.oncomplete=function(){a()};d.onabort=d.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return w(c,a),c}function t(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Ba,"readonly").objectStore(e.Ba).count();d.onsuccess=function(){a(d.result)};d.onerror=function(){c(d.error)}})["catch"](c)});return w(c,a),c}function T(a,b){var c=this,e=new Promise(function(b,e){return 0>a?void b(null):void c.ready().then(function(){var d=c.ya,f=!1,h=d.db.transaction(d.Ba,"readonly").objectStore(d.Ba).openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};h.onerror=function(){e(h.error)}})["catch"](e)});return w(e,b),e}function I(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya,d=e.db.transaction(e.Ba,"readonly").objectStore(e.Ba).openCursor(),f=[];d.onsuccess=function(){var b=d.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};d.onerror=function(){c(d.error)}})["catch"](c)});return w(c,a),c}function w(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var F=F||d.indexedDB||
d.webkitIndexedDB||d.mozIndexedDB||d.Xq||d.msIndexedDB;if(F){var K,v,C="local-forage-detect-blob-support";return{Vh:"asyncStorage",Em:f,Wq:u,getItem:g,setItem:B,removeItem:N,clear:h,length:t,key:T,keys:I}}}("undefined"!=typeof window?window:self);d.Ld=p["default"]},function(d,p,m){p.Jj=!0;p["default"]=function(d){function n(a,c){c&&a.then(function(a){c(null,a)},function(a){c(a)})}var p=null;try{if(!(d.localStorage&&"setItem"in d.localStorage))return;p=d.localStorage}catch(k){return}return{Vh:"localStorageWrapper",
Em:function(a){var c={};if(a)for(var e in a)c[e]=a[e];return c.Qd=c.name+"/",c.Ba!==this.Cm.Ba&&(c.Qd+=c.Ba+"/"),this.ya=c,(new Promise(function(a){a(m(3))})).then(function(a){return c.ug=a,Promise.resolve()})},Wq:function(a,c){var e=this,b=e.ready().then(function(){for(var b=e.ya,c=b.Qd,d=c.length,n=p.length,k=1,m=0;n>m;m++){var h=p.key(m);if(0===h.indexOf(c)){var t=p.getItem(h);if(t&&(t=b.ug.mk(t)),t=a(t,h.substring(d),k++),void 0!==t)return t}}});return n(b,c),b},getItem:function(a,c){var e=this;
"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=e.ready().then(function(){var b=e.ya,c=p.getItem(b.Qd+a);return c&&(c=b.ug.mk(c)),c});return n(b,c),b},setItem:function(a,c,e){var b=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=b.ready().then(function(){void 0===c&&(c=null);var e=c;return new Promise(function(d,f){var n=b.ya;n.ug.serialize(c,function(b,c){if(c)f(c);else try{p.setItem(n.Qd+
a,b),d(e)}catch(k){"QuotaExceededError"!==k.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==k.name||f(k),f(k)}})})});return n(f,e),f},removeItem:function(a,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var b=e.ready().then(function(){p.removeItem(e.ya.Qd+a)});return n(b,c),b},clear:function(a){var c=this,e=c.ready().then(function(){for(var a=c.ya.Qd,e=p.length-1;0<=e;e--){var d=p.key(e);0===d.indexOf(a)&&p.removeItem(d)}});return n(e,a),e},length:function(a){var c=
this.keys().then(function(a){return a.length});return n(c,a),c},key:function(a,c){var e=this,b=e.ready().then(function(){var b,c=e.ya;try{b=p.key(a)}catch(d){b=null}return b&&(b=b.substring(c.Qd.length)),b});return n(b,c),b},keys:function(a){var c=this,e=c.ready().then(function(){for(var a=c.ya,e=p.length,d=[],g=0;e>g;g++)0===p.key(g).indexOf(a.Qd)&&d.push(p.key(g).substring(a.Qd.length));return d});return n(e,a),e}}}("undefined"!=typeof window?window:self);d.Ld=p["default"]},function(d,p){p.Jj=!0;
p["default"]=function(d){function p(a){var c,e,b,d,l;c=.75*a.length;var g=a.length,n=0;"="===a[a.length-1]&&(c--,"="===a[a.length-2]&&c--);var k=new ArrayBuffer(c),m=new Uint8Array(k);for(c=0;g>c;c+=4)e=r.indexOf(a[c]),b=r.indexOf(a[c+1]),d=r.indexOf(a[c+2]),l=r.indexOf(a[c+3]),m[n++]=e<<2|b>>4,m[n++]=(15&b)<<4|d>>2,m[n++]=(3&d)<<6|63&l;return k}function n(a){var c=new Uint8Array(a),e="";for(a=0;a<c.length;a+=3)e+=r[c[a]>>2],e+=r[(3&c[a])<<4|c[a+1]>>4],e+=r[(15&c[a+1])<<2|c[a+2]>>6],e+=r[63&c[a+2]];
return 2===c.length%3?e=e.substring(0,e.length-1)+"=":1===c.length%3&&(e=e.substring(0,e.length-2)+"=="),e}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,c){var e="";if(a&&(e=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var b,d="__lfsc__:";a instanceof ArrayBuffer?(b=a,d+="arbf"):(b=a.buffer,"[object Int8Array]"===e?d+="si08":"[object Uint8Array]"===
e?d+="ui08":"[object Uint8ClampedArray]"===e?d+="uic8":"[object Int16Array]"===e?d+="si16":"[object Uint16Array]"===e?d+="ur16":"[object Int32Array]"===e?d+="si32":"[object Uint32Array]"===e?d+="ui32":"[object Float32Array]"===e?d+="fl32":"[object Float64Array]"===e?d+="fl64":c(Error("Failed to get type for BinaryArray")));c(d+n(b))}else if("[object Blob]"===e)e=new FileReader,e.onload=function(){var b="~~local_forage_type~"+a.type+"~"+n(this.result);c("__lfsc__:blob"+b)},e.readAsArrayBuffer(a);else try{c(JSON.stringify(a))}catch(l){console.error("Couldn't convert value into a JSON string: ",
a),c(null,l)}},mk:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var c,e=a.substring(13);a=a.substring(9,13);if("blob"===a&&k.test(e)){var b=e.match(k);c=b[1];e=e.substring(b[0].length)}e=p(e);switch(a){case "arbf":return e;case "blob":var f;e=[e];c={type:c};e=e||[];c=c||{};try{f=new Blob(e,c)}catch(l){if("TypeError"!==l.name)throw l;f=new (d.BlobBuilder||d.If||d.Vm||d.WebKitBlobBuilder);for(a=0;a<e.length;a+=1)f.append(e[a]);f=f.getBlob(c.type)}return f;case "si08":return new Int8Array(e);
case "ui08":return new Uint8Array(e);case "uic8":return new Uint8ClampedArray(e);case "si16":return new Int16Array(e);case "ur16":return new Uint16Array(e);case "si32":return new Int32Array(e);case "ui32":return new Uint32Array(e);case "fl32":return new Float32Array(e);case "fl64":return new Float64Array(e);default:throw Error("Unkown type: "+a);}},VA:p,AA:n}}("undefined"!=typeof window?window:self);d.Ld=p["default"]},function(d,p,m){p.Jj=!0;p["default"]=function(d){function n(a){var b=this,c={db:null};
if(a)for(var e in a)c[e]="string"!=typeof a[e]?a[e].toString():a[e];var d=new Promise(function(a,e){try{c.db=u(c.name,String(c.version),c.description,c.size)}catch(d){return e(d)}c.db.transaction(function(d){d.executeSql("CREATE TABLE IF NOT EXISTS "+c.Ba+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.ya=c;a()},function(a,b){e(b)})})});return(new Promise(function(a){a(m(3))})).then(function(a){return c.ug=a,d})}function p(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Ba+" WHERE key = ? LIMIT 1",[a],function(a,c){var e=c.rows.length?c.rows.item(0).value:null;e&&(e=d.ug.mk(e));b(e)},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function k(a,b){var c=this,e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT * FROM "+d.Ba,[],function(c,e){for(var f=e.rows,
h=f.length,g=0;h>g;g++){var l=f.item(g),n=l.value;if(n&&(n=d.ug.mk(n)),n=a(n,l.key,g+1),void 0!==n)return void b(n)}b()},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function a(a,b,c){var e=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=new Promise(function(c,d){e.ready().then(function(){void 0===b&&(b=null);var f=b,h=e.ya;h.ug.serialize(b,function(b,e){e?d(e):h.db.transaction(function(e){e.executeSql("INSERT OR REPLACE INTO "+h.Ba+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){d(b)})},function(a){a.code===a.QUOTA_ERR&&d(a)})})})["catch"](d)});return g(f,c),f}function c(a,b){var c=this;"string"!=typeof a&&(d.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("DELETE FROM "+d.Ba+" WHERE key = ?",[a],function(){b()},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function e(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("DELETE FROM "+e.Ba,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function b(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+e.Ba,[],function(b,c){var e=c.rows.item(0).$h;a(e)},function(a,b){c(b)})})})["catch"](c)});return g(c,a),c}function f(a,b){var c=this,
e=new Promise(function(b,e){c.ready().then(function(){var d=c.ya;d.db.transaction(function(c){c.executeSql("SELECT key FROM "+d.Ba+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var e=c.rows.length?c.rows.item(0).key:null;b(e)},function(a,b){e(b)})})})["catch"](e)});return g(e,b),e}function l(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var e=b.ya;e.db.transaction(function(b){b.executeSql("SELECT key FROM "+e.Ba,[],function(b,c){for(var e=[],d=0;d<c.rows.length;d++)e.push(c.rows.item(d).key);
a(e)},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 u=d.openDatabase;if(u)return{Vh:"webSQLStorage",Em:n,Wq:k,getItem:p,setItem:a,removeItem:c,clear:e,length:b,key:f,keys:l}}("undefined"!=typeof window?window:self);d.Ld=p["default"]}])};"object"==typeof exports&&"object"==typeof module?module.Ld=yc():"function"==typeof define&&define.zA?define([],yc):"object"==typeof exports?exports.localforage=yc():this.localforage=
yc()}catch(zc){xc=!0}function Ac(d){this.b=d}
(function(){function d(a){a.b.trigger(Ac.prototype.j.de,a)}function p(){}function m(){}function q(){}var n="",r="",k="";"undefined"!==typeof window.is_scirra_arcade&&(k="sa"+window.scirra_arcade_id+"_");var a=Ac.prototype;a.ga=function(a){this.qa=a;this.b=a.b};a.ga.prototype.M=function(){};a.aa=function(a){this.type=a;this.b=a.b};var c=a.aa.prototype;c.M=function(){this.so=this.uo=0};c.Ce=function(){};c.fb=function(){return{}};c.yb=function(){};p.prototype.tu=function(a){return n===a};p.prototype.ju=
function(){return!0};p.prototype.qp=function(a){return n===a};p.prototype.iu=function(){return!0};p.prototype.de=function(){return!0};p.prototype.pp=function(a){return n===a};p.prototype.su=function(a){return n===a};p.prototype.gu=function(){return!0};p.prototype.fu=function(){return!0};a.j=new p;m.prototype.Vu=function(a,b){if(xc)d(this);else{var c=k+a;this.uo++;var l=this;localforage.setItem(c,b,function(b,c){l.uo--;b?l.b.trigger(Ac.prototype.j.de,l):(n=a,r=c,l.b.trigger(Ac.prototype.j.ju,l),l.b.trigger(Ac.prototype.j.tu,
l),r=n="");0===l.uo&&l.b.trigger(Ac.prototype.j.gu,l)})}};m.prototype.Kt=function(a){if(xc)d(this);else{var b=k+a;this.so++;var c=this;localforage.getItem(b,function(b,d){c.so--;if(b)c.b.trigger(Ac.prototype.j.de,c);else{n=a;r=d;if("undefined"===typeof r||null===r)r="";c.b.trigger(Ac.prototype.j.iu,c);c.b.trigger(Ac.prototype.j.qp,c);r=n=""}0===c.so&&c.b.trigger(Ac.prototype.j.fu,c)})}};m.prototype.pt=function(a){if(xc)d(this);else{var b=this;localforage.getItem(k+a,function(c,d){c?b.b.trigger(Ac.prototype.j.de,
b):(n=a,null===d?(r="",b.b.trigger(Ac.prototype.j.su,b)):(r=d,b.b.trigger(Ac.prototype.j.pp,b)),r=n="")})}};a.A=new m;q.prototype.Zt=function(a){a.No(r)};a.L=new q})();function Bc(d){this.b=d}
(function(){function d(d){this.Ka=d;this.Oa=!1;this.n=this.speed=this.y=this.x=0;this.opacity=1;this.Xe=this.Wg=this.size=this.Gk=0}var p=Bc.prototype;p.ga=function(d){this.qa=d;this.b=d.b};var m=p.ga.prototype;m.M=function(){this.H||(this.G=new Image,this.G.Sm=this.$l,this.I=null,this.b.nm(this.G,this.tj))};m.uh=function(){this.H||(this.I=null)};m.$i=function(){this.H||!this.d.length||this.I||(this.I=this.b.B.tf(this.G,!0,this.b.Fa,this.yg))};m.Ni=function(){this.H||this.I||!this.b.B||(this.I=this.b.B.tf(this.G,
!0,this.b.Fa,this.yg))};m.vj=function(){this.H||this.d.length||!this.I||(this.b.B.deleteTexture(this.I),this.I=null)};m.cj=function(d){d.drawImage(this.G,0,0)};d.prototype.init=function(){var d=this.Ka;this.x=d.x-d.pm/2+Math.random()*d.pm;this.y=d.y-d.qm/2+Math.random()*d.qm;this.speed=d.Fn-d.Sl/2+Math.random()*d.Sl;this.n=d.n-d.Tl/2+Math.random()*d.Tl;this.opacity=d.Dn;this.size=d.En-d.Rl/2+Math.random()*d.Rl;this.Gk=d.xn-d.Hk/2+Math.random()*d.Hk;this.Xe=this.Wg=0};d.prototype.Na=function(d){var m=
this.Ka;this.x+=Math.cos(this.n)*this.speed*d;this.y+=Math.sin(this.n)*this.speed*d;this.y+=this.Wg*d;this.speed+=m.Kc*d;this.size+=this.Gk*d;this.Wg+=m.lf*d;this.Xe+=d;1>this.size?this.Oa=!1:(0!==m.Ii&&(this.n+=Math.random()*m.Ii*d-m.Ii*d/2),0!==m.Ki&&(this.speed+=Math.random()*m.Ki*d-m.Ki*d/2),0!==m.Ji&&(this.opacity+=Math.random()*m.Ji*d-m.Ji*d/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=m.Ng&&this.Xe>=m.timeout&&(this.Oa=!1),2===m.Ng&&0>=this.speed&&(this.Oa=!1))};d.prototype.Cc=
function(d){var m=this.Ka.opacity*this.opacity;if(0!==m){0===this.Ka.Ng&&(m*=1-this.Xe/this.Ka.timeout);d.globalAlpha=m;var m=this.x-this.size/2,k=this.y-this.size/2;this.Ka.b.rc&&(m=m+.5|0,k=k+.5|0);d.drawImage(this.Ka.type.G,m,k,this.size,this.size)}};d.prototype.Mb=function(d){var m=this.Ka.opacity*this.opacity;0===this.Ka.Ng&&(m*=1-this.Xe/this.Ka.timeout);var k=this.size,a=k*this.Ka.es,c=this.x-k/2,e=this.y-k/2;this.Ka.b.rc&&(c=c+.5|0,e=e+.5|0);1>a||0===m||(a<d.ty||a>d.$n?(d.He(m),d.Ah(c,e,c+
k,e,c+k,e+k,c,e+k)):d.Iy(this.x,this.y,a,m))};d.prototype.left=function(){return this.x-this.size/2};d.prototype.right=function(){return this.x+this.size/2};d.prototype.top=function(){return this.y-this.size/2};d.prototype.bottom=function(){return this.y+this.size/2};p.aa=function(d){this.type=d;this.b=d.b};var m=p.aa.prototype,q=[];m.M=function(){var d=this.C;this.El=d[0];this.Tl=G(d[1]);this.Gh=d[2];this.Ro=!0;this.Fn=d[3];this.En=d[4];this.Dn=d[5]/100;this.xn=d[6];this.pm=d[7];this.qm=d[8];this.Sl=
d[9];this.Rl=d[10];this.Hk=d[11];this.Kc=d[12];this.lf=d[13];this.Ii=d[14];this.Ki=d[15];this.Ji=d[16];this.Ng=d[17];this.timeout=d[18];this.sg=0;this.es=1;this.ql=this.x;this.sl=this.y;this.rl=this.x;this.pl=this.y;this.yv(function(d){d.Ia.set(d.ql,d.sl,d.rl,d.pl);d.Ib.Fh(d.Ia);d.Uj=!1;d.ep();d.dt()});this.ic||(this.hc=[]);this.b.Kh(this);this.type.Ni();if(1===this.Gh)for(d=0;d<this.El;d++)this.Hm().opacity=0;this.xk=!0};m.fb=function(){var d={r:this.El,sc:this.Tl,st:this.Gh,s:this.Ro,isp:this.Fn,
isz:this.En,io:this.Dn,gr:this.xn,xr:this.pm,yr:this.qm,spr:this.Sl,szr:this.Rl,grnd:this.Hk,acc:this.Kc,g:this.lf,lar:this.Ii,lsr:this.Ki,lor:this.Ji,dm:this.Ng,to:this.timeout,pcc:this.sg,ft:this.xk,p:[]},m,k,a,c=d.p;m=0;for(k=this.hc.length;m<k;m++)a=this.hc[m],c.push([a.x,a.y,a.speed,a.n,a.opacity,a.Gk,a.size,a.Wg,a.Xe]);return d};m.yb=function(d){this.El=d.r;this.Tl=d.sc;this.Gh=d.st;this.Ro=d.s;this.Fn=d.isp;this.En=d.isz;this.Dn=d.io;this.xn=d.gr;this.pm=d.xr;this.qm=d.yr;this.Sl=d.spr;this.Rl=
d.szr;this.Hk=d.grnd;this.Kc=d.acc;this.lf=d.g;this.Ii=d.lar;this.Ki=d.lsr;this.Ji=d.lor;this.Ng=d.dm;this.timeout=d.to;this.sg=d.pcc;this.xk=d.ft;q.push.apply(q,this.hc);A(this.hc);var m,k,a,c=d.p;d=0;for(m=c.length;d<m;d++)k=this.Hm(),a=c[d],k.x=a[0],k.y=a[1],k.speed=a[2],k.n=a[3],k.opacity=a[4],k.Gk=a[5],k.size=a[6],k.Wg=a[7],k.Xe=a[8]};m.Ce=function(){q.push.apply(q,this.hc);A(this.hc)};m.Hm=function(){var n;q.length?(n=q.pop(),n.Ka=this):n=new d(this);this.hc.push(n);n.Oa=!0;return n};m.Na=function(){var d=
this.b.Uf(this),m,k,a,c;if(0===this.Gh&&this.Ro)for(this.sg+=d*this.El,k=sa(this.sg),this.sg-=k,m=0;m<k;m++)a=this.Hm(),a.init();this.ql=this.x;this.sl=this.y;this.rl=this.x;this.pl=this.y;c=m=0;for(k=this.hc.length;m<k;m++)a=this.hc[m],this.hc[c]=a,this.b.ea=!0,1===this.Gh&&this.xk&&a.init(),a.Na(d),a.Oa?(a.left()<this.ql&&(this.ql=a.left()),a.right()>this.rl&&(this.rl=a.right()),a.top()<this.sl&&(this.sl=a.top()),a.bottom()>this.pl&&(this.pl=a.bottom()),c++):q.push(a);Da(this.hc,c);this.Z();this.xk=
!1;1===this.Gh&&0===this.hc.length&&this.b.be(this)};m.Cc=function(d){var m,k,a,c=this.q;m=0;for(k=this.hc.length;m<k;m++)a=this.hc[m],a.right()>=c.ra&&a.bottom()>=c.ta&&a.left()<=c.Da&&a.top()<=c.Ca&&a.Cc(d)};m.Mb=function(d){this.es=this.q.pc();d.jc(this.type.I);var m,k,a,c=this.q;m=0;for(k=this.hc.length;m<k;m++)a=this.hc[m],a.right()>=c.ra&&a.bottom()>=c.ta&&a.left()<=c.Da&&a.top()<=c.Ca&&a.Mb(d)};p.j=new function(){};p.A=new function(){};p.L=new function(){}})();function X(d){this.b=d}
(function(){function d(){if(0===this.Wm.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Hh?b.drawImage(this.G,this.rh,this.sh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.G,0,0,this.width,this.height);this.Wm=a.toDataURL("image/png")}return this.Wm}function p(){}function m(a){a[0]=0;a[1]=0;a[2]=0;g.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function n(a,b,c,d){b=b.uid;c=c.uid;var e=q(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=g.length?g.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function r(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(m(a[b]),delete a[b])}function k(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return u=a[b][2],!0;u=-2;return!1}function a(){}function c(){}var e=X.prototype;e.ga=function(a){this.qa=a;this.b=a.b};var b=e.ga.prototype;b.M=function(){if(!this.H){var a,b,c,e,f,h,g,l,k;this.qd=[];this.qi=!1;a=0;for(b=this.zc.length;a<b;a++){f=this.zc[a];g={};g.name=f[0];g.speed=f[1];g.loop=f[2];
g.Eo=f[3];g.Fo=f[4];g.gs=f[5];g.ja=f[6];g.frames=[];c=0;for(e=f[7].length;c<e;c++)h=f[7][c],l={},l.tj=h[0],l.$l=h[1],l.rh=h[2],l.sh=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.ec=h[7],l.fc=h[8],l.Bn=h[9],l.xl=h[10],l.hs=h[11],l.Hh=0!==l.width,l.Wm="",l.EA=d,k={left:0,top:0,right:1,bottom:1},l.Oo=k,l.I=null,(k=this.b.gx(h[0]))?l.G=k:(l.G=new Image,l.G.Ov=h[0],l.G.Sm=h[1],l.G.Hv=null,this.b.nm(l.G,h[0])),g.frames.push(l),this.qd.push(l);this.zc[a]=g}}};b.bt=function(){var a,b,c;a=0;for(b=this.d.length;a<
b;a++)c=this.d[a],c.gk=c.Kb.I};b.uh=function(){if(!this.H){var a,b,c;a=0;for(b=this.qd.length;a<b;++a)c=this.qd[a],c.G.Hv=null,c.I=null;this.qi=!1;this.bt()}};b.$i=function(){if(!this.H&&this.d.length){var a,b,c;a=0;for(b=this.qd.length;a<b;++a)c=this.qd[a],c.I=this.b.B.tf(c.G,!1,this.b.Fa,c.hs);this.bt()}};b.Ni=function(){if(!this.H&&!this.qi&&this.b.B){var a,b,c;a=0;for(b=this.qd.length;a<b;++a)c=this.qd[a],c.I=this.b.B.tf(c.G,!1,this.b.Fa,c.hs);this.qi=!0}};b.vj=function(){if(!this.H&&!this.d.length&&
this.qi){var a,b,c;a=0;for(b=this.qd.length;a<b;++a)c=this.qd[a],this.b.B.deleteTexture(c.I),c.I=null;this.qi=!1}};var f=[];b.cj=function(a){var b,c,d;A(f);b=0;for(c=this.qd.length;b<c;++b)d=this.qd[b].G,-1===f.indexOf(d)&&(a.drawImage(d,0,0),f.push(d))};e.aa=function(a){this.type=a;this.b=a.b;a=this.type.zc[0].frames[0].xl;this.ic?this.za.mj(a):this.za=new gb(a)};var l=e.aa.prototype;l.M=function(){this.visible=0===this.C[0];this.Jk=this.Bi=!1;this.je=0!==this.C[3];this.Ha=this.vq(this.C[1])||this.type.zc[0];
this.J=this.C[2];0>this.J&&(this.J=0);this.J>=this.Ha.frames.length&&(this.J=this.Ha.frames.length-1);var a=this.Ha.frames[this.J];this.za.mj(a.xl);this.ec=a.ec;this.fc=a.fc;this.Kg=this.Ha.speed;this.hf=this.Ha.Fo;1===this.type.zc.length&&1===this.type.zc[0].frames.length||0===this.Kg||(this.b.Kh(this),this.Bi=!0);this.ic?this.Id.reset():this.Id=new eb;this.se=this.Id.W;this.Hf=!0;this.fe=0;this.Gf=!0;this.Hg=this.Pp="";this.Zp=0;this.Yj=-1;this.type.Ni();var b,c,d,e,f,h,g,a=0;for(b=this.type.zc.length;a<
b;a++)for(e=this.type.zc[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.G.width,f.height=f.G.height),f.Hh&&(g=f.G,h=f.Oo,h.left=f.rh/g.width,h.top=f.sh/g.height,h.right=(f.rh+f.width)/g.width,h.bottom=(f.sh+f.height)/g.height,0===f.rh&&0===f.sh&&f.width===g.width&&f.height===g.height&&(f.Hh=!1));this.Kb=this.Ha.frames[this.J];this.gk=this.Kb.I};l.fb=function(){var a={a:this.Ha.ja,f:this.J,cas:this.Kg,fs:this.se,ar:this.fe,at:this.Id.W,rt:this.hf};this.Hf||(a.ap=this.Hf);this.Gf||
(a.af=this.Gf);return a};l.yb=function(a){var b=this.kx(a.a);b&&(this.Ha=b);this.J=a.f;0>this.J&&(this.J=0);this.J>=this.Ha.frames.length&&(this.J=this.Ha.frames.length-1);this.Kg=a.cas;this.se=a.fs;this.fe=a.ar;this.Id.reset();this.Id.W=a.at;this.Hf=a.hasOwnProperty("ap")?a.ap:!0;this.Gf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.hf=a.rt:this.hf=this.Ha.Fo;this.Kb=this.Ha.frames[this.J];this.gk=this.Kb.I;this.za.mj(this.Kb.xl);this.ec=this.Kb.ec;this.fc=this.Kb.fc};l.Jm=function(a){this.J=
a?0:this.Ha.frames.length-1;this.Hf=!1;this.Pp=this.Ha.name;this.Jk=!0;this.b.trigger(X.prototype.j.hu,this);this.b.trigger(X.prototype.j.np,this);this.Jk=!1;this.fe=0};l.If=function(){return this.Id.W};l.Na=function(){this.Id.add(this.b.Uf(this));this.Hg.length&&this.iq();0<=this.Yj&&this.jq();var a=this.Id.W,b=this.Ha,c=b.frames[this.J],d=c.duration/this.Kg;this.Hf&&a>=this.se+d&&(this.Gf?this.J++:this.J--,this.se+=d,this.J>=b.frames.length&&(b.gs?(this.Gf=!1,this.J=b.frames.length-2):b.loop?this.J=
this.hf:(this.fe++,this.fe>=b.Eo?this.Jm(!1):this.J=this.hf)),0>this.J&&(b.gs?(this.J=1,this.Gf=!0,b.loop||(this.fe++,this.fe>=b.Eo&&this.Jm(!0))):b.loop?this.J=this.hf:(this.fe++,this.fe>=b.Eo?this.Jm(!0):this.J=this.hf)),0>this.J?this.J=0:this.J>=b.frames.length&&(this.J=b.frames.length-1),a>this.se+b.frames[this.J].duration/this.Kg&&(this.se=a),a=b.frames[this.J],this.Eg(c,a),this.b.ea=!0)};l.vq=function(a){var b,c,d;b=0;for(c=this.type.zc.length;b<c;b++)if(d=this.type.zc[b],mb(d.name,a))return d;
return null};l.kx=function(a){var b,c,d;b=0;for(c=this.type.zc.length;b<c;b++)if(d=this.type.zc[b],d.ja===a)return d;return null};l.iq=function(){var a=this.Ha.frames[this.J],b=this.vq(this.Hg);this.Hg="";!b||mb(b.name,this.Ha.name)&&this.Hf||(this.Ha=b,this.Kg=b.speed,this.hf=b.Fo,0>this.J&&(this.J=0),this.J>=this.Ha.frames.length&&(this.J=this.Ha.frames.length-1),1===this.Zp&&(this.J=0),this.Hf=!0,this.se=this.Id.W,this.Gf=!0,this.Eg(a,this.Ha.frames[this.J]),this.b.ea=!0)};l.jq=function(){var a=
this.Ha.frames[this.J],b=this.J;this.J=sa(this.Yj);0>this.J&&(this.J=0);this.J>=this.Ha.frames.length&&(this.J=this.Ha.frames.length-1);b!==this.J&&(this.Eg(a,this.Ha.frames[this.J]),this.se=this.Id.W,this.b.ea=!0);this.Yj=-1};l.Eg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.ec=b.ec;this.fc=b.fc;this.za.mj(b.xl);this.Z();this.Kb=b;this.gk=b.I;c=0;for(d=this.ca.length;c<d;c++)e=this.ca[c],e.Tr&&e.Tr(a,b);this.b.trigger(X.prototype.j.Eg,
this)};l.Cc=function(a){a.globalAlpha=this.opacity;var b=this.Kb,c=b.Hh,d=b.G,e=this.x,f=this.y,h=this.width,g=this.height;if(0===this.n&&0<=h&&0<=g)e-=this.ec*h,f-=this.fc*g,this.b.rc&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.rh,b.sh,b.width,b.height,e,f,h,g):a.drawImage(d,e,f,h,g);else{this.b.rc&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<h?1:-1,k=0<g?1:-1;a.translate(e,f);1===l&&1===k||a.scale(l,k);a.rotate(this.n*l*k);e=0-this.ec*oa(h);f=0-this.fc*oa(g);c?a.drawImage(d,b.rh,
b.sh,b.width,b.height,e,f,oa(h),oa(g)):a.drawImage(d,e,f,oa(h),oa(g));a.restore()}};l.Of=function(a){this.Mb(a)};l.Mb=function(a){a.jc(this.gk);a.He(this.opacity);var b=this.Kb,c=this.Ib;if(this.b.rc){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Hh?a.zd(c.La+d,c.Ma+e,c.gb+d,c.hb+e,c.$a+d,c.ab+e,c.Ya+d,c.Za+e,b.Oo):a.Ah(c.La+d,c.Ma+e,c.gb+d,c.hb+e,c.$a+d,c.ab+e,c.Ya+d,c.Za+e)}else b.Hh?a.zd(c.La,c.Ma,c.gb,c.hb,c.$a,c.ab,c.Ya,c.Za,b.Oo):a.Ah(c.La,c.Ma,c.gb,c.hb,c.$a,c.ab,c.Ya,c.Za)};
l.rx=function(a){var b=this.Kb,c,d;c=0;for(d=b.Bn.length;c<d;c++)if(mb(a,b.Bn[c][0]))return c;return-1};l.ki=function(a,b){var c=this.Kb,d=c.Bn,e;la(a)?e=this.rx(a):e=a-1;e=sa(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.ec)*this.width,d=d[e][2],d=(d-c.fc)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var g=[],u=-2,B=[];p.prototype.lu=function(a){if(!a)return!1;var b=this.b,c=b.ji(),d=c.type,e=null;c.N.collmemory?e=
c.N.collmemory:(e={},c.N.collmemory=e);c.N.spriteCreatedDestroyCallback||(c.N.spriteCreatedDestroyCallback=!0,b.Gm(function(a){var b=c.N.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(m(b[d]),delete b[d])}));var f=d.R(),h=a.R(),f=f.Yb(),g,l,p,t,q,T,I,y=this.b.$d,x=y-1,N=b.Va().bb;for(l=0;l<f.length;l++){p=f[l];h.V?(p.Ea(),this.b.mn(p.q,a,p.Ia,B),g=B,this.b.xv(p,a,g)):g=h.Yb();for(t=0;t<g.length;t++)q=g[t],b.Cf(p,q)||b.Lv(p,q)?(T=k(e,p,q),T=!T||u<x,n(e,p,q,
y),T&&(b.zh(N.xa),T=d.R(),I=a.R(),T.V=!1,I.V=!1,d===a?(T.d.length=2,T.d[0]=p,T.d[1]=q,d.Ac()):(T.d.length=1,I.d.length=1,T.d[0]=p,I.d[0]=q,d.Ac(),a.Ac()),N.hj(),b.Fe(N.xa))):r(e,p,q);A(B)}return!1};var N=null,h=new da,t=!1,T=[],I=new xa(0,0,0,0);b.finish=function(a){if(t){if(a){var b=this.b.Va().bb.Vc;a=N.R();var c=h.Ef(),d,e;if(a.V){a.V=!1;A(a.d);d=0;for(e=c.length;d<e;++d)a.d[d]=c[d];if(b)for(A(a.ba),d=0,e=N.d.length;d<e;++d)c=N.d[d],h.contains(c)||a.ba.push(c)}else if(b)for(b=a.d.length,d=0,e=
c.length;d<e;++d)a.d[b+d]=c[d],Ha(a.ba,c[d]);else Ea(a.d,c);N.Ac()}h.clear();t=!1}};p.prototype.Vt=function(a){if(a){var b=!1,c,d,e,f=this.b.ji(),g=f.type,f=f.Lk;c=a.R();d=this.b.Va().bb.Vc;var l;c.V?(this.Ea(),I.Jg(this.Ia),I.offset(0,0),this.b.mn(this.q,a,I,T),l=T):l=d?this.b.Zx()&&!c.ba.length&&c.d.length?c.d:c.ba:c.d;N=a;t=g!==a&&!f;c=0;for(d=l.length;c<d;c++)if(e=l[c],this.b.Cf(this,e)){b=!0;if(f)break;g!==a&&h.add(e)}A(T);a=b}else a=!1;return a};p.prototype.Pt=function(a){return this.Hg.length?
mb(this.Hg,a):mb(this.Ha.name,a)};p.prototype.np=function(a){return mb(this.Pp,a)};p.prototype.hu=function(){return!0};p.prototype.Eg=function(){return!0};e.j=new p;a.prototype.dv=function(a,b,c){if(a&&b&&(b=this.b.ek(a,b,this.ki(c,!0),this.ki(c,!1)))){"undefined"!==typeof b.n&&(b.n=this.n,b.Z());this.b.Sc++;var d,e,f;this.b.trigger(Object.getPrototypeOf(a.qa).j.Dg,b);if(b.Qb)for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],this.b.trigger(Object.getPrototypeOf(f.type.qa).j.Dg,f);this.b.Sc--;d=
this.b.nx();c=!1;if(ja(d.N.Spawn_LastExec)||d.N.Spawn_LastExec<this.b.Tf)c=!0,d.N.Spawn_LastExec=this.b.Tf;if(a!=this.type&&(a=a.R(),a.V=!1,c?(A(a.d),a.d[0]=b):a.d.push(b),b.Qb))for(d=0,e=b.siblings.length;d<e;d++)f=b.siblings[d],a=f.type.R(),a.V=!1,c?(A(a.d),a.d[0]=f):a.d.push(f)}};a.prototype.Ru=function(a,b){this.Hg=a;this.Zp=b;this.Bi||(this.b.Kh(this),this.Bi=!0);this.Jk||this.iq()};a.prototype.Su=function(a){this.Yj=a;this.Bi||(this.b.Kh(this),this.Bi=!0);this.Jk||this.jq()};e.A=new a;c.prototype.nt=
function(a){a.Ga(this.J)};c.prototype.ot=function(a){a.$b(this.Ha.name)};e.L=new c})();function Cc(d){this.b=d}
(function(){function d(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<k&&a.push(b[c]);A(b)}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<k&&a.push(b[d]),delete b[d])}function m(b,c,e){var f=b.gc;e=e.replace(/\s\s*$/,"");c>=f.length&&f.push(d(a,Object));c=f[c];c.text=e;c.width=b.bo(e);b.Me=pa(b.Me,c.width)}function q(){}var n=Cc.prototype;n.M=function(){};n.ga=function(a){this.qa=a;this.b=a.b};var r=n.ga.prototype;r.M=function(){this.H||
(this.G=new Image,this.b.nm(this.G,this.tj),this.I=null)};r.uh=function(){this.H||(this.I=null)};r.$i=function(){if(!this.H&&this.d.length){this.I||(this.I=this.b.B.tf(this.G,!1,this.b.Fa,this.yg));var a,b;a=0;for(b=this.d.length;a<b;a++)this.d[a].I=this.I}};r.vj=function(){this.H||this.d.length||!this.I||(this.b.B.deleteTexture(this.I),this.I=null)};r.cj=function(a){a.drawImage(this.G,0,0)};n.aa=function(a){this.type=a;this.b=a.b};r=n.aa.prototype;r.Ce=function(){p(a,this.gc,!0);p(c,this.$j,!1);
p(e,this.ak,!1);$a(this.df)};r.M=function(){this.G=this.type.G;this.Zj=this.C[0];this.bf=this.C[1];this.characterSet=this.C[2];this.text=this.C[3];this.cf=this.C[4];this.visible=0===this.C[5];this.te=this.C[6]/2;this.Oe=this.C[7]/2;this.Cj=0===this.C[9];this.Ig=this.C[10];this.lineHeight=this.C[11];this.Zd=this.Me=0;this.ic?(A(this.gc),$a(this.$j),$a(this.ak),$a(this.df)):(this.gc=[],this.$j={},this.ak={},this.df={});this.Xc=!0;this.ig=this.width;this.b.B&&(this.type.I||(this.type.I=this.b.B.tf(this.type.G,
!1,this.b.Fa,this.type.yg)),this.I=this.type.I);this.gv()};r.fb=function(){var a={t:this.text,csc:this.cf,csp:this.Ig,lh:this.lineHeight,tw:this.Me,th:this.Zd,lrt:this.hg,ha:this.te,va:this.Oe,cw:{}},b;for(b in this.df)a.cw[b]=this.df[b];return a};r.yb=function(a){this.text=a.t;this.cf=a.csc;this.Ig=a.csp;this.lineHeight=a.lh;this.Me=a.tw;this.Zd=a.th;this.hg=a.lrt;a.hasOwnProperty("ha")&&(this.te=a.ha);a.hasOwnProperty("va")&&(this.Oe=a.va);for(var b in a.cw)this.df[b]=a.cw[b];this.Xc=!0;this.ig=
this.width};var k=1E3,a=[],c=[],e=[];r.gv=function(){for(var a=this.G,b=a.width,f=a.height,a=this.Zj,k=this.bf,n=a/b,h=k/f,m=this.characterSet,b=Math.floor(b/a),f=Math.floor(f/k),p=0;p<m.length&&!(p>=b*f);p++){var q=p%b,r=Math.floor(p/b),F=m.charAt(p);if(this.b.B){var K=this.ak,v=q*n,C=r*h,q=(q+1)*n,r=(r+1)*h;void 0===K[F]&&(K[F]=d(e,xa));K[F].left=v;K[F].top=C;K[F].right=q;K[F].bottom=r}else K=this.$j,q=q*a,r=r*k,v=a,C=k,void 0===K[F]&&(K[F]=d(c,Object)),K[F].x=q,K[F].y=r,K[F].ht=v,K[F].Cq=C}};var b=
[];n.zm=function(a){A(b);for(var c="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)c.length&&(b.push(c),c=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do c+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));b.push(c);c=""}else e<a.length&&(c+=d,e++);c.length&&b.push(c)};n.Am=function(b){var c=b.text,e=b.gc;if(c&&c.length){var f=b.width;if(2>=f)p(a,e,!0);else{var k=b.cf,h=b.Ig;if(c.length*(b.Zj*k+h)-h<=f&&-1===c.indexOf("\n")&&(h=b.bo(c),h<=f)){p(a,e,!0);e.push(d(a,
Object));e[0].text=c;e[0].width=h;b.Me=h;b.Zd=b.bf*k+b.lineHeight;return}this.Bm(b);b.Zd=e.length*(b.bf*k+b.lineHeight)}}else p(a,e,!0)};n.Bm=function(c){var d=c.Cj,e=c.text,f=c.gc,n=c.width;d&&(this.zm(e),e=b);var h="",p,q,r,w=0,F=!1;for(r=0;r<e.length;r++)"\n"===e[r]?(!0===F?F=!1:(m(c,w,h),w++),h=""):(F=!1,p=h,h+=e[r],q=c.bo(h.replace(/\s\s*$/,"")),q>n&&(""===p?(m(c,w,h),h="",F=!0):(m(c,w,p),h=e[r]),w++,d||" "!==h||(h="")));h.replace(/\s\s*$/,"").length&&(m(c,w,h),w++);for(r=w;r<f.length;r++)a.length<
k&&a.push(f[r]);f.length=w};r.bo=function(a){for(var b=this.Ig,c=a.length,d=0,e=0;e<c;e++)d+=this.ln(a.charAt(e))*this.cf+b;return d-(0<d?b:0)};r.ln=function(a){var b=this.df;return void 0!==b[a]?b[a]:this.Zj};r.qs=function(){if(this.Xc||this.width!==this.ig)this.Zd=this.Me=0,this.type.qa.Am(this),this.Xc=!1,this.ig=this.width};r.Cc=function(a){var b=this.G;if(""!==this.text&&null!=b&&(this.qs(),!(this.height<this.bf*this.cf+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.rc&&
(b=Math.round(b),c=Math.round(c));var d=this.q.ra,e=this.q.ta,f=this.q.Da,k=this.q.Ca;a.save();a.translate(b,c);a.rotate(this.n);for(var n=this.n,m=this.te,p=this.cf,q=this.bf*p,r=this.lineHeight,v=this.Ig,C=this.gc,H,S=-(this.ec*this.width),O=-(this.fc*this.height),O=O+this.Oe*pa(0,this.height-this.Zd),P,M,E,V=0;V<C.length;V++){var J=C[V].text;H=m*pa(0,this.width-C[V].width);P=S+H;O+=r;if(0===n&&c+O+q<e)O+=q;else{for(var z=0;z<J.length;z++){M=J.charAt(z);H=this.ln(M);var y=this.$j[M];if(0===n&&b+
P+H*p+v<d)P+=H*p+v;else{if(P+H*p>this.width+1E-5)break;void 0!==y&&(M=P,E=O,0===n&&1===p&&(M=Math.round(M),E=Math.round(E)),a.drawImage(this.G,y.x,y.y,y.ht,y.Cq,M,E,y.ht*p,y.Cq*p));P+=H*p+v;if(0===n&&b+P>f)break}}O+=q;if(0===n&&(O+q+r>this.height||c+O>k))break}}a.restore()}};var f=new ya;r.Mb=function(a){a.jc(this.I);a.He(this.opacity);if(this.text&&(this.qs(),!(this.height<this.bf*this.cf+this.lineHeight))){this.Ea();var b=this.Ib,c=0,d=0;this.b.rc&&(c=Math.round(this.x)-this.x,d=Math.round(this.y)-
this.y);var e=this.q.ra,h=this.q.ta,k=this.q.Da,n=this.q.Ca,m=this.n,p=this.te,q=this.Oe,r=this.cf,v=this.bf*r,C=this.lineHeight,H=this.Ig,S=this.gc,O=this.Zd,P,M,E;0!==m&&(M=Math.cos(m),E=Math.sin(m));for(var c=b.La+c,b=b.Ma+d,V,q=q*pa(0,this.height-O),J,z,O=0;O<S.length;O++)if(d=S[O].text,V=P=p*pa(0,this.width-S[O].width),q+=C,0===m&&b+q+v<h)q+=v;else{for(var y=0;y<d.length;y++){var x=d.charAt(y);P=this.ln(x);x=this.ak[x];if(0===m&&c+V+P*r+H<e)V+=P*r+H;else{if(V+P*r>this.width+1E-5)break;if(void 0!==
x){var Q=this.Zj*r,D=this.bf*r;J=V;z=q;0===m&&1===r&&(J=Math.round(J),z=Math.round(z));f.La=J;f.Ma=z;f.gb=J+Q;f.hb=z;f.Ya=J;f.Za=z+D;f.$a=J+Q;f.ab=z+D;0!==m&&(J=f,z=M,Q=E,D=void 0,D=J.La*z-J.Ma*Q,J.Ma=J.Ma*z+J.La*Q,J.La=D,D=J.gb*z-J.hb*Q,J.hb=J.hb*z+J.gb*Q,J.gb=D,D=J.Ya*z-J.Za*Q,J.Za=J.Za*z+J.Ya*Q,J.Ya=D,D=J.$a*z-J.ab*Q,J.ab=J.ab*z+J.$a*Q,J.$a=D);f.offset(c,b);a.zd(f.La,f.Ma,f.gb,f.hb,f.$a,f.ab,f.Ya,f.Za,x)}V+=P*r+H;if(0===m&&c+V>k)break}}q+=v;if(0===m&&(q+v+C>this.height||b+q>n))break}}};n.j=new function(){};
q.prototype.ym=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Xc=!0,this.b.ea=!0)};r.If=function(a,b){var c=parseInt(b,10);this.df[a]!==c&&(this.df[a]=c,this.Xc=!0,this.b.ea=!0)};n.A=new q;n.L=new function(){}})();function Dc(d){this.b=d}
(function(){function d(){return a.length?a.pop():{}}function p(c){var d,b;d=0;for(b=c.length;d<b;d++)a.push(c[d]);A(c)}function m(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}var n=Dc.prototype;n.M=function(){n.A.Dp=function(a){this.width!==a&&(this.width=a,this.Xc=!0,this.Z())}};n.ga=function(a){this.qa=a;this.b=a.b};var r=n.ga.prototype;r.M=function(){};r.uh=function(){if(!this.H){var a,d,b;a=0;for(d=this.d.length;a<d;a++)b=this.d[a],b.Td=null,b.qg=null,
b.Hc=null}};n.aa=function(a){this.type=a;this.b=a.b;this.ic?A(this.gc):this.gc=[];this.Xc=!0};r=n.aa.prototype;r.M=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.te=this.C[4];this.Oe=this.C[5];this.Cj=0===this.C[7];this.ig=this.Wk=this.width;this.Vk=this.height;this.Tn=this.C[8];this.yk=this.Qg="";this.Zd=this.Me=this.ej=0;this.Fy();this.Hc=this.qg=this.Td=null;this.Ir=!1;this.hg=this.b.$d;this.ic?this.zf.set(0,0,1,1):this.zf=new xa(0,0,1,1);
this.b.B&&this.b.Kh(this)};r.Fy=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.ej=parseInt(a[d].substr(0,a[d].length-2));this.Ao=Math.ceil(this.ej/72*96)+4;0<d&&(this.yk=a[d-1]);this.Qg=a[d+1];for(d+=2;d<a.length;d++)this.Qg+=" "+a[d];break}};r.fb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.te,va:this.Oe,wr:this.Cj,lho:this.Tn,fn:this.Qg,fs:this.yk,ps:this.ej,pxh:this.Ao,tw:this.Me,th:this.Zd,lrt:this.hg}};r.yb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.te=a.ha;this.Oe=a.va;this.Cj=a.wr;this.Tn=a.lho;this.Qg=a.fn;this.yk=a.fs;this.ej=a.ps;this.Ao=a.pxh;this.Me=a.tw;this.Zd=a.th;this.hg=a.lrt;this.Xc=!0;this.ig=this.Wk=this.width;this.Vk=this.height};r.Na=function(){if(this.b.B&&this.Hc&&300<=this.b.$d-this.hg){var a=this.q;this.Ea();var d=this.Ia;if(d.right<a.ra||d.bottom<a.ta||d.left>a.Da||d.top>a.Ca)this.b.B.deleteTexture(this.Hc),this.Td=this.qg=this.Hc=null}};r.Ce=function(){this.Td=this.qg=null;this.b.B&&
this.Hc&&this.b.B.deleteTexture(this.Hc);this.Hc=null};r.If=function(){this.font=this.yk+" "+this.ej.toString()+"pt "+this.Qg;this.Xc=!0;this.b.ea=!0};r.Cc=function(a,d){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=d?1:this.opacity;var b=1;d&&(b=Math.abs(this.q.pc()),a.save(),a.scale(b,b));if(this.Xc||this.width!==this.ig)this.type.qa.Am(this.text,this.gc,a,this.width,this.Cj),this.Xc=!1,this.ig=this.width;this.Ea();var b=d?0:this.Ib.La,f=d?0:this.Ib.Ma;this.b.rc&&(b=
b+.5|0,f=f+.5|0);0===this.n||d||(a.save(),a.translate(b,f),a.rotate(this.n),f=b=0);var k=f+this.height,g=this.Ao,g=g+this.Tn,n,m;1===this.Oe?f+=Math.max(this.height/2-this.gc.length*g/2,0):2===this.Oe&&(f+=Math.max(this.height-this.gc.length*g-2,0));for(m=0;m<this.gc.length&&!(n=b,1===this.te?n=b+(this.width-this.gc[m].width)/2:2===this.te&&(n=b+(this.width-this.gc[m].width)),a.fillText(this.gc[m].text,n,f),f+=g,f>=k-g);m++);(0!==this.n||d)&&a.restore();this.hg=this.b.$d};r.Mb=function(a){if(!(1>
this.width||1>this.height)){var d=this.Xc||this.Ir;this.Ir=!1;var b=this.q.pc(),f=this.q.tb(),k=this.zf,g=b*this.width,n=b*this.height,m=Math.ceil(g),p=Math.ceil(n),h=Math.abs(m),q=Math.abs(p),r=this.b.P/2,I=this.b.O/2;this.qg||(this.Td=document.createElement("canvas"),this.Td.width=h,this.Td.height=q,this.Wk=h,this.Vk=q,d=!0,this.qg=this.Td.getContext("2d"));if(h!==this.Wk||q!==this.Vk)this.Td.width=h,this.Td.height=q,this.Hc&&(a.deleteTexture(this.Hc),this.Hc=null),d=!0;d&&(this.qg.clearRect(0,
0,h,q),this.Cc(this.qg,!0),this.Hc||(this.Hc=a.Mc(h,q,this.b.Fa,this.b.pf)),a.Iz(this.Td,this.Hc,this.b.pf));this.Wk=h;this.Vk=q;a.jc(this.Hc);a.He(this.opacity);a.jd();a.translate(-r,-I);a.Yc();var w=this.Ib,d=this.q.Ra(w.La,w.Ma,!0,!0),h=this.q.Ra(w.La,w.Ma,!1,!0),q=this.q.Ra(w.gb,w.hb,!0,!0),r=this.q.Ra(w.gb,w.hb,!1,!0),I=this.q.Ra(w.$a,w.ab,!0,!0),F=this.q.Ra(w.$a,w.ab,!1,!0),K=this.q.Ra(w.Ya,w.Za,!0,!0),w=this.q.Ra(w.Ya,w.Za,!1,!0);if(this.b.rc||0===this.n&&0===f)var v=(d+.5|0)-d,C=(h+.5|0)-
h,d=d+v,h=h+C,q=q+v,r=r+C,I=I+v,F=F+C,K=K+v,w=w+C;0===this.n&&0===f?(q=d+m,r=h,I=q,F=h+p,K=d,w=F,k.right=1,k.bottom=1):(k.right=g/m,k.bottom=n/p);a.zd(d,h,q,r,I,F,K,w,k);a.jd();a.scale(b,b);a.Hl(-this.q.tb());a.translate((this.q.ra+this.q.Da)/-2,(this.q.ta+this.q.Ca)/-2);a.Yc();this.hg=this.b.$d}};var k=[];n.zm=function(a){A(k);for(var d="",b,f=0;f<a.length;)if(b=a.charAt(f),"\n"===b)d.length&&(k.push(d),d=""),k.push("\n"),++f;else if(" "===b||"\t"===b||"-"===b){do d+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));k.push(d);d=""}else f<a.length&&(d+=b,f++);d.length&&k.push(d)};var a=[];n.Am=function(a,e,b,f,k){if(a&&a.length)if(2>=f)p(e);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=b.measureText(a).width;if(g<=f){p(e);e.push(d());e[0].text=a;e[0].width=g;return}}this.Bm(a,e,b,f,k)}else p(e)};n.Bm=function(c,e,b,f,l){l&&(this.zm(c),c=k);var g="",n,p,q,h=0;for(q=0;q<c.length;q++)"\n"===c[q]?(h>=e.length&&e.push(d()),g=m(g),p=e[h],p.text=g,p.width=b.measureText(g).width,
h++,g=""):(n=g,g+=c[q],p=b.measureText(g).width,p>=f&&(h>=e.length&&e.push(d()),n=m(n),p=e[h],p.text=n,p.width=b.measureText(n).width,h++,g=c[q],l||" "!==g||(g="")));g.length&&(h>=e.length&&e.push(d()),g=m(g),p=e[h],p.text=g,p.width=b.measureText(g).width,h++);for(q=h;q<e.length;q++)a.push(e[q]);e.length=h};n.j=new function(){};q.prototype.ym=function(a){ka(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Xc=!0,this.b.ea=!0)};n.A=new q;n.L=new function(){}})();
function Ec(d){this.b=d}
(function(){var d=Ec.prototype;d.ga=function(d){this.qa=d;this.b=d.b};var p=d.ga.prototype;p.M=function(){this.H||(this.G=new Image,this.G.Sm=this.$l,this.b.nm(this.G,this.tj),this.I=this.pattern=null)};p.uh=function(){this.H||(this.I=null)};p.$i=function(){if(!this.H&&this.d.length){this.I||(this.I=this.b.B.tf(this.G,!0,this.b.Fa,this.yg));var d,p;d=0;for(p=this.d.length;d<p;d++)this.d[d].I=this.I}};p.Ni=function(){this.H||this.I||!this.b.B||(this.I=this.b.B.tf(this.G,!0,this.b.Fa,this.yg))};p.vj=
function(){this.H||this.d.length||!this.I||(this.b.B.deleteTexture(this.I),this.I=null)};p.cj=function(d){d.drawImage(this.G,0,0)};d.aa=function(d){this.type=d;this.b=d.b};p=d.aa.prototype;p.M=function(){this.visible=0===this.C[0];this.zf=new xa(0,0,0,0);this.Gq=!1;this.G=this.type.G;this.b.B?(this.type.Ni(),this.I=this.type.I):(this.type.pattern||(this.type.pattern=this.b.Pa.createPattern(this.type.G,"repeat")),this.pattern=this.type.pattern)};p.Hd=function(){this.Gq=!1;this.G=this.type.G};p.Ce=
function(){this.b.B&&this.Gq&&this.I&&(this.b.B.deleteTexture(this.I),this.I=null)};p.Cc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var p=this.x,n=this.y;this.b.rc&&(p=Math.round(p),n=Math.round(n));var r=-(this.ec*this.width),k=-(this.fc*this.height),a=r%this.G.width,c=k%this.G.height;0>a&&(a+=this.G.width);0>c&&(c+=this.G.height);d.translate(p,n);d.rotate(this.n);d.translate(a,c);d.fillRect(r-a,k-c,this.width,this.height);d.restore()};p.Of=function(d){this.Mb(d)};p.Mb=
function(d){d.jc(this.I);d.He(this.opacity);var p=this.zf;p.right=this.width/this.G.width;p.bottom=this.height/this.G.height;var n=this.Ib;if(this.b.rc){var r=Math.round(this.x)-this.x,k=Math.round(this.y)-this.y;d.zd(n.La+r,n.Ma+k,n.gb+r,n.hb+k,n.$a+r,n.ab+k,n.Ya+r,n.Za+k,p)}else d.zd(n.La,n.Ma,n.gb,n.hb,n.$a,n.ab,n.Ya,n.Za,p)};d.j=new function(){};d.A=new function(){};d.L=new function(){}})();function Z(d){this.b=d}
(function(){function d(a){e=a.x;b=a.y;f=a.z}function p(a,b,c,d){var e;e=l.length?l.pop():new m;e.init(a,b,c,d);return e}function m(){this.pj=this.id=this.kg=this.jg=this.y=this.x=this.Wl=this.Vl=this.Sn=this.time=this.To=0;this.uj=this.hm=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function n(){}function r(){}var k=Z.prototype;k.ga=function(a){this.qa=a;
this.b=a.b};k.ga.prototype.M=function(){};k.aa=function(a){this.type=a;this.b=a.b;this.touches=[];this.co=!1};var a=k.aa.prototype,c={left:0,top:0};a.ii=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 e=0,b=0,f=0,l=[];m.prototype.init=function(a,b,c,d){var e=ab();this.To=this.Sn=this.time=e;this.Vl=a;this.Wl=b;this.x=a;this.y=b;this.jg=a;this.kg=b;this.pressure=this.height=this.width=0;this.id=c;this.pj=d;this.uj=this.hm=!1};m.prototype.update=
function(a,b,c,d,e,f){this.Sn=this.time;this.time=a;this.jg=this.x;this.kg=this.y;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.uj&&15<=Ua(this.Vl,this.Wl,this.x,this.y)&&(this.uj=!0)};m.prototype.qy=function(a,b){!this.hm&&500<=ab()-this.To&&!this.uj&&15>Ua(this.Vl,this.Wl,this.x,this.y)&&(this.hm=!0,a.ae=this.pj,a.Mh=this.id,a.Ug=b,a.b.trigger(Z.prototype.j.qu,a),a.le=this.x,a.me=this.y,a.b.trigger(Z.prototype.j.ru,a),a.Ug=0)};var g=-1E3,u=-1E3,B=-1E4;m.prototype.Cr=function(a,
b){if(!this.hm){var c=ab();333>=c-this.To&&!this.uj&&15>Ua(this.Vl,this.Wl,this.x,this.y)&&(a.ae=this.pj,a.Mh=this.id,a.Ug=b,666>=c-B&&25>Ua(g,u,this.x,this.y)?(a.b.trigger(Z.prototype.j.mu,a),a.le=this.x,a.me=this.y,a.b.trigger(Z.prototype.j.nu,a),u=g=-1E3,B=-1E4):(a.b.trigger(Z.prototype.j.Cu,a),a.le=this.x,a.me=this.y,a.b.trigger(Z.prototype.j.Du,a),g=this.x,u=this.y,B=c),a.Ug=0)}};a.M=function(){this.fy=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Ug=this.Mh=this.ae=
this.me=this.le=this.Lp=this.Kp=this.Jp=this.vv=this.uv=this.tv=this.ol=this.nl=this.ml=0;this.Gz=0!==this.C[0];var a=0<this.b.oc?document:this.b.canvas,b=document;this.b.Pb?b=a=window.Canvas:this.b.Rc&&(b=a=window);var c=this;"undefined"!==typeof PointerEvent?(a.addEventListener("pointerdown",function(a){c.Sr(a)},!1),a.addEventListener("pointermove",function(a){c.Rr(a)},!1),b.addEventListener("pointerup",function(a){c.ll(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.ll(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.Sr(a)},!1),a.addEventListener("MSPointerMove",function(a){c.Rr(a)},!1),b.addEventListener("MSPointerUp",
function(a){c.ll(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.ll(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.Vr(a)},!1),a.addEventListener("touchmove",function(a){c.Ur(a)},!1),b.addEventListener("touchend",function(a){c.oo(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.oo(a,!0)},
!1));if(this.fy){var e=function(a){a=a.reading;c.Jp=a.accelerationX;c.Kp=a.accelerationY;c.Lp=a.accelerationZ},f=function(a){a=a.reading;c.ml=a.yawDegrees;c.nl=a.pitchDegrees;c.ol=a.rollDegrees},g=Windows.Devices.Sensors.Accelerometer.getDefault();g&&(g.reportInterval=Math.max(g.minimumReportInterval,16),g.addEventListener("readingchanged",e));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",f));document.addEventListener("visibilitychange",
function(){document.hidden||document.msHidden?(g&&g.removeEventListener("readingchanged",e),k&&k.removeEventListener("readingchanged",f)):(g&&g.addEventListener("readingchanged",e),k&&k.addEventListener("readingchanged",f))},!1)}else window.addEventListener("deviceorientation",function(a){c.ml=a.alpha||0;c.nl=a.beta||0;c.ol=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.tv=a.accelerationIncludingGravity.x||0,c.uv=a.accelerationIncludingGravity.y||
0,c.vv=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.Jp=a.acceleration.x||0,c.Kp=a.acceleration.y||0,c.Lp=a.acceleration.z||0)},!1);this.Gz&&!this.b.lb&&(jQuery(document).mousemove(function(a){c.zy(a)}),jQuery(document).mousedown(function(a){c.yy(a)}),jQuery(document).mouseup(function(a){c.Ay(a)}));!this.b.fh&&this.b.Dc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(d,null,{frequency:40});this.b.zz(this)};a.Rr=function(a){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&a.preventDefault();var b=this.ii(a.pointerId),d=ab();if(0<=b){var e=this.b.lb?c:jQuery(this.b.canvas).offset(),b=this.touches[b];2>d-b.time||b.update(d,a.pageX-e.left,a.pageY-e.top,a.width||0,a.height||0,a.pressure||0)}}};a.Sr=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.lb?c:jQuery(this.b.canvas).offset(),d=a.pageX-b.left,b=a.pageY-b.top;ab();
this.ae=this.touches.length;this.Mh=a.pointerId;this.touches.push(p(d,b,a.pointerId,this.ae));this.b.xe=!0;this.b.trigger(Z.prototype.j.wp,this);this.b.trigger(Z.prototype.j.zp,this);this.le=d;this.me=b;this.b.trigger(Z.prototype.j.vm,this);this.b.xe=!1}};a.ll=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&nb(a)&&a.preventDefault();var c=this.ii(a.pointerId);this.ae=0<=c?this.touches[c].pj:-1;this.Mh=0<=c?this.touches[c].id:-1;this.b.xe=!0;this.b.trigger(Z.prototype.j.vp,
this);this.b.trigger(Z.prototype.j.um,this);0<=c&&(b||this.touches[c].Cr(this,c),100>l.length&&l.push(this.touches[c]),this.touches.splice(c,1));this.b.xe=!1}};a.Ur=function(a){a.preventDefault&&a.preventDefault();var b=ab(),d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.ii(f.identifier),0<=g){var k=this.b.lb?c:jQuery(this.b.canvas).offset();g=this.touches[g];2>b-g.time||g.update(b,f.pageX-k.left,f.pageY-k.top,2*(f.RA||f.$A||f.JA||f.MA||0),2*(f.SA||f.aB||f.KA||f.NA||
0),f.CA||f.ZA||f.IA||f.LA||0)}};a.Vr=function(a){a.preventDefault&&nb(a)&&a.preventDefault();var b=this.b.lb?c:jQuery(this.b.canvas).offset();ab();this.b.xe=!0;var d,e,f,g;d=0;for(e=a.changedTouches.length;d<e;d++)if(f=a.changedTouches[d],g=this.ii(f.identifier),-1===g){g=f.pageX-b.left;var k=f.pageY-b.top;this.ae=this.touches.length;this.Mh=f.identifier;this.touches.push(p(g,k,f.identifier,this.ae));this.b.trigger(Z.prototype.j.wp,this);this.b.trigger(Z.prototype.j.zp,this);this.le=g;this.me=k;this.b.trigger(Z.prototype.j.vm,
this)}this.b.xe=!1};a.oo=function(a,b){a.preventDefault&&nb(a)&&a.preventDefault();this.b.xe=!0;var c,d,e;c=0;for(d=a.changedTouches.length;c<d;c++)e=a.changedTouches[c],e=this.ii(e.identifier),0<=e&&(this.ae=this.touches[e].pj,this.Mh=this.touches[e].id,this.b.trigger(Z.prototype.j.vp,this),this.b.trigger(Z.prototype.j.um,this),b||this.touches[e].Cr(this,e),100>l.length&&l.push(this.touches[e]),this.touches.splice(e,1));this.b.xe=!1};a.If=function(){return this.b.Dc&&0===this.ml&&0!==f?90*f:this.ml};
a.Vm=function(){return this.b.Dc&&0===this.nl&&0!==b?90*b:this.nl};a.Xq=function(){return this.b.Dc&&0===this.ol&&0!==e?90*e:this.ol};a.yy=function(a){q(a)||(this.Vr({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.co=!0)};a.zy=function(a){this.co&&!q(a)&&this.Ur({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.Ay=function(a){a.preventDefault&&this.b.Dq&&!this.b.pf&&a.preventDefault();this.b.Dq=!0;q(a)||(this.oo({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),
this.co=!1)};a.em=function(){var a,b,c,d=ab();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.Sn=d),c.qy(this,a)};n.prototype.zp=function(){return!0};n.prototype.um=function(){return!0};n.prototype.Tt=function(){return this.touches.length};n.prototype.vm=function(a){return a?this.b.Yl(a,this.le,this.me):!1};var N=[];n.prototype.Yt=function(a){if(!a)return!1;var b=a.R(),c=b.Yb(),d,e,f,g,k,l;f=0;for(g=c.length;f<g;f++){var n=c[f];n.Ea();k=0;for(l=this.touches.length;k<l;k++)if(e=
this.touches[k],d=n.q.Jb(e.x,e.y,!0),e=n.q.Jb(e.x,e.y,!1),n.Wb(d,e)){N.push(n);break}}return N.length?(b.V=!1,Ea(b.d,N),a.Ac(),A(N),!0):!1};n.prototype.wp=function(a){a=Math.floor(a);return a===this.ae};n.prototype.vp=function(a){a=Math.floor(a);return a===this.ae};n.prototype.qu=function(){return!0};n.prototype.Cu=function(){return!0};n.prototype.mu=function(){return!0};n.prototype.ru=function(a){return a?this.b.Yl(a,this.le,this.me):!1};n.prototype.Du=function(a){return a?this.b.Yl(a,this.le,this.me):
!1};n.prototype.nu=function(a){return a?this.b.Yl(a,this.le,this.me):!1};k.j=new n;k.A=new function(){};r.prototype.Ij=function(a,b){var c=this.Ug;if(0>c||c>=this.touches.length)a.K(0);else{var d,e,f,g,k;ja(b)?(d=this.b.li(0),e=d.scale,f=d.Fd,g=d.gd,k=d.n,d.scale=1,d.Fd=1,d.gd=1,d.n=0,a.K(d.Jb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Fd=f,d.gd=g,d.n=k):(d=ka(b)?this.b.li(b):this.b.rn(b))?a.K(d.Jb(this.touches[c].x,this.touches[c].y,!0)):a.K(0)}};r.prototype.Fp=function(a,b){var c=this.Ug;
if(0>c||c>=this.touches.length)a.K(0);else{var d,e,f,g,k;ja(b)?(d=this.b.li(0),e=d.scale,f=d.Fd,g=d.hd,k=d.n,d.scale=1,d.Fd=1,d.hd=1,d.n=0,a.K(d.Jb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Fd=f,d.hd=g,d.n=k):(d=ka(b)?this.b.li(b):this.b.rn(b))?a.K(d.Jb(this.touches[c].x,this.touches[c].y,!1)):a.K(0)}};k.L=new r})();function Fc(d){this.b=d}
(function(){function d(){}function p(){}var m=Fc.prototype;m.ga=function(d){this.behavior=d;this.b=d.b};m.ga.prototype.M=function(){};m.aa=function(d,m){this.type=d;this.behavior=d.behavior;this.k=m;this.b=d.b};var q=m.aa.prototype;q.M=function(){var d=this.C[0];this.Kc=this.C[1];this.lf=this.C[2];this.Fv=0!==this.C[3];this.Lo=0!==this.C[4];this.jb=Math.cos(this.k.n)*d;this.Ta=Math.sin(this.k.n)*d;this.jg=this.k.x;this.kg=this.k.y;this.Tc=this.k.n;this.gm=0;this.enabled=0!==this.C[5]};q.fb=function(){return{acc:this.Kc,
g:this.lf,dx:this.jb,dy:this.Ta,lx:this.jg,ly:this.kg,lka:this.Tc,t:this.gm,e:this.enabled}};q.yb=function(d){this.Kc=d.acc;this.lf=d.g;this.jb=d.dx;this.Ta=d.dy;this.jg=d.lx;this.kg=d.ly;this.Tc=d.lka;this.gm=d.t;this.enabled=d.e};q.Na=function(){if(this.enabled){var d=this.b.Uf(this.k),m,k;this.k.n!==this.Tc&&(this.Lo&&(m=Ua(0,0,this.jb,this.Ta),this.jb=Math.cos(this.k.n)*m,this.Ta=Math.sin(this.k.n)*m),this.Tc=this.k.n);0!==this.Kc&&(m=Ua(0,0,this.jb,this.Ta),k=0===this.jb&&0===this.Ta?this.k.n:
Pa(0,0,this.jb,this.Ta),m+=this.Kc*d,0>m&&(m=0),this.jb=Math.cos(k)*m,this.Ta=Math.sin(k)*m);0!==this.lf&&(this.Ta+=this.lf*d);this.jg=this.k.x;this.kg=this.k.y;if(0!==this.jb||0!==this.Ta)if(this.k.x+=this.jb*d,this.k.y+=this.Ta*d,this.gm+=Ua(0,0,this.jb*d,this.Ta*d),this.Lo&&(this.k.n=Pa(0,0,this.jb,this.Ta),this.k.Z(),this.Tc=this.k.n),this.k.Z(),this.Fv&&(m=this.b.xg(this.k)))this.b.Yy(this.k,m),m=Ua(0,0,this.jb,this.Ta),k=this.b.Iv(this.k,this.jg,this.kg),this.jb=Math.cos(k)*m,this.Ta=Math.sin(k)*
m,this.k.x+=this.jb*d,this.k.y+=this.Ta*d,this.k.Z(),this.Lo&&(this.Tc=this.k.n=k,this.k.Z()),this.b.Uy(this.k,this.jb/m,this.Ta/m,Math.max(2.5*m*d,30))||this.b.Vy(this.k)}};m.j=new function(){};d.prototype.Bp=function(d){var m=Pa(0,0,this.jb,this.Ta);this.jb=Math.cos(m)*d;this.Ta=Math.sin(m)*d};d.prototype.Qu=function(d){d=G(d);var m=Ua(0,0,this.jb,this.Ta);this.jb=Math.cos(d)*m;this.Ta=Math.sin(d)*m};d.prototype.xm=function(d){this.enabled=1===d};m.A=new d;p.prototype.lt=function(d){d.K(Ja(Pa(0,
0,this.jb,this.Ta)))};m.L=new p})();function Gc(d){this.b=d}
(function(){function d(){}function p(){}var m=Gc.prototype;m.ga=function(d){this.behavior=d;this.b=d.b};m.ga.prototype.M=function(){};m.aa=function(d,m){this.type=d;this.behavior=d.behavior;this.k=m;this.b=d.b};var q=m.aa.prototype;q.M=function(){this.Fm=1===this.C[0];this.Bs=!1;this.gi=this.C[1];this.Aj=this.C[2];this.qk=this.C[3];this.Tv=this.C[4];this.Jc=this.Fm?0:3;this.ic?this.ld.reset():this.ld=new eb;this.xf=this.k.opacity?this.k.opacity:1;this.Fm&&(0===this.gi?(this.Jc=1,0===this.Aj&&(this.Jc=
2)):(this.k.opacity=0,this.b.ea=!0))};q.fb=function(){return{fit:this.gi,wt:this.Aj,fot:this.qk,s:this.Jc,st:this.ld.W,mo:this.xf}};q.yb=function(d){this.gi=d.fit;this.Aj=d.wt;this.qk=d.fot;this.Jc=d.s;this.ld.reset();this.ld.W=d.st;this.xf=d.mo};q.Na=function(){this.ld.add(this.b.Uf(this.k));0===this.Jc&&(this.k.opacity=this.ld.W/this.gi*this.xf,this.b.ea=!0,this.k.opacity>=this.xf&&(this.k.opacity=this.xf,this.Jc=1,this.ld.reset(),this.b.trigger(Gc.prototype.j.ou,this.k)));1===this.Jc&&this.ld.W>=
this.Aj&&(this.Jc=2,this.ld.reset(),this.b.trigger(Gc.prototype.j.Fu,this.k));2===this.Jc&&0!==this.qk&&(this.k.opacity=this.xf-this.ld.W/this.qk*this.xf,this.b.ea=!0,0>this.k.opacity&&(this.k.opacity=0,this.Jc=3,this.ld.reset(),this.b.trigger(Gc.prototype.j.pu,this.k),1===this.Tv&&this.b.be(this.k)))};q.lw=function(){this.Jc=0;this.ld.reset();0===this.gi?(this.Jc=1,0===this.Aj&&(this.Jc=2)):(this.k.opacity=0,this.b.ea=!0)};d.prototype.pu=function(){return!0};d.prototype.ou=function(){return!0};d.prototype.Fu=
function(){return!0};m.j=new d;p.prototype.hv=function(){this.Fm||this.Bs||(this.xf=this.k.opacity?this.k.opacity:1,this.Bs=!0);3===this.Jc&&this.lw()};m.A=new p;m.L=new function(){}})();function Hc(d){this.b=d}
(function(){function d(){}function p(){}var m=Hc.prototype;m.ga=function(d){this.behavior=d;this.b=d.b};m.ga.prototype.M=function(){};m.aa=function(d,m){this.type=d;this.behavior=d.behavior;this.k=m;this.b=d.b};var q=m.aa.prototype;q.M=function(){this.cb=null;this.ul=-1;this.mode=this.Tc=this.am=this.qh=this.Ee=this.bj=0;var d=this;this.ic||(this.Hr=function(m){d.no(m)});this.b.Gm(this.Hr)};q.fb=function(){return{uid:this.cb?this.cb.uid:-1,pa:this.bj,pd:this.Ee,msa:this.qh,tsa:this.am,lka:this.Tc,
m:this.mode}};q.yb=function(d){this.ul=d.uid;this.bj=d.pa;this.Ee=d.pd;this.qh=d.msa;this.am=d.tsa;this.Tc=d.lka;this.mode=d.m};q.Hd=function(){-1===this.ul?this.cb=null:this.cb=this.b.mi(this.ul);this.ul=-1};q.no=function(d){this.cb==d&&(this.cb=null)};q.Ce=function(){this.cb=null;this.b.az(this.Hr)};q.Na=function(){};q.em=function(){if(this.cb){this.Tc!==this.k.n&&(this.qh=Ma(this.qh+(this.k.n-this.Tc)));var d=this.k.x,m=this.k.y;if(3===this.mode||4===this.mode){var k=Ua(this.k.x,this.k.y,this.cb.x,
this.cb.y);if(k>this.Ee||4===this.mode&&k<this.Ee)m=Pa(this.cb.x,this.cb.y,this.k.x,this.k.y),d=this.cb.x+Math.cos(m)*this.Ee,m=this.cb.y+Math.sin(m)*this.Ee}else d=this.cb.x+Math.cos(this.cb.n+this.bj)*this.Ee,m=this.cb.y+Math.sin(this.cb.n+this.bj)*this.Ee;this.Tc=k=Ma(this.qh+(this.cb.n-this.am));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.k.x===d&&this.k.y===m||(this.k.x=d,this.k.y=m,this.k.Z());0!==this.mode&&2!==this.mode||this.k.n===k||(this.k.n=k,this.k.Z())}};d.prototype.Wt=
function(){return!!this.cb};m.j=new d;p.prototype.Ju=function(d,m){if(d){var k=d.zq(this.k);k&&(this.cb=k,this.bj=Pa(k.x,k.y,this.k.x,this.k.y)-k.n,this.Ee=Ua(k.x,k.y,this.k.x,this.k.y),this.Tc=this.qh=this.k.n,this.am=k.n,this.mode=m)}};p.prototype.ov=function(){this.cb=null};m.A=new p;m.L=new function(){}})();function Nc(d){this.b=d}
(function(){function d(){}var p=Nc.prototype;p.ga=function(d){this.behavior=d;this.b=d.b};p.ga.prototype.M=function(){};p.aa=function(d,m){this.type=d;this.behavior=d.behavior;this.k=m;this.b=d.b};var m=p.aa.prototype;m.M=function(){this.speed=G(this.C[0]);this.Kc=G(this.C[1])};m.fb=function(){return{speed:this.speed,acc:this.Kc}};m.yb=function(d){this.speed=d.speed;this.Kc=d.acc};m.Na=function(){var d=this.b.Uf(this.k);0!==d&&(0!==this.Kc&&(this.speed+=this.Kc*d),0!==this.speed&&(this.k.n=Ma(this.k.n+
this.speed*d),this.k.Z()))};p.j=new function(){};d.prototype.Bp=function(d){this.speed=G(d)};p.A=new d;p.L=new function(){}})();function Pc(d){this.b=d}
(function(){function d(){}var p=Pc.prototype;p.ga=function(d){this.behavior=d;this.b=d.b};p.ga.prototype.M=function(){};p.aa=function(d,a){this.type=d;this.behavior=d.behavior;this.k=a;this.b=d.b;this.ub=0};var m=p.aa.prototype,q=2*Math.PI,n=Math.PI/2,r=3*Math.PI/2;m.M=function(){this.Oa=1===this.C[0];this.oh=this.C[1];this.ip=this.C[2];this.De=this.C[3];this.De+=Math.random()*this.C[4];0===this.De?this.ub=0:(this.ub=this.C[5]/this.De*q,this.ub+=Math.random()*this.C[6]/this.De*q);this.qc=this.C[7];
this.qc+=Math.random()*this.C[8];this.gj=this.ag=this.ka=0;5===this.oh&&(this.qc=G(this.qc));this.init()};m.fb=function(){return{i:this.ub,a:this.Oa,mv:this.oh,w:this.ip,p:this.De,mag:this.qc,iv:this.ka,iv2:this.ag,r:this.gj,lkv:this.Fc,lkv2:this.Gi}};m.yb=function(d){this.ub=d.i;this.Oa=d.a;this.oh=d.mv;this.ip=d.w;this.De=d.p;this.qc=d.mag;this.ka=d.iv;this.ag=d.iv2||0;this.gj=d.r;this.Fc=d.lkv;this.Gi=d.lkv2||0};m.init=function(){switch(this.oh){case 0:this.ka=this.k.x;break;case 1:this.ka=this.k.y;
break;case 2:this.ka=this.k.width;this.gj=this.k.height/this.k.width;break;case 3:this.ka=this.k.width;break;case 4:this.ka=this.k.height;break;case 5:this.ka=this.k.n;break;case 6:this.ka=this.k.opacity;break;case 7:this.ka=0;break;case 8:this.ka=this.k.x,this.ag=this.k.y}this.Fc=this.ka;this.Gi=this.ag};m.Re=function(d){d=d%q;switch(this.ip){case 0:return Math.sin(d);case 1:return d<=n?d/n:d<=r?1-2*(d-n)/Math.PI:(d-r)/n-1;case 2:return 2*d/q-1;case 3:return-2*d/q+1;case 4:return d<Math.PI?-1:1}return 0};
m.Na=function(){var d=this.b.Uf(this.k);this.Oa&&0!==d&&(0===this.De?this.ub=0:(this.ub+=d/this.De*q,this.ub=this.ub%q),this.Dz())};m.Dz=function(){switch(this.oh){case 0:this.k.x!==this.Fc&&(this.ka+=this.k.x-this.Fc);this.k.x=this.ka+this.Re(this.ub)*this.qc;this.Fc=this.k.x;break;case 1:this.k.y!==this.Fc&&(this.ka+=this.k.y-this.Fc);this.k.y=this.ka+this.Re(this.ub)*this.qc;this.Fc=this.k.y;break;case 2:this.k.width=this.ka+this.Re(this.ub)*this.qc;this.k.height=this.k.width*this.gj;break;case 3:this.k.width=
this.ka+this.Re(this.ub)*this.qc;break;case 4:this.k.height=this.ka+this.Re(this.ub)*this.qc;break;case 5:this.k.n!==this.Fc&&(this.ka=Ma(this.ka+(this.k.n-this.Fc)));this.k.n=Ma(this.ka+this.Re(this.ub)*this.qc);this.Fc=this.k.n;break;case 6:this.k.opacity=this.ka+this.Re(this.ub)*this.qc/100;0>this.k.opacity?this.k.opacity=0:1<this.k.opacity&&(this.k.opacity=1);break;case 8:this.k.x!==this.Fc&&(this.ka+=this.k.x-this.Fc),this.k.y!==this.Gi&&(this.ag+=this.k.y-this.Gi),this.k.x=this.ka+Math.cos(this.k.n)*
this.Re(this.ub)*this.qc,this.k.y=this.ag+Math.sin(this.k.n)*this.Re(this.ub)*this.qc,this.Fc=this.k.x,this.Gi=this.k.y}this.k.Z()};m.Tr=function(d,a){switch(this.oh){case 2:this.ka*=a.width/d.width;this.gj=a.height/a.width;break;case 3:this.ka*=a.width/d.width;break;case 4:this.ka*=a.height/d.height}};p.j=new function(){};d.prototype.Pu=function(d){this.Oa=1===d};p.A=new d;p.L=new function(){}})();function tc(d){this.b=d}
(function(){function d(){}var p=tc.prototype;p.ga=function(d){this.behavior=d;this.b=d.b};p.ga.prototype.M=function(){};p.aa=function(d,m){this.type=d;this.behavior=d.behavior;this.k=m;this.b=d.b};var m=p.aa.prototype;m.M=function(){this.k.N.solidEnabled=0!==this.C[0]};m.Na=function(){};p.j=new function(){};d.prototype.xm=function(d){this.k.N.solidEnabled=!!d};p.A=new d})();
function sc(){return[Y,uc,vc,wc,X,Bc,Ac,Dc,Ec,Cc,Z,tc,Fc,Hc,Nc,Pc,Gc,U.prototype.j.St,U.prototype.j.sp,Fc.prototype.A.Bp,X.prototype.A.Uu,U.prototype.A.Tu,X.prototype.A.Ft,Fc.prototype.A.xm,X.prototype.A.Xu,X.prototype.L.Ij,X.prototype.L.Fp,X.prototype.L.Ot,Hc.prototype.A.Ju,Cc.prototype.A.ym,X.prototype.L.nt,U.prototype.A.Wu,U.prototype.A.Et,X.prototype.A.Ap,X.prototype.L.Ep,X.prototype.j.Pt,U.prototype.A.av,X.prototype.L.Iu,U.prototype.j.Lu,U.prototype.L.$p,U.prototype.j.Hu,X.prototype.j.lp,X.prototype.A.dv,
U.prototype.A.pv,Z.prototype.j.um,Z.prototype.j.Yt,Hc.prototype.A.ov,Fc.prototype.A.Qu,Z.prototype.j.Tt,U.prototype.j.xt,Z.prototype.L.Ij,X.prototype.j.Bt,X.prototype.A.cv,U.prototype.j.yt,Hc.prototype.j.Wt,X.prototype.A.Cp,U.prototype.j.Gt,Fc.prototype.L.lt,X.prototype.j.lu,uc.prototype.A.Play,X.prototype.A.Zu,U.prototype.A.kt,uc.prototype.A.Ku,U.prototype.A.lv,X.prototype.L.nv,X.prototype.A.Su,Bc.prototype.L.Dt,Bc.prototype.A.Ap,U.prototype.j.zt,U.prototype.L.Uv,U.prototype.A.$u,U.prototype.j.mp,
X.prototype.j.Ct,Pc.prototype.A.Pu,U.prototype.j.cu,uc.prototype.A.bv,X.prototype.A.eu,Ac.prototype.A.Vu,U.prototype.L.ky,U.prototype.L.jf,X.prototype.j.op,X.prototype.j.Vt,X.prototype.A.Ru,X.prototype.A.jt,X.prototype.A.kv,U.prototype.j.Gu,X.prototype.L.ot,tc.prototype.A.xm,X.prototype.j.np,Gc.prototype.A.hv,U.prototype.j.Ht,U.prototype.j.It,U.prototype.L["int"],U.prototype.L.random,Cc.prototype.j.lp,Cc.prototype.A.Cp,Z.prototype.j.vm,U.prototype.A.Mt,U.prototype.A.Ou,U.prototype.L.mz,Dc.prototype.A.ym,
vc.prototype.A.Nt,U.prototype.A.Lt,X.prototype.j.Ut,U.prototype.A.Nu,U.prototype.L.ceil,Ac.prototype.A.pt,Ec.prototype.A.Dp,Ec.prototype.L.Ij,Ac.prototype.j.pp,Ac.prototype.A.Kt,Ac.prototype.j.qp,Ac.prototype.L.Zt,Ec.prototype.j.At,Ec.prototype.L.Ep,uc.prototype.A.jv,uc.prototype.j.Xt,uc.prototype.A.Yu,wc.prototype.A.qt,Y.prototype.A.Mu,Y.prototype.j.Th,wc.prototype.A.au,Y.prototype.L.bu,wc.prototype.L.Jt,U.prototype.j.rp]};