/******************************************** - themepunch tools ver. 1.0 - last update of tools 17.11.2014 *********************************************/ /* * @fileoverview touchswipe - jquery plugin * @version 1.6.6 * * @author matt bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/touchswipe-jquery-plugin * @see http://labs.skinkers.com/touchswipe/ * @see http://plugins.jquery.com/project/touchswipe * * copyright (c) 2010 matt bryson * dual licensed under the mit or gpl version 2 licenses. * */ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jquery){define(["jquery"],a)}else{a(jquery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",a="tap",j="doubletap",b="longtap",y="hold",d="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.mspointerenabled&&!window.navigator.pointerenabled,d=window.navigator.pointerenabled||window.navigator.mspointerenabled,b="touchswipe";var n={fingers:1,threshold:75,cancelthreshold:null,pinchthreshold:20,maxtimethreshold:null,fingerreleasethreshold:250,longtapthreshold:500,doubletapthreshold:200,swipe:null,swipeleft:null,swiperight:null,swipeup:null,swipedown:null,swipestatus:null,pinchin:null,pinchout:null,pinchstatus:null,click:null,tap:null,doubletap:null,longtap:null,hold:null,triggerontouchend:true,triggerontouchleave:false,allowpagescroll:"auto",fallbacktomouseevents:true,excludedelements:"label, button, input, select, textarea, a, .noswipe"};f.fn.swipe=function(g){var f=f(this),e=f.data(b);if(e&&typeof g==="string"){if(e[g]){return e[g].apply(this,array.prototype.slice.call(arguments,1))}else{f.error("method "+g+" does not exist on jquery.swipe")}}else{if(!e&&(typeof g==="object"||!g)){return w.apply(this,arguments)}}return f};f.fn.swipe.defaults=n;f.fn.swipe.phases={phase_start:g,phase_move:k,phase_end:h,phase_cancel:q};f.fn.swipe.directions={left:p,right:o,up:e,down:x,in:c,out:z};f.fn.swipe.pagescroll={none:m,horizontal:d,vertical:u,auto:s};f.fn.swipe.fingers={one:1,two:2,three:3,all:i};function w(e){if(e&&(e.allowpagescroll===undefined&&(e.swipe!==undefined||e.swipestatus!==undefined))){e.allowpagescroll=m}if(e.click!==undefined&&e.tap===undefined){e.tap=e.click}if(!e){e={}}e=f.extend({},f.fn.swipe.defaults,e);return this.each(function(){var g=f(this);var f=g.data(b);if(!f){f=new c(this,e);g.data(b,f)}})}function c(a4,av){var az=(a||d||!av.fallbacktomouseevents),j=az?(d?(v?"mspointerdown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"mspointermove":"pointermove"):"touchmove"):"mousemove",u=az?(d?(v?"mspointerup":"pointerup"):"touchend"):"mouseup",s=az?null:"mouseleave",ad=(d?(v?"mspointercancel":"pointercancel"):"touchcancel");var ag=0,ap=null,ab=0,a1=0,az=0,g=1,aq=0,aj=0,m=null;var ar=f(a4);var z="start";var w=0;var aq=null;var t=0,a2=0,a5=0,ad=0,n=0;var aw=null,af=null;try{ar.bind(j,an);ar.bind(ad,a9)}catch(ak){f.error("events not supported "+j+","+ad+" on jquery.swipe")}this.enable=function(){ar.bind(j,an);ar.bind(ad,a9);return ar};this.disable=function(){ak();return ar};this.destroy=function(){ak();ar.data(b,null);return ar};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("option "+bc+" does not exist on jquery.swipe.options")}return null};function an(bd){if(ab()){return}if(f(bd.target).closest(av.excludedelements,ar).length>0){return}var be=bd.originalevent?bd.originalevent:bd;var bc,bb=a?be.touches[0]:be;z=g;if(a){w=be.touches.length}else{bd.preventdefault()}ag=0;ap=null;aj=null;ab=0;a1=0;az=0;g=1;aq=0;aq=aj();m=aa();r();if(!a||(w===av.fingers||av.fingers===i)||ax()){ai(0,bb);t=at();if(w==2){ai(1,be.touches[1]);a1=az=au(aq[0].start,aq[1].start)}if(av.swipestatus||av.pinchstatus){bc=o(be,z)}}else{bc=false}if(bc===false){z=q;o(be,z);return bc}else{if(av.hold){af=settimeout(f.proxy(function(){ar.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(ar,be,be.target)}},this),av.longtapthreshold)}ao(true)}return null}function a3(be){var bh=be.originalevent?be.originalevent:be;if(z===h||z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=ah(bc);a2=at();if(a){w=bh.touches.length}if(av.hold){cleartimeout(af)}z=k;if(w==2){if(a1==0){ai(1,bh.touches[1]);a1=az=au(aq[0].start,aq[1].start)}else{ah(bh.touches[1]);az=au(aq[0].end,aq[1].end);aj=ar(aq[0].end,aq[1].end)}g=a7(a1,az);aq=math.abs(a1-az)}if((w===av.fingers||av.fingers===i)||!a||ax()){ap=al(bf.start,bf.end);al(be,ap);ag=as(bf.start,bf.end);ab=am();ai(ap,ag);if(av.swipestatus||av.pinchstatus){bd=o(bh,z)}if(!av.triggerontouchend||av.triggerontouchleave){var bb=true;if(av.triggerontouchleave){var bg=ay(this);bb=e(bf.end,bg)}if(!av.triggerontouchend&&bb){z=ac(k)}else{if(av.triggerontouchleave&&!bb){z=ac(h)}}if(z==q||z==h){o(bh,z)}}}else{z=q;o(bh,z)}if(bd===false){z=q;o(bh,z)}}function l(bb){var bc=bb.originalevent;if(a){if(bc.touches.length>0){f();return true}}if(am()){w=ad}a2=at();ab=am();if(ba()||!an()){z=q;o(bc,z)}else{if(av.triggerontouchend||(av.triggerontouchend==false&&z===k)){bb.preventdefault();z=h;o(bc,z)}else{if(!av.triggerontouchend&&a6()){z=h;af(bc,z,a)}else{if(z===k){z=q;o(bc,z)}}}}ao(false);return null}function a9(){w=0;a2=0;t=0;a1=0;az=0;g=1;r();ao(false)}function k(bb){var bc=bb.originalevent;if(av.triggerontouchleave){z=ac(h);o(bc,z)}}function ak(){ar.unbind(j,an);ar.unbind(ad,a9);ar.unbind(ay,a3);ar.unbind(u,l);if(s){ar.unbind(s,k)}ao(false)}function ac(bf){var be=bf;var bd=aa();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerontouchend||av.triggerontouchleave)){be=h}else{if(!bc&&bf==h&&av.triggerontouchleave){be=q}}}return be}function o(bd,bb){var bc=undefined;if(i()||v()){bc=af(bd,bb,l)}else{if((p()||ax())&&bc!==false){bc=af(bd,bb,t)}}if(ag()&&bc!==false){bc=af(bd,bb,j)}else{if(ap()&&bc!==false){bc=af(bd,bb,b)}else{if(ah()&&bc!==false){bc=af(bd,bb,a)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function af(be,bb,bd){var bc=undefined;if(bd==l){ar.trigger("swipestatus",[bb,ap||null,ag||0,ab||0,w,aq]);if(av.swipestatus){bc=av.swipestatus.call(ar,be,bb,ap||null,ag||0,ab||0,w,aq);if(bc===false){return false}}if(bb==h&&av()){ar.trigger("swipe",[ap,ag,ab,w,aq]);if(av.swipe){bc=av.swipe.call(ar,be,ap,ag,ab,w,aq);if(bc===false){return false}}switch(ap){case p:ar.trigger("swipeleft",[ap,ag,ab,w,aq]);if(av.swipeleft){bc=av.swipeleft.call(ar,be,ap,ag,ab,w,aq)}break;case o:ar.trigger("swiperight",[ap,ag,ab,w,aq]);if(av.swiperight){bc=av.swiperight.call(ar,be,ap,ag,ab,w,aq)}break;case e:ar.trigger("swipeup",[ap,ag,ab,w,aq]);if(av.swipeup){bc=av.swipeup.call(ar,be,ap,ag,ab,w,aq)}break;case x:ar.trigger("swipedown",[ap,ag,ab,w,aq]);if(av.swipedown){bc=av.swipedown.call(ar,be,ap,ag,ab,w,aq)}break}}}if(bd==t){ar.trigger("pinchstatus",[bb,aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchstatus){bc=av.pinchstatus.call(ar,be,bb,aj||null,aq||0,ab||0,w,g,aq);if(bc===false){return false}}if(bb==h&&a8()){switch(aj){case c:ar.trigger("pinchin",[aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchin){bc=av.pinchin.call(ar,be,aj||null,aq||0,ab||0,w,g,aq)}break;case z:ar.trigger("pinchout",[aj||null,aq||0,ab||0,w,g,aq]);if(av.pinchout){bc=av.pinchout.call(ar,be,aj||null,aq||0,ab||0,w,g,aq)}break}}}if(bd==a){if(bb===q||bb===h){cleartimeout(aw);cleartimeout(af);if(y()&&!h()){n=at();aw=settimeout(f.proxy(function(){n=null;ar.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(ar,be,be.target)}},this),av.doubletapthreshold)}else{n=null;ar.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(ar,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){cleartimeout(aw);n=null;ar.trigger("doubletap",[be.target]);if(av.doubletap){bc=av.doubletap.call(ar,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){cleartimeout(aw);n=null;ar.trigger("longtap",[be.target]);if(av.longtap){bc=av.longtap.call(ar,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelthreshold!==null&&ap!==null){bb=(at(ap)-ag)>=av.cancelthreshold}return bb}function ae(){if(av.pinchthreshold!==null){return aq>=av.pinchthreshold}return true}function aa(){var bb;if(av.maxtimethreshold){if(ab>=av.maxtimethreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowpagescroll===m||ax()){bb.preventdefault()}else{var bd=av.allowpagescroll===s;switch(bc){case p:if((av.swipeleft&&bd)||(!bd&&av.allowpagescroll!=d)){bb.preventdefault()}break;case o:if((av.swiperight&&bd)||(!bd&&av.allowpagescroll!=d)){bb.preventdefault()}break;case e:if((av.swipeup&&bd)||(!bd&&av.allowpagescroll!=u)){bb.preventdefault()}break;case x:if((av.swipedown&&bd)||(!bd&&av.allowpagescroll!=u)){bb.preventdefault()}break}}}function a8(){var bc=ao();var bb=x();var bd=ae();return bc&&bb&&bd}function ax(){return !!(av.pinchstatus||av.pinchin||av.pinchout)}function p(){return !!(a8()&&ax())}function av(){var be=aa();var bg=an();var bd=ao();var bb=x();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function v(){return !!(av.swipe||av.swipestatus||av.swipeleft||av.swiperight||av.swipeup||av.swipedown)}function i(){return !!(av()&&v())}function ao(){return((w===av.fingers||av.fingers===i)||!a)}function x(){return aq[0].end.x!==0}function a6(){return !!(av.tap)}function y(){return !!(av.doubletap)}function au(){return !!(av.longtap)}function q(){if(n==null){return false}var bb=at();return(y()&&((bb-n)<=av.doubletapthreshold))}function h(){return q()}function ax(){return((w===1||!a)&&(isnan(ag)||agav.longtapthreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new date();return bb.gettime()}function ay(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerwidth(),top:bd.top,bottom:bd.top+bb.outerheight()};return bc}function e(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.ye;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=function(){},f=function(){var t=object.prototype.tostring,e=t.call([]);return function(i){return null!=i&&(i instanceof array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},p=function(s,r,n,a){this.sc=c[s]?c[s].sc:[],c[s]=this,this.gsclass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,m,f,d=r.length,v=d;--d>-1;)(_=c[r[d]]||new p(r[d],[])).gsclass?(o[d]=_.gsclass,v--):h&&_.sc.push(this);if(0===v&&n)for(u=("com.greensock."+s).split("."),m=u.pop(),f=l(u.join("."))[m]=this.gsclass=n.apply(n,o),a&&(i[m]=f,"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+s.split(".").pop(),[],function(){return f}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsdefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],t=[],y=v("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},p=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getratio?t:t[o]||new t};for(n=y.prototype,n._calcend=!1,n.getratio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["linear","quad","cubic","quart","quint,strong"],r=s.length;--r>-1;)n=s[r]+",power"+r,p(new y(null,null,1,r),n,"easeout",!0),p(new y(null,null,2,r),n,"easein"+(0===r?",easenone":"")),p(new y(null,null,3,r),n,"easeinout");w.linear=h.easing.linear.easein,w.swing=h.easing.quad.easeinout;var b=v("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});n=b.prototype,n.addeventlistener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeeventlistener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchevent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventtarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestanimationframe,a=t.cancelanimationframe,s=date.now||function(){return(new date).gettime()},x=s();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"requestanimationframe"],a=t[s[r]+"cancelanimationframe"]||t[s[r]+"cancelrequestanimationframe"];v("ticker",function(t,e){var i,s,r,n,l,h=this,u=s(),f=e!==!1&&k,c=500,p=33,d=function(t){var e,a,o=s()-x;o>c&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(d)),a&&h.dispatchevent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagsmoothing=function(t,e){c=t||1/_,p=math.min(e,c,0)},h.sleep=function(){null!=r&&(f&&a?a(r):cleartimeout(r),s=m,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=s()-c+5),s=0===i?m:f&&k?k:function(t){return settimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useraf=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),settimeout(function(){f&&(!r||5>h.frame)&&h.useraf(!1)},1500)}),n=h.ticker.prototype=new h.events.eventdispatcher,n.constructor=h.ticker;var r=v("core.animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalduration=t||0,this._delay=number(e.delay)||0,this._timescale=1,this._active=e.immediaterender===!0,this.data=e.data,this._reversed=e.reversed===!0,b){o||a.wake();var i=this.vars.useframes?q:b;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=r.ticker=new h.ticker,n=r.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totaltime=n._time=0,n._rawprevtime=-1,n._next=n._last=n._onupdate=n._timeline=n.timeline=null,n._paused=!1;var c=function(){o&&s()-x>2e3&&a.wake(),settimeout(c,2e3)};c(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totaltime(number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totaltime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalduration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isactive=function(){var t,e=this._timeline,i=this._starttime;return!e||!this._gc&&!this._paused&&e.isactive()&&(t=e.rawtime())>=i&&i+this.totalduration()/this._timescale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isactive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._starttime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapselfinparams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventcallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"params"]=f(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,r[t+"scope"]=s),"onupdate"===t&&(this._onupdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalduration=t,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},n.totaltime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>t&&!i&&(t+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var s=this._totalduration,r=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:r._time)-(this._reversed?s-t:t)/this._timescale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._starttime+r._totaltime)/r._timescale&&r.totaltime(r._totaltime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&m())}return this},n.progress=n.totalprogress=function(t,e){return arguments.length?this.totaltime(this.duration()*t,e):this._time/this.duration()},n.starttime=function(t){return arguments.length?(t!==this._starttime&&(this._starttime=t,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,t-this._delay)),this):this._starttime},n.endtime=function(t){return this._starttime+(0!=t?this.totalduration():this.duration())/this._timescale},n.timescale=function(t){if(!arguments.length)return this._timescale;if(t=t||_,this._timeline&&this._timeline.smoothchildtiming){var e=this._pausetime,i=e||0===e?e:this._timeline.totaltime();this._starttime=i-(i-this._starttime)*this._timescale/t}return this._timescale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawtime(),s=i-this._pausetime;!t&&e.smoothchildtiming&&(this._starttime+=s,this._uncache(!1)),this._pausetime=t?i:null,this._paused=t,this._active=this.isactive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothchildtiming?this._totaltime:(i-this._starttime)/this._timescale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var d=v("core.simpletimeline",function(t){r.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});n=d.prototype=new r,n.constructor=d,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortchildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._starttime=number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pausetime=t._starttime+(this.rawtime()-t._starttime)/t._timescale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortchildren)for(s=t._starttime;i&&i._starttime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totaltime=this._time=this._rawprevtime=t;r;)s=r._next,(r._active||t>=r._starttime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalduration():r._totalduration)-(t-r._starttime)*r._timescale,e,i):r.render((t-r._starttime)*r._timescale,e,i)),r=s},n.rawtime=function(){return o||a.wake(),this._totaltime};var i=v("tweenlite",function(e,i,s){if(r.call(this,i,s),this.render=i.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:i.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[i.defaultoverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._proplookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodetype&&n[0].style&&!n.nodetype)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=$(n,this,!1),1===l&&this._siblings[r].length>1&&h(n,this,null,1,this._siblings[r])):(n=a[r--]=i.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._proplookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&h(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),e=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},o=function(t,e){var i,s={};for(i in t)g[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!u[i]||u[i]&&u[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};n=i.prototype=new r,n.constructor=i,n.kill()._gc=!1,n.ratio=0,n._firstpt=n._targets=n._overwrittenprops=n._startat=null,n._notifypluginsofenabled=n._lazy=!1,i.version="1.14.2",i.defaultease=n._ease=new y(null,null,1,1),i.defaultoverwrite="auto",i.ticker=a,i.autosleep=!0,i.lagsmoothing=function(t,e){a.lagsmoothing(t,e)},i.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(i.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)};var z=[],l={},n=i._internals={isarray:f,isselector:e,lazytweens:z},u=i._plugins={},f=n.tweenlookup={},j=0,g=n.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},q={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},q=r._rootframestimeline=new d,b=r._roottimeline=new d,m=n.lazyrender=function(){var t,e=z.length;for(l={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};b._starttime=a.time,q._starttime=a.frame,b._active=q._active=!0,settimeout(m,1),r._updateroot=i.render=function(){var t,e,i;if(z.length&&m(),b.render((a.time-b._starttime)*b._timescale,!1,!1),q.render((a.frame-q._starttime)*q._timescale,!1,!1),z.length&&m(),!(a.frame%120)){for(i in f){for(e=f[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete f[i]}if(i=b._first,(!i||i._paused)&&i.autosleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addeventlistener("tick",r._updateroot);var $=function(t,e,i){var s,r,n=t._gstweenid;if(f[n||(t._gstweenid=n="t"+j++)]||(f[n]={target:t,tweens:[]}),e&&(s=f[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return f[n].tweens},k=function(t,e,i,s){var r,n,a=t.vars.onoverwrite;return a&&(r=a(t,e,i,s)),a=i.onoverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},h=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||k(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._starttime+_,m=[],f=0,c=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||j(e,0,c),0===j(o,h,c)&&(m[f++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((c||!o._initted)&&2e-10>=u-o._starttime||(m[f++]=o)));for(n=f;--n>-1;)if(o=m[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstpt&&o._initted){if(2!==s&&!k(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},j=function(t,e,i){for(var s=t._timeline,r=s._timescale,n=t._starttime;s._timeline;){if(n+=s._starttime,r*=s._timescale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalduration()/t._timescale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenprops,o=this._duration,l=!!n.immediaterender,h=n.ease;if(n.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),r={};for(s in n.startat)r[s]=n.startat[s];if(r.overwrite=!1,r.immediaterender=!0,r.lazy=l&&n.lazy!==!1,r.startat=r.delay=null,this._startat=i.to(this.target,0,r),l)if(this._time>0)this._startat=null;else if(0!==o)return}else if(n.runbackwards&&0!==o)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(l=!1),i={};for(s in n)g[s]&&"autocss"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isfromstart",i.lazy=l&&n.lazy!==!1,i.immediaterender=l,this._startat=i.to(this.target,0,i),l){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeparams):w[h]||i.defaultease:i.defaultease,n.easeparams instanceof array&&h.config&&(this._ease=h.config.apply(h,n.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(t=this._targets.length;--t>-1;)this._initprops(this._targets[t],this._proplookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,a);if(e&&i._onpluginevent("_oninitallprops",this),a&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runbackwards)for(i=this._firstpt;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onupdate=n.onupdate,this._initted=!0},n._initprops=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;l[e._gstweenid]&&m(),this.vars.css||e.style&&e!==t&&e.nodetype&&u.css&&this.vars.autocss!==!1&&o(this.vars,e);for(n in this.vars){if(_=this.vars[n],g[n])_&&(_ instanceof array||_.push&&f(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[n]=_=this._swapselfinparams(_,this));else if(u[n]&&(l=new u[n])._oninittween(e,this.vars[n],this)){for(this._firstpt=h={_next:this._firstpt,t:l,p:"setratio",s:0,c:1,f:!0,n:n,pg:!0,pr:l._priority},a=l._overwriteprops.length;--a>-1;)i[l._overwriteprops[a]]=this._firstpt;(l._priority||l._oninitallprops)&&(o=!0),(l._ondisable||l._onenable)&&(this._notifypluginsofenabled=!0)}else this._firstpt=i[n]=h={_next:this._firstpt,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexof("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parsefloat(e[n]),h.c="string"==typeof _&&"="===_.charat(1)?parseint(_.charat(0)+"1",10)*number(_.substr(2)):number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initprops(e,i,s,r):this._overwrite>1&&this._firstpt&&s.length>1&&h(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,r)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(l[e._gstweenid]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawprevtime;if(t>=l)this._totaltime=this._time=l,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,r="oncomplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._starttime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(r="onreversecomplete")),this._rawprevtime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(r="onreversecomplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawprevtime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var u=t/l,m=this._easetype,f=this._easepower;(1===m||3===m&&u>=.5)&&(u=1-u),3===m&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===m?1-u:2===m?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getratio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=o,this._rawprevtime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getratio(this._time/l):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):r||(r="_dummygs")),this.vars.onstart&&(0!==this._time||0===l)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||t))),n=this._firstpt;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onupdate&&(0>t&&this._startat&&t!==-1e-4&&this._startat.render(t,e,i),e||(this._time!==o||s)&&this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||t)),r&&(!this._gc||i)&&(0>t&&this._startat&&!this._onupdate&&t!==-1e-4&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"scope"]||this,this.vars[r+"params"]||t),0===l&&this._rawprevtime===_&&a!==_&&(this._rawprevtime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:i.selector(e)||e;var s,r,n,a,o,l,h,_,u;if((f(e)||e(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s])&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._proplookup[s]||{},this._overwrittenprops=this._overwrittenprops||[],r=this._overwrittenprops[s]=t?this._overwrittenprops[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._proplookup,r=this._overwrittenprops=t?this._overwrittenprops||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempkill),i&&(i.onoverwrite||this.vars.onoverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if(!k(this,i,e,u))return!1}for(n in h)(a=o[n])&&(a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteprops.length||(a._prev?a._prev._next=a._next:a===this._firstpt&&(this._firstpt=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifypluginsofenabled&&i._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],r.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return r.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?i._onpluginevent(t?"_onenable":"_ondisable",this):!1},i.to=function(t,e,i){return new i(t,e,i)},i.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new i(t,e,i)},i.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new i(t,e,s)},i.delayedcall=function(t,e,i,s,r){return new i(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:r,overwrite:0})},i.set=function(t,e){return new i(t,0,e)},i.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:i.selector(t)||t;var i,s,r,n;if((f(t)||e(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(i.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},i.killtweensof=i.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=i.gettweensof(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var v=v("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=v.prototype},!0);if(n=v.prototype,v.version="1.10.1",v.api=2,n._firstpt=null,n._addtween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charat(1)?number(s)-i:parseint(s.charat(0)+"1",10)*number(s.substr(2)))?(this._firstpt=o={_next:this._firstpt,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setratio=function(t){for(var e,i=this._firstpt,s=1e-6;i;)e=i.c*t+i.s,i.r?e=math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteprops,s=this._firstpt;if(null!=t[this._propname])this._overwriteprops=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstpt===s&&(this._firstpt=s._next)),s=s._next;return!1},n._roundprops=function(t,e){for(var i=this._firstpt;i;)(t[this._propname]||null!=i.n&&t[i.n.split(this._propname+"_").join("")])&&(i.r=e),i=i._next},i._onpluginevent=function(t,e){var i,s,r,n,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstpt=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},v.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===v.api&&(u[(new t[e])._propname]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,r=t.overwriteprops,n={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=v("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){v.call(this,i,s),this._overwriteprops=r||[]},t.global===!0),o=a.prototype=new v(i);o.constructor=a,a.api=t.api;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,v.activate([a]),a},s=t._gsqueue){for(r=0;s.length>r;r++)s[r]();for(n in c)c[n].func||t.console.log("gsap encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"tweenlite"); /*! * version: 1.14.2 * date: 2014-10-18 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexof("{self}")&&(r[s]=this._swapselfinparams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isselector,o=n.isarray,h=n.lazytweens,l=n.lazyrender,_=[],u=_gsscope._gsdefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=function(t,e,i,s){var r=t._timeline._totaltime;(e||!this._forcingplayhead)&&(t._timeline.pause(t._starttime),e&&e.apply(s||t._timeline,i||_),this._forcingplayhead&&t._timeline.seek(r))},f=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.14.2",m.constructor=s,m.kill()._gc=m._forcingplayhead=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.tweenmax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.tweenmax||i).from(t,e,s),r)},m.fromto=function(t,e,s,r,n){var a=r.repeat&&u.tweenmax||i;return e?this.add(a.fromto(t,e,s,r),n):this.set(t,r,n)},m.staggerto=function(t,e,r,n,o,h,l,_){var u,p=new s({oncomplete:h,oncompleteparams:l,oncompletescope:_,smoothchildtiming:this.smoothchildtiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=f(t)),n=n||0,0>n&&(t=f(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startat&&(r.startat=c(r.startat)),p.to(t[u],e,c(r),u*n);return this.add(p,o)},m.staggerfrom=function(t,e,i,s,r,n,a,o){return i.immediaterender=0!=i.immediaterender,i.runbackwards=!0,this.staggerto(t,e,i,s,r,n,a,o)},m.staggerfromto=function(t,e,i,s,r,n,a,o,h){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,this.staggerto(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedcall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parsetimeorlabel(s,0,!0),null==e.immediaterender&&(e.immediaterender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportroot=function(t,e){t=t||{},null==t.smoothchildtiming&&(t.smoothchildtiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._starttime=0,a._rawprevtime=a._time=a._totaltime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.oncomplete||a.add(r,r._starttime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,c,p,f;if("number"!=typeof n&&(n=this._parsetimeorlabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(c=r[u])&&(c=new s({tweens:c})),this.add(c,l),"string"!=typeof c&&"function"!=typeof c&&("sequence"===a?l=c._starttime+c.totalduration()/c._timescale:"start"===a&&(c._starttime-=c.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addlabel(r,n);if("function"!=typeof r)throw"cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedcall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._starttime;p._timeline;)f&&p._timeline.smoothchildtiming?p.totaltime(p._totaltime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removelabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._starttime+s._totalduration/s._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},m.append=function(t,e){return this.add(t,this._parsetimeorlabel(null,e,!0,t))},m.insert=m.insertmultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendmultiple=function(t,e,i,s){return this.add(t,this._parsetimeorlabel(null,e,!0,t),i,s)},m.addlabel=function(t,e){return this._labels[t]=this._parsetimeorlabel(e),this},m.addpause=function(t,e,i,s){return this.call(p,["{self}",e,i,s],this,t)},m.removelabel=function(t){return delete this._labels[t],this},m.getlabeltime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parsetimeorlabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parsetimeorlabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isnan(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexof("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseint(e.charat(n-1)+"1",10)*number(e.substr(n+1)),e=n>1?this._parsetimeorlabel(e.substr(0,n-1),0,s):this.duration()}return number(e)+i},m.seek=function(t,e){return this.totaltime("number"==typeof t?t:this._parsetimeorlabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoandplay=function(t,e){return this.play(t,e)},m.gotoandstop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,c=this._dirty?this.totalduration():this._totalduration,p=this._time,f=this._starttime,m=this._timescale,d=this._paused;if(t>=c?(this._totaltime=this._time=c,this._reversed||this._haspausedchild()||(n=!0,o="oncomplete",0===this._duration&&(0===t||0>this._rawprevtime||this._rawprevtime===r)&&this._rawprevtime!==t&&this._first&&(u=!0,this._rawprevtime>r&&(o="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=c+1e-4):1e-7>t?(this._totaltime=this._time=0,(0!==p||0===this._duration&&this._rawprevtime!==r&&(this._rawprevtime>0||0>t&&this._rawprevtime>=0))&&(o="onreversecomplete",n=this._reversed),0>t?(this._active=!1,this._rawprevtime>=0&&this._first&&(u=!0),this._rawprevtime=t):(this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=0,this._initted||(u=!0))):this._totaltime=this._time=this._rawprevtime=t,this._time!==p&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onstart&&0!==this._time&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||_)),this._time>=p)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._starttime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||p>=s._starttime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;this._onupdate&&(e||(h.length&&l(),this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||_))),o&&(this._gc||(f===this._starttime||m!==this._timescale)&&(0===this._time||c>=this.totalduration())&&(n&&(h.length&&l(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"scope"]||this,this.vars[o+"params"]||_)))}},m._haspausedchild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._haspausedchild())return!0;t=t._next}return!1},m.getchildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._starttime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getchildren(!0,e,s)),o=n.length))),a=a._next;return n},m.gettweensof=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.gettweensof(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftchildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._starttime>=i&&(r._starttime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.gettweensof(e):this.getchildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getchildren(!1,!0,!0),i=e.length;for(this._time=this._totaltime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.totaltime=function(){this._forcingplayhead=!0;var e=t.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timescale(this._duration/t),this):(this._dirty&&this.totalduration(),this._duration)},m.totalduration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalduration(),r._starttime>n&&this._sortchildren&&!r._paused?this.add(r,r._starttime-r._delay):n=r._starttime,0>r._starttime&&!r._paused&&(s-=r._starttime,this._timeline.smoothchildtiming&&(this._starttime+=r._starttime/this._timescale),this.shiftchildren(-r._starttime,!1,-9999999999),n=0),i=r._starttime+r._totalduration/r._timescale,i>s&&(s=i),r=e;this._duration=this._totalduration=s,this._dirty=!1}return this._totalduration}return 0!==this.totalduration()&&0!==t&&this.timescale(this._totalduration/t),this},m.usesframes=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootframestimeline},m.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},s},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("./tweenlite.js"),module.exports=e())}("timelinelite"); /*! * version: beta 1.9.4 * date: 2014-07-17 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("easing.back",["easing.ease"],function(t){var e,i,s,r=_gsscope.greensockglobals||_gsscope,n=r.com.greensock,a=2*math.pi,o=math.pi/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeout:new e,easein:new i,easeinout:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,r.config=function(t){return new s(t)},s},f=u("back",p("backout",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("backin",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("backinout",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.slowmo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcend=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getratio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcend?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcend?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcend?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.steppedease",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getratio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.roughease",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?math.random():1/u*p,s=d?d.getratio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getratio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("bounce",l("bounceout",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("bouncein",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("bounceinout",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("circ",l("circout",function(t){return math.sqrt(1-(t-=1)*t)}),l("circin",function(t){return-(math.sqrt(1-t*t)-1)}),l("circinout",function(t){return 1>(t*=2)?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getratio=i,n.config=function(t,e){return new r(t,e)},r},u("elastic",s("elasticout",function(t){return this._p1*math.pow(2,-10*t)*math.sin((t-this._p3)*a/this._p2)+1},.3),s("elasticin",function(t){return-(this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2))},.3),s("elasticinout",function(t){return 1>(t*=2)?-.5*this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2):.5*this._p1*math.pow(2,-10*(t-=1))*math.sin((t-this._p3)*a/this._p2)+1},.45)),u("expo",l("expoout",function(t){return 1-math.pow(2,-10*t)}),l("expoin",function(t){return math.pow(2,10*(t-1))-.001}),l("expoinout",function(t){return 1>(t*=2)?.5*math.pow(2,10*(t-1)):.5*(2-math.pow(2,-10*(t-1)))})),u("sine",l("sineout",function(t){return math.sin(t*o)}),l("sinein",function(t){return-math.cos(t*o)+1}),l("sineinout",function(t){return-.5*(math.cos(math.pi*t)-1)})),h("easing.easelookup",{find:function(e){return t.map[e]}},!0),_(r.slowmo,"slowmo","ease,"),_(i,"roughease","ease,"),_(e,"steppedease","ease,"),f},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(); /*! * version: 1.14.2 * date: 2014-10-28 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteprops.length=0,this.setratio=a.prototype.setratio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.14.2",a.api=2,a.defaulttransformperspective=0,a.defaultskewtype="compensated",l="px",a.suffixmap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontsize:l,padding:l,margin:l,perspective:l,lineheight:""};var h,u,f,p,_,c,d=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|e[+-]\d+)[^0-9]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,t=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,p=/([a-z])/g,s=/-([a-z])/gi,r=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,c=function(t,e){return e.touppercase()},k=/(?:left|right|width)/i,o=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,a=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,d=/,(?=[^\)]*(?:\(|$))/gi,m=math.pi/180,l=180/math.pi,n={},z=document,x=z.createelement("div"),i=z.createelement("img"),e=a._internals={_specialprops:o},f=navigator.useragent,y=function(){var t,e=f.indexof("android"),i=z.createelement("div");return f=-1!==f.indexof("safari")&&-1===f.indexof("chrome")&&(-1===e||number(f.substr(e+8,1))>3),_=f&&6>number(f.substr(f.indexof("version/")+8,1)),p=-1!==f.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(f)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(f))&&(c=parsefloat(regexp.$1)),i.innerhtml="a",t=i.getelementsbytagname("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),b=function(t){return x.test("string"==typeof t?t:(t.currentstyle?t.currentstyle.filter:t.style.filter)||"")?parsefloat(regexp.$1)/100:1},u=function(t){window.console&&console.log(t)},j="",w="",v=function(t,e){e=e||x;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charat(0).touppercase()+t.substr(1),i=["o","moz","ms","ms","webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(w=3===r?"ms":i[r],j="-"+w.tolowercase()+"-",w+t):null},q=z.defaultview?z.defaultview.getcomputedstyle:function(){},h=a.getstyle=function(t,e,i,r,s){var n;return y||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t))?n=i[e]||i.getpropertyvalue(e)||i.getpropertyvalue(e.replace(p,"-$1").tolowercase()):t.currentstyle&&(n=t.currentstyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):b(t)},g=e.converttopixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=k.test(i),f=t,p=x.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexof("border"))o=r/100*(u?t.clientwidth:t.clientheight);else{if(p.csstext="border:0 solid red;position:"+h(t,"position")+";line-height:0;","%"!==s&&f.appendchild)p[u?"borderleftwidth":"bordertopwidth"]=r+s;else{if(f=t.parentnode||z.body,l=f._gscache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendchild(x),o=parsefloat(x[u?"offsetwidth":"offsetheight"]),f.removechild(x),u&&"%"===s&&a.cachewidths!==!1&&(l=f._gscache=f._gscache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=g(t,i,r,s,!0))}return _?-o:o},q=e.calculateoffset=function(t,e,i){if("absolute"!==h(t,"position",i))return 0;var r="left"===e?"left":"top",s=h(t,"margin"+r,i);return t["offset"+r]-(g(t,e,parsefloat(s),s.replace(y,""))||0)},z=function(t,e){var i,r,s={};if(e=e||q(t,null))if(i=e.length)for(;--i>-1;)s[e[i].replace(s,c)]=e.getpropertyvalue(e[i]);else for(i in e)s[i]=e[i];else if(e=t.currentstyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(s,c)]=e[i]);return y||(s.opacity=b(t)),r=ae(t,e,!1),s.rotation=r.rotation,s.skewx=r.skewx,s.scalex=r.scalex,s.scaley=r.scaley,s.x=r.x,s.y=r.y,be&&(s.z=r.z,s.rotationx=r.rotationx,s.rotationy=r.rotationy,s.scalez=r.scalez),s.filters&&delete s.filters,s},$=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"csstext"!==a&&"length"!==a&&isnan(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexof("origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:q(t,a),void 0!==h[a]&&(o=new fe(h,a,h[a],o)));if(r)for(a in r)"classname"!==a&&(l[a]=r[a]);return{difs:l,firstmpt:o}},k={width:["left","right"],height:["top","bottom"]},j=["marginleft","marginright","margintop","marginbottom"],te=function(t,e,i){var r=parsefloat("width"===e?t.offsetwidth:t.offsetheight),s=k[e],n=s.length;for(i=i||q(t,null);--n>-1;)r-=parsefloat(h(t,"padding"+s[n],i,!0))||0,r-=parsefloat(h(t,"border"+s[n]+"width",i,!0))||0;return r},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexof("left")?"0%":-1!==t.indexof("right")?"100%":i[0],s=-1!==t.indexof("top")?"0%":-1!==t.indexof("bottom")?"100%":i[1];return null==s?s="0":"center"===s&&(s="50%"),("center"===r||isnan(parsefloat(r))&&-1===(r+"").indexof("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexof("%"),e.oyp=-1!==s.indexof("%"),e.oxr="="===r.charat(1),e.oyr="="===s.charat(1),e.ox=parsefloat(r.replace(v,"")),e.oy=parsefloat(s.replace(v,""))),r+" "+s+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2)):parsefloat(t)-parsefloat(e)},re=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2))+e:parsefloat(t)},se=function(t,e,i,r){var s,n,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),a=number(n[0].replace(v,""))*(-1===t.indexof("rad")?1:l)-("="===t.charat(1)?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexof("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexof("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexof("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),l>o&&o>-l&&(o=0),o},ne={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=a.parsecolor=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charat(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charat(0)?(4===t.length&&(e=t.charat(1),i=t.charat(2),r=t.charat(3),t="#"+e+e+i+i+r+r),t=parseint(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(d),s=number(t[0])%360/360,n=number(t[1])/100,a=number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=number(t[3])),t[0]=ae(s+1/3,e,i),t[1]=ae(s,e,i),t[2]=ae(s-1/3,e,i),t):(t=t.match(d)||ne.transparent,t[0]=number(t[0]),t[1]=number(t[1]),t[2]=number(t[2]),t.length>3&&(t[3]=number(t[3])),t)):ne.black},le="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\b#.+?\\b";for(l in ne)le+="|"+l+"\\b";le=regexp(le+")","gi");var he=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(le)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexof(a[0])),l=")"===t.charat(t.length-1)?")":"",h=-1!==t.indexof(" ")?" ":",",u=a.length,f=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,_,c;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(c=t.replace(d,"|").split("|"),_=0;c.length>_;_++)c[_]=s(c[_]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],_=p.length,u>_--)for(;u>++_;)p[_]=i?p[0|(_-1)/2]:a[_];return o+p.join(h)+h+e+l+(-1!==t.indexof("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(n=t.replace(d,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},ue=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},fe=(e._setpluginratio=function(t){this.plugin.setratio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstmpt,l=1e-6;o;)e=a[o.v],o.r?e=math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autorotate&&(n.autorotate.rotation=a.rotation),1===t)for(o=n.firstmpt;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),pe=(e._parsetoproxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},_={},c=i._transform,d=n;for(i._transform=null,n=e,r=u=i.parse(t,e,r,s),n=d,n&&(i._transform=c,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,p[o]=r.s,n||(h=new fe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],p[o]=r[l],n||(h=new fe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:_,firstmpt:h,pt:u}},e.cssproptween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof pe||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),_e=a.parsecomplex=function(t,e,i,r,s,n,a,o,l,u){i=i||n||"",a=new pe(t,e,0,0,a,u?2:1,null,!1,o,i,r),r+="";var f,p,_,c,g,v,y,x,t,w,p,s,r=i.split(", ").join(",").split(" "),c=r.split(", ").join(",").split(" "),k=r.length,o=h!==!1;for((-1!==r.indexof(",")||-1!==i.indexof(","))&&(r=r.join(" ").replace(d,", ").split(" "),c=c.join(" ").replace(d,", ").split(" "),k=r.length),k!==c.length&&(r=(n||"").split(" "),k=r.length),a.plugin=l,a.setratio=u,f=0;k>f;f++)if(c=r[f],g=c[f],x=parsefloat(c),x||0===x)a.appendxtra("",x,ie(g,x),g.replace(m,""),o&&-1!==g.indexof("px"),!0);else if(s&&("#"===c.charat(0)||ne[c]||b.test(c)))s=","===g.charat(g.length-1)?"),":")",c=oe(c),g=oe(g),t=c.length+g.length>6,t&&!y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(c[f]).join("transparent")):(y||(t=!1),a.appendxtra(t?"rgba(":"rgb(",c[0],g[0]-c[0],",",!0,!0).appendxtra("",c[1],g[1]-c[1],",",!0).appendxtra("",c[2],g[2]-c[2],t?",":s,!0),t&&(c=4>c.length?1:c[3],a.appendxtra("",c,(4>g.length?1:g[3])-c,s,!1)));else if(v=c.match(d)){if(y=g.match(m),!y||y.length!==v.length)return a;for(_=0,p=0;v.length>p;p++)p=v[p],w=c.indexof(p,_),a.appendxtra(c.substr(_,w-_),number(p),ie(y[p],p),"",o&&"px"===c.substr(w+p.length,2),0===p),_=w+p.length;a["xs"+a.l]+=c.substr(_)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==r.indexof("=")&&a.data){for(s=a.xs0+a.data.s,f=1;a.l>f;f++)s+=a["xs"+f]+a.data["xn"+f];a.e=s+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ce=9;for(l=pe.prototype,l.l=l.pr=0;--ce>0;)l["xn"+ce]=0,l["xs"+ce]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setratio=l.rxp=null,l.appendxtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setratio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var de=function(t,e){e=e||{},this.p=e.prefix?v(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||he(e.defaultvalue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultvalue,this.pr=e.priority||0},me=e._registercomplexspecialprop=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultvalue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultvalue=i[r]||a,s=new de(n[r],e)},ge=function(t){if(!o[t]){var e=t.charat(0).touppercase()+t.substr(1)+"plugin";me(t,{parser:function(t,i,r,s,n,a,l){var h=(_gsscope.greensockglobals||_gsscope).com.greensock.plugins[e];return h?(h._cssregister(),o[r].parse(t,i,r,s,n,a,l)):(u("error: "+e+" js file not loaded."),n)}})}};l=de.prototype,l.parsecomplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(d.test(i)||d.test(e)?(o=e.replace(d,"|").split("|"),l=i.replace(d,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexof(p),f=i.indexof(p),u!==f&&(i=-1===f?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return _e(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},l.parse=function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(h(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerspecialprop=function(t,e,i){me(t,{parser:function(t,r,s,n,a,o){var l=new pe(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setratio=e(t,r,n._tween,s),l},priority:i})};var ve,ye="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),xe=v("transform"),te=j+"transform",we=v("transformorigin"),be=null!==v("perspective"),pe=e.transform=function(){this.skewy=0},se=window.svgelement,re=function(t,e,i){var r,s=z.createelementns("http://www.w3.org/2000/svg",t),n=/([a-z])([a-z])/g;for(r in i)s.setattributens(null,r.replace(n,"$1-$2").tolowercase(),i[r]);return e.appendchild(s),s},ce=document.documentelement,ke=function(){var t,e,i,r=c||/android/i.test(f)&&!window.chrome;return z.createelementns&&!r&&(t=re("svg",ce),e=re("rect",t,{width:100,height:50,x:100}),i=e.getboundingclientrect().left,e.style[we]="50% 50%",e.style[xe]="scale(0.5,0.5)",r=i===e.getboundingclientrect().left,ce.removechild(t)),r}(),oe=function(t,e,i){var r=t.getbbox();e=ee(e).split(" "),i.xorigin=(-1!==e[0].indexof("%")?parsefloat(e[0])/100*r.width:parsefloat(e[0]))+r.x,i.yorigin=(-1!==e[1].indexof("%")?parsefloat(e[1])/100*r.height:parsefloat(e[1]))+r.y},ae=e.gettransform=function(t,e,i,r){if(t._gstransform&&i&&!r)return t._gstransform;var n,o,l,h,u,f,p,_,c,d,m,g,v,y=i?t._gstransform||new pe:new pe,x=0>y.scalex,t=2e-5,w=1e5,b=179.99,p=b*m,s=be?parsefloat(h(t,we,e,!1,"0 0 0").split(" ")[2])||y.zorigin||0:0,r=parsefloat(a.defaulttransformperspective)||0;if(xe?n=h(t,te,e,!0):t.currentstyle&&(n=t.currentstyle.filter.match(o),n=n&&4===n.length?[n[0].substr(4),number(n[2].substr(4)),number(n[1].substr(4)),n[3].substr(4),y.x||0,y.y||0].join(","):""),n&&"none"!==n&&"matrix(1, 0, 0, 1, 0, 0)"!==n){for(o=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],l=o.length;--l>-1;)h=number(o[l]),o[l]=(u=h-(h|=0))?(0|u*w+(0>u?-.5:.5))/w+h:h;if(16===o.length){var c=o[8],k=o[9],a=o[10],d=o[12],n=o[13],z=o[14];if(y.zorigin&&(z=-y.zorigin,d=c*z-o[12],n=k*z-o[13],z=a*z+y.zorigin-o[14]),!i||r||null==y.rotationx){var x,i,e,f,y,b,u,j=o[0],w=o[1],v=o[2],q=o[3],g=o[4],q=o[5],z=o[6],$=o[7],k=o[11],j=math.atan2(z,a),te=-p>j||j>p;y.rotationx=j*l,j&&(f=math.cos(-j),y=math.sin(-j),x=g*f+c*y,i=q*f+k*y,e=z*f+a*y,c=g*-y+c*f,k=q*-y+k*f,a=z*-y+a*f,k=$*-y+k*f,g=x,q=i,z=e),j=math.atan2(c,j),y.rotationy=j*l,j&&(b=-p>j||j>p,f=math.cos(-j),y=math.sin(-j),x=j*f-c*y,i=w*f-k*y,e=v*f-a*y,k=w*y+k*f,a=v*y+a*f,k=q*y+k*f,j=x,w=i,v=e),j=math.atan2(w,q),y.rotation=j*l,j&&(u=-p>j||j>p,f=math.cos(-j),y=math.sin(-j),j=j*f+g*y,i=w*f+q*y,q=w*-y+q*f,z=v*-y+z*f,w=i),u&&te?y.rotation=y.rotationx=0:u&&b?y.rotation=y.rotationy=0:b&&te&&(y.rotationy=y.rotationx=0),y.scalex=(0|math.sqrt(j*j+w*w)*w+.5)/w,y.scaley=(0|math.sqrt(q*q+k*k)*w+.5)/w,y.scalez=(0|math.sqrt(z*z+a*a)*w+.5)/w,y.skewx=0,y.perspective=k?1/(0>k?-k:k):0,y.x=d,y.y=n,y.z=z}}else if(!(be&&!r&&o.length&&y.x===o[4]&&y.y===o[5]&&(y.rotationx||y.rotationy)||void 0!==y.x&&"none"===h(t,"display",e))){var ee=o.length>=6,ie=ee?o[0]:1,re=o[1]||0,se=o[2]||0,ne=ee?o[3]:1;y.x=o[4]||0,y.y=o[5]||0,f=math.sqrt(ie*ie+re*re),p=math.sqrt(ne*ne+se*se),_=ie||re?math.atan2(re,ie)*l:y.rotation||0,c=se||ne?math.atan2(se,ne)*l+_:y.skewx||0,d=f-math.abs(y.scalex||0),m=p-math.abs(y.scaley||0),math.abs(c)>90&&270>math.abs(c)&&(x?(f*=-1,c+=0>=_?180:-180,_+=0>=_?180:-180):(p*=-1,c+=0>=c?180:-180)),g=(_-y.rotation)%180,v=(c-y.skewx)%180,(void 0===y.skewx||d>t||-t>d||m>t||-t>m||g>-b&&b>g&&false|g*w||v>-b&&b>v&&false|v*w)&&(y.scalex=f,y.scaley=p,y.rotation=_,y.skewx=c),be&&(y.rotationx=y.rotationy=y.z=0,y.perspective=r,y.scalez=1)}y.zorigin=s;for(l in y)t>y[l]&&y[l]>-t&&(y[l]=0)}else y={x:0,y:0,z:0,scalex:1,scaley:1,scalez:1,skewx:0,skewy:0,perspective:r,rotation:0,rotationx:0,rotationy:0,zorigin:0};return i&&(t._gstransform=y),y.svg=se&&t instanceof se&&t.parentnode instanceof se,y.svg&&(oe(t,h(t,we,s,!1,"50% 50%")+"",y),ve=a.usesvgtransformattr||ke),y.xpercent=y.ypercent=0,y},de=function(t){var e,i,r=this.data,s=-r.rotation*m,n=s+r.skewx*m,a=1e5,o=(0|math.cos(s)*r.scalex*a)/a,l=(0|math.sin(s)*r.scalex*a)/a,h=(0|math.sin(n)*-r.scaley*a)/a,u=(0|math.cos(n)*r.scaley*a)/a,f=this.t.style,p=this.t.currentstyle;if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var _,d,m=this.t.offsetwidth,g=this.t.offsetheight,v="absolute"!==p.position,t="progid:dximagetransform.microsoft.matrix(m11="+o+", m12="+l+", m21="+h+", m22="+u,w=r.x+m*r.xpercent/100,b=r.y+g*r.ypercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+d*l),b+=d-(_*h+d*u)),v?(_=m/2,d=g/2,t+=", dx="+(_-(_*o+d*l)+w)+", dy="+(d-(_*h+d*u)+b)+")"):t+=", sizingmethod='auto expand')",f.filter=-1!==e.indexof("dximagetransform.microsoft.matrix(")?e.replace(a,t):t+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===t.indexof("dx=0, dy=0")||x.test(e)&&100!==parsefloat(regexp.$1)||-1===e.indexof("gradient("&&e.indexof("alpha"))&&f.removeattribute("filter")),!v){var p,s,r,c=8>c?1:-1;for(_=r.ieoffsetx||0,d=r.ieoffsety||0,r.ieoffsetx=math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieoffsety=math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ce=0;4>ce;ce++)s=j[ce],p=p[s],i=-1!==p.indexof("px")?parsefloat(p):g(this.t,s,parsefloat(p),p.replace(y,""))||0,r=i!==r[s]?2>ce?-r.ieoffsetx:-r.ieoffsety:2>ce?_-r.ieoffsetx:d-r.ieoffsety,f[s]=(r[s]=math.round(i-r*(0===ce||2===ce?1:c)))+"px"}}},me=e.set3dtransformratio=function(t){var e,i,r,s,n,a,o,l,h,u,f,_,c,d,m,g,v,y,x,t,w,b,p,s=this.data,r=this.t.style,c=s.rotation*m,k=s.scalex,o=s.scaley,a=s.scalez,d=s.x,l=s.y,n=s.z,z=s.perspective;if(!(1!==t&&0!==t||"auto"!==s.force3d||s.rotationy||s.rotationx||1!==a||z||n))return le.call(this,t),void 0;if(p){var x=1e-4;x>k&&k>-x&&(k=a=2e-5),x>o&&o>-x&&(o=a=2e-5),!z||s.z||s.rotationx||s.rotationy||(z=0)}if(c||s.skewx)y=math.cos(c),x=math.sin(c),e=y,n=x,s.skewx&&(c-=s.skewx*m,y=math.cos(c),x=math.sin(c),"simple"===s.skewtype&&(t=math.tan(s.skewx*m),t=math.sqrt(1+t*t),y*=t,x*=t)),i=-x,a=y;else{if(!(s.rotationy||s.rotationx||1!==a||z||s.svg))return r[xe]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) translate3d(":"translate3d(")+d+"px,"+l+"px,"+n+"px)"+(1!==k||1!==o?" scale("+k+","+o+")":""),void 0;e=a=1,i=n=0}f=1,r=s=o=l=h=u=_=c=d=0,m=z?-1/z:0,g=s.zorigin,v=1e5,c=s.rotationy*m,c&&(y=math.cos(c),x=math.sin(c),h=f*-x,c=m*-x,r=e*x,o=n*x,f*=y,m*=y,e*=y,n*=y),c=s.rotationx*m,c&&(y=math.cos(c),x=math.sin(c),t=i*y+r*x,w=a*y+o*x,b=u*y+f*x,p=d*y+m*x,r=i*-x+r*y,o=a*-x+o*y,f=u*-x+f*y,m=d*-x+m*y,i=t,a=w,u=b,d=p),1!==a&&(r*=a,o*=a,f*=a,m*=a),1!==o&&(i*=o,a*=o,u*=o,d*=o),1!==k&&(e*=k,n*=k,h*=k,c*=k),g&&(_-=g,s=r*_,l=o*_,_=f*_+g),s.svg&&(s+=s.xorigin-(s.xorigin*e+s.yorigin*i),l+=s.yorigin-(s.xorigin*n+s.yorigin*a)),s=(t=(s+=d)-(s|=0))?(0|t*v+(0>t?-.5:.5))/v+s:s,l=(t=(l+=l)-(l|=0))?(0|t*v+(0>t?-.5:.5))/v+l:l,_=(t=(_+=n)-(_|=0))?(0|t*v+(0>t?-.5:.5))/v+_:_,r[xe]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|h*v)/v,(0|c*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|d*v)/v,(0|r*v)/v,(0|o*v)/v,(0|f*v)/v,(0|m*v)/v,s,l,_,z?1+-_/z:1].join(",")+")"},le=e.set2dtransformratio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p=this.data,_=this.t,c=_.style,d=p.x,m=p.y;return!(p.rotationx||p.rotationy||p.z||p.force3d===!0||"auto"===p.force3d&&1!==t&&0!==t)||p.svg&&ve||!be?(s=p.scalex,n=p.scaley,p.rotation||p.skewx||p.svg?(e=p.rotation*m,i=e-p.skewx*m,r=1e5,a=math.cos(e)*s,o=math.sin(e)*s,l=math.sin(i)*-n,h=math.cos(i)*n,p.svg&&(d+=p.xorigin-(p.xorigin*a+p.yorigin*l),m+=p.yorigin-(p.xorigin*o+p.yorigin*h),f=1e-6,f>d&&d>-f&&(d=0),f>m&&m>-f&&(m=0)),u=(0|a*r)/r+","+(0|o*r)/r+","+(0|l*r)/r+","+(0|h*r)/r+","+d+","+m+")",p.svg&&ve?_.setattribute("transform","matrix("+u):c[xe]=(p.xpercent||p.ypercent?"translate("+p.xpercent+"%,"+p.ypercent+"%) matrix(":"matrix(")+u):c[xe]=(p.xpercent||p.ypercent?"translate("+p.xpercent+"%,"+p.ypercent+"%) matrix(":"matrix(")+s+",0,0,"+n+","+d+","+m+")",void 0):(this.setratio=me,me.call(this,t),void 0)};me("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent",{parser:function(t,e,i,r,n,o,l){if(r._transform)return n;var h,u,f,p,_,c,d,m=r._transform=ae(t,s,!0,l.parsetransform),g=t.style,v=1e-6,y=ye.length,x=l,t={};if("string"==typeof x.transform&&xe)f=x.style,f[xe]=x.transform,f.display="block",f.position="absolute",z.body.appendchild(x),h=ae(x,null,!1),z.body.removechild(x);else if("object"==typeof x){if(h={scalex:re(null!=x.scalex?x.scalex:x.scale,m.scalex),scaley:re(null!=x.scaley?x.scaley:x.scale,m.scaley),scalez:re(x.scalez,m.scalez),x:re(x.x,m.x),y:re(x.y,m.y),z:re(x.z,m.z),xpercent:re(x.xpercent,m.xpercent),ypercent:re(x.ypercent,m.ypercent),perspective:re(x.transformperspective,m.perspective)},d=x.directionalrotation,null!=d)if("object"==typeof d)for(f in d)x[f]=d[f];else x.rotation=d;"string"==typeof x.x&&-1!==x.x.indexof("%")&&(h.x=0,h.xpercent=re(x.x,m.xpercent)),"string"==typeof x.y&&-1!==x.y.indexof("%")&&(h.y=0,h.ypercent=re(x.y,m.ypercent)),h.rotation=se("rotation"in x?x.rotation:"shortrotation"in x?x.shortrotation+"_short":"rotationz"in x?x.rotationz:m.rotation,m.rotation,"rotation",t),be&&(h.rotationx=se("rotationx"in x?x.rotationx:"shortrotationx"in x?x.shortrotationx+"_short":m.rotationx||0,m.rotationx,"rotationx",t),h.rotationy=se("rotationy"in x?x.rotationy:"shortrotationy"in x?x.shortrotationy+"_short":m.rotationy||0,m.rotationy,"rotationy",t)),h.skewx=null==x.skewx?m.skewx:se(x.skewx,m.skewx),h.skewy=null==x.skewy?m.skewy:se(x.skewy,m.skewy),(u=h.skewy-m.skewy)&&(h.skewx+=u,h.rotation+=u)}for(be&&null!=x.force3d&&(m.force3d=x.force3d,c=!0),m.skewtype=x.skewtype||m.skewtype||a.defaultskewtype,_=m.force3d||m.z||m.rotationx||m.rotationy||h.z||h.rotationx||h.rotationy||h.perspective,_||null==x.scale||(h.scalez=1);--y>-1;)i=ye[y],p=h[i]-m[i],(p>v||-v>p||null!=x[i]||null!=n[i])&&(c=!0,n=new pe(m,i,m[i],p,n),i in t&&(n.e=t[i]),n.xs0=0,n.plugin=o,r._overwriteprops.push(n.n));return p=x.transformorigin,p&&m.svg&&(oe(t,p,h),n=new pe(m,"xorigin",m.xorigin,h.xorigin-m.xorigin,n,-1,"transformorigin"),n.b=m.xorigin,n.e=n.xs0=h.xorigin,n=new pe(m,"yorigin",m.yorigin,h.yorigin-m.yorigin,n,-1,"transformorigin"),n.b=m.yorigin,n.e=n.xs0=h.yorigin,p="0px 0px"),(p||be&&_&&m.zorigin)&&(xe?(c=!0,i=we,p=(p||h(t,i,s,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformorigin"),n.b=g[i],n.plugin=o,be?(f=m.zorigin,p=p.split(" "),m.zorigin=(p.length>2&&(0===f||"0px"!==p[2])?parsefloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(m,"zorigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zorigin):n.xs0=n.e=p):ee(p+"",m)),c&&(r._transformtype=m.svg&&ve||!_&&3!==this._transformtype?2:3),n},prefix:!0}),me("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),me("borderradius",{defaultvalue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,_,c,d,m,g,v,y,x,t,w,b=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],p=t.style;for(d=parsefloat(t.offsetwidth),m=parsefloat(t.offsetheight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexof("border")&&(b[l]=v(b[l])),f=u=h(t,b[l],s,!1,"0px"),-1!==f.indexof(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],_=parsefloat(f),v=f.substr((_+"").length),y="="===p.charat(1),y?(c=parseint(p.charat(0)+"1",10),p=p.substr(2),c*=parsefloat(p),g=p.substr((c+"").length-(0>c?1:0))||""):(c=parsefloat(p),g=p.substr((c+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=g(t,"borderleft",_,v),t=g(t,"bordertop",_,v),"%"===g?(f=100*(x/d)+"%",u=100*(t/m)+"%"):"em"===g?(w=g(t,"borderleft",1,"em"),f=x/w+"em",u=t/w+"em"):(f=x+"px",u=t+"px"),y&&(p=parsefloat(f)+c+g,h=parsefloat(u)+c+g)),a=_e(p,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:he("0px 0px 0px 0px",!1,!0)}),me("backgroundposition",{defaultvalue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,_="background-position",d=s||q(t,null),m=this.format((d?c?d.getpropertyvalue(_+"-x")+" "+d.getpropertyvalue(_+"-y"):d.getpropertyvalue(_):t.currentstyle.backgroundpositionx+" "+t.currentstyle.backgroundpositiony)||"0 0"),g=this.format(e);if(-1!==m.indexof("%")!=(-1!==g.indexof("%"))&&(p=h(t,"backgroundimage").replace(r,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),i.setattribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexof("%"),u!==(-1!==l[h].indexof("%"))&&(f=0===h?t.offsetwidth-i.width:t.offsetheight-i.height,o[h]=u?parsefloat(m)/100*f+"px":100*(parsefloat(m)/f)+"%");m=o.join(" ")}return this.parsecomplex(t.style,m,g,n,a)},formatter:ee}),me("backgroundsize",{defaultvalue:"0 0",formatter:ee}),me("perspective",{defaultvalue:"0px",prefix:!0}),me("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),me("transformstyle",{prefix:!0}),me("backfacevisibility",{prefix:!0}),me("userselect",{prefix:!0}),me("margin",{parser:ue("margintop,marginright,marginbottom,marginleft")}),me("padding",{parser:ue("paddingtop,paddingright,paddingbottom,paddingleft")}),me("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>c?(l=t.currentstyle,h=8>c?" ":",",o="rect("+l.cliptop+h+l.clipright+h+l.clipbottom+h+l.clipleft+")",e=this.format(e).split(",").join(h)):(o=this.format(h(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parsecomplex(t.style,o,e,n,a)}}),me("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),me("autoround,strictunits",{parser:function(t,e,i,r,s){return s}}),me("border",{defaultvalue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(h(t,"bordertopwidth",s,!1,"0px")+" "+h(t,"bordertopstyle",s,!1,"solid")+" "+h(t,"bordertopcolor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(le)||["#000"])[0]}}),me("borderwidth",{parser:ue("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),me("float,cssfloat,stylefloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssfloat"in n?"cssfloat":"stylefloat";return new pe(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var ne=function(t){var e,i=this.t,r=i.filter||h(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexof("atrix(")&&-1===r.indexof("radient(")&&-1===r.indexof("oader(")?(i.removeattribute("filter"),e=!h(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexof("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(x,"opacity="+s))};me("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(t,e,i,r,n,a){var o=parsefloat(h(t,"opacity",s,!1,"1")),l=t.style,h="autoalpha"===i;return"string"==typeof e&&"="===e.charat(1)&&(e=("-"===e.charat(0)?-1:1)*parsefloat(e.substr(2))+o),h&&1===o&&"hidden"===h(t,"visibility",s)&&0!==e&&(o=0),y?n=new pe(l,"opacity",o,e-o,n):(n=new pe(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setratio=ne),h&&(n=new pe(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteprops.push(n.n),r._overwriteprops.push(i)),n}});var ze=function(t,e){e&&(t.removeproperty?("ms"===e.substr(0,2)&&(e="m"+e.substr(1)),t.removeproperty(e.replace(p,"-$1").tolowercase())):t.removeattribute(e))},xe=function(t){if(this.t._gsclasspt=this,1===t||0===t){this.t.setattribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ze(i,e.p),e=e._next;1===t&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};me("classname",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,_,c=t.getattribute("class")||"",d=t.style.csstext;if(a=n._classnamept=new pe(t,r,0,0,a,2),a.setratio=xe,a.pr=-11,i=!0,a.b=c,u=z(t,s),f=t._gsclasspt){for(p={},_=f.data;_;)p[_.p]=1,_=_._next;f.setratio(1)}return t._gsclasspt=a,a.e="="!==e.charat(1)?e:c.replace(regexp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charat(0)?" "+e.substr(2):""),n._tween._duration&&(t.setattribute("class",a.e),h=$(t,u,z(t),l,p),t.setattribute("class",c),a.data=h.firstmpt,t.style.csstext=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var ie=function(t){if((1===t||0===t)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var e,i,r,s,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.csstext="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],o[i]&&(o[i].parse===a?s=!0:i="transformorigin"===i?we:o[i].p),ze(n,i);s&&(ze(n,xe),this.t._gstransform&&delete this.t._gstransform)}};for(me("clearprops",{parser:function(t,e,r,s,n){return n=new pe(t,r,0,0,n,2),n.setratio=ie,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),l="bezier,throwprops,physicsprops,physics2d".split(","),ce=l.length;ce--;)ge(l[ce]);l=a.prototype,l._firstpt=null,l._oninittween=function(t,e,o){if(!t.nodetype)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoround,i=!1,r=e.suffixmap||a.suffixmap,s=q(t,""),n=this._overwriteprops;var l,p,c,d,m,g,v,y,x,w=t.style;if(u&&""===w.zindex&&(l=h(t,"zindex",s),("auto"===l||""===l)&&this._addlazyset(w,"zindex",0)),"string"==typeof e&&(d=w.csstext,l=z(t,s),w.csstext=d+";"+e,l=$(t,l,z(t)).difs,!y&&t.test(e)&&(l.opacity=parsefloat(regexp.$1)),e=l,w.csstext=d),this._firstpt=p=this.parse(t,e,null),this._transformtype){for(x=3===this._transformtype,xe?f&&(u=!0,""===w.zindex&&(v=h(t,"zindex",s),("auto"===v||""===v)&&this._addlazyset(w,"zindex",0)),_&&this._addlazyset(w,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(x?"visible":"hidden"))):w.zoom=1,c=p;c&&c._next;)c=c._next;y=new pe(t,"transform",0,0,null,2),this._linkcssp(y,null,c),y.setratio=x&&be?me:xe?le:de,y.data=this._transform||ae(t,s,!0),n.pop()}if(i){for(;p;){for(g=p._next,c=d;c&&c.pr>p.pr;)c=c._next;(p._prev=c?c._prev:m)?p._prev._next=p:d=p,(p._next=c)?c._prev=p:m=p,p=g}this._firstpt=d}return!0},l.parse=function(t,e,i,n){var a,l,u,f,p,_,c,d,m,g,v=t.style;for(a in e)_=e[a],l=o[a],l?i=l.parse(t,_,a,this,i,n,e):(p=h(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexof("color")||m&&b.test(_)?(m||(_=oe(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=_e(v,a,p,_,!0,"transparent",i,0,n)):!m||-1===_.indexof(" ")&&-1===_.indexof(",")?(u=parsefloat(p),c=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(u=te(t,a,s),c="px"):"left"===a||"top"===a?(u=q(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===_.charat(1),g?(f=parseint(_.charat(0)+"1",10),_=_.substr(2),f*=parsefloat(_),d=_.replace(y,"")):(f=parsefloat(_),d=m?_.substr((f+"").length)||"":""),""===d&&(d=a in r?r[a]:c),_=f||0===f?(g?f+u:f)+d:e[a],c!==d&&""!==d&&(f||0===f)&&u&&(u=g(t,a,u,c),"%"===d?(u/=g(t,a,100,"%")/100,e.strictunits!==!0&&(p=u+"%")):"em"===d?u/=g(t,a,1,"em"):"px"!==d&&(f=g(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+u+d)),g&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==v[a]&&(_||"nan"!=_+""&&null!=_)?(i=new pe(v,a,f||u||0,0,i,-1,a,!1,0,p,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexof("style")?_:p):u("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,f-u,i,0,a,h!==!1&&("px"===d||"zindex"===a),0,p,_),i.xs0=d)):i=_e(v,a,p,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n); return i},l.setratio=function(t){var e,i,r,s=this._firstpt,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setratio&&s.setratio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setratio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setratio(t),s=s._next},l._enabletransforms=function(t){this._transform=this._transform||ae(this._target,s,!0),this._transformtype=this._transform.svg&&ve||!t&&3!==this._transformtype?2:3};var ee=function(){this.t[this.p]=this.e,this.data._linkcssp(this,this._next,null,!0)};l._addlazyset=function(t,e,i){var r=this._firstpt=new pe(t,e,0,0,this._firstpt,2);r.e=i,r.setratio=ee,r.data=this},l._linkcssp=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstpt===t&&(this._firstpt=t._next,r=!0),i?i._next=t:r||null!==this._firstpt||(this._firstpt=t),t._next=e,t._prev=i),t},l._kill=function(e){var i,r,s,n=e;if(e.autoalpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoalpha&&(n.visibility=1)}return e.classname&&(i=this._classnamept)&&(s=i.xfirst,s&&s._prev?this._linkcssp(s._prev,i._next,s._prev._prev):s===this._firstpt&&(this._firstpt=i._next),i._next&&this._linkcssp(i._next,i._next._next,s._prev),this._classnamept=null),t.prototype._kill.call(this,n)};var fe=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)fe(t[s],e,i);else for(r=t.childnodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(z(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childnodes.length||fe(n,e,i)};return a.cascadeto=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],f=[],p=e._internals.reservedprops;for(t=o._targets||o.target,fe(t,h,f),o.render(i,!0),fe(t,u),o.render(0,!0),o._enabled(!0),s=f.length;--s>-1;)if(n=$(f[s],h[s],u[s]),n.firstmpt){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(f[s],i,n))}return l},t.activate([a]),a},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("../tweenlite.js"),module.exports=e())}("cssplugin"); /*! * version: beta 0.3.3 * date: 2014-10-29 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * splittext is a club greensock membership benefit; you must have a valid membership to use * this code without violating the terms of use. visit http://www.greensock.com/club/ to sign up or get more details. * this work is subject to the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.greensockglobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodetype,i="";if(1===e||9===e||11===e){if("string"==typeof t.textcontent)return t.textcontent;for(t=t.firstchild;t;t=t.nextsibling)i+=r(t)}else if(3===e||4===e)return t.nodevalue;return i},n=document,a=n.defaultview?n.defaultview.getcomputedstyle:function(){},o=/([a-z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getpropertyvalue(e.replace(o,"-$1").tolowercase()),r=t||i.length?t:i[e]):t.currentstyle&&(i=t.currentstyle,r=i[e]),s?r:parseint(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodetype&&t[0].style&&!t.nodetype||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,p=n.all&&!n.addeventlistener,f="
":">")}},d=s.splittext=e.splittext=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodetype;if(1===s||9===s||11===s)for(t=t.firstchild;t;t=t.nextsibling)g(t,e,i);else(3===s||4===s)&&(t.nodevalue=t.nodevalue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerhtml)&&(t.innerhtml=t.innerhtml.replace(c,u));var l,_,p,f,d,y,t,w,b,x,p,s,c,k,r=r(t),a=e.type||e.split||"chars,words,lines",o=-1!==a.indexof("lines")?[]:null,d=-1!==a.indexof("words"),m=-1!==a.indexof("chars"),l="absolute"===e.position||e.absolute===!0,z=l?"­ ":" ",i=-999,e=a(t),n=h(t,"paddingleft",e),f=h(t,"borderbottomwidth",e)+h(t,"bordertopwidth",e),x=h(t,"borderleftwidth",e)+h(t,"borderrightwidth",e),u=h(t,"paddingtop",e)+h(t,"paddingbottom",e),b=h(t,"paddingleft",e)+h(t,"paddingright",e),j=h(t,"textalign",e,!0),y=t.clientheight,q=t.clientwidth,g="
",v=m(e.wordsclass),q=m(e.charsclass),w=-1!==(e.linesclass||"").indexof("++"),h=e.linesclass,z=-1!==r.indexof("<"),$=!0,k=[],j=[],te=[];for(w&&(h=h.split("++").join("")),z&&(r=r.split("<").join("{{lt}}")),l=r.length,f=v(),d=0;l>d;d++)if(t=r.charat(d),")"===t&&r.substr(d,20)===u)f+=($?g:"")+"
",$=!1,d!==l-20&&r.substr(d+20,20)!==u&&(f+=" "+v(),$=!0),d+=19;else if(" "===t&&" "!==r.charat(d-1)&&d!==l-1&&r.substr(d-20,20)!==u){for(f+=$?g:"",$=!1;" "===r.charat(d+1);)f+=z,d++;(")"!==r.charat(d+1)||r.substr(d+1,20)!==u)&&(f+=z+v(),$=!0)}else f+=m&&" "!==t?q()+t+"":t;for(t.innerhtml=f+($?g:""),z&&g(t,"{{lt}}","<"),y=t.getelementsbytagname("*"),l=y.length,w=[],d=0;l>d;d++)w[d]=y[d];if(o||l)for(d=0;l>d;d++)b=w[d],p=b.parentnode===t,(p||l||m&&!d)&&(x=b.offsettop,o&&p&&x!==i&&"br"!==b.nodename&&(_=[],o.push(_),i=x),l&&(b._x=b.offsetleft,b._y=x,b._w=b.offsetwidth,b._h=b.offsetheight),o&&(d!==p&&m||(_.push(b),b._x-=n),p&&d&&(w[d-1]._wordend=!0),"br"===b.nodename&&b.nextsibling&&"br"===b.nextsibling.nodename&&o.push([])));for(d=0;l>d;d++)b=w[d],p=b.parentnode===t,"br"!==b.nodename?(l&&(s=b.style,d||p||(b._x+=b.parentnode._x,b._y+=b.parentnode._y),s.left=b._x+"px",s.top=b._y+"px",s.position="absolute",s.display="block",s.width=b._w+1+"px",s.height=b._h+"px"),d?p&&""!==b.innerhtml?j.push(b):m&&k.push(b):p?(t.removechild(b),w.splice(d--,1),l--):!p&&m&&(x=!o&&!l&&b.nextsibling,t.appendchild(b),x||t.appendchild(n.createtextnode(" ")),k.push(b))):o||l?(t.removechild(b),w.splice(d--,1),l--):d||t.appendchild(b);if(o){for(l&&(p=n.createelement("div"),t.appendchild(p),c=p.offsetwidth+"px",x=p.offsetparent===t?0:t.offsetleft,t.removechild(p)),s=t.style.csstext,t.style.csstext="display:none;";t.firstchild;)t.removechild(t.firstchild);for(k=!l||!d&&!m,d=0;o.length>d;d++){for(_=o[d],p=n.createelement("div"),p.style.csstext="display:block;text-align:"+j+";position:"+(l?"absolute;":"relative;"),h&&(p.classname=h+(w?d+1:"")),te.push(p),l=_.length,y=0;l>y;y++)"br"!==_[y].nodename&&(b=_[y],p.appendchild(b),k&&(b._wordend||d)&&p.appendchild(n.createtextnode(" ")),l&&(0===y&&(p.style.top=b._y+"px",p.style.left=n+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===l&&(p.innerhtml=" "),d||m||(p.innerhtml=r(p).split(string.fromcharcode(160)).join(" ")),l&&(p.style.width=c,p.style.height=b._h+"px"),t.appendchild(p)}t.style.csstext=s}l&&(y>t.clientheight&&(t.style.height=y-u+"px",y>t.clientheight&&(t.style.height=y+f+"px")),q>t.clientwidth&&(t.style.width=q-b+"px",q>t.clientwidth&&(t.style.width=q+x+"px"))),v(i,k),v(s,j),v(o,te)},t=d.prototype;t.split=function(t){this.issplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerhtml,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.issplit=!0,this},t.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerhtml=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.issplit=!1,this},d.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)},d.version="0.3.3"})(_gsscope),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("splittext"); try{ window.greensockglobals = null; window._gsqueue = null; window._gsdefine = null; delete(window.greensockglobals); delete(window._gsqueue); delete(window._gsdefine); } catch(e) {} try{ window.greensockglobals = oldgs; window._gsqueue = oldgs_queue; } catch(e) {} if (window.tplogs==true) try { console.groupend(); } catch(e) {} (function(e,t){ e.waitforimages={hasimageproperties:["backgroundimage","liststyleimage","borderimage","bordercornerimage"]};e.expr[":"].uncached=function(t){var n=document.createelement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitforimages=function(t,n,r){if(e.isplainobject(arguments[0])){n=t.each;r=t.waitforall;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isfunction(t)||!e.isfunction(n)){throw new typeerror("an invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitforimages.hasimageproperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; })(jquery)