-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
430 lines (430 loc) · 206 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,da,fa,ia,C,Q,ja,ka,ma,na,oa,S,pa,sa,ta,va,wa,xa,ya,U,za,Aa,Ba,Ca,Da,W,Ea,Fa,Ga,Ia,Ja,Ka,La,Na,Oa,Pa,Qa,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc={},cc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,d,h,e){this.set(a,d,h,e)}function n(){this.wb=this.ub=this.yb=this.xb=this.Gb=this.Fb=this.cb=this.bb=0}function f(a,d,h,e){a<d?h<e?(G=a<h?a:h,y=d>e?d:e):(G=a<e?a:e,y=d>h?d:h):h<e?(G=d<h?d:h,y=a>e?a:e):(G=d<e?d:e,y=a>h?a:h)}function p(){this.items=this.Bd=null;this.Ah=0;E&&(this.Bd=new Set);this.Jg=[];this.qe=!0}function q(a){v[R++]=a}function u(){this.Y=this.Gk=this.y=this.gl=0}function b(a){this.ab=[];this.Fi=this.Hi=this.Ii=this.Gi=0;this.fi(a)}function a(a,d){this.kl=
a;this.jl=d;this.cells={}}function c(a,d){this.kl=a;this.jl=d;this.cells={}}function t(a,d,h){var e;return T.length?(e=T.pop(),e.Tl=a,e.x=d,e.y=h,e):new aa(a,d,h)}function d(a,d,h){this.Tl=a;this.x=d;this.y=h;this.lb=new ba}function e(a,d,h){var e;return z.length?(e=z.pop(),e.Tl=a,e.x=d,e.y=h,e):new ca(a,d,h)}function l(a,d,h){this.Tl=a;this.x=d;this.y=h;this.lb=[];this.ig=!0;this.yd=new ba;this.Pg=!1}function k(a,d){return a.ld-d.ld}da=function(a){window.console&&window.console.log&&window.console.log(a)};
fa=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};C=function(a){return"number"===typeof a};Q=function(a){return"string"===typeof a};ja=function(a){return 0<a&&0===(a-1&a)};ka=function(a){--a;for(var d=1;32>d;d<<=1)a=a|a>>d;return a+1};ma=function(a){return 0>a?-a:a};na=function(a,d){return a<d?a:d};oa=Math.PI;S=function(a){return 0<=a?a|0:(a|0)-1};pa=function(a){var d=a|0;return d===a?d:d+1};sa=function(a,d,h,e,m,c,A,B){var k,
t,b,l;a<h?(t=a,k=h):(t=h,k=a);m<A?(l=m,b=A):(l=A,b=m);if(k<l||t>b)return!1;d<e?(t=d,k=e):(t=e,k=d);c<B?(l=c,b=B):(l=B,b=c);if(k<l||t>b)return!1;k=m-a+A-h;t=c-d+B-e;a=h-a;d=e-d;m=A-m;c=B-c;B=ma(d*m-c*a);return ma(m*t-c*k)>B?!1:ma(a*t-d*k)<=B};g.prototype.set=function(a,d,h,e){this.left=a;this.top=d;this.right=h;this.bottom=e};g.prototype.Tg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-this.left};g.prototype.height=
function(){return this.bottom-this.top};g.prototype.offset=function(a,d){this.left+=a;this.top+=d;this.right+=a;this.bottom+=d;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.hv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.iv=function(a,d,h){return!(a.right+d<this.left||a.bottom+
h<this.top||a.left+d>this.right||a.top+h>this.bottom)};g.prototype.zb=function(a,d){return a>=this.left&&a<=this.right&&d>=this.top&&d<=this.bottom};g.prototype.Zg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=g;n.prototype.ei=function(a){this.bb=a.left;this.cb=a.top;this.Fb=a.right;this.Gb=a.top;this.xb=a.right;this.yb=a.bottom;this.ub=a.left;this.wb=a.bottom};n.prototype.Rq=function(a,d){if(0===d)this.ei(a);else{var h=Math.sin(d),e=Math.cos(d),
m=a.left*h,c=a.top*h,A=a.right*h,h=a.bottom*h,B=a.left*e,k=a.top*e,t=a.right*e,e=a.bottom*e;this.bb=B-c;this.cb=k+m;this.Fb=t-c;this.Gb=k+A;this.xb=t-h;this.yb=e+A;this.ub=B-h;this.wb=e+m}};n.prototype.offset=function(a,d){this.bb+=a;this.cb+=d;this.Fb+=a;this.Gb+=d;this.xb+=a;this.yb+=d;this.ub+=a;this.wb+=d;return this};var G=0,y=0;n.prototype.zo=function(a){f(this.bb,this.Fb,this.xb,this.ub);a.left=G;a.right=y;f(this.cb,this.Gb,this.yb,this.wb);a.top=G;a.bottom=y};n.prototype.zb=function(a,d){var h=
this.bb,e=this.cb,m=this.Fb-h,c=this.Gb-e,A=this.xb-h,B=this.yb-e,k=a-h,t=d-e,b=m*m+c*c,l=m*A+c*B,c=m*k+c*t,f=A*A+B*B,w=A*k+B*t,r=1/(b*f-l*l),m=(f*c-l*w)*r,b=(b*w-l*c)*r;if(0<=m&&0<b&&1>m+b)return!0;m=this.ub-h;c=this.wb-e;b=m*m+c*c;l=m*A+c*B;c=m*k+c*t;r=1/(b*f-l*l);m=(f*c-l*w)*r;b=(b*w-l*c)*r;return 0<=m&&0<b&&1>m+b};n.prototype.oe=function(a,d){if(d)switch(a){case 0:return this.bb;case 1:return this.Fb;case 2:return this.xb;case 3:return this.ub;case 4:return this.bb;default:return this.bb}else switch(a){case 0:return this.cb;
case 1:return this.Gb;case 2:return this.yb;case 3:return this.wb;case 4:return this.cb;default:return this.cb}};n.prototype.Yp=function(){return(this.bb+this.Fb+this.xb+this.ub)/4};n.prototype.Zp=function(){return(this.cb+this.Gb+this.yb+this.wb)/4};n.prototype.mp=function(a){var d=a.Yp(),h=a.Zp();if(this.zb(d,h))return!0;d=this.Yp();h=this.Zp();if(a.zb(d,h))return!0;var e,m,c,A,B,k,t,b;for(t=0;4>t;t++)for(b=0;4>b;b++)if(d=this.oe(t,!0),h=this.oe(t,!1),e=this.oe(t+1,!0),m=this.oe(t+1,!1),c=a.oe(b,
!0),A=a.oe(b,!1),B=a.oe(b+1,!0),k=a.oe(b+1,!1),sa(d,h,e,m,c,A,B,k))return!0;return!1};va=n;wa=function(a,d){for(var h in d)d.hasOwnProperty(h)&&(a[h]=d[h]);return a};xa=function(a,d){var h,e;d=S(d);if(!(0>d||d>=a.length)){h=d;for(e=a.length-1;h<e;h++)a[h]=a[h+1];ya(a,e)}};ya=function(a,d){a.length=d};U=function(a){ya(a,0)};za=function(a,d){U(a);var h,e;h=0;for(e=d.length;h<e;++h)a[h]=d[h]};Aa=function(a,d){a.push.apply(a,d)};Ba=function(a,d){var h,e;h=0;for(e=a.length;h<e;++h)if(a[h]===d)return h;
return-1};Ca=function(a,d){var h=Ba(a,d);-1!==h&&xa(a,h)};Da=function(a,d,h){return a<d?d:a>h?h:a};W=function(a){return a/(180/oa)};Ea=function(a){return 180/oa*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};Ga=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ia=function(a){return Fa(Ea(a))};Ja=function(a){return Ga(W(a))};Ka=function(a,d,h,e){return Math.atan2(e-d,h-a)};La=function(a,d){if(a===d)return 0;var h=Math.sin(a),e=Math.cos(a),m=Math.sin(d),c=Math.cos(d),h=h*m+e*c;return 1<=h?0:-1>=h?oa:Math.acos(h)};
Na=function(a,d,h){var e=Math.sin(a),m=Math.cos(a),c=Math.sin(d),A=Math.cos(d);return Math.acos(e*c+m*A)>h?0<m*c-e*A?Ga(a+h):Ga(a-h):Ga(d)};Oa=function(a,d){var h=Math.sin(a),e=Math.cos(a),m=Math.sin(d),c=Math.cos(d);return 0>=e*m-h*c};Pa=function(a,d,h,e,m,c){if(0===h)return c?a:d;var A=Math.sin(h);h=Math.cos(h);a-=e;d-=m;var B=a*A;a=a*h-d*A;d=d*h+B;return c?a+e:d+m};Qa=function(a,d,h,e){a=h-a;d=e-d;return Math.sqrt(a*a+d*d)};Va=function(a,d){return!a!==!d};Wa=function(a){for(var d in a)if(a.hasOwnProperty(d))return!0;
return!1};Xa=function(a){for(var d in a)a.hasOwnProperty(d)&&delete a[d]};var r=+new Date;Ya=function(){if("undefined"!==typeof window.performance){var a=window.performance;if("undefined"!==typeof a.now)return a.now();if("undefined"!==typeof a.webkitNow)return a.webkitNow();if("undefined"!==typeof a.mozNow)return a.mozNow();if("undefined"!==typeof a.msNow)return a.msNow()}return Date.now()-r};var h=!1,m=h=!1,w=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),
h=!h&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),w=window.c2ejecta);var E=!h&&!w&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Ud()?!1:E?this.Bd.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(E)this.Bd.has(a)||(this.Bd.add(a),this.qe=!1);else{var d=a.toString(),h=this.items;h?h.hasOwnProperty(d)||(h[d]=a,this.Ah++,this.qe=!1):(this.items={},this.items[d]=
a,this.Ah=1,this.qe=!1)}};p.prototype.remove=function(a){if(!this.Ud())if(E)this.Bd.has(a)&&(this.Bd["delete"](a),this.qe=!1);else if(this.items){a=a.toString();var d=this.items;d.hasOwnProperty(a)&&(delete d[a],this.Ah--,this.qe=!1)}};p.prototype.clear=function(){this.Ud()||(E?this.Bd.clear():(this.items=null,this.Ah=0),U(this.Jg),this.qe=!0)};p.prototype.Ud=function(){return 0===this.count()};p.prototype.count=function(){return E?this.Bd.size:this.Ah};var v=null,R=0;p.prototype.ww=function(){if(!this.qe){if(E)U(this.Jg),
v=this.Jg,R=0,this.Bd.forEach(q),v=null,R=0;else{var a=this.Jg;U(a);var d,h=0,e=this.items;if(e)for(d in e)e.hasOwnProperty(d)&&(a[h++]=e[d])}this.qe=!0}};p.prototype.he=function(){this.ww();return this.Jg};ba=p;new ba;Za=function(a,d){E?$a(a,d.Bd):ab(a,d.he())};$a=function(a,d){var h,e,m,c;e=h=0;for(m=a.length;h<m;++h)c=a[h],d.has(c)||(a[e++]=c);ya(a,e)};ab=function(a,d){var h,e,m,c;e=h=0;for(m=a.length;h<m;++h)c=a[h],-1===Ba(d,c)&&(a[e++]=c);ya(a,e)};u.prototype.add=function(a){this.y=a-this.gl;
this.Gk=this.Y+this.y;this.gl=this.Gk-this.Y-this.y;this.Y=this.Gk};u.prototype.reset=function(){this.Y=this.Gk=this.y=this.gl=0};bb=u;cb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};b.prototype.fi=function(a){this.Fq=a;this.ed=a.length/2;this.ab.length=a.length;this.Ki=this.Li=-1;this.Co=0};b.prototype.fg=function(){return!this.Fq.length};b.prototype.W=function(){for(var a=this.ab,d=a[0],h=d,e=a[1],m=e,c,A,B=1,k=this.ed;B<k;++B)A=2*B,c=a[A],A=a[A+1],c<d&&(d=c),c>h&&(h=c),A<e&&
(e=A),A>m&&(m=A);this.Gi=d;this.Hi=h;this.Ii=e;this.Fi=m};b.prototype.ei=function(a,d,h){this.ab.length=8;this.ed=4;var e=this.ab;e[0]=a.left-d;e[1]=a.top-h;e[2]=a.right-d;e[3]=a.top-h;e[4]=a.right-d;e[5]=a.bottom-h;e[6]=a.left-d;e[7]=a.bottom-h;this.Li=a.right-a.left;this.Ki=a.bottom-a.top;this.W()};b.prototype.Bg=function(a,d,h,e,m){this.ab.length=8;this.ed=4;var c=this.ab;c[0]=a.bb-d;c[1]=a.cb-h;c[2]=a.Fb-d;c[3]=a.Gb-h;c[4]=a.xb-d;c[5]=a.yb-h;c[6]=a.ub-d;c[7]=a.wb-h;this.Li=e;this.Ki=m;this.W()};
b.prototype.Qq=function(a){this.ed=a.ed;za(this.ab,a.ab);this.Gi=a.Gi;this.Ii-a.Ii;this.Hi=a.Hi;this.Fi=a.Fi};b.prototype.Qf=function(a,d,h){if(this.Li!==a||this.Ki!==d||this.Co!==h){this.Li=a;this.Ki=d;this.Co=h;var e,m,c,A,B,k=0,t=1,b=this.Fq,l=this.ab;0!==h&&(k=Math.sin(h),t=Math.cos(h));h=0;for(c=this.ed;h<c;h++)e=2*h,m=e+1,A=b[e]*a,B=b[m]*d,l[e]=A*t-B*k,l[m]=B*t+A*k;this.W()}};b.prototype.zb=function(a,d){var h=this.ab;if(a===h[0]&&d===h[1])return!0;var e,m,c,A=this.ed,B=this.Gi-110,k=this.Ii-
101,t=this.Hi+131,b=this.Fi+120,l,f,w=0,r=0;for(e=0;e<A;e++)m=2*e,c=(e+1)%A*2,l=h[m],m=h[m+1],f=h[c],c=h[c+1],sa(B,k,a,d,l,m,f,c)&&w++,sa(t,b,a,d,l,m,f,c)&&r++;return 1===w%2||1===r%2};b.prototype.mh=function(a,d,h){var e=a.ab,m=this.ab;if(this.zb(e[0]+d,e[1]+h)||a.zb(m[0]-d,m[1]-h))return!0;var c,A,B,k,t,b,l,f,w,r,G,g;c=0;for(k=this.ed;c<k;c++)for(A=2*c,B=(c+1)%k*2,f=m[A],A=m[A+1],w=m[B],r=m[B+1],B=0,l=a.ed;B<l;B++)if(t=2*B,b=(B+1)%l*2,G=e[t]+d,t=e[t+1]+h,g=e[b]+d,b=e[b+1]+h,sa(f,A,w,r,G,t,g,b))return!0;
return!1};db=b;a.prototype.xe=function(a,d,h){var e;e=this.cells[a];return e?(e=e[d])?e:h?(e=t(this,a,d),this.cells[a][d]=e):null:h?(e=t(this,a,d),this.cells[a]={},this.cells[a][d]=e):null};a.prototype.Nb=function(a){return S(a/this.kl)};a.prototype.Ob=function(a){return S(a/this.jl)};a.prototype.update=function(a,d,h){var e,m,c,A,B;if(d)for(e=d.left,m=d.right;e<=m;++e)for(c=d.top,A=d.bottom;c<=A;++c)if(!h||!h.zb(e,c))if(B=this.xe(e,c,!1))B.remove(a),B.Ud()&&(B.lb.clear(),1E3>T.length&&T.push(B),
this.cells[e][c]=null);if(h)for(e=h.left,m=h.right;e<=m;++e)for(c=h.top,A=h.bottom;c<=A;++c)d&&d.zb(e,c)||this.xe(e,c,!0).$l(a)};a.prototype.pk=function(a,d){var h,e,m,c,A,B;h=this.Nb(a.left);m=this.Ob(a.top);e=this.Nb(a.right);for(A=this.Ob(a.bottom);h<=e;++h)for(c=m;c<=A;++c)(B=this.xe(h,c,!1))&&B.dump(d)};eb=a;c.prototype.xe=function(a,d,h){var m;m=this.cells[a];return m?(m=m[d])?m:h?(m=e(this,a,d),this.cells[a][d]=m):null:h?(m=e(this,a,d),this.cells[a]={},this.cells[a][d]=m):null};c.prototype.Nb=
function(a){return S(a/this.kl)};c.prototype.Ob=function(a){return S(a/this.jl)};c.prototype.update=function(a,d,h){var e,m,c,A,B;if(d)for(e=d.left,m=d.right;e<=m;++e)for(c=d.top,A=d.bottom;c<=A;++c)if(!h||!h.zb(e,c))if(B=this.xe(e,c,!1))B.remove(a),B.Ud()&&(B.reset(),1E3>z.length&&z.push(B),this.cells[e][c]=null);if(h)for(e=h.left,m=h.right;e<=m;++e)for(c=h.top,A=h.bottom;c<=A;++c)d&&d.zb(e,c)||this.xe(e,c,!0).$l(a)};c.prototype.pk=function(a,d,h,e,m){var c,A;a=this.Nb(a);d=this.Ob(d);h=this.Nb(h);
for(c=this.Ob(e);a<=h;++a)for(e=d;e<=c;++e)(A=this.xe(a,e,!1))&&A.dump(m)};c.prototype.uv=function(a){var d,h,e,m,c;d=a.left;e=a.top;h=a.right;for(m=a.bottom;d<=h;++d)for(a=e;a<=m;++a)if(c=this.xe(d,a,!1))c.ig=!1};fb=c;var T=[];d.prototype.Ud=function(){return this.lb.Ud()};d.prototype.$l=function(a){this.lb.add(a)};d.prototype.remove=function(a){this.lb.remove(a)};d.prototype.dump=function(a){Aa(a,this.lb.he())};aa=d;var z=[];l.prototype.Ud=function(){if(!this.lb.length)return!0;if(this.lb.length>
this.yd.count())return!1;this.Cl();return!0};l.prototype.$l=function(a){this.yd.contains(a)?(this.yd.remove(a),this.yd.Ud()&&(this.Pg=!1)):this.lb.length?(this.lb[this.lb.length-1].td()>a.td()&&(this.ig=!1),this.lb.push(a)):(this.lb.push(a),this.ig=!0)};l.prototype.remove=function(a){this.yd.add(a);this.Pg=!0;30<=this.yd.count()&&this.Cl()};l.prototype.Cl=function(){this.Pg&&(this.yd.count()===this.lb.length?this.reset():(Za(this.lb,this.yd),this.yd.clear(),this.Pg=!1))};l.prototype.Qt=function(){this.ig||
(this.lb.sort(k),this.ig=!0)};l.prototype.reset=function(){U(this.lb);this.ig=!0;this.yd.clear();this.Pg=!1};l.prototype.dump=function(a){this.Cl();this.Qt();this.lb.length&&a.push(this.lb)};ca=l;var J="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");gb=function(a){return 0>=a||11<=a?"source-over":J[a-1]};hb=function(a,d,h){if(h)switch(a.Eb=h.ONE,a.Ab=h.ONE_MINUS_SRC_ALPHA,d){case 1:a.Eb=h.ONE;a.Ab=h.ONE;break;case 3:a.Eb=
h.ONE;a.Ab=h.ZERO;break;case 4:a.Eb=h.ONE_MINUS_DST_ALPHA;a.Ab=h.ONE;break;case 5:a.Eb=h.DST_ALPHA;a.Ab=h.ZERO;break;case 6:a.Eb=h.ZERO;a.Ab=h.SRC_ALPHA;break;case 7:a.Eb=h.ONE_MINUS_DST_ALPHA;a.Ab=h.ZERO;break;case 8:a.Eb=h.ZERO;a.Ab=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.Eb=h.DST_ALPHA;a.Ab=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.Eb=h.ONE_MINUS_DST_ALPHA,a.Ab=h.SRC_ALPHA}};ib=function(a){return Math.round(1E6*a)/1E6};jb=function(a,d){return"string"!==typeof a||"string"!==typeof d||a.length!==d.length?
!1:a===d?!0:a.toLowerCase()===d.toLowerCase()};kb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||jb(a.tagName,"canvas")?!0:!1}})();var dc="undefined"!==typeof Float32Array?Float32Array:Array;function ec(g){var n=new dc(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function fc(g){var n=new dc(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function gc(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function hc(g,n){var f=n[0],p=n[1];n=n[2];g[0]*=f;g[1]*=f;g[2]*=f;g[3]*=f;g[4]*=p;g[5]*=p;g[6]*=p;g[7]*=p;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function ic(g,n,f,p){p||(p=fc());var q,u,b,a,c,t,d,e,l=g[0],k=g[1];g=g[2];u=f[0];b=f[1];q=f[2];f=n[1];t=n[2];l===n[0]&&k===f&&g===t?(g=p,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(f=l-n[0],t=k-n[1],d=g-n[2],e=1/Math.sqrt(f*f+t*t+d*d),f*=e,t*=e,d*=e,n=b*d-q*t,q=q*f-u*d,u=u*t-b*f,(e=Math.sqrt(n*n+q*q+u*u))?(e=1/e,n*=e,q*=e,u*=e):u=q=n=0,b=t*u-d*q,a=d*n-f*u,c=f*q-t*n,(e=Math.sqrt(b*b+a*a+c*c))?(e=1/e,b*=e,a*=e,c*=e):c=a=b=0,
p[0]=n,p[1]=b,p[2]=f,p[3]=0,p[4]=q,p[5]=a,p[6]=t,p[7]=0,p[8]=u,p[9]=c,p[10]=d,p[11]=0,p[12]=-(n*l+q*k+u*g),p[13]=-(b*l+a*k+c*g),p[14]=-(f*l+t*k+d*g),p[15]=1)}
(function(){function g(a,c,t){this.Vd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.xa=!!t;this.yj=this.ph=!1;this.ql=0;this.Uk=1;this.Sn=1E3;this.Dw=(this.Sn-this.Uk)/32768;this.hl=ec([0,0,100]);this.Hp=ec([0,0,0]);this.or=ec([0,1,0]);this.xi=ec([1,1,1]);this.Lo=!0;this.Tj=fc();this.vc=fc();this.om=fc();this.pl=fc();this.q=a;this.ip()}function n(a,c,t){this.q=a;this.gi=c;this.name=t;this.Gc=a.getAttribLocation(c,"aPos");this.He=a.getAttribLocation(c,
"aTex");this.Fp=a.getUniformLocation(c,"matP");this.Pj=a.getUniformLocation(c,"matMV");this.qg=a.getUniformLocation(c,"opacity");this.wm=a.getUniformLocation(c,"colorFill");this.Gp=a.getUniformLocation(c,"samplerFront");this.Lh=a.getUniformLocation(c,"samplerBack");this.wf=a.getUniformLocation(c,"destStart");this.vf=a.getUniformLocation(c,"destEnd");this.Nh=a.getUniformLocation(c,"seconds");this.ym=a.getUniformLocation(c,"pixelWidth");this.xm=a.getUniformLocation(c,"pixelHeight");this.Kh=a.getUniformLocation(c,
"layerScale");this.Jh=a.getUniformLocation(c,"layerAngle");this.Oh=a.getUniformLocation(c,"viewOrigin");this.Mh=a.getUniformLocation(c,"scrollPos");this.av=!!(this.ym||this.xm||this.Nh||this.Lh||this.wf||this.vf||this.Kh||this.Jh||this.Oh||this.Mh);this.Pp=this.Qp=-999;this.Sj=1;this.Lp=this.Kp=0;this.Np=this.Jp=this.Ip=1;this.Tp=this.Sp=this.Rp=this.Vp=this.Up=this.Mp=0;this.nm=[];this.Op=fc();this.qg&&a.uniform1f(this.qg,1);this.wm&&a.uniform4f(this.wm,1,1,1,1);this.Gp&&a.uniform1i(this.Gp,0);this.Lh&&
a.uniform1i(this.Lh,1);this.wf&&a.uniform2f(this.wf,0,0);this.vf&&a.uniform2f(this.vf,1,1);this.Kh&&a.uniform1f(this.Kh,1);this.Jh&&a.uniform1f(this.Jh,0);this.Oh&&a.uniform2f(this.Oh,0,0);this.Mh&&a.uniform2f(this.Mh,0,0);this.Nh&&a.uniform1f(this.Nh,0);this.lf=!1}function f(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 p(a,c){this.type=a;this.p=c;this.q=c.q;this.ud=this.Mb=this.qq=0;this.R=this.Pc=null;this.Sq=[]}var q=fc();g.prototype.ip=function(){var a=this.q,c;this.Ap=1;this.sf=this.De=null;this.Ti=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.xa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Bp=a.ONE;this.zp=a.ONE_MINUS_SRC_ALPHA;
this.Sk=new Float32Array(8E3*(this.xa?3:2));this.Ik=new Float32Array(16E3);this.Bq=new Float32Array(32E3);this.Sm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Sm);a.bufferData(a.ARRAY_BUFFER,this.Bq.byteLength,a.DYNAMIC_DRAW);this.wi=Array(4);this.oi=Array(4);for(c=0;4>c;c++)this.wi[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.wi[c]),a.bufferData(a.ARRAY_BUFFER,this.Sk.byteLength,a.DYNAMIC_DRAW),this.oi[c]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.oi[c]),a.bufferData(a.ARRAY_BUFFER,
this.Ik.byteLength,a.DYNAMIC_DRAW);this.Kd=0;this.dv=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.dv);for(var t=new Uint16Array(12E3),d=c=0;12E3>c;)t[c++]=d,t[c++]=d+1,t[c++]=d+2,t[c++]=d,t[c++]=d+2,t[c++]=d+3,d+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,t,a.STATIC_DRAW);this.Tm=this.Fg=this.ie=0;this.Ja=[];c=this.xa?"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}";t=this.Ug({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.Ja.push(t);t=this.Ug({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.Ja.push(t);t=this.Ug({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.Ja.push(t);t=this.Ug({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
c,"<fill>");this.Ja.push(t);for(var e in jc)jc.hasOwnProperty(e)&&this.Ja.push(this.Ug(jc[e],c,e));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.pe=[];this.Id=0;this.Cb=!1;this.Ho=this.Dh=-1;this.Sf=null;this.Al=a.createFramebuffer();this.Xi=this.qk=null;this.xo=!1;this.xa&&(this.Xi=a.createRenderbuffer());this.Qe=ec([0,0,0]);this.Wp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.Wp&&(this.Wp=2048);this.Wb(0)};n.prototype.In=function(a){f(this.Op,a)||(gc(a,this.Op),this.q.uniformMatrix4fv(this.Pj,
!1,a))};g.prototype.Ug=function(a,c,t){var d=this.q,e=d.createShader(d.FRAGMENT_SHADER);d.shaderSource(e,a.src);d.compileShader(e);if(!d.getShaderParameter(e,d.COMPILE_STATUS))return d.deleteShader(e),null;var b=d.createShader(d.VERTEX_SHADER);d.shaderSource(b,c);d.compileShader(b);if(!d.getShaderParameter(b,d.COMPILE_STATUS))return d.deleteShader(e),d.deleteShader(b),null;c=d.createProgram();d.attachShader(c,e);d.attachShader(c,b);d.linkProgram(c);if(!d.getProgramParameter(c,d.LINK_STATUS))return d.deleteShader(e),
d.deleteShader(b),d.deleteProgram(c),null;d.useProgram(c);d.deleteShader(e);d.deleteShader(b);t=new n(d,c,t);t.aj=a.aj||0;t.bj=a.bj||0;t.ol=!!a.ol;t.Kc=!!a.Kc;t.bl=!!a.bl;t.O=a.O||[];a=0;for(e=t.O.length;a<e;a++)t.O[a][1]=d.getUniformLocation(c,t.O[a][0]),t.nm.push(0),d.uniform1f(t.O[a][1],0);return t};g.prototype.Pl=function(a){var c,b;c=0;for(b=this.Ja.length;c<b;c++)if(this.Ja[c].name===a)return c;return-1};g.prototype.Eq=function(a,c,b){var d=this.vc,e=this.Tj,l=[0,0,0,0,0,0,0,0];l[0]=d[0]*a+
d[4]*c+d[12];l[1]=d[1]*a+d[5]*c+d[13];l[2]=d[2]*a+d[6]*c+d[14];l[3]=d[3]*a+d[7]*c+d[15];l[4]=e[0]*l[0]+e[4]*l[1]+e[8]*l[2]+e[12]*l[3];l[5]=e[1]*l[0]+e[5]*l[1]+e[9]*l[2]+e[13]*l[3];l[6]=e[2]*l[0]+e[6]*l[1]+e[10]*l[2]+e[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],b[0]=(.5*l[4]+.5)*this.width,b[1]=(.5*l[5]+.5)*this.height)};g.prototype.Ff=function(a,c,b){if(this.width!==a||this.height!==c||b){this.ve();b=this.q;this.width=a;this.height=c;b.viewport(0,0,a,c);ic(this.hl,
this.Hp,this.or,this.vc);if(this.xa){var d=-a/2;a=a/2;var e=c/2;c=-c/2;var l=this.Uk,k=this.Sn,f=this.Tj;f||(f=fc());var g=a-d,r=c-e,h=k-l;f[0]=2/g;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/r;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/h;f[11]=0;f[12]=-(d+a)/g;f[13]=-(c+e)/r;f[14]=-(k+l)/h;f[15]=1;this.xi[0]=1;this.xi[1]=1}else c=a/c,d=this.Uk,a=this.Sn,f=this.Tj,k=d*Math.tan(45*Math.PI/360),c*=k,e=-c,l=-k,f||(f=fc()),g=c-e,r=k-l,h=a-d,f[0]=2*d/g,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*d/r,f[6]=0,f[7]=0,f[8]=(c+e)/
g,f[9]=(k+l)/r,f[10]=-(a+d)/h,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(a*d*2)/h,f[15]=0,d=[0,0],a=[0,0],this.Eq(0,0,d),this.Eq(1,1,a),this.xi[0]=1/(a[0]-d[0]),this.xi[1]=-1/(a[1]-d[1]);d=0;for(a=this.Ja.length;d<a;d++)e=this.Ja[d],e.lf=!1,e.Fp&&(b.useProgram(e.gi),b.uniformMatrix4fv(e.Fp,!1,this.Tj));b.useProgram(this.Ja[this.Dh].gi);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,null);b.activeTexture(b.TEXTURE0);this.sf=this.De=null;this.Xi&&(b.bindFramebuffer(b.FRAMEBUFFER,
this.Al),b.bindRenderbuffer(b.RENDERBUFFER,this.Xi),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.width,this.height),this.xo||(b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.Xi),this.xo=!0),b.bindRenderbuffer(b.RENDERBUFFER,null),b.bindFramebuffer(b.FRAMEBUFFER,null),this.qk=null)}};g.prototype.Lc=function(){ic(this.hl,this.Hp,this.or,this.vc);hc(this.vc,this.xi)};g.prototype.translate=function(a,c){if(0!==a||0!==c){this.Qe[0]=a;this.Qe[1]=c;this.Qe[2]=
0;var b=this.vc,d=this.Qe,e=d[0],l=d[1],d=d[2];b[12]=b[0]*e+b[4]*l+b[8]*d+b[12];b[13]=b[1]*e+b[5]*l+b[9]*d+b[13];b[14]=b[2]*e+b[6]*l+b[10]*d+b[14];b[15]=b[3]*e+b[7]*l+b[11]*d+b[15]}};g.prototype.scale=function(a,c){if(1!==a||1!==c)this.Qe[0]=a,this.Qe[1]=c,this.Qe[2]=1,hc(this.vc,this.Qe)};g.prototype.tk=function(a){if(0!==a){var c=this.vc,b,d=Math.sin(a);a=Math.cos(a);var e=c[0],l=c[1],k=c[2],f=c[3],g=c[4],r=c[5],h=c[6],m=c[7];b?c!==b&&(b[8]=c[8],b[9]=c[9],b[10]=c[10],b[11]=c[11],b[12]=c[12],b[13]=
c[13],b[14]=c[14],b[15]=c[15]):b=c;b[0]=e*a+g*d;b[1]=l*a+r*d;b[2]=k*a+h*d;b[3]=f*a+m*d;b[4]=e*-d+g*a;b[5]=l*-d+r*a;b[6]=k*-d+h*a;b[7]=f*-d+m*a}};g.prototype.yc=function(){if(!f(this.om,this.vc)){var a=this.kc();a.type=5;a.R?gc(this.vc,a.R):a.R=fc(this.vc);gc(this.vc,this.om);this.Cb=!1}};g.prototype.xk=function(a){this.xa&&(32760<a&&(a=32760),this.ql=this.hl[2]-this.Uk-a*this.Dw)};p.prototype.At=function(){var a=this.q,c=this.p;0!==this.Mb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.Al),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.yj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.yj=!1)};p.prototype.Et=function(){this.q.bindTexture(this.q.TEXTURE_2D,this.Pc)};p.prototype.Ft=function(){var a=this.q;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Pc);a.activeTexture(a.TEXTURE0)};p.prototype.Bt=function(){var a=this.qq,
c=this.p;c.Ti=a;c=c.Sf;c.qg&&c.Sj!==a&&(c.Sj=a,this.q.uniform1f(c.qg,a))};p.prototype.ut=function(){this.q.drawElements(this.q.TRIANGLES,this.ud,this.q.UNSIGNED_SHORT,this.Mb)};p.prototype.xt=function(){this.q.blendFunc(this.Mb,this.ud)};p.prototype.Gt=function(){var a,c,b,d=this.p.Ja,e=this.p.Ho;a=0;for(c=d.length;a<c;a++)b=d[a],a===e&&b.Pj?(b.In(this.R),b.lf=!0):b.lf=!1;gc(this.R,this.p.pl)};p.prototype.wt=function(){var a=this.q,c=this.p;this.Pc?(c.sf===this.Pc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),c.sf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.Al),c.yj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Pc,0)):(c.xa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};p.prototype.qt=function(){var a=this.q,c=this.Mb;0===c?(a.clearColor(this.R[0],this.R[1],this.R[2],this.R[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.R[0],this.R[1],this.R[2],
this.R[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};p.prototype.zt=function(){var a=this.q;0!==this.Mb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};p.prototype.tt=function(){var a=this.q,c=this.p;c.xa&&a.disable(a.DEPTH_TEST);var b=c.Ja[1];a.useProgram(b.gi);!b.lf&&b.Pj&&(b.In(c.pl),b.lf=!0);a.enableVertexAttribArray(b.Gc);a.bindBuffer(a.ARRAY_BUFFER,c.Sm);a.vertexAttribPointer(b.Gc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Mb/
4,this.ud);b=c.Sf;a.useProgram(b.gi);0<=b.Gc&&(a.enableVertexAttribArray(b.Gc),a.bindBuffer(a.ARRAY_BUFFER,c.wi[c.Kd]),a.vertexAttribPointer(b.Gc,c.xa?3:2,a.FLOAT,!1,0,0));0<=b.He&&(a.enableVertexAttribArray(b.He),a.bindBuffer(a.ARRAY_BUFFER,c.oi[c.Kd]),a.vertexAttribPointer(b.He,2,a.FLOAT,!1,0,0));c.xa&&a.enable(a.DEPTH_TEST)};p.prototype.Ct=function(){var a=this.q,c=this.p,b=c.Ja[this.Mb];c.Ho=this.Mb;c.Sf=b;a.useProgram(b.gi);!b.lf&&b.Pj&&(b.In(c.pl),b.lf=!0);b.qg&&b.Sj!==c.Ti&&(b.Sj=c.Ti,a.uniform1f(b.qg,
c.Ti));0<=b.Gc&&(a.enableVertexAttribArray(b.Gc),a.bindBuffer(a.ARRAY_BUFFER,c.wi[c.Kd]),a.vertexAttribPointer(b.Gc,c.xa?3:2,a.FLOAT,!1,0,0));0<=b.He&&(a.enableVertexAttribArray(b.He),a.bindBuffer(a.ARRAY_BUFFER,c.oi[c.Kd]),a.vertexAttribPointer(b.He,2,a.FLOAT,!1,0,0))};p.prototype.yt=function(){var a=this.R;this.q.uniform4f(this.p.Sf.wm,a[0],a[1],a[2],a[3])};p.prototype.Dt=function(){var a,c,b=this.p.Sf,d=this.q;a=this.R;b.Lh&&this.p.sf!==this.Pc&&(d.activeTexture(d.TEXTURE1),d.bindTexture(d.TEXTURE_2D,
this.Pc),this.p.sf=this.Pc,d.activeTexture(d.TEXTURE0));var e=a[0];b.ym&&e!==b.Qp&&(b.Qp=e,d.uniform1f(b.ym,e));e=a[1];b.xm&&e!==b.Pp&&(b.Pp=e,d.uniform1f(b.xm,e));e=a[2];c=a[3];!b.wf||e===b.Kp&&c===b.Lp||(b.Kp=e,b.Lp=c,d.uniform2f(b.wf,e,c));e=a[4];c=a[5];!b.vf||e===b.Ip&&c===b.Jp||(b.Ip=e,b.Jp=c,d.uniform2f(b.vf,e,c));e=a[6];b.Kh&&e!==b.Np&&(b.Np=e,d.uniform1f(b.Kh,e));e=a[7];b.Jh&&e!==b.Mp&&(b.Mp=e,d.uniform1f(b.Jh,e));e=a[8];c=a[9];!b.Oh||e===b.Up&&c===b.Vp||(b.Up=e,b.Vp=c,d.uniform2f(b.Oh,e,
c));e=a[10];c=a[11];!b.Mh||e===b.Rp&&c===b.Sp||(b.Rp=e,b.Sp=c,d.uniform2f(b.Mh,e,c));e=a[12];b.Nh&&e!==b.Tp&&(b.Tp=e,d.uniform1f(b.Nh,e));if(b.O.length)for(a=0,c=b.O.length;a<c;a++)e=this.Sq[a],e!==b.nm[a]&&(b.nm[a]=e,d.uniform1f(b.O[a][1],e))};g.prototype.kc=function(){this.Id===this.pe.length&&this.pe.push(new p(0,this));return this.pe[this.Id++]};g.prototype.ve=function(){if(0!==this.Id&&!this.q.isContextLost()){var a=this.q;0<this.Tm&&(a.bindBuffer(a.ARRAY_BUFFER,this.Sm),a.bufferSubData(a.ARRAY_BUFFER,
0,this.Bq.subarray(0,this.Tm)),b&&0<=b.Gc&&"<point>"===b.name&&a.vertexAttribPointer(b.Gc,4,a.FLOAT,!1,0,0));if(0<this.ie){var b=this.Sf;a.bindBuffer(a.ARRAY_BUFFER,this.wi[this.Kd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Sk.subarray(0,this.ie));b&&0<=b.Gc&&"<point>"!==b.name&&a.vertexAttribPointer(b.Gc,this.xa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.oi[this.Kd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Ik.subarray(0,this.Fg));b&&0<=b.He&&"<point>"!==b.name&&a.vertexAttribPointer(b.He,2,
a.FLOAT,!1,0,0)}for(var f,a=0,b=this.Id;a<b;a++)switch(f=this.pe[a],f.type){case 1:f.ut();break;case 2:f.Et();break;case 3:f.Bt();break;case 4:f.xt();break;case 5:f.Gt();break;case 6:f.wt();break;case 7:f.qt();break;case 8:f.tt();break;case 9:f.Ct();break;case 10:f.Dt();break;case 11:f.Ft();break;case 12:f.yt();break;case 13:f.zt();break;case 14:f.At()}this.Tm=this.Fg=this.ie=this.Id=0;this.yj=this.Cb=!1;this.Kd++;4<=this.Kd&&(this.Kd=0)}};g.prototype.Ef=function(a){if(a!==this.Ap&&!this.ph){var b=
this.kc();b.type=3;this.Ap=b.qq=a;this.Cb=!1}};g.prototype.lc=function(a){if(a!==this.De){var b=this.kc();b.type=2;this.De=b.Pc=a;this.Cb=!1}};g.prototype.Ke=function(a,b){if((a!==this.Bp||b!==this.zp)&&!this.ph){var f=this.kc();f.type=4;f.Mb=a;f.ud=b;this.Bp=a;this.zp=b;this.Cb=!1}};g.prototype.Jq=function(){this.Ke(this.q.ONE,this.q.ONE_MINUS_SRC_ALPHA)};g.prototype.Yh=function(a,b,f,d,e,l,k,g){15992<=this.ie&&this.ve();var y=this.ie,r=this.Fg,h=this.Sk,m=this.Ik,w=this.ql;if(this.Cb)this.pe[this.Id-
1].ud+=6;else{var n=this.kc();n.type=1;n.Mb=this.xa?y:y/2*3;n.ud=6;this.Cb=!0}this.xa?(h[y++]=a,h[y++]=b,h[y++]=w,h[y++]=f,h[y++]=d,h[y++]=w,h[y++]=e,h[y++]=l,h[y++]=w,h[y++]=k,h[y++]=g,h[y++]=w):(h[y++]=a,h[y++]=b,h[y++]=f,h[y++]=d,h[y++]=e,h[y++]=l,h[y++]=k,h[y++]=g);m[r++]=0;m[r++]=0;m[r++]=1;m[r++]=0;m[r++]=1;m[r++]=1;m[r++]=0;m[r++]=1;this.ie=y;this.Fg=r};g.prototype.zd=function(a,b,f,d,e,l,k,g,y){15992<=this.ie&&this.ve();var r=this.ie,h=this.Fg,m=this.Sk,w=this.Ik,n=this.ql;if(this.Cb)this.pe[this.Id-
1].ud+=6;else{var v=this.kc();v.type=1;v.Mb=this.xa?r:r/2*3;v.ud=6;this.Cb=!0}var v=y.left,q=y.top,p=y.right;y=y.bottom;this.xa?(m[r++]=a,m[r++]=b,m[r++]=n,m[r++]=f,m[r++]=d,m[r++]=n,m[r++]=e,m[r++]=l,m[r++]=n,m[r++]=k,m[r++]=g,m[r++]=n):(m[r++]=a,m[r++]=b,m[r++]=f,m[r++]=d,m[r++]=e,m[r++]=l,m[r++]=k,m[r++]=g);w[h++]=v;w[h++]=q;w[h++]=p;w[h++]=q;w[h++]=p;w[h++]=y;w[h++]=v;w[h++]=y;this.ie=r;this.Fg=h};g.prototype.Wb=function(a){if(this.Dh!==a){if(!this.Ja[a]){if(0===this.Dh)return;a=0}var b=this.kc();
b.type=9;this.Dh=b.Mb=a;this.Cb=!1}};g.prototype.Vh=function(a){a=this.Ja[a];return!(!a.wf&&!a.vf)};g.prototype.Xm=function(a){a=this.Ja[a];return!!(a.wf||a.vf||a.ol)};g.prototype.Wm=function(a){return this.Ja[a].Kc};g.prototype.Pv=function(a){a=this.Ja[a];return 0!==a.aj||0!==a.bj};g.prototype.Iu=function(a){return this.Ja[a].aj};g.prototype.Ju=function(a){return this.Ja[a].bj};g.prototype.Ku=function(a,b){return this.Ja[a].O[b][2]};g.prototype.mk=function(a){return this.Ja[a].bl};g.prototype.Ag=
function(a,b,f,d,e,l,k,g,y,r,h,m,w,n,v){var q=this.Ja[this.Dh],p,u;if(q.av||v.length){p=this.kc();p.type=10;p.R?gc(this.vc,p.R):p.R=fc();u=p.R;u[0]=b;u[1]=f;u[2]=d;u[3]=e;u[4]=l;u[5]=k;u[6]=g;u[7]=y;u[8]=r;u[9]=h;u[10]=m;u[11]=w;u[12]=n;q.Lh?p.Pc=a:p.Pc=null;if(v.length)for(f=p.Sq,f.length=v.length,a=0,b=v.length;a<b;a++)f[a]=v[a];this.Cb=!1}};g.prototype.clear=function(a,b,f,d){var e=this.kc();e.type=7;e.Mb=0;e.R||(e.R=fc());e.R[0]=a;e.R[1]=b;e.R[2]=f;e.R[3]=d;this.Cb=!1};g.prototype.clearRect=function(a,
b,f,d){if(!(0>f||0>d)){var e=this.kc();e.type=7;e.Mb=1;e.R||(e.R=fc());e.R[0]=a;e.R[1]=b;e.R[2]=f;e.R[3]=d;this.Cb=!1}};g.prototype.Mq=function(a){if(this.xa&&(a=!!a,this.ph!==a)){var b=this.kc();b.type=14;b.Mb=a?1:0;this.Cb=!1;this.ph=a;this.qk=null;this.ph?this.Wb(2):this.Wb(0)}};g.prototype.Lq=function(a){if(this.xa){var b=this.kc();b.type=13;b.Mb=a?1:0;this.Cb=!1}};g.prototype.Ro=function(){gc(this.om,q);this.Lc();this.yc();var a=this.width/2,b=this.height/2;this.Yh(-a,b,a,b,a,-b,-a,-b);gc(q,
this.vc);this.yc()};g.prototype.Kq=function(a,b,f){this.Wb(3);var d=this.kc();d.type=12;d.R||(d.R=fc());d.R[0]=a;d.R[1]=b;d.R[2]=f;d.R[3]=1;this.Cb=!1};g.prototype.jw=function(){this.Wb(0)};g.prototype.Vv=function(){this.Wb(2)};g.prototype.Ov=function(){this.ve();this.q.flush()};var u=[],b={};g.prototype.it=function(){U(u);b={}};g.prototype.Mj=function(a,c,f,d){c=!!c;f=!!f;var e=a.src+","+c+","+f+(c?",undefined":""),l=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(e))return l=b[e],l.Ji++,l;
this.ve();var k=this.q,g=ja(a.width)&&ja(a.height),l=k.createTexture();k.bindTexture(k.TEXTURE_2D,l);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var y=k.RGBA,r=k.RGBA,h=k.UNSIGNED_BYTE;if(d&&!this.Vd)switch(d){case 1:r=y=k.RGB;break;case 2:h=k.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:r=y=k.RGB,h=k.UNSIGNED_SHORT_5_6_5}if(!g&&c){d=document.createElement("canvas");d.width=ka(a.width);d.height=ka(a.height);var m=d.getContext("2d");m.webkitImageSmoothingEnabled=
f;m.mozImageSmoothingEnabled=f;m.msImageSmoothingEnabled=f;m.imageSmoothingEnabled=f;m.drawImage(a,0,0,a.width,a.height,0,0,d.width,d.height);k.texImage2D(k.TEXTURE_2D,0,y,r,h,d)}else k.texImage2D(k.TEXTURE_2D,0,y,r,h,a);c?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));f?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,
k.LINEAR),g&&this.Lo?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.De=null;l.Xe=a.width;l.We=a.height;l.Ji=1;l.Bo=e;u.push(l);return b[e]=l};g.prototype.qc=function(a,b,f,d){this.ve();var e=this.q;this.Vd&&(d=!1);var l=
e.createTexture();e.bindTexture(e.TEXTURE_2D,l);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,f?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,f?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.De=null;l.Xe=a;l.We=b;u.push(l);return l};g.prototype.Bw=
function(a,b,f){this.ve();var d=this.q;this.Vd&&(f=!1);d.bindTexture(d.TEXTURE_2D,b);d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{d.texImage2D(d.TEXTURE_2D,0,d.RGBA,d.RGBA,f?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,a)}catch(e){console&&console.error&&console.error("Error updating WebGL texture: ",e)}d.bindTexture(d.TEXTURE_2D,null);this.De=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ji&&1<a.Ji?a.Ji--:(this.ve(),a===this.De&&(this.q.bindTexture(this.q.TEXTURE_2D,
null),this.De=null),a===this.sf&&(this.q.activeTexture(this.q.TEXTURE1),this.q.bindTexture(this.q.TEXTURE_2D,null),this.q.activeTexture(this.q.TEXTURE0),this.sf=null),Ca(u,a),"undefined"!==typeof a.Bo&&delete b[a.Bo],this.q.deleteTexture(a)))};g.prototype.Mc=function(a){if(a!==this.qk){var b=this.kc();b.type=6;this.qk=b.Pc=a;this.Cb=!1}};lb=g})();
(function(){function g(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function f(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var d=this;this.uc=(this.oh=/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.Ib=!!a.dc;this.np="undefined"!==typeof window.AppMobi||this.Ib;this.Ec=!!window.c2cocoonjs;this.Yc=!!window.c2ejecta;this.Ec&&(CocoonJS.App.onSuspended.addEventListener(function(){d.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){d.setSuspended(!1)}));this.Yc&&(document.addEventListener("pagehide",function(){d.setSuspended(!0)}),document.addEventListener("pageshow",
function(){d.setSuspended(!1)}),document.addEventListener("resize",function(){d.setSize(window.innerWidth,window.innerHeight)}));this.Da=this.Ib||this.Ec||this.Yc;this.rh=/edge\//i.test(navigator.userAgent);this.Vd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.rh;this.rp=/tizen/i.test(navigator.userAgent);this.wj=/android/i.test(navigator.userAgent)&&!this.rp&&!this.Vd&&!this.rh;this.lm=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Vd&&!this.rh;this.xp=/ipad/i.test(navigator.userAgent);this.zh=this.lm||this.xp||this.Yc;this.pv=this.lm&&/os\s6/i.test(navigator.userAgent);this.nh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Vd&&!this.rh;this.em=/amazonwebappplatform/i.test(navigator.userAgent);this.kv=/firefox/i.test(navigator.userAgent);this.qp=/safari/i.test(navigator.userAgent)&&!this.nh&&!this.Vd&&!this.rh;this.nv=/windows/i.test(navigator.userAgent);
this.Ae="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.up=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.vp=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.eg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.jm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.tp=
!!window.cr_windows10;this.sp=this.up||this.vp||this.jm||this.tp;this.jv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.xj=this.wj&&!this.nh&&!this.oh&&!this.kv&&!this.em&&!this.Da;this.devicePixelRatio=1;this.ze=this.uc||this.oh||this.np||this.Ec||this.wj||this.zh||this.eg||this.jm||this.jv||this.rp||this.Yc;this.ze||(this.ze=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||
this.Ae||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Ae=!0);this.canvas=a;this.Do=document.getElementById("c2canvasdiv");this.p=this.q=null;this.Sl="(unavailable)";this.xa=!1;this.ef=0;this.na=null;this.El="";this.gj=!1;this.kq=this.lq=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Ib&&(window.c2runtime=
this);this.Ae&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.xj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.D=this.width;this.C=this.height;this.Ri=this.width;this.Wg=this.height;this.Fh=window.innerWidth;this.Eh=window.innerHeight;this.uu=!1;this.V=!0;this.vh=!1;Date.now||(Date.now=
function(){return+new Date});this.plugins=[];this.types={};this.n=[];this.Ra=[];this.pg={};this.$c=[];this.yl={};this.Pd=[];this.Lg=[];this.Nk=[];this.Vs=[];this.Ws=[];this.yp=this.Zq=null;this.bf={};this.gm=this.ye=!1;this.Wd=0;this.fm=this.im=!1;this.Wc=[];this.qh=!1;this.Xd=this.Db=this.Jj=this.kn="";this.mi=this.Vq=!1;this.fj=[];this.ue=this.df=0;this.$p=30;this.nl=this.Ph=0;this.Jf=1;this.kb=new bb;this.je=new bb;this.Zj=this.lj=this.ah=this.Ed=this.uf=this.Dl=this.Ej=0;this.Ye=null;this.Yi=
[];this.xl=[];this.$i=-1;this.zm=[[]];this.Dn=this.Qj=0;this.ok(null);this.bh=this.fq=this.Sh=0;this.ni=[];this.An=this.$m=-1;this.kg=!0;this.Oj=0;this.sh=!1;this.mw=0;this.Pf=null;this.fc=this.dp=!1;this.jq=new ba;this.Fm=new ba;this.Gm=new ba;this.$h=[];this.hd=new db([]);this.wn=new db([]);this.ne=[];this.rj={};this.Rf={};this.Of={};this.Kg={};this.yo={};this.Ep=this.Ij=this.Ta=this.Za=this.Dp=this.Hj=this.pa=null;this.Ig=this.km=!1;this.Fl=[null,null];this.hf=0;this.Bl="";this.$d={};this.ki=this.Fe=
null;this.Xq="";this.Yj=[];this.Uv()}}function p(a,d){return 128>=d?a[3]:256>=d?a[2]:512>=d?a[1]:a[0]}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function u(a,d,h,e){try{var b=indexedDB.open("_C2SaveStates");b.onupgradeneeded=q;b.onerror=e;b.onsuccess=function(b){b=b.target.result;b.onerror=e;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:d}).onsuccess=h}}catch(m){e(m)}}function b(a,d,h){try{var e=indexedDB.open("_C2SaveStates");e.onupgradeneeded=
q;e.onerror=h;e.onsuccess=function(e){e=e.target.result;e.onerror=h;var b=e.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?d(b.result.data):d(null)}}}catch(b){h(b)}}function a(){da("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 c(a){var d,h={};for(d in a)!a.hasOwnProperty(d)||a[d]instanceof ba||a[d]&&"undefined"!==
typeof a[d].Hx||"spriteCreatedDestroyCallback"!==d&&(h[d]=a[d]);return h}var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;f.prototype.Uv=function(){var a=this,d;this.eg?d=new ActiveXObject("Microsoft.XMLHTTP"):d=new XMLHttpRequest;var h="data.js";if(this.up||this.eg||this.jm||this.tp)h="data.json";d.open("GET",h,!0);var e=!1;if(!this.Da&&"response"in d&&"responseType"in d)try{d.responseType=
"json",e="json"===d.responseType}catch(b){e=!1}if(!e&&"responseType"in d)try{d.responseType="text"}catch(m){}if("overrideMimeType"in d)try{d.overrideMimeType("application/json; charset=utf-8")}catch(c){}this.eg?d.onreadystatechange=function(){4===d.readyState&&a.Lj(JSON.parse(d.responseText))}:(d.onload=function(){if(e)a.Lj(d.response);else if(a.Yc){var h=d.responseText,h=h.substr(h.indexOf("{"));a.Lj(JSON.parse(h))}else a.Lj(JSON.parse(d.responseText))},d.onerror=function(a){fa("Error requesting "+
h+":");fa(a)});d.send()};f.prototype.gv=function(){var a=this,d,h,e,b,m,c,k,f,l;this.Be=(!this.Da||this.Yc||this.uc)&&this.yw&&!this.xj;0===this.Qb&&this.zh&&(this.Be=!1);this.devicePixelRatio=this.Be?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.tb();h=!(!this.uu&&(!this.$k||this.Ae||this.sp||this.eg||this.oh||this.uc||this.em));0<this.Qb&&this.setSize(g(),n(),!0);try{this.Ot&&(this.Ec||this.Yc||!this.Da)&&(d={alpha:h,depth:!1,
antialias:!1,failIfMajorPerformanceCaveat:!0},this.q=this.canvas.getContext("webgl",d)||this.canvas.getContext("experimental-webgl",d))}catch(w){}if(this.q){if(d=this.q.getExtension("WEBGL_debug_renderer_info"))this.Sl=this.q.getParameter(d.UNMASKED_RENDERER_WEBGL)+" ["+this.q.getParameter(d.UNMASKED_VENDOR_WEBGL)+"]";this.xa&&(this.Sl+=" [front-to-back enabled]");this.Da||(this.qb=document.createElement("canvas"),jQuery(this.qb).appendTo(this.canvas.parentNode),this.qb.oncontextmenu=function(){return!1},
this.qb.onselectstart=function(){return!1},this.qb.width=Math.round(this.Ri*this.devicePixelRatio),this.qb.height=Math.round(this.Wg*this.devicePixelRatio),jQuery(this.qb).css({width:this.Ri+"px",height:this.Wg+"px"}),this.Cq(),this.Rm=this.qb.getContext("2d"));this.p=new lb(this.q,this.ze,this.xa);this.p.Ff(this.canvas.width,this.canvas.height);this.p.Lo=0!==this.Ht;this.na=null;this.canvas.addEventListener("webglcontextlost",function(d){d.preventDefault();a.zv();da("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.p.ip();a.p.Ff(a.p.width,a.p.height,!0);a.Za=null;a.Ta=null;a.Fl[0]=null;a.Fl[1]=null;a.Av();a.V=!0;da("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);d=0;for(h=this.n.length;d<h;d++)for(m=this.n[d],e=0,b=m.L.length;e<b;e++)k=m.L[e],k.Va=this.p.Pl(k.id),k.Kc=this.p.Wm(k.Va),this.Ig=this.Ig||this.p.Vh(k.Va);d=0;for(h=this.$c.length;d<h;d++){f=this.$c[d];e=0;for(b=f.L.length;e<b;e++)k=
f.L[e],k.Va=this.p.Pl(k.id),k.Kc=this.p.Wm(k.Va);f.kd();e=0;for(b=f.N.length;e<b;e++){l=f.N[e];m=0;for(c=l.L.length;m<c;m++)k=l.L[m],k.Va=this.p.Pl(k.id),k.Kc=this.p.Wm(k.Va),this.Ig=this.Ig||this.p.Vh(k.Va);l.kd()}}}else{if(0<this.Qb&&this.Ib){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.na=AppMobi.canvas.getContext("2d");try{this.na.samplingMode=this.T?"smooth":"sharp",this.na.globalScale=1,this.na.HTML5CompatibilityMode=!0,this.na.imageSmoothingEnabled=
this.T}catch(r){}0!==this.width&&0!==this.height&&(this.na.width=this.width,this.na.height=this.height)}this.na||(this.Ec?(d={antialias:!!this.T,alpha:h},this.na=this.canvas.getContext("2d",d)):(d={alpha:h},this.na=this.canvas.getContext("2d",d)),this.na.webkitImageSmoothingEnabled=this.T,this.na.mozImageSmoothingEnabled=this.T,this.na.msImageSmoothingEnabled=this.T,this.na.imageSmoothingEnabled=this.T);this.Rm=this.qb=null}this.hr=function(d){a.Ka(!1,d)};window==window.top||this.Da||this.sp||this.eg||
(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Ec&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),this.Jj="__c2_continuouspreview",this.mi=!0),this.Hv&&!this.ze&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));
window.addEventListener("blur",function(){a.Af()});this.Da||(d=function(a){if(kb(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(d){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",d):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",d):document.addEventListener("touchstart",d),document.addEventListener("mousedown",d));0===this.Qb&&
this.Be&&1<this.devicePixelRatio&&this.setSize(this.Oa,this.Na,!0);this.lr();this.Yu();this.go();this.M={}};f.prototype.setSize=function(a,d,h){var e=0,b=0,m=0,c=0,c=0,k=this.pv&&this.qp&&!navigator.standalone&&!this.Da&&!this.uc;k&&(d+=60);if(this.Fh!==a||this.Eh!==d||h){this.Fh=a;this.Eh=d;var f=this.Qb,l=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.sh)&&!this.uc;if(l||0!==this.Qb||h)l&&0<this.hf&&(f=this.hf),h=this.devicePixelRatio,
4<=f?(m=this.Oa/this.Na,a/d>m?(m*=d,5===f?(c=m*h/this.Oa,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),m=this.Oa*c/h,c=this.Na*c/h,e=(a-m)/2,b=(d-c)/2,a=m,d=c):(e=(a-m)/2,a=m)):(c=a/m,5===f?(c=c*h/this.Na,1<c?c=Math.floor(c):1>c&&(c=1/Math.ceil(1/c)),m=this.Oa*c/h,c=this.Na*c/h,e=(a-m)/2,b=(d-c)/2,a=m):b=(d-c)/2,d=c),l&&!this.Ae&&(b=e=0)):this.Ae&&this.sh&&0===this.So&&(e=Math.floor((a-this.Oa)/2),b=Math.floor((d-this.Na)/2),a=this.Oa,d=this.Na),2>f&&(this.Rg=h),this.Be&&this.xp&&1<h&&(1024<=a&&(a=
1023),1024<=d&&(d=1023)),this.Ri=Math.round(a),this.Wg=Math.round(d),this.width=Math.round(a*h),this.height=Math.round(d*h),this.V=!0,this.Ar?(this.D=this.width,this.C=this.height,this.rc=!0):this.width<this.Oa&&this.height<this.Na||1===f?(this.D=this.width,this.C=this.height,this.rc=!0):(this.D=this.Oa,this.C=this.Na,this.rc=!1,2===f?(m=this.Oa/this.Na,f=this.Fh/this.Eh,f<m?this.D=this.C*f:f>m&&(this.C=this.D/f)):3===f&&(m=this.Oa/this.Na,f=this.Fh/this.Eh,f>m?this.D=this.C*f:f<m&&(this.C=this.D/
f))),this.Do&&!this.Da&&(jQuery(this.Do).css({width:Math.round(a)+"px",height:Math.round(d)+"px","margin-left":Math.floor(e)+"px","margin-top":Math.floor(b)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(d)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*h),this.canvas.height=Math.round(d*h),this.Yc?(this.canvas.style.left=Math.floor(e)+"px",this.canvas.style.top=Math.floor(b)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(d)+"px"):this.Be&&!this.Da&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(d)+"px")),this.qb&&(this.qb.width=Math.round(a*h),this.qb.height=Math.round(d*h),this.qb.style.width=this.Ri+"px",this.qb.style.height=this.Wg+"px"),this.p&&this.p.Ff(Math.round(a*h),Math.round(d*h)),this.Ib&&this.na&&(this.na.width=Math.round(a),this.na.height=Math.round(d)),this.na&&(this.na.webkitImageSmoothingEnabled=this.T,this.na.mozImageSmoothingEnabled=this.T,this.na.msImageSmoothingEnabled=
this.T,this.na.imageSmoothingEnabled=this.T),this.lr(),this.Da||!k&&!this.lm||window.setTimeout(function(){window.scrollTo(0,1)},100)}};f.prototype.lr=function(){if(this.$s&&0!==this.Pm){var a="portrait";2===this.Pm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(d){console&&
console.warn&&console.warn("Failed to lock orientation: ",d)}}};f.prototype.zv=function(){this.p.it();this.km=!0;var a,d,h;a=0;for(d=this.n.length;a<d;a++)h=this.n[a],h.ak&&h.ak()};f.prototype.Av=function(){this.km=!1;var a,d,h;a=0;for(d=this.n.length;a<d;a++)h=this.n[a],h.Mm&&h.Mm()};f.prototype.Cq=function(){if(!this.Da){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.sh)&&!this.uc?jQuery(this.canvas).offset():jQuery(this.canvas).position();
a.position="absolute";jQuery(this.qb).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;f.prototype.setSuspended=function(a){var h;if(a&&!this.vh)for(da("[Construct 2] Suspending"),this.vh=!0,-1!==this.$m&&d&&d(this.$m),-1!==this.An&&clearTimeout(this.An),a=0,h=this.ni.length;a<h;a++)this.ni[a](!0);else if(!a&&this.vh){da("[Construct 2] Resuming");this.vh=!1;this.Ej=Ya();this.uf=
Ya();a=this.Ph=this.lj=0;for(h=this.ni.length;a<h;a++)this.ni[a](!1);this.Ka(!1)}};f.prototype.Us=function(a){this.ni.push(a)};f.prototype.le=function(a){return this.Yj[a]};f.prototype.Lj=function(a){a&&a.project||fa("Project model unavailable");a=a.project;this.name=a[0];this.Qo=a[1];this.Qb=a[12];this.So=a[12];this.Oa=a[10];this.Na=a[11];this.xq=this.Oa/2;this.yq=this.Na/2;this.Da&&!this.Yc&&(4<=a[12]||0===a[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),
this.So=this.Qb=3);this.Kn=a[18];this.Ge=a[19];if(0===this.Ge){var d=new Image;d.crossOrigin="anonymous";d.src="loading-logo.png";this.Fe={Rj:d}}else if(4===this.Ge){d=new Image;d.src="";var h=new Image;h.src="";var e=new Image;e.src="";var b=new Image;b.src="";var m=new Image;m.src="";var c=new Image;c.src="";var k=new Image;k.src="";var f=new Image;f.src="";var l=new Image;l.src="";var w=new Image;w.src="";var r=new Image;r.src="";var g=new Image;g.src="";this.Fe={Rj:[d,h,e,b],Lv:[m,c,k,f],Cw:[l,
w,r,g]}}this.Sh=a[21];this.Yj=kc();this.Dd=new X(this);d=0;for(h=a[2].length;d<h;d++)k=a[2][d],e=this.le(k[0]),mb(k,e.prototype),f=new e(this),f.Ck=k[1],f.Ce=k[2],f.aq=k[9],f.S&&f.S(),this.plugins.push(f);this.Yj=kc();d=0;for(h=a[3].length;d<h;d++){k=a[3][d];m=this.le(k[1]);f=null;e=0;for(b=this.plugins.length;e<b;e++)if(this.plugins[e]instanceof m){f=this.plugins[e];break}l=new f.ra(f);l.name=k[0];l.H=k[2];l.cm=k[3].slice(0);l.Aw=k[3].length;l.bt=k[4];l.wu=k[5];l.X=k[11];l.H?(l.Vj=[],l.Qd=this.bh++,
l.Ca=null):(l.Vj=null,l.Qd=-1,l.Ca=[]);l.cj=null;l.Xf=null;l.Mo=null;l.Fc=!1;l.Zb=null;k[6]?(l.xn=k[6][0],l.yn=k[6][1],l.zn=k[6][2]):(l.xn=null,l.yn=0,l.zn=0);k[7]?l.Pb=k[7]:l.Pb=null;l.index=d;l.e=[];l.Vi=[];l.Me=[new nb(l)];l.Nd=0;l.pd=null;l.ot=0;l.Eg=!0;l.Ok=ob;l.Au=pb;l.Gu=qb;l.ea=rb;l.Xh=sb;l.nk=tb;l.Bf=ub;l.nj=vb;l.Hl=xb;l.Jl=yb;l.Ac=zb;l.Ll=Ab;l.Oi=new eb(this.Oa,this.Na);l.Ci=!0;l.Di=!1;l.M={};l.toString=Bb;l.Ra=[];e=0;for(b=k[8].length;e<b;e++){w=k[8][e];r=this.le(w[1]);g=null;m=0;for(c=
this.Ra.length;m<c;m++)if(this.Ra[m]instanceof r){g=this.Ra[m];break}g||(g=new r(this),g.Xj=[],g.Wj=new ba,g.S&&g.S(),this.Ra.push(g),lc&&g instanceof lc&&(this.Zq=g),cc.rv&&g instanceof cc.rv&&(this.yp=g));-1===g.Xj.indexOf(l)&&g.Xj.push(l);m=new g.ra(g,l);m.name=w[0];m.X=w[2];m.S();l.Ra.push(m)}l.global=k[9];l.hm=k[10];l.L=[];e=0;for(b=k[12].length;e<b;e++)l.L.push({id:k[12][e][0],name:k[12][e][1],Va:-1,Kc:!1,oc:!0,index:e});l.ay=k[13];this.Kn&&!l.H&&!l.hm&&f.Ce||l.S();l.name&&(this.types[l.name]=
l);this.n.push(l);f.Ck&&(e=new f.ma(l),e.uid=this.Sh++,e.Gq=this.fq++,e.of=0,e.gh=Cb,e.toString=Db,e.A=k[14],e.S(),l.e.push(e),this.$d[e.uid.toString()]=e)}d=0;for(h=a[4].length;d<h;d++)for(m=a[4][d],c=this.n[m[0]],e=1,b=m.length;e<b;e++)k=this.n[m[e]],k.Ca.push(c),c.Vj.push(k);d=0;for(h=a[28].length;d<h;d++){m=a[28][d];c=[];e=0;for(b=m.length;e<b;e++)c.push(this.n[m[e]]);e=0;for(b=c.length;e<b;e++)c[e].Fc=!0,c[e].Zb=c}if(0<this.bh)for(d=0,h=this.n.length;d<h;d++)if(k=this.n[d],!k.H&&k.Ca.length){k.cj=
Array(this.bh);k.Xf=Array(this.bh);k.Mo=Array(this.bh);l=[];e=g=r=w=0;for(b=k.Ca.length;e<b;e++)for(f=k.Ca[e],k.cj[f.Qd]=w,w+=f.Aw,k.Xf[f.Qd]=r,r+=f.bt,k.Mo[f.Qd]=g,g+=f.wu,m=0,c=f.L.length;m<c;m++)l.push(wa({},f.L[m]));k.L=l.concat(k.L);e=0;for(b=k.L.length;e<b;e++)k.L[e].index=e}d=0;for(h=a[5].length;d<h;d++)k=a[5][d],e=new Eb(this,k),this.pg[e.name]=e,this.$c.push(e);d=0;for(h=a[6].length;d<h;d++)k=a[6][d],e=new Fb(this,k),this.yl[e.name]=e,this.Pd.push(e);d=0;for(h=this.Pd.length;d<h;d++)this.Pd[d].Qa();
d=0;for(h=this.Pd.length;d<h;d++)this.Pd[d].Hn();d=0;for(h=this.Nk.length;d<h;d++)this.Nk[d].Qa();U(this.Nk);this.Zs=a[7];this.Bl=a[8];this.cd=a[9];this.Rg=1;this.Ot=a[13];this.T=a[14];this.$k=a[15];this.yw=a[17];this.Pm=a[20];this.$s=0<this.Pm;this.Hv=a[22];this.rc=this.Ar=a[23];this.Ht=a[24];this.Mv=a[25];this.xa=a[27]&&!this.Vd;this.Dk=Date.now();U(this.Yj);this.gv()};var e=!1;f.prototype.yr=function(a,d){a.cocoonLazyLoad=!0;a.onerror=function(d){e=a.Ao=!0;console&&console.error&&console.error("Error loading image '"+
a.src+"': ",d)};this.Yc?a.src=d:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(d,function(d){a.src=d},function(h){e=a.Ao=!0;console&&console.error&&console.error("Error extracting image '"+d+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",a.src=d));this.Lg.push(a)};f.prototype.tu=function(a){var d,h;d=0;for(h=this.Lg.length;d<h;d++)if(this.Lg[d].jt===a)return this.Lg[d];return null};var l=0,k=!1;f.prototype.Yu=function(){this.Pf&&(l=this.Pf.hw(this.Zs))};f.prototype.wo=function(){var a=
l,d=0,h=0,e=!0,b,m,h=0;for(b=this.Lg.length;h<b;h++){m=this.Lg[h];var c=m.Go;if(!c||0>=c)c=5E4;a+=c;m.src&&(m.complete||m.loaded)&&!m.Ao?d+=c:e=!1}e&&this.Mv&&this.Pf&&(k||(this.Pf.ow(),k=!0),h=this.Pf.Hu(),d+=h,h<l&&(e=!1));this.dd=0==a?1:d/a;return e};var G=!1;f.prototype.go=function(){if(this.na||this.p){var a=this.na||this.Rm;this.qb&&this.Cq();this.dd=0;this.Cp=-1;var d=this;if(this.wo()&&(4!==this.Ge||G))this.Zu();else{var h=Date.now()-this.Dk;if(a){var b=this.width,m=this.height,c=this.devicePixelRatio;
if(3>this.Ge&&(this.Ec||500<=h&&this.Cp!=this.dd)){a.clearRect(0,0,b,m);var h=b/2,m=m/2,b=0===this.Ge&&this.Fe.Rj.complete,k=40*c,f=0,l=80*c,w;if(b){var r=this.Fe.Rj,l=r.width*c;w=r.height*c;k=l/2;f=w/2;a.drawImage(r,S(h-k),S(m-f),l,w)}1>=this.Ge?(h=S(h-k)+.5,m=S(m+(f+(b?12*c:0)))+.5,a.fillStyle=e?"red":"DodgerBlue",a.fillRect(h,m,Math.floor(l*this.dd),6*c),a.strokeStyle="black",a.strokeRect(h,m,l,6*c),a.strokeStyle="white",a.strokeRect(h-1*c,m-1*c,l+2*c,8*c)):2===this.Ge&&(a.font=this.Yc?"12pt ArialMT":
"12pt Arial",a.fillStyle=e?"#f00":"#999",a.$x="middle",c=Math.round(100*this.dd)+"%",b=a.measureText?a.measureText(c):null,a.fillText(c,h-(b?b.width:0)/2,m));this.Cp=this.dd}else if(4===this.Ge){this.Mt(a);t?t(function(){d.go()}):setTimeout(function(){d.go()},16);return}}setTimeout(function(){d.go()},this.Ec?10:100)}}};var y=-1,r="undefined"===typeof cr_is_preview?200:0,h=!0,m=!1,w=0,E=0,v="undefined"===typeof cr_is_preview?3E3:0,R=null,T=null,z=0;f.prototype.Mt=function(a){if(!G){for(var d=Math.ceil(this.width),
b=Math.ceil(this.height),c=this.Fe.Rj,k=this.Fe.Lv,f=this.Fe.Cw,l=0;4>l;++l)if(!c[l].complete||!k[l].complete||!f[l].complete)return;0===z&&(y=Date.now());var l=Date.now(),g=!1,n=a,t,q;h||m?(a.clearRect(0,0,d,b),R&&R.width===d&&R.height===b||(R=document.createElement("canvas"),R.width=d,R.height=b,T=R.getContext("2d")),n=T,g=!0,h&&1===z&&(y=Date.now())):a.globalAlpha=1;n.fillStyle="#333333";n.fillRect(0,0,d,b);256<this.Wg?(t=Da(.22*b,105,.6*d),q=.25*t,n.drawImage(p(k,t),.5*d-t/2,.2*b-q/2,t,q),q=t=
Math.min(.395*b,.95*d),n.drawImage(p(c,t),.5*d-t/2,.485*b-q/2,t,q),t=Da(.22*b,105,.6*d),q=.25*t,n.drawImage(p(f,t),.5*d-t/2,.868*b-q/2,t,q),n.fillStyle="#3C3C3C",t=d,q=Math.max(.005*b,2),n.fillRect(0,.8*b-q/2,t,q),n.fillStyle=e?"red":"#E0FF65",t=d*this.dd,n.fillRect(.5*d-t/2,.8*b-q/2,t,q)):(q=t=.55*b,n.drawImage(p(c,t),.5*d-t/2,.45*b-q/2,t,q),n.fillStyle="#3C3C3C",t=d,q=Math.max(.005*b,2),n.fillRect(0,.85*b-q/2,t,q),n.fillStyle=e?"red":"#E0FF65",t=d*this.dd,n.fillRect(.5*d-t/2,.85*b-q/2,t,q));g&&
(h?a.globalAlpha=0===z?0:Math.min((l-y)/300,1):m&&(a.globalAlpha=Math.max(1-(l-E)/300,0)),a.drawImage(R,0,0,d,b));h&&300<=l-y&&2<=z&&(h=!1,w=l);!h&&l-w>=v&&!m&&1<=this.dd&&(m=!0,E=l);if(m&&l-E>=300+r||"undefined"!==typeof cr_is_preview&&1<=this.dd&&500>Date.now()-y)G=!0,m=h=!1,this.Fe=T=R=null;++z}};f.prototype.Zu=function(){this.qb&&(this.canvas.parentNode.removeChild(this.qb),this.qb=this.Rm=null);this.Dk=Date.now();this.uf=Ya();var a,d,h;if(this.Kn)for(a=0,d=this.n.length;a<d;a++)h=this.n[a],h.H||
h.hm||!h.Fa.Ce||h.S();else this.kg=!1;a=0;for(d=this.$c.length;a<d;a++)this.$c[a].kt();2<=this.Qb&&(a=this.Oa/this.Na,d=this.width/this.height,this.Rg=2!==this.Qb&&d>a||2===this.Qb&&d<a?this.height/this.Na:this.width/this.Oa);this.Qo?this.pg[this.Qo].un():this.$c[0].un();this.Kn||(this.Oj=1,this.trigger(X.prototype.j.bo,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(d=this.n.length;a<d;a++)h=this.n[a],h.yv&&h.yv();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ka(!1);this.Ib&&AppMobi.webview.execute("onGameReady();")};f.prototype.Ka=function(a,d,h){if(this.pa){var e=Ya();if(h||!this.vh||a){a||(t?this.$m=t(this.hr):this.An=setTimeout(this.hr,this.ze?1:16));d=d||e;var b=this.Qb;((h=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.uc)||this.sh)&&0<this.hf&&(b=this.hf);0<b&&(!this.zh||window.self!==window.top)&&(b=window.innerHeight,
this.Fh===window.innerWidth&&this.Eh===b||this.setSize(g(),n()));this.Da||(h?(this.gj||(this.El=jQuery(this.canvas).css("margin")||"0",this.gj=!0),this.nh||this.Ae||jQuery(this.canvas).css({"margin-left":""+Math.floor((screen.width-this.width/this.devicePixelRatio)/2)+"px","margin-top":""+Math.floor((screen.height-this.height/this.devicePixelRatio)/2)+"px"})):this.gj?(this.nh||this.Ae||jQuery(this.canvas).css("margin",this.El),this.El="",this.gj=!1,0===this.Qb&&this.setSize(Math.round(this.lq/this.devicePixelRatio),
Math.round(this.kq/this.devicePixelRatio),!0)):(this.lq=this.width,this.kq=this.height));this.kg&&(h=this.wo(),this.Oj=this.dd,h&&(this.kg=!1,this.dd=1,this.trigger(X.prototype.j.bo,null)));this.tv(d);!this.V&&!this.Ec||this.km||this.mi||a||(this.V=!1,this.p?this.ac():this.qd(),this.ki&&(this.canvas&&this.canvas.toDataURL&&(this.Xq=this.canvas.toDataURL(this.ki[0],this.ki[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Xq),this.trigger(X.prototype.j.$r,null)),this.ki=null));this.Nx||(this.Ed++,
this.ah++,this.lj++);this.Ph+=Ya()-e}}};f.prototype.tv=function(a){var d,h,e,b,m,c,k,l;1E3<=a-this.uf&&(this.uf+=1E3,1E3<=a-this.uf&&(this.uf=a),this.Dl=this.lj,this.lj=0,this.nl=this.Ph,this.Ph=0);0!==this.Ej&&(d=a-this.Ej,0>d&&(d=0),this.ue=d/1E3,.5<this.ue?this.ue=0:this.ue>1/this.$p&&(this.ue=1/this.$p));this.Ej=a;this.df=this.ue*this.Jf;this.kb.add(this.df);this.je.add(this.ue);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.sh)&&
!this.uc;2<=this.Qb||a&&0<this.hf?(d=this.Oa/this.Na,h=this.width/this.height,e=this.Qb,a&&0<this.hf&&(e=this.hf),this.Rg=2!==e&&h>d||2===e&&h<d?this.height/this.Na:this.width/this.Oa,this.pa&&(this.pa.ln(this.pa.scrollX),this.pa.mn(this.pa.scrollY))):this.Rg=this.Be?this.devicePixelRatio:1;this.tb();this.Wd++;this.Dd.Zv();this.Wd--;this.tb();this.Wd++;h=this.jq.he();a=0;for(d=h.length;a<d;a++)h[a].Vx();a=0;for(d=this.n.length;a<d;a++)if(c=this.n[a],!c.H&&(c.Ra.length||c.Ca.length))for(h=0,e=c.e.length;h<
e;h++)for(k=c.e[h],b=0,m=k.F.length;b<m;b++)k.F[b].Ka();a=0;for(d=this.n.length;a<d;a++)if(c=this.n[a],!c.H&&(c.Ra.length||c.Ca.length))for(h=0,e=c.e.length;h<e;h++)for(k=c.e[h],b=0,m=k.F.length;b<m;b++)l=k.F[b],l.Dq&&l.Dq();h=this.Fm.he();a=0;for(d=h.length;a<d;a++)h[a].Ka();this.Wd--;this.$u();for(a=0;this.Ye&&10>a++;)this.Ko(this.Ye);a=0;for(d=this.Pd.length;a<d;a++)this.Pd[a].Vl=!1;this.pa.ff&&this.pa.ff.Ua();U(this.$h);this.Wd++;a=0;for(d=this.n.length;a<d;a++)if(c=this.n[a],!c.H&&(c.Ra.length||
c.Ca.length))for(h=0,e=c.e.length;h<e;h++)for(k=c.e[h],b=0,m=k.F.length;b<m;b++)l=k.F[b],l.Kk&&l.Kk();h=this.Gm.he();a=0;for(d=h.length;a<d;a++)h[a].Kk();this.Wd--};f.prototype.Af=function(){var a,d,h,e,b,m,c,k,l;a=0;for(d=this.n.length;a<d;a++)if(c=this.n[a],!c.H)for(h=0,e=c.e.length;h<e;h++)if(k=c.e[h],k.Af&&k.Af(),k.F)for(b=0,m=k.F.length;b<m;b++)l=k.F[b],l.Af&&l.Af()};f.prototype.Ko=function(a){var d=this.pa;this.pa.pw();var h,e,b,m,c,k,l;if(this.p)for(h=0,e=this.n.length;h<e;h++)c=this.n[h],
c.H||!c.Gn||c.global&&0!==c.e.length||-1!==a.lh.indexOf(c)||c.Gn();d==a&&U(this.Dd.Xb);U(this.$h);a.un();h=0;for(e=this.n.length;h<e;h++)if(c=this.n[h],c.global||c.Fa.Ck)for(a=0,d=c.e.length;a<d;a++)if(k=c.e[a],k.Lm&&k.Lm(),k.F)for(b=0,m=k.F.length;b<m;b++)l=k.F[b],l.Lm&&l.Lm();this.V=!0;this.tb()};f.prototype.Gg=function(a){this.Fm.add(a)};f.prototype.qw=function(a){this.Gm.add(a)};f.prototype.oj=function(a){return a&&-1!==a.Rh?this.ue*a.Rh:this.df};f.prototype.qd=function(){this.pa.qd(this.na);
this.Ib&&this.na.present()};f.prototype.ac=function(){this.xa&&(this.ef=1,this.pa.cf(this.p));this.pa.ac(this.p);this.p.Ov()};f.prototype.Zk=function(a){a&&this.Yi.push(a)};f.prototype.Tv=function(a){Ca(this.Yi,a)};f.prototype.$f=function(a){a=a.toString();return this.$d.hasOwnProperty(a)?this.$d[a]:null};var J=[];f.prototype.Re=function(a){var d,h;d=a.type.name;var e=null;if(this.bf.hasOwnProperty(d)){if(e=this.bf[d],e.contains(a))return}else e=J.length?J.pop():new ba,this.bf[d]=e;e.add(a);this.ye=
!0;if(a.Fc)for(d=0,h=a.siblings.length;d<h;d++)this.Re(a.siblings[d]);this.gm&&e.Jg.push(a);this.fm||(this.Wd++,this.trigger(Object.getPrototypeOf(a.type.Fa).j.bs,a),this.Wd--)};f.prototype.tb=function(){if(this.ye){var a,d,h,e,b,m;this.gm=!0;h=0;for(b=this.Wc.length;h<b;++h)for(a=this.Wc[h],d=a.type,d.e.push(a),e=0,m=d.Ca.length;e<m;++e)d.Ca[e].e.push(a),d.Ca[e].Eg=!0;U(this.Wc);this.Vr();Xa(this.bf);this.ye=this.gm=!1}};f.prototype.Vr=function(){for(var a in this.bf)this.bf.hasOwnProperty(a)&&this.Fr(this.bf[a])};
f.prototype.Fr=function(a){var d=a.he(),h=d[0].type,e,b,m,c,k,l;Za(h.e,a);h.Eg=!0;0===h.e.length&&(h.Di=!1);e=0;for(b=h.Ca.length;e<b;++e)l=h.Ca[e],Za(l.e,a),l.Eg=!0;e=0;for(b=this.Dd.Xb.length;e<b;++e)if(k=this.Dd.Xb[e],k.Lb.hasOwnProperty(h.index)&&Za(k.Lb[h.index].Td,a),!h.H)for(m=0,c=h.Ca.length;m<c;++m)l=h.Ca[m],k.Lb.hasOwnProperty(l.index)&&Za(k.Lb[l.index].Td,a);if(k=d[0].i){if(k.zc)for(m=k.e,e=0,b=m.length;e<b;++e)c=m[e],a.contains(c)&&(c.W(),k.rb.update(c,c.Tb,null),c.Tb.set(0,0,-1,-1));
Za(k.e,a);k.di(0)}for(e=0;e<d.length;++e)this.Er(d[e],h);a.clear();J.push(a);this.V=!0};f.prototype.Er=function(a,d){var h,e,b;h=0;for(e=this.Yi.length;h<e;++h)this.Yi[h](a);a.re&&d.Oi.update(a,a.re,null);(h=a.i)&&h.yg(a,!0);if(a.F)for(h=0,e=a.F.length;h<e;++h)b=a.F[h],b.wg&&b.wg(),b.behavior.Wj.remove(a);this.jq.remove(a);this.Fm.remove(a);this.Gm.remove(a);a.wg&&a.wg();this.$d.hasOwnProperty(a.uid.toString())&&delete this.$d[a.uid.toString()];this.Zj--;100>d.Vi.length&&d.Vi.push(a)};var K=[];f.prototype.$e=
function(a,d,h,e,b,m){var c,k,l,f;if(!a)return null;var w=this.n[a[1]],r=w.Fa.Ce;if(this.kg&&r&&!w.hm||r&&!this.p&&11===a[0][11])return null;var g=d;r||(d=null);var v;w.Vi.length?(v=w.Vi.pop(),v.wc=!0,w.Fa.ma.call(v,w)):(v=new w.Fa.ma(w),v.wc=!1);!h||m||this.$d.hasOwnProperty(a[2].toString())?v.uid=this.Sh++:v.uid=a[2];this.$d[v.uid.toString()]=v;v.Gq=this.fq++;v.of=w.e.length;c=0;for(k=this.Wc.length;c<k;++c)this.Wc[c].type===w&&v.of++;v.gh=Cb;v.toString=Db;l=a[3];if(v.wc)Xa(v.M);else{v.M={};if("undefined"!==
typeof cr_is_preview)for(v.lp=[],v.lp.length=l.length,c=0,k=l.length;c<k;c++)v.lp[c]=l[c][1];v.Ya=[];v.Ya.length=l.length}c=0;for(k=l.length;c<k;c++)v.Ya[c]=l[c][0];if(r){var t=a[0];v.x=ia(e)?t[0]:e;v.y=ia(b)?t[1]:b;v.z=t[2];v.width=t[3];v.height=t[4];v.depth=t[5];v.m=t[6];v.opacity=t[7];v.Rb=t[8];v.Sb=t[9];v.Wa=t[10];c=t[11];!this.p&&w.L.length&&(v.Wa=c);v.te=gb(v.Wa);this.q&&hb(v,v.Wa,this.q);if(v.wc){c=0;for(k=t[12].length;c<k;c++)for(l=0,f=t[12][c].length;l<f;l++)v.Ha[c][l]=t[12][c][l];v.ja.set(0,
0,0,0);v.re.set(0,0,-1,-1);v.Tb.set(0,0,-1,-1);v.Hb.ei(v.ja);U(v.el)}else{v.Ha=t[12].slice(0);c=0;for(k=v.Ha.length;c<k;c++)v.Ha[c]=t[12][c].slice(0);v.ba=[];v.me=[];v.me.length=w.L.length;v.ja=new ta(0,0,0,0);v.re=new ta(0,0,-1,-1);v.Tb=new ta(0,0,-1,-1);v.Hb=new va;v.el=[];v.r=Gb;v.Gx=Hb;v.zb=Ib;v.W=Jb;v.xw=Kb;v.tr=Lb;v.td=Mb}v.pi=!1;v.uw=0;v.sw=0;v.rw=null;14===t.length&&(v.pi=!0,v.uw=t[13][0],v.sw=t[13][1],v.rw=t[13][2]);c=0;for(k=w.L.length;c<k;c++)v.me[c]=!0;v.de=!0;v.kd=Nb;v.kd();v.ur=!!v.ba.length;
v.dl=!0;v.il=!0;w.Ci=!0;v.visible=!0;v.Rh=-1;v.i=d;v.ld=d.e.length;v.ef=0;"undefined"===typeof v.la&&(v.la=null);this.V=v.Jd=!0}var q;U(K);c=0;for(k=w.Ca.length;c<k;c++)K.push.apply(K,w.Ca[c].Ra);K.push.apply(K,w.Ra);if(v.wc)for(c=0,k=K.length;c<k;c++){var n=K[c];q=v.F[c];q.wc=!0;n.behavior.ma.call(q,n,v);t=a[4][c];l=0;for(f=t.length;l<f;l++)q.A[l]=t[l];q.S();n.behavior.Wj.add(v)}else for(v.F=[],c=0,k=K.length;c<k;c++)n=K[c],q=new n.behavior.ma(n,v),q.wc=!1,q.A=a[4][c].slice(0),q.S(),v.F.push(q),
n.behavior.Wj.add(v);t=a[5];if(v.wc)for(c=0,k=t.length;c<k;c++)v.A[c]=t[c];else v.A=t.slice(0);this.Wc.push(v);this.ye=!0;d&&(d.Qg(v,!0),1!==d.Ic||1!==d.Jc)&&(w.Di=!0);this.Zj++;if(w.Fc){if(v.Fc=!0,v.wc?U(v.siblings):v.siblings=[],!h&&!m){c=0;for(k=w.Zb.length;c<k;c++)if(w.Zb[c]!==w){if(!w.Zb[c].pd)return null;v.siblings.push(this.$e(w.Zb[c].pd,g,!1,r?v.x:e,r?v.y:b,!0))}c=0;for(k=v.siblings.length;c<k;c++)for(v.siblings[c].siblings.push(v),l=0;l<k;l++)c!==l&&v.siblings[c].siblings.push(v.siblings[l])}}else v.Fc=
!1,v.siblings=null;v.S();c=0;for(k=v.F.length;c<k;c++)v.F[c].Kv&&v.F[c].Kv();return v};f.prototype.Ml=function(a){var d,h;d=0;for(h=this.pa.N.length;d<h;d++){var e=this.pa.N[d];if(jb(e.name,a))return e}return null};f.prototype.eh=function(a){a=S(a);0>a&&(a=0);a>=this.pa.N.length&&(a=this.pa.N.length-1);return this.pa.N[a]};f.prototype.ll=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].ea().qa=!0};f.prototype.Xh=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Xh()};f.prototype.nk=function(a){var d,
h;d=0;for(h=a.length;d<h;d++)a[d].nk()};f.prototype.Bf=function(a){var d,h;d=0;for(h=a.length;d<h;d++)a[d].Bf()};f.prototype.qr=function(a){if(a.Ci){var d,h,e=a.e;d=0;for(h=e.length;d<h;++d)e[d].tr();e=this.Wc;d=0;for(h=e.length;d<h;++d)e[d].type===a&&e[d].tr();a.Ci=!1}};f.prototype.Vo=function(a,d,h,e){var b,c,m=a?1!==a.Ic||1!==a.Jc:!1;if(d.H)for(a=0,b=d.Vj.length;a<b;++a)c=d.Vj[a],m||c.Di?Aa(e,c.e):(this.qr(c),c.Oi.pk(h,e));else m||d.Di?Aa(e,d.e):(this.qr(d),d.Oi.pk(h,e))};f.prototype.cp=function(a,
d,h,e){var b,c;b=0;for(c=d.length;b<c;++b)this.Vo(a,d[b],h,e)};f.prototype.Lu=function(a,d,h){var e=this.Zq;e&&this.cp(a,e.Xj,d,h)};f.prototype.Eu=function(a,d,h){var e=this.yp;e&&this.cp(a,e.Xj,d,h)};f.prototype.Hk=function(a,d,h){var e=a.ea(),b,c,m,k,l,f;if(e.qa)for(e.qa=!1,U(e.e),b=0,k=a.e.length;b<k;b++)m=a.e[b],m.W(),l=m.i.nb(d,h,!0),f=m.i.nb(d,h,!1),m.zb(l,f)&&e.e.push(m);else{b=c=0;for(k=e.e.length;b<k;b++)m=e.e[b],m.W(),l=m.i.nb(d,h,!0),f=m.i.nb(d,h,!1),m.zb(l,f)&&(e.e[c]=e.e[b],c++);e.e.length=
c}a.Ac();return e.Ul()};f.prototype.Oc=function(a,d){if(!(a&&d&&a!==d&&a.Jd&&d.Jd))return!1;a.W();d.W();var h=a.i,e=d.i,b,c,m,k,l,f,w,v;if(h===e||h.Ic===e.Ic&&e.Jc===e.Jc&&h.scale===e.scale&&h.m===e.m&&h.md===e.md){if(!a.ja.hv(d.ja)||!a.Hb.mp(d.Hb)||a.pi&&d.pi)return!1;if(a.pi)return this.dr(a,d);if(d.pi)return this.dr(d,a);w=a.la&&!a.la.fg();b=d.la&&!d.la.fg();if(!w&&!b)return!0;w?(a.la.Qf(a.width,a.height,a.m),w=a.la):(this.hd.Bg(a.Hb,a.x,a.y,a.width,a.height),w=this.hd);b?(d.la.Qf(d.width,d.height,
d.m),v=d.la):(this.hd.Bg(d.Hb,d.x,d.y,d.width,d.height),v=this.hd);return w.mh(v,d.x-a.x,d.y-a.y)}w=a.la&&!a.la.fg();b=d.la&&!d.la.fg();w?(a.la.Qf(a.width,a.height,a.m),this.hd.Qq(a.la)):this.hd.Bg(a.Hb,a.x,a.y,a.width,a.height);w=this.hd;b?(d.la.Qf(d.width,d.height,d.m),this.wn.Qq(d.la)):this.wn.Bg(d.Hb,d.x,d.y,d.width,d.height);v=this.wn;b=0;for(c=w.ed;b<c;b++)m=2*b,k=m+1,l=w.ab[m],f=w.ab[k],w.ab[m]=h.Ea(l+a.x,f+a.y,!0),w.ab[k]=h.Ea(l+a.x,f+a.y,!1);w.W();b=0;for(c=v.ed;b<c;b++)m=2*b,k=m+1,l=v.ab[m],
f=v.ab[k],v.ab[m]=e.Ea(l+d.x,f+d.y,!0),v.ab[k]=e.Ea(l+d.x,f+d.y,!1);v.W();return w.mh(v,0,0)};var ga=new va;new ta(0,0,0,0);var N=[];f.prototype.dr=function(a,d){var h,e,b,m,c=d.ja,k=a.x,l=a.y;a.Lx(c,N);var f=d.la&&!d.la.fg();h=0;for(e=N.length;h<e;++h)if(b=N[h],m=b.Yx,c.iv(m,k,l)&&(ga.ei(m),ga.offset(k,l),ga.mp(d.Hb)))if(f)if(d.la.Qf(d.width,d.height,d.m),b.Um){if(b.Um.mh(d.la,d.x-(k+m.left),d.y-(l+m.top)))return U(N),!0}else{if(this.hd.Bg(ga,0,0,m.right-m.left,m.bottom-m.top),this.hd.mh(d.la,d.x,
d.y))return U(N),!0}else if(b.Um){if(this.hd.Bg(d.Hb,0,0,d.width,d.height),b.Um.mh(this.hd,-(k+m.left),-(l+m.top)))return U(N),!0}else return U(N),!0;U(N);return!1};f.prototype.mr=function(a,d){if(!d)return!1;var h,e,b,m,c;h=0;for(e=a.Ra.length;h<e;h++)if(a.Ra[h].behavior instanceof d)return!0;if(!a.H)for(h=0,e=a.Ca.length;h<e;h++)for(c=a.Ca[h],b=0,m=c.Ra.length;b<m;b++)if(c.Ra[b].behavior instanceof d)return!0;return!1};f.prototype.En=function(a){return this.mr(a,cc.ax)};f.prototype.Fn=function(a){return this.mr(a,
cc.bx)};var D=[];f.prototype.nc=function(a){var d,h,e;a.W();this.Lu(a.i,a.ja,D);d=0;for(h=D.length;d<h;++d)if(e=D[d],e.M.solidEnabled&&this.Oc(a,e))return U(D),e;U(D);return null};var x=[];f.prototype.Oe=function(a,d){var h=null;d&&(h=x,U(h));a.W();this.Eu(a.i,a.ja,D);var e,b,m;e=0;for(b=D.length;e<b;++e)if(m=D[e],m.M.jumpthruEnabled&&this.Oc(a,m))if(d)h.push(m);else return U(D),m;U(D);return h};f.prototype.fd=function(a,d,h,e,b,m){e=e||50;var c=a.x,k=a.y,l,f=null,w=null;for(l=0;l<e;l++)if(a.x=c+
d*l,a.y=k+h*l,a.r(),!this.Oc(a,f)&&((f=this.nc(a))&&(w=f),!f&&(b&&(m?f=this.Oc(a,m)?m:null:f=this.Oe(a),f&&(w=f)),!f)))return w&&this.Ym(a,d,h,w),!0;a.x=c;a.y=k;a.r();return!1};f.prototype.Ym=function(a,d,h,e){var b=2,m,c=!1;m=!1;for(var k=a.x,l=a.y;16>=b;)m=1/b,b*=2,a.x+=d*m*(c?1:-1),a.y+=h*m*(c?1:-1),a.r(),this.Oc(a,e)?m=c=!0:(m=c=!1,k=a.x,l=a.y);m&&(a.x=k,a.y=l,a.r())};f.prototype.Rv=function(a,d){var h=ia(d)?100:d,e=0,b=a.x,m=a.y,c=0,k=0,l=0,f=this.nc(a);if(!f)return!0;for(;e<=h;){switch(c){case 0:k=
0;l=-1;e++;break;case 1:k=1;l=-1;break;case 2:k=1;l=0;break;case 3:l=k=1;break;case 4:k=0;l=1;break;case 5:k=-1;l=1;break;case 6:k=-1;l=0;break;case 7:l=k=-1}c=(c+1)%8;a.x=S(b+k*e);a.y=S(m+l*e);a.r();if(!this.Oc(a,f)&&(f=this.nc(a),!f))return!0}a.x=b;a.y=m;a.r();return!1};f.prototype.Zh=function(a,d){a.Jd&&d.Jd&&this.$h.push([a,d])};f.prototype.gt=function(a,d){var h,e,b;h=0;for(e=this.$h.length;h<e;h++)if(b=this.$h[h],b[0]==a&&b[1]==d||b[0]==d&&b[1]==a)return!0;return!1};var ea=-1;f.prototype.trigger=
function(a,d,h){if(!this.pa)return!1;var e=this.pa.ff;if(!e)return!1;var b=!1,m,c,k;ea++;var l=e.sl;c=0;for(k=l.length;c<k;++c)m=this.jr(a,d,l[c],h),b=b||m;m=this.jr(a,d,e,h);ea--;return b||m};f.prototype.jr=function(a,d,h,e){var b=!1,m,c,k,l;if(d)for(k=this.Cn(a,d,d.type.name,h,e),b=b||k,l=d.type.Ca,m=0,c=l.length;m<c;++m)k=this.Cn(a,d,l[m].name,h,e),b=b||k;else k=this.Cn(a,d,"system",h,e),b=b||k;return b};f.prototype.Cn=function(a,d,h,e,b){var m,c=!1,k=!1,k="undefined"!==typeof b,l=(k?e.Oo:e.kr)[h];
if(!l)return c;var f=null;e=0;for(m=l.length;e<m;++e)if(l[e].method==a){f=l[e].$g;break}if(!f)return c;var w;k?w=f[b]:w=f;if(!w)return null;e=0;for(m=w.length;e<m;e++)a=w[e][0],b=w[e][1],k=this.su(d,h,a,b),c=c||k;return c};f.prototype.su=function(a,d,h,e){var b,m,c=!1;this.Dn++;var k=this.Bb().$b;k&&this.Xh(k.Le);var l=1<this.Dn;this.Xh(h.Le);l&&this.Qv();var f=this.ok(h);f.$b=h;a&&(b=this.types[d].ea(),b.qa=!1,U(b.e),b.e[0]=a,this.types[d].Ac());a=!0;if(h.parent){d=f.cr;for(b=h.parent;b;)d.push(b),
b=b.parent;d.reverse();b=0;for(m=d.length;b<m;b++)if(!d[b].aw()){a=!1;break}}a&&(this.ah++,h.ad?h.$v(e):h.Ua(),c=c||f.tf);this.jk();l&&this.Jv();this.Bf(h.Le);k&&this.Bf(k.Le);this.ye&&0===this.Wd&&0===ea&&!this.im&&this.tb();this.Dn--;return c};f.prototype.Wo=function(){var a=this.Bb();return a.$b.fb[a.eb]};f.prototype.Qv=function(){this.Qj++;this.Qj>=this.zm.length&&this.zm.push([])};f.prototype.Jv=function(){this.Qj--};f.prototype.Xo=function(){return this.zm[this.Qj]};f.prototype.ok=function(a){this.$i++;
this.$i>=this.xl.length&&this.xl.push(new Ob);var d=this.Bb();d.reset(a);return d};f.prototype.jk=function(){this.$i--};f.prototype.Bb=function(){return this.xl[this.$i]};f.prototype.Yo=function(a,d){for(var h,e,b,m,c,k;d;){h=0;for(e=d.Nc.length;h<e;h++)if(k=d.Nc[h],k instanceof Pb&&jb(a,k.name))return k;d=d.parent}h=0;for(e=this.Pd.length;h<e;h++)for(c=this.Pd[h],b=0,m=c.we.length;b<m;b++)if(k=c.we[b],k instanceof Pb&&jb(a,k.name))return k;return null};f.prototype.Zo=function(a){var d,h;d=0;for(h=
this.$c.length;d<h;d++)if(this.$c[d].X===a)return this.$c[d];return null};f.prototype.qj=function(a){var d,h;d=0;for(h=this.n.length;d<h;d++)if(this.n[d].X===a)return this.n[d];return null};f.prototype.Bu=function(a){var d,h;d=0;for(h=this.ne.length;d<h;d++)if(this.ne[d].X===a)return this.ne[d];return null};f.prototype.pt=function(a,d){this.ki=[a,d];this.V=!0};f.prototype.$u=function(){var d=this,h=this.kn,e=this.Xd,m=this.Jj,c=!1;this.Vq&&(c=!0,h="__c2_continuouspreview",this.Vq=!1);if(h.length){this.tb();
e=this.ew();if(window.indexedDB&&!this.Ec)u(h,e,function(){da("Saved state to IndexedDB storage ("+e.length+" bytes)");d.Xd=e;d.trigger(X.prototype.j.Wk,null);d.Xd="";c&&a()},function(b){try{localStorage.setItem("__c2save_"+h,e),da("Saved state to WebStorage ("+e.length+" bytes)"),d.Xd=e,d.trigger(X.prototype.j.Wk,null),d.Xd="",c&&a()}catch(m){da("Failed to save game state: "+b+"; "+m)}});else try{localStorage.setItem("__c2save_"+h,e),da("Saved state to WebStorage ("+e.length+" bytes)"),d.Xd=e,this.trigger(X.prototype.j.Wk,
null),d.Xd="",c&&a()}catch(k){da("Error saving to WebStorage: "+k)}this.Db=this.Jj=this.kn=""}if(m.length){if(window.indexedDB&&!this.Ec)b(m,function(a){a?(d.Db=a,da("Loaded state from IndexedDB storage ("+d.Db.length+" bytes)")):(d.Db=localStorage.getItem("__c2save_"+m)||"",da("Loaded state from WebStorage ("+d.Db.length+" bytes)"));d.mi=!1;d.Db.length||d.trigger(X.prototype.j.Vk,null)},function(){d.Db=localStorage.getItem("__c2save_"+m)||"";da("Loaded state from WebStorage ("+d.Db.length+" bytes)");
d.mi=!1;d.Db.length||d.trigger(X.prototype.j.Vk,null)});else{try{this.Db=localStorage.getItem("__c2save_"+m)||"",da("Loaded state from WebStorage ("+this.Db.length+" bytes)")}catch(l){this.Db=""}this.mi=!1;d.Db.length||d.trigger(X.prototype.j.Vk,null)}this.kn=this.Jj=""}this.Db.length&&(this.tb(),this.sv(this.Db),this.Xd=this.Db,this.trigger(X.prototype.j.ts,null),this.Db=this.Xd="")};f.prototype.ew=function(){var a,d,h,e,b,m,k,l={c2save:!0,version:1,rt:{time:this.kb.Y,walltime:this.je.Y,timescale:this.Jf,
tickcount:this.Ed,execcount:this.ah,next_uid:this.Sh,running_layout:this.pa.X,start_time_offset:Date.now()-this.Dk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(d=this.n.length;a<d;a++)if(b=this.n[a],!b.H&&!this.En(b)){m={instances:[]};Wa(b.M)&&(m.ex=c(b.M));h=0;for(e=b.e.length;h<e;h++)m.instances.push(this.jn(b.e[h]));l.types[b.X.toString()]=m}a=0;for(d=this.$c.length;a<d;a++)h=this.$c[a],l.layouts[h.X.toString()]=h.sb();e=l.events.groups;a=0;for(d=this.ne.length;a<d;a++)h=
this.ne[a],e[h.X.toString()]=this.rj[h.ih].hh;d=l.events.cnds;for(k in this.Rf)this.Rf.hasOwnProperty(k)&&(a=this.Rf[k],Wa(a.M)&&(d[k]={ex:c(a.M)}));d=l.events.acts;for(k in this.Of)this.Of.hasOwnProperty(k)&&(a=this.Of[k],Wa(a.M)&&(d[k]={ex:a.M}));d=l.events.vars;for(k in this.Kg)this.Kg.hasOwnProperty(k)&&(a=this.Kg[k],a.zj||a.parent&&!a.yh||(d[k]=a.data));l.system=this.Dd.sb();return JSON.stringify(l)};f.prototype.Hq=function(){var a,d,h,e,b,m;this.$d={};a=0;for(d=this.n.length;a<d;a++)if(h=this.n[a],
!h.H)for(e=0,b=h.e.length;e<b;e++)m=h.e[e],this.$d[m.uid.toString()]=m};f.prototype.sv=function(a){a=JSON.parse(a);if(a.c2save&&!(1<a.version)){this.qh=!0;var d=a.rt;this.kb.reset();this.kb.Y=d.time;this.je.reset();this.je.Y=d.walltime||0;this.Jf=d.timescale;this.Ed=d.tickcount;this.ah=d.execcount;this.Dk=Date.now()-d.start_time_offset;var h=d.running_layout;if(h!==this.pa.X)if(h=this.Zo(h))this.Ko(h);else return;var e,b,m,c,k,l,f;l=a.types;for(b in l)if(l.hasOwnProperty(b)&&(c=this.qj(parseInt(b,
10)))&&!c.H&&!this.En(c)){l[b].ex?c.M=l[b].ex:Xa(c.M);k=c.e;m=l[b].instances;h=0;for(e=na(k.length,m.length);h<e;h++)this.Kj(k[h],m[h]);h=m.length;for(e=k.length;h<e;h++)this.Re(k[h]);h=k.length;for(e=m.length;h<e;h++){k=null;if(c.Fa.Ce&&(k=this.pa.pj(m[h].w.l),!k))continue;k=this.$e(c.pd,k,!1,0,0,!0);this.Kj(k,m[h])}c.Eg=!0}this.tb();this.Hq();e=a.layouts;for(b in e)e.hasOwnProperty(b)&&(h=this.Zo(parseInt(b,10)))&&h.Kb(e[b]);e=a.events.groups;for(b in e)e.hasOwnProperty(b)&&(h=this.Bu(parseInt(b,
10)))&&this.rj[h.ih]&&this.rj[h.ih].Nq(e[b]);h=a.events.cnds;for(b in h)h.hasOwnProperty(b)&&this.Rf.hasOwnProperty(b)&&(this.Rf[b].M=h[b].ex);h=a.events.acts;for(b in h)h.hasOwnProperty(b)&&this.Of.hasOwnProperty(b)&&(this.Of[b].M=h[b].ex);h=a.events.vars;for(b in h)h.hasOwnProperty(b)&&this.Kg.hasOwnProperty(b)&&(this.Kg[b].data=h[b]);this.Sh=d.next_uid;this.qh=!1;h=0;for(e=this.fj.length;h<e;++h)k=this.fj[h],this.trigger(Object.getPrototypeOf(k.type.Fa).j.Wn,k);U(this.fj);this.Dd.Kb(a.system);
h=0;for(e=this.n.length;h<e;h++)if(c=this.n[h],!c.H&&!this.En(c))for(b=0,a=c.e.length;b<a;b++){k=c.e[b];if(c.Fc)for(l=k.gh(),U(k.siblings),d=0,m=c.Zb.length;d<m;d++)f=c.Zb[d],c!==f&&k.siblings.push(f.e[l]);k.nd&&k.nd();if(k.F)for(d=0,m=k.F.length;d<m;d++)l=k.F[d],l.nd&&l.nd()}this.V=!0}};f.prototype.jn=function(a,d){var h,e,b,m,k;m=a.type;b=m.Fa;var l={};d?l.c2=!0:l.uid=a.uid;Wa(a.M)&&(l.ex=c(a.M));if(a.Ya&&a.Ya.length)for(l.ivs={},h=0,e=a.Ya.length;h<e;h++)l.ivs[a.type.cm[h].toString()]=a.Ya[h];
if(b.Ce){b={x:a.x,y:a.y,w:a.width,h:a.height,l:a.i.X,zi:a.td()};0!==a.m&&(b.a=a.m);1!==a.opacity&&(b.o=a.opacity);.5!==a.Rb&&(b.hX=a.Rb);.5!==a.Sb&&(b.hY=a.Sb);0!==a.Wa&&(b.bm=a.Wa);a.visible||(b.v=a.visible);a.Jd||(b.ce=a.Jd);-1!==a.Rh&&(b.mts=a.Rh);if(m.L.length)for(b.fx=[],h=0,e=m.L.length;h<e;h++)k=m.L[h],b.fx.push({name:k.name,active:a.me[k.index],params:a.Ha[k.index]});l.w=b}if(a.F&&a.F.length)for(l.behs={},h=0,e=a.F.length;h<e;h++)m=a.F[h],m.sb&&(l.behs[m.type.X.toString()]=m.sb());a.sb&&(l.data=
a.sb());return l};f.prototype.Du=function(a,d){var h,e;h=0;for(e=a.cm.length;h<e;h++)if(a.cm[h]===d)return h;return-1};f.prototype.zu=function(a,d){var h,e;h=0;for(e=a.F.length;h<e;h++)if(a.F[h].type.X===d)return h;return-1};f.prototype.Kj=function(a,d,h){var e,b,m,c,k;k=a.type;c=k.Fa;if(h){if(!d.c2)return}else a.uid=d.uid;d.ex?a.M=d.ex:Xa(a.M);if(b=d.ivs)for(e in b)b.hasOwnProperty(e)&&(m=this.Du(k,parseInt(e,10)),0>m||m>=a.Ya.length||(a.Ya[m]=b[e]));if(c.Ce){m=d.w;a.i.X!==m.l&&(b=a.i,a.i=this.pa.pj(m.l),
a.i?(b.yg(a,!0),a.i.Qg(a,!0),a.r(),a.i.di(0)):(a.i=b,h||this.Re(a)));a.x=m.x;a.y=m.y;a.width=m.w;a.height=m.h;a.ld=m.zi;a.m=m.hasOwnProperty("a")?m.a:0;a.opacity=m.hasOwnProperty("o")?m.o:1;a.Rb=m.hasOwnProperty("hX")?m.hX:.5;a.Sb=m.hasOwnProperty("hY")?m.hY:.5;a.visible=m.hasOwnProperty("v")?m.v:!0;a.Jd=m.hasOwnProperty("ce")?m.ce:!0;a.Rh=m.hasOwnProperty("mts")?m.mts:-1;a.Wa=m.hasOwnProperty("bm")?m.bm:0;a.te=gb(a.Wa);this.q&&hb(a,a.Wa,this.q);a.r();if(m.hasOwnProperty("fx"))for(h=0,b=m.fx.length;h<
b;h++)c=k.Jl(m.fx[h].name),0>c||(a.me[c]=m.fx[h].active,a.Ha[c]=m.fx[h].params);a.kd()}if(k=d.behs)for(e in k)k.hasOwnProperty(e)&&(h=this.zu(a,parseInt(e,10)),0>h||a.F[h].Kb(k[e]));d.data&&a.Kb(d.data)};Qb=function(a){return new f(document.getElementById(a))};Rb=function(a,d){return new f({dc:!0,width:a,height:d})};window.cr_createRuntime=Qb;window.cr_createDCRuntime=Rb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");
a.Ei=!0;document.body.appendChild(a);a=new f(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new f(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();
window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,n){var f=window.cr_getC2Runtime();f&&f.pt(g,n)};window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var f=window.cr_getC2Runtime();f&&f.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,e){this.b=a;this.ff=null;this.scrollX=this.b.Oa/2;this.scrollY=this.b.Na/2;this.scale=1;this.m=0;this.Yf=!0;this.name=e[0];this.width=e[1];this.height=e[2];this.nr=e[3];this.Tq=e[4];this.X=e[5];var b=e[6],c,f;this.N=[];this.lh=[];c=0;for(f=b.length;c<f;c++){var g=new Sb(this,b[c]);g.hq=c;this.N.push(g)}b=e[7];this.pf=[];c=0;for(f=b.length;c<f;c++){var g=b[c],r=this.b.n[g[1]];r.pd||(r.pd=g);this.pf.push(g);-1===this.lh.indexOf(r)&&this.lh.push(r)}this.L=[];this.ba=[];this.de=
!0;this.Ha=[];c=0;for(f=e[8].length;c<f;c++)this.L.push({id:e[8][c][0],name:e[8][c][1],Va:-1,Kc:!1,oc:!0,index:c}),this.Ha.push(e[8][c][2].slice(0));this.kd();this.Je=new ta(0,0,1,1);this.an=new ta(0,0,1,1);this.Ie={}}function n(a,e){return a.ld-e.ld}function f(a,e){this.$a=a;this.b=a.b;this.e=[];this.scale=1;this.m=0;this.Od=!1;this.fe=new ta(0,0,0,0);this.ir=new va;this.za=this.wa=this.Aa=this.ua=0;this.Kf=!1;this.ke=-1;this.ml=0;this.name=e[0];this.index=e[1];this.X=e[2];this.visible=e[3];this.Uc=
e[4];this.jd=e[5];this.Ic=e[6];this.Jc=e[7];this.opacity=e[8];this.kj=e[9];this.zc=e[10];this.md=e[11];this.Wa=e[12];this.Nt=e[13];this.te="source-over";this.Ab=this.Eb=0;this.rb=null;this.Yd=p();this.gd=!0;this.ng=new ta(0,0,-1,-1);this.ob=new ta(0,0,-1,-1);this.zc&&(this.rb=new fb(this.b.Oa,this.b.Na));this.Ad=!1;var b=e[14],c,f;this.$q=[];this.tc=[];this.Vg=[];c=0;for(f=b.length;c<f;c++){var g=b[c],r=this.b.n[g[1]];r.pd||(r.pd=g,r.ot=this.index);this.tc.push(g);-1===this.$a.lh.indexOf(r)&&this.$a.lh.push(r)}za(this.$q,
this.tc);this.L=[];this.ba=[];this.de=!0;this.Ha=[];c=0;for(f=e[15].length;c<f;c++)this.L.push({id:e[15][c][0],name:e[15][c][1],Va:-1,Kc:!1,oc:!0,index:c}),this.Ha.push(e[15][c][2].slice(0));this.kd();this.Je=new ta(0,0,1,1);this.an=new ta(0,0,1,1)}function p(){return a.length?a.pop():[]}function q(d){U(d);a.push(d)}g.prototype.dw=function(a){var e=a.type.X.toString();this.Ie.hasOwnProperty(e)||(this.Ie[e]=[]);this.Ie[e].push(this.b.jn(a))};g.prototype.ep=function(){var a=this.N[0];return!a.jd&&1===
a.opacity&&!a.kj&&a.visible};g.prototype.kd=function(){U(this.ba);this.de=!0;var a,e,b;a=0;for(e=this.L.length;a<e;a++)b=this.L[a],b.oc&&(this.ba.push(b),b.Kc||(this.de=!1))};g.prototype.Il=function(a){var e,b,c;e=0;for(b=this.L.length;e<b;e++)if(c=this.L[e],c.name===a)return c;return null};var u=[],b=!0;g.prototype.un=function(){this.Tq&&(this.ff=this.b.yl[this.Tq],this.ff.Hn());this.b.pa=this;this.scrollX=this.b.Oa/2;this.scrollY=this.b.Na/2;var a,e,c,k,f,g,r;a=0;for(c=this.b.n.length;a<c;a++)if(e=
this.b.n[a],!e.H)for(f=e.e,e=0,k=f.length;e<k;e++)if(g=f[e],g.i){var h=g.i.hq;h>=this.N.length&&(h=this.N.length-1);g.i=this.N[h];-1===g.i.e.indexOf(g)&&g.i.e.push(g);g.i.Kf=!0}if(!b)for(a=0,c=this.N.length;a<c;++a)this.N[a].e.sort(n);U(u);this.ct();a=0;for(c=this.N.length;a<c;a++)g=this.N[a],g.lt(),g.Qk();f=!1;if(!this.Yf){for(r in this.Ie)if(this.Ie.hasOwnProperty(r)&&(e=this.b.qj(parseInt(r,10)))&&!e.H&&this.b.Fn(e)){k=this.Ie[r];a=0;for(c=k.length;a<c;a++){g=null;if(e.Fa.Ce&&(g=this.pj(k[a].w.l),
!g))continue;g=this.b.$e(e.pd,g,!1,0,0,!0);this.b.Kj(g,k[a]);f=!0;u.push(g)}U(k)}a=0;for(c=this.N.length;a<c;a++)this.N[a].e.sort(n),this.N[a].Kf=!0}f&&(this.b.tb(),this.b.Hq());for(a=0;a<u.length;a++)if(g=u[a],g.type.Fc)for(c=g.gh(),e=0,k=g.type.Zb.length;e<k;e++)r=g.type.Zb[e],g.type!==r&&(r.e.length>c?g.siblings.push(r.e[c]):r.pd&&(f=this.b.$e(r.pd,g.i,!0,g.x,g.y,!0),this.b.tb(),r.Ok(),g.siblings.push(f),u.push(f)));a=0;for(c=this.pf.length;a<c;a++)this.b.$e(this.pf[a],null,!0);this.b.Ye=null;
this.b.tb();if(this.b.na&&!this.b.Da)for(a=0,c=this.b.n.length;a<c;a++)r=this.b.n[a],!r.H&&r.e.length&&r.Vm&&r.Vm(this.b.na);if(this.b.qh)za(this.b.fj,u);else for(a=0,c=u.length;a<c;a++)g=u[a],this.b.trigger(Object.getPrototypeOf(g.type.Fa).j.Wn,g);U(u);this.b.qh||this.b.trigger(X.prototype.j.rs,null);this.Yf=!1};g.prototype.kt=function(){var a,e,b,c,f;e=a=0;for(b=this.pf.length;a<b;a++)c=this.pf[a],f=this.b.n[c[1]],f.global?f.Fc||this.b.$e(c,null,!0):(this.pf[e]=c,e++);ya(this.pf,e)};g.prototype.pw=
function(){this.b.qh||this.b.trigger(X.prototype.j.qs,null);this.b.fm=!0;U(this.b.Dd.Xb);var a,e,c,k,f,g;if(!this.Yf)for(a=0,e=this.N.length;a<e;a++)for(this.N[a].Jn(),f=this.N[a].e,c=0,k=f.length;c<k;c++)g=f[c],g.type.global||this.b.Fn(g.type)&&this.dw(g);a=0;for(e=this.N.length;a<e;a++){f=this.N[a].e;c=0;for(k=f.length;c<k;c++)g=f[c],g.type.global||this.b.Re(g);this.b.tb();U(f);this.N[a].Kf=!0}a=0;for(e=this.b.n.length;a<e;a++)if(f=this.b.n[a],!(f.global||f.Fa.Ce||f.Fa.Ck||f.H)){c=0;for(k=f.e.length;c<
k;c++)this.b.Re(f.e[c]);this.b.tb()}b=!1;this.b.fm=!1};new ta(0,0,0,0);g.prototype.qd=function(a){var e,b=a,c=!1,f=!this.b.rc;f&&(this.b.Ij||(this.b.Ij=document.createElement("canvas"),e=this.b.Ij,e.width=this.b.D,e.height=this.b.C,this.b.Ep=e.getContext("2d"),c=!0),e=this.b.Ij,b=this.b.Ep,e.width!==this.b.D&&(e.width=this.b.D,c=!0),e.height!==this.b.C&&(e.height=this.b.C,c=!0),c&&(b.webkitImageSmoothingEnabled=this.b.T,b.mozImageSmoothingEnabled=this.b.T,b.msImageSmoothingEnabled=this.b.T,b.imageSmoothingEnabled=
this.b.T));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.b.$k&&!this.ep()&&b.clearRect(0,0,this.b.D,this.b.C);var g,r,c=0;for(g=this.N.length;c<g;c++)r=this.N[c],r.visible&&0<r.opacity&&11!==r.Wa&&(r.e.length||!r.jd)?r.qd(b):r.Qk();f&&a.drawImage(e,0,0,this.b.width,this.b.height)};g.prototype.cf=function(a){a.Mq(!0);this.b.Ta||(this.b.Ta=a.qc(this.b.D,this.b.C,this.b.T));if(this.b.Ta.Xe!==this.b.D||this.b.Ta.We!==this.b.C)a.deleteTexture(this.b.Ta),this.b.Ta=a.qc(this.b.D,this.b.C,
this.b.T);a.Mc(this.b.Ta);this.b.rc||a.Ff(this.b.D,this.b.C);var e,b;for(e=this.N.length-1;0<=e;--e)b=this.N[e],b.visible&&1===b.opacity&&b.de&&0===b.Wa&&(b.e.length||!b.jd)?b.cf(a):b.Qk();a.Mq(!1)};g.prototype.ac=function(a){var e=0<this.ba.length||this.b.Ig||!this.b.rc||this.b.xa;if(e){this.b.Ta||(this.b.Ta=a.qc(this.b.D,this.b.C,this.b.T));if(this.b.Ta.Xe!==this.b.D||this.b.Ta.We!==this.b.C)a.deleteTexture(this.b.Ta),this.b.Ta=a.qc(this.b.D,this.b.C,this.b.T);a.Mc(this.b.Ta);this.b.rc||a.Ff(this.b.D,
this.b.C)}else this.b.Ta&&(a.Mc(null),a.deleteTexture(this.b.Ta),this.b.Ta=null);this.b.$k&&!this.ep()&&a.clear(0,0,0,0);var b,c,f;b=0;for(c=this.N.length;b<c;b++)f=this.N[b],f.visible&&0<f.opacity&&(f.e.length||!f.jd)?f.ac(a):f.Qk();e&&(0===this.ba.length||1===this.ba.length&&this.b.rc?(1===this.ba.length?(e=this.ba[0].index,a.Wb(this.ba[0].Va),a.Ag(null,1/this.b.D,1/this.b.C,0,0,1,1,this.scale,this.m,0,0,this.b.D/2,this.b.C/2,this.b.kb.Y,this.Ha[e]),a.mk(this.ba[0].Va)&&(this.b.V=!0)):a.Wb(0),this.b.rc||
a.Ff(this.b.width,this.b.height),a.Mc(null),a.Lq(!1),a.Ef(1),a.lc(this.b.Ta),a.Jq(),a.Lc(),a.yc(),e=this.b.width/2,b=this.b.height/2,a.Yh(-e,b,e,b,e,-b,-e,-b),a.lc(null),a.Lq(!0)):this.cn(a,null,null,null))};g.prototype.fh=function(){return 0<this.ba.length||this.b.Ig||!this.b.rc||this.b.xa?this.b.Ta:null};g.prototype.$o=function(){var a=this.N[0].ec(),e,b,c;e=1;for(b=this.N.length;e<b;e++)c=this.N[e],(0!==c.Ic||0!==c.Jc)&&c.ec()<a&&(a=c.ec());return a};g.prototype.ln=function(a){if(!this.nr){var e=
1/this.$o()*this.b.D/2;a>this.width-e&&(a=this.width-e);a<e&&(a=e)}this.scrollX!==a&&(this.scrollX=a,this.b.V=!0)};g.prototype.mn=function(a){if(!this.nr){var e=1/this.$o()*this.b.C/2;a>this.height-e&&(a=this.height-e);a<e&&(a=e)}this.scrollY!==a&&(this.scrollY=a,this.b.V=!0)};g.prototype.ct=function(){this.ln(this.scrollX);this.mn(this.scrollY)};g.prototype.cn=function(a,e,b,c){var f=b?b.ba:e?e.ba:this.ba,g=1,r=0,h=0,m=0,w=this.b.D,t=this.b.C;b?(g=b.i.ec(),r=b.i.La(),h=b.i.ua,m=b.i.wa,w=b.i.Aa,t=
b.i.za):e&&(g=e.ec(),r=e.La(),h=e.ua,m=e.wa,w=e.Aa,t=e.za);var v=this.b.Fl,q,n,p,u,K=0,ga=1,N,D=this.b.D,x=this.b.C,ea=D/2,A=x/2,B=e?e.Je:this.Je,I=e?e.an:this.an,L=0,P=0,H=0,F=0,M=D,qa=D,O=x,ua=x,la=p=0;u=b?b.i.La():0;if(b){q=0;for(n=f.length;q<n;q++)p+=a.Iu(f[q].Va),la+=a.Ju(f[q].Va);F=b.ja;L=e.Ea(F.left,F.top,!0,!0);H=e.Ea(F.left,F.top,!1,!0);M=e.Ea(F.right,F.bottom,!0,!0);O=e.Ea(F.right,F.bottom,!1,!0);0!==u&&(q=e.Ea(F.right,F.top,!0,!0),n=e.Ea(F.right,F.top,!1,!0),P=e.Ea(F.left,F.bottom,!0,!0),
F=e.Ea(F.left,F.bottom,!1,!0),u=Math.min(L,M,q,P),M=Math.max(L,M,q,P),L=u,u=Math.min(H,O,n,F),O=Math.max(H,O,n,F),H=u);L-=p;H-=la;M+=p;O+=la;I.left=L/D;I.top=1-H/x;I.right=M/D;I.bottom=1-O/x;P=L=S(L);F=H=S(H);qa=M=pa(M);ua=O=pa(O);P-=p;F-=la;qa+=p;ua+=la;0>L&&(L=0);0>H&&(H=0);M>D&&(M=D);O>x&&(O=x);0>P&&(P=0);0>F&&(F=0);qa>D&&(qa=D);ua>x&&(ua=x);B.left=L/D;B.top=1-H/x;B.right=M/D;B.bottom=1-O/x}else B.left=I.left=0,B.top=I.top=0,B.right=I.right=1,B.bottom=I.bottom=1;la=b&&(a.Vh(f[0].Va)||0!==p||0!==
la||1!==b.opacity||b.type.Fa.aq)||e&&!b&&1!==e.opacity;a.Jq();if(la){v[K]||(v[K]=a.qc(D,x,this.b.T));if(v[K].Xe!==D||v[K].We!==x)a.deleteTexture(v[K]),v[K]=a.qc(D,x,this.b.T);a.Wb(0);a.Mc(v[K]);N=ua-F;a.clearRect(P,x-F-N,qa-P,N);b?b.ac(a):(a.lc(this.b.Za),a.Ef(e.opacity),a.Lc(),a.translate(-ea,-A),a.yc(),a.zd(L,O,M,O,M,H,L,H,B));I.left=I.top=0;I.right=I.bottom=1;b&&(u=B.top,B.top=B.bottom,B.bottom=u);K=1;ga=0}a.Ef(1);p=f.length-1;var Ha=a.Xm(f[p].Va)||!e&&!b&&!this.b.rc,ha=0;q=0;for(n=f.length;q<
n;q++){v[K]||(v[K]=a.qc(D,x,this.b.T));if(v[K].Xe!==D||v[K].We!==x)a.deleteTexture(v[K]),v[K]=a.qc(D,x,this.b.T);a.Wb(f[q].Va);ha=f[q].index;a.mk(f[q].Va)&&(this.b.V=!0);0!=q||la?(a.Ag(c,1/D,1/x,I.left,I.top,I.right,I.bottom,g,r,h,m,(h+w)/2,(m+t)/2,this.b.kb.Y,b?b.Ha[ha]:e?e.Ha[ha]:this.Ha[ha]),a.lc(null),q!==p||Ha?(a.Mc(v[K]),N=ua-F,u=x-F-N,a.clearRect(P,u,qa-P,N)):(b?a.Ke(b.Eb,b.Ab):e&&a.Ke(e.Eb,e.Ab),a.Mc(c)),a.lc(v[ga]),a.Lc(),a.translate(-ea,-A),a.yc(),a.zd(L,O,M,O,M,H,L,H,B),q!==p||Ha||a.lc(null)):
(a.Mc(v[K]),N=ua-F,u=x-F-N,a.clearRect(P,u,qa-P,N),b?(a.Ag(c,1/b.width,1/b.height,I.left,I.top,I.right,I.bottom,g,r,h,m,(h+w)/2,(m+t)/2,this.b.kb.Y,b.Ha[ha]),b.ac(a)):(a.Ag(c,1/D,1/x,0,0,1,1,g,r,h,m,(h+w)/2,(m+t)/2,this.b.kb.Y,e?e.Ha[ha]:this.Ha[ha]),a.lc(e?this.b.Za:this.b.Ta),a.Lc(),a.translate(-ea,-A),a.yc(),a.zd(L,O,M,O,M,H,L,H,B)),I.left=I.top=0,I.right=I.bottom=1,b&&!Ha&&(u=O,O=H,H=u));K=0===K?1:0;ga=0===K?1:0}Ha&&(a.Wb(0),b?a.Ke(b.Eb,b.Ab):e?a.Ke(e.Eb,e.Ab):this.b.rc||(a.Ff(this.b.width,this.b.height),
ea=this.b.width/2,A=this.b.height/2,H=L=0,M=this.b.width,O=this.b.height),a.Mc(c),a.lc(v[ga]),a.Lc(),a.translate(-ea,-A),a.yc(),b&&1===f.length&&!la?a.zd(L,H,M,H,M,O,L,O,B):a.zd(L,O,M,O,M,H,L,H,B),a.lc(null))};g.prototype.pj=function(a){var b,c;b=0;for(c=this.N.length;b<c;b++)if(this.N[b].X===a)return this.N[b];return null};g.prototype.sb=function(){var a,b,c,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.m,w:this.width,h:this.height,fv:this.Yf,persist:this.Ie,fx:[],layers:{}};a=0;for(b=this.L.length;a<
b;a++)c=this.L[a],k.fx.push({name:c.name,active:c.oc,params:this.Ha[c.index]});a=0;for(b=this.N.length;a<b;a++)c=this.N[a],k.layers[c.X.toString()]=c.sb();return k};g.prototype.Kb=function(a){var b,c,k,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.m=a.a;this.width=a.w;this.height=a.h;this.Ie=a.persist;"undefined"!==typeof a.fv&&(this.Yf=a.fv);var g=a.fx;b=0;for(c=g.length;b<c;b++)if(k=this.Il(g[b].name))k.oc=g[b].active,this.Ha[k.index]=g[b].params;this.kd();b=a.layers;for(f in b)b.hasOwnProperty(f)&&
(a=this.pj(parseInt(f,10)))&&a.Kb(b[f])};Eb=g;f.prototype.kd=function(){U(this.ba);this.de=!0;var a,b,c;a=0;for(b=this.L.length;a<b;a++)c=this.L[a],c.oc&&(this.ba.push(c),c.Kc||(this.de=!1))};f.prototype.Il=function(a){var b,c,k;b=0;for(c=this.L.length;b<c;b++)if(k=this.L[b],k.name===a)return k;return null};f.prototype.lt=function(){var a,b,c,k,f,g;b=a=0;for(c=this.tc.length;a<c;a++){k=this.tc[a];f=this.b.n[k[1]];g=this.b.Fn(f);f=!0;if(!g||this.$a.Yf)k=this.b.$e(k,this,!0),u.push(k),k.type.global&&
(f=!1,this.Vg.push(k.uid));f&&(this.tc[b]=this.tc[a],b++)}this.tc.length=b;this.b.tb();!this.b.p&&this.L.length&&(this.Wa=this.Nt);this.te=gb(this.Wa);this.b.q&&hb(this,this.Wa,this.b.q);this.gd=!0};f.prototype.yg=function(a,b){var c=Ba(this.e,a);0>c||(b&&this.zc&&a.Tb&&a.Tb.right>=a.Tb.left&&(a.W(),this.rb.update(a,a.Tb,null),a.Tb.set(0,0,-1,-1)),c===this.e.length-1?this.e.pop():(xa(this.e,c),this.di(c)),this.gd=!0)};f.prototype.Qg=function(a,b){a.ld=this.e.length;this.e.push(a);b&&this.zc&&a.Tb&&
a.r();this.gd=!0};f.prototype.Nv=function(a){this.e.unshift(a);this.di(0)};f.prototype.xv=function(a,b,c){var k=a.td();b=b.td();xa(this.e,k);k<b&&b--;c&&b++;b===this.e.length?this.e.push(a):this.e.splice(b,0,a);this.di(k<b?k:b)};f.prototype.di=function(a){-1===this.ke?this.ke=a:a<this.ke&&(this.ke=a);this.gd=this.Kf=!0};f.prototype.Jn=function(){if(this.Kf){-1===this.ke&&(this.ke=0);var a,b,c;if(this.zc)for(a=this.ke,b=this.e.length;a<b;++a)c=this.e[a],c.ld=a,this.rb.uv(c.Tb);else for(a=this.ke,b=
this.e.length;a<b;++a)this.e[a].ld=a;this.Kf=!1;this.ke=-1}};f.prototype.ec=function(a){return this.Fu()*(this.b.rc||a?this.b.Rg:1)};f.prototype.Fu=function(){return(this.scale*this.$a.scale-1)*this.md+1};f.prototype.La=function(){return this.Od?0:Ga(this.$a.m+this.m)};var a=[],c=[],t=[];f.prototype.Ol=function(){this.Jn();this.rb.pk(this.ua,this.wa,this.Aa,this.za,t);if(!t.length)return p();if(1===t.length){var a=p();za(a,t[0]);U(t);return a}for(var b=!0;1<t.length;){for(var a=t,f=void 0,k=void 0,
g=void 0,n=void 0,r=void 0,f=0,k=a.length;f<k-1;f+=2){var g=a[f],n=a[f+1],r=p(),h=g,m=n,w=r,E=0,v=0,u=0,T=h.length,z=m.length,J=void 0,K=void 0;for(w.length=T+z;E<T&&v<z;++u)J=h[E],K=m[v],J.ld<K.ld?(w[u]=J,++E):(w[u]=K,++v);for(;E<T;++E,++u)w[u]=h[E];for(;v<z;++v,++u)w[u]=m[v];b||(q(g),q(n));c.push(r)}1===k%2&&(b?(g=p(),za(g,a[k-1]),c.push(g)):c.push(a[k-1]));za(a,c);U(c);b=!1}a=t[0];U(t);return a};f.prototype.qd=function(a){this.Ad=this.kj||1!==this.opacity||0!==this.Wa;var b=this.b.canvas,c=a,k=
!1;this.Ad&&(this.b.Hj||(this.b.Hj=document.createElement("canvas"),b=this.b.Hj,b.width=this.b.D,b.height=this.b.C,this.b.Dp=b.getContext("2d"),k=!0),b=this.b.Hj,c=this.b.Dp,b.width!==this.b.D&&(b.width=this.b.D,k=!0),b.height!==this.b.C&&(b.height=this.b.C,k=!0),k&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T),this.jd&&c.clearRect(0,0,this.b.D,this.b.C));c.globalAlpha=1;c.globalCompositeOperation="source-over";
this.jd||(c.fillStyle="rgb("+this.Uc[0]+","+this.Uc[1]+","+this.Uc[2]+")",c.fillRect(0,0,this.b.D,this.b.C));c.save();this.Od=!0;var k=this.nb(0,0,!0,!0),f=this.nb(0,0,!1,!0);this.Od=!1;this.b.cd&&(k=Math.round(k),f=Math.round(f));this.sk(k,f,c);var g=this.ec();c.scale(g,g);c.translate(-k,-f);this.zc?(this.ob.left=this.rb.Nb(this.ua),this.ob.top=this.rb.Ob(this.wa),this.ob.right=this.rb.Nb(this.Aa),this.ob.bottom=this.rb.Ob(this.za),this.gd||!this.ob.Zg(this.ng)?(q(this.Yd),k=this.Ol(),this.gd=!1,
this.ng.Tg(this.ob)):k=this.Yd):k=this.e;for(var r,h=null,f=0,g=k.length;f<g;++f)r=k[f],r!==h&&(this.It(r,c),h=r);this.zc&&(this.Yd=k);c.restore();this.Ad&&(a.globalCompositeOperation=this.te,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};f.prototype.It=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.W();var c=a.ja;c.right<this.ua||c.bottom<this.wa||c.left>this.Aa||c.top>this.za||(b.globalCompositeOperation=a.te,a.qd(b))}};f.prototype.Qk=function(){this.Od=!0;var a=this.nb(0,0,!0,!0),b=
this.nb(0,0,!1,!0);this.Od=!1;this.b.cd&&(a=Math.round(a),b=Math.round(b));this.sk(a,b,null)};f.prototype.sk=function(a,b,c){var k=this.ec();this.ua=a;this.wa=b;this.Aa=a+1/k*this.b.D;this.za=b+1/k*this.b.C;a=this.La();0!==a&&(c&&(c.translate(this.b.D/2,this.b.C/2),c.rotate(-a),c.translate(this.b.D/-2,this.b.C/-2)),this.fe.set(this.ua,this.wa,this.Aa,this.za),this.fe.offset((this.ua+this.Aa)/-2,(this.wa+this.za)/-2),this.ir.Rq(this.fe,a),this.ir.zo(this.fe),this.fe.offset((this.ua+this.Aa)/2,(this.wa+
this.za)/2),this.ua=this.fe.left,this.wa=this.fe.top,this.Aa=this.fe.right,this.za=this.fe.bottom)};f.prototype.cf=function(a){if(this.Ad=this.kj){this.b.Za||(this.b.Za=a.qc(this.b.D,this.b.C,this.b.T));if(this.b.Za.Xe!==this.b.D||this.b.Za.We!==this.b.C)a.deleteTexture(this.b.Za),this.b.Za=a.qc(this.b.D,this.b.C,this.b.T);a.Mc(this.b.Za)}this.Od=!0;var b=this.nb(0,0,!0,!0),c=this.nb(0,0,!1,!0);this.Od=!1;this.b.cd&&(b=Math.round(b),c=Math.round(c));this.sk(b,c,null);b=this.ec();a.Lc();a.scale(b,
b);a.tk(-this.La());a.translate((this.ua+this.Aa)/-2,(this.wa+this.za)/-2);a.yc();this.zc?(this.ob.left=this.rb.Nb(this.ua),this.ob.top=this.rb.Ob(this.wa),this.ob.right=this.rb.Nb(this.Aa),this.ob.bottom=this.rb.Ob(this.za),this.gd||!this.ob.Zg(this.ng)?(q(this.Yd),b=this.Ol(),this.gd=!1,this.ng.Tg(this.ob)):b=this.Yd):b=this.e;for(var k,f=null,c=b.length-1;0<=c;--c)k=b[c],k!==f&&(this.Kt(b[c],a),f=k);this.zc&&(this.Yd=b);this.jd||(this.ml=this.b.ef++,a.xk(this.ml),a.Kq(1,1,1),a.Ro(),a.Vv())};f.prototype.ac=
function(a){var b=0,c=0;if(this.Ad=this.kj||1!==this.opacity||0<this.ba.length||0!==this.Wa){this.b.Za||(this.b.Za=a.qc(this.b.D,this.b.C,this.b.T));if(this.b.Za.Xe!==this.b.D||this.b.Za.We!==this.b.C)a.deleteTexture(this.b.Za),this.b.Za=a.qc(this.b.D,this.b.C,this.b.T);a.Mc(this.b.Za);this.jd&&a.clear(0,0,0,0)}this.jd||(this.b.xa?(a.xk(this.ml),a.Kq(this.Uc[0]/255,this.Uc[1]/255,this.Uc[2]/255),a.Ro(),a.jw()):a.clear(this.Uc[0]/255,this.Uc[1]/255,this.Uc[2]/255,1));this.Od=!0;var k=this.nb(0,0,!0,
!0),b=this.nb(0,0,!1,!0);this.Od=!1;this.b.cd&&(k=Math.round(k),b=Math.round(b));this.sk(k,b,null);k=this.ec();a.Lc();a.scale(k,k);a.tk(-this.La());a.translate((this.ua+this.Aa)/-2,(this.wa+this.za)/-2);a.yc();this.zc?(this.ob.left=this.rb.Nb(this.ua),this.ob.top=this.rb.Ob(this.wa),this.ob.right=this.rb.Nb(this.Aa),this.ob.bottom=this.rb.Ob(this.za),this.gd||!this.ob.Zg(this.ng)?(q(this.Yd),b=this.Ol(),this.gd=!1,this.ng.Tg(this.ob)):b=this.Yd):b=this.e;var f,g,r=null,c=0;for(f=b.length;c<f;++c)g=
b[c],g!==r&&(this.Jt(b[c],a),r=g);this.zc&&(this.Yd=b);this.Ad&&(b=this.ba.length?this.ba[0].Va:0,c=this.ba.length?this.ba[0].index:0,0===this.ba.length||1===this.ba.length&&!a.Xm(b)&&1===this.opacity?(1===this.ba.length?(a.Wb(b),a.Ag(this.$a.fh(),1/this.b.D,1/this.b.C,0,0,1,1,k,this.La(),this.ua,this.wa,(this.ua+this.Aa)/2,(this.wa+this.za)/2,this.b.kb.Y,this.Ha[c]),a.mk(b)&&(this.b.V=!0)):a.Wb(0),a.Mc(this.$a.fh()),a.Ef(this.opacity),a.lc(this.b.Za),a.Ke(this.Eb,this.Ab),a.Lc(),a.yc(),k=this.b.D/
2,b=this.b.C/2,a.Yh(-k,b,k,b,k,-b,-k,-b),a.lc(null)):this.$a.cn(a,this,null,this.$a.fh()))};f.prototype.Jt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.W();var c=a.ja;c.right<this.ua||c.bottom<this.wa||c.left>this.Aa||c.top>this.za||(b.xk(a.ef),a.ur?this.Lt(a,b):(b.Wb(0),b.Ke(a.Eb,a.Ab),a.ac(b)))}};f.prototype.Kt=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.W();var c=a.ja;c.right<this.ua||c.bottom<this.wa||c.left>this.Aa||c.top>this.za||(a.ef=this.b.ef++,0===a.Wa&&1===a.opacity&&
a.de&&a.cf&&(b.xk(a.ef),a.cf(b)))}};f.prototype.Lt=function(a,b){var c=a.ba[0].Va,k=a.ba[0].index,f=this.ec();if(1!==a.ba.length||b.Xm(c)||b.Pv(c)||(a.m||a.i.La())&&b.Vh(c)||1!==a.opacity||a.type.Fa.aq)this.$a.cn(b,this,a,this.Ad?this.b.Za:this.$a.fh()),b.Lc(),b.scale(f,f),b.tk(-this.La()),b.translate((this.ua+this.Aa)/-2,(this.wa+this.za)/-2),b.yc();else{b.Wb(c);b.Ke(a.Eb,a.Ab);b.mk(c)&&(this.b.V=!0);var g=0,r=0,h=0,m=0;b.Vh(c)&&(c=a.ja,g=this.Ea(c.left,c.top,!0,!0),r=this.Ea(c.left,c.top,!1,!0),
h=this.Ea(c.right,c.bottom,!0,!0),c=this.Ea(c.right,c.bottom,!1,!0),g=g/windowWidth,r=1-r/windowHeight,h=h/windowWidth,m=1-c/windowHeight);b.Ag(this.Ad?this.b.Za:this.$a.fh(),1/a.width,1/a.height,g,r,h,m,f,this.La(),this.ua,this.wa,(this.ua+this.Aa)/2,(this.wa+this.za)/2,this.b.kb.Y,a.Ha[k]);a.ac(b)}};f.prototype.nb=function(a,b,c,k){var f=this.b.devicePixelRatio;this.b.Be&&(a*=f,b*=f);var f=this.b.xq,g=this.b.yq,f=(this.$a.scrollX-f)*this.Ic+f,g=(this.$a.scrollY-g)*this.Jc+g,r=f,h=g,m=1/this.ec(!k);
k?(r-=this.b.D*m/2,h-=this.b.C*m/2):(r-=this.b.width*m/2,h-=this.b.height*m/2);r+=a*m;h+=b*m;b=this.La();0!==b&&(r-=f,h-=g,a=Math.cos(b),b=Math.sin(b),k=r*a-h*b,h=h*a+r*b,r=k+f,h+=g);return c?r:h};f.prototype.Ea=function(a,b,c,k){var f=this.b.xq,g=this.b.yq,r=(this.$a.scrollX-f)*this.Ic+f,h=(this.$a.scrollY-g)*this.Jc+g,g=r,f=h,m=this.La();if(0!==m){a-=r;b-=h;var w=Math.cos(-m),m=Math.sin(-m),t=a*w-b*m;b=b*w+a*m;a=t+r;b+=h}r=1/this.ec(!k);k?(g-=this.b.D*r/2,f-=this.b.C*r/2):(g-=this.b.width*r/2,f-=
this.b.height*r/2);g=(a-g)/r;f=(b-f)/r;a=this.b.devicePixelRatio;this.b.Be&&!k&&(g/=a,f/=a);return c?g:f};f.prototype.sb=function(){var a,b,c,k={s:this.scale,a:this.m,vl:this.ua,vt:this.wa,vr:this.Aa,vb:this.za,v:this.visible,bc:this.Uc,t:this.jd,px:this.Ic,py:this.Jc,o:this.opacity,zr:this.md,fx:[],cg:this.Vg,instances:[]};a=0;for(b=this.L.length;a<b;a++)c=this.L[a],k.fx.push({name:c.name,active:c.oc,params:this.Ha[c.index]});return k};f.prototype.Kb=function(a){var b,c,k;this.scale=a.s;this.m=a.a;
this.ua=a.vl;this.wa=a.vt;this.Aa=a.vr;this.za=a.vb;this.visible=a.v;this.Uc=a.bc;this.jd=a.t;this.Ic=a.px;this.Jc=a.py;this.opacity=a.o;this.md=a.zr;this.Vg=a.cg||[];za(this.tc,this.$q);var f=new ba;b=0;for(k=this.Vg.length;b<k;++b)f.add(this.Vg[b]);c=b=0;for(k=this.tc.length;b<k;++b)f.contains(this.tc[b][2])||(this.tc[c]=this.tc[b],++c);ya(this.tc,c);c=a.fx;b=0;for(k=c.length;b<k;b++)if(a=this.Il(c[b].name))a.oc=c[b].active,this.Ha[a.index]=c[b].params;this.kd();this.e.sort(n);this.Kf=!0};Sb=f})();
(function(){function g(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function f(a){var b,c,d,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=G.length&&(G.length=a.length+1);G[a.length]||(G[a.length]=[]);e=G[a.length];b=0;for(c=e.length;b<c;b++)if(d=e[b],g(a,d))return d;e.push(a);return a}
function p(a,b){this.b=a;this.kr={};this.Oo={};this.Vl=!1;this.hp=new ba;this.sl=[];this.al=[];this.name=b[0];var c=b[1];this.we=[];var d,e;d=0;for(e=c.length;d<e;d++)this.jp(c[d],null,this.we)}function q(a){this.type=a;this.e=[];this.da=[];this.qa=!0}function u(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.Le=[];this.fp=this.Lk=this.Bn=this.vj=this.group=this.Yq=!1;this.fb=[];this.Rc=[];this.Nc=[];this.ih="";this.hh=this.vj=this.group=!1;this.Pi=null;c[1]&&(this.ih=c[1][1].toLowerCase(),
this.group=!0,this.vj=!!c[1][0],this.Pi=[],this.hh=this.vj,this.b.ne.push(this),this.b.rj[this.ih]=this);this.ad=c[2];this.X=c[4];this.group||(this.b.yo[this.X.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var e=new Tb(this,d[a]);e.index=a;this.fb.push(e);this.so(e.type)}d=c[6];a=0;for(b=d.length;a<b;a++)e=new Ub(this,d[a]),e.index=a,this.Rc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.jp(c[a],this,this.Nc);this.Aj=!1;this.fb.length&&(this.Aj=null==this.fb[0].type&&
this.fb[0].pb==X.prototype.j.Tn)}function b(a,b){var c,d,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Fc))for(c=0,d=a.Zb.length;c<d;c++)e=a.Zb[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.pc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ia=[];this.M={};this.index=-1;this.Og=!1;this.pb=this.b.le(b[1]);this.trigger=0<b[3];this.No=2===b[3];this.vd=b[4];this.dm=b[5];this.qv=b[6];this.X=b[7];this.b.Rf[this.X.toString()]=this;-1===b[0]?(this.type=null,this.Ua=this.hn,this.Ve=null,this.Vc=-1):
(this.type=this.b.n[b[0]],this.Ua=this.qv?this.bw:this.gn,b[2]?(this.Ve=this.type.nj(b[2]),this.Vc=this.type.Hl(b[2])):(this.Ve=null,this.Vc=-1),this.pc.parent&&this.pc.parent.yk());this.No&&(this.Ua=this.cw);if(10===b.length){var c,d,e=b[9];c=0;for(d=e.length;c<d;c++){var k=new Vb(this,e[c]);this.O.push(k)}this.Ia.length=e.length}}function c(a,b){this.pc=a;this.sheet=a.sheet;this.b=a.b;this.O=[];this.Ia=[];this.M={};this.index=-1;this.Og=!1;this.pb=this.b.le(b[1]);-1===b[0]?(this.type=null,this.Ua=
this.hn,this.Ve=null,this.Vc=-1):(this.type=this.b.n[b[0]],this.Ua=this.gn,b[2]?(this.Ve=this.type.nj(b[2]),this.Vc=this.type.Hl(b[2])):(this.Ve=null,this.Vc=-1));this.X=b[3];this.b.Of[this.X.toString()]=this;if(6===b.length){var c,d,e=b[5];c=0;for(d=e.length;c<d;c++){var k=new Vb(this,e[c]);this.O.push(k)}this.Ia.length=e.length}}function t(){r++;y.length===r&&y.push(new Wb);return y[r]}function d(a,b){this.Hc=a;this.pc=a.pc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.rd=null;this.ee=0;this.get=
null;this.Fo=0;this.$a=null;this.key=0;this.object=null;this.index=0;this.si=this.Gf=this.si=this.Gf=this.Po=this.gf=this.ti=null;this.Qc=!1;var c,d,e;switch(b[0]){case 0:case 7:this.rd=new Xb(this,b[1]);this.ee=0;this.get=this.Pu;break;case 1:this.rd=new Xb(this,b[1]);this.ee=0;this.get=this.Qu;break;case 5:this.rd=new Xb(this,b[1]);this.ee=0;this.get=this.Uu;break;case 3:case 8:this.Fo=b[1];this.get=this.Nu;break;case 6:this.$a=this.b.pg[b[1]];this.get=this.Vu;break;case 9:this.key=b[1];this.get=
this.Tu;break;case 4:this.object=this.b.n[b[1]];this.get=this.Wu;this.pc.so(this.object);this.Hc instanceof Ub?this.pc.yk():this.pc.parent&&this.pc.parent.yk();break;case 10:this.index=b[1];a.type.H?(this.get=this.Ru,this.Qc=!0):this.get=this.Su;break;case 11:this.ti=b[1];this.gf=null;this.get=this.Ou;break;case 2:case 12:this.Po=b[1];this.get=this.Mu;break;case 13:for(this.get=this.Xu,this.Gf=[],this.si=[],c=1,d=b.length;c<d;c++)e=new Vb(this.Hc,b[c]),this.Gf.push(e),this.si.push(0)}}function e(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.name=c[1];this.vi=c[2];this.Zl=c[3];this.yh=!!c[4];this.zj=!!c[5];this.X=c[6];this.b.Kg[this.X.toString()]=this;this.data=this.Zl;this.parent?(this.xf=this.yh||this.zj?-1:this.b.mw++,this.b.Ws.push(this)):(this.xf=-1,this.b.Vs.push(this))}function l(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ta=[];this.kh=null;this.cv=c[1];this.oc=!0}function k(){this.cr=[];this.reset(null)}var G=[];p.prototype.toString=function(){return this.name};
p.prototype.jp=function(a,b,c){switch(a[0]){case 0:a=new Yb(this,b,a);if(a.ad)for(c.push(a),c=0,b=a.fb.length;c<b;c++)a.fb[c].trigger&&this.kp(a,c);else a.wp()?this.kp(a,0):c.push(a);break;case 1:a=new Pb(this,b,a);c.push(a);break;case 2:a=new Zb(this,b,a),c.push(a)}};p.prototype.Qa=function(){var a,b;a=0;for(b=this.we.length;a<b;a++)this.we[a].Qa(a<b-1&&this.we[a+1].Aj)};p.prototype.Hn=function(){U(this.sl);U(this.al);this.ro(this);U(this.al)};p.prototype.ro=function(a){var b,c,d,e,k=a.sl,f=a.al,
g=this.hp.he();b=0;for(c=g.length;b<c;++b)d=g[b],e=d.kh,!d.oc||a===e||-1<f.indexOf(e)||(f.push(e),e.ro(a),k.push(e))};p.prototype.Ua=function(a){this.b.Zx||(this.Vl=!0,a||(this.b.im=!0));var b,c;b=0;for(c=this.we.length;b<c;b++){var d=this.we[b];d.Ua();this.b.ll(d.ta);this.b.ye&&this.b.tb()}a||(this.b.im=!1)};p.prototype.kp=function(a,b){a.ad||this.b.Nk.push(a);var c,d,e=a.fb[b],k;e.type?k=e.type.name:k="system";var f=(c=e.No)?this.Oo:this.kr;f[k]||(f[k]=[]);k=f[k];f=e.pb;if(c){if(e.O.length&&(e=
e.O[0],1===e.type&&2===e.rd.type)){e=e.rd.value.toLowerCase();c=0;for(d=k.length;c<d;c++)if(k[c].method==f){c=k[c].$g;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];k.push({method:f,$g:c})}}else{c=0;for(d=k.length;c<d;c++)if(k[c].method==f){k[c].$g.push([a,b]);return}Y&&f===Y.prototype.j.Nf?k.unshift({method:f,$g:[[a,b]]}):k.push({method:f,$g:[[a,b]]})}};Fb=p;q.prototype.Ul=function(){return this.qa?this.type.e.length:this.e.length};q.prototype.cc=function(){return this.qa?this.type.e:
this.e};q.prototype.Uh=function(a){a&&(a.b.Bb().$b.ad?(this.qa&&(U(this.e),za(this.da,a.type.e),this.qa=!1),a=this.da.indexOf(a),-1!==a&&(this.e.push(this.da[a]),this.da.splice(a,1))):(this.qa=!1,U(this.e),this.e[0]=a))};nb=q;window._c2hh_="74DDD18DAE671721F0CF4F9723274FC68763B3C9";u.prototype.Qa=function(a){var b,c=this.parent;if(this.group)for(this.Lk=!0;c;){if(!c.group){this.Lk=!1;break}c=c.parent}this.Bn=!this.wp()&&(!this.parent||this.parent.group&&this.parent.Lk);this.fp=!!a;this.Le=this.ta.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ta.length;a<b;a++)this.Ts(c.ta[a]);c=c.parent}this.ta=f(this.ta);this.Le=f(this.Le);a=0;for(b=this.fb.length;a<b;a++)this.fb[a].Qa();a=0;for(b=this.Rc.length;a<b;a++)this.Rc[a].Qa();a=0;for(b=this.Nc.length;a<b;a++)this.Nc[a].Qa(a<b-1&&this.Nc[a+1].Aj)};u.prototype.Nq=function(a){if(this.hh!==!!a){this.hh=!!a;var b;a=0;for(b=this.Pi.length;a<b;++a)this.Pi[a].pr();0<b&&this.b.pa.ff&&this.b.pa.ff.Hn()}};u.prototype.so=function(a){b(a,this.ta)};u.prototype.Ts=function(a){b(a,
this.Le)};u.prototype.yk=function(){this.Yq=!0;this.parent&&this.parent.yk()};u.prototype.wp=function(){return this.fb.length?this.fb[0].trigger:!1};u.prototype.Ua=function(){var a,b,c=!1,d=this.b,e=this.b.Bb();e.$b=this;var k=this.fb;this.Aj||(e.ul=!1);if(this.ad){0===k.length&&(c=!0);e.eb=0;for(a=k.length;e.eb<a;e.eb++)b=k[e.eb],b.trigger||(b=b.Ua())&&(c=!0);(e.tf=c)&&this.uk()}else{e.eb=0;for(a=k.length;e.eb<a;e.eb++)if(b=k[e.eb].Ua(),!b){e.tf=!1;this.Bn&&d.ye&&d.tb();return}e.tf=!0;this.uk()}this.Pt(e)};
u.prototype.Pt=function(a){a.tf&&this.fp&&(a.ul=!0);this.Bn&&this.b.ye&&this.b.tb()};u.prototype.$v=function(a){this.b.Bb().$b=this;this.fb[a].Ua()&&(this.uk(),this.b.Bb().tf=!0)};u.prototype.uk=function(){var a=this.b.Bb(),b;a.Yb=0;for(b=this.Rc.length;a.Yb<b;a.Yb++)if(this.Rc[a.Yb].Ua())return;this.Iq()};u.prototype.Xv=function(){var a=this.b.Bb(),b;for(b=this.Rc.length;a.Yb<b;a.Yb++)if(this.Rc[a.Yb].Ua())return;this.Iq()};u.prototype.Iq=function(){if(this.Nc.length){var a,b,c,d,e=this.Nc.length-
1;this.b.ok(this);if(this.Yq)for(a=0,b=this.Nc.length;a<b;a++)c=this.Nc[a],(d=!this.Lk||!this.group&&a<e)&&this.b.nk(c.ta),c.Ua(),d?this.b.Bf(c.ta):this.b.ll(c.ta);else for(a=0,b=this.Nc.length;a<b;a++)this.Nc[a].Ua();this.b.jk()}};u.prototype.aw=function(){var a=this.b.Bb();a.$b=this;var b=!1,c;a.eb=0;for(c=this.fb.length;a.eb<c;a.eb++)if(this.fb[a.eb].Ua())b=!0;else if(!this.ad)return!1;return this.ad?b:!0};u.prototype.Yv=function(){this.b.ah++;var a=this.b.Bb().eb,b=this.b.ok(this);if(!this.ad)for(b.eb=
a+1,a=this.fb.length;b.eb<a;b.eb++)if(!this.fb[b.eb].Ua()){this.b.jk();return}this.uk();this.b.jk()};u.prototype.lv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.fb[b].type===a.type)return!1;return!0};Yb=u;a.prototype.Qa=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Qa(),c.Qc&&(this.Og=!0)};a.prototype.cw=function(){return!0};a.prototype.hn=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ia[a]=this.O[a].get();return Va(this.pb.apply(this.b.Dd,this.Ia),
this.dm)};a.prototype.bw=function(){var a,b;a=0;for(b=this.O.length;a<b;a++)this.Ia[a]=this.O[a].get();a=this.pb.apply(this.Ve?this.Ve:this.type,this.Ia);this.type.Ac();return a};a.prototype.gn=function(){var a,b,c,d,e,k,f,g,l=this.type,r=l.ea(),t=this.pc.ad&&!this.trigger;b=0;var q=l.Fc,n=l.H,p=l.Qd,u=this.Vc,y=-1<u,G=this.Og,I=this.O,L=this.Ia,P=this.dm,H=this.pb,F;if(G)for(b=0,e=I.length;b<e;++b)k=I[b],k.Qc||(L[b]=k.get(0));else for(b=0,e=I.length;b<e;++b)L[b]=I[b].get(0);if(r.qa){U(r.e);U(r.da);
F=l.e;a=0;for(d=F.length;a<d;++a){g=F[a];if(G)for(b=0,e=I.length;b<e;++b)k=I[b],k.Qc&&(L[b]=k.get(a));y?(b=0,n&&(b=g.type.Xf[p]),b=H.apply(g.F[u+b],L)):b=H.apply(g,L);(f=Va(b,P))?r.e.push(g):t&&r.da.push(g)}l.finish&&l.finish(!0);r.qa=!1;l.Ac();return r.Ul()}c=0;F=(f=t&&!this.pc.lv(this))?r.da:r.e;var M=!1;a=0;for(d=F.length;a<d;++a){g=F[a];if(G)for(b=0,e=I.length;b<e;++b)k=I[b],k.Qc&&(L[b]=k.get(a));y?(b=0,n&&(b=g.type.Xf[p]),b=H.apply(g.F[u+b],L)):b=H.apply(g,L);if(Va(b,P))if(M=!0,f){if(r.e.push(g),
q)for(b=0,e=g.siblings.length;b<e;b++)k=g.siblings[b],k.type.ea().e.push(k)}else{F[c]=g;if(q)for(b=0,e=g.siblings.length;b<e;b++)k=g.siblings[b],k.type.ea().e[c]=k;c++}else if(f){F[c]=g;if(q)for(b=0,e=g.siblings.length;b<e;b++)k=g.siblings[b],k.type.ea().da[c]=k;c++}else if(t&&(r.da.push(g),q))for(b=0,e=g.siblings.length;b<e;b++)k=g.siblings[b],k.type.ea().da.push(k)}ya(F,c);if(q)for(n=l.Zb,a=0,d=n.length;a<d;a++)g=n[a].ea(),f?ya(g.da,c):ya(g.e,c);c=M;if(f&&!M)for(a=0,d=r.e.length;a<d;a++){g=r.e[a];
if(G)for(b=0,e=I.length;b<e;b++)k=I[b],k.Qc&&(L[b]=k.get(a));b=y?H.apply(g.F[u],L):H.apply(g,L);if(Va(b,P)){M=!0;break}}l.finish&&l.finish(c||t);return t?M:r.Ul()};Tb=a;c.prototype.Qa=function(){var a,b,c;a=0;for(b=this.O.length;a<b;a++)c=this.O[a],c.Qa(),c.Qc&&(this.Og=!0)};c.prototype.hn=function(){var a=this.b,b,c,d=this.O,e=this.Ia;b=0;for(c=d.length;b<c;++b)e[b]=d[b].get();return this.pb.apply(a.Dd,e)};c.prototype.gn=function(){var a=this.type,b=this.Vc,c=a.Qd,d=this.Og,e=this.O,k=this.Ia,f=
this.pb,g=a.ea().cc(),a=a.H,l=-1<b,r,t,q,n,p,u;if(d)for(t=0,n=e.length;t<n;++t)p=e[t],p.Qc||(k[t]=p.get(0));else for(t=0,n=e.length;t<n;++t)k[t]=e[t].get(0);r=0;for(q=g.length;r<q;++r){u=g[r];if(d)for(t=0,n=e.length;t<n;++t)p=e[t],p.Qc&&(k[t]=p.get(r));l?(t=0,a&&(t=u.type.Xf[c]),f.apply(u.F[b+t],k)):f.apply(u,k)}return!1};Ub=c;var y=[],r=-1;d.prototype.Qa=function(){var a,b;if(11===this.type)this.gf=this.b.Yo(this.ti,this.pc.parent);else if(13===this.type)for(a=0,b=this.Gf.length;a<b;a++)this.Gf[a].Qa();
this.rd&&this.rd.Qa()};d.prototype.wv=function(a){this.Qc||!a||a.Fa.Ck||(this.Qc=!0)};d.prototype.Pq=function(){this.Qc=!0};d.prototype.Pu=function(a){this.ee=a||0;a=t();this.rd.get(a);r--;return a.data};d.prototype.Qu=function(a){this.ee=a||0;a=t();this.rd.get(a);r--;return Q(a.data)?a.data:""};d.prototype.Wu=function(){return this.object};d.prototype.Nu=function(){return this.Fo};d.prototype.Uu=function(a){this.ee=a||0;a=t();this.rd.get(a);r--;return a.jb()?this.b.eh(a.data):this.b.Ml(a.data)};
d.prototype.Vu=function(){return this.$a};d.prototype.Tu=function(){return this.key};d.prototype.Su=function(){return this.index};d.prototype.Ru=function(a){a=a||0;var b=this.Hc.type,c=null,c=b.ea(),d=c.cc();if(d.length)c=d[a%d.length].type;else if(c.da.length)c=c.da[a%c.da.length].type;else if(b.e.length)c=b.e[a%b.e.length].type;else return 0;return this.index+c.cj[b.Qd]};d.prototype.Ou=function(){return this.gf};d.prototype.Mu=function(){return this.Po};d.prototype.Xu=function(){var a,b;a=0;for(b=
this.Gf.length;a<b;a++)this.si[a]=this.Gf[a].get();return this.si};Vb=d;e.prototype.Qa=function(){this.ta=f(this.ta)};e.prototype.be=function(a){var b=this.b.Xo();this.parent&&!this.yh&&b?(this.xf>=b.length&&(b.length=this.xf+1),b[this.xf]=a):this.data=a};e.prototype.kf=function(){var a=this.b.Xo();return!this.parent||this.yh||!a||this.zj?this.data:this.xf>=a.length||"undefined"===typeof a[this.xf]?this.Zl:a[this.xf]};e.prototype.Ua=function(){!this.parent||this.yh||this.zj||this.be(this.Zl)};Pb=
e;l.prototype.toString=function(){return"include:"+this.kh.toString()};l.prototype.Qa=function(){this.kh=this.b.yl[this.cv];this.sheet.hp.add(this);this.ta=f(this.ta);for(var a=this.parent;a;)a.group&&a.Pi.push(this),a=a.parent;this.pr()};l.prototype.Ua=function(){this.parent&&this.b.Xh(this.b.n);this.kh.Vl||this.kh.Ua(!0);this.parent&&this.b.Bf(this.b.n)};l.prototype.pr=function(){for(var a=this.parent;a;){if(a.group&&!a.hh){this.oc=!1;return}a=a.parent}this.oc=!0};Zb=l;k.prototype.reset=function(a){this.$b=
a;this.Yb=this.eb=0;U(this.cr);this.ul=this.tf=!1};Ob=k})();
(function(){function g(b,a){this.Hc=b;this.b=b.b;this.type=a[0];this.get=[this.fu,this.bu,this.ou,this.ru,this.Rt,this.pu,this.ju,this.Zt,this.iu,this.nu,this.St,this.mu,this.$t,this.ku,this.gu,this.hu,this.cu,this.du,this.Yt,this.qu,this.lu,this.eu,this.Xt,this.au][this.type];var c=null;this.Zd=this.O=this.Ia=this.pb=this.Jk=this.second=this.first=this.value=null;this.Vc=-1;this.Xc=null;this.xr=-1;this.gf=this.ti=null;this.zg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Xb(b,a[1]);break;case 18:this.first=new Xb(b,a[1]);this.second=new Xb(b,a[2]);this.Jk=new Xb(b,a[3]);break;case 19:this.pb=this.b.le(a[1]);this.pb!==X.prototype.ib.random&&this.pb!==X.prototype.ib.ht||this.Hc.Pq();this.Ia=[];this.O=[];3===a.length?(c=a[2],this.Ia.length=c.length+1):this.Ia.length=1;break;case 20:this.Zd=this.b.n[a[1]];this.Vc=-1;this.pb=this.b.le(a[2]);this.zg=a[3];bc.Function&&this.pb===bc.Function.prototype.ib.Kw&&this.Hc.Pq();a[4]?this.Xc=new Xb(b,a[4]):this.Xc=null;this.Ia=
[];this.O=[];6===a.length?(c=a[5],this.Ia.length=c.length+1):this.Ia.length=1;break;case 21:this.Zd=this.b.n[a[1]];this.zg=a[2];a[3]?this.Xc=new Xb(b,a[3]):this.Xc=null;this.xr=a[4];break;case 22:this.Zd=this.b.n[a[1]];this.Zd.nj(a[2]);this.Vc=this.Zd.Hl(a[2]);this.pb=this.b.le(a[3]);this.zg=a[4];a[5]?this.Xc=new Xb(b,a[5]):this.Xc=null;this.Ia=[];this.O=[];7===a.length?(c=a[6],this.Ia.length=c.length+1):this.Ia.length=1;break;case 23:this.ti=a[1],this.gf=null}this.Hc.wv(this.Zd);4<=this.type&&17>=
this.type&&(this.first=new Xb(b,a[1]),this.second=new Xb(b,a[2]));if(c){var f,d;f=0;for(d=c.length;f<d;f++)this.O.push(new Xb(b,c[f]))}}function n(){++u;q.length===u&&q.push(new Wb);return q[u]}function f(b,a,c){var f,d;f=0;for(d=b.length;f<d;++f)b[f].get(c),a[f+1]=c.data}function p(b,a){this.type=b||$b.Mf;this.data=a||0;this.zf=null;this.type==$b.Mf&&(this.data=Math.floor(this.data))}g.prototype.Qa=function(){23===this.type&&(this.gf=this.Hc.b.Yo(this.ti,this.Hc.pc.parent));this.first&&this.first.Qa();
this.second&&this.second.Qa();this.Jk&&this.Jk.Qa();this.Xc&&this.Xc.Qa();if(this.O){var b,a;b=0;for(a=this.O.length;b<a;b++)this.O[b].Qa()}};var q=[],u=-1;g.prototype.qu=function(b){var a=this.O,c=this.Ia;c[0]=b;b=n();f(a,c,b);--u;this.pb.apply(this.b.Dd,c)};g.prototype.lu=function(b){var a=this.Zd,c=this.Ia,g=this.O,d=this.Xc,e=this.pb,l=this.Hc.ee,k=a.ea(),q=k.cc();if(!q.length)if(k.da.length)q=k.da;else{this.zg?b.mc(""):b.ya(0);return}c[0]=b;b.zf=a;b=n();f(g,c,b);d&&(d.get(b),b.jb()&&(l=b.data,
q=a.e));--u;a=q.length;if(l>=a||l<=-a)l%=a;0>l&&(l+=a);e.apply(q[l],c)};g.prototype.Xt=function(b){var a=this.Zd,c=this.Ia,g=this.O,d=this.Xc,e=this.Vc,l=this.pb,k=this.Hc.ee,q=a.ea(),p=q.cc();if(!p.length)if(q.da.length)p=q.da;else{this.zg?b.mc(""):b.ya(0);return}c[0]=b;b.zf=a;b=n();f(g,c,b);d&&(d.get(b),b.jb()&&(k=b.data,p=a.e));--u;g=p.length;if(k>=g||k<=-g)k%=g;0>k&&(k+=g);k=p[k];p=0;a.H&&(p=k.type.Xf[a.Qd]);l.apply(k.F[e+p],c)};g.prototype.eu=function(b){var a=this.Xc,c=this.Zd,f=this.xr,d=this.Hc.ee,
e=c.ea(),g=e.cc();if(!g.length)if(e.da.length)g=e.da;else{this.zg?b.mc(""):b.ya(0);return}if(a){e=n();a.get(e);if(e.jb()){d=e.data;g=c.e;0!==g.length&&(d%=g.length,0>d&&(d+=g.length));d=c.Ll(d);c=d.Ya[f];Q(c)?b.mc(c):b.B(c);--u;return}--u}a=g.length;if(d>=a||d<=-a)d%=a;0>d&&(d+=a);d=g[d];g=0;c.H&&(g=d.type.cj[c.Qd]);c=d.Ya[f+g];Q(c)?b.mc(c):b.B(c)};g.prototype.fu=function(b){b.type=$b.Mf;b.data=this.value};g.prototype.bu=function(b){b.type=$b.Lf;b.data=this.value};g.prototype.ou=function(b){b.type=
$b.String;b.data=this.value};g.prototype.ru=function(b){this.first.get(b);b.jb()&&(b.data=-b.data)};g.prototype.Rt=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data+=a.data,a.gg()&&b.rg());--u};g.prototype.pu=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data-=a.data,a.gg()&&b.rg());--u};g.prototype.ju=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data*=a.data,a.gg()&&b.rg());--u};g.prototype.Zt=function(b){this.first.get(b);
var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data/=a.data,b.rg());--u};g.prototype.iu=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data%=a.data,a.gg()&&b.rg());--u};g.prototype.nu=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data=Math.pow(b.data,a.data),a.gg()&&b.rg());--u};g.prototype.St=function(b){this.first.get(b);var a=n();this.second.get(a);a.jg()||b.jg()?this.Ut(b,a):this.Tt(b,a);--u};g.prototype.Ut=function(b,a){b.jg()&&
a.jg()?this.Wt(b,a):this.Vt(b,a)};g.prototype.Wt=function(b,a){b.data+=a.data};g.prototype.Vt=function(b,a){b.jg()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.mc(b.data.toString()+a.data)};g.prototype.Tt=function(b,a){b.ya(b.data&&a.data?1:0)};g.prototype.mu=function(b){this.first.get(b);var a=n();this.second.get(a);b.jb()&&a.jb()&&(b.data||a.data?b.ya(1):b.ya(0));--u};g.prototype.Yt=function(b){this.first.get(b);b.data?this.second.get(b):this.Jk.get(b)};g.prototype.$t=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ya(b.data===a.data?1:0);--u};g.prototype.ku=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data!==a.data?1:0);--u};g.prototype.gu=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data<a.data?1:0);--u};g.prototype.hu=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data<=a.data?1:0);--u};g.prototype.cu=function(b){this.first.get(b);var a=n();this.second.get(a);b.ya(b.data>a.data?1:0);--u};g.prototype.du=function(b){this.first.get(b);
var a=n();this.second.get(a);b.ya(b.data>=a.data?1:0);--u};g.prototype.au=function(b){var a=this.gf.kf();C(a)?b.B(a):b.mc(a)};Xb=g;p.prototype.gg=function(){return this.type===$b.Lf};p.prototype.jb=function(){return this.type===$b.Mf||this.type===$b.Lf};p.prototype.jg=function(){return this.type===$b.String};p.prototype.rg=function(){this.gg()||(this.jg()&&(this.data=parseFloat(this.data)),this.type=$b.Lf)};p.prototype.ya=function(b){this.type=$b.Mf;this.data=Math.floor(b)};p.prototype.B=function(b){this.type=
$b.Lf;this.data=b};p.prototype.mc=function(b){this.type=$b.String;this.data=b};p.prototype.kw=function(b){C(b)?(this.type=$b.Lf,this.data=b):Q(b)?(this.type=$b.String,this.data=b.toString()):(this.type=$b.Mf,this.data=0)};Wb=p;$b={Mf:0,Lf:1,String:2}})();function X(g){this.b=g;this.Xb=[]}
X.prototype.sb=function(){var g={},n,f,p,q,u,b,a,c;g.waits=[];var t=g.waits,d;n=0;for(f=this.Xb.length;n<f;n++){b=this.Xb[n];d={t:b.time,st:b.Wq,s:b.tn,ev:b.Uf.X,sm:[],sols:{}};b.Uf.Rc[b.Yb]&&(d.act=b.Uf.Rc[b.Yb].X);p=0;for(q=b.ta.length;p<q;p++)d.sm.push(b.ta[p].X);for(u in b.Lb)if(b.Lb.hasOwnProperty(u)){a=this.b.n[parseInt(u,10)];c={sa:b.Lb[u].vk,insts:[]};p=0;for(q=b.Lb[u].Td.length;p<q;p++)c.insts.push(b.Lb[u].Td[p].uid);d.sols[a.X.toString()]=c}t.push(d)}return g};
X.prototype.Kb=function(g){g=g.waits;var n,f,p,q,u,b,a,c,t,d,e;U(this.Xb);n=0;for(f=g.length;n<f;n++)if(b=g[n],c=this.b.yo[b.ev.toString()]){t=-1;p=0;for(q=c.Rc.length;p<q;p++)if(c.Rc[p].X===b.act){t=p;break}if(-1!==t){a={Lb:{},ta:[],tl:!1};a.time=b.t;a.Wq=b.st||"";a.tn=!!b.s;a.Uf=c;a.Yb=t;p=0;for(q=b.sm.length;p<q;p++)(c=this.b.qj(b.sm[p]))&&a.ta.push(c);for(u in b.sols)if(b.sols.hasOwnProperty(u)&&(c=this.b.qj(parseInt(u,10)))){t=b.sols[u];d={vk:t.sa,Td:[]};p=0;for(q=t.insts.length;p<q;p++)(e=this.b.$f(t.insts[p]))&&
d.Td.push(e);a.Lb[c.index.toString()]=d}this.Xb.push(a)}}};
(function(){function g(){}function n(){}function f(){}var p=X.prototype;g.prototype.Lr=function(){return!0};g.prototype.rs=function(){return!0};g.prototype.qs=function(){return!0};g.prototype.Ir=function(b,a,c){return ac(b.kf(),a,c)};g.prototype.Tn=function(){var b=this.b.Bb();return b.ul?!1:!b.tf};g.prototype.bo=function(){return!0};g.prototype.$r=function(){return!0};g.prototype.Wk=function(){return!0};g.prototype.ts=function(){return!0};g.prototype.Vk=function(){return!0};g.prototype.Cr=function(b,
a,c){return La(W(b),W(c))<=W(a)};g.prototype.Qr=function(b,a){return Oa(W(b),W(a))};g.prototype.Pr=function(b,a,c){b=Ja(b);a=Ja(a);c=Ja(c);return Oa(c,a)?Oa(b,a)&&!Oa(b,c):!(!Oa(b,a)&&Oa(b,c))};p.j=new g;n.prototype.Es=function(b,a){0===b.vi?C(a)?b.be(a):b.be(parseFloat(a)):1===b.vi&&b.be(a.toString())};n.prototype.Br=function(b,a){0===b.vi?C(a)?b.be(b.kf()+a):b.be(b.kf()+parseFloat(a)):1===b.vi&&b.be(b.kf()+a.toString())};n.prototype.Ks=function(b,a){0===b.vi&&(C(a)?b.be(b.kf()-a):b.be(b.kf()-parseFloat(a)))};
var q=[],u=[];n.prototype.Ms=function(b){if(!(0>b)){var a,c,f,d=this.b.Bb(),e;q.length?e=q.pop():e={Lb:{},ta:[]};e.tl=!1;e.time=this.b.kb.Y+b;e.Wq="";e.tn=!1;e.Uf=d.$b;e.Yb=d.Yb+1;b=0;for(a=this.b.n.length;b<a;b++)f=this.b.n[b],c=f.ea(),c.qa&&-1===d.$b.ta.indexOf(f)||(e.ta.push(f),f=void 0,u.length?f=u.pop():f={Td:[]},f.vk=!1,f.vk=c.qa,za(f.Td,c.e),e.Lb[b.toString()]=f);this.Xb.push(e);return!0}};n.prototype.Nr=function(b){if(!this.b.kg&&!this.b.Ye)for(var a in this.b.pg)if(this.b.pg.hasOwnProperty(a)&&
jb(a,b)){this.b.Ye=this.b.pg[a];break}};n.prototype.vs=function(){if(!this.b.kg&&!this.b.Ye&&this.b.pa){this.b.Ye=this.b.pa;var b,a,c;b=0;for(a=this.b.ne.length;b<a;b++)c=this.b.ne[b],c.Nq(c.vj)}};p.P=new n;f.prototype["int"]=function(b,a){Q(a)?(b.ya(parseInt(a,10)),isNaN(b.data)&&(b.data=0)):b.ya(a)};f.prototype["float"]=function(b,a){Q(a)?(b.B(parseFloat(a)),isNaN(b.data)&&(b.data=0)):b.B(a)};f.prototype.random=function(b,a,c){void 0===c?b.B(Math.random()*a):b.B(Math.random()*(c-a)+a)};f.prototype.sqrt=
function(b,a){b.B(Math.sqrt(a))};f.prototype.abs=function(b,a){b.B(Math.abs(a))};f.prototype.round=function(b,a){b.ya(Math.round(a))};f.prototype.floor=function(b,a){b.ya(Math.floor(a))};f.prototype.ceil=function(b,a){b.ya(Math.ceil(a))};f.prototype.sin=function(b,a){b.B(Math.sin(W(a)))};f.prototype.cos=function(b,a){b.B(Math.cos(W(a)))};f.prototype.tan=function(b,a){b.B(Math.tan(W(a)))};f.prototype.asin=function(b,a){b.B(Ea(Math.asin(a)))};f.prototype.acos=function(b,a){b.B(Ea(Math.acos(a)))};f.prototype.atan=
function(b,a){b.B(Ea(Math.atan(a)))};f.prototype.exp=function(b,a){b.B(Math.exp(a))};f.prototype.log10=function(b,a){b.B(Math.log(a)/Math.LN10)};f.prototype.max=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,f,d;c=2;for(f=arguments.length;c<f;c++)d=arguments[c],"number"===typeof d&&a<d&&(a=d);b.B(a)};f.prototype.min=function(b){var a=arguments[1];"number"!==typeof a&&(a=0);var c,f,d;c=2;for(f=arguments.length;c<f;c++)d=arguments[c],"number"===typeof d&&a>d&&(a=d);b.B(a)};f.prototype.df=
function(b){b.B(this.b.df)};f.prototype.Jf=function(b){b.B(this.b.Jf)};f.prototype.time=function(b){b.B(this.b.kb.Y)};f.prototype.Ed=function(b){b.ya(this.b.Ed)};f.prototype.Zj=function(b){b.ya(this.b.Zj)};f.prototype.Dl=function(b){b.ya(this.b.Dl)};f.prototype.m=function(b,a,c,f,d){b.B(Ea(Ka(a,c,f,d)))};f.prototype.left=function(b,a,c){b.mc(Q(a)?a.substr(0,c):"")};f.prototype.right=function(b,a,c){b.mc(Q(a)?a.substr(a.length-c):"")};f.prototype.replace=function(b,a,c,f){Q(a)&&Q(c)&&Q(f)?b.mc(a.replace(new RegExp(cb(c),
"gi"),f)):b.mc(Q(a)?a:"")};f.prototype.trim=function(b,a){b.mc(Q(a)?a.trim():"")};f.prototype.ht=function(b){var a=S(Math.random()*(arguments.length-1));b.kw(arguments[a+1])};f.prototype.nl=function(b){b.B(this.b.nl/1E3)};f.prototype.Oj=function(b){b.B(this.b.Oj)};p.ib=new f;p.Zv=function(){var b,a,c,f,d,e,g=this.b.Bb();b=0;for(c=this.Xb.length;b<c;b++){f=this.Xb[b];if(-1===f.time){if(!f.tn)continue}else if(f.time>this.b.kb.Y)continue;g.$b=f.Uf;g.Yb=f.Yb;g.eb=0;for(a in f.Lb)f.Lb.hasOwnProperty(a)&&
(d=this.b.n[parseInt(a,10)].ea(),e=f.Lb[a],d.qa=e.vk,za(d.e,e.Td),d=e,U(d.Td),u.push(d));f.Uf.Xv();this.b.ll(f.ta);f.tl=!0}a=b=0;for(c=this.Xb.length;b<c;b++)f=this.Xb[b],this.Xb[a]=f,f.tl?(Xa(f.Lb),U(f.ta),q.push(f)):a++;ya(this.Xb,a)}})();
(function(){mb=function(g,f){var p=g[1],q=g[3],u=g[4],b=g[5],a=g[6],c=g[7],t=g[8];f.j||(f.j={});f.P||(f.P={});f.ib||(f.ib={});var d=f.j,e=f.P,l=f.ib;q&&(d.Nw=function(a,b){return ac(this.x,a,b)},d.Jr=function(a,b){return ac(this.y,a,b)},d.Sw=function(){var a=this.i;this.W();var b=this.ja;return!(b.right<a.ua||b.bottom<a.wa||b.left>a.Aa||b.top>a.za)},d.Tr=function(){this.W();var a=this.ja,b=this.b.pa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},d.gx=function(a,b,c){var d=this.ea(),
e=d.cc();if(!e.length)return!1;var f=e[0],g=f,l=Qa(f.x,f.y,b,c),q,n,t;q=1;for(n=e.length;q<n;q++)if(f=e[q],t=Qa(f.x,f.y,b,c),0===a&&t<l||1===a&&t>l)l=t,g=f;d.Uh(g);return!0},e.yx=function(a){this.x!==a&&(this.x=a,this.r())},e.zx=function(a){this.y!==a&&(this.y=a,this.r())},e.vx=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.r()},e.Cs=function(a,b){var c=a.Gu(this);if(c){var d;c.Kl?(d=c.Kl(b,!0),c=c.Kl(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.r()}},e.Xw=
function(a){0!==a&&(this.x+=Math.cos(this.m)*a,this.y+=Math.sin(this.m)*a,this.r())},e.Ww=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.r())},l.mo=function(a){a.B(this.x)},l.no=function(a){a.B(this.y)},l.df=function(a){a.B(this.b.oj(this))});u&&(d.Mw=function(a,b){return ac(this.width,a,b)},d.Gr=function(a,b){return ac(this.height,a,b)},e.Is=function(a){this.width!==a&&(this.width=a,this.r())},e.zs=function(a){this.height!==a&&(this.height=a,this.r())},e.wx=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.r()},l.Dx=function(a){a.B(this.width)},l.Or=function(a){a.B(this.height)},l.Hw=function(a){this.W();a.B(this.ja.left)},l.Jw=function(a){this.W();a.B(this.ja.top)},l.Iw=function(a){this.W();a.B(this.ja.right)},l.Gw=function(a){this.W();a.B(this.ja.bottom)});b&&(d.Cr=function(a,b){return La(this.m,W(b))<=W(a)},d.Qr=function(a){return Oa(this.m,W(a))},d.Pr=function(a,b){var c=Ja(a),d=Ja(b),e=Ga(this.m);return Oa(d,c)?Oa(e,c)&&!Oa(e,
d):!(!Oa(e,c)&&Oa(e,d))},e.ox=function(a){a=W(Fa(a));isNaN(a)||this.m===a||(this.m=a,this.r())},e.kx=function(a){0===a||isNaN(a)||(this.m+=W(a),this.m=Ga(this.m),this.r())},e.lx=function(a){0===a||isNaN(a)||(this.m-=W(a),this.m=Ga(this.m),this.r())},e.mx=function(a,b){var c=Na(this.m,W(b),W(a));isNaN(c)||this.m===c||(this.m=c,this.r())},e.nx=function(a,b,c){a=Na(this.m,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.m===a||(this.m=a,this.r())},e.xx=function(a,b){var c=Math.atan2(b-this.y,a-this.x);
isNaN(c)||this.m===c||(this.m=c,this.r())},l.Fw=function(a){a.B(Ia(this.m))});p||(d.Hr=function(a,b,c){return ac(this.Ya[a],b,c)},d.Qw=function(a){return this.Ya[a]},d.hx=function(a,b){var c=this.ea(),d=c.cc();if(!d.length)return!1;var e=d[0],f=e,g=e.Ya[b],l,q,n;l=1;for(q=d.length;l<q;l++)if(e=d[l],n=e.Ya[b],0===a&&n<g||1===a&&n>g)g=n,f=e;c.Uh(f);return!0},d.cx=function(a){var b,c,d,e,f;if(this.b.Wo().dm){f=this.ea();if(f.qa)for(f.qa=!1,U(f.e),U(f.da),d=this.e,b=0,c=d.length;b<c;b++)e=d[b],e.uid===
a?f.da.push(e):f.e.push(e);else{d=b=0;for(c=f.e.length;b<c;b++)e=f.e[b],f.e[d]=e,e.uid===a?f.da.push(e):d++;ya(f.e,d)}this.Ac();return!!f.e.length}e=this.b.$f(a);if(!e)return!1;f=this.ea();if(!f.qa&&-1===f.e.indexOf(e))return!1;if(this.H)for(a=e.type.Ca,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Uh(e),this.Ac(),!0}else if(e.type===this)return f.Uh(e),this.Ac(),!0;return!1},d.Wn=function(){return!0},d.bs=function(){return!0},e.As=function(a,b){var c=this.Ya;C(c[a])?c[a]=C(b)?b:parseFloat(b):Q(c[a])&&
(c[a]=Q(b)?b:b.toString())},e.Ew=function(a,b){var c=this.Ya;C(c[a])?c[a]=C(b)?c[a]+b:c[a]+parseFloat(b):Q(c[a])&&(c[a]=Q(b)?c[a]+b:c[a]+b.toString())},e.Ax=function(a,b){var c=this.Ya;C(c[a])&&(c[a]=C(b)?c[a]-b:c[a]-parseFloat(b))},e.qx=function(a,b){this.Ya[a]=b?1:0},e.Bx=function(a){this.Ya[a]=1-this.Ya[a]},e.Kr=function(){this.b.Re(this)},e.Wr||(e.Wr=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Kj(this,b,!0);this.nd&&this.nd();if(this.F)for(a=0,b=this.F.length;a<b;++a)c=this.F[a],
c.nd&&c.nd()}),l.Ow=function(a){var b=a.zf.e.length,c,d,e;c=0;for(d=this.b.Wc.length;c<d;c++)e=this.b.Wc[c],a.zf.H?0<=e.type.Ca.indexOf(a.zf)&&b++:e.type===a.zf&&b++;a.ya(b)},l.jx=function(a){a.ya(a.zf.ea().cc().length)},l.Cx=function(a){a.ya(this.uid)},l.Pw=function(a){a.ya(this.gh())},l.Dr||(l.Dr=function(a){a.mc(JSON.stringify(this.b.jn(this,!0)))}));a&&(d.Tw=function(){return this.visible},e.Hs=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.V=!0)},d.Lw=function(a,b){return ac(ib(100*
this.opacity),a,b)},e.ux=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.V=!0)},l.Opacity=function(a){a.B(ib(100*this.opacity))});c&&(d.Rw=function(a){return a?this.i===a:!1},d.ix=function(a){var b=this.ea(),c=b.cc();if(!c.length)return!1;var d=c[0],e=d,f,g;f=1;for(g=c.length;f<g;f++)if(d=c[f],0===a){if(d.i.index>e.i.index||d.i.index===e.i.index&&d.td()>e.td())e=d}else if(d.i.index<e.i.index||d.i.index===e.i.index&&d.td()<e.td())e=d;b.Uh(e);return!0},e.$w=function(){var a=
this.i,b=a.e;b.length&&b[b.length-1]===this||(a.yg(this,!1),a.Qg(this,!1),this.b.V=!0)},e.Yw=function(){var a=this.i,b=a.e;b.length&&b[0]===this||(a.yg(this,!1),a.Nv(this),this.b.V=!0)},e.Zw=function(a){a&&a!=this.i&&(this.i.yg(this,!0),this.i=a,a.Qg(this,!0),this.b.V=!0)},e.Fx=function(a,b){var c=0===a;if(b){var d=b.Au(this);d&&d.uid!==this.uid&&(this.i.index!==d.i.index&&(this.i.yg(this,!0),this.i=d.i,d.i.Qg(this,!0)),this.i.xv(this,d,c),this.b.V=!0)}},l.Vw=function(a){a.ya(this.i.hq)},l.Uw=function(a){a.mc(this.i.name)},
l.Ex=function(a){a.ya(this.td())});t&&(e.rx=function(a,b){if(this.b.p){var c=this.type.Jl(b);if(!(0>c)){var d=1===a;this.me[c]!==d&&(this.me[c]=d,this.kd(),this.b.V=!0)}}},e.tx=function(a,b,c){if(this.b.p){var d=this.type.Jl(a);0>d||(a=this.type.L[d],d=this.Ha[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.p.Ku(a.Va,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.oc&&(this.b.V=!0))))}})};Gb=function(){this.il=this.dl=!0;this.type.Ci=!0;this.b.V=!0;var g,f,p=this.el;g=0;for(f=p.length;g<f;++g)p[g](this);this.i.zc&&
this.W()};Hb=function(g){g&&this.el.push(g)};Jb=function(){if(this.dl){var g=this.ja,f=this.Hb;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Rb*this.width,-this.Sb*this.height);this.m?(g.offset(-this.x,-this.y),f.Rq(g,this.m),f.offset(this.x,this.y),f.zo(g)):f.ei(g);g.normalize();this.dl=!1;this.xw()}};var g=new ta(0,0,0,0);Kb=function(){if(this.i.zc){var n=this.i.rb,f=this.ja;g.set(n.Nb(f.left),n.Ob(f.top),n.Nb(f.right),n.Ob(f.bottom));this.Tb.Zg(g)||(this.Tb.right<this.Tb.left?
n.update(this,null,g):n.update(this,this.Tb,g),this.Tb.Tg(g),this.i.gd=!0)}};Lb=function(){if(this.il&&this.Jd){this.W();var n=this.type.Oi,f=this.ja;g.set(n.Nb(f.left),n.Ob(f.top),n.Nb(f.right),n.Ob(f.bottom));this.re.Zg(g)||(this.re.right<this.re.left?n.update(this,null,g):n.update(this,this.re,g),this.re.Tg(g),this.il=!1)}};Ib=function(g,f){return this.ja.zb(g,f)&&this.Hb.zb(g,f)?this.la&&!this.la.fg()?(this.la.Qf(this.width,this.height,this.m),this.la.zb(g-this.x,f-this.y)):!0:!1};Cb=function(){this.type.Ok();
return this.of};Mb=function(){this.i.Jn();return this.ld};Nb=function(){U(this.ba);var g,f,p,q=!0;g=0;for(f=this.me.length;g<f;g++)this.me[g]&&(p=this.type.L[g],this.ba.push(p),p.Kc||(q=!1));this.ur=!!this.ba.length;this.de=q};Db=function(){return"Inst"+this.Gq};pb=function(g){if(g&&g.Fc&&g.type!=this){var f,p,q;f=0;for(p=g.siblings.length;f<p;f++)if(q=g.siblings[f],q.type==this)return q}g=this.ea().cc();return g.length?g[0]:null};qb=function(g){var f=this.ea().cc();return f.length?f[g.gh()%f.length]:
null};ob=function(){if(this.Eg&&!this.H){var g,f;g=0;for(f=this.e.length;g<f;g++)this.e[g].of=g;var p=g,q=this.b.Wc;g=0;for(f=q.length;g<f;++g)q[g].type===this&&(q[g].of=p++);this.Eg=!1}};Ab=function(g){if(g<this.e.length)return this.e[g];g-=this.e.length;var f=this.b.Wc,p,q;p=0;for(q=f.length;p<q;++p)if(f[p].type===this){if(0===g)return f[p];--g}return null};rb=function(){return this.Me[this.Nd]};sb=function(){this.Nd++;this.Nd===this.Me.length?this.Me.push(new nb(this)):this.Me[this.Nd].qa=!0};
tb=function(){this.Nd++;this.Nd===this.Me.length&&this.Me.push(new nb(this));var g=this.Me[this.Nd],f=this.Me[this.Nd-1];f.qa?g.qa=!0:(g.qa=!1,za(g.e,f.e),za(g.da,f.da))};ub=function(){this.Nd--};vb=function(g){var f,p,q,u,b,a=0;if(!this.H)for(f=0,p=this.Ca.length;f<p;f++)for(b=this.Ca[f],q=0,u=b.Ra.length;q<u;q++){if(g===b.Ra[q].name)return this.M.lastBehIndex=a,b.Ra[q];a++}f=0;for(p=this.Ra.length;f<p;f++){if(g===this.Ra[f].name)return this.M.lastBehIndex=a,this.Ra[f];a++}return null};xb=function(g){return this.nj(g)?
this.M.lastBehIndex:-1};yb=function(g){var f,p;f=0;for(p=this.L.length;f<p;f++)if(this.L[f].name===g)return f;return-1};zb=function(){if(this.Fc&&!this.H){var g,f,p,q,u,b,a;this.Ok();b=this.ea();var c=b.qa,t=(g=this.b.Bb())&&g.$b&&g.$b.ad;g=0;for(f=this.Zb.length;g<f;g++)if(u=this.Zb[g],u!==this&&(u.Ok(),a=u.ea(),a.qa=c,!c)){U(a.e);p=0;for(q=b.e.length;p<q;++p)a.e[p]=u.Ll(b.e[p].of);if(t)for(U(a.da),p=0,q=b.da.length;p<q;++p)a.da[p]=u.Ll(b.da[p].of)}}};Bb=function(){return"Type"+this.X};ac=function(g,
f,p){if("undefined"===typeof g||"undefined"===typeof p)return!1;switch(f){case 0:return g===p;case 1:return g!==p;case 2:return g<p;case 3:return g<=p;case 4:return g>p;case 5:return g>=p;default:return!1}}})();
var jc={multiply:{src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nuniform lowp sampler2D samplerBack;\nuniform mediump vec2 destStart;\nuniform mediump vec2 destEnd;\nvoid main(void)\n{\nlowp vec4 front = texture2D(samplerFront, vTex);\nlowp vec4 back = texture2D(samplerBack, mix(destStart, destEnd, vTex));\nfront *= back;\ngl_FragColor = front;\n}",aj:0,bj:0,ol:!0,Kc:!1,bl:!1,O:[]}};function mc(g){this.b=g}
(function(){function g(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return V.hasOwnProperty(a)&&V[a].length?V[a][0].sc():x.destination}function f(){return x.createGain?x.createGain():x.createGainNode()}function p(a){return x.createDelay?x.createDelay(a):x.createDelayNode(a)}function q(a){a.start?a.start(0):a.noteOn(0)}function u(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function a(a,
b,c,d,e,h){this.type="filter";this.bd=[a,b,c,d,e,h];this.Z=f();this.J=f();this.J.gain.value=h;this.G=f();this.G.gain.value=1-h;this.Sa=x.createBiquadFilter();this.Sa.type="number"===typeof this.Sa.type?a:xc[a];this.Sa.frequency.value=b;this.Sa.detune&&(this.Sa.detune.value=c);this.Sa.Q.value=d;this.Sa.gain.value=e;this.Z.connect(this.Sa);this.Z.connect(this.G);this.Sa.connect(this.J)}function c(a,b,c){this.type="delay";this.bd=[a,b,c];this.Z=f();this.J=f();this.J.gain.value=c;this.G=f();this.G.gain.value=
1-c;this.Qh=f();this.Dc=p(a);this.Dc.delayTime.value=a;this.Wi=f();this.Wi.gain.value=b;this.Z.connect(this.Qh);this.Z.connect(this.G);this.Qh.connect(this.J);this.Qh.connect(this.Dc);this.Dc.connect(this.Wi);this.Wi.connect(this.Qh)}function t(a,b,c,d){this.type="convolve";this.bd=[b,c,d];this.Z=f();this.J=f();this.J.gain.value=c;this.G=f();this.G.gain.value=1-c;this.Ze=x.createConvolver();a&&(this.Ze.normalize=b,this.Ze.buffer=a);this.Z.connect(this.Ze);this.Z.connect(this.G);this.Ze.connect(this.J)}
function d(a,b,c,d,e){this.type="flanger";this.bd=[a,b,c,d,e];this.Z=f();this.G=f();this.G.gain.value=1-e/2;this.J=f();this.J.gain.value=e/2;this.ej=f();this.ej.gain.value=d;this.Dc=p(a+b);this.Dc.delayTime.value=a;this.mb=x.createOscillator();this.mb.frequency.value=c;this.jc=f();this.jc.gain.value=b;this.Z.connect(this.Dc);this.Z.connect(this.G);this.Dc.connect(this.J);this.Dc.connect(this.ej);this.ej.connect(this.Dc);this.mb.connect(this.jc);this.jc.connect(this.Dc.delayTime);q(this.mb)}function e(a,
b,c,d,e,h){this.type="phaser";this.bd=[a,b,c,d,e,h];this.Z=f();this.G=f();this.G.gain.value=1-h/2;this.J=f();this.J.gain.value=h/2;this.Sa=x.createBiquadFilter();this.Sa.type="number"===typeof this.Sa.type?7:"allpass";this.Sa.frequency.value=a;this.Sa.detune&&(this.Sa.detune.value=b);this.Sa.Q.value=c;this.mb=x.createOscillator();this.mb.frequency.value=e;this.jc=f();this.jc.gain.value=d;this.Z.connect(this.Sa);this.Z.connect(this.G);this.Sa.connect(this.J);this.mb.connect(this.jc);this.jc.connect(this.Sa.frequency);
q(this.mb)}function l(a){this.type="gain";this.bd=[a];this.aa=f();this.aa.gain.value=a}function k(a,b){this.type="tremolo";this.bd=[a,b];this.aa=f();this.aa.gain.value=1-b/2;this.mb=x.createOscillator();this.mb.frequency.value=a;this.jc=f();this.jc.gain.value=b/2;this.mb.connect(this.jc);this.jc.connect(this.aa.gain);q(this.mb)}function G(a,b){this.type="ringmod";this.bd=[a,b];this.Z=f();this.J=f();this.J.gain.value=b;this.G=f();this.G.gain.value=1-b;this.bi=f();this.bi.gain.value=0;this.mb=x.createOscillator();
this.mb.frequency.value=a;this.mb.connect(this.bi.gain);q(this.mb);this.Z.connect(this.bi);this.Z.connect(this.G);this.bi.connect(this.J)}function y(a,b,c,d,e){this.type="distortion";this.bd=[a,b,c,d,e];this.Z=f();this.lk=f();this.kk=f();this.fw(c,Math.pow(10,d/20));this.J=f();this.J.gain.value=e;this.G=f();this.G.gain.value=1-e;this.Tk=x.createWaveShaper();this.Ui=new Float32Array(65536);this.xu(a,b);this.Tk.Ui=this.Ui;this.Z.connect(this.lk);this.Z.connect(this.G);this.lk.connect(this.Tk);this.Tk.connect(this.kk);
this.kk.connect(this.J)}function r(a,b,c,d,e){this.type="compressor";this.bd=[a,b,c,d,e];this.aa=x.createDynamicsCompressor();try{this.aa.threshold.value=a,this.aa.knee.value=b,this.aa.ratio.value=c,this.aa.attack.value=d,this.aa.release.value=e}catch(h){}}function h(a,b){this.type="analyser";this.bd=[a,b];this.aa=x.createAnalyser();this.aa.fftSize=a;this.aa.smoothingTimeConstant=b;this.vu=new Float32Array(this.aa.frequencyBinCount);this.Uq=new Uint8Array(a);this.Th=0}function m(){this.I=null;this.Nj=
0;this.Ne=[];this.Dm=this.Dj=this.Cj=0}function w(a,b){this.src=a;this.U=D;this.Zc=b;this.Bi=!1;var c=this;this.Bm=this.Qm=null;this.xg=[];this.wk=0;this.Mn=this.zl=this.br=this.gk=!1;1===D&&b&&(this.U=0,this.Qm=f());this.Ue=this.ka=null;var d;switch(this.U){case 0:this.ka=new Audio;this.ka.crossOrigin="anonymous";this.ka.addEventListener("canplaythrough",function(){c.Mn=!0});1===D&&x.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.br=!0,this.ka.addEventListener("canplay",function(){c.Bm||
(c.Bm=x.createMediaElementSource(c.ka),c.Bm.connect(c.Qm))}));this.ka.autoplay=!1;this.ka.Ux="auto";this.ka.src=a;break;case 1:d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){c.Ue=d.response;c.mt()};d.onerror=function(){c.zl=!0};d.send();break;case 2:this.ka=!0;break;case 3:this.ka=!0}}function E(a,b){var c=this;this.tag=b;this.Vb=this.sd=!0;this.src=a.src;this.buffer=a;this.U=D;this.Zc=a.Zc;this.playbackRate=1;this.bg=!0;this.gc=this.xc=!1;this.Ub=0;this.xh=
this.hg=this.vd=!1;this.volume=1;this.Om=function(a){if(!c.gc&&!c.xc){var b=this;b||(b=a.target);b===c.Ai&&(c.bg=!0,c.Vb=!0,ga=c.tag,J.trigger(mc.prototype.j.yi,K))}};this.Ai=null;this.dg=1===L&&!this.Zc||2===L;this.tg=1;this.startTime=this.dg?J.kb.Y:J.je.Y;this.Pa=this.Xa=null;this.xd=!1;this.Ma=null;this.uq=this.tq=this.sq=this.rq=this.wq=this.vq=0;this.k=null;var d=!1;1!==this.U||0!==this.buffer.U||this.buffer.br||(this.U=0);switch(this.U){case 0:this.Zc?(this.k=a.ka,d=!a.Bi,a.Bi=!0):(this.k=new Audio,
this.k.crossOrigin="anonymous",this.k.autoplay=!1,this.k.src=a.ka.src,d=!0);d&&this.k.addEventListener("ended",function(){ga=c.tag;c.Vb=!0;J.trigger(mc.prototype.j.yi,K)});break;case 1:this.Xa=f();this.Xa.connect(n(b));1===this.buffer.U?a.ka&&(this.k=x.createBufferSource(),this.k.buffer=a.ka,this.k.connect(this.Xa)):(this.k=this.buffer.ka,this.buffer.Qm.connect(this.Xa),this.buffer.Bi||(this.buffer.Bi=!0,this.buffer.ka.addEventListener("ended",function(){ga=c.tag;c.Vb=!0;J.trigger(mc.prototype.j.yi,
K)})));break;case 2:this.k=new window.Media(N+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.bg=!0,c.Vb=!0,ga=c.tag,J.trigger(mc.prototype.j.yi,K))});break;case 3:this.k=!0}}function v(a,b){V.hasOwnProperty(a)?V[a].push(b):V[a]=[b];var c,d,e,h,f=x.destination;if(V.hasOwnProperty(a)&&(e=V[a],e.length))for(f=e[0].sc(),c=0,d=e.length;c<d;c++)h=e[c],c+1===d?h.Bc(x.destination):h.Bc(e[c+1].sc());U(Ma);if(a.length)for(c=0,d=A.length;c<d;c++)e=A[c],jb(a,e.tag)&&Ma.push(e);else B&&!B.nf()&&
(U(Ma),Ma[0]=B);c=0;for(d=Ma.length;c<d;c++)Ma[c].Sv(f);ha&&wb===a&&(ha.disconnect(),ha.connect(f))}function R(){}function T(){}var z=mc.prototype;z.ra=function(a){this.Fa=a;this.b=a.b};z.ra.prototype.S=function(){};var J=null,K=null,ga="",N="",D=0,x=null,ea=[],A=[],B=null,I=!1,L=0,P=!1,H=1,F=0,M=0,qa=1,O=1,ua=10,la=1E4,Ha=1,ha=null,wb="",Ra=!1,Sa=[],V={},xc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Bc=function(a){this.J.disconnect();this.J.connect(a);
this.G.disconnect();this.G.connect(a)};a.prototype.remove=function(){this.Z.disconnect();this.Sa.disconnect();this.J.disconnect();this.G.disconnect()};a.prototype.sc=function(){return this.Z};c.prototype.Bc=function(a){this.J.disconnect();this.J.connect(a);this.G.disconnect();this.G.connect(a)};c.prototype.remove=function(){this.Z.disconnect();this.Qh.disconnect();this.Dc.disconnect();this.Wi.disconnect();this.J.disconnect();this.G.disconnect()};c.prototype.sc=function(){return this.Z};t.prototype.Bc=
function(a){this.J.disconnect();this.J.connect(a);this.G.disconnect();this.G.connect(a)};t.prototype.remove=function(){this.Z.disconnect();this.Ze.disconnect();this.J.disconnect();this.G.disconnect()};t.prototype.sc=function(){return this.Z};d.prototype.Bc=function(a){this.G.disconnect();this.G.connect(a);this.J.disconnect();this.J.connect(a)};d.prototype.remove=function(){this.Z.disconnect();this.Dc.disconnect();this.mb.disconnect();this.jc.disconnect();this.G.disconnect();this.J.disconnect();this.ej.disconnect()};
d.prototype.sc=function(){return this.Z};e.prototype.Bc=function(a){this.G.disconnect();this.G.connect(a);this.J.disconnect();this.J.connect(a)};e.prototype.remove=function(){this.Z.disconnect();this.Sa.disconnect();this.mb.disconnect();this.jc.disconnect();this.G.disconnect();this.J.disconnect()};e.prototype.sc=function(){return this.Z};l.prototype.Bc=function(a){this.aa.disconnect();this.aa.connect(a)};l.prototype.remove=function(){this.aa.disconnect()};l.prototype.sc=function(){return this.aa};
k.prototype.Bc=function(a){this.aa.disconnect();this.aa.connect(a)};k.prototype.remove=function(){this.mb.disconnect();this.jc.disconnect();this.aa.disconnect()};k.prototype.sc=function(){return this.aa};G.prototype.Bc=function(a){this.J.disconnect();this.J.connect(a);this.G.disconnect();this.G.connect(a)};G.prototype.remove=function(){this.mb.disconnect();this.bi.disconnect();this.Z.disconnect();this.J.disconnect();this.G.disconnect()};G.prototype.sc=function(){return this.Z};y.prototype.fw=function(a,
b){.01>a&&(a=.01);this.lk.gain.value=a;this.kk.gain.value=Math.pow(1/a,.6)*b};y.prototype.shape=function(a,b,c){var d=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+d*(1-Math.exp(-(1/d)*(a-b)));return b*c};y.prototype.xu=function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),e=0,h=0;32768>h;++h)e=h/32768,e=this.shape(e,c,d),this.Ui[32768+h]=e,this.Ui[32768-h-1]=-e};y.prototype.Bc=function(a){this.J.disconnect();this.J.connect(a);this.G.disconnect();this.G.connect(a)};y.prototype.remove=function(){this.Z.disconnect();
this.lk.disconnect();this.Tk.disconnect();this.kk.disconnect();this.J.disconnect();this.G.disconnect()};y.prototype.sc=function(){return this.Z};r.prototype.Bc=function(a){this.aa.disconnect();this.aa.connect(a)};r.prototype.remove=function(){this.aa.disconnect()};r.prototype.sc=function(){return this.aa};h.prototype.Ka=function(){this.aa.getFloatFrequencyData(this.vu);this.aa.getByteTimeDomainData(this.Uq);for(var a=this.aa.fftSize,b=0,c=this.Th=0,d=0;b<a;b++)d=(this.Uq[b]-128)/128,0>d&&(d=-d),this.Th<
d&&(this.Th=d),c+=d*d;this.Th=g(this.Th);g(Math.sqrt(c/a))};h.prototype.Bc=function(a){this.aa.disconnect();this.aa.connect(a)};h.prototype.remove=function(){this.aa.disconnect()};h.prototype.sc=function(){return this.aa};m.prototype.ci=function(a){if(this.I=a)this.Cj=this.I.x,this.Dj=this.I.y;U(this.Ne)};m.prototype.tj=function(){return!!this.I};m.prototype.Ka=function(a){this.I&&0!==a&&(this.Dm=Ka(this.Cj,this.Dj,this.I.x,this.I.y),a=Qa(this.Cj,this.Dj,this.I.x,this.I.y)/a,4>this.Ne.length||this.Ne.shift(),
this.Ne.push(a),this.Cj=this.I.x,this.Dj=this.I.y)};m.prototype.bp=function(){if(!this.Ne.length)return 0;var a,b,c=0;a=0;for(b=this.Ne.length;a<b;a++)c+=this.Ne[a];return c/this.Ne.length};m.prototype.Ql=function(){return Math.cos(this.Dm)*this.bp()};m.prototype.Rl=function(){return Math.sin(this.Dm)*this.bp()};var tc=!1;w.prototype.mt=function(){if(!this.ka&&this.Ue){var a=this;if(x.decodeAudioData)x.decodeAudioData(this.Ue,function(b){a.ka=b;a.Ue=null;var c,d,e;if(ia(a.hk)||P)ia(a.Qi)||(c=a.Qi.Ze,
c.normalize=a.gq,c.buffer=b);else if(a.xg.length){c=0;for(d=a.xg.length;c<d;c++){b=a.xg[c];e=new E(a,b.gr);e.pn(!0);if("undefined"!==typeof b.iq&&(b.I=J.$f(b.iq),!b.I))continue;if(b.I){var h=Pa(b.I.x,b.I.y,-b.I.i.La(),F,M,!0),f=Pa(b.I.x,b.I.y,-b.I.i.La(),F,M,!1);e.nn(h,f,Ea(b.I.m-b.I.i.La()),b.Wl,b.Em,b.Hm);e.ci(b.I)}else e.nn(b.x,b.y,b.Ps,b.Wl,b.Em,b.Hm);e.play(a.Am,a.Ln,a.wk);a.gk&&e.pause();A.push(e)}U(a.xg)}else e=new E(a,a.hk||""),e.play(a.Am,a.Ln,a.wk),a.gk&&e.pause(),A.push(e)},function(){a.zl=
!0});else if(this.ka=x.createBuffer(this.Ue,!1),this.Ue=null,ia(this.hk)||P)ia(this.Qi)||(b=this.Qi.Ze,b.normalize=this.gq,b.buffer=this.ka);else{var b=new E(this,this.hk);b.play(this.Am,this.Ln,this.wk);this.gk&&b.pause();A.push(b)}}};w.prototype.op=function(){switch(this.U){case 0:var a=4<=this.ka.readyState;a&&(this.Mn=!0);return a||this.Mn;case 1:return!!this.Ue||!!this.ka;case 2:return!0;case 3:return!0}return!1};w.prototype.mv=function(){switch(this.U){case 0:return this.op();case 1:return!!this.ka;
case 2:return!0;case 3:return!0}return!1};w.prototype.bv=function(){switch(this.U){case 0:return!!this.ka.error;case 1:return this.zl}return!1};E.prototype.nf=function(){switch(this.U){case 0:return this.k.ended;case 1:return 1===this.buffer.U?!this.sd&&!this.Vb&&this.k.loop||this.gc?!1:this.bg:this.k.ended;case 2:return this.bg;case 3:!0}return!0};E.prototype.et=function(){return this.sd||this.Vb?!0:this.nf()};E.prototype.pn=function(a){1===D&&(!this.xd&&a?this.Xa&&(this.Pa||(this.Pa=x.createPanner(),
this.Pa.panningModel="number"===typeof this.Pa.panningModel?qa:["equalpower","HRTF","soundfield"][qa],this.Pa.distanceModel="number"===typeof this.Pa.distanceModel?O:["linear","inverse","exponential"][O],this.Pa.refDistance=ua,this.Pa.maxDistance=la,this.Pa.rolloffFactor=Ha),this.Xa.disconnect(),this.Xa.connect(this.Pa),this.Pa.connect(n(this.tag)),this.xd=!0):this.xd&&!a&&this.Xa&&(this.Pa.disconnect(),this.Xa.disconnect(),this.Xa.connect(n(this.tag)),this.xd=!1))};E.prototype.nn=function(a,b,c,
d,e,h){this.xd&&1===D&&(this.Pa.setPosition(a,b,0),this.Pa.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.Pa.coneInnerAngle=d,this.Pa.coneOuterAngle=e,this.Pa.coneOuterGain=h,this.vq=a,this.wq=b,this.rq=c,this.sq=d,this.tq=e,this.uq=h)};E.prototype.ci=function(a){this.xd&&1===D&&(this.Ma||(this.Ma=new m),this.Ma.ci(a))};E.prototype.Ka=function(a){if(this.xd&&1===D&&this.Ma&&this.Ma.tj()&&this.uh()){this.Ma.Ka(a);a=this.Ma.I;var b=Pa(a.x,a.y,-a.i.La(),F,M,!0),c=Pa(a.x,a.y,-a.i.La(),F,M,!1);this.Pa.setPosition(b,
c,0);b=0;"undefined"!==typeof this.Ma.I.m&&(b=a.m-a.i.La(),this.Pa.setOrientation(Math.cos(b),Math.sin(b),0));b=Pa(this.Ma.Ql(),this.Ma.Rl(),-a.i.La(),0,0,!0);c=Pa(this.Ma.Ql(),this.Ma.Rl(),-a.i.La(),0,0,!1);this.Pa.setVelocity(b,c,0)}};E.prototype.play=function(a,b,c){var d=this.k;this.vd=a;this.volume=b;c=c||0;switch(this.U){case 0:1!==d.playbackRate&&(d.playbackRate=1);d.volume!==b*H&&(d.volume=b*H);d.loop!==a&&(d.loop=a);d.muted&&(d.muted=!1);if(d.currentTime!==c)try{d.currentTime=c}catch(e){}if(this.Zc&&
Ra&&!J.fc)Sa.push(this);else try{this.k.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.tg=1;if(1===this.buffer.U)this.Xa.gain.value=b*H,this.sd||(this.k=x.createBufferSource(),this.k.buffer=this.buffer.ka,this.k.connect(this.Xa)),this.k.onended=this.Om,this.Ai=this.k,this.k.loop=a,this.bg=!1,0===c?q(this.k):u(this.k,c,this.jf());else{1!==d.playbackRate&&(d.playbackRate=1);d.loop!==a&&(d.loop=
a);d.volume=b*H;if(d.currentTime!==c)try{d.currentTime=c}catch(f){}this.Zc&&Ra&&!J.fc?Sa.push(this):d.play()}break;case 2:(!this.sd&&this.Vb||0!==c)&&d.seekTo(c);d.play();this.bg=!1;break;case 3:J.Ib?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.dg?J.kb.Y:J.je.Y)-c;this.gc=this.Vb=this.sd=!1};E.prototype.stop=function(){switch(this.U){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.U?b(this.k):this.k.paused||this.k.pause();
break;case 2:this.k.stop();break;case 3:J.Ib&&AppMobi.context.stopSound(this.src)}this.Vb=!0;this.gc=!1};E.prototype.pause=function(){if(!(this.sd||this.Vb||this.nf()||this.gc)){switch(this.U){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.U?(this.Ub=this.Nl(!0),this.vd&&(this.Ub=this.Ub%this.jf()),this.gc=!0,b(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:J.Ib&&AppMobi.context.stopSound(this.src)}this.gc=!0}};E.prototype.Wv=function(){if(!(this.sd||
this.Vb||this.nf())&&this.gc){switch(this.U){case 0:this.k.play();break;case 1:1===this.buffer.U?(this.k=x.createBufferSource(),this.k.buffer=this.buffer.ka,this.k.connect(this.Xa),this.k.onended=this.Om,this.Ai=this.k,this.k.loop=this.vd,this.Xa.gain.value=H*this.volume*this.tg,this.Pk(),this.startTime=(this.dg?J.kb.Y:J.je.Y)-this.Ub/(this.playbackRate||.001),u(this.k,this.Ub,this.jf())):this.k.play();break;case 2:this.k.play();break;case 3:J.Ib&&AppMobi.context.resumeSound(this.src)}this.gc=!1}};
E.prototype.seek=function(a){if(!(this.sd||this.Vb||this.nf()))switch(this.U){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.U)this.gc?this.Ub=a:(this.pause(),this.Ub=a,this.Wv());else try{this.k.currentTime=a}catch(c){}break;case 3:J.Ib&&AppMobi.context.seekSound(this.src,a)}};E.prototype.Sv=function(a){1===this.U&&(this.xd?(this.Pa.disconnect(),this.Pa.connect(a)):(this.Xa.disconnect(),this.Xa.connect(a)))};E.prototype.jf=function(){var a=0;switch(this.U){case 0:"undefined"!==
typeof this.k.duration&&(a=this.k.duration);break;case 1:a=this.buffer.ka.duration;break;case 2:a=this.k.getDuration();break;case 3:J.Ib&&(a=AppMobi.context.getDurationSound(this.src))}return a};E.prototype.Nl=function(a){var b=this.jf(),c=0;switch(this.U){case 0:"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 1:if(1===this.buffer.U){if(this.gc)return this.Ub;c=(this.dg?J.kb.Y:J.je.Y)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;
case 3:J.Ib&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.vd&&c>b&&(c=b);return c};E.prototype.uh=function(){return!this.gc&&!this.sd&&!this.Vb&&!this.nf()};E.prototype.lw=function(){return!this.sd&&!this.Vb&&!this.nf()};E.prototype.vw=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.U){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.U?this.Xa.gain.value=a*this.tg:"undefined"!==typeof this.k.volume&&
this.k.volume!==a&&(this.k.volume=a)}};E.prototype.Zi=function(a){switch(this.U){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.U?(this.tg=a?0:1,this.Xa.gain.value=H*this.volume*this.tg):this.k.muted!==!!a&&(this.k.muted=!!a)}};E.prototype.gw=function(){this.hg=!0;this.Zi(this.hg||this.xh)};E.prototype.Oq=function(a){this.xh=!!a;this.Zi(this.hg||this.xh)};E.prototype.Pk=function(){var a=this.playbackRate;this.dg&&(a*=J.Jf);switch(this.U){case 0:this.k.playbackRate!==a&&
(this.k.playbackRate=a);break;case 1:1===this.buffer.U?this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};E.prototype.iw=function(a){switch(this.U){case 0:a?this.uh()?(this.xc=!0,this.k.pause()):this.xc=!1:this.xc&&(this.k.play(),this.xc=!1);break;case 1:a?this.uh()?(this.xc=!0,1===this.buffer.U?(this.Ub=this.Nl(!0),this.vd&&(this.Ub=this.Ub%this.jf()),b(this.k)):this.k.pause()):this.xc=!1:this.xc&&(1===this.buffer.U?(this.k=x.createBufferSource(),
this.k.buffer=this.buffer.ka,this.k.connect(this.Xa),this.k.onended=this.Om,this.Ai=this.k,this.k.loop=this.vd,this.Xa.gain.value=H*this.volume*this.tg,this.Pk(),this.startTime=(this.dg?J.kb.Y:J.je.Y)-this.Ub/(this.playbackRate||.001),u(this.k,this.Ub,this.jf())):this.k.play(),this.xc=!1);break;case 2:a?this.uh()?(this.k.pause(),this.xc=!0):this.xc=!1:this.xc&&(this.xc=!1,this.k.play())}};z.ma=function(a){this.type=a;J=this.b=a.b;K=this;this.Jb=null;this.Ih=-600;!(this.b.zh||this.b.wj&&(this.b.nh||
this.b.xj))||this.b.oh||this.b.Da||this.b.em||(Ra=!0);x=null;"undefined"!==typeof AudioContext?(D=1,x=new AudioContext):"undefined"!==typeof webkitAudioContext&&(D=1,x=new webkitAudioContext);Ra&&document.addEventListener("touchend",function(){if(!tc&&x){var a=x.createBuffer(1,1,22050),b=x.createBufferSource();b.buffer=a;b.connect(x.destination);q(b);tc=!0}var c;if(Ra){if(!P)for(a=0,b=Sa.length;a<b;++a)c=Sa[a],c.Vb||c.gc||c.k.play();U(Sa)}},!0);1!==D&&(this.b.uc&&"undefined"!==typeof window.Media?
D=2:this.b.np&&(D=3));2===D&&(N=location.href,a=N.lastIndexOf("/"),-1<a&&(N=N.substr(0,a+1)),N=N.replace("file://",""));if(this.b.qp&&this.b.nv&&"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.Re(this);else{if(this.b.Ib)I=this.b.wj;else try{I=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){I=!1}this.b.Gg(this)}};var ra=z.ma.prototype;ra.S=function(){this.b.Pf=this;L=this.A[0];
this.ae=this.A[1];this.Iv=0!==this.A[2];qa=this.A[3];O=this.A[4];this.Ih=-this.A[5];ua=this.A[6];la=this.A[7];Ha=this.A[8];this.Jb=new m;var a=this.b.D||this.b.width,b=this.b.C||this.b.height;1===D&&("undefined"!==typeof x.listener.dopplerFactor&&(x.listener.dopplerFactor=0),x.listener.setPosition(a/2,b/2,this.Ih),x.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){ha&&ha.disconnect();wb=b.toLowerCase();ha=x.createMediaStreamSource(a);ha.connect(n(wb))});this.b.Us(function(a){K.Fv(a)});
var c=this;this.b.Zk(function(a){c.Im(a)})};ra.Im=function(a){var b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Ma&&d.Ma.I===a&&(d.Ma.I=null,d.xd&&d.uh()&&d.vd&&d.stop());this.Jb.I===a&&(this.Jb.I=null)};ra.sb=function(){var a={silent:P,masterVolume:H,listenerZ:this.Ih,listenerUid:this.Jb.tj()?this.Jb.I.uid:-1,playing:[],effects:{}},b=a.playing,c,d,e,h,f,m;c=0;for(d=A.length;c<d;c++)e=A[c],!e.lw()||3===this.ae||e.Zc&&1===this.ae||!e.Zc&&2===this.ae||(h=e.Nl(),e.vd&&(h=h%e.jf()),h={tag:e.tag,buffersrc:e.buffer.src,
is_music:e.Zc,playbackTime:h,volume:e.volume,looping:e.vd,muted:e.hg,playbackRate:e.playbackRate,paused:e.gc,resume_position:e.Ub},e.xd&&(h.pan={},m=h.pan,e.Ma&&e.Ma.tj()?m.objUid=e.Ma.I.uid:(m.x=e.vq,m.y=e.wq,m.a=e.rq),m.ia=e.sq,m.oa=e.tq,m.og=e.uq),b.push(h));b=a.effects;for(f in V)if(V.hasOwnProperty(f)){e=[];c=0;for(d=V[f].length;c<d;c++)e.push({type:V[f][c].type,params:V[f][c].bd});b[f]=e}return a};var Ta=[];ra.Kb=function(b){var f=b.silent;H=b.masterVolume;this.Ih=b.listenerZ;this.Jb.ci(null);
var g=b.listenerUid;-1!==g&&(this.Jb.Nj=g,Ta.push(this.Jb));var g=b.playing,q,w,p,u,n,E,T,R,x,z,B;if(3!==this.ae)for(q=0,w=A.length;q<w;q++)x=A[q],x.Zc&&1===this.ae||(x.Zc||2!==this.ae)&&x.stop();for(n in V)if(V.hasOwnProperty(n))for(q=0,w=V[n].length;q<w;q++)V[n][q].remove();Xa(V);for(n in b.effects)if(b.effects.hasOwnProperty(n))for(E=b.effects[n],q=0,w=E.length;q<w;q++)switch(p=E[q].type,z=E[q].params,p){case "filter":v(n,new a(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "delay":v(n,new c(z[0],
z[1],z[2]));break;case "convolve":p=z[2];x=this.mj(p,!1);x.ka?p=new t(x.ka,z[0],z[1],p):(p=new t(null,z[0],z[1],p),x.gq=z[0],x.Qi=p);v(n,p);break;case "flanger":v(n,new d(z[0],z[1],z[2],z[3],z[4]));break;case "phaser":v(n,new e(z[0],z[1],z[2],z[3],z[4],z[5]));break;case "gain":v(n,new l(z[0]));break;case "tremolo":v(n,new k(z[0],z[1]));break;case "ringmod":v(n,new G(z[0],z[1]));break;case "distortion":v(n,new y(z[0],z[1],z[2],z[3],z[4]));break;case "compressor":v(n,new r(z[0],z[1],z[2],z[3],z[4]));
break;case "analyser":v(n,new h(z[0],z[1]))}q=0;for(w=g.length;q<w;q++)3===this.ae||(b=g[q],p=b.buffersrc,u=b.is_music,n=b.tag,E=b.playbackTime,T=b.looping,R=b.volume,B=(z=b.pan)&&z.hasOwnProperty("objUid")?z.objUid:-1,u&&1===this.ae)||!u&&2===this.ae||((x=this.Uo(p,n,u,T,R))?(x.Ub=b.resume_position,x.pn(!!z),x.play(T,R,E),x.Pk(),x.vw(),x.Zi(x.hg||x.xh),b.paused&&x.pause(),b.muted&&x.gw(),x.Zi(x.hg||x.xh),z&&(-1!==B?(x.Ma=x.Ma||new m,x.Ma.Nj=B,Ta.push(x.Ma)):x.nn(z.x,z.y,z.a,z.ia,z.oa,z.og))):(x=
this.mj(p,u),x.wk=E,x.gk=b.paused,z&&(-1!==B?x.xg.push({iq:B,Wl:z.ia,Em:z.oa,Hm:z.og,gr:n}):x.xg.push({x:z.x,y:z.y,Ps:z.a,Wl:z.ia,Em:z.oa,Hm:z.og,gr:n}))));if(f&&!P){q=0;for(w=A.length;q<w;q++)A[q].Oq(!0);P=!0}else if(!f&&P){q=0;for(w=A.length;q<w;q++)A[q].Oq(!1);P=!1}};ra.nd=function(){var a,b,c,d;a=0;for(b=Ta.length;a<b;a++)c=Ta[a],d=this.b.$f(c.Nj),c.ci(d),c.Nj=-1,d&&(F=d.x,M=d.y);U(Ta)};ra.Fv=function(a){if(!this.Iv){!a&&x&&x.resume&&x.resume();var b,c;b=0;for(c=A.length;b<c;b++)A[b].iw(a);a&&
x&&x.suspend&&x.suspend()}};ra.Ka=function(){var a=this.b.df,b,c,d;b=0;for(c=A.length;b<c;b++)d=A[b],d.Ka(a),0!==L&&d.Pk();var e,h;for(e in V)if(V.hasOwnProperty(e))for(d=V[e],b=0,c=d.length;b<c;b++)h=d[b],h.Ka&&h.Ka();1===D&&this.Jb.tj()&&(this.Jb.Ka(a),F=this.Jb.I.x,M=this.Jb.I.y,x.listener.setPosition(this.Jb.I.x,this.Jb.I.y,this.Ih),x.listener.setVelocity(this.Jb.Ql(),this.Jb.Rl(),0))};var Ua=[];ra.hw=function(a){var b,c,d,e,h,f=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],e=d[0],d=2*d[1],(h=4<e.length&&
".ogg"===e.substr(e.length-4))&&I||!h&&!I)Ua.push({filename:e,size:d,I:null}),f+=d;return f};ra.ow=function(){var a,b,c,d;a=0;for(b=Ua.length;a<b;++a)c=Ua[a],d=this.b.Bl+c.filename,c.I=this.mj(d,!1)};ra.Hu=function(){var a=0,b,c,d;b=0;for(c=Ua.length;b<c;++b)d=Ua[b],d.I.mv()||d.I.bv()||this.b.Da||this.b.xj?a+=d.size:d.I.op()&&(a+=Math.floor(d.size/2));return a};ra.mj=function(a,b){var c,d,e,h=null;c=0;for(d=ea.length;c<d;c++)if(e=ea[c],e.src===a){h=e;break}h||(h=new w(a,b),ea.push(h));return h};ra.Uo=
function(a,b,c,d,e){var h,f,m;h=0;for(f=A.length;h<f;h++)if(m=A[h],m.src===a&&(m.et()||c))return m.tag=b,m;a=this.mj(a,c);if(!a.ka)return"<preload>"!==b&&(a.hk=b,a.Am=d,a.Ln=e),null;m=new E(a,b);A.push(m);return m};var Ma=[];R.prototype.yi=function(a){return jb(ga,a)};z.j=new R;T.prototype.Play=function(a,b,c,d){!P&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),B=this.Uo(this.b.Bl+a[0]+(I?".ogg":".m4a"),d,a[1],0!==b,c))&&(B.pn(!1),B.play(0!==b,c))};z.P=new T;z.ib=new function(){}})();
function nc(g){this.b=g}
(function(){function g(){}var n=nc.prototype;n.ra=function(f){this.Fa=f;this.b=f.b};n.ra.prototype.S=function(){};n.ma=function(f){this.type=f;this.b=f.b;this.Ch=Array(256);this.ri=Array(256);this.ge=0};var f=n.ma.prototype;f.S=function(){var f=this;this.b.Da||(jQuery(document).keydown(function(g){f.Jm(g)}),jQuery(document).keyup(function(g){f.Km(g)}))};var p=[32,33,34,35,36,37,38,39,40,44];f.Jm=function(f){var g=!1;window!=window.top&&-1<p.indexOf(f.which)&&(f.preventDefault(),g=!0,f.stopPropagation());
if(this.Ch[f.which])this.ri[f.which]&&!g&&f.preventDefault();else{this.Ch[f.which]=!0;this.ge=f.which;this.b.fc=!0;this.b.trigger(nc.prototype.j.Yr,this);var b=this.b.trigger(nc.prototype.j.Yn,this),a=this.b.trigger(nc.prototype.j.os,this);this.b.fc=!1;if(b||a)this.ri[f.which]=!0,g||f.preventDefault()}};f.Km=function(f){this.Ch[f.which]=!1;this.ge=f.which;this.b.fc=!0;this.b.trigger(nc.prototype.j.Vn,this);var g=this.b.trigger(nc.prototype.j.$n,this),b=this.b.trigger(nc.prototype.j.Zn,this);this.b.fc=
!1;if(g||b||this.ri[f.which])this.ri[f.which]=!0,f.preventDefault()};f.Af=function(){var f;for(f=0;256>f;++f)if(this.Ch[f]){this.Ch[f]=!1;this.ge=f;this.b.trigger(nc.prototype.j.Vn,this);var g=this.b.trigger(nc.prototype.j.$n,this),b=this.b.trigger(nc.prototype.j.Zn,this);if(g||b)this.ri[f]=!0}};f.sb=function(){return{triggerKey:this.ge}};f.Kb=function(f){this.ge=f.triggerKey};g.prototype.Yn=function(f){return f===this.ge};g.prototype.Yr=function(){return!0};g.prototype.Vn=function(){return!0};g.prototype.$n=
function(f){return f===this.ge};g.prototype.os=function(f){return f===this.ge};g.prototype.Zn=function(f){return f===this.ge};n.j=new g;n.P=new function(){};n.ib=new function(){}})();function Y(g){this.b=g}
(function(){function g(){if(0===this.rl.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Cg?b.drawImage(this.fa,this.ug,this.vg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.fa,0,0,this.width,this.height);this.rl=a.toDataURL("image/png")}return this.rl}function n(){}function f(a){a[0]=0;a[1]=0;a[2]=0;l.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function q(a,b,c,d){b=b.uid;c=c.uid;var e=p(b,c);if(a.hasOwnProperty(e))a[e][2]=
d;else{var f=l.length?l.pop():[0,0,0];f[0]=b;f[1]=c;f[2]=d;a[e]=f}}function u(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(f(a[b]),delete a[b])}function b(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function a(){}var c=Y.prototype;c.ra=function(a){this.Fa=a;this.b=a.b};var t=c.ra.prototype;t.S=function(){if(!this.H){var a,b,c,d,e,f,k,l,r;this.Sc=[];this.jh=!1;a=0;for(b=this.Pb.length;a<b;a++){e=this.Pb[a];k={};k.name=e[0];k.speed=e[1];k.loop=e[2];k.dn=e[3];k.rk=
e[4];k.zq=e[5];k.X=e[6];k.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],l={},l.xn=f[0],l.yn=f[1],l.ug=f[2],l.vg=f[3],l.width=f[4],l.height=f[5],l.duration=f[6],l.Rb=f[7],l.Sb=f[8],l.Yl=f[9],l.ik=f[10],l.Aq=f[11],l.Cg=0!==l.width,l.rl="",l.Mx=g,r={left:0,top:0,right:1,bottom:1},l.sn=r,l.Ba=null,(r=this.b.tu(f[0]))?l.fa=r:(l.fa=new Image,l.fa.jt=f[0],l.fa.Go=f[1],l.fa.dt=null,this.b.yr(l.fa,f[0])),k.frames.push(l),this.Sc.push(l);this.Pb[a]=k}}};t.rr=function(){var a,b,c;a=0;for(b=this.e.length;a<
b;a++)c=this.e[a],c.Si=c.Cc.Ba};t.ak=function(){if(!this.H){var a,b,c;a=0;for(b=this.Sc.length;a<b;++a)c=this.Sc[a],c.fa.dt=null,c.Ba=null;this.jh=!1;this.rr()}};t.Mm=function(){if(!this.H&&this.e.length){var a,b,c;a=0;for(b=this.Sc.length;a<b;++a)c=this.Sc[a],c.Ba=this.b.p.Mj(c.fa,!1,this.b.T,c.Aq);this.rr()}};t.vm=function(){if(!this.H&&!this.jh&&this.b.p){var a,b,c;a=0;for(b=this.Sc.length;a<b;++a)c=this.Sc[a],c.Ba=this.b.p.Mj(c.fa,!1,this.b.T,c.Aq);this.jh=!0}};t.Gn=function(){if(!this.H&&!this.e.length&&
this.jh){var a,b,c;a=0;for(b=this.Sc.length;a<b;++a)c=this.Sc[a],this.b.p.deleteTexture(c.Ba),c.Ba=null;this.jh=!1}};var d=[];t.Vm=function(a){var b,c,e;U(d);b=0;for(c=this.Sc.length;b<c;++b)e=this.Sc[b].fa,-1===d.indexOf(e)&&(a.drawImage(e,0,0),d.push(e))};c.ma=function(a){this.type=a;this.b=a.b;a=this.type.Pb[0].frames[0].ik;this.wc?this.la.fi(a):this.la=new db(a)};var e=c.ma.prototype;e.S=function(){this.visible=0===this.A[0];this.uj=this.wh=!1;this.Jd=0!==this.A[3];1===this.type.Pb.length&&1===
this.type.Pb[0].frames.length||0===this.type.Pb[0].speed||(this.b.Gg(this),this.wh=!0);this.Ga=this.To(this.A[1])||this.type.Pb[0];this.u=this.A[2];0>this.u&&(this.u=0);this.u>=this.Ga.frames.length&&(this.u=this.Ga.frames.length-1);var a=this.Ga.frames[this.u];this.la.fi(a.ik);this.Rb=a.Rb;this.Sb=a.Sb;this.Xg=this.Ga.speed;this.wc?this.od.reset():this.od=new bb;this.Rd=this.od.Y;this.Te=!0;this.Hd=0;this.Se=!0;this.Ni=this.vo="";this.Eo=0;this.Mi=-1;this.type.vm();var b,c,d,e,f,g,k,a=0;for(b=this.type.Pb.length;a<
b;a++)for(e=this.type.Pb[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.fa.width,f.height=f.fa.height),f.Cg&&(k=f.fa,g=f.sn,g.left=f.ug/k.width,g.top=f.vg/k.height,g.right=(f.ug+f.width)/k.width,g.bottom=(f.vg+f.height)/k.height,0===f.ug&&0===f.vg&&f.width===k.width&&f.height===k.height&&(f.Cg=!1));this.Cc=this.Ga.frames[this.u];this.Si=this.Cc.Ba};e.sb=function(){var a={a:this.Ga.X,f:this.u,cas:this.Xg,fs:this.Rd,ar:this.Hd,at:this.od.Y};this.Te||(a.ap=this.Te);this.Se||(a.af=
this.Se);return a};e.Kb=function(a){var b=this.yu(a.a);b&&(this.Ga=b);this.u=a.f;0>this.u&&(this.u=0);this.u>=this.Ga.frames.length&&(this.u=this.Ga.frames.length-1);this.Xg=a.cas;this.Rd=a.fs;this.Hd=a.ar;this.od.reset();this.od.Y=a.at;this.Te=a.hasOwnProperty("ap")?a.ap:!0;this.Se=a.hasOwnProperty("af")?a.af:!0;this.Cc=this.Ga.frames[this.u];this.Si=this.Cc.Ba;this.la.fi(this.Cc.ik);this.Rb=this.Cc.Rb;this.Sb=this.Cc.Sb};e.cl=function(a){this.u=a?0:this.Ga.frames.length-1;this.Te=!1;this.vo=this.Ga.name;
this.uj=!0;this.b.trigger(Y.prototype.j.Xr,this);this.b.trigger(Y.prototype.j.Un,this);this.uj=!1;this.Hd=0};e.Ei=function(){return this.od.Y};e.Ka=function(){this.od.add(this.b.oj(this));this.Ni.length&&this.Io();0<=this.Mi&&this.Jo();var a=this.od.Y,b=this.Ga,c=b.frames[this.u],d=c.duration/this.Xg;this.Te&&a>=this.Rd+d&&(this.Se?this.u++:this.u--,this.Rd+=d,this.u>=b.frames.length&&(b.zq?(this.Se=!1,this.u=b.frames.length-2):b.loop?this.u=b.rk:(this.Hd++,this.Hd>=b.dn?this.cl(!1):this.u=b.rk)),
0>this.u&&(b.zq?(this.u=1,this.Se=!0,b.loop||(this.Hd++,this.Hd>=b.dn&&this.cl(!0))):b.loop?this.u=b.rk:(this.Hd++,this.Hd>=b.dn?this.cl(!0):this.u=b.rk)),0>this.u?this.u=0:this.u>=b.frames.length&&(this.u=b.frames.length-1),a>this.Rd+b.frames[this.u].duration/this.Xg&&(this.Rd=a),a=b.frames[this.u],this.Nf(c,a),this.b.V=!0)};e.To=function(a){var b,c,d;b=0;for(c=this.type.Pb.length;b<c;b++)if(d=this.type.Pb[b],jb(d.name,a))return d;return null};e.yu=function(a){var b,c,d;b=0;for(c=this.type.Pb.length;b<
c;b++)if(d=this.type.Pb[b],d.X===a)return d;return null};e.Io=function(){var a=this.Ga.frames[this.u],b=this.To(this.Ni);this.Ni="";!b||jb(b.name,this.Ga.name)&&this.Te||(this.Ga=b,this.Xg=b.speed,0>this.u&&(this.u=0),this.u>=this.Ga.frames.length&&(this.u=this.Ga.frames.length-1),1===this.Eo&&(this.u=0),this.Te=!0,this.Rd=this.od.Y,this.Se=!0,this.Nf(a,this.Ga.frames[this.u]),this.b.V=!0)};e.Jo=function(){var a=this.Ga.frames[this.u],b=this.u;this.u=S(this.Mi);0>this.u&&(this.u=0);this.u>=this.Ga.frames.length&&
(this.u=this.Ga.frames.length-1);b!==this.u&&(this.Nf(a,this.Ga.frames[this.u]),this.Rd=this.od.Y,this.b.V=!0);this.Mi=-1};e.Nf=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.Rb=b.Rb;this.Sb=b.Sb;this.la.fi(b.ik);this.r();this.Cc=b;this.Si=b.Ba;c=0;for(d=this.F.length;c<d;c++)e=this.F[c],e.Ev&&e.Ev(a,b);this.b.trigger(Y.prototype.j.Nf,this)};e.qd=function(a){a.globalAlpha=this.opacity;var b=this.Cc,c=b.Cg,d=b.fa,e=this.x,f=this.y,
g=this.width,k=this.height;if(0===this.m&&0<=g&&0<=k)e-=this.Rb*g,f-=this.Sb*k,this.b.cd&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.ug,b.vg,b.width,b.height,e,f,g,k):a.drawImage(d,e,f,g,k);else{this.b.cd&&(e=Math.round(e),f=Math.round(f));a.save();var l=0<g?1:-1,r=0<k?1:-1;a.translate(e,f);1===l&&1===r||a.scale(l,r);a.rotate(this.m*l*r);e=0-this.Rb*ma(g);f=0-this.Sb*ma(k);c?a.drawImage(d,b.ug,b.vg,b.width,b.height,e,f,ma(g),ma(k)):a.drawImage(d,e,f,ma(g),ma(k));a.restore()}};e.cf=function(a){this.ac(a)};
e.ac=function(a){a.lc(this.Si);a.Ef(this.opacity);var b=this.Cc,c=this.Hb;if(this.b.cd){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Cg?a.zd(c.bb+d,c.cb+e,c.Fb+d,c.Gb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e,b.sn):a.Yh(c.bb+d,c.cb+e,c.Fb+d,c.Gb+e,c.xb+d,c.yb+e,c.ub+d,c.wb+e)}else b.Cg?a.zd(c.bb,c.cb,c.Fb,c.Gb,c.xb,c.yb,c.ub,c.wb,b.sn):a.Yh(c.bb,c.cb,c.Fb,c.Gb,c.xb,c.yb,c.ub,c.wb)};e.Cu=function(a){var b=this.Cc,c,d;c=0;for(d=b.Yl.length;c<d;c++)if(jb(a,b.Yl[c][0]))return c;return-1};e.Kl=function(a,
b){var c=this.Cc,d=c.Yl,e;Q(a)?e=this.Cu(a):e=a-1;e=S(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Rb)*this.width,d=d[e][2],d=(d-c.Sb)*this.height,c=Math.cos(this.m);e=Math.sin(this.m);var g=f*c-d*e,d=d*c+f*e,f=g+this.x,d=d+this.y;return b?f:d};var l=[],k=-2,G=[];n.prototype.as=function(a){if(!a)return!1;var c=this.b,d=c.Wo(),e=d.type,g=null;d.M.collmemory?g=d.M.collmemory:(g={},d.M.collmemory=g);d.M.spriteCreatedDestroyCallback||(d.M.spriteCreatedDestroyCallback=!0,c.Zk(function(a){var b=
d.M.collmemory;a=a.uid;var c,e;for(c in b)b.hasOwnProperty(c)&&(e=b[c],e[0]===a||e[1]===a)&&(f(b[c]),delete b[c])}));var l=e.ea(),r=a.ea(),l=l.cc(),t,p,n,y,N,D,x,ea=this.b.Ed,A=ea-1,B=c.Bb().$b;for(p=0;p<l.length;p++){n=l[p];r.qa?(n.W(),this.b.Vo(n.i,a,n.ja,G),t=G):t=r.cc();for(y=0;y<t.length;y++)N=t[y],c.Oc(n,N)||c.gt(n,N)?(D=b(g,n,N),D=!D||k<A,q(g,n,N,ea),D&&(c.nk(B.ta),D=e.ea(),x=a.ea(),D.qa=!1,x.qa=!1,e===a?(D.e.length=2,D.e[0]=n,D.e[1]=N,e.Ac()):(D.e.length=1,x.e.length=1,D.e[0]=n,x.e[0]=N,e.Ac(),
a.Ac()),B.Yv(),c.Bf(B.ta))):u(g,n,N);U(G)}return!1};var y=new ba,r=!1;new ta(0,0,0,0);t.finish=function(a){if(r){if(a){var b=this.b.Bb().$b.ad;a=null.ea();var c=y.he(),d,e;if(a.qa){a.qa=!1;U(a.e);d=0;for(e=c.length;d<e;++d)a.e[d]=c[d];if(b)for(U(a.da),d=0,e=null.e.length;d<e;++d)c=null.e[d],y.contains(c)||a.da.push(c)}else if(b)for(b=a.e.length,d=0,e=c.length;d<e;++d)a.e[b+d]=c[d],Ca(a.da,c[d]);else za(a.e,c);null.Ac()}y.clear();r=!1}};n.prototype.Un=function(a){return jb(this.vo,a)};n.prototype.Xr=
function(){return!0};n.prototype.Nf=function(){return!0};c.j=new n;a.prototype.Xk=function(a){this.Wa=a;this.te=gb(a);hb(this,a,this.b.q);this.b.V=!0};a.prototype.xs=function(a,b){this.Ni=a;this.Eo=b;this.wh||(this.b.Gg(this),this.wh=!0);this.uj||this.Io()};a.prototype.ys=function(a){this.Mi=a;this.wh||(this.b.Gg(this),this.wh=!0);this.uj||this.Jo()};a.prototype.Bs=function(a){a=ma(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.r())};c.P=new a;c.ib=new function(){}})();
function oc(g){this.b=g}
(function(){function g(){return a.length?a.pop():{}}function n(b){var f,d;f=0;for(d=b.length;f<d;f++)a.push(b[f]);U(b)}function f(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function p(){}var q=oc.prototype;q.S=function(){q.P.Is=function(a){this.width!==a&&(this.width=a,this.If=!0,this.r())}};q.ra=function(a){this.Fa=a;this.b=a.b};var u=q.ra.prototype;u.S=function(){};u.ak=function(){if(!this.H){var a,b,d;a=0;for(b=this.e.length;a<b;a++)d=this.e[a],d.wd=null,d.yf=null,
d.ic=null}};q.ma=function(a){this.type=a;this.b=a.b;this.wc?U(this.Ee):this.Ee=[];this.If=!0};u=q.ma.prototype;u.S=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.sj=this.A[4];this.Rk=this.A[5];this.Nn=0===this.A[7];this.qm=this.Gj=this.width;this.Fj=this.height;this.rm=this.A[8];this.jj=this.Vf="";this.er=this.fr=this.Wh=0;this.Gv();this.ic=this.yf=this.wd=null;this.dq=!1;this.Gh=this.b.Ed;this.wc?this.Je.set(0,0,1,1):this.Je=new ta(0,0,1,1);
this.b.p&&this.b.Gg(this)};u.Gv=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Wh=parseInt(a[b].substr(0,a[b].length-2));this.Zm=Math.ceil(this.Wh/72*96)+4;0<b&&(this.jj=a[b-1]);this.Vf=a[b+1];for(b+=2;b<a.length;b++)this.Vf+=" "+a[b];break}};u.sb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.sj,va:this.Rk,wr:this.Nn,lho:this.rm,fn:this.Vf,fs:this.jj,ps:this.Wh,pxh:this.Zm,tw:this.fr,th:this.er,lrt:this.Gh}};u.Kb=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.sj=a.ha;this.Rk=a.va;this.Nn=a.wr;this.rm=a.lho;this.Vf=a.fn;this.jj=a.fs;this.Wh=a.ps;this.Zm=a.pxh;this.fr=a.tw;this.er=a.th;this.Gh=a.lrt;this.If=!0;this.qm=this.Gj=this.width;this.Fj=this.height};u.Ka=function(){if(this.b.p&&this.ic&&300<=this.b.Ed-this.Gh){var a=this.i;this.W();var b=this.ja;if(b.right<a.ua||b.bottom<a.wa||b.left>a.Aa||b.top>a.za)this.b.p.deleteTexture(this.ic),this.wd=this.yf=this.ic=null}};u.wg=function(){this.wd=this.yf=null;this.b.p&&
this.ic&&this.b.p.deleteTexture(this.ic);this.ic=null};u.Ei=function(){this.font=this.jj+" "+this.Wh.toString()+"pt "+this.Vf;this.If=!0;this.b.V=!0};u.qd=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var d=1;b&&(d=this.i.ec(),a.save(),a.scale(d,d));if(this.If||this.width!==this.qm)this.type.Fa.Ns(this.text,this.Ee,a,this.width,this.Nn),this.If=!1,this.qm=this.width;this.W();var d=b?0:this.Hb.bb,e=b?0:this.Hb.cb;this.b.cd&&(d=d+.5|0,e=e+
.5|0);0===this.m||b||(a.save(),a.translate(d,e),a.rotate(this.m),e=d=0);var f=e+this.height,g=this.Zm,g=g+this.rm,q,p;1===this.Rk?e+=Math.max(this.height/2-this.Ee.length*g/2,0):2===this.Rk&&(e+=Math.max(this.height-this.Ee.length*g-2,0));for(p=0;p<this.Ee.length&&!(q=d,1===this.sj?q=d+(this.width-this.Ee[p].width)/2:2===this.sj&&(q=d+(this.width-this.Ee[p].width)),a.fillText(this.Ee[p].text,q,e),e+=g,e>=f-g);p++);(0!==this.m||b)&&a.restore();this.Gh=this.b.Ed};u.ac=function(a){if(!(1>this.width||
1>this.height)){var b=this.If||this.dq;this.dq=!1;var d=this.i.ec(),e=this.i.La(),f=this.Je,g=d*this.width,q=d*this.height,p=Math.ceil(g),r=Math.ceil(q),h=this.b.D/2,m=this.b.C/2;this.yf||(this.wd=document.createElement("canvas"),this.wd.width=p,this.wd.height=r,this.Gj=p,this.Fj=r,b=!0,this.yf=this.wd.getContext("2d"));if(p!==this.Gj||r!==this.Fj)this.wd.width=p,this.wd.height=r,this.ic&&(a.deleteTexture(this.ic),this.ic=null),b=!0;b&&(this.yf.clearRect(0,0,p,r),this.qd(this.yf,!0),this.ic||(this.ic=
a.qc(p,r,this.b.T,this.b.ze)),a.Bw(this.wd,this.ic,this.b.ze));this.Gj=p;this.Fj=r;a.lc(this.ic);a.Ef(this.opacity);a.Lc();a.translate(-h,-m);a.yc();var n=this.Hb,b=this.i.Ea(n.bb,n.cb,!0,!0),h=this.i.Ea(n.bb,n.cb,!1,!0),m=this.i.Ea(n.Fb,n.Gb,!0,!0),u=this.i.Ea(n.Fb,n.Gb,!1,!0),v=this.i.Ea(n.xb,n.yb,!0,!0),R=this.i.Ea(n.xb,n.yb,!1,!0),T=this.i.Ea(n.ub,n.wb,!0,!0),n=this.i.Ea(n.ub,n.wb,!1,!0);if(this.b.cd||0===this.m&&0===e)var z=(b+.5|0)-b,J=(h+.5|0)-h,b=b+z,h=h+J,m=m+z,u=u+J,v=v+z,R=R+J,T=T+z,n=
n+J;0===this.m&&0===e?(m=b+p,u=h,v=m,R=h+r,T=b,n=R,f.right=1,f.bottom=1):(f.right=g/p,f.bottom=q/r);a.zd(b,h,m,u,v,R,T,n,f);a.Lc();a.scale(d,d);a.tk(-this.i.La());a.translate((this.i.ua+this.i.Aa)/-2,(this.i.wa+this.i.za)/-2);a.yc();this.Gh=this.b.Ed}};var b=[];q.Ls=function(a){U(b);for(var f="",d,e=0;e<a.length;)if(d=a.charAt(e),"\n"===d)f.length&&(b.push(f),f=""),b.push("\n"),++e;else if(" "===d||"\t"===d||"-"===d){do f+=a.charAt(e),e++;while(e<a.length&&(" "===a.charAt(e)||"\t"===a.charAt(e)));
b.push(f);f=""}else e<a.length&&(f+=d,e++);f.length&&b.push(f)};var a=[];q.Ns=function(a,b,d,e,f){if(a&&a.length)if(2>=e)n(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var k=d.measureText(a).width;if(k<=e){n(b);b.push(g());b[0].text=a;b[0].width=k;return}}this.Os(a,b,d,e,f)}else n(b)};q.Os=function(c,q,d,e,l){l&&(this.Ls(c),c=b);var k="",p,n,r,h=0;for(r=0;r<c.length;r++)"\n"===c[r]?(h>=q.length&&q.push(g()),k=f(k),n=q[h],n.text=k,n.width=d.measureText(k).width,h++,k=""):(p=k,k+=c[r],n=d.measureText(k).width,
n>=e&&(h>=q.length&&q.push(g()),p=f(p),n=q[h],n.text=p,n.width=d.measureText(p).width,h++,k=c[r],l||" "!==k||(k="")));k.length&&(h>=q.length&&q.push(g()),k=f(k),n=q[h],n.text=k,n.width=d.measureText(k).width,h++);for(r=h;r<q.length;r++)a.push(q[r]);q.length=h};q.j=new function(){};p.prototype.Ds=function(a){C(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.If=!0,this.b.V=!0)};p.prototype.Xk=function(a){this.Wa=a;this.te=gb(a);hb(this,a,this.b.q);this.b.V=!0};
q.P=new p;q.ib=new function(){}})();function pc(g){this.b=g}
(function(){function g(){}var n=pc.prototype;n.ra=function(f){this.Fa=f;this.b=f.b};var f=n.ra.prototype;f.S=function(){this.H||(this.fa=new Image,this.fa.Go=this.yn,this.b.yr(this.fa,this.xn),this.Ba=this.pattern=null)};f.ak=function(){this.H||(this.Ba=null)};f.Mm=function(){if(!this.H&&this.e.length){this.Ba||(this.Ba=this.b.p.Mj(this.fa,!0,this.b.T,this.zn));var f,g;f=0;for(g=this.e.length;f<g;f++)this.e[f].Ba=this.Ba}};f.vm=function(){this.H||this.Ba||!this.b.p||(this.Ba=this.b.p.Mj(this.fa,!0,
this.b.T,this.zn))};f.Gn=function(){this.H||this.e.length||!this.Ba||(this.b.p.deleteTexture(this.Ba),this.Ba=null)};f.Vm=function(f){f.drawImage(this.fa,0,0)};n.ma=function(f){this.type=f;this.b=f.b};f=n.ma.prototype;f.S=function(){this.visible=0===this.A[0];this.Je=new ta(0,0,0,0);this.gp=!1;this.fa=this.type.fa;this.b.p?(this.type.vm(),this.Ba=this.type.Ba):(this.type.pattern||(this.type.pattern=this.b.na.createPattern(this.type.fa,"repeat")),this.pattern=this.type.pattern)};f.nd=function(){this.gp=
!1;this.fa=this.type.fa};f.wg=function(){this.b.p&&this.gp&&this.Ba&&(this.b.p.deleteTexture(this.Ba),this.Ba=null)};f.qd=function(f){f.globalAlpha=this.opacity;f.save();f.fillStyle=this.pattern;var g=this.x,n=this.y;this.b.cd&&(g=Math.round(g),n=Math.round(n));var b=-(this.Rb*this.width),a=-(this.Sb*this.height),c=b%this.fa.width,t=a%this.fa.height;0>c&&(c+=this.fa.width);0>t&&(t+=this.fa.height);f.translate(g,n);f.rotate(this.m);f.translate(c,t);f.fillRect(b-c,a-t,this.width,this.height);f.restore()};
f.cf=function(f){this.ac(f)};f.ac=function(f){f.lc(this.Ba);f.Ef(this.opacity);var g=this.Je;g.right=this.width/this.fa.width;g.bottom=this.height/this.fa.height;var n=this.Hb;if(this.b.cd){var b=Math.round(this.x)-this.x,a=Math.round(this.y)-this.y;f.zd(n.bb+b,n.cb+a,n.Fb+b,n.Gb+a,n.xb+b,n.yb+a,n.ub+b,n.wb+a,g)}else f.zd(n.bb,n.cb,n.Fb,n.Gb,n.xb,n.yb,n.ub,n.wb,g)};n.j=new function(){};g.prototype.Xk=function(f){this.Wa=f;this.te=gb(f);hb(this,f,this.b.q);this.b.V=!0};n.P=new g;n.ib=new function(){}})();
function Z(g){this.b=g}
(function(){function g(a){c=a.x;t=a.y;d=a.z}function n(a,b,c,d){var g;g=e.length?e.pop():new f;g.init(a,b,c,d);return g}function f(){this.li=this.id=this.y=this.x=this.Fk=this.Ek=this.pm=this.time=this.vn=0;this.qi=this.Mk=!1}function p(){}function q(){}var u=Z.prototype;u.ra=function(a){this.Fa=a;this.b=a.b};u.ra.prototype.S=function(){};u.ma=function(a){this.type=a;this.b=a.b;this.touches=[];this.Cm=!1};var b=u.ma.prototype,a={left:0,top:0};b.dh=function(a){var b,c;b=0;for(c=this.touches.length;b<
c;b++)if(this.touches[b].id===a)return b;return-1};var c=0,t=0,d=0,e=[];f.prototype.init=function(a,b,c,d){var e=Ya();this.vn=this.pm=this.time=e;this.Ek=a;this.Fk=b;this.x=a;this.y=b;this.pressure=this.height=this.width=0;this.id=c;this.li=d;this.qi=this.Mk=!1};f.prototype.update=function(a,b,c,d,e,f){this.pm=this.time;this.time=a;this.x=b;this.y=c;this.width=d;this.height=e;this.pressure=f;!this.qi&&15<=Qa(this.Ek,this.Fk,this.x,this.y)&&(this.qi=!0)};f.prototype.vv=function(a,b){!this.Mk&&500<=
Ya()-this.vn&&!this.qi&&15>Qa(this.Ek,this.Fk,this.x,this.y)&&(this.Mk=!0,a.Fd=this.li,a.Hg=this.id,a.ag=b,a.b.trigger(Z.prototype.j.ls,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.ns,a),a.ag=0)};var l=-1E3,k=-1E3,G=-1E4;f.prototype.Xp=function(a,b){if(!this.Mk){var c=Ya();333>=c-this.vn&&!this.qi&&15>Qa(this.Ek,this.Fk,this.x,this.y)&&(a.Fd=this.li,a.Hg=this.id,a.ag=b,666>=c-G&&25>Qa(l,k,this.x,this.y)?(a.b.trigger(Z.prototype.j.cs,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.ds,
a),k=l=-1E3,G=-1E4):(a.b.trigger(Z.prototype.j.us,a),a.Ld=this.x,a.Md=this.y,a.b.trigger(Z.prototype.j.io,a),l=this.x,k=this.y,G=c),a.ag=0)}};b.S=function(){this.ov=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.ag=this.Hg=this.Fd=this.Md=this.Ld=this.qo=this.po=this.oo=this.Ss=this.Rs=this.Qs=this.fk=this.ek=this.dk=0;this.zw=0!==this.A[0];var a=0<this.b.Qb?document:this.b.canvas,b=document;this.b.Ib?b=a=window.Canvas:this.b.Ec&&(b=a=window);var c=this;window.navigator.pointerEnabled?
(a.addEventListener("pointerdown",function(a){c.nq(a)},!1),a.addEventListener("pointermove",function(a){c.mq(a)},!1),b.addEventListener("pointerup",function(a){c.bk(a,!1)},!1),b.addEventListener("pointercancel",function(a){c.bk(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.nq(a)},!1),a.addEventListener("MSPointerMove",function(a){c.mq(a)},!1),b.addEventListener("MSPointerUp",function(a){c.bk(a,!1)},!1),b.addEventListener("MSPointerCancel",function(a){c.bk(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.pq(a)},!1),a.addEventListener("touchmove",function(a){c.oq(a)},!1),b.addEventListener("touchend",function(a){c.Nm(a,!1)},!1),b.addEventListener("touchcancel",function(a){c.Nm(a,!0)},!1));if(this.ov){var d=function(a){a=a.reading;c.oo=a.accelerationX;c.po=a.accelerationY;c.qo=a.accelerationZ},e=function(a){a=a.reading;c.dk=a.yawDegrees;c.ek=a.pitchDegrees;c.fk=a.rollDegrees},f=Windows.Devices.Sensors.Accelerometer.getDefault();f&&(f.reportInterval=Math.max(f.minimumReportInterval,16),
f.addEventListener("readingchanged",d));var k=Windows.Devices.Sensors.Inclinometer.getDefault();k&&(k.reportInterval=Math.max(k.minimumReportInterval,16),k.addEventListener("readingchanged",e));document.addEventListener("visibilitychange",function(){document.hidden||document.msHidden?(f&&f.removeEventListener("readingchanged",d),k&&k.removeEventListener("readingchanged",e)):(f&&f.addEventListener("readingchanged",d),k&&k.addEventListener("readingchanged",e))},!1)}else window.addEventListener("deviceorientation",
function(a){c.dk=a.alpha||0;c.ek=a.beta||0;c.fk=a.gamma||0},!1),window.addEventListener("devicemotion",function(a){a.accelerationIncludingGravity&&(c.Qs=a.accelerationIncludingGravity.x||0,c.Rs=a.accelerationIncludingGravity.y||0,c.Ss=a.accelerationIncludingGravity.z||0);a.acceleration&&(c.oo=a.acceleration.x||0,c.po=a.acceleration.y||0,c.qo=a.acceleration.z||0)},!1);this.zw&&!this.b.Da&&(jQuery(document).mousemove(function(a){c.Cv(a)}),jQuery(document).mousedown(function(a){c.Bv(a)}),jQuery(document).mouseup(function(a){c.Dv(a)}));
!this.b.zh&&this.b.uc&&navigator.accelerometer&&navigator.accelerometer.watchAcceleration&&navigator.accelerometer.watchAcceleration(g,null,{frequency:40});this.b.qw(this)};b.mq=function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&b.preventDefault();var c=this.dh(b.pointerId),d=Ya();if(0<=c){var e=this.b.Da?a:jQuery(this.b.canvas).offset(),c=this.touches[c];2>d-c.time||c.update(d,b.pageX-e.left,b.pageY-e.top,b.width||0,b.height||0,b.pressure||0)}}};b.nq=
function(b){if(b.pointerType!==b.MSPOINTER_TYPE_MOUSE&&"mouse"!==b.pointerType){b.preventDefault&&kb(b)&&b.preventDefault();var c=this.b.Da?a:jQuery(this.b.canvas).offset(),d=b.pageX-c.left,c=b.pageY-c.top;Ya();this.Fd=this.touches.length;this.Hg=b.pointerId;this.touches.push(n(d,c,b.pointerId,this.Fd));this.b.fc=!0;this.b.trigger(Z.prototype.j.fo,this);this.b.trigger(Z.prototype.j.lo,this);this.Ld=d;this.Md=c;this.b.trigger(Z.prototype.j.ko,this);this.b.fc=!1}};b.bk=function(a,b){if(a.pointerType!==
a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&kb(a)&&a.preventDefault();var c=this.dh(a.pointerId);this.Fd=0<=c?this.touches[c].li:-1;this.Hg=0<=c?this.touches[c].id:-1;this.b.fc=!0;this.b.trigger(Z.prototype.j.eo,this);this.b.trigger(Z.prototype.j.jo,this);0<=c&&(b||this.touches[c].Xp(this,c),100>e.length&&e.push(this.touches[c]),this.touches.splice(c,1));this.b.fc=!1}};b.oq=function(b){b.preventDefault&&b.preventDefault();var c=Ya(),d,e,f,g;d=0;for(e=b.changedTouches.length;d<
e;d++)if(f=b.changedTouches[d],g=this.dh(f.identifier),0<=g){var k=this.b.Da?a:jQuery(this.b.canvas).offset();g=this.touches[g];2>c-g.time||g.update(c,f.pageX-k.left,f.pageY-k.top,2*(f.Wx||f.cy||f.Px||f.Sx||0),2*(f.Xx||f.ey||f.Qx||f.Tx||0),f.Kx||f.by||f.Ox||f.Rx||0)}};b.pq=function(b){b.preventDefault&&kb(b)&&b.preventDefault();var c=this.b.Da?a:jQuery(this.b.canvas).offset();Ya();this.b.fc=!0;var d,e,f,g;d=0;for(e=b.changedTouches.length;d<e;d++)if(f=b.changedTouches[d],g=this.dh(f.identifier),-1===
g){g=f.pageX-c.left;var k=f.pageY-c.top;this.Fd=this.touches.length;this.Hg=f.identifier;this.touches.push(n(g,k,f.identifier,this.Fd));this.b.trigger(Z.prototype.j.fo,this);this.b.trigger(Z.prototype.j.lo,this);this.Ld=g;this.Md=k;this.b.trigger(Z.prototype.j.ko,this)}this.b.fc=!1};b.Nm=function(a,b){a.preventDefault&&kb(a)&&a.preventDefault();this.b.fc=!0;var c,d,f;c=0;for(d=a.changedTouches.length;c<d;c++)f=a.changedTouches[c],f=this.dh(f.identifier),0<=f&&(this.Fd=this.touches[f].li,this.Hg=this.touches[f].id,
this.b.trigger(Z.prototype.j.eo,this),this.b.trigger(Z.prototype.j.jo,this),b||this.touches[f].Xp(this,f),100>e.length&&e.push(this.touches[f]),this.touches.splice(f,1));this.b.fc=!1};b.Ei=function(){return this.b.uc&&0===this.dk&&0!==d?90*d:this.dk};b.Ix=function(){return this.b.uc&&0===this.ek&&0!==t?90*t:this.ek};b.Jx=function(){return this.b.uc&&0===this.fk&&0!==c?90*c:this.fk};b.Bv=function(a){this.pq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Cm=!0};b.Cv=function(a){this.Cm&&
this.oq({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};b.Dv=function(a){a.preventDefault&&this.b.dp&&!this.b.ze&&a.preventDefault();this.b.dp=!0;this.Nm({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]});this.Cm=!1};b.Kk=function(){var a,b,c,d=Ya();a=0;for(b=this.touches.length;a<b;++a)c=this.touches[a],c.time<=d-50&&(c.pm=d),c.vv(this,a)};p.prototype.lo=function(){return!0};p.prototype.jo=function(){return!0};p.prototype.ko=function(a){return a?this.b.Hk(a,this.Ld,this.Md):
!1};var y=[];p.prototype.Ur=function(a){if(!a)return!1;var b=a.ea(),c=b.cc(),d,e,f,g,k,l;f=0;for(g=c.length;f<g;f++){var q=c[f];q.W();k=0;for(l=this.touches.length;k<l;k++)if(e=this.touches[k],d=q.i.nb(e.x,e.y,!0),e=q.i.nb(e.x,e.y,!1),q.zb(d,e)){y.push(q);break}}return y.length?(b.qa=!1,za(b.e,y),a.Ac(),U(y),!0):!1};p.prototype.fo=function(a){a=Math.floor(a);return a===this.Fd};p.prototype.eo=function(a){a=Math.floor(a);return a===this.Fd};p.prototype.ls=function(){return!0};p.prototype.us=function(){return!0};
p.prototype.cs=function(){return!0};p.prototype.ns=function(a){return a?this.b.Hk(a,this.Ld,this.Md):!1};p.prototype.io=function(a){return a?this.b.Hk(a,this.Ld,this.Md):!1};p.prototype.ds=function(a){return a?this.b.Hk(a,this.Ld,this.Md):!1};u.j=new p;q.prototype.mo=function(a,b){var c=this.ag;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,f,g,k;ia(b)?(d=this.b.eh(0),e=d.scale,f=d.md,g=d.Ic,k=d.m,d.scale=1,d.md=1,d.Ic=1,d.m=0,a.B(d.nb(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.md=f,
d.Ic=g,d.m=k):(d=C(b)?this.b.eh(b):this.b.Ml(b))?a.B(d.nb(this.touches[c].x,this.touches[c].y,!0)):a.B(0)}};q.prototype.no=function(a,b){var c=this.ag;if(0>c||c>=this.touches.length)a.B(0);else{var d,e,f,g,k;ia(b)?(d=this.b.eh(0),e=d.scale,f=d.md,g=d.Jc,k=d.m,d.scale=1,d.md=1,d.Jc=1,d.m=0,a.B(d.nb(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.md=f,d.Jc=g,d.m=k):(d=C(b)?this.b.eh(b):this.b.Ml(b))?a.B(d.nb(this.touches[c].x,this.touches[c].y,!1)):a.B(0)}};u.ib=new q})();
function qc(g){this.b=g}
(function(){function g(a){var b;if(!d[a])for(d[a]=Array(20),b=0;20>b;++b)d[a][b]=0;return d[a]}function n(a){var b;if(!e[a])for(e[a]=Array(20),b=0;20>b;++b)e[a][b]=0;return e[a]}function f(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function p(b){t[b.gamepad.index]=b.gamepad;a.trigger(qc.prototype.j.hs,c)}function q(b){a.trigger(qc.prototype.j.ks,c);t[b.gamepad.index]=null}function u(){}var b=qc.prototype;b.ra=function(a){this.Fa=a;this.b=a.b};b.ra.prototype.S=function(){};var a=null,c=null,t=Array(16),
d=Array(16),e=Array(16),l="",k="",G=null,y={windows:{}};y.windows.firefox={};var r=[0,1,2,3,4,5,8,9,10,11],h=[0,1,[7,6],2,3,[14,15],[12,13]];y.windows.firefox.xbox360=function(a,b){return b?a>=h.length?-1:C(h[a])?h[a]+16:h[a]:a>=r.length?-1:r[a]};var m=[2,0,1,3,4,6,5,7,8,9],w=[0,1,2,3,[14,15],[12,13]];y.windows.firefox.logitechdualaction=function(a,b){return b?a>=w.length?-1:C(w[a])?w[a]+16:w[a]:a>=m.length?-1:m[a]};b.ma=function(b){this.type=b;a=this.b=b.b;c=this};var E=b.ma.prototype;E.S=function(){this.Bj=
0;var a=navigator.userAgent;l="windows";/mac/i.test(a)&&(l="mac");G=y[l];k="chrome";/firefox/i.test(a)&&(k="firefox");G&&(G=G[k]);window.addEventListener("webkitgamepadconnected",p,!1);window.addEventListener("webkitgamepaddisconnected",q,!1);window.addEventListener("MozGamepadConnected",p,!1);window.addEventListener("MozGamepadDisconnected",q,!1);window.addEventListener("gamepadconnected",p,!1);window.addEventListener("gamepaddisconnected",q,!1);this.b.Gg(this);this.Yk=[]};E.Ka=function(){this.Yk.length=
0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.vp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||t;if(a){var c,h,k,l,m,q,p;c=0;for(h=a.length;c<h;c++){var u=a[c];if(u){var r=g(c),w=n(c);l=c;k=g(l);l=n(l);m=void 0;for(m=0;20>m;++m)l[m]=
k[m];b?k=f:G?(k="",l=u.id.toLowerCase(),-1<l.indexOf("xbox 360")?k="xbox360":-1<l.indexOf("logitech dual action")&&(k="logitechdualaction"),k=G[k]||f):k=f;m=k;k=0;for(l=u.buttons.length;k<l;k++)p="undefined"!==typeof u.buttons[k].value?u.buttons[k].value:u.buttons[k],q=m(k,!1,p),0<=q&&20>q&&(r[q]=100*p,50<=r[q]&&50>w[q]&&(this.Bj=q));k=0;for(l=u.axes.length;k<l;k++)p=u.axes[k],q=m(k,!0,p),C(q)?0<=q&&20>q&&(r[q]=100*p):(r[q[0]]=0,r[q[1]]=0,0>=p?r[q[0]]=Math.abs(100*p):r[q[1]]=Math.abs(100*p));this.Yk.push(u)}else u=
c,d[u]=null,e[u]=null}for(;20>c;++c)a=c,d[a]=null,e[a]=null}};E.sb=function(){return{lastButton:this.Bj}};E.Kb=function(a){this.Bj=a.lastButton};u.prototype.hs=function(){return!0};u.prototype.ks=function(){return!0};u.prototype.Zr=function(a,b){a=Math.floor(a);if(0>a||a>=this.Yk.length)return!1;var c=g(a),d=n(a);if(!c||!d)return!1;if(c=50<=c[b]&&50>d[b])this.Bj=b;return c};b.j=new u;b.P=new function(){};b.ib=new function(){}})();function rc(g){this.b=g}
(function(){var g=rc.prototype;g.ra=function(f){this.behavior=f;this.b=f.b};g.ra.prototype.S=function(){};g.ma=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var n=g.ma.prototype;n.S=function(){this.to=this.A[0];this.uo=this.A[1];this.Ys=this.A[2];this.Xs=this.A[3];this.d.W();this.On=this.d.ja.left;this.Rn=this.d.ja.top;this.Pn=this.b.Oa-this.d.ja.left;this.Qn=this.b.Na-this.d.ja.top;this.bn=this.b.Oa-this.d.ja.right;this.fl=this.b.Na-this.d.ja.bottom;this.enabled=0!==this.A[4]};
n.sb=function(){return{xleft:this.On,ytop:this.Rn,xright:this.Pn,ybottom:this.Qn,rdiff:this.bn,bdiff:this.fl,enabled:this.enabled}};n.Kb=function(f){this.On=f.xleft;this.Rn=f.ytop;this.Pn=f.xright;this.Qn=f.ybottom;this.bn=f.rdiff;this.fl=f.bdiff;this.enabled=f.enabled};n.Ka=function(){if(this.enabled){var f,g=this.d.i,q=this.d,n=this.d.ja;0===this.to?(q.W(),f=g.ua+this.On-n.left,0!==f&&(q.x+=f,q.r())):1===this.to&&(q.W(),f=g.Aa-this.Pn-n.left,0!==f&&(q.x+=f,q.r()));0===this.uo?(q.W(),f=g.wa+this.Rn-
n.top,0!==f&&(q.y+=f,q.r())):1===this.uo&&(q.W(),f=g.za-this.Qn-n.top,0!==f&&(q.y+=f,q.r()));1===this.Ys&&(q.W(),f=g.Aa-this.bn-n.right,0!==f&&(q.width+=f,0>q.width&&(q.width=0),q.r()));1===this.Xs&&(q.W(),f=g.za-this.fl-n.bottom,0!==f&&(q.height+=f,0>q.height&&(q.height=0),q.r()))}};g.j=new function(){};g.P=new function(){};g.ib=new function(){}})();function sc(g){this.b=g}
(function(){function g(){}function n(){}var f=sc.prototype;f.ra=function(f){this.behavior=f;this.b=f.b};f.ra.prototype.S=function(){};f.ma=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var p=f.ma.prototype;p.S=function(){this.Pe=this.Cd=this.Dg=this.$j=this.ck=0};p.sb=function(){return{ontime:this.ck,offtime:this.$j,stage:this.Dg,stagetimeleft:this.Cd,timeleft:this.Pe}};p.Kb=function(f){this.ck=f.ontime;this.$j=f.offtime;this.Dg=f.stage;this.Cd=f.stagetimeleft;this.Pe=f.timeleft};
p.Ka=function(){if(!(0>=this.Pe)){var f=this.b.oj(this.d);this.Pe-=f;0>=this.Pe?(this.Pe=0,this.d.visible=!0,this.b.V=!0,this.b.trigger(sc.prototype.j.gs,this.d)):(this.Cd-=f,0>=this.Cd&&(0===this.Dg?(this.d.visible=!1,this.Dg=1,this.Cd+=this.$j):(this.d.visible=!0,this.Dg=0,this.Cd+=this.ck),this.b.V=!0))}};g.prototype.gs=function(){return!0};f.j=new g;n.prototype.Mr=function(f,g,b){this.ck=f;this.$j=g;this.Dg=1;this.Cd=g;this.Pe=b;this.d.visible=!1;this.b.V=!0};f.P=new n;f.ib=new function(){}})();
function uc(g){this.b=g}
(function(){function g(){}function n(){}var f=uc.prototype;f.ra=function(f){this.behavior=f;this.b=f.b};f.ra.prototype.S=function(){};f.ma=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b;this.ji=this.Bk=this.Ak=this.Xl=this.Sg=this.Yg=this.lg=this.mg=this.ai=this.Hh=!1;this.hc=null;this.tm=-1;this.rf=this.qf=0;this.ij=!1;this.Wf=this.Tc=0;this.hj=!0;this.ca=this.K=0};var p=f.ma.prototype;p.sr=function(){this.gb=Math.cos(this.Zf);this.hb=Math.sin(this.Zf);this.Cf=Math.cos(this.Zf-
Math.PI/2);this.Df=Math.sin(this.Zf-Math.PI/2);this.gb=ib(this.gb);this.hb=ib(this.hb);this.Cf=ib(this.Cf);this.Df=ib(this.Df);this.Gl=this.Sd;0>this.Sd&&(this.gb*=-1,this.hb*=-1,this.Sd=Math.abs(this.Sd))};p.S=function(){this.sg=this.A[0];this.Gd=this.A[1];this.Tf=this.A[2];this.Bh=this.A[3];this.Gl=this.Sd=this.A[4];this.Uj=this.A[5];this.wl=0!==this.A[6];this.mm=this.A[7]/1E3;this.nt=1===this.A[8];this.enabled=0!==this.A[9];this.Mg=!1;this.Ng=this.b.Oe(this.d);this.um=-1;this.Hf=0;this.Zf=W(90);
this.sr();var f=this;this.nt&&!this.b.Da&&(jQuery(document).keydown(function(g){f.Jm(g)}),jQuery(document).keyup(function(g){f.Km(g)}));this.wc||(this.bq=function(g){f.Im(g)});this.b.Zk(this.bq);this.d.M.isPlatformBehavior=!0};p.sb=function(){return{ii:this.Xl,lfx:this.qf,lfy:this.rf,lfo:this.hc?this.hc.uid:-1,am:this.Tc,en:this.enabled,fall:this.Wf,ft:this.hj,dx:this.K,dy:this.ca,ms:this.sg,acc:this.Gd,dec:this.Tf,js:this.Bh,g:this.Sd,g1:this.Gl,mf:this.Uj,wof:this.Mg,woj:this.Ng?this.Ng.uid:-1,
ga:this.Zf,edj:this.wl,cdj:this.Sg,dj:this.Yg,sus:this.mm}};p.Kb=function(f){this.Xl=f.ii;this.qf=f.lfx;this.rf=f.lfy;this.tm=f.lfo;this.Tc=f.am;this.enabled=f.en;this.Wf=f.fall;this.hj=f.ft;this.K=f.dx;this.ca=f.dy;this.sg=f.ms;this.Gd=f.acc;this.Tf=f.dec;this.Bh=f.js;this.Sd=f.g;this.Gl=f.g1;this.Uj=f.mf;this.Mg=f.wof;this.um=f.woj;this.Zf=f.ga;this.wl=f.edj;this.Sg=f.cdj;this.Yg=f.dj;this.mm=f.sus;this.ji=this.Bk=this.Ak=this.lg=this.mg=this.ai=this.Hh=!1;this.Hf=0;this.sr()};p.nd=function(){-1===
this.tm?this.hc=null:this.hc=this.b.$f(this.tm);-1===this.um?this.Ng=null:this.Ng=this.b.$f(this.um)};p.Im=function(f){this.hc==f&&(this.hc=null)};p.wg=function(){this.hc=null;this.b.Tv(this.bq)};p.Jm=function(f){switch(f.which){case 38:f.preventDefault();this.mg=!0;break;case 37:f.preventDefault();this.Hh=!0;break;case 39:f.preventDefault(),this.ai=!0}};p.Km=function(f){switch(f.which){case 38:f.preventDefault();this.lg=this.mg=!1;break;case 37:f.preventDefault();this.Hh=!1;break;case 39:f.preventDefault(),
this.ai=!1}};p.Af=function(){this.mg=this.ai=this.Hh=!1};p.Ei=function(){return 0>this.Sd?-1:1};p.pp=function(){var f=null,g=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.gb;this.d.y+=this.hb;this.d.r();if(this.hc&&this.b.Oc(this.d,this.hc))return this.d.x=b,this.d.y=a,this.d.r(),this.hc;(f=this.b.nc(this.d))||0!==this.Wf||(g=this.b.Oe(this.d,!0));this.d.x=b;this.d.y=a;this.d.r();if(f){if(this.b.Oc(this.d,f))return null;this.ij=!1;return f}if(g&&g.length){a=f=0;for(b=g.length;f<b;f++)g[a]=g[f],this.b.Oc(this.d,
g[f])||a++;if(1<=a)return this.ij=!0,g[0]}return null};p.Ka=function(){};p.Dq=function(){var f=this.b.oj(this.d),g,b,a,c,n,d,e,l,k;this.mg||this.ji||(this.lg=!1);var p=this.Hh||this.Ak;a=this.ai||this.Bk;var y=(c=this.mg||this.ji)&&!this.lg;this.ji=this.Bk=this.Ak=!1;if(this.enabled){this.Xl&&(y=c=a=p=!1);c||(this.Hf=0);l=this.hc;k=!1;this.hj&&((this.b.nc(this.d)||this.b.Oe(this.d))&&this.b.fd(this.d,-this.gb,-this.hb,4,!0),this.hj=!1);!l||0!==this.ca||l.y===this.rf&&l.x===this.qf||(g=l.x-this.qf,
b=l.y-this.rf,this.d.x+=g,this.d.y+=b,this.d.r(),this.qf=l.x,this.rf=l.y,k=!0,this.b.nc(this.d)&&this.b.fd(this.d,-g,-b,2.5*Math.sqrt(g*g+b*b)));var r=this.pp();if(b=this.b.nc(this.d))if(this.d.M.inputPredicted)this.b.fd(this.d,-this.gb,-this.hb,10,!1);else if(this.b.Rv(this.d,Math.max(this.d.width,this.d.height)/2))this.b.Zh(this.d,b);else return;r?(this.Sg=this.Yg=!1,0<this.ca&&(this.Mg||(this.b.Ym(this.d,-this.gb,-this.hb,r),this.Mg=!0),this.ca=0),l!=r)?(this.hc=r,this.qf=r.x,this.rf=r.y,this.b.Zh(this.d,
r)):k&&(b=this.b.nc(this.d))&&(this.b.Zh(this.d,b),0!==g&&(0<g?this.b.fd(this.d,-this.Cf,-this.Df):this.b.fd(this.d,this.Cf,this.Df)),this.b.fd(this.d,-this.gb,-this.hb)):c||(this.Sg=!0);if(r&&y||!r&&this.wl&&c&&this.Sg&&!this.Yg)l=this.d.x,k=this.d.y,this.d.x-=this.gb,this.d.y-=this.hb,this.d.r(),this.b.nc(this.d)?y=!1:(this.Hf=this.mm,this.b.trigger(uc.prototype.j.Xn,this.d),this.Tc=2,this.ca=-this.Bh,y=!0,r?this.lg=!0:this.Yg=!0),this.d.x=l,this.d.y=k,this.d.r();r||(c&&0<this.Hf?(this.ca=-this.Bh,
this.Hf-=f):(this.hc=null,this.ca+=this.Sd*f,this.ca>this.Uj&&(this.ca=this.Uj)),y&&(this.lg=!0));this.Mg=!!r;p==a&&(0>this.K?(this.K+=this.Tf*f,0<this.K&&(this.K=0)):0<this.K&&(this.K-=this.Tf*f,0>this.K&&(this.K=0)));p&&!a&&(this.K=0<this.K?this.K-(this.Gd+this.Tf)*f:this.K-this.Gd*f);a&&!p&&(this.K=0>this.K?this.K+(this.Gd+this.Tf)*f:this.K+this.Gd*f);this.K>this.sg?this.K=this.sg:this.K<-this.sg&&(this.K=-this.sg);p=!1;0!==this.K&&(l=this.d.x,k=this.d.y,g=this.K*f*this.Cf,b=this.K*f*this.Df,this.d.x+=
this.Cf*(1<this.K?1:-1)-this.gb,this.d.y+=this.Df*(1<this.K?1:-1)-this.hb,this.d.r(),c=!1,n=this.b.nc(this.d),this.d.x=l+g,this.d.y=k+b,this.d.r(),a=this.b.nc(this.d),!a&&r&&(a=this.b.Oe(this.d))&&(this.d.x=l,this.d.y=k,this.d.r(),this.b.Oc(this.d,a)?(a=null,c=!1):c=!0,this.d.x=l+g,this.d.y=k+b,this.d.r()),a?(g=Math.abs(this.K*f)+2,n||!this.b.fd(this.d,-this.gb,-this.hb,g,c,a))?(this.b.Zh(this.d,a),g=Math.max(Math.abs(this.K*f*2.5),30),this.b.fd(this.d,this.Cf*(0>this.K?1:-1),this.Df*(0>this.K?1:
-1),g,!1)?!r||c||this.ij||(l=this.d.x,k=this.d.y,this.d.x+=this.gb,this.d.y+=this.hb,this.b.nc(this.d)?this.b.fd(this.d,-this.gb,-this.hb,3,!1)||(this.d.x=l,this.d.y=k,this.d.r()):(this.d.x=l,this.d.y=k,this.d.r())):(this.d.x=l,this.d.y=k,this.d.r()),c||(this.K=0)):!n&&!y&&Math.abs(this.ca)<Math.abs(this.Bh/4)&&(this.ca=0,r||(p=!0)):(l=this.pp(),r&&!l?(b=Math.ceil(Math.abs(this.K*f))+2,l=this.d.x,k=this.d.y,this.d.x+=this.gb*b,this.d.y+=this.hb*b,this.d.r(),this.b.nc(this.d)||this.b.Oe(this.d)?this.b.fd(this.d,
-this.gb,-this.hb,b+2,!0):(this.d.x=l,this.d.y=k,this.d.r())):l&&0===this.ca&&this.b.Ym(this.d,-this.gb,-this.hb,l)));if(0!==this.ca){l=this.d.x;k=this.d.y;this.d.x+=this.ca*f*this.gb;this.d.y+=this.ca*f*this.hb;g=this.d.x;a=this.d.y;this.d.r();b=this.b.nc(this.d);c=!1;if(!b&&0<this.ca&&!r){if((c=0<this.Wf?null:this.b.Oe(this.d,!0))&&c.length){if(this.Ng){this.d.x=l;this.d.y=k;this.d.r();e=n=0;for(d=c.length;n<d;n++)c[e]=c[n],this.b.Oc(this.d,c[n])||e++;c.length=e;this.d.x=g;this.d.y=a;this.d.r()}1<=
c.length&&(b=c[0])}c=!!b}b&&(this.b.Zh(this.d,b),this.Hf=0,g=c?Math.abs(this.ca*f*2.5+10):Math.max(Math.abs(this.ca*f*2.5+10),30),this.b.fd(this.d,this.gb*(0>this.ca?1:-1),this.hb*(0>this.ca?1:-1),g,c,b)?(this.hc=b,this.qf=b.x,this.rf=b.y,(this.ij=c)&&(p=!0),this.ca=0):(this.d.x=l,this.d.y=k,this.d.r(),this.Mg=!0,c||(this.ca=0)))}3!==this.Tc&&0<this.ca&&!r&&(this.b.trigger(uc.prototype.j.es,this.d),this.Tc=3);if(r||p)3===this.Tc||p||y&&0===this.ca?(this.b.trigger(uc.prototype.j.ao,this.d),this.Tc=
0===this.K&&0===this.ca?0:1):(0!==this.Tc&&0===this.K&&0===this.ca&&(this.b.trigger(uc.prototype.j.ho,this.d),this.Tc=0),1===this.Tc||0===this.K&&0===this.ca||y||(this.b.trigger(uc.prototype.j.co,this.d),this.Tc=1));0<this.Wf&&this.Wf--;this.Ng=this.b.Oe(this.d)}};g.prototype.Sr=function(){return 0!==this.K||0!==this.ca};g.prototype.Rr=function(){return 0<this.ca};g.prototype.Xn=function(){return!0};g.prototype.es=function(){return!0};g.prototype.ho=function(){return!0};g.prototype.co=function(){return!0};
g.prototype.ao=function(){return!0};f.j=new g;n.prototype.ws=function(f){this.Gd=f;0>this.Gd&&(this.Gd=0)};n.prototype.Js=function(f){switch(f){case 0:this.Ak=!0;break;case 1:this.Bk=!0;break;case 2:this.ji=!0}};n.prototype.Fs=function(f){this.K=f};n.prototype.Gs=function(f){this.ca=f};f.P=new n;f.ib=new function(){}})();function vc(g){this.b=g;this.rn=this.zk=this.hi=this.qn=0}
(function(){var g=vc.prototype;g.ra=function(f){this.behavior=f;this.b=f.b};g.ra.prototype.S=function(){};g.ma=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var n=g.ma.prototype;n.S=function(){this.enabled=0!==this.A[0]};n.sb=function(){return{smg:this.behavior.qn,ss:this.behavior.hi,se:this.behavior.zk,smd:this.behavior.rn}};n.Kb=function(f){this.behavior.qn=f.smg;this.behavior.hi=f.ss;this.behavior.zk=f.se;this.behavior.rn=f.smd};n.Ka=function(){};n.Kk=function(){if(this.enabled){var f=
this.behavior.Wj.he(),g=0,n=0,u,b,a,c=0;u=0;for(b=f.length;u<b;u++){a:{a=f[u];for(var t=void 0,d=void 0,e=void 0,t=0,d=a.F.length;t<d;++t)if(e=a.F[t],e.behavior instanceof vc){a=e;break a}a=null}a&&a.enabled&&(g+=f[u].x,n+=f[u].y,++c)}f=this.d.i.$a;b=this.b.kb.Y;a=u=0;b>=this.behavior.hi&&b<this.behavior.zk&&(u=this.behavior.qn*Math.min(this.b.Jf,1),0===this.behavior.rn&&(u*=1-(b-this.behavior.hi)/(this.behavior.zk-this.behavior.hi)),b=Math.random()*Math.PI*2,a=Math.random()*u,u=Math.cos(b)*a,a*=
Math.sin(b));f.ln(g/c+u);f.mn(n/c+a)}};g.P=new function(){}})();function wc(g){this.b=g;this.cq=[]}
(function(){function g(){}function n(){}function f(){}var p=wc.prototype;p.ra=function(f,b){this.behavior=f;this.b=f.b;-1===this.behavior.cq.indexOf(b)&&this.behavior.cq.push(b)};p.ra.prototype.S=function(){};p.ma=function(f,b){this.type=f;this.behavior=f.behavior;this.d=b;this.b=f.b};var q=p.ma.prototype;q.S=function(){this.d.M.shadowcasterEnabled=0!==this.A[0];this.d.M.shadowcasterHeight=this.A[1];this.d.M.shadowcasterTag=this.A[2]};q.Ka=function(){};g.prototype.Gr=function(f,b){return ac(this.d.M.shadowcasterHeight,
f,b)};p.j=new g;n.prototype.zs=function(f){this.d.M.shadowcasterHeight!==f&&(this.d.M.shadowcasterHeight=f,this.b.V=!0)};p.P=new n;f.prototype.Or=function(f){f.B(this.d.M.shadowcasterHeight)};p.ib=new f})();function lc(g){this.b=g}
(function(){var g=lc.prototype;g.ra=function(f){this.behavior=f;this.b=f.b};g.ra.prototype.S=function(){};g.ma=function(f,g){this.type=f;this.behavior=f.behavior;this.d=g;this.b=f.b};var n=g.ma.prototype;n.S=function(){this.d.M.solidEnabled=0!==this.A[0]};n.Ka=function(){};g.j=new function(){};g.P=new function(){}})();
function kc(){return[mc,nc,qc,pc,Y,oc,Z,lc,sc,uc,vc,rc,wc,Y.prototype.j.Un,Y.prototype.P.Hs,X.prototype.j.Lr,Y.prototype.P.Cs,nc.prototype.j.Yn,Y.prototype.P.Bs,uc.prototype.j.co,Y.prototype.P.xs,uc.prototype.j.ho,uc.prototype.j.Xn,uc.prototype.j.ao,uc.prototype.j.Sr,Y.prototype.j.as,mc.prototype.P.Play,X.prototype.P.Nr,Y.prototype.P.Kr,X.prototype.P.Br,Y.prototype.j.Hr,uc.prototype.P.Js,Y.prototype.P.As,X.prototype.j.Tn,Y.prototype.j.Jr,Y.prototype.ib.no,uc.prototype.j.Rr,uc.prototype.P.Gs,uc.prototype.P.ws,
X.prototype.P.Ms,sc.prototype.P.Mr,X.prototype.P.Ks,uc.prototype.P.Fs,Y.prototype.ib.mo,oc.prototype.P.Ds,X.prototype.j.Ir,X.prototype.P.Es,Y.prototype.P.Xk,X.prototype.P.vs,Y.prototype.j.Tr,Y.prototype.P.ys,Z.prototype.j.Ur,Z.prototype.j.io,qc.prototype.j.Zr]};