"use strict";var gadwpRedirectLink,gadwpRedirectCalled=!1,gadwpDefaultPrevented=!1;function gadwpRedirect(){gadwpRedirectCalled||(gadwpRedirectCalled=!0,0==gadwpDefaultPrevented?document.location.href=gadwpRedirectLink:gadwpDefaultPrevented=!1)}function gadwp_send_event(t,e,a,n){if(gadwpUAEventsData.options.ga_with_gtag){if("undefined"==typeof gtag)return;n?gadwpUAEventsData.options.event_bouncerate?gtag("event",e,{event_category:t,event_label:a,non_interaction:1,event_callback:gadwpRedirect}):gtag("event",e,{event_category:t,event_label:a,event_callback:gadwpRedirect}):gadwpUAEventsData.options.event_bouncerate?gtag("event",e,{event_category:t,event_label:a,non_interaction:1}):gtag("event",e,{event_category:t,event_label:a})}else{if("undefined"==typeof ga)return;n?gadwpUAEventsData.options.event_bouncerate?ga("send","event",t,e,a,{nonInteraction:1,hitCallback:gadwpRedirect}):ga("send","event",t,e,a,{hitCallback:gadwpRedirect}):gadwpUAEventsData.options.event_bouncerate?ga("send","event",t,e,a,{nonInteraction:1}):ga("send","event",t,e,a)}}jQuery(window).on("load",function(){gadwpUAEventsData.options.event_tracking&&(jQuery("a").filter(function(){if("string"==typeof this.href){var t=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$");return this.href.match(t)}}).click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"download",this.getAttribute("data-vars-ga-action")||"click",this.getAttribute("data-vars-ga-label")||this.href,!1)}),jQuery('a[href^="mailto"]').click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"email",this.getAttribute("data-vars-ga-action")||"send",this.getAttribute("data-vars-ga-label")||this.href,!1)}),jQuery('a[href^="tel"]').click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"telephone",this.getAttribute("data-vars-ga-action")||"call",this.getAttribute("data-vars-ga-label")||this.href,!1)}),gadwpUAEventsData.options.root_domain&&jQuery('a[href^="http"]').filter(function(){if("string"==typeof this.href)var t=new RegExp(".*\\.("+gadwpUAEventsData.options.event_downloads+")(\\?.*)?$");if(t&&!this.href.match(t)&&-1==this.href.indexOf(gadwpUAEventsData.options.root_domain)&&-1<this.href.indexOf("://"))return this.href}).click(function(t){gadwpRedirectCalled=!1,gadwpRedirectLink=this.href;var e=this.getAttribute("data-vars-ga-category")||"outbound",a=this.getAttribute("data-vars-ga-action")||"click",n=this.getAttribute("data-vars-ga-label")||this.href;if("_blank"!=this.target&&gadwpUAEventsData.options.event_precision?t.isDefaultPrevented()&&(gadwpRedirectCalled=!(gadwpDefaultPrevented=!0)):gadwpDefaultPrevented=!(gadwpRedirectCalled=!0),"_blank"!=this.target&&gadwpUAEventsData.options.event_precision)return gadwp_send_event(e,a,n,!0),setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout),!1;gadwp_send_event(e,a,n,!1)})),gadwpUAEventsData.options.event_affiliates&&gadwpUAEventsData.options.aff_tracking&&jQuery("a").filter(function(){if(""!=gadwpUAEventsData.options.event_affiliates&&"string"==typeof this.href){var t=new RegExp("("+gadwpUAEventsData.options.event_affiliates.replace(/\//g,"/")+")");return this.href.match(t)}}).click(function(t){gadwpRedirectCalled=!1,gadwpRedirectLink=this.href;var e=this.getAttribute("data-vars-ga-category")||"affiliates",a=this.getAttribute("data-vars-ga-action")||"click",n=this.getAttribute("data-vars-ga-label")||this.href;if("_blank"!=this.target&&gadwpUAEventsData.options.event_precision?t.isDefaultPrevented()&&(gadwpRedirectCalled=!(gadwpDefaultPrevented=!0)):gadwpDefaultPrevented=!(gadwpRedirectCalled=!0),"_blank"!=this.target&&gadwpUAEventsData.options.event_precision)return gadwp_send_event(e,a,n,!0),setTimeout(gadwpRedirect,gadwpUAEventsData.options.event_timeout),!1;gadwp_send_event(e,a,n,!1)}),gadwpUAEventsData.options.root_domain&&gadwpUAEventsData.options.hash_tracking&&jQuery("a").filter(function(){if(-1!=this.href.indexOf(gadwpUAEventsData.options.root_domain)||-1==this.href.indexOf("://"))return this.hash}).click(function(t){gadwp_send_event(this.getAttribute("data-vars-ga-category")||"hashmark",this.getAttribute("data-vars-ga-action")||"click",this.getAttribute("data-vars-ga-label")||this.href,!1)}),gadwpUAEventsData.options.event_formsubmit&&jQuery('input[type="submit"], button[type="submit"]').click(function(t){var e=this;gadwp_send_event(e.getAttribute("data-vars-ga-category")||"form",e.getAttribute("data-vars-ga-action")||"submit",e.getAttribute("data-vars-ga-label")||e.name||e.value,!1)}),gadwpUAEventsData.options.ga_pagescrolldepth_tracking&&jQuery.scrollDepth({percentage:!0,userTiming:!1,pixelDepth:!1,gtmOverride:!0,nonInteraction:!0})});