"use strict"; function _toconsumablearray(arr) { if (array.isarray(arr)) { for (var i = 0, arr2 = array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return array.from(arr); } } !(function (e, t) { "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.counterup = t() : e.counterup = t(); })(self, function () { return (function () { "use strict";var e = { d: function d(t, n) { for (var o in n) e.o(n, o) && !e.o(t, o) && object.defineproperty(t, o, { enumerable: !0, get: n[o] }); }, o: function o(e, t) { return object.prototype.hasownproperty.call(e, t); }, r: function r(e) { "undefined" != typeof symbol && symbol.tostringtag && object.defineproperty(e, symbol.tostringtag, { value: "module" }), object.defineproperty(e, "__esmodule", { value: !0 }); } }, t = {};e.r(t), e.d(t, { "default": function _default() { return n; }, dividenumbers: function dividenumbers() { return r; } });var n = function n(e) { var t = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; var _t$action = t.action; var n = _t$action === undefined ? "start" : _t$action; var _t$duration = t.duration; var i = _t$duration === undefined ? 1e3 : _t$duration; var _t$delay = t.delay; var u = _t$delay === undefined ? 16 : _t$delay; if ("stop" === n) return void o(e);if ((o(e), !/[0-9]/.test(e.innerhtml))) return;var l = r(e.innerhtml, { duration: i || e.getattribute("data-duration"), delay: u || e.getattribute("data-delay") });e._countuporiginnerhtml = e.innerhtml, e.innerhtml = l[0] || " ", e.style.visibility = "visible";var c = function c() { e.innerhtml = l.shift() || " ", l.length ? (cleartimeout(e.countuptimeout), e.countuptimeout = settimeout(c, u)) : e._countuporiginnerhtml = void 0; };e.countuptimeout = settimeout(c, u); }, o = function o(e) { cleartimeout(e.countuptimeout), e._countuporiginnerhtml && (e.innerhtml = e._countuporiginnerhtml, e._countuporiginnerhtml = void 0), e.style.visibility = ""; }, r = function r(e) { var t = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; var _t$duration2 = t.duration; var n = _t$duration2 === undefined ? 1e3 : _t$duration2; var _t$delay2 = t.delay; var o = _t$delay2 === undefined ? 16 : _t$delay2;var r = n / o;var i = e.tostring().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/);var u = [];for (var _e = 0; _e < r; _e++) { u.push(""); }for (var _e2 = 0; _e2 < i.length; _e2++) { if (/([0-9.][,.0-9]*[0-9]*)/.test(i[_e2]) && !/<[^>]+>/.test(i[_e2])) { (function () { var t = i[_e2];var n = [].concat(_toconsumablearray(t.matchall(/[.,]/g))).map(function (e) { return { char: e[0], i: t.length - e.index - 1 }; }).sort(function (e, t) { return e.i - t.i; });t = t.replace(/[.,]/g, "");var o = u.length - 1;for (var _e3 = r; _e3 >= 1; _e3--) { var _i = parseint(t / r * _e3, 10);_i = n.reduce(function (e, _ref) { var t = _ref.char; var n = _ref.i; return e.length <= n ? e : e.slice(0, -n) + t + e.slice(-n); }, _i.tostring()), u[o--] += _i; } })(); } else for (var _t = 0; _t < r; _t++) { u[_t] += i[_e2]; } }return u[u.length] = e.tostring(), u; };return t; })(); });