From 2fac034ff373473bdf81170efc1020c4a66cb72e Mon Sep 17 00:00:00 2001 From: Philip Walton Date: Thu, 1 Jun 2017 16:55:08 -0700 Subject: [PATCH] Update the analytics.js test files --- test/analytics.js | 71 ++++++++++++++++---------------- test/analytics_debug.js | 89 +++++++++++++++++++++-------------------- 2 files changed, 83 insertions(+), 77 deletions(-) diff --git a/test/analytics.js b/test/analytics.js index 730b66c4..e361479c 100644 --- a/test/analytics.js +++ b/test/analytics.js @@ -1,45 +1,48 @@ -(function(){var $c=function(a){this.w=a||[]};$c.prototype.set=function(a){this.w[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b\x3c/script>')):(c=M.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,b&&(c.id=b),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},Ud=function(){return"https:"==M.location.protocol},E=function(a,b){var c= -a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)");return c&&2==c.length?c[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},ya=function(a){var b=M.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+M.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},za=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c= -{},d=Math.min(a.length+1,b.length),e=0;e\x3c/script>')):(c=M.createElement("script"), +c.type="text/javascript",c.async=!0,c.src=a,d&&(c.onload=d),b&&(c.id=b),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},Ud=function(){return"https:"==M.location.protocol},E=function(a,b){return(a=a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},ya=function(a){var b=M.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+M.location.hostname; +var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},za=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e=b.length)wc(a,b,c);else if(8192>=b.length)x(a,b,c)||wd(a,b,c)||wc(a,b,c);else throw ge("len",b.length),new Da(b.length);},wc=function(a,b,c){var d=ta(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},wd=function(a,b,c){var d=O.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1; -e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=["t=error","_e="+a,"_v=j47","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(oc()+"/collect",a.join("&"),ua))};var h=function(a){var b=O.gaData=O.gaData||{};return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";} -function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){if(d.F){var e=a.get(c);void 0!=e&&e!=d.defaultValue&&("boolean"==typeof e&&(e*=1),b.push(d.F+"="+K(""+e)))}});b.push("z="+Bd());a.set(Ra,b.join("&"),!0)} +a=a.replace(/^http:/,"https:");e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=["t=error","_e="+a,"_v=j54","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(oc()+"/collect",a.join("&"), +ua))};var h=function(a){var b=O.gaData=O.gaData||{};return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";} +function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){d.F&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.F+"="+K(""+c))))});b.push("z="+Bd());a.set(Ra,b.join("&"),!0)} function Sa(a){var b=P(a,gd)||oc()+"/collect",c=P(a,fa);!c&&a.get(Vd)&&(c="beacon");if(c){var d=P(a,Ra),e=a.get(Ia),e=e||ua;"image"==c?wc(b,d,e):"xhr"==c&&wd(b,d,e)||"beacon"==c&&x(b,d,e)||ba(b,d,e)}else ba(b,P(a,Ra),a.get(Ia));b=a.get(Na);b=h(b);c=b.hitcount;b.hitcount=c?c+1:1;b=a.get(Na);delete h(b).pending_experiments;a.set(Ia,ua,!0)} -function Hc(a){(O.gaData=O.gaData||{}).expId&&a.set(Nc,(O.gaData=O.gaData||{}).expId);(O.gaData=O.gaData||{}).expVar&&a.set(Oc,(O.gaData=O.gaData||{}).expVar);var b;var c=a.get(Na);if(c=h(c).pending_experiments){var d=[];for(b in c)c.hasOwnProperty(b)&&c[b]&&d.push(encodeURIComponent(b)+"."+encodeURIComponent(c[b]));b=d.join("!")}else b=void 0;b&&a.set(m,b,!0)}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";} -function yd(a){var b=O.gaDevIds;ka(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee},Qa=new ee,Za=[];Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){var c=a.get(b);return void 0==c?"":""+c},R=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)}; +function Hc(a){(O.gaData=O.gaData||{}).expId&&a.set(Nc,(O.gaData=O.gaData||{}).expId);(O.gaData=O.gaData||{}).expVar&&a.set(Oc,(O.gaData=O.gaData||{}).expVar);var b=a.get(Na);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&a.set(m,d,!0)}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";} +function yd(a){var b=O.gaDevIds;ka(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee},Qa=new ee,Za=[];Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){a=a.get(b);return void 0==a?"":""+a},R=function(a,b){a=a.get(b);return void 0==a||""===a?0:1*a};Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)}; var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb.test(c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a.data.set(b,c,d)},bb=function(a,b,c,d,e){this.name=a;this.F=b;this.Z=d;this.o=e;this.defaultValue=c},$a=function(a){var b=Qa.get(a);if(!b)for(var c=0;c=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&!a.I){a.I=!0;var c= -aa(b);b=0=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){var c,d;null==a?c=d=1:(c=La(a),d=La(D(a,".")?a.substring(1):"."+a));for(var e=0;ed.length)){c=[];for(var e=0;e=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"=== -typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;carguments.length)){var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[].slice.call(arguments,1)):(b=arguments[0]&&arguments[0][Va],c=arguments);b&&(c=za(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b.data.m={})}}; +var ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),ia=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.F=void 0);return b}); +var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),oa=S("customTask"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires", +void 0,63072E3),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),I=T("_gid","_gid"),ja=T("_ge"),la=T("_gcn"),gd=S("transportUrl"),Md=S("_r","_r");function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Od=function(a,b,c){this.V=a;this.fa=b;this.$=!1;this.oa=c;this.ea=1},Ed=function(a,b,c){if(a.fa&&a.$)return 0;a.$=!0;if(b){if(a.oa&&R(b,a.oa))return R(b,a.oa);if(0==b.get(dc))return 0}if(0==a.V)return 0;void 0===c&&(c=Bd());return 0==c%a.V?Math.floor(c/a.V)%a.ea+1:0};function fc(){var a,b;if((b=(b=O.navigator)?b.plugins:null)&&b.length)for(var c=0;c=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&& +!a.I){a.I=!0;var c=aa(b);b=0b.length)J(12);else{for(var c= +[],d=0;d=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){if(null==a)var c=a=1;else c=La(a),a=La(D(a,".")?a.substring(1):"."+a);for(var d=0;d=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase()); +if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;carguments.length)){if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Va],c=arguments;b&&(c=za(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b.data.m={},Ed(this.ra,this.b)&&da(this.b.get(Na)))}}; pc.prototype.ma=function(a,b){var c=this;u(a,c,b)||(v(a,function(){u(a,c,b)}),y(String(c.get(V)),a,void 0,b,!0))};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0},z=function(a){if(!rc(a)){J(16);var b=!1,c=function(){if(!b&&rc(a)){b=!0;var d=c,e=M;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};L(M,"visibilitychange",c)}};var td=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(ea(a[0]))this.u=a[0];else{var b=td.exec(a[0]);null!=b&&4==b.length&&(this.c=b[1]||"t0",this.K=b[2]||"",this.C=b[3],this.a=[].slice.call(a,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(qa(this.a[1])?this.X=this.a[1]:this.W=this.a[1])));b=a[1];a=a[2];if(!this.C)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort"; if(this.g&&(!qa(b)||""==b||!ea(a)))throw"abort";if(ud(this.c)||ud(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort";}};function ud(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Yd,Zd,$d,A;Yd=new ee;$d=new ee;A=new ee;Zd={ec:45,ecommerce:46,linkid:47}; -var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);if(p.test(b)){J(52);a=N.j(a);if(!a)return!0;c=d||{};d={id:b,B:c.dataLayer||"dataLayer",ia:!!a.get("anonymizeIp"),na:e,G:!1};a.get(">m")==b&&(d.G=!0);var g=String(a.get("name"));"t0"!=g&&(d.target=g);G(String(a.get("trackingId")))||(d.ja=String(a.get(Q)), -d.ka=Number(a.get(n)),a=c.palindrome?r:q,a=(a=M.cookie.replace(/^|(; +)/g,";").match(a))?a.sort().join("").substring(1):void 0,d.la=a);a=d.B;c=(new Date).getTime();O[a]=O[a]||[];c={"gtm.start":c};e||(c.event="gtm.js");O[a].push(c);c=t(d)}!c&&Zd.hasOwnProperty(b)?(J(39),c=b+".js"):J(43);c&&(c&&0<=c.indexOf("/")||(c=(Ba||Ud()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=ae(c),a=d.protocol,c=M.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&B(d)&&(wa(d.url,void 0, -e),$d.set(b,!0)))}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);for(var c=A.get(a)||[],d=0;da.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+ -a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments),b=Z.f.concat(b);for(Z.f=[];0a.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0, +e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments),b=Z.f.concat(b);for(Z.f=[];0c;c++){var d=b[c].src;if(d&&0==d.indexOf("https://www.google-analytics.com/analytics")){J(33); -b=!0;break a}}b=!1}b&&(Ba=!0)}Ud()||Ba||!Ed(new Od(1E4))||(J(36),Ba=!0);(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};N.da=function(){for(var a=N.getAll(),b=0;b>21:b;return b};})(window); \ No newline at end of file +b=!0;break a}}b=!1}b&&(Ba=!0)}Ud()||Ba||!Ed(new Od(1E4))||(J(36),Ba=!0);(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};N.da=function(){for(var a=N.getAll(),b=0;b>21:b}return b};})(window); \ No newline at end of file diff --git a/test/analytics_debug.js b/test/analytics_debug.js index 9b1a14c9..12b8db2d 100644 --- a/test/analytics_debug.js +++ b/test/analytics_debug.js @@ -1,17 +1,17 @@ -(function(){var ec=function(a){this.B=a||[]};ec.prototype.set=function(a){this.B[a]=!0};ec.prototype.encode=function(){for(var a=[],b=0;b\x3c/script>'):J("URL uses invalid characters. Dropping request for: %s", -a)):(c=I.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,b&&(c.id=b),a=I.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},df=function(){return"https:"==I.location.protocol},aa=function(a,b){var c=a.match("(?:&|#|\\?)"+P(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)");return c&&2==c.length?c[1]:""},Wb=function(){var a=""+I.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},Xb=function(a){var b=I.referrer;if(/^https?:\/\//i.test(b)){if(a)return b; -a="//"+I.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},Yb=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e\x3c/script>'):J("URL uses invalid characters. Dropping request for: %s",a)):(c=I.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,d&&(c.onload=d),b&&(c.id=b),a=I.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},df=function(){return"https:"==I.location.protocol},aa=function(a,b){return(a=a.match("(?:&|#|\\?)"+ +P(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},Wb=function(){var a=""+I.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},Xb=function(a){var b=I.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+I.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},Yb=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length), +e=0;e"),b.push([f,"(&"+e+")",Ba(d)]))}}b.sort();Xd(b)} function Xd(a){for(var b=[],c=0;cb[d]?a[c][d].length:b[d]);for(c=0;c=b.length)id(a,b,c),Ia(b);else if(8192>=b.length)u(a,b,c)||te(a,b,c)||id(a,b,c),Ia(b);else throw O("Payload size is too large (%s). Max allowed is %s.",b.length,8192),fc("len",b.length),new bc(b.length);},id=function(a,b,c){var d=za(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},te=function(a,b,c){var d= -Q.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1;e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},u=function(a,b,c){return Q.navigator.sendBeacon?Q.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},fc=function(a,b,c){O("Error: type=%s method=%s message=%s account=%s",arguments);if(!(1<=100*Math.random()||K("?"))){var d=["t=error","_e="+a,"_v=j47d","sr=1"]; -b&&d.push("_f="+b);c&&d.push("_m="+P(c.substring(0,100)));d.push("aip=1");d.push("z="+ae());id(hd()+"/collect",d.join("&"),Aa)}};var h=function(a){var b=Q.gaData=Q.gaData||{};return b[a]=b[a]||{}};var gc=function(){this.m=[]};gc.prototype.add=function(a){this.m.push(a)};gc.prototype.H=function(a){L("\nExecuting "+this.m.length+" filters:");try{for(var b=0;b=100*jc(a,Db))throw N("User has been sampled out. Aborting hit."),"abort";}function kc(a){if(K(V(a,U)))throw N("User has opted out of tracking. Aborting hit."),"abort";}function lc(){var a=I.location.protocol;if("http:"!=a&&"https:"!=a)throw N("Unallowed document protocol. Aborting hit."),"abort";} -function mc(a){try{Q.navigator.sendBeacon?F(42):Q.XMLHttpRequest&&"withCredentials"in new Q.XMLHttpRequest&&F(40)}catch(c){}a.set(oc,cf(a),!0);a.set(md,jc(a,md)+1);var b=[];Ka.map(function(c,d){if(d.i){var e=a.get(c);void 0!=e&&e!=d.defaultValue&&("boolean"==typeof e&&(e*=1),b.push(d.i+"="+P(""+e)))}});b.push("z="+be());a.set(Na,b.join("&"),!0)} +function mc(a){try{Q.navigator.sendBeacon?F(42):Q.XMLHttpRequest&&"withCredentials"in new Q.XMLHttpRequest&&F(40)}catch(c){}a.set(oc,cf(a),!0);a.set(md,jc(a,md)+1);var b=[];Ka.map(function(c,d){d.i&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.i+"="+P(""+c))))});b.push("z="+be());a.set(Na,b.join("&"),!0)} function pc(a){var b=V(a,ob)||hd()+"/collect",c=V(a,ha);!c&&a.get(Oe)&&(c="beacon");if(c){var d=V(a,Na),e=a.get(Nb);8192=c)throw N("Exceeded rate limit for sending hits. Aborting hit."),"abort";a.set(uc,--c)}a.set(rc,++b)};var wc=function(){this.data=new ef;this.data.debug=!0},Ka=new ef,xc=[];wc.prototype.get=function(a){var b=yc(a),c=this.data.get(a);b&&void 0==c&&(c=t(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.v?b.v(this,a,c):c};var V=function(a,b){var c=a.get(b);return void 0==c?"":""+c},jc=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};wc.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&zc(this,d,a[d],c);else zc(this,a,b,c)}; +c+1:1;b=a.get(U);delete h(b).pending_experiments;a.set(Nb,Aa,!0)}function td(a){(Q.gaData=Q.gaData||{}).expId&&a.set(zd,(Q.gaData=Q.gaData||{}).expId);(Q.gaData=Q.gaData||{}).expVar&&a.set(Ad,(Q.gaData=Q.gaData||{}).expVar);var b=a.get(U);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&a.set(m,d,!0)}function nc(a){Ec(a)} +function Ud(){if(Q.navigator&&"preview"==Q.navigator.loadPurpose)throw N("Navigator in preview mode. Aborting hit."),"abort";}function ve(a){var b=Q.gaDevIds;ga(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function ya(a){if(!a.get(U))throw O("Tracking ID not set. Aborting hit."),"abort";};var ae=function(){return Math.round(2147483647*Math.random())},be=function(){try{var a=new Uint32Array(1);Q.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return ae()}};function qc(a){var b=jc(a,rc);500<=b&&(F(15),N("Exceeded maximum number of hits for this page. Try reducing the number of hits being sent."));var c=V(a,Ma);if("transaction"!=c&&"item"!=c){var c=jc(a,uc),d=(new Date).getTime(),e=jc(a,vc);0==e&&a.set(vc,d);e=Math.round(2*(d-e)/1E3);0=c)throw N("Exceeded rate limit for sending hits. Aborting hit."),"abort";a.set(uc,--c)}a.set(rc,++b)};var wc=function(){this.data=new ef;this.data.debug=!0},Ka=new ef,xc=[];wc.prototype.get=function(a){var b=yc(a),c=this.data.get(a);b&&void 0==c&&(c=t(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.v?b.v(this,a,c):c};var V=function(a,b){a=a.get(b);return void 0==a?"":""+a},jc=function(a,b){a=a.get(b);return void 0==a||""===a?0:1*a};wc.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&zc(this,d,a[d],c);else zc(this,a,b,c)}; var zc=function(a,b,c,d){La(b,c);var e=yc(b);e&&e.w?e.w(a,b,c,d):a.data.set(b,c,d);e||N("Set called on unknown field: %s.",b)},Ac=function(a,b,c,d,e){this.name=a;this.i=b;this.v=d;this.w=e;this.defaultValue=c},yc=function(a){var b=Ka.get(a);if(!b)for(var c=0;c "+c),b.v=function(a){return a.get(c)},b.w=function(a,b,f,ea){a.set(c,f,ea)},b.i=void 0);return b}); -var Ob=X("_oot"),Vd=W("previewTask"),Pb=W("checkProtocolTask"),xd=W("validationTask"),Qb=W("checkStorageTask"),Gd=W("historyImportTask"),Rb=W("samplerTask"),Tb=W("_rlt"),Ub=W("buildHitTask"),Vb=W("sendHitTask"),Hd=W("ceTask"),we=W("devIdTask"),oe=W("timingTask"),Ce=W("displayFeaturesTask"),T=X("name"),R=X("clientId","cid"),n=X("clientIdTime"),xe=W("userId","uid"),U=X("trackingId","tid"),ub=X("cookieName",void 0,"_ga"),S=X("cookieDomain"),vb=X("cookiePath",void 0,"/"),Cb=X("cookieExpires",void 0,63072E3), -wb=X("legacyCookieDomain"),Id=X("legacyHistoryImport",void 0,!0),xb=X("storage",void 0,"cookie"),Kb=X("allowLinker",void 0,!1),Lb=X("allowAnchor",void 0,!0),Db=X("sampleRate","sf",100),Eb=X("siteSpeedSampleRate",void 0,1),Mb=X("alwaysSendReferrer",void 0,!1),ac=[T,U,R,n,xe,ub,S,vb,Cb,wb,Id,Kb,Lb,Db,Eb,Mb,xb],ob=W("transportUrl"),De=W("_r","_r");function Y(a,b,c,d){b[a]=function(){try{return d&&F(d),c.apply(this,arguments)}catch(e){throw fc("exc",a,e&&e.name),e;}}};var Ie=function(a){this.Z=a;this.ja=void 0;this.fa=!1;this.ra=void 0;this.ia=1},ye=function(a,b){var c;if(a.ja&&a.fa)return 0;a.fa=!0;if(b){if(a.ra&&jc(b,a.ra))return jc(b,a.ra);if(0==b.get(Eb))return 0}if(0==a.Z)return 0;void 0===c&&(c=be());return 0==c%a.Z?Math.floor(c/a.Z)%a.ia+1:0};function Qc(){var a,b,c;if((c=(c=Q.navigator)?c.plugins:null)&&c.length)for(var d=0;d=b?(L("Site speed data not sent - visitor sampled out"),!1):!0},Sc=function(a){var b={};if(qd(b)||rd(b)){var c=b[Ic];void 0==c||Infinity==c||isNaN(c)?L("Site speed data not sent - unsupported browser"):0c)a[b]=void 0},ze=function(a){return function(b){if("pageview"==b.get(Ma)&&!a.L){a.L=!0;var c=ba(b);b=0=a&&d.push({hash:ea[0],T:e[f],ea:ea})}if(0!=d.length)return 1==d.length?d[0]:Ld(b,d)||Ld(c,d)||Ld(null,d)||d[0]}function Ld(a,b){var c,d;null==a?c=d=1:(c=ic(a),d=ic(H(a,".")?a.substring(1):"."+a));for(var e=0;ed.length)){c=[];for(var e=0;e=ea[0]||0>=ea[1]?"":ea.join("x");a.set(Ya,c);a.set(Za,Qc());a.set(Ua,I.characterSet|| -I.charset);a.set(Ib,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(Ta,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(Lb)&&(b=I.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c=b?(L("Site speed data not sent - visitor sampled out"),!1):!0},Sc=function(a){var b={};if(qd(b)||rd(b)){var c=b[Ic];void 0==c||Infinity==c||isNaN(c)?L("Site speed data not sent - unsupported browser"):0c)a[b]=void 0},ze=function(a){return function(b){if("pageview"==b.get(Ma)&&!a.L){a.L=!0;var c=ba(b);b=0b.length)F(12);else{for(var c=[],d=0;d=a&&d.push({hash:ea[0],T:e[f],ea:ea})}if(0!=d.length)return 1==d.length?d[0]:Ld(b,d)||Ld(c,d)||Ld(null,d)||d[0]}function Ld(a,b){if(null==a)var c=a=1;else c=ic(a),a=ic(H(a,".")?a.substring(1):"."+a);for(var d=0;d=ea[0]||0>=ea[1]?"":ea.join("x");a.set(Ya,c);a.set(Za,Qc());a.set(Ua,I.characterSet||I.charset);a.set(Ib,b&&"function"=== +typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(Ta,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(Lb)&&(b=I.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;carguments.length)O("No hit type specified. Aborting hit.");else{var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[].slice.call(arguments,1)):(b=arguments[0]&&arguments[0][Ma],c=arguments);b?(c=Yb(bd[b]||[],c),c[Ma]=b,this.a.set(c,void 0,!0),this.filters.H(this.a),L("Send finished: "+(0==Z.h?-1:(new Date).getTime()-Z.h)),this.a.data.u={}):O("No hit type specified. Aborting hit.")}}; +ad.prototype.send=function(a){L("Send start: "+(0==Z.h?-1:(new Date).getTime()-Z.h));if(1>arguments.length)O("No hit type specified. Aborting hit.");else{if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Ma],c=arguments;b?(c=Yb(bd[b]||[],c),c[Ma]=b,this.a.set(c,void 0,!0),this.filters.H(this.a),L("Send finished: "+(0==Z.h?-1:(new Date).getTime()-Z.h)),this.a.data.u={},ye(this.ua,this.a)&&fa(this.a.get(U))):O("No hit type specified. Aborting hit.")}}; ad.prototype.pa=function(a,b){var c=this;x(a,c,b)||(y(a,function(){x(a,c,b)}),z(String(c.get(T)),a,void 0,b,!0))};var cd=function(a){if("prerender"==I.visibilityState)return!1;a();return!0},A=function(a){if(!cd(a)){F(16);var b=!1,c=function(){if(!b&&cd(a)){b=!0;var d=c,e=I;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};Ca(I,"visibilitychange",c)}};var qe=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,se=function(a){this.G=a;if(t(a[0]))this.s=a[0];else{var b=qe.exec(a[0]);null!=b&&4==b.length&&(this.c=b[1]||"t0",this.I=b[2]||"",this.A=b[3],this.b=[].slice.call(a,1),this.I||(this.D="create"==this.A,this.g="require"==this.A,this.f="provide"==this.A,this.$="remove"==this.A),this.g&&(3<=this.b.length?(this.da=this.b[1],this.ba=this.b[2]):this.b[1]&&(G(this.b[1])?this.da=this.b[1]:this.ba=this.b[1])));var b=a[1],c=a[2];if(!this.A)throw O("Invalid command: "+a), "abort";if(this.g&&(!G(b)||""==b))throw O("Invalid require command.",a),"abort";if(this.f&&(!G(b)||""==b||!t(c)))throw O("Invalid provide command.",a),"abort";if(re(this.c)||re(this.I))throw O('Target name and plugin names should not contain "." or ":"'),"abort";if(this.f&&"t0"!=this.c)throw O("Provide command should not be preceeded by a tracker name."),"abort";}};function re(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Re,Se,Te,B;Re=new ef;Te=new ef;B=new ef;Se={ec:45,ecommerce:46,linkid:47}; -var x=function(a,b,c){var d=b==Z?Fc:b.get(T),e=Re.get(a);if(!t(e))return N("Waiting on require of %s to be fulfilled.",a),!1;b.plugins_=b.plugins_||new ef;if(b.plugins_.get(a))return O("Command ignored. Plugin %s has already been required on tracker %s.",a,d),!0;b.plugins_.set(a,new e(b,c||{}));N("Plugin %s intialized on tracker %s.",a,d);return!0},z=function(a,b,c,d,e){if(!t(Re.get(b))&&!Te.get(b)){Se.hasOwnProperty(b)&&F(Se[b]);if(p.test(b)){F(52);a=Z.O(a);if(!a)return!0;c=d||{};d={id:b,F:c.dataLayer|| -"dataLayer",la:!!a.get("anonymizeIp"),qa:e,J:!1};a.get(">m")==b&&(d.J=!0,O("Infinite loop detected. Tracker trying to load the container (%s) that created it. Ignoring require statement.",b));var f=String(a.get("name"));"t0"!=f&&(d.target=f);K(String(a.get("trackingId")))||(d.ma=String(a.get(R)),d.na=Number(a.get(n)),a=c.palindrome?r:q,a=(a=I.cookie.replace(/^|(; +)/g,";").match(a))?a.sort().join("").substring(1):void 0,d.oa=a);a=d.F;c=(new Date).getTime();Q[a]=Q[a]||[];c={"gtm.start":c};e||(c.event= -"gtm.js");Q[a].push(c);c=w(d)}!c&&Se.hasOwnProperty(b)?(F(39),c=b+".js"):F(43);c?(c&&0<=c.indexOf("/")||(c=($b||df()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=Ue(c),a=d.protocol,c=I.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&C(d)?(N("Loading resource for plugin: "+b),Ea(d.url,void 0,e),Te.set(b,!0)):O("Error loading resource for plugin %s: Refusing to load url: %s",b,d.url)):N("No plugin url set for %s.",b)}},y=function(a,b){var c=B.get(a)||[];c.push(b); -B.set(a,c)},D=function(a,b){Re.set(a,b);for(var c=B.get(a)||[],d=0;da.split("/")[0].indexOf(":")&&(a=ea+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1], -path:d[2],query:c.search||"",url:a||""}};var jf={ka:function(){jf.j=[]}};jf.ka();jf.H=function(a){var b=jf.N.apply(jf,arguments),b=jf.j.concat(b);for(jf.j=[];0a.split("/")[0].indexOf(":")&&(a=ea+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol|| +"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var jf={ka:function(){jf.j=[]}};jf.ka();jf.H=function(a){var b=jf.N.apply(jf,arguments),b=jf.j.concat(b);for(jf.j=[];0>21:b;return b};})(window); \ No newline at end of file +J("Running analytics_debug.js. This script is intended for testing and debugging only.");var sa=Z.P,ta=Q[Fc];ta&&ta.r?sa():A(sa);A(function(){jf.H(["provide","render",Aa])});function ic(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};})(window); \ No newline at end of file