var $jscomp$this=this;(function(b,a){"function"===typeof define&&define.amd?define([],a):"object"===typeof module&&module.exports?module.exports=a():b.anime=a()})(this,function(){function am(g){if(!o.col(g)){try{return document.querySelectorAll(g)}catch(n){}}}function ah(g){return g.reduce(function(n,p){return n.concat(o.arr(p)?ah(p):p)},[])}function ao(g){if(o.arr(g)){return g}o.str(g)&&(g=am(g)||g);return g instanceof NodeList||g instanceof HTMLCollection?[].slice.call(g):[g]}function l(g,n){return g.some(function(p){return p===n})}function a(g){var n={},p;for(p in g){n[p]=g[p]}return n}function r(g,n){var q=a(g),p;for(p in g){q[p]=n.hasOwnProperty(p)?n[p]:g[p]}return q}function c(g,n){var q=a(g),p;for(p in n){q[p]=o.und(g[p])?n[p]:g[p]}return q}function aj(g){g=g.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(q,v,w,x){return v+v+w+w+x+x});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(g);g=parseInt(n[1],16);var p=parseInt(n[2],16),n=parseInt(n[3],16);return"rgb("+g+","+p+","+n+")"}function ak(g){function n(x,y,z){0>z&&(z+=1);1z?y:z<2/3?x+(y-x)*(2/3-z)*6:x}var q=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(g);g=parseInt(q[1])/360;var p=parseInt(q[2])/100,q=parseInt(q[3])/100;if(0==p){p=q=g=q}else{var v=0.5>q?q*(1+p):q+p-q*p,w=2*q-v,p=n(w,v,g+1/3),q=n(w,v,g);g=n(w,v,g-1/3)}return"rgb("+255*p+","+255*q+","+255*g+")"}function aq(g){if(g=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw|vh|deg|rad|turn)?/.exec(g)){return g[2]}}function al(g){if(-1=x.currentTime){for(var M=0;MG&&L=H&&(x.began=!0,w("begin")),w("run")):(L<=G&&0!==J&&(q(0),K&&y()),L>=F&&J!==F&&(q(F),K||y()));g>=F&&(x.remaining?(E=B,"alternate"===x.direction&&(x.reversed=!x.reversed)):(x.pause(),"Promise" in window&&(C(),D=p()),x.completed||(x.completed=!0,w("complete"))),A=0);w("update")}n=void 0===n?{}:n;var B,E,A=0,C=null,D=p(),x=m(n);x.reset=function(){var g=x.direction,F=x.loop;x.currentTime=0;x.progress=0;x.paused=!0;x.began=!1;x.completed=!1;x.reversed="reverse"===g;x.remaining="alternate"===g&&1===F?2:F;for(g=x.children.length;g--;){F=x.children[g],F.seek(F.offset),F.reset()}};x.tick=function(g){B=g;E||(E=B);z((A+B-E)*ae.speed)};x.seek=function(g){z(v(g))};x.pause=function(){var g=ai.indexOf(x);-1=n&&0<=p&&1>=p){var w=new Float32Array(11);if(n!==q||p!==v){for(var x=0;11>x;++x){w[x]=g(0.1*x,n,p)}}return function(z){if(n===q&&p===v){return z}if(0===z){return 0}if(1===z){return 1}for(var C=0,A=1;10!==A&&w[A]<=z;++A){C+=0.1}--A;var A=C+(z-w[A])/(w[A+1]-w[A])*0.1,B=3*(1-3*p+3*n)*A*A+2*(3*p-6*n)*A+3*n;if(0.001<=B){for(C=0;4>C;++C){B=3*(1-3*p+3*n)*A*A+2*(3*p-6*n)*A+3*n;if(0===B){break}var D=g(A,n,p)-z,A=A-D/B}z=A}else{if(0===B){z=A}else{var A=C,C=C+0.1,y=0;do{D=A+(C-A)/2,B=g(D,n,p)-z,0++y);z=D}}return g(z,q,v)}}}}(),af=function(){function g(x,y){return 0===x||1===x?x:-Math.pow(2,10*(x-1))*Math.sin(2*(x-1-y/(2*Math.PI)*Math.asin(1))*Math.PI/y)}var n="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),q={In:[[0.55,0.08500000000000001,0.6800000000000001,0.53],[0.55,0.055,0.675,0.19],[0.895,0.03,0.6850000000000001,0.22],[0.755,0.05,0.855,0.06],[0.47,0,0.745,0.715],[0.95,0.05,0.795,0.035],[0.6,0.04,0.98,0.335],[0.6,-0.28,0.735,0.045],g],Out:[[0.25,0.46,0.45,0.94],[0.215,0.61,0.355,1],[0.165,0.84,0.44,1],[0.23,1,0.32,1],[0.39,0.575,0.565,1],[0.19,1,0.22,1],[0.075,0.82,0.165,1],[0.175,0.885,0.32,1.275],function(x,y){return 1-g(1-x,y)}],InOut:[[0.455,0.03,0.515,0.955],[0.645,0.045,0.355,1],[0.77,0,0.175,1],[0.86,0,0.07000000000000001,1],[0.445,0.05,0.55,0.95],[1,0,0,1],[0.785,0.135,0.15,0.86],[0.6800000000000001,-0.55,0.265,1.55],function(x,y){return 0.5>x?g(2*x,y)/2:1-g(-2*x+2,y)/2}]},p={linear:at(0.25,0.25,0.75,0.75)},v={},w;for(w in q){v.type=w,q[v.type].forEach(function(x){return function(y,z){p["ease"+x.type+n[z]]=o.fnc(y)?y:at.apply($jscomp$this,y)}}(v)),v={type:v.type}}return p}(),Q={css:function(g,n,p){return g.style[n]=p},attribute:function(g,n,p){return g.setAttribute(n,p)},object:function(g,n,p){return g[n]=p},transform:function(g,n,q,p,v){p[v]||(p[v]=[]);p[v].push(n+"("+q+")")}},ai=[],av=0,aa=function(){function g(){av=requestAnimationFrame(n)}function n(p){var q=ai.length;if(q){for(var v=0;vv&&(n.duration=q.duration);q.began=!0;n.children.push(q)});n.reset();n.seek(0);n.autoplay&&n.restart();return n};return n};ae.random=function(g,n){return Math.floor(Math.random()*(n-g+1))+g};return ae});