diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..93ec289 Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/game/_config.yml b/docs/game/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/docs/game/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/docs/game/appmanifest.json b/docs/game/appmanifest.json new file mode 100644 index 0000000..6d1f9be --- /dev/null +++ b/docs/game/appmanifest.json @@ -0,0 +1,28 @@ +{ + "name": "New project", + "short_name": "New project", + "start_url": "index.html", + "display": "fullscreen", + "orientation": "any", + "icons": [{ + "src": "icon-16.png", + "sizes": "16x16", + "type": "image/png" + }, { + "src": "icon-32.png", + "sizes": "32x32", + "type": "image/png" + }, { + "src": "icon-128.png", + "sizes": "128x128", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "144x144", + "type": "image/png" + }, { + "src": "icon-256.png", + "sizes": "256x256", + "type": "image/png" + }] +} diff --git a/docs/game/c2runtime.js b/docs/game/c2runtime.js new file mode 100644 index 0000000..c82914b --- /dev/null +++ b/docs/game/c2runtime.js @@ -0,0 +1,382 @@ +// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com +'use strict';var aa,ba,ca,z,da,ea,D,O,fa,ga,ia,ja,na,oa,S,pa,ra,T,ua,va,wa,xa,U,ya,za,Aa,Ba,Ca,V,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,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,W,Sb,Tb={},Ub={};"function"!==typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype}); +(function(){function e(a,c,h,d){this.set(a,c,h,d)}function p(){this.pb=this.ob=this.sb=this.rb=this.Ab=this.zb=this.ab=this.$a=0}function l(a,c,h,d){ad?c:d):(v=ah?c:h):hd?a:d):(v=ch?a:h)}function q(){this.items=this.Zc=null;this.Fg=0;ka&&(this.Zc=new Set);this.Tf=[];this.Hd=!0}function t(a){E[la++]=a}function u(){this.oa=this.ej=this.y=this.zj=0}function b(a){this.Ja=[];this.yh=this.Ah=this.Bh=this.zh=0;this.gh(a)}function a(a,c){this.Dj= +a;this.Cj=c;this.cells={}}function f(a,c){this.Dj=a;this.Cj=c;this.cells={}}function k(a,c,h){var d;return Q.length?(d=Q.pop(),d.hk=a,d.x=c,d.y=h,d):new aa(a,c,h)}function c(a,c,h){this.hk=a;this.x=c;this.y=h;this.Qa=new ba}function d(a,c,h){var d;return X.length?(d=X.pop(),d.hk=a,d.x=c,d.y=h,d):new ca(a,c,h)}function r(a,c,h){this.hk=a;this.x=c;this.y=h;this.Qa=[];this.of=!0;this.Xc=new ba;this.Zf=!1}function g(a,c){return a.Nc-c.Nc}z=function(a){window.console&&window.console.log&&window.console.log(a)}; +da=function(a){window.console&&window.console.error&&window.console.error(a)};ea=function(a){return"undefined"===typeof a};D=function(a){return"number"===typeof a};O=function(a){return"string"===typeof a};fa=function(a){return 0c;c<<=1)a=a|a>>c;return a+1};ia=function(a){return 0>a?-a:a};ja=function(a,c){return a>c?a:c};na=function(a,c){return aA)return!1;cA)return!1;b=f-a+g-h;y=m-c+k-d;a=h-a;c=d-c;f=g-f;m=k-m;k=ia(c*f-m*a);return ia(f*y-m*b)>k?!1:ia(a*y-c*b)<=k};e.prototype.set=function(a,c,h,d){this.left=a;this.top=c;this.right=h;this.bottom=d};e.prototype.fg=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};e.prototype.width=function(){return this.right- +this.left};e.prototype.height=function(){return this.bottom-this.top};e.prototype.offset=function(a,c){this.left+=a;this.top+=c;this.right+=a;this.bottom+=c;return this};e.prototype.normalize=function(){var a=0;this.left>this.right&&(a=this.left,this.left=this.right,this.right=a);this.top>this.bottom&&(a=this.top,this.top=this.bottom,this.bottom=a)};e.prototype.us=function(a){return!(a.rightthis.right||a.top>this.bottom)};e.prototype.vs=function(a,c,h){return!(a.right+ +cthis.right||a.top+h>this.bottom)};e.prototype.eb=function(a,c){return a>=this.left&&a<=this.right&&c>=this.top&&c<=this.bottom};e.prototype.kg=function(a){return this.left===a.left&&this.top===a.top&&this.right===a.right&&this.bottom===a.bottom};T=e;p.prototype.fh=function(a){this.$a=a.left;this.ab=a.top;this.zb=a.right;this.Ab=a.top;this.rb=a.right;this.sb=a.bottom;this.ob=a.left;this.pb=a.bottom};p.prototype.yo=function(a,c){if(0===c)this.fh(a);else{var h= +Math.sin(c),d=Math.cos(c),f=a.left*h,m=a.top*h,g=a.right*h,h=a.bottom*h,k=a.left*d,b=a.top*d,y=a.right*d,d=a.bottom*d;this.$a=k-m;this.ab=b+f;this.zb=y-m;this.Ab=b+g;this.rb=y-h;this.sb=d+g;this.ob=k-h;this.pb=d+f}};p.prototype.offset=function(a,c){this.$a+=a;this.ab+=c;this.zb+=a;this.Ab+=c;this.rb+=a;this.sb+=c;this.ob+=a;this.pb+=c;return this};var v=0,w=0;p.prototype.$l=function(a){l(this.$a,this.zb,this.rb,this.ob);a.left=v;a.right=w;l(this.ab,this.Ab,this.sb,this.pb);a.top=v;a.bottom=w};p.prototype.eb= +function(a,c){var h=this.$a,d=this.ab,f=this.zb-h,m=this.Ab-d,g=this.rb-h,k=this.sb-d,b=a-h,y=c-d,A=f*f+m*m,B=f*g+m*k,m=f*b+m*y,r=g*g+k*k,e=g*b+k*y,n=1/(A*r-B*B),f=(r*m-B*e)*n,A=(A*e-B*m)*n;if(0<=f&&0f+A)return!0;f=this.ob-h;m=this.pb-d;A=f*f+m*m;B=f*g+m*k;m=f*b+m*y;n=1/(A*r-B*B);f=(r*m-B*e)*n;A=(A*e-B*m)*n;return 0<=f&&0f+A};p.prototype.Fd=function(a,c){if(c)switch(a){case 0:return this.$a;case 1:return this.zb;case 2:return this.rb;case 3:return this.ob;case 4:return this.$a;default:return this.$a}else switch(a){case 0:return this.ab; +case 1:return this.Ab;case 2:return this.sb;case 3:return this.pb;case 4:return this.ab;default:return this.ab}};p.prototype.Gn=function(){return(this.$a+this.zb+this.rb+this.ob)/4};p.prototype.Hn=function(){return(this.ab+this.Ab+this.sb+this.pb)/4};p.prototype.Lm=function(a){var c=a.Gn(),h=a.Hn();if(this.eb(c,h))return!0;c=this.Gn();h=this.Hn();if(a.eb(c,h))return!0;var d,f,m,g,k,b,y,A;for(y=0;4>y;y++)for(A=0;4>A;A++)if(c=this.Fd(y,!0),h=this.Fd(y,!1),d=this.Fd(y+1,!0),f=this.Fd(y+1,!1),m=a.Fd(A, +!0),g=a.Fd(A,!1),k=a.Fd(A+1,!0),b=a.Fd(A+1,!1),ra(c,h,d,f,m,g,k,b))return!0;return!1};ua=p;va=function(a,c){for(var h in c)c.hasOwnProperty(h)&&(a[h]=c[h]);return a};wa=function(a,c){var h,d;c=S(c);if(!(0>c||c>=a.length)){h=c;for(d=a.length-1;hh?h:a};V=function(a){return a/(180/oa)};Da=function(a){return 180/oa*a};Ea=function(a){a%=360;0>a&&(a+=360);return a};Fa=function(a){a%=2*oa;0>a&&(a+=2*oa);return a};Ga=function(a){return Ea(Da(a))};Ha=function(a){return Fa(V(a))};Ia=function(a,c,h,d){return Math.atan2(d-c,h-a)};Ja=function(a,c){if(a===c)return 0;var h=Math.sin(a),d=Math.cos(a),f=Math.sin(c),m=Math.cos(c),h=h*f+d*m;return 1<=h?0:-1>=h?oa:Math.acos(h)}; +Ka=function(a,c,h){var d=Math.sin(a),f=Math.cos(a),m=Math.sin(c),g=Math.cos(c);return Math.acos(d*m+f*g)>h?0=d*f-h*m};Ma=function(a,c,h,d){a=h-a;c=d-c;return Math.sqrt(a*a+c*c)};Na=function(a,c){return!a!==!c};Oa=function(a){for(var c in a)if(a.hasOwnProperty(c))return!0;return!1};Pa=function(a){for(var c in a)a.hasOwnProperty(c)&&delete a[c]};var n=+new Date;Qa=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()-n};var h=!1,m=h=!1,x=!1;"undefined"!==typeof window&&(h=/chrome/i.test(navigator.userAgent)||/chromium/i.test(navigator.userAgent),h=!h&&/safari/i.test(navigator.userAgent),m=/(iphone|ipod|ipad)/i.test(navigator.userAgent),x=window.c2ejecta); +var ka=!h&&!x&&!m&&"undefined"!==typeof Set&&"undefined"!==typeof Set.prototype.forEach;q.prototype.contains=function(a){return this.nd()?!1:ka?this.Zc.has(a):this.items&&this.items.hasOwnProperty(a)};q.prototype.add=function(a){if(ka)this.Zc.has(a)||(this.Zc.add(a),this.Hd=!1);else{var c=a.toString(),h=this.items;h?h.hasOwnProperty(c)||(h[c]=a,this.Fg++,this.Hd=!1):(this.items={},this.items[c]=a,this.Fg=1,this.Hd=!1)}};q.prototype.remove=function(a){if(!this.nd())if(ka)this.Zc.has(a)&&(this.Zc["delete"](a), +this.Hd=!1);else if(this.items){a=a.toString();var c=this.items;c.hasOwnProperty(a)&&(delete c[a],this.Fg--,this.Hd=!1)}};q.prototype.clear=function(){this.nd()||(ka?this.Zc.clear():(this.items=null,this.Fg=0),U(this.Tf),this.Hd=!0)};q.prototype.nd=function(){return 0===this.count()};q.prototype.count=function(){return ka?this.Zc.size:this.Fg};var E=null,la=0;q.prototype.Qt=function(){if(!this.Hd){if(ka)U(this.Tf),E=this.Tf,la=0,this.Zc.forEach(t),E=null,la=0;else{var a=this.Tf;U(a);var c,h=0,d=this.items; +if(d)for(c in d)d.hasOwnProperty(c)&&(a[h++]=d[c])}this.Hd=!0}};q.prototype.ge=function(){this.Qt();return this.Tf};ba=q;new ba;Ra=function(a,c){ka?Sa(a,c.Zc):Ta(a,c.ge())};Sa=function(a,c){var h,d,f,m;d=h=0;for(f=a.length;hh&&(h=m),gf&&(f=g);this.zh=c;this.Ah=h;this.Bh=d;this.yh=f};b.prototype.fh=function(a, +c,h){this.Ja.length=8;this.Ic=4;var d=this.Ja;d[0]=a.left-c;d[1]=a.top-h;d[2]=a.right-c;d[3]=a.top-h;d[4]=a.right-c;d[5]=a.bottom-h;d[6]=a.left-c;d[7]=a.bottom-h;this.Eh=a.right-a.left;this.Dh=a.bottom-a.top;this.V()};b.prototype.Lf=function(a,c,h,d,f){this.Ja.length=8;this.Ic=4;var m=this.Ja;m[0]=a.$a-c;m[1]=a.ab-h;m[2]=a.zb-c;m[3]=a.Ab-h;m[4]=a.rb-c;m[5]=a.sb-h;m[6]=a.ob-c;m[7]=a.pb-h;this.Eh=d;this.Dh=f;this.V()};b.prototype.xo=function(a){this.Ic=a.Ic;ya(this.Ja,a.Ja);this.zh=a.zh;this.Bh-a.Bh; +this.Ah=a.Ah;this.yh=a.yh};b.prototype.Xe=function(a,c,h){if(this.Eh!==a||this.Dh!==c||this.em!==h){this.Eh=a;this.Dh=c;this.em=h;var d,m,f,g,k,b=0,y=1,A=this.ho,B=this.Ja;0!==h&&(b=Math.sin(h),y=Math.cos(h));h=0;for(f=this.Ic;hQ.length&&Q.push(k),this.cells[d][f]=null);if(h)for(d=h.left,m=h.right;d<=m;++d)for(f=h.top,g=h.bottom;f<= +g;++f)c&&c.eb(d,f)||this.Od(d,f,!0).mk(a)};a.prototype.Pi=function(a,c){var h,d,f,m,g,k;h=this.mb(a.left);f=this.nb(a.top);d=this.mb(a.right);for(g=this.nb(a.bottom);h<=d;++h)for(m=f;m<=g;++m)(k=this.Od(h,m,!1))&&k.dump(c)};Xa=a;f.prototype.Od=function(a,c,h){var f;f=this.cells[a];return f?(f=f[c])?f:h?(f=d(this,a,c),this.cells[a][c]=f):null:h?(f=d(this,a,c),this.cells[a]={},this.cells[a][c]=f):null};f.prototype.mb=function(a){return S(a/this.Dj)};f.prototype.nb=function(a){return S(a/this.Cj)};f.prototype.update= +function(a,c,h){var d,f,m,g,k;if(c)for(d=c.left,f=c.right;d<=f;++d)for(m=c.top,g=c.bottom;m<=g;++m)if(!h||!h.eb(d,m))if(k=this.Od(d,m,!1))k.remove(a),k.nd()&&(k.reset(),1E3>X.length&&X.push(k),this.cells[d][m]=null);if(h)for(d=h.left,f=h.right;d<=f;++d)for(m=h.top,g=h.bottom;m<=g;++m)c&&c.eb(d,m)||this.Od(d,m,!0).mk(a)};f.prototype.Pi=function(a,c,h,d,f){var m,g;a=this.mb(a);c=this.nb(c);h=this.mb(h);for(m=this.nb(d);a<=h;++a)for(d=c;d<=m;++d)(g=this.Od(a,d,!1))&&g.dump(f)};f.prototype.Os=function(a){var c, +h,d,f,m;c=a.left;d=a.top;h=a.right;for(f=a.bottom;c<=h;++c)for(a=d;a<=f;++a)if(m=this.Od(c,a,!1))m.of=!1};Ya=f;var Q=[];c.prototype.nd=function(){return this.Qa.nd()};c.prototype.mk=function(a){this.Qa.add(a)};c.prototype.remove=function(a){this.Qa.remove(a)};c.prototype.dump=function(a){za(a,this.Qa.ge())};aa=c;var X=[];r.prototype.nd=function(){if(!this.Qa.length)return!0;if(this.Qa.length>this.Xc.count())return!1;this.Uj();return!0};r.prototype.mk=function(a){this.Xc.contains(a)?(this.Xc.remove(a), +this.Xc.nd()&&(this.Zf=!1)):this.Qa.length?(this.Qa[this.Qa.length-1].Tc()>a.Tc()&&(this.of=!1),this.Qa.push(a)):(this.Qa.push(a),this.of=!0)};r.prototype.remove=function(a){this.Xc.add(a);this.Zf=!0;30<=this.Xc.count()&&this.Uj()};r.prototype.Uj=function(){this.Zf&&(this.Xc.count()===this.Qa.length?this.reset():(Ra(this.Qa,this.Xc),this.Xc.clear(),this.Zf=!1))};r.prototype.Xq=function(){this.of||(this.Qa.sort(g),this.of=!0)};r.prototype.reset=function(){U(this.Qa);this.of=!0;this.Xc.clear();this.Zf= +!1};r.prototype.dump=function(a){this.Uj();this.Xq();this.Qa.length&&a.push(this.Qa)};ca=r;var G="lighter xor copy destination-over source-in destination-in source-out destination-out source-atop destination-atop".split(" ");Za=function(a){return 0>=a||11<=a?"source-over":G[a-1]};ab=function(a,c,h){if(h)switch(a.jb=h.ONE,a.fb=h.ONE_MINUS_SRC_ALPHA,c){case 1:a.jb=h.ONE;a.fb=h.ONE;break;case 3:a.jb=h.ONE;a.fb=h.ZERO;break;case 4:a.jb=h.ONE_MINUS_DST_ALPHA;a.fb=h.ONE;break;case 5:a.jb=h.DST_ALPHA;a.fb= +h.ZERO;break;case 6:a.jb=h.ZERO;a.fb=h.SRC_ALPHA;break;case 7:a.jb=h.ONE_MINUS_DST_ALPHA;a.fb=h.ZERO;break;case 8:a.jb=h.ZERO;a.fb=h.ONE_MINUS_SRC_ALPHA;break;case 9:a.jb=h.DST_ALPHA;a.fb=h.ONE_MINUS_SRC_ALPHA;break;case 10:a.jb=h.ONE_MINUS_DST_ALPHA,a.fb=h.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(e){var p=new Vb(3);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2]);return p}function Xb(e){var p=new Vb(16);e&&(p[0]=e[0],p[1]=e[1],p[2]=e[2],p[3]=e[3],p[4]=e[4],p[5]=e[5],p[6]=e[6],p[7]=e[7],p[8]=e[8],p[9]=e[9],p[10]=e[10],p[11]=e[11],p[12]=e[12],p[13]=e[13],p[14]=e[14],p[15]=e[15]);return p} +function Yb(e,p){p[0]=e[0];p[1]=e[1];p[2]=e[2];p[3]=e[3];p[4]=e[4];p[5]=e[5];p[6]=e[6];p[7]=e[7];p[8]=e[8];p[9]=e[9];p[10]=e[10];p[11]=e[11];p[12]=e[12];p[13]=e[13];p[14]=e[14];p[15]=e[15]}function Zb(e,p){var l=p[0],q=p[1];p=p[2];e[0]*=l;e[1]*=l;e[2]*=l;e[3]*=l;e[4]*=q;e[5]*=q;e[6]*=q;e[7]*=q;e[8]*=p;e[9]*=p;e[10]*=p;e[11]*=p} +function $b(e,p,l,q){q||(q=Xb());var t,u,b,a,f,k,c,d,r=e[0],g=e[1];e=e[2];u=l[0];b=l[1];t=l[2];l=p[1];k=p[2];r===p[0]&&g===l&&e===k?(e=q,e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1):(l=r-p[0],k=g-p[1],c=e-p[2],d=1/Math.sqrt(l*l+k*k+c*c),l*=d,k*=d,c*=d,p=b*c-t*k,t=t*l-u*c,u=u*k-b*l,(d=Math.sqrt(p*p+t*t+u*u))?(d=1/d,p*=d,t*=d,u*=d):u=t=p=0,b=k*u-c*t,a=c*p-l*u,f=l*t-k*p,(d=Math.sqrt(b*b+a*a+f*f))?(d=1/d,b*=d,a*=d,f*=d):f=a=b=0, +q[0]=p,q[1]=b,q[2]=l,q[3]=0,q[4]=t,q[5]=a,q[6]=k,q[7]=0,q[8]=u,q[9]=f,q[10]=c,q[11]=0,q[12]=-(p*r+t*g+u*e),q[13]=-(b*r+a*g+f*e),q[14]=-(l*r+k*g+c*e),q[15]=1)} +(function(){function e(a,f,k){this.Sd=/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent);this.height=this.width=0;this.fa=!!k;this.gi=this.zg=!1;this.Kj=0;this.sj=1;this.Bl=1E3;this.Yt=(this.Bl-this.sj)/32768;this.Aj=Wb([0,0,100]);this.nn=Wb([0,0,0]);this.Uo=Wb([0,1,0]);this.rh=Wb([1,1,1]);this.mm=!0;this.Bi=Xb();this.Wb=Xb();this.yk=Xb();this.Jj=Xb();this.r=a;this.version=0===this.r.getParameter(this.r.VERSION).indexOf("WebGL 2")?2:1;this.Hm()}function p(a,f,k){this.r=a;this.hh= +f;this.name=k;this.jc=a.getAttribLocation(f,"aPos");this.Zd=a.getAttribLocation(f,"aTex");this.ln=a.getUniformLocation(f,"matP");this.wi=a.getUniformLocation(f,"matMV");this.xf=a.getUniformLocation(f,"opacity");this.Fk=a.getUniformLocation(f,"colorFill");this.mn=a.getUniformLocation(f,"samplerFront");this.Og=a.getUniformLocation(f,"samplerBack");this.Ge=a.getUniformLocation(f,"destStart");this.Fe=a.getUniformLocation(f,"destEnd");this.Qg=a.getUniformLocation(f,"seconds");this.Hk=a.getUniformLocation(f, +"pixelWidth");this.Gk=a.getUniformLocation(f,"pixelHeight");this.Ng=a.getUniformLocation(f,"layerScale");this.Mg=a.getUniformLocation(f,"layerAngle");this.Rg=a.getUniformLocation(f,"viewOrigin");this.Pg=a.getUniformLocation(f,"scrollPos");this.qs=!!(this.Hk||this.Gk||this.Qg||this.Og||this.Ge||this.Fe||this.Ng||this.Mg||this.Rg||this.Pg);this.wn=this.xn=-999;this.Ai=1;this.sn=this.rn=0;this.un=this.qn=this.pn=1;this.An=this.zn=this.yn=this.Cn=this.Bn=this.tn=0;this.xk=[];this.vn=Xb();this.xf&&a.uniform1f(this.xf, +1);this.Fk&&a.uniform4f(this.Fk,1,1,1,1);this.mn&&a.uniform1i(this.mn,0);this.Og&&a.uniform1i(this.Og,1);this.Ge&&a.uniform2f(this.Ge,0,0);this.Fe&&a.uniform2f(this.Fe,1,1);this.Ng&&a.uniform1f(this.Ng,1);this.Mg&&a.uniform1f(this.Mg,0);this.Rg&&a.uniform2f(this.Rg,0,0);this.Pg&&a.uniform2f(this.Pg,0,0);this.Qg&&a.uniform1f(this.Qg,0);this.ue=!1}function l(a,f){return a[0]===f[0]&&a[1]===f[1]&&a[2]===f[2]&&a[3]===f[3]&&a[4]===f[4]&&a[5]===f[5]&&a[6]===f[6]&&a[7]===f[7]&&a[8]===f[8]&&a[9]===f[9]&& +a[10]===f[10]&&a[11]===f[11]&&a[12]===f[12]&&a[13]===f[13]&&a[14]===f[14]&&a[15]===f[15]}function q(a,f){this.type=a;this.u=f;this.r=f.r;this.Uc=this.lb=this.Wn=0;this.M=this.sc=null;this.zo=[]}var t=Xb();e.prototype.Hm=function(){var a=this.r,f;this.Zm=1;this.Ae=this.Vd=null;this.Kh=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.fa?(a.enable(a.DEPTH_TEST),a.depthFunc(a.LEQUAL)): +a.disable(a.DEPTH_TEST);this.an=a.ONE;this.Xm=a.ONE_MINUS_SRC_ALPHA;this.qj=new Float32Array(8E3*(this.fa?3:2));this.gj=new Float32Array(16E3);this.ao=new Float32Array(32E3);this.Sk=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,this.Sk);a.bufferData(a.ARRAY_BUFFER,this.ao.byteLength,a.DYNAMIC_DRAW);this.qh=Array(4);this.mh=Array(4);for(f=0;4>f;f++)this.qh[f]=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,this.qh[f]),a.bufferData(a.ARRAY_BUFFER,this.qj.byteLength,a.DYNAMIC_DRAW),this.mh[f]=a.createBuffer(), +a.bindBuffer(a.ARRAY_BUFFER,this.mh[f]),a.bufferData(a.ARRAY_BUFFER,this.gj.byteLength,a.DYNAMIC_DRAW);this.fd=0;this.ss=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.ss);for(var k=new Uint16Array(12E3),c=f=0;12E3>f;)k[f++]=c,k[f++]=c+1,k[f++]=c+2,k[f++]=c,k[f++]=c+2,k[f++]=c+3,c+=4;a.bufferData(a.ELEMENT_ARRAY_BUFFER,k,a.STATIC_DRAW);this.Tk=this.Of=this.xd=0;this.ua=[];f=this.fa?"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}";k=this.gg({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}"},f,"");this.ua.push(k);k=this.gg({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}","");this.ua.push(k);k=this.gg({src:"varying mediump vec2 vTex;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tif (texture2D(samplerFront, vTex).a < 1.0)\n\t\tdiscard;\n}"},f,"");this.ua.push(k);k=this.gg({src:"uniform lowp vec4 colorFill;\nvoid main(void) {\n\tgl_FragColor = colorFill;\n}"}, +f,"");this.ua.push(k);for(var d in ac)ac.hasOwnProperty(d)&&this.ua.push(this.gg(ac[d],f,d));a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,null);this.Gd=[];this.dd=0;this.ib=!1;this.jm=this.Ig=-1;this.Ze=null;this.Tj=a.createFramebuffer();this.Mh=this.Qi=null;this.Yl=!1;this.fa&&(this.Mh=a.createRenderbuffer());this.fe=Wb([0,0,0]);this.Dn=a.getParameter(a.ALIASED_POINT_SIZE_RANGE)[1];2048"===b.name&&a.vertexAttribPointer(b.jc,4,a.FLOAT,!1,0,0));if(0"!==b.name&& +a.vertexAttribPointer(b.jc,this.fa?3:2,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.mh[this.fd]);a.bufferSubData(a.ARRAY_BUFFER,0,this.gj.subarray(0,this.Of));b&&0<=b.Zd&&""!==b.name&&a.vertexAttribPointer(b.Zd,2,a.FLOAT,!1,0,0)}for(var e,a=0,b=this.dd;ae||0>c)){var d=this.Jb();d.type=7;d.lb=1;d.M||(d.M=Xb());d.M[0]=a;d.M[1]=b;d.M[2]=e;d.M[3]=c;this.ib=!1}};e.prototype.to=function(a){if(this.fa&&(a=!!a,this.zg!==a)){var b=this.Jb();b.type=14;b.lb=a?1:0;this.ib=!1;this.zg=a;this.Qi=null;this.zg?this.yb(2): +this.yb(0)}};e.prototype.so=function(a){if(this.fa){var b=this.Jb();b.type=13;b.lb=a?1:0;this.ib=!1}};e.prototype.um=function(){Yb(this.yk,t);this.pc();this.Zb();var a=this.width/2,b=this.height/2;this.ah(-a,b,a,b,a,-b,-a,-b);Yb(t,this.Wb);this.Zb()};e.prototype.ro=function(a,b,e){this.yb(3);var c=this.Jb();c.type=12;c.M||(c.M=Xb());c.M[0]=a;c.M[1]=b;c.M[2]=e;c.M[3]=1;this.ib=!1};e.prototype.Ft=function(){this.yb(0)};e.prototype.ut=function(){this.yb(2)};e.prototype.mt=function(){this.Md();this.r.flush()}; +var u=[],b={};e.prototype.pq=function(){U(u);b={}};e.prototype.kn=function(a,f,e){var c;c=!1;f=!!f;var d=a.src+","+c+","+f+(c?",undefined":""),r=null;if("undefined"!==typeof a.src&&b.hasOwnProperty(d))return r=b[d],r.Ch++,r;this.Md();var g=this.r,v=fa(a.width)&&fa(a.height),r=g.createTexture();g.bindTexture(g.TEXTURE_2D,r);g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);var p=g.RGBA,n=g.RGBA,h=g.UNSIGNED_BYTE;if(e&&!this.Sd)switch(e){case 1:n=p=g.RGB;break;case 2:h=g.UNSIGNED_SHORT_4_4_4_4;break; +case 3:h=g.UNSIGNED_SHORT_5_5_5_1;break;case 4:n=p=g.RGB,h=g.UNSIGNED_SHORT_5_6_5}if(1===this.version&&!v&&c){e=document.createElement("canvas");e.width=ga(a.width);e.height=ga(a.height);var m=e.getContext("2d");"undefined"!==typeof m.imageSmoothingEnabled?m.imageSmoothingEnabled=f:(m.webkitImageSmoothingEnabled=f,m.mozImageSmoothingEnabled=f,m.msImageSmoothingEnabled=f);m.drawImage(a,0,0,a.width,a.height,0,0,e.width,e.height);g.texImage2D(g.TEXTURE_2D,0,p,n,h,e)}else g.texImage2D(g.TEXTURE_2D,0, +p,n,h,a);c?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE));f?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(v||2<=this.version)&&this.mm?(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_LINEAR),g.generateMipmap(g.TEXTURE_2D)):g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER, +g.LINEAR)):(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST));g.bindTexture(g.TEXTURE_2D,null);this.Vd=null;r.le=a.width;r.ke=a.height;r.Ch=1;r.dm=d;u.push(r);return b[d]=r};e.prototype.Qb=function(a,b,e,c){this.Md();var d=this.r;this.Sd&&(c=!1);var r=d.createTexture();d.bindTexture(d.TEXTURE_2D,r);d.texImage2D(d.TEXTURE_2D,0,d.RGBA,a,b,0,d.RGBA,c?d.UNSIGNED_SHORT_4_4_4_4:d.UNSIGNED_BYTE,null);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S, +d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,d.CLAMP_TO_EDGE);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,e?d.LINEAR:d.NEAREST);d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,e?d.LINEAR:d.NEAREST);d.bindTexture(d.TEXTURE_2D,null);this.Vd=null;r.le=a;r.ke=b;u.push(r);return r};e.prototype.Vt=function(a,b,e){this.Md();var c=this.r;this.Sd&&(e=!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, +e?c.UNSIGNED_SHORT_4_4_4_4:c.UNSIGNED_BYTE,a)}catch(d){console&&console.error&&console.error("Error updating WebGL texture: ",d)}c.bindTexture(c.TEXTURE_2D,null);this.Vd=null};e.prototype.deleteTexture=function(a){a&&("undefined"!==typeof a.Ch&&1=c?a[3]:256>=c?a[2]:512>=c?a[1]:a[0]}function l(){try{return!!window.indexedDB}catch(a){return!1}}function q(a){a.target.result.createObjectStore("saves",{keyPath:"slot"})}function t(a,c,h,d){try{var b=indexedDB.open("_C2SaveStates"); +b.onupgradeneeded=q;b.onerror=d;b.onsuccess=function(b){b=b.target.result;b.onerror=d;b.transaction(["saves"],"readwrite").objectStore("saves").put({slot:a,data:c}).onsuccess=h}}catch(m){d(m)}}function u(a,c,h){try{var d=indexedDB.open("_C2SaveStates");d.onupgradeneeded=q;d.onerror=h;d.onsuccess=function(d){d=d.target.result;d.onerror=h;var b=d.transaction(["saves"]).objectStore("saves").get(a);b.onsuccess=function(){b.result?c(b.result.data):c(null)}}}catch(b){h(b)}}function b(){z("Reloading for continuous preview"); +window.c2cocoonjs?CocoonJS.App.reload():-1m?(m*=c,5===g?(f=m*h/this.Ia,1f&&(f=1/Math.ceil(1/f)),m=this.Ia*f/h,f=this.Ha*f/h,d=(a-m)/2,b=(c-f)/2,a=m,c=f):(d=(a-m)/2,a=m)):(f=a/m,5===g?(f=f*h/this.Ha,1f&&(f=1/Math.ceil(1/f)),m=this.Ia*f/h,f=this.Ha*f/h,d=(a-m)/2,b=(c-f)/2,a=m):b=(c-f)/2,c=f)):this.ji&&this.Bg&&0===this.vm&&(d=Math.floor((a- +this.Ia)/2),b=Math.floor((c-this.Ha)/2),a=this.Ia,c=this.Ha),2>g&&(this.ag=h),this.Ih=Math.round(a),this.ig=Math.round(c),this.width=Math.round(a*h),this.height=Math.round(c*h),this.Z=!0,this.dp?(this.H=this.width,this.G=this.height,this.Tb=!0):this.widthm&&(this.G=this.H/g)):3===g&&(m=this.Ia/this.Ha,g=this.vf/ +this.uf,g>m?this.H=this.G*g:gd;)d++,a=r.shift(),this.vo(a[0],a[1])};e.prototype.Wt=function(a,h){a.cocoonLazyLoad=!0;a.onerror=function(h){c=a.cm=!0;console&&console.error&&console.error("Error loading image '"+a.src+"': ",h)};this.Dc?a.src=h:a.src||("undefined"!==typeof XAPKReader?XAPKReader.get(h,function(c){a.src=c},function(d){c=a.cm=!0;console&&console.error&&console.error("Error extracting image '"+h+"' from expansion file: ", +d)}):(a.crossOrigin="anonymous",this.pt(a,h)));this.Vf.push(a)};e.prototype.Ir=function(a){var c,h;c=0;for(h=this.Vf.length;c=f)f=5E4;a+=f;m.src&&(m.complete||m.loaded)&&!m.cm?c+=f:d=!1}d&&this.kt&&this.bg&&(v||(this.bg.Cv(),v=!0),h=this.bg.mv(),c+=h, +hthis.Yd&&(this.gc||500<=d&&this.gn!=this.Hc)){a.clearRect(0,0,m,g);var d=m/2,g=g/2,m=0===this.Yd&&this.Xd.yi.complete, +e=40*h,n=0,r=80*h,x;if(m){var v=this.Xd.yi,r=v.width*h;x=v.height*h;e=r/2;n=x/2;a.drawImage(v,S(d-e),S(g-n),r,x)}1>=this.Yd?(d=S(d-e)+.5,g=S(g+(n+(m?12*h:0)))+.5,a.fillStyle=c?"red":"DodgerBlue",a.fillRect(d,g,Math.floor(r*this.Hc),6*h),a.strokeStyle="black",a.strokeRect(d,g,r,6*h),a.strokeStyle="white",a.strokeRect(d-1*h,g-1*h,r+2*h,8*h)):2===this.Yd&&(a.font=this.Dc?"12pt ArialMT":"12pt Arial",a.fillStyle=c?"#f00":"#999",a.Ev="middle",h=Math.round(100*this.Hc)+"%",m=a.measureText?a.measureText(h): +null,a.fillText(h,d-(m?m.width:0)/2,g));this.gn=this.Hc}else if(4===this.Yd){this.Tq(a);f?f(function(){b.go()}):setTimeout(function(){b.go()},16);return}}setTimeout(function(){b.go()},this.gc?10:100)}}};var n=-1,h="undefined"===typeof cr_is_preview?200:0,m=!0,x=!1,ka=0,E=0,la="undefined"===typeof cr_is_preview?3E3:0,Q=null,X=null,G=0;e.prototype.Tq=function(a){if(!w){for(var d=Math.ceil(this.width),b=Math.ceil(this.height),g=this.Xd.yi,f=this.Xd.jt,e=this.Xd.Xt,r=0;4>r;++r)if(!g[r].complete||!f[r].complete|| +!e[r].complete)return;0===G&&(n=Date.now());var r=Date.now(),v=!1,k=a,l,t;m||x?(a.clearRect(0,0,d,b),Q&&Q.width===d&&Q.height===b||(Q=document.createElement("canvas"),Q.width=d,Q.height=b,X=Q.getContext("2d")),k=X,v=!0,m&&1===G&&(n=Date.now())):a.globalAlpha=1;k.fillStyle="#333333";k.fillRect(0,0,d,b);256=la&&!x&&1<=this.Hc&&(x=!0,E=r);if(x&&r-E>=300+h||"undefined"!==typeof cr_is_preview&&1<=this.Hc&&500>Date.now()-n)w=!0,x=m=!1,this.Xd=X=Q=null;++G}};e.prototype.ns=function(){this.Wa&&(this.canvas.parentNode.removeChild(this.Wa),this.Wa=this.Rk=null);this.$i=Date.now();this.Ce=Qa();var a,c,h;if(this.zl)for(a=0,c=this.n.length;aa||2===this.tb&&cc&&(c=0),this.oe=c/=1E3,.51/this.In&&(this.oe=1/this.In));this.ni=a;this.cf=this.oe*this.Qf;this.Vb.add(this.cf); +this.rj.add(c);a=(document.mozFullScreen||document.webkitIsFullScreen||document.fullScreen||!!document.msFullscreenElement||this.Bg)&&!this.hc;2<=this.tb||a&&0c||2===d&&ha++;)this.lm(this.me);a=0;for(c=this.kd.length;a< +c;a++)this.kd[a].jk=!1;this.S.re&&this.S.re.Ba();U(this.bh);this.Ec++;a=0;for(c=this.n.length;ac.Lh.length&&c.Lh.push(a)};e.prototype.hm=function(a,c,h,d){if(a.L){var b=S(Math.random()*a.Af.length);return this.hm(a.Af[b],c,h,d)}return a.ec?this.Kd(a.ec,c,!1,h,d,!1):null};var L=[];e.prototype.Kd=function(a,c,h,d,b,m){var g,f,e,n;if(!a)return null; +var r=this.n[a[1]],x=r.ma.Ud;if(this.qf&&x&&!r.sk||x&&!this.u&&11===a[0][11])return null;var v=c;x||(c=null);var k;r.Lh.length?(k=r.Lh.pop(),k.Xb=!0,r.ma.wa.call(k,r)):(k=new r.ma.wa(r),k.Xb=!1);!h||m||this.rd.hasOwnProperty(a[2].toString())?k.uid=this.Ug++:k.uid=a[2];this.rd[k.uid.toString()]=k;k.io=this.Mn++;k.ve=r.i.length;g=0;for(f=this.Bc.length;ga&&(a=0);a>=this.S.K.length&&(a=this.S.K.length-1);return this.S.K[a]};e.prototype.Gj=function(a){var c,h;c=0;for(h=a.length;c=b;)g=1/b,b*=2,a.x+=c*g*(m?1:-1),a.y+=h*g*(m?1:-1),a.p(),this.Mb(a,d)?g=m=!0:(g=m=!1,f=a.x,e=a.y);g&&(a.x=f,a.y=e,a.p())};e.prototype.jo=function(a,c){var h=ea(c)?100:c,d=0,b=a.x,g=a.y,m=0,f=0,e=0,n=this.Za(a);if(!n)return!0;for(;d<=h;){switch(m){case 0:f= +0;e=-1;d++;break;case 1:f=1;e=-1;break;case 2:f=1;e=0;break;case 3:e=f=1;break;case 4:f=0;e=1;break;case 5:f=-1;e=1;break;case 6:f=-1;e=0;break;case 7:e=f=-1}m=(m+1)%8;a.x=S(b+f*d);a.y=S(g+e*d);a.p();if(!this.Mb(a,n)&&(n=this.Za(a),!n))return!0}a.x=b;a.y=g;a.p();return!1};e.prototype.Gf=function(a,c){a.ed&&c.ed&&this.bh.push([a,c])};e.prototype.nq=function(a,c){var h,d,b;h=0;for(d=this.bh.length;hn;n++)if(r=m-n*v,a.x=c+Math.cos(r)*g,a.y=h+Math.sin(r)*g,a.p(),!this.Mb(a,e)&&(e=this.Za(a),!e)){k=r;break}36===n&&(k=Fa(m+oa));e=f;for(n=1;36>n;n++)if(r=m+n*v,a.x=c+Math.cos(r)*g,a.y=h+Math.sin(r)*g,a.p(),!this.Mb(a,e)&&(e=this.Za(a),!e)){x=r;break}36===n&&(x=Fa(m+oa));a.x=d;a.y=b;a.p();if(x===k)return x;a=Ja(x,k)/2;a=La(x,k)?Fa(k+a+oa):Fa(x+a);k=Math.cos(m);m=Math.sin(m); +x=Math.cos(a);a=Math.sin(a);c=k*x+m*a;return Ia(0,0,k-2*c*x,m-2*c*a)};var ha=-1;e.prototype.trigger=function(a,c,h){if(!this.S)return!1;var d=this.S.re;if(!d)return!1;var b=!1,g,m,f;ha++;var e=d.Mj;m=0;for(f=e.length;m=this.Ik.length&&this.Ik.push([])};e.prototype.ht= +function(){this.xi--};e.prototype.ym=function(){return this.Ik[this.xi]};e.prototype.Oi=function(a){this.Oh++;this.Oh>=this.Pj.length&&this.Pj.push(new Gb);var c=this.hb();c.reset(a);return c};e.prototype.Li=function(){this.Oh--};e.prototype.hb=function(){return this.Pj[this.Oh]};e.prototype.zm=function(a,c){for(var h,d,b,g,m,f;c;){h=0;for(d=c.rc.length;hg||g>=a.Da.length||(m=b[d],null===m&&(m=NaN),a.Da[g]=m));if(e.Ud){g=c.w;a.j.P!==g.l&&(b=a.j,a.j=this.S.Zh(g.l),a.j?(b.Hf(a,!0),a.j.$f(a,!0),a.p(),a.j.eh(0)):(a.j=b,h||this.Te(a)));a.x=g.x;a.y=g.y;a.width=g.w;a.height=g.h;a.Nc=g.zi;a.k=g.hasOwnProperty("a")?g.a:0;a.opacity=g.hasOwnProperty("o")?g.o:1;a.Gb=g.hasOwnProperty("hX")? +g.hX:.5;a.Hb=g.hasOwnProperty("hY")?g.hY:.5;a.visible=g.hasOwnProperty("v")?g.v:!0;a.ed=g.hasOwnProperty("ce")?g.ce:!0;a.Tg=g.hasOwnProperty("mts")?g.mts:-1;a.cb=g.hasOwnProperty("bm")?g.bm:0;a.eg=Za(a.cb);this.r&&ab(a,a.cb,this.r);a.p();if(g.hasOwnProperty("fx"))for(h=0,b=g.fx.length;hm||(a.Bd[m]=g.fx[h].active,a.ra[m]=g.fx[h].params);a.Mc()}if(f=c.behs)for(d in f)f.hasOwnProperty(d)&&(h=this.Lr(a,parseInt(d,10)),0>h||a.I[h].ic(f[d]));c.data&&a.ic(c.data)};e.prototype.qm= +function(a,c,h){window.resolveLocalFileSystemURL(cordova.file.applicationDirectory+"www/"+a,function(a){a.file(c,h)},h)};e.prototype.Gr=function(a,c){this.qm("data.js",function(h){var d=new FileReader;d.onload=function(c){a(c.target.result)};d.onerror=c;d.readAsText(h)},c)};var qa=[],I=0;e.prototype.Jk=function(){if(qa.length&&!(8<=I)){I++;var a=qa.shift();this.Aq(a.filename,a.Kt,a.Yq)}};e.prototype.Fr=function(a,c,h){var d=this;qa.push({filename:a,Kt:function(a){I--;d.Jk();c(a)},Yq:function(a){I--; +d.Jk();h(a)}});this.Jk()};e.prototype.Aq=function(a,c,h){this.qm(a,function(a){var h=new FileReader;h.onload=function(a){c(a.target.result)};h.readAsArrayBuffer(a)},h)};e.prototype.Hr=function(a,c,h){var d="",b=a.toLowerCase(),g=b.substr(b.length-4),b=b.substr(b.length-5);".mp4"===g?d="video/mp4":".webm"===b?d="video/webm":".m4a"===g?d="audio/mp4":".mp3"===g&&(d="audio/mpeg");this.Fr(a,function(a){a=URL.createObjectURL(new Blob([a],{type:d}));c(a)},h)};e.prototype.ws=function(a){return/^(?:[a-z]+:)?\/\//.test(a)|| +"data:"===a.substr(0,5)||"blob:"===a.substr(0,5)};e.prototype.vo=function(a,c){this.Qm&&!this.ws(c)?this.Hr(c,function(c){a.src=c},function(a){alert("Failed to load image: "+a)}):a.src=c};e.prototype.Ui=function(a,c){"undefined"!==typeof a.imageSmoothingEnabled?a.imageSmoothingEnabled=c:(a.webkitImageSmoothingEnabled=c,a.mozImageSmoothingEnabled=c,a.msImageSmoothingEnabled=c)};Ib=function(a){return new e(document.getElementById(a))};Jb=function(a,c){return new e({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.xh=!0;document.body.appendChild(a);a=new e(a);window.c2runtime=a;window.addEventListener("orientationchange",function(){window.c2runtime.setSize(window.innerWidth,window.innerHeight)});window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a};window.createEjectaRuntime=function(){var a=new e(document.getElementById("canvas")); +window.c2runtime=a;window.c2runtime.setSize(window.innerWidth,window.innerHeight);return a}})();window.cr_getC2Runtime=function(){var e=document.getElementById("c2canvas");return e?e.c2runtime:window.c2runtime?window.c2runtime:null};window.cr_getSnapshot=function(e,p){var l=window.cr_getC2Runtime();l&&l.wq(e,p)};window.cr_sizeCanvas=function(e,p){if(0!==e&&0!==p){var l=window.cr_getC2Runtime();l&&l.setSize(e,p)}};window.cr_setSuspended=function(e){var p=window.cr_getC2Runtime();p&&p.setSuspended(e)}; +(function(){function e(a,d){this.b=a;this.re=null;this.scrollX=this.b.Ia/2;this.scrollY=this.b.Ha/2;this.scale=1;this.k=0;this.gf=!0;this.name=d[0];this.dt=d[1];this.ct=d[2];this.width=d[1];this.height=d[2];this.So=d[3];this.Ao=d[4];this.P=d[5];var b=d[6],g,f;this.K=[];this.xg=[];g=0;for(f=b.length;g=this.K.length&&(h=this.K.length-1);k.j=this.K[h];-1===k.j.i.indexOf(k)&&k.j.i.push(k);k.j.Se=!0}if(!b)for(a=0,f=this.K.length;af?k.siblings.push(n.i[f]):n.ec&&(e=this.b.Kd(n.ec,k.j,!0,k.x,k.y,!0),this.b.bb(),n.mj(),k.siblings.push(e),u.push(e)));a=0;for(f=this.Qd.length;a< +f;a++)k=this.Qd[a],d=this.b.n[k[1]],d.wb||this.b.Kd(this.Qd[a],null,!0);this.b.me=null;this.b.bb();if(this.b.qa&&!this.b.la)for(a=0,f=this.b.n.length;athis.width- +d&&(a=this.width-d);athis.height-d&&(a=this.height-d);aA&&(A=0);0>F&&(F=0);R>H&&(R=H);N>M&&(N=M);0>B&&(B=0);0>C&&(C=0);sa>H&&(sa=H);ta>M&&(ta=M);I.left=A/H;I.top=1-F/M;I.right=R/H;I.bottom=1-N/M}else I.left=y.left=0,I.top=y.top=0,I.right=y.right=1,I.bottom=y.bottom=1;ma=b&&(a.Yg(f[0].Ca)||0!==u||0!==ma||1!==b.opacity||b.type.ma.Jn)||d&&!b&& +1!==d.opacity;a.qo();if(ma){l[J]||(l[J]=a.Qb(H,M,this.b.ya));if(l[J].le!==H||l[J].ke!==M)a.deleteTexture(l[J]),l[J]=a.Qb(H,M,this.b.ya);a.yb(0);a.qc(l[J]);P=ta-C;a.clearRect(B,M-C-P,sa-B,P);b?b.Sb(a):(a.Yb(this.b.Ea),a.Jf(d.opacity),a.pc(),a.translate(-ha,-qa),a.Zb(),a.ae(A,N,R,N,R,F,A,F,I));y.left=y.top=0;y.right=y.bottom=1;b&&(G=I.top,I.top=I.bottom,I.bottom=G);J=1;L=0}a.Jf(1);u=f.length-1;var $a=a.Wk(f[u].Ca)||!d&&!b&&!this.b.Tb;t=G=0;for(q=f.length;tb||(d&&this.$b&&a.xb&&a.xb.right>=a.xb.left&&(a.V(),this.Xa.update(a,a.xb,null),a.xb.set(0,0,-1,-1)),b===this.i.length-1?this.i.pop():(wa(this.i,b),this.eh(b)),this.Jc=!0)};l.prototype.$f=function(a,d){a.Nc= +this.i.length;this.i.push(a);d&&this.$b&&a.xb&&a.p();this.Jc=!0};l.prototype.lt=function(a){this.i.unshift(a);this.eh(0)};l.prototype.Rs=function(a,d,b){var g=a.Tc();d=d.Tc();wa(this.i,g);gthis.ea||b.top>this.da||(d.globalCompositeOperation=a.eg,a.Rc(d))}};l.prototype.nj=function(){this.jd=!0;var a=this.Sa(0,0,!0,!0),d=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(a=Math.round(a),d=Math.round(d));this.Ri(a, +d,null)};l.prototype.Ri=function(a,d,b){var g=this.ub();this.W=a;this.X=d;this.ea=a+1/g*this.b.H;this.da=d+1/g*this.b.G;this.W>this.ea&&(a=this.W,this.W=this.ea,this.ea=a);this.X>this.da&&(a=this.X,this.X=this.da,this.da=a);a=this.Eb();0!==a&&(b&&(b.translate(this.b.H/2,this.b.G/2),b.rotate(-a),b.translate(this.b.H/-2,this.b.G/-2)),this.wd.set(this.W,this.X,this.ea,this.da),this.wd.offset((this.W+this.ea)/-2,(this.X+this.da)/-2),this.Oo.yo(this.wd,a),this.Oo.$l(this.wd),this.wd.offset((this.W+this.ea)/ +2,(this.X+this.da)/2),this.W=this.wd.left,this.X=this.wd.top,this.ea=this.wd.right,this.da=this.wd.bottom)};l.prototype.bf=function(a){if(this.Yc=this.Vh){this.b.Ea||(this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya));if(this.b.Ea.le!==this.b.H||this.b.Ea.ke!==this.b.G)a.deleteTexture(this.b.Ea),this.b.Ea=a.Qb(this.b.H,this.b.G,this.b.ya);a.qc(this.b.Ea)}this.jd=!0;var d=this.Sa(0,0,!0,!0),b=this.Sa(0,0,!1,!0);this.jd=!1;this.b.sd&&(d=Math.round(d),b=Math.round(b));this.Ri(d,b,null);d=this.ub();a.pc(); +a.scale(d,d);a.Si(-this.Eb());a.translate((this.W+this.ea)/-2,(this.X+this.da)/-2);a.Zb();this.$b?(this.Ua.left=this.Xa.mb(this.W),this.Ua.top=this.Xa.nb(this.X),this.Ua.right=this.Xa.mb(this.ea),this.Ua.bottom=this.Xa.nb(this.da),this.Jc||!this.Ua.kg(this.wf)?(t(this.pd),d=this.ek(),this.Jc=!1,this.wf.fg(this.Ua)):d=this.pd):d=this.i;for(var g,f=null,b=d.length-1;0<=b;--b)g=d[b],g!==f&&(this.Rq(d[b],a),f=g);this.$b&&(this.pd=d);this.Lc||(this.Hj=this.b.pe++,a.Vi(this.Hj),a.ro(1,1,1),a.um(),a.ut())}; +l.prototype.Sb=function(a){var b=0,f=0;if(this.Yc=this.Vh||1!==this.opacity||0this.ea||f.top>this.da||(b.Vi(a.pe),a.bp?this.Sq(a,b):(b.yb(0),b.be(a.jb,a.fb),a.Sb(b)))}};l.prototype.Rq=function(a,b){if(a.visible&&0!==a.width&&0!==a.height){a.V();var f=a.ia;f.rightthis.ea||f.top>this.da||(a.pe=this.b.pe++,0===a.cb&&1===a.opacity&& +a.td&&a.bf&&(b.Vi(a.pe),a.bf(b)))}};l.prototype.Sq=function(a,b){var f=a.R[0].Ca,g=a.R[0].index,e=this.ub();if(1!==a.R.length||b.Wk(f)||b.nt(f)||(a.k||a.j.Eb())&&b.Yg(f)||1!==a.opacity||a.type.ma.Jn)this.Fa.al(b,this,a,this.Yc?this.b.Ea:this.Fa.rg()),b.pc(),b.scale(e,e),b.Si(-this.Eb()),b.translate((this.W+this.ea)/-2,(this.X+this.da)/-2),b.Zb();else{b.yb(f);b.be(a.jb,a.fb);b.Mi(f)&&(this.b.Z=!0);var k=0,n=0,h=0,m=0;b.Yg(f)&&(m=a.ia,k=this.ba(m.left,m.top,!0,!0),n=this.ba(m.left,m.top,!1,!0),h=this.ba(m.right, +m.bottom,!0,!0),m=this.ba(m.right,m.bottom,!1,!0),k=k/windowWidth,n=1-n/windowHeight,h=h/windowWidth,m=1-m/windowHeight);var x;a.Ta&&a.Ta.Ra?(x=a.Ta.Ra,f=1/x.width,x=1/x.height):(f=1/a.width,x=1/a.height);b.Kf(this.Yc?this.b.Ea:this.Fa.rg(),f,x,k,n,h,m,e,this.Eb(),this.W,this.X,(this.W+this.ea)/2,(this.X+this.da)/2,this.b.Vb.oa,a.ra[g]);a.Sb(b)}};l.prototype.Sa=function(a,b,f,g){var e=this.b.devicePixelRatio;this.b.xe&&(a*=e,b*=e);var e=this.b.Xn,k=this.b.Yn,e=(this.Fa.scrollX-e)*this.mc+e,k=(this.Fa.scrollY- +k)*this.nc+k,n=e,h=k,m=1/this.ub(!g);g?(n-=this.b.H*m/2,h-=this.b.G*m/2):(n-=this.b.width*m/2,h-=this.b.height*m/2);n+=a*m;h+=b*m;b=this.Eb();0!==b&&(n-=e,h-=k,a=Math.cos(b),b=Math.sin(b),g=n*a-h*b,h=h*a+n*b,n=g+e,h+=k);return f?n:h};l.prototype.ba=function(a,b,f,g){var e=this.b.Xn,k=this.b.Yn,n=(this.Fa.scrollX-e)*this.mc+e,h=(this.Fa.scrollY-k)*this.nc+k,k=n,e=h,m=this.Eb();if(0!==m){a-=n;b-=h;var x=Math.cos(-m),m=Math.sin(-m),p=a*x-b*m;b=b*x+a*m;a=p+n;b+=h}n=1/this.ub(!g);g?(k-=this.b.H*n/2,e-= +this.b.G*n/2):(k-=this.b.width*n/2,e-=this.b.height*n/2);k=(a-k)/n;e=(b-e)/n;a=this.b.devicePixelRatio;this.b.xe&&!g&&(k/=a,e/=a);return f?k:e};l.prototype.Kb=function(){var a,b,f,g={s:this.scale,a:this.k,vl:this.W,vt:this.X,vr:this.ea,vb:this.da,v:this.visible,bc:this.zc,t:this.Lc,px:this.mc,py:this.nc,o:this.opacity,zr:this.Oc,fx:[],cg:this.hg,instances:[]};a=0;for(b=this.J.length;aa[1].index&&(b=a[0],a[0]=a[1],a[1]=b):2=v.length&&(v.length=a.length+1);v[a.length]||(v[a.length]=[]);g=v[a.length];b=0;for(c=g.length;b=b.length&&(b.length=this.He+1),b[this.He]=a):this.data=a};d.prototype.bi=function(){var a=this.b.ym();return!this.parent||this.Eg||!a||this.ki?this.data:this.He>=a.length||"undefined"===typeof a[this.He]?this.ei:a[this.He]};d.prototype.Ba=function(){!this.parent||this.Eg||this.ki||this.Oe(this.ei)};Hb=d;r.prototype.toString=function(){return"include:"+this.wg.toString()};r.prototype.za=function(){this.wg=this.b.Qj[this.rs];this.sheet.Gm.add(this); +this.na=l(this.na);for(var a=this.parent;a;)a.group&&a.Hh.push(this),a=a.parent;this.Vo()};r.prototype.Ba=function(){this.parent&&this.b.$g(this.b.n);this.wg.jk||this.wg.Ba(!0);this.parent&&this.b.Ke(this.b.n)};r.prototype.Vo=function(){for(var a=this.parent;a;){if(a.group&&!a.tg){this.Ob=!1;return}a=a.parent}this.Ob=!0};Rb=r;g.prototype.reset=function(a){this.Rb=a;this.ac=this.La=0;U(this.Ho);this.Nj=this.Be=!1};Gb=g})(); +(function(){function e(b,a){this.lc=b;this.b=b.b;this.type=a[0];this.get=[this.or,this.kr,this.Ar,this.Dr,this.Zq,this.Br,this.sr,this.hr,this.rr,this.yr,this.$q,this.xr,this.ir,this.tr,this.pr,this.qr,this.lr,this.mr,this.gr,this.Cr,this.ur,this.nr,this.fr,this.jr][this.type];var f=null;this.qd=this.N=this.ta=this.Va=this.hj=this.second=this.first=this.value=null;this.Ac=-1;this.Cc=null;this.cp=-1;this.se=this.ph=null;this.If=!1;switch(this.type){case 0:case 1:case 2:this.value=a[1];break;case 3:this.first= +new Pb(b,a[1]);break;case 18:this.first=new Pb(b,a[1]);this.second=new Pb(b,a[2]);this.hj=new Pb(b,a[3]);break;case 19:this.Va=this.b.Ad(a[1]);this.Va!==Y.prototype.gb.random&&this.Va!==Y.prototype.gb.oq||this.lc.wo();this.ta=[];this.N=[];3===a.length?(f=a[2],this.ta.length=f.length+1):this.ta.length=1;break;case 20:this.qd=this.b.n[a[1]];this.Ac=-1;this.Va=this.b.Ad(a[2]);this.If=a[3];Tb.Function&&this.Va===Tb.Function.prototype.gb.eu&&this.lc.wo();a[4]?this.Cc=new Pb(b,a[4]):this.Cc=null;this.ta= +[];this.N=[];6===a.length?(f=a[5],this.ta.length=f.length+1):this.ta.length=1;break;case 21:this.qd=this.b.n[a[1]];this.If=a[2];a[3]?this.Cc=new Pb(b,a[3]):this.Cc=null;this.cp=a[4];break;case 22:this.qd=this.b.n[a[1]];this.qd.Xh(a[2]);this.Ac=this.qd.Yj(a[2]);this.Va=this.b.Ad(a[3]);this.If=a[4];a[5]?this.Cc=new Pb(b,a[5]):this.Cc=null;this.ta=[];this.N=[];7===a.length?(f=a[6],this.ta.length=f.length+1):this.ta.length=1;break;case 23:this.ph=a[1],this.se=null}this.lc.Qs(this.qd);4<=this.type&&17>= +this.type&&(this.first=new Pb(b,a[1]),this.second=new Pb(b,a[2]));if(f){var e,c;e=0;for(c=f.length;e=a||t<=-a)t%=a;0>t&&(t+=a);d.apply(v[t],f)};e.prototype.fr=function(b){var a=this.qd,f=this.ta,e=this.N,c=this.Cc,d=this.Ac,t=this.Va,g=this.lc.ud,v=a.Q(),q=v.Fb();if(!q.length)if(v.O.length)q=v.O;else{this.If?b.Ya(""):b.ca(0);return}f[0]=b;b.Je=a;b=p();l(e,f,b);c&&(c.get(b),b.Pa()&&(g=b.data,q=a.i));--u;e=q.length;if(g>=e||g<=-e)g%=e;0>g&&(g+=e);g=q[g];q=0;a.L&&(q=g.type.ff[a.ld]);t.apply(g.I[d+q],f)};e.prototype.nr=function(b){var a=this.Cc,f=this.qd,e=this.cp,c=this.lc.ud, +d=f.Q(),l=d.Fb();if(!l.length)if(d.O.length)l=d.O;else{this.If?b.Ya(""):b.ca(0);return}if(a){d=p();a.get(d);if(d.Pa()){c=d.data;l=f.i;0!==l.length&&(c%=l.length,0>c&&(c+=l.length));c=f.ck(c);f=c.Da[e];O(f)?b.Ya(f):b.F(f);--u;return}--u}a=l.length;if(c>=a||c<=-a)c%=a;0>c&&(c+=a);c=l[c];l=0;f.L&&(l=c.type.Ph[f.ld]);f=c.Da[e+l];O(f)?b.Ya(f):b.F(f)};e.prototype.or=function(b){b.type=W.Ve;b.data=this.value};e.prototype.kr=function(b){b.type=W.Ue;b.data=this.value};e.prototype.Ar=function(b){b.type=W.String; +b.data=this.value};e.prototype.Dr=function(b){this.first.get(b);b.Pa()&&(b.data=-b.data)};e.prototype.Zq=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data+=a.data,a.nf()&&b.yf());--u};e.prototype.Br=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data-=a.data,a.nf()&&b.yf());--u};e.prototype.sr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data*=a.data,a.nf()&&b.yf());--u};e.prototype.hr=function(b){this.first.get(b); +var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data/=a.data,b.yf());--u};e.prototype.rr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data%=a.data,a.nf()&&b.yf());--u};e.prototype.yr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data=Math.pow(b.data,a.data),a.nf()&&b.yf());--u};e.prototype.$q=function(b){this.first.get(b);var a=p();this.second.get(a);a.pf()||b.pf()?this.cr(b,a):this.br(b,a);--u};e.prototype.cr=function(b,a){b.pf()&& +a.pf()?this.er(b,a):this.dr(b,a)};e.prototype.er=function(b,a){b.data+=a.data};e.prototype.dr=function(b,a){b.pf()?b.data+=(Math.round(1E10*a.data)/1E10).toString():b.Ya(b.data.toString()+a.data)};e.prototype.br=function(b,a){b.ca(b.data&&a.data?1:0)};e.prototype.xr=function(b){this.first.get(b);var a=p();this.second.get(a);b.Pa()&&a.Pa()&&(b.data||a.data?b.ca(1):b.ca(0));--u};e.prototype.gr=function(b){this.first.get(b);b.data?this.second.get(b):this.hj.get(b)};e.prototype.ir=function(b){this.first.get(b); +var a=p();this.second.get(a);b.ca(b.data===a.data?1:0);--u};e.prototype.tr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.data!==a.data?1:0);--u};e.prototype.pr=function(b){this.first.get(b);var a=p();this.second.get(a);b.ca(b.dataa.data?1:0);--u};e.prototype.mr=function(b){this.first.get(b); +var a=p();this.second.get(a);b.ca(b.data>=a.data?1:0);--u};e.prototype.jr=function(b){var a=this.se.bi();D(a)?b.F(a):b.Ya(a)};Pb=e;q.prototype.nf=function(){return this.type===W.Ue};q.prototype.Pa=function(){return this.type===W.Ve||this.type===W.Ue};q.prototype.pf=function(){return this.type===W.String};q.prototype.yf=function(){this.nf()||(this.pf()&&(this.data=parseFloat(this.data)),this.type=W.Ue)};q.prototype.ca=function(b){this.type=W.Ve;this.data=Math.floor(b)};q.prototype.F=function(b){this.type= +W.Ue;this.data=b};q.prototype.Ya=function(b){this.type=W.String;this.data=b};q.prototype.Gt=function(b){D(b)?(this.type=W.Ue,this.data=b):O(b)?(this.type=W.String,this.data=b.toString()):(this.type=W.Ve,this.data=0)};Ob=q;W={Ve:0,Ue:1,String:2}})();function Y(e){this.b=e;this.Nb=[]} +Y.prototype.Kb=function(){var e={},p,l,q,t,u,b,a,f;e.waits=[];var k=e.waits,c;p=0;for(l=this.Nb.length;p=f+c)return a.C.Every_lastTime=f+c,e>=a.C.Every_lastTime+.04&&(a.C.Every_lastTime=e),a.C.Every_seconds= +b,!0;eb&&(b=0);this.b.Qf=b};var t=[],u=[];p.prototype.Np=function(){var b,a,f;b=0;for(a=this.b.uj.length;bc&&(a=c);b.F(a)};l.prototype.cf=function(b){b.F(this.b.cf)};l.prototype.Qf=function(b){b.F(this.b.Qf)};l.prototype.time=function(b){b.F(this.b.Vb.oa)};l.prototype.ad=function(b){b.ca(this.b.ad)}; +l.prototype.Fi=function(b){b.ca(this.b.Fi)};l.prototype.Vj=function(b){b.ca(this.b.Vj)};l.prototype.k=function(b,a,f,e,c){b.F(Da(Ia(a,f,e,c)))};l.prototype.Ks=function(b){b.ca(this.b.S.width)};l.prototype.Js=function(b){b.ca(this.b.S.height)};l.prototype.left=function(b,a,f){b.Ya(O(a)?a.substr(0,f):"")};l.prototype.right=function(b,a,f){b.Ya(O(a)?a.substr(a.length-f):"")};l.prototype.replace=function(b,a,f,e){O(a)&&O(f)&&O(e)?b.Ya(a.replace(new RegExp(Va(f),"gi"),e)):b.Ya(O(a)?a:"")};l.prototype.trim= +function(b,a){b.Ya(O(a)?a.trim():"")};l.prototype.oq=function(b){var a=S(Math.random()*(arguments.length-1));b.Gt(arguments[a+1])};l.prototype.Ij=function(b){b.F(this.b.Ij/1E3)};l.prototype.vi=function(b){b.F(this.b.vi)};q.gb=new l;q.yt=function(){var b,a,f,e,c,d,l=this.b.hb();b=0;for(f=this.Nb.length;bthis.b.Vb.oa)continue;l.Rb=e.lg;l.ac=e.ac;l.La=0;for(a in e.Lb)e.Lb.hasOwnProperty(a)&&(c=this.b.n[parseInt(a,10)].Q(),d=e.Lb[a], +c.aa=d.no,ya(c.i,d.we),c=d,U(c.we),u.push(c));e.lg.wt();this.b.Gj(e.na);e.km=!0}a=b=0;for(f=this.Nb.length;ba.ea||b.top>a.da)},c.su=function(){this.V();var a=this.ia,b=this.b.S;return 0>a.right||0>a.bottom||a.left>b.width||a.top>b.height},c.Eu=function(a,b,c){var d=this.Q(), +h=d.Fb();if(!h.length)return!1;var f=h[0],e=f,k=Ma(f.x,f.y,b,c),l,p,t;l=1;for(p=h.length;lk)k=t,e=f;d.Xg(e);return!0},d.Xu=function(a){this.x!==a&&(this.x=a,this.p())},d.Yu=function(a){this.y!==a&&(this.y=a,this.p())},d.Tu=function(a,b){if(this.x!==a||this.y!==b)this.x=a,this.y=b,this.p()},d.Uu=function(a,b){var c=a.Sr(this);if(c){var d;c.bk?(d=c.bk(b,!0),c=c.bk(b,!1)):(d=c.x,c=c.y);if(this.x!==d||this.y!==c)this.x=d,this.y=c,this.p()}},d.xu= +function(a){0!==a&&(this.x+=Math.cos(this.k)*a,this.y+=Math.sin(this.k)*a,this.p())},d.wu=function(a,b){0!==b&&(this.x+=Math.cos(V(a))*b,this.y+=Math.sin(V(a))*b,this.p())},r.Xp=function(a){a.F(this.x)},r.Yp=function(a){a.F(this.y)},r.cf=function(a){a.F(this.b.Yh(this))});u&&(c.iu=function(a,b){return Sb(this.width,a,b)},c.fu=function(a,b){return Sb(this.height,a,b)},d.Rp=function(a){this.width!==a&&(this.width=a,this.p())},d.Qu=function(a){this.height!==a&&(this.height=a,this.p())},d.Vu=function(a, +b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.p()},r.bv=function(a){a.F(this.width)},r.nu=function(a){a.F(this.height)},r.bu=function(a){this.V();a.F(this.ia.left)},r.du=function(a){this.V();a.F(this.ia.top)},r.cu=function(a){this.V();a.F(this.ia.right)},r.au=function(a){this.V();a.F(this.ia.bottom)});b&&(c.fp=function(a,b){return Ja(this.k,V(b))<=V(a)},c.op=function(a){return La(this.k,V(a))},c.np=function(a,b){var c=Ha(a),d=Ha(b),h=Fa(this.k);return La(d,c)?La(h,c)&&!La(h, +d):!(!La(h,c)&&La(h,d))},d.Mu=function(a){a=V(Ea(a));isNaN(a)||this.k===a||(this.k=a,this.p())},d.Iu=function(a){0===a||isNaN(a)||(this.k+=V(a),this.k=Fa(this.k),this.p())},d.Ju=function(a){0===a||isNaN(a)||(this.k-=V(a),this.k=Fa(this.k),this.p())},d.Ku=function(a,b){var c=Ka(this.k,V(b),V(a));isNaN(c)||this.k===c||(this.k=c,this.p())},d.Lu=function(a,b,c){a=Ka(this.k,Math.atan2(c-this.y,b-this.x),V(a));isNaN(a)||this.k===a||(this.k=a,this.p())},d.Wu=function(a,b){var c=Math.atan2(b-this.y,a-this.x); +isNaN(c)||this.k===c||(this.k=c,this.p())},r.$t=function(a){a.F(Ga(this.k))});q||(c.gu=function(a,b,c){return Sb(this.Da[a],b,c)},c.pu=function(a){return this.Da[a]},c.Fu=function(a,b){var c=this.Q(),d=c.Fb();if(!d.length)return!1;var h=d[0],f=h,e=h.Da[b],k,l,p;k=1;for(l=d.length;ke)e=p,f=h;c.Xg(f);return!0},c.Du=function(a){var b,c,d,f,e;if(this.b.Zj().ok){e=this.Q();if(e.aa)for(e.aa=!1,U(e.i),U(e.O),d=this.i,b=0,c=d.length;ba?a=0:1f.j.index||d.j.index===f.j.index&&d.Tc()>f.Tc())f=d}else if(d.j.indexc)){var d=1===a;this.Bd[c]!==d&&(this.Bd[c]=d,this.Mc(),this.b.Z=!0)}}},d.Pu=function(a,b,c){if(this.b.u){var d=this.type.ak(a);0>d||(a=this.type.J[d],d=this.ra[d],b=Math.floor(b),0>b||b>=d.length||(1===this.b.u.Vr(a.Ca,b)&&(c/=100),d[b]!==c&&(d[b]=c,a.Ob&&(this.b.Z=!0))))}})};yb=function(){this.Bj=this.xj=!0;this.type.vh=!0;this.b.Z=!0;var e,l,q=this.yj;e=0;for(l=q.length;eq;case 5:return e>=q;default:return!1}}})();var ac={};function ec(e){this.b=e} +(function(){function e(){}function p(){}var l=ec.prototype;l.Ka=function(e){this.ma=e;this.b=e.b};l.Ka.prototype.Y=function(){};l.wa=function(e){this.type=e;this.b=e.b};var q=l.wa.prototype;q.Y=function(){this.b.la?z("[Construct 2] Button plugin not supported on this platform - the object will not be created"):(this.kf=1===this.D[0],this.fc=document.createElement("input"),this.U=this.kf?document.createElement("label"):this.fc,this.Hg=null,this.fc.type=this.kf?"checkbox":"button",this.fc.id=this.D[6], +jQuery(this.U).appendTo(this.b.Fh?this.b.Fh:"body"),this.kf?(jQuery(this.fc).appendTo(this.U),this.Hg=document.createTextNode(this.D[1]),jQuery(this.U).append(this.Hg),this.fc.checked=0!==this.D[7],jQuery(this.U).css("font-family","sans-serif"),jQuery(this.U).css("display","inline-block"),jQuery(this.U).css("color","black")):this.fc.value=this.D[1],this.U.title=this.D[2],this.fc.disabled=0===this.D[4],this.fq=0!==this.D[5],this.qe=!1,0===this.D[3]&&(jQuery(this.U).hide(),this.visible=!1,this.qe=!0), +this.fc.onclick=function(e){return function(l){l.stopPropagation();e.b.Vc=!0;e.b.trigger(ec.prototype.m.El,e);e.b.Vc=!1}}(this),this.U.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.U.addEventListener("touchmove",function(e){e.stopPropagation()},!1),this.U.addEventListener("touchend",function(e){e.stopPropagation()},!1),jQuery(this.U).mousedown(function(e){e.stopPropagation()}),jQuery(this.U).mouseup(function(e){e.stopPropagation()}),jQuery(this.U).keydown(function(e){e.stopPropagation()}), +jQuery(this.U).keyup(function(e){e.stopPropagation()}),this.cn=this.dn=this.Wm=this.$m=this.bn=this.Ym=0,this.Zo(!0),this.b.nl(this))};q.Kb=function(){var e={tooltip:this.U.title,disabled:!!this.fc.disabled};this.kf?(e.checked=!!this.fc.checked,e.text=this.Hg.nodeValue):e.text=this.U.value;return e};q.ic=function(e){this.U.title=e.tooltip;this.fc.disabled=e.disabled;this.kf?(this.fc.checked=e.checked,this.Hg.nodeValue=e.text):this.U.value=e.text};q.Df=function(){this.b.la||(jQuery(this.U).remove(), +this.U=null)};q.tc=function(){this.Zo()};q.Zo=function(e){if(!this.b.la){var l=this.j.ba(this.x,this.y,!0),b=this.j.ba(this.x,this.y,!1),a=this.j.ba(this.x+this.width,this.y+this.height,!0),f=this.j.ba(this.x+this.width,this.y+this.height,!1),k=this.b.width/this.b.devicePixelRatio,c=this.b.height/this.b.devicePixelRatio;!this.visible||!this.j.visible||0>=a||0>=f||l>=k||b>=c?(this.qe||jQuery(this.U).hide(),this.qe=!0):(1>l&&(l=1),1>b&&(b=1),a>=k&&(a=k-1),f>=c&&(f=c-1),k=window.innerWidth,c=window.innerHeight, +e||this.Ym!==l||this.bn!==b||this.$m!==a||this.Wm!==f||this.dn!==k||this.cn!==c?(this.Ym=l,this.bn=b,this.$m=a,this.Wm=f,this.dn=k,this.cn=c,this.qe&&(jQuery(this.U).show(),this.qe=!1),e=Math.round(l)+jQuery(this.b.canvas).offset().left,k=Math.round(b)+jQuery(this.b.canvas).offset().top,jQuery(this.U).css("position","absolute"),jQuery(this.U).offset({left:e,top:k}),jQuery(this.U).width(Math.round(a-l)),jQuery(this.U).height(Math.round(f-b)),this.fq&&jQuery(this.U).css("font-size",this.j.ub(!0)/this.b.devicePixelRatio- +.2+"em")):this.qe&&(jQuery(this.U).show(),this.qe=!1))}};q.Rc=function(){};q.Sb=function(){};e.prototype.El=function(){return!0};l.m=new e;p.prototype.Nl=function(e){this.b.la||(this.kf?this.Hg.nodeValue=e:this.U.value=e)};p.prototype.Ol=function(e){this.b.la||(this.visible=0!==e)};l.xa=new p;l.gb=new function(){}})();function dc(e){this.b=e} +(function(){function e(){if(0===this.Lj.length){var a=document.createElement("canvas");a.width=this.width;a.height=this.height;var b=a.getContext("2d");this.Mf?b.drawImage(this.Ra,this.Bf,this.Cf,this.width,this.height,0,0,this.width,this.height):b.drawImage(this.Ra,0,0,this.width,this.height);this.Lj=a.toDataURL("image/png")}return this.Lj}function p(){}function l(a){a[0]=0;a[1]=0;a[2]=0;d.push(a)}function q(a,b){return athis.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);var a=this.ja.frames[this.B];this.T.gh(a.Ki);this.Gb=a.Gb;this.Hb=a.Hb;this.Ye=this.ja.speed;this.Ld=this.ja.cl;1===this.type.Bb.length&&1===this.type.Bb[0].frames.length||0===this.Ye||this.b.nl(this);this.Xb?this.Pc.reset():this.Pc=new Ua;this.md=this.Pc.oa;this.ie=!0;this.cd=0;this.he=!0;this.Fj=this.Vl="";this.mq=0;this.Ej=-1;this.type.Ms();var b,c,d,f,e,g,k,a=0;for(b=this.type.Bb.length;athis.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);this.Ye=a.cas;this.md=a.fs;this.cd=a.ar;this.Pc.reset();this.Pc.oa=a.at;this.ie=a.hasOwnProperty("ap")?a.ap:!0;this.he=a.hasOwnProperty("af")?a.af:!0;a.hasOwnProperty("rt")?this.Ld=a.rt:this.Ld=this.ja.cl;this.Ta=this.ja.frames[this.B];this.Jh=this.Ta.yd;this.T.gh(this.Ta.Ki);this.Gb=this.Ta.Gb;this.Hb=this.Ta.Hb};c.wj=function(a){this.B= +a?0:this.ja.frames.length-1;this.ie=!1;this.Vl=this.ja.name;this.b.trigger(dc.prototype.m.vp,this);this.b.trigger(dc.prototype.m.up,this);this.cd=0};c.xh=function(){return this.Pc.oa};c.tc=function(){this.Pc.add(this.b.Yh(this));this.Fj.length&&this.xq();0<=this.Ej&&this.yq();var a=this.Pc.oa,b=this.ja,c=b.frames[this.B],d=c.duration/this.Ye;this.ie&&a>=this.md+d&&(this.he?this.B++:this.B--,this.md+=d,this.B>=b.frames.length&&(b.Zn?(this.he=!1,this.B=b.frames.length-2):b.loop?this.B=this.Ld:(this.cd++, +this.cd>=b.bl?this.wj(!1):this.B=this.Ld)),0>this.B&&(b.Zn?(this.B=1,this.he=!0,b.loop||(this.cd++,this.cd>=b.bl&&this.wj(!0))):b.loop?this.B=this.Ld:(this.cd++,this.cd>=b.bl?this.wj(!0):this.B=this.Ld)),0>this.B?this.B=0:this.B>=b.frames.length&&(this.B=b.frames.length-1),a>this.md+b.frames[this.B].duration/this.Ye&&(this.md=a),a=b.frames[this.B],this.We(c,a),this.b.Z=!0)};c.wm=function(a){var b,c,d;b=0;for(c=this.type.Bb.length;bthis.B&&(this.B=0),this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1),1===this.mq&&(this.B=0),this.ie=!0,this.md=this.Pc.oa,this.he=!0,this.We(a,this.ja.frames[this.B]),this.b.Z=!0)};c.yq=function(){var a=this.ja.frames[this.B], +b=this.B;this.B=S(this.Ej);0>this.B&&(this.B=0);this.B>=this.ja.frames.length&&(this.B=this.ja.frames.length-1);b!==this.B&&(this.We(a,this.ja.frames[this.B]),this.md=this.Pc.oa,this.b.Z=!0);this.Ej=-1};c.We=function(a,b){var c=a.width,d=a.height,f=b.width,e=b.height;c!=f&&(this.width*=f/c);d!=e&&(this.height*=e/d);this.Gb=b.Gb;this.Hb=b.Hb;this.T.gh(b.Ki);this.p();this.Ta=b;this.Jh=b.yd;c=0;for(d=this.I.length;cf||f>=d.length)return b?this.x:this.y;var e=(d[f][1]-c.Gb)*this.width,d=d[f][2],d=(d-c.Hb)*this.height,c=Math.cos(this.k);f=Math.sin(this.k);var g=e*c-d*f,d=d*c+e*f,e=g+this.x,d=d+this.y;return b?e:d};var d=[],r=-2,g=[];p.prototype.xp=function(a){if(!a)return!1;var c=this.b,d=c.Zj(),f=d.type,e=null;d.C.collmemory?e=d.C.collmemory:(e={},d.C.collmemory=e); +d.C.spriteCreatedDestroyCallback||(d.C.spriteCreatedDestroyCallback=!0,c.Tl(function(a){var b=d.C.collmemory;a=a.uid;var c,f;for(c in b)b.hasOwnProperty(c)&&(f=b[c],f[0]===a||f[1]===a)&&(l(b[c]),delete b[c])}));var k=f.Q(),p=a.Q(),k=k.Fb(),q,v,w,J,L,K,P,H=this.b.ad,M=H-1,ha=c.hb().Rb;for(v=0;va.ea||b.top>a.da)this.b.u.deleteTexture(this.Ib),this.Wc=this.Ie=this.Ib=null}};u.Df=function(){this.Wc=this.Ie=null;this.b.u&&this.Ib&& +this.b.u.deleteTexture(this.Ib);this.Ib=null};u.xh=function(){this.font=this.Uh+" "+this.Zg.toString()+"pt "+this.df;this.Re=!0;this.b.Z=!0};u.Rc=function(a,b){a.font=this.font;a.textBaseline="top";a.fillStyle=this.color;a.globalAlpha=b?1:this.opacity;var c=1;b&&(c=Math.abs(this.j.ub()),a.save(),a.scale(c,c));if(this.Re||this.width!==this.Ak)this.type.ma.Vp(this.text,this.Wd,a,this.width,this.Al),this.Re=!1,this.Ak=this.width;this.V();var c=b?0:this.qb.$a,d=b?0:this.qb.ab;this.b.sd&&(c=c+.5|0,d=d+ +.5|0);0===this.k||b||(a.save(),a.translate(c,d),a.rotate(this.k),d=c=0);var e=d+this.height,g=this.Yk,g=g+this.Ck,l,p;1===this.oj?d+=Math.max(this.height/2-this.Wd.length*g/2,0):2===this.oj&&(d+=Math.max(this.height-this.Wd.length*g-2,0));for(p=0;p=e-g);p++);(0!==this.k||b)&&a.restore();this.Jg=this.b.ad};u.Sb=function(a){if(!(1>this.width|| +1>this.height)){var b=this.Re||this.Ln;this.Ln=!1;var c=this.j.ub(),d=this.j.Eb(),e=this.Ff,g=c*this.width,l=c*this.height,p=Math.ceil(g),n=Math.ceil(l),h=Math.abs(p),m=Math.abs(n),t=this.b.H/2,q=this.b.G/2;this.Ie||(this.Wc=document.createElement("canvas"),this.Wc.width=h,this.Wc.height=m,this.pi=h,this.oi=m,b=!0,this.Ie=this.Wc.getContext("2d"));if(h!==this.pi||m!==this.oi)this.Wc.width=h,this.Wc.height=m,this.Ib&&(a.deleteTexture(this.Ib),this.Ib=null),b=!0;b&&(this.Ie.clearRect(0,0,h,m),this.Rc(this.Ie, +!0),this.Ib||(this.Ib=a.Qb(h,m,this.b.ya,this.b.Td)),a.Vt(this.Wc,this.Ib,this.b.Td));this.pi=h;this.oi=m;a.Yb(this.Ib);a.Jf(this.opacity);a.pc();a.translate(-t,-q);a.Zb();var u=this.qb,b=this.j.ba(u.$a,u.ab,!0,!0),h=this.j.ba(u.$a,u.ab,!1,!0),m=this.j.ba(u.zb,u.Ab,!0,!0),t=this.j.ba(u.zb,u.Ab,!1,!0),q=this.j.ba(u.rb,u.sb,!0,!0),la=this.j.ba(u.rb,u.sb,!1,!0),Q=this.j.ba(u.ob,u.pb,!0,!0),u=this.j.ba(u.ob,u.pb,!1,!0);if(this.b.sd||0===this.k&&0===d)var X=(b+.5|0)-b,G=(h+.5|0)-h,b=b+X,h=h+G,m=m+X,t= +t+G,q=q+X,la=la+G,Q=Q+X,u=u+G;0===this.k&&0===d?(m=b+p,t=h,q=m,la=h+n,Q=b,u=la,e.right=1,e.bottom=1):(e.right=g/p,e.bottom=l/n);a.ae(b,h,m,t,q,la,Q,u,e);a.pc();a.scale(c,c);a.Si(-this.j.Eb());a.translate((this.j.W+this.j.ea)/-2,(this.j.X+this.j.da)/-2);a.Zb();this.Jg=this.b.ad}};var b=[];t.Up=function(a){U(b);for(var e="",c,d=0;d=d)p(b);else{if(100>=a.length&&-1===a.indexOf("\n")){var g=c.measureText(a).width;if(g<=d){p(b);b.push(e());b[0].text=a;b[0].width=g;return}}this.Wp(a,b,c,d,l)}else p(b)};t.Wp=function(f,k,c,d,p){p&&(this.Up(f),f=b);var g="",t,q,n,h=0;for(n=0;n=k.length&&k.push(e()),g=l(g),q=k[h],q.text=g,q.width=c.measureText(g).width,h++,g=""):(t= +g,g+=f[n],q=c.measureText(g).width,q>=d&&(h>=k.length&&k.push(e()),t=l(t),q=k[h],q.text=t,q.width=c.measureText(t).width,h++,g=f[n],p||" "!==g||(g="")));g.length&&(h>=k.length&&k.push(e()),g=l(g),q=k[h],q.text=g,q.width=c.measureText(g).width,h++);for(n=h;na&&(a=Math.round(1E10*a)/1E10);a=a.toString();this.text!==a&&(this.text=a,this.Re=!0,this.b.Z=!0)};t.xa=new q;t.gb=new function(){}})(); +function Z(e){this.b=e} +(function(){function e(a){k=a.x;c=a.y;d=a.z}function p(a,b,c,d){var e;e=r.length?r.pop():new l;e.init(a,b,c,d);return e}function l(){this.kh=this.id=this.Ee=this.De=this.y=this.x=this.bj=this.aj=this.zk=this.time=this.kl=0;this.nh=this.kj=!1}function q(a){return a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents||a.originalEvent&&a.originalEvent.sourceCapabilities&&a.originalEvent.sourceCapabilities.firesTouchEvents}function t(){}function u(){}var b=Z.prototype;b.Ka=function(a){this.ma=a; +this.b=a.b};b.Ka.prototype.Y=function(){};b.wa=function(a){this.type=a;this.b=a.b;this.touches=[];this.Kk=!1};var a=b.wa.prototype,f={left:0,top:0};a.pg=function(a){var b,c;b=0;for(c=this.touches.length;bMa(this.aj,this.bj,this.x,this.y)&&(this.kj=!0,a.bd=this.kh,a.Rf=this.id,a.jf=b,a.b.trigger(Z.prototype.m.Cp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Dp,a),a.jf=0)};var g=-1E3,v=-1E3,w=-1E4;l.prototype.Fn=function(a, +b){if(!this.kj){var c=Qa();333>=c-this.kl&&!this.nh&&15>Ma(this.aj,this.bj,this.x,this.y)&&(a.bd=this.kh,a.Rf=this.id,a.jf=b,666>=c-w&&25>Ma(g,v,this.x,this.y)?(a.b.trigger(Z.prototype.m.zp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Ap,a),v=g=-1E3,w=-1E4):(a.b.trigger(Z.prototype.m.Lp,a),a.gd=this.x,a.hd=this.y,a.b.trigger(Z.prototype.m.Mp,a),g=this.x,v=this.y,w=c),a.jf=0)}};a.Y=function(){this.Es=!("undefined"===typeof window.c2isWindows8||!window.c2isWindows8);this.jf=this.Rf=this.bd= +this.hd=this.gd=this.Rl=this.Ql=this.Pl=this.aq=this.$p=this.Zp=this.Ji=this.Ii=this.Hi=0;this.Tt=0!==this.D[0];var a=0c-b.time||b.update(c,a.pageX-d.left,a.pageY-d.top,a.width||0,a.height||0,a.pressure||0)}}};a.Sn=function(a){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.la?f:jQuery(this.b.canvas).offset(),c=a.pageX-b.left,b=a.pageY-b.top;Qa(); +this.bd=this.touches.length;this.Rf=a.pointerId;this.touches.push(p(c,b,a.pointerId,this.bd));this.b.Vc=!0;this.b.trigger(Z.prototype.m.Il,this);this.b.trigger(Z.prototype.m.Ml,this);this.gd=c;this.hd=b;this.b.trigger(Z.prototype.m.Ll,this);this.b.Vc=!1}};a.Gi=function(a,b){if(a.pointerType!==a.MSPOINTER_TYPE_MOUSE&&"mouse"!==a.pointerType){a.preventDefault&&db(a)&&a.preventDefault();var c=this.pg(a.pointerId);this.bd=0<=c?this.touches[c].kh:-1;this.Rf=0<=c?this.touches[c].id:-1;this.b.Vc=!0;this.b.trigger(Z.prototype.m.Hl, +this);this.b.trigger(Z.prototype.m.Kl,this);0<=c&&(b||this.touches[c].Fn(this,c),100>r.length&&r.push(this.touches[c]),this.touches.splice(c,1));this.b.Vc=!1}};a.Un=function(a){a.preventDefault&&a.preventDefault();var b=Qa(),c,d,e,g;c=0;for(d=a.changedTouches.length;cb-g.time||g.update(b,e.pageX-k.left,e.pageY-k.top,2*(e.xv||e.Hv||e.rv||e.uv||0),2*(e.yv||e.Iv||e.sv||e.vv|| +0),e.jv||e.Gv||e.qv||e.tv||0)}};a.Vn=function(a){a.preventDefault&&db(a)&&a.preventDefault();var b=this.b.la?f:jQuery(this.b.canvas).offset();Qa();this.b.Vc=!0;var c,d,e,g;c=0;for(d=a.changedTouches.length;cr.length&&r.push(this.touches[e]),this.touches.splice(e,1));this.b.Vc=!1};a.xh=function(){return this.b.hc&&0===this.Hi&&0!==d?90*d:this.Hi}; +a.iv=function(){return this.b.hc&&0===this.Ii&&0!==c?90*c:this.Ii};a.ov=function(){return this.b.hc&&0===this.Ji&&0!==k?90*k:this.Ji};a.Ys=function(a){q(a)||(this.Vn({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}),this.Kk=!0)};a.Zs=function(a){this.Kk&&!q(a)&&this.Un({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]})};a.$s=function(a){a.preventDefault&&this.b.Dm&&!this.b.Td&&a.preventDefault();this.b.Dm=!0;q(a)||(this.Pk({changedTouches:[{pageX:a.pageX,pageY:a.pageY,identifier:0}]}), +this.Kk=!1)};a.ml=function(){var a,b,c,d=Qa();a=0;for(b=this.touches.length;ac||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ea(b)?(d=this.b.qg(0),e=d.scale,f=d.Oc,g=d.mc,k=d.k,d.scale=1,d.Oc=1,d.mc=1,d.k=0,a.F(d.Sa(this.touches[c].x,this.touches[c].y,!0)),d.scale=e,d.Oc=f,d.mc=g,d.k=k):(d=D(b)?this.b.qg(b):this.b.dk(b))?a.F(d.Sa(this.touches[c].x,this.touches[c].y,!0)):a.F(0)}};u.prototype.Yp=function(a,b){var c=this.jf;if(0>c||c>=this.touches.length)a.F(0);else{var d,e,f,g,k;ea(b)?(d=this.b.qg(0), +e=d.scale,f=d.Oc,g=d.nc,k=d.k,d.scale=1,d.Oc=1,d.nc=1,d.k=0,a.F(d.Sa(this.touches[c].x,this.touches[c].y,!1)),d.scale=e,d.Oc=f,d.nc=g,d.k=k):(d=D(b)?this.b.qg(b):this.b.dk(b))?a.F(d.Sa(this.touches[c].x,this.touches[c].y,!1)):a.F(0)}};b.gb=new u})();function gc(e){this.b=e} +(function(){function e(){}function p(){}function l(){}var q=gc.prototype;q.Ka=function(a){this.ma=a;this.b=a.b};q.Ka.prototype.Y=function(){};q.wa=function(a){this.type=a;this.b=a.b};var t=q.wa.prototype,u="",b="undefined"!==typeof window.is_scirra_arcade;b&&(u="arcade"+window.scirra_arcade_id);var a=!1;try{localStorage.getItem("test"),a=!0}catch(f){a=!1}t.Y=function(){a||z("[Construct 2] Webstorage plugin: local storage is not supported on this platform.")};e.prototype.sp=function(b){return a?null!= +localStorage.getItem(u+b):!1};e.prototype.Jp=function(){return!0};q.m=new e;p.prototype.Tp=function(b,c){if(a)try{localStorage.setItem(u+b,c)}catch(d){this.b.trigger(gc.prototype.m.Jp,this)}};q.xa=new p;l.prototype.tp=function(b,c){a?b.Ya(localStorage.getItem(u+c)||""):b.Ya("")};l.prototype.Cl=function(e){if(a){var c={},d,f,g;d=0;for(f=localStorage.length;dp&&(p=0),this.q=Math.cos(t)*p,this.A=Math.sin(t)*p);0!==this.Db&&(this.A+=this.Db*e);this.De=this.d.x;this.Ee=this.d.y;if(0!==this.q||0!==this.A)if(this.d.x+=this.q*e,this.d.y+=this.A*e,this.jj+=Ma(0,0,this.q*e,this.A*e),this.hl&&(this.d.k=Ia(0,0,this.q,this.A),this.d.p(),this.tf=this.d.k),this.d.p(),this.iq&&(p=this.b.Za(this.d)))this.b.Gf(this.d,p),p=Ma(0,0,this.q,this.A),t=this.b.lq(this.d,this.De,this.Ee),this.q=Math.cos(t)*p,this.A=Math.sin(t)*p,this.d.x+=this.q*e,this.d.y+=this.A* +e,this.d.p(),this.hl&&(this.tf=this.d.k=t,this.d.p()),this.b.oc(this.d,this.q/p,this.A/p,Math.max(2.5*p*e,30))||this.b.jo(this.d,100)}};e.m=new function(){};e.xa=new function(){};e.gb=new function(){}})();function ic(e){this.b=e} +(function(){function e(){}function p(){}var l=ic.prototype;l.Ka=function(e){this.behavior=e;this.b=e.b};l.Ka.prototype.Y=function(){};l.wa=function(e,l){this.type=e;this.behavior=e.behavior;this.d=l;this.b=e.b;this.ih=this.Yi=this.Xi=this.kk=this.dg=this.jg=this.rf=this.sf=this.dh=this.Kg=!1;this.kb=null;this.Dk=-1;this.ze=this.ye=0;this.Th=!1;this.ef=this.yc=0;this.Sh=!0;this.A=this.q=0};var q=l.wa.prototype;q.Yo=function(){this.Na=Math.cos(this.hf);this.Oa=Math.sin(this.hf);this.Le=Math.cos(this.hf- +Math.PI/2);this.Me=Math.sin(this.hf-Math.PI/2);this.Na=bb(this.Na);this.Oa=bb(this.Oa);this.Le=bb(this.Le);this.Me=bb(this.Me);this.Xj=this.Db;0>this.Db&&(this.Na*=-1,this.Oa*=-1,this.Db=Math.abs(this.Db))};q.Y=function(){this.zf=this.D[0];this.vc=this.D[1];this.$e=this.D[2];this.Gg=this.D[3];this.Xj=this.Db=this.D[4];this.Ci=this.D[5];this.Oj=0!==this.D[6];this.wk=this.D[7]/1E3;this.uq=1===this.D[8];this.enabled=0!==this.D[9];this.Wf=!1;this.Xf=this.b.ee(this.d);this.Ek=-1;this.Qe=0;this.hf=V(90); +this.Yo();var e=this;this.uq&&!this.b.la&&(jQuery(document).keydown(function(l){e.Ws(l)}),jQuery(document).keyup(function(l){e.Xs(l)}));this.Xb||(this.Kn=function(l){e.Vs(l)});this.b.Tl(this.Kn);this.d.C.isPlatformBehavior=!0};q.Kb=function(){return{ii:this.kk,lfx:this.ye,lfy:this.ze,lfo:this.kb?this.kb.uid:-1,am:this.yc,en:this.enabled,fall:this.ef,ft:this.Sh,dx:this.q,dy:this.A,ms:this.zf,acc:this.vc,dec:this.$e,js:this.Gg,g:this.Db,g1:this.Xj,mf:this.Ci,wof:this.Wf,woj:this.Xf?this.Xf.uid:-1,ga:this.hf, +edj:this.Oj,cdj:this.dg,dj:this.jg,sus:this.wk}};q.ic=function(e){this.kk=e.ii;this.ye=e.lfx;this.ze=e.lfy;this.Dk=e.lfo;this.yc=e.am;this.enabled=e.en;this.ef=e.fall;this.Sh=e.ft;this.q=e.dx;this.A=e.dy;this.zf=e.ms;this.vc=e.acc;this.$e=e.dec;this.Gg=e.js;this.Db=e.g;this.Xj=e.g1;this.Ci=e.mf;this.Wf=e.wof;this.Ek=e.woj;this.hf=e.ga;this.Oj=e.edj;this.dg=e.cdj;this.jg=e.dj;this.wk=e.sus;this.ih=this.Yi=this.Xi=this.rf=this.sf=this.dh=this.Kg=!1;this.Qe=0;this.Yo()};q.Dd=function(){-1===this.Dk? +this.kb=null:this.kb=this.b.$h(this.Dk);-1===this.Ek?this.Xf=null:this.Xf=this.b.$h(this.Ek)};q.Vs=function(e){this.kb==e&&(this.kb=null)};q.Df=function(){this.kb=null;this.b.qt(this.Kn)};q.Ws=function(e){switch(e.which){case 38:e.preventDefault();this.sf=!0;break;case 37:e.preventDefault();this.Kg=!0;break;case 39:e.preventDefault(),this.dh=!0}};q.Xs=function(e){switch(e.which){case 38:e.preventDefault();this.rf=this.sf=!1;break;case 37:e.preventDefault();this.Kg=!1;break;case 39:e.preventDefault(), +this.dh=!1}};q.Ef=function(){this.sf=this.dh=this.Kg=!1};q.xh=function(){return 0>this.Db?-1:1};q.Om=function(){var e=null,l=null,b,a;b=this.d.x;a=this.d.y;this.d.x+=this.Na;this.d.y+=this.Oa;this.d.p();if(this.kb&&this.b.Mb(this.d,this.kb)&&(!this.b.sl(this.kb.type,cc)||this.kb.C.solidEnabled))return this.d.x=b,this.d.y=a,this.d.p(),this.kb;(e=this.b.Za(this.d))||0!==this.ef||(l=this.b.ee(this.d,!0));this.d.x=b;this.d.y=a;this.d.p();if(e){if(this.b.Mb(this.d,e))return null;this.Th=!1;return e}if(l&& +l.length){a=e=0;for(b=l.length;ethis.Ci&&(this.A=this.Ci)),w&&(this.rf=!0));this.Wf=!!n;q==a&&(0>this.q?(this.q+=this.$e*e,0this.q&&(this.q=0)));q&&!a&&(this.q=0this.q?this.q+(this.vc+this.$e)*e:this.q+this.vc*e);this.q>this.zf?this.q=this.zf:this.q<-this.zf&&(this.q=-this.zf);q=!1;0!==this.q&& +(p=this.d.x,g=this.d.y,l=this.q*e*this.Le,b=this.q*e*this.Me,this.d.x+=this.Le*(1this.q?1:-1),this.Me*(0>this.q?1:-1),l,!1)?!n||f||this.Th||(p=this.d.x,g=this.d.y,this.d.x+=this.Na,this.d.y+=this.Oa,this.b.Za(this.d)?this.b.oc(this.d,-this.Na,-this.Oa,3,!1)||(this.d.x=p,this.d.y=g,this.d.p()):(this.d.x=p,this.d.y=g,this.d.p())):(this.d.x=p,this.d.y=g,this.d.p()),f||(this.q=0)):!k&&!w&&Math.abs(this.A)this.A?1:-1),this.Oa*(0>this.A?1:-1),l,f,b)?(this.kb=b,this.ye=b.x,this.ze=b.y,(this.Th=f)&&(q=!0),this.A=0):(this.d.x=p,this.d.y=g,this.d.p(),this.Wf=!0,f||(this.A=0)))}3!==this.yc&&0b?(e.x=u+1-(l.right-e.x),e.p()):l.bottomf&& +(e.y=a+1-(l.bottom-e.y),e.p())}})(); +function bc(){return[ec,dc,Z,fc,gc,ic,jc,cc,hc,Y.prototype.m.kp,Y.prototype.xa.jp,Y.prototype.gb.random,Y.prototype.gb.Ks,Y.prototype.gb.Js,dc.prototype.m.xp,fc.prototype.xa.Ol,Y.prototype.xa.Pp,Y.prototype.m.ip,Y.prototype.xa.Qp,gc.prototype.xa.Tp,Z.prototype.m.pp,Y.prototype.xa.Np,Y.prototype.xa.Op,Y.prototype.xa.ep,fc.prototype.xa.Nl,Y.prototype.m.Fl,gc.prototype.m.sp,gc.prototype.gb.tp,Y.prototype.m.Dl,Y.prototype.m.lp,ic.prototype.xa.Sp,ec.prototype.m.El,Y.prototype.xa.mp]}; diff --git a/docs/game/data.js b/docs/game/data.js new file mode 100644 index 0000000..a4b2ebf --- /dev/null +++ b/docs/game/data.js @@ -0,0 +1 @@ +{"project": [null,"MenuPpal",[[0,false,true,true,true,false,false,false,false,false],[1,false,true,true,true,true,true,true,true,false],[2,true,false,false,false,false,false,false,false,false],[3,false,true,true,true,true,true,true,true,false],[4,true,false,false,false,false,false,false,false,false]],[["t0",1,false,[],2,0,null,[["Default",5,false,1,0,false,8801772015921335,[["images/boule-sheet0.png",308,0,0,40,40,1,0.5,0.5,[],[-0.300000011920929,-0.300000011920929,0,-0.425000011920929,0.300000011920929,-0.300000011920929,0.425000011920929,0,0.300000011920929,0.300000011920929,0,0.425000011920929,-0.300000011920929,0.300000011920929,-0.425000011920929,0],0]]]],[["Platform",5,7754091694641572],["Wrap",6,9472653411684907]],false,false,6135863585194359,[],null],["t1",1,false,[],2,0,null,[["Default",5,false,1,0,false,9984418601107142,[["images/plateformes-sheet0.png",102,0,0,35,220,1,0.4857142865657806,0.5,[],[0.514285683631897,-0.5,0.514285683631897,0.5,-0.4857142865657806,0.5,-0.4857142865657806,-0.5],4]]]],[["Solid",7,4378678226407115],["Bullet",8,9231420122995879]],false,false,8365698853867746,[],null],["t2",1,false,[],0,0,null,[["Default",5,false,1,0,false,4363119994420849,[["images/lignemortellehaute-sheet0.png",101,0,0,220,35,1,0.5,0.5142857432365418,[],[],1]]]],[],false,false,1655489166492954,[],null],["t3",3,false,[],0,0,null,null,[],false,false,1301906321178784,[],null],["t4",2,false,[],0,0,null,null,[],false,false,5215687192636215,[],null,[1]],["t5",3,false,[],0,0,null,null,[],false,false,8101028151467539,[],null],["t6",3,false,[],0,0,null,null,[],false,false,6546891966526076,[],null],["t7",4,false,[],0,0,null,null,[],false,false,4822494075500296,[],null,[]],["t8",3,false,[],0,0,null,null,[],false,false,6823092676509123,[],null],["t9",3,false,[],0,0,null,null,[],false,false,7341920085048266,[],null],["t10",3,false,[],0,0,null,null,[],false,false,5735560470794139,[],null],["t11",0,false,[],0,0,null,null,[],false,false,908854795145162,[],null],["t12",0,false,[],0,0,null,null,[],false,false,5737991400181888,[],null],["t13",0,false,[],0,0,null,null,[],false,false,5238409750388541,[],null],["t14",1,false,[],0,0,null,[["Default",5,false,1,0,false,6898815135390002,[["images/leftscreen-sheet0.png",4908324,0,0,1920,1278,1,0.5,0.5,[],[],1]]]],[],false,false,2680336488630149,[],null],["t15",1,false,[],0,0,null,[["Default",5,false,1,0,false,5266196585417904,[["images/leftscreen-sheet0.png",4908324,0,0,1920,1278,1,0.5,0.5,[],[],1]]]],[],false,false,8470385743721675,[],null]],[],[["Layout 1",640,580,false,"Event sheet 1",9152253247875766,[["Layer 0",0,9098306985525952,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[62,33,0,40,40,0,0,1,0.5,0.5,0,0,[]],0,0,[],[[330,1500,1500,650,1500,1000,0,0,1,1],[0]],[0,"Default",0,1]],[[82,217,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,1,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[282,140,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,2,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[336,310,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,3,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[545,154,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,4,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[500,406,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,5,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[98,402,0,16.70454597473145,94.28571319580078,0,-1.570796489715576,1,0.4857142865657806,0.5,0,0,[]],1,6,[],[[1],[180,0,0,0,1,1]],[0,"Default",0,1]],[[323.5,-19,0,721,35,0,0,1,0.5,0.5142857432365418,0,0,[]],2,7,[],[],[0,"Default",0,1]],[[228,229,0,200,61,0,0,1,0,0,0,0,[]],3,8,[],[],["Perdu :/",1,"bold italic 24pt Arial","rgb(255,0,0)",1,0,0,0,0]],[[290,8,0,200,30,0,0,1,0,0,0,0,[]],5,10,[],[],["Points: 0",0,"12pt Arial","rgb(0,153,204)",0,0,0,0,0]],[[483,4,0,200,30,0,0,1,0,0,0,0,[]],6,11,[],[],["Meilleur Score:",0,"12pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[-116,596,0,200,30,0,0,1,0,0,0,0,[]],8,13,[],[],["By JunkJumper",0,"12pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[160,296,0,2457.60009765625,3021.19189453125,0,0,0.1000000014901161,0.5,0.5,0,0,[]],14,22,[],[],[0,"Default",0,1]],[[480,294,0,2457.60009765625,2995.632080078125,0,0,0.1000000014901161,0.5,0.5,0,0,[]],15,23,[],[],[0,"Default",0,1]]],[]]],[],[]],["MenuPpal",640,580,false,"Event sheet Menu",472391601529243,[["Layer 0",0,3120149710936238,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[11,26,0,618,83,0,0,1,0,0,0,0,[]],9,14,[],[],["Descendre ou mourir, que choisir ?",0,"26pt Arial","rgb(0,0,0)",1,1,0,0,0]],[[300,256,0,72,24,0,0,1,0,0,0,0,[]],11,19,[],[],[0,"Jouer","",1,1,1,"",0]],[[501,518,0,116,24,0,0,1,0,0,0,0,[]],12,20,[],[],[0,"Instructions","",1,1,1,"",0]]],[]]],[],[]],["Instrucciones",640,580,false,"Event sheet Instrucciones",3430012955411798,[["Layer 0",0,684959745733032,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[117,25,0,438,125,0,0,1,0,0,0,0,[]],10,15,[],[],["Comment Jouer ?",0,"36pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[126,142,0,265,30,0,0,1,0,0,0,0,[]],10,16,[],[],["Utilisez les flèches dirrectionnelles.",0,"12pt Arial","rgb(0,0,0)",0,0,0,0,0]],[[38,531,0,72,24,0,0,1,0,0,0,0,[]],13,21,[],[],[0,"Menu","",1,1,1,"",0]]],[]]],[],[]]],[["Event sheet 1",[[1,"ClaveMejor",1,"LaCaidaMejorPuntuacion",false,false,9522200068147634,false],[1,"MejorPuntuacion",0,0,false,false,4013732829979448,false],[1,"Puntuacion",0,0,false,false,6477563289097314,false],[0,null,false,null,2493665292769951,[[-1,9,null,0,false,false,false,1453527800343682,false,[[0,[1,0.6]]]]],[[-1,10,null,8868046580337872,false,[[4,1],[5,[0,0]],[0,[19,11,[[0,0],[19,12]]]],[0,[19,13]]]],[-1,10,null,8090750172289219,false,[[4,1],[5,[0,0]],[0,[19,11,[[0,0],[19,12]]]],[0,[4,[19,13],[0,10]]]]],[-1,10,null,4315720763563752,false,[[4,1],[5,[0,0]],[0,[19,11,[[0,0],[19,12]]]],[0,[4,[19,13],[0,20]]]]]]],[0,null,false,null,2857595836516733,[[0,14,null,0,false,false,true,7173401499600809,false,[[4,2]]]],[[3,15,null,490048647617857,false,[[3,1]]],[-1,16,null,324536016697884,false,[[0,[0,0]]]]],[[0,null,false,null,7063006697540756,[[-1,17,null,0,false,false,false,3805718626210668,false,[[7,[23,"Puntuacion"]],[8,5],[7,[23,"MejorPuntuacion"]]]]],[[-1,18,null,8904305457234706,false,[[11,"MejorPuntuacion"],[7,[23,"Puntuacion"]]]],[7,19,null,9032440837742698,false,[[1,[23,"ClaveMejor"]],[7,[23,"Puntuacion"]]]]]]]],[0,null,false,null,6903907079143808,[[4,20,null,0,false,false,false,9111485958461242,false,[[4,3]]]],[[-1,16,null,6988263434346644,false,[[0,[0,1]]]],[-1,21,null,5809738572647118,false],[-1,22,null,8267376269319278,false]]],[0,null,false,null,485080852510219,[[-1,9,null,0,false,false,false,1807292226048773,false,[[0,[1,1]]]]],[[-1,23,null,1078199281028331,false,[[11,"Puntuacion"],[7,[0,10]]]],[5,24,null,6176547737201367,false,[[7,[10,[2,"Points: "],[23,"Puntuacion"]]]]]]],[0,null,false,null,5438459101298089,[[-1,25,null,1,false,false,false,2000751980323816,false]],[],[[0,null,false,null,8816978491607543,[[7,26,null,0,false,false,false,5249076565606543,false,[[1,[23,"ClaveMejor"]]]]],[[-1,18,null,5296937358341123,false,[[11,"MejorPuntuacion"],[7,[20,7,27,true,null,[[23,"ClaveMejor"]]]]]]]],[0,null,false,null,4534583748264246,[[-1,28,null,0,false,false,false,6398093782278112,false]],[[-1,18,null,2363778762192857,false,[[11,"MejorPuntuacion"],[7,[0,0]]]]]]]],[0,null,false,null,1474835087390899,[[-1,29,null,0,false,false,false,2158635195636688,false]],[[6,24,null,525364682246516,false,[[7,[10,[2,"Meilleur Score :"],[23,"MejorPuntuacion"]]]]]]],[0,null,false,null,9197506859707214,[[4,20,null,0,false,false,false,3013004845451926,false,[[4,14]]]],[[0,30,"Platform",1063281058211761,false,[[3,0]]]]],[0,null,false,null,1612183447013023,[[4,20,null,0,false,false,false,182990242935201,false,[[4,15]]]],[[0,30,"Platform",5071061499024351,false,[[3,1]]]]]]],["Event sheet Menu",[[0,null,false,null,1607658996417574,[[11,31,null,1,false,false,false,1045761414837609,false]],[[-1,32,null,5196655130220945,false,[[6,"Layout 1"]]]]],[0,null,false,null,9940848103784175,[[12,31,null,1,false,false,false,3268749730327358,false]],[[-1,32,null,3950829160524383,false,[[6,"Instrucciones"]]]]]]],["Event sheet Instrucciones",[[0,null,false,null,8710626668906974,[[13,31,null,1,false,false,false,5395743415559328,false]],[[-1,32,null,1482522019948006,false,[[6,"MenuPpal"]]]]]]]],[],"media/",false,640,580,4,true,true,true,"1.0.0.0",true,false,4,0,24,false,true,1,true,"New project",0,[]]} \ No newline at end of file diff --git a/docs/game/icon-114.png b/docs/game/icon-114.png new file mode 100644 index 0000000..bf56364 Binary files /dev/null and b/docs/game/icon-114.png differ diff --git a/docs/game/icon-128.png b/docs/game/icon-128.png new file mode 100644 index 0000000..523ffd0 Binary files /dev/null and b/docs/game/icon-128.png differ diff --git a/docs/game/icon-16.png b/docs/game/icon-16.png new file mode 100644 index 0000000..e1b785c Binary files /dev/null and b/docs/game/icon-16.png differ diff --git a/docs/game/icon-256.png b/docs/game/icon-256.png new file mode 100644 index 0000000..0916f57 Binary files /dev/null and b/docs/game/icon-256.png differ diff --git a/docs/game/icon-32.png b/docs/game/icon-32.png new file mode 100644 index 0000000..02edf8c Binary files /dev/null and b/docs/game/icon-32.png differ diff --git a/docs/game/images/boule-sheet0.png b/docs/game/images/boule-sheet0.png new file mode 100644 index 0000000..24b6e40 Binary files /dev/null and b/docs/game/images/boule-sheet0.png differ diff --git a/docs/game/images/leftscreen-sheet0.png b/docs/game/images/leftscreen-sheet0.png new file mode 100644 index 0000000..4b842c8 Binary files /dev/null and b/docs/game/images/leftscreen-sheet0.png differ diff --git a/docs/game/images/lignemortellehaute-sheet0.png b/docs/game/images/lignemortellehaute-sheet0.png new file mode 100644 index 0000000..e907ed5 Binary files /dev/null and b/docs/game/images/lignemortellehaute-sheet0.png differ diff --git a/docs/game/images/plateformes-sheet0.png b/docs/game/images/plateformes-sheet0.png new file mode 100644 index 0000000..e19e7fa Binary files /dev/null and b/docs/game/images/plateformes-sheet0.png differ diff --git a/docs/game/index.html b/docs/game/index.html new file mode 100644 index 0000000..dd9af09 --- /dev/null +++ b/docs/game/index.html @@ -0,0 +1,136 @@ + + + + + + New project + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + +

Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. What is a browser? +

Microsoft Internet Explorer
+ Mozilla Firefox
+ Google Chrome
+ Apple Safari

+
+ +
+ + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/game/jquery-2.1.1.min.js b/docs/game/jquery-2.1.1.min.js new file mode 100644 index 0000000..e150866 --- /dev/null +++ b/docs/game/jquery-2.1.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) +},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n(" + + + + +
+ +
+ + diff --git a/docs/styles/layout.css b/docs/styles/layout.css new file mode 100644 index 0000000..a8d48c3 --- /dev/null +++ b/docs/styles/layout.css @@ -0,0 +1,86 @@ +html{overflow-y:scroll;} /* Forces a scrollbar when the viewport is larger than the websites content - CSS3 */ + +body{margin:0; padding:0; font-size:13px; font-family:Georgia, "Times New Roman", Times, serif; color:#979797; background-color:#FFFFFF;} + +.clear:after{content:"."; display:block; height:0; clear:both; visibility:hidden; line-height:0;} +.clear{display:block; clear:both;} +html[xmlns] .clear{display:block;} +* html .clear{height:1%;} + +a{outline:none; text-decoration:none;} + +code{font-weight:normal; font-style:normal; font-family:Georgia, "Times New Roman", Times, serif;} + +.fl_left{float:left;} +.fl_right{float:right;} + +img{margin:0; padding:0; border:none; line-height:normal; vertical-align:middle;} +.imgholder, .imgl, .imgr{padding:4px; border:1px solid #D6D6D6; text-align:center;} +.imgl{float:left; margin:0 15px 15px 0; clear:left;} +.imgr{float:right; margin:0 0 15px 15px; clear:right;} + +address, article, aside, figcaption, figure, footer, header, nav, section{display:block; margin:0; padding:0;} + +q{display:block; padding:0 10px 8px 10px; color:#979797; background-color:#ECECEC; font-style:italic; line-height:normal;} +q:before{content:'� '; font-size:26px;} +q:after{content:' �'; font-size:26px; line-height:0;} + +div.wrapper{display:block; width:960px; margin:0 auto; padding:0; text-align:left;} + +.row1, .row1 a{color:#979797; background-color:#FFFFFF;} +.row2{color:#979797; background-color:#FFFFFF;} +.row2 a{color:#FF9900; background-color:#FFFFFF;} +.row3{border-top:1px solid #DEDEDE;} +.row3, .row3 a{color:#979797; background-color:#FFFFFF;} + +#header, #container, #footer{display:block; width:960px;} + +nav ul{margin:0; padding:0; list-style:none;} + +h1, h2, h3, h4, h5, h6{margin:0; padding:0; font-size:16px; font-weight:bold; font-style:normal; line-height:normal; text-transform:uppercase;} + +address{font-style:normal;} + +blockquote, q{display:block; padding:8px 10px; color:#979797; background-color:#ECECEC; font-style:italic; line-height:normal;} +blockquote:before, q:before{content:'� '; font-size:26px;} +blockquote:after, q:after{content:' �'; font-size:26px; line-height:0;} + +.one_third, .two_third, .three_third{display:block; float:left; margin:0 30px 0 0;} +.one_third{width:300px;} +.two_third{width:630px;} +.three_third{width:960px; float:none; margin-right:0; clear:both;} +.lastbox{margin-right:0;} + +#header{} + +#header #hgroup{padding:20px 0 0 0; float:left;} +#header #hgroup h1, #header #hgroup h2{font-weight:normal; text-transform:none;} +#header #hgroup h1{font-size:36px;} +#header #hgroup h2{font-size:13px;} + +#header nav{display:block; float:right; margin:20px 0 0 0; padding:20px 0;} +#header nav ul{} +#header nav li{display:inline; margin-right:25px; text-transform:uppercase;} +#header nav li.last{margin-right:0;} +#header nav li a{padding:5px 8px; color:#FFFFFF; background-color:#666666;} +#header nav li a:hover{color:#FF9900; background-color:#FFFFFF;} + +#container{padding:30px 0;} +#container section{display:block; width:100%; margin:0 0 30px 0; padding:0;} +#container .last{margin:0;} +#container .more{text-align:right;} + +#container #shout{margin-bottom:50px; padding:30px 0; border-top:1px solid #DEDEDE; border-bottom:1px solid #DEDEDE;} +#container #shout h1{font-size:56px; font-weight:normal; font-style:italic; text-transform:uppercase; text-align:center;} +#container #shout p{font-size:16px; margin-bottom:0; padding-bottom:0; line-height:1.8em;} + + +#container #services{margin-bottom:50px; line-height:1.6em;} +#container #services article{} +#container #services article h2{font-size:14px; margin-bottom:15px;} +#container #services article p{margin:0; padding:0;} +#container #services article img{float:left; width:80px; height:80px; margin:0 10px 10px 0; padding:4px; border:1px solid #DEDEDE;} +#container #services article footer{margin:10px 0 0 0;} + +#footer{padding:20px 0;} +#footer p{margin:0; padding:0;} \ No newline at end of file