!function(){"use strict";!function(){function t(){this.containerIds=new Set,window.dataLayer=window.dataLayer||[],this.dataLayer=window.dataLayer}t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.loadContainer=function(t){this.containerIds.has(t)||(0===this.containerIds.size&&this.loadScript(t),this.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js","gtm.container":t}),this.containerIds.add(t))},t.prototype.loadScript=function(t){var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id=".concat(t);var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)},t.prototype.observeNewForms=function(){var t=this;new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){if(e instanceof HTMLFormElement){var n=e.dataset.gtmId;n&&t.loadContainer(n)}})})}).observe(document.body,{childList:!0,subtree:!0})}}()}();