@microsoft/applicationinsights-analytics-js
Advanced tools
Comparing version 2.7.1-nightly.202110-02 to 2.7.1-nightly.202110-03
{ | ||
"name": "applicationinsights-analytics-js", | ||
"version": "2.7.1-nightly.202110-02", | ||
"version": "2.7.1-nightly.202110-03", | ||
"ext": { | ||
@@ -8,7 +8,7 @@ "@js": { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-C0kpGfbtHgBpsJIEOoz1x6LC51igsO9qBZCdhe6R0Ww= sha384-mIGTRx01Cd7EXZWY3nDg4htMkmSKv99TZhBJxInF+bKhCIlYjmXkQilk3Se6V8zx sha512-8ZJOPmw9AbE2mmRI5vscrm+bl2cKZO3Vec6m9ybfagzhCfnj3a9VQ2IufG1HuS58PYrdkhIONupb/5gwAZMLcg==", | ||
"integrity": "sha256-gEBqyHmyp6x8Rc3tUm3MS4+psyeI6xFFxX4jnhOXXiE= sha384-BE7to5u4OEOgLM0SdUGtq9RXAoO3+amlmiu4Aqck3Ush9z0410f56JBveXQDRgxY sha512-1i6xISTgQ0gnMIPSyM27a4SPFB6jpEI8ij7+mLmluBACom6gXzGr3Wvs+Oi8S3ZoDrmPS7+iEOs+5Xdd+Cyr/A==", | ||
"hashes": { | ||
"sha256": "C0kpGfbtHgBpsJIEOoz1x6LC51igsO9qBZCdhe6R0Ww=", | ||
"sha384": "mIGTRx01Cd7EXZWY3nDg4htMkmSKv99TZhBJxInF+bKhCIlYjmXkQilk3Se6V8zx", | ||
"sha512": "8ZJOPmw9AbE2mmRI5vscrm+bl2cKZO3Vec6m9ybfagzhCfnj3a9VQ2IufG1HuS58PYrdkhIONupb/5gwAZMLcg==" | ||
"sha256": "gEBqyHmyp6x8Rc3tUm3MS4+psyeI6xFFxX4jnhOXXiE=", | ||
"sha384": "BE7to5u4OEOgLM0SdUGtq9RXAoO3+amlmiu4Aqck3Ush9z0410f56JBveXQDRgxY", | ||
"sha512": "1i6xISTgQ0gnMIPSyM27a4SPFB6jpEI8ij7+mLmluBACom6gXzGr3Wvs+Oi8S3ZoDrmPS7+iEOs+5Xdd+Cyr/A==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-OvDu9J4XUGhcYPxCOZU8FijUxucRBZ2rQdaAaH3CmrQ= sha384-3nzrJ3zoLpQkJl/RFvEKT2LNULFLXPro9iwkSEIiBpxYIfz9+wnsdLElmKcQuXNs sha512-gK+OZtIo7POnQ+CSOQ8Hkyjfe5+S2gY8+LPgbRNIg53Biild88ccpMLrVF7T4tR9ivns+/J4dxuMRIiqCecCiA==", | ||
"integrity": "sha256-cDLnfO6eC3CoLrOXKNkHC4q3e7bpPT0n9GUjKh/+hBs= sha384-ccgUYRd5LagHf1tFLPGn7+jAbBKX/1IMpChDL63WkVZEyWskwNLZRMctLF6tSzhx sha512-uGXc7QpSmoouKn7Jz8z9039K6iux0ZZLvxl9KCkuHCFST2o+TQ0ih676HPFfeW9FayUDXiOUOC+hmLiS1VPqQg==", | ||
"hashes": { | ||
"sha256": "OvDu9J4XUGhcYPxCOZU8FijUxucRBZ2rQdaAaH3CmrQ=", | ||
"sha384": "3nzrJ3zoLpQkJl/RFvEKT2LNULFLXPro9iwkSEIiBpxYIfz9+wnsdLElmKcQuXNs", | ||
"sha512": "gK+OZtIo7POnQ+CSOQ8Hkyjfe5+S2gY8+LPgbRNIg53Biild88ccpMLrVF7T4tR9ivns+/J4dxuMRIiqCecCiA==" | ||
"sha256": "cDLnfO6eC3CoLrOXKNkHC4q3e7bpPT0n9GUjKh/+hBs=", | ||
"sha384": "ccgUYRd5LagHf1tFLPGn7+jAbBKX/1IMpChDL63WkVZEyWskwNLZRMctLF6tSzhx", | ||
"sha512": "uGXc7QpSmoouKn7Jz8z9039K6iux0ZZLvxl9KCkuHCFST2o+TQ0ih676HPFfeW9FayUDXiOUOC+hmLiS1VPqQg==" | ||
} | ||
@@ -26,0 +26,0 @@ } |
/*! | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var r="function",x="object",s="undefined",i="prototype",a="hasOwnProperty",n=Object,o=n[i],t=n.assign,c=n.create,l=n.defineProperty,u=o[a];function g(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function f(e){throw new TypeError(e)}(g()||{}).Symbol,(g()||{}).Reflect;var p=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])o[a].call(t,i)&&(e[i]=t[i]);return e},d=function(e,t){return(d=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==r&&null!==t&&f("Class extends value "+t+" is not a constructor or null"),d(e,t),e[i]=null===t?function(e){if(c)return c(e);if(null==e)return{};var t=typeof e;function n(){}return t!==x&&t!==r&&f("Object prototype may only be an Object:"+e),n[i]=e,new n}(t):(n[i]=t[i],new n)}var S,h="constructor",v="prototype",y="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",C="_dynInstChk",k=C,P="_dfOpts",b="_unknown_",N="__proto__",E="useBaseInst",A="setInstFuncs",L=Object,M=L.getPrototypeOf,R=0;function V(e,t){return e&&L[v].hasOwnProperty.call(e,t)}function _(e){return e&&(e===L[v]||e===Array[v])}function D(e){return _(e)||e===Function[v]}function F(e){if(e){if(M)return M(e);if(e=e[N]||e[v]||(e[h]?e[h][v]:null))return e}return null}function O(e,t){var n=[],r=L.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&0<n.length)for(var a=0;a<n.length;a++)t(n[a])}function B(e,t,n){return t!==h&&typeof e[t]===y&&(n||V(e,t))}function U(e){throw new TypeError("DynamicProto: "+e)}function z(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return V(e,v)?e.name||t||b:((e||{})[h]||{}).name||t||b}function j(e,r,t,n){V(e,v)||U("theClass is an invalid class definition.");var i=e[v];!function(e){if(M)for(var t=[],n=F(r);n&&!D(n)&&!z(t,n);){if(n===e)return 1;t.push(n),n=F(n)}}(i)&&U("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var a=null;V(i,I)?a=i[I]:(a="_dynCls$"+W(e,"_")+"$"+R,R++,i[I]=a);var o=j[P],s=!!o[E];s&&n&&n[E]!==undefined&&(s=!!n[E]);var c,l,u,g,f,p,e=(l={},O(c=r,function(e){!l[e]&&B(c,e,!1)&&(l[e]=c[e])}),l);t(r,function(e,t,n,a){function r(e,t,n){var r,i=t[n];return i[w]&&a&&!1!==(r=e[T]||{})[k]&&(i=(r[t[I]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};O(n,function(e){i[e]=r(t,n,e)});for(var o=F(e),s=[];o&&!D(o)&&!z(s,o);)O(o,function(e){!i[e]&&B(o,e,!M)&&(i[e]=r(t,o,e))}),s.push(o),o=F(o);return i}(i,r,e,s)),o=!!M&&!!o[A],u=i,a=a,g=r,f=e,n=!1!==(o=o&&n?!!n[A]:o),_(u)||(o=g[T]=g[T]||{},p=o[a]=o[a]||{},!1!==o[k]&&(o[k]=!!n),O(g,function(e){var n,r,i;B(g,e,!1)&&g[e]!==f[e]&&(p[e]=g[e],delete g[e],V(u,e)&&(!u[e]||u[e][w])||(u[e]=(n=u,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&V(n,I)){var a=e[T]||{};if((i=(a[n[I]]||{})[t])||U("Missing ["+t+"] "+y),!i[C]&&!1!==a[k]){for(var o=!V(e,t),s=F(e),c=[];o&&s&&!D(s)&&!z(c,s);){var l=s[t];if(l){o=l===r;break}c.push(s),s=F(s)}try{o&&(e[t]=i),i[C]=1}catch(u){a[k]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?F(n)[e]:t)!==y&&U("["+e+"] is not a "+y),t)).apply(this,arguments)})[w]=1,i)))}))}j[P]={setInstFuncs:!0,useBaseInst:!0},(Cn=S=S||{})[Cn.CRITICAL=1]="CRITICAL",Cn[Cn.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},K=l;function q(e){return o.toString.call(e)}function J(e){return e===undefined||typeof e===s}function H(e){return null===e||J(e)}function X(e){return!H(e)}function $(e){return typeof e===x}function Z(e){return typeof e===r}function Q(e,t){if(e)for(var n in e)u.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"[object Array]"===q(e)}function te(e){return"[object Error]"===q(e)}function ne(e){return"string"==typeof e}function re(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(a){}}function ie(e,t,n){var r=e.length,i=n||e,a=Array(r);try{for(var o=0;o<r;o++)o in e&&(a[o]=t.call(i,e[o],e))}catch(s){}return a}function ae(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function oe(){var e=Date;return e.now?e.now():(new e).getTime()}function se(e){return te(e)?e.name:""}function ce(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(e[t]=a=n)),a}function le(e){return!!e}var ue="window",ge="document",fe="location",pe="JSON",de="msie",me="trident/",he=null,ve=null,ye=!1;function Te(e){var t=g();return t&&t[e]?t[e]:e===ue&&we()?window:null}function we(){return typeof window===x&&window}function Ie(){return we()?window:Te(ue)}function Ce(){return typeof document===x&&document?document:Te(ge)}function xe(){return typeof navigator===x&&navigator?navigator:Te("navigator")}function Se(e){return e&&ye&&(e=Te("__mockLocation"))?e:typeof location===x&&location?location:Te(fe)}function ke(){return Te("performance")}function Pe(){return typeof JSON===x&&JSON||null!==Te(pe)}function be(){return Pe()?JSON||Te(pe):null}function Ne(){var e=xe();return!e||e.userAgent===ve&&null!==he||(e=((ve=e.userAgent)||"").toLowerCase(),he=Y(e,de)||Y(e,me)),he}function Ee(e){var t=Object[i].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Pe()&&(n=be().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Le=(Me.dataType="MessageData",Me);function Me(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Pe()&&(e=be().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var Re=function Yn(n){this.identifier="DiagnosticLogger",this.queue=[];var i=0,o={};j(Yn,this,function(a){function e(e,t){return H(e=n[e])?t:e}H(n)&&(n={}),a.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},a.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},a.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},a.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},a.throwInternal=function(e,t,n,r,i){if(n=new Le(t,n,i=void 0!==i&&i,r),a.enableDebugExceptions())throw n;J(n.message)||(r=a.consoleLoggingLevel(),i?(i=+n.messageId,!o[i]&&r>=S.WARNING&&(a.warnToConsole(n.message),o[i]=!0)):r>=S.WARNING&&a.warnToConsole(n.message),a.logInternalMessage(e,n))},a.warnToConsole=function(e){var t,n=typeof console!==s?console:Te("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},a.resetInternalMessageCount=function(){i=0,o={}},a.logInternalMessage=function(e,t){var n,r;i>=a.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,o[r]?n=!1:o[r]=!0,n&&(e<=a.telemetryLoggingLevel()&&(a.queue.push(t),i++),i===a.maxInternalMessageLimit()&&(t=new Le(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),a.queue.push(t),a.warnToConsole(e))))}})},Ve=(_e.ParentContextKey="parent",_e.ChildrenContextKey="childEvts",_e);function _e(e,i,t){var r,a=this,o=!1;a.start=oe(),a.name=e,a.isAsync=t,a.isChildEvt=function(){return!1},Z(i)&&(o=function(e){if(K)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(i)&&(r=i(),i=null),r}};return K(e,"payload",t),!0}catch(n){}return!1}(a)),a.getCtx=function(e){return e?(e===_e.ParentContextKey||e===_e.ChildrenContextKey?a:a.ctx||{})[e]:null},a.setCtx=function(e,t){e&&(e===_e.ParentContextKey?(a[e]||(a.isChildEvt=function(){return!0}),a[e]=t):e===_e.ChildrenContextKey?a[e]=t:(a.ctx=a.ctx||{})[e]=t)},a.complete=function(){var e=0,t=a.getCtx(_e.ChildrenContextKey);if(ee(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}a.time=oe()-a.start,a.exTime=a.time-e,a.complete=function(){},!o&&Z(i)&&(a.payload=i())}}var De="CoreUtils.doPerf";function Fe(e,t,n,r,i){if(e){var a=e;if(a=Z(a.getPerfMgr)?a.getPerfMgr():a){var o,s=void 0,e=a.getCtx(De);try{if(s=a.create(t(),r,i))return e&&s.setCtx&&(s.setCtx(Ve.ParentContextKey,e),e.getCtx&&e.setCtx&&((o=e.getCtx(Ve.ChildrenContextKey))||(o=[],e.setCtx(Ve.ChildrenContextKey,o)),o.push(s))),a.setCtx(De,s),n(s)}catch(c){s&&s.setCtx&&s.setCtx("exception",c)}finally{s&&a.fire(s),a.setCtx(De,e)}}}return n()}var Oe=function(i,t){var a=this,o=null,s=Z(i.processTelemetry),c=Z(i.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return i},a.getNext=function(){return o},a.setNext=function(e){o=e},a.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Fe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){a._hasRun=!0;try{r.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=o&&o._hasRun;o&&e||r.diagLog().throwInternal(S.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Ee(t)),o&&!e&&o.processTelemetry(n,r)}}else o&&(a._hasRun=!0,o.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Be(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var a=e[i];a&&Z(a.processTelemetry)&&(a=new Oe(a,t),n.push(a),r&&r.setNext(a),r=a)}return 0<n.length?n[0]:null}var Ue=function er(e,i,n,t){var r,a,o,s,c=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var a=e.getPlugin();!i&&a!==n||(i=!0,r.push(a)),e=e.getNext()}return i||r.push(n),Be(r,t)}(e,c,t||e.getPlugin()):t?(r=c,o=e,s=!1,(a=t)&&e&&(o=[],re(e,function(e){!s&&e!==a||(s=!0,o.push(e))})),a&&!s&&(o=o||[]).push(a),l=Be(o,r)):J(t)&&(l=Be(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Re(i)},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!H(e[t])?r=e[t]:i&&!H(i[t])&&(r=i[t]),H(r)?n:r},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(e){l=e},c.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return new er((e=void 0===e?null:e)||l,i,n,t)}},ze="getPlugin",t=(We.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},We);function We(){var a=this,o=!1,s=null,c=null;a.core=null,a.diagLog=function(e){return a._getTelCtx(e).diagLog()},a.isInitialized=function(){return o},a.setInitialized=function(e){o=e},a.setNextPlugin=function(e){c=e},a.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},a._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=s||new Ue(null,{},a.core),t=c&&c[ze]?e.createNew(null,c[ze]):e.createNew(null,c)),t},a._baseTelInit=function(e,t,n,r){e&&ce(e,"extensionConfig",[],null,H),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ze]&&(i=c[ze]()),a.core=t,s=new Ue(r,e,t,i),o=!0}}var je="toGMTString",Ge="toUTCString",Ke="cookie",qe="expires",Je="enabled",He="isCookieUseDisabled",Xe="disableCookiesUsage",$e="_ckMgr",Ze="",Qe=null,Ye=null,et=null,tt=Ce(),nt={},rt={};function it(e){return!e||e.isEnabled()}function at(e,i){var t,n,l=(ce(n=(t=e||rt).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,X,H),ce(n,"path",t.cookiePath||"/",null,H),H(n[Je])&&(e=void 0,J(t[He])||(e=!t[He]),J(t[Xe])||(e=!t[Xe]),n[Je]=e),n),u=l.path||"/",g=l.domain,r=!1!==l[Je],f={isEnabled:function(){var e=r&&ot(i),t=rt[$e];return e&&t&&f!==t?it(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var a,o,s,c=!1;return it(f)&&(a={},-1!=(s=(o=ae(t||Ze)).indexOf(";"))&&(o=ae(t.substring(0,s)),a=st(t.substring(1+s))),ce(a,"domain",r||g,le,J),H(n)||(s=Ne(),!J(a[qe])||0<(t=oe()+1e3*n)&&((r=new Date).setTime(t),ce(a,qe,ct(r,s?je:Ge)||ct(r,s?je:Ge)||Ze,le)),s||ce(a,"max-age",Ze+n,null,J)),(n=Se())&&"https:"===n.protocol&&(ce(a,"secure",null,null,J),(Ye=null===Ye?!(ne(n=(xe()||{}).userAgent)&&(Y(n,"CPU iPhone OS 12")||Y(n,"iPad; CPU OS 12")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&Y(n,"Version/")&&Y(n,"Safari")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,i=39;0<=i;i--){if(e[r]!=t[i])return;r--}return 1}}}(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Y(n,"Chrome/5")||Y(n,"Chrome/6")||Y(n,"UnrealEngine")&&!Y(n,"Chrome")||Y(n,"UCBrowser/12")||Y(n,"UCBrowser/11"))):Ye)&&ce(a,"SameSite","None",null,J)),ce(a,"path",i||u,null,J),(l.setCookie||ut)(e,lt(o,a)),c=!0),c},get:function(e){var t=Ze;return it(f)?(l.getCookie||function(e){var t,n=Ze;return tt&&(t=tt[Ke]||Ze,et!==t&&(nt=st(t),et=t),n=ae(nt[e]||Ze)),n})(e):t},del:function(e,t){return!!it(f)&&f.purge(e,t)},purge:function(e,t){var n,r=!1;return ot(i)&&((n={}).path=t||"/",n[qe]="Thu, 01 Jan 1970 00:00:01 GMT",Ne()||(n["max-age"]="0"),(l.delCookie||ut)(e,lt(Ze,n)),r=!0),r}};return f[$e]=f}function ot(e){if(null===Qe){Qe=!1;try{Qe=(tt||{})[Ke]!==undefined}catch(t){e&&e.throwInternal(S.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+se(t),{exception:Ee(t)})}}return Qe}function st(e){var n={};return e&&e.length&&re(ae(e).split(";"),function(e){var t;(e=ae(e||Ze))&&(-1==(t=e.indexOf("="))?n[e]=null:n[ae(e.substring(0,t))]=ae(e.substring(1+t)))}),n}function ct(e,t){return Z(e[t])?e[t]():null}function lt(e,t){var n=e||Ze;return Q(t,function(e,t){n+="; "+e+(H(t)?Ze:"="+t)}),n}function ut(e,t){tt&&(tt[Ke]=e+"="+t)}var gt=4294967296,ft=4294967295,pt=!1,dt=123456789,mt=987654321;function ht(e){var t,n=(n=Te("crypto")||Te("msCrypto"))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ft:Ne()?(pt||function(){try{var e=2147483647&oe();(t=(Math.random()*gt^e)+e)<0&&(t>>>=0),dt=123456789+t&ft,mt=987654321-t&ft,pt=!0}catch(n){}var t}(),t=((mt=36969*(65535&mt)+(mt>>16)&ft)<<16)+(65535&(dt=18e3*(65535&dt)+(dt>>16)&ft))>>>0&ft|0,(t>>>=0)&ft):Math.floor(gt*Math.random()|0);return e||(n>>>=0),n}function vt(e,t,n){var r,i,a=t.length,o=(t&&150<(t=ae(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(S.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(o.length!==a){for(var s=0,c=o;n[c]!==undefined;)s++,c=o.substring(0,147)+(i="00"+s).substr(i.length-3);o=c}return o}function yt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ae(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(S.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Tt(e,t){return xt(e,t,2048,G.UrlTooLong)}function wt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(S.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function It(r,e){var i;return e&&(i={},Q(e,function(e,t){if($(t)&&Pe())try{t=be().stringify(t)}catch(n){r.throwInternal(S.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=yt(r,t,8192),e=vt(r,e,i),i[e]=t}),e=i),e}function Ct(n,e){var r;return e&&(r={},Q(e,function(e,t){e=vt(n,e,r),r[e]=t}),e=r),e}function xt(e,t,n,r){var i;return t&&(t=ae(t)).length>n&&(i=t.substring(0,n),e.throwInternal(S.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function St(e){var t,n=null;return Z(Event)?n=new Event(e):(t=Ce())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function kt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Pt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var bt,Nt="not_specified",Et="iKey";(Cn=bt=bt||{})[Cn.LocalStorage=0]="LocalStorage",Cn[Cn.SessionStorage=1]="SessionStorage",(l=Gt=Gt||{})[l.AI=0]="AI",l[l.AI_AND_W3C=1]="AI_AND_W3C",l[l.W3C=2]="W3C";var At=undefined;function Lt(e){try{if(H(g()))return null;var t=new Date,n=Te(e===bt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(i){}return null}function Mt(){return Rt()?Lt(bt.SessionStorage):null}function Rt(){return At=At===undefined?!!Lt(bt.SessionStorage):At}function Vt(e,t){var n=Mt();if(null!==n)try{return n.getItem(t)}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+se(r),{exception:Ee(r)})}return null}function _t(e,t,n){var r=Mt();if(null!==r)try{return r.setItem(t,n),1}catch(i){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+se(i),{exception:Ee(i)})}}function Dt(e,t){var n=Mt();if(null!==n)try{return n.removeItem(t),1}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+se(r),{exception:Ee(r)})}}var Ft=Ce()||{},Ot=0,Bt=[null,null,null,null,null];function Ut(e,t){return 0===e||0===t||H(e)||H(t)?null:t-e}var zt,Wt=(m(jt,zt=Cn=function(){this.ver=2,this.properties={},this.measurements={}}),jt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",jt.dataType="EventData",jt);function jt(e,t,n,r){var i=zt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=yt(e,t)||Nt,i.properties=It(e,n),i.measurements=Ct(e,r),i}var Gt=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},Kt="error",qt="stack",Jt="stackDetails",Ht="errorSrc",Xt="message",$t="description";function Zt(e,t){var n=e;return n&&!ne(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=Z(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Qt(e,t){var n=e;return e&&((n=n&&!ne(n)&&(e[Xt]||e[$t])||n)&&!ne(n)&&(n=Zt(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Yt(e){return e&&e.src&&ne(e.src)&&e.obj&&ee(e.obj)}function en(e){var t=e||"",e=(t=ne(t)?t:ne(t[qt])?t[qt]:""+t).split("\n");return{src:t,obj:e}}function tn(e){var t,n=null;if(e)try{e[qt]?n=en(e[qt]):e[Kt]&&e[Kt][qt]?n=en(e[Kt][qt]):e.exception&&e.exception[qt]?n=en(e.exception[qt]):Yt(e)?n=e:Yt(e[Jt])?n=e[Jt]:window.opera&&e[Xt]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message):ne(e)?n=en(e):(t=e[Xt]||e[$t]||"",ne(e[Ht])&&(t&&(t+="\n"),t+=" from "+e[Ht]),t&&(n=en(t)))}catch(r){n=en(r)}return n||{src:"",obj:null}}function nn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function rn(e){if(e)try{if(!ne(e)){var t=nn(e),n=Zt(e,!1);return n&&"{}"!==n||(e[Kt]&&(t=nn(e=e[Kt])),n=Zt(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var an,on=(m(sn,an=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),sn.CreateAutoException=function(e,t,n,r,i,a,o,s){var c=nn(i||a||e);return{message:Qt(e,c),url:t,lineNumber:n,columnNumber:r,error:rn(i||a||e),evt:rn(a||e),typeName:c,stackDetails:tn(o||i||a),errorSrc:s}},sn.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&ie(e.exceptions,function(e){return ln.CreateFromInterface(t,e)});return new sn(t,p(p({},e),{exceptions:i}),n,r)},sn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,a=this.id,o=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&ie(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:a,isManual:o}},sn.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},sn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",sn.dataType="ExceptionData",sn.formatError=rn,sn);function sn(e,t,n,r,i,a){var o=an.call(this)||this;return o.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if($(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}}(t)?(o.exceptions=t.exceptions,o.properties=t.properties,o.measurements=t.measurements,t.severityLevel&&(o.severityLevel=t.severityLevel),t.id&&(o.id=t.id),t.problemGroup&&(o.problemGroup=t.problemGroup),o.ver=2,H(t.isManual)||(o.isManual=t.isManual)):(o.exceptions=[new ln(e,t,n=n||{})],o.properties=It(e,n),o.measurements=Ct(e,r),i&&(o.severityLevel=i),a&&(o.id=a)),o}var cn,ln=(m(un,cn=l),un.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&ie(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[qt],parsedStack:e||undefined}},un.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&ie(t.parsedStack,function(e){return fn.CreateFromInterface(e)})||t.parsedStack;return new un(e,p(p({},t),{parsedStack:n}))},un);function un(e,t,n){var r,l,i,a,o=cn.call(this)||this;return o.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if($(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}}(t)?(o.typeName=t.typeName,o.message=t.message,o[qt]=t[qt],o.parsedStack=t.parsedStack,o.hasFullStack=t.hasFullStack):(l=(r=t)&&r.evt,te(r)||(r=r[Kt]||l||r),o.typeName=yt(e,nn(r))||Nt,o.message=wt(e,Qt(t||r,o.typeName))||Nt,l=t[Jt]||tn(t),o.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(re(e,function(e){e=e.toString(),fn.regex.test(e)&&(e=new fn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var i=0,a=t.length-1,o=0,s=i,c=a;i<a;){if(32768<(o+=t[i].sizeInBytes+t[a].sizeInBytes)){t.splice(s,c-s+1);break}s=i,c=a,i++,a--}}return t}(),o[qt]=(r=e,a="",(e=l)&&(e.obj?re(e.obj,function(e){a+=e+"\n"}):a=e.src||""),!(l=a)||32768<(e=""+l).length&&(i=e.substring(0,32768),r.throwInternal(S.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),o.hasFullStack=ee(o.parsedStack)&&0<o.parsedStack.length,n&&(n.typeName=n.typeName||o.typeName)),o}var gn,fn=(m(pn,gn=Gt),pn.CreateFromInterface=function(e){return new pn(e,null)},pn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},pn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,pn.baseSize=58,pn);function pn(e,t){var n,r=gn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ae(n),r.fileName="",r.line=0,(n=n.match(pn.regex))&&5<=n.length&&(r.method=ae(n[2])||r.method,r.fileName=ae(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=pn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var dn,l=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Gt=dn={})[Gt.Measurement=0]="Measurement",Gt[Gt.Aggregation=1]="Aggregation";var mn,hn=(m(vn,mn=function(){this.kind=dn.Measurement}),vn);function vn(){var e=null!==mn&&mn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var yn,Tn=(m(wn,yn=l),wn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",wn.dataType="MetricData",wn);function wn(e,t,n,r,i,a,o,s){var c=yn.call(this)||this;c.aiDataContract={ver:1,metrics:1,properties:0};var l=new hn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(i)||null===i?undefined:i,l.name=yt(e,t)||Nt,l.value=n,c.metrics=[l],c.properties=It(e,o),c.measurements=Ct(e,s),c}var In,Cn=(m(xn,In=Cn),xn);function xn(){var e=In.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Sn,kn=(m(Pn,Sn=Cn),Pn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pn.dataType="PageviewData",Pn);function Pn(e,t,n,r,i,a,o){var s=Sn.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=o&&xt(e,o,128,G.IdTooLong).toString(),s.url=Tt(e,n),s.name=yt(e,t)||Nt,isNaN(r)||(s.duration=Pt(r)),s.properties=It(e,i),s.measurements=Ct(e,a),s}var bn,Nn=(m(En,bn=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),En.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",En.dataType="RemoteDependencyData",En);function En(e,t,n,r,i,a,o,s,c,l,u,g){void 0===c&&(c="Ajax");var f=bn.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Pt(i),f.success=a,f.resultCode=o+"",f.type=yt(e,c);var p,d,m,h,v,y,T,w,I,C,o=(p=e,t=s,o=a=i=r,a=(c=n)&&0<c.length?(d=c,C=(I=Bt)[w=Ot],Ft.createElement?I[w]||(C=I[w]=Ft.createElement("a")):C={host:(y=!0,T=null,!(v=m=d)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ne(v[2])&&0<v[2].length&&(T=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",T+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(m=T||"")&&null!=(h=m.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<h.length&&ne(h[2])&&0<h[2].length?h[2]+(h[3]||""):m)},C.href=d,++w>=I.length&&(w=0),Ot=w,C=(s=C).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),o=s.pathname,yt(p,t?t+" "+n:n)):yt(p,c))):C=i,{target:C,name:a,data:o});return f.data=Tt(e,r)||o.data,f.target=yt(e,o.target),l&&(f.target=f.target+" | "+l),f.name=yt(e,o.name),f.properties=It(e,u),f.measurements=Ct(e,g),f}var An,Ln=(m(Mn,An=function(){this.ver=2,this.properties={},this.measurements={}}),Mn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Mn.dataType="MessageData",Mn);function Mn(e,t,n,r,i){var a=An.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=wt(e,t=t||Nt),a.properties=It(e,r),a.measurements=Ct(e,i),n&&(a.severityLevel=n),a}var Rn,Cn=(m(Vn,Rn=Cn),Vn);function Vn(){var e=Rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Dn,Fn=(m(On,_n=Cn),On.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",On.dataType="PageviewPerformanceData",On);function On(e,t,n,r,i,a,o){var s=_n.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Tt(e,n),s.name=yt(e,t)||Nt,s.properties=It(e,i),s.measurements=Ct(e,a),o&&(s.domProcessing=o.domProcessing,s.duration=o.duration,s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s.receivedResponse=o.receivedResponse,s.sentRequest=o.sentRequest),s}(Cn=Dn=Dn||{})[Cn.Verbose=0]="Verbose",Cn[Cn.Information=1]="Information",Cn[Cn.Warning=2]="Warning",Cn[Cn.Error=3]="Error",Cn[Cn.Critical=4]="Critical";var Bn=(Un.create=function(e,t,n,r,i,a){if(n=yt(r,n)||Nt,H(e)||H(t)||H(n))throw Error("Input doesn't contain all required fields");r="",e[Et]&&(r=e[Et],delete e[Et]);var o={name:n,time:function(e){if("[object Date]"===q(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return H(i)||Q(i,function(e,t){o.data[e]=t}),o},Un);function Un(){}var zn=function tr(d,m,t,h){j(tr,this,function(e){var u,n=null,g=[],f=!1;function p(){t&&re(t.getTransmissionControls(),function(e){re(e,function(e){return e.flush(!0)})})}t&&(u=t.logger),e.trackPageView=function(r,i){var a=r.name;!H(a)&&"string"==typeof a||(e=Ce(),a=r.name=e&&e.title||"");var e,o=r.uri;if(!H(o)&&"string"==typeof o||(e=Se(),o=r.uri=e&&e.href||""),!h.isPerformanceTimingSupported())return d.sendPageViewInternal(r,i),p(),void u.throwInternal(S.WARNING,G.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,l=h.getPerformanceTiming().navigationStart;0<l&&(s=Ut(l,+new Date),h.shouldCollectDuration(s)||(s=undefined)),H(i)||H(i.duration)||(t=i.duration),!m&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),d.sendPageViewInternal(r,i),p(),c=!0),i=i||{},t=function(){var e,t=!1;try{h.isPerformanceTimingDataReady()?(t=!0,e={name:a,uri:o},h.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,d.sendPageViewInternal(r,i)),f||(d.sendPageViewPerformanceInternal(e,i),f=!0)):(i.duration=s,d.sendPageViewInternal(r,i))):0<l&&6e4<Ut(l,+new Date)&&(t=!0,c||(i.duration=6e4,d.sendPageViewInternal(r,i)))}catch(n){u.throwInternal(S.CRITICAL,G.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+se(n),{exception:Ee(n)})}return t},g.push(t),n=n||setInterval(function(){var e=g.slice(0),t=!1;g=[],re(e,function(e){e()?t=!0:g.push(e)}),0===g.length&&(clearInterval(n),n=null),t&&p()},100)}})},Wn=(jn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Ee(r))}},jn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+Ee(r)),null}},jn.prototype.startPageVisitTimer=function(e,t){try{var n,r;Rt()&&(null!=Vt(this._logger,this.prevPageVisitDataKeyName)&&function(){throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}(),n=new Gn(e,t),r=be().stringify(n),_t(this._logger,this.prevPageVisitDataKeyName,r))}catch(i){this._logger.warnToConsole("Call to start failed: "+Ee(i))}},jn.prototype.stopPageVisitTimer=function(){try{if(Rt()){var e=oe(),t=Vt(this._logger,this.prevPageVisitDataKeyName);if(t&&Pe()){var n=be().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Dt(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+Ee(r)),null}},jn);function jn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Gn=function(e,t){this.pageVisitStartTime=oe(),this.pageName=e,this.pageUrl=t},Kn=(qn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming(),r=0,i=0,a=0,o=0;(t||n)&&(n=t?(r=t.duration,i=0===t.startTime?t.connectEnd:Ut(t.startTime,t.connectEnd),a=Ut(t.requestStart,t.responseStart),o=Ut(t.responseStart,t.responseEnd),Ut(t.responseEnd,t.loadEventEnd)):(r=Ut(n.navigationStart,n.loadEventEnd),i=Ut(n.navigationStart,n.connectEnd),a=Ut(n.requestStart,n.responseStart),o=Ut(n.responseStart,n.responseEnd),Ut(n.responseEnd,n.loadEventEnd)),0===r?this._logger.throwInternal(S.WARNING,G.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:o,dom:n}):this.shouldCollectDuration(r,i,a,o,n)?r<Math.floor(i)+Math.floor(a)+Math.floor(o)+Math.floor(n)?this._logger.throwInternal(S.WARNING,G.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:o,dom:n}):(e.durationMs=r,e.perfTotal=e.duration=Pt(r),e.networkConnect=Pt(i),e.sentRequest=Pt(a),e.receivedResponse=Pt(o),e.domProcessing=Pt(n),e.isValid=!0):this._logger.throwInternal(S.WARNING,G.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:o,dom:n}))},qn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?ke().timing:null},qn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?ke().getEntriesByType("navigation")[0]:null},qn.prototype.isPerformanceNavigationTimingSupported=function(){var e=ke();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},qn.prototype.isPerformanceTimingSupported=function(){var e=ke();return e&&e.timing},qn.prototype.isPerformanceTimingDataReady=function(){var e=ke();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},qn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(xe()||{}).userAgent,i=!1;if(r)for(var a=0;a<n.length;a++)i=i||!!~r.toLowerCase().indexOf(n[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},qn);function qn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Jn="duration",Hn="event";function Xn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var $n,t=(m(Zn,$n=t),Zn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=kt(e.disableExceptionTracking),e.autoTrackPageVisitTime=kt(e.autoTrackPageVisitTime),e.overridePageViewDuration=kt(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=kt(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isStorageUseDisabled=kt(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=kt(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=kt(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=kt(e.enableDebug),e.disableFlushOnBeforeUnload=kt(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=kt(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},Zn.Version="2.7.1-nightly.202110-02",Zn);function Zn(){var v,y,T,w,I,C=$n.call(this)||this;return C.identifier="ApplicationInsightsAnalytics",C.priority=180,C.autoRoutePVDelay=500,j(Zn,C,function(m,h){var e=Se(!0);w=e&&e.href||"",m.getCookieMgr=function(){return(e=m.core)?n=e.getCookieMgr():t&&(n=t.cookieCfg[$e]||at(t)),n||(r=t,t=(e||{}).logger,(e=at[$e]||rt[$e])||(e=at[$e]=at(r,t),rt[$e]=e),n=e),n;var e,t,n,r},m.processTelemetry=function(a,o){Fe(m.core,function(){return m.identifier+":processTelemetry"},function(){var e=!1,t=m._telemetryInitializers.length;o=m._getTelCtx(o);for(var n=0;n<t;++n){var r=m._telemetryInitializers[n];if(r)try{if(!1===r.call(null,a)){e=!0;break}}catch(i){o.diagLog().throwInternal(S.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+se(i),{exception:Ee(i)},!0)}}e||m.processNext(a,o)},function(){return{item:a}},!a.sync)},m.trackEvent=function(e,t){try{var n=Bn.create(e,Wt.dataType,Wt.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.startTrackEvent=function(e){try{v.start(e)}catch(t){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+se(t),{exception:Ee(t)})}},m.stopTrackEvent=function(e,t,n){try{v.stop(e,undefined,t)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+se(r),{exception:Ee(r)})}},m.trackTrace=function(e,t){try{var n=Bn.create(e,Ln.dataType,Ln.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.trackMetric=function(e,t){try{var n=Bn.create(e,Tn.dataType,Tn.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+se(r),{exception:Ee(r)})}},m.trackPageView=function(e,t){try{var n=e||{};m._pageViewManager.trackPageView(n,p(p(p({},n.properties),n.measurements),t)),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageView failed, page view will not be collected: "+se(r),{exception:Ee(r)})}},m.sendPageViewInternal=function(e,t,n){var r=Ce();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Bn.create(e,kn.dataType,kn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.sendPageViewPerformanceInternal=function(e,t,n){n=Bn.create(e,Fn.dataType,Fn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.trackPageViewPerformance=function(e,t){try{m._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),m.sendPageViewPerformanceInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+se(n),{exception:Ee(n)})}},m.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=Ce())&&t.title||""),y.start(e)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+se(n),{exception:Ee(n)})}},m.stopTrackPage=function(e,t,n,r){try{var i,a;"string"!=typeof e&&(e=(i=Ce())&&i.title||""),"string"!=typeof t&&(t=(a=Se())&&a.href||""),y.stop(e,t,n,r),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+se(o),{exception:Ee(o)})}},m.sendExceptionInternal=function(e,t,n){var r=e.exception||e.error||Error(Nt),e=new on(m.diagLog(),r,e.properties||t,e.measurements,e.severityLevel,e.id).toInterface(),n=Bn.create(e,on.dataType,on.envelopeType,m.diagLog(),t,n);m.core.track(n)},m.trackException=function(e,t){try{m.sendExceptionInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackExceptionFailed,"trackException failed, exception will not be collected: "+se(n),{exception:Ee(n)})}},m._onerror=function(e){var t,n,r,i=e&&e.error,a=e&&e.evt;try{a||(t=Ie())&&(a=t[Hn]);var o=e&&e.url||(Ce()||{}).URL,s=e.errorSrc||"window.onerror@"+o+":"+(e.lineNumber||0)+":"+(e.columnNumber||0),c={errorSrc:s,url:o,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0,message:e.message},l=e.message;e.url,e.lineNumber,e.columnNumber,e.error||!ne(l)||"Script error."!==l&&"Script error"!==l?(e.errorSrc||(e.errorSrc=s),m.trackException({exception:e,severityLevel:Dn.Error},c)):(n=on.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,e.lineNumber||0,e.columnNumber||0,i,a,null,s),r=c,r=Bn.create(n,on.dataType,on.envelopeType,m.diagLog(),r),m.core.track(r))}catch(u){i=i?i.name+", "+i.message:"null",m.diagLog().throwInternal(S.CRITICAL,G.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+se(u),{exception:Ee(u),errorString:i})}},m.addTelemetryInitializer=function(e){m._telemetryInitializers.push(e)},m.initialize=function(e,t,n,r){if(!m.isInitialized()){if(H(t))throw Error("Error initializing");h.initialize(e,t,n,r),m.setInitialized(!1);var i=m._getTelCtx(),a=m.identifier;m.config=i.getExtCfg(a),(t=Zn.getDefaultConfig(e))!==undefined&&Q(t,function(e,t){m.config[e]=i.getConfig(a,e,t),m.config[e]===undefined&&(m.config[e]=t)}),m.config.isStorageUseDisabled&&(At=!1),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return m.config.accountId||e.accountId},sessionRenewalMs:function(){return m.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return m.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return m.config.samplingPercentage||e.samplingPercentage},sdkExtension:function(){return m.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return m.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return m.config.appId||e.appId}},m._pageViewPerformanceManager=new Kn(m.core),m._pageViewManager=new zn(C,m.config.overridePageViewDuration,m.core,m._pageViewPerformanceManager),m._pageVisitTimeManager=new Wn(m.diagLog(),function(e,t,n){m.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t={PageName:e,PageUrl:t})}),m._telemetryInitializers=m._telemetryInitializers||[],r.isBrowserLinkTrackingEnabled()||(d=["/browserLinkSignalR/","/__browserLink/"],m._telemetryInitializers.push(function(e){if(e.baseType===Nn.dataType){var t=e.baseData;if(t)for(var n=0;n<d.length;n++)if(t.target&&~t.target.indexOf(d[n]))return!1}return!0})),(v=new Qn(m.diagLog(),"trackEvent")).action=function(e,t,n,r){(r=r||{})[Jn]=n.toString(),m.trackEvent({name:e,properties:r})},(y=new Qn(m.diagLog(),"trackPageView")).action=function(e,t,n,r,i){(r=H(r)?{}:r)[Jn]=n.toString(),m.sendPageViewInternal({name:e,uri:t,properties:r,measurements:i},r)};var s,o,c,l,u,g=Ie(),t=typeof history===x&&history?history:Te("history"),f=Se(!0),p=C;!1===m.config.disableExceptionTracking&&!m.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var a=g[Hn],o=s&&s(e,t,n,r,i);return!0!==o&&p._onerror(on.CreateAutoException(e,t,n,r,i,a)),o},m.config.autoExceptionInstrumented=!0),!1===m.config.disableExceptionTracking&&!0===m.config.enableUnhandledPromiseRejectionTracking&&!m.config.autoUnhandledPromiseInstrumented&&g&&(o=g[r="onunhandledrejection"],g[r]=function(e){var t=g[Hn],n=o&&o.call(g,e);return!0!==n&&p._onerror(on.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!ne(t)&&Z(t.toString)?t.toString():Ee(t)}return e||""}(e),f?f.href:"",0,0,e,t)),n},m.config.autoUnhandledPromiseInstrumented=!0),!0===m.config.enableAutoRouteTracking&&t&&Z(t.pushState)&&Z(t.replaceState)&&g&&"undefined"!=typeof Event&&(c=C,re(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(T=e)}),t.pushState=(u=t.pushState,function(){var e=u.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"pushState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"replaceState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(c.config.namePrefix+"popstate",function(){Xn(g,St(c.config.namePrefix+"locationchange"))}),g.addEventListener(c.config.namePrefix+"locationchange",function(){var e;T&&T.context&&T.context.telemetryTrace&&(T.context.telemetryTrace.traceID=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=ht())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&ht())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}(),e="_unknown_",f&&f.pathname&&(e=f.pathname+(f.hash||"")),T.context.telemetryTrace.name=e),I&&(w=I),I=f&&f.href||"",setTimeout((function(e){c.trackPageView({refUri:e,properties:{duration:0}})}).bind(C,w),c.autoRoutePVDelay)}))),m.setInitialized(!0)}var d}}),C}var Qn=function(a,e){var o=this,s={};o.start=function(e){"undefined"!=typeof s[e]&&a.throwInternal(S.WARNING,G.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),s[e]=+new Date},o.stop=function(e,t,n,r){var i=s[e];isNaN(i)?a.throwInternal(S.WARNING,G.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:e,key:e},!0):(i=Ut(i,+new Date),o.action(e,t,i,n,r)),delete s[e],s[e]=undefined}};e.ApplicationInsights=t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(e){"use strict";var r="function",x="object",s="undefined",i="prototype",a="hasOwnProperty",n=Object,o=n[i],t=n.assign,c=n.create,l=n.defineProperty,u=o[a];function g(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function f(e){throw new TypeError(e)}(g()||{}).Symbol,(g()||{}).Reflect;var p=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])o[a].call(t,i)&&(e[i]=t[i]);return e},d=function(e,t){return(d=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==r&&null!==t&&f("Class extends value "+t+" is not a constructor or null"),d(e,t),e[i]=null===t?function(e){if(c)return c(e);if(null==e)return{};var t=typeof e;function n(){}return t!==x&&t!==r&&f("Object prototype may only be an Object:"+e),n[i]=e,new n}(t):(n[i]=t[i],new n)}var S,h="constructor",v="prototype",y="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",C="_dynInstChk",k=C,P="_dfOpts",b="_unknown_",N="__proto__",E="useBaseInst",A="setInstFuncs",L=Object,M=L.getPrototypeOf,R=0;function V(e,t){return e&&L[v].hasOwnProperty.call(e,t)}function _(e){return e&&(e===L[v]||e===Array[v])}function D(e){return _(e)||e===Function[v]}function F(e){if(e){if(M)return M(e);if(e=e[N]||e[v]||(e[h]?e[h][v]:null))return e}return null}function O(e,t){var n=[],r=L.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&0<n.length)for(var a=0;a<n.length;a++)t(n[a])}function B(e,t,n){return t!==h&&typeof e[t]===y&&(n||V(e,t))}function U(e){throw new TypeError("DynamicProto: "+e)}function z(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return V(e,v)?e.name||t||b:((e||{})[h]||{}).name||t||b}function j(e,r,t,n){V(e,v)||U("theClass is an invalid class definition.");var i=e[v];!function(e){if(M)for(var t=[],n=F(r);n&&!D(n)&&!z(t,n);){if(n===e)return 1;t.push(n),n=F(n)}}(i)&&U("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var a=null;V(i,I)?a=i[I]:(a="_dynCls$"+W(e,"_")+"$"+R,R++,i[I]=a);var o=j[P],s=!!o[E];s&&n&&n[E]!==undefined&&(s=!!n[E]);var c,l,u,g,f,p,e=(l={},O(c=r,function(e){!l[e]&&B(c,e,!1)&&(l[e]=c[e])}),l);t(r,function(e,t,n,a){function r(e,t,n){var r,i=t[n];return i[w]&&a&&!1!==(r=e[T]||{})[k]&&(i=(r[t[I]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};O(n,function(e){i[e]=r(t,n,e)});for(var o=F(e),s=[];o&&!D(o)&&!z(s,o);)O(o,function(e){!i[e]&&B(o,e,!M)&&(i[e]=r(t,o,e))}),s.push(o),o=F(o);return i}(i,r,e,s)),o=!!M&&!!o[A],u=i,a=a,g=r,f=e,n=!1!==(o=o&&n?!!n[A]:o),_(u)||(o=g[T]=g[T]||{},p=o[a]=o[a]||{},!1!==o[k]&&(o[k]=!!n),O(g,function(e){var n,r,i;B(g,e,!1)&&g[e]!==f[e]&&(p[e]=g[e],delete g[e],V(u,e)&&(!u[e]||u[e][w])||(u[e]=(n=u,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&V(n,I)){var a=e[T]||{};if((i=(a[n[I]]||{})[t])||U("Missing ["+t+"] "+y),!i[C]&&!1!==a[k]){for(var o=!V(e,t),s=F(e),c=[];o&&s&&!D(s)&&!z(c,s);){var l=s[t];if(l){o=l===r;break}c.push(s),s=F(s)}try{o&&(e[t]=i),i[C]=1}catch(u){a[k]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?F(n)[e]:t)!==y&&U("["+e+"] is not a "+y),t)).apply(this,arguments)})[w]=1,i)))}))}j[P]={setInstFuncs:!0,useBaseInst:!0},(Cn=S=S||{})[Cn.CRITICAL=1]="CRITICAL",Cn[Cn.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},K=l;function q(e){return o.toString.call(e)}function J(e){return e===undefined||typeof e===s}function H(e){return null===e||J(e)}function X(e){return!H(e)}function $(e){return typeof e===x}function Z(e){return typeof e===r}function Q(e,t){if(e)for(var n in e)u.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"[object Array]"===q(e)}function te(e){return"[object Error]"===q(e)}function ne(e){return"string"==typeof e}function re(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(a){}}function ie(e,t,n){var r=e.length,i=n||e,a=Array(r);try{for(var o=0;o<r;o++)o in e&&(a[o]=t.call(i,e[o],e))}catch(s){}return a}function ae(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function oe(){var e=Date;return e.now?e.now():(new e).getTime()}function se(e){return te(e)?e.name:""}function ce(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(e[t]=a=n)),a}function le(e){return!!e}var ue="window",ge="document",fe="location",pe="JSON",de="msie",me="trident/",he=null,ve=null,ye=!1;function Te(e){var t=g();return t&&t[e]?t[e]:e===ue&&we()?window:null}function we(){return typeof window===x&&window}function Ie(){return we()?window:Te(ue)}function Ce(){return typeof document===x&&document?document:Te(ge)}function xe(){return typeof navigator===x&&navigator?navigator:Te("navigator")}function Se(e){return e&&ye&&(e=Te("__mockLocation"))?e:typeof location===x&&location?location:Te(fe)}function ke(){return Te("performance")}function Pe(){return typeof JSON===x&&JSON||null!==Te(pe)}function be(){return Pe()?JSON||Te(pe):null}function Ne(){var e=xe();return!e||e.userAgent===ve&&null!==he||(e=((ve=e.userAgent)||"").toLowerCase(),he=Y(e,de)||Y(e,me)),he}function Ee(e){var t=Object[i].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Pe()&&(n=be().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Le=(Me.dataType="MessageData",Me);function Me(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Pe()&&(e=be().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var Re=function Yn(n){this.identifier="DiagnosticLogger",this.queue=[];var i=0,o={};j(Yn,this,function(a){function e(e,t){return H(e=n[e])?t:e}H(n)&&(n={}),a.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},a.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},a.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},a.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},a.throwInternal=function(e,t,n,r,i){if(n=new Le(t,n,i=void 0!==i&&i,r),a.enableDebugExceptions())throw n;J(n.message)||(r=a.consoleLoggingLevel(),i?(i=+n.messageId,!o[i]&&r>=S.WARNING&&(a.warnToConsole(n.message),o[i]=!0)):r>=S.WARNING&&a.warnToConsole(n.message),a.logInternalMessage(e,n))},a.warnToConsole=function(e){var t,n=typeof console!==s?console:Te("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},a.resetInternalMessageCount=function(){i=0,o={}},a.logInternalMessage=function(e,t){var n,r;i>=a.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,o[r]?n=!1:o[r]=!0,n&&(e<=a.telemetryLoggingLevel()&&(a.queue.push(t),i++),i===a.maxInternalMessageLimit()&&(t=new Le(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),a.queue.push(t),a.warnToConsole(e))))}})},Ve=(_e.ParentContextKey="parent",_e.ChildrenContextKey="childEvts",_e);function _e(e,i,t){var r,a=this,o=!1;a.start=oe(),a.name=e,a.isAsync=t,a.isChildEvt=function(){return!1},Z(i)&&(o=function(e){if(K)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(i)&&(r=i(),i=null),r}};return K(e,"payload",t),!0}catch(n){}return!1}(a)),a.getCtx=function(e){return e?(e===_e.ParentContextKey||e===_e.ChildrenContextKey?a:a.ctx||{})[e]:null},a.setCtx=function(e,t){e&&(e===_e.ParentContextKey?(a[e]||(a.isChildEvt=function(){return!0}),a[e]=t):e===_e.ChildrenContextKey?a[e]=t:(a.ctx=a.ctx||{})[e]=t)},a.complete=function(){var e=0,t=a.getCtx(_e.ChildrenContextKey);if(ee(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}a.time=oe()-a.start,a.exTime=a.time-e,a.complete=function(){},!o&&Z(i)&&(a.payload=i())}}var De="CoreUtils.doPerf";function Fe(e,t,n,r,i){if(e){var a=e;if(a=Z(a.getPerfMgr)?a.getPerfMgr():a){var o,s=void 0,e=a.getCtx(De);try{if(s=a.create(t(),r,i))return e&&s.setCtx&&(s.setCtx(Ve.ParentContextKey,e),e.getCtx&&e.setCtx&&((o=e.getCtx(Ve.ChildrenContextKey))||(o=[],e.setCtx(Ve.ChildrenContextKey,o)),o.push(s))),a.setCtx(De,s),n(s)}catch(c){s&&s.setCtx&&s.setCtx("exception",c)}finally{s&&a.fire(s),a.setCtx(De,e)}}}return n()}var Oe=function(i,t){var a=this,o=null,s=Z(i.processTelemetry),c=Z(i.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return i},a.getNext=function(){return o},a.setNext=function(e){o=e},a.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Fe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){a._hasRun=!0;try{r.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=o&&o._hasRun;o&&e||r.diagLog().throwInternal(S.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Ee(t)),o&&!e&&o.processTelemetry(n,r)}}else o&&(a._hasRun=!0,o.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Be(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var a=e[i];a&&Z(a.processTelemetry)&&(a=new Oe(a,t),n.push(a),r&&r.setNext(a),r=a)}return 0<n.length?n[0]:null}var Ue=function er(e,i,n,t){var r,a,o,s,c=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var a=e.getPlugin();!i&&a!==n||(i=!0,r.push(a)),e=e.getNext()}return i||r.push(n),Be(r,t)}(e,c,t||e.getPlugin()):t?(r=c,o=e,s=!1,(a=t)&&e&&(o=[],re(e,function(e){!s&&e!==a||(s=!0,o.push(e))})),a&&!s&&(o=o||[]).push(a),l=Be(o,r)):J(t)&&(l=Be(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Re(i)},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!H(e[t])?r=e[t]:i&&!H(i[t])&&(r=i[t]),H(r)?n:r},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(e){l=e},c.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return new er((e=void 0===e?null:e)||l,i,n,t)}},ze="getPlugin",t=(We.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},We);function We(){var a=this,o=!1,s=null,c=null;a.core=null,a.diagLog=function(e){return a._getTelCtx(e).diagLog()},a.isInitialized=function(){return o},a.setInitialized=function(e){o=e},a.setNextPlugin=function(e){c=e},a.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},a._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=s||new Ue(null,{},a.core),t=c&&c[ze]?e.createNew(null,c[ze]):e.createNew(null,c)),t},a._baseTelInit=function(e,t,n,r){e&&ce(e,"extensionConfig",[],null,H),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ze]&&(i=c[ze]()),a.core=t,s=new Ue(r,e,t,i),o=!0}}var je="toGMTString",Ge="toUTCString",Ke="cookie",qe="expires",Je="enabled",He="isCookieUseDisabled",Xe="disableCookiesUsage",$e="_ckMgr",Ze="",Qe=null,Ye=null,et=null,tt=Ce(),nt={},rt={};function it(e){return!e||e.isEnabled()}function at(e,i){var t,n,l=(ce(n=(t=e||rt).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,X,H),ce(n,"path",t.cookiePath||"/",null,H),H(n[Je])&&(e=void 0,J(t[He])||(e=!t[He]),J(t[Xe])||(e=!t[Xe]),n[Je]=e),n),u=l.path||"/",g=l.domain,r=!1!==l[Je],f={isEnabled:function(){var e=r&&ot(i),t=rt[$e];return e&&t&&f!==t?it(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var a,o,s,c=!1;return it(f)&&(a={},-1!=(s=(o=ae(t||Ze)).indexOf(";"))&&(o=ae(t.substring(0,s)),a=st(t.substring(1+s))),ce(a,"domain",r||g,le,J),H(n)||(s=Ne(),!J(a[qe])||0<(t=oe()+1e3*n)&&((r=new Date).setTime(t),ce(a,qe,ct(r,s?je:Ge)||ct(r,s?je:Ge)||Ze,le)),s||ce(a,"max-age",Ze+n,null,J)),(n=Se())&&"https:"===n.protocol&&(ce(a,"secure",null,null,J),(Ye=null===Ye?!(ne(n=(xe()||{}).userAgent)&&(Y(n,"CPU iPhone OS 12")||Y(n,"iPad; CPU OS 12")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&Y(n,"Version/")&&Y(n,"Safari")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,i=39;0<=i;i--){if(e[r]!=t[i])return;r--}return 1}}}(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Y(n,"Chrome/5")||Y(n,"Chrome/6")||Y(n,"UnrealEngine")&&!Y(n,"Chrome")||Y(n,"UCBrowser/12")||Y(n,"UCBrowser/11"))):Ye)&&ce(a,"SameSite","None",null,J)),ce(a,"path",i||u,null,J),(l.setCookie||ut)(e,lt(o,a)),c=!0),c},get:function(e){var t=Ze;return it(f)?(l.getCookie||function(e){var t,n=Ze;return tt&&(t=tt[Ke]||Ze,et!==t&&(nt=st(t),et=t),n=ae(nt[e]||Ze)),n})(e):t},del:function(e,t){return!!it(f)&&f.purge(e,t)},purge:function(e,t){var n,r=!1;return ot(i)&&((n={}).path=t||"/",n[qe]="Thu, 01 Jan 1970 00:00:01 GMT",Ne()||(n["max-age"]="0"),(l.delCookie||ut)(e,lt(Ze,n)),r=!0),r}};return f[$e]=f}function ot(e){if(null===Qe){Qe=!1;try{Qe=(tt||{})[Ke]!==undefined}catch(t){e&&e.throwInternal(S.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+se(t),{exception:Ee(t)})}}return Qe}function st(e){var n={};return e&&e.length&&re(ae(e).split(";"),function(e){var t;(e=ae(e||Ze))&&(-1==(t=e.indexOf("="))?n[e]=null:n[ae(e.substring(0,t))]=ae(e.substring(1+t)))}),n}function ct(e,t){return Z(e[t])?e[t]():null}function lt(e,t){var n=e||Ze;return Q(t,function(e,t){n+="; "+e+(H(t)?Ze:"="+t)}),n}function ut(e,t){tt&&(tt[Ke]=e+"="+t)}var gt=4294967296,ft=4294967295,pt=!1,dt=123456789,mt=987654321;function ht(e){var t,n=(n=Te("crypto")||Te("msCrypto"))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ft:Ne()?(pt||function(){try{var e=2147483647&oe();(t=(Math.random()*gt^e)+e)<0&&(t>>>=0),dt=123456789+t&ft,mt=987654321-t&ft,pt=!0}catch(n){}var t}(),t=((mt=36969*(65535&mt)+(mt>>16)&ft)<<16)+(65535&(dt=18e3*(65535&dt)+(dt>>16)&ft))>>>0&ft|0,(t>>>=0)&ft):Math.floor(gt*Math.random()|0);return e||(n>>>=0),n}function vt(e,t,n){var r,i,a=t.length,o=(t&&150<(t=ae(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(S.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(o.length!==a){for(var s=0,c=o;n[c]!==undefined;)s++,c=o.substring(0,147)+(i="00"+s).substr(i.length-3);o=c}return o}function yt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ae(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(S.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Tt(e,t){return xt(e,t,2048,G.UrlTooLong)}function wt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(S.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function It(r,e){var i;return e&&(i={},Q(e,function(e,t){if($(t)&&Pe())try{t=be().stringify(t)}catch(n){r.throwInternal(S.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=yt(r,t,8192),e=vt(r,e,i),i[e]=t}),e=i),e}function Ct(n,e){var r;return e&&(r={},Q(e,function(e,t){e=vt(n,e,r),r[e]=t}),e=r),e}function xt(e,t,n,r){var i;return t&&(t=ae(t)).length>n&&(i=t.substring(0,n),e.throwInternal(S.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function St(e){var t,n=null;return Z(Event)?n=new Event(e):(t=Ce())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function kt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Pt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var bt,Nt="not_specified",Et="iKey";(Cn=bt=bt||{})[Cn.LocalStorage=0]="LocalStorage",Cn[Cn.SessionStorage=1]="SessionStorage",(l=Gt=Gt||{})[l.AI=0]="AI",l[l.AI_AND_W3C=1]="AI_AND_W3C",l[l.W3C=2]="W3C";var At=undefined;function Lt(e){try{if(H(g()))return null;var t=new Date,n=Te(e===bt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(i){}return null}function Mt(){return Rt()?Lt(bt.SessionStorage):null}function Rt(){return At=At===undefined?!!Lt(bt.SessionStorage):At}function Vt(e,t){var n=Mt();if(null!==n)try{return n.getItem(t)}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+se(r),{exception:Ee(r)})}return null}function _t(e,t,n){var r=Mt();if(null!==r)try{return r.setItem(t,n),1}catch(i){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+se(i),{exception:Ee(i)})}}function Dt(e,t){var n=Mt();if(null!==n)try{return n.removeItem(t),1}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+se(r),{exception:Ee(r)})}}var Ft=Ce()||{},Ot=0,Bt=[null,null,null,null,null];function Ut(e,t){return 0===e||0===t||H(e)||H(t)?null:t-e}var zt,Wt=(m(jt,zt=Cn=function(){this.ver=2,this.properties={},this.measurements={}}),jt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",jt.dataType="EventData",jt);function jt(e,t,n,r){var i=zt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=yt(e,t)||Nt,i.properties=It(e,n),i.measurements=Ct(e,r),i}var Gt=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},Kt="error",qt="stack",Jt="stackDetails",Ht="errorSrc",Xt="message",$t="description";function Zt(e,t){var n=e;return n&&!ne(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=Z(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Qt(e,t){var n=e;return e&&((n=n&&!ne(n)&&(e[Xt]||e[$t])||n)&&!ne(n)&&(n=Zt(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Yt(e){return e&&e.src&&ne(e.src)&&e.obj&&ee(e.obj)}function en(e){var t=e||"",e=(t=ne(t)?t:ne(t[qt])?t[qt]:""+t).split("\n");return{src:t,obj:e}}function tn(e){var t,n=null;if(e)try{e[qt]?n=en(e[qt]):e[Kt]&&e[Kt][qt]?n=en(e[Kt][qt]):e.exception&&e.exception[qt]?n=en(e.exception[qt]):Yt(e)?n=e:Yt(e[Jt])?n=e[Jt]:window.opera&&e[Xt]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message):ne(e)?n=en(e):(t=e[Xt]||e[$t]||"",ne(e[Ht])&&(t&&(t+="\n"),t+=" from "+e[Ht]),t&&(n=en(t)))}catch(r){n=en(r)}return n||{src:"",obj:null}}function nn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function rn(e){if(e)try{if(!ne(e)){var t=nn(e),n=Zt(e,!1);return n&&"{}"!==n||(e[Kt]&&(t=nn(e=e[Kt])),n=Zt(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var an,on=(m(sn,an=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),sn.CreateAutoException=function(e,t,n,r,i,a,o,s){var c=nn(i||a||e);return{message:Qt(e,c),url:t,lineNumber:n,columnNumber:r,error:rn(i||a||e),evt:rn(a||e),typeName:c,stackDetails:tn(o||i||a),errorSrc:s}},sn.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&ie(e.exceptions,function(e){return ln.CreateFromInterface(t,e)});return new sn(t,p(p({},e),{exceptions:i}),n,r)},sn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,a=this.id,o=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&ie(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:a,isManual:o}},sn.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},sn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",sn.dataType="ExceptionData",sn.formatError=rn,sn);function sn(e,t,n,r,i,a){var o=an.call(this)||this;return o.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if($(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}}(t)?(o.exceptions=t.exceptions,o.properties=t.properties,o.measurements=t.measurements,t.severityLevel&&(o.severityLevel=t.severityLevel),t.id&&(o.id=t.id),t.problemGroup&&(o.problemGroup=t.problemGroup),o.ver=2,H(t.isManual)||(o.isManual=t.isManual)):(o.exceptions=[new ln(e,t,n=n||{})],o.properties=It(e,n),o.measurements=Ct(e,r),i&&(o.severityLevel=i),a&&(o.id=a)),o}var cn,ln=(m(un,cn=l),un.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&ie(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[qt],parsedStack:e||undefined}},un.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&ie(t.parsedStack,function(e){return fn.CreateFromInterface(e)})||t.parsedStack;return new un(e,p(p({},t),{parsedStack:n}))},un);function un(e,t,n){var r,l,i,a,o=cn.call(this)||this;return o.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if($(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}}(t)?(o.typeName=t.typeName,o.message=t.message,o[qt]=t[qt],o.parsedStack=t.parsedStack,o.hasFullStack=t.hasFullStack):(l=(r=t)&&r.evt,te(r)||(r=r[Kt]||l||r),o.typeName=yt(e,nn(r))||Nt,o.message=wt(e,Qt(t||r,o.typeName))||Nt,l=t[Jt]||tn(t),o.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(re(e,function(e){e=e.toString(),fn.regex.test(e)&&(e=new fn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var i=0,a=t.length-1,o=0,s=i,c=a;i<a;){if(32768<(o+=t[i].sizeInBytes+t[a].sizeInBytes)){t.splice(s,c-s+1);break}s=i,c=a,i++,a--}}return t}(),o[qt]=(r=e,a="",(e=l)&&(e.obj?re(e.obj,function(e){a+=e+"\n"}):a=e.src||""),!(l=a)||32768<(e=""+l).length&&(i=e.substring(0,32768),r.throwInternal(S.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),o.hasFullStack=ee(o.parsedStack)&&0<o.parsedStack.length,n&&(n.typeName=n.typeName||o.typeName)),o}var gn,fn=(m(pn,gn=Gt),pn.CreateFromInterface=function(e){return new pn(e,null)},pn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},pn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,pn.baseSize=58,pn);function pn(e,t){var n,r=gn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ae(n),r.fileName="",r.line=0,(n=n.match(pn.regex))&&5<=n.length&&(r.method=ae(n[2])||r.method,r.fileName=ae(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=pn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var dn,l=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Gt=dn={})[Gt.Measurement=0]="Measurement",Gt[Gt.Aggregation=1]="Aggregation";var mn,hn=(m(vn,mn=function(){this.kind=dn.Measurement}),vn);function vn(){var e=null!==mn&&mn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var yn,Tn=(m(wn,yn=l),wn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",wn.dataType="MetricData",wn);function wn(e,t,n,r,i,a,o,s){var c=yn.call(this)||this;c.aiDataContract={ver:1,metrics:1,properties:0};var l=new hn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(i)||null===i?undefined:i,l.name=yt(e,t)||Nt,l.value=n,c.metrics=[l],c.properties=It(e,o),c.measurements=Ct(e,s),c}var In,Cn=(m(xn,In=Cn),xn);function xn(){var e=In.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Sn,kn=(m(Pn,Sn=Cn),Pn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pn.dataType="PageviewData",Pn);function Pn(e,t,n,r,i,a,o){var s=Sn.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=o&&xt(e,o,128,G.IdTooLong).toString(),s.url=Tt(e,n),s.name=yt(e,t)||Nt,isNaN(r)||(s.duration=Pt(r)),s.properties=It(e,i),s.measurements=Ct(e,a),s}var bn,Nn=(m(En,bn=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),En.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",En.dataType="RemoteDependencyData",En);function En(e,t,n,r,i,a,o,s,c,l,u,g){void 0===c&&(c="Ajax");var f=bn.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Pt(i),f.success=a,f.resultCode=o+"",f.type=yt(e,c);var p,d,m,h,v,y,T,w,I,C,o=(p=e,t=s,o=a=i=r,a=(c=n)&&0<c.length?(d=c,C=(I=Bt)[w=Ot],Ft.createElement?I[w]||(C=I[w]=Ft.createElement("a")):C={host:(y=!0,T=null,!(v=m=d)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ne(v[2])&&0<v[2].length&&(T=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",T+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(m=T||"")&&null!=(h=m.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<h.length&&ne(h[2])&&0<h[2].length?h[2]+(h[3]||""):m)},C.href=d,++w>=I.length&&(w=0),Ot=w,C=(s=C).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),o=s.pathname,yt(p,t?t+" "+n:n)):yt(p,c))):C=i,{target:C,name:a,data:o});return f.data=Tt(e,r)||o.data,f.target=yt(e,o.target),l&&(f.target=f.target+" | "+l),f.name=yt(e,o.name),f.properties=It(e,u),f.measurements=Ct(e,g),f}var An,Ln=(m(Mn,An=function(){this.ver=2,this.properties={},this.measurements={}}),Mn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Mn.dataType="MessageData",Mn);function Mn(e,t,n,r,i){var a=An.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=wt(e,t=t||Nt),a.properties=It(e,r),a.measurements=Ct(e,i),n&&(a.severityLevel=n),a}var Rn,Cn=(m(Vn,Rn=Cn),Vn);function Vn(){var e=Rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Dn,Fn=(m(On,_n=Cn),On.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",On.dataType="PageviewPerformanceData",On);function On(e,t,n,r,i,a,o){var s=_n.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Tt(e,n),s.name=yt(e,t)||Nt,s.properties=It(e,i),s.measurements=Ct(e,a),o&&(s.domProcessing=o.domProcessing,s.duration=o.duration,s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s.receivedResponse=o.receivedResponse,s.sentRequest=o.sentRequest),s}(Cn=Dn=Dn||{})[Cn.Verbose=0]="Verbose",Cn[Cn.Information=1]="Information",Cn[Cn.Warning=2]="Warning",Cn[Cn.Error=3]="Error",Cn[Cn.Critical=4]="Critical";var Bn=(Un.create=function(e,t,n,r,i,a){if(n=yt(r,n)||Nt,H(e)||H(t)||H(n))throw Error("Input doesn't contain all required fields");r="",e[Et]&&(r=e[Et],delete e[Et]);var o={name:n,time:function(e){if("[object Date]"===q(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return H(i)||Q(i,function(e,t){o.data[e]=t}),o},Un);function Un(){}var zn=function tr(d,m,t,h){j(tr,this,function(e){var u,n=null,g=[],f=!1;function p(){t&&re(t.getTransmissionControls(),function(e){re(e,function(e){return e.flush(!0)})})}t&&(u=t.logger),e.trackPageView=function(r,i){var a=r.name;!H(a)&&"string"==typeof a||(e=Ce(),a=r.name=e&&e.title||"");var e,o=r.uri;if(!H(o)&&"string"==typeof o||(e=Se(),o=r.uri=e&&e.href||""),!h.isPerformanceTimingSupported())return d.sendPageViewInternal(r,i),p(),void u.throwInternal(S.WARNING,G.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,l=h.getPerformanceTiming().navigationStart;0<l&&(s=Ut(l,+new Date),h.shouldCollectDuration(s)||(s=undefined)),H(i)||H(i.duration)||(t=i.duration),!m&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),d.sendPageViewInternal(r,i),p(),c=!0),i=i||{},t=function(){var e,t=!1;try{h.isPerformanceTimingDataReady()?(t=!0,e={name:a,uri:o},h.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,d.sendPageViewInternal(r,i)),f||(d.sendPageViewPerformanceInternal(e,i),f=!0)):(i.duration=s,d.sendPageViewInternal(r,i))):0<l&&6e4<Ut(l,+new Date)&&(t=!0,c||(i.duration=6e4,d.sendPageViewInternal(r,i)))}catch(n){u.throwInternal(S.CRITICAL,G.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+se(n),{exception:Ee(n)})}return t},g.push(t),n=n||setInterval(function(){var e=g.slice(0),t=!1;g=[],re(e,function(e){e()?t=!0:g.push(e)}),0===g.length&&(clearInterval(n),n=null),t&&p()},100)}})},Wn=(jn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Ee(r))}},jn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+Ee(r)),null}},jn.prototype.startPageVisitTimer=function(e,t){try{var n,r;Rt()&&(null!=Vt(this._logger,this.prevPageVisitDataKeyName)&&function(){throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}(),n=new Gn(e,t),r=be().stringify(n),_t(this._logger,this.prevPageVisitDataKeyName,r))}catch(i){this._logger.warnToConsole("Call to start failed: "+Ee(i))}},jn.prototype.stopPageVisitTimer=function(){try{if(Rt()){var e=oe(),t=Vt(this._logger,this.prevPageVisitDataKeyName);if(t&&Pe()){var n=be().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Dt(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+Ee(r)),null}},jn);function jn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Gn=function(e,t){this.pageVisitStartTime=oe(),this.pageName=e,this.pageUrl=t},Kn=(qn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming(),r=0,i=0,a=0,o=0;(t||n)&&(n=t?(r=t.duration,i=0===t.startTime?t.connectEnd:Ut(t.startTime,t.connectEnd),a=Ut(t.requestStart,t.responseStart),o=Ut(t.responseStart,t.responseEnd),Ut(t.responseEnd,t.loadEventEnd)):(r=Ut(n.navigationStart,n.loadEventEnd),i=Ut(n.navigationStart,n.connectEnd),a=Ut(n.requestStart,n.responseStart),o=Ut(n.responseStart,n.responseEnd),Ut(n.responseEnd,n.loadEventEnd)),0===r?this._logger.throwInternal(S.WARNING,G.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:o,dom:n}):this.shouldCollectDuration(r,i,a,o,n)?r<Math.floor(i)+Math.floor(a)+Math.floor(o)+Math.floor(n)?this._logger.throwInternal(S.WARNING,G.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:o,dom:n}):(e.durationMs=r,e.perfTotal=e.duration=Pt(r),e.networkConnect=Pt(i),e.sentRequest=Pt(a),e.receivedResponse=Pt(o),e.domProcessing=Pt(n),e.isValid=!0):this._logger.throwInternal(S.WARNING,G.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:o,dom:n}))},qn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?ke().timing:null},qn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?ke().getEntriesByType("navigation")[0]:null},qn.prototype.isPerformanceNavigationTimingSupported=function(){var e=ke();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},qn.prototype.isPerformanceTimingSupported=function(){var e=ke();return e&&e.timing},qn.prototype.isPerformanceTimingDataReady=function(){var e=ke();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},qn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(xe()||{}).userAgent,i=!1;if(r)for(var a=0;a<n.length;a++)i=i||!!~r.toLowerCase().indexOf(n[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},qn);function qn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Jn="duration",Hn="event";function Xn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var $n,t=(m(Zn,$n=t),Zn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=kt(e.disableExceptionTracking),e.autoTrackPageVisitTime=kt(e.autoTrackPageVisitTime),e.overridePageViewDuration=kt(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=kt(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isStorageUseDisabled=kt(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=kt(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=kt(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=kt(e.enableDebug),e.disableFlushOnBeforeUnload=kt(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=kt(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},Zn.Version="2.7.1-nightly.202110-03",Zn);function Zn(){var v,y,T,w,I,C=$n.call(this)||this;return C.identifier="ApplicationInsightsAnalytics",C.priority=180,C.autoRoutePVDelay=500,j(Zn,C,function(m,h){var e=Se(!0);w=e&&e.href||"",m.getCookieMgr=function(){return(e=m.core)?n=e.getCookieMgr():t&&(n=t.cookieCfg[$e]||at(t)),n||(r=t,t=(e||{}).logger,(e=at[$e]||rt[$e])||(e=at[$e]=at(r,t),rt[$e]=e),n=e),n;var e,t,n,r},m.processTelemetry=function(a,o){Fe(m.core,function(){return m.identifier+":processTelemetry"},function(){var e=!1,t=m._telemetryInitializers.length;o=m._getTelCtx(o);for(var n=0;n<t;++n){var r=m._telemetryInitializers[n];if(r)try{if(!1===r.call(null,a)){e=!0;break}}catch(i){o.diagLog().throwInternal(S.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+se(i),{exception:Ee(i)},!0)}}e||m.processNext(a,o)},function(){return{item:a}},!a.sync)},m.trackEvent=function(e,t){try{var n=Bn.create(e,Wt.dataType,Wt.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.startTrackEvent=function(e){try{v.start(e)}catch(t){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+se(t),{exception:Ee(t)})}},m.stopTrackEvent=function(e,t,n){try{v.stop(e,undefined,t)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+se(r),{exception:Ee(r)})}},m.trackTrace=function(e,t){try{var n=Bn.create(e,Ln.dataType,Ln.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.trackMetric=function(e,t){try{var n=Bn.create(e,Tn.dataType,Tn.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+se(r),{exception:Ee(r)})}},m.trackPageView=function(e,t){try{var n=e||{};m._pageViewManager.trackPageView(n,p(p(p({},n.properties),n.measurements),t)),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageView failed, page view will not be collected: "+se(r),{exception:Ee(r)})}},m.sendPageViewInternal=function(e,t,n){var r=Ce();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Bn.create(e,kn.dataType,kn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.sendPageViewPerformanceInternal=function(e,t,n){n=Bn.create(e,Fn.dataType,Fn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.trackPageViewPerformance=function(e,t){try{m._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),m.sendPageViewPerformanceInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+se(n),{exception:Ee(n)})}},m.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=Ce())&&t.title||""),y.start(e)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+se(n),{exception:Ee(n)})}},m.stopTrackPage=function(e,t,n,r){try{var i,a;"string"!=typeof e&&(e=(i=Ce())&&i.title||""),"string"!=typeof t&&(t=(a=Se())&&a.href||""),y.stop(e,t,n,r),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+se(o),{exception:Ee(o)})}},m.sendExceptionInternal=function(e,t,n){var r=e.exception||e.error||Error(Nt),e=new on(m.diagLog(),r,e.properties||t,e.measurements,e.severityLevel,e.id).toInterface(),n=Bn.create(e,on.dataType,on.envelopeType,m.diagLog(),t,n);m.core.track(n)},m.trackException=function(e,t){try{m.sendExceptionInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackExceptionFailed,"trackException failed, exception will not be collected: "+se(n),{exception:Ee(n)})}},m._onerror=function(e){var t,n,r,i=e&&e.error,a=e&&e.evt;try{a||(t=Ie())&&(a=t[Hn]);var o=e&&e.url||(Ce()||{}).URL,s=e.errorSrc||"window.onerror@"+o+":"+(e.lineNumber||0)+":"+(e.columnNumber||0),c={errorSrc:s,url:o,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0,message:e.message},l=e.message;e.url,e.lineNumber,e.columnNumber,e.error||!ne(l)||"Script error."!==l&&"Script error"!==l?(e.errorSrc||(e.errorSrc=s),m.trackException({exception:e,severityLevel:Dn.Error},c)):(n=on.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,e.lineNumber||0,e.columnNumber||0,i,a,null,s),r=c,r=Bn.create(n,on.dataType,on.envelopeType,m.diagLog(),r),m.core.track(r))}catch(u){i=i?i.name+", "+i.message:"null",m.diagLog().throwInternal(S.CRITICAL,G.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+se(u),{exception:Ee(u),errorString:i})}},m.addTelemetryInitializer=function(e){m._telemetryInitializers.push(e)},m.initialize=function(e,t,n,r){if(!m.isInitialized()){if(H(t))throw Error("Error initializing");h.initialize(e,t,n,r),m.setInitialized(!1);var i=m._getTelCtx(),a=m.identifier;m.config=i.getExtCfg(a),(t=Zn.getDefaultConfig(e))!==undefined&&Q(t,function(e,t){m.config[e]=i.getConfig(a,e,t),m.config[e]===undefined&&(m.config[e]=t)}),m.config.isStorageUseDisabled&&(At=!1),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return m.config.accountId||e.accountId},sessionRenewalMs:function(){return m.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return m.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return m.config.samplingPercentage||e.samplingPercentage},sdkExtension:function(){return m.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return m.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return m.config.appId||e.appId}},m._pageViewPerformanceManager=new Kn(m.core),m._pageViewManager=new zn(C,m.config.overridePageViewDuration,m.core,m._pageViewPerformanceManager),m._pageVisitTimeManager=new Wn(m.diagLog(),function(e,t,n){m.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t={PageName:e,PageUrl:t})}),m._telemetryInitializers=m._telemetryInitializers||[],r.isBrowserLinkTrackingEnabled()||(d=["/browserLinkSignalR/","/__browserLink/"],m._telemetryInitializers.push(function(e){if(e.baseType===Nn.dataType){var t=e.baseData;if(t)for(var n=0;n<d.length;n++)if(t.target&&~t.target.indexOf(d[n]))return!1}return!0})),(v=new Qn(m.diagLog(),"trackEvent")).action=function(e,t,n,r){(r=r||{})[Jn]=n.toString(),m.trackEvent({name:e,properties:r})},(y=new Qn(m.diagLog(),"trackPageView")).action=function(e,t,n,r,i){(r=H(r)?{}:r)[Jn]=n.toString(),m.sendPageViewInternal({name:e,uri:t,properties:r,measurements:i},r)};var s,o,c,l,u,g=Ie(),t=typeof history===x&&history?history:Te("history"),f=Se(!0),p=C;!1===m.config.disableExceptionTracking&&!m.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var a=g[Hn],o=s&&s(e,t,n,r,i);return!0!==o&&p._onerror(on.CreateAutoException(e,t,n,r,i,a)),o},m.config.autoExceptionInstrumented=!0),!1===m.config.disableExceptionTracking&&!0===m.config.enableUnhandledPromiseRejectionTracking&&!m.config.autoUnhandledPromiseInstrumented&&g&&(o=g[r="onunhandledrejection"],g[r]=function(e){var t=g[Hn],n=o&&o.call(g,e);return!0!==n&&p._onerror(on.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!ne(t)&&Z(t.toString)?t.toString():Ee(t)}return e||""}(e),f?f.href:"",0,0,e,t)),n},m.config.autoUnhandledPromiseInstrumented=!0),!0===m.config.enableAutoRouteTracking&&t&&Z(t.pushState)&&Z(t.replaceState)&&g&&"undefined"!=typeof Event&&(c=C,re(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(T=e)}),t.pushState=(u=t.pushState,function(){var e=u.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"pushState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"replaceState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(c.config.namePrefix+"popstate",function(){Xn(g,St(c.config.namePrefix+"locationchange"))}),g.addEventListener(c.config.namePrefix+"locationchange",function(){var e;T&&T.context&&T.context.telemetryTrace&&(T.context.telemetryTrace.traceID=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=ht())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&ht())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}(),e="_unknown_",f&&f.pathname&&(e=f.pathname+(f.hash||"")),T.context.telemetryTrace.name=e),I&&(w=I),I=f&&f.href||"",setTimeout((function(e){c.trackPageView({refUri:e,properties:{duration:0}})}).bind(C,w),c.autoRoutePVDelay)}))),m.setInitialized(!0)}var d}}),C}var Qn=function(a,e){var o=this,s={};o.start=function(e){"undefined"!=typeof s[e]&&a.throwInternal(S.WARNING,G.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),s[e]=+new Date},o.stop=function(e,t,n,r){var i=s[e];isNaN(i)?a.throwInternal(S.WARNING,G.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:e,key:e},!0):(i=Ut(i,+new Date),o.action(e,t,i,n,r)),delete s[e],s[e]=undefined}};e.ApplicationInsights=t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -572,3 +572,3 @@ */ | ||
// Removed Stub for ApplicationInsights.prototype.initialize. | ||
ApplicationInsights.Version = "2.7.1-nightly.202110-02"; // Not currently used anywhere | ||
ApplicationInsights.Version = "2.7.1-nightly.202110-03"; // Not currently used anywhere | ||
return ApplicationInsights; | ||
@@ -575,0 +575,0 @@ }(BaseTelemetryPlugin)); |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,t=function(e){"use strict";var r="function",x="object",s="undefined",i="prototype",a="hasOwnProperty",n=Object,o=n[i],t=n.assign,c=n.create,l=n.defineProperty,u=o[a];function g(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function f(e){throw new TypeError(e)}(g()||{}).Symbol,(g()||{}).Reflect;var p=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])o[a].call(t,i)&&(e[i]=t[i]);return e},d=function(e,t){return(d=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==r&&null!==t&&f("Class extends value "+t+" is not a constructor or null"),d(e,t),e[i]=null===t?function(e){if(c)return c(e);if(null==e)return{};var t=typeof e;function n(){}return t!==x&&t!==r&&f("Object prototype may only be an Object:"+e),n[i]=e,new n}(t):(n[i]=t[i],new n)}var S,h="constructor",v="prototype",y="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",C="_dynInstChk",k=C,P="_dfOpts",b="_unknown_",N="__proto__",E="useBaseInst",A="setInstFuncs",L=Object,M=L.getPrototypeOf,R=0;function V(e,t){return e&&L[v].hasOwnProperty.call(e,t)}function _(e){return e&&(e===L[v]||e===Array[v])}function D(e){return _(e)||e===Function[v]}function F(e){if(e){if(M)return M(e);if(e=e[N]||e[v]||(e[h]?e[h][v]:null))return e}return null}function O(e,t){var n=[],r=L.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&0<n.length)for(var a=0;a<n.length;a++)t(n[a])}function B(e,t,n){return t!==h&&typeof e[t]===y&&(n||V(e,t))}function U(e){throw new TypeError("DynamicProto: "+e)}function z(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return V(e,v)?e.name||t||b:((e||{})[h]||{}).name||t||b}function j(e,r,t,n){V(e,v)||U("theClass is an invalid class definition.");var i=e[v];!function(e){if(M)for(var t=[],n=F(r);n&&!D(n)&&!z(t,n);){if(n===e)return 1;t.push(n),n=F(n)}}(i)&&U("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var a=null;V(i,I)?a=i[I]:(a="_dynCls$"+W(e,"_")+"$"+R,R++,i[I]=a);var o=j[P],s=!!o[E];s&&n&&n[E]!==undefined&&(s=!!n[E]);var c,l,u,g,f,p,e=(l={},O(c=r,function(e){!l[e]&&B(c,e,!1)&&(l[e]=c[e])}),l);t(r,function(e,t,n,a){function r(e,t,n){var r,i=t[n];return i[w]&&a&&!1!==(r=e[T]||{})[k]&&(i=(r[t[I]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};O(n,function(e){i[e]=r(t,n,e)});for(var o=F(e),s=[];o&&!D(o)&&!z(s,o);)O(o,function(e){!i[e]&&B(o,e,!M)&&(i[e]=r(t,o,e))}),s.push(o),o=F(o);return i}(i,r,e,s)),o=!!M&&!!o[A],u=i,a=a,g=r,f=e,n=!1!==(o=o&&n?!!n[A]:o),_(u)||(o=g[T]=g[T]||{},p=o[a]=o[a]||{},!1!==o[k]&&(o[k]=!!n),O(g,function(e){var n,r,i;B(g,e,!1)&&g[e]!==f[e]&&(p[e]=g[e],delete g[e],V(u,e)&&(!u[e]||u[e][w])||(u[e]=(n=u,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&V(n,I)){var a=e[T]||{};if((i=(a[n[I]]||{})[t])||U("Missing ["+t+"] "+y),!i[C]&&!1!==a[k]){for(var o=!V(e,t),s=F(e),c=[];o&&s&&!D(s)&&!z(c,s);){var l=s[t];if(l){o=l===r;break}c.push(s),s=F(s)}try{o&&(e[t]=i),i[C]=1}catch(u){a[k]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?F(n)[e]:t)!==y&&U("["+e+"] is not a "+y),t)).apply(this,arguments)})[w]=1,i)))}))}j[P]={setInstFuncs:!0,useBaseInst:!0},(Cn=S=S||{})[Cn.CRITICAL=1]="CRITICAL",Cn[Cn.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},K=l;function q(e){return o.toString.call(e)}function J(e){return e===undefined||typeof e===s}function H(e){return null===e||J(e)}function X(e){return!H(e)}function $(e){return typeof e===x}function Z(e){return typeof e===r}function Q(e,t){if(e)for(var n in e)u.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"[object Array]"===q(e)}function te(e){return"[object Error]"===q(e)}function ne(e){return"string"==typeof e}function re(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(a){}}function ie(e,t,n){var r=e.length,i=n||e,a=Array(r);try{for(var o=0;o<r;o++)o in e&&(a[o]=t.call(i,e[o],e))}catch(s){}return a}function ae(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function oe(){var e=Date;return e.now?e.now():(new e).getTime()}function se(e){return te(e)?e.name:""}function ce(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(e[t]=a=n)),a}function le(e){return!!e}var ue="window",ge="document",fe="location",pe="JSON",de="msie",me="trident/",he=null,ve=null,ye=!1;function Te(e){var t=g();return t&&t[e]?t[e]:e===ue&&we()?window:null}function we(){return typeof window===x&&window}function Ie(){return we()?window:Te(ue)}function Ce(){return typeof document===x&&document?document:Te(ge)}function xe(){return typeof navigator===x&&navigator?navigator:Te("navigator")}function Se(e){return e&&ye&&(e=Te("__mockLocation"))?e:typeof location===x&&location?location:Te(fe)}function ke(){return Te("performance")}function Pe(){return typeof JSON===x&&JSON||null!==Te(pe)}function be(){return Pe()?JSON||Te(pe):null}function Ne(){var e=xe();return!e||e.userAgent===ve&&null!==he||(e=((ve=e.userAgent)||"").toLowerCase(),he=Y(e,de)||Y(e,me)),he}function Ee(e){var t=Object[i].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Pe()&&(n=be().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Le=(Me.dataType="MessageData",Me);function Me(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Pe()&&(e=be().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var Re=function Yn(n){this.identifier="DiagnosticLogger",this.queue=[];var i=0,o={};j(Yn,this,function(a){function e(e,t){return H(e=n[e])?t:e}H(n)&&(n={}),a.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},a.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},a.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},a.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},a.throwInternal=function(e,t,n,r,i){if(n=new Le(t,n,i=void 0!==i&&i,r),a.enableDebugExceptions())throw n;J(n.message)||(r=a.consoleLoggingLevel(),i?(i=+n.messageId,!o[i]&&r>=S.WARNING&&(a.warnToConsole(n.message),o[i]=!0)):r>=S.WARNING&&a.warnToConsole(n.message),a.logInternalMessage(e,n))},a.warnToConsole=function(e){var t,n=typeof console!==s?console:Te("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},a.resetInternalMessageCount=function(){i=0,o={}},a.logInternalMessage=function(e,t){var n,r;i>=a.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,o[r]?n=!1:o[r]=!0,n&&(e<=a.telemetryLoggingLevel()&&(a.queue.push(t),i++),i===a.maxInternalMessageLimit()&&(t=new Le(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),a.queue.push(t),a.warnToConsole(e))))}})},Ve=(_e.ParentContextKey="parent",_e.ChildrenContextKey="childEvts",_e);function _e(e,i,t){var r,a=this,o=!1;a.start=oe(),a.name=e,a.isAsync=t,a.isChildEvt=function(){return!1},Z(i)&&(o=function(e){if(K)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(i)&&(r=i(),i=null),r}};return K(e,"payload",t),!0}catch(n){}return!1}(a)),a.getCtx=function(e){return e?(e===_e.ParentContextKey||e===_e.ChildrenContextKey?a:a.ctx||{})[e]:null},a.setCtx=function(e,t){e&&(e===_e.ParentContextKey?(a[e]||(a.isChildEvt=function(){return!0}),a[e]=t):e===_e.ChildrenContextKey?a[e]=t:(a.ctx=a.ctx||{})[e]=t)},a.complete=function(){var e=0,t=a.getCtx(_e.ChildrenContextKey);if(ee(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}a.time=oe()-a.start,a.exTime=a.time-e,a.complete=function(){},!o&&Z(i)&&(a.payload=i())}}var De="CoreUtils.doPerf";function Fe(e,t,n,r,i){if(e){var a=e;if(a=Z(a.getPerfMgr)?a.getPerfMgr():a){var o,s=void 0,e=a.getCtx(De);try{if(s=a.create(t(),r,i))return e&&s.setCtx&&(s.setCtx(Ve.ParentContextKey,e),e.getCtx&&e.setCtx&&((o=e.getCtx(Ve.ChildrenContextKey))||(o=[],e.setCtx(Ve.ChildrenContextKey,o)),o.push(s))),a.setCtx(De,s),n(s)}catch(c){s&&s.setCtx&&s.setCtx("exception",c)}finally{s&&a.fire(s),a.setCtx(De,e)}}}return n()}var Oe=function(i,t){var a=this,o=null,s=Z(i.processTelemetry),c=Z(i.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return i},a.getNext=function(){return o},a.setNext=function(e){o=e},a.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Fe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){a._hasRun=!0;try{r.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=o&&o._hasRun;o&&e||r.diagLog().throwInternal(S.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Ee(t)),o&&!e&&o.processTelemetry(n,r)}}else o&&(a._hasRun=!0,o.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Be(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var a=e[i];a&&Z(a.processTelemetry)&&(a=new Oe(a,t),n.push(a),r&&r.setNext(a),r=a)}return 0<n.length?n[0]:null}var Ue=function er(e,i,n,t){var r,a,o,s,c=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var a=e.getPlugin();!i&&a!==n||(i=!0,r.push(a)),e=e.getNext()}return i||r.push(n),Be(r,t)}(e,c,t||e.getPlugin()):t?(r=c,o=e,s=!1,(a=t)&&e&&(o=[],re(e,function(e){!s&&e!==a||(s=!0,o.push(e))})),a&&!s&&(o=o||[]).push(a),l=Be(o,r)):J(t)&&(l=Be(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Re(i)},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!H(e[t])?r=e[t]:i&&!H(i[t])&&(r=i[t]),H(r)?n:r},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(e){l=e},c.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return new er((e=void 0===e?null:e)||l,i,n,t)}},ze="getPlugin",t=(We.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},We);function We(){var a=this,o=!1,s=null,c=null;a.core=null,a.diagLog=function(e){return a._getTelCtx(e).diagLog()},a.isInitialized=function(){return o},a.setInitialized=function(e){o=e},a.setNextPlugin=function(e){c=e},a.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},a._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=s||new Ue(null,{},a.core),t=c&&c[ze]?e.createNew(null,c[ze]):e.createNew(null,c)),t},a._baseTelInit=function(e,t,n,r){e&&ce(e,"extensionConfig",[],null,H),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ze]&&(i=c[ze]()),a.core=t,s=new Ue(r,e,t,i),o=!0}}var je="toGMTString",Ge="toUTCString",Ke="cookie",qe="expires",Je="enabled",He="isCookieUseDisabled",Xe="disableCookiesUsage",$e="_ckMgr",Ze="",Qe=null,Ye=null,et=null,tt=Ce(),nt={},rt={};function it(e){return!e||e.isEnabled()}function at(e,i){var t,n,l=(ce(n=(t=e||rt).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,X,H),ce(n,"path",t.cookiePath||"/",null,H),H(n[Je])&&(e=void 0,J(t[He])||(e=!t[He]),J(t[Xe])||(e=!t[Xe]),n[Je]=e),n),u=l.path||"/",g=l.domain,r=!1!==l[Je],f={isEnabled:function(){var e=r&&ot(i),t=rt[$e];return e&&t&&f!==t?it(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var a,o,s,c=!1;return it(f)&&(a={},-1!=(s=(o=ae(t||Ze)).indexOf(";"))&&(o=ae(t.substring(0,s)),a=st(t.substring(1+s))),ce(a,"domain",r||g,le,J),H(n)||(s=Ne(),!J(a[qe])||0<(t=oe()+1e3*n)&&((r=new Date).setTime(t),ce(a,qe,ct(r,s?je:Ge)||ct(r,s?je:Ge)||Ze,le)),s||ce(a,"max-age",Ze+n,null,J)),(n=Se())&&"https:"===n.protocol&&(ce(a,"secure",null,null,J),(Ye=null===Ye?!(ne(n=(xe()||{}).userAgent)&&(Y(n,"CPU iPhone OS 12")||Y(n,"iPad; CPU OS 12")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&Y(n,"Version/")&&Y(n,"Safari")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,i=39;0<=i;i--){if(e[r]!=t[i])return;r--}return 1}}}(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Y(n,"Chrome/5")||Y(n,"Chrome/6")||Y(n,"UnrealEngine")&&!Y(n,"Chrome")||Y(n,"UCBrowser/12")||Y(n,"UCBrowser/11"))):Ye)&&ce(a,"SameSite","None",null,J)),ce(a,"path",i||u,null,J),(l.setCookie||ut)(e,lt(o,a)),c=!0),c},get:function(e){var t=Ze;return it(f)?(l.getCookie||function(e){var t,n=Ze;return tt&&(t=tt[Ke]||Ze,et!==t&&(nt=st(t),et=t),n=ae(nt[e]||Ze)),n})(e):t},del:function(e,t){return!!it(f)&&f.purge(e,t)},purge:function(e,t){var n,r=!1;return ot(i)&&((n={}).path=t||"/",n[qe]="Thu, 01 Jan 1970 00:00:01 GMT",Ne()||(n["max-age"]="0"),(l.delCookie||ut)(e,lt(Ze,n)),r=!0),r}};return f[$e]=f}function ot(e){if(null===Qe){Qe=!1;try{Qe=(tt||{})[Ke]!==undefined}catch(t){e&&e.throwInternal(S.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+se(t),{exception:Ee(t)})}}return Qe}function st(e){var n={};return e&&e.length&&re(ae(e).split(";"),function(e){var t;(e=ae(e||Ze))&&(-1==(t=e.indexOf("="))?n[e]=null:n[ae(e.substring(0,t))]=ae(e.substring(1+t)))}),n}function ct(e,t){return Z(e[t])?e[t]():null}function lt(e,t){var n=e||Ze;return Q(t,function(e,t){n+="; "+e+(H(t)?Ze:"="+t)}),n}function ut(e,t){tt&&(tt[Ke]=e+"="+t)}var gt=4294967296,ft=4294967295,pt=!1,dt=123456789,mt=987654321;function ht(e){var t,n=(n=Te("crypto")||Te("msCrypto"))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ft:Ne()?(pt||function(){try{var e=2147483647&oe();(t=(Math.random()*gt^e)+e)<0&&(t>>>=0),dt=123456789+t&ft,mt=987654321-t&ft,pt=!0}catch(n){}var t}(),t=((mt=36969*(65535&mt)+(mt>>16)&ft)<<16)+(65535&(dt=18e3*(65535&dt)+(dt>>16)&ft))>>>0&ft|0,(t>>>=0)&ft):Math.floor(gt*Math.random()|0);return e||(n>>>=0),n}function vt(e,t,n){var r,i,a=t.length,o=(t&&150<(t=ae(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(S.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(o.length!==a){for(var s=0,c=o;n[c]!==undefined;)s++,c=o.substring(0,147)+(i="00"+s).substr(i.length-3);o=c}return o}function yt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ae(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(S.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Tt(e,t){return xt(e,t,2048,G.UrlTooLong)}function wt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(S.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function It(r,e){var i;return e&&(i={},Q(e,function(e,t){if($(t)&&Pe())try{t=be().stringify(t)}catch(n){r.throwInternal(S.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=yt(r,t,8192),e=vt(r,e,i),i[e]=t}),e=i),e}function Ct(n,e){var r;return e&&(r={},Q(e,function(e,t){e=vt(n,e,r),r[e]=t}),e=r),e}function xt(e,t,n,r){var i;return t&&(t=ae(t)).length>n&&(i=t.substring(0,n),e.throwInternal(S.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function St(e){var t,n=null;return Z(Event)?n=new Event(e):(t=Ce())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function kt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Pt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var bt,Nt="not_specified",Et="iKey";(Cn=bt=bt||{})[Cn.LocalStorage=0]="LocalStorage",Cn[Cn.SessionStorage=1]="SessionStorage",(l=Gt=Gt||{})[l.AI=0]="AI",l[l.AI_AND_W3C=1]="AI_AND_W3C",l[l.W3C=2]="W3C";var At=undefined;function Lt(e){try{if(H(g()))return null;var t=new Date,n=Te(e===bt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(i){}return null}function Mt(){return Rt()?Lt(bt.SessionStorage):null}function Rt(){return At=At===undefined?!!Lt(bt.SessionStorage):At}function Vt(e,t){var n=Mt();if(null!==n)try{return n.getItem(t)}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+se(r),{exception:Ee(r)})}return null}function _t(e,t,n){var r=Mt();if(null!==r)try{return r.setItem(t,n),1}catch(i){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+se(i),{exception:Ee(i)})}}function Dt(e,t){var n=Mt();if(null!==n)try{return n.removeItem(t),1}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+se(r),{exception:Ee(r)})}}var Ft=Ce()||{},Ot=0,Bt=[null,null,null,null,null];function Ut(e,t){return 0===e||0===t||H(e)||H(t)?null:t-e}var zt,Wt=(m(jt,zt=Cn=function(){this.ver=2,this.properties={},this.measurements={}}),jt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",jt.dataType="EventData",jt);function jt(e,t,n,r){var i=zt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=yt(e,t)||Nt,i.properties=It(e,n),i.measurements=Ct(e,r),i}var Gt=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},Kt="error",qt="stack",Jt="stackDetails",Ht="errorSrc",Xt="message",$t="description";function Zt(e,t){var n=e;return n&&!ne(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=Z(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Qt(e,t){var n=e;return e&&((n=n&&!ne(n)&&(e[Xt]||e[$t])||n)&&!ne(n)&&(n=Zt(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Yt(e){return e&&e.src&&ne(e.src)&&e.obj&&ee(e.obj)}function en(e){var t=e||"",e=(t=ne(t)?t:ne(t[qt])?t[qt]:""+t).split("\n");return{src:t,obj:e}}function tn(e){var t,n=null;if(e)try{e[qt]?n=en(e[qt]):e[Kt]&&e[Kt][qt]?n=en(e[Kt][qt]):e.exception&&e.exception[qt]?n=en(e.exception[qt]):Yt(e)?n=e:Yt(e[Jt])?n=e[Jt]:window.opera&&e[Xt]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message):ne(e)?n=en(e):(t=e[Xt]||e[$t]||"",ne(e[Ht])&&(t&&(t+="\n"),t+=" from "+e[Ht]),t&&(n=en(t)))}catch(r){n=en(r)}return n||{src:"",obj:null}}function nn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function rn(e){if(e)try{if(!ne(e)){var t=nn(e),n=Zt(e,!1);return n&&"{}"!==n||(e[Kt]&&(t=nn(e=e[Kt])),n=Zt(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var an,on=(m(sn,an=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),sn.CreateAutoException=function(e,t,n,r,i,a,o,s){var c=nn(i||a||e);return{message:Qt(e,c),url:t,lineNumber:n,columnNumber:r,error:rn(i||a||e),evt:rn(a||e),typeName:c,stackDetails:tn(o||i||a),errorSrc:s}},sn.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&ie(e.exceptions,function(e){return ln.CreateFromInterface(t,e)});return new sn(t,p(p({},e),{exceptions:i}),n,r)},sn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,a=this.id,o=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&ie(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:a,isManual:o}},sn.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},sn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",sn.dataType="ExceptionData",sn.formatError=rn,sn);function sn(e,t,n,r,i,a){var o=an.call(this)||this;return o.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if($(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}}(t)?(o.exceptions=t.exceptions,o.properties=t.properties,o.measurements=t.measurements,t.severityLevel&&(o.severityLevel=t.severityLevel),t.id&&(o.id=t.id),t.problemGroup&&(o.problemGroup=t.problemGroup),o.ver=2,H(t.isManual)||(o.isManual=t.isManual)):(o.exceptions=[new ln(e,t,n=n||{})],o.properties=It(e,n),o.measurements=Ct(e,r),i&&(o.severityLevel=i),a&&(o.id=a)),o}var cn,ln=(m(un,cn=l),un.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&ie(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[qt],parsedStack:e||undefined}},un.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&ie(t.parsedStack,function(e){return fn.CreateFromInterface(e)})||t.parsedStack;return new un(e,p(p({},t),{parsedStack:n}))},un);function un(e,t,n){var r,l,i,a,o=cn.call(this)||this;return o.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if($(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}}(t)?(o.typeName=t.typeName,o.message=t.message,o[qt]=t[qt],o.parsedStack=t.parsedStack,o.hasFullStack=t.hasFullStack):(l=(r=t)&&r.evt,te(r)||(r=r[Kt]||l||r),o.typeName=yt(e,nn(r))||Nt,o.message=wt(e,Qt(t||r,o.typeName))||Nt,l=t[Jt]||tn(t),o.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(re(e,function(e){e=e.toString(),fn.regex.test(e)&&(e=new fn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var i=0,a=t.length-1,o=0,s=i,c=a;i<a;){if(32768<(o+=t[i].sizeInBytes+t[a].sizeInBytes)){t.splice(s,c-s+1);break}s=i,c=a,i++,a--}}return t}(),o[qt]=(r=e,a="",(e=l)&&(e.obj?re(e.obj,function(e){a+=e+"\n"}):a=e.src||""),!(l=a)||32768<(e=""+l).length&&(i=e.substring(0,32768),r.throwInternal(S.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),o.hasFullStack=ee(o.parsedStack)&&0<o.parsedStack.length,n&&(n.typeName=n.typeName||o.typeName)),o}var gn,fn=(m(pn,gn=Gt),pn.CreateFromInterface=function(e){return new pn(e,null)},pn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},pn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,pn.baseSize=58,pn);function pn(e,t){var n,r=gn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ae(n),r.fileName="",r.line=0,(n=n.match(pn.regex))&&5<=n.length&&(r.method=ae(n[2])||r.method,r.fileName=ae(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=pn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var dn,l=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Gt=dn={})[Gt.Measurement=0]="Measurement",Gt[Gt.Aggregation=1]="Aggregation";var mn,hn=(m(vn,mn=function(){this.kind=dn.Measurement}),vn);function vn(){var e=null!==mn&&mn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var yn,Tn=(m(wn,yn=l),wn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",wn.dataType="MetricData",wn);function wn(e,t,n,r,i,a,o,s){var c=yn.call(this)||this;c.aiDataContract={ver:1,metrics:1,properties:0};var l=new hn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(i)||null===i?undefined:i,l.name=yt(e,t)||Nt,l.value=n,c.metrics=[l],c.properties=It(e,o),c.measurements=Ct(e,s),c}var In,Cn=(m(xn,In=Cn),xn);function xn(){var e=In.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Sn,kn=(m(Pn,Sn=Cn),Pn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pn.dataType="PageviewData",Pn);function Pn(e,t,n,r,i,a,o){var s=Sn.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=o&&xt(e,o,128,G.IdTooLong).toString(),s.url=Tt(e,n),s.name=yt(e,t)||Nt,isNaN(r)||(s.duration=Pt(r)),s.properties=It(e,i),s.measurements=Ct(e,a),s}var bn,Nn=(m(En,bn=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),En.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",En.dataType="RemoteDependencyData",En);function En(e,t,n,r,i,a,o,s,c,l,u,g){void 0===c&&(c="Ajax");var f=bn.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Pt(i),f.success=a,f.resultCode=o+"",f.type=yt(e,c);var p,d,m,h,v,y,T,w,I,C,o=(p=e,t=s,o=a=i=r,a=(c=n)&&0<c.length?(d=c,C=(I=Bt)[w=Ot],Ft.createElement?I[w]||(C=I[w]=Ft.createElement("a")):C={host:(y=!0,T=null,!(v=m=d)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ne(v[2])&&0<v[2].length&&(T=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",T+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(m=T||"")&&null!=(h=m.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<h.length&&ne(h[2])&&0<h[2].length?h[2]+(h[3]||""):m)},C.href=d,++w>=I.length&&(w=0),Ot=w,C=(s=C).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),o=s.pathname,yt(p,t?t+" "+n:n)):yt(p,c))):C=i,{target:C,name:a,data:o});return f.data=Tt(e,r)||o.data,f.target=yt(e,o.target),l&&(f.target=f.target+" | "+l),f.name=yt(e,o.name),f.properties=It(e,u),f.measurements=Ct(e,g),f}var An,Ln=(m(Mn,An=function(){this.ver=2,this.properties={},this.measurements={}}),Mn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Mn.dataType="MessageData",Mn);function Mn(e,t,n,r,i){var a=An.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=wt(e,t=t||Nt),a.properties=It(e,r),a.measurements=Ct(e,i),n&&(a.severityLevel=n),a}var Rn,Cn=(m(Vn,Rn=Cn),Vn);function Vn(){var e=Rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Dn,Fn=(m(On,_n=Cn),On.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",On.dataType="PageviewPerformanceData",On);function On(e,t,n,r,i,a,o){var s=_n.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Tt(e,n),s.name=yt(e,t)||Nt,s.properties=It(e,i),s.measurements=Ct(e,a),o&&(s.domProcessing=o.domProcessing,s.duration=o.duration,s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s.receivedResponse=o.receivedResponse,s.sentRequest=o.sentRequest),s}(Cn=Dn=Dn||{})[Cn.Verbose=0]="Verbose",Cn[Cn.Information=1]="Information",Cn[Cn.Warning=2]="Warning",Cn[Cn.Error=3]="Error",Cn[Cn.Critical=4]="Critical";var Bn=(Un.create=function(e,t,n,r,i,a){if(n=yt(r,n)||Nt,H(e)||H(t)||H(n))throw Error("Input doesn't contain all required fields");r="",e[Et]&&(r=e[Et],delete e[Et]);var o={name:n,time:function(e){if("[object Date]"===q(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return H(i)||Q(i,function(e,t){o.data[e]=t}),o},Un);function Un(){}var zn=function tr(d,m,t,h){j(tr,this,function(e){var u,n=null,g=[],f=!1;function p(){t&&re(t.getTransmissionControls(),function(e){re(e,function(e){return e.flush(!0)})})}t&&(u=t.logger),e.trackPageView=function(r,i){var a=r.name;!H(a)&&"string"==typeof a||(e=Ce(),a=r.name=e&&e.title||"");var e,o=r.uri;if(!H(o)&&"string"==typeof o||(e=Se(),o=r.uri=e&&e.href||""),!h.isPerformanceTimingSupported())return d.sendPageViewInternal(r,i),p(),void u.throwInternal(S.WARNING,G.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,l=h.getPerformanceTiming().navigationStart;0<l&&(s=Ut(l,+new Date),h.shouldCollectDuration(s)||(s=undefined)),H(i)||H(i.duration)||(t=i.duration),!m&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),d.sendPageViewInternal(r,i),p(),c=!0),i=i||{},t=function(){var e,t=!1;try{h.isPerformanceTimingDataReady()?(t=!0,e={name:a,uri:o},h.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,d.sendPageViewInternal(r,i)),f||(d.sendPageViewPerformanceInternal(e,i),f=!0)):(i.duration=s,d.sendPageViewInternal(r,i))):0<l&&6e4<Ut(l,+new Date)&&(t=!0,c||(i.duration=6e4,d.sendPageViewInternal(r,i)))}catch(n){u.throwInternal(S.CRITICAL,G.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+se(n),{exception:Ee(n)})}return t},g.push(t),n=n||setInterval(function(){var e=g.slice(0),t=!1;g=[],re(e,function(e){e()?t=!0:g.push(e)}),0===g.length&&(clearInterval(n),n=null),t&&p()},100)}})},Wn=(jn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Ee(r))}},jn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+Ee(r)),null}},jn.prototype.startPageVisitTimer=function(e,t){try{var n,r;Rt()&&(null!=Vt(this._logger,this.prevPageVisitDataKeyName)&&function(){throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}(),n=new Gn(e,t),r=be().stringify(n),_t(this._logger,this.prevPageVisitDataKeyName,r))}catch(i){this._logger.warnToConsole("Call to start failed: "+Ee(i))}},jn.prototype.stopPageVisitTimer=function(){try{if(Rt()){var e=oe(),t=Vt(this._logger,this.prevPageVisitDataKeyName);if(t&&Pe()){var n=be().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Dt(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+Ee(r)),null}},jn);function jn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Gn=function(e,t){this.pageVisitStartTime=oe(),this.pageName=e,this.pageUrl=t},Kn=(qn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming(),r=0,i=0,a=0,o=0;(t||n)&&(n=t?(r=t.duration,i=0===t.startTime?t.connectEnd:Ut(t.startTime,t.connectEnd),a=Ut(t.requestStart,t.responseStart),o=Ut(t.responseStart,t.responseEnd),Ut(t.responseEnd,t.loadEventEnd)):(r=Ut(n.navigationStart,n.loadEventEnd),i=Ut(n.navigationStart,n.connectEnd),a=Ut(n.requestStart,n.responseStart),o=Ut(n.responseStart,n.responseEnd),Ut(n.responseEnd,n.loadEventEnd)),0===r?this._logger.throwInternal(S.WARNING,G.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:o,dom:n}):this.shouldCollectDuration(r,i,a,o,n)?r<Math.floor(i)+Math.floor(a)+Math.floor(o)+Math.floor(n)?this._logger.throwInternal(S.WARNING,G.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:o,dom:n}):(e.durationMs=r,e.perfTotal=e.duration=Pt(r),e.networkConnect=Pt(i),e.sentRequest=Pt(a),e.receivedResponse=Pt(o),e.domProcessing=Pt(n),e.isValid=!0):this._logger.throwInternal(S.WARNING,G.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:o,dom:n}))},qn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?ke().timing:null},qn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?ke().getEntriesByType("navigation")[0]:null},qn.prototype.isPerformanceNavigationTimingSupported=function(){var e=ke();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},qn.prototype.isPerformanceTimingSupported=function(){var e=ke();return e&&e.timing},qn.prototype.isPerformanceTimingDataReady=function(){var e=ke();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},qn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(xe()||{}).userAgent,i=!1;if(r)for(var a=0;a<n.length;a++)i=i||!!~r.toLowerCase().indexOf(n[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},qn);function qn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Jn="duration",Hn="event";function Xn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var $n,t=(m(Zn,$n=t),Zn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=kt(e.disableExceptionTracking),e.autoTrackPageVisitTime=kt(e.autoTrackPageVisitTime),e.overridePageViewDuration=kt(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=kt(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isStorageUseDisabled=kt(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=kt(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=kt(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=kt(e.enableDebug),e.disableFlushOnBeforeUnload=kt(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=kt(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},Zn.Version="2.7.1-nightly.202110-02",Zn);function Zn(){var v,y,T,w,I,C=$n.call(this)||this;return C.identifier="ApplicationInsightsAnalytics",C.priority=180,C.autoRoutePVDelay=500,j(Zn,C,function(m,h){var e=Se(!0);w=e&&e.href||"",m.getCookieMgr=function(){return(e=m.core)?n=e.getCookieMgr():t&&(n=t.cookieCfg[$e]||at(t)),n||(r=t,t=(e||{}).logger,(e=at[$e]||rt[$e])||(e=at[$e]=at(r,t),rt[$e]=e),n=e),n;var e,t,n,r},m.processTelemetry=function(a,o){Fe(m.core,function(){return m.identifier+":processTelemetry"},function(){var e=!1,t=m._telemetryInitializers.length;o=m._getTelCtx(o);for(var n=0;n<t;++n){var r=m._telemetryInitializers[n];if(r)try{if(!1===r.call(null,a)){e=!0;break}}catch(i){o.diagLog().throwInternal(S.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+se(i),{exception:Ee(i)},!0)}}e||m.processNext(a,o)},function(){return{item:a}},!a.sync)},m.trackEvent=function(e,t){try{var n=Bn.create(e,Wt.dataType,Wt.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.startTrackEvent=function(e){try{v.start(e)}catch(t){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+se(t),{exception:Ee(t)})}},m.stopTrackEvent=function(e,t,n){try{v.stop(e,undefined,t)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+se(r),{exception:Ee(r)})}},m.trackTrace=function(e,t){try{var n=Bn.create(e,Ln.dataType,Ln.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.trackMetric=function(e,t){try{var n=Bn.create(e,Tn.dataType,Tn.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+se(r),{exception:Ee(r)})}},m.trackPageView=function(e,t){try{var n=e||{};m._pageViewManager.trackPageView(n,p(p(p({},n.properties),n.measurements),t)),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageView failed, page view will not be collected: "+se(r),{exception:Ee(r)})}},m.sendPageViewInternal=function(e,t,n){var r=Ce();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Bn.create(e,kn.dataType,kn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.sendPageViewPerformanceInternal=function(e,t,n){n=Bn.create(e,Fn.dataType,Fn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.trackPageViewPerformance=function(e,t){try{m._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),m.sendPageViewPerformanceInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+se(n),{exception:Ee(n)})}},m.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=Ce())&&t.title||""),y.start(e)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+se(n),{exception:Ee(n)})}},m.stopTrackPage=function(e,t,n,r){try{var i,a;"string"!=typeof e&&(e=(i=Ce())&&i.title||""),"string"!=typeof t&&(t=(a=Se())&&a.href||""),y.stop(e,t,n,r),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+se(o),{exception:Ee(o)})}},m.sendExceptionInternal=function(e,t,n){var r=e.exception||e.error||Error(Nt),e=new on(m.diagLog(),r,e.properties||t,e.measurements,e.severityLevel,e.id).toInterface(),n=Bn.create(e,on.dataType,on.envelopeType,m.diagLog(),t,n);m.core.track(n)},m.trackException=function(e,t){try{m.sendExceptionInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackExceptionFailed,"trackException failed, exception will not be collected: "+se(n),{exception:Ee(n)})}},m._onerror=function(e){var t,n,r,i=e&&e.error,a=e&&e.evt;try{a||(t=Ie())&&(a=t[Hn]);var o=e&&e.url||(Ce()||{}).URL,s=e.errorSrc||"window.onerror@"+o+":"+(e.lineNumber||0)+":"+(e.columnNumber||0),c={errorSrc:s,url:o,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0,message:e.message},l=e.message;e.url,e.lineNumber,e.columnNumber,e.error||!ne(l)||"Script error."!==l&&"Script error"!==l?(e.errorSrc||(e.errorSrc=s),m.trackException({exception:e,severityLevel:Dn.Error},c)):(n=on.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,e.lineNumber||0,e.columnNumber||0,i,a,null,s),r=c,r=Bn.create(n,on.dataType,on.envelopeType,m.diagLog(),r),m.core.track(r))}catch(u){i=i?i.name+", "+i.message:"null",m.diagLog().throwInternal(S.CRITICAL,G.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+se(u),{exception:Ee(u),errorString:i})}},m.addTelemetryInitializer=function(e){m._telemetryInitializers.push(e)},m.initialize=function(e,t,n,r){if(!m.isInitialized()){if(H(t))throw Error("Error initializing");h.initialize(e,t,n,r),m.setInitialized(!1);var i=m._getTelCtx(),a=m.identifier;m.config=i.getExtCfg(a),(t=Zn.getDefaultConfig(e))!==undefined&&Q(t,function(e,t){m.config[e]=i.getConfig(a,e,t),m.config[e]===undefined&&(m.config[e]=t)}),m.config.isStorageUseDisabled&&(At=!1),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return m.config.accountId||e.accountId},sessionRenewalMs:function(){return m.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return m.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return m.config.samplingPercentage||e.samplingPercentage},sdkExtension:function(){return m.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return m.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return m.config.appId||e.appId}},m._pageViewPerformanceManager=new Kn(m.core),m._pageViewManager=new zn(C,m.config.overridePageViewDuration,m.core,m._pageViewPerformanceManager),m._pageVisitTimeManager=new Wn(m.diagLog(),function(e,t,n){m.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t={PageName:e,PageUrl:t})}),m._telemetryInitializers=m._telemetryInitializers||[],r.isBrowserLinkTrackingEnabled()||(d=["/browserLinkSignalR/","/__browserLink/"],m._telemetryInitializers.push(function(e){if(e.baseType===Nn.dataType){var t=e.baseData;if(t)for(var n=0;n<d.length;n++)if(t.target&&~t.target.indexOf(d[n]))return!1}return!0})),(v=new Qn(m.diagLog(),"trackEvent")).action=function(e,t,n,r){(r=r||{})[Jn]=n.toString(),m.trackEvent({name:e,properties:r})},(y=new Qn(m.diagLog(),"trackPageView")).action=function(e,t,n,r,i){(r=H(r)?{}:r)[Jn]=n.toString(),m.sendPageViewInternal({name:e,uri:t,properties:r,measurements:i},r)};var s,o,c,l,u,g=Ie(),t=typeof history===x&&history?history:Te("history"),f=Se(!0),p=C;!1===m.config.disableExceptionTracking&&!m.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var a=g[Hn],o=s&&s(e,t,n,r,i);return!0!==o&&p._onerror(on.CreateAutoException(e,t,n,r,i,a)),o},m.config.autoExceptionInstrumented=!0),!1===m.config.disableExceptionTracking&&!0===m.config.enableUnhandledPromiseRejectionTracking&&!m.config.autoUnhandledPromiseInstrumented&&g&&(o=g[r="onunhandledrejection"],g[r]=function(e){var t=g[Hn],n=o&&o.call(g,e);return!0!==n&&p._onerror(on.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!ne(t)&&Z(t.toString)?t.toString():Ee(t)}return e||""}(e),f?f.href:"",0,0,e,t)),n},m.config.autoUnhandledPromiseInstrumented=!0),!0===m.config.enableAutoRouteTracking&&t&&Z(t.pushState)&&Z(t.replaceState)&&g&&"undefined"!=typeof Event&&(c=C,re(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(T=e)}),t.pushState=(u=t.pushState,function(){var e=u.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"pushState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"replaceState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(c.config.namePrefix+"popstate",function(){Xn(g,St(c.config.namePrefix+"locationchange"))}),g.addEventListener(c.config.namePrefix+"locationchange",function(){var e;T&&T.context&&T.context.telemetryTrace&&(T.context.telemetryTrace.traceID=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=ht())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&ht())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}(),e="_unknown_",f&&f.pathname&&(e=f.pathname+(f.hash||"")),T.context.telemetryTrace.name=e),I&&(w=I),I=f&&f.href||"",setTimeout((function(e){c.trackPageView({refUri:e,properties:{duration:0}})}).bind(C,w),c.autoRoutePVDelay)}))),m.setInitialized(!0)}var d}}),C}var Qn=function(a,e){var o=this,s={};o.start=function(e){"undefined"!=typeof s[e]&&a.throwInternal(S.WARNING,G.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),s[e]=+new Date},o.stop=function(e,t,n,r){var i=s[e];isNaN(i)?a.throwInternal(S.WARNING,G.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:e,key:e},!0):(i=Ut(i,+new Date),o.action(e,t,i,n,r)),delete s[e],s[e]=undefined}};e.ApplicationInsights=t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
var e=this,t=function(e){"use strict";var r="function",x="object",s="undefined",i="prototype",a="hasOwnProperty",n=Object,o=n[i],t=n.assign,c=n.create,l=n.defineProperty,u=o[a];function g(){return typeof globalThis!==s&&globalThis?globalThis:typeof self!==s&&self?self:typeof window!==s&&window?window:typeof global!==s&&global?global:null}function f(e){throw new TypeError(e)}(g()||{}).Symbol,(g()||{}).Reflect;var p=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])o[a].call(t,i)&&(e[i]=t[i]);return e},d=function(e,t){return(d=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}typeof t!==r&&null!==t&&f("Class extends value "+t+" is not a constructor or null"),d(e,t),e[i]=null===t?function(e){if(c)return c(e);if(null==e)return{};var t=typeof e;function n(){}return t!==x&&t!==r&&f("Object prototype may only be an Object:"+e),n[i]=e,new n}(t):(n[i]=t[i],new n)}var S,h="constructor",v="prototype",y="function",T="_dynInstFuncs",w="_isDynProxy",I="_dynClass",C="_dynInstChk",k=C,P="_dfOpts",b="_unknown_",N="__proto__",E="useBaseInst",A="setInstFuncs",L=Object,M=L.getPrototypeOf,R=0;function V(e,t){return e&&L[v].hasOwnProperty.call(e,t)}function _(e){return e&&(e===L[v]||e===Array[v])}function D(e){return _(e)||e===Function[v]}function F(e){if(e){if(M)return M(e);if(e=e[N]||e[v]||(e[h]?e[h][v]:null))return e}return null}function O(e,t){var n=[],r=L.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&0<n.length)for(var a=0;a<n.length;a++)t(n[a])}function B(e,t,n){return t!==h&&typeof e[t]===y&&(n||V(e,t))}function U(e){throw new TypeError("DynamicProto: "+e)}function z(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function W(e,t){return V(e,v)?e.name||t||b:((e||{})[h]||{}).name||t||b}function j(e,r,t,n){V(e,v)||U("theClass is an invalid class definition.");var i=e[v];!function(e){if(M)for(var t=[],n=F(r);n&&!D(n)&&!z(t,n);){if(n===e)return 1;t.push(n),n=F(n)}}(i)&&U("["+W(e)+"] is not in class hierarchy of ["+W(r)+"]");var a=null;V(i,I)?a=i[I]:(a="_dynCls$"+W(e,"_")+"$"+R,R++,i[I]=a);var o=j[P],s=!!o[E];s&&n&&n[E]!==undefined&&(s=!!n[E]);var c,l,u,g,f,p,e=(l={},O(c=r,function(e){!l[e]&&B(c,e,!1)&&(l[e]=c[e])}),l);t(r,function(e,t,n,a){function r(e,t,n){var r,i=t[n];return i[w]&&a&&!1!==(r=e[T]||{})[k]&&(i=(r[t[I]]||{})[n]||i),function(){return i.apply(e,arguments)}}var i={};O(n,function(e){i[e]=r(t,n,e)});for(var o=F(e),s=[];o&&!D(o)&&!z(s,o);)O(o,function(e){!i[e]&&B(o,e,!M)&&(i[e]=r(t,o,e))}),s.push(o),o=F(o);return i}(i,r,e,s)),o=!!M&&!!o[A],u=i,a=a,g=r,f=e,n=!1!==(o=o&&n?!!n[A]:o),_(u)||(o=g[T]=g[T]||{},p=o[a]=o[a]||{},!1!==o[k]&&(o[k]=!!n),O(g,function(e){var n,r,i;B(g,e,!1)&&g[e]!==f[e]&&(p[e]=g[e],delete g[e],V(u,e)&&(!u[e]||u[e][w])||(u[e]=(n=u,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&V(n,I)){var a=e[T]||{};if((i=(a[n[I]]||{})[t])||U("Missing ["+t+"] "+y),!i[C]&&!1!==a[k]){for(var o=!V(e,t),s=F(e),c=[];o&&s&&!D(s)&&!z(c,s);){var l=s[t];if(l){o=l===r;break}c.push(s),s=F(s)}try{o&&(e[t]=i),i[C]=1}catch(u){a[k]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?F(n)[e]:t)!==y&&U("["+e+"] is not a "+y),t)).apply(this,arguments)})[w]=1,i)))}))}j[P]={setInstFuncs:!0,useBaseInst:!0},(Cn=S=S||{})[Cn.CRITICAL=1]="CRITICAL",Cn[Cn.WARNING=2]="WARNING";var G={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104},K=l;function q(e){return o.toString.call(e)}function J(e){return e===undefined||typeof e===s}function H(e){return null===e||J(e)}function X(e){return!H(e)}function $(e){return typeof e===x}function Z(e){return typeof e===r}function Q(e,t){if(e)for(var n in e)u.call(e,n)&&t.call(e,n,e[n])}function Y(e,t){return!(!e||!t||!~e.indexOf(t))}function ee(e){return"[object Array]"===q(e)}function te(e){return"[object Error]"===q(e)}function ne(e){return"string"==typeof e}function re(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(a){}}function ie(e,t,n){var r=e.length,i=n||e,a=Array(r);try{for(var o=0;o<r;o++)o in e&&(a[o]=t.call(i,e[o],e))}catch(s){}return a}function ae(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function oe(){var e=Date;return e.now?e.now():(new e).getTime()}function se(e){return te(e)?e.name:""}function ce(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(e[t]=a=n)),a}function le(e){return!!e}var ue="window",ge="document",fe="location",pe="JSON",de="msie",me="trident/",he=null,ve=null,ye=!1;function Te(e){var t=g();return t&&t[e]?t[e]:e===ue&&we()?window:null}function we(){return typeof window===x&&window}function Ie(){return we()?window:Te(ue)}function Ce(){return typeof document===x&&document?document:Te(ge)}function xe(){return typeof navigator===x&&navigator?navigator:Te("navigator")}function Se(e){return e&&ye&&(e=Te("__mockLocation"))?e:typeof location===x&&location?location:Te(fe)}function ke(){return Te("performance")}function Pe(){return typeof JSON===x&&JSON||null!==Te(pe)}function be(){return Pe()?JSON||Te(pe):null}function Ne(){var e=xe();return!e||e.userAgent===ve&&null!==he||(e=((ve=e.userAgent)||"").toLowerCase(),he=Y(e,de)||Y(e,me)),he}function Ee(e){var t=Object[i].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Pe()&&(n=be().stringify(e)),t+n}function Ae(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Le=(Me.dataType="MessageData",Me);function Me(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e,e="",Pe()&&(e=be().stringify(r)),e=(t?" message:"+Ae(t):"")+(r?" props:"+Ae(e):""),this.message+=e}var Re=function Yn(n){this.identifier="DiagnosticLogger",this.queue=[];var i=0,o={};j(Yn,this,function(a){function e(e,t){return H(e=n[e])?t:e}H(n)&&(n={}),a.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},a.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},a.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},a.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},a.throwInternal=function(e,t,n,r,i){if(n=new Le(t,n,i=void 0!==i&&i,r),a.enableDebugExceptions())throw n;J(n.message)||(r=a.consoleLoggingLevel(),i?(i=+n.messageId,!o[i]&&r>=S.WARNING&&(a.warnToConsole(n.message),o[i]=!0)):r>=S.WARNING&&a.warnToConsole(n.message),a.logInternalMessage(e,n))},a.warnToConsole=function(e){var t,n=typeof console!==s?console:Te("console");n&&(t="log",Z(n[t=n.warn?"warn":t])&&n[t](e))},a.resetInternalMessageCount=function(){i=0,o={}},a.logInternalMessage=function(e,t){var n,r;i>=a.maxInternalMessageLimit()||(n=!0,r="AITR_"+t.messageId,o[r]?n=!1:o[r]=!0,n&&(e<=a.telemetryLoggingLevel()&&(a.queue.push(t),i++),i===a.maxInternalMessageLimit()&&(t=new Le(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),a.queue.push(t),a.warnToConsole(e))))}})},Ve=(_e.ParentContextKey="parent",_e.ChildrenContextKey="childEvts",_e);function _e(e,i,t){var r,a=this,o=!1;a.start=oe(),a.name=e,a.isAsync=t,a.isChildEvt=function(){return!1},Z(i)&&(o=function(e){if(K)try{var t={enumerable:!0,configurable:!0,get:function(){return!r&&Z(i)&&(r=i(),i=null),r}};return K(e,"payload",t),!0}catch(n){}return!1}(a)),a.getCtx=function(e){return e?(e===_e.ParentContextKey||e===_e.ChildrenContextKey?a:a.ctx||{})[e]:null},a.setCtx=function(e,t){e&&(e===_e.ParentContextKey?(a[e]||(a.isChildEvt=function(){return!0}),a[e]=t):e===_e.ChildrenContextKey?a[e]=t:(a.ctx=a.ctx||{})[e]=t)},a.complete=function(){var e=0,t=a.getCtx(_e.ChildrenContextKey);if(ee(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}a.time=oe()-a.start,a.exTime=a.time-e,a.complete=function(){},!o&&Z(i)&&(a.payload=i())}}var De="CoreUtils.doPerf";function Fe(e,t,n,r,i){if(e){var a=e;if(a=Z(a.getPerfMgr)?a.getPerfMgr():a){var o,s=void 0,e=a.getCtx(De);try{if(s=a.create(t(),r,i))return e&&s.setCtx&&(s.setCtx(Ve.ParentContextKey,e),e.getCtx&&e.setCtx&&((o=e.getCtx(Ve.ChildrenContextKey))||(o=[],e.setCtx(Ve.ChildrenContextKey,o)),o.push(s))),a.setCtx(De,s),n(s)}catch(c){s&&s.setCtx&&s.setCtx("exception",c)}finally{s&&a.fire(s),a.setCtx(De,e)}}}return n()}var Oe=function(i,t){var a=this,o=null,s=Z(i.processTelemetry),c=Z(i.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return i},a.getNext=function(){return o},a.setNext=function(e){o=e},a.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";Fe(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&s){a._hasRun=!0;try{r.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=o&&o._hasRun;o&&e||r.diagLog().throwInternal(S.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+Ee(t)),o&&!e&&o.processTelemetry(n,r)}}else o&&(a._hasRun=!0,o.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function Be(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var a=e[i];a&&Z(a.processTelemetry)&&(a=new Oe(a,t),n.push(a),r&&r.setNext(a),r=a)}return 0<n.length?n[0]:null}var Ue=function er(e,i,n,t){var r,a,o,s,c=this,l=null;null!==t&&(e&&Z(e.getPlugin)?l=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var a=e.getPlugin();!i&&a!==n||(i=!0,r.push(a)),e=e.getNext()}return i||r.push(n),Be(r,t)}(e,c,t||e.getPlugin()):t?(r=c,o=e,s=!1,(a=t)&&e&&(o=[],re(e,function(e){!s&&e!==a||(s=!0,o.push(e))})),a&&!s&&(o=o||[]).push(a),l=Be(o,r)):J(t)&&(l=Be(e,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Re(i)},c.getCfg=function(){return i},c.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),!i||(r=i.extensionConfig)&&e&&(n=r[e]),n||t},c.getConfig=function(e,t,n){var r;return void 0===n&&(n=!1),(e=c.getExtCfg(e,null))&&!H(e[t])?r=e[t]:i&&!H(i[t])&&(r=i[t]),H(r)?n:r},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(e){l=e},c.processNext=function(e){var t=l;t&&(l=t.getNext(),t.processTelemetry(e,c))},c.createNew=function(e,t){return new er((e=void 0===e?null:e)||l,i,n,t)}},ze="getPlugin",t=(We.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},We);function We(){var a=this,o=!1,s=null,c=null;a.core=null,a.diagLog=function(e){return a._getTelCtx(e).diagLog()},a.isInitialized=function(){return o},a.setInitialized=function(e){o=e},a.setNextPlugin=function(e){c=e},a.processNext=function(e,t){t?t.processNext(e):c&&Z(c.processTelemetry)&&c.processTelemetry(e,null)},a._getTelCtx=function(e){var t=e=void 0===e?null:e;return t||(e=s||new Ue(null,{},a.core),t=c&&c[ze]?e.createNew(null,c[ze]):e.createNew(null,c)),t},a._baseTelInit=function(e,t,n,r){e&&ce(e,"extensionConfig",[],null,H),!r&&t&&(r=t.getProcessTelContext().getNext());var i=c;c&&c[ze]&&(i=c[ze]()),a.core=t,s=new Ue(r,e,t,i),o=!0}}var je="toGMTString",Ge="toUTCString",Ke="cookie",qe="expires",Je="enabled",He="isCookieUseDisabled",Xe="disableCookiesUsage",$e="_ckMgr",Ze="",Qe=null,Ye=null,et=null,tt=Ce(),nt={},rt={};function it(e){return!e||e.isEnabled()}function at(e,i){var t,n,l=(ce(n=(t=e||rt).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,X,H),ce(n,"path",t.cookiePath||"/",null,H),H(n[Je])&&(e=void 0,J(t[He])||(e=!t[He]),J(t[Xe])||(e=!t[Xe]),n[Je]=e),n),u=l.path||"/",g=l.domain,r=!1!==l[Je],f={isEnabled:function(){var e=r&&ot(i),t=rt[$e];return e&&t&&f!==t?it(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var a,o,s,c=!1;return it(f)&&(a={},-1!=(s=(o=ae(t||Ze)).indexOf(";"))&&(o=ae(t.substring(0,s)),a=st(t.substring(1+s))),ce(a,"domain",r||g,le,J),H(n)||(s=Ne(),!J(a[qe])||0<(t=oe()+1e3*n)&&((r=new Date).setTime(t),ce(a,qe,ct(r,s?je:Ge)||ct(r,s?je:Ge)||Ze,le)),s||ce(a,"max-age",Ze+n,null,J)),(n=Se())&&"https:"===n.protocol&&(ce(a,"secure",null,null,J),(Ye=null===Ye?!(ne(n=(xe()||{}).userAgent)&&(Y(n,"CPU iPhone OS 12")||Y(n,"iPad; CPU OS 12")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&Y(n,"Version/")&&Y(n,"Safari")||Y(n,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,i=39;0<=i;i--){if(e[r]!=t[i])return;r--}return 1}}}(n,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Y(n,"Chrome/5")||Y(n,"Chrome/6")||Y(n,"UnrealEngine")&&!Y(n,"Chrome")||Y(n,"UCBrowser/12")||Y(n,"UCBrowser/11"))):Ye)&&ce(a,"SameSite","None",null,J)),ce(a,"path",i||u,null,J),(l.setCookie||ut)(e,lt(o,a)),c=!0),c},get:function(e){var t=Ze;return it(f)?(l.getCookie||function(e){var t,n=Ze;return tt&&(t=tt[Ke]||Ze,et!==t&&(nt=st(t),et=t),n=ae(nt[e]||Ze)),n})(e):t},del:function(e,t){return!!it(f)&&f.purge(e,t)},purge:function(e,t){var n,r=!1;return ot(i)&&((n={}).path=t||"/",n[qe]="Thu, 01 Jan 1970 00:00:01 GMT",Ne()||(n["max-age"]="0"),(l.delCookie||ut)(e,lt(Ze,n)),r=!0),r}};return f[$e]=f}function ot(e){if(null===Qe){Qe=!1;try{Qe=(tt||{})[Ke]!==undefined}catch(t){e&&e.throwInternal(S.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+se(t),{exception:Ee(t)})}}return Qe}function st(e){var n={};return e&&e.length&&re(ae(e).split(";"),function(e){var t;(e=ae(e||Ze))&&(-1==(t=e.indexOf("="))?n[e]=null:n[ae(e.substring(0,t))]=ae(e.substring(1+t)))}),n}function ct(e,t){return Z(e[t])?e[t]():null}function lt(e,t){var n=e||Ze;return Q(t,function(e,t){n+="; "+e+(H(t)?Ze:"="+t)}),n}function ut(e,t){tt&&(tt[Ke]=e+"="+t)}var gt=4294967296,ft=4294967295,pt=!1,dt=123456789,mt=987654321;function ht(e){var t,n=(n=Te("crypto")||Te("msCrypto"))&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&ft:Ne()?(pt||function(){try{var e=2147483647&oe();(t=(Math.random()*gt^e)+e)<0&&(t>>>=0),dt=123456789+t&ft,mt=987654321-t&ft,pt=!0}catch(n){}var t}(),t=((mt=36969*(65535&mt)+(mt>>16)&ft)<<16)+(65535&(dt=18e3*(65535&dt)+(dt>>16)&ft))>>>0&ft|0,(t>>>=0)&ft):Math.floor(gt*Math.random()|0);return e||(n>>>=0),n}function vt(e,t,n){var r,i,a=t.length,o=(t&&150<(t=ae(t.toString())).length&&(r=t.substring(0,150),e.throwInternal(S.WARNING,G.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),r||t);if(o.length!==a){for(var s=0,c=o;n[c]!==undefined;)s++,c=o.substring(0,147)+(i="00"+s).substr(i.length-3);o=c}return o}function yt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=ae(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(S.WARNING,G.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function Tt(e,t){return xt(e,t,2048,G.UrlTooLong)}function wt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(S.WARNING,G.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function It(r,e){var i;return e&&(i={},Q(e,function(e,t){if($(t)&&Pe())try{t=be().stringify(t)}catch(n){r.throwInternal(S.WARNING,G.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=yt(r,t,8192),e=vt(r,e,i),i[e]=t}),e=i),e}function Ct(n,e){var r;return e&&(r={},Q(e,function(e,t){e=vt(n,e,r),r[e]=t}),e=r),e}function xt(e,t,n,r){var i;return t&&(t=ae(t)).length>n&&(i=t.substring(0,n),e.throwInternal(S.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function St(e){var t,n=null;return Z(Event)?n=new Event(e):(t=Ce())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function kt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Pt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}var bt,Nt="not_specified",Et="iKey";(Cn=bt=bt||{})[Cn.LocalStorage=0]="LocalStorage",Cn[Cn.SessionStorage=1]="SessionStorage",(l=Gt=Gt||{})[l.AI=0]="AI",l[l.AI_AND_W3C=1]="AI_AND_W3C",l[l.W3C=2]="W3C";var At=undefined;function Lt(e){try{if(H(g()))return null;var t=new Date,n=Te(e===bt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(i){}return null}function Mt(){return Rt()?Lt(bt.SessionStorage):null}function Rt(){return At=At===undefined?!!Lt(bt.SessionStorage):At}function Vt(e,t){var n=Mt();if(null!==n)try{return n.getItem(t)}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+se(r),{exception:Ee(r)})}return null}function _t(e,t,n){var r=Mt();if(null!==r)try{return r.setItem(t,n),1}catch(i){At=!1,e.throwInternal(S.WARNING,G.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+se(i),{exception:Ee(i)})}}function Dt(e,t){var n=Mt();if(null!==n)try{return n.removeItem(t),1}catch(r){At=!1,e.throwInternal(S.WARNING,G.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+se(r),{exception:Ee(r)})}}var Ft=Ce()||{},Ot=0,Bt=[null,null,null,null,null];function Ut(e,t){return 0===e||0===t||H(e)||H(t)?null:t-e}var zt,Wt=(m(jt,zt=Cn=function(){this.ver=2,this.properties={},this.measurements={}}),jt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",jt.dataType="EventData",jt);function jt(e,t,n,r){var i=zt.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=yt(e,t)||Nt,i.properties=It(e,n),i.measurements=Ct(e,r),i}var Gt=function(){},l=function(){this.hasFullStack=!0,this.parsedStack=[]},Kt="error",qt="stack",Jt="stackDetails",Ht="errorSrc",Xt="message",$t="description";function Zt(e,t){var n=e;return n&&!ne(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=Z(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Qt(e,t){var n=e;return e&&((n=n&&!ne(n)&&(e[Xt]||e[$t])||n)&&!ne(n)&&(n=Zt(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Yt(e){return e&&e.src&&ne(e.src)&&e.obj&&ee(e.obj)}function en(e){var t=e||"",e=(t=ne(t)?t:ne(t[qt])?t[qt]:""+t).split("\n");return{src:t,obj:e}}function tn(e){var t,n=null;if(e)try{e[qt]?n=en(e[qt]):e[Kt]&&e[Kt][qt]?n=en(e[Kt][qt]):e.exception&&e.exception[qt]?n=en(e.exception[qt]):Yt(e)?n=e:Yt(e[Jt])?n=e[Jt]:window.opera&&e[Xt]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message):ne(e)?n=en(e):(t=e[Xt]||e[$t]||"",ne(e[Ht])&&(t&&(t+="\n"),t+=" from "+e[Ht]),t&&(n=en(t)))}catch(r){n=en(r)}return n||{src:"",obj:null}}function nn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function rn(e){if(e)try{if(!ne(e)){var t=nn(e),n=Zt(e,!1);return n&&"{}"!==n||(e[Kt]&&(t=nn(e=e[Kt])),n=Zt(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var an,on=(m(sn,an=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),sn.CreateAutoException=function(e,t,n,r,i,a,o,s){var c=nn(i||a||e);return{message:Qt(e,c),url:t,lineNumber:n,columnNumber:r,error:rn(i||a||e),evt:rn(a||e),typeName:c,stackDetails:tn(o||i||a),errorSrc:s}},sn.CreateFromInterface=function(t,e,n,r){var i=e.exceptions&&ie(e.exceptions,function(e){return ln.CreateFromInterface(t,e)});return new sn(t,p(p({},e),{exceptions:i}),n,r)},sn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var i=this.problemGroup,a=this.id,o=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&ie(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:i,id:a,isManual:o}},sn.CreateSimpleException=function(e,t,n,r,i,a){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},sn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",sn.dataType="ExceptionData",sn.formatError=rn,sn);function sn(e,t,n,r,i,a){var o=an.call(this)||this;return o.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if($(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}}(t)?(o.exceptions=t.exceptions,o.properties=t.properties,o.measurements=t.measurements,t.severityLevel&&(o.severityLevel=t.severityLevel),t.id&&(o.id=t.id),t.problemGroup&&(o.problemGroup=t.problemGroup),o.ver=2,H(t.isManual)||(o.isManual=t.isManual)):(o.exceptions=[new ln(e,t,n=n||{})],o.properties=It(e,n),o.measurements=Ct(e,r),i&&(o.severityLevel=i),a&&(o.id=a)),o}var cn,ln=(m(un,cn=l),un.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&ie(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[qt],parsedStack:e||undefined}},un.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&ie(t.parsedStack,function(e){return fn.CreateFromInterface(e)})||t.parsedStack;return new un(e,p(p({},t),{parsedStack:n}))},un);function un(e,t,n){var r,l,i,a,o=cn.call(this)||this;return o.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if($(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}}(t)?(o.typeName=t.typeName,o.message=t.message,o[qt]=t[qt],o.parsedStack=t.parsedStack,o.hasFullStack=t.hasFullStack):(l=(r=t)&&r.evt,te(r)||(r=r[Kt]||l||r),o.typeName=yt(e,nn(r))||Nt,o.message=wt(e,Qt(t||r,o.typeName))||Nt,l=t[Jt]||tn(t),o.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(re(e,function(e){e=e.toString(),fn.regex.test(e)&&(e=new fn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var i=0,a=t.length-1,o=0,s=i,c=a;i<a;){if(32768<(o+=t[i].sizeInBytes+t[a].sizeInBytes)){t.splice(s,c-s+1);break}s=i,c=a,i++,a--}}return t}(),o[qt]=(r=e,a="",(e=l)&&(e.obj?re(e.obj,function(e){a+=e+"\n"}):a=e.src||""),!(l=a)||32768<(e=""+l).length&&(i=e.substring(0,32768),r.throwInternal(S.WARNING,G.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:l},!0)),i||l),o.hasFullStack=ee(o.parsedStack)&&0<o.parsedStack.length,n&&(n.typeName=n.typeName||o.typeName)),o}var gn,fn=(m(pn,gn=Gt),pn.CreateFromInterface=function(e){return new pn(e,null)},pn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},pn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,pn.baseSize=58,pn);function pn(e,t){var n,r=gn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method="<no_method>",r.assembly=ae(n),r.fileName="",r.line=0,(n=n.match(pn.regex))&&5<=n.length&&(r.method=ae(n[2])||r.method,r.fileName=ae(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=pn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var dn,l=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Gt=dn={})[Gt.Measurement=0]="Measurement",Gt[Gt.Aggregation=1]="Aggregation";var mn,hn=(m(vn,mn=function(){this.kind=dn.Measurement}),vn);function vn(){var e=null!==mn&&mn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var yn,Tn=(m(wn,yn=l),wn.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",wn.dataType="MetricData",wn);function wn(e,t,n,r,i,a,o,s){var c=yn.call(this)||this;c.aiDataContract={ver:1,metrics:1,properties:0};var l=new hn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(i)||null===i?undefined:i,l.name=yt(e,t)||Nt,l.value=n,c.metrics=[l],c.properties=It(e,o),c.measurements=Ct(e,s),c}var In,Cn=(m(xn,In=Cn),xn);function xn(){var e=In.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Sn,kn=(m(Pn,Sn=Cn),Pn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Pn.dataType="PageviewData",Pn);function Pn(e,t,n,r,i,a,o){var s=Sn.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=o&&xt(e,o,128,G.IdTooLong).toString(),s.url=Tt(e,n),s.name=yt(e,t)||Nt,isNaN(r)||(s.duration=Pt(r)),s.properties=It(e,i),s.measurements=Ct(e,a),s}var bn,Nn=(m(En,bn=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),En.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",En.dataType="RemoteDependencyData",En);function En(e,t,n,r,i,a,o,s,c,l,u,g){void 0===c&&(c="Ajax");var f=bn.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Pt(i),f.success=a,f.resultCode=o+"",f.type=yt(e,c);var p,d,m,h,v,y,T,w,I,C,o=(p=e,t=s,o=a=i=r,a=(c=n)&&0<c.length?(d=c,C=(I=Bt)[w=Ot],Ft.createElement?I[w]||(C=I[w]=Ft.createElement("a")):C={host:(y=!0,T=null,!(v=m=d)||null!=(v=v.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<v.length&&ne(v[2])&&0<v[2].length&&(T=v[2]||"",y&&2<v.length&&(y=(v[1]||"").toLowerCase(),v=v[3]||"",T+=v="http"==y&&":80"===v||"https"==y&&":443"===v?"":v)),(m=T||"")&&null!=(h=m.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<h.length&&ne(h[2])&&0<h[2].length?h[2]+(h[3]||""):m)},C.href=d,++w>=I.length&&(w=0),Ot=w,C=(s=C).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),o=s.pathname,yt(p,t?t+" "+n:n)):yt(p,c))):C=i,{target:C,name:a,data:o});return f.data=Tt(e,r)||o.data,f.target=yt(e,o.target),l&&(f.target=f.target+" | "+l),f.name=yt(e,o.name),f.properties=It(e,u),f.measurements=Ct(e,g),f}var An,Ln=(m(Mn,An=function(){this.ver=2,this.properties={},this.measurements={}}),Mn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",Mn.dataType="MessageData",Mn);function Mn(e,t,n,r,i){var a=An.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=wt(e,t=t||Nt),a.properties=It(e,r),a.measurements=Ct(e,i),n&&(a.severityLevel=n),a}var Rn,Cn=(m(Vn,Rn=Cn),Vn);function Vn(){var e=Rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var _n,Dn,Fn=(m(On,_n=Cn),On.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",On.dataType="PageviewPerformanceData",On);function On(e,t,n,r,i,a,o){var s=_n.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=Tt(e,n),s.name=yt(e,t)||Nt,s.properties=It(e,i),s.measurements=Ct(e,a),o&&(s.domProcessing=o.domProcessing,s.duration=o.duration,s.networkConnect=o.networkConnect,s.perfTotal=o.perfTotal,s.receivedResponse=o.receivedResponse,s.sentRequest=o.sentRequest),s}(Cn=Dn=Dn||{})[Cn.Verbose=0]="Verbose",Cn[Cn.Information=1]="Information",Cn[Cn.Warning=2]="Warning",Cn[Cn.Error=3]="Error",Cn[Cn.Critical=4]="Critical";var Bn=(Un.create=function(e,t,n,r,i,a){if(n=yt(r,n)||Nt,H(e)||H(t)||H(n))throw Error("Input doesn't contain all required fields");r="",e[Et]&&(r=e[Et],delete e[Et]);var o={name:n,time:function(e){if("[object Date]"===q(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(new Date),iKey:r,ext:a||{},tags:[],data:{},baseType:t,baseData:e};return H(i)||Q(i,function(e,t){o.data[e]=t}),o},Un);function Un(){}var zn=function tr(d,m,t,h){j(tr,this,function(e){var u,n=null,g=[],f=!1;function p(){t&&re(t.getTransmissionControls(),function(e){re(e,function(e){return e.flush(!0)})})}t&&(u=t.logger),e.trackPageView=function(r,i){var a=r.name;!H(a)&&"string"==typeof a||(e=Ce(),a=r.name=e&&e.title||"");var e,o=r.uri;if(!H(o)&&"string"==typeof o||(e=Se(),o=r.uri=e&&e.href||""),!h.isPerformanceTimingSupported())return d.sendPageViewInternal(r,i),p(),void u.throwInternal(S.WARNING,G.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,t,c=!1,l=h.getPerformanceTiming().navigationStart;0<l&&(s=Ut(l,+new Date),h.shouldCollectDuration(s)||(s=undefined)),H(i)||H(i.duration)||(t=i.duration),!m&&isNaN(t)||(isNaN(t)&&((i=i||{}).duration=s),d.sendPageViewInternal(r,i),p(),c=!0),i=i||{},t=function(){var e,t=!1;try{h.isPerformanceTimingDataReady()?(t=!0,e={name:a,uri:o},h.populatePageViewPerformanceEvent(e),e.isValid||c?(c||(i.duration=e.durationMs,d.sendPageViewInternal(r,i)),f||(d.sendPageViewPerformanceInternal(e,i),f=!0)):(i.duration=s,d.sendPageViewInternal(r,i))):0<l&&6e4<Ut(l,+new Date)&&(t=!0,c||(i.duration=6e4,d.sendPageViewInternal(r,i)))}catch(n){u.throwInternal(S.CRITICAL,G.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+se(n),{exception:Ee(n)})}return t},g.push(t),n=n||setInterval(function(){var e=g.slice(0),t=!1;g=[],re(e,function(e){e()?t=!0:g.push(e)}),0===g.length&&(clearInterval(n),n=null),t&&p()},100)}})},Wn=(jn.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Ee(r))}},jn.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+Ee(r)),null}},jn.prototype.startPageVisitTimer=function(e,t){try{var n,r;Rt()&&(null!=Vt(this._logger,this.prevPageVisitDataKeyName)&&function(){throw Error("Cannot call startPageVisit consecutively without first calling stopPageVisit")}(),n=new Gn(e,t),r=be().stringify(n),_t(this._logger,this.prevPageVisitDataKeyName,r))}catch(i){this._logger.warnToConsole("Call to start failed: "+Ee(i))}},jn.prototype.stopPageVisitTimer=function(){try{if(Rt()){var e=oe(),t=Vt(this._logger,this.prevPageVisitDataKeyName);if(t&&Pe()){var n=be().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Dt(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+Ee(r)),null}},jn);function jn(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}var Gn=function(e,t){this.pageVisitStartTime=oe(),this.pageName=e,this.pageUrl=t},Kn=(qn.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming(),r=0,i=0,a=0,o=0;(t||n)&&(n=t?(r=t.duration,i=0===t.startTime?t.connectEnd:Ut(t.startTime,t.connectEnd),a=Ut(t.requestStart,t.responseStart),o=Ut(t.responseStart,t.responseEnd),Ut(t.responseEnd,t.loadEventEnd)):(r=Ut(n.navigationStart,n.loadEventEnd),i=Ut(n.navigationStart,n.connectEnd),a=Ut(n.requestStart,n.responseStart),o=Ut(n.responseStart,n.responseEnd),Ut(n.responseEnd,n.loadEventEnd)),0===r?this._logger.throwInternal(S.WARNING,G.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:a,response:o,dom:n}):this.shouldCollectDuration(r,i,a,o,n)?r<Math.floor(i)+Math.floor(a)+Math.floor(o)+Math.floor(n)?this._logger.throwInternal(S.WARNING,G.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:a,response:o,dom:n}):(e.durationMs=r,e.perfTotal=e.duration=Pt(r),e.networkConnect=Pt(i),e.sentRequest=Pt(a),e.receivedResponse=Pt(o),e.domProcessing=Pt(n),e.isValid=!0):this._logger.throwInternal(S.WARNING,G.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:a,response:o,dom:n}))},qn.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?ke().timing:null},qn.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?ke().getEntriesByType("navigation")[0]:null},qn.prototype.isPerformanceNavigationTimingSupported=function(){var e=ke();return e&&e.getEntriesByType&&0<e.getEntriesByType("navigation").length},qn.prototype.isPerformanceTimingSupported=function(){var e=ke();return e&&e.timing},qn.prototype.isPerformanceTimingDataReady=function(){var e=ke();return(e=e?e.timing:0)&&0<e.domainLookupStart&&0<e.navigationStart&&0<e.responseStart&&0<e.requestStart&&0<e.loadEventEnd&&0<e.responseEnd&&0<e.connectEnd&&0<e.domLoading},qn.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=(xe()||{}).userAgent,i=!1;if(r)for(var a=0;a<n.length;a++)i=i||!!~r.toLowerCase().indexOf(n[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},qn);function qn(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}var Jn="duration",Hn="event";function Xn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var $n,t=(m(Zn,$n=t),Zn.getDefaultConfig=function(e){return(e=e||{}).sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=kt(e.disableExceptionTracking),e.autoTrackPageVisitTime=kt(e.autoTrackPageVisitTime),e.overridePageViewDuration=kt(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=kt(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||100<=e.samplingPercentage)&&(e.samplingPercentage=100),e.isStorageUseDisabled=kt(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=kt(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=kt(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=kt(e.enableDebug),e.disableFlushOnBeforeUnload=kt(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=kt(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},Zn.Version="2.7.1-nightly.202110-03",Zn);function Zn(){var v,y,T,w,I,C=$n.call(this)||this;return C.identifier="ApplicationInsightsAnalytics",C.priority=180,C.autoRoutePVDelay=500,j(Zn,C,function(m,h){var e=Se(!0);w=e&&e.href||"",m.getCookieMgr=function(){return(e=m.core)?n=e.getCookieMgr():t&&(n=t.cookieCfg[$e]||at(t)),n||(r=t,t=(e||{}).logger,(e=at[$e]||rt[$e])||(e=at[$e]=at(r,t),rt[$e]=e),n=e),n;var e,t,n,r},m.processTelemetry=function(a,o){Fe(m.core,function(){return m.identifier+":processTelemetry"},function(){var e=!1,t=m._telemetryInitializers.length;o=m._getTelCtx(o);for(var n=0;n<t;++n){var r=m._telemetryInitializers[n];if(r)try{if(!1===r.call(null,a)){e=!0;break}}catch(i){o.diagLog().throwInternal(S.CRITICAL,G.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+se(i),{exception:Ee(i)},!0)}}e||m.processNext(a,o)},function(){return{item:a}},!a.sync)},m.trackEvent=function(e,t){try{var n=Bn.create(e,Wt.dataType,Wt.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.startTrackEvent=function(e){try{v.start(e)}catch(t){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+se(t),{exception:Ee(t)})}},m.stopTrackEvent=function(e,t,n){try{v.stop(e,undefined,t)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+se(r),{exception:Ee(r)})}},m.trackTrace=function(e,t){try{var n=Bn.create(e,Ln.dataType,Ln.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.WARNING,G.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+se(r),{exception:Ee(r)})}},m.trackMetric=function(e,t){try{var n=Bn.create(e,Tn.dataType,Tn.envelopeType,m.diagLog(),t);m.core.track(n)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+se(r),{exception:Ee(r)})}},m.trackPageView=function(e,t){try{var n=e||{};m._pageViewManager.trackPageView(n,p(p(p({},n.properties),n.measurements),t)),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(r){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageView failed, page view will not be collected: "+se(r),{exception:Ee(r)})}},m.sendPageViewInternal=function(e,t,n){var r=Ce();r&&(e.refUri=e.refUri===undefined?r.referrer:e.refUri),n=Bn.create(e,kn.dataType,kn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.sendPageViewPerformanceInternal=function(e,t,n){n=Bn.create(e,Fn.dataType,Fn.envelopeType,m.diagLog(),t,n),m.core.track(n)},m.trackPageViewPerformance=function(e,t){try{m._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),m.sendPageViewPerformanceInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+se(n),{exception:Ee(n)})}},m.startTrackPage=function(e){try{var t;"string"!=typeof e&&(e=(t=Ce())&&t.title||""),y.start(e)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+se(n),{exception:Ee(n)})}},m.stopTrackPage=function(e,t,n,r){try{var i,a;"string"!=typeof e&&(e=(i=Ce())&&i.title||""),"string"!=typeof t&&(t=(a=Se())&&a.href||""),y.stop(e,t,n,r),m.config.autoTrackPageVisitTime&&m._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(o){m.diagLog().throwInternal(S.CRITICAL,G.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+se(o),{exception:Ee(o)})}},m.sendExceptionInternal=function(e,t,n){var r=e.exception||e.error||Error(Nt),e=new on(m.diagLog(),r,e.properties||t,e.measurements,e.severityLevel,e.id).toInterface(),n=Bn.create(e,on.dataType,on.envelopeType,m.diagLog(),t,n);m.core.track(n)},m.trackException=function(e,t){try{m.sendExceptionInternal(e,t)}catch(n){m.diagLog().throwInternal(S.CRITICAL,G.TrackExceptionFailed,"trackException failed, exception will not be collected: "+se(n),{exception:Ee(n)})}},m._onerror=function(e){var t,n,r,i=e&&e.error,a=e&&e.evt;try{a||(t=Ie())&&(a=t[Hn]);var o=e&&e.url||(Ce()||{}).URL,s=e.errorSrc||"window.onerror@"+o+":"+(e.lineNumber||0)+":"+(e.columnNumber||0),c={errorSrc:s,url:o,lineNumber:e.lineNumber||0,columnNumber:e.columnNumber||0,message:e.message},l=e.message;e.url,e.lineNumber,e.columnNumber,e.error||!ne(l)||"Script error."!==l&&"Script error"!==l?(e.errorSrc||(e.errorSrc=s),m.trackException({exception:e,severityLevel:Dn.Error},c)):(n=on.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,e.lineNumber||0,e.columnNumber||0,i,a,null,s),r=c,r=Bn.create(n,on.dataType,on.envelopeType,m.diagLog(),r),m.core.track(r))}catch(u){i=i?i.name+", "+i.message:"null",m.diagLog().throwInternal(S.CRITICAL,G.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+se(u),{exception:Ee(u),errorString:i})}},m.addTelemetryInitializer=function(e){m._telemetryInitializers.push(e)},m.initialize=function(e,t,n,r){if(!m.isInitialized()){if(H(t))throw Error("Error initializing");h.initialize(e,t,n,r),m.setInitialized(!1);var i=m._getTelCtx(),a=m.identifier;m.config=i.getExtCfg(a),(t=Zn.getDefaultConfig(e))!==undefined&&Q(t,function(e,t){m.config[e]=i.getConfig(a,e,t),m.config[e]===undefined&&(m.config[e]=t)}),m.config.isStorageUseDisabled&&(At=!1),r={instrumentationKey:function(){return e.instrumentationKey},accountId:function(){return m.config.accountId||e.accountId},sessionRenewalMs:function(){return m.config.sessionRenewalMs||e.sessionRenewalMs},sessionExpirationMs:function(){return m.config.sessionExpirationMs||e.sessionExpirationMs},sampleRate:function(){return m.config.samplingPercentage||e.samplingPercentage},sdkExtension:function(){return m.config.sdkExtension||e.sdkExtension},isBrowserLinkTrackingEnabled:function(){return m.config.isBrowserLinkTrackingEnabled||e.isBrowserLinkTrackingEnabled},appId:function(){return m.config.appId||e.appId}},m._pageViewPerformanceManager=new Kn(m.core),m._pageViewManager=new zn(C,m.config.overridePageViewDuration,m.core,m._pageViewPerformanceManager),m._pageVisitTimeManager=new Wn(m.diagLog(),function(e,t,n){m.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},t={PageName:e,PageUrl:t})}),m._telemetryInitializers=m._telemetryInitializers||[],r.isBrowserLinkTrackingEnabled()||(d=["/browserLinkSignalR/","/__browserLink/"],m._telemetryInitializers.push(function(e){if(e.baseType===Nn.dataType){var t=e.baseData;if(t)for(var n=0;n<d.length;n++)if(t.target&&~t.target.indexOf(d[n]))return!1}return!0})),(v=new Qn(m.diagLog(),"trackEvent")).action=function(e,t,n,r){(r=r||{})[Jn]=n.toString(),m.trackEvent({name:e,properties:r})},(y=new Qn(m.diagLog(),"trackPageView")).action=function(e,t,n,r,i){(r=H(r)?{}:r)[Jn]=n.toString(),m.sendPageViewInternal({name:e,uri:t,properties:r,measurements:i},r)};var s,o,c,l,u,g=Ie(),t=typeof history===x&&history?history:Te("history"),f=Se(!0),p=C;!1===m.config.disableExceptionTracking&&!m.config.autoExceptionInstrumented&&g&&(s=g.onerror,g.onerror=function(e,t,n,r,i){var a=g[Hn],o=s&&s(e,t,n,r,i);return!0!==o&&p._onerror(on.CreateAutoException(e,t,n,r,i,a)),o},m.config.autoExceptionInstrumented=!0),!1===m.config.disableExceptionTracking&&!0===m.config.enableUnhandledPromiseRejectionTracking&&!m.config.autoUnhandledPromiseInstrumented&&g&&(o=g[r="onunhandledrejection"],g[r]=function(e){var t=g[Hn],n=o&&o.call(g,e);return!0!==n&&p._onerror(on.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!ne(t)&&Z(t.toString)?t.toString():Ee(t)}return e||""}(e),f?f.href:"",0,0,e,t)),n},m.config.autoUnhandledPromiseInstrumented=!0),!0===m.config.enableAutoRouteTracking&&t&&Z(t.pushState)&&Z(t.replaceState)&&g&&"undefined"!=typeof Event&&(c=C,re(n,function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(T=e)}),t.pushState=(u=t.pushState,function(){var e=u.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"pushState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),t.replaceState=(l=t.replaceState,function(){var e=l.apply(this,arguments);return Xn(g,St(c.config.namePrefix+"replaceState")),Xn(g,St(c.config.namePrefix+"locationchange")),e}),g.addEventListener&&(g.addEventListener(c.config.namePrefix+"popstate",function(){Xn(g,St(c.config.namePrefix+"locationchange"))}),g.addEventListener(c.config.namePrefix+"locationchange",function(){var e;T&&T.context&&T.context.telemetryTrace&&(T.context.telemetryTrace.traceID=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=ht())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&ht())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}(),e="_unknown_",f&&f.pathname&&(e=f.pathname+(f.hash||"")),T.context.telemetryTrace.name=e),I&&(w=I),I=f&&f.href||"",setTimeout((function(e){c.trackPageView({refUri:e,properties:{duration:0}})}).bind(C,w),c.autoRoutePVDelay)}))),m.setInitialized(!0)}var d}}),C}var Qn=function(a,e){var o=this,s={};o.start=function(e){"undefined"!=typeof s[e]&&a.throwInternal(S.WARNING,G.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:e,key:e},!0),s[e]=+new Date},o.stop=function(e,t,n,r){var i=s[e];isNaN(i)?a.throwInternal(S.WARNING,G.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:e,key:e},!0):(i=Ut(i,+new Date),o.action(e,t,i,n,r)),delete s[e],s[e]=undefined}};e.ApplicationInsights=t,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(i){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{})); | ||
//# sourceMappingURL=applicationinsights-analytics-js.min.js.map |
/* | ||
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-02 | ||
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.1-nightly.202110-03 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ * |
{ | ||
"name": "@microsoft/applicationinsights-analytics-js", | ||
"version": "2.7.1-nightly.202110-02", | ||
"version": "2.7.1-nightly.202110-03", | ||
"description": "Microsoft Application Insights JavaScript SDK - Web Analytics", | ||
@@ -29,4 +29,4 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", | ||
"@microsoft/applicationinsights-rollup-es3": "1.1.3", | ||
"@microsoft/applicationinsights-properties-js": "2.7.1-nightly.202110-02", | ||
"@microsoft/applicationinsights-channel-js": "2.7.1-nightly.202110-02", | ||
"@microsoft/applicationinsights-properties-js": "2.7.1-nightly.202110-03", | ||
"@microsoft/applicationinsights-channel-js": "2.7.1-nightly.202110-03", | ||
"@microsoft/api-extractor": "^7.18.1", | ||
@@ -58,4 +58,4 @@ "typescript": "^4.3.4", | ||
"@microsoft/applicationinsights-shims": "2.0.0", | ||
"@microsoft/applicationinsights-core-js": "2.7.1-nightly.202110-02", | ||
"@microsoft/applicationinsights-common": "2.7.1-nightly.202110-02" | ||
"@microsoft/applicationinsights-core-js": "2.7.1-nightly.202110-03", | ||
"@microsoft/applicationinsights-common": "2.7.1-nightly.202110-03" | ||
}, | ||
@@ -62,0 +62,0 @@ "license": "MIT", |
@@ -57,3 +57,3 @@ /** | ||
export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal { | ||
public static Version = "2.7.1-nightly.202110-02"; // Not currently used anywhere | ||
public static Version = "2.7.1-nightly.202110-03"; // Not currently used anywhere | ||
@@ -60,0 +60,0 @@ public static getDefaultConfig(config?: IConfig): IConfig { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
+ Added@microsoft/applicationinsights-common@2.7.1-nightly.202110-03(transitive)
+ Added@microsoft/applicationinsights-core-js@2.7.1-nightly.202110-03(transitive)
- Removed@microsoft/applicationinsights-common@2.7.1-nightly.202110-02(transitive)
- Removed@microsoft/applicationinsights-core-js@2.7.1-nightly.202110-02(transitive)
Updated@microsoft/applicationinsights-common@2.7.1-nightly.202110-03
Updated@microsoft/applicationinsights-core-js@2.7.1-nightly.202110-03