!function(){window.et_performance.loadingTime={},et_performance.sendLoadingTimeToMP=function(){if(et_performance.already_sent_to_mp)return;et_performance.already_sent_to_mp=!0;let e=setInterval((()=>{if(window.mp){const n=window.performance.getEntriesByType("navigation");if(n.length>0){const e=n[0],o=e.fetchStart,t=e.requestStart,a=e.responseEnd,r=e.domContentLoadedEventEnd,i=e.domComplete;r&&(et_performance.loadingTime.dom_loaded=parseInt(r)),i&&(et_performance.loadingTime.page_loaded=parseInt(i)),et_performance.loadingTime.connect_time=parseInt(t-o),et_performance.loadingTime.response_time=parseInt(a-t)}else console.warn("No navigation entries available.");window.mp.track("Website Performance",et_performance.loadingTime),et_write_log(et_performance.loadingTime),clearInterval(e)}}),1e3)},et_performance.getMilisecondsDiff=function(){const e=Math.abs(Math.round(et_performance.HTMLStartTime-Date.now()));return parseInt(e)};const e=function(){let e=setInterval((()=>{!et_performance.loadingTime.cmp_loaded&&window.Cookiebot.consent&&(et_performance.loadingTime.cmp_loaded=et_performance.getMilisecondsDiff()),!et_performance.loadingTime.gtm_loaded&&function(){let e=window.dataLayer.find((e=>e["gtm.start"]));if(!e)return!1;if(!e["gtm.uniqueEventId"])return!1;return!0}()&&(et_performance.loadingTime.gtm_loaded=et_performance.getMilisecondsDiff()),!et_performance.loadingTime.pipa_loaded&&document.querySelector(".login_placeholder")&&(et_performance.loadingTime.pipa_loaded=et_performance.getMilisecondsDiff()),(et_performance.already_sent_to_mp||et_performance.loadingTime.cmp_loaded&&et_performance.loadingTime.gtm_loaded&&et_performance.loadingTime.pipa_loaded)&&clearInterval(e)}),100)};et_performance.randomValue=Math.random(),et_performance.percentageThreshold=.1,et_performance.randomValue<=et_performance.percentageThreshold&&(e(),window.addEventListener("load",(function(){setTimeout(et_performance.sendLoadingTimeToMP,5e3)})),setTimeout(et_performance.sendLoadingTimeToMP,3e4))}();