!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.galite=t():e.galite=t()}(this,(function(){return(()=>{var e={383:()=>{Array.from=Array.from||function(){var e;return(e=Array.prototype.slice).call.apply(e,arguments)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";function e(){return"undefined"!=typeof navigator&&"undefined"!=typeof window&&1===parseInt(navigator.msDoNotTrack||window.doNotTrack||navigator.doNotTrack,10)}n.d(r,{default:()=>V});var t={};function o(e,n){t[e]=n}function i(e){return t[e]}function a(e){if("undefined"!=typeof navigator&&navigator.sendBeacon)try{if(navigator.sendBeacon(e))return}catch(e){}try{var t=new window.XMLHttpRequest;t.open("GET",e,!1),t.send()}catch(t){(new window.Image).src=e}}var c="uid";function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return!e||t.indexOf(void 0)>-1?"":"&"+e+"="+t.map(encodeURIComponent).join("")}function u(e,t){return"https://www.google-analytics.com/collect?v=1&de=UTF-8"+l("ul",[navigator.language.toLowerCase()])+l("dl",[document.location.href])+l("dt",[document.title])+l("sd",[window.screen.colorDepth,"-bit"])+l("sr",[window.screen.availWidth,"x",window.screen.availHeight])+l("vp",[window.innerWidth,"x",window.innerHeight])+l("dr",[document.referrer])}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).map((function(t){return[t,e[t]].map(s).map(encodeURIComponent).join("=")})).join("&")}function s(e){return"boolean"==typeof e?+e:e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=f(p(r));return u()+(i?"&"+i:"")+(o?"&aip=1":"")+"&cid="+n+"&tid="+e+"&z="+t}function h(e){return!0===window["ga-disable-".concat(e)]}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||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.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:window?window.localStorage:null;if(e&&e.getItem(c))return e.getItem(c);var t=Math.random()+"."+Math.random();return e&&e.setItem(c,t),t}(),this._sendTo=a,this._getTime=T}var t,n;return t=e,(n=[{key:"send",value:function(e){if(!h(this.fields.trackingId)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:[],n=t.length>=1&&t[t.length-1].constructor===Object,r=n?t[t.length-1]:{};switch(t=n?t.slice(0,-1):t,e){case"pageview":var o=t,i=b(o,1),a=i[0];return O({page:a},r);case"event":var c=t,l=b(c,4),u=l[0],f=l[1],s=l[2],d=l[3];return O({eventCategory:u,eventAction:f,eventLabel:s,eventValue:d},r);case"social":var p=t,y=b(p,3),v=y[0],g=y[1],m=y[2];return O({socialNetwork:v,socialAction:g,socialTarget:m},r);case"timing":var h=t,w=b(h,4),j=w[0],I=w[1],A=w[2],x=w[3];return O({timingCategory:j,timingVar:I,timingValue:A,timingLabel:x},r);default:return r}}const C={create:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x,r=new S(e);return o(n,r),r},getByName:function(e){return i(e)}};function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||E(e,t)||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.")}()}function E(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?u-1:0),s=1;s-1?e.split("."):[x,e]}n(383),Object.keys(C).forEach((function(e){V[e]=C[e]})),("undefined"==typeof window?[]:window.galite&&window.galite.q||[]).forEach((function(e){return V.apply(void 0,function(e){if(Array.isArray(e))return N(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||E(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t}))})(),r.default})()}));