(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5592],{10320:(e,i,n)=>{"use strict";function o(){return typeof window>"u"}function t(e){o()||(Array.isArray(window.dataLayer)?window.dataLayer.push({event:"data_event",...window.browserId?{browser_id:window.browserId}:{},...window.sessionId?{session_id:window.browserSessionId}:{},...window.customerId?{customer_id:window.customerId}:{},...e}):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function s(e,i){if(o())return void console.log("DataLayer is not initialized, or you are trying to push event on server side.");let n={};try{n=JSON.parse(sessionStorage.getItem("analytics.history")||"{}")}catch(e){console.error(e)}Array.isArray(n[e])||(n[e]=[]);let s=JSON.stringify(i);if(n[e].find(e=>e===s))return void console.log(`Skipping push event, because event ${s} with key "${e}" has been pushed already.`);t(i),n[e].push(s);try{sessionStorage.setItem("analytics.history",JSON.stringify(n))}catch(e){console.error(e)}}function r(){if(o())return void console.warn("Cant initialize tag manager on server side");if("function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm(),"function"!=typeof window._init_ytm){if("object"==typeof window._wa)return;console.warn("Cant init YTM, please check if YTM script exists")}else window._init_ytm()}n.d(i,{Fj:()=>t,eZ:()=>s,yu:()=>r})},33177:()=>{}}]);