1!function(t,c){"function"==typeof define&&define.amd?define(function(){return c(t)}):"object"==typeof exports?("object"==typeof global&&(t=global),module.exports=c(t)):t.LE=c(t)}(this,function(t){"use strict";var c=function(e,f){for(var o=0;o<e.length;o++)if(f===e[o])return o;return-1};function N(e){var l,f=e.trace?(Math.random()+Math.PI).toString(36).substring(2,10):null,o=e.page_info,g=e.token,s=e.print,I=typeof XDomainRequest>"u"?e.ssl:"https:"===t.location.protocol;l=(I?"https://":"http://")+(l=t.LEENDPOINT?t.LEENDPOINT:e.no_format?"webhook.logentries.com/noformat":"js.logentries.com/v1")+"/logs/"+g;var p=[],v=!1,L=!1;if(e.catchall){var R=t.onerror;t.onerror=function(n,a,r){return d({error:n,line:r,location:a}).level("ERROR").send(),!!R&&R(n,a,r)}}var X=function(){var n=t.navigator||{doNotTrack:void 0},a=t.screen||{};return{url:(t.location||{}).pathname,referrer:document.referrer,screen:{width:a.width,height:a.height},window:{width:t.innerWidth,height:t.innerHeight},browser:{name:n.appName,version:n.appVersion,cookie_enabled:n.cookieEnabled,do_not_track:n.doNotTrack},platform:n.platform}},M=function(){var a=Array.prototype.slice.call(arguments);if(0===a.length)throw new Error("No arguments!");return 1===a.length?a[0]:a},d=function(n){var a=M.apply(this,arguments),r={event:a};return"never"!==o&&(!L||"per-entry"===o)&&(L=!0,typeof a.screen>"u"&&typeof a.browser>"u"&&d(X()).level("PAGE").send()),f&&(r.trace=f),{level:function(m){if(s&&typeof console<"u"&&"PAGE"
1!==m){var y=null;typeof XDomainRequest<"u"&&(y=r.trace+" "+r.event);try{console[m.toLowerCase()].call(console,y||r)}catch{console.log(y||r)}}return r.level=m,{send:function(){var _=[],b=JSON.stringify(r,function(x,u){if(typeof u>"u")return"undefined";if("object"==typeof u&&null!==u){if(-1!==c(_,u))return"<?>";_.push(u)}return u});v?p.push(b):h(g,b)}}}}};this.log=d;var h=function(n,a){v=!0;var r=typeof XDomainRequest<"u"?new XDomainRequest:new XMLHttpRequest;r.constructor===XMLHttpRequest?r.onreadystatechange=function(){4===r.readyState&&(r.status>=400?(console.error("Couldn't submit events."),410===r.status&&console.warn("This version of le_js is no longer supported!")):(301===r.status&&console.warn("This version of le_js is deprecated! Consider upgrading."),p.length>0?h(n,p.shift()):v=!1))}:r.onload=function(){p.length>0?h(n,p.shift()):v=!1},r.open("POST",l,!0),r.constructor===XMLHttpRequest&&(r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-type","application/json")),r.overri
1deMimeType&&r.overrideMimeType("text"),r.send(a)}}function O(e){var f,o={ssl:!0,catchall:!1,trace:!0,page_info:"never",print:!1,endpoint:null,token:null};if("object"!=typeof e)throw new Error("Invalid parameters for createLogStream()");for(var g in e)o[g]=e[g];if(null===o.token)throw new Error("Token not present.");f=new N(o);var s=function(E){if(f)return f.log.apply(this,arguments);throw new Error("You must call LE.init(...) first.")};return{log:function(){s.apply(this,arguments).level("LOG").send()},warn:function(){s.apply(this,arguments).level("WARN").send()},error:function(){s.apply(this,arguments).level("ERROR").send()},info:function(){s.apply(this,arguments).level("INFO").send()}}}var i={},w=function(e){if("string"!=typeof e.name)throw new Error("Name not present.");if(i.hasOwnProperty(e.name))throw new Error("A logger with that name already exists!");return i[e.name]=new O(e),!0};return{init:function(e){var f={name:"default"};if("object"==typeof e)for(var o in e)f[o]=e[o];else{if("string"!=typeof e)throw new Error("Invalid parameters for init()");f.token=e}return w(f)},createLogStream:w,to:function(e){if(!i.hasOwnProperty(e))throw new Error("Invalid name for logStream");return i[e]},destroy:function(e){typeof e>"u"&&(e="default"),delete i[e]},log:function(){for(var e in i)i[e].log.apply(this,arguments)},warn:function(){for(var e in i)i[e].warn.apply(this,arguments)},error:function(){for(var e in i)i[e].error.apply(this,arguments)},info:function(){for(var e in i)i[e].info.apply(this,arguments)}}});
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.