(function(u,r){"function"===typeof define&&define.amd?define([],r):"object"===typeof module&&module.exports?module.exports=r():u.anime=r()})(this,function(){var u={duration:1e3,delay:0,loop:!1,autoplay:!0,direction:"normal",easing:"easeoutelastic",elasticity:400,round:!1,begin:void 0,update:void 0,complete:void 0},r="translatex translatey translatez rotate rotatex rotatey rotatez scale scalex scaley scalez skewx skewy".split(" "),y,f={arr:function(a){return array.isarray(a)},obj:function(a){return-1< object.prototype.tostring.call(a).indexof("object")},svg:function(a){return a instanceof svgelement},dom:function(a){return a.nodetype||f.svg(a)},num:function(a){return!isnan(parseint(a))},str:function(a){return"string"===typeof a},fnc:function(a){return"function"===typeof a},und:function(a){return"undefined"===typeof a},nul:function(a){return"null"===typeof a},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){return f.hex(a)||f.rgb(a)||f.hsl(a)}},d=function(){var a={},b={sine:function(a){return 1-math.cos(a*math.pi/2)},circ:function(a){return 1-math.sqrt(1-a*a)},elastic:function(a,b){if(0===a||1===a)return a;var d=1-math.min(b,998)/1e3,g=a/1-1;return-(math.pow(2,10*g)*math.sin(2*(g-d/(2*math.pi)*math.asin(1))*math.pi/d))},back:function(a){return a*a*(3*a-2)},bounce:function(a){for(var b,d=4;a<((b=math.pow(2,--d))-1)/11;);return 1/math.pow(4,3-d)-7.5625*math.pow((3*b-2)/22-a,2)}};["quad", "cubic","quart","quint","expo"].foreach(function(a,e){b[a]=function(a){return math.pow(a,e+2)}});object.keys(b).foreach(function(c){var e=b[c];a["easein"+c]=e;a["easeout"+c]=function(a,b){return 1-e(1-a,b)};a["easeinout"+c]=function(a,b){return.5>a?e(2*a,b)/2:1-e(-2*a+2,b)/2};a["easeoutin"+c]=function(a,b){return.5>a?(1-e(1-2*a,b))/2:(e(2*a-1,b)+1)/2}});a.linear=function(a){return a};return a}(),z=function(a){return f.str(a)?a:a+""},e=function(a){return a.replace(/([a-z])([a-z])/g,"$1-$2").tolowercase()}, f=function(a){if(f.col(a))return!1;try{return document.queryselectorall(a)}catch(b){return!1}},a=function(a){return a.reduce(function(a,c){return a.concat(f.arr(c)?a(c):c)},[])},t=function(a){if(f.arr(a))return a;f.str(a)&&(a=f(a)||a);return a instanceof nodelist||a instanceof htmlcollection?[].slice.call(a):[a]},g=function(a,b){return a.some(function(a){return a===b})},r=function(a,b){var c={};a.foreach(function(a){var d=json.stringify(b.map(function(b){return a[b]}));c[d]=c[d]||[];c[d].push(a)}); return object.keys(c).map(function(a){return c[a]})},h=function(a){return a.filter(function(a,c,e){return e.indexof(a)===c})},b=function(a){var b={},c;for(c in a)b[c]=a[c];return b},v=function(a,b){for(var c in b)a[c]=f.und(a[c])?b[c]:a[c];return a},s=function(a){a=a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(a,b,c,m){return b+b+c+c+m+m});var b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);a=parseint(b[1],16);var c=parseint(b[2],16),b=parseint(b[3],16);return"rgb("+a+","+c+","+b+")"}, t=function(a){a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a);var b=parseint(a[1])/360,c=parseint(a[2])/100,e=parseint(a[3])/100;a=function(a,b,c){0>c&&(c+=1);1c?b:c<2/3?a+(b-a)*(2/3-c)*6:a};if(0==c)c=e=b=e;else var d=.5>e?e*(1+c):e+c-e*c,g=2*e-d,c=a(g,d,b+1/3),e=a(g,d,b),b=a(g,d,b-1/3);return"rgb("+255*c+","+255*e+","+255*b+")"},p=function(a){return/([\+\-]?[0-9|auto\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw|vh|deg)?/.exec(a)[2]},i=function(a,b,c){return p(b)? b:-1=d.delay&&(d.begin(b),d.begin=void 0);c.current>=b.duration&&(d.loop?(c.start=a,"alternate"===d.direction&&c(b,!0),f.num(d.loop)&&d.loop--):(b.ended=!0,b.pause(),d.complete&&d.complete(b)),c.last=0)};b.seek=function(a){p(b,a/100*b.duration)};b.pause=function(){ba(b);var a=n.indexof(b);-1