!function(a,b){varc={},d={},e={},f=null;!function(a,b){functionc(a){if("number"==typeofa)returna;varb={};for(varcina)b[c]=a[c];returnb}functiond(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=w}functione(){returna.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}functionf(b,c,e){varf=newd;returnc&&(f.fill="both",f.duration="auto"),"number"!=typeofb||isNaN(b)?void0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeoff[c]||"duration"==c)&&("number"!=typeofb[c]||isNaN(b[c])))return;if("fill"==c&&-1==u.indexOf(b[c]))return;if("direction"==c&&-1==v.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;f[c]=b[c]}}):f.duration=b,f}functiong(a){return"number"==typeofa&&(a=isNaN(a)?{duration:0}:{duration:a}),a}functionh(b,c){returnb=a.numericTimingToObject(b),f(b,c)}functioni(a,b,c,d){return0>a||a>1||0>c||c>1?w:function(e){functionf(a,b,c){return3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(0==e||1==e)returne;for(varg=0,h=1;;){vari=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<1e-4)returnf(b,d,i);e>j?g=i:h=i}}}functionj(a,b){returnfunction(c){if(c>=1)return1;vard=1/a;returnc+=b*d,c-c%d}}functionk(a){B||(B=document.createElement("div").style),B.animationTimingFunction="",B.animationTimingFunction=a;varb=B.animationTimingFunction;if(""==b&&e())thrownewTypeError(a+" is not a valid value for easing");varc=D.exec(b);if(c)returni.apply(this,c.slice(1).map(Number));vard=E.exec(b);if(d)returnj(Number(d[1]),{start:x,middle:y,end:z}[d[2]]);varf=A[b];returnf?f:w}functionl(a){returnMath.abs(m(a)/a.playbackRate)}functionm(a){returna.duration*a.iterations}functionn(a,b,c){returnnull==b?F:b<c.delay?G:b>=c.delay+a?H:I}functiono(a,b,c,d,e){switch(d){caseG:return"backwards"==b||"both"==b?0:null;caseI:returnc-e;caseH:return"forwards"==b||"both"==b?a:null;caseF:returnnull}}functionp(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playbackRate+c}functionq(a,b,c,d,e){returnc===1/0||c===-(1/0)||c-d==b&&e.iterations&&(e.iterations+e.iterationStart)%1==0?a:c%a}functionr(a,b,c,d){return0===c?0:b==a?d.iterationStart+d.iterations-1:Math.floor(c/a)}functions(a,b,c,d){vare=a%2>=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g=f?c:b-c,h=g/b;returnb*d._easingFunction(h)}functiont(a,b,c){vard=n(a,b,c),e=o(a,c.fill,b,d,c.delay);if(null===e)returnnull;if(0===a)returnd===G?0:1;varf=c.iterationStart*c.duration,g=p(a,e,f,c),h=q(c.duration,m(c),g,f,c),i=r(c.duration,h,g,c);returns(i,c.duration,h,c)/c.duration}varu="backwards|forwards|both|none".split("|"),v="reverse|alternate|alternate-reverse".split("|"),w=function(a){returna};d.prototype={_setMember:function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing=a.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=a.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},getplaybackRate(){returnthis._playbackRate},setdelay(a){this._setMember("delay",a)},getdelay(){returnthis._delay},setendDelay(a){this._setMember("endDelay",a)},getendDelay(){returnthis._endDelay},setfill(a){this._setMember("fill",a)},getfill(){returnthis._fill},setiterationStart(a){if((isNaN(a)||0>a)&&e())thrownewTypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",a)},getiterationStart(){returnthis._iterationStart},setduration(a){if("auto"!=a&&(isNaN(a)||0>a)&&e())thrownewTypeError("duration must be non-negative or auto, received: "+a);this._setMember("duration",a)},getduration(){returnthis._duration},setdirection(a){this._setMember("direction",a)},getdirection(){returnthis._direction},seteasing(a)
}vare=window.requestAnimationFrame;window.requestAnimationFrame=function(a){returne(function(b){window.document.timeline._updateAnimationsPromises(),a(b),window.document.timeline._updateAnimationsPromises()})},b.AnimationTimeline=function(){this._animations=[],this.currentTime=void0},b.AnimationTimeline.prototype={getAnimations:function(){returnthis._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){b.animationsWithPromises=b.animationsWithPromises.filter(function(a){returna._updatePromises()})},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playState})},_play:function(a){varc=newb.Animation(a,this);returnthis._animations.push(c),b.restartWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c._updatePromises(),c},play:function(a){returna&&a.remove(),this._play(a)}};varf=!1;b.restartWebAnimationsNextTick=function(){f||(f=!0,requestAnimationFrame(d))};varg=newb.AnimationTimeline;b.timeline=g;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){returng}})}catch(h){}try{window.document.timeline=g}catch(h){}}(c,e,f),function(a,b,c){b.animationsWithPromises=[],b.Animation=function(b,c){if(this.id="",b&&b._id&&(this.id=b._id),this.effect=b,b&&(b._animation=this),!c)thrownewError("Animation with null timeline is not supported");this._timeline=c,this._sequenceNumber=a.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},b.Animation.prototype={_updatePromises:function(){vara=this._oldPlayState,b=this.playState;returnthis._readyPromise&&b!==a&&("idle"==b?(this._rejectReadyPromise(),this._readyPromise=void0):"pending"==a?this._resolveReadyPromise():"pending"==b&&(this._readyPromise=void0)),this._finishedPromise&&b!==a&&("idle"==b?(this._rejectFinishedPromise(),this._finishedPromise=void0):"finished"==b?this._resolveFinishedPromise():"finished"==a&&(this._finishedPromise=void0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();vara,c,d,e,f=!!this._animation;f&&(a=this.playbackRate,c=this._paused,d=this.startTime,e=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effectinstanceofwindow.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect),b.bindAnimationForKeyframeEffect(this)),(this.effectinstanceofwindow.SequenceEffect||this.effectinstanceofwindow.GroupEffect)&&(this._animation=b.newUnderlyingAnimationForGroup(this.effect),b.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&b.bindAnimationForCustomEffect(this),f&&(1!=a&&(this.playbackRate=a),null!==d?this.startTime=d:null!==e?this.currentTime=e:null!==this._holdTime&&(this.currentTime=this._holdTime),c&&this.pause()),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){vara=this.effect._timing.delay;this._childAnimations.forEach(function(c){this._arrangeChildren(c,a),this.effectinstanceofwindow.SequenceEffect&&(a+=b.groupChildDuration(c.effect))}.bind(this))}},_setExternalAnimation:function(a){if(this.effect&&this._isGroup)for(varb=0;b<this.effect.children.length;b++)this.effect.children[b]._animation=a,this._childAnimations[b]._setExternalAnimation(a)},_constructChildAnimations:function(){if(this.effect&&this._isGroup){vara=this.effect._timing.delay;this._removeChildAnimations(),this.effect.children.forEach(function(c){vard=window.document.timeline._play(c);this._childAnimations.push(d),d.playbackRate=this.playbackRate,this._paused&&d.pause(),c._animation=this.effect._animation,this._arrangeChildren(d,a),this.effectinstanceofwindow.SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))}},_arrangeChildren:function(a,b){null===this.start