@microsoft/applicationinsights-properties-js 2.7.5-nightly.2202-11 → 2.7.5-nightly.2203-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +2 -2
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +2 -2
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +2 -2
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +3 -3
- package/src/Context/Internal.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.7.5-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.7.5-nightly.2203-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(e){"use strict";var F="function",a="object",r="undefined",o="prototype",_="hasOwnProperty",t=Object,O=t[o],B=t.create,n=t.defineProperty,V=O[_],i=null;function j(e){return void 0===e&&(e=!0),i&&e||(typeof globalThis!==r&&globalThis&&(i=globalThis),typeof self!==r&&self&&(i=self),typeof window!==r&&window&&(i=window),typeof global!==r&&global&&(i=global)),i}function W(e){throw new TypeError(e)}(j()||{}).Symbol,(j()||{}).Reflect;var q=function(e,n){return(q=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[_](t)&&(e[t]=n[t])})(e,n)};function G(e,n){function t(){this.constructor=e}typeof n!==F&&null!==n&&W("Class extends value "+n+" is not a constructor or null"),q(e,n),e[o]=null===n?function(e){if(B)return B(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==F&&W("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var K="constructor",p="prototype",z="function",H="_dynInstFuncs",J="_isDynProxy",v="_dynClass",Z="_dynInstChk",X=Z,Y="_dfOpts",$="_unknown_",Q="__proto__",ee="useBaseInst",ne="setInstFuncs",te=Object,oe=te.getPrototypeOf,re=0;function h(e,n){return e&&te[p].hasOwnProperty.call(e,n)}function ie(e){return e&&(e===te[p]||e===Array[p])}function ae(e){return ie(e)||e===Function[p]}function m(e){if(e){if(oe)return oe(e);e=e[Q]||e[p]||(e[K]?e[K][p]:null);if(e)return e}return null}function se(e,n){var t=[],o=te.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&h(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function ue(e,n,t){return n!==K&&typeof e[n]===z&&(t||h(e,n))}function le(e){throw new TypeError("DynamicProto: "+e)}function ce(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function fe(e,n){return h(e,p)?e.name||n||$:((e||{})[K]||{}).name||n||$}function C(e,o,n,t){h(e,p)||le("theClass is an invalid class definition.");var r,i,a,s,u,l,c=e[p],f=(function(e){if(oe)for(var n=[],t=m(o);t&&!ae(t)&&!ce(n,t);){if(t===e)return 1;n.push(t),t=m(t)}}(c)||le("["+fe(e)+"] is not in class hierarchy of ["+fe(o)+"]"),null),e=(h(c,v)?f=c[v]:(f="_dynCls$"+fe(e,"_")+"$"+re,re++,c[v]=f),C[Y]),d=!!e[ee],g=(d&&t&&t[ee]!==undefined&&(d=!!t[ee]),i={},se(r=o,function(e){!i[e]&&ue(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[J]&&i&&!1!==(o=e[H]||{})[X]&&(r=(o[n[v]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(se(t,function(e){r[e]=o(n,t,e)}),m(e)),s=[];a&&!ae(a)&&!ce(s,a);)se(a,function(e){!r[e]&&ue(a,e,!oe)&&(r[e]=o(n,a,e))}),s.push(a),a=m(a);return r}(c,o,g,d)),!!oe&&!!e[ne]);a=c,n=f,s=o,u=g,e=!1!==(d=d&&t?!!t[ne]:d),ie(a)||(c=s[H]=s[H]||{},l=c[n]=c[n]||{},!1!==c[X]&&(c[X]=!!e),se(s,function(e){var t,o,r;ue(s,e,!1)&&s[e]!==u[e]&&(l[e]=s[e],delete s[e],h(a,e)&&(!a[e]||a[e][J])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&h(t,v)){var i=e[H]||{};if((r=(i[t[v]]||{})[n])||le("Missing ["+n+"] "+z),!r[Z]&&!1!==i[X]){for(var a=!h(e,n),s=m(e),u=[];a&&s&&!ae(s)&&!ce(u,s);){var l=s[n];if(l){a=l===o;break}u.push(s),s=m(s)}try{a&&(e[n]=r),r[Z]=1}catch(c){i[X]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?m(t)[e]:n)!==z&&le("["+e+"] is not a "+z),n)).apply(this,arguments)})[J]=1,r)))}))}C[Y]={setInstFuncs:!0,useBaseInst:!0},(s=I=I||{})[s.CRITICAL=1]="CRITICAL",s[s.WARNING=2]="WARNING";var I,y={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},de="toISOString",ge="endsWith",pe="trim",s="toString",ve=n,he=t.keys,n=String[o],me=n[pe],Ce=n[ge],Ie=Date[o][de],n=Array.isArray,ye=O[s];function g(e){return e===undefined||typeof e===r}function x(e){return null===e||g(e)}function xe(e){return!x(e)}function S(e){return!(!e||typeof e!==F)}function Se(e,n){if(e)for(var t in e)V.call(e,t)&&n.call(e,t,e[t])}function w(e,n){return!(!e||!n||!~e.indexOf(n))}V[s].call(t);var we=n||function(e){return!(!e||"[object Array]"!==ye.call(e))};function T(e){return"string"==typeof e}function Te(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function N(e){return e&&(me&&e[pe]?e[pe]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function be(e){return e&&"[object Error]"===ye.call(e)?e.name:""}function A(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function f(e,n,t){var o;return e?!(o=e[n])&&x(o)&&(o=g(t)?{}:t,e[n]=o):o=g(t)?{}:t,o}function Me(e){return!!e}var Pe="window",Le="navigator",Re="location",De="JSON",Ee="msie",Ue="trident/",Fe=null,_e=null,Oe=!1;function l(e){var n=j();return n&&n[e]?n[e]:e===Pe&&Be()?window:null}function Be(){return typeof window===a&&window}function Ve(){return typeof navigator===a&&navigator?navigator:l(Le)}function je(e){if(e&&Oe){e=l("__mockLocation");if(e)return e}return typeof location===a&&location?location:l(Re)}function We(){return typeof JSON===a&&JSON||null!==l(De)}function qe(){return We()?JSON||l(De):null}function Ge(){var e=Ve();return!e||e.userAgent===_e&&null!==Fe||(e=((_e=e.userAgent)||"").toLowerCase(),Fe=w(e,Ee)||w(e,Ue)),Fe}function Ke(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":We()&&(t=qe().stringify(e)),n+t}var ze=null;function He(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Je(e,n){var t,o=typeof console!==r?console:l("console");o&&(t="log",S(o[t=o[e]?e:t])&&o[t](n))}Xe.dataType="MessageData";var Ze=Xe;function Xe(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",We()&&(t=qe().stringify(o)),e=(n?" message:"+He(n):"")+(o?" props:"+He(t):"");this.message+=e}function Ye(e,n){return(e||{}).logger||new $e(n)}var $e=function Tt(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};C(Tt,this,function(i){function e(e,n){e=r[e];return x(e)?n:e}function a(e,n){var t,o=(t=(t=ze)||!0===r.disableDbgExt?t:ze||(o=l("Microsoft"),ze=o?o.ApplicationInsights:ze))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}x(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new Ze(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===I.CRITICAL?"errorToConsole":"warnToConsole";g(n.message)?a("throw"+(e===I.CRITICAL?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!u[r]&&e<=o&&(i[t](n.message),u[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){Je("warn",e),a("warning",e)},i.errorToConsole=function(e){Je("error",e),a("error",e)},i.resetInternalMessageCount=function(){s=0,u={}},i.logInternalMessage=function(e,n){var t,o;s>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,u[t]?o=!1:u[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),s++,a(e===I.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new Ze(y.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===I.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},Qe=(u.ParentContextKey="parent",u.ChildrenContextKey="childEvts",u);function u(e,r,n){var o,i=this,a=!1;i.start=ke(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},S(r)&&(a=function(e){if(ve)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&S(r)&&(o=r(),r=null),o}};return ve(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===u.ParentContextKey||e===u.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===u.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===u.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(u.ChildrenContextKey);if(we(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=ke()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&S(r)&&(i.payload=r())}}var en="CoreUtils.doPerf";function nn(e,n,t,o,r){if(e)if(e=S(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(en);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(Qe.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(Qe.ChildrenContextKey))||(i=[],s.setCtx(Qe.ChildrenContextKey,i)),i.push(a))),e.setCtx(en,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(en,s)}}t()}var tn=function(r,n){var i=this,a=null,s=S(r.processTelemetry),u=S(r.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return r},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,o){o=o||n;var e=r?r.identifier:"TelemetryPluginChain";nn(o?o.core():null,function(){return e+":processTelemetry"},function(){if(r&&s){i._hasRun=!0;try{o.setNext(a),u&&r.setNextPlugin(a),a&&(a._hasRun=!1),r.processTelemetry(t,o)}catch(n){var e=a&&a._hasRun;a&&e||o.diagLog().throwInternal(I.CRITICAL,y.PluginException,"Plugin ["+r.identifier+"] failed during processTelemetry - "+Ke(n)),a&&!e&&a.processTelemetry(t,o)}}else a&&(i._hasRun=!0,a.processTelemetry(t,o))},function(){return{item:t}},!t.sync)}};function on(e,n){var t=[];if(e&&0<e.length)for(var o=null,r=0;r<e.length;r++){var i=e[r];i&&S(i.processTelemetry)&&(i=new tn(i,n),t.push(i),o&&o.setNext(i),o=i)}return 0<t.length?t[0]:null}var rn=function Nt(e,r,t,n){var o,i,a,s,u=this,l=null;null!==n&&(e&&S(e.getPlugin)?l=function(e,n,t){var o=[],r=!t;if(e)for(;e;){var i=e.getPlugin();!r&&i!==t||(r=!0,o.push(i)),e=e.getNext()}return r||o.push(t),on(o,n)}(e,u,n||e.getPlugin()):n?(o=u,a=e,s=!1,(i=n)&&e&&(a=[],Te(e,function(e){!s&&e!==i||(s=!0,a.push(e))})),i&&!s&&(a=a||[]).push(i),l=on(a,o)):g(n)&&(l=on(e,u))),u.core=function(){return t},u.diagLog=function(){return Ye(t,r)},u.getCfg=function(){return r},u.getExtCfg=function(e,n){var t,o;return void 0===n&&(n={}),(t=r&&(o=r.extensionConfig)&&e?o[e]:t)||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var o,e=u.getExtCfg(e,null);return e&&!x(e[n])?o=e[n]:r&&!x(r[n])&&(o=r[n]),x(o)?t:o},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Nt((e=void 0===e?null:e)||l,r,t,n)}},an="getPlugin",O=(sn.prototype.initialize=function(e,n,t,o){this._baseTelInit(e,n,t,o)},sn);function sn(){var i=this,a=!1,s=null,u=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){u=e},i.processNext=function(e,n){n?n.processNext(e):u&&S(u.processTelemetry)&&u.processTelemetry(e,null)},i._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new rn(null,{},i.core),e=u&&u[an]?n.createNew(null,u[an]):n.createNew(null,u)),e},i._baseTelInit=function(e,n,t,o){e&&A(e,"extensionConfig",[],null,x),!o&&n&&(o=n.getProcessTelContext().getNext());var r=u;u&&u[an]&&(r=u[an]()),i.core=n,s=new rn(o,e,n,r),a=!0}}var un="toGMTString",ln="toUTCString",cn="cookie",fn="expires",dn="enabled",gn="isCookieUseDisabled",pn="disableCookiesUsage",k="_ckMgr",b="",vn=null,hn=null,mn=null,Cn=typeof document===a&&document?document:l("document"),In={},yn={};function xn(e){return!e||e.isEnabled()}function Sn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[k]||wn(n)),t||(e=(e||{}).logger,(o=wn[k]||yn[k])||(o=wn[k]=wn(n,e),yn[k]=o),t=o),t}function wn(e,r){A(t=(e=e||yn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,xe,x),A(t,"path",e.cookiePath||"/",null,x),x(t[dn])&&(n=void 0,g(e[gn])||(n=!e[gn]),g(e[pn])||(n=!e[pn]),t[dn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,o=!1!==l[dn],d={isEnabled:function(){var e=o&&Tn(r),n=yn[k];return e&&n&&d!==n?xn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return xn(d)&&(i={},-1!=(s=(a=N(n||b)).indexOf(";"))&&(a=N(n.substring(0,s)),i=Nn(n.substring(1+s))),A(i,"domain",o||f,Me,g),x(t)||(s=Ge(),g(i[fn])&&0<(n=ke()+1e3*t)&&((o=new Date).setTime(n),A(i,fn,An(o,s?un:ln)||An(o,s?un:ln)||b,Me)),s||A(i,"max-age",b+t,null,g)),(n=je())&&"https:"===n.protocol&&(A(i,"secure",null,null,g),(hn=null===hn?!(T(o=(Ve()||{}).userAgent)&&(w(o,"CPU iPhone OS 12")||w(o,"iPad; CPU OS 12")||w(o,"Macintosh; Intel Mac OS X 10_14")&&w(o,"Version/")&&w(o,"Safari")||w(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Ce)return e[ge](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||w(o,"Chrome/5")||w(o,"Chrome/6")||w(o,"UnrealEngine")&&!w(o,"Chrome")||w(o,"UCBrowser/12")||w(o,"UCBrowser/11"))):hn)&&A(i,"SameSite","None",null,g)),A(i,"path",r||c,null,g),(l.setCookie||bn)(e,kn(a,i)),u=!0),u},get:function(e){var n=b;return xn(d)?(l.getCookie||function(e){var n,t=b;return Cn&&(n=Cn[cn]||b,mn!==n&&(In=Nn(n),mn=n),t=N(In[e]||b)),t})(e):n},del:function(e,n){return!!xn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return Tn(r)&&((t={}).path=n||"/",t[fn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Ge()||(n["max-age"]="0"),(l.delCookie||bn)(e,kn(b,n)),o=!0),o}};return d[k]=d}function Tn(e){if(null===vn){vn=!1;try{vn=(Cn||{})[cn]!==undefined}catch(n){e&&e.throwInternal(I.WARNING,y.CannotAccessCookie,"Cannot access document.cookie - "+be(n),{exception:Ke(n)})}}return vn}function Nn(e){var t={};return e&&e.length&&Te(N(e).split(";"),function(e){var n;(e=N(e||b))&&(-1==(n=e.indexOf("="))?t[e]=null:t[N(e.substring(0,n))]=N(e.substring(1+n)))}),t}function An(e,n){return S(e[n])?e[n]():null}function kn(e,n){var t=e||b;return Se(n,function(e,n){t+="; "+e+(x(n)?b:"="+n)}),t}function bn(e,n){Cn&&(Cn[cn]=e+"="+n)}var Mn=4294967296,c=4294967295,Pn=!1,Ln=123456789,Rn=987654321;function Dn(e){var n=l("crypto")||l("msCrypto"),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&c:Ge()?(Pn||function(){try{var e=2147483647&ke();(n=(Math.random()*Mn^e)+e)<0&&(n>>>=0),Ln=123456789+n&c,Rn=987654321-n&c,Pn=!0}catch(t){}var n}(),n=((Rn=36969*(65535&Rn)+(Rn>>16)&c)<<16)+(65535&(Ln=18e3*(65535&Ln)+(Ln>>16)&c))>>>0&c|0,(n>>>=0)&c):Math.floor(Mn*Math.random()|0);return e||(n>>>=0),n}function En(e){void 0===e&&(e=22);for(var n=Dn()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Dn()<<2&4294967295|3&n)>>>0,t=0);return o}function Un(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=N(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(I.WARNING,y.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(o=void 0,(o="00"+s).substr(o.length-3));a=u}return a}function Fn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=N(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(I.WARNING,y.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function _n(o,e){var r;return e&&(r={},Se(e,function(e,n){if(n&&typeof n===a&&We())try{n=qe().stringify(n)}catch(t){o&&o.throwInternal(I.WARNING,y.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Fn(o,n,8192),e=Un(o,e,r),r[e]=n}),e=r),e}function On(e,n,t,o){var r;return n&&(n=N(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(I.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(s=Bn=Bn||{})[s.LocalStorage=0]="LocalStorage",s[s.SessionStorage=1]="SessionStorage";var Bn,Vn,jn=undefined;function Wn(){return Gn()?qn(Bn.LocalStorage):null}function qn(e){try{if(x(j()))return null;var n=new Date,t=l(e===Bn.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function Gn(){return jn=jn===undefined?!!qn(Bn.LocalStorage):jn}function Kn(e,n){var t=Wn();if(null!==t)try{return t.getItem(n)}catch(o){jn=!1,e.throwInternal(I.WARNING,y.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+be(o),{exception:Ke(o)})}return null}function zn(e,n,t){var o=Wn();if(null!==o)try{o.setItem(n,t)}catch(r){jn=!1,e.throwInternal(I.WARNING,y.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+be(r),{exception:Ke(r)})}}function Hn(e,n){var t=Wn();if(null!==t)try{t.removeItem(n)}catch(o){jn=!1,e.throwInternal(I.WARNING,y.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+be(o),{exception:Ke(o)})}}function Jn(){var e=Vn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}G(Jn,Vn=function(){this.ver=2,this.properties={},this.measurements={}}),G(Yn,Zn=Jn),Yn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Yn.dataType="PageviewData";var Zn,Xn=Yn;function Yn(e,n,t,o,r,i,a){var s,u,l,c=Zn.call(this)||this;return c.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},c.id=a&&On(e,a,128,y.IdTooLong).toString(),c.url=On(e,t,2048,y.UrlTooLong),c.name=Fn(e,n)||"not_specified",isNaN(o)||(c.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(s=Math.floor(a/864e5))?s+".":"")+(s=(s=""+Math.floor(a/36e5)%24).length<2?"0"+s:s)+":"+o+":"+t+"."+n)),c.properties=_n(e,r),c.measurements=(u=e,(a=i)&&(l={},Se(a,function(e,n){e=Un(u,e,l),l[e]=n}),a=l),a),c}function d(e){var n="ai."+e+".";return function(e){return n+e}}var $n,Qn,n=d("application"),s=d("device"),M=d("location"),P=d("operation"),et=d("session"),L=d("user"),R=d("cloud"),nt=d("internal");function tt(){return $n.call(this)||this}Qn={applicationVersion:n("ver"),applicationBuild:n("build"),applicationTypeId:n("typeId"),applicationId:n("applicationId"),applicationLayer:n("layer"),deviceId:s("id"),deviceIp:s("ip"),deviceLanguage:s("language"),deviceLocale:s("locale"),deviceModel:s("model"),deviceFriendlyName:s("friendlyName"),deviceNetwork:s("network"),deviceNetworkName:s("networkName"),deviceOEMName:s("oemName"),deviceOS:s("os"),deviceOSVersion:s("osVersion"),deviceRoleInstance:s("roleInstance"),deviceRoleName:s("roleName"),deviceScreenResolution:s("screenResolution"),deviceType:s("type"),deviceMachineName:s("machineName"),deviceVMName:s("vmName"),deviceBrowser:s("browser"),deviceBrowserVersion:s("browserVersion"),locationIp:M("ip"),locationCountry:M("country"),locationProvince:M("province"),locationCity:M("city"),operationId:P("id"),operationName:P("name"),operationParentId:P("parentId"),operationRootId:P("rootId"),operationSyntheticSource:P("syntheticSource"),operationCorrelationVector:P("correlationVector"),sessionId:et("id"),sessionIsFirst:et("isFirst"),sessionIsNew:et("isNew"),userAccountAcquisitionDate:L("accountAcquisitionDate"),userAccountId:L("accountId"),userAgent:L("userAgent"),userId:L("id"),userStoreRegion:L("storeRegion"),userAuthUserId:L("authUserId"),userAnonymousUserAcquisitionDate:L("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:L("authUserAcquisitionDate"),cloudName:R("name"),cloudRole:R("role"),cloudRoleVer:R("roleVer"),cloudRoleInstance:R("roleInstance"),cloudEnvironment:R("environment"),cloudLocation:R("location"),cloudDeploymentUnit:R("deploymentUnit"),internalNodeName:nt("nodeName"),internalSdkVersion:nt("sdkVersion"),internalAgentVersion:nt("agentVersion"),internalSnippet:nt("snippet"),internalSdkSrc:nt("sdkSrc")},G(tt,$n=function(){var t=this;Se(Qn,function(e,n){t[e]=n})});var ot="user",rt="device",it="trace",at="web",st="app",ut="os",D=new tt,lt=function(){},ct=(E.acquisitionSpan=864e5,E.renewalSpan=18e5,E.cookieUpdateInterval=6e4,E);function E(n,e){var c,f,d=Ye(e),g=Sn(e);C(E,this,function(s){S((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return E.acquisitionSpan}),S(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return E.renewalSpan}),s.config=n;var e=s.config.sessionCookiePostfix&&s.config.sessionCookiePostfix()?s.config.sessionCookiePostfix():s.config.namePrefix&&s.config.namePrefix()?s.config.namePrefix():"";function u(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(I.WARNING,y.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(I.WARNING,y.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(s){d.throwInternal(I.CRITICAL,y.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+be(s),{exception:Ke(s)})}return t}function l(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,s.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(c(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}c=function(){return"ai_session"+e},s.automaticSession=new lt,s.update=function(){var e,n,t,o=ke(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(c()))&&S(a.split)?t=u(n,a):(a=Kn(d,c()))&&(t=u(n,a)),r=!(t||n.id)),s.config.sessionExpirationMs());!r&&0<a&&(t=s.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=s.config||{}).getNewId?n.getNewId():null)||En,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,l(s.automaticSession,a),Gn()||d.throwInternal(I.WARNING,y.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||E.cookieUpdateInterval<o-f)&&l(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;zn(d,c(),[n,t,e].join("|"))}})}var ft=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.7.5-nightly.2202-11"};function pt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}U.cookieSeparator="|",U.userCookieName="ai_user",U.authUserCookieName="ai_authUser";var vt=U;function U(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=Ye(e),l=Sn(e);C(U,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return U.userCookieName+e},l.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||En)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Ie)return e[de]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=l.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(U.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(U.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Hn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=l.get(U.authUserCookieName);n&&((n=(n=decodeURI(n)).split(U.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!pt(e)||n&&!pt(n)?u.throwInternal(I.WARNING,y.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(U.cookieSeparator)),t&&l.set(U.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,l.del(U.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(U.cookieSeparator))}})}var ht=function(){},mt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",o=0;o<4;o++)t+=n[15&(e=Dn())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var r=n[8+(3&Dn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,je());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Fn(o,r.name)},Ct="ext",It="tags";function yt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===F||n===a&&null!==e||W("objKeys called on non-object"),!Ne&&he)return he(e);var t,o=[];for(t in e)e&&V.call(e,t)&&o.push(t);if(Ne)for(var r=Ae.length,i=0;i<r;i++)e&&V.call(e,Ae[i])&&o.push(Ae[i]);return o}(e[n]).length&&delete e[n]}var xt,St=function At(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},C(At,this,function(r){r.application=new ft,r.internal=new gt(n),Be()&&(r.sessionManager=new ct(n,e),r.device=new dt,r.location=new ht,r.user=new vt(n,e),r.telemetryTrace=new mt(undefined,undefined,undefined,t),r.session=new lt),r.getSessionId=function(){var e=r.session;return e&&T(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&T(e.id)?e.id:null},r.applySessionContext=function(e,n){A(f(e.ext,st),"sesId",r.getSessionId(),T)},r.applyOperatingSystemContxt=function(e,n){A(e.ext,ut,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(A(e=f(e,It),D.applicationVersion,t.ver,T),A(e,D.applicationBuild,t.build,T))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(A(e=f(f(e,Ct),rt),"localId",t.id,T),A(e,"ip",t.ip,T),A(e,"model",t.model,T),A(e,"deviceClass",t.deviceClass,T))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(A(t=f(e,It),D.internalAgentVersion,o.agentVersion,T),A(t,D.internalSdkVersion,o.sdkVersion,T),e.baseType!==Ze.dataType&&e.baseType!==Xn.dataType||(A(t,D.internalSnippet,o.snippetVer,T),A(t,D.internalSdkSrc,o.sdkSrc,T)))},r.applyLocationContext=function(e,n){var t=o.location;t&&A(f(e,It,[]),D.locationIp,t.ip,T)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(A(e=f(f(e,Ct),it,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,T),A(e,"name",t.name,T),A(e,"parentID",t.parentID,T))},r.applyWebContext=function(e,n){var t=o.web;t&&A(f(e,Ct),at,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(A(f(e,It,[]),D.userAccountId,t.accountId,T),A(e=f(f(e,Ct),ot),"id",t.id,T),A(e,"authId",t.authenticatedId,T))},r.cleanUp=function(e,n){e=e.ext;e&&(yt(e,rt),yt(e,ot),yt(e,at),yt(e,ut),yt(e,st),yt(e,it))}})},n=(G(wt,xt=O),wt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},wt);function wt(){var l,c,e=xt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",C(wt,e,function(s,u){s.initialize=function(e,n,t,o){u.initialize(e,n,t,o);var r,i=s._getTelCtx(),a=s.identifier,e=wt.getDefaultConfig();c=c||{},Se(e,function(e,n){c[e]=function(){return i.getConfig(a,e,n())}}),s.context=new St(n,c),r=null,Te(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),l=r,s.context.appId=function(){return l?l._appId:null},s._extConfig=c},s.processTelemetry=function(e,n){var t,o,r,i;x(e)||(n=s._getTelCtx(n),e.name===Xn.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=s.context||{}).session&&"string"!=typeof s.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,f(o=e,"tags",[]),f(o,"ext",{}),(i=s.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new Ze(y.SendBrowserInfoOnUserInit,(Ve()||{}).userAgent||""),n.diagLog().logInternalMessage(I.CRITICAL,o)),s.processNext(e,n))}}),e}e.PropertiesPlugin=n,e.Session=lt,e.SessionManager=ct,e.TelemetryContext=St,e.TelemetryTrace=mt;s=e,M="__esModule",P={value:!0},et=Object.defineProperty;if(et)try{return void et(s,M,P)}catch(kt){}typeof P.value!==undefined&&(s[M]=P.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(e){"use strict";var F="function",a="object",r="undefined",o="prototype",_="hasOwnProperty",t=Object,O=t[o],B=t.create,n=t.defineProperty,V=O[_],i=null;function j(e){return void 0===e&&(e=!0),i&&e||(typeof globalThis!==r&&globalThis&&(i=globalThis),typeof self!==r&&self&&(i=self),typeof window!==r&&window&&(i=window),typeof global!==r&&global&&(i=global)),i}function W(e){throw new TypeError(e)}(j()||{}).Symbol,(j()||{}).Reflect;var q=function(e,n){return(q=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[_](t)&&(e[t]=n[t])})(e,n)};function G(e,n){function t(){this.constructor=e}typeof n!==F&&null!==n&&W("Class extends value "+n+" is not a constructor or null"),q(e,n),e[o]=null===n?function(e){if(B)return B(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==F&&W("Object prototype may only be an Object:"+e),t[o]=e,new t}(n):(t[o]=n[o],new t)}var K="constructor",p="prototype",z="function",H="_dynInstFuncs",J="_isDynProxy",v="_dynClass",Z="_dynInstChk",X=Z,Y="_dfOpts",$="_unknown_",Q="__proto__",ee="useBaseInst",ne="setInstFuncs",te=Object,oe=te.getPrototypeOf,re=0;function h(e,n){return e&&te[p].hasOwnProperty.call(e,n)}function ie(e){return e&&(e===te[p]||e===Array[p])}function ae(e){return ie(e)||e===Function[p]}function m(e){if(e){if(oe)return oe(e);e=e[Q]||e[p]||(e[K]?e[K][p]:null);if(e)return e}return null}function se(e,n){var t=[],o=te.getOwnPropertyNames;if(o)t=o(e);else for(var r in e)"string"==typeof r&&h(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function ue(e,n,t){return n!==K&&typeof e[n]===z&&(t||h(e,n))}function le(e){throw new TypeError("DynamicProto: "+e)}function ce(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function fe(e,n){return h(e,p)?e.name||n||$:((e||{})[K]||{}).name||n||$}function C(e,o,n,t){h(e,p)||le("theClass is an invalid class definition.");var r,i,a,s,u,l,c=e[p],f=(function(e){if(oe)for(var n=[],t=m(o);t&&!ae(t)&&!ce(n,t);){if(t===e)return 1;n.push(t),t=m(t)}}(c)||le("["+fe(e)+"] is not in class hierarchy of ["+fe(o)+"]"),null),e=(h(c,v)?f=c[v]:(f="_dynCls$"+fe(e,"_")+"$"+re,re++,c[v]=f),C[Y]),d=!!e[ee],g=(d&&t&&t[ee]!==undefined&&(d=!!t[ee]),i={},se(r=o,function(e){!i[e]&&ue(r,e,!1)&&(i[e]=r[e])}),i),d=(n(o,function(e,n,t,i){function o(e,n,t){var o,r=n[t];return r[J]&&i&&!1!==(o=e[H]||{})[X]&&(r=(o[n[v]]||{})[t]||r),function(){return r.apply(e,arguments)}}for(var r={},a=(se(t,function(e){r[e]=o(n,t,e)}),m(e)),s=[];a&&!ae(a)&&!ce(s,a);)se(a,function(e){!r[e]&&ue(a,e,!oe)&&(r[e]=o(n,a,e))}),s.push(a),a=m(a);return r}(c,o,g,d)),!!oe&&!!e[ne]);a=c,n=f,s=o,u=g,e=!1!==(d=d&&t?!!t[ne]:d),ie(a)||(c=s[H]=s[H]||{},l=c[n]=c[n]||{},!1!==c[X]&&(c[X]=!!e),se(s,function(e){var t,o,r;ue(s,e,!1)&&s[e]!==u[e]&&(l[e]=s[e],delete s[e],h(a,e)&&(!a[e]||a[e][J])||(a[e]=(t=a,o=e,(r=function(){var e,n;return(function(e,n,t,o){var r=null;if(e&&h(t,v)){var i=e[H]||{};if((r=(i[t[v]]||{})[n])||le("Missing ["+n+"] "+z),!r[Z]&&!1!==i[X]){for(var a=!h(e,n),s=m(e),u=[];a&&s&&!ae(s)&&!ce(u,s);){var l=s[n];if(l){a=l===o;break}u.push(s),s=m(s)}try{a&&(e[n]=r),r[Z]=1}catch(c){i[X]=!1}}}return r}(this,o,t,r)||(typeof(n=(n=t[e=o])===r?m(t)[e]:n)!==z&&le("["+e+"] is not a "+z),n)).apply(this,arguments)})[J]=1,r)))}))}C[Y]={setInstFuncs:!0,useBaseInst:!0},(s=I=I||{})[s.CRITICAL=1]="CRITICAL",s[s.WARNING=2]="WARNING";var I,y={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},de="toISOString",ge="endsWith",pe="trim",s="toString",ve=n,he=t.keys,n=String[o],me=n[pe],Ce=n[ge],Ie=Date[o][de],n=Array.isArray,ye=O[s];function g(e){return e===undefined||typeof e===r}function x(e){return null===e||g(e)}function xe(e){return!x(e)}function S(e){return!(!e||typeof e!==F)}function Se(e,n){if(e)for(var t in e)V.call(e,t)&&n.call(e,t,e[t])}function w(e,n){return!(!e||!n||!~e.indexOf(n))}V[s].call(t);var we=n||function(e){return!(!e||"[object Array]"!==ye.call(e))};function T(e){return"string"==typeof e}function Te(e,n,t){var o=e.length;try{for(var r=0;r<o&&!(r in e&&-1===n.call(t||e,e[r],r,e));r++);}catch(i){}}function N(e){return e&&(me&&e[pe]?e[pe]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ne=!{toString:null}.propertyIsEnumerable("toString"),Ae=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ke(){var e=Date;return e.now?e.now():(new e).getTime()}function be(e){return e&&"[object Error]"===ye.call(e)?e.name:""}function A(e,n,t,o,r){var i=t;!e||(i=e[n])===t||r&&!r(i)||o&&!o(t)||(e[n]=i=t)}function f(e,n,t){var o;return e?!(o=e[n])&&x(o)&&(o=g(t)?{}:t,e[n]=o):o=g(t)?{}:t,o}function Me(e){return!!e}var Pe="window",Le="navigator",Re="location",De="JSON",Ee="msie",Ue="trident/",Fe=null,_e=null,Oe=!1;function l(e){var n=j();return n&&n[e]?n[e]:e===Pe&&Be()?window:null}function Be(){return typeof window===a&&window}function Ve(){return typeof navigator===a&&navigator?navigator:l(Le)}function je(e){if(e&&Oe){e=l("__mockLocation");if(e)return e}return typeof location===a&&location?location:l(Re)}function We(){return typeof JSON===a&&JSON||null!==l(De)}function qe(){return We()?JSON||l(De):null}function Ge(){var e=Ve();return!e||e.userAgent===_e&&null!==Fe||(e=((_e=e.userAgent)||"").toLowerCase(),Fe=w(e,Ee)||w(e,Ue)),Fe}function Ke(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":We()&&(t=qe().stringify(e)),n+t}var ze=null;function He(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Je(e,n){var t,o=typeof console!==r?console:l("console");o&&(t="log",S(o[t=o[e]?e:t])&&o[t](n))}Xe.dataType="MessageData";var Ze=Xe;function Xe(e,n,t,o){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",We()&&(t=qe().stringify(o)),e=(n?" message:"+He(n):"")+(o?" props:"+He(t):"");this.message+=e}function Ye(e,n){return(e||{}).logger||new $e(n)}var $e=function Tt(r){this.identifier="DiagnosticLogger",this.queue=[];var s=0,u={};C(Tt,this,function(i){function e(e,n){e=r[e];return x(e)?n:e}function a(e,n){var t,o=(t=(t=ze)||!0===r.disableDbgExt?t:ze||(o=l("Microsoft"),ze=o?o.ApplicationInsights:ze))?t.ChromeDbgExt:null;o&&o.diagLog&&o.diagLog(e,n)}x(r)&&(r={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,o,r){n=new Ze(n,t,r=void 0!==r&&r,o);if(i.enableDebugExceptions())throw n;t=e===I.CRITICAL?"errorToConsole":"warnToConsole";g(n.message)?a("throw"+(e===I.CRITICAL?"Critical":"Warning"),n):(o=i.consoleLoggingLevel(),r?(r=+n.messageId,!u[r]&&e<=o&&(i[t](n.message),u[r]=!0)):e<=o&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){Je("warn",e),a("warning",e)},i.errorToConsole=function(e){Je("error",e),a("error",e)},i.resetInternalMessageCount=function(){s=0,u={}},i.logInternalMessage=function(e,n){var t,o;s>=i.maxInternalMessageLimit()||(o=!0,t="AITR_"+n.messageId,u[t]?o=!1:u[t]=!0,o&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),s++,a(e===I.CRITICAL?"error":"warn",n)),s===i.maxInternalMessageLimit()&&(o=new Ze(y.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(o),e===I.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},Qe=(u.ParentContextKey="parent",u.ChildrenContextKey="childEvts",u);function u(e,r,n){var o,i=this,a=!1;i.start=ke(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},S(r)&&(a=function(e){if(ve)try{var n={enumerable:!0,configurable:!0,get:function(){return!o&&S(r)&&(o=r(),r=null),o}};return ve(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===u.ParentContextKey||e===u.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===u.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===u.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(u.ChildrenContextKey);if(we(n))for(var t=0;t<n.length;t++){var o=n[t];o&&(e+=o.time)}i.time=ke()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&S(r)&&(i.payload=r())}}var en="CoreUtils.doPerf";function nn(e,n,t,o,r){if(e)if(e=S(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,s=e.getCtx(en);try{if(a=e.create(n(),o,r))return s&&a.setCtx&&(a.setCtx(Qe.ParentContextKey,s),s.getCtx&&s.setCtx&&((i=s.getCtx(Qe.ChildrenContextKey))||(i=[],s.setCtx(Qe.ChildrenContextKey,i)),i.push(a))),e.setCtx(en,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(en,s)}}t()}var tn=function(r,n){var i=this,a=null,s=S(r.processTelemetry),u=S(r.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return r},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,o){o=o||n;var e=r?r.identifier:"TelemetryPluginChain";nn(o?o.core():null,function(){return e+":processTelemetry"},function(){if(r&&s){i._hasRun=!0;try{o.setNext(a),u&&r.setNextPlugin(a),a&&(a._hasRun=!1),r.processTelemetry(t,o)}catch(n){var e=a&&a._hasRun;a&&e||o.diagLog().throwInternal(I.CRITICAL,y.PluginException,"Plugin ["+r.identifier+"] failed during processTelemetry - "+Ke(n)),a&&!e&&a.processTelemetry(t,o)}}else a&&(i._hasRun=!0,a.processTelemetry(t,o))},function(){return{item:t}},!t.sync)}};function on(e,n){var t=[];if(e&&0<e.length)for(var o=null,r=0;r<e.length;r++){var i=e[r];i&&S(i.processTelemetry)&&(i=new tn(i,n),t.push(i),o&&o.setNext(i),o=i)}return 0<t.length?t[0]:null}var rn=function Nt(e,r,t,n){var o,i,a,s,u=this,l=null;null!==n&&(e&&S(e.getPlugin)?l=function(e,n,t){var o=[],r=!t;if(e)for(;e;){var i=e.getPlugin();!r&&i!==t||(r=!0,o.push(i)),e=e.getNext()}return r||o.push(t),on(o,n)}(e,u,n||e.getPlugin()):n?(o=u,a=e,s=!1,(i=n)&&e&&(a=[],Te(e,function(e){!s&&e!==i||(s=!0,a.push(e))})),i&&!s&&(a=a||[]).push(i),l=on(a,o)):g(n)&&(l=on(e,u))),u.core=function(){return t},u.diagLog=function(){return Ye(t,r)},u.getCfg=function(){return r},u.getExtCfg=function(e,n){var t,o;return void 0===n&&(n={}),(t=r&&(o=r.extensionConfig)&&e?o[e]:t)||n},u.getConfig=function(e,n,t){void 0===t&&(t=!1);var o,e=u.getExtCfg(e,null);return e&&!x(e[n])?o=e[n]:r&&!x(r[n])&&(o=r[n]),x(o)?t:o},u.hasNext=function(){return null!=l},u.getNext=function(){return l},u.setNext=function(e){l=e},u.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,u))},u.createNew=function(e,n){return new Nt((e=void 0===e?null:e)||l,r,t,n)}},an="getPlugin",O=(sn.prototype.initialize=function(e,n,t,o){this._baseTelInit(e,n,t,o)},sn);function sn(){var i=this,a=!1,s=null,u=null;i.core=null,i.diagLog=function(e){return i._getTelCtx(e).diagLog()},i.isInitialized=function(){return a},i.setInitialized=function(e){a=e},i.setNextPlugin=function(e){u=e},i.processNext=function(e,n){n?n.processNext(e):u&&S(u.processTelemetry)&&u.processTelemetry(e,null)},i._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=s||new rn(null,{},i.core),e=u&&u[an]?n.createNew(null,u[an]):n.createNew(null,u)),e},i._baseTelInit=function(e,n,t,o){e&&A(e,"extensionConfig",[],null,x),!o&&n&&(o=n.getProcessTelContext().getNext());var r=u;u&&u[an]&&(r=u[an]()),i.core=n,s=new rn(o,e,n,r),a=!0}}var un="toGMTString",ln="toUTCString",cn="cookie",fn="expires",dn="enabled",gn="isCookieUseDisabled",pn="disableCookiesUsage",k="_ckMgr",b="",vn=null,hn=null,mn=null,Cn=typeof document===a&&document?document:l("document"),In={},yn={};function xn(e){return!e||e.isEnabled()}function Sn(e,n){var t,o;return e?t=e.getCookieMgr():n&&(t=n.cookieCfg[k]||wn(n)),t||(e=(e||{}).logger,(o=wn[k]||yn[k])||(o=wn[k]=wn(n,e),yn[k]=o),t=o),t}function wn(e,r){A(t=(e=e||yn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,xe,x),A(t,"path",e.cookiePath||"/",null,x),x(t[dn])&&(n=void 0,g(e[gn])||(n=!e[gn]),g(e[pn])||(n=!e[pn]),t[dn]=n);var n,t,l=t,c=l.path||"/",f=l.domain,o=!1!==l[dn],d={isEnabled:function(){var e=o&&Tn(r),n=yn[k];return e&&n&&d!==n?xn(n):e},setEnabled:function(e){o=!1!==e},set:function(e,n,t,o,r){var i,a,s,u=!1;return xn(d)&&(i={},-1!=(s=(a=N(n||b)).indexOf(";"))&&(a=N(n.substring(0,s)),i=Nn(n.substring(1+s))),A(i,"domain",o||f,Me,g),x(t)||(s=Ge(),g(i[fn])&&0<(n=ke()+1e3*t)&&((o=new Date).setTime(n),A(i,fn,An(o,s?un:ln)||An(o,s?un:ln)||b,Me)),s||A(i,"max-age",b+t,null,g)),(n=je())&&"https:"===n.protocol&&(A(i,"secure",null,null,g),(hn=null===hn?!(T(o=(Ve()||{}).userAgent)&&(w(o,"CPU iPhone OS 12")||w(o,"iPad; CPU OS 12")||w(o,"Macintosh; Intel Mac OS X 10_14")&&w(o,"Version/")&&w(o,"Safari")||w(o,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Ce)return e[ge](n);var o=e,r=n,t=!1,e=o?o.length:0;if(e&&40<=e&&!(t=o===r)){for(var i=e-1,a=39;0<=a;a--){if(o[i]!=r[a])return;i--}t=!0}return t}(o,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||w(o,"Chrome/5")||w(o,"Chrome/6")||w(o,"UnrealEngine")&&!w(o,"Chrome")||w(o,"UCBrowser/12")||w(o,"UCBrowser/11"))):hn)&&A(i,"SameSite","None",null,g)),A(i,"path",r||c,null,g),(l.setCookie||bn)(e,kn(a,i)),u=!0),u},get:function(e){var n=b;return xn(d)?(l.getCookie||function(e){var n,t=b;return Cn&&(n=Cn[cn]||b,mn!==n&&(In=Nn(n),mn=n),t=N(In[e]||b)),t})(e):n},del:function(e,n){return!!xn(d)&&d.purge(e,n)},purge:function(e,n){var t,o=!1;return Tn(r)&&((t={}).path=n||"/",t[fn]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Ge()||(n["max-age"]="0"),(l.delCookie||bn)(e,kn(b,n)),o=!0),o}};return d[k]=d}function Tn(e){if(null===vn){vn=!1;try{vn=(Cn||{})[cn]!==undefined}catch(n){e&&e.throwInternal(I.WARNING,y.CannotAccessCookie,"Cannot access document.cookie - "+be(n),{exception:Ke(n)})}}return vn}function Nn(e){var t={};return e&&e.length&&Te(N(e).split(";"),function(e){var n;(e=N(e||b))&&(-1==(n=e.indexOf("="))?t[e]=null:t[N(e.substring(0,n))]=N(e.substring(1+n)))}),t}function An(e,n){return S(e[n])?e[n]():null}function kn(e,n){var t=e||b;return Se(n,function(e,n){t+="; "+e+(x(n)?b:"="+n)}),t}function bn(e,n){Cn&&(Cn[cn]=e+"="+n)}var Mn=4294967296,c=4294967295,Pn=!1,Ln=123456789,Rn=987654321;function Dn(e){var n=l("crypto")||l("msCrypto"),n=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&c:Ge()?(Pn||function(){try{var e=2147483647&ke();(n=(Math.random()*Mn^e)+e)<0&&(n>>>=0),Ln=123456789+n&c,Rn=987654321-n&c,Pn=!0}catch(t){}var n}(),n=((Rn=36969*(65535&Rn)+(Rn>>16)&c)<<16)+(65535&(Ln=18e3*(65535&Ln)+(Ln>>16)&c))>>>0&c|0,(n>>>=0)&c):Math.floor(Mn*Math.random()|0);return e||(n>>>=0),n}function En(e){void 0===e&&(e=22);for(var n=Dn()>>>0,t=0,o="";o.length<e;)o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Dn()<<2&4294967295|3&n)>>>0,t=0);return o}function Un(e,n,t){var o,r,i=n.length,a=(e=e,(n=n)&&150<(n=N(n.toString())).length&&(r=n.substring(0,150),e&&e.throwInternal(I.WARNING,y.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),r||n);if(a.length!==i){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(o=void 0,(o="00"+s).substr(o.length-3));a=u}return a}function Fn(e,n,t){var o;return void 0===t&&(t=1024),n&&(t=t||1024,(n=N(n)).toString().length>t&&(o=n.toString().substring(0,t),e&&e.throwInternal(I.WARNING,y.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),o||n}function _n(o,e){var r;return e&&(r={},Se(e,function(e,n){if(n&&typeof n===a&&We())try{n=qe().stringify(n)}catch(t){o&&o.throwInternal(I.WARNING,y.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Fn(o,n,8192),e=Un(o,e,r),r[e]=n}),e=r),e}function On(e,n,t,o){var r;return n&&(n=N(n)).length>t&&(r=n.substring(0,t),e&&e.throwInternal(I.WARNING,o,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),r||n}(s=Bn=Bn||{})[s.LocalStorage=0]="LocalStorage",s[s.SessionStorage=1]="SessionStorage";var Bn,Vn,jn=undefined;function Wn(){return Gn()?qn(Bn.LocalStorage):null}function qn(e){try{if(x(j()))return null;var n=new Date,t=l(e===Bn.LocalStorage?"localStorage":"sessionStorage"),o=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!o)return t}catch(r){}return null}function Gn(){return jn=jn===undefined?!!qn(Bn.LocalStorage):jn}function Kn(e,n){var t=Wn();if(null!==t)try{return t.getItem(n)}catch(o){jn=!1,e.throwInternal(I.WARNING,y.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+be(o),{exception:Ke(o)})}return null}function zn(e,n,t){var o=Wn();if(null!==o)try{o.setItem(n,t)}catch(r){jn=!1,e.throwInternal(I.WARNING,y.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+be(r),{exception:Ke(r)})}}function Hn(e,n){var t=Wn();if(null!==t)try{t.removeItem(n)}catch(o){jn=!1,e.throwInternal(I.WARNING,y.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+be(o),{exception:Ke(o)})}}function Jn(){var e=Vn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}G(Jn,Vn=function(){this.ver=2,this.properties={},this.measurements={}}),G(Yn,Zn=Jn),Yn.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Yn.dataType="PageviewData";var Zn,Xn=Yn;function Yn(e,n,t,o,r,i,a){var s,u,l,c=Zn.call(this)||this;return c.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},c.id=a&&On(e,a,128,y.IdTooLong).toString(),c.url=On(e,t,2048,y.UrlTooLong),c.name=Fn(e,n)||"not_specified",isNaN(o)||(c.duration=(t=""+Math.floor((a=Math.round(a=isNaN(a=o)||a<0?0:a))/1e3)%60,n=1===(n=""+a%1e3).length?"00"+n:2===n.length?"0"+n:n,t=t.length<2?"0"+t:t,o=(o=""+Math.floor(a/6e4)%60).length<2?"0"+o:o,(0<(s=Math.floor(a/864e5))?s+".":"")+(s=(s=""+Math.floor(a/36e5)%24).length<2?"0"+s:s)+":"+o+":"+t+"."+n)),c.properties=_n(e,r),c.measurements=(u=e,(a=i)&&(l={},Se(a,function(e,n){e=Un(u,e,l),l[e]=n}),a=l),a),c}function d(e){var n="ai."+e+".";return function(e){return n+e}}var $n,Qn,n=d("application"),s=d("device"),M=d("location"),P=d("operation"),et=d("session"),L=d("user"),R=d("cloud"),nt=d("internal");function tt(){return $n.call(this)||this}Qn={applicationVersion:n("ver"),applicationBuild:n("build"),applicationTypeId:n("typeId"),applicationId:n("applicationId"),applicationLayer:n("layer"),deviceId:s("id"),deviceIp:s("ip"),deviceLanguage:s("language"),deviceLocale:s("locale"),deviceModel:s("model"),deviceFriendlyName:s("friendlyName"),deviceNetwork:s("network"),deviceNetworkName:s("networkName"),deviceOEMName:s("oemName"),deviceOS:s("os"),deviceOSVersion:s("osVersion"),deviceRoleInstance:s("roleInstance"),deviceRoleName:s("roleName"),deviceScreenResolution:s("screenResolution"),deviceType:s("type"),deviceMachineName:s("machineName"),deviceVMName:s("vmName"),deviceBrowser:s("browser"),deviceBrowserVersion:s("browserVersion"),locationIp:M("ip"),locationCountry:M("country"),locationProvince:M("province"),locationCity:M("city"),operationId:P("id"),operationName:P("name"),operationParentId:P("parentId"),operationRootId:P("rootId"),operationSyntheticSource:P("syntheticSource"),operationCorrelationVector:P("correlationVector"),sessionId:et("id"),sessionIsFirst:et("isFirst"),sessionIsNew:et("isNew"),userAccountAcquisitionDate:L("accountAcquisitionDate"),userAccountId:L("accountId"),userAgent:L("userAgent"),userId:L("id"),userStoreRegion:L("storeRegion"),userAuthUserId:L("authUserId"),userAnonymousUserAcquisitionDate:L("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:L("authUserAcquisitionDate"),cloudName:R("name"),cloudRole:R("role"),cloudRoleVer:R("roleVer"),cloudRoleInstance:R("roleInstance"),cloudEnvironment:R("environment"),cloudLocation:R("location"),cloudDeploymentUnit:R("deploymentUnit"),internalNodeName:nt("nodeName"),internalSdkVersion:nt("sdkVersion"),internalAgentVersion:nt("agentVersion"),internalSnippet:nt("snippet"),internalSdkSrc:nt("sdkSrc")},G(tt,$n=function(){var t=this;Se(Qn,function(e,n){t[e]=n})});var ot="user",rt="device",it="trace",at="web",st="app",ut="os",D=new tt,lt=function(){},ct=(E.acquisitionSpan=864e5,E.renewalSpan=18e5,E.cookieUpdateInterval=6e4,E);function E(n,e){var c,f,d=Ye(e),g=Sn(e);C(E,this,function(s){S((n=n||{}).sessionExpirationMs)||(n.sessionExpirationMs=function(){return E.acquisitionSpan}),S(n.sessionRenewalMs)||(n.sessionRenewalMs=function(){return E.renewalSpan}),s.config=n;var e=s.config.sessionCookiePostfix&&s.config.sessionCookiePostfix()?s.config.sessionCookiePostfix():s.config.namePrefix&&s.config.namePrefix()?s.config.namePrefix():"";function u(e,n){var t=!1,o=", session will be reset",r=n.split("|");if(2<=r.length)try{var i=+r[1]||0,a=+r[2]||0;isNaN(i)||i<=0?d.throwInternal(I.WARNING,y.SessionRenewalDateIsZero,"AI session acquisition date is 0"+o):isNaN(a)||a<=0?d.throwInternal(I.WARNING,y.SessionRenewalDateIsZero,"AI session renewal date is 0"+o):r[0]&&(e.id=r[0],e.acquisitionDate=i,e.renewalDate=a,t=!0)}catch(s){d.throwInternal(I.CRITICAL,y.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(n||"")+"]"+o+" - "+be(s),{exception:Ke(s)})}return t}function l(e,n){var t=e.acquisitionDate,o=(e.renewalDate=n,s.config),r=o.sessionRenewalMs(),i=t+o.sessionExpirationMs()-n,e=[e.id,t,n],t=i<r?i/1e3:r/1e3,i=o.cookieDomain?o.cookieDomain():null;g.set(c(),e.join("|"),0<o.sessionExpirationMs()?t:null,i),f=n}c=function(){return"ai_session"+e},s.automaticSession=new lt,s.update=function(){var e,n,t,o=ke(),r=!1,i=s.automaticSession,a=(i.id||(n=i,t=!1,(a=g.get(c()))&&S(a.split)?t=u(n,a):(a=Kn(d,c()))&&(t=u(n,a)),r=!(t||n.id)),s.config.sessionExpirationMs());!r&&0<a&&(t=s.config.sessionRenewalMs(),n=o-i.acquisitionDate,e=o-i.renewalDate,r=(r=(r=n<0||e<0)||a<n)||t<e),r?(a=o,t=((n=s.config||{}).getNewId?n.getNewId():null)||En,s.automaticSession.id=t(n.idLength?n.idLength():22),s.automaticSession.acquisitionDate=a,l(s.automaticSession,a),Gn()||d.throwInternal(I.WARNING,y.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")):(!f||E.cookieUpdateInterval<o-f)&&l(i,o)},s.backup=function(){var e=s.automaticSession,n=e.id,t=e.acquisitionDate,e=e.renewalDate;zn(d,c(),[n,t,e].join("|"))}})}var ft=function(){},dt=function(){this.id="browser",this.deviceClass="Browser"},gt=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.7.5-nightly.2203-01"};function pt(e){return"string"==typeof e&&e&&!e.match(/,|;|=| |\|/)}U.cookieSeparator="|",U.userCookieName="ai_user",U.authUserCookieName="ai_authUser";var vt=U;function U(a,e){this.isNewUser=!1,this.isUserCookieSet=!1;var s,u=Ye(e),l=Sn(e);C(U,this,function(o){o.config=a;var e=o.config.userCookiePostfix&&o.config.userCookiePostfix()?o.config.userCookiePostfix():"",n=(s=function(){return U.userCookieName+e},l.get(s()));function t(){var e=a||{};return((e.getNewId?e.getNewId():null)||En)(e.idLength?a.idLength():22)}function r(e){var n=function(e){if(e){if(Ie)return e[de]();var n;return e&&e.getUTCFullYear?(n=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+n(1+e.getUTCMonth())+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}}(new Date);return o.accountAcquisitionDate=n,o.isNewUser=!0,[e,n]}function i(e){o.isUserCookieSet=l.set(s(),e,31536e3)}n&&(o.isNewUser=!1,0<(n=n.split(U.cookieSeparator)).length&&(o.id=n[0],o.isUserCookieSet=!!o.id)),o.id||(o.id=t(),i(r(o.id).join(U.cookieSeparator)),n=a.namePrefix&&a.namePrefix()?a.namePrefix()+"ai_session":"ai_session",Hn(u,n)),o.accountId=a.accountId?a.accountId():undefined;var n=l.get(U.authUserCookieName);n&&((n=(n=decodeURI(n)).split(U.cookieSeparator))[0]&&(o.authenticatedId=n[0]),1<n.length&&n[1]&&(o.accountId=n[1])),o.setAuthenticatedUserContext=function(e,n,t){void 0===t&&(t=!1),!pt(e)||n&&!pt(n)?u.throwInternal(I.WARNING,y.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0):(o.authenticatedId=e,e=o.authenticatedId,n&&(o.accountId=n,e=[o.authenticatedId,o.accountId].join(U.cookieSeparator)),t&&l.set(U.authUserCookieName,encodeURI(e)))},o.clearAuthenticatedUserContext=function(){o.authenticatedId=null,o.accountId=null,l.del(U.authUserCookieName)},o.update=function(e){o.id===e&&o.isUserCookieSet||i(r(e||t()).join(U.cookieSeparator))}})}var ht=function(){},mt=function(e,n,t,o){var r=this,e=(r.traceID=e||function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",o=0;o<4;o++)t+=n[15&(e=Dn())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var r=n[8+(3&Dn())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+r+t.substr(16,3)+t.substr(19,12)}(),r.parentID=n,r.name=t,je());!t&&e&&e.pathname&&(r.name=e.pathname),r.name=Fn(o,r.name)},Ct="ext",It="tags";function yt(e,n){e&&e[n]&&0===function(e){var n=typeof e;if(n===F||n===a&&null!==e||W("objKeys called on non-object"),!Ne&&he)return he(e);var t,o=[];for(t in e)e&&V.call(e,t)&&o.push(t);if(Ne)for(var r=Ae.length,i=0;i<r;i++)e&&V.call(e,Ae[i])&&o.push(Ae[i]);return o}(e[n]).length&&delete e[n]}var xt,St=function At(e,n){var o=this,t=e.logger;this.appId=function(){return null},this.getSessionId=function(){return null},C(At,this,function(r){r.application=new ft,r.internal=new gt(n),Be()&&(r.sessionManager=new ct(n,e),r.device=new dt,r.location=new ht,r.user=new vt(n,e),r.telemetryTrace=new mt(undefined,undefined,undefined,t),r.session=new lt),r.getSessionId=function(){var e=r.session;return e&&T(e.id)?e.id:(e=(r.sessionManager||{}).automaticSession)&&T(e.id)?e.id:null},r.applySessionContext=function(e,n){A(f(e.ext,st),"sesId",r.getSessionId(),T)},r.applyOperatingSystemContxt=function(e,n){A(e.ext,ut,r.os)},r.applyApplicationContext=function(e,n){var t=r.application;t&&(A(e=f(e,It),D.applicationVersion,t.ver,T),A(e,D.applicationBuild,t.build,T))},r.applyDeviceContext=function(e,n){var t=r.device;t&&(A(e=f(f(e,Ct),rt),"localId",t.id,T),A(e,"ip",t.ip,T),A(e,"model",t.model,T),A(e,"deviceClass",t.deviceClass,T))},r.applyInternalContext=function(e,n){var t,o=r.internal;o&&(A(t=f(e,It),D.internalAgentVersion,o.agentVersion,T),A(t,D.internalSdkVersion,o.sdkVersion,T),e.baseType!==Ze.dataType&&e.baseType!==Xn.dataType||(A(t,D.internalSnippet,o.snippetVer,T),A(t,D.internalSdkSrc,o.sdkSrc,T)))},r.applyLocationContext=function(e,n){var t=o.location;t&&A(f(e,It,[]),D.locationIp,t.ip,T)},r.applyOperationContext=function(e,n){var t=r.telemetryTrace;t&&(A(e=f(f(e,Ct),it,{traceID:undefined,parentID:undefined}),"traceID",t.traceID,T),A(e,"name",t.name,T),A(e,"parentID",t.parentID,T))},r.applyWebContext=function(e,n){var t=o.web;t&&A(f(e,Ct),at,t)},r.applyUserContext=function(e,n){var t=r.user;t&&(A(f(e,It,[]),D.userAccountId,t.accountId,T),A(e=f(f(e,Ct),ot),"id",t.id,T),A(e,"authId",t.authenticatedId,T))},r.cleanUp=function(e,n){e=e.ext;e&&(yt(e,rt),yt(e,ot),yt(e,at),yt(e,ut),yt(e,st),yt(e,it))}})},n=(G(wt,xt=O),wt.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},getSessionId:function(){return null},namePrefix:function(){return undefined},sessionCookiePostfix:function(){return undefined},userCookiePostfix:function(){return undefined},idLength:function(){return 22},getNewId:function(){return null}}},wt);function wt(){var l,c,e=xt.call(this)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",C(wt,e,function(s,u){s.initialize=function(e,n,t,o){u.initialize(e,n,t,o);var r,i=s._getTelCtx(),a=s.identifier,e=wt.getDefaultConfig();c=c||{},Se(e,function(e,n){c[e]=function(){return i.getConfig(a,e,n())}}),s.context=new St(n,c),r=null,Te(t,function(e){if("AppInsightsChannelPlugin"===e.identifier)return r=e,-1}),l=r,s.context.appId=function(){return l?l._appId:null},s._extConfig=c},s.processTelemetry=function(e,n){var t,o,r,i;x(e)||(n=s._getTelCtx(n),e.name===Xn.envelopeType&&n.diagLog().resetInternalMessageCount(),(r=s.context||{}).session&&"string"!=typeof s.context.session.id&&r.sessionManager&&r.sessionManager.update(),(t=r.user)&&!t.isUserCookieSet&&t.update(r.user.id),r=n,f(o=e,"tags",[]),f(o,"ext",{}),(i=s.context).applySessionContext(o,r),i.applyApplicationContext(o,r),i.applyDeviceContext(o,r),i.applyOperationContext(o,r),i.applyUserContext(o,r),i.applyOperatingSystemContxt(o,r),i.applyWebContext(o,r),i.applyLocationContext(o,r),i.applyInternalContext(o,r),i.cleanUp(o,r),t&&t.isNewUser&&(t.isNewUser=!1,o=new Ze(y.SendBrowserInfoOnUserInit,(Ve()||{}).userAgent||""),n.diagLog().logInternalMessage(I.CRITICAL,o)),s.processNext(e,n))}}),e}e.PropertiesPlugin=n,e.Session=lt,e.SessionManager=ct,e.TelemetryContext=St,e.TelemetryTrace=mt;s=e,M="__esModule",P={value:!0},et=Object.defineProperty;if(et)try{return void et(s,M,P)}catch(kt){}typeof P.value!==undefined&&(s[M]=P.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
|