track_config={environment:"production",containerID:"MC27Z5X"};var trackManager=function(){var e,n=!1,t=!1,o=!1,r=[],c=[],s=(Object.defineProperty(c,"push",{enumerable:!1,configurable:!1,writable:!1,value:function(){Array.prototype.push.apply(this,arguments),E(arguments[0].name+" event enqueued to priority queue"),2==c.length&&c.some(function(e){return"sitewide"===e.name})&&c.some(function(e){return"userInfo"===e.name})&&(c.sort(),c.reverse(),t=!0,o)&&u()}}),[]);function u(){if(E("gtmReady listened. resolvePriorityEventQueue() in process..."),void 0!==c&&null!=c&&null!=c.length)for(;0t.interaction.email=e),void 0!==e.account.profile.firstName&&P(e.account.profile.firstName).then(e=>t.interaction.firstName=e),void 0!==e.account.profile.lastName&&P(e.account.profile.lastName).then(e=>t.interaction.lastName=e),void 0!==e.account.profile.phones)&&void 0!==e.account.profile.phones.number&&P(e.account.profile.phones.number).then(e=>t.interaction.phone=e),void 0!==e.account&&void 0!==e.account.profile&&void 0!==e.account.profile.gender&&(t.gender=e.account.profile.gender.toLowerCase()),void 0!==e.account&&void 0!==e.account.profile&&void 0!==e.account.profile.country&&(t.country=e.account.profile.country.toLowerCase()),void 0!==e.account&&void 0!==e.account.profile&&void 0!==e.account.profile.languages&&(t.language=e.account.profile.languages.toLowerCase()),void 0!==e.account&&void 0!==e.account.data&&void 0!==e.account.data.ecommerce&&void 0!==e.account.data.ecommerce.orders&&0t.email=e),d({event:"subscriptionSuccess",interaction:t})):d({event:"subscriptionSuccess"}),{success:!0,code:200,message:"subscriptionSuccess successfully pushed"}}catch(e){return{success:!1,code:500,message:e.message}}}function S(e){try{return d(null!=e?{event:"loginSuccess",interaction:e}:{event:"loginSuccess"}),{success:!0,code:200,message:"loginSuccess successfully pushed"}}catch(e){return{success:!1,code:500,message:e.message}}}function w(e){try{return d(null!=e?{event:"signUpSuccess",interaction:e}:{event:"signUpSuccess"}),{success:!0,code:200,message:"signUpSuccess successfully pushed"}}catch(e){return{success:!1,code:500,message:e.message}}}function E(e){"production"!=track_config.environment&&console.log("ANALYTICS SDK | "+e)}async function P(t){let e=void 0;try{var o=(new TextEncoder).encode(t),n=await crypto.subtle.digest("SHA-256",o),r=Array.from(new Uint8Array(n));e=r.map(e=>e.toString(16).padStart(2,"0")).join("")}catch(e){E("Error in sha256() hashing: "+t+" with error message: "+e)}return e}return window.addEventListener("gtmReady",function(){o=!0,E("gtmReady event listened."),t&&u()},!1),window.addEventListener("sitewideReady",function(){if(n=!0,E("sitewideReady listened. resolveEventQueue() in process..."),void 0!==r&&null!=r&&null!=r.length)for(;0