Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated dependencies and compiled

  • Loading branch information...
commit e8ab677f332ac15319e9d8590d53ea67153d6932 1 parent e520732
Kevin Moore kevmoo authored
Showing with 30 additions and 29 deletions.
  1. +1 −1  js/closure
  2. +21 −21 js/compiled.js
  3. +7 −6 js/deps.js
  4. +1 −1  js/pl
2  js/closure
@@ -1 +1 @@
-Subproject commit 0f7b23385ee3dc6d196ca44641277a7d1cc2794e
+Subproject commit bab11ec03c35df999b6d85079fdb488a0b4c9c1d
42 js/compiled.js
View
@@ -1,21 +1,21 @@
-'use strict';var k=void 0,l=null,o=false,q=this;function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}else return function(){return a.apply(b,arguments)}}
-function r(a,b,c){r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?aa:ba;return r.apply(l,arguments)};function s(a,b){this.x=a!==k?a:0;this.y=b!==k?b:0}s.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function t(a){for(var b=0,c=String(u).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),a=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=Math.max(c.length,a.length),i=0;b==0&&i<d;i++){var e=c[i]||"",f=a[i]||"",h=/(\d*)(\D*)/g,j=/(\d*)(\D*)/g;do{var m=h.exec(e)||["","",""],g=j.exec(f)||["","",""];if(m[0].length==0&&g[0].length==0)break;b=v(m[1].length==0?0:parseInt(m[1],10),g[1].length==0?0:parseInt(g[1],10))||v(m[2].length==0,g[2].length==0)||v(m[2],g[2])}while(b==0)}return b}
-function v(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var w=Array.prototype;function ca(a,b,c,d){w.splice.apply(a,da(arguments,1))}function da(a,b,c){return arguments.length<=2?w.slice.call(a,b):w.slice.call(a,b,c)};function x(a,b){this.x=a;this.y=b}(function(){function a(){}a.prototype=s.prototype;x.J=s.prototype;x.prototype=new a})();function y(a){return Math.sqrt(a.x*a.x+a.y*a.y)}x.prototype.scale=function(a){this.x*=a;this.y*=a;return this};x.prototype.normalize=function(){return this.scale(1/y(this))};x.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function z(a,b){this.f=new s(a||0,b||0);this.target=new s;this.h=new x(0,0);this.z=Math.random()*0.5}z.prototype.update=function(a){var b,c;b=new x(this.target.x-this.f.x,this.target.y-this.f.y);a&&(c=new x(this.f.x-a.x,this.f.y-a.y),a=y(c),c.normalize().scale(1E3/a),b.add(c));this.h.scale(1-ea);this.h.add(b.scale((1+this.z)/fa));y(this.h)>A&&this.h.normalize().scale(A);this.f.x+=this.h.x;this.f.y+=this.h.y};var fa=200,ea=0.08,A=20;var B,C,D,E;function F(){return q.navigator?q.navigator.userAgent:l}E=D=C=B=o;var G;if(G=F()){var ga=q.navigator;B=G.indexOf("Opera")==0;C=!B&&G.indexOf("MSIE")!=-1;D=!B&&G.indexOf("WebKit")!=-1;E=!B&&!D&&ga.product=="Gecko"}var H=C,I=E,ha=D,u;
-a:{var J="",K;if(B&&q.opera)var L=q.opera.version,J=typeof L=="function"?L():L;else if(I?K=/rv\:([^\);]+)(\)|;)/:H?K=/MSIE\s+([^\);]+)(\)|;)/:ha&&(K=/WebKit\/(\S+)/),K)var ia=K.exec(F()),J=ia?ia[1]:"";if(H){var M,ja=q.document;M=ja?ja.documentMode:k;if(M>parseFloat(J)){u=String(M);break a}}u=J}var N={},ka={};function la(){return ka[9]||(ka[9]=H&&document.documentMode&&document.documentMode>=9)};!H||la();if(I||H)if(!H||!la())I&&(N["1.9.1"]||(N["1.9.1"]=t("1.9.1")>=0));H&&(N["9"]||(N["9"]=t("9")>=0));function ma(a){(q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||function(a){q.setTimeout(a,17)})(a)};function na(){this.buffer={length:0};this.length=0}na.prototype={get:function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1},put:function(a,b){for(var c=0;c<b;c++)this.u((a>>>b-c-1&1)==1)},u:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&(this.buffer[this.buffer.length++]=0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}};function oa(a){this.mode=4;this.data=a}oa.prototype={d:function(){return this.data.length},write:function(a){for(var b=0;b<this.data.length;b++)a.put(this.data.charCodeAt(b),8)}};function pa(a,b){this.v=a;this.q=b}
-var O=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,
-20],[6,43,15,2,44,16]];function qa(a,b){switch(b){case 1:return O[(a-1)*4+0];case 0:return O[(a-1)*4+1];case 3:return O[(a-1)*4+2];case 2:return O[(a-1)*4+3]}};function P(a){if(a<1)throw Error("glog("+a+")");return ra[a]}function Q(a){for(;a<0;)a+=255;for(;a>=256;)a-=255;return R[a]}var R={length:256},ra={length:256},S;for(S=0;S<8;S++)R[S]=1<<S;for(S=8;S<256;S++)R[S]=R[S-4]^R[S-5]^R[S-6]^R[S-8];for(S=0;S<255;S++)ra[R[S]]=S;function T(a,b){if(a.length==k)throw Error(a.length+"/"+b);for(var c=0;c<a.length&&a[c]==0;)c++;this.l={length:a.length-c+b};for(var d=0;d<a.length-c;d++)this.l[d]=a[d+c]}
-T.prototype={get:function(a){return this.l[a]},d:function(){return this.l.length},multiply:function(a){for(var b={length:this.d()+a.d()-1},c=0;c<this.d();c++)for(var d=0;d<a.d();d++)b[c+d]^=Q(P(this.get(c))+P(a.get(d)));return new T(b,0)},t:function(a){if(this.d()-a.d()<0)return this;var b=P(this.get(0))-P(a.get(0)),c={length:this.d()},d;for(d=0;d<this.d();d++)c[d]=this.get(d);for(d=0;d<a.d();d++)c[d]^=Q(P(a.get(d))+b);return(new T(c,0)).t(a)}};var sa=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,
-50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]];function U(a){for(var b=0;a!=0;)b++,a>>>=1;return b}function ta(a,b,c){switch(a){case 0:return(b+c)%2==0;case 1:return b%2==0;case 2:return c%3==0;case 3:return(b+c)%3==0;case 4:return(Math.floor(b/2)+Math.floor(c/3))%2==0;case 5:return b*c%2+b*c%3==0;case 6:return(b*c%2+b*c%3)%2==0;case 7:return(b*c%3+(b+c)%2)%2==0;default:throw Error("bad maskPattern:"+a);}}
-function ua(a,b){if(1<=b&&b<10)switch(a){case 1:return 10;case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("mode:"+a);}else if(b<27)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("mode:"+a);}else if(b<41)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("mode:"+a);}else throw Error("type:"+b);};function va(a,b){this.g=a;this.s=b;this.b=this.g*4+17;this.c=[this.b];for(var c=0;c<this.b;c++){this.c[c]=[this.b];for(var d=0;d<this.b;d++)this.c[c][d]=l}this.j=l;this.r=[]}
-va.prototype={a:function(a,b){if(a<0||this.b<=a||b<0||this.b<=b)throw Error(a+","+b);return this.c[a][b]},B:function(){wa(this,o,this.A())},m:function(a,b){for(var c=-1;c<=7;c++)if(!(a+c<=-1||this.b<=a+c))for(var d=-1;d<=7;d++)b+d<=-1||this.b<=b+d||(this.c[a+c][b+d]=0<=c&&c<=6&&(d==0||d==6)||0<=d&&d<=6&&(c==0||c==6)||2<=c&&c<=4&&2<=d&&d<=4?true:o)},A:function(){for(var a=0,b=0,c=0;c<8;c++){wa(this,true,c);var d;d=this.b;for(var i=0,e=k,f=k,e=0;e<d;e++)for(f=0;f<d;f++){for(var h=0,j=this.a(e,f),m=
--1;m<=1;m++)if(!(e+m<0||d<=e+m))for(var g=-1;g<=1;g++)f+g<0||d<=f+g||m==0&&g==0||j==this.a(e+m,f+g)&&h++;h>5&&(i+=3+h-5)}for(e=0;e<d-1;e++)for(f=0;f<d-1;f++)if(h=0,this.a(e,f)&&h++,this.a(e+1,f)&&h++,this.a(e,f+1)&&h++,this.a(e+1,f+1)&&h++,h==0||h==4)i+=3;for(e=0;e<d;e++)for(f=0;f<d-6;f++)this.a(e,f)&&!this.a(e,f+1)&&this.a(e,f+2)&&this.a(e,f+3)&&this.a(e,f+4)&&!this.a(e,f+5)&&this.a(e,f+6)&&(i+=40);for(f=0;f<d;f++)for(e=0;e<d-6;e++)this.a(e,f)&&!this.a(e+1,f)&&this.a(e+2,f)&&this.a(e+3,f)&&this.a(e+
-4,f)&&!this.a(e+5,f)&&this.a(e+6,f)&&(i+=40);for(f=h=0;f<d;f++)for(e=0;e<d;e++)this.a(e,f)&&h++;i+=Math.abs(100*h/d/d-50)/5*10;d=i;if(c==0||a>d)a=d,b=c}return b},F:function(){for(var a=8;a<this.b-8;a++)this.c[a][6]==l&&(this.c[a][6]=a%2==0);for(a=8;a<this.b-8;a++)this.c[6][a]==l&&(this.c[6][a]=a%2==0)},D:function(){for(var a=sa[this.g-1],b=0;b<a.length;b++)for(var c=0;c<a.length;c++){var d=a[b],i=a[c];if(this.c[d][i]==l)for(var e=-2;e<=2;e++)for(var f=-2;f<=2;f++)this.c[d+e][i+f]=e==-2||e==2||f==
--2||f==2||e==0&&f==0?true:o}},H:function(a){var b;b=this.g;for(var c=b<<12;U(c)-U(7973)>=0;)c^=7973<<U(c)-U(7973);b=b<<12|c;for(var d,c=0;c<18;c++)d=!a&&(b>>c&1)==1,this.c[Math.floor(c/3)][c%3+this.b-8-3]=d;for(c=0;c<18;c++)d=!a&&(b>>c&1)==1,this.c[c%3+this.b-8-3][Math.floor(c/3)]=d},G:function(a,b){var c;c=this.s<<3|b;for(var d=c<<10;U(d)-U(1335)>=0;)d^=1335<<U(d)-U(1335);c=(c<<10|d)^21522;for(var i,d=0;d<15;d++)i=!a&&(c>>d&1)==1,d<6?this.c[d][8]=i:d<8?this.c[d+1][8]=i:this.c[this.b-15+d][8]=i;for(d=
-0;d<15;d++)i=!a&&(c>>d&1)==1,d<8?this.c[8][this.b-d-1]=i:d<9?this.c[8][15-d-1+1]=i:this.c[8][15-d-1]=i;this.c[this.b-8][8]=!a},C:function(a,b){for(var c=-1,d=this.b-1,i=7,e=0,f=this.b-1;f>0;f-=2)for(f==6&&f--;;){for(var h=0;h<2;h++)if(this.c[d][f-h]==l){var j=o;e<a.length&&(j=(a[e]>>>i&1)==1);ta(b,d,f-h)&&(j=!j);this.c[d][f-h]=j;i--;i==-1&&(e++,i=7)}d+=c;if(d<0||this.b<=d){d-=c;c=-c;break}}}};
-function wa(a,b,c){a.m(0,0);a.m(a.b-7,0);a.m(0,a.b-7);a.D();a.F();a.G(b,c);a.g>=7&&a.H(b);if(a.j==l){var d=a.g,i=a.r,b=a.s,e=qa(d,b);if(e==k)throw Error("bad rs block @ typeNumber:"+d+"/errorCorrectLevel:"+b);for(var f=e.length/3,b={length:0},h=0;h<f;h++)for(var j=e[h*3+0],m=e[h*3+1],g=e[h*3+2],n=0;n<j;n++)b[b.length++]=new pa(m,g);e=new na;for(f=0;f<i.length;f++)h=i[f],e.put(h.mode,4),e.put(h.d(),ua(h.mode,d)),h.write(e);for(f=d=0;f<b.length;f++)d+=b[f].q;if(e.length>d*8)throw Error("code length overflow. ("+
-e.length+">"+d*8+")");for(e.length+4<=d*8&&e.put(0,4);e.length%8!=0;)e.u(o);for(;;){if(e.length>=d*8)break;e.put(236,8);if(e.length>=d*8)break;e.put(17,8)}i=d=m=0;f={length:b.length};h={length:b.length};for(j=0;j<b.length;j++){var n=b[j].q,p=b[j].v-n,d=Math.max(d,n),i=Math.max(i,p);f[j]={length:n};for(g=0;g<f[j].length;g++)f[j][g]=255&e.buffer[g+m];m+=n;g=p;n=new T([1],0);for(p=0;p<g;p++)n=n.multiply(new T([1,Q(p)],0));g=n;n=(new T(f[j],g.d()-1)).t(g);h[j]={length:g.d()-1};for(g=0;g<h[j].length;g++)p=
-g+n.d()-h[j].length,h[j][g]=p>=0?n.get(p):0}for(g=e=0;g<b.length;g++)e+=b[g].v;e=[];for(g=0;g<d;g++)for(j=0;j<b.length;j++)g<f[j].length&&e.push(f[j][g]);for(g=0;g<i;g++)for(j=0;j<b.length;j++)g<h[j].length&&e.push(h[j][g]);a.j=e}a.C(a.j,c)};function xa(a){var b="_gaq"in q?q._gaq:l;if(!b){var c=b=[];if("_gaq"in q)throw Error('The object already contains the key "_gaq"');q._gaq=c}b.push(a)}function ya(a){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=a;a=document.getElementsByTagName("head");if(a.length!=1)throw Error("Couldn't find a single head tag.");var a=a[0],c=a.getElementsByTagName("script");c.length==0?a.appendChild(b):(a=c[0],a.parentNode&&a.parentNode.insertBefore(b,a))};function V(a,b){ya("http://www.google-analytics.com/ga.js");xa(["_setAccount","UA-22691951-1"]);xa(["_trackPageview"]);q.sc_project=6793701;q.sc_security="6b3ec070";q.sc_invisible=1;ya("http://www.statcounter.com/counter/counter_xhtml.js");this.canvas=a;this.input=b;this.g=10;this.size=this.g*4+17;this.scale=5;this.i=(this.size+W*2)*this.scale;$(b).width(this.i).val("Type your message here...").bind("keyup",r(this.n,this));$(this.canvas).attr("width",this.i).attr("height",this.i).mousemove(r(this.w,
-this)).mouseout(r(this.k,this)).mouseleave(r(this.k,this)).mouseenter(r(this.k,this));this.context=this.canvas.getContext("2d");this.context.setTransform(1,0,0,1,this.scale*W,this.scale*W);this.e=[];this.n();this.p()}var X="app.Application".split("."),Y=q;!(X[0]in Y)&&Y.execScript&&Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)!X.length&&V!==k?Y[Z]=V:Y=Y[Z]?Y[Z]:Y[Z]={};V.prototype.k=function(){this.o=l};
-V.prototype.w=function(a){var b=$(this.canvas).offset();this.o=new s(a.pageX-b.left-(W+0.5)*this.scale,a.pageY-b.top-(W+0.5)*this.scale)};
-V.prototype.n=function(){var a,b;b=$(this.input).val();if(this.value!==b){this.value=b;a=new va(this.g,3);a.r.push(new oa(b));a.j=l;a.B();var c,d;b=[];for(d=0;d<this.size;){for(c=0;c<this.size;)a.a(d,c)&&b.push(new s(c*this.scale,d*this.scale)),c++;d++}for(;this.e.length>b.length;)a=Math.floor(Math.random()*this.e.length),w.splice.call(this.e,a,1);for(;this.e.length<b.length;)c=d=(this.size-1)*this.scale/2,c=new z(c,d),a=Math.floor(Math.random()*this.e.length),ca(this.e,a,0,c);a=this.e;c=this.size;
-a.length&&(c%=a.length,c>0?w.unshift.apply(a,a.splice(-c,c)):c<0&&w.push.apply(a,a.splice(0,-c)));for(a=0;a<b.length;)this.e[a].target.x=b[a].x,this.e[a].target.y=b[a].y,a++;this.I=o}};V.prototype.p=function(){var a,b;this.context.fillStyle="white";this.context.fillRect(-W*this.scale,-W*this.scale,this.i,this.i);this.context.fillStyle="black";for(a=0;a<this.e.length;)b=this.e[a],b.update(this.o),this.context.fillRect(b.f.x,b.f.y,this.scale,this.scale),a++;ma(r(this.p,this))};var W=10;
+'use strict';var m=void 0,n=null,o=!1,q=this;function aa(a,b,e){return a.call.apply(a.bind,arguments)}function ba(a,b,e){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
+function r(a,b,e){r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return r.apply(n,arguments)};var s=Array.prototype;function ca(a,b,e,d){s.splice.apply(a,da(arguments,1))}function da(a,b,e){return 2>=arguments.length?s.slice.call(a,b):s.slice.call(a,b,e)};function t(a,b){this.x=a!==m?a:0;this.y=b!==m?b:0}t.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function u(a,b){this.x=a;this.y=b}function v(){}v.prototype=t.prototype;u.v=t.prototype;u.prototype=new v;function w(a){return Math.sqrt(a.x*a.x+a.y*a.y)}u.prototype.scale=function(a){this.x*=a;this.y*=a;return this};u.prototype.normalize=function(){return this.scale(1/w(this))};u.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function x(a,b){this.e=new t(a||0,b||0);this.target=new t;this.g=new u(0,0);this.s=0.5*Math.random()}x.prototype.update=function(a){var b,e;b=new u(this.target.x-this.e.x,this.target.y-this.e.y);a&&(e=new u(this.e.x-a.x,this.e.y-a.y),a=w(e),e.normalize().scale(1E3/a),b.add(e));this.g.scale(1-ea);this.g.add(b.scale((1+this.s)/fa));w(this.g)>y&&this.g.normalize().scale(y);this.e.x+=this.g.x;this.e.y+=this.g.y};var fa=200,ea=0.08,y=20;var z,A,B,C;function D(){return q.navigator?q.navigator.userAgent:n}C=B=A=z=o;var E;if(E=D()){var ga=q.navigator;z=0==E.indexOf("Opera");A=!z&&-1!=E.indexOf("MSIE");B=!z&&-1!=E.indexOf("WebKit");C=!z&&!B&&"Gecko"==ga.product}var F=A,G=C,ha=B,H;
+a:{var I="",J;if(z&&q.opera)var K=q.opera.version,I="function"==typeof K?K():K;else if(G?J=/rv\:([^\);]+)(\)|;)/:F?J=/MSIE\s+([^\);]+)(\)|;)/:ha&&(J=/WebKit\/(\S+)/),J)var ia=J.exec(D()),I=ia?ia[1]:"";if(F){var L,ja=q.document;L=ja?ja.documentMode:m;if(L>parseFloat(I)){H=String(L);break a}}H=I}var ka={};
+function la(a){if(!ka[a]){for(var b=0,e=String(H).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),c=Math.max(e.length,d.length),h=0;0==b&&h<c;h++){var j=e[h]||"",g=d[h]||"",f=/(\d*)(\D*)/g,k=/(\d*)(\D*)/g;do{var i=f.exec(j)||["","",""],l=k.exec(g)||["","",""];if(0==i[0].length&&0==l[0].length)break;b=((0==i[1].length?0:parseInt(i[1],10))<(0==l[1].length?0:parseInt(l[1],10))?-1:(0==i[1].length?0:parseInt(i[1],10))>(0==l[1].length?0:parseInt(l[1],
+10))?1:0)||((0==i[2].length)<(0==l[2].length)?-1:(0==i[2].length)>(0==l[2].length)?1:0)||(i[2]<l[2]?-1:i[2]>l[2]?1:0)}while(0==b)}ka[a]=0<=b}}var ma={};function na(){return ma[9]||(ma[9]=F&&!!document.documentMode&&9<=document.documentMode)};!F||na();!G&&!F||F&&na()||G&&la("1.9.1");F&&la("9");function oa(){this.buffer={length:0};this.length=0}oa.prototype={get:function(a){return 1==(this.buffer[Math.floor(a/8)]>>>7-a%8&1)},put:function(a,b){for(var e=0;e<b;e++)pa(this,1==(a>>>b-e-1&1))}};function pa(a,b){var e=Math.floor(a.length/8);a.buffer.length<=e&&(a.buffer[a.buffer.length++]=0);b&&(a.buffer[e]|=128>>>a.length%8);a.length++};function qa(a){this.mode=4;this.data=a}qa.prototype={c:function(){return this.data.length},write:function(a){for(var b=0;b<this.data.length;b++)a.put(this.data.charCodeAt(b),8)}};function ra(a,b){this.t=a;this.o=b}
+var M=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,
+20],[6,43,15,2,44,16]];function sa(a,b){switch(b){case 1:return M[4*(a-1)+0];case 0:return M[4*(a-1)+1];case 3:return M[4*(a-1)+2];case 2:return M[4*(a-1)+3]}};function N(a){if(1>a)throw Error("glog("+a+")");return ta[a]}function O(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return P[a]}var P={length:256},ta={length:256},Q;for(Q=0;8>Q;Q++)P[Q]=1<<Q;for(Q=8;256>Q;Q++)P[Q]=P[Q-4]^P[Q-5]^P[Q-6]^P[Q-8];for(Q=0;255>Q;Q++)ta[P[Q]]=Q;function R(a,b){if(a.length==m)throw Error(a.length+"/"+b);for(var e=0;e<a.length&&0==a[e];)e++;this.k={length:a.length-e+b};for(var d=0;d<a.length-e;d++)this.k[d]=a[d+e]}R.prototype={get:function(a){return this.k[a]},c:function(){return this.k.length},multiply:function(a){for(var b={length:this.c()+a.c()-1},e=0;e<this.c();e++)for(var d=0;d<a.c();d++)b[e+d]^=O(N(this.get(e))+N(a.get(d)));return new R(b,0)}};
+function ua(a,b){if(0>a.c()-b.c())return a;var e=N(a.get(0))-N(b.get(0)),d={length:a.c()},c;for(c=0;c<a.c();c++)d[c]=a.get(c);for(c=0;c<b.c();c++)d[c]^=O(N(b.get(c))+e);return ua(new R(d,0),b)};var va=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,
+50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]];function S(a){for(var b=0;0!=a;)b++,a>>>=1;return b}function wa(a,b,e){switch(a){case 0:return 0==(b+e)%2;case 1:return 0==b%2;case 2:return 0==e%3;case 3:return 0==(b+e)%3;case 4:return 0==(Math.floor(b/2)+Math.floor(e/3))%2;case 5:return 0==b*e%2+b*e%3;case 6:return 0==(b*e%2+b*e%3)%2;case 7:return 0==(b*e%3+(b+e)%2)%2;default:throw Error("bad maskPattern:"+a);}}
+function xa(a,b){if(1<=b&&10>b)switch(a){case 1:return 10;case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("mode:"+a);}else if(27>b)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("mode:"+a);}else if(41>b)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("mode:"+a);}else throw Error("type:"+b);};function ya(a,b){this.f=a;this.q=b;this.a=4*this.f+17;this.b=[this.a];for(var e=0;e<this.a;e++){this.b[e]=[this.a];for(var d=0;d<this.a;d++)this.b[e][d]=n}this.i=n;this.p=[]}ya.prototype={};function T(a,b,e){for(var d=-1;7>=d;d++)if(!(-1>=b+d||a.a<=b+d))for(var c=-1;7>=c;c++)-1>=e+c||a.a<=e+c||(a.b[b+d][e+c]=0<=d&&6>=d&&(0==c||6==c)||0<=c&&6>=c&&(0==d||6==d)||2<=d&&4>=d&&2<=c&&4>=c?!0:o)}function U(a,b,e){if(0>b||a.a<=b||0>e||a.a<=e)throw Error(b+","+e);return a.b[b][e]}
+function za(a,b,e){T(a,0,0);T(a,a.a-7,0);T(a,0,a.a-7);for(var d=va[a.f-1],c=0;c<d.length;c++)for(var h=0;h<d.length;h++){var j=d[c],g=d[h];if(a.b[j][g]==n)for(var f=-2;2>=f;f++)for(var k=-2;2>=k;k++)a.b[j+f][g+k]=-2==f||2==f||-2==k||2==k||0==f&&0==k?!0:o}for(d=8;d<a.a-8;d++)a.b[d][6]==n&&(a.b[d][6]=0==d%2);for(d=8;d<a.a-8;d++)a.b[6][d]==n&&(a.b[6][d]=0==d%2);d=a.q<<3|e;for(c=d<<10;0<=S(c)-S(1335);)c^=1335<<S(c)-S(1335);d=(d<<10|c)^21522;for(c=0;15>c;c++)h=!b&&1==(d>>c&1),6>c?a.b[c][8]=h:8>c?a.b[c+
+1][8]=h:a.b[a.a-15+c][8]=h;for(c=0;15>c;c++)h=!b&&1==(d>>c&1),8>c?a.b[8][a.a-c-1]=h:9>c?a.b[8][15-c-1+1]=h:a.b[8][15-c-1]=h;a.b[a.a-8][8]=!b;if(7<=a.f){d=a.f;for(c=d<<12;0<=S(c)-S(7973);)c^=7973<<S(c)-S(7973);d=d<<12|c;for(c=0;18>c;c++)h=!b&&1==(d>>c&1),a.b[Math.floor(c/3)][c%3+a.a-8-3]=h;for(c=0;18>c;c++)h=!b&&1==(d>>c&1),a.b[c%3+a.a-8-3][Math.floor(c/3)]=h}if(a.i==n){c=a.f;h=a.p;b=a.q;d=sa(c,b);if(d==m)throw Error("bad rs block @ typeNumber:"+c+"/errorCorrectLevel:"+b);j=d.length/3;b={length:0};
+for(g=0;g<j;g++)for(var f=d[3*g+0],k=d[3*g+1],i=d[3*g+2],l=0;l<f;l++)b[b.length++]=new ra(k,i);d=new oa;for(j=0;j<h.length;j++)g=h[j],d.put(g.mode,4),d.put(g.c(),xa(g.mode,c)),g.write(d);for(j=c=0;j<b.length;j++)c+=b[j].o;if(d.length>8*c)throw Error("code length overflow. ("+d.length+">"+8*c+")");for(d.length+4<=8*c&&d.put(0,4);0!=d.length%8;)pa(d,o);for(;!(d.length>=8*c);){d.put(236,8);if(d.length>=8*c)break;d.put(17,8)}h=c=k=0;j={length:b.length};g={length:b.length};for(f=0;f<b.length;f++){var l=
+b[f].o,p=b[f].t-l,c=Math.max(c,l),h=Math.max(h,p);j[f]={length:l};for(i=0;i<j[f].length;i++)j[f][i]=255&d.buffer[i+k];k+=l;i=p;l=new R([1],0);for(p=0;p<i;p++)l=l.multiply(new R([1,O(p)],0));i=l;l=ua(new R(j[f],i.c()-1),i);g[f]={length:i.c()-1};for(i=0;i<g[f].length;i++)p=i+l.c()-g[f].length,g[f][i]=0<=p?l.get(p):0}for(i=0;i<b.length;i++);d=[];for(i=0;i<c;i++)for(f=0;f<b.length;f++)i<j[f].length&&d.push(j[f][i]);for(i=0;i<h;i++)for(f=0;f<b.length;f++)i<g[f].length&&d.push(g[f][i]);a.i=d}b=a.i;d=-1;
+c=a.a-1;h=7;j=0;for(g=a.a-1;0<g;g-=2)for(6==g&&g--;;){for(f=0;2>f;f++)a.b[c][g-f]==n&&(k=o,j<b.length&&(k=1==(b[j]>>>h&1)),wa(e,c,g-f)&&(k=!k),a.b[c][g-f]=k,h--,-1==h&&(j++,h=7));c+=d;if(0>c||a.a<=c){c-=d;d=-d;break}}};function Aa(a){var b;b="_gaq"in q?q._gaq:n;if(!b){var e=b=[];if("_gaq"in q)throw Error('The object already contains the key "_gaq"');q._gaq=e}b.push(a)}function Ba(a){var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;a=document.getElementsByTagName("head");if(1!=a.length)throw Error("Couldn't find a single head tag.");var a=a[0],e=a.getElementsByTagName("script");0==e.length?a.appendChild(b):(a=e[0],a.parentNode&&a.parentNode.insertBefore(b,a))};function V(a,b){Ba("http://www.google-analytics.com/ga.js");Aa(["_setAccount","UA-22691951-1"]);Aa(["_trackPageview"]);q.sc_project=6793701;q.sc_security="6b3ec070";q.sc_invisible=1;Ba("http://www.statcounter.com/counter/counter_xhtml.js");this.canvas=a;this.input=b;this.f=10;this.size=4*this.f+17;this.scale=5;this.h=(this.size+2*W)*this.scale;$(b).width(this.h).val("Type your message here...").bind("keyup",r(this.l,this));$(this.canvas).attr("width",this.h).attr("height",this.h).mousemove(r(this.r,
+this)).mouseout(r(this.j,this)).mouseleave(r(this.j,this)).mouseenter(r(this.j,this));this.context=this.canvas.getContext("2d");this.context.setTransform(1,0,0,1,this.scale*W,this.scale*W);this.d=[];this.l();this.n()}var X=["app","Application"],Y=q;!(X[0]in Y)&&Y.execScript&&Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)!X.length&&V!==m?Y[Z]=V:Y=Y[Z]?Y[Z]:Y[Z]={};V.prototype.j=function(){this.m=n};
+V.prototype.r=function(a){var b=$(this.canvas).offset();this.m=new t(a.pageX-b.left-(W+0.5)*this.scale,a.pageY-b.top-(W+0.5)*this.scale)};
+V.prototype.l=function(){var a,b;b=$(this.input).val();if(this.value!==b){this.value=b;a=new ya(this.f,3);a.p.push(new qa(b));a.i=n;for(var e=b=0,d=0;8>d;d++){za(a,!0,d);var c;c=a;for(var h=c.a,j=0,g=m,f=m,g=0;g<h;g++)for(f=0;f<h;f++){for(var k=0,i=U(c,g,f),l=-1;1>=l;l++)if(!(0>g+l||h<=g+l))for(var p=-1;1>=p;p++)0>f+p||h<=f+p||0==l&&0==p||i==U(c,g+l,f+p)&&k++;5<k&&(j+=3+k-5)}for(g=0;g<h-1;g++)for(f=0;f<h-1;f++)if(k=0,U(c,g,f)&&k++,U(c,g+1,f)&&k++,U(c,g,f+1)&&k++,U(c,g+1,f+1)&&k++,0==k||4==k)j+=3;
+for(g=0;g<h;g++)for(f=0;f<h-6;f++)U(c,g,f)&&(!U(c,g,f+1)&&U(c,g,f+2)&&U(c,g,f+3)&&U(c,g,f+4)&&!U(c,g,f+5)&&U(c,g,f+6))&&(j+=40);for(f=0;f<h;f++)for(g=0;g<h-6;g++)U(c,g,f)&&(!U(c,g+1,f)&&U(c,g+2,f)&&U(c,g+3,f)&&U(c,g+4,f)&&!U(c,g+5,f)&&U(c,g+6,f))&&(j+=40);for(f=k=0;f<h;f++)for(g=0;g<h;g++)U(c,g,f)&&k++;c=j+=10*(Math.abs(100*k/h/h-50)/5);if(0==d||b>c)b=c,e=d}za(a,o,e);b=[];for(d=0;d<this.size;){for(e=0;e<this.size;)U(a,d,e)&&b.push(new t(e*this.scale,d*this.scale)),e++;d++}for(;this.d.length>b.length;)a=
+Math.floor(Math.random()*this.d.length),s.splice.call(this.d,a,1);for(;this.d.length<b.length;)e=d=(this.size-1)*this.scale/2,e=new x(e,d),a=Math.floor(Math.random()*this.d.length),ca(this.d,a,0,e);a=this.d;e=this.size;a.length&&(e%=a.length,0<e?s.unshift.apply(a,a.splice(-e,e)):0>e&&s.push.apply(a,a.splice(0,-e)));for(a=0;a<b.length;)this.d[a].target.x=b[a].x,this.d[a].target.y=b[a].y,a++;this.u=o}};
+V.prototype.n=function(){var a,b;this.context.fillStyle="white";this.context.fillRect(-W*this.scale,-W*this.scale,this.h,this.h);this.context.fillStyle="black";for(a=0;a<this.d.length;)b=this.d[a],b.update(this.m),this.context.fillRect(b.e.x,b.e.y,this.scale,this.scale),a++;a=r(this.n,this);(q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame||function(a){q.setTimeout(a,17)})(a)};var W=10;
13 js/deps.js
View
@@ -70,13 +70,14 @@ goog.addDependency('../../../pl/src/box2d/dynamics/joints/b2PulleyJoint.js', ['b
goog.addDependency('../../../pl/src/box2d/dynamics/joints/b2PulleyJointDef.js', ['box2d.PulleyJointDef'], ['box2d.JointDef']);
goog.addDependency('../../../pl/src/box2d/dynamics/joints/b2RevoluteJoint.js', ['box2d.RevoluteJoint'], ['box2d.Joint', 'box2d.RevoluteJointDef']);
goog.addDependency('../../../pl/src/box2d/dynamics/joints/b2RevoluteJointDef.js', ['box2d.RevoluteJointDef'], ['box2d.Joint', 'box2d.JointDef', 'box2d.Vec2']);
+goog.addDependency('../../../pl/src/data/model.js', ['pl.data.Model'], ['goog.events.EventTarget']);
goog.addDependency('../../../pl/src/debugDiv.js', ['pl.DebugDiv'], ['goog.asserts', 'goog.debug.LogManager', 'goog.dom', 'goog.style']);
goog.addDependency('../../../pl/src/ex.js', ['pl.ex'], ['goog.array', 'goog.asserts', 'goog.iter', 'goog.math.Rect', 'goog.math.Size', 'goog.string', 'goog.style']);
goog.addDependency('../../../pl/src/fpsLogger.js', ['pl.FpsLogger'], []);
-goog.addDependency('../../../pl/src/gfx.js', ['pl.gfx'], ['goog.asserts', 'goog.graphics.AffineTransform', 'goog.math.Size']);
+goog.addDependency('../../../pl/src/gfx.js', ['pl.gfx'], ['goog.asserts', 'goog.graphics.AffineTransform', 'goog.math.Line', 'goog.math.Size']);
goog.addDependency('../../../pl/src/graph.js', ['pl.Graph'], ['goog.array', 'goog.math', 'goog.structs.Map', 'goog.structs.Set', 'pl.ex']);
-goog.addDependency('../../../pl/src/graphNode.js', ['pl.GraphNode'], ['goog.math.Vec2', 'pl.Graph', 'pl.ex']);
-goog.addDependency('../../../pl/src/graphPhysics.js', ['pl.graphPhysics'], ['goog.math.Box', 'goog.math.Size', 'goog.math.Vec2', 'pl.Graph', 'pl.GraphNode']);
+goog.addDependency('../../../pl/src/graphPhysics.js', ['pl.GraphPhysics'], ['goog.math.Box', 'goog.math.Size', 'goog.math.Vec2', 'pl.Graph', 'pl.GraphPoint']);
+goog.addDependency('../../../pl/src/graphPoint.js', ['pl.GraphPoint'], ['goog.math.Vec2', 'pl.Graph', 'pl.ex']);
goog.addDependency('../../../pl/src/images.js', ['pl.images'], ['goog.asserts', 'goog.net.EventType', 'goog.net.ImageLoader', 'goog.object']);
goog.addDependency('../../../pl/src/keyBinding.js', ['pl.KeyBinding', 'pl.KeyBindingEvent'], ['goog.events.Event', 'goog.events.EventTarget', 'goog.ui.KeyboardShortcutHandler', 'goog.ui.KeyboardShortcutHandler.EventType']);
goog.addDependency('../../../pl/src/property.js', ['pl.Property'], ['goog.array', 'goog.math.Coordinate', 'goog.math.Size']);
@@ -92,17 +93,17 @@ goog.addDependency('../../../pl/src/retained/_navLayerTxPanel.js', ['pl.retained
goog.addDependency('../../../pl/src/retained/alignment.js', ['pl.retained.HorizontalAlignment', 'pl.retained.VerticalAlignment'], []);
goog.addDependency('../../../pl/src/retained/animation.js', ['pl.retained.Animation'], ['goog.asserts', 'pl.Behavior', 'pl.retained.EventType']);
goog.addDependency('../../../pl/src/retained/canvas.js', ['pl.retained.Canvas'], ['goog.graphics.AffineTransform', 'goog.math.Coordinate', 'pl.retained.Element', 'pl.retained.Panel']);
-goog.addDependency('../../../pl/src/retained/carouselContainer.js', ['pl.retained.CarouselContainer'], ['goog.array', 'goog.graphics.AffineTransform', 'goog.math.Coordinate', 'goog.math.Size', 'pl.retained.Element', 'pl.retained.Panel']);
+goog.addDependency('../../../pl/src/retained/carouselPanel.js', ['pl.retained.CarouselPanel'], ['goog.array', 'goog.graphics.AffineTransform', 'goog.math.Coordinate', 'goog.math.Size', 'pl.retained.Element', 'pl.retained.Panel']);
goog.addDependency('../../../pl/src/retained/element.js', ['pl.retained.Element'], ['goog.array', 'goog.asserts', 'goog.color.alpha', 'goog.events.EventTarget', 'goog.graphics.AffineTransform', 'goog.math.Box', 'goog.math.Coordinate', 'goog.math.Rect', 'goog.math.Size', 'pl.gfx', 'pl.retained.ElementParent', 'pl.retained.EventType']);
goog.addDependency('../../../pl/src/retained/elementParent.js', ['pl.retained.ElementParent'], ['goog.array', 'goog.asserts']);
goog.addDependency('../../../pl/src/retained/eventType.js', ['pl.retained.EventType'], []);
-goog.addDependency('../../../pl/src/retained/graphElement.js', ['pl.retained.GraphElement'], ['goog.array', 'goog.asserts', 'goog.math.Vec2', 'pl.GraphNode', 'pl.Property', 'pl.graphPhysics', 'pl.retained.Element']);
+goog.addDependency('../../../pl/src/retained/graphElement.js', ['pl.retained.GraphElement'], ['goog.array', 'goog.asserts', 'goog.math.Vec2', 'pl.GraphPhysics', 'pl.GraphPoint', 'pl.Property', 'pl.retained.Element', 'pl.retained.Shape', 'pl.retained.ShapeType']);
goog.addDependency('../../../pl/src/retained/helper.js', ['pl.retained.helper'], ['goog.array', 'goog.math.Coordinate', 'goog.math.Size', 'pl.ex', 'pl.gfx', 'pl.retained.Element', 'pl.retained.mouse']);
goog.addDependency('../../../pl/src/retained/image.js', ['pl.retained.Image'], ['pl.gfx', 'pl.retained.Element']);
goog.addDependency('../../../pl/src/retained/mouse.js', ['pl.retained.mouse'], ['goog.array', 'goog.math.Coordinate', 'pl.Property', 'pl.retained.Stage']);
goog.addDependency('../../../pl/src/retained/navLayer.js', ['pl.retained.NavLayer'], ['goog.array', 'goog.asserts', 'goog.graphics.AffineTransform', 'goog.math.Vec2', 'pl.Property', 'pl.retained.Element', 'pl.retained.ElementParent', 'pl.retained.HorizontalAlignment', 'pl.retained.Image', 'pl.retained.Panel', 'pl.retained.VerticalAlignment', 'pl.retained._NavLayerTxPanel']);
goog.addDependency('../../../pl/src/retained/panel.js', ['pl.retained.Panel'], ['goog.array', 'goog.asserts', 'pl.Property', 'pl.retained.Element', 'pl.retained.ElementParent', 'pl.retained.helper']);
-goog.addDependency('../../../pl/src/retained/shape.js', ['pl.retained.Shape'], ['pl.gfx', 'pl.retained.Element']);
+goog.addDependency('../../../pl/src/retained/shape.js', ['pl.retained.Shape', 'pl.retained.ShapeType'], ['pl.gfx', 'pl.retained.Element']);
goog.addDependency('../../../pl/src/retained/stage.js', ['pl.retained.Stage'], ['goog.events.EventTarget', 'goog.math.Coordinate', 'goog.math.Size', 'pl.ex', 'pl.retained.Element', 'pl.retained.ElementParent', 'pl.retained.EventType']);
goog.addDependency('../../../pl/src/retained/text.js', ['pl.retained.Text'], ['pl.gfx', 'pl.retained.Element']);
goog.addDependency('../../../pl/src/retained/tileLayer.js', ['pl.retained.TileLayer'], ['goog.math.Vec2', 'pl.ex', 'pl.gfx']);
2  js/pl
@@ -1 +1 @@
-Subproject commit a8d96f17eaa1798c35b232c78dc386ec6f0c20b4
+Subproject commit 75f1dee86071cde16b88a98ac6fa46d8c0a0fd0b
Please sign in to comment.
Something went wrong with that request. Please try again.