!function(e){var t=function(e){return e.split("").reverse().join("")},n={numberStep:function(t,n){var r=Math.floor(t),o=e(n.elem);o.text(r)}},r=function(e){var t=e.elem;if(t.nodeType&&t.parentNode){var r=t._animateNumberSetter;r||(r=n.numberStep),r(e.now,e)}};e.Tween&&e.Tween.propHooks?e.Tween.propHooks.number={set:r}:e.fx.step.number=r;var o=function(e,t){for(var n,r,o,a=e.split("").reverse(),u=[],i=0,p=Math.ceil(e.length/t);p>i;i++){for(n="",o=0;t>o&&(r=i*t+o,r!==e.length);o++)n+=a[r];u.push(n)}return u},a=function(e){var n=e.length-1,r=t(e[n]);return e[n]=t(parseInt(r,10).toString()),e};e.animateNumber={numberStepFactories:{append:function(t){return function(n,r){var o=Math.floor(n),a=e(r.elem);a.prop("number",n).text(o+t)}},separator:function(n,r){return n=n||" ",r=r||3,function(u,i){var p=Math.floor(u),m=p.toString(),f=e(i.elem);if(m.length>r){var c=o(m,r);m=a(c).join(n),m=t(m)}f.prop("number",u).text(m)}}}},e.fn.animateNumber=function(){for(var t=arguments[0],r=e.extend({},n,t),o=e(this),a=[r],u=1,i=arguments.length;i>u;u++)a.push(arguments[u]);if(t.numberStep){var p=this.each(function(){this._animateNumberSetter=t.numberStep}),m=r.complete;r.complete=function(){p.each(function(){delete this._animateNumberSetter}),m&&m.apply(this,arguments)}}return o.animate.apply(o,a)}}(jQuery);