Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@microsoft/applicationinsights-common

Package Overview
Dependencies
Maintainers
2
Versions
572
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-common - npm Package Compare versions

Comparing version 2.6.3 to 2.6.4

4

browser/applicationinsights-common.min.js
/*!
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ye())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),!(e&&e.enableCorsCorrelation||a===n))return!1;if((n=e&&e.correlationHeaderDomains)&&(G(n,function(e){e=RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*")),o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if((e=e&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n=t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]*([^\@\()]+?)[\s]*(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ye())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(G(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if((e=e&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
//# sourceMappingURL=applicationinsights-common.min.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=ConnectionString.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IEventTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IMetricTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPageViewPerformanceTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
//# sourceMappingURL=IPageViewTelemetry.js.map
/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -42,2 +42,3 @@ */

catch (exception) {
// eslint-disable-next-line no-empty
}

@@ -44,0 +45,0 @@ return null;

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -228,3 +228,3 @@ */

try {
var funcNameRegex = /function (.{1,})\(/;
var funcNameRegex = /function (.{1,200})\(/;
var results = (funcNameRegex).exec((errorType).constructor.toString());

@@ -234,3 +234,3 @@ typeName = (results && results.length > 1) ? results[1] : "";

catch (e) {
// Ignore
// eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do
}

@@ -266,2 +266,3 @@ }

catch (e) {
// eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do
}

@@ -499,3 +500,3 @@ }

// methodName=$2, fileName=$4, lineNo=$5, column=$6
_StackFrame.regex = /^([\s]+at)?[\s]*([^\@\()]+?)[\s]*(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
_StackFrame.regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
_StackFrame.baseSize = 58; // '{"method":"","level":,"assembly":"","fileName":"","line":}'.length

@@ -502,0 +503,0 @@ return _StackFrame;

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ */

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -58,3 +58,3 @@ */

export function urlParseHost(url, inclPort) {
var fullHost = urlParseFullHost(url, inclPort);
var fullHost = urlParseFullHost(url, inclPort) || "";
if (fullHost) {

@@ -61,0 +61,0 @@ var match = fullHost.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);

/*
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -99,3 +99,3 @@ */

}
if ((!config || !config.enableCorsCorrelation) && requestHost !== currentHost) {
if ((!config || !config.enableCorsCorrelation) && (requestHost && requestHost !== currentHost)) {
return false;

@@ -107,3 +107,3 @@ }

arrForEach(includedDomains, function (domain) {
var regex = new RegExp(domain.toLowerCase().replace(/\./g, "\.").replace(/\*/g, ".*"));
var regex = new RegExp(domain.toLowerCase().replace(/\\/g, "\\\\").replace(/\./g, "\\.").replace(/\*/g, ".*"));
matchExists_1 = matchExists_1 || regex.test(requestHost);

@@ -120,3 +120,3 @@ });

for (var i = 0; i < excludedDomains.length; i++) {
var regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\./g, "\.").replace(/\*/g, ".*"));
var regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\\/g, "\\\\").replace(/\./g, "\\.").replace(/\*/g, ".*"));
if (regex.test(requestHost)) {

@@ -123,0 +123,0 @@ return false;

@@ -344,2 +344,3 @@ ## API Report File for "@microsoft/applicationinsights-common"

enableUnhandledPromiseRejectionTracking?: boolean;
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
isBeaconApiDisabled?: boolean;

@@ -360,2 +361,3 @@ isBrowserLinkTrackingEnabled?: boolean;

sdkExtension?: string;
sessionCookiePostfix?: string;
sessionExpirationMs?: number;

@@ -365,2 +367,3 @@ sessionRenewalMs?: number;

url?: string;
userCookiePostfix?: string;
}

@@ -477,2 +480,3 @@

enableResponseHeaderTracking?: boolean;
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
ignoreHeaders?: string[];

@@ -479,0 +483,0 @@ // (undocumented)

/*!
* Application Insights JavaScript SDK - Common, 2.6.3
* Application Insights JavaScript SDK - Common, 2.6.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ye())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t))&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),!(e&&e.enableCorsCorrelation||a===n))return!1;if((n=e&&e.correlationHeaderDomains)&&(G(n,function(e){e=RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*")),o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if((e=e&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n=t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]*([^\@\()]+?)[\s]*(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
var e=this,t=function(e){"use strict";var i="function",f="object",t="undefined",r="prototype",a="hasOwnProperty",n=Object,s=n[r],o=n.create,u=n.defineProperty,l=s[a];function c(){return typeof globalThis!==t&&globalThis?globalThis:typeof self!==t&&self?self:typeof window!==t&&window?window:typeof global!==t&&global?global:null}function d(e){throw new TypeError(e)}function p(e){if(o)return o(e);if(null==e)return{};var t=typeof e;function n(){}return t!==f&&t!==i&&d("Object prototype may only be an Object:"+e),n[r]=e,new n}(c()||{}).Symbol,(c()||{}).Reflect;var g,m=n.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])s[a].call(t,o)&&(e[o]=t[o]);return e},v=function(e,t){return(v=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[a](n)&&(e[n]=t[n])})(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&d("Class extends value "+t+" is not a constructor or null"),v(e,t),e[r]=null===t?p(t):(n[r]=t[r],new n)}(yr=g=g||{})[yr.CRITICAL=1]="CRITICAL",yr[yr.WARNING=2]="WARNING";var S={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},y="attachEvent",I="addEventListener",C="detachEvent",x="removeEventListener",N=u;function b(e){return s.toString.call(e)}function w(e){return e===undefined||typeof e===t}function A(e){return null===e||w(e)}function T(e){return!A(e)}function E(e){return typeof e===f}function k(e){return typeof e===i}function M(e,t,n,r){void 0===r&&(r=!1);var o=!1;if(!A(e))try{A(e[I])?A(e[y])||(e[y]("on"+t,n),o=!0):(e[I](t,n,r),o=!0)}catch(a){}return o}function D(e,t,n,r){if(void 0===r&&(r=!1),!A(e))try{A(e[x])?A(e[C])||e[C]("on"+t,n):e[x](t,n,r)}catch(o){}}function R(e,t){if(e)for(var n in e)l.call(e,n)&&t.call(e,n,e[n])}function L(e,t){return!(!e||!t||!~e.indexOf(t))}function F(e){return"[object Date]"===b(e)}function P(e){return"[object Array]"===b(e)}function O(e){return"[object Error]"===b(e)}function U(e){return"string"==typeof e}function B(e){return"boolean"==typeof e}function z(e){if(F(e)){var t=function(e){return 1===(e=""+e).length?"0"+e:e};return e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(""+(e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function G(e,t,n){for(var r=e.length,o=0;o<r&&!(o in e&&-1===t.call(n||e,e[o],o,e));o++);}function j(e,t,n){for(var r=e.length,o=Math.max(0<=(n=n||0)?n:r-Math.abs(n),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function _(e,t,n){for(var r=e.length,o=n||e,a=Array(r),i=0;i<r;i++)i in e&&(a[i]=t.call(o,e[i],e));return a}function H(e,t,n){var r,o=e.length,a=0;if(3<=arguments.length)r=n;else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++;return r}function V(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var W=!{toString:null}.propertyIsEnumerable("toString"),q=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function K(e){var t=typeof e;t===i||t===f&&null!==e||d("objKeys called on non-object");var n,r=[];for(n in e)e&&l.call(e,n)&&r.push(n);if(W)for(var o=q.length,a=0;a<o;a++)e&&l.call(e,q[a])&&r.push(q[a]);return r}function X(e,t,n,r){if(N)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),N(e,t,o),!0}catch(a){}return!1}function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Z(e){return O(e)?e.name:""}function Y(e,t,n,r,o){var a=n;return e&&((a=e[t])===n||o&&!o(a)||r&&!r(n)||(e[t]=a=n)),a}function Q(e){return!!e}var $="window",ee="document",te="navigator",ne="location",re="performance",oe="JSON",ae="crypto",ie="msCrypto",se="msie",ue="trident/",le=null,ce=null;function de(e){var t=c();return t&&t[e]?t[e]:e===$&&fe()?window:null}function fe(){return typeof window===f&&window}function pe(){return typeof document===f&&document?document:de(ee)}function ge(){return typeof navigator===f&&navigator?navigator:de(te)}function me(){return de(re)}function ve(){return typeof JSON===f&&JSON||null!==de(oe)}function he(){return ve()?JSON||de(oe):null}function Se(){var e=ge();return!e||e.userAgent===ce&&null!==le||(e=((ce=e.userAgent)||"").toLowerCase(),le=L(e,se)||L(e,ue)),le}function ye(e){var t=Object[r].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ve()&&(n=he().stringify(e)),t+n}var Ie="toGMTString",Ce="toUTCString",xe="cookie",Ne="expires",be="enabled",we="isCookieUseDisabled",Ae="disableCookiesUsage",Te="_ckMgr",Ee="",ke=null,Me=null,De=null,Re=pe(),Le={},Fe={};function Pe(e){return!e||e.isEnabled()}function Oe(e,r){var t,n,u=(Y(n=(t=e||Fe).cookieCfg=t.cookieCfg||{},"domain",t.cookieDomain,T,A),Y(n,"path",t.cookiePath||"/",null,A),A(n[be])&&(e=void 0,w(t[we])||(e=!t[we]),w(t[Ae])||(e=!t[Ae]),n[be]=e),n),l=u.path||"/",c=u.domain,o=!1!==u[be],d={isEnabled:function(){var e=o&&Ue(r),t=Fe[Te];return e&&t&&d!==t?Pe(t):e},setEnabled:function(e){o=!1!==e},set:function(e,t,n,r,o){var a,i,s;Pe(d)&&(a={},-1!=(s=(i=V(t||Ee)).indexOf(";"))&&(i=V(t.substring(0,s)),a=Be(t.substring(1+s))),Y(a,"domain",r||c,Q,w),A(n)||(t=Se(),!w(a[Ne])||0<(s=J()+1e3*n)&&((r=new Date).setTime(s),Y(a,Ne,ze(r,t?Ie:Ce)||ze(r,t?Ie:Ce)||Ee,Q)),t||Y(a,"max-age",Ee+n,null,w)),(n=typeof location===f&&location?location:de(ne))&&"https:"===n.protocol&&(Y(a,"secure",null,null,w),(Me=null===Me?!_e((ge()||{}).userAgent):Me)&&Y(a,"SameSite","None",null,w)),Y(a,"path",o||l,null,w),(u.setCookie||je)(e,Ge(i,a)))},get:function(e){var t=Ee;return Pe(d)?(u.getCookie||function(e){var t,n=Ee;return Re&&(t=Re[xe]||Ee,De!==t&&(Le=Be(t),De=t),n=V(Le[e]||Ee)),n})(e):t},del:function(e,t){Pe(d)&&d.purge(e,t)},purge:function(e,t){var n;Ue(r)&&((n={}).path=t||"/",n[Ne]="Thu, 01 Jan 1970 00:00:01 GMT",Se()||(n["max-age"]="0"),(u.delCookie||je)(e,Ge(Ee,n)))}};return d[Te]=d}function Ue(e){if(null===ke){ke=!1;try{ke=(Re||{})[xe]!==undefined}catch(t){e&&e.throwInternal(g.WARNING,S.CannotAccessCookie,"Cannot access document.cookie - "+Z(t),{exception:ye(t)})}}return ke}function Be(e){var n={};return e&&e.length&&G(V(e).split(";"),function(e){var t;(e=V(e||Ee))&&(-1==(t=e.indexOf("="))?n[e]=null:n[V(e.substring(0,t))]=V(e.substring(1+t)))}),n}function ze(e,t){return k(e[t])?e[t]():null}function Ge(e,t){var n=e||Ee;return R(t,function(e,t){n+="; "+e+(A(t)?Ee:"="+t)}),n}function je(e,t){Re&&(Re[xe]=e+"="+t)}function _e(e){return!(!U(e)||!L(e,"CPU iPhone OS 12")&&!L(e,"iPad; CPU OS 12")&&!(L(e,"Macintosh; Intel Mac OS X 10_14")&&L(e,"Version/")&&L(e,"Safari"))&&(!L(e,"Macintosh; Intel Mac OS X 10_14")||!function(e,t){if(e){var n=e.length;if(e===t)return 1;if(40<=n){for(var r=n-1,o=39;0<=o;o--){if(e[r]!=t[o])return;r--}return 1}}}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!L(e,"Chrome/5")&&!L(e,"Chrome/6")&&(!L(e,"UnrealEngine")||L(e,"Chrome"))&&!L(e,"UCBrowser/12")&&!L(e,"UCBrowser/11"))}var He=4294967296,Ve=4294967295,We=!1,qe=123456789,Ke=987654321;function Xe(e){e<0&&(e>>>=0),qe=123456789+e&Ve,Ke=987654321-e&Ve,We=!0}function Je(){try{var e=2147483647&J();Xe((Math.random()*He^e)+e)}catch(t){}}function Ze(e){return 0<e?Math.floor(Ye()/Ve*(e+1))>>>0:0}function Ye(e){var t=(t=de(ae)||de(ie))&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ve:Se()?(We||Je(),Qe()&Ve):Math.floor(He*Math.random()|0);return e||(t>>>=0),t}function Qe(e){var t=((Ke=36969*(65535&Ke)+(Ke>>16)&Ve)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&Ve))>>>0&Ve|0;return e||(t>>>=0),t}var $e,et=null;function tt(e){void 0===e&&(e=22);for(var t=Ye()>>>0,n=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(Ye()<<2&4294967295|3&t)>>>0,n=0);return r}function nt(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Ye())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&Ye())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+o+n.substr(16,3)+n.substr(19,12)}var rt={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:w,isNullOrUndefined:A,hasOwnProperty:function(e,t){return e&&l.call(e,t)},isFunction:k,isObject:E,isDate:F,isArray:P,isError:O,isString:U,isNumber:function(e){return"number"==typeof e},isBoolean:B,toISOString:z,arrForEach:G,arrIndexOf:j,arrMap:_,arrReduce:H,strTrim:V,objCreate:p,objKeys:K,objDefineAccessors:X,addEventHandler:function(e,t){var n=!1,r=fe()?window:de($);return r&&(n=M(r,e,t),n=M(r.body,e,t)||n),(r=pe())&&at.Attach(r,e,t)||n},dateNow:J,isIE:Se,disableCookies:st,newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ot,function(e){var t=0|Ze(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=me();return e&&e.now?e.now():J()},newId:tt,randomValue:Ze,random32:Ye,mwcRandomSeed:function(e){e?Xe(e):Je()},mwcRandom32:Qe,generateW3CId:nt},ot=/[xy]/g,at={Attach:M,AttachEvent:M,Detach:D,DetachEvent:D};function it(e,t){var n,e=(n=e,e=t,(t=Oe[Te]||Fe[Te])||(t=Oe[Te]=Oe(n,e),Fe[Te]=t),t),t=rt._canUseCookies;return null===et&&(et=[],$e=t,X(rt,"_canUseCookies",function(){return $e},function(t){$e=t,G(et,function(e){e.setEnabled(t)})})),-1===j(et,e)&&et.push(e),B(t)&&e.setEnabled(t),B($e)&&e.setEnabled($e),e}function st(){it().setEnabled(!1)}var ut={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"};function lt(e,t,n){var r=t.length,o=ct(e,t);if(o.length!==r){for(var a=0,i=o;n[i]!==undefined;)a++,i=o.substring(0,147)+yt(a);o=i}return o}function ct(e,t){var n;return t&&150<(t=V(t.toString())).length&&(n=t.substring(0,150),e.throwInternal(g.WARNING,S.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}function dt(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=V(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(g.WARNING,S.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function ft(e,t){return St(e,t,2048,S.UrlTooLong)}function pt(e,t){var n;return t&&32768<t.length&&(n=t.substring(0,32768),e.throwInternal(g.WARNING,S.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function gt(e,t){var n,r;return!t||32768<(r=""+t).length&&(n=r.substring(0,32768),e.throwInternal(g.WARNING,S.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0)),n||t}function mt(r,e){var o;return e&&(o={},R(e,function(e,t){if(E(t)&&ve())try{t=he().stringify(t)}catch(n){r.throwInternal(g.WARNING,S.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:n},!0)}t=dt(r,t,8192),e=lt(r,e,o),o[e]=t}),e=o),e}function vt(n,e){var r;return e&&(r={},R(e,function(e,t){e=lt(n,e,r),r[e]=t}),e=r),e}function ht(e,t){return t&&St(e,t,128,S.IdTooLong).toString()}function St(e,t,n,r){var o;return t&&(t=V(t)).length>n&&(o=t.substring(0,n),e.throwInternal(g.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),o||t}function yt(e){return(e="00"+e).substr(e.length-3)}var It={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:lt,sanitizeKey:ct,sanitizeString:dt,sanitizeUrl:ft,sanitizeMessage:pt,sanitizeException:gt,sanitizeProperties:mt,sanitizeMeasurements:vt,sanitizeId:ht,sanitizeInput:St,padNumber:yt,trim:V};function Ct(e){var t,n=null;return k(Event)?n=new Event(e):(t=pe())&&t.createEvent&&(n=t.createEvent("Event")).initEvent(e,!0,!0),n}function xt(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"==e.toString().toLowerCase()}function Nt(e){var t=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,t=t.length<2?"0"+t:t,n=n.length<2?"0"+n:n;return(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t+"."+e}function bt(){var e=ge();return"sendBeacon"in e&&e.sendBeacon}function wt(e,t){var n=null;return G(e,function(e){if(e.identifier===t)return n=e,-1}),n}function At(e,t,n,r,o){return!o&&U(e)&&("Script error."===e||"Script error"===e)}var Tt,Et="https://dc.services.visualstudio.com",kt="not_specified";(Cr=Tt=Tt||{})[Cr.LocalStorage=0]="LocalStorage",Cr[Cr.SessionStorage=1]="SessionStorage",e.DistributedTracingModes=void 0,(Ar=e.DistributedTracingModes||(e.DistributedTracingModes={}))[Ar.AI=0]="AI",Ar[Ar.AI_AND_W3C=1]="AI_AND_W3C",Ar[Ar.W3C=2]="W3C";var Mt=undefined,Dt=undefined;function Rt(){return Ot()?Lt(Tt.LocalStorage):null}function Lt(e){try{if(A(c()))return null;var t=new Date,n=de(e===Tt.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(o){}return null}function Ft(){return Gt()?Lt(Tt.SessionStorage):null}function Pt(){Dt=Mt=!1}function Ot(){return Mt=Mt===undefined?!!Lt(Tt.LocalStorage):Mt}function Ut(e,t){var n=Rt();if(null!==n)try{return n.getItem(t)}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+Z(r),{exception:ye(r)})}return null}function Bt(e,t,n){var r=Rt();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Mt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+Z(o),{exception:ye(o)})}return!1}function zt(e,t){var n=Rt();if(null!==n)try{return n.removeItem(t),!0}catch(r){Mt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+Z(r),{exception:ye(r)})}return!1}function Gt(){return Dt=Dt===undefined?!!Lt(Tt.SessionStorage):Dt}function jt(){var t=[];return Gt()&&R(de("sessionStorage"),function(e){t.push(e)}),t}function _t(e,t){var n=Ft();if(null!==n)try{return n.getItem(t)}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+Z(r),{exception:ye(r)})}return null}function Ht(e,t,n){var r=Ft();if(null!==r)try{return r.setItem(t,n),!0}catch(o){Dt=!1,e.throwInternal(g.WARNING,S.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+Z(o),{exception:ye(o)})}return!1}function Vt(e,t){var n=Ft();if(null!==n)try{return n.removeItem(t),!0}catch(r){Dt=!1,e.throwInternal(g.WARNING,S.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+Z(r),{exception:ye(r)})}return!1}var Wt=pe()||{},qt=0,Kt=[null,null,null,null,null];function Xt(e){var t=qt,n=Kt,r=n[t];return Wt.createElement?n[t]||(r=n[t]=Wt.createElement("a")):r={host:Qt(e,!0)},r.href=e,++t>=n.length&&(t=0),qt=t,r}function Jt(e){return(e=Xt(e))?e.href:void 0}function Zt(e){return(e=Xt(e))?e.pathname:void 0}function Yt(e,t){return e?e.toUpperCase()+" "+t:t}function Qt(e,t){return(e=$t(e,t)||"")&&null!=(t=e.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i))&&3<t.length&&U(t[2])&&0<t[2].length?t[2]+(t[3]||""):e}function $t(e,t){var n=null;return!e||null!=(e=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<e.length&&U(e[2])&&0<e[2].length&&(n=e[2]||"",t&&2<e.length&&(t=(e[1]||"").toLowerCase(),e=e[3]||"",n+=e="http"==t&&":80"===e||"https"==t&&":443"===e?"":e)),n}var en=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function tn(e){return!!~en.indexOf(e.toLowerCase())}var nn={NotSpecified:kt,createDomEvent:Ct,disableStorage:Pt,isInternalApplicationInsightsEndpoint:tn,canUseLocalStorage:Ot,getStorage:Ut,setStorage:Bt,removeStorage:zt,canUseSessionStorage:Gt,getSessionStorageKeys:jt,getSessionStorage:_t,setSessionStorage:Ht,removeSessionStorage:Vt,disableCookies:st,canUseCookies:function(e){return it(null,e).isEnabled()},disallowsSameSiteNone:_e,setCookie:function(e,t,n,r){it(null,e).set(t,n,null,r)},stringToBoolOrDefault:xt,getCookie:function(e,t){return it(null,e).get(t)},deleteCookie:function(e,t){return it(null,e).del(t)},trim:V,newId:tt,random32:function(){return Ye(!0)},generateW3CId:nt,isArray:P,isError:O,isDate:F,toISOStringForIE8:z,getIEVersion:function(e){var t;return L(e=((e=(e=void 0===e?null:e)?e:(t=ge()||{})?(t.userAgent||"").toLowerCase():"")||"").toLowerCase(),se)?parseInt(e.split(se)[1]):L(e,ue)&&(e=parseInt(e.split(ue)[1]))?e+4:null},msToTimeSpan:Nt,isCrossOriginError:At,dump:ye,getExceptionName:Z,addEventHandler:M,IsBeaconApiSupported:bt,getExtension:wt},rn={parseUrl:Xt,getAbsoluteUrl:Jt,getPathName:Zt,getCompleteUrl:Yt,parseHost:Qt,parseFullHost:$t},on={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var o,a=Xt(t).host.toLowerCase();if(a&&(~a.indexOf(":443")||~a.indexOf(":80"))&&(a=($t(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&a&&a!==n)return!1;if((n=e&&e.correlationHeaderDomains)&&(G(n,function(e){e=RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")),o=o||e.test(a)}),!o))return!1;var i=e&&e.correlationHeaderExcludedDomains;if(!i||0===i.length)return!0;for(r=0;r<i.length;r++)if(RegExp(i[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(a))return!1;return a&&0<a.length},getCorrelationContext:function(e){if((e=e&&on.getCorrelationContextValue(e,ut.requestContextTargetKey))&&e!==on.correlationIdPrefix)return e},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var o=n[r].split("=");if(2===o.length&&o[0]===t)return o[1]}}};function an(){var e=me();return e&&e.now&&e.timing&&0<(e=e.now()+e.timing.navigationStart)?e:J()}function sn(e,t){return 0===e||0===t||A(e)||A(t)?null:t-e}var un={Now:an,GetDuration:sn};function ln(e){if(!e)return{};var t=H(e.split(";"),function(e,t){var n=t.split("=");return 2===n.length&&(t=n[0].toLowerCase(),n=n[1],e[t]=n),e},{});return 0<K(t).length&&(t.endpointsuffix&&(e=t.location?t.location+".":"",t.ingestionendpoint=t.ingestionendpoint||"https://"+e+"dc."+t.endpointsuffix),t.ingestionendpoint=t.ingestionendpoint||Et),t}var cn,dn={parse:ln},fn=function(){},pn=(h(gn,cn=fn),gn);function gn(){return cn.call(this)||this}var mn,vn=(h(hn,mn=function(){this.ver=1,this.sampleRate=100,this.tags={}}),hn);function hn(e,t,n){var r=mn.call(this)||this;return r.name=dt(e,n)||kt,r.data=t,r.time=z(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var Sn,yn=(h(In,Sn=Er=function(){this.ver=2,this.properties={},this.measurements={}}),In.envelopeType="Microsoft.ApplicationInsights.{0}.Event",In.dataType="EventData",In);function In(e,t,n,r){var o=Sn.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=dt(e,t)||kt,o.properties=mt(e,n),o.measurements=vt(e,r),o}var Cn=function(){},xn=function(){this.hasFullStack=!0,this.parsedStack=[]},Nn="<no_method>",bn="error",wn="stack",An="stackDetails",Tn="errorSrc",En="message",kn="description";function Mn(e,t){var n=e;return n&&!U(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=k(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Dn(e,t){var n=e;return e&&((n=e[En]||e[kn]||"")&&!U(n)&&(n=Mn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(t&&"String"!==t&&"Object"!==t&&"Error"!==t&&!~(n||"").indexOf(t)?t+": "+n:n)||""}function Rn(e){return e&&e.src&&U(e.src)&&e.obj&&P(e.obj)}function Ln(e){var t=e||"",e=(t=U(t)?t:U(t[wn])?t[wn]:""+t).split("\n");return{src:t,obj:e}}function Fn(e){var t,n=null;if(e)try{e[wn]?n=Ln(e[wn]):e[bn]&&e[bn][wn]?n=Ln(e[bn][wn]):e.exception&&e.exception[wn]?n=Ln(e.exception[wn]):Rn(e)?n=e:Rn(e[An])?n=e[An]:window.opera&&e[En]?n=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e.message):U(e)?n=Ln(e):(t=e[En]||e[kn]||"",U(e[Tn])&&(t&&(t+="\n"),t+=" from "+e[Tn]),t&&(n=Ln(t)))}catch(r){n=Ln(r)}return n||{src:"",obj:null}}function Pn(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString()),t=n&&1<n.length?n[1]:""}catch(r){}return t}function On(e){if(e)try{if(!U(e)){var t=Pn(e),n=Mn(e,!1);return n&&"{}"!==n||(e[bn]&&(t=Pn(e=e[bn])),n=Mn(e,!0)),n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Un,Bn=(h(zn,Un=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),zn.CreateAutoException=function(e,t,n,r,o,a,i,s){var u=Pn(o||a||e);return{message:Dn(e,u),url:t,lineNumber:n,columnNumber:r,error:On(o||a||e),evt:On(a||e),typeName:u,stackDetails:Fn(i||o||a),errorSrc:s}},zn.CreateFromInterface=function(t,e,n,r){var o=e.exceptions&&_(e.exceptions,function(e){return jn.CreateFromInterface(t,e)});return new zn(t,m({},e,{exceptions:o}),n,r)},zn.prototype.toInterface=function(){var e=this.exceptions,t=this.properties,n=this.measurements,r=this.severityLevel;this.ver;var o=this.problemGroup,a=this.id,i=this.isManual;return{ver:"4.0",exceptions:e instanceof Array&&_(e,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:t,measurements:n,problemGroup:o,id:a,isManual:i}},zn.CreateSimpleException=function(e,t,n,r,o,a){return{exceptions:[{hasFullStack:!0,message:e,stack:o,typeName:t}]}},zn.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",zn.dataType="ExceptionData",zn.formatError=On,zn);function zn(e,t,n,r,o,a){var i,s=Un.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},E(i=t)&&"ver"in i&&"exceptions"in i&&"properties"in i?(s.exceptions=t.exceptions,s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),s.ver=2,A(t.isManual)||(s.isManual=t.isManual)):(s.exceptions=[new jn(e,t,n=n||{})],s.properties=mt(e,n),s.measurements=vt(e,r),o&&(s.severityLevel=o),a&&(s.id=a)),s}var Gn,jn=(h(_n,Gn=xn),_n.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&_(this.parsedStack,function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[wn],parsedStack:e||undefined}},_n.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&_(t.parsedStack,function(e){return Vn.CreateFromInterface(e)})||t.parsedStack;return new _n(e,m({},t,{parsedStack:n}))},_n);function _n(e,l,t){var n,r,o,a=Gn.call(this)||this;return a.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},E(o=l)&&"hasFullStack"in o&&"typeName"in o?(a.typeName=l.typeName,a.message=l.message,a[wn]=l[wn],a.parsedStack=l.parsedStack,a.hasFullStack=l.hasFullStack):(o=(n=l)&&n.evt,O(n)||(n=n[bn]||o||n),a.typeName=dt(e,Pn(n))||kt,a.message=pt(e,Dn(l||n,a.typeName))||kt,l=l[An]||Fn(l),a.parsedStack=function(e){if((e=l.obj)&&0<e.length){var t=[],n=0,r=0;if(G(e,function(e){e=e.toString(),Vn.regex.test(e)&&(e=new Vn(e,n++),r+=e.sizeInBytes,t.push(e))}),32768<r)for(var o=0,a=t.length-1,i=0,s=o,u=a;o<a;){if(32768<(i+=t[o].sizeInBytes+t[a].sizeInBytes)){t.splice(s,u-s+1);break}s=o,u=a,o++,a--}}return t}(),a[wn]=gt(e,(r="",l&&(l.obj?G(l.obj,function(e){r+=e+"\n"}):r=l.src||""),r)),a.hasFullStack=P(a.parsedStack)&&0<a.parsedStack.length,t&&(t.typeName=t.typeName||a.typeName)),a}var Hn,Vn=(h(Wn,Hn=Cn),Wn.CreateFromInterface=function(e){return new Wn(e,null)},Wn.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Wn.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Wn.baseSize=58,Wn);function Wn(e,t){var n,r=Hn.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(n=e,r.level=t,r.method=Nn,r.assembly=V(n),r.fileName="",r.line=0,(n=n.match(Wn.regex))&&5<=n.length&&(r.method=V(n[2])||r.method,r.fileName=V(n[4]),r.line=parseInt(n[5])||0)):(r.level=e.level,r.method=e.method,r.assembly=e.assembly,r.fileName=e.fileName,r.line=e.line,r.sizeInBytes=0),r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=Wn.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}var qn,Kn=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}};(Tr=qn={})[Tr.Measurement=0]="Measurement",Tr[Tr.Aggregation=1]="Aggregation";var Xn,Jn=(h(Zn,Xn=function(){this.kind=qn.Measurement}),Zn);function Zn(){var e=null!==Xn&&Xn.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}var Yn,Qn=(h($n,Yn=Kn),$n.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",$n.dataType="MetricData",$n);function $n(e,t,n,r,o,a,i,s){var u=Yn.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Jn;return l.count=0<r?r:undefined,l.max=isNaN(a)||null===a?undefined:a,l.min=isNaN(o)||null===o?undefined:o,l.name=dt(e,t)||kt,l.value=n,u.metrics=[l],u.properties=mt(e,i),u.measurements=vt(e,s),u}var er,tr=(h(nr,er=Er),nr);function nr(){var e=er.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var rr,or=(h(ar,rr=tr),ar.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",ar.dataType="PageviewData",ar);function ar(e,t,n,r,o,a,i){var s=rr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=ht(e,i),s.url=ft(e,n),s.name=dt(e,t)||kt,isNaN(r)||(s.duration=Nt(r)),s.properties=mt(e,o),s.measurements=vt(e,a),s}var ir,sr=(h(ur,ir=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),ur.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ur.dataType="RemoteDependencyData",ur);function ur(e,t,n,r,o,a,i,s,u,l,c,d){void 0===u&&(u="Ajax");var f=ir.call(this)||this;f.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},f.id=t,f.duration=Nt(o),f.success=a,f.resultCode=i+"",f.type=dt(e,u);var p,g,i=(p=e,t=s,i=a=o=r,a=(u=n)&&0<u.length?(g=(s=Xt(u)).host,a||(null!=s.pathname?("/"!=((n=0===s.pathname.length?"/":s.pathname)[0]||"")&&(n="/"+n),i=s.pathname,dt(p,t?t+" "+n:n)):dt(p,u))):g=o,{target:g,name:a,data:i});return f.data=ft(e,r)||i.data,f.target=dt(e,i.target),l&&(f.target=f.target+" | "+l),f.name=dt(e,i.name),f.properties=mt(e,c),f.measurements=vt(e,d),f}var lr,cr=(h(dr,lr=function(){this.ver=2,this.properties={},this.measurements={}}),dr.envelopeType="Microsoft.ApplicationInsights.{0}.Message",dr.dataType="MessageData",dr);function dr(e,t,n,r,o){var a=lr.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},a.message=pt(e,t=t||kt),a.properties=mt(e,r),a.measurements=vt(e,o),n&&(a.severityLevel=n),a}var fr,pr=(h(gr,fr=tr),gr);function gr(){var e=fr.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mr,vr=(h(hr,mr=pr),hr.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",hr.dataType="PageviewPerformanceData",hr);function hr(e,t,n,r,o,a,i){var s=mr.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},s.url=ft(e,n),s.name=dt(e,t)||kt,s.properties=mt(e,o),s.measurements=vt(e,a),i&&(s.domProcessing=i.domProcessing,s.duration=i.duration,s.networkConnect=i.networkConnect,s.perfTotal=i.perfTotal,s.receivedResponse=i.receivedResponse,s.sentRequest=i.sentRequest),s}var Sr,yr=(h(Ir,Sr=pn),Ir);function Ir(e,t){var n=Sr.call(this)||this;return n.aiDataContract={baseType:1,baseData:1},n.baseType=e,n.baseData=t,n}e.SeverityLevel=void 0,(u=e.SeverityLevel||(e.SeverityLevel={}))[u.Verbose=0]="Verbose",u[u.Information=1]="Information",u[u.Warning=2]="Warning",u[u.Error=3]="Error",u[u.Critical=4]="Critical";var Cr=(xr.getConfig=function(e,t,n,r){return void 0===r&&(r=!1),t=(n&&e.extensionConfig&&e.extensionConfig[n]&&!A(e.extensionConfig[n][t])?e.extensionConfig[n]:e)[t],A(t)?r:t},xr);function xr(){}function Nr(e){var t="ai."+e+".";return function(e){return t+e}}var br,wr,Ar=Nr("application"),xn=Nr("device"),Cn=Nr("location"),Tr=Nr("operation"),Kn=Nr("session"),Er=Nr("user"),pr=Nr("cloud"),u=Nr("internal"),Er=(wr={applicationVersion:Ar("ver"),applicationBuild:Ar("build"),applicationTypeId:Ar("typeId"),applicationId:Ar("applicationId"),applicationLayer:Ar("layer"),deviceId:xn("id"),deviceIp:xn("ip"),deviceLanguage:xn("language"),deviceLocale:xn("locale"),deviceModel:xn("model"),deviceFriendlyName:xn("friendlyName"),deviceNetwork:xn("network"),deviceNetworkName:xn("networkName"),deviceOEMName:xn("oemName"),deviceOS:xn("os"),deviceOSVersion:xn("osVersion"),deviceRoleInstance:xn("roleInstance"),deviceRoleName:xn("roleName"),deviceScreenResolution:xn("screenResolution"),deviceType:xn("type"),deviceMachineName:xn("machineName"),deviceVMName:xn("vmName"),deviceBrowser:xn("browser"),deviceBrowserVersion:xn("browserVersion"),locationIp:Cn("ip"),locationCountry:Cn("country"),locationProvince:Cn("province"),locationCity:Cn("city"),operationId:Tr("id"),operationName:Tr("name"),operationParentId:Tr("parentId"),operationRootId:Tr("rootId"),operationSyntheticSource:Tr("syntheticSource"),operationCorrelationVector:Tr("correlationVector"),sessionId:Kn("id"),sessionIsFirst:Kn("isFirst"),sessionIsNew:Kn("isNew"),userAccountAcquisitionDate:Er("accountAcquisitionDate"),userAccountId:Er("accountId"),userAgent:Er("userAgent"),userId:Er("id"),userStoreRegion:Er("storeRegion"),userAuthUserId:Er("authUserId"),userAnonymousUserAcquisitionDate:Er("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Er("authUserAcquisitionDate"),cloudName:pr("name"),cloudRole:pr("role"),cloudRoleVer:pr("roleVer"),cloudRoleInstance:pr("roleInstance"),cloudEnvironment:pr("environment"),cloudLocation:pr("location"),cloudDeploymentUnit:pr("deploymentUnit"),internalNodeName:u("nodeName"),internalSdkVersion:u("sdkVersion"),internalAgentVersion:u("agentVersion"),internalSnippet:u("snippet"),internalSdkSrc:u("sdkSrc")},h(kr,br=function(){var n=this;R(wr,function(e,t){n[e]=t})}),kr);function kr(){return br.call(this)||this}function Mr(){}Mr.create=function(e,t,n,r,o,a){if(n=dt(r,n)||kt,A(e)||A(t)||A(n))throw Error("Input doesn't contain all required fields");var i={name:n,time:z(new Date),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};return A(o)||R(o,function(e,t){i.data[e]=t}),i},pr=Mr,u=new Er,e.AIBase=fn,e.AIData=pn,e.AnalyticsPluginIdentifier="ApplicationInsightsAnalytics",e.BreezeChannelIdentifier="AppInsightsChannelPlugin",e.ConfigurationManager=Cr,e.ConnectionStringParser=dn,e.ContextTagKeys=Er,e.CorrelationIdHelper=on,e.CtxTagKeys=u,e.DEFAULT_BREEZE_ENDPOINT=Et,e.Data=yr,e.DataSanitizer=It,e.DateTimeUtils=un,e.DisabledPropertyName="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",e.Envelope=vn,e.Event=yn,e.Exception=Bn,e.Extensions={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},e.HttpMethod="http.method",e.Metric=Qn,e.PageView=or,e.PageViewData=tr,e.PageViewPerformance=vr,e.ProcessLegacy="ProcessLegacy",e.PropertiesPluginIdentifier="AppInsightsPropertiesPlugin",e.RemoteDependencyData=sr,e.RequestHeaders=ut,e.SampleRate="sampleRate",e.TelemetryItemCreator=pr,e.Trace=cr,e.UrlHelper=rn,e.Util=nn,e.createDomEvent=Ct,e.dataSanitizeException=gt,e.dataSanitizeId=ht,e.dataSanitizeInput=St,e.dataSanitizeKey=ct,e.dataSanitizeKeyAndAddUniqueness=lt,e.dataSanitizeMeasurements=vt,e.dataSanitizeMessage=pt,e.dataSanitizeProperties=mt,e.dataSanitizeString=dt,e.dataSanitizeUrl=ft,e.dateTimeUtilsDuration=sn,e.dateTimeUtilsNow=an,e.dsPadNumber=yt,e.getExtensionByName=wt,e.isBeaconApiSupported=bt,e.isCrossOriginError=At,e.isInternalApplicationInsightsEndpoint=tn,e.msToTimeSpan=Nt,e.parseConnectionString=ln,e.strNotSpecified=kt,e.stringToBoolOrDefault=xt,e.urlGetAbsoluteUrl=Jt,e.urlGetCompleteUrl=Yt,e.urlGetPathName=Zt,e.urlParseFullHost=$t,e.urlParseHost=Qt,e.urlParseUrl=Xt,e.utlCanUseLocalStorage=Ot,e.utlCanUseSessionStorage=Gt,e.utlDisableStorage=Pt,e.utlGetLocalStorage=Ut,e.utlGetSessionStorage=_t,e.utlGetSessionStorageKeys=jt,e.utlRemoveSessionStorage=Vt,e.utlRemoveStorage=zt,e.utlSetLocalStorage=Bt,e.utlSetSessionStorage=Ht,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch(o){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
//# sourceMappingURL=applicationinsights-common.min.js.map
{
"name": "@microsoft/applicationinsights-common",
"version": "2.6.3",
"version": "2.6.4",
"description": "Microsoft Application Insights Common JavaScript Library",

@@ -19,2 +19,3 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",

"build:browser": "rollup -c",
"rebuild": "npm run build",
"test": "grunt commontest",

@@ -28,8 +29,8 @@ "lint": "tslint -p tsconfig.json",

"@microsoft/api-extractor": "^7.9.11",
"grunt": "^1.3.0",
"grunt-cli": "^1.3.2",
"grunt-contrib-qunit": "^3.1.0",
"grunt-ts": "^6.0.0-beta.22",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",

@@ -47,3 +48,3 @@ "rollup-plugin-cleanup": "3.2.1",

"@microsoft/applicationinsights-shims": "2.0.0",
"@microsoft/applicationinsights-core-js": "2.6.3",
"@microsoft/applicationinsights-core-js": "2.6.4",
"@microsoft/dynamicproto-js": "^1.1.4"

@@ -50,0 +51,0 @@ },

@@ -92,3 +92,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

/**
* @description If true, on a pageview,the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. Default is false.
* @description If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. It is sent as a custom metric named PageVisitTime in milliseconds and is calculated via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less). Default is false.
* @type {boolean}

@@ -123,2 +123,10 @@ * @memberof IConfig

/**
* @description Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request. For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
* @type {string[] | RegExp[]}
* @memberof IConfig
* @defaultValue undefined.
*/
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
/**
* @description If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called. If false and no custom duration is provided to trackPageView, the page view performance is calculated using the navigation timing API. Default is false

@@ -301,3 +309,3 @@ * @type {boolean}

/**
* @description An optional value that will be used as name postfix for localStorage and cookie name.
* @description An optional value that will be used as name postfix for localStorage and session cookie name.
* @type {string}

@@ -310,2 +318,18 @@ * @memberof IConfig

/**
* @description An optional value that will be used as name postfix for session cookie name. If undefined, namePrefix is used as name postfix for session cookie name.
* @type {string}
* @memberof IConfig
* @defaultValue null
*/
sessionCookiePostfix?: string;
/**
* @description An optional value that will be used as name postfix for user cookie name. If undefined, no postfix is added on user cookie name.
* @type {string}
* @memberof IConfig
* @defaultValue null
*/
userCookiePostfix?: string;
/**
* @description An optional value that will track Request Header through trackDependency function.

@@ -312,0 +336,0 @@ * @type {boolean}

@@ -48,2 +48,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

ignoreHeaders?: string[];
/**
* Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
* For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
* Default is undefined.
*/
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
}

@@ -42,2 +42,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

} catch (exception) {
// eslint-disable-next-line no-empty
}

@@ -44,0 +45,0 @@

@@ -255,7 +255,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

try {
var funcNameRegex = /function (.{1,})\(/;
var funcNameRegex = /function (.{1,200})\(/;
var results = (funcNameRegex).exec((errorType).constructor.toString());
typeName = (results && results.length > 1) ? results[1] : "";
} catch (e) {
// Ignore
// eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do
}

@@ -295,2 +295,3 @@ }

} catch (e) {
// eslint-disable-next-line no-empty -- Ignoring any failures as nothing we can do
}

@@ -496,3 +497,3 @@ }

// methodName=$2, fileName=$4, lineNo=$5, column=$6
public static regex = /^([\s]+at)?[\s]*([^\@\()]+?)[\s]*(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
public static regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
public static baseSize = 58; // '{"method":"","level":,"assembly":"","fileName":"","line":}'.length

@@ -499,0 +500,0 @@ public sizeInBytes = 0;

@@ -68,3 +68,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

export function urlParseHost(url: string, inclPort?: boolean) {
let fullHost = urlParseFullHost(url, inclPort);
let fullHost = urlParseFullHost(url, inclPort) || "";
if (fullHost) {

@@ -71,0 +71,0 @@ const match = fullHost.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);

@@ -241,5 +241,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

NotSpecified: strNotSpecified,
createDomEvent: createDomEvent,
createDomEvent,
disableStorage: utlDisableStorage,
isInternalApplicationInsightsEndpoint: isInternalApplicationInsightsEndpoint,
isInternalApplicationInsightsEndpoint,
canUseLocalStorage: utlCanUseLocalStorage,

@@ -258,18 +258,18 @@ getStorage: utlGetLocalStorage,

setCookie: coreSetCookie,
stringToBoolOrDefault: stringToBoolOrDefault,
stringToBoolOrDefault,
getCookie: coreGetCookie,
deleteCookie: coreDeleteCookie,
trim: strTrim,
newId: newId,
random32: function() {
newId,
random32() {
return random32(true);
},
generateW3CId: generateW3CId,
isArray: isArray,
isError: isError,
isDate: isDate,
generateW3CId,
isArray,
isError,
isDate,
toISOStringForIE8: toISOString,
getIEVersion: getIEVersion,
msToTimeSpan: msToTimeSpan,
isCrossOriginError: isCrossOriginError,
getIEVersion,
msToTimeSpan,
isCrossOriginError,
dump: dumpObj,

@@ -340,3 +340,3 @@ getExceptionName: coreGetExceptionName,

*/
canIncludeCorrelationHeader: function(config: ICorrelationConfig, requestUrl: string, currentHost?: string) {
canIncludeCorrelationHeader(config: ICorrelationConfig, requestUrl: string, currentHost?: string) {
if (!requestUrl || (config && config.disableCorrelationHeaders)) {

@@ -361,3 +361,3 @@ return false;

if ((!config || !config.enableCorsCorrelation) && requestHost !== currentHost) {
if ((!config || !config.enableCorsCorrelation) && (requestHost && requestHost !== currentHost)) {
return false;

@@ -370,3 +370,3 @@ }

arrForEach(includedDomains, (domain) => {
const regex = new RegExp(domain.toLowerCase().replace(/\./g, "\.").replace(/\*/g, ".*"));
const regex = new RegExp(domain.toLowerCase().replace(/\\/g, "\\\\").replace(/\./g, "\\.").replace(/\*/g, ".*"));
matchExists = matchExists || regex.test(requestHost);

@@ -386,3 +386,3 @@ });

for (let i = 0; i < excludedDomains.length; i++) {
const regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\./g, "\.").replace(/\*/g, ".*"));
const regex = new RegExp(excludedDomains[i].toLowerCase().replace(/\\/g, "\\\\").replace(/\./g, "\\.").replace(/\*/g, ".*"));
if (regex.test(requestHost)) {

@@ -401,3 +401,3 @@ return false;

*/
getCorrelationContext: function(responseHeader: string) {
getCorrelationContext(responseHeader: string) {
if (responseHeader) {

@@ -414,3 +414,3 @@ const correlationId = CorrelationIdHelper.getCorrelationContextValue(responseHeader, RequestHeaders.requestContextTargetKey);

*/
getCorrelationContextValue: function(responseHeader: string, key: string) {
getCorrelationContextValue(responseHeader: string, key: string) {
if (responseHeader) {

@@ -417,0 +417,0 @@ const keyValues = responseHeader.split(",");

@@ -78,3 +78,3 @@ import { IConfiguration, ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';

/**
* @description If true, on a pageview,the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. Default is false.
* @description If true, on a pageview, the previous instrumented page's view time is tracked and sent as telemetry and a new timer is started for the current pageview. It is sent as a custom metric named PageVisitTime in milliseconds and is calculated via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less). Default is false.
* @type {boolean}

@@ -105,2 +105,9 @@ * @memberof IConfig

/**
* @description Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request. For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
* @type {string[] | RegExp[]}
* @memberof IConfig
* @defaultValue undefined.
*/
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
/**
* @description If true, default behavior of trackPageView is changed to record end of page view duration interval when trackPageView is called. If false and no custom duration is provided to trackPageView, the page view performance is calculated using the navigation timing API. Default is false

@@ -261,3 +268,3 @@ * @type {boolean}

/**
* @description An optional value that will be used as name postfix for localStorage and cookie name.
* @description An optional value that will be used as name postfix for localStorage and session cookie name.
* @type {string}

@@ -269,2 +276,16 @@ * @memberof IConfig

/**
* @description An optional value that will be used as name postfix for session cookie name. If undefined, namePrefix is used as name postfix for session cookie name.
* @type {string}
* @memberof IConfig
* @defaultValue null
*/
sessionCookiePostfix?: string;
/**
* @description An optional value that will be used as name postfix for user cookie name. If undefined, no postfix is added on user cookie name.
* @type {string}
* @memberof IConfig
* @defaultValue null
*/
userCookiePostfix?: string;
/**
* @description An optional value that will track Request Header through trackDependency function.

@@ -271,0 +292,0 @@ * @type {boolean}

@@ -39,2 +39,8 @@ import { DistributedTracingModes } from '../Enums';

ignoreHeaders?: string[];
/**
* Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
* For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
* Default is undefined.
*/
excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
}

@@ -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.16.1"
"packageVersion": "7.17.1"
}
]
}

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc