-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathc2runtime.js
470 lines (470 loc) · 227 KB
/
c2runtime.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
// Generated by Construct 2, the HTML5 game and app creator :: https://www.construct.net
'use strict';var aa,ba,ca,da,ea,ha,ia,ja,ka,la,ma,oa,pa,qa,B,ra,sa,ta,ua,va,xa,ya,M,za,Aa,Ba,Ca,Da,U,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,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={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(g){return g.__proto__}:function(g){return g.constructor.prototype});
(function(){function g(a,c,b,f){this.set(a,c,b,f)}function n(){this.Na=this.Ma=this.Pa=this.Oa=this.Sa=this.Ra=this.Aa=this.za=0}function l(a,c,b,f){a<c?b<f?(u=a<b?a:b,w=c>f?c:f):(u=a<f?a:f,w=c>b?c:b):b<f?(u=c<b?c:b,w=a>f?a:f):(u=c<f?c:f,w=a>b?a:b)}function r(){this.items=this.Hd=null;this.Wh=0;C&&(this.Hd=new Set);this.$g=[];this.Ae=!0}function p(a){x[R++]=a}function t(){this.ka=this.Xk=this.y=this.qh=0}function h(a){this.ra=[];this.oj=this.qj=this.rj=this.pj=0;this.Fi(a)}function a(a,c){this.ab=
a;this.ib=c;this.cells={}}function b(a,c){this.ab=a;this.ib=c;this.cells={}}function d(a,c,b){var f;return G.length?(f=G.pop(),f.mm=a,f.x=c,f.y=b,f):new aa(a,c,b)}function c(a,c,b){this.mm=a;this.x=c;this.y=b;this.ob=new ba}function f(a,c,b){var f;return F.length?(f=F.pop(),f.mm=a,f.x=c,f.y=b,f):new ca(a,c,b)}function e(a,c,b){this.mm=a;this.x=c;this.y=b;this.ob=[];this.Ag=!0;this.Dd=new ba;this.mh=!1}function k(a,c){return a.nd-c.nd}da=function(a){window.console&&window.console.log&&window.console.log(a)};
ea=function(a){window.console&&window.console.error&&window.console.error(a)};ha=function(a){return"undefined"===typeof a};ia=function(a){return"number"===typeof a};ja=function(a){return"string"===typeof a};ka=function(a){return 0<a&&0===(a-1&a)};la=function(a){--a;for(var c=1;32>c;c<<=1)a=a|a>>c;return a+1};ma=function(a){return 0>a?-a:a};oa=function(a,c){return a>c?a:c};pa=function(a,c){return a<c?a:c};qa=Math.PI;B=function(a){return 0<=a?a|0:(a|0)-1};ra=function(a){var c=a|0;return c===a?c:c+1};
sa=function(a,c,b,f,m,k,e,d){var v,y,z,q;a<b?(y=a,v=b):(y=b,v=a);m<e?(q=m,z=e):(q=e,z=m);if(v<q||y>z)return!1;c<f?(y=c,v=f):(y=f,v=c);k<d?(q=k,z=d):(q=d,z=k);if(v<q||y>z)return!1;v=m-a+e-b;y=k-c+d-f;a=b-a;c=f-c;m=e-m;k=d-k;d=ma(c*m-k*a);return ma(m*y-k*v)>d?!1:ma(a*y-c*v)<=d};g.prototype.set=function(a,c,b,f){this.left=a;this.top=c;this.right=b;this.bottom=f};g.prototype.ig=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};g.prototype.width=function(){return this.right-
this.left};g.prototype.height=function(){return this.bottom-this.top};g.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};g.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};g.prototype.Cv=function(a){return!(a.right<this.left||a.bottom<this.top||a.left>this.right||a.top>this.bottom)};g.prototype.Dv=function(a,c,b){return!(a.right+
c<this.left||a.bottom+b<this.top||a.left+c>this.right||a.top+b>this.bottom)};g.prototype.Rb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};g.prototype.zh=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};ta=g;n.prototype.Ei=function(a){this.za=a.left;this.Aa=a.top;this.Ra=a.right;this.Sa=a.top;this.Oa=a.right;this.Pa=a.bottom;this.Ma=a.left;this.Na=a.bottom};n.prototype.Tq=function(a,c){if(0===c)this.Ei(a);else{var b=
Math.sin(c),f=Math.cos(c),m=a.left*b,k=a.top*b,e=a.right*b,b=a.bottom*b,d=a.left*f,v=a.top*f,y=a.right*f,f=a.bottom*f;this.za=d-k;this.Aa=v+m;this.Ra=y-k;this.Sa=v+e;this.Oa=y-b;this.Pa=f+e;this.Ma=d-b;this.Na=f+m}};n.prototype.offset=function(a,c){this.za+=a;this.Aa+=c;this.Ra+=a;this.Sa+=c;this.Oa+=a;this.Pa+=c;this.Ma+=a;this.Na+=c;return this};var u=0,w=0;n.prototype.Ao=function(a){l(this.za,this.Ra,this.Oa,this.Ma);a.left=u;a.right=w;l(this.Aa,this.Sa,this.Pa,this.Na);a.top=u;a.bottom=w};n.prototype.Rb=
function(a,c){var b=this.za,f=this.Aa,m=this.Ra-b,k=this.Sa-f,e=this.Oa-b,d=this.Pa-f,v=a-b,y=c-f,z=m*m+k*k,q=m*e+k*d,k=m*v+k*y,h=e*e+d*d,x=e*v+d*y,u=1/(z*h-q*q),m=(h*k-q*x)*u,z=(z*x-q*k)*u;if(0<=m&&0<z&&1>m+z)return!0;m=this.Ma-b;k=this.Na-f;z=m*m+k*k;q=m*e+k*d;k=m*v+k*y;u=1/(z*h-q*q);m=(h*k-q*x)*u;z=(z*x-q*k)*u;return 0<=m&&0<z&&1>m+z};n.prototype.Rc=function(a,c){if(c)switch(a){case 0:return this.za;case 1:return this.Ra;case 2:return this.Oa;case 3:return this.Ma;case 4:return this.za;default:return this.za}else switch(a){case 0:return this.Aa;
case 1:return this.Sa;case 2:return this.Pa;case 3:return this.Na;case 4:return this.Aa;default:return this.Aa}};n.prototype.fq=function(){return(this.za+this.Ra+this.Oa+this.Ma)/4};n.prototype.gq=function(){return(this.Aa+this.Sa+this.Pa+this.Na)/4};n.prototype.up=function(a){var c=a.fq(),b=a.gq();if(this.Rb(c,b))return!0;c=this.fq();b=this.gq();if(a.Rb(c,b))return!0;var f,m,k,e,d,v,y,z;for(y=0;4>y;y++)for(z=0;4>z;z++)if(c=this.Rc(y,!0),b=this.Rc(y,!1),f=this.Rc(y+1,!0),m=this.Rc(y+1,!1),k=a.Rc(z,
!0),e=a.Rc(z,!1),d=a.Rc(z+1,!0),v=a.Rc(z+1,!1),sa(c,b,f,m,k,e,d,v))return!0;return!1};ua=n;va=function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b]);return a};xa=function(a,c){var b,f;c=B(c);if(!(0>c||c>=a.length)){b=c;for(f=a.length-1;b<f;b++)a[b]=a[b+1];ya(a,f)}};ya=function(a,c){a.length=c};M=function(a){ya(a,0)};za=function(a,c){M(a);var b,f;b=0;for(f=c.length;b<f;++b)a[b]=c[b]};Aa=function(a,c){a.push.apply(a,c)};Ba=function(a,c){var b,f;b=0;for(f=a.length;b<f;++b)if(a[b]===c)return b;
return-1};Ca=function(a,c){var b=Ba(a,c);-1!==b&&xa(a,b)};Da=function(a,c,b){return a<c?c:a>b?b:a};U=function(a){return a/(180/qa)};Ea=function(a){return 180/qa*a};Fa=function(a){a%=360;0>a&&(a+=360);return a};Ga=function(a){a%=2*qa;0>a&&(a+=2*qa);return a};Ha=function(a){return Fa(Ea(a))};Ia=function(a){return Ga(U(a))};Ja=function(a,c,b,f){return Math.atan2(f-c,b-a)};Ka=function(a,c){if(a===c)return 0;var b=Math.sin(a),f=Math.cos(a),m=Math.sin(c),k=Math.cos(c),b=b*m+f*k;return 1<=b?0:-1>=b?qa:Math.acos(b)};
La=function(a,c,b){var f=Math.sin(a),m=Math.cos(a),k=Math.sin(c),e=Math.cos(c);return Math.acos(f*k+m*e)>b?0<m*k-f*e?Ga(a+b):Ga(a-b):Ga(c)};Ma=function(a,c){var b=Math.sin(a),f=Math.cos(a),m=Math.sin(c),k=Math.cos(c);return 0>=f*m-b*k};Na=function(a,c,b,f){a=b-a;c=f-c;return Math.sqrt(a*a+c*c)};Oa=function(a,c){return!a!==!c};Pa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Qa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var q=+new Date;Ra=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()-q};var m=!1,v=m=!1,T=!1;"undefined"!==typeof window&&(m=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),m=!m&&/safari/i.test(navigator.userAgent),v=/(iphone|ipod|ipad)/i.test(navigator.userAgent),T=window.c2ejecta);
var C=!m&&!T&&!v&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;r.prototype.contains=function(a){return this.Zd()?!1:C?this.Hd.has(a):this.items&&this.items.hasOwnProperty(a)};r.prototype.add=function(a){if(C)this.Hd.has(a)||(this.Hd.add(a),this.Ae=!1);else{var c=a.toString(),b=this.items;b?b.hasOwnProperty(c)||(b[c]=a,this.Wh++,this.Ae=!1):(this.items={},this.items[c]=a,this.Wh=1,this.Ae=!1)}};r.prototype.remove=function(a){if(!this.Zd())if(C)this.Hd.has(a)&&(this.Hd["delete"](a),
this.Ae=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Wh--,this.Ae=!1)}};r.prototype.clear=function(){this.Zd()||(C?this.Hd.clear():(this.items=null,this.Wh=0),M(this.$g),this.Ae=!0)};r.prototype.Zd=function(){return 0===this.count()};r.prototype.count=function(){return C?this.Hd.size:this.Wh};var x=null,R=0;r.prototype.Hw=function(){if(!this.Ae){if(C)M(this.$g),x=this.$g,R=0,this.Hd.forEach(p),x=null,R=0;else{var a=this.$g;M(a);var c,b=0,f=this.items;
if(f)for(c in f)f.hasOwnProperty(c)&&(a[b++]=f[c])}this.Ae=!0}};r.prototype.kf=function(){this.Hw();return this.$g};ba=r;new ba;Sa=function(a,c){C?Ta(a,c.Hd):Ua(a,c.kf())};Ta=function(a,c){var b,f,m,k;f=b=0;for(m=a.length;b<m;++b)k=a[b],c.has(k)||(a[f++]=k);ya(a,f)};Ua=function(a,c){var b,f,m,k;f=b=0;for(m=a.length;b<m;++b)k=a[b],-1===Ba(c,k)&&(a[f++]=k);ya(a,f)};t.prototype.add=function(a){this.y=a-this.qh;this.Xk=this.ka+this.y;this.qh=this.Xk-this.ka-this.y;this.ka=this.Xk};t.prototype.reset=function(){this.ka=
this.Xk=this.y=this.qh=0};Va=t;Wa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};h.prototype.Fi=function(a){this.zq=a;this.lc=a.length/2;this.ra.length=a.length;this.tj=this.uj=-1;this.Do=0};h.prototype.yg=function(){return!this.zq.length};h.prototype.ua=function(){for(var a=this.ra,c=a[0],b=c,f=a[1],m=f,k,e,d=1,v=this.lc;d<v;++d)e=2*d,k=a[e],e=a[e+1],k<c&&(c=k),k>b&&(b=k),e<f&&(f=e),e>m&&(m=e);this.pj=c;this.qj=b;this.rj=f;this.oj=m};h.prototype.Ei=function(a,c,b){this.ra.length=
8;this.lc=4;var f=this.ra;f[0]=a.left-c;f[1]=a.top-b;f[2]=a.right-c;f[3]=a.top-b;f[4]=a.right-c;f[5]=a.bottom-b;f[6]=a.left-c;f[7]=a.bottom-b;this.uj=a.right-a.left;this.tj=a.bottom-a.top;this.ua()};h.prototype.Ug=function(a,c,b,f,m){this.ra.length=8;this.lc=4;var k=this.ra;k[0]=a.za-c;k[1]=a.Aa-b;k[2]=a.Ra-c;k[3]=a.Sa-b;k[4]=a.Oa-c;k[5]=a.Pa-b;k[6]=a.Ma-c;k[7]=a.Na-b;this.uj=f;this.tj=m;this.ua()};h.prototype.Sq=function(a){this.lc=a.lc;za(this.ra,a.ra);this.pj=a.pj;this.rj=a.rj;this.qj=a.qj;this.oj=
a.oj};h.prototype.tf=function(a,c,b){if(this.uj!==a||this.tj!==c||this.Do!==b){this.uj=a;this.tj=c;this.Do=b;var f,m,k,e,d,v=0,y=1,z=this.zq,q=this.ra;0!==b&&(v=Math.sin(b),y=Math.cos(b));b=0;for(k=this.lc;b<k;b++)f=2*b,m=f+1,e=z[f]*a,d=z[m]*c,q[f]=e*y-d*v,q[m]=d*y+e*v;this.ua()}};h.prototype.Rb=function(a,c){var b=this.ra;if(a===b[0]&&c===b[1])return!0;var f,m,k,e=this.lc,d=this.pj-110,v=this.rj-101,y=this.qj+131,z=this.oj+120,q,h,x=0,u=0;for(f=0;f<e;f++)m=2*f,k=(f+1)%e*2,q=b[m],m=b[m+1],h=b[k],
k=b[k+1],sa(d,v,a,c,q,m,h,k)&&x++,sa(y,z,a,c,q,m,h,k)&&u++;return 1===x%2||1===u%2};h.prototype.Qh=function(a,c,b){var f=a.ra,m=this.ra;if(this.Rb(f[0]+c,f[1]+b)||a.Rb(m[0]-c,m[1]-b))return!0;var k,e,d,v,y,z,q,h,x,u,w,g;k=0;for(v=this.lc;k<v;k++)for(e=2*k,d=(k+1)%v*2,h=m[e],e=m[e+1],x=m[d],u=m[d+1],d=0,q=a.lc;d<q;d++)if(y=2*d,z=(d+1)%q*2,w=f[y]+c,y=f[y+1]+b,g=f[z]+c,z=f[z+1]+b,sa(h,e,x,u,w,y,g,z))return!0;return!1};h.prototype.Tv=function(a){var c,b,f;c=0;for(b=this.lc;c<b;++c)f=2*c,this.ra[f]=2*
a-this.ra[f]};h.prototype.Pu=function(a){var c,b,f;c=0;for(b=this.lc;c<b;++c)f=2*c+1,this.ra[f]=2*a-this.ra[f]};h.prototype.Gt=function(){var a,c,b,f,m;a=0;for(c=this.lc;a<c;++a)b=2*a,f=b+1,m=this.ra[b],this.ra[b]=this.ra[f],this.ra[f]=m};Xa=h;a.prototype.Ke=function(a,c,b){var f;f=this.cells[a];return f?(f=f[c])?f:b?(f=d(this,a,c),this.cells[a][c]=f):null:b?(f=d(this,a,c),this.cells[a]={},this.cells[a][c]=f):null};a.prototype.Pb=function(a){return B(a/this.ab)};a.prototype.Qb=function(a){return B(a/
this.ib)};a.prototype.update=function(a,c,b){var f,m,k,e,d;if(c)for(f=c.left,m=c.right;f<=m;++f)for(k=c.top,e=c.bottom;k<=e;++k)if(!b||!b.Rb(f,k))if(d=this.Ke(f,k,!1))d.remove(a),d.Zd()&&(d.ob.clear(),1E3>G.length&&G.push(d),this.cells[f][k]=null);if(b)for(f=b.left,m=b.right;f<=m;++f)for(k=b.top,e=b.bottom;k<=e;++k)c&&c.Rb(f,k)||this.Ke(f,k,!0).tm(a)};a.prototype.Gk=function(a,c){var b,f,m,k,e,d;b=this.Pb(a.left);m=this.Qb(a.top);f=this.Pb(a.right);for(e=this.Qb(a.bottom);b<=f;++b)for(k=m;k<=e;++k)(d=
this.Ke(b,k,!1))&&d.dump(c)};Ya=a;b.prototype.Ke=function(a,c,b){var k;k=this.cells[a];return k?(k=k[c])?k:b?(k=f(this,a,c),this.cells[a][c]=k):null:b?(k=f(this,a,c),this.cells[a]={},this.cells[a][c]=k):null};b.prototype.Pb=function(a){return B(a/this.ab)};b.prototype.Qb=function(a){return B(a/this.ib)};b.prototype.update=function(a,c,b){var f,k,m,e,d;if(c)for(f=c.left,k=c.right;f<=k;++f)for(m=c.top,e=c.bottom;m<=e;++m)if(!b||!b.Rb(f,m))if(d=this.Ke(f,m,!1))d.remove(a),d.Zd()&&(d.reset(),1E3>F.length&&
F.push(d),this.cells[f][m]=null);if(b)for(f=b.left,k=b.right;f<=k;++f)for(m=b.top,e=b.bottom;m<=e;++m)c&&c.Rb(f,m)||this.Ke(f,m,!0).tm(a)};b.prototype.Gk=function(a,c,b,f,k){var m,e;a=this.Pb(a);c=this.Qb(c);b=this.Pb(b);for(m=this.Qb(f);a<=b;++a)for(f=c;f<=m;++f)(e=this.Ke(a,f,!1))&&e.dump(k)};b.prototype.Rv=function(a){var c,b,f,k,m;c=a.left;f=a.top;b=a.right;for(k=a.bottom;c<=b;++c)for(a=f;a<=k;++a)if(m=this.Ke(c,a,!1))m.Ag=!1};Za=b;var G=[];c.prototype.Zd=function(){return this.ob.Zd()};c.prototype.tm=
function(a){this.ob.add(a)};c.prototype.remove=function(a){this.ob.remove(a)};c.prototype.dump=function(a){Aa(a,this.ob.kf())};aa=c;var F=[];e.prototype.Zd=function(){if(!this.ob.length)return!0;if(this.ob.length>this.Dd.count())return!1;this.Wl();return!0};e.prototype.tm=function(a){this.Dd.contains(a)?(this.Dd.remove(a),this.Dd.Zd()&&(this.mh=!1)):this.ob.length?(this.ob[this.ob.length-1].zd()>a.zd()&&(this.Ag=!1),this.ob.push(a)):(this.ob.push(a),this.Ag=!0)};e.prototype.remove=function(a){this.Dd.add(a);
this.mh=!0;30<=this.Dd.count()&&this.Wl()};e.prototype.Wl=function(){this.mh&&(this.Dd.count()===this.ob.length?this.reset():(Sa(this.ob,this.Dd),this.Dd.clear(),this.mh=!1))};e.prototype.hu=function(){this.Ag||(this.ob.sort(k),this.Ag=!0)};e.prototype.reset=function(){M(this.ob);this.Ag=!0;this.Dd.clear();this.mh=!1};e.prototype.dump=function(a){this.Wl();this.hu();this.ob.length&&a.push(this.ob)};ca=e;var I="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");
$a=function(a){return 0>=a||11<=a?"source-over":I[a-1]};ab=function(a,c,b){if(b)switch(a.Eb=b.ONE,a.Bb=b.ONE_MINUS_SRC_ALPHA,c){case 1:a.Eb=b.ONE;a.Bb=b.ONE;break;case 3:a.Eb=b.ONE;a.Bb=b.ZERO;break;case 4:a.Eb=b.ONE_MINUS_DST_ALPHA;a.Bb=b.ONE;break;case 5:a.Eb=b.DST_ALPHA;a.Bb=b.ZERO;break;case 6:a.Eb=b.ZERO;a.Bb=b.SRC_ALPHA;break;case 7:a.Eb=b.ONE_MINUS_DST_ALPHA;a.Bb=b.ZERO;break;case 8:a.Eb=b.ZERO;a.Bb=b.ONE_MINUS_SRC_ALPHA;break;case 9:a.Eb=b.DST_ALPHA;a.Bb=b.ONE_MINUS_SRC_ALPHA;break;case 10:a.Eb=
b.ONE_MINUS_DST_ALPHA,a.Bb=b.SRC_ALPHA}};bb=function(a){return Math.round(1E6*a)/1E6};cb=function(a,c){return"string"!==typeof a||"string"!==typeof c||a.length!==c.length?!1:a===c?!0:a.toLowerCase()===c.toLowerCase()};db=function(a){a=a.target;return!a||a===document||a===window||document&&document.body&&a===document.body||cb(a.tagName,"canvas")?!0:!1}})();var Vb="undefined"!==typeof Float32Array?Float32Array:Array;function Wb(g){var n=new Vb(3);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2]);return n}
function Xb(g){var n=new Vb(16);g&&(n[0]=g[0],n[1]=g[1],n[2]=g[2],n[3]=g[3],n[4]=g[4],n[5]=g[5],n[6]=g[6],n[7]=g[7],n[8]=g[8],n[9]=g[9],n[10]=g[10],n[11]=g[11],n[12]=g[12],n[13]=g[13],n[14]=g[14],n[15]=g[15]);return n}function Yb(g,n){n[0]=g[0];n[1]=g[1];n[2]=g[2];n[3]=g[3];n[4]=g[4];n[5]=g[5];n[6]=g[6];n[7]=g[7];n[8]=g[8];n[9]=g[9];n[10]=g[10];n[11]=g[11];n[12]=g[12];n[13]=g[13];n[14]=g[14];n[15]=g[15]}
function Zb(g,n){var l=n[0],r=n[1];n=n[2];g[0]*=l;g[1]*=l;g[2]*=l;g[3]*=l;g[4]*=r;g[5]*=r;g[6]*=r;g[7]*=r;g[8]*=n;g[9]*=n;g[10]*=n;g[11]*=n}
function $b(g,n,l,r){r||(r=Xb());var p,t,h,a,b,d,c,f,e=g[0],k=g[1];g=g[2];t=l[0];h=l[1];p=l[2];l=n[1];d=n[2];e===n[0]&&k===l&&g===d?(g=r,g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1):(l=e-n[0],d=k-n[1],c=g-n[2],f=1/Math.sqrt(l*l+d*d+c*c),l*=f,d*=f,c*=f,n=h*c-p*d,p=p*l-t*c,t=t*d-h*l,(f=Math.sqrt(n*n+p*p+t*t))?(f=1/f,n*=f,p*=f,t*=f):t=p=n=0,h=d*t-c*p,a=c*n-l*t,b=l*p-d*n,(f=Math.sqrt(h*h+a*a+b*b))?(f=1/f,h*=f,a*=f,b*=f):b=a=h=0,
r[0]=n,r[1]=h,r[2]=l,r[3]=0,r[4]=p,r[5]=a,r[6]=d,r[7]=0,r[8]=t,r[9]=b,r[10]=c,r[11]=0,r[12]=-(n*e+p*k+t*g),r[13]=-(h*e+a*k+b*g),r[14]=-(l*e+d*k+c*g),r[15]=1)}
(function(){function g(a,b,d){this.Pe=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.qa=!!d;this.$j=this.Rh=!1;this.Fj=0;this.il=1;this.Sn=1E3;this.Ow=(this.Sn-this.il)/32768;this.zl=Wb([0,0,100]);this.Op=Wb([0,0,0]);this.pr=Wb([0,1,0]);this.Zi=Wb([1,1,1]);this.Po=!0;this.tk=Xb();this.vc=Xb();this.Hm=Xb();this.Jl=Xb();this.A=a;this.version=0===this.A.getParameter(this.A.VERSION).indexOf("WebGL 2")?2:1;this.qp()}function n(a,b,d){this.A=a;this.Gi=
b;this.name=d;this.Cc=a.getAttribLocation(b,"aPos");this.Xe=a.getAttribLocation(b,"aTex");this.Mp=a.getUniformLocation(b,"matP");this.pk=a.getUniformLocation(b,"matMV");this.Kg=a.getUniformLocation(b,"opacity");this.Nm=a.getUniformLocation(b,"colorFill");this.Np=a.getUniformLocation(b,"samplerFront");this.ci=a.getUniformLocation(b,"samplerBack");this.Pf=a.getUniformLocation(b,"destStart");this.Of=a.getUniformLocation(b,"destEnd");this.ei=a.getUniformLocation(b,"seconds");this.Pm=a.getUniformLocation(b,
"pixelWidth");this.Om=a.getUniformLocation(b,"pixelHeight");this.bi=a.getUniformLocation(b,"layerScale");this.ai=a.getUniformLocation(b,"layerAngle");this.fi=a.getUniformLocation(b,"viewOrigin");this.di=a.getUniformLocation(b,"scrollPos");this.yv=!!(this.Pm||this.Om||this.ei||this.ci||this.Pf||this.Of||this.bi||this.ai||this.fi||this.di);this.Wp=this.Xp=-999;this.sk=1;this.Sp=this.Rp=0;this.Up=this.Qp=this.Pp=1;this.$p=this.Zp=this.Yp=this.bq=this.aq=this.Tp=0;this.Gm=[];this.Vp=Xb();this.Kg&&a.uniform1f(this.Kg,
1);this.Nm&&a.uniform4f(this.Nm,1,1,1,1);this.Np&&a.uniform1i(this.Np,0);this.ci&&a.uniform1i(this.ci,1);this.Pf&&a.uniform2f(this.Pf,0,0);this.Of&&a.uniform2f(this.Of,1,1);this.bi&&a.uniform1f(this.bi,1);this.ai&&a.uniform1f(this.ai,0);this.fi&&a.uniform2f(this.fi,0,0);this.di&&a.uniform2f(this.di,0,0);this.ei&&a.uniform1f(this.ei,0);this.Ff=!1}function l(a,b){return a[0]===b[0]&&a[1]===b[1]&&a[2]===b[2]&&a[3]===b[3]&&a[4]===b[4]&&a[5]===b[5]&&a[6]===b[6]&&a[7]===b[7]&&a[8]===b[8]&&a[9]===b[9]&&
a[10]===b[10]&&a[11]===b[11]&&a[12]===b[12]&&a[13]===b[13]&&a[14]===b[14]&&a[15]===b[15]}function r(a,b){this.type=a;this.p=b;this.A=b.A;this.tc=this.Fb=this.qq=0;this.T=this.Lc=null;this.Uq=[]}var p=Xb();g.prototype.qp=function(){var a=this.A,b;this.Hp=1;this.Jf=this.Ue=null;this.Ej=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.qa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)):
a.disable(a.DEPTH_TEST);this.Ip=a.ONE;this.Gp=a.ONE_MINUS_SRC_ALPHA;this.Xi=new Float32Array(8E3*(this.qa?3:2));this.Li=new Float32Array(16E3);this.vq=new Float32Array(32E3);this.cn=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.cn);a.bufferData(a.ARRAY_BUFFER,this.vq.byteLength,a.DYNAMIC_DRAW);this.Wi=Array(4);this.Ki=Array(4);for(b=0;4>b;b++)this.Wi[b]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.Wi[b]),a.bufferData(a.ARRAY_BUFFER,this.Xi.byteLength,a.DYNAMIC_DRAW),this.Ki[b]=a.createBuffer(),
a.bindBuffer(a.ARRAY_BUFFER,this.Ki[b]),a.bufferData(a.ARRAY_BUFFER,this.Li.byteLength,a.DYNAMIC_DRAW);this.Qd=0;this.Av=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Av);for(var d=new Uint16Array(12E3),c=b=0;12E3>b;)d[b++]=c,d[b++]=c+1,d[b++]=c+2,d[b++]=c,d[b++]=c+2,d[b++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,d,a.STATIC_DRAW);this.dn=this.hf=this.Nc=0;this.La=[];b=this.qa?"attribute highp vec3 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, aPos.z, 1.0);\n\tvTex = aTex;\n}":
"attribute highp vec2 aPos;\nattribute mediump vec2 aTex;\nvarying mediump vec2 vTex;\nuniform highp mat4 matP;\nuniform highp mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPos.x, aPos.y, 0.0, 1.0);\n\tvTex = aTex;\n}";d=this.vh({src:"varying mediump vec2 vTex;\nuniform lowp float opacity;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex);\n\tgl_FragColor *= opacity;\n}"},b,"<default>");this.La.push(d);d=this.vh({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.La.push(d);d=this.vh({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},b,"<earlyz>");this.La.push(d);d=this.vh({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"},
b,"<fill>");this.La.push(d);for(var f in ac)ac.hasOwnProperty(f)&&this.La.push(this.vh(ac[f],b,f));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.vd=[];this.Tc=0;this.lb=!1;this.Ko=this.Yh=-1;this.kg=null;this.Vl=a.createFramebuffer();this.Hj=this.Hk=null;this.yo=!1;this.qa&&(this.Hj=a.createRenderbuffer());this.jf=Wb([0,0,0]);this.cq=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048<this.cq&&(this.cq=2048);this.$b(0)};n.prototype.On=function(a){l(this.Vp,a)||(Yb(a,this.Vp),this.A.uniformMatrix4fv(this.pk,
!1,a))};g.prototype.vh=function(a,b,d){var c=this.A,f=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(f,a.src);c.compileShader(f);if(!c.getShaderParameter(f,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(f),c.deleteShader(f),Error("error compiling fragment shader: "+a);var e=c.createShader(c.VERTEX_SHADER);c.shaderSource(e,b);c.compileShader(e);if(!c.getShaderParameter(e,c.COMPILE_STATUS))throw a=c.getShaderInfoLog(e),c.deleteShader(f),c.deleteShader(e),Error("error compiling vertex shader: "+a);b=
c.createProgram();c.attachShader(b,f);c.attachShader(b,e);c.linkProgram(b);if(!c.getProgramParameter(b,c.LINK_STATUS))throw a=c.getProgramInfoLog(b),c.deleteShader(f),c.deleteShader(e),c.deleteProgram(b),Error("error linking shader program: "+a);c.useProgram(b);c.deleteShader(f);c.deleteShader(e);f=new n(c,b,d);f.Tl=a.Tl||0;f.Ul=a.Ul||0;f.Jo=!!a.Jo;f.ed=!!a.ed;f.vo=!!a.vo;f.U=a.U||[];a=0;for(e=f.U.length;a<e;a++)f.U[a][1]=c.getUniformLocation(b,f.U[a][0]),f.Gm.push(0),c.uniform1f(f.U[a][1],0);return f};
g.prototype.jm=function(a){var b,d;b=0;for(d=this.La.length;b<d;b++)if(this.La[b].name===a)return b;return-1};g.prototype.yq=function(a,b,d){var c=this.vc,f=this.tk,e=[0,0,0,0,0,0,0,0];e[0]=c[0]*a+c[4]*b+c[12];e[1]=c[1]*a+c[5]*b+c[13];e[2]=c[2]*a+c[6]*b+c[14];e[3]=c[3]*a+c[7]*b+c[15];e[4]=f[0]*e[0]+f[4]*e[1]+f[8]*e[2]+f[12]*e[3];e[5]=f[1]*e[0]+f[5]*e[1]+f[9]*e[2]+f[13]*e[3];e[6]=f[2]*e[0]+f[6]*e[1]+f[10]*e[2]+f[14]*e[3];e[7]=-e[2];0!==e[7]&&(e[7]=1/e[7],e[4]*=e[7],e[5]*=e[7],e[6]*=e[7],d[0]=(.5*e[4]+
.5)*this.width,d[1]=(.5*e[5]+.5)*this.height)};g.prototype.le=function(a,b,d){if(this.width!==a||this.height!==b||d){this.Sd();d=this.A;this.width=a;this.height=b;d.viewport(0,0,a,b);$b(this.zl,this.Op,this.pr,this.vc);if(this.qa){var c=-a/2;a=a/2;var f=b/2;b=-b/2;var e=this.il,k=this.Sn,h=this.tk;h||(h=Xb());var w=a-c,q=b-f,m=k-e;h[0]=2/w;h[1]=0;h[2]=0;h[3]=0;h[4]=0;h[5]=2/q;h[6]=0;h[7]=0;h[8]=0;h[9]=0;h[10]=-2/m;h[11]=0;h[12]=-(c+a)/w;h[13]=-(b+f)/q;h[14]=-(k+e)/m;h[15]=1;this.Zi[0]=1;this.Zi[1]=
1}else b=a/b,c=this.il,a=this.Sn,h=this.tk,k=c*Math.tan(45*Math.PI/360),b*=k,f=-b,e=-k,h||(h=Xb()),w=b-f,q=k-e,m=a-c,h[0]=2*c/w,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=2*c/q,h[6]=0,h[7]=0,h[8]=(b+f)/w,h[9]=(k+e)/q,h[10]=-(a+c)/m,h[11]=-1,h[12]=0,h[13]=0,h[14]=-(a*c*2)/m,h[15]=0,c=[0,0],a=[0,0],this.yq(0,0,c),this.yq(1,1,a),this.Zi[0]=1/(a[0]-c[0]),this.Zi[1]=-1/(a[1]-c[1]);c=0;for(a=this.La.length;c<a;c++)f=this.La[c],f.Ff=!1,f.Mp&&(d.useProgram(f.Gi),d.uniformMatrix4fv(f.Mp,!1,this.tk));d.useProgram(this.La[this.Yh].Gi);
d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE1);d.bindTexture(d.TEXTURE_2D,null);d.activeTexture(d.TEXTURE0);this.Jf=this.Ue=null;this.Hj&&(d.bindFramebuffer(d.FRAMEBUFFER,this.Vl),d.bindRenderbuffer(d.RENDERBUFFER,this.Hj),d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,this.width,this.height),this.yo||(d.framebufferRenderbuffer(d.FRAMEBUFFER,d.DEPTH_ATTACHMENT,d.RENDERBUFFER,this.Hj),this.yo=!0),d.bindRenderbuffer(d.RENDERBUFFER,null),d.bindFramebuffer(d.FRAMEBUFFER,null),
this.Hk=null)}};g.prototype.Hc=function(){$b(this.zl,this.Op,this.pr,this.vc);Zb(this.vc,this.Zi)};g.prototype.translate=function(a,b){if(0!==a||0!==b){this.jf[0]=a;this.jf[1]=b;this.jf[2]=0;var d=this.vc,c=this.jf,f=c[0],e=c[1],c=c[2];d[12]=d[0]*f+d[4]*e+d[8]*c+d[12];d[13]=d[1]*f+d[5]*e+d[9]*c+d[13];d[14]=d[2]*f+d[6]*e+d[10]*c+d[14];d[15]=d[3]*f+d[7]*e+d[11]*c+d[15]}};g.prototype.scale=function(a,b){if(1!==a||1!==b)this.jf[0]=a,this.jf[1]=b,this.jf[2]=1,Zb(this.vc,this.jf)};g.prototype.Jk=function(a){if(0!==
a){var b=this.vc,d,c=Math.sin(a);a=Math.cos(a);var f=b[0],e=b[1],k=b[2],h=b[3],w=b[4],q=b[5],m=b[6],v=b[7];d?b!==d&&(d[8]=b[8],d[9]=b[9],d[10]=b[10],d[11]=b[11],d[12]=b[12],d[13]=b[13],d[14]=b[14],d[15]=b[15]):d=b;d[0]=f*a+w*c;d[1]=e*a+q*c;d[2]=k*a+m*c;d[3]=h*a+v*c;d[4]=f*-c+w*a;d[5]=e*-c+q*a;d[6]=k*-c+m*a;d[7]=h*-c+v*a}};g.prototype.xc=function(){if(!l(this.Hm,this.vc)){var a=this.Yb();a.type=5;a.T?Yb(this.vc,a.T):a.T=Xb(this.vc);Yb(this.vc,this.Hm);this.lb=!1}};g.prototype.Ok=function(a){this.qa&&
(32760<a&&(a=32760),this.Fj=this.zl[2]-this.il-a*this.Ow)};r.prototype.Rt=function(){var a=this.A,b=this.p;0!==this.Fb?(a.depthMask(!0),a.colorMask(!1,!1,!1,!1),a.disable(a.BLEND),a.bindFramebuffer(a.FRAMEBUFFER,b.Vl),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.clear(a.DEPTH_BUFFER_BIT),a.bindFramebuffer(a.FRAMEBUFFER,null),b.$j=!0):(a.depthMask(!1),a.colorMask(!0,!0,!0,!0),a.enable(a.BLEND),b.$j=!1)};r.prototype.Vt=function(){this.A.bindTexture(this.A.TEXTURE_2D,
this.Lc)};r.prototype.Wt=function(){var a=this.A;a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,this.Lc);a.activeTexture(a.TEXTURE0)};r.prototype.St=function(){var a=this.qq,b=this.p;b.Ej=a;b=b.kg;b.Kg&&b.sk!==a&&(b.sk=a,this.A.uniform1f(b.Kg,a))};r.prototype.Lt=function(){this.A.drawElements(this.A.TRIANGLES,this.tc,this.A.UNSIGNED_SHORT,this.Fb)};r.prototype.Ot=function(){this.A.blendFunc(this.Fb,this.tc)};r.prototype.Yt=function(){var a,b,d,c=this.p.La,f=this.p.Ko;a=0;for(b=c.length;a<
b;a++)d=c[a],a===f&&d.pk?(d.On(this.T),d.Ff=!0):d.Ff=!1;Yb(this.T,this.p.Jl)};r.prototype.Mt=function(){var a=this.A,b=this.p;this.Lc?(b.Jf===this.Lc&&(a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,null),b.Jf=null,a.activeTexture(a.TEXTURE0)),a.bindFramebuffer(a.FRAMEBUFFER,b.Vl),b.$j||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,this.Lc,0)):(b.qa||a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,null,0),a.bindFramebuffer(a.FRAMEBUFFER,null))};
r.prototype.It=function(){var a=this.A,b=this.Fb;0===b?(a.clearColor(this.T[0],this.T[1],this.T[2],this.T[3]),a.clear(a.COLOR_BUFFER_BIT)):1===b?(a.enable(a.SCISSOR_TEST),a.scissor(this.T[0],this.T[1],this.T[2],this.T[3]),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.disable(a.SCISSOR_TEST)):a.clear(a.DEPTH_BUFFER_BIT)};r.prototype.Qt=function(){var a=this.A;0!==this.Fb?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST)};r.prototype.Kt=function(){var a=this.A,b=this.p;b.qa&&a.disable(a.DEPTH_TEST);
var d=b.La[1];a.useProgram(d.Gi);!d.Ff&&d.pk&&(d.On(b.Jl),d.Ff=!0);a.enableVertexAttribArray(d.Cc);a.bindBuffer(a.ARRAY_BUFFER,b.cn);a.vertexAttribPointer(d.Cc,4,a.FLOAT,!1,0,0);a.drawArrays(a.POINTS,this.Fb/4,this.tc);d=b.kg;a.useProgram(d.Gi);0<=d.Cc&&(a.enableVertexAttribArray(d.Cc),a.bindBuffer(a.ARRAY_BUFFER,b.Wi[b.Qd]),a.vertexAttribPointer(d.Cc,b.qa?3:2,a.FLOAT,!1,0,0));0<=d.Xe&&(a.enableVertexAttribArray(d.Xe),a.bindBuffer(a.ARRAY_BUFFER,b.Ki[b.Qd]),a.vertexAttribPointer(d.Xe,2,a.FLOAT,!1,
0,0));b.qa&&a.enable(a.DEPTH_TEST)};r.prototype.Tt=function(){var a=this.A,b=this.p,d=b.La[this.Fb];b.Ko=this.Fb;b.kg=d;a.useProgram(d.Gi);!d.Ff&&d.pk&&(d.On(b.Jl),d.Ff=!0);d.Kg&&d.sk!==b.Ej&&(d.sk=b.Ej,a.uniform1f(d.Kg,b.Ej));0<=d.Cc&&(a.enableVertexAttribArray(d.Cc),a.bindBuffer(a.ARRAY_BUFFER,b.Wi[b.Qd]),a.vertexAttribPointer(d.Cc,b.qa?3:2,a.FLOAT,!1,0,0));0<=d.Xe&&(a.enableVertexAttribArray(d.Xe),a.bindBuffer(a.ARRAY_BUFFER,b.Ki[b.Qd]),a.vertexAttribPointer(d.Xe,2,a.FLOAT,!1,0,0))};r.prototype.Pt=
function(){var a=this.T;this.A.uniform4f(this.p.kg.Nm,a[0],a[1],a[2],a[3])};r.prototype.Ut=function(){var a,b,d=this.p.kg,c=this.A;a=this.T;d.ci&&this.p.Jf!==this.Lc&&(c.activeTexture(c.TEXTURE1),c.bindTexture(c.TEXTURE_2D,this.Lc),this.p.Jf=this.Lc,c.activeTexture(c.TEXTURE0));var f=a[0];d.Pm&&f!==d.Xp&&(d.Xp=f,c.uniform1f(d.Pm,f));f=a[1];d.Om&&f!==d.Wp&&(d.Wp=f,c.uniform1f(d.Om,f));f=a[2];b=a[3];!d.Pf||f===d.Rp&&b===d.Sp||(d.Rp=f,d.Sp=b,c.uniform2f(d.Pf,f,b));f=a[4];b=a[5];!d.Of||f===d.Pp&&b===
d.Qp||(d.Pp=f,d.Qp=b,c.uniform2f(d.Of,f,b));f=a[6];d.bi&&f!==d.Up&&(d.Up=f,c.uniform1f(d.bi,f));f=a[7];d.ai&&f!==d.Tp&&(d.Tp=f,c.uniform1f(d.ai,f));f=a[8];b=a[9];!d.fi||f===d.aq&&b===d.bq||(d.aq=f,d.bq=b,c.uniform2f(d.fi,f,b));f=a[10];b=a[11];!d.di||f===d.Yp&&b===d.Zp||(d.Yp=f,d.Zp=b,c.uniform2f(d.di,f,b));f=a[12];d.ei&&f!==d.$p&&(d.$p=f,c.uniform1f(d.ei,f));if(d.U.length)for(a=0,b=d.U.length;a<b;a++)f=this.Uq[a],f!==d.Gm[a]&&(d.Gm[a]=f,c.uniform1f(d.U[a][1],f))};g.prototype.Yb=function(){this.Tc===
this.vd.length&&this.vd.push(new r(0,this));return this.vd[this.Tc++]};g.prototype.Sd=function(){if(0!==this.Tc&&!this.A.isContextLost()){var a=this.A;0<this.dn&&(a.bindBuffer(a.ARRAY_BUFFER,this.cn),a.bufferSubData(a.ARRAY_BUFFER,0,this.vq.subarray(0,this.dn)),b&&0<=b.Cc&&"<point>"===b.name&&a.vertexAttribPointer(b.Cc,4,a.FLOAT,!1,0,0));if(0<this.Nc){var b=this.kg;a.bindBuffer(a.ARRAY_BUFFER,this.Wi[this.Qd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Xi.subarray(0,this.Nc));b&&0<=b.Cc&&"<point>"!==b.name&&
a.vertexAttribPointer(b.Cc,this.qa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.Ki[this.Qd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.Li.subarray(0,this.hf));b&&0<=b.Xe&&"<point>"!==b.name&&a.vertexAttribPointer(b.Xe,2,a.FLOAT,!1,0,0)}for(var d,a=0,b=this.Tc;a<b;a++)switch(d=this.vd[a],d.type){case 1:d.Lt();break;case 2:d.Vt();break;case 3:d.St();break;case 4:d.Ot();break;case 5:d.Yt();break;case 6:d.Mt();break;case 7:d.It();break;case 8:d.Kt();break;case 9:d.Tt();break;case 10:d.Ut();break;
case 11:d.Wt();break;case 12:d.Pt();break;case 13:d.Qt();break;case 14:d.Rt()}this.dn=this.hf=this.Nc=this.Tc=0;this.$j=this.lb=!1;this.Qd++;4<=this.Qd&&(this.Qd=0)}};g.prototype.ke=function(a){if(a!==this.Hp&&!this.Rh){var b=this.Yb();b.type=3;this.Hp=b.qq=a;this.lb=!1}};g.prototype.Kb=function(a){if(a!==this.Ue){var b=this.Yb();b.type=2;this.Ue=b.Lc=a;this.lb=!1}};g.prototype.ff=function(a,b){if((a!==this.Ip||b!==this.Gp)&&!this.Rh){var d=this.Yb();d.type=4;d.Fb=a;d.tc=b;this.Ip=a;this.Gp=b;this.lb=
!1}};g.prototype.Jq=function(){this.ff(this.A.ONE,this.A.ONE_MINUS_SRC_ALPHA)};g.prototype.yi=function(a,b,d,c,f,e,k,h){15992<=this.Nc&&this.Sd();var w=this.Nc,q=this.hf,m=this.Xi,v=this.Li,g=this.Fj;if(this.lb)this.vd[this.Tc-1].tc+=6;else{var C=this.Yb();C.type=1;C.Fb=this.qa?w:w/2*3;C.tc=6;this.lb=!0}this.qa?(m[w++]=a,m[w++]=b,m[w++]=g,m[w++]=d,m[w++]=c,m[w++]=g,m[w++]=f,m[w++]=e,m[w++]=g,m[w++]=k,m[w++]=h,m[w++]=g):(m[w++]=a,m[w++]=b,m[w++]=d,m[w++]=c,m[w++]=f,m[w++]=e,m[w++]=k,m[w++]=h);v[q++]=
0;v[q++]=0;v[q++]=1;v[q++]=0;v[q++]=1;v[q++]=1;v[q++]=0;v[q++]=1;this.Nc=w;this.hf=q};g.prototype.Gc=function(a,b,d,c,f,e,k,h,w){15992<=this.Nc&&this.Sd();var q=this.Nc,m=this.hf,v=this.Xi,g=this.Li,C=this.Fj;if(this.lb)this.vd[this.Tc-1].tc+=6;else{var x=this.Yb();x.type=1;x.Fb=this.qa?q:q/2*3;x.tc=6;this.lb=!0}var x=w.left,p=w.top,n=w.right;w=w.bottom;this.qa?(v[q++]=a,v[q++]=b,v[q++]=C,v[q++]=d,v[q++]=c,v[q++]=C,v[q++]=f,v[q++]=e,v[q++]=C,v[q++]=k,v[q++]=h,v[q++]=C):(v[q++]=a,v[q++]=b,v[q++]=d,
v[q++]=c,v[q++]=f,v[q++]=e,v[q++]=k,v[q++]=h);g[m++]=x;g[m++]=p;g[m++]=n;g[m++]=p;g[m++]=n;g[m++]=w;g[m++]=x;g[m++]=w;this.Nc=q;this.hf=m};g.prototype.pw=function(a,b,d,c,f,e,k,h,g,q,m,v,p,C,x,R){15992<=this.Nc&&this.Sd();var n=this.Nc,l=this.hf,t=this.Xi,r=this.Li,A=this.Fj;if(this.lb)this.vd[this.Tc-1].tc+=6;else{var P=this.Yb();P.type=1;P.Fb=this.qa?n:n/2*3;P.tc=6;this.lb=!0}this.qa?(t[n++]=a,t[n++]=b,t[n++]=A,t[n++]=d,t[n++]=c,t[n++]=A,t[n++]=f,t[n++]=e,t[n++]=A,t[n++]=k,t[n++]=h,t[n++]=A):(t[n++]=
a,t[n++]=b,t[n++]=d,t[n++]=c,t[n++]=f,t[n++]=e,t[n++]=k,t[n++]=h);r[l++]=g;r[l++]=q;r[l++]=m;r[l++]=v;r[l++]=p;r[l++]=C;r[l++]=x;r[l++]=R;this.Nc=n;this.hf=l};g.prototype.$b=function(a){if(this.Yh!==a){if(!this.La[a]){if(0===this.Yh)return;a=0}var b=this.Yb();b.type=9;this.Yh=b.Fb=a;this.lb=!1}};g.prototype.ti=function(a){a=this.La[a];return!(!a.Pf&&!a.Of)};g.prototype.hn=function(a){a=this.La[a];return!!(a.Pf||a.Of||a.Jo)};g.prototype.gn=function(a){return this.La[a].ed};g.prototype.lw=function(a){a=
this.La[a];return 0!==a.Tl||0!==a.Ul};g.prototype.cv=function(a){return this.La[a].Tl};g.prototype.dv=function(a){return this.La[a].Ul};g.prototype.gv=function(a,b){return this.La[a].U[b][2]};g.prototype.Dk=function(a){return this.La[a].vo};g.prototype.Tg=function(a,b,d,c,f,e,k,h,g,q,m,v,p,C,x){var R=this.La[this.Yh],n,l;if(R.yv||x.length){n=this.Yb();n.type=10;n.T?Yb(this.vc,n.T):n.T=Xb();l=n.T;l[0]=b;l[1]=d;l[2]=c;l[3]=f;l[4]=e;l[5]=k;l[6]=h;l[7]=g;l[8]=q;l[9]=m;l[10]=v;l[11]=p;l[12]=C;R.ci?n.Lc=
a:n.Lc=null;if(x.length)for(d=n.Uq,d.length=x.length,a=0,b=x.length;a<b;a++)d[a]=x[a];this.lb=!1}};g.prototype.clear=function(a,b,d,c){var f=this.Yb();f.type=7;f.Fb=0;f.T||(f.T=Xb());f.T[0]=a;f.T[1]=b;f.T[2]=d;f.T[3]=c;this.lb=!1};g.prototype.clearRect=function(a,b,d,c){if(!(0>d||0>c)){var f=this.Yb();f.type=7;f.Fb=1;f.T||(f.T=Xb());f.T[0]=a;f.T[1]=b;f.T[2]=d;f.T[3]=c;this.lb=!1}};g.prototype.Nq=function(a){if(this.qa&&(a=!!a,this.Rh!==a)){var b=this.Yb();b.type=14;b.Fb=a?1:0;this.lb=!1;this.Rh=a;
this.Hk=null;this.Rh?this.$b(2):this.$b(0)}};g.prototype.Lq=function(a){if(this.qa){var b=this.Yb();b.type=13;b.Fb=a?1:0;this.lb=!1}};g.prototype.$o=function(){Yb(this.Hm,p);this.Hc();this.xc();var a=this.width/2,b=this.height/2;this.yi(-a,b,a,b,a,-b,-a,-b);Yb(p,this.vc);this.xc()};g.prototype.Kq=function(a,b,d){this.$b(3);var c=this.Yb();c.type=12;c.T||(c.T=Xb());c.T[0]=a;c.T[1]=b;c.T[2]=d;c.T[3]=1;this.lb=!1};g.prototype.Cw=function(){this.$b(0)};g.prototype.sw=function(){this.$b(2)};g.prototype.kw=
function(){this.Sd();this.A.flush()};var t=[],h={};g.prototype.xt=function(){M(t);h={}};g.prototype.Jg=function(a,b,d,c){b=!!b;d=!!d;var f=a.src+","+b+","+d+(b?",undefined":""),e=null;if("undefined"!==typeof a.src&&h.hasOwnProperty(f))return e=h[f],e.sj++,e;this.Sd();var k=this.A,g=ka(a.width)&&ka(a.height),e=k.createTexture();k.bindTexture(k.TEXTURE_2D,e);k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var w=k.RGBA,q=k.RGBA,m=k.UNSIGNED_BYTE;if(c&&!this.Pe)switch(c){case 1:q=w=k.RGB;break;case 2:m=
k.UNSIGNED_SHORT_4_4_4_4;break;case 3:m=k.UNSIGNED_SHORT_5_5_5_1;break;case 4:q=w=k.RGB,m=k.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!g&&b){c=document.createElement("canvas");c.width=la(a.width);c.height=la(a.height);var v=c.getContext("2d");"undefined"!==typeof v.imageSmoothingEnabled?v.imageSmoothingEnabled=d:(v.webkitImageSmoothingEnabled=d,v.mozImageSmoothingEnabled=d,v.msImageSmoothingEnabled=d);v.drawImage(a,0,0,a.width,a.height,0,0,c.width,c.height);k.texImage2D(k.TEXTURE_2D,0,w,q,m,c)}else k.texImage2D(k.TEXTURE_2D,
0,w,q,m,a);b?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.REPEAT),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.REPEAT)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_S,k.CLAMP_TO_EDGE),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_WRAP_T,k.CLAMP_TO_EDGE));d?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.LINEAR),(g||2<=this.version)&&this.Po?(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.LINEAR_MIPMAP_LINEAR),k.generateMipmap(k.TEXTURE_2D)):k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,
k.LINEAR)):(k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MAG_FILTER,k.NEAREST),k.texParameteri(k.TEXTURE_2D,k.TEXTURE_MIN_FILTER,k.NEAREST));k.bindTexture(k.TEXTURE_2D,null);this.Ue=null;e.sf=a.width;e.rf=a.height;e.sj=1;e.Co=f;t.push(e);return h[f]=e};g.prototype.gc=function(a,b,d,c,f){this.Sd();var e=this.A;this.Pe&&(c=!1);var k=e.createTexture();e.bindTexture(e.TEXTURE_2D,k);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,a,b,0,e.RGBA,c?e.UNSIGNED_SHORT_4_4_4_4:e.UNSIGNED_BYTE,null);f?(e.texParameteri(e.TEXTURE_2D,
e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,d?e.LINEAR:e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,d?e.LINEAR:e.NEAREST);e.bindTexture(e.TEXTURE_2D,null);this.Ue=null;k.sf=a;k.rf=b;t.push(k);return k};g.prototype.Ar=function(a,b,d){this.Sd();var c=this.A;this.Pe&&(d=
!1);c.bindTexture(c.TEXTURE_2D,b);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);try{c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,d?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(f){console&&console.error&&console.error("Error updating WebGL texture: ",f)}c.bindTexture(c.TEXTURE_2D,null);this.Ue=null};g.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.sj&&1<a.sj?a.sj--:(this.Sd(),a===this.Ue&&(this.A.bindTexture(this.A.TEXTURE_2D,null),this.Ue=null),a===this.Jf&&(this.A.activeTexture(this.A.TEXTURE1),
this.A.bindTexture(this.A.TEXTURE_2D,null),this.A.activeTexture(this.A.TEXTURE0),this.Jf=null),Ca(t,a),"undefined"!==typeof a.Co&&delete h[a.Co],this.A.deleteTexture(a)))};g.prototype.Ic=function(a){if(a!==this.Hk){var b=this.Yb();b.type=6;this.Hk=b.Lc=a;this.lb=!1}};eb=g})();
(function(){function g(a){if(a&&(a.getContext||a.dc)&&!a.c2runtime){a.c2runtime=this;var c=this;this.Ne=(this.wm=/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.Oe=!!a.dc;this.Fv="undefined"!==typeof window.AppMobi||
this.Oe;this.Zc=!!window.c2cocoonjs;this.$c=!!window.c2ejecta;this.Zc&&(CocoonJS.App.onSuspended.addEventListener(function(){c.setSuspended(!0)}),CocoonJS.App.onActivated.addEventListener(function(){c.setSuspended(!1)}));this.$c&&(document.addEventListener("pagehide",function(){c.setSuspended(!0)}),document.addEventListener("pageshow",function(){c.setSuspended(!1)}),document.addEventListener("resize",function(){c.setSize(window.innerWidth,window.innerHeight)}));this.Ub=this.Oe||this.Zc||this.$c;this.bk=
/edge\//i.test(navigator.userAgent);this.Pe=(/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/iemobile/i.test(navigator.userAgent))&&!this.bk;this.yp=/tizen/i.test(navigator.userAgent);this.vm=/android/i.test(navigator.userAgent)&&!this.yp&&!this.Pe&&!this.bk;this.Dp=(/iphone/i.test(navigator.userAgent)||/ipod/i.test(navigator.userAgent))&&!this.Pe&&!this.bk;this.Mv=/ipad/i.test(navigator.userAgent);this.Em=this.Dp||this.Mv||this.$c;this.Hv=(/chrome/i.test(navigator.userAgent)||
/chromium/i.test(navigator.userAgent))&&!this.Pe&&!this.bk;this.Ev=/amazonwebappplatform/i.test(navigator.userAgent);this.Jv=/firefox/i.test(navigator.userAgent);this.ck="undefined"!==typeof window.c2nodewebkit||"undefined"!==typeof window.c2nwjs||/nodewebkit/i.test(navigator.userAgent)||/nwjs/i.test(navigator.userAgent);this.Ap=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.Bp=!("undefined"===typeof window.c2isWindows8Capable||!window.c2isWindows8Capable);this.Qe=!("undefined"===
typeof window.c2isWindowsPhone8||!window.c2isWindowsPhone8);this.Cm=!("undefined"===typeof window.c2isWindowsPhone81||!window.c2isWindowsPhone81);this.zp=!!window.cr_windows10;this.Lv=this.Ap||this.Bp||this.Cm||this.zp;this.Gv=!("undefined"===typeof window.c2isBlackberry10||!window.c2isBlackberry10);this.wp=this.vm&&!this.Hv&&!this.wm&&!this.Jv&&!this.Ev&&!this.Ub;this.devicePixelRatio=1;this.Hf=this.Ne||this.wm||this.Fv||this.Zc||this.vm||this.Em||this.Qe||this.Cm||this.Gv||this.yp||this.$c;this.Hf||
(this.Hf=/(blackberry|bb10|playbook|palm|symbian|nokia|windows\s+ce|phone|mobile|tablet|kindle|silk)/i.test(navigator.userAgent));this.Bm=!!(this.Em&&this.Ne&&window.webkit);"undefined"===typeof cr_is_preview||this.ck||"?nw"!==window.location.search&&!/nodewebkit/i.test(navigator.userAgent)&&!/nwjs/i.test(navigator.userAgent)||(this.ck=!0);this.canvas=a;this.Eo=document.getElementById("c2canvasdiv");this.p=this.A=null;this.lm="(unavailable)";this.qa=!1;this.yf=0;this.ya=null;this.Nj=!1;this.oq=this.pq=
0;this.canvas.oncontextmenu=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.onselectstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.canvas.ontouchstart=function(a){a.preventDefault&&a.preventDefault();return!1};this.Oe&&(window.c2runtime=this);this.ck&&(window.ondragover=function(a){a.preventDefault();return!1},window.ondrop=function(a){a.preventDefault();return!1},window.nwgui&&window.nwgui.App.clearCache&&window.nwgui.App.clearCache());this.wp&&"undefined"!==
typeof jQuery&&jQuery("canvas").parents("*").css("overflow","visible");this.width=a.width;this.height=a.height;this.L=this.width;this.K=this.height;this.Cj=this.width;this.xh=this.height;this.Hg=window.innerWidth;this.Gg=window.innerHeight;this.O=!0;this.Th=!1;Date.now||(Date.now=function(){return+new Date});this.plugins=[];this.types={};this.r=[];this.Fa=[];this.Jm={};this.bd=[];this.Sl={};this.Td=[];this.$f=[];this.dl=[];this.ht=[];this.it=[];this.Fp=this.$q=null;this.wf={};this.ym=this.Le=!1;this.ad=
0;this.xm=this.Am=!1;this.Wc=[];this.Sh=!1;this.lk=this.vn="";this.fb=null;this.$d="";this.Ji=this.Wq=!1;this.Mj=[];this.xf=this.pg=0;this.hq=30;this.Gl=this.gi=0;this.Pi=1;this.jc=new Va;this.hl=new Va;this.xk=this.Tj=this.Bh=this.jd=this.Lf=this.Xl=this.ik=0;this.Dl=null;this.Jj=[];this.Rl=[];this.Kj=-1;this.Qm=[[]];this.Jn=this.qk=0;this.Ek(null);this.kq=this.li=0;this.Im=!0;this.Eh=0;this.Wk=[];this.Gn=this.mn=-1;this.gk=!0;this.ok=0;this.dk=!1;this.Dw=0;this.ph=null;this.ak=!1;this.mq=new ba;
this.Xm=new ba;this.nq=new ba;this.Vf=[];this.hd=new Xa([]);this.An=new Xa([]);this.gg=[];this.xg={};this.Ee={};this.ye={};this.ah={};this.zo={};this.Lp=this.kk=this.Ta=this.eb=this.Kp=this.jk=this.ta=null;this.Zg=this.Dm=!1;this.Zl=[null,null];this.ug=0;this.fe={};this.Ii=this.Ve=null;this.Yq="";this.wk=[];this.rw()}}function n(a,c){return 128>=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function r(a){a.target.result.createObjectStore("saves",
{keyPath:"slot"})}function p(a,c,b,f){try{var k=indexedDB.open("_C2SaveStates");k.onupgradeneeded=r;k.onerror=f;k.onsuccess=function(k){k=k.target.result;k.onerror=f;k.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=b}}catch(m){f(m)}}function t(a,c,b){try{var f=indexedDB.open("_C2SaveStates");f.onupgradeneeded=r;f.onerror=b;f.onsuccess=function(f){f=f.target.result;f.onerror=b;var k=f.transaction(["saves"]).objectStore("saves").get(a);k.onsuccess=function(){k.result?
c(k.result.data):c(null)}}}catch(k){b(k)}}function h(){da("Reloading for continuous preview");window.c2cocoonjs?CocoonJS.App.reload():-1<window.location.search.indexOf("continuous")?window.location.reload(!0):window.location=window.location+"?continuous"}function a(a){var c,b={};for(c in a)!a.hasOwnProperty(c)||a[c]instanceof ba||a[c]&&"undefined"!==typeof a[c].Sx||"spriteCreatedDestroyCallback"!==c&&(b[c]=a[c]);return b}var b=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
window.msRequestAnimationFrame||window.oRequestAnimationFrame;g.prototype.rw=function(){var a=this;if(this.Bm)this.Uo("data.js",function(c){a.$h(JSON.parse(c))},function(){alert("Error fetching data.js")});else{var c;this.Qe?c=new ActiveXObject("Microsoft.XMLHTTP"):c=new XMLHttpRequest;var b="data.js";if(this.Ap||this.Qe||this.Cm||this.zp)b="data.json";c.open("GET",b,!0);var f=!1;if(!this.Ub&&"response"in c&&"responseType"in c)try{c.responseType="json",f="json"===c.responseType}catch(k){f=!1}if(!f&&
"responseType"in c)try{c.responseType="text"}catch(m){}if("overrideMimeType"in c)try{c.overrideMimeType("application/json; charset=utf-8")}catch(e){}this.Qe?c.onreadystatechange=function(){4===c.readyState&&a.$h(JSON.parse(c.responseText))}:(c.onload=function(){if(f)a.$h(c.response);else if(a.$c){var b=c.responseText,b=b.substr(b.indexOf("{"));a.$h(JSON.parse(b))}else a.$h(JSON.parse(c.responseText))},c.onerror=function(a){ea("Error requesting "+b+":");ea(a)});c.send()}};g.prototype.Bv=function(){var a=
this,c,b,f,k,m,e,d,v,h;this.If=(!this.Ub||this.$c||this.Ne)&&this.Jw&&!this.wp;0===this.hc&&this.Em&&(this.If=!1);this.devicePixelRatio=this.If?window.devicePixelRatio||window.webkitDevicePixelRatio||window.mozDevicePixelRatio||window.msDevicePixelRatio||1:1;"object"===typeof window.StatusBar&&window.StatusBar.hide();this.yb();0<this.hc&&this.setSize(window.innerWidth,window.innerHeight,!0);this.canvas.addEventListener("webglcontextlost",function(c){c.preventDefault();a.Xv();da("[Construct 2] WebGL context lost");
window.cr_setSuspended(!0)},!1);this.canvas.addEventListener("webglcontextrestored",function(){a.p.qp();a.p.le(a.p.width,a.p.height,!0);a.eb=null;a.Ta=null;a.Zl[0]=null;a.Zl[1]=null;a.Yv();a.O=!0;da("[Construct 2] WebGL context restored");window.cr_setSuspended(!1)},!1);try{this.fu&&(this.Zc||this.$c||!this.Ub)&&(c={alpha:!0,depth:!1,antialias:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!0},this.vm||(this.A=this.canvas.getContext("webgl2",c)),this.A||(this.A=this.canvas.getContext("webgl",
c)||this.canvas.getContext("experimental-webgl",c)))}catch(q){}if(this.A){if(c=this.A.getExtension("WEBGL_debug_renderer_info"))this.lm=this.A.getParameter(c.UNMASKED_RENDERER_WEBGL)+" ["+this.A.getParameter(c.UNMASKED_VENDOR_WEBGL)+"]";this.qa&&(this.lm+=" [front-to-back enabled]");this.Ub||(this.sb=document.createElement("canvas"),jQuery(this.sb).appendTo(this.canvas.parentNode),this.sb.oncontextmenu=function(){return!1},this.sb.onselectstart=function(){return!1},this.sb.width=Math.round(this.Cj*
this.devicePixelRatio),this.sb.height=Math.round(this.xh*this.devicePixelRatio),jQuery(this.sb).css({width:this.Cj+"px",height:this.xh+"px"}),this.wq(),this.bn=this.sb.getContext("2d"));this.p=new eb(this.A,this.Hf,this.qa);this.p.le(this.canvas.width,this.canvas.height);this.p.Po=0!==this.Zt;this.ya=null;c=0;for(b=this.r.length;c<b;c++)for(m=this.r[c],f=0,k=m.N.length;f<k;f++)d=m.N[f],d.Za=this.p.jm(d.id),d.ed=this.p.gn(d.Za),this.Zg=this.Zg||this.p.ti(d.Za);c=0;for(b=this.bd.length;c<b;c++){v=this.bd[c];
f=0;for(k=v.N.length;f<k;f++)d=v.N[f],d.Za=this.p.jm(d.id),d.ed=this.p.gn(d.Za);v.md();f=0;for(k=v.Q.length;f<k;f++){h=v.Q[f];m=0;for(e=h.N.length;m<e;m++)d=h.N[m],d.Za=this.p.jm(d.id),d.ed=this.p.gn(d.Za),this.Zg=this.Zg||this.p.ti(d.Za);h.md()}}}else{if(0<this.hc&&this.Oe){this.canvas=null;document.oncontextmenu=function(){return!1};document.onselectstart=function(){return!1};this.ya=AppMobi.canvas.getContext("2d");try{this.ya.samplingMode=this.xa?"smooth":"sharp",this.ya.globalScale=1,this.ya.HTML5CompatibilityMode=
!0,this.ya.imageSmoothingEnabled=this.xa}catch(x){}0!==this.width&&0!==this.height&&(this.ya.width=this.width,this.ya.height=this.height)}this.ya||(this.Zc?(c={antialias:!!this.xa,alpha:!0},this.ya=this.canvas.getContext("2d",c)):(c={alpha:!0},this.ya=this.canvas.getContext("2d",c)),this.Nk(this.ya,this.xa));this.bn=this.sb=null}this.fr=function(c){a.mc(!1,c)};window==window.top||this.Ub||this.Lv||this.Qe||(document.addEventListener("mousedown",function(){window.focus()},!0),document.addEventListener("touchstart",
function(){window.focus()},!0));"undefined"!==typeof cr_is_preview&&(this.Zc&&console.log("[Construct 2] In preview-over-wifi via CocoonJS mode"),-1<window.location.search.indexOf("continuous")&&(da("Reloading for continuous preview"),this.lk="__c2_continuouspreview",this.Ji=!0),this.dw&&!this.Hf&&(jQuery(window).focus(function(){a.setSuspended(!1)}),jQuery(window).blur(function(){var c=window.parent;c&&c.document.hasFocus()||a.setSuspended(!0)})));window.addEventListener("blur",function(){a.Uf()});
this.Ub||(c=function(a){if(db(a)&&document.activeElement&&document.activeElement!==document.getElementsByTagName("body")[0]&&document.activeElement.blur)try{document.activeElement.blur()}catch(c){}},"undefined"!==typeof PointerEvent?document.addEventListener("pointerdown",c):window.navigator.msPointerEnabled?document.addEventListener("MSPointerDown",c):document.addEventListener("touchstart",c),document.addEventListener("mousedown",c));0===this.hc&&this.If&&1<this.devicePixelRatio&&this.setSize(this.Wa,
this.Va,!0);this.nr();this.vv();this.go();this.H={}};g.prototype.setSize=function(a,c,b){var f=0,k=0,m=0,d=0,d=0;if(this.Hg!==a||this.Gg!==c||b){this.Hg=a;this.Gg=c;var e=this.hc;if((m=(document.mozFullScreen||document.webkitIsFullScreen||!!document.msFullscreenElement||document.fullScreen||this.dk)&&!this.Ne)||0!==this.hc||b)m&&(e=this.ug),b=this.devicePixelRatio,4<=e?(5===e&&1!==b&&(a+=1,c+=1),m=this.Wa/this.Va,a/c>m?(m*=c,5===e?(d=m*b/this.Wa,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),m=this.Wa*
d/b,d=this.Va*d/b,f=(a-m)/2,k=(c-d)/2,a=m,c=d):(f=(a-m)/2,a=m)):(d=a/m,5===e?(d=d*b/this.Va,1<d?d=Math.floor(d):1>d&&(d=1/Math.ceil(1/d)),m=this.Wa*d/b,d=this.Va*d/b,f=(a-m)/2,k=(c-d)/2,a=m):k=(c-d)/2,c=d)):m&&0===e&&(f=Math.floor((a-this.Wa)/2),k=Math.floor((c-this.Va)/2),a=this.Wa,c=this.Va),2>e&&(this.oh=b),this.Cj=Math.round(a),this.xh=Math.round(c),this.width=Math.round(a*b),this.height=Math.round(c*b),this.O=!0,this.Br?(this.L=this.width,this.K=this.height,this.rc=!0):this.width<this.Wa&&this.height<
this.Va||1===e?(this.L=this.width,this.K=this.height,this.rc=!0):(this.L=this.Wa,this.K=this.Va,this.rc=!1,2===e?(m=this.Wa/this.Va,e=this.Hg/this.Gg,e<m?this.L=this.K*e:e>m&&(this.K=this.L/e)):3===e&&(m=this.Wa/this.Va,e=this.Hg/this.Gg,e>m?this.L=this.K*e:e<m&&(this.K=this.L/e))),this.Eo&&!this.Ub&&(jQuery(this.Eo).css({width:Math.round(a)+"px",height:Math.round(c)+"px","margin-left":Math.floor(f)+"px","margin-top":Math.floor(k)+"px"}),"undefined"!==typeof cr_is_preview&&jQuery("#borderwrap").css({width:Math.round(a)+
"px",height:Math.round(c)+"px"})),this.canvas&&(this.canvas.width=Math.round(a*b),this.canvas.height=Math.round(c*b),this.$c?(this.canvas.style.left=Math.floor(f)+"px",this.canvas.style.top=Math.floor(k)+"px",this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px"):this.If&&!this.Ub&&(this.canvas.style.width=Math.round(a)+"px",this.canvas.style.height=Math.round(c)+"px")),this.sb&&(this.sb.width=Math.round(a*b),this.sb.height=Math.round(c*b),this.sb.style.width=this.Cj+
"px",this.sb.style.height=this.xh+"px"),this.p&&this.p.le(Math.round(a*b),Math.round(c*b)),this.Oe&&this.ya&&(this.ya.width=Math.round(a),this.ya.height=Math.round(c)),this.ya&&this.Nk(this.ya,this.xa),this.nr(),this.Dp&&!this.Ne&&window.scrollTo(0,0)}};g.prototype.nr=function(){if(this.lt&&0!==this.an){var a="portrait";2===this.an&&(a="landscape");try{screen.orientation&&screen.orientation.lock?screen.orientation.lock(a).catch(function(){}):screen.lockOrientation?screen.lockOrientation(a):screen.webkitLockOrientation?
screen.webkitLockOrientation(a):screen.mozLockOrientation?screen.mozLockOrientation(a):screen.msLockOrientation&&screen.msLockOrientation(a)}catch(c){console&&console.warn&&console.warn("Failed to lock orientation: ",c)}}};g.prototype.Xv=function(){this.p.xt();this.Dm=!0;var a,c,b;a=0;for(c=this.r.length;a<c;a++)b=this.r[a],b.Qg&&b.Qg()};g.prototype.Yv=function(){this.Dm=!1;var a,c,b;a=0;for(c=this.r.length;a<c;a++)b=this.r[a],b.oi&&b.oi()};g.prototype.wq=function(){if(!this.Ub){var a=(document.mozFullScreen||
document.webkitIsFullScreen||document.fullScreen||document.msFullscreenElement||this.dk)&&!this.Ne?jQuery(this.canvas).offset():jQuery(this.canvas).position();a.position="absolute";jQuery(this.sb).css(a)}};var d=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame;g.prototype.setSuspended=function(a){var c;if(a&&!this.Th)for(da("[Construct 2] Suspending"),this.Th=!0,-1!==this.mn&&d&&d(this.mn),-1!==
this.Gn&&clearTimeout(this.Gn),a=0,c=this.Wk.length;a<c;a++)this.Wk[a](!0);else if(!a&&this.Th){da("[Construct 2] Resuming");this.Th=!1;this.ik=Ra();this.Lf=Ra();a=this.gi=this.Tj=0;for(c=this.Wk.length;a<c;a++)this.Wk[a](!1);this.mc(!1)}};g.prototype.ve=function(a){return this.wk[a]};g.prototype.$h=function(a){a&&a.project||ea("Project model unavailable");a=a.project;this.name=a[0];this.Wo=a[1];this.hc=a[12];this.Wa=a[10];this.Va=a[11];this.rq=this.Wa/2;this.sq=this.Va/2;this.Ub&&!this.$c&&(4<=a[12]||
0===a[12])&&(da("[Construct 2] Letterbox scale fullscreen modes are not supported on this platform - falling back to 'Scale outer'"),this.hc=3);this.Qn=a[18];this.We=a[19];if(0===this.We){var c=new Image;c.crossOrigin="anonymous";this.Oq(c,"loading-logo.png");this.Ve={rk:c}}else if(4===this.We){c=new Image;c.src="";var b=new Image;b.src="";var f=new Image;f.src="";var m=new Image;m.src="";var k=new Image;k.src="";var d=new Image;d.src="";var e=new Image;e.src="";var v=new Image;v.src="";var h=new Image;
h.src="";var q=new Image;q.src="";var x=new Image;x.src="";var g=new Image;g.src="";this.Ve={rk:[c,b,f,m],hw:[k,d,e,v],Lw:[h,q,x,g]}}this.li=a[21];this.wk=bc();this.Jd=new W(this);c=0;for(b=a[2].length;c<b;c++)e=a[2][c],f=this.ve(e[0]),fb(e,f.prototype),v=new f(this),v.Uk=e[1],v.Re=e[2],v.Xx=e[5],v.iq=e[9],v.I&&v.I(),this.plugins.push(v);this.wk=bc();c=0;for(b=a[3].length;c<b;c++){e=a[3][c];k=this.ve(e[1]);v=null;f=0;for(m=this.plugins.length;f<m;f++)if(this.plugins[f]instanceof k){v=this.plugins[f];
break}h=new v.V(v);h.name=e[0];h.F=e[2];h.um=e[3].slice(0);h.Kw=e[3].length;h.mt=e[4];h.Qu=e[5];h.W=e[11];h.F?(h.Rf=[],h.Ud=this.Eh++,h.Da=null):(h.Rf=null,h.Ud=-1,h.Da=[]);h.Lj=null;h.sg=null;h.Qo=null;h.Vb=!1;h.fc=null;e[6]?(h.Mi=e[6][0],h.Yk=e[6][1],h.Ni=e[6][2]):(h.Mi=null,h.Yk=0,h.Ni=0);e[7]?h.ec=e[7]:h.ec=null;h.index=c;h.i=[];h.Gj=[];h.pe=[new gb(h)];h.wd=0;h.Ac=null;h.Dt=0;h.Wg=!0;h.el=hb;h.fp=ib;h.bv=jb;h.Y=kb;h.wi=lb;h.xi=mb;h.bf=nb;h.Uj=ob;h.cm=pb;h.fm=qb;h.sd=rb;h.hm=sb;h.Aj=new Ya(this.Wa,
this.Va);h.lj=!0;h.mj=!1;h.H={};h.toString=tb;h.Fa=[];f=0;for(m=e[8].length;f<m;f++){q=e[8][f];x=this.ve(q[1]);g=null;k=0;for(d=this.Fa.length;k<d;k++)if(this.Fa[k]instanceof x){g=this.Fa[k];break}g||(g=new x(this),g.vk=[],g.Wm=new ba,g.I&&g.I(),this.Fa.push(g),cc&&g instanceof cc&&(this.$q=g),Ub.Ov&&g instanceof Ub.Ov&&(this.Fp=g));-1===g.vk.indexOf(h)&&g.vk.push(h);k=new g.V(g,h);k.name=q[0];k.W=q[2];k.I();h.Fa.push(k)}h.global=e[9];h.zm=e[10];h.N=[];f=0;for(m=e[12].length;f<m;f++)h.N.push({id:e[12][f][0],
name:e[12][f][1],Za:-1,ed:!1,nc:!0,index:f});h.al=e[13];this.Qn&&!h.F&&!h.zm&&v.Re||h.I();h.name&&(this.types[h.name]=h);this.r.push(h);v.Uk&&(f=new v.R(h),f.uid=this.li++,f.Aq=this.kq++,f.Gf=0,f.Kh=ub,f.toString=vb,f.q=e[14],f.I(),h.i.push(f),this.fe[f.uid.toString()]=f)}c=0;for(b=a[4].length;c<b;c++)for(k=a[4][c],d=this.r[k[0]],f=1,m=k.length;f<m;f++)e=this.r[k[f]],e.Da.push(d),d.Rf.push(e);c=0;for(b=a[28].length;c<b;c++){k=a[28][c];d=[];f=0;for(m=k.length;f<m;f++)d.push(this.r[k[f]]);f=0;for(m=
d.length;f<m;f++)d[f].Vb=!0,d[f].fc=d}if(0<this.Eh)for(c=0,b=this.r.length;c<b;c++)if(e=this.r[c],!e.F&&e.Da.length){e.Lj=Array(this.Eh);e.sg=Array(this.Eh);e.Qo=Array(this.Eh);h=[];f=g=x=q=0;for(m=e.Da.length;f<m;f++)for(v=e.Da[f],e.Lj[v.Ud]=q,q+=v.Kw,e.sg[v.Ud]=x,x+=v.mt,e.Qo[v.Ud]=g,g+=v.Qu,k=0,d=v.N.length;k<d;k++)h.push(va({},v.N[k]));e.N=h.concat(e.N);f=0;for(m=e.N.length;f<m;f++)e.N[f].index=f}c=0;for(b=a[5].length;c<b;c++)e=a[5][c],f=new wb(this,e),this.Jm[f.name]=f,this.bd.push(f);c=0;for(b=
a[6].length;c<b;c++)e=a[6][c],f=new xb(this,e),this.Sl[f.name]=f,this.Td.push(f);c=0;for(b=this.Td.length;c<b;c++)this.Td[c].Qa();c=0;for(b=this.Td.length;c<b;c++)this.Td[c].Nn();c=0;for(b=this.dl.length;c<b;c++)this.dl[c].Qa();M(this.dl);this.kt=a[7];this.Wb=a[9];this.oh=1;this.fu=a[13];this.xa=a[14];this.Go=a[15];this.Jw=a[17];this.an=a[20];this.lt=0<this.an;this.dw=a[22];this.rc=this.Br=a[23];this.Zt=a[24];this.iw=a[25];this.qa=a[27]&&!this.Pe;this.Vk=Date.now();M(this.wk);this.Bv()};var c=!1,
f=0,e=[];g.prototype.qw=function(a,c){function b(){f--;k.dq()}var k=this;a.addEventListener("load",b);a.addEventListener("error",b);e.push([a,c]);this.dq()};g.prototype.dq=function(){for(var a;e.length&&100>f;)f++,a=e.shift(),this.Oq(a[0],a[1])};g.prototype.Rn=function(a,b){a.cocoonLazyLoad=!0;a.onerror=function(b){c=a.Bo=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",b)};this.$c?a.src=b:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(b,function(c){a.src=c},function(f){c=
a.Bo=!0;console&&console.error&&console.error("Error extracting image '"+b+"' from expansion file: ",f)}):(a.crossOrigin="anonymous",this.qw(a,b)));this.$f.push(a)};g.prototype.Ou=function(a){var c,b;c=0;for(b=this.$f.length;c<b;c++)if(this.$f[c].yt===a)return this.$f[c];return null};var k=0,u=!1;g.prototype.vv=function(){this.ph&&(k=this.ph.by(this.kt))};g.prototype.xo=function(){var a=k,c=0,b=0,f=!0,m,e,b=0;for(m=this.$f.length;b<m;b++){e=this.$f[b];var d=e.Hl;if(!d||0>=d)d=5E4;a+=d;e.src&&(e.complete||
e.loaded)&&!e.Bo?c+=d:f=!1}f&&this.iw&&this.ph&&(u||(this.ph.cy(),u=!0),b=this.ph.Ux(),c+=b,b<k&&(f=!1));this.Xb=0==a?1:c/a;return f};var w=!1;g.prototype.go=function(){if(this.ya||this.p){var a=this.ya||this.bn;this.sb&&this.wq();var f=window.innerWidth,k=window.innerHeight;this.Hg===f&&this.Gg===k||this.setSize(f,k);this.Xb=0;this.Jp=-1;var m=this;if(this.xo()&&(4!==this.We||w))this.wv();else{k=Date.now()-this.Vk;if(a){var e=this.width,d=this.height,f=this.devicePixelRatio;if(3>this.We&&(this.Zc||
500<=k&&this.Jp!=this.Xb)){a.clearRect(0,0,e,d);var k=e/2,d=d/2,e=0===this.We&&this.Ve.rk.complete,h=40*f,v=0,q=80*f,x;if(e){var g=this.Ve.rk,q=g.width*f;x=g.height*f;h=q/2;v=x/2;a.drawImage(g,B(k-h),B(d-v),q,x)}1>=this.We?(k=B(k-h)+.5,d=B(d+(v+(e?12*f:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(k,d,Math.floor(q*this.Xb),6*f),a.strokeStyle="black",a.strokeRect(k,d,q,6*f),a.strokeStyle="white",a.strokeRect(k-1*f,d-1*f,q+2*f,8*f)):2===this.We&&(a.font=this.$c?"12pt ArialMT":"12pt Arial",a.fillStyle=
c?"#f00":"#999",a.fy="middle",f=Math.round(100*this.Xb)+"%",e=a.measureText?a.measureText(f):null,a.fillText(f,k-(e?e.width:0)/2,d));this.Jp=this.Xb}else if(4===this.We){this.du(a);b?b(function(){m.go()}):setTimeout(function(){m.go()},16);return}}setTimeout(function(){m.go()},this.Zc?10:100)}}};var q=-1,m="undefined"===typeof cr_is_preview?200:0,v=!0,T=!1,C=0,x=0,R="undefined"===typeof cr_is_preview?3E3:0,G=null,F=null,I=0;g.prototype.du=function(a){if(!w){for(var b=Math.ceil(this.width),f=Math.ceil(this.height),
k=this.Ve.rk,e=this.Ve.hw,d=this.Ve.Lw,h=0;4>h;++h)if(!k[h].complete||!e[h].complete||!d[h].complete)return;0===I&&(q=Date.now());var h=Date.now(),g=!1,u=a,p,l;v||T?(a.clearRect(0,0,b,f),G&&G.width===b&&G.height===f||(G=document.createElement("canvas"),G.width=b,G.height=f,F=G.getContext("2d")),u=F,g=!0,v&&1===I&&(q=Date.now())):a.globalAlpha=1;u.fillStyle="#333333";u.fillRect(0,0,b,f);256<this.xh?(p=Da(.22*f,105,.6*b),l=.25*p,u.drawImage(n(e,p),.5*b-p/2,.2*f-l/2,p,l),l=p=Math.min(.395*f,.95*b),u.drawImage(n(k,
p),.5*b-p/2,.485*f-l/2,p,l),p=Da(.22*f,105,.6*b),l=.25*p,u.drawImage(n(d,p),.5*b-p/2,.868*f-l/2,p,l),u.fillStyle="#3C3C3C",p=b,l=Math.max(.005*f,2),u.fillRect(0,.8*f-l/2,p,l),u.fillStyle=c?"red":"#E0FF65",p=b*this.Xb,u.fillRect(.5*b-p/2,.8*f-l/2,p,l)):(l=p=.55*f,u.drawImage(n(k,p),.5*b-p/2,.45*f-l/2,p,l),u.fillStyle="#3C3C3C",p=b,l=Math.max(.005*f,2),u.fillRect(0,.85*f-l/2,p,l),u.fillStyle=c?"red":"#E0FF65",p=b*this.Xb,u.fillRect(.5*b-p/2,.85*f-l/2,p,l));g&&(v?a.globalAlpha=0===I?0:Math.min((h-q)/
300,1):T&&(a.globalAlpha=Math.max(1-(h-x)/300,0)),a.drawImage(G,0,0,b,f));v&&300<=h-q&&2<=I&&(v=!1,C=h);!v&&h-C>=R&&!T&&1<=this.Xb&&(T=!0,x=h);if(T&&h-x>=300+m||"undefined"!==typeof cr_is_preview&&1<=this.Xb&&500>Date.now()-q)w=!0,T=v=!1,this.Ve=F=G=null;++I}};g.prototype.wv=function(){this.sb&&(this.canvas.parentNode.removeChild(this.sb),this.sb=this.bn=null);this.Vk=Date.now();this.Lf=Ra();var a,c,b;if(this.Qn)for(a=0,c=this.r.length;a<c;a++)b=this.r[a],b.F||b.zm||!b.ca.Re||b.I();else this.gk=!1;
a=0;for(c=this.bd.length;a<c;a++)this.bd[a].zt();2<=this.hc&&(a=this.Wa/this.Va,c=this.width/this.height,this.oh=2!==this.hc&&c>a||2===this.hc&&c<a?this.height/this.Va:this.width/this.Wa);this.Wo?this.Jm[this.Wo].zn():this.bd[0].zn();this.Qn||(this.ok=1,this.trigger(W.prototype.j.fo,null),window.C2_RegisterSW&&window.C2_RegisterSW());navigator.splashscreen&&navigator.splashscreen.hide&&navigator.splashscreen.hide();a=0;for(c=this.r.length;a<c;a++)b=this.r[a],b.Wv&&b.Wv();document.hidden||document.webkitHidden||
document.mozHidden||document.msHidden?window.cr_setSuspended(!0):this.mc(!1);this.Oe&&AppMobi.webview.execute("onGameReady();")};g.prototype.mc=function(a,c,f){if(this.ta){var k=Ra();if(f||!this.Th||a){a||(b?this.mn=b(this.fr):this.Gn=setTimeout(this.fr,this.Hf?1:16));c=c||k;var m=this.hc;((f=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement)&&!this.Ne)||this.dk)&&0<this.ug&&(m=this.ug);if(0<m){var m=window.innerWidth,e=window.innerHeight;this.Hg===
m&&this.Gg===e||this.setSize(m,e)}this.Ub||(f?this.Nj||(this.Nj=!0):this.Nj?(this.Nj=!1,0===this.hc&&this.setSize(Math.round(this.pq/this.devicePixelRatio),Math.round(this.oq/this.devicePixelRatio),!0)):(this.pq=this.width,this.oq=this.height));this.gk&&(f=this.xo(),this.ok=this.Xb,f&&(this.gk=!1,this.Xb=1,this.trigger(W.prototype.j.fo,null),window.C2_RegisterSW&&window.C2_RegisterSW()));this.Qv(c);!this.O&&!this.Zc||this.Dm||this.Ji||a||(this.O=!1,this.p?this.Cb():this.Bc(),this.Ii&&(this.canvas&&
this.canvas.toDataURL&&(this.Yq=this.canvas.toDataURL(this.Ii[0],this.Ii[1]),window.cr_onSnapshot&&window.cr_onSnapshot(this.Yq),this.trigger(W.prototype.j.rs,null)),this.Ii=null));this.Vx||(this.jd++,this.Bh++,this.Tj++);this.gi+=Ra()-k}}};g.prototype.Qv=function(a){var c,b,f,k,m,e,d,h;1E3<=a-this.Lf&&(this.Lf+=1E3,1E3<=a-this.Lf&&(this.Lf=a),this.Xl=this.Tj,this.Tj=0,this.Gl=this.gi,this.gi=0);c=0;0!==this.ik&&(c=a-this.ik,0>c&&(c=0),this.xf=c/=1E3,.5<this.xf?this.xf=0:this.xf>1/this.hq&&(this.xf=
1/this.hq));this.ik=a;this.pg=this.xf*this.Pi;this.jc.add(this.pg);this.hl.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.dk)&&!this.Ne;2<=this.hc||a&&0<this.ug?(c=this.Wa/this.Va,b=this.width/this.height,f=this.hc,a&&0<this.ug&&(f=this.ug),this.oh=2!==f&&b>c||2===f&&b<c?this.height/this.Va:this.width/this.Wa,this.ta&&(this.ta.Hq(this.ta.scrollX),this.ta.Iq(this.ta.scrollY))):this.oh=this.If?this.devicePixelRatio:1;this.yb();
this.ad++;this.Jd.vw();this.ad--;this.yb();this.ad++;b=this.mq.kf();a=0;for(c=b.length;a<c;a++)b[a].$x();a=0;for(c=this.r.length;a<c;a++)if(e=this.r[a],!e.F&&(e.Fa.length||e.Da.length))for(b=0,f=e.i.length;b<f;b++)for(d=e.i[b],k=0,m=d.M.length;k<m;k++)d.M[k].mc();a=0;for(c=this.r.length;a<c;a++)if(e=this.r[a],!e.F&&(e.Fa.length||e.Da.length))for(b=0,f=e.i.length;b<f;b++)for(d=e.i[b],k=0,m=d.M.length;k<m;k++)h=d.M[k],h.xq&&h.xq();b=this.Xm.kf();a=0;for(c=b.length;a<c;a++)b[a].mc();this.ad--;this.xv();
for(a=0;this.Dl&&10>a++;)this.Oo(this.Dl);a=0;for(c=this.Td.length;a<c;a++)this.Td[a].nm=!1;this.ta.zf&&this.ta.zf.Ya();M(this.Vf);this.Im=!1;this.ad++;a=0;for(c=this.r.length;a<c;a++)if(e=this.r[a],!e.F&&(e.Fa.length||e.Da.length))for(b=0,f=e.i.length;b<f;b++)for(d=e.i[b],k=0,m=d.M.length;k<m;k++)h=d.M[k],h.Bn&&h.Bn();b=this.nq.kf();a=0;for(c=b.length;a<c;a++)b[a].Bn();this.ad--};g.prototype.Uf=function(){var a,c,b,f,k,m,e,d,h;a=0;for(c=this.r.length;a<c;a++)if(e=this.r[a],!e.F)for(b=0,f=e.i.length;b<
f;b++)if(d=e.i[b],d.Uf&&d.Uf(),d.M)for(k=0,m=d.M.length;k<m;k++)h=d.M[k],h.Uf&&h.Uf()};g.prototype.Oo=function(a){var c=this.ta;this.ta.Ew();var b,f,k;if(this.p)for(b=0,f=this.r.length;b<f;b++)k=this.r[b],k.F||!k.Qi||k.global&&0!==k.i.length||-1!==a.Ph.indexOf(k)||k.Qi();c==a&&M(this.Jd.ac);M(this.Vf);this.Fq(!0);a.zn();this.Fq(!1);this.Im=this.O=!0;this.yb()};g.prototype.Fq=function(a){var c,b,f,k,m,e,d,h,v;c=0;for(b=this.Fa.length;c<b;c++)f=this.Fa[c],a?f.mi&&f.mi():f.ni&&f.ni();c=0;for(b=this.r.length;c<
b;c++)if(f=this.r[c],f.global||f.ca.Uk)for(k=0,m=f.i.length;k<m;k++)if(e=f.i[k],a?e.mi&&e.mi():e.ni&&e.ni(),e.M)for(d=0,h=e.M.length;d<h;d++)v=e.M[d],a?v.mi&&v.mi():v.ni&&v.ni()};g.prototype.Oi=function(a){this.Xm.add(a)};g.prototype.wg=function(a){return a&&-1!==a.ki?this.xf*a.ki:this.pg};g.prototype.Bc=function(){this.ta.Bc(this.ya);this.Oe&&this.ya.present()};g.prototype.Cb=function(){this.qa&&(this.yf=1,this.ta.Ie(this.p));this.ta.Cb(this.p);this.p.kw()};g.prototype.tl=function(a){a&&this.Jj.push(a)};
g.prototype.Dq=function(a){Ca(this.Jj,a)};g.prototype.Ih=function(a){a=a.toString();return this.fe.hasOwnProperty(a)?this.fe[a]:null};var V=[];g.prototype.lf=function(a){var c,b;c=a.type.name;var f=null;if(this.wf.hasOwnProperty(c)){if(f=this.wf[c],f.contains(a))return}else f=V.length?V.pop():new ba,this.wf[c]=f;f.add(a);this.Le=!0;if(a.Vb)for(c=0,b=a.siblings.length;c<b;c++)this.lf(a.siblings[c]);this.ym&&f.$g.push(a);this.xm||(this.ad++,this.trigger(Object.getPrototypeOf(a.type.ca).j.ts,a),this.ad--)};
g.prototype.yb=function(){if(this.Le){var a,c,b,f,k,m;this.ym=!0;b=0;for(k=this.Wc.length;b<k;++b)for(a=this.Wc[b],c=a.type,c.i.push(a),f=0,m=c.Da.length;f<m;++f)c.Da[f].i.push(a),c.Da[f].Wg=!0;M(this.Wc);this.ds();Qa(this.wf);this.Le=this.ym=!1}};g.prototype.ds=function(){for(var a in this.wf)this.wf.hasOwnProperty(a)&&this.Jr(this.wf[a])};g.prototype.Jr=function(a){var c=a.kf(),b=c[0].type,f,k,m,e,d,h;Sa(b.i,a);b.Wg=!0;0===b.i.length&&(b.mj=!1);f=0;for(k=b.Da.length;f<k;++f)h=b.Da[f],Sa(h.i,a),
h.Wg=!0;f=0;for(k=this.Jd.ac.length;f<k;++f)if(d=this.Jd.ac[f],d.Mb.hasOwnProperty(b.index)&&Sa(d.Mb[b.index].Yd,a),!b.F)for(m=0,e=b.Da.length;m<e;++m)h=b.Da[m],d.Mb.hasOwnProperty(h.index)&&Sa(d.Mb[h.index].Yd,a);if(d=c[0].k){if(d.yc)for(m=d.i,f=0,k=m.length;f<k;++f)e=m[f],a.contains(e)&&(e.ua(),d.wb.update(e,e.Zb,null),e.Zb.set(0,0,-1,-1));Sa(d.i,a);d.Di(0)}for(f=0;f<c.length;++f)this.Ir(c[f],b);a.clear();V.push(a);this.O=!0};g.prototype.Ir=function(a,c){var b,f,k;b=0;for(f=this.Jj.length;b<f;++b)this.Jj[b](a);
a.Fe&&c.Aj.update(a,a.Fe,null);(b=a.k)&&b.Rg(a,!0);if(a.M)for(b=0,f=a.M.length;b<f;++b)k=a.M[b],k.dd&&k.dd(),k.behavior.Wm.remove(a);this.mq.remove(a);this.Xm.remove(a);this.nq.remove(a);a.dd&&a.dd();this.fe.hasOwnProperty(a.uid.toString())&&delete this.fe[a.uid.toString()];this.xk--;100>c.Gj.length&&c.Gj.push(a)};g.prototype.Il=function(a,c,b,f){if(a.F){var k=B(Math.random()*a.Rf.length);return this.Il(a.Rf[k],c,b,f)}return a.Ac?this.Ge(a.Ac,c,!1,b,f,!1):null};var A=[];g.prototype.Ge=function(a,
c,b,f,k,m){var e,d,h,v;if(!a)return null;var q=this.r[a[1]],x=q.ca.Re;if(this.gk&&x&&!q.zm||x&&!this.p&&11===a[0][11])return null;var g=c;x||(c=null);var u;q.Gj.length?(u=q.Gj.pop(),u.ub=!0,q.ca.R.call(u,q)):(u=new q.ca.R(q),u.ub=!1);!b||m||this.fe.hasOwnProperty(a[2].toString())?u.uid=this.li++:u.uid=a[2];this.fe[u.uid.toString()]=u;u.Aq=this.kq++;u.Gf=q.i.length;e=0;for(d=this.Wc.length;e<d;++e)this.Wc[e].type===q&&u.Gf++;u.Kh=ub;u.toString=vb;h=a[3];if(u.ub)Qa(u.H);else{u.H={};if("undefined"!==
typeof cr_is_preview)for(u.tp=[],u.tp.length=h.length,e=0,d=h.length;e<d;e++)u.tp[e]=h[e][1];u.cb=[];u.cb.length=h.length}e=0;for(d=h.length;e<d;e++)u.cb[e]=h[e][0];if(x){var w=a[0];u.x=ha(f)?w[0]:f;u.y=ha(k)?w[1]:k;u.z=w[2];u.width=w[3];u.height=w[4];u.depth=w[5];u.n=w[6];u.opacity=w[7];u.Hb=w[8];u.Ib=w[9];u.zb=w[10];e=w[11];!this.p&&q.N.length&&(u.zb=e);u.uh=$a(u.zb);this.A&&ab(u,u.zb,this.A);if(u.ub){e=0;for(d=w[12].length;e<d;e++)for(h=0,v=w[12][e].length;h<v;h++)u.Ia[e][h]=w[12][e][h];u.Ba.set(0,
0,0,0);u.Fe.set(0,0,-1,-1);u.Zb.set(0,0,-1,-1);u.Ab.Ei(u.Ba);M(u.yl)}else{u.Ia=w[12].slice(0);e=0;for(d=u.Ia.length;e<d;e++)u.Ia[e]=w[12][e].slice(0);u.Z=[];u.xe=[];u.xe.length=q.N.length;u.Ba=new ta(0,0,0,0);u.Fe=new ta(0,0,-1,-1);u.Zb=new ta(0,0,-1,-1);u.Ab=new ua;u.yl=[];u.u=yb;u.Px=zb;u.Rb=Ab;u.ua=Bb;u.Iw=Cb;u.ur=Db;u.zd=Eb}u.Yg=!1;u.jr=0;u.ir=0;u.hr=null;14===w.length&&(u.Yg=!0,u.jr=w[13][0],u.ir=w[13][1],u.hr=w[13][2]);e=0;for(d=q.N.length;e<d;e++)u.xe[e]=!0;u.ne=!0;u.md=Fb;u.md();u.xr=!!u.Z.length;
u.xl=!0;u.Cl=!0;q.lj=!0;u.visible=!0;u.ki=-1;u.k=c;u.nd=c.i.length;u.yf=0;"undefined"===typeof u.ba&&(u.ba=null);this.O=u.Pd=!0}var C;M(A);e=0;for(d=q.Da.length;e<d;e++)A.push.apply(A,q.Da[e].Fa);A.push.apply(A,q.Fa);if(u.ub)for(e=0,d=A.length;e<d;e++){var p=A[e];C=u.M[e];C.ub=!0;p.behavior.R.call(C,p,u);w=a[4][e];h=0;for(v=w.length;h<v;h++)C.q[h]=w[h];C.I();p.behavior.Wm.add(u)}else for(u.M=[],e=0,d=A.length;e<d;e++)p=A[e],C=new p.behavior.R(p,u),C.ub=!1,C.q=a[4][e].slice(0),C.I(),u.M.push(C),p.behavior.Wm.add(u);
w=a[5];if(u.ub)for(e=0,d=w.length;e<d;e++)u.q[e]=w[e];else u.q=w.slice(0);this.Wc.push(u);this.Le=!0;c&&(c.nh(u,!0),1!==c.ge||1!==c.he)&&(q.mj=!0);this.xk++;if(q.Vb){if(u.Vb=!0,u.ub?M(u.siblings):u.siblings=[],!b&&!m){e=0;for(d=q.fc.length;e<d;e++)if(q.fc[e]!==q){if(!q.fc[e].Ac)return null;u.siblings.push(this.Ge(q.fc[e].Ac,g,!1,x?u.x:f,x?u.y:k,!0))}e=0;for(d=u.siblings.length;e<d;e++)for(u.siblings[e].siblings.push(u),h=0;h<d;h++)e!==h&&u.siblings[e].siblings.push(u.siblings[h])}}else u.Vb=!1,u.siblings=
null;u.I();e=0;for(d=u.M.length;e<d;e++)u.M[e].gw&&u.M[e].gw();return u};g.prototype.Zu=function(a){var c,b;c=0;for(b=this.ta.Q.length;c<b;c++){var f=this.ta.Q[c];if(cb(f.name,a))return f}return null};g.prototype.$u=function(a){a=B(a);0>a&&(a=0);a>=this.ta.Q.length&&(a=this.ta.Q.length-1);return this.ta.Q[a]};g.prototype.El=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].Y().la=!0};g.prototype.wi=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].wi()};g.prototype.xi=function(a){var c,b;c=0;
for(b=a.length;c<b;c++)a[c].xi()};g.prototype.bf=function(a){var c,b;c=0;for(b=a.length;c<b;c++)a[c].bf()};g.prototype.rr=function(a){if(a.lj){var c,b,f=a.i;c=0;for(b=f.length;c<b;++c)f[c].ur();f=this.Wc;c=0;for(b=f.length;c<b;++c)f[c].type===a&&f[c].ur();a.lj=!1}};g.prototype.dm=function(a,c,b,f){var e,k,m=a?1!==a.ge||1!==a.he:!1;if(c.F)for(a=0,e=c.Rf.length;a<e;++a)k=c.Rf[a],m||k.mj?Aa(f,k.i):(this.rr(k),k.Aj.Gk(b,f));else m||c.mj?Aa(f,c.i):(this.rr(c),c.Aj.Gk(b,f))};g.prototype.jp=function(a,c,
b,f){var e,k;e=0;for(k=c.length;e<k;++e)this.dm(a,c[e],b,f)};g.prototype.hv=function(a,c,b){var f=this.$q;f&&this.jp(a,f.vk,c,b)};g.prototype.Yu=function(a,c,b){var f=this.Fp;f&&this.jp(a,f.vk,c,b)};g.prototype.Nb=function(a,c){if(!(a&&c&&a!==c&&a.Pd&&c.Pd))return!1;a.ua();c.ua();var b=a.k,f=c.k,e,k,m,d,h,v,q,u;if(b===f||b.ge===f.ge&&f.he===f.he&&b.scale===f.scale&&b.n===f.n&&b.aj===f.aj){if(!a.Ba.Cv(c.Ba)||!a.Ab.up(c.Ab)||a.Yg&&c.Yg)return!1;if(a.Yg)return this.er(a,c);if(c.Yg)return this.er(c,a);
q=a.ba&&!a.ba.yg();e=c.ba&&!c.ba.yg();if(!q&&!e)return!0;q?(a.ba.tf(a.width,a.height,a.n),q=a.ba):(this.hd.Ug(a.Ab,a.x,a.y,a.width,a.height),q=this.hd);e?(c.ba.tf(c.width,c.height,c.n),u=c.ba):(this.hd.Ug(c.Ab,c.x,c.y,c.width,c.height),u=this.hd);return q.Qh(u,c.x-a.x,c.y-a.y)}q=a.ba&&!a.ba.yg();e=c.ba&&!c.ba.yg();q?(a.ba.tf(a.width,a.height,a.n),this.hd.Sq(a.ba)):this.hd.Ug(a.Ab,a.x,a.y,a.width,a.height);q=this.hd;e?(c.ba.tf(c.width,c.height,c.n),this.An.Sq(c.ba)):this.An.Ug(c.Ab,c.x,c.y,c.width,
c.height);u=this.An;e=0;for(k=q.lc;e<k;e++)m=2*e,d=m+1,h=q.ra[m],v=q.ra[d],q.ra[m]=b.Ea(h+a.x,v+a.y,!0),q.ra[d]=b.Ea(h+a.x,v+a.y,!1);q.ua();e=0;for(k=u.lc;e<k;e++)m=2*e,d=m+1,h=u.ra[m],v=u.ra[d],u.ra[m]=f.Ea(h+c.x,v+c.y,!0),u.ra[d]=f.Ea(h+c.x,v+c.y,!1);u.ua();return q.Qh(u,0,0)};var P=new ua;new ta(0,0,0,0);var Y=[];g.prototype.er=function(a,c){var b,f,e,k,m=c.Ba,d=a.x,h=a.y;a.Uu(m,Y);var v=c.ba&&!c.ba.yg();b=0;for(f=Y.length;b<f;++b)if(e=Y[b],k=e.da,m.Dv(k,d,h)&&(P.Ei(k),P.offset(d,h),P.up(c.Ab)))if(v)if(c.ba.tf(c.width,
c.height,c.n),e.je){if(e.je.Qh(c.ba,c.x-(d+k.left),c.y-(h+k.top)))return M(Y),!0}else{if(this.hd.Ug(P,0,0,k.right-k.left,k.bottom-k.top),this.hd.Qh(c.ba,c.x,c.y))return M(Y),!0}else if(e.je){if(this.hd.Ug(c.Ab,0,0,c.width,c.height),e.je.Qh(this.hd,-(d+k.left),-(h+k.top)))return M(Y),!0}else return M(Y),!0;M(Y);return!1};g.prototype.Kn=function(a,c){if(!c)return!1;var b,f,e,k,m;b=0;for(f=a.Fa.length;b<f;b++)if(a.Fa[b].behavior instanceof c)return!0;if(!a.F)for(b=0,f=a.Da.length;b<f;b++)for(m=a.Da[b],
e=0,k=m.Fa.length;e<k;e++)if(m.Fa[e].behavior instanceof c)return!0;return!1};g.prototype.Ln=function(a){return this.Kn(a,Ub.nx)};g.prototype.Mn=function(a){return this.Kn(a,Ub.ox)};var O=[];g.prototype.xb=function(a){var c,b,f;a.ua();this.hv(a.k,a.Ba,O);c=0;for(b=O.length;c<b;++c)if(f=O[c],f.H.solidEnabled&&this.Nb(a,f))return M(O),f;M(O);return null};var D=[];g.prototype.qe=function(a,c){var b=null;c&&(b=D,M(b));a.ua();this.Yu(a.k,a.Ba,O);var f,e,k;f=0;for(e=O.length;f<e;++f)if(k=O[f],k.H.jumpthruEnabled&&
this.Nb(a,k))if(c)b.push(k);else return M(O),k;M(O);return b};g.prototype.fd=function(a,c,b,f,e,k){f=f||50;var m=a.x,d=a.y,h,v=null,q=null;for(h=0;h<f;h++)if(a.x=m+c*h,a.y=d+b*h,a.u(),!this.Nb(a,v)&&((v=this.xb(a))&&(q=v),!v&&(e&&(k?v=this.Nb(a,k)?k:null:v=this.qe(a),v&&(q=v)),!v)))return q&&this.Fk(a,c,b,q),!0;a.x=m;a.y=d;a.u();return!1};g.prototype.jn=function(a,c,b,f){f=f||50;var e=a.x,k=a.y,m=null,d=null,h,v,q;for(h=0;h<f;++h)for(v=0;2>v;++v)if(q=2*v-1,a.x=e+c*h*q,a.y=k+b*h*q,a.u(),!this.Nb(a,
m))if(m=this.xb(a))d=m;else return d&&this.Fk(a,c*q,b*q,d),!0;a.x=e;a.y=k;a.u();return!1};g.prototype.Fk=function(a,c,b,f){var e=2,k,m=!1;k=!1;for(var d=a.x,h=a.y;16>=e;)k=1/e,e*=2,a.x+=c*k*(m?1:-1),a.y+=b*k*(m?1:-1),a.u(),this.Nb(a,f)?k=m=!0:(k=m=!1,d=a.x,h=a.y);k&&(a.x=d,a.y=h,a.u())};g.prototype.ow=function(a,c){var b=ha(c)?100:c,f=0,e=a.x,k=a.y,m=0,d=0,h=0,v=this.xb(a);if(!v)return!0;for(;f<=b;){switch(m){case 0:d=0;h=-1;f++;break;case 1:d=1;h=-1;break;case 2:d=1;h=0;break;case 3:h=d=1;break;
case 4:d=0;h=1;break;case 5:d=-1;h=1;break;case 6:d=-1;h=0;break;case 7:h=d=-1}m=(m+1)%8;a.x=B(e+d*f);a.y=B(k+h*f);a.u();if(!this.Nb(a,v)&&(v=this.xb(a),!v))return!0}a.x=e;a.y=k;a.u();return!1};g.prototype.df=function(a,c){a.Pd&&c.Pd&&this.Vf.push([a,c])};g.prototype.gt=function(a,c,b){var f,e,k;f=0;for(e=this.Vf.length;f<e;++f){k=this.Vf[f];if(k[0]===a)k=k[1];else if(k[1]===a)k=k[0];else continue;if(c.F){if(-1===c.Rf.indexOf(c))continue}else if(k.type!==c)continue;-1===b.indexOf(k)&&b.push(k)}};
g.prototype.qt=function(a,c){var b,f,e;b=0;for(f=this.Vf.length;b<f;b++)if(e=this.Vf[b],e[0]===a&&e[1]===c||e[0]===c&&e[1]===a)return!0;return!1};var N=-1;g.prototype.trigger=function(a,c,b){if(!this.ta)return!1;var f=this.ta.zf;if(!f)return!1;var e=!1,k,m,d;N++;var h=f.Ml;m=0;for(d=h.length;m<d;++m)k=this.lr(a,c,h[m],b),e=e||k;k=this.lr(a,c,f,b);N--;return e||k};g.prototype.lr=function(a,c,b,f){var e=!1,k,m,d,h;if(c)for(d=this.In(a,c,c.type.name,b,f),e=e||d,h=c.type.Da,k=0,m=h.length;k<m;++k)d=this.In(a,
c,h[k].name,b,f),e=e||d;else d=this.In(a,c,"system",b,f),e=e||d;return e};g.prototype.In=function(a,c,b,f,e){var k,m=!1,d=!1,d="undefined"!==typeof e,h=(d?f.So:f.mr)[b];if(!h)return m;var v=null;f=0;for(k=h.length;f<k;++f)if(h[f].method==a){v=h[f].Ah;break}if(!v)return m;var q;d?q=v[e]:q=v;if(!q)return null;f=0;for(k=q.length;f<k;f++)a=q[f][0],e=q[f][1],d=this.Lu(c,b,a,e),m=m||d;return m};g.prototype.Lu=function(a,c,b,f){var e,k,m=!1;this.Jn++;var d=this.kb().Sb;d&&this.wi(d.gf);var h=1<this.Jn;this.wi(b.gf);
h&&this.mw();var v=this.Ek(b);v.Sb=b;a&&(e=this.types[c].Y(),e.la=!1,M(e.i),e.i[0]=a,this.types[c].sd());a=!0;if(b.parent){c=v.dr;for(e=b.parent;e;)c.push(e),e=e.parent;c.reverse();e=0;for(k=c.length;e<k;e++)if(!c[e].xw()){a=!1;break}}a&&(this.Bh++,b.Ec?b.ww(f):b.Ya(),m=m||v.Kf);this.Ck();h&&this.fw();this.bf(b.gf);d&&this.bf(d.gf);this.Le&&0===this.ad&&0===N&&!this.Am&&this.yb();this.Jn--;return m};g.prototype.Hh=function(){var a=this.kb();return a.Sb.jb[a.bb]};g.prototype.Iv=function(){return 0===
this.kb().bb};g.prototype.mw=function(){this.qk++;this.qk>=this.Qm.length&&this.Qm.push([])};g.prototype.fw=function(){this.qk--};g.prototype.cp=function(){return this.Qm[this.qk]};g.prototype.Ek=function(a){this.Kj++;this.Kj>=this.Rl.length&&this.Rl.push(new Gb);var c=this.kb();c.reset(a);return c};g.prototype.Ck=function(){this.Kj--};g.prototype.kb=function(){return this.Rl[this.Kj]};g.prototype.ep=function(a,c){for(var b,f,e,k,m,d;c;){b=0;for(f=c.Kc.length;b<f;b++)if(d=c.Kc[b],d instanceof Hb&&
cb(a,d.name))return d;c=c.parent}b=0;for(f=this.Td.length;b<f;b++)for(m=this.Td[b],e=0,k=m.Je.length;e<k;e++)if(d=m.Je[e],d instanceof Hb&&cb(a,d.name))return d;return null};g.prototype.gp=function(a){var c,b;c=0;for(b=this.bd.length;c<b;c++)if(this.bd[c].W===a)return this.bd[c];return null};g.prototype.Wj=function(a){var c,b;c=0;for(b=this.r.length;c<b;c++)if(this.r[c].W===a)return this.r[c];return null};g.prototype.Vu=function(a){var c,b;c=0;for(b=this.gg.length;c<b;c++)if(this.gg[c].W===a)return this.gg[c];
return null};g.prototype.Ht=function(a,c){this.Ii=[a,c];this.O=!0};g.prototype.xv=function(){var a=this,c=this.vn,b=this.$d,f=this.lk,e=!1;this.Wq&&(e=!0,c="__c2_continuouspreview",this.Wq=!1);if(c.length){this.yb();b=this.Bw();if(l()&&!this.Zc)p(c,b,function(){da("Saved state to IndexedDB storage ("+b.length+" bytes)");a.$d=b;a.trigger(W.prototype.j.kl,null);b=a.$d="";e&&h()},function(f){try{localStorage.setItem("__c2save_"+c,b),da("Saved state to WebStorage ("+b.length+" bytes)"),a.$d=b,a.trigger(W.prototype.j.kl,
null),b=a.$d="",e&&h()}catch(k){da("Failed to save game state: "+f+"; "+k),a.trigger(W.prototype.j.io,null)}});else try{localStorage.setItem("__c2save_"+c,b),da("Saved state to WebStorage ("+b.length+" bytes)"),a.$d=b,this.trigger(W.prototype.j.kl,null),b=a.$d="",e&&h()}catch(k){da("Error saving to WebStorage: "+k),a.trigger(W.prototype.j.io,null)}this.lk=this.vn="";this.fb=null}if(f.length){if(l()&&!this.Zc)t(f,function(c){c?(a.fb=c,da("Loaded state from IndexedDB storage ("+a.fb.length+" bytes)")):
(a.fb=localStorage.getItem("__c2save_"+f)||"",da("Loaded state from WebStorage ("+a.fb.length+" bytes)"));a.Ji=!1;a.fb||(a.fb=null,a.trigger(W.prototype.j.gj,null))},function(){a.fb=localStorage.getItem("__c2save_"+f)||"";da("Loaded state from WebStorage ("+a.fb.length+" bytes)");a.Ji=!1;a.fb||(a.fb=null,a.trigger(W.prototype.j.gj,null))});else{try{this.fb=localStorage.getItem("__c2save_"+f)||"",da("Loaded state from WebStorage ("+this.fb.length+" bytes)")}catch(m){this.fb=null}this.Ji=!1;a.fb||(a.fb=
null,a.trigger(W.prototype.j.gj,null))}this.vn=this.lk=""}null!==this.fb&&(this.yb(),this.Pv(this.fb)?(this.$d=this.fb,this.trigger(W.prototype.j.Es,null),this.$d=""):a.trigger(W.prototype.j.gj,null),this.fb=null)};g.prototype.Bw=function(){var c,b,f,e,k,m,d,h={c2save:!0,version:1,rt:{time:this.jc.ka,walltime:this.hl.ka,timescale:this.Pi,tickcount:this.jd,execcount:this.Bh,next_uid:this.li,running_layout:this.ta.W,start_time_offset:Date.now()-this.Vk},types:{},layouts:{},events:{groups:{},cnds:{},
acts:{},vars:{}}};c=0;for(b=this.r.length;c<b;c++)if(k=this.r[c],!k.F&&!this.Ln(k)){m={instances:[]};Pa(k.H)&&(m.ex=a(k.H));f=0;for(e=k.i.length;f<e;f++)m.instances.push(this.un(k.i[f]));h.types[k.W.toString()]=m}c=0;for(b=this.bd.length;c<b;c++)f=this.bd[c],h.layouts[f.W.toString()]=f.Ka();e=h.events.groups;c=0;for(b=this.gg.length;c<b;c++)f=this.gg[c],e[f.W.toString()]=this.xg[f.Lh].Df;b=h.events.cnds;for(d in this.Ee)this.Ee.hasOwnProperty(d)&&(c=this.Ee[d],Pa(c.H)&&(b[d]={ex:a(c.H)}));b=h.events.acts;
for(d in this.ye)this.ye.hasOwnProperty(d)&&(c=this.ye[d],Pa(c.H)&&(b[d]={ex:a(c.H)}));b=h.events.vars;for(d in this.ah)this.ah.hasOwnProperty(d)&&(c=this.ah[d],c.ek||c.parent&&!c.Vh||(b[d]=c.data));h.system=this.Jd.Ka();return JSON.stringify(h)};g.prototype.Cq=function(){var a,c,b,f,e,k;this.fe={};a=0;for(c=this.r.length;a<c;a++)if(b=this.r[a],!b.F)for(f=0,e=b.i.length;f<e;f++)k=b.i[f],this.fe[k.uid.toString()]=k};g.prototype.Pv=function(a){var c;try{c=JSON.parse(a)}catch(b){return!1}if(!c.c2save||
1<c.version)return!1;this.Sh=!0;a=c.rt;this.jc.reset();this.jc.ka=a.time;this.hl.reset();this.hl.ka=a.walltime||0;this.Pi=a.timescale;this.jd=a.tickcount;this.Bh=a.execcount;this.Vk=Date.now()-a.start_time_offset;var f=a.running_layout;if(f!==this.ta.W)if(f=this.gp(f))this.Oo(f);else return;var e,k,m,d,h,v,q;v=c.types;for(k in v)if(v.hasOwnProperty(k)&&(d=this.Wj(parseInt(k,10)))&&!d.F&&!this.Ln(d)){v[k].ex?d.H=v[k].ex:Qa(d.H);h=d.i;m=v[k].instances;f=0;for(e=pa(h.length,m.length);f<e;f++)this.mk(h[f],
m[f]);f=m.length;for(e=h.length;f<e;f++)this.lf(h[f]);f=h.length;for(e=m.length;f<e;f++){h=null;if(d.ca.Re&&(h=this.ta.Vj(m[f].w.l),!h))continue;h=this.Ge(d.Ac,h,!1,0,0,!0);this.mk(h,m[f])}d.Wg=!0}this.yb();this.Cq();e=c.layouts;for(k in e)e.hasOwnProperty(k)&&(f=this.gp(parseInt(k,10)))&&f.Ua(e[k]);e=c.events.groups;for(k in e)e.hasOwnProperty(k)&&(f=this.Vu(parseInt(k,10)))&&this.xg[f.Lh]&&this.xg[f.Lh].Pk(e[k]);f=c.events.cnds;for(k in this.Ee)this.Ee.hasOwnProperty(k)&&(f.hasOwnProperty(k)?this.Ee[k].H=
f[k].ex:this.Ee[k].H={});f=c.events.acts;for(k in this.ye)this.ye.hasOwnProperty(k)&&(f.hasOwnProperty(k)?this.ye[k].H=f[k].ex:this.ye[k].H={});f=c.events.vars;for(k in f)f.hasOwnProperty(k)&&this.ah.hasOwnProperty(k)&&(this.ah[k].data=f[k]);this.li=a.next_uid;this.Sh=!1;f=0;for(e=this.Mj.length;f<e;++f)h=this.Mj[f],this.trigger(Object.getPrototypeOf(h.type.ca).j.ej,h);M(this.Mj);this.Jd.Ua(c.system);f=0;for(e=this.r.length;f<e;f++)if(d=this.r[f],!d.F&&!this.Ln(d))for(c=0,k=d.i.length;c<k;c++){h=
d.i[c];if(d.Vb)for(v=h.Kh(),M(h.siblings),a=0,m=d.fc.length;a<m;a++)q=d.fc[a],d!==q&&h.siblings.push(q.i[v]);h.qd&&h.qd();if(h.M)for(a=0,m=h.M.length;a<m;a++)v=h.M[a],v.qd&&v.qd()}return this.O=!0};g.prototype.un=function(c,b){var f,e,k,m,d;m=c.type;k=m.ca;var h={};b?h.c2=!0:h.uid=c.uid;Pa(c.H)&&(h.ex=a(c.H));if(c.cb&&c.cb.length)for(h.ivs={},f=0,e=c.cb.length;f<e;f++)h.ivs[c.type.um[f].toString()]=c.cb[f];if(k.Re){k={x:c.x,y:c.y,w:c.width,h:c.height,l:c.k.W,zi:c.zd()};0!==c.n&&(k.a=c.n);1!==c.opacity&&
(k.o=c.opacity);.5!==c.Hb&&(k.hX=c.Hb);.5!==c.Ib&&(k.hY=c.Ib);0!==c.zb&&(k.bm=c.zb);c.visible||(k.v=c.visible);c.Pd||(k.ce=c.Pd);-1!==c.ki&&(k.mts=c.ki);if(m.N.length)for(k.fx=[],f=0,e=m.N.length;f<e;f++)d=m.N[f],k.fx.push({name:d.name,active:c.xe[d.index],params:c.Ia[d.index]});h.w=k}if(c.M&&c.M.length)for(h.behs={},f=0,e=c.M.length;f<e;f++)m=c.M[f],m.Ka&&(h.behs[m.type.W.toString()]=m.Ka());c.Ka&&(h.data=c.Ka());return h};g.prototype.Xu=function(a,c){var b,f;b=0;for(f=a.um.length;b<f;b++)if(a.um[b]===
c)return b;return-1};g.prototype.Tu=function(a,c){var b,f;b=0;for(f=a.M.length;b<f;b++)if(a.M[b].type.W===c)return b;return-1};g.prototype.mk=function(a,c,b){var f,e,k,m,d;d=a.type;var h=d.ca;if(b){if(!c.c2)return}else a.uid=c.uid;c.ex?a.H=c.ex:Qa(a.H);if(e=c.ivs)for(f in e)e.hasOwnProperty(f)&&(k=this.Xu(d,parseInt(f,10)),0>k||k>=a.cb.length||(m=e[f],null===m&&(m=NaN),a.cb[k]=m));if(h.Re){k=c.w;a.k.W!==k.l&&(e=a.k,a.k=this.ta.Vj(k.l),a.k?(e.Rg(a,!0),a.k.nh(a,!0),a.u(),a.k.Di(0)):(a.k=e,b||this.lf(a)));
a.x=k.x;a.y=k.y;a.width=k.w;a.height=k.h;a.nd=k.zi;a.n=k.hasOwnProperty("a")?k.a:0;a.opacity=k.hasOwnProperty("o")?k.o:1;a.Hb=k.hasOwnProperty("hX")?k.hX:.5;a.Ib=k.hasOwnProperty("hY")?k.hY:.5;a.visible=k.hasOwnProperty("v")?k.v:!0;a.Pd=k.hasOwnProperty("ce")?k.ce:!0;a.ki=k.hasOwnProperty("mts")?k.mts:-1;a.zb=k.hasOwnProperty("bm")?k.bm:0;a.uh=$a(a.zb);this.A&&ab(a,a.zb,this.A);a.u();if(k.hasOwnProperty("fx"))for(b=0,e=k.fx.length;b<e;b++)m=d.fm(k.fx[b].name),0>m||(a.xe[m]=k.fx[b].active,a.Ia[m]=
k.fx[b].params);a.md()}if(d=c.behs)for(f in d)d.hasOwnProperty(f)&&(b=this.Tu(a,parseInt(f,10)),0>b||a.M[b].Ua(d[f]));c.data&&a.Ua(c.data)};g.prototype.To=function(a,c,b){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,b)},b)};g.prototype.Uo=function(a,c,b){this.To(a,function(a){var f=new FileReader;f.onload=function(a){c(a.target.result)};f.onerror=b;f.readAsText(a)},b)};var S=[],E=0;g.prototype.Um=function(){if(S.length&&!(8<=E)){E++;var a=S.shift();
this.Jt(a.filename,a.Fw,a.iu)}};g.prototype.Mu=function(a,c,b){var f=this;S.push({filename:a,Fw:function(a){E--;f.Um();c(a)},iu:function(a){E--;f.Um();b(a)}});this.Um()};g.prototype.Jt=function(a,c,b){this.To(a,function(a){var b=new FileReader;b.onload=function(a){c(a.target.result)};b.readAsArrayBuffer(a)},b)};g.prototype.Nu=function(a,c,b){var f="",k=a.toLowerCase(),e=k.substr(k.length-4),k=k.substr(k.length-5);".mp4"===e?f="video/mp4":".webm"===k?f="video/webm":".m4a"===e?f="audio/mp4":".mp3"===
e&&(f="audio/mpeg");this.Mu(a,function(a){a=URL.createObjectURL(new Blob([a],{type:f}));c(a)},b)};g.prototype.vp=function(a){return/^(?:[a-z]+:)?\/\//.test(a)||"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};g.prototype.Oq=function(a,c){this.Bm&&!this.vp(c)?this.Nu(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};g.prototype.Nk=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=
c,a.msImageSmoothingEnabled=c)};Ib=function(a){return new g(document.getElementById(a))};Jb=function(a,c){return new g({dc:!0,width:a,height:c})};window.cr_createRuntime=Ib;window.cr_createDCRuntime=Jb;window.createCocoonJSRuntime=function(){window.c2cocoonjs=!0;var a=document.createElement("screencanvas")||document.createElement("canvas");a.ud=!0;document.body.appendChild(a);a=new g(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 g(document.getElementById("canvas"));window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var g=document.getElementById("c2canvas");return g?g.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(g,n){var l=window.cr_getC2Runtime();l&&l.Ht(g,n)};
window.cr_sizeCanvas=function(g,n){if(0!==g&&0!==n){var l=window.cr_getC2Runtime();l&&l.setSize(g,n)}};window.cr_setSuspended=function(g){var n=window.cr_getC2Runtime();n&&n.setSuspended(g)};
(function(){function g(a,b){this.b=a;this.zf=null;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/2;this.scale=1;this.n=0;this.tg=!0;this.name=b[0];this.aw=b[1];this.$v=b[2];this.width=b[1];this.height=b[2];this.or=b[3];this.Vq=b[4];this.W=b[5];var e=b[6],k,d;this.Q=[];this.Ph=[];k=0;for(d=e.length;k<d;k++){var h=new Kb(this,e[k]);h.lq=k;this.Q.push(h)}e=b[7];this.Me=[];k=0;for(d=e.length;k<d;k++){var h=e[k],q=this.b.r[h[1]];q.Ac||(q.Ac=h);this.Me.push(h);-1===this.Ph.indexOf(q)&&this.Ph.push(q)}this.N=
[];this.Z=[];this.ne=!0;this.Ia=[];k=0;for(d=b[8].length;k<d;k++)this.N.push({id:b[8][k][0],name:b[8][k][1],Za:-1,ed:!1,nc:!0,index:k}),this.Ia.push(b[8][k][2].slice(0));this.md();this.cf=new ta(0,0,1,1);this.nn=new ta(0,0,1,1);this.$e={}}function n(a,b){return a.nd-b.nd}function l(a,b){this.nb=a;this.b=a.b;this.i=[];this.scale=1;this.n=0;this.Rd=!1;this.se=new ta(0,0,0,0);this.kr=new ua;this.na=this.ia=this.oa=this.fa=0;this.ag=!1;this.ue=-1;this.Fl=0;this.name=b[0];this.index=b[1];this.W=b[2];this.visible=
b[3];this.Sc=b[4];this.ld=b[5];this.ge=b[6];this.he=b[7];this.opacity=b[8];this.Sj=b[9];this.yc=b[10];this.aj=b[11];this.zb=b[12];this.eu=b[13];this.uh="source-over";this.Bb=this.Eb=0;this.wb=null;this.ae=r();this.gd=!0;this.Ig=new ta(0,0,-1,-1);this.qb=new ta(0,0,-1,-1);this.yc&&(this.wb=new Za(this.b.Wa,this.b.Va));this.Ed=!1;var e=b[14],k,d;this.cr=[];this.uc=[];this.wh=[];k=0;for(d=e.length;k<d;k++){var h=e[k],q=this.b.r[h[1]];q.Ac||(q.Ac=h,q.Dt=this.index);this.uc.push(h);-1===this.nb.Ph.indexOf(q)&&
this.nb.Ph.push(q)}za(this.cr,this.uc);this.N=[];this.Z=[];this.ne=!0;this.Ia=[];k=0;for(d=b[15].length;k<d;k++)this.N.push({id:b[15][k][0],name:b[15][k][1],Za:-1,ed:!1,nc:!0,index:k}),this.Ia.push(b[15][k][2].slice(0));this.md();this.cf=new ta(0,0,1,1);this.nn=new ta(0,0,1,1)}function r(){return a.length?a.pop():[]}function p(c){M(c);a.push(c)}g.prototype.Aw=function(a){var b=a.type.W.toString();this.$e.hasOwnProperty(b)||(this.$e[b]=[]);this.$e[b].push(this.b.un(a))};g.prototype.lp=function(){var a=
this.Q[0];return!a.ld&&1===a.opacity&&!a.Sj&&a.visible};g.prototype.md=function(){M(this.Z);this.ne=!0;var a,b,e;a=0;for(b=this.N.length;a<b;a++)e=this.N[a],e.nc&&(this.Z.push(e),e.ed||(this.ne=!1))};g.prototype.em=function(a){var b,e,k;b=0;for(e=this.N.length;b<e;b++)if(k=this.N[b],k.name===a)return k;return null};var t=[],h=!0;g.prototype.zn=function(){this.Vq&&(this.zf=this.b.Sl[this.Vq],this.zf.Nn());this.b.ta=this;this.width=this.aw;this.height=this.$v;this.scrollX=this.b.Wa/2;this.scrollY=this.b.Va/
2;var a,b,e,k,d,g,q;a=0;for(e=this.b.r.length;a<e;a++)if(b=this.b.r[a],!b.F)for(d=b.i,b=0,k=d.length;b<k;b++)if(g=d[b],g.k){var m=g.k.lq;m>=this.Q.length&&(m=this.Q.length-1);g.k=this.Q[m];-1===g.k.i.indexOf(g)&&g.k.i.push(g);g.k.ag=!0}if(!h)for(a=0,e=this.Q.length;a<e;++a)this.Q[a].i.sort(n);M(t);this.nt();a=0;for(e=this.Q.length;a<e;a++)g=this.Q[a],g.At(),g.fl();d=!1;if(!this.tg){for(q in this.$e)if(this.$e.hasOwnProperty(q)&&(b=this.b.Wj(parseInt(q,10)))&&!b.F&&this.b.Mn(b)){k=this.$e[q];a=0;for(e=
k.length;a<e;a++){g=null;if(b.ca.Re&&(g=this.Vj(k[a].w.l),!g))continue;g=this.b.Ge(b.Ac,g,!1,0,0,!0);this.b.mk(g,k[a]);d=!0;t.push(g)}M(k)}a=0;for(e=this.Q.length;a<e;a++)this.Q[a].i.sort(n),this.Q[a].ag=!0}d&&(this.b.yb(),this.b.Cq());for(a=0;a<t.length;a++)if(g=t[a],g.type.Vb)for(e=g.Kh(),b=0,k=g.type.fc.length;b<k;b++)q=g.type.fc[b],g.type!==q&&(q.i.length>e?g.siblings.push(q.i[e]):q.Ac&&(d=this.b.Ge(q.Ac,g.k,!0,g.x,g.y,!0),this.b.yb(),q.el(),g.siblings.push(d),t.push(d)));a=0;for(e=this.Me.length;a<
e;a++)g=this.Me[a],b=this.b.r[g[1]],b.Vb||this.b.Ge(this.Me[a],null,!0);this.b.Dl=null;this.b.yb();if(this.b.ya&&!this.b.Ub)for(a=0,e=this.b.r.length;a<e;a++)q=this.b.r[a],!q.F&&q.i.length&&q.si&&q.si(this.b.ya);if(this.b.Sh)za(this.b.Mj,t);else for(a=0,e=t.length;a<e;a++)g=t[a],this.b.trigger(Object.getPrototypeOf(g.type.ca).j.ej,g);M(t);this.b.Sh||this.b.trigger(W.prototype.j.eo,null);this.tg=!1};g.prototype.zt=function(){var a,b,e,k,d;b=a=0;for(e=this.Me.length;a<e;a++)k=this.Me[a],d=this.b.r[k[1]],
d.global?d.Vb||this.b.Ge(k,null,!0):(this.Me[b]=k,b++);ya(this.Me,b)};g.prototype.Ew=function(){this.b.Sh||this.b.trigger(W.prototype.j.Ds,null);this.b.xm=!0;M(this.b.Jd.ac);var a,b,e,k,d,g;if(!this.tg)for(a=0,b=this.Q.length;a<b;a++)for(this.Q[a].Pn(),d=this.Q[a].i,e=0,k=d.length;e<k;e++)g=d[e],g.type.global||this.b.Mn(g.type)&&this.Aw(g);a=0;for(b=this.Q.length;a<b;a++){d=this.Q[a].i;e=0;for(k=d.length;e<k;e++)g=d[e],g.type.global||this.b.lf(g);this.b.yb();M(d);this.Q[a].ag=!0}a=0;for(b=this.b.r.length;a<
b;a++)if(d=this.b.r[a],!(d.global||d.ca.Re||d.ca.Uk||d.F)){e=0;for(k=d.i.length;e<k;e++)this.b.lf(d.i[e]);this.b.yb()}h=!1;this.b.xm=!1};new ta(0,0,0,0);g.prototype.Bc=function(a){var b,e=a,k=!1,d=!this.b.rc;d&&(this.b.kk||(this.b.kk=document.createElement("canvas"),b=this.b.kk,b.width=this.b.L,b.height=this.b.K,this.b.Lp=b.getContext("2d"),k=!0),b=this.b.kk,e=this.b.Lp,b.width!==this.b.L&&(b.width=this.b.L,k=!0),b.height!==this.b.K&&(b.height=this.b.K,k=!0),k&&this.b.Nk(e,this.b.xa));e.globalAlpha=
1;e.globalCompositeOperation="source-over";this.b.Go&&!this.lp()&&e.clearRect(0,0,this.b.L,this.b.K);var h,q,k=0;for(h=this.Q.length;k<h;k++)q=this.Q[k],q.visible&&0<q.opacity&&11!==q.zb&&(q.i.length||!q.ld)?q.Bc(e):q.fl();d&&a.drawImage(b,0,0,this.b.width,this.b.height)};g.prototype.Ie=function(a){a.Nq(!0);this.b.Ta||(this.b.Ta=a.gc(this.b.L,this.b.K,this.b.xa));if(this.b.Ta.sf!==this.b.L||this.b.Ta.rf!==this.b.K)a.deleteTexture(this.b.Ta),this.b.Ta=a.gc(this.b.L,this.b.K,this.b.xa);a.Ic(this.b.Ta);
this.b.rc||a.le(this.b.L,this.b.K);var b,e;for(b=this.Q.length-1;0<=b;--b)e=this.Q[b],e.visible&&1===e.opacity&&e.ne&&0===e.zb&&(e.i.length||!e.ld)?e.Ie(a):e.fl();a.Nq(!1)};g.prototype.Cb=function(a){var b=0<this.Z.length||this.b.Zg||!this.b.rc||this.b.qa;if(b){this.b.Ta||(this.b.Ta=a.gc(this.b.L,this.b.K,this.b.xa));if(this.b.Ta.sf!==this.b.L||this.b.Ta.rf!==this.b.K)a.deleteTexture(this.b.Ta),this.b.Ta=a.gc(this.b.L,this.b.K,this.b.xa);a.Ic(this.b.Ta);this.b.rc||a.le(this.b.L,this.b.K)}else this.b.Ta&&
(a.Ic(null),a.deleteTexture(this.b.Ta),this.b.Ta=null);this.b.Go&&!this.lp()&&a.clear(0,0,0,0);var e,k,d;e=0;for(k=this.Q.length;e<k;e++)d=this.Q[e],d.visible&&0<d.opacity&&(d.i.length||!d.ld)?d.Cb(a):d.fl();b&&(0===this.Z.length||1===this.Z.length&&this.b.rc?(1===this.Z.length?(b=this.Z[0].index,a.$b(this.Z[0].Za),a.Tg(null,1/this.b.L,1/this.b.K,0,0,1,1,this.scale,this.n,0,0,this.b.L/2,this.b.K/2,this.b.jc.ka,this.Ia[b]),a.Dk(this.Z[0].Za)&&(this.b.O=!0)):a.$b(0),this.b.rc||a.le(this.b.width,this.b.height),
a.Ic(null),a.Lq(!1),a.ke(1),a.Kb(this.b.Ta),a.Jq(),a.Hc(),a.xc(),b=this.b.width/2,e=this.b.height/2,a.yi(-b,e,b,e,b,-e,-b,-e),a.Kb(null),a.Lq(!0)):this.pn(a,null,null,null))};g.prototype.Jh=function(){return 0<this.Z.length||this.b.Zg||!this.b.rc||this.b.qa?this.b.Ta:null};g.prototype.hp=function(){var a=this.Q[0].ic(),b,e,k;b=1;for(e=this.Q.length;b<e;b++)k=this.Q[b],(0!==k.ge||0!==k.he)&&k.ic()<a&&(a=k.ic());return a};g.prototype.Hq=function(a){if(!this.or){var b=1/this.hp()*this.b.L/2;a>this.width-
b&&(a=this.width-b);a<b&&(a=b)}this.scrollX!==a&&(this.scrollX=a,this.b.O=!0)};g.prototype.Iq=function(a){if(!this.or){var b=1/this.hp()*this.b.K/2;a>this.height-b&&(a=this.height-b);a<b&&(a=b)}this.scrollY!==a&&(this.scrollY=a,this.b.O=!0)};g.prototype.nt=function(){this.Hq(this.scrollX);this.Iq(this.scrollY)};g.prototype.pn=function(a,b,e,k){var d=e?e.Z:b?b.Z:this.Z,h=1,q=0,m=0,v=0,g=this.b.L,C=this.b.K;e?(h=e.k.ic(),q=e.k.Tb(),m=e.k.fa,v=e.k.ia,g=e.k.oa,C=e.k.na):b&&(h=b.ic(),q=b.Tb(),m=b.fa,v=
b.ia,g=b.oa,C=b.na);var x=this.b.Zl,p,n,l,t,r=0,A=1,P,Y,O=this.b.L,D=this.b.K,N=O/2,S=D/2,E=b?b.cf:this.cf,y=b?b.nn:this.nn,z=0,L=0,K=0,J=0,Q=O,fa=O,H=D,na=D,ga=l=0;t=e?e.k.Tb():0;if(e){p=0;for(n=d.length;p<n;p++)l+=a.cv(d[p].Za),ga+=a.dv(d[p].Za);J=e.Ba;z=b.Ea(J.left,J.top,!0,!0);K=b.Ea(J.left,J.top,!1,!0);Q=b.Ea(J.right,J.bottom,!0,!0);H=b.Ea(J.right,J.bottom,!1,!0);0!==t&&(p=b.Ea(J.right,J.top,!0,!0),n=b.Ea(J.right,J.top,!1,!0),L=b.Ea(J.left,J.bottom,!0,!0),J=b.Ea(J.left,J.bottom,!1,!0),t=Math.min(z,
Q,p,L),Q=Math.max(z,Q,p,L),z=t,t=Math.min(K,H,n,J),H=Math.max(K,H,n,J),K=t);z-=l;K-=ga;Q+=l;H+=ga;y.left=z/O;y.top=1-K/D;y.right=Q/O;y.bottom=1-H/D;L=z=B(z);J=K=B(K);fa=Q=ra(Q);na=H=ra(H);L-=l;J-=ga;fa+=l;na+=ga;0>z&&(z=0);0>K&&(K=0);Q>O&&(Q=O);H>D&&(H=D);0>L&&(L=0);0>J&&(J=0);fa>O&&(fa=O);na>D&&(na=D);E.left=z/O;E.top=1-K/D;E.right=Q/O;E.bottom=1-H/D}else E.left=y.left=0,E.top=y.top=0,E.right=y.right=1,E.bottom=y.bottom=1;ga=e&&(a.ti(d[0].Za)||0!==l||0!==ga||1!==e.opacity||e.type.ca.iq)||b&&!e&&
1!==b.opacity;a.Jq();if(ga){x[r]||(x[r]=a.gc(O,D,this.b.xa));if(x[r].sf!==O||x[r].rf!==D)a.deleteTexture(x[r]),x[r]=a.gc(O,D,this.b.xa);a.$b(0);a.Ic(x[r]);Y=na-J;a.clearRect(L,D-J-Y,fa-L,Y);e?e.Cb(a):(a.Kb(this.b.eb),a.ke(b.opacity),a.Hc(),a.translate(-N,-S),a.xc(),a.Gc(z,H,Q,H,Q,K,z,K,E));y.left=y.top=0;y.right=y.bottom=1;e&&(t=E.top,E.top=E.bottom,E.bottom=t);r=1;A=0}a.ke(1);l=d.length-1;var wa=a.hn(d[l].Za)||!b&&!e&&!this.b.rc;p=t=0;for(n=d.length;p<n;p++){x[r]||(x[r]=a.gc(O,D,this.b.xa));if(x[r].sf!==
O||x[r].rf!==D)a.deleteTexture(x[r]),x[r]=a.gc(O,D,this.b.xa);a.$b(d[p].Za);t=d[p].index;a.Dk(d[p].Za)&&(this.b.O=!0);0!=p||ga?(a.Tg(k,1/O,1/D,y.left,y.top,y.right,y.bottom,h,q,m,v,(m+g)/2,(v+C)/2,this.b.jc.ka,e?e.Ia[t]:b?b.Ia[t]:this.Ia[t]),a.Kb(null),p!==l||wa?(a.Ic(x[r]),Y=na-J,P=D-J-Y,a.clearRect(L,P,fa-L,Y)):(e?a.ff(e.Eb,e.Bb):b&&a.ff(b.Eb,b.Bb),a.Ic(k)),a.Kb(x[A]),a.Hc(),a.translate(-N,-S),a.xc(),a.Gc(z,H,Q,H,Q,K,z,K,E),p!==l||wa||a.Kb(null)):(a.Ic(x[r]),Y=na-J,P=D-J-Y,a.clearRect(L,P,fa-L,
Y),e?(e.pb&&e.pb.B?(P=e.pb.B,A=1/P.width,P=1/P.height):(A=1/e.width,P=1/e.height),a.Tg(k,A,P,y.left,y.top,y.right,y.bottom,h,q,m,v,(m+g)/2,(v+C)/2,this.b.jc.ka,e.Ia[t]),e.Cb(a)):(a.Tg(k,1/O,1/D,0,0,1,1,h,q,m,v,(m+g)/2,(v+C)/2,this.b.jc.ka,b?b.Ia[t]:this.Ia[t]),a.Kb(b?this.b.eb:this.b.Ta),a.Hc(),a.translate(-N,-S),a.xc(),a.Gc(z,H,Q,H,Q,K,z,K,E)),y.left=y.top=0,y.right=y.bottom=1,e&&!wa&&(t=H,H=K,K=t));r=0===r?1:0;A=0===r?1:0}wa&&(a.$b(0),e?a.ff(e.Eb,e.Bb):b?a.ff(b.Eb,b.Bb):this.b.rc||(a.le(this.b.width,
this.b.height),N=this.b.width/2,S=this.b.height/2,K=z=0,Q=this.b.width,H=this.b.height),a.Ic(k),a.Kb(x[A]),a.Hc(),a.translate(-N,-S),a.xc(),e&&1===d.length&&!ga?a.Gc(z,K,Q,K,Q,H,z,H,E):a.Gc(z,H,Q,H,Q,K,z,K,E),a.Kb(null))};g.prototype.Vj=function(a){var b,e;b=0;for(e=this.Q.length;b<e;b++)if(this.Q[b].W===a)return this.Q[b];return null};g.prototype.Ka=function(){var a,b,e,k={sx:this.scrollX,sy:this.scrollY,s:this.scale,a:this.n,w:this.width,h:this.height,fv:this.tg,persist:this.$e,fx:[],layers:{}};
a=0;for(b=this.N.length;a<b;a++)e=this.N[a],k.fx.push({name:e.name,active:e.nc,params:this.Ia[e.index]});a=0;for(b=this.Q.length;a<b;a++)e=this.Q[a],k.layers[e.W.toString()]=e.Ka();return k};g.prototype.Ua=function(a){var b,e,k,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.$e=a.persist;"undefined"!==typeof a.fv&&(this.tg=a.fv);var h=a.fx;b=0;for(e=h.length;b<e;b++)if(k=this.em(h[b].name))k.nc=h[b].active,this.Ia[k.index]=h[b].params;this.md();
b=a.layers;for(d in b)b.hasOwnProperty(d)&&(a=this.Vj(parseInt(d,10)))&&a.Ua(b[d])};wb=g;l.prototype.md=function(){M(this.Z);this.ne=!0;var a,b,e;a=0;for(b=this.N.length;a<b;a++)e=this.N[a],e.nc&&(this.Z.push(e),e.ed||(this.ne=!1))};l.prototype.em=function(a){var b,e,k;b=0;for(e=this.N.length;b<e;b++)if(k=this.N[b],k.name===a)return k;return null};l.prototype.At=function(){var a,b,e,k,d,h;b=a=0;for(e=this.uc.length;a<e;a++){k=this.uc[a];d=this.b.r[k[1]];h=this.b.Mn(d);d=!0;if(!h||this.nb.tg){k=this.b.Ge(k,
this,!0);if(!k)continue;t.push(k);k.type.global&&(d=!1,this.wh.push(k.uid))}d&&(this.uc[b]=this.uc[a],b++)}this.uc.length=b;this.b.yb();!this.b.p&&this.N.length&&(this.zb=this.eu);this.uh=$a(this.zb);this.b.A&&ab(this,this.zb,this.b.A);this.gd=!0};l.prototype.Rg=function(a,b){var e=Ba(this.i,a);0>e||(b&&this.yc&&a.Zb&&a.Zb.right>=a.Zb.left&&(a.ua(),this.wb.update(a,a.Zb,null),a.Zb.set(0,0,-1,-1)),e===this.i.length-1?this.i.pop():(xa(this.i,e),this.Di(e)),this.gd=!0)};l.prototype.nh=function(a,b){a.nd=
this.i.length;this.i.push(a);b&&this.yc&&a.Zb&&a.u();this.gd=!0};l.prototype.jw=function(a){this.i.unshift(a);this.Di(0)};l.prototype.Uv=function(a,b,e){var k=a.zd();b=b.zd();xa(this.i,k);k<b&&b--;e&&b++;b===this.i.length?this.i.push(a):this.i.splice(b,0,a);this.Di(k<b?k:b)};l.prototype.Di=function(a){-1===this.ue?this.ue=a:a<this.ue&&(this.ue=a);this.gd=this.ag=!0};l.prototype.Pn=function(){if(this.ag){-1===this.ue&&(this.ue=0);var a,b,e;if(this.yc)for(a=this.ue,b=this.i.length;a<b;++a)e=this.i[a],
e.nd=a,this.wb.Rv(e.Zb);else for(a=this.ue,b=this.i.length;a<b;++a)this.i[a].nd=a;this.ag=!1;this.ue=-1}};l.prototype.ic=function(a){return this.av()*(this.b.rc||a?this.b.oh:1)};l.prototype.av=function(){return(this.scale*this.nb.scale-1)*this.aj+1};l.prototype.Tb=function(){return this.Rd?0:Ga(this.nb.n+this.n)};var a=[],b=[],d=[];l.prototype.im=function(){this.Pn();this.wb.Gk(this.fa,this.ia,this.oa,this.na,d);if(!d.length)return r();if(1===d.length){var a=r();za(a,d[0]);M(d);return a}for(var f=
!0;1<d.length;){for(var a=d,e=void 0,k=void 0,h=void 0,g=void 0,q=void 0,e=0,k=a.length;e<k-1;e+=2){var h=a[e],g=a[e+1],q=r(),m=h,v=g,n=q,C=0,x=0,l=0,t=m.length,F=v.length,I=void 0,V=void 0;for(n.length=t+F;C<t&&x<F;++l)I=m[C],V=v[x],I.nd<V.nd?(n[l]=I,++C):(n[l]=V,++x);for(;C<t;++C,++l)n[l]=m[C];for(;x<F;++x,++l)n[l]=v[x];f||(p(h),p(g));b.push(q)}1===k%2&&(f?(h=r(),za(h,a[k-1]),b.push(h)):b.push(a[k-1]));za(a,b);M(b);f=!1}a=d[0];M(d);return a};l.prototype.Bc=function(a){this.Ed=this.Sj||1!==this.opacity||
0!==this.zb;var b=this.b.canvas,e=a,k=!1;this.Ed&&(this.b.jk||(this.b.jk=document.createElement("canvas"),b=this.b.jk,b.width=this.b.L,b.height=this.b.K,this.b.Kp=b.getContext("2d"),k=!0),b=this.b.jk,e=this.b.Kp,b.width!==this.b.L&&(b.width=this.b.L,k=!0),b.height!==this.b.K&&(b.height=this.b.K,k=!0),k&&this.b.Nk(e,this.b.xa),this.ld&&e.clearRect(0,0,this.b.L,this.b.K));e.globalAlpha=1;e.globalCompositeOperation="source-over";this.ld||(e.fillStyle="rgb("+this.Sc[0]+","+this.Sc[1]+","+this.Sc[2]+")",
e.fillRect(0,0,this.b.L,this.b.K));e.save();this.Rd=!0;var k=this.Be(!0),d=this.Be(!1);this.Rd=!1;this.b.Wb&&(k=Math.round(k),d=Math.round(d));this.Ik(k,d,e);var h=this.ic();e.scale(h,h);e.translate(-k,-d);this.yc?(this.qb.left=this.wb.Pb(this.fa),this.qb.top=this.wb.Qb(this.ia),this.qb.right=this.wb.Pb(this.oa),this.qb.bottom=this.wb.Qb(this.na),this.gd||!this.qb.zh(this.Ig)?(p(this.ae),k=this.im(),this.gd=!1,this.Ig.ig(this.qb)):k=this.ae):k=this.i;for(var q,m=null,d=0,h=k.length;d<h;++d)q=k[d],
q!==m&&(this.$t(q,e),m=q);this.yc&&(this.ae=k);e.restore();this.Ed&&(a.globalCompositeOperation=this.uh,a.globalAlpha=this.opacity,a.drawImage(b,0,0))};l.prototype.$t=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var e=a.Ba;e.right<this.fa||e.bottom<this.ia||e.left>this.oa||e.top>this.na||(b.globalCompositeOperation=a.uh,a.Bc(b))}};l.prototype.fl=function(){this.Rd=!0;var a=this.Be(!0),b=this.Be(!1);this.Rd=!1;this.b.Wb&&(a=Math.round(a),b=Math.round(b));this.Ik(a,b,null)};l.prototype.Ik=
function(a,b,e){var k=this.ic();this.fa=a;this.ia=b;this.oa=a+1/k*this.b.L;this.na=b+1/k*this.b.K;this.fa>this.oa&&(a=this.fa,this.fa=this.oa,this.oa=a);this.ia>this.na&&(a=this.ia,this.ia=this.na,this.na=a);a=this.Tb();0!==a&&(e&&(e.translate(this.b.L/2,this.b.K/2),e.rotate(-a),e.translate(this.b.L/-2,this.b.K/-2)),this.se.set(this.fa,this.ia,this.oa,this.na),this.se.offset((this.fa+this.oa)/-2,(this.ia+this.na)/-2),this.kr.Tq(this.se,a),this.kr.Ao(this.se),this.se.offset((this.fa+this.oa)/2,(this.ia+
this.na)/2),this.fa=this.se.left,this.ia=this.se.top,this.oa=this.se.right,this.na=this.se.bottom)};l.prototype.Ie=function(a){if(this.Ed=this.Sj){this.b.eb||(this.b.eb=a.gc(this.b.L,this.b.K,this.b.xa));if(this.b.eb.sf!==this.b.L||this.b.eb.rf!==this.b.K)a.deleteTexture(this.b.eb),this.b.eb=a.gc(this.b.L,this.b.K,this.b.xa);a.Ic(this.b.eb)}this.Rd=!0;var b=this.Be(!0),e=this.Be(!1);this.Rd=!1;this.b.Wb&&(b=Math.round(b),e=Math.round(e));this.Ik(b,e,null);b=this.ic();a.Hc();a.scale(b,b);a.Jk(-this.Tb());
a.translate((this.fa+this.oa)/-2,(this.ia+this.na)/-2);a.xc();this.yc?(this.qb.left=this.wb.Pb(this.fa),this.qb.top=this.wb.Qb(this.ia),this.qb.right=this.wb.Pb(this.oa),this.qb.bottom=this.wb.Qb(this.na),this.gd||!this.qb.zh(this.Ig)?(p(this.ae),b=this.im(),this.gd=!1,this.Ig.ig(this.qb)):b=this.ae):b=this.i;for(var k,d=null,e=b.length-1;0<=e;--e)k=b[e],k!==d&&(this.bu(b[e],a),d=k);this.yc&&(this.ae=b);this.ld||(this.Fl=this.b.yf++,a.Ok(this.Fl),a.Kq(1,1,1),a.$o(),a.sw())};l.prototype.Cb=function(a){var b=
0,e=0;if(this.Ed=this.Sj||1!==this.opacity||0<this.Z.length||0!==this.zb){this.b.eb||(this.b.eb=a.gc(this.b.L,this.b.K,this.b.xa));if(this.b.eb.sf!==this.b.L||this.b.eb.rf!==this.b.K)a.deleteTexture(this.b.eb),this.b.eb=a.gc(this.b.L,this.b.K,this.b.xa);a.Ic(this.b.eb);this.ld&&a.clear(0,0,0,0)}this.ld||(this.b.qa?(a.Ok(this.Fl),a.Kq(this.Sc[0]/255,this.Sc[1]/255,this.Sc[2]/255),a.$o(),a.Cw()):a.clear(this.Sc[0]/255,this.Sc[1]/255,this.Sc[2]/255,1));this.Rd=!0;var k=this.Be(!0),b=this.Be(!1);this.Rd=
!1;this.b.Wb&&(k=Math.round(k),b=Math.round(b));this.Ik(k,b,null);k=this.ic();a.Hc();a.scale(k,k);a.Jk(-this.Tb());a.translate((this.fa+this.oa)/-2,(this.ia+this.na)/-2);a.xc();this.yc?(this.qb.left=this.wb.Pb(this.fa),this.qb.top=this.wb.Qb(this.ia),this.qb.right=this.wb.Pb(this.oa),this.qb.bottom=this.wb.Qb(this.na),this.gd||!this.qb.zh(this.Ig)?(p(this.ae),b=this.im(),this.gd=!1,this.Ig.ig(this.qb)):b=this.ae):b=this.i;var d,h,q=null,e=0;for(d=b.length;e<d;++e)h=b[e],h!==q&&(this.au(b[e],a),q=
h);this.yc&&(this.ae=b);this.Ed&&(b=this.Z.length?this.Z[0].Za:0,e=this.Z.length?this.Z[0].index:0,0===this.Z.length||1===this.Z.length&&!a.hn(b)&&1===this.opacity?(1===this.Z.length?(a.$b(b),a.Tg(this.nb.Jh(),1/this.b.L,1/this.b.K,0,0,1,1,k,this.Tb(),this.fa,this.ia,(this.fa+this.oa)/2,(this.ia+this.na)/2,this.b.jc.ka,this.Ia[e]),a.Dk(b)&&(this.b.O=!0)):a.$b(0),a.Ic(this.nb.Jh()),a.ke(this.opacity),a.Kb(this.b.eb),a.ff(this.Eb,this.Bb),a.Hc(),a.xc(),k=this.b.L/2,b=this.b.K/2,a.yi(-k,b,k,b,k,-b,-k,
-b),a.Kb(null)):this.nb.pn(a,this,null,this.nb.Jh()))};l.prototype.au=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var e=a.Ba;e.right<this.fa||e.bottom<this.ia||e.left>this.oa||e.top>this.na||(b.Ok(a.yf),a.xr?this.cu(a,b):(b.$b(0),b.ff(a.Eb,a.Bb),a.Cb(b)))}};l.prototype.bu=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.ua();var e=a.Ba;e.right<this.fa||e.bottom<this.ia||e.left>this.oa||e.top>this.na||(a.yf=this.b.yf++,0===a.zb&&1===a.opacity&&a.ne&&a.Ie&&(b.Ok(a.yf),a.Ie(b)))}};
l.prototype.cu=function(a,b){var e=a.Z[0].Za,k=a.Z[0].index,d=this.ic();if(1!==a.Z.length||b.hn(e)||b.lw(e)||(a.n||a.k.Tb())&&b.ti(e)||1!==a.opacity||a.type.ca.iq)this.nb.pn(b,this,a,this.Ed?this.b.eb:this.nb.Jh()),b.Hc(),b.scale(d,d),b.Jk(-this.Tb()),b.translate((this.fa+this.oa)/-2,(this.ia+this.na)/-2),b.xc();else{b.$b(e);b.ff(a.Eb,a.Bb);b.Dk(e)&&(this.b.O=!0);var h=0,q=0,m=0,v=0;b.ti(e)&&(v=a.Ba,h=this.Ea(v.left,v.top,!0,!0),q=this.Ea(v.left,v.top,!1,!0),m=this.Ea(v.right,v.bottom,!0,!0),v=this.Ea(v.right,
v.bottom,!1,!0),h=h/windowWidth,q=1-q/windowHeight,m=m/windowWidth,v=1-v/windowHeight);var g;a.pb&&a.pb.B?(g=a.pb.B,e=1/g.width,g=1/g.height):(e=1/a.width,g=1/a.height);b.Tg(this.Ed?this.b.eb:this.nb.Jh(),e,g,h,q,m,v,d,this.Tb(),this.fa,this.ia,(this.fa+this.oa)/2,(this.ia+this.na)/2,this.b.jc.ka,a.Ia[k]);a.Cb(b)}};l.prototype.Be=function(a){var b=0,e=0,k=this.b.devicePixelRatio;this.b.If&&(b*=k,e*=k);var k=this.b.rq,d=this.b.sq,k=(this.nb.scrollX-k)*this.ge+k,d=(this.nb.scrollY-d)*this.he+d,h,q,
m=1/this.ic(!1);h=k-this.b.L*m/2;q=d-this.b.K*m/2;h+=b*m;q+=e*m;e=this.Tb();0!==e&&(h-=k,q-=d,b=Math.cos(e),e=Math.sin(e),m=h*b-q*e,q=q*b+h*e,h=m+k,q+=d);return a?h:q};l.prototype.Ea=function(a,b,e,k){var d=this.b.rq,h=this.b.sq,q=(this.nb.scrollX-d)*this.ge+d,m=(this.nb.scrollY-h)*this.he+h,h=q,d=m,v=this.Tb();if(0!==v){a-=q;b-=m;var g=Math.cos(-v),v=Math.sin(-v),C=a*g-b*v;b=b*g+a*v;a=C+q;b+=m}q=1/this.ic(!k);k?(h-=this.b.L*q/2,d-=this.b.K*q/2):(h-=this.b.width*q/2,d-=this.b.height*q/2);h=(a-h)/
q;d=(b-d)/q;a=this.b.devicePixelRatio;this.b.If&&!k&&(h/=a,d/=a);return e?h:d};l.prototype.Ka=function(){var a,b,e,k={s:this.scale,a:this.n,vl:this.fa,vt:this.ia,vr:this.oa,vb:this.na,v:this.visible,bc:this.Sc,t:this.ld,px:this.ge,py:this.he,o:this.opacity,zr:this.aj,fx:[],cg:this.wh,instances:[]};a=0;for(b=this.N.length;a<b;a++)e=this.N[a],k.fx.push({name:e.name,active:e.nc,params:this.Ia[e.index]});return k};l.prototype.Ua=function(a){var b,e,k;this.scale=a.s;this.n=a.a;this.fa=a.vl;this.ia=a.vt;
this.oa=a.vr;this.na=a.vb;this.visible=a.v;this.Sc=a.bc;this.ld=a.t;this.ge=a.px;this.he=a.py;this.opacity=a.o;this.aj=a.zr;this.wh=a.cg||[];za(this.uc,this.cr);var d=new ba;b=0;for(k=this.wh.length;b<k;++b)d.add(this.wh[b]);e=b=0;for(k=this.uc.length;b<k;++b)d.contains(this.uc[b][2])||(this.uc[e]=this.uc[b],++e);ya(this.uc,e);e=a.fx;b=0;for(k=e.length;b<k;b++)if(a=this.em(e[b].name))a.nc=e[b].active,this.Ia[a.index]=e[b].params;this.md();this.i.sort(n);this.ag=!0};Kb=l})();
(function(){function g(a,b){var c,k=a.length;switch(k){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<k;c++)if(a[c]!==b[c])return!1;return!0}}function n(a,b){return a.index-b.index}function l(a){var b,c,k,e;2===a.length?a[0].index>a[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2<a.length&&a.sort(n);a.length>=u.length&&(u.length=a.length+1);u[a.length]||(u[a.length]=[]);e=u[a.length];b=0;for(c=e.length;b<c;b++)if(k=e[b],g(a,k))return k;e.push(a);return a}
function r(a,b){this.b=a;this.mr={};this.So={};this.nm=!1;this.pp=new ba;this.Ml=[];this.ul=[];this.name=b[0];var c=b[1];this.Je=[];var k,e;k=0;for(e=c.length;k<e;k++)this.rp(c[k],null,this.Je)}function p(a){this.type=a;this.i=[];this.X=[];this.la=!0}function t(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.gf=[];this.mp=this.cl=this.Hn=this.rm=this.group=this.Zq=!1;this.jb=[];this.Oc=[];this.Kc=[];this.Lh="";this.Df=this.rm=this.group=!1;this.Bj=null;c[1]&&(this.Lh=c[1][1].toLowerCase(),
this.group=!0,this.rm=!!c[1][0],this.Bj=[],this.Df=this.rm,this.b.gg.push(this),this.b.xg[this.Lh]=this);this.Ec=c[2];this.W=c[4];this.group||(this.b.zo[this.W.toString()]=this);var k=c[5];a=0;for(b=k.length;a<b;a++){var e=new Lb(this,k[a]);e.index=a;this.jb.push(e);this.to(e.type)}k=c[6];a=0;for(b=k.length;a<b;a++)e=new Mb(this,k[a]),e.index=a,this.Oc.push(e);if(8===c.length)for(c=c[7],a=0,b=c.length;a<b;a++)this.sheet.rp(c[a],this,this.Kc);this.fk=!1;this.jb.length&&(this.fk=null==this.jb[0].type&&
this.jb[0].rb==W.prototype.j.Vn)}function h(a,b){var c,k,e;if(a&&(-1===b.indexOf(a)&&b.push(a),a.Vb))for(c=0,k=a.fc.length;c<k;c++)e=a.fc[c],a!==e&&-1===b.indexOf(e)&&b.push(e)}function a(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ja=[];this.H={};this.index=-1;this.kh=!1;this.rb=this.b.ve(b[1]);this.trigger=0<b[3];this.Ro=2===b[3];this.Zj=b[5];this.Nv=b[6];this.W=b[7];this.b.Ee[this.W.toString()]=this;-1===b[0]?(this.type=null,this.Ya=this.tn,this.qf=null,this.Uc=-1):(this.type=this.b.r[b[0]],
this.Ya=this.Nv?this.yw:this.sn,b[2]?(this.qf=this.type.Uj(b[2]),this.Uc=this.type.cm(b[2])):(this.qf=null,this.Uc=-1),this.oc.parent&&this.oc.parent.Qk());this.Ro&&(this.Ya=this.zw);if(10===b.length){var c,k,e=b[9];c=0;for(k=e.length;c<k;c++){var d=new Nb(this,e[c]);this.U.push(d)}this.Ja.length=e.length}}function b(a,b){this.oc=a;this.sheet=a.sheet;this.b=a.b;this.U=[];this.Ja=[];this.H={};this.index=-1;this.kh=!1;this.rb=this.b.ve(b[1]);-1===b[0]?(this.type=null,this.Ya=this.tn,this.qf=null,this.Uc=
-1):(this.type=this.b.r[b[0]],this.Ya=this.sn,b[2]?(this.qf=this.type.Uj(b[2]),this.Uc=this.type.cm(b[2])):(this.qf=null,this.Uc=-1));this.W=b[3];this.b.ye[this.W.toString()]=this;if(6===b.length){var c,k,e=b[5];c=0;for(k=e.length;c<k;c++){var d=new Nb(this,e[c]);this.U.push(d)}this.Ja.length=e.length}}function d(){q++;w.length===q&&w.push(new Ob);return w[q]}function c(a,b){this.Fc=a;this.oc=a.oc;this.sheet=a.sheet;this.b=a.b;this.type=b[0];this.yd=null;this.oe=0;this.get=null;this.Ho=0;this.nb=
null;this.key=0;this.object=null;this.index=0;this.Si=this.Xf=this.Si=this.Xf=this.Vo=this.Af=this.Ti=null;this.Mc=!1;var c,k,e;switch(b[0]){case 0:case 7:this.yd=new Pb(this,b[1]);this.oe=0;this.get=this.mv;break;case 1:this.yd=new Pb(this,b[1]);this.oe=0;this.get=this.nv;break;case 5:this.yd=new Pb(this,b[1]);this.oe=0;this.get=this.rv;break;case 3:case 8:this.Ho=b[1];this.get=this.kv;break;case 6:this.nb=this.b.Jm[b[1]];this.get=this.sv;break;case 9:this.key=b[1];this.get=this.qv;break;case 4:this.object=
this.b.r[b[1]];this.get=this.tv;this.oc.to(this.object);this.Fc instanceof Mb?this.oc.Qk():this.oc.parent&&this.oc.parent.Qk();break;case 10:this.index=b[1];a.type&&a.type.F?(this.get=this.ov,this.Mc=!0):this.get=this.pv;break;case 11:this.Ti=b[1];this.Af=null;this.get=this.lv;break;case 2:case 12:this.Vo=b[1];this.get=this.jv;break;case 13:for(this.get=this.uv,this.Xf=[],this.Si=[],c=1,k=b.length;c<k;c++)e=new Nb(this.Fc,b[c]),this.Xf.push(e),this.Si.push(0)}}function f(a,b,c){this.sheet=a;this.parent=
b;this.b=a.b;this.ma=[];this.name=c[1];this.Ui=c[2];this.qm=c[3];this.Vh=!!c[4];this.ek=!!c[5];this.W=c[6];this.b.ah[this.W.toString()]=this;this.data=this.qm;this.parent?(this.Qf=this.Vh||this.ek?-1:this.b.Dw++,this.b.it.push(this)):(this.Qf=-1,this.b.ht.push(this))}function e(a,b,c){this.sheet=a;this.parent=b;this.b=a.b;this.ma=[];this.Oh=null;this.zv=c[1];this.nc=!0}function k(){this.dr=[];this.reset(null)}var u=[];r.prototype.toString=function(){return this.name};r.prototype.rp=function(a,b,c){switch(a[0]){case 0:a=
new Qb(this,b,a);if(a.Ec)for(c.push(a),c=0,b=a.jb.length;c<b;c++)a.jb[c].trigger&&this.sp(a,c);else a.Cp()?this.sp(a,0):c.push(a);break;case 1:a=new Hb(this,b,a);c.push(a);break;case 2:a=new Rb(this,b,a),c.push(a)}};r.prototype.Qa=function(){var a,b;a=0;for(b=this.Je.length;a<b;a++)this.Je[a].Qa(a<b-1&&this.Je[a+1].fk)};r.prototype.Nn=function(){M(this.Ml);M(this.ul);this.so(this);M(this.ul)};r.prototype.so=function(a){var b,c,k,e,d=a.Ml,f=a.ul,h=this.pp.kf();b=0;for(c=h.length;b<c;++b)k=h[b],e=k.Oh,
!k.nc||a===e||-1<f.indexOf(e)||(f.push(e),e.so(a),d.push(e))};r.prototype.Ya=function(a){this.b.ay||(this.nm=!0,a||(this.b.Am=!0));var b,c;b=0;for(c=this.Je.length;b<c;b++){var k=this.Je[b];k.Ya();this.b.El(k.ma);this.b.Le&&this.b.yb()}a||(this.b.Am=!1)};r.prototype.sp=function(a,b){a.Ec||this.b.dl.push(a);var c,k,e=a.jb[b],d;e.type?d=e.type.name:d="system";var f=(c=e.Ro)?this.So:this.mr;f[d]||(f[d]=[]);d=f[d];f=e.rb;if(c){if(e.U.length&&(e=e.U[0],1===e.type&&2===e.yd.type)){e=e.yd.value.toLowerCase();
c=0;for(k=d.length;c<k;c++)if(d[c].method==f){c=d[c].Ah;c[e]?c[e].push([a,b]):c[e]=[[a,b]];return}c={};c[e]=[[a,b]];d.push({method:f,Ah:c})}}else{c=0;for(k=d.length;c<k;c++)if(d[c].method==f){d[c].Ah.push([a,b]);return}X&&f===X.prototype.j.eg?d.unshift({method:f,Ah:[[a,b]]}):d.push({method:f,Ah:[[a,b]]})}};xb=r;p.prototype.kp=function(){return this.la?this.type.i.length:this.i.length};p.prototype.sc=function(){return this.la?this.type.i:this.i};p.prototype.qi=function(a){a&&(a.b.kb().Sb.Ec?(this.la&&
(M(this.i),za(this.X,a.type.i),this.la=!1),a=this.X.indexOf(a),-1!==a&&(this.i.push(this.X[a]),this.X.splice(a,1))):(this.la=!1,M(this.i),this.i[0]=a))};gb=p;window._c2hh_="924F333CC890EADA7ACB37AA0B406D1D04723F2A";t.prototype.Qa=function(a){var b,c=this.parent;if(this.group)for(this.cl=!0;c;){if(!c.group){this.cl=!1;break}c=c.parent}this.Hn=!this.Cp()&&(!this.parent||this.parent.group&&this.parent.cl);this.mp=!!a;this.gf=this.ma.slice(0);for(c=this.parent;c;){a=0;for(b=c.ma.length;a<b;a++)this.et(c.ma[a]);
c=c.parent}this.ma=l(this.ma);this.gf=l(this.gf);a=0;for(b=this.jb.length;a<b;a++)this.jb[a].Qa();a=0;for(b=this.Oc.length;a<b;a++)this.Oc[a].Qa();a=0;for(b=this.Kc.length;a<b;a++)this.Kc[a].Qa(a<b-1&&this.Kc[a+1].fk)};t.prototype.Pk=function(a){if(this.Df!==!!a){this.Df=!!a;var b;a=0;for(b=this.Bj.length;a<b;++a)this.Bj[a].qr();0<b&&this.b.ta.zf&&this.b.ta.zf.Nn()}};t.prototype.to=function(a){h(a,this.ma)};t.prototype.et=function(a){h(a,this.gf)};t.prototype.Qk=function(){this.Zq=!0;this.parent&&
this.parent.Qk()};t.prototype.Cp=function(){return this.jb.length?this.jb[0].trigger:!1};t.prototype.Ya=function(){var a,b,c=!1,k=this.b,e=this.b.kb();e.Sb=this;var d=this.jb;this.fk||(e.Pl=!1);if(this.Ec){0===d.length&&(c=!0);e.bb=0;for(a=d.length;e.bb<a;e.bb++)b=d[e.bb],b.trigger||(b=b.Ya())&&(c=!0);(e.Kf=c)&&this.Kk()}else{e.bb=0;for(a=d.length;e.bb<a;e.bb++)if(b=d[e.bb].Ya(),!b){e.Kf=!1;this.Hn&&k.Le&&k.yb();return}e.Kf=!0;this.Kk()}this.gu(e)};t.prototype.gu=function(a){a.Kf&&this.mp&&(a.Pl=
!0);this.Hn&&this.b.Le&&this.b.yb()};t.prototype.ww=function(a){this.b.kb().Sb=this;this.jb[a].Ya()&&(this.Kk(),this.b.kb().Kf=!0)};t.prototype.Kk=function(){var a=this.b.kb(),b;a.cc=0;for(b=this.Oc.length;a.cc<b;a.cc++)if(this.Oc[a.cc].Ya())return;this.Gq()};t.prototype.uw=function(){var a=this.b.kb(),b;for(b=this.Oc.length;a.cc<b;a.cc++)if(this.Oc[a.cc].Ya())return;this.Gq()};t.prototype.Gq=function(){if(this.Kc.length){var a,b,c,e,k=this.Kc.length-1;this.b.Ek(this);if(this.Zq)for(a=0,b=this.Kc.length;a<
b;a++)c=this.Kc[a],(e=!this.cl||!this.group&&a<k)&&this.b.xi(c.ma),c.Ya(),e?this.b.bf(c.ma):this.b.El(c.ma);else for(a=0,b=this.Kc.length;a<b;a++)this.Kc[a].Ya();this.b.Ck()}};t.prototype.xw=function(){var a=this.b.kb();a.Sb=this;var b=!1,c;a.bb=0;for(c=this.jb.length;a.bb<c;a.bb++)if(this.jb[a.bb].Ya())b=!0;else if(!this.Ec)return!1;return this.Ec?b:!0};t.prototype.Eq=function(){this.b.Bh++;var a=this.b.kb().bb,b=this.b.Ek(this);if(!this.Ec)for(b.bb=a+1,a=this.jb.length;b.bb<a;b.bb++)if(!this.jb[b.bb].Ya()){this.b.Ck();
return}this.Kk();this.b.Ck()};t.prototype.Kv=function(a){var b=a.index;if(0===b)return!0;for(--b;0<=b;--b)if(this.jb[b].type===a.type)return!1;return!0};Qb=t;a.prototype.Qa=function(){var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Qa(),c.Mc&&(this.kh=!0)};a.prototype.zw=function(){return!0};a.prototype.tn=function(){var a,b;a=0;for(b=this.U.length;a<b;a++)this.Ja[a]=this.U[a].get();return Oa(this.rb.apply(this.b.Jd,this.Ja),this.Zj)};a.prototype.yw=function(){var a,b;a=0;for(b=this.U.length;a<
b;a++)this.Ja[a]=this.U[a].get();a=this.rb.apply(this.qf?this.qf:this.type,this.Ja);this.type.sd();return a};a.prototype.sn=function(){var a,b,c,e,k,d,f,h,q=this.type,g=q.Y(),u=this.oc.Ec&&!this.trigger;b=0;var p=q.Vb,w=q.F,n=q.Ud,l=this.Uc,t=-1<l,r=this.kh,E=this.U,y=this.Ja,z=this.Zj,L=this.rb,K;if(r)for(b=0,k=E.length;b<k;++b)d=E[b],d.Mc||(y[b]=d.get(0));else for(b=0,k=E.length;b<k;++b)y[b]=E[b].get(0);if(g.la){M(g.i);M(g.X);K=q.i;a=0;for(e=K.length;a<e;++a){h=K[a];if(r)for(b=0,k=E.length;b<k;++b)d=
E[b],d.Mc&&(y[b]=d.get(a));t?(b=0,w&&(b=h.type.sg[n]),b=L.apply(h.M[l+b],y)):b=L.apply(h,y);(f=Oa(b,z))?g.i.push(h):u&&g.X.push(h)}q.finish&&q.finish(!0);g.la=!1;q.sd();return g.kp()}c=0;K=(f=u&&!this.oc.Kv(this))?g.X:g.i;var J=!1;a=0;for(e=K.length;a<e;++a){h=K[a];if(r)for(b=0,k=E.length;b<k;++b)d=E[b],d.Mc&&(y[b]=d.get(a));t?(b=0,w&&(b=h.type.sg[n]),b=L.apply(h.M[l+b],y)):b=L.apply(h,y);if(Oa(b,z))if(J=!0,f){if(g.i.push(h),p)for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.Y().i.push(d)}else{K[c]=
h;if(p)for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.Y().i[c]=d;c++}else if(f){K[c]=h;if(p)for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.Y().X[c]=d;c++}else if(u&&(g.X.push(h),p))for(b=0,k=h.siblings.length;b<k;b++)d=h.siblings[b],d.type.Y().X.push(d)}ya(K,c);if(p)for(w=q.fc,a=0,e=w.length;a<e;a++)h=w[a].Y(),f?ya(h.X,c):ya(h.i,c);c=J;if(f&&!J)for(a=0,e=g.i.length;a<e;a++){h=g.i[a];if(r)for(b=0,k=E.length;b<k;b++)d=E[b],d.Mc&&(y[b]=d.get(a));b=t?L.apply(h.M[l],y):L.apply(h,
y);if(Oa(b,z)){J=!0;break}}q.finish&&q.finish(c||u);return u?J:g.kp()};Lb=a;b.prototype.Qa=function(){var a,b,c;a=0;for(b=this.U.length;a<b;a++)c=this.U[a],c.Qa(),c.Mc&&(this.kh=!0)};b.prototype.tn=function(){var a=this.b,b,c,k=this.U,e=this.Ja;b=0;for(c=k.length;b<c;++b)e[b]=k[b].get();return this.rb.apply(a.Jd,e)};b.prototype.sn=function(){var a=this.type,b=this.Uc,c=a.Ud,k=this.kh,e=this.U,d=this.Ja,f=this.rb,h=a.Y().sc(),a=a.F,q=-1<b,g,u,p,w,l,n;if(k)for(u=0,w=e.length;u<w;++u)l=e[u],l.Mc||(d[u]=
l.get(0));else for(u=0,w=e.length;u<w;++u)d[u]=e[u].get(0);g=0;for(p=h.length;g<p;++g){n=h[g];if(k)for(u=0,w=e.length;u<w;++u)l=e[u],l.Mc&&(d[u]=l.get(g));q?(u=0,a&&(u=n.type.sg[c]),f.apply(n.M[b+u],d)):f.apply(n,d)}return!1};Mb=b;var w=[],q=-1;c.prototype.Qa=function(){var a,b;if(11===this.type)this.Af=this.b.ep(this.Ti,this.oc.parent);else if(13===this.type)for(a=0,b=this.Xf.length;a<b;a++)this.Xf[a].Qa();this.yd&&this.yd.Qa()};c.prototype.Sv=function(a){this.Mc||!a||a.ca.Uk||(this.Mc=!0)};c.prototype.Rq=
function(){this.Mc=!0};c.prototype.mv=function(a){this.oe=a||0;a=d();this.yd.get(a);q--;return a.data};c.prototype.nv=function(a){this.oe=a||0;a=d();this.yd.get(a);q--;return ja(a.data)?a.data:""};c.prototype.tv=function(){return this.object};c.prototype.kv=function(){return this.Ho};c.prototype.rv=function(a){this.oe=a||0;a=d();this.yd.get(a);q--;return a.mb()?this.b.$u(a.data):this.b.Zu(a.data)};c.prototype.sv=function(){return this.nb};c.prototype.qv=function(){return this.key};c.prototype.pv=
function(){return this.index};c.prototype.ov=function(a){a=a||0;var b=this.Fc.type,c=null,c=b.Y(),k=c.sc();if(k.length)c=k[a%k.length].type;else if(c.X.length)c=c.X[a%c.X.length].type;else if(b.i.length)c=b.i[a%b.i.length].type;else return 0;return this.index+c.Lj[b.Ud]};c.prototype.lv=function(){return this.Af};c.prototype.jv=function(){return this.Vo};c.prototype.uv=function(){var a,b;a=0;for(b=this.Xf.length;a<b;a++)this.Si[a]=this.Xf[a].get();return this.Si};Nb=c;f.prototype.Qa=function(){this.ma=
l(this.ma)};f.prototype.me=function(a){var b=this.b.cp();this.parent&&!this.Vh&&b?(this.Qf>=b.length&&(b.length=this.Qf+1),b[this.Qf]=a):this.data=a};f.prototype.Cf=function(){var a=this.b.cp();return!this.parent||this.Vh||!a||this.ek?this.data:this.Qf>=a.length||"undefined"===typeof a[this.Qf]?this.qm:a[this.Qf]};f.prototype.Ya=function(){!this.parent||this.Vh||this.ek||this.me(this.qm)};Hb=f;e.prototype.toString=function(){return"include:"+this.Oh.toString()};e.prototype.Qa=function(){this.Oh=this.b.Sl[this.zv];
this.sheet.pp.add(this);this.ma=l(this.ma);for(var a=this.parent;a;)a.group&&a.Bj.push(this),a=a.parent;this.qr()};e.prototype.Ya=function(){this.parent&&this.b.wi(this.b.r);this.Oh.nm||this.Oh.Ya(!0);this.parent&&this.b.bf(this.b.r)};e.prototype.qr=function(){for(var a=this.parent;a;){if(a.group&&!a.Df){this.nc=!1;return}a=a.parent}this.nc=!0};Rb=e;k.prototype.reset=function(a){this.Sb=a;this.cc=this.bb=0;M(this.dr);this.Pl=this.Kf=!1};Gb=k})();
(function(){function g(h,a){this.Fc=h;this.b=h.b;this.type=a[0];this.get=[this.yu,this.uu,this.Hu,this.Ku,this.ju,this.Iu,this.Cu,this.ru,this.Bu,this.Gu,this.ku,this.Fu,this.su,this.Du,this.zu,this.Au,this.vu,this.wu,this.qu,this.Ju,this.Eu,this.xu,this.pu,this.tu][this.type];var b=null;this.ee=this.U=this.Ja=this.rb=this.$k=this.second=this.first=this.value=null;this.Uc=-1;this.Yc=null;this.yr=-1;this.Af=this.Ti=null;this.Sg=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first=
new Pb(h,a[1]);break;case 18:this.first=new Pb(h,a[1]);this.second=new Pb(h,a[2]);this.$k=new Pb(h,a[3]);break;case 19:this.rb=this.b.ve(a[1]);this.rb!==W.prototype.wa.random&&this.rb!==W.prototype.wa.tt||this.Fc.Rq();this.Ja=[];this.U=[];3===a.length?(b=a[2],this.Ja.length=b.length+1):this.Ja.length=1;break;case 20:this.ee=this.b.r[a[1]];this.Uc=-1;this.rb=this.b.ve(a[2]);this.Sg=a[3];dc&&this.rb===dc.prototype.wa.Hr&&this.Fc.Rq();a[4]?this.Yc=new Pb(h,a[4]):this.Yc=null;this.Ja=[];this.U=[];6===
a.length?(b=a[5],this.Ja.length=b.length+1):this.Ja.length=1;break;case 21:this.ee=this.b.r[a[1]];this.Sg=a[2];a[3]?this.Yc=new Pb(h,a[3]):this.Yc=null;this.yr=a[4];break;case 22:this.ee=this.b.r[a[1]];this.ee.Uj(a[2]);this.Uc=this.ee.cm(a[2]);this.rb=this.b.ve(a[3]);this.Sg=a[4];a[5]?this.Yc=new Pb(h,a[5]):this.Yc=null;this.Ja=[];this.U=[];7===a.length?(b=a[6],this.Ja.length=b.length+1):this.Ja.length=1;break;case 23:this.Ti=a[1],this.Af=null}this.Fc.Sv(this.ee);4<=this.type&&17>=this.type&&(this.first=
new Pb(h,a[1]),this.second=new Pb(h,a[2]));if(b){var d,c;d=0;for(c=b.length;d<c;d++)this.U.push(new Pb(h,b[d]))}}function n(){++t;p.length===t&&p.push(new Ob);return p[t]}function l(h,a,b){var d,c;d=0;for(c=h.length;d<c;++d)h[d].get(b),a[d+1]=b.data}function r(h,a){this.type=h||Sb.dg;this.data=a||0;this.Tf=null;this.type==Sb.dg&&(this.data=Math.floor(this.data))}g.prototype.Qa=function(){23===this.type&&(this.Af=this.Fc.b.ep(this.Ti,this.Fc.oc.parent));this.first&&this.first.Qa();this.second&&this.second.Qa();
this.$k&&this.$k.Qa();this.Yc&&this.Yc.Qa();if(this.U){var h,a;h=0;for(a=this.U.length;h<a;h++)this.U[h].Qa()}};var p=[],t=-1;g.prototype.Ju=function(h){var a=this.U,b=this.Ja;b[0]=h;h=n();l(a,b,h);--t;this.rb.apply(this.b.Jd,b)};g.prototype.Eu=function(h){var a=this.ee,b=this.Ja,d=this.U,c=this.Yc,f=this.rb,e=this.Fc.oe,k=a.Y(),g=k.sc();if(!g.length)if(k.X.length)g=k.X;else{this.Sg?h.Lb(""):h.ja(0);return}b[0]=h;h.Tf=a;h=n();l(d,b,h);c&&(c.get(h),h.mb()&&(e=h.data,g=a.i));--t;a=g.length;if(e>=a||
e<=-a)e%=a;0>e&&(e+=a);f.apply(g[e],b)};g.prototype.pu=function(h){var a=this.ee,b=this.Ja,d=this.U,c=this.Yc,f=this.Uc,e=this.rb,k=this.Fc.oe,g=a.Y(),p=g.sc();if(!p.length)if(g.X.length)p=g.X;else{this.Sg?h.Lb(""):h.ja(0);return}b[0]=h;h.Tf=a;h=n();l(d,b,h);c&&(c.get(h),h.mb()&&(k=h.data,p=a.i));--t;d=p.length;if(k>=d||k<=-d)k%=d;0>k&&(k+=d);k=p[k];p=0;a.F&&(p=k.type.sg[a.Ud]);e.apply(k.M[f+p],b)};g.prototype.xu=function(h){var a=this.Yc,b=this.ee,d=this.yr,c=this.Fc.oe,f=b.Y(),e=f.sc();if(!e.length)if(f.X.length)e=
f.X;else{this.Sg?h.Lb(""):h.ja(0);return}if(a){f=n();a.get(f);if(f.mb()){c=f.data;e=b.i;0!==e.length&&(c%=e.length,0>c&&(c+=e.length));c=b.hm(c);b=c.cb[d];ja(b)?h.Lb(b):h.S(b);--t;return}--t}a=e.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=e[c];e=0;b.F&&(e=c.type.Lj[b.Ud]);b=c.cb[d+e];ja(b)?h.Lb(b):h.S(b)};g.prototype.yu=function(h){h.type=Sb.dg;h.data=this.value};g.prototype.uu=function(h){h.type=Sb.bg;h.data=this.value};g.prototype.Hu=function(h){h.type=Sb.String;h.data=this.value};g.prototype.Ku=function(h){this.first.get(h);
h.mb()&&(h.data=-h.data)};g.prototype.ju=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data+=a.data,a.zg()&&h.Lg());--t};g.prototype.Iu=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data-=a.data,a.zg()&&h.Lg());--t};g.prototype.Cu=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data*=a.data,a.zg()&&h.Lg());--t};g.prototype.ru=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data/=
a.data,h.Lg());--t};g.prototype.Bu=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data%=a.data,a.zg()&&h.Lg());--t};g.prototype.Gu=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data=Math.pow(h.data,a.data),a.zg()&&h.Lg());--t};g.prototype.ku=function(h){this.first.get(h);var a=n();this.second.get(a);a.Bg()||h.Bg()?this.mu(h,a):this.lu(h,a);--t};g.prototype.mu=function(h,a){h.Bg()&&a.Bg()?this.ou(h,a):this.nu(h,a)};g.prototype.ou=function(h,
a){h.data+=a.data};g.prototype.nu=function(h,a){h.Bg()?h.data+=(Math.round(1E10*a.data)/1E10).toString():h.Lb(h.data.toString()+a.data)};g.prototype.lu=function(h,a){h.ja(h.data&&a.data?1:0)};g.prototype.Fu=function(h){this.first.get(h);var a=n();this.second.get(a);h.mb()&&a.mb()&&(h.data||a.data?h.ja(1):h.ja(0));--t};g.prototype.qu=function(h){this.first.get(h);h.data?this.second.get(h):this.$k.get(h)};g.prototype.su=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data===a.data?
1:0);--t};g.prototype.Du=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data!==a.data?1:0);--t};g.prototype.zu=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data<a.data?1:0);--t};g.prototype.Au=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data<=a.data?1:0);--t};g.prototype.vu=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data>a.data?1:0);--t};g.prototype.wu=function(h){this.first.get(h);var a=n();this.second.get(a);h.ja(h.data>=
a.data?1:0);--t};g.prototype.tu=function(h){var a=this.Af.Cf();ia(a)?h.S(a):h.Lb(a)};Pb=g;r.prototype.zg=function(){return this.type===Sb.bg};r.prototype.mb=function(){return this.type===Sb.dg||this.type===Sb.bg};r.prototype.Bg=function(){return this.type===Sb.String};r.prototype.Lg=function(){this.zg()||(this.Bg()&&(this.data=parseFloat(this.data)),this.type=Sb.bg)};r.prototype.ja=function(h){this.type=Sb.dg;this.data=Math.floor(h)};r.prototype.S=function(h){this.type=Sb.bg;this.data=h};r.prototype.Lb=
function(h){this.type=Sb.String;this.data=h};r.prototype.Rk=function(h){ia(h)?(this.type=Sb.bg,this.data=h):ja(h)?(this.type=Sb.String,this.data=h.toString()):(this.type=Sb.dg,this.data=0)};Ob=r;Sb={dg:0,bg:1,String:2}})();function W(g){this.b=g;this.ac=[]}
W.prototype.Ka=function(){var g={},n,l,r,p,t,h,a,b;g.waits=[];var d=g.waits,c;n=0;for(l=this.ac.length;n<l;n++){h=this.ac[n];c={t:h.time,st:h.Xq,s:h.yn,ev:h.qg.W,sm:[],sols:{}};h.qg.Oc[h.cc]&&(c.act=h.qg.Oc[h.cc].W);r=0;for(p=h.ma.length;r<p;r++)c.sm.push(h.ma[r].W);for(t in h.Mb)if(h.Mb.hasOwnProperty(t)){a=this.b.r[parseInt(t,10)];b={sa:h.Mb[t].Lk,insts:[]};r=0;for(p=h.Mb[t].Yd.length;r<p;r++)b.insts.push(h.Mb[t].Yd[r].uid);c.sols[a.W.toString()]=b}d.push(c)}return g};
W.prototype.Ua=function(g){g=g.waits;var n,l,r,p,t,h,a,b,d,c,f;M(this.ac);n=0;for(l=g.length;n<l;n++)if(h=g[n],b=this.b.zo[h.ev.toString()]){d=-1;r=0;for(p=b.Oc.length;r<p;r++)if(b.Oc[r].W===h.act){d=r;break}if(-1!==d){a={Mb:{},ma:[],Nl:!1};a.time=h.t;a.Xq=h.st||"";a.yn=!!h.s;a.qg=b;a.cc=d;r=0;for(p=h.sm.length;r<p;r++)(b=this.b.Wj(h.sm[r]))&&a.ma.push(b);for(t in h.sols)if(h.sols.hasOwnProperty(t)&&(b=this.b.Wj(parseInt(t,10)))){d=h.sols[t];c={Lk:d.sa,Yd:[]};r=0;for(p=d.insts.length;r<p;r++)(f=this.b.Ih(d.insts[r]))&&
c.Yd.push(f);a.Mb[b.index.toString()]=c}this.ac.push(a)}}};
(function(){function g(){}function n(){}function l(){}var r=W.prototype;g.prototype.Rr=function(){return!0};g.prototype.eo=function(){return!0};g.prototype.Ds=function(){return!0};g.prototype.Zs=function(){var h=this.b.Hh().H;"undefined"===typeof h.TriggerOnce_lastTick&&(h.TriggerOnce_lastTick=-1);var a=h.TriggerOnce_lastTick,b=this.b.jd;h.TriggerOnce_lastTick=b;return this.b.Im||a!==b-1};g.prototype.Qr=function(h){var a=this.b.Hh(),b=a.H.Every_lastTime||0,d=this.b.jc.ka;"undefined"===typeof a.H.Every_seconds&&
(a.H.Every_seconds=h);var c=a.H.Every_seconds;if(d>=b+c)return a.H.Every_lastTime=b+c,d>=a.H.Every_lastTime+.04&&(a.H.Every_lastTime=d),a.H.Every_seconds=h,!0;d<b-.1&&(a.H.Every_lastTime=d);return!1};g.prototype.Lr=function(h,a,b){return Tb(h.Cf(),a,b)};g.prototype.Yr=function(h){return(h=this.b.xg[h.toLowerCase()])&&h.Df};g.prototype.Vn=function(){var h=this.b.kb();return h.Pl?!1:!h.Kf};g.prototype.fo=function(){return!0};g.prototype.rs=function(){return!0};g.prototype.kl=function(){return!0};g.prototype.io=
function(){return!0};g.prototype.Es=function(){return!0};g.prototype.gj=function(){return!0};g.prototype.Fr=function(h,a,b){return Ka(U(h),U(b))<=U(a)};g.prototype.Xr=function(h,a){return Ma(U(h),U(a))};g.prototype.Ur=function(h,a,b){h=Ia(h);a=Ia(a);b=Ia(b);return Ma(b,a)?Ma(h,a)&&!Ma(h,b):!(!Ma(h,a)&&Ma(h,b))};r.j=new g;n.prototype.Or=function(h,a,b,d){if(a&&h&&(a=this.b.Il(h,a,b,d))){this.b.ad++;var c;this.b.trigger(Object.getPrototypeOf(h.ca).j.ej,a);if(a.Vb)for(b=0,d=a.siblings.length;b<d;b++)c=
a.siblings[b],this.b.trigger(Object.getPrototypeOf(c.type.ca).j.ej,c);this.b.ad--;h=h.Y();h.la=!1;M(h.i);h.i[0]=a;if(a.Vb)for(b=0,d=a.siblings.length;b<d;b++)c=a.siblings[b],h=c.type.Y(),h.la=!1,M(h.i),h.i[0]=c}};n.prototype.Ts=function(h,a){0===h.Ui?ia(a)?h.me(a):h.me(parseFloat(a)):1===h.Ui&&h.me(a.toString())};n.prototype.Er=function(h,a){0===h.Ui?ia(a)?h.me(h.Cf()+a):h.me(h.Cf()+parseFloat(a)):1===h.Ui&&h.me(h.Cf()+a.toString())};n.prototype.Ys=function(h,a){0===h.Ui&&(ia(a)?h.me(h.Cf()-a):h.me(h.Cf()-
parseFloat(a)))};n.prototype.Os=function(h,a){var b=this.b.xg[h.toLowerCase()];if(b)switch(a){case 0:b.Pk(!1);break;case 1:b.Pk(!0);break;case 2:b.Pk(!b.Df)}};var p=[],t=[];n.prototype.bt=function(h){if(!(0>h)){var a,b,d,c=this.b.kb(),f;p.length?f=p.pop():f={Mb:{},ma:[]};f.Nl=!1;f.time=this.b.jc.ka+h;f.Xq="";f.yn=!1;f.qg=c.Sb;f.cc=c.cc+1;h=0;for(a=this.b.r.length;h<a;h++)d=this.b.r[h],b=d.Y(),b.la&&-1===c.Sb.ma.indexOf(d)||(f.ma.push(d),d=void 0,t.length?d=t.pop():d={Yd:[]},d.Lk=!1,d.Lk=b.la,za(d.Yd,
b.i),f.Mb[h.toString()]=d);this.ac.push(f);return!0}};r.C=new n;l.prototype["int"]=function(h,a){ja(a)?(h.ja(parseInt(a,10)),isNaN(h.data)&&(h.data=0)):h.ja(a)};l.prototype["float"]=function(h,a){ja(a)?(h.S(parseFloat(a)),isNaN(h.data)&&(h.data=0)):h.S(a)};l.prototype.random=function(h,a,b){void 0===b?h.S(Math.random()*a):h.S(Math.random()*(b-a)+a)};l.prototype.sqrt=function(h,a){h.S(Math.sqrt(a))};l.prototype.abs=function(h,a){h.S(Math.abs(a))};l.prototype.round=function(h,a){h.ja(Math.round(a))};
l.prototype.floor=function(h,a){h.ja(Math.floor(a))};l.prototype.ceil=function(h,a){h.ja(Math.ceil(a))};l.prototype.sin=function(h,a){h.S(Math.sin(U(a)))};l.prototype.cos=function(h,a){h.S(Math.cos(U(a)))};l.prototype.tan=function(h,a){h.S(Math.tan(U(a)))};l.prototype.asin=function(h,a){h.S(Ea(Math.asin(a)))};l.prototype.acos=function(h,a){h.S(Ea(Math.acos(a)))};l.prototype.atan=function(h,a){h.S(Ea(Math.atan(a)))};l.prototype.exp=function(h,a){h.S(Math.exp(a))};l.prototype.log10=function(h,a){h.S(Math.log(a)/
Math.LN10)};l.prototype.max=function(h){var a=arguments[1];"number"!==typeof a&&(a=0);var b,d,c;b=2;for(d=arguments.length;b<d;b++)c=arguments[b],"number"===typeof c&&a<c&&(a=c);h.S(a)};l.prototype.min=function(h){var a=arguments[1];"number"!==typeof a&&(a=0);var b,d,c;b=2;for(d=arguments.length;b<d;b++)c=arguments[b],"number"===typeof c&&a>c&&(a=c);h.S(a)};l.prototype.pg=function(h){h.S(this.b.pg)};l.prototype.Pi=function(h){h.S(this.b.Pi)};l.prototype.time=function(h){h.S(this.b.jc.ka)};l.prototype.jd=
function(h){h.ja(this.b.jd)};l.prototype.xk=function(h){h.ja(this.b.xk)};l.prototype.Xl=function(h){h.ja(this.b.Xl)};l.prototype.n=function(h,a,b,d,c){h.S(Ea(Ja(a,b,d,c)))};l.prototype.left=function(h,a,b){h.Lb(ja(a)?a.substr(0,b):"")};l.prototype.right=function(h,a,b){h.Lb(ja(a)?a.substr(a.length-b):"")};l.prototype.replace=function(h,a,b,d){ja(a)&&ja(b)&&ja(d)?h.Lb(a.replace(new RegExp(Wa(b),"gi"),d)):h.Lb(ja(a)?a:"")};l.prototype.trim=function(h,a){h.Lb(ja(a)?a.trim():"")};l.prototype.tt=function(h){var a=
B(Math.random()*(arguments.length-1));h.Rk(arguments[a+1])};l.prototype.Gl=function(h){h.S(this.b.Gl/1E3)};l.prototype.ok=function(h){h.S(this.b.ok)};r.wa=new l;r.vw=function(){var h,a,b,d,c,f,e=this.b.kb();h=0;for(b=this.ac.length;h<b;h++){d=this.ac[h];if(-1===d.time){if(!d.yn)continue}else if(d.time>this.b.jc.ka)continue;e.Sb=d.qg;e.cc=d.cc;e.bb=0;for(a in d.Mb)d.Mb.hasOwnProperty(a)&&(c=this.b.r[parseInt(a,10)].Y(),f=d.Mb[a],c.la=f.Lk,za(c.i,f.Yd),c=f,M(c.Yd),t.push(c));d.qg.uw();this.b.El(d.ma);
d.Nl=!0}a=h=0;for(b=this.ac.length;h<b;h++)d=this.ac[h],this.ac[a]=d,d.Nl?(Qa(d.Mb),M(d.ma),p.push(d)):a++;ya(this.ac,a)}})();
(function(){fb=function(g,l){var r=g[1],p=g[3],t=g[4],h=g[5],a=g[6],b=g[7],d=g[8];l.j||(l.j={});l.C||(l.C={});l.wa||(l.wa={});var c=l.j,f=l.C,e=l.wa;p&&(c.Mr=function(a,b){return Tb(this.x,a,b)},c.Nr=function(a,b){return Tb(this.y,a,b)},c.cx=function(){var a=this.k;this.ua();var b=this.Ba;return!(b.right<a.fa||b.bottom<a.ia||b.left>a.oa||b.top>a.na)},c.bs=function(){this.ua();var a=this.Ba,b=this.b.ta;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.rx=function(a,b,c){var e=this.Y(),
d=e.sc();if(!d.length)return!1;var f=d[0],h=f,g=Na(f.x,f.y,b,c),p,l,n;p=1;for(l=d.length;p<l;p++)if(f=d[p],n=Na(f.x,f.y,b,c),0===a&&n<g||1===a&&n>g)g=n,h=f;e.qi(h);return!0},f.Us=function(a){this.x!==a&&(this.x=a,this.u())},f.no=function(a){this.y!==a&&(this.y=a,this.u())},f.Qs=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.u()},f.Rs=function(a,b){var c=a.bv(this);if(c){var e;c.gm?(e=c.gm(b,!0),c=c.gm(b,!1)):(e=c.x,c=c.y);if(this.x!==e||this.y!==c)this.x=e,this.y=c,this.u()}},f.kx=
function(a){0!==a&&(this.x+=Math.cos(this.n)*a,this.y+=Math.sin(this.n)*a,this.u())},f.jx=function(a,b){0!==b&&(this.x+=Math.cos(U(a))*b,this.y+=Math.sin(U(a))*b,this.u())},e.Kx=function(a){a.S(this.x)},e.Lx=function(a){a.S(this.y)},e.pg=function(a){a.S(this.b.wg(this))});t&&(c.Yw=function(a,b){return Tb(this.width,a,b)},c.Vw=function(a,b){return Tb(this.height,a,b)},f.lo=function(a){this.width!==a&&(this.width=a,this.u())},f.Ex=function(a){this.height!==a&&(this.height=a,this.u())},f.Ss=function(a,
b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.u()},e.oo=function(a){a.S(this.width)},e.Tr=function(a){a.S(this.height)},e.Sw=function(a){this.ua();a.S(this.Ba.left)},e.Uw=function(a){this.ua();a.S(this.Ba.top)},e.Tw=function(a){this.ua();a.S(this.Ba.right)},e.Rw=function(a){this.ua();a.S(this.Ba.bottom)});h&&(c.Fr=function(a,b){return Ka(this.n,U(b))<=U(a)},c.Xr=function(a){return Ma(this.n,U(a))},c.Ur=function(a,b){var c=Ia(a),e=Ia(b),d=Ga(this.n);return Ma(e,c)?Ma(d,c)&&
!Ma(d,e):!(!Ma(d,c)&&Ma(d,e))},f.Ax=function(a){a=U(Fa(a));isNaN(a)||this.n===a||(this.n=a,this.u())},f.wx=function(a){0===a||isNaN(a)||(this.n+=U(a),this.n=Ga(this.n),this.u())},f.xx=function(a){0===a||isNaN(a)||(this.n-=U(a),this.n=Ga(this.n),this.u())},f.yx=function(a,b){var c=La(this.n,U(b),U(a));isNaN(c)||this.n===c||(this.n=c,this.u())},f.zx=function(a,b,c){a=La(this.n,Math.atan2(c-this.y,b-this.x),U(a));isNaN(a)||this.n===a||(this.n=a,this.u())},f.Gx=function(a,b){var c=Math.atan2(b-this.y,
a-this.x);isNaN(c)||this.n===c||(this.n=c,this.u())},e.Qw=function(a){a.S(Ha(this.n))});r||(c.Ww=function(a,b,c){return Tb(this.cb[a],b,c)},c.ax=function(a){return this.cb[a]},c.tx=function(a,b){var c=this.Y(),e=c.sc();if(!e.length)return!1;var d=e[0],f=d,h=d.cb[b],g,p,l;g=1;for(p=e.length;g<p;g++)if(d=e[g],l=d.cb[b],0===a&&l<h||1===a&&l>h)h=l,f=d;c.qi(f);return!0},c.qx=function(a){var b,c,e,d,f;if(this.b.Hh().Zj){f=this.Y();if(f.la)for(f.la=!1,M(f.i),M(f.X),e=this.i,b=0,c=e.length;b<c;b++)d=e[b],
d.uid===a?f.X.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.X.push(d):e++;ya(f.i,e)}this.sd();return!!f.i.length}d=this.b.Ih(a);if(!d)return!1;f=this.Y();if(!f.la&&-1===f.i.indexOf(d))return!1;if(this.F)for(a=d.type.Da,b=0,c=a.length;b<c;b++){if(a[b]===this)return f.qi(d),this.sd(),!0}else if(d.type===this)return f.qi(d),this.sd(),!0;return!1},c.ej=function(){return!0},c.ts=function(){return!0},f.jo=function(a,b){var c=this.cb;ia(c[a])?c[a]=ia(b)?b:parseFloat(b):
ja(c[a])&&(c[a]=ja(b)?b:b.toString())},f.Pw=function(a,b){var c=this.cb;ia(c[a])?c[a]=ia(b)?c[a]+b:c[a]+parseFloat(b):ja(c[a])&&(c[a]=ja(b)?c[a]+b:c[a]+b.toString())},f.Hx=function(a,b){var c=this.cb;ia(c[a])&&(c[a]=ia(b)?c[a]-b:c[a]-parseFloat(b))},f.Bx=function(a,b){this.cb[a]=b?1:0},f.Ix=function(a){this.cb[a]=1-this.cb[a]},f.Un=function(){this.b.lf(this)},f.hs||(f.hs=function(a){var b,c;try{b=JSON.parse(a)}catch(e){return}this.b.mk(this,b,!0);this.qd&&this.qd();if(this.M)for(a=0,b=this.M.length;a<
b;++a)c=this.M[a],c.qd&&c.qd()}),e.Zw=function(a){var b=a.Tf.i.length,c,e,d;c=0;for(e=this.b.Wc.length;c<e;c++)d=this.b.Wc[c],a.Tf.F?0<=d.type.Da.indexOf(a.Tf)&&b++:d.type===a.Tf&&b++;a.ja(b)},e.vx=function(a){a.ja(a.Tf.Y().sc().length)},e.Jx=function(a){a.ja(this.uid)},e.$w=function(a){a.ja(this.Kh())},e.Tn||(e.Tn=function(a){a.Lb(JSON.stringify(this.b.un(this,!0)))}));a&&(c.gx=function(){return this.visible},f.ko=function(a){!a!==!this.visible&&(this.visible=!!a,this.b.O=!0)},c.Xw=function(a,b){return Tb(bb(100*
this.opacity),a,b)},f.Fx=function(a){a=a/100;0>a?a=0:1<a&&(a=1);a!==this.opacity&&(this.opacity=a,this.b.O=!0)},e.Opacity=function(a){a.S(bb(100*this.opacity))});b&&(c.bx=function(a){return a?this.k===a:!1},c.ux=function(a){var b=this.Y(),c=b.sc();if(!c.length)return!1;var e=c[0],d=e,f,h;f=1;for(h=c.length;f<h;f++)if(e=c[f],0===a){if(e.k.index>d.k.index||e.k.index===d.k.index&&e.zd()>d.zd())d=e}else if(e.k.index<d.k.index||e.k.index===d.k.index&&e.zd()<d.zd())d=e;b.qi(d);return!0},f.ks=function(){var a=
this.k,b=a.i;b.length&&b[b.length-1]===this||(a.Rg(this,!1),a.nh(this,!1),this.b.O=!0)},f.lx=function(){var a=this.k,b=a.i;b.length&&b[0]===this||(a.Rg(this,!1),a.jw(this),this.b.O=!0)},f.mx=function(a){a&&a!=this.k&&(this.k.Rg(this,!0),this.k=a,a.nh(this,!0),this.b.O=!0)},f.Nx=function(a,b){var c=0===a;if(b){var e=b.fp(this);e&&e.uid!==this.uid&&(this.k.index!==e.k.index&&(this.k.Rg(this,!0),this.k=e.k,e.k.nh(this,!0)),this.k.Uv(this,e,c),this.b.O=!0)}},e.ix=function(a){a.ja(this.k.lq)},e.hx=function(a){a.Lb(this.k.name)},
e.Mx=function(a){a.ja(this.zd())});d&&(f.Cx=function(a,b){if(this.b.p){var c=this.type.fm(b);if(!(0>c)){var e=1===a;this.xe[c]!==e&&(this.xe[c]=e,this.md(),this.b.O=!0)}}},f.Dx=function(a,b,c){if(this.b.p){var e=this.type.fm(a);0>e||(a=this.type.N[e],e=this.Ia[e],b=Math.floor(b),0>b||b>=e.length||(1===this.b.p.gv(a.Za,b)&&(c/=100),e[b]!==c&&(e[b]=c,a.nc&&(this.b.O=!0))))}})};yb=function(){this.Cl=this.xl=!0;this.type.lj=!0;this.b.O=!0;var g,l,r=this.yl;g=0;for(l=r.length;g<l;++g)r[g](this);this.k.yc&&
this.ua()};zb=function(g){g&&this.yl.push(g)};Bb=function(){if(this.xl){var g=this.Ba,l=this.Ab;g.set(this.x,this.y,this.x+this.width,this.y+this.height);g.offset(-this.Hb*this.width,-this.Ib*this.height);this.n?(g.offset(-this.x,-this.y),l.Tq(g,this.n),l.offset(this.x,this.y),l.Ao(g)):l.Ei(g);g.normalize();this.xl=!1;this.Iw()}};var g=new ta(0,0,0,0);Cb=function(){if(this.k.yc){var n=this.k.wb,l=this.Ba;g.set(n.Pb(l.left),n.Qb(l.top),n.Pb(l.right),n.Qb(l.bottom));this.Zb.zh(g)||(this.Zb.right<this.Zb.left?
n.update(this,null,g):n.update(this,this.Zb,g),this.Zb.ig(g),this.k.gd=!0)}};Db=function(){if(this.Cl&&this.Pd){this.ua();var n=this.type.Aj,l=this.Ba;g.set(n.Pb(l.left),n.Qb(l.top),n.Pb(l.right),n.Qb(l.bottom));this.Fe.zh(g)||(this.Fe.right<this.Fe.left?n.update(this,null,g):n.update(this,this.Fe,g),this.Fe.ig(g),this.Cl=!1)}};Ab=function(g,l){return this.Ba.Rb(g,l)&&this.Ab.Rb(g,l)?this.Yg?this.Gw(g,l):this.ba&&!this.ba.yg()?(this.ba.tf(this.width,this.height,this.n),this.ba.Rb(g-this.x,l-this.y)):
!0:!1};ub=function(){this.type.el();return this.Gf};Eb=function(){this.k.Pn();return this.nd};Fb=function(){M(this.Z);var g,l,r,p=!0;g=0;for(l=this.xe.length;g<l;g++)this.xe[g]&&(r=this.type.N[g],this.Z.push(r),r.ed||(p=!1));this.xr=!!this.Z.length;this.ne=p};vb=function(){return"Inst"+this.Aq};ib=function(g){if(g&&g.Vb&&g.type!=this){var l,r,p;l=0;for(r=g.siblings.length;l<r;l++)if(p=g.siblings[l],p.type==this)return p}g=this.Y().sc();return g.length?g[0]:null};jb=function(g){var l=this.Y().sc();
return l.length?l[g.Kh()%l.length]:null};hb=function(){if(this.Wg&&!this.F){var g,l;g=0;for(l=this.i.length;g<l;g++)this.i[g].Gf=g;var r=g,p=this.b.Wc;g=0;for(l=p.length;g<l;++g)p[g].type===this&&(p[g].Gf=r++);this.Wg=!1}};sb=function(g){if(g<this.i.length)return this.i[g];g-=this.i.length;var l=this.b.Wc,r,p;r=0;for(p=l.length;r<p;++r)if(l[r].type===this){if(0===g)return l[r];--g}return null};kb=function(){return this.pe[this.wd]};lb=function(){this.wd++;this.wd===this.pe.length?this.pe.push(new gb(this)):
(this.pe[this.wd].la=!0,M(this.pe[this.wd].X))};mb=function(){this.wd++;this.wd===this.pe.length&&this.pe.push(new gb(this));var g=this.pe[this.wd],l=this.pe[this.wd-1];l.la?g.la=!0:(g.la=!1,za(g.i,l.i));M(g.X)};nb=function(){this.wd--};ob=function(g){var l,r,p,t,h,a=0;if(!this.F)for(l=0,r=this.Da.length;l<r;l++)for(h=this.Da[l],p=0,t=h.Fa.length;p<t;p++){if(g===h.Fa[p].name)return this.H.lastBehIndex=a,h.Fa[p];a++}l=0;for(r=this.Fa.length;l<r;l++){if(g===this.Fa[l].name)return this.H.lastBehIndex=
a,this.Fa[l];a++}return null};pb=function(g){return this.Uj(g)?this.H.lastBehIndex:-1};qb=function(g){var l,r;l=0;for(r=this.N.length;l<r;l++)if(this.N[l].name===g)return l;return-1};rb=function(){if(this.Vb&&!this.F){var g,l,r,p,t,h,a;this.el();h=this.Y();var b=h.la,d=(g=this.b.kb())&&g.Sb&&g.Sb.Ec;g=0;for(l=this.fc.length;g<l;g++)if(t=this.fc[g],t!==this&&(t.el(),a=t.Y(),a.la=b,!b)){M(a.i);r=0;for(p=h.i.length;r<p;++r)a.i[r]=t.hm(h.i[r].Gf);if(d)for(M(a.X),r=0,p=h.X.length;r<p;++r)a.X[r]=t.hm(h.X[r].Gf)}}};
tb=function(){return"Type"+this.W};Tb=function(g,l,r){if("undefined"===typeof g||"undefined"===typeof r)return!1;switch(l){case 0:return g===r;case 1:return g!==r;case 2:return g<r;case 3:return g<=r;case 4:return g>r;case 5:return g>=r;default:return!1}}})();var ac={};function Z(g){this.b=g}
(function(){function g(){}function n(){}function l(){}var r=!1,p=null,t=null,h="",a=Z.prototype;a.V=function(a){this.ca=a;this.b=a.b};a.V.prototype.I=function(){};a.R=function(a){this.type=a;this.b=a.b;this.pc=this.Bd="";this.Xb=0;this.timeout=-1;if(r=this.b.ck)p=require("path"),t=require("fs"),h=p.dirname((window.process||nw.process).execPath)+"\\"};var b=a.R.prototype,d=null;window.C2_AJAX_DCSide=function(a,b,c){d&&("success"===a?(d.pc=b,d.Bd=c,d.b.trigger(Z.prototype.j.bj,d),d.b.trigger(Z.prototype.j.gh,
d)):"error"===a?(d.pc=b,d.b.trigger(Z.prototype.j.cj,d),d.b.trigger(Z.prototype.j.hh,d)):"progress"===a&&(d.Xb=c,d.pc=b,d.b.trigger(Z.prototype.j.ho,d)))};b.I=function(){d=this};b.Ka=function(){return{lastData:this.Bd}};b.Ua=function(a){this.Bd=a.lastData;this.pc="";this.Xb=0};var c={},f="";b.Nt=function(a,b){if(this.b.Oe)AppMobi.webview.execute('C2_AJAX_WebSide("'+a+'", "'+b+'", "GET", null);');else{var d=this,g=null,q=function(){d.pc=a;d.b.trigger(Z.prototype.j.cj,d);d.b.trigger(Z.prototype.j.hh,
d)},m=function(){if(r){var c=h+b;t.existsSync(c)?t.readFile(c,{encoding:"utf8"},function(b,c){b?q():(d.pc=a,d.Bd=c.replace(/\r\n/g,"\n"),d.b.trigger(Z.prototype.j.bj,d),d.b.trigger(Z.prototype.j.gh,d))}):q()}else q()},p=function(b){b.lengthComputable&&(d.Xb=b.loaded/b.total,d.pc=a,d.b.trigger(Z.prototype.j.ho,d))};try{this.b.Qe?g=new ActiveXObject("Microsoft.XMLHTTP"):g=new XMLHttpRequest;g.onreadystatechange=function(){4===g.readyState&&(d.pc=a,g.responseText?d.Bd=g.responseText.replace(/\r\n/g,
"\n"):d.Bd="",400<=g.status?(d.b.trigger(Z.prototype.j.cj,d),d.b.trigger(Z.prototype.j.hh,d)):r&&!d.Bd.length||!r&&0===g.status&&!d.Bd.length||(d.b.trigger(Z.prototype.j.bj,d),d.b.trigger(Z.prototype.j.gh,d)))};this.b.Qe||(g.onerror=m,g.ontimeout=m,g.onabort=m,g.onprogress=p);g.open("GET",b);!this.b.Qe&&0<=this.timeout&&"undefined"!==typeof g.timeout&&(g.timeout=this.timeout);try{g.responseType="text"}catch(l){}if(g.setRequestHeader){for(var C in c)if(c.hasOwnProperty(C))try{g.setRequestHeader(C,
c[C])}catch(x){}c={}}if(f&&g.overrideMimeType){try{g.overrideMimeType(f)}catch(n){}f=""}g.send()}catch(G){m()}}};g.prototype.gh=function(a){return cb(a,this.pc)};g.prototype.bj=function(){return!0};g.prototype.hh=function(a){return cb(a,this.pc)};g.prototype.cj=function(){return!0};g.prototype.ho=function(a){return cb(a,this.pc)};a.j=new g;n.prototype.Ks=function(a,b){var c=this;this.b.Bm&&!this.b.vp(b)?this.b.Uo(b,function(b){c.pc=a;c.Bd=b.replace(/\r\n/g,"\n");c.b.trigger(Z.prototype.j.bj,c);c.b.trigger(Z.prototype.j.gh,
c)},function(){c.pc=a;c.b.trigger(Z.prototype.j.cj,c);c.b.trigger(Z.prototype.j.hh,c)}):this.Nt(a,b)};a.C=new n;l.prototype.gs=function(a){a.Lb(this.Bd)};a.wa=new l})();function ec(g){this.b=g}
(function(){function g(){return a.length?a.pop():[]}function n(b){var d,c;d=0;for(c=b.length;d<c;d++)Array.isArray(b[d])&&n(b[d]);M(b);a.push(b)}function l(){}function r(){}function p(){}var t=ec.prototype;t.V=function(a){this.ca=a;this.b=a.b};t.V.prototype.I=function(){};t.R=function(a){this.type=a;this.b=a.b};var h=t.R.prototype,a=[];Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});h.I=function(){this.qc=this.q[0];this.zc=this.q[1];this.Xc=this.q[2];
this.ub||(this.td=g());var a=this.td;a.length=this.qc;var d,c,f;for(d=0;d<this.qc;d++)for(a[d]||(a[d]=g()),a[d].length=this.zc,c=0;c<this.zc;c++)for(a[d][c]||(a[d][c]=g()),a[d][c].length=this.Xc,f=0;f<this.Xc;f++)a[d][c][f]=0;this.Xo=[];this.Yo=[];this.Zo=[];this.Vd=-1};h.dd=function(){var a;for(a=0;a<this.qc;a++)n(this.td[a]);M(this.td)};h.Rc=function(a,d,c){a=Math.floor(a);d=Math.floor(d);c=Math.floor(c);return isNaN(a)||0>a||a>this.qc-1||isNaN(d)||0>d||d>this.zc-1||isNaN(c)||0>c||c>this.Xc-1?0:
this.td[a][d][c]};h.set=function(a,d,c,f){a=Math.floor(a);d=Math.floor(d);c=Math.floor(c);isNaN(a)||0>a||a>this.qc-1||isNaN(d)||0>d||d>this.zc-1||isNaN(c)||0>c||c>this.Xc-1||(this.td[a][d][c]=f)};h.Su=function(){return JSON.stringify({c2array:!0,size:[this.qc,this.zc,this.Xc],data:this.td})};h.Ka=function(){return{size:[this.qc,this.zc,this.Xc],data:this.td}};h.Ua=function(a){var d=a.size;this.qc=d[0];this.zc=d[1];this.Xc=d[2];this.td=a.data};h.le=function(a,d,c){0>a&&(a=0);0>d&&(d=0);0>c&&(c=0);
if(this.qc!==a||this.zc!==d||this.Xc!==c){this.qc=a;this.zc=d;this.Xc=c;var f,e,k=this.td;k.length=a;for(a=0;a<this.qc;a++)for(ha(k[a])&&(k[a]=g()),k[a].length=d,f=0;f<this.zc;f++)for(ha(k[a][f])&&(k[a][f]=g()),k[a][f].length=c,e=0;e<this.Xc;e++)ha(k[a][f][e])&&(k[a][f][e]=0)}};h.Ol=function(){return 0<=this.Vd&&this.Vd<this.Xo.length?this.Xo[this.Vd]:0};h.op=function(){return 0<=this.Vd&&this.Vd<this.Yo.length?this.Yo[this.Vd]:0};h.Yx=function(){return 0<=this.Vd&&this.Vd<this.Zo.length?this.Zo[this.Vd]:
0};l.prototype.Mr=function(a,d,c){return Tb(this.Rc(a,0,0),d,c)};h.ud=function(a){this.b.xi(a.ma);a.Eq();this.b.bf(a.ma)};t.j=new l;r.prototype.Ss=function(a,d,c){this.le(a,d,c)};r.prototype.Us=function(a,d){this.set(a,0,0,d)};r.prototype.es=function(a){var d;try{d=JSON.parse(a)}catch(c){return}d.c2array&&(a=d.size,this.qc=a[0],this.zc=a[1],this.Xc=a[2],this.td=d.data)};t.C=new r;p.prototype.Gr=function(a,d,c,f){a.Rk(this.Rc(d,c||0,f||0))};p.prototype.oo=function(a){a.ja(this.qc)};p.prototype.Tr=
function(a){a.ja(this.zc)};p.prototype.Tn=function(a){a.Lb(this.Su())};t.wa=new p})();function dc(g){this.b=g}
(function(){function g(){this.name="";this.Bi=0;this.Ze=[]}function n(){a++;a===h.length&&h.push(new g);return h[a]}function l(){}function r(){}function p(){}var t=dc.prototype;t.V=function(a){this.ca=a;this.b=a.b};t.V.prototype.I=function(){};t.R=function(a){this.type=a;this.b=a.b};var h=[],a=-1;t.R.prototype.I=function(){var b=this;window.c2_callFunction=function(d,c){var f,e,k,h=n();h.name=d.toLowerCase();h.Bi=0;if(c)for(h.Ze.length=c.length,f=0,e=c.length;f<e;++f)k=c[f],h.Ze[f]="number"===typeof k||
"string"===typeof k?k:"boolean"===typeof k?k?1:0:0;else M(h.Ze);b.b.trigger(dc.prototype.j.fj,b,h.name);a--;return h.Bi}};l.prototype.fj=function(b){var d=0>a?null:h[a];return d?cb(b,d.name):!1};t.j=new l;r.prototype.CallFunction=function(b,d){var c=n();c.name=b.toLowerCase();c.Bi=0;za(c.Ze,d);this.b.trigger(dc.prototype.j.fj,this,c.name);a--};t.C=new r;p.prototype.Is=function(b,d){d=B(d);var c=0>a?null:h[a];c?0<=d&&d<c.Ze.length?b.Rk(c.Ze[d]):b.ja(0):b.ja(0)};p.prototype.Hr=function(b,d){var c=n();
c.name=d.toLowerCase();c.Bi=0;M(c.Ze);var f,e;f=2;for(e=arguments.length;f<e;f++)c.Ze.push(arguments[f]);this.b.trigger(dc.prototype.j.fj,this,c.name);a--;b.Rk(c.Bi)};t.wa=new p})();function fc(g){this.b=g}
(function(){function g(){}var n=fc.prototype;n.V=function(g){this.ca=g;this.b=g.b};n.V.prototype.I=function(){};n.R=function(g){this.type=g;this.b=g.b;this.Eg=Array(256);this.Ri=Array(256);this.te=0};var l=n.R.prototype;l.I=function(){var g=this;this.b.Ub||(jQuery(document).keydown(function(l){g.Zm(l)}),jQuery(document).keyup(function(l){g.$m(l)}))};var r=[32,33,34,35,36,37,38,39,40,44];l.Zm=function(g){var l=!1;window!=window.top&&-1<r.indexOf(g.which)&&(g.preventDefault(),l=!0,g.stopPropagation());
if(this.Eg[g.which])this.Ri[g.which]&&!l&&g.preventDefault();else{this.Eg[g.which]=!0;this.te=g.which;this.b.ak=!0;this.b.trigger(fc.prototype.j.os,this);var h=this.b.trigger(fc.prototype.j.As,this),a=this.b.trigger(fc.prototype.j.Bs,this);this.b.ak=!1;if(h||a)this.Ri[g.which]=!0,l||g.preventDefault()}};l.$m=function(g){this.Eg[g.which]=!1;this.te=g.which;this.b.ak=!0;this.b.trigger(fc.prototype.j.Yn,this);var l=this.b.trigger(fc.prototype.j.co,this),h=this.b.trigger(fc.prototype.j.bo,this);this.b.ak=
!1;if(l||h||this.Ri[g.which])this.Ri[g.which]=!0,g.preventDefault()};l.Uf=function(){var g;for(g=0;256>g;++g)if(this.Eg[g]){this.Eg[g]=!1;this.te=g;this.b.trigger(fc.prototype.j.Yn,this);var l=this.b.trigger(fc.prototype.j.co,this),h=this.b.trigger(fc.prototype.j.bo,this);if(l||h)this.Ri[g]=!0}};l.Ka=function(){return{triggerKey:this.te}};l.Ua=function(g){this.te=g.triggerKey};g.prototype.$r=function(g){return this.Eg[g]};g.prototype.As=function(g){return g===this.te};g.prototype.os=function(){return!0};
g.prototype.Yn=function(){return!0};g.prototype.co=function(g){return g===this.te};g.prototype.Bs=function(g){return g===this.te};g.prototype.bo=function(g){return g===this.te};n.j=new g;n.C=new function(){};n.wa=new function(){}})();
try{!function(){var g,n,l;!function(){var r={},p={};g=function(g,h,a){r[g]={Et:h,pt:a}};l=n=function(g){function h(a){if("."!==a.charAt(0))return a;a=a.split("/");for(var b=g.split("/").slice(0,-1),c=0,d=a.length;d>c;c++){var e=a[c];".."===e?b.pop():"."!==e&&b.push(e)}return b.join("/")}if(l.Ox=r,p[g])return p[g];if(p[g]={},!r[g])throw Error("Could not find module "+g);for(var a,b=r[g],d=b.Et,b=b.pt,c=[],f=0,e=d.length;e>f;f++)"exports"===d[f]?c.push(a={}):c.push(n(h(d[f])));d=b.apply(this,c);return p[g]=
a||d}}();g("promise/all",["./utils","exports"],function(g,p){var l=g.isArray,h=g.isFunction;p.all=function(a){if(!l(a))throw new TypeError("You must pass an array to all.");return new this(function(b,d){function c(a){return function(c){e[a]=c;0===--k&&b(e)}}var f,e=[],k=a.length;0===k&&b([]);for(var g=0;g<a.length;g++)(f=a[g])&&h(f.then)?f.then(c(g),d):(e[g]=f,0===--k&&b(e))})}});g("promise/asap",["exports"],function(g){function p(){return function(){process.Zx(a)}}function l(){var b=0,d=new c(a),
e=document.createTextNode("");return d.observe(e,{characterData:!0}),function(){e.data=b=++b%2}}function h(){return function(){f.setTimeout(a,1)}}function a(){for(var a=0;a<e.length;a++){var b=e[a];(0,b[0])(b[1])}e=[]}var b,d="undefined"!=typeof window?window:{},c=d.MutationObserver||d.WebKitMutationObserver,f="undefined"!=typeof global?global:void 0===this?window:this,e=[];b="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?p():c?l():h();g.jt=function(a,c){1===e.push([a,
c])&&b()}});g("promise/config",["exports"],function(g){var p={Wx:!1};g.Io=p;g.ut=function(g,h){return 2!==arguments.length?p[g]:void(p[g]=h)}});g("promise/polyfill",["./promise","./utils","exports"],function(g,p,l){var h=g.Promise,a=p.isFunction;l.ew=function(){var b;b="undefined"!=typeof global?global:"undefined"!=typeof window&&window.document?window:self;"Promise"in b&&"resolve"in b.Promise&&"reject"in b.Promise&&"all"in b.Promise&&"race"in b.Promise&&function(){var d;return new b.Promise(function(a){d=
a}),a(d)}()||(b.Promise=h)}});g("promise/promise","./config ./utils ./all ./race ./resolve ./reject ./asap exports".split(" "),function(g,p,l,h,a,b,d,c){function f(a){if(!F(a))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof f))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.jj=[];e(a,this)}function e(a,b){function c(a){m(b,
a)}function d(a){T(b,a)}try{a(c,d)}catch(e){d(e)}}function k(a,b,c,d){var e,f,h,k,g=F(c);if(g)try{e=c(d),h=!0}catch(v){k=!0,f=v}else e=d,h=!0;q(b,e)||(g&&h?m(b,e):k?T(b,f):a===A?m(b,e):a===P&&T(b,e))}function u(a,b,c,d){a=a.jj;var e=a.length;a[e]=b;a[e+A]=c;a[e+P]=d}function n(a,b){for(var c,d,e=a.jj,f=a.ij,h=0;h<e.length;h+=3)c=e[h],d=e[h+b],k(b,c,d,f);a.jj=null}function q(a,b){var c,d=null;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(G(b)&&(d=b.then,
F(d)))return d.call(b,function(d){return c?!0:(c=!0,void(b!==d?m(a,d):v(a,d)))},function(b){return c?!0:(c=!0,void T(a,b))}),!0}catch(e){return c?!0:(T(a,e),!0)}return!1}function m(a,b){a===b?v(a,b):q(a,b)||v(a,b)}function v(a,b){a.Nd===I&&(a.Nd=V,a.ij=b,R.async(C,a))}function T(a,b){a.Nd===I&&(a.Nd=V,a.ij=b,R.async(x,a))}function C(a){n(a,a.Nd=A)}function x(a){n(a,a.Nd=P)}var R=g.Io,G=(g.ut,p.Vv),F=p.isFunction;g=(p.now,l.all);h=h.race;a=a.resolve;b=b.reject;R.async=d.jt;var I=void 0,V=0,A=1,P=2;
f.prototype={constructor:f,Nd:void 0,ij:void 0,jj:void 0,then:function(a,b){var c=this,d=new this.constructor(function(){});if(this.Nd){var e=arguments;R.async(function(){k(c.Nd,d,e[c.Nd-1],c.ij)})}else u(this,d,a,b);return d},"catch":function(a){return this.then(null,a)}};f.all=g;f.race=h;f.resolve=a;f.reject=b;c.Promise=f});g("promise/race",["./utils","exports"],function(g,p){var l=g.isArray;p.race=function(h){if(!l(h))throw new TypeError("You must pass an array to race.");return new this(function(a,
b){for(var d,c=0;c<h.length;c++)(d=h[c])&&"function"==typeof d.then?d.then(a,b):a(d)})}});g("promise/reject",["exports"],function(g){g.reject=function(g){return new this(function(l,h){h(g)})}});g("promise/resolve",["exports"],function(g){g.resolve=function(g){return g&&"object"==typeof g&&g.constructor===this?g:new this(function(l){l(g)})}});g("promise/utils",["exports"],function(g){function l(h){return"function"==typeof h}var n=Date.now||function(){return(new Date).getTime()};g.Vv=function(h){return l(h)||
"object"==typeof h&&null!==h};g.isFunction=l;g.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)};g.now=n});n("promise/polyfill").ew()}();var gc=function(){return function(g){function n(r){if(l[r])return l[r].xd;var p=l[r]={xd:{},id:r,loaded:!1};return g[r].call(p.xd,p,p.xd,n),p.loaded=!0,p.xd}var l={};return n.ud=g,n.qh=l,n.Ol="",n(0)}([function(g,n,l){n.hj=!0;var r=function(g){function n(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,
c)})}}function h(){for(var a=1;a<arguments.length;a++){var b=arguments[a];if(b)for(var c in b)b.hasOwnProperty(c)&&(k(b[c])?arguments[0][c]=b[c].slice():arguments[0][c]=b[c])}return arguments[0]}function a(a){for(var b in d)if(d.hasOwnProperty(b)&&d[b]===a)return!0;return!1}var b={},d={eh:"asyncStorage",fh:"localStorageWrapper",ih:"webSQLStorage"},c="clear getItem iterate key keys length removeItem setItem".split(" "),f={description:"",og:[d.eh,d.ih,d.fh].slice(),name:"localforage",size:4980736,ea:"keyvaluepairs",
version:1},e=function(a){var b={},c;try{var e=e||a.indexedDB||a.webkitIndexedDB||a.mozIndexedDB||a.op||a.msIndexedDB;c="undefined"!=typeof a.openDatabase&&a.navigator&&a.navigator.userAgent&&/Safari/.test(a.navigator.userAgent)&&!/Chrome/.test(a.navigator.userAgent)?!1:e&&"function"==typeof e.open&&"undefined"!=typeof a.IDBKeyRange}catch(f){c=!1}b[d.eh]=!!c;var h;try{h=a.openDatabase}catch(k){h=!1}b[d.ih]=!!h;var g;try{g=a.localStorage&&"setItem"in a.localStorage&&a.localStorage.setItem}catch(l){g=
!1}return b[d.fh]=!!g,b}(g),k=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};return new (function(){function g(a){if(!(this instanceof g))throw new TypeError("Cannot call a class as a function");this.eh=d.eh;this.fh=d.fh;this.ih=d.ih;this.pl=h({},f);this.nf=h({},this.pl,a);this.qo=this.od=null;this.we=!1;this.aa=null;this.ro();this.Mq(this.nf.og)}return g.prototype.Io=function(a){if("object"==typeof a){if(this.we)return Error("Can't call config() after localforage has been used.");
for(var b in a)"storeName"===b&&(a[b]=a[b].replace(/\W/g,"_")),this.nf[b]=a[b];return"driver"in a&&a.og&&this.Mq(this.nf.og),!0}return"string"==typeof a?this.nf[a]:this.nf},g.prototype.og=function(){return this.jh||null},g.prototype.dp=function(c,d,e){var f=this,h=function(){if(a(c))switch(c){case f.eh:return new Promise(function(a){a(l(1))});case f.fh:return new Promise(function(a){a(l(2))});case f.ih:return new Promise(function(a){a(l(4))})}else if(b[c])return Promise.resolve(b[c]);return Promise.reject(Error("Driver not found."))}();
return h.then(d,e),h},g.prototype.ready=function(a){var b=this,c=b.od.then(function(){return null===b.we&&(b.we=b.qo()),b.we});return c.then(a,a),c},g.prototype.Mq=function(a,b,c){function d(){f.nf.og=f.og()}function e(a){return function(){function b(){for(;c<a.length;){var e=a[c];return c++,f.aa=null,f.we=null,f.dp(e).then(function(a){return f.ct(a),d(),f.we=f.rl(f.nf),f.we})["catch"](b)}d();return f.od=Promise.reject(Error("No available storage method found.")),f.od}var c=0;return b()}}var f=this;
k(a)||(a=[a]);var h=this.dt(a);return this.od=(null!==this.od?this.od["catch"](function(){return Promise.resolve()}):Promise.resolve()).then(function(){var a=h[0];return f.aa=null,f.we=null,f.dp(a).then(function(a){f.jh=a.jh;d();f.ro();f.qo=e(h)})})["catch"](function(){d();return f.od=Promise.reject(Error("No available storage method found.")),f.od}),this.od.then(b,c),this.od},g.prototype.supports=function(a){return!!e[a]},g.prototype.ct=function(a){h(this,a)},g.prototype.dt=function(a){for(var b=
[],c=0,d=a.length;d>c;c++){var e=a[c];this.supports(e)&&b.push(e)}return b},g.prototype.ro=function(){for(var a=0;a<c.length;a++)n(this,c[a])},g.prototype.Il=function(a){return new g(a)},g}())}("undefined"!=typeof window?window:self);n["default"]=r;g.xd=n["default"]},function(g,n){n.hj=!0;n["default"]=function(g){function n(a,b){a=a||[];b=b||{};try{return new Blob(a,b)}catch(c){if("TypeError"!==c.name)throw c;for(var d=new (g.BlobBuilder||g.ud||g.Ol||g.WebKitBlobBuilder),e=0;e<a.length;e+=1)d.append(a[e]);
return d.getBlob(b.type)}}function p(a){return new Promise(function(b,c){var d=new XMLHttpRequest;d.open("GET",a);d.withCredentials=!0;d.responseType="arraybuffer";d.onreadystatechange=function(){return 4===d.readyState?200===d.status?b({response:d.response,type:d.getResponseHeader("Content-Type")}):void c({status:d.status,response:d.response}):void 0};d.send()})}function t(a){return(new Promise(function(b,c){var d=n([""],{type:"image/png"}),e=a.transaction([I],"readwrite");e.objectStore(I).put(d,
"key");e.oncomplete=function(){var d=a.transaction([I],"readwrite").objectStore(I).get("key");d.onerror=c;d.onsuccess=function(a){var c=URL.createObjectURL(a.target.result);p(c).then(function(a){b(!(!a||"image/png"!==a.type))},function(){b(!1)}).then(function(){URL.revokeObjectURL(c)})}};e.onerror=e.onabort=c}))["catch"](function(){return!1})}function h(a){return"boolean"==typeof G?Promise.resolve(G):t(a).then(function(a){return G=a})}function a(a){return new Promise(function(b,c){var d=new FileReader;
d.onerror=c;d.onloadend=function(c){b({po:!0,data:btoa(c.target.result||""),type:a.type})};d.readAsBinaryString(a)})}function b(a){for(var b=atob(a.data),c=b.length,d=new ArrayBuffer(c),e=new Uint8Array(d),f=0;c>f;f++)e[f]=b.charCodeAt(f);return n([d],{type:a.type})}function d(a){var b=this,c=b.ql().then(function(){var a=F[b.aa.name];return a&&a.lg?a.lg:void 0});return c.then(a,a),c}function c(a){a=F[a.name];var b={};b.promise=new Promise(function(a){b.resolve=a});a.Lo.push(b);a.lg?a.lg=a.lg.then(function(){return b.promise}):
a.lg=b.promise}function f(a){function b(){return Promise.resolve()}var c=this,f={db:null};if(a)for(var h in a)f[h]=a[h];F||(F={});var k=F[f.name];k||(k={Rj:[],db:null,lg:null,Lo:[]},F[f.name]=k);k.Rj.push(c);c.ql||(c.ql=c.ready,c.ready=d);a=[];for(h=0;h<k.Rj.length;h++){var m=k.Rj[h];m!==c&&a.push(m.ql()["catch"](b))}var q=k.Rj.slice(0);return Promise.all(a).then(function(){return f.db=k.db,e(f,!1)}).then(function(a){f.db=a;var b;b=c.pl.version;if(f.db){var d=!f.db.objectStoreNames.contains(f.ea),
h=f.version>f.db.version;(f.version<f.db.version&&(f.version!==b&&g.console.warn('The database "'+f.name+"\" can't be downgraded from version "+f.db.version+" to version "+f.version+"."),f.version=f.db.version),h||d)?(d&&(b=f.db.version+1,b>f.version&&(f.version=b)),b=!0):b=!1}else b=!0;return b?e(f,!0):a}).then(function(a){f.db=k.db=a;c.aa=f;for(a=0;a<q.length;a++){var b=q[a];b!==c&&(b.aa.db=f.db,b.aa.version=f.version)}})}function e(a,b){return new Promise(function(d,e){if(a.db){if(!b)return d(a.db);
c(a);a.db.close()}var f=[a.name];b&&f.push(a.version);var h=R.open.apply(R,f);b&&(h.onupgradeneeded=function(b){var c=h.result;try{c.createObjectStore(a.ea),1>=b.oldVersion&&c.createObjectStore(I)}catch(d){if("ConstraintError"!==d.name)throw d;g.console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.ea+'" already exists.')}});h.onerror=function(){e(h.error)};h.onsuccess=function(){d(h.result);var b=F[a.name].Lo.pop();
b&&b.resolve()}})}function k(a,c){var d=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){var f=d.aa,h=f.db.transaction(f.ea,"readonly").objectStore(f.ea).get(a);h.onsuccess=function(){var a=h.result;void 0===a&&(a=null);a&&a.po&&(a=b(a));c(a)};h.onerror=function(){e(h.error)}})["catch"](e)});return x(e,c),e}function u(a,c){var d=this,e=new Promise(function(c,e){d.ready().then(function(){var f=
d.aa,h=f.db.transaction(f.ea,"readonly").objectStore(f.ea).openCursor(),k=1;h.onsuccess=function(){var d=h.result;if(d){var e=d.value;e&&e.po&&(e=b(e));e=a(e,d.key,k++);void 0!==e?c(e):d["continue"]()}else c()};h.onerror=function(){e(h.error)}})["catch"](e)});return x(e,c),e}function w(b,c,d){var e=this;"string"!=typeof b&&(g.console.warn(b+" used as a key, but it is not a string."),b=String(b));var f=new Promise(function(d,f){var k;e.ready().then(function(){return k=e.aa,c instanceof Blob?h(k.db).then(function(b){return b?
c:a(c)}):c}).then(function(a){var c=k.db.transaction(k.ea,"readwrite"),e=c.objectStore(k.ea);null===a&&(a=void 0);c.oncomplete=function(){void 0===a&&(a=null);d(a)};c.onabort=c.onerror=function(){f(h.error?h.error:h.transaction.error)};var h=e.put(a,b)})["catch"](f)});return x(f,d),f}function q(a,b){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.aa,f=e.db.transaction(e.ea,"readwrite"),
h=f.objectStore(e.ea)["delete"](a);f.oncomplete=function(){b()};f.onerror=function(){d(h.error)};f.onabort=function(){d(h.error?h.error:h.transaction.error)}})["catch"](d)});return x(d,b),d}function m(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa,e=d.db.transaction(d.ea,"readwrite"),f=e.objectStore(d.ea).clear();e.oncomplete=function(){a()};e.onabort=e.onerror=function(){c(f.error?f.error:f.transaction.error)}})["catch"](c)});return x(c,a),c}function v(a){var b=this,
c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa,e=d.db.transaction(d.ea,"readonly").objectStore(d.ea).count();e.onsuccess=function(){a(e.result)};e.onerror=function(){c(e.error)}})["catch"](c)});return x(c,a),c}function T(a,b){var c=this,d=new Promise(function(b,d){return 0>a?void b(null):void c.ready().then(function(){var e=c.aa,f=!1,h=e.db.transaction(e.ea,"readonly").objectStore(e.ea).openCursor();h.onsuccess=function(){var c=h.result;return c?void(0===a?b(c.key):f?b(c.key):(f=
!0,c.advance(a))):void b(null)};h.onerror=function(){d(h.error)}})["catch"](d)});return x(d,b),d}function C(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa,e=d.db.transaction(d.ea,"readonly").objectStore(d.ea).openCursor(),f=[];e.onsuccess=function(){var b=e.result;return b?(f.push(b.key),void b["continue"]()):void a(f)};e.onerror=function(){c(e.error)}})["catch"](c)});return x(c,a),c}function x(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var R=R||g.indexedDB||
g.webkitIndexedDB||g.mozIndexedDB||g.op||g.msIndexedDB;if(R){var G,F,I="local-forage-detect-blob-support";return{jh:"asyncStorage",rl:f,Ep:u,getItem:k,setItem:w,removeItem:q,clear:m,length:v,key:T,keys:C}}}("undefined"!=typeof window?window:self);g.xd=n["default"]},function(g,n,l){n.hj=!0;n["default"]=function(g){function p(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var n=null;try{if(!(g.localStorage&&"setItem"in g.localStorage))return;n=g.localStorage}catch(h){return}return{jh:"localStorageWrapper",
rl:function(a){var b={};if(a)for(var d in a)b[d]=a[d];return b.Ad=b.name+"/",b.ea!==this.pl.ea&&(b.Ad+=b.ea+"/"),this.aa=b,(new Promise(function(a){a(l(3))})).then(function(a){return b.Wf=a,Promise.resolve()})},Ep:function(a,b){var d=this,c=d.ready().then(function(){for(var b=d.aa,c=b.Ad,h=c.length,g=n.length,p=1,q=0;g>q;q++){var m=n.key(q);if(0===m.indexOf(c)){var v=n.getItem(m);if(v&&(v=b.Wf.Ij(v)),v=a(v,m.substring(h),p++),void 0!==v)return v}}});return p(c,b),c},getItem:function(a,b){var d=this;
"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){var b=d.aa,c=n.getItem(b.Ad+a);return c&&(c=b.Wf.Ij(c)),c});return p(c,b),c},setItem:function(a,b,d){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var f=c.ready().then(function(){void 0===b&&(b=null);var d=b;return new Promise(function(f,h){var g=c.aa;g.Wf.serialize(b,function(b,c){if(c)h(c);else try{n.setItem(g.Ad+
a,b),f(d)}catch(v){"QuotaExceededError"!==v.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==v.name||h(v),h(v)}})})});return p(f,d),f},removeItem:function(a,b){var d=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var c=d.ready().then(function(){n.removeItem(d.aa.Ad+a)});return p(c,b),c},clear:function(a){var b=this,d=b.ready().then(function(){for(var a=b.aa.Ad,d=n.length-1;0<=d;d--){var e=n.key(d);0===e.indexOf(a)&&n.removeItem(e)}});return p(d,a),d},length:function(a){var b=
this.keys().then(function(a){return a.length});return p(b,a),b},key:function(a,b){var d=this,c=d.ready().then(function(){var b,c=d.aa;try{b=n.key(a)}catch(h){b=null}return b&&(b=b.substring(c.Ad.length)),b});return p(c,b),c},keys:function(a){var b=this,d=b.ready().then(function(){for(var a=b.aa,d=n.length,e=[],h=0;d>h;h++)0===n.key(h).indexOf(a.Ad)&&e.push(n.key(h).substring(a.Ad.length));return e});return p(d,a),d}}}("undefined"!=typeof window?window:self);g.xd=n["default"]},function(g,n){n.hj=!0;
n["default"]=function(g){function n(a){var b,d,c,f,e;b=.75*a.length;var h=a.length,g=0;"="===a[a.length-1]&&(b--,"="===a[a.length-2]&&b--);var p=new ArrayBuffer(b),q=new Uint8Array(p);for(b=0;h>b;b+=4)d=t.indexOf(a[b]),c=t.indexOf(a[b+1]),f=t.indexOf(a[b+2]),e=t.indexOf(a[b+3]),q[g++]=d<<2|c>>4,q[g++]=(15&c)<<4|f>>2,q[g++]=(3&f)<<6|63&e;return p}function p(a){var b=new Uint8Array(a),d="";for(a=0;a<b.length;a+=3)d+=t[b[a]>>2],d+=t[(3&b[a])<<4|b[a+1]>>4],d+=t[(15&b[a+1])<<2|b[a+2]>>6],d+=t[63&b[a+2]];
return 2===b.length%3?d=d.substring(0,d.length-1)+"=":1===b.length%3&&(d=d.substring(0,d.length-2)+"=="),d}var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/^~~local_forage_type~([^~]+)~/;return{serialize:function(a,b){var d="";if(a&&(d=a.toString()),a&&("[object ArrayBuffer]"===a.toString()||a.buffer&&"[object ArrayBuffer]"===a.buffer.toString())){var c,f="__lfsc__:";a instanceof ArrayBuffer?(c=a,f+="arbf"):(c=a.buffer,"[object Int8Array]"===d?f+="si08":"[object Uint8Array]"===
d?f+="ui08":"[object Uint8ClampedArray]"===d?f+="uic8":"[object Int16Array]"===d?f+="si16":"[object Uint16Array]"===d?f+="ur16":"[object Int32Array]"===d?f+="si32":"[object Uint32Array]"===d?f+="ui32":"[object Float32Array]"===d?f+="fl32":"[object Float64Array]"===d?f+="fl64":b(Error("Failed to get type for BinaryArray")));b(f+p(c))}else if("[object Blob]"===d)d=new FileReader,d.onload=function(){var c="~~local_forage_type~"+a.type+"~"+p(this.result);b("__lfsc__:blob"+c)},d.readAsArrayBuffer(a);else try{b(JSON.stringify(a))}catch(e){console.error("Couldn't convert value into a JSON string: ",
a),b(null,e)}},Ij:function(a){if("__lfsc__:"!==a.substring(0,9))return JSON.parse(a);var b,d=a.substring(13);a=a.substring(9,13);if("blob"===a&&h.test(d)){var c=d.match(h);b=c[1];d=d.substring(c[0].length)}d=n(d);switch(a){case "arbf":return d;case "blob":var f;d=[d];b={type:b};d=d||[];b=b||{};try{f=new Blob(d,b)}catch(e){if("TypeError"!==e.name)throw e;f=new (g.BlobBuilder||g.ud||g.Ol||g.WebKitBlobBuilder);for(a=0;a<d.length;a+=1)f.append(d[a]);f=f.getBlob(b.type)}return f;case "si08":return new Int8Array(d);
case "ui08":return new Uint8Array(d);case "uic8":return new Uint8ClampedArray(d);case "si16":return new Int16Array(d);case "ur16":return new Uint16Array(d);case "si32":return new Int32Array(d);case "ui32":return new Uint32Array(d);case "fl32":return new Float32Array(d);case "fl64":return new Float64Array(d);default:throw Error("Unkown type: "+a);}},ey:n,Rx:p}}("undefined"!=typeof window?window:self);g.xd=n["default"]},function(g,n,l){n.hj=!0;n["default"]=function(g){function p(a){var b=this,c={db:null};
if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new Promise(function(a,d){try{c.db=u(c.name,String(c.version),c.description,c.size)}catch(e){return d(e)}c.db.transaction(function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+c.ea+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){b.aa=c;a()},function(a,b){d(b)})})});return(new Promise(function(a){a(l(3))})).then(function(a){return c.Wf=a,e})}function n(a,b){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),
a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.aa;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ea+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.Wf.Ij(d));b(d)},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function h(a,b){var c=this,d=new Promise(function(b,d){c.ready().then(function(){var e=c.aa;e.db.transaction(function(c){c.executeSql("SELECT * FROM "+e.ea,[],function(c,d){for(var f=d.rows,
h=f.length,k=0;h>k;k++){var g=f.item(k),m=g.value;if(m&&(m=e.Wf.Ij(m)),m=a(m,g.key,k+1),void 0!==m)return void b(m)}b()},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function a(a,b,c){var d=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var e=new Promise(function(c,e){d.ready().then(function(){void 0===b&&(b=null);var f=b,h=d.aa;h.Wf.serialize(b,function(b,d){d?e(d):h.db.transaction(function(d){d.executeSql("INSERT OR REPLACE INTO "+h.ea+
" (key, value) VALUES (?, ?)",[a,b],function(){c(f)},function(a,b){e(b)})},function(a){a.code===a.QUOTA_ERR&&e(a)})})})["catch"](e)});return k(e,c),e}function b(a,b){var c=this;"string"!=typeof a&&(g.console.warn(a+" used as a key, but it is not a string."),a=String(a));var d=new Promise(function(b,d){c.ready().then(function(){var e=c.aa;e.db.transaction(function(c){c.executeSql("DELETE FROM "+e.ea+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function d(a){var b=
this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa;d.db.transaction(function(b){b.executeSql("DELETE FROM "+d.ea,[],function(){a()},function(a,b){c(b)})})})["catch"](c)});return k(c,a),c}function c(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa;d.db.transaction(function(b){b.executeSql("SELECT COUNT(key) as c FROM "+d.ea,[],function(b,c){var d=c.rows.item(0).qh;a(d)},function(a,b){c(b)})})})["catch"](c)});return k(c,a),c}function f(a,b){var c=this,
d=new Promise(function(b,d){c.ready().then(function(){var e=c.aa;e.db.transaction(function(c){c.executeSql("SELECT key FROM "+e.ea+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})})["catch"](d)});return k(d,b),d}function e(a){var b=this,c=new Promise(function(a,c){b.ready().then(function(){var d=b.aa;d.db.transaction(function(b){b.executeSql("SELECT key FROM "+d.ea,[],function(b,c){for(var d=[],e=0;e<c.rows.length;e++)d.push(c.rows.item(e).key);
a(d)},function(a,b){c(b)})})})["catch"](c)});return k(c,a),c}function k(a,b){b&&a.then(function(a){b(null,a)},function(a){b(a)})}var u=g.openDatabase;if(u)return{jh:"webSQLStorage",rl:p,Ep:h,getItem:n,setItem:a,removeItem:b,clear:d,length:c,key:f,keys:e}}("undefined"!=typeof window?window:self);g.xd=n["default"]}])};"object"==typeof exports&&"object"==typeof module?module.xd=gc():"function"==typeof define&&define.Qx?define([],gc):"object"==typeof exports?exports.localforage=gc():this.localforage=
gc()}catch(hc){}function ic(g){this.b=g}(function(){function g(){}var n=ic.prototype;n.V=function(g){this.ca=g;this.b=g.b};n.V.prototype.I=function(){};n.R=function(g){this.type=g;this.b=g.b};var l=n.R.prototype;l.I=function(){};l.dd=function(){};l.Ka=function(){return{}};l.Ua=function(){};g.prototype.hh=function(){return!0};n.j=new g;n.C=new function(){};n.wa=new function(){}})();function X(g){this.b=g}
(function(){function g(){if(0===this.Ll.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Vg?b.drawImage(this.B,this.Og,this.Pg,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.B,0,0,this.width,this.height);this.Ll=a.toDataURL("image/png")}return this.Ll}function n(){}function l(a){a[0]=0;a[1]=0;a[2]=0;e.push(a)}function r(a,b){return a<b?""+a+","+b:""+b+","+a}function p(a,b,c,d){b=b.uid;c=c.uid;var f=r(b,c);if(a.hasOwnProperty(f))a[f][2]=
d;else{var h=e.length?e.pop():[0,0,0];h[0]=b;h[1]=c;h[2]=d;a[f]=h}}function t(a,b,c){b=r(b.uid,c.uid);a.hasOwnProperty(b)&&(l(a[b]),delete a[b])}function h(a,b,c){b=r(b.uid,c.uid);if(a.hasOwnProperty(b))return k=a[b][2],!0;k=-2;return!1}function a(){}var b=X.prototype;b.V=function(a){this.ca=a;this.b=a.b};var d=b.V.prototype;d.I=function(){if(!this.F){var a,b,c,d,e,f,h,k,m;this.Pc=[];this.Mh=!1;a=0;for(b=this.ec.length;a<b;a++){e=this.ec[a];h={};h.name=e[0];h.speed=e[1];h.loop=e[2];h.qn=e[3];h.rn=
e[4];h.tq=e[5];h.W=e[6];h.frames=[];c=0;for(d=e[7].length;c<d;c++)f=e[7][c],k={},k.Mi=f[0],k.Yk=f[1],k.Og=f[2],k.Pg=f[3],k.width=f[4],k.height=f[5],k.duration=f[6],k.Hb=f[7],k.Ib=f[8],k.pm=f[9],k.Bk=f[10],k.uq=f[11],k.Vg=0!==k.width,k.Ll="",k.Tx=g,m={left:0,top:0,right:1,bottom:1},k.xn=m,k.P=null,(m=this.b.Ou(f[0]))?k.B=m:(k.B=new Image,k.B.yt=f[0],k.B.Hl=f[1],k.B.ot=null,this.b.Rn(k.B,f[0])),h.frames.push(k),this.Pc.push(k);this.ec[a]=h}}};d.sr=function(){var a,b,c;a=0;for(b=this.i.length;a<b;a++)c=
this.i[a],c.Dj=c.pb.P};d.Qg=function(){if(!this.F){var a,b,c;a=0;for(b=this.Pc.length;a<b;++a)c=this.Pc[a],c.B.ot=null,c.P=null;this.Mh=!1;this.sr()}};d.oi=function(){if(!this.F&&this.i.length){var a,b,c;a=0;for(b=this.Pc.length;a<b;++a)c=this.Pc[a],c.P=this.b.p.Jg(c.B,!1,this.b.xa,c.uq);this.sr()}};d.nk=function(){if(!this.F&&!this.Mh&&this.b.p){var a,b,c;a=0;for(b=this.Pc.length;a<b;++a)c=this.Pc[a],c.P=this.b.p.Jg(c.B,!1,this.b.xa,c.uq);this.Mh=!0}};d.Qi=function(){if(!this.F&&!this.i.length&&
this.Mh){var a,b,c;a=0;for(b=this.Pc.length;a<b;++a)c=this.Pc[a],this.b.p.deleteTexture(c.P),c.P=null;this.Mh=!1}};var c=[];d.si=function(a){var b,d,e;M(c);b=0;for(d=this.Pc.length;b<d;++b)e=this.Pc[b].B,-1===c.indexOf(e)&&(a.drawImage(e,0,0),c.push(e))};b.R=function(a){this.type=a;this.b=a.b;a=this.type.ec[0].frames[0].Bk;this.ub?this.ba.Fi(a):this.ba=new Xa(a)};var f=b.R.prototype;f.I=function(){this.visible=0===this.q[0];this.Yj=this.Uh=!1;this.Pd=0!==this.q[3];this.Ca=this.bp(this.q[1])||this.type.ec[0];
this.G=this.q[2];0>this.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);var a=this.Ca.frames[this.G];this.ba.Fi(a.Bk);this.Hb=a.Hb;this.Ib=a.Ib;this.jg=this.Ca.speed;this.He=this.Ca.rn;1===this.type.ec.length&&1===this.type.ec[0].frames.length||0===this.jg||(this.b.Oi(this),this.Uh=!0);this.ub?this.rd.reset():this.rd=new Va;this.Wd=this.rd.ka;this.pf=!0;this.Od=0;this.of=!0;this.wj=this.uo="";this.Fo=0;this.vj=-1;this.type.nk();var b,c,d,e,f,h,k,a=0;for(b=this.type.ec.length;a<
b;a++)for(e=this.type.ec[a],c=0,d=e.frames.length;c<d;c++)f=e.frames[c],0===f.width&&(f.width=f.B.width,f.height=f.B.height),f.Vg&&(k=f.B,h=f.xn,h.left=f.Og/k.width,h.top=f.Pg/k.height,h.right=(f.Og+f.width)/k.width,h.bottom=(f.Pg+f.height)/k.height,0===f.Og&&0===f.Pg&&f.width===k.width&&f.height===k.height&&(f.Vg=!1));this.pb=this.Ca.frames[this.G];this.Dj=this.pb.P};f.Ka=function(){var a={a:this.Ca.W,f:this.G,cas:this.jg,fs:this.Wd,ar:this.Od,at:this.rd.ka,rt:this.He};this.pf||(a.ap=this.pf);this.of||
(a.af=this.of);return a};f.Ua=function(a){var b=this.Ru(a.a);b&&(this.Ca=b);this.G=a.f;0>this.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);this.jg=a.cas;this.Wd=a.fs;this.Od=a.ar;this.rd.reset();this.rd.ka=a.at;this.pf=a.hasOwnProperty("ap")?a.ap:!0;this.of=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.He=a.rt:this.He=this.Ca.rn;this.pb=this.Ca.frames[this.G];this.Dj=this.pb.P;this.ba.Fi(this.pb.Bk);this.Hb=this.pb.Hb;this.Ib=this.pb.Ib};f.wl=function(a){this.G=
a?0:this.Ca.frames.length-1;this.pf=!1;this.uo=this.Ca.name;this.Yj=!0;this.b.trigger(X.prototype.j.ns,this);this.b.trigger(X.prototype.j.ls,this);this.Yj=!1;this.Od=0};f.ud=function(){return this.rd.ka};f.mc=function(){this.rd.add(this.b.wg(this));this.wj.length&&this.Mo();0<=this.vj&&this.No();var a=this.rd.ka,b=this.Ca,c=b.frames[this.G],d=c.duration/this.jg;this.pf&&a>=this.Wd+d&&(this.of?this.G++:this.G--,this.Wd+=d,this.G>=b.frames.length&&(b.tq?(this.of=!1,this.G=b.frames.length-2):b.loop?
this.G=this.He:(this.Od++,this.Od>=b.qn?this.wl(!1):this.G=this.He)),0>this.G&&(b.tq?(this.G=1,this.of=!0,b.loop||(this.Od++,this.Od>=b.qn&&this.wl(!0))):b.loop?this.G=this.He:(this.Od++,this.Od>=b.qn?this.wl(!0):this.G=this.He)),0>this.G?this.G=0:this.G>=b.frames.length&&(this.G=b.frames.length-1),a>this.Wd+b.frames[this.G].duration/this.jg&&(this.Wd=a),a=b.frames[this.G],this.eg(c,a),this.b.O=!0)};f.bp=function(a){var b,c,d;b=0;for(c=this.type.ec.length;b<c;b++)if(d=this.type.ec[b],cb(d.name,a))return d;
return null};f.Ru=function(a){var b,c,d;b=0;for(c=this.type.ec.length;b<c;b++)if(d=this.type.ec[b],d.W===a)return d;return null};f.Mo=function(){var a=this.Ca.frames[this.G],b=this.bp(this.wj);this.wj="";!b||cb(b.name,this.Ca.name)&&this.pf||(this.Ca=b,this.jg=b.speed,this.He=b.rn,0>this.G&&(this.G=0),this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1),1===this.Fo&&(this.G=0),this.pf=!0,this.Wd=this.rd.ka,this.of=!0,this.eg(a,this.Ca.frames[this.G]),this.b.O=!0)};f.No=function(){var a=
this.Ca.frames[this.G],b=this.G;this.G=B(this.vj);0>this.G&&(this.G=0);this.G>=this.Ca.frames.length&&(this.G=this.Ca.frames.length-1);b!==this.G&&(this.eg(a,this.Ca.frames[this.G]),this.Wd=this.rd.ka,this.b.O=!0);this.vj=-1};f.eg=function(a,b){var c=a.width,d=a.height,e=b.width,f=b.height;c!=e&&(this.width*=e/c);d!=f&&(this.height*=f/d);this.Hb=b.Hb;this.Ib=b.Ib;this.ba.Fi(b.Bk);this.u();this.pb=b;this.Dj=b.P;c=0;for(d=this.M.length;c<d;c++)e=this.M[c],e.Zv&&e.Zv(a,b);this.b.trigger(X.prototype.j.eg,
this)};f.Bc=function(a){a.globalAlpha=this.opacity;var b=this.pb,c=b.Vg,d=b.B,e=this.x,f=this.y,h=this.width,k=this.height;if(0===this.n&&0<=h&&0<=k)e-=this.Hb*h,f-=this.Ib*k,this.b.Wb&&(e=Math.round(e),f=Math.round(f)),c?a.drawImage(d,b.Og,b.Pg,b.width,b.height,e,f,h,k):a.drawImage(d,e,f,h,k);else{this.b.Wb&&(e=Math.round(e),f=Math.round(f));a.save();var g=0<h?1:-1,m=0<k?1:-1;a.translate(e,f);1===g&&1===m||a.scale(g,m);a.rotate(this.n*g*m);e=0-this.Hb*ma(h);f=0-this.Ib*ma(k);c?a.drawImage(d,b.Og,
b.Pg,b.width,b.height,e,f,ma(h),ma(k)):a.drawImage(d,e,f,ma(h),ma(k));a.restore()}};f.Ie=function(a){this.Cb(a)};f.Cb=function(a){a.Kb(this.Dj);a.ke(this.opacity);var b=this.pb,c=this.Ab;if(this.b.Wb){var d=Math.round(this.x)-this.x,e=Math.round(this.y)-this.y;b.Vg?a.Gc(c.za+d,c.Aa+e,c.Ra+d,c.Sa+e,c.Oa+d,c.Pa+e,c.Ma+d,c.Na+e,b.xn):a.yi(c.za+d,c.Aa+e,c.Ra+d,c.Sa+e,c.Oa+d,c.Pa+e,c.Ma+d,c.Na+e)}else b.Vg?a.Gc(c.za,c.Aa,c.Ra,c.Sa,c.Oa,c.Pa,c.Ma,c.Na,b.xn):a.yi(c.za,c.Aa,c.Ra,c.Sa,c.Oa,c.Pa,c.Ma,c.Na)};
f.Wu=function(a){var b=this.pb,c,d;c=0;for(d=b.pm.length;c<d;c++)if(cb(a,b.pm[c][0]))return c;return-1};f.gm=function(a,b){var c=this.pb,d=c.pm,e;ja(a)?e=this.Wu(a):e=a-1;e=B(e);if(0>e||e>=d.length)return b?this.x:this.y;var f=(d[e][1]-c.Hb)*this.width,d=d[e][2],d=(d-c.Ib)*this.height,c=Math.cos(this.n);e=Math.sin(this.n);var h=f*c-d*e,d=d*c+f*e,f=h+this.x,d=d+this.y;return b?f:d};var e=[],k=-2,u=[];n.prototype.ss=function(a){if(!a)return!1;var b=this.b,c=b.Hh(),d=c.type,e=null;c.H.collmemory?e=c.H.collmemory:
(e={},c.H.collmemory=e);c.H.spriteCreatedDestroyCallback||(c.H.spriteCreatedDestroyCallback=!0,b.tl(function(a){var b=c.H.collmemory;a=a.uid;var d,e;for(d in b)b.hasOwnProperty(d)&&(e=b[d],e[0]===a||e[1]===a)&&(l(b[d]),delete b[d])}));var f=d.Y(),g=a.Y(),f=f.sc(),m,q,v,n,r,w,T,E=this.b.jd,y=E-1,z=b.kb().Sb;for(q=0;q<f.length;q++){v=f[q];g.la?(v.ua(),this.b.dm(v.k,a,v.Ba,u),m=u,this.b.gt(v,a,m)):m=g.sc();for(n=0;n<m.length;n++)r=m[n],b.Nb(v,r)||b.qt(v,r)?(w=h(e,v,r),w=!w||k<y,p(e,v,r,E),w&&(b.xi(z.ma),
w=d.Y(),T=a.Y(),w.la=!1,T.la=!1,d===a?(w.i.length=2,w.i[0]=v,w.i[1]=r,d.sd()):(w.i.length=1,T.i.length=1,w.i[0]=v,T.i[0]=r,d.sd(),a.sd()),z.Eq(),b.bf(z.ma))):t(e,v,r);M(u)}return!1};var w=null,q=new ba,m=!1,v=[],T=new ta(0,0,0,0);d.finish=function(a){if(m){if(a){var b=this.b.kb().Sb.Ec;a=w.Y();var c=q.kf(),d,e;if(a.la){a.la=!1;M(a.i);d=0;for(e=c.length;d<e;++d)a.i[d]=c[d];if(b)for(M(a.X),d=0,e=w.i.length;d<e;++d)c=w.i[d],q.contains(c)||a.X.push(c)}else if(b)for(b=a.i.length,d=0,e=c.length;d<e;++d)a.i[b+
d]=c[d],Ca(a.X,c[d]);else za(a.i,c);w.sd()}q.clear();m=!1}};n.prototype.cs=function(a){if(a){var b=!1,c,d,e,f=this.b.Hh(),h=f.type,f=f.Zj;c=a.Y();d=this.b.kb().Sb.Ec;var k;c.la?(this.ua(),T.ig(this.Ba),T.offset(0,0),this.b.dm(this.k,a,T,v),k=v):k=d?this.b.Iv()&&!c.X.length&&c.i.length?c.i:c.X:c.i;w=a;m=h!==a&&!f;c=0;for(d=k.length;c<d;c++)if(e=k[c],this.b.Nb(this,e)){b=!0;if(f)break;h!==a&&q.add(e)}M(v);a=b}else a=!1;return a};n.prototype.ls=function(a){return cb(this.uo,a)};n.prototype.ns=function(){return!0};
n.prototype.eg=function(){return!0};b.j=new n;a.prototype.Ls=function(a,b){this.wj=a;this.Fo=b;this.Uh||(this.b.Oi(this),this.Uh=!0);this.Yj||this.Mo()};a.prototype.Ms=function(a){this.vj=a;this.Uh||(this.b.Oi(this),this.Uh=!0);this.Yj||this.No()};a.prototype.Ps=function(a){a=ma(this.width)*(0===a?-1:1);this.width!==a&&(this.width=a,this.u())};b.C=new a;b.wa=new function(){}})();function jc(g){this.b=g}
(function(){function g(a,b){return a.length?a.pop():new b}function n(a,b,c){if(c){var d;c=0;for(d=b.length;c<d;c++)a.length<h&&a.push(b[c]);b.length=0}else for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a.length<h&&a.push(b[d]),delete b[d])}function l(b,c,d){var f=b.Jb;d=d.replace(/\s\s*$/,"");c>=f.length&&f.push(g(a,Object));c=f[c];c.text=d;c.width=b.Vm(d);b.re=oa(b.re,c.width)}function r(){}var p=jc.prototype;p.I=function(){};p.V=function(a){this.ca=a;this.b=a.b};var t=p.V.prototype;t.I=
function(){this.F||(this.B=new Image,this.B.idtkLoadDisposed=!0,this.B.src=this.Mi,this.b.$f.push(this.B),this.P=null)};t.Qg=function(){this.F||(this.P=null)};t.oi=function(){if(!this.F&&this.i.length){this.P||(this.P=this.b.p.Jg(this.B,!1,this.b.xa,this.Ni));var a,b;a=0;for(b=this.i.length;a<b;a++)this.i[a].P=this.P}};t.Qi=function(){this.F||this.i.length||!this.P||(this.b.p.deleteTexture(this.P),this.P=null)};t.si=function(a){a.drawImage(this.B,0,0)};p.R=function(a){this.type=a;this.b=a.b};t=p.R.prototype;
t.dd=function(){n(a,this.Jb,!0);n(b,this.yj,!1);n(d,this.zj,!1);Qa(this.Vc)};t.I=function(){this.B=this.type.B;this.xj=this.q[0];this.Ce=this.q[1];this.characterSet=this.q[2];this.text=this.q[3];this.De=this.q[4];this.visible=0===this.q[5];this.Ef=this.q[6]/2;this.Zf=this.q[7]/2;this.$i=0===this.q[9];this.hg=this.q[10];this.lineHeight=this.q[11];this.Kd=this.re=0;this.sh=this.q[12];this.br=this.q[13];console.log(this.sh);this.ub?(this.Jb.length=0,Qa(this.yj),Qa(this.zj),Qa(this.Vc)):(this.Jb=[],this.yj=
{},this.zj={},this.Vc={});try{if(this.sh)if(-1!==this.sh.indexOf('""c2array""'))for(var a=jQuery.parseJSON(this.sh.replace(/""/g,'"')),b=a.size[1],c=0;c<b;c++)for(var d=a.data[1][c][0],f=a.data[0][c][0],h=0;h<d.length;h++)this.Vc[d.charAt(h)]=f;else for(a=jQuery.parseJSON(this.sh),b=a.length,c=0;c<b;c++)for(d=a[c][1],f=a[c][0],h=0;h<d.length;h++)this.Vc[d.charAt(h)]=f;-1!==this.br&&(this.Vc[" "]=this.br)}catch(g){window.console&&window.console.log&&window.console.log("SpriteFont+ Failure: "+g)}this.wc=
!0;this.Nf=this.width;this.b.p&&(this.type.P||(this.type.P=this.b.p.Jg(this.type.B,!1,this.b.xa,this.type.Ni)),this.P=this.type.P);this.Ws()};t.Ka=function(){var a={t:this.text,csc:this.De,csp:this.hg,lh:this.lineHeight,tw:this.re,th:this.Kd,lrt:this.Mf,cw:{}},b;for(b in this.Vc)a.cw[b]=this.Vc[b];return a};t.Ua=function(a){this.text=a.t;this.De=a.csc;this.hg=a.csp;this.lineHeight=a.lh;this.re=a.tw;this.Kd=a.th;this.Mf=a.lrt;for(var b in a.cw)this.Vc[b]=a.cw[b];this.wc=!0;this.Nf=this.width};var h=
1E3,a=[],b=[],d=[];t.Ws=function(){for(var a=this.B,c=a.width,f=a.height,a=this.xj,h=this.Ce,q=a/c,m=h/f,v=this.characterSet,c=Math.floor(c/a),f=Math.floor(f/h),p=0;p<v.length&&!(p>=c*f);p++){var l=p%c,n=Math.floor(p/c),r=v.charAt(p);if(this.b.p){var t=this.zj,F=l*q,I=n*m,l=(l+1)*q,n=(n+1)*m;void 0===t[r]&&(t[r]=g(d,ta));t[r].left=F;t[r].top=I;t[r].right=l;t[r].bottom=n}else t=this.yj,l=l*a,n=n*h,F=a,I=h,void 0===t[r]&&(t[r]=g(b,Object)),t[r].x=l,t[r].y=n,t[r].gl=F,t[r].Xj=I}};var c=[];p.ml=function(a){c.length=
0;for(var b="",d,f=0;f<a.length;)if(d=a.charAt(f),"\n"===d)b.length&&(c.push(b),b=""),c.push("\n"),++f;else if(" "===d||"\t"===d||"-"===d){do b+=a.charAt(f),f++;while(f<a.length&&(" "===a.charAt(f)||"\t"===a.charAt(f)));c.push(b);b=""}else f<a.length&&(b+=d,f++);b.length&&c.push(b)};p.nl=function(b){var c=b.text,d=b.Jb;if(c&&c.length){var f=b.width;if(2>=f)n(a,d,!0);else{var h=b.De,m=b.hg;if(c.length*(b.xj*h+m)-m<=f&&-1===c.indexOf("\n")&&(m=b.Vm(c),m<=f)){n(a,d,!0);d.push(g(a,Object));d[0].text=
c;d[0].width=m;b.re=m;b.Kd=b.Ce*h+b.lineHeight;return}this.ol(b);b.Kd=d.length*(b.Ce*h+b.lineHeight)}}else n(a,d,!0)};p.ol=function(b){var d=b.$i,f=b.text,g=b.Jb,q=b.width;d&&(this.ml(f),f=c);var m="",p,n,r,t=0,R=!1;for(r=0;r<f.length;r++)"\n"===f[r]?(!0===R?R=!1:(l(b,t,m),t++),m=""):(R=!1,p=m,m+=f[r],n=b.Vm(m.replace(/\s\s*$/,"")),n>q&&(""===p?(l(b,t,m),m="",R=!0):(l(b,t,p),m=f[r]),t++,d||" "!==m||(m="")));m.replace(/\s\s*$/,"").length&&(l(b,t,m),t++);for(r=t;r<g.length;r++)a.length<h&&a.push(g[r]);
g.length=t};t.Vm=function(a){for(var b=this.hg,c=a.length,d=0,f=0;f<c;f++)d+=this.Gh(a.charAt(f))*this.De+b;return d-(0<d?b:0)};t.Gh=function(a){var b=this.Vc;return void 0!==b[a]?b[a]:this.xj};t.Bq=function(){if(this.wc||this.width!==this.Nf)this.Kd=this.re=0,this.type.ca.nl(this),this.wc=!1,this.Nf=this.width};t.Bc=function(a){var b=this.B;if(""!==this.text&&null!=b&&(this.Bq(),!(this.height<this.Ce*this.De+this.lineHeight))){a.globalAlpha=this.opacity;var b=this.x,c=this.y;this.b.Wb&&(b=b+.5|0,
c=c+.5|0);a.save();a.translate(b,c);a.rotate(this.n);for(var b=this.Ef,c=this.De,d=this.Ce*c,f=this.lineHeight,h=this.hg,g=this.Jb,p,l=-(this.Hb*this.width),n=-(this.Ib*this.height),n=n+this.Zf*oa(0,this.height-this.Kd),r=0;r<g.length;r++){var t=g[r].text;p=b*oa(0,this.width-g[r].width);p=l+p;for(var n=n+f,F=0;F<t.length;F++){var I=t.charAt(F),V=this.yj[I];if(p+this.Gh(I)*c>this.width+1E-5)break;void 0!==V&&a.drawImage(this.B,V.x,V.y,V.gl,V.Xj,Math.round(p),Math.round(n),V.gl*c,V.Xj*c);p+=this.Gh(I)*
c+h}n+=d;if(n+d+f>this.height)break}a.restore()}};var f=new ua;t.Cb=function(a){a.Kb(this.P);a.ke(this.opacity);if(""!==this.text&&(this.Bq(),!(this.height<this.Ce*this.De+this.lineHeight))){this.ua();var b=this.Ab,c=0,d=0;this.b.Wb&&(c=(this.x+.5|0)-this.x,d=(this.y+.5|0)-this.y);var h=this.n,g=this.Ef,p=this.Zf,l=this.De,n=this.Ce*l,r=this.lineHeight,t=this.hg,G=this.Jb,F=this.Kd,I,V;0!==h&&(I=Math.cos(h),V=Math.sin(h));for(var A,c=b.za+c,b=b.Aa+d,p=p*oa(0,this.height-F),F=0;F<G.length;F++){d=G[F].text;
A=g*oa(0,this.width-G[F].width);for(var p=p+r,P=0;P<d.length;P++){var Y=d.charAt(P),O=this.zj[Y];if(A+this.Gh(Y)*l>this.width+1E-5)break;if(void 0!==O){var D=this.xj*l,N=this.Ce*l;f.za=A;f.Aa=p;f.Ra=A+D;f.Sa=p;f.Ma=A;f.Na=p+N;f.Oa=A+D;f.Pa=p+N;if(0!==h){var D=f,N=I,S=V,E=void 0,E=D.za*N-D.Aa*S;D.Aa=D.Aa*N+D.za*S;D.za=E;E=D.Ra*N-D.Sa*S;D.Sa=D.Sa*N+D.Ra*S;D.Ra=E;E=D.Ma*N-D.Na*S;D.Na=D.Na*N+D.Ma*S;D.Ma=E;E=D.Oa*N-D.Pa*S;D.Pa=D.Pa*N+D.Oa*S;D.Oa=E}f.offset(c,b);a.Gc(f.za,f.Aa,f.Ra,f.Sa,f.Oa,f.Pa,f.Ma,
f.Na,O)}A+=this.Gh(Y)*l+t}p+=n;if(p+n+r>this.height)break}}};p.j=new function(){};r.prototype.ll=function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.wc=!0,this.b.O=!0)};t.ud=function(a,b){var c=parseInt(b,10);this.Vc[a]!==c&&(this.Vc[a]=c,this.wc=!0,this.b.O=!0)};p.C=new r;p.wa=new function(){}})();function kc(g){this.b=g}
(function(){function g(){return a.length?a.pop():{}}function n(b){var d,c;d=0;for(c=b.length;d<c;d++)a.push(b[d]);M(b)}function l(a){return a.length&&" "===a.charAt(a.length-1)?a.substring(0,a.length-1):a}function r(){}var p=kc.prototype;p.I=function(){p.C.lo=function(a){this.width!==a&&(this.width=a,this.wc=!0,this.u())}};p.V=function(a){this.ca=a;this.b=a.b};var t=p.V.prototype;t.I=function(){};t.Qg=function(){if(!this.F){var a,d,c;a=0;for(d=this.i.length;a<d;a++)c=this.i[a],c.Cd=null,c.Sf=null,
c.kc=null}};p.R=function(a){this.type=a;this.b=a.b;this.ub?M(this.Jb):this.Jb=[];this.wc=!0};t=p.R.prototype;t.I=function(){this.text=this.q[0];this.visible=0===this.q[1];this.font=this.q[2];this.color=this.q[3];this.Ef=this.q[4];this.Zf=this.q[5];this.$i=0===this.q[7];this.Nf=this.de=this.width;this.be=this.height;this.Km=this.q[8];this.Qj=this.rg="";this.Kd=this.re=this.vi=0;this.bw();this.kc=this.Sf=this.Cd=null;this.jq=!1;this.Mf=this.b.jd;this.ub?this.cf.set(0,0,1,1):this.cf=new ta(0,0,1,1);
this.b.p&&this.b.Oi(this)};t.bw=function(){var a=this.font.split(" "),d;for(d=0;d<a.length;d++)if("pt"===a[d].substr(a[d].length-2,2)){this.vi=parseInt(a[d].substr(0,a[d].length-2));this.kn=Math.ceil(this.vi/72*96)+4;0<d&&(this.Qj=a[d-1]);this.rg=a[d+1];for(d+=2;d<a.length;d++)this.rg+=" "+a[d];break}};t.Ka=function(){return{t:this.text,f:this.font,c:this.color,ha:this.Ef,va:this.Zf,wr:this.$i,lho:this.Km,fn:this.rg,fs:this.Qj,ps:this.vi,pxh:this.kn,tw:this.re,th:this.Kd,lrt:this.Mf}};t.Ua=function(a){this.text=
a.t;this.font=a.f;this.color=a.c;this.Ef=a.ha;this.Zf=a.va;this.$i=a.wr;this.Km=a.lho;this.rg=a.fn;this.Qj=a.fs;this.vi=a.ps;this.kn=a.pxh;this.re=a.tw;this.Kd=a.th;this.Mf=a.lrt;this.wc=!0;this.Nf=this.de=this.width;this.be=this.height};t.mc=function(){if(this.b.p&&this.kc&&300<=this.b.jd-this.Mf){var a=this.k;this.ua();var d=this.Ba;if(d.right<a.fa||d.bottom<a.ia||d.left>a.oa||d.top>a.na)this.b.p.deleteTexture(this.kc),this.Cd=this.Sf=this.kc=null}};t.dd=function(){this.Cd=this.Sf=null;this.b.p&&
this.kc&&this.b.p.deleteTexture(this.kc);this.kc=null};t.ud=function(){this.font=this.Qj+" "+this.vi.toString()+"pt "+this.rg;this.wc=!0;this.b.O=!0};t.Bc=function(a,d){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=d?1:this.opacity;var c=1;d&&(c=Math.abs(this.k.ic()),a.save(),a.scale(c,c));if(this.wc||this.width!==this.Nf)this.type.ca.nl(this.text,this.Jb,a,this.width,this.$i),this.wc=!1,this.Nf=this.width;this.ua();var c=d?0:this.Ab.za,f=d?0:this.Ab.Aa;this.b.Wb&&(c=
c+.5|0,f=f+.5|0);0===this.n||d||(a.save(),a.translate(c,f),a.rotate(this.n),f=c=0);var e=f+this.height,h=this.kn,h=h+this.Km,g,p;1===this.Zf?f+=Math.max(this.height/2-this.Jb.length*h/2,0):2===this.Zf&&(f+=Math.max(this.height-this.Jb.length*h-2,0));for(p=0;p<this.Jb.length&&!(g=c,1===this.Ef?g=c+(this.width-this.Jb[p].width)/2:2===this.Ef&&(g=c+(this.width-this.Jb[p].width)),a.fillText(this.Jb[p].text,g,f),f+=h,f>=e-h);p++);(0!==this.n||d)&&a.restore();this.Mf=this.b.jd};t.Cb=function(a){if(!(1>
this.width||1>this.height)){var d=this.wc||this.jq;this.jq=!1;var c=this.k.ic(),f=this.k.Tb(),e=this.cf,h=c*this.width,g=c*this.height,p=Math.ceil(h),q=Math.ceil(g),m=Math.abs(p),l=Math.abs(q),n=this.b.L/2,r=this.b.K/2;this.Sf||(this.Cd=document.createElement("canvas"),this.Cd.width=m,this.Cd.height=l,this.de=m,this.be=l,d=!0,this.Sf=this.Cd.getContext("2d"));if(m!==this.de||l!==this.be)this.Cd.width=m,this.Cd.height=l,this.kc&&(a.deleteTexture(this.kc),this.kc=null),d=!0;d&&(this.Sf.clearRect(0,
0,m,l),this.Bc(this.Sf,!0),this.kc||(this.kc=a.gc(m,l,this.b.xa,this.b.Hf)),a.Ar(this.Cd,this.kc,this.b.Hf));this.de=m;this.be=l;a.Kb(this.kc);a.ke(this.opacity);a.Hc();a.translate(-n,-r);a.xc();var t=this.Ab,d=this.k.Ea(t.za,t.Aa,!0,!0),m=this.k.Ea(t.za,t.Aa,!1,!0),l=this.k.Ea(t.Ra,t.Sa,!0,!0),n=this.k.Ea(t.Ra,t.Sa,!1,!0),r=this.k.Ea(t.Oa,t.Pa,!0,!0),R=this.k.Ea(t.Oa,t.Pa,!1,!0),G=this.k.Ea(t.Ma,t.Na,!0,!0),t=this.k.Ea(t.Ma,t.Na,!1,!0);if(this.b.Wb||0===this.n&&0===f)var F=(d+.5|0)-d,I=(m+.5|0)-
m,d=d+F,m=m+I,l=l+F,n=n+I,r=r+F,R=R+I,G=G+F,t=t+I;0===this.n&&0===f?(l=d+p,n=m,r=l,R=m+q,G=d,t=R,e.right=1,e.bottom=1):(e.right=h/p,e.bottom=g/q);a.Gc(d,m,l,n,r,R,G,t,e);a.Hc();a.scale(c,c);a.Jk(-this.k.Tb());a.translate((this.k.fa+this.k.oa)/-2,(this.k.ia+this.k.na)/-2);a.xc();this.Mf=this.b.jd}};var h=[];p.ml=function(a){M(h);for(var d="",c,f=0;f<a.length;)if(c=a.charAt(f),"\n"===c)d.length&&(h.push(d),d=""),h.push("\n"),++f;else if(" "===c||"\t"===c||"-"===c){do d+=a.charAt(f),f++;while(f<a.length&&
(" "===a.charAt(f)||"\t"===a.charAt(f)));h.push(d);d=""}else f<a.length&&(d+=c,f++);d.length&&h.push(d)};var a=[];p.nl=function(a,d,c,f,e){if(a&&a.length)if(2>=f)n(d);else{if(100>=a.length&&-1===a.indexOf("\n")){var h=c.measureText(a).width;if(h<=f){n(d);d.push(g());d[0].text=a;d[0].width=h;return}}this.ol(a,d,c,f,e)}else n(d)};p.ol=function(b,d,c,f,e){e&&(this.ml(b),b=h);var k="",p,n,q,m=0;for(q=0;q<b.length;q++)"\n"===b[q]?(m>=d.length&&d.push(g()),k=l(k),n=d[m],n.text=k,n.width=c.measureText(k).width,
m++,k=""):(p=k,k+=b[q],n=c.measureText(k).width,n>=f&&(m>=d.length&&d.push(g()),p=l(p),n=d[m],n.text=p,n.width=c.measureText(p).width,m++,k=b[q],e||" "!==k||(k="")));k.length&&(m>=d.length&&d.push(g()),k=l(k),n=d[m],n.text=k,n.width=c.measureText(k).width,m++);for(q=m;q<d.length;q++)a.push(d[q]);d.length=m};p.j=new function(){};r.prototype.ll=function(a){ia(a)&&1E9>a&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.wc=!0,this.b.O=!0)};p.C=new r;p.wa=new function(){}})();
function lc(g){this.b=g}
(function(){var g=lc.prototype;g.V=function(g){this.ca=g;this.b=g.b};var n=g.V.prototype;n.I=function(){this.F||(this.B=new Image,this.B.Hl=this.Yk,this.b.Rn(this.B,this.Mi),this.P=this.pattern=null)};n.Qg=function(){this.F||(this.P=null)};n.oi=function(){if(!this.F&&this.i.length){this.P||(this.P=this.b.p.Jg(this.B,!0,this.b.xa,this.Ni));var g,n;g=0;for(n=this.i.length;g<n;g++)this.i[g].P=this.P}};n.nk=function(){this.F||this.P||!this.b.p||(this.P=this.b.p.Jg(this.B,!0,this.b.xa,this.Ni))};n.Qi=
function(){this.F||this.i.length||!this.P||(this.b.p.deleteTexture(this.P),this.P=null)};n.si=function(g){g.drawImage(this.B,0,0)};g.R=function(g){this.type=g;this.b=g.b};n=g.R.prototype;n.I=function(){this.visible=0===this.q[0];this.cf=new ta(0,0,0,0);this.np=!1;this.B=this.type.B;this.b.p?(this.type.nk(),this.P=this.type.P):(this.type.pattern||(this.type.pattern=this.b.ya.createPattern(this.type.B,"repeat")),this.pattern=this.type.pattern)};n.qd=function(){this.np=!1;this.B=this.type.B};n.dd=function(){this.b.p&&
this.np&&this.P&&(this.b.p.deleteTexture(this.P),this.P=null)};n.Bc=function(g){g.globalAlpha=this.opacity;g.save();g.fillStyle=this.pattern;var n=this.x,p=this.y;this.b.Wb&&(n=Math.round(n),p=Math.round(p));var t=-(this.Hb*this.width),h=-(this.Ib*this.height),a=t%this.B.width,b=h%this.B.height;0>a&&(a+=this.B.width);0>b&&(b+=this.B.height);g.translate(n,p);g.rotate(this.n);g.translate(a,b);g.fillRect(t-a,h-b,this.width,this.height);g.restore()};n.Ie=function(g){this.Cb(g)};n.Cb=function(g){g.Kb(this.P);
g.ke(this.opacity);var n=this.cf;n.right=this.width/this.B.width;n.bottom=this.height/this.B.height;var p=this.Ab;if(this.b.Wb){var t=Math.round(this.x)-this.x,h=Math.round(this.y)-this.y;g.Gc(p.za+t,p.Aa+h,p.Ra+t,p.Sa+h,p.Oa+t,p.Pa+h,p.Ma+t,p.Na+h,n)}else g.Gc(p.za,p.Aa,p.Ra,p.Sa,p.Oa,p.Pa,p.Ma,p.Na,n)};g.j=new function(){};g.C=new function(){};g.wa=new function(){}})();function mc(g){this.b=g}
(function(){function g(){this.bl=this.id=-1;this.wo=this.ng=this.Vi=this.Nh=!1;this.da=new ta(0,0,0,0)}function n(a){1E4>e.length&&e.push(a)}function l(){this.id=-1;this.da=new ta(0,0,0,0);this.je=null}function r(a){1E4>k.length&&k.push(a)}function p(a,b,c){var d;return u.length?(d=u.pop(),d.e=a,d.x=b,d.y=c,d.left=d.x*d.e.ab*d.e.hb,d.top=d.y*d.e.ib*d.e.gb,d.clear(),d.Ai=!1,d):new t(a,b,c)}function t(a,b,c){this.e=a;this.x=b;this.y=c;this.left=this.x*this.e.ab*this.e.hb;this.top=this.y*this.e.ib*this.e.gb;
this.Ld=[];this.tb=[];this.Gb=[];this.Ai=!1;var d,e;a=0;for(b=this.e.ib;a<b;++a){e=[];c=0;for(d=this.e.ab;c<d;++c)e.push(-1);this.Ld.push(e)}}var h=mc.prototype;h.V=function(a){this.ca=a;this.b=a.b};var a=h.V.prototype;a.I=function(){var a,b,c;if(!this.F&&(this.B=new Image,this.B.Hl=this.Yk,this.b.Rn(this.B,this.Mi),this.vf=[],this.Kl=!1,this.kd=[],this.gr=!1,this.al&&this.al.length))for(a=0,b=this.al.length;a<b;++a)(c=this.al[a])?this.kd.push({je:c,Pj:[[[null,null],[null,null]],[[null,null],[null,
null]]]}):this.kd.push(null)};a.ze=function(a,b,c,d,e,f){if(!(0>a||a>=this.kd.length)&&this.kd[a]){var h=this.kd[a].Pj;a=new Xa(this.kd[a].je);a.tf(b,c,0);f&&a.Gt();d&&a.Tv(b/2);e&&a.Pu(c/2);h[d?1:0][e?1:0][f?1:0]=a}};a.ip=function(a){if(-1===a)return null;var e=a&f;return 0>e||e>=this.kd.length||!this.kd[e]?null:this.kd[e].Pj[a&b?1:0][a&d?1:0][a&c?1:0]};a.Yl=function(){var a,b,c=this.b.p;if(c)for(a=0,b=this.vf.length;a<b;++a)c.deleteTexture(this.vf[a]);M(this.vf);this.Kl=!1};a.Sm=function(a,b,c,
d,e,f,h){if(!(this.Kl||0>=a||0>=b)){this.Yl();var g=this.B.width,k=this.B.height,p;for(p=d;p+b<=k;p+=b+f)for(d=c;d+a<=g;d+=a+e)this.vf.push(this.Pr(d,p,a,b,h));this.Kl=!0}};a.Pr=function(a,b,c,d,e){if(this.b.p)return this.jl(a,b,c,d,!1,!1,!1,e);var f=[[[null,null],[null,null]],[[null,null],[null,null]]];f[0][0][0]=this.jl(a,b,c,d,!1,!1,!1,e);return{Pj:f,x:a,y:b,gl:c,Xj:d}};a.Wn=function(a,b,c,d,e){if(0>a||a>=this.vf.length)return null;a=this.vf[a];var f=a.Pj;b=b?1:0;c=c?1:0;d=d?1:0;var h=f[b][c][d];
if(h)return h;h=this.jl(a.x,a.y,a.gl,a.Xj,0!==b,0!==c,0!==d,e);return f[b][c][d]=h};a.jl=function(a,b,c,d,e,f,h,g){var k=c,p=d;this.b.p&&!g&&(ka(k)||(k=la(k)),ka(p)||(p=la(p)));var l=document.createElement("canvas");l.width=k;l.height=p;var n=l.getContext("2d");if(this.b.ya)return e?f?(h?(n.rotate(Math.PI/2),n.scale(-1,1)):n.scale(-1,-1),n.translate(-k,-p)):h?(n.rotate(Math.PI/2),n.translate(0,-p)):(n.scale(-1,1),n.translate(-k,0)):f?h?(n.rotate(-Math.PI/2),n.translate(-k,0)):(n.scale(1,-1),n.translate(0,
-p)):h&&(n.scale(-1,1),n.rotate(Math.PI/2)),n.drawImage(this.B,a,b,c,d,0,0,k,p),g?l:this.b.ya.createPattern(l,"repeat");n.drawImage(this.B,a,b,c,d,0,0,k,p);a=this.b.p.gc(k,p,this.b.xa,!1,!g);this.b.p.Ar(l,a);return a};a.Qg=function(){this.F||this.Yl()};a.oi=function(){};a.nk=function(){};a.Qi=function(){this.F||this.i.length||this.Yl()};a.si=function(){};h.R=function(a){this.type=a;this.b=a.b};var a=h.R.prototype,b=-2147483648,d=1073741824,c=536870912,f=536870911,e=[],k=[],u=[];t.prototype.clear=
function(){var a,b,c,d,e;this.Ld.length=this.e.ib;a=0;for(b=this.Ld.length;a<b;++a)for(e=this.Ld[a],e||(e=[],this.Ld[a]=e),e.length=this.e.ab,c=0,d=e.length;c<d;++c)e[c]=-1};t.prototype.hi=function(){if(!this.Ai){var a=this.e.hb,h=this.e.gb;if(!(0>=a||0>=h)){var p,t,u,x,w,G;p=0;for(t=this.tb.length;p<t;++p)n(this.tb[p]);p=0;for(t=this.Gb.length;p<t;++p)r(this.Gb[p]);M(this.tb);M(this.Gb);var F=Math.min(this.e.Dc,Math.floor(this.e.width/a)),I=Math.min(this.e.cd,Math.floor(this.e.height/h)),F=F-this.left/
a,I=I-this.top/h;F>this.e.ab&&(F=this.e.ab);I>this.e.ib&&(I=this.e.ib);var V=this.e.ef,A=null;p=0;for(t=I;p<t;++p){w=this.Ld[p];u=0;for(x=F;u<x;++u)G=w[u],-1===G?A&&(this.tb.push(A),A=null):V||!A||G!==A.id?(A&&this.tb.push(A),A=e.length?e.pop():new g,A.id=G,A.bl=G&f,A.Nh=0!==(G&b),A.Vi=0!==(G&d),A.ng=0!==(G&c),A.wo=A.Nh||A.Vi||A.ng,A.da.left=u*a+this.left,A.da.top=p*h+this.top,A.da.right=A.da.left+a,A.da.bottom=A.da.top+h):A.da.right+=a;A&&(this.tb.push(A),A=null)}var A=null,P=!1;p=0;for(t=I;p<t;++p){w=
this.Ld[p];u=0;for(x=F;u<x;++u)G=w[u],-1===G?A&&(this.Gb.push(A),A=null,P=!1):(I=this.e.type.ip(G),!A||I||P?(A&&this.Gb.push(A),A=k.length?k.pop():new l,A.id=G,A.je=I?I:null,G=A.da,G.left=u*a+this.left,G.top=p*h+this.top,G.right=G.left+a,G.bottom=G.top+h,P=!!I):A.da.right+=a);A&&(this.Gb.push(A),A=null,P=!1)}if(!V)for(t=this.tb.length,p=0;p<t;++p)for(x=this.tb[p],a=p+1;a<t;++a)if(u=this.tb[a],!(u.da.top<x.da.bottom)){if(u.da.top>x.da.bottom)break;if(u.da.right>x.da.right||u.da.left>x.da.left)break;
u.id===x.id&&u.da.left===x.da.left&&u.da.right===x.da.right&&(n(this.tb[a]),this.tb.splice(a,1),--t,x.da.bottom+=h,--a)}t=this.Gb.length;for(p=0;p<t;++p)if(x=this.Gb[p],!x.je)for(w=x.da,a=p+1;a<t;++a)if(u=this.Gb[a],x=u.da,!(x.top<w.bottom)){if(x.top>w.bottom)break;if(x.right>w.right||x.left>w.left)break;u.je||x.left!==w.left||x.right!==w.right||(r(this.Gb[a]),this.Gb.splice(a,1),--t,w.bottom+=h,--a)}this.Ai=!0}}};t.prototype.wn=function(a,b,c){this.Ld[b][a]!==c&&(this.Ld[b][a]=c,this.Ai=!1,this.e.nj=
!0,this.e.pi=!0,this.e.b.O=!0)};a.I=function(){var a,b,c;this.visible=0===this.q[0];this.hb=this.q[1];this.gb=this.q[2];this.Cn=this.q[3];this.En=this.q[4];this.Dn=this.q[5];this.Fn=this.q[6];this.ef=0!==this.q[7];this.Dc=this.jr;this.cd=this.ir;this.de=this.width;this.be=this.height;var d=this.hb,e=this.gb;0===d&&(d=1);0===e&&(e=1);this.ab=Math.ceil(this.b.Wa/d);this.ib=Math.ceil(this.b.Va/e);if(!this.type.gr)for(this.type.gr=!0,a=0,b=this.type.kd.length;a<b;++a)if(c=this.type.kd[a])this.type.ze(a,
d,e,!1,!1,!1),this.type.ze(a,d,e,!1,!1,!0),this.type.ze(a,d,e,!1,!0,!1),this.type.ze(a,d,e,!1,!0,!0),this.type.ze(a,d,e,!0,!1,!1),this.type.ze(a,d,e,!0,!1,!0),this.type.ze(a,d,e,!0,!0,!1),this.type.ze(a,d,e,!0,!0,!0);this.ub||(this.Ob=[]);this.Tm(!0);this.Qq(this.hr);this.type.Sm(this.hb,this.gb,this.Cn,this.En,this.Dn,this.Fn,this.ef);this.pi=!1;this.nj=!0;this.Rm()};a.Rm=function(){if(this.nj){var a,b,c,d,e;a=0;for(b=this.Ob.length;a<b;++a)for(e=this.Ob[a],c=0,d=e.length;c<d;++c)e[c].hi();this.nj=
!1}};a.Mk=function(){var a,b,c,d,e;a=0;for(b=this.Ob.length;a<b;++a)for(e=this.Ob[a],c=0,d=e.length;c<d;++c)e[c].Ai=!1;this.nj=!0};a.Tm=function(a){var b=B(this.width/this.hb),c=B(this.height/this.gb);if(!(b<=this.Dc&&c<=this.cd)||a){var d;a?(a=Math.ceil(this.cd/this.ib),d=Math.ceil(this.Dc/this.ab)):(a=this.Ob.length,d=Math.ceil(this.Dc/this.ab),c>this.cd&&(this.cd=c,a=Math.ceil(this.cd/this.ib)),b>this.Dc&&(this.Dc=b,d=Math.ceil(this.Dc/this.ab)),this.Mk(),this.pi=!0,this.b.O=!0);for(var e,b=0;b<
a;++b)if(e=this.Ob[b])for(c=e.length;c<d;++c)e.push(p(this,c,b));else{e=[];for(c=0;c<d;++c)e.push(p(this,c,b));this.Ob[b]=e}}};a.Al=function(a,b){if(0>a||0>b)return null;var c=B(b/this.ib);if(c>=this.Ob.length)return null;var c=this.Ob[c],d=B(a/this.ab);return d>=c.length?null:c[d]};a.Bl=function(a,b){if(0>a||0>b||b>=this.Ob.length)return null;var c=this.Ob[b];return a>=c.length?null:c[a]};a.Qq=function(a){var e=[];a=a.split(",");var f,h,g,k,p;f=0;for(h=a.length;f<h;++f)if(g=a[f],k=g.indexOf("x"),
-1<k)for(p=parseInt(g.substring(0,k),10),g=g.substring(k+1),k=parseInt(g,10),-1<g.indexOf("h")&&(k|=b),-1<g.indexOf("v")&&(k|=d),-1<g.indexOf("d")&&(k|=c);0<p;--p)e.push(k);else k=parseInt(g,10),-1<g.indexOf("h")&&(k|=b),-1<g.indexOf("v")&&(k|=d),-1<g.indexOf("d")&&(k|=c),e.push(k);for(f=a=0;f<this.cd;++f)for(h=0;h<this.Dc;++h)p=e[a++],(g=this.Al(h,f))&&g.wn(h%this.ab,f%this.ib,p)};a.iv=function(){var a="";if(0>=this.Dc||0>=this.cd)return a;var e=1,h=this.km(0,0),g,k,p,l,n,t,r,u;l=B(this.width/this.hb);
k=B(this.height/this.gb);for(g=0;g<k;++g)for(p=0===g?1:0;p<l;++p)n=this.km(p,g),n===h?++e:(-1===h?(t=-1,h=u=r=!1):(t=h&f,r=0!==(h&b),u=0!==(h&d),h=0!==(h&c)),a=1===e?a+(""+t):a+(""+e+"x"+t),r&&(a+="h"),u&&(a+="v"),h&&(a+="d"),a+=",",e=1,h=n);-1===h?(t=-1,h=u=r=!1):(t=h&f,r=0!==(h&b),u=0!==(h&d),h=0!==(h&c));a=1===e?a+(""+t):a+(""+e+"x"+t);r&&(a+="h");u&&(a+="v");h&&(a+="d");return a};a.km=function(a,b){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Dc||b>=this.cd)return-1;var c=this.Al(a,b);
return c?c.Ld[b%this.ib][a%this.ab]:-1};a.wn=function(a,b,c){a=Math.floor(a);b=Math.floor(b);if(0>a||0>b||a>=this.Dc||b>=this.cd)return-1;var d=this.Al(a,b);if(!d)return-1;d.wn(a%this.ab,b%this.ib,c)};a.Cr=function(a){return Math.floor((a-this.x)/(this.ab*this.hb))};a.Dr=function(a){return Math.floor((a-this.y)/(this.ib*this.gb))};a.Mw=function(a){return Math.floor((a-this.x)/this.hb)};a.Nw=function(a){return Math.floor((a-this.y)/this.gb)};a.Uu=function(a,b){var c=this.Dr(a.top),d=this.Cr(a.right),
e=this.Dr(a.bottom),f,h,g;for(f=this.Cr(a.left);f<=d;++f)for(h=c;h<=e;++h)if(g=this.Bl(f,h))g.hi(),Aa(b,g.Gb)};a.Gw=function(a,b){var c=this.km(this.Mw(a),this.Nw(b));if(-1===c)return!1;c=this.type.ip(c);if(!c)return!0;var d=Math.floor((b-this.y)/this.gb)*this.gb+this.y;a-=Math.floor((a-this.x)/this.hb)*this.hb+this.x;return c.Rb(a,b-d)};a.ud=function(a){var b,c,d,e,f,h;b=0;for(c=this.Ob.length;b<c;++b)for(f=this.Ob[b],d=0,e=f.length;d<e;++d)h=f[d],h.hi(),Aa(a,h.Gb)};a.dd=function(){var a,b,c,d,e;
a=0;for(b=this.Ob.length;a<b;++a){e=this.Ob[a];c=0;for(d=e.length;c<d;++c){for(var f=e[c],h=void 0,g=void 0,h=0,g=f.tb.length;h<g;++h)n(f.tb[h]);M(f.tb);h=0;for(g=f.Gb.length;h<g;++h)r(f.Gb[h]);M(f.Gb);1E3>u.length&&u.push(f)}M(e)}M(this.Ob)};a.Ka=function(){this.Tm();return{w:B(this.width/this.hb),h:B(this.height/this.gb),d:this.iv()}};a.Ua=function(a){this.Dc=a.w;this.cd=a.h;this.Tm(!0);this.Qq(a.d);this.pi=!0;this.Mk()};a.Bc=function(a){if(!(0>=this.hb||0>=this.gb)){this.type.Sm(this.hb,this.gb,
this.Cn,this.En,this.Dn,this.Fn,this.ef);if(this.width!==this.de||this.height!==this.be)this.pi=!0,this.Mk(),this.Rm(),this.de=this.width,this.be=this.height;a.globalAlpha=this.opacity;var b=this.k,c=b.fa,d=b.ia,e=b.oa,b=b.na,f=this.x,h=this.y,g=this.ef,k;this.b.Wb&&(f=Math.round(f),h=Math.round(h));var p=this.ab*this.hb,l=this.ib*this.gb,n=Math.floor((c-f)/p),p=Math.floor((e-f)/p),t=Math.floor((d-h)/l),l=Math.floor((b-h)/l),r=f%this.hb,u=h%this.gb;this.ef&&(u=r=0);if(0!==r||0!==u)a.save(),a.translate(r,
u),f-=r,h-=u,c-=r,d-=u,e-=r,b-=u;for(var w,N,S,E,y,z,L,K,J;n<=p;++n)for(w=t;w<=l;++w)if(N=this.Bl(n,w))for(N.hi(),S=0,E=N.tb.length;S<E;++S)y=N.tb[S],-1!==y.id&&(k=y.da,z=k.left+f,L=k.top+h,K=k.right+f,k=k.bottom+h,z>e||K<c||L>b||k<d||(J=this.type.Wn(y.bl,y.Nh,y.Vi,y.ng,this.ef),g?a.drawImage(J,z,L):(a.fillStyle=this.type.Wn(y.bl,y.Nh,y.Vi,y.ng,this.ef),a.fillRect(z,L,K-z,k-L))));0===r&&0===u||a.restore()}};var w=new ta(0,0,1,1);a.Ie=function(a){this.Cb(a)};a.Cb=function(a){if(!(0>=this.hb||0>=this.gb)){this.type.Sm(this.hb,
this.gb,this.Cn,this.En,this.Dn,this.Fn,this.ef);if(this.width!==this.de||this.height!==this.be)this.pi=!0,this.Mk(),this.Rm(),this.de=this.width,this.be=this.height;a.ke(this.opacity);var b=this.type.vf,c=this.k,d=c.fa,e=c.ia,f=c.oa,c=c.na,h=this.x,g=this.y,k;this.b.Wb&&(h=Math.round(h),g=Math.round(g));var p=this.ab*this.hb,l=this.ib*this.gb,n=Math.floor((f-h)/p),t=Math.floor((e-g)/l),l=Math.floor((c-g)/l),r,u,D,N,S,E,y,z,L,K,J,Q,fa,H,na,ga,wa;for(na=Math.floor((d-h)/p);na<=n;++na)for(ga=t;ga<=
l;++ga)if(wa=this.Bl(na,ga))for(wa.hi(),p=0,r=wa.tb.length;p<r;++p)u=wa.tb[p],-1!==u.id&&(k=u.da,D=k.left+h,N=k.top+g,S=k.right+h,k=k.bottom+g,D>f||S<d||N>c||k<e||(a.Kb(b[u.bl]),w.right=(S-D)/this.hb,w.bottom=(k-N)/this.gb,u.wo?(u.ng&&(H=w.right,w.right=w.bottom,w.bottom=H),y=E=0,z=w.right,L=0,K=w.right,J=w.bottom,Q=0,fa=w.bottom,u.ng&&(H=Q,Q=z,z=H,H=fa,fa=L,L=H),u.Nh&&(H=E,E=z,z=H,H=y,y=L,L=H,H=Q,Q=K,K=H,H=fa,fa=J,J=H),u.Vi&&(H=E,E=Q,Q=H,H=y,y=fa,fa=H,H=z,z=K,K=H,H=L,L=J,J=H),a.pw(D,N,S,N,S,k,D,
k,E,y,z,L,K,J,Q,fa)):a.Gc(D,N,S,N,S,k,D,k,w)))}};h.j=new function(){};h.C=new function(){};h.wa=new function(){}})();function nc(g){this.b=g}
(function(){function g(a){var b;if(!c[a])for(c[a]=Array(20),b=0;20>b;++b)c[a][b]=0;return c[a]}function n(a){var b;if(!f[a])for(f[a]=Array(20),b=0;20>b;++b)f[a][b]=0;return f[a]}function l(a,b){return b?4<=a?-1:a+16:16<=a?-1:a}function r(c){d[c.gamepad.index]=c.gamepad;a.trigger(nc.prototype.j.xs,b)}function p(c){a.trigger(nc.prototype.j.ys,b);d[c.gamepad.index]=null}function t(){}var h=nc.prototype;h.V=function(a){this.ca=a;this.b=a.b};h.V.prototype.I=function(){};var a=null,b=null,d=Array(16),c=
Array(16),f=Array(16),e="",k="",u=null,w={windows:{}};w.windows.firefox={};var q=[0,1,2,3,4,5,8,9,10,11],m=[0,1,[7,6],2,3,[14,15],[12,13]];w.windows.firefox.xbox360=function(a,b){return b?a>=m.length?-1:ia(m[a])?m[a]+16:m[a]:a>=q.length?-1:q[a]};var v=[2,0,1,3,4,6,5,7,8,9],T=[0,1,2,3,[14,15],[12,13]];w.windows.firefox.logitechdualaction=function(a,b){return b?a>=T.length?-1:ia(T[a])?T[a]+16:T[a]:a>=v.length?-1:v[a]};h.R=function(c){this.type=c;a=this.b=c.b;b=this};var C=h.R.prototype;C.I=function(){this.Bt=
this.q[0];this.hk=0;var a=navigator.userAgent;e="windows";/mac/i.test(a)&&(e="mac");u=w[e];k="chrome";/firefox/i.test(a)&&(k="firefox");u&&(u=u[k]);window.addEventListener("webkitgamepadconnected",r,!1);window.addEventListener("webkitgamepaddisconnected",p,!1);window.addEventListener("MozGamepadConnected",r,!1);window.addEventListener("MozGamepadDisconnected",p,!1);window.addEventListener("gamepadconnected",r,!1);window.addEventListener("gamepaddisconnected",p,!1);this.b.Oi(this);this.kj=[]};C.mc=
function(){this.kj.length=0;var a=null,b=!1;navigator.getGamepads?a=navigator.getGamepads():navigator.webkitGetGamepads?a=navigator.webkitGetGamepads():navigator.mozGetGamepads?a=navigator.mozGetGamepads():navigator.msGetGamepads?a=navigator.msGetGamepads():this.b.Bp&&window.cr_getGamepads?(a=window.cr_getGamepads(),b=!0):a=navigator.gamepads||navigator.webkitGamepads||navigator.MozGamepads||d;if(a){var e,h,k,p,m,t,r;e=0;for(h=a.length;e<h;e++){var q=a[e];if(q){var v=g(e),w=n(e);p=e;k=g(p);p=n(p);
m=void 0;for(m=0;20>m;++m)p[m]=k[m];b?k=l:u?(k="",p=q.id.toLowerCase(),-1<p.indexOf("xbox 360")?k="xbox360":-1<p.indexOf("logitech dual action")&&(k="logitechdualaction"),k=u[k]||l):k=l;m=k;k=0;for(p=q.buttons.length;k<p;k++)r="undefined"!==typeof q.buttons[k].value?q.buttons[k].value:q.buttons[k],t=m(k,!1,r),0<=t&&20>t&&(v[t]=100*r,50<=v[t]&&50>w[t]&&(this.hk=t));k=0;for(p=q.axes.length;k<p;k++)r=q.axes[k],t=m(k,!0,r),ia(t)?0<=t&&20>t&&(v[t]=100*r):(v[t[0]]=0,v[t[1]]=0,0>=r?v[t[0]]=Math.abs(100*
r):v[t[1]]=Math.abs(100*r));this.kj.push(q)}else q=e,c[q]=null,f[q]=null}for(;20>e;++e)a=e,c[a]=null,f[a]=null}};C.Ka=function(){return{lastButton:this.hk}};C.Ua=function(a){this.hk=a.lastButton};t.prototype.xs=function(){return!0};t.prototype.ys=function(){return!0};t.prototype.Vr=function(a,b){a=Math.floor(a);if(0>a||a>=this.kj.length)return!1;var c=g(a);if(!c)return!1;if(c=50<=c[b])this.hk=b;return c};t.prototype.Kr=function(a,b,c,d){a=Math.floor(a);b=Math.floor(b);if(0>a||a>=this.kj.length)return!1;
if(a=g(a)){var e=a[b+16],f=0,f=0===b%2?a[b+16+1]:a[b+16-1];Math.sqrt(e*e+f*f)<=this.Bt&&(e=0);return Tb(e,c,d)}};h.j=new t;h.C=new function(){};h.wa=new function(){}})();function oc(g){this.b=g}
(function(){function g(){}function n(){}var l=oc.prototype;l.V=function(g){this.behavior=g;this.b=g.b};l.V.prototype.I=function(){};l.R=function(g,l){this.type=g;this.behavior=g.behavior;this.e=l;this.b=g.b};var r=l.R.prototype;r.I=function(){this.sl=1===this.q[0];this.Pq=!1;this.Ch=this.q[1];this.Yi=this.q[2];this.Dh=this.q[3];this.Ft=this.q[4];this.$a=this.sl?0:3;this.ub?this.Jc.reset():this.Jc=new Va;this.Ye=this.e.opacity?this.e.opacity:1;this.sl&&(0===this.Ch?(this.$a=1,0===this.Yi&&(this.$a=
2)):(this.e.opacity=0,this.b.O=!0))};r.Ka=function(){return{fit:this.Ch,wt:this.Yi,fot:this.Dh,s:this.$a,st:this.Jc.ka,mo:this.Ye}};r.Ua=function(g){this.Ch=g.fit;this.Yi=g.wt;this.Dh=g.fot;this.$a=g.s;this.Jc.reset();this.Jc.ka=g.st;this.Ye=g.mo};r.mc=function(){this.Jc.add(this.b.wg(this.e));0===this.$a&&(this.e.opacity=this.Jc.ka/this.Ch*this.Ye,this.b.O=!0,this.e.opacity>=this.Ye&&(this.e.opacity=this.Ye,this.$a=1,this.Jc.reset(),this.b.trigger(oc.prototype.j.us,this.e)));1===this.$a&&this.Jc.ka>=
this.Yi&&(this.$a=2,this.Jc.reset(),this.b.trigger(oc.prototype.j.Hs,this.e));2===this.$a&&0!==this.Dh&&(this.e.opacity=this.Ye-this.Jc.ka/this.Dh*this.Ye,this.b.O=!0,0>this.e.opacity&&(this.e.opacity=0,this.$a=3,this.Jc.reset(),this.b.trigger(oc.prototype.j.vs,this.e),1===this.Ft&&this.b.lf(this.e)))};r.Xt=function(){this.$a=0;this.Jc.reset();0===this.Ch?(this.$a=1,0===this.Yi&&(this.$a=2)):(this.e.opacity=0,this.b.O=!0)};g.prototype.vs=function(){return!0};g.prototype.us=function(){return!0};g.prototype.Hs=
function(){return!0};l.j=new g;n.prototype.Xs=function(){this.sl||this.Pq||(this.Ye=this.e.opacity?this.e.opacity:1,this.Pq=!0);3===this.$a&&this.Xt()};n.prototype.Ns=function(g){0>g&&(g=0);this.Dh=g};l.C=new n;l.wa=new function(){}})();function pc(g){this.b=g}
(function(){function g(){}function n(){}var l=pc.prototype;l.V=function(g){this.behavior=g;this.b=g.b};l.V.prototype.I=function(){};l.R=function(g,l){this.type=g;this.behavior=g.behavior;this.e=l;this.b=g.b};var r=l.R.prototype;r.I=function(){this.Md=this.Id=this.$a=this.yk=this.zk=0};r.Ka=function(){return{ontime:this.zk,offtime:this.yk,stage:this.$a,stagetimeleft:this.Id,timeleft:this.Md}};r.Ua=function(g){this.zk=g.ontime;this.yk=g.offtime;this.$a=g.stage;this.Id=g.stagetimeleft;this.Md=g.timeleft;
null===this.Md&&(this.Md=Infinity)};r.mc=function(){if(!(0>=this.Md)){var g=this.b.wg(this.e);this.Md-=g;0>=this.Md?(this.Md=0,this.e.visible=!0,this.b.O=!0,this.b.trigger(pc.prototype.j.ao,this.e)):(this.Id-=g,0>=this.Id&&(0===this.$a?(this.e.visible=!1,this.$a=1,this.Id+=this.yk):(this.e.visible=!0,this.$a=0,this.Id+=this.zk),this.b.O=!0))}};g.prototype.ao=function(){return!0};l.j=new g;n.prototype.Sr=function(g,l,h){this.zk=g;this.yk=l;this.$a=1;this.Id=l;this.Md=h;this.e.visible=!1;this.b.O=!0};
l.C=new n;l.wa=new function(){}})();function qc(g){this.b=g}
(function(){function g(){}var n=qc.prototype;n.V=function(g){this.behavior=g;this.b=g.b};n.V.prototype.I=function(){};n.R=function(g,p){this.type=g;this.behavior=g.behavior;this.e=p;this.b=g.b};var l=n.R.prototype;l.I=function(){this.Xa=null;this.Ak=-1;this.mode=this.Fg=this.Zk=this.Ng=this.ie=this.ri=0;var g=this;this.ub||(this.ji=function(p){g.Ym(p)});this.b.tl(this.ji)};l.Ka=function(){return{uid:this.Xa?this.Xa.uid:-1,pa:this.ri,pd:this.ie,msa:this.Ng,tsa:this.Zk,lka:this.Fg,m:this.mode}};l.Ua=
function(g){this.Ak=g.uid;this.ri=g.pa;this.ie=g.pd;this.Ng=g.msa;this.Zk=g.tsa;this.Fg=g.lka;this.mode=g.m};l.qd=function(){-1===this.Ak?this.Xa=null:this.Xa=this.b.Ih(this.Ak);this.Ak=-1};l.Ym=function(g){this.Xa==g&&(this.Xa=null)};l.dd=function(){this.Xa=null;this.b.Dq(this.ji)};l.mc=function(){};l.Bn=function(){if(this.Xa){this.Fg!==this.e.n&&(this.Ng=Ga(this.Ng+(this.e.n-this.Fg)));var g=this.e.x,p=this.e.y;if(3===this.mode||4===this.mode){var l=Na(this.e.x,this.e.y,this.Xa.x,this.Xa.y);if(l>
this.ie||4===this.mode&&l<this.ie)p=Ja(this.Xa.x,this.Xa.y,this.e.x,this.e.y),g=this.Xa.x+Math.cos(p)*this.ie,p=this.Xa.y+Math.sin(p)*this.ie}else g=this.Xa.x+Math.cos(this.Xa.n+this.ri)*this.ie,p=this.Xa.y+Math.sin(this.Xa.n+this.ri)*this.ie;this.Fg=l=Ga(this.Ng+(this.Xa.n-this.Zk));0!==this.mode&&1!==this.mode&&3!==this.mode&&4!==this.mode||this.e.x===g&&this.e.y===p||(this.e.x=g,this.e.y=p,this.e.u());0!==this.mode&&2!==this.mode||this.e.n===l||(this.e.n=l,this.e.u())}};n.j=new function(){};g.prototype.Js=
function(g,p){if(g){var l=g.fp(this.e);l&&(this.Xa=l,this.ri=Ja(l.x,l.y,this.e.x,this.e.y)-l.n,this.ie=Na(l.x,l.y,this.e.x,this.e.y),this.Fg=this.Ng=this.e.n,this.Zk=l.n,this.mode=p)}};g.prototype.$s=function(){this.Xa=null};n.C=new g;n.wa=new function(){}})();function rc(g){this.b=g}
(function(){function g(){}function n(){}var l=rc.prototype;l.V=function(g){this.behavior=g;this.b=g.b};l.V.prototype.I=function(){};l.R=function(g,l){this.type=g;this.behavior=g.behavior;this.e=l;this.b=g.b;this.Hi=this.Tk=this.Sk=this.om=this.rh=this.yh=this.Cg=this.Dg=this.Ci=this.Zh=!1;this.Db=null;this.Lm=-1;this.Te=this.Se=0;this.Fh=!1;this.Bf=this.Qc=0;this.Oj=!0;this.J=this.D=0};var r=l.R.prototype;r.tr=function(){this.Ga=Math.cos(this.vg);this.Ha=Math.sin(this.vg);this.Fd=Math.cos(this.vg-
Math.PI/2);this.Gd=Math.sin(this.vg-Math.PI/2);this.Ga=bb(this.Ga);this.Ha=bb(this.Ha);this.Fd=bb(this.Fd);this.Gd=bb(this.Gd);this.$l=this.Xd;0>this.Xd&&(this.Ga*=-1,this.Ha*=-1,this.Xd=Math.abs(this.Xd))};r.I=function(){this.Mg=this.q[0];this.fg=this.q[1];this.mg=this.q[2];this.Xh=this.q[3];this.$l=this.Xd=this.q[4];this.uk=this.q[5];this.Ql=0!==this.q[6];this.Fm=this.q[7]/1E3;this.Ct=1===this.q[8];this.enabled=0!==this.q[9];this.bh=!1;this.dh=this.b.qe(this.e);this.Mm=-1;this.Yf=0;this.vg=U(90);
this.tr();var g=this;this.Ct&&!this.b.Ub&&(jQuery(document).keydown(function(l){g.Zm(l)}),jQuery(document).keyup(function(l){g.$m(l)}));this.ub||(this.ji=function(l){g.Ym(l)});this.b.tl(this.ji);this.e.H.isPlatformBehavior=!0};r.Ka=function(){return{ii:this.om,lfx:this.Se,lfy:this.Te,lfo:this.Db?this.Db.uid:-1,am:this.Qc,en:this.enabled,fall:this.Bf,ft:this.Oj,dx:this.D,dy:this.J,ms:this.Mg,acc:this.fg,dec:this.mg,js:this.Xh,g:this.Xd,g1:this.$l,mf:this.uk,wof:this.bh,woj:this.dh?this.dh.uid:-1,ga:this.vg,
edj:this.Ql,cdj:this.rh,dj:this.yh,sus:this.Fm}};r.Ua=function(g){this.om=g.ii;this.Se=g.lfx;this.Te=g.lfy;this.Lm=g.lfo;this.Qc=g.am;this.enabled=g.en;this.Bf=g.fall;this.Oj=g.ft;this.D=g.dx;this.J=g.dy;this.Mg=g.ms;this.fg=g.acc;this.mg=g.dec;this.Xh=g.js;this.Xd=g.g;this.$l=g.g1;this.uk=g.mf;this.bh=g.wof;this.Mm=g.woj;this.vg=g.ga;this.Ql=g.edj;this.rh=g.cdj;this.yh=g.dj;this.Fm=g.sus;this.Hi=this.Tk=this.Sk=this.Cg=this.Dg=this.Ci=this.Zh=!1;this.Yf=0;this.tr()};r.qd=function(){-1===this.Lm?
this.Db=null:this.Db=this.b.Ih(this.Lm);-1===this.Mm?this.dh=null:this.dh=this.b.Ih(this.Mm)};r.Ym=function(g){this.Db==g&&(this.Db=null)};r.dd=function(){this.Db=null;this.b.Dq(this.ji)};r.Zm=function(g){switch(g.which){case 38:g.preventDefault();this.Dg=!0;break;case 37:g.preventDefault();this.Zh=!0;break;case 39:g.preventDefault(),this.Ci=!0}};r.$m=function(g){switch(g.which){case 38:g.preventDefault();this.Cg=this.Dg=!1;break;case 37:g.preventDefault();this.Zh=!1;break;case 39:g.preventDefault(),
this.Ci=!1}};r.Uf=function(){this.Dg=this.Ci=this.Zh=!1};r.ud=function(){return 0>this.Xd?-1:1};r.xp=function(){var g=null,l=null,h,a;h=this.e.x;a=this.e.y;this.e.x+=this.Ga;this.e.y+=this.Ha;this.e.u();if(this.Db&&this.b.Nb(this.e,this.Db)&&(!this.b.Kn(this.Db.type,cc)||this.Db.H.solidEnabled))return this.e.x=h,this.e.y=a,this.e.u(),this.Db;(g=this.b.xb(this.e))||0!==this.Bf||(l=this.b.qe(this.e,!0));this.e.x=h;this.e.y=a;this.e.u();if(g){if(this.b.Nb(this.e,g))return null;this.Fh=!1;return g}if(l&&
l.length){a=g=0;for(h=l.length;g<h;g++)l[a]=l[g],this.b.Nb(this.e,l[g])||a++;if(1<=a)return this.Fh=!0,l[0]}return null};r.mc=function(){};r.xq=function(){var g=this.b.wg(this.e),l,h,a,b,d,c,f,e,k;this.Dg||this.Hi||(this.Cg=!1);var n=this.Zh||this.Sk;a=this.Ci||this.Tk;var r=(b=this.Dg||this.Hi)&&!this.Cg;this.Hi=this.Tk=this.Sk=!1;if(this.enabled){this.om&&(r=b=a=n=!1);b||(this.Yf=0);e=this.Db;k=!1;this.Oj&&((this.b.xb(this.e)||this.b.qe(this.e))&&this.b.fd(this.e,-this.Ga,-this.Ha,4,!0),this.Oj=
!1);!e||0!==this.J||e.y===this.Te&&e.x===this.Se||(l=e.x-this.Se,h=e.y-this.Te,this.e.x+=l,this.e.y+=h,this.e.u(),this.Se=e.x,this.Te=e.y,k=!0,this.b.xb(this.e)&&this.b.fd(this.e,-l,-h,2.5*Math.sqrt(l*l+h*h)));var q=this.xp();if(h=this.b.xb(this.e))if(d=Math.abs(this.e.width),c=Math.abs(this.e.height),this.e.H.inputPredicted)this.b.fd(this.e,-this.Ga,-this.Ha,10,!1);else if(this.b.jn(this.e,-this.Ga,-this.Ha,c/8))this.b.df(this.e,h);else if(this.b.jn(this.e,this.Fd,this.Gd,d/2))this.b.df(this.e,h);
else if(this.b.jn(this.e,this.Ga,this.Ha,c/2))this.b.df(this.e,h);else if(this.b.ow(this.e,Math.max(d,c)/2))this.b.df(this.e,h);else return;q?(this.rh=this.yh=!1,0<this.J&&(this.bh||(this.b.Fk(this.e,-this.Ga,-this.Ha,q),this.bh=!0),this.J=0),e!=q)?(this.Db=q,this.Se=q.x,this.Te=q.y,this.b.df(this.e,q)):k&&(h=this.b.xb(this.e))&&(this.b.df(this.e,h),0!==l&&(0<l?this.b.fd(this.e,-this.Fd,-this.Gd):this.b.fd(this.e,this.Fd,this.Gd)),this.b.fd(this.e,-this.Ga,-this.Ha)):b||(this.rh=!0);if(q&&r||!q&&
this.Ql&&b&&this.rh&&!this.yh)e=this.e.x,k=this.e.y,this.e.x-=this.Ga,this.e.y-=this.Ha,this.e.u(),this.b.xb(this.e)?r=!1:(this.Yf=this.Fm,this.b.trigger(rc.prototype.j.zs,this.e),this.Qc=2,this.J=-this.Xh,r=!0,q?this.Cg=!0:this.yh=!0),this.e.x=e,this.e.y=k,this.e.u();q||(b&&0<this.Yf?(this.J=-this.Xh,this.Yf-=g):(this.Db=null,this.J+=this.Xd*g,this.J>this.uk&&(this.J=this.uk)),r&&(this.Cg=!0));this.bh=!!q;n==a&&(0>this.D?(this.D+=this.mg*g,0<this.D&&(this.D=0)):0<this.D&&(this.D-=this.mg*g,0>this.D&&
(this.D=0)));n&&!a&&(this.D=0<this.D?this.D-(this.fg+this.mg)*g:this.D-this.fg*g);a&&!n&&(this.D=0>this.D?this.D+(this.fg+this.mg)*g:this.D+this.fg*g);this.D>this.Mg?this.D=this.Mg:this.D<-this.Mg&&(this.D=-this.Mg);n=!1;0!==this.D&&(e=this.e.x,k=this.e.y,l=this.D*g*this.Fd,h=this.D*g*this.Gd,this.e.x+=this.Fd*(1<this.D?1:-1)-this.Ga,this.e.y+=this.Gd*(1<this.D?1:-1)-this.Ha,this.e.u(),b=!1,d=this.b.xb(this.e),this.e.x=e+l,this.e.y=k+h,this.e.u(),a=this.b.xb(this.e),!a&&q&&(a=this.b.qe(this.e))&&
(this.e.x=e,this.e.y=k,this.e.u(),this.b.Nb(this.e,a)?(a=null,b=!1):b=!0,this.e.x=e+l,this.e.y=k+h,this.e.u()),a?(l=Math.abs(this.D*g)+2,d||!this.b.fd(this.e,-this.Ga,-this.Ha,l,b,a))?(this.b.df(this.e,a),l=Math.max(Math.abs(this.D*g*2.5),30),this.b.fd(this.e,this.Fd*(0>this.D?1:-1),this.Gd*(0>this.D?1:-1),l,!1)?!q||b||this.Fh||(e=this.e.x,k=this.e.y,this.e.x+=this.Ga,this.e.y+=this.Ha,this.b.xb(this.e)?this.b.fd(this.e,-this.Ga,-this.Ha,3,!1)||(this.e.x=e,this.e.y=k,this.e.u()):(this.e.x=e,this.e.y=
k,this.e.u())):(this.e.x=e,this.e.y=k,this.e.u()),b||(this.D=0)):!d&&!r&&Math.abs(this.J)<Math.abs(this.Xh/4)&&(this.J=0,q||(n=!0)):(e=this.xp(),q&&!e?(h=Math.ceil(Math.abs(this.D*g))+2,e=this.e.x,k=this.e.y,this.e.x+=this.Ga*h,this.e.y+=this.Ha*h,this.e.u(),this.b.xb(this.e)||this.b.qe(this.e)?this.b.fd(this.e,-this.Ga,-this.Ha,h+2,!0):(this.e.x=e,this.e.y=k,this.e.u())):e&&(!q&&this.Fh&&(this.Db=e,this.Se=e.x,this.Te=e.y,this.J=0,n=!0),0===this.J&&this.b.Fk(this.e,-this.Ga,-this.Ha,e))));if(0!==
this.J){e=this.e.x;k=this.e.y;this.e.x+=this.J*g*this.Ga;this.e.y+=this.J*g*this.Ha;l=this.e.x;a=this.e.y;this.e.u();h=this.b.xb(this.e);b=!1;if(!h&&0<this.J&&!q){if((b=0<this.Bf?null:this.b.qe(this.e,!0))&&b.length){if(this.dh){this.e.x=e;this.e.y=k;this.e.u();f=d=0;for(c=b.length;d<c;d++)b[f]=b[d],this.b.Nb(this.e,b[d])||f++;b.length=f;this.e.x=l;this.e.y=a;this.e.u()}1<=b.length&&(h=b[0])}b=!!h}h&&(this.b.df(this.e,h),this.Yf=0,l=b?Math.abs(this.J*g*2.5+10):Math.max(Math.abs(this.J*g*2.5+10),30),
this.b.fd(this.e,this.Ga*(0>this.J?1:-1),this.Ha*(0>this.J?1:-1),l,b,h)?(this.Db=h,this.Se=h.x,this.Te=h.y,(this.Fh=b)&&(n=!0),this.J=0):(this.e.x=e,this.e.y=k,this.e.u(),this.bh=!0,b||(this.J=0)))}3!==this.Qc&&0<this.J&&!q&&(this.b.trigger(rc.prototype.j.ws,this.e),this.Qc=3);(q||n)&&0<=this.J&&(3===this.Qc||n||r&&0===this.J?(this.b.trigger(rc.prototype.j.Cs,this.e),this.Qc=0===this.D&&0===this.J?0:1):(0!==this.Qc&&0===this.D&&0===this.J&&(this.b.trigger(rc.prototype.j.Gs,this.e),this.Qc=0),1===
this.Qc||0===this.D&&0===this.J||r||(this.b.trigger(rc.prototype.j.Fs,this.e),this.Qc=1)));0<this.Bf&&this.Bf--;this.dh=this.b.qe(this.e)}};g.prototype.Xn=function(){return 0!==this.D||0!==this.J};g.prototype.as=function(){if(0!==this.J)return!1;var g=null,l=null,h,a;h=this.e.x;a=this.e.y;this.e.x+=this.Ga;this.e.y+=this.Ha;this.e.u();(g=this.b.xb(this.e))||0!==this.Bf||(l=this.b.qe(this.e,!0));this.e.x=h;this.e.y=a;this.e.u();if(g)return!this.b.Nb(this.e,g);if(l&&l.length){a=g=0;for(h=l.length;g<
h;g++)l[a]=l[g],this.b.Nb(this.e,l[g])||a++;if(1<=a)return!0}return!1};g.prototype.Wr=function(g){var l=!1,h=this.e.x,a=this.e.y;0===g?(this.e.x-=2*this.Fd,this.e.y-=2*this.Gd):(this.e.x+=2*this.Fd,this.e.y+=2*this.Gd);this.e.u();if(!this.b.xb(this.e))return this.e.x=h,this.e.y=a,this.e.u(),!1;this.e.x-=3*this.Ga;this.e.y-=3*this.Ha;this.e.u();l=this.b.xb(this.e);this.e.x=h;this.e.y=a;this.e.u();return l};g.prototype.Zr=function(){return 0>this.J};g.prototype.zs=function(){return!0};g.prototype.ws=
function(){return!0};g.prototype.Gs=function(){return!0};g.prototype.Fs=function(){return!0};g.prototype.Cs=function(){return!0};l.j=new g;n.prototype.Vs=function(g){switch(g){case 0:this.Sk=!0;break;case 1:this.Tk=!0;break;case 2:this.Hi=!0}};l.C=new n;l.wa=new function(){}})();function sc(g){this.b=g}
(function(){function g(){}function n(){}var l=sc.prototype;l.V=function(g){this.behavior=g;this.b=g.b};l.V.prototype.I=function(){};l.R=function(g,l){this.type=g;this.behavior=g.behavior;this.e=l;this.b=g.b;this.uf=this.J=this.D=0};var r=l.R.prototype;r.I=function(){this.Xg=this.q[0];this.ln=this.q[1];this.enabled=0!==this.q[2]};r.Ka=function(){return{dx:this.D,dy:this.J,cancelStep:this.uf,enabled:this.enabled,stepMode:this.Xg,pxPerStep:this.ln}};r.Ua=function(g){this.D=g.dx;this.J=g.dy;this.uf=g.cancelStep;
this.enabled=g.enabled;this.Xg=g.stepMode;this.ln=g.pxPerStep};r.ud=function(){return Math.sqrt(this.D*this.D+this.J*this.J)};r.Tb=function(){return Math.atan2(this.J,this.D)};r.step=function(g,l,h){if(0!==g||0!==l){var a=this.e.x,b=this.e.y,d,c=Math.round(Math.sqrt(g*g+l*l)/this.ln);0===c&&(c=1);var f;for(f=1;f<=c;f++)if(d=f/c,this.e.x=a+g*d,this.e.y=b+l*d,this.e.u(),this.b.trigger(h,this.e),1===this.uf){f--;d=f/c;this.e.x=a+g*d;this.e.y=b+l*d;this.e.u();break}else if(2===this.uf)break}};r.mc=function(){var g=
this.b.wg(this.e),l=this.D*g,g=this.J*g;0===this.D&&0===this.J||!this.enabled||(this.uf=0,0===this.Xg?(this.e.x+=l,this.e.y+=g):1===this.Xg?this.step(l,g,sc.prototype.j.qs):2===this.Xg?(this.step(l,0,sc.prototype.j.Zn),this.uf=0,this.step(0,g,sc.prototype.j.$n)):3===this.Xg&&(this.step(0,g,sc.prototype.j.$n),this.uf=0,this.step(l,0,sc.prototype.j.Zn)),this.e.u())};g.prototype.Xn=function(){return 0!=this.D||0!=this.J};g.prototype.qs=function(){return!0};g.prototype.Zn=function(){return!0};g.prototype.$n=
function(){return!0};l.j=new g;l.C=new function(){};n.prototype.D=function(g){g.S(this.D)};n.prototype.J=function(g){g.S(this.J)};l.wa=new n})();function cc(g){this.b=g}(function(){var g=cc.prototype;g.V=function(g){this.behavior=g;this.b=g.b};g.V.prototype.I=function(){};g.R=function(g,n){this.type=g;this.behavior=g.behavior;this.e=n;this.b=g.b};var n=g.R.prototype;n.I=function(){this.e.H.solidEnabled=0!==this.q[0]};n.mc=function(){};g.j=new function(){};g.C=new function(){}})();
function bc(){return[Z,ec,fc,dc,ic,nc,kc,jc,X,mc,lc,cc,rc,sc,oc,pc,qc,W.prototype.j.Yr,W.prototype.j.eo,W.prototype.C.Ts,X.prototype.C.ks,W.prototype.C.Os,Z.prototype.C.Ks,W.prototype.j.Rr,X.prototype.C.Rs,jc.prototype.C.ll,W.prototype.C.Er,W.prototype.j.Lr,W.prototype.j.Zs,nc.prototype.j.Vr,dc.prototype.C.CallFunction,nc.prototype.j.Kr,fc.prototype.j.$r,rc.prototype.C.Vs,rc.prototype.j.Wr,X.prototype.C.Ps,rc.prototype.j.as,rc.prototype.j.Xn,X.prototype.C.Ls,W.prototype.j.Vn,rc.prototype.j.Zr,X.prototype.j.ss,
X.prototype.C.Un,kc.prototype.C.ll,W.prototype.C.bt,X.prototype.j.cs,X.prototype.C.ko,jc.prototype.C.ko,dc.prototype.j.fj,X.prototype.C.jo,dc.prototype.wa.Is,mc.prototype.C.jo,qc.prototype.C.Js,X.prototype.C.no,mc.prototype.C.no,qc.prototype.C.$s,X.prototype.C.lo,W.prototype.wa.abs,X.prototype.wa.oo,X.prototype.j.bs,oc.prototype.C.Ns,oc.prototype.C.Xs,mc.prototype.j.Nr,X.prototype.C.Qs,ec.prototype.wa.Gr,X.prototype.C.Ms,Z.prototype.j.gh,ec.prototype.C.es,Z.prototype.wa.gs,W.prototype.C.Or,pc.prototype.C.Sr,
W.prototype.j.Qr,W.prototype.C.Ys,pc.prototype.j.ao,jc.prototype.C.Un]};