/* 2017 Julian Garnier Released under the MIT license*/var$jscomp={scope:{}};$jscomp.defineProperty="function"==typeofObject.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)thrownewTypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeofwindow&&window===e?e:"undefined"!=typeofglobal&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return$jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();vare=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeofArray.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return$jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){varr=0;return$jscomp.iteratorPrototype(function(){returnr<e.length?{done:!1,value:e[r++]}:{done:!0}})};$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){returnthis};returne};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,r){$jscomp.initSymbolIterator();einstanceofString&&(e+="");varp=0,m={next:function(){if(p<e.length){varu=p++;return{value:r(u,e[u]),done:!1}}m.next=function(){return{done:!0,value:void0}};returnm.next()}};m[Symbol.iterator]=function(){returnm};returnm};$jscomp.polyfill=function(e,r,p,m){if(r){p=$jscomp.global;e=e.split(".");for(m=0;m<e.length-1;m++){varu=e[m];uinp||(p[u]={});p=p[u]}e=e[e.length-1];m=p[e];r=r(m);r!=m&&null!=r&&$jscomp.defineProperty(p,e,{configurable:!0,writable:!0,value:r})}};$jscomp.polyfill("Array.prototype.keys",function(e){returne?e:function(){return$jscomp.iteratorFromArray(this,function(e){returne})}},"es6-impl","es3");var$jscomp$this=this;(function(e,r){"function"===typeofdefine&&define.amd?define([],r):"object"===typeofmodule&&module.exports?module.exports=r():e.anime=r()})(this,function(){functione(a){if(!h.col(a))try{returndocument.querySelectorAll(a)}catch(c){}}functionr(a,c){for(vard=a.length,b=2<=arguments.length?arguments[1]:void0,f=[],n=0;n<d;n++)if(nina){vark=a[n];c.call(b,k,n,a)&&f.push(k)}returnf}functionp(a){returna.reduce(function(a,d){returna.concat(h.arr(d)?p(d):d)},[])}functionm(a){if(h.arr(a))returna;h.str(a)&&(a=e(a)||a);returnainstanceofNodeList||ainstanceofHTMLCollection?[].slice.call(a):[a]}functionu(a,c){returna.some(function(a){returna===c})}functionC(a){varc={},d;for(dina)c[d]=a[d];returnc}functionD(a,c){vard=C(a),b;for(bina)d[b]=c.hasOwnProperty(b)?c[b]:a[b];returnd}functionz(a,c){vard=C(a),b;for(binc)d[b]=h.und(a[b])?c[b]:a[b];returnd}functionT(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,c,d,k){returnc+c+d+d+k+k});varc=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);a=parseInt(c[1],16);vard=parseInt(c[2],16),c=parseInt(c[3],16);return"rgba("+a+","+d+","+c+",1)"}functionU(a){functionc(a,c,b){0>b&&(b+=1);1<b&&--b;returnb<1/6?a+6*(c-a)*b:.5>b?c:b<2/3?a+(c-a)*(2/3-b)*6:a}vard=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;varb=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{varn=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3)}return"rgba("+255*f+","+255*b+","+255*a+","+d+")"}functiony(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))returna[2]}functionV(a){if(-1<a.indexOf("translate")||"perspective"===a)return"px";if(-1<a.indexOf("rotate")||-1<a.indexOf("skew"))return"deg"}functionI(a,c){returnh.fnc(a)?a(c.target,c.id,c.total):a}functionE(a,c){if(cina.style)returngetComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}functionJ(a,c){if(h.dom(a)&&u(W,c))return"transform";if(h.dom(a)&&(a.getAttribute(c)||h.svg(a)&&a[c]))return"attribute";if(h.dom(a)&&"transform"!==c&&E(a,c))return"css";if(null!=a[c])return"object"}functionX(a,c){vard=V(c),d=-1<c.indexOf("scale")?1:0+d;a=a.style.transform;if(!a)returnd;for(varb=[],f=[],n=[],k=/(\w+)\((.+?)\)/g;b=k.exec(a);)f.push(b[1]),n.push(b[2]);a=r(n,function(a,b){returnf[b]===c});returna.length?a[0]:d}functionK(a,c){switch(J(a,c)){case"transform":returnX(a,c);case"css":returnE(a,c);case"attribute":returna.getAttribute(c)}returna[c]||0}functionL(a,c){vard=/^(\*=|\+=|-=)/.exec(a);if(!d)returna;varb=y(a)||0;c=parseFloat(c);a=parseFloat(a.replace(d[0],""));switch(d[0][0]){case"+":returnc+a+b;case"-":returnc-a+b;case"*":returnc*a+b}}functionF(a,c){returnMath.sqrt(Math.pow(c.x-a.x,2)+Math.pow(c.y-a.y,2))}functionM(a){a=a.points;for(varc=0,d,b=0;b<a.numberOfItems;b++){varf=a.getItem(b);0<b&&(c+=F(d,f));d=f}returnc}functionN(a){if(a.getTotalLength)returna.getTotalLength();switch(a.tagName.toLowerCase()){case"circle":return2*Math.PI*a.getAttribute("r");case"rect":return2*a.getAttribute("width")+2*a.getAttribute("height");case"line":returnF({x:a.getAttribute("x1"),y:a.getAttribute("y1")},{x:a.getAttribute("x2"),y:a.getAttribute("y2")});case"polyline":returnM(a);case"polygon":varc=a.points;returnM(a)+F(c.getItem(c.numberOfItems-1),c.getItem(0))}}functionY(a,c){functiond(b){b=void0===b?0:b;returna.el.getPointAtLength(1<=c+b?c+b:0)}varb=d(),f=d(-1),n=d(1);switch(a.property){case"x":returnb.x;case"y":returnb.y;case"angle":return180*Math.atan2(n.y-f.y,n.x-f.x)/Math.PI}}functionO(a,c){vard=/-?\d*\.?\d+/g,b;b=h.pth(a)?a.totalLength:a;if(h.col(b))if(h.rgb(b)){varf=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b);b=f?"rgba("+f[1]+",1)":b}elseb=h.hex(b)?T(b):h.hsl(b)?U(b):void0;elsef=(f=y(b))?b.substr(0,b.length-f.length):b,b=c&&!/\s/g.test(b)?f+c:f;b+="";return{original:b,numbers:b.match(d)?b.match(d).map(Number):[0],strings:h.str(a)||c?b.split(d):[]}}functionP(a){a=a?p(h.arr(a)?a.map(m):m(a)):[];returnr(a,function(a,d,b){returnb.indexOf(a)===d})}functionZ(a){varc=P(a);returnc.map(function(a,b){return{target:a,id:b,total:c.length}})}functionaa(a,c){vard=C(c);if(h.arr(a)){varb=a.length;2!==b||h.obj(a[0])?h.fnc(c.duration)||(d.duration=c.duration/b):a={value:a}}returnm(a).map(function(a,b){b=b?0:c.delay;a=h.obj(a)&&!h.pth(a)?a:{value:a};h.und(a.delay)&&(a.delay=b);returna}).map(function(a){returnz(a,d)})}functionba(a,c){vard={},b;for(bina){varf=I(a[b],c);h.arr(f)&&(f=f.map(function(a){returnI(a,c)}),1===f.length&&(f=f[0]));d[b]=f}d.duration=parseFloat(d.duration);d.delay=parseFloat(d.delay);returnd}functionca(a){returnh.arr(a)?A.apply(this,a):Q[a]}functionda(a,c){vard;returna.tweens.map(function(b){b=ba(b,c);varf=b.value,e=K(c.target,a.name),k=d?d.to.original:e,k=h.arr(f)?f[0]:k,w=L(h.arr(f)?f[1]:f,k),e=y(w)||y(k)||y(e);b.from=O(k,e);b.to=O(w,e);b.start=d?d.end:a.offset;b.end=b.start+b.delay+b.duration;b.easing=ca(b.easing);b.elasticity=(1E3-Math.min(Math.max(b.elasticity,1),999))/1E3;b.isPath=h.pth(f);b.isColor=h.col(b.from.original);b.isColor&&(b.round=1);returnd=b})}functionea(a,c){returnr(p(a.map(function(a){returnc.map(function(b){varc=J(a.target,b.name);if(c){vard=da(b,a);b={type:c,property:b.name,animatable:a,tweens:d,duration:d[d.length-1].end,delay:d[0].delay}}elseb=void0;returnb})})),function(a){return!h.und(a)})}functionR(a,c,d,b){varf="delay"===a;returnc.length?(f?Math.min:Math.max).apply(Math,c.map(function(b){returnb[a]})):f?b.delay:d.offset+b.delay+b.duration}functionfa(a){varc=D(ga,a),d=D(S,a),b=Z(a.targets),f=[],e=z(c,d),k;for(kina)e.hasOwnProperty(k)||"targets"===k||f.push({name:k,offset:e.offset,tweens:aa(a[k],d)});a=ea(b,f);returnz(c,{children:[],animatables:b,animations:a,duration:R("duration",a,c,d),delay:R("delay",a,c,d)})}functionq(a){functionc(){returnwindow.Promise&&newPromise(function(a){returnp=a})}functiond(a){returng.reversed?g.duration-a:a}functionb(a){for(varb=0,c={},d=g.animations,f=d.length;b<f;){vare=d[b],k=e.animatable,h=e.tweens,n=h.length-1,l=h[n];n&&(l=r(h,function(b){returna<b.end})[0]||l);for(varh=Math.min(Math.max(a-l.start-l.delay,0),l.duration)/l.duration,w=isNaN(h)?1:l.easing(h,l.elasticity),h=l.to.strings,p=l.round,n=[],m=void0,m=l.to.numbers.length,t=0;t<m;t++){varx=void0,x=l.to.numbers[t],q=l.from.numbers[t],x=l.isPath?Y(l.value,w*x):q+w*(x-q);p&&(l.isColor&&2<t||(x=Math.round(x*p)/p));n.push(x)}if(l=h.length)for(m=h[0],w=0;w<l;w++)p=h[w+1],t=n[w],isNaN(t)||(m=p?m+(t+p):m+(t+" "));elsem=n[0];ha[e.type](k.target,e.property,m,c,k.id);e.currentValue=m;b++}if(b=Object.keys(c).length)for(d=0;d<b;d++)H||(H=E(document.body,"transform")?"transform":"-webkit-transform"),g.animatables[d].target.style[H]=c[d].join(" ");g.currentTime=a;g.progress=a/g.duration*100}functionf(a){if(g[a])g[a](g)}functione(){g.remaining&&!0!==g.remaining&&g.remaining--}functionk(a){vark=g.duration,n=g.offset,w=n+g.delay,r=g.currentTime,x=g.reversed,q=d(a);if(g.children.length){varu=g.children,v=u.length;if(q>=g.currentTime)for(varG=0;G<v;G++)u[G].seek(q);elsefor(;v--;)u[v].seek(q)}if(q>=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q<k)b(q);elseif(q<=n&&0!==r&&(b(0),x&&e()),q>=k&&r!==k||!k)b(k),x||e();f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise"inwindow&&(p(),m=c()))),l=0)}a=void0===a?{}:a;varh,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){vara=g.direction,c=g.loop;g.currentTime=0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset()};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed)};g.seek=function(a){k(d(a))};g.pause=function(){vara=v.indexOf(g);-1<a&&v.splice(a,1);g.paused=!0};g.play=function(){g.paused&&(g.paused=!1,t=0,l=d(g.currentTime),v.push(g),B||ia())};g.reverse=function(){g.reversed=!g.reversed;t=0;l=d(g.currentTime)};g.restart=function(){g.pause();g.reset();g.play()};g.finished=m;g.reset();g.autoplay&&g.play();returng}varga={update:void0,begin:void0,run:void0,complete:void0,loop:1,direction:"normal",autoplay:!0,offset:0},S={duration:1E3,delay:0,easing:"easeOutElastic",elasticity:500,round:0},W="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),H,h={arr:function(a){returnArray.isArray(a)},obj:function(a){return-1<Object.prototype.toString.call(a).indexOf("Object")},pth:function(a){returnh.obj(a)&&a.hasOwnProperty("totalLength")},svg:function(a){returnainstanceofSVGElement},dom:function(a){returna.nodeType||h.svg(a)},str:function(a){return"string"===typeofa},fnc:function(a){return"function"===typeofa},und:function(a){return"undefined"===typeofa},hex:function(a){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)},rgb:function(a){return/^rgb/.test(a)},hsl:function(a){return/^hsl/.test(a)},col:function(a){returnh.hex(a)||h.rgb(a)||h.hsl(a)}},A=function(){functiona(a,d,b){return(((1-3*b+3*d)*a+(3*b-6*d))*a+3*d)*a}returnfunction(c,d,b,f){if(0<=c&&1>=c&&0<=b&&1>=b){vare=newFloat32Array(11);if(c!==d||b!==f)for(vark=0;11>k;++k)e[k]=a(.1*k,c,b);returnfunction(k){if(c===d&&b===f)returnk;if(0===k)return0;if(1===k)return1;for(varh=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;varl=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;varm=a(l,c,b)-k,l=l-m/n}k=l}elseif(0===n)k=l;else{varl=h,h=h+.1,g=0;dom=l+(h-l)/2,n=a(m,c,b)-k,0<n?h=m:l=m;while(1e-7<Math.abs(n)&&10>++g);k=m}returna(k,d,f)}}}}(),Q=function(){functiona(a,b){return0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b)}varc="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return1-a(1-b,c)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return.5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(eind)f.type=e,d[f.type].forEach(function(a){returnfunction(d,f){b["ease"+a.type+c[f]]=h.fnc(d)?d:A.apply($jscomp$this,d)}}(f)),f={type:f.type};returnb}(),ha={css:function(a,c,d){returna.style[c]=d},attribute:function(a,c,d){returna.setAttribute(c,d)},object:function(a,c,d){returna[c]=d},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")")}},v=[],B=0,ia=function(){functiona(){B=requestAnimationFrame(c)}functionc(c){varb=v.length;if(b){for(vard=0;d<b;)v[d]&&v[d].tick(c),d++;a()}elsecancelAnimationFrame(B),B=0}returna}();q.version="2.2.0";q.speed=1;q.running=v;q.remove=function(a){a=P(a);for(varc=v.length;c--;)for(vard=v[c],b=d.animations,f=b.length;f--;)u(a,b[f].animatable.target)&&(b.splice(f,1),b.length||d.pause())};q.getValue=K;q.path=function(a,c){vard=h.str(a)?e(a)[0]:a,b=c||100;returnfunction(a){return{el:d,property:a,totalLength:N(d)*(b/100)}}};q.setDashoffset=function(a){varc=N(a);a.setAttribute("stroke-dasharray",c);returnc};q.bezier=A;q.easings=Q;q.timeline=function(a){varc=q(a);c.pause();c.duration=0;c.add=function(d){c.children.forEach(function(a){a.began=!0;a.completed=!0});m(d).forEach(function(b){vard=z(b,D(S,a||{}));d.targets=d.targets||a.targets;b=c.duration;vare=d.offset;d.autoplay=!1;d.direction=c.direction;d.offset=h.und(e)?b:L(e,b);c.began=!0;c.completed=!0;c.seek(d.offset);d=q(d);d.began=!0;d.completed=!0;d.duration>b&&(c.duration=d.duration);c.children.push(d)});c.seek(0);c.reset();c.autoplay&&c.restart();returnc};returnc};q.random=function(a,c){returnMath.floor(Math.random()*(c-a+1))+a};returnq});