@microsoft/applicationinsights-core-js
Advanced tools
Comparing version 2.7.0 to 2.7.1-nightly.202110-02
{ | ||
"name": "applicationinsights-core-js", | ||
"version": "2.7.0", | ||
"version": "2.7.1-nightly.202110-02", | ||
"ext": { | ||
@@ -8,7 +8,7 @@ "@js": { | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-BxA957AfZbIOXmQIiJPi3uwJ8hSVRjPMLJqwniQfTiA= sha384-DNRC6kf3dZ1i06o+cKKhRkPQGbiNoVZpsjGK2O1im/B/p2tHPigCyoFYkqHHD7nM sha512-aMyL697aRjBCHDM4rE/AhV665Zy9A1qAAqvtE9IJaq1PQJKpVHRXmXqXgg3Jy4ux7SfSGUwVB4Ytr78pQoil9g==", | ||
"integrity": "sha256-p1Hv2YHGpkOmItMsb1G0dNkq4aj2pgTDhzHz1+I+sBc= sha384-0dozgnKyFLWb3e64G9GQm6nKMvKc2zdmDP8n9yU+1nH8xMkO2Oz/kP/EnqvKeH75 sha512-TOrZvYDyjpRJwEPpR2omTivbhz3vwW+ubWL8CWENuSDIWyUwy2CfsqL0+Cj8uFIODZyActu3ngFWZHtKOuiPgg==", | ||
"hashes": { | ||
"sha256": "BxA957AfZbIOXmQIiJPi3uwJ8hSVRjPMLJqwniQfTiA=", | ||
"sha384": "DNRC6kf3dZ1i06o+cKKhRkPQGbiNoVZpsjGK2O1im/B/p2tHPigCyoFYkqHHD7nM", | ||
"sha512": "aMyL697aRjBCHDM4rE/AhV665Zy9A1qAAqvtE9IJaq1PQJKpVHRXmXqXgg3Jy4ux7SfSGUwVB4Ytr78pQoil9g==" | ||
"sha256": "p1Hv2YHGpkOmItMsb1G0dNkq4aj2pgTDhzHz1+I+sBc=", | ||
"sha384": "0dozgnKyFLWb3e64G9GQm6nKMvKc2zdmDP8n9yU+1nH8xMkO2Oz/kP/EnqvKeH75", | ||
"sha512": "TOrZvYDyjpRJwEPpR2omTivbhz3vwW+ubWL8CWENuSDIWyUwy2CfsqL0+Cj8uFIODZyActu3ngFWZHtKOuiPgg==" | ||
} | ||
@@ -19,7 +19,7 @@ }, | ||
"type": "text/javascript; charset=utf-8", | ||
"integrity": "sha256-Sk2UiOForHdx/v75qL7U0+IplwleByBAM8Xp+y9Svb4= sha384-ICGQ7eK2L7OmXDPlxdd4S0N8S4teg6mbuPIBAz3dV7ydiq5cbmmCEo6v6oxPCvw+ sha512-iDyrKeNuylDnUM4m94F4xmDOHjKNZ15HGVvnF7cTswQupCmFRkNWusMqSc5WMvlymvl+5Thcgeyp5HDg0iuHRQ==", | ||
"integrity": "sha256-46oolVj+E5kb0eNP9B109JmFFseS8TOGnvX2DywmpXE= sha384-Ehs9Ey/JqlNtZZ9lXsbY0w+G5pyCpxLZzmJeqpzHfmhjqvkfMbV9CHAxyANRWzhB sha512-g01y3JGln5uyUkp+gvQWA5NcYC7lXRABnuVR8WBDKn5j3xlkSuzs1aVPIi/+b2VCJg9V7kRbcTutr7P+RgwWYg==", | ||
"hashes": { | ||
"sha256": "Sk2UiOForHdx/v75qL7U0+IplwleByBAM8Xp+y9Svb4=", | ||
"sha384": "ICGQ7eK2L7OmXDPlxdd4S0N8S4teg6mbuPIBAz3dV7ydiq5cbmmCEo6v6oxPCvw+", | ||
"sha512": "iDyrKeNuylDnUM4m94F4xmDOHjKNZ15HGVvnF7cTswQupCmFRkNWusMqSc5WMvlymvl+5Thcgeyp5HDg0iuHRQ==" | ||
"sha256": "46oolVj+E5kb0eNP9B109JmFFseS8TOGnvX2DywmpXE=", | ||
"sha384": "Ehs9Ey/JqlNtZZ9lXsbY0w+G5pyCpxLZzmJeqpzHfmhjqvkfMbV9CHAxyANRWzhB", | ||
"sha512": "g01y3JGln5uyUkp+gvQWA5NcYC7lXRABnuVR8WBDKn5j3xlkSuzs1aVPIi/+b2VCJg9V7kRbcTutr7P+RgwWYg==" | ||
} | ||
@@ -26,0 +26,0 @@ } |
/*! | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},u="function",a="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",b="_dynClass",I="_dynInstChk",N=I,E="_dfOpts",M="_unknown_",P="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[P]||e[x]||(e[C]?e[C][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==C&&typeof e[n]===w&&(t||O(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function q(e,n){return O(e,x)?e.name||n||M:((e||{})[C]||{}).name||n||M}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,b)?o=i[b]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[b]=o);var u=V[E],a=!!u[L];a&&t&&t[L]!==undefined&&(a=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[b]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var u=j(e),a=[];u&&!D(u)&&!K(a,u);)U(u,function(e){!i[e]&&z(u,e,!F)&&(i[e]=r(n,u,e))}),a.push(u),u=j(u);return i}(i,r,e,a)),u=!!F&&!!u[k],l=i,o=o,f=r,g=e,t=!1!==(u=u&&t?!!t[k]:u),R(l)||(u=f[T]=f[T]||{},d=u[o]=u[o]||{},!1!==u[N]&&(u[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,b)){var o=e[T]||{};if((i=(o[t[b]]||{})[n])||B("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var u=!O(e,n),a=j(e),s=[];u&&a&&!D(a)&&!K(s,a);){var c=a[n];if(c){u=c===r;break}s.push(a),a=j(a)}try{u&&(e[n]=i),i[I]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.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},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ue(e){return typeof e===a}function ae(e){return typeof e===u}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](W+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[Q])?re(e[X])||e[X](W+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var u=0;u<r;u++)u in e&&(o[u]=n.call(i,e[u],e))}catch(a){}return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===u||n===a&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Me(e,n,t,r){if($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(e,n,i),!0}catch(o){}return!1}function Pe(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:Ze(De)}function un(){return!(typeof history!==a||!history)}function an(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===a&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===a&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};V(Zt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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,n,t,r,i){if(t=new mn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!u[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),u[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",ae(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,u[r]?t=!1:u[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(bn.ParentContextKey="parent",bn.ChildrenContextKey="childEvts",bn);function bn(e,i,n){var t,o=this,u=!1;o.start=Pe(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ae(i)&&(u=Me(o,"payload",function(){return!t&&ae(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===bn.ParentContextKey||e===bn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===bn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===bn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(bn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Pe()-o.start,o.exTime=o.time-e,o.complete=function(){},!u&&ae(i)&&(o.payload=i())}}var In=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ae(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Nn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=ae(o.getPerfMgr)?o.getPerfMgr():o){var u,a=void 0,e=o.getCtx(Nn);try{if(a=o.create(n(),r,i))return e&&a.setCtx&&(a.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((u=e.getCtx(Sn.ChildrenContextKey))||(u=[],e.setCtx(Sn.ChildrenContextKey,u)),u.push(a))),o.setCtx(Nn,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&o.fire(a),o.setCtx(Nn,e)}}}return t()}var Mn=function(i,n){var o=this,u=null,a=ae(i.processTelemetry),s=ae(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return u},o.setNext=function(e){u=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&a){o._hasRun=!0;try{r.setNext(u),s&&i.setNextPlugin(u),u&&(u._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=u&&u._hasRun;u&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),u&&!e&&u.processTelemetry(t,r)}}else u&&(o._hasRun=!0,u.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Pn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ae(o.processTelemetry)&&(o=new Mn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(e,i,t,n){var r,o,u,a,s=this,c=null;null!==n&&(e&&ae(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Pn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,u=e,a=!1,(o=n)&&e&&(u=[],xe(e,function(e){!a&&e!==o||(a=!0,u.push(e))})),o&&!a&&(u=u||[]).push(o),c=Pn(u,r)):te(n)&&(c=Pn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){var o=this,u=!1,a=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return u},o.setInitialized=function(e){u=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ae(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=a||new Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,a=new Ln(r,e,n,i),u=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ae(r[Dn])&&ae(o[On])&&r[Dn](o),ae(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ae(n[On]);return ae(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Me(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Me(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(qn,r,function(u,a){u.setNextPlugin=function(e){},u.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},u.getChannelControls=function(){return s},u.initialize=function(n,t,r){var e,i,o;u.isInitialized()||(a.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=at[$n]||it[$n];return t||(t=at[$n]=at(e,n),it[$n]=t),t}function ut(e){return!e||e.isEnabled()}function at(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?ut(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,u,a,s=!1;return ut(g)&&(o={},-1!=(a=(u=be(n||Zn)).indexOf(";"))&&(u=be(n.substring(0,a)),o=ct(n.substring(1+a))),ke(o,"domain",r||f,_e,te),re(t)||(a=vn(),!te(o[Hn])||0<(n=Pe()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,a?Vn:Gn)||lt(r,a?Vn:Gn)||Zn,_e)),a||ke(o,"max-age",Zn+t,null,te)),(t=an())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(u,o)),s=!0),s},get:function(e){var n=Zn;return ut(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=be(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!ut(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(be(e).split(";"),function(e){var n;(e=be(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function lt(e,n){return ae(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new In(n)}var ht,yt=function nr(){var n,a,s,t,r,c=!1;V(nr,this,function(u){u._extensions=[],a=new Kn,u.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],u.isInitialized=function(){return c},u.initialize=function(e,n,r,t){u.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,u[vt]=t,u.config=e||{},u.config.enablePerfMgr&&ke(u.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(u.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<a.priority)&&i.push(e)}),t.push(a),i.push(a),t=zn(t),u._extensions=t,Un(new Ln([a],e,u),t),Un(new Ln(i,e,u),t),u._extensions=i,0===u.getTransmissionControls().length&&Oe("No channels available"),c=!0,u.releaseQueue()},u.getTransmissionControls=function(){return a.getChannelControls()},u.track=function(e){ke(e,"iKey",u.config.instrumentationKey,null,Fe),ke(e,"time",Ce(new Date),null,Fe),ke(e,"ver","4.0",null,re),u.isInitialized()?u.getProcessTelContext().processNext(e):n.push(e)},u.getProcessTelContext=function(){var e=u._extensions,n=e;return e&&0!==e.length||(n=[a]),new Ln(n,u.config,u)},u.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[vt]=s),s},u.getCookieMgr=function(){return r=r||at(u.config,u.logger)},u.setCookieMgr=function(e){r=e},u.getPerfMgr=function(){return t||u.config&&u.config.enablePerfMgr&&ae(u.config.createPerfMgr)&&(t=u.config.createPerfMgr(u,u.getNotifyMgr())),t||Tn},u.setPerfMgr=function(e){t=e},u.eventCnt=function(){return n.length},u.releaseQueue=function(){0<n.length&&(xe(n,function(e){u.getProcessTelContext().processNext(e)}),n=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var wt=4294967296,Tt=4294967295,St=!1,bt=123456789,It=987654321;function Nt(e){e<0&&(e>>>=0),bt=123456789+e&Tt,It=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Pe();Nt((Math.random()*wt^e)+e)}catch(n){}}function Mt(e){return 0<e?Math.floor(Pt()/Tt*(e+1))>>>0:0}function Pt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((It=36969*(65535&It)+(It>>16)&Tt)<<16)+(65535&(bt=18e3*(65535&bt)+(bt>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Mt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Pe()}function Dt(e){void 0===e&&(e=22);for(var n=Pt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Pt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Pt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Pt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ut={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ae,isObject:ue,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:be,objCreate:p,objKeys:Ee,objDefineAccessors:Me,addEventHandler:_t,dateNow:Pe,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Mt,random32:Pt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Me(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,u,a,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){u.ctx=function(){return s[n]=s[n]||{}};try{e.apply(u.inst,a)}catch(i){e=u.err;try{var r=t[Gt[2]];r&&(u.err=i,r.apply(u.inst,a))}catch(o){}finally{u.err=e}}}})}function Jt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var u=s.f;try{r.rslt=u.apply(this,t)}catch(a){throw r.err=a,Ht(e,r,i,n,3),a}return Ht(e,r,i,n,1),r.rslt}}var Xt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Xt)return Xt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===u){var i=r[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=r,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=In,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=at,c.dateNow=Pe,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return un()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=an,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=un,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ae,c.isIE=vn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ue,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Me,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Rt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ue(r)&&ue(i))for(var e in i)!function(n){var e,t;he(n)&&(ae(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Pt,c.randomValue=Mt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||at(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=be,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}))}(this,function(c){"use strict";var o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[r](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",I="_dynClass",b="_dynInstChk",N=b,E="_dfOpts",P="_unknown_",M="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[M]||e[x]||(e[C]?e[C][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==C&&typeof e[n]===w&&(t||O(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,I)?o=i[I]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[I]=o);var a=V[E],u=!!a[L];u&&t&&t[L]!==undefined&&(u=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[I]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!D(a)&&!K(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=j(a);return i}(i,r,e,u)),a=!!F&&!!a[k],l=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[k]:a),R(l)||(a=f[T]=f[T]||{},d=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||B("Missing ["+n+"] "+w),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.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},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](W+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[Q])?re(e[X])||e[X](W+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(be)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(Zt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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,n,t,r,i){if(t=new mn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===In.ParentContextKey||e===In.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var bn=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ue(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Nn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Sn.ChildrenContextKey))||(a=[],e.setCtx(Sn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Mn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){var o=this,a=!1,u=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,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Pe(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Ie(n||Zn)).indexOf(";"))&&(a=Ie(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Ie(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Ie(e).split(";"),function(e){var n;(e=Ie(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ie(e.substring(0,n))]=Ie(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new bn(n)}var ht,yt=function nr(){var n,u,s,t,r,c=!1;V(nr,this,function(a){a._extensions=[],u=new Kn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){ke(e,"iKey",a.config.instrumentationKey,null,Fe),ke(e,"time",Ce(new Date),null,Fe),ke(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Ln(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&ue(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||Tn},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,Tt=4294967295,St=!1,It=123456789,bt=987654321;function Nt(e){e<0&&(e>>>=0),It=123456789+e&Tt,bt=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/Tt*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&Tt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Me()}function Dt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Mt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Mt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ut={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:Ie,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:_t,dateNow:Me,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Pe(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,a,u,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Gt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Jt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Ht(e,r,i,n,3),u}return Ht(e,r,i,n,1),r.rslt}}var Xt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Xt)return Xt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=o,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=bn,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Rt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ie,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=applicationinsights-core-js.min.js.map |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
; | ||
export {}; | ||
//# sourceMappingURL=SendRequestReason.js.map |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -18,2 +18,6 @@ */ | ||
var _this = _super.call(this) || this; | ||
/** | ||
* Internal log poller | ||
*/ | ||
var _internalLogPoller = 0; | ||
dynamicProto(AppInsightsCore, _this, function (_self, _base) { | ||
@@ -58,3 +62,3 @@ _self.initialize = function (config, extensions, logger, notificationManager) { | ||
/** | ||
* Periodically check logger.queue for | ||
* Periodically check logger.queue for log messages to be flushed | ||
*/ | ||
@@ -66,3 +70,6 @@ _self.pollInternalLogs = function (eventName) { | ||
} | ||
return setInterval(function () { | ||
if (_internalLogPoller) { | ||
_self.stopPollingInternalLogs(); | ||
} | ||
_internalLogPoller = setInterval(function () { | ||
var queue = _self.logger ? _self.logger.queue : []; | ||
@@ -81,3 +88,13 @@ arrForEach(queue, function (logMessage) { | ||
}, interval); | ||
return _internalLogPoller; | ||
}; | ||
/** | ||
* Stop polling log messages from logger.queue | ||
*/ | ||
_self.stopPollingInternalLogs = function () { | ||
if (!_internalLogPoller) | ||
return; | ||
clearInterval(_internalLogPoller); | ||
_internalLogPoller = 0; | ||
}; | ||
function _validateTelemetryItem(telemetryItem) { | ||
@@ -103,2 +120,3 @@ if (isNullOrUndefined(telemetryItem.name)) { | ||
// Removed Stub for AppInsightsCore.prototype.pollInternalLogs. | ||
// Removed Stub for AppInsightsCore.prototype.stopPollingInternalLogs. | ||
return AppInsightsCore; | ||
@@ -105,0 +123,0 @@ }(BaseCore)); |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -78,3 +78,3 @@ */ | ||
// Check if any two extensions have the same priority, then warn to console | ||
// And extract the local extensions from the | ||
// And extract the local extensions from the | ||
var extPriorities = {}; | ||
@@ -81,0 +81,0 @@ // Extension validation |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -46,3 +46,3 @@ */ | ||
else if (_nextPlugin && isFunction(_nextPlugin.processTelemetry)) { | ||
// Looks like backward compatibility or out of band processing. And as it looks | ||
// Looks like backward compatibility or out of band processing. And as it looks | ||
// like a ITelemetryPlugin or ITelemetryPluginChain, just call processTelemetry | ||
@@ -49,0 +49,0 @@ _nextPlugin.processTelemetry(env, null); |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -90,3 +90,2 @@ */ | ||
// Removed Stub for ChannelController.prototype.processTelemetry. | ||
; | ||
// Removed Stub for ChannelController.prototype.getChannelControls. | ||
@@ -93,0 +92,0 @@ // Removed Stub for ChannelController.prototype.initialize. |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -24,7 +24,5 @@ */ | ||
} | ||
; | ||
export function isUndefined(value) { | ||
return value === undefined || typeof value === strShimUndefined; | ||
} | ||
; | ||
export function isNotUndefined(value) { | ||
@@ -42,3 +40,2 @@ return !isUndefined(value); | ||
} | ||
; | ||
export function isObject(value) { | ||
@@ -48,3 +45,2 @@ // Changing to inline for performance | ||
} | ||
; | ||
export function isFunction(value) { | ||
@@ -54,3 +50,2 @@ // Changing to inline for performance | ||
} | ||
; | ||
/** | ||
@@ -75,3 +70,3 @@ * Binds the specified function to an event, so that the function gets called whenever the event fires on the object | ||
else if (!isNullOrUndefined(obj[strAttachEvent])) { | ||
// IE before version 9 | ||
// IE before version 9 | ||
obj[strAttachEvent](strOnPrefix + eventNameWithoutOn, handlerRef); | ||
@@ -78,0 +73,0 @@ result = true; |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -10,3 +10,2 @@ */ | ||
var aiInstrumentHooks = "_aiHooks"; | ||
; | ||
var cbNames = [ | ||
@@ -13,0 +12,0 @@ "req", "rsp", "hkErr", "fnErr" |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -4,0 +4,0 @@ */ |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -59,4 +59,4 @@ */ | ||
}); | ||
// sort complete | ||
// sort complete | ||
} | ||
//# sourceMappingURL=TelemetryHelpers.js.map |
/* | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -39,3 +39,3 @@ */ | ||
// Ensure that we keep the context in sync (for processNext()), just in case a plugin | ||
// doesn't calls processTelemetry() instead of itemContext.processNext() or some | ||
// doesn't calls processTelemetry() instead of itemContext.processNext() or some | ||
// other form of error occurred | ||
@@ -42,0 +42,0 @@ itemCtx.setNext(_nextProxy); |
@@ -25,2 +25,3 @@ ## API Report File for "@microsoft/applicationinsights-core-js" | ||
removeNotificationListener(listener: INotificationListener): void; | ||
stopPollingInternalLogs(): void; | ||
// (undocumented) | ||
@@ -255,2 +256,4 @@ track(telemetryItem: ITelemetryItem): void; | ||
// (undocumented) | ||
stopPollingInternalLogs?(): void; | ||
// (undocumented) | ||
track(telemetryItem: ITelemetryItem): void; | ||
@@ -257,0 +260,0 @@ } |
/*! | ||
* Application Insights JavaScript SDK - Core, 2.7.0 | ||
* Application Insights JavaScript SDK - Core, 2.7.1-nightly.202110-02 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}))}(this,function(c){"use strict";var r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},u="function",a="object",n="undefined",s="prototype",i="hasOwnProperty",t=Object,o=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=o[i];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==u&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==u&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",b="_dynClass",I="_dynInstChk",N=I,E="_dfOpts",M="_unknown_",P="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[P]||e[x]||(e[C]?e[C][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==C&&typeof e[n]===w&&(t||O(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function q(e,n){return O(e,x)?e.name||n||M:((e||{})[C]||{}).name||n||M}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,b)?o=i[b]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[b]=o);var u=V[E],a=!!u[L];a&&t&&t[L]!==undefined&&(a=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[b]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var u=j(e),a=[];u&&!D(u)&&!K(a,u);)U(u,function(e){!i[e]&&z(u,e,!F)&&(i[e]=r(n,u,e))}),a.push(u),u=j(u);return i}(i,r,e,a)),u=!!F&&!!u[k],l=i,o=o,f=r,g=e,t=!1!==(u=u&&t?!!t[k]:u),R(l)||(u=f[T]=f[T]||{},d=u[o]=u[o]||{},!1!==u[N]&&(u[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,b)){var o=e[T]||{};if((i=(o[t[b]]||{})[n])||B("Missing ["+n+"] "+w),!i[I]&&!1!==o[N]){for(var u=!O(e,n),a=j(e),s=[];u&&a&&!D(a)&&!K(s,a);){var c=a[n];if(c){u=c===r;break}s.push(a),a=j(a)}try{u&&(e[n]=i),i[I]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.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},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return o.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ue(e){return typeof e===a}function ae(e){return typeof e===u}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](W+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[Q])?re(e[X])||e[X](W+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var u=0;u<r;u++)u in e&&(o[u]=n.call(i,e[u],e))}catch(a){}return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function be(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var Ie=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===u||n===a&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(Ie)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Me(e,n,t,r){if($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(e,n,i),!0}catch(o){}return!1}function Pe(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==a||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==a||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==a||!navigator)}function on(){return rn()?navigator:Ze(De)}function un(){return!(typeof history!==a||!history)}function an(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===a&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===a&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,u={};V(Zt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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,n,t,r,i){if(t=new mn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!u[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),u[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",ae(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,u={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,u[r]?t=!1:u[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(bn.ParentContextKey="parent",bn.ChildrenContextKey="childEvts",bn);function bn(e,i,n){var t,o=this,u=!1;o.start=Pe(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ae(i)&&(u=Me(o,"payload",function(){return!t&&ae(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===bn.ParentContextKey||e===bn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===bn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===bn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(bn.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Pe()-o.start,o.exTime=o.time-e,o.complete=function(){},!u&&ae(i)&&(o.payload=i())}}var In=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ae(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Nn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=ae(o.getPerfMgr)?o.getPerfMgr():o){var u,a=void 0,e=o.getCtx(Nn);try{if(a=o.create(n(),r,i))return e&&a.setCtx&&(a.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((u=e.getCtx(Sn.ChildrenContextKey))||(u=[],e.setCtx(Sn.ChildrenContextKey,u)),u.push(a))),o.setCtx(Nn,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&o.fire(a),o.setCtx(Nn,e)}}}return t()}var Mn=function(i,n){var o=this,u=null,a=ae(i.processTelemetry),s=ae(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return u},o.setNext=function(e){u=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&a){o._hasRun=!0;try{r.setNext(u),s&&i.setNextPlugin(u),u&&(u._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=u&&u._hasRun;u&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),u&&!e&&u.processTelemetry(t,r)}}else u&&(o._hasRun=!0,u.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Pn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ae(o.processTelemetry)&&(o=new Mn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(e,i,t,n){var r,o,u,a,s=this,c=null;null!==n&&(e&&ae(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Pn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,u=e,a=!1,(o=n)&&e&&(u=[],xe(e,function(e){!a&&e!==o||(a=!0,u.push(e))})),o&&!a&&(u=u||[]).push(o),c=Pn(u,r)):te(n)&&(c=Pn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){var o=this,u=!1,a=null,s=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return u},o.setInitialized=function(e){u=e},o.setNextPlugin=function(e){s=e},o.processNext=function(e,n){n?n.processNext(e):s&&ae(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=a||new Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,a=new Ln(r,e,n,i),u=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ae(r[Dn])&&ae(o[On])&&r[Dn](o),ae(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ae(n[On]);return ae(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Me(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Me(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(qn,r,function(u,a){u.setNextPlugin=function(e){},u.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},u.getChannelControls=function(){return s},u.initialize=function(n,t,r){var e,i,o;u.isInitialized()||(a.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=at[$n]||it[$n];return t||(t=at[$n]=at(e,n),it[$n]=t),t}function ut(e){return!e||e.isEnabled()}function at(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?ut(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,u,a,s=!1;return ut(g)&&(o={},-1!=(a=(u=be(n||Zn)).indexOf(";"))&&(u=be(n.substring(0,a)),o=ct(n.substring(1+a))),ke(o,"domain",r||f,_e,te),re(t)||(a=vn(),!te(o[Hn])||0<(n=Pe()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,a?Vn:Gn)||lt(r,a?Vn:Gn)||Zn,_e)),a||ke(o,"max-age",Zn+t,null,te)),(t=an())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(u,o)),s=!0),s},get:function(e){var n=Zn;return ut(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=be(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!ut(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(be(e).split(";"),function(e){var n;(e=be(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[be(e.substring(0,n))]=be(e.substring(1+n)))}),t}function lt(e,n){return ae(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new In(n)}var ht,yt=function nr(){var n,a,s,t,r,c=!1;V(nr,this,function(u){u._extensions=[],a=new Kn,u.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],u.isInitialized=function(){return c},u.initialize=function(e,n,r,t){u.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,u[vt]=t,u.config=e||{},u.config.enablePerfMgr&&ke(u.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(u.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<a.priority)&&i.push(e)}),t.push(a),i.push(a),t=zn(t),u._extensions=t,Un(new Ln([a],e,u),t),Un(new Ln(i,e,u),t),u._extensions=i,0===u.getTransmissionControls().length&&Oe("No channels available"),c=!0,u.releaseQueue()},u.getTransmissionControls=function(){return a.getChannelControls()},u.track=function(e){ke(e,"iKey",u.config.instrumentationKey,null,Fe),ke(e,"time",Ce(new Date),null,Fe),ke(e,"ver","4.0",null,re),u.isInitialized()?u.getProcessTelContext().processNext(e):n.push(e)},u.getProcessTelContext=function(){var e=u._extensions,n=e;return e&&0!==e.length||(n=[a]),new Ln(n,u.config,u)},u.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),u[vt]=s),s},u.getCookieMgr=function(){return r=r||at(u.config,u.logger)},u.setCookieMgr=function(e){r=e},u.getPerfMgr=function(){return t||u.config&&u.config.enablePerfMgr&&ae(u.config.createPerfMgr)&&(t=u.config.createPerfMgr(u,u.getNotifyMgr())),t||Tn},u.setPerfMgr=function(e){t=e},u.eventCnt=function(){return n.length},u.releaseQueue=function(){0<n.length&&(xe(n,function(e){u.getProcessTelContext().processNext(e)}),n=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],r.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e=e&&0<e?e:1e4)}}),e}var wt=4294967296,Tt=4294967295,St=!1,bt=123456789,It=987654321;function Nt(e){e<0&&(e>>>=0),bt=123456789+e&Tt,It=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Pe();Nt((Math.random()*wt^e)+e)}catch(n){}}function Mt(e){return 0<e?Math.floor(Pt()/Tt*(e+1))>>>0:0}function Pt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((It=36969*(65535&It)+(It>>16)&Tt)<<16)+(65535&(bt=18e3*(65535&bt)+(bt>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Mt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Pe()}function Dt(e){void 0===e&&(e=22);for(var n=Pt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Pt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Pt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Pt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ut={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ae,isObject:ue,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:be,objCreate:p,objKeys:Ee,objDefineAccessors:Me,addEventHandler:_t,dateNow:Pe,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Mt,random32:Pt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Me(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,u,a,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){u.ctx=function(){return s[n]=s[n]||{}};try{e.apply(u.inst,a)}catch(i){e=u.err;try{var r=t[Gt[2]];r&&(u.err=i,r.apply(u.inst,a))}catch(o){}finally{u.err=e}}}})}function Jt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var u=s.f;try{r.rslt=u.apply(this,t)}catch(a){throw r.err=a,Ht(e,r,i,n,3),a}return Ht(e,r,i,n,1),r.rslt}}var Xt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Xt)return Xt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===u){var i=r[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=r,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=In,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=at,c.dateNow=Pe,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return un()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=an,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=un,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ae,c.isIE=vn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ue,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Me,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Rt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ue(r)&&ue(i))for(var e in i)!function(n){var e,t;he(n)&&(ae(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Me(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Pt,c.randomValue=Mt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||at(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,c.strFunction=u,c.strIKey="iKey",c.strObject=a,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=be,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}))}(this,function(c){"use strict";var o={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},a="function",u="object",n="undefined",s="prototype",r="hasOwnProperty",t=Object,i=t[s],l=t.assign,f=t.create,e=t.defineProperty,g=i[r];function d(){return typeof globalThis!==n&&globalThis?globalThis:typeof self!==n&&self?self:typeof window!==n&&window?window:typeof global!==n&&global?global:null}function v(e){throw new TypeError(e)}function p(e){if(f)return f(e);if(null==e)return{};var n=typeof e;function t(){}return n!==u&&n!==a&&v("Object prototype may only be an Object:"+e),t[s]=e,new t}(d()||{}).Symbol,(d()||{}).Reflect;var h=function(e,n){return(h=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[r](t)&&(e[t]=n[t])})(e,n)};function y(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&v("Class extends value "+n+" is not a constructor or null"),h(e,n),e[s]=null===n?p(n):(t[s]=n[s],new t)}function m(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var C="constructor",x="prototype",w="function",T="_dynInstFuncs",S="_isDynProxy",I="_dynClass",b="_dynInstChk",N=b,E="_dfOpts",P="_unknown_",M="__proto__",L="useBaseInst",k="setInstFuncs",A=Object,F=A.getPrototypeOf,_=0;function O(e,n){return e&&A[x].hasOwnProperty.call(e,n)}function R(e){return e&&(e===A[x]||e===Array[x])}function D(e){return R(e)||e===Function[x]}function j(e){if(e){if(F)return F(e);if(e=e[M]||e[x]||(e[C]?e[C][x]:null))return e}return null}function U(e,n){var t=[],r=A.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&O(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function z(e,n,t){return n!==C&&typeof e[n]===w&&(t||O(e,n))}function B(e){throw new TypeError("DynamicProto: "+e)}function K(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function q(e,n){return O(e,x)?e.name||n||P:((e||{})[C]||{}).name||n||P}function V(e,r,n,t){O(e,x)||B("theClass is an invalid class definition.");var i=e[x];!function(e){if(F)for(var n=[],t=j(r);t&&!D(t)&&!K(n,t);){if(t===e)return 1;n.push(t),t=j(t)}}(i)&&B("["+q(e)+"] is not in class hierarchy of ["+q(r)+"]");var o=null;O(i,I)?o=i[I]:(o="_dynCls$"+q(e,"_")+"$"+_,_++,i[I]=o);var a=V[E],u=!!a[L];u&&t&&t[L]!==undefined&&(u=!!t[L]);var s,c,l,f,g,d,e=(c={},U(s=r,function(e){!c[e]&&z(s,e,!1)&&(c[e]=s[e])}),c);n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[S]&&o&&!1!==(r=e[T]||{})[N]&&(i=(r[n[I]]||{})[t]||i),function(){return i.apply(e,arguments)}}var i={};U(t,function(e){i[e]=r(n,t,e)});for(var a=j(e),u=[];a&&!D(a)&&!K(u,a);)U(a,function(e){!i[e]&&z(a,e,!F)&&(i[e]=r(n,a,e))}),u.push(a),a=j(a);return i}(i,r,e,u)),a=!!F&&!!a[k],l=i,o=o,f=r,g=e,t=!1!==(a=a&&t?!!t[k]:a),R(l)||(a=f[T]=f[T]||{},d=a[o]=a[o]||{},!1!==a[N]&&(a[N]=!!t),U(f,function(e){var t,r,i;z(f,e,!1)&&f[e]!==g[e]&&(d[e]=f[e],delete f[e],O(l,e)&&(!l[e]||l[e][S])||(l[e]=(t=l,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&O(t,I)){var o=e[T]||{};if((i=(o[t[I]]||{})[n])||B("Missing ["+n+"] "+w),!i[b]&&!1!==o[N]){for(var a=!O(e,n),u=j(e),s=[];a&&u&&!D(u)&&!K(s,u);){var c=u[n];if(c){a=c===r;break}s.push(u),u=j(u)}try{a&&(e[n]=i),i[b]=1}catch(l){o[N]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?j(t)[e]:n)!==w&&B("["+e+"] is not a "+w),n)).apply(this,arguments)})[S]=1,i)))}))}V[E]={setInstFuncs:!0,useBaseInst:!0},c.LoggingSeverity=void 0,(Ct=c.LoggingSeverity||(c.LoggingSeverity={}))[Ct.CRITICAL=1]="CRITICAL",Ct[Ct.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},W="on",H="attachEvent",J="addEventListener",X="detachEvent",Q="removeEventListener",$=e,Z=t.freeze,Y=t.seal;function ee(e){return i.toString.call(e)}function ne(e,n){return typeof e===n}function te(e){return e===undefined||typeof e===n}function re(e){return null===e||te(e)}function ie(e){return!re(e)}function oe(e,n){return e&&g.call(e,n)}function ae(e){return typeof e===u}function ue(e){return typeof e===a}function se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!re(e))try{re(e[J])?re(e[H])||(e[H](W+n,t),i=!0):(e[J](n,t,r),i=!0)}catch(o){}return i}function ce(e,n,t,r){if(void 0===r&&(r=!1),!re(e))try{re(e[Q])?re(e[X])||e[X](W+n,t):e[Q](n,t,r)}catch(i){}}function le(e,n){if(e)for(var t in e)g.call(e,t)&&n.call(e,t,e[t])}function fe(e,n){if(e&&n){var t=n.length,r=e.length;if(e===n)return!0;if(t<=r){for(var i=r-1,o=t-1;0<=o;o--){if(e[i]!=n[o])return!1;i--}return!0}}return!1}function ge(e,n){return!(!e||!n||!~e.indexOf(n))}function de(e){return"[object Date]"===ee(e)}function ve(e){return"[object Array]"===ee(e)}function pe(e){return"[object Error]"===ee(e)}function he(e){return"string"==typeof e}function ye(e){return"number"==typeof e}function me(e){return"boolean"==typeof e}function Ce(e){if(de(e)){var n=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function xe(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function we(e,n,t){var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}return-1}function Te(e,n,t){var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(u){}return o}function Se(e,n,t){var r,i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++;return r}function Ie(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var be=!{toString:null}.propertyIsEnumerable("toString"),Ne=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Ee(e){var n=typeof e;n===a||n===u&&null!==e||v("objKeys called on non-object");var t,r=[];for(t in e)e&&g.call(e,t)&&r.push(t);if(be)for(var i=Ne.length,o=0;o<i;o++)e&&g.call(e,Ne[o])&&r.push(Ne[o]);return r}function Pe(e,n,t,r){if($)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),$(e,n,i),!0}catch(o){}return!1}function Me(){var e=Date;return e.now?e.now():(new e).getTime()}function Le(e){return pe(e)?e.name:""}function ke(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Ae(e,n,t){var r;return e?!(r=e[n])&&re(r)&&(r=te(t)?{}:t,e[n]=r):r=te(t)?{}:t,r}function Fe(e){return!e}function _e(e){return!!e}function Oe(e){throw Error(e)}var Re="window",De="navigator",je="location",Ue="console",ze="performance",Be="JSON",Ke="crypto",qe="msCrypto",Ve="msie",Ge="trident/",We=null,He=null,Je=!1,Xe=null,Qe=null;function $e(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[s])&&(r=n in t)}catch(i){}if(!r)try{r=!te((new e)[n])}catch(i){}}return r}function Ze(e){var n=d();return n&&n[e]?n[e]:e===Re&&Ye()?window:null}function Ye(){return!(typeof window!==u||!window)}function en(){return Ye()?window:Ze(Re)}function nn(){return!(typeof document!==u||!document)}function tn(){return nn()?document:Ze("document")}function rn(){return!(typeof navigator!==u||!navigator)}function on(){return rn()?navigator:Ze(De)}function an(){return!(typeof history!==u||!history)}function un(e){return e&&Je&&(e=Ze("__mockLocation"))?e:typeof location===u&&location?location:Ze(je)}function sn(){return typeof console!==n?console:Ze(Ue)}function cn(){return Ze(ze)}function ln(){return!!(typeof JSON===u&&JSON||null!==Ze(Be))}function fn(){return ln()?JSON||Ze(Be):null}function gn(){return Ze(Ke)}function dn(){return Ze(qe)}function vn(){var e=on();return!e||e.userAgent===He&&null!==We||(e=((He=e.userAgent)||"").toLowerCase(),We=ge(e,Ve)||ge(e,Ge)),We}function pn(e){var n=Object[s].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(t=fn().stringify(e)),n+t}function hn(){var e=!1;try{e=!!Ze("XMLHttpRequest")}catch(n){}return e}function yn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var mn=(Cn.dataType="MessageData",Cn);function Cn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e,e="",ln()&&(e=fn().stringify(r)),e=(n?" message:"+yn(n):"")+(r?" props:"+yn(e):""),this.message+=e}function xn(e,n){return(e||{}).logger||new wn(n)}var wn=function Zt(t){this.identifier="DiagnosticLogger",this.queue=[];var i=0,a={};V(Zt,this,function(o){function e(e,n){return re(e=t[e])?n:e}re(t)&&(t={}),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,n,t,r,i){if(t=new mn(n,t,i=void 0!==i&&i,r),o.enableDebugExceptions())throw t;te(t.message)||(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!a[i]&&r>=c.LoggingSeverity.WARNING&&(o.warnToConsole(t.message),a[i]=!0)):r>=c.LoggingSeverity.WARNING&&o.warnToConsole(t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){var n,t=sn();t&&(n="log",ue(t[n=t.warn?"warn":n])&&t[n](e))},o.resetInternalMessageCount=function(){i=0,a={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(t=!0,r="AITR_"+n.messageId,a[r]?t=!1:a[r]=!0,t&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++),i===o.maxInternalMessageLimit()&&(n=new mn(G.MessageLimitPerPVExceeded,e="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(n),o.warnToConsole(e))))}})},Tn=null,Sn=(In.ParentContextKey="parent",In.ChildrenContextKey="childEvts",In);function In(e,i,n){var t,o=this,a=!1;o.start=Me(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},ue(i)&&(a=Pe(o,"payload",function(){return!t&&ue(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===In.ParentContextKey||e===In.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===In.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===In.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(In.ChildrenContextKey);if(ve(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Me()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&ue(i)&&(o.payload=i())}}var bn=function Yt(n){this.ctx={},V(Yt,this,function(t){t.create=function(e,n,t){return new Sn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&ue(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Nn="CoreUtils.doPerf";function En(e,n,t,r,i){if(e){var o=e;if(o=ue(o.getPerfMgr)?o.getPerfMgr():o){var a,u=void 0,e=o.getCtx(Nn);try{if(u=o.create(n(),r,i))return e&&u.setCtx&&(u.setCtx(Sn.ParentContextKey,e),e.getCtx&&e.setCtx&&((a=e.getCtx(Sn.ChildrenContextKey))||(a=[],e.setCtx(Sn.ChildrenContextKey,a)),a.push(u))),o.setCtx(Nn,u),t(u)}catch(s){u&&u.setCtx&&u.setCtx("exception",s)}finally{u&&o.fire(u),o.setCtx(Nn,e)}}}return t()}var Pn=function(i,n){var o=this,a=null,u=ue(i.processTelemetry),s=ue(i.setNextPlugin);o._hasRun=!1,o.getPlugin=function(){return i},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processTelemetry=function(t,r){r=r||n;var e=i?i.identifier:"TelemetryPluginChain";En(r?r.core():null,function(){return e+":processTelemetry"},function(){if(i&&u){o._hasRun=!0;try{r.setNext(a),s&&i.setNextPlugin(a),a&&(a._hasRun=!1),i.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(c.LoggingSeverity.CRITICAL,G.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+pn(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(o._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function Mn(e,n){var t=[];if(e&&0<e.length)for(var r=null,i=0;i<e.length;i++){var o=e[i];o&&ue(o.processTelemetry)&&(o=new Pn(o,n),t.push(o),r&&r.setNext(o),r=o)}return 0<t.length?t[0]:null}var Ln=function er(e,i,t,n){var r,o,a,u,s=this,c=null;null!==n&&(e&&ue(e.getPlugin)?c=function(e,n,t){var r=[],i=!t;if(e)for(;e;){var o=e.getPlugin();!i&&o!==t||(i=!0,r.push(o)),e=e.getNext()}return i||r.push(t),Mn(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(o=n)&&e&&(a=[],xe(e,function(e){!u&&e!==o||(u=!0,a.push(e))})),o&&!u&&(a=a||[]).push(o),c=Mn(a,r)):te(n)&&(c=Mn(e,s))),s.core=function(){return t},s.diagLog=function(){return xn(t,i)},s.getCfg=function(){return i},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!i||(r=i.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){var r;return void 0===t&&(t=!1),(e=s.getExtCfg(e,null))&&!re(e[n])?r=e[n]:i&&!re(i[n])&&(r=i[n]),re(r)?t:r},s.hasNext=function(){return null!=c},s.getNext=function(){return c},s.setNext=function(e){c=e},s.processNext=function(e){var n=c;n&&(c=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new er((e=void 0===e?null:e)||c,i,t,n)}},kn="extensionConfig",An="getPlugin",Fn=(_n.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},_n);function _n(){var o=this,a=!1,u=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,n){n?n.processNext(e):s&&ue(s.processTelemetry)&&s.processTelemetry(e,null)},o._getTelCtx=function(e){var n=e=void 0===e?null:e;return n||(e=u||new Ln(null,{},o.core),n=s&&s[An]?e.createNew(null,s[An]):e.createNew(null,s)),n},o._baseTelInit=function(e,n,t,r){e&&ke(e,kn,[],null,re),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[An]&&(i=s[An]()),o.core=n,u=new Ln(r,e,n,i),a=!0}}var On="processTelemetry",Rn="priority",Dn="setNextPlugin",jn="isInitialized";function Un(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&ue(r[Dn])&&ue(o[On])&&r[Dn](o),ue(o[jn])&&o[jn]()||e.push(o),r=o,i=i.getNext())}xe(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function zn(e){return e.sort(function(e,n){var t=0,r=ue(n[On]);return ue(e[On])?t=r?e[Rn]-n[Rn]:1:r&&(t=-1),t})}var Bn,Kn=(y(qn,Bn=Fn),qn._staticInit=(Pe(Bt=qn.prototype,"ChannelControls",Bt.getChannelControls),void Pe(Bt,"channelQueue",Bt.getChannelControls)),qn);function qn(){var s,r=Bn.call(this)||this;function c(e){e&&0<e.length&&(xe(e=e.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<500&&Oe("Channel has invalid priority"+e.identifier)}),s.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,V(qn,r,function(a,u){a.setNextPlugin=function(e){},a.processTelemetry=function(n,t){s&&xe(s,function(e){0<e.length&&r._getTelCtx(t).createNew(e).processNext(n)})},a.getChannelControls=function(){return s},a.initialize=function(n,t,r){var e,i,o;a.isInitialized()||(u.initialize(n,t,r),e=(n||{}).channels,i=r,s=[],e&&xe(e,c),i&&(o=[],xe(i,function(e){500<e.priority&&o.push(e)}),c(o)),xe(s,function(e){return Un(new Ln(e,n,t),r)}))}}),r}var Vn="toGMTString",Gn="toUTCString",Wn="cookie",Hn="expires",Jn="enabled",Xn="isCookieUseDisabled",Qn="disableCookiesUsage",$n="_ckMgr",Zn="",Yn=null,et=null,nt=null,tt=tn(),rt={},it={};function ot(e,n){var t=ut[$n]||it[$n];return t||(t=ut[$n]=ut(e,n),it[$n]=t),t}function at(e){return!e||e.isEnabled()}function ut(e,i){var n,t,c=(ke(t=(n=e||it).cookieCfg=n.cookieCfg||{},"domain",n.cookieDomain,ie,re),ke(t,"path",n.cookiePath||"/",null,re),re(t[Jn])&&(e=void 0,te(n[Xn])||(e=!n[Xn]),te(n[Qn])||(e=!n[Qn]),t[Jn]=e),t),l=c.path||"/",f=c.domain,r=!1!==c[Jn],g={isEnabled:function(){var e=r&&st(i),n=it[$n];return e&&n&&g!==n?at(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,u,s=!1;return at(g)&&(o={},-1!=(u=(a=Ie(n||Zn)).indexOf(";"))&&(a=Ie(n.substring(0,u)),o=ct(n.substring(1+u))),ke(o,"domain",r||f,_e,te),re(t)||(u=vn(),!te(o[Hn])||0<(n=Me()+1e3*t)&&((r=new Date).setTime(n),ke(o,Hn,lt(r,u?Vn:Gn)||lt(r,u?Vn:Gn)||Zn,_e)),u||ke(o,"max-age",Zn+t,null,te)),(t=un())&&"https:"===t.protocol&&(ke(o,"secure",null,null,te),(et=null===et?!dt((on()||{}).userAgent):et)&&ke(o,"SameSite","None",null,te)),ke(o,"path",i||l,null,te),(c.setCookie||gt)(e,ft(a,o)),s=!0),s},get:function(e){var n=Zn;return at(g)?(c.getCookie||function(e){var n,t=Zn;return tt&&(n=tt[Wn]||Zn,nt!==n&&(rt=ct(n),nt=n),t=Ie(rt[e]||Zn)),t})(e):n},del:function(e,n){return!!at(g)&&g.purge(e,n)},purge:function(e,n){var t,r=!1;return st(i)&&((t={}).path=n||"/",t[Hn]="Thu, 01 Jan 1970 00:00:01 GMT",vn()||(t["max-age"]="0"),(c.delCookie||gt)(e,ft(Zn,t)),r=!0),r}};return g[$n]=g}function st(e){if(null===Yn){Yn=!1;try{Yn=(tt||{})[Wn]!==undefined}catch(n){e&&e.throwInternal(c.LoggingSeverity.WARNING,G.CannotAccessCookie,"Cannot access document.cookie - "+Le(n),{exception:pn(n)})}}return Yn}function ct(e){var t={};return e&&e.length&&xe(Ie(e).split(";"),function(e){var n;(e=Ie(e||Zn))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Ie(e.substring(0,n))]=Ie(e.substring(1+n)))}),t}function lt(e,n){return ue(e[n])?e[n]():null}function ft(e,n){var t=e||Zn;return le(n,function(e,n){t+="; "+e+(re(n)?Zn:"="+n)}),t}function gt(e,n){tt&&(tt[Wn]=e+"="+n)}function dt(e){return!(!he(e)||!ge(e,"CPU iPhone OS 12")&&!ge(e,"iPad; CPU OS 12")&&!(ge(e,"Macintosh; Intel Mac OS X 10_14")&&ge(e,"Version/")&&ge(e,"Safari"))&&(!ge(e,"Macintosh; Intel Mac OS X 10_14")||!fe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!ge(e,"Chrome/5")&&!ge(e,"Chrome/6")&&(!ge(e,"UnrealEngine")||ge(e,"Chrome"))&&!ge(e,"UCBrowser/12")&&!ge(e,"UCBrowser/11"))}var vt="_notificationManager";function pt(e,n){return new bn(n)}var ht,yt=function nr(){var n,u,s,t,r,c=!1;V(nr,this,function(a){a._extensions=[],u=new Kn,a.logger=p({throwInternal:function(e,n,t,r,i){},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),n=[],a.isInitialized=function(){return c},a.initialize=function(e,n,r,t){a.isInitialized()&&Oe("Core should not be initialized more than once"),e&&!re(e.instrumentationKey)||Oe("Please provide instrumentation key"),s=t,a[vt]=t,a.config=e||{},a.config.enablePerfMgr&&ke(a.config,"createPerfMgr",pt),e.extensions=re(e.extensions)?[]:e.extensions,Ae(e,kn).NotificationManager=t,r&&(a.logger=r),(t=[]).push.apply(t,m(m([],n),e.extensions));var t=zn(t),i=[],o={};xe(t,function(e){(re(e)||re(e.initialize))&&Oe("Extensions must provide callback to initialize");var n=e.priority,t=e.identifier;e&&n&&(re(o[n])?o[n]=t:r.warnToConsole("Two extensions have same priority #"+n+" - "+o[n]+", "+t)),(!n||n<u.priority)&&i.push(e)}),t.push(u),i.push(u),t=zn(t),a._extensions=t,Un(new Ln([u],e,a),t),Un(new Ln(i,e,a),t),a._extensions=i,0===a.getTransmissionControls().length&&Oe("No channels available"),c=!0,a.releaseQueue()},a.getTransmissionControls=function(){return u.getChannelControls()},a.track=function(e){ke(e,"iKey",a.config.instrumentationKey,null,Fe),ke(e,"time",Ce(new Date),null,Fe),ke(e,"ver","4.0",null,re),a.isInitialized()?a.getProcessTelContext().processNext(e):n.push(e)},a.getProcessTelContext=function(){var e=a._extensions,n=e;return e&&0!==e.length||(n=[u]),new Ln(n,a.config,a)},a.getNotifyMgr=function(){return s||(s=p({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),a[vt]=s),s},a.getCookieMgr=function(){return r=r||ut(a.config,a.logger)},a.setCookieMgr=function(e){r=e},a.getPerfMgr=function(){return t||a.config&&a.config.enablePerfMgr&&ue(a.config.createPerfMgr)&&(t=a.config.createPerfMgr(a,a.getNotifyMgr())),t||Tn},a.setPerfMgr=function(e){t=e},a.eventCnt=function(){return n.length},a.releaseQueue=function(){0<n.length&&(xe(n,function(e){a.getProcessTelContext().processNext(e)}),n=[])}})},mt=function tr(e){this.listeners=[];var n=!!(e||{}).perfEvtsSendAll;V(tr,this,function(i){i.addNotificationListener=function(e){i.listeners.push(e)},i.removeNotificationListener=function(e){for(var n=we(i.listeners,e);-1<n;)i.listeners.splice(n,1),n=we(i.listeners,e)},i.eventsSent=function(n){xe(i.listeners,function(e){e&&e.eventsSent&&setTimeout(function(){return e.eventsSent(n)},0)})},i.eventsDiscarded=function(n,t){xe(i.listeners,function(e){e&&e.eventsDiscarded&&setTimeout(function(){return e.eventsDiscarded(n,t)},0)})},i.eventsSendRequest=function(t,r){xe(i.listeners,function(e){if(e&&e.eventsSendRequest)if(r)setTimeout(function(){return e.eventsSendRequest(t,r)},0);else try{e.eventsSendRequest(t,r)}catch(n){}})},i.perfEvent=function(t){t&&(!n&&t.isChildEvt()||xe(i.listeners,function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout(function(){return e.perfEvent(t)},0);else try{e.perfEvent(t)}catch(n){}}))}})},Ct=(y(xt,ht=yt),xt);function xt(){var e=ht.call(this)||this,r=0;return V(xt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],o.InvalidEvent)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new wn(e),r||new mt(e))},t.track=function(e){En(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){null===e&&(n(e),Oe("Invalid telemetry item")),function(){if(re(e.name))throw n(e),Error("telemetry name required")}(),i.track(e)},function(){return{item:e}},!e.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(n){var e=t.config.diagnosticLogInterval;return e&&0<e||(e=1e4),r&&t.stopPollingInternalLogs(),r=setInterval(function(){var e=t.logger?t.logger.queue:[];xe(e,function(e){e={name:n||"InternalMessageId: "+e.messageId,iKey:t.config.instrumentationKey,time:Ce(new Date),baseType:mn.dataType,baseData:{message:e.message}},t.track(e)}),e.length=0},e)},t.stopPollingInternalLogs=function(){r&&(clearInterval(r),r=0)}}),e}var wt=4294967296,Tt=4294967295,St=!1,It=123456789,bt=987654321;function Nt(e){e<0&&(e>>>=0),It=123456789+e&Tt,bt=987654321-e&Tt,St=!0}function Et(){try{var e=2147483647&Me();Nt((Math.random()*wt^e)+e)}catch(n){}}function Pt(e){return 0<e?Math.floor(Mt()/Tt*(e+1))>>>0:0}function Mt(e){var n=(n=gn()||dn())&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&Tt:vn()?(St||Et(),kt()&Tt):Math.floor(wt*Math.random()|0);return e||(n>>>=0),n}function Lt(e){e?Nt(e):Et()}function kt(e){var n=((bt=36969*(65535&bt)+(bt>>16)&Tt)<<16)+(65535&(It=18e3*(65535&It)+(It>>16)&Tt))>>>0&Tt|0;return e||(n>>>=0),n}var At,Ft=null,e=n;function _t(e,n){var t=!1,r=en();return r&&(t=se(r,e,n),t=se(r.body,e,n)||t),(r=tn())&&se(r,e,n)||t}function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(zt,function(e){var n=0|Pt(15);return("x"===e?n:3&n|8).toString(16)})}function Rt(){var e=cn();return e&&e.now?e.now():Me()}function Dt(e){void 0===e&&(e=22);for(var n=Mt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Mt()<<2&4294967295|3&n)>>>0,t=0);return r}function jt(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Mt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Mt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}var Ut={_canUseCookies:undefined,isTypeof:ne,isUndefined:te,isNullOrUndefined:re,hasOwnProperty:oe,isFunction:ue,isObject:ae,isDate:de,isArray:ve,isError:pe,isString:he,isNumber:ye,isBoolean:me,toISOString:Ce,arrForEach:xe,arrIndexOf:we,arrMap:Te,arrReduce:Se,strTrim:Ie,objCreate:p,objKeys:Ee,objDefineAccessors:Pe,addEventHandler:_t,dateNow:Me,isIE:vn,disableCookies:qt,newGuid:Ot,perfNow:Rt,newId:Dt,randomValue:Pt,random32:Mt,mwcRandomSeed:Lt,mwcRandom32:kt,generateW3CId:jt},zt=/[xy]/g,Bt={Attach:se,AttachEvent:se,Detach:ce,DetachEvent:ce};function Kt(e,n){return e=ot(e,n),n=Ut._canUseCookies,null===Ft&&(Ft=[],At=n,Pe(Ut,"_canUseCookies",function(){return At},function(n){At=n,xe(Ft,function(e){e.setEnabled(n)})})),-1===we(Ft,e)&&Ft.push(e),me(n)&&e.setEnabled(n),me(At)&&e.setEnabled(At),e}function qt(){Kt().setEnabled(!1)}var Vt="_aiHooks",Gt=["req","rsp","hkErr","fnErr"];function Wt(e,n){if(e)for(var t=0;t<e.length&&!n(e[t],t);t++);}function Ht(e,a,u,s,c){0<=c&&c<=2&&Wt(e,function(e,n){var t=e.cbks;if(e=t[Gt[c]]){a.ctx=function(){return s[n]=s[n]||{}};try{e.apply(a.inst,u)}catch(i){e=a.err;try{var r=t[Gt[2]];r&&(a.err=i,r.apply(a.inst,u))}catch(o){}finally{a.err=e}}}})}function Jt(s){return function(){var t=arguments,e=s.h,r={name:s.n,inst:this,ctx:null,set:function(e,n){(t=o([],t))[e]=n,i=o([r],t)}},n=[],i=o([r],t);function o(n,e){return Wt(e,function(e){n.push(e)}),n}Ht(e,r,i,n,0);var a=s.f;try{r.rslt=a.apply(this,t)}catch(u){throw r.err=u,Ht(e,r,i,n,3),u}return Ht(e,r,i,n,1),r.rslt}}var Xt=Object.getPrototypeOf;function Qt(e,n,t,r){if(void 0===r&&(r=!0),e&&n&&t&&(e=function o(e,n,t){var r=null;return e&&(oe(e,n)?r=e:t&&(r=o(function(e){if(e){if(Xt)return Xt(e);if(e=e.__proto__||e[s]||e.constructor)return e}return null}(e),n,!1))),r}(e,n,r))&&typeof(r=e[n])===a){var i=r[Vt];return i||((r=Jt(i={i:0,n:n,f:r,h:[]}))[Vt]=i,e[n]=r),t={id:i.i,cbks:t,rm:function(){var t=this.id;Wt(i.h,function(e,n){return e.id===t&&(i.h.splice(n,1),1)})}},i.i++,i.h.push(t),t}return null}function $t(n,e,t,r){void 0===r&&(r=!0);var i=null;return Wt(e,function(e){(e=Qt(n,e,t,r))&&(i=i||[]).push(e)}),i}c.AppInsightsCore=Ct,c.BaseCore=yt,c.BaseTelemetryPlugin=Fn,c.CoreUtils=Ut,c.DiagnosticLogger=wn,c.EventHelper=Bt,c.EventsDiscardedReason=o,c.InstrumentFunc=Qt,c.InstrumentFuncs=$t,c.InstrumentProto=function(e,n,t){return e?Qt(e[s],n,t,!1):null},c.InstrumentProtos=function(e,n,t){return e?$t(e[s],n,t,!1):null},c.MinChannelPriorty=100,c.NotificationManager=mt,c.PerfEvent=Sn,c.PerfManager=bn,c.ProcessTelemetryContext=Ln,c.Undefined=e,c._InternalLogMessage=mn,c._InternalMessageId=G,c._legacyCookieMgr=Kt,c.addEventHandler=_t,c.areCookiesSupported=st,c.arrForEach=xe,c.arrIndexOf=we,c.arrMap=Te,c.arrReduce=Se,c.attachEvent=se,c.canUseCookies=function(e){return Kt(null,e).isEnabled()},c.createClassFromInterface=function(e){return function(){var t=this;e&&le(e,function(e,n){t[e]=n})}},c.createCookieMgr=ut,c.dateNow=Me,c.deleteCookie=function(e,n){return Kt(null,e).del(n)},c.detachEvent=ce,c.disableCookies=qt,c.doPerf=En,c.dumpObj=pn,c.generateW3CId=jt,c.getConsole=sn,c.getCookie=function(e,n){return Kt(null,e).get(n)},c.getCrypto=gn,c.getDocument=tn,c.getExceptionName=Le,c.getGblPerfMgr=function(){return Tn},c.getGlobal=d,c.getGlobalInst=Ze,c.getHistory=function(){return an()?history:Ze("history")},c.getIEVersion=function(e){var n;return ge(e=((e=(e=void 0===e?null:e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase(),Ve)?parseInt(e.split(Ve)[1]):ge(e,Ge)&&(e=parseInt(e.split(Ge)[1]))?e+4:null},c.getJSON=fn,c.getLocation=un,c.getMsCrypto=dn,c.getNavigator=on,c.getPerformance=cn,c.getSetValue=Ae,c.getWindow=en,c.hasDocument=nn,c.hasHistory=an,c.hasJSON=ln,c.hasNavigator=rn,c.hasOwnProperty=oe,c.hasWindow=Ye,c.initializePlugins=Un,c.isArray=ve,c.isBeaconsSupported=function(){return Qe=null===Qe?rn()&&!!on().sendBeacon:Qe},c.isBoolean=me,c.isDate=de,c.isError=pe,c.isFetchSupported=function(e){var n=!1;try{var n=!!Ze("fetch"),t=Ze("Request");n&&e&&t&&(n=$e(t,"keepalive"))}catch(r){}return n},c.isFunction=ue,c.isIE=vn,c.isNotNullOrUndefined=ie,c.isNotTruthy=Fe,c.isNotUndefined=function(e){return!te(e)},c.isNullOrUndefined=re,c.isNumber=ye,c.isObject=ae,c.isReactNative=function(){var e=on();return!(!e||!e.product)&&"ReactNative"===e.product},c.isSafari=function(e){var n;return!!~((e=e&&he(e)?e:(n=on()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase().indexOf("safari")},c.isString=he,c.isSymbol=function(e){return"symbol"==typeof e},c.isTruthy=_e,c.isTypeof=ne,c.isUndefined=te,c.isXhrSupported=hn,c.mwcRandom32=kt,c.mwcRandomSeed=Lt,c.newGuid=Ot,c.newId=Dt,c.normalizeJsName=function(e){var n=e,t=/([^\w\d_$])/g;return t.test(e)?e.replace(t,"_"):n},c.objCreate=p,c.objDefineAccessors=Pe,c.objForEachKey=le,c.objFreeze=function(e){return Z?Z(e):e},c.objKeys=Ee,c.objSeal=function(e){return Y?Y(e):e},c.optimizeObject=function(e){return e&&t(l?l({},e):e)},c.perfNow=Rt,c.proxyAssign=function(r,i,o){if(r&&i&&r!==i&&ae(r)&&ae(i))for(var e in i)!function(n){var e,t;he(n)&&(ue(e=i[n])?o&&!o(n,!0,i,r)||(r[n]=(t=n,function(){return i[t].apply(i,arguments)})):o&&!o(n,!1,i,r)||(oe(r,n)&&delete r[n],Pe(r,n,function(){return i[n]},function(e){i[n]=e})||(r[n]=e)))}(e);return r},c.random32=Mt,c.randomValue=Pt,c.safeGetCookieMgr=function(e,n){var t;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[$n]||ut(n)),t||ot(n,(e||{}).logger)},c.safeGetLogger=xn,c.setCookie=function(e,n,t,r){Kt(null,e).set(n,t,null,r)},c.setEnableEnvMocks=function(e){Je=e},c.setGblPerfMgr=function(e){Tn=e},c.setValue=ke,c.sortPlugins=zn,c.strContains=ge,c.strEndsWith=fe,c.strExtensionConfig=kn,c.strFunction=a,c.strIKey="iKey",c.strObject=u,c.strPrototype=s,c.strStartsWith=function(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var i=0;i<r;i++)if(e[i]!==n[i])return!1;t=!0}}return t},c.strTrim=Ie,c.strUndefined=n,c.throwError=Oe,c.toISOString=Ce,c.uaDisallowsSameSiteNone=dt,c.useXDomainRequest=function(){return Xe=null===Xe&&(Xe=typeof XDomainRequest!==undefined)&&hn()?Xe&&!$e(Ze("XMLHttpRequest"),"withCredentials"):Xe},function(e,n,t){var r=Object.defineProperty;if(r)try{return r(e,n,t)}catch(i){}typeof t.value!==undefined&&(e[n]=t.value)}(c,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=applicationinsights-core-js.min.js.map |
{ | ||
"name": "@microsoft/applicationinsights-core-js", | ||
"author": "Microsoft Application Insights Team", | ||
"version": "2.7.0", | ||
"version": "2.7.1-nightly.202110-02", | ||
"description": "Microsoft Application Insights Core Javascript SDK", | ||
@@ -46,3 +46,3 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", | ||
"@nevware21/grunt-ts-plugin": "^0.4.3", | ||
"@nevware21/grunt-eslint-ts": "^0.2.1", | ||
"@nevware21/grunt-eslint-ts": "^0.2.2", | ||
"globby": "^11.0.0", | ||
@@ -67,3 +67,6 @@ "magic-string": "^0.25.7", | ||
"@microsoft/dynamicproto-js": "^1.1.4" | ||
}, | ||
"publishConfig": { | ||
"tag": "nightly" | ||
} | ||
} |
@@ -30,3 +30,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
*/ | ||
QueueFull: 5, | ||
QueueFull: 5 | ||
}; |
@@ -51,2 +51,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
MaxQueuedEvents = 20 | ||
}; | ||
} |
@@ -32,3 +32,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Initialization queue. Contains functions to run when appInsights initializes | ||
*/ | ||
*/ | ||
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void; | ||
@@ -78,2 +78,4 @@ | ||
stopPollingInternalLogs?(): void; | ||
/** | ||
@@ -80,0 +82,0 @@ * Return a new instance of the IProcessTelemetryContext for processing events |
@@ -14,3 +14,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Pause sending data | ||
*/ | ||
*/ | ||
pause(): void; | ||
@@ -31,3 +31,3 @@ | ||
* @param async: send data asynchronously when true | ||
* @param callBack: if specified, notify caller when send is complete | ||
* @param callBack: if specified, notify caller when send is complete | ||
*/ | ||
@@ -34,0 +34,0 @@ flush(async: boolean, callBack?: () => void): void; |
@@ -86,3 +86,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
*/ | ||
channels?: IChannelControls[][]; | ||
channels?: IChannelControls[][]; | ||
/** | ||
@@ -106,4 +106,4 @@ * @type {boolean} | ||
/** | ||
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and ```enablePerfMgr``` | ||
* is enabled, this enables you to override the default creation of a PerfManager() without needing to ```setPerfMgr()``` | ||
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and ```enablePerfMgr``` | ||
* is enabled, this enables you to override the default creation of a PerfManager() without needing to ```setPerfMgr()``` | ||
* after initialization. | ||
@@ -125,3 +125,3 @@ */ | ||
/** | ||
* @description Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains. It | ||
* @description Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains. It | ||
* can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified. | ||
@@ -135,3 +135,3 @@ * @type {string} | ||
/** | ||
* @description Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application | ||
* @description Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application | ||
* gateway. It can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified. | ||
@@ -151,3 +151,3 @@ * @type {string} | ||
/** | ||
* [Optional] A Cookie Manager configuration which includes hooks to allow interception of the get, set and delete cookie | ||
* [Optional] A Cookie Manager configuration which includes hooks to allow interception of the get, set and delete cookie | ||
* operations. If this configuration is specified any specified enabled and domain properties will take precedence over the | ||
@@ -154,0 +154,0 @@ * cookieDomain and disableCookiesUsage values. |
@@ -17,3 +17,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Set the named cookie with the value and optional domain and optional | ||
* Set the named cookie with the value and optional domain and optional | ||
* @param name - The name of the cookie | ||
@@ -20,0 +20,0 @@ * @param value - The value of the cookie (Must already be encoded) |
@@ -65,5 +65,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* This returns an object that the hook function can use to store hook specific | ||
* context, it it not shared with any other hook instances and is unique for the | ||
* context, it it not shared with any other hook instances and is unique for the | ||
* current call. | ||
* A hook implementation can use this to pass / share context between different | ||
* A hook implementation can use this to pass / share context between different | ||
* hook callbacks eg. request/response requst/hookErrors etc. | ||
@@ -70,0 +70,0 @@ */ |
@@ -36,5 +36,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* the event can be displayed via the debug plugin extension. | ||
* @param perfEvent | ||
* @param perfEvent | ||
*/ | ||
perfEvent?: (perfEvent: IPerfEvent) => void; | ||
} |
@@ -49,5 +49,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* the event can be displayed via the debug plugin extension. | ||
* @param perfEvent | ||
* @param perfEvent | ||
*/ | ||
perfEvent?(perfEvent: IPerfEvent): void; | ||
} |
@@ -31,3 +31,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Identifies the total inclusive time spent for this event, including the time spent for child events, | ||
* Identifies the total inclusive time spent for this event, including the time spent for child events, | ||
* this will be undefined until the event is completed | ||
@@ -34,0 +34,0 @@ */ |
@@ -28,5 +28,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Create a new event and start timing, the manager may return null/undefined to indicate that it does not | ||
* Create a new event and start timing, the manager may return null/undefined to indicate that it does not | ||
* want to monitor this source event. | ||
* @param src The source name of the event | ||
* @param src The source name of the event | ||
* @param payloadDetails - An optional callback function to fetch the payload details for the event. | ||
@@ -33,0 +33,0 @@ * @param isAsync - Is the event occurring from a async event |
@@ -72,3 +72,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* then the current execution order will be copied. | ||
* @param startAt - The plugin to start processing from, if missing from the execution | ||
* @param startAt - The plugin to start processing from, if missing from the execution | ||
* order then the next plugin will be NOT set. | ||
@@ -75,0 +75,0 @@ */ |
@@ -37,3 +37,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
*/ | ||
tags?: Tags & Tags[]; // Tags[] will be deprecated. | ||
tags?: Tags & Tags[]; // Tags[] will be deprecated. | ||
@@ -40,0 +40,0 @@ /** |
@@ -18,3 +18,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* @param env - This is the current event being reported | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* can optionally use this to access the current core instance or define / pass additional information | ||
@@ -26,4 +26,4 @@ * to later plugins (vs appending items to the telemetry item) | ||
/** | ||
* Set next extension for telemetry processing, this is not optional as plugins should use the | ||
* processNext() function of the passed IProcessTelemetryContext instead. It is being kept for | ||
* Set next extension for telemetry processing, this is not optional as plugins should use the | ||
* processNext() function of the passed IProcessTelemetryContext instead. It is being kept for | ||
* now for backward compatibility only. | ||
@@ -45,3 +45,3 @@ */ | ||
* @param extensions - The complete set of extensions to be used for initializing the plugin | ||
* @param pluginChain - [Optional] specifies the current plugin chain which identifies the | ||
* @param pluginChain - [Optional] specifies the current plugin chain which identifies the | ||
* set of plugins and the order they should be executed for the current request. | ||
@@ -48,0 +48,0 @@ */ |
@@ -27,3 +27,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* @param env - This is the current event being reported | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* can optionally use this to access the current core instance or define / pass additional information | ||
@@ -30,0 +30,0 @@ * to later plugins (vs appending items to the telemetry item) |
@@ -23,2 +23,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
super(); | ||
/** | ||
* Internal log poller | ||
*/ | ||
let _internalLogPoller: number = 0; | ||
@@ -71,3 +75,3 @@ dynamicProto(AppInsightsCore, this, (_self, _base) => { | ||
/** | ||
* Periodically check logger.queue for | ||
* Periodically check logger.queue for log messages to be flushed | ||
*/ | ||
@@ -79,6 +83,7 @@ _self.pollInternalLogs = (eventName?: string): number => { | ||
} | ||
return setInterval(() => { | ||
if(_internalLogPoller) { | ||
_self.stopPollingInternalLogs(); | ||
} | ||
_internalLogPoller = setInterval(() => { | ||
const queue: _InternalLogMessage[] = _self.logger ? _self.logger.queue : []; | ||
arrForEach(queue, (logMessage: _InternalLogMessage) => { | ||
@@ -92,3 +97,2 @@ const item: ITelemetryItem = { | ||
}; | ||
_self.track(item); | ||
@@ -98,4 +102,14 @@ }); | ||
}, interval) as any; | ||
return _internalLogPoller; | ||
} | ||
/** | ||
* Stop polling log messages from logger.queue | ||
*/ | ||
_self.stopPollingInternalLogs = (): void => { | ||
if(!_internalLogPoller) return; | ||
clearInterval(_internalLogPoller); | ||
_internalLogPoller = 0; | ||
} | ||
function _validateTelemetryItem(telemetryItem: ITelemetryItem) { | ||
@@ -150,2 +164,9 @@ if (isNullOrUndefined(telemetryItem.name)) { | ||
} | ||
/** | ||
* Periodically check logger.queue for | ||
*/ | ||
public stopPollingInternalLogs(): void { | ||
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging | ||
} | ||
} |
@@ -33,4 +33,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Helper to create the default performance manager | ||
* @param core | ||
* @param notificationMgr | ||
* @param core | ||
* @param notificationMgr | ||
*/ | ||
@@ -109,3 +109,3 @@ function _createPerfManager (core: IAppInsightsCore, notificationMgr: INotificationManager) { | ||
// Check if any two extensions have the same priority, then warn to console | ||
// And extract the local extensions from the | ||
// And extract the local extensions from the | ||
const extPriorities = {}; | ||
@@ -112,0 +112,0 @@ |
@@ -29,3 +29,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* @param env - This is the current event being reported | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* can optionally use this to access the current core instance or define / pass additional information | ||
@@ -58,3 +58,3 @@ * to later plugins (vs appending items to the telemetry item) | ||
*/ | ||
public core: IAppInsightsCore; | ||
public core: IAppInsightsCore; | ||
@@ -115,3 +115,3 @@ priority: number; | ||
} else if (_nextPlugin && isFunction(_nextPlugin.processTelemetry)) { | ||
// Looks like backward compatibility or out of band processing. And as it looks | ||
// Looks like backward compatibility or out of band processing. And as it looks | ||
// like a ITelemetryPlugin or ITelemetryPluginChain, just call processTelemetry | ||
@@ -138,3 +138,3 @@ _nextPlugin.processTelemetry(env, null); | ||
_self._baseTelInit = (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?:ITelemetryPluginChain) => { | ||
_self._baseTelInit = (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?:ITelemetryPluginChain) => { | ||
if (config) { | ||
@@ -141,0 +141,0 @@ // Make sure the extensionConfig exists |
@@ -9,3 +9,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls"; | ||
import { IPlugin, ITelemetryPlugin, } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin"; | ||
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin"; | ||
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain"; | ||
@@ -46,3 +46,3 @@ import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem"; | ||
// and calling _getDefTelCtx as it's possible that the caller doesn't pass any context | ||
let chainCtx = this._getTelCtx(itemCtx).createNew(queues); | ||
let chainCtx = this._getTelCtx(itemCtx).createNew(queues); | ||
chainCtx.processNext(item); | ||
@@ -116,3 +116,3 @@ } | ||
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging | ||
}; | ||
} | ||
@@ -119,0 +119,0 @@ public getChannelControls(): IChannelControls[][] { |
@@ -7,3 +7,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
import { dumpObj, getDocument, getLocation, getNavigator, isIE } from './EnvUtils'; | ||
import { | ||
import { | ||
arrForEach, dateNow, getExceptionName, isFunction, isNotNullOrUndefined, isNullOrUndefined, isString, isTruthy, isUndefined, | ||
@@ -86,6 +86,6 @@ objForEachKey, setValue, strContains, strEndsWith, strTrim | ||
* Helper to return the ICookieMgr from the core (if not null/undefined) or a default implementation | ||
* associated with the configuration or a legacy default. | ||
* @param core | ||
* @param config | ||
* @returns | ||
* associated with the configuration or a legacy default. | ||
* @param core | ||
* @param config | ||
* @returns | ||
*/ | ||
@@ -165,3 +165,3 @@ export function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration) { | ||
expiry.setTime(expireMs); | ||
setValue(values, strExpires, | ||
setValue(values, strExpires, | ||
_formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || strEmpty, | ||
@@ -168,0 +168,0 @@ isTruthy); |
@@ -10,5 +10,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
import { getWindow, getDocument, getPerformance, isIE } from "./EnvUtils"; | ||
import { | ||
arrForEach, arrIndexOf, arrMap, arrReduce, attachEvent, dateNow, detachEvent, hasOwnProperty, | ||
isArray, isBoolean, isDate, isError, isFunction, isNullOrUndefined, isNumber, isObject, isString, isTypeof, | ||
import { | ||
arrForEach, arrIndexOf, arrMap, arrReduce, attachEvent, dateNow, detachEvent, hasOwnProperty, | ||
isArray, isBoolean, isDate, isError, isFunction, isNullOrUndefined, isNumber, isObject, isString, isTypeof, | ||
isUndefined, objDefineAccessors, objKeys, strTrim, toISOString | ||
@@ -71,3 +71,3 @@ } from "./HelperFuncs"; | ||
/** | ||
* Generate random base64 id string. | ||
* Generate random base64 id string. | ||
* The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5) | ||
@@ -112,3 +112,3 @@ * @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22 | ||
return false; | ||
} | ||
} | ||
@@ -144,3 +144,3 @@ /** | ||
* @deprecated Marking this interface and instance as deprecated in favor of direct usage of the helper functions | ||
* as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items | ||
* as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items | ||
* in your resulting code. | ||
@@ -239,5 +239,5 @@ */ | ||
/** | ||
* Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists | ||
* to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page | ||
* checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx | ||
* Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists | ||
* to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page | ||
* checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx | ||
* implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
@@ -252,3 +252,3 @@ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. | ||
* provided as an argument in the next call to the callback function. This helper exists to avoid adding a polyfil for older browsers that do not define | ||
* Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency | ||
* Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency | ||
* this will not use the Array.prototype.xxxx implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
@@ -275,3 +275,3 @@ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. | ||
/** | ||
* Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers | ||
* Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers | ||
* that do not define Object.keys eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation. | ||
@@ -329,3 +329,3 @@ * Note: For consistency this will not use the Object.keys implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
/** | ||
* Generate random base64 id string. | ||
* Generate random base64 id string. | ||
* The default length is 22 which is 132-bits so almost the same as a GUID but as base64 (the previous default was 5) | ||
@@ -465,5 +465,5 @@ * @param maxLength - Optional value to specify the length of the id to be generated, defaults to 22 | ||
* - Attempts to add "listeners" to the CoreUtils._canUseCookies property to support the legacy usage | ||
* @param config | ||
* @param logger | ||
* @returns | ||
* @param config | ||
* @param logger | ||
* @returns | ||
*/ | ||
@@ -480,6 +480,6 @@ export function _legacyCookieMgr(config?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr { | ||
// this WILL NOT work for ES3 browsers (< IE8) | ||
objDefineAccessors<boolean>(CoreUtils, "_canUseCookies", | ||
objDefineAccessors<boolean>(CoreUtils, "_canUseCookies", | ||
() => { | ||
return _canUseCookies; | ||
}, | ||
}, | ||
(value) => { | ||
@@ -490,3 +490,3 @@ _canUseCookies = value; | ||
}); | ||
}); | ||
}); | ||
} | ||
@@ -493,0 +493,0 @@ |
@@ -66,3 +66,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
} | ||
export class DiagnosticLogger implements IDiagnosticLogger { | ||
@@ -191,3 +191,2 @@ public identifier = 'DiagnosticLogger'; | ||
const throttleMessage = new _InternalLogMessage(_InternalMessageId.MessageLimitPerPVExceeded, throttleLimitMessage, false); | ||
_self.queue.push(throttleMessage); | ||
@@ -194,0 +193,0 @@ _self.warnToConsole(throttleLimitMessage); |
@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
import { | ||
import { | ||
getGlobal, strShimUndefined, strShimObject, strShimPrototype | ||
@@ -17,3 +17,3 @@ } from "@microsoft/applicationinsights-shims"; | ||
* validate the current operating environment. Unless otherwise required, please | ||
* only use defined methods (functions) in this class so that users of these | ||
* only use defined methods (functions) in this class so that users of these | ||
* functions/properties only need to include those that are used within their own modules. | ||
@@ -73,3 +73,3 @@ */ | ||
* Enable the lookup of test mock objects if requested | ||
* @param enabled | ||
* @param enabled | ||
*/ | ||
@@ -100,5 +100,5 @@ export function setEnableEnvMocks(enabled: boolean) { | ||
/** | ||
* Checks if window object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a window | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: window is not defined" | ||
* Checks if window object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a window | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: window is not defined" | ||
* exception will be thrown. | ||
@@ -126,5 +126,5 @@ * Defined as a function to support lazy / late binding environments. | ||
/** | ||
* Checks if document object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a document | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: document is not defined" | ||
* Checks if document object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a document | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: document is not defined" | ||
* exception will be thrown. | ||
@@ -152,5 +152,5 @@ * Defined as a function to support lazy / late binding environments. | ||
/** | ||
* Checks if navigator object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a navigator | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: navigator is not defined" | ||
* Checks if navigator object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a navigator | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: navigator is not defined" | ||
* exception will be thrown. | ||
@@ -177,5 +177,5 @@ * Defined as a function to support lazy / late binding environments. | ||
/** | ||
* Checks if history object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a history | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: history is not defined" | ||
* Checks if history object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a history | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: history is not defined" | ||
* exception will be thrown. | ||
@@ -242,5 +242,5 @@ * Defined as a function to support lazy / late binding environments. | ||
/** | ||
* Checks if JSON object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a history | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined" | ||
* Checks if JSON object is available, this is required as we support the API running without a | ||
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a history | ||
* object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined" | ||
* exception will be thrown. | ||
@@ -353,3 +353,3 @@ * Defined as a function to support lazy / late binding environments. | ||
userAgentStr = navigator ? (navigator.userAgent || "").toLowerCase() : ""; | ||
} | ||
} | ||
@@ -356,0 +356,0 @@ var ua = (userAgentStr || "").toLowerCase(); |
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
import { | ||
import { | ||
strShimUndefined, strShimObject, strShimFunction, throwTypeError, | ||
@@ -27,7 +27,7 @@ ObjClass, ObjProto, ObjAssign, ObjHasOwnProperty, ObjDefineProperty | ||
return typeof value === theType; | ||
}; | ||
} | ||
export function isUndefined(value: any): boolean { | ||
return value === undefined || typeof value === strShimUndefined; | ||
}; | ||
} | ||
@@ -48,3 +48,3 @@ export function isNotUndefined(value: any): boolean { | ||
return obj && ObjHasOwnProperty.call(obj, prop); | ||
}; | ||
} | ||
@@ -54,3 +54,3 @@ export function isObject(value: any): boolean { | ||
return typeof value === strShimObject; | ||
}; | ||
} | ||
@@ -60,3 +60,3 @@ export function isFunction(value: any): value is Function { | ||
return typeof value === strShimFunction; | ||
}; | ||
} | ||
@@ -80,3 +80,3 @@ /** | ||
} else if (!isNullOrUndefined(obj[strAttachEvent])) { | ||
// IE before version 9 | ||
// IE before version 9 | ||
obj[strAttachEvent](strOnPrefix + eventNameWithoutOn, handlerRef); | ||
@@ -132,3 +132,3 @@ result = true; | ||
/** | ||
* This is a helper function for the equivalent of arForEach(objKeys(target), callbackFn), this is a | ||
* This is a helper function for the equivalent of arForEach(objKeys(target), callbackFn), this is a | ||
* performance optimization to avoid the creation of a new array for large objects | ||
@@ -174,3 +174,3 @@ * @param target The target object to find and process the keys | ||
return false; | ||
} | ||
} | ||
@@ -350,5 +350,5 @@ /** | ||
/** | ||
* Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists | ||
* to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page | ||
* checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx | ||
* Calls a defined callback function on each element of an array, and returns an array that contains the results. This helper exists | ||
* to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page | ||
* checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx | ||
* implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
@@ -379,3 +379,3 @@ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. | ||
* provided as an argument in the next call to the callback function. This helper exists to avoid adding a polyfil for older browsers that do not define | ||
* Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency | ||
* Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency | ||
* this will not use the Array.prototype.xxxx implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
@@ -434,3 +434,3 @@ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. | ||
/** | ||
* Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers | ||
* Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers | ||
* that do not define Object.keys eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation. | ||
@@ -603,10 +603,10 @@ * Note: For consistency this will not use the Object.keys implementation if it exists as this would cause a testing requirement to test with and without the implementations | ||
/** | ||
* Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from | ||
* Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from | ||
* the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential | ||
* implementation issues by assigning prototype functions as instance ones | ||
* | ||
* | ||
* This method is the primary method used to "update" the snippet proxy with the ultimate implementations. | ||
* | ||
* | ||
* Special ES3 Notes: | ||
* Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the | ||
* Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the | ||
* properties of "referenced" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the | ||
@@ -663,3 +663,3 @@ * same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail. | ||
* Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance | ||
* @param defaults Simple helper | ||
* @param defaults Simple helper | ||
*/ | ||
@@ -666,0 +666,0 @@ export function createClassFromInterface<T>(defaults?: T) { |
@@ -17,3 +17,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
FunctionError = 3 | ||
}; | ||
} | ||
@@ -20,0 +20,0 @@ const cbNames = [ |
@@ -154,5 +154,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* the event can be displayed via the debug plugin extension. | ||
* @param perfEvent | ||
* @param perfEvent | ||
*/ | ||
perfEvent?(perfEvent: IPerfEvent): void; | ||
} |
@@ -40,3 +40,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
/** | ||
* Identifies the total inclusive time spent for this event, including the time spent for child events, | ||
* Identifies the total inclusive time spent for this event, including the time spent for child events, | ||
* this will be undefined until the event is completed | ||
@@ -61,3 +61,3 @@ */ | ||
complete: () => void; | ||
complete: () => void; | ||
@@ -109,7 +109,7 @@ constructor(name: string, payloadDetails: () => any, isAsync: boolean) { | ||
_self[key] = value; | ||
} | ||
} | ||
else if (key === PerfEvent.ChildrenContextKey) { | ||
_self[key] = value; | ||
} | ||
else | ||
} | ||
else | ||
{ | ||
@@ -186,5 +186,5 @@ let ctx = _self[strExecutionContextKey] = _self[strExecutionContextKey] || {}; | ||
/** | ||
* Create a new event and start timing, the manager may return null/undefined to indicate that it does not | ||
* Create a new event and start timing, the manager may return null/undefined to indicate that it does not | ||
* want to monitor this source event. | ||
* @param src The source name of the event | ||
* @param src The source name of the event | ||
* @param payloadDetails - An optional callback function to fetch the payload details for the event. | ||
@@ -232,3 +232,3 @@ * @param isAsync - Is the event occurring from a async event | ||
* @param details - A function to return the payload details | ||
* @param isAsync - Is the event / function being call asynchronously or synchronously | ||
* @param isAsync - Is the event / function being call asynchronously or synchronously | ||
*/ | ||
@@ -235,0 +235,0 @@ export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean) { |
@@ -129,3 +129,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* @param env - This is the current event being reported | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* can optionally use this to access the current core instance or define / pass additional information | ||
@@ -132,0 +132,0 @@ * to later plugins (vs appending items to the telemetry item) |
@@ -18,3 +18,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Make sure we end up with a positive number and not -ve one. | ||
seedValue >>>= 0; | ||
seedValue >>>= 0; | ||
} | ||
@@ -21,0 +21,0 @@ |
@@ -52,5 +52,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
thePlugin.initialize( | ||
processContext.getCfg(), | ||
processContext.core(), | ||
extensions, | ||
processContext.getCfg(), | ||
processContext.core(), | ||
extensions, | ||
processContext.getNext()); | ||
@@ -73,3 +73,3 @@ }); | ||
}); | ||
// sort complete | ||
// sort complete | ||
} |
@@ -36,3 +36,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
* @param env - This is the current event being reported | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* @param itemCtx - This is the context for the current request, ITelemetryPlugin instances | ||
* can optionally use this to access the current core instance or define / pass additional information | ||
@@ -82,3 +82,3 @@ * to later plugins (vs appending items to the telemetry item) | ||
// Ensure that we keep the context in sync (for processNext()), just in case a plugin | ||
// doesn't calls processTelemetry() instead of itemContext.processNext() or some | ||
// doesn't calls processTelemetry() instead of itemContext.processNext() or some | ||
// other form of error occurred | ||
@@ -85,0 +85,0 @@ itemCtx.setNext(_nextProxy); |
@@ -47,2 +47,3 @@ import { ITelemetryItem } from "./ITelemetryItem"; | ||
pollInternalLogs?(eventName?: string): number; | ||
stopPollingInternalLogs?(): void; | ||
/** | ||
@@ -49,0 +50,0 @@ * Return a new instance of the IProcessTelemetryContext for processing events |
@@ -29,2 +29,6 @@ import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore"; | ||
pollInternalLogs(eventName?: string): number; | ||
/** | ||
* Periodically check logger.queue for | ||
*/ | ||
stopPollingInternalLogs(): void; | ||
} |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.18.7" | ||
"packageVersion": "7.18.11" | ||
} | ||
] | ||
} |
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 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 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 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 too big to display
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 too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2754490
35814
1