"use strict";var Loop=window.Loop||{};Loop.tracking=Loop.tracking||{};Loop.tracking.googleTagManager=function(){function u(){(function(n,u,f,e,o){n[e]=n[e]||[];n[e].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var h=u.getElementsByTagName(f)[0],s=u.createElement(f),c=e!="dataLayer"?"&l="+e:"";s.async=!0;s.src=r+"/gtm.js?id="+o+c+"&gtm_auth="+t+"&gtm_preview="+i+"&gtm_cookies_win=x";h.parentNode.insertBefore(s,h)})(window,document,"script","dataLayer",n)}function f(){var f=document.createElement("noscript"),u=document.createElement("iframe"),e=r+"/ns.html?id="+n+"&gtm_auth="+t+"&gtm_preview="+i+"&gtm_cookies_win=x";u.setAttribute("src",e);u.setAttribute("height",0);u.setAttribute("width",0);u.setAttribute("style","display:none;visibility:hidden");f.appendChild(u);document.body.appendChild(f)}function e(e,o,s,h){n=e;t=o;i=s;r=h;f();u()}function o(n){var t=null;n>0&&(t=n);window.dataLayer.push({loopId:t})}function s(n){window.dataLayer.push({app_id:n})}function h(n,t,i,r){dataLayer.push({container_id:n});dataLayer.push({user_id:t});dataLayer.push({profile_id:i});dataLayer.push({public_profile:r})}var n,t,i,r;return{init:e,trackAppId:s,trackLoopId:o,trackLoopProfile:h}}()