h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return ra(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(X(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ua(a,{parser:function(a,d,e,f,g,h,i){var j=new pa(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=m||n;var wa,xa="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),ya=V("transform"),za=T+"transform",Aa=V("transformOrigin"),Ba=null!==V("perspective"),Ca=O.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=!(!1===g.defaultForce3D||!Ba)&&(g.defaultForce3D||"auto")},Da=window.SVGElement,Ea=function(a,b,c){var d,e=K.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Fa=K.documentElement,Ga=function(){var a,b,c,d=p||/Android/i.test(P)&&!window.chrome;return K.createElementNS&&!d&&(a=Ea("svg",Fa),b=Ea("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Aa]="50% 50%",b.style[ya]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Ba),Fa.removeChild(a)),d}(),Ha=function(a,b,c,d,e){var f,h,i,j,k,l,m,n,o,p,q,r,s,t,u=a._gsTransform,v=Ka(a,!0);u&&(s=u.xOrigin,t=u.yOrigin),(!d||(f=d.split(" ")).length<2)&&(m=a.getBBox(),b=da(b).split(" "),f=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*m.width:parseFloat(b[0]))+m.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*m.height:parseFloat(b[1]))+m.y]),c.xOrigin=j=parseFloat(f[0]),c.yOrigin=k=parseFloat(f[1]),d&&v!==Ja&&(l=v[0],m=v[1],n=v[2],o=v[3],p=v[4],q=v[5],r=l*o-m*n,h=j*(o/r)+k*(-n/r)+(n*q-o*p)/r,i=j*(-m/r)+k*(l/r)-(l*q-m*p)/r,j=c.xOrigin=f[0]=h,k=c.yOrigin=f[1]=i),u&&(e||!1!==e&&!1!==g.defaultSmoothOrigin?(h=j-s,i=k-t,u.xOffset+=h*v[0]+i*v[2]-h,u.yOffset+=h*v[1]+i*v[3]-i):u.xOffset=u.yOffset=0),a.setAttribute("data-svg-origin",f.join(" "))},Ia=function(a){return!!(Da&&"function"==typeof a.getBBox&&a.getCTM&&(!a.parentNode||a.parentNode.getBBox&&a.parentNode.getCTM))},Ja=[1,0,0,1,0,0],Ka=function(a,b){var c,d,e,f,g,h=a._gsTransform||new Ca,i=1e5;if(ya?d=X(a,za,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(E),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),h.x||0,h.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,(h.svg||a.getBBox&&Ia(a))&&(c&&-1!==(a.style[ya]+"").indexOf("matrix")&&(d=a.style[ya],c=0),e=a.getAttribute("transform"),c&&e&&(-1!==e.indexOf("matrix")?(d=e,c=0):-1!==e.indexOf("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return Ja;for(e=(d||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],sa=e.length;--sa>-1;)f=Number(e[sa]),e[sa]=(g=f-(f|=0))?(g*i+(0>g?-.5:.5)|0)/i+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},La=O.getTransform=function(a,c,d,f){if(a._gsTransform&&d&&!f)return a._gsTransform;var h,i,j,k,l,m,n=d?a._gsTransform||new Ca:new Ca,o=n.scaleX<0,p=2e-5,q=1e5,r=Ba?parseFloat(X(a,Aa,c,!1,"0 0 0").split(" ")[2])||n.zOrigin||0:0,s=parseFloat(g.defaultTransformPerspective)||0;if(n.svg=!(!a.getBBox||!Ia(a)),n.svg&&(Ha(a,X(a,Aa,e,!1,"50% 50%")+"",n,a.getAttribute("data-svg-origin")),wa=g.useSVGTransformAttr||Ga),(h=Ka(a))!==Ja){if(16===h.length){var t,u,v,w,x,y=h[0],z=h[1],A=h[2],B=h[3],C=h[4],D=h[5],E=h[6],F=h[7],G=h[8],H=h[9],J=h[10],K=h[12],L=h[13],M=h[14],N=h[11],O=Math.atan2(E,J);n.zOrigin&&(M=-n.zOrigin,K=G*M-h[12],L=H*M-h[13],M=J*M+n.zOrigin-h[14]),n.rotationX=O*I,O&&(w=Math.cos(-O),x=Math.sin(-O),t=C*w+G*x,u=D*w+H*x,v=E*w+J*x,G=C*-x+G*w,H=D*-x+H*w,J=E*-x+J*w,N=F*-x+N*w,C=t,D=u,E=v),O=Math.atan2(-A,J),n.rotationY=O*I,O&&(w=Math.cos(-O),x=Math.sin(-O),t=y*w-G*x,u=z*w-H*x,v=A*w-J*x,H=z*x+H*w,J=A*x+J*w,N=B*x+N*w,y=t,z=u,A=v),O=Math.atan2(z,y),n.rotation=O*I,O&&(w=Math.cos(-O),x=Math.sin(-O),y=y*w+C*x,u=z*w+D*x,D=z*-x+D*w,E=A*-x+E*w,z=u),n.rotationX&&Math.abs(n.rotationX)+Math.abs(n.rotation)>359.9&&(n.rotationX=n.rotation=0,n.rotationY=180-n.rotationY),n.scaleX=(Math.sqrt(y*y+z*z)*q+.5|0)/q,n.scaleY=(Math.sqrt(D*D+H*H)*q+.5|0)/q,n.scaleZ=(Math.sqrt(E*E+J*J)*q+.5|0)/q,n.skewX=0,n.perspective=N?1/(0>N?-N:N):0,n.x=K,n.y=L,n.z=M,n.svg&&(n.x-=n.xOrigin-(n.xOrigin*y-n.yOrigin*C),n.y-=n.yOrigin-(n.yOrigin*z-n.xOrigin*D))}else if((!Ba||f||!h.length||n.x!==h[4]||n.y!==h[5]||!n.rotationX&&!n.rotationY)&&(void 0===n.x||"none"!==X(a,"display",c))){var P=h.length>=6,Q=P?h[0]:1,R=h[1]||0,S=h[2]||0,T=P?h[3]:1;n.x=h[4]||0,n.y=h[5]||0,j=Math.sqrt(Q*Q+R*R),k=Math.sqrt(T*T+S*S),l=Q||R?Math.atan2(R,Q)*I:n.rotation||0,m=S||T?Math.atan2(S,T)*I+l:n.skewX||0,Math.abs(m)>90&&Math.abs(m)<270&&(o?(j*=-1,m+=0>=l?180:-180,l+=0>=l?180:-180):(k*=-1,m+=0>=m?180:-180)),n.scaleX=j,n.scaleY=k,n.rotation=l,n.skewX=m,Ba&&(n.rotationX=n.rotationY=n.z=0,n.perspective=s,n.scaleZ=1),n.svg&&(n.x-=n.xOrigin-(n.xOrigin*Q+n.yOrigin*S),n.y-=n.yOrigin-(n.xOrigin*R+n.yOrigin*T))}n.zOrigin=r;for(i in n)n[i]-p&&(n[i]=0)}return d&&(a._gsTransform=n,n.svg&&(wa&&a.style[ya]?b.delayedCall(.001,function(){Pa(a.style,ya)}):!wa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),n},Ma=function(a){var b,c,d=this.data,e=-d.rotation*H,f=e+d.skewX*H,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,w=d.x+q*d.xPercent/100,x=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,w+=n-(n*h+o*i),x+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+w)+", Dy="+(o-(n*j+o*k)+x)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(F,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||v.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+w),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+x),sa=0;4>sa;sa++)z=ba[sa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):Y(this.t,z,parseFloat(y),y.replace(u,""))||0,A=c!==d[z]?2>sa?-d.ieOffsetX:-d.ieOffsetY:2>sa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===sa||2===sa?1:B)))+"px"}}},Na=O.set3DTransformRatio=O.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,I=z.x,J=z.y,K=z.z,L=z.svg,M=z.perspective,N=z.force3D;if(((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!K&&!M&&!D&&!C&&1===G||wa&&L||!Ba)return void(B||z.skewX||L?(B*=H,x=z.skewX*H,y=1e5,b=Math.cos(B)*E,e=Math.sin(B)*E,c=Math.sin(B-x)*-F,f=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(s=Math.tan(x),s=Math.sqrt(1+s*s),c*=s,f*=s,z.skewY&&(b*=s,e*=s)),L&&(I+=z.xOrigin-(z.xOrigin*b+z.yOrigin*c)+z.xOffset,J+=z.yOrigin-(z.xOrigin*e+z.yOrigin*f)+z.yOffset,wa&&(z.xPercent||z.yPercent)&&(p=this.t.getBBox(),I+=.01*z.xPercent*p.width,J+=.01*z.yPercent*p.height),p=1e-6,p>I&&I>-p&&(I=0),p>J&&J>-p&&(J=0)),u=(b*y|0)/y+","+(e*y|0)/y+","+(c*y|0)/y+","+(f*y|0)/y+","+I+","+J+")",L&&wa?this.t.setAttribute("transform","matrix("+u):A[ya]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[ya]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+I+","+J+")");if(n&&(p=1e-4,p>E&&E>-p&&(E=G=2e-5),p>F&&F>-p&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||z.skewX)B*=H,q=b=Math.cos(B),r=e=Math.sin(B),z.skewX&&(B-=z.skewX*H,q=Math.cos(B),r=Math.sin(B),"simple"===z.skewType&&(s=Math.tan(z.skewX*H),s=Math.sqrt(1+s*s),q*=s,r*=s,z.skewY&&(b*=s,e*=s))),c=-r,f=q;else{if(!(D||C||1!==G||M||L))return void(A[ya]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+I+"px,"+J+"px,"+K+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));b=f=1,c=e=0}j=1,d=g=h=i=k=l=0,m=M?-1/M:0,o=z.zOrigin,p=1e-6,v=",",w="0",B=D*H,B&&(q=Math.cos(B),r=Math.sin(B),h=-r,k=m*-r,d=b*r,g=e*r,j=q,m*=q,b*=q,e*=q),B=C*H,B&&(q=Math.cos(B),r=Math.sin(B),s=c*q+d*r,t=f*q+g*r,i=j*r,l=m*r,d=c*-r+d*q,g=f*-r+g*q,j*=q,m*=q,c=s,f=t),1!==G&&(d*=G,g*=G,j*=G,m*=G),1!==F&&(c*=F,f*=F,i*=F,l*=F),1!==E&&(b*=E,e*=E,h*=E,k*=E),(o||L)&&(o&&(I+=d*-o,J+=g*-o,K+=j*-o+o),L&&(I+=z.xOrigin-(z.xOrigin*b+z.yOrigin*c)+z.xOffset,J+=z.yOrigin-(z.xOrigin*e+z.yOrigin*f)+z.yOffset),p>I&&I>-p&&(I=w),p>J&&J>-p&&(J=w),p>K&&K>-p&&(K=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(p>b&&b>-p?w:b)+v+(p>e&&e>-p?w:e)+v+(p>h&&h>-p?w:h),u+=v+(p>k&&k>-p?w:k)+v+(p>c&&c>-p?w:c)+v+(p>f&&f>-p?w:f),C||D||1!==G?(u+=v+(p>i&&i>-p?w:i)+v+(p>l&&l>-p?w:l)+v+(p>d&&d>-p?w:d),u+=v+(p>g&&g>-p?w:g)+v+(p>j&&j>-p?w:j)+v+(p>m&&m>-p?w:m)+v):u+=",0,0,0,0,1,0,",u+=I+v+J+v+K+v+(M?1+-K/M:1)+")",A[ya]=u};j=Ca.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ua("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k,l,m,n,o,p,q,r,s,t=a._gsTransform,u=a.style,v=1e-6,w=xa.length,x=i,y={},z="transformOrigin";if(i.display?(m=X(a,"display"),u.display="block",j=La(a,e,!0,i.parseTransform),u.display=m):j=La(a,e,!0,i.parseTransform),d._transform=j,"string"==typeof x.transform&&ya)m=M.style,m[ya]=x.transform,m.display="block",m.position="absolute",K.body.appendChild(M),k=La(M,null,!1),K.body.removeChild(M),k.perspective||(k.perspective=j.perspective),null!=x.xPercent&&(k.xPercent=fa(x.xPercent,j.xPercent)),null!=x.yPercent&&(k.yPercent=fa(x.yPercent,j.yPercent));else if("object"==typeof x){if(k={scaleX:fa(null!=x.scaleX?x.scaleX:x.scale,j.scaleX),scaleY:fa(null!=x.scaleY?x.scaleY:x.scale,j.scaleY),scaleZ:fa(x.scaleZ,j.scaleZ),x:fa(x.x,j.x),y:fa(x.y,j.y),z:fa(x.z,j.z),xPercent:fa(x.xPercent,j.xPercent),yPercent:fa(x.yPercent,j.yPercent),perspective:fa(x.transformPerspective,j.perspective)},null!=(q=x.directionalRotation))if("object"==typeof q)for(m in q)x[m]=q[m];else x.rotation=q;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(k.x=0,k.xPercent=fa(x.x,j.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(k.y=0,k.yPercent=fa(x.y,j.yPercent)),k.rotation=ga("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:j.rotation,j.rotation,"rotation",y),Ba&&(k.rotationX=ga("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":j.rotationX||0,j.rotationX,"rotationX",y),k.rotationY=ga("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":j.rotationY||0,j.rotationY,"rotationY",y)),k.skewX=null==x.skewX?j.skewX:ga(x.skewX,j.skewX),k.skewY=null==x.skewY?j.skewY:ga(x.skewY,j.skewY),(l=k.skewY-j.skewY)&&(k.skewX+=l,k.rotation+=l)}for(Ba&&null!=x.force3D&&(j.force3D=x.force3D,p=!0),j.skewType=x.skewType||j.skewType||g.defaultSkewType,(o=j.force3D||j.z||j.rotationX||j.rotationY||k.z||k.rotationX||k.rotationY||k.perspective)||null==x.scale||(k.scaleZ=1);--w>-1;)c=xa[w],((n=k[c]-j[c])>v||-v>n||null!=x[c]||null!=J[c])&&(p=!0,f=new pa(j,c,j[c],n,f),c in y&&(f.e=y[c]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return n=x.transformOrigin,j.svg&&(n||x.svgOrigin)&&(r=j.xOffset,s=j.yOffset,Ha(a,da(n),k,x.svgOrigin,x.smoothOrigin),f=qa(j,"xOrigin",(t?j:k).xOrigin,k.xOrigin,f,z),f=qa(j,"yOrigin",(t?j:k).yOrigin,k.yOrigin,f,z),(r!==j.xOffset||s!==j.yOffset)&&(f=qa(j,"xOffset",t?r:j.xOffset,j.xOffset,f,z),f=qa(j,"yOffset",t?s:j.yOffset,j.yOffset,f,z)),n=wa?null:"0px 0px"),(n||Ba&&o&&j.zOrigin)&&(ya?(p=!0,c=Aa,n=(n||X(a,c,e,!1,"50% 50%"))+"",f=new pa(u,c,0,0,f,-1,z),f.b=u[c],f.plugin=h,Ba?(m=j.zOrigin,n=n.split(" "),j.zOrigin=(n.length>2&&(0===m||"0px"!==n[2])?parseFloat(n[2]):m)||0,f.xs0=f.e=n[0]+" "+(n[1]||"50%")+" 0px",f=new pa(j,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=j.zOrigin):f.xs0=f.e=n):da(n+"",j)),p&&(d._transformType=j.svg&&wa||!o&&3!==this._transformType?2:3),f},prefix:!0}),ua("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ua("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=Y(a,"borderLeft",o,t),w=Y(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=Y(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=ra(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:ma("0px 0px 0px 0px",!1,!0)}),ua("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||W(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&(m=X(a,"backgroundImage").replace(B,""))&&"none"!==m){for(h=q.split(" "),i=r.split(" "),N.setAttribute("src",m),j=2;--j>-1;)q=h[j],(k=-1!==q.indexOf("%"))!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-N.width:a.offsetHeight-N.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:da}),ua("backgroundSize",{defaultValue:"0 0",formatter:da}),ua("perspective",{defaultValue:"0px",prefix:!0}),ua("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ua("transformStyle",{prefix:!0}),ua("backfaceVisibility",{prefix:!0}),ua("userSelect",{prefix:!0}),ua("margin",{parser:na("marginTop,marginRight,marginBottom,marginLeft")}),ua("padding",{parser:na("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ua("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(X(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ua("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ua("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ua("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){return this.parseComplex(a.style,this.format(X(a,"borderTopWidth",e,!1,"0px")+" "+X(a,"borderTopStyle",e,!1,"solid")+" "+X(a,"borderTopColor",e,!1,"#000")),this.format(b),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(la)||["#000"])[0]}}),ua("borderWidth",{parser:na("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ua("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new pa(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Oa=function(a){var b,c=this.t,d=c.filter||X(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!X(this.data,"filter")):(c.filter=d.replace(x,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(v,"opacity="+e))};ua("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(X(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===X(a,"visibility",e)&&0!==b&&(h=0),Q?f=new pa(i,"opacity",h,b-h,f):(f=new pa(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Oa),j&&(f=new pa(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Pa=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(z,"-$1").toLowerCase())):a.removeAttribute(b))},Qa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Pa(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ua("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new pa(a,d,0,0,g,2),g.setRatio=Qa,g.pr=-11,c=!0,g.b=o,k=$(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("\\s*\\b"+b.substr(2)+"\\b"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=_(a,k,$(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Ra=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Aa:i[c].p),Pa(g,c);e&&(Pa(g,ya),(f=this.t._gsTransform)&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ua("clearProps",{parser:function(a,b,d,e,f){return f=new pa(a,d,0,0,f,2),f.setRatio=Ra,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),sa=j.length;sa--;)va(j[sa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h){if(!a.nodeType)return!1;this._target=a,this._tween=h,this._vars=b,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=W(a,""),f=this._overwriteProps;var j,n,p,q,r,s,t,u,v,x=a.style;if(l&&""===x.zIndex&&("auto"===(j=X(a,"zIndex",e))||""===j)&&this._addLazySet(x,"zIndex",0),"string"==typeof b&&(q=x.cssText,j=$(a,e),x.cssText=q+";"+b,j=_(a,j,$(a)).difs,!Q&&w.test(b)&&(j.opacity=parseFloat(RegExp.$1)),b=j,x.cssText=q),b.className?this._firstPT=n=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=n=this.parse(a,b,null),this._transformType){for(v=3===this._transformType,ya?m&&(l=!0,""===x.zIndex&&("auto"===(t=X(a,"zIndex",e))||""===t)&&this._addLazySet(x,"zIndex",0),o&&this._addLazySet(x,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(v?"visible":"hidden"))):x.zoom=1,p=n;p&&p._next;)p=p._next;u=new pa(a,"transform",0,0,null,2),this._linkCSSP(u,null,p),u.setRatio=ya?Na:Ma,u.data=this._transform||La(a,e,!0),u.tween=h,u.pr=-1,f.pop()}if(c){for(;n;){for(s=n._next,p=q;p&&p.pr>n.pr;)p=p._next;(n._prev=p?p._prev:r)?n._prev._next=n:q=n,(n._next=p)?p._prev=n:r=n,n=s}this._firstPT=q}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,q,r,s=a.style;for(g in b)n=b[g],h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=X(a,g,e)+"",q="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||q&&y.test(n)?(q||(n=ja(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=ra(s,g,m,n,!0,"transparent",c,0,f)):!q||-1===n.indexOf(" ")&&-1===n.indexOf(",")?(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ca(a,g,e),o="px"):"left"===g||"top"===g?(j=Z(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),r=q&&"="===n.charAt(1),r?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(u,"")):(l=parseFloat(n),p=q?n.replace(u,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(r?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=Y(a,g,j,o),"%"===p?(j/=Y(a,g,100,"%")/100,!0!==b.strictUnits&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=Y(a,g,1,p):"px"!==p&&(l=Y(a,g,l,p),p="px"),r&&(l||0===l)&&(n=l+j+p)),r&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==s[g]&&(n||n+""!="NaN"&&null!=n)?(c=new pa(s,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):S("invalid "+g+" tween value: "+b[g]):(c=new pa(s,g,j,l-j,c,0,g,!1!==k&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p)):c=ra(s,g,m,n,!0,null,c,0,f)),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(2===(d=e.l))e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)Ta(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push($(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Ta(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Ta(a,k,m),i.render(c,!0,!0),Ta(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=_(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.5",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.r=1),a=a._next},c=a.prototype;c._onInitAllProps=function(){for(var a,c,d,e=this._tween,f=e.vars.roundProps.join?e.vars.roundProps:e.vars.roundProps.split(","),g=f.length,h={},i=e._propLookup.roundProps;--g>-1;)h[f[g]]=1;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstPT;c;)d=c._next,c.pg?c.t._roundProps(h,!0):c.n===a&&(2===c.f&&c.t?b(c.t._firstPT):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstPT===c&&(e._firstPT=d),c._next=c._prev=null,e._propLookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,!0),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.5.0",init:function(a,b,c){var d;if("function"!=typeof a.setAttribute)return!1;for(d in b)this._addTween(a,"setAttribute",a.getAttribute(d)+"",b[d]+"",d,!1,d),this._overwriteProps.push(d);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(a,b,c){"object"!=typeof b&&(b={rotation:b}),this.finals={};var d,e,f,g,h,i,j=!0===b.useRadians?2*Math.PI:360,k=1e-6;for(d in b)"useRadians"!==d&&(i=(b[d]+"").split("_"),e=i[0],f=parseFloat("function"!=typeof a[d]?a[d]:a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]()),g=this.finals[d]="string"==typeof e&&"="===e.charAt(1)?f+parseInt(e.charAt(0)+"1",10)*Number(e.substr(2)):Number(e)||0,h=g-f,i.length&&(e=i.join("_"),-1!==e.indexOf("short")&&(h%=j)!==h%(j/2)&&(h=0>h?h+j:h-j),-1!==e.indexOf("_cw")&&0>h?h=(h+9999999999*j)%j-(h/j|0)*j:-1!==e.indexOf("ccw")&&h>0&&(h=(h-9999999999*j)%j-(h/j|0)*j)),(h>k||-k>h)&&(this._addTween(a,d,f,f+h,d),this._overwriteProps.push(d)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=_gsScope.GreenSockGlobals||_gsScope,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=!0===c},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=!1!==b.randomize,p=!0===b.clamp,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(Math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),d("ElasticIn",function(a){return-this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)},.3),d("ElasticInOut",function(a){return(a*=2)<1?this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return 1-Math.cos(a*h)}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!c.TweenLite){var d,e,f,g,h,i=function(a){var b,d=a.split("."),e=c;for(b=0;b-1;)(k=o[e[r]]||new p(e[r],[])).gsClass?(h[r]=k.gsClass,s--):j&&k.sc.push(this);if(0===s&&f)for(l=("com.greensock."+d).split("."),m=l.pop(),n=i(l.join("."))[m]=this.gsClass=f.apply(f,h),g&&(c[m]=n,q="undefined"!=typeof module&&module.exports,!q&&"function"==typeof define&&define.amd?define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return n}):d===b&&q&&(module.exports=n)),r=0;r-1;)for(f=i[k],e=d?r("easing."+f,null,!0):j.easing[f]||{},g=l.length;--g>-1;)h=l[g],v[f+"."+h]=v[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(f=u.prototype,f._calcEnd=!1,f.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},d=["Linear","Quad","Cubic","Quart","Quint,Strong"],e=d.length;--e>-1;)f=d[e]+",Power"+e,w(new u(null,null,1,e),f,"easeOut",!0),w(new u(null,null,2,e),f,"easeIn"+(0===e?",easeNone":"")),w(new u(null,null,3,e),f,"easeInOut");v.linear=j.easing.Linear.easeIn,v.swing=j.easing.Quad.easeInOut;var x=r("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});f=x.prototype,f.addEventListener=function(a,b,c,d,e){e=e||0;var f,i,j=this._listeners[a],k=0;for(null==j&&(this._listeners[a]=j=[]),i=j.length;--i>-1;)f=j[i],f.c===b&&f.s===c?j.splice(i,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},f.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,c=this._eventTarget;--b>-1;)(d=e[b])&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var y=a.requestAnimationFrame,z=a.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},B=A();for(d=["ms","moz","webkit","o"],e=d.length;--e>-1&&!y;)y=a[d[e]+"RequestAnimationFrame"],z=a[d[e]+"CancelAnimationFrame"]||a[d[e]+"CancelRequestAnimationFrame"];r("Ticker",function(a,b){var c,d,e,f,i,j=this,l=A(),n=!(!1===b||!y)&&"auto",o=500,p=33,q="tick",r=function(a){var b,g,h=A()-B;h>o&&(l+=h-p),B+=h,j.time=(B-l)/1e3,b=j.time-i,(!c||b>0||!0===a)&&(j.frame++,i+=b+(b>=f?.004:f-b),g=!0),!0!==a&&(e=d(r)),g&&j.dispatchEvent(q)};x.call(j),j.time=j.frame=0,j.tick=function(){r(!0)},j.lagSmoothing=function(a,b){o=a||1/k,p=Math.min(b,o,0)},j.sleep=function(){null!=e&&(n&&z?z(e):clearTimeout(e),d=m,e=null,j===g&&(h=!1))},j.wake=function(a){null!==e?j.sleep():a?l+=-B+(B=A()):j.frame>10&&(B=A()-o+5),d=0===c?m:n&&y?y:function(a){return setTimeout(a,1e3*(i-j.time)+1|0)},j===g&&(h=!0),r(2)},j.fps=function(a){return arguments.length?(c=a,f=1/(c||60),i=this.time+f,void j.wake()):c},j.useRAF=function(a){return arguments.length?(j.sleep(),n=a,void j.fps(c)):n},j.fps(a),setTimeout(function(){"auto"===n&&j.frame<5&&"hidden"!==document.visibilityState&&j.useRAF(!1)},1500)}),f=j.Ticker.prototype=new j.events.EventDispatcher,f.constructor=j.Ticker;var C=r("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=!0===b.immediateRender,this.data=b.data,this._reversed=!0===b.reversed,V){h||g.wake();var c=this.vars.useFrames?U:V;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});g=C.ticker=new j.Ticker,f=C.prototype,f._dirty=f._gc=f._initted=f._paused=!1,f._totalTime=f._time=0,f._rawPrevTime=-1,f._next=f._last=f._onUpdate=f._timeline=f.timeline=null,f._paused=!1;var D=function(){h&&A()-B>2e3&&g.wake(),setTimeout(D,2e3)};D(),f.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},f.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},f.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},f.seek=function(a,b){return this.totalTime(Number(a),!1!==b)},f.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,!1!==b,!0)},f.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},f.render=function(a,b,c){},f.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},f.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime())>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},f._callback=function(a){var b=this.vars;b[a].apply(b[a+"Scope"]||b.callbackScope||this,b[a+"Params"]||t)},f.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=n(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},f.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},f.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},f.totalTime=function(a,b,c){if(h||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(I.length&&X(),this.render(a,b,!1),I.length&&X())}return this},f.progress=f.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},f.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},f.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},f.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||k,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},f.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},f.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(h||a||g.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var E=r("core.SimpleTimeline",function(a){C.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});f=E.prototype=new C,f.constructor=E,f.kill()._gc=!1,f._first=f._last=f._recent=null,f._sortChildren=!1,f.add=f.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},f._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},f.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},f.rawTime=function(){return h||g.wake(),this._totalTime};var F=r("TweenLite",function(b,c,d){if(C.call(this,c,d),this.render=F.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:F.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?T[F.defaultOverwrite]:"number"==typeof i?i>>0:T[i],(h||b instanceof Array||b.push&&n(b))&&"number"!=typeof b[0])for(this._targets=g=l(b),this._propLookup=[],this._siblings=[],e=0;e1&&$(f,this,null,1,this._siblings[e])):"string"==typeof(f=g[e--]=F.selector(f))&&g.splice(e+1,1):g.splice(e--,1);else this._propLookup={},this._siblings=Y(b,this,!1),1===i&&this._siblings.length>1&&$(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-k,this.render(-this._delay))},!0),G=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},H=function(a,b){var c,d={};for(c in a)S[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!P[c]||P[c]&&P[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};f=F.prototype=new C,f.constructor=F,f.kill()._gc=!1,f.ratio=0,f._firstPT=f._targets=f._overwrittenProps=f._startAt=null,f._notifyPluginsOfEnabled=f._lazy=!1,F.version="1.18.2",F.defaultEase=f._ease=new u(null,null,1,1),F.defaultOverwrite="auto",F.ticker=g,F.autoSleep=120,F.lagSmoothing=function(a,b){g.lagSmoothing(a,b)},F.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(F.selector=c,c(b)):"undefined"==typeof document?b:document.querySelectorAll?document.querySelectorAll(b):document.getElementById("#"===b.charAt(0)?b.substr(1):b)};var I=[],J={},K=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?a?this.join(""):this.start:c.c*a+c.s,c.r?b=Math.round(b):d>b&&b>-d&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},M=function(a,b,c,d){var e,f,g,h,i,j,k,l=[a,b],m=0,n="",o=0;for(l.start=a,c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(K)||[],f=b.match(K)||[],d&&(d._next=null,d.blob=1,l._firstPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,r:o&&4>o}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=L,l},N=function(a,b,c,d,e,f,g,h){var i,j,k="get"===c?a[b]:c,l=typeof a[b],m="string"==typeof d&&"="===d.charAt(1),n={t:a,p:b,s:k,f:"function"===l,pg:0,n:e||b,r:f,pr:0,c:m?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-k||0};return"number"!==l&&("function"===l&&"get"===c&&(j=b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),n.s=k=g?a[j](g):a[j]()),"string"==typeof k&&(g||isNaN(k))?(n.fp=g,i=M(k,d,h||F.defaultStringFilter,n),n={t:i,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0}):m||(n.s=parseFloat(k),n.c=parseFloat(d)-n.s||0)),n.c?((n._next=this._firstPT)&&(n._next._prev=n),this._firstPT=n,n):void 0},O=F._internals={isArray:n,isSelector:G,lazyTweens:I,blobDif:M},P=F._plugins={},Q=O.tweenLookup={},R=0,S=O.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},T={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},U=C._rootFramesTimeline=new E,V=C._rootTimeline=new E,W=30,X=O.lazyRender=function(){var a,b=I.length;for(J={};--b>-1;)(a=I[b])&&!1!==a._lazy&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);I.length=0};V._startTime=g.time,U._startTime=g.frame,V._active=U._active=!0,setTimeout(X,1),C._updateRoot=F.render=function(){var a,b,c;if(I.length&&X(),V.render((g.time-V._startTime)*V._timeScale,!1,!1),U.render((g.frame-U._startTime)*U._timeScale,!1,!1),I.length&&X(),g.frame>=W){W=g.frame+(parseInt(F.autoSleep,10)||120);for(c in Q){for(b=Q[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete Q[c]}if((!(c=V._first)||c._paused)&&F.autoSleep&&!U._first&&1===g._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||g.sleep()}}},g.addEventListener("tick",C._updateRoot);var Y=function(a,b,c){var d,e,f=a._gsTweenID;if(Q[f||(a._gsTweenID=f="t"+R++)]||(Q[f]={target:a,tweens:[]}),b&&(d=Q[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return Q[f].tweens},Z=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=F.onOverwrite,g&&(f=g(a,b,c,d)),!1!==e&&!1!==f},$=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,l=b._startTime+k,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||_(b,0,o),0===_(h,j,o)&&(m[n++]=h)):h._startTime<=l&&h._startTime+h.totalDuration()/h._timeScale>l&&((o||!h._initted)&&l-h._startTime<=2e-10||(m[n++]=h)));for(f=n;--f>-1;)if(h=m[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!Z(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},_=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*k>f-b?k:(f+=a.totalDuration()/a._timeScale/e)>b+k?0:f-b-k};f._init=function(){var a,b,c,d,e,f=this.vars,g=this._overwrittenProps,h=this._duration,i=!!f.immediateRender,j=f.ease;if(f.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in f.startAt)e[d]=f.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=i&&!1!==f.lazy,e.startAt=e.delay=null,this._startAt=F.to(this.target,0,e),i)if(this._time>0)this._startAt=null;else if(0!==h)return}else if(f.runBackwards&&0!==h)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(i=!1),c={};for(d in f)S[d]&&"autoCSS"!==d||(c[d]=f[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=i&&!1!==f.lazy,c.immediateRender=i,this._startAt=F.to(this.target,0,c),i){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=j=j?j instanceof u?j:"function"==typeof j?new u(j,f.easeParams):v[j]||F.defaultEase:F.defaultEase,f.easeParams instanceof Array&&j.config&&(this._ease=j.config.apply(j,f.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length;--a>-1;)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],g?g[a]:null)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,g);if(b&&F._onPluginEvent("_onInitAllProps",this),g&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),f.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=f.onUpdate,this._initted=!0},f._initProps=function(b,c,d,e){var f,g,h,i,j,k;if(null==b)return!1;J[b._gsTweenID]&&X(),this.vars.css||b.style&&b!==a&&b.nodeType&&P.css&&!1!==this.vars.autoCSS&&H(this.vars,b);for(f in this.vars)if(k=this.vars[f],S[f])k&&(k instanceof Array||k.push&&n(k))&&-1!==k.join("").indexOf("{self}")&&(this.vars[f]=k=this._swapSelfInParams(k,this));else if(P[f]&&(i=new P[f])._onInitTween(b,this.vars[f],this)){for(this._firstPT=j={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:1,n:f,pg:1,pr:i._priority},g=i._overwriteProps.length;--g>-1;)c[i._overwriteProps[g]]=this._firstPT;(i._priority||i._onInitAllProps)&&(h=!0),(i._onDisable||i._onEnable)&&(this._notifyPluginsOfEnabled=!0),j._next&&(j._next._prev=j)}else c[f]=N.call(this,b,f,"get",k,f,0,null,this.vars.stringFilter);return e&&this._kill(e,b)?this._initProps(b,c,d,e):this._overwrite>1&&this._firstPT&&d.length>1&&$(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(J[b._gsTweenID]=!0),h)},f.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===k&&"isPause"!==this.data)&&j!==a&&(c=!0,j>k&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:k);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==k||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:k)),this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var l=a/i,m=this._easeType,n=this._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===n?l*=l:2===n?l*=l*l:3===n?l*=l*l*l:4===n&&(l*=l*l*l*l),this.ratio=1===m?1-l:2===m?l:.5>a/i?l/2:1-l/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,I.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&-1e-4!==a&&this._startAt.render(a,b,c),b||(this._time!==h||d)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&-1e-4!==a&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===k&&g!==k&&(this._rawPrevTime=0))}},f._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:F.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((n(b)||G(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(F.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!Z(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},f.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],C.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-k,this.render(-this._delay)),this},f._enabled=function(a,b){if(h||g.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=Y(d[c],this,!0);else this._siblings=Y(this.target,this,!0)}return C.prototype._enabled.call(this,a,b),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&F._onPluginEvent(a?"_onEnable":"_onDisable",this)},F.to=function(a,b,c){return new F(a,b,c)},F.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new F(a,b,c)},F.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new F(a,b,d)},F.delayedCall=function(a,b,c,d,e){return new F(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},F.set=function(a,b){return new F(a,0,b)},F.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:F.selector(a)||a;var c,d,e,f;if((n(a)||G(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(F.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=Y(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},F.killTweensOf=F.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=F.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var aa=r("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=aa.prototype},!0);if(f=aa.prototype,aa.version="1.18.0",aa.API=2,f._firstPT=null,f._addTween=N,f.setRatio=L,f._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},f._roundProps=function(a,b){for(var c=this._firstPT;c;)(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])&&(c.r=b),c=c._next},F._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},aa.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===aa.API&&(P[(new a[b])._propName]=a[b]);return!0},q.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},g=r("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){aa.call(this,c,d),this._overwriteProps=e||[]},!0===a.global),h=g.prototype=new aa(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,aa.activate([g]),g},d=a._gsQueue){for(e=0;e7||-7>g)&&d7||-7>f)&ðis.posts[1].view.top-300||h>2e3?this.backToTopVisible||(this.$backToTop.addClass("show"),this.backToTopVisible=!0):this.backToTopVisible&&(this.$backToTop.removeClass("show"),this.backToTopVisible=!1);for(var i=!1,j=0,k=null;k=this.posts[j];j++){var l=k.view;l.scroll(a,b),l.hasImage&&h>l.top&&hl.top&&gm.top+m.height-1e3){this.isLoadingNextPost=!0,window.ga&&ga("send","pageview",F.Utils.absoluteToRelativeUrl(m.nextPostUrl));var k=this.loadPage(F.Utils.absoluteToRelativeUrl(m.nextPostUrl));k.isLoaded?c.call(d,k):k.on("ready",function(){c.call(d,k)})}}this.currentPage&&F.UI.Header().scroll(a,b,this.currentPage.view)}},loadPage:function(a){var b=this,c=this.pages[a]||new F.abstract.APageModel({url:a});if(!c.isLoaded){var a=c.url;a.indexOf("?")>-1?a+="&":a+="?",c.url=a+"ajax=yes",c.fetch({success:function(){c.url=a,1!=c.get("noJSCache")&&(b.pages[a]=c);var d=F.PAGES_VIEWS[c.get("pageType")]?F.views[F.PAGES_VIEWS[c.get("pageType")]]:F.abstract.APageView,e=new d({model:c,key:a});c.view=e.render(),c.trigger("ready")},error:function(){console.warn("ERROR")}})}return c},displayPage:function(a){function c(){e.currentUrl=a,f.isLoaded?d():f.on("ready",d)}function d(){e.changeUrl(f.get("data").menu||f.url),e.currentPage&&(e.currentPage.view.$el.detach(),e.currentPage.view.viewDidDisappear()),window.scrollTo(0,0),F.UI.Header().headerMenu.closeSearch(),F.closeMenuMobile(),document.title=f.get("seoTitle")||f.get("title"),setTimeout(function(){"corporate"===f.get("pageType")?(e.wasPlayingBeforeCorpo=F.UI.Playlist().isPlaying(),e.wasPlayingBeforeCorpo&&F.UI.Playlist().pause(),b.addClass("corporate")):e.currentPage&&"corporate"===e.currentPage.get("pageType")&&(b.removeClass("corporate"),e.wasPlayingBeforeCorpo&&F.UI.Playlist().resume(),e.wasPlayingBeforeCorpo=!1),e.currentPage=f,e.insertPage(f,!1),setTimeout(function(){e.endLoading()},200)},20)}var e=this;if(!this.isWorking){this.isWorking=!0;var f=this.loadPage(a);this.posts=[],e.currentPage?(e.currentPage.view.viewWillDisappear(),e.startLoading(c)):c()}},insertPage:function(a,b){var c=this;F.CONFIG.DEBUG&&a.get("queries")&&console.log(a.get("queries")+" SQL queries"),a.view.$el.parent().length||(b?(a.view.$el.addClass("page-item--in-scroll"),this.$el.append(a.view.$el)):(a.view.$el.removeClass("page-item--in-scroll"),this.$el.html(a.view.$el))),a.view.viewWillAppear(),a.view.resize(F._.wW,F._.wH),a.view.scroll(F._.scrollTop,F._.scrollTop-1),"post"===a.get("pageType")?(this.posts.push(a),1==this.posts.length&&F.UI.Header().showArticle(a)):F.UI.Header().leaveArticle(),a.view.show(function(){a.view.viewDidAppear(),setTimeout(function(){c.isWorking=!1},100)})}});a.F.NavigationController=c}(window,$(document.body)),function(a){a.F.abstract=a.F.abstract||{};var b=Backbone.View.extend({tagName:"div",className:"page-item",isRender:!1,key:"",model:null,firstAppearance:!0,scrollElmts:[],initialize:function(a){return this},load:function(){return this},ready:function(){return this},render:function(){return this.$el.html(this.model.get("content")),this.scrollElmts=[],this.afterRender(),this},afterRender:function(){var a=this;Modernizr.touch||F.isTablette()||this.$el.find(".scroll-anim").not(".scroll-anim--processed").each(function(){var b=$(this).addClass("scroll-anim--processed"),c=b.data("scroll-class")||"AScrollable";a.scrollElmts.push(new F.UI[c](b))})},show:function(a){return a&&a(),this},hide:function(a){return a&&a(),this},scroll:function(a,b){for(var c=this.scrollElmts.length;c--;)this.scrollElmts[c].scroll(a,b)},resize:function(a,b){for(var c=this.scrollElmts.length;c--;)this.scrollElmts[c].resize(a,b)},viewWillAppear:function(){!0===this.firstAppearance&&this.viewWillAppearForFirstTime()},viewWillDisappear:function(){},viewWillAppearForFirstTime:function(){},viewDidAppearForFirstTime:function(){},viewDidAppear:function(){!0===this.firstAppearance&&(this.viewDidAppearForFirstTime(),this.firstAppearance=!1)},viewDidDisappear:function(){}});a.F.abstract.APageView=b}(window),function(a){a.F.abstract=a.F.abstract||{};var b=Backbone.Model.extend({url:"",defaults:{id:null,content:null,title:null,seoTitle:"",seoDesc:"",bodyClass:"",pageType:"",data:[],noJSCache:!1},isLoaded:!1,isLoading:!0,view:null,initialize:function(a){return this.url=F.CONFIG.ROOT_URL+(a.url||""),this},fetch:function(a){var b=this;this.isLoading=!0,Backbone.Model.prototype.fetch.call(this,{success:function(){b.isLoading=!1,b.isLoaded=!0,a.success&&a.success()},error:function(){b.isLoading=!1,b.isLoaded=!0,a.error&&a.error()}})}});a.F.abstract.APageModel=b}(window),function(a){F.UI=F.UI||{};var b=null,c=Backbone.Model.extend({defaults:{channelId:"",channelTitle:"Sourdoreille",description:"",playlistId:"",position:0,publishedAt:"",id:null,thumbnails:{default:{height:0,url:"",width:0},high:{height:0,url:"",width:0},maxres:{height:0,url:"",width:0},medium:{height:0,url:"",width:0},standard:{height:0,url:"",width:0}},title:""}}),d=Backbone.Collection.extend({model:c,thumbPlayer:null,bigPlayer:null,player:null,currentSong:null,infoProgress:null,timerProgress:null,videosID:[],isReady:!1,initialize:function(){if(!F.isMobile()&&!Modernizr.ios){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.infoProgress=new Backbone.Model({duration:0,currentTime:0}),this.currentSong=new c},apiReady:function(){function a(){2==++c&&(b.timerProgress=setInterval(function(){b.infoProgress.set({currentTime:b.player.getCurrentTime()})},100),b.changeSong(),b.callPlayersMethod("ready"))}var b=this;this.trigger("YT_API_READY"),this.thumbPlayer=new f({el:$("#mini-player")}),this.bigPlayer=new g({el:$("#overlay-player-wrapper")}),$.ajax({url:"https://www.googleapis.com/youtube/v3/playlistItems",data:{part:"snippet",maxResults:50,playlistId:F.CONFIG.YT_PLAYLIST_ID,key:F.CONFIG.YT_API_KEY,alt:"json"},dataType:"jsonp",success:function(c){if(c&&c.items){for(var d=0,e=null;e=c.items[d];d++)"Deleted video"!==e.snippet.title&&(e.snippet.id=e.snippet.resourceId.videoId||null,b.add(e.snippet),b.videosID.push(e.snippet.id));b.trigger("playlist-fetched")}a()},error:function(){}}),this.player=new YT.Player("hidden-player",{width:"640",height:"360",playerVars:{loop:1,autoplay:0,controls:1,listType:"playlist",list:F.CONFIG.YT_PLAYLIST_ID,origin:F.CONFIG.ROOT_URL},events:{onReady:function(){F.CONFIG.DEBUG&&b.bigPlayer.setVolume(0),a()},onStateChange:function(a){a.data==YT.PlayerState.PLAYING?b.trigger("resume"):(b.trigger("pause"),a.data==YT.PlayerState.ENDED&&b.next(),a.data==YT.PlayerState.UNSTARTED&&b.changeSong())}}});var c=0},changeSong:function(){function a(){var c=b.player.getDuration();c?b.infoProgress.set({duration:c}):setTimeout(a,200)}var b=this,c=this.player.getVideoData().video_id;if(!this.get(c))return F.UI.Playlist().player.loadVideoById(this.videosID[this.getCurrentIndex()]||this.videosID[0]),void F.UI.Playlist().pause();this.currentSong.set(this.get(c).attributes);var d=this.player.getDuration();d?this.infoProgress.set({duration:d,currentTime:0}):(this.infoProgress.set({currentTime:0}),setTimeout(a,200))},previous:function(){var a=this.getCurrentIndex();F.UI.Playlist().player.loadVideoById(this.videosID[a-1]||this.videosID[this.videosID.length-1])},next:function(){var a=this.getCurrentIndex();F.UI.Playlist().player.loadVideoById(this.videosID[a+1]||this.videosID[0])},getCurrentIndex:function(){return Math.max(0,this.bigPlayer.$songsList.find(".current").index())},isPlaying:function(){return!(!this.player||!this.player.getPlayerState)&&this.player.getPlayerState()==YT.PlayerState.PLAYING},pause:function(){this.player&&this.player.pauseVideo&&this.player.pauseVideo()},resume:function(){this.player&&this.player.playVideo&&this.player.playVideo()},callPlayersMethod:function(a,b){this.bigPlayer[a].apply(this.bigPlayer,b||[]),this.thumbPlayer[a].apply(this.thumbPlayer,b||[])}}),e=Backbone.View.extend({$songName:null,events:{"click .prev":function(a){a.preventDefault(),a.stopPropagation();var b=F.UI.Playlist();b.infoProgress.get("currentTime")>2?b.player.seekTo(0,!0):b.previous()},"click .next":function(a){a.preventDefault(),a.stopPropagation(),F.UI.Playlist().next()},"click .toggle":function(a){a.preventDefault(),a.stopPropagation(),F.UI.Playlist().isPlaying()?F.UI.Playlist().pause():F.UI.Playlist().resume()}},initialize:function(){var a=this;this.$el.attr("data-state","paused"),this.$songName=this.$el.find(".song-name"),this.$duration=this.$el.find(".song-duration"),this.$currentTime=this.$el.find(".song-current-time"),this.lastSecond=0;var b=F.UI.Playlist();b.currentSong.on("change:title",function(){a.changeSong(b.currentSong)}),b.on("resume",function(){a.resume()}).on("pause",function(){a.paused()}),b.infoProgress.on("change:duration",function(){var c=Math.max(0,parseInt(b.infoProgress.get("duration")-1));a.$duration.text(a.renderTime(c))}).on("change:currentTime",function(){a.changeCurrentTime()})},ready:function(){},resume:function(){this.$el.attr("data-state","playing")},paused:function(){this.$el.attr("data-state","paused")},changeCurrentTime:function(){var a=F.UI.Playlist(),b=parseInt(a.infoProgress.get("currentTime")),c=parseInt(a.infoProgress.get("duration")),d=100*b/c;this.progress(d,b,c)},progress:function(a,b,c){isNaN(b)&&(b=0),isNaN(a)&&(a=0);var d=Math.round(b);this.lastSecond!=d&&(this.lastSecond=d,this.$currentTime.text(this.renderTime(b)))},renderTime:function(a){return F.Utils.renderTime(a)},changeSong:function(a){this.$songName&&this.$songName.text(a.get("title"))}}),f=e.extend({events:function(){return _.extend({},e.prototype.events,{"click .burger-player":function(a){a.stopPropagation(),a.preventDefault(),F.UI.Playlist().bigPlayer.show()},"click #player-barre":function(a){a.stopPropagation(),F.UI.Playlist().bigPlayer.show()}})},ready:function(){this.$el.find("#player-barre").addClass("show")},resume:function(){e.prototype.resume.call(this),window.ga&&ga("send","event","player-playlist","play",F.UI.Playlist().currentSong.get("title"))},changeSong:function(a){var b=a.get("title"),c=b;b.indexOf(" - ")>-1&&(c=""+b.replace(" - "," - ")),this.$songName.html(c)}}),g=e.extend({events:function(){return _.extend({},e.prototype.events,{"click .songs-list a":function(a){a.stopPropagation(),a.preventDefault();var b=$(a.currentTarget).parent().data("yt-id");F.UI.Playlist().player.loadVideoById(b)},"click .close-player":function(a){a.stopPropagation(),a.preventDefault(),this.hide()},"click .toggle-sound":function(a){a.preventDefault(),a.stopPropagation(),F.UI.Playlist().player.getVolume()>0?this.setVolume(0):this.setVolume(1)},click:function(a){$(a.target).parents("#overlay-player").length||this.hide()},touchstart:function(a){var b=$(a.target);b.parents("#overlay-player").length||this.hide(),"A"===a.target.tagName||b.parents("a").length||a.preventDefault()},"mousedown .player-progress-drag":"startDrag","touchstart .player-progress-drag":"startDrag","mousedown .song-volume":"startDragVolume","touchstart .song-volume":"startDragVolume"})},$songsList:null,$songCover:null,$progressBar:null,$progressDrag:null,$volumeDrag:null,$volumeBar:null,isDragging:!1,scroll:null,initialize:function(){e.prototype.initialize.call(this);var a=this;this.$songsList=this.$el.find(".songs-list"),this.$progressBar=this.$el.find(".player-progress-bar"),this.$progressDrag=this.$el.find(".player-progress-drag"),this.$volumeDrag=this.$el.find(".song-volume"),this.$volumeBar=this.$el.find(".song-volume-drag"),this.$songCover=this.$el.find(".song-cover");var b=F.UI.Playlist();b.on("playlist-fetched",function(){for(var c=1,d=null;d=b.models[c-1];c++){var e=c<10?"0"+c:c;a.$songsList.append(''+e+". "+d.get("title")+"")}})},startDragVolume:function(b){function c(a){var b=0;b=a.originalEvent.touches&&a.originalEvent.touches.length>0?a.originalEvent.touches[0].pageX:a.pageX,isNaN(b)||(g=b);var c=Math.min(f,Math.max(0,g-e)),h=c/f;d.setVolume(Math.min(1,h))}b.preventDefault();var d=this;this.isDragging=!0;var e=this.$volumeDrag.offset().left,f=this.$volumeDrag.width(),g=0,h="mousemove",i="mouseup";Modernizr.touch&&(h="touchmove",i="touchend"),c(b),a.on(h+".drag-volume",function(a){a.preventDefault(),c(a)}).on(i+".drag-volume",function(b){b.preventDefault(),c(b),d.isDragging=!1,a.off(h+".drag-volume").off(i+".drag-volume")})},setVolume:function(a){TweenLite.set(this.$volumeBar,{scaleX:a}),F.UI.Playlist().player.setVolume(100*a)},startDrag:function(b){function c(a){var b=0;b=a.originalEvent.touches&&a.originalEvent.touches.length>0?a.originalEvent.touches[0].pageX:a.pageX,isNaN(b)||(j=b);var c=Math.min(i,Math.max(0,j-h)),e=c/i;f=Math.min(g-1,Math.floor(g*e)),d.progress(100*e,f,g)}b.preventDefault();var d=this;this.isDragging=!0;var e=F.UI.Playlist().isPlaying(),f=F.UI.Playlist().infoProgress.get("currentTime"),g=F.UI.Playlist().infoProgress.get("duration"),h=this.$progressDrag.offset().left,i=this.$progressDrag.width(),j=0;F.UI.Playlist().pause();var k="mousemove",l="mouseup";Modernizr.touch&&(k="touchmove",l="touchend"),c(b),a.on(k+".drag-player",function(a){a.preventDefault(),c(a)}).on(l+".drag-player",function(b){b.preventDefault(),c(b),F.UI.Playlist().player.seekTo(f,!0),e?F.UI.Playlist().resume():F.UI.Playlist().pause(),d.isDragging=!1,a.off(k+".drag-player").off(l+".drag-player")})},show:function(){window.ga&&ga("send","event","open-player-playlist","click","",4),this.$el.addClass("show");var b=this;a.on("keydown.player",function(a){27===a.keyCode?(b.hide(),a.preventDefault(),a.stopPropagation()):32===a.keyCode&&(a.preventDefault(),a.stopPropagation(),F.UI.Playlist().isPlaying()?F.UI.Playlist().pause():F.UI.Playlist().resume())})},hide:function(){this.$el.removeClass("show"),a.off("keydown.player")},changeSong:function(a){e.prototype.changeSong.call(this,a),this.$songCover.css("background-image","url("+a.get("thumbnails").high.url+")"),this.$songsList.children("li").removeClass("current").filter('[data-yt-id="'+a.get("id")+'"]').addClass("current")},changeCurrentTime:function(){this.isDragging||e.prototype.changeCurrentTime.call(this)},progress:function(a,b,c){e.prototype.progress.call(this,a,b,c),this.$progressBar[0]._gsTransform=null,TweenLite.set(this.$progressBar,{scaleX:a/100})}});F.UI.Playlist=function(){return b||(b=new d),b},window.onYouTubeIframeAPIReady=function(){F.isMobile()||F.UI.Playlist().apiReady()}}($(document.body)),function(a){F.UI=F.UI||{},F.UI.AudioPlayer=Backbone.View.extend({isPlaying:!1,$audio:null,$progressDrag:null,$progressBar:null,$currentTime:null,lastSecond:0,isFirstPlay:!0,duration:0,events:{"click .player-audio-toggle":"_toggle","mousedown .player-progress-drag":"startDrag","touchstart .player-progress-drag":"startDrag"},initialize:function(){var a=this;this.$audio=this.$el.find("audio"),this.$progressBar=this.$el.find(".player-progress-bar"),this.$progressDrag=this.$el.find(".player-progress-drag"),this.$currentTime=this.$el.find(".song-current-time"),this.lastSecond=0,F.CONFIG.DEBUG&&(this.$audio[0].volume=0),this.$el.data("audio-player",this),this.$audio.on("loadedmetadata",function(b){a._ready()}).on("play",function(){a._play()}).on("pause",function(){a._pause()}).on("timeupdate",function(){a._changeCurrentTime()}).on("ended",function(){a._ended()})},_ready:function(){this._handleDuration()},_ended:function(){this.$audio[0].currentTime=0,this.$audio[0].pause(),this._changeCurrentTime()},_changeCurrentTime:function(){var a=this.$audio[0].currentTime,b=100*a/this.duration;this._progress(b,a,this.duration)},_progress:function(a,b,c){isNaN(b)&&(b=0),isNaN(a)&&(a=0);var d=Math.round(b);this.lastSecond!=d&&(this.lastSecond=d,this.$currentTime.text(F.Utils.renderTime(b))),this.$progressBar[0]._gsTransform=null,TweenLite.set(this.$progressBar,{scaleX:a/100})},startDrag:function(b){function c(a){var b=0;b=a.originalEvent.touches&&a.originalEvent.touches.length>0?a.originalEvent.touches[0].pageX:a.pageX,isNaN(b)||(j=b);var c=Math.min(i,Math.max(0,j-h)),e=c/i;f=Math.min(g-1,Math.floor(g*e)),d._progress(100*e,f,g)}b.preventDefault();var d=this;this.isDragging=!0;var e=this.isPlaying,f=this.$audio[0].currentTime,g=this.duration,h=this.$progressDrag.offset().left,i=this.$progressDrag.width(),j=0;d.pauseAudio();var k="mousemove",l="mouseup";Modernizr.touch&&(k="touchmove",l="touchend"),c(b),a.on(k+".drag-player",function(a){a.preventDefault(),c(a)}).on(l+".drag-player",function(b){b.preventDefault(),c(b),d.$audio[0].currentTime=f,e?d.playAudio():d.pauseAudio(),d.isDragging=!1,a.off(k+".drag-player").off(l+".drag-player")})},_handleDuration:function(){this.duration=this.$audio[0].duration,this.duration&&this.$el.find(".player-progress-duration").text(F.Utils.renderTime(this.duration))},_play:function(){this.duration||this._handleDuration(),this.isFirstPlay&&window.ga&&ga("send","event","player-audio","click",this.$el.find(".player-progress-name").text(),4),this.isFirstPlay=!1,this.isPlaying=!0,this.$el.attr("data-state","playing").trigger("play")},_pause:function(){this.isPlaying=!1,this.$el.attr("data-state","paused").trigger("pause")},pauseAudio:function(){this.$audio[0].pause()},playAudio:function(){this.$audio[0].play()},_toggle:function(a){a.preventDefault(),a.stopPropagation(),this.isPlaying?this.pauseAudio():this.playAudio()}})}($(document.body)),function(a){F.UI=F.UI||{};var b=null,c=F.HEIGHT_STICKY,d=F.HEIGHT_HEADER,e=Backbone.View.extend({stickyArticle:null,headerMenu:null,playerHeader:null,initialize:function(){this.stickyArticle=new h({el:this.$el.find("#sticky-header-article-wrapper")}),this.headerMenu=new i({el:this.$el.find("#header-wrapper")}),this.playerHeader=new g({el:this.$el.find("#sticky-header")})},showArticle:function(a){this.stickyArticle.show(a)},leaveArticle:function(){this.stickyArticle.hide()},scroll:function(a,b,c){this.stickyArticle.scroll(a,b,c||null),this.headerMenu.scroll(a,b,c||null),this.playerHeader.scroll(a,b,c||null)}}),f=Backbone.View.extend({isShown:!1,initialize:function(){this.isShown=this.$el.hasClass("show")},show:function(){this.isShown||this.$el.addClass("show"),this.isShown=!0},hide:function(){this.isShown&&this.$el.removeClass("show"),this.isShown=!1},scroll:function(a,b,c){}}),g=f.extend({isFixed:!1,scroll:function(a,b,e){a+=c,a>d+c&&!this.isFixed?(this.$el.addClass("fixed"),this.isFixed=!0):ad+c&&!this.isFixed?(this.$el.addClass("fixed"),this.isFixed=!0):ae.top+e.heightHeader&&this.isTransparent?(this.$el.addClass("dark-background"),this.isTransparent=!1):aa}},F.UI.AScrollable=b,c.prototype=new b,c.constructor=c,c.prototype.scroll=function(a,c,d){b.prototype.scroll.call(this,a,c,d),this.each(function(b,c){var d=0;b.equationAnim&&(d=a>=b.startAnim&&a<=b.endAnim?b.equationAnim(a):ac.length)&&(b=c.length),b-=a.length;var d=c.indexOf(a,b);return-1!==d&&d===b}),F.Utils={getLastPartURL:function(a){var b=a.split("/");return b[b.length-1].length||b.splice(b.length-1,1),b[b.length-1]||""},transitionEndEvent:function(){},absoluteToRelativeUrl:function(a){return a.replace(F.CONFIG.ROOT_URL,"/")},getYoutubeID:function(a){var b=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))(\?v=)?([^#\&\?]*).*/,c=a.match(b);return!(!c||11!=c[8].length)&&c[8]},renderTime:function(a){var b=Math.floor(a/60),c=Math.floor(a%60);return b+":"+(c<10?"0"+c:c)},trim:function(a,b){var c,d=0,e=0;for(a+="",b?(b+="",c=b.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1")):c=" \n\r\t\f\v \u2028\u2029 ",d=a.length,e=0;e=0;e--)if(-1===c.indexOf(a.charAt(e))){a=a.substring(0,e+1);break}return-1===c.indexOf(a.charAt(0))?a:""},equationDroite:function(a,b,c,d){return function(e){var f="function"==typeof a?a():a,g="function"==typeof c?c():c,h="function"==typeof b?b():b,i="function"==typeof d?d():d,j=(i-g)/(h-f);return j*e+(g-j*f)}}}}(),function(a){a.F.views=a.F.views||{},a.F.views.Home=F.abstract.APageView.extend({$slides:[],$sliderWrapper:null,currentSliderIndex:-1,events:{"click #slider-home-pagers > span":function(a){a.preventDefault();var b=$(a.currentTarget);b.hasClass("current")||this.goToSlide(b.index())}},sliderIsWorking:!1,render:function(){var a=this;this.$slides=[],F.abstract.APageView.prototype.render.call(this),this.$sliderWrapper=this.$el.find("#home-slider-wrapper"),this.$sliderWrapper.find(".home-slide-item").each(function(){var b=$(this);a.$slides.push({$slide:b,$pager:null,$mask:b.find(".home-slide-item-bkg-mask"),$bkg:b.find(".home-slide-item-bkg"),$text:b.find(".home-slide-item-text"),$progress:null,$pagerMask:null,$pagerBkg:null})});var b=0;return this.$sliderWrapper.find("#slider-home-pagers > span").each(function(){var c=$(this);a.$slides[b].$pager=c,a.$slides[b].$progress=c.find(".progress"),a.$slides[b].$pagerMask=c.find(".bkg-wrapper"),a.$slides[b].$pagerBkg=c.find(".bkg-wrapper > span"),b++}),Modernizr.touch&&this.$el.swipe({preventDefaultEvents:!1,swipe:function(b,c,d,e,f,g){"left"===c?a.nextSlide("swipe"):"right"===c&&a.prevSlide()}}),this},killCurrentSlide:function(){var a=this.$slides[this.currentSliderIndex]||null;a&&(TweenLite.killTweensOf(a.$progress),a.$slide.removeClass("current visible"),a.$pager.removeClass("current"),TweenLite.set(a.$progress,{scaleX:0}),TweenLite.set(a.$pagerMask,{x:0}),TweenLite.set(a.$pagerBkg,{x:0}),this.currentSliderIndex=-1,this.sliderIsWorking=!1)},nextSlide:function(a){a=a||"",this.goToSlide(this.$slides[this.currentSliderIndex+1]?this.currentSliderIndex+1:0,"swipe"===a)},prevSlide:function(){this.goToSlide(this.$slides[this.currentSliderIndex-1]?this.currentSliderIndex-1:this.$slides.length-1)},goToSlide:function(a,b){function c(){setTimeout(function(){d.currentSliderIndex=a,e.$slide.addClass("current"),d.sliderIsWorking=!1,TweenLite.to(e.$progress,6,{delay:.3,scaleX:1,ease:Linear.easeNone,onCompleteScope:d,onComplete:function(){d.nextSlide()}})},200)}if(!this.sliderIsWorking){this.sliderIsWorking=!0;var d=this,e=d.$slides[a]||null,f=d.$slides[d.currentSliderIndex]||null;if(e){TweenLite.set(e.$mask,{force3D:!0,x:0}),TweenLite.set(e.$bkg,{force3D:!0,x:0}),TweenLite.set(e.$text,{opacity:1}),e.$slide.addClass("visible"),e.$pager.addClass("current"),TweenLite.set(e.$progress,{scaleX:0,opacity:1,x:0});var g=.6,h=Power2.easeInOut;if(f){TweenLite.killTweensOf(f.$progress);var i=1==f.$progress[0]._gsTransform.scaleX;TweenLite.to(f.$progress,i?g:.3,{ease:h,x:i?40:0,scaleX:0,onCompleteScope:this,onComplete:function(){f.$pager.removeClass("current")}}),TweenLite.set(e.$text.find("h3"),{opacity:0}),TweenLite.set(e.$text.find(".categories > li"),{opacity:0,y:40}),TweenLite.to(f.$pagerMask,g,{ease:h,x:0}),TweenLite.to(f.$pagerBkg,g,{ease:h,x:0});var j=1.2,k=Power4.easeInOut;TweenLite.to(e.$pagerMask,g,{ease:h,x:40,delay:0}),TweenLite.to(e.$pagerBkg,g,{ease:h,x:-40,delay:0,onCompleteScope:this,onComplete:function(){TweenLite.set(e.$pagerMask,{x:-40}),TweenLite.set(e.$pagerBkg,{x:40})}});var l=b?-1:1;TweenLite.to(f.$text,.6,{opacity:0,ease:Linear.easeNone}),TweenLite.to(f.$mask,j,{force3D:!0,x:F._.wW*l,ease:k}),TweenLite.to(f.$bkg,j,{force3D:!0,x:-F._.wW*l,ease:k,onCompleteScope:this,onComplete:function(){f.$slide.removeClass("current visible")}}),setTimeout(function(){TweenLite.to(e.$text.find("h3"),.5,{opacity:1,ease:Linear.easeNone}),TweenMax.staggerTo(e.$text.find(".categories > li"),.5,{opacity:1,y:0},.1),c.call(this)},1e3*(j-.2))}else c.call(this)}}},viewWillAppear:function(){F.abstract.APageView.prototype.viewWillAppear.call(this),this.$slides[0].$slide.addClass("visible current"),this.$slides[0].$pager.addClass("current"),TweenLite.set(this.$slides[0].$pagerMask,{x:-40}),TweenLite.set(this.$slides[0].$pagerBkg,{x:40})},viewDidAppear:function(){F.abstract.APageView.prototype.viewDidAppear.call(this),this.sliderIsWorking=!1,this.goToSlide(0)},viewDidDisappear:function(){F.abstract.APageView.prototype.viewDidDisappear.call(this),this.killCurrentSlide(),this.$slides[0].$slide.addClass("current"),this.$slides[0].$pager.addClass("current"),this.currentSliderIndex=-1}})}(window),function(a){a.F.views=a.F.views||{},a.F.views.List=F.abstract.APageView.extend({events:{"change select":"_changeSelect"},selectYearValue:null,selectSubValue:null,_changeSelect:function(a){var b=$(a.currentTarget).val();b&&b.length&&Backbone.history.navigate(F.Utils.absoluteToRelativeUrl(b),{trigger:!0})},render:function(){return F.abstract.APageView.prototype.render.call(this),this.selectYearValue=this.$el.find('select[name="list-year-filter"]').val(),this.selectSubValue=this.$el.find('select[name="list-sub-category-filter"]').val(),this},viewDidDisappear:function(){F.abstract.APageView.prototype.viewDidDisappear.call(this),this.$el.find('select[name="list-year-filter"]').val(this.selectYearValue),this.$el.find('select[name="list-sub-category-filter"]').val(this.selectSubValue)}})}(window),function(a){a.F.views=a.F.views||{},a.F.views.Search=F.abstract.APageView.extend({events:{"submit #header-search-form":"_submitSearch"},_submitSearch:function(a){a.preventDefault();var b=$(a.currentTarget).find("input[type=text]").val();b&&b.length&&Backbone.history.navigate("/recherche/"+encodeURI(b),{trigger:!0})}})}(window),function(a){var b=!1,c=null,d=!1;a.F.views=a.F.views||{},a.F.views.Post=F.abstract.APageView.extend({events:{"submit #comments-form":"_submitComment","submit .response-form":"_submitComment","click .btn-close":function(a){a.preventDefault(),a.stopPropagation(),$(".comment").removeClass("responding")},click:function(a){Modernizr.lightversion&&this.$currentNote&&this.$currentNote.removeClass("active")},"click .notesblock":function(a){Modernizr.lightversion&&a.stopPropagation()},"click .note":function(a){var b=this;a.preventDefault(),a.stopPropagation(),Modernizr.lightversion?(this.$currentNote&&this.$currentNote.removeClass("active"),this.$currentNote=this.$notesBlock.find("[data-note-id='"+$(a.currentTarget).data("note-id")+"']"),this.$currentNote&&this.$currentNote.addClass("active")):(this.$currentNote=this.$notesBottom.find("[data-note-id='"+$(a.currentTarget).data("note-id")+"']"),TweenLite.to($(window),1,{scrollTo:{y:b.$currentNote.offset().top-80}}))},"click #comments .btn":function(a){a.preventDefault(),a.stopPropagation(),$(a.currentTarget).parents("form").submit()},"click .video-overlay":function(a){a.preventDefault();var b=$(a.currentTarget),c=b.parents(".video-wrapper").data("yt-player");c&&c.playVideo?c.playVideo():b.parents(".video-wrapper").attr("data-state","playing")},"click .btn-reply":function(a){a.preventDefault(),a.stopPropagation(),$(".comment").removeClass("responding"),setTimeout(function(){var b=$(a.currentTarget).parents(".comment").offset().top;TweenLite.to(window,.6,{scrollTo:{y:b-50},ease:Power3.easeInOut}),$(a.currentTarget).parents(".comment").addClass("responding"),setTimeout(function(){$(window).trigger("resize")},10)},10)},"click .post-header-video-link":function(){if(this.$header.data("yt-player")||null)this.$header.data("yt-player").playVideo(),this.resumeVideo(this.$header);else{var a=this.$el.find(".video-wrapper--youtube");a.length&&TweenLite.to(window,.6,{scrollTo:{y:a.offset().top-(F._.wH-a.outerHeight())/2}})}},"click .icon-twitter.share-link--citation":function(a){a.preventDefault(),a.stopPropagation();var b=$(a.currentTarget),c=b.parent().text();window.ga&&ga("send","event","share-twitter","click","citation",4),F.openShareTwitter(c)},"click .post-comments-number":function(a){a.preventDefault(),a.stopPropagation(),TweenLite.to(window,.6,{scrollTo:{y:this.$el.find("#comments").offset().top-54-20},ease:Power3.easeInOut})},"play .player-audio-wrapper":"remsumeAudio","pause .player-audio-wrapper":"pauseAudio"},$previousNote:null,$currentNote:null,notes:[],$postBottom:null,$header:null,$titleWrapper:null,hasImage:!1,hasHeaderVideo:!1,height:null,top:0,heightHeader:0,nextPostUrl:null,equationProgress:null,$youtubeWrappers:null,audioPlayers:[],realHeightHeader:0,$postHeaderVideo:null,afterRender:function(){if(!F.isMobile()){this.$el.find(".fullscreen-insert .blockquote-img").each(function(){$(this).addClass("paralax").data({"start-y":-100,"end-y":0,"start-scroll":"100%","end-scroll":"10%"}).parent().addClass("scroll-anim").attr("data-scroll-class","Paralax")})}F.abstract.APageView.prototype.afterRender.call(this)},scroll:function(a){for(var b=0;bc.topElem&&a-1||b.indexOf("dailymotion")>-1&&-1==b.indexOf("widget/jukebox")||b.indexOf("vimeo")>-1)&&(a.parents(".video-wrapper").length||a.wrap('')),a.attr("width","100%"),a.parent().hasClass("inner--the-content")&&a.wrap(""),b.indexOf("youtu")>-1&&(c.push(a),a.parents(".video-wrapper").addClass("video-wrapper--youtube").attr("data-state","paused"))}),F.isMobile()||Modernizr.touch?(this.$header.removeClass("post-header--video"),this):(this.$el.find(".fullscreen-insert > .image-wrapper").each(function(){var a=$(this),b=a.find("img").css("visibility","hidden");a.find(".blockquote-img").length&&a.addClass("image-wrapper--blockquote"),a.css({background:"url("+b.attr("src")+") no-repeat center center","background-size":"cover","background-attachment":"fixed"})}),window.YT?a():F.UI.Playlist().on("YT_API_READY",a),this)},createPlayer:function(a,b,c,d){var e=this;b||(b=a);var f=$("").appendTo(b),g=F.Utils.getYoutubeID(c),h="https://img.youtube.com/vi/"+g+"/maxresdefault.jpg";if(d){var i=b.parents(".fullscreen-insert").length>0,j=$("
",{class:"video-overlay",html:'
'}).appendTo(a),k=new Image;k.src=h,k.onload=function(){k.width<300&&j.remove()},k.onerror=function(){j.remove()}}var l=new YT.Player(f[0],{height:"390",width:"640",videoId:g,playerVars:{rel:0,showinfo:0,origin:F.CONFIG.ROOT_URL},events:{onReady:function(a){d&&j.find("h3").text(l.getVideoData().title)},onStateChange:function(b){b.data==YT.PlayerState.PLAYING?e.resumeVideo(a):e.pauseVideo(a)}}});a.data("yt-player",l)},viewWillAppearForFirstTime:function(){F.abstract.APageView.prototype.viewWillAppearForFirstTime.call(this),window.FB&&window.FB.XFBML&&FB.XFBML.parse(),window.twttr&&window.twttr.widgets&&twttr.widgets.load();var a=this;setTimeout(function(){a.$el.find("iframe,img").on("load",function(){a.resize(F._.wW,F._.wH)})},100)},resumeVideo:function(a){this.resumeMedia(a.attr("data-state","playing"))},remsumeAudio:function(a){this.resumeMedia($(a.currentTarget))},resumeMedia:function(a){this.pauseAllMedia(a)&&(d=!0,c=setTimeout(function(){d=!1},1e3)),b||(b=F.UI.Playlist().isPlaying())&&F.UI.Playlist().pause()},pauseVideo:function(a){a.attr("data-state","paused"),this.pauseMedia()},pauseAudio:function(){this.pauseMedia()},pauseMedia:function(){d||(b&&F.UI.Playlist().resume(),b=!1)},pauseAllMedia:function(a){var b=!1;return $(".video-wrapper--youtube,.post-header--video").not(a||null).each(function(){var a=$(this).data("yt-player");a&&a.getPlayerState&&a.getPlayerState()==YT.PlayerState.PLAYING&&(a.pauseVideo(),b=!0)}),$(".player-audio-wrapper").not(a||null).each(function(){var a=$(this).data("audio-player");a&&a.isPlaying&&(a.pauseAudio(),b=!0)}),b},viewWillDisappear:function(){F.abstract.APageView.prototype.viewWillDisappear.call(this)},viewWillAppear:function(){F.abstract.APageView.prototype.viewWillAppear.call(this)},resize:function(a,b){var c=this;F.abstract.APageView.prototype.resize.call(this,a,b),this.top=this.$el.offset().top,this.height=this.$el.outerHeight(),this.notes=[],this.$$notes.each(function(){var a=$(this).offset().top,b=$(this).offset().top+$(this).outerHeight(),d=c.$notesBlock.find("[data-note-id='"+$(this).data("note-id")+"']"),e={};e.topElem=a,e.bottomElem=b,e.item=d,c.notes.push(e)}),this.realHeightHeader=this.$header.outerHeight(),this.heightHeader=this.$titleWrapper.offset().top-this.top,this.equationProgress=F.Utils.equationDroite(this.heightHeader+this.top,this.$postBottom.offset().top,0,1),this.$postHeaderVideo&&this.$postHeaderVideo.length&&this.$postHeaderVideo.width(1.77*this.$postHeaderVideo.height()),this.trigger("change-height")},viewDidDisappear:function(){F.abstract.APageView.prototype.viewDidDisappear.call(this)},_submitComment:function(a){a.preventDefault();var b=$(a.currentTarget).addClass("loading").removeClass("success error"),c={task:"comment",post_id:this.model.get("id"),parent_id:b.find("input[name=parent]").val()},d=b.find("textarea, input[type=email], input[type=text]");d.each(function(){c[this.name]=$(this).val()}),$.ajax({url:F.CONFIG.THEME_URL+"api.php",data:c,type:"POST",dataType:"json",success:function(a){b.removeClass("loading"),0==a.error?(d.val(""),b.addClass("success")):(b.find(".error-message").text(a.msg&&a.msg.length?a.msg:"Une erreur est survenue lors de l'enregistrement de votre commentaire"),b.addClass("error"))},error:function(){b.find(".error-message").text("Une erreur est survenue"),b.addClass("error").removeClass("loading")}})}})}(window),function(a){a.F.views=a.F.views||{},a.F.views.Festivals=F.abstract.APageView.extend({events:{"click .festival-year-filter":"_toggleFilterYear","click .festival-list-filter":"_toggleFilterList","click .festival-list-filter a":function(a){a.preventDefault()},"click .festival-year-filter a":function(a){a.preventDefault()},"mouseover .festival-list-item-post":"_hoverListItem","mouseleave .festival-list-item-post":function(a){var b=this;this.timerHoverOut=setTimeout(function(){b._hoverOutListItem(a)},500)}},$filterWrapper:null,$filters:null,$filterLinks:null,openFiltersKey:!1,timerHoverOut:null,_hoverOutListItem:function(a){if(!Modernizr.touch){var b=$(a.currentTarget),c=b.parents(".festival-list-item-posts"),d=this.model.get("data").heightBloc,e=c.data("index-heights"),f=d[e+1]?e+1:0;c.data("index-heights",f);var g=(b.data("height"),0);c.children("a").each(function(){TweenLite.killTweensOf(this);var a=d[f][g];TweenLite.to(this,.4,{height:a,ease:Power3.easeOut}),g++})}},_hoverListItem:function(a){if(!Modernizr.touch){var b=$(a.currentTarget),c=b.parents(".festival-list-item-posts"),d=c.children("a");this.timerHoverOut&&(clearTimeout(this.timerHoverOut),this.timerHoverOut=null);var e=d.index(b),f=0;d.each(function(){var a=Math.abs(f-e),b=0;b=0==a?Math.max(this.offsetHeight,400+-20*Math.random()):1==a?260+50*Math.random():2==a?200+50*Math.random():150+50*Math.random(),TweenLite.to(this,.3,{height:b,ease:Power3.easeOut}),f++})}},render:function(){return F.abstract.APageView.prototype.render.call(this),this.$filters={year:this.$el.find(".festival-filters-overlay-year"),list:this.$el.find(".festival-filters-overlay-list")},this.$filterLinks={year:this.$el.find(".festival-year-filter"),list:this.$el.find(".festival-list-filter")},this.$filterWrapper=this.$el.find(".festival-filters-overlay"),this},_toggleFilterYear:function(a){a.stopPropagation(),this.toggleFilters("year")},_toggleFilterList:function(a){a.stopPropagation(),this.toggleFilters("list")},viewDidDisappear:function(){F.abstract.APageView.prototype.viewDidDisappear.call(this),this.openFiltersKey&&this.toggleFilters(this.openFiltersKey)},toggleFilters:function(a){if(this.openFiltersKey!=a){var b=this.$filters[a].outerHeight();this.$filterWrapper.addClass("show").css({opacity:1,height:b});var c=0;this.openFiltersKey&&(c=.4,this.$filterLinks[this.openFiltersKey].removeClass("active"),TweenLite.to(this.$filters[this.openFiltersKey],.4,{autoAlpha:0})),this.$filterLinks[a].addClass("active"),TweenLite.to(this.$filters[a],c,{delay:c,autoAlpha:1}),this.openFiltersKey=a}else this.$filterWrapper.removeClass("show").css({opacity:0,height:0}),this.$filterLinks[this.openFiltersKey].removeClass("active"),TweenLite.set(this.$filters[a],{delay:.4,autoAlpha:0}),this.openFiltersKey=!1}})}(window),function(a){a.F.views=a.F.views||{},a.F.views.Corpo=F.abstract.APageView.extend({$fixedHeader:null,$sliderWrapper:null,topFixedheader:null,headerIsFixed:!1,$sliderCurrent:null,$sliderItemLeft:null,$sliderItemRight:null,sliderItems:null,sliderIndex:-1,maxSlideItemWidth:0,$sliders:null,events:{"click .slider-content-items a":function(a){a.preventDefault(),a.stopPropagation();var b=$(a.currentTarget);this.goToSlide(b.data("index"),b.parents(".slider-content-items--right").length?"right":"left")},"click .slider-bullets a":"_clickBullet","click .slider-prev":function(a){a.preventDefault(),a.stopPropagation();var b=$(a.currentTarget).parents(".corpo-slider"),c=b.find(".slider-bullets a"),d=c.filter(".current").data("index");this.goToSlideForSlider(0==d?c.length-1:d-1,b)},"click .slider-next":function(a){a.preventDefault(),a.stopPropagation();var b=$(a.currentTarget).parents(".corpo-slider"),c=b.find(".slider-bullets a"),d=c.filter(".current").data("index");this.goToSlideForSlider(d==c.length-1?0:d+1,b)},"click #corpo-fixed-menu a":function(a){a.preventDefault(),a.stopPropagation();var b=$(a.currentTarget).attr("href");TweenLite.to(window,1,{scrollTo:{y:$(b).find("h2").offset().top-50},ease:Power3.easeInOut})},"click .contact-link":"openContact","click .close":"closeContact","click #corpo-contact-overlay":function(a){"corpo-contact-overlay"==$(a.target).attr("id")&&this.closeContact(a)},"submit #corpo-contact-form":"_submitContactForm","click #corpo-contact-form .btn":function(a){this._submitContactForm(a)},"click .slider-arrow--next":function(a){a.preventDefault(),a.stopPropagation(),this.goToNextSlide()},"click .slider-arrow--prev":function(a){a.preventDefault(),a.stopPropagation(),this.goToPrevSlide()}},goToNextSlide:function(){this.goToSlide(this.sliderItems[this.sliderIndex+1]?this.sliderIndex+1:0,"right")},goToPrevSlide:function(){this.goToSlide(this.sliderItems[this.sliderIndex-1]?this.sliderIndex-1:this.sliderItems.length-1,"left")},_submitContactForm:function(a){a.preventDefault(),a.stopPropagation();var b=this.$el.find("#corpo-contact-form").addClass("loading").removeClass("success error"),c={task:"contact"},d=b.find("textarea, input[type=email], input[type=text]");d.each(function(){c[this.name]=$(this).val()}),$.ajax({url:F.CONFIG.THEME_URL+"api.php",data:c,type:"POST",dataType:"json",success:function(a){b.removeClass("loading"),0==a.error?(d.val(""),b.addClass("success")):(b.find(".error-message").text(a.msg&&a.msg.length?a.msg:"Une erreur est survenue lors de l'envoi de votre message"),b.addClass("error"))},error:function(){b.find(".error-message").text("Une erreur est survenue"),b.addClass("error").removeClass("loading")}})},closeContact:function(a){a&&a.preventDefault(),a.stopPropagation(),this.$el.find("#corpo-contact-overlay").removeClass("show");var b=this;setTimeout(function(){b.$el.find("#corpo-contact-form").removeClass("loading error success")},1e3)},openContact:function(a){a&&a.preventDefault(),a.stopPropagation();var b=this.$el.find("#corpo-contact-wrapper");b.css({top:F._.scrollTop+F._.wH/2-b.outerHeight()/2}),this.$el.find("#corpo-contact-overlay").addClass("show")},render:function(){var a=this;F.abstract.APageView.prototype.render.call(this),this.$fixedHeader=this.$el.find("#corpo-fixed-menu"),this.$sliderWrapper=this.$el.find("#slider-wrapper"),this.$sliderCurrent=this.$el.find(".slider-current-name-wrapper"),this.$sliderItemLeft=this.$el.find(".slider-content-items--left"),this.$sliderItemRight=this.$el.find(".slider-content-items--right");var b=document.createElement("script");b.src="https://player.vimeo.com/api/player.js",document.getElementsByTagName("head")[0].appendChild(b),a.vimeoPlayers=[],a.ytPlayers=[];var c=setInterval(function(){window.Vimeo&&(a.$el.find(".nos-realisations-images-slider iframe").each(function(){-1!==this.getAttribute("src").indexOf("vimeo")&&a.vimeoPlayers.push(new Vimeo.Player(this))}),clearInterval(c))},100),d=setInterval(function(){window.YT&&window.YT.loaded&&(a.$el.find(".nos-realisations-images-slider iframe").each(function(){-1!==this.getAttribute("src").indexOf("youtube")&&a.ytPlayers.push(new YT.Player(this))}),clearInterval(d))},100);this.sliderItems=[];var e=0,f=this.$el.find("#slider-bkg-wrapper").children();return this.$sliderItemRight.find("a").each(function(){var b=$(this);a.sliderItems.push({$a:b.clone(),text:b.text(),href:b.attr("href"),target:b.attr("target")||"",index:e,bkg:f[e]}),e++}),Modernizr.touch&&this.$el.find("#slider-content-wrapper").swipe({preventDefaultEvents:!1,swipe:function(b,c,d,e,f,g){"left"===c?a.goToNextSlide():"right"===c&&a.goToPrevSlide()}}),this},_clickBullet:function(a){var b=$(a.currentTarget);if(a.preventDefault(),a.stopPropagation(),!b.hasClass("current")){var c=b.parents(".corpo-slider"),d=b.data("index");this.goToSlideForSlider(d,c)}},goToSlideForSlider:function(a,b){if(b.hasClass("corpo-slider--realisations")){for(var c=this.vimeoPlayers.length;c--;)this.vimeoPlayers[c]&&this.vimeoPlayers[c].pause&&this.vimeoPlayers[c].pause();for(c=this.ytPlayers.length;c--;)this.ytPlayers[c]&&this.ytPlayers[c].pauseVideo&&this.ytPlayers[c].pauseVideo()}b.find(".current").removeClass("current"),b.find('.slide-item[data-index="'+a+'"]').addClass("current"),b.find('.slider-bullets a[data-index="'+a+'"]').addClass("current")},goToSlide:function(a,b){if(this.sliderIndex!=a&&this.sliderItems[a]){var c="right"===b?-1:1,d=-1*c,e=this.sliderItems[a],f=this.sliderItems[this.sliderIndex],g=.5,h=Power3.easeIn,i=Power3.easeOut;TweenLite.set(e.bkg,{opacity:1}),TweenLite.to(f.bkg,2*g,{x:c*F._.wW,ease:Power4.easeInOut,onCompleteScope:this,onComplete:function(){setTimeout(function(){TweenLite.set(e.bkg,{zIndex:10}),TweenLite.set(f.bkg,{opacity:0,zIndex:"",x:0}),TweenLite.set(f.bkg.children,{x:0})},100)}}),TweenLite.to(f.bkg.children,2*g,{x:-1*c*F._.wW,ease:Power4.easeInOut,onCompleteScope:this}),F.isMobile()||TweenLite.to(this.$sliderItemLeft.find("a").toArray().concat(this.$sliderItemRight.find("a").toArray()),g,{ease:h,x:c*this.maxSlideItemWidth}),TweenLite.to(this.$sliderCurrent,g,{ease:Linear.easeNone,opacity:0,onCompleteScope:this,onComplete:function(){this.setSlide(a,function(){if(!F.isMobile()){var a=this.$sliderItemLeft.find("a").toArray().concat(this.$sliderItemRight.find("a").toArray());TweenLite.fromTo(a,g,{x:d*this.maxSlideItemWidth},{ease:i,x:0})}TweenLite.to(this.$sliderCurrent,g,{ease:Linear.easeNone,opacity:1})})}})}},setSlide:function(a,b){var c=this;if(this.sliderIndex!=a&&this.sliderItems[a]){var d=this.sliderItems[a];if(this.sliderIndex=a,!F.isMobile()){var e=a;this.$sliderItemRight.find("a").each(function(a){var b=c.sliderItems[e];$(this).data("index",b.index).text(b.text),e=c.sliderItems[e+1]?e+1:0}),e=a,$(this.$sliderItemLeft.find("a").toArray().reverse()).each(function(a){var b=c.sliderItems[e];$(this).data("index",b.index).text(b.text),e=c.sliderItems[e-1]?e-1:c.sliderItems.length-1})}var f=this.$sliderCurrent.find(".slider-current-name");if(f.html(d.text.replace(" ","
")),this.$sliderCurrent.find(".btn").attr({href:d.href,attr:d.attr}),!F.isMobile()){var g=f[0].offsetWidth;this.$sliderItemLeft[0].style.marginRight=g/2+"px",this.$sliderItemRight[0].style.marginLeft=g/2+"px"}b&&setTimeout(function(){b.call(c)},20)}},viewWillAppear:function(){this.sliderIndex>-1&&TweenLite.set(this.sliderItems[this.sliderIndex].bkg,{opacity:0,zIndex:""}),F.abstract.APageView.prototype.viewWillAppear.call(this),this.setSlide(0),TweenLite.set(this.sliderItems[0].bkg,{opacity:1,zIndex:10,x:0}),TweenLite.set(this.sliderItems[0].bkg.children,{x:0});var a=this;this.$el.find(".corpo-slider").each(function(){a.goToSlideForSlider(0,$(this))})},resize:function(a,b){F.abstract.APageView.prototype.resize.call(this,a,b),this.maxSlideItemWidth=0;var c=this;this.$sliderItemLeft.children().each(function(){var a=this.className;this.className="",c.maxSlideItemWidth=Math.max(this.offsetWidth,c.maxSlideItemWidth),this.className=a}),this.topFixedheader=this.$sliderWrapper.height();var d=this.$el.find(".nos-references-logos"),e=d.find("li").height("");if(e.length){var f=e[0].offsetHeight,g=d.find(".slide-item").outerHeight(),h=0;h=g%f>f/2?Math.ceil(g/f):Math.floor(g/f),e.height(g/h)}},scroll:function(a,b){F.abstract.APageView.prototype.scroll.call(this,a,b),F.isMobile()||(a>this.topFixedheader&&!this.headerIsFixed?(this.$fixedHeader.addClass("fixed"),this.headerIsFixed=!0):a<=this.topFixedheader&&this.headerIsFixed&&(this.$fixedHeader.removeClass("fixed"),this.headerIsFixed=!1))}})}(window),function(a){var b=null,c=$("#header-wrapper .burger").on("click",function(a){a.preventDefault(),a.stopPropagation(),c.hasClass("menu-open")?F.closeMenuMobile():F.openMenuMobile()});F.openMenuMobile=function(){F.isMobile()&&(b||(b=$("#main-nav-wrapper").attr("id","main-nav-wrapper-mobile").clone().appendTo("#header-wrapper")),c.addClass("menu-open"),a.on("click.menu-mobile",function(a){$(a.target).parents("#main-nav-wrapper-mobile").length||"main-nav-wrapper-mobile"===$(a.target).attr("id")||F.closeMenuMobile()}),b&&setTimeout(function(){b.addClass("menu-open")},10))},F.closeMenuMobile=function(){F.isMobile()&&(c.removeClass("menu-open"),a.off("click.menu-mobile"),b&&b.removeClass("menu-open"))}}($(document.body)),function(a,b,c){F._.wW=a.width(),F._.wH=a.height(),F._.scrollTop=a.scrollTop();var d=!1,e=navigator.userAgent,f=navigator.vendor;F.browsers={chrome:/Chrome/.test(e)&&/Google Inc/.test(f),safari:/Safari/.test(e)&&/Apple Computer/.test(f),FF:"undefined"!=typeof InstallTrigger,IE:!!document.documentMode};var g=[],h=[],i=0,j=0;a.on("scroll",function(){d?window.scrollTo(0,j):(j=a.scrollTop(),F._.scrollTop=j)}).on("resize",function(){F._.wW=a.width(),F._.wH=a.height(),_.each(g,function(a){a.resize&&a.resize(F._.wW,F._.wH)})}),TweenLite.ticker.addEventListener("tick",function(){i!=j&&(i=j,_.each(h,function(a){a.scroll&&a.scroll(j)}))}),F.UI.Playlist();var k=$.ajax;$.ajax=function(){var a=Array.prototype.slice.call(arguments,0),b=a[0]||{},c=b.success||function(){};return b.dataType="",b.success=function(a){a&&"string"==typeof a?(a=a.replace('
+