1WRMCB=function(e){var c=console;if(c&&c.log&&c.error){c.log('Error running batched script.');c.error(e);}} 2; 3try { 4/* module-key = 'ch.bitvoodoo.confluence.plugins.viewtracker:viewtracker-url-tracking-resource', location = 'ch/bitvoodoo/confluence/plugins/viewtracker/scripts/url-tracking.js' */ 5require(["ajs","jquery"],function(a,b){a.toInit(function(){var e=a.Confluence.getContextPath();var j=e+"/rest/viewtracker/1.0/url/visits";function l(o){var n=false;var p=b("meta[name=generator]");if(p&&p.length){var i=p.attr("content");if(i){n=i.toLowerCase().indexOf("k15t")!==-1}}var m={type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify({urlId:o,spaceKey:a.Meta.get("space-key")}),url:j};if(n){m=b.extend(m,{headers:{"X-Atlassian-Token":"no-check"}})}a.$.ajax(m)}var c=window.Bitvoodoo.Viewtracker.Configuration.debug;var g=window.Bitvoodoo.Viewtracker.Configuration.trackedUrls;var k=window.location.pathname.replace(e,"")+window.location.search+window.location.hash;for(var f=0;f<g.length;f+=1){var d=g[f].matchingPattern;var h=g[f].compareType;if(isUrlMatchingPattern(k,h,d,g[f].id)){if(c){console.info("URL-tracking: ",d,"matches location",k)}l(g[f].id);break}else{if(c){console.debug("URL-tracking: ",d,"is not matching location",k)}}}})});function isUrlMatchingPattern(a,d,c,b){if(d===0){try{return new RegExp(c).test(a)}catch(f){console.error("App Viewtracker: URL with id "+b+" could not be parsed. Please check your configuration.",f);return false}}else{return a.startsWith(c)}}; 6}catch(e){WRMCB(e)};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.