!function(){"use strict";var e=function(){rey.elements.sitePreloader&&(rey.vars.is_edit_mode||rey.animation.fadeOut(rey.elements.sitePreloader,(function(){document.dispatchEvent(new CustomEvent("rey/preloader/loaded"))})))};document.addEventListener("rey-DOMContentLoaded",(function(){reyParams.preloader_timeout&&setTimeout((function(){e()}),parseInt(reyParams.preloader_timeout))})),document.addEventListener("rey/preloader/loaded",(function(){rey.elements.body.classList.add("site-loaded")})),window.addEventListener("load",(function(){reyParams.preloader_timeout||e()}))}();