(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[5],{678:function(t,e,a){"use strict";a.r(e),a.d(e,"initSiteTracking",(function(){return u}));var n=function(t){return function(t,e,a){var n=new Date;n.setTime(n.getTime()+864e5*a),document.cookie=t+"="+e+";path=/;expires="+n.toGMTString()}(t,"",-1)},o=function(t){var e,a,n,o,i,c;e=window,a=document,n="script",o="ga",e.GoogleAnalyticsObject=o,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,i=a.createElement(n),c=a.getElementsByTagName(n)[0],i.async=1,i.src="//www.google-analytics.com/analytics.js",c.parentNode.insertBefore(i,c),ga("create",t.id,{cookieName:"gaCookie",cookieExpires:7776e3}),ga("set","anonymizeIp",!0),ga("send","pageview")},i=function(t){t.analytics.id?("opt-out"===t.mode&&o(t.analytics),document.addEventListener("cookie-consent-status-change",(function(e){"allow"===e.detail.status?o(t.analytics):function(t){n("gaCookie"),n("_gat"),n("_gat_gtag_".concat(t.id)),n("gaCookie_gid")}(t.analytics)}))):console.warn("Site Tracking: No analytics ID specified")},c=function(t){!function(t,e,a,n,o){t[n]=t[n]||[],t[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var i=e.getElementsByTagName(a)[0],c=e.createElement(a);c.async=!0,c.src="https://www.googletagmanager.com/gtm.js?id="+o,i.parentNode.insertBefore(c,i)}(window,document,"script","dataLayer",t.id)},s=function(t){t.tagManager.id?("opt-out"!==t.mode&&1!==t.tagManager.persist||c(t.tagManager),document.addEventListener("cookie-consent-status-change",(function(e){"allow"===e.detail.status?c(t.tagManager):(n("_gid"),n("_ga"))}))):console.warn("Site Tracking: No tag manager ID specified")},g=function(t){var e=document.createElement("script");function a(){dataLayer.push(arguments)}e.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+t.id),document.body.appendChild(e),window.dataLayer=window.dataLayer||[],a("js",new Date),a("config",t.id)},r=function(t){t.gtag.id?("opt-out"!==t.mode&&1!==t.gtag.persist||g(t.gtag),document.addEventListener("cookie-consent-status-change",(function(e){"allow"===e.detail.status?g(t.gtag):(n("_gid"),n("_ga"))}))):console.warn("Site Tracking: No tag manager ID specified")},d=function(){document.addEventListener("cookie-consent-status-change",(function(t){var e;"allow"===t.detail.status?((e=window._paq||[]).push(["rememberConsentGiven"]),e.push(["forgetUserOptOut"])):function(){var t=window._paq||[];t.push(["forgetConsentGiven"]),t.push(["optUserOut"]),n("paddlejs_campaign_referrer"),n("paddlejs_checkout_variant"),n("MATOMO_SESSID")}()}))},u=function(t){"analytics"===t.type?i(t):"tag-manager"===t.type?s(t):"gtag"===t.type?r(t):"matomo"===t.type&&d()}}}]);