1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/new/scripts/mootools.v1.11.js

4 lines
23 KiB
JavaScript
Raw Normal View History

//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('m 7X={7Y:\'1.11\'};h $3q(R){c(R!=6N)};h $q(R){k(!$3q(R))c P;k(R.2R)c\'W\';m q=3Q R;k(q==\'2a\'&&R.7W){1C(R.4Z){Q 1:c\'W\';Q 3:c(/\\S/).2e(R.6u)?\'7V\':\'7T\'}}k(q==\'2a\'||q==\'h\'){1C(R.5u){Q 1r:c\'15\';Q 4F:c\'53\';Q 1f:c\'4o\'}k(3Q R.H==\'3U\'){k(R.1V)c\'7U\';k(R.6o)c\'M\'}}c q};h $21(){m 3h={};G(m i=0;i<M.H;i++){G(m t 1g M[i]){m ap=M[i][t];m 3j=3h[t];k(3j&&$q(ap)==\'2a\'&&$q(3j)==\'2a\')3h[t]=$21(3j,ap);T 3h[t]=ap}}c 3h};m $N=h(){m U=M;k(!U[1])U=[7,U[0]];G(m t 1g U[1])U[0][t]=U[1][t];c U[0]};m $2P=h(){G(m i=0,l=M.H;i<l;i++){M[i].N=h(1e){G(m 1j 1g 1e){k(!7.1c[1j])7.1c[1j]=1e[1j];k(!7[1j])7[1j]=$2P.3w(1j)}}}};$2P.3w=h(1j){c h(J){c 7.1c[1j].2O(J,1r.1c.6B.1H(M,1))}};$2P(4q,1r,4L,7c);h $33(R){c!!(R||R===0)};h $49(R,5t){c $3q(R)?R:5t};h $4w(2y,1L){c 1z.7Z(1z.4w()*(1L-2y+1)+2y)};h $28(){c V 5P().5H()};h $4C(1K){80(1K);85(1K);c 1d};m 2s=h(R){R=R||{};R.N=$N;c R};m 86=V 2s(C);m 84=V 2s(F);F.74=F.2n(\'74\')[0];C.2h=!!(F.6l);k(C.83)C.1I=C[C.81?\'82\':\'6F\']=12;T k(F.5U&&!F.7S&&!7R.7H)C.2C=C[C.2h?\'7I\':\'3S\']=12;T k(F.7G!=1d)C.52=12;C.7F=C.2C;7C.N=$N;k(3Q 3g==\'6N\'){m 3g=h(){};k(C.2C)F.7a("7D");3g.1c=(C.2C)?C["[[7E.1c]]"]:{}}3g.1c.2R=h(){};k(C.6F)4U{F.7J("7K",P,12)}4T(e){};m 1f=h(1S){m 3a=h(){c(M[0]!==1d&&7.1O&&$q(7.1O)==\'h\')?7.1O.2O(7,M):7};$N(3a,7);3a.1c=1S;3a.5u=1f;c 3a};1f.2j=h(){};1f.1c={N:h(1S){m 3i=V 7(1d);G(m t 1g 1S){m 6d=3i[t];3i[t]=1f.64(6d,1S[t])}c V 1f(3i)},6r:h(){G(m i=0,l=M.H;i<l;i++)$N(7.1c,M[i])}};1f.64=h(2o,1l){k(2o&&2o!=1l){m q=$q(1l);k(q!=$q(2o))c 1l;1C(q){Q\'h\':m 4n=h(){7.1B=M.6o.1B;c 1l.2O(7,M)};4n.1B=2o;c 4n;Q\'2a\':c $21(2o,1l)}}c 1l};m 6p=V 1f({7P:h(B){7.2t=7.2t||[];7.2t.14(B);c 7},7n:h(){k(7.2t&&7.2t.H)7.2t.6g().1v(10,7)},7Q:h(){7.2t=[]}});m 1T=V 1f({1G:h(q,B){k(B!=1f.2j){7.$K=7.$K||{};7.$K[q]=7.$K[q]||[];7.$K[q].4r(B)}c 7},26:h(q,U,1v){k(7.$K&&7.$K[q]){7.$K[q].1t(h(B){B.1M({\'J\':7,\'1v\':1v,\'M\':U})()},7)}c 7},3V:h(q,B){k(7.$K&&7.$K[q])7.$K[q].2F(B);c 7}});m 6n=V 1f({7h:h(){7.u=$21.2O(1d,[7.u].N(M));k(7.1G){G(m 3c 1g 7.u){k($q(7.u[3c]==\'h\')&&(/^4E[A-Z]/).2e(3c))7.1G(3c,7.u[3c])}}c 7}});1r.N({3H:h(B,J){G(m i=0,j=7.H;i<j;i++)B.1H(J,7[i],i,7)},1X:h(B,J){m 2I=[];G(m i=0,j=7.H;i<j;i++){k(B.1H(J,7[i],i,7))2I.14(7[i])}c 2I},2c:h(B,J){m 2I=[];G(m i=0,j=7.H;i<j;i++)2I[i]=B.1H(J,7[i],i,7);c 2I},3x:h(B,J){G(m i=0,j=7.H;i<j;i++){k(!B.1H(J,7[i],i,7))c P}c 12},7N:h(B,J){G(m i=0,j=7.H;i<j;i++){k(B.1H(J,7[i],i,7))c 12}c P},2B:h(1V,19){m 2J=7.H;G(m i=(19<0)?1z.1L(0,2J+19):19||0;i<2J;i++){k(7[i]===1V)c i}c-1},6R:h(1u,H){1u=1u||0;k(1u<0)1u=7.H+1u;H=H||(7.H-1u);m 4v=[];G(m i=0;i<H;i++)4v[i]=7[1u++];c 4v},2F:h(1V){m i=0;m 2J=7.H;5h(i<2J){k(7[i]===1V){7.3K(i,1);2J--}T{i++}}c 7},Y:h(1V,19){c 7.2B(1V,19)!=-1},7L:h(1k){m R={},H=1z.2y(7.H,1k.H);G(m i=0;i<H;i++)R[1k[i]]=7[i];c R},N:h(15){G(m i=0,j=15.H;i<j;i++)7.14(15[i]);c 7},21:h(15){G(m i=0,l=15.H;i<l;i++)7.4r(15[i]);c 7},4r:h(1V){k(!7.Y(1V))7.14(1V);c 7},7M:h(){c 7[$4w(0,7.H-1)]||1d},62:h(){c 7[7.H-1]||1d}});1r.1c.1t=1r.1c.3H;1r.1t=1r.3H;h $A(15){c 1r.6R(15)};h $1t(2f,B,J){k(2f&&3Q 2f.H==\'3U\'&&$q(2f)!=\'2a\'){1r.3H(2f,B,J)}T{G(m 1q 1g 2f)B.1H(J||2f,2f[1q],1q)}};1r.1c.2e=1r.1c.Y;4L.N({2e:h(3E,6J){c(($q(3E)==\'23\')?V 4F(3E,6J):3E).2e(7)},3p:h(){c 36(7,10)},72:h(){c 4G(7)},4p:h(){c 7.2q(/-\\D/g,h(1D){c 1D.4g(1).6y()})},6E:h(){c 7.2q(/\\w[A-Z]/g,h(1D){c(1D.4g(0)+\'-\'+1D.4g(1).3L())})},71:h(){c 7.2q(/\\b[a-z]/g,h(1D){c 1D.6y()})},57:h(){c 7.2q(/^\\s+|\\s+$/g,\'\')},4K:h(){c 7.2q(/\\s{2,}/g,\' \').57()},3A:h(15){m 1Q=7.1D(/\\d{1,3}/g);c(1Q)?1Q.3A(15):P},4b:h(15){m 2G=7.1D(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);c(2G)?2G.6B(1).4b(15):P},Y:h(23,s){c(s)?(s+7+s).2B(s+23+s)>-1:7.2B(23)>-1},7m:h(){c 7.2q(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});1r.N({3A:h(15){k(7.H<3)c P;k(7.H==4&&7[3]==0&&!15)c\'88\';m 2G=[];G(m i=0;i<3;i++){m 2W=(7[i]-0).8u(16)