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

Side by Side Diff: third_party/polymer/components/web-animations-js/web-animations-next-lite.min.js

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 3 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){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",this._easingFunction=x}function e(){return a.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}f unction f(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).forEach(function (c){if("auto"!=b[c]){if(("number"==typeof f[c]||"duration"==c)&&("number"!=typeo f b[c]||isNaN(b[c])))return;if("fill"==c&&v.indexOf(b[c])==-1)return;if("directi on"==c&&w.indexOf(b[c])==-1)return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecate d("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;f[c]=b[c]}}):f.duration=b,f}function g(a){return"number"==type of a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function h(b,c){return b=a.numeri cTimingToObject(b),f(b,c)}function i(a,b,c,d){return a<0||a>1||c<0||c>1?x:functi on(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(e<=0){va r g=0;return a>0?g=b/a:!b&&c>0&&(g=d/c),g*e}if(e>=1){var h=0;return c<1?h=(d-1)/ (c-1):1==c&&a<1&&(h=(b-1)/(a-1)),1+h*(e-1)}for(var i=0,j=1;i<j;){var k=(i+j)/2,l =f(a,c,k);if(Math.abs(e-l)<1e-5)return f(b,d,k);l<e?i=k:j=k}return f(b,d,k)}}fun ction j(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c%d}} function k(a){C||(C=document.createElement("div").style),C.animationTimingFuncti on="",C.animationTimingFunction=a;var b=C.animationTimingFunction;if(""==b&&e()) throw new TypeError(a+" is not a valid value for easing");return b}function l(a) {if("linear"==a)return x;var b=E.exec(a);if(b)return i.apply(this,b.slice(1).map (Number));var c=F.exec(a);if(c)return j(Number(c[1]),{start:y,middle:z,end:A}[c[ 2]]);var d=B[a];return d?d:x}function m(a){return Math.abs(n(a)/a.playbackRate)} function n(a){return 0===a.duration||0===a.iterations?0:a.duration*a.iterations} function o(a,b,c){if(null==b)return G;var d=c.delay+a+c.endDelay;return b<Math.m in(c.delay,d)?H:b>=Math.min(c.delay+a,d)?I:J}function p(a,b,c,d,e){switch(d){cas e H:return"backwards"==b||"both"==b?0:null;case J:return c-e;case I:return"forwa rds"==b||"both"==b?a:null;case G:return null}}function q(a,b,c,d,e){var f=e;retu rn 0===a?b!==H&&(f+=c):f+=d/a,f}function r(a,b,c,d,e,f){var g=a===1/0?b%1:a%1;re turn 0!==g||c!==I||0===d||0===e&&0!==f||(g=1),g}function s(a,b,c,d){return a===I &&b===1/0?1/0:1===c?Math.floor(d)-1:Math.floor(d)}function t(a,b,c){var d=a;if(" normal"!==a&&"reverse"!==a){var e=b;"alternate-reverse"===a&&(e+=1),d="normal",e !==1/0&&e%2!==0&&(d="reverse")}return"normal"===d?c:1-c}function u(a,b,c){var d= o(a,b,c),e=p(a,c.fill,b,d,c.delay);if(null===e)return null;var f=q(c.duration,d, c.iterations,e,c.iterationStart),g=r(f,c.iterationStart,d,c.iterations,e,c.durat ion),h=s(d,c.iterations,g,f),i=t(c.direction,h,g);return c._easingFunction(i)}va r v="backwards|forwards|both|none".split("|"),w="reverse|alternate|alternate-rev erse".split("|"),x=function(a){return a};d.prototype={_setMember:function(b,c){t his["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing= a.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=a. calculateActiveDuration(this._effect._timing),this._effect._animation&&this._eff ect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._p laybackRate},set delay(a){this._setMember("delay",a)},get delay(){return this._d elay},set endDelay(a){this._setMember("endDelay",a)},get endDelay(){return this. _endDelay},set fill(a){this._setMember("fill",a)},get fill(){return this._fill}, set iterationStart(a){if((isNaN(a)||a<0)&&e())throw new TypeError("iterationStar t must be a non-negative number, received: "+timing.iterationStart);this._setMem ber("iterationStart",a)},get iterationStart(){return this._iterationStart},set d uration(a){if("auto"!=a&&(isNaN(a)||a<0)&&e())throw new TypeError("duration must be non-negative or auto, received: "+a);this._setMember("duration",a)},get dura tion(){return this._duration},set direction(a){this._setMember("direction",a)},g et direction(){return this._direction},set easing(a){this._easingFunction=l(k(a) ),this._setMember("easing",a)},get easing(){return this._easing},set iterations( a){if((isNaN(a)||a<0)&&e())throw new TypeError("iterations must be non-negative, received: "+a);this._setMember("iterations",a)},get iterations(){return this._i terations}};var y=1,z=.5,A=0,B={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"eas e-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":j(1,y),"step-middl e":j(1,z),"step-end":j(1,A)},C=null,D="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",E=new RegExp("cubic-bezier\\("+D+","+D+","+D+","+D+"\\)"),F=/steps\(\s*(\d+)\s*,\s*(s tart|middle|end)\s*\)/,G=0,H=1,I=2,J=3;a.cloneTimingInput=c,a.makeTiming=f,a.num ericTimingToObject=g,a.normalizeTimingInput=h,a.calculateActiveDuration=m,a.calc ulateIterationProgress=u,a.calculatePhase=o,a.normalizeEasing=k,a.parseEasingFun ction=l}(c,f),function(a,b){function c(a,b){return a in k?k[a][b]||b:b}function d(a){return"display"===a||0===a.lastIndexOf("animation",0)||0===a.lastIndexOf("t ransition",0)}function e(a,b,e){if(!d(a)){var f=h[a];if(f){i.style[a]=b;for(var g in f){var j=f[g],k=i.style[j];e[j]=c(j,k)}}else e[a]=c(a,b)}}function f(a){var b=[];for(var c in a)if(!(c in["easing","offset","composite"])){var d=a[c];Array .isArray(d)||(d=[d]);for(var e,f=d.length,g=0;g<f;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),"co mposite"in a&&(e.composite=a.composite),e[c]=d[g],b.push(e)}return b.sort(functi on(a,b){return a.offset-b.offset}),b}function g(b){function c(){var a=d.length;n ull==d[a-1].offset&&(d[a-1].offset=1),a>1&&null==d[0].offset&&(d[0].offset=0);fo r(var b=0,c=d[0].offset,e=1;e<a;e++){var f=d[e].offset;if(null!=f){for(var g=1;g <e-b;g++)d[b+g].offset=c+(f-c)*g/(e-b);b=e,c=f}}}if(null==b)return[];window.Symb ol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Array.from(b)) ,Array.isArray(b)||(b=f(b));for(var d=b.map(function(b){var c={};for(var d in b) {var f=b[d];if("offset"==d){if(null!=f){if(f=Number(f),!isFinite(f))throw new Ty peError("Keyframe offsets must be numbers.");if(f<0||f>1)throw new TypeError("Ke yframe offsets must be between 0 and 1.")}}else if("composite"==d){if("add"==f|| "accumulate"==f)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedErro r",message:"add compositing is not supported"};if("replace"!=f)throw new TypeErr or("Invalid composite mode "+f+".")}else f="easing"==d?a.normalizeEasing(f):""+f ;e(d,f,c)}return void 0==c.offset&&(c.offset=null),void 0==c.easing&&(c.easing=" linear"),c}),g=!0,h=-(1/0),i=0;i<d.length;i++){var j=d[i].offset;if(null!=j){if( j<h)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or spe cify offsets.");h=j}else g=!1}return d=d.filter(function(a){return a.offset>=0&& a.offset<=1}),g||c(),d}var h={background:["backgroundImage","backgroundPosition" ,"backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin"," backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","bo rderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBo ttomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeft Style","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle", "borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBot tomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","bo rderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","bord erBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth"," borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyl e","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBot tomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["f ontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margi n:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor ","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBo ttom","paddingLeft"]},i=document.createElementNS("http://www.w3.org/1999/xhtml", "div"),j={thin:"1px",medium:"3px",thick:"5px"},k={borderBottomWidth:j,borderLeft Width:j,borderRightWidth:j,borderTopWidth:j,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:j,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.convertToArr ayForm=f,a.normalizeKeyframes=g}(c,f),function(a){var b={};a.isDeprecated=functi on(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth(h.getM onth()+3),!(g<h&&(a in b||console.warn("Web Animations: "+a+" "+f+" deprecated a nd will stop working on "+h.toDateString()+". "+d),b[a]=!0,1))},a.deprecated=fun ction(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.ani mate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|curren tTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").f orEach(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. length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedErr or",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=g,i=g+1,j=f[h].offs et,k=f[i].offset,l=j,m=k;0==g&&(l=-(1/0),0==k&&(i=h)),g==f.length-2&&(m=1/0,1==j &&(h=i)),d.push({applyFrom:l,applyTo:m,startOffset:f[h].offset,endOffset:f[i].of fset,easingFunction:a.parseEasingFunction(f[h].easing),property:e,interpolation: b.propertyInterpolation(e,f[h].value,f[i].value)})}return d.sort(function(a,b){r eturn a.startOffset-b.startOffset}),d}b.convertEffectInput=function(c){var f=a.n ormalizeKeyframes(c),g=d(f),h=e(g);return function(a,c){if(null!=c)h.filter(func tion(a){return c>=a.applyFrom&&c<a.applyTo}).forEach(function(d){var e=c-d.start Offset,f=d.endOffset-d.startOffset,g=0==f?0:d.easingFunction(e/f);b.apply(a,d.pr operty,d.interpolation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"comp osite"!=d&&b.clear(a,d)}}}(c,d,f),function(a,b,c){function d(a){return 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("Hyphenated proper ty names","2016-03-22","Use camelCase instead.",!0)&&(g=d(c)),"initial"!=e&&"ini tial"!=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:"transparent",bac kgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius: "0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"cur rentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidt h:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0 px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px , 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",l eft:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLef t:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHe ight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px ",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",pa ddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transparent ",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"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.ca lculateIterationProgress(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d} b.KeyframeEffect=function(c,e,f,g){var h,i=d(a.normalizeTimingInput(f)),j=b.conv ertEffectInput(e),k=function(){j(c,h)};return k._update=function(a){return h=i(a ),null!==h},k._clear=function(){j(c,null)},k._hasSameTarget=function(a){return c ===a},k._target=c,k._totalDuration=i._totalDuration,k._id=g,k},b.NullEffect=func tion(a){var b=function(){a&&(a(),a=null)};return b._update=function(){return nul l},b._totalDuration=0,b._hasSameTarget=function(){return!1},b}}(c,d,f),function( a,b){a.apply=function(b,c,d){b.style[a.propertyName(c)]=d},a.clear=function(b,c) {b.style[a.propertyName(c)]=""}}(d,f),function(a){window.Element.prototype.anima te=function(b,c){var d="";return c&&c.id&&(d=c.id),a.timeline._play(a.KeyframeEf fect(this,b,c,d))}}(d),function(a,b){function c(a,b,d){if("number"==typeof a&&"n umber"==typeof b)return a*(1-d)+b*d;if("boolean"==typeof a&&"boolean"==typeof b) return d<.5?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.Inte rpolation=function(a,b,d){return function(e){return d(c(a,b,e))}}}(d,f),function (a,b,c){a.sequenceNumber=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.t imeStamp=Date.now()};b.Animation=function(b){this.id="",b&&b._id&&(this.id=b._id ),this._sequenceNumber=a.sequenceNumber++,this._currentTime=0,this._startTime=nu ll,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=! 0,this.onfinish=null,this._finishHandlers=[],this._effect=b,this._inEffect=this. _effect._update(0),this._idle=!0,this._currentTimePending=!1},b.Animation.protot ype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inE ffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentT ime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0 ,b.timeline._animations.push(this))},_tickCurrentTime:function(a,b){a!=this._cur rentTime&&(this._currentTime=a,this._isFinished&&!b&&(this._currentTime=this._pl aybackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){retu rn this._idle||this._currentTimePending?null:this._currentTime},set currentTime( a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startTime||(this._start Time=this._timeline.currentTime-a/this._playbackRate),this._currentTimePending=! 1,this._currentTime!=a&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickC urrentTime(a,!0),b.applyDirtiedAnimation(this)))},get startTime(){return this._s tartTime},set startTime(a){a=+a,isNaN(a)||this._paused||this._idle||(this._start Time=a,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.p laybackRate),b.applyDirtiedAnimation(this))},get playbackRate(){return this._pla ybackRate},set playbackRate(a){if(a!=this._playbackRate){var c=this.currentTime; this._playbackRate=a,this._startTime=null,"paused"!=this.playState&&"idle"!=this .playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirt iedAnimation(this)),null!=c&&(this.currentTime=c)}},get _isFinished(){return!thi s._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._pl aybackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._t otalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!t his._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paus ed?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._p laybackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite du ration","InvalidStateError");this._currentTime=this._totalDuration}},play:functi on(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._start Time=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtie dAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?th is._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._start Time=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this. _playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.c urrentTime,this._currentTimePending=!1,b.applyDirtiedAnimation(this))},cancel:fu nction(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._ isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,thi s._effect._update(null),b.applyDirtiedAnimation(this))},reverse:function(){this. playbackRate*=-1,this.play()},addEventListener:function(a,b){"function"==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){if(this._isFinished){if(!this._finishedFl ag){var b=new d(this,this._currentTime,a),c=this._finishHandlers.concat(this.onf inish?[this.onfinish]:[]);setTimeout(function(){c.forEach(function(a){a.call(b.t arget,b)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function (a,b){this._idle||this._paused||(null==this._startTime?b&&(this.startTime=a-this ._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((a-this ._startTime)*this.playbackRate)),b&&(this._currentTimePending=!1,this._fireEvent s(a))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._fi nishedFlag},_targetAnimations:function(){var a=this._effect._target;return a._ac tiveAnimations||(a._activeAnimations=[]),a._activeAnimations},_markTarget:functi on(){var a=this._targetAnimations();a.indexOf(this)===-1&&a.push(this)},_unmarkT arget:function(){var a=this._targetAnimations(),b=a.indexOf(this);b!==-1&&a.spli ce(b,1)}}}(c,d,f),function(a,b,c){function d(a){var b=j;j=[],a<q.currentTime&&(a =q.currentTime),q._animations.sort(e),q._animations=h(a,!0,q._animations)[0],b.f orEach(function(b){b[1](a)}),g(),l=void 0}function e(a,b){return a._sequenceNumb er-b._sequenceNumber}function f(){this._animations=[],this.currentTime=window.pe rformance&&performance.now?performance.now():0}function g(){o.forEach(function(a ){a()}),o.length=0}function h(a,c,d){p=!0,n=!1;var e=b.timeline;e.currentTime=a, m=!1;var f=[],g=[],h=[],i=[];return d.forEach(function(b){b._tick(a,c),b._inEffe ct?(g.push(b._effect),b._markTarget()):(f.push(b._effect),b._unmarkTarget()),b._ needsTick&&(m=!0);var d=b._inEffect||b._needsTick;b._inTimeline=d,d?h.push(b):i. push(b)}),o.push.apply(o,f),o.push.apply(o,g),m&&requestAnimationFrame(function( ){}),p=!1,[h,i]}var i=window.requestAnimationFrame,j=[],k=0;window.requestAnimat ionFrame=function(a){var b=k++;return 0==j.length&&i(d),j.push([b,a]),b},window. cancelAnimationFrame=function(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.pu sh(d),b.restart(),b.applyDirtiedAnimation(d),d}};var l=void 0,m=!1,n=!1;b.restar t=function(){return m||(m=!0,requestAnimationFrame(function(){}),n=!0),n},b.appl yDirtiedAnimation=function(a){if(!p){a._markTarget();var c=a._targetAnimations() ;c.sort(e);var d=h(b.timeline.currentTime,!1,c.slice())[1];d.forEach(function(a) {var b=q._animations.indexOf(a);b!==-1&&q._animations.splice(b,1)}),g()}};var o= [],p=!1,q=new f;b.timeline=q}(c,d,f),function(a){function b(a,b){var c=a.exec(b) ;if(c)return c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]}funct ion c(a,b){b=b.replace(/^\s*/,"");var c=a(b);if(c)return[c[0],c[1].replace(/^\s* /,"")]}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)retur n[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++,c<=0))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]}}f unction i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrimmed(b[e],c);i f(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}if(""==c)return d}funct ion j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k=0;k<j;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(function(a,b){return i[b](a)}).join(c);r eturn 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]);retu rn b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a.consumeParenthe sised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRepeated=j.bind(nul l,null),a.mergeWrappedNestedRepeated=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.consumeLengthOrPercent(b);if(c)return d.lengths.push(c[0]),c;var c=a.consume Color(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,lengths:[],color:null} ,e=a.consumeRepeated(c,/^/,b);if(e&&e[0].length)return[d,e[1]]}function c(c){var d=a.consumeRepeated(b,/^,/,c);if(d&&""==d[1])return d[0]}function d(b,c){for(;b .lengths.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 .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.len gths[h],2==h);f[0].push(i[0]),g[0].push(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,funct ion(a){for(var c=b.inset?"inset ":" ",f=0;f<e.length;f++)c+=e[f](a[0][f])+" ";re turn 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.leng th||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.addPro pertiesHandler(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){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(a))return Number(a)} function f(a,b){return[a,b,c]}function g(a,b){if(0!=a)return i(0,1/0)(a,b)}funct ion 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.clamp=d,a.addPropertiesHandler(e,i(0,1/0),["border- image-width","line-height"]),a.addPropertiesHandler(e,i(0,1),["opacity","shape-i mage-threshold"]),a.addPropertiesHandler(e,g,["flex-grow","flex-shrink"]),a.addP ropertiesHandler(e,h,["orphans","widows"]),a.addPropertiesHandler(e,j,["z-index" ]),a.parseNumber=e,a.mergeNumbers=f,a.numberToString=c}(d,f),function(a,b){funct ion c(a,b){if("visible"==a||"visible"==b)return[0,1,function(c){return c<=0?a:c> =1?b:"visible"}]}a.addPropertiesHandler(String,c,["visibility"])}(d),function(a, b){function c(a){a=a.trim(),f.fillStyle="#000",f.fillStyle=a;var b=f.fillStyle;i f(f.fillStyle="#fff",f.fillStyle=a,b==f.fillStyle){f.fillRect(0,0,1,1);var c=f.g etImageData(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.m ax(0,Math.min(255,a))}if(b[3])for(var d=0;d<3;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 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);if(b&&""==b[1])return b[0] },n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(void 0 ,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background-siz e"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width","bor der-left-width","border-right-width","border-top-width","flex-basis","font-size" ,"height","line-height","max-height","max-width","outline-width","width"]),a.add PropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radius", "border-top-left-radius","border-top-right-radius","bottom","left","letter-spaci ng","margin-bottom","margin-left","margin-right","margin-top","min-height","min- width","outline-offset","padding-bottom","padding-left","padding-right","padding -top","perspective","right","shape-margin","text-indent","top","vertical-align", "word-spacing"])}(d,f),function(a,b){function c(b){return a.consumeLengthOrPerce nt(b)||a.consumeToken(/^auto/,b)}function d(b){var d=a.consumeList([a.ignore(a.c onsumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\(/)),a.cons umeRepeated.bind(null,c,/^,/),a.ignore(a.consumeToken.bind(null,/^\)/))],b);if(d &&4==d[0].length)return d[0]}function e(b,c){return"auto"==b||"auto"==c?[!0,!1,f unction(d){var e=d?b:c;if("auto"==e)return"auto";var f=a.mergeDimensions(e,e);re turn 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.mergeBoxes=g,a. addPropertiesHandler(d,g,["clip"])}(d,f),function(a,b){function c(a){return func tion(b){var c=0;return a.map(function(a){return a===k?b[c++]:a})}}function d(a){ return a}function e(b){if(b=b.toLowerCase().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=n[g];if(!h)return;var i=c[2].split(","),j=h[0];if(j.leng th<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.parseLe ngthOrPercent,L:a.parseLength}[r.toUpperCase()](q):{a:m,n:k[0],t:l}[r],void 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.decompositi onPair!==c){b.decompositionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decomp ositionPair!==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].pu sh(0),e[0].push(1),[d,e,function(b){var c=a.quat(d[0][3],e[0][3],b[5]),g=a.compo seMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(f).join(",");return h}])}function h(a){r eturn a.replace(/[xy]/,"")}function i(a){return a.replace(/(x|y|z|3d)?$/,"3d")}f unction 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"==typeof 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)&&("matrix"==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.length;B++){v ar 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(function(a,c) {return q[b][1][c](a)}).join(",");return"matrix"==q[b][0]&&16==c.split(",").leng th&&(q[b][0]="matrix3d"),q[b][0]+"("+c+")"}).join(" ")}]}var k=null,l={px: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:["NNNNN NNNNNNNNNNN",d],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d: ["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])],translat e:["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.addProperti esHandler(e,j,["transform"])}(d,f),function(a,b){function c(a,b){b.concat([a]).f orEach(function(b){b in document.documentElement.style&&(d[a]=b)})}var d={};c("t ransform",["webkitTransform","msTransform"]),c("transformOrigin",["webkitTransfo rmOrigin"]),c("perspective",["webkitPerspective"]),c("perspectiveOrigin",["webki tPerspectiveOrigin"]),a.propertyName=function(a){return d[a]||a}}(d,f)}(),!funct ion(){if(void 0===document.createElement("div").animate([]).oncancel){var a;if(w indow.performance&&performance.now)var a=function(){return performance.now()};el se var a=function(){return Date.now()};var b=function(a,b,c){this.target=a,this. currentTime=b,this.timelineTime=c,this.type="cancel",this.bubbles=!1,this.cancel able=!1, 15 !function(a,b){var c={},d={},e={};!function(a,b){function c(a){if("number"==type of a)return a;var b={};for(var c in a)b[c]=a[c];return b}function d(){this._dela y=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1 ,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="li near",this._easingFunction=x}function e(){return a.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function f(b,c,e){var f=new d;return c&&(f.fill="both",f.duration="auto"),"number"!=type of b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(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==v.indexOf(b[c]))return;if("direction"==c& &-1==w.indexOf(b[c]))return;if("playbackRate"==c&&1!==b[c]&&a.isDeprecated("Anim ationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead ."))return;f[c]=b[c]}}):f.duration=b,f}function g(a){return"number"==typeof a&&( a=isNaN(a)?{duration:0}:{duration:a}),a}function h(b,c){return b=a.numericTiming ToObject(b),f(b,c)}function i(a,b,c,d){return a<0||a>1||c<0||c>1?x:function(e){f unction f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(e<=0){var g=0;r eturn a>0?g=b/a:!b&&c>0&&(g=d/c),g*e}if(e>=1){var h=0;return c<1?h=(d-1)/(c-1):1 ==c&&a<1&&(h=(b-1)/(a-1)),1+h*(e-1)}for(var i=0,j=1;i<j;){var k=(i+j)/2,l=f(a,c, k);if(Math.abs(e-l)<1e-5)return f(b,d,k);l<e?i=k:j=k}return f(b,d,k)}}function j (a,b){return function(c){if(c>=1)return 1;var d=1/a;return(c+=b*d)-c%d}}function k(a){C||(C=document.createElement("div").style),C.animationTimingFunction="",C. animationTimingFunction=a;var b=C.animationTimingFunction;if(""==b&&e())throw ne w TypeError(a+" is not a valid value for easing");return b}function l(a){if("lin ear"==a)return x;var b=E.exec(a);if(b)return i.apply(this,b.slice(1).map(Number) );var c=F.exec(a);return c?j(Number(c[1]),{start:y,middle:z,end:A}[c[2]]):B[a]|| x}function m(a){return Math.abs(n(a)/a.playbackRate)}function n(a){return 0===a. duration||0===a.iterations?0:a.duration*a.iterations}function o(a,b,c){if(null== b)return G;var d=c.delay+a+c.endDelay;return b<Math.min(c.delay,d)?H:b>=Math.min (c.delay+a,d)?I:J}function p(a,b,c,d,e){switch(d){case H:return"backwards"==b||" both"==b?0:null;case J:return c-e;case I:return"forwards"==b||"both"==b?a:null;c ase G:return null}}function q(a,b,c,d,e){var f=e;return 0===a?b!==H&&(f+=c):f+=d /a,f}function r(a,b,c,d,e,f){var g=a===1/0?b%1:a%1;return 0!==g||c!==I||0===d||0 ===e&&0!==f||(g=1),g}function s(a,b,c,d){return a===I&&b===1/0?1/0:1===c?Math.fl oor(d)-1:Math.floor(d)}function t(a,b,c){var d=a;if("normal"!==a&&"reverse"!==a) {var e=b;"alternate-reverse"===a&&(e+=1),d="normal",e!==1/0&&e%2!=0&&(d="reverse ")}return"normal"===d?c:1-c}function u(a,b,c){var d=o(a,b,c),e=p(a,c.fill,b,d,c. delay);if(null===e)return null;var f=q(c.duration,d,c.iterations,e,c.iterationSt art),g=r(f,c.iterationStart,d,c.iterations,e,c.duration),h=s(d,c.iterations,g,f) ,i=t(c.direction,h,g);return c._easingFunction(i)}var v="backwards|forwards|both |none".split("|"),w="reverse|alternate|alternate-reverse".split("|"),x=function( a){return a};d.prototype={_setMember:function(b,c){this["_"+b]=c,this._effect&&( this._effect._timingInput[b]=c,this._effect._timing=a.normalizeTimingInput(this. _effect._timingInput),this._effect.activeDuration=a.calculateActiveDuration(this ._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnder lyingAnimation())},get playbackRate(){return this._playbackRate},set delay(a){th is._setMember("delay",a)},get delay(){return this._delay},set endDelay(a){this._ setMember("endDelay",a)},get endDelay(){return this._endDelay},set fill(a){this. _setMember("fill",a)},get fill(){return this._fill},set iterationStart(a){if((is NaN(a)||a<0)&&e())throw new TypeError("iterationStart must be a non-negative num ber, received: "+timing.iterationStart);this._setMember("iterationStart",a)},get iterationStart(){return this._iterationStart},set duration(a){if("auto"!=a&&(is NaN(a)||a<0)&&e())throw new TypeError("duration must be non-negative or auto, re ceived: "+a);this._setMember("duration",a)},get duration(){return this._duration },set direction(a){this._setMember("direction",a)},get direction(){return this._ direction},set easing(a){this._easingFunction=l(k(a)),this._setMember("easing",a )},get easing(){return this._easing},set iterations(a){if((isNaN(a)||a<0)&&e())t hrow new TypeError("iterations must be non-negative, received: "+a);this._setMem ber("iterations",a)},get iterations(){return this._iterations}};var y=1,z=.5,A=0 ,B={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in -out":i(.42,0,.58,1),"step-start":j(1,y),"step-middle":j(1,z),"step-end":j(1,A)} ,C=null,D="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",E=new RegExp("cubic-bezier\\("+D+ ","+D+","+D+","+D+"\\)"),F=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,G=0,H =1,I=2,J=3;a.cloneTimingInput=c,a.makeTiming=f,a.numericTimingToObject=g,a.norma lizeTimingInput=h,a.calculateActiveDuration=m,a.calculateIterationProgress=u,a.c alculatePhase=o,a.normalizeEasing=k,a.parseEasingFunction=l}(c),function(a,b){fu nction c(a,b){return a in k?k[a][b]||b:b}function d(a){return"display"===a||0=== a.lastIndexOf("animation",0)||0===a.lastIndexOf("transition",0)}function e(a,b,e ){if(!d(a)){var f=h[a];if(f){i.style[a]=b;for(var g in f){var j=f[g],k=i.style[j ];e[j]=c(j,k)}}else e[a]=c(a,b)}}function f(a){var b=[];for(var c in a)if(!(c in ["easing","offset","composite"])){var d=a[c];Array.isArray(d)||(d=[d]);for(var e ,f=d.length,g=0;g<f;g++)e={},e.offset="offset"in a?a.offset:1==f?1:g/(f-1),"easi ng"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 g( b){function c(){var a=d.length;null==d[a-1].offset&&(d[a-1].offset=1),a>1&&null= =d[0].offset&&(d[0].offset=0);for(var b=0,c=d[0].offset,e=1;e<a;e++){var f=d[e]. offset;if(null!=f){for(var g=1;g<e-b;g++)d[b+g].offset=c+(f-c)*g/(e-b);b=e,c=f}} }if(null==b)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Sym bol.iterator]&&(b=Array.from(b)),Array.isArray(b)||(b=f(b));for(var d=b.map(func tion(b){var c={};for(var d in b){var f=b[d];if("offset"==d){if(null!=f){if(f=Num ber(f),!isFinite(f))throw new TypeError("Keyframe offsets must be numbers.");if( f<0||f>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==d){if("add"==f||"accumulate"==f)throw{type:DOMException.NOT_SUPP ORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};i f("replace"!=f)throw new TypeError("Invalid composite mode "+f+".")}else f="easi ng"==d?a.normalizeEasing(f):""+f;e(d,f,c)}return void 0==c.offset&&(c.offset=nul l),void 0==c.easing&&(c.easing="linear"),c}),g=!0,h=-1/0,i=0;i<d.length;i++){var j=d[i].offset;if(null!=j){if(j<h)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");h=j}else g=!1}return d=d.filter(fu nction(a){return a.offset>=0&&a.offset<=1}),g||c(),d}var h={background:["backgro undImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAt tachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["border TopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle ","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth" ,"borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBot tomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor" ,"borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLe ftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius ","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],bor derRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:[" borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth" ,"borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","fle xShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","f ontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","margi nLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["padding Top","paddingRight","paddingBottom","paddingLeft"]},i=document.createElementNS(" http://www.w3.org/1999/xhtml","div"),j={thin:"1px",medium:"3px",thick:"5px"},k={ borderBottomWidth:j,borderLeftWidth:j,borderRightWidth:j,borderTopWidth:j,fontSi ze:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-l arge":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidt h:j,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.convertToArrayForm=f,a.normalizeKeyframes=g}(c),function(a){va r 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),!(g<h&&(a in b||console.warn("Web Animatio ns: "+a+" "+f+" deprecated and will stop working on "+h.toDateString()+". "+d),b [a]=!0,1))},a.deprecated=function(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.animate){var a=document.documentElement.animate([],0),b =!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|start Time|playState".split("|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)retur n}!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.length-1].offset)throw{type:DOMException.NOT_SUPPORT ED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}r eturn 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=g,i=g+1,j=f[h].offset,k=f[i].offset,l=j,m=k;0==g&&(l=-1/0,0==k&&(i=h)), g==f.length-2&&(m=1/0,1==j&&(h=i)),d.push({applyFrom:l,applyTo:m,startOffset:f[h ].offset,endOffset:f[i].offset,easingFunction:a.parseEasingFunction(f[h].easing) ,property:e,interpolation:b.propertyInterpolation(e,f[h].value,f[i].value)})}ret urn d.sort(function(a,b){return a.startOffset-b.startOffset}),d}b.convertEffectI nput=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 c>=a.applyFrom&&c<a.applyTo}).forEach(f unction(d){var e=c-d.startOffset,f=d.endOffset-d.startOffset,g=0==f?0:d.easingFu nction(e/f);b.apply(a,d.property,d.interpolation(g))});else for(var d in g)"offs et"!=d&&"easing"!=d&&"composite"!=d&&b.clear(a,d)}}}(c,d),function(a,b,c){functi on d(a){return 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.lengt h;f++){e(a,b,d(c[f]))}}function g(c,e,f){var g=c;/-/.test(c)&&!a.isDeprecated("H yphenated property names","2016-03-22","Use camelCase instead.",!0)&&(g=d(c)),"i nitial"!=e&&"initial"!=f||("initial"==e&&(e=i[g]),"initial"==f&&(f=i[g]));for(va r 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);re turn function(a){return 0==a?e:1==a?f:o(a)}}}}return b.Interpolation(!1,!0,funct ion(a){return a?f:e})}var h={};b.addPropertiesHandler=f;var i={backgroundColor:" transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderB ottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",bord erLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor" ,borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",border TopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto ",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400" ,height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom :"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWi dth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",ou tlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddi ngRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoff set:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",trans form:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"norma l",zIndex:"auto"};b.propertyInterpolation=g}(c,d),function(a,b,c){function d(b){ var c=a.calculateActiveDuration(b),d=function(d){return a.calculateIterationProg ress(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d}b.KeyframeEffect=fun ction(c,e,f,g){var h,i=d(a.normalizeTimingInput(f)),j=b.convertEffectInput(e),k= function(){j(c,h)};return k._update=function(a){return null!==(h=i(a))},k._clear =function(){j(c,null)},k._hasSameTarget=function(a){return c===a},k._target=c,k. _totalDuration=i._totalDuration,k._id=g,k}}(c,d),function(a,b){a.apply=function( b,c,d){b.style[a.propertyName(c)]=d},a.clear=function(b,c){b.style[a.propertyNam e(c)]=""}}(d),function(a){window.Element.prototype.animate=function(b,c){var d=" ";return c&&c.id&&(d=c.id),a.timeline._play(a.KeyframeEffect(this,b,c,d))}}(d),f unction(a,b){function c(a,b,d){if("number"==typeof a&&"number"==typeof b)return a*(1-d)+b*d;if("boolean"==typeof a&&"boolean"==typeof b)return d<.5?a:b;if(a.len gth==b.length){for(var e=[],f=0;f<a.length;f++)e.push(c(a[f],b[f],d));return e}t hrow"Mismatched interpolation arguments "+a+":"+b}a.Interpolation=function(a,b,d ){return function(e){return d(c(a,b,e))}}}(d),function(a,b,c){a.sequenceNumber=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.defa ultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};b.Ani mation=function(b){this.id="",b&&b._id&&(this.id=b._id),this._sequenceNumber=a.s equenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._p laybackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this. _finishHandlers=[],this._effect=b,this._inEffect=this._effect._update(0),this._i dle=!0,this._currentTimePending=!1},b.Animation.prototype={_ensureAlive:function (){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update (-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!th is._inEffect&&this._finishedFlag||(this._inTimeline=!0,b.timeline._animations.pu sh(this))},_tickCurrentTime:function(a,b){a!=this._currentTime&&(this._currentTi me=a,this._isFinished&&!b&&(this._currentTime=this._playbackRate>0?this._totalDu ration:0),this._ensureAlive())},get currentTime(){return this._idle||this._curre ntTimePending?null:this._currentTime},set currentTime(a){a=+a,isNaN(a)||(b.resta rt(),this._paused||null==this._startTime||(this._startTime=this._timeline.curren tTime-a/this._playbackRate),this._currentTimePending=!1,this._currentTime!=a&&(t his._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(a,!0),b.applyDi rtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(a) {a=+a,isNaN(a)||this._paused||this._idle||(this._startTime=a,this._tickCurrentTi me((this._timeline.currentTime-this._startTime)*this.playbackRate),b.applyDirtie dAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRat e(a){if(a!=this._playbackRate){var c=this.currentTime;this._playbackRate=a,this. _startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishe dFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)),null!= c&&(this.currentTime=c)}},get _isFinished(){return!this._idle&&(this._playbackRa te>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._curren tTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playStat e(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playb ackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinish ed?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._curre ntTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to re wind negative playback rate animation with infinite duration","InvalidStateError ");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this ._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedF lag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)},pause:fu nction(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(), this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0} ,finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._tota lDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTi mePending=!1,b.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&( this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finish edFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),b. applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play ()},addEventListener:function(a,b){"function"==typeof b&&"finish"==a&&this._fini shHandlers.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){if(this._isFinished){if(!this._finishedFlag){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._finis hedFlag=!0}}else this._finishedFlag=!1},_tick:function(a,b){this._idle||this._pa used||(null==this._startTime?b&&(this.startTime=a-this._currentTime/this.playbac kRate):this._isFinished||this._tickCurrentTime((a-this._startTime)*this.playback Rate)),b&&(this._currentTimePending=!1,this._fireEvents(a))},get _needsTick(){re turn this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimati ons:function(){var a=this._effect._target;return a._activeAnimations||(a._active Animations=[]),a._activeAnimations},_markTarget:function(){var a=this._targetAni mations();-1===a.indexOf(this)&&a.push(this)},_unmarkTarget:function(){var a=thi s._targetAnimations(),b=a.indexOf(this);-1!==b&&a.splice(b,1)}}}(c,d),function(a ,b,c){function d(a){var b=j;j=[],a<q.currentTime&&(a=q.currentTime),q._animation s.sort(e),q._animations=h(a,!0,q._animations)[0],b.forEach(function(b){b[1](a)}) ,g(),l=void 0}function e(a,b){return a._sequenceNumber-b._sequenceNumber}functio n f(){this._animations=[],this.currentTime=window.performance&&performance.now?p erformance.now():0}function g(){o.forEach(function(a){a()}),o.length=0}function h(a,c,d){p=!0,n=!1,b.timeline.currentTime=a,m=!1;var e=[],f=[],g=[],h=[];return d.forEach(function(b){b._tick(a,c),b._inEffect?(f.push(b._effect),b._markTarget( )):(e.push(b._effect),b._unmarkTarget()),b._needsTick&&(m=!0);var d=b._inEffect| |b._needsTick;b._inTimeline=d,d?g.push(b):h.push(b)}),o.push.apply(o,e),o.push.a pply(o,f),m&&requestAnimationFrame(function(){}),p=!1,[g,h]}var i=window.request AnimationFrame,j=[],k=0;window.requestAnimationFrame=function(a){var b=k++;retur n 0==j.length&&i(d),j.push([b,a]),b},window.cancelAnimationFrame=function(a){j.f orEach(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.applyDirtiedAnim ation(d),d}};var l=void 0,m=!1,n=!1;b.restart=function(){return m||(m=!0,request AnimationFrame(function(){}),n=!0),n},b.applyDirtiedAnimation=function(a){if(!p) {a._markTarget();var c=a._targetAnimations();c.sort(e),h(b.timeline.currentTime, !1,c.slice())[1].forEach(function(a){var b=q._animations.indexOf(a);-1!==b&&q._a nimations.splice(b,1)}),g()}};var o=[],p=!1,q=new f;b.timeline=q}(c,d),function( a){function b(a,b){var c=a.exec(b);if(c)return c=a.ignoreCase?c[0].toLowerCase() :c[0],[c,b.substr(c.length)]}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);i f(c)return[c[0],c[1].replace(/^\s*/,"")]}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[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.t est(b[d])||0!=c);d++)if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,c<=0))br eak;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 f unction(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function (c){return a(c)||[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 ]}if(""==c)return d}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e. length),k=0;k<j;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(function(a,b){r eturn 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.pu sh(function(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.leng th;c++)b+=f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRep eated=d,a.consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.merge NestedRepeated=j.bind(null,null),a.mergeWrappedNestedRepeated=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.consumeLengthOrPercent(b);if(c)return d.lengths.pus h(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);if(e&&e[0].length)return[ d,e[1]]}function c(c){var d=a.consumeRepeated(b,/^,/,c);if(d&&""==d[1])return d[ 0]}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.length,c.lengths.len gth);)b.lengths.push({px:0});for(;c.lengths.length<Math.max(b.lengths.length,c.l engths.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.mergeDime nsions(b.lengths[h],c.lengths[h],2==h);f[0].push(i[0]),g[0].push(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(v ar 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.b ind(null,d,", ");a.addPropertiesHandler(c,f,["box-shadow","text-shadow"])}(d),fu nction(a,b){function c(a){return a.toFixed(3).replace(/0+$/,"").replace(/\.$/,"" )}function d(a,b,c){return Math.min(b,Math.max(a,c))}function e(a){if(/^\s*[-+]? (\d*\.)?\d+\s*$/.test(a))return Number(a)}function f(a,b){return[a,b,c]}function g(a,b){if(0!=a)return i(0,1/0)(a,b)}function h(a,b){return[a,b,function(a){retu rn Math.round(d(1,1/0,a))}]}function i(a,b){return function(e,f){return[e,f,func tion(e){return c(d(a,b,e))}]}}function j(a){var b=a.trim().split(/\s*[\s,]\s*/); if(0!==b.length){for(var c=[],d=0;d<b.length;d++){var f=e(b[d]);if(void 0===f)re turn;c.push(f)}return c}}function k(a,b){if(a.length==b.length)return[a,b,functi on(a){return a.map(c).join(" ")}]}function l(a,b){return[a,b,Math.round]}a.clamp =d,a.addPropertiesHandler(j,k,["stroke-dasharray"]),a.addPropertiesHandler(e,i(0 ,1/0),["border-image-width","line-height"]),a.addPropertiesHandler(e,i(0,1),["op acity","shape-image-threshold"]),a.addPropertiesHandler(e,g,["flex-grow","flex-s hrink"]),a.addPropertiesHandler(e,h,["orphans","widows"]),a.addPropertiesHandler (e,l,["z-index"]),a.parseNumber=e,a.parseNumberList=j,a.mergeNumbers=f,a.numberT oString=c}(d),function(a,b){function c(a,b){if("visible"==a||"visible"==b)return [0,1,function(c){return c<=0?a:c>=1?b:"visible"}]}a.addPropertiesHandler(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.fillStyle=a,b==f.fillSty le){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,functi on(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;d<3;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 e=document.createElementNS("http://www.w3.org/199 9/xhtml","canvas");e.width=e.height=1;var f=e.getContext("2d");a.addPropertiesHa ndler(c,d,["background-color","border-bottom-color","border-left-color","border- right-color","border-top-color","color","fill","flood-color","lighting-color","o utline-color","stop-color","stroke","text-decoration-color"]),a.consumeColor=a.c onsumeParenthesised.bind(null,c),a.mergeColors=d}(d),function(a,b){function c(a) {function b(){var b=h.exec(a);g=b?b[0]:void 0}function c(){var a=Number(g);retur n b(),a}function d(){if("("!==g)return c();b();var a=f();return")"!==g?NaN:(b(), a)}function e(){for(var a=d();"*"===g||"/"===g;){var c=g;b();var e=d();"*"===c?a *=e:a/=e}return a}function f(){for(var a=e();"+"===g||"-"===g;){var c=g;b();var d=e();"+"===c?a+=d:a-=d}return a}var g,h=/([\+\-\w\.]+|[\(\)\*\/])/g;return b(), f()}function d(a,b){if("0"==(b=b.trim().toLowerCase())&&"px".search(a)>=0)return {px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var d={};b=b.repla ce(a,function(a){return d[a]=null,"U"+a});for(var e="U("+a.source+")",f=b.replac e(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+e,"g"),"D").rep lace(/\s[+-]\s/g,"O").replace(/\s/g,""),g=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g, /\((N|D)\)/g],h=0;h<g.length;)g[h].test(f)?(f=f.replace(g[h],"$1"),h=0):h++;if(" D"==f){for(var i in d){var j=c(b.replace(new RegExp("U"+i,"g"),"").replace(new R egExp(e,"g"),"*0"));if(!isFinite(j))return;d[i]=j}return d}}}function e(a,b){ret urn f(a,b,!0)}function f(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.ind exOf(e)<0&&f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(functio n(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.len gth&&d&&(c=Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.length >1?"calc("+c+")":c}]}var g="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",h=d. bind(null,new RegExp(g,"g")),i=d.bind(null,new RegExp(g+"|%","g")),j=d.bind(null ,/deg|rad|grad|turn/g);a.parseLength=h,a.parseLengthOrPercent=i,a.consumeLengthO rPercent=a.consumeParenthesised.bind(null,i),a.parseAngle=j,a.mergeDimensions=f; var k=a.consumeParenthesised.bind(null,h),l=a.consumeRepeated.bind(void 0,k,/^/) ,m=a.consumeRepeated.bind(void 0,l,/^,/);a.consumeSizePairList=m;var n=function( a){var b=m(a);if(b&&""==b[1])return b[0]},o=a.mergeNestedRepeated.bind(void 0,e, " "),p=a.mergeNestedRepeated.bind(void 0,o,",");a.mergeNonNegativeSizePair=o,a.a ddPropertiesHandler(n,p,["background-size"]),a.addPropertiesHandler(i,e,["border -bottom-width","border-image-width","border-left-width","border-right-width","bo rder-top-width","flex-basis","font-size","height","line-height","max-height","ma x-width","outline-width","width"]),a.addPropertiesHandler(i,f,["border-bottom-le ft-radius","border-bottom-right-radius","border-top-left-radius","border-top-rig ht-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margi n-right","margin-top","min-height","min-width","outline-offset","padding-bottom" ,"padding-left","padding-right","padding-top","perspective","right","shape-margi n","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(d) ,function(a,b){function c(b){return a.consumeLengthOrPercent(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);if(d&&4==d[0].length)retur n d[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.me rgeDimensions(b,c)}function f(a){return"rect("+a+")"}var g=a.mergeWrappedNestedR epeated.bind(null,f,e,", ");a.parseBox=d,a.mergeBoxes=g,a.addPropertiesHandler(d ,g,["clip"])}(d),function(a,b){function c(a){return function(b){var c=0;return a .map(function(a){return a===k?b[c++]:a})}}function d(a){return a}function e(b){i f("none"==(b=b.toLowerCase().trim()))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= n[g];if(!h)return;var i=c[2].split(","),j=h[0];if(j.length<i.length)return;for(v ar k=[],o=0;o<j.length;o++){var p,q=i[o],r=j[o];if(void 0===(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]))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.decompositionPair!==c){b.decomposit ionPair=c;var d=a.makeMatrixDecomposition(b)}if(c.decompositionPair!==b){c.decom positionPair=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]);return a.composeMatrix(b[0],b[1], b[2],c,b[4]).map(f).join(",")}])}function h(a){return a.replace(/[xy]/,"")}funct ion i(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function j(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 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"==typeof 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)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];i f(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.p ush(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;va r 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.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 k=null,l={px: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"],rot atex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["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",n ull,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.addPropertiesHandler(e,j,["transform"]),a.t ransformToSvgMatrix=function(b){var c=a.transformListToMatrix(e(b));return"matri x("+f(c[0])+" "+f(c[1])+" "+f(c[4])+" "+f(c[5])+" "+f(c[12])+" "+f(c[13])+")"}}( d),function(a,b){function c(a,b){b.concat([a]).forEach(function(b){b in document .documentElement.style&&(d[a]=b),e[b]=a})}var d={},e={};c("transform",["webkitTr ansform","msTransform"]),c("transformOrigin",["webkitTransformOrigin"]),c("persp ective",["webkitPerspective"]),c("perspectiveOrigin",["webkitPerspectiveOrigin"] ),a.propertyName=function(a){return d[a]||a},a.unprefixedPropertyName=function(a ){return e[a]||a}}(d)}(),function(){if(void 0===document.createElement("div").an imate([]).oncancel){var a;if(window.performance&&performance.now)var a=function( ){return performance.now()};else var a=function(){return Date.now()};var b=funct ion(a,b,c){this.target=a,this.currentTime=b,this.timelineTime=c,this.type="cance l",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(th is,d,e);f._cancelHandlers=[],f.oncancel=null;var g=f.cancel;f.cancel=function(){ g.call(this);var c=new b(this,null,a()),d=this._cancelHandlers.concat(this.oncan cel?[this.oncancel]:[]);setTimeout(function(){d.forEach(function(a){a.call(c.tar get,c)})},0)};var h=f.addEventListener;f.addEventListener=function(a,b){"functio n"==typeof b&&"cancel"==a?this._cancelHandlers.push(b):h.call(this,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)}els e i.call(this,a,b)},f}}}(),function(a){var b=document.documentElement,c=null,d=! 1;try{var e=getComputedStyle(b).getPropertyValue("opacity"),f="0"==e?"1":"0";c=b .animate({opacity:[f,f]},{duration:1}),c.currentTime=0,d=getComputedStyle(b).get PropertyValue("opacity")==f}catch(a){}finally{c&&c.cancel()}if(!d){var g=window. Element.prototype.animate;window.Element.prototype.animate=function(b,c){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Arr ay.from(b)),Array.isArray(b)||null===b||(b=a.convertToArrayForm(b)),g.call(this, b,c)}}}(c),function(a,b,c){function d(a){var c=b.timeline;c.currentTime=a,c._dis cardAnimations(),0==c._animations.length?f=!1:requestAnimationFrame(d)}var e=win dow.requestAnimationFrame;window.requestAnimationFrame=function(a){return e(func tion(c){b.timeline._updateAnimationsPromises(),a(c),b.timeline._updateAnimations Promises()})},b.AnimationTimeline=function(){this._animations=[],this.currentTim e=void 0},b.AnimationTimeline.prototype={getAnimations:function(){return this._d iscardAnimations(),this._animations.slice()},_updateAnimationsPromises:function( ){b.animationsWithPromises=b.animationsWithPromises.filter(function(a){return a. _updatePromises()})},_discardAnimations:function(){this._updateAnimationsPromise s(),this._animations=this._animations.filter(function(a){return"finished"!=a.pla yState&&"idle"!=a.playState})},_play:function(a){var c=new b.Animation(a,this);r eturn this._animations.push(c),b.restartWebAnimationsNextTick(),c._updatePromise s(),c._animation.play(),c._updatePromises(),c},play:function(a){return a&&a.remo ve(),this._play(a)}};var f=!1;b.restartWebAnimationsNextTick=function(){f||(f=!0 ,requestAnimationFrame(d))};var g=new b.AnimationTimeline;b.timeline=g;try{Objec t.defineProperty(window.document,"timeline",{configurable:!0,get:function(){retu rn g}})}catch(a){}try{window.document.timeline=g}catch(a){}}(0,e),function(a,b,c ){b.animationsWithPromises=[],b.Animation=function(b,c){if(this.id="",b&&b._id&& (this.id=b._id),this.effect=b,b&&(b._animation=this),!c)throw new Error("Animati on with null timeline is not supported");this._timeline=c,this._sequenceNumber=a .sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animat ion=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle", this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises ()},b.Animation.prototype={_updatePromises:function(){var a=this._oldPlayState,b =this.playState;return this._readyPromise&&b!==a&&("idle"==b?(this._rejectReadyP romise(),this._readyPromise=void 0):"pending"==a?this._resolveReadyPromise():"pe nding"==b&&(this._readyPromise=void 0)),this._finishedPromise&&b!==a&&("idle"==b ?(this._rejectFinishedPromise(),this._finishedPromise=void 0):"finished"==b?this ._resolveFinishedPromise():"finished"==a&&(this._finishedPromise=void 0)),this._ oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildU nderlyingAnimation:function(){this._updatePromises();var a,c,d,e,f=!!this._anima tion;f&&(a=this.playbackRate,c=this._paused,d=this.startTime,e=this.currentTime, this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!t his.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=b.ne wUnderlyingAnimationForKeyframeEffect(this.effect),b.bindAnimationForKeyframeEff ect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=b.newUnderlyingAnimationForGroup(this.eff ect),b.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&b.bindAn imationForCustomEffect(this),f&&(1!=a&&(this.playbackRate=a),null!==d?this.start Time=d:null!==e?this.currentTime=e:null!==this._holdTime&&(this.currentTime=this ._holdTime),c&&this.pause()),this._updatePromises()},_updateChildren:function(){ if(this.effect&&"idle"!=this.playState){var a=this.effect._timing.delay;this._ch ildAnimations.forEach(function(c){this._arrangeChildren(c,a),this.effect instanc eof window.SequenceEffect&&(a+=b.groupChildDuration(c.effect))}.bind(this))}},_s etExternalAnimation:function(a){if(this.effect&&this._isGroup)for(var b=0;b<this .effect.children.length;b++)this.effect.children[b]._animation=a,this._childAnim ations[b]._setExternalAnimation(a)},_constructChildAnimations:function(){if(this .effect&&this._isGroup){var a=this.effect._timing.delay;this._removeChildAnimati ons(),this.effect.children.forEach(function(c){var d=b.timeline._play(c);this._c hildAnimations.push(d),d.playbackRate=this.playbackRate,this._paused&&d.pause(), c._animation=this.effect._animation,this._arrangeChildren(d,a),this.effect insta nceof window.SequenceEffect&&(a+=b.groupChildDuration(c))}.bind(this))}},_arrang eChildren:function(a,b){null===this.startTime?a.currentTime=this.currentTime-b/t his.playbackRate:a.startTime!==this.startTime+b/this.playbackRate&&(a.startTime= this.startTime+b/this.playbackRate)},get timeline(){return this._timeline},get p layState(){return this._animation?this._animation.playState:"idle"},get finished (){return window.Promise?(this._finishedPromise||(-1==b.animationsWithPromises.i ndexOf(this)&&b.animationsWithPromises.push(this),this._finishedPromise=new Prom ise(function(a,b){this._resolveFinishedPromise=function(){a(this)},this._rejectF inishedPromise=function(){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}.b ind(this)),"finished"==this.playState&&this._resolveFinishedPromise()),this._fin ishedPromise):(console.warn("Animation Promises require JavaScript Promise const ructor"),null)},get ready(){return window.Promise?(this._readyPromise||(-1==b.an imationsWithPromises.indexOf(this)&&b.animationsWithPromises.push(this),this._re adyPromise=new Promise(function(a,b){this._resolveReadyPromise=function(){a(this )},this._rejectReadyPromise=function(){b({type:DOMException.ABORT_ERR,name:"Abor tError"})}}.bind(this)),"pending"!==this.playState&&this._resolveReadyPromise()) ,this._readyPromise):(console.warn("Animation Promises require JavaScript Promis e constructor"),null)},get onfinish(){return this._animation.onfinish},set onfin ish(a){this._animation.onfinish="function"==typeof a?function(b){b.target=this,a .call(this,b)}.bind(this):a},get oncancel(){return this._animation.oncancel},set oncancel(a){this._animation.oncancel="function"==typeof a?function(b){b.target= this,a.call(this,b)}.bind(this):a},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)* Number.MAX_VALUE,this._register(),this._forEachChild(function(b,c){b.currentTime =a-c}),this._updatePromises()},get startTime(){return this._animation.startTime} ,set startTime(a){this._updatePromises(),this._animation.startTime=isFinite(a)?a :Math.sign(a)*Number.MAX_VALUE,this._register(),this._forEachChild(function(b,c) {b.startTime=a+c}),this._updatePromises()},get playbackRate(){return this._anima tion.playbackRate},set playbackRate(a){this._updatePromises();var b=this.current Time;this._animation.playbackRate=a,this._forEachChild(function(b){b.playbackRat e=a}),null!==b&&(this.currentTime=b),this._updatePromises()},play:function(){thi s._updatePromises(),this._paused=!1,this._animation.play(),-1==this._timeline._a nimations.indexOf(this)&&this._timeline._animations.push(this),this._register(), b.awaitStartTime(this),this._forEachChild(function(a){var b=a.currentTime;a.play (),a.currentTime=b}),this._updatePromises()},pause:function(){this._updatePromis es(),this.currentTime&&(this._holdTime=this.currentTime),this._animation.pause() ,this._register(),this._forEachChild(function(a){a.pause()}),this._paused=!0,thi s._updatePromises()},finish:function(){this._updatePromises(),this._animation.fi nish(),this._register(),this._updatePromises()},cancel:function(){this._updatePr omises(),this._animation.cancel(),this._register(),this._removeChildAnimations() ,this._updatePromises()},reverse:function(){this._updatePromises();var a=this.cu rrentTime;this._animation.reverse(),this._forEachChild(function(a){a.reverse()}) ,null!==a&&(this.currentTime=a),this._updatePromises()},addEventListener:functio n(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)},removeEventLis tener:function(a,b){this._animation.removeEventListener(a,b&&b._wrapper||b)},_re moveChildAnimations:function(){for(;this._childAnimations.length;)this._childAni mations.pop().cancel()},_forEachChild:function(b){var c=0;if(this.effect.childre n&&this._childAnimations.length<this.effect.children.length&&this._constructChil dAnimations(),this._childAnimations.forEach(function(a){b.call(this,a,c),this.ef fect instanceof window.SequenceEffect&&(c+=a.effect.activeDuration)}.bind(this)) ,"pending"!=this.playState){var d=this.effect._timing,e=this.currentTime;null!== e&&(e=a.calculateIterationProgress(a.calculateActiveDuration(d),e,d)),(null==e|| isNaN(e))&&this._removeChildAnimations()}}},window.Animation=b.Animation}(c,e),f unction(a,b,c){function d(b){this._frames=a.normalizeKeyframes(b)}function e(){f or(var a=!1;i.length;)i.shift()._updateChildren(),a=!0;return a}var f=function(a ){if(a._animation=void 0,a instanceof window.SequenceEffect||a instanceof window .GroupEffect)for(var b=0;b<a.children.length;b++)f(a.children[b])};b.removeMulti =function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];d._parent?(-1==b.indexO f(d._parent)&&b.push(d._parent),d._parent.children.splice(d._parent.children.ind exOf(d),1),d._parent=null,f(d)):d._animation&&d._animation.effect==d&&(d._animat ion.cancel(),d._animation.effect=new KeyframeEffect(null,[]),d._animation._callb ack&&(d._animation._callback._animation=null),d._animation._rebuildUnderlyingAni mation(),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.numericTimingToObject(e),th is._timingInput=a.cloneTimingInput(e),this._timing=a.normalizeTimingInput(e),thi s.timing=a.makeTiming(e,!1,this),this.timing._effect=this,"function"==typeof c?( a.deprecated("Custom KeyframeEffect","2015-06-22","Use KeyframeEffect.onsample i nstead."),this._normalizedKeyframes=c):this._normalizedKeyframes=new d(c),this._ keyframes=c,this.activeDuration=a.calculateActiveDuration(this._timing),this._id =f,this},b.KeyframeEffect.prototype={getFrames:function(){return"function"==type of 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._ons ample=a,this._animation&&this._animation._rebuildUnderlyingAnimation()},get pare nt(){return this._parent},clone:function(){if("function"==typeof this.getFrames( ))throw new Error("Cloning custom effects is not supported.");var b=new Keyframe Effect(this.target,[],a.cloneTimingInput(this._timingInput),this._id);return b._ normalizedKeyframes=this._normalizedKeyframes,b._keyframes=this._keyframes,b},re move:function(){b.removeMulti([this])}};var g=Element.prototype.animate;Element. prototype.animate=function(a,c){var d="";return c&&c.id&&(d=c.id),b.timeline._pl ay(new b.KeyframeEffect(this,a,c,d))};var h=document.createElementNS("http://www .w3.org/1999/xhtml","div");b.newUnderlyingAnimationForKeyframeEffect=function(a) {if(a){var b=a.target||h,c=a._keyframes;"function"==typeof c&&(c=[]);var d=a._ti mingInput;d.id=a._id}else var b=h,c=[],d=0;return g.apply(b,[c,d])},b.bindAnimat ionForKeyframeEffect=function(a){a.effect&&"function"==typeof a.effect._normaliz edKeyframes&&b.bindAnimationForCustomEffect(a)};var i=[];b.awaitStartTime=functi on(a){null===a.startTime&&a._isGroup&&(0==i.length&&requestAnimationFrame(e),i.p ush(a))};var j=window.getComputedStyle;Object.defineProperty(window,"getComputed Style",{configurable:!0,enumerable:!0,value:function(){b.timeline._updateAnimati onsPromises();var a=j.apply(this,arguments);return e()&&(a=j.apply(this,argument s)),b.timeline._updateAnimationsPromises(),a}}),window.KeyframeEffect=b.Keyframe Effect,window.Element.prototype.getAnimations=function(){return document.timelin e.getAnimations().filter(function(a){return null!==a.effect&&a.effect.target==th is}.bind(this))}}(c,e),function(a,b,c){function d(a){a._registered||(a._register ed=!0,g.push(a),h||(h=!0,requestAnimationFrame(e)))}function e(a){var b=g;g=[],b .sort(function(a,b){return a._sequenceNumber-b._sequenceNumber}),b=b.filter(func tion(a){a();var b=a._animation?a._animation.playState:"idle";return"running"!=b& &"pending"!=b&&(a._registered=!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="function"==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._animation?j._animation.currentTime:null;null!==d&&(d=a.ca lculateIterationProgress(a.calculateActiveDuration(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._sequenceNumber=f++,b._callback=j,d(j)};var g=[],h=!1;b.Anima tion.prototype._register=function(){this._callback&&d(this._callback)}}(c,e),fun ction(a,b,c){function d(a){return a._timing.delay+a.activeDuration+a._timing.end Delay}function e(b,c,d){this._id=d,this._parent=null,this.children=b||[],this._r eparent(this.children),c=a.numericTimingToObject(c),this._timingInput=a.cloneTim ingInput(c),this._timing=a.normalizeTimingInput(c,!0),this.timing=a.makeTiming(c ,!0,this),this.timing._effect=this,"auto"===this._timing.duration&&(this._timing .duration=this.activeDuration)}window.SequenceEffect=function(){e.apply(this,arg uments)},window.GroupEffect=function(){e.apply(this,arguments)},e.prototype={_is Ancestor:function(a){for(var b=this;null!==b;){if(b==a)return!0;b=b._parent}retu rn!1},_rebuild:function(){for(var a=this;a;)"auto"===a.timing.duration&&(a._timi ng.duration=a.activeDuration),a=a._parent;this._animation&&this._animation._rebu ildUnderlyingAnimation()},_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?"Cannot appen d an ancestor or self":"Cannot prepend an ancestor or self",d=0;d<a.length;d++)i f(this._isAncestor(a[d]))throw{type:DOMException.HIERARCHY_REQUEST_ERR,name:"Hie rarchyRequestError",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:funct ion(){this._putChild(arguments,!0)},prepend:function(){this._putChild(arguments, !1)},get parent(){return this._parent},get firstChild(){return this.children.len gth?this.children[0]:null},get lastChild(){return this.children.length?this.chil dren[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 instanceof GroupEffect?new GroupEffect(c,b):new SequenceEff ect(c,b)},remove:function(){b.removeMulti([this])}},window.SequenceEffect.protot ype=Object.create(e.prototype),Object.defineProperty(window.SequenceEffect.proto type,"activeDuration",{get:function(){var a=0;return this.children.forEach(funct ion(b){a+=d(b)}),Math.max(a,0)}}),window.GroupEffect.prototype=Object.create(e.p rototype),Object.defineProperty(window.GroupEffect.prototype,"activeDuration",{g et:function(){var a=0;return this.children.forEach(function(b){a=Math.max(a,d(b) )}),a}}),b.newUnderlyingAnimationForGroup=function(c){var d,e=null,f=function(b) {var c=d._wrapper;if(c&&"pending"!=c.playState&&c.effect)return null==b?void c._ removeChildAnimations():0==b&&c.playbackRate<0&&(e||(e=a.normalizeTimingInput(c. effect.timing)),b=a.calculateIterationProgress(a.calculateActiveDuration(e),-1,e ),isNaN(b)||null==b)?(c._forEachChild(function(a){a.currentTime=-1}),void c._rem oveChildAnimations()):void 0},g=new KeyframeEffect(null,[],c._timing,c._id);retu rn g.onsample=f,d=b.timeline._play(g)},b.bindAnimationForGroup=function(a){a._an imation._wrapper=a,a._isGroup=!0,b.awaitStartTime(a),a._constructChildAnimations (),a._setExternalAnimation(a)},b.groupChildDuration=d}(c,e),b.true=a}({},functio n(){return this}());
16 this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,th is.timeStamp=Date.now()},c=window.Element.prototype.animate;window.Element.proto type.animate=function(d,e){var f=c.call(this,d,e);f._cancelHandlers=[],f.oncance l=null;var g=f.cancel;f.cancel=function(){g.call(this);var c=new b(this,null,a() ),d=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(fun ction(){d.forEach(function(a){a.call(c.target,c)})},0)};var h=f.addEventListener ;f.addEventListener=function(a,b){"function"==typeof b&&"cancel"==a?this._cancel Handlers.push(b):h.call(this,a,b)};var i=f.removeEventListener;return f.removeEv entListener=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.documentElement,c=null,d=!1;try{var e=getComputedStyle(b).getPro pertyValue("opacity"),f="0"==e?"1":"0";c=b.animate({opacity:[f,f]},{duration:1}) ,c.currentTime=0,d=getComputedStyle(b).getPropertyValue("opacity")==f}catch(a){} finally{c&&c.cancel()}if(!d){var g=window.Element.prototype.animate;window.Eleme nt.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)),g.call(this,b,c)}}}(c),!function(a,b,c){function d (a){var c=b.timeline;c.currentTime=a,c._discardAnimations(),0==c._animations.len gth?f=!1:requestAnimationFrame(d)}var e=window.requestAnimationFrame;window.requ estAnimationFrame=function(a){return e(function(c){b.timeline._updateAnimationsP romises(),a(c),b.timeline._updateAnimationsPromises()})},b.AnimationTimeline=fun ction(){this._animations=[],this.currentTime=void 0},b.AnimationTimeline.prototy pe={getAnimations:function(){return this._discardAnimations(),this._animations.s lice()},_updateAnimationsPromises:function(){b.animationsWithPromises=b.animatio nsWithPromises.filter(function(a){return a._updatePromises()})},_discardAnimatio ns:function(){this._updateAnimationsPromises(),this._animations=this._animations .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.rest artWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c._updateProm ises(),c},play:function(a){return a&&a.remove(),this._play(a)}};var f=!1;b.resta rtWebAnimationsNextTick=function(){f||(f=!0,requestAnimationFrame(d))};var g=new b.AnimationTimeline;b.timeline=g;try{Object.defineProperty(window.document,"tim eline",{configurable:!0,get:function(){return g}})}catch(a){}try{window.document .timeline=g}catch(a){}}(c,e,f),function(a,b,c){b.animationsWithPromises=[],b.Ani mation=function(b,c){if(this.id="",b&&b._id&&(this.id=b._id),this.effect=b,b&&(b ._animation=this),!c)throw new Error("Animation with null timeline is not suppor ted");this._timeline=c,this._sequenceNumber=a.sequenceNumber++,this._holdTime=0, this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],t his._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(), this._animation.cancel(),this._updatePromises()},b.Animation.prototype={_updateP romises:function(){var a=this._oldPlayState,b=this.playState;return this._readyP romise&&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._rejectFinishedPromise(),thi s._finishedPromise=void 0):"finished"==b?this._resolveFinishedPromise():"finishe d"==a&&(this._finishedPromise=void 0)),this._oldPlayState=this.playState,this._r eadyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this. _updatePromises();var a,c,d,e,f=!!this._animation;f&&(a=this.playbackRate,c=this ._paused,d=this.startTime,e=this.currentTime,this._animation.cancel(),this._anim ation._wrapper=null,this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=b.newUnderlyingAnimationForKeyframeEffe ct(this.effect),b.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animat ion=b.newUnderlyingAnimationForGroup(this.effect),b.bindAnimationForGroup(this)) ,this.effect&&this.effect._onsample&&b.bindAnimationForCustomEffect(this),f&&(1! =a&&(this.playbackRate=a),null!==d?this.startTime=d:null!==e?this.currentTime=e: null!==this._holdTime&&(this.currentTime=this._holdTime),c&&this.pause()),this._ updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playSt ate){var a=this.effect._timing.delay;this._childAnimations.forEach(function(c){t his._arrangeChildren(c,a),this.effect instanceof window.SequenceEffect&&(a+=b.gr oupChildDuration(c.effect))}.bind(this))}},_setExternalAnimation:function(a){if( this.effect&&this._isGroup)for(var b=0;b<this.effect.children.length;b++)this.ef fect.children[b]._animation=a,this._childAnimations[b]._setExternalAnimation(a)} ,_constructChildAnimations:function(){if(this.effect&&this._isGroup){var a=this. effect._timing.delay;this._removeChildAnimations(),this.effect.children.forEach( function(c){var d=b.timeline._play(c);this._childAnimations.push(d),d.playbackRa te=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:function(a,b){null===this .startTime?a.currentTime=this.currentTime-b/this.playbackRate:a.startTime!==this .startTime+b/this.playbackRate&&(a.startTime=this.startTime+b/this.playbackRate) },get timeline(){return this._timeline},get playState(){return this._animation?t his._animation.playState:"idle"},get finished(){return window.Promise?(this._fin ishedPromise||(b.animationsWithPromises.indexOf(this)==-1&&b.animationsWithPromi ses.push(this),this._finishedPromise=new Promise(function(a,b){this._resolveFini shedPromise=function(){a(this)},this._rejectFinishedPromise=function(){b({type:D OMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"finished"==this.playSta te&&this._resolveFinishedPromise()),this._finishedPromise):(console.warn("Animat ion Promises require JavaScript Promise constructor"),null)},get ready(){return window.Promise?(this._readyPromise||(b.animationsWithPromises.indexOf(this)==-1& &b.animationsWithPromises.push(this),this._readyPromise=new Promise(function(a,b ){this._resolveReadyPromise=function(){a(this)},this._rejectReadyPromise=functio n(){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"pending"!= =this.playState&&this._resolveReadyPromise()),this._readyPromise):(console.warn( "Animation Promises require JavaScript Promise constructor"),null)},get onfinish (){return this._animation.onfinish},set onfinish(a){"function"==typeof a?this._a nimation.onfinish=function(b){b.target=this,a.call(this,b)}.bind(this):this._ani mation.onfinish=a},get oncancel(){return this._animation.oncancel},set oncancel( a){"function"==typeof a?this._animation.oncancel=function(b){b.target=this,a.cal l(this,b)}.bind(this):this._animation.oncancel=a},get currentTime(){this._update Promises();var a=this._animation.currentTime;return this._updatePromises(),a},se t currentTime(a){this._updatePromises(),this._animation.currentTime=isFinite(a)? a:Math.sign(a)*Number.MAX_VALUE,this._register(),this._forEachChild(function(b,c ){b.currentTime=a-c}),this._updatePromises()},get startTime(){return this._anima tion.startTime},set startTime(a){this._updatePromises(),this._animation.startTim e=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(),this._forEachChil d(function(b,c){b.startTime=a+c}),this._updatePromises()},get playbackRate(){ret urn this._animation.playbackRate},set playbackRate(a){this._updatePromises();var b=this.currentTime;this._animation.playbackRate=a,this._forEachChild(function(b ){b.playbackRate=a}),null!==b&&(this.currentTime=b),this._updatePromises()},play :function(){this._updatePromises(),this._paused=!1,this._animation.play(),this._ timeline._animations.indexOf(this)==-1&&this._timeline._animations.push(this),th is._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b=a.cur rentTime;a.play(),a.currentTime=b}),this._updatePromises()},pause:function(){thi s._updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._an imation.pause(),this._register(),this._forEachChild(function(a){a.pause()}),this ._paused=!0,this._updatePromises()},finish:function(){this._updatePromises(),thi s._animation.finish(),this._register(),this._updatePromises()},cancel:function() {this._updatePromises(),this._animation.cancel(),this._register(),this._removeCh ildAnimations(),this._updatePromises()},reverse:function(){this._updatePromises( );var a=this.currentTime;this._animation.reverse(),this._forEachChild(function(a ){a.reverse()}),null!==a&&(this.currentTime=a),this._updatePromises()},addEventL istener: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._w rapper||b)},_removeChildAnimations:function(){for(;this._childAnimations.length; )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.call(th is,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDuratio n)}.bind(this)),"pending"!=this.playState){var d=this.effect._timing,e=this.curr entTime;null!==e&&(e=a.calculateIterationProgress(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?(b.indexOf(d._parent)==-1&&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() {b.timeline._updateAnimationsPromises();var a=j.apply(this,arguments);return e() &&(a=j.apply(this,arguments)),b.timeline._updateAnimationsPromises(),a}}),window .KeyframeEffect=b.KeyframeEffect,window.Element.prototype.getAnimations=function (){return document.timeline.getAnimations().filter(function(a){return null!==a.e ffect&&a.effect.target==this}.bind(this))}}(c,e,f),function(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){return a._sequenceNumber-b._sequ enceNumber}),b=b.filter(function(a){a();var b=a._animation?a._animation.playStat e:"idle";return"running"!=b&&"pending"!=b&&(a._registered=!1),a._registered}),g. push.apply(g,b),g.length?(h=!0,requestAnimationFrame(e)):h=!1}var f=(document.cr eateElementNS("http://www.w3.org/1999/xhtml","div"),0);b.bindAnimationForCustomE ffect=function(b){var c,e=b.effect.target,g="function"==typeof b.effect.getFrame s();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._animation?j._animation.curren tTime:null;null!==d&&(d=a.calculateIterationProgress(a.calculateActiveDuration(h ),d,h),isNaN(d)&&(d=null)),d!==i&&(g?c(d,e,b.effect):c(d,b.effect,b.effect._anim ation)),i=d};j._animation=b,j._registered=!1,j._sequenceNumber=f++,b._callback=j ,d(j)};var g=[],h=!1;b.Animation.prototype._register=function(){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){this._id=d,this._parent=nu ll,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._effect=this,"auto"===this._ timing.duration&&(this._timing.duration=this.activeDuration)}window.SequenceEffe ct=function(){e.apply(this,arguments)},window.GroupEffect=function(){e.apply(thi s,arguments)},e.prototype={_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.duration&&(a._timing.duration=a.activeDuration),a=a._parent;this._an imation&&this._animation._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?"Cannot append an ancestor or self":"Cannot prepend an ancestor or self",d=0;d<a.length;d++)if(this._isAncestor(a[d]))throw{type:DOMException.H IERARCHY_REQUEST_ERR,name:"HierarchyRequestError",message:c};for(var d=0;d<a.len gth;d++)b?this.children.push(a[d]):this.children.unshift(a[d]);this._reparent(a) ,this._rebuild()},append:function(){this._putChild(arguments,!0)},prepend:functi on(){this._putChild(arguments,!1)},get parent(){return this._parent},get firstCh ild(){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.lengt h;d++)c.push(this.children[d].clone());return this instanceof GroupEffect?new Gr oupEffect(c,b):new SequenceEffect(c,b)},remove:function(){b.removeMulti([this])} },window.SequenceEffect.prototype=Object.create(e.prototype),Object.defineProper ty(window.SequenceEffect.prototype,"activeDuration",{get:function(){var a=0;retu rn this.children.forEach(function(b){a+=d(b)}),Math.max(a,0)}}),window.GroupEffe ct.prototype=Object.create(e.prototype),Object.defineProperty(window.GroupEffect .prototype,"activeDuration",{get:function(){var a=0;return this.children.forEach (function(b){a=Math.max(a,d(b))}),a}}),b.newUnderlyingAnimationForGroup=function (c){var d,e=null,f=function(b){var c=d._wrapper;if(c&&"pending"!=c.playState&&c. effect)return null==b?void c._removeChildAnimations():0==b&&c.playbackRate<0&&(e ||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateIterationProgress(a.c alculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChild(function(a){ a.currentTime=-1}),void c._removeChildAnimations()):void 0},g=new KeyframeEffect (null,[],c._timing,c._id);return g.onsample=f,d=b.timeline._play(g)},b.bindAnima tionForGroup=function(a){a._animation._wrapper=a,a._isGroup=!0,b.awaitStartTime( a),a._constructChildAnimations(),a._setExternalAnimation(a)},b.groupChildDuratio n=d}(c,e,f),b.true=a}({},function(){return this}());
17 //# sourceMappingURL=web-animations-next-lite.min.js.map 16 //# sourceMappingURL=web-animations-next-lite.min.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698