-
Notifications
You must be signed in to change notification settings - Fork 17
/
jstween-1.1.min.js
10 lines (10 loc) · 18.1 KB
/
jstween-1.1.min.js
1
2
3
4
5
6
7
8
9
10
/*
* JSTween JavaScript Library v1.1
* http://www.jstween.org/
*
* Copyright 2011, Marco Wolfsheimer
* JSTween by Marco Wolfsheimer is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
*
* Date: Sun Mar 13 12:46:40 2011 -0000
*/
var JSTween=(function(S){var D=/[\-]{0,1}[0-9\.]{1,}|#[0-9\.abcdef]{3,6}/gi,X=/[pxemtcin%]{1,2}|deg/gi,b=/[0-9\.\-]{1,}/gi,e=/[0-9a-f]{3,6}/gi,F=/^#/,M=/^[0-9\.\-]{1,}([pxemtcin%]{1,2}|deg)$/,f=/[a-z]{1,}/,L=/^rgb\(/,T=/^scroll/,I=/-([a-z])/ig,aj=/^-ms/ig,E={opacity:["opacity","-moz-opacity","filter"],shadow:["box-shadow","-moz-box-shadow","-o-box-shadow","-ms-box-shadow","-webkit-box-shadow"],transform:["-moz-transform","transform","-o-transform","-ms-transform","-webkit-transform"],transformOrigin:["-moz-transform-origin","transform-origin","-o-transform-origin","-ms-transform-origin","-webkit-transform-origin"],borderRadius:["-moz-border-radius","border-radius","-webkit-border-radius"],borderRadiusTopLeft:["-moz-border-radius-topleft","border-top-left-radius","-webkit-border-top-left-radius"],borderRadiusTopRight:["-moz-border-radius-topright","border-top-right-radius","-webkit-border-top-right-radius"],borderRadiusBottomLeft:["-moz-border-radius-bottomleft","border-bottom-left-radius","-webkit-border-bottom-left-radius"],borderRadiusBottomRight:["-moz-border-radius-bottomright","border-bottom-right-radius","-webkit-border-bottom-right-radius"],backgroundSize:["background-size","-moz-background-size","-o-background-size","-webkit-background-size"]},A={},x=[],r=0,h=0,ad=false,w=false,j=false,Z=0,B={},t=(/iPad/i.test(navigator.userAgent)||/iPhone OS/i.test(navigator.userAgent));var Y=function(){ab(t?30:45);l();try{u()}catch(ak){return}};var u=function(){var ak=jQuery.fn;jQuery.JSTween=S;ak.tween=function(al){var am,an=this.length;for(am=0;am<an;am++){s(this[am],al)}return this};jQuery.framerate=function(al){ab(al)};jQuery.play=function(al){H(al)};jQuery.clear=function(al,am){Q(al,am)};ak.play=function(al){H(al);return this};ak.clear=function(an){var al,am=this.length;for(al=0;al<am;al++){Q(this[al],an)}return this};ak.property=function(al){var ao=[],am,an=this.length;for(am=0;am<an;am++){ao.push(R(this[am],al))}return ao.length===1?ao[0]:ao};ak.opacity=function(an){var al,am=this.length;for(al=0;al<am;al++){aa(this[al],an)}return this};ak.alpha=ak.opacity;ak.transparency=ak.opacity;ak.rotate=function(an){var al,am=this.length;for(al=0;al<am;al++){ag(this[al],an)}return this};ak.action=function(aq,ar,ap,au){var at,al,ao,am=this.length,an={};if(typeof aq==="object"){for(al in aq){if(aq.hasOwnProperty(al)&&typeof aq[al]==="string"){if(M.test(aq[al])){an[al]={value:parseFloat(aq[al].match(b)[0],10),units:aq[al].match(X)[0]}}else{an[al]={value:aq[al],units:undefined}}}}for(ao=0;ao<am;ao++){at=jQuery.JSTween.register(this[ao]);for(al in an){if(an.hasOwnProperty(al)){jQuery.JSTween.action(at,al,an[al].value,an[al].units,undefined,true)}}}}else{for(ao=0;ao<am;ao++){c(m(this[ao]),aq,ar,ap,au,true)}}return this};ak.state=function(al){if(this.length>0){if(this[0].__animate!==undefined){if(al!==undefined&&this[0].__animate.state[al]!==undefined){return this[0].__animate.state[al]}else{if(al===undefined){return this[0].__animate.state}}}}};ak.transform=function(an){var al,am=this.length;for(al=0;al<am;al++){J(this[al],an)}return this};ak.transformOrigin=function(an){var al,am=this.length;for(al=0;al<am;al++){K(this[al],an)}return this};ak.backgroundSize=function(an){var al,am=this.length;for(al=0;al<am;al++){ae(this[al],an)}return this};ak.shadow=function(an){var al,am=this.length;for(al=0;al<am;al++){N(this[al],an)}return this};ak.borderRadius=function(ao,al){var am,an=this.length;for(am=0;am<an;am++){a(this[am],ao,al)}return this};ak.borderRadiusTopRight=function(ao,al){var am,an=this.length;for(am=0;am<an;am++){p(this[am],"top","right",ao,al)}return this};ak.borderRadiusTopLeft=function(ao,al){var am,an=this.length;for(am=0;am<an;am++){p(this[am],"top","left",ao,al)}return this};ak.borderRadiusBottomRight=function(ao,al){var am,an=this.length;for(am=0;am<an;am++){p(this[am],"bottom","right",ao,al)}return this};ak.borderRadiusBottomLeft=function(ao,al){var am,an=this.length;for(am=0;am<an;am++){p(this[am],"bottom","left",ao,al)}return this};ak.borderRadiusCorner=function(aq,an,ap,al){var am,ao=this.length;for(am=0;am<this.length;am++){p(this[am],aq,an,ap,al)}return this}};var G=function(ak,al){return al.toUpperCase()};var q=function(ak){return ak.replace(aj,"ms").replace(I,G)};var ab=function(ak){if(!ak){return B.frameRate}B.frameRate=ak||45;B.frameDelay=Math.round(1000/B.frameRate);B.frameLength=(1/B.frameRate);return B.frameRate};var l=function(){var al=document.getElementsByTagName("html"),ak,am;if(al[0]!==undefined){ak=al[0].style;for(am in E){if(E.hasOwnProperty(am)){for(i=0;i<E[am].length;i++){if(ak[E[am][i]]!==undefined){E[am]=E[am][i];break}else{if(ak[q(E[am][i])]!==undefined){E[am]=q(E[am][i]);break}}}}}}};var R=function(al,ak){if(al.__animate!==undefined){if(ak===undefined){return al.__animate.state}else{if(al.__animate.state[ak]){return al.__animate.state[ak]}else{return false}}}else{return false}};var C=function(al,am,ak){if(al.tagName===undefined&&(al.scroll!==undefined||al.scrollTo!==undefined)){return $(al).scrollLeft()+"px "+$(al).scrollTop()+"px"}else{return al.scrollLeft+"px "+al.scrollTop+"px"}};var y=function(ap,ar,ao){var an=R(ap,ar),am,aq,al,ak;if(an!==false&&!T.test(ar)){return{value:an.value,units:ap.__animate.state[ar].units}}else{switch(ar){case"transform":case"transformOrigin":case"shadow":case"boxShadow":case"backgroundSize":aq=ao;break;case"opacity":case"transparency":case"alpha":aq=100;break;case"scrollLeft":case"scrollTop":case"scroll":case"scrollTo":aq=C(ap,ar,ao);break;default:if(window.getComputedStyle!==undefined){am=window.getComputedStyle(ap,null)[ar]}else{if(ap.currentStyle!==undefined){am=ap.currentStyle[ar]}}if(am==="auto"||am===undefined||am===""){aq=0;al="px"}else{if(L.test(am)){aq=d(am)}else{aq=parseFloat(am.match(b),10);al=am.match(X)}}break}return{value:aq,units:al}}};var P=function(am,al){var ao={},an,ak;for(an in al){if(al.hasOwnProperty(an)&&an!=="onStart"&&an!=="onStop"&&an!=="onFrame"){ao[an]={};if(al[an].start===undefined){ak=y(am,an,al[an].stop);ao[an].start=ak.value}else{ao[an].start=V(al[an].start)}ao[an].stop=V(al[an].stop,1);ao[an].duration=V(al[an].duration||ao[an].dur,1);ao[an].time=V(al[an].time,0);ao[an].merge=V(al[an].merge,false);ao[an].effect=V(al[an].effect,"linear");ao[an].framerate=V(al[an].framerate,B.frameRate);ao[an].units=V(al[an].units,ak?ak.units:"px");ao[an].end=V(al[an].end,(ao[an].time+ao[an].duration));if(T.test(an)){if(typeof ao[an].start==="number"){ao[an].start=ao[an].start+"px "+ao[an].start+"px"}if(typeof ao[an].stop==="number"){ao[an].stop=ao[an].stop+"px "+ao[an].stop+"px"}}ao[an].callback={onStart:al[an].onStart,onFrame:al[an].onFrame,onStop:al[an].onStop}}}return ao};var V=function(al,ak){if(typeof al==="function"){return al()}else{if(al!==undefined){return al}else{return ak}}};var d=function(al){var ao=al.match(b),an,am,ak;an=parseInt(ao[0],10).toString(16);if(an.length===1){an="0"+an}am=parseInt(ao[1],10).toString(16);if(am.length===1){am="0"+am}ak=parseInt(ao[2],10).toString(16);if(ak.length===1){ak="0"+ak}return"#"+an+am+ak};var o=function(ak){if(ak.length===3){return[parseInt(ak.substr(0,1),16)*16,parseInt(ak.substr(1,1),16)*16,parseInt(ak.substr(2,1),16)*16]}else{return[parseInt(ak.substr(0,2),16),parseInt(ak.substr(2,2),16),parseInt(ak.substr(4,2),16)]}};var v=function(ao){var al=ao.match(D),an=ao.split(D),ak=[],ap,am=al.length;for(ap=0;ap<am;ap++){if(F.test(al[ap])){al[ap]=o(al[ap].match(e)[0])}else{al[ap]=parseFloat(al[ap].match(b)[0],10)}}return{value:al,delimiter:an}};var ac=function(ak,at,av,aw,an,ap){var au="",ao="",ar,am,al=ak.value.length,aq=0;for(ar=0;ar<al;ar++){if(typeof ak.value[ar]==="object"&&ak.value[ar].length!==undefined){au+=ak.delimiter[ar]+"#";aq=ak.value[ar].length;for(am=0;am<aq;am++){ao=Math.round(af[aw.effect]((an-aw.time),ak.value[ar][am],(at.value[ar][am]-ak.value[ar][am]),(ap-aw.time)),10).toString(16);if(ao.length===1){ao="0"+ao}au+=ao}}else{au+=ak.delimiter[ar]+af[aw.effect]((an-aw.time),ak.value[ar],(at.value[ar]-ak.value[ar]),(ap-aw.time))}}return au+ak.delimiter[ak.delimiter.length-1]};var U=function(au,av,al){var ak,aw=v(al.start),am=v(al.stop),ao,aq,ar,an,at=B.frameLength,ap=al.end;ak=an=Math.round(B.frameRate/al.framerate-1);for(ao=al.time;ao<ap;ao+=at){aq=r+Math.round(ao*B.frameRate);if(ak===0){ar=ac(aw,am,av,al,ao,al.end);k(aq,au,av,ar,al.units,false,false);ak=an}else{k(aq,au,av);ak--}}aq=r+(Math.round(al.end*B.frameRate));k(aq,au,av,al.stop,al.units,false,true)};var O=function(at,au,al){var ak,an,ap,aq,am,ar=B.frameLength,ao=al.end;ak=am=Math.round(B.frameRate/al.framerate-1);for(an=al.time;an<ao;an+=ar){ap=r+(Math.round(an*B.frameRate));if(ak===0){aq=af[al.effect]((an-al.time),al.start,(al.stop-al.start),(al.end-al.time));k(ap,at,au,aq,al.units,false,false);ak=am}else{k(ap,at,au);ak--}}ap=r+(Math.round(al.end*B.frameRate));k(ap,at,au,al.stop,al.units,false,true)};var z=function(ak){var al={start:0,stop:0},am;for(am in ak){if(ak.hasOwnProperty(am)){if(ak[am].end>al.stop){al.stop=ak[am].end}}}al.start=al.stop;for(am in ak){if(ak.hasOwnProperty(am)){if(ak[am].time<al.start){al.start=ak[am].time}}}return al};var s=function(aq,an){var ar=m(aq),ap=0,ao=0,au,al,am=0,av=P(aq,an),at,ak=z(av);for(at in av){if(av.hasOwnProperty(at)){if(typeof av[at].start==="string"){U(ar,at,av[at])}else{O(ar,at,av[at])}if(typeof av[at].callback.onStart==="function"){ai(r+(Math.round(av[at].time*B.frameRate)),ar,at,av[at].callback.onStart)}if(typeof av[at].callback.onFrame==="function"){for(ao=av[at].time;ao<av[at].end;ao+=B.frameLength){ap=r+(Math.round(ao*B.frameRate));ai(ap,ar,at,av[at].callback.onFrame)}}if(typeof av[at].callback.onStop==="function"){ai(r+(Math.round(av[at].end*B.frameRate)),ar,at,av[at].callback.onStop)}ap=r+(Math.round(av[at].end*B.frameRate));if(ap>h){h=ap}}}if(typeof an.onStart==="function"){ai(r+(Math.round(ak.start*B.frameRate)),ar,"callback",an.onStart)}if(typeof an.onFrame==="function"){for(frame=r+Math.round(ak.start*B.frameRate);frame<=r+Math.round(ak.stop*B.frameRate);frame++){ai(frame,ar,"callback",an.onFrame)}}if(typeof an.onStop==="function"){ai(r+(Math.round(ak.stop*B.frameRate)),ar,"callback",an.onStop)}};var k=function(ap,ak,am,ao,al,aq,an){if(ak!==undefined){if(A[ap]===undefined){A[ap]={};A[ap][ak]={};A[ap][ak][am]={value:ao,units:al,callback:[],skip:an}}else{if(A[ap][ak]===undefined){A[ap][ak]={};A[ap][ak][am]={value:ao,units:al,callback:[],skip:an}}else{if(A[ap][ak][am]===undefined){A[ap][ak][am]={value:ao,units:al,callback:[],skip:an}}else{if(ao!==false){A[ap][ak][am].value=ao}if(al!==false){A[ap][ak][am].units=al}A[ap][ak][am].skip=an}}}if(typeof aq==="function"){A[ap][ak][am].callback.push(aq)}}else{if(A[ap]===undefined){A[ap]={}}}};var ai=function(am,ak,al,an){k(am,ak,al,false,false,an,true)};var H=function(ak){if(ad===false){j=false;ad=true;Z=n();w=ak;g()}};var Q=function(ak,al){var am;if(ak!==undefined&&al!==undefined&&ak.__animate!==undefined){for(am in A){if(A.hasOwnProperty(am)&&A[am][ak.__animate.id]!==undefined&&A[am][ak.__animate.id][al]!==undefined){delete A[am][ak.__animate.id][al]}}}else{if(ak!==undefined&&ak.__animate!==undefined){for(am in A){if(A.hasOwnProperty(am)&&A[am][ak.__animate.id]!==undefined){delete A[am][ak.__animate.id]}}}else{for(am in A){if(A.hasOwnProperty(am)){delete A[am]}}}}};var n=function(){var ak=new Date();return ak.getTime()};var g=function(){var an,ak,am,al;if(r<=h){al=(B.frameDelay-((n()-Z)-(r*B.frameDelay)));if(al<0){al=0}else{if(al>B.frameDelay){al=B.frameDelay}}setTimeout(function(){g(al?true:false)},al);for(ak in A[r]){if(A[r].hasOwnProperty(ak)){an=A[r][ak];for(am in an){if(an.hasOwnProperty(am)){c(ak,am,an[am].value,an[am].units,an[am].callback,(an[am].skip===true?true:(al?true:false)))}}}}delete A[r];r++;j=n()}else{j=ad=false;r=0;if(typeof w==="function"){w();w=false}}};var c=function(ak,an,ao,al,aq,am){var ap=x[ak].__animate.state[an];if(am===true&&ao!==false&&(ap===undefined||(ap.value!=ao||ap.units!=al))){switch(an){case"zIndex":x[ak].style.zIndex=ao;break;case"alpha":case"transparency":case"opacity":aa(x[ak],ao);break;case"scroll":case"scrollTop":case"scrollLeft":case"scrollTo":W(x[ak],an,ao);break;case"shadow":case"boxShadow":N(x[ak],ao);break;case"rotate":ag(x[ak],ao);break;case"transformOrigin":K(x[ak],ao);break;case"transform":J(x[ak],ao);break;case"backgroundSize":ae(x[ak],ao);break;case"borderRadius":a(x[ak],ao,al);break;case"borderRadiusTopRight":p(x[ak],"top","right",ao,al);break;case"borderRadiusTopLeft":p(x[ak],"top","left",ao,al);break;case"borderRadiusBottomRight":p(x[ak],"bottom","right",ao,al);break;case"borderRadiusBottomLeft":p(x[ak],"bottom","left",ao,al);break;default:if(typeof ao==="string"){x[ak].style[an]=ao}else{x[ak].style[an]=ao+al}break}}x[ak].__animate.state[an]={value:ao,units:al};if(aq!==undefined&&aq.length>0){for(i=0;i<aq.length;i++){if(typeof aq[i]==="function"){aq[i](x[ak],{type:an,value:ao,units:al,id:ak})}}}};var W=function(al,an,am){var ak;if(al.tagName===undefined&&(typeof al.scroll==="function"||typeof al.scrollTo==="function")&&typeof am==="string"){ak=am.match(b);if(ak){if(self.pageYOffset){window.scroll(parseInt(ak[0],10),parseInt(ak[1],10))}else{if(document.documentElement&&document.documentElement.scrollTop){window.scrollTo(parseInt(ak[0],10),parseInt(ak[1],10))}else{if(document.body){window.scrollTo(parseInt(ak[0],10),parseInt(ak[1],10))}}}}}else{if(typeof am==="string"){ak=am.match(b)}else{ak=[am,am]}if(an==="scrollTop"){al.scrollTop=parseInt(ak[1],10)}else{if(an==="scrollLeft"){al.scrollLeft=parseInt(ak[0],10)}else{al.scrollLeft=parseInt(ak[0],10);al.scrollTop=parseInt(ak[1],10)}}}};var ah=function(al,an,am,ak){al.style[an]=am+(ak?ak:"")};var aa=function(ak,al){if(E.opacity==="filter"){ah(ak,"filter","alpha(opacity="+al+")")}else{ah(ak,E.opacity,(al/100))}};var N=function(ak,al){ah(ak,E.shadow,al)};var ag=function(ak,al){ah(ak,E.transform,"rotate("+al+"deg)")};var J=function(ak,al){ah(ak,E.transform,al)};var ae=function(ak,al){ah(ak,E.backgroundSize,al)};var K=function(ak,al){ah(ak,E.transformOrigin,al)};var a=function(al,am,ak){ah(al,E.borderRadius,am,ak)};var p=function(am,al,an,ao,ak){if(al==="top"){if(an==="left"){ah(am,E.borderRadiusTopLeft,ao,ak)}else{ah(am,E.borderRadiusTopRight,ao,ak)}}else{if(an==="left"){ah(am,E.borderRadiusBottomLeft,ao,ak)}else{ah(am,E.borderRadiusBottomRight,ao,ak)}}};var m=function(al){if(al.__animate===undefined){var ak=x.length;al.__animate={id:ak,state:{},callback:{},dragging:false};x.push(al);return ak}else{return al.__animate.id}};var af={linear:function(al,ak,an,am){return an*al/am+ak},quadIn:function(al,ak,an,am){return an*(al/=am)*al+ak},quadOut:function(al,ak,an,am){return -an*(al/=am)*(al-2)+ak},quadInOut:function(al,ak,an,am){if((al/=am/2)<1){return an/2*al*al+ak}return -an/2*((--al)*(al-2)-1)+ak},cubicIn:function(al,ak,an,am){return an*(al/=am)*al*al+ak},cubicOut:function(al,ak,an,am){return an*((al=al/am-1)*al*al+1)+ak},cubicInOut:function(al,ak,an,am){if((al/=am/2)<1){return an/2*al*al*al+ak}return an/2*((al-=2)*al*al+2)+ak},easeIn:function(al,ak,an,am){return an*(al/=am)*al*al+ak},easeOut:function(al,ak,an,am){return an*((al=al/am-1)*al*al+1)+ak},easeInOut:function(al,ak,an,am){if((al/=am/2)<1){return an/2*al*al*al+ak}return an/2*((al-=2)*al*al+2)+ak},quartIn:function(al,ak,an,am){return an*(al/=am)*al*al*al+ak},quartOut:function(al,ak,an,am){return -an*((al=al/am-1)*al*al*al-1)+ak},quartInOut:function(al,ak,an,am){if((al/=am/2)<1){return an/2*al*al*al*al+ak}return -an/2*((al-=2)*al*al*al-2)+ak},quintIn:function(al,ak,an,am){return an*(al/=am)*al*al*al*al+ak},quintOut:function(al,ak,an,am){return an*((al=al/am-1)*al*al*al*al+1)+ak},quintInOut:function(al,ak,an,am){if((al/=am/2)<1){return an/2*al*al*al*al*al+ak}return an/2*((al-=2)*al*al*al*al+2)+ak},sineIn:function(al,ak,an,am){return -an*Math.cos(al/am*(Math.PI/2))+an+ak},sineOut:function(al,ak,an,am){return an*Math.sin(al/am*(Math.PI/2))+ak},sineInOut:function(al,ak,an,am){return -an/2*(Math.cos(Math.PI*al/am)-1)+ak},expoIn:function(al,ak,an,am){return(al===0)?ak:an*Math.pow(2,10*(al/am-1))+ak},expoOut:function(al,ak,an,am){return(al===am)?ak+an:an*(-Math.pow(2,-10*al/am)+1)+ak},expoInOut:function(al,ak,an,am){if(al===0){return ak}if(al===am){return ak+an}if((al/=am/2)<1){return an/2*Math.pow(2,10*(al-1))+ak}return an/2*(-Math.pow(2,-10*--al)+2)+ak},circIn:function(al,ak,an,am){return -an*(Math.sqrt(1-(al/=am)*al)-1)+ak},circOut:function(al,ak,an,am){return an*Math.sqrt(1-(al=al/am-1)*al)+ak},circInOut:function(al,ak,an,am){if((al/=am/2)<1){return -an/2*(Math.sqrt(1-al*al)-1)+ak}return an/2*(Math.sqrt(1-(al-=2)*al)+1)+ak},bounceIn:function(al,ak,an,am){return an-af.bounceOut(am-al,0,an,am)+ak},bounceOut:function(al,ak,an,am){if((al/=am)<(1/2.75)){return an*(7.5625*al*al)+ak}else{if(al<(2/2.75)){return an*(7.5625*(al-=(1.5/2.75))*al+0.75)+ak}else{if(al<(2.5/2.75)){return an*(7.5625*(al-=(2.25/2.75))*al+0.9375)+ak}else{return an*(7.5625*(al-=(2.625/2.75))*al+0.984375)+ak}}}},bounceInOut:function(al,ak,an,am){if(al<am/2){return af.bounceIn(al*2,0,an,am)*0.5+ak}return af.bounceOut(al*2-am,0,an,am)*0.5+an*0.5+ak},elasticIn:function(am,ak,aq,ap,al,ao){if(am===0){return ak}if((am/=ap)===1){return ak+aq}if(!ao){ao=ap*0.3}if(!al){al=1}var an=0;if(al<Math.abs(aq)){al=aq;an=ao/4}else{an=ao/(2*Math.PI)*Math.asin(aq/al)}return -(al*Math.pow(2,10*(am-=1))*Math.sin((am*ap-an)*(2*Math.PI)/ao))+ak},elasticOut:function(am,ak,aq,ap,al,ao){if(am===0){return ak}if((am/=ap)===1){return ak+aq}if(!ao){ao=ap*0.3}if(!al){al=1}var an=0;if(al<Math.abs(aq)){al=aq;an=ao/4}else{an=ao/(2*Math.PI)*Math.asin(aq/al)}return al*Math.pow(2,-10*am)*Math.sin((am*ap-an)*(2*Math.PI)/ao)+aq+ak},elasticInOut:function(am,ak,aq,ap,al,ao){if(am===0){return ak}if((am/=ap/2)===2){return ak+aq}if(!ao){ao=ap*(0.3*1.5)}if(!al){al=1}var an=0;if(al<Math.abs(aq)){al=aq;an=ao/4}else{an=ao/(2*Math.PI)*Math.asin(aq/al)}if(am<1){return -0.5*(al*Math.pow(2,10*(am-=1))*Math.sin((am*ap-an)*(2*Math.PI)/ao))+ak}return al*Math.pow(2,-10*(am-=1))*Math.sin((am*ap-an)*(2*Math.PI)/ao)*0.5+aq+ak}};S.tween=s;S.action=c;S.register=m;S.shadow=N;S.opacity=aa;S.borderRadius=a;S.borderRadiusCorner=p;S.backgroundSize=ae;S.transformOrigin=K;S.rotate=ag;S.transform=J;S.clear=Q;S.play=H;S.property=R;S.getScroll=C;S.scroll=W;S.framerate=ab;Y();return S}(JSTween||{}));