-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
496 lines (496 loc) · 240 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,fa,ga,ha,ia,ka,la,ma,na,oa,pa,qa,ra,sa,A,ta,ua,va,xa,ya,Aa,Ba,F,Ca,Da,Ea,Fa,Ga,H,Ha,Ja,Ka,La,Ma,Na,Oa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc={},hc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});
(function(){function e(a,c,b,g){this.set(a,c,b,g)}function m(){this.hc=this.gc=this.jc=this.ic=this.uc=this.tc=this.Gb=this.Fb=0}function r(a,c,b,g){a<c?b<g?(u=a<b?a:b,N=c>g?c:g):(u=a<g?a:g,N=c>b?c:b):b<g?(u=c<b?c:b,N=a>g?a:g):(u=c<g?c:g,N=a>b?a:b)}function p(){this.items=this.we=null;this.fj=0;Y&&(this.we=new Set);this.ji=[];this.uf=!0}function t(a){v[w++]=a}function k(){this.aa=this.Qm=this.y=this.Dn=0}function h(a){this.La=[];this.Jk=this.Lk=this.Mk=this.Kk=0;this.bk(a)}function b(a,c){this.wb=
a;this.Ib=c;this.cells={}}function d(a,c){this.wb=a;this.Ib=c;this.cells={}}function f(a,c,b){var g;return D.length?(g=D.pop(),g.qo=a,g.x=c,g.y=b,g):new ba(a,c,b)}function a(a,c,b){this.qo=a;this.x=c;this.y=b;this.Nb=new fa}function c(a,c,b){var g;return S.length?(g=S.pop(),g.qo=a,g.x=c,g.y=b,g):new ga(a,c,b)}function g(a,c,b){this.qo=a;this.x=c;this.y=b;this.Nb=[];this.Dh=!0;this.ue=new fa;this.pi=!1}function l(a,c){return a.fe-c.fe}ha=function(a){window.console&&window.console.log&&window.console.log(a)};
ia=function(a){window.console&&window.console.error&&window.console.error(a)};aa=function(a){return a};ka=function(a){return"undefined"===typeof a};la=function(a){return"number"===typeof a};ma=function(a){return"string"===typeof a};na=function(a){return 0<a&&0===(a-1&a)};oa=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};pa=function(a){return 0>a?-a:a};qa=function(a,c){return a>c?a:c};ra=function(a,c){return a<c?a:c};sa=Math.PI;A=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var c=
a|0;return c===a?c:c+1};ua=function(a,c,b,g,l,n,d,f){var x,y,q,h;a<b?(y=a,x=b):(y=b,x=a);l<d?(h=l,q=d):(h=d,q=l);if(x<h||y>q)return!1;c<g?(y=c,x=g):(y=g,x=c);n<f?(h=n,q=f):(h=f,q=n);if(x<h||y>q)return!1;x=l-a+d-b;y=n-c+f-g;a=b-a;c=g-c;l=d-l;n=f-n;f=pa(c*l-n*a);return pa(l*y-n*x)>f?!1:pa(a*y-c*x)<=f};e.prototype.set=function(a,c,b,g){this.left=a;this.top=c;this.right=b;this.bottom=g};e.prototype.jh=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=
function(){return this.right-this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.bs=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};e.prototype.cs=
function(a,c,b){return!(a.right+c<this.left||a.bottom+b<this.top||a.left+c>this.right||a.top+b>this.bottom)};e.prototype.Qb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.Bi=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=e;m.prototype.Wg=function(a){this.Fb=a.left;this.Gb=a.top;this.tc=a.right;this.uc=a.top;this.ic=a.right;this.jc=a.bottom;this.gc=a.left;this.hc=a.bottom};m.prototype.Rt=function(a,
c){if(0===c)this.Wg(a);else{var b=Math.sin(c),g=Math.cos(c),l=a.left*b,n=a.top*b,d=a.right*b,b=a.bottom*b,f=a.left*g,x=a.top*g,y=a.right*g,g=a.bottom*g;this.Fb=f-n;this.Gb=x+l;this.tc=y-n;this.uc=x+d;this.ic=y-b;this.jc=g+d;this.gc=f-b;this.hc=g+l}};m.prototype.offset=function(a,c){this.Fb+=a;this.Gb+=c;this.tc+=a;this.uc+=c;this.ic+=a;this.jc+=c;this.gc+=a;this.hc+=c;return this};var u=0,N=0;m.prototype.Yq=function(a){r(this.Fb,this.tc,this.ic,this.gc);a.left=u;a.right=N;r(this.Gb,this.uc,this.jc,
this.hc);a.top=u;a.bottom=N};m.prototype.Qb=function(a,c){var b=this.Fb,g=this.Gb,l=this.tc-b,n=this.uc-g,d=this.ic-b,f=this.jc-g,x=a-b,y=c-g,q=l*l+n*n,h=l*d+n*f,n=l*x+n*y,k=d*d+f*f,e=d*x+f*y,z=1/(q*k-h*h),l=(k*n-h*e)*z,q=(q*e-h*n)*z;if(0<=l&&0<q&&1>l+q)return!0;l=this.gc-b;n=this.hc-g;q=l*l+n*n;h=l*d+n*f;n=l*x+n*y;z=1/(q*k-h*h);l=(k*n-h*e)*z;q=(q*e-h*n)*z;return 0<=l&&0<q&&1>l+q};m.prototype.Qc=function(a,c){if(c)switch(a){case 0:return this.Fb;case 1:return this.tc;case 2:return this.ic;case 3:return this.gc;
case 4:return this.Fb;default:return this.Fb}else switch(a){case 0:return this.Gb;case 1:return this.uc;case 2:return this.jc;case 3:return this.hc;case 4:return this.Gb;default:return this.Gb}};m.prototype.Rs=function(){return(this.Fb+this.tc+this.ic+this.gc)/4};m.prototype.Ss=function(){return(this.Gb+this.uc+this.jc+this.hc)/4};m.prototype.Si=function(a,c,b,g){if(this.Qb(a,c)||this.Qb(b,g))return!0;var l,n,d,f,x;for(x=0;4>x;x++)if(l=this.Qc(x,!0),n=this.Qc(x,!1),d=this.Qc(x+1,!0),f=this.Qc(x+1,
!1),ua(a,c,b,g,l,n,d,f))return!0;return!1};m.prototype.as=function(a){var c=a.Rs(),b=a.Ss();if(this.Qb(c,b))return!0;c=this.Rs();b=this.Ss();if(a.Qb(c,b))return!0;var g,l,n,d,f,x,y,q;for(y=0;4>y;y++)for(q=0;4>q;q++)if(c=this.Qc(y,!0),b=this.Qc(y,!1),g=this.Qc(y+1,!0),l=this.Qc(y+1,!1),n=a.Qc(q,!0),d=a.Qc(q,!1),f=a.Qc(q+1,!0),x=a.Qc(q+1,!1),ua(c,b,g,l,n,d,f,x))return!0;return!1};xa=m;ya=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a};Aa=function(a,c){var b,g;c=A(c);if(!(0>c||
c>=a.length)){b=c;for(g=a.length-1;b<g;b++)a[b]=a[b+1];Ba(a,g)}};Ba=function(a,c){a.length=c};F=function(a){Ba(a,0)};Ca=function(a,c){F(a);var b,g;b=0;for(g=c.length;b<g;++b)a[b]=c[b]};Da=function(a,c){a.push.apply(a,c)};Ea=function(a,c){var b,g;b=0;for(g=a.length;b<g;++b)if(a[b]===c)return b;return-1};Fa=function(a,c){var b=Ea(a,c);-1!==b&&Aa(a,b)};Ga=function(a,c,b){return a<c?c:a>b?b:a};H=function(a){return a/(180/sa)};Ha=function(a){return 180/sa*a};Ja=function(a){a%=360;0>a&&(a+=360);return a};
Ka=function(a){a%=2*sa;0>a&&(a+=2*sa);return a};La=function(a){return Ja(Ha(a))};Ma=function(a){return Ka(H(a))};Na=function(a,c,b,g){return Math.atan2(g-c,b-a)};Oa=function(a,c){if(a===c)return 0;var b=Math.sin(a),g=Math.cos(a),l=Math.sin(c),n=Math.cos(c),b=b*l+g*n;return 1<=b?0:-1>=b?sa:Math.acos(b)};Qa=function(a,c,b){var g=Math.sin(a),l=Math.cos(a),n=Math.sin(c),d=Math.cos(c);return Math.acos(g*n+l*d)>b?0<l*n-g*d?Ka(a+b):Ka(a-b):Ka(c)};Ra=function(a,c){var b=Math.sin(a),g=Math.cos(a),l=Math.sin(c),
n=Math.cos(c);return 0>=g*l-b*n};Sa=function(a,c,b,g,l,n){if(0===b)return n?a:c;var d=Math.sin(b);b=Math.cos(b);a-=g;c-=l;var f=a*d;a=a*b-c*d;c=c*b+f;return n?a+g:c+l};Ta=function(a,c,b,g){a=b-a;c=g-c;return Math.sqrt(a*a+c*c)};Ua=function(a,c){return!a!==!c};Va=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Wa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var z=+new Date;Xa=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()-z};var n=!1,q=n=!1,da=!1;"undefined"!==typeof window&&(n=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),n=!n&&/safari/i.test(navigator.userAgent),q=/(iphone|ipod|ipad)/i.test(navigator.userAgent),da=window.c2ejecta);var Y=!n&&!da&&!q&&"undefined"!==typeof Set&&"undefined"!==
typeof Set.prototype.forEach;p.prototype.contains=function(a){return this.Le()?!1:Y?this.we.has(a):this.items&&this.items.hasOwnProperty(a)};p.prototype.add=function(a){if(Y)this.we.has(a)||(this.we.add(a),this.uf=!1);else{var c=a.toString(),b=this.items;b?b.hasOwnProperty(c)||(b[c]=a,this.fj++,this.uf=!1):(this.items={},this.items[c]=a,this.fj=1,this.uf=!1)}};p.prototype.remove=function(a){if(!this.Le())if(Y)this.we.has(a)&&(this.we["delete"](a),this.uf=!1);else if(this.items){a=a.toString();var c=
this.items;c.hasOwnProperty(a)&&(delete c[a],this.fj--,this.uf=!1)}};p.prototype.clear=function(){this.Le()||(Y?this.we.clear():(this.items=null,this.fj=0),F(this.ji),this.uf=!0)};p.prototype.Le=function(){return 0===this.count()};p.prototype.count=function(){return Y?this.we.size:this.fj};var v=null,w=0;p.prototype.QA=function(){if(!this.uf){if(Y)F(this.ji),v=this.ji,w=0,this.we.forEach(t),v=null,w=0;else{var a=this.ji;F(a);var c,b=0,g=this.items;if(g)for(c in g)g.hasOwnProperty(c)&&(a[b++]=g[c])}this.uf=
!0}};p.prototype.Cd=function(){this.QA();return this.ji};fa=p;new fa;Ya=function(a,c){Y?Za(a,c.we):$a(a,c.Cd())};Za=function(a,c){var b,g,l,n;g=b=0;for(l=a.length;b<l;++b)n=a[b],c.has(n)||(a[g++]=n);Ba(a,g)};$a=function(a,c){var b,g,l,n;g=b=0;for(l=a.length;b<l;++b)n=a[b],-1===Ea(c,n)&&(a[g++]=n);Ba(a,g)};k.prototype.add=function(a){this.y=a-this.Dn;this.Qm=this.aa+this.y;this.Dn=this.Qm-this.aa-this.y;this.aa=this.Qm};k.prototype.reset=function(){this.aa=this.Qm=this.y=this.Dn=0};ab=k;gb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
"\\$&")};h.prototype.bk=function(a){this.At=a;this.Lc=a.length/2;this.La.length=a.length;this.Qk=this.Rk=-1;this.br=0};h.prototype.Eg=function(){return!this.At.length};h.prototype.la=function(){for(var a=this.La,c=a[0],b=c,g=a[1],l=g,n,d,f=1,x=this.Lc;f<x;++f)d=2*f,n=a[d],d=a[d+1],n<c&&(c=n),n>b&&(b=n),d<g&&(g=d),d>l&&(l=d);this.Kk=c;this.Lk=b;this.Mk=g;this.Jk=l};h.prototype.Wg=function(a,c,b){this.La.length=8;this.Lc=4;var g=this.La;g[0]=a.left-c;g[1]=a.top-b;g[2]=a.right-c;g[3]=a.top-b;g[4]=a.right-
c;g[5]=a.bottom-b;g[6]=a.left-c;g[7]=a.bottom-b;this.Rk=a.right-a.left;this.Qk=a.bottom-a.top;this.la()};h.prototype.di=function(a,c,b,g,l){this.La.length=8;this.Lc=4;var n=this.La;n[0]=a.Fb-c;n[1]=a.Gb-b;n[2]=a.tc-c;n[3]=a.uc-b;n[4]=a.ic-c;n[5]=a.jc-b;n[6]=a.gc-c;n[7]=a.hc-b;this.Rk=g;this.Qk=l;this.la()};h.prototype.Qt=function(a){this.Lc=a.Lc;Ca(this.La,a.La);this.Kk=a.Kk;this.Mk-a.Mk;this.Lk=a.Lk;this.Jk=a.Jk};h.prototype.tf=function(a,c,b){if(this.Rk!==a||this.Qk!==c||this.br!==b){this.Rk=a;
this.Qk=c;this.br=b;var g,l,n,d,f,x=0,y=1,q=this.At,h=this.La;0!==b&&(x=Math.sin(b),y=Math.cos(b));b=0;for(n=this.Lc;b<n;b++)g=2*b,l=g+1,d=q[g]*a,f=q[l]*c,h[g]=d*y-f*x,h[l]=f*y+d*x;this.la()}};h.prototype.Qb=function(a,c){var b=this.La;if(a===b[0]&&c===b[1])return!0;var g,l,n,d=this.Lc,f=this.Kk-110,x=this.Mk-101,y=this.Lk+131,q=this.Jk+120,h,k,e=0,z=0;for(g=0;g<d;g++)l=2*g,n=(g+1)%d*2,h=b[l],l=b[l+1],k=b[n],n=b[n+1],ua(f,x,a,c,h,l,k,n)&&e++,ua(y,q,a,c,h,l,k,n)&&z++;return 1===e%2||1===z%2};h.prototype.Ri=
function(a,c,b){var g=a.La,l=this.La;if(this.Qb(g[0]+c,g[1]+b)||a.Qb(l[0]-c,l[1]-b))return!0;var n,d,f,x,y,q,h,k,e,z,u,w;n=0;for(x=this.Lc;n<x;n++)for(d=2*n,f=(n+1)%x*2,k=l[d],d=l[d+1],e=l[f],z=l[f+1],f=0,h=a.Lc;f<h;f++)if(y=2*f,q=(f+1)%h*2,u=g[y]+c,y=g[y+1]+b,w=g[q]+c,q=g[q+1]+b,ua(k,d,e,z,u,y,w,q))return!0;return!1};h.prototype.Si=function(a,c,b,g,l,n){var d=this.La;if(this.Qb(b-a,g-c))return!0;var f,x,y,q,h,k;f=0;for(x=this.Lc;f<x;f++)if(y=2*f,q=(f+1)%x*2,h=d[y]+a,y=d[y+1]+c,k=d[q]+a,q=d[q+1]+
c,ua(b,g,l,n,h,y,k,q))return!0;return!1};h.prototype.Tz=function(a){var c,b,g;c=0;for(b=this.Lc;c<b;++c)g=2*c,this.La[g]=2*a-this.La[g]};h.prototype.Hy=function(a){var c,b,g;c=0;for(b=this.Lc;c<b;++c)g=2*c+1,this.La[g]=2*a-this.La[g]};h.prototype.vx=function(){var a,c,b,g,l;a=0;for(c=this.Lc;a<c;++a)b=2*a,g=b+1,l=this.La[b],this.La[b]=this.La[g],this.La[g]=l};hb=h;b.prototype.Df=function(a,c,b){var g;g=this.cells[a];return g?(g=g[c])?g:b?(g=f(this,a,c),this.cells[a][c]=g):null:b?(g=f(this,a,c),this.cells[a]=
{},this.cells[a][c]=g):null};b.prototype.Dc=function(a){return A(a/this.wb)};b.prototype.Ec=function(a){return A(a/this.Ib)};b.prototype.update=function(a,c,b){var g,l,n,d,f;if(c)for(g=c.left,l=c.right;g<=l;++g)for(n=c.top,d=c.bottom;n<=d;++n)if(!b||!b.Qb(g,n))if(f=this.Df(g,n,!1))f.remove(a),f.Le()&&(f.Nb.clear(),1E3>D.length&&D.push(f),this.cells[g][n]=null);if(b)for(g=b.left,l=b.right;g<=l;++g)for(n=b.top,d=b.bottom;n<=d;++n)c&&c.Qb(g,n)||this.Df(g,n,!0).Bo(a)};b.prototype.rm=function(a,c){var b,
g,l,n,d,f;b=this.Dc(a.left);l=this.Ec(a.top);g=this.Dc(a.right);for(d=this.Ec(a.bottom);b<=g;++b)for(n=l;n<=d;++n)(f=this.Df(b,n,!1))&&f.dump(c)};ib=b;d.prototype.Df=function(a,b,g){var l;l=this.cells[a];return l?(l=l[b])?l:g?(l=c(this,a,b),this.cells[a][b]=l):null:g?(l=c(this,a,b),this.cells[a]={},this.cells[a][b]=l):null};d.prototype.Dc=function(a){return A(a/this.wb)};d.prototype.Ec=function(a){return A(a/this.Ib)};d.prototype.update=function(a,c,b){var g,l,n,d,f;if(c)for(g=c.left,l=c.right;g<=
l;++g)for(n=c.top,d=c.bottom;n<=d;++n)if(!b||!b.Qb(g,n))if(f=this.Df(g,n,!1))f.remove(a),f.Le()&&(f.reset(),1E3>S.length&&S.push(f),this.cells[g][n]=null);if(b)for(g=b.left,l=b.right;g<=l;++g)for(n=b.top,d=b.bottom;n<=d;++n)c&&c.Qb(g,n)||this.Df(g,n,!0).Bo(a)};d.prototype.rm=function(a,c,b,g,l){var n,d;a=this.Dc(a);c=this.Ec(c);b=this.Dc(b);for(n=this.Ec(g);a<=b;++a)for(g=c;g<=n;++g)(d=this.Df(a,g,!1))&&d.dump(l)};d.prototype.Qz=function(a){var c,b,g,l,n;c=a.left;g=a.top;b=a.right;for(l=a.bottom;c<=
b;++c)for(a=g;a<=l;++a)if(n=this.Df(c,a,!1))n.Dh=!1};jb=d;var D=[];a.prototype.Le=function(){return this.Nb.Le()};a.prototype.Bo=function(a){this.Nb.add(a)};a.prototype.remove=function(a){this.Nb.remove(a)};a.prototype.dump=function(a){Da(a,this.Nb.Cd())};ba=a;var S=[];g.prototype.Le=function(){if(!this.Nb.length)return!0;if(this.Nb.length>this.ue.count())return!1;this.Yn();return!0};g.prototype.Bo=function(a){this.ue.contains(a)?(this.ue.remove(a),this.ue.Le()&&(this.pi=!1)):this.Nb.length?(this.Nb[this.Nb.length-
1].ne()>a.ne()&&(this.Dh=!1),this.Nb.push(a)):(this.Nb.push(a),this.Dh=!0)};g.prototype.remove=function(a){this.ue.add(a);this.pi=!0;30<=this.ue.count()&&this.Yn()};g.prototype.Yn=function(){this.pi&&(this.ue.count()===this.Nb.length?this.reset():(Ya(this.Nb,this.ue),this.ue.clear(),this.pi=!1))};g.prototype.Wx=function(){this.Dh||(this.Nb.sort(l),this.Dh=!0)};g.prototype.reset=function(){F(this.Nb);this.Dh=!0;this.ue.clear();this.pi=!1};g.prototype.dump=function(a){this.Yn();this.Wx();this.Nb.length&&
a.push(this.Nb)};ga=g;var C="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");kb=function(a){return 0>=a||11<=a?"source-over":C[a-1]};lb=function(a,c,b){if(b)switch(a.pc=b.ONE,a.kc=b.ONE_MINUS_SRC_ALPHA,c){case 1:a.pc=b.ONE;a.kc=b.ONE;break;case 3:a.pc=b.ONE;a.kc=b.ZERO;break;case 4:a.pc=b.ONE_MINUS_DST_ALPHA;a.kc=b.ONE;break;case 5:a.pc=b.DST_ALPHA;a.kc=b.ZERO;break;case 6:a.pc=b.ZERO;a.kc=b.SRC_ALPHA;break;case 7:a.pc=
b.ONE_MINUS_DST_ALPHA;a.kc=b.ZERO;break;case 8:a.pc=b.ZERO;a.kc=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.pc=b.DST_ALPHA;a.kc=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.pc=b.ONE_MINUS_DST_ALPHA,a.kc=b.SRC_ALPHA}};mb=function(a){return Math.round(1E6*a)/1E6};nb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};ob=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||nb(a.tagName,"canvas")?
!0:!1}})();var ic="undefined"!==typeof Float32Array?Float32Array:Array;function jc(e){var m=new ic(3);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2]);return m}function kc(e){var m=new ic(16);e&&(m[0]=e[0],m[1]=e[1],m[2]=e[2],m[3]=e[3],m[4]=e[4],m[5]=e[5],m[6]=e[6],m[7]=e[7],m[8]=e[8],m[9]=e[9],m[10]=e[10],m[11]=e[11],m[12]=e[12],m[13]=e[13],m[14]=e[14],m[15]=e[15]);return m}
function lc(e,m){m[0]=e[0];m[1]=e[1];m[2]=e[2];m[3]=e[3];m[4]=e[4];m[5]=e[5];m[6]=e[6];m[7]=e[7];m[8]=e[8];m[9]=e[9];m[10]=e[10];m[11]=e[11];m[12]=e[12];m[13]=e[13];m[14]=e[14];m[15]=e[15]}function mc(e,m){var r=m[0],p=m[1];m=m[2];e[0]*=r;e[1]*=r;e[2]*=r;e[3]*=r;e[4]*=p;e[5]*=p;e[6]*=p;e[7]*=p;e[8]*=m;e[9]*=m;e[10]*=m;e[11]*=m}
function nc(e,m,r,p){p||(p=kc());var t,k,h,b,d,f,a,c,g=e[0],l=e[1];e=e[2];k=r[0];h=r[1];t=r[2];r=m[1];f=m[2];g===m[0]&&l===r&&e===f?(e=p,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(r=g-m[0],f=l-m[1],a=e-m[2],c=1/Math.sqrt(r*r+f*f+a*a),r*=c,f*=c,a*=c,m=h*a-t*f,t=t*r-k*a,k=k*f-h*r,(c=Math.sqrt(m*m+t*t+k*k))?(c=1/c,m*=c,t*=c,k*=c):k=t=m=0,h=f*k-a*t,b=a*m-r*k,d=r*t-f*m,(c=Math.sqrt(h*h+b*b+d*d))?(c=1/c,h*=c,b*=c,d*=c):d=b=h=0,
p[0]=m,p[1]=h,p[2]=r,p[3]=0,p[4]=t,p[5]=b,p[6]=f,p[7]=0,p[8]=k,p[9]=d,p[10]=a,p[11]=0,p[12]=-(m*g+t*l+k*e),p[13]=-(h*g+b*l+d*e),p[14]=-(r*g+f*l+a*e),p[15]=1)}
(function(){function e(b,d,f){this.Me=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.Ma=!!f;this.Il=this.Ui=!1;this.al=0;this.pn=1;this.dq=1E3;this.ZA=(this.dq-this.pn)/32768;this.En=jc([0,0,100]);this.Cs=jc([0,0,0]);this.nu=jc([0,1,0]);this.xk=jc([1,1,1]);this.pr=!0;this.Yl=kc();this.hd=kc();this.Lo=kc();this.Mn=kc();this.K=b;this.version=0===this.K.getParameter(this.K.VERSION).indexOf("WebGL 2")?2:1;this.Xr()}function m(b,d,f){this.K=b;this.ck=
d;this.name=f;this.ud=b.getAttribLocation(d,"aPos");this.Nf=b.getAttribLocation(d,"aTex");this.As=b.getUniformLocation(d,"matP");this.Tl=b.getUniformLocation(d,"matMV");this.Ph=b.getUniformLocation(d,"opacity");this.Ro=b.getUniformLocation(d,"colorFill");this.Bs=b.getUniformLocation(d,"samplerFront");this.sj=b.getUniformLocation(d,"samplerBack");this.Mg=b.getUniformLocation(d,"destStart");this.Lg=b.getUniformLocation(d,"destEnd");this.uj=b.getUniformLocation(d,"seconds");this.To=b.getUniformLocation(d,
"pixelWidth");this.So=b.getUniformLocation(d,"pixelHeight");this.rj=b.getUniformLocation(d,"layerScale");this.qj=b.getUniformLocation(d,"layerAngle");this.vj=b.getUniformLocation(d,"viewOrigin");this.tj=b.getUniformLocation(d,"scrollPos");this.sz=!!(this.To||this.So||this.uj||this.sj||this.Mg||this.Lg||this.rj||this.qj||this.vj||this.tj);this.Ks=this.Ls=-999;this.Xl=1;this.Gs=this.Fs=0;this.Is=this.Es=this.Ds=1;this.Os=this.Ns=this.Ms=this.Qs=this.Ps=this.Hs=0;this.Ko=[];this.Js=kc();this.Ph&&b.uniform1f(this.Ph,
1);this.Ro&&b.uniform4f(this.Ro,1,1,1,1);this.Bs&&b.uniform1i(this.Bs,0);this.sj&&b.uniform1i(this.sj,1);this.Mg&&b.uniform2f(this.Mg,0,0);this.Lg&&b.uniform2f(this.Lg,1,1);this.rj&&b.uniform1f(this.rj,1);this.qj&&b.uniform1f(this.qj,0);this.vj&&b.uniform2f(this.vj,0,0);this.tj&&b.uniform2f(this.tj,0,0);this.uj&&b.uniform1f(this.uj,0);this.ug=!1}function r(b,d){return b[0]===d[0]&&b[1]===d[1]&&b[2]===d[2]&&b[3]===d[3]&&b[4]===d[4]&&b[5]===d[5]&&b[6]===d[6]&&b[7]===d[7]&&b[8]===d[8]&&b[9]===d[9]&&
b[10]===d[10]&&b[11]===d[11]&&b[12]===d[12]&&b[13]===d[13]&&b[14]===d[14]&&b[15]===d[15]}function p(b,d){this.type=b;this.H=d;this.K=d.K;this.Ic=this.Zb=this.gt=0;this.ma=this.Ad=null;this.St=[]}var t=kc();e.prototype.Xr=function(){var b=this.K,d;this.vs=1;this.Ig=this.Jf=null;this.$k=1;b.clearColor(0,0,0,0);b.clear(b.COLOR_BUFFER_BIT);b.enable(b.BLEND);b.blendFunc(b.ONE,b.ONE_MINUS_SRC_ALPHA);b.disable(b.CULL_FACE);b.disable(b.STENCIL_TEST);b.disable(b.DITHER);this.Ma?(b.enable(b.DEPTH_TEST),b.depthFunc(b.LEQUAL)):
b.disable(b.DEPTH_TEST);this.ws=b.ONE;this.us=b.ONE_MINUS_SRC_ALPHA;this.vk=new Float32Array(8E3*(this.Ma?3:2));this.lk=new Float32Array(16E3);this.lp=new Float32Array(32E3);this.kp=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,this.kp);b.bufferData(b.ARRAY_BUFFER,this.lp.byteLength,b.DYNAMIC_DRAW);this.uk=Array(4);this.kk=Array(4);for(d=0;4>d;d++)this.uk[d]=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.uk[d]),b.bufferData(b.ARRAY_BUFFER,this.vk.byteLength,b.DYNAMIC_DRAW),this.kk[d]=b.createBuffer(),
b.bindBuffer(b.ARRAY_BUFFER,this.kk[d]),b.bufferData(b.ARRAY_BUFFER,this.lk.byteLength,b.DYNAMIC_DRAW);this.Ee=0;this.yz=b.createBuffer();b.bindBuffer(b.ELEMENT_ARRAY_BUFFER,this.yz);for(var f=new Uint16Array(12E3),a=d=0;12E3>d;)f[d++]=a,f[d++]=a+1,f[d++]=a+2,f[d++]=a,f[d++]=a+2,f[d++]=a+3,a+=4;b.bufferData(b.ELEMENT_ARRAY_BUFFER,f,b.STATIC_DRAW);this.Xh=this.Xf=this.Ed=0;this.gb=[];d=this.Ma?"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}";f=this.wi({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}"},d,"<default>");this.gb.push(f);f=this.wi({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.gb.push(f);f=this.wi({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},d,"<earlyz>");this.gb.push(f);f=this.wi({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
d,"<fill>");this.gb.push(f);for(var c in oc)oc.hasOwnProperty(c)&&this.gb.push(this.wi(oc[c],d,c));b.activeTexture(b.TEXTURE0);b.bindTexture(b.TEXTURE_2D,null);this.Ld=[];this.od=0;this.Tb=this.zb=!1;this.jr=this.hj=-1;this.kh=null;this.Xn=b.createFramebuffer();this.el=this.vm=null;this.Vq=!1;this.Ma&&(this.el=b.createRenderbuffer());this.Yf=jc([0,0,0]);b=b.getParameter(b.ALIASED_POINT_SIZE_RANGE);this.Sz=b[0];this.Xo=b[1];2048<this.Xo&&(this.Xo=2048);this.Oc(0)};m.prototype.Wp=function(b){r(this.Js,
b)||(lc(b,this.Js),this.K.uniformMatrix4fv(this.Tl,!1,b))};e.prototype.wi=function(b,d,f){var a=this.K,c=a.createShader(a.FRAGMENT_SHADER);a.shaderSource(c,b.src);a.compileShader(c);if(!a.getShaderParameter(c,a.COMPILE_STATUS))return a.deleteShader(c),null;var g=a.createShader(a.VERTEX_SHADER);a.shaderSource(g,d);a.compileShader(g);if(!a.getShaderParameter(g,a.COMPILE_STATUS))return a.deleteShader(c),a.deleteShader(g),null;d=a.createProgram();a.attachShader(d,c);a.attachShader(d,g);a.linkProgram(d);
if(!a.getProgramParameter(d,a.LINK_STATUS))return a.deleteShader(c),a.deleteShader(g),a.deleteProgram(d),null;a.useProgram(d);a.deleteShader(c);a.deleteShader(g);f=new m(a,d,f);f.Vn=b.Vn||0;f.Wn=b.Wn||0;f.ir=!!b.ir;f.Xd=!!b.Xd;f.Sq=!!b.Sq;f.na=b.na||[];b=0;for(c=f.na.length;b<c;b++)f.na[b][1]=a.getUniformLocation(d,f.na[b][0]),f.Ko.push(0),a.uniform1f(f.na[b][1],0);return f};e.prototype.no=function(b){var d,f;d=0;for(f=this.gb.length;d<f;d++)if(this.gb[d].name===b)return d;return-1};e.prototype.zt=
function(b,d,f){var a=this.hd,c=this.Yl,g=[0,0,0,0,0,0,0,0];g[0]=a[0]*b+a[4]*d+a[12];g[1]=a[1]*b+a[5]*d+a[13];g[2]=a[2]*b+a[6]*d+a[14];g[3]=a[3]*b+a[7]*d+a[15];g[4]=c[0]*g[0]+c[4]*g[1]+c[8]*g[2]+c[12]*g[3];g[5]=c[1]*g[0]+c[5]*g[1]+c[9]*g[2]+c[13]*g[3];g[6]=c[2]*g[0]+c[6]*g[1]+c[10]*g[2]+c[14]*g[3];g[7]=-g[2];0!==g[7]&&(g[7]=1/g[7],g[4]*=g[7],g[5]*=g[7],g[6]*=g[7],f[0]=(.5*g[4]+.5)*this.width,f[1]=(.5*g[5]+.5)*this.height)};e.prototype.$e=function(b,d,f){if(this.width!==b||this.height!==d||f){this.ke();
f=this.K;this.width=b;this.height=d;f.viewport(0,0,b,d);nc(this.En,this.Cs,this.nu,this.hd);if(this.Ma){var a=-b/2;b=b/2;var c=d/2;d=-d/2;var g=this.pn,l=this.dq,h=this.Yl;h||(h=kc());var k=b-a,e=d-c,n=l-g;h[0]=2/k;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/e;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/n;h[11]=0;h[12]=-(a+b)/k;h[13]=-(d+c)/e;h[14]=-(l+g)/n;h[15]=1;this.xk[0]=1;this.xk[1]=1}else d=b/d,a=this.pn,b=this.dq,h=this.Yl,l=a*Math.tan(45*Math.PI/360),d*=l,c=-d,g=-l,h||(h=kc()),k=d-c,e=l-g,n=b-a,h[0]=2*a/
k,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*a/e,h[6]=0,h[7]=0,h[8]=(d+c)/k,h[9]=(l+g)/e,h[10]=-(b+a)/n,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(b*a*2)/n,h[15]=0,a=[0,0],b=[0,0],this.zt(0,0,a),this.zt(1,1,b),this.xk[0]=1/(b[0]-a[0]),this.xk[1]=-1/(b[1]-a[1]);a=0;for(b=this.gb.length;a<b;a++)c=this.gb[a],c.ug=!1,c.As&&(f.useProgram(c.ck),f.uniformMatrix4fv(c.As,!1,this.Yl));f.useProgram(this.gb[this.hj].ck);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE1);f.bindTexture(f.TEXTURE_2D,null);f.activeTexture(f.TEXTURE0);
this.Ig=this.Jf=null;this.el&&(f.bindFramebuffer(f.FRAMEBUFFER,this.Xn),f.bindRenderbuffer(f.RENDERBUFFER,this.el),f.renderbufferStorage(f.RENDERBUFFER,f.DEPTH_COMPONENT16,this.width,this.height),this.Vq||(f.framebufferRenderbuffer(f.FRAMEBUFFER,f.DEPTH_ATTACHMENT,f.RENDERBUFFER,this.el),this.Vq=!0),f.bindRenderbuffer(f.RENDERBUFFER,null),f.bindFramebuffer(f.FRAMEBUFFER,null),this.vm=null)}};e.prototype.wd=function(){nc(this.En,this.Cs,this.nu,this.hd);mc(this.hd,this.xk)};e.prototype.translate=function(b,
d){if(0!==b||0!==d){this.Yf[0]=b;this.Yf[1]=d;this.Yf[2]=0;var f=this.hd,a=this.Yf,c=a[0],g=a[1],a=a[2];f[12]=f[0]*c+f[4]*g+f[8]*a+f[12];f[13]=f[1]*c+f[5]*g+f[9]*a+f[13];f[14]=f[2]*c+f[6]*g+f[10]*a+f[14];f[15]=f[3]*c+f[7]*g+f[11]*a+f[15]}};e.prototype.scale=function(b,d){if(1!==b||1!==d)this.Yf[0]=b,this.Yf[1]=d,this.Yf[2]=1,mc(this.hd,this.Yf)};e.prototype.xm=function(b){if(0!==b){var d=this.hd,f,a=Math.sin(b);b=Math.cos(b);var c=d[0],g=d[1],l=d[2],h=d[3],k=d[4],e=d[5],n=d[6],q=d[7];f?d!==f&&(f[8]=
d[8],f[9]=d[9],f[10]=d[10],f[11]=d[11],f[12]=d[12],f[13]=d[13],f[14]=d[14],f[15]=d[15]):f=d;f[0]=c*b+k*a;f[1]=g*b+e*a;f[2]=l*b+n*a;f[3]=h*b+q*a;f[4]=c*-a+k*b;f[5]=g*-a+e*b;f[6]=l*-a+n*b;f[7]=h*-a+q*b}};e.prototype.ld=function(){if(!r(this.Lo,this.hd)){var b=this.Ac();b.type=5;b.ma?lc(this.hd,b.ma):b.ma=kc(this.hd);lc(this.hd,this.Lo);this.Tb=this.zb=!1}};e.prototype.Dm=function(b){this.Ma&&(32760<b&&(b=32760),this.al=this.En[2]-this.pn-b*this.ZA)};p.prototype.Gx=function(){var b=this.K,d=this.H;0!==
this.Zb?(b.depthMask(!0),b.colorMask(!1,!1,!1,!1),b.disable(b.BLEND),b.bindFramebuffer(b.FRAMEBUFFER,d.Xn),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.clear(b.DEPTH_BUFFER_BIT),b.bindFramebuffer(b.FRAMEBUFFER,null),d.Il=!0):(b.depthMask(!1),b.colorMask(!0,!0,!0,!0),b.enable(b.BLEND),d.Il=!1)};p.prototype.Kx=function(){this.K.bindTexture(this.K.TEXTURE_2D,this.Ad)};p.prototype.Lx=function(){var b=this.K;b.activeTexture(b.TEXTURE1);b.bindTexture(b.TEXTURE_2D,this.Ad);
b.activeTexture(b.TEXTURE0)};p.prototype.Hx=function(){var b=this.gt,d=this.H;d.$k=b;d=d.kh;d.Ph&&d.Xl!==b&&(d.Xl=b,this.K.uniform1f(d.Ph,b))};p.prototype.Bx=function(){this.K.drawElements(this.K.TRIANGLES,this.Ic,this.K.UNSIGNED_SHORT,this.Zb)};p.prototype.Dx=function(){this.K.blendFunc(this.Zb,this.Ic)};p.prototype.Mx=function(){var b,d,f,a=this.H.gb,c=this.H.jr;b=0;for(d=a.length;b<d;b++)f=a[b],b===c&&f.Tl?(f.Wp(this.ma),f.ug=!0):f.ug=!1;lc(this.ma,this.H.Mn)};p.prototype.Cx=function(){var b=this.K,
d=this.H;this.Ad?(d.Ig===this.Ad&&(b.activeTexture(b.TEXTURE1),b.bindTexture(b.TEXTURE_2D,null),d.Ig=null,b.activeTexture(b.TEXTURE0)),b.bindFramebuffer(b.FRAMEBUFFER,d.Xn),d.Il||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.Ad,0)):(d.Ma||b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,null,0),b.bindFramebuffer(b.FRAMEBUFFER,null))};p.prototype.yx=function(){var b=this.K,d=this.Zb;0===d?(b.clearColor(this.ma[0],this.ma[1],this.ma[2],this.ma[3]),b.clear(b.COLOR_BUFFER_BIT)):
1===d?(b.enable(b.SCISSOR_TEST),b.scissor(this.ma[0],this.ma[1],this.ma[2],this.ma[3]),b.clearColor(0,0,0,0),b.clear(b.COLOR_BUFFER_BIT),b.disable(b.SCISSOR_TEST)):b.clear(b.DEPTH_BUFFER_BIT)};p.prototype.Fx=function(){var b=this.K;0!==this.Zb?b.enable(b.DEPTH_TEST):b.disable(b.DEPTH_TEST)};p.prototype.Ax=function(){var b=this.K,d=this.H;d.Ma&&b.disable(b.DEPTH_TEST);var f=d.gb[1];b.useProgram(f.ck);!f.ug&&f.Tl&&(f.Wp(d.Mn),f.ug=!0);b.enableVertexAttribArray(f.ud);b.bindBuffer(b.ARRAY_BUFFER,d.kp);
b.vertexAttribPointer(f.ud,4,b.FLOAT,!1,0,0);b.drawArrays(b.POINTS,this.Zb/4,this.Ic);f=d.kh;b.useProgram(f.ck);0<=f.ud&&(b.enableVertexAttribArray(f.ud),b.bindBuffer(b.ARRAY_BUFFER,d.uk[d.Ee]),b.vertexAttribPointer(f.ud,d.Ma?3:2,b.FLOAT,!1,0,0));0<=f.Nf&&(b.enableVertexAttribArray(f.Nf),b.bindBuffer(b.ARRAY_BUFFER,d.kk[d.Ee]),b.vertexAttribPointer(f.Nf,2,b.FLOAT,!1,0,0));d.Ma&&b.enable(b.DEPTH_TEST)};p.prototype.Ix=function(){var b=this.K,d=this.H,f=d.gb[this.Zb];d.jr=this.Zb;d.kh=f;b.useProgram(f.ck);
!f.ug&&f.Tl&&(f.Wp(d.Mn),f.ug=!0);f.Ph&&f.Xl!==d.$k&&(f.Xl=d.$k,b.uniform1f(f.Ph,d.$k));0<=f.ud&&(b.enableVertexAttribArray(f.ud),b.bindBuffer(b.ARRAY_BUFFER,d.uk[d.Ee]),b.vertexAttribPointer(f.ud,d.Ma?3:2,b.FLOAT,!1,0,0));0<=f.Nf&&(b.enableVertexAttribArray(f.Nf),b.bindBuffer(b.ARRAY_BUFFER,d.kk[d.Ee]),b.vertexAttribPointer(f.Nf,2,b.FLOAT,!1,0,0))};p.prototype.Ex=function(){var b=this.ma;this.K.uniform4f(this.H.kh.Ro,b[0],b[1],b[2],b[3])};p.prototype.Jx=function(){var b,d,f=this.H.kh,a=this.K;b=
this.ma;f.sj&&this.H.Ig!==this.Ad&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this.Ad),this.H.Ig=this.Ad,a.activeTexture(a.TEXTURE0));var c=b[0];f.To&&c!==f.Ls&&(f.Ls=c,a.uniform1f(f.To,c));c=b[1];f.So&&c!==f.Ks&&(f.Ks=c,a.uniform1f(f.So,c));c=b[2];d=b[3];!f.Mg||c===f.Fs&&d===f.Gs||(f.Fs=c,f.Gs=d,a.uniform2f(f.Mg,c,d));c=b[4];d=b[5];!f.Lg||c===f.Ds&&d===f.Es||(f.Ds=c,f.Es=d,a.uniform2f(f.Lg,c,d));c=b[6];f.rj&&c!==f.Is&&(f.Is=c,a.uniform1f(f.rj,c));c=b[7];f.qj&&c!==f.Hs&&(f.Hs=c,a.uniform1f(f.qj,
c));c=b[8];d=b[9];!f.vj||c===f.Ps&&d===f.Qs||(f.Ps=c,f.Qs=d,a.uniform2f(f.vj,c,d));c=b[10];d=b[11];!f.tj||c===f.Ms&&d===f.Ns||(f.Ms=c,f.Ns=d,a.uniform2f(f.tj,c,d));c=b[12];f.uj&&c!==f.Os&&(f.Os=c,a.uniform1f(f.uj,c));if(f.na.length)for(b=0,d=f.na.length;b<d;b++)c=this.St[b],c!==f.Ko[b]&&(f.Ko[b]=c,a.uniform1f(f.na[b][1],c))};e.prototype.Ac=function(){this.od===this.Ld.length&&this.Ld.push(new p(0,this));return this.Ld[this.od++]};e.prototype.ke=function(){if(0!==this.od&&!this.K.isContextLost()){var b=
this.K;0<this.Xh&&(b.bindBuffer(b.ARRAY_BUFFER,this.kp),b.bufferSubData(b.ARRAY_BUFFER,0,this.lp.subarray(0,this.Xh)),d&&0<=d.ud&&"<point>"===d.name&&b.vertexAttribPointer(d.ud,4,b.FLOAT,!1,0,0));if(0<this.Ed){var d=this.kh;b.bindBuffer(b.ARRAY_BUFFER,this.uk[this.Ee]);b.bufferSubData(b.ARRAY_BUFFER,0,this.vk.subarray(0,this.Ed));d&&0<=d.ud&&"<point>"!==d.name&&b.vertexAttribPointer(d.ud,this.Ma?3:2,b.FLOAT,!1,0,0);b.bindBuffer(b.ARRAY_BUFFER,this.kk[this.Ee]);b.bufferSubData(b.ARRAY_BUFFER,0,this.lk.subarray(0,
this.Xf));d&&0<=d.Nf&&"<point>"!==d.name&&b.vertexAttribPointer(d.Nf,2,b.FLOAT,!1,0,0)}for(var f,b=0,d=this.od;b<d;b++)switch(f=this.Ld[b],f.type){case 1:f.Bx();break;case 2:f.Kx();break;case 3:f.Hx();break;case 4:f.Dx();break;case 5:f.Mx();break;case 6:f.Cx();break;case 7:f.yx();break;case 8:f.Ax();break;case 9:f.Ix();break;case 10:f.Jx();break;case 11:f.Lx();break;case 12:f.Ex();break;case 13:f.Fx();break;case 14:f.Gx()}this.Xh=this.Xf=this.Ed=this.od=0;this.Il=this.Tb=this.zb=!1;this.Ee++;4<=this.Ee&&
(this.Ee=0)}};e.prototype.Ze=function(b){if(b!==this.vs&&!this.Ui){var d=this.Ac();d.type=3;this.vs=d.gt=b;this.Tb=this.zb=!1}};e.prototype.Bc=function(b){if(b!==this.Jf){var d=this.Ac();d.type=2;this.Jf=d.Ad=b;this.Tb=this.zb=!1}};e.prototype.Vf=function(b,d){if((b!==this.ws||d!==this.us)&&!this.Ui){var f=this.Ac();f.type=4;f.Zb=b;f.Ic=d;this.ws=b;this.us=d;this.Tb=this.zb=!1}};e.prototype.Ht=function(){this.Vf(this.K.ONE,this.K.ONE_MINUS_SRC_ALPHA)};e.prototype.Yh=function(b,d,f,a,c,g,l,h){15992<=
this.Ed&&this.ke();var k=this.Ed,e=this.Xf,n=this.vk,q=this.lk,m=this.al;if(this.zb)this.Ld[this.od-1].Ic+=6;else{var p=this.Ac();p.type=1;p.Zb=this.Ma?k:k/2*3;p.Ic=6;this.zb=!0;this.Tb=!1}this.Ma?(n[k++]=b,n[k++]=d,n[k++]=m,n[k++]=f,n[k++]=a,n[k++]=m,n[k++]=c,n[k++]=g,n[k++]=m,n[k++]=l,n[k++]=h,n[k++]=m):(n[k++]=b,n[k++]=d,n[k++]=f,n[k++]=a,n[k++]=c,n[k++]=g,n[k++]=l,n[k++]=h);q[e++]=0;q[e++]=0;q[e++]=1;q[e++]=0;q[e++]=1;q[e++]=1;q[e++]=0;q[e++]=1;this.Ed=k;this.Xf=e};e.prototype.Zd=function(b,d,
f,a,c,g,l,h,k){15992<=this.Ed&&this.ke();var e=this.Ed,n=this.Xf,q=this.vk,m=this.lk,p=this.al;if(this.zb)this.Ld[this.od-1].Ic+=6;else{var v=this.Ac();v.type=1;v.Zb=this.Ma?e:e/2*3;v.Ic=6;this.zb=!0;this.Tb=!1}var v=k.left,w=k.top,D=k.right;k=k.bottom;this.Ma?(q[e++]=b,q[e++]=d,q[e++]=p,q[e++]=f,q[e++]=a,q[e++]=p,q[e++]=c,q[e++]=g,q[e++]=p,q[e++]=l,q[e++]=h,q[e++]=p):(q[e++]=b,q[e++]=d,q[e++]=f,q[e++]=a,q[e++]=c,q[e++]=g,q[e++]=l,q[e++]=h);m[n++]=v;m[n++]=w;m[n++]=D;m[n++]=w;m[n++]=D;m[n++]=k;m[n++]=
v;m[n++]=k;this.Ed=e;this.Xf=n};e.prototype.pA=function(b,d,f,a,c,g,l,h,k,e,n,q,m,p,v,w){15992<=this.Ed&&this.ke();var D=this.Ed,t=this.Xf,r=this.vk,I=this.lk,B=this.al;if(this.zb)this.Ld[this.od-1].Ic+=6;else{var Q=this.Ac();Q.type=1;Q.Zb=this.Ma?D:D/2*3;Q.Ic=6;this.zb=!0;this.Tb=!1}this.Ma?(r[D++]=b,r[D++]=d,r[D++]=B,r[D++]=f,r[D++]=a,r[D++]=B,r[D++]=c,r[D++]=g,r[D++]=B,r[D++]=l,r[D++]=h,r[D++]=B):(r[D++]=b,r[D++]=d,r[D++]=f,r[D++]=a,r[D++]=c,r[D++]=g,r[D++]=l,r[D++]=h);I[t++]=k;I[t++]=e;I[t++]=
n;I[t++]=q;I[t++]=m;I[t++]=p;I[t++]=v;I[t++]=w;this.Ed=D;this.Xf=t};e.prototype.fA=function(b,d,f,a){7996<=this.Xh&&this.ke();var c=this.Xh,g=this.lp;if(this.Tb)this.Ld[this.od-1].Ic++;else{var l=this.Ac();l.type=8;l.Zb=c;l.Ic=1;this.Tb=!0;this.zb=!1}g[c++]=b;g[c++]=d;g[c++]=f;g[c++]=a;this.Xh=c};e.prototype.Oc=function(b){if(this.hj!==b){if(!this.gb[b]){if(0===this.hj)return;b=0}var d=this.Ac();d.type=9;this.hj=d.Zb=b;this.Tb=this.zb=!1}};e.prototype.Pj=function(b){b=this.gb[b];return!(!b.Mg&&!b.Lg)};
e.prototype.np=function(b){b=this.gb[b];return!!(b.Mg||b.Lg||b.ir)};e.prototype.mp=function(b){return this.gb[b].Xd};e.prototype.mA=function(b){b=this.gb[b];return 0!==b.Vn||0!==b.Wn};e.prototype.Yy=function(b){return this.gb[b].Vn};e.prototype.Zy=function(b){return this.gb[b].Wn};e.prototype.$y=function(b,d){return this.gb[b].na[d][2]};e.prototype.pm=function(b){return this.gb[b].Sq};e.prototype.ci=function(b,d,f,a,c,g,l,h,k,e,n,q,m,p,t){var w=this.gb[this.hj],D,r;if(w.sz||t.length){D=this.Ac();
D.type=10;D.ma?lc(this.hd,D.ma):D.ma=kc();r=D.ma;r[0]=d;r[1]=f;r[2]=a;r[3]=c;r[4]=g;r[5]=l;r[6]=h;r[7]=k;r[8]=e;r[9]=n;r[10]=q;r[11]=m;r[12]=p;w.sj?D.Ad=b:D.Ad=null;if(t.length)for(f=D.St,f.length=t.length,b=0,d=t.length;b<d;b++)f[b]=t[b];this.Tb=this.zb=!1}};e.prototype.clear=function(b,d,f,a){var c=this.Ac();c.type=7;c.Zb=0;c.ma||(c.ma=kc());c.ma[0]=b;c.ma[1]=d;c.ma[2]=f;c.ma[3]=a;this.Tb=this.zb=!1};e.prototype.clearRect=function(b,d,f,a){if(!(0>f||0>a)){var c=this.Ac();c.type=7;c.Zb=1;c.ma||(c.ma=
kc());c.ma[0]=b;c.ma[1]=d;c.ma[2]=f;c.ma[3]=a;this.Tb=this.zb=!1}};e.prototype.Kt=function(b){if(this.Ma&&(b=!!b,this.Ui!==b)){var d=this.Ac();d.type=14;d.Zb=b?1:0;this.Tb=this.zb=!1;this.Ui=b;this.vm=null;this.Ui?this.Oc(2):this.Oc(0)}};e.prototype.Jt=function(b){if(this.Ma){var d=this.Ac();d.type=13;d.Zb=b?1:0;this.Tb=this.zb=!1}};e.prototype.Gr=function(){lc(this.Lo,t);this.wd();this.ld();var b=this.width/2,d=this.height/2;this.Yh(-b,d,b,d,b,-d,-b,-d);lc(t,this.hd);this.ld()};e.prototype.It=function(b,
d,f){this.Oc(3);var a=this.Ac();a.type=12;a.ma||(a.ma=kc());a.ma[0]=b;a.ma[1]=d;a.ma[2]=f;a.ma[3]=1;this.Tb=this.zb=!1};e.prototype.IA=function(){this.Oc(0)};e.prototype.uA=function(){this.Oc(2)};e.prototype.lA=function(){this.ke();this.K.flush()};var k=[],h={};e.prototype.mx=function(){F(k);h={}};e.prototype.Nh=function(b,d,f,a){d=!!d;f=!!f;var c=b.src+","+d+","+f+(d?",undefined":""),g=null;if("undefined"!==typeof b.src&&h.hasOwnProperty(c))return g=h[c],g.Pk++,g;this.ke();var l=this.K,e=na(b.width)&&
na(b.height),g=l.createTexture();l.bindTexture(l.TEXTURE_2D,g);l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var m=l.RGBA,z=l.RGBA,n=l.UNSIGNED_BYTE;if(a&&!this.Me)switch(a){case 1:z=m=l.RGB;break;case 2:n=l.UNSIGNED_SHORT_4_4_4_4;break;case 3:n=l.UNSIGNED_SHORT_5_5_5_1;break;case 4:z=m=l.RGB,n=l.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!e&&d){a=document.createElement("canvas");a.width=oa(b.width);a.height=oa(b.height);var q=a.getContext("2d");"undefined"!==typeof q.imageSmoothingEnabled?q.imageSmoothingEnabled=
f:(q.webkitImageSmoothingEnabled=f,q.mozImageSmoothingEnabled=f,q.msImageSmoothingEnabled=f);q.drawImage(b,0,0,b.width,b.height,0,0,a.width,a.height);l.texImage2D(l.TEXTURE_2D,0,m,z,n,a)}else l.texImage2D(l.TEXTURE_2D,0,m,z,n,b);d?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.REPEAT),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.REPEAT)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE));f?(l.texParameteri(l.TEXTURE_2D,
l.TEXTURE_MAG_FILTER,l.LINEAR),(e||2<=this.version)&&this.pr?(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR_MIPMAP_LINEAR),l.generateMipmap(l.TEXTURE_2D)):l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR)):(l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.NEAREST),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.NEAREST));l.bindTexture(l.TEXTURE_2D,null);this.Jf=null;g.dg=b.width;g.bg=b.height;g.Pk=1;g.$q=c;k.push(g);return h[c]=g};e.prototype.Sc=function(b,d,f,a,c){this.ke();
var g=this.K;this.Me&&(a=!1);var l=g.createTexture();g.bindTexture(g.TEXTURE_2D,l);g.texImage2D(g.TEXTURE_2D,0,g.RGBA,b,d,0,g.RGBA,a?g.UNSIGNED_SHORT_4_4_4_4:g.UNSIGNED_BYTE,null);c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,f?g.LINEAR:g.NEAREST);g.texParameteri(g.TEXTURE_2D,
g.TEXTURE_MIN_FILTER,f?g.LINEAR:g.NEAREST);g.bindTexture(g.TEXTURE_2D,null);this.Jf=null;l.dg=b;l.bg=d;k.push(l);return l};e.prototype.xu=function(b,d,f){this.ke();var a=this.K;this.Me&&(f=!1);a.bindTexture(a.TEXTURE_2D,d);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,f?a.UNSIGNED_SHORT_4_4_4_4:a.UNSIGNED_BYTE,b)}catch(c){console&&console.error&&console.error("Error updating WebGL texture: ",c)}a.bindTexture(a.TEXTURE_2D,null);this.Jf=null};e.prototype.deleteTexture=
function(b){b&&("undefined"!==typeof b.Pk&&1<b.Pk?b.Pk--:(this.ke(),b===this.Jf&&(this.K.bindTexture(this.K.TEXTURE_2D,null),this.Jf=null),b===this.Ig&&(this.K.activeTexture(this.K.TEXTURE1),this.K.bindTexture(this.K.TEXTURE_2D,null),this.K.activeTexture(this.K.TEXTURE0),this.Ig=null),Fa(k,b),"undefined"!==typeof b.$q&&delete h[b.$q],this.K.deleteTexture(b)))};e.prototype.xd=function(b){if(b!==this.vm){var d=this.Ac();d.type=6;this.vm=d.Ad=b;this.Tb=this.zb=!1}};pb=e})();
(function(){function e(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.Ke=(this.Jl=/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.zc=!!a.dc;this.es="undefined"!==typeof window.AppMobi||
this.zc;this.Pd=!!window.c2cocoonjs;this.Qd=!!window.c2ejecta;this.Pd&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.Qd&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.mc=this.zc||this.Pd||this.Qd;this.Wi=
/edge\//i.test(navigator.userAgent);this.Me=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.Wi;this.ls=/tizen/i.test(navigator.userAgent);this.Gl=/android/i.test(navigator.userAgent)&&!this.ls&&!this.Me&&!this.Wi;this.rs=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Me&&!this.Wi;this.Kz=/ipad/i.test(navigator.userAgent);this.ej=this.rs||this.Kz||this.Qd;this.Ti=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Me&&!this.Wi;this.ds=/amazonwebappplatform/i.test(navigator.userAgent);this.Dz=/firefox/i.test(navigator.userAgent);this.Gz=/safari/i.test(navigator.userAgent)&&!this.Ti&&!this.Me&&!this.Wi;this.Iz=/windows/i.test(navigator.userAgent);this.Bg="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.os=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);
this.Jz=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.aj=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Ho=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.ns=!!window.cr_windows10;this.Hz=this.os||this.Jz||this.Ho||this.ns;this.Bz=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.Hl=this.Gl&&!this.Ti&&!this.Jl&&!this.Dz&&!this.ds&&!this.mc;this.devicePixelRatio=
1;this.Ag=this.Ke||this.Jl||this.es||this.Pd||this.Gl||this.ej||this.aj||this.Ho||this.Bz||this.ls||this.Qd;this.Ag||(this.Ag=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.$i=!!(this.ej&&this.Ke&&window.webkit);this.vo=null;this.wz="";this.$i&&(this.vo=cordova&&cordova.plugins&&cordova.plugins.CorHttpd?cordova.plugins.CorHttpd:null);"undefined"===typeof cr_is_preview||this.Bg||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&
!/nwjs/i.test(navigator.userAgent)||(this.Bg=!0);this.canvas=a;this.dr=document.getElementById("c2canvasdiv");this.H=this.K=null;this.po="(unavailable)";this.Ma=!1;this.kg=0;this.Pa=null;this.ao="";this.ml=!1;this.ct=this.dt=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.zc&&(window.c2runtime=this);this.Bg&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=
function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.Hl&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.U=this.width;this.T=this.height;this.Yk=this.width;this.yi=this.height;this.Jh=window.innerWidth;this.Ih=window.innerHeight;this.ja=!0;this.Zi=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.I=[];this.Za=[];this.Lh=
{};this.Rd=[];this.Un={};this.Ge=[];this.li=[];this.Zm=[];this.Xw=[];this.Yw=[];this.ts=this.Fp=null;this.hg={};this.Eo=this.Gf=!1;this.gd=0;this.Do=this.Go=!1;this.Nd=[];this.Vi=!1;this.Pl=this.zp="";this.Db=null;this.Ne="";this.ik=this.Vt=!1;this.ll=[];this.jg=this.ig=0;this.Ts=30;this.Kn=this.wj=0;this.dh=1;this.nb=new ab;this.gf=new ab;this.cm=this.sl=this.pg=this.Bd=this.Kg=this.Zn=this.Ml=0;this.De=null;this.fl=[];this.Tn=[];this.hl=-1;this.Uo=[[]];this.Qp=this.Ul=0;this.qm(null);this.Wo=[];
this.Wl=-1;this.Ws=this.Dj=0;this.No=!0;this.Ei=0;this.jk=[];this.Np=this.rp=-1;this.Fg=!0;this.Sl=0;this.Xi=!1;this.LA=0;this.hh=null;this.zh=!1;this.$s=new fa;this.dp=new fa;this.bt=new fa;this.Vj=[];this.ae=new hb([]);this.Ip=new hb([]);this.qf=[];this.Li={};this.wf={};this.of={};this.ki={};this.Wq={};this.zs=this.Ol=this.pb=this.Cb=this.ys=this.Nl=this.Ha=null;this.hi=this.Io=!1;this.bo=[null,null];this.qg=0;this.rh="";this.Se={};this.gk=this.Lf=null;this.Wt="";this.$l=[];this.tA()}}function m(a,
c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function r(){try{return!!window.indexedDB}catch(a){return!1}}function p(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,c,b,g){try{var l=indexedDB.open("_C2SaveStates");l.onupgradeneeded=p;l.onerror=g;l.onsuccess=function(l){l=l.target.result;l.onerror=g;l.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=b}}catch(n){g(n)}}function k(a,c,b){try{var g=indexedDB.open("_C2SaveStates");
g.onupgradeneeded=p;g.onerror=b;g.onsuccess=function(g){g=g.target.result;g.onerror=b;var l=g.transaction(["saves"]).objectStore("saves").get(a);l.onsuccess=function(){l.result?c(l.result.data):c(null)}}}catch(l){b(l)}}function h(){ha("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function b(a){var c,b={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof
fa||a[c]&&"undefined"!==typeof a[c].yB||"spriteCreatedDestroyCallback"!==c&&(b[c]=a[c]);return b}var d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;e.prototype.tA=function(){var a=this;if(this.$i)this.vo?this.vo.startServer({port:0,localhost_only:!0},function(c){a.wz=c;a.Ar(function(c){a.Mh(JSON.parse(c))},function(){alert("Error fetching data.js")})},function(a){alert("error starting local server: "+
a)}):this.Ar(function(c){a.Mh(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.aj?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var b="data.js";if(this.os||this.aj||this.Ho||this.ns)b="data.json";c.open("GET",b,!0);var g=!1;if(!this.mc&&"response"in c&&"responseType"in c)try{c.responseType="json",g="json"===c.responseType}catch(l){g=!1}if(!g&&"responseType"in c)try{c.responseType="text"}catch(n){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(d){}this.aj?
c.onreadystatechange=function(){4===c.readyState&&a.Mh(JSON.parse(c.responseText))}:(c.onload=function(){if(g)a.Mh(c.response);else if(a.Qd){var b=c.responseText,b=b.substr(b.indexOf("{"));a.Mh(JSON.parse(b))}else a.Mh(JSON.parse(c.responseText))},c.onerror=function(a){ia("Error requesting "+b+":");ia(a)});c.send()}};e.prototype.zz=function(){var a=this,c,b,g,l,n,d,f,h,q;this.Cg=(!this.mc||this.Qd||this.Ke)&&this.RA&&!this.Hl;0===this.Uc&&this.ej&&(this.Cg=!1);this.devicePixelRatio=this.Cg?window.devicePixelRatio||
window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.cc();0<this.Uc&&this.setSize(window.innerWidth,window.innerHeight,!0);try{this.Ux&&(this.Pd||this.Qd||!this.mc)&&(c={alpha:!0,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.K=this.canvas.getContext("webgl2",c)||this.canvas.getContext("webgl",c)||this.canvas.getContext("experimental-webgl",c))}catch(k){}if(this.K){if(c=this.K.getExtension("WEBGL_debug_renderer_info"))this.po=this.K.getParameter(c.UNMASKED_RENDERER_WEBGL)+
" ["+this.K.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.Ma&&(this.po+=" [front-to-back enabled]");this.mc||(this.Vb=document.createElement("canvas"),jQuery(this.Vb).appendTo(this.canvas.parentNode),this.Vb.oncontextmenu=function(){return!1},this.Vb.onselectstart=function(){return!1},this.Vb.width=Math.round(this.Yk*this.devicePixelRatio),this.Vb.height=Math.round(this.yi*this.devicePixelRatio),jQuery(this.Vb).css({width:this.Yk+"px",height:this.yi+"px"}),this.xt(),this.jp=this.Vb.getContext("2d"));
this.H=new pb(this.K,this.Ag,this.Ma);this.H.$e(this.canvas.width,this.canvas.height);this.H.pr=0!==this.Nx;this.Pa=null;this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Yz();ha("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.H.Xr();a.H.$e(a.H.width,a.H.height,!0);a.Cb=null;a.pb=null;a.bo[0]=null;a.bo[1]=null;a.Zz();a.ja=!0;ha("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},
!1);c=0;for(b=this.I.length;c<b;c++)for(n=this.I[c],g=0,l=n.da.length;g<l;g++)f=n.da[g],f.ub=this.H.no(f.id),f.Xd=this.H.mp(f.ub),this.hi=this.hi||this.H.Pj(f.ub);c=0;for(b=this.Rd.length;c<b;c++){h=this.Rd[c];g=0;for(l=h.da.length;g<l;g++)f=h.da[g],f.ub=this.H.no(f.id),f.Xd=this.H.mp(f.ub);h.ee();g=0;for(l=h.fa.length;g<l;g++){q=h.fa[g];n=0;for(d=q.da.length;n<d;n++)f=q.da[n],f.ub=this.H.no(f.id),f.Xd=this.H.mp(f.ub),this.hi=this.hi||this.H.Pj(f.ub);q.ee()}}}else{if(0<this.Uc&&this.zc){this.canvas=
null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.Pa=AppMobi.canvas.getContext("2d");try{this.Pa.samplingMode=this.Oa?"smooth":"sharp",this.Pa.globalScale=1,this.Pa.HTML5CompatibilityMode=!0,this.Pa.imageSmoothingEnabled=this.Oa}catch(e){}0!==this.width&&0!==this.height&&(this.Pa.width=this.width,this.Pa.height=this.height)}this.Pa||(this.Pd?(c={antialias:!!this.Oa,alpha:!0},this.Pa=this.canvas.getContext("2d",c)):(c={alpha:!0},this.Pa=this.canvas.getContext("2d",
c)),this.Cm(this.Pa,this.Oa));this.jp=this.Vb=null}this.du=function(c){a.Ja(!1,c)};window==window.top||this.mc||this.Hz||this.aj||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Pd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ha("Reloading for continuous preview"),this.Pl="__c2_continuouspreview",
this.ik=!0),this.dA&&!this.Ag&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Sg()});this.mc||(c=function(a){if(ob(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",
c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.Uc&&this.Cg&&1<this.devicePixelRatio&&this.setSize(this.Sa,this.Ra,!0);this.lu();this.oz();this.go();this.L={}};e.prototype.setSize=function(a,c,b){var g=0,l=0,n=0,f=0,f=0;if(this.Jh!==a||this.Ih!==c||b){this.Jh=a;this.Ih=c;var d=this.Uc,h=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||
document.fullScreen||this.Xi)&&!this.Ke;if(h||0!==this.Uc||b)h&&0<this.qg&&(d=this.qg),b=this.devicePixelRatio,4<=d?(n=this.Sa/this.Ra,a/c>n?(n*=c,5===d?(f=n*b/this.Sa,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),n=this.Sa*f/b,f=this.Ra*f/b,g=(a-n)/2,l=(c-f)/2,a=n,c=f):(g=(a-n)/2,a=n)):(f=a/n,5===d?(f=f*b/this.Ra,1<f?f=Math.floor(f):1>f&&(f=1/Math.ceil(1/f)),n=this.Sa*f/b,f=this.Ra*f/b,g=(a-n)/2,l=(c-f)/2,a=n):l=(c-f)/2,c=f),h&&!this.Bg&&(l=g=0)):this.Bg&&this.Xi&&0===this.Hr&&(g=Math.floor((a-this.Sa)/
2),l=Math.floor((c-this.Ra)/2),a=this.Sa,c=this.Ra),2>d&&(this.ri=b),this.Yk=Math.round(a),this.yi=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.ja=!0,this.yu?(this.U=this.width,this.T=this.height,this.dd=!0):this.width<this.Sa&&this.height<this.Ra||1===d?(this.U=this.width,this.T=this.height,this.dd=!0):(this.U=this.Sa,this.T=this.Ra,this.dd=!1,2===d?(n=this.Sa/this.Ra,d=this.Jh/this.Ih,d<n?this.U=this.T*d:d>n&&(this.T=this.U/d)):3===d&&(n=this.Sa/this.Ra,d=this.Jh/this.Ih,
d>n?this.U=this.T*d:d<n&&(this.T=this.U/d))),this.dr&&!this.mc&&(jQuery(this.dr).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(g)+"px","margin-top":Math.floor(l)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(c*b),this.Qd?(this.canvas.style.left=Math.floor(g)+"px",this.canvas.style.top=Math.floor(l)+"px",this.canvas.style.width=
Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.Cg&&!this.mc&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.Vb&&(this.Vb.width=Math.round(a*b),this.Vb.height=Math.round(c*b),this.Vb.style.width=this.Yk+"px",this.Vb.style.height=this.yi+"px"),this.H&&this.H.$e(Math.round(a*b),Math.round(c*b)),this.zc&&this.Pa&&(this.Pa.width=Math.round(a),this.Pa.height=Math.round(c)),this.Pa&&this.Cm(this.Pa,this.Oa),this.lu(),this.rs&&!this.Ke&&
window.scrollTo(0,0)}};e.prototype.lu=function(){if(this.bx&&0!==this.hp){var a="portrait";2===this.hp&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",
c)}}};e.prototype.Yz=function(){this.H.mx();this.Io=!0;var a,c,b;a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.Wh&&b.Wh()};e.prototype.Zz=function(){this.Io=!1;var a,c,b;a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.Jj&&b.Jj()};e.prototype.xt=function(){if(!this.mc){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.Xi)&&!this.Ke?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.Vb).css(a)}};
var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;e.prototype.setSuspended=function(a){var c;if(a&&!this.Zi)for(ha("[Construct 2] Suspending"),this.Zi=!0,-1!==this.rp&&f&&f(this.rp),-1!==this.Np&&clearTimeout(this.Np),a=0,c=this.jk.length;a<c;a++)this.jk[a](!0);else if(!a&&this.Zi){ha("[Construct 2] Resuming");this.Zi=!1;this.Ml=Xa();this.Kg=Xa();a=this.wj=this.sl=0;for(c=this.jk.length;a<
c;a++)this.jk[a](!1);this.Ja(!1)}};e.prototype.Vw=function(a){this.jk.push(a)};e.prototype.kf=function(a){return this.$l[a]};e.prototype.Mh=function(a){a&&a.project||ia("Project model unavailable");a=a.project;this.name=a[0];this.Cr=a[1];this.Uc=a[12];this.Hr=a[12];this.Sa=a[10];this.Ra=a[11];this.nt=this.Sa/2;this.ot=this.Ra/2;this.mc&&!this.Qd&&(4<=a[12]||0===a[12])&&(ha("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.Hr=
this.Uc=3);this.Zp=a[18];this.Mf=a[19];if(0===this.Mf){var c=new Image;c.crossOrigin="anonymous";this.Mt(c,"loading-logo.png");this.Lf={Vl:c}}else if(4===this.Mf){c=new Image;c.src="";var b=new Image;b.src="";var g=new Image;g.src="";var l=new Image;l.src="";var n=new Image;n.src="";var f=new Image;f.src="";var d=new Image;d.src="";var h=new Image;h.src="";var q=new Image;q.src="";var k=new Image;k.src="";var e=new Image;e.src="";var z=new Image;z.src="";this.Lf={Vl:[c,b,g,l],iA:[n,f,d,h],YA:[q,k,
e,z]}}this.Dj=a[21];this.$l=pc();this.xe=new R(this);c=0;for(b=a[2].length;c<b;c++)d=a[2][c],g=this.kf(d[0]),qb(d,g.prototype),h=new g(this),h.Mm=d[1],h.Hf=d[2],h.BB=d[5],h.Us=d[9],h.O&&h.O(),this.plugins.push(h);this.$l=pc();c=0;for(b=a[3].length;c<b;c++){d=a[3][c];n=this.kf(d[1]);h=null;g=0;for(l=this.plugins.length;g<l;g++)if(this.plugins[g]instanceof n){h=this.plugins[g];break}q=new h.ea(h);q.name=d[0];q.M=d[2];q.Co=d[3].slice(0);q.SA=d[3].length;q.cx=d[4];q.Jy=d[5];q.ra=d[11];q.M?(q.Pg=[],q.He=
this.Ei++,q.Va=null):(q.Pg=null,q.He=-1,q.Va=[]);q.jl=null;q.qh=null;q.qr=null;q.nc=!1;q.Rc=null;d[6]?(q.mk=d[6][0],q.nk=d[6][1],q.ok=d[6][2]):(q.mk=null,q.nk=0,q.ok=0);d[7]?q.Pc=d[7]:q.Pc=null;q.index=c;q.k=[];q.cl=[];q.df=[new rb(q)];q.je=0;q.rd=null;q.tx=0;q.fi=!0;q.$m=sb;q.wl=tb;q.Wy=ub;q.W=vb;q.Rj=wb;q.Rf=yb;q.Wd=zb;q.ul=Ab;q.co=Bb;q.ho=Cb;q.Id=Db;q.jo=Eb;q.Tk=new ib(this.Sa,this.Ra);q.Gk=!0;q.Hk=!1;q.L={};q.toString=Fb;q.Za=[];g=0;for(l=d[8].length;g<l;g++){k=d[8][g];e=this.kf(k[1]);z=null;
n=0;for(f=this.Za.length;n<f;n++)if(this.Za[n]instanceof e){z=this.Za[n];break}z||(z=new e(this),z.Zl=[],z.Bj=new fa,z.O&&z.O(),this.Za.push(z),qc&&z instanceof qc&&(this.Fp=z),rc&&z instanceof rc&&(this.ts=z));-1===z.Zl.indexOf(q)&&z.Zl.push(q);n=new z.ea(z,q);n.name=k[0];n.ra=k[2];n.O();q.Za.push(n)}q.global=d[9];q.Fo=d[10];q.da=[];g=0;for(l=d[12].length;g<l;g++)q.da.push({id:d[12][g][0],name:d[12][g][1],ub:-1,Xd:!1,Ta:!0,index:g});q.Vm=d[13];this.Zp&&!q.M&&!q.Fo&&h.Hf||q.O();q.name&&(this.types[q.name]=
q);this.I.push(q);h.Mm&&(g=new h.V(q),g.uid=this.Dj++,g.Bt=this.Ws++,g.wg=0,g.Ji=Hb,g.toString=Ib,g.C=d[14],g.O(),q.k.push(g),this.Se[g.uid.toString()]=g)}c=0;for(b=a[4].length;c<b;c++)for(n=a[4][c],f=this.I[n[0]],g=1,l=n.length;g<l;g++)d=this.I[n[g]],d.Va.push(f),f.Pg.push(d);c=0;for(b=a[28].length;c<b;c++){n=a[28][c];f=[];g=0;for(l=n.length;g<l;g++)f.push(this.I[n[g]]);g=0;for(l=f.length;g<l;g++)f[g].nc=!0,f[g].Rc=f}if(0<this.Ei)for(c=0,b=this.I.length;c<b;c++)if(d=this.I[c],!d.M&&d.Va.length){d.jl=
Array(this.Ei);d.qh=Array(this.Ei);d.qr=Array(this.Ei);q=[];g=z=e=k=0;for(l=d.Va.length;g<l;g++)for(h=d.Va[g],d.jl[h.He]=k,k+=h.SA,d.qh[h.He]=e,e+=h.cx,d.qr[h.He]=z,z+=h.Jy,n=0,f=h.da.length;n<f;n++)q.push(ya({},h.da[n]));d.da=q.concat(d.da);g=0;for(l=d.da.length;g<l;g++)d.da[g].index=g}c=0;for(b=a[5].length;c<b;c++)d=a[5][c],g=new Jb(this,d),this.Lh[g.name]=g,this.Rd.push(g);c=0;for(b=a[6].length;c<b;c++)d=a[6][c],g=new Kb(this,d),this.Un[g.name]=g,this.Ge.push(g);c=0;for(b=this.Ge.length;c<b;c++)this.Ge[c].jb();
c=0;for(b=this.Ge.length;c<b;c++)this.Ge[c].Up();c=0;for(b=this.Zm.length;c<b;c++)this.Zm[c].jb();F(this.Zm);this.ax=a[7];this.rh=a[8];this.Kc=a[9];this.ri=1;this.Ux=a[13];this.Oa=a[14];this.fr=a[15];this.RA=a[17];this.hp=a[20];this.bx=0<this.hp;this.dA=a[22];this.dd=this.yu=a[23];this.Nx=a[24];this.jA=a[25];this.Ma=a[27]&&!this.Me;this.Pm=Date.now();F(this.$l);this.zz()};var a=!1;e.prototype.dn=function(c,b){c.cocoonLazyLoad=!0;c.onerror=function(b){a=c.Zq=!0;console&&console.error&&console.error("Error loading image '"+
c.src+"': ",b)};this.Qd?c.src=b:c.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(a){c.src=a},function(g){a=c.Zq=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",g)}):(c.crossOrigin="anonymous",this.Mt(c,b)));this.li.push(c)};e.prototype.Gy=function(a){var c,b;c=0;for(b=this.li.length;c<b;c++)if(this.li[c].nx===a)return this.li[c];return null};var c=0,g=!1;e.prototype.oz=function(){this.hh&&(c=this.hh.GA(this.ax))};e.prototype.Uq=function(){var a=
c,b=0,l=0,n=!0,d,f,l=0;for(d=this.li.length;l<d;l++){f=this.li[l];var q=f.Xk;if(!q||0>=q)q=5E4;a+=q;f.src&&(f.complete||f.loaded)&&!f.Zq?b+=q:n=!1}n&&this.jA&&this.hh&&(g||(this.hh.MA(),g=!0),l=this.hh.Xy(),b+=l,l<c&&(n=!1));this.Yd=0==a?1:b/a;return n};var l=!1;e.prototype.go=function(){if(this.Pa||this.H){var c=this.Pa||this.jp;this.Vb&&this.xt();var b=window.innerWidth,g=window.innerHeight;this.Jh===b&&this.Ih===g||this.setSize(b,g);this.Yd=0;this.xs=-1;var n=this;if(this.Uq()&&(4!==this.Mf||l))this.pz();
else{g=Date.now()-this.Pm;if(c){var f=this.width,q=this.height,b=this.devicePixelRatio;if(3>this.Mf&&(this.Pd||500<=g&&this.xs!=this.Yd)){c.clearRect(0,0,f,q);var g=f/2,q=q/2,f=0===this.Mf&&this.Lf.Vl.complete,h=40*b,k=0,e=80*b,z;if(f){var u=this.Lf.Vl,e=u.width*b;z=u.height*b;h=e/2;k=z/2;c.drawImage(u,A(g-h),A(q-k),e,z)}1>=this.Mf?(g=A(g-h)+.5,q=A(q+(k+(f?12*b:0)))+.5,c.fillStyle=a?"red":"DodgerBlue",c.fillRect(g,q,Math.floor(e*this.Yd),6*b),c.strokeStyle="black",c.strokeRect(g,q,e,6*b),c.strokeStyle=
"white",c.strokeRect(g-1*b,q-1*b,e+2*b,8*b)):2===this.Mf&&(c.font=this.Qd?"12pt ArialMT":"12pt Arial",c.fillStyle=a?"#f00":"#999",c.JB="middle",b=Math.round(100*this.Yd)+"%",f=c.measureText?c.measureText(b):null,c.fillText(b,g-(f?f.width:0)/2,q));this.xs=this.Yd}else if(4===this.Mf){this.Sx(c);d?d(function(){n.go()}):setTimeout(function(){n.go()},16);return}}setTimeout(function(){n.go()},this.Pd?10:100)}}};var u=-1,N="undefined"===typeof cr_is_preview?200:0,z=!0,n=!1,q=0,da=0,Y="undefined"===typeof cr_is_preview?
3E3:0,v=null,w=null,D=0;e.prototype.Sx=function(c){if(!l){for(var b=Math.ceil(this.width),g=Math.ceil(this.height),d=this.Lf.Vl,f=this.Lf.iA,h=this.Lf.YA,k=0;4>k;++k)if(!d[k].complete||!f[k].complete||!h[k].complete)return;0===D&&(u=Date.now());var k=Date.now(),e=!1,p=c,r,t;z||n?(c.clearRect(0,0,b,g),v&&v.width===b&&v.height===g||(v=document.createElement("canvas"),v.width=b,v.height=g,w=v.getContext("2d")),p=w,e=!0,z&&1===D&&(u=Date.now())):c.globalAlpha=1;p.fillStyle="#333333";p.fillRect(0,0,b,
g);256<this.yi?(r=Ga(.22*g,105,.6*b),t=.25*r,p.drawImage(m(f,r),.5*b-r/2,.2*g-t/2,r,t),t=r=Math.min(.395*g,.95*b),p.drawImage(m(d,r),.5*b-r/2,.485*g-t/2,r,t),r=Ga(.22*g,105,.6*b),t=.25*r,p.drawImage(m(h,r),.5*b-r/2,.868*g-t/2,r,t),p.fillStyle="#3C3C3C",r=b,t=Math.max(.005*g,2),p.fillRect(0,.8*g-t/2,r,t),p.fillStyle=a?"red":"#E0FF65",r=b*this.Yd,p.fillRect(.5*b-r/2,.8*g-t/2,r,t)):(t=r=.55*g,p.drawImage(m(d,r),.5*b-r/2,.45*g-t/2,r,t),p.fillStyle="#3C3C3C",r=b,t=Math.max(.005*g,2),p.fillRect(0,.85*g-
t/2,r,t),p.fillStyle=a?"red":"#E0FF65",r=b*this.Yd,p.fillRect(.5*b-r/2,.85*g-t/2,r,t));e&&(z?c.globalAlpha=0===D?0:Math.min((k-u)/300,1):n&&(c.globalAlpha=Math.max(1-(k-da)/300,0)),c.drawImage(v,0,0,b,g));z&&300<=k-u&&2<=D&&(z=!1,q=k);!z&&k-q>=Y&&!n&&1<=this.Yd&&(n=!0,da=k);if(n&&k-da>=300+N||"undefined"!==typeof cr_is_preview&&1<=this.Yd&&500>Date.now()-u)l=!0,n=z=!1,this.Lf=w=v=null;++D}};e.prototype.pz=function(){this.Vb&&(this.canvas.parentNode.removeChild(this.Vb),this.Vb=this.jp=null);this.Pm=
Date.now();this.Kg=Xa();var a,c,b;if(this.Zp)for(a=0,c=this.I.length;a<c;a++)b=this.I[a],b.M||b.Fo||!b.Ka.Hf||b.O();else this.Fg=!1;a=0;for(c=this.Rd.length;a<c;a++)this.Rd[a].ox();2<=this.Uc&&(a=this.Sa/this.Ra,c=this.width/this.height,this.ri=2!==this.Uc&&c>a||2===this.Uc&&c<a?this.height/this.Ra:this.width/this.Sa);this.Cr?this.Lh[this.Cr].Hp():this.Rd[0].Hp();this.Zp||(this.Sl=1,this.trigger(R.prototype.n.Aq,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&
navigator.splashscreen.hide();a=0;for(c=this.I.length;a<c;a++)b=this.I[a],b.Xz&&b.Xz();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.Ja(!1);this.zc&&AppMobi.webview.execute("onGameReady();")};e.prototype.Ja=function(a,c,b){if(this.Ha){var g=Xa();if(b||!this.Zi||a){a||(d?this.rp=d(this.du):this.Np=setTimeout(this.du,this.Ag?1:16));c=c||g;var l=this.Uc;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&
!this.Ke)||this.Xi)&&0<this.qg&&(l=this.qg);if(0<l){var l=window.innerWidth,n=window.innerHeight;this.Jh===l&&this.Ih===n||this.setSize(l,n)}this.mc||(b?(this.ml||(this.ao=jQuery(this.canvas).css("margin")||"0",this.ml=!0),this.Ti||this.Bg||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.ml?(this.Ti||this.Bg||jQuery(this.canvas).css("margin",this.ao),
this.ao="",this.ml=!1,0===this.Uc&&this.setSize(Math.round(this.dt/this.devicePixelRatio),Math.round(this.ct/this.devicePixelRatio),!0)):(this.dt=this.width,this.ct=this.height));this.Fg&&(b=this.Uq(),this.Sl=this.Yd,b&&(this.Fg=!1,this.Yd=1,this.trigger(R.prototype.n.Aq,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Pz(c);!this.ja&&!this.Pd||this.Io||this.ik||a||(this.ja=!1,this.H?this.Kb():this.Tc(),this.gk&&(this.canvas&&this.canvas.toDataURL&&(this.Wt=this.canvas.toDataURL(this.gk[0],
this.gk[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Wt),this.trigger(R.prototype.n.Ev,null)),this.gk=null));this.AB||(this.Bd++,this.pg++,this.sl++);this.wj+=Xa()-g}}};e.prototype.Pz=function(a){var c,b,g,l,n,d,f,q;1E3<=a-this.Kg&&(this.Kg+=1E3,1E3<=a-this.Kg&&(this.Kg=a),this.Zn=this.sl,this.sl=0,this.Kn=this.wj,this.wj=0);c=0;0!==this.Ml&&(c=a-this.Ml,0>c&&(c=0),this.jg=c/=1E3,.5<this.jg?this.jg=0:this.jg>1/this.Ts&&(this.jg=1/this.Ts));this.Ml=a;this.ig=this.jg*this.dh;this.nb.add(this.ig);
this.gf.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Xi)&&!this.Ke;2<=this.Uc||a&&0<this.qg?(c=this.Sa/this.Ra,b=this.width/this.height,g=this.Uc,a&&0<this.qg&&(g=this.qg),this.ri=2!==g&&b>c||2===g&&b<c?this.height/this.Ra:this.width/this.Sa,this.Ha&&(this.Ha.Ap(this.Ha.scrollX),this.Ha.Bp(this.Ha.scrollY))):this.ri=this.Cg?this.devicePixelRatio:1;this.cc();this.gd++;this.xe.xA();this.gd--;this.cc();this.gd++;b=this.$s.Cd();
a=0;for(c=b.length;a<c;a++)b[a].HB();a=0;for(c=this.I.length;a<c;a++)if(d=this.I[a],!d.M&&(d.Za.length||d.Va.length))for(b=0,g=d.k.length;b<g;b++)for(f=d.k[b],l=0,n=f.S.length;l<n;l++)f.S[l].Ja();a=0;for(c=this.I.length;a<c;a++)if(d=this.I[a],!d.M&&(d.Za.length||d.Va.length))for(b=0,g=d.k.length;b<g;b++)for(f=d.k[b],l=0,n=f.S.length;l<n;l++)q=f.S[l],q.yt&&q.yt();b=this.dp.Cd();a=0;for(c=b.length;a<c;a++)b[a].Ja();this.gd--;this.rz();for(a=0;this.De&&10>a++;)this.nr(this.De);a=0;for(c=this.Ge.length;a<
c;a++)this.Ge[a].uo=!1;this.Ha.mg&&this.Ha.mg.sb();F(this.Vj);this.No=!1;this.gd++;a=0;for(c=this.I.length;a<c;a++)if(d=this.I[a],!d.M&&(d.Za.length||d.Va.length))for(b=0,g=d.k.length;b<g;b++)for(f=d.k[b],l=0,n=f.S.length;l<n;l++)q=f.S[l],q.Um&&q.Um();b=this.bt.Cd();a=0;for(c=b.length;a<c;a++)b[a].Um();this.gd--};e.prototype.Sg=function(){var a,c,b,g,l,n,d,f,q;a=0;for(c=this.I.length;a<c;a++)if(d=this.I[a],!d.M)for(b=0,g=d.k.length;b<g;b++)if(f=d.k[b],f.Sg&&f.Sg(),f.S)for(l=0,n=f.S.length;l<n;l++)q=
f.S[l],q.Sg&&q.Sg()};e.prototype.nr=function(a){var c=this.Ha;this.Ha.NA();var b,g,l;if(this.H)for(b=0,g=this.I.length;b<g;b++)l=this.I[b],l.M||!l.pk||l.global&&0!==l.k.length||-1!==a.Qi.indexOf(l)||l.pk();c==a&&F(this.xe.ac);F(this.Vj);this.Ft(!0);a.Hp();this.Ft(!1);this.No=this.ja=!0;this.cc()};e.prototype.Ft=function(a){var c,b,g,l,n,d,f,q,h;c=0;for(b=this.Za.length;c<b;c++)g=this.Za[c],a?g.Gj&&g.Gj():g.Ij&&g.Ij();c=0;for(b=this.I.length;c<b;c++)if(g=this.I[c],g.global||g.Ka.Mm)for(l=0,n=g.k.length;l<
n;l++)if(d=g.k[l],a?d.Gj&&d.Gj():d.Ij&&d.Ij(),d.S)for(f=0,q=d.S.length;f<q;f++)h=d.S[f],a?h.Gj&&h.Gj():h.Ij&&h.Ij()};e.prototype.bh=function(a){this.dp.add(a)};e.prototype.Ff=function(a){return a&&-1!==a.Cj?this.jg*a.Cj:this.ig};e.prototype.Tc=function(){this.Ha.Tc(this.Pa);this.zc&&this.Pa.present()};e.prototype.Kb=function(){this.Ma&&(this.kg=1,this.Ha.Af(this.H));this.Ha.Kb(this.H);this.H.lA()};e.prototype.Dk=function(a){a&&this.fl.push(a)};e.prototype.Et=function(a){Fa(this.fl,a)};e.prototype.tg=
function(a){a=a.toString();return this.Se.hasOwnProperty(a)?this.Se[a]:null};var S=[];e.prototype.ge=function(a){var c,b;c=a.type.name;var g=null;if(this.hg.hasOwnProperty(c)){if(g=this.hg[c],g.contains(a))return}else g=S.length?S.pop():new fa,this.hg[c]=g;g.add(a);this.Gf=!0;if(a.nc)for(c=0,b=a.siblings.length;c<b;c++)this.ge(a.siblings[c]);this.Eo&&g.ji.push(a);this.Do||(this.gd++,this.trigger(Object.getPrototypeOf(a.type.Ka).n.un,a),this.gd--)};e.prototype.cc=function(){if(this.Gf){var a,c,b,g,
l,n;this.Eo=!0;b=0;for(l=this.Nd.length;b<l;++b)for(a=this.Nd[b],c=a.type,c.k.push(a),g=0,n=c.Va.length;g<n;++g)c.Va[g].k.push(a),c.Va[g].fi=!0;F(this.Nd);this.wv();Wa(this.hg);this.Gf=this.Eo=!1}};e.prototype.wv=function(){for(var a in this.hg)this.hg.hasOwnProperty(a)&&this.Ju(this.hg[a])};e.prototype.Ju=function(a){var c=a.Cd(),b=c[0].type,g,l,n,d,f,q;Ya(b.k,a);b.fi=!0;0===b.k.length&&(b.Hk=!1);g=0;for(l=b.Va.length;g<l;++g)q=b.Va[g],Ya(q.k,a),q.fi=!0;g=0;for(l=this.xe.ac.length;g<l;++g)if(f=this.xe.ac[g],
f.oc.hasOwnProperty(b.index)&&Ya(f.oc[b.index].oe,a),!b.M)for(n=0,d=b.Va.length;n<d;++n)q=b.Va[n],f.oc.hasOwnProperty(q.index)&&Ya(f.oc[q.index].oe,a);if(f=c[0].A){if(f.md)for(n=f.k,g=0,l=n.length;g<l;++g)d=n[g],a.contains(d)&&(d.la(),f.Yb.update(d,d.Mc,null),d.Mc.set(0,0,-1,-1));Ya(f.k,a);f.ak(0)}for(g=0;g<c.length;++g)this.Iu(c[g],b);a.clear();S.push(a);this.ja=!0};e.prototype.Iu=function(a,c){var b,g,l;b=0;for(g=this.fl.length;b<g;++b)this.fl[b](a);a.xf&&c.Tk.update(a,a.xf,null);(b=a.A)&&b.$h(a,
!0);if(a.S)for(b=0,g=a.S.length;b<g;++b)l=a.S[b],l.Td&&l.Td(),l.behavior.Bj.remove(a);this.$s.remove(a);this.dp.remove(a);this.bt.remove(a);a.Td&&a.Td();this.Se.hasOwnProperty(a.uid.toString())&&delete this.Se[a.uid.toString()];this.cm--;100>c.cl.length&&c.cl.push(a)};e.prototype.Ln=function(a,c,b,g){if(a.M){var l=A(Math.random()*a.Pg.length);return this.Ln(a.Pg[l],c,b,g)}return a.rd?this.yf(a.rd,c,!1,b,g,!1):null};var C=[];e.prototype.yf=function(a,c,b,g,l,n){var d,f,q,h;if(!a)return null;var k=
this.I[a[1]],e=k.Ka.Hf;if(this.Fg&&e&&!k.Fo||e&&!this.H&&11===a[0][11])return null;var z=c;e||(c=null);var u;k.cl.length?(u=k.cl.pop(),u.Xb=!0,k.Ka.V.call(u,k)):(u=new k.Ka.V(k),u.Xb=!1);!b||n||this.Se.hasOwnProperty(a[2].toString())?u.uid=this.Dj++:u.uid=a[2];this.Se[u.uid.toString()]=u;u.Bt=this.Ws++;u.wg=k.k.length;d=0;for(f=this.Nd.length;d<f;++d)this.Nd[d].type===k&&u.wg++;u.Ji=Hb;u.toString=Ib;q=a[3];if(u.Xb)Wa(u.L);else{u.L={};if("undefined"!==typeof cr_is_preview)for(u.$r=[],u.$r.length=q.length,
d=0,f=q.length;d<f;d++)u.$r[d]=q[d][1];u.Bb=[];u.Bb.length=q.length}d=0;for(f=q.length;d<f;d++)u.Bb[d]=q[d][0];if(e){var w=a[0];u.x=ka(g)?w[0]:g;u.y=ka(l)?w[1]:l;u.z=w[2];u.width=w[3];u.height=w[4];u.depth=w[5];u.u=w[6];u.opacity=w[7];u.Gc=w[8];u.Hc=w[9];u.fc=w[10];d=w[11];!this.H&&k.da.length&&(u.fc=d);u.vi=kb(u.fc);this.K&&lb(u,u.fc,this.K);if(u.Xb){d=0;for(f=w[12].length;d<f;d++)for(q=0,h=w[12][d].length;q<h;q++)u.bb[d][q]=w[12][d][q];u.Y.set(0,0,0,0);u.xf.set(0,0,-1,-1);u.Mc.set(0,0,-1,-1);u.Pb.Wg(u.Y);
F(u.Cn)}else{u.bb=w[12].slice(0);d=0;for(f=u.bb.length;d<f;d++)u.bb[d]=w[12][d].slice(0);u.Da=[];u.nf=[];u.nf.length=k.da.length;u.Y=new va(0,0,0,0);u.xf=new va(0,0,-1,-1);u.Mc=new va(0,0,-1,-1);u.Pb=new xa;u.Cn=[];u.D=Lb;u.Ww=Mb;u.Qb=Nb;u.la=Ob;u.su=Pb;u.Yp=Qb;u.ne=Rb}u.gi=!1;u.hu=0;u.gu=0;u.fu=null;14===w.length&&(u.gi=!0,u.hu=w[13][0],u.gu=w[13][1],u.fu=w[13][2]);d=0;for(f=k.da.length;d<f;d++)u.nf[d]=!0;u.bf=!0;u.ee=Sb;u.ee();u.uu=!!u.Da.length;u.Nk=!0;u.Hn=!0;k.Gk=!0;u.visible=!0;u.Cj=-1;u.A=
c;u.fe=c.k.length;u.kg=0;"undefined"===typeof u.ua&&(u.ua=null);this.ja=u.ie=!0}var m;F(C);d=0;for(f=k.Va.length;d<f;d++)C.push.apply(C,k.Va[d].Za);C.push.apply(C,k.Za);if(u.Xb)for(d=0,f=C.length;d<f;d++){var p=C[d];m=u.S[d];m.Xb=!0;p.behavior.V.call(m,p,u);w=a[4][d];q=0;for(h=w.length;q<h;q++)m.C[q]=w[q];m.O();p.behavior.Bj.add(u)}else for(u.S=[],d=0,f=C.length;d<f;d++)p=C[d],m=new p.behavior.V(p,u),m.Xb=!1,m.C=a[4][d].slice(0),m.O(),u.S.push(m),p.behavior.Bj.add(u);w=a[5];if(u.Xb)for(d=0,f=w.length;d<
f;d++)u.C[d]=w[d];else u.C=w.slice(0);this.Nd.push(u);this.Gf=!0;c&&(c.qi(u,!0),1!==c.Ue||1!==c.Ve)&&(k.Hk=!0);this.cm++;if(k.nc){if(u.nc=!0,u.Xb?F(u.siblings):u.siblings=[],!b&&!n){d=0;for(f=k.Rc.length;d<f;d++)if(k.Rc[d]!==k){if(!k.Rc[d].rd)return null;u.siblings.push(this.yf(k.Rc[d].rd,z,!1,e?u.x:g,e?u.y:l,!0))}d=0;for(f=u.siblings.length;d<f;d++)for(u.siblings[d].siblings.push(u),q=0;q<f;q++)d!==q&&u.siblings[d].siblings.push(u.siblings[q])}}else u.nc=!1,u.siblings=null;u.O();d=0;for(f=u.S.length;d<
f;d++)u.S[d].hA&&u.S[d].hA();return u};e.prototype.Mr=function(a){var c,b;c=0;for(b=this.Ha.fa.length;c<b;c++){var g=this.Ha.fa[c];if(nb(g.name,a))return g}return null};e.prototype.Nr=function(a){a=A(a);0>a&&(a=0);a>=this.Ha.fa.length&&(a=this.Ha.fa.length-1);return this.Ha.fa[a]};e.prototype.xl=function(a){return la(a)?this.Nr(a):this.Mr(a.toString())};e.prototype.In=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].W().X=!0};e.prototype.Rj=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Rj()};
e.prototype.Rf=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Rf()};e.prototype.Wd=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Wd()};e.prototype.pu=function(a){if(a.Gk){var c,b,g=a.k;c=0;for(b=g.length;c<b;++c)g[c].Yp();g=this.Nd;c=0;for(b=g.length;c<b;++c)g[c].type===a&&g[c].Yp();a.Gk=!1}};e.prototype.eo=function(a,c,b,g){var l,d,n=a?1!==a.Ue||1!==a.Ve:!1;if(c.M)for(a=0,l=c.Pg.length;a<l;++a)d=c.Pg[a],n||d.Hk?Da(g,d.k):(this.pu(d),d.Tk.rm(b,g));else n||c.Hk?Da(g,c.k):(this.pu(c),c.Tk.rm(b,
g))};e.prototype.oo=function(a,c,b,g){var l,d;l=0;for(d=c.length;l<d;++l)this.eo(a,c[l],b,g)};e.prototype.Qr=function(a,c,b){var g=this.Fp;g&&this.oo(a,g.Zl,c,b)};e.prototype.Uy=function(a,c,b){var g=this.ts;g&&this.oo(a,g.Zl,c,b)};e.prototype.$b=function(a,c){if(!(a&&c&&a!==c&&a.ie&&c.ie))return!1;a.la();c.la();var b=a.A,g=c.A,l,d,n,f,q,h,k,e;if(b===g||b.Ue===g.Ue&&g.Ve===g.Ve&&b.scale===g.scale&&b.u===g.u&&b.yk===g.yk){if(!a.Y.bs(c.Y)||!a.Pb.as(c.Pb)||a.gi&&c.gi)return!1;if(a.gi)return this.au(a,
c);if(c.gi)return this.au(c,a);k=a.ua&&!a.ua.Eg();l=c.ua&&!c.ua.Eg();if(!k&&!l)return!0;k?(a.ua.tf(a.width,a.height,a.u),k=a.ua):(this.ae.di(a.Pb,a.x,a.y,a.width,a.height),k=this.ae);l?(c.ua.tf(c.width,c.height,c.u),e=c.ua):(this.ae.di(c.Pb,c.x,c.y,c.width,c.height),e=this.ae);return k.Ri(e,c.x-a.x,c.y-a.y)}k=a.ua&&!a.ua.Eg();l=c.ua&&!c.ua.Eg();k?(a.ua.tf(a.width,a.height,a.u),this.ae.Qt(a.ua)):this.ae.di(a.Pb,a.x,a.y,a.width,a.height);k=this.ae;l?(c.ua.tf(c.width,c.height,c.u),this.Ip.Qt(c.ua)):
this.Ip.di(c.Pb,c.x,c.y,c.width,c.height);e=this.Ip;l=0;for(d=k.Lc;l<d;l++)n=2*l,f=n+1,q=k.La[n],h=k.La[f],k.La[n]=b.Xa(q+a.x,h+a.y,!0),k.La[f]=b.Xa(q+a.x,h+a.y,!1);k.la();l=0;for(d=e.Lc;l<d;l++)n=2*l,f=n+1,q=e.La[n],h=e.La[f],e.La[n]=g.Xa(q+c.x,h+c.y,!0),e.La[f]=g.Xa(q+c.x,h+c.y,!1);e.la();return k.Ri(e,0,0)};var I=new xa,B=new va(0,0,0,0),Q=[];e.prototype.au=function(a,c){var b,g,l,d,n=c.Y,f=a.x,q=a.y;a.Jr(n,Q);var h=c.ua&&!c.ua.Eg();b=0;for(g=Q.length;b<g;++b)if(l=Q[b],d=l.Ga,n.cs(d,f,q)&&(I.Wg(d),
I.offset(f,q),I.as(c.Pb)))if(h)if(c.ua.tf(c.width,c.height,c.u),l.Vd){if(l.Vd.Ri(c.ua,c.x-(f+d.left),c.y-(q+d.top)))return F(Q),!0}else{if(this.ae.di(I,0,0,d.right-d.left,d.bottom-d.top),this.ae.Ri(c.ua,c.x,c.y))return F(Q),!0}else if(l.Vd){if(this.ae.di(c.Pb,0,0,c.width,c.height),l.Vd.Ri(this.ae,-(f+d.left),-(q+d.top)))return F(Q),!0}else return F(Q),!0;F(Q);return!1};e.prototype.$t=function(a,c,b,g,l){if(!l||!l.ie)return!1;l.la();B.set(ra(a,b),ra(c,g),qa(a,b),qa(c,g));if(!l.Y.bs(B))return!1;if(l.gi){l.Jr(B,
Q);var d,n,f,q=l.x,h=l.y;l=0;for(d=Q.length;l<d;++l)if(n=Q[l],f=n.Ga,B.cs(f,q,h)&&(I.Wg(f),I.offset(q,h),I.Si(a,c,b,g)))if(n.Vd){if(n.Vd.Si(q+f.left,h+f.top,a,c,b,g))return F(Q),!0}else return F(Q),!0;F(Q);return!1}if(!l.Pb.Si(a,c,b,g))return!1;if(!l.ua||l.ua.Eg())return!0;l.ua.tf(l.width,l.height,l.u);return l.ua.Si(l.x,l.y,a,c,b,g)};e.prototype.Rp=function(a,c){if(!c)return!1;var b,g,l,d,n;b=0;for(g=a.Za.length;b<g;b++)if(a.Za[b].behavior instanceof c)return!0;if(!a.M)for(b=0,g=a.Va.length;b<g;b++)for(n=
a.Va[b],l=0,d=n.Za.length;l<d;l++)if(n.Za[l].behavior instanceof c)return!0;return!1};e.prototype.Sp=function(a){return this.Rp(a,hc.jB)};e.prototype.Tp=function(a){return this.Rp(a,hc.kB)};var W=[];e.prototype.Eb=function(a){var c,b,g;a.la();this.Qr(a.A,a.Y,W);c=0;for(b=W.length;c<b;++c)if(g=W[c],g.L.solidEnabled&&this.$b(a,g))return F(W),g;F(W);return null};var U=[];e.prototype.ye=function(a,c){var b=null;c&&(b=U,F(b));a.la();this.Uy(a.A,a.Y,W);var g,l,d;g=0;for(l=W.length;g<l;++g)if(d=W[g],d.L.jumpthruEnabled&&
this.$b(a,d))if(c)b.push(d);else return F(W),d;F(W);return b};e.prototype.ad=function(a,c,b,g,l,d){g=g||50;var n=a.x,f=a.y,q,h=null,k=null;for(q=0;q<g;q++)if(a.x=n+c*q,a.y=f+b*q,a.D(),!this.$b(a,h)&&((h=this.Eb(a))&&(k=h),!h&&(l&&(d?h=this.$b(a,d)?d:null:h=this.ye(a),h&&(k=h)),!h)))return k&&this.op(a,c,b,k),!0;a.x=n;a.y=f;a.D();return!1};e.prototype.oA=function(a,c,b,g,l){g=g||50;var d=a.x,n=a.y,f;for(f=0;f<g;f++)if(a.x=d+c*f,a.y=n+b*f,a.D(),!this.$b(a,l))return;a.x=d;a.y=n;a.D()};e.prototype.op=
function(a,c,b,g){var l=2,d,n=!1;d=!1;for(var f=a.x,q=a.y;16>=l;)d=1/l,l*=2,a.x+=c*d*(n?1:-1),a.y+=b*d*(n?1:-1),a.D(),this.$b(a,g)?d=n=!0:(d=n=!1,f=a.x,q=a.y);d&&(a.x=f,a.y=q,a.D())};e.prototype.pp=function(a,c){var b=ka(c)?100:c,g=0,l=a.x,d=a.y,n=0,f=0,q=0,h=this.Eb(a);if(!h)return!0;for(;g<=b;){switch(n){case 0:f=0;q=-1;g++;break;case 1:f=1;q=-1;break;case 2:f=1;q=0;break;case 3:q=f=1;break;case 4:f=0;q=1;break;case 5:f=-1;q=1;break;case 6:f=-1;q=0;break;case 7:q=f=-1}n=(n+1)%8;a.x=A(l+f*g);a.y=
A(d+q*g);a.D();if(!this.$b(a,h)&&(h=this.Eb(a),!h))return!0}a.x=l;a.y=d;a.D();return!1};e.prototype.Zh=function(a,c){a.ie&&c.ie&&this.Vj.push([a,c])};e.prototype.jx=function(a,c){var b,g,l;b=0;for(g=this.Vj.length;b<g;b++)if(l=this.Vj[b],l[0]==a&&l[1]==c||l[0]==c&&l[1]==a)return!0;return!1};e.prototype.cr=function(a,c,b,g){var l=a.x,d=a.y,n=qa(10,Ta(c,b,l,d)),f=Na(c,b,l,d),q=g||this.Eb(a);if(!q)return Ka(f+sa);var h=q,k,e,u,z,w=H(5);for(k=1;36>k;k++)if(e=f-k*w,a.x=c+Math.cos(e)*n,a.y=b+Math.sin(e)*
n,a.D(),!this.$b(a,h)&&(h=g?null:this.Eb(a),!h)){u=e;break}36===k&&(u=Ka(f+sa));h=q;for(k=1;36>k;k++)if(e=f+k*w,a.x=c+Math.cos(e)*n,a.y=b+Math.sin(e)*n,a.D(),!this.$b(a,h)&&(h=g?null:this.Eb(a),!h)){z=e;break}36===k&&(z=Ka(f+sa));a.x=l;a.y=d;a.D();if(z===u)return z;a=Oa(z,u)/2;a=Ra(z,u)?Ka(u+a+sa):Ka(z+a);u=Math.cos(f);f=Math.sin(f);z=Math.cos(a);a=Math.sin(a);c=u*z+f*a;return Na(0,0,u-2*c*z,f-2*c*a)};var K=-1;e.prototype.trigger=function(a,c,b){if(!this.Ha)return!1;var g=this.Ha.mg;if(!g)return!1;
var l=!1,d,n,f;K++;var q=g.Pn;n=0;for(f=q.length;n<f;++n)d=this.ju(a,c,q[n],b),l=l||d;d=this.ju(a,c,g,b);K--;return l||d};e.prototype.ju=function(a,c,b,g){var l=!1,d,n,f,q;if(c)for(f=this.Pp(a,c,c.type.name,b,g),l=l||f,q=c.type.Va,d=0,n=q.length;d<n;++d)f=this.Pp(a,c,q[d].name,b,g),l=l||f;else f=this.Pp(a,c,"system",b,g),l=l||f;return l};e.prototype.Pp=function(a,c,b,g,l){var d,n=!1,f=!1,f="undefined"!==typeof l,q=(f?g.sr:g.ku)[b];if(!q)return n;var h=null;g=0;for(d=q.length;g<d;++g)if(q[g].method==
a){h=q[g].Ci;break}if(!h)return n;var k;f?k=h[l]:k=h;if(!k)return null;g=0;for(d=k.length;g<d;g++)a=k[g][0],l=k[g][1],f=this.Dy(c,b,a,l),n=n||f;return n};e.prototype.Dy=function(a,c,b,g){var l,d,n=!1;this.Qp++;var f=this.Wa().Ua;f&&this.Rj(f.Wf);var q=1<this.Qp;this.Rj(b.Wf);q&&this.nA();var h=this.qm(b);h.Ua=b;a&&(l=this.types[c].W(),l.X=!1,F(l.k),l.k[0]=a,this.types[c].Id());a=!0;if(b.parent){c=h.Zt;for(l=b.parent;l;)c.push(l),l=l.parent;c.reverse();l=0;for(d=c.length;l<d;l++)if(!c[l].zA()){a=!1;
break}}a&&(this.pg++,b.jd?b.yA(g):b.sb(),n=n||h.Jg);this.mm();q&&this.gA();this.Wd(b.Wf);f&&this.Wd(f.Wf);this.Gf&&0===this.gd&&0===K&&!this.Go&&this.cc();this.Qp--;return n};e.prototype.Ef=function(){var a=this.Wa();return a.Ua.xb[a.kb]};e.prototype.Py=function(){return this.Ef().type};e.prototype.Cz=function(){return 0===this.Wa().kb};e.prototype.Oy=function(){var a=this.Wa();return a.Ua.nd[a.ec]};e.prototype.nA=function(){this.Ul++;this.Ul>=this.Uo.length&&this.Uo.push([])};e.prototype.gA=function(){this.Ul--};
e.prototype.Kr=function(){return this.Uo[this.Ul]};e.prototype.qm=function(a){this.hl++;this.hl>=this.Tn.length&&this.Tn.push(new Tb);var c=this.Wa();c.reset(a);return c};e.prototype.mm=function(){this.hl--};e.prototype.Wa=function(){return this.Tn[this.hl]};e.prototype.Ct=function(a){this.Wl++;this.Wl>=this.Wo.length&&this.Wo.push(aa({name:a,index:0,hb:!1}));var c=this.Qy();c.name=a;c.index=0;c.hb=!1;return c};e.prototype.ut=function(){this.Wl--};e.prototype.Qy=function(){return this.Wo[this.Wl]};
e.prototype.Lr=function(a,c){for(var b,g,l,d,n,f;c;){b=0;for(g=c.zd.length;b<g;b++)if(f=c.zd[b],f instanceof Ub&&nb(a,f.name))return f;c=c.parent}b=0;for(g=this.Ge.length;b<g;b++)for(n=this.Ge[b],l=0,d=n.Bf.length;l<d;l++)if(f=n.Bf[l],f instanceof Ub&&nb(a,f.name))return f;return null};e.prototype.Or=function(a){var c,b;c=0;for(b=this.Rd.length;c<b;c++)if(this.Rd[c].ra===a)return this.Rd[c];return null};e.prototype.Hi=function(a){var c,b;c=0;for(b=this.I.length;c<b;c++)if(this.I[c].ra===a)return this.I[c];
return null};e.prototype.Ry=function(a){var c,b;c=0;for(b=this.qf.length;c<b;c++)if(this.qf[c].ra===a)return this.qf[c];return null};e.prototype.xx=function(a,c){this.gk=[a,c];this.ja=!0};e.prototype.rz=function(){var a=this,c=this.zp,b=this.Ne,g=this.Pl,l=!1;this.Vt&&(l=!0,c="__c2_continuouspreview",this.Vt=!1);if(c.length){this.cc();b=this.DA();if(r()&&!this.Pd)t(c,b,function(){ha("Saved state to IndexedDB storage ("+b.length+" bytes)");a.Ne=b;a.trigger(R.prototype.n.vn,null);a.Ne="";l&&h()},function(g){try{localStorage.setItem("__c2save_"+
c,b),ha("Saved state to WebStorage ("+b.length+" bytes)"),a.Ne=b,a.trigger(R.prototype.n.vn,null),a.Ne="",l&&h()}catch(d){ha("Failed to save game state: "+g+"; "+d),a.trigger(R.prototype.n.Bq,null)}});else try{localStorage.setItem("__c2save_"+c,b),ha("Saved state to WebStorage ("+b.length+" bytes)"),a.Ne=b,this.trigger(R.prototype.n.vn,null),a.Ne="",l&&h()}catch(d){ha("Error saving to WebStorage: "+d),a.trigger(R.prototype.n.Bq,null)}this.Pl=this.zp="";this.Db=null}if(g.length){if(r()&&!this.Pd)k(g,
function(c){c?(a.Db=c,ha("Loaded state from IndexedDB storage ("+a.Db.length+" bytes)")):(a.Db=localStorage.getItem("__c2save_"+g)||"",ha("Loaded state from WebStorage ("+a.Db.length+" bytes)"));a.ik=!1;a.Db||(a.Db=null,a.trigger(R.prototype.n.Ak,null))},function(){a.Db=localStorage.getItem("__c2save_"+g)||"";ha("Loaded state from WebStorage ("+a.Db.length+" bytes)");a.ik=!1;a.Db||(a.Db=null,a.trigger(R.prototype.n.Ak,null))});else{try{this.Db=localStorage.getItem("__c2save_"+g)||"",ha("Loaded state from WebStorage ("+
this.Db.length+" bytes)")}catch(n){this.Db=null}this.ik=!1;a.Db||(a.Db=null,a.trigger(R.prototype.n.Ak,null))}this.zp=this.Pl=""}null!==this.Db&&(this.cc(),this.Oz(this.Db)?(this.Ne=this.Db,this.trigger(R.prototype.n.Kv,null),this.Ne=""):a.trigger(R.prototype.n.Ak,null),this.Db=null)};e.prototype.DA=function(){var a,c,g,l,d,n,f,q={c2save:!0,version:1,rt:{time:this.nb.aa,walltime:this.gf.aa,timescale:this.dh,tickcount:this.Bd,execcount:this.pg,next_uid:this.Dj,running_layout:this.Ha.ra,start_time_offset:Date.now()-
this.Pm},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(c=this.I.length;a<c;a++)if(d=this.I[a],!d.M&&!this.Sp(d)){n={instances:[]};Va(d.L)&&(n.ex=b(d.L));g=0;for(l=d.k.length;g<l;g++)n.instances.push(this.yp(d.k[g]));q.types[d.ra.toString()]=n}a=0;for(c=this.Rd.length;a<c;a++)g=this.Rd[a],q.layouts[g.ra.toString()]=g.Ya();l=q.events.groups;a=0;for(c=this.qf.length;a<c;a++)g=this.qf[a],l[g.ra.toString()]=this.Li[g.Ki].wh;c=q.events.cnds;for(f in this.wf)this.wf.hasOwnProperty(f)&&
(a=this.wf[f],Va(a.L)&&(c[f]={ex:b(a.L)}));c=q.events.acts;for(f in this.of)this.of.hasOwnProperty(f)&&(a=this.of[f],Va(a.L)&&(c[f]={ex:b(a.L)}));c=q.events.vars;for(f in this.ki)this.ki.hasOwnProperty(f)&&(a=this.ki[f],a.Kl||a.parent&&!a.cj||(c[f]=a.data));q.system=this.xe.Ya();return JSON.stringify(q)};e.prototype.Dt=function(){var a,c,b,g,l,d;this.Se={};a=0;for(c=this.I.length;a<c;a++)if(b=this.I[a],!b.M)for(g=0,l=b.k.length;g<l;g++)d=b.k[g],this.Se[d.uid.toString()]=d};e.prototype.Oz=function(a){var c;
try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||1<c.version)return!1;this.Vi=!0;a=c.rt;this.nb.reset();this.nb.aa=a.time;this.gf.reset();this.gf.aa=a.walltime||0;this.dh=a.timescale;this.Bd=a.tickcount;this.pg=a.execcount;this.Pm=Date.now()-a.start_time_offset;var g=a.running_layout;if(g!==this.Ha.ra)if(g=this.Or(g))this.nr(g);else return;var l,d,n,f,q,h,k;h=c.types;for(d in h)if(h.hasOwnProperty(d)&&(f=this.Hi(parseInt(d,10)))&&!f.M&&!this.Sp(f)){h[d].ex?f.L=h[d].ex:Wa(f.L);q=f.k;n=h[d].instances;
g=0;for(l=ra(q.length,n.length);g<l;g++)this.Ql(q[g],n[g]);g=n.length;for(l=q.length;g<l;g++)this.ge(q[g]);g=q.length;for(l=n.length;g<l;g++){q=null;if(f.Ka.Hf&&(q=this.Ha.yl(n[g].w.l),!q))continue;q=this.yf(f.rd,q,!1,0,0,!0);this.Ql(q,n[g])}f.fi=!0}this.cc();this.Dt();l=c.layouts;for(d in l)l.hasOwnProperty(d)&&(g=this.Or(parseInt(d,10)))&&g.ib(l[d]);l=c.events.groups;for(d in l)l.hasOwnProperty(d)&&(g=this.Ry(parseInt(d,10)))&&this.Li[g.Ki]&&this.Li[g.Ki].Lt(l[d]);g=c.events.cnds;for(d in this.wf)this.wf.hasOwnProperty(d)&&
(g.hasOwnProperty(d)?this.wf[d].L=g[d].ex:this.wf[d].L={});g=c.events.acts;for(d in this.of)this.of.hasOwnProperty(d)&&(g.hasOwnProperty(d)?this.of[d].L=g[d].ex:this.of[d].L={});g=c.events.vars;for(d in g)g.hasOwnProperty(d)&&this.ki.hasOwnProperty(d)&&(this.ki[d].data=g[d]);this.Dj=a.next_uid;this.Vi=!1;g=0;for(l=this.ll.length;g<l;++g)q=this.ll[g],this.trigger(Object.getPrototypeOf(q.type.Ka).n.lf,q);F(this.ll);this.xe.ib(c.system);g=0;for(l=this.I.length;g<l;g++)if(f=this.I[g],!f.M&&!this.Sp(f))for(c=
0,d=f.k.length;c<d;c++){q=f.k[c];if(f.nc)for(h=q.Ji(),F(q.siblings),a=0,n=f.Rc.length;a<n;a++)k=f.Rc[a],f!==k&&q.siblings.push(k.k[h]);q.Fd&&q.Fd();if(q.S)for(a=0,n=q.S.length;a<n;a++)h=q.S[a],h.Fd&&h.Fd()}return this.ja=!0};e.prototype.yp=function(a,c){var g,l,d,n,f;n=a.type;d=n.Ka;var q={};c?q.c2=!0:q.uid=a.uid;Va(a.L)&&(q.ex=b(a.L));if(a.Bb&&a.Bb.length)for(q.ivs={},g=0,l=a.Bb.length;g<l;g++)q.ivs[a.type.Co[g].toString()]=a.Bb[g];if(d.Hf){d={x:a.x,y:a.y,w:a.width,h:a.height,l:a.A.ra,zi:a.ne()};
0!==a.u&&(d.a=a.u);1!==a.opacity&&(d.o=a.opacity);.5!==a.Gc&&(d.hX=a.Gc);.5!==a.Hc&&(d.hY=a.Hc);0!==a.fc&&(d.bm=a.fc);a.visible||(d.v=a.visible);a.ie||(d.ce=a.ie);-1!==a.Cj&&(d.mts=a.Cj);if(n.da.length)for(d.fx=[],g=0,l=n.da.length;g<l;g++)f=n.da[g],d.fx.push({name:f.name,active:a.nf[f.index],params:a.bb[f.index]});q.w=d}if(a.S&&a.S.length)for(q.behs={},g=0,l=a.S.length;g<l;g++)n=a.S[g],n.Ya&&(q.behs[n.type.ra.toString()]=n.Ya());a.Ya&&(q.data=a.Ya());return q};e.prototype.Ty=function(a,c){var b,
g;b=0;for(g=a.Co.length;b<g;b++)if(a.Co[b]===c)return b;return-1};e.prototype.Ny=function(a,c){var b,g;b=0;for(g=a.S.length;b<g;b++)if(a.S[b].type.ra===c)return b;return-1};e.prototype.Ql=function(a,c,b){var g,l,d,n,f;f=a.type;n=f.Ka;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.L=c.ex:Wa(a.L);if(l=c.ivs)for(g in l)l.hasOwnProperty(g)&&(d=this.Ty(f,parseInt(g,10)),0>d||d>=a.Bb.length||(a.Bb[d]=l[g]));if(n.Hf){d=c.w;a.A.ra!==d.l&&(l=a.A,a.A=this.Ha.yl(d.l),a.A?(l.$h(a,!0),a.A.qi(a,!0),a.D(),a.A.ak(0)):
(a.A=l,b||this.ge(a)));a.x=d.x;a.y=d.y;a.width=d.w;a.height=d.h;a.fe=d.zi;a.u=d.hasOwnProperty("a")?d.a:0;a.opacity=d.hasOwnProperty("o")?d.o:1;a.Gc=d.hasOwnProperty("hX")?d.hX:.5;a.Hc=d.hasOwnProperty("hY")?d.hY:.5;a.visible=d.hasOwnProperty("v")?d.v:!0;a.ie=d.hasOwnProperty("ce")?d.ce:!0;a.Cj=d.hasOwnProperty("mts")?d.mts:-1;a.fc=d.hasOwnProperty("bm")?d.bm:0;a.vi=kb(a.fc);this.K&&lb(a,a.fc,this.K);a.D();if(d.hasOwnProperty("fx"))for(b=0,l=d.fx.length;b<l;b++)n=f.ho(d.fx[b].name),0>n||(a.nf[n]=
d.fx[b].active,a.bb[n]=d.fx[b].params);a.ee()}if(f=c.behs)for(g in f)f.hasOwnProperty(g)&&(b=this.Ny(a,parseInt(g,10)),0>b||a.S[b].ib(f[g]));c.data&&a.ib(c.data)};e.prototype.tr=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};e.prototype.Ar=function(a,c){this.tr("data.js",function(b){var g=new FileReader;g.onload=function(c){a(c.target.result)};g.onerror=c;g.readAsText(b)},c)};var E=[],T=0;e.prototype.bp=function(){if(E.length&&
!(8<=T)){T++;var a=E.shift();this.zx(a.filename,a.OA,a.Xx)}};e.prototype.ur=function(a,c,b){var g=this;E.push({filename:a,OA:function(a){T--;g.bp();c(a)},Xx:function(a){T--;g.bp();b(a)}});this.bp()};e.prototype.zx=function(a,c,b){this.tr(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};e.prototype.Ey=function(a,c,b){this.ur(a,function(a){a=URL.createObjectURL(new Blob([a]));c(a)},b)};e.prototype.Az=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||
"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.Mt=function(a,c){this.$i&&!this.Az(c)?this.Ey(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.Cm=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Vb=function(a){return new e(document.getElementById(a))};Wb=function(a,c){return new e({dc:!0,width:a,height:c})};window.cr_createRuntime=
Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.si=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas"));
window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,m){var r=window.cr_getC2Runtime();r&&r.xx(e,m)};window.cr_sizeCanvas=function(e,m){if(0!==e&&0!==m){var r=window.cr_getC2Runtime();r&&r.setSize(e,m)}};window.cr_setSuspended=function(e){var m=window.cr_getC2Runtime();m&&m.setSuspended(e)};
(function(){function e(a,c){this.b=a;this.mg=null;this.scrollX=this.b.Sa/2;this.scrollY=this.b.Ra/2;this.scale=1;this.u=0;this.sh=!0;this.name=c[0];this.bA=c[1];this.aA=c[2];this.width=c[1];this.height=c[2];this.mu=c[3];this.Tt=c[4];this.ra=c[5];var b=c[6],l,d;this.fa=[];this.Qi=[];l=0;for(d=b.length;l<d;l++){var f=new Xb(this,b[l]);f.Ys=l;this.fa.push(f)}b=c[7];this.yg=[];l=0;for(d=b.length;l<d;l++){var f=b[l],h=this.b.I[f[1]];h.rd||(h.rd=f);this.yg.push(f);-1===this.Qi.indexOf(h)&&this.Qi.push(h)}this.da=
[];this.Da=[];this.bf=!0;this.bb=[];l=0;for(d=c[8].length;l<d;l++)this.da.push({id:c[8][l][0],name:c[8][l][1],ub:-1,Xd:!1,Ta:!0,index:l}),this.bb.push(c[8][l][2].slice(0));this.ee();this.Sf=new va(0,0,1,1);this.sp=new va(0,0,1,1);this.Qf={}}function m(a,c){return a.fe-c.fe}function r(a,c){this.ob=a;this.b=a.b;this.k=[];this.scale=1;this.u=0;this.Fe=!1;this.ef=new va(0,0,0,0);this.iu=new xa;this.Aa=this.xa=this.Ba=this.wa=0;this.eh=!1;this.jf=-1;this.Jn=0;this.name=c[0];this.index=c[1];this.ra=c[2];
this.visible=c[3];this.Kd=c[4];this.de=c[5];this.Ue=c[6];this.Ve=c[7];this.opacity=c[8];this.rl=c[9];this.md=c[10];this.yk=c[11];this.fc=c[12];this.Tx=c[13];this.vi="source-over";this.kc=this.pc=0;this.Yb=null;this.Oe=p();this.$d=!0;this.Kh=new va(0,0,-1,-1);this.Rb=new va(0,0,-1,-1);this.md&&(this.Yb=new jb(this.b.Sa,this.b.Ra));this.ve=!1;var b=c[14],l,d;this.Xt=[];this.fd=[];this.xi=[];l=0;for(d=b.length;l<d;l++){var f=b[l],h=this.b.I[f[1]];h.rd||(h.rd=f,h.tx=this.index);this.fd.push(f);-1===this.ob.Qi.indexOf(h)&&
this.ob.Qi.push(h)}Ca(this.Xt,this.fd);this.da=[];this.Da=[];this.bf=!0;this.bb=[];l=0;for(d=c[15].length;l<d;l++)this.da.push({id:c[15][l][0],name:c[15][l][1],ub:-1,Xd:!1,Ta:!0,index:l}),this.bb.push(c[15][l][2].slice(0));this.ee();this.Sf=new va(0,0,1,1);this.sp=new va(0,0,1,1)}function p(){return b.length?b.pop():[]}function t(a){F(a);b.push(a)}e.prototype.CA=function(a){var c=a.type.ra.toString();this.Qf.hasOwnProperty(c)||(this.Qf[c]=[]);this.Qf[c].push(this.b.yp(a))};e.prototype.Tr=function(){var a=
this.fa[0];return!a.de&&1===a.opacity&&!a.rl&&a.visible};e.prototype.ee=function(){F(this.Da);this.bf=!0;var a,c,b;a=0;for(c=this.da.length;a<c;a++)b=this.da[a],b.Ta&&(this.Da.push(b),b.Xd||(this.bf=!1))};e.prototype.fo=function(a){var c,b,l;c=0;for(b=this.da.length;c<b;c++)if(l=this.da[c],l.name===a)return l;return null};var k=[],h=!0;e.prototype.Hp=function(){this.Tt&&(this.mg=this.b.Un[this.Tt],this.mg.Up());this.b.Ha=this;this.width=this.bA;this.height=this.aA;this.scrollX=this.b.Sa/2;this.scrollY=
this.b.Ra/2;var a,c,b,l,d,f,e;a=0;for(b=this.b.I.length;a<b;a++)if(c=this.b.I[a],!c.M)for(d=c.k,c=0,l=d.length;c<l;c++)if(f=d[c],f.A){var n=f.A.Ys;n>=this.fa.length&&(n=this.fa.length-1);f.A=this.fa[n];-1===f.A.k.indexOf(f)&&f.A.k.push(f);f.A.eh=!0}if(!h)for(a=0,b=this.fa.length;a<b;++a)this.fa[a].k.sort(m);F(k);this.gx();a=0;for(b=this.fa.length;a<b;a++)f=this.fa[a],f.qx(),f.bn();d=!1;if(!this.sh){for(e in this.Qf)if(this.Qf.hasOwnProperty(e)&&(c=this.b.Hi(parseInt(e,10)))&&!c.M&&this.b.Tp(c)){l=
this.Qf[e];a=0;for(b=l.length;a<b;a++){f=null;if(c.Ka.Hf&&(f=this.yl(l[a].w.l),!f))continue;f=this.b.yf(c.rd,f,!1,0,0,!0);this.b.Ql(f,l[a]);d=!0;k.push(f)}F(l)}a=0;for(b=this.fa.length;a<b;a++)this.fa[a].k.sort(m),this.fa[a].eh=!0}d&&(this.b.cc(),this.b.Dt());for(a=0;a<k.length;a++)if(f=k[a],f.type.nc)for(b=f.Ji(),c=0,l=f.type.Rc.length;c<l;c++)e=f.type.Rc[c],f.type!==e&&(e.k.length>b?f.siblings.push(e.k[b]):e.rd&&(d=this.b.yf(e.rd,f.A,!0,f.x,f.y,!0),this.b.cc(),e.$m(),f.siblings.push(d),k.push(d)));
a=0;for(b=this.yg.length;a<b;a++)this.b.yf(this.yg[a],null,!0);this.b.De=null;this.b.cc();if(this.b.Pa&&!this.b.mc)for(a=0,b=this.b.I.length;a<b;a++)e=this.b.I[a],!e.M&&e.k.length&&e.Oj&&e.Oj(this.b.Pa);if(this.b.Vi)Ca(this.b.ll,k);else for(a=0,b=k.length;a<b;a++)f=k[a],this.b.trigger(Object.getPrototypeOf(f.type.Ka).n.lf,f);F(k);this.b.Vi||this.b.trigger(R.prototype.n.zq,null);this.sh=!1};e.prototype.ox=function(){var a,c,b,l,d;c=a=0;for(b=this.yg.length;a<b;a++)l=this.yg[a],d=this.b.I[l[1]],d.global?
d.nc||this.b.yf(l,null,!0):(this.yg[c]=l,c++);Ba(this.yg,c)};e.prototype.NA=function(){this.b.Vi||this.b.trigger(R.prototype.n.Jv,null);this.b.Do=!0;F(this.b.xe.ac);var a,c,b,d,f,k;if(!this.sh)for(a=0,c=this.fa.length;a<c;a++)for(this.fa[a].Xp(),f=this.fa[a].k,b=0,d=f.length;b<d;b++)k=f[b],k.type.global||this.b.Tp(k.type)&&this.CA(k);a=0;for(c=this.fa.length;a<c;a++){f=this.fa[a].k;b=0;for(d=f.length;b<d;b++)k=f[b],k.type.global||this.b.ge(k);this.b.cc();F(f);this.fa[a].eh=!0}a=0;for(c=this.b.I.length;a<
c;a++)if(f=this.b.I[a],!(f.global||f.Ka.Hf||f.Ka.Mm||f.M)){b=0;for(d=f.k.length;b<d;b++)this.b.ge(f.k[b]);this.b.cc()}h=!1;this.b.Do=!1};new va(0,0,0,0);e.prototype.Tc=function(a){var c,b=a,d=!1,f=!this.b.dd;f&&(this.b.Ol||(this.b.Ol=document.createElement("canvas"),c=this.b.Ol,c.width=this.b.U,c.height=this.b.T,this.b.zs=c.getContext("2d"),d=!0),c=this.b.Ol,b=this.b.zs,c.width!==this.b.U&&(c.width=this.b.U,d=!0),c.height!==this.b.T&&(c.height=this.b.T,d=!0),d&&this.b.Cm(b,this.b.Oa));b.globalAlpha=
1;b.globalCompositeOperation="source-over";this.b.fr&&!this.Tr()&&b.clearRect(0,0,this.b.U,this.b.T);var h,k,d=0;for(h=this.fa.length;d<h;d++)k=this.fa[d],k.visible&&0<k.opacity&&11!==k.fc&&(k.k.length||!k.de)?k.Tc(b):k.bn();f&&a.drawImage(c,0,0,this.b.width,this.b.height)};e.prototype.Af=function(a){a.Kt(!0);this.b.pb||(this.b.pb=a.Sc(this.b.U,this.b.T,this.b.Oa));if(this.b.pb.dg!==this.b.U||this.b.pb.bg!==this.b.T)a.deleteTexture(this.b.pb),this.b.pb=a.Sc(this.b.U,this.b.T,this.b.Oa);a.xd(this.b.pb);
this.b.dd||a.$e(this.b.U,this.b.T);var c,b;for(c=this.fa.length-1;0<=c;--c)b=this.fa[c],b.visible&&1===b.opacity&&b.bf&&0===b.fc&&(b.k.length||!b.de)?b.Af(a):b.bn();a.Kt(!1)};e.prototype.Kb=function(a){var c=0<this.Da.length||this.b.hi||!this.b.dd||this.b.Ma;if(c){this.b.pb||(this.b.pb=a.Sc(this.b.U,this.b.T,this.b.Oa));if(this.b.pb.dg!==this.b.U||this.b.pb.bg!==this.b.T)a.deleteTexture(this.b.pb),this.b.pb=a.Sc(this.b.U,this.b.T,this.b.Oa);a.xd(this.b.pb);this.b.dd||a.$e(this.b.U,this.b.T)}else this.b.pb&&
(a.xd(null),a.deleteTexture(this.b.pb),this.b.pb=null);this.b.fr&&!this.Tr()&&a.clear(0,0,0,0);var b,d,f;b=0;for(d=this.fa.length;b<d;b++)f=this.fa[b],f.visible&&0<f.opacity&&(f.k.length||!f.de)?f.Kb(a):f.bn();c&&(0===this.Da.length||1===this.Da.length&&this.b.dd?(1===this.Da.length?(c=this.Da[0].index,a.Oc(this.Da[0].ub),a.ci(null,1/this.b.U,1/this.b.T,0,0,1,1,this.scale,this.u,0,0,this.b.U/2,this.b.T/2,this.b.nb.aa,this.bb[c]),a.pm(this.Da[0].ub)&&(this.b.ja=!0)):a.Oc(0),this.b.dd||a.$e(this.b.width,
this.b.height),a.xd(null),a.Jt(!1),a.Ze(1),a.Bc(this.b.pb),a.Ht(),a.wd(),a.ld(),c=this.b.width/2,b=this.b.height/2,a.Yh(-c,b,c,b,c,-b,-c,-b),a.Bc(null),a.Jt(!0)):this.tp(a,null,null,null))};e.prototype.Ii=function(){return 0<this.Da.length||this.b.hi||!this.b.dd||this.b.Ma?this.b.pb:null};e.prototype.Pr=function(){var a=this.fa[0].Fc(),c,b,d;c=1;for(b=this.fa.length;c<b;c++)d=this.fa[c],(0!==d.Ue||0!==d.Ve)&&d.Fc()<a&&(a=d.Fc());return a};e.prototype.Ap=function(a){if(!this.mu){var c=1/this.Pr()*
this.b.U/2;a>this.width-c&&(a=this.width-c);a<c&&(a=c)}this.scrollX!==a&&(this.scrollX=a,this.b.ja=!0)};e.prototype.Bp=function(a){if(!this.mu){var c=1/this.Pr()*this.b.T/2;a>this.height-c&&(a=this.height-c);a<c&&(a=c)}this.scrollY!==a&&(this.scrollY=a,this.b.ja=!0)};e.prototype.gx=function(){this.Ap(this.scrollX);this.Bp(this.scrollY)};e.prototype.tp=function(a,c,b,d){var f=b?b.Da:c?c.Da:this.Da,h=1,k=0,n=0,q=0,e=this.b.U,m=this.b.T;b?(h=b.A.Fc(),k=b.A.cb(),n=b.A.wa,q=b.A.xa,e=b.A.Ba,m=b.A.Aa):c&&
(h=c.Fc(),k=c.cb(),n=c.wa,q=c.xa,e=c.Ba,m=c.Aa);var p=this.b.bo,w,r,t,C,I=0,B=1,Q,W,U=this.b.U,K=this.b.T,E=U/2,T=K/2,x=c?c.Sf:this.Sf,y=c?c.sp:this.sp,L=0,O=0,G=0,J=0,P=U,X=U,M=K,ja=K,ea=t=0;C=b?b.A.cb():0;if(b){w=0;for(r=f.length;w<r;w++)t+=a.Yy(f[w].ub),ea+=a.Zy(f[w].ub);J=b.Y;L=c.Xa(J.left,J.top,!0,!0);G=c.Xa(J.left,J.top,!1,!0);P=c.Xa(J.right,J.bottom,!0,!0);M=c.Xa(J.right,J.bottom,!1,!0);0!==C&&(w=c.Xa(J.right,J.top,!0,!0),r=c.Xa(J.right,J.top,!1,!0),O=c.Xa(J.left,J.bottom,!0,!0),J=c.Xa(J.left,
J.bottom,!1,!0),C=Math.min(L,P,w,O),P=Math.max(L,P,w,O),L=C,C=Math.min(G,M,r,J),M=Math.max(G,M,r,J),G=C);L-=t;G-=ea;P+=t;M+=ea;y.left=L/U;y.top=1-G/K;y.right=P/U;y.bottom=1-M/K;O=L=A(L);J=G=A(G);X=P=ta(P);ja=M=ta(M);O-=t;J-=ea;X+=t;ja+=ea;0>L&&(L=0);0>G&&(G=0);P>U&&(P=U);M>K&&(M=K);0>O&&(O=0);0>J&&(J=0);X>U&&(X=U);ja>K&&(ja=K);x.left=L/U;x.top=1-G/K;x.right=P/U;x.bottom=1-M/K}else x.left=y.left=0,x.top=y.top=0,x.right=y.right=1,x.bottom=y.bottom=1;ea=b&&(a.Pj(f[0].ub)||0!==t||0!==ea||1!==b.opacity||
b.type.Ka.Us)||c&&!b&&1!==c.opacity;a.Ht();if(ea){p[I]||(p[I]=a.Sc(U,K,this.b.Oa));if(p[I].dg!==U||p[I].bg!==K)a.deleteTexture(p[I]),p[I]=a.Sc(U,K,this.b.Oa);a.Oc(0);a.xd(p[I]);W=ja-J;a.clearRect(O,K-J-W,X-O,W);b?b.Kb(a):(a.Bc(this.b.Cb),a.Ze(c.opacity),a.wd(),a.translate(-E,-T),a.ld(),a.Zd(L,M,P,M,P,G,L,G,x));y.left=y.top=0;y.right=y.bottom=1;b&&(C=x.top,x.top=x.bottom,x.bottom=C);I=1;B=0}a.Ze(1);t=f.length-1;var za=a.np(f[t].ub)||!c&&!b&&!this.b.dd;w=C=0;for(r=f.length;w<r;w++){p[I]||(p[I]=a.Sc(U,
K,this.b.Oa));if(p[I].dg!==U||p[I].bg!==K)a.deleteTexture(p[I]),p[I]=a.Sc(U,K,this.b.Oa);a.Oc(f[w].ub);C=f[w].index;a.pm(f[w].ub)&&(this.b.ja=!0);0!=w||ea?(a.ci(d,1/U,1/K,y.left,y.top,y.right,y.bottom,h,k,n,q,(n+e)/2,(q+m)/2,this.b.nb.aa,b?b.bb[C]:c?c.bb[C]:this.bb[C]),a.Bc(null),w!==t||za?(a.xd(p[I]),W=ja-J,Q=K-J-W,a.clearRect(O,Q,X-O,W)):(b?a.Vf(b.pc,b.kc):c&&a.Vf(c.pc,c.kc),a.xd(d)),a.Bc(p[B]),a.wd(),a.translate(-E,-T),a.ld(),a.Zd(L,M,P,M,P,G,L,G,x),w!==t||za||a.Bc(null)):(a.xd(p[I]),W=ja-J,Q=
K-J-W,a.clearRect(O,Q,X-O,W),b?(b.Jb&&b.Jb.N?(Q=b.Jb.N,B=1/Q.width,Q=1/Q.height):(B=1/b.width,Q=1/b.height),a.ci(d,B,Q,y.left,y.top,y.right,y.bottom,h,k,n,q,(n+e)/2,(q+m)/2,this.b.nb.aa,b.bb[C]),b.Kb(a)):(a.ci(d,1/U,1/K,0,0,1,1,h,k,n,q,(n+e)/2,(q+m)/2,this.b.nb.aa,c?c.bb[C]:this.bb[C]),a.Bc(c?this.b.Cb:this.b.pb),a.wd(),a.translate(-E,-T),a.ld(),a.Zd(L,M,P,M,P,G,L,G,x)),y.left=y.top=0,y.right=y.bottom=1,b&&!za&&(C=M,M=G,G=C));I=0===I?1:0;B=0===I?1:0}za&&(a.Oc(0),b?a.Vf(b.pc,b.kc):c?a.Vf(c.pc,c.kc):
this.b.dd||(a.$e(this.b.width,this.b.height),E=this.b.width/2,T=this.b.height/2,G=L=0,P=this.b.width,M=this.b.height),a.xd(d),a.Bc(p[B]),a.wd(),a.translate(-E,-T),a.ld(),b&&1===f.length&&!ea?a.Zd(L,G,P,G,P,M,L,M,x):a.Zd(L,M,P,M,P,G,L,G,x),a.Bc(null))};e.prototype.yl=function(a){var c,b;c=0;for(b=this.fa.length;c<b;c++)if(this.fa[c].ra===a)return this.fa[c];return null};e.prototype.Ya=function(){var a,c,b,d={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.u,w:this.width,h:this.height,fv:this.sh,
persist:this.Qf,fx:[],layers:{}};a=0;for(c=this.da.length;a<c;a++)b=this.da[a],d.fx.push({name:b.name,active:b.Ta,params:this.bb[b.index]});a=0;for(c=this.fa.length;a<c;a++)b=this.fa[a],d.layers[b.ra.toString()]=b.Ya();return d};e.prototype.ib=function(a){var c,b,d,f;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.u=a.a;this.width=a.w;this.height=a.h;this.Qf=a.persist;"undefined"!==typeof a.fv&&(this.sh=a.fv);var h=a.fx;c=0;for(b=h.length;c<b;c++)if(d=this.fo(h[c].name))d.Ta=h[c].active,this.bb[d.index]=
h[c].params;this.ee();c=a.layers;for(f in c)c.hasOwnProperty(f)&&(a=this.yl(parseInt(f,10)))&&a.ib(c[f])};Jb=e;r.prototype.ee=function(){F(this.Da);this.bf=!0;var a,c,b;a=0;for(c=this.da.length;a<c;a++)b=this.da[a],b.Ta&&(this.Da.push(b),b.Xd||(this.bf=!1))};r.prototype.fo=function(a){var c,b,d;c=0;for(b=this.da.length;c<b;c++)if(d=this.da[c],d.name===a)return d;return null};r.prototype.qx=function(){var a,c,b,d,f,h;c=a=0;for(b=this.fd.length;a<b;a++){d=this.fd[a];f=this.b.I[d[1]];h=this.b.Tp(f);
f=!0;if(!h||this.ob.sh){d=this.b.yf(d,this,!0);if(!d)continue;k.push(d);d.type.global&&(f=!1,this.xi.push(d.uid))}f&&(this.fd[c]=this.fd[a],c++)}this.fd.length=c;this.b.cc();!this.b.H&&this.da.length&&(this.fc=this.Tx);this.vi=kb(this.fc);this.b.K&&lb(this,this.fc,this.b.K);this.$d=!0};r.prototype.$h=function(a,c){var b=Ea(this.k,a);0>b||(c&&this.md&&a.Mc&&a.Mc.right>=a.Mc.left&&(a.la(),this.Yb.update(a,a.Mc,null),a.Mc.set(0,0,-1,-1)),b===this.k.length-1?this.k.pop():(Aa(this.k,b),this.ak(b)),this.$d=
!0)};r.prototype.qi=function(a,c){a.fe=this.k.length;this.k.push(a);c&&this.md&&a.Mc&&a.D();this.$d=!0};r.prototype.kA=function(a){this.k.unshift(a);this.ak(0)};r.prototype.Uz=function(a,c,b){var d=a.ne();c=c.ne();Aa(this.k,d);d<c&&c--;b&&c++;c===this.k.length?this.k.push(a):this.k.splice(c,0,a);this.ak(d<c?d:c)};r.prototype.ak=function(a){-1===this.jf?this.jf=a:a<this.jf&&(this.jf=a);this.$d=this.eh=!0};r.prototype.Xp=function(){if(this.eh){-1===this.jf&&(this.jf=0);var a,c,b;if(this.md)for(a=this.jf,
c=this.k.length;a<c;++a)b=this.k[a],b.fe=a,this.Yb.Qz(b.Mc);else for(a=this.jf,c=this.k.length;a<c;++a)this.k[a].fe=a;this.eh=!1;this.jf=-1}};r.prototype.Fc=function(a){return this.Vy()*(this.b.dd||a?this.b.ri:1)};r.prototype.Vy=function(){return(this.scale*this.ob.scale-1)*this.yk+1};r.prototype.cb=function(){return this.Fe?0:Ka(this.ob.u+this.u)};var b=[],d=[],f=[];r.prototype.lo=function(){this.Xp();this.Yb.rm(this.wa,this.xa,this.Ba,this.Aa,f);if(!f.length)return p();if(1===f.length){var a=p();
Ca(a,f[0]);F(f);return a}for(var c=!0;1<f.length;){for(var a=f,b=void 0,l=void 0,h=void 0,k=void 0,e=void 0,b=0,l=a.length;b<l-1;b+=2){var h=a[b],k=a[b+1],e=p(),n=h,q=k,m=e,r=0,v=0,w=0,D=n.length,S=q.length,C=void 0,I=void 0;for(m.length=D+S;r<D&&v<S;++w)C=n[r],I=q[v],C.fe<I.fe?(m[w]=C,++r):(m[w]=I,++v);for(;r<D;++r,++w)m[w]=n[r];for(;v<S;++v,++w)m[w]=q[v];c||(t(h),t(k));d.push(e)}1===l%2&&(c?(h=p(),Ca(h,a[l-1]),d.push(h)):d.push(a[l-1]));Ca(a,d);F(d);c=!1}a=f[0];F(f);return a};r.prototype.Tc=function(a){this.ve=
this.rl||1!==this.opacity||0!==this.fc;var c=this.b.canvas,b=a,d=!1;this.ve&&(this.b.Nl||(this.b.Nl=document.createElement("canvas"),c=this.b.Nl,c.width=this.b.U,c.height=this.b.T,this.b.ys=c.getContext("2d"),d=!0),c=this.b.Nl,b=this.b.ys,c.width!==this.b.U&&(c.width=this.b.U,d=!0),c.height!==this.b.T&&(c.height=this.b.T,d=!0),d&&this.b.Cm(b,this.b.Oa),this.de&&b.clearRect(0,0,this.b.U,this.b.T));b.globalAlpha=1;b.globalCompositeOperation="source-over";this.de||(b.fillStyle="rgb("+this.Kd[0]+","+
this.Kd[1]+","+this.Kd[2]+")",b.fillRect(0,0,this.b.U,this.b.T));b.save();this.Fe=!0;var d=this.vf(!0),f=this.vf(!1);this.Fe=!1;this.b.Kc&&(d=Math.round(d),f=Math.round(f));this.wm(d,f,b);var h=this.Fc();b.scale(h,h);b.translate(-d,-f);this.md?(this.Rb.left=this.Yb.Dc(this.wa),this.Rb.top=this.Yb.Ec(this.xa),this.Rb.right=this.Yb.Dc(this.Ba),this.Rb.bottom=this.Yb.Ec(this.Aa),this.$d||!this.Rb.Bi(this.Kh)?(t(this.Oe),d=this.lo(),this.$d=!1,this.Kh.jh(this.Rb)):d=this.Oe):d=this.k;for(var k,n=null,
f=0,h=d.length;f<h;++f)k=d[f],k!==n&&(this.Ox(k,b),n=k);this.md&&(this.Oe=d);b.restore();this.ve&&(a.globalCompositeOperation=this.vi,a.globalAlpha=this.opacity,a.drawImage(c,0,0))};r.prototype.Ox=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.la();var b=a.Y;b.right<this.wa||b.bottom<this.xa||b.left>this.Ba||b.top>this.Aa||(c.globalCompositeOperation=a.vi,a.Tc(c))}};r.prototype.bn=function(){this.Fe=!0;var a=this.vf(!0),c=this.vf(!1);this.Fe=!1;this.b.Kc&&(a=Math.round(a),c=Math.round(c));
this.wm(a,c,null)};r.prototype.wm=function(a,c,b){var d=this.Fc();this.wa=a;this.xa=c;this.Ba=a+1/d*this.b.U;this.Aa=c+1/d*this.b.T;this.wa>this.Ba&&(a=this.wa,this.wa=this.Ba,this.Ba=a);this.xa>this.Aa&&(a=this.xa,this.xa=this.Aa,this.Aa=a);a=this.cb();0!==a&&(b&&(b.translate(this.b.U/2,this.b.T/2),b.rotate(-a),b.translate(this.b.U/-2,this.b.T/-2)),this.ef.set(this.wa,this.xa,this.Ba,this.Aa),this.ef.offset((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2),this.iu.Rt(this.ef,a),this.iu.Yq(this.ef),this.ef.offset((this.wa+
this.Ba)/2,(this.xa+this.Aa)/2),this.wa=this.ef.left,this.xa=this.ef.top,this.Ba=this.ef.right,this.Aa=this.ef.bottom)};r.prototype.Af=function(a){if(this.ve=this.rl){this.b.Cb||(this.b.Cb=a.Sc(this.b.U,this.b.T,this.b.Oa));if(this.b.Cb.dg!==this.b.U||this.b.Cb.bg!==this.b.T)a.deleteTexture(this.b.Cb),this.b.Cb=a.Sc(this.b.U,this.b.T,this.b.Oa);a.xd(this.b.Cb)}this.Fe=!0;var c=this.vf(!0),b=this.vf(!1);this.Fe=!1;this.b.Kc&&(c=Math.round(c),b=Math.round(b));this.wm(c,b,null);c=this.Fc();a.wd();a.scale(c,
c);a.xm(-this.cb());a.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2);a.ld();this.md?(this.Rb.left=this.Yb.Dc(this.wa),this.Rb.top=this.Yb.Ec(this.xa),this.Rb.right=this.Yb.Dc(this.Ba),this.Rb.bottom=this.Yb.Ec(this.Aa),this.$d||!this.Rb.Bi(this.Kh)?(t(this.Oe),c=this.lo(),this.$d=!1,this.Kh.jh(this.Rb)):c=this.Oe):c=this.k;for(var d,f=null,b=c.length-1;0<=b;--b)d=c[b],d!==f&&(this.Qx(c[b],a),f=d);this.md&&(this.Oe=c);this.de||(this.Jn=this.b.kg++,a.Dm(this.Jn),a.It(1,1,1),a.Gr(),a.uA())};r.prototype.Kb=
function(a){var c=0,b=0;if(this.ve=this.rl||1!==this.opacity||0<this.Da.length||0!==this.fc){this.b.Cb||(this.b.Cb=a.Sc(this.b.U,this.b.T,this.b.Oa));if(this.b.Cb.dg!==this.b.U||this.b.Cb.bg!==this.b.T)a.deleteTexture(this.b.Cb),this.b.Cb=a.Sc(this.b.U,this.b.T,this.b.Oa);a.xd(this.b.Cb);this.de&&a.clear(0,0,0,0)}this.de||(this.b.Ma?(a.Dm(this.Jn),a.It(this.Kd[0]/255,this.Kd[1]/255,this.Kd[2]/255),a.Gr(),a.IA()):a.clear(this.Kd[0]/255,this.Kd[1]/255,this.Kd[2]/255,1));this.Fe=!0;var d=this.vf(!0),
c=this.vf(!1);this.Fe=!1;this.b.Kc&&(d=Math.round(d),c=Math.round(c));this.wm(d,c,null);d=this.Fc();a.wd();a.scale(d,d);a.xm(-this.cb());a.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2);a.ld();this.md?(this.Rb.left=this.Yb.Dc(this.wa),this.Rb.top=this.Yb.Ec(this.xa),this.Rb.right=this.Yb.Dc(this.Ba),this.Rb.bottom=this.Yb.Ec(this.Aa),this.$d||!this.Rb.Bi(this.Kh)?(t(this.Oe),c=this.lo(),this.$d=!1,this.Kh.jh(this.Rb)):c=this.Oe):c=this.k;var f,h,k=null,b=0;for(f=c.length;b<f;++b)h=c[b],h!==
k&&(this.Px(c[b],a),k=h);this.md&&(this.Oe=c);this.ve&&(c=this.Da.length?this.Da[0].ub:0,b=this.Da.length?this.Da[0].index:0,0===this.Da.length||1===this.Da.length&&!a.np(c)&&1===this.opacity?(1===this.Da.length?(a.Oc(c),a.ci(this.ob.Ii(),1/this.b.U,1/this.b.T,0,0,1,1,d,this.cb(),this.wa,this.xa,(this.wa+this.Ba)/2,(this.xa+this.Aa)/2,this.b.nb.aa,this.bb[b]),a.pm(c)&&(this.b.ja=!0)):a.Oc(0),a.xd(this.ob.Ii()),a.Ze(this.opacity),a.Bc(this.b.Cb),a.Vf(this.pc,this.kc),a.wd(),a.ld(),d=this.b.U/2,c=this.b.T/
2,a.Yh(-d,c,d,c,d,-c,-d,-c),a.Bc(null)):this.ob.tp(a,this,null,this.ob.Ii()))};r.prototype.Px=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.la();var b=a.Y;b.right<this.wa||b.bottom<this.xa||b.left>this.Ba||b.top>this.Aa||(c.Dm(a.kg),a.uu?this.Rx(a,c):(c.Oc(0),c.Vf(a.pc,a.kc),a.Kb(c)))}};r.prototype.Qx=function(a,c){if(a.visible&&0!==a.width&&0!==a.height){a.la();var b=a.Y;b.right<this.wa||b.bottom<this.xa||b.left>this.Ba||b.top>this.Aa||(a.kg=this.b.kg++,0===a.fc&&1===a.opacity&&a.bf&&
a.Af&&(c.Dm(a.kg),a.Af(c)))}};r.prototype.Rx=function(a,c){var b=a.Da[0].ub,d=a.Da[0].index,f=this.Fc();if(1!==a.Da.length||c.np(b)||c.mA(b)||(a.u||a.A.cb())&&c.Pj(b)||1!==a.opacity||a.type.Ka.Us)this.ob.tp(c,this,a,this.ve?this.b.Cb:this.ob.Ii()),c.wd(),c.scale(f,f),c.xm(-this.cb()),c.translate((this.wa+this.Ba)/-2,(this.xa+this.Aa)/-2),c.ld();else{c.Oc(b);c.Vf(a.pc,a.kc);c.pm(b)&&(this.b.ja=!0);var h=0,k=0,n=0,q=0;c.Pj(b)&&(q=a.Y,h=this.Xa(q.left,q.top,!0,!0),k=this.Xa(q.left,q.top,!1,!0),n=this.Xa(q.right,
q.bottom,!0,!0),q=this.Xa(q.right,q.bottom,!1,!0),h=h/windowWidth,k=1-k/windowHeight,n=n/windowWidth,q=1-q/windowHeight);var e;a.Jb&&a.Jb.N?(e=a.Jb.N,b=1/e.width,e=1/e.height):(b=1/a.width,e=1/a.height);c.ci(this.ve?this.b.Cb:this.ob.Ii(),b,e,h,k,n,q,f,this.cb(),this.wa,this.xa,(this.wa+this.Ba)/2,(this.xa+this.Aa)/2,this.b.nb.aa,a.bb[d]);a.Kb(c)}};r.prototype.vf=function(a){var c=0,b=0,d=this.b.devicePixelRatio;this.b.Cg&&(c*=d,b*=d);var d=this.b.nt,f=this.b.ot,d=(this.ob.scrollX-d)*this.Ue+d,f=
(this.ob.scrollY-f)*this.Ve+f,h,k,n=1/this.Fc(!1);h=d-this.b.U*n/2;k=f-this.b.T*n/2;h+=c*n;k+=b*n;b=this.cb();0!==b&&(h-=d,k-=f,c=Math.cos(b),b=Math.sin(b),n=h*c-k*b,k=k*c+h*b,h=n+d,k+=f);return a?h:k};r.prototype.Xa=function(a,b,d,f){var h=this.b.nt,k=this.b.ot,e=(this.ob.scrollX-h)*this.Ue+h,n=(this.ob.scrollY-k)*this.Ve+k,k=e,h=n,q=this.cb();if(0!==q){a-=e;b-=n;var m=Math.cos(-q),q=Math.sin(-q),p=a*m-b*q;b=b*m+a*q;a=p+e;b+=n}e=1/this.Fc(!f);f?(k-=this.b.U*e/2,h-=this.b.T*e/2):(k-=this.b.width*
e/2,h-=this.b.height*e/2);k=(a-k)/e;h=(b-h)/e;a=this.b.devicePixelRatio;this.b.Cg&&!f&&(k/=a,h/=a);return d?k:h};r.prototype.Ya=function(){var a,b,d,f={s:this.scale,a:this.u,vl:this.wa,vt:this.xa,vr:this.Ba,vb:this.Aa,v:this.visible,bc:this.Kd,t:this.de,px:this.Ue,py:this.Ve,o:this.opacity,zr:this.yk,fx:[],cg:this.xi,instances:[]};a=0;for(b=this.da.length;a<b;a++)d=this.da[a],f.fx.push({name:d.name,active:d.Ta,params:this.bb[d.index]});return f};r.prototype.ib=function(a){var b,d,f;this.scale=a.s;
this.u=a.a;this.wa=a.vl;this.xa=a.vt;this.Ba=a.vr;this.Aa=a.vb;this.visible=a.v;this.Kd=a.bc;this.de=a.t;this.Ue=a.px;this.Ve=a.py;this.opacity=a.o;this.yk=a.zr;this.xi=a.cg||[];Ca(this.fd,this.Xt);var h=new fa;b=0;for(f=this.xi.length;b<f;++b)h.add(this.xi[b]);d=b=0;for(f=this.fd.length;b<f;++b)h.contains(this.fd[b][2])||(this.fd[d]=this.fd[b],++d);Ba(this.fd,d);d=a.fx;b=0;for(f=d.length;b<f;b++)if(a=this.fo(d[b].name))a.Ta=d[b].active,this.bb[a.index]=d[b].params;this.ee();this.k.sort(m);this.eh=
!0};Xb=r})();
(function(){function e(a,b){var c,d=a.length;switch(d){case 0:return!0;case 1:return a[0]===b[0];case 2:return a[0]===b[0]&&a[1]===b[1];default:for(c=0;c<d;c++)if(a[c]!==b[c])return!1;return!0}}function m(a,b){return a.index-b.index}function r(a){var b,c,d,g;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(m);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);g=u[a.length];b=0;for(c=g.length;b<c;b++)if(d=g[b],e(a,d))return d;g.push(a);return a}
function p(a,b){this.b=a;this.ku={};this.sr={};this.uo=!1;this.Wr=new fa;this.Pn=[];this.An=[];this.name=b[0];var c=b[1];this.Bf=[];var d,g;d=0;for(g=c.length;d<g;d++)this.Yr(c[d],null,this.Bf)}function t(a){this.type=a;this.k=[];this.Z=[];this.X=!0}function k(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.Wf=[];this.Ur=this.Xm=this.Op=this.Fl=this.group=this.Ep=!1;this.xb=[];this.nd=[];this.zd=[];this.Ki="";this.wh=this.Fl=this.group=!1;this.Vk=null;c[1]&&(this.Ki=c[1][1].toLowerCase(),
this.group=!0,this.Fl=!!c[1][0],this.Vk=[],this.wh=this.Fl,this.b.qf.push(this),this.b.Li[this.Ki]=this);this.jd=c[2];this.ra=c[4];this.group||(this.b.Wq[this.ra.toString()]=this);var d=c[5];a=0;for(b=d.length;a<b;a++){var g=new Yb(this,d[a]);g.index=a;this.xb.push(g);this.Oq(g.type)}d=c[6];a=0;for(b=d.length;a<b;a++)g=new Zb(this,d[a]),g.index=a,this.nd.push(g);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.Yr(c[a],this,this.zd);this.Ll=!1;this.xb.length&&(this.Ll=null==this.xb[0].type&&
this.xb[0].Sb==R.prototype.n.kq)}function h(a,b){var c,d,g;if(a&&(-1===b.indexOf(a)&&b.push(a),a.nc))for(c=0,d=a.Rc.length;c<d;c++)g=a.Rc[c],a!==g&&-1===b.indexOf(g)&&b.push(g)}function b(a,b){this.cd=a;this.sheet=a.sheet;this.b=a.b;this.na=[];this.fb=[];this.L={};this.index=-1;this.oi=!1;this.Sb=this.b.kf(b[1]);this.trigger=0<b[3];this.rr=2===b[3];this.pe=b[4];this.zg=b[5];this.Lz=b[6];this.ra=b[7];this.b.wf[this.ra.toString()]=this;-1===b[0]?(this.type=null,this.sb=this.xp,this.ag=null,this.Md=
-1):(this.type=this.b.I[b[0]],this.sb=this.Lz?this.AA:this.wp,b[2]?(this.ag=this.type.ul(b[2]),this.Md=this.type.co(b[2])):(this.ag=null,this.Md=-1),this.cd.parent&&this.cd.parent.Fm());this.rr&&(this.sb=this.BA);if(10===b.length){var c,d,g=b[9];c=0;for(d=g.length;c<d;c++){var f=new $b(this,g[c]);this.na.push(f)}this.fb.length=g.length}}function d(a,b){this.cd=a;this.sheet=a.sheet;this.b=a.b;this.na=[];this.fb=[];this.L={};this.index=-1;this.oi=!1;this.Sb=this.b.kf(b[1]);-1===b[0]?(this.type=null,
this.sb=this.xp,this.ag=null,this.Md=-1):(this.type=this.b.I[b[0]],this.sb=this.wp,b[2]?(this.ag=this.type.ul(b[2]),this.Md=this.type.co(b[2])):(this.ag=null,this.Md=-1));this.ra=b[3];this.b.of[this.ra.toString()]=this;if(6===b.length){var c,d,g=b[5];c=0;for(d=g.length;c<d;c++){var f=new $b(this,g[c]);this.na.push(f)}this.fb.length=g.length}}function f(){z++;N.length===z&&N.push(new ac);return N[z]}function a(a,b){this.Qa=a;this.cd=a.cd;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.le=null;this.cf=
0;this.get=null;this.hr=0;this.ob=null;this.key=0;this.object=null;this.index=0;this.rk=this.Zg=this.rk=this.Zg=this.Br=this.ng=this.sk=null;this.Dd=!1;var c,d,g;switch(b[0]){case 0:case 7:this.le=new bc(this,b[1]);this.cf=0;this.get=this.fz;break;case 1:this.le=new bc(this,b[1]);this.cf=0;this.get=this.gz;break;case 5:this.le=new bc(this,b[1]);this.cf=0;this.get=this.kz;break;case 3:case 8:this.hr=b[1];this.get=this.dz;break;case 6:this.ob=this.b.Lh[b[1]];this.get=this.lz;break;case 9:this.key=b[1];
this.get=this.jz;break;case 4:this.object=this.b.I[b[1]];this.get=this.mz;this.cd.Oq(this.object);this.Qa instanceof Zb?this.cd.Fm():this.cd.parent&&this.cd.parent.Fm();break;case 10:this.index=b[1];a.type&&a.type.M?(this.get=this.hz,this.Dd=!0):this.get=this.iz;break;case 11:this.sk=b[1];this.ng=null;this.get=this.ez;break;case 2:case 12:this.Br=b[1];this.get=this.cz;break;case 13:for(this.get=this.nz,this.Zg=[],this.rk=[],c=1,d=b.length;c<d;c++)g=new $b(this.Qa,b[c]),this.Zg.push(g),this.rk.push(0)}}
function c(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.name=c[1];this.wu=c[2];this.xo=c[3];this.cj=!!c[4];this.Kl=!!c[5];this.ra=c[6];this.b.ki[this.ra.toString()]=this;this.data=this.xo;this.parent?(this.Ng=this.cj||this.Kl?-1:this.b.LA++,this.b.Yw.push(this)):(this.Ng=-1,this.b.Xw.push(this))}function g(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ka=[];this.Pi=null;this.xz=c[1];this.Ta=!0}function l(){this.Zt=[];this.reset(null)}var u=[];p.prototype.toString=function(){return this.name};
p.prototype.Yr=function(a,b,c){switch(a[0]){case 0:a=new cc(this,b,a);if(a.jd)for(c.push(a),c=0,b=a.xb.length;c<b;c++)a.xb[c].trigger&&this.Zr(a,c);else a.qs()?this.Zr(a,0):c.push(a);break;case 1:a=new Ub(this,b,a);c.push(a);break;case 2:a=new dc(this,b,a),c.push(a)}};p.prototype.jb=function(){var a,b;a=0;for(b=this.Bf.length;a<b;a++)this.Bf[a].jb(a<b-1&&this.Bf[a+1].Ll)};p.prototype.Up=function(){F(this.Pn);F(this.An);this.Nq(this);F(this.An)};p.prototype.Nq=function(a){var b,c,d,g,f=a.Pn,l=a.An,
h=this.Wr.Cd();b=0;for(c=h.length;b<c;++b)d=h[b],g=d.Pi,!d.Ta||a===g||-1<l.indexOf(g)||(l.push(g),g.Nq(a),f.push(g))};p.prototype.sb=function(a){this.b.IB||(this.uo=!0,a||(this.b.Go=!0));var b,c;b=0;for(c=this.Bf.length;b<c;b++){var d=this.Bf[b];d.sb();this.b.In(d.ka);this.b.Gf&&this.b.cc()}a||(this.b.Go=!1)};p.prototype.Zr=function(a,b){a.jd||this.b.Zm.push(a);var c,d,g=a.xb[b],f;g.type?f=g.type.name:f="system";var l=(c=g.rr)?this.sr:this.ku;l[f]||(l[f]=[]);f=l[f];l=g.Sb;if(c){if(g.na.length&&(g=
g.na[0],1===g.type&&2===g.le.type)){g=g.le.value.toLowerCase();c=0;for(d=f.length;c<d;c++)if(f[c].method==l){c=f[c].Ci;c[g]?c[g].push([a,b]):c[g]=[[a,b]];return}c={};c[g]=[[a,b]];f.push({method:l,Ci:c})}}else{c=0;for(d=f.length;c<d;c++)if(f[c].method==l){f[c].Ci.push([a,b]);return}V&&l===V.prototype.n.Zf?f.unshift({method:l,Ci:[[a,b]]}):f.push({method:l,Ci:[[a,b]]})}};Kb=p;t.prototype.so=function(){return this.X?this.type.k.length:this.k.length};t.prototype.lc=function(){return this.X?this.type.k:
this.k};t.prototype.Mj=function(a){a&&(a.b.Wa().Ua.jd?(this.X&&(F(this.k),Ca(this.Z,a.type.k),this.X=!1),a=this.Z.indexOf(a),-1!==a&&(this.k.push(this.Z[a]),this.Z.splice(a,1))):(this.X=!1,F(this.k),this.k[0]=a))};rb=t;window._c2hh_="4B148B5FCCC36ADFC10362F58B8FF4F197E36FF3";k.prototype.jb=function(a){var b,c=this.parent;if(this.group)for(this.Xm=!0;c;){if(!c.group){this.Xm=!1;break}c=c.parent}this.Op=!this.qs()&&(!this.parent||this.parent.group&&this.parent.Xm);this.Ur=!!a;this.Wf=this.ka.slice(0);
for(c=this.parent;c;){a=0;for(b=c.ka.length;a<b;a++)this.Uw(c.ka[a]);c=c.parent}this.ka=r(this.ka);this.Wf=r(this.Wf);a=0;for(b=this.xb.length;a<b;a++)this.xb[a].jb();a=0;for(b=this.nd.length;a<b;a++)this.nd[a].jb();a=0;for(b=this.zd.length;a<b;a++)this.zd[a].jb(a<b-1&&this.zd[a+1].Ll)};k.prototype.Lt=function(a){if(this.wh!==!!a){this.wh=!!a;var b;a=0;for(b=this.Vk.length;a<b;++a)this.Vk[a].ou();0<b&&this.b.Ha.mg&&this.b.Ha.mg.Up()}};k.prototype.Oq=function(a){h(a,this.ka)};k.prototype.Uw=function(a){h(a,
this.Wf)};k.prototype.Fm=function(){this.Ep=!0;this.parent&&this.parent.Fm()};k.prototype.qs=function(){return this.xb.length?this.xb[0].trigger:!1};k.prototype.sb=function(){var a,b,c=!1,d=this.b,g=this.b.Wa();g.Ua=this;var f=this.xb;this.Ll||(g.Rn=!1);if(this.jd){0===f.length&&(c=!0);g.kb=0;for(a=f.length;g.kb<a;g.kb++)b=f[g.kb],b.trigger||(b=b.sb())&&(c=!0);(g.Jg=c)&&this.ym()}else{g.kb=0;for(a=f.length;g.kb<a;g.kb++)if(b=f[g.kb].sb(),!b){g.Jg=!1;this.Op&&d.Gf&&d.cc();return}g.Jg=!0;this.ym()}this.Vx(g)};
k.prototype.Vx=function(a){a.Jg&&this.Ur&&(a.Rn=!0);this.Op&&this.b.Gf&&this.b.cc()};k.prototype.yA=function(a){this.b.Wa().Ua=this;this.xb[a].sb()&&(this.ym(),this.b.Wa().Jg=!0)};k.prototype.ym=function(){var a=this.b.Wa(),b;a.ec=0;for(b=this.nd.length;a.ec<b;a.ec++)if(this.nd[a.ec].sb())return;this.Gt()};k.prototype.wA=function(){var a=this.b.Wa(),b;for(b=this.nd.length;a.ec<b;a.ec++)if(this.nd[a.ec].sb())return;this.Gt()};k.prototype.Gt=function(){if(this.zd.length){var a,b,c,d,g=this.zd.length-
1;this.b.qm(this);if(this.Ep)for(a=0,b=this.zd.length;a<b;a++)c=this.zd[a],(d=!this.Xm||!this.group&&a<g)&&this.b.Rf(c.ka),c.sb(),d?this.b.Wd(c.ka):this.b.In(c.ka);else for(a=0,b=this.zd.length;a<b;a++)this.zd[a].sb();this.b.mm()}};k.prototype.zA=function(){var a=this.b.Wa();a.Ua=this;var b=!1,c;a.kb=0;for(c=this.xb.length;a.kb<c;a.kb++)if(this.xb[a.kb].sb())b=!0;else if(!this.jd)return!1;return this.jd?b:!0};k.prototype.Tf=function(){this.b.pg++;var a=this.b.Wa().kb,b=this.b.qm(this);if(!this.jd)for(b.kb=
a+1,a=this.xb.length;b.kb<a;b.kb++)if(!this.xb[b.kb].sb()){this.b.mm();return}this.ym();this.b.mm()};k.prototype.Ez=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.xb[b].type===a.type)return!1;return!0};cc=k;b.prototype.jb=function(){var a,b,c;a=0;for(b=this.na.length;a<b;a++)c=this.na[a],c.jb(),c.Dd&&(this.oi=!0)};b.prototype.BA=function(){return!0};b.prototype.xp=function(){var a,b;a=0;for(b=this.na.length;a<b;a++)this.fb[a]=this.na[a].get();return Ua(this.Sb.apply(this.b.xe,
this.fb),this.zg)};b.prototype.AA=function(){var a,b;a=0;for(b=this.na.length;a<b;a++)this.fb[a]=this.na[a].get();a=this.Sb.apply(this.ag?this.ag:this.type,this.fb);this.type.Id();return a};b.prototype.wp=function(){var a,b,c,d,g,f,l,h,k=this.type,e=k.W(),u=this.cd.jd&&!this.trigger;b=0;var z=k.nc,m=k.M,p=k.He,r=this.Md,t=-1<r,N=this.oi,x=this.na,y=this.fb,L=this.zg,O=this.Sb,G;if(N)for(b=0,g=x.length;b<g;++b)f=x[b],f.Dd||(y[b]=f.get(0));else for(b=0,g=x.length;b<g;++b)y[b]=x[b].get(0);if(e.X){F(e.k);
F(e.Z);G=k.k;a=0;for(d=G.length;a<d;++a){h=G[a];if(N)for(b=0,g=x.length;b<g;++b)f=x[b],f.Dd&&(y[b]=f.get(a));t?(b=0,m&&(b=h.type.qh[p]),b=O.apply(h.S[r+b],y)):b=O.apply(h,y);(l=Ua(b,L))?e.k.push(h):u&&e.Z.push(h)}k.finish&&k.finish(!0);e.X=!1;k.Id();return e.so()}c=0;G=(l=u&&!this.cd.Ez(this))?e.Z:e.k;var J=!1;a=0;for(d=G.length;a<d;++a){h=G[a];if(N)for(b=0,g=x.length;b<g;++b)f=x[b],f.Dd&&(y[b]=f.get(a));t?(b=0,m&&(b=h.type.qh[p]),b=O.apply(h.S[r+b],y)):b=O.apply(h,y);if(Ua(b,L))if(J=!0,l){if(e.k.push(h),
z)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.W().k.push(f)}else{G[c]=h;if(z)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.W().k[c]=f;c++}else if(l){G[c]=h;if(z)for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.W().Z[c]=f;c++}else if(u&&(e.Z.push(h),z))for(b=0,g=h.siblings.length;b<g;b++)f=h.siblings[b],f.type.W().Z.push(f)}Ba(G,c);if(z)for(m=k.Rc,a=0,d=m.length;a<d;a++)h=m[a].W(),l?Ba(h.Z,c):Ba(h.k,c);c=J;if(l&&!J)for(a=0,d=e.k.length;a<d;a++){h=e.k[a];if(N)for(b=
0,g=x.length;b<g;b++)f=x[b],f.Dd&&(y[b]=f.get(a));b=t?O.apply(h.S[r],y):O.apply(h,y);if(Ua(b,L)){J=!0;break}}k.finish&&k.finish(c||u);return u?J:e.so()};Yb=b;d.prototype.jb=function(){var a,b,c;a=0;for(b=this.na.length;a<b;a++)c=this.na[a],c.jb(),c.Dd&&(this.oi=!0)};d.prototype.xp=function(){var a=this.b,b,c,d=this.na,g=this.fb;b=0;for(c=d.length;b<c;++b)g[b]=d[b].get();return this.Sb.apply(a.xe,g)};d.prototype.wp=function(){var a=this.type,b=this.Md,c=a.He,d=this.oi,g=this.na,f=this.fb,l=this.Sb,
h=a.W().lc(),a=a.M,k=-1<b,e,u,z,m,p,r;if(d)for(u=0,m=g.length;u<m;++u)p=g[u],p.Dd||(f[u]=p.get(0));else for(u=0,m=g.length;u<m;++u)f[u]=g[u].get(0);e=0;for(z=h.length;e<z;++e){r=h[e];if(d)for(u=0,m=g.length;u<m;++u)p=g[u],p.Dd&&(f[u]=p.get(e));k?(u=0,a&&(u=r.type.qh[c]),l.apply(r.S[b+u],f)):l.apply(r,f)}return!1};Zb=d;var N=[],z=-1;a.prototype.jb=function(){var a,b;if(11===this.type)this.ng=this.b.Lr(this.sk,this.cd.parent);else if(13===this.type)for(a=0,b=this.Zg.length;a<b;a++)this.Zg[a].jb();this.le&&
this.le.jb()};a.prototype.Rz=function(a){this.Dd||!a||a.Ka.Mm||(this.Dd=!0)};a.prototype.Pt=function(){this.Dd=!0};a.prototype.fz=function(a){this.cf=a||0;a=f();this.le.get(a);z--;return a.data};a.prototype.gz=function(a){this.cf=a||0;a=f();this.le.get(a);z--;return ma(a.data)?a.data:""};a.prototype.mz=function(){return this.object};a.prototype.dz=function(){return this.hr};a.prototype.kz=function(a){this.cf=a||0;a=f();this.le.get(a);z--;return a.Lb()?this.b.Nr(a.data):this.b.Mr(a.data)};a.prototype.lz=
function(){return this.ob};a.prototype.jz=function(){return this.key};a.prototype.iz=function(){return this.index};a.prototype.hz=function(a){a=a||0;var b=this.Qa.type,c=null,c=b.W(),d=c.lc();if(d.length)c=d[a%d.length].type;else if(c.Z.length)c=c.Z[a%c.Z.length].type;else if(b.k.length)c=b.k[a%b.k.length].type;else return 0;return this.index+c.jl[b.He]};a.prototype.ez=function(){return this.ng};a.prototype.cz=function(){return this.Br};a.prototype.nz=function(){var a,b;a=0;for(b=this.Zg.length;a<
b;a++)this.rk[a]=this.Zg[a].get();return this.rk};$b=a;c.prototype.jb=function(){this.ka=r(this.ka)};c.prototype.Gm=function(a){var b=this.b.Kr();this.parent&&!this.cj&&b?(this.Ng>=b.length&&(b.length=this.Ng+1),b[this.Ng]=a):this.data=a};c.prototype.Sr=function(){var a=this.b.Kr();return!this.parent||this.cj||!a||this.Kl?this.data:this.Ng>=a.length||"undefined"===typeof a[this.Ng]?this.xo:a[this.Ng]};c.prototype.sb=function(){!this.parent||this.cj||this.Kl||this.Gm(this.xo)};Ub=c;g.prototype.toString=
function(){return"include:"+this.Pi.toString()};g.prototype.jb=function(){this.Pi=this.b.Un[this.xz];this.sheet.Wr.add(this);this.ka=r(this.ka);for(var a=this.parent;a;)a.group&&a.Vk.push(this),a=a.parent;this.ou()};g.prototype.sb=function(){this.parent&&this.b.Rj(this.b.I);this.Pi.uo||this.Pi.sb(!0);this.parent&&this.b.Wd(this.b.I)};g.prototype.ou=function(){for(var a=this.parent;a;){if(a.group&&!a.wh){this.Ta=!1;return}a=a.parent}this.Ta=!0};dc=g;l.prototype.reset=function(a){this.Ua=a;this.ec=
this.kb=0;F(this.Zt);this.Rn=this.Jg=!1};l.prototype.hs=function(){return this.Ua.Ep?!0:this.kb<this.Ua.xb.length-1?!!this.Ua.ka.length:!1};Tb=l})();
(function(){function e(h,b){this.Qa=h;this.b=h.b;this.type=b[0];this.get=[this.oy,this.jy,this.zy,this.Cy,this.Yx,this.Ay,this.uy,this.gy,this.ty,this.yy,this.Zx,this.xy,this.hy,this.vy,this.qy,this.ry,this.ky,this.my,this.fy,this.By,this.wy,this.ny,this.ey,this.iy][this.type];var d=null;this.Re=this.na=this.fb=this.Sb=this.Sm=this.second=this.first=this.value=null;this.Md=-1;this.Od=null;this.vu=-1;this.ng=this.sk=null;this.ai=!1;switch(this.type){case 0:case 1:case 2:this.value=b[1];break;case 3:this.first=
new bc(h,b[1]);break;case 18:this.first=new bc(h,b[1]);this.second=new bc(h,b[2]);this.Sm=new bc(h,b[3]);break;case 19:this.Sb=this.b.kf(b[1]);this.Sb!==R.prototype.J.random&&this.Sb!==R.prototype.J.kx||this.Qa.Pt();this.fb=[];this.na=[];3===b.length?(d=b[2],this.fb.length=d.length+1):this.fb.length=1;break;case 20:this.Re=this.b.I[b[1]];this.Md=-1;this.Sb=this.b.kf(b[2]);this.ai=b[3];gc.Function&&this.Sb===gc.Function.prototype.J.eB&&this.Qa.Pt();b[4]?this.Od=new bc(h,b[4]):this.Od=null;this.fb=
[];this.na=[];6===b.length?(d=b[5],this.fb.length=d.length+1):this.fb.length=1;break;case 21:this.Re=this.b.I[b[1]];this.ai=b[2];b[3]?this.Od=new bc(h,b[3]):this.Od=null;this.vu=b[4];break;case 22:this.Re=this.b.I[b[1]];this.Re.ul(b[2]);this.Md=this.Re.co(b[2]);this.Sb=this.b.kf(b[3]);this.ai=b[4];b[5]?this.Od=new bc(h,b[5]):this.Od=null;this.fb=[];this.na=[];7===b.length?(d=b[6],this.fb.length=d.length+1):this.fb.length=1;break;case 23:this.sk=b[1],this.ng=null}this.Qa.Rz(this.Re);4<=this.type&&
17>=this.type&&(this.first=new bc(h,b[1]),this.second=new bc(h,b[2]));if(d){var f,a;f=0;for(a=d.length;f<a;f++)this.na.push(new bc(h,d[f]))}}function m(){++k;t.length===k&&t.push(new ac);return t[k]}function r(h,b,d){var f,a;f=0;for(a=h.length;f<a;++f)h[f].get(d),b[f+1]=d.data}function p(h,b){this.type=h||ec.gh;this.data=b||0;this.Rg=null;this.type==ec.gh&&(this.data=Math.floor(this.data))}e.prototype.jb=function(){23===this.type&&(this.ng=this.Qa.b.Lr(this.sk,this.Qa.cd.parent));this.first&&this.first.jb();
this.second&&this.second.jb();this.Sm&&this.Sm.jb();this.Od&&this.Od.jb();if(this.na){var h,b;h=0;for(b=this.na.length;h<b;h++)this.na[h].jb()}};var t=[],k=-1;e.prototype.By=function(h){var b=this.na,d=this.fb;d[0]=h;h=m();r(b,d,h);--k;this.Sb.apply(this.b.xe,d)};e.prototype.wy=function(h){var b=this.Re,d=this.fb,f=this.na,a=this.Od,c=this.Sb,g=this.Qa.cf,l=b.W(),e=l.lc();if(!e.length)if(l.Z.length)e=l.Z;else{this.ai?h.tb(""):h.Ia(0);return}d[0]=h;h.Rg=b;h=m();r(f,d,h);a&&(a.get(h),h.Lb()&&(g=h.data,
e=b.k));--k;b=e.length;if(g>=b||g<=-b)g%=b;0>g&&(g+=b);c.apply(e[g],d)};e.prototype.ey=function(h){var b=this.Re,d=this.fb,f=this.na,a=this.Od,c=this.Md,g=this.Sb,l=this.Qa.cf,e=b.W(),p=e.lc();if(!p.length)if(e.Z.length)p=e.Z;else{this.ai?h.tb(""):h.Ia(0);return}d[0]=h;h.Rg=b;h=m();r(f,d,h);a&&(a.get(h),h.Lb()&&(l=h.data,p=b.k));--k;f=p.length;if(l>=f||l<=-f)l%=f;0>l&&(l+=f);l=p[l];p=0;b.M&&(p=l.type.qh[b.He]);g.apply(l.S[c+p],d)};e.prototype.ny=function(h){var b=this.Od,d=this.Re,f=this.vu,a=this.Qa.cf,
c=d.W(),g=c.lc();if(!g.length)if(c.Z.length)g=c.Z;else{this.ai?h.tb(""):h.Ia(0);return}if(b){c=m();b.get(c);if(c.Lb()){a=c.data;g=d.k;0!==g.length&&(a%=g.length,0>a&&(a+=g.length));a=d.jo(a);d=a.Bb[f];ma(d)?h.tb(d):h.R(d);--k;return}--k}b=g.length;if(a>=b||a<=-b)a%=b;0>a&&(a+=b);a=g[a];g=0;d.M&&(g=a.type.jl[d.He]);d=a.Bb[f+g];ma(d)?h.tb(d):h.R(d)};e.prototype.oy=function(h){h.type=ec.gh;h.data=this.value};e.prototype.jy=function(h){h.type=ec.fh;h.data=this.value};e.prototype.zy=function(h){h.type=
ec.String;h.data=this.value};e.prototype.Cy=function(h){this.first.get(h);h.Lb()&&(h.data=-h.data)};e.prototype.Yx=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data+=b.data,b.Bh()&&h.Qh());--k};e.prototype.Ay=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data-=b.data,b.Bh()&&h.Qh());--k};e.prototype.uy=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data*=b.data,b.Bh()&&h.Qh());--k};e.prototype.gy=function(h){this.first.get(h);
var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data/=b.data,h.Qh());--k};e.prototype.ty=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data%=b.data,b.Bh()&&h.Qh());--k};e.prototype.yy=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data=Math.pow(h.data,b.data),b.Bh()&&h.Qh());--k};e.prototype.Zx=function(h){this.first.get(h);var b=m();this.second.get(b);b.Eh()||h.Eh()?this.ay(h,b):this.$x(h,b);--k};e.prototype.ay=function(h,b){h.Eh()&&
b.Eh()?this.cy(h,b):this.by(h,b)};e.prototype.cy=function(h,b){h.data+=b.data};e.prototype.by=function(h,b){h.Eh()?h.data+=(Math.round(1E10*b.data)/1E10).toString():h.tb(h.data.toString()+b.data)};e.prototype.$x=function(h,b){h.Ia(h.data&&b.data?1:0)};e.prototype.xy=function(h){this.first.get(h);var b=m();this.second.get(b);h.Lb()&&b.Lb()&&(h.data||b.data?h.Ia(1):h.Ia(0));--k};e.prototype.fy=function(h){this.first.get(h);h.data?this.second.get(h):this.Sm.get(h)};e.prototype.hy=function(h){this.first.get(h);
var b=m();this.second.get(b);h.Ia(h.data===b.data?1:0);--k};e.prototype.vy=function(h){this.first.get(h);var b=m();this.second.get(b);h.Ia(h.data!==b.data?1:0);--k};e.prototype.qy=function(h){this.first.get(h);var b=m();this.second.get(b);h.Ia(h.data<b.data?1:0);--k};e.prototype.ry=function(h){this.first.get(h);var b=m();this.second.get(b);h.Ia(h.data<=b.data?1:0);--k};e.prototype.ky=function(h){this.first.get(h);var b=m();this.second.get(b);h.Ia(h.data>b.data?1:0);--k};e.prototype.my=function(h){this.first.get(h);
var b=m();this.second.get(b);h.Ia(h.data>=b.data?1:0);--k};e.prototype.iy=function(h){var b=this.ng.Sr();la(b)?h.R(b):h.tb(b)};bc=e;p.prototype.Bh=function(){return this.type===ec.fh};p.prototype.Lb=function(){return this.type===ec.gh||this.type===ec.fh};p.prototype.Eh=function(){return this.type===ec.String};p.prototype.Qh=function(){this.Bh()||(this.Eh()&&(this.data=parseFloat(this.data)),this.type=ec.fh)};p.prototype.Ia=function(h){this.type=ec.gh;this.data=Math.floor(h)};p.prototype.R=function(h){this.type=
ec.fh;this.data=h};p.prototype.tb=function(h){this.type=ec.String;this.data=h};p.prototype.JA=function(h){la(h)?(this.type=ec.fh,this.data=h):ma(h)?(this.type=ec.String,this.data=h.toString()):(this.type=ec.gh,this.data=0)};ac=p;ec={gh:0,fh:1,String:2}})();function R(e){this.b=e;this.ac=[]}
R.prototype.Ya=function(){var e={},m,r,p,t,k,h,b,d;e.waits=[];var f=e.waits,a;m=0;for(r=this.ac.length;m<r;m++){h=this.ac[m];a={t:h.time,st:h.Jm,s:h.ek,ev:h.lg.ra,sm:[],sols:{}};h.lg.nd[h.ec]&&(a.act=h.lg.nd[h.ec].ra);p=0;for(t=h.ka.length;p<t;p++)a.sm.push(h.ka[p].ra);for(k in h.oc)if(h.oc.hasOwnProperty(k)){b=this.b.I[parseInt(k,10)];d={sa:h.oc[k].Yj,insts:[]};p=0;for(t=h.oc[k].oe.length;p<t;p++)d.insts.push(h.oc[k].oe[p].uid);a.sols[b.ra.toString()]=d}f.push(a)}return e};
R.prototype.ib=function(e){e=e.waits;var m,r,p,t,k,h,b,d,f,a,c;F(this.ac);m=0;for(r=e.length;m<r;m++)if(h=e[m],d=this.b.Wq[h.ev.toString()]){f=-1;p=0;for(t=d.nd.length;p<t;p++)if(d.nd[p].ra===h.act){f=p;break}if(-1!==f){b={oc:{},ka:[],Qn:!1};b.time=h.t;b.Jm=h.st||"";b.ek=!!h.s;b.lg=d;b.ec=f;p=0;for(t=h.sm.length;p<t;p++)(d=this.b.Hi(h.sm[p]))&&b.ka.push(d);for(k in h.sols)if(h.sols.hasOwnProperty(k)&&(d=this.b.Hi(parseInt(k,10)))){f=h.sols[k];a={Yj:f.sa,oe:[]};p=0;for(t=f.insts.length;p<t;p++)(c=
this.b.tg(f.insts[p]))&&a.oe.push(c);b.oc[d.index.toString()]=a}this.ac.push(b)}}};
(function(){function e(){}function m(){}function r(){var a;f.length?a=f.pop():a={oc:{},ka:[]};a.Qn=!1;return a}function p(){var b;a.length?b=a.pop():b={oe:[]};b.Yj=!1;return b}function t(){}var k=R.prototype;e.prototype.Wu=function(){return!0};e.prototype.zq=function(){return!0};e.prototype.Jv=function(){return!0};e.prototype.Lu=function(a,b,d){return fc(a,b,d)};e.prototype.yv=function(a){return a?a.visible:!1};e.prototype.xv=function(a,b,d){return a?fc(100*a.opacity,b,d):!1};e.prototype.Yu=function(a,
b,d){var f=this.b.Wa(),h=f.Ua,f=f.hs();a=this.b.Ct(a);if(d<b)if(f)for(;b>=d&&!a.hb;--b)this.b.Rf(h.ka),a.index=b,h.Tf(),this.b.Wd(h.ka);else for(;b>=d&&!a.hb;--b)a.index=b,h.Tf();else if(f)for(;b<=d&&!a.hb;++b)this.b.Rf(h.ka),a.index=b,h.Tf(),this.b.Wd(h.ka);else for(;b<=d&&!a.hb;++b)a.index=b,h.Tf();this.b.ut();return!1};var h=[],b=-1;e.prototype.Zu=function(a){var d=a.W();b++;h.length===b&&h.push([]);var f=h[b];Ca(f,d.lc());var k=this.b.Wa(),e=k.Ua,z=k.hs(),k=this.b.Ct(),n,q,m,p,r,w,t=a.nc;if(z)for(z=
0,n=f.length;z<n&&!k.hb;z++){this.b.Rf(e.ka);p=f[z];d=a.W();d.X=!1;F(d.k);d.k[0]=p;if(t)for(q=0,m=p.siblings.length;q<m;q++)r=p.siblings[q],w=r.type.W(),w.X=!1,F(w.k),w.k[0]=r;k.index=z;e.Tf();this.b.Wd(e.ka)}else for(d.X=!1,F(d.k),z=0,n=f.length;z<n&&!k.hb;z++){p=f[z];d.k[0]=p;if(t)for(q=0,m=p.siblings.length;q<m;q++)r=p.siblings[q],w=r.type.W(),w.X=!1,F(w.k),w.k[0]=r;k.index=z;e.Tf()}F(f);this.b.ut();b--;return!1};e.prototype.Nw=function(){var a=this.b.Ef().L;"undefined"===typeof a.TriggerOnce_lastTick&&
(a.TriggerOnce_lastTick=-1);var b=a.TriggerOnce_lastTick,d=this.b.Bd;a.TriggerOnce_lastTick=d;return this.b.No||b!==d-1};e.prototype.Vu=function(a){var b=this.b.Ef(),d=b.L.Every_lastTime||0,f=this.b.nb.aa;"undefined"===typeof b.L.Every_seconds&&(b.L.Every_seconds=a);var h=b.L.Every_seconds;if(f>=d+h)return b.L.Every_lastTime=d+h,f>=b.L.Every_lastTime+.04&&(b.L.Every_lastTime=f),b.L.Every_seconds=a,!0;f<d-.1&&(b.L.Every_lastTime=f);return!1};e.prototype.Pu=function(a,b,d){return fc(a.Sr(),b,d)};e.prototype.kv=
function(a){return(a=this.b.Li[a.toLowerCase()])&&a.wh};e.prototype.kq=function(){var a=this.b.Wa();return a.Rn?!1:!a.Jg};e.prototype.Aq=function(){return!0};e.prototype.Ev=function(){return!0};e.prototype.vn=function(){return!0};e.prototype.Bq=function(){return!0};e.prototype.Kv=function(){return!0};e.prototype.Ak=function(){return!0};var d=[];e.prototype.Pv=function(a,b,f){if(!a)return!1;var h=a.W(),k=h.lc(),e=this.b.Wa().Ua.jd,n=this.b.Ef(),q,m;h.X?(Ca(d,k),F(h.Z),h.X=!1,F(h.k)):e?(Ca(d,h.Z),F(h.Z)):
(Ca(d,k),F(h.k));k=0;for(e=d.length;k<e;++k)q=d[k],q.la(),(m=Ua(q.Qb(b,f),n.zg))?h.k.push(q):h.Z.push(q);a.Id();return Ua(!!h.k.length,n.zg)};e.prototype.Fu=function(a,b,d){return Oa(H(a),H(d))<=H(b)};e.prototype.hv=function(a,b){return Ra(H(a),H(b))};e.prototype.mq=function(a,b,d){a=Ma(a);b=Ma(b);d=Ma(d);return Ra(d,b)?Ra(a,b)&&!Ra(a,d):!(!Ra(a,b)&&Ra(a,d))};k.n=new e;m.prototype.$u=function(a){this.b.Fg||this.b.De||(this.b.De=a)};m.prototype.Tu=function(a,b,d,f){if(b&&a&&(b=this.b.Ln(a,b,d,f))){this.b.gd++;
var h;this.b.trigger(Object.getPrototypeOf(a.Ka).n.lf,b);if(b.nc)for(d=0,f=b.siblings.length;d<f;d++)h=b.siblings[d],this.b.trigger(Object.getPrototypeOf(h.type.Ka).n.lf,h);this.b.gd--;a=a.W();a.X=!1;F(a.k);a.k[0]=b;if(b.nc)for(d=0,f=b.siblings.length;d<f;d++)h=b.siblings[d],a=h.type.W(),a.X=!1,F(a.k),a.k[0]=h}};m.prototype.kw=function(a,b){a&&a.visible!==b&&(a.visible=b,this.b.ja=!0)};m.prototype.jw=function(a,b){a&&(b=Ga(b/100,0,1),a.opacity!==b&&(a.opacity=b,this.b.ja=!0))};m.prototype.Bw=function(a,
b){0===a.wu?la(b)?a.Gm(b):a.Gm(parseFloat(b)):1===a.wu&&a.Gm(b.toString())};var f=[],a=[];m.prototype.Pw=function(a){if(!(0>a)){var b,d,f,h=this.b.Wa(),k=r();k.time=this.b.nb.aa+a;k.Jm="";k.ek=!1;k.lg=h.Ua;k.ec=h.ec+1;a=0;for(b=this.b.I.length;a<b;a++)f=this.b.I[a],d=f.W(),d.X&&-1===h.Ua.ka.indexOf(f)||(k.ka.push(f),f=p(),f.Yj=d.X,Ca(f.oe,d.k),k.oc[a.toString()]=f);this.ac.push(k);return!0}};m.prototype.Qw=function(a){var b,d,f,h=this.b.Wa(),k=r();k.time=-1;k.Jm=a.toLowerCase();k.ek=!1;k.lg=h.Ua;
k.ec=h.ec+1;a=0;for(b=this.b.I.length;a<b;a++)f=this.b.I[a],d=f.W(),d.X&&-1===h.Ua.ka.indexOf(f)||(k.ka.push(f),f=p(),f.Yj=d.X,Ca(f.oe,d.k),k.oc[a.toString()]=f);this.ac.push(k);return!0};m.prototype.Fw=function(a){a=a.toLowerCase();var b,d,f;b=0;for(d=this.ac.length;b<d;++b)f=this.ac[b],-1===f.time&&f.Jm===a&&(f.ek=!0)};m.prototype.av=function(a){if(!this.b.Fg&&!this.b.De)for(var b in this.b.Lh)if(this.b.Lh.hasOwnProperty(b)&&nb(b,a)){this.b.De=this.b.Lh[b];break}};m.prototype.Xv=function(){if(!this.b.Fg&&
!this.b.De&&this.b.Ha){this.b.De=this.b.Ha;var a,b,d;a=0;for(b=this.b.qf.length;a<b;a++)d=this.b.qf[a],d.Lt(d.Fl)}};k.q=new m;t.prototype["int"]=function(a,b){ma(b)?(a.Ia(parseInt(b,10)),isNaN(a.data)&&(a.data=0)):a.Ia(b)};t.prototype["float"]=function(a,b){ma(b)?(a.R(parseFloat(b)),isNaN(a.data)&&(a.data=0)):a.R(b)};t.prototype.Nz=function(a,b){a.Ia(b.length||0)};t.prototype.random=function(a,b,d){void 0===d?a.R(Math.random()*b):a.R(Math.random()*(d-b)+b)};t.prototype.sqrt=function(a,b){a.R(Math.sqrt(b))};
t.prototype.abs=function(a,b){a.R(Math.abs(b))};t.prototype.round=function(a,b){a.Ia(Math.round(b))};t.prototype.floor=function(a,b){a.Ia(Math.floor(b))};t.prototype.ceil=function(a,b){a.Ia(Math.ceil(b))};t.prototype.sin=function(a,b){a.R(Math.sin(H(b)))};t.prototype.cos=function(a,b){a.R(Math.cos(H(b)))};t.prototype.tan=function(a,b){a.R(Math.tan(H(b)))};t.prototype.asin=function(a,b){a.R(Ha(Math.asin(b)))};t.prototype.acos=function(a,b){a.R(Ha(Math.acos(b)))};t.prototype.atan=function(a,b){a.R(Ha(Math.atan(b)))};
t.prototype.exp=function(a,b){a.R(Math.exp(b))};t.prototype.log10=function(a,b){a.R(Math.log(b)/Math.LN10)};t.prototype.max=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,f,h;d=2;for(f=arguments.length;d<f;d++)h=arguments[d],"number"===typeof h&&b<h&&(b=h);a.R(b)};t.prototype.min=function(a){var b=arguments[1];"number"!==typeof b&&(b=0);var d,f,h;d=2;for(f=arguments.length;d<f;d++)h=arguments[d],"number"===typeof h&&b>h&&(b=h);a.R(b)};t.prototype.ig=function(a){a.R(this.b.ig)};t.prototype.dh=
function(a){a.R(this.b.dh)};t.prototype.time=function(a){a.R(this.b.nb.aa)};t.prototype.Bd=function(a){a.Ia(this.b.Bd)};t.prototype.cm=function(a){a.Ia(this.b.cm)};t.prototype.Zn=function(a){a.Ia(this.b.Zn)};t.prototype.wx=function(a,b,d,f,h){a.R(Ta(b,d,f,h))};t.prototype.u=function(a,b,d,f,h){a.R(Ha(Na(b,d,f,h)))};t.prototype.Vz=function(a){a.tb("\n")};t.prototype.left=function(a,b,d){a.tb(ma(b)?b.substr(0,d):"")};t.prototype.right=function(a,b,d){a.tb(ma(b)?b.substr(b.length-d):"")};t.prototype.replace=
function(a,b,d,f){ma(b)&&ma(d)&&ma(f)?a.tb(b.replace(new RegExp(gb(d),"gi"),f)):a.tb(ma(b)?b:"")};t.prototype.trim=function(a,b){a.tb(ma(b)?b.trim():"")};t.prototype.Mz=function(a){this.b.Ha?a.tb(this.b.Ha.name):a.tb("")};t.prototype.kx=function(a){var b=A(Math.random()*(arguments.length-1));a.JA(arguments[b+1])};t.prototype.$A=function(a,b,d){var f=0>b?"-":"";0>b&&(b=-b);d=d-b.toString().length;for(var h=0;h<d;h++)f+="0";a.tb(f+b.toString())};t.prototype.Kn=function(a){a.R(this.b.Kn/1E3)};t.prototype.UA=
function(a,b){var d=this.b.xl(b);a.R(d?d.wa:0)};t.prototype.WA=function(a,b){var d=this.b.xl(b);a.R(d?d.xa:0)};t.prototype.VA=function(a,b){var d=this.b.xl(b);a.R(d?d.Ba:0)};t.prototype.TA=function(a,b){var d=this.b.xl(b);a.R(d?d.Aa:0)};t.prototype.Sl=function(a){a.R(this.b.Sl)};k.J=new t;k.xA=function(){var b,d,h,k,e,m,n=this.b.Wa();b=0;for(h=this.ac.length;b<h;b++){k=this.ac[b];if(-1===k.time){if(!k.ek)continue}else if(k.time>this.b.nb.aa)continue;n.Ua=k.lg;n.ec=k.ec;n.kb=0;for(d in k.oc)k.oc.hasOwnProperty(d)&&
(e=this.b.I[parseInt(d,10)].W(),m=k.oc[d],e.X=m.Yj,Ca(e.k,m.oe),e=m,F(e.oe),a.push(e));k.lg.wA();this.b.In(k.ka);k.Qn=!0}d=b=0;for(h=this.ac.length;b<h;b++)k=this.ac[b],this.ac[d]=k,k.Qn?(Wa(k.oc),F(k.ka),f.push(k)):d++;Ba(this.ac,d)}})();
(function(){qb=function(e,r){var p=e[1],t=e[3],k=e[4],h=e[5],b=e[6],d=e[7],f=e[8];r.n||(r.n={});r.q||(r.q={});r.J||(r.J={});var a=r.n,c=r.q,g=r.J;t&&(a.jq=function(a,b){return fc(this.x,a,b)},a.Qu=function(a,b){return fc(this.y,a,b)},a.rv=function(){var a=this.A;this.la();var b=this.Y;return!(b.right<a.wa||b.bottom<a.xa||b.left>a.Ba||b.top>a.Aa)},a.oq=function(){this.la();var a=this.Y,b=this.b.Ha;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},a.Ov=function(a,b,c){var d=this.W(),f=d.lc();
if(!f.length)return!1;var g=f[0],h=g,k=Ta(g.x,g.y,b,c),e,m,p;e=1;for(m=f.length;e<m;e++)if(g=f[e],p=Ta(g.x,g.y,b,c),0===a&&p<k||1===a&&p>k)k=p,h=g;d.Mj(h);return!0},c.Iq=function(a){this.x!==a&&(this.x=a,this.D())},c.Jq=function(a){this.y!==a&&(this.y=a,this.D())},c.rw=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.D()},c.uB=function(a,b){var c=a.Wy(this);if(c){var d;c.sg?(d=c.sg(b,!0),c=c.sg(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.D()}},c.Cv=function(a){0!==
a&&(this.x+=Math.cos(this.u)*a,this.y+=Math.sin(this.u)*a,this.D())},c.Bv=function(a,b){0!==b&&(this.x+=Math.cos(H(a))*b,this.y+=Math.sin(H(a))*b,this.D())},g.Tw=function(a){a.R(this.x)},g.Lq=function(a){a.R(this.y)},g.ig=function(a){a.R(this.b.Ff(this))});k&&(a.iq=function(a,b){return fc(this.width,a,b)},a.gq=function(a,b){return fc(this.height,a,b)},c.xn=function(a){this.width!==a&&(this.width=a,this.D())},c.Fq=function(a){this.height!==a&&(this.height=a,this.D())},c.Gq=function(a,b){if(this.width!==
a||this.height!==b)this.width=a,this.height=b,this.D()},g.yn=function(a){a.R(this.width)},g.sn=function(a){a.R(this.height)},g.bB=function(a){this.la();a.R(this.Y.left)},g.dB=function(a){this.la();a.R(this.Y.top)},g.cB=function(a){this.la();a.R(this.Y.right)},g.aB=function(a){this.la();a.R(this.Y.bottom)});h&&(a.Fu=function(a,b){return Oa(this.u,H(b))<=H(a)},a.hv=function(a){return Ra(this.u,H(a))},a.mq=function(a,b){var c=Ma(a),d=Ma(b),f=Ka(this.u);return Ra(d,c)?Ra(f,c)&&!Ra(f,d):!(!Ra(f,c)&&Ra(f,
d))},c.wn=function(a){a=H(Ja(a));isNaN(a)||this.u===a||(this.u=a,this.D())},c.oB=function(a){0===a||isNaN(a)||(this.u+=H(a),this.u=Ka(this.u),this.D())},c.pB=function(a){0===a||isNaN(a)||(this.u-=H(a),this.u=Ka(this.u),this.D())},c.qB=function(a,b){var c=Qa(this.u,H(b),H(a));isNaN(c)||this.u===c||(this.u=c,this.D())},c.rB=function(a,b,c){a=Qa(this.u,Math.atan2(c-this.y,b-this.x),H(a));isNaN(a)||this.u===a||(this.u=a,this.D())},c.Aw=function(a,b){var c=Math.atan2(b-this.y,a-this.x);isNaN(c)||this.u===
c||(this.u=c,this.D())},g.Du=function(a){a.R(La(this.u))});p||(a.Nu=function(a,b,c){return fc(this.Bb[a],b,c)},a.nq=function(a){return this.Bb[a]},a.lB=function(a,b){var c=this.W(),d=c.lc();if(!d.length)return!1;var f=d[0],g=f,h=f.Bb[b],k,e,m;k=1;for(e=d.length;k<e;k++)if(f=d[k],m=f.Bb[b],0===a&&m<h||1===a&&m>h)h=m,g=f;c.Mj(g);return!0},a.Cq=function(a){var b,c,d,f,g;if(this.b.Ef().zg){g=this.W();if(g.X)for(g.X=!1,F(g.k),F(g.Z),d=this.k,b=0,c=d.length;b<c;b++)f=d[b],f.uid===a?g.Z.push(f):g.k.push(f);
else{d=b=0;for(c=g.k.length;b<c;b++)f=g.k[b],g.k[d]=f,f.uid===a?g.Z.push(f):d++;Ba(g.k,d)}this.Id();return!!g.k.length}f=this.b.tg(a);if(!f)return!1;g=this.W();if(!g.X&&-1===g.k.indexOf(f))return!1;if(this.M)for(a=f.type.Va,b=0,c=a.length;b<c;b++){if(a[b]===this)return g.Mj(f),this.Id(),!0}else if(f.type===this)return g.Mj(f),this.Id(),!0;return!1},a.lf=function(){return!0},a.un=function(){return!0},c.hw=function(a,b){var c=this.Bb;la(c[a])?c[a]=la(b)?b:parseFloat(b):ma(c[a])&&(c[a]=ma(b)?b:b.toString())},
c.Bu=function(a,b){var c=this.Bb;la(c[a])?c[a]=la(b)?c[a]+b:c[a]+parseFloat(b):ma(c[a])&&(c[a]=ma(b)?c[a]+b:c[a]+b.toString())},c.Lw=function(a,b){var c=this.Bb;la(c[a])&&(c[a]=la(b)?c[a]-b:c[a]-parseFloat(b))},c.Eq=function(a,b){this.Bb[a]=b?1:0},c.vB=function(a){this.Bb[a]=1-this.Bb[a]},c.qn=function(){this.b.ge(this)},c.zv||(c.zv=function(a){var b,c;try{b=JSON.parse(a)}catch(d){return}this.b.Ql(this,b,!0);this.Fd&&this.Fd();if(this.S)for(a=0,b=this.S.length;a<b;++a)c=this.S[a],c.Fd&&c.Fd()}),g.Su=
function(a){var b=a.Rg.k.length,c,d,f;c=0;for(d=this.b.Nd.length;c<d;c++)f=this.b.Nd[c],a.Rg.M?0<=f.type.Va.indexOf(a.Rg)&&b++:f.type===a.Rg&&b++;a.Ia(b)},g.nB=function(a){a.Ia(a.Rg.W().lc().length)},g.Ow=function(a){a.Ia(this.uid)},g.fB=function(a){a.Ia(this.Ji())},g.fq||(g.fq=function(a){a.tb(JSON.stringify(this.b.yp(this,!0)))}));b&&(a.vv=function(){return this.visible},c.Hq=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.ja=!0)},a.Ou=function(a,b){return fc(mb(100*this.opacity),a,b)},
c.qw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.ja=!0)},g.Opacity=function(a){a.R(mb(100*this.opacity))});d&&(a.qv=function(a){return a?this.A===a:!1},a.mB=function(a){var b=this.W(),c=b.lc();if(!c.length)return!1;var d=c[0],f=d,g,h;g=1;for(h=c.length;g<h;g++)if(d=c[g],0===a){if(d.A.index>f.A.index||d.A.index===f.A.index&&d.ne()>f.ne())f=d}else if(d.A.index<f.A.index||d.A.index===f.A.index&&d.ne()<f.ne())f=d;b.Mj(f);return!0},c.Dv=function(){var a=this.A,b=a.k;
b.length&&b[b.length-1]===this||(a.$h(this,!1),a.qi(this,!1),this.b.ja=!0)},c.tn=function(){var a=this.A,b=a.k;b.length&&b[0]===this||(a.$h(this,!1),a.kA(this),this.b.ja=!0)},c.iB=function(a){a&&a!=this.A&&(this.A.$h(this,!0),this.A=a,a.qi(this,!0),this.b.ja=!0)},c.xB=function(a,b){var c=0===a;if(b){var d=b.wl(this);d&&d.uid!==this.uid&&(this.A.index!==d.A.index&&(this.A.$h(this,!0),this.A=d.A,d.A.qi(this,!0)),this.A.Uz(this,d,c),this.b.ja=!0)}},g.hB=function(a){a.Ia(this.A.Ys)},g.gB=function(a){a.tb(this.A.name)},
g.wB=function(a){a.Ia(this.ne())});f&&(c.sB=function(a,b){if(this.b.H){var c=this.type.ho(b);if(!(0>c)){var d=1===a;this.nf[c]!==d&&(this.nf[c]=d,this.ee(),this.b.ja=!0)}}},c.tB=function(a,b,c){if(this.b.H){var d=this.type.ho(a);0>d||(a=this.type.da[d],d=this.bb[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.H.$y(a.ub,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ta&&(this.b.ja=!0))))}})};Lb=function(){this.Hn=this.Nk=!0;this.type.Gk=!0;this.b.ja=!0;var e,r,p=this.Cn;e=0;for(r=p.length;e<r;++e)p[e](this);this.A.md&&
this.la()};Mb=function(e){e&&this.Cn.push(e)};Ob=function(){if(this.Nk){var e=this.Y,r=this.Pb;e.set(this.x,this.y,this.x+this.width,this.y+this.height);e.offset(-this.Gc*this.width,-this.Hc*this.height);this.u?(e.offset(-this.x,-this.y),r.Rt(e,this.u),r.offset(this.x,this.y),r.Yq(e)):r.Wg(e);e.normalize();this.Nk=!1;this.su()}};var e=new va(0,0,0,0);Pb=function(){if(this.A.md){var m=this.A.Yb,r=this.Y;e.set(m.Dc(r.left),m.Ec(r.top),m.Dc(r.right),m.Ec(r.bottom));this.Mc.Bi(e)||(this.Mc.right<this.Mc.left?
m.update(this,null,e):m.update(this,this.Mc,e),this.Mc.jh(e),this.A.$d=!0)}};Qb=function(){if(this.Hn&&this.ie){this.la();var m=this.type.Tk,r=this.Y;e.set(m.Dc(r.left),m.Ec(r.top),m.Dc(r.right),m.Ec(r.bottom));this.xf.Bi(e)||(this.xf.right<this.xf.left?m.update(this,null,e):m.update(this,this.xf,e),this.xf.jh(e),this.Hn=!1)}};Nb=function(e,r){return this.Y.Qb(e,r)&&this.Pb.Qb(e,r)?this.ua&&!this.ua.Eg()?(this.ua.tf(this.width,this.height,this.u),this.ua.Qb(e-this.x,r-this.y)):!0:!1};Hb=function(){this.type.$m();
return this.wg};Rb=function(){this.A.Xp();return this.fe};Sb=function(){F(this.Da);var e,r,p,t=!0;e=0;for(r=this.nf.length;e<r;e++)this.nf[e]&&(p=this.type.da[e],this.Da.push(p),p.Xd||(t=!1));this.uu=!!this.Da.length;this.bf=t};Ib=function(){return"Inst"+this.Bt};tb=function(e){if(e&&e.nc&&e.type!=this){var r,p,t;r=0;for(p=e.siblings.length;r<p;r++)if(t=e.siblings[r],t.type==this)return t}e=this.W().lc();return e.length?e[0]:null};ub=function(e){var r=this.W().lc();return r.length?r[e.Ji()%r.length]:
null};sb=function(){if(this.fi&&!this.M){var e,r;e=0;for(r=this.k.length;e<r;e++)this.k[e].wg=e;var p=e,t=this.b.Nd;e=0;for(r=t.length;e<r;++e)t[e].type===this&&(t[e].wg=p++);this.fi=!1}};Eb=function(e){if(e<this.k.length)return this.k[e];e-=this.k.length;var r=this.b.Nd,p,t;p=0;for(t=r.length;p<t;++p)if(r[p].type===this){if(0===e)return r[p];--e}return null};vb=function(){return this.df[this.je]};wb=function(){this.je++;this.je===this.df.length?this.df.push(new rb(this)):(this.df[this.je].X=!0,F(this.df[this.je].Z))};
yb=function(){this.je++;this.je===this.df.length&&this.df.push(new rb(this));var e=this.df[this.je],r=this.df[this.je-1];r.X?(e.X=!0,F(e.Z)):(e.X=!1,Ca(e.k,r.k),Ca(e.Z,r.Z))};zb=function(){this.je--};Ab=function(e){var r,p,t,k,h,b=0;if(!this.M)for(r=0,p=this.Va.length;r<p;r++)for(h=this.Va[r],t=0,k=h.Za.length;t<k;t++){if(e===h.Za[t].name)return this.L.lastBehIndex=b,h.Za[t];b++}r=0;for(p=this.Za.length;r<p;r++){if(e===this.Za[r].name)return this.L.lastBehIndex=b,this.Za[r];b++}return null};Bb=function(e){return this.ul(e)?
this.L.lastBehIndex:-1};Cb=function(e){var r,p;r=0;for(p=this.da.length;r<p;r++)if(this.da[r].name===e)return r;return-1};Db=function(){if(this.nc&&!this.M){var e,r,p,t,k,h,b;this.$m();h=this.W();var d=h.X,f=(e=this.b.Wa())&&e.Ua&&e.Ua.jd;e=0;for(r=this.Rc.length;e<r;e++)if(k=this.Rc[e],k!==this&&(k.$m(),b=k.W(),b.X=d,!d)){F(b.k);p=0;for(t=h.k.length;p<t;++p)b.k[p]=k.jo(h.k[p].wg);if(f)for(F(b.Z),p=0,t=h.Z.length;p<t;++p)b.Z[p]=k.jo(h.Z[p].wg)}}};Fb=function(){return"Type"+this.ra};fc=function(e,
r,p){if("undefined"===typeof e||"undefined"===typeof p)return!1;switch(r){case 0:return e===p;case 1:return e!==p;case 2:return e<p;case 3:return e<=p;case 4:return e>p;case 5:return e>=p;default:return!1}}})();var oc={};function sc(e){this.b=e}
(function(){function e(){return b.length?b.pop():[]}function m(d){var f,a;f=0;for(a=d.length;f<a;f++)Array.isArray(d[f])&&m(d[f]);F(d);b.push(d)}function r(){}function p(){}function t(){}var k=sc.prototype;k.ea=function(b){this.Ka=b;this.b=b.b};k.ea.prototype.O=function(){};k.V=function(b){this.type=b;this.b=b.b};var h=k.V.prototype,b=[];Array.isArray||(Array.isArray=function(b){return"[object Array]"===Object.prototype.toString.call(b)});h.O=function(){this.wc=this.C[0];this.xc=this.C[1];this.yc=
this.C[2];this.Xb||(this.Jd=e());var b=this.Jd;b.length=this.wc;var f,a,c;for(f=0;f<this.wc;f++)for(b[f]||(b[f]=e()),b[f].length=this.xc,a=0;a<this.xc;a++)for(b[f][a]||(b[f][a]=e()),b[f][a].length=this.yc,c=0;c<this.yc;c++)b[f][a][c]=0;this.Dr=[];this.Er=[];this.Fr=[];this.Ie=-1};h.Td=function(){var b;for(b=0;b<this.wc;b++)m(this.Jd[b]);F(this.Jd)};h.Qc=function(b,f,a){b=Math.floor(b);f=Math.floor(f);a=Math.floor(a);return isNaN(b)||0>b||b>this.wc-1||isNaN(f)||0>f||f>this.xc-1||isNaN(a)||0>a||a>this.yc-
1?0:this.Jd[b][f][a]};h.set=function(b,f,a,c){b=Math.floor(b);f=Math.floor(f);a=Math.floor(a);isNaN(b)||0>b||b>this.wc-1||isNaN(f)||0>f||f>this.xc-1||isNaN(a)||0>a||a>this.yc-1||(this.Jd[b][f][a]=c)};h.My=function(){return JSON.stringify({c2array:!0,size:[this.wc,this.xc,this.yc],data:this.Jd})};h.Ya=function(){return{size:[this.wc,this.xc,this.yc],data:this.Jd}};h.ib=function(b){var f=b.size;this.wc=f[0];this.xc=f[1];this.yc=f[2];this.Jd=b.data};h.$e=function(b,f,a){0>b&&(b=0);0>f&&(f=0);0>a&&(a=
0);if(this.wc!==b||this.xc!==f||this.yc!==a){this.wc=b;this.xc=f;this.yc=a;var c,g,h=this.Jd;h.length=b;for(b=0;b<this.wc;b++)for(ka(h[b])&&(h[b]=e()),h[b].length=f,c=0;c<this.xc;c++)for(ka(h[b][c])&&(h[b][c]=e()),h[b][c].length=a,g=0;g<this.yc;g++)ka(h[b][c][g])&&(h[b][c][g]=0)}};h.CB=function(){return 0<=this.Ie&&this.Ie<this.Dr.length?this.Dr[this.Ie]:0};h.DB=function(){return 0<=this.Ie&&this.Ie<this.Er.length?this.Er[this.Ie]:0};h.EB=function(){return 0<=this.Ie&&this.Ie<this.Fr.length?this.Fr[this.Ie]:
0};r.prototype.jq=function(b,f,a){return fc(this.Qc(b,0,0),f,a)};h.si=function(b){this.b.Rf(b.ka);b.Tf();this.b.Wd(b.ka)};r.prototype.Ru=function(b){var f,a,c;for(f=0;f<this.wc;f++)for(a=0;a<this.xc;a++)for(c=0;c<this.yc;c++)if(this.Jd[f][a][c]===b)return!0;return!1};k.n=new r;p.prototype.Gq=function(b,f,a){this.$e(b,f,a)};p.prototype.Iq=function(b,f){this.set(b,0,0,f)};p.prototype.Vv=function(b,f,a){var c=0,g=0,h=0,k=this.Jd;switch(a){case 0:0===b?(c=k.length,k.push(e())):(c=0,k.unshift(e()));for(k[c].length=
this.xc;g<this.xc;g++)for(k[c][g]=e(),k[c][g].length=this.yc,h=0;h<this.yc;h++)k[c][g][h]=f;this.wc++;break;case 1:for(;c<this.wc;c++)for(0===b?(g=k[c].length,k[c].push(e())):(g=0,k[c].unshift(e())),k[c][g].length=this.yc,h=0;h<this.yc;h++)k[c][g][h]=f;this.xc++;break;case 2:for(;c<this.wc;c++)for(g=0;g<this.xc;g++)0===b?k[c][g].push(f):k[c][g].unshift(f);this.yc++}};k.q=new p;t.prototype.yn=function(b){b.Ia(this.wc)};t.prototype.sn=function(b){b.Ia(this.xc)};t.prototype.fq=function(b){b.tb(this.My())};
k.J=new t})();function tc(e){this.b=e}
(function(){function e(a){a=Math.pow(10,a/20);isFinite(a)||(a=0);0>a&&(a=0);1<a&&(a=1);return a}function m(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function r(a){a=a.toLowerCase();return ca.hasOwnProperty(a)&&ca[a].length?ca[a][0].ed():E.destination}function p(){return E.createGain?E.createGain():E.createGainNode()}function t(a){return E.createDelay?E.createDelay(a):E.createDelayNode(a)}function k(a,b){a.start?a.start(b||0):a.noteOn(b||0)}function h(a,b,c,d){a.start?a.start(d||
0,b):a.noteGrainOn(d||0,b,c-b)}function b(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function d(a,b,c,d,f,g){this.type="filter";this.Ud=[a,b,c,d,f,g];this.za=p();this.ca=p();this.ca.gain.value=g;this.ba=p();this.ba.gain.value=1-g;this.lb=E.createBiquadFilter();this.lb.type="number"===typeof this.lb.type?a:Jc[a];this.lb.frequency.value=b;this.lb.detune&&(this.lb.detune.value=c);this.lb.Q.value=d;this.lb.gain.value=f;this.za.connect(this.lb);this.za.connect(this.ba);this.lb.connect(this.ca)}function f(a,
b,c){this.type="delay";this.Ud=[a,b,c];this.za=p();this.ca=p();this.ca.gain.value=c;this.ba=p();this.ba.gain.value=1-c;this.xj=p();this.sd=t(a);this.sd.delayTime.value=a;this.dl=p();this.dl.gain.value=b;this.za.connect(this.xj);this.za.connect(this.ba);this.xj.connect(this.ca);this.xj.connect(this.sd);this.sd.connect(this.dl);this.dl.connect(this.xj)}function a(a,b,c,d){this.type="convolve";this.Ud=[b,c,d];this.za=p();this.ca=p();this.ca.gain.value=c;this.ba=p();this.ba.gain.value=1-c;this.eg=E.createConvolver();
a&&(this.eg.normalize=b,this.eg.buffer=a);this.za.connect(this.eg);this.za.connect(this.ba);this.eg.connect(this.ca)}function c(a,b,c,d,f){this.type="flanger";this.Ud=[a,b,c,d,f];this.za=p();this.ba=p();this.ba.gain.value=1-f/2;this.ca=p();this.ca.gain.value=f/2;this.kl=p();this.kl.gain.value=d;this.sd=t(a+b);this.sd.delayTime.value=a;this.Ob=E.createOscillator();this.Ob.frequency.value=c;this.$c=p();this.$c.gain.value=b;this.za.connect(this.sd);this.za.connect(this.ba);this.sd.connect(this.ca);this.sd.connect(this.kl);
this.kl.connect(this.sd);this.Ob.connect(this.$c);this.$c.connect(this.sd.delayTime);k(this.Ob)}function g(a,b,c,d,f,g){this.type="phaser";this.Ud=[a,b,c,d,f,g];this.za=p();this.ba=p();this.ba.gain.value=1-g/2;this.ca=p();this.ca.gain.value=g/2;this.lb=E.createBiquadFilter();this.lb.type="number"===typeof this.lb.type?7:"allpass";this.lb.frequency.value=a;this.lb.detune&&(this.lb.detune.value=b);this.lb.Q.value=c;this.Ob=E.createOscillator();this.Ob.frequency.value=f;this.$c=p();this.$c.gain.value=
d;this.za.connect(this.lb);this.za.connect(this.ba);this.lb.connect(this.ca);this.Ob.connect(this.$c);this.$c.connect(this.lb.frequency);k(this.Ob)}function l(a){this.type="gain";this.Ud=[a];this.Ca=p();this.Ca.gain.value=a}function u(a,b){this.type="tremolo";this.Ud=[a,b];this.Ca=p();this.Ca.gain.value=1-b/2;this.Ob=E.createOscillator();this.Ob.frequency.value=a;this.$c=p();this.$c.gain.value=b/2;this.Ob.connect(this.$c);this.$c.connect(this.Ca.gain);k(this.Ob)}function N(a,b){this.type="ringmod";
this.Ud=[a,b];this.za=p();this.ca=p();this.ca.gain.value=b;this.ba=p();this.ba.gain.value=1-b;this.Xj=p();this.Xj.gain.value=0;this.Ob=E.createOscillator();this.Ob.frequency.value=a;this.Ob.connect(this.Xj.gain);k(this.Ob);this.za.connect(this.Xj);this.za.connect(this.ba);this.Xj.connect(this.ca)}function z(a,b,c,d,f){this.type="distortion";this.Ud=[a,b,c,d,f];this.za=p();this.om=p();this.nm=p();this.EA(c,Math.pow(10,d/20));this.ca=p();this.ca.gain.value=f;this.ba=p();this.ba.gain.value=1-f;this.gn=
E.createWaveShaper();this.bl=new Float32Array(65536);this.Ky(a,b);this.gn.bl=this.bl;this.za.connect(this.om);this.za.connect(this.ba);this.om.connect(this.gn);this.gn.connect(this.nm);this.nm.connect(this.ca)}function n(a,b,c,d,f){this.type="compressor";this.Ud=[a,b,c,d,f];this.Ca=E.createDynamicsCompressor();try{this.Ca.threshold.value=a,this.Ca.knee.value=b,this.Ca.ratio.value=c,this.Ca.attack.value=d,this.Ca.release.value=f}catch(g){}}function q(a,b){this.type="analyser";this.Ud=[a,b];this.Ca=
E.createAnalyser();this.Ca.fftSize=a;this.Ca.smoothingTimeConstant=b;this.Iy=new Float32Array(this.Ca.frequencyBinCount);this.Ut=new Uint8Array(a);this.Kj=0}function da(){this.Fa=null;this.Rl=0}function Y(a,b){this.src=a;this.qa=K;this.td=b;this.Ek=!1;var c=this;this.cp=this.ip=null;this.Pf=[];this.zm=0;this.aq=this.il=this.Yt=this.im=!1;1===K&&b&&!cb&&(this.qa=0,this.ip=p());this.Ce=this.Ea=null;var d;switch(this.qa){case 0:this.Ea=new Audio;this.Ea.crossOrigin="anonymous";this.Ea.addEventListener("canplaythrough",
function(){c.aq=!0});1===K&&E.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.Yt=!0,this.Ea.addEventListener("canplay",function(){c.cp||(c.cp=E.createMediaElementSource(c.Ea),c.cp.connect(c.ip))}));this.Ea.autoplay=!1;this.Ea.GB="auto";this.Ea.src=a;break;case 1:B.$i?B.ur(a,function(a){c.Ce=a;c.kr()},function(){c.il=!0}):(d=new XMLHttpRequest,d.open("GET",a,!0),d.responseType="arraybuffer",d.onload=function(){c.Ce=d.response;c.kr()},d.onerror=function(){c.il=!0},d.send());break;
case 2:this.Ea=!0;break;case 3:this.Ea=!0}}function v(a,b){var c=this;this.tag=b;this.hb=this.me=!0;this.src=a.src;this.buffer=a;this.qa=K;this.td=a.td;this.playbackRate=1;this.yh=!0;this.Vc=this.kd=!1;this.Nc=0;this.bj=this.Ch=this.pe=!1;this.volume=1;this.gp=function(a){if(!c.Vc&&!c.kd){var b=this;b||(b=a.target);b===c.Ck&&(c.yh=!0,c.hb=!0,W=c.tag,B.trigger(tc.prototype.n.zk,Q))}};this.Ck=null;this.Ah=1===O&&!this.td||2===O;this.Rh=1;this.startTime=this.Ah?B.nb.aa:B.gf.aa;this.qb=this.yb=null;this.te=
!1;this.Ub=null;this.kt=this.jt=this.it=this.ht=this.mt=this.lt=0;this.B=null;var d=!1;1!==this.qa||0!==this.buffer.qa||this.buffer.Yt||(this.qa=0);switch(this.qa){case 0:this.td?(this.B=a.Ea,d=!a.Ek,a.Ek=!0):(this.B=new Audio,this.B.crossOrigin="anonymous",this.B.autoplay=!1,this.B.src=a.Ea.src,d=!0);d&&this.B.addEventListener("ended",function(){W=c.tag;c.hb=!0;B.trigger(tc.prototype.n.zk,Q)});break;case 1:this.yb=p();this.yb.connect(r(b));1===this.buffer.qa?a.Ea&&(this.B=E.createBufferSource(),
this.B.buffer=a.Ea,this.B.connect(this.yb)):(this.B=this.buffer.Ea,this.buffer.ip.connect(this.yb),this.buffer.Ek||(this.buffer.Ek=!0,this.buffer.Ea.addEventListener("ended",function(){W=c.tag;c.hb=!0;B.trigger(tc.prototype.n.zk,Q)})));break;case 2:this.B=new window.Media(U+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.yh=!0,c.hb=!0,W=c.tag,B.trigger(tc.prototype.n.zk,Q))});break;case 3:this.B=!0}}function w(a){F(Ia);if(a.length){var b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],nb(a,
d.tag)&&Ia.push(d)}else y&&!y.vg()&&(F(Ia),Ia[0]=y)}function D(a,b){ca.hasOwnProperty(a)?ca[a].push(b):ca[a]=[b];var c,d,f,g,h=E.destination;if(ca.hasOwnProperty(a)&&(f=ca[a],f.length))for(h=f[0].ed(),c=0,d=f.length;c<d;c++)g=f[c],c+1===d?g.qd(E.destination):g.qd(f[c+1].ed());w(a);c=0;for(d=Ia.length;c<d;c++)Ia[c].qA(h);Pa&&Gb===a&&(Pa.disconnect(),Pa.connect(h))}function S(){}function C(){}var I=tc.prototype;I.ea=function(a){this.Ka=a;this.b=a.b};I.ea.prototype.O=function(){};var B=null,Q=null,W=
"",U="",K=0,E=null,T=[],x=[],y=null,L=!1,O=0,G=!1,J=1,P=0,X=0,M=!1,ja=1,ea=1,za=10,Ec=1E4,Fc=1,Pa=null,Gb="",bb=!1,db=[],cb=!1,ca={},Jc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");d.prototype.qd=function(a){this.ca.disconnect();this.ca.connect(a);this.ba.disconnect();this.ba.connect(a)};d.prototype.remove=function(){this.za.disconnect();this.lb.disconnect();this.ca.disconnect();this.ba.disconnect()};d.prototype.ed=function(){return this.za};f.prototype.qd=function(a){this.ca.disconnect();
this.ca.connect(a);this.ba.disconnect();this.ba.connect(a)};f.prototype.remove=function(){this.za.disconnect();this.xj.disconnect();this.sd.disconnect();this.dl.disconnect();this.ca.disconnect();this.ba.disconnect()};f.prototype.ed=function(){return this.za};a.prototype.qd=function(a){this.ca.disconnect();this.ca.connect(a);this.ba.disconnect();this.ba.connect(a)};a.prototype.remove=function(){this.za.disconnect();this.eg.disconnect();this.ca.disconnect();this.ba.disconnect()};a.prototype.ed=function(){return this.za};
c.prototype.qd=function(a){this.ba.disconnect();this.ba.connect(a);this.ca.disconnect();this.ca.connect(a)};c.prototype.remove=function(){this.za.disconnect();this.sd.disconnect();this.Ob.disconnect();this.$c.disconnect();this.ba.disconnect();this.ca.disconnect();this.kl.disconnect()};c.prototype.ed=function(){return this.za};g.prototype.qd=function(a){this.ba.disconnect();this.ba.connect(a);this.ca.disconnect();this.ca.connect(a)};g.prototype.remove=function(){this.za.disconnect();this.lb.disconnect();
this.Ob.disconnect();this.$c.disconnect();this.ba.disconnect();this.ca.disconnect()};g.prototype.ed=function(){return this.za};l.prototype.qd=function(a){this.Ca.disconnect();this.Ca.connect(a)};l.prototype.remove=function(){this.Ca.disconnect()};l.prototype.ed=function(){return this.Ca};u.prototype.qd=function(a){this.Ca.disconnect();this.Ca.connect(a)};u.prototype.remove=function(){this.Ob.disconnect();this.$c.disconnect();this.Ca.disconnect()};u.prototype.ed=function(){return this.Ca};N.prototype.qd=
function(a){this.ca.disconnect();this.ca.connect(a);this.ba.disconnect();this.ba.connect(a)};N.prototype.remove=function(){this.Ob.disconnect();this.Xj.disconnect();this.za.disconnect();this.ca.disconnect();this.ba.disconnect()};N.prototype.ed=function(){return this.za};z.prototype.EA=function(a,b){.01>a&&(a=.01);this.om.gain.value=a;this.nm.gain.value=Math.pow(1/a,.6)*b};z.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};z.prototype.Ky=
function(a,b){for(var c=Math.pow(10,a/20),d=Math.pow(10,b/20),f=0,g=0;32768>g;++g)f=g/32768,f=this.shape(f,c,d),this.bl[32768+g]=f,this.bl[32768-g-1]=-f};z.prototype.qd=function(a){this.ca.disconnect();this.ca.connect(a);this.ba.disconnect();this.ba.connect(a)};z.prototype.remove=function(){this.za.disconnect();this.om.disconnect();this.gn.disconnect();this.nm.disconnect();this.ca.disconnect();this.ba.disconnect()};z.prototype.ed=function(){return this.za};n.prototype.qd=function(a){this.Ca.disconnect();
this.Ca.connect(a)};n.prototype.remove=function(){this.Ca.disconnect()};n.prototype.ed=function(){return this.Ca};q.prototype.Ja=function(){this.Ca.getFloatFrequencyData(this.Iy);this.Ca.getByteTimeDomainData(this.Ut);for(var a=this.Ca.fftSize,b=0,c=this.Kj=0,d=0;b<a;b++)d=(this.Ut[b]-128)/128,0>d&&(d=-d),this.Kj<d&&(this.Kj=d),c+=d*d;this.Kj=m(this.Kj);m(Math.sqrt(c/a))};q.prototype.qd=function(a){this.Ca.disconnect();this.Ca.connect(a)};q.prototype.remove=function(){this.Ca.disconnect()};q.prototype.ed=
function(){return this.Ca};da.prototype.bi=function(a){this.Fa=a};da.prototype.Cl=function(){return!!this.Fa};da.prototype.Ja=function(){};var xb=!1;Y.prototype.rA=function(){var a,b,c,d;c=a=0;for(b=x.length;a<b;++a)d=x[a],x[c]=d,d.buffer===this?d.stop():++c;x.length=c;this.Ce=this.Ea=null};Y.prototype.kr=function(){if(!this.Ea&&this.Ce){var a=this;if(E.decodeAudioData)E.decodeAudioData(this.Ce,function(b){a.Ea=b;a.Ce=null;var c,d,f;if(ka(a.km)||G)ka(a.Wk)||(c=a.Wk.eg,c.normalize=a.Xs,c.buffer=b);
else if(a.Pf.length){c=0;for(d=a.Pf.length;c<d;c++){b=a.Pf[c];f=new v(a,b.Tm);f.$j(!0);if("undefined"!==typeof b.Zs&&(b.Fa=B.tg(b.Zs),!b.Fa))continue;if(b.Fa){var g=Sa(b.Fa.x,b.Fa.y,-b.Fa.A.cb(),P,X,!0),h=Sa(b.Fa.x,b.Fa.y,-b.Fa.A.cb(),P,X,!1);f.Zj(g,h,Ha(b.Fa.u-b.Fa.A.cb()),b.Oi,b.Ej,b.Fj);f.bi(b.Fa)}else f.Zj(b.x,b.y,b.Mq,b.Oi,b.Ej,b.Fj);f.play(a.Vo,a.$p,a.zm);a.im&&f.pause();x.push(f)}F(a.Pf)}else f=new v(a,a.km||""),f.play(a.Vo,a.$p,a.zm),a.im&&f.pause(),x.push(f)},function(){a.il=!0});else if(this.Ea=
E.createBuffer(this.Ce,!1),this.Ce=null,ka(this.km)||G)ka(this.Wk)||(b=this.Wk.eg,b.normalize=this.Xs,b.buffer=this.Ea);else{var b=new v(this,this.km);b.play(this.Vo,this.$p,this.zm);this.im&&b.pause();x.push(b)}}};Y.prototype.gs=function(){switch(this.qa){case 0:var a=4<=this.Ea.readyState;a&&(this.aq=!0);return a||this.aq;case 1:return!!this.Ce||!!this.Ea;case 2:return!0;case 3:return!0}return!1};Y.prototype.Fz=function(){switch(this.qa){case 0:return this.gs();case 1:return!!this.Ea;case 2:return!0;
case 3:return!0}return!1};Y.prototype.uz=function(){switch(this.qa){case 0:return!!this.Ea.error;case 1:return this.il}return!1};v.prototype.vg=function(){switch(this.qa){case 0:return this.B.ended;case 1:return 1===this.buffer.qa?!this.me&&!this.hb&&this.B.loop||this.Vc?!1:this.yh:this.B.ended;case 2:return this.yh;case 3:!0}return!0};v.prototype.ix=function(){return this.me||this.hb?!0:this.vg()};v.prototype.$j=function(a){1===K&&(!this.te&&a?this.yb&&(this.qb||(this.qb=E.createPanner(),this.qb.panningModel=
"number"===typeof this.qb.panningModel?ja:["equalpower","HRTF","soundfield"][ja],this.qb.distanceModel="number"===typeof this.qb.distanceModel?ea:["linear","inverse","exponential"][ea],this.qb.refDistance=za,this.qb.maxDistance=Ec,this.qb.rolloffFactor=Fc),this.yb.disconnect(),this.yb.connect(this.qb),this.qb.connect(r(this.tag)),this.te=!0):this.te&&!a&&this.yb&&(this.qb.disconnect(),this.yb.disconnect(),this.yb.connect(r(this.tag)),this.te=!1))};v.prototype.Zj=function(a,b,c,d,f,g){this.te&&1===
K&&(this.qb.setPosition(a,b,0),this.qb.setOrientation(Math.cos(H(c)),Math.sin(H(c)),0),this.qb.coneInnerAngle=d,this.qb.coneOuterAngle=f,this.qb.coneOuterGain=g,this.lt=a,this.mt=b,this.ht=c,this.it=d,this.jt=f,this.kt=g)};v.prototype.bi=function(a){this.te&&1===K&&(this.Ub||(this.Ub=new da),this.Ub.bi(a))};v.prototype.Ja=function(a){if(this.te&&1===K&&this.Ub&&this.Ub.Cl()&&this.Yi()){this.Ub.Ja(a);a=this.Ub.Fa;var b=Sa(a.x,a.y,-a.A.cb(),P,X,!0),c=Sa(a.x,a.y,-a.A.cb(),P,X,!1);this.qb.setPosition(b,
c,0);b=0;"undefined"!==typeof this.Ub.Fa.u&&(b=a.u-a.A.cb(),this.qb.setOrientation(Math.cos(b),Math.sin(b),0))}};v.prototype.play=function(a,b,c,d){var f=this.B;this.pe=a;this.volume=b;c=c||0;d=d||0;switch(this.qa){case 0:1!==f.playbackRate&&(f.playbackRate=1);f.volume!==b*J&&(f.volume=b*J);f.loop!==a&&(f.loop=a);f.muted&&(f.muted=!1);if(f.currentTime!==c)try{f.currentTime=c}catch(g){}if(this.td&&bb&&!B.zh)db.push(this);else try{this.B.play()}catch(e){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+
this.buffer.src+"': ",e)}break;case 1:this.muted=!1;this.Rh=1;if(1===this.buffer.qa)this.yb.gain.value=b*J,this.me||(this.B=E.createBufferSource(),this.B.buffer=this.buffer.Ea,this.B.connect(this.yb)),this.B.onended=this.gp,this.Ck=this.B,this.B.loop=a,this.yh=!1,0===c?k(this.B,d):h(this.B,c,this.rg(),d);else{1!==f.playbackRate&&(f.playbackRate=1);f.loop!==a&&(f.loop=a);f.volume=b*J;if(f.currentTime!==c)try{f.currentTime=c}catch(l){}this.td&&bb&&!B.zh?db.push(this):f.play()}break;case 2:(!this.me&&
this.hb||0!==c)&&f.seekTo(c);f.play();this.yh=!1;break;case 3:B.zc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.Ah?B.nb.aa:B.gf.aa)-c;this.Vc=this.hb=this.me=!1};v.prototype.stop=function(){switch(this.qa){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.qa?b(this.B):this.B.paused||this.B.pause();break;case 2:this.B.stop();break;case 3:B.zc&&AppMobi.context.stopSound(this.src)}this.hb=!0;this.Vc=!1};v.prototype.pause=
function(){if(!(this.me||this.hb||this.vg()||this.Vc)){switch(this.qa){case 0:this.B.paused||this.B.pause();break;case 1:1===this.buffer.qa?(this.Nc=this.ko(!0),this.pe&&(this.Nc=this.Nc%this.rg()),this.Vc=!0,b(this.B)):this.B.paused||this.B.pause();break;case 2:this.B.pause();break;case 3:B.zc&&AppMobi.context.stopSound(this.src)}this.Vc=!0}};v.prototype.vA=function(){if(!(this.me||this.hb||this.vg())&&this.Vc){switch(this.qa){case 0:this.B.play();break;case 1:1===this.buffer.qa?(this.B=E.createBufferSource(),
this.B.buffer=this.buffer.Ea,this.B.connect(this.yb),this.B.onended=this.gp,this.Ck=this.B,this.B.loop=this.pe,this.yb.gain.value=J*this.volume*this.Rh,this.an(),this.startTime=(this.Ah?B.nb.aa:B.gf.aa)-this.Nc/(this.playbackRate||.001),h(this.B,this.Nc,this.rg())):this.B.play();break;case 2:this.B.play();break;case 3:B.zc&&AppMobi.context.resumeSound(this.src)}this.Vc=!1}};v.prototype.seek=function(a){if(!(this.me||this.hb||this.vg()))switch(this.qa){case 0:try{this.B.currentTime=a}catch(b){}break;
case 1:if(1===this.buffer.qa)this.Vc?this.Nc=a:(this.pause(),this.Nc=a,this.vA());else try{this.B.currentTime=a}catch(c){}break;case 3:B.zc&&AppMobi.context.seekSound(this.src,a)}};v.prototype.qA=function(a){1===this.qa&&(this.te?(this.qb.disconnect(),this.qb.connect(a)):(this.yb.disconnect(),this.yb.connect(a)))};v.prototype.rg=function(){var a=0;switch(this.qa){case 0:"undefined"!==typeof this.B.duration&&(a=this.B.duration);break;case 1:a=this.buffer.Ea.duration;break;case 2:a=this.B.getDuration();
break;case 3:B.zc&&(a=AppMobi.context.getDurationSound(this.src))}return a};v.prototype.ko=function(a){var b=this.rg(),c=0;switch(this.qa){case 0:"undefined"!==typeof this.B.currentTime&&(c=this.B.currentTime);break;case 1:if(1===this.buffer.qa){if(this.Vc)return this.Nc;c=(this.Ah?B.nb.aa:B.gf.aa)-this.startTime}else"undefined"!==typeof this.B.currentTime&&(c=this.B.currentTime);break;case 3:B.zc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.pe&&c>b&&(c=b);return c};
v.prototype.Yi=function(){return!this.Vc&&!this.me&&!this.hb&&!this.vg()};v.prototype.KA=function(){return!this.me&&!this.hb&&!this.vg()};v.prototype.ru=function(){var a=this.volume*J;isFinite(a)||(a=0);switch(this.qa){case 0:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a);break;case 1:1===this.buffer.qa?this.yb.gain.value=a*this.Rh:"undefined"!==typeof this.B.volume&&this.B.volume!==a&&(this.B.volume=a)}};v.prototype.gl=function(a){switch(this.qa){case 0:this.B.muted!==!!a&&
(this.B.muted=!!a);break;case 1:1===this.buffer.qa?(this.Rh=a?0:1,this.yb.gain.value=J*this.volume*this.Rh):this.B.muted!==!!a&&(this.B.muted=!!a)}};v.prototype.FA=function(){this.Ch=!0;this.gl(this.Ch||this.bj)};v.prototype.Em=function(a){this.bj=!!a;this.gl(this.Ch||this.bj)};v.prototype.an=function(){var a=this.playbackRate;this.Ah&&(a*=B.dh);switch(this.qa){case 0:this.B.playbackRate!==a&&(this.B.playbackRate=a);break;case 1:1===this.buffer.qa?this.B.playbackRate.value!==a&&(this.B.playbackRate.value=
a):this.B.playbackRate!==a&&(this.B.playbackRate=a)}};v.prototype.HA=function(a){switch(this.qa){case 0:a?this.Yi()?(this.kd=!0,this.B.pause()):this.kd=!1:this.kd&&(this.B.play(),this.kd=!1);break;case 1:a?this.Yi()?(this.kd=!0,1===this.buffer.qa?(this.Nc=this.ko(!0),this.pe&&(this.Nc=this.Nc%this.rg()),b(this.B)):this.B.pause()):this.kd=!1:this.kd&&(1===this.buffer.qa?(this.B=E.createBufferSource(),this.B.buffer=this.buffer.Ea,this.B.connect(this.yb),this.B.onended=this.gp,this.Ck=this.B,this.B.loop=
this.pe,this.yb.gain.value=J*this.volume*this.Rh,this.an(),this.startTime=(this.Ah?B.nb.aa:B.gf.aa)-this.Nc/(this.playbackRate||.001),h(this.B,this.Nc,this.rg())):this.B.play(),this.kd=!1);break;case 2:a?this.Yi()?(this.B.pause(),this.kd=!0):this.kd=!1:this.kd&&(this.kd=!1,this.B.play())}};I.V=function(a){function b(){if(!M&&E.createBuffer){var a=E.createBuffer(1,220,22050),c=E.createBufferSource();c.buffer=a;c.connect(E.destination);k(c)}}this.type=a;B=this.b=a.b;Q=this;this.Yc=null;this.pj=-600;
this.b.$i&&(cb=!0);!(this.b.ej||this.b.Gl&&(this.b.Ti||this.b.Hl))||this.b.Jl||this.b.mc||this.b.ds||cb||(bb=!0);E=null;"undefined"!==typeof AudioContext?(K=1,E=new AudioContext):"undefined"!==typeof webkitAudioContext&&(K=1,E=new webkitAudioContext);this.b.ej&&E&&(E.close&&E.close(),"undefined"!==typeof AudioContext?E=new AudioContext:"undefined"!==typeof webkitAudioContext&&(E=new webkitAudioContext));bb?document.addEventListener("touchend",function(){!xb&&E&&(b(),xb=!0);var a,c,d;if(bb){if(!G)for(a=
0,c=db.length;a<c;++a)d=db[a],d.hb||d.Vc||d.B.play();F(db)}},!0):cb&&document.addEventListener("touchend",function(){!xb&&E&&(b(),xb=!0)},!0);1!==K&&(this.b.Ke&&"undefined"!==typeof window.Media?K=2:this.b.es&&(K=3));2===K&&(U=location.href,a=U.lastIndexOf("/"),-1<a&&(U=U.substr(0,a+1)),U=U.replace("file://",""));if(this.b.Gz&&this.b.Iz&&"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.ge(this);
else{if(this.b.zc)L=this.b.Gl;else try{L=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(c){L=!1}this.b.bh(this)}};var wa=I.V.prototype;wa.O=function(){this.b.hh=this;O=this.C[0];this.Ye=this.C[1];this.eA=0!==this.C[2];this.Th=0;ja=this.C[3];ea=this.C[4];this.pj=-this.C[5];za=this.C[6];Ec=this.C[7];Fc=this.C[8];this.Yc=new da;var a=this.b.U||this.b.width,b=this.b.T||this.b.height;1===K&&(E.listener.setPosition(a/2,b/2,this.pj),E.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=
function(a,b){Pa&&Pa.disconnect();Gb=b.toLowerCase();Pa=E.createMediaStreamSource(a);Pa.connect(r(Gb))});this.b.Vw(function(a){Q.$z(a)});var c=this;this.b.Dk(function(a){c.Hj(a)})};wa.Hj=function(a){var b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],d.Ub&&d.Ub.Fa===a&&(d.Ub.Fa=null,d.te&&d.Yi()&&d.pe&&d.stop());this.Yc.Fa===a&&(this.Yc.Fa=null)};wa.Ya=function(){var a={silent:G,masterVolume:J,listenerZ:this.pj,listenerUid:this.Yc.Cl()?this.Yc.Fa.uid:-1,playing:[],effects:{}},b=a.playing,c,d,f,g,h,k;c=0;
for(d=x.length;c<d;c++)f=x[c],!f.KA()||3===this.Ye||f.td&&1===this.Ye||!f.td&&2===this.Ye||(g=f.ko(),f.pe&&(g=g%f.rg()),g={tag:f.tag,buffersrc:f.buffer.src,is_music:f.td,playbackTime:g,volume:f.volume,looping:f.pe,muted:f.Ch,playbackRate:f.playbackRate,paused:f.Vc,resume_position:f.Nc},f.te&&(g.pan={},k=g.pan,f.Ub&&f.Ub.Cl()?k.objUid=f.Ub.Fa.uid:(k.x=f.lt,k.y=f.mt,k.a=f.ht),k.ia=f.it,k.oa=f.jt,k.og=f.kt),b.push(g));b=a.effects;for(h in ca)if(ca.hasOwnProperty(h)){f=[];c=0;for(d=ca[h].length;c<d;c++)f.push({type:ca[h][c].type,
params:ca[h][c].Ud});b[h]=f}return a};var eb=[];wa.ib=function(b){var h=b.silent;J=b.masterVolume;this.pj=b.listenerZ;this.Yc.bi(null);var k=b.listenerUid;-1!==k&&(this.Yc.Rl=k,eb.push(this.Yc));var k=b.playing,e,p,w,r,m,t,S,B,C,v,I;if(3!==this.Ye)for(e=0,p=x.length;e<p;e++)C=x[e],C.td&&1===this.Ye||(C.td||2!==this.Ye)&&C.stop();for(m in ca)if(ca.hasOwnProperty(m))for(e=0,p=ca[m].length;e<p;e++)ca[m][e].remove();Wa(ca);for(m in b.effects)if(b.effects.hasOwnProperty(m))for(t=b.effects[m],e=0,p=t.length;e<
p;e++)switch(w=t[e].type,v=t[e].params,w){case "filter":D(m,new d(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "delay":D(m,new f(v[0],v[1],v[2]));break;case "convolve":w=v[2];C=this.vh(w,!1);C.Ea?w=new a(C.Ea,v[0],v[1],w):(w=new a(null,v[0],v[1],w),C.Xs=v[0],C.Wk=w);D(m,w);break;case "flanger":D(m,new c(v[0],v[1],v[2],v[3],v[4]));break;case "phaser":D(m,new g(v[0],v[1],v[2],v[3],v[4],v[5]));break;case "gain":D(m,new l(v[0]));break;case "tremolo":D(m,new u(v[0],v[1]));break;case "ringmod":D(m,new N(v[0],
v[1]));break;case "distortion":D(m,new z(v[0],v[1],v[2],v[3],v[4]));break;case "compressor":D(m,new n(v[0],v[1],v[2],v[3],v[4]));break;case "analyser":D(m,new q(v[0],v[1]))}e=0;for(p=k.length;e<p;e++)3===this.Ye||(b=k[e],w=b.buffersrc,r=b.is_music,m=b.tag,t=b.playbackTime,S=b.looping,B=b.volume,I=(v=b.pan)&&v.hasOwnProperty("objUid")?v.objUid:-1,r&&1===this.Ye)||!r&&2===this.Ye||((C=this.Gi(w,m,r,S,B))?(C.Nc=b.resume_position,C.$j(!!v),C.play(S,B,t),C.an(),C.ru(),C.gl(C.Ch||C.bj),b.paused&&C.pause(),
b.muted&&C.FA(),C.gl(C.Ch||C.bj),v&&(-1!==I?(C.Ub=C.Ub||new da,C.Ub.Rl=I,eb.push(C.Ub)):C.Zj(v.x,v.y,v.a,v.ia,v.oa,v.og))):(C=this.vh(w,r),C.zm=t,C.im=b.paused,v&&(-1!==I?C.Pf.push({Zs:I,Oi:v.ia,Ej:v.oa,Fj:v.og,Tm:m}):C.Pf.push({x:v.x,y:v.y,Mq:v.a,Oi:v.ia,Ej:v.oa,Fj:v.og,Tm:m}))));if(h&&!G){e=0;for(p=x.length;e<p;e++)x[e].Em(!0);G=!0}else if(!h&&G){e=0;for(p=x.length;e<p;e++)x[e].Em(!1);G=!1}};wa.Fd=function(){var a,b,c,d;a=0;for(b=eb.length;a<b;a++)c=eb[a],d=this.b.tg(c.Rl),c.bi(d),c.Rl=-1,d&&(P=
d.x,X=d.y);F(eb)};wa.$z=function(a){if(!this.eA){!a&&E&&E.resume&&(E.resume(),M=!1);var b,c;b=0;for(c=x.length;b<c;b++)x[b].HA(a);a&&E&&E.suspend&&(E.suspend(),M=!0)}};wa.Ja=function(){var a=this.b.ig,b,c,d;b=0;for(c=x.length;b<c;b++)d=x[b],d.Ja(a),0!==O&&d.an();var f,g;for(f in ca)if(ca.hasOwnProperty(f))for(d=ca[f],b=0,c=d.length;b<c;b++)g=d[b],g.Ja&&g.Ja();1===K&&this.Yc.Cl()&&(this.Yc.Ja(a),P=this.Yc.Fa.x,X=this.Yc.Fa.y,E.listener.setPosition(this.Yc.Fa.x,this.Yc.Fa.y,this.pj))};var fb=[];wa.GA=
function(a){var b,c,d,f,g,h=0;b=0;for(c=a.length;b<c;++b)if(d=a[b],f=d[0],d=2*d[1],(g=4<f.length&&".ogg"===f.substr(f.length-4))&&L||!g&&!L)fb.push({filename:f,size:d,Fa:null}),h+=d;return h};wa.MA=function(){var a,b,c,d;a=0;for(b=fb.length;a<b;++a)c=fb[a],d=this.b.rh+c.filename,c.Fa=this.vh(d,!1)};wa.Xy=function(){var a=0,b,c,d;b=0;for(c=fb.length;b<c;++b)d=fb[b],d.Fa.Fz()||d.Fa.uz()||this.b.mc||this.b.Hl?a+=d.size:d.Fa.gs()&&(a+=Math.floor(d.size/2));return a};wa.sA=function(){var a,b,c,d;c=a=0;
for(b=T.length;a<b;++a)d=T[a],T[c]=d,d.td?d.rA():++c;T.length=c};wa.vh=function(a,b){var c,d,f,g=null;c=0;for(d=T.length;c<d;c++)if(f=T[c],f.src===a){g=f;break}g||(cb&&b&&this.sA(),g=new Y(a,b),T.push(g));return g};wa.Gi=function(a,b,c,d,f){var g,h,k;g=0;for(h=x.length;g<h;g++)if(k=x[g],k.src===a&&(k.ix()||c))return k.tag=b,k;a=this.vh(a,c);if(!a.Ea)return"<preload>"!==b&&(a.km=b,a.Vo=d,a.$p=f),null;k=new v(a,b);x.push(k);return k};var Ia=[];S.prototype.zk=function(a){return nb(W,a)};I.n=new S;C.prototype.Play=
function(a,b,c,d){!G&&(c=e(c),y=this.Gi(this.b.rh+a[0]+(L?".ogg":".m4a"),d,a[1],0!==b,c))&&(y.$j(!1),y.play(0!==b,c,0,this.Th),this.Th=0)};C.prototype.Tv=function(a,b,c,d,f,g,h,k,l,n){if(!G){c=e(c);var q=a[1];a=this.b.rh+a[0]+(L?".ogg":".m4a");(y=this.Gi(a,n,q,0!==b,c))?(y.$j(!0),y.Zj(d,f,g,h,k,e(l)),y.play(0!==b,c,0,this.Th),this.Th=0):this.vh(a,q).Pf.push({x:d,y:f,Mq:g,Oi:h,Ej:k,Fj:e(l),Tm:n})}};C.prototype.Sv=function(a,b,c,d,f,g,h,k){if(!G&&d&&(d=d.wl())){c=e(c);var l=a[1];a=this.b.rh+a[0]+(L?
".ogg":".m4a");(y=this.Gi(a,k,l,0!==b,c))?(y.$j(!0),k=Sa(d.x,d.y,-d.A.cb(),P,X,!0),a=Sa(d.x,d.y,-d.A.cb(),P,X,!1),y.Zj(k,a,Ha(d.u-d.A.cb()),f,g,e(h)),y.bi(d),y.play(0!==b,c,0,this.Th),this.Th=0):this.vh(a,l).Pf.push({Fa:d,Oi:f,Ej:g,Fj:e(h),Tm:k})}};C.prototype.Uv=function(a){if(!G){var b=a[1];a=this.b.rh+a[0]+(L?".ogg":".m4a");3===K?this.b.zc?AppMobi.context.loadSound(a):AppMobi.player.loadSound(a):2!==K&&this.Gi(a,"<preload>",b,!1)}};C.prototype.Jw=function(a){w(a);var b;a=0;for(b=Ia.length;a<b;a++)Ia[a].stop()};
C.prototype.Kw=function(){var a,b;a=0;for(b=x.length;a<b;a++)x[a].stop()};C.prototype.ww=function(a){var b;2===a&&(a=G?1:0);if(0===a&&!G){a=0;for(b=x.length;a<b;a++)x[a].Em(!0);G=!0}else if(1===a&&G){a=0;for(b=x.length;a<b;a++)x[a].Em(!1);G=!1}};C.prototype.lw=function(a){J=e(a);var b;a=0;for(b=x.length;a<b;a++)x[a].ru()};I.q=new C;I.J=new function(){}})();function uc(e){this.b=e}
(function(){function e(){}var m=uc.prototype;m.ea=function(e){this.Ka=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e){this.type=e;this.b=e.b;this.Hh=Array(256);this.qk=Array(256);this.ff=0};var r=m.V.prototype;r.O=function(){var e=this;this.b.mc||(jQuery(document).keydown(function(k){e.ep(k)}),jQuery(document).keyup(function(k){e.fp(k)}))};var p=[32,33,34,35,36,37,38,39,40,44];r.ep=function(e){var k=!1;window!=window.top&&-1<p.indexOf(e.which)&&(e.preventDefault(),k=!0,e.stopPropagation());
if(this.Hh[e.which])this.qk[e.which]&&!k&&e.preventDefault();else{this.Hh[e.which]=!0;this.ff=e.which;this.b.zh=!0;this.b.trigger(uc.prototype.n.rq,this);var h=this.b.trigger(uc.prototype.n.vq,this),b=this.b.trigger(uc.prototype.n.Iv,this);this.b.zh=!1;if(h||b)this.qk[e.which]=!0,k||e.preventDefault()}};r.fp=function(e){this.Hh[e.which]=!1;this.ff=e.which;this.b.zh=!0;this.b.trigger(uc.prototype.n.sq,this);var k=this.b.trigger(uc.prototype.n.xq,this),h=this.b.trigger(uc.prototype.n.wq,this);this.b.zh=
!1;if(k||h||this.qk[e.which])this.qk[e.which]=!0,e.preventDefault()};r.Sg=function(){var e;for(e=0;256>e;++e)if(this.Hh[e]){this.Hh[e]=!1;this.ff=e;this.b.trigger(uc.prototype.n.sq,this);var k=this.b.trigger(uc.prototype.n.xq,this),h=this.b.trigger(uc.prototype.n.wq,this);if(k||h)this.qk[e]=!0}};r.Ya=function(){return{triggerKey:this.ff}};r.ib=function(e){this.ff=e.triggerKey};e.prototype.nv=function(e){return this.Hh[e]};e.prototype.vq=function(e){return e===this.ff};e.prototype.rq=function(){return!0};
e.prototype.sq=function(){return!0};e.prototype.xq=function(e){return e===this.ff};e.prototype.Iv=function(e){return e===this.ff};e.prototype.wq=function(e){return e===this.ff};m.n=new e;m.q=new function(){};m.J=new function(){}})();function vc(e){this.b=e}
(function(){function e(e){this.Qa=e;this.Ta=!1;this.u=this.speed=this.y=this.x=0;this.opacity=1;this.pf=this.xh=this.size=this.zl=0}function m(){}var r=vc.prototype;r.ea=function(e){this.Ka=e;this.b=e.b};var p=r.ea.prototype;p.O=function(){this.M||(this.N=new Image,this.N.Xk=this.nk,this.ta=null,this.b.dn(this.N,this.mk))};p.Wh=function(){this.M||(this.ta=null)};p.Jj=function(){this.M||!this.k.length||this.ta||(this.ta=this.b.H.Nh(this.N,!0,this.b.Oa,this.ok))};p.Oh=function(){this.M||this.ta||!this.b.H||
(this.ta=this.b.H.Nh(this.N,!0,this.b.Oa,this.ok))};p.pk=function(){this.M||this.k.length||!this.ta||(this.b.H.deleteTexture(this.ta),this.ta=null)};p.Oj=function(e){e.drawImage(this.N,0,0)};e.prototype.init=function(){var e=this.Qa;this.x=e.x-e.jn/2+Math.random()*e.jn;this.y=e.y-e.mn/2+Math.random()*e.mn;this.speed=e.Ao-e.Om/2+Math.random()*e.Om;this.u=e.u-e.hk/2+Math.random()*e.hk;this.opacity=e.yo;this.size=e.zo-e.Nm/2+Math.random()*e.Nm;this.zl=e.ro-e.Al/2+Math.random()*e.Al;this.pf=this.xh=0};
e.prototype.Ja=function(e){var h=this.Qa;this.x+=Math.cos(this.u)*this.speed*e;this.y+=Math.sin(this.u)*this.speed*e;this.y+=this.xh*e;this.speed+=h.Hb*e;this.size+=this.zl*e;this.xh+=h.mb*e;this.pf+=e;1>this.size?this.Ta=!1:(0!==h.mj&&(this.u+=Math.random()*h.mj*e-h.mj*e/2),0!==h.oj&&(this.speed+=Math.random()*h.oj*e-h.oj*e/2),0!==h.nj&&(this.opacity+=Math.random()*h.nj*e-h.nj*e/2,0>this.opacity?this.opacity=0:1<this.opacity&&(this.opacity=1)),1>=h.mh&&this.pf>=h.timeout&&(this.Ta=!1),2===h.mh&&
0>=this.speed&&(this.Ta=!1))};e.prototype.Tc=function(e){var h=this.Qa.opacity*this.opacity;if(0!==h){0===this.Qa.mh&&(h*=1-this.pf/this.Qa.timeout);e.globalAlpha=h;var h=this.x-this.size/2,b=this.y-this.size/2;this.Qa.b.Kc&&(h=h+.5|0,b=b+.5|0);e.drawImage(this.Qa.type.N,h,b,this.size,this.size)}};e.prototype.Kb=function(e){var h=this.Qa.opacity*this.opacity;0===this.Qa.mh&&(h*=1-this.pf/this.Qa.timeout);var b=this.size,d=b*this.Qa.pt,f=this.x-b/2,a=this.y-b/2;this.Qa.b.Kc&&(f=f+.5|0,a=a+.5|0);1>
d||0===h||(d<e.Sz||d>e.Xo?(e.Ze(h),e.Yh(f,a,f+b,a,f+b,a+b,f,a+b)):e.fA(this.x,this.y,d,h))};e.prototype.left=function(){return this.x-this.size/2};e.prototype.right=function(){return this.x+this.size/2};e.prototype.top=function(){return this.y-this.size/2};e.prototype.bottom=function(){return this.y+this.size/2};r.V=function(e){this.type=e;this.b=e.b};var p=r.V.prototype,t=[];p.O=function(){var e=this.C;this.Tj=e[0];this.hk=H(e[1]);this.Yg=e[2];this.Gp=!0;this.Ao=e[3];this.zo=e[4];this.yo=e[5]/100;
this.ro=e[6];this.jn=e[7];this.mn=e[8];this.Om=e[9];this.Nm=e[10];this.Al=e[11];this.Hb=e[12];this.mb=e[13];this.mj=e[14];this.oj=e[15];this.nj=e[16];this.mh=e[17];this.timeout=e[18];this.Tg=0;this.pt=1;this.fm=this.x;this.hm=this.y;this.gm=this.x;this.em=this.y;this.Ww(function(h){h.Y.set(h.fm,h.hm,h.gm,h.em);h.Pb.Wg(h.Y);h.Nk=!1;h.Yp();h.su()});this.Xb||(this.rb=[]);this.b.bh(this);this.type.Oh();if(1===this.Yg)for(e=0;e<this.Tj;e++)this.Fk().opacity=0;this.Fi=!0};p.Ya=function(){var e={r:this.Tj,
sc:this.hk,st:this.Yg,s:this.Gp,isp:this.Ao,isz:this.zo,io:this.yo,gr:this.ro,xr:this.jn,yr:this.mn,spr:this.Om,szr:this.Nm,grnd:this.Al,acc:this.Hb,g:this.mb,lar:this.mj,lsr:this.oj,lor:this.nj,dm:this.mh,to:this.timeout,pcc:this.Tg,ft:this.Fi,p:[]},h,b,d,f=e.p;h=0;for(b=this.rb.length;h<b;h++)d=this.rb[h],f.push([d.x,d.y,d.speed,d.u,d.opacity,d.zl,d.size,d.xh,d.pf]);return e};p.ib=function(e){this.Tj=e.r;this.hk=e.sc;this.Yg=e.st;this.Gp=e.s;this.Ao=e.isp;this.zo=e.isz;this.yo=e.io;this.ro=e.gr;
this.jn=e.xr;this.mn=e.yr;this.Om=e.spr;this.Nm=e.szr;this.Al=e.grnd;this.Hb=e.acc;this.mb=e.g;this.mj=e.lar;this.oj=e.lsr;this.nj=e.lor;this.mh=e.dm;this.timeout=e.to;this.Tg=e.pcc;this.Fi=e.ft;t.push.apply(t,this.rb);F(this.rb);var h,b,d,f=e.p;e=0;for(h=f.length;e<h;e++)b=this.Fk(),d=f[e],b.x=d[0],b.y=d[1],b.speed=d[2],b.u=d[3],b.opacity=d[4],b.zl=d[5],b.size=d[6],b.xh=d[7],b.pf=d[8]};p.Td=function(){t.push.apply(t,this.rb);F(this.rb)};p.Fk=function(){var k;t.length?(k=t.pop(),k.Qa=this):k=new e(this);
this.rb.push(k);k.Ta=!0;return k};p.Ja=function(){var e=this.b.Ff(this),h,b,d,f;if(0===this.Yg&&this.Gp)for(this.Tg+=e*this.Tj,b=A(this.Tg),this.Tg-=b,h=0;h<b;h++)d=this.Fk(),d.init();this.fm=this.x;this.hm=this.y;this.gm=this.x;this.em=this.y;f=h=0;for(b=this.rb.length;h<b;h++)d=this.rb[h],this.rb[f]=d,this.b.ja=!0,1===this.Yg&&this.Fi&&d.init(),d.Ja(e),d.Ta?(d.left()<this.fm&&(this.fm=d.left()),d.right()>this.gm&&(this.gm=d.right()),d.top()<this.hm&&(this.hm=d.top()),d.bottom()>this.em&&(this.em=
d.bottom()),f++):t.push(d);Ba(this.rb,f);this.D();this.Fi=!1;1===this.Yg&&0===this.rb.length&&this.b.ge(this)};p.Tc=function(e){var h,b,d,f=this.A;h=0;for(b=this.rb.length;h<b;h++)d=this.rb[h],d.right()>=f.wa&&d.bottom()>=f.xa&&d.left()<=f.Ba&&d.top()<=f.Aa&&d.Tc(e)};p.Kb=function(e){this.pt=this.A.Fc();e.Bc(this.type.ta);var h,b,d,f=this.A;h=0;for(b=this.rb.length;h<b;h++)d=this.rb[h],d.right()>=f.wa&&d.bottom()>=f.xa&&d.left()<=f.Ba&&d.top()<=f.Aa&&d.Kb(e)};r.n=new function(){};m.prototype.uw=function(e){this.Tj=
e;var h;if(1===this.Yg&&this.Fi)if(e<this.rb.length)for(e=this.rb.length-e,h=0;h<e;h++)t.push(this.rb.pop());else if(e>this.rb.length)for(e=e-this.rb.length,h=0;h<e;h++)this.Fk().opacity=0};m.prototype.yw=function(e){this.hk=H(e)};m.prototype.Bk=function(e){this.mb=e};r.q=new m;r.J=new function(){}})();function V(e){this.b=e}
(function(){function e(){if(0===this.On.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.ei?b.drawImage(this.N,this.Uh,this.Vh,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.N,0,0,this.width,this.height);this.On=a.toDataURL("image/png")}return this.On}function m(){}function r(a){a[0]=0;a[1]=0;a[2]=0;u.push(a)}function p(a,b){return a<b?""+a+","+b:""+b+","+a}function t(a,b,c,d){b=b.uid;c=c.uid;var f=p(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var g=u.length?u.pop():[0,0,0];g[0]=b;g[1]=c;g[2]=d;a[f]=g}}function k(a,b,c){b=p(b.uid,c.uid);a.hasOwnProperty(b)&&(r(a[b]),delete a[b])}function h(a,b,c){b=p(b.uid,c.uid);if(a.hasOwnProperty(b))return N=a[b][2],!0;N=-2;return!1}function b(a,b,c){if(!a)return!1;var d=0!==b||0!==c,f,g,e=!1,h,k=this.b.Ef(),l=k.type,k=k.zg,p=a.W();h=this.b.Wa().Ua.jd;p.X?(this.la(),v.jh(this.Y),v.offset(b,c),this.b.eo(this.A,a,v,Y),p=Y):p=h?this.b.Cz()&&!p.Z.length&&p.k.length?p.k:p.Z:p.k;n=a;da=l!==a&&!k;d&&
(f=this.x,g=this.y,this.x+=b,this.y+=c,this.D());b=0;for(c=p.length;b<c;b++)if(h=p[b],this.b.$b(this,h)){e=!0;if(k)break;l!==a&&q.add(h)}d&&(this.x=f,this.y=g,this.D());F(Y);return e}function d(){}function f(){}var a=V.prototype;a.ea=function(a){this.Ka=a;this.b=a.b};var c=a.ea.prototype;c.O=function(){if(!this.M){var a,b,c,d,f,g,h,k,l;this.Gd=[];this.Mi=!1;a=0;for(b=this.Pc.length;a<b;a++){f=this.Pc[a];h={};h.name=f[0];h.speed=f[1];h.loop=f[2];h.up=f[3];h.vp=f[4];h.qt=f[5];h.ra=f[6];h.frames=[];
c=0;for(d=f[7].length;c<d;c++)g=f[7][c],k={},k.mk=g[0],k.nk=g[1],k.Uh=g[2],k.Vh=g[3],k.width=g[4],k.height=g[5],k.duration=g[6],k.Gc=g[7],k.Hc=g[8],k.wo=g[9],k.lm=g[10],k.tt=g[11],k.ei=0!==k.width,k.On="",k.zB=e,l={left:0,top:0,right:1,bottom:1},k.Dp=l,k.ta=null,(l=this.b.Gy(g[0]))?k.N=l:(k.N=new Image,k.N.nx=g[0],k.N.Xk=g[1],k.N.hx=null,this.b.dn(k.N,g[0])),h.frames.push(k),this.Gd.push(k);this.Pc[a]=h}}};c.qu=function(){var a,b,c;a=0;for(b=this.k.length;a<b;a++)c=this.k[a],c.Zk=c.Jb.ta};c.Wh=function(){if(!this.M){var a,
b,c;a=0;for(b=this.Gd.length;a<b;++a)c=this.Gd[a],c.N.hx=null,c.ta=null;this.Mi=!1;this.qu()}};c.Jj=function(){if(!this.M&&this.k.length){var a,b,c;a=0;for(b=this.Gd.length;a<b;++a)c=this.Gd[a],c.ta=this.b.H.Nh(c.N,!1,this.b.Oa,c.tt);this.qu()}};c.Oh=function(){if(!this.M&&!this.Mi&&this.b.H){var a,b,c;a=0;for(b=this.Gd.length;a<b;++a)c=this.Gd[a],c.ta=this.b.H.Nh(c.N,!1,this.b.Oa,c.tt);this.Mi=!0}};c.pk=function(){if(!this.M&&!this.k.length&&this.Mi){var a,b,c;a=0;for(b=this.Gd.length;a<b;++a)c=
this.Gd[a],this.b.H.deleteTexture(c.ta),c.ta=null;this.Mi=!1}};var g=[];c.Oj=function(a){var b,c,d;F(g);b=0;for(c=this.Gd.length;b<c;++b)d=this.Gd[b].N,-1===g.indexOf(d)&&(a.drawImage(d,0,0),g.push(d))};a.V=function(a){this.type=a;this.b=a.b;a=this.type.Pc[0].frames[0].lm;this.Xb?this.ua.bk(a):this.ua=new hb(a)};var l=a.V.prototype;l.O=function(){this.visible=0===this.C[0];this.El=this.Dg=!1;this.ie=0!==this.C[3];this.Na=this.Ir(this.C[1])||this.type.Pc[0];this.P=this.C[2];0>this.P&&(this.P=0);this.P>=
this.Na.frames.length&&(this.P=this.Na.frames.length-1);var a=this.Na.frames[this.P];this.ua.bk(a.lm);this.Gc=a.Gc;this.Hc=a.Hc;this.fg=this.Na.speed;this.zf=this.Na.vp;1===this.type.Pc.length&&1===this.type.Pc[0].frames.length||0===this.fg||(this.b.bh(this),this.Dg=!0);this.Xb?this.he.reset():this.he=new ab;this.Je=this.he.aa;this.$f=!0;this.Be=0;this.rf=!0;this.ih=this.Rq="";this.er=0;this.Sk=-1;this.type.Oh();var b,c,d,f,g,e,h,a=0;for(b=this.type.Pc.length;a<b;a++)for(f=this.type.Pc[a],c=0,d=f.frames.length;c<
d;c++)g=f.frames[c],0===g.width&&(g.width=g.N.width,g.height=g.N.height),g.ei&&(h=g.N,e=g.Dp,e.left=g.Uh/h.width,e.top=g.Vh/h.height,e.right=(g.Uh+g.width)/h.width,e.bottom=(g.Vh+g.height)/h.height,0===g.Uh&&0===g.Vh&&g.width===h.width&&g.height===h.height&&(g.ei=!1));this.Jb=this.Na.frames[this.P];this.Zk=this.Jb.ta};l.Ya=function(){var a={a:this.Na.ra,f:this.P,cas:this.fg,fs:this.Je,ar:this.Be,at:this.he.aa,rt:this.zf};this.$f||(a.ap=this.$f);this.rf||(a.af=this.rf);return a};l.ib=function(a){var b=
this.Ly(a.a);b&&(this.Na=b);this.P=a.f;0>this.P&&(this.P=0);this.P>=this.Na.frames.length&&(this.P=this.Na.frames.length-1);this.fg=a.cas;this.Je=a.fs;this.Be=a.ar;this.he.reset();this.he.aa=a.at;this.$f=a.hasOwnProperty("ap")?a.ap:!0;this.rf=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.zf=a.rt:this.zf=this.Na.vp;this.Jb=this.Na.frames[this.P];this.Zk=this.Jb.ta;this.ua.bk(this.Jb.lm);this.Gc=this.Jb.Gc;this.Hc=this.Jb.Hc};l.Bn=function(a){this.P=a?0:this.Na.frames.length-1;this.$f=
!1;this.Rq=this.Na.name;this.El=!0;this.b.trigger(V.prototype.n.qq,this);this.b.trigger(V.prototype.n.pq,this);this.El=!1;this.Be=0};l.si=function(){return this.he.aa};l.Ja=function(){this.he.add(this.b.Ff(this));this.ih.length&&this.lr();0<=this.Sk&&this.mr();var a=this.he.aa,b=this.Na,c=b.frames[this.P],d=c.duration/this.fg;this.$f&&a>=this.Je+d&&(this.rf?this.P++:this.P--,this.Je+=d,this.P>=b.frames.length&&(b.qt?(this.rf=!1,this.P=b.frames.length-2):b.loop?this.P=this.zf:(this.Be++,this.Be>=b.up?
this.Bn(!1):this.P=this.zf)),0>this.P&&(b.qt?(this.P=1,this.rf=!0,b.loop||(this.Be++,this.Be>=b.up&&this.Bn(!0))):b.loop?this.P=this.zf:(this.Be++,this.Be>=b.up?this.Bn(!0):this.P=this.zf)),0>this.P?this.P=0:this.P>=b.frames.length&&(this.P=b.frames.length-1),a>this.Je+b.frames[this.P].duration/this.fg&&(this.Je=a),a=b.frames[this.P],this.Zf(c,a),this.b.ja=!0)};l.Ir=function(a){var b,c,d;b=0;for(c=this.type.Pc.length;b<c;b++)if(d=this.type.Pc[b],nb(d.name,a))return d;return null};l.Ly=function(a){var b,
c,d;b=0;for(c=this.type.Pc.length;b<c;b++)if(d=this.type.Pc[b],d.ra===a)return d;return null};l.lr=function(){var a=this.Na.frames[this.P],b=this.Ir(this.ih);this.ih="";!b||nb(b.name,this.Na.name)&&this.$f||(this.Na=b,this.fg=b.speed,this.zf=b.vp,0>this.P&&(this.P=0),this.P>=this.Na.frames.length&&(this.P=this.Na.frames.length-1),1===this.er&&(this.P=0),this.$f=!0,this.Je=this.he.aa,this.rf=!0,this.Zf(a,this.Na.frames[this.P]),this.b.ja=!0)};l.mr=function(){var a=this.Na.frames[this.P],b=this.P;this.P=
A(this.Sk);0>this.P&&(this.P=0);this.P>=this.Na.frames.length&&(this.P=this.Na.frames.length-1);b!==this.P&&(this.Zf(a,this.Na.frames[this.P]),this.Je=this.he.aa,this.b.ja=!0);this.Sk=-1};l.Zf=function(a,b){var c=a.width,d=a.height,f=b.width,g=b.height;c!=f&&(this.width*=f/c);d!=g&&(this.height*=g/d);this.Gc=b.Gc;this.Hc=b.Hc;this.ua.bk(b.lm);this.D();this.Jb=b;this.Zk=b.ta;c=0;for(d=this.S.length;c<d;c++)f=this.S[c],f.et&&f.et(a,b);this.b.trigger(V.prototype.n.Zf,this)};l.Tc=function(a){a.globalAlpha=
this.opacity;var b=this.Jb,c=b.ei,d=b.N,f=this.x,g=this.y,e=this.width,h=this.height;if(0===this.u&&0<=e&&0<=h)f-=this.Gc*e,g-=this.Hc*h,this.b.Kc&&(f=Math.round(f),g=Math.round(g)),c?a.drawImage(d,b.Uh,b.Vh,b.width,b.height,f,g,e,h):a.drawImage(d,f,g,e,h);else{this.b.Kc&&(f=Math.round(f),g=Math.round(g));a.save();var k=0<e?1:-1,l=0<h?1:-1;a.translate(f,g);1===k&&1===l||a.scale(k,l);a.rotate(this.u*k*l);f=0-this.Gc*pa(e);g=0-this.Hc*pa(h);c?a.drawImage(d,b.Uh,b.Vh,b.width,b.height,f,g,pa(e),pa(h)):
a.drawImage(d,f,g,pa(e),pa(h));a.restore()}};l.Af=function(a){this.Kb(a)};l.Kb=function(a){a.Bc(this.Zk);a.Ze(this.opacity);var b=this.Jb,c=this.Pb;if(this.b.Kc){var d=Math.round(this.x)-this.x,f=Math.round(this.y)-this.y;b.ei?a.Zd(c.Fb+d,c.Gb+f,c.tc+d,c.uc+f,c.ic+d,c.jc+f,c.gc+d,c.hc+f,b.Dp):a.Yh(c.Fb+d,c.Gb+f,c.tc+d,c.uc+f,c.ic+d,c.jc+f,c.gc+d,c.hc+f)}else b.ei?a.Zd(c.Fb,c.Gb,c.tc,c.uc,c.ic,c.jc,c.gc,c.hc,b.Dp):a.Yh(c.Fb,c.Gb,c.tc,c.uc,c.ic,c.jc,c.gc,c.hc)};l.Sy=function(a){var b=this.Jb,c,d;c=
0;for(d=b.wo.length;c<d;c++)if(nb(a,b.wo[c][0]))return c;return-1};l.sg=function(a,b){var c=this.Jb,d=c.wo,f;ma(a)?f=this.Sy(a):f=a-1;f=A(f);if(0>f||f>=d.length)return b?this.x:this.y;var g=(d[f][1]-c.Gc)*this.width,d=d[f][2],d=(d-c.Hc)*this.height,c=Math.cos(this.u);f=Math.sin(this.u);var e=g*c-d*f,d=d*c+g*f,g=e+this.x,d=d+this.y;return b?g:d};var u=[],N=-2,z=[];m.prototype.Fv=function(a){if(!a)return!1;var b=this.b,c=b.Ef(),d=c.type,f=null;c.L.collmemory?f=c.L.collmemory:(f={},c.L.collmemory=f);
c.L.spriteCreatedDestroyCallback||(c.L.spriteCreatedDestroyCallback=!0,b.Dk(function(a){var b=c.L.collmemory;a=a.uid;var d,f;for(d in b)b.hasOwnProperty(d)&&(f=b[d],f[0]===a||f[1]===a)&&(r(b[d]),delete b[d])}));var g=d.W(),e=a.W(),g=g.lc(),l,n,q,p,m,u,v,da=this.b.Bd,Y=da-1,G=b.Wa().Ua;for(n=0;n<g.length;n++){q=g[n];e.X?(q.la(),this.b.eo(q.A,a,q.Y,z),l=z):l=e.lc();for(p=0;p<l.length;p++)m=l[p],b.$b(q,m)||b.jx(q,m)?(u=h(f,q,m),u=!u||N<Y,t(f,q,m,da),u&&(b.Rf(G.ka),u=d.W(),v=a.W(),u.X=!1,v.X=!1,d===a?
(u.k.length=2,u.k[0]=q,u.k[1]=m,d.Id()):(u.k.length=1,v.k.length=1,u.k[0]=q,v.k[0]=m,d.Id(),a.Id()),G.Tf(),b.Wd(G.ka))):k(f,q,m);F(z)}return!1};var n=null,q=new fa,da=!1,Y=[],v=new va(0,0,0,0);c.finish=function(a){if(da){if(a){var b=this.b.Wa().Ua.jd;a=n.W();var c=q.Cd(),d,f;if(a.X){a.X=!1;F(a.k);d=0;for(f=c.length;d<f;++d)a.k[d]=c[d];if(b)for(F(a.Z),d=0,f=n.k.length;d<f;++d)c=n.k[d],q.contains(c)||a.Z.push(c)}else if(b)for(b=a.k.length,d=0,f=c.length;d<f;++d)a.k[b+d]=c[d],Fa(a.Z,c[d]);else Ca(a.k,
c);n.Id()}q.clear();da=!1}};m.prototype.sv=function(a){return b.call(this,a,0,0)};m.prototype.tv=function(a,c,d){return b.call(this,a,c,d)};m.prototype.gv=function(a){return this.ih.length?nb(this.ih,a):nb(this.Na.name,a)};m.prototype.Mu=function(a,b){return fc(this.P,a,b)};m.prototype.pq=function(a){return nb(this.Rq,a)};m.prototype.qq=function(){return!0};m.prototype.Zf=function(){return!0};m.prototype.ov=function(){return 0>this.width};a.n=new m;d.prototype.Hw=function(a,b,c){if(a&&b&&(b=this.b.Ln(a,
b,this.sg(c,!0),this.sg(c,!1)))){"undefined"!==typeof b.u&&(b.u=this.u,b.D());this.b.gd++;var d,f,g;this.b.trigger(Object.getPrototypeOf(a.Ka).n.lf,b);if(b.nc)for(d=0,f=b.siblings.length;d<f;d++)g=b.siblings[d],this.b.trigger(Object.getPrototypeOf(g.type.Ka).n.lf,g);this.b.gd--;d=this.b.Oy();c=!1;if(ka(d.L.Spawn_LastExec)||d.L.Spawn_LastExec<this.b.pg)c=!0,d.L.Spawn_LastExec=this.b.pg;if(a!=this.type&&(a=a.W(),a.X=!1,c?(F(a.k),a.k[0]=b):a.k.push(b),b.nc))for(d=0,f=b.siblings.length;d<f;d++)g=b.siblings[d],
a=g.type.W(),a.X=!1,c?(F(a.k),a.k[0]=g):a.k.push(g)}};d.prototype.$v=function(a,b){this.ih=a;this.er=b;this.Dg||(this.b.bh(this),this.Dg=!0);this.El||this.lr()};d.prototype.aw=function(a){this.Sk=a;this.Dg||(this.b.bh(this),this.Dg=!0);this.El||this.mr()};d.prototype.bw=function(a){this.fg=pa(a);this.rf=0<=a;this.Dg||(this.b.bh(this),this.Dg=!0)};d.prototype.pw=function(a){a=pa(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.D())};d.prototype.fw=function(a){a=pa(this.height)*(0===a?-1:
1);this.height!==a&&(this.height=a,this.D())};d.prototype.vw=function(a){var b=this.Jb,c=b.width*a*(0>this.width?-1:1);a=b.height*a*(0>this.height?-1:1);if(this.width!==c||this.height!==a)this.width=c,this.height=a,this.D()};a.q=new d;f.prototype.Gu=function(a){a.tb(this.Na.name)};f.prototype.cv=function(a,b){a.R(this.sg(b,!0))};f.prototype.dv=function(a,b){a.R(this.sg(b,!1))};a.J=new f})();function wc(e){this.b=e}
(function(){function e(){return d.length?d.pop():{}}function m(b){var a,c;a=0;for(c=b.length;a<c;a++)d.push(b[a]);F(b)}function r(b){return b.length&&" "===b.charAt(b.length-1)?b.substring(0,b.length-1):b}function p(){}function t(){}var k=wc.prototype;k.O=function(){k.q.xn=function(b){this.width!==b&&(this.width=b,this.ah=!0,this.D())}};k.ea=function(b){this.Ka=b;this.b=b.b};var h=k.ea.prototype;h.O=function(){};h.Wh=function(){if(!this.M){var b,a,c;b=0;for(a=this.k.length;b<a;b++)c=this.k[b],c.re=
null,c.Qg=null,c.Zc=null}};k.V=function(b){this.type=b;this.b=b.b;this.Xb?F(this.Kf):this.Kf=[];this.ah=!0};h=k.V.prototype;h.O=function(){this.text=this.C[0];this.visible=0===this.C[1];this.font=this.C[2];this.color=this.C[3];this.Bl=this.C[4];this.cn=this.C[5];this.cq=0===this.C[7];this.Mo=this.Qe=this.width;this.Pe=this.height;this.Oo=this.C[8];this.ql=this.oh="";this.bu=this.cu=this.Qj=0;this.cA();this.Zc=this.Qg=this.re=null;this.Vs=!1;this.ij=this.b.Bd;this.Xb?this.Sf.set(0,0,1,1):this.Sf=new va(0,
0,1,1);this.b.H&&this.b.bh(this)};h.cA=function(){var b=this.font.split(" "),a;for(a=0;a<b.length;a++)if("pt"===b[a].substr(b[a].length-2,2)){this.Qj=parseInt(b[a].substr(0,b[a].length-2));this.qp=Math.ceil(this.Qj/72*96)+4;0<a&&(this.ql=b[a-1]);this.oh=b[a+1];for(a+=2;a<b.length;a++)this.oh+=" "+b[a];break}};h.Ya=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Bl,va:this.cn,wr:this.cq,lho:this.Oo,fn:this.oh,fs:this.ql,ps:this.Qj,pxh:this.qp,tw:this.cu,th:this.bu,lrt:this.ij}};h.ib=
function(b){this.text=b.t;this.font=b.f;this.color=b.c;this.Bl=b.ha;this.cn=b.va;this.cq=b.wr;this.Oo=b.lho;this.oh=b.fn;this.ql=b.fs;this.Qj=b.ps;this.qp=b.pxh;this.cu=b.tw;this.bu=b.th;this.ij=b.lrt;this.ah=!0;this.Mo=this.Qe=this.width;this.Pe=this.height};h.Ja=function(){if(this.b.H&&this.Zc&&300<=this.b.Bd-this.ij){var b=this.A;this.la();var a=this.Y;if(a.right<b.wa||a.bottom<b.xa||a.left>b.Ba||a.top>b.Aa)this.b.H.deleteTexture(this.Zc),this.re=this.Qg=this.Zc=null}};h.Td=function(){this.re=
this.Qg=null;this.b.H&&this.Zc&&this.b.H.deleteTexture(this.Zc);this.Zc=null};h.si=function(){this.font=this.ql+" "+this.Qj.toString()+"pt "+this.oh;this.ah=!0;this.b.ja=!0};h.Tc=function(b,a){b.font=this.font;b.textBaseline="top";b.fillStyle=this.color;b.globalAlpha=a?1:this.opacity;var c=1;a&&(c=Math.abs(this.A.Fc()),b.save(),b.scale(c,c));if(this.ah||this.width!==this.Mo)this.type.Ka.Rw(this.text,this.Kf,b,this.width,this.cq),this.ah=!1,this.Mo=this.width;this.la();var c=a?0:this.Pb.Fb,d=a?0:this.Pb.Gb;
this.b.Kc&&(c=c+.5|0,d=d+.5|0);0===this.u||a||(b.save(),b.translate(c,d),b.rotate(this.u),d=c=0);var e=d+this.height,h=this.qp,h=h+this.Oo,k,p;1===this.cn?d+=Math.max(this.height/2-this.Kf.length*h/2,0):2===this.cn&&(d+=Math.max(this.height-this.Kf.length*h-2,0));for(p=0;p<this.Kf.length&&!(k=c,1===this.Bl?k=c+(this.width-this.Kf[p].width)/2:2===this.Bl&&(k=c+(this.width-this.Kf[p].width)),b.fillText(this.Kf[p].text,k,d),d+=h,d>=e-h);p++);(0!==this.u||a)&&b.restore();this.ij=this.b.Bd};h.Kb=function(b){if(!(1>
this.width||1>this.height)){var a=this.ah||this.Vs;this.Vs=!1;var c=this.A.Fc(),d=this.A.cb(),e=this.Sf,h=c*this.width,k=c*this.height,p=Math.ceil(h),n=Math.ceil(k),q=Math.abs(p),m=Math.abs(n),r=this.b.U/2,t=this.b.T/2;this.Qg||(this.re=document.createElement("canvas"),this.re.width=q,this.re.height=m,this.Qe=q,this.Pe=m,a=!0,this.Qg=this.re.getContext("2d"));if(q!==this.Qe||m!==this.Pe)this.re.width=q,this.re.height=m,this.Zc&&(b.deleteTexture(this.Zc),this.Zc=null),a=!0;a&&(this.Qg.clearRect(0,
0,q,m),this.Tc(this.Qg,!0),this.Zc||(this.Zc=b.Sc(q,m,this.b.Oa,this.b.Ag)),b.xu(this.re,this.Zc,this.b.Ag));this.Qe=q;this.Pe=m;b.Bc(this.Zc);b.Ze(this.opacity);b.wd();b.translate(-r,-t);b.ld();var w=this.Pb,a=this.A.Xa(w.Fb,w.Gb,!0,!0),q=this.A.Xa(w.Fb,w.Gb,!1,!0),m=this.A.Xa(w.tc,w.uc,!0,!0),r=this.A.Xa(w.tc,w.uc,!1,!0),t=this.A.Xa(w.ic,w.jc,!0,!0),D=this.A.Xa(w.ic,w.jc,!1,!0),S=this.A.Xa(w.gc,w.hc,!0,!0),w=this.A.Xa(w.gc,w.hc,!1,!0);if(this.b.Kc||0===this.u&&0===d)var C=(a+.5|0)-a,I=(q+.5|0)-
q,a=a+C,q=q+I,m=m+C,r=r+I,t=t+C,D=D+I,S=S+C,w=w+I;0===this.u&&0===d?(m=a+p,r=q,t=m,D=q+n,S=a,w=D,e.right=1,e.bottom=1):(e.right=h/p,e.bottom=k/n);b.Zd(a,q,m,r,t,D,S,w,e);b.wd();b.scale(c,c);b.xm(-this.A.cb());b.translate((this.A.wa+this.A.Ba)/-2,(this.A.xa+this.A.Aa)/-2);b.ld();this.ij=this.b.Bd}};var b=[];k.Mw=function(d){F(b);for(var a="",c,g=0;g<d.length;)if(c=d.charAt(g),"\n"===c)a.length&&(b.push(a),a=""),b.push("\n"),++g;else if(" "===c||"\t"===c||"-"===c){do a+=d.charAt(g),g++;while(g<d.length&&
(" "===d.charAt(g)||"\t"===d.charAt(g)));b.push(a);a=""}else g<d.length&&(a+=c,g++);a.length&&b.push(a)};var d=[];k.Rw=function(b,a,c,d,h){if(b&&b.length)if(2>=d)m(a);else{if(100>=b.length&&-1===b.indexOf("\n")){var k=c.measureText(b).width;if(k<=d){m(a);a.push(e());a[0].text=b;a[0].width=k;return}}this.Sw(b,a,c,d,h)}else m(a)};k.Sw=function(f,a,c,g,h){h&&(this.Mw(f),f=b);var k="",p,m,n,q=0;for(n=0;n<f.length;n++)"\n"===f[n]?(q>=a.length&&a.push(e()),k=r(k),m=a[q],m.text=k,m.width=c.measureText(k).width,
q++,k=""):(p=k,k+=f[n],m=c.measureText(k).width,m>=g&&(q>=a.length&&a.push(e()),p=r(p),m=a[q],m.text=p,m.width=c.measureText(p).width,q++,k=f[n],h||" "!==k||(k="")));k.length&&(q>=a.length&&a.push(e()),k=r(k),m=a[q],m.text=k,m.width=c.measureText(k).width,q++);for(n=q;n<a.length;n++)d.push(a[n]);a.length=q};k.n=new function(){};p.prototype.zw=function(b){la(b)&&1E9>b&&(b=Math.round(1E10*b)/1E10);b=b.toString();this.text!==b&&(this.text=b,this.ah=!0,this.b.ja=!0)};k.q=new p;t.prototype.Text=function(b){b.tb(this.text)};
k.J=new t})();function xc(e){this.b=e}
(function(){var e=xc.prototype;e.ea=function(e){this.Ka=e;this.b=e.b};var m=e.ea.prototype;m.O=function(){this.M||(this.N=new Image,this.N.Xk=this.nk,this.b.dn(this.N,this.mk),this.ta=this.pattern=null)};m.Wh=function(){this.M||(this.ta=null)};m.Jj=function(){if(!this.M&&this.k.length){this.ta||(this.ta=this.b.H.Nh(this.N,!0,this.b.Oa,this.ok));var e,p;e=0;for(p=this.k.length;e<p;e++)this.k[e].ta=this.ta}};m.Oh=function(){this.M||this.ta||!this.b.H||(this.ta=this.b.H.Nh(this.N,!0,this.b.Oa,this.ok))};
m.pk=function(){this.M||this.k.length||!this.ta||(this.b.H.deleteTexture(this.ta),this.ta=null)};m.Oj=function(e){e.drawImage(this.N,0,0)};e.V=function(e){this.type=e;this.b=e.b};m=e.V.prototype;m.O=function(){this.visible=0===this.C[0];this.Sf=new va(0,0,0,0);this.Vr=!1;this.N=this.type.N;this.b.H?(this.type.Oh(),this.ta=this.type.ta):(this.type.pattern||(this.type.pattern=this.b.Pa.createPattern(this.type.N,"repeat")),this.pattern=this.type.pattern)};m.Fd=function(){this.Vr=!1;this.N=this.type.N};
m.Td=function(){this.b.H&&this.Vr&&this.ta&&(this.b.H.deleteTexture(this.ta),this.ta=null)};m.Tc=function(e){e.globalAlpha=this.opacity;e.save();e.fillStyle=this.pattern;var p=this.x,m=this.y;this.b.Kc&&(p=Math.round(p),m=Math.round(m));var k=-(this.Gc*this.width),h=-(this.Hc*this.height),b=k%this.N.width,d=h%this.N.height;0>b&&(b+=this.N.width);0>d&&(d+=this.N.height);e.translate(p,m);e.rotate(this.u);e.translate(b,d);e.fillRect(k-b,h-d,this.width,this.height);e.restore()};m.Af=function(e){this.Kb(e)};
m.Kb=function(e){e.Bc(this.ta);e.Ze(this.opacity);var p=this.Sf;p.right=this.width/this.N.width;p.bottom=this.height/this.N.height;var m=this.Pb;if(this.b.Kc){var k=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;e.Zd(m.Fb+k,m.Gb+h,m.tc+k,m.uc+h,m.ic+k,m.jc+h,m.gc+k,m.hc+h,p)}else e.Zd(m.Fb,m.Gb,m.tc,m.uc,m.ic,m.jc,m.gc,m.hc,p)};e.n=new function(){};e.q=new function(){};e.J=new function(){}})();function yc(e){this.b=e}
(function(){function e(){this.Wm=this.id=-1;this.Tq=this.nh=this.tk=this.Ni=!1;this.Ga=new va(0,0,0,0)}function m(a){1E4>g.length&&g.push(a)}function r(){this.id=-1;this.Ga=new va(0,0,0,0);this.Vd=null}function p(a){1E4>l.length&&l.push(a)}function t(a,b,c){var d;return u.length?(d=u.pop(),d.j=a,d.x=b,d.y=c,d.left=d.x*d.j.wb*d.j.rc,d.top=d.y*d.j.Ib*d.j.qc,d.clear(),d.Sj=!1,d):new k(a,b,c)}function k(a,b,c){this.j=a;this.x=b;this.y=c;this.left=this.x*this.j.wb*this.j.rc;this.top=this.y*this.j.Ib*this.j.qc;
this.ze=[];this.Wb=[];this.vc=[];this.Sj=!1;var d,f;a=0;for(b=this.j.Ib;a<b;++a){f=[];c=0;for(d=this.j.wb;c<d;++c)f.push(-1);this.ze.push(f)}}var h=yc.prototype;h.ea=function(a){this.Ka=a;this.b=a.b};var b=h.ea.prototype;b.O=function(){var a,b,c;if(!this.M&&(this.N=new Image,this.N.Xk=this.nk,this.b.dn(this.N,this.mk),this.gg=[],this.Nn=!1,this.be=[],this.eu=!1,this.Vm&&this.Vm.length))for(a=0,b=this.Vm.length;a<b;++a)(c=this.Vm[a])?this.be.push({Vd:c,ol:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.be.push(null)};b.sf=function(a,b,c,d,f,g){if(!(0>a||a>=this.be.length)&&this.be[a]){var e=this.be[a].ol;a=new hb(this.be[a].Vd);a.tf(b,c,0);g&&a.vx();d&&a.Tz(b/2);f&&a.Hy(c/2);e[d?1:0][f?1:0][g?1:0]=a}};b.az=function(b){if(-1===b)return null;var g=b&c;return 0>g||g>=this.be.length||!this.be[g]?null:this.be[g].ol[b&d?1:0][b&f?1:0][b&a?1:0]};b.$n=function(){var a,b,c=this.b.H;if(c)for(a=0,b=this.gg.length;a<b;++a)c.deleteTexture(this.gg[a]);F(this.gg);this.Nn=!1};b.Zo=function(a,b,c,
d,f,g,e){if(!(this.Nn||0>=a||0>=b)){this.$n();var h=this.N.width,k=this.N.height,l;for(l=d;l+b<=k;l+=b+g)for(d=c;d+a<=h;d+=a+f)this.gg.push(this.Uu(d,l,a,b,e));this.Nn=!0}};b.Uu=function(a,b,c,d,f){if(this.b.H)return this.rn(a,b,c,d,!1,!1,!1,f);var g=[[[null,null],[null,null]],[[null,null],[null,null]]];g[0][0][0]=this.rn(a,b,c,d,!1,!1,!1,f);return{ol:g,x:a,y:b,XA:c,qz:d}};b.lq=function(a,b,c,d,f){if(0>a||a>=this.gg.length)return null;a=this.gg[a];var g=a.ol;b=b?1:0;c=c?1:0;d=d?1:0;var e=g[b][c][d];
if(e)return e;e=this.rn(a.x,a.y,a.XA,a.qz,0!==b,0!==c,0!==d,f);return g[b][c][d]=e};b.rn=function(a,b,c,d,f,g,e,h){var k=c,l=d;this.b.H&&!h&&(na(k)||(k=oa(k)),na(l)||(l=oa(l)));var p=document.createElement("canvas");p.width=k;p.height=l;var m=p.getContext("2d");if(this.b.Pa)return f?g?(e?(m.rotate(Math.PI/2),m.scale(-1,1)):m.scale(-1,-1),m.translate(-k,-l)):e?(m.rotate(Math.PI/2),m.translate(0,-l)):(m.scale(-1,1),m.translate(-k,0)):g?e?(m.rotate(-Math.PI/2),m.translate(-k,0)):(m.scale(1,-1),m.translate(0,
-l)):e&&(m.scale(-1,1),m.rotate(Math.PI/2)),m.drawImage(this.N,a,b,c,d,0,0,k,l),h?p:this.b.Pa.createPattern(p,"repeat");m.drawImage(this.N,a,b,c,d,0,0,k,l);a=this.b.H.Sc(k,l,this.b.Oa,!1,!h);this.b.H.xu(p,a);return a};b.Wh=function(){this.M||this.$n()};b.Jj=function(){};b.Oh=function(){};b.pk=function(){this.M||this.k.length||this.$n()};b.Oj=function(){};h.V=function(a){this.type=a;this.b=a.b};var b=h.V.prototype,d=-2147483648,f=1073741824,a=536870912,c=536870911,g=[],l=[],u=[];k.prototype.clear=
function(){var a,b,c,d,f;this.ze.length=this.j.Ib;a=0;for(b=this.ze.length;a<b;++a)for(f=this.ze[a],f||(f=[],this.ze[a]=f),f.length=this.j.wb,c=0,d=f.length;c<d;++c)f[c]=-1};k.prototype.yj=function(){if(!this.Sj){var b=this.j.rc,h=this.j.qc;if(!(0>=b||0>=h)){var k,t,u,v,w,D;k=0;for(t=this.Wb.length;k<t;++k)m(this.Wb[k]);k=0;for(t=this.vc.length;k<t;++k)p(this.vc[k]);F(this.Wb);F(this.vc);var S=Math.min(this.j.vd,Math.floor(this.j.width/b)),C=Math.min(this.j.Sd,Math.floor(this.j.height/h)),S=S-this.left/
b,C=C-this.top/h;S>this.j.wb&&(S=this.j.wb);C>this.j.Ib&&(C=this.j.Ib);var I=this.j.Uf,B=null;k=0;for(t=C;k<t;++k){w=this.ze[k];u=0;for(v=S;u<v;++u)D=w[u],-1===D?B&&(this.Wb.push(B),B=null):I||!B||D!==B.id?(B&&this.Wb.push(B),B=g.length?g.pop():new e,B.id=D,B.Wm=D&c,B.Ni=0!==(D&d),B.tk=0!==(D&f),B.nh=0!==(D&a),B.Tq=B.Ni||B.tk||B.nh,B.Ga.left=u*b+this.left,B.Ga.top=k*h+this.top,B.Ga.right=B.Ga.left+b,B.Ga.bottom=B.Ga.top+h):B.Ga.right+=b;B&&(this.Wb.push(B),B=null)}var B=null,N=!1;k=0;for(t=C;k<t;++k){w=
this.ze[k];u=0;for(v=S;u<v;++u)D=w[u],-1===D?B&&(this.vc.push(B),B=null,N=!1):(C=this.j.type.az(D),!B||C||N?(B&&this.vc.push(B),B=l.length?l.pop():new r,B.id=D,B.Vd=C?C:null,D=B.Ga,D.left=u*b+this.left,D.top=k*h+this.top,D.right=D.left+b,D.bottom=D.top+h,N=!!C):B.Ga.right+=b);B&&(this.vc.push(B),B=null,N=!1)}if(!I)for(t=this.Wb.length,k=0;k<t;++k)for(v=this.Wb[k],b=k+1;b<t;++b)if(u=this.Wb[b],!(u.Ga.top<v.Ga.bottom)){if(u.Ga.top>v.Ga.bottom)break;if(u.Ga.right>v.Ga.right||u.Ga.left>v.Ga.left)break;
u.id===v.id&&u.Ga.left===v.Ga.left&&u.Ga.right===v.Ga.right&&(m(this.Wb[b]),this.Wb.splice(b,1),--t,v.Ga.bottom+=h,--b)}t=this.vc.length;for(k=0;k<t;++k)if(v=this.vc[k],!v.Vd)for(w=v.Ga,b=k+1;b<t;++b)if(u=this.vc[b],v=u.Ga,!(v.top<w.bottom)){if(v.top>w.bottom)break;if(v.right>w.right||v.left>w.left)break;u.Vd||v.left!==w.left||v.right!==w.right||(p(this.vc[b]),this.vc.splice(b,1),--t,w.bottom+=h,--b)}this.Sj=!0}}};k.prototype.Cp=function(a,b,c){this.ze[b][a]!==c&&(this.ze[b][a]=c,this.Sj=!1,this.j.Ik=
!0,this.j.Lj=!0,this.j.b.ja=!0)};b.O=function(){var a,b,c;this.visible=0===this.C[0];this.rc=this.C[1];this.qc=this.C[2];this.Jp=this.C[3];this.Lp=this.C[4];this.Kp=this.C[5];this.Mp=this.C[6];this.Uf=0!==this.C[7];this.vd=this.hu;this.Sd=this.gu;this.Qe=this.width;this.Pe=this.height;var d=this.rc,f=this.qc;0===d&&(d=1);0===f&&(f=1);this.wb=Math.ceil(this.b.Sa/d);this.Ib=Math.ceil(this.b.Ra/f);if(!this.type.eu)for(this.type.eu=!0,a=0,b=this.type.be.length;a<b;++a)if(c=this.type.be[a])this.type.sf(a,
d,f,!1,!1,!1),this.type.sf(a,d,f,!1,!1,!0),this.type.sf(a,d,f,!1,!0,!1),this.type.sf(a,d,f,!1,!0,!0),this.type.sf(a,d,f,!0,!1,!1),this.type.sf(a,d,f,!0,!1,!0),this.type.sf(a,d,f,!0,!0,!1),this.type.sf(a,d,f,!0,!0,!0);this.Xb||(this.Cc=[]);this.$o(!0);this.Ot(this.fu);this.type.Zo(this.rc,this.qc,this.Jp,this.Lp,this.Kp,this.Mp,this.Uf);this.Lj=!1;this.Ik=!0;this.Yo()};b.Yo=function(){if(this.Ik){var a,b,c,d,f;a=0;for(b=this.Cc.length;a<b;++a)for(f=this.Cc[a],c=0,d=f.length;c<d;++c)f[c].yj();this.Ik=
!1}};b.Am=function(){var a,b,c,d,f;a=0;for(b=this.Cc.length;a<b;++a)for(f=this.Cc[a],c=0,d=f.length;c<d;++c)f[c].Sj=!1;this.Ik=!0};b.$o=function(a){var b=A(this.width/this.rc),c=A(this.height/this.qc);if(!(b<=this.vd&&c<=this.Sd)||a){var d;a?(a=Math.ceil(this.Sd/this.Ib),d=Math.ceil(this.vd/this.wb)):(a=this.Cc.length,d=Math.ceil(this.vd/this.wb),c>this.Sd&&(this.Sd=c,a=Math.ceil(this.Sd/this.Ib)),b>this.vd&&(this.vd=b,d=Math.ceil(this.vd/this.wb)),this.Am(),this.Lj=!0,this.b.ja=!0);for(var f,b=0;b<
a;++b)if(f=this.Cc[b])for(c=f.length;c<d;++c)f.push(t(this,c,b));else{f=[];for(c=0;c<d;++c)f.push(t(this,c,b));this.Cc[b]=f}}};b.Fn=function(a,b){if(0>a||0>b)return null;var c=A(b/this.Ib);if(c>=this.Cc.length)return null;var c=this.Cc[c],d=A(a/this.wb);return d>=c.length?null:c[d]};b.Gn=function(a,b){if(0>a||0>b||b>=this.Cc.length)return null;var c=this.Cc[b];return a>=c.length?null:c[a]};b.Ot=function(b){var c=[];b=b.split(",");var g,e,h,k,l;g=0;for(e=b.length;g<e;++g)if(h=b[g],k=h.indexOf("x"),
-1<k)for(l=parseInt(h.substring(0,k),10),h=h.substring(k+1),k=parseInt(h,10),-1<h.indexOf("h")&&(k|=d),-1<h.indexOf("v")&&(k|=f),-1<h.indexOf("d")&&(k|=a);0<l;--l)c.push(k);else k=parseInt(h,10),-1<h.indexOf("h")&&(k|=d),-1<h.indexOf("v")&&(k|=f),-1<h.indexOf("d")&&(k|=a),c.push(k);for(g=b=0;g<this.Sd;++g)for(e=0;e<this.vd;++e)l=c[b++],(h=this.Fn(e,g))&&h.Cp(e%this.wb,g%this.Ib,l)};b.bz=function(){var b="";if(0>=this.vd||0>=this.Sd)return b;var g=1,e=this.Rr(0,0),h,k,l,p,m,r,t,u;p=A(this.width/this.rc);
k=A(this.height/this.qc);for(h=0;h<k;++h)for(l=0===h?1:0;l<p;++l)m=this.Rr(l,h),m===e?++g:(-1===e?(r=-1,e=u=t=!1):(r=e&c,t=0!==(e&d),u=0!==(e&f),e=0!==(e&a)),b=1===g?b+(""+r):b+(""+g+"x"+r),t&&(b+="h"),u&&(b+="v"),e&&(b+="d"),b+=",",g=1,e=m);-1===e?(r=-1,e=u=t=!1):(r=e&c,t=0!==(e&d),u=0!==(e&f),e=0!==(e&a));b=1===g?b+(""+r):b+(""+g+"x"+r);t&&(b+="h");u&&(b+="v");e&&(b+="d");return b};b.Rr=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.vd||b>=this.Sd)return-1;var c=this.Fn(a,b);
return c?c.ze[b%this.Ib][a%this.wb]:-1};b.Cp=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.vd||b>=this.Sd)return-1;var d=this.Fn(a,b);if(!d)return-1;d.Cp(a%this.wb,b%this.Ib,c)};b.zu=function(a){return Math.floor((a-this.x)/(this.wb*this.rc))};b.Au=function(a){return Math.floor((a-this.y)/(this.Ib*this.qc))};b.Jr=function(a,b){var c=this.Au(a.top),d=this.zu(a.right),f=this.Au(a.bottom),g,e,h;for(g=this.zu(a.left);g<=d;++g)for(e=c;e<=f;++e)if(h=this.Gn(g,e))h.yj(),Da(b,h.vc)};
b.si=function(a){var b,c,d,f,g,e;b=0;for(c=this.Cc.length;b<c;++b)for(g=this.Cc[b],d=0,f=g.length;d<f;++d)e=g[d],e.yj(),Da(a,e.vc)};b.Td=function(){var a,b,c,d,f;a=0;for(b=this.Cc.length;a<b;++a){f=this.Cc[a];c=0;for(d=f.length;c<d;++c){for(var g=f[c],e=void 0,h=void 0,e=0,h=g.Wb.length;e<h;++e)m(g.Wb[e]);F(g.Wb);e=0;for(h=g.vc.length;e<h;++e)p(g.vc[e]);F(g.vc);1E3>u.length&&u.push(g)}F(f)}F(this.Cc)};b.Ya=function(){this.$o();return{w:A(this.width/this.rc),h:A(this.height/this.qc),d:this.bz()}};
b.ib=function(a){this.vd=a.w;this.Sd=a.h;this.$o(!0);this.Ot(a.d);this.Lj=!0;this.Am()};b.Tc=function(a){if(!(0>=this.rc||0>=this.qc)){this.type.Zo(this.rc,this.qc,this.Jp,this.Lp,this.Kp,this.Mp,this.Uf);if(this.width!==this.Qe||this.height!==this.Pe)this.Lj=!0,this.Am(),this.Yo(),this.Qe=this.width,this.Pe=this.height;a.globalAlpha=this.opacity;var b=this.A,c=b.wa,d=b.xa,f=b.Ba,b=b.Aa,g=this.x,e=this.y,h=this.Uf,k;this.b.Kc&&(g=Math.round(g),e=Math.round(e));var l=this.wb*this.rc,p=this.Ib*this.qc,
m=Math.floor((c-g)/l),l=Math.floor((f-g)/l),r=Math.floor((d-e)/p),p=Math.floor((b-e)/p),t=g%this.rc,u=e%this.qc;this.Uf&&(u=t=0);if(0!==t||0!==u)a.save(),a.translate(t,u),g-=t,e-=u,c-=t,d-=u,f-=t,b-=u;for(var N,E,T,x,y,L,O,G,J;m<=l;++m)for(N=r;N<=p;++N)if(E=this.Gn(m,N))for(E.yj(),T=0,x=E.Wb.length;T<x;++T)y=E.Wb[T],-1!==y.id&&(k=y.Ga,L=k.left+g,O=k.top+e,G=k.right+g,k=k.bottom+e,L>f||G<c||O>b||k<d||(J=this.type.lq(y.Wm,y.Ni,y.tk,y.nh,this.Uf),h?a.drawImage(J,L,O):(a.fillStyle=this.type.lq(y.Wm,y.Ni,
y.tk,y.nh,this.Uf),a.fillRect(L,O,G-L,k-O))));0===t&&0===u||a.restore()}};var N=new va(0,0,1,1);b.Af=function(a){this.Kb(a)};b.Kb=function(a){if(!(0>=this.rc||0>=this.qc)){this.type.Zo(this.rc,this.qc,this.Jp,this.Lp,this.Kp,this.Mp,this.Uf);if(this.width!==this.Qe||this.height!==this.Pe)this.Lj=!0,this.Am(),this.Yo(),this.Qe=this.width,this.Pe=this.height;a.Ze(this.opacity);var b=this.type.gg,c=this.A,d=c.wa,f=c.xa,g=c.Ba,c=c.Aa,e=this.x,h=this.y,k;this.b.Kc&&(e=Math.round(e),h=Math.round(h));var l=
this.wb*this.rc,p=this.Ib*this.qc,m=Math.floor((g-e)/l),r=Math.floor((f-h)/p),p=Math.floor((c-h)/p),t,u,K,E,T,x,y,L,O,G,J,P,X,M,ja,ea,za;for(ja=Math.floor((d-e)/l);ja<=m;++ja)for(ea=r;ea<=p;++ea)if(za=this.Gn(ja,ea))for(za.yj(),l=0,t=za.Wb.length;l<t;++l)u=za.Wb[l],-1!==u.id&&(k=u.Ga,K=k.left+e,E=k.top+h,T=k.right+e,k=k.bottom+h,K>g||T<d||E>c||k<f||(a.Bc(b[u.Wm]),N.right=(T-K)/this.rc,N.bottom=(k-E)/this.qc,u.Tq?(u.nh&&(M=N.right,N.right=N.bottom,N.bottom=M),y=x=0,L=N.right,O=0,G=N.right,J=N.bottom,
P=0,X=N.bottom,u.nh&&(M=P,P=L,L=M,M=X,X=O,O=M),u.Ni&&(M=x,x=L,L=M,M=y,y=O,O=M,M=P,P=G,G=M,M=X,X=J,J=M),u.tk&&(M=x,x=P,P=M,M=y,y=X,X=M,M=L,L=G,G=M,M=O,O=J,J=M),a.pA(K,E,T,E,T,k,K,k,x,y,L,O,G,J,P,X)):a.Zd(K,E,T,E,T,k,K,k,N)))}};h.n=new function(){};h.q=new function(){};h.J=new function(){}})();function zc(e){this.b=e}
(function(){function e(){}var m=zc.prototype;m.ea=function(e){this.behavior=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=m.V.prototype;r.O=function(){this.Pq=this.C[0];this.Qq=this.C[1];this.$w=this.C[2];this.Zw=this.C[3];this.j.la();this.hn=this.j.Y.left;this.nn=this.j.Y.top;this.kn=this.b.Sa-this.j.Y.left;this.ln=this.b.Ra-this.j.Y.top;this.um=this.b.Sa-this.j.Y.right;this.Ok=this.b.Ra-this.j.Y.bottom;this.enabled=
0!==this.C[4]};r.Ya=function(){return{xleft:this.hn,ytop:this.nn,xright:this.kn,ybottom:this.ln,rdiff:this.um,bdiff:this.Ok,enabled:this.enabled}};r.ib=function(e){this.hn=e.xleft;this.nn=e.ytop;this.kn=e.xright;this.ln=e.ybottom;this.um=e.rdiff;this.Ok=e.bdiff;this.enabled=e.enabled};r.Ja=function(){if(this.enabled){var e,m=this.j.A,k=this.j,h=this.j.Y;0===this.Pq?(k.la(),e=m.wa+this.hn-h.left,0!==e&&(k.x+=e,k.D())):1===this.Pq&&(k.la(),e=m.Ba-this.kn-h.left,0!==e&&(k.x+=e,k.D()));0===this.Qq?(k.la(),
e=m.xa+this.nn-h.top,0!==e&&(k.y+=e,k.D())):1===this.Qq&&(k.la(),e=m.Aa-this.ln-h.top,0!==e&&(k.y+=e,k.D()));1===this.$w&&(k.la(),e=m.Ba-this.um-h.right,0!==e&&(k.width+=e,0>k.width&&(k.width=0),k.D()));1===this.Zw&&(k.la(),e=m.Aa-this.Ok-h.bottom,0!==e&&(k.height+=e,0>k.height&&(k.height=0),k.D()))}};m.n=new function(){};e.prototype.Ae=function(e){this.enabled&&0===e?this.enabled=!1:this.enabled||0===e||(this.j.la(),this.hn=this.j.Y.left,this.nn=this.j.Y.top,this.kn=this.b.Sa-this.j.Y.left,this.ln=
this.b.Ra-this.j.Y.top,this.um=this.b.Sa-this.j.Y.right,this.Ok=this.b.Ra-this.j.Y.bottom,this.enabled=!0)};m.q=new e;m.J=new function(){}})();function Ac(e){this.b=e}
(function(){function e(){}function m(){}function r(){}var p=Ac.prototype;p.ea=function(e){this.behavior=e;this.b=e.b};p.ea.prototype.O=function(){};p.V=function(e,h){this.type=e;this.behavior=e.behavior;this.j=h;this.b=e.b};var t=p.V.prototype;t.O=function(){var e=this.C[0];this.Hb=this.C[1];this.mb=this.C[2];this.Xq=0!==this.C[3];this.Bm=0!==this.C[4];this.F=Math.cos(this.j.u)*e;this.G=Math.sin(this.j.u)*e;this.jj=this.j.x;this.kj=this.j.y;this.Wc=this.j.u;this.Ym=0;this.enabled=0!==this.C[5]};t.Ya=
function(){return{acc:this.Hb,g:this.mb,dx:this.F,dy:this.G,lx:this.jj,ly:this.kj,lka:this.Wc,t:this.Ym,e:this.enabled}};t.ib=function(e){this.Hb=e.acc;this.mb=e.g;this.F=e.dx;this.G=e.dy;this.jj=e.lx;this.kj=e.ly;this.Wc=e.lka;this.Ym=e.t;this.enabled=e.e};t.Ja=function(){if(this.enabled){var e=this.b.Ff(this.j),h,b;this.j.u!==this.Wc&&(this.Bm&&(h=Ta(0,0,this.F,this.G),this.F=Math.cos(this.j.u)*h,this.G=Math.sin(this.j.u)*h),this.Wc=this.j.u);0!==this.Hb&&(h=Ta(0,0,this.F,this.G),b=0===this.F&&
0===this.G?this.j.u:Na(0,0,this.F,this.G),h+=this.Hb*e,0>h&&(h=0),this.F=Math.cos(b)*h,this.G=Math.sin(b)*h);0!==this.mb&&(this.G+=this.mb*e);this.jj=this.j.x;this.kj=this.j.y;if(0!==this.F||0!==this.G)if(this.j.x+=this.F*e,this.j.y+=this.G*e,this.Ym+=Ta(0,0,this.F*e,this.G*e),this.Bm&&(this.j.u=Na(0,0,this.F,this.G),this.j.D(),this.Wc=this.j.u),this.j.D(),this.Xq&&(h=this.b.Eb(this.j)))this.b.Zh(this.j,h),h=Ta(0,0,this.F,this.G),b=this.b.cr(this.j,this.jj,this.kj),this.F=Math.cos(b)*h,this.G=Math.sin(b)*
h,this.j.x+=this.F*e,this.j.y+=this.G*e,this.j.D(),this.Bm&&(this.Wc=this.j.u=b,this.j.D()),this.b.ad(this.j,this.F/h,this.G/h,Math.max(2.5*h*e,30))||this.b.pp(this.j,100)}};e.prototype.hq=function(e,h){return fc(Ta(0,0,this.F,this.G),e,h)};p.n=new e;m.prototype.xw=function(e){var h=Na(0,0,this.F,this.G);this.F=Math.cos(h)*e;this.G=Math.sin(h)*e};m.prototype.Dq=function(e){this.Hb=e};m.prototype.Bk=function(e){this.mb=e};m.prototype.Zv=function(e){e=H(e);var h=Ta(0,0,this.F,this.G);this.F=Math.cos(e)*
h;this.G=Math.sin(e)*h};m.prototype.Hu=function(e){if(e&&(e=e.wl(this.j))){var h=this.b.Ff(this.j),b=Ta(0,0,this.F,this.G),d=this.b.cr(this.j,this.jj,this.kj,e);this.F=Math.cos(d)*b;this.G=Math.sin(d)*b;this.j.x+=this.F*h;this.j.y+=this.G*h;this.j.D();this.Bm&&(this.Wc=this.j.u=d,this.j.D());this.Xq?this.b.ad(this.j,this.F/b,this.G/b,Math.max(2.5*b*h,30))||this.b.pp(this.j,100):0!==b&&this.b.oA(this.j,this.F/b,this.G/b,Math.max(2.5*b*h,30),e)}};m.prototype.Ae=function(e){this.enabled=1===e};p.q=new m;
r.prototype.Kq=function(e){var h=Ta(0,0,this.F,this.G),h=mb(h);e.R(h)};r.prototype.Eu=function(e){e.R(Ha(Na(0,0,this.F,this.G)))};p.J=new r})();function Bc(e){this.b=e}
(function(){function e(){}function m(){}var r=Bc.prototype;r.ea=function(e){this.behavior=e;this.b=e.b};r.ea.prototype.O=function(){};r.V=function(e,k){this.type=e;this.behavior=e.behavior;this.j=k;this.b=e.b};var p=r.V.prototype;p.O=function(){this.zn=1===this.C[0];this.Nt=!1;this.ph=this.C[1];this.wk=this.C[2];this.Di=this.C[3];this.ux=this.C[4];this.bd=this.zn?0:3;this.Xb?this.yd.reset():this.yd=new ab;this.Of=this.j.opacity?this.j.opacity:1;this.zn&&(0===this.ph?(this.bd=1,0===this.wk&&(this.bd=
2)):(this.j.opacity=0,this.b.ja=!0))};p.Ya=function(){return{fit:this.ph,wt:this.wk,fot:this.Di,s:this.bd,st:this.yd.aa,mo:this.Of}};p.ib=function(e){this.ph=e.fit;this.wk=e.wt;this.Di=e.fot;this.bd=e.s;this.yd.reset();this.yd.aa=e.st;this.Of=e.mo};p.Ja=function(){this.yd.add(this.b.Ff(this.j));0===this.bd&&(this.j.opacity=this.yd.aa/this.ph*this.Of,this.b.ja=!0,this.j.opacity>=this.Of&&(this.j.opacity=this.Of,this.bd=1,this.yd.reset(),this.b.trigger(Bc.prototype.n.tq,this.j)));1===this.bd&&this.yd.aa>=
this.wk&&(this.bd=2,this.yd.reset(),this.b.trigger(Bc.prototype.n.Nv,this.j));2===this.bd&&0!==this.Di&&(this.j.opacity=this.Of-this.yd.aa/this.Di*this.Of,this.b.ja=!0,0>this.j.opacity&&(this.j.opacity=0,this.bd=3,this.yd.reset(),this.b.trigger(Bc.prototype.n.Gv,this.j),1===this.ux&&this.b.ge(this.j)))};p.or=function(){this.bd=0;this.yd.reset();0===this.ph?(this.bd=1,0===this.wk&&(this.bd=2)):(this.j.opacity=0,this.b.ja=!0)};e.prototype.Gv=function(){return!0};e.prototype.tq=function(){return!0};
e.prototype.Nv=function(){return!0};r.n=new e;m.prototype.Iw=function(){this.zn||this.Nt||(this.Of=this.j.opacity?this.j.opacity:1,this.Nt=!0);3===this.bd&&this.or()};m.prototype.Wv=function(){this.or()};m.prototype.dw=function(e){0>e&&(e=0);this.ph=e};m.prototype.ew=function(e){0>e&&(e=0);this.Di=e};r.q=new m;r.J=new function(){}})();function Cc(e){this.b=e}
(function(){function e(){}function m(){}var r=Cc.prototype;r.ea=function(b){this.behavior=b;this.b=b.b};var p=r.ea.prototype;p.O=function(){this.Te=[]};p.Fy=function(b){var f,a,c;f=0;for(a=b.S.length;f<a;++f)if(c=b.S[f],c instanceof Cc.prototype.V&&c.type===this)return c;return null};r.V=function(b,f){this.type=b;this.behavior=b.behavior;this.j=f;this.b=b.b};p=r.V.prototype;p.O=function(){this.Wz=this.C[0];this.tm=this.C[1];this.Uk=H(this.C[2]);this.tu=0!==this.C[3]};p.Td=function(){};p.Ya=function(){var b=
{r:this.tm,c:this.Uk,t:[]},f,a;f=0;for(a=this.type.Te.length;f<a;f++)b.t.push(this.type.Te[f].ra);return b};p.ib=function(b){this.tm=b.r;this.Uk=b.c;F(this.type.Te);var f,a,c;f=0;for(a=b.t.length;f<a;f++)(c=this.b.Hi(b.t[f]))&&this.type.Te.push(c)};p.Ja=function(){};var t=[],k=new va(0,0,0,0);p.vz=function(b,f){var a=this.j.x,c=this.j.y,e=this.j.u;0>this.j.width&&(e+=Math.PI);if(Ta(a,c,b,f)>this.tm||Oa(e,Na(a,c,b,f))>this.Uk/2)return!1;var h,m;k.set(a,c,b,f);k.normalize();if(0===this.Wz)for(this.tu?
this.b.Qr(this.j.A,k,t):(e=this.b.Fp)&&Da(t,e.Bj.Cd()),e=0,h=t.length;e<h;++e){if(m=t[e],m.L.solidEnabled&&m!==this.j&&this.b.$t(a,c,b,f,m))return F(t),!1}else{if(this.tu)this.b.oo(this.j.A,this.type.Te,k,t);else for(e=0,h=this.type.Te.length;e<h;++e)Da(t,this.type.Te[e].k);e=0;for(h=t.length;e<h;++e)if(m=t[e],m!==this.j&&this.b.$t(a,c,b,f,m))return F(t),!1}F(t);return!0};var h=new fa,b=new fa;e.prototype.bv=function(d){if(!d)return!1;var f,a,c,e,k,m,p,r,n=this.b.Py().W();d=d.W();var q=n.lc(),t=d.lc();
n.X&&F(n.Z);d.X&&F(d.Z);var Y=this.b.Ef().zg;f=0;for(c=q.length;f<c;++f){k=q[f];r=!1;m=this.Fy(k);a=0;for(e=t.length;a<e;++a)p=t[a],k!==p&&Ua(m.vz(p.x,p.y),Y)&&(r=!0,b.add(p));r&&h.add(k)}f=h.Cd();a=b.Cd();n.X=!1;d.X=!1;Ca(n.k,f);Ca(d.k,a);h.clear();b.clear();return n.so()};r.n=new e;m.prototype.sw=function(b){this.tm=b};m.prototype.cw=function(b){this.Uk=H(b)};m.prototype.Cu=function(b){var f=this.type.Te;if(-1===f.indexOf(b)){var a,c,e;a=0;for(c=f.length;a<c;a++)if(e=f[a],e.M&&-1!==e.Pg.indexOf(b))return;
f.push(b)}};m.prototype.Ku=function(){F(this.type.Te)};r.q=new m;r.J=new function(){}})();function Dc(e){this.b=e}
(function(){function e(){}function m(){}function r(){}var p=Dc.prototype;p.ea=function(e){this.behavior=e;this.b=e.b};p.ea.prototype.O=function(){};p.V=function(e,h){this.type=e;this.behavior=e.behavior;this.j=h;this.b=e.b};var t=p.V.prototype;t.O=function(){this.eb=null;this.jm=-1;this.mode=this.Wc=this.Rm=this.Sh=this.Xe=this.Nj=0;var e=this;this.Xb||(this.Aj=function(h){e.Hj(h)});this.b.Dk(this.Aj)};t.Ya=function(){return{uid:this.eb?this.eb.uid:-1,pa:this.Nj,pd:this.Xe,msa:this.Sh,tsa:this.Rm,
lka:this.Wc,m:this.mode}};t.ib=function(e){this.jm=e.uid;this.Nj=e.pa;this.Xe=e.pd;this.Sh=e.msa;this.Rm=e.tsa;this.Wc=e.lka;this.mode=e.m};t.Fd=function(){-1===this.jm?this.eb=null:this.eb=this.b.tg(this.jm);this.jm=-1};t.Hj=function(e){this.eb==e&&(this.eb=null)};t.Td=function(){this.eb=null;this.b.Et(this.Aj)};t.Ja=function(){};t.Um=function(){if(this.eb){this.Wc!==this.j.u&&(this.Sh=Ka(this.Sh+(this.j.u-this.Wc)));var e=this.j.x,h=this.j.y;if(3===this.mode||4===this.mode){var b=Ta(this.j.x,this.j.y,
this.eb.x,this.eb.y);if(b>this.Xe||4===this.mode&&b<this.Xe)h=Na(this.eb.x,this.eb.y,this.j.x,this.j.y),e=this.eb.x+Math.cos(h)*this.Xe,h=this.eb.y+Math.sin(h)*this.Xe}else e=this.eb.x+Math.cos(this.eb.u+this.Nj)*this.Xe,h=this.eb.y+Math.sin(this.eb.u+this.Nj)*this.Xe;this.Wc=b=Ka(this.Sh+(this.eb.u-this.Rm));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.j.x===e&&this.j.y===h||(this.j.x=e,this.j.y=h,this.j.D());0!==this.mode&&2!==this.mode||this.j.u===b||(this.j.u=b,this.j.D())}};
e.prototype.uv=function(){return!!this.eb};p.n=new e;m.prototype.Qv=function(e,h){if(e){var b=e.wl(this.j);b&&(this.eb=b,this.Nj=Na(b.x,b.y,this.j.x,this.j.y)-b.u,this.Xe=Ta(b.x,b.y,this.j.x,this.j.y),this.Wc=this.Sh=this.j.u,this.Rm=b.u,this.mode=h)}};p.q=new m;r.prototype.Rv=function(e){e.Ia(this.eb?this.eb.uid:-1)};p.J=new r})();function Z(e){this.b=e}
(function(){function e(){}function m(){}function r(){}var p=Z.prototype;p.ea=function(e){this.behavior=e;this.b=e.b};p.ea.prototype.O=function(){};p.V=function(e,h){this.type=e;this.behavior=e.behavior;this.j=h;this.b=e.b;this.fk=this.Lm=this.Km=this.Dl=this.ti=this.Ai=this.Fh=this.Gh=this.Wj=this.lj=!1;this.Mb=null;this.Po=-1;this.Hg=this.Gg=0;this.pl=!1;this.Cf=this.Hd=0;this.nl=!0;this.G=this.F=0};var t=p.V.prototype;t.Vp=function(){this.$a=Math.cos(this.uh);this.ab=Math.sin(this.uh);this.Ug=Math.cos(this.uh-
Math.PI/2);this.Vg=Math.sin(this.uh-Math.PI/2);this.$a=mb(this.$a);this.ab=mb(this.ab);this.Ug=mb(this.Ug);this.Vg=mb(this.Vg);this.tl=this.mb;0>this.mb&&(this.$a*=-1,this.ab*=-1,this.mb=Math.abs(this.mb))};t.O=function(){this.qe=this.C[0];this.Hb=this.C[1];this.lh=this.C[2];this.If=this.C[3];this.tl=this.mb=this.C[4];this.Og=this.C[5];this.Sn=0!==this.C[6];this.Jo=this.C[7]/1E3;this.rx=1===this.C[8];this.enabled=0!==this.C[9];this.mi=!1;this.ni=this.b.ye(this.j);this.Qo=-1;this.$g=0;this.uh=H(90);
this.Vp();var e=this;this.rx&&!this.b.mc&&(jQuery(document).keydown(function(h){e.ep(h)}),jQuery(document).keyup(function(h){e.fp(h)}));this.Xb||(this.Aj=function(h){e.Hj(h)});this.b.Dk(this.Aj);this.j.L.isPlatformBehavior=!0};t.Ya=function(){return{ii:this.Dl,lfx:this.Gg,lfy:this.Hg,lfo:this.Mb?this.Mb.uid:-1,am:this.Hd,en:this.enabled,fall:this.Cf,ft:this.nl,dx:this.F,dy:this.G,ms:this.qe,acc:this.Hb,dec:this.lh,js:this.If,g:this.mb,g1:this.tl,mf:this.Og,wof:this.mi,woj:this.ni?this.ni.uid:-1,ga:this.uh,
edj:this.Sn,cdj:this.ti,dj:this.Ai,sus:this.Jo}};t.ib=function(e){this.Dl=e.ii;this.Gg=e.lfx;this.Hg=e.lfy;this.Po=e.lfo;this.Hd=e.am;this.enabled=e.en;this.Cf=e.fall;this.nl=e.ft;this.F=e.dx;this.G=e.dy;this.qe=e.ms;this.Hb=e.acc;this.lh=e.dec;this.If=e.js;this.mb=e.g;this.tl=e.g1;this.Og=e.mf;this.mi=e.wof;this.Qo=e.woj;this.uh=e.ga;this.Sn=e.edj;this.ti=e.cdj;this.Ai=e.dj;this.Jo=e.sus;this.fk=this.Lm=this.Km=this.Fh=this.Gh=this.Wj=this.lj=!1;this.$g=0;this.Vp()};t.Fd=function(){-1===this.Po?
this.Mb=null:this.Mb=this.b.tg(this.Po);-1===this.Qo?this.ni=null:this.ni=this.b.tg(this.Qo)};t.Hj=function(e){this.Mb==e&&(this.Mb=null)};t.Td=function(){this.Mb=null;this.b.Et(this.Aj)};t.ep=function(e){switch(e.which){case 38:e.preventDefault();this.Gh=!0;break;case 37:e.preventDefault();this.lj=!0;break;case 39:e.preventDefault(),this.Wj=!0}};t.fp=function(e){switch(e.which){case 38:e.preventDefault();this.Fh=this.Gh=!1;break;case 37:e.preventDefault();this.lj=!1;break;case 39:e.preventDefault(),
this.Wj=!1}};t.Sg=function(){this.Gh=this.Wj=this.lj=!1};t.si=function(){return 0>this.mb?-1:1};t.ks=function(){var e=null,h=null,b,d;b=this.j.x;d=this.j.y;this.j.x+=this.$a;this.j.y+=this.ab;this.j.D();if(this.Mb&&this.b.$b(this.j,this.Mb)&&(!this.b.Rp(this.Mb.type,qc)||this.Mb.L.solidEnabled))return this.j.x=b,this.j.y=d,this.j.D(),this.Mb;(e=this.b.Eb(this.j))||0!==this.Cf||(h=this.b.ye(this.j,!0));this.j.x=b;this.j.y=d;this.j.D();if(e){if(this.b.$b(this.j,e))return null;this.pl=!1;return e}if(h&&
h.length){d=e=0;for(b=h.length;e<b;e++)h[d]=h[e],this.b.$b(this.j,h[e])||d++;if(1<=d)return this.pl=!0,h[0]}return null};t.Ja=function(){};t.yt=function(){var e=this.b.Ff(this.j),h,b,d,f,a,c,g,l,m;this.Gh||this.fk||(this.Fh=!1);var p=this.lj||this.Km;d=this.Wj||this.Lm;var r=(f=this.Gh||this.fk)&&!this.Fh;this.fk=this.Lm=this.Km=!1;if(this.enabled){this.Dl&&(r=f=d=p=!1);f||(this.$g=0);l=this.Mb;m=!1;this.nl&&((this.b.Eb(this.j)||this.b.ye(this.j))&&this.b.ad(this.j,-this.$a,-this.ab,4,!0),this.nl=
!1);!l||0!==this.G||l.y===this.Hg&&l.x===this.Gg||(h=l.x-this.Gg,b=l.y-this.Hg,this.j.x+=h,this.j.y+=b,this.j.D(),this.Gg=l.x,this.Hg=l.y,m=!0,this.b.Eb(this.j)&&this.b.ad(this.j,-h,-b,2.5*Math.sqrt(h*h+b*b)));var n=this.ks();if(b=this.b.Eb(this.j))if(this.j.L.inputPredicted)this.b.ad(this.j,-this.$a,-this.ab,10,!1);else if(this.b.pp(this.j,Math.max(this.j.width,this.j.height)/2))this.b.Zh(this.j,b);else return;n?(this.ti=this.Ai=!1,0<this.G&&(this.mi||(this.b.op(this.j,-this.$a,-this.ab,n),this.mi=
!0),this.G=0),l!=n)?(this.Mb=n,this.Gg=n.x,this.Hg=n.y,this.b.Zh(this.j,n)):m&&(b=this.b.Eb(this.j))&&(this.b.Zh(this.j,b),0!==h&&(0<h?this.b.ad(this.j,-this.Ug,-this.Vg):this.b.ad(this.j,this.Ug,this.Vg)),this.b.ad(this.j,-this.$a,-this.ab)):f||(this.ti=!0);if(n&&r||!n&&this.Sn&&f&&this.ti&&!this.Ai)l=this.j.x,m=this.j.y,this.j.x-=this.$a,this.j.y-=this.ab,this.j.D(),this.b.Eb(this.j)?r=!1:(this.$g=this.Jo,this.b.trigger(Z.prototype.n.uq,this.j),this.Hd=2,this.G=-this.If,r=!0,n?this.Fh=!0:this.Ai=
!0),this.j.x=l,this.j.y=m,this.j.D();n||(f&&0<this.$g?(this.G=-this.If,this.$g-=e):(this.Mb=null,this.G+=this.mb*e,this.G>this.Og&&(this.G=this.Og)),r&&(this.Fh=!0));this.mi=!!n;p==d&&(0>this.F?(this.F+=this.lh*e,0<this.F&&(this.F=0)):0<this.F&&(this.F-=this.lh*e,0>this.F&&(this.F=0)));p&&!d&&(this.F=0<this.F?this.F-(this.Hb+this.lh)*e:this.F-this.Hb*e);d&&!p&&(this.F=0>this.F?this.F+(this.Hb+this.lh)*e:this.F+this.Hb*e);this.F>this.qe?this.F=this.qe:this.F<-this.qe&&(this.F=-this.qe);p=!1;0!==this.F&&
(l=this.j.x,m=this.j.y,h=this.F*e*this.Ug,b=this.F*e*this.Vg,this.j.x+=this.Ug*(1<this.F?1:-1)-this.$a,this.j.y+=this.Vg*(1<this.F?1:-1)-this.ab,this.j.D(),f=!1,a=this.b.Eb(this.j),this.j.x=l+h,this.j.y=m+b,this.j.D(),d=this.b.Eb(this.j),!d&&n&&(d=this.b.ye(this.j))&&(this.j.x=l,this.j.y=m,this.j.D(),this.b.$b(this.j,d)?(d=null,f=!1):f=!0,this.j.x=l+h,this.j.y=m+b,this.j.D()),d?(h=Math.abs(this.F*e)+2,a||!this.b.ad(this.j,-this.$a,-this.ab,h,f,d))?(this.b.Zh(this.j,d),h=Math.max(Math.abs(this.F*e*
2.5),30),this.b.ad(this.j,this.Ug*(0>this.F?1:-1),this.Vg*(0>this.F?1:-1),h,!1)?!n||f||this.pl||(l=this.j.x,m=this.j.y,this.j.x+=this.$a,this.j.y+=this.ab,this.b.Eb(this.j)?this.b.ad(this.j,-this.$a,-this.ab,3,!1)||(this.j.x=l,this.j.y=m,this.j.D()):(this.j.x=l,this.j.y=m,this.j.D())):(this.j.x=l,this.j.y=m,this.j.D()),f||(this.F=0)):!a&&!r&&Math.abs(this.G)<Math.abs(this.If/4)&&(this.G=0,n||(p=!0)):(l=this.ks(),n&&!l?(b=Math.ceil(Math.abs(this.F*e))+2,l=this.j.x,m=this.j.y,this.j.x+=this.$a*b,this.j.y+=
this.ab*b,this.j.D(),this.b.Eb(this.j)||this.b.ye(this.j)?this.b.ad(this.j,-this.$a,-this.ab,b+2,!0):(this.j.x=l,this.j.y=m,this.j.D())):l&&0===this.G&&this.b.op(this.j,-this.$a,-this.ab,l)));if(0!==this.G){l=this.j.x;m=this.j.y;this.j.x+=this.G*e*this.$a;this.j.y+=this.G*e*this.ab;h=this.j.x;d=this.j.y;this.j.D();b=this.b.Eb(this.j);f=!1;if(!b&&0<this.G&&!n){if((f=0<this.Cf?null:this.b.ye(this.j,!0))&&f.length){if(this.ni){this.j.x=l;this.j.y=m;this.j.D();g=a=0;for(c=f.length;a<c;a++)f[g]=f[a],this.b.$b(this.j,
f[a])||g++;f.length=g;this.j.x=h;this.j.y=d;this.j.D()}1<=f.length&&(b=f[0])}f=!!b}b&&(this.b.Zh(this.j,b),this.$g=0,h=f?Math.abs(this.G*e*2.5+10):Math.max(Math.abs(this.G*e*2.5+10),30),this.b.ad(this.j,this.$a*(0>this.G?1:-1),this.ab*(0>this.G?1:-1),h,f,b)?(this.Mb=b,this.Gg=b.x,this.Hg=b.y,(this.pl=f)&&(p=!0),this.G=0):(this.j.x=l,this.j.y=m,this.j.D(),this.mi=!0,f||(this.G=0)))}3!==this.Hd&&0<this.G&&!n&&(this.b.trigger(Z.prototype.n.Hv,this.j),this.Hd=3);if(n||p)3===this.Hd||p||r&&0===this.G?
(this.b.trigger(Z.prototype.n.yq,this.j),this.Hd=0===this.F&&0===this.G?0:1):(0!==this.Hd&&0===this.F&&0===this.G&&(this.b.trigger(Z.prototype.n.Mv,this.j),this.Hd=0),1===this.Hd||0===this.F&&0===this.G||r||(this.b.trigger(Z.prototype.n.Lv,this.j),this.Hd=1));0<this.Cf&&this.Cf--;this.ni=this.b.ye(this.j)}};e.prototype.hq=function(e,h){var b=Math.sqrt(this.F*this.F+this.G*this.G);return fc(b,e,h)};e.prototype.pv=function(){if(0!==this.G)return!1;var e=null,h=null,b,d;b=this.j.x;d=this.j.y;this.j.x+=
this.$a;this.j.y+=this.ab;this.j.D();(e=this.b.Eb(this.j))||0!==this.Cf||(h=this.b.ye(this.j,!0));this.j.x=b;this.j.y=d;this.j.D();if(e)return!this.b.$b(this.j,e);if(h&&h.length){d=e=0;for(b=h.length;e<b;e++)h[d]=h[e],this.b.$b(this.j,h[e])||d++;if(1<=d)return!0}return!1};e.prototype.lv=function(){return 0>this.G};e.prototype.jv=function(){return 0<this.G};e.prototype.uq=function(){return!0};e.prototype.Hv=function(){return!0};e.prototype.Mv=function(){return!0};e.prototype.Lv=function(){return!0};
e.prototype.yq=function(){return!0};p.n=new e;m.prototype.gw=function(e){this.Dl=e};m.prototype.ow=function(e){this.qe=e;0>this.qe&&(this.qe=0)};m.prototype.Dq=function(e){this.Hb=e;0>this.Hb&&(this.Hb=0)};m.prototype.iw=function(e){this.If=e;0>this.If&&(this.If=0)};m.prototype.Bk=function(e){this.tl!==e&&(this.mb=e,this.Vp(),this.b.Eb(this.j)&&(this.b.ad(this.j,this.$a,this.ab,10),this.j.x+=2*this.$a,this.j.y+=2*this.ab,this.j.D()),this.Mb=null)};m.prototype.mw=function(e){this.Og=e;0>this.Og&&(this.Og=
0)};m.prototype.Gw=function(e){switch(e){case 0:this.Km=!0;break;case 1:this.Lm=!0;break;case 2:this.fk=!0}};m.prototype.Cw=function(e){this.F=e};m.prototype.Dw=function(e){this.G=e};m.prototype.Ae=function(e){this.enabled!==(1===e)&&(this.enabled=1===e,this.enabled||(this.Mb=null))};m.prototype.Xu=function(){var e=this.j.x,h=this.j.y;this.j.x+=this.$a;this.j.y+=this.ab;this.j.D();var b=this.b.ye(this.j,!1);this.j.x=e;this.j.y=h;this.j.D();b&&(this.Cf=3,this.Mb=null)};p.q=new m;r.prototype.Kq=function(e){e.R(Math.sqrt(this.F*
this.F+this.G*this.G))};r.prototype.Av=function(e){e.R(this.qe)};p.J=new r})();function Gc(e){this.b=e}
(function(){function e(){}var m=Gc.prototype;m.ea=function(e){this.behavior=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e,b){this.type=e;this.behavior=e.behavior;this.j=b;this.b=e.b;this.Ab=0};var r=m.V.prototype,p=2*Math.PI,t=Math.PI/2,k=3*Math.PI/2;r.O=function(){this.Ta=1===this.C[0];this.zj=this.C[1];this.bq=this.C[2];this.We=this.C[3];this.We+=Math.random()*this.C[4];0===this.We?this.Ab=0:(this.Ab=this.C[5]/this.We*p,this.Ab+=Math.random()*this.C[6]/this.We*p);this.Jc=this.C[7];
this.Jc+=Math.random()*this.C[8];this.Uj=this.xg=this.ya=0;this.init()};r.Ya=function(){return{i:this.Ab,a:this.Ta,mv:this.zj,w:this.bq,p:this.We,mag:this.Jc,iv:this.ya,iv2:this.xg,r:this.Uj,lkv:this.Xc,lkv2:this.gj}};r.ib=function(e){this.Ab=e.i;this.Ta=e.a;this.zj=e.mv;this.bq=e.w;this.We=e.p;this.Jc=e.mag;this.ya=e.iv;this.xg=e.iv2||0;this.Uj=e.r;this.Xc=e.lkv;this.gj=e.lkv2||0};r.init=function(){switch(this.zj){case 0:this.ya=this.j.x;break;case 1:this.ya=this.j.y;break;case 2:this.ya=this.j.width;
this.Uj=this.j.height/this.j.width;break;case 3:this.ya=this.j.width;break;case 4:this.ya=this.j.height;break;case 5:this.ya=this.j.u;this.Jc=H(this.Jc);break;case 6:this.ya=this.j.opacity;break;case 7:this.ya=0;break;case 8:this.ya=this.j.x,this.xg=this.j.y}this.Xc=this.ya;this.gj=this.xg};r.hf=function(e){e=e%p;switch(this.bq){case 0:return Math.sin(e);case 1:return e<=t?e/t:e<=k?1-2*(e-t)/Math.PI:(e-k)/t-1;case 2:return 2*e/p-1;case 3:return-2*e/p+1;case 4:return e<Math.PI?-1:1}return 0};r.Ja=
function(){var e=this.b.Ff(this.j);this.Ta&&0!==e&&(0===this.We?this.Ab=0:(this.Ab+=e/this.We*p,this.Ab=this.Ab%p),this.PA())};r.PA=function(){switch(this.zj){case 0:this.j.x!==this.Xc&&(this.ya+=this.j.x-this.Xc);this.j.x=this.ya+this.hf(this.Ab)*this.Jc;this.Xc=this.j.x;break;case 1:this.j.y!==this.Xc&&(this.ya+=this.j.y-this.Xc);this.j.y=this.ya+this.hf(this.Ab)*this.Jc;this.Xc=this.j.y;break;case 2:this.j.width=this.ya+this.hf(this.Ab)*this.Jc;this.j.height=this.j.width*this.Uj;break;case 3:this.j.width=
this.ya+this.hf(this.Ab)*this.Jc;break;case 4:this.j.height=this.ya+this.hf(this.Ab)*this.Jc;break;case 5:this.j.u!==this.Xc&&(this.ya=Ka(this.ya+(this.j.u-this.Xc)));this.j.u=Ka(this.ya+this.hf(this.Ab)*this.Jc);this.Xc=this.j.u;break;case 6:this.j.opacity=this.ya+this.hf(this.Ab)*this.Jc/100;0>this.j.opacity?this.j.opacity=0:1<this.j.opacity&&(this.j.opacity=1);break;case 8:this.j.x!==this.Xc&&(this.ya+=this.j.x-this.Xc),this.j.y!==this.gj&&(this.xg+=this.j.y-this.gj),this.j.x=this.ya+Math.cos(this.j.u)*
this.hf(this.Ab)*this.Jc,this.j.y=this.xg+Math.sin(this.j.u)*this.hf(this.Ab)*this.Jc,this.Xc=this.j.x,this.gj=this.j.y}this.j.D()};r.et=function(e,b){switch(this.zj){case 2:this.ya*=b.width/e.width;this.Uj=b.height/b.width;break;case 3:this.ya*=b.width/e.width;break;case 4:this.ya*=b.height/e.height}};m.n=new function(){};e.prototype.Yv=function(e){this.Ta=1===e};m.q=new e;m.J=new function(){}})();function Hc(e){this.b=e}
(function(){var e=Hc.prototype;e.ea=function(e){this.behavior=e;this.b=e.b};e.ea.prototype.O=function(){};e.V=function(e,r){this.type=e;this.behavior=e.behavior;this.j=r;this.b=e.b};e=e.V.prototype;e.O=function(){};e.Ja=function(){this.j.la();var e=this.j.Y,r=this.j.A.ob;(0>e.right||0>e.bottom||e.left>r.width||e.top>r.height)&&this.b.ge(this.j)}})();function rc(e){this.b=e}
(function(){function e(){}var m=rc.prototype;m.ea=function(e){this.behavior=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=m.V.prototype;r.O=function(){this.j.L.jumpthruEnabled=0!==this.C[0]};r.Ja=function(){};m.n=new function(){};e.prototype.Ae=function(e){this.j.L.jumpthruEnabled=!!e};m.q=new e})();function Ic(e){this.b=e;this.Im=this.dk=this.Xg=this.Hm=0}
(function(){function e(){}var m=Ic.prototype;m.ea=function(e){this.behavior=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=m.V.prototype;r.O=function(){this.enabled=0!==this.C[0]};r.Ya=function(){return{smg:this.behavior.Hm,ss:this.behavior.Xg,se:this.behavior.dk,smd:this.behavior.Im}};r.ib=function(e){this.behavior.Hm=e.smg;this.behavior.Xg=e.ss;this.behavior.dk=e.se;this.behavior.Im=e.smd};r.Ja=function(){};r.Um=function(){if(this.enabled){var e=
this.behavior.Bj.Cd(),m=0,k=0,h,b,d,f=0;h=0;for(b=e.length;h<b;h++){a:{d=e[h];for(var a=void 0,c=void 0,g=void 0,a=0,c=d.S.length;a<c;++a)if(g=d.S[a],g.behavior instanceof Ic){d=g;break a}d=null}d&&d.enabled&&(m+=e[h].x,k+=e[h].y,++f)}e=this.j.A.ob;b=this.b.nb.aa;d=h=0;b>=this.behavior.Xg&&b<this.behavior.dk&&(h=this.behavior.Hm*Math.min(this.b.dh,1),0===this.behavior.Im&&(h*=1-(b-this.behavior.Xg)/(this.behavior.dk-this.behavior.Xg)),b=Math.random()*Math.PI*2,d=Math.random()*h,h=Math.cos(b)*d,d*=
Math.sin(b));e.Ap(m/f+h);e.Bp(k/f+d)}};e.prototype.Ew=function(e,m,k){this.behavior.Hm=e;this.behavior.Xg=this.b.nb.aa;this.behavior.dk=this.behavior.Xg+m;this.behavior.Im=k};e.prototype.Ae=function(e){this.enabled=0!==e};m.q=new e})();function qc(e){this.b=e}
(function(){function e(){}var m=qc.prototype;m.ea=function(e){this.behavior=e;this.b=e.b};m.ea.prototype.O=function(){};m.V=function(e,m){this.type=e;this.behavior=e.behavior;this.j=m;this.b=e.b};var r=m.V.prototype;r.O=function(){this.j.L.solidEnabled=0!==this.C[0]};r.Ja=function(){};m.n=new function(){};e.prototype.Ae=function(e){this.j.L.solidEnabled=!!e};m.q=new e})();
function pc(){return[sc,tc,vc,uc,V,wc,xc,yc,zc,Dc,Z,Ic,Ac,Cc,Bc,Gc,qc,rc,Hc,R.prototype.n.zq,V.prototype.q.hw,V.prototype.n.pq,V.prototype.n.ov,R.prototype.n.Pu,R.prototype.q.Bw,R.prototype.q.Tu,V.prototype.J.Tw,V.prototype.J.Lq,V.prototype.q.pw,V.prototype.n.Fv,V.prototype.n.Cq,V.prototype.n.gv,V.prototype.q.Lw,V.prototype.q.Hw,Ac.prototype.q.Zv,R.prototype.J.random,V.prototype.q.$v,Z.prototype.q.Ae,V.prototype.n.Nu,V.prototype.q.qn,V.prototype.n.lf,V.prototype.n.oq,tc.prototype.q.Play,R.prototype.n.Wu,
V.prototype.q.Fq,R.prototype.J.max,R.prototype.J.min,uc.prototype.n.vq,R.prototype.q.Pw,Z.prototype.n.lv,Z.prototype.n.jv,Dc.prototype.q.Qv,Z.prototype.n.pv,V.prototype.n.sv,V.prototype.n.rv,R.prototype.n.Lu,R.prototype.J.floor,R.prototype.n.Zu,Z.prototype.q.ow,Z.prototype.J.Av,vc.prototype.q.qn,Dc.prototype.n.uv,V.prototype.q.tn,V.prototype.J.Ow,V.prototype.n.nq,V.prototype.n.Mu,Z.prototype.q.Dw,V.prototype.n.jq,Z.prototype.q.gw,Ac.prototype.q.Ae,R.prototype.J.u,Ac.prototype.q.xw,V.prototype.n.Zf,
Z.prototype.q.Bk,V.prototype.q.Gq,V.prototype.J.yn,V.prototype.J.sn,V.prototype.n.iq,Ac.prototype.q.Bk,Ac.prototype.q.Dq,V.prototype.q.bw,xc.prototype.q.wn,xc.prototype.q.tn,xc.prototype.n.iq,xc.prototype.q.qn,xc.prototype.n.nq,xc.prototype.q.xn,xc.prototype.J.yn,R.prototype.n.kq,xc.prototype.q.Eq,V.prototype.q.aw,tc.prototype.q.Jw,tc.prototype.q.Uv,R.prototype.J.Bd,V.prototype.q.Eq,V.prototype.q.Hq,Bc.prototype.q.Wv,Z.prototype.q.Gw,Z.prototype.q.iw,V.prototype.n.Ov,Cc.prototype.q.Cu,V.prototype.q.Jq,
Cc.prototype.n.bv,V.prototype.J.Su,V.prototype.q.Iq,R.prototype.J.VA,R.prototype.J.UA,V.prototype.n.Qu,tc.prototype.q.Tv,Z.prototype.n.hq,V.prototype.q.xn,Bc.prototype.q.ew,Bc.prototype.q.Iw,Cc.prototype.q.Ku,V.prototype.q.wn,V.prototype.q.rw,V.prototype.n.tv,V.prototype.J.Du,Ic.prototype.q.Ae,qc.prototype.q.Ae,V.prototype.q.Aw,V.prototype.q.Cv,V.prototype.n.un,vc.prototype.q.wn,vc.prototype.q.tn,R.prototype.q.jw,R.prototype.n.Nw,Bc.prototype.q.dw,R.prototype.q.$u,Dc.prototype.J.Rv,Z.prototype.n.yq,
V.prototype.n.qv,V.prototype.J.Gu,V.prototype.q.qw,Z.prototype.n.uq,R.prototype.n.Vu,V.prototype.n.Ou,V.prototype.J.Opacity,V.prototype.J.cv,V.prototype.J.dv,R.prototype.q.av,R.prototype.J.abs,V.prototype.q.Bv,V.prototype.q.Dv,Gc.prototype.q.Yv,tc.prototype.q.Kw,R.prototype.n.kv,Ac.prototype.q.Hu,V.prototype.q.Bu,R.prototype.n.Yu,R.prototype.J.cos,Ac.prototype.J.Eu,R.prototype.J.tan,tc.prototype.q.Sv,xc.prototype.n.gq,xc.prototype.q.Fq,xc.prototype.J.sn,Ac.prototype.J.Kq,vc.prototype.q.yw,vc.prototype.q.uw,
R.prototype.J.wx,uc.prototype.n.rq,R.prototype.q.Qw,wc.prototype.q.zw,wc.prototype.n.un,Bc.prototype.n.tq,R.prototype.n.xv,R.prototype.J.Mz,R.prototype.q.kw,tc.prototype.q.ww,wc.prototype.q.Hq,V.prototype.q.vw,Ic.prototype.q.Ew,xc.prototype.q.Jq,xc.prototype.J.Lq,xc.prototype.n.oq,V.prototype.n.vv,R.prototype.n.yv,V.prototype.n.gq,V.prototype.n.mq,R.prototype.J.TA,R.prototype.J.WA,R.prototype.q.Xv,yc.prototype.n.Cq,uc.prototype.n.nv,V.prototype.n.qq,Z.prototype.q.mw,Z.prototype.q.Xu,Cc.prototype.q.sw,
Z.prototype.q.Cw,V.prototype.q.fw,Cc.prototype.q.cw,R.prototype.n.Pv,tc.prototype.q.lw,R.prototype.J.log10,sc.prototype.n.Ru,sc.prototype.q.Vv,xc.prototype.n.lf,R.prototype.J.Nz,wc.prototype.J.Text,R.prototype.J.left,R.prototype.J.right,R.prototype.q.Fw,R.prototype.J.$A,R.prototype.J.Vz]};