!function(S){if(S){var c,n,o,r,l,i,s,p={},e=S.TraceKit,a=[].slice,d="?",f=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;p.noConflict=function(){return S.TraceKit=e,p},p.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw p.report(e),e}}},p.report=(o=[],l=r=null,u.subscribe=function(e){!0!==n&&(c=S.onerror,S.onerror=t,n=!0),o.push(e)},u.unsubscribe=function(e){for(var t=o.length-1;0<=t;--t)o[t]===e&&o.splice(t,1);0===o.length&&(S.onerror=c,n=!1)},u),p.computeStackTrace=(i=!1,s={},k.augmentStackTraceWithInitialElement=T,k.computeStackTraceFromStackProp=C,k.guessFunctionName=w,k.gatherContext=E,k.ofCaller=function(t){t=1+(null==t?0:+t);try{throw new Error}catch(e){return k(e,t+1)}},k.getSource=x,k),p.extendToAsynchronousCallbacks=function(){function e(e){var n=S[e];S[e]=function(){var e=a.call(arguments),t=e[0];return"function"==typeof t&&(e[0]=p.wrap(t)),n.apply?n.apply(this,e):n(e[0],e[1])}}e("setTimeout"),e("setInterval")},p.remoteFetching||(p.remoteFetching=!0),p.collectWindowErrors||(p.collectWindowErrors=!0),(!p.linesOfContext||p.linesOfContext<1)&&(p.linesOfContext=11),"function"==typeof define&&define.amd?define("TraceKit",[],p):"undefined"!=typeof module&&module.exports&&S.module!==module?module.exports=p:S.TraceKit=p}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v(e){return void 0===e}function g(e,t,n){var r=null;if(!t||p.collectWindowErrors){for(var i in o)if(_(o,i))try{o[i](e,t,n)}catch(e){r=e}if(r)throw r}}function t(e,t,n,r,i){if(l)p.computeStackTrace.augmentStackTraceWithInitialElement(l,t,n,e),h();else if(i)g(p.computeStackTrace(i),!0,i);else{var o,s={url:t,line:n,column:r},a=e;if("[object String]"==={}.toString.call(e)){var u=e.match(f);u&&(o=u[1],a=u[2])}s.func=p.computeStackTrace.guessFunctionName(s.url,s.line),s.context=p.computeStackTrace.gatherContext(s.url,s.line),g({name:o,message:a,mode:"onerror",stack:[s]},!0,null)}return!!c&&c.apply(this,arguments)}function h(){var e=l,t=r;r=l=null,g(e,!1,t)}function u(e){if(l){if(r===e)return;h()}var t=p.computeStackTrace(e);throw l=t,r=e,setTimeout(function(){r===e&&h()},t.incomplete?2e3:0),e}function x(e){if("string"!=typeof e)return[];if(!_(s,e)){var t="",n="";try{n=S.document.domain}catch(e){}var r=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e);r&&r[2]===n&&(t=function(e){if(!p.remoteFetching)return"";try{var t=function(){try{return new S.XMLHttpRequest}catch(e){return new S.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(e)),s[e]=t?t.split("\n"):[]}return s[e]}function w(e,t){var n,r=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,o="",s=x(e);if(!s.length)return d;for(var a=0;a<10;++a)if(!v(o=s[t-a]+o)){if(n=i.exec(o))return n[1];if(n=r.exec(o))return n[1]}return d}function E(e,t){var n=x(e);if(!n.length)return null;var r=[],i=Math.floor(p.linesOfContext/2),o=i+p.linesOfContext%2,s=Math.max(0,t-i-1),a=Math.min(n.length,t+o-1);t-=1;for(var u=s;u","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function I(e,t){for(var n,r,i=0,o=t.length;in&&(r=o.exec(i[n]))?r.index:null}function b(e){if(!v(S&&S.document)){for(var t,n,r,i,o=[S.location.href],s=S.document.getElementsByTagName("script"),a=""+e,u=0;u|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=e.stack.split("\n"),l=[],f=/^(.*) is undefined$/.exec(e.message),p=0,g=c.length;p eval")&&(t=a.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==p||n[5]||v(e.columnNumber)||(l[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||d,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=w(r.url,r.line)),r.context=r.line?E(r.url,r.line):null,l.push(r)}return l.length?(l[0]&&l[0].line&&!l[0].column&&f&&(l[0].column=y(f[1],l[0].url,l[0].line)),{mode:"stack",name:e.name,message:e.message,stack:l}):null}function T(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){e.incomplete=!1,i.func||(i.func=w(i.url,i.line)),i.context||(i.context=E(i.url,i.line));var o=/ '([^']+)' /.exec(r);if(o&&(i.column=y(o[1],i.url,i.line)),0]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),s=[],a=0;anew Date},_.prototype.ensureQueueTimer=function(){var e=this;this._queueTimer||(this._queueTimer=setInterval(function(){return e.onProcessQueue()},1e4))},_.prototype.isQueueProcessingSuspended=function(){return this._suspendProcessingUntil&&this._suspendProcessingUntil>new Date},_.prototype.onProcessQueue=function(){this.isQueueProcessingSuspended()||this._processingQueue||this.process()},_.prototype.processSubmissionResponse=function(e,t){var n="The event will not be submitted.",r=this._config,i=r.log;if(e.success)return i.info("Sent "+t.length+" events."),void this.removeEvents(t);if(e.serviceUnavailable)return i.error("Server returned service unavailable."),void this.suspendProcessing();if(e.paymentRequired)return i.info("Too many events have been submitted, please upgrade your plan."),void this.suspendProcessing(null,!0,!0);if(e.unableToAuthenticate)return i.info("Unable to authenticate, please check your configuration. "+n),this.suspendProcessing(15),void this.removeEvents(t);if(e.notFound||e.badRequest)return i.error("Error while trying to submit data: "+e.message),this.suspendProcessing(240),void this.removeEvents(t);if(e.requestEntityTooLarge){var o="Event submission discarded for being too large.";1t.priority?1:0})},enumerable:!1,configurable:!0}),A.prototype.addPlugin=function(e,t,n){var r=n?{name:e,priority:t,run:n}:e;if(r&&r.run){r.name||(r.name=P.guid()),r.priority||(r.priority=0);for(var i=!1,o=this._plugins,s=0,a=o;s=o-n._interval})&&(e.log.trace("Adding event with hash: "+r),this._mergedEvents.push(new Q(r,e,i)),e.cancelled=!0),!e.cancelled)for(e.log.trace("Enqueueing event with hash: "+r+"to cache."),this._processedHashcodes.push({hash:r,timestamp:o});50this._context.event.date&&(this._context.event.date=e)},V);function V(e,t,n){this.hashCode=e,this._context=t,this._count=n}var H=($.prototype.run=function(e,t){var n="@environment",r=e.client.config.environmentInfoCollector;if(!e.event.data[n]&&r){var i=r.getEnvironmentInfo(e);i&&(e.event.data[n]=i)}t&&t()},$);function $(){this.priority=80,this.name="EnvironmentInfoPlugin"}t.EnvironmentInfoPlugin=H;var W=(z.prototype.run=function(e,t){var n=e.contextData.getException();if(n&&(e.event.type="error",!e.event.data["@error"])){var r=e.client.config,i=r.errorParser;if(!i)throw new Error("No error parser was defined.");var o=i.parse(e,n);if(o){var s=JSON.parse(P.stringify(n,r.dataExclusions.concat(["arguments","column","columnNumber","description","fileName","message","name","number","line","lineNumber","opera#sourceloc","sourceId","sourceURL","stack","stackArray","stacktrace"])));P.isEmpty(s)||(o.data||(o.data={}),o.data["@ext"]=s),e.event.data["@error"]=o}}t&&t()},z);function z(){this.priority=30,this.name="ErrorPlugin"}t.ErrorPlugin=W;var J=(Z.prototype.run=function(e,t){var n=e.event,r=e.log,i=e.client.config.settings;if("log"===n.type){var o=this.getMinLogLevel(i,n.source),s=this.getLogLevel(n.data["@level"]);-1!==s&&(6===s||sthis.maxItems&&t.shift(),this.lastTimestamp=n,r.timestamp},ie.prototype.get=function(e){return this.items.slice(0,e)},ie.prototype.remove=function(e){for(var t=this.items,n=0;nthis.maxItems&&this.delete(this.getKey(t.shift()))}catch(e){return null}return n},se.prototype.get=function(e){var r=this;return this.ensureIndex(),this.items.slice(0,e).map(function(e){var t=r.getKey(e);try{var n=r.read(t);return{timestamp:e,value:JSON.parse(n,ae)}}catch(e){return r.safeDelete(t),null}}).filter(function(e){return null!=e})},se.prototype.remove=function(e){this.ensureIndex();var t=this.items,n=t.indexOf(e);if(0<=n){var r=this.getKey(e);this.safeDelete(r),t.splice(n,1)}},se.prototype.clear=function(){var t=this;this.items.forEach(function(e){return t.safeDelete(t.getKey(e))}),this.items=[]},se.prototype.ensureIndex=function(){this.items||(this.items=this.createIndex(),this.lastTimestamp=Math.max.apply(Math,i([0],this.items))+1)},se.prototype.safeDelete=function(e){try{this.delete(e)}catch(e){}},se.prototype.createIndex=function(){var n=this;try{return this.readAllKeys().map(function(t){try{var e=n.getTimestamp(t);return e||(n.safeDelete(t),null)}catch(e){return n.safeDelete(t),null}}).filter(function(e){return null!=e}).sort(function(e,t){return e-t})}catch(e){return[]}},se);function se(e){this.lastTimestamp=0,this.maxItems=e}function ae(e,t){if("string"==typeof t&&/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/g.exec(t))return new Date(t);return t}t.KeyValueStorageBase=oe;var ue,ce=(n(le,ue=oe),le.isAvailable=function(){try{var e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}},le.prototype.write=function(e,t){window.localStorage.setItem(e,t)},le.prototype.read=function(e){return window.localStorage.getItem(e)},le.prototype.readAllKeys=function(){var t=this;return Object.keys(window.localStorage).filter(function(e){return 0===e.indexOf(t.prefix)})},le.prototype.delete=function(e){window.localStorage.removeItem(e)},le.prototype.getKey=function(e){return this.prefix+e},le.prototype.getTimestamp=function(e){return parseInt(e.substr(this.prefix.length),10)},le);function le(e,t,n){void 0===t&&(t="com.exceptionless."),void 0===n&&(n=20);var r=ue.call(this,n)||this;return r.prefix=t+e+"-",r}t.BrowserStorage=ce;var fe=(pe.prototype.parse=function(e,t){function s(e){for(var t=[],n=0,r=("string"==typeof e?[e]:e)||[];n