/*! * VERSION: 0.11.0 * DATE: 2017-01-09 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. * ThrowPropsPlugin is a Club GreenSock membership benefit; You must have a valid membership to use * this code without violating the terms of use. Visit http://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;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.ThrowPropsPlugin",["plugins.TweenPlugin","TweenLite","easing.Ease","utils.VelocityTracker"],function(r,S,b,T){function N(e,t){r.call(this,"throwProps"),this._overwriteProps.length=0}function u(e,t,r,o,n){var i,s,a,c,u=t.length,f=0,p=l;if("object"==typeof e){for(;-1<--u;){for(a in i=t[u],s=0,e)s+=(c=i[a]-e[a])*c;s
Number(a.max)+1e-10?(h=a.unitFactor||N.defaultUnitFactors[s]||1,(g=p>a.max&&a.min!==a.max||-15f&&(_||i.preventOvershoot?u=i.min-s:p=i.min-s-u)),this._overwriteProps[w]=n,this._props[w++]={p:n,s:s,c1:u,c2:p,f:a,r:!1}}return F},e._kill=function(e){for(var t=this._props.length;-1<--t;)null!=e[this._props[t].p]&&this._props.splice(t,1);return r.prototype._kill.call(this,e)},e._mod=function(e){for(var t,r=this._props,o=r.length;-1<--o;)"function"==typeof(t=e[r[o].p]||e.throwProps)&&(r[o].m=t)},e.setRatio=function(e){for(var t,r,o=this._props.length;-1<--o;)r=(t=this._props[o]).s+t.c1*e+t.c2*e*e,t.m?r=t.m(r,this.target):1===e&&(r=(1e4*r+(r<0?-.5:.5)|0)/1e4),t.f?this.target[t.p](r):this.target[t.p]=r},r.activate([N]),N},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(s){function a(e,t,r){var o=(e._gsTransform||p)[t];return o||0===o?o:(e.style[t]?o=e.style[t]:(r=r||g(e,null))?o=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(f,"-$1").toLowerCase()):e.currentStyle&&(o=e.currentStyle[t]),parseFloat(o)||0)}function c(e,t,r){this.p=e,this.f=t,this.v1=this.v2=0,this.t1=this.t2=d.time,this.css=!1,this.type="",this._prev=null,r&&((this._next=r)._prev=this)}function t(){var e,t,r=i,o=d.time;if(.03<=o-n)for(n=o;r;){for(t=r._firstVP;t;)((e=t.css?a(r.target,t.p):t.f?r.target[t.p]():r.target[t.p])!==t.v1||.15