-
Notifications
You must be signed in to change notification settings - Fork 0
/
c2runtime.js
427 lines (427 loc) · 206 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com
'use strict';var aa,ba,ca,ea,ha,ia,ja,ka,la,ma,na,oa,pa,qa,B,ta,ua,va,wa,xa,ya,za,Aa,Ca,Da,Ea,S,Fa,Ga,Ia,Ja,Ka,W,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,fc,gc={},hc={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(f){return f.__proto__}:function(f){return f.constructor.prototype});
(function(){function f(a,e,b,h){this.set(a,e,b,h)}function n(){this.Db=this.Cb=this.Fb=this.Eb=this.Ob=this.Nb=this.hb=this.gb=0}function d(a,e,b,h){a<e?b<h?(O=a<b?a:b,x=e>h?e:h):(O=a<h?a:h,x=e>b?e:b):b<h?(O=e<b?e:b,x=a>h?a:h):(O=e<h?e:h,x=a>b?a:b)}function q(){this.items=this.Hd=null;this.uh=0;u&&(this.Hd=new Set);this.Lg=[];this.we=!0}function r(a){z[F++]=a}function t(){this.J=this.tk=this.y=this.Wk=0}function c(a){this.wa=[];this.Fi=this.Hi=this.Ii=this.Gi=0;this.di(a)}function a(a,e){this.$a=
a;this.ib=e;this.cells={}}function k(a,e){this.$a=a;this.ib=e;this.cells={}}function w(a,e,b){var h;return L.length?(h=L.pop(),h.Ll=a,h.x=e,h.y=b,h):new aa(a,e,b)}function e(a,e,b){this.Ll=a;this.x=e;this.y=b;this.pb=new ba}function b(a,e,b){var h;return y.length?(h=y.pop(),h.Ll=a,h.x=e,h.y=b,h):new ca(a,e,b)}function m(a,e,b){this.Ll=a;this.x=e;this.y=b;this.pb=[];this.ng=!0;this.Fd=new ba;this.Qg=!1}function g(a,e){return a.vd-e.vd}ea=function(a){window.console&&window.console.log&&window.console.log(a)};
ha=function(a){window.console&&window.console.error&&window.console.error(a)};ia=function(a){return"undefined"===typeof a};ja=function(a){return"number"===typeof a};ka=function(a){return"string"===typeof a};la=function(a){return 0<a&&0===(a-1&a)};ma=function(a){--a;for(var e=1;32>e;e<<=1)a=a|a>>e;return a+1};na=function(a){return 0>a?-a:a};oa=function(a,e){return a>e?a:e};pa=function(a,e){return a<e?a:e};qa=Math.PI;B=function(a){return 0<=a?a|0:(a|0)-1};ta=function(a){var e=a|0;return e===a?e:e+1};
ua=function(a,e,b,h,l,v,A,E){var g,m,k,c;a<b?(m=a,g=b):(m=b,g=a);l<A?(c=l,k=A):(c=A,k=l);if(g<c||m>k)return!1;e<h?(m=e,g=h):(m=h,g=e);v<E?(c=v,k=E):(c=E,k=v);if(g<c||m>k)return!1;g=l-a+A-b;m=v-e+E-h;a=b-a;e=h-e;l=A-l;v=E-v;E=na(e*l-v*a);return na(l*m-v*g)>E?!1:na(a*m-e*g)<=E};f.prototype.set=function(a,e,b,h){this.left=a;this.top=e;this.right=b;this.bottom=h};f.prototype.Xf=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};f.prototype.width=function(){return this.right-
this.left};f.prototype.height=function(){return this.bottom-this.top};f.prototype.offset=function(a,e){this.left+=a;this.top+=e;this.right+=a;this.bottom+=e;return this};f.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};f.prototype.vu=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};f.prototype.wu=function(a,e,b){return!(a.right+
e<this.left||a.bottom+b<this.top||a.left+e>this.right||a.top+b>this.bottom)};f.prototype.oc=function(a,e){return a>=this.left&&a<=this.right&&e>=this.top&&e<=this.bottom};f.prototype.Yg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};va=f;n.prototype.ci=function(a){this.gb=a.left;this.hb=a.top;this.Nb=a.right;this.Ob=a.top;this.Eb=a.right;this.Fb=a.bottom;this.Cb=a.left;this.Db=a.bottom};n.prototype.Wp=function(a,e){if(0===e)this.ci(a);else{var b=
Math.sin(e),h=Math.cos(e),g=a.left*b,v=a.top*b,A=a.right*b,b=a.bottom*b,l=a.left*h,m=a.top*h,k=a.right*h,h=a.bottom*h;this.gb=l-v;this.hb=m+g;this.Nb=k-v;this.Ob=m+A;this.Eb=k-b;this.Fb=h+A;this.Cb=l-b;this.Db=h+g}};n.prototype.offset=function(a,e){this.gb+=a;this.hb+=e;this.Nb+=a;this.Ob+=e;this.Eb+=a;this.Fb+=e;this.Cb+=a;this.Db+=e;return this};var O=0,x=0;n.prototype.On=function(a){d(this.gb,this.Nb,this.Eb,this.Cb);a.left=O;a.right=x;d(this.hb,this.Ob,this.Fb,this.Db);a.top=O;a.bottom=x};n.prototype.oc=
function(a,e){var b=this.gb,h=this.hb,g=this.Nb-b,v=this.Ob-h,A=this.Eb-b,l=this.Fb-h,m=a-b,k=e-h,c=g*g+v*v,w=g*A+v*l,v=g*m+v*k,p=A*A+l*l,u=A*m+l*k,d=1/(c*p-w*w),g=(p*v-w*u)*d,c=(c*u-w*v)*d;if(0<=g&&0<c&&1>g+c)return!0;g=this.Cb-b;v=this.Db-h;c=g*g+v*v;w=g*A+v*l;v=g*m+v*k;d=1/(c*p-w*w);g=(p*v-w*u)*d;c=(c*u-w*v)*d;return 0<=g&&0<c&&1>g+c};n.prototype.ue=function(a,e){if(e)switch(a){case 0:return this.gb;case 1:return this.Nb;case 2:return this.Eb;case 3:return this.Cb;case 4:return this.gb;default:return this.gb}else switch(a){case 0:return this.hb;
case 1:return this.Ob;case 2:return this.Fb;case 3:return this.Db;case 4:return this.hb;default:return this.hb}};n.prototype.gp=function(){return(this.gb+this.Nb+this.Eb+this.Cb)/4};n.prototype.hp=function(){return(this.hb+this.Ob+this.Fb+this.Db)/4};n.prototype.yo=function(a){var e=a.gp(),b=a.hp();if(this.oc(e,b))return!0;e=this.gp();b=this.hp();if(a.oc(e,b))return!0;var h,g,v,A,l,m,k,c;for(k=0;4>k;k++)for(c=0;4>c;c++)if(e=this.ue(k,!0),b=this.ue(k,!1),h=this.ue(k+1,!0),g=this.ue(k+1,!1),v=a.ue(c,
!0),A=a.ue(c,!1),l=a.ue(c+1,!0),m=a.ue(c+1,!1),ua(e,b,h,g,v,A,l,m))return!0;return!1};wa=n;xa=function(a,e,b){return Math.max(Math.min(a,255),0)|Math.max(Math.min(e,255),0)<<8|Math.max(Math.min(b,255),0)<<16};ya=function(a){return a&255};za=function(a){return(a&65280)>>8};Aa=function(a){return(a&16711680)>>16};Ca=function(a,e){for(var b in e)e.hasOwnProperty(b)&&(a[b]=e[b]);return a};Da=function(a,e){var b,h;e=B(e);if(!(0>e||e>=a.length)){b=e;for(h=a.length-1;b<h;b++)a[b]=a[b+1];Ea(a,h)}};Ea=function(a,
e){a.length=e};S=function(a){Ea(a,0)};Fa=function(a,e){S(a);var b,h;b=0;for(h=e.length;b<h;++b)a[b]=e[b]};Ga=function(a,e){a.push.apply(a,e)};Ia=function(a,e){var b,h;b=0;for(h=a.length;b<h;++b)if(a[b]===e)return b;return-1};Ja=function(a,e){var b=Ia(a,e);-1!==b&&Da(a,b)};Ka=function(a,e,b){return a<e?e:a>b?b:a};W=function(a){return a/(180/qa)};La=function(a){return 180/qa*a};Ma=function(a){a%=360;0>a&&(a+=360);return a};Na=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Oa=function(a){return Ma(La(a))};
Pa=function(a){return Na(W(a))};Qa=function(a,e,b,h){return Math.atan2(h-e,b-a)};Ra=function(a,e){if(a===e)return 0;var b=Math.sin(a),h=Math.cos(a),g=Math.sin(e),v=Math.cos(e),b=b*g+h*v;return 1<=b?0:-1>=b?qa:Math.acos(b)};Sa=function(a,e,b){var h=Math.sin(a),g=Math.cos(a),v=Math.sin(e),A=Math.cos(e);return Math.acos(h*v+g*A)>b?0<g*v-h*A?Na(a+b):Na(a-b):Na(e)};Xa=function(a,e){var b=Math.sin(a),h=Math.cos(a),g=Math.sin(e),v=Math.cos(e);return 0>=h*g-b*v};Ya=function(a,e,b,h,g,v){if(0===b)return v?
a:e;var A=Math.sin(b);b=Math.cos(b);a-=h;e-=g;var l=a*A;a=a*b-e*A;e=e*b+l;return v?a+h:e+g};Za=function(a,e,b,h){a=b-a;e=h-e;return Math.sqrt(a*a+e*e)};$a=function(a,e){return!a!==!e};ab=function(a){for(var e in a)if(a.hasOwnProperty(e))return!0;return!1};bb=function(a){for(var e in a)a.hasOwnProperty(e)&&delete a[e]};var p=+new Date;cb=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()-p};var h=!1,l=h=!1,D=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),l=/(iphone|ipod|ipad)/i.test(navigator.userAgent),D=window.c2ejecta);var u=!h&&!D&&!l&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.Yd()?!1:u?
this.Hd.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(u)this.Hd.has(a)||(this.Hd.add(a),this.we=!1);else{var e=a.toString(),b=this.items;b?b.hasOwnProperty(e)||(b[e]=a,this.uh++,this.we=!1):(this.items={},this.items[e]=a,this.uh=1,this.we=!1)}};q.prototype.remove=function(a){if(!this.Yd())if(u)this.Hd.has(a)&&(this.Hd["delete"](a),this.we=!1);else if(this.items){a=a.toString();var e=this.items;e.hasOwnProperty(a)&&(delete e[a],this.uh--,this.we=!1)}};q.prototype.clear=
function(){this.Yd()||(u?this.Hd.clear():(this.items=null,this.uh=0),S(this.Lg),this.we=!0)};q.prototype.Yd=function(){return 0===this.count()};q.prototype.count=function(){return u?this.Hd.size:this.uh};var z=null,F=0;q.prototype.Lv=function(){if(!this.we){if(u)S(this.Lg),z=this.Lg,F=0,this.Hd.forEach(r),z=null,F=0;else{var a=this.Lg;S(a);var e,b=0,h=this.items;if(h)for(e in h)h.hasOwnProperty(e)&&(a[b++]=h[e])}this.we=!0}};q.prototype.Ye=function(){this.Lv();return this.Lg};ba=q;new ba;db=function(a,
e){u?eb(a,e.Hd):fb(a,e.Ye())};eb=function(a,e){var b,h,g,v;h=b=0;for(g=a.length;b<g;++b)v=a[b],e.has(v)||(a[h++]=v);Ea(a,h)};fb=function(a,e){var b,h,g,v;h=b=0;for(g=a.length;b<g;++b)v=a[b],-1===Ia(e,v)&&(a[h++]=v);Ea(a,h)};t.prototype.add=function(a){this.y=a-this.Wk;this.tk=this.J+this.y;this.Wk=this.tk-this.J-this.y;this.J=this.tk};t.prototype.reset=function(){this.J=this.tk=this.y=this.Wk=0};gb=t;hb=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};c.prototype.di=function(a){this.Gp=
a;this.xc=a.length/2;this.wa.length=a.length;this.Oi=this.Pi=-1;this.Sn=0};c.prototype.kg=function(){return!this.Gp.length};c.prototype.Ca=function(){for(var a=this.wa,e=a[0],b=e,h=a[1],g=h,v,A,l=1,m=this.xc;l<m;++l)A=2*l,v=a[A],A=a[A+1],v<e&&(e=v),v>b&&(b=v),A<h&&(h=A),A>g&&(g=A);this.Gi=e;this.Hi=b;this.Ii=h;this.Fi=g};c.prototype.ci=function(a,e,b){this.wa.length=8;this.xc=4;var h=this.wa;h[0]=a.left-e;h[1]=a.top-b;h[2]=a.right-e;h[3]=a.top-b;h[4]=a.right-e;h[5]=a.bottom-b;h[6]=a.left-e;h[7]=a.bottom-
b;this.Pi=a.right-a.left;this.Oi=a.bottom-a.top;this.Ca()};c.prototype.Gg=function(a,e,b,h,g){this.wa.length=8;this.xc=4;var v=this.wa;v[0]=a.gb-e;v[1]=a.hb-b;v[2]=a.Nb-e;v[3]=a.Ob-b;v[4]=a.Eb-e;v[5]=a.Fb-b;v[6]=a.Cb-e;v[7]=a.Db-b;this.Pi=h;this.Oi=g;this.Ca()};c.prototype.Vp=function(a){this.xc=a.xc;Fa(this.wa,a.wa);this.Gi=a.Gi;this.Ii-a.Ii;this.Hi=a.Hi;this.Fi=a.Fi};c.prototype.gf=function(a,e,b){if(this.Pi!==a||this.Oi!==e||this.Sn!==b){this.Pi=a;this.Oi=e;this.Sn=b;var h,g,v,A,l,m=0,k=1,c=this.Gp,
w=this.wa;0!==b&&(m=Math.sin(b),k=Math.cos(b));b=0;for(v=this.xc;b<v;b++)h=2*b,g=h+1,A=c[h]*a,l=c[g]*e,w[h]=A*k-l*m,w[g]=l*k+A*m;this.Ca()}};c.prototype.oc=function(a,e){var b=this.wa;if(a===b[0]&&e===b[1])return!0;var h,g,v,A=this.xc,l=this.Gi-110,m=this.Ii-101,k=this.Hi+131,c=this.Fi+120,w,p,u=0,d=0;for(h=0;h<A;h++)g=2*h,v=(h+1)%A*2,w=b[g],g=b[g+1],p=b[v],v=b[v+1],ua(l,m,a,e,w,g,p,v)&&u++,ua(k,c,a,e,w,g,p,v)&&d++;return 1===u%2||1===d%2};c.prototype.kh=function(a,e,b){var h=a.wa,g=this.wa;if(this.oc(h[0]+
e,h[1]+b)||a.oc(g[0]-e,g[1]-b))return!0;var v,A,l,m,k,c,w,p,u,d,z,D;v=0;for(m=this.xc;v<m;v++)for(A=2*v,l=(v+1)%m*2,p=g[A],A=g[A+1],u=g[l],d=g[l+1],l=0,w=a.xc;l<w;l++)if(k=2*l,c=(l+1)%w*2,z=h[k]+e,k=h[k+1]+b,D=h[c]+e,c=h[c+1]+b,ua(p,A,u,d,z,k,D,c))return!0;return!1};c.prototype.Ju=function(a){var e,b,h;e=0;for(b=this.xc;e<b;++e)h=2*e,this.wa[h]=2*a-this.wa[h]};c.prototype.Ct=function(a){var e,b,h;e=0;for(b=this.xc;e<b;++e)h=2*e+1,this.wa[h]=2*a-this.wa[h]};c.prototype.ts=function(){var a,e,b,h,g;
a=0;for(e=this.xc;a<e;++a)b=2*a,h=b+1,g=this.wa[b],this.wa[b]=this.wa[h],this.wa[h]=g};ib=c;a.prototype.De=function(a,e,b){var h;h=this.cells[a];return h?(h=h[e])?h:b?(h=w(this,a,e),this.cells[a][e]=h):null:b?(h=w(this,a,e),this.cells[a]={},this.cells[a][e]=h):null};a.prototype.Wb=function(a){return B(a/this.$a)};a.prototype.Xb=function(a){return B(a/this.ib)};a.prototype.update=function(a,e,b){var h,g,v,A,l;if(e)for(h=e.left,g=e.right;h<=g;++h)for(v=e.top,A=e.bottom;v<=A;++v)if(!b||!b.oc(h,v))if(l=
this.De(h,v,!1))l.remove(a),l.Yd()&&(l.pb.clear(),1E3>L.length&&L.push(l),this.cells[h][v]=null);if(b)for(h=b.left,g=b.right;h<=g;++h)for(v=b.top,A=b.bottom;v<=A;++v)e&&e.oc(h,v)||this.De(h,v,!0).Rl(a)};a.prototype.gk=function(a,e){var b,h,g,v,A,l;b=this.Wb(a.left);g=this.Xb(a.top);h=this.Wb(a.right);for(A=this.Xb(a.bottom);b<=h;++b)for(v=g;v<=A;++v)(l=this.De(b,v,!1))&&l.dump(e)};jb=a;k.prototype.De=function(a,e,h){var g;g=this.cells[a];return g?(g=g[e])?g:h?(g=b(this,a,e),this.cells[a][e]=g):null:
h?(g=b(this,a,e),this.cells[a]={},this.cells[a][e]=g):null};k.prototype.Wb=function(a){return B(a/this.$a)};k.prototype.Xb=function(a){return B(a/this.ib)};k.prototype.update=function(a,e,b){var h,g,v,A,l;if(e)for(h=e.left,g=e.right;h<=g;++h)for(v=e.top,A=e.bottom;v<=A;++v)if(!b||!b.oc(h,v))if(l=this.De(h,v,!1))l.remove(a),l.Yd()&&(l.reset(),1E3>y.length&&y.push(l),this.cells[h][v]=null);if(b)for(h=b.left,g=b.right;h<=g;++h)for(v=b.top,A=b.bottom;v<=A;++v)e&&e.oc(h,v)||this.De(h,v,!0).Rl(a)};k.prototype.gk=
function(a,e,b,h,g){var v,A;a=this.Wb(a);e=this.Xb(e);b=this.Wb(b);for(v=this.Xb(h);a<=b;++a)for(h=e;h<=v;++h)(A=this.De(a,h,!1))&&A.dump(g)};k.prototype.Hu=function(a){var e,b,h,g,v;e=a.left;h=a.top;b=a.right;for(g=a.bottom;e<=b;++e)for(a=h;a<=g;++a)if(v=this.De(e,a,!1))v.ng=!1};kb=k;var L=[];e.prototype.Yd=function(){return this.pb.Yd()};e.prototype.Rl=function(a){this.pb.add(a)};e.prototype.remove=function(a){this.pb.remove(a)};e.prototype.dump=function(a){Ga(a,this.pb.Ye())};aa=e;var y=[];m.prototype.Yd=
function(){if(!this.pb.length)return!0;if(this.pb.length>this.Fd.count())return!1;this.ul();return!0};m.prototype.Rl=function(a){this.Fd.contains(a)?(this.Fd.remove(a),this.Fd.Yd()&&(this.Qg=!1)):this.pb.length?(this.pb[this.pb.length-1].zd()>a.zd()&&(this.ng=!1),this.pb.push(a)):(this.pb.push(a),this.ng=!0)};m.prototype.remove=function(a){this.Fd.add(a);this.Qg=!0;30<=this.Fd.count()&&this.ul()};m.prototype.ul=function(){this.Qg&&(this.Fd.count()===this.pb.length?this.reset():(db(this.pb,this.Fd),
this.Fd.clear(),this.Qg=!1))};m.prototype.Us=function(){this.ng||(this.pb.sort(g),this.ng=!0)};m.prototype.reset=function(){S(this.pb);this.ng=!0;this.Fd.clear();this.Qg=!1};m.prototype.dump=function(a){this.ul();this.Us();this.pb.length&&a.push(this.pb)};ca=m;var R="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");lb=function(a){return 0>=a||11<=a?"source-over":R[a-1]};mb=function(a,e,b){if(b)switch(a.Jb=b.ONE,a.Gb=b.ONE_MINUS_SRC_ALPHA,
e){case 1:a.Jb=b.ONE;a.Gb=b.ONE;break;case 3:a.Jb=b.ONE;a.Gb=b.ZERO;break;case 4:a.Jb=b.ONE_MINUS_DST_ALPHA;a.Gb=b.ONE;break;case 5:a.Jb=b.DST_ALPHA;a.Gb=b.ZERO;break;case 6:a.Jb=b.ZERO;a.Gb=b.SRC_ALPHA;break;case 7:a.Jb=b.ONE_MINUS_DST_ALPHA;a.Gb=b.ZERO;break;case 8:a.Jb=b.ZERO;a.Gb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Jb=b.DST_ALPHA;a.Gb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Jb=b.ONE_MINUS_DST_ALPHA,a.Gb=b.SRC_ALPHA}};nb=function(a){return Math.round(1E6*a)/1E6};ob=function(a,e){return"string"!==
typeof a||"string"!==typeof e||a.length!==e.length?!1:a===e?!0:a.toLowerCase()===e.toLowerCase()};pb=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||ob(a.tagName,"canvas")?!0:!1}})();var ic="undefined"!==typeof Float32Array?Float32Array:Array;function jc(f){var n=new ic(3);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2]);return n}
function kc(f){var n=new ic(16);f&&(n[0]=f[0],n[1]=f[1],n[2]=f[2],n[3]=f[3],n[4]=f[4],n[5]=f[5],n[6]=f[6],n[7]=f[7],n[8]=f[8],n[9]=f[9],n[10]=f[10],n[11]=f[11],n[12]=f[12],n[13]=f[13],n[14]=f[14],n[15]=f[15]);return n}function lc(f,n){n[0]=f[0];n[1]=f[1];n[2]=f[2];n[3]=f[3];n[4]=f[4];n[5]=f[5];n[6]=f[6];n[7]=f[7];n[8]=f[8];n[9]=f[9];n[10]=f[10];n[11]=f[11];n[12]=f[12];n[13]=f[13];n[14]=f[14];n[15]=f[15]}
function mc(f,n){var d=n[0],q=n[1];n=n[2];f[0]*=d;f[1]*=d;f[2]*=d;f[3]*=d;f[4]*=q;f[5]*=q;f[6]*=q;f[7]*=q;f[8]*=n;f[9]*=n;f[10]*=n;f[11]*=n}
function nc(f,n,d,q){q||(q=kc());var r,t,c,a,k,w,e,b,m=f[0],g=f[1];f=f[2];t=d[0];c=d[1];r=d[2];d=n[1];w=n[2];m===n[0]&&g===d&&f===w?(f=q,f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=1,f[6]=0,f[7]=0,f[8]=0,f[9]=0,f[10]=1,f[11]=0,f[12]=0,f[13]=0,f[14]=0,f[15]=1):(d=m-n[0],w=g-n[1],e=f-n[2],b=1/Math.sqrt(d*d+w*w+e*e),d*=b,w*=b,e*=b,n=c*e-r*w,r=r*d-t*e,t=t*w-c*d,(b=Math.sqrt(n*n+r*r+t*t))?(b=1/b,n*=b,r*=b,t*=b):t=r=n=0,c=w*t-e*r,a=e*n-d*t,k=d*r-w*n,(b=Math.sqrt(c*c+a*a+k*k))?(b=1/b,c*=b,a*=b,k*=b):k=a=c=0,
q[0]=n,q[1]=c,q[2]=d,q[3]=0,q[4]=r,q[5]=a,q[6]=w,q[7]=0,q[8]=t,q[9]=k,q[10]=e,q[11]=0,q[12]=-(n*m+r*g+t*f),q[13]=-(c*m+a*g+k*f),q[14]=-(d*m+w*g+e*f),q[15]=1)}
(function(){function f(a,k,c){this.Zd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.ua=!!c;this.wj=this.nh=!1;this.Wi=0;this.Jk=1;this.sn=1E3;this.Rv=(this.sn-this.Jk)/32768;this.Xk=jc([0,0,100]);this.Qo=jc([0,0,0]);this.xq=jc([0,1,0]);this.vi=jc([1,1,1]);this.Yn=!0;this.Tj=kc();this.Gc=kc();this.cm=kc();this.gl=kc();this.C=a;this.uo()}function n(a,k,c){this.C=a;this.ei=k;this.name=c;this.Rc=a.getAttribLocation(k,"aPos");this.Me=a.getAttribLocation(k,
"aTex");this.Oo=a.getUniformLocation(k,"matP");this.Pj=a.getUniformLocation(k,"matMV");this.ug=a.getUniformLocation(k,"opacity");this.gm=a.getUniformLocation(k,"colorFill");this.Po=a.getUniformLocation(k,"samplerFront");this.Ih=a.getUniformLocation(k,"samplerBack");this.Df=a.getUniformLocation(k,"destStart");this.Cf=a.getUniformLocation(k,"destEnd");this.Kh=a.getUniformLocation(k,"seconds");this.im=a.getUniformLocation(k,"pixelWidth");this.hm=a.getUniformLocation(k,"pixelHeight");this.Hh=a.getUniformLocation(k,
"layerScale");this.Gh=a.getUniformLocation(k,"layerAngle");this.Lh=a.getUniformLocation(k,"viewOrigin");this.Jh=a.getUniformLocation(k,"scrollPos");this.qu=!!(this.im||this.hm||this.Kh||this.Ih||this.Df||this.Cf||this.Hh||this.Gh||this.Lh||this.Jh);this.Yo=this.Zo=-999;this.Sj=1;this.Uo=this.To=0;this.Wo=this.So=this.Ro=1;this.cp=this.bp=this.$o=this.ep=this.dp=this.Vo=0;this.am=[];this.Xo=kc();this.ug&&a.uniform1f(this.ug,1);this.gm&&a.uniform4f(this.gm,1,1,1,1);this.Po&&a.uniform1i(this.Po,0);this.Ih&&
a.uniform1i(this.Ih,1);this.Df&&a.uniform2f(this.Df,0,0);this.Cf&&a.uniform2f(this.Cf,1,1);this.Hh&&a.uniform1f(this.Hh,1);this.Gh&&a.uniform1f(this.Gh,0);this.Lh&&a.uniform2f(this.Lh,0,0);this.Jh&&a.uniform2f(this.Jh,0,0);this.Kh&&a.uniform1f(this.Kh,0);this.vf=!1}function d(a,k){return a[0]===k[0]&&a[1]===k[1]&&a[2]===k[2]&&a[3]===k[3]&&a[4]===k[4]&&a[5]===k[5]&&a[6]===k[6]&&a[7]===k[7]&&a[8]===k[8]&&a[9]===k[9]&&a[10]===k[10]&&a[11]===k[11]&&a[12]===k[12]&&a[13]===k[13]&&a[14]===k[14]&&a[15]===
k[15]}function q(a,k){this.type=a;this.u=k;this.C=k.C;this.Ec=this.Kb=this.sp=0;this.U=this.Xc=null;this.Xp=[]}var r=kc();f.prototype.uo=function(){var a=this.C,k;this.Jo=1;this.zf=this.Ie=null;this.Vi=1;a.clearColor(0,0,0,0);a.clear(a.COLOR_BUFFER_BIT);a.enable(a.BLEND);a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA);a.disable(a.CULL_FACE);a.disable(a.STENCIL_TEST);a.disable(a.DITHER);this.ua?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):a.disable(a.DEPTH_TEST);this.Ko=a.ONE;this.Io=a.ONE_MINUS_SRC_ALPHA;
this.ti=new Float32Array(8E3*(this.ua?3:2));this.ji=new Float32Array(16E3);this.Dp=new Float32Array(32E3);this.Cm=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Cm);a.bufferData(a.ARRAY_BUFFER,this.Dp.byteLength,a.DYNAMIC_DRAW);this.si=Array(4);this.ii=Array(4);for(k=0;4>k;k++)this.si[k]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.si[k]),a.bufferData(a.ARRAY_BUFFER,this.ti.byteLength,a.DYNAMIC_DRAW),this.ii[k]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.ii[k]),a.bufferData(a.ARRAY_BUFFER,
this.ji.byteLength,a.DYNAMIC_DRAW);this.Od=0;this.tu=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.tu);for(var c=new Uint16Array(12E3),e=k=0;12E3>k;)c[k++]=e,c[k++]=e+1,c[k++]=e+2,c[k++]=e,c[k++]=e+2,c[k++]=e+3,e+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,c,a.STATIC_DRAW);this.Dm=this.We=this.Zc=0;this.Na=[];k=this.ua?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";c=this.Ug({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},k,"<default>");this.Na.push(c);c=this.Ug({src:"uniform mediump sampler2D samplerFront;\nvarying lowp float opacity;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, gl_PointCoord);\n\tgl_FragColor *= opacity;\n}"},
"attribute vec4 aPos;\nvarying float opacity;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tgl_PointSize = aPos.z;\n\topacity = aPos.w;\n}","<point>");this.Na.push(c);c=this.Ug({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},k,"<earlyz>");this.Na.push(c);c=this.Ug({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
k,"<fill>");this.Na.push(c);for(var b in oc)oc.hasOwnProperty(b)&&this.Na.push(this.Ug(oc[b],k,b));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.xd=[];this.cd=0;this.mb=!1;this.Wn=this.xh=-1;this.Yf=null;this.sl=a.createFramebuffer();this.$i=this.hk=null;this.Mn=!1;this.ua&&(this.$i=a.createRenderbuffer());this.Xe=jc([0,0,0]);this.fp=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.fp&&(this.fp=2048);this.kc(0)};n.prototype.kn=function(a){d(this.Xo,a)||(lc(a,this.Xo),this.C.uniformMatrix4fv(this.Pj,
!1,a))};f.prototype.Ug=function(a,k,c){var e=this.C,b=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(b,a.src);e.compileShader(b);if(!e.getShaderParameter(b,e.COMPILE_STATUS))return e.deleteShader(b),null;var m=e.createShader(e.VERTEX_SHADER);e.shaderSource(m,k);e.compileShader(m);if(!e.getShaderParameter(m,e.COMPILE_STATUS))return e.deleteShader(b),e.deleteShader(m),null;k=e.createProgram();e.attachShader(k,b);e.attachShader(k,m);e.linkProgram(k);if(!e.getProgramParameter(k,e.LINK_STATUS))return e.deleteShader(b),
e.deleteShader(m),e.deleteProgram(k),null;e.useProgram(k);e.deleteShader(b);e.deleteShader(m);c=new n(e,k,c);c.pl=a.pl||0;c.ql=a.ql||0;c.Vn=!!a.Vn;c.nd=!!a.nd;c.Jn=!!a.Jn;c.V=a.V||[];a=0;for(b=c.V.length;a<b;a++)c.V[a][1]=e.getUniformLocation(k,c.V[a][0]),c.am.push(0),e.uniform1f(c.V[a][1],0);return c};f.prototype.Hl=function(a){var c,d;c=0;for(d=this.Na.length;c<d;c++)if(this.Na[c].name===a)return c;return-1};f.prototype.Fp=function(a,c,d){var e=this.Gc,b=this.Tj,m=[0,0,0,0,0,0,0,0];m[0]=e[0]*a+
e[4]*c+e[12];m[1]=e[1]*a+e[5]*c+e[13];m[2]=e[2]*a+e[6]*c+e[14];m[3]=e[3]*a+e[7]*c+e[15];m[4]=b[0]*m[0]+b[4]*m[1]+b[8]*m[2]+b[12]*m[3];m[5]=b[1]*m[0]+b[5]*m[1]+b[9]*m[2]+b[13]*m[3];m[6]=b[2]*m[0]+b[6]*m[1]+b[10]*m[2]+b[14]*m[3];m[7]=-m[2];0!==m[7]&&(m[7]=1/m[7],m[4]*=m[7],m[5]*=m[7],m[6]*=m[7],d[0]=(.5*m[4]+.5)*this.width,d[1]=(.5*m[5]+.5)*this.height)};f.prototype.If=function(a,c,d){if(this.width!==a||this.height!==c||d){this.Rd();d=this.C;this.width=a;this.height=c;d.viewport(0,0,a,c);nc(this.Xk,
this.Qo,this.xq,this.Gc);if(this.ua){var e=-a/2;a=a/2;var b=c/2;c=-c/2;var m=this.Jk,g=this.sn,f=this.Tj;f||(f=kc());var x=a-e,p=c-b,h=g-m;f[0]=2/x;f[1]=0;f[2]=0;f[3]=0;f[4]=0;f[5]=2/p;f[6]=0;f[7]=0;f[8]=0;f[9]=0;f[10]=-2/h;f[11]=0;f[12]=-(e+a)/x;f[13]=-(c+b)/p;f[14]=-(g+m)/h;f[15]=1;this.vi[0]=1;this.vi[1]=1}else c=a/c,e=this.Jk,a=this.sn,f=this.Tj,g=e*Math.tan(45*Math.PI/360),c*=g,b=-c,m=-g,f||(f=kc()),x=c-b,p=g-m,h=a-e,f[0]=2*e/x,f[1]=0,f[2]=0,f[3]=0,f[4]=0,f[5]=2*e/p,f[6]=0,f[7]=0,f[8]=(c+b)/
x,f[9]=(g+m)/p,f[10]=-(a+e)/h,f[11]=-1,f[12]=0,f[13]=0,f[14]=-(a*e*2)/h,f[15]=0,e=[0,0],a=[0,0],this.Fp(0,0,e),this.Fp(1,1,a),this.vi[0]=1/(a[0]-e[0]),this.vi[1]=-1/(a[1]-e[1]);e=0;for(a=this.Na.length;e<a;e++)b=this.Na[e],b.vf=!1,b.Oo&&(d.useProgram(b.ei),d.uniformMatrix4fv(b.Oo,!1,this.Tj));d.useProgram(this.Na[this.xh].ei);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.zf=this.Ie=null;this.$i&&(d.bindFramebuffer(d.FRAMEBUFFER,
this.sl),d.bindRenderbuffer(d.RENDERBUFFER,this.$i),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.Mn||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.$i),this.Mn=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),this.hk=null)}};f.prototype.Uc=function(){nc(this.Xk,this.Qo,this.xq,this.Gc);mc(this.Gc,this.vi)};f.prototype.translate=function(a,c){if(0!==a||0!==c){this.Xe[0]=a;this.Xe[1]=c;this.Xe[2]=
0;var d=this.Gc,e=this.Xe,b=e[0],m=e[1],e=e[2];d[12]=d[0]*b+d[4]*m+d[8]*e+d[12];d[13]=d[1]*b+d[5]*m+d[9]*e+d[13];d[14]=d[2]*b+d[6]*m+d[10]*e+d[14];d[15]=d[3]*b+d[7]*m+d[11]*e+d[15]}};f.prototype.scale=function(a,c){if(1!==a||1!==c)this.Xe[0]=a,this.Xe[1]=c,this.Xe[2]=1,mc(this.Gc,this.Xe)};f.prototype.kk=function(a){if(0!==a){var c=this.Gc,d,e=Math.sin(a);a=Math.cos(a);var b=c[0],m=c[1],g=c[2],f=c[3],x=c[4],p=c[5],h=c[6],l=c[7];d?c!==d&&(d[8]=c[8],d[9]=c[9],d[10]=c[10],d[11]=c[11],d[12]=c[12],d[13]=
c[13],d[14]=c[14],d[15]=c[15]):d=c;d[0]=b*a+x*e;d[1]=m*a+p*e;d[2]=g*a+h*e;d[3]=f*a+l*e;d[4]=b*-e+x*a;d[5]=m*-e+p*a;d[6]=g*-e+h*a;d[7]=f*-e+l*a}};f.prototype.Kc=function(){if(!d(this.cm,this.Gc)){var a=this.gc();a.type=5;a.U?lc(this.Gc,a.U):a.U=kc(this.Gc);lc(this.Gc,this.cm);this.mb=!1}};f.prototype.pk=function(a){this.ua&&(32760<a&&(a=32760),this.Wi=this.Xk[2]-this.Jk-a*this.Rv)};q.prototype.Es=function(){var a=this.C,c=this.u;0!==this.Kb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),
a.bindFramebuffer(a.FRAMEBUFFER,c.sl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),c.wj=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),c.wj=!1)};q.prototype.Is=function(){this.C.bindTexture(this.C.TEXTURE_2D,this.Xc)};q.prototype.Js=function(){var a=this.C;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Xc);a.activeTexture(a.TEXTURE0)};q.prototype.Fs=function(){var a=this.sp,
c=this.u;c.Vi=a;c=c.Yf;c.ug&&c.Sj!==a&&(c.Sj=a,this.C.uniform1f(c.ug,a))};q.prototype.zs=function(){this.C.drawElements(this.C.TRIANGLES,this.Ec,this.C.UNSIGNED_SHORT,this.Kb)};q.prototype.Bs=function(){this.C.blendFunc(this.Kb,this.Ec)};q.prototype.Ks=function(){var a,c,d,e=this.u.Na,b=this.u.Wn;a=0;for(c=e.length;a<c;a++)d=e[a],a===b&&d.Pj?(d.kn(this.U),d.vf=!0):d.vf=!1;lc(this.U,this.u.gl)};q.prototype.As=function(){var a=this.C,c=this.u;this.Xc?(c.zf===this.Xc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,
null),c.zf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,c.sl),c.wj||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Xc,0)):(c.ua||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};q.prototype.xs=function(){var a=this.C,c=this.Kb;0===c?(a.clearColor(this.U[0],this.U[1],this.U[2],this.U[3]),a.clear(a.COLOR_BUFFER_BIT)):1===c?(a.enable(a.SCISSOR_TEST),a.scissor(this.U[0],this.U[1],this.U[2],
this.U[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};q.prototype.Ds=function(){var a=this.C;0!==this.Kb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};q.prototype.ys=function(){var a=this.C,c=this.u;c.ua&&a.disable(a.DEPTH_TEST);var d=c.Na[1];a.useProgram(d.ei);!d.vf&&d.Pj&&(d.kn(c.gl),d.vf=!0);a.enableVertexAttribArray(d.Rc);a.bindBuffer(a.ARRAY_BUFFER,c.Cm);a.vertexAttribPointer(d.Rc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Kb/
4,this.Ec);d=c.Yf;a.useProgram(d.ei);0<=d.Rc&&(a.enableVertexAttribArray(d.Rc),a.bindBuffer(a.ARRAY_BUFFER,c.si[c.Od]),a.vertexAttribPointer(d.Rc,c.ua?3:2,a.FLOAT,!1,0,0));0<=d.Me&&(a.enableVertexAttribArray(d.Me),a.bindBuffer(a.ARRAY_BUFFER,c.ii[c.Od]),a.vertexAttribPointer(d.Me,2,a.FLOAT,!1,0,0));c.ua&&a.enable(a.DEPTH_TEST)};q.prototype.Gs=function(){var a=this.C,c=this.u,d=c.Na[this.Kb];c.Wn=this.Kb;c.Yf=d;a.useProgram(d.ei);!d.vf&&d.Pj&&(d.kn(c.gl),d.vf=!0);d.ug&&d.Sj!==c.Vi&&(d.Sj=c.Vi,a.uniform1f(d.ug,
c.Vi));0<=d.Rc&&(a.enableVertexAttribArray(d.Rc),a.bindBuffer(a.ARRAY_BUFFER,c.si[c.Od]),a.vertexAttribPointer(d.Rc,c.ua?3:2,a.FLOAT,!1,0,0));0<=d.Me&&(a.enableVertexAttribArray(d.Me),a.bindBuffer(a.ARRAY_BUFFER,c.ii[c.Od]),a.vertexAttribPointer(d.Me,2,a.FLOAT,!1,0,0))};q.prototype.Cs=function(){var a=this.U;this.C.uniform4f(this.u.Yf.gm,a[0],a[1],a[2],a[3])};q.prototype.Hs=function(){var a,c,d=this.u.Yf,e=this.C;a=this.U;d.Ih&&this.u.zf!==this.Xc&&(e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,
this.Xc),this.u.zf=this.Xc,e.activeTexture(e.TEXTURE0));var b=a[0];d.im&&b!==d.Zo&&(d.Zo=b,e.uniform1f(d.im,b));b=a[1];d.hm&&b!==d.Yo&&(d.Yo=b,e.uniform1f(d.hm,b));b=a[2];c=a[3];!d.Df||b===d.To&&c===d.Uo||(d.To=b,d.Uo=c,e.uniform2f(d.Df,b,c));b=a[4];c=a[5];!d.Cf||b===d.Ro&&c===d.So||(d.Ro=b,d.So=b,e.uniform2f(d.Cf,b,c));b=a[6];d.Hh&&b!==d.Wo&&(d.Wo=b,e.uniform1f(d.Hh,b));b=a[7];d.Gh&&b!==d.Vo&&(d.Vo=b,e.uniform1f(d.Gh,b));b=a[8];c=a[9];!d.Lh||b===d.dp&&c===d.ep||(d.dp=b,d.ep=c,e.uniform2f(d.Lh,b,
c));b=a[10];c=a[11];!d.Jh||b===d.$o&&c===d.bp||(d.$o=b,d.bp=c,e.uniform2f(d.Jh,b,c));b=a[12];d.Kh&&b!==d.cp&&(d.cp=b,e.uniform1f(d.Kh,b));if(d.V.length)for(a=0,c=d.V.length;a<c;a++)b=this.Xp[a],b!==d.am[a]&&(d.am[a]=b,e.uniform1f(d.V[a][1],b))};f.prototype.gc=function(){this.cd===this.xd.length&&this.xd.push(new q(0,this));return this.xd[this.cd++]};f.prototype.Rd=function(){if(0!==this.cd&&!this.C.isContextLost()){var a=this.C;0<this.Dm&&(a.bindBuffer(a.ARRAY_BUFFER,this.Cm),a.bufferSubData(a.ARRAY_BUFFER,
0,this.Dp.subarray(0,this.Dm)),c&&0<=c.Rc&&"<point>"===c.name&&a.vertexAttribPointer(c.Rc,4,a.FLOAT,!1,0,0));if(0<this.Zc){var c=this.Yf;a.bindBuffer(a.ARRAY_BUFFER,this.si[this.Od]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ti.subarray(0,this.Zc));c&&0<=c.Rc&&"<point>"!==c.name&&a.vertexAttribPointer(c.Rc,this.ua?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.ii[this.Od]);a.bufferSubData(a.ARRAY_BUFFER,0,this.ji.subarray(0,this.We));c&&0<=c.Me&&"<point>"!==c.name&&a.vertexAttribPointer(c.Me,2,
a.FLOAT,!1,0,0)}for(var d,a=0,c=this.cd;a<c;a++)switch(d=this.xd[a],d.type){case 1:d.zs();break;case 2:d.Is();break;case 3:d.Fs();break;case 4:d.Bs();break;case 5:d.Ks();break;case 6:d.As();break;case 7:d.xs();break;case 8:d.ys();break;case 9:d.Gs();break;case 10:d.Hs();break;case 11:d.Js();break;case 12:d.Cs();break;case 13:d.Ds();break;case 14:d.Es()}this.Dm=this.We=this.Zc=this.cd=0;this.wj=this.mb=!1;this.Od++;4<=this.Od&&(this.Od=0)}};f.prototype.Re=function(a){if(a!==this.Jo&&!this.nh){var c=
this.gc();c.type=3;this.Jo=c.sp=a;this.mb=!1}};f.prototype.jc=function(a){if(a!==this.Ie){var c=this.gc();c.type=2;this.Ie=c.Xc=a;this.mb=!1}};f.prototype.Qe=function(a,c){if((a!==this.Ko||c!==this.Io)&&!this.nh){var d=this.gc();d.type=4;d.Kb=a;d.Ec=c;this.Ko=a;this.Io=c;this.mb=!1}};f.prototype.Np=function(){this.Qe(this.C.ONE,this.C.ONE_MINUS_SRC_ALPHA)};f.prototype.Xh=function(a,c,d,e,b,m,g,f){15992<=this.Zc&&this.Rd();var x=this.Zc,p=this.We,h=this.ti,l=this.ji,D=this.Wi;if(this.mb)this.xd[this.cd-
1].Ec+=6;else{var u=this.gc();u.type=1;u.Kb=this.ua?x:x/2*3;u.Ec=6;this.mb=!0}this.ua?(h[x++]=a,h[x++]=c,h[x++]=D,h[x++]=d,h[x++]=e,h[x++]=D,h[x++]=b,h[x++]=m,h[x++]=D,h[x++]=g,h[x++]=f,h[x++]=D):(h[x++]=a,h[x++]=c,h[x++]=d,h[x++]=e,h[x++]=b,h[x++]=m,h[x++]=g,h[x++]=f);l[p++]=0;l[p++]=0;l[p++]=1;l[p++]=0;l[p++]=1;l[p++]=1;l[p++]=0;l[p++]=1;this.Zc=x;this.We=p};f.prototype.pd=function(a,c,d,e,b,m,g,f,x){15992<=this.Zc&&this.Rd();var p=this.Zc,h=this.We,l=this.ti,D=this.ji,u=this.Wi;if(this.mb)this.xd[this.cd-
1].Ec+=6;else{var z=this.gc();z.type=1;z.Kb=this.ua?p:p/2*3;z.Ec=6;this.mb=!0}var z=x.left,F=x.top,n=x.right;x=x.bottom;this.ua?(l[p++]=a,l[p++]=c,l[p++]=u,l[p++]=d,l[p++]=e,l[p++]=u,l[p++]=b,l[p++]=m,l[p++]=u,l[p++]=g,l[p++]=f,l[p++]=u):(l[p++]=a,l[p++]=c,l[p++]=d,l[p++]=e,l[p++]=b,l[p++]=m,l[p++]=g,l[p++]=f);D[h++]=z;D[h++]=F;D[h++]=n;D[h++]=F;D[h++]=n;D[h++]=x;D[h++]=z;D[h++]=x;this.Zc=p;this.We=h};f.prototype.jv=function(a,c,d,e,b,m,g,f,x,p,h,l,D,u,z,F){15992<=this.Zc&&this.Rd();var n=this.Zc,
q=this.We,r=this.ti,t=this.ji,C=this.Wi;if(this.mb)this.xd[this.cd-1].Ec+=6;else{var U=this.gc();U.type=1;U.Kb=this.ua?n:n/2*3;U.Ec=6;this.mb=!0}this.ua?(r[n++]=a,r[n++]=c,r[n++]=C,r[n++]=d,r[n++]=e,r[n++]=C,r[n++]=b,r[n++]=m,r[n++]=C,r[n++]=g,r[n++]=f,r[n++]=C):(r[n++]=a,r[n++]=c,r[n++]=d,r[n++]=e,r[n++]=b,r[n++]=m,r[n++]=g,r[n++]=f);t[q++]=x;t[q++]=p;t[q++]=h;t[q++]=l;t[q++]=D;t[q++]=u;t[q++]=z;t[q++]=F;this.Zc=n;this.We=q};f.prototype.kc=function(a){if(this.xh!==a){if(!this.Na[a]){if(0===this.xh)return;
a=0}var c=this.gc();c.type=9;this.xh=c.Kb=a;this.mb=!1}};f.prototype.Uh=function(a){a=this.Na[a];return!(!a.Df&&!a.Cf)};f.prototype.Fm=function(a){a=this.Na[a];return!!(a.Df||a.Cf||a.Vn)};f.prototype.Em=function(a){return this.Na[a].nd};f.prototype.cv=function(a){a=this.Na[a];return 0!==a.pl||0!==a.ql};f.prototype.Ut=function(a){return this.Na[a].pl};f.prototype.Vt=function(a){return this.Na[a].ql};f.prototype.Wt=function(a,c){return this.Na[a].V[c][2]};f.prototype.dk=function(a){return this.Na[a].Jn};
f.prototype.Fg=function(a,c,d,e,b,m,g,f,n,p,h,l,D,u,z){var F=this.Na[this.xh],q,r;if(F.qu||z.length){q=this.gc();q.type=10;q.U?lc(this.Gc,q.U):q.U=kc();r=q.U;r[0]=c;r[1]=d;r[2]=e;r[3]=b;r[4]=m;r[5]=g;r[6]=f;r[7]=n;r[8]=p;r[9]=h;r[10]=l;r[11]=D;r[12]=u;F.Ih?q.Xc=a:q.Xc=null;if(z.length)for(d=q.Xp,d.length=z.length,a=0,c=z.length;a<c;a++)d[a]=z[a];this.mb=!1}};f.prototype.clear=function(a,c,d,e){var b=this.gc();b.type=7;b.Kb=0;b.U||(b.U=kc());b.U[0]=a;b.U[1]=c;b.U[2]=d;b.U[3]=e;this.mb=!1};f.prototype.clearRect=
function(a,c,d,e){if(!(0>d||0>e)){var b=this.gc();b.type=7;b.Kb=1;b.U||(b.U=kc());b.U[0]=a;b.U[1]=c;b.U[2]=d;b.U[3]=e;this.mb=!1}};f.prototype.Qp=function(a){if(this.ua&&(a=!!a,this.nh!==a)){var c=this.gc();c.type=14;c.Kb=a?1:0;this.mb=!1;this.nh=a;this.hk=null;this.nh?this.kc(2):this.kc(0)}};f.prototype.Pp=function(a){if(this.ua){var c=this.gc();c.type=13;c.Kb=a?1:0;this.mb=!1}};f.prototype.eo=function(){lc(this.cm,r);this.Uc();this.Kc();var a=this.width/2,c=this.height/2;this.Xh(-a,c,a,c,a,-c,-a,
-c);lc(r,this.Gc);this.Kc()};f.prototype.Op=function(a,c,d){this.kc(3);var e=this.gc();e.type=12;e.U||(e.U=kc());e.U[0]=a;e.U[1]=c;e.U[2]=d;e.U[3]=1;this.mb=!1};f.prototype.Ev=function(){this.kc(0)};f.prototype.nv=function(){this.kc(2)};f.prototype.bv=function(){this.Rd();this.C.flush()};var t=[],c={};f.prototype.ms=function(){S(t);c={}};f.prototype.Lj=function(a,d,f,e){d=!!d;f=!!f;var b=a.src+","+d+","+f+(d?",undefined":""),m=null;if("undefined"!==typeof a.src&&c.hasOwnProperty(b))return m=c[b],
m.Ni++,m;this.Rd();var g=this.C,n=la(a.width)&&la(a.height),m=g.createTexture();g.bindTexture(g.TEXTURE_2D,m);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var x=g.RGBA,p=g.RGBA,h=g.UNSIGNED_BYTE;if(e&&!this.Zd)switch(e){case 1:p=x=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break;case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:p=x=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(!n&&d){e=document.createElement("canvas");e.width=ma(a.width);e.height=ma(a.height);var l=e.getContext("2d");l.webkitImageSmoothingEnabled=
f;l.mozImageSmoothingEnabled=f;l.msImageSmoothingEnabled=f;l.imageSmoothingEnabled=f;l.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,x,p,h,e)}else g.texImage2D(g.TEXTURE_2D,0,x,p,h,a);d?(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));f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,
g.LINEAR),n&&this.Yn?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Ie=null;m.ff=a.width;m.ef=a.height;m.Ni=1;m.Rn=b;t.push(m);return c[b]=m};f.prototype.pc=function(a,c,d,e,b){this.Rd();var m=this.C;this.Zd&&(e=!1);var g=
m.createTexture();m.bindTexture(m.TEXTURE_2D,g);m.texImage2D(m.TEXTURE_2D,0,m.RGBA,a,c,0,m.RGBA,e?m.UNSIGNED_SHORT_4_4_4_4:m.UNSIGNED_BYTE,null);b?(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.REPEAT),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.REPEAT)):(m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_S,m.CLAMP_TO_EDGE),m.texParameteri(m.TEXTURE_2D,m.TEXTURE_WRAP_T,m.CLAMP_TO_EDGE));m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MAG_FILTER,d?m.LINEAR:m.NEAREST);m.texParameteri(m.TEXTURE_2D,m.TEXTURE_MIN_FILTER,
d?m.LINEAR:m.NEAREST);m.bindTexture(m.TEXTURE_2D,null);this.Ie=null;g.ff=a;g.ef=c;t.push(g);return g};f.prototype.Eq=function(a,c,d){this.Rd();var e=this.C;this.Zd&&(d=!1);e.bindTexture(e.TEXTURE_2D,c);e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,d?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,a)}catch(b){console&&console.error&&console.error("Error updating WebGL texture: ",b)}e.bindTexture(e.TEXTURE_2D,null);this.Ie=null};f.prototype.deleteTexture=
function(a){a&&("undefined"!==typeof a.Ni&&1<a.Ni?a.Ni--:(this.Rd(),a===this.Ie&&(this.C.bindTexture(this.C.TEXTURE_2D,null),this.Ie=null),a===this.zf&&(this.C.activeTexture(this.C.TEXTURE1),this.C.bindTexture(this.C.TEXTURE_2D,null),this.C.activeTexture(this.C.TEXTURE0),this.zf=null),Ja(t,a),"undefined"!==typeof a.Rn&&delete c[a.Rn],this.C.deleteTexture(a)))};f.prototype.Vc=function(a){if(a!==this.hk){var c=this.gc();c.type=6;this.hk=c.Xc=a;this.mb=!1}};qb=f})();
(function(){function f(){return"undefined"!==typeof jQuery?jQuery(window).width():window.innerWidth}function n(){return"undefined"!==typeof jQuery?jQuery(window).height():window.innerHeight}function d(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var e=this;this.Xd=(this.mh=/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.fc=!!a.dc;this.zo="undefined"!==typeof window.AppMobi||this.fc;this.gd=!!window.c2cocoonjs;this.hd=!!window.c2ejecta;this.gd&&(CocoonJS.App.onSuspended.addEventListener(function(){e.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){e.setSuspended(!1)}));this.hd&&(document.addEventListener("pagehide",function(){e.setSuspended(!0)}),document.addEventListener("pageshow",
function(){e.setSuspended(!1)}),document.addEventListener("resize",function(){e.setSize(window.innerWidth,window.innerHeight)}));this.pa=this.fc||this.gd||this.hd;this.oh=/edge\//i.test(navigator.userAgent);this.Zd=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.oh;this.Co=/tizen/i.test(navigator.userAgent);this.uj=/android/i.test(navigator.userAgent)&&!this.Co&&!this.Zd&&!this.oh;this.$l=(/iphone/i.test(navigator.userAgent)||
/ipod/i.test(navigator.userAgent))&&!this.Zd&&!this.oh;this.Ho=/ipad/i.test(navigator.userAgent);this.Aj=this.$l||this.Ho||this.hd;this.Du=this.$l&&/os\s6/i.test(navigator.userAgent);this.lh=(/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent))&&!this.Zd&&!this.oh;this.Tl=/amazonwebappplatform/i.test(navigator.userAgent);this.yu=/firefox/i.test(navigator.userAgent);this.Bo=/safari/i.test(navigator.userAgent)&&!this.lh&&!this.Zd&&!this.oh;this.Bu=/windows/i.test(navigator.userAgent);
this.Fe="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Fo=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Cu=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.jg=!("undefined"===typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Yl=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.Eo=
!!window.cr_windows10;this.Do=this.Fo||this.Cu||this.Yl||this.Eo;this.xu=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.vj=this.uj&&!this.lh&&!this.mh&&!this.yu&&!this.Tl&&!this.pa;this.devicePixelRatio=1;this.yf=this.Xd||this.mh||this.zo||this.gd||this.uj||this.Aj||this.jg||this.Yl||this.xu||this.Co||this.hd;this.yf||(this.yf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));"undefined"===typeof cr_is_preview||
this.Fe||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.Fe=!0);this.canvas=a;this.Vf=document.getElementById("c2canvasdiv");this.u=this.C=null;this.Kl="(unavailable)";this.ua=!1;this.of=0;this.ja=null;this.yl="";this.ej=!1;this.qp=this.rp=0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.fc&&(window.c2runtime=
this);this.Fe&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},require("nw.gui").App.clearCache());this.vj&&"undefined"!==typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.I=this.width;this.H=this.height;this.Ti=this.width;this.Wg=this.height;this.Dh=window.innerWidth;this.Ch=window.innerHeight;this.Dt=!1;this.fa=!0;this.qh=!1;Date.now||(Date.now=function(){return+new Date});
this.plugins=[];this.types={};this.B=[];this.Sa=[];this.em={};this.uc=[];this.ol={};this.Sd=[];this.Ng=[];this.Ck=[];this.Wr=[];this.Xr=[];this.dq=null;this.lf={};this.Vl=this.Ee=!1;this.jd=0;this.Ul=this.Xl=!1;this.ed=[];this.xj=!1;this.$d=this.Ib=this.Ij=this.Om="";this.gi=this.$p=!1;this.Be=this.nf=0;this.ip=30;this.el=this.Mh=0;this.Jg=1;this.ob=new gb;this.qe=new gb;this.Vj=this.ij=this.rf=this.Jd=this.Bf=this.wl=this.Dj=0;this.hf=null;this.ll=[];this.nl=[];this.bj=-1;this.jm=[[]];this.en=this.Qj=
0;this.fk(null);this.$g=this.kp=this.Qh=0;this.hi=[];this.bn=this.Hm=-1;this.qg=!0;this.Oj=0;this.ph=!1;this.Gv=0;this.Sf=null;this.Ad=!1;this.op=new ba;this.vm=new ba;this.pp=new ba;this.Zh=[];this.rd=new ib([]);this.Wm=new ib([]);this.Rf=[];this.fh={};this.Wf={};this.Qf={};this.Mg={};this.Nn={};this.No=this.Hj=this.Ua=this.cb=this.Mo=this.Gj=this.qa=null;this.Kg=this.Zl=!1;this.zl=[null,null];this.sf=0;this.tl="";this.fe={};this.fi=this.Ke=null;this.bq="";this.Uj=[];this.mv()}}function q(a,e){return 128>=
e?a[3]:256>=e?a[2]:512>=e?a[1]:a[0]}function r(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,e,b,h){var c=indexedDB.open("_C2SaveStates");c.onupgradeneeded=r;c.onerror=h;c.onsuccess=function(c){c=c.target.result;c.onerror=h;c.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:e}).onsuccess=b}}function c(a,e,b){var h=indexedDB.open("_C2SaveStates");h.onupgradeneeded=r;h.onerror=b;h.onsuccess=function(h){h=h.target.result;h.onerror=b;var c=h.transaction(["saves"]).objectStore("saves").get(a);
c.onsuccess=function(){c.result?e(c.result.data):e(null)}}}function a(){ea("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 k(a){var e,b={};for(e in a)!a.hasOwnProperty(e)||a[e]instanceof ba||a[e]&&"undefined"!==typeof a[e].Lw||"spriteCreatedDestroyCallback"!==e&&(b[e]=a[e]);return b}var w=window.requestAnimationFrame||window.mozRequestAnimationFrame||
window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;d.prototype.mv=function(){var a=this,e;this.jg?e=new ActiveXObject("Microsoft.XMLHTTP"):e=new XMLHttpRequest;var b="data.js";if(this.Fo||this.jg||this.Yl||this.Eo)b="data.json";e.open("GET",b,!0);var h=!1;if(!this.pa&&"response"in e&&"responseType"in e)try{e.responseType="json",h="json"===e.responseType}catch(c){h=!1}if(!h&&"responseType"in e)try{e.responseType="text"}catch(d){}if("overrideMimeType"in
e)try{e.overrideMimeType("application/json; charset=utf-8")}catch(g){}this.jg?e.onreadystatechange=function(){4===e.readyState&&a.Kj(JSON.parse(e.responseText))}:(e.onload=function(){if(h)a.Kj(e.response);else if(a.hd){var b=e.responseText,b=b.substr(b.indexOf("{"));a.Kj(JSON.parse(b))}else a.Kj(JSON.parse(e.responseText))},e.onerror=function(a){ha("Error requesting "+b+":");ha(a)});e.send()};d.prototype.uu=function(){var a=this,e,b,h,c,d,g,l,m,p;this.Ge=(!this.pa||this.hd||this.Xd)&&this.Nv&&!this.vj;
0===this.qc&&this.Aj&&(this.Ge=!1);this.devicePixelRatio=this.Ge?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;this.Ab();b=!(!this.Dt&&(!this.Qk||this.Fe||this.Do||this.jg||this.mh||this.Xd||this.Tl));0<this.qc&&this.setSize(f(),n(),!0);try{this.Ss&&(this.gd||this.hd||!this.pa)&&(e={alpha:b,depth:!1,antialias:!1,failIfMajorPerformanceCaveat:!0},this.C=this.canvas.getContext("webgl",e)||this.canvas.getContext("experimental-webgl",
e))}catch(u){}if(this.C){if(e=this.C.getExtension("WEBGL_debug_renderer_info"))this.Kl=this.C.getParameter(e.UNMASKED_RENDERER_WEBGL)+" ["+this.C.getParameter(e.UNMASKED_VENDOR_WEBGL)+"]";this.ua&&(this.Kl+=" [front-to-back enabled]");this.pa||(this.xb=document.createElement("canvas"),jQuery(this.xb).appendTo(this.canvas.parentNode),this.xb.oncontextmenu=function(){return!1},this.xb.onselectstart=function(){return!1},this.xb.width=Math.round(this.Ti*this.devicePixelRatio),this.xb.height=Math.round(this.Wg*
this.devicePixelRatio),jQuery(this.xb).css({width:this.Ti+"px",height:this.Wg+"px"}),this.Ep(),this.Bm=this.xb.getContext("2d"));this.u=new qb(this.C,this.yf,this.ua);this.u.If(this.canvas.width,this.canvas.height);this.u.Yn=0!==this.Ls;this.ja=null;this.canvas.addEventListener("webglcontextlost",function(e){e.preventDefault();a.Mu();ea("[Construct 2] WebGL context lost");window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.u.uo();a.u.If(a.u.width,a.u.height,
!0);a.cb=null;a.Ua=null;a.zl[0]=null;a.zl[1]=null;a.Nu();a.fa=!0;ea("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);e=0;for(b=this.B.length;e<b;e++)for(d=this.B[e],h=0,c=d.P.length;h<c;h++)l=d.P[h],l.Ya=this.u.Hl(l.id),l.nd=this.u.Em(l.Ya),this.Kg=this.Kg||this.u.Uh(l.Ya);e=0;for(b=this.uc.length;e<b;e++){m=this.uc[e];h=0;for(c=m.P.length;h<c;h++)l=m.P[h],l.Ya=this.u.Hl(l.id),l.nd=this.u.Em(l.Ya);m.ud();h=0;for(c=m.R.length;h<c;h++){p=m.R[h];d=0;for(g=p.P.length;d<g;d++)l=
p.P[d],l.Ya=this.u.Hl(l.id),l.nd=this.u.Em(l.Ya),this.Kg=this.Kg||this.u.Uh(l.Ya);p.ud()}}}else{if(0<this.qc&&this.fc){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ja=AppMobi.canvas.getContext("2d");try{this.ja.samplingMode=this.T?"smooth":"sharp",this.ja.globalScale=1,this.ja.HTML5CompatibilityMode=!0,this.ja.imageSmoothingEnabled=this.T}catch(z){}0!==this.width&&0!==this.height&&(this.ja.width=this.width,this.ja.height=this.height)}this.ja||
(this.gd?(e={antialias:!!this.T,alpha:b},this.ja=this.canvas.getContext("2d",e)):(e={alpha:b},this.ja=this.canvas.getContext("2d",e)),this.ja.webkitImageSmoothingEnabled=this.T,this.ja.mozImageSmoothingEnabled=this.T,this.ja.msImageSmoothingEnabled=this.T,this.ja.imageSmoothingEnabled=this.T);this.Bm=this.xb=null}this.mq=function(e){a.Za(!1,e)};window==window.top||this.pa||this.Do||this.jg||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.gd&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(ea("Reloading for continuous preview"),this.Ij="__c2_continuouspreview",this.gi=!0),this.Uu&&!this.yf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Ag()});this.pa||(e=function(a){if(pb(a)&&document.activeElement&&
document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(e){}},window.navigator.pointerEnabled?document.addEventListener("pointerdown",e):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",e):document.addEventListener("touchstart",e),document.addEventListener("mousedown",e));0===this.qc&&this.Ge&&1<this.devicePixelRatio&&this.setSize(this.Wa,this.Va,!0);this.uq();this.mu();this.go();this.L={}};d.prototype.setSize=
function(a,e,b){var h=0,c=0,d=0,g=0,g=0,l=this.Du&&this.Bo&&!navigator.standalone&&!this.pa&&!this.Xd;l&&(e+=60);if(this.Dh!==a||this.Ch!==e||b){this.Dh=a;this.Ch=e;var m=this.qc,p=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.ph)&&!this.Xd;if(p||0!==this.qc||b)p&&0<this.sf&&(m=this.sf),b=this.devicePixelRatio,4<=m?(d=this.Wa/this.Va,a/e>d?(d*=e,5===m?(g=d*b/this.Wa,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),d=this.Wa*g/b,g=this.Va*
g/b,h=(a-d)/2,c=(e-g)/2,a=d,e=g):(h=(a-d)/2,a=d)):(g=a/d,5===m?(g=g*b/this.Va,1<g?g=Math.floor(g):1>g&&(g=1/Math.ceil(1/g)),d=this.Wa*g/b,g=this.Va*g/b,h=(a-d)/2,c=(e-g)/2,a=d):c=(e-g)/2,e=g),p&&!this.Fe&&(c=h=0)):this.Fe&&this.ph&&0===this.fo&&(h=Math.floor((a-this.Wa)/2),c=Math.floor((e-this.Va)/2),a=this.Wa,e=this.Va),2>m&&(this.Sg=b),this.Ge&&this.Ho&&1<b&&(1024<=a&&(a=1023),1024<=e&&(e=1023)),this.Ti=Math.round(a),this.Wg=Math.round(e),this.width=Math.round(a*b),this.height=Math.round(e*b),this.fa=
!0,this.Fq?(this.I=this.width,this.H=this.height,this.Cc=!0):this.width<this.Wa&&this.height<this.Va||1===m?(this.I=this.width,this.H=this.height,this.Cc=!0):(this.I=this.Wa,this.H=this.Va,this.Cc=!1,2===m?(d=this.Wa/this.Va,m=this.Dh/this.Ch,m<d?this.I=this.H*m:m>d&&(this.H=this.I/m)):3===m&&(d=this.Wa/this.Va,m=this.Dh/this.Ch,m>d?this.I=this.H*m:m<d&&(this.H=this.I/m))),this.Vf&&!this.pa&&(jQuery(this.Vf).css({width:Math.round(a)+"px",height:Math.round(e)+"px","margin-left":Math.floor(h)+"px",
"margin-top":Math.floor(c)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+"px",height:Math.round(e)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(e*b),this.hd?(this.canvas.style.left=Math.floor(h)+"px",this.canvas.style.top=Math.floor(c)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(e)+"px"):this.Ge&&!this.pa&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=
Math.round(e)+"px")),this.xb&&(this.xb.width=Math.round(a*b),this.xb.height=Math.round(e*b),this.xb.style.width=this.Ti+"px",this.xb.style.height=this.Wg+"px"),this.u&&this.u.If(Math.round(a*b),Math.round(e*b)),this.fc&&this.ja&&(this.ja.width=Math.round(a),this.ja.height=Math.round(e)),this.ja&&(this.ja.webkitImageSmoothingEnabled=this.T,this.ja.mozImageSmoothingEnabled=this.T,this.ja.msImageSmoothingEnabled=this.T,this.ja.imageSmoothingEnabled=this.T),this.uq(),this.pa||!l&&!this.$l||window.setTimeout(function(){window.scrollTo(0,
1)},100)}};d.prototype.uq=function(){if(this.$r&&0!==this.zm){var a="portrait";2===this.zm&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(e){console&&console.warn&&console.warn("Failed to lock orientation: ",e)}}};d.prototype.Mu=function(){this.u.ms();
this.Zl=!0;var a,e,b;a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.Rh&&b.Rh()};d.prototype.Nu=function(){this.Zl=!1;var a,e,b;a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.Wj&&b.Wj()};d.prototype.Ep=function(){if(!this.pa){var a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.ph)&&!this.Xd?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.xb).css(a)}};var e=window.cancelAnimationFrame||window.mozCancelAnimationFrame||
window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;d.prototype.setSuspended=function(a){var b;if(a&&!this.qh)for(ea("[Construct 2] Suspending"),this.qh=!0,-1!==this.Hm&&e&&e(this.Hm),-1!==this.bn&&clearTimeout(this.bn),a=0,b=this.hi.length;a<b;a++)this.hi[a](!0);else if(!a&&this.qh){ea("[Construct 2] Resuming");this.qh=!1;this.Dj=cb();this.Bf=cb();a=this.Mh=this.ij=0;for(b=this.hi.length;a<b;a++)this.hi[a](!1);this.Za(!1)}};d.prototype.Vr=function(a){this.hi.push(a)};
d.prototype.se=function(a){return this.Uj[a]};d.prototype.Kj=function(a){a&&a.project||ha("Project model unavailable");a=a.project;this.name=a[0];this.co=a[1];this.qc=a[12];this.fo=a[12];this.Wa=a[10];this.Va=a[11];this.zp=this.Wa/2;this.Ap=this.Va/2;this.pa&&!this.hd&&(4<=a[12]||0===a[12])&&(ea("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.fo=this.qc=3);this.mn=a[18];this.Le=a[19];if(0===this.Le){var e=new Image;e.crossOrigin=
"anonymous";e.src="loading-logo.png";this.Ke={Rj:e}}else if(4===this.Le){e=new Image;e.src="";var b=new Image;b.src="";var h=new Image;h.src="";var c=new Image;c.src="";var d=new Image;d.src="";var g=new Image;g.src="";var l=new Image;l.src="";var m=new Image;m.src="";var p=new Image;p.src="";var u=new Image;u.src="";var z=new Image;z.src="";var f=new Image;f.src="";this.Ke={Rj:[e,b,h,c],Zu:[d,g,l,m],Qv:[p,u,z,f]}}this.Qh=a[21];this.Uj=pc();this.Id=new X(this);e=0;for(b=a[2].length;e<b;e++)l=a[2][e],
h=this.se(l[0]),rb(l,h.prototype),m=new h(this),m.rk=l[1],m.He=l[2],m.jp=l[9],m.Y&&m.Y(),this.plugins.push(m);this.Uj=pc();e=0;for(b=a[3].length;e<b;e++){l=a[3][e];d=this.se(l[1]);m=null;h=0;for(c=this.plugins.length;h<c;h++)if(this.plugins[h]instanceof d){m=this.plugins[h];break}p=new m.Ga(m);p.name=l[0];p.F=l[2];p.Sl=l[3].slice(0);p.Ov=l[3].length;p.as=l[4];p.Ft=l[5];p.aa=l[11];p.F?(p.wg=[],p.Td=this.$g++,p.Ja=null):(p.wg=null,p.Td=-1,p.Ja=[]);p.cj=null;p.bg=null;p.Zn=null;p.sc=!1;p.nc=null;l[6]?
(p.uk=l[6][0],p.vk=l[6][1],p.Xm=l[6][2]):(p.uk=null,p.vk=0,p.Xm=0);l[7]?p.Zb=l[7]:p.Zb=null;p.index=e;p.i=[];p.Yi=[];p.Te=[new sb(p)];p.Pd=0;p.Pc=null;p.ss=0;p.Ig=!0;p.Ek=tb;p.Lt=vb;p.St=wb;p.ba=xb;p.Wh=yb;p.ek=zb;p.Hf=Ab;p.lj=Bb;p.Al=Cb;p.Dl=Db;p.ad=Eb;p.El=Fb;p.Qi=new jb(this.Wa,this.Va);p.Ci=!0;p.Di=!1;p.L={};p.toString=Gb;p.Sa=[];h=0;for(c=l[8].length;h<c;h++){u=l[8][h];z=this.se(u[1]);f=null;d=0;for(g=this.Sa.length;d<g;d++)if(this.Sa[d]instanceof z){f=this.Sa[d];break}f||(f=new z(this),f.rm=
[],f.qm=new ba,f.Y&&f.Y(),this.Sa.push(f),hc.Fv&&f instanceof hc.Fv&&(this.dq=f));-1===f.rm.indexOf(p)&&f.rm.push(p);d=new f.Ga(f,p);d.name=u[0];d.aa=u[2];d.Y();p.Sa.push(d)}p.global=l[9];p.Wl=l[10];p.P=[];h=0;for(c=l[12].length;h<c;h++)p.P.push({id:l[12][h][0],name:l[12][h][1],Ya:-1,nd:!1,zc:!0,index:h});p.yk=l[13];this.mn&&!p.F&&!p.Wl&&m.He||p.Y();p.name&&(this.types[p.name]=p);this.B.push(p);m.rk&&(h=new m.ta(p),h.uid=this.Qh++,h.Hp=this.kp++,h.wf=0,h.dh=Hb,h.toString=Ib,h.A=l[14],h.Y(),p.i.push(h),
this.fe[h.uid.toString()]=h)}e=0;for(b=a[4].length;e<b;e++)for(d=a[4][e],g=this.B[d[0]],h=1,c=d.length;h<c;h++)l=this.B[d[h]],l.Ja.push(g),g.wg.push(l);e=0;for(b=a[28].length;e<b;e++){d=a[28][e];g=[];h=0;for(c=d.length;h<c;h++)g.push(this.B[d[h]]);h=0;for(c=g.length;h<c;h++)g[h].sc=!0,g[h].nc=g}if(0<this.$g)for(e=0,b=this.B.length;e<b;e++)if(l=this.B[e],!l.F&&l.Ja.length){l.cj=Array(this.$g);l.bg=Array(this.$g);l.Zn=Array(this.$g);p=[];h=f=z=u=0;for(c=l.Ja.length;h<c;h++)for(m=l.Ja[h],l.cj[m.Td]=
u,u+=m.Ov,l.bg[m.Td]=z,z+=m.as,l.Zn[m.Td]=f,f+=m.Ft,d=0,g=m.P.length;d<g;d++)p.push(Ca({},m.P[d]));l.P=p.concat(l.P);h=0;for(c=l.P.length;h<c;h++)l.P[h].index=h}e=0;for(b=a[5].length;e<b;e++)l=a[5][e],h=new Jb(this,l),this.em[h.name]=h,this.uc.push(h);e=0;for(b=a[6].length;e<b;e++)l=a[6][e],h=new Kb(this,l),this.ol[h.name]=h,this.Sd.push(h);e=0;for(b=this.Sd.length;e<b;e++)this.Sd[e].Ra();e=0;for(b=this.Sd.length;e<b;e++)this.Sd[e].jn();e=0;for(b=this.Ck.length;e<b;e++)this.Ck[e].Ra();S(this.Ck);
this.Yr=a[7];this.tl=a[8];this.Hc=a[9];this.Sg=1;this.Ss=a[13];this.T=a[14];this.Qk=a[15];this.Nv=a[17];this.zm=a[20];this.$r=0<this.zm;this.Uu=a[22];this.Cc=this.Fq=a[23];this.Ls=a[24];this.$u=a[25];this.ua=a[27]&&!this.Zd;this.sk=Date.now();S(this.Uj);this.uu()};var b=!1;d.prototype.pn=function(a,e){a.cocoonLazyLoad=!0;a.onerror=function(e){b=a.Qn=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",e)};this.hd?a.src=e:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(e,
function(e){a.src=e},function(h){b=a.Qn=!0;console&&console.error&&console.error("Error extracting image '"+e+"' from expansion file: ",h)}):(a.crossOrigin="anonymous",a.src=e));this.Ng.push(a)};d.prototype.Bt=function(a){var e,b;e=0;for(b=this.Ng.length;e<b;e++)if(this.Ng[e].ns===a)return this.Ng[e];return null};var m=0,g=!1;d.prototype.mu=function(){this.Sf&&(m=this.Sf.Cv(this.Yr))};d.prototype.Ln=function(){var a=m,e=0,b=0,h=!0,c,d,b=0;for(c=this.Ng.length;b<c;b++){d=this.Ng[b];var l=d.fl;if(!l||
0>=l)l=5E4;a+=l;d.src&&(d.complete||d.loaded)&&!d.Qn?e+=l:h=!1}h&&this.$u&&this.Sf&&(g||(this.Sf.Hv(),g=!0),b=this.Sf.Tt(),e+=b,b<m&&(h=!1));this.od=0==a?1:e/a;return h};var O=!1;d.prototype.go=function(){if(this.ja||this.u){var a=this.ja||this.Bm;this.xb&&this.Ep();this.od=0;this.Lo=-1;var e=this;if(this.Ln()&&(4!==this.Le||O))this.nu();else{var h=Date.now()-this.sk;if(a){var c=this.width,d=this.height,g=this.devicePixelRatio;if(3>this.Le&&(this.gd||500<=h&&this.Lo!=this.od)){a.clearRect(0,0,c,d);
var h=c/2,d=d/2,c=0===this.Le&&this.Ke.Rj.complete,l=40*g,m=0,p=80*g,u;if(c){var z=this.Ke.Rj,p=z.width*g;u=z.height*g;l=p/2;m=u/2;a.drawImage(z,B(h-l),B(d-m),p,u)}1>=this.Le?(h=B(h-l)+.5,d=B(d+(m+(c?12*g:0)))+.5,a.fillStyle=b?"red":"DodgerBlue",a.fillRect(h,d,Math.floor(p*this.od),6*g),a.strokeStyle="black",a.strokeRect(h,d,p,6*g),a.strokeStyle="white",a.strokeRect(h-1*g,d-1*g,p+2*g,8*g)):2===this.Le&&(a.font=this.hd?"12pt ArialMT":"12pt Arial",a.fillStyle=b?"#f00":"#999",a.Rw="middle",g=Math.round(100*
this.od)+"%",c=a.measureText?a.measureText(g):null,a.fillText(g,h-(c?c.width:0)/2,d));this.Lo=this.od}else if(4===this.Le){this.Qs(a);w?w(function(){e.go()}):setTimeout(function(){e.go()},16);return}}setTimeout(function(){e.go()},this.gd?10:100)}}};var x=-1,p="undefined"===typeof cr_is_preview?200:0,h=!0,l=!1,D=0,u=0,z="undefined"===typeof cr_is_preview?3E3:0,F=null,L=null,y=0;d.prototype.Qs=function(a){if(!O){for(var e=Math.ceil(this.width),c=Math.ceil(this.height),d=this.Ke.Rj,g=this.Ke.Zu,m=this.Ke.Qv,
f=0;4>f;++f)if(!d[f].complete||!g[f].complete||!m[f].complete)return;0===y&&(x=Date.now());var f=Date.now(),n=!1,k=a,r,w;h||l?(a.clearRect(0,0,e,c),F&&F.width===e&&F.height===c||(F=document.createElement("canvas"),F.width=e,F.height=c,L=F.getContext("2d")),k=L,n=!0,h&&1===y&&(x=Date.now())):a.globalAlpha=1;k.fillStyle="#333333";k.fillRect(0,0,e,c);256<this.Wg?(r=Ka(.22*c,105,.6*e),w=.25*r,k.drawImage(q(g,r),.5*e-r/2,.2*c-w/2,r,w),w=r=Math.min(.395*c,.95*e),k.drawImage(q(d,r),.5*e-r/2,.485*c-w/2,r,
w),r=Ka(.22*c,105,.6*e),w=.25*r,k.drawImage(q(m,r),.5*e-r/2,.868*c-w/2,r,w),k.fillStyle="#3C3C3C",r=e,w=Math.max(.005*c,2),k.fillRect(0,.8*c-w/2,r,w),k.fillStyle=b?"red":"#E0FF65",r=e*this.od,k.fillRect(.5*e-r/2,.8*c-w/2,r,w)):(w=r=.55*c,k.drawImage(q(d,r),.5*e-r/2,.45*c-w/2,r,w),k.fillStyle="#3C3C3C",r=e,w=Math.max(.005*c,2),k.fillRect(0,.85*c-w/2,r,w),k.fillStyle=b?"red":"#E0FF65",r=e*this.od,k.fillRect(.5*e-r/2,.85*c-w/2,r,w));n&&(h?a.globalAlpha=0===y?0:Math.min((f-x)/300,1):l&&(a.globalAlpha=
Math.max(1-(f-u)/300,0)),a.drawImage(F,0,0,e,c));h&&300<=f-x&&2<=y&&(h=!1,D=f);!h&&f-D>=z&&!l&&1<=this.od&&(l=!0,u=f);if(l&&f-u>=300+p||"undefined"!==typeof cr_is_preview&&1<=this.od&&500>Date.now()-x)O=!0,l=h=!1,this.Ke=L=F=null;++y}};d.prototype.nu=function(){this.xb&&(this.canvas.parentNode.removeChild(this.xb),this.xb=this.Bm=null);this.sk=Date.now();this.Bf=cb();var a,e,b;if(this.mn)for(a=0,e=this.B.length;a<e;a++)b=this.B[a],b.F||b.Wl||!b.Aa.He||b.Y();else this.qg=!1;a=0;for(e=this.uc.length;a<
e;a++)this.uc[a].os();2<=this.qc&&(a=this.Wa/this.Va,e=this.width/this.height,this.Sg=2!==this.qc&&e>a||2===this.qc&&e<a?this.height/this.Va:this.width/this.Wa);this.co?this.em[this.co].Vm():this.uc[0].Vm();this.mn||(this.Oj=1,this.trigger(X.prototype.p.Dn,null));navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(e=this.B.length;a<e;a++)b=this.B[a],b.Lu&&b.Lu();document.hidden||document.webkitHidden||document.mozHidden||document.msHidden?window.cr_setSuspended(!0):
this.Za(!1);this.fc&&AppMobi.webview.execute("onGameReady();")};d.prototype.Za=function(a,e,b){if(this.qa){var h=cb();if(b||!this.qh||a){a||(w?this.Hm=w(this.mq):this.bn=setTimeout(this.mq,this.yf?1:16));e=e||h;var c=this.qc;((b=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Xd)||this.ph)&&0<this.sf&&(c=this.sf);0<c&&(!this.Aj||window.self!==window.top)&&(c=window.innerHeight,this.Dh===window.innerWidth&&this.Ch===c||this.setSize(f(),
n()));this.pa||(b?(this.ej||(this.yl=jQuery(this.canvas).css("margin")||"0",this.ej=!0),this.lh||this.Fe||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.ej?(this.lh||this.Fe||jQuery(this.canvas).css("margin",this.yl),this.yl="",this.ej=!1,0===this.qc&&this.setSize(Math.round(this.rp/this.devicePixelRatio),Math.round(this.qp/this.devicePixelRatio),
!0)):(this.rp=this.width,this.qp=this.height));this.qg&&(b=this.Ln(),this.Oj=this.od,b&&(this.qg=!1,this.od=1,this.trigger(X.prototype.p.Dn,null)));this.Gu(e);!this.fa&&!this.gd||this.Zl||this.gi||a||(this.fa=!1,this.u?this.tb():this.Bc(),this.fi&&(this.canvas&&this.canvas.toDataURL&&(this.bq=this.canvas.toDataURL(this.fi[0],this.fi[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.bq),this.trigger(X.prototype.p.kr,null)),this.fi=null));this.Nw||(this.Jd++,this.rf++,this.ij++);this.Mh+=cb()-h}}};
d.prototype.Gu=function(a){var e,b,h,c,d,g,l,m;1E3<=a-this.Bf&&(this.Bf+=1E3,1E3<=a-this.Bf&&(this.Bf=a),this.wl=this.ij,this.ij=0,this.el=this.Mh,this.Mh=0);0!==this.Dj&&(e=a-this.Dj,0>e&&(e=0),this.Be=e/1E3,.5<this.Be?this.Be=0:this.Be>1/this.ip&&(this.Be=1/this.ip));this.Dj=a;this.nf=this.Be*this.Jg;this.ob.add(this.nf);this.qe.add(this.Be);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.ph)&&!this.Xd;2<=this.qc||a&&0<this.sf?(e=
this.Wa/this.Va,b=this.width/this.height,h=this.qc,a&&0<this.sf&&(h=this.sf),this.Sg=2!==h&&b>e||2===h&&b<e?this.height/this.Va:this.width/this.Wa,this.qa&&(this.qa.Lp(this.qa.scrollX),this.qa.Mp(this.qa.scrollY))):this.Sg=this.Ge?this.devicePixelRatio:1;this.Ab();this.jd++;this.Id.sv();this.jd--;this.Ab();this.jd++;b=this.op.Ye();a=0;for(e=b.length;a<e;a++)b[a].Pw();a=0;for(e=this.B.length;a<e;a++)if(g=this.B[a],!g.F&&(g.Sa.length||g.Ja.length))for(b=0,h=g.i.length;b<h;b++)for(l=g.i[b],c=0,d=l.O.length;c<
d;c++)l.O[c].Za();a=0;for(e=this.B.length;a<e;a++)if(g=this.B[a],!g.F&&(g.Sa.length||g.Ja.length))for(b=0,h=g.i.length;b<h;b++)for(l=g.i[b],c=0,d=l.O.length;c<d;c++)m=l.O[c],m.Yu&&m.Yu();b=this.vm.Ye();a=0;for(e=b.length;a<e;a++)b[a].Za();this.jd--;this.pu();for(a=0;this.hf&&10>a++;)this.Xn(this.hf);a=0;for(e=this.Sd.length;a<e;a++)this.Sd[a].Ml=!1;this.qa.pf&&this.qa.pf.Xa();S(this.Zh);this.jd++;a=0;for(e=this.B.length;a<e;a++)if(g=this.B[a],!g.F&&(g.Sa.length||g.Ja.length))for(b=0,h=g.i.length;b<
h;b++)for(l=g.i[b],c=0,d=l.O.length;c<d;c++)m=l.O[c],m.xk&&m.xk();b=this.pp.Ye();a=0;for(e=b.length;a<e;a++)b[a].xk();this.jd--};d.prototype.Ag=function(){var a,e,b,h,c,d,g,l,m;a=0;for(e=this.B.length;a<e;a++)if(g=this.B[a],!g.F)for(b=0,h=g.i.length;b<h;b++)if(l=g.i[b],l.Ag&&l.Ag(),l.O)for(c=0,d=l.O.length;c<d;c++)m=l.O[c],m.Ag&&m.Ag()};d.prototype.Xn=function(a){var e=this.qa;this.qa.Iv();var b,h,c,d,g,l,m;if(this.u)for(b=0,h=this.B.length;b<h;b++)g=this.B[b],g.F||!g.Dk||g.global&&0!==g.i.length||
-1!==a.jh.indexOf(g)||g.Dk();e==a&&S(this.Id.mc);S(this.Zh);a.Vm();b=0;for(h=this.B.length;b<h;b++)if(g=this.B[b],g.global||g.Aa.rk)for(a=0,e=g.i.length;a<e;a++)if(l=g.i[a],l.xm&&l.xm(),l.O)for(c=0,d=l.O.length;c<d;c++)m=l.O[c],m.xm&&m.xm();this.fa=!0;this.Ab()};d.prototype.ki=function(a){this.vm.add(a)};d.prototype.nj=function(a){return a&&-1!==a.Ph?this.Be*a.Ph:this.nf};d.prototype.Bc=function(){this.qa.Bc(this.ja);this.fc&&this.ja.present()};d.prototype.tb=function(){this.ua&&(this.of=1,this.qa.Ae(this.u));
this.qa.tb(this.u);this.u.bv()};d.prototype.Gn=function(a){a&&this.ll.push(a)};d.prototype.pj=function(a){a=a.toString();return this.fe.hasOwnProperty(a)?this.fe[a]:null};var R=[];d.prototype.Ze=function(a){var e,b;e=a.type.name;var h=null;if(this.lf.hasOwnProperty(e)){if(h=this.lf[e],h.contains(a))return}else h=R.length?R.pop():new ba,this.lf[e]=h;h.add(a);this.Ee=!0;if(a.sc)for(e=0,b=a.siblings.length;e<b;e++)this.Ze(a.siblings[e]);this.Vl&&h.Lg.push(a);this.Ul||(this.jd++,this.trigger(Object.getPrototypeOf(a.type.Aa).p.yn,
a),this.jd--)};d.prototype.Ab=function(){if(this.Ee){var a,e,b,h,c,d;this.Vl=!0;b=0;for(c=this.ed.length;b<c;++b)for(a=this.ed[b],e=a.type,e.i.push(a),h=0,d=e.Ja.length;h<d;++h)e.Ja[h].i.push(a),e.Ja[h].Ig=!0;S(this.ed);this.dr();bb(this.lf);this.Ee=this.Vl=!1}};d.prototype.dr=function(){for(var a in this.lf)this.lf.hasOwnProperty(a)&&this.Mq(this.lf[a])};d.prototype.Mq=function(a){var e=a.Ye(),b=e[0].type,h,c,d,g,l,m;db(b.i,a);b.Ig=!0;0===b.i.length&&(b.Di=!1);h=0;for(c=b.Ja.length;h<c;++h)m=b.Ja[h],
db(m.i,a),m.Ig=!0;h=0;for(c=this.Id.mc.length;h<c;++h)if(l=this.Id.mc[h],l.Ub.hasOwnProperty(b.index)&&db(l.Ub[b.index].Wd,a),!b.F)for(d=0,g=b.Ja.length;d<g;++d)m=b.Ja[d],l.Ub.hasOwnProperty(m.index)&&db(l.Ub[m.index].Wd,a);if(l=e[0].j){if(l.Lc)for(d=l.i,h=0,c=d.length;h<c;++h)g=d[h],a.contains(g)&&(g.Ca(),l.zb.update(g,g.hc,null),g.hc.set(0,0,-1,-1));db(l.i,a);l.bi(0)}for(h=0;h<e.length;++h)this.Lq(e[h],b);a.clear();R.push(a);this.fa=!0};d.prototype.Lq=function(a,e){var b,h,c;b=0;for(h=this.ll.length;b<
h;++b)this.ll[b](a);a.ye&&e.Qi.update(a,a.ye,null);(b=a.j)&&b.Dg(a,!0);if(a.O)for(b=0,h=a.O.length;b<h;++b)c=a.O[b],c.ge&&c.ge(),c.behavior.qm.remove(a);this.op.remove(a);this.vm.remove(a);this.pp.remove(a);a.ge&&a.ge();this.fe.hasOwnProperty(a.uid.toString())&&delete this.fe[a.uid.toString()];this.Vj--;100>e.Yi.length&&e.Yi.push(a)};d.prototype.Un=function(a,e,b,h){if(a.F){var c=B(Math.random()*a.wg.length);return this.Un(a.wg[c],e,b,h)}return a.Pc?this.ze(a.Pc,e,!1,b,h,!1):null};var M=[];d.prototype.ze=
function(a,e,b,h,c,d){var g,l,m,p;if(!a)return null;var u=this.B[a[1]],f=u.Aa.He;if(this.qg&&f&&!u.Wl||f&&!this.u&&11===a[0][11])return null;var z=e;f||(e=null);var k;u.Yi.length?(k=u.Yi.pop(),k.Ic=!0,u.Aa.ta.call(k,u)):(k=new u.Aa.ta(u),k.Ic=!1);!b||d||this.fe.hasOwnProperty(a[2].toString())?k.uid=this.Qh++:k.uid=a[2];this.fe[k.uid.toString()]=k;k.Hp=this.kp++;k.wf=u.i.length;g=0;for(l=this.ed.length;g<l;++g)this.ed[g].type===u&&k.wf++;k.dh=Hb;k.toString=Ib;m=a[3];if(k.Ic)bb(k.L);else{k.L={};if("undefined"!==
typeof cr_is_preview)for(k.xo=[],k.xo.length=m.length,g=0,l=m.length;g<l;g++)k.xo[g]=m[g][1];k.bb=[];k.bb.length=m.length}g=0;for(l=m.length;g<l;g++)k.bb[g]=m[g][0];if(f){var n=a[0];k.x=ia(h)?n[0]:h;k.y=ia(c)?n[1]:c;k.z=n[2];k.width=n[3];k.height=n[4];k.depth=n[5];k.n=n[6];k.opacity=n[7];k.cc=n[8];k.ec=n[9];k.Bb=n[10];g=n[11];!this.u&&u.P.length&&(k.Bb=g);k.Tg=lb(k.Bb);this.C&&mb(k,k.Bb,this.C);if(k.Ic){g=0;for(l=n[12].length;g<l;g++)for(m=0,p=n[12][g].length;m<p;m++)k.La[g][m]=n[12][g][m];k.Ha.set(0,
0,0,0);k.ye.set(0,0,-1,-1);k.hc.set(0,0,-1,-1);k.Pb.ci(k.Ha);S(k.Vk)}else{k.La=n[12].slice(0);g=0;for(l=k.La.length;g<l;g++)k.La[g]=n[12][g].slice(0);k.ga=[];k.te=[];k.te.length=u.P.length;k.Ha=new va(0,0,0,0);k.ye=new va(0,0,-1,-1);k.hc=new va(0,0,-1,-1);k.Pb=new wa;k.Vk=[];k.Z=Lb;k.Kw=Mb;k.oc=Nb;k.Ca=Ob;k.Mv=Pb;k.Bq=Qb;k.zd=Rb}k.li=!1;k.qq=0;k.pq=0;k.oq=null;14===n.length&&(k.li=!0,k.qq=n[13][0],k.pq=n[13][1],k.oq=n[13][2]);g=0;for(l=u.P.length;g<l;g++)k.te[g]=!0;k.me=!0;k.ud=Sb;k.ud();k.Cq=!!k.ga.length;
k.Uk=!0;k.$k=!0;u.Ci=!0;k.visible=!0;k.Ph=-1;k.j=e;k.vd=e.i.length;k.of=0;"undefined"===typeof k.ma&&(k.ma=null);this.fa=k.Nd=!0}var D;S(M);g=0;for(l=u.Ja.length;g<l;g++)M.push.apply(M,u.Ja[g].Sa);M.push.apply(M,u.Sa);if(k.Ic)for(g=0,l=M.length;g<l;g++){var F=M[g];D=k.O[g];D.Ic=!0;F.behavior.ta.call(D,F,k);n=a[4][g];m=0;for(p=n.length;m<p;m++)D.A[m]=n[m];D.Y();F.behavior.qm.add(k)}else for(k.O=[],g=0,l=M.length;g<l;g++)F=M[g],D=new F.behavior.ta(F,k),D.Ic=!1,D.A=a[4][g].slice(0),D.Y(),k.O.push(D),
F.behavior.qm.add(k);n=a[5];if(k.Ic)for(g=0,l=n.length;g<l;g++)k.A[g]=n[g];else k.A=n.slice(0);this.ed.push(k);this.Ee=!0;e&&(e.Rg(k,!0),1!==e.he||1!==e.ie)&&(u.Di=!0);this.Vj++;if(u.sc){if(k.sc=!0,k.Ic?S(k.siblings):k.siblings=[],!b&&!d){g=0;for(l=u.nc.length;g<l;g++)if(u.nc[g]!==u){if(!u.nc[g].Pc)return null;k.siblings.push(this.ze(u.nc[g].Pc,z,!1,f?k.x:h,f?k.y:c,!0))}g=0;for(l=k.siblings.length;g<l;g++)for(k.siblings[g].siblings.push(k),m=0;m<l;m++)g!==m&&k.siblings[g].siblings.push(k.siblings[m])}}else k.sc=
!1,k.siblings=null;k.Y();g=0;for(l=k.O.length;g<l;g++)k.O[g].Xu&&k.O[g].Xu();return k};d.prototype.Pt=function(a){var e,b;e=0;for(b=this.qa.R.length;e<b;e++){var h=this.qa.R[e];if(ob(h.name,a))return h}return null};d.prototype.Qt=function(a){a=B(a);0>a&&(a=0);a>=this.qa.R.length&&(a=this.qa.R.length-1);return this.qa.R[a]};d.prototype.cl=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].ba().ra=!0};d.prototype.Wh=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Wh()};d.prototype.ek=function(a){var e,
b;e=0;for(b=a.length;e<b;e++)a[e].ek()};d.prototype.Hf=function(a){var e,b;e=0;for(b=a.length;e<b;e++)a[e].Hf()};d.prototype.zq=function(a){if(a.Ci){var e,b,h=a.i;e=0;for(b=h.length;e<b;++e)h[e].Bq();h=this.ed;e=0;for(b=h.length;e<b;++e)h[e].type===a&&h[e].Bq();a.Ci=!1}};d.prototype.Bl=function(a,e,b,h){var c,g,d=a?1!==a.he||1!==a.ie:!1;if(e.F)for(a=0,c=e.wg.length;a<c;++a)g=e.wg[a],d||g.Di?Ga(h,g.i):(this.zq(g),g.Qi.gk(b,h));else d||e.Di?Ga(h,e.i):(this.zq(e),e.Qi.gk(b,h))};d.prototype.$t=function(a,
e,b,h){var c,g;c=0;for(g=e.length;c<g;++c)this.Bl(a,e[c],b,h)};d.prototype.Xt=function(a,e,b){var h=this.dq;h&&this.$t(a,h.rm,e,b)};d.prototype.Ve=function(a,e){if(!(a&&e&&a!==e&&a.Nd&&e.Nd))return!1;a.Ca();e.Ca();var b=a.j,h=e.j,c,g,d,l,m,p,u,k;if(b===h||b.he===h.he&&h.ie===h.ie&&b.scale===h.scale&&b.n===h.n&&b.wi===h.wi){if(!a.Ha.vu(e.Ha)||!a.Pb.yo(e.Pb)||a.li&&e.li)return!1;if(a.li)return this.iq(a,e);if(e.li)return this.iq(e,a);u=a.ma&&!a.ma.kg();c=e.ma&&!e.ma.kg();if(!u&&!c)return!0;u?(a.ma.gf(a.width,
a.height,a.n),u=a.ma):(this.rd.Gg(a.Pb,a.x,a.y,a.width,a.height),u=this.rd);c?(e.ma.gf(e.width,e.height,e.n),k=e.ma):(this.rd.Gg(e.Pb,e.x,e.y,e.width,e.height),k=this.rd);return u.kh(k,e.x-a.x,e.y-a.y)}u=a.ma&&!a.ma.kg();c=e.ma&&!e.ma.kg();u?(a.ma.gf(a.width,a.height,a.n),this.rd.Vp(a.ma)):this.rd.Gg(a.Pb,a.x,a.y,a.width,a.height);u=this.rd;c?(e.ma.gf(e.width,e.height,e.n),this.Wm.Vp(e.ma)):this.Wm.Gg(e.Pb,e.x,e.y,e.width,e.height);k=this.Wm;c=0;for(g=u.xc;c<g;c++)d=2*c,l=d+1,m=u.wa[d],p=u.wa[l],
u.wa[d]=b.ka(m+a.x,p+a.y,!0),u.wa[l]=b.ka(m+a.x,p+a.y,!1);u.Ca();c=0;for(g=k.xc;c<g;c++)d=2*c,l=d+1,m=k.wa[d],p=k.wa[l],k.wa[d]=h.ka(m+e.x,p+e.y,!0),k.wa[l]=h.ka(m+e.x,p+e.y,!1);k.Ca();return u.kh(k,0,0)};var C=new wa;new va(0,0,0,0);var U=[];d.prototype.iq=function(a,e){var b,h,c,g,d=e.Ha,l=a.x,m=a.y;a.Jt(d,U);var p=e.ma&&!e.ma.kg();b=0;for(h=U.length;b<h;++b)if(c=U[b],g=c.na,d.wu(g,l,m)&&(C.ci(g),C.offset(l,m),C.yo(e.Pb)))if(p)if(e.ma.gf(e.width,e.height,e.n),c.je){if(c.je.kh(e.ma,e.x-(l+g.left),
e.y-(m+g.top)))return S(U),!0}else{if(this.rd.Gg(C,0,0,g.right-g.left,g.bottom-g.top),this.rd.kh(e.ma,e.x,e.y))return S(U),!0}else if(c.je){if(this.rd.Gg(e.Pb,0,0,e.width,e.height),c.je.kh(this.rd,-(l+g.left),-(m+g.top)))return S(U),!0}else return S(U),!0;S(U);return!1};d.prototype.vq=function(a,e){if(!e)return!1;var b,h,c,g,d;b=0;for(h=a.Sa.length;b<h;b++)if(a.Sa[b].behavior instanceof e)return!0;if(!a.F)for(b=0,h=a.Ja.length;b<h;b++)for(d=a.Ja[b],c=0,g=d.Sa.length;c<g;c++)if(d.Sa[c].behavior instanceof
e)return!0;return!1};d.prototype.gn=function(a){return this.vq(a,hc.ow)};d.prototype.hn=function(a){return this.vq(a,hc.pw)};var V=[];d.prototype.Kf=function(a){var e,b,h;a.Ca();this.Xt(a.j,a.Ha,V);e=0;for(b=V.length;e<b;++e)if(h=V[e],h.L.solidEnabled&&this.Ve(a,h))return S(V),h;S(V);return null};d.prototype.hv=function(a,e,b,h){h=h||50;var c=a.x,g=a.y,d,l=null,m=null;for(d=0;d<h;d++)if(a.x=c+e*d,a.y=g+b*d,a.Z(),!this.Ve(a,l)&&((l=this.Kf(a))&&(m=l),!l&&!l))return m&&this.dv(a,e,b,m),!0;a.x=c;a.y=
g;a.Z();return!1};d.prototype.dv=function(a,e,b,h){var c=2,g,d=!1;g=!1;for(var l=a.x,m=a.y;16>=c;)g=1/c,c*=2,a.x+=e*g*(d?1:-1),a.y+=b*g*(d?1:-1),a.Z(),this.Ve(a,h)?g=d=!0:(g=d=!1,l=a.x,m=a.y);g&&(a.x=l,a.y=m,a.Z())};d.prototype.iv=function(a){var e=0,b=a.x,h=a.y,c=0,g=0,d=0,l=this.Kf(a);if(l){for(;100>=e;){switch(c){case 0:g=0;d=-1;e++;break;case 1:g=1;d=-1;break;case 2:g=1;d=0;break;case 3:d=g=1;break;case 4:g=0;d=1;break;case 5:g=-1;d=1;break;case 6:g=-1;d=0;break;case 7:d=g=-1}c=(c+1)%8;a.x=B(b+
g*e);a.y=B(h+d*e);a.Z();if(!this.Ve(a,l)&&(l=this.Kf(a),!l))return}a.x=b;a.y=h;a.Z()}};d.prototype.lv=function(a,e){a.Nd&&e.Nd&&this.Zh.push([a,e])};d.prototype.ks=function(a,e){var b,h,c;b=0;for(h=this.Zh.length;b<h;b++)if(c=this.Zh[b],c[0]==a&&c[1]==e||c[0]==e&&c[1]==a)return!0;return!1};d.prototype.gs=function(a,e,b){var h=a.x,c=a.y,g=oa(10,Za(e,b,h,c)),d=Qa(e,b,h,c),l=this.Kf(a);if(!l)return Na(d+qa);var m=l,p,u,k,f,z=W(5);for(p=1;36>p;p++)if(u=d-p*z,a.x=e+Math.cos(u)*g,a.y=b+Math.sin(u)*g,a.Z(),
!this.Ve(a,m)&&(m=this.Kf(a),!m)){k=u;break}36===p&&(k=Na(d+qa));m=l;for(p=1;36>p;p++)if(u=d+p*z,a.x=e+Math.cos(u)*g,a.y=b+Math.sin(u)*g,a.Z(),!this.Ve(a,m)&&(m=this.Kf(a),!m)){f=u;break}36===p&&(f=Na(d+qa));a.x=h;a.y=c;a.Z();if(f===k)return f;a=Ra(f,k)/2;a=Xa(f,k)?Na(k+a+qa):Na(f+a);k=Math.cos(d);d=Math.sin(d);f=Math.cos(a);a=Math.sin(a);e=k*f+d*a;return Qa(0,0,k-2*e*f,d-2*e*a)};var K=-1;d.prototype.trigger=function(a,e,b){if(!this.qa)return!1;var h=this.qa.pf;if(!h)return!1;var c=!1,g,d,l;K++;var m=
h.jl;d=0;for(l=m.length;d<l;++d)g=this.sq(a,e,m[d],b),c=c||g;g=this.sq(a,e,h,b);K--;return c||g};d.prototype.sq=function(a,e,b,h){var c=!1,g,d,l,m;if(e)for(l=this.dn(a,e,e.type.name,b,h),c=c||l,m=e.type.Ja,g=0,d=m.length;g<d;++g)l=this.dn(a,e,m[g].name,b,h),c=c||l;else l=this.dn(a,e,"system",b,h),c=c||l;return c};d.prototype.dn=function(a,e,b,h,c){var g,d=!1,l=!1,l="undefined"!==typeof c,m=(l?h.ao:h.tq)[b];if(!m)return d;var p=null;h=0;for(g=m.length;h<g;++h)if(m[h].method==a){p=m[h].Zg;break}if(!p)return d;
var u;l?u=p[c]:u=p;if(!u)return null;h=0;for(g=u.length;h<g;h++)a=u[h][0],c=u[h][1],l=this.At(e,b,a,c),d=d||l;return d};d.prototype.At=function(a,e,b,h){var c,g,d=!1;this.en++;var l=this.lb().Rb;l&&this.Wh(l.Se);var m=1<this.en;this.Wh(b.Se);m&&this.gv();var p=this.fk(b);p.Rb=b;a&&(c=this.types[e].ba(),c.ra=!1,S(c.i),c.i[0]=a,this.types[e].ad());a=!0;if(b.parent){e=p.hq;for(c=b.parent;c;)e.push(c),c=c.parent;e.reverse();c=0;for(g=e.length;c<g;c++)if(!e[c].uv()){a=!1;break}}a&&(this.rf++,b.Sc?b.tv(h):
b.Xa(),d=d||p.Af);this.$j();m&&this.Wu();this.Hf(b.Se);l&&this.Hf(l.Se);this.Ee&&0===this.jd&&0===K&&!this.Xl&&this.Ab();this.en--;return d};d.prototype.mj=function(){var a=this.lb();return a.Rb.kb[a.jb]};d.prototype.Kt=function(){var a=this.lb();return a.Rb.Mc[a.Yb]};d.prototype.gv=function(){this.Qj++;this.Qj>=this.jm.length&&this.jm.push([])};d.prototype.Wu=function(){this.Qj--};d.prototype.jo=function(){return this.jm[this.Qj]};d.prototype.fk=function(a){this.bj++;this.bj>=this.nl.length&&this.nl.push(new Tb);
var e=this.lb();e.reset(a);return e};d.prototype.$j=function(){this.bj--};d.prototype.lb=function(){return this.nl[this.bj]};d.prototype.ko=function(a,e){for(var b,h,c,g,d,l;e;){b=0;for(h=e.Wc.length;b<h;b++)if(l=e.Wc[b],l instanceof Ub&&ob(a,l.name))return l;e=e.parent}b=0;for(h=this.Sd.length;b<h;b++)for(d=this.Sd[b],c=0,g=d.Ce.length;c<g;c++)if(l=d.Ce[c],l instanceof Ub&&ob(a,l.name))return l;return null};d.prototype.lo=function(a){var e,b;e=0;for(b=this.uc.length;e<b;e++)if(this.uc[e].aa===a)return this.uc[e];
return null};d.prototype.qj=function(a){var e,b;e=0;for(b=this.B.length;e<b;e++)if(this.B[e].aa===a)return this.B[e];return null};d.prototype.Mt=function(a){var e,b;e=0;for(b=this.Rf.length;e<b;e++)if(this.Rf[e].aa===a)return this.Rf[e];return null};d.prototype.us=function(a,e){this.fi=[a,e];this.fa=!0};d.prototype.pu=function(){var e=this,b=this.Om,h=this.$d,g=this.Ij,d=!1;this.$p&&(d=!0,b="__c2_continuouspreview",this.$p=!1);if(b.length){this.Ab();h=this.yv();if(window.indexedDB&&!this.gd)t(b,h,
function(){ea("Saved state to IndexedDB storage ("+h.length+" bytes)");e.$d=h;e.trigger(X.prototype.p.Ok,null);e.$d="";d&&a()},function(c){try{localStorage.setItem("__c2save_"+b,h),ea("Saved state to WebStorage ("+h.length+" bytes)"),e.$d=h,e.trigger(X.prototype.p.Ok,null),e.$d="",d&&a()}catch(g){ea("Failed to save game state: "+c+"; "+g)}});else try{localStorage.setItem("__c2save_"+b,h),ea("Saved state to WebStorage ("+h.length+" bytes)"),e.$d=h,this.trigger(X.prototype.p.Ok,null),e.$d="",d&&a()}catch(l){ea("Error saving to WebStorage: "+
l)}this.Ib=this.Ij=this.Om=""}if(g.length){if(window.indexedDB&&!this.gd)c(g,function(a){a?(e.Ib=a,ea("Loaded state from IndexedDB storage ("+e.Ib.length+" bytes)")):(e.Ib=localStorage.getItem("__c2save_"+g)||"",ea("Loaded state from WebStorage ("+e.Ib.length+" bytes)"));e.gi=!1;e.Ib.length||e.trigger(X.prototype.p.Nk,null)},function(){e.Ib=localStorage.getItem("__c2save_"+g)||"";ea("Loaded state from WebStorage ("+e.Ib.length+" bytes)");e.gi=!1;e.Ib.length||e.trigger(X.prototype.p.Nk,null)});else{try{this.Ib=
localStorage.getItem("__c2save_"+g)||"",ea("Loaded state from WebStorage ("+this.Ib.length+" bytes)")}catch(m){this.Ib=""}this.gi=!1;e.Ib.length||e.trigger(X.prototype.p.Nk,null)}this.Om=this.Ij=""}this.Ib.length&&(this.Ab(),this.Fu(this.Ib),this.$d=this.Ib,this.trigger(X.prototype.p.pr,null),this.Ib=this.$d="")};d.prototype.yv=function(){var a,e,b,h,c,g,d,l={c2save:!0,version:1,rt:{time:this.ob.J,walltime:this.qe.J,timescale:this.Jg,tickcount:this.Jd,execcount:this.rf,next_uid:this.Qh,running_layout:this.qa.aa,
start_time_offset:Date.now()-this.sk},types:{},layouts:{},events:{groups:{},cnds:{},acts:{},vars:{}}};a=0;for(e=this.B.length;a<e;a++)if(c=this.B[a],!c.F&&!this.gn(c)){g={instances:[]};ab(c.L)&&(g.ex=k(c.L));b=0;for(h=c.i.length;b<h;b++)g.instances.push(this.Nm(c.i[b]));l.types[c.aa.toString()]=g}a=0;for(e=this.uc.length;a<e;a++)b=this.uc[a],l.layouts[b.aa.toString()]=b.rb();h=l.events.groups;a=0;for(e=this.Rf.length;a<e;a++)b=this.Rf[a],h[b.aa.toString()]=this.fh[b.eh].eg;e=l.events.cnds;for(d in this.Wf)this.Wf.hasOwnProperty(d)&&
(a=this.Wf[d],ab(a.L)&&(e[d]={ex:k(a.L)}));e=l.events.acts;for(d in this.Qf)this.Qf.hasOwnProperty(d)&&(a=this.Qf[d],ab(a.L)&&(e[d]={ex:a.L}));e=l.events.vars;for(d in this.Mg)this.Mg.hasOwnProperty(d)&&(a=this.Mg[d],a.yj||a.parent&&!a.sh||(e[d]=a.data));l.system=this.Id.rb();return JSON.stringify(l)};d.prototype.Ip=function(){var a,e,b,h,c,g;this.fe={};a=0;for(e=this.B.length;a<e;a++)if(b=this.B[a],!b.F)for(h=0,c=b.i.length;h<c;h++)g=b.i[h],this.fe[g.uid.toString()]=g};d.prototype.Fu=function(a){a=
JSON.parse(a);if(a.c2save&&!(1<a.version)){this.xj=!0;var e=a.rt;this.ob.reset();this.ob.J=e.time;this.qe.reset();this.qe.J=e.walltime||0;this.Jg=e.timescale;this.Jd=e.tickcount;this.rf=e.execcount;this.sk=Date.now()-e.start_time_offset;var b=e.running_layout;if(b!==this.qa.aa)if(b=this.lo(b))this.Xn(b);else return;var h,c,g,d,l,m,p;m=a.types;for(c in m)if(m.hasOwnProperty(c)&&(d=this.qj(parseInt(c,10)))&&!d.F&&!this.gn(d)){m[c].ex?d.L=m[c].ex:bb(d.L);l=d.i;g=m[c].instances;b=0;for(h=pa(l.length,
g.length);b<h;b++)this.Jj(l[b],g[b]);b=g.length;for(h=l.length;b<h;b++)this.Ze(l[b]);b=l.length;for(h=g.length;b<h;b++){l=null;if(d.Aa.He&&(l=this.qa.oj(g[b].w.l),!l))continue;l=this.ze(d.Pc,l,!1,0,0,!0);this.Jj(l,g[b])}d.Ig=!0}this.Ab();this.Ip();h=a.layouts;for(c in h)h.hasOwnProperty(c)&&(b=this.lo(parseInt(c,10)))&&b.Hb(h[c]);h=a.events.groups;for(c in h)h.hasOwnProperty(c)&&(b=this.Mt(parseInt(c,10)))&&this.fh[b.eh]&&this.fh[b.eh].Av(h[c]);b=a.events.cnds;for(c in b)b.hasOwnProperty(c)&&this.Wf.hasOwnProperty(c)&&
(this.Wf[c].L=b[c].ex);b=a.events.acts;for(c in b)b.hasOwnProperty(c)&&this.Qf.hasOwnProperty(c)&&(this.Qf[c].L=b[c].ex);b=a.events.vars;for(c in b)b.hasOwnProperty(c)&&this.Mg.hasOwnProperty(c)&&(this.Mg[c].data=b[c]);this.Qh=e.next_uid;this.xj=!1;this.Id.Hb(a.system);b=0;for(h=this.B.length;b<h;b++)if(d=this.B[b],!d.F&&!this.gn(d))for(c=0,a=d.i.length;c<a;c++){l=d.i[c];if(d.sc)for(m=l.dh(),S(l.siblings),e=0,g=d.nc.length;e<g;e++)p=d.nc[e],d!==p&&l.siblings.push(p.i[m]);l.Ld&&l.Ld();if(l.O)for(e=
0,g=l.O.length;e<g;e++)m=l.O[e],m.Ld&&m.Ld()}this.fa=!0}};d.prototype.Nm=function(a,e){var b,h,c,g,d;g=a.type;c=g.Aa;var l={};e?l.c2=!0:l.uid=a.uid;ab(a.L)&&(l.ex=k(a.L));if(a.bb&&a.bb.length)for(l.ivs={},b=0,h=a.bb.length;b<h;b++)l.ivs[a.type.Sl[b].toString()]=a.bb[b];if(c.He){c={x:a.x,y:a.y,w:a.width,h:a.height,l:a.j.aa,zi:a.zd()};0!==a.n&&(c.a=a.n);1!==a.opacity&&(c.o=a.opacity);.5!==a.cc&&(c.hX=a.cc);.5!==a.ec&&(c.hY=a.ec);0!==a.Bb&&(c.bm=a.Bb);a.visible||(c.v=a.visible);a.Nd||(c.ce=a.Nd);-1!==
a.Ph&&(c.mts=a.Ph);if(g.P.length)for(c.fx=[],b=0,h=g.P.length;b<h;b++)d=g.P[b],c.fx.push({name:d.name,active:a.te[d.index],params:a.La[d.index]});l.w=c}if(a.O&&a.O.length)for(l.behs={},b=0,h=a.O.length;b<h;b++)g=a.O[b],g.rb&&(l.behs[g.type.aa.toString()]=g.rb());a.rb&&(l.data=a.rb());return l};d.prototype.Ot=function(a,e){var b,h;b=0;for(h=a.Sl.length;b<h;b++)if(a.Sl[b]===e)return b;return-1};d.prototype.It=function(a,e){var b,h;b=0;for(h=a.O.length;b<h;b++)if(a.O[b].type.aa===e)return b;return-1};
d.prototype.Jj=function(a,e,b){var h,c,g,d,l;l=a.type;d=l.Aa;if(b){if(!e.c2)return}else a.uid=e.uid;e.ex?a.L=e.ex:bb(a.L);if(c=e.ivs)for(h in c)c.hasOwnProperty(h)&&(g=this.Ot(l,parseInt(h,10)),0>g||g>=a.bb.length||(a.bb[g]=c[h]));if(d.He){g=e.w;a.j.aa!==g.l&&(c=a.j,a.j=this.qa.oj(g.l),a.j?(c.Dg(a,!0),a.j.Rg(a,!0),a.Z(),a.j.bi(0)):(a.j=c,b||this.Ze(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.vd=g.zi;a.n=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.cc=g.hasOwnProperty("hX")?
g.hX:.5;a.ec=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.Nd=g.hasOwnProperty("ce")?g.ce:!0;a.Ph=g.hasOwnProperty("mts")?g.mts:-1;a.Bb=g.hasOwnProperty("bm")?g.bm:0;a.Tg=lb(a.Bb);this.C&&mb(a,a.Bb,this.C);a.Z();if(g.hasOwnProperty("fx"))for(b=0,c=g.fx.length;b<c;b++)d=l.Dl(g.fx[b].name),0>d||(a.te[d]=g.fx[b].active,a.La[d]=g.fx[b].params);a.ud()}if(l=e.behs)for(h in l)l.hasOwnProperty(h)&&(b=this.It(a,parseInt(h,10)),0>b||a.O[b].Hb(l[h]));e.data&&a.Hb(e.data)};Vb=function(a){return new d(document.getElementById(a))};
Wb=function(a,e){return new d({dc:!0,width:a,height:e})};window.cr_createRuntime=Vb;window.cr_createDCRuntime=Wb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.Tk=!0;document.body.appendChild(a);a=new d(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 d(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var f=document.getElementById("c2canvas");return f?f.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(f,n){var d=window.cr_getC2Runtime();d&&d.us(f,n)};
window.cr_sizeCanvas=function(f,n){if(0!==f&&0!==n){var d=window.cr_getC2Runtime();d&&d.setSize(f,n)}};window.cr_setSuspended=function(f){var n=window.cr_getC2Runtime();n&&n.setSuspended(f)};
(function(){function f(a,b){this.b=a;this.pf=null;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;this.scale=1;this.n=0;this.dg=!0;this.name=b[0];this.width=b[1];this.height=b[2];this.wq=b[3];this.Yp=b[4];this.aa=b[5];var c=b[6],g,d;this.R=[];this.jh=[];g=0;for(d=c.length;g<d;g++){var k=new Xb(this,c[g]);k.mp=g;this.R.push(k)}c=b[7];this.xf=[];g=0;for(d=c.length;g<d;g++){var k=c[g],p=this.b.B[k[1]];p.Pc||(p.Pc=k);this.xf.push(k);-1===this.jh.indexOf(p)&&this.jh.push(p)}this.P=[];this.ga=[];this.me=
!0;this.La=[];g=0;for(d=b[8].length;g<d;g++)this.P.push({id:b[8][g][0],name:b[8][g][1],Ya:-1,nd:!1,zc:!0,index:g}),this.La.push(b[8][g][2].slice(0));this.ud();this.Oe=new va(0,0,1,1);this.Im=new va(0,0,1,1);this.Ne={}}function n(a,b){return a.vd-b.vd}function d(a,b){this.eb=a;this.b=a.b;this.i=[];this.scale=1;this.n=0;this.Qd=!1;this.oe=new va(0,0,0,0);this.rq=new wa;this.Da=this.za=this.Ea=this.ya=0;this.Mf=!1;this.re=-1;this.dl=0;this.name=b[0];this.index=b[1];this.aa=b[2];this.visible=b[3];this.bd=
b[4];this.td=b[5];this.he=b[6];this.ie=b[7];this.opacity=b[8];this.hj=b[9];this.Lc=b[10];this.wi=b[11];this.Bb=b[12];this.Rs=b[13];this.Tg="source-over";this.Gb=this.Jb=0;this.zb=null;this.ae=q();this.qd=!0;this.tg=new va(0,0,-1,-1);this.sb=new va(0,0,-1,-1);this.Lc&&(this.zb=new kb(this.b.Wa,this.b.Va));this.Gd=!1;var c=b[14],g,d;this.fq=[];this.Fc=[];this.Vg=[];g=0;for(d=c.length;g<d;g++){var k=c[g],p=this.b.B[k[1]];p.Pc||(p.Pc=k,p.ss=this.index);this.Fc.push(k);-1===this.eb.jh.indexOf(p)&&this.eb.jh.push(p)}Fa(this.fq,
this.Fc);this.P=[];this.ga=[];this.me=!0;this.La=[];g=0;for(d=b[15].length;g<d;g++)this.P.push({id:b[15][g][0],name:b[15][g][1],Ya:-1,nd:!1,zc:!0,index:g}),this.La.push(b[15][g][2].slice(0));this.ud();this.Oe=new va(0,0,1,1);this.Im=new va(0,0,1,1)}function q(){return a.length?a.pop():[]}function r(e){S(e);a.push(e)}f.prototype.xv=function(a){var b=a.type.aa.toString();this.Ne.hasOwnProperty(b)||(this.Ne[b]=[]);this.Ne[b].push(this.b.Nm(a))};f.prototype.qo=function(){var a=this.R[0];return!a.td&&
1===a.opacity&&!a.hj&&a.visible};f.prototype.ud=function(){S(this.ga);this.me=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.zc&&(this.ga.push(c),c.nd||(this.me=!1))};f.prototype.Cl=function(a){var b,c,g;b=0;for(c=this.P.length;b<c;b++)if(g=this.P[b],g.name===a)return g;return null};var t=[],c=!0;f.prototype.Vm=function(){this.Yp&&(this.pf=this.b.ol[this.Yp],this.pf.jn());this.b.qa=this;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;var a,b,d,g,k,f,p;a=0;for(d=this.b.B.length;a<d;a++)if(b=
this.b.B[a],!b.F)for(k=b.i,b=0,g=k.length;b<g;b++)if(f=k[b],f.j){var h=f.j.mp;h>=this.R.length&&(h=this.R.length-1);f.j=this.R[h];-1===f.j.i.indexOf(f)&&f.j.i.push(f);f.j.Mf=!0}if(!c)for(a=0,d=this.R.length;a<d;++a)this.R[a].i.sort(n);S(t);this.cs();a=0;for(d=this.R.length;a<d;a++)f=this.R[a],f.qs(),f.Gk();k=!1;if(!this.dg){for(p in this.Ne)if(this.Ne.hasOwnProperty(p)&&(b=this.b.qj(parseInt(p,10)))&&!b.F&&this.b.hn(b)){g=this.Ne[p];a=0;for(d=g.length;a<d;a++){f=null;if(b.Aa.He&&(f=this.oj(g[a].w.l),
!f))continue;f=this.b.ze(b.Pc,f,!1,0,0,!0);this.b.Jj(f,g[a]);k=!0;t.push(f)}S(g)}a=0;for(d=this.R.length;a<d;a++)this.R[a].i.sort(n),this.R[a].Mf=!0}k&&(this.b.Ab(),this.b.Ip());for(a=0;a<t.length;a++)if(f=t[a],f.type.sc)for(d=f.dh(),b=0,g=f.type.nc.length;b<g;b++)p=f.type.nc[b],f.type!==p&&(p.i.length>d?f.siblings.push(p.i[d]):p.Pc&&(k=this.b.ze(p.Pc,f.j,!0,f.x,f.y,!0),this.b.Ab(),p.Ek(),f.siblings.push(k),t.push(k)));a=0;for(d=this.xf.length;a<d;a++)this.b.ze(this.xf[a],null,!0);this.b.hf=null;
this.b.Ab();if(this.b.ja&&!this.b.pa)for(a=0,d=this.b.B.length;a<d;a++)p=this.b.B[a],!p.F&&p.i.length&&p.ck&&p.ck(this.b.ja);a=0;for(d=t.length;a<d;a++)f=t[a],this.b.trigger(Object.getPrototypeOf(f.type.Aa).p.Lk,f);S(t);this.b.xj||this.b.trigger(X.prototype.p.Cn,null);this.dg=!1};f.prototype.os=function(){var a,b,c,g,d;b=a=0;for(c=this.xf.length;a<c;a++)g=this.xf[a],d=this.b.B[g[1]],d.global?d.sc||this.b.ze(g,null,!0):(this.xf[b]=g,b++);Ea(this.xf,b)};f.prototype.Iv=function(){this.b.xj||this.b.trigger(X.prototype.p.Bn,
null);this.b.Ul=!0;S(this.b.Id.mc);var a,b,d,g,k,f;if(!this.dg)for(a=0,b=this.R.length;a<b;a++)for(this.R[a].ln(),k=this.R[a].i,d=0,g=k.length;d<g;d++)f=k[d],f.type.global||this.b.hn(f.type)&&this.xv(f);a=0;for(b=this.R.length;a<b;a++){k=this.R[a].i;d=0;for(g=k.length;d<g;d++)f=k[d],f.type.global||this.b.Ze(f);this.b.Ab();S(k);this.R[a].Mf=!0}a=0;for(b=this.b.B.length;a<b;a++)if(k=this.b.B[a],!(k.global||k.Aa.He||k.Aa.rk||k.F)){d=0;for(g=k.i.length;d<g;d++)this.b.Ze(k.i[d]);this.b.Ab()}c=!1;this.b.Ul=
!1};new va(0,0,0,0);f.prototype.Bc=function(a){var b,c=a,g=!1,d=!this.b.Cc;d&&(this.b.Hj||(this.b.Hj=document.createElement("canvas"),b=this.b.Hj,b.width=this.b.I,b.height=this.b.H,this.b.No=b.getContext("2d"),g=!0),b=this.b.Hj,c=this.b.No,b.width!==this.b.I&&(b.width=this.b.I,g=!0),b.height!==this.b.H&&(b.height=this.b.H,g=!0),g&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T));c.globalAlpha=1;c.globalCompositeOperation=
"source-over";this.b.Qk&&!this.qo()&&c.clearRect(0,0,this.b.I,this.b.H);var k,p,g=0;for(k=this.R.length;g<k;g++)p=this.R[g],p.visible&&0<p.opacity&&11!==p.Bb&&(p.i.length||!p.td)?p.Bc(c):p.Gk();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};f.prototype.Ae=function(a){a.Qp(!0);this.b.Ua||(this.b.Ua=a.pc(this.b.I,this.b.H,this.b.T));if(this.b.Ua.ff!==this.b.I||this.b.Ua.ef!==this.b.H)a.deleteTexture(this.b.Ua),this.b.Ua=a.pc(this.b.I,this.b.H,this.b.T);a.Vc(this.b.Ua);this.b.Cc||a.If(this.b.I,this.b.H);
var b,c;for(b=this.R.length-1;0<=b;--b)c=this.R[b],c.visible&&1===c.opacity&&c.me&&0===c.Bb&&(c.i.length||!c.td)?c.Ae(a):c.Gk();a.Qp(!1)};f.prototype.tb=function(a){var b=0<this.ga.length||this.b.Kg||!this.b.Cc||this.b.ua;if(b){this.b.Ua||(this.b.Ua=a.pc(this.b.I,this.b.H,this.b.T));if(this.b.Ua.ff!==this.b.I||this.b.Ua.ef!==this.b.H)a.deleteTexture(this.b.Ua),this.b.Ua=a.pc(this.b.I,this.b.H,this.b.T);a.Vc(this.b.Ua);this.b.Cc||a.If(this.b.I,this.b.H)}else this.b.Ua&&(a.Vc(null),a.deleteTexture(this.b.Ua),
this.b.Ua=null);this.b.Qk&&!this.qo()&&a.clear(0,0,0,0);var c,g,d;c=0;for(g=this.R.length;c<g;c++)d=this.R[c],d.visible&&0<d.opacity&&(d.i.length||!d.td)?d.tb(a):d.Gk();b&&(0===this.ga.length||1===this.ga.length&&this.b.Cc?(1===this.ga.length?(b=this.ga[0].index,a.kc(this.ga[0].Ya),a.Fg(null,1/this.b.I,1/this.b.H,0,0,1,1,this.scale,this.n,0,0,this.b.I/2,this.b.H/2,this.b.ob.J,this.La[b]),a.dk(this.ga[0].Ya)&&(this.b.fa=!0)):a.kc(0),this.b.Cc||a.If(this.b.width,this.b.height),a.Vc(null),a.Pp(!1),a.Re(1),
a.jc(this.b.Ua),a.Np(),a.Uc(),a.Kc(),b=this.b.width/2,c=this.b.height/2,a.Xh(-b,c,b,c,b,-c,-b,-c),a.jc(null),a.Pp(!0)):this.Jm(a,null,null,null))};f.prototype.bh=function(){return 0<this.ga.length||this.b.Kg||!this.b.Cc||this.b.ua?this.b.Ua:null};f.prototype.mo=function(){var a=this.R[0].ac(),b,c,g;b=1;for(c=this.R.length;b<c;b++)g=this.R[b],(0!==g.he||0!==g.ie)&&g.ac()<a&&(a=g.ac());return a};f.prototype.Lp=function(a){if(!this.wq){var b=1/this.mo()*this.b.I/2;a>this.width-b&&(a=this.width-b);a<
b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.fa=!0)};f.prototype.Mp=function(a){if(!this.wq){var b=1/this.mo()*this.b.H/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.fa=!0)};f.prototype.cs=function(){this.Lp(this.scrollX);this.Mp(this.scrollY)};f.prototype.Jm=function(a,b,c,g){var d=c?c.ga:b?b.ga:this.ga,k=1,p=0,h=0,l=0,f=this.b.I,u=this.b.H;c?(k=c.j.ac(),p=c.j.Oa(),h=c.j.ya,l=c.j.za,f=c.j.Ea,u=c.j.Da):b&&(k=b.ac(),p=b.Oa(),h=b.ya,l=b.za,f=b.Ea,u=b.Da);
var z=this.b.zl,n,q,r,w,t=0,C=1,U,V=this.b.I,K=this.b.H,v=V/2,A=K/2,E=b?b.Oe:this.Oe,J=b?b.Im:this.Im,G=0,P=0,I=0,H=0,N=V,fa=V,Q=K,T=K,da=r=0;w=c?c.j.Oa():0;if(c){n=0;for(q=d.length;n<q;n++)r+=a.Ut(d[n].Ya),da+=a.Vt(d[n].Ya);H=c.Ha;G=b.ka(H.left,H.top,!0,!0);I=b.ka(H.left,H.top,!1,!0);N=b.ka(H.right,H.bottom,!0,!0);Q=b.ka(H.right,H.bottom,!1,!0);0!==w&&(n=b.ka(H.right,H.top,!0,!0),q=b.ka(H.right,H.top,!1,!0),P=b.ka(H.left,H.bottom,!0,!0),H=b.ka(H.left,H.bottom,!1,!0),w=Math.min(G,N,n,P),N=Math.max(G,
N,n,P),G=w,w=Math.min(I,Q,q,H),Q=Math.max(I,Q,q,H),I=w);G-=r;I-=da;N+=r;Q+=da;J.left=G/V;J.top=1-I/K;J.right=N/V;J.bottom=1-Q/K;P=G=B(G);H=I=B(I);fa=N=ta(N);T=Q=ta(Q);P-=r;H-=da;fa+=r;T+=da;0>G&&(G=0);0>I&&(I=0);N>V&&(N=V);Q>K&&(Q=K);0>P&&(P=0);0>H&&(H=0);fa>V&&(fa=V);T>K&&(T=K);E.left=G/V;E.top=1-I/K;E.right=N/V;E.bottom=1-Q/K}else E.left=J.left=0,E.top=J.top=0,E.right=J.right=1,E.bottom=J.bottom=1;da=c&&(a.Uh(d[0].Ya)||0!==r||0!==da||1!==c.opacity||c.type.Aa.jp)||b&&!c&&1!==b.opacity;a.Np();if(da){z[t]||
(z[t]=a.pc(V,K,this.b.T));if(z[t].ff!==V||z[t].ef!==K)a.deleteTexture(z[t]),z[t]=a.pc(V,K,this.b.T);a.kc(0);a.Vc(z[t]);U=T-H;a.clearRect(P,K-H-U,fa-P,U);c?c.tb(a):(a.jc(this.b.cb),a.Re(b.opacity),a.Uc(),a.translate(-v,-A),a.Kc(),a.pd(G,Q,N,Q,N,I,G,I,E));J.left=J.top=0;J.right=J.bottom=1;c&&(w=E.top,E.top=E.bottom,E.bottom=w);t=1;C=0}a.Re(1);r=d.length-1;var ra=a.Fm(d[r].Ya)||!b&&!c&&!this.b.Cc,ga=0;n=0;for(q=d.length;n<q;n++){z[t]||(z[t]=a.pc(V,K,this.b.T));if(z[t].ff!==V||z[t].ef!==K)a.deleteTexture(z[t]),
z[t]=a.pc(V,K,this.b.T);a.kc(d[n].Ya);ga=d[n].index;a.dk(d[n].Ya)&&(this.b.fa=!0);0!=n||da?(a.Fg(g,1/V,1/K,J.left,J.top,J.right,J.bottom,k,p,h,l,(h+f)/2,(l+u)/2,this.b.ob.J,c?c.La[ga]:b?b.La[ga]:this.La[ga]),a.jc(null),n!==r||ra?(a.Vc(z[t]),U=T-H,w=K-H-U,a.clearRect(P,w,fa-P,U)):(c?a.Qe(c.Jb,c.Gb):b&&a.Qe(b.Jb,b.Gb),a.Vc(g)),a.jc(z[C]),a.Uc(),a.translate(-v,-A),a.Kc(),a.pd(G,Q,N,Q,N,I,G,I,E),n!==r||ra||a.jc(null)):(a.Vc(z[t]),U=T-H,w=K-H-U,a.clearRect(P,w,fa-P,U),c?(a.Fg(g,1/c.width,1/c.height,J.left,
J.top,J.right,J.bottom,k,p,h,l,(h+f)/2,(l+u)/2,this.b.ob.J,c.La[ga]),c.tb(a)):(a.Fg(g,1/V,1/K,0,0,1,1,k,p,h,l,(h+f)/2,(l+u)/2,this.b.ob.J,b?b.La[ga]:this.La[ga]),a.jc(b?this.b.cb:this.b.Ua),a.Uc(),a.translate(-v,-A),a.Kc(),a.pd(G,Q,N,Q,N,I,G,I,E)),J.left=J.top=0,J.right=J.bottom=1,c&&!ra&&(w=Q,Q=I,I=w));t=0===t?1:0;C=0===t?1:0}ra&&(a.kc(0),c?a.Qe(c.Jb,c.Gb):b?a.Qe(b.Jb,b.Gb):this.b.Cc||(a.If(this.b.width,this.b.height),v=this.b.width/2,A=this.b.height/2,I=G=0,N=this.b.width,Q=this.b.height),a.Vc(g),
a.jc(z[C]),a.Uc(),a.translate(-v,-A),a.Kc(),c&&1===d.length&&!da?a.pd(G,I,N,I,N,Q,G,Q,E):a.pd(G,Q,N,Q,N,I,G,I,E),a.jc(null))};f.prototype.oj=function(a){var b,c;b=0;for(c=this.R.length;b<c;b++)if(this.R[b].aa===a)return this.R[b];return null};f.prototype.rb=function(){var a,b,c,g={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.dg,persist:this.Ne,fx:[],layers:{}};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],g.fx.push({name:c.name,active:c.zc,params:this.La[c.index]});
a=0;for(b=this.R.length;a<b;a++)c=this.R[a],g.layers[c.aa.toString()]=c.rb();return g};f.prototype.Hb=function(a){var b,c,g,d;this.scrollX=a.sx;this.scrollY=a.sy;this.scale=a.s;this.n=a.a;this.width=a.w;this.height=a.h;this.Ne=a.persist;"undefined"!==typeof a.fv&&(this.dg=a.fv);var k=a.fx;b=0;for(c=k.length;b<c;b++)if(g=this.Cl(k[b].name))g.zc=k[b].active,this.La[g.index]=k[b].params;this.ud();b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.oj(parseInt(d,10)))&&a.Hb(b[d])};Jb=f;d.prototype.ud=
function(){S(this.ga);this.me=!0;var a,b,c;a=0;for(b=this.P.length;a<b;a++)c=this.P[a],c.zc&&(this.ga.push(c),c.nd||(this.me=!1))};d.prototype.Cl=function(a){var b,c,g;b=0;for(c=this.P.length;b<c;b++)if(g=this.P[b],g.name===a)return g;return null};d.prototype.qs=function(){var a,b,c,g,d,k;b=a=0;for(c=this.Fc.length;a<c;a++){g=this.Fc[a];d=this.b.B[g[1]];k=this.b.hn(d);d=!0;if(!k||this.eb.dg)g=this.b.ze(g,this,!0),t.push(g),g.type.global&&(d=!1,this.Vg.push(g.uid));d&&(this.Fc[b]=this.Fc[a],b++)}this.Fc.length=
b;this.b.Ab();!this.b.u&&this.P.length&&(this.Bb=this.Rs);this.Tg=lb(this.Bb);this.b.C&&mb(this,this.Bb,this.b.C);this.qd=!0};d.prototype.Dg=function(a,b){var c=Ia(this.i,a);0>c||(b&&this.Lc&&a.hc&&a.hc.right>=a.hc.left&&(a.Ca(),this.zb.update(a,a.hc,null),a.hc.set(0,0,-1,-1)),c===this.i.length-1?this.i.pop():(Da(this.i,c),this.bi(c)),this.qd=!0)};d.prototype.Rg=function(a,b){a.vd=this.i.length;this.i.push(a);b&&this.Lc&&a.hc&&a.Z();this.qd=!0};d.prototype.av=function(a){this.i.unshift(a);this.bi(0)};
d.prototype.Ku=function(a,b,c){var d=a.zd();b=b.zd();Da(this.i,d);d<b&&b--;c&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.bi(d<b?d:b)};d.prototype.bi=function(a){-1===this.re?this.re=a:a<this.re&&(this.re=a);this.qd=this.Mf=!0};d.prototype.ln=function(){if(this.Mf){-1===this.re&&(this.re=0);var a,b,c;if(this.Lc)for(a=this.re,b=this.i.length;a<b;++a)c=this.i[a],c.vd=a,this.zb.Hu(c.hc);else for(a=this.re,b=this.i.length;a<b;++a)this.i[a].vd=a;this.Mf=!1;this.re=-1}};d.prototype.ac=
function(a){return this.Rt()*(this.b.Cc||a?this.b.Sg:1)};d.prototype.Rt=function(){return(this.scale*this.eb.scale-1)*this.wi+1};d.prototype.Oa=function(){return this.Qd?0:Na(this.eb.n+this.n)};var a=[],k=[],w=[];d.prototype.Gl=function(){this.ln();this.zb.gk(this.ya,this.za,this.Ea,this.Da,w);if(!w.length)return q();if(1===w.length){var a=q();Fa(a,w[0]);S(w);return a}for(var b=!0;1<w.length;){for(var a=w,c=void 0,d=void 0,f=void 0,n=void 0,p=void 0,c=0,d=a.length;c<d-1;c+=2){var f=a[c],n=a[c+1],
p=q(),h=f,l=n,D=p,u=0,z=0,F=0,L=h.length,y=l.length,t=void 0,M=void 0;for(D.length=L+y;u<L&&z<y;++F)t=h[u],M=l[z],t.vd<M.vd?(D[F]=t,++u):(D[F]=M,++z);for(;u<L;++u,++F)D[F]=h[u];for(;z<y;++z,++F)D[F]=l[z];b||(r(f),r(n));k.push(p)}1===d%2&&(b?(f=q(),Fa(f,a[d-1]),k.push(f)):k.push(a[d-1]));Fa(a,k);S(k);b=!1}a=w[0];S(w);return a};d.prototype.Bc=function(a){this.Gd=this.hj||1!==this.opacity||0!==this.Bb;var b=this.b.canvas,c=a,d=!1;this.Gd&&(this.b.Gj||(this.b.Gj=document.createElement("canvas"),b=this.b.Gj,
b.width=this.b.I,b.height=this.b.H,this.b.Mo=b.getContext("2d"),d=!0),b=this.b.Gj,c=this.b.Mo,b.width!==this.b.I&&(b.width=this.b.I,d=!0),b.height!==this.b.H&&(b.height=this.b.H,d=!0),d&&(c.webkitImageSmoothingEnabled=this.b.T,c.mozImageSmoothingEnabled=this.b.T,c.msImageSmoothingEnabled=this.b.T,c.imageSmoothingEnabled=this.b.T),this.td&&c.clearRect(0,0,this.b.I,this.b.H));c.globalAlpha=1;c.globalCompositeOperation="source-over";this.td||(c.fillStyle="rgb("+this.bd[0]+","+this.bd[1]+","+this.bd[2]+
")",c.fillRect(0,0,this.b.I,this.b.H));c.save();this.Qd=!0;var d=this.xe(!0),k=this.xe(!1);this.Qd=!1;this.b.Hc&&(d=Math.round(d),k=Math.round(k));this.jk(d,k,c);var f=this.ac();c.scale(f,f);c.translate(-d,-k);this.Lc?(this.sb.left=this.zb.Wb(this.ya),this.sb.top=this.zb.Xb(this.za),this.sb.right=this.zb.Wb(this.Ea),this.sb.bottom=this.zb.Xb(this.Da),this.qd||!this.sb.Yg(this.tg)?(r(this.ae),d=this.Gl(),this.qd=!1,this.tg.Xf(this.sb)):d=this.ae):d=this.i;for(var p,h=null,k=0,f=d.length;k<f;++k)p=
d[k],p!==h&&(this.Ms(p,c),h=p);this.Lc&&(this.ae=d);c.restore();this.Gd&&(a.globalCompositeOperation=this.Tg,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};d.prototype.Ms=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ca();var c=a.Ha;c.right<this.ya||c.bottom<this.za||c.left>this.Ea||c.top>this.Da||(b.globalCompositeOperation=a.Tg,a.Bc(b))}};d.prototype.Gk=function(){this.Qd=!0;var a=this.xe(!0),b=this.xe(!1);this.Qd=!1;this.b.Hc&&(a=Math.round(a),b=Math.round(b));this.jk(a,b,null)};d.prototype.jk=
function(a,b,c){var d=this.ac();this.ya=a;this.za=b;this.Ea=a+1/d*this.b.I;this.Da=b+1/d*this.b.H;a=this.Oa();0!==a&&(c&&(c.translate(this.b.I/2,this.b.H/2),c.rotate(-a),c.translate(this.b.I/-2,this.b.H/-2)),this.oe.set(this.ya,this.za,this.Ea,this.Da),this.oe.offset((this.ya+this.Ea)/-2,(this.za+this.Da)/-2),this.rq.Wp(this.oe,a),this.rq.On(this.oe),this.oe.offset((this.ya+this.Ea)/2,(this.za+this.Da)/2),this.ya=this.oe.left,this.za=this.oe.top,this.Ea=this.oe.right,this.Da=this.oe.bottom)};d.prototype.Ae=
function(a){if(this.Gd=this.hj){this.b.cb||(this.b.cb=a.pc(this.b.I,this.b.H,this.b.T));if(this.b.cb.ff!==this.b.I||this.b.cb.ef!==this.b.H)a.deleteTexture(this.b.cb),this.b.cb=a.pc(this.b.I,this.b.H,this.b.T);a.Vc(this.b.cb)}this.Qd=!0;var b=this.xe(!0),c=this.xe(!1);this.Qd=!1;this.b.Hc&&(b=Math.round(b),c=Math.round(c));this.jk(b,c,null);b=this.ac();a.Uc();a.scale(b,b);a.kk(-this.Oa());a.translate((this.ya+this.Ea)/-2,(this.za+this.Da)/-2);a.Kc();this.Lc?(this.sb.left=this.zb.Wb(this.ya),this.sb.top=
this.zb.Xb(this.za),this.sb.right=this.zb.Wb(this.Ea),this.sb.bottom=this.zb.Xb(this.Da),this.qd||!this.sb.Yg(this.tg)?(r(this.ae),b=this.Gl(),this.qd=!1,this.tg.Xf(this.sb)):b=this.ae):b=this.i;for(var d,k=null,c=b.length-1;0<=c;--c)d=b[c],d!==k&&(this.Os(b[c],a),k=d);this.Lc&&(this.ae=b);this.td||(this.dl=this.b.of++,a.pk(this.dl),a.Op(1,1,1),a.eo(),a.nv())};d.prototype.tb=function(a){var b=0,c=0;if(this.Gd=this.hj||1!==this.opacity||0<this.ga.length||0!==this.Bb){this.b.cb||(this.b.cb=a.pc(this.b.I,
this.b.H,this.b.T));if(this.b.cb.ff!==this.b.I||this.b.cb.ef!==this.b.H)a.deleteTexture(this.b.cb),this.b.cb=a.pc(this.b.I,this.b.H,this.b.T);a.Vc(this.b.cb);this.td&&a.clear(0,0,0,0)}this.td||(this.b.ua?(a.pk(this.dl),a.Op(this.bd[0]/255,this.bd[1]/255,this.bd[2]/255),a.eo(),a.Ev()):a.clear(this.bd[0]/255,this.bd[1]/255,this.bd[2]/255,1));this.Qd=!0;var d=this.xe(!0),b=this.xe(!1);this.Qd=!1;this.b.Hc&&(d=Math.round(d),b=Math.round(b));this.jk(d,b,null);d=this.ac();a.Uc();a.scale(d,d);a.kk(-this.Oa());
a.translate((this.ya+this.Ea)/-2,(this.za+this.Da)/-2);a.Kc();this.Lc?(this.sb.left=this.zb.Wb(this.ya),this.sb.top=this.zb.Xb(this.za),this.sb.right=this.zb.Wb(this.Ea),this.sb.bottom=this.zb.Xb(this.Da),this.qd||!this.sb.Yg(this.tg)?(r(this.ae),b=this.Gl(),this.qd=!1,this.tg.Xf(this.sb)):b=this.ae):b=this.i;var k,f,p=null,c=0;for(k=b.length;c<k;++c)f=b[c],f!==p&&(this.Ns(b[c],a),p=f);this.Lc&&(this.ae=b);this.Gd&&(b=this.ga.length?this.ga[0].Ya:0,c=this.ga.length?this.ga[0].index:0,0===this.ga.length||
1===this.ga.length&&!a.Fm(b)&&1===this.opacity?(1===this.ga.length?(a.kc(b),a.Fg(this.eb.bh(),1/this.b.I,1/this.b.H,0,0,1,1,d,this.Oa(),this.ya,this.za,(this.ya+this.Ea)/2,(this.za+this.Da)/2,this.b.ob.J,this.La[c]),a.dk(b)&&(this.b.fa=!0)):a.kc(0),a.Vc(this.eb.bh()),a.Re(this.opacity),a.jc(this.b.cb),a.Qe(this.Jb,this.Gb),a.Uc(),a.Kc(),d=this.b.I/2,b=this.b.H/2,a.Xh(-d,b,d,b,d,-b,-d,-b),a.jc(null)):this.eb.Jm(a,this,null,this.eb.bh()))};d.prototype.Ns=function(a,b){if(a.visible&&0!==a.width&&0!==
a.height){a.Ca();var c=a.Ha;c.right<this.ya||c.bottom<this.za||c.left>this.Ea||c.top>this.Da||(b.pk(a.of),a.Cq?this.Ps(a,b):(b.kc(0),b.Qe(a.Jb,a.Gb),a.tb(b)))}};d.prototype.Os=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.Ca();var c=a.Ha;c.right<this.ya||c.bottom<this.za||c.left>this.Ea||c.top>this.Da||(a.of=this.b.of++,0===a.Bb&&1===a.opacity&&a.me&&a.Ae&&(b.pk(a.of),a.Ae(b)))}};d.prototype.Ps=function(a,b){var c=a.ga[0].Ya,d=a.ga[0].index,k=this.ac();if(1!==a.ga.length||b.Fm(c)||b.cv(c)||
(a.n||a.j.Oa())&&b.Uh(c)||1!==a.opacity||a.type.Aa.jp)this.eb.Jm(b,this,a,this.Gd?this.b.cb:this.eb.bh()),b.Uc(),b.scale(k,k),b.kk(-this.Oa()),b.translate((this.ya+this.Ea)/-2,(this.za+this.Da)/-2),b.Kc();else{b.kc(c);b.Qe(a.Jb,a.Gb);b.dk(c)&&(this.b.fa=!0);var f=0,p=0,h=0,l=0;b.Uh(c)&&(c=a.Ha,f=this.ka(c.left,c.top,!0,!0),p=this.ka(c.left,c.top,!1,!0),h=this.ka(c.right,c.bottom,!0,!0),c=this.ka(c.right,c.bottom,!1,!0),f=f/windowWidth,p=1-p/windowHeight,h=h/windowWidth,l=1-c/windowHeight);b.Fg(this.Gd?
this.b.cb:this.eb.bh(),1/a.width,1/a.height,f,p,h,l,k,this.Oa(),this.ya,this.za,(this.ya+this.Ea)/2,(this.za+this.Da)/2,this.b.ob.J,a.La[d]);a.tb(b)}};d.prototype.xe=function(a){var b=0,c=0,d=this.b.devicePixelRatio;this.b.Ge&&(b*=d,c*=d);var d=this.b.zp,k=this.b.Ap,d=(this.eb.scrollX-d)*this.he+d,k=(this.eb.scrollY-k)*this.ie+k,f,p,h=1/this.ac(!1);f=d-this.b.I*h/2;p=k-this.b.H*h/2;f+=b*h;p+=c*h;c=this.Oa();0!==c&&(f-=d,p-=k,b=Math.cos(c),c=Math.sin(c),h=f*b-p*c,p=p*b+f*c,f=h+d,p+=k);return a?f:p};
d.prototype.ka=function(a,b,c,d){var k=this.b.zp,f=this.b.Ap,p=(this.eb.scrollX-k)*this.he+k,h=(this.eb.scrollY-f)*this.ie+f,f=p,k=h,l=this.Oa();if(0!==l){a-=p;b-=h;var n=Math.cos(-l),l=Math.sin(-l),u=a*n-b*l;b=b*n+a*l;a=u+p;b+=h}p=1/this.ac(!d);d?(f-=this.b.I*p/2,k-=this.b.H*p/2):(f-=this.b.width*p/2,k-=this.b.height*p/2);f=(a-f)/p;k=(b-k)/p;a=this.b.devicePixelRatio;this.b.Ge&&!d&&(f/=a,k/=a);return c?f:k};d.prototype.rb=function(){var a,b,c,d={s:this.scale,a:this.n,vl:this.ya,vt:this.za,vr:this.Ea,
vb:this.Da,v:this.visible,bc:this.bd,t:this.td,px:this.he,py:this.ie,o:this.opacity,zr:this.wi,fx:[],cg:this.Vg,instances:[]};a=0;for(b=this.P.length;a<b;a++)c=this.P[a],d.fx.push({name:c.name,active:c.zc,params:this.La[c.index]});return d};d.prototype.Hb=function(a){var b,c,d;this.scale=a.s;this.n=a.a;this.ya=a.vl;this.za=a.vt;this.Ea=a.vr;this.Da=a.vb;this.visible=a.v;this.bd=a.bc;this.td=a.t;this.he=a.px;this.ie=a.py;this.opacity=a.o;this.wi=a.zr;this.Vg=a.cg||[];Fa(this.Fc,this.fq);var k=new ba;
b=0;for(d=this.Vg.length;b<d;++b)k.add(this.Vg[b]);c=b=0;for(d=this.Fc.length;b<d;++b)k.contains(this.Fc[b][2])||(this.Fc[c]=this.Fc[b],++c);Ea(this.Fc,c);c=a.fx;b=0;for(d=c.length;b<d;b++)if(a=this.Cl(c[b].name))a.zc=c[b].active,this.La[a.index]=c[b].params;this.ud();this.i.sort(n);this.Mf=!0};Xb=d})();
(function(){function f(a,b){var c,e=a.length;switch(e){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<e;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function d(a){var b,c,e,d;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=O.length&&(O.length=a.length+1);O[a.length]||(O[a.length]=[]);d=O[a.length];b=0;for(c=d.length;b<c;b++)if(e=d[b],f(a,e))return e;d.push(a);return a}
function q(a,b){this.b=a;this.tq={};this.ao={};this.Ml=!1;this.to=new ba;this.jl=[];this.Rk=[];this.name=b[0];var c=b[1];this.Ce=[];var e,d;e=0;for(d=c.length;e<d;e++)this.vo(c[e],null,this.Ce)}function r(a){this.type=a;this.i=[];this.da=[];this.ra=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.Se=[];this.ro=this.Ak=this.cn=this.Ql=this.group=this.cq=!1;this.kb=[];this.Mc=[];this.Wc=[];this.eh="";this.eg=this.Ql=this.group=!1;this.Ri=null;c[1]&&(this.eh=c[1][1].toLowerCase(),
this.group=!0,this.Ql=!!c[1][0],this.Ri=[],this.eg=this.Ql,this.b.Rf.push(this),this.b.fh[this.eh]=this);this.Sc=c[2];this.aa=c[4];this.group||(this.b.Nn[this.aa.toString()]=this);var e=c[5];a=0;for(b=e.length;a<b;a++){var d=new Yb(this,e[a]);d.index=a;this.kb.push(d);this.Hn(d.type)}e=c[6];a=0;for(b=e.length;a<b;a++)d=new Zb(this,e[a]),d.index=a,this.Mc.push(d);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.vo(c[a],this,this.Wc);this.zj=!1;this.kb.length&&(this.zj=null==this.kb[0].type&&
this.kb[0].wb==X.prototype.p.Sq)}function c(a,b){var c,e,d;if(a&&(-1===b.indexOf(a)&&b.push(a),a.sc))for(c=0,e=a.nc.length;c<e;c++)d=a.nc[c],a!==d&&-1===b.indexOf(d)&&b.push(d)}function a(a,b){this.Ac=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Ma=[];this.L={};this.index=-1;this.Pg=!1;this.wb=this.b.se(b[1]);this.trigger=0<b[3];this.$n=2===b[3];this.Bd=b[4];this.tj=b[5];this.Eu=b[6];this.aa=b[7];this.b.Wf[this.aa.toString()]=this;-1===b[0]?(this.type=null,this.Xa=this.Mm,this.df=null,this.dd=-1):
(this.type=this.b.B[b[0]],this.Xa=this.Eu?this.vv:this.Lm,b[2]?(this.df=this.type.lj(b[2]),this.dd=this.type.Al(b[2])):(this.df=null,this.dd=-1),this.Ac.parent&&this.Ac.parent.qk());this.$n&&(this.Xa=this.wv);if(10===b.length){var c,e,d=b[9];c=0;for(e=d.length;c<e;c++){var g=new $b(this,d[c]);this.V.push(g)}this.Ma.length=d.length}}function k(a,b){this.Ac=a;this.sheet=a.sheet;this.b=a.b;this.V=[];this.Ma=[];this.L={};this.index=-1;this.Pg=!1;this.wb=this.b.se(b[1]);-1===b[0]?(this.type=null,this.Xa=
this.Mm,this.df=null,this.dd=-1):(this.type=this.b.B[b[0]],this.Xa=this.Lm,b[2]?(this.df=this.type.lj(b[2]),this.dd=this.type.Al(b[2])):(this.df=null,this.dd=-1));this.aa=b[3];this.b.Qf[this.aa.toString()]=this;if(6===b.length){var c,e,d=b[5];c=0;for(e=d.length;c<e;c++){var g=new $b(this,d[c]);this.V.push(g)}this.Ma.length=d.length}}function w(){p++;x.length===p&&x.push(new ac);return x[p]}function e(a,b){this.Tc=a;this.Ac=a.Ac;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.yd=null;this.ne=0;this.get=
null;this.Tn=0;this.eb=null;this.key=0;this.object=null;this.index=0;this.oi=this.Jf=this.oi=this.Jf=this.bo=this.qf=this.pi=null;this.Yc=!1;var c,e,d;switch(b[0]){case 0:case 7:this.yd=new bc(this,b[1]);this.ne=0;this.get=this.du;break;case 1:this.yd=new bc(this,b[1]);this.ne=0;this.get=this.eu;break;case 5:this.yd=new bc(this,b[1]);this.ne=0;this.get=this.iu;break;case 3:case 8:this.Tn=b[1];this.get=this.bu;break;case 6:this.eb=this.b.em[b[1]];this.get=this.ju;break;case 9:this.key=b[1];this.get=
this.hu;break;case 4:this.object=this.b.B[b[1]];this.get=this.ku;this.Ac.Hn(this.object);this.Tc instanceof Zb?this.Ac.qk():this.Ac.parent&&this.Ac.parent.qk();break;case 10:this.index=b[1];a.type.F?(this.get=this.fu,this.Yc=!0):this.get=this.gu;break;case 11:this.pi=b[1];this.qf=null;this.get=this.cu;break;case 2:case 12:this.bo=b[1];this.get=this.au;break;case 13:for(this.get=this.lu,this.Jf=[],this.oi=[],c=1,e=b.length;c<e;c++)d=new $b(this.Tc,b[c]),this.Jf.push(d),this.oi.push(0)}}function b(a,
b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.name=c[1];this.qi=c[2];this.Pl=c[3];this.sh=!!c[4];this.yj=!!c[5];this.aa=c[6];this.b.Mg[this.aa.toString()]=this;this.data=this.Pl;this.parent?(this.Ef=this.sh||this.yj?-1:this.b.Gv++,this.b.Xr.push(this)):(this.Ef=-1,this.b.Wr.push(this))}function m(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.Ba=[];this.ih=null;this.su=c[1];this.zc=!0}function g(){this.hq=[];this.reset(null)}var O=[];q.prototype.toString=function(){return this.name};
q.prototype.vo=function(a,b,c){switch(a[0]){case 0:a=new cc(this,b,a);if(a.Sc)for(c.push(a),c=0,b=a.kb.length;c<b;c++)a.kb[c].trigger&&this.wo(a,c);else a.Go()?this.wo(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)}};q.prototype.Ra=function(){var a,b;a=0;for(b=this.Ce.length;a<b;a++)this.Ce[a].Ra(a<b-1&&this.Ce[a+1].zj)};q.prototype.jn=function(){S(this.jl);S(this.Rk);this.Fn(this);S(this.Rk)};q.prototype.Fn=function(a){var b,c,e,d,g=a.jl,k=a.Rk,
p=this.to.Ye();b=0;for(c=p.length;b<c;++b)e=p[b],d=e.ih,!e.zc||a===d||-1<k.indexOf(d)||(k.push(d),d.Fn(a),g.push(d))};q.prototype.Xa=function(a){this.b.Qw||(this.Ml=!0,a||(this.b.Xl=!0));var b,c;b=0;for(c=this.Ce.length;b<c;b++){var e=this.Ce[b];e.Xa();this.b.cl(e.Ba);this.b.Ee&&this.b.Ab()}a||(this.b.Xl=!1)};q.prototype.wo=function(a,b){a.Sc||this.b.Ck.push(a);var c,e,d=a.kb[b],g;d.type?g=d.type.name:g="system";var k=(c=d.$n)?this.ao:this.tq;k[g]||(k[g]=[]);g=k[g];k=d.wb;if(c){if(d.V.length&&(d=
d.V[0],1===d.type&&2===d.yd.type)){d=d.yd.value.toLowerCase();c=0;for(e=g.length;c<e;c++)if(g[c].method==k){c=g[c].Zg;c[d]?c[d].push([a,b]):c[d]=[[a,b]];return}c={};c[d]=[[a,b]];g.push({method:k,Zg:c})}}else{c=0;for(e=g.length;c<e;c++)if(g[c].method==k){g[c].Zg.push([a,b]);return}Y&&k===Y.prototype.p.Pf?g.unshift({method:k,Zg:[[a,b]]}):g.push({method:k,Zg:[[a,b]]})}};Kb=q;r.prototype.po=function(){return this.ra?this.type.i.length:this.i.length};r.prototype.rc=function(){return this.ra?this.type.i:
this.i};r.prototype.Cg=function(a){a&&(a.b.lb().Rb.Sc?(this.ra&&(S(this.i),Fa(this.da,a.type.i),this.ra=!1),a=this.da.indexOf(a),-1!==a&&(this.i.push(this.da[a]),this.da.splice(a,1))):(this.ra=!1,S(this.i),this.i[0]=a))};sb=r;window._c2hh_="6B777D33B90D92A87AA213B0B3B50D4CEBB4C9FA";t.prototype.Ra=function(a){var b,c=this.parent;if(this.group)for(this.Ak=!0;c;){if(!c.group){this.Ak=!1;break}c=c.parent}this.cn=!this.Go()&&(!this.parent||this.parent.group&&this.parent.Ak);this.ro=!!a;this.Se=this.Ba.slice(0);
for(c=this.parent;c;){a=0;for(b=c.Ba.length;a<b;a++)this.Ur(c.Ba[a]);c=c.parent}this.Ba=d(this.Ba);this.Se=d(this.Se);a=0;for(b=this.kb.length;a<b;a++)this.kb[a].Ra();a=0;for(b=this.Mc.length;a<b;a++)this.Mc[a].Ra();a=0;for(b=this.Wc.length;a<b;a++)this.Wc[a].Ra(a<b-1&&this.Wc[a+1].zj)};t.prototype.Av=function(a){if(this.eg!==!!a){this.eg=!!a;var b;a=0;for(b=this.Ri.length;a<b;++a)this.Ri[a].yq();0<b&&this.b.qa.pf&&this.b.qa.pf.jn()}};t.prototype.Hn=function(a){c(a,this.Ba)};t.prototype.Ur=function(a){c(a,
this.Se)};t.prototype.qk=function(){this.cq=!0;this.parent&&this.parent.qk()};t.prototype.Go=function(){return this.kb.length?this.kb[0].trigger:!1};t.prototype.Xa=function(){var a,b,c=!1,e=this.b,d=this.b.lb();d.Rb=this;var g=this.kb;this.zj||(d.ml=!1);if(this.Sc){0===g.length&&(c=!0);d.jb=0;for(a=g.length;d.jb<a;d.jb++)b=g[d.jb],b.trigger||(b=b.Xa())&&(c=!0);(d.Af=c)&&this.lk()}else{d.jb=0;for(a=g.length;d.jb<a;d.jb++)if(b=g[d.jb].Xa(),!b){d.Af=!1;this.cn&&e.Ee&&e.Ab();return}d.Af=!0;this.lk()}this.Ts(d)};
t.prototype.Ts=function(a){a.Af&&this.ro&&(a.ml=!0);this.cn&&this.b.Ee&&this.b.Ab()};t.prototype.tv=function(a){this.b.lb().Rb=this;this.kb[a].Xa()&&(this.lk(),this.b.lb().Af=!0)};t.prototype.lk=function(){var a=this.b.lb(),b;a.Yb=0;for(b=this.Mc.length;a.Yb<b;a.Yb++)if(this.Mc[a.Yb].Xa())return;this.Kp()};t.prototype.pv=function(){var a=this.b.lb(),b;for(b=this.Mc.length;a.Yb<b;a.Yb++)if(this.Mc[a.Yb].Xa())return;this.Kp()};t.prototype.Kp=function(){if(this.Wc.length){var a,b,c,e,d=this.Wc.length-
1;this.b.fk(this);if(this.cq)for(a=0,b=this.Wc.length;a<b;a++)c=this.Wc[a],(e=!this.Ak||!this.group&&a<d)&&this.b.ek(c.Ba),c.Xa(),e?this.b.Hf(c.Ba):this.b.cl(c.Ba);else for(a=0,b=this.Wc.length;a<b;a++)this.Wc[a].Xa();this.b.$j()}};t.prototype.uv=function(){var a=this.b.lb();a.Rb=this;var b=!1,c;a.jb=0;for(c=this.kb.length;a.jb<c;a.jb++)if(this.kb[a.jb].Xa())b=!0;else if(!this.Sc)return!1;return this.Sc?b:!0};t.prototype.qv=function(){this.b.rf++;var a=this.b.lb().jb,b=this.b.fk(this);if(!this.Sc)for(b.jb=
a+1,a=this.kb.length;b.jb<a;b.jb++)if(!this.kb[b.jb].Xa()){this.b.$j();return}this.lk();this.b.$j()};t.prototype.zu=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.kb[b].type===a.type)return!1;return!0};cc=t;a.prototype.Ra=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ra(),c.Yc&&(this.Pg=!0)};a.prototype.wv=function(){return!0};a.prototype.Mm=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Ma[a]=this.V[a].get();return $a(this.wb.apply(this.b.Id,this.Ma),
this.tj)};a.prototype.vv=function(){var a,b;a=0;for(b=this.V.length;a<b;a++)this.Ma[a]=this.V[a].get();a=this.wb.apply(this.df?this.df:this.type,this.Ma);this.type.ad();return a};a.prototype.Lm=function(){var a,b,c,e,d,g,k,p,f=this.type,m=f.ba(),n=this.Ac.Sc&&!this.trigger;b=0;var r=f.sc,q=f.F,w=f.Td,x=this.dd,t=-1<x,O=this.Pg,J=this.V,G=this.Ma,P=this.tj,I=this.wb,H;if(O)for(b=0,d=J.length;b<d;++b)g=J[b],g.Yc||(G[b]=g.get(0));else for(b=0,d=J.length;b<d;++b)G[b]=J[b].get(0);if(m.ra){S(m.i);S(m.da);
H=f.i;a=0;for(e=H.length;a<e;++a){p=H[a];if(O)for(b=0,d=J.length;b<d;++b)g=J[b],g.Yc&&(G[b]=g.get(a));t?(b=0,q&&(b=p.type.bg[w]),b=I.apply(p.O[x+b],G)):b=I.apply(p,G);(k=$a(b,P))?m.i.push(p):n&&m.da.push(p)}f.finish&&f.finish(!0);m.ra=!1;f.ad();return m.po()}c=0;H=(k=n&&!this.Ac.zu(this))?m.da:m.i;var N=!1;a=0;for(e=H.length;a<e;++a){p=H[a];if(O)for(b=0,d=J.length;b<d;++b)g=J[b],g.Yc&&(G[b]=g.get(a));t?(b=0,q&&(b=p.type.bg[w]),b=I.apply(p.O[x+b],G)):b=I.apply(p,G);if($a(b,P))if(N=!0,k){if(m.i.push(p),
r)for(b=0,d=p.siblings.length;b<d;b++)g=p.siblings[b],g.type.ba().i.push(g)}else{H[c]=p;if(r)for(b=0,d=p.siblings.length;b<d;b++)g=p.siblings[b],g.type.ba().i[c]=g;c++}else if(k){H[c]=p;if(r)for(b=0,d=p.siblings.length;b<d;b++)g=p.siblings[b],g.type.ba().da[c]=g;c++}else if(n&&(m.da.push(p),r))for(b=0,d=p.siblings.length;b<d;b++)g=p.siblings[b],g.type.ba().da.push(g)}Ea(H,c);if(r)for(q=f.nc,a=0,e=q.length;a<e;a++)p=q[a].ba(),k?Ea(p.da,c):Ea(p.i,c);c=N;if(k&&!N)for(a=0,e=m.i.length;a<e;a++){p=m.i[a];
if(O)for(b=0,d=J.length;b<d;b++)g=J[b],g.Yc&&(G[b]=g.get(a));b=t?I.apply(p.O[x],G):I.apply(p,G);if($a(b,P)){N=!0;break}}f.finish&&f.finish(c||n);return n?N:m.po()};Yb=a;k.prototype.Ra=function(){var a,b,c;a=0;for(b=this.V.length;a<b;a++)c=this.V[a],c.Ra(),c.Yc&&(this.Pg=!0)};k.prototype.Mm=function(){var a=this.b,b,c,e=this.V,d=this.Ma;b=0;for(c=e.length;b<c;++b)d[b]=e[b].get();return this.wb.apply(a.Id,d)};k.prototype.Lm=function(){var a=this.type,b=this.dd,c=a.Td,e=this.Pg,d=this.V,g=this.Ma,k=
this.wb,p=a.ba().rc(),a=a.F,f=-1<b,m,n,r,q,w,x;if(e)for(n=0,q=d.length;n<q;++n)w=d[n],w.Yc||(g[n]=w.get(0));else for(n=0,q=d.length;n<q;++n)g[n]=d[n].get(0);m=0;for(r=p.length;m<r;++m){x=p[m];if(e)for(n=0,q=d.length;n<q;++n)w=d[n],w.Yc&&(g[n]=w.get(m));f?(n=0,a&&(n=x.type.bg[c]),k.apply(x.O[b+n],g)):k.apply(x,g)}return!1};Zb=k;var x=[],p=-1;e.prototype.Ra=function(){var a,b;if(11===this.type)this.qf=this.b.ko(this.pi,this.Ac.parent);else if(13===this.type)for(a=0,b=this.Jf.length;a<b;a++)this.Jf[a].Ra();
this.yd&&this.yd.Ra()};e.prototype.Iu=function(a){this.Yc||!a||a.Aa.rk||(this.Yc=!0)};e.prototype.Tp=function(){this.Yc=!0};e.prototype.du=function(a){this.ne=a||0;a=w();this.yd.get(a);p--;return a.data};e.prototype.eu=function(a){this.ne=a||0;a=w();this.yd.get(a);p--;return ka(a.data)?a.data:""};e.prototype.ku=function(){return this.object};e.prototype.bu=function(){return this.Tn};e.prototype.iu=function(a){this.ne=a||0;a=w();this.yd.get(a);p--;return a.nb()?this.b.Qt(a.data):this.b.Pt(a.data)};
e.prototype.ju=function(){return this.eb};e.prototype.hu=function(){return this.key};e.prototype.gu=function(){return this.index};e.prototype.fu=function(a){a=a||0;var b=this.Tc.type,c=null,c=b.ba(),e=c.rc();if(e.length)c=e[a%e.length].type;else if(c.da.length)c=c.da[a%c.da.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.cj[b.Td]};e.prototype.cu=function(){return this.qf};e.prototype.au=function(){return this.bo};e.prototype.lu=function(){var a,b;a=0;for(b=
this.Jf.length;a<b;a++)this.oi[a]=this.Jf[a].get();return this.oi};$b=e;b.prototype.Ra=function(){this.Ba=d(this.Ba)};b.prototype.le=function(a){var b=this.b.jo();this.parent&&!this.sh&&b?(this.Ef>=b.length&&(b.length=this.Ef+1),b[this.Ef]=a):this.data=a};b.prototype.uf=function(){var a=this.b.jo();return!this.parent||this.sh||!a||this.yj?this.data:this.Ef>=a.length||"undefined"===typeof a[this.Ef]?this.Pl:a[this.Ef]};b.prototype.Xa=function(){!this.parent||this.sh||this.yj||this.le(this.Pl)};Ub=
b;m.prototype.toString=function(){return"include:"+this.ih.toString()};m.prototype.Ra=function(){this.ih=this.b.ol[this.su];this.sheet.to.add(this);this.Ba=d(this.Ba);for(var a=this.parent;a;)a.group&&a.Ri.push(this),a=a.parent;this.yq()};m.prototype.Xa=function(){this.parent&&this.b.Wh(this.b.B);this.ih.Ml||this.ih.Xa(!0);this.parent&&this.b.Hf(this.b.B)};m.prototype.yq=function(){for(var a=this.parent;a;){if(a.group&&!a.eg){this.zc=!1;return}a=a.parent}this.zc=!0};dc=m;g.prototype.reset=function(a){this.Rb=
a;this.Yb=this.jb=0;S(this.hq);this.ml=this.Af=!1};Tb=g})();
(function(){function f(c,a){this.Tc=c;this.b=c.b;this.type=a[0];this.get=[this.kt,this.gt,this.wt,this.zt,this.Vs,this.xt,this.ot,this.dt,this.nt,this.ut,this.Ws,this.tt,this.et,this.pt,this.lt,this.mt,this.ht,this.it,this.ct,this.yt,this.qt,this.jt,this.bt,this.ft][this.type];var d=null;this.ee=this.V=this.Ma=this.wb=this.wk=this.second=this.first=this.value=null;this.dd=-1;this.fd=null;this.Dq=-1;this.qf=this.pi=null;this.Eg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new bc(c,a[1]);break;case 18:this.first=new bc(c,a[1]);this.second=new bc(c,a[2]);this.wk=new bc(c,a[3]);break;case 19:this.wb=this.b.se(a[1]);this.wb!==X.prototype.Ia.random&&this.wb!==X.prototype.Ia.ls||this.Tc.Tp();this.Ma=[];this.V=[];3===a.length?(d=a[2],this.Ma.length=d.length+1):this.Ma.length=1;break;case 20:this.ee=this.b.B[a[1]];this.dd=-1;this.wb=this.b.se(a[2]);this.Eg=a[3];gc.Function&&this.wb===gc.Function.prototype.Ia.Yv&&this.Tc.Tp();a[4]?this.fd=new bc(c,a[4]):this.fd=null;this.Ma=
[];this.V=[];6===a.length?(d=a[5],this.Ma.length=d.length+1):this.Ma.length=1;break;case 21:this.ee=this.b.B[a[1]];this.Eg=a[2];a[3]?this.fd=new bc(c,a[3]):this.fd=null;this.Dq=a[4];break;case 22:this.ee=this.b.B[a[1]];this.ee.lj(a[2]);this.dd=this.ee.Al(a[2]);this.wb=this.b.se(a[3]);this.Eg=a[4];a[5]?this.fd=new bc(c,a[5]):this.fd=null;this.Ma=[];this.V=[];7===a.length?(d=a[6],this.Ma.length=d.length+1):this.Ma.length=1;break;case 23:this.pi=a[1],this.qf=null}this.Tc.Iu(this.ee);4<=this.type&&17>=
this.type&&(this.first=new bc(c,a[1]),this.second=new bc(c,a[2]));if(d){var f,e;f=0;for(e=d.length;f<e;f++)this.V.push(new bc(c,d[f]))}}function n(){++t;r.length===t&&r.push(new ac);return r[t]}function d(c,a,d){var f,e;f=0;for(e=c.length;f<e;++f)c[f].get(d),a[f+1]=d.data}function q(c,a){this.type=c||ec.Of;this.data=a||0;this.Gf=null;this.type==ec.Of&&(this.data=Math.floor(this.data))}f.prototype.Ra=function(){23===this.type&&(this.qf=this.Tc.b.ko(this.pi,this.Tc.Ac.parent));this.first&&this.first.Ra();
this.second&&this.second.Ra();this.wk&&this.wk.Ra();this.fd&&this.fd.Ra();if(this.V){var c,a;c=0;for(a=this.V.length;c<a;c++)this.V[c].Ra()}};var r=[],t=-1;f.prototype.yt=function(c){var a=this.V,k=this.Ma;k[0]=c;c=n();d(a,k,c);--t;this.wb.apply(this.b.Id,k)};f.prototype.qt=function(c){var a=this.ee,k=this.Ma,f=this.V,e=this.fd,b=this.wb,m=this.Tc.ne,g=a.ba(),q=g.rc();if(!q.length)if(g.da.length)q=g.da;else{this.Eg?c.fb(""):c.xa(0);return}k[0]=c;c.Gf=a;c=n();d(f,k,c);e&&(e.get(c),c.nb()&&(m=c.data,
q=a.i));--t;a=q.length;if(m>=a||m<=-a)m%=a;0>m&&(m+=a);b.apply(q[m],k)};f.prototype.bt=function(c){var a=this.ee,k=this.Ma,f=this.V,e=this.fd,b=this.dd,m=this.wb,g=this.Tc.ne,q=a.ba(),r=q.rc();if(!r.length)if(q.da.length)r=q.da;else{this.Eg?c.fb(""):c.xa(0);return}k[0]=c;c.Gf=a;c=n();d(f,k,c);e&&(e.get(c),c.nb()&&(g=c.data,r=a.i));--t;f=r.length;if(g>=f||g<=-f)g%=f;0>g&&(g+=f);g=r[g];r=0;a.F&&(r=g.type.bg[a.Td]);m.apply(g.O[b+r],k)};f.prototype.jt=function(c){var a=this.fd,d=this.ee,f=this.Dq,e=this.Tc.ne,
b=d.ba(),m=b.rc();if(!m.length)if(b.da.length)m=b.da;else{this.Eg?c.fb(""):c.xa(0);return}if(a){b=n();a.get(b);if(b.nb()){e=b.data;m=d.i;0!==m.length&&(e%=m.length,0>e&&(e+=m.length));e=d.El(e);d=e.bb[f];ka(d)?c.fb(d):c.X(d);--t;return}--t}a=m.length;if(e>=a||e<=-a)e%=a;0>e&&(e+=a);e=m[e];m=0;d.F&&(m=e.type.cj[d.Td]);d=e.bb[f+m];ka(d)?c.fb(d):c.X(d)};f.prototype.kt=function(c){c.type=ec.Of;c.data=this.value};f.prototype.gt=function(c){c.type=ec.Nf;c.data=this.value};f.prototype.wt=function(c){c.type=
ec.String;c.data=this.value};f.prototype.zt=function(c){this.first.get(c);c.nb()&&(c.data=-c.data)};f.prototype.Vs=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data+=a.data,a.lg()&&c.vg());--t};f.prototype.xt=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data-=a.data,a.lg()&&c.vg());--t};f.prototype.ot=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data*=a.data,a.lg()&&c.vg());--t};f.prototype.dt=function(c){this.first.get(c);
var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data/=a.data,c.vg());--t};f.prototype.nt=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data%=a.data,a.lg()&&c.vg());--t};f.prototype.ut=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data=Math.pow(c.data,a.data),a.lg()&&c.vg());--t};f.prototype.Ws=function(c){this.first.get(c);var a=n();this.second.get(a);a.pg()||c.pg()?this.Ys(c,a):this.Xs(c,a);--t};f.prototype.Ys=function(c,a){c.pg()&&
a.pg()?this.$s(c,a):this.Zs(c,a)};f.prototype.$s=function(c,a){c.data+=a.data};f.prototype.Zs=function(c,a){c.pg()?c.data+=(Math.round(1E10*a.data)/1E10).toString():c.fb(c.data.toString()+a.data)};f.prototype.Xs=function(c,a){c.xa(c.data&&a.data?1:0)};f.prototype.tt=function(c){this.first.get(c);var a=n();this.second.get(a);c.nb()&&a.nb()&&(c.data||a.data?c.xa(1):c.xa(0));--t};f.prototype.ct=function(c){this.first.get(c);c.data?this.second.get(c):this.wk.get(c)};f.prototype.et=function(c){this.first.get(c);
var a=n();this.second.get(a);c.xa(c.data===a.data?1:0);--t};f.prototype.pt=function(c){this.first.get(c);var a=n();this.second.get(a);c.xa(c.data!==a.data?1:0);--t};f.prototype.lt=function(c){this.first.get(c);var a=n();this.second.get(a);c.xa(c.data<a.data?1:0);--t};f.prototype.mt=function(c){this.first.get(c);var a=n();this.second.get(a);c.xa(c.data<=a.data?1:0);--t};f.prototype.ht=function(c){this.first.get(c);var a=n();this.second.get(a);c.xa(c.data>a.data?1:0);--t};f.prototype.it=function(c){this.first.get(c);
var a=n();this.second.get(a);c.xa(c.data>=a.data?1:0);--t};f.prototype.ft=function(c){var a=this.qf.uf();ja(a)?c.X(a):c.fb(a)};bc=f;q.prototype.lg=function(){return this.type===ec.Nf};q.prototype.nb=function(){return this.type===ec.Of||this.type===ec.Nf};q.prototype.pg=function(){return this.type===ec.String};q.prototype.vg=function(){this.lg()||(this.pg()&&(this.data=parseFloat(this.data)),this.type=ec.Nf)};q.prototype.xa=function(c){this.type=ec.Of;this.data=Math.floor(c)};q.prototype.X=function(c){this.type=
ec.Nf;this.data=c};q.prototype.fb=function(c){this.type=ec.String;this.data=c};q.prototype.Up=function(c){ja(c)?(this.type=ec.Nf,this.data=c):ka(c)?(this.type=ec.String,this.data=c.toString()):(this.type=ec.Of,this.data=0)};ac=q;ec={Of:0,Nf:1,String:2}})();function X(f){this.b=f;this.mc=[]}
X.prototype.rb=function(){var f={},n,d,q,r,t,c,a,k;f.waits=[];var w=f.waits,e;n=0;for(d=this.mc.length;n<d;n++){c=this.mc[n];e={t:c.time,st:c.aq,s:c.Um,ev:c.$f.aa,sm:[],sols:{}};c.$f.Mc[c.Yb]&&(e.act=c.$f.Mc[c.Yb].aa);q=0;for(r=c.Ba.length;q<r;q++)e.sm.push(c.Ba[q].aa);for(t in c.Ub)if(c.Ub.hasOwnProperty(t)){a=this.b.B[parseInt(t,10)];k={sa:c.Ub[t].mk,insts:[]};q=0;for(r=c.Ub[t].Wd.length;q<r;q++)k.insts.push(c.Ub[t].Wd[q].uid);e.sols[a.aa.toString()]=k}w.push(e)}return f};
X.prototype.Hb=function(f){f=f.waits;var n,d,q,r,t,c,a,k,w,e,b;S(this.mc);n=0;for(d=f.length;n<d;n++)if(c=f[n],k=this.b.Nn[c.ev.toString()]){w=-1;q=0;for(r=k.Mc.length;q<r;q++)if(k.Mc[q].aa===c.act){w=q;break}if(-1!==w){a={Ub:{},Ba:[],kl:!1};a.time=c.t;a.aq=c.st||"";a.Um=!!c.s;a.$f=k;a.Yb=w;q=0;for(r=c.sm.length;q<r;q++)(k=this.b.qj(c.sm[q]))&&a.Ba.push(k);for(t in c.sols)if(c.sols.hasOwnProperty(t)&&(k=this.b.qj(parseInt(t,10)))){w=c.sols[t];e={mk:w.sa,Wd:[]};q=0;for(r=w.insts.length;q<r;q++)(b=
this.b.pj(w.insts[q]))&&e.Wd.push(b);a.Ub[k.index.toString()]=e}this.mc.push(a)}}};
(function(){function f(){}function n(){}function d(){}var q=X.prototype;f.prototype.Uq=function(){return!0};f.prototype.Cn=function(){return!0};f.prototype.Bn=function(){return!0};f.prototype.Tq=function(c){var a=this.b.mj(),d=a.L.Every_lastTime||0,f=this.b.ob.J;"undefined"===typeof a.L.Every_seconds&&(a.L.Every_seconds=c);var e=a.L.Every_seconds;if(f>=d+e)return a.L.Every_lastTime=d+e,f>=a.L.Every_lastTime+.04&&(a.L.Every_lastTime=f),a.L.Every_seconds=c,!0;f<d-.1&&(a.L.Every_lastTime=f);return!1};
f.prototype.sr=function(c){if(!c)return!1;var a=c.ba(),d=a.rc(),f=B(Math.random()*d.length);if(f>=d.length)return!1;a.Cg(d[f]);c.ad();return!0};f.prototype.Nq=function(c,a,d){return fc(c.uf(),a,d)};f.prototype.Zq=function(c){return(c=this.b.fh[c.toLowerCase()])&&c.eg};f.prototype.Sq=function(){var c=this.b.lb();return c.ml?!1:!c.Af};f.prototype.Dn=function(){return!0};f.prototype.kr=function(){return!0};f.prototype.Ok=function(){return!0};f.prototype.pr=function(){return!0};f.prototype.Nk=function(){return!0};
f.prototype.Kq=function(c,a,d){return Ra(W(c),W(d))<=W(a)};f.prototype.Yq=function(c,a){return Xa(W(c),W(a))};f.prototype.Xq=function(c,a,d){c=Pa(c);a=Pa(a);d=Pa(d);return Xa(d,a)?Xa(c,a)&&!Xa(c,d):!(!Xa(c,a)&&Xa(c,d))};q.p=new f;n.prototype.Wq=function(c){this.b.qg||this.b.hf||(this.b.hf=c)};n.prototype.gr=function(c){if(!this.b.qg&&!this.b.hf){var a=this.b.uc.indexOf(this.b.qa);if(!c||0!==a)if(c||a!==this.b.uc.length-1)this.b.hf=this.b.uc[a+(c?-1:1)]}};n.prototype.Ar=function(c,a){c&&c.visible!==
a&&(c.visible=a,this.b.fa=!0)};n.prototype.Dr=function(c,a){0===c.qi?ja(a)?c.le(a):c.le(parseFloat(a)):1===c.qi&&c.le(a.toString())};n.prototype.Jq=function(c,a){0===c.qi?ja(a)?c.le(c.uf()+a):c.le(c.uf()+parseFloat(a)):1===c.qi&&c.le(c.uf()+a.toString())};n.prototype.Lr=function(c,a){0===c.qi&&(ja(a)?c.le(c.uf()-a):c.le(c.uf()-parseFloat(a)))};var r=[],t=[];n.prototype.Nr=function(c){if(!(0>c)){var a,d,f,e=this.b.lb(),b;r.length?b=r.pop():b={Ub:{},Ba:[]};b.kl=!1;b.time=this.b.ob.J+c;b.aq="";b.Um=
!1;b.$f=e.Rb;b.Yb=e.Yb+1;c=0;for(a=this.b.B.length;c<a;c++)f=this.b.B[c],d=f.ba(),d.ra&&-1===e.Rb.Ba.indexOf(f)||(b.Ba.push(f),f=void 0,t.length?f=t.pop():f={Wd:[]},f.mk=!1,f.mk=d.ra,Fa(f.Wd,d.i),b.Ub[c.toString()]=f);this.mc.push(b);return!0}};q.G=new n;d.prototype["int"]=function(c,a){ka(a)?(c.xa(parseInt(a,10)),isNaN(c.data)&&(c.data=0)):c.xa(a)};d.prototype["float"]=function(c,a){ka(a)?(c.X(parseFloat(a)),isNaN(c.data)&&(c.data=0)):c.X(a)};d.prototype.Jv=function(c,a){ka(a)?c.fb(a):c.fb(a.toString())};
d.prototype.random=function(c,a,d){void 0===d?c.X(Math.random()*a):c.X(Math.random()*(d-a)+a)};d.prototype.sqrt=function(c,a){c.X(Math.sqrt(a))};d.prototype.abs=function(c,a){c.X(Math.abs(a))};d.prototype.round=function(c,a){c.xa(Math.round(a))};d.prototype.floor=function(c,a){c.xa(Math.floor(a))};d.prototype.ceil=function(c,a){c.xa(Math.ceil(a))};d.prototype.sin=function(c,a){c.X(Math.sin(W(a)))};d.prototype.cos=function(c,a){c.X(Math.cos(W(a)))};d.prototype.tan=function(c,a){c.X(Math.tan(W(a)))};
d.prototype.asin=function(c,a){c.X(La(Math.asin(a)))};d.prototype.acos=function(c,a){c.X(La(Math.acos(a)))};d.prototype.atan=function(c,a){c.X(La(Math.atan(a)))};d.prototype.exp=function(c,a){c.X(Math.exp(a))};d.prototype.log10=function(c,a){c.X(Math.log(a)/Math.LN10)};d.prototype.max=function(c){var a=arguments[1];"number"!==typeof a&&(a=0);var d,f,e;d=2;for(f=arguments.length;d<f;d++)e=arguments[d],"number"===typeof e&&a<e&&(a=e);c.X(a)};d.prototype.min=function(c){var a=arguments[1];"number"!==
typeof a&&(a=0);var d,f,e;d=2;for(f=arguments.length;d<f;d++)e=arguments[d],"number"===typeof e&&a>e&&(a=e);c.X(a)};d.prototype.nf=function(c){c.X(this.b.nf)};d.prototype.Jg=function(c){c.X(this.b.Jg)};d.prototype.time=function(c){c.X(this.b.ob.J)};d.prototype.Jd=function(c){c.xa(this.b.Jd)};d.prototype.Vj=function(c){c.xa(this.b.Vj)};d.prototype.wl=function(c){c.xa(this.b.wl)};d.prototype.n=function(c,a,d,f,e){c.X(La(Qa(a,d,f,e)))};d.prototype.left=function(c,a,d){c.fb(ka(a)?a.substr(0,d):"")};d.prototype.right=
function(c,a,d){c.fb(ka(a)?a.substr(a.length-d):"")};d.prototype.replace=function(c,a,d,f){ka(a)&&ka(d)&&ka(f)?c.fb(a.replace(new RegExp(hb(d),"gi"),f)):c.fb(ka(a)?a:"")};d.prototype.trim=function(c,a){c.fb(ka(a)?a.trim():"")};d.prototype.ls=function(c){var a=B(Math.random()*(arguments.length-1));c.Up(arguments[a+1])};d.prototype.rv=function(c,a,d,f){c.xa(xa(a,d,f))};d.prototype.el=function(c){c.X(this.b.el/1E3)};d.prototype.Oj=function(c){c.X(this.b.Oj)};q.Ia=new d;q.sv=function(){var c,a,d,f,e,
b,m=this.b.lb();c=0;for(d=this.mc.length;c<d;c++){f=this.mc[c];if(-1===f.time){if(!f.Um)continue}else if(f.time>this.b.ob.J)continue;m.Rb=f.$f;m.Yb=f.Yb;m.jb=0;for(a in f.Ub)f.Ub.hasOwnProperty(a)&&(e=this.b.B[parseInt(a,10)].ba(),b=f.Ub[a],e.ra=b.mk,Fa(e.i,b.Wd),e=b,S(e.Wd),t.push(e));f.$f.pv();this.b.cl(f.Ba);f.kl=!0}a=c=0;for(d=this.mc.length;c<d;c++)f=this.mc[c],this.mc[a]=f,f.kl?(bb(f.Ub),S(f.Ba),r.push(f)):a++;Ea(this.mc,a)}})();
(function(){rb=function(f,d){var q=f[1],r=f[3],t=f[4],c=f[5],a=f[6],k=f[7],w=f[8];d.p||(d.p={});d.G||(d.G={});d.Ia||(d.Ia={});var e=d.p,b=d.G,m=d.Ia;r&&(e.Oq=function(a,b){return fc(this.x,a,b)},e.Pq=function(a,b){return fc(this.y,a,b)},e.gw=function(){var a=this.j;this.Ca();var b=this.Ha;return!(b.right<a.ya||b.bottom<a.za||b.left>a.Ea||b.top>a.Da)},e.hw=function(){this.Ca();var a=this.Ha,b=this.b.qa;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},e.rw=function(a,b,c){var e=this.ba(),
d=e.rc();if(!d.length)return!1;var f=d[0],k=f,m=Za(f.x,f.y,b,c),n,q,r;n=1;for(q=d.length;n<q;n++)if(f=d[n],r=Za(f.x,f.y,b,c),0===a&&r<m||1===a&&r>m)m=r,k=f;e.Cg(k);return!0},b.Fr=function(a){this.x!==a&&(this.x=a,this.Z())},b.Gr=function(a){this.y!==a&&(this.y=a,this.Z())},b.Br=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.Z()},b.Cr=function(a,b){var c=a.St(this);if(c){var e;c.ah?(e=c.ah(b,!0),c=c.ah(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.Z()}},b.kw=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.Z())},b.fr=function(a,b){0!==b&&(this.x+=Math.cos(W(a))*b,this.y+=Math.sin(W(a))*b,this.Z())},m.Qr=function(a){a.X(this.x)},m.Rr=function(a){a.X(this.y)},m.nf=function(a){a.X(this.b.nj(this))});t&&(e.aw=function(a,b){return fc(this.width,a,b)},e.Zv=function(a,b){return fc(this.height,a,b)},b.Er=function(a){this.width!==a&&(this.width=a,this.Z())},b.yr=function(a){this.height!==a&&(this.height=a,this.Z())},b.Dw=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.Z()},m.Hw=function(a){a.X(this.width)},m.cw=function(a){a.X(this.height)},m.Vv=function(a){this.Ca();a.X(this.Ha.left)},m.Xv=function(a){this.Ca();a.X(this.Ha.top)},m.Wv=function(a){this.Ca();a.X(this.Ha.right)},m.Uv=function(a){this.Ca();a.X(this.Ha.bottom)});c&&(e.Kq=function(a,b){return Ra(this.n,W(b))<=W(a)},e.Yq=function(a){return Xa(this.n,W(a))},e.Xq=function(a,b){var c=Pa(a),e=Pa(b),d=Na(this.n);return Xa(e,c)?Xa(d,c)&&
!Xa(d,e):!(!Xa(d,c)&&Xa(d,e))},b.ur=function(a){a=W(Ma(a));isNaN(a)||this.n===a||(this.n=a,this.Z())},b.ww=function(a){0===a||isNaN(a)||(this.n+=W(a),this.n=Na(this.n),this.Z())},b.xw=function(a){0===a||isNaN(a)||(this.n-=W(a),this.n=Na(this.n),this.Z())},b.yw=function(a,b){var c=Sa(this.n,W(b),W(a));isNaN(c)||this.n===c||(this.n=c,this.Z())},b.tr=function(a,b,c){a=Sa(this.n,Math.atan2(c-this.y,b-this.x),W(a));isNaN(a)||this.n===a||(this.n=a,this.Z())},b.Ew=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.Z())},m.Tv=function(a){a.X(Oa(this.n))});q||(e.un=function(a,b,c){return fc(this.bb[a],b,c)},e.ew=function(a){return this.bb[a]},e.sw=function(a,b){var c=this.ba(),e=c.rc();if(!e.length)return!1;var d=e[0],f=d,k=d.bb[b],m,n,r;m=1;for(n=e.length;m<n;m++)if(d=e[m],r=d.bb[b],0===a&&r<k||1===a&&r>k)k=r,f=d;c.Cg(f);return!0},e.qw=function(a){var b,c,e,d,f;if(this.b.mj().tj){f=this.ba();if(f.ra)for(f.ra=!1,S(f.i),S(f.da),e=this.i,b=0,c=e.length;b<c;b++)d=e[b],
d.uid===a?f.da.push(d):f.i.push(d);else{e=b=0;for(c=f.i.length;b<c;b++)d=f.i[b],f.i[e]=d,d.uid===a?f.da.push(d):e++;Ea(f.i,e)}this.ad();return!!f.i.length}d=this.b.pj(a);if(!d)return!1;f=this.ba();if(!f.ra&&-1===f.i.indexOf(d))return!1;if(this.F)for(a=d.type.Ja,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.Cg(d),this.ad(),!0}else if(d.type===this)return f.Cg(d),this.ad(),!0;return!1},e.Lk=function(){return!0},e.yn=function(){return!0},b.En=function(a,b){var c=this.bb;ja(c[a])?c[a]=ja(b)?b:parseFloat(b):
ka(c[a])&&(c[a]=ka(b)?b:b.toString())},b.Sv=function(a,b){var c=this.bb;ja(c[a])?c[a]=ja(b)?c[a]+b:c[a]+parseFloat(b):ka(c[a])&&(c[a]=ka(b)?c[a]+b:c[a]+b.toString())},b.Kr=function(a,b){var c=this.bb;ja(c[a])&&(c[a]=ja(b)?c[a]-b:c[a]-parseFloat(b))},b.zw=function(a,b){this.bb[a]=b?1:0},b.Fw=function(a){this.bb[a]=1-this.bb[a]},b.Rq=function(){this.b.Ze(this)},b.er||(b.er=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.Jj(this,b,!0);this.Ld&&this.Ld();if(this.O)for(a=0,b=this.O.length;a<
b;++a)c=this.O[a],c.Ld&&c.Ld()}),m.bw=function(a){var b=a.Gf.i.length,c,e,d;c=0;for(e=this.b.ed.length;c<e;c++)d=this.b.ed[c],a.Gf.F?0<=d.type.Ja.indexOf(a.Gf)&&b++:d.type===a.Gf&&b++;a.xa(b)},m.vw=function(a){a.xa(a.Gf.ba().rc().length)},m.Gw=function(a){a.xa(this.uid)},m.dw=function(a){a.xa(this.dh())},m.tn||(m.tn=function(a){a.fb(JSON.stringify(this.b.Nm(this,!0)))}));a&&(e.cr=function(){return this.visible},b.Og=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.fa=!0)},e.$v=function(a,
b){return fc(nb(100*this.opacity),a,b)},b.Cw=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.fa=!0)},m.Opacity=function(a){a.X(nb(100*this.opacity))});k&&(e.fw=function(a){return a?this.j===a:!1},e.uw=function(a){var b=this.ba(),c=b.rc();if(!c.length)return!1;var e=c[0],d=e,f,k;f=1;for(k=c.length;f<k;f++)if(e=c[f],0===a){if(e.j.index>d.j.index||e.j.index===d.j.index&&e.zd()>d.zd())d=e}else if(e.j.index<d.j.index||e.j.index===d.j.index&&e.zd()<d.zd())d=e;b.Cg(d);return!0},
b.nw=function(){var a=this.j,b=a.i;b.length&&b[b.length-1]===this||(a.Dg(this,!1),a.Rg(this,!1),this.b.fa=!0)},b.lw=function(){var a=this.j,b=a.i;b.length&&b[0]===this||(a.Dg(this,!1),a.av(this),this.b.fa=!0)},b.mw=function(a){a&&a!=this.j&&(this.j.Dg(this,!0),this.j=a,a.Rg(this,!0),this.b.fa=!0)},b.Jw=function(a,b){var c=0===a;if(b){var e=b.Lt(this);e&&e.uid!==this.uid&&(this.j.index!==e.j.index&&(this.j.Dg(this,!0),this.j=e.j,e.j.Rg(this,!0)),this.j.Ku(this,e,c),this.b.fa=!0)}},m.jw=function(a){a.xa(this.j.mp)},
m.iw=function(a){a.fb(this.j.name)},m.Iw=function(a){a.xa(this.zd())});w&&(b.Aw=function(a,b){if(this.b.u){var c=this.type.Dl(b);if(!(0>c)){var e=1===a;this.te[c]!==e&&(this.te[c]=e,this.ud(),this.b.fa=!0)}}},b.Bw=function(a,b,c){if(this.b.u){var e=this.type.Dl(a);0>e||(a=this.type.P[e],e=this.La[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.u.Wt(a.Ya,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.zc&&(this.b.fa=!0))))}})};Lb=function(){this.$k=this.Uk=!0;this.type.Ci=!0;this.b.fa=!0;var f,d,q=this.Vk;f=0;for(d=
q.length;f<d;++f)q[f](this);this.j.Lc&&this.Ca()};Mb=function(f){f&&this.Vk.push(f)};Ob=function(){if(this.Uk){var f=this.Ha,d=this.Pb;f.set(this.x,this.y,this.x+this.width,this.y+this.height);f.offset(-this.cc*this.width,-this.ec*this.height);this.n?(f.offset(-this.x,-this.y),d.Wp(f,this.n),d.offset(this.x,this.y),d.On(f)):d.ci(f);f.normalize();this.Uk=!1;this.Mv()}};var f=new va(0,0,0,0);Pb=function(){if(this.j.Lc){var n=this.j.zb,d=this.Ha;f.set(n.Wb(d.left),n.Xb(d.top),n.Wb(d.right),n.Xb(d.bottom));
this.hc.Yg(f)||(this.hc.right<this.hc.left?n.update(this,null,f):n.update(this,this.hc,f),this.hc.Xf(f),this.j.qd=!0)}};Qb=function(){if(this.$k&&this.Nd){this.Ca();var n=this.type.Qi,d=this.Ha;f.set(n.Wb(d.left),n.Xb(d.top),n.Wb(d.right),n.Xb(d.bottom));this.ye.Yg(f)||(this.ye.right<this.ye.left?n.update(this,null,f):n.update(this,this.ye,f),this.ye.Xf(f),this.$k=!1)}};Nb=function(f,d){return this.Ha.oc(f,d)&&this.Pb.oc(f,d)?this.ma&&!this.ma.kg()?(this.ma.gf(this.width,this.height,this.n),this.ma.oc(f-
this.x,d-this.y)):!0:!1};Hb=function(){this.type.Ek();return this.wf};Rb=function(){this.j.ln();return this.vd};Sb=function(){S(this.ga);var f,d,q,r=!0;f=0;for(d=this.te.length;f<d;f++)this.te[f]&&(q=this.type.P[f],this.ga.push(q),q.nd||(r=!1));this.Cq=!!this.ga.length;this.me=r};Ib=function(){return"Inst"+this.Hp};vb=function(f){if(f&&f.sc&&f.type!=this){var d,q,r;d=0;for(q=f.siblings.length;d<q;d++)if(r=f.siblings[d],r.type==this)return r}f=this.ba().rc();return f.length?f[0]:null};wb=function(f){var d=
this.ba().rc();return d.length?d[f.dh()%d.length]:null};tb=function(){if(this.Ig&&!this.F){var f,d;f=0;for(d=this.i.length;f<d;f++)this.i[f].wf=f;var q=f,r=this.b.ed;f=0;for(d=r.length;f<d;++f)r[f].type===this&&(r[f].wf=q++);this.Ig=!1}};Fb=function(f){if(f<this.i.length)return this.i[f];f-=this.i.length;var d=this.b.ed,q,r;q=0;for(r=d.length;q<r;++q)if(d[q].type===this){if(0===f)return d[q];--f}return null};xb=function(){return this.Te[this.Pd]};yb=function(){this.Pd++;this.Pd===this.Te.length?this.Te.push(new sb(this)):
this.Te[this.Pd].ra=!0};zb=function(){this.Pd++;this.Pd===this.Te.length&&this.Te.push(new sb(this));var f=this.Te[this.Pd],d=this.Te[this.Pd-1];d.ra?f.ra=!0:(f.ra=!1,Fa(f.i,d.i),Fa(f.da,d.da))};Ab=function(){this.Pd--};Bb=function(f){var d,q,r,t,c,a=0;if(!this.F)for(d=0,q=this.Ja.length;d<q;d++)for(c=this.Ja[d],r=0,t=c.Sa.length;r<t;r++){if(f===c.Sa[r].name)return this.L.lastBehIndex=a,c.Sa[r];a++}d=0;for(q=this.Sa.length;d<q;d++){if(f===this.Sa[d].name)return this.L.lastBehIndex=a,this.Sa[d];a++}return null};
Cb=function(f){return this.lj(f)?this.L.lastBehIndex:-1};Db=function(f){var d,q;d=0;for(q=this.P.length;d<q;d++)if(this.P[d].name===f)return d;return-1};Eb=function(){if(this.sc&&!this.F){var f,d,q,r,t,c,a;this.Ek();c=this.ba();var k=c.ra,w=(f=this.b.lb())&&f.Rb&&f.Rb.Sc;f=0;for(d=this.nc.length;f<d;f++)if(t=this.nc[f],t!==this&&(t.Ek(),a=t.ba(),a.ra=k,!k)){S(a.i);q=0;for(r=c.i.length;q<r;++q)a.i[q]=t.El(c.i[q].wf);if(w)for(S(a.da),q=0,r=c.da.length;q<r;++q)a.da[q]=t.El(c.da[q].wf)}}};Gb=function(){return"Type"+
this.aa};fc=function(f,d,q){if("undefined"===typeof f||"undefined"===typeof q)return!1;switch(d){case 0:return f===q;case 1:return f!==q;case 2:return f<q;case 3:return f<=q;case 4:return f>q;case 5:return f>=q;default:return!1}}})();var oc={};function qc(f){this.b=f}
(function(){function f(a){0>a&&(a=0);1<a&&(a=1);return Math.log(a)/Math.log(10)*20}function n(a){a=a.toLowerCase();return Z.hasOwnProperty(a)&&Z[a].length?Z[a][0].Dc():v.destination}function d(){return v.createGain?v.createGain():v.createGainNode()}function q(a){return v.createDelay?v.createDelay(a):v.createDelayNode(a)}function r(a){a.start?a.start(0):a.noteOn(0)}function t(a,b,c){a.start?a.start(0,b):a.noteGrainOn(0,b,c-b)}function c(a){try{a.stop?a.stop(0):a.noteOff(0)}catch(b){}}function a(a,
b,c,e,f,h){this.type="filter";this.md=[a,b,c,e,f,h];this.ca=d();this.N=d();this.N.gain.value=h;this.K=d();this.K.gain.value=1-h;this.Ta=v.createBiquadFilter();this.Ta.type="number"===typeof this.Ta.type?a:Cc[a];this.Ta.frequency.value=b;this.Ta.detune&&(this.Ta.detune.value=c);this.Ta.Q.value=e;this.Ta.gain.value=f;this.ca.connect(this.Ta);this.ca.connect(this.K);this.Ta.connect(this.N)}function k(a,b,c){this.type="delay";this.md=[a,b,c];this.ca=d();this.N=d();this.N.gain.value=c;this.K=d();this.K.gain.value=
1-c;this.Nh=d();this.Qc=q(a);this.Qc.delayTime.value=a;this.Zi=d();this.Zi.gain.value=b;this.ca.connect(this.Nh);this.ca.connect(this.K);this.Nh.connect(this.N);this.Nh.connect(this.Qc);this.Qc.connect(this.Zi);this.Zi.connect(this.Nh)}function w(a,b,c,e){this.type="convolve";this.md=[b,c,e];this.ca=d();this.N=d();this.N.gain.value=c;this.K=d();this.K.gain.value=1-c;this.jf=v.createConvolver();a&&(this.jf.normalize=b,this.jf.buffer=a);this.ca.connect(this.jf);this.ca.connect(this.K);this.jf.connect(this.N)}
function e(a,b,c,e,h){this.type="flanger";this.md=[a,b,c,e,h];this.ca=d();this.K=d();this.K.gain.value=1-h/2;this.N=d();this.N.gain.value=h/2;this.dj=d();this.dj.gain.value=e;this.Qc=q(a+b);this.Qc.delayTime.value=a;this.qb=v.createOscillator();this.qb.frequency.value=c;this.wc=d();this.wc.gain.value=b;this.ca.connect(this.Qc);this.ca.connect(this.K);this.Qc.connect(this.N);this.Qc.connect(this.dj);this.dj.connect(this.Qc);this.qb.connect(this.wc);this.wc.connect(this.Qc.delayTime);r(this.qb)}function b(a,
b,c,e,h,f){this.type="phaser";this.md=[a,b,c,e,h,f];this.ca=d();this.K=d();this.K.gain.value=1-f/2;this.N=d();this.N.gain.value=f/2;this.Ta=v.createBiquadFilter();this.Ta.type="number"===typeof this.Ta.type?7:"allpass";this.Ta.frequency.value=a;this.Ta.detune&&(this.Ta.detune.value=b);this.Ta.Q.value=c;this.qb=v.createOscillator();this.qb.frequency.value=h;this.wc=d();this.wc.gain.value=e;this.ca.connect(this.Ta);this.ca.connect(this.K);this.Ta.connect(this.N);this.qb.connect(this.wc);this.wc.connect(this.Ta.frequency);
r(this.qb)}function m(a){this.type="gain";this.md=[a];this.ea=d();this.ea.gain.value=a}function g(a,b){this.type="tremolo";this.md=[a,b];this.ea=d();this.ea.gain.value=1-b/2;this.qb=v.createOscillator();this.qb.frequency.value=a;this.wc=d();this.wc.gain.value=b/2;this.qb.connect(this.wc);this.wc.connect(this.ea.gain);r(this.qb)}function O(a,b){this.type="ringmod";this.md=[a,b];this.ca=d();this.N=d();this.N.gain.value=b;this.K=d();this.K.gain.value=1-b;this.$h=d();this.$h.gain.value=0;this.qb=v.createOscillator();
this.qb.frequency.value=a;this.qb.connect(this.$h.gain);r(this.qb);this.ca.connect(this.$h);this.ca.connect(this.K);this.$h.connect(this.N)}function x(a,b,c,e,h){this.type="distortion";this.md=[a,b,c,e,h];this.ca=d();this.bk=d();this.ak=d();this.zv(c,Math.pow(10,e/20));this.N=d();this.N.gain.value=h;this.K=d();this.K.gain.value=1-h;this.Ik=v.createWaveShaper();this.Xi=new Float32Array(65536);this.Gt(a,b);this.Ik.Xi=this.Xi;this.ca.connect(this.bk);this.ca.connect(this.K);this.bk.connect(this.Ik);
this.Ik.connect(this.ak);this.ak.connect(this.N)}function p(a,b,c,e,d){this.type="compressor";this.md=[a,b,c,e,d];this.ea=v.createDynamicsCompressor();try{this.ea.threshold.value=a,this.ea.knee.value=b,this.ea.ratio.value=c,this.ea.attack.value=e,this.ea.release.value=d}catch(h){}}function h(a,b){this.type="analyser";this.md=[a,b];this.ea=v.createAnalyser();this.ea.fftSize=a;this.ea.smoothingTimeConstant=b;this.Et=new Float32Array(this.ea.frequencyBinCount);this.Zp=new Uint8Array(a);this.Sh=0}function l(){this.M=
null;this.Nj=0;this.Ue=[];this.pm=this.Cj=this.Bj=0}function D(a,b){this.src=a;this.W=K;this.kd=b;this.Bi=!1;var c=this;this.om=this.Am=null;this.Bg=[];this.nk=0;this.qn=this.rl=this.gq=this.Xj=!1;1===K&&b&&(this.W=0,this.Am=d());this.cf=this.la=null;var e;switch(this.W){case 0:this.la=new Audio;this.la.crossOrigin="anonymous";this.la.addEventListener("canplaythrough",function(){c.qn=!0});1===K&&v.createMediaElementSource&&!/wiiu/i.test(navigator.userAgent)&&(this.gq=!0,this.la.addEventListener("canplay",
function(){c.om||(c.om=v.createMediaElementSource(c.la),c.om.connect(c.Am))}));this.la.autoplay=!1;this.la.Ow="auto";this.la.src=a;break;case 1:e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=function(){c.cf=e.response;c.rs()};e.onerror=function(){c.rl=!0};e.send();break;case 2:this.la=!0;break;case 3:this.la=!0}}function u(a,b){var c=this;this.tag=b;this.yc=this.Vd=!0;this.src=a.src;this.buffer=a;this.W=K;this.kd=a.kd;this.playbackRate=1;this.gg=!0;this.tc=this.Jc=!1;
this.ic=0;this.rh=this.mg=this.Bd=!1;this.volume=1;this.ym=function(a){if(!c.tc&&!c.Jc){var b=this;b||(b=a.target);b===c.Ai&&(c.gg=!0,c.yc=!0,U=c.tag,M.trigger(qc.prototype.p.xi,C))}};this.Ai=null;this.ig=1===P&&!this.kd||2===P;this.xg=1;this.startTime=this.ig?M.ob.J:M.qe.J;this.Qa=this.ab=null;this.Ed=!1;this.Pa=null;this.wp=this.vp=this.up=this.tp=this.yp=this.xp=0;this.k=null;var e=!1;1!==this.W||0!==this.buffer.W||this.buffer.gq||(this.W=0);switch(this.W){case 0:this.kd?(this.k=a.la,e=!a.Bi,a.Bi=
!0):(this.k=new Audio,this.k.crossOrigin="anonymous",this.k.autoplay=!1,this.k.src=a.la.src,e=!0);e&&this.k.addEventListener("ended",function(){U=c.tag;c.yc=!0;M.trigger(qc.prototype.p.xi,C)});break;case 1:this.ab=d();this.ab.connect(n(b));1===this.buffer.W?a.la&&(this.k=v.createBufferSource(),this.k.buffer=a.la,this.k.connect(this.ab)):(this.k=this.buffer.la,this.buffer.Am.connect(this.ab),this.buffer.Bi||(this.buffer.Bi=!0,this.buffer.la.addEventListener("ended",function(){U=c.tag;c.yc=!0;M.trigger(qc.prototype.p.xi,
C)})));break;case 2:this.k=new window.Media(V+this.src,null,null,function(a){a===window.Media.MEDIA_STOPPED&&(c.gg=!0,c.yc=!0,U=c.tag,M.trigger(qc.prototype.p.xi,C))});break;case 3:this.k=!0}}function z(a){S(Ba);if(a.length){var b,c,e;b=0;for(c=E.length;b<c;b++)e=E[b],ob(a,e.tag)&&Ba.push(e)}else J&&!J.fg()&&(S(Ba),Ba[0]=J)}function F(a,b){Z.hasOwnProperty(a)?Z[a].push(b):Z[a]=[b];var c,e,d,h,f=v.destination;if(Z.hasOwnProperty(a)&&(d=Z[a],d.length))for(f=d[0].Dc(),c=0,e=d.length;c<e;c++)h=d[c],c+
1===e?h.Nc(v.destination):h.Nc(d[c+1].Dc());z(a);c=0;for(e=Ba.length;c<e;c++)Ba[c].kv(f);Ha&&ub===a&&(Ha.disconnect(),Ha.connect(f))}function L(){}function y(){}var R=qc.prototype;R.Ga=function(a){this.Aa=a;this.b=a.b};R.Ga.prototype.Y=function(){};var M=null,C=null,U="",V="",K=0,v=null,A=[],E=[],J=null,G=!1,P=0,I=!1,H=1,N=0,fa=0,Q=1,T=1,da=10,ra=1E4,ga=1,Ha=null,ub="",Ta=!1,Ua=[],Z={},Cc="lowpass highpass bandpass lowshelf highshelf peaking notch allpass".split(" ");a.prototype.Nc=function(a){this.N.disconnect();
this.N.connect(a);this.K.disconnect();this.K.connect(a)};a.prototype.remove=function(){this.ca.disconnect();this.Ta.disconnect();this.N.disconnect();this.K.disconnect()};a.prototype.Dc=function(){return this.ca};k.prototype.Nc=function(a){this.N.disconnect();this.N.connect(a);this.K.disconnect();this.K.connect(a)};k.prototype.remove=function(){this.ca.disconnect();this.Nh.disconnect();this.Qc.disconnect();this.Zi.disconnect();this.N.disconnect();this.K.disconnect()};k.prototype.Dc=function(){return this.ca};
w.prototype.Nc=function(a){this.N.disconnect();this.N.connect(a);this.K.disconnect();this.K.connect(a)};w.prototype.remove=function(){this.ca.disconnect();this.jf.disconnect();this.N.disconnect();this.K.disconnect()};w.prototype.Dc=function(){return this.ca};e.prototype.Nc=function(a){this.K.disconnect();this.K.connect(a);this.N.disconnect();this.N.connect(a)};e.prototype.remove=function(){this.ca.disconnect();this.Qc.disconnect();this.qb.disconnect();this.wc.disconnect();this.K.disconnect();this.N.disconnect();
this.dj.disconnect()};e.prototype.Dc=function(){return this.ca};b.prototype.Nc=function(a){this.K.disconnect();this.K.connect(a);this.N.disconnect();this.N.connect(a)};b.prototype.remove=function(){this.ca.disconnect();this.Ta.disconnect();this.qb.disconnect();this.wc.disconnect();this.K.disconnect();this.N.disconnect()};b.prototype.Dc=function(){return this.ca};m.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};m.prototype.remove=function(){this.ea.disconnect()};m.prototype.Dc=function(){return this.ea};
g.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};g.prototype.remove=function(){this.qb.disconnect();this.wc.disconnect();this.ea.disconnect()};g.prototype.Dc=function(){return this.ea};O.prototype.Nc=function(a){this.N.disconnect();this.N.connect(a);this.K.disconnect();this.K.connect(a)};O.prototype.remove=function(){this.qb.disconnect();this.$h.disconnect();this.ca.disconnect();this.N.disconnect();this.K.disconnect()};O.prototype.Dc=function(){return this.ca};x.prototype.zv=function(a,
b){.01>a&&(a=.01);this.bk.gain.value=a;this.ak.gain.value=Math.pow(1/a,.6)*b};x.prototype.shape=function(a,b,c){var e=1.05*c*b-b;c=0>a?-1:1;a=0>a?-a:a;b=a<b?a:b+e*(1-Math.exp(-(1/e)*(a-b)));return b*c};x.prototype.Gt=function(a,b){for(var c=Math.pow(10,a/20),e=Math.pow(10,b/20),d=0,h=0;32768>h;++h)d=h/32768,d=this.shape(d,c,e),this.Xi[32768+h]=d,this.Xi[32768-h-1]=-d};x.prototype.Nc=function(a){this.N.disconnect();this.N.connect(a);this.K.disconnect();this.K.connect(a)};x.prototype.remove=function(){this.ca.disconnect();
this.bk.disconnect();this.Ik.disconnect();this.ak.disconnect();this.N.disconnect();this.K.disconnect()};x.prototype.Dc=function(){return this.ca};p.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};p.prototype.remove=function(){this.ea.disconnect()};p.prototype.Dc=function(){return this.ea};h.prototype.Za=function(){this.ea.getFloatFrequencyData(this.Et);this.ea.getByteTimeDomainData(this.Zp);for(var a=this.ea.fftSize,b=0,c=this.Sh=0,e=0;b<a;b++)e=(this.Zp[b]-128)/128,0>e&&(e=-e),
this.Sh<e&&(this.Sh=e),c+=e*e;this.Sh=f(this.Sh);f(Math.sqrt(c/a))};h.prototype.Nc=function(a){this.ea.disconnect();this.ea.connect(a)};h.prototype.remove=function(){this.ea.disconnect()};h.prototype.Dc=function(){return this.ea};l.prototype.ai=function(a){if(this.M=a)this.Bj=this.M.x,this.Cj=this.M.y;S(this.Ue)};l.prototype.sj=function(){return!!this.M};l.prototype.Za=function(a){this.M&&0!==a&&(this.pm=Qa(this.Bj,this.Cj,this.M.x,this.M.y),a=Za(this.Bj,this.Cj,this.M.x,this.M.y)/a,4>this.Ue.length||
this.Ue.shift(),this.Ue.push(a),this.Bj=this.M.x,this.Cj=this.M.y)};l.prototype.no=function(){if(!this.Ue.length)return 0;var a,b,c=0;a=0;for(b=this.Ue.length;a<b;a++)c+=this.Ue[a];return c/this.Ue.length};l.prototype.Il=function(){return Math.cos(this.pm)*this.no()};l.prototype.Jl=function(){return Math.sin(this.pm)*this.no()};var xc=!1;D.prototype.rs=function(){if(!this.la&&this.cf){var a=this;if(v.decodeAudioData)v.decodeAudioData(this.cf,function(b){a.la=b;a.cf=null;var c,e,d;if(ia(a.Yj)||I)ia(a.Si)||
(c=a.Si.jf,c.normalize=a.lp,c.buffer=b);else if(a.Bg.length){c=0;for(e=a.Bg.length;c<e;c++){b=a.Bg[c];d=new u(a,b.lq);d.Rm(!0);if("undefined"!==typeof b.np&&(b.M=M.pj(b.np),!b.M))continue;if(b.M){var h=Ya(b.M.x,b.M.y,-b.M.j.Oa(),N,fa,!0),f=Ya(b.M.x,b.M.y,-b.M.j.Oa(),N,fa,!1);d.Qm(h,f,La(b.M.n-b.M.j.Oa()),b.Nl,b.um,b.wm);d.ai(b.M)}else d.Qm(b.x,b.y,b.Tr,b.Nl,b.um,b.wm);d.play(a.km,a.nn,a.nk);a.Xj&&d.pause();E.push(d)}S(a.Bg)}else d=new u(a,a.Yj||""),d.play(a.km,a.nn,a.nk),a.Xj&&d.pause(),E.push(d)},
function(){a.rl=!0});else if(this.la=v.createBuffer(this.cf,!1),this.cf=null,ia(this.Yj)||I)ia(this.Si)||(b=this.Si.jf,b.normalize=this.lp,b.buffer=this.la);else{var b=new u(this,this.Yj);b.play(this.km,this.nn,this.nk);this.Xj&&b.pause();E.push(b)}}};D.prototype.Ao=function(){switch(this.W){case 0:var a=4<=this.la.readyState;a&&(this.qn=!0);return a||this.qn;case 1:return!!this.cf||!!this.la;case 2:return!0;case 3:return!0}return!1};D.prototype.Au=function(){switch(this.W){case 0:return this.Ao();
case 1:return!!this.la;case 2:return!0;case 3:return!0}return!1};D.prototype.ru=function(){switch(this.W){case 0:return!!this.la.error;case 1:return this.rl}return!1};u.prototype.fg=function(){switch(this.W){case 0:return this.k.ended;case 1:return 1===this.buffer.W?!this.Vd&&!this.yc&&this.k.loop||this.tc?!1:this.gg:this.k.ended;case 2:return this.gg;case 3:!0}return!0};u.prototype.hs=function(){return this.Vd||this.yc?!0:this.fg()};u.prototype.Rm=function(a){1===K&&(!this.Ed&&a?this.ab&&(this.Qa||
(this.Qa=v.createPanner(),this.Qa.panningModel="number"===typeof this.Qa.panningModel?Q:["equalpower","HRTF","soundfield"][Q],this.Qa.distanceModel="number"===typeof this.Qa.distanceModel?T:["linear","inverse","exponential"][T],this.Qa.refDistance=da,this.Qa.maxDistance=ra,this.Qa.rolloffFactor=ga),this.ab.disconnect(),this.ab.connect(this.Qa),this.Qa.connect(n(this.tag)),this.Ed=!0):this.Ed&&!a&&this.ab&&(this.Qa.disconnect(),this.ab.disconnect(),this.ab.connect(n(this.tag)),this.Ed=!1))};u.prototype.Qm=
function(a,b,c,e,d,h){this.Ed&&1===K&&(this.Qa.setPosition(a,b,0),this.Qa.setOrientation(Math.cos(W(c)),Math.sin(W(c)),0),this.Qa.coneInnerAngle=e,this.Qa.coneOuterAngle=d,this.Qa.coneOuterGain=h,this.xp=a,this.yp=b,this.tp=c,this.up=e,this.vp=d,this.wp=h)};u.prototype.ai=function(a){this.Ed&&1===K&&(this.Pa||(this.Pa=new l),this.Pa.ai(a))};u.prototype.Za=function(a){if(this.Ed&&1===K&&this.Pa&&this.Pa.sj()&&this.hg()){this.Pa.Za(a);a=this.Pa.M;var b=Ya(a.x,a.y,-a.j.Oa(),N,fa,!0),c=Ya(a.x,a.y,-a.j.Oa(),
N,fa,!1);this.Qa.setPosition(b,c,0);b=0;"undefined"!==typeof this.Pa.M.n&&(b=a.n-a.j.Oa(),this.Qa.setOrientation(Math.cos(b),Math.sin(b),0));b=Ya(this.Pa.Il(),this.Pa.Jl(),-a.j.Oa(),0,0,!0);c=Ya(this.Pa.Il(),this.Pa.Jl(),-a.j.Oa(),0,0,!1);this.Qa.setVelocity(b,c,0)}};u.prototype.play=function(a,b,c){var e=this.k;this.Bd=a;this.volume=b;c=c||0;switch(this.W){case 0:1!==e.playbackRate&&(e.playbackRate=1);e.volume!==b*H&&(e.volume=b*H);e.loop!==a&&(e.loop=a);e.muted&&(e.muted=!1);if(e.currentTime!==
c)try{e.currentTime=c}catch(d){}if(this.kd&&Ta&&!M.Ad)Ua.push(this);else try{this.k.play()}catch(h){console&&console.log&&console.log("[C2] WARNING: exception trying to play audio '"+this.buffer.src+"': ",h)}break;case 1:this.muted=!1;this.xg=1;if(1===this.buffer.W)this.ab.gain.value=b*H,this.Vd||(this.k=v.createBufferSource(),this.k.buffer=this.buffer.la,this.k.connect(this.ab)),this.k.onended=this.ym,this.Ai=this.k,this.k.loop=a,this.gg=!1,0===c?r(this.k):t(this.k,c,this.tf());else{1!==e.playbackRate&&
(e.playbackRate=1);e.loop!==a&&(e.loop=a);e.volume=b*H;if(e.currentTime!==c)try{e.currentTime=c}catch(f){}this.kd&&Ta&&!M.Ad?Ua.push(this):e.play()}break;case 2:(!this.Vd&&this.yc||0!==c)&&e.seekTo(c);e.play();this.gg=!1;break;case 3:M.fc?AppMobi.context.playSound(this.src,a):AppMobi.player.playSound(this.src,a)}this.playbackRate=1;this.startTime=(this.ig?M.ob.J:M.qe.J)-c;this.tc=this.yc=this.Vd=!1};u.prototype.stop=function(){switch(this.W){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.W?
c(this.k):this.k.paused||this.k.pause();break;case 2:this.k.stop();break;case 3:M.fc&&AppMobi.context.stopSound(this.src)}this.yc=!0;this.tc=!1};u.prototype.pause=function(){if(!(this.Vd||this.yc||this.fg()||this.tc)){switch(this.W){case 0:this.k.paused||this.k.pause();break;case 1:1===this.buffer.W?(this.ic=this.Fl(!0),this.Bd&&(this.ic=this.ic%this.tf()),this.tc=!0,c(this.k)):this.k.paused||this.k.pause();break;case 2:this.k.pause();break;case 3:M.fc&&AppMobi.context.stopSound(this.src)}this.tc=
!0}};u.prototype.ov=function(){if(!(this.Vd||this.yc||this.fg())&&this.tc){switch(this.W){case 0:this.k.play();break;case 1:1===this.buffer.W?(this.k=v.createBufferSource(),this.k.buffer=this.buffer.la,this.k.connect(this.ab),this.k.onended=this.ym,this.Ai=this.k,this.k.loop=this.Bd,this.ab.gain.value=H*this.volume*this.xg,this.Fk(),this.startTime=(this.ig?M.ob.J:M.qe.J)-this.ic/(this.playbackRate||.001),t(this.k,this.ic,this.tf())):this.k.play();break;case 2:this.k.play();break;case 3:M.fc&&AppMobi.context.resumeSound(this.src)}this.tc=
!1}};u.prototype.seek=function(a){if(!(this.Vd||this.yc||this.fg()))switch(this.W){case 0:try{this.k.currentTime=a}catch(b){}break;case 1:if(1===this.buffer.W)this.tc?this.ic=a:(this.pause(),this.ic=a,this.ov());else try{this.k.currentTime=a}catch(c){}break;case 3:M.fc&&AppMobi.context.seekSound(this.src,a)}};u.prototype.kv=function(a){1===this.W&&(this.Ed?(this.Qa.disconnect(),this.Qa.connect(a)):(this.ab.disconnect(),this.ab.connect(a)))};u.prototype.tf=function(){var a=0;switch(this.W){case 0:"undefined"!==
typeof this.k.duration&&(a=this.k.duration);break;case 1:a=this.buffer.la.duration;break;case 2:a=this.k.getDuration();break;case 3:M.fc&&(a=AppMobi.context.getDurationSound(this.src))}return a};u.prototype.Fl=function(a){var b=this.tf(),c=0;switch(this.W){case 0:"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;case 1:if(1===this.buffer.W){if(this.tc)return this.ic;c=(this.ig?M.ob.J:M.qe.J)-this.startTime}else"undefined"!==typeof this.k.currentTime&&(c=this.k.currentTime);break;
case 3:M.fc&&(c=AppMobi.context.getPlaybackTimeSound(this.src))}a&&(c*=this.playbackRate);!this.Bd&&c>b&&(c=b);return c};u.prototype.hg=function(){return!this.tc&&!this.Vd&&!this.yc&&!this.fg()};u.prototype.Kv=function(){var a=this.volume*H;isFinite(a)||(a=0);switch(this.W){case 0:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a);break;case 1:1===this.buffer.W?this.ab.gain.value=a*this.xg:"undefined"!==typeof this.k.volume&&this.k.volume!==a&&(this.k.volume=a)}};u.prototype.aj=
function(a){switch(this.W){case 0:this.k.muted!==!!a&&(this.k.muted=!!a);break;case 1:1===this.buffer.W?(this.xg=a?0:1,this.ab.gain.value=H*this.volume*this.xg):this.k.muted!==!!a&&(this.k.muted=!!a)}};u.prototype.Bv=function(){this.mg=!0;this.aj(this.mg||this.rh)};u.prototype.Rp=function(a){this.rh=!!a;this.aj(this.mg||this.rh)};u.prototype.Fk=function(){var a=this.playbackRate;this.ig&&(a*=M.Jg);switch(this.W){case 0:this.k.playbackRate!==a&&(this.k.playbackRate=a);break;case 1:1===this.buffer.W?
this.k.playbackRate.value!==a&&(this.k.playbackRate.value=a):this.k.playbackRate!==a&&(this.k.playbackRate=a)}};u.prototype.Dv=function(a){switch(this.W){case 0:a?this.hg()?(this.Jc=!0,this.k.pause()):this.Jc=!1:this.Jc&&(this.k.play(),this.Jc=!1);break;case 1:a?this.hg()?(this.Jc=!0,1===this.buffer.W?(this.ic=this.Fl(!0),this.Bd&&(this.ic=this.ic%this.tf()),c(this.k)):this.k.pause()):this.Jc=!1:this.Jc&&(1===this.buffer.W?(this.k=v.createBufferSource(),this.k.buffer=this.buffer.la,this.k.connect(this.ab),
this.k.onended=this.ym,this.Ai=this.k,this.k.loop=this.Bd,this.ab.gain.value=H*this.volume*this.xg,this.Fk(),this.startTime=(this.ig?M.ob.J:M.qe.J)-this.ic/(this.playbackRate||.001),t(this.k,this.ic,this.tf())):this.k.play(),this.Jc=!1);break;case 2:a?this.hg()?(this.k.pause(),this.Jc=!0):this.Jc=!1:this.Jc&&(this.Jc=!1,this.k.play())}};R.ta=function(a){this.type=a;M=this.b=a.b;C=this;this.Tb=null;this.Fh=-600;!(this.b.Aj||this.b.uj&&(this.b.lh||this.b.vj))||this.b.mh||this.b.pa||this.b.Tl||(Ta=!0);
v=null;"undefined"!==typeof AudioContext?(K=1,v=new AudioContext):"undefined"!==typeof webkitAudioContext&&(K=1,v=new webkitAudioContext);Ta&&document.addEventListener("touchend",function(){if(!xc&&v){var a=v.createBuffer(1,1,22050),b=v.createBufferSource();b.buffer=a;b.connect(v.destination);r(b);xc=!0}var c;if(Ta){if(!I)for(a=0,b=Ua.length;a<b;++a)c=Ua[a],c.yc||c.tc||c.k.play();S(Ua)}},!0);1!==K&&(this.b.Xd&&"undefined"!==typeof window.Media?K=2:this.b.zo&&(K=3));2===K&&(V=location.href,a=V.lastIndexOf("/"),
-1<a&&(V=V.substr(0,a+1)),V=V.replace("file://",""));if(this.b.Bo&&this.b.Bu&&"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.Ze(this);else{if(this.b.fc)G=this.b.uj;else try{G=!!(new Audio).canPlayType('audio/ogg; codecs="vorbis"')}catch(b){G=!1}this.b.ki(this)}};var sa=R.ta.prototype;sa.Y=function(){this.b.Sf=this;P=this.A[0];this.ke=this.A[1];this.Vu=0!==this.A[2];Q=this.A[3];T=this.A[4];
this.Fh=-this.A[5];da=this.A[6];ra=this.A[7];ga=this.A[8];this.Tb=new l;var a=this.b.I||this.b.width,b=this.b.H||this.b.height;1===K&&("undefined"!==typeof v.listener.dopplerFactor&&(v.listener.dopplerFactor=0),v.listener.setPosition(a/2,b/2,this.Fh),v.listener.setOrientation(0,0,1,0,-1,0),window.c2OnAudioMicStream=function(a,b){Ha&&Ha.disconnect();ub=b.toLowerCase();Ha=v.createMediaStreamSource(a);Ha.connect(n(ub))});this.b.Vr(function(a){C.Su(a)});var c=this;this.b.Gn(function(a){c.Ou(a)})};sa.Ou=
function(a){var b,c,e;b=0;for(c=E.length;b<c;b++)e=E[b],e.Pa&&e.Pa.M===a&&(e.Pa.M=null,e.Ed&&e.hg()&&e.Bd&&e.stop());this.Tb.M===a&&(this.Tb.M=null)};sa.rb=function(){var a={silent:I,masterVolume:H,listenerZ:this.Fh,listenerUid:this.Tb.sj()?this.Tb.M.uid:-1,playing:[],effects:{}},b=a.playing,c,e,d,h,f,g;c=0;for(e=E.length;c<e;c++)d=E[c],!d.hg()||3===this.ke||d.kd&&1===this.ke||!d.kd&&2===this.ke||(h=d.Fl(),d.Bd&&(h=h%d.tf()),h={tag:d.tag,buffersrc:d.buffer.src,is_music:d.kd,playbackTime:h,volume:d.volume,
looping:d.Bd,muted:d.mg,playbackRate:d.playbackRate,paused:d.tc,resume_position:d.ic},d.Ed&&(h.pan={},g=h.pan,d.Pa&&d.Pa.sj()?g.objUid=d.Pa.M.uid:(g.x=d.xp,g.y=d.yp,g.a=d.tp),g.ia=d.up,g.oa=d.vp,g.og=d.wp),b.push(h));b=a.effects;for(f in Z)if(Z.hasOwnProperty(f)){d=[];c=0;for(e=Z[f].length;c<e;c++)d.push({type:Z[f][c].type,params:Z[f][c].md});b[f]=d}return a};var Va=[];sa.Hb=function(c){var d=c.silent;H=c.masterVolume;this.Fh=c.listenerZ;this.Tb.ai(null);var f=c.listenerUid;-1!==f&&(this.Tb.Nj=f,
Va.push(this.Tb));var f=c.playing,u,n,z,r,q,D,t,v,L,y,R;if(3!==this.ke)for(u=0,n=E.length;u<n;u++)L=E[u],L.kd&&1===this.ke||(L.kd||2!==this.ke)&&L.stop();for(q in Z)if(Z.hasOwnProperty(q))for(u=0,n=Z[q].length;u<n;u++)Z[q][u].remove();bb(Z);for(q in c.effects)if(c.effects.hasOwnProperty(q))for(D=c.effects[q],u=0,n=D.length;u<n;u++)switch(z=D[u].type,y=D[u].params,z){case "filter":F(q,new a(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "delay":F(q,new k(y[0],y[1],y[2]));break;case "convolve":z=y[2];L=
this.kj(z,!1);L.la?z=new w(L.la,y[0],y[1],z):(z=new w(null,y[0],y[1],z),L.lp=y[0],L.Si=z);F(q,z);break;case "flanger":F(q,new e(y[0],y[1],y[2],y[3],y[4]));break;case "phaser":F(q,new b(y[0],y[1],y[2],y[3],y[4],y[5]));break;case "gain":F(q,new m(y[0]));break;case "tremolo":F(q,new g(y[0],y[1]));break;case "ringmod":F(q,new O(y[0],y[1]));break;case "distortion":F(q,new x(y[0],y[1],y[2],y[3],y[4]));break;case "compressor":F(q,new p(y[0],y[1],y[2],y[3],y[4]));break;case "analyser":F(q,new h(y[0],y[1]))}u=
0;for(n=f.length;u<n;u++)3===this.ke||(c=f[u],z=c.buffersrc,r=c.is_music,q=c.tag,D=c.playbackTime,t=c.looping,v=c.volume,R=(y=c.pan)&&y.hasOwnProperty("objUid")?y.objUid:-1,r&&1===this.ke)||!r&&2===this.ke||((L=this.io(z,q,r,t,v))?(L.ic=c.resume_position,L.Rm(!!y),L.play(t,v,D),L.Fk(),L.Kv(),L.aj(L.mg||L.rh),c.paused&&L.pause(),c.muted&&L.Bv(),L.aj(L.mg||L.rh),y&&(-1!==R?(L.Pa=L.Pa||new l,L.Pa.Nj=R,Va.push(L.Pa)):L.Qm(y.x,y.y,y.a,y.ia,y.oa,y.og))):(L=this.kj(z,r),L.nk=D,L.Xj=c.paused,y&&(-1!==R?L.Bg.push({np:R,
Nl:y.ia,um:y.oa,wm:y.og,lq:q}):L.Bg.push({x:y.x,y:y.y,Tr:y.a,Nl:y.ia,um:y.oa,wm:y.og,lq:q}))));if(d&&!I){u=0;for(n=E.length;u<n;u++)E[u].Rp(!0);I=!0}else if(!d&&I){u=0;for(n=E.length;u<n;u++)E[u].Rp(!1);I=!1}};sa.Ld=function(){var a,b,c,e;a=0;for(b=Va.length;a<b;a++)c=Va[a],e=this.b.pj(c.Nj),c.ai(e),c.Nj=-1,e&&(N=e.x,fa=e.y);S(Va)};sa.Su=function(a){if(!this.Vu){!a&&v&&v.resume&&v.resume();var b,c;b=0;for(c=E.length;b<c;b++)E[b].Dv(a);a&&v&&v.suspend&&v.suspend()}};sa.Za=function(){var a=this.b.nf,
b,c,e;b=0;for(c=E.length;b<c;b++)e=E[b],e.Za(a),0!==P&&e.Fk();var d,h;for(d in Z)if(Z.hasOwnProperty(d))for(e=Z[d],b=0,c=e.length;b<c;b++)h=e[b],h.Za&&h.Za();1===K&&this.Tb.sj()&&(this.Tb.Za(a),N=this.Tb.M.x,fa=this.Tb.M.y,v.listener.setPosition(this.Tb.M.x,this.Tb.M.y,this.Fh),v.listener.setVelocity(this.Tb.Il(),this.Tb.Jl(),0))};var Wa=[];sa.Cv=function(a){var b,c,e,d,h,f=0;b=0;for(c=a.length;b<c;++b)if(e=a[b],d=e[0],e=2*e[1],(h=4<d.length&&".ogg"===d.substr(d.length-4))&&G||!h&&!G)Wa.push({filename:d,
size:e,M:null}),f+=e;return f};sa.Hv=function(){var a,b,c,e;a=0;for(b=Wa.length;a<b;++a)c=Wa[a],e=this.b.tl+c.filename,c.M=this.kj(e,!1)};sa.Tt=function(){var a=0,b,c,e;b=0;for(c=Wa.length;b<c;++b)e=Wa[b],e.M.Au()||e.M.ru()||this.b.pa||this.b.vj?a+=e.size:e.M.Ao()&&(a+=Math.floor(e.size/2));return a};sa.kj=function(a,b){var c,e,d,h=null;c=0;for(e=A.length;c<e;c++)if(d=A[c],d.src===a){h=d;break}h||(h=new D(a,b),A.push(h));return h};sa.io=function(a,b,c,e,d){var h,f,g;h=0;for(f=E.length;h<f;h++)if(g=
E[h],g.src===a&&(g.hs()||c))return g.tag=b,g;a=this.kj(a,c);if(!a.la)return"<preload>"!==b&&(a.Yj=b,a.km=e,a.nn=d),null;g=new u(a,b);E.push(g);return g};var Ba=[];L.prototype.xi=function(a){return ob(U,a)};R.p=new L;y.prototype.Play=function(a,b,c,e){!I&&(c=Math.pow(10,c/20),isFinite(c)||(c=0),0>c&&(c=0),1<c&&(c=1),J=this.io(this.b.tl+a[0]+(G?".ogg":".m4a"),e,a[1],0!==b,c))&&(J.Rm(!1),J.play(0!==b,c))};y.prototype.Ir=function(a){z(a);var b;a=0;for(b=Ba.length;a<b;a++)Ba[a].stop()};y.prototype.Jr=
function(){var a,b;a=0;for(b=E.length;a<b;a++)E[a].stop()};R.G=new y;R.Ia=new function(){}})();function rc(f){this.b=f}
(function(){function f(){}function n(){}var d=rc.prototype;d.Ga=function(d){this.Aa=d;this.b=d.b};d.Ga.prototype.Y=function(){};d.ta=function(d){this.type=d;this.b=d.b};var q=d.ta.prototype;q.Y=function(){this.mf={}};q.rb=function(){return this.mf};q.Hb=function(d){this.mf=d;for(var f in this.mf);};d.p=new function(){};f.prototype.Iq=function(d,f){this.mf[d]=f};d.G=new f;n.prototype.Vq=function(d,f){this.mf.hasOwnProperty(f)?d.Up(this.mf[f]):d.xa(0)};n.prototype.tn=function(d){d.fb(JSON.stringify({c2dictionary:!0,
data:this.mf}))};d.Ia=new n})();function sc(f){this.b=f}
(function(){function f(){}var n=sc.prototype;n.Ga=function(d){this.Aa=d;this.b=d.b};n.Ga.prototype.Y=function(){};n.ta=function(d){this.type=d;this.b=d.b;this.rg=Array(256);this.ni=Array(256);this.pe=0};var d=n.ta.prototype;d.Y=function(){var d=this;this.b.pa||(jQuery(document).keydown(function(f){d.Pu(f)}),jQuery(document).keyup(function(f){d.Qu(f)}))};var q=[32,33,34,35,36,37,38,39,40,44];d.Pu=function(d){var f=!1;window!=window.top&&-1<q.indexOf(d.which)&&(d.preventDefault(),f=!0,d.stopPropagation());
if(this.rg[d.which])this.ni[d.which]&&!f&&d.preventDefault();else{this.rg[d.which]=!0;this.pe=d.which;this.b.Ad=!0;this.b.trigger(sc.prototype.p.jr,this);var c=this.b.trigger(sc.prototype.p.zn,this),a=this.b.trigger(sc.prototype.p.or,this);this.b.Ad=!1;if(c||a)this.ni[d.which]=!0,f||d.preventDefault()}};d.Qu=function(d){this.rg[d.which]=!1;this.pe=d.which;this.b.Ad=!0;this.b.trigger(sc.prototype.p.xn,this);var f=this.b.trigger(sc.prototype.p.Mk,this),c=this.b.trigger(sc.prototype.p.An,this);this.b.Ad=
!1;if(f||c||this.ni[d.which])this.ni[d.which]=!0,d.preventDefault()};d.Ag=function(){var d;for(d=0;256>d;++d)if(this.rg[d]){this.rg[d]=!1;this.pe=d;this.b.trigger(sc.prototype.p.xn,this);var f=this.b.trigger(sc.prototype.p.Mk,this),c=this.b.trigger(sc.prototype.p.An,this);if(f||c)this.ni[d]=!0}};d.rb=function(){return{triggerKey:this.pe}};d.Hb=function(d){this.pe=d.triggerKey};f.prototype.$q=function(d){return this.rg[d]};f.prototype.zn=function(d){return d===this.pe};f.prototype.jr=function(){return!0};
f.prototype.xn=function(){return!0};f.prototype.Mk=function(d){return d===this.pe};f.prototype.or=function(d){return d===this.pe};f.prototype.An=function(d){return d===this.pe};n.p=new f;n.G=new function(){};n.Ia=new function(){}})();function Y(f){this.b=f}
(function(){function f(){if(0===this.il.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Hg?b.drawImage(this.S,this.yg,this.zg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.S,0,0,this.width,this.height);this.il=a.toDataURL("image/png")}return this.il}function n(){}function d(a){a[0]=0;a[1]=0;a[2]=0;m.push(a)}function q(a,b){return a<b?""+a+","+b:""+b+","+a}function r(a,b,c,e){b=b.uid;c=c.uid;var d=q(b,c);if(a.hasOwnProperty(d))a[d][2]=
e;else{var h=m.length?m.pop():[0,0,0];h[0]=b;h[1]=c;h[2]=e;a[d]=h}}function t(a,b,c){b=q(b.uid,c.uid);a.hasOwnProperty(b)&&(d(a[b]),delete a[b])}function c(a,b,c){b=q(b.uid,c.uid);if(a.hasOwnProperty(b))return g=a[b][2],!0;g=-2;return!1}function a(){}var k=Y.prototype;k.Ga=function(a){this.Aa=a;this.b=a.b};var w=k.Ga.prototype;w.Y=function(){if(!this.F){var a,b,c,e,d,h,g,l,p;this.$c=[];this.gh=!1;a=0;for(b=this.Zb.length;a<b;a++){d=this.Zb[a];g={};g.name=d[0];g.speed=d[1];g.loop=d[2];g.Km=d[3];g.ik=
d[4];g.Bp=d[5];g.aa=d[6];g.frames=[];c=0;for(e=d[7].length;c<e;c++)h=d[7][c],l={},l.uk=h[0],l.vk=h[1],l.yg=h[2],l.zg=h[3],l.width=h[4],l.height=h[5],l.duration=h[6],l.cc=h[7],l.ec=h[8],l.Ol=h[9],l.Zj=h[10],l.Cp=h[11],l.Hg=0!==l.width,l.il="",l.Mw=f,p={left:0,top:0,right:1,bottom:1},l.Tm=p,l.Fa=null,(p=this.b.Bt(h[0]))?l.S=p:(l.S=new Image,l.S.ns=h[0],l.S.fl=h[1],l.S.es=null,this.b.pn(l.S,h[0])),g.frames.push(l),this.$c.push(l);this.Zb[a]=g}}};w.Aq=function(){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=
this.i[a],c.Ui=c.Oc.Fa};w.Rh=function(){if(!this.F){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.S.es=null,c.Fa=null;this.gh=!1;this.Aq()}};w.Wj=function(){if(!this.F&&this.i.length){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.Fa=this.b.u.Lj(c.S,!1,this.b.T,c.Cp);this.Aq()}};w.Mj=function(){if(!this.F&&!this.gh&&this.b.u){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],c.Fa=this.b.u.Lj(c.S,!1,this.b.T,c.Cp);this.gh=!0}};w.Dk=function(){if(!this.F&&!this.i.length&&
this.gh){var a,b,c;a=0;for(b=this.$c.length;a<b;++a)c=this.$c[a],this.b.u.deleteTexture(c.Fa),c.Fa=null;this.gh=!1}};var e=[];w.ck=function(a){var b,c,d;S(e);b=0;for(c=this.$c.length;b<c;++b)d=this.$c[b].S,-1===e.indexOf(d)&&(a.drawImage(d,0,0),e.push(d))};k.ta=function(a){this.type=a;this.b=a.b;a=this.type.Zb[0].frames[0].Zj;this.Ic?this.ma.di(a):this.ma=new ib(a)};var b=k.ta.prototype;b.Y=function(){this.visible=0===this.A[0];this.Nd=0!==this.A[3];1===this.type.Zb.length&&1===this.type.Zb[0].frames.length||
0===this.type.Zb[0].speed||this.b.ki(this);this.Ka=this.ho(this.A[1])||this.type.Zb[0];this.D=this.A[2];0>this.D&&(this.D=0);this.D>=this.Ka.frames.length&&(this.D=this.Ka.frames.length-1);var a=this.Ka.frames[this.D];this.ma.di(a.Zj);this.cc=a.cc;this.ec=a.ec;this.Xg=this.Ka.speed;this.Ic?this.wd.reset():this.wd=new gb;this.Ud=this.wd.J;this.bf=!0;this.Md=0;this.$e=!0;this.bl=this.In="";this.js=0;this.al=-1;this.type.Mj();var b,c,e,d,h,f,g,a=0;for(b=this.type.Zb.length;a<b;a++)for(d=this.type.Zb[a],
c=0,e=d.frames.length;c<e;c++)h=d.frames[c],0===h.width&&(h.width=h.S.width,h.height=h.S.height),h.Hg&&(g=h.S,f=h.Tm,f.left=h.yg/g.width,f.top=h.zg/g.height,f.right=(h.yg+h.width)/g.width,f.bottom=(h.zg+h.height)/g.height,0===h.yg&&0===h.zg&&h.width===g.width&&h.height===g.height&&(h.Hg=!1));this.Oc=this.Ka.frames[this.D];this.Ui=this.Oc.Fa};b.rb=function(){var a={a:this.Ka.aa,f:this.D,cas:this.Xg,fs:this.Ud,ar:this.Md,at:this.wd.J};this.bf||(a.ap=this.bf);this.$e||(a.af=this.$e);return a};b.Hb=function(a){var b=
this.Ht(a.a);b&&(this.Ka=b);this.D=a.f;0>this.D&&(this.D=0);this.D>=this.Ka.frames.length&&(this.D=this.Ka.frames.length-1);this.Xg=a.cas;this.Ud=a.fs;this.Md=a.ar;this.wd.reset();this.wd.J=a.at;this.bf=a.hasOwnProperty("ap")?a.ap:!0;this.$e=a.hasOwnProperty("af")?a.af:!0;this.Oc=this.Ka.frames[this.D];this.Ui=this.Oc.Fa;this.ma.di(this.Oc.Zj);this.cc=this.Oc.cc;this.ec=this.Oc.ec};b.Sk=function(a){this.D=a?0:this.Ka.frames.length-1;this.bf=!1;this.In=this.Ka.name;this.b.trigger(Y.prototype.p.ir,
this);this.b.trigger(Y.prototype.p.hr,this);this.Md=0};b.Tk=function(){return this.wd.J};b.Za=function(){this.wd.add(this.b.nj(this));this.bl.length&&this.vs();0<=this.al&&this.ws();var a=this.wd.J,b=this.Ka,c=b.frames[this.D],e=c.duration/this.Xg;this.bf&&a>=this.Ud+e&&(this.$e?this.D++:this.D--,this.Ud+=e,this.D>=b.frames.length&&(b.Bp?(this.$e=!1,this.D=b.frames.length-2):b.loop?this.D=b.ik:(this.Md++,this.Md>=b.Km?this.Sk(!1):this.D=b.ik)),0>this.D&&(b.Bp?(this.D=1,this.$e=!0,b.loop||(this.Md++,
this.Md>=b.Km&&this.Sk(!0))):b.loop?this.D=b.ik:(this.Md++,this.Md>=b.Km?this.Sk(!0):this.D=b.ik)),0>this.D?this.D=0:this.D>=b.frames.length&&(this.D=b.frames.length-1),a>this.Ud+b.frames[this.D].duration/this.Xg&&(this.Ud=a),a=b.frames[this.D],this.Pf(c,a),this.b.fa=!0)};b.ho=function(a){var b,c,e;b=0;for(c=this.type.Zb.length;b<c;b++)if(e=this.type.Zb[b],ob(e.name,a))return e;return null};b.Ht=function(a){var b,c,e;b=0;for(c=this.type.Zb.length;b<c;b++)if(e=this.type.Zb[b],e.aa===a)return e;return null};
b.vs=function(){var a=this.Ka.frames[this.D],b=this.ho(this.bl);this.bl="";!b||ob(b.name,this.Ka.name)&&this.bf||(this.Ka=b,this.Xg=b.speed,0>this.D&&(this.D=0),this.D>=this.Ka.frames.length&&(this.D=this.Ka.frames.length-1),1===this.js&&(this.D=0),this.bf=!0,this.Ud=this.wd.J,this.$e=!0,this.Pf(a,this.Ka.frames[this.D]),this.b.fa=!0)};b.ws=function(){var a=this.Ka.frames[this.D],b=this.D;this.D=B(this.al);0>this.D&&(this.D=0);this.D>=this.Ka.frames.length&&(this.D=this.Ka.frames.length-1);b!==this.D&&
(this.Pf(a,this.Ka.frames[this.D]),this.Ud=this.wd.J,this.b.fa=!0);this.al=-1};b.Pf=function(a,b){var c=a.width,e=a.height,d=b.width,h=b.height;c!=d&&(this.width*=d/c);e!=h&&(this.height*=h/e);this.cc=b.cc;this.ec=b.ec;this.ma.di(b.Zj);this.Z();this.Oc=b;this.Ui=b.Fa;c=0;for(e=this.O.length;c<e;c++)d=this.O[c],d.Ru&&d.Ru(a,b);this.b.trigger(Y.prototype.p.Pf,this)};b.Bc=function(a){a.globalAlpha=this.opacity;var b=this.Oc,c=b.Hg,e=b.S,d=this.x,h=this.y,f=this.width,g=this.height;if(0===this.n&&0<=
f&&0<=g)d-=this.cc*f,h-=this.ec*g,this.b.Hc&&(d=Math.round(d),h=Math.round(h)),c?a.drawImage(e,b.yg,b.zg,b.width,b.height,d,h,f,g):a.drawImage(e,d,h,f,g);else{this.b.Hc&&(d=Math.round(d),h=Math.round(h));a.save();var l=0<f?1:-1,p=0<g?1:-1;a.translate(d,h);1===l&&1===p||a.scale(l,p);a.rotate(this.n*l*p);d=0-this.cc*na(f);h=0-this.ec*na(g);c?a.drawImage(e,b.yg,b.zg,b.width,b.height,d,h,na(f),na(g)):a.drawImage(e,d,h,na(f),na(g));a.restore()}};b.Ae=function(a){this.tb(a)};b.tb=function(a){a.jc(this.Ui);
a.Re(this.opacity);var b=this.Oc,c=this.Pb;if(this.b.Hc){var e=Math.round(this.x)-this.x,d=Math.round(this.y)-this.y;b.Hg?a.pd(c.gb+e,c.hb+d,c.Nb+e,c.Ob+d,c.Eb+e,c.Fb+d,c.Cb+e,c.Db+d,b.Tm):a.Xh(c.gb+e,c.hb+d,c.Nb+e,c.Ob+d,c.Eb+e,c.Fb+d,c.Cb+e,c.Db+d)}else b.Hg?a.pd(c.gb,c.hb,c.Nb,c.Ob,c.Eb,c.Fb,c.Cb,c.Db,b.Tm):a.Xh(c.gb,c.hb,c.Nb,c.Ob,c.Eb,c.Fb,c.Cb,c.Db)};b.Nt=function(a){var b=this.Oc,c,e;c=0;for(e=b.Ol.length;c<e;c++)if(ob(a,b.Ol[c][0]))return c;return-1};b.ah=function(a,b){var c=this.Oc,e=c.Ol,
d;ka(a)?d=this.Nt(a):d=a-1;d=B(d);if(0>d||d>=e.length)return b?this.x:this.y;var h=(e[d][1]-c.cc)*this.width,e=e[d][2],e=(e-c.ec)*this.height,c=Math.cos(this.n);d=Math.sin(this.n);var f=h*c-e*d,e=e*c+h*d,h=f+this.x,e=e+this.y;return b?h:e};var m=[],g=-2,O=[];n.prototype.mr=function(a){if(!a)return!1;var b=this.b,e=b.mj(),h=e.type,f=null;e.L.collmemory?f=e.L.collmemory:(f={},e.L.collmemory=f);e.L.spriteCreatedDestroyCallback||(e.L.spriteCreatedDestroyCallback=!0,b.Gn(function(a){var b=e.L.collmemory;
a=a.uid;var c,h;for(c in b)b.hasOwnProperty(c)&&(h=b[c],h[0]===a||h[1]===a)&&(d(b[c]),delete b[c])}));var l=h.ba(),p=a.ba(),l=l.rc(),k,m,n,q,D,w,x,J=this.b.Jd,G=J-1,P=b.lb().Rb;for(m=0;m<l.length;m++){n=l[m];p.ra?(n.Ca(),this.b.Bl(n.j,a,n.Ha,O),k=O):k=p.rc();for(q=0;q<k.length;q++)D=k[q],b.Ve(n,D)||b.ks(n,D)?(w=c(f,n,D),w=!w||g<G,r(f,n,D,J),w&&(b.ek(P.Ba),w=h.ba(),x=a.ba(),w.ra=!1,x.ra=!1,h===a?(w.i.length=2,w.i[0]=n,w.i[1]=D,h.ad()):(w.i.length=1,x.i.length=1,w.i[0]=n,x.i[0]=D,h.ad(),a.ad()),P.qv(),
b.Hf(P.Ba))):t(f,n,D);S(O)}return!1};var x=null,p=new ba,h=!1,l=[],D=new va(0,0,0,0);w.finish=function(a){if(h){if(a){var b=this.b.lb().Rb.Sc;a=x.ba();var c=p.Ye(),e,d;if(a.ra){a.ra=!1;S(a.i);e=0;for(d=c.length;e<d;++e)a.i[e]=c[e];if(b)for(S(a.da),e=0,d=x.i.length;e<d;++e)c=x.i[e],p.contains(c)||a.da.push(c)}else if(b)for(b=a.i.length,e=0,d=c.length;e<d;++e)a.i[b+e]=c[e],Ja(a.da,c[e]);else Fa(a.i,c);x.ad()}p.clear();h=!1}};n.prototype.br=function(a){if(a){var b=!1,c,e,d,f=this.b.mj(),g=f.type,f=f.tj;
c=a.ba();e=this.b.lb().Rb.Sc;var k;c.ra?(this.Ca(),D.Xf(this.Ha),D.offset(0,0),this.b.Bl(this.j,a,D,l),k=l):k=e?c.da:c.i;x=a;h=g!==a&&!f;c=0;for(e=k.length;c<e;c++)if(d=k[c],this.b.Ve(this,d)){b=!0;if(f)break;g!==a&&p.add(d)}S(l);a=b}else a=!1;return a};n.prototype.hr=function(a){return ob(this.In,a)};n.prototype.ir=function(){return!0};n.prototype.Pf=function(){return!0};k.p=new n;a.prototype.Hr=function(a,b,c){if(a&&b&&(b=this.b.Un(a,b,this.ah(c,!0),this.ah(c,!1)))){"undefined"!==typeof b.n&&(b.n=
this.n,b.Z());this.b.jd++;var e,d,h;this.b.trigger(Object.getPrototypeOf(a.Aa).p.Lk,b);if(b.sc)for(e=0,d=b.siblings.length;e<d;e++)h=b.siblings[e],this.b.trigger(Object.getPrototypeOf(h.type.Aa).p.Lk,h);this.b.jd--;e=this.b.Kt();c=!1;if(ia(e.L.Spawn_LastExec)||e.L.Spawn_LastExec<this.b.rf)c=!0,e.L.Spawn_LastExec=this.b.rf;if(a!=this.type&&(a=a.ba(),a.ra=!1,c?(S(a.i),a.i[0]=b):a.i.push(b),b.sc))for(e=0,d=b.siblings.length;e<d;e++)h=b.siblings[e],a=h.type.ba(),a.ra=!1,c?(S(a.i),a.i[0]=h):a.i.push(h)}};
k.G=new a;k.Ia=new function(){}})();function tc(f){this.b=f}
(function(){function f(){return w.length?w.pop():{}}function n(a){var b,c;b=0;for(c=a.length;b<c;b++)w.push(a[b]);S(a)}function d(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function q(){}function r(){}function t(){}var c=tc.prototype;c.Y=function(){c.G.Er=function(a){this.width!==a&&(this.width=a,this.Lf=!0,this.Z())}};c.Ga=function(a){this.Aa=a;this.b=a.b};var a=c.Ga.prototype;a.Y=function(){};a.Rh=function(){if(!this.F){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=
this.i[a],c.Dd=null,c.Ff=null,c.vc=null}};c.ta=function(a){this.type=a;this.b=a.b;this.Ic?S(this.Je):this.Je=[];this.Lf=!0};a=c.ta.prototype;a.Y=function(){this.text=this.A[0];this.visible=0===this.A[1];this.font=this.A[2];this.color=this.A[3];this.rj=this.A[4];this.Hk=this.A[5];this.rn=0===this.A[7];this.dm=this.de=this.width;this.be=this.height;this.fm=this.A[8];this.gj=this.ag="";this.jq=this.kq=this.Vh=0;this.Tu();this.vc=this.Ff=this.Dd=null;this.tm=!1;this.Eh=this.b.Jd;this.Ic?this.Oe.set(0,
0,1,1):this.Oe=new va(0,0,1,1);this.b.u&&this.b.ki(this)};a.Tu=function(){var a=this.font.split(" "),b;for(b=0;b<a.length;b++)if("pt"===a[b].substr(a[b].length-2,2)){this.Vh=parseInt(a[b].substr(0,a[b].length-2));this.Gm=Math.ceil(this.Vh/72*96)+4;0<b&&(this.gj=a[b-1]);this.ag=a[b+1];for(b+=2;b<a.length;b++)this.ag+=" "+a[b];break}};a.rb=function(){return{t:this.text,f:this.font,c:this.color,ha:this.rj,va:this.Hk,wr:this.rn,lho:this.fm,fn:this.ag,fs:this.gj,ps:this.Vh,pxh:this.Gm,tw:this.kq,th:this.jq,
lrt:this.Eh}};a.Hb=function(a){this.text=a.t;this.font=a.f;this.color=a.c;this.rj=a.ha;this.Hk=a.va;this.rn=a.wr;this.fm=a.lho;this.ag=a.fn;this.gj=a.fs;this.Vh=a.ps;this.Gm=a.pxh;this.kq=a.tw;this.jq=a.th;this.Eh=a.lrt;this.Lf=!0;this.dm=this.de=this.width;this.be=this.height};a.Za=function(){if(this.b.u&&this.vc&&300<=this.b.Jd-this.Eh){var a=this.j;this.Ca();var b=this.Ha;if(b.right<a.ya||b.bottom<a.za||b.left>a.Ea||b.top>a.Da)this.b.u.deleteTexture(this.vc),this.Dd=this.Ff=this.vc=null}};a.ge=
function(){this.Dd=this.Ff=null;this.b.u&&this.vc&&this.b.u.deleteTexture(this.vc);this.vc=null};a.Tk=function(){this.font=this.gj+" "+this.Vh.toString()+"pt "+this.ag;this.Lf=!0;this.b.fa=!0};a.Bc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=this.j.ac(),a.save(),a.scale(c,c));if(this.Lf||this.width!==this.dm)this.type.Aa.Or(this.text,this.Je,a,this.width,this.rn),this.Lf=!1,this.dm=this.width;this.Ca();var c=b?0:this.Pb.gb,
d=b?0:this.Pb.hb;this.b.Hc&&(c=c+.5|0,d=d+.5|0);0===this.n||b||(a.save(),a.translate(c,d),a.rotate(this.n),d=c=0);var f=d+this.height,k=this.Gm,k=k+this.fm,p,h;1===this.Hk?d+=Math.max(this.height/2-this.Je.length*k/2,0):2===this.Hk&&(d+=Math.max(this.height-this.Je.length*k-2,0));for(h=0;h<this.Je.length&&!(p=c,1===this.rj?p=c+(this.width-this.Je[h].width)/2:2===this.rj&&(p=c+(this.width-this.Je[h].width)),a.fillText(this.Je[h].text,p,d),d+=k,d>=f-k);h++);(0!==this.n||b)&&a.restore();this.Eh=this.b.Jd};
a.tb=function(a){if(!(1>this.width||1>this.height)){var b=this.Lf||this.tm;this.tm=!1;var c=this.j.ac(),d=this.j.Oa(),f=this.Oe,k=c*this.width,p=c*this.height,h=Math.ceil(k),l=Math.ceil(p),n=this.b.I/2,q=this.b.H/2;this.Ff||(this.Dd=document.createElement("canvas"),this.Dd.width=h,this.Dd.height=l,this.de=h,this.be=l,b=!0,this.Ff=this.Dd.getContext("2d"));if(h!==this.de||l!==this.be)this.Dd.width=h,this.Dd.height=l,this.vc&&(a.deleteTexture(this.vc),this.vc=null),b=!0;b&&(this.Ff.clearRect(0,0,h,
l),this.Bc(this.Ff,!0),this.vc||(this.vc=a.pc(h,l,this.b.T,this.b.yf)),a.Eq(this.Dd,this.vc,this.b.yf));this.de=h;this.be=l;a.jc(this.vc);a.Re(this.opacity);a.Uc();a.translate(-n,-q);a.Kc();var r=this.Pb,b=this.j.ka(r.gb,r.hb,!0,!0),n=this.j.ka(r.gb,r.hb,!1,!0),q=this.j.ka(r.Nb,r.Ob,!0,!0),w=this.j.ka(r.Nb,r.Ob,!1,!0),t=this.j.ka(r.Eb,r.Fb,!0,!0),y=this.j.ka(r.Eb,r.Fb,!1,!0),R=this.j.ka(r.Cb,r.Db,!0,!0),r=this.j.ka(r.Cb,r.Db,!1,!0);if(this.b.Hc||0===this.n&&0===d)var M=(b+.5|0)-b,C=(n+.5|0)-n,b=b+
M,n=n+C,q=q+M,w=w+C,t=t+M,y=y+C,R=R+M,r=r+C;0===this.n&&0===d?(q=b+h,w=n,t=q,y=n+l,R=b,r=y,f.right=1,f.bottom=1):(f.right=k/h,f.bottom=p/l);a.pd(b,n,q,w,t,y,R,r,f);a.Uc();a.scale(c,c);a.kk(-this.j.Oa());a.translate((this.j.ya+this.j.Ea)/-2,(this.j.za+this.j.Da)/-2);a.Kc();this.Eh=this.b.Jd}};var k=[];c.Mr=function(a){S(k);for(var b="",c,d=0;d<a.length;)if(c=a.charAt(d),"\n"===c)b.length&&(k.push(b),b=""),k.push("\n"),++d;else if(" "===c||"\t"===c||"-"===c){do b+=a.charAt(d),d++;while(d<a.length&&
(" "===a.charAt(d)||"\t"===a.charAt(d)));k.push(b);b=""}else d<a.length&&(b+=c,d++);b.length&&k.push(b)};var w=[];c.Or=function(a,b,c,d,k){if(a&&a.length)if(2>=d)n(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var q=c.measureText(a).width;if(q<=d){n(b);b.push(f());b[0].text=a;b[0].width=q;return}}this.Pr(a,b,c,d,k)}else n(b)};c.Pr=function(a,b,c,g,n){n&&(this.Mr(a),a=k);var q="",p,h,l,r=0;for(l=0;l<a.length;l++)"\n"===a[l]?(r>=b.length&&b.push(f()),q=d(q),h=b[r],h.text=q,h.width=c.measureText(q).width,
r++,q=""):(p=q,q+=a[l],h=c.measureText(q).width,h>=g&&(r>=b.length&&b.push(f()),p=d(p),h=b[r],h.text=p,h.width=c.measureText(p).width,r++,q=a[l],n||" "!==q||(q="")));q.length&&(r>=b.length&&b.push(f()),q=d(q),h=b[r],h.text=q,h.width=c.measureText(q).width,r++);for(l=r;l<b.length;l++)w.push(b[l]);b.length=r};q.prototype.vn=function(a,b){return b?this.text==a:ob(this.text,a)};c.p=new q;r.prototype.Pk=function(a){ja(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Lf=
!0,this.b.fa=!0)};r.prototype.xr=function(a){a="rgb("+ya(a).toString()+","+za(a).toString()+","+Aa(a).toString()+")";a!==this.color&&(this.color=a,this.tm=!0,this.b.fa=!0)};c.G=new r;t.prototype.Text=function(a){a.fb(this.text)};c.Ia=new t})();function uc(f){this.b=f}
(function(){function f(){}function n(){}function d(){}var q=uc.prototype;q.Ga=function(c){this.Aa=c;this.b=c.b};q.Ga.prototype.Y=function(){};q.ta=function(c){this.type=c;this.b=c.b};var r=q.ta.prototype,t="text password email number tel url".split(" ");-1<navigator.userAgent.indexOf("MSIE 9")&&(t[2]="text",t[3]="text",t[4]="text",t[5]="text");r.Y=function(){if(this.b.pa)ea("[Construct 2] Textbox plugin not supported on this platform - the object will not be created");else{6===this.A[7]?(this.q=document.createElement("textarea"),
jQuery(this.q).css("resize","none")):(this.q=document.createElement("input"),this.q.type=t[this.A[7]]);this.q.id=this.A[9];jQuery(this.q).appendTo(this.b.Vf?this.b.Vf:"body");this.q.autocomplete="off";this.q.value=this.A[0];this.q.placeholder=this.A[1];this.q.title=this.A[2];this.q.disabled=0===this.A[4];this.q.readOnly=1===this.A[5];this.q.spellcheck=1===this.A[6];this.Zr=0!==this.A[8];this.$b=!1;0===this.A[3]&&(jQuery(this.q).hide(),this.visible=!1,this.$b=!0);var c=function(a){return function(){a.b.trigger(uc.prototype.p.rr,
a)}}(this);this.q.oninput=c;-1!==navigator.userAgent.indexOf("MSIE")&&(this.q.oncut=c);this.q.onclick=function(a){return function(c){c.stopPropagation();a.b.Ad=!0;a.b.trigger(uc.prototype.p.lr,a);a.b.Ad=!1}}(this);this.q.ondblclick=function(a){return function(c){c.stopPropagation();a.b.Ad=!0;a.b.trigger(uc.prototype.p.nr,a);a.b.Ad=!1}}(this);this.q.addEventListener("touchstart",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchmove",function(a){a.stopPropagation()},!1);this.q.addEventListener("touchend",
function(a){a.stopPropagation()},!1);jQuery(this.q).mousedown(function(a){a.stopPropagation()});jQuery(this.q).mouseup(function(a){a.stopPropagation()});jQuery(this.q).keydown(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});jQuery(this.q).keyup(function(a){13!==a.which&&27!=a.which&&a.stopPropagation()});this.Ah=this.Bh=this.vh=this.yh=this.zh=this.wh=0;this.mi(!0);this.b.ki(this)}};r.rb=function(){return{text:this.q.value,placeholder:this.q.placeholder,tooltip:this.q.title,disabled:!!this.q.disabled,
readonly:!!this.q.readOnly,spellcheck:!!this.q.spellcheck}};r.Hb=function(c){this.q.value=c.text;this.q.placeholder=c.placeholder;this.q.title=c.tooltip;this.q.disabled=c.disabled;this.q.readOnly=c.readonly;this.q.spellcheck=c.spellcheck};r.ge=function(){this.b.pa||(jQuery(this.q).remove(),this.q=null)};r.Za=function(){this.mi()};r.mi=function(c){if(!this.b.pa){var a=this.j.ka(this.x,this.y,!0),d=this.j.ka(this.x,this.y,!1),f=this.j.ka(this.x+this.width,this.y+this.height,!0),e=this.j.ka(this.x+this.width,
this.y+this.height,!1),b=this.b.width/this.b.devicePixelRatio,m=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=f||0>=e||a>=b||d>=m?(this.$b||jQuery(this.q).hide(),this.$b=!0):(1>a&&(a=1),1>d&&(d=1),f>=b&&(f=b-1),e>=m&&(e=m-1),b=window.innerWidth,m=window.innerHeight,c||this.wh!==a||this.zh!==d||this.yh!==f||this.vh!==e||this.Bh!==b||this.Ah!==m?(this.wh=a,this.zh=d,this.yh=f,this.vh=e,this.Bh=b,this.Ah=m,this.$b&&(jQuery(this.q).show(),this.$b=!1),c=Math.round(a)+jQuery(this.b.canvas).offset().left,
b=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.q).css("position","absolute"),jQuery(this.q).offset({left:c,top:b}),jQuery(this.q).width(Math.round(f-a)),jQuery(this.q).height(Math.round(e-d)),this.Zr&&jQuery(this.q).css("font-size",this.j.ac(!0)/this.b.devicePixelRatio-.2+"em")):this.$b&&(jQuery(this.q).show(),this.$b=!1))}};r.Bc=function(){};r.tb=function(){};f.prototype.vn=function(c,a){return this.b.pa?!1:0===a?ob(this.q.value,c):this.q.value===c};f.prototype.rr=function(){return!0};
f.prototype.lr=function(){return!0};f.prototype.nr=function(){return!0};q.p=new f;n.prototype.Pk=function(c){this.b.pa||(this.q.value=c)};n.prototype.Og=function(c){this.b.pa||(this.visible=0!==c)};q.G=new n;d.prototype.Text=function(c){this.b.pa?c.fb(""):c.fb(this.q.value)};q.Ia=new d})();function vc(f){this.b=f}
(function(){var f=vc.prototype;f.Ga=function(d){this.Aa=d;this.b=d.b};var n=f.Ga.prototype;n.Y=function(){this.F||(this.S=new Image,this.S.fl=this.vk,this.b.pn(this.S,this.uk),this.Fa=this.pattern=null)};n.Rh=function(){this.F||(this.Fa=null)};n.Wj=function(){if(!this.F&&this.i.length){this.Fa||(this.Fa=this.b.u.Lj(this.S,!0,this.b.T,this.Xm));var d,f;d=0;for(f=this.i.length;d<f;d++)this.i[d].Fa=this.Fa}};n.Mj=function(){this.F||this.Fa||!this.b.u||(this.Fa=this.b.u.Lj(this.S,!0,this.b.T,this.Xm))};
n.Dk=function(){this.F||this.i.length||!this.Fa||(this.b.u.deleteTexture(this.Fa),this.Fa=null)};n.ck=function(d){d.drawImage(this.S,0,0)};f.ta=function(d){this.type=d;this.b=d.b};n=f.ta.prototype;n.Y=function(){this.visible=0===this.A[0];this.Oe=new va(0,0,0,0);this.so=!1;this.S=this.type.S;this.b.u?(this.type.Mj(),this.Fa=this.type.Fa):(this.type.pattern||(this.type.pattern=this.b.ja.createPattern(this.type.S,"repeat")),this.pattern=this.type.pattern)};n.Ld=function(){this.so=!1;this.S=this.type.S};
n.ge=function(){this.b.u&&this.so&&this.Fa&&(this.b.u.deleteTexture(this.Fa),this.Fa=null)};n.Bc=function(d){d.globalAlpha=this.opacity;d.save();d.fillStyle=this.pattern;var f=this.x,n=this.y;this.b.Hc&&(f=Math.round(f),n=Math.round(n));var t=-(this.cc*this.width),c=-(this.ec*this.height),a=t%this.S.width,k=c%this.S.height;0>a&&(a+=this.S.width);0>k&&(k+=this.S.height);d.translate(f,n);d.rotate(this.n);d.translate(a,k);d.fillRect(t-a,c-k,this.width,this.height);d.restore()};n.Ae=function(d){this.tb(d)};
n.tb=function(d){d.jc(this.Fa);d.Re(this.opacity);var f=this.Oe;f.right=this.width/this.S.width;f.bottom=this.height/this.S.height;var n=this.Pb;if(this.b.Hc){var t=Math.round(this.x)-this.x,c=Math.round(this.y)-this.y;d.pd(n.gb+t,n.hb+c,n.Nb+t,n.Ob+c,n.Eb+t,n.Fb+c,n.Cb+t,n.Db+c,f)}else d.pd(n.gb,n.hb,n.Nb,n.Ob,n.Eb,n.Fb,n.Cb,n.Db,f)};f.p=new function(){};f.G=new function(){};f.Ia=new function(){}})();function wc(f){this.b=f}
(function(){function f(){this.zk=this.id=-1;this.Kn=this.Zf=this.ri=this.hh=!1;this.na=new va(0,0,0,0)}function n(a){1E4>m.length&&m.push(a)}function d(){this.id=-1;this.na=new va(0,0,0,0);this.je=null}function q(a){1E4>g.length&&g.push(a)}function r(a,b,c){var d;return O.length?(d=O.pop(),d.m=a,d.x=b,d.y=c,d.left=d.x*d.m.$a*d.m.Mb,d.top=d.y*d.m.ib*d.m.Lb,d.clear(),d.Yh=!1,d):new t(a,b,c)}function t(a,b,c){this.m=a;this.x=b;this.y=c;this.left=this.x*this.m.$a*this.m.Mb;this.top=this.y*this.m.ib*this.m.Lb;
this.Kd=[];this.yb=[];this.Qb=[];this.Yh=!1;var d,e;a=0;for(b=this.m.ib;a<b;++a){e=[];c=0;for(d=this.m.$a;c<d;++c)e.push(-1);this.Kd.push(e)}}var c=wc.prototype;c.Ga=function(a){this.Aa=a;this.b=a.b};var a=c.Ga.prototype;a.Y=function(){var a,b,c;if(!this.F&&(this.S=new Image,this.S.fl=this.vk,this.b.pn(this.S,this.uk),this.kf=[],this.hl=!1,this.sd=[],this.nq=!1,this.yk&&this.yk.length))for(a=0,b=this.yk.length;a<b;++a)(c=this.yk[a])?this.sd.push({je:c,fj:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.sd.push(null)};a.ve=function(a,b,c,d,e,f){if(!(0>a||a>=this.sd.length)&&this.sd[a]){var g=this.sd[a].fj;a=new ib(this.sd[a].je);a.gf(b,c,0);f&&a.ts();d&&a.Ju(b/2);e&&a.Ct(c/2);g[d?1:0][e?1:0][f?1:0]=a}};a.Yt=function(a){if(-1===a)return null;var c=a&b;return 0>c||c>=this.sd.length||!this.sd[c]?null:this.sd[c].fj[a&k?1:0][a&w?1:0][a&e?1:0]};a.xl=function(){var a,b,c=this.b.u;if(c)for(a=0,b=this.kf.length;a<b;++a)c.deleteTexture(this.kf[a]);S(this.kf);this.hl=!1};a.mm=function(a,b,c,
d,e,f,g){if(!(this.hl||0>=a||0>=b)){this.xl();var k=this.S.width,m=this.S.height,n;for(n=d;n+b<=m;n+=b+f)for(d=c;d+a<=k;d+=a+e)this.kf.push(this.Qq(d,n,a,b,g));this.hl=!0}};a.Qq=function(a,b,c,d,e){if(this.b.u)return this.Kk(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.Kk(a,b,c,d,!1,!1,!1,e);return{fj:f,x:a,y:b,Pv:c,ou:d}};a.wn=function(a,b,c,d,e){if(0>a||a>=this.kf.length)return null;a=this.kf[a];var f=a.fj;b=b?1:0;c=c?1:0;d=d?1:0;var g=f[b][c][d];
if(g)return g;g=this.Kk(a.x,a.y,a.Pv,a.ou,0!==b,0!==c,0!==d,e);return f[b][c][d]=g};a.Kk=function(a,b,c,d,e,f,g,k){var m=c,n=d;this.b.u&&!k&&(la(m)||(m=ma(m)),la(n)||(n=ma(n)));var q=document.createElement("canvas");q.width=m;q.height=n;var r=q.getContext("2d");if(this.b.ja)return e?f?(g?(r.rotate(Math.PI/2),r.scale(-1,1)):r.scale(-1,-1),r.translate(-m,-n)):g?(r.rotate(Math.PI/2),r.translate(0,-n)):(r.scale(-1,1),r.translate(-m,0)):f?g?(r.rotate(-Math.PI/2),r.translate(-m,0)):(r.scale(1,-1),r.translate(0,
-n)):g&&(r.scale(-1,1),r.rotate(Math.PI/2)),r.drawImage(this.S,a,b,c,d,0,0,m,n),k?q:this.b.ja.createPattern(q,"repeat");r.drawImage(this.S,a,b,c,d,0,0,m,n);a=this.b.u.pc(m,n,this.b.T,!1,!k);this.b.u.Eq(q,a);return a};a.Rh=function(){this.F||this.xl()};a.Wj=function(){};a.Mj=function(){};a.Dk=function(){this.F||this.i.length||this.xl()};a.ck=function(){};c.ta=function(a){this.type=a;this.b=a.b};var a=c.ta.prototype,k=-2147483648,w=1073741824,e=536870912,b=536870911,m=[],g=[],O=[];t.prototype.clear=
function(){var a,b,c,d,e;this.Kd.length=this.m.ib;a=0;for(b=this.Kd.length;a<b;++a)for(e=this.Kd[a],e||(e=[],this.Kd[a]=e),e.length=this.m.$a,c=0,d=e.length;c<d;++c)e[c]=-1};t.prototype.Oh=function(){if(!this.Yh){var a=this.m.Mb,c=this.m.Lb;if(!(0>=a||0>=c)){var l,r,u,t,F,x;l=0;for(r=this.yb.length;l<r;++l)n(this.yb[l]);l=0;for(r=this.Qb.length;l<r;++l)q(this.Qb[l]);S(this.yb);S(this.Qb);var y=Math.floor(this.m.width/a),R=Math.floor(this.m.height/c),y=y-this.left/a,R=R-this.top/c;y>this.m.$a&&(y=
this.m.$a);R>this.m.ib&&(R=this.m.ib);var M=this.m.Pe,C=null;l=0;for(r=R;l<r;++l){F=this.Kd[l];u=0;for(t=y;u<t;++u)x=F[u],-1===x?C&&(this.yb.push(C),C=null):M||!C||x!==C.id?(C&&this.yb.push(C),C=m.length?m.pop():new f,C.id=x,C.zk=x&b,C.hh=0!==(x&k),C.ri=0!==(x&w),C.Zf=0!==(x&e),C.Kn=C.hh||C.ri||C.Zf,C.na.left=u*a+this.left,C.na.top=l*c+this.top,C.na.right=C.na.left+a,C.na.bottom=C.na.top+c):C.na.right+=a;C&&(this.yb.push(C),C=null)}var C=null,U=!1;l=0;for(r=R;l<r;++l){F=this.Kd[l];u=0;for(t=y;u<t;++u)x=
F[u],-1===x?C&&(this.Qb.push(C),C=null,U=!1):(R=this.m.type.Yt(x),!C||R||U?(C&&this.Qb.push(C),C=g.length?g.pop():new d,C.id=x,C.je=R?R:null,x=C.na,x.left=u*a+this.left,x.top=l*c+this.top,x.right=x.left+a,x.bottom=x.top+c,U=!!R):C.na.right+=a);C&&(this.Qb.push(C),C=null,U=!1)}if(!M)for(r=this.yb.length,l=0;l<r;++l)for(t=this.yb[l],a=l+1;a<r;++a)if(u=this.yb[a],!(u.na.top<t.na.bottom)){if(u.na.top>t.na.bottom)break;if(u.na.right>t.na.right||u.na.left>t.na.left)break;u.id===t.id&&u.na.left===t.na.left&&
u.na.right===t.na.right&&(n(this.yb[a]),this.yb.splice(a,1),--r,t.na.bottom+=c,--a)}r=this.Qb.length;for(l=0;l<r;++l)if(t=this.Qb[l],!t.je)for(F=t.na,a=l+1;a<r;++a)if(u=this.Qb[a],t=u.na,!(t.top<F.bottom)){if(t.top>F.bottom)break;if(t.right>F.right||t.left>F.left)break;u.je||t.left!==F.left||t.right!==F.right||(q(this.Qb[a]),this.Qb.splice(a,1),--r,F.bottom+=c,--a)}this.Yh=!0}}};t.prototype.Sm=function(a,b,c){this.Kd[b][a]!==c&&(this.Kd[b][a]=c,this.Yh=!1,this.m.Ei=!0,this.m.Th=!0,this.m.b.fa=!0)};
a.Y=function(){var a,b,c;this.visible=0===this.A[0];this.Mb=this.A[1];this.Lb=this.A[2];this.Ym=this.A[3];this.$m=this.A[4];this.Zm=this.A[5];this.an=this.A[6];this.Pe=0!==this.A[7];this.ld=this.qq;this.Cd=this.pq;this.de=this.width;this.be=this.height;var d=this.Mb,e=this.Lb;0===d&&(d=1);0===e&&(e=1);this.$a=Math.ceil(this.b.Wa/d);this.ib=Math.ceil(this.b.Va/e);if(!this.type.nq)for(this.type.nq=!0,a=0,b=this.type.sd.length;a<b;++a)if(c=this.type.sd[a])this.type.ve(a,d,e,!1,!1,!1),this.type.ve(a,
d,e,!1,!1,!0),this.type.ve(a,d,e,!1,!0,!1),this.type.ve(a,d,e,!1,!0,!0),this.type.ve(a,d,e,!0,!1,!1),this.type.ve(a,d,e,!0,!1,!0),this.type.ve(a,d,e,!0,!0,!1),this.type.ve(a,d,e,!0,!0,!0);this.Ic||(this.Vb=[]);this.nm(!0);this.Sp(this.oq);this.type.mm(this.Mb,this.Lb,this.Ym,this.$m,this.Zm,this.an,this.Pe);this.Th=!1;this.Ei=!0;this.lm()};a.lm=function(){if(this.Ei){var a,b,c,d,e;a=0;for(b=this.Vb.length;a<b;++a)for(e=this.Vb[a],c=0,d=e.length;c<d;++c)e[c].Oh();this.Ei=!1}};a.ok=function(){var a,
b,c,d,e;a=0;for(b=this.Vb.length;a<b;++a)for(e=this.Vb[a],c=0,d=e.length;c<d;++c)e[c].Yh=!1;this.Ei=!0};a.nm=function(a){var b=B(this.width/this.Mb),c=B(this.height/this.Lb);if(!(b<=this.ld&&c<=this.Cd)||a){var d;a?(a=Math.ceil(this.Cd/this.ib),d=Math.ceil(this.ld/this.$a)):(a=this.Vb.length,d=Math.ceil(this.ld/this.$a),c>this.Cd&&(this.Cd=c,a=Math.ceil(this.Cd/this.ib)),b>this.ld&&(this.ld=b,d=Math.ceil(this.ld/this.$a)),this.ok(),this.Th=!0,this.b.fa=!0);for(var e,b=0;b<a;++b)if(e=this.Vb[b])for(c=
e.length;c<d;++c)e.push(r(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(r(this,c,b));this.Vb[b]=e}}};a.Yk=function(a,b){if(0>a||0>b)return null;var c=B(b/this.ib);if(c>=this.Vb.length)return null;var c=this.Vb[c],d=B(a/this.$a);return d>=c.length?null:c[d]};a.Zk=function(a,b){if(0>a||0>b||b>=this.Vb.length)return null;var c=this.Vb[b];return a>=c.length?null:c[a]};a.Sp=function(a){var b=[];a=a.split(",");var c,d,f,g,m;c=0;for(d=a.length;c<d;++c)if(f=a[c],g=f.indexOf("x"),-1<g)for(m=parseInt(f.substring(0,
g),10),f=f.substring(g+1),g=parseInt(f,10),-1<f.indexOf("h")&&(g|=k),-1<f.indexOf("v")&&(g|=w),-1<f.indexOf("d")&&(g|=e);0<m;--m)b.push(g);else g=parseInt(f,10),-1<f.indexOf("h")&&(g|=k),-1<f.indexOf("v")&&(g|=w),-1<f.indexOf("d")&&(g|=e),b.push(g);for(c=a=0;c<this.Cd;++c)for(d=0;d<this.ld;++d)m=b[a++],(f=this.Yk(d,c))&&f.Sm(d%this.$a,c%this.ib,m)};a.Zt=function(){var a="";if(0>=this.ld||0>=this.Cd)return a;var c=1,d=this.oo(0,0),f,g,m,n,q,r,t,x;n=B(this.width/this.Mb);g=B(this.height/this.Lb);for(f=
0;f<g;++f)for(m=0===f?1:0;m<n;++m)q=this.oo(m,f),q===d?++c:(-1===d?(r=-1,d=x=t=!1):(r=d&b,t=0!==(d&k),x=0!==(d&w),d=0!==(d&e)),a=1===c?a+(""+r):a+(""+c+"x"+r),t&&(a+="h"),x&&(a+="v"),d&&(a+="d"),a+=",",c=1,d=q);-1===d?(r=-1,d=x=t=!1):(r=d&b,t=0!==(d&k),x=0!==(d&w),d=0!==(d&e));a=1===c?a+(""+r):a+(""+c+"x"+r);t&&(a+="h");x&&(a+="v");d&&(a+="d");return a};a.oo=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.ld||b>=this.Cd)return-1;var c=this.Yk(a,b);return c?c.Kd[b%this.ib][a%this.$a]:
-1};a.Sm=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.ld||b>=this.Cd)return-1;var d=this.Yk(a,b);if(!d)return-1;d.Sm(a%this.$a,b%this.ib,c)};a.Gq=function(a){return Math.floor((a-this.x)/(this.$a*this.Mb))};a.Hq=function(a){return Math.floor((a-this.y)/(this.ib*this.Lb))};a.Jt=function(a,b){var c=this.Hq(a.top),d=this.Gq(a.right),e=this.Hq(a.bottom),f,g,k;for(f=this.Gq(a.left);f<=d;++f)for(g=c;g<=e;++g)if(k=this.Zk(f,g))k.Oh(),Ga(b,k.Qb)};a.Tk=function(a){var b,c,d,e,f,g;b=
0;for(c=this.Vb.length;b<c;++b)for(f=this.Vb[b],d=0,e=f.length;d<e;++d)g=f[d],g.Oh(),Ga(a,g.Qb)};a.ge=function(){var a,b,c,d,e;a=0;for(b=this.Vb.length;a<b;++a){e=this.Vb[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],g=void 0,k=void 0,g=0,k=f.yb.length;g<k;++g)n(f.yb[g]);S(f.yb);g=0;for(k=f.Qb.length;g<k;++g)q(f.Qb[g]);S(f.Qb);1E3>O.length&&O.push(f)}S(e)}S(this.Vb)};a.rb=function(){this.nm();return{w:B(this.width/this.Mb),h:B(this.height/this.Lb),d:this.Zt()}};a.Hb=function(a){this.ld=a.w;this.Cd=
a.h;this.nm(!0);this.Sp(a.d);this.Th=!0;this.ok()};a.Bc=function(a){if(!(0>=this.Mb||0>=this.Lb)){this.type.mm(this.Mb,this.Lb,this.Ym,this.$m,this.Zm,this.an,this.Pe);if(this.width!==this.de||this.height!==this.be)this.Th=!0,this.ok(),this.lm(),this.de=this.width,this.be=this.height;a.globalAlpha=this.opacity;var b=this.j,c=b.ya,d=b.za,e=b.Ea,b=b.Da,f=this.x,g=this.y,k=this.Pe,m;this.b.Hc&&(f=Math.round(f),g=Math.round(g));var n=this.$a*this.Mb,q=this.ib*this.Lb,r=Math.floor((c-f)/n),n=Math.floor((e-
f)/n),t=Math.floor((d-g)/q),q=Math.floor((b-g)/q),w=f%this.Mb,x=g%this.Lb;this.Pe&&(x=w=0);if(0!==w||0!==x)a.save(),a.translate(w,x),f-=w,g-=x,c-=w,d-=x,e-=w,b-=x;for(var v,A,E,J,G,P,I,H,N;r<=n;++r)for(v=t;v<=q;++v)if(A=this.Zk(r,v))for(A.Oh(),E=0,J=A.yb.length;E<J;++E)G=A.yb[E],-1!==G.id&&(m=G.na,P=m.left+f,I=m.top+g,H=m.right+f,m=m.bottom+g,P>e||H<c||I>b||m<d||(N=this.type.wn(G.zk,G.hh,G.ri,G.Zf,this.Pe),k?a.drawImage(N,P,I):(a.fillStyle=this.type.wn(G.zk,G.hh,G.ri,G.Zf,this.Pe),a.fillRect(P,I,
H-P,m-I))));0===w&&0===x||a.restore()}};var x=new va(0,0,1,1);a.Ae=function(a){this.tb(a)};a.tb=function(a){if(!(0>=this.Mb||0>=this.Lb)){this.type.mm(this.Mb,this.Lb,this.Ym,this.$m,this.Zm,this.an,this.Pe);if(this.width!==this.de||this.height!==this.be)this.Th=!0,this.ok(),this.lm(),this.de=this.width,this.be=this.height;a.Re(this.opacity);var b=this.type.kf,c=this.j,d=c.ya,e=c.za,f=c.Ea,c=c.Da,g=this.x,k=this.y,m;this.b.Hc&&(g=Math.round(g),k=Math.round(k));var n=this.$a*this.Mb,q=this.ib*this.Lb,
r=Math.floor((f-g)/n),t=Math.floor((e-k)/q),q=Math.floor((c-k)/q),w,K,v,A,E,J,G,P,I,H,N,O,Q,T,da,ra,ga;for(da=Math.floor((d-g)/n);da<=r;++da)for(ra=t;ra<=q;++ra)if(ga=this.Zk(da,ra))for(ga.Oh(),n=0,w=ga.yb.length;n<w;++n)K=ga.yb[n],-1!==K.id&&(m=K.na,v=m.left+g,A=m.top+k,E=m.right+g,m=m.bottom+k,v>f||E<d||A>c||m<e||(a.jc(b[K.zk]),x.right=(E-v)/this.Mb,x.bottom=(m-A)/this.Lb,K.Kn?(K.Zf&&(T=x.right,x.right=x.bottom,x.bottom=T),G=J=0,P=x.right,I=0,H=x.right,N=x.bottom,O=0,Q=x.bottom,K.Zf&&(T=O,O=P,P=
T,T=Q,Q=I,I=T),K.hh&&(T=J,J=P,P=T,T=G,G=I,I=T,T=O,O=H,H=T,T=Q,Q=N,N=T),K.ri&&(T=J,J=O,O=T,T=G,G=Q,Q=T,T=P,P=H,H=T,T=I,I=N,N=T),a.jv(v,A,E,A,E,m,v,m,J,G,P,I,H,N,O,Q)):a.pd(v,A,E,A,E,m,v,m,x)))}};c.p=new function(){};c.G=new function(){};c.Ia=new function(){}})();function yc(f){this.b=f}
(function(){function f(a,d){c=!1;var f;f="none";1===d.Pn?f="horizontal":2===d.Pn&&(f="vertical");var e=0===d.ds?"medium":"large";0===d.Mi?a.widgets.createFollowButton(d.Ki,d.q,function(){n(d)},{count:f,size:e,lang:d.Ji}):1===d.Mi?(f={count:f,size:e,lang:d.Ji,text:d.Li},d.Uf&&(f.via=d.Uf),d.Tf&&(f.hashtags=d.Tf),a.widgets.createShareButton(d.Ki,d.q,function(){n(d)},f)):2===d.Mi?(f={count:f,size:e,lang:d.Ji,text:d.Li},d.Uf&&(f.via=d.Uf),d.Tf&&(f.hashtags=d.Tf),a.widgets.createMentionButton(d.Ki,d.q,
function(){n(d)},f)):3===d.Mi&&(f={count:f,size:e,lang:d.Ji,text:d.Li},d.Uf&&(f.via=d.Uf),d.Tf&&(f.hashtags=d.Tf),a.widgets.createHashtagButton(d.Ki,d.q,function(){n(d)},f))}function n(a){a.b.trigger(yc.prototype.p.qr,a)}function d(){}function q(){}var r=yc.prototype;r.Ga=function(a){this.Aa=a;this.b=a.b};r.Ga.prototype.Y=function(){};r.ta=function(a){this.type=a;this.b=a.b};var t=r.ta.prototype,c=!0;t.Y=function(){if(this.b.pa)ea("[Construct 2] Twitter plugin not supported on this platform - the object will not be created");
else{this.q=document.createElement("div");jQuery(this.q).appendTo(this.b.Vf?this.b.Vf:"body");this.$b=!1;this.Mi=this.A[0];this.Ki=this.A[1];this.Li=this.A[2];this.Uf=this.A[3];this.Tf=this.A[4];0===this.A[5]&&(jQuery(this.q).hide(),this.visible=!1,this.$b=!0);this.Pn=this.A[6];this.ds=this.A[7];this.Ji=this.A[8]||"en";this.Ah=this.Bh=this.vh=this.yh=this.zh=this.wh=0;this.mi(!0);this.b.ki(this);var a=this;window.twttr?c?window.twttr.ready(function(c){f(c,a)}):f(window.twttr,a):(window.twttr=function(a,
c,d){var b,f=a.getElementsByTagName(c)[0];if(!a.getElementById(d))return a=a.createElement(c),a.id=d,a.src="https://platform.twitter.com/widgets.js",f.parentNode.insertBefore(a,f),window.twttr||(b={Sr:[],ready:function(a){b.Sr.push(a)}})}(document,"script","twitter-wjs"),window.twttr.ready(function(c){f(c,a)}))}};t.rb=function(){return{}};t.Hb=function(){};t.ge=function(){this.b.pa||(jQuery(this.q).remove(),this.q=null)};t.Za=function(){this.mi()};t.mi=function(a){if(!this.b.pa){var c=this.j.ka(this.x,
this.y,!0),d=this.j.ka(this.x,this.y,!1),e=this.j.ka(this.x+this.width,this.y+this.height,!0),b=this.j.ka(this.x+this.width,this.y+this.height,!1);if(!this.visible||!this.j.visible||0>=e||0>=b||c>=this.b.width||d>=this.b.height)this.$b||jQuery(this.q).hide(),this.$b=!0;else{1>c&&(c=1);1>d&&(d=1);e>=this.b.width&&(e=this.b.width-1);b>=this.b.height&&(b=this.b.height-1);var f=window.innerWidth,g=window.innerHeight;a||this.wh!==c||this.zh!==d||this.yh!==e||this.vh!==b||this.Bh!==f||this.Ah!==g?(this.wh=
c,this.zh=d,this.yh=e,this.vh=b,this.Bh=f,this.Ah=g,this.$b&&(jQuery(this.q).show(),this.$b=!1),a=Math.round(c)+jQuery(this.b.canvas).offset().left,f=Math.round(d)+jQuery(this.b.canvas).offset().top,jQuery(this.q).css("position","absolute"),jQuery(this.q).offset({left:a,top:f}),jQuery(this.q).width(Math.round(e-c)),jQuery(this.q).height(Math.round(b-d))):this.$b&&(jQuery(this.q).show(),this.$b=!1)}}};t.Bc=function(){};t.tb=function(){};d.prototype.qr=function(){return!0};r.p=new d;q.prototype.Og=
function(a){this.b.pa||(this.visible=0!==a)};q.prototype.Pk=function(a){this.Li=a};r.G=new q;r.Ia=new function(){}})();function zc(f){this.b=f}
(function(){var f=zc.prototype;f.Ga=function(d){this.behavior=d;this.b=d.b};f.Ga.prototype.Y=function(){};f.ta=function(d,f){this.type=d;this.behavior=d.behavior;this.m=f;this.b=d.b};var n=f.ta.prototype;n.Y=function(){var d=this.A[0];this.yi=this.A[1];this.jj=this.A[2];this.bs=0!==this.A[3];this.Pm=0!==this.A[4];this.Sb=Math.cos(this.m.n)*d;this.ub=Math.sin(this.m.n)*d;this.Ej=this.m.x;this.Fj=this.m.y;this.sg=this.m.n;this.Bk=0;this.enabled=0!==this.A[5]};n.rb=function(){return{acc:this.yi,g:this.jj,
dx:this.Sb,dy:this.ub,lx:this.Ej,ly:this.Fj,lka:this.sg,t:this.Bk,e:this.enabled}};n.Hb=function(d){this.yi=d.acc;this.jj=d.g;this.Sb=d.dx;this.ub=d.dy;this.Ej=d.lx;this.Fj=d.ly;this.sg=d.lka;this.Bk=d.t;this.enabled=d.e};n.Za=function(){if(this.enabled){var d=this.b.nj(this.m),f,n;this.m.n!==this.sg&&(this.Pm&&(f=Za(0,0,this.Sb,this.ub),this.Sb=Math.cos(this.m.n)*f,this.ub=Math.sin(this.m.n)*f),this.sg=this.m.n);0!==this.yi&&(f=Za(0,0,this.Sb,this.ub),n=0===this.Sb&&0===this.ub?this.m.n:Qa(0,0,this.Sb,
this.ub),f+=this.yi*d,0>f&&(f=0),this.Sb=Math.cos(n)*f,this.ub=Math.sin(n)*f);0!==this.jj&&(this.ub+=this.jj*d);this.Ej=this.m.x;this.Fj=this.m.y;if(0!==this.Sb||0!==this.ub)if(this.m.x+=this.Sb*d,this.m.y+=this.ub*d,this.Bk+=Za(0,0,this.Sb*d,this.ub*d),this.Pm&&(this.m.n=Qa(0,0,this.Sb,this.ub),this.m.Z(),this.sg=this.m.n),this.m.Z(),this.bs&&(f=this.b.Kf(this.m)))this.b.lv(this.m,f),f=Za(0,0,this.Sb,this.ub),n=this.b.gs(this.m,this.Ej,this.Fj),this.Sb=Math.cos(n)*f,this.ub=Math.sin(n)*f,this.m.x+=
this.Sb*d,this.m.y+=this.ub*d,this.m.Z(),this.Pm&&(this.sg=this.m.n=n,this.m.Z()),this.b.hv(this.m,this.Sb/f,this.ub/f,Math.max(2.5*f*d,30))||this.b.iv(this.m)}};f.p=new function(){};f.G=new function(){};f.Ia=new function(){}})();function Ac(f){this.b=f}
(function(){var f=Ac.prototype;f.Ga=function(d){this.behavior=d;this.b=d.b};f.Ga.prototype.Y=function(){};f.ta=function(d,f){this.type=d;this.behavior=d.behavior;this.m=f;this.b=d.b};var n=f.ta.prototype;n.Y=function(){this.lc={}};n.ge=function(){bb(this.lc)};n.rb=function(){var d={},f,n;for(f in this.lc)this.lc.hasOwnProperty(f)&&(n=this.lc[f],d[f]={c:n.current.J,t:n.total.J,d:n.duration,r:n.Jp});return d};n.Hb=function(d){this.lc={};for(var f in d)d.hasOwnProperty(f)&&(this.lc[f]={current:new gb,
total:new gb,duration:d[f].d,Jp:d[f].r},this.lc[f].current.J=d[f].c,this.lc[f].total.J=d[f].t)};n.Za=function(){var d=this.b.nj(this.m),f,n;for(f in this.lc)this.lc.hasOwnProperty(f)&&(n=this.lc[f],n.current.add(d),n.total.add(d))};n.xk=function(){var d,f;for(d in this.lc)this.lc.hasOwnProperty(d)&&(f=this.lc[d],f.current.J>=f.duration&&(f.Jp?f.current.J-=f.duration:delete this.lc[d]))};f.p=new function(){};f.G=new function(){};f.Ia=new function(){}})();function Bc(f){this.b=f}
(function(){var f=Bc.prototype;f.Ga=function(f){this.behavior=f;this.b=f.b};f.Ga.prototype.Y=function(){};f.ta=function(f,d){this.type=f;this.behavior=f.behavior;this.m=d;this.b=f.b;this.mode=0};f=f.ta.prototype;f.Y=function(){this.mode=this.A[0]};f.Za=function(){};f.xk=function(){this.m.Ca();var f=this.m.Ha,d=this.m.j.eb,q=!1;0===this.mode?(0>this.m.x&&(this.m.x=0,q=!0),0>this.m.y&&(this.m.y=0,q=!0),this.m.x>d.width&&(this.m.x=d.width,q=!0),this.m.y>d.height&&(this.m.y=d.height,q=!0)):(0>f.left&&
(this.m.x-=f.left,q=!0),0>f.top&&(this.m.y-=f.top,q=!0),f.right>d.width&&(this.m.x-=f.right-d.width,q=!0),f.bottom>d.height&&(this.m.y-=f.bottom-d.height,q=!0));q&&this.m.Z()}})();
function pc(){return[qc,rc,sc,vc,uc,Y,yc,wc,tc,Bc,zc,Ac,X.prototype.p.Cn,qc.prototype.G.Play,sc.prototype.p.zn,tc.prototype.p.un,X.prototype.G.Nr,tc.prototype.G.xr,X.prototype.Ia.rv,tc.prototype.G.En,X.prototype.G.gr,X.prototype.G.Wq,X.prototype.G.Dr,X.prototype.p.Bn,qc.prototype.G.Jr,tc.prototype.G.Pk,rc.prototype.Ia.Vq,X.prototype.p.Zq,tc.prototype.G.Og,X.prototype.G.Ar,Y.prototype.G.Br,X.prototype.p.Nq,Y.prototype.G.En,X.prototype.G.Jq,tc.prototype.p.vn,sc.prototype.p.Mk,qc.prototype.G.Ir,sc.prototype.p.$q,
Y.prototype.G.Hr,Y.prototype.G.ur,Y.prototype.p.mr,Y.prototype.G.Rq,X.prototype.p.Uq,Y.prototype.p.un,Y.prototype.G.Fr,Y.prototype.Ia.Qr,Y.prototype.p.br,Y.prototype.p.Oq,Y.prototype.p.Pq,Y.prototype.G.Gr,Y.prototype.G.fr,vc.prototype.G.Og,X.prototype.Ia["int"],tc.prototype.Ia.Text,Y.prototype.G.Kr,X.prototype.G.Lr,X.prototype.p.Tq,X.prototype.p.sr,Y.prototype.G.tr,Y.prototype.Ia.Rr,Y.prototype.p.cr,Y.prototype.G.Og,Y.prototype.G.yr,Y.prototype.G.Cr,Y.prototype.p.yn,rc.prototype.G.Iq,X.prototype.Ia.Jv]}
;