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

Side by Side Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 1409933012: MD Downloads: re-jigger the order of i18n processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac vulcanize Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 if (typeof Polymer == 'undefined') 5 if (typeof Polymer == 'undefined')
6 Polymer = {dom: 'shadow'}; 6 Polymer = {dom: 'shadow'};
7 else 7 else
8 console.error('Polymer is already defined.'); 8 console.error('Polymer is already defined.');
9 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 9 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
10 // Use of this source code is governed by a BSD-style license that can be 10 // Use of this source code is governed by a BSD-style license that can be
11 // found in the LICENSE file. 11 // found in the LICENSE file.
12 12
13 // <include src="../../../../ui/webui/resources/js/i18n_template_no_process.js">
14
15 i18nTemplate.process(document, loadTimeData);
16 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
17 // Use of this source code is governed by a BSD-style license that can be
18 // found in the LICENSE file.
19
20 /** 13 /**
21 * The global object. 14 * The global object.
22 * @type {!Object} 15 * @type {!Object}
23 * @const 16 * @const
24 */ 17 */
25 var global = this; 18 var global = this;
26 19
27 /** Platform, package, object property, and Event support. **/ 20 /** Platform, package, object property, and Event support. **/
28 var cr = function() { 21 var cr = function() {
29 'use strict'; 22 'use strict';
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 // http://www.apache.org/licenses/LICENSE-2.0 1773 // http://www.apache.org/licenses/LICENSE-2.0
1781 // 1774 //
1782 // Unless required by applicable law or agreed to in writing, software 1775 // Unless required by applicable law or agreed to in writing, software
1783 // distributed under the License is distributed on an "AS IS" BASIS, 1776 // distributed under the License is distributed on an "AS IS" BASIS,
1784 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1777 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1785 // See the License for the specific language governing permissions and 1778 // See the License for the specific language governing permissions and
1786 // limitations under the License. 1779 // limitations under the License.
1787 1780
1788 !function(a,b){b["true"]=a;var c={},d={},e={},f=null;!function(a){function b(a){ if("number"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}functi on c(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,t his._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal" ,this._easing="linear"}function d(b,d){var e=new c;return d&&(e.fill="both",e.du ration="auto"),"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNam es(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof e[c]||"duration" ==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==s.indexOf(b[ c]))return;if("direction"==c&&-1==t.indexOf(b[c]))return;if("playbackRate"==c&&1 !==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use A nimation.playbackRate instead."))return;e[c]=b[c]}}):e.duration=b,e}function e(a ){return"number"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function f( b,c){b=a.numericTimingToObject(b);var e=d(b,c);return e._easing=i(e.easing),e}fu nction g(a,b,c,d){return 0>a||a>1||0>c||c>1?B:function(e){function f(a,b,c){retu rn 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(0==e||1==e)return e;for(var g=0,h=1; ;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}} function h(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c% d}}function i(a){var b=z.exec(a);if(b)return g.apply(this,b.slice(1).map(Number) );var c=A.exec(a);if(c)return h(Number(c[1]),{start:u,middle:v,end:w}[c[2]]);var d=x[a];return d?d:B}function j(a){return Math.abs(k(a)/a.playbackRate)}function k(a){return a.duration*a.iterations}function l(a,b,c){return null==b?C:b<c.dela y?D:b>=c.delay+a?E:F}function m(a,b,c,d,e){switch(d){case D:return"backwards"==b ||"both"==b?0:null;case F:return c-e;case E:return"forwards"==b||"both"==b?a:nul l;case C:return null}}function n(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playb ackRate+c}function o(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&& (e.iterations+e.iterationStart)%1==0?a:c%a}function p(a,b,c,d){return 0===c?0:b= =a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function q(a,b,c,d){var e=a%2 >=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g= f?c:b-c,h=g/b;return b*d.easing(h)}function r(a,b,c){var d=l(a,b,c),e=m(a,c.fill ,b,d,c.delay);if(null===e)return null;if(0===a)return d===D?0:1;var f=c.iteratio nStart*c.duration,g=n(a,e,f,c),h=o(c.duration,k(c),g,f,c),i=p(c.duration,h,g,c); return q(i,c.duration,h,c)/c.duration}var s="backwards|forwards|both|none".split ("|"),t="reverse|alternate|alternate-reverse".split("|");c.prototype={_setMember :function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this. _effect._timing=a.normalizeTimingInput(a.normalizeTimingInput(this._effect._timi ngInput)),this._effect.activeDuration=a.calculateActiveDuration(this._effect._ti ming),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimati on())},get playbackRate(){return this._playbackRate},set delay(a){this._setMembe r("delay",a)},get delay(){return this._delay},set endDelay(a){this._setMember("e ndDelay",a)},get endDelay(){return this._endDelay},set fill(a){this._setMember(" fill",a)},get fill(){return this._fill},set iterationStart(a){this._setMember("i terationStart",a)},get iterationStart(){return this._iterationStart},set duratio n(a){this._setMember("duration",a)},get duration(){return this._duration},set di rection(a){this._setMember("direction",a)},get direction(){return this._directio n},set easing(a){this._setMember("easing",a)},get easing(){return this._easing}, set iterations(a){this._setMember("iterations",a)},get iterations(){return this. _iterations}};var u=1,v=.5,w=0,x={ease:g(.25,.1,.25,1),"ease-in":g(.42,0,1,1),"e ase-out":g(0,0,.58,1),"ease-in-out":g(.42,0,.58,1),"step-start":h(1,u),"step-mid dle":h(1,v),"step-end":h(1,w)},y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",z=new RegE xp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),A=/steps\(\s*(\d+)\s*,\s*(start| middle|end)\s*\)/,B=function(a){return a},C=0,D=1,E=2,F=3;a.cloneTimingInput=b,a .makeTiming=d,a.numericTimingToObject=e,a.normalizeTimingInput=f,a.calculateActi veDuration=j,a.calculateTimeFraction=r,a.calculatePhase=l,a.toTimingFunction=i}( c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){va r g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)} }else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset& &(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].of fset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].off set=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError ("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null! =f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be num bers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"N otSupportedError",message:"add compositing is not supported"};f="easing"==e?a.to TimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0= =d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.lengt h;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODI FICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(fun ction(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgrou ndImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAtt achment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderT opColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle" ,"borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth", "borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBott omWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor", "borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLef tWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius" ,"borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],bord erRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["b orderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth", "borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flex Shrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fo ntWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","margin Left"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingT op","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("h ttp://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={b orderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSiz e:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-la rge":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth :g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated= function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth( h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecate d and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecat ed=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Err or(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentEleme nt.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play| currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split( "|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b){funct ion c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easi ng"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][ d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!= g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupporte dError",message:"Partial keyframes are not supported"}}return b}function d(a){va r c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e [f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime: g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation( d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.conver tEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return func tion(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1== a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTim e,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpol ation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clea r(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}fu nction c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a ,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){ if("initial"==c||"initial"==d){var g=b.replace(/-(.)/g,function(a,b){return b.to UpperCase()});"initial"==c&&(c=f[g]),"initial"==d&&(d=f[g])}for(var h=c==d?[]:e[ b],i=0;h&&i<h.length;i++){var j=h[i][0](c),k=h[i][0](d);if(void 0!==j&&void 0!== k){var l=h[i][1](j,k);if(l){var m=a.Interpolation.apply(null,l);return function( a){return 0==a?c:1==a?d:m(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c;var f={backgroundColor:"transparent",b ackgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadiu s:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"c urrentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWi dth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius: "0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0 px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto" ,left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginL eft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",min Height:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0 px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px", paddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transpare nt",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto ",wordSpacing:"normal",zIndex:"auto"};a.propertyInterpolation=d}(d,f),function(a ,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calc ulateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurr ent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseB efore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i =b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){retur n g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){r eturn d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.Nu llEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function (){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameT arget=function(){return!1},b}}(c,d,f),function(a){a.apply=function(b,c,d){b.styl e[a.propertyName(c)]=d},a.clear=function(b,c){b.style[a.propertyName(c)]=""}}(d, f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline. _play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number" ==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boole an"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length; f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a +":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}( d,f),function(a,b){a.sequenceNumber=0;var c=function(a,b,c){this.target=a,this.c urrentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancela ble=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TA RGET,this.timeStamp=Date.now()};b.Animation=function(b){this._sequenceNumber=a.s equenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._p laybackRate=1,this._inTimeline=!0,this._finishedFlag=!1,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._inEffect=this._effect._update(this.playbackRate<0&&0===this.currentTime ?-1:this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(th is._inTimeline=!0,b.timeline._animations.push(this))},_tickCurrentTime:function( a,b){a!=this._currentTime&&(this._currentTime=a,this._isFinished&&!b&&(this._cur rentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get c urrentTime(){return this._idle||this._currentTimePending?null:this._currentTime} ,set currentTime(a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startT ime||(this._startTime=this._timeline.currentTime-a/this._playbackRate),this._cur rentTimePending=!1,this._currentTime!=a&&(this._tickCurrentTime(a,!0),b.invalida teEffects()))},get startTime(){return this._startTime},set startTime(a){a=+a,isN aN(a)||this._paused||this._idle||(this._startTime=a,this._tickCurrentTime((this. _timeline.currentTime-this._startTime)*this.playbackRate),b.invalidateEffects()) },get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._ playbackRate){var b=this.currentTime;this._playbackRate=a,this._startTime=null," paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.curr entTime=b)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._c urrentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},ge t _totalDuration(){return this._effect._totalDuration},get playState(){return th is._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this ._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished" :"running"},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(thi s._currentTime=this._playbackRate>0?0:this._totalDuration,this._startTime=null,b .invalidateEffects()),this._finishedFlag=!1,b.restart(),this._idle=!1,this._ensu reAlive()},pause:function(){this._isFinished||this._paused||this._idle||(this._c urrentTimePending=!0),this._startTime=null,this._paused=!0},finish:function(){th is._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._sta rtTime=this._totalDuration-this.currentTime,this._currentTimePending=!1)},cancel :function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this.currentTime=0, this._startTime=null,this._effect._update(null),b.invalidateEffects(),b.restart( ))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:funct ion(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},remove EventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b );c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this._i sFinished;if((b||this._idle)&&!this._finishedFlag){var d=new c(this,this._curren tTime,a),e=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTime out(function(){e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag =b},_tick:function(a){return this._idle||this._paused||(null==this._startTime?th is.startTime=a-this._currentTime/this.playbackRate:this._isFinished||this._tickC urrentTime((a-this._startTime)*this.playbackRate)),this._currentTimePending=!1,t his._fireEvents(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(c,d,f), function(a,b){function c(a){var b=i;i=[],a<s.currentTime&&(a=s.currentTime),g(a) ,b.forEach(function(b){b[1](a)}),o&&g(a),f(),l=void 0}function d(a,b){return a._ sequenceNumber-b._sequenceNumber}function e(){this._animations=[],this.currentTi me=window.performance&&performance.now?performance.now():0}function f(){p.forEac h(function(a){a()}),p.length=0}function g(a){n=!1;var c=b.timeline;c.currentTime =a,c._animations.sort(d),m=!1;var e=c._animations;c._animations=[];var f=[],g=[] ;e=e.filter(function(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._ef fect):f.push(b._effect),b._isFinished||b._paused||b._idle||(m=!0),b._inTimeline} ),p.push.apply(p,f),p.push.apply(p,g),c._animations.push.apply(c._animations,e), o=!1,m&&requestAnimationFrame(function(){})}var h=window.requestAnimationFrame,i =[],j=0;window.requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h (c),i.push([b,a]),b},window.cancelAnimationFrame=function(a){i.forEach(function( b){b[0]==a&&(b[1]=function(){})})},e.prototype={_play:function(c){c._timing=a.no rmalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timel ine=this,this._animations.push(d),b.restart(),b.invalidateEffects(),d}};var k,l= void 0,k=function(){return void 0==l&&(l=performance.now()),l},m=!1,n=!1;b.resta rt=function(){return m||(m=!0,requestAnimationFrame(function(){}),n=!0),n};var o =!1;b.invalidateEffects=function(){o=!0};var p=[],q=1e3/60,r=window.getComputedS tyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable :!0,value:function(){if(o){var a=k();a-s.currentTime>0&&(s.currentTime+=q*(Math. floor((a-s.currentTime)/q)+1)),g(s.currentTime)}return f(),r.apply(this,argument s)}});var s=new e;b.timeline=s}(c,d,f),function(a){function b(a,b){var c=a.exec( b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace (/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e );if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g [1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++) if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr( 0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c& &d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b) ;return c&&(c[0]=void 0),c}}function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrim med(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""== c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k =0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.pus h(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b ](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h= 0;h<c.length;h++)if("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(functi on(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+ =f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a .consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRep eated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),functio n(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.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,length s:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:voi d 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.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){function b(a){return a.toFixed(3).replace(".000","")}function c(a,b,c) {return Math.min(b,Math.max(a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/ .test(a)?Number(a):void 0}function e(a,c){return[a,c,b]}function f(a,b){return 0 !=a?h(0,1/0)(a,b):void 0}function g(a,b){return[a,b,function(a){return Math.roun d(c(1,1/0,a))}]}function h(a,d){return function(e,f){return[e,f,function(e){retu rn b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addProperti esHandler(d,h(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandle r(d,h(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(d,f,["fle x-grow","flex-shrink"]),a.addPropertiesHandler(d,g,["orphans","widows"]),a.addPr opertiesHandler(d,i,["z-index"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToStri ng=b}(d,f),function(a){function b(a,b){return"visible"==a||"visible"==b?[0,1,fun ction(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPropertiesHandler(String,b ,["visibility"])}(d),function(a){function b(a){a=a.trim(),e.fillStyle="#000",e.f illStyle=a;var b=e.fillStyle;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle) {e.fillRect(0,0,1,1);var c=e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function( b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++) b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"r gba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/x html","canvas");d.width=d.height=1;var e=d.getContext("2d");a.addPropertiesHandl er(b,c,["background-color","border-bottom-color","border-left-color","border-rig ht-color","border-top-color","color","outline-color","text-decoration-color"]),a .consumeColor=a.consumeParenthesised.bind(null,b),a.mergeColors=c}(d,f),function (a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)retu rn{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.rep lace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.source+")",e=b.repl ace(/[-+]?(\d*\.)?\d+/g,"N").replace(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))return;c[h]=i}return c}}}function d(a,b){return e(a,b,! 0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&& f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c= Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.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,n ew RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|g rad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a. consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.con sumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consum eRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(a){var b=l( a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o= a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPrope rtiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom -width","border-image-width","border-left-width","border-right-width","border-to p-width","flex-basis","font-size","height","line-height","max-height","max-width ","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radi us","border-bottom-right-radius","border-top-left-radius","border-top-right-radi us","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right ","margin-top","min-height","min-width","outline-offset","padding-bottom","paddi ng-left","padding-right","padding-top","perspective","right","shape-margin","tex t-indent","top","vertical-align","word-spacing"])}(d,f),function(a){function b(b ){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function c(c){va r d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consum eToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ignore(a.consumeT oken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}function d(b,c){ return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"au to";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}func tion e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated.bind(null,e,d," , ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["clip"])}(d,f),func tion(a){function b(a){return function(b){var c=0;return a.map(function(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.toLowerCase().tri m(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);) {if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if(!h)return;var i =c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[],o=0;o<j.length; o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim()?l:a.parseAngl e(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()] (q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t:g,d:n}),d.lastI ndex==b.length)return e}}function e(a){return a.toFixed(6).replace(".000000","") }function f(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeM atrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var f=a. makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[!0],function(a){ return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function(b){var c=a.qua t(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(e).join (",");return h}])}function g(a){return a.replace(/[xy]/,"")}function h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatrixDecomposition& &!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var i=0;i<b.leng th;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(f unction(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"== a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.l ength){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else fo r(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i].d,w=m[s],x=m[t ];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.push(r[1]),q.pus h(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g(t))j=g(s),u=w[ 2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;var r=f(b,c);o=[r [0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1](v)}for(var y=[ ],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mer geDimensions,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(functi on(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+")"}).jo in(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j,0,0,j,j,0,0,0,0 ,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rotatex:["A"],rota tey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",b([j,j,1 ]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([1,j])],scalez:[ "N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",null,b([j,l])],s kewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex:["T",b([j,k,k] ),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L",b([k,k,j])],tra nslate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d,f),function(a){ function b(a,b){b.concat([a]).forEach(function(b){b in document.documentElement. style&&(c[a]=b)})}var c={};b("transform",["webkitTransform","msTransform"]),b("t ransformOrigin",["webkitTransformOrigin"]),b("perspective",["webkitPerspective"] ),b("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){ return c[a]||a}}(d,f)}(),!function(a,b){function c(a){var b=window.document.time line;b.currentTime=a,b._discardAnimations(),0==b._animations.length?e=!1:request AnimationFrame(c)}var d=window.requestAnimationFrame;window.requestAnimationFram e=function(a){return d(function(b){window.document.timeline._updateAnimationsPro mises(),a(b),window.document.timeline._updateAnimationsPromises()})},b.Animation Timeline=function(){this._animations=[],this.currentTime=void 0},b.AnimationTime line.prototype={getAnimations:function(){return this._discardAnimations(),this._ animations.slice()},_updateAnimationsPromises:function(){b.animationsWithPromise s=b.animationsWithPromises.filter(function(a){return a._updatePromises()})},_dis cardAnimations:function(){this._updateAnimationsPromises(),this._animations=this ._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playSta te})},_play:function(a){var c=new b.Animation(a,this);return this._animations.pu sh(c),b.restartWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c ._updatePromises(),c},play:function(a){return a&&a.remove(),this._play(a)}};var e=!1;b.restartWebAnimationsNextTick=function(){e||(e=!0,requestAnimationFrame(c) )};var f=new b.AnimationTimeline;b.timeline=f;try{Object.defineProperty(window.d ocument,"timeline",{configurable:!0,get:function(){return f}})}catch(g){}try{win dow.document.timeline=f}catch(g){}}(c,e,f),function(a,b){b.animationsWithPromise s=[],b.Animation=function(b,c){if(this.effect=b,b&&(b._animation=this),!c)throw new Error("Animation with null timeline is not supported");this._timeline=c,this ._sequenceNumber=a.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGro up=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._ol dPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),th is._updatePromises()},b.Animation.prototype={_updatePromises:function(){var a=th is._oldPlayState,b=this.playState;return this._readyPromise&&b!==a&&("idle"==b?( this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==a?this._resolve ReadyPromise():"pending"==b&&(this._readyPromise=void 0)),this._finishedPromise& &b!==a&&("idle"==b?(this._rejectFinishedPromise(),this._finishedPromise=void 0): "finished"==b?this._resolveFinishedPromise():"finished"==a&&(this._finishedPromi se=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finished Promise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var a,c,d ,e,f=this._animation?!0:!1;f&&(a=this.playbackRate,c=this._paused,d=this.startTi me,e=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,thi s._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)& &(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect),b.bindA nimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect|| this.effect instanceof window.GroupEffect)&&(this._animation=b.newUnderlyingAnim ationForGroup(this.effect),b.bindAnimationForGroup(this)),this.effect&&this.effe ct._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() 1781 !function(a,b){b["true"]=a;var c={},d={},e={},f=null;!function(a){function b(a){ if("number"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}functi on c(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,t his._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal" ,this._easing="linear"}function d(b,d){var e=new c;return d&&(e.fill="both",e.du ration="auto"),"number"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNam es(b).forEach(function(c){if("auto"!=b[c]){if(("number"==typeof e[c]||"duration" ==c)&&("number"!=typeof b[c]||isNaN(b[c])))return;if("fill"==c&&-1==s.indexOf(b[ c]))return;if("direction"==c&&-1==t.indexOf(b[c]))return;if("playbackRate"==c&&1 !==b[c]&&a.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use A nimation.playbackRate instead."))return;e[c]=b[c]}}):e.duration=b,e}function e(a ){return"number"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function f( b,c){b=a.numericTimingToObject(b);var e=d(b,c);return e._easing=i(e.easing),e}fu nction g(a,b,c,d){return 0>a||a>1||0>c||c>1?B:function(e){function f(a,b,c){retu rn 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(0==e||1==e)return e;for(var g=0,h=1; ;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}} function h(a,b){return function(c){if(c>=1)return 1;var d=1/a;return c+=b*d,c-c% d}}function i(a){var b=z.exec(a);if(b)return g.apply(this,b.slice(1).map(Number) );var c=A.exec(a);if(c)return h(Number(c[1]),{start:u,middle:v,end:w}[c[2]]);var d=x[a];return d?d:B}function j(a){return Math.abs(k(a)/a.playbackRate)}function k(a){return a.duration*a.iterations}function l(a,b,c){return null==b?C:b<c.dela y?D:b>=c.delay+a?E:F}function m(a,b,c,d,e){switch(d){case D:return"backwards"==b ||"both"==b?0:null;case F:return c-e;case E:return"forwards"==b||"both"==b?a:nul l;case C:return null}}function n(a,b,c,d){return(d.playbackRate<0?b-a:b)*d.playb ackRate+c}function o(a,b,c,d,e){return 1/0===c||c===-1/0||c-d==b&&e.iterations&& (e.iterations+e.iterationStart)%1==0?a:c%a}function p(a,b,c,d){return 0===c?0:b= =a?d.iterationStart+d.iterations-1:Math.floor(c/a)}function q(a,b,c,d){var e=a%2 >=1,f="normal"==d.direction||d.direction==(e?"alternate-reverse":"alternate"),g= f?c:b-c,h=g/b;return b*d.easing(h)}function r(a,b,c){var d=l(a,b,c),e=m(a,c.fill ,b,d,c.delay);if(null===e)return null;if(0===a)return d===D?0:1;var f=c.iteratio nStart*c.duration,g=n(a,e,f,c),h=o(c.duration,k(c),g,f,c),i=p(c.duration,h,g,c); return q(i,c.duration,h,c)/c.duration}var s="backwards|forwards|both|none".split ("|"),t="reverse|alternate|alternate-reverse".split("|");c.prototype={_setMember :function(b,c){this["_"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this. _effect._timing=a.normalizeTimingInput(a.normalizeTimingInput(this._effect._timi ngInput)),this._effect.activeDuration=a.calculateActiveDuration(this._effect._ti ming),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimati on())},get playbackRate(){return this._playbackRate},set delay(a){this._setMembe r("delay",a)},get delay(){return this._delay},set endDelay(a){this._setMember("e ndDelay",a)},get endDelay(){return this._endDelay},set fill(a){this._setMember(" fill",a)},get fill(){return this._fill},set iterationStart(a){this._setMember("i terationStart",a)},get iterationStart(){return this._iterationStart},set duratio n(a){this._setMember("duration",a)},get duration(){return this._duration},set di rection(a){this._setMember("direction",a)},get direction(){return this._directio n},set easing(a){this._setMember("easing",a)},get easing(){return this._easing}, set iterations(a){this._setMember("iterations",a)},get iterations(){return this. _iterations}};var u=1,v=.5,w=0,x={ease:g(.25,.1,.25,1),"ease-in":g(.42,0,1,1),"e ase-out":g(0,0,.58,1),"ease-in-out":g(.42,0,.58,1),"step-start":h(1,u),"step-mid dle":h(1,v),"step-end":h(1,w)},y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",z=new RegE xp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),A=/steps\(\s*(\d+)\s*,\s*(start| middle|end)\s*\)/,B=function(a){return a},C=0,D=1,E=2,F=3;a.cloneTimingInput=b,a .makeTiming=d,a.numericTimingToObject=e,a.normalizeTimingInput=f,a.calculateActi veDuration=j,a.calculateTimeFraction=r,a.calculatePhase=l,a.toTimingFunction=i}( c,f),function(a){function b(a,b){return a in h?h[a][b]||b:b}function c(a,c,d){va r g=e[a];if(g){f.style[a]=c;for(var h in g){var i=g[h],j=f.style[i];d[i]=b(i,j)} }else d[a]=b(a,c)}function d(b){function d(){var a=e.length;null==e[a-1].offset& &(e[a-1].offset=1),a>1&&null==e[0].offset&&(e[0].offset=0);for(var b=0,c=e[0].of fset,d=1;a>d;d++){var f=e[d].offset;if(null!=f){for(var g=1;d-b>g;g++)e[b+g].off set=c+(f-c)*g/(d-b);b=d,c=f}}}if(!Array.isArray(b)&&null!==b)throw new TypeError ("Keyframes must be null or an array of keyframes");if(null==b)return[];for(var e=b.map(function(b){var d={};for(var e in b){var f=b[e];if("offset"==e){if(null! =f&&(f=Number(f),!isFinite(f)))throw new TypeError("keyframe offsets must be num bers.")}else{if("composite"==e)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"N otSupportedError",message:"add compositing is not supported"};f="easing"==e?a.to TimingFunction(f):""+f}c(e,f,d)}return void 0==d.offset&&(d.offset=null),void 0= =d.easing&&(d.easing=a.toTimingFunction("linear")),d}),f=!0,g=-1/0,h=0;h<e.lengt h;h++){var i=e[h].offset;if(null!=i){if(g>i)throw{code:DOMException.INVALID_MODI FICATION_ERR,name:"InvalidModificationError",message:"Keyframes are not loosely sorted by offset. Sort or specify offsets."};g=i}else f=!1}return e=e.filter(fun ction(a){return a.offset>=0&&a.offset<=1}),f||d(),e}var e={background:["backgrou ndImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAtt achment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderT opColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle" ,"borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth", "borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBott omWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor", "borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLef tWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius" ,"borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],bord erRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["b orderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth", "borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flex Shrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fo ntWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","margin Left"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingT op","paddingRight","paddingBottom","paddingLeft"]},f=document.createElementNS("h ttp://www.w3.org/1999/xhtml","div"),g={thin:"1px",medium:"3px",thick:"5px"},h={b orderBottomWidth:g,borderLeftWidth:g,borderRightWidth:g,borderTopWidth:g,fontSiz e:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-la rge":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth :g,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};a.normalizeKeyframes=d}(c,f),function(a){var b={};a.isDeprecated= function(a,c,d,e){var f=e?"are":"is",g=new Date,h=new Date(c);return h.setMonth( h.getMonth()+3),h>g?(a in b||console.warn("Web Animations: "+a+" "+f+" deprecate d and will stop working on "+h.toDateString()+". "+d),b[a]=!0,!1):!0},a.deprecat ed=function(b,c,d,e){var f=e?"are":"is";if(a.isDeprecated(b,c,d,e))throw new Err or(b+" "+f+" no longer supported. "+d)}}(c),function(){if(document.documentEleme nt.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play| currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split( "|").forEach(function(c){void 0===a[c]&&(b=!0)})),!b)return}!function(a,b){funct ion c(a){for(var b={},c=0;c<a.length;c++)for(var d in a[c])if("offset"!=d&&"easi ng"!=d&&"composite"!=d){var e={offset:a[c].offset,easing:a[c].easing,value:a[c][ d]};b[d]=b[d]||[],b[d].push(e)}for(var f in b){var g=b[f];if(0!=g[0].offset||1!= g[g.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupporte dError",message:"Partial keyframes are not supported"}}return b}function d(a){va r c=[];for(var d in a)for(var e=a[d],f=0;f<e.length-1;f++){var g=e[f].offset,h=e [f+1].offset,i=e[f].value,j=e[f+1].value;g==h&&(1==h?i=j:j=i),c.push({startTime: g,endTime:h,easing:e[f].easing,property:d,interpolation:b.propertyInterpolation( d,i,j)})}return c.sort(function(a,b){return a.startTime-b.startTime}),c}b.conver tEffectInput=function(e){var f=a.normalizeKeyframes(e),g=c(f),h=d(g);return func tion(a,c){if(null!=c)h.filter(function(a){return 0>=c&&0==a.startTime||c>=1&&1== a.endTime||c>=a.startTime&&c<=a.endTime}).forEach(function(d){var e=c-d.startTim e,f=d.endTime-d.startTime,g=0==f?0:d.easing(e/f);b.apply(a,d.property,d.interpol ation(g))});else for(var d in g)"offset"!=d&&"easing"!=d&&"composite"!=d&&b.clea r(a,d)}}}(c,d,f),function(a){function b(a,b,c){e[c]=e[c]||[],e[c].push([a,b])}fu nction c(a,c,d){for(var e=0;e<d.length;e++){var f=d[e];b(a,c,f),/-/.test(f)&&b(a ,c,f.replace(/-(.)/g,function(a,b){return b.toUpperCase()}))}}function d(b,c,d){ if("initial"==c||"initial"==d){var g=b.replace(/-(.)/g,function(a,b){return b.to UpperCase()});"initial"==c&&(c=f[g]),"initial"==d&&(d=f[g])}for(var h=c==d?[]:e[ b],i=0;h&&i<h.length;i++){var j=h[i][0](c),k=h[i][0](d);if(void 0!==j&&void 0!== k){var l=h[i][1](j,k);if(l){var m=a.Interpolation.apply(null,l);return function( a){return 0==a?c:1==a?d:m(a)}}}}return a.Interpolation(!1,!0,function(a){return a?d:c})}var e={};a.addPropertiesHandler=c;var f={backgroundColor:"transparent",b ackgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadiu s:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"c urrentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWi dth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius: "0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0 px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto" ,left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginL eft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",min Height:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0 px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px", paddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transpare nt",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto ",wordSpacing:"normal",zIndex:"auto"};a.propertyInterpolation=d}(d,f),function(a ,b){function c(b){var c=a.calculateActiveDuration(b),d=function(d){return a.calc ulateTimeFraction(c,d,b)};return d._totalDuration=b.delay+c+b.endDelay,d._isCurr ent=function(d){var e=a.calculatePhase(c,d,b);return e===PhaseActive||e===PhaseB efore},d}b.KeyframeEffect=function(d,e,f){var g,h=c(a.normalizeTimingInput(f)),i =b.convertEffectInput(e),j=function(){i(d,g)};return j._update=function(a){retur n g=h(a),null!==g},j._clear=function(){i(d,null)},j._hasSameTarget=function(a){r eturn d===a},j._isCurrent=h._isCurrent,j._totalDuration=h._totalDuration,j},b.Nu llEffect=function(a){var b=function(){a&&(a(),a=null)};return b._update=function (){return null},b._totalDuration=0,b._isCurrent=function(){return!1},b._hasSameT arget=function(){return!1},b}}(c,d,f),function(a){a.apply=function(b,c,d){b.styl e[a.propertyName(c)]=d},a.clear=function(b,c){b.style[a.propertyName(c)]=""}}(d, f),function(a){window.Element.prototype.animate=function(b,c){return a.timeline. _play(a.KeyframeEffect(this,b,c))}}(d),function(a){function b(a,c,d){if("number" ==typeof a&&"number"==typeof c)return a*(1-d)+c*d;if("boolean"==typeof a&&"boole an"==typeof c)return.5>d?a:c;if(a.length==c.length){for(var e=[],f=0;f<a.length; f++)e.push(b(a[f],c[f],d));return e}throw"Mismatched interpolation arguments "+a +":"+c}a.Interpolation=function(a,c,d){return function(e){return d(b(a,c,e))}}}( d,f),function(a,b){a.sequenceNumber=0;var c=function(a,b,c){this.target=a,this.c urrentTime=b,this.timelineTime=c,this.type="finish",this.bubbles=!1,this.cancela ble=!1,this.currentTarget=a,this.defaultPrevented=!1,this.eventPhase=Event.AT_TA RGET,this.timeStamp=Date.now()};b.Animation=function(b){this._sequenceNumber=a.s equenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._p laybackRate=1,this._inTimeline=!0,this._finishedFlag=!1,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._inEffect=this._effect._update(this.playbackRate<0&&0===this.currentTime ?-1:this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(th is._inTimeline=!0,b.timeline._animations.push(this))},_tickCurrentTime:function( a,b){a!=this._currentTime&&(this._currentTime=a,this._isFinished&&!b&&(this._cur rentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get c urrentTime(){return this._idle||this._currentTimePending?null:this._currentTime} ,set currentTime(a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startT ime||(this._startTime=this._timeline.currentTime-a/this._playbackRate),this._cur rentTimePending=!1,this._currentTime!=a&&(this._tickCurrentTime(a,!0),b.invalida teEffects()))},get startTime(){return this._startTime},set startTime(a){a=+a,isN aN(a)||this._paused||this._idle||(this._startTime=a,this._tickCurrentTime((this. _timeline.currentTime-this._startTime)*this.playbackRate),b.invalidateEffects()) },get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._ playbackRate){var b=this.currentTime;this._playbackRate=a,this._startTime=null," paused"!=this.playState&&"idle"!=this.playState&&this.play(),null!=b&&(this.curr entTime=b)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._c urrentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},ge t _totalDuration(){return this._effect._totalDuration},get playState(){return th is._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this ._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished" :"running"},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(thi s._currentTime=this._playbackRate>0?0:this._totalDuration,this._startTime=null,b .invalidateEffects()),this._finishedFlag=!1,b.restart(),this._idle=!1,this._ensu reAlive()},pause:function(){this._isFinished||this._paused||this._idle||(this._c urrentTimePending=!0),this._startTime=null,this._paused=!0},finish:function(){th is._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._sta rtTime=this._totalDuration-this.currentTime,this._currentTimePending=!1)},cancel :function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this.currentTime=0, this._startTime=null,this._effect._update(null),b.invalidateEffects(),b.restart( ))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:funct ion(a,b){"function"==typeof b&&"finish"==a&&this._finishHandlers.push(b)},remove EventListener:function(a,b){if("finish"==a){var c=this._finishHandlers.indexOf(b );c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){var b=this._i sFinished;if((b||this._idle)&&!this._finishedFlag){var d=new c(this,this._curren tTime,a),e=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTime out(function(){e.forEach(function(a){a.call(d.target,d)})},0)}this._finishedFlag =b},_tick:function(a){return this._idle||this._paused||(null==this._startTime?th is.startTime=a-this._currentTime/this.playbackRate:this._isFinished||this._tickC urrentTime((a-this._startTime)*this.playbackRate)),this._currentTimePending=!1,t his._fireEvents(a),!this._idle&&(this._inEffect||!this._finishedFlag)}}}(c,d,f), function(a,b){function c(a){var b=i;i=[],a<s.currentTime&&(a=s.currentTime),g(a) ,b.forEach(function(b){b[1](a)}),o&&g(a),f(),l=void 0}function d(a,b){return a._ sequenceNumber-b._sequenceNumber}function e(){this._animations=[],this.currentTi me=window.performance&&performance.now?performance.now():0}function f(){p.forEac h(function(a){a()}),p.length=0}function g(a){n=!1;var c=b.timeline;c.currentTime =a,c._animations.sort(d),m=!1;var e=c._animations;c._animations=[];var f=[],g=[] ;e=e.filter(function(b){return b._inTimeline=b._tick(a),b._inEffect?g.push(b._ef fect):f.push(b._effect),b._isFinished||b._paused||b._idle||(m=!0),b._inTimeline} ),p.push.apply(p,f),p.push.apply(p,g),c._animations.push.apply(c._animations,e), o=!1,m&&requestAnimationFrame(function(){})}var h=window.requestAnimationFrame,i =[],j=0;window.requestAnimationFrame=function(a){var b=j++;return 0==i.length&&h (c),i.push([b,a]),b},window.cancelAnimationFrame=function(a){i.forEach(function( b){b[0]==a&&(b[1]=function(){})})},e.prototype={_play:function(c){c._timing=a.no rmalizeTimingInput(c.timing);var d=new b.Animation(c);return d._idle=!1,d._timel ine=this,this._animations.push(d),b.restart(),b.invalidateEffects(),d}};var k,l= void 0,k=function(){return void 0==l&&(l=performance.now()),l},m=!1,n=!1;b.resta rt=function(){return m||(m=!0,requestAnimationFrame(function(){}),n=!0),n};var o =!1;b.invalidateEffects=function(){o=!0};var p=[],q=1e3/60,r=window.getComputedS tyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable :!0,value:function(){if(o){var a=k();a-s.currentTime>0&&(s.currentTime+=q*(Math. floor((a-s.currentTime)/q)+1)),g(s.currentTime)}return f(),r.apply(this,argument s)}});var s=new e;b.timeline=s}(c,d,f),function(a){function b(a,b){var c=a.exec( b);return c?(c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]):void 0}function c(a,b){b=b.replace(/^\s*/,"");var c=a(b);return c?[c[0],c[1].replace (/^\s*/,"")]:void 0}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e );if(!g)return[f,e];if(f.push(g[0]),e=g[1],g=b(d,e),!g||""==g[1])return[f,e];e=g [1]}}function e(a,b){for(var c=0,d=0;d<b.length&&(!/\s|,/.test(b[d])||0!=c);d++) if("("==b[d])c++;else if(")"==b[d]&&(c--,0==c&&d++,0>=c))break;var e=a(b.substr( 0,d));return void 0==e?void 0:[e,b.substr(d)]}function f(a,b){for(var c=a,d=b;c& &d;)c>d?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b) ;return c&&(c[0]=void 0),c}}function h(a,b){return function(c){var d=a(c);return d?d:[b,c]}}function i(b,c){for(var d=[],e=0;e<b.length;e++){var f=a.consumeTrim med(b[e],c);if(!f||""==f[0])return;void 0!==f[0]&&d.push(f[0]),c=f[1]}return""== c?d:void 0}function j(a,b,c,d,e){for(var g=[],h=[],i=[],j=f(d.length,e.length),k =0;j>k;k++){var l=b(d[k%d.length],e[k%e.length]);if(!l)return;g.push(l[0]),h.pus h(l[1]),i.push(l[2])}return[g,h,function(b){var d=b.map(function(a,b){return i[b ](a)}).join(c);return a?a(d):d}]}function k(a,b,c){for(var d=[],e=[],f=[],g=0,h= 0;h<c.length;h++)if("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(functi on(){return c[a]})}(h);return[d,e,function(a){for(var b="",c=0;c<a.length;c++)b+ =f[c](a[c]);return b}]}a.consumeToken=b,a.consumeTrimmed=c,a.consumeRepeated=d,a .consumeParenthesised=e,a.ignore=g,a.optional=h,a.consumeList=i,a.mergeNestedRep eated=j.bind(null,null),a.mergeWrappedNestedRepeated=j,a.mergeList=k}(d),functio n(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.consumeColor(b);return c?(d.color=c[0],c):void 0}var d={inset:!1,length s:[],color:null},e=a.consumeRepeated(c,/^/,b);return e&&e[0].length?[d,e[1]]:voi d 0}function c(c){var d=a.consumeRepeated(b,/^,/,c);return d&&""==d[1]?d[0]:void 0}function d(b,c){for(;b.lengths.length<Math.max(b.lengths.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){function b(a){return a.toFixed(3).replace(".000","")}function c(a,b,c) {return Math.min(b,Math.max(a,c))}function d(a){return/^\s*[-+]?(\d*\.)?\d+\s*$/ .test(a)?Number(a):void 0}function e(a,c){return[a,c,b]}function f(a,b){return 0 !=a?h(0,1/0)(a,b):void 0}function g(a,b){return[a,b,function(a){return Math.roun d(c(1,1/0,a))}]}function h(a,d){return function(e,f){return[e,f,function(e){retu rn b(c(a,d,e))}]}}function i(a,b){return[a,b,Math.round]}a.clamp=c,a.addProperti esHandler(d,h(0,1/0),["border-image-width","line-height"]),a.addPropertiesHandle r(d,h(0,1),["opacity","shape-image-threshold"]),a.addPropertiesHandler(d,f,["fle x-grow","flex-shrink"]),a.addPropertiesHandler(d,g,["orphans","widows"]),a.addPr opertiesHandler(d,i,["z-index"]),a.parseNumber=d,a.mergeNumbers=e,a.numberToStri ng=b}(d,f),function(a){function b(a,b){return"visible"==a||"visible"==b?[0,1,fun ction(c){return 0>=c?a:c>=1?b:"visible"}]:void 0}a.addPropertiesHandler(String,b ,["visibility"])}(d),function(a){function b(a){a=a.trim(),e.fillStyle="#000",e.f illStyle=a;var b=e.fillStyle;if(e.fillStyle="#fff",e.fillStyle=a,b==e.fillStyle) {e.fillRect(0,0,1,1);var c=e.getImageData(0,0,1,1).data;e.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function c(b,c){return[b,c,function( b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;3>d;d++) b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),"r gba("+b.join(",")+")"}]}var d=document.createElementNS("http://www.w3.org/1999/x html","canvas");d.width=d.height=1;var e=d.getContext("2d");a.addPropertiesHandl er(b,c,["background-color","border-bottom-color","border-left-color","border-rig ht-color","border-top-color","color","outline-color","text-decoration-color"]),a .consumeColor=a.consumeParenthesised.bind(null,b),a.mergeColors=c}(d,f),function (a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)retu rn{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.rep lace(a,function(a){return c[a]=null,"U"+a});for(var d="U("+a.source+")",e=b.repl ace(/[-+]?(\d*\.)?\d+/g,"N").replace(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))return;c[h]=i}return c}}}function d(a,b){return e(a,b,! 0)}function e(b,c,d){var e,f=[];for(e in b)f.push(e);for(e in c)f.indexOf(e)<0&& f.push(e);return b=f.map(function(a){return b[a]||0}),c=f.map(function(a){return c[a]||0}),[b,c,function(b){var c=b.map(function(c,e){return 1==b.length&&d&&(c= Math.max(c,0)),a.numberToString(c)+f[e]}).join(" + ");return b.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,n ew RegExp(f,"g")),h=c.bind(null,new RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|g rad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a. consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.con sumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consum eRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(a){var b=l( a);return b&&""==b[1]?b[0]:void 0},n=a.mergeNestedRepeated.bind(void 0,d," "),o= a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPrope rtiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom -width","border-image-width","border-left-width","border-right-width","border-to p-width","flex-basis","font-size","height","line-height","max-height","max-width ","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radi us","border-bottom-right-radius","border-top-left-radius","border-top-right-radi us","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right ","margin-top","min-height","min-width","outline-offset","padding-bottom","paddi ng-left","padding-right","padding-top","perspective","right","shape-margin","tex t-indent","top","vertical-align","word-spacing"])}(d,f),function(a){function b(b ){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function c(c){va r d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consum eToken.bind(null,/^\(/)),a.consumeRepeated.bind(null,b,/^,/),a.ignore(a.consumeT oken.bind(null,/^\)/))],c);return d&&4==d[0].length?d[0]:void 0}function d(b,c){ return"auto"==b||"auto"==c?[!0,!1,function(d){var e=d?b:c;if("auto"==e)return"au to";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}func tion e(a){return"rect("+a+")"}var f=a.mergeWrappedNestedRepeated.bind(null,e,d," , ");a.parseBox=c,a.mergeBoxes=f,a.addPropertiesHandler(c,f,["clip"])}(d,f),func tion(a){function b(a){return function(b){var c=0;return a.map(function(a){return a===j?b[c++]:a})}}function c(a){return a}function d(b){if(b=b.toLowerCase().tri m(),"none"==b)return[];for(var c,d=/\s*(\w+)\(([^)]*)\)/g,e=[],f=0;c=d.exec(b);) {if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=m[g];if(!h)return;var i =c[2].split(","),j=h[0];if(j.length<i.length)return;for(var n=[],o=0;o<j.length; o++){var p,q=i[o],r=j[o];if(p=q?{A:function(b){return"0"==b.trim()?l:a.parseAngl e(b)},N:a.parseNumber,T:a.parseLengthOrPercent,L:a.parseLength}[r.toUpperCase()] (q):{a:l,n:n[0],t:k}[r],void 0===p)return;n.push(p)}if(e.push({t:g,d:n}),d.lastI ndex==b.length)return e}}function e(a){return a.toFixed(6).replace(".000000","") }function f(b,c){if(b.decompositionPair!==c){b.decompositionPair=c;var d=a.makeM atrixDecomposition(b)}if(c.decompositionPair!==b){c.decompositionPair=b;var f=a. makeMatrixDecomposition(c)}return null==d[0]||null==f[0]?[[!1],[!0],function(a){ return a?c[0].d:b[0].d}]:(d[0].push(0),f[0].push(1),[d,f,function(b){var c=a.qua t(d[0][3],f[0][3],b[5]),g=a.composeMatrix(b[0],b[1],b[2],c,b[4]),h=g.map(e).join (",");return h}])}function g(a){return a.replace(/[xy]/,"")}function h(a){return a.replace(/(x|y|z|3d)?$/,"3d")}function i(b,c){var d=a.makeMatrixDecomposition& &!0,e=!1;if(!b.length||!c.length){b.length||(e=!0,b=c,c=[]);for(var i=0;i<b.leng th;i++){var j=b[i].t,k=b[i].d,l="scale"==j.substr(0,5)?1:0;c.push({t:j,d:k.map(f unction(a){if("number"==typeof a)return l;var b={};for(var c in a)b[c]=l;return b})})}}var n=function(a,b){return"perspective"==a&&"perspective"==b||("matrix"== a||"matrix3d"==a)&&("matrix"==b||"matrix3d"==b)},o=[],p=[],q=[];if(b.length!=c.l ength){if(!d)return;var r=f(b,c);o=[r[0]],p=[r[1]],q=[["matrix",[r[2]]]]}else fo r(var i=0;i<b.length;i++){var j,s=b[i].t,t=c[i].t,u=b[i].d,v=c[i].d,w=m[s],x=m[t ];if(n(s,t)){if(!d)return;var r=f([b[i]],[c[i]]);o.push(r[0]),p.push(r[1]),q.pus h(["matrix",[r[2]]])}else{if(s==t)j=s;else if(w[2]&&x[2]&&g(s)==g(t))j=g(s),u=w[ 2](u),v=x[2](v);else{if(!w[1]||!x[1]||h(s)!=h(t)){if(!d)return;var r=f(b,c);o=[r [0]],p=[r[1]],q=[["matrix",[r[2]]]];break}j=h(s),u=w[1](u),v=x[1](v)}for(var y=[ ],z=[],A=[],B=0;B<u.length;B++){var C="number"==typeof u[B]?a.mergeNumbers:a.mer geDimensions,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(functi on(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+")"}).jo in(" ")}]}var j=null,k={px:0},l={deg:0},m={matrix:["NNNNNN",[j,j,0,0,j,j,0,0,0,0 ,1,0,j,j,0,1],c],matrix3d:["NNNNNNNNNNNNNNNN",c],rotate:["A"],rotatex:["A"],rota tey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",b([j,j,1 ]),c],scalex:["N",b([j,1,1]),b([j,1])],scaley:["N",b([1,j,1]),b([1,j])],scalez:[ "N",b([1,1,j])],scale3d:["NNN",c],skew:["Aa",null,c],skewx:["A",null,b([j,l])],s kewy:["A",null,b([l,j])],translate:["Tt",b([j,j,k]),c],translatex:["T",b([j,k,k] ),b([j,k])],translatey:["T",b([k,j,k]),b([k,j])],translatez:["L",b([k,k,j])],tra nslate3d:["TTL",c]};a.addPropertiesHandler(d,i,["transform"])}(d,f),function(a){ function b(a,b){b.concat([a]).forEach(function(b){b in document.documentElement. style&&(c[a]=b)})}var c={};b("transform",["webkitTransform","msTransform"]),b("t ransformOrigin",["webkitTransformOrigin"]),b("perspective",["webkitPerspective"] ),b("perspectiveOrigin",["webkitPerspectiveOrigin"]),a.propertyName=function(a){ return c[a]||a}}(d,f)}(),!function(a,b){function c(a){var b=window.document.time line;b.currentTime=a,b._discardAnimations(),0==b._animations.length?e=!1:request AnimationFrame(c)}var d=window.requestAnimationFrame;window.requestAnimationFram e=function(a){return d(function(b){window.document.timeline._updateAnimationsPro mises(),a(b),window.document.timeline._updateAnimationsPromises()})},b.Animation Timeline=function(){this._animations=[],this.currentTime=void 0},b.AnimationTime line.prototype={getAnimations:function(){return this._discardAnimations(),this._ animations.slice()},_updateAnimationsPromises:function(){b.animationsWithPromise s=b.animationsWithPromises.filter(function(a){return a._updatePromises()})},_dis cardAnimations:function(){this._updateAnimationsPromises(),this._animations=this ._animations.filter(function(a){return"finished"!=a.playState&&"idle"!=a.playSta te})},_play:function(a){var c=new b.Animation(a,this);return this._animations.pu sh(c),b.restartWebAnimationsNextTick(),c._updatePromises(),c._animation.play(),c ._updatePromises(),c},play:function(a){return a&&a.remove(),this._play(a)}};var e=!1;b.restartWebAnimationsNextTick=function(){e||(e=!0,requestAnimationFrame(c) )};var f=new b.AnimationTimeline;b.timeline=f;try{Object.defineProperty(window.d ocument,"timeline",{configurable:!0,get:function(){return f}})}catch(g){}try{win dow.document.timeline=f}catch(g){}}(c,e,f),function(a,b){b.animationsWithPromise s=[],b.Animation=function(b,c){if(this.effect=b,b&&(b._animation=this),!c)throw new Error("Animation with null timeline is not supported");this._timeline=c,this ._sequenceNumber=a.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGro up=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._ol dPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),th is._updatePromises()},b.Animation.prototype={_updatePromises:function(){var a=th is._oldPlayState,b=this.playState;return this._readyPromise&&b!==a&&("idle"==b?( this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==a?this._resolve ReadyPromise():"pending"==b&&(this._readyPromise=void 0)),this._finishedPromise& &b!==a&&("idle"==b?(this._rejectFinishedPromise(),this._finishedPromise=void 0): "finished"==b?this._resolveFinishedPromise():"finished"==a&&(this._finishedPromi se=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finished Promise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var a,c,d ,e,f=this._animation?!0:!1;f&&(a=this.playbackRate,c=this._paused,d=this.startTi me,e=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,thi s._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)& &(this._animation=b.newUnderlyingAnimationForKeyframeEffect(this.effect),b.bindA nimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect|| this.effect instanceof window.GroupEffect)&&(this._animation=b.newUnderlyingAnim ationForGroup(this.effect),b.bindAnimationForGroup(this)),this.effect&&this.effe ct._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()
1789 },_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var a=this. effect._timing.delay;this._childAnimations.forEach(function(c){this._arrangeChil dren(c,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration (c.effect))}.bind(this))}},_setExternalAnimation:function(a){if(this.effect&&thi s._isGroup)for(var b=0;b<this.effect.children.length;b++)this.effect.children[b] ._animation=a,this._childAnimations[b]._setExternalAnimation(a)},_constructChild Animations:function(){if(this.effect&&this._isGroup){var a=this.effect._timing.d elay;this._removeChildAnimations(),this.effect.children.forEach(function(c){var d=window.document.timeline._play(c);this._childAnimations.push(d),d.playbackRate =this.playbackRate,this._paused&&d.pause(),c._animation=this.effect._animation,t his._arrangeChildren(d,a),this.effect instanceof window.SequenceEffect&&(a+=b.gr oupChildDuration(c))}.bind(this))}},_arrangeChildren:function(a,b){null===this.s tartTime?a.currentTime=this.currentTime-b/this.playbackRate:a.startTime!==this.s tartTime+b/this.playbackRate&&(a.startTime=this.startTime+b/this.playbackRate)}, get timeline(){return this._timeline},get playState(){return this._animation?thi s._animation.playState:"idle"},get finished(){return window.Promise?(this._finis hedPromise||(-1==b.animationsWithPromises.indexOf(this)&&b.animationsWithPromise s.push(this),this._finishedPromise=new Promise(function(a,b){this._resolveFinish edPromise=function(){a(this)},this._rejectFinishedPromise=function(){b({type:DOM Exception.ABORT_ERR,name:"AbortError"})}}.bind(this)),"finished"==this.playState &&this._resolveFinishedPromise()),this._finishedPromise):(console.warn("Animatio n Promises require JavaScript Promise constructor"),null)},get ready(){return wi ndow.Promise?(this._readyPromise||(-1==b.animationsWithPromises.indexOf(this)&&b .animationsWithPromises.push(this),this._readyPromise=new Promise(function(a,b){ this._resolveReadyPromise=function(){a(this)},this._rejectReadyPromise=function( ){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"pending"!==t his.playState&&this._resolveReadyPromise()),this._readyPromise):(console.warn("A nimation Promises require JavaScript Promise constructor"),null)},get onfinish() {return this._onfinish},set onfinish(a){"function"==typeof a?(this._onfinish=a,t his._animation.onfinish=function(b){b.target=this,a.call(this,b)}.bind(this)):(t his._animation.onfinish=a,this.onfinish=this._animation.onfinish)},get currentTi me(){this._updatePromises();var a=this._animation.currentTime;return this._updat ePromises(),a},set currentTime(a){this._updatePromises(),this._animation.current Time=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(),this._forEachC hild(function(b,c){b.currentTime=a-c}),this._updatePromises()},get startTime(){r eturn this._animation.startTime},set startTime(a){this._updatePromises(),this._a nimation.startTime=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(), this._forEachChild(function(b,c){b.startTime=a+c}),this._updatePromises()},get p laybackRate(){return this._animation.playbackRate},set playbackRate(a){this._upd atePromises();var b=this.currentTime;this._animation.playbackRate=a,this._forEac hChild(function(b){b.playbackRate=a}),"paused"!=this.playState&&"idle"!=this.pla yState&&this.play(),null!==b&&(this.currentTime=b),this._updatePromises()},play: function(){this._updatePromises(),this._paused=!1,this._animation.play(),-1==thi s._timeline._animations.indexOf(this)&&this._timeline._animations.push(this),thi s._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b=a.curr entTime;a.play(),a.currentTime=b}),this._updatePromises()},pause:function(){this ._updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._ani mation.pause(),this._register(),this._forEachChild(function(a){a.pause()}),this. _paused=!0,this._updatePromises()},finish:function(){this._updatePromises(),this ._animation.finish(),this._register(),this._updatePromises()},cancel:function(){ this._updatePromises(),this._animation.cancel(),this._register(),this._removeChi ldAnimations(),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()},addEventLi stener: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._wr apper||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(thi s,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDuration )}.bind(this)),"pending"!=this.playState){var d=this.effect._timing,e=this.curre ntTime;null!==e&&(e=a.calculateTimeFraction(a.calculateActiveDuration(d),e,d)),( null==e||isNaN(e))&&this._removeChildAnimations()}}},window.Animation=b.Animatio n}(c,e,f),function(a,b){function c(b){this._frames=a.normalizeKeyframes(b)}funct ion d(){for(var a=!1;h.length;){var b=h.shift();b._updateChildren(),a=!0}return a}var e=function(a){if(a._animation=void 0,a instanceof window.SequenceEffect||a instanceof window.GroupEffect)for(var b=0;b<a.children.length;b++)e(a.children[ b])};b.removeMulti=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];d._pa rent?(-1==b.indexOf(d._parent)&&b.push(d._parent),d._parent.children.splice(d._p arent.children.indexOf(d),1),d._parent=null,e(d)):d._animation&&d._animation.eff ect==d&&(d._animation.cancel(),d._animation.effect=new KeyframeEffect(null,[]),d ._animation._callback&&(d._animation._callback._animation=null),d._animation._re buildUnderlyingAnimation(),e(d))}for(c=0;c<b.length;c++)b[c]._rebuild()},b.Keyfr ameEffect=function(b,d,e){return this.target=b,this._parent=null,e=a.numericTimi ngToObject(e),this._timingInput=a.cloneTimingInput(e),this._timing=a.normalizeTi mingInput(e),this.timing=a.makeTiming(e,!1,this),this.timing._effect=this,"funct ion"==typeof d?(a.deprecated("Custom KeyframeEffect","2015-06-22","Use KeyframeE ffect.onsample instead."),this._normalizedKeyframes=d):this._normalizedKeyframes =new c(d),this._keyframes=d,this.activeDuration=a.calculateActiveDuration(this._ timing),this},b.KeyframeEffect.prototype={getFrames:function(){return"function"= =typeof this._normalizedKeyframes?this._normalizedKeyframes:this._normalizedKeyf rames._frames},set onsample(a){if("function"==typeof this.getFrames())throw new Error("Setting onsample on custom effect KeyframeEffect is not supported.");this ._onsample=a,this._animation&&this._animation._rebuildUnderlyingAnimation()},get parent(){return this._parent},clone:function(){if("function"==typeof this.getFr ames())throw new Error("Cloning custom effects is not supported.");var b=new Key frameEffect(this.target,[],a.cloneTimingInput(this._timingInput));return b._norm alizedKeyframes=this._normalizedKeyframes,b._keyframes=this._keyframes,b},remove :function(){b.removeMulti([this])}};var f=Element.prototype.animate;Element.prot otype.animate=function(a,c){return b.timeline._play(new b.KeyframeEffect(this,a, c))};var g=document.createElementNS("http://www.w3.org/1999/xhtml","div");b.newU nderlyingAnimationForKeyframeEffect=function(a){if(a){var b=a.target||g,c=a._key frames;"function"==typeof c&&(c=[]);var d=a._timingInput}else var b=g,c=[],d=0;r eturn f.apply(b,[c,d])},b.bindAnimationForKeyframeEffect=function(a){a.effect&&" function"==typeof a.effect._normalizedKeyframes&&b.bindAnimationForCustomEffect( a)};var h=[];b.awaitStartTime=function(a){null===a.startTime&&a._isGroup&&(0==h. length&&requestAnimationFrame(d),h.push(a))};var i=window.getComputedStyle;Objec t.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value: function(){window.document.timeline._updateAnimationsPromises();var a=i.apply(th is,arguments);return d()&&(a=i.apply(this,arguments)),window.document.timeline._ updateAnimationsPromises(),a}}),window.KeyframeEffect=b.KeyframeEffect,window.El ement.prototype.getAnimations=function(){return document.timeline.getAnimations( ).filter(function(a){return null!==a.effect&&a.effect.target==this}.bind(this))} }(c,e,f),function(a,b){function c(a){a._registered||(a._registered=!0,f.push(a), g||(g=!0,requestAnimationFrame(d)))}function d(){var a=f;f=[],a.sort(function(a, b){return a._sequenceNumber-b._sequenceNumber}),a=a.filter(function(a){a();var b =a._animation?a._animation.playState:"idle";return"running"!=b&&"pending"!=b&&(a ._registered=!1),a._registered}),f.push.apply(f,a),f.length?(g=!0,requestAnimati onFrame(d)):g=!1}var e=(document.createElementNS("http://www.w3.org/1999/xhtml", "div"),0);b.bindAnimationForCustomEffect=function(b){var d,f=b.effect.target,g=" function"==typeof b.effect.getFrames();d=g?b.effect.getFrames():b.effect._onsamp le;var h=b.effect.timing,i=null;h=a.normalizeTimingInput(h);var j=function(){var c=j._animation?j._animation.currentTime:null;null!==c&&(c=a.calculateTimeFracti on(a.calculateActiveDuration(h),c,h),isNaN(c)&&(c=null)),c!==i&&(g?d(c,f,b.effec t):d(c,b.effect,b.effect._animation)),i=c};j._animation=b,j._registered=!1,j._se quenceNumber=e++,b._callback=j,c(j)};var f=[],g=!1;b.Animation.prototype._regist er=function(){this._callback&&c(this._callback)}}(c,e,f),function(a,b){function c(a){return a._timing.delay+a.activeDuration+a._timing.endDelay}function d(b,c){ this._parent=null,this.children=b||[],this._reparent(this.children),c=a.numericT imingToObject(c),this._timingInput=a.cloneTimingInput(c),this._timing=a.normaliz eTimingInput(c,!0),this.timing=a.makeTiming(c,!0,this),this.timing._effect=this, "auto"===this._timing.duration&&(this._timing.duration=this.activeDuration)}wind ow.SequenceEffect=function(){d.apply(this,arguments)},window.GroupEffect=functio n(){d.apply(this,arguments)},d.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._animation&&this._animation._rebuildUnderlyingAnimation()},_reparent :function(a){b.removeMulti(a);for(var c=0;c<a.length;c++)a[c]._parent=this},_put Child:function(a,b){for(var c=b?"Cannot append an ancestor or self":"Cannot prep end an ancestor or self",d=0;d<a.length;d++)if(this._isAncestor(a[d]))throw{type :DOMException.HIERARCHY_REQUEST_ERR,name:"HierarchyRequestError",message:c};for( var d=0;d<a.length;d++)b?this.children.push(a[d]):this.children.unshift(a[d]);th is._reparent(a),this._rebuild()},append:function(){this._putChild(arguments,!0)} ,prepend:function(){this._putChild(arguments,!1)},get parent(){return this._pare nt},get firstChild(){return this.children.length?this.children[0]:null},get last Child(){return this.children.length?this.children[this.children.length-1]:null}, clone:function(){for(var b=a.cloneTimingInput(this._timingInput),c=[],d=0;d<this .children.length;d++)c.push(this.children[d].clone());return this instanceof Gro upEffect?new GroupEffect(c,b):new SequenceEffect(c,b)},remove:function(){b.remov eMulti([this])}},window.SequenceEffect.prototype=Object.create(d.prototype),Obje ct.defineProperty(window.SequenceEffect.prototype,"activeDuration",{get:function (){var a=0;return this.children.forEach(function(b){a+=c(b)}),Math.max(a,0)}}),w indow.GroupEffect.prototype=Object.create(d.prototype),Object.defineProperty(win dow.GroupEffect.prototype,"activeDuration",{get:function(){var a=0;return this.c hildren.forEach(function(b){a=Math.max(a,c(b))}),a}}),b.newUnderlyingAnimationFo rGroup=function(c){var d,e=null,f=function(b){var c=d._wrapper;return c&&"pendin g"!=c.playState&&c.effect?null==b?void c._removeChildAnimations():0==b&&c.playba ckRate<0&&(e||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateTimeFract ion(a.calculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChild(funct ion(a){a.currentTime=-1}),void c._removeChildAnimations()):void 0:void 0},g=new KeyframeEffect(null,[],c._timing);return g.onsample=f,d=b.timeline._play(g)},b.b indAnimationForGroup=function(a){a._animation._wrapper=a,a._isGroup=!0,b.awaitSt artTime(a),a._constructChildAnimations(),a._setExternalAnimation(a)},b.groupChil dDuration=c}(c,e,f)}({},function(){return this}()); 1782 },_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var a=this. effect._timing.delay;this._childAnimations.forEach(function(c){this._arrangeChil dren(c,a),this.effect instanceof window.SequenceEffect&&(a+=b.groupChildDuration (c.effect))}.bind(this))}},_setExternalAnimation:function(a){if(this.effect&&thi s._isGroup)for(var b=0;b<this.effect.children.length;b++)this.effect.children[b] ._animation=a,this._childAnimations[b]._setExternalAnimation(a)},_constructChild Animations:function(){if(this.effect&&this._isGroup){var a=this.effect._timing.d elay;this._removeChildAnimations(),this.effect.children.forEach(function(c){var d=window.document.timeline._play(c);this._childAnimations.push(d),d.playbackRate =this.playbackRate,this._paused&&d.pause(),c._animation=this.effect._animation,t his._arrangeChildren(d,a),this.effect instanceof window.SequenceEffect&&(a+=b.gr oupChildDuration(c))}.bind(this))}},_arrangeChildren:function(a,b){null===this.s tartTime?a.currentTime=this.currentTime-b/this.playbackRate:a.startTime!==this.s tartTime+b/this.playbackRate&&(a.startTime=this.startTime+b/this.playbackRate)}, get timeline(){return this._timeline},get playState(){return this._animation?thi s._animation.playState:"idle"},get finished(){return window.Promise?(this._finis hedPromise||(-1==b.animationsWithPromises.indexOf(this)&&b.animationsWithPromise s.push(this),this._finishedPromise=new Promise(function(a,b){this._resolveFinish edPromise=function(){a(this)},this._rejectFinishedPromise=function(){b({type:DOM Exception.ABORT_ERR,name:"AbortError"})}}.bind(this)),"finished"==this.playState &&this._resolveFinishedPromise()),this._finishedPromise):(console.warn("Animatio n Promises require JavaScript Promise constructor"),null)},get ready(){return wi ndow.Promise?(this._readyPromise||(-1==b.animationsWithPromises.indexOf(this)&&b .animationsWithPromises.push(this),this._readyPromise=new Promise(function(a,b){ this._resolveReadyPromise=function(){a(this)},this._rejectReadyPromise=function( ){b({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"pending"!==t his.playState&&this._resolveReadyPromise()),this._readyPromise):(console.warn("A nimation Promises require JavaScript Promise constructor"),null)},get onfinish() {return this._onfinish},set onfinish(a){"function"==typeof a?(this._onfinish=a,t his._animation.onfinish=function(b){b.target=this,a.call(this,b)}.bind(this)):(t his._animation.onfinish=a,this.onfinish=this._animation.onfinish)},get currentTi me(){this._updatePromises();var a=this._animation.currentTime;return this._updat ePromises(),a},set currentTime(a){this._updatePromises(),this._animation.current Time=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(),this._forEachC hild(function(b,c){b.currentTime=a-c}),this._updatePromises()},get startTime(){r eturn this._animation.startTime},set startTime(a){this._updatePromises(),this._a nimation.startTime=isFinite(a)?a:Math.sign(a)*Number.MAX_VALUE,this._register(), this._forEachChild(function(b,c){b.startTime=a+c}),this._updatePromises()},get p laybackRate(){return this._animation.playbackRate},set playbackRate(a){this._upd atePromises();var b=this.currentTime;this._animation.playbackRate=a,this._forEac hChild(function(b){b.playbackRate=a}),"paused"!=this.playState&&"idle"!=this.pla yState&&this.play(),null!==b&&(this.currentTime=b),this._updatePromises()},play: function(){this._updatePromises(),this._paused=!1,this._animation.play(),-1==thi s._timeline._animations.indexOf(this)&&this._timeline._animations.push(this),thi s._register(),b.awaitStartTime(this),this._forEachChild(function(a){var b=a.curr entTime;a.play(),a.currentTime=b}),this._updatePromises()},pause:function(){this ._updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._ani mation.pause(),this._register(),this._forEachChild(function(a){a.pause()}),this. _paused=!0,this._updatePromises()},finish:function(){this._updatePromises(),this ._animation.finish(),this._register(),this._updatePromises()},cancel:function(){ this._updatePromises(),this._animation.cancel(),this._register(),this._removeChi ldAnimations(),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()},addEventLi stener: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._wr apper||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(thi s,a,c),this.effect instanceof window.SequenceEffect&&(c+=a.effect.activeDuration )}.bind(this)),"pending"!=this.playState){var d=this.effect._timing,e=this.curre ntTime;null!==e&&(e=a.calculateTimeFraction(a.calculateActiveDuration(d),e,d)),( null==e||isNaN(e))&&this._removeChildAnimations()}}},window.Animation=b.Animatio n}(c,e,f),function(a,b){function c(b){this._frames=a.normalizeKeyframes(b)}funct ion d(){for(var a=!1;h.length;){var b=h.shift();b._updateChildren(),a=!0}return a}var e=function(a){if(a._animation=void 0,a instanceof window.SequenceEffect||a instanceof window.GroupEffect)for(var b=0;b<a.children.length;b++)e(a.children[ b])};b.removeMulti=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];d._pa rent?(-1==b.indexOf(d._parent)&&b.push(d._parent),d._parent.children.splice(d._p arent.children.indexOf(d),1),d._parent=null,e(d)):d._animation&&d._animation.eff ect==d&&(d._animation.cancel(),d._animation.effect=new KeyframeEffect(null,[]),d ._animation._callback&&(d._animation._callback._animation=null),d._animation._re buildUnderlyingAnimation(),e(d))}for(c=0;c<b.length;c++)b[c]._rebuild()},b.Keyfr ameEffect=function(b,d,e){return this.target=b,this._parent=null,e=a.numericTimi ngToObject(e),this._timingInput=a.cloneTimingInput(e),this._timing=a.normalizeTi mingInput(e),this.timing=a.makeTiming(e,!1,this),this.timing._effect=this,"funct ion"==typeof d?(a.deprecated("Custom KeyframeEffect","2015-06-22","Use KeyframeE ffect.onsample instead."),this._normalizedKeyframes=d):this._normalizedKeyframes =new c(d),this._keyframes=d,this.activeDuration=a.calculateActiveDuration(this._ timing),this},b.KeyframeEffect.prototype={getFrames:function(){return"function"= =typeof this._normalizedKeyframes?this._normalizedKeyframes:this._normalizedKeyf rames._frames},set onsample(a){if("function"==typeof this.getFrames())throw new Error("Setting onsample on custom effect KeyframeEffect is not supported.");this ._onsample=a,this._animation&&this._animation._rebuildUnderlyingAnimation()},get parent(){return this._parent},clone:function(){if("function"==typeof this.getFr ames())throw new Error("Cloning custom effects is not supported.");var b=new Key frameEffect(this.target,[],a.cloneTimingInput(this._timingInput));return b._norm alizedKeyframes=this._normalizedKeyframes,b._keyframes=this._keyframes,b},remove :function(){b.removeMulti([this])}};var f=Element.prototype.animate;Element.prot otype.animate=function(a,c){return b.timeline._play(new b.KeyframeEffect(this,a, c))};var g=document.createElementNS("http://www.w3.org/1999/xhtml","div");b.newU nderlyingAnimationForKeyframeEffect=function(a){if(a){var b=a.target||g,c=a._key frames;"function"==typeof c&&(c=[]);var d=a._timingInput}else var b=g,c=[],d=0;r eturn f.apply(b,[c,d])},b.bindAnimationForKeyframeEffect=function(a){a.effect&&" function"==typeof a.effect._normalizedKeyframes&&b.bindAnimationForCustomEffect( a)};var h=[];b.awaitStartTime=function(a){null===a.startTime&&a._isGroup&&(0==h. length&&requestAnimationFrame(d),h.push(a))};var i=window.getComputedStyle;Objec t.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value: function(){window.document.timeline._updateAnimationsPromises();var a=i.apply(th is,arguments);return d()&&(a=i.apply(this,arguments)),window.document.timeline._ updateAnimationsPromises(),a}}),window.KeyframeEffect=b.KeyframeEffect,window.El ement.prototype.getAnimations=function(){return document.timeline.getAnimations( ).filter(function(a){return null!==a.effect&&a.effect.target==this}.bind(this))} }(c,e,f),function(a,b){function c(a){a._registered||(a._registered=!0,f.push(a), g||(g=!0,requestAnimationFrame(d)))}function d(){var a=f;f=[],a.sort(function(a, b){return a._sequenceNumber-b._sequenceNumber}),a=a.filter(function(a){a();var b =a._animation?a._animation.playState:"idle";return"running"!=b&&"pending"!=b&&(a ._registered=!1),a._registered}),f.push.apply(f,a),f.length?(g=!0,requestAnimati onFrame(d)):g=!1}var e=(document.createElementNS("http://www.w3.org/1999/xhtml", "div"),0);b.bindAnimationForCustomEffect=function(b){var d,f=b.effect.target,g=" function"==typeof b.effect.getFrames();d=g?b.effect.getFrames():b.effect._onsamp le;var h=b.effect.timing,i=null;h=a.normalizeTimingInput(h);var j=function(){var c=j._animation?j._animation.currentTime:null;null!==c&&(c=a.calculateTimeFracti on(a.calculateActiveDuration(h),c,h),isNaN(c)&&(c=null)),c!==i&&(g?d(c,f,b.effec t):d(c,b.effect,b.effect._animation)),i=c};j._animation=b,j._registered=!1,j._se quenceNumber=e++,b._callback=j,c(j)};var f=[],g=!1;b.Animation.prototype._regist er=function(){this._callback&&c(this._callback)}}(c,e,f),function(a,b){function c(a){return a._timing.delay+a.activeDuration+a._timing.endDelay}function d(b,c){ this._parent=null,this.children=b||[],this._reparent(this.children),c=a.numericT imingToObject(c),this._timingInput=a.cloneTimingInput(c),this._timing=a.normaliz eTimingInput(c,!0),this.timing=a.makeTiming(c,!0,this),this.timing._effect=this, "auto"===this._timing.duration&&(this._timing.duration=this.activeDuration)}wind ow.SequenceEffect=function(){d.apply(this,arguments)},window.GroupEffect=functio n(){d.apply(this,arguments)},d.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._animation&&this._animation._rebuildUnderlyingAnimation()},_reparent :function(a){b.removeMulti(a);for(var c=0;c<a.length;c++)a[c]._parent=this},_put Child:function(a,b){for(var c=b?"Cannot append an ancestor or self":"Cannot prep end an ancestor or self",d=0;d<a.length;d++)if(this._isAncestor(a[d]))throw{type :DOMException.HIERARCHY_REQUEST_ERR,name:"HierarchyRequestError",message:c};for( var d=0;d<a.length;d++)b?this.children.push(a[d]):this.children.unshift(a[d]);th is._reparent(a),this._rebuild()},append:function(){this._putChild(arguments,!0)} ,prepend:function(){this._putChild(arguments,!1)},get parent(){return this._pare nt},get firstChild(){return this.children.length?this.children[0]:null},get last Child(){return this.children.length?this.children[this.children.length-1]:null}, clone:function(){for(var b=a.cloneTimingInput(this._timingInput),c=[],d=0;d<this .children.length;d++)c.push(this.children[d].clone());return this instanceof Gro upEffect?new GroupEffect(c,b):new SequenceEffect(c,b)},remove:function(){b.remov eMulti([this])}},window.SequenceEffect.prototype=Object.create(d.prototype),Obje ct.defineProperty(window.SequenceEffect.prototype,"activeDuration",{get:function (){var a=0;return this.children.forEach(function(b){a+=c(b)}),Math.max(a,0)}}),w indow.GroupEffect.prototype=Object.create(d.prototype),Object.defineProperty(win dow.GroupEffect.prototype,"activeDuration",{get:function(){var a=0;return this.c hildren.forEach(function(b){a=Math.max(a,c(b))}),a}}),b.newUnderlyingAnimationFo rGroup=function(c){var d,e=null,f=function(b){var c=d._wrapper;return c&&"pendin g"!=c.playState&&c.effect?null==b?void c._removeChildAnimations():0==b&&c.playba ckRate<0&&(e||(e=a.normalizeTimingInput(c.effect.timing)),b=a.calculateTimeFract ion(a.calculateActiveDuration(e),-1,e),isNaN(b)||null==b)?(c._forEachChild(funct ion(a){a.currentTime=-1}),void c._removeChildAnimations()):void 0:void 0},g=new KeyframeEffect(null,[],c._timing);return g.onsample=f,d=b.timeline._play(g)},b.b indAnimationForGroup=function(a){a._animation._wrapper=a,a._isGroup=!0,b.awaitSt artTime(a),a._constructChildAnimations(),a._setExternalAnimation(a)},b.groupChil dDuration=c}(c,e,f)}({},function(){return this}());
1783 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
1784 // Use of this source code is governed by a BSD-style license that can be
1785 // found in the LICENSE file.
1786
1787 // <include src="../../../../ui/webui/resources/js/i18n_template_no_process.js">
1788
1789 i18nTemplate.process(document, loadTimeData);
1790 (function () { 1790 (function () {
1791 function resolve() { 1791 function resolve() {
1792 document.body.removeAttribute('unresolved'); 1792 document.body.removeAttribute('unresolved');
1793 } 1793 }
1794 if (window.WebComponents) { 1794 if (window.WebComponents) {
1795 addEventListener('WebComponentsReady', resolve); 1795 addEventListener('WebComponentsReady', resolve);
1796 } else { 1796 } else {
1797 if (document.readyState === 'interactive' || document.readyState === 'complete') { 1797 if (document.readyState === 'interactive' || document.readyState === 'complete') {
1798 resolve(); 1798 resolve();
1799 } else { 1799 } else {
(...skipping 14521 matching lines...) Expand 10 before | Expand all | Expand 10 after
16321 document.querySelector('downloads-manager').onLoad_(); 16321 document.querySelector('downloads-manager').onLoad_();
16322 }; 16322 };
16323 16323
16324 return {Manager: Manager}; 16324 return {Manager: Manager};
16325 }); 16325 });
16326 // Copyright 2015 The Chromium Authors. All rights reserved. 16326 // Copyright 2015 The Chromium Authors. All rights reserved.
16327 // Use of this source code is governed by a BSD-style license that can be 16327 // Use of this source code is governed by a BSD-style license that can be
16328 // found in the LICENSE file. 16328 // found in the LICENSE file.
16329 16329
16330 window.addEventListener('load', downloads.Manager.onLoad); 16330 window.addEventListener('load', downloads.Manager.onLoad);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698