(()=>{"use strict";var t={};function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const a=gutenverseCoreFrontend,u=window.animejs;var c=t.n(u);function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var l=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,i=arguments,r=o(r=n),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(r,i||[],o(t).constructor):r.apply(t,i));var t,r,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(n,t),u=n,(l=[{key:"init",value:function(){var t=this;this._elements.map(function(e){t._addAnimation(e)})}},{key:"_addAnimation",value:function(t){var e=(0,a.u)(t).find(".number"),n=e.data("number"),r=e.data("safe"),o=e.data("duration"),i=e.data("number-format"),u=e.data("number-spaces"),f=null,l=n||r;if(r){var s=r.replaceAll(",",".");if(!/^-?\d+(\.\d+)?$/.test(s))return void(e.first().textContent="Invalid number");"comma"===i?f=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}):"point"===i&&(f=new Intl.NumberFormat("id-ID",{maximumFractionDigits:0})),l=Math.round(parseFloat(s))}u||(l="".concat(l," "));var p=c()({targets:e.first(),innerHTML:l,easing:"easeInOutQuart",round:1,duration:o,autoplay:!1,update:f&&r?function(t){var n=parseInt(t.animations[0].currentValue);e.first().innerHTML=isNaN(n)?t.animations[0].currentValue:f.format(n)}:null});this.playOnScreen(t,[p])}}])&&r(u.prototype,l),Object.defineProperty(u,"prototype",{writable:!1}),u;var u,l}(a.Default),s=(0,a.u)(".guten-fun-fact");s&&new l(s)})();