@microsoft/applicationinsights-react-js 3.2.5 → 3.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.2.5
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.6
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var e=this,t=function(e,a){"use strict";function O(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function j(o){if(o&&o.__esModule)return o;var e,a=(e=Object.create)?e(null):{};return o&&Object.keys(o).forEach(function(e){if("default"!==e){var t=(t=Object.getOwnPropertyDescriptor)?t(o,e):undefined,n=a,r=e,t=t.get?t:{enumerable:!0,get:function(){return o[e]}},i=Object.defineProperty;if(i)try{return void i(n,r,t)}catch(o){}t&&typeof t.value!==undefined&&(n[r]=t.value)}var t}),a["default"]=o,a}var D=j(a),U=O(a),B="function",p="object",i="undefined",r="prototype",V="hasOwnProperty",n=Object,z=n[r],t=n.assign,K=n.create,o=n.defineProperty,l=z[V],s=null;function W(e){return void 0===e&&(e=!0),s&&e||(typeof globalThis!==i&&globalThis&&(s=globalThis),typeof self!==i&&self&&(s=self),typeof window!==i&&window&&(s=window),typeof global!==i&&global&&(s=global)),s}function G(e){throw new TypeError(e)}function H(e){if(K)return K(e);if(null==e)return{};var t=typeof e;function n(){}return t!==p&&t!==B&&G("Object prototype may only be an Object:"+e),n[r]=e,new n}(W()||{}).Symbol,(W()||{}).Reflect;var q=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])z[V].call(t,i)&&(e[i]=t[i]);return e},J=function(e,t){return(J=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[V](n)&&(e[n]=t[n])})(e,t)};function X(e,t){function n(){this.constructor=e}typeof t!==B&&null!==t&&G("Class extends value "+t+" is not a constructor or null"),J(e,t),e[r]=null===t?H(t):(n[r]=t[r],new n)}var Y="constructor",g="prototype",Z="function",$="_dynInstFuncs",Q="_isDynProxy",m="_dynClass",ee="_dynInstChk",v=ee,te="_dfOpts",ne="_dynProto",re="_unknown_",ie="__proto__",oe="useBaseInst",ae="setInstFuncs",le=Object,h=le.getPrototypeOf,se=0;function y(e,t){return e&&le[g].hasOwnProperty.call(e,t)}function ue(e){return e&&(e===le[g]||e===Array[g])}function ce(e){return ue(e)||e===Function[g]}function T(e){if(e){if(h)return h(e);var t=e[ne]||e[ie]||e[g]||(e[Y]?e[Y][g]:null);if(t)return e[ne]||(e[ne]=t),t}return null}function fe(e,t){var n=[],r=le.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&y(e,i)&&n.push(i);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function de(e,t,n){return t!==Y&&typeof e[t]===Z&&(n||y(e,t))}function pe(e){throw new TypeError("DynamicProto: "+e)}function ge(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function me(e,t){return y(e,g)?e.name||t||re:((e||{})[Y]||{}).name||t||re}function ve(e,r,t,n){y(e,g)||pe("theClass is an invalid class definition.");var i,o,a,l,s,u,c=e[g],f=(function(e){if(!h)return 1;for(var t=[],n=T(r);n&&!ce(n)&&!ge(t,n);){if(n===e)return 1;t.push(n),n=T(n)}}(c)||pe("["+me(e)+"] is not in class hierarchy of ["+me(r)+"]"),null),e=(y(c,m)?f=c[m]:(f="_dynCls$"+me(e,"_")+"$"+se,se++,c[m]=f),ve[te]),d=!!e[oe],p=(d&&n&&n[oe]!==undefined&&(d=!!n[oe]),o={},fe(i=r,function(e){!o[e]&&de(i,e,!1)&&(o[e]=i[e])}),o),d=(t(r,function(e,t,n,o){function r(e,t,n){var r,i=t[n];return i[Q]&&o&&!1!==(r=e[$]||{})[v]&&(i=(r[t[m]]||{})[n]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(fe(n,function(e){i[e]=r(t,n,e)}),T(e)),l=[];a&&!ce(a)&&!ge(l,a);)fe(a,function(e){!i[e]&&de(a,e,!h)&&(i[e]=r(t,a,e))}),l.push(a),a=T(a);return i}(c,r,p,d)),!!h&&!!e[ae]);a=c,t=f,l=r,s=p,e=!1!==(d=d&&n?!!n[ae]:d),ue(a)||(c=l[$]=l[$]||{},u=c[t]=c[t]||{},!1!==c[v]&&(c[v]=!!e),fe(l,function(e){var n,r,i;de(l,e,!1)&&l[e]!==s[e]&&(u[e]=l[e],delete l[e],y(a,e)&&(!a[e]||a[e][Q])||(a[e]=(n=a,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&y(n,m)){var o=e[$]||{};if((i=(o[n[m]]||{})[t])||pe("Missing ["+t+"] "+Z),!i[ee]&&!1!==o[v]){for(var a=!y(e,t),l=T(e),s=[];a&&l&&!ce(l)&&!ge(s,l);){var u=l[t];if(u){a=u===r;break}s.push(l),l=T(l)}try{a&&(e[t]=i),i[ee]=1}catch(c){o[v]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?T(n)[e]:t)!==Z&&pe("["+e+"] is not a "+Z),t)).apply(this,arguments)})[Q]=1,i)))}))}ve[te]={setInstFuncs:!0,useBaseInst:!0},(t=u=u||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var u,c={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,InMemoryStorageBufferFull:105},he="attachEvent",ye="addEventListener",Te="toISOString",Ce="endsWith",xe="indexOf",Ie="trim",t="toString",Ae=o,we=n.keys,o=String[r],Se=o[Ie],_e=o[Ce],be=Date[r][Te],o=Array.isArray,Ee=z[t];function C(e){return e===undefined||typeof e===i}function x(e){return null===e||C(e)}function ke(e){return!x(e)}function f(e){return!(!e||typeof e!==B)}function Pe(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!x(e))try{x(e[ye])?x(e[he])||(e[he]("on"+t,n),i=!0):(e[ye](t,n,r),i=!0)}catch(o){}return i}function I(e,t){return!(!e||!t||!~e.indexOf(t))}l[t].call(n);var Me=o||function(e){return!(!e||"[object Array]"!==Ee.call(e))};function Le(e){return!(!e||"[object Error]"!==Ee.call(e))}function Fe(e){return"string"==typeof e}function Ne(e){return"boolean"==typeof e}function d(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(o){}}function Re(e,t,n){if(e){if(e[xe])return e[xe](t,n);var r=e.length,n=n||0;try{for(var i=Math.max(0<=n?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i}catch(o){}}return-1}function A(e){return e&&(Se&&e[Ie]?e[Ie]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Oe=!{toString:null}.propertyIsEnumerable("toString"),je=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function De(e,t,n,r){if(Ae)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Ae(e,t,i),!0}catch(o){}return!1}function w(){var e=Date;return e.now?e.now():(new e).getTime()}function S(e,t,n,r,i){var o=n;!e||(o=e[t])===n||i&&!i(o)||r&&!r(n)||(e[t]=o=n)}function Ue(e){return!!e}var Be="window",Ve="navigator",ze="location",Ke="JSON",We="crypto",Ge="msCrypto",He="msie",qe="trident/",Je=null,Xe=null;function _(e){var t=W();return t&&t[e]?t[e]:e===Be&&Ye()?window:null}function Ye(){return typeof window===p&&window}function Ze(){return typeof document===p&&document?document:_("document")}function $e(){return typeof navigator===p&&navigator?navigator:_(Ve)}function Qe(){return typeof JSON===p&&JSON||null!==_(Ke)}function et(){return Qe()?JSON||_(Ke):null}function tt(){var e=$e();return!e||e.userAgent===Xe&&null!==Je||(e=((Xe=e.userAgent)||"").toLowerCase(),Je=I(e,He)||I(e,qe)),Je}function nt(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Qe()&&(n=et().stringify(e)),t+n}var rt=null;function it(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function ot(e,t){var n,r=typeof console!==i?console:_("console");r&&(n="log",f(r[n=r[e]?e:n])&&r[n](t))}lt.dataType="MessageData";var at=lt;function lt(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n="",Qe()&&(n=et().stringify(r)),e=(t?" message:"+it(t):"")+(r?" props:"+it(n):"");this.message+=e}var st=function Qt(i){this.identifier="DiagnosticLogger",this.queue=[];var l=0,s={};ve(Qt,this,function(o){function e(e,t){e=i[e];return x(e)?t:e}function a(e,t){var n,r=(n=(n=rt)||!0===i.disableDbgExt?n:rt||(r=_("Microsoft"),rt=r?r.ApplicationInsights:rt))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}x(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){t=new at(t,n,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw nt(t);n=e===u.CRITICAL?"errorToConsole":"warnToConsole";C(t.message)?a("throw"+(e===u.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!s[i]&&e<=r&&(o[n](t.message),s[i]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){ot("warn",e),a("warning",e)},o.errorToConsole=function(e){ot("error",e),a("error",e)},o.resetInternalMessageCount=function(){l=0,s={}},o.logInternalMessage=function(e,t){var n,r;l>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,s[n]?r=!1:s[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),l++,a(e===u.CRITICAL?"error":"warn",t)),l===o.maxInternalMessageLimit()&&(r=new at(c.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===u.CRITICAL?o.errorToConsole(n):o.warnToConsole(n))))}})},ut=(b.ParentContextKey="parent",b.ChildrenContextKey="childEvts",b);function b(e,i,t){var n,o=this,a=!1;o.start=w(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},f(i)&&(a=De(o,"payload",function(){return!n&&f(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===b.ParentContextKey||e===b.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===b.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===b.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(b.ChildrenContextKey);if(Me(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=w()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var ct="CoreUtils.doPerf";function ft(e,t,n,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,l=e.getCtx(ct);try{if(a=e.create(t(),r,i))return l&&a.setCtx&&(a.setCtx(ut.ParentContextKey,l),l.getCtx&&l.setCtx&&((o=l.getCtx(ut.ChildrenContextKey))||(o=[],l.setCtx(ut.ChildrenContextKey,o)),o.push(a))),e.setCtx(ct,a),n(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(ct,l)}}n()}var dt=function(i,t){var o=this,a=null,l=f(i.processTelemetry),s=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";ft(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&l){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(u.CRITICAL,c.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+nt(t)),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function pt(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new dt(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var gt=function en(e,i,n,t){var r,o,a,l,s=this,u=null;null!==t&&(e&&f(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),pt(r,t)}(e,s,t||e.getPlugin()):t?(r=s,a=e,l=!1,(o=t)&&e&&(a=[],d(e,function(e){!l&&e!==o||(l=!0,a.push(e))})),o&&!l&&(a=a||[]).push(o),u=pt(a,r)):C(t)&&(u=pt(e,s))),s.core=function(){return n},s.diagLog=function(){return(n||{}).logger||new st(i)},s.getCfg=function(){return i},s.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),(n=i&&(r=i.extensionConfig)&&e?r[e]:n)||t},s.getConfig=function(e,t,n){void 0===n&&(n=!1);var r,e=s.getExtCfg(e,null);return e&&!x(e[t])?r=e[t]:i&&!x(i[t])&&(r=i[t]),x(r)?n:r},s.hasNext=function(){return null!=u},s.getNext=function(){return u},s.setNext=function(e){u=e},s.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,s))},s.createNew=function(e,t){return new en((e=void 0===e?null:e)||u,i,n,t)}},mt="getPlugin";function vt(){var o=this,a=!1,l=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,t){t?t.processNext(e):s&&f(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var t,e=e=void 0===e?null:e;return e||(t=l||new gt(null,{},o.core),e=s&&s[mt]?t.createNew(null,s[mt]):t.createNew(null,s)),e},o._baseTelInit=function(e,t,n,r){e&&S(e,"extensionConfig",[],null,x),!r&&t&&(r=t.getProcessTelContext().getNext());var i=s;s&&s[mt]&&(i=s[mt]()),o.core=t,l=new gt(r,e,t,i),a=!0}}vt.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};var ht="toGMTString",yt="toUTCString",Tt="cookie",Ct="expires",xt="enabled",It="isCookieUseDisabled",At="disableCookiesUsage",E="_ckMgr",k="",wt=null,St=null,_t=null,P=Ze(),bt={},Et={};function kt(e,t){var n=Mt[E]||Et[E];return n||(n=Mt[E]=Mt(e,t),Et[E]=n),n}function Pt(e){return!e||e.isEnabled()}function Mt(e,i){S(n=(e=e||Et).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,ke,x),S(n,"path",e.cookiePath||"/",null,x),x(n[xt])&&(t=void 0,C(e[It])||(t=!e[It]),C(e[At])||(t=!e[At]),n[xt]=t);var t,n,u=n,c=u.path||"/",f=u.domain,r=!1!==u[xt],d={isEnabled:function(){var e=r&&Lt(i),t=Et[E];return e&&t&&d!==t?Pt(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var o,a,l,s=!1;return Pt(d)&&(o={},-1!=(l=(a=A(t||k)).indexOf(";"))&&(a=A(t.substring(0,l)),o=Ft(t.substring(1+l))),S(o,"domain",r||f,Ue,C),x(n)||(l=tt(),C(o[Ct])&&0<(t=w()+1e3*n)&&((r=new Date).setTime(t),S(o,Ct,Nt(r,l?ht:yt)||Nt(r,l?ht:yt)||k,Ue)),l||S(o,"max-age",k+n,null,C)),(t=typeof location===p&&location?location:_(ze))&&"https:"===t.protocol&&(S(o,"secure",null,null,C),(St=null===St?!(Fe(r=($e()||{}).userAgent)&&(I(r,"CPU iPhone OS 12")||I(r,"iPad; CPU OS 12")||I(r,"Macintosh; Intel Mac OS X 10_14")&&I(r,"Version/")&&I(r,"Safari")||I(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){var n=!1;if(!e||(n=e===t))return n;if(_e)return e[Ce](t);var r=e,i=t,n=!1,e=r?r.length:0;if(e&&40<=e&&!(n=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}n=!0}return n}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||I(r,"Chrome/5")||I(r,"Chrome/6")||I(r,"UnrealEngine")&&!I(r,"Chrome")||I(r,"UCBrowser/12")||I(r,"UCBrowser/11"))):St)&&S(o,"SameSite","None",null,C)),S(o,"path",i||c,null,C),(u.setCookie||Ot)(e,Rt(a,o)),s=!0),s},get:function(e){var t=k;return Pt(d)?(u.getCookie||function(e){var t,n=k;return P&&(t=P[Tt]||k,_t!==t&&(bt=Ft(t),_t=t),n=A(bt[e]||k)),n})(e):t},del:function(e,t){return!!Pt(d)&&d.purge(e,t)},purge:function(e,t){var n,r=!1;return Lt(i)&&((n={}).path=t||"/",n[Ct]="Thu, 01 Jan 1970 00:00:01 GMT",t=n,tt()||(t["max-age"]="0"),(u.delCookie||Ot)(e,Rt(k,t)),r=!0),r}};return d[E]=d}function Lt(e){if(null===wt){wt=!1;try{wt=(P||{})[Tt]!==undefined}catch(n){e&&e.throwInternal(u.WARNING,c.CannotAccessCookie,"Cannot access document.cookie - "+(Le(t=n)?t.name:""),{exception:nt(n)})}}var t;return wt}function Ft(e){var n={};return e&&e.length&&d(A(e).split(";"),function(e){var t;(e=A(e||k))&&(-1==(t=e.indexOf("="))?n[e]=null:n[A(e.substring(0,t))]=A(e.substring(1+t)))}),n}function Nt(e,t){return f(e[t])?e[t]():null}function Rt(e,t){var n,r=e||k,i=t;if(i)for(var o in i)l.call(i,o)&&(n=o,o=i[o],r+="; "+n+(x(o)?k:"="+o));return r}function Ot(e,t){P&&(P[Tt]=e+"="+t)}var jt=4294967296,M=4294967295,Dt=!1,Ut=123456789,Bt=987654321;function Vt(e){e<0&&(e>>>=0),Ut=123456789+e&M,Bt=987654321-e&M,Dt=!0}function zt(){try{var e=2147483647&w();Vt((Math.random()*jt^e)+e)}catch(t){}}function Kt(e){return 0<e?Math.floor(L()/M*(e+1))>>>0:0}function L(e){var t=_(We)||_(Ge),t=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&M:tt()?(Dt||zt(),Wt()&M):Math.floor(jt*Math.random()|0);return e||(t>>>=0),t}function Wt(e){var t=((Bt=36969*(65535&Bt)+(Bt>>16)&M)<<16)+(65535&(Ut=18e3*(65535&Ut)+(Ut>>16)&M))>>>0&M|0;return e||(t>>>=0),t}var F,Gt,Ht=null,N={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:C,isNullOrUndefined:x,hasOwnProperty:function(e,t){return!(!e||!l.call(e,t))},isFunction:f,isObject:function(e){return!(!e||typeof e!==p)},isDate:function(e){return!(!e||"[object Date]"!==Ee.call(e))},isArray:Me,isError:Le,isString:Fe,isNumber:function(e){return"number"==typeof e},isBoolean:Ne,toISOString:function(e){if(e){if(be)return e[Te]();var t;return e&&e.getUTCFullYear?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},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"):void 0}},arrForEach:d,arrIndexOf:Re,arrMap:function(e,t,n){if(e){if(e.map)return e.map(t,n);var r=e.length,i=n||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e))}catch(l){}}return o},arrReduce:function(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r},strTrim:A,objCreate:H,objKeys:function(e){var t=typeof e;if(t===B||t===p&&null!==e||G("objKeys called on non-object"),!Oe&&we)return we(e);var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(Oe)for(var i=je.length,o=0;o<i;o++)e&&l.call(e,je[o])&&r.push(je[o]);return r},objDefineAccessors:De,addEventHandler:function(e,t){var n=!1,r=Ye()?window:_(Be),r=(r&&(n=Pe(r,e,t),n=Pe(r.body,e,t)||n),Ze());return r&&Pe(r,e,t)||n},dateNow:w,isIE:tt,disableCookies:function(){var e=kt(void 0,void 0),t=N._canUseCookies;null===Ht&&(Ht=[],F=t,De(N,"_canUseCookies",function(){return F},function(t){F=t,d(Ht,function(e){e.setEnabled(t)})})),-1===Re(Ht,e)&&Ht.push(e),Ne(t)&&e.setEnabled(t),Ne(F)&&e.setEnabled(F),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(qt,function(e){var t=0|Kt(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=_("performance");return e&&e.now?e.now():w()},newId:function(e){void 0===e&&(e=22);for(var t=L()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(L()<<2&4294967295|3&t)>>>0,n=0);return r},randomValue:Kt,random32:L,mwcRandomSeed:function(e){e?Vt(e):zt()},mwcRandom32:Wt,generateW3CId: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=L())]+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&L())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}},qt=/[xy]/g;function R(){var e=null!==Gt&&Gt.apply(this,arguments)||this;return e.priority=185,e.identifier="ReactPlugin",e}X(R,Gt=vt),R.prototype.initialize=function(e,t,n,r){var i=this;Gt.prototype.initialize.call(this,e,t,n,r),this._extensionConfig=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{history:null},d(n,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(i._analyticsPlugin=e)}),this._extensionConfig.history&&(this.addHistoryListener(this._extensionConfig.history),t={uri:this._extensionConfig.history.location.pathname},this.trackPageView(t))},R.prototype.getCookieMgr=function(){return(t=(e=this.core)?e.getCookieMgr():t)||kt(void 0,(e||{}).logger);var e,t},R.prototype.getAppInsights=function(){return this._analyticsPlugin},R.prototype.processTelemetry=function(e,t){this.processNext(e,t)},R.prototype.trackMetric=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackMetric(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackPageView=function(e){this._analyticsPlugin?this._analyticsPlugin.trackPageView(e):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackEvent=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackEvent(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackException=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackException(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackTrace=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackTrace(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.addHistoryListener=function(e){var n=this;e.listen(function(e){var t="location"in e?e.location:e;setTimeout(function(){var e={uri:t.pathname};n.trackPageView(e)},500)})};var Jt,Xt,t=R;function Yt(){var e=null!==Jt&&Jt.apply(this,arguments)||this;return e.state={hasError:!1},e}Xt=3,X(Yt,Jt=U["default"].Component),Yt.prototype.componentDidCatch=function(e,t){this.setState({hasError:!0}),this.props.appInsights.trackException({error:e,exception:e,severityLevel:Xt,properties:t})},Yt.prototype.render=function(){var e;return this.state.hasError?(e=this.props.onError,U["default"].createElement(e)):this.props.children};var o=Yt,Zt=a.createContext(undefined),o=(e.AppInsightsContext=Zt,e.AppInsightsErrorBoundary=o,e.ReactPlugin=t,e.useAppInsightsContext=function(){return a.useContext(Zt)},e.useTrackEvent=function(e,t,n,r){void 0===r&&(r=!0);var n=a.useState(n),i=n[0],n=n[1],o=a.useRef(r);return a.useEffect(function(){o.current?o.current=!1:e.trackEvent({name:t},i)},[e,i,t]),n},e.useTrackMetric=function(n,r){var i=a.useRef({hookTimestamp:w(),firstActiveTimestamp:0,totalIdleTime:0,lastActiveTimestamp:0,idleStartTimestamp:0,idleCount:0,idleTimeout:5e3}),e=a.useRef();return e.current=function(){var e=i.current;0<e.lastActiveTimestamp&&0===e.idleStartTimestamp&&w()-e.lastActiveTimestamp>=e.idleTimeout&&(e.idleStartTimestamp=w(),e.idleCount++)},a.useEffect(function(){var t=setInterval(e.current,100);return function(){clearInterval(t);var e=i.current;if(0===e.hookTimestamp)throw Error("useAppInsights:unload hook: hookTimestamp is not initialized.");0!==e.firstActiveTimestamp&&(e=e,e=(w()-e.firstActiveTimestamp-e.totalIdleTime-e.idleCount*e.idleTimeout)/1e3,n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},{"Component Name":r}))}},[]),function(){var e,t=i.current;0===t.firstActiveTimestamp?(t.firstActiveTimestamp=w(),t.lastActiveTimestamp=t.firstActiveTimestamp):t.lastActiveTimestamp=w(),0<t.idleStartTimestamp&&(e=t.lastActiveTimestamp-t.idleStartTimestamp,t.totalIdleTime+=e,t.idleStartTimestamp=0)}},e.withAITracking=function(n,e,r,t){return r!==undefined&&null!==r&&"string"==typeof r||(r=e.prototype&&e.prototype.constructor&&e.prototype.constructor.name||"Unknown"),t!==undefined&&null!==t&&"string"==typeof t||(t=""),X(i,o=D.Component),i.prototype.componentDidMount=function(){var e=this;this._mountTimestamp=N.dateNow(),this._firstActiveTimestamp=0,this._totalIdleTime=0,this._lastActiveTimestamp=0,this._idleStartTimestamp=0,this._idleCount=0,this._intervalId=setInterval(function(){0<e._lastActiveTimestamp&&0===e._idleStartTimestamp&&N.dateNow()-e._lastActiveTimestamp>=e._idleTimeout&&(e._idleStartTimestamp=N.dateNow(),e._idleCount++)},100)},i.prototype.componentWillUnmount=function(){if(0===this._mountTimestamp)throw Error("withAITracking:componentWillUnmount: mountTimestamp is not initialized.");var e,t;this._intervalId&&clearInterval(this._intervalId),0!==this._firstActiveTimestamp&&(e=this.getEngagementTimeSeconds(),t={"Component Name":r},n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},t))},i.prototype.render=function(){return D.createElement("div",{onKeyDown:this.trackActivity,onMouseMove:this.trackActivity,onScroll:this.trackActivity,onMouseDown:this.trackActivity,onTouchStart:this.trackActivity,onTouchMove:this.trackActivity,className:t},D.createElement(e,q({},this.props)))},i.prototype.getEngagementTimeSeconds=function(){return(N.dateNow()-this._firstActiveTimestamp-this._totalIdleTime-this._idleCount*this._idleTimeout)/1e3},i;function i(){var n=null!==o&&o.apply(this,arguments)||this;return n._mountTimestamp=0,n._firstActiveTimestamp=0,n._idleStartTimestamp=0,n._lastActiveTimestamp=0,n._totalIdleTime=0,n._idleCount=0,n._idleTimeout=5e3,n.trackActivity=function(e){var t;0===n._firstActiveTimestamp?(n._firstActiveTimestamp=N.dateNow(),n._lastActiveTimestamp=n._firstActiveTimestamp):n._lastActiveTimestamp=N.dateNow(),0<n._idleStartTimestamp&&(t=n._lastActiveTimestamp-n._idleStartTimestamp,n._totalIdleTime+=t,n._idleStartTimestamp=0)},n}var o},e),t="__esModule",e={value:!0},$t=Object.defineProperty;if($t)try{return void $t(o,t,e)}catch(tn){}typeof e.value!==undefined&&(o[t]=e.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.React);
5
+ var e=this,t=function(e,a){"use strict";function O(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function j(o){if(o&&o.__esModule)return o;var e,a=(e=Object.create)?e(null):{};return o&&Object.keys(o).forEach(function(e){if("default"!==e){var t=(t=Object.getOwnPropertyDescriptor)?t(o,e):undefined,n=a,r=e,t=t.get?t:{enumerable:!0,get:function(){return o[e]}},i=Object.defineProperty;if(i)try{return void i(n,r,t)}catch(o){}t&&typeof t.value!==undefined&&(n[r]=t.value)}var t}),a["default"]=o,a}var D=j(a),U=O(a),B="function",p="object",i="undefined",r="prototype",V="hasOwnProperty",n=Object,z=n[r],t=n.assign,K=n.create,o=n.defineProperty,l=z[V],s=null;function W(e){return void 0===e&&(e=!0),s&&e||(typeof globalThis!==i&&globalThis&&(s=globalThis),typeof self!==i&&self&&(s=self),typeof window!==i&&window&&(s=window),typeof global!==i&&global&&(s=global)),s}function G(e){throw new TypeError(e)}function H(e){if(K)return K(e);if(null==e)return{};var t=typeof e;function n(){}return t!==p&&t!==B&&G("Object prototype may only be an Object:"+e),n[r]=e,new n}(W()||{}).Symbol,(W()||{}).Reflect;var q=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])z[V].call(t,i)&&(e[i]=t[i]);return e},J=function(e,t){return(J=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[V](n)&&(e[n]=t[n])})(e,t)};function X(e,t){function n(){this.constructor=e}typeof t!==B&&null!==t&&G("Class extends value "+t+" is not a constructor or null"),J(e,t),e[r]=null===t?H(t):(n[r]=t[r],new n)}var Y="constructor",g="prototype",Z="function",$="_dynInstFuncs",Q="_isDynProxy",m="_dynClass",ee="_dynInstChk",v=ee,te="_dfOpts",ne="_unknown_",re="__proto__",ie="_dyn"+re,oe="_dynInstProto",ae="useBaseInst",le="setInstFuncs",se=Object,h=se.getPrototypeOf,ue=se.getOwnPropertyNames,ce=0;function y(e,t){return e&&se[g].hasOwnProperty.call(e,t)}function fe(e){return e&&(e===se[g]||e===Array[g])}function de(e){return fe(e)||e===Function[g]}function T(e){if(e){if(h)return h(e);var t=e[re]||e[g]||(e[Y]?e[Y][g]:null),n=e[ie]||t;y(e,ie)||(delete e[oe],n=e[ie]=e[oe]||e[ie],e[oe]=t)}return n}function pe(e,t){var n=[];if(ue)n=ue(e);else for(var r in e)"string"==typeof r&&y(e,r)&&n.push(r);if(n&&0<n.length)for(var i=0;i<n.length;i++)t(n[i])}function ge(e,t,n){return t!==Y&&typeof e[t]===Z&&(n||y(e,t))}function me(e){throw new TypeError("DynamicProto: "+e)}function ve(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function he(e,t){return y(e,g)?e.name||t||ne:((e||{})[Y]||{}).name||t||ne}function ye(e,r,t,n){y(e,g)||me("theClass is an invalid class definition.");var i,o,a,l,s,u,c=e[g],f=(function(e){if(!h)return 1;for(var t=[],n=T(r);n&&!de(n)&&!ve(t,n);){if(n===e)return 1;t.push(n),n=T(n)}}(c)||me("["+he(e)+"] is not in class hierarchy of ["+he(r)+"]"),null),e=(y(c,m)?f=c[m]:(f="_dynCls$"+he(e,"_")+"$"+ce,ce++,c[m]=f),ye[te]),d=!!e[ae],p=(d&&n&&n[ae]!==undefined&&(d=!!n[ae]),o={},pe(i=r,function(e){!o[e]&&ge(i,e,!1)&&(o[e]=i[e])}),o),d=(t(r,function(e,t,n,o){function r(e,t,n){var r,i=t[n];return i[Q]&&o&&!1!==(r=e[$]||{})[v]&&(i=(r[t[m]]||{})[n]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(pe(n,function(e){i[e]=r(t,n,e)}),T(e)),l=[];a&&!de(a)&&!ve(l,a);)pe(a,function(e){!i[e]&&ge(a,e,!h)&&(i[e]=r(t,a,e))}),l.push(a),a=T(a);return i}(c,r,p,d)),!!h&&!!e[le]);a=c,t=f,l=r,s=p,e=!1!==(d=d&&n?!!n[le]:d),fe(a)||(c=l[$]=l[$]||{},u=c[t]=c[t]||{},!1!==c[v]&&(c[v]=!!e),pe(l,function(e){var n,r,i;ge(l,e,!1)&&l[e]!==s[e]&&(u[e]=l[e],delete l[e],y(a,e)&&(!a[e]||a[e][Q])||(a[e]=(n=a,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&y(n,m)){var o=e[$]||{};if((i=(o[n[m]]||{})[t])||me("Missing ["+t+"] "+Z),!i[ee]&&!1!==o[v]){for(var a=!y(e,t),l=T(e),s=[];a&&l&&!de(l)&&!ve(s,l);){var u=l[t];if(u){a=u===r;break}s.push(l),l=T(l)}try{a&&(e[t]=i),i[ee]=1}catch(c){o[v]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?T(n)[e]:t)!==Z&&me("["+e+"] is not a "+Z),t)).apply(this,arguments)})[Q]=1,i)))}))}ye[te]={setInstFuncs:!0,useBaseInst:!0},(t=u=u||{})[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING";var u,c={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,InMemoryStorageBufferFull:105},Te="attachEvent",Ce="addEventListener",xe="toISOString",Ie="endsWith",Ae="indexOf",we="trim",t="toString",_e=o,Se=n.keys,o=String[r],be=o[we],Ee=o[Ie],ke=Date[r][xe],o=Array.isArray,Pe=z[t];function C(e){return e===undefined||typeof e===i}function x(e){return null===e||C(e)}function Me(e){return!x(e)}function f(e){return!(!e||typeof e!==B)}function Le(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!x(e))try{x(e[Ce])?x(e[Te])||(e[Te]("on"+t,n),i=!0):(e[Ce](t,n,r),i=!0)}catch(o){}return i}function I(e,t){return!(!e||!t||!~e.indexOf(t))}l[t].call(n);var Fe=o||function(e){return!(!e||"[object Array]"!==Pe.call(e))};function Ne(e){return!(!e||"[object Error]"!==Pe.call(e))}function Re(e){return"string"==typeof e}function Oe(e){return"boolean"==typeof e}function d(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(o){}}function je(e,t,n){if(e){if(e[Ae])return e[Ae](t,n);var r=e.length,n=n||0;try{for(var i=Math.max(0<=n?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i}catch(o){}}return-1}function A(e){return e&&(be&&e[we]?e[we]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var De=!{toString:null}.propertyIsEnumerable("toString"),Ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Be(e,t,n,r){if(_e)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),_e(e,t,i),!0}catch(o){}return!1}function w(){var e=Date;return e.now?e.now():(new e).getTime()}function _(e,t,n,r,i){var o=n;!e||(o=e[t])===n||i&&!i(o)||r&&!r(n)||(e[t]=o=n)}function Ve(e){return!!e}var ze="window",Ke="navigator",We="location",Ge="JSON",He="crypto",qe="msCrypto",Je="msie",Xe="trident/",Ye=null,Ze=null;function S(e){var t=W();return t&&t[e]?t[e]:e===ze&&$e()?window:null}function $e(){return typeof window===p&&window}function Qe(){return typeof document===p&&document?document:S("document")}function et(){return typeof navigator===p&&navigator?navigator:S(Ke)}function tt(){return typeof JSON===p&&JSON||null!==S(Ge)}function nt(){return tt()?JSON||S(Ge):null}function rt(){var e=et();return!e||e.userAgent===Ze&&null!==Ye||(e=((Ze=e.userAgent)||"").toLowerCase(),Ye=I(e,Je)||I(e,Xe)),Ye}function it(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":tt()&&(n=nt().stringify(e)),t+n}var ot=null;function at(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function lt(e,t){var n,r=typeof console!==i?console:S("console");r&&(n="log",f(r[n=r[e]?e:n])&&r[n](t))}ut.dataType="MessageData";var st=ut;function ut(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n="",tt()&&(n=nt().stringify(r)),e=(t?" message:"+at(t):"")+(r?" props:"+at(n):"");this.message+=e}var ct=function tn(i){this.identifier="DiagnosticLogger",this.queue=[];var l=0,s={};ye(tn,this,function(o){function e(e,t){e=i[e];return x(e)?t:e}function a(e,t){var n,r=(n=(n=ot)||!0===i.disableDbgExt?n:ot||(r=S("Microsoft"),ot=r?r.ApplicationInsights:ot))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}x(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){t=new st(t,n,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw it(t);n=e===u.CRITICAL?"errorToConsole":"warnToConsole";C(t.message)?a("throw"+(e===u.CRITICAL?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!s[i]&&e<=r&&(o[n](t.message),s[i]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){lt("warn",e),a("warning",e)},o.errorToConsole=function(e){lt("error",e),a("error",e)},o.resetInternalMessageCount=function(){l=0,s={}},o.logInternalMessage=function(e,t){var n,r;l>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,s[n]?r=!1:s[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),l++,a(e===u.CRITICAL?"error":"warn",t)),l===o.maxInternalMessageLimit()&&(r=new st(c.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===u.CRITICAL?o.errorToConsole(n):o.warnToConsole(n))))}})},ft=(b.ParentContextKey="parent",b.ChildrenContextKey="childEvts",b);function b(e,i,t){var n,o=this,a=!1;o.start=w(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},f(i)&&(a=Be(o,"payload",function(){return!n&&f(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===b.ParentContextKey||e===b.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===b.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===b.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(b.ChildrenContextKey);if(Fe(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=w()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&f(i)&&(o.payload=i())}}var dt="CoreUtils.doPerf";function pt(e,t,n,r,i){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,l=e.getCtx(dt);try{if(a=e.create(t(),r,i))return l&&a.setCtx&&(a.setCtx(ft.ParentContextKey,l),l.getCtx&&l.setCtx&&((o=l.getCtx(ft.ChildrenContextKey))||(o=[],l.setCtx(ft.ChildrenContextKey,o)),o.push(a))),e.setCtx(dt,a),n(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(dt,l)}}n()}var gt=function(i,t){var o=this,a=null,l=f(i.processTelemetry),s=f(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(n,r){r=r||t;var e=i?i.identifier:"TelemetryPluginChain";pt(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&l){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(n,r)}catch(t){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(u.CRITICAL,c.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+it(t)),a&&!e&&a.processTelemetry(n,r)}}else a&&(o._hasRun=!0,a.processTelemetry(n,r))},function(){return{item:n}},!n.sync)}};function mt(e,t){var n=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&f(o.processTelemetry)&&(o=new gt(o,t),n.push(o),r&&r.setNext(o),r=o)}return 0<n.length?n[0]:null}var vt=function nn(e,i,n,t){var r,o,a,l,s=this,u=null;null!==t&&(e&&f(e.getPlugin)?u=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();!i&&o!==n||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),mt(r,t)}(e,s,t||e.getPlugin()):t?(r=s,a=e,l=!1,(o=t)&&e&&(a=[],d(e,function(e){!l&&e!==o||(l=!0,a.push(e))})),o&&!l&&(a=a||[]).push(o),u=mt(a,r)):C(t)&&(u=mt(e,s))),s.core=function(){return n},s.diagLog=function(){return(n||{}).logger||new ct(i)},s.getCfg=function(){return i},s.getExtCfg=function(e,t){var n,r;return void 0===t&&(t={}),(n=i&&(r=i.extensionConfig)&&e?r[e]:n)||t},s.getConfig=function(e,t,n){void 0===n&&(n=!1);var r,e=s.getExtCfg(e,null);return e&&!x(e[t])?r=e[t]:i&&!x(i[t])&&(r=i[t]),x(r)?n:r},s.hasNext=function(){return null!=u},s.getNext=function(){return u},s.setNext=function(e){u=e},s.processNext=function(e){var t=u;t&&(u=t.getNext(),t.processTelemetry(e,s))},s.createNew=function(e,t){return new nn((e=void 0===e?null:e)||u,i,n,t)}},ht="getPlugin";function yt(){var o=this,a=!1,l=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,t){t?t.processNext(e):s&&f(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var t,e=e=void 0===e?null:e;return e||(t=l||new vt(null,{},o.core),e=s&&s[ht]?t.createNew(null,s[ht]):t.createNew(null,s)),e},o._baseTelInit=function(e,t,n,r){e&&_(e,"extensionConfig",[],null,x),!r&&t&&(r=t.getProcessTelContext().getNext());var i=s;s&&s[ht]&&(i=s[ht]()),o.core=t,l=new vt(r,e,t,i),a=!0}}yt.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)};var Tt="toGMTString",Ct="toUTCString",xt="cookie",It="expires",At="enabled",wt="isCookieUseDisabled",_t="disableCookiesUsage",E="_ckMgr",k="",St=null,bt=null,Et=null,P=Qe(),kt={},Pt={};function Mt(e,t){var n=Ft[E]||Pt[E];return n||(n=Ft[E]=Ft(e,t),Pt[E]=n),n}function Lt(e){return!e||e.isEnabled()}function Ft(e,i){_(n=(e=e||Pt).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Me,x),_(n,"path",e.cookiePath||"/",null,x),x(n[At])&&(t=void 0,C(e[wt])||(t=!e[wt]),C(e[_t])||(t=!e[_t]),n[At]=t);var t,n,u=n,c=u.path||"/",f=u.domain,r=!1!==u[At],d={isEnabled:function(){var e=r&&Nt(i),t=Pt[E];return e&&t&&d!==t?Lt(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var o,a,l,s=!1;return Lt(d)&&(o={},-1!=(l=(a=A(t||k)).indexOf(";"))&&(a=A(t.substring(0,l)),o=Rt(t.substring(1+l))),_(o,"domain",r||f,Ve,C),x(n)||(l=rt(),C(o[It])&&0<(t=w()+1e3*n)&&((r=new Date).setTime(t),_(o,It,Ot(r,l?Tt:Ct)||Ot(r,l?Tt:Ct)||k,Ve)),l||_(o,"max-age",k+n,null,C)),(t=typeof location===p&&location?location:S(We))&&"https:"===t.protocol&&(_(o,"secure",null,null,C),(bt=null===bt?!(Re(r=(et()||{}).userAgent)&&(I(r,"CPU iPhone OS 12")||I(r,"iPad; CPU OS 12")||I(r,"Macintosh; Intel Mac OS X 10_14")&&I(r,"Version/")&&I(r,"Safari")||I(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){var n=!1;if(!e||(n=e===t))return n;if(Ee)return e[Ie](t);var r=e,i=t,n=!1,e=r?r.length:0;if(e&&40<=e&&!(n=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}n=!0}return n}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||I(r,"Chrome/5")||I(r,"Chrome/6")||I(r,"UnrealEngine")&&!I(r,"Chrome")||I(r,"UCBrowser/12")||I(r,"UCBrowser/11"))):bt)&&_(o,"SameSite","None",null,C)),_(o,"path",i||c,null,C),(u.setCookie||Dt)(e,jt(a,o)),s=!0),s},get:function(e){var t=k;return Lt(d)?(u.getCookie||function(e){var t,n=k;return P&&(t=P[xt]||k,Et!==t&&(kt=Rt(t),Et=t),n=A(kt[e]||k)),n})(e):t},del:function(e,t){return!!Lt(d)&&d.purge(e,t)},purge:function(e,t){var n,r=!1;return Nt(i)&&((n={}).path=t||"/",n[It]="Thu, 01 Jan 1970 00:00:01 GMT",t=n,rt()||(t["max-age"]="0"),(u.delCookie||Dt)(e,jt(k,t)),r=!0),r}};return d[E]=d}function Nt(e){if(null===St){St=!1;try{St=(P||{})[xt]!==undefined}catch(n){e&&e.throwInternal(u.WARNING,c.CannotAccessCookie,"Cannot access document.cookie - "+(Ne(t=n)?t.name:""),{exception:it(n)})}}var t;return St}function Rt(e){var n={};return e&&e.length&&d(A(e).split(";"),function(e){var t;(e=A(e||k))&&(-1==(t=e.indexOf("="))?n[e]=null:n[A(e.substring(0,t))]=A(e.substring(1+t)))}),n}function Ot(e,t){return f(e[t])?e[t]():null}function jt(e,t){var n,r=e||k,i=t;if(i)for(var o in i)l.call(i,o)&&(n=o,o=i[o],r+="; "+n+(x(o)?k:"="+o));return r}function Dt(e,t){P&&(P[xt]=e+"="+t)}var Ut=4294967296,M=4294967295,Bt=!1,Vt=123456789,zt=987654321;function Kt(e){e<0&&(e>>>=0),Vt=123456789+e&M,zt=987654321-e&M,Bt=!0}function Wt(){try{var e=2147483647&w();Kt((Math.random()*Ut^e)+e)}catch(t){}}function Gt(e){return 0<e?Math.floor(L()/M*(e+1))>>>0:0}function L(e){var t=S(He)||S(qe),t=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&M:rt()?(Bt||Wt(),Ht()&M):Math.floor(Ut*Math.random()|0);return e||(t>>>=0),t}function Ht(e){var t=((zt=36969*(65535&zt)+(zt>>16)&M)<<16)+(65535&(Vt=18e3*(65535&Vt)+(Vt>>16)&M))>>>0&M|0;return e||(t>>>=0),t}var F,qt,Jt=null,N={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:C,isNullOrUndefined:x,hasOwnProperty:function(e,t){return!(!e||!l.call(e,t))},isFunction:f,isObject:function(e){return!(!e||typeof e!==p)},isDate:function(e){return!(!e||"[object Date]"!==Pe.call(e))},isArray:Fe,isError:Ne,isString:Re,isNumber:function(e){return"number"==typeof e},isBoolean:Oe,toISOString:function(e){if(e){if(ke)return e[xe]();var t;return e&&e.getUTCFullYear?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},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"):void 0}},arrForEach:d,arrIndexOf:je,arrMap:function(e,t,n){if(e){if(e.map)return e.map(t,n);var r=e.length,i=n||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e))}catch(l){}}return o},arrReduce:function(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r},strTrim:A,objCreate:H,objKeys:function(e){var t=typeof e;if(t===B||t===p&&null!==e||G("objKeys called on non-object"),!De&&Se)return Se(e);var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(De)for(var i=Ue.length,o=0;o<i;o++)e&&l.call(e,Ue[o])&&r.push(Ue[o]);return r},objDefineAccessors:Be,addEventHandler:function(e,t){var n=!1,r=$e()?window:S(ze),r=(r&&(n=Le(r,e,t),n=Le(r.body,e,t)||n),Qe());return r&&Le(r,e,t)||n},dateNow:w,isIE:rt,disableCookies:function(){var e=Mt(void 0,void 0),t=N._canUseCookies;null===Jt&&(Jt=[],F=t,Be(N,"_canUseCookies",function(){return F},function(t){F=t,d(Jt,function(e){e.setEnabled(t)})})),-1===je(Jt,e)&&Jt.push(e),Oe(t)&&e.setEnabled(t),Oe(F)&&e.setEnabled(F),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Xt,function(e){var t=0|Gt(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=S("performance");return e&&e.now?e.now():w()},newId:function(e){void 0===e&&(e=22);for(var t=L()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(L()<<2&4294967295|3&t)>>>0,n=0);return r},randomValue:Gt,random32:L,mwcRandomSeed:function(e){e?Kt(e):Wt()},mwcRandom32:Ht,generateW3CId: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=L())]+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&L())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}},Xt=/[xy]/g;function R(){var e=null!==qt&&qt.apply(this,arguments)||this;return e.priority=185,e.identifier="ReactPlugin",e}X(R,qt=yt),R.prototype.initialize=function(e,t,n,r){var i=this;qt.prototype.initialize.call(this,e,t,n,r),this._extensionConfig=e.extensionConfig&&e.extensionConfig[this.identifier]?e.extensionConfig[this.identifier]:{history:null},d(n,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(i._analyticsPlugin=e)}),this._extensionConfig.history&&(this.addHistoryListener(this._extensionConfig.history),t={uri:this._extensionConfig.history.location.pathname},this.trackPageView(t))},R.prototype.getCookieMgr=function(){return(t=(e=this.core)?e.getCookieMgr():t)||Mt(void 0,(e||{}).logger);var e,t},R.prototype.getAppInsights=function(){return this._analyticsPlugin},R.prototype.processTelemetry=function(e,t){this.processNext(e,t)},R.prototype.trackMetric=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackMetric(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackPageView=function(e){this._analyticsPlugin?this._analyticsPlugin.trackPageView(e):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackEvent=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackEvent(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackException=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackException(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.trackTrace=function(e,t){this._analyticsPlugin?this._analyticsPlugin.trackTrace(e,t):this.diagLog().throwInternal(u.CRITICAL,c.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: ")},R.prototype.addHistoryListener=function(e){var n=this;e.listen(function(e){var t="location"in e?e.location:e;setTimeout(function(){var e={uri:t.pathname};n.trackPageView(e)},500)})};var Yt,Zt,t=R;function $t(){var e=null!==Yt&&Yt.apply(this,arguments)||this;return e.state={hasError:!1},e}Zt=3,X($t,Yt=U["default"].Component),$t.prototype.componentDidCatch=function(e,t){this.setState({hasError:!0}),this.props.appInsights.trackException({error:e,exception:e,severityLevel:Zt,properties:t})},$t.prototype.render=function(){var e;return this.state.hasError?(e=this.props.onError,U["default"].createElement(e)):this.props.children};var o=$t,Qt=a.createContext(undefined),o=(e.AppInsightsContext=Qt,e.AppInsightsErrorBoundary=o,e.ReactPlugin=t,e.useAppInsightsContext=function(){return a.useContext(Qt)},e.useTrackEvent=function(e,t,n,r){void 0===r&&(r=!0);var n=a.useState(n),i=n[0],n=n[1],o=a.useRef(r);return a.useEffect(function(){o.current?o.current=!1:e.trackEvent({name:t},i)},[e,i,t]),n},e.useTrackMetric=function(n,r){var i=a.useRef({hookTimestamp:w(),firstActiveTimestamp:0,totalIdleTime:0,lastActiveTimestamp:0,idleStartTimestamp:0,idleCount:0,idleTimeout:5e3}),e=a.useRef();return e.current=function(){var e=i.current;0<e.lastActiveTimestamp&&0===e.idleStartTimestamp&&w()-e.lastActiveTimestamp>=e.idleTimeout&&(e.idleStartTimestamp=w(),e.idleCount++)},a.useEffect(function(){var t=setInterval(e.current,100);return function(){clearInterval(t);var e=i.current;if(0===e.hookTimestamp)throw Error("useAppInsights:unload hook: hookTimestamp is not initialized.");0!==e.firstActiveTimestamp&&(e=e,e=(w()-e.firstActiveTimestamp-e.totalIdleTime-e.idleCount*e.idleTimeout)/1e3,n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},{"Component Name":r}))}},[]),function(){var e,t=i.current;0===t.firstActiveTimestamp?(t.firstActiveTimestamp=w(),t.lastActiveTimestamp=t.firstActiveTimestamp):t.lastActiveTimestamp=w(),0<t.idleStartTimestamp&&(e=t.lastActiveTimestamp-t.idleStartTimestamp,t.totalIdleTime+=e,t.idleStartTimestamp=0)}},e.withAITracking=function(n,e,r,t){return r!==undefined&&null!==r&&"string"==typeof r||(r=e.prototype&&e.prototype.constructor&&e.prototype.constructor.name||"Unknown"),t!==undefined&&null!==t&&"string"==typeof t||(t=""),X(i,o=D.Component),i.prototype.componentDidMount=function(){var e=this;this._mountTimestamp=N.dateNow(),this._firstActiveTimestamp=0,this._totalIdleTime=0,this._lastActiveTimestamp=0,this._idleStartTimestamp=0,this._idleCount=0,this._intervalId=setInterval(function(){0<e._lastActiveTimestamp&&0===e._idleStartTimestamp&&N.dateNow()-e._lastActiveTimestamp>=e._idleTimeout&&(e._idleStartTimestamp=N.dateNow(),e._idleCount++)},100)},i.prototype.componentWillUnmount=function(){if(0===this._mountTimestamp)throw Error("withAITracking:componentWillUnmount: mountTimestamp is not initialized.");var e,t;this._intervalId&&clearInterval(this._intervalId),0!==this._firstActiveTimestamp&&(e=this.getEngagementTimeSeconds(),t={"Component Name":r},n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},t))},i.prototype.render=function(){return D.createElement("div",{onKeyDown:this.trackActivity,onMouseMove:this.trackActivity,onScroll:this.trackActivity,onMouseDown:this.trackActivity,onTouchStart:this.trackActivity,onTouchMove:this.trackActivity,className:t},D.createElement(e,q({},this.props)))},i.prototype.getEngagementTimeSeconds=function(){return(N.dateNow()-this._firstActiveTimestamp-this._totalIdleTime-this._idleCount*this._idleTimeout)/1e3},i;function i(){var n=null!==o&&o.apply(this,arguments)||this;return n._mountTimestamp=0,n._firstActiveTimestamp=0,n._idleStartTimestamp=0,n._lastActiveTimestamp=0,n._totalIdleTime=0,n._idleCount=0,n._idleTimeout=5e3,n.trackActivity=function(e){var t;0===n._firstActiveTimestamp?(n._firstActiveTimestamp=N.dateNow(),n._lastActiveTimestamp=n._firstActiveTimestamp):n._lastActiveTimestamp=N.dateNow(),0<n._idleStartTimestamp&&(t=n._lastActiveTimestamp-n._idleStartTimestamp,n._totalIdleTime+=t,n._idleStartTimestamp=0)},n}var o},e),t="__esModule",e={value:!0},en=Object.defineProperty;if(en)try{return void en(o,t,e)}catch(rn){}typeof e.value!==undefined&&(o[t]=e.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.React);
6
6
  //# sourceMappingURL=applicationinsights-react-js.min.js.map