/*! For license information please see tracker.js.LICENSE.txt */ var _ads;!function(){var t={137:function(t,e){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};if(arguments.length>1)return Promise.all(Array.prototype.slice.call(arguments).map(t));var o=u(e);return new Promise((function(t,r){if(c(e)&&e.url||o){o&&(e={url:e}),e=Object.assign({},d,e);var i=s(e);if(i){var a,u=l(e),m=e.removeScript;if(e.callBackName||e.jsonp){var v=function(t){if(Array.isArray(t))return t}(a=y(e))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,o=!1,r=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done)&&(e.push(i.value),3!==e.length);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return e}}(a)||function(t){if(t){if("string"==typeof t)return n(t,3);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,3):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=v[0],w=v[1],b=v[2];e.url=h,w[b]=function(n){delete w[b],p(m,i,u),f(e),t(n||m?void 0:u)}}else u.addEventListener("load",(function(){p(m,i,u),f(e),t(m?void 0:u)}));u.addEventListener("error",(function(){i.removeChild(u),r("Error: loading script")})),u.src=e.url,i.appendChild(u)}else r("Error: no DOM element to append script")}else r("Error: object with url or url string needed")}))};var o=window,r="_$_".concat("simpleLoadScript","CallBacks_$_"),i=0,a=function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()},c=function(t){return"object"===a(t)},u=function(t){return"string"===a(t)},s=function(t){return t.insertInto?document.querySelector(t.insertInto):t.inBody?document.body:document.head},l=function(t){var e=document.createElement("script");if(t.attrs&&c(t.attrs))for(var n=0,o=Object.keys(t.attrs);nt.length)&&(e=t.length);for(var n=0,o=Array(e);n0&&void 0!==arguments[0]?arguments[0]:"snowplowApi",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_sp_srt_";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.apiName=e,this.cookieNamePrefix=n},e=[{key:"init",value:function(){var t=this;this.initGlobals();var e=new S;return this.loadLibrary(e.libraryScriptUrl).then((function(){t.createTracker(e)})).catch(i)}},{key:"initGlobals",value:function(){var t=this.apiName;window.GlobalSnowplowNamespace=window.GlobalSnowplowNamespace||[],GlobalSnowplowNamespace.push(t),window[t]=function(){(window[t].q=window[t].q||[]).push(arguments)},window[t].q=window[t].q||[]}},{key:"loadLibrary",value:function(t){return d()(t)}},{key:"createTracker",value:function(t){window[this.apiName]("newTracker","cf",t.collector.url,{appId:t.appId,contexts:{gaCookies:!0},cookieLifetime:t.cookieLifetime,cookieName:this.cookieNamePrefix,discoverRootDomain:!0,encodeBase64:!t.debug,eventMethod:"get",platform:t.isTouchDevice?"mob":"web"})}},{key:"dispatch",value:function(t){for(var e,n=arguments.length,o=new Array(n>1?n-1:0),r=1;rt.length)&&(e=t.length);for(var n=0,o=Array(e);n