Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/web-animations-js/sources/web-animations-next.min.js

Issue 1901343004: [Polymer] update third_party polymer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new pull Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 Google Inc. All rights reserved. 1 // Copyright 2014 Google Inc. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 !function(a,b){b["true"]=a;var c={},d={},e={},f=null;!function(a){function b(a){ if("number"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}functi on c(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,t his._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal" ,this._easing="linear"}function d(b,d){var e=new c;return d&&(e.fill="both",e.du ration="auto"),"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNam es(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof e[c]||"duration" ==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==s.indexOf(b[ c]))return;if("direction"==c&&-1==t.indexOf(b[c]))return;if("playbackRate"==c&&1 !==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use A nimation.playbackRate instead."))return;e[c]=b[c]}}):e.duration=b,e}function e(a ){return"number"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function f( b,c){b=a.numericTimingToObject(b);var e=d(b,c);return e._easing=i(e.easing),e}fu nction g(a,b,c,d){return 0>a||a>1||0>c||c>1?B:function(e){function f(a,b,c){retu rn 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(0==e||1==e)return e;for(var g=0,h=1; ;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}} function h(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c% d}}function i(a){var b=z.exec(a);if(b)return g.apply(this,b.slice(1).map(Number) );var c=A.exec(a);if(c)return h(Number(c[1]),{start:u,middle:v,end:w}[c[2]]);var d=x[a];return d?d:B}function j(a){return Math.abs(k(a)/a.playbackRate)}function k(a){return a.duration*a.iterations}function l(a,b,c){return null==b?C:b<c.dela y?D:b>=c.delay+a?E:F}function m(a,b,c,d,e){switch(d){case D:return"backwards"==b ||"both"==b?0:null;case F:return c-e;case E:return"forwards"==b||"both"==b?a:nul l;case C:return null}}function n(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playb ackRate+c}function o(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&& (e.iterations+e.iterationStart)%1==0?a:c%a}function p(a,b,c,d){return 0===c?0:b= =a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function q(a,b,c,d){var e=a%2 >=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g= f?c:b-c,h=g/b;return b*d.easing(h)}function r(a,b,c){var d=l(a,b,c),e=m(a,c.fill ,b,d,c.delay);if(null===e)return null;if(0===a)return d===D?0:1;var f=c.iteratio nStart*c.duration,g=n(a,e,f,c),h=o(c.duration,k(c),g,f,c),i=p(c.duration,h,g,c); return q(i,c.duration,h,c)/c.duration}var s="backwards|forwards|both|none".split ("|"),t="reverse|alternate|alternate-reverse".split("|");c.prototype={_setMember :function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this. _effect._timing=a.normalizeTimingInput(a.normalizeTimingInput(this._effect._timi ngInput)),this._effect.activeDuration=a.calculateActiveDuration(this._effect._ti ming),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimati on())},get playbackRate(){return this._playbackRate},set delay(a){this._setMembe r("delay",a)},get delay(){return this._delay},set endDelay(a){this._setMember("e ndDelay",a)},get endDelay(){return this._endDelay},set fill(a){this._setMember(" fill",a)},get fill(){return this._fill},set iterationStart(a){this._setMember("i terationStart",a)},get iterationStart(){return this._iterationStart},set duratio n(a){this._setMember("duration",a)},get duration(){return this._duration},set di rection(a){this._setMember("direction",a)},get direction(){return this._directio n},set easing(a){this._setMember("easing",a)},get easing(){return this._easing}, set iterations(a){this._setMember("iterations",a)},get iterations(){return this. _iterations}};var u=1,v=.5,w=0,x={ease:g(.25,.1,.25,1),"ease-in":g(.42,0,1,1),"e ase-out":g(0,0,.58,1),"ease-in-out":g(.42,0,.58,1),"step-start":h(1,u),"step-mid dle":h(1,v),"step-end":h(1,w)},y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",z=new RegE xp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),A=/steps\(\s*(\d+)\s*,\s*(start| middle|end)\s*\)/,B=function(a){return a},C=0,D=1,E=2,F=3;a.cloneTimingInput=b,a .makeTiming=d,a.numericTimingToObject=e,a.normalizeTimingInput=f,a.calculateActi veDuration=j,a.calculateTimeFraction=r,a.calculatePhase=l,a.toTimingFunction=i}( c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){va r g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)} }else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset& &(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].of fset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].off set=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError ("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null! =f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be num bers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"N otSupportedError",message:"add compositing is not supported"};f="easing"==e?a.to TimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0= =d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.lengt h;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODI FICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(fun ction(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgrou ndImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAtt achment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderT opColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle" ,"borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth", "borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBott omWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor", "borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLef tWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius" ,"borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],bord erRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["b orderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth", "borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flex Shrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fo ntWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","margin Left"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingT op","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("h ttp://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={b orderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSiz e:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-la rge":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth :g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated= function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth( h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecate d and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecat ed=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Err or(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentEleme nt.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play| currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split( "|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b){funct ion c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easi ng"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][ d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!= g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupporte dError",message:"Partial keyframes are not supported"}}return b}function d(a){va r c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e [f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime: g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation( d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.conver tEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return func tion(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1== a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTim e,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpol ation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clea r(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}fu nction c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a ,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){ if("initial"==c||"initial"==d){var g=b.replace(/-(.)/g,function(a,b){return b.to UpperCase()});"initial"==c&&(c=f[g]),"initial"==d&&(d=f[g])}for(var h=c==d?[]:e[ b],i=0;h&&i<h.length;i++){var j=h[i][0](c),k=h[i][0](d);if(void 0!==j&&void 0!== k){var l=h[i][1](j,k);if(l){var m=a.Interpolation.apply(null,l);return function( a){return 0==a?c:1==a?d:m(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c;var f={backgroundColor:"transparent",b ackgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadiu s:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"c urrentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWi dth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius: "0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0 px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto" ,left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginL eft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",min Height:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0 px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px", paddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transpare nt",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto ",wordSpacing:"normal",zIndex:"auto"};a.propertyInterpolation=d}(d,f),function(a ,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calc ulateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurr ent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseB efore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i =b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){retur n g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){r eturn d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.Nu llEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function (){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameT arget=function(){return!1},b}}(c,d,f),function(a){function b(a,b,c){c.enumerable =!0,c.configurable=!0,Object.defineProperty(a,b,c)}function c(a){this._surrogate Style=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this. _style=a.style,this._length=0,this._isAnimatedProperty={};for(var b=0;b<this._st yle.length;b++){var c=this._style[b];this._surrogateStyle[c]=this._style[c]}this ._updateIndices()}function d(a){if(!a._webAnimationsPatchedStyle){var d=new c(a) ;try{b(a,"style",{get:function(){return d}})}catch(e){a.style._set=function(b,c) {a.style[b]=c},a.style._clear=function(b){a.style[b]=""}}a._webAnimationsPatched Style=a.style}}var e={cssText:1,length:1,parentRule:1},f={getPropertyCSSValue:1, getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1}, g={removeProperty:1,setProperty:1};c.prototype={get cssText(){return this._surro gateStyle.cssText},set cssText(a){for(var b={},c=0;c<this._surrogateStyle.length ;c++)b[this._surrogateStyle[c]]=!0;this._surrogateStyle.cssText=a,this._updateIn dices();for(var c=0;c<this._surrogateStyle.length;c++)b[this._surrogateStyle[c]] =!0;for(var d in b)this._isAnimatedProperty[d]||this._style.setProperty(d,this._ surrogateStyle.getPropertyValue(d))},get length(){return this._surrogateStyle.le ngth},get parentRule(){return this._style.parentRule},_updateIndices:function(){ for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._ length,{configurable:!0,enumerable:!1,get:function(a){return function(){return t his._surrogateStyle[a]}}(this._length)}),this._length++;for(;this._length>this._ surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{c onfigurable:!0,enumerable:!1,value:void 0})},_set:function(a,b){this._style[a]=b ,this._isAnimatedProperty[a]=!0},_clear:function(a){this._style[a]=this._surroga teStyle[a],delete this._isAnimatedProperty[a]}};for(var h in f)c.prototype[h]=fu nction(a,b){return function(){var c=this._surrogateStyle[a].apply(this._surrogat eStyle,arguments);return b&&(this._isAnimatedProperty[arguments[0]]||this._style [a].apply(this._style,arguments),this._updateIndices()),c}}(h,h in g);for(var i in document.documentElement.style)i in e||i in f||!function(a){b(c.prototype,a,{ get:function(){return this._surrogateStyle[a]},set:function(b){this._surrogateSt yle[a]=b,this._updateIndices(),this._isAnimatedProperty[a]||(this._style[a]=b)}} )}(i);a.apply=function(b,c,e){d(b),b.style._set(a.propertyName(c),e)},a.clear=fu nction(b,c){b._webAnimationsPatchedStyle&&b.style._clear(a.propertyName(c))}}(d, f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline. _play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number" ==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boole an"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length; f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a +":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}( d,f),function(a){function b(a,b,c){return Math.max(Math.min(a,c),b)}function c(c ,d,e){var f=a.dot(c,d);f=b(f,-1,1);var g=[];if(1===f)g=c;else for(var h=Math.aco s(f),i=1*Math.sin(e*h)/Math.sqrt(1-f*f),j=0;4>j;j++)g.push(c[j]*(Math.cos(e*h)-f *i)+d[j]*i);return g}var d=function(){function a(a,b){for(var c=[[0,0,0,0],[0,0, 0,0],[0,0,0,0],[0,0,0,0]],d=0;4>d;d++)for(var e=0;4>e;e++)for(var f=0;4>f;f++)c[ d][e]+=b[d][f]*a[f][e];return c}function b(a){return 0==a[0][2]&&0==a[0][3]&&0== a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]& &1==a[3][3]}function c(c,d,e,f,g){for(var h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0, 0,1]],i=0;4>i;i++)h[i][3]=g[i];for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[3][i]+= c[j]*h[j][i];var k=f[0],l=f[1],m=f[2],n=f[3],o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0 ,0,0,1]];o[0][0]=1-2*(l*l+m*m),o[0][1]=2*(k*l-m*n),o[0][2]=2*(k*m+l*n),o[1][0]=2 *(k*l+m*n),o[1][1]=1-2*(k*k+m*m),o[1][2]=2*(l*m-k*n),o[2][0]=2*(k*m-l*n),o[2][1] =2*(l*m+k*n),o[2][2]=1-2*(k*k+l*l),h=a(h,o);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0] ,[0,0,0,1]];e[2]&&(p[2][1]=e[2],h=a(h,p)),e[1]&&(p[2][1]=0,p[2][0]=e[0],h=a(h,p) ),e[0]&&(p[2][0]=0,p[1][0]=e[0],h=a(h,p));for(var i=0;3>i;i++)for(var j=0;3>j;j+ +)h[i][j]*=d[i];return b(h)?[h[0][0],h[0][1],h[1][0],h[1][1],h[3][0],h[3][1]]:h[ 0].concat(h[1],h[2],h[3])}return c}();a.composeMatrix=d,a.quat=c}(d,f),function( a,b){a.sequenceNumber=0;var c=function(a,b,c){this.target=a,this.currentTime=b,t his.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.cu rrentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.time Stamp=Date.now()};b.Animation=function(b){this._sequenceNumber=a.sequenceNumber+ +,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1, this._inTimeline=!0,this._finishedFlag=!1,this.onfinish=null,this._finishHandler s=[],this._effect=b,this._inEffect=this._effect._update(0),this._idle=!0,this._c urrentTimePending=!1},b.Animation.prototype={_ensureAlive:function(){this._inEff ect=this._effect._update(this.playbackRate<0&&0===this.currentTime?-1:this.curre ntTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline =!0,b.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._ currentTime&&(this._currentTime=a,this._isFinished&&!b&&(this._currentTime=this. _playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){r eturn this._idle||this._currentTimePending?null:this._currentTime},set currentTi me(a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startTime||(this._st artTime=this._timeline.currentTime-a/this._playbackRate),this._currentTimePendin g=!1,this._currentTime!=a&&(this._tickCurrentTime(a,!0),b.invalidateEffects()))} ,get startTime(){return this._startTime},set startTime(a){a=+a,isNaN(a)||this._p aused||this._idle||(this._startTime=a,this._tickCurrentTime((this._timeline.curr entTime-this._startTime)*this.playbackRate),b.invalidateEffects())},get playback Rate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){ var b=this.currentTime;this._playbackRate=a,this._startTime=null,"paused"!=this. playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.currentTime=b)}},g et _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=th is._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDurati on(){return this._effect._totalDuration},get playState(){return this._idle?"idle ":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimeP ending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},pl ay:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._currentTime =this._playbackRate>0?0:this._totalDuration,this._startTime=null,b.invalidateEff ects()),this._finishedFlag=!1,b.restart(),this._idle=!1,this._ensureAlive()},pau se:function(){this._isFinished||this._paused||this._idle||(this._currentTimePend ing=!0),this._startTime=null,this._paused=!0},finish:function(){this._idle||(thi s.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._t otalDuration-this.currentTime,this._currentTimePending=!1)},cancel:function(){th is._inEffect&&(this._inEffect=!1,this._idle=!0,this.currentTime=0,this._startTim e=null,this._effect._update(null),b.invalidateEffects(),b.restart())},reverse:fu nction(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"func tion"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener: function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._ finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this._isFinished;if(( b||this._idle)&&!this._finishedFlag){var d=new c(this,this._currentTime,a),e=thi s._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function() {e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag=b},_tick:func tion(a){return this._idle||this._paused||(null==this._startTime?this.startTime=a -this._currentTime/this.playbackRate:this._isFinished||this._tickCurrentTime((a- this._startTime)*this.playbackRate)),this._currentTimePending=!1,this._fireEvent s(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(c,d,f),function(a,b){ function c(a){var b=i;i=[],a<s.currentTime&&(a=s.currentTime),g(a),b.forEach(fun ction(b){b[1](a)}),o&&g(a),f(),l=void 0}function d(a,b){return a._sequenceNumber -b._sequenceNumber}function e(){this._animations=[],this.currentTime=window.perf ormance&&performance.now?performance.now():0}function f(){p.forEach(function(a){ a()}),p.length=0}function g(a){n=!1;var c=b.timeline;c.currentTime=a,c._animatio ns.sort(d),m=!1;var e=c._animations;c._animations=[];var f=[],g=[];e=e.filter(fu nction(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._effect):f.push(b ._effect),b._isFinished||b._paused||b._idle||(m=!0),b._inTimeline}),p.push.apply (p,f),p.push.apply(p,g),c._animations.push.apply(c._animations,e),o=!1,m&&reques tAnimationFrame(function(){})}var h=window.requestAnimationFrame,i=[],j=0;window .requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h(c),i.push([b, a]),b},window.cancelAnimationFrame=function(a){i.forEach(function(b){b[0]==a&&(b [1]=function(){})})},e.prototype={_play:function(c){c._timing=a.normalizeTimingI nput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timeline=this,this. _animations.push(d),b.restart(),b.invalidateEffects(),d}};var k,l=void 0,k=funct ion(){return void 0==l&&(l=performance.now()),l},m=!1,n=!1;b.restart=function(){ return m||(m=!0,requestAnimationFrame(function(){}),n=!0),n};var o=!1;b.invalida teEffects=function(){o=!0};var p=[],q=1e3/60,r=window.getComputedStyle;Object.de fineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:func tion(){if(o){var a=k();a-s.currentTime>0&&(s.currentTime+=q*(Math.floor((a-s.cur rentTime)/q)+1)),g(s.currentTime)}return f(),r.apply(this,arguments)}});var s=ne w e;b.timeline=s}(c,d,f),function(a){function b(a,b){for(var c=0,d=0;d<a.length; d++)c+=a[d]*b[d];return c}function c(a,b){return[a[0]*b[0]+a[4]*b[1]+a[8]*b[2]+a [12]*b[3],a[1]*b[0]+a[5]*b[1]+a[9]*b[2]+a[13]*b[3],a[2]*b[0]+a[6]*b[1]+a[10]*b[2 ]+a[14]*b[3],a[3]*b[0]+a[7]*b[1]+a[11]*b[2]+a[15]*b[3],a[0]*b[4]+a[4]*b[5]+a[8]* b[6]+a[12]*b[7],a[1]*b[4]+a[5]*b[5]+a[9]*b[6]+a[13]*b[7],a[2]*b[4]+a[6]*b[5]+a[1 0]*b[6]+a[14]*b[7],a[3]*b[4]+a[7]*b[5]+a[11]*b[6]+a[15]*b[7],a[0]*b[8]+a[4]*b[9] +a[8]*b[10]+a[12]*b[11],a[1]*b[8]+a[5]*b[9]+a[9]*b[10]+a[13]*b[11],a[2]*b[8]+a[6 ]*b[9]+a[10]*b[10]+a[14]*b[11],a[3]*b[8]+a[7]*b[9]+a[11]*b[10]+a[15]*b[11],a[0]* b[12]+a[4]*b[13]+a[8]*b[14]+a[12]*b[15],a[1]*b[12]+a[5]*b[13]+a[9]*b[14]+a[13]*b [15],a[2]*b[12]+a[6]*b[13]+a[10]*b[14]+a[14]*b[15],a[3]*b[12]+a[7]*b[13]+a[11]*b [14]+a[15]*b[15]]}function d(a){switch(a.t){case"rotatex":var b=a.d[0].rad||0,c= a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,0,Math.cos(d),Math.sin(d),0,0,-Ma th.sin(d),Math.cos(d),0,0,0,0,1];case"rotatey":var b=a.d[0].rad||0,c=a.d[0].deg| |0,d=c*Math.PI/180+b;return[Math.cos(d),0,-Math.sin(d),0,0,1,0,0,Math.sin(d),0,M ath.cos(d),0,0,0,0,1];case"rotate":case"rotatez":var b=a.d[0].rad||0,c=a.d[0].de g||0,d=c*Math.PI/180+b;return[Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos( d),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=a.d[0],f=a.d[1],g=a.d[2],b=a.d[3].r ad||0,c=a.d[3].deg||0,d=c*Math.PI/180+b,h=e*e+f*f+g*g;if(0===h)e=1,f=0,g=0;else if(1!==h){var i=Math.sqrt(h);e/=i,f/=i,g/=i}var j=Math.sin(d/2),k=j*Math.cos(d/2 ),l=j*j;return[1-2*(f*f+g*g)*l,2*(e*f*l+g*k),2*(e*g*l-f*k),0,2*(e*f*l-g*k),1-2*( e*e+g*g)*l,2*(f*g*l+e*k),0,2*(e*g*l+f*k),2*(f*g*l-e*k),1-2*(e*e+f*f)*l,0,0,0,0,1 ];case"scale":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":ret urn[a.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,a.d[0],0 ,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,a.d[0],0,0,0,0,1];ca se"scale3d":return[a.d[0],0,0,0,0,a.d[1],0,0,0,0,a.d[2],0,0,0,0,1];case"skew":va r m=a.d[0].deg||0,n=a.d[0].rad||0,o=a.d[1].deg||0,p=a.d[1].rad||0,q=m*Math.PI/18 0+n,r=o*Math.PI/180+p;return[1,Math.tan(r),0,0,Math.tan(q),1,0,0,0,0,1,0,0,0,0,1 ];case"skewx":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0 ,0,Math.tan(d),1,0,0,0,0,1,0,0,0,0,1];case"skewy":var b=a.d[0].rad||0,c=a.d[0].d eg||0,d=c*Math.PI/180+b;return[1,Math.tan(d),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"t ranslate":var e=a.d[0].px||0,f=a.d[1].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,0 ,1];case"translatex":var e=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,0,0,1]; case"translatey":var f=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,f,0,1];case "translatez":var g=a.d[0].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,g,1];case"tra nslate3d":var e=a.d[0].px||0,f=a.d[1].px||0,g=a.d[2].px||0;return[1,0,0,0,0,1,0, 0,0,0,1,0,e,f,g,1];case"perspective":var s=a.d[0].px?-1/a.d[0].px:0;return[1,0,0 ,0,0,1,0,0,0,0,1,s,0,0,0,1];case"matrix":return[a.d[0],a.d[1],0,0,a.d[2],a.d[3], 0,0,0,0,1,0,a.d[4],a.d[5],0,1];case"matrix3d":return a.d}}function e(a){return 0 ===a.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:a.map(d).reduce(c)}function f(a){r eturn[g(e(a))]}var g=function(){function a(a){return a[0][0]*a[1][1]*a[2][2]+a[1 ][0]*a[2][1]*a[0][2]+a[2][0]*a[0][1]*a[1][2]-a[0][2]*a[1][1]*a[2][0]-a[1][2]*a[2 ][1]*a[0][0]-a[2][2]*a[0][1]*a[1][0]}function c(b){for(var c=1/a(b),d=b[0][0],e= b[0][1],f=b[0][2],g=b[1][0],h=b[1][1],i=b[1][2],j=b[2][0],k=b[2][1],l=b[2][2],m= [[(h*l-i*k)*c,(f*k-e*l)*c,(e*i-f*h)*c,0],[(i*j-g*l)*c,(d*l-f*j)*c,(f*g-d*i)*c,0] ,[(g*k-h*j)*c,(j*e-d*k)*c,(d*h-e*g)*c,0]],n=[],o=0;3>o;o++){for(var p=0,q=0;3>q; q++)p+=b[3][q]*m[q][o];n.push(p)}return n.push(1),m.push(n),m}function d(a){retu rn[[a[0][0],a[1][0],a[2][0],a[3][0]],[a[0][1],a[1][1],a[2][1],a[3][1]],[a[0][2], a[1][2],a[2][2],a[3][2]],[a[0][3],a[1][3],a[2][3],a[3][3]]]}function e(a,b){for( var c=[],d=0;4>d;d++){for(var e=0,f=0;4>f;f++)e+=a[f]*b[f][d];c.push(e)}return c }function f(a){var b=g(a);return[a[0]/b,a[1]/b,a[2]/b]}function g(a){return Math .sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2])}function h(a,b,c,d){return[c*a[0]+d*b[0],c* a[1]+d*b[1],c*a[2]+d*b[2]]}function i(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]- a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function j(j){var k=[j.slice(0,4),j.slice(4,8),j. slice(8,12),j.slice(12,16)];if(1!==k[3][3])return null;for(var l=[],m=0;4>m;m++) l.push(k[m].slice());for(var m=0;3>m;m++)l[m][3]=0;if(0===a(l))return!1;var n,o= [];if(k[0][3]||k[1][3]||k[2][3]){o.push(k[0][3]),o.push(k[1][3]),o.push(k[2][3]) ,o.push(k[3][3]);var p=c(l),q=d(p);n=e(o,q)}else n=[0,0,0,1];var r=k[3].slice(0, 3),s=[];s.push(k[0].slice(0,3));var t=[];t.push(g(s[0])),s[0]=f(s[0]);var u=[];s .push(k[1].slice(0,3)),u.push(b(s[0],s[1])),s[1]=h(s[1],s[0],1,-u[0]),t.push(g(s [1])),s[1]=f(s[1]),u[0]/=t[1],s.push(k[2].slice(0,3)),u.push(b(s[0],s[2])),s[2]= h(s[2],s[0],1,-u[1]),u.push(b(s[1],s[2])),s[2]=h(s[2],s[1],1,-u[2]),t.push(g(s[2 ])),s[2]=f(s[2]),u[1]/=t[2],u[2]/=t[2];var v=i(s[1],s[2]);if(b(s[0],v)<0)for(var m=0;3>m;m++)t[m]*=-1,s[m][0]*=-1,s[m][1]*=-1,s[m][2]*=-1;var w,x,y=s[0][0]+s[1] [1]+s[2][2]+1;return y>1e-4?(w=.5/Math.sqrt(y),x=[(s[2][1]-s[1][2])*w,(s[0][2]-s [2][0])*w,(s[1][0]-s[0][1])*w,.25/w]):s[0][0]>s[1][1]&&s[0][0]>s[2][2]?(w=2*Math .sqrt(1+s[0][0]-s[1][1]-s[2][2]),x=[.25*w,(s[0][1]+s[1][0])/w,(s[0][2]+s[2][0])/ w,(s[2][1]-s[1][2])/w]):s[1][1]>s[2][2]?(w=2*Math.sqrt(1+s[1][1]-s[0][0]-s[2][2] ),x=[(s[0][1]+s[1][0])/w,.25*w,(s[1][2]+s[2][1])/w,(s[0][2]-s[2][0])/w]):(w=2*Ma th.sqrt(1+s[2][2]-s[0][0]-s[1][1]),x=[(s[0][2]+s[2][0])/w,(s[1][2]+s[2][1])/w,.2 5*w,(s[1][0]-s[0][1])/w]),[r,t,u,x,n]}return j}();a.dot=b,a.makeMatrixDecomposit ion=f}(d,f),function(a){function b(a,b){var c=a.exec(b);return c?(c=a.ignoreCase ?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.repl ace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace(/^\s*/,"")]:void 0}functio n d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.pu sh(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g[1]}}function e(a,b){for(va r c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++)if("("==b[d])c++;else if(") "==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c= a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c} }function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c) {for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);if(!f||""==f[0] )return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""==c?d:void 0}function j(a,b,c ,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;j>k;k++){var l=b(d[k%d.l ength],e[k%e.length]);if(!l)return;g.push(l[0]),h.push(l[1]),i.push(l[2])}return [g,h,function(b){var d=b.map(function(a,b){return i[b](a)}).join(c);return a?a(d ):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h=0;h<c.length;h++)if("functi on"==typeof c[h]){var i=c[h](a[g],b[g++]);d.push(i[0]),e.push(i[1]),f.push(i[2]) }else!function(a){d.push(!1),e.push(!1),f.push(function(){return c[a]})}(h);retu rn[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+=f[c](a[c]);return b}]}a.co nsumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthesised=e,a.i gnore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(null,null),a.m ergeWrappedNestedRepeated=j,a.mergeList=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i,b);if(c)return d.inset=!0,c;var c=a.consume LengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consumeColor(b);re turn c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null},e=a.consum eRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:void 0}function c(c){var d=a.c onsumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.l engths.length<Math.max(b.lengths.length,c.lengths.length);)b.lengths.push({px:0} );for(;c.lengths.length<Math.max(b.lengths.length,c.lengths.length);)c.lengths.p ush({px:0});if(b.inset==c.inset&&!!b.color==!!c.color){for(var d,e=[],f=[[],0],g =[[],0],h=0;h<b.lengths.length;h++){var i=a.mergeDimensions(b.lengths[h],c.lengt hs[h],2==h);f[0].push(i[0]),g[0].push(i[1]),e.push(i[2])}if(b.color&&c.color){va r j=a.mergeColors(b.color,c.color);f[1]=j[0],g[1]=j[1],d=j[2]}return[f,g,functio n(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";retu rn d&&(c+=d(a[1])),c}]}}function e(b,c,d,e){function f(a){return{inset:a,color:[ 0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length ||i<e.length;i++){var j=d[i]||f(e[i].inset),k=e[i]||f(d[i].inset);g.push(j),h.pu sh(k)}return a.mergeNestedRepeated(b,c,g,h)}var f=e.bind(null,d,", ");a.addPrope rtiesHandler(c,f,["box-shadow","text-shadow"])}(d),function(a){function b(a){ret urn a.toFixed(3).replace(".000","")}function c(a,b,c){return Math.min(b,Math.max (a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a)?Number(a):void 0}f unction e(a,c){return[a,c,b]}function f(a,b){return 0!=a?h(0,1/0)(a,b):void 0}fu nction g(a,b){return[a,b,function(a){return Math.round(c(1,1/0,a))}]}function h( a,d){return function(e,f){return[e,f,function(e){return b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addPropertiesHandler(d,h(0,1/0),["bord er-image-width","line-height"]),a.addPropertiesHandler(d,h(0,1),["opacity","shap e-image-threshold"]),a.addPropertiesHandler(d,f,["flex-grow","flex-shrink"]),a.a ddPropertiesHandler(d,g,["orphans","widows"]),a.addPropertiesHandler(d,i,["z-ind ex"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToString=b}(d,f),function(a){func tion b(a,b){return"visible"==a||"visible"==b?[0,1,function(c){return 0>=c?a:c>=1 ?b:"visible"}]:void 0}a.addPropertiesHandler(String,b,["visibility"])}(d),functi on(a){function b(a){a=a.trim(),e.fillStyle="#000",e.fillStyle=a;var b=e.fillStyl e;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle){e.fillRect(0,0,1,1);var c= e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c [1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function(b){function c(a){return Mat h.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++)b[d]=Math.round(c(b[d]/b[3] ));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");d.width=d.h eight=1;var e=d.getContext("2d");a.addPropertiesHandler(b,c,["background-color", "border-bottom-color","border-left-color","border-right-color","border-top-color ","color","outline-color","text-decoration-color"]),a.consumeColor=a.consumePare nthesised.bind(null,b),a.mergeColors=c 15 !function(a,b){var c={},d={},e={},f=null;!function(a,b){function c(a){if("number "==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}function d(){thi s._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._itera tions=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._eas ing="linear"}function e(b,c,e){var f=new d;return c&&(f.fill="both",f.duration=" auto"),"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).fo rEach(function(c){if("auto"!=b[c]){if(("number"==typeof f[c]||"duration"==c)&&(" number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==t.indexOf(b[c]))retu rn;if("direction"==c&&-1==u.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}function f(a){return "number"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function g(b,c){b=a .numericTimingToObject(b);var d=e(b,c);return d._easingFunction=j(d.easing),d}fu nction h(a,b,c,d){return 0>a||a>1||0>c||c>1?D:function(e){function f(a,b,c){retu rn 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(0==e||1==e)return e;for(var g=0,h=1; ;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}} function i(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c% d}}function j(a){z||(z=document.createElement("div").style),z.animationTimingFun ction="",z.animationTimingFunction=a,a=z.animationTimingFunction;var b=B.exec(a) ;if(b)return h.apply(this,b.slice(1).map(Number));var c=C.exec(a);if(c)return i( Number(c[1]),{start:v,middle:w,end:x}[c[2]]);var d=y[a];return d?d:D}function k( a){return Math.abs(l(a)/a.playbackRate)}function l(a){return a.duration*a.iterat ions}function m(a,b,c){return null==b?E:b<c.delay?F:b>=c.delay+a?G:H}function n( a,b,c,d,e){switch(d){case F:return"backwards"==b||"both"==b?0:null;case H:return c-e;case G:return"forwards"==b||"both"==b?a:null;case E:return null}}function o (a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playbackRate+c}function p(a,b,c,d,e){ return c===1/0||c===-(1/0)||c-d==b&&e.iterations&&(e.iterations+e.iterationStart )%1==0?a:c%a}function q(a,b,c,d){return 0===c?0:b==a?d.iterationStart+d.iteratio ns-1:Math.floor(c/a)}function r(a,b,c,d){var e=a%2>=1,f="normal"==d.direction||d .direction==(e?"alternate-reverse":"alternate"),g=f?c:b-c,h=g/b;return b*d._easi ngFunction(h)}function s(a,b,c){var d=m(a,b,c),e=n(a,c.fill,b,d,c.delay);if(null ===e)return null;if(0===a)return d===F?0:1;var f=c.iterationStart*c.duration,g=o (a,e,f,c),h=p(c.duration,l(c),g,f,c),i=q(c.duration,h,g,c);return r(i,c.duration ,h,c)/c.duration}var t="backwards|forwards|both|none".split("|"),u="reverse|alte rnate|alternate-reverse".split("|");d.prototype={_setMember:function(b,c){this[" _"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing=a.nor malizeTimingInput(a.normalizeTimingInput(this._effect._timingInput)),this._effec t.activeDuration=a.calculateActiveDuration(this._effect._timing),this._effect._a nimation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRa te(){return this._playbackRate},set delay(a){this._setMember("delay",a)},get del ay(){return this._delay},set endDelay(a){this._setMember("endDelay",a)},get endD elay(){return this._endDelay},set fill(a){this._setMember("fill",a)},get fill(){ return this._fill},set iterationStart(a){this._setMember("iterationStart",a)},ge t iterationStart(){return this._iterationStart},set duration(a){this._setMember( "duration",a)},get duration(){return this._duration},set direction(a){this._setM ember("direction",a)},get direction(){return this._direction},set easing(a){this ._setMember("easing",a)},get easing(){return this._easing},set iterations(a){thi s._setMember("iterations",a)},get iterations(){return this._iterations}};var v=1 ,w=.5,x=0,y={ease:h(.25,.1,.25,1),"ease-in":h(.42,0,1,1),"ease-out":h(0,0,.58,1) ,"ease-in-out":h(.42,0,.58,1),"step-start":i(1,v),"step-middle":i(1,w),"step-end ":i(1,x)},z=null,A="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",B=new RegExp("cubic-bezi er\\("+A+","+A+","+A+","+A+"\\)"),C=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s* \)/,D=function(a){return a},E=0,F=1,G=2,H=3;a.cloneTimingInput=c,a.makeTiming=e, a.numericTimingToObject=f,a.normalizeTimingInput=g,a.calculateActiveDuration=k,a .calculateTimeFraction=s,a.calculatePhase=m,a.toTimingFunction=j}(c,f),function( a,b){function c(a,b){return a in j?j[a][b]||b:b}function d(a,b,d){var e=g[a];if( e){h.style[a]=b;for(var f in e){var i=e[f],j=h.style[i];d[i]=c(i,j)}}else d[a]=c (a,b)}function e(a){var b=[];for(var c in a)if(!(c in["easing","offset","composi te"])){var d=a[c];Array.isArray(d)||(d=[d]);for(var e,f=d.length,g=0;f>g;g++)e={ },"offset"in a?e.offset=a.offset:1==f?e.offset=1:e.offset=g/(f-1),"easing"in a&& (e.easing=a.easing),"composite"in a&&(e.composite=a.composite),e[c]=d[g],b.push( e)}return b.sort(function(a,b){return a.offset-b.offset}),b}function f(a){functi on b(){var a=c.length;null==c[a-1].offset&&(c[a-1].offset=1),a>1&&null==c[0].off set&&(c[0].offset=0);for(var b=0,d=c[0].offset,e=1;a>e;e++){var f=c[e].offset;if (null!=f){for(var g=1;e-b>g;g++)c[b+g].offset=d+(f-d)*g/(e-b);b=e,d=f}}}if(null= =a)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&a[Symbol.itera tor]&&(a=Array.from(a)),Array.isArray(a)||(a=e(a));for(var c=a.map(function(a){v ar b={};for(var c in a){var e=a[c];if("offset"==c){if(null!=e&&(e=Number(e),!isF inite(e)))throw new TypeError("keyframe offsets must be numbers.")}else{if("comp osite"==c)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",mes sage:"add compositing is not supported"};e=""+e}d(c,e,b)}return void 0==b.offset &&(b.offset=null),b}),f=!0,g=-(1/0),h=0;h<c.length;h++){var i=c[h].offset;if(nul l!=i){if(g>i)throw{code:DOMException.INVALID_MODIFICATION_ERR,name:"InvalidModif icationError",message:"Keyframes are not loosely sorted by offset. Sort or speci fy offsets."};g=i}else f=!1}return c=c.filter(function(a){return a.offset>=0&&a. offset<=1}),f||b(),c}var g={background:["backgroundImage","backgroundPosition"," backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","ba ckgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","bord erTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBott omColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftSt yle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","b orderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBotto mColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","bord erLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","border BottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","bo rderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle" ,"borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBotto mWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fon tFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin: ["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor", "outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBott om","paddingLeft"]},h=document.createElementNS("http://www.w3.org/1999/xhtml","d iv"),i={thin:"1px",medium:"3px",thick:"5px"},j={borderBottomWidth:i,borderLeftWi dth:i,borderRightWidth:i,borderTopWidth:i,fontSize:{"xx-small":"60%","x-small":" 75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"}, fontWeight:{normal:"400",bold:"700"},outlineWidth:i,textShadow:{none:"0px 0px 0p x transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.convertToArray Form=e,a.normalizeKeyframes=f}(c,f),function(a){var b={};a.isDeprecated=function (a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getMon th()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated and wi ll stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecated=funct ion(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Error(b+" " +f+" no longer supported. "+d)}}(c),function(){if(document.documentElement.anima te){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentT ime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").for Each(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b,c){function d( a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easing"!=d &&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][d]};b[ d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!=g[g.le ngth-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError ",message:"Partial keyframes are not supported"}}return b}function e(c){var d=[] ;for(var e in c)for(var f=c[e],g=0;g<f.length-1;g++){var h=f[g].offset,i=f[g+1]. offset,j=f[g].value,k=f[g+1].value,l=f[g].easing;h==i&&(1==i?j=k:k=j),d.push({st artTime:h,endTime:i,easing:a.toTimingFunction(l?l:"linear"),property:e,interpola tion:b.propertyInterpolation(e,j,k)})}return d.sort(function(a,b){return a.start Time-b.startTime}),d}b.convertEffectInput=function(c){var f=a.normalizeKeyframes (c),g=d(f),h=e(g);return function(a,c){if(null!=c)h.filter(function(a){return 0> =c&&0==a.startTime||c>=1&&1==a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(f unction(d){var e=c-d.startTime,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b. apply(a,d.property,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easin g"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d,f),function(a,b,c){function d(a){retu rn a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function e(a,b,c){h[ c]=h[c]||[],h[c].push([a,b])}function f(a,b,c){for(var f=0;f<c.length;f++){var g =c[f];e(a,b,d(g))}}function g(c,e,f){var g=c;/-/.test(c)&&!a.isDeprecated("Hyphe nated property names","2016-03-22","Use camelCase instead.",!0)&&(g=d(c)),"initi al"!=e&&"initial"!=f||("initial"==e&&(e=i[g]),"initial"==f&&(f=i[g]));for(var j= e==f?[]:h[g],k=0;j&&k<j.length;k++){var l=j[k][0](e),m=j[k][0](f);if(void 0!==l& &void 0!==m){var n=j[k][1](l,m);if(n){var o=b.Interpolation.apply(null,n);return function(a){return 0==a?e:1==a?f:o(a)}}}}return b.Interpolation(!1,!0,function( a){return a?f:e})}var h={};b.addPropertiesHandler=f;var i={backgroundColor:"tran sparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBotto mLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLe ftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",bor derRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopL eftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",cl ip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",hei ght:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0p x",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth: "none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlin eOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRi ght:"0px",paddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",w idth:"auto",wordSpacing:"normal",zIndex:"auto"};b.propertyInterpolation=g}(c,d,f ),function(a,b,c){function d(b){var c=a.calculateActiveDuration(b),d=function(d) {return a.calculateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endD elay,d._isCurrent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActi ve||e===PhaseBefore},d}b.KeyframeEffect=function(c,e,f,g){var h,i=d(a.normalizeT imingInput(f)),j=b.convertEffectInput(e),k=function(){j(c,h)};return k._update=f unction(a){return h=i(a),null!==h},k._clear=function(){j(c,null)},k._hasSameTarg et=function(a){return c===a},k._isCurrent=i._isCurrent,k._totalDuration=i._total Duration,k._id=g,k},b.NullEffect=function(a){var b=function(){a&&(a(),a=null)};r eturn b._update=function(){return null},b._totalDuration=0,b._isCurrent=function (){return!1},b._hasSameTarget=function(){return!1},b}}(c,d,f),function(a,b){func tion c(a,b,c){c.enumerable=!0,c.configurable=!0,Object.defineProperty(a,b,c)}fun ction d(a){this._surrogateStyle=document.createElementNS("http://www.w3.org/1999 /xhtml","div").style,this._style=a.style,this._length=0,this._isAnimatedProperty ={};for(var b=0;b<this._style.length;b++){var c=this._style[b];this._surrogateSt yle[c]=this._style[c]}this._updateIndices()}function e(a){if(!a._webAnimationsPa tchedStyle){var b=new d(a);try{c(a,"style",{get:function(){return b}})}catch(e){ a.style._set=function(b,c){a.style[b]=c},a.style._clear=function(b){a.style[b]=" "}}a._webAnimationsPatchedStyle=a.style}}var f={cssText:1,length:1,parentRule:1} ,g={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,remove Property:1,setProperty:1},h={removeProperty:1,setProperty:1};d.prototype={get cs sText(){return this._surrogateStyle.cssText},set cssText(a){for(var b={},c=0;c<t his._surrogateStyle.length;c++)b[this._surrogateStyle[c]]=!0;this._surrogateStyl e.cssText=a,this._updateIndices();for(var c=0;c<this._surrogateStyle.length;c++) b[this._surrogateStyle[c]]=!0;for(var d in b)this._isAnimatedProperty[d]||this._ style.setProperty(d,this._surrogateStyle.getPropertyValue(d))},get length(){retu rn this._surrogateStyle.length},get parentRule(){return this._style.parentRule}, _updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object. defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(a){ return function(){return this._surrogateStyle[a]}}(this._length)}),this._length+ +;for(;this._length>this._surrogateStyle.length;)this._length--,Object.definePro perty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:func tion(a,b){this._style[a]=b,this._isAnimatedProperty[a]=!0},_clear:function(a){th is._style[a]=this._surrogateStyle[a],delete this._isAnimatedProperty[a]}};for(va r i in g)d.prototype[i]=function(a,b){return function(){var c=this._surrogateSty le[a].apply(this._surrogateStyle,arguments);return b&&(this._isAnimatedProperty[ arguments[0]]||this._style[a].apply(this._style,arguments),this._updateIndices() ),c}}(i,i in h);for(var j in document.documentElement.style)j in f||j in g||!fun ction(a){c(d.prototype,a,{get:function(){return this._surrogateStyle[a]},set:fun ction(b){this._surrogateStyle[a]=b,this._updateIndices(),this._isAnimatedPropert y[a]||(this._style[a]=b)}})}(j);a.apply=function(b,c,d){e(b),b.style._set(a.prop ertyName(c),d)},a.clear=function(b,c){b._webAnimationsPatchedStyle&&b.style._cle ar(a.propertyName(c))}}(d,f),function(a){window.Element.prototype.animate=functi on(b,c){var d="";return c&&c.id&&(d=c.id),a.timeline._play(a.KeyframeEffect(this ,b,c,d))}}(d),function(a,b){function c(a,b,d){if("number"==typeof a&&"number"==t ypeof b)return a*(1-d)+b*d;if("boolean"==typeof a&&"boolean"==typeof b)return.5> d?a:b;if(a.length==b.length){for(var e=[],f=0;f<a.length;f++)e.push(c(a[f],b[f], d));return e}throw"Mismatched interpolation arguments "+a+":"+b}a.Interpolation= function(a,b,d){return function(e){return d(c(a,b,e))}}}(d,f),function(a,b){func tion c(a,b,c){return Math.max(Math.min(a,c),b)}function d(b,d,e){var f=a.dot(b,d );f=c(f,-1,1);var g=[];if(1===f)g=b;else for(var h=Math.acos(f),i=1*Math.sin(e*h )/Math.sqrt(1-f*f),j=0;4>j;j++)g.push(b[j]*(Math.cos(e*h)-f*i)+d[j]*i);return g} var e=function(){function a(a,b){for(var c=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0 ,0]],d=0;4>d;d++)for(var e=0;4>e;e++)for(var f=0;4>f;f++)c[d][e]+=b[d][f]*a[f][e ];return c}function b(a){return 0==a[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&& 0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]}function c(c,d,e,f,g){for(var h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],i=0;4>i;i++)h[i ][3]=g[i];for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[3][i]+=c[j]*h[j][i];var k=f[ 0],l=f[1],m=f[2],n=f[3],o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[0][0]=1-2* (l*l+m*m),o[0][1]=2*(k*l-m*n),o[0][2]=2*(k*m+l*n),o[1][0]=2*(k*l+m*n),o[1][1]=1- 2*(k*k+m*m),o[1][2]=2*(l*m-k*n),o[2][0]=2*(k*m-l*n),o[2][1]=2*(l*m+k*n),o[2][2]= 1-2*(k*k+l*l),h=a(h,o);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];e[2]&&(p[ 2][1]=e[2],h=a(h,p)),e[1]&&(p[2][1]=0,p[2][0]=e[0],h=a(h,p)),e[0]&&(p[2][0]=0,p[ 1][0]=e[0],h=a(h,p));for(var i=0;3>i;i++)for(var j=0;3>j;j++)h[i][j]*=d[i];retur n b(h)?[h[0][0],h[0][1],h[1][0],h[1][1],h[3][0],h[3][1]]:h[0].concat(h[1],h[2],h [3])}return c}();a.composeMatrix=e,a.quat=d}(d,f),function(a,b,c){a.sequenceNumb er=0;var d=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c, this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this. defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};b .Animation=function(b){this.id="",b&&b._id&&(this.id=b._id),this._sequenceNumber =a.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,thi s._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,t his._finishHandlers=[],this._effect=b,this._inEffect=this._effect._update(0),thi s._idle=!0,this._currentTimePending=!1},b.Animation.prototype={_ensureAlive:func tion(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._up date(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline| |!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,b.timeline._animation s.push(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._curre ntTime=a,this._isFinished&&!b&&(this._currentTime=this._playbackRate>0?this._tot alDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._c urrentTimePending?null:this._currentTime},set currentTime(a){a=+a,isNaN(a)||(b.r estart(),this._paused||null==this._startTime||(this._startTime=this._timeline.cu rrentTime-a/this._playbackRate),this._currentTimePending=!1,this._currentTime!=a &&(this._tickCurrentTime(a,!0),b.invalidateEffects()))},get startTime(){return t his._startTime},set startTime(a){a=+a,isNaN(a)||this._paused||this._idle||(this. _startTime=a,this._tickCurrentTime((this._timeline.currentTime-this._startTime)* this.playbackRate),b.invalidateEffects())},get playbackRate(){return this._playb ackRate},set playbackRate(a){if(a!=this._playbackRate){var b=this.currentTime;th is._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this.p layState&&this.play(),null!=b&&(this.currentTime=b)}},get _isFinished(){return!t his._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._ playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect. _totalDuration},get playState(){return this._idle?"idle":null==this._startTime&& !this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._pa used?"paused":this._isFinished?"finished":"running"},play:function(){this._pause d=!1,(this._isFinished||this._idle)&&(this._currentTime=this._playbackRate>0?0:t his._totalDuration,this._startTime=null),this._finishedFlag=!1,this._idle=!1,thi s._ensureAlive(),b.invalidateEffects()},pause:function(){this._isFinished||this. _paused||this._idle||(this._currentTimePending=!0),this._startTime=null,this._pa used=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?th is._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._c urrentTimePending=!1,b.invalidateEffects())},cancel:function(){this._inEffect&&( this._inEffect=!1,this._idle=!0,this._finishedFlag=!0,this.currentTime=0,this._s tartTime=null,this._effect._update(null),b.invalidateEffects())},reverse:functio n(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){"function" ==typeof b&&"finish"==a&&this._finishHandlers.push(b)},removeEventListener:funct ion(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finis hHandlers.splice(c,1)}},_fireEvents:function(a){if(this._isFinished){if(!this._f inishedFlag){var b=new d(this,this._currentTime,a),c=this._finishHandlers.concat (this.onfinish?[this.onfinish]:[]);setTimeout(function(){c.forEach(function(a){a .call(b.target,b)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick :function(a,b){this._idle||this._paused||(null==this._startTime?b&&(this.startTi me=a-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTim e((a-this._startTime)*this.playbackRate)),b&&(this._currentTimePending=!1,this._ fireEvents(a))},get _needsTick(){return this.playState in{pending:1,running:1}|| !this._finishedFlag}}}(c,d,f),function(a,b,c){function d(a){var b=j;j=[],a<p.cur rentTime&&(a=p.currentTime),h(a,!0),b.forEach(function(b){b[1](a)}),g(),l=void 0 }function e(a,b){return a._sequenceNumber-b._sequenceNumber}function f(){this._a nimations=[],this.currentTime=window.performance&&performance.now?performance.no w():0}function g(){o.forEach(function(a){a()}),o.length=0}function h(a,c){n=!1;v ar d=b.timeline;d.currentTime=a,d._animations.sort(e),m=!1;var f=d._animations;d ._animations=[];var g=[],h=[];f=f.filter(function(b){b._tick(a,c),b._inEffect?h. push(b._effect):g.push(b._effect),b._needsTick&&(m=!0);var d=b._inEffect||b._nee dsTick;return b._inTimeline=d,d}),o.push.apply(o,g),o.push.apply(o,h),d._animati ons.push.apply(d._animations,f),m&&requestAnimationFrame(function(){})}var i=win dow.requestAnimationFrame,j=[],k=0;window.requestAnimationFrame=function(a){var b=k++;return 0==j.length&&i(d),j.push([b,a]),b},window.cancelAnimationFrame=func tion(a){j.forEach(function(b){b[0]==a&&(b[1]=function(){})})},f.prototype={_play :function(c){c._timing=a.normalizeTimingInput(c.timing);var d=new b.Animation(c) ;return d._idle=!1,d._timeline=this,this._animations.push(d),b.restart(),b.inval idateEffects(),d}};var l=void 0,m=!1,n=!1;b.restart=function(){return m||(m=!0,r equestAnimationFrame(function(){}),n=!0),n},b.invalidateEffects=function(){h(b.t imeline.currentTime,!1),g()};var o=[],p=new f;b.timeline=p}(c,d,f),function(a,b) {function c(a,b){for(var c=0,d=0;d<a.length;d++)c+=a[d]*b[d];return c}function d (a,b){return[a[0]*b[0]+a[4]*b[1]+a[8]*b[2]+a[12]*b[3],a[1]*b[0]+a[5]*b[1]+a[9]*b [2]+a[13]*b[3],a[2]*b[0]+a[6]*b[1]+a[10]*b[2]+a[14]*b[3],a[3]*b[0]+a[7]*b[1]+a[1 1]*b[2]+a[15]*b[3],a[0]*b[4]+a[4]*b[5]+a[8]*b[6]+a[12]*b[7],a[1]*b[4]+a[5]*b[5]+ a[9]*b[6]+a[13]*b[7],a[2]*b[4]+a[6]*b[5]+a[10]*b[6]+a[14]*b[7],a[3]*b[4]+a[7]*b[ 5]+a[11]*b[6]+a[15]*b[7],a[0]*b[8]+a[4]*b[9]+a[8]*b[10]+a[12]*b[11],a[1]*b[8]+a[ 5]*b[9]+a[9]*b[10]+a[13]*b[11],a[2]*b[8]+a[6]*b[9]+a[10]*b[10]+a[14]*b[11],a[3]* b[8]+a[7]*b[9]+a[11]*b[10]+a[15]*b[11],a[0]*b[12]+a[4]*b[13]+a[8]*b[14]+a[12]*b[ 15],a[1]*b[12]+a[5]*b[13]+a[9]*b[14]+a[13]*b[15],a[2]*b[12]+a[6]*b[13]+a[10]*b[1 4]+a[14]*b[15],a[3]*b[12]+a[7]*b[13]+a[11]*b[14]+a[15]*b[15]]}function e(a){swit ch(a.t){case"rotatex":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;retu rn[1,0,0,0,0,Math.cos(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1];cas e"rotatey":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.cos (d),0,-Math.sin(d),0,0,1,0,0,Math.sin(d),0,Math.cos(d),0,0,0,0,1];case"rotate":c ase"rotatez":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[Math.c os(d),Math.sin(d),0,0,-Math.sin(d),Math.cos(d),0,0,0,0,1,0,0,0,0,1];case"rotate3 d":var e=a.d[0],f=a.d[1],g=a.d[2],b=a.d[3].rad||0,c=a.d[3].deg||0,d=c*Math.PI/18 0+b,h=e*e+f*f+g*g;if(0===h)e=1,f=0,g=0;else if(1!==h){var i=Math.sqrt(h);e/=i,f/ =i,g/=i}var j=Math.sin(d/2),k=j*Math.cos(d/2),l=j*j;return[1-2*(f*f+g*g)*l,2*(e* f*l+g*k),2*(e*g*l-f*k),0,2*(e*f*l-g*k),1-2*(e*e+g*g)*l,2*(f*g*l+e*k),0,2*(e*g*l+ f*k),2*(f*g*l-e*k),1-2*(e*e+f*f)*l,0,0,0,0,1];case"scale":return[a.d[0],0,0,0,0, a.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[a.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0 ,0,1];case"scaley":return[1,0,0,0,0,a.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":ret urn[1,0,0,0,0,1,0,0,0,0,a.d[0],0,0,0,0,1];case"scale3d":return[a.d[0],0,0,0,0,a. d[1],0,0,0,0,a.d[2],0,0,0,0,1];case"skew":var m=a.d[0].deg||0,n=a.d[0].rad||0,o= a.d[1].deg||0,p=a.d[1].rad||0,q=m*Math.PI/180+n,r=o*Math.PI/180+p;return[1,Math. tan(r),0,0,Math.tan(q),1,0,0,0,0,1,0,0,0,0,1];case"skewx":var b=a.d[0].rad||0,c= a.d[0].deg||0,d=c*Math.PI/180+b;return[1,0,0,0,Math.tan(d),1,0,0,0,0,1,0,0,0,0,1 ];case"skewy":var b=a.d[0].rad||0,c=a.d[0].deg||0,d=c*Math.PI/180+b;return[1,Mat h.tan(d),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":var e=a.d[0].px||0,f=a.d[1 ].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,0,1];case"translatex":var e=a.d[0].px ||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,0,0,1];case"translatey":var f=a.d[0].px||0; return[1,0,0,0,0,1,0,0,0,0,1,0,0,f,0,1];case"translatez":var g=a.d[0].px||0;retu rn[1,0,0,0,0,1,0,0,0,0,1,0,0,0,g,1];case"translate3d":var e=a.d[0].px||0,f=a.d[1 ].px||0,g=a.d[2].px||0;return[1,0,0,0,0,1,0,0,0,0,1,0,e,f,g,1];case"perspective" :var s=a.d[0].px?-1/a.d[0].px:0;return[1,0,0,0,0,1,0,0,0,0,1,s,0,0,0,1];case"mat rix":return[a.d[0],a.d[1],0,0,a.d[2],a.d[3],0,0,0,0,1,0,a.d[4],a.d[5],0,1];case" matrix3d":return a.d}}function f(a){return 0===a.length?[1,0,0,0,0,1,0,0,0,0,1,0 ,0,0,0,1]:a.map(e).reduce(d)}function g(a){return[h(f(a))]}var h=function(){func tion a(a){return a[0][0]*a[1][1]*a[2][2]+a[1][0]*a[2][1]*a[0][2]+a[2][0]*a[0][1] *a[1][2]-a[0][2]*a[1][1]*a[2][0]-a[1][2]*a[2][1]*a[0][0]-a[2][2]*a[0][1]*a[1][0] }function b(b){for(var c=1/a(b),d=b[0][0],e=b[0][1],f=b[0][2],g=b[1][0],h=b[1][1 ],i=b[1][2],j=b[2][0],k=b[2][1],l=b[2][2],m=[[(h*l-i*k)*c,(f*k-e*l)*c,(e*i-f*h)* c,0],[(i*j-g*l)*c,(d*l-f*j)*c,(f*g-d*i)*c,0],[(g*k-h*j)*c,(j*e-d*k)*c,(d*h-e*g)* c,0]],n=[],o=0;3>o;o++){for(var p=0,q=0;3>q;q++)p+=b[3][q]*m[q][o];n.push(p)}ret urn n.push(1),m.push(n),m}function d(a){return[[a[0][0],a[1][0],a[2][0],a[3][0]] ,[a[0][1],a[1][1],a[2][1],a[3][1]],[a[0][2],a[1][2],a[2][2],a[3][2]],[a[0][3],a[ 1][3],a[2][3],a[3][3]]]}function e(a,b){for(var c=[],d=0;4>d;d++){for(var e=0,f= 0;4>f;f++)e+=a[f]*b[f][d];c.push(e)}return c}function f(a){var b=g(a);return[a[0 ]/b,a[1]/b,a[2]/b]}function g(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]) }function h(a,b,c,d){return[c*a[0]+d*b[0],c*a[1]+d*b[1],c*a[2]+d*b[2]]}function i(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}funct ion j(j){var k=[j.slice(0,4),j.slice(4,8),j.slice(8,12),j.slice(12,16)];if(1!==k [3][3])return null;for(var l=[],m=0;4>m;m++)l.push(k[m].slice());for(var m=0;3>m ;m++)l[m][3]=0;if(0===a(l))return!1;var n,o=[];if(k[0][3]||k[1][3]||k[2][3]){o.p ush(k[0][3]),o.push(k[1][3]),o.push(k[2][3]),o.push(k[3][3]);var p=b(l),q=d(p);n =e(o,q)}else n=[0,0,0,1];var r=k[3].slice(0,3),s=[];s.push(k[0].slice(0,3));var t=[];t.push(g(s[0])),s[0]=f(s[0]);var u=[];s.push(k[1].slice(0,3)),u.push(c(s[0] ,s[1])),s[1]=h(s[1],s[0],1,-u[0]),t.push(g(s[1])),s[1]=f(s[1]),u[0]/=t[1],s.push (k[2].slice(0,3)),u.push(c(s[0],s[2])),s[2]=h(s[2],s[0],1,-u[1]),u.push(c(s[1],s [2])),s[2]=h(s[2],s[1],1,-u[2]),t.push(g(s[2])),s[2]=f(s[2]),u[1]/=t[2],u[2]/=t[ 2];var v=i(s[1],s[2]);if(c(s[0],v)<0)for(var m=0;3>m;m++)t[m]*=-1,s[m][0]*=-1,s[ m][1]*=-1,s[m][2]*=-1;var w,x,y=s[0][0]+s[1][1]+s[2][2]+1;return y>1e-4?(w=.5/Ma th.sqrt(y),x=[(s[2][1]-s[1][2])*w,(s[0][2]-s[2][0])*w,(s[1][0]-s[0][1])*w,.25/w] ):s[0][0]>s[1][1]&&s[0][0]>s[2][2]?(w=2*Math.sqrt(1+s[0][0]-s[1][1]-s[2][2]),x=[ .25*w,(s[0][1]+s[1][0])/w,(s[0][2]+s[2][0])/w,(s[2][1]-s[1][2])/w]):s[1][1]>s[2] [2]?(w=2*Math.sqrt(1+s[1][1]-s[0][0]-s[2][2]),x=[(s[0][1]+s[1][0])/w,.25*w,(s[1] [2]+s[2][1])/w,(s[0][2]-s[2][0])/w]):(w=2*Math.sqrt(1+s[2][2]-s[0][0]-s[1][1]),x =[(s[0][2]+s[2][0])/w,(s[1][2]+s[2][1])/w,.25*w,(s[1][0]-s[0][1])/w]),[r,t,u,x,n ]}return j}();a.dot=c,a.makeMatrixDecomposition=g}(d,f),function(a){function b(a ,b){var c=a.exec(b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr (c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[ c[0],c[1].replace(/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1 ])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test( b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break; var e=a(b.substr(0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){f or(var c=a,d=b;c&&d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return funct ion(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){ var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){va r f=a.consumeTrimmed(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]), c=f[1]}return""==c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.l ength,e.length),k=0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g .push(l[0]),h.push(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(functio n(a,b){return i[b](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[] ,e=[],f=[],g=0,h=0;h<c.length;h++)if("function"==typeof c[h]){var i=c[h](a[g],b[ g++]);d.push(i[0]),e.push(i[1]),f.push(i[2])}else!function(a){d.push(!1),e.push( !1),f.push(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0; c<a.length;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.co nsumeRepeated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i ,a.mergeNestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeL ist=k}(d),function(a){function b(b){function c(b){var c=a.consumeToken(/^inset/i ,b);if(c)return d.inset=!0,c;var c=a.consumeLengthOrPercent(b);if(c)return d.len gths.push(c[0]),c;var c=a.consumeColor(b);return c?(d.color=c[0],c):void 0}var d ={inset:!1,lengths:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].le ngth?[d,e[1]]:void 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&" "==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.len gth,c.lengths.length);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.l engths.length,c.lengths.length);)c.lengths.push({px:0});if(b.inset==c.inset&&!!b .color==!!c.color){for(var d,e=[],f=[[],0],g=[[],0],h=0;h<b.lengths.length;h++){ var i=a.mergeDimensions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].pus h(i[1]),e.push(i[2])}if(b.color&&c.color){var j=a.mergeColors(b.color,c.color);f [1]=j[0],g[1]=j[1],d=j[2]}return[f,g,function(a){for(var c=b.inset?"inset ":" ", f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";return d&&(c+=d(a[1])),c}]}}function e(b ,c,d,e){function f(a){return{inset:a,color:[0,0,0,0],lengths:[{px:0},{px:0},{px: 0},{px:0}]}}for(var g=[],h=[],i=0;i<d.length||i<e.length;i++){var j=d[i]||f(e[i] .inset),k=e[i]||f(d[i].inset);g.push(j),h.push(k)}return a.mergeNestedRepeated(b ,c,g,h)}var f=e.bind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text -shadow"])}(d),function(a,b){function c(a){return a.toFixed(3).replace(".000","" )}function d(a,b,c){return Math.min(b,Math.max(a,c))}function e(a){return/^\s*[- +]?(\d*\.)?\d+\s*$/.test(a)?Number(a):void 0}function f(a,b){return[a,b,c]}funct ion g(a,b){return 0!=a?i(0,1/0)(a,b):void 0}function h(a,b){return[a,b,function( a){return Math.round(d(1,1/0,a))}]}function i(a,b){return function(e,f){return[e ,f,function(e){return c(d(a,b,e))}]}}function j(a,b){return[a,b,Math.round]}a.cl amp=d,a.addPropertiesHandler(e,i(0,1/0),["border-image-width","line-height"]),a. addPropertiesHandler(e,i(0,1),["opacity","shape-image-threshold"]),a.addProperti esHandler(e,g,["flex-grow","flex-shrink"]),a.addPropertiesHandler(e,h,["orphans" ,"widows"]),a.addPropertiesHandler(e,j,["z-index"]),a.parseNumber=e,a.mergeNumbe rs=f,a.numberToString=c}(d,f),function(a,b){function c(a,b){return"visible"==a|| "visible"==b?[0,1,function(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPrope rtiesHandler(String,c,["visibility"])}(d),function(a,b){function c(a){a=a.trim() ,f.fillStyle="#000",f.fillStyle=a;var b=f.fillStyle;if(f.fillStyle="#fff",f.fill Style=a,b==f.fillStyle){f.fillRect(0,0,1,1);var c=f.getImageData(0,0,1,1).data;f .clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function d(b, c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[ 3])for(var d=0;3>d;d++)b[d]=Math.round(c(b[d]/b[3]));
16 }(d,f),function(a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".se arch(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");v ar c={};b=b.replace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.sour ce+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").replace(new RegExp("N"+d,"g"),"D").r eplace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*/]N/g,/(N|D)O\1/g ,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)?(e=e.replace(f[g],"$1"),g=0):g++;if( "D"==e){for(var h in c){var i=eval(b.replace(new RegExp("U"+h,"g"),"").replace(n ew RegExp(d,"g"),"*0"));if(!isFinite(i))return;c[h]=i}return c}}}function d(a,b) {return e(a,b,!0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f .indexOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(fun ction(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b .length&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.le ngth>1?"calc("+c+")":c}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc", g=c.bind(null,new RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind( null,/deg|rad|grad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLen gthOrPercent=a.consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimension s=e;var j=a.consumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j, /^/),l=a.consumeRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=funct ion(a){var b=l(a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(v oid 0,d," "),o=a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePa ir=n,a.addPropertiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d, ["border-bottom-width","border-image-width","border-left-width","border-right-wi dth","border-top-width","flex-basis","font-size","height","line-height","max-hei ght","max-width","outline-width","width"]),a.addPropertiesHandler(h,e,["border-b ottom-left-radius","border-bottom-right-radius","border-top-left-radius","border -top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left ","margin-right","margin-top","min-height","min-width","outline-offset","padding -bottom","padding-left","padding-right","padding-top","perspective","right","sha pe-margin","text-indent","top","vertical-align","word-spacing"])}(d,f),function( a){function b(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}f unction c(c){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a. ignore(a.consumeToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ig nore(a.consumeToken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}f unction d(b,c){return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("aut o"==e)return"auto";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimen sions(b,c)}function e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated. bind(null,e,d,", ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["cli p"])}(d,f),function(a){function b(a){return function(b){var c=0;return a.map(fun ction(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.to LowerCase().trim(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f= 0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if( !h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[], o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim( )?l:a.parseAngle(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r .toUpperCase()](q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t: g,d:n}),d.lastIndex==b.length)return e}}function e(a){return a.toFixed(6).replac e(".000000","")}function f(b,c){if(b.decompositionPair!==c){b.decompositionPair= c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decomposition Pair=b;var f=a.makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[! 0],function(a){return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function (b){var c=a.quat(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]), h=g.map(e).join(",");return h}])}function g(a){return a.replace(/[xy]/,"")}funct ion h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatri xDecomposition&&!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(v ar i=0;i<b.length;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push ({t:j,d:k.map(function(a){if("number"==typeof a)return l;var b={};for(var c in a )b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"= =b||("matrix"==a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];i f(b.length!=c.length){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[ r[2]]]]}else for(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i] .d,w=m[s],x=m[t];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.p ush(r[1]),q.push(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g (t))j=g(s),u=w[2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;va r r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1] (v)}for(var y=[],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mer geNumbers:a.mergeDimensions,r=C(u[B],v[B]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.pu sh(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){retu rn a.map(function(a,b){var c=a.map(function(a,c){return q[b][1][c](a)}).join("," );return"matrix"==q[b][0]&&16==c.split(",").length&&(q[b][0]="matrix3d"),q[b][0] +"("+c+")"}).join(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j, 0,0,j,j,0,0,0,0,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rot atex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale :["Nn",b([j,j,1]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([ 1,j])],scalez:["N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",n ull,b([j,l])],skewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex :["T",b([j,k,k]),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L", b([k,k,j])],translate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d, f),function(a){function b(a){var b=Number(a);return isNaN(b)||100>b||b>900||b%10 0!==0?void 0:b}function c(b){return b=100*Math.round(b/100),b=a.clamp(100,900,b) ,400===b?"normal":700===b?"bold":String(b)}function d(a,b){return[a,b,c]}a.addPr opertiesHandler(b,d,["font-weight"])}(d),function(a){function b(a){var b={};for( var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|cente r|right|top|bottom)\b/i,b)||a.consumeLengthOrPercent(b)}function d(b,d){var e=a. consumeRepeated(c,/^/,d);if(e&&""==e[1]){var f=e[0];if(f[0]=f[0]||"center",f[1]= f[1]||"center",3==b&&(f[2]=f[2]||{px:0}),f.length==b){if(/top|bottom/.test(f[0]) ||/left|right/.test(f[1])){var h=f[0];f[0]=f[1],f[1]=h}if(/left|right|center|Obj ect/.test(f[0])&&/top|bottom|center|Object/.test(f[1]))return f.map(function(a){ return"object"==typeof a?a:g[a]})}}}function e(d){var e=a.consumeRepeated(c,/^/, d);if(e){for(var f=e[0],h=[{"%":50},{"%":50}],i=0,j=!1,k=0;k<f.length;k++){var l =f[k];"string"==typeof l?(j=/bottom|right/.test(l),i={left:0,right:0,center:i,to p:1,bottom:1}[l],h[i]=g[l],"center"==l&&i++):(j&&(l=b(l),l["%"]=(l["%"]||0)+100) ,h[i]=l,i++,j=!1)}return[h,e[1]]}}function f(b){var c=a.consumeRepeated(e,/^,/,b );return c&&""==c[1]?c[0]:void 0}var g={left:{"%":0},center:{"%":50},right:{"%": 100},top:{"%":0},bottom:{"%":100}},h=a.mergeNestedRepeated.bind(null,a.mergeDime nsions," ");a.addPropertiesHandler(d.bind(null,3),h,["transform-origin"]),a.addP ropertiesHandler(d.bind(null,2),h,["perspective-origin"]),a.consumePosition=e,a. mergeOffsetList=h;var i=a.mergeNestedRepeated.bind(null,h,", ");a.addPropertiesH andler(f,i,["background-position","object-position"])}(d),function(a){function b (b){var c=a.consumeToken(/^circle/,b);if(c&&c[0])return["circle"].concat(a.consu meList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),d,a.ignore(a.consumeToken.bi nd(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^\)/))] ,c[1]));var f=a.consumeToken(/^ellipse/,b);if(f&&f[0])return["ellipse"].concat(a .consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),e,a.ignore(a.consumeTo ken.bind(void 0,/^at/)),a.consumePosition,a.ignore(a.consumeToken.bind(void 0,/^ \)/))],f[1]));var g=a.consumeToken(/^polygon/,b);return g&&g[0]?["polygon"].conc at(a.consumeList([a.ignore(a.consumeToken.bind(void 0,/^\(/)),a.optional(a.consu meToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),a.consumeSizePairLi st,a.ignore(a.consumeToken.bind(void 0,/^\)/))],g[1])):void 0}function c(b,c){re turn b[0]===c[0]?"circle"==b[0]?a.mergeList(b.slice(1),c.slice(1),["circle(",a.m ergeDimensions," at ",a.mergeOffsetList,")"]):"ellipse"==b[0]?a.mergeList(b.slic e(1),c.slice(1),["ellipse(",a.mergeNonNegativeSizePair," at ",a.mergeOffsetList, ")"]):"polygon"==b[0]&&b[1]==c[1]?a.mergeList(b.slice(2),c.slice(2),["polygon(", b[1],g,")"]):void 0:void 0}var d=a.consumeParenthesised.bind(null,a.parseLengthO rPercent),e=a.consumeRepeated.bind(void 0,d,/^/),f=a.mergeNestedRepeated.bind(vo id 0,a.mergeDimensions," "),g=a.mergeNestedRepeated.bind(void 0,f,",");a.addProp ertiesHandler(b,c,["shape-outside"])}(d),function(a){function b(a,b){b.concat([a ]).forEach(function(b){b in document.documentElement.style&&(c[a]=b)})}var c={}; b("transform",["webkitTransform","msTransform"]),b("transformOrigin",["webkitTra nsformOrigin"]),b("perspective",["webkitPerspective"]),b("perspectiveOrigin",["w ebkitPerspectiveOrigin"]),a.propertyName=function(a){return c[a]||a}}(d,f)}(),!f unction(a,b){function c(a){var b=window.document.timeline;b.currentTime=a,b._dis cardAnimations(),0==b._animations.length?e=!1:requestAnimationFrame(c)}var d=win dow.requestAnimationFrame;window.requestAnimationFrame=function(a){return d(func tion(b){window.document.timeline._updateAnimationsPromises(),a(b),window.documen t.timeline._updateAnimationsPromises()})},b.AnimationTimeline=function(){this._a nimations=[],this.currentTime=void 0},b.AnimationTimeline.prototype={getAnimatio ns:function(){return this._discardAnimations(),this._animations.slice()},_update AnimationsPromises:function(){b.animationsWithPromises=b.animationsWithPromises. filter(function(a){return a._updatePromises()})},_discardAnimations:function(){t his._updateAnimationsPromises(),this._animations=this._animations.filter(functio n(a){return"finished"!=a.playState&&"idle"!=a.playState})},_play:function(a){var c=new b.Animation(a,this);return this._animations.push(c),b.restartWebAnimation sNextTick(),c._updatePromises(),c._animation.play(),c._updatePromises(),c},play: function(a){return a&&a.remove(),this._play(a)}};var e=!1;b.restartWebAnimations NextTick=function(){e||(e=!0,requestAnimationFrame(c))};var f=new b.AnimationTim eline;b.timeline=f;try{Object.defineProperty(window.document,"timeline",{configu rable:!0,get:function(){return f}})}catch(g){}try{window.document.timeline=f}cat ch(g){}}(c,e,f),function(a,b){b.animationsWithPromises=[],b.Animation=function(b ,c){if(this.effect=b,b&&(b._animation=this),!c)throw new Error("Animation with n ull timeline is not supported");this._timeline=c,this._sequenceNumber=a.sequence Number++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null, this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._reb uildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},b.Ani mation.prototype={_updatePromises:function(){var a=this._oldPlayState,b=this.pla yState;return this._readyPromise&&b!==a&&("idle"==b?(this._rejectReadyPromise(), this._readyPromise=void 0):"pending"==a?this._resolveReadyPromise():"pending"==b &&(this._readyPromise=void 0)),this._finishedPromise&&b!==a&&("idle"==b?(this._r ejectFinishedPromise(),this._finishedPromise=void 0):"finished"==b?this._resolve FinishedPromise():"finished"==a&&(this._finishedPromise=void 0)),this._oldPlaySt ate=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlying Animation:function(){this._updatePromises();var a,c,d,e,f=this._animation?!0:!1; f&&(a=this.playbackRate,c=this._paused,d=this.startTime,e=this.currentTime,this. _animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.e ffect||this.effect instanceof window.KeyframeEffect)&&(this._animation=b.newUnde rlyingAnimationForKeyframeEffect(this.effect),b.bindAnimationForKeyframeEffect(t his)),(this.effect instanceof window.SequenceEffect||this.effect instanceof wind ow.GroupEffect)&&(this._animation=b.newUnderlyingAnimationForGroup(this.effect), b.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&b.bindAnimati onForCustomEffect(this),f&&(1!=a&&(this.playbackRate=a),null!==d?this.startTime= d:null!==e?this.currentTime=e:null!==this._holdTime&&(this.currentTime=this._hol dTime),c&&this.pause()),this._updatePromises()},_updateChildren:function(){if(th is.effect&&"idle"!=this.playState){var a=this.effect._timing.delay;this._childAn imations.forEach(function(c){this._arrangeChildren(c,a),this.effect instanceof w indow.SequenceEffect&&(a+=b.groupChildDuration(c.effect))}.bind(this))}},_setExt ernalAnimation:function(a){if(this.effect&&this._isGroup)for(var b=0;b<this.effe ct.children.length;b++)this.effect.children[b]._animation=a,this._childAnimation s[b]._setExternalAnimation(a)},_constructChildAnimations:function(){if(this.effe ct&&this._isGroup){var a=this.effect._timing.delay;this._removeChildAnimations() ,this.effect.children.forEach(function(c){var d=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.eff ect instanceof window.SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))} },_arrangeChildren:function(a,b){null===this.startTime?a.currentTime=this.curren tTime-b/this.playbackRate:a.startTime!==this.startTime+b/this.playbackRate&&(a.s tartTime=this.startTime+b/this.playbackRate)},get timeline(){return this._timeli ne},get playState(){return this._animation?this._animation.playState:"idle"},get finished(){return window.Promise?(this._finishedPromise||(-1==b.animationsWithP romises.indexOf(this)&&b.animationsWithPromises.push(this),this._finishedPromise =new Promise(function(a,b){this._resolveFinishedPromise=function(){a(this)},this ._rejectFinishedPromise=function(){b({type:DOMException.ABORT_ERR,name:"AbortErr or"})}}.bind(this)),"finished"==this.playState&&this._resolveFinishedPromise()), this._finishedPromise):(console.warn("Animation Promises require JavaScript Prom ise constructor"),null)},get ready(){return window.Promise?(this._readyPromise|| (-1==b.animationsWithPromises.indexOf(this)&&b.animationsWithPromises.push(this) ,this._readyPromise=new Promise(function(a,b){this._resolveReadyPromise=function (){a(this)},this._rejectReadyPromise=function(){b({type:DOMException.ABORT_ERR,n ame:"AbortError"})}}.bind(this)),"pending"!==this.playState&&this._resolveReadyP romise()),this._readyPromise):(console.warn("Animation Promises require JavaScri pt Promise constructor"),null)},get onfinish(){return this._onfinish},set onfini sh(a){"function"==typeof a?(this._onfinish=a,this._animation.onfinish=function(b ){b.target=this,a.call(this,b)}.bind(this)):(this._animation.onfinish=a,this.onf inish=this._animation.onfinish)},get currentTime(){this._updatePromises();var a= this._animation.currentTime;return this._updatePromises(),a},set currentTime(a){ this._updatePromises(),this._animation.currentTime=isFinite(a)?a:Math.sign(a)*Nu mber.MAX_VALUE,this._register(),this._forEachChild(function(b,c){b.currentTime=a -c}),this._updatePromises()},get startTime(){return this._animation.startTime},s et startTime(a){this._updatePromises(),this._animation.startTime=isFinite(a)?a:M ath.sign(a)*Number.MAX_VALUE,this._register(),this._forEachChild(function(b,c){b .startTime=a+c}),this._updatePromises()},get playbackRate(){return this._animati on.playbackRate},set playbackRate(a){this._updatePromises();var b=this.currentTi me;this._animation.playbackRate=a,this._forEachChild(function(b){b.playbackRate= a}),"paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!==b&&(thi s.currentTime=b),this._updatePromises()},play:function(){this._updatePromises(), this._paused=!1,this._animation.play(),-1==this._timeline._animations.indexOf(th is)&&this._timeline._animations.push(this),this._register(),b.awaitStartTime(thi s),this._forEachChild(function(a){var b=a.currentTime;a.play(),a.currentTime=b}) ,this._updatePromises()},pause:function(){this._updatePromises(),this.currentTim e&&(this._holdTime=this.currentTime),this._animation.pause(),this._register(),th is._forEachChild(function(a){a.pause()}),this._paused=!0,this._updatePromises()} ,finish:function(){this._updatePromises(),this._animation.finish(),this._registe r(),this._updatePromises()},cancel:function(){this._updatePromises(),this._anima tion.cancel(),this._register(),this._removeChildAnimations(),this._updatePromise s()},reverse:function(){this._updatePromises();var a=this.currentTime;this._anim ation.reverse(),this._forEachChild(function(a){a.reverse()}),null!==a&&(this.cur rentTime=a),this._updatePromises()},addEventListener:function(a,b){var c=b;"func tion"==typeof b&&(c=function(a){a.target=this,b.call(this,a)}.bind(this),b._wrap per=c),this._animation.addEventListener(a,c)},removeEventListener:function(a,b){ this._animation.removeEventListener(a,b&&b._wrapper||b)},_removeChildAnimations: function(){for(;this._childAnimations.length;)this._childAnimations.pop().cancel ()},_forEachChild:function(b){var c=0;if(this.effect.children&&this._childAnimat ions.length<this.effect.children.length&&this._constructChildAnimations(),this._ childAnimations.forEach(function(a){b.call(this,a,c),this.effect instanceof wind ow.SequenceEffect&&(c+=a.effect.activeDuration)}.bind(this)),"pending"!=this.pla yState){var d=this.effect._timing,e=this.currentTime;null!==e&&(e=a.calculateTim eFraction(a.calculateActiveDuration(d),e,d)),(null==e||isNaN(e))&&this._removeCh ildAnimations()}}},window.Animation=b.Animation}(c,e,f),function(a,b){function c (b){this._frames=a.normalizeKeyframes(b)}function d(){for(var a=!1;h.length;){va r b=h.shift();b._updateChildren(),a=!0}return a}var e=function(a){if(a._animatio n=void 0,a instanceof window.SequenceEffect||a instanceof window.GroupEffect)for (var b=0;b<a.children.length;b++)e(a.children[b])};b.removeMulti=function(a){for (var b=[],c=0;c<a.length;c++){var d=a[c];d._parent?(-1==b.indexOf(d._parent)&&b. push(d._parent),d._parent.children.splice(d._parent.children.indexOf(d),1),d._pa rent=null,e(d)):d._animation&&d._animation.effect==d&&(d._animation.cancel(),d._ animation.effect=new KeyframeEffect(null,[]),d._animation._callback&&(d._animati on._callback._animation=null),d._animation._rebuildUnderlyingAnimation(),e(d))}f or(c=0;c<b.length;c++)b[c]._rebuild()},b.KeyframeEffect=function(b,d,e){return t his.target=b,this._parent=null,e=a.numericTimingToObject(e),this._timingInput=a. cloneTimingInput(e),this._timing=a.normalizeTimingInput(e),this.timing=a.makeTim ing(e,!1,this),this.timing._effect=this,"function"==typeof d?(a.deprecated("Cust om KeyframeEffect","2015-06-22","Use KeyframeEffect.onsample instead."),this._no rmalizedKeyframes=d):this._normalizedKeyframes=new c(d),this._keyframes=d,this.a ctiveDuration=a.calculateActiveDuration(this._timing),this},b.KeyframeEffect.pro totype={getFrames:function(){return"function"==typeof this._normalizedKeyframes? this._normalizedKeyframes:this._normalizedKeyframes._frames},set onsample(a){if( "function"==typeof this.getFrames())throw new Error("Setting onsample on custom effect KeyframeEffect is not supported.");this._onsample=a,this._animation&&this ._animation._rebuildUnderlyingAnimation()},get parent(){return this._parent},clo ne:function(){if("function"==typeof this.getFrames())throw new Error("Cloning cu stom effects is not supported.");var b=new KeyframeEffect(this.target,[],a.clone TimingInput(this._timingInput));return b._normalizedKeyframes=this._normalizedKe yframes,b._keyframes=this._keyframes,b},remove:function(){b.removeMulti([this])} };var f=Element.prototype.animate;Element.prototype.animate=function(a,c){return b.timeline._play(new b.KeyframeEffect(this,a,c))};var g=document.createElementN S("http://www.w3.org/1999/xhtml","div");b.newUnderlyingAnimationForKeyframeEffec t=function(a){if(a){var b=a.target||g,c=a._keyframes;"function"==typeof c&&(c=[] );var d=a._timingInput}else var b=g,c=[],d=0;return f.apply(b,[c,d])},b.bindAnim ationForKeyframeEffect=function(a){a.effect&&"function"==typeof a.effect._normal izedKeyframes&&b.bindAnimationForCustomEffect(a)};var h=[];b.awaitStartTime=func tion(a){null===a.startTime&&a._isGroup&&(0==h.length&&requestAnimationFrame(d),h .push(a))};var i=window.getComputedStyle;Object.defineProperty(window,"getComput edStyle",{configurable:!0,enumerable:!0,value:function(){window.document.timelin e._updateAnimationsPromises();var a=i.apply(this,arguments);return d()&&(a=i.app ly(this,arguments)),window.document.timeline._updateAnimationsPromises(),a}}),wi ndow.KeyframeEffect=b.KeyframeEffect,window.Element.prototype.getAnimations=func tion(){return document.timeline.getAnimations().filter(function(a){return null!= =a.effect&&a.effect.target==this}.bind(this))}}(c,e,f),function(a,b){function c( a){a._registered||(a._registered=!0,f.push(a),g||(g=!0,requestAnimationFrame(d)) )}function d(){var a=f;f=[],a.sort(function(a,b){return a._sequenceNumber-b._seq uenceNumber}),a=a.filter(function(a){a();var b=a._animation?a._animation.playSta te:"idle";return"running"!=b&&"pending"!=b&&(a._registered=!1),a._registered}),f .push.apply(f,a),f.length?(g=!0,requestAnimationFrame(d)):g=!1}var e=(document.c reateElementNS("http://www.w3.org/1999/xhtml","div"),0);b.bindAnimationForCustom Effect=function(b){var d,f=b.effect.target,g="function"==typeof b.effect.getFram es();d=g?b.effect.getFrames():b.effect._onsample;var h=b.effect.timing,i=null;h= a.normalizeTimingInput(h);var j=function(){var c=j._animation?j._animation.curre ntTime:null;null!==c&&(c=a.calculateTimeFraction(a.calculateActiveDuration(h),c, h),isNaN(c)&&(c=null)),c!==i&&(g?d(c,f,b.effect):d(c,b.effect,b.effect._animatio n)),i=c};j._animation=b,j._registered=!1,j._sequenceNumber=e++,b._callback=j,c(j )};var f=[],g=!1;b.Animation.prototype._register=function(){this._callback&&c(th is._callback)}}(c,e,f),function(a,b){function c(a){return a._timing.delay+a.acti veDuration+a._timing.endDelay}function d(b,c){this._parent=null,this.children=b| |[],this._reparent(this.children),c=a.numericTimingToObject(c),this._timingInput =a.cloneTimingInput(c),this._timing=a.normalizeTimingInput(c,!0),this.timing=a.m akeTiming(c,!0,this),this.timing._effect=this,"auto"===this._timing.duration&&(t his._timing.duration=this.activeDuration)}window.SequenceEffect=function(){d.app ly(this,arguments)},window.GroupEffect=function(){d.apply(this,arguments)},d.pro totype={_isAncestor:function(a){for(var b=this;null!==b;){if(b==a)return!0;b=b._ parent}return!1},_rebuild:function(){for(var a=this;a;)"auto"===a.timing.duratio n&&(a._timing.duration=a.activeDuration),a=a._parent;this._animation&&this._anim ation._rebuildUnderlyingAnimation()},_reparent:function(a){b.removeMulti(a);for( var c=0;c<a.length;c++)a[c]._parent=this},_putChild:function(a,b){for(var c=b?"C annot append an ancestor or self":"Cannot prepend an ancestor or self",d=0;d<a.l ength;d++)if(this._isAncestor(a[d]))throw{type:DOMException.HIERARCHY_REQUEST_ER R,name:"HierarchyRequestError",message:c};for(var d=0;d<a.length;d++)b?this.chil dren.push(a[d]):this.children.unshift(a[d]);this._reparent(a),this._rebuild()},a ppend:function(){this._putChild(arguments,!0)},prepend:function(){this._putChild (arguments,!1)},get parent(){return this._parent},get firstChild(){return this.c hildren.length?this.children[0]:null},get lastChild(){return this.children.lengt h?this.children[this.children.length-1]:null},clone:function(){for(var b=a.clone TimingInput(this._timingInput),c=[],d=0;d<this.children.length;d++)c.push(this.c hildren[d].clone());return this instanceof GroupEffect?new GroupEffect(c,b):new SequenceEffect(c,b)},remove:function(){b.removeMulti([this])}},window.SequenceEf fect.prototype=Object.create(d.prototype),Object.defineProperty(window.SequenceE ffect.prototype,"activeDuration",{get:function(){var a=0;return this.children.fo rEach(function(b){a+=c(b)}),Math.max(a,0)}}),window.GroupEffect.prototype=Object .create(d.prototype),Object.defineProperty(window.GroupEffect.prototype,"activeD uration",{get:function(){var a=0;return this.children.forEach(function(b){a=Math .max(a,c(b))}),a}}),b.newUnderlyingAnimationForGroup=function(c){var d,e=null,f= function(b){var c=d._wrapper;return c&&"pending"!=c.playState&&c.effect?null==b? void c._removeChildAnimations():0==b&&c.playbackRate<0&&(e||(e=a.normalizeTiming Input(c.effect.timing)),b=a.calculateTimeFraction(a.calculateActiveDuration(e),- 1,e),isNaN(b)||null==b)?(c._forEachChild(function(a){a.currentTime=-1}),void c._ removeChildAnimations()):void 0:void 0},g=new KeyframeEffect(null,[],c._timing); return g.onsample=f,d=b.timeline._play(g)},b.bindAnimationForGroup=function(a){a ._animation._wrapper=a,a._isGroup=!0,b.awaitStartTime(a),a._constructChildAnimat ions(),a._setExternalAnimation(a)},b.groupChildDuration=c}(c,e,f)}({},function() {return this}()); 16 return b[3]=a.numberToString(a.clamp(0,1,b[3])),"rgba("+b.join(",")+")"}]}var e= document.createElementNS("http://www.w3.org/1999/xhtml","canvas");e.width=e.heig ht=1;var f=e.getContext("2d");a.addPropertiesHandler(c,d,["background-color","bo rder-bottom-color","border-left-color","border-right-color","border-top-color"," color","outline-color","text-decoration-color"]),a.consumeColor=a.consumeParenth esised.bind(null,c),a.mergeColors=d}(d,f),function(a,b){function c(a,b){if(b=b.t rim().toLowerCase(),"0"==b&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.te st(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.replace(a,function(a){return c[a] =null,"U"+a});for(var d="U("+a.source+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").r eplace(new RegExp("N"+d,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[ /N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)? (e=e.replace(f[g],"$1"),g=0):g++;if("D"==e){for(var h in c){var i=eval(b.replace (new RegExp("U"+h,"g"),"").replace(new RegExp(d,"g"),"*0"));if(!isFinite(i))retu rn;c[h]=i}return c}}}function d(a,b){return e(a,b,!0)}function e(b,c,d){var e,f= [];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&&f.push(e);return b=f.map(func tion(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){v ar c=b.map(function(c,e){return 1==b.length&&d&&(c=Math.max(c,0)),a.numberToStri ng(c)+f[e]}).join(" + ");return b.length>1?"calc("+c+")":c}]}var f="px|em|ex|ch| rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",g=c.bind(null,new RegExp(f,"g")),h=c.bind(nu ll,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|grad|turn/g);a.parseLength=g,a .parseLengthOrPercent=h,a.consumeLengthOrPercent=a.consumeParenthesised.bind(nul l,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.consumeParenthesised.bind(null,g ),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consumeRepeated.bind(void 0,k,/^,/) ;a.consumeSizePairList=l;var m=function(a){var b=l(a);return b&&""==b[1]?b[0]:vo id 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(vo id 0,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background -size"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width", "border-left-width","border-right-width","border-top-width","flex-basis","font-s ize","height","line-height","max-height","max-width","outline-width","width"]),a .addPropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radi us","border-top-left-radius","border-top-right-radius","bottom","left","letter-s pacing","margin-bottom","margin-left","margin-right","margin-top","min-height"," min-width","outline-offset","padding-bottom","padding-left","padding-right","pad ding-top","perspective","right","shape-margin","text-indent","top","vertical-ali gn","word-spacing"])}(d,f),function(a,b){function c(b){return a.consumeLengthOrP ercent(b)||a.consumeToken(/^auto/,b)}function d(b){var d=a.consumeList([a.ignore (a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a. consumeRepeated.bind(null,c,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],b); return d&&4==d[0].length?d[0]:void 0}function e(b,c){return"auto"==b||"auto"==c? [!0,!1,function(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions (e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function f(a){return"rect("+a+" )"}var g=a.mergeWrappedNestedRepeated.bind(null,f,e,", ");a.parseBox=d,a.mergeBo xes=g,a.addPropertiesHandler(d,g,["clip"])}(d,f),function(a,b){function c(a){ret urn function(b){var c=0;return a.map(function(a){return a===k?b[c++]:a})}}functi on d(a){return a}function e(b){if(b=b.toLowerCase().trim(),"none"==b)return[];fo r(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c .index+c[0].length;var g=c[1],h=n[g];if(!h)return;var i=c[2].split(","),j=h[0];i f(j.length<i.length)return;for(var k=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o]; if(p=q?{A:function(b){return"0"==b.trim()?m:a.parseAngle(b)},N:a.parseNumber,T:a .parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:m,n:k[0],t:l}[r],v oid 0===p)return;k.push(p)}if(e.push({t:g,d:k}),d.lastIndex==b.length)return e}} function f(a){return a.toFixed(6).replace(".000000","")}function g(b,c){if(b.dec ompositionPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if( c.decompositionPair!==b){c.decompositionPair=b;var e=a.makeMatrixDecomposition(c )}return null==d[0]||null==e[0]?[[!1],[!0],function(a){return a?c[0].d:b[0].d}]: (d[0].push(0),e[0].push(1),[d,e,function(b){var c=a.quat(d[0][3],e[0][3],b[5]),g =a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(f).join(",");return h}])}functio n h(a){return a.replace(/[xy]/,"")}function i(a){return a.replace(/(x|y|z|3d)?$/ ,"3d")}function j(b,c){var d=a.makeMatrixDecomposition&&!0,e=!1;if(!b.length||!c .length){b.length||(e=!0,b=c,c=[]);for(var f=0;f<b.length;f++){var j=b[f].t,k=b[ f].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(function(a){if("number"==t ypeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var m=function(a,b ){return"perspective"==a&&"perspective"==b||("matrix"==a||"matrix3d"==a)&&("matr ix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.length){if(!d)return;var r =g(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else for(var f=0;f<b.length;f++) {var j,s=b[f].t,t=c[f].t,u=b[f].d,v=c[f].d,w=n[s],x=n[t];if(m(s,t)){if(!d)return ;var r=g([b[f]],[c[f]]);o.push(r[0]),p.push(r[1]),q.push(["matrix",[r[2]]])}else {if(s==t)j=s;else if(w[2]&&x[2]&&h(s)==h(t))j=h(s),u=w[2](u),v=x[2](v);else{if(! w[1]||!x[1]||i(s)!=i(t)){if(!d)return;var r=g(b,c);o=[r[0]],p=[r[1]],q=[["matrix ",[r[2]]]];break}j=i(s),u=w[1](u),v=x[1](v)}for(var y=[],z=[],A=[],B=0;B<u.lengt h;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mergeDimensions,r=C(u[B],v[B ]);y[B]=r[0],z[B]=r[1],A.push(r[2])}o.push(y),p.push(z),q.push([j,A])}}if(e){var D=o;o=p,p=D}return[o,p,function(a){return a.map(function(a,b){var c=a.map(funct ion(a,c){return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(" ,").length&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var k=null,l={p x:0},m={deg:0},n={matrix:["NNNNNN",[k,k,0,0,k,k,0,0,0,0,1,0,k,k,0,1],d],matrix3d :["NNNNNNNNNNNNNNNN",d],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],r otate3d:["NNNA"],perspective:["L"],scale:["Nn",c([k,k,1]),d],scalex:["N",c([k,1, 1]),c([k,1])],scaley:["N",c([1,k,1]),c([1,k])],scalez:["N",c([1,1,k])],scale3d:[ "NNN",d],skew:["Aa",null,d],skewx:["A",null,c([k,m])],skewy:["A",null,c([m,k])], translate:["Tt",c([k,k,l]),d],translatex:["T",c([k,l,l]),c([k,l])],translatey:[" T",c([l,k,l]),c([l,k])],translatez:["L",c([l,l,k])],translate3d:["TTL",d]};a.add PropertiesHandler(e,j,["transform"])}(d,f),function(a){function b(a){var b=Numbe r(a);return isNaN(b)||100>b||b>900||b%100!==0?void 0:b}function c(b){return b=10 0*Math.round(b/100),b=a.clamp(100,900,b),400===b?"normal":700===b?"bold":String( b)}function d(a,b){return[a,b,c]}a.addPropertiesHandler(b,d,["font-weight"])}(d) ,function(a){function b(a){var b={};for(var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|center|right|top|bottom)\b/i,b)||a.consumeLen gthOrPercent(b)}function d(b,d){var e=a.consumeRepeated(c,/^/,d);if(e&&""==e[1]) {var f=e[0];if(f[0]=f[0]||"center",f[1]=f[1]||"center",3==b&&(f[2]=f[2]||{px:0}) ,f.length==b){if(/top|bottom/.test(f[0])||/left|right/.test(f[1])){var h=f[0];f[ 0]=f[1],f[1]=h}if(/left|right|center|Object/.test(f[0])&&/top|bottom|center|Obje ct/.test(f[1]))return f.map(function(a){return"object"==typeof a?a:g[a]})}}}func tion e(d){var e=a.consumeRepeated(c,/^/,d);if(e){for(var f=e[0],h=[{"%":50},{"%" :50}],i=0,j=!1,k=0;k<f.length;k++){var l=f[k];"string"==typeof l?(j=/bottom|righ t/.test(l),i={left:0,right:0,center:i,top:1,bottom:1}[l],h[i]=g[l],"center"==l&& i++):(j&&(l=b(l),l["%"]=(l["%"]||0)+100),h[i]=l,i++,j=!1)}return[h,e[1]]}}functi on f(b){var c=a.consumeRepeated(e,/^,/,b);return c&&""==c[1]?c[0]:void 0}var g={ left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},h=a.m ergeNestedRepeated.bind(null,a.mergeDimensions," ");a.addPropertiesHandler(d.bin d(null,3),h,["transform-origin"]),a.addPropertiesHandler(d.bind(null,2),h,["pers pective-origin"]),a.consumePosition=e,a.mergeOffsetList=h;var i=a.mergeNestedRep eated.bind(null,h,", ");a.addPropertiesHandler(f,i,["background-position","objec t-position"])}(d),function(a){function b(b){var c=a.consumeToken(/^circle/,b);if (c&&c[0])return["circle"].concat(a.consumeList([a.ignore(a.consumeToken.bind(voi d 0,/^\(/)),d,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePosition,a.ig nore(a.consumeToken.bind(void 0,/^\)/))],c[1]));var f=a.consumeToken(/^ellipse/, b);if(f&&f[0])return["ellipse"].concat(a.consumeList([a.ignore(a.consumeToken.bi nd(void 0,/^\(/)),e,a.ignore(a.consumeToken.bind(void 0,/^at/)),a.consumePositio n,a.ignore(a.consumeToken.bind(void 0,/^\)/))],f[1]));var g=a.consumeToken(/^pol ygon/,b);return g&&g[0]?["polygon"].concat(a.consumeList([a.ignore(a.consumeToke n.bind(void 0,/^\(/)),a.optional(a.consumeToken.bind(void 0,/^nonzero\s*,|^eveno dd\s*,/),"nonzero,"),a.consumeSizePairList,a.ignore(a.consumeToken.bind(void 0,/ ^\)/))],g[1])):void 0}function c(b,c){return b[0]===c[0]?"circle"==b[0]?a.mergeL ist(b.slice(1),c.slice(1),["circle(",a.mergeDimensions," at ",a.mergeOffsetList, ")"]):"ellipse"==b[0]?a.mergeList(b.slice(1),c.slice(1),["ellipse(",a.mergeNonNe gativeSizePair," at ",a.mergeOffsetList,")"]):"polygon"==b[0]&&b[1]==c[1]?a.merg eList(b.slice(2),c.slice(2),["polygon(",b[1],g,")"]):void 0:void 0}var d=a.consu meParenthesised.bind(null,a.parseLengthOrPercent),e=a.consumeRepeated.bind(void 0,d,/^/),f=a.mergeNestedRepeated.bind(void 0,a.mergeDimensions," "),g=a.mergeNes tedRepeated.bind(void 0,f,",");a.addPropertiesHandler(b,c,["shape-outside"])}(d) ,function(a,b){function c(a,b){b.concat([a]).forEach(function(b){b in document.d ocumentElement.style&&(d[a]=b)})}var d={};c("transform",["webkitTransform","msTr ansform"]),c("transformOrigin",["webkitTransformOrigin"]),c("perspective",["webk itPerspective"]),c("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyNa me=function(a){return d[a]||a}}(d,f)}(),!function(){if(void 0===document.createE lement("div").animate([]).oncancel){var a;if(window.performance&&performance.now )var a=function(){return performance.now()};else var a=function(){return Date.no w()};var b=function(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c, this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=a,this. defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},c =window.Element.prototype.animate;window.Element.prototype.animate=function(d,e) {var f=c.call(this,d,e);f._cancelHandlers=[],f.oncancel=null;var g=f.cancel;f.ca ncel=function(){g.call(this);var c=new b(this,null,a()),d=this._cancelHandlers.c oncat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){d.forEach(function (a){a.call(c.target,c)})},0)};var h=f.addEventListener;f.addEventListener=functi on(a,b){"function"==typeof b&&"cancel"==a?this._cancelHandlers.push(b):h.call(th is,a,b)};var i=f.removeEventListener;return f.removeEventListener=function(a,b){ if("cancel"==a){var c=this._cancelHandlers.indexOf(b);c>=0&&this._cancelHandlers .splice(c,1)}else i.call(this,a,b)},f}}}(),function(a){var b=document.documentEl ement,c=b.animate({opacity:["1","0"]},{duration:1,fill:"forwards"});c.finish();v ar d="0"==getComputedStyle(b).getPropertyValue("opacity");if(c.cancel(),!d){var e=window.Element.prototype.animate;window.Element.prototype.animate=function(b,c ){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator ]&&(b=Array.from(b)),Array.isArray(b)||null===b||(b=a.convertToArrayForm(b)),e.c all(this,b,c)}}}(c),!function(a,b,c){function d(a){var b=window.document.timelin e;b.currentTime=a,b._discardAnimations(),0==b._animations.length?f=!1:requestAni mationFrame(d)}var e=window.requestAnimationFrame;window.requestAnimationFrame=f unction(a){return e(function(b){window.document.timeline._updateAnimationsPromis es(),a(b),window.document.timeline._updateAnimationsPromises()})},b.AnimationTim eline=function(){this._animations=[],this.currentTime=void 0},b.AnimationTimelin e.prototype={getAnimations:function(){return this._discardAnimations(),this._ani mations.slice()},_updateAnimationsPromises:function(){b.animationsWithPromises=b .animationsWithPromises.filter(function(a){return a._updatePromises()})},_discar dAnimations:function(){this._updateAnimationsPromises(),this._animations=this._a nimations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playState} )},_play:function(a){var c=new b.Animation(a,this);return this._animations.push( c),b.restartWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c._u pdatePromises(),c},play:function(a){return a&&a.remove(),this._play(a)}};var f=! 1;b.restartWebAnimationsNextTick=function(){f||(f=!0,requestAnimationFrame(d))}; var g=new b.AnimationTimeline;b.timeline=g;try{Object.defineProperty(window.docu ment,"timeline",{configurable:!0,get:function(){return g}})}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.effec t=b,b&&(b._animation=this),!c)throw new Error("Animation with null timeline is n ot supported");this._timeline=c,this._sequenceNumber=a.sequenceNumber++,this._ho ldTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimat ions=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAni mation(),this._animation.cancel(),this._updatePromises()},b.Animation.prototype= {_updatePromises:function(){var a=this._oldPlayState,b=this.playState;return thi s._readyPromise&&b!==a&&("idle"==b?(this._rejectReadyPromise(),this._readyPromis e=void 0):"pending"==a?this._resolveReadyPromise():"pending"==b&&(this._readyPro mise=void 0)),this._finishedPromise&&b!==a&&("idle"==b?(this._rejectFinishedProm ise(),this._finishedPromise=void 0):"finished"==b?this._resolveFinishedPromise() :"finished"==a&&(this._finishedPromise=void 0)),this._oldPlayState=this.playStat e,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:functio n(){this._updatePromises();var a,c,d,e,f=!!this._animation;f&&(a=this.playbackRa te,c=this._paused,d=this.startTime,e=this.currentTime,this._animation.cancel(),t his._animation._wrapper=null,this._animation=null),(!this.effect||this.effect in stanceof window.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKey frameEffect(this.effect),b.bindAnimationForKeyframeEffect(this)),(this.effect in stanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(thi s._animation=b.newUnderlyingAnimationForGroup(this.effect),b.bindAnimationForGro up(this)),this.effect&&this.effect._onsample&&b.bindAnimationForCustomEffect(thi s),f&&(1!=a&&(this.playbackRate=a),null!==d?this.startTime=d:null!==e?this.curre ntTime=e:null!==this._holdTime&&(this.currentTime=this._holdTime),c&&this.pause( )),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=th is.playState){var a=this.effect._timing.delay;this._childAnimations.forEach(func tion(c){this._arrangeChildren(c,a),this.effect instanceof window.SequenceEffect& &(a+=b.groupChildDuration(c.effect))}.bind(this))}},_setExternalAnimation:functi on(a){if(this.effect&&this._isGroup)for(var b=0;b<this.effect.children.length;b+ +)this.effect.children[b]._animation=a,this._childAnimations[b]._setExternalAnim ation(a)},_constructChildAnimations:function(){if(this.effect&&this._isGroup){va r a=this.effect._timing.delay;this._removeChildAnimations(),this.effect.children .forEach(function(c){var d=window.document.timeline._play(c);this._childAnimatio ns.push(d),d.playbackRate=this.playbackRate,this._paused&&d.pause(),c._animation =this.effect._animation,this._arrangeChildren(d,a),this.effect instanceof window .SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))}},_arrangeChildren:fu nction(a,b){null===this.startTime?a.currentTime=this.currentTime-b/this.playback Rate:a.startTime!==this.startTime+b/this.playbackRate&&(a.startTime=this.startTi me+b/this.playbackRate)},get timeline(){return this._timeline},get playState(){r eturn this._animation?this._animation.playState:"idle"},get finished(){return wi ndow.Promise?(this._finishedPromise||(-1==b.animationsWithPromises.indexOf(this) &&b.animationsWithPromises.push(this),this._finishedPromise=new Promise(function (a,b){this._resolveFinishedPromise=function(){a(this)},this._rejectFinishedPromi se=function(){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this))," finished"==this.playState&&this._resolveFinishedPromise()),this._finishedPromise ):(console.warn("Animation Promises require JavaScript Promise constructor"),nul l)},get ready(){return window.Promise?(this._readyPromise||(-1==b.animationsWith Promises.indexOf(this)&&b.animationsWithPromises.push(this),this._readyPromise=n ew Promise(function(a,b){this._resolveReadyPromise=function(){a(this)},this._rej ectReadyPromise=function(){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}. bind(this)),"pending"!==this.playState&&this._resolveReadyPromise()),this._ready Promise):(console.warn("Animation Promises require JavaScript Promise constructo r"),null)},get onfinish(){return this._animation.onfinish},set onfinish(a){"func tion"==typeof a?this._animation.onfinish=function(b){b.target=this,a.call(this,b )}.bind(this):this._animation.onfinish=a},get oncancel(){return this._animation. oncancel},set oncancel(a){"function"==typeof a?this._animation.oncancel=function (b){b.target=this,a.call(this,b)}.bind(this):this._animation.oncancel=a},get cur rentTime(){this._updatePromises();var a=this._animation.currentTime;return this. _updatePromises(),a},set currentTime(a){this._updatePromises(),this._animation.c urrentTime=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(),this._fo rEachChild(function(b,c){b.currentTime=a-c}),this._updatePromises()},get startTi me(){return this._animation.startTime},set startTime(a){this._updatePromises(),t his._animation.startTime=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._regis ter(),this._forEachChild(function(b,c){b.startTime=a+c}),this._updatePromises()} ,get playbackRate(){return this._animation.playbackRate},set playbackRate(a){thi s._updatePromises();var b=this.currentTime;this._animation.playbackRate=a,this._ forEachChild(function(b){b.playbackRate=a}),"paused"!=this.playState&&"idle"!=th is.playState&&this.play(),null!==b&&(this.currentTime=b),this._updatePromises()} ,play:function(){this._updatePromises(),this._paused=!1,this._animation.play(),- 1==this._timeline._animations.indexOf(this)&&this._timeline._animations.push(thi s),this._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b= a.currentTime;a.play(),a.currentTime=b}),this._updatePromises()},pause:function( ){this._updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),thi s._animation.pause(),this._register(),this._forEachChild(function(a){a.pause()}) ,this._paused=!0,this._updatePromises()},finish:function(){this._updatePromises( ),this._animation.finish(),this._register(),this._updatePromises()},cancel:funct ion(){this._updatePromises(),this._animation.cancel(),this._register(),this._rem oveChildAnimations(),this._updatePromises()},reverse:function(){this._updateProm ises();var a=this.currentTime;this._animation.reverse(),this._forEachChild(funct ion(a){a.reverse()}),null!==a&&(this.currentTime=a),this._updatePromises()},addE ventListener:function(a,b){var c=b;"function"==typeof b&&(c=function(a){a.target =this,b.call(this,a)}.bind(this),b._wrapper=c),this._animation.addEventListener( a,c)},removeEventListener:function(a,b){this._animation.removeEventListener(a,b& &b._wrapper||b)},_removeChildAnimations:function(){for(;this._childAnimations.le ngth;)this._childAnimations.pop().cancel()},_forEachChild:function(b){var c=0;if (this.effect.children&&this._childAnimations.length<this.effect.children.length& &this._constructChildAnimations(),this._childAnimations.forEach(function(a){b.ca ll(this,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDu ration)}.bind(this)),"pending"!=this.playState){var d=this.effect._timing,e=this .currentTime;null!==e&&(e=a.calculateTimeFraction(a.calculateActiveDuration(d),e ,d)),(null==e||isNaN(e))&&this._removeChildAnimations()}}},window.Animation=b.An imation}(c,e,f),function(a,b,c){function d(b){this._frames=a.normalizeKeyframes( b)}function e(){for(var a=!1;i.length;){var b=i.shift();b._updateChildren(),a=!0 }return a}var f=function(a){if(a._animation=void 0,a instanceof window.SequenceE ffect||a instanceof window.GroupEffect)for(var b=0;b<a.children.length;b++)f(a.c hildren[b])};b.removeMulti=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[ c];d._parent?(-1==b.indexOf(d._parent)&&b.push(d._parent),d._parent.children.spl ice(d._parent.children.indexOf(d),1),d._parent=null,f(d)):d._animation&&d._anima tion.effect==d&&(d._animation.cancel(),d._animation.effect=new KeyframeEffect(nu ll,[]),d._animation._callback&&(d._animation._callback._animation=null),d._anima tion._rebuildUnderlyingAnimation(),f(d))}for(c=0;c<b.length;c++)b[c]._rebuild()} ,b.KeyframeEffect=function(b,c,e,f){return this.target=b,this._parent=null,e=a.n umericTimingToObject(e),this._timingInput=a.cloneTimingInput(e),this._timing=a.n ormalizeTimingInput(e),this.timing=a.makeTiming(e,!1,this),this.timing._effect=t his,"function"==typeof c?(a.deprecated("Custom KeyframeEffect","2015-06-22","Use KeyframeEffect.onsample instead."),this._normalizedKeyframes=c):this._normalize dKeyframes=new d(c),this._keyframes=c,this.activeDuration=a.calculateActiveDurat ion(this._timing),this._id=f,this},b.KeyframeEffect.prototype={getFrames:functio n(){return"function"==typeof this._normalizedKeyframes?this._normalizedKeyframes :this._normalizedKeyframes._frames},set onsample(a){if("function"==typeof this.g etFrames())throw new Error("Setting onsample on custom effect KeyframeEffect is not supported.");this._onsample=a,this._animation&&this._animation._rebuildUnder lyingAnimation()},get parent(){return this._parent},clone:function(){if("functio n"==typeof this.getFrames())throw new Error("Cloning custom effects is not suppo rted.");var b=new KeyframeEffect(this.target,[],a.cloneTimingInput(this._timingI nput),this._id);return b._normalizedKeyframes=this._normalizedKeyframes,b._keyfr ames=this._keyframes,b},remove:function(){b.removeMulti([this])}};var g=Element. prototype.animate;Element.prototype.animate=function(a,c){var d="";return c&&c.i d&&(d=c.id),b.timeline._play(new b.KeyframeEffect(this,a,c,d))};var h=document.c reateElementNS("http://www.w3.org/1999/xhtml","div");b.newUnderlyingAnimationFor KeyframeEffect=function(a){if(a){var b=a.target||h,c=a._keyframes;"function"==ty peof c&&(c=[]);var d=a._timingInput;d.id=a._id}else var b=h,c=[],d=0;return g.ap ply(b,[c,d])},b.bindAnimationForKeyframeEffect=function(a){a.effect&&"function"= =typeof a.effect._normalizedKeyframes&&b.bindAnimationForCustomEffect(a)};var i= [];b.awaitStartTime=function(a){null===a.startTime&&a._isGroup&&(0==i.length&&re questAnimationFrame(e),i.push(a))};var j=window.getComputedStyle;Object.definePr operty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function() {window.document.timeline._updateAnimationsPromises();var a=j.apply(this,argumen ts);return e()&&(a=j.apply(this,arguments)),window.document.timeline._updateAnim ationsPromises(),a}}),window.KeyframeEffect=b.KeyframeEffect,window.Element.prot otype.getAnimations=function(){return document.timeline.getAnimations().filter(f unction(a){return null!==a.effect&&a.effect.target==this}.bind(this))}}(c,e,f),f unction(a,b,c){function d(a){a._registered||(a._registered=!0,g.push(a),h||(h=!0 ,requestAnimationFrame(e)))}function e(a){var b=g;g=[],b.sort(function(a,b){retu rn a._sequenceNumber-b._sequenceNumber}),b=b.filter(function(a){a();var b=a._ani mation?a._animation.playState:"idle";return"running"!=b&&"pending"!=b&&(a._regis tered=!1),a._registered}),g.push.apply(g,b),g.length?(h=!0,requestAnimationFrame (e)):h=!1}var f=(document.createElementNS("http://www.w3.org/1999/xhtml","div"), 0);b.bindAnimationForCustomEffect=function(b){var c,e=b.effect.target,g="functio n"==typeof b.effect.getFrames();c=g?b.effect.getFrames():b.effect._onsample;var h=b.effect.timing,i=null;h=a.normalizeTimingInput(h);var j=function(){var d=j._a nimation?j._animation.currentTime:null;null!==d&&(d=a.calculateTimeFraction(a.ca lculateActiveDuration(h),d,h),isNaN(d)&&(d=null)),d!==i&&(g?c(d,e,b.effect):c(d, b.effect,b.effect._animation)),i=d};j._animation=b,j._registered=!1,j._sequenceN umber=f++,b._callback=j,d(j)};var g=[],h=!1;b.Animation.prototype._register=func tion(){this._callback&&d(this._callback)}}(c,e,f),function(a,b,c){function d(a){ return a._timing.delay+a.activeDuration+a._timing.endDelay}function e(b,c,d){thi s._id=d,this._parent=null,this.children=b||[],this._reparent(this.children),c=a. numericTimingToObject(c),this._timingInput=a.cloneTimingInput(c),this._timing=a. normalizeTimingInput(c,!0),this.timing=a.makeTiming(c,!0,this),this.timing._effe ct=this,"auto"===this._timing.duration&&(this._timing.duration=this.activeDurati on)}window.SequenceEffect=function(){e.apply(this,arguments)},window.GroupEffect =function(){e.apply(this,arguments)},e.prototype={_isAncestor:function(a){for(va r b=this;null!==b;){if(b==a)return!0;b=b._parent}return!1},_rebuild:function(){f or(var a=this;a;)"auto"===a.timing.duration&&(a._timing.duration=a.activeDuratio n),a=a._parent;this._animation&&this._animation._rebuildUnderlyingAnimation()},_ reparent:function(a){b.removeMulti(a);for(var c=0;c<a.length;c++)a[c]._parent=th is},_putChild:function(a,b){for(var c=b?"Cannot append an ancestor or self":"Can not prepend an ancestor or self",d=0;d<a.length;d++)if(this._isAncestor(a[d]))th row{type:DOMException.HIERARCHY_REQUEST_ERR,name:"HierarchyRequestError",message :c};for(var d=0;d<a.length;d++)b?this.children.push(a[d]):this.children.unshift( a[d]);this._reparent(a),this._rebuild()},append:function(){this._putChild(argume nts,!0)},prepend:function(){this._putChild(arguments,!1)},get parent(){return th is._parent},get firstChild(){return this.children.length?this.children[0]:null}, get lastChild(){return this.children.length?this.children[this.children.length-1 ]:null},clone:function(){for(var b=a.cloneTimingInput(this._timingInput),c=[],d= 0;d<this.children.length;d++)c.push(this.children[d].clone());return this instan ceof GroupEffect?new GroupEffect(c,b):new SequenceEffect(c,b)},remove:function() {b.removeMulti([this])}},window.SequenceEffect.prototype=Object.create(e.prototy pe),Object.defineProperty(window.SequenceEffect.prototype,"activeDuration",{get: function(){var a=0;return this.children.forEach(function(b){a+=d(b)}),Math.max(a ,0)}}),window.GroupEffect.prototype=Object.create(e.prototype),Object.defineProp erty(window.GroupEffect.prototype,"activeDuration",{get:function(){var a=0;retur n this.children.forEach(function(b){a=Math.max(a,d(b))}),a}}),b.newUnderlyingAni mationForGroup=function(c){var d,e=null,f=function(b){var c=d._wrapper;return c& &"pending"!=c.playState&&c.effect?null==b?void c._removeChildAnimations():0==b&& c.playbackRate<0&&(e||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateT imeFraction(a.calculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChi ld(function(a){a.currentTime=-1}),void c._removeChildAnimations()):void 0:void 0 },g=new KeyframeEffect(null,[],c._timing,c._id);return g.onsample=f,d=b.timeline ._play(g)},b.bindAnimationForGroup=function(a){a._animation._wrapper=a,a._isGrou p=!0,b.awaitStartTime(a),a._constructChildAnimations(),a._setExternalAnimation(a )},b.groupChildDuration=d}(c,e,f),b["true"]=a}({},function(){return this}());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698