@microsoft/applicationinsights-web-basic 2.8.0-beta.2202-06 → 2.8.0-beta.2203-02

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2202-06
2
+ * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2203-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var e=this,n=function(t){"use strict";var a="function",g="object",i="undefined",o="prototype",s="hasOwnProperty",r=Object,u=r[o],l=r.assign,h=r.create,m=r.defineProperty,v=u[s],y=null;function I(e){return void 0===e&&(e=!0),y&&e||(typeof globalThis!==i&&globalThis&&(y=globalThis),typeof self!==i&&self&&(y=self),typeof window!==i&&window&&(y=window),typeof global!==i&&global&&(y=global)),y}function C(e){throw new TypeError(e)}function R(e){if(h)return h(e);if(null==e)return{};var n=typeof e;function t(){}return n!==g&&n!==a&&C("Object prototype may only be an Object:"+e),t[o]=e,new t}(I()||{}).Symbol,(I()||{}).Reflect;var S=l||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])u[s].call(n,i)&&(e[i]=n[i]);return e},x=function(e,n){return(x=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[s](t)&&(e[t]=n[t])})(e,n)};function e(e,n){function t(){this.constructor=e}typeof n!==a&&null!==n&&C("Class extends value "+n+" is not a constructor or null"),x(e,n),e[o]=null===n?R(n):(t[o]=n[o],new t)}function L(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var T="constructor",b="prototype",w="function",N="_dynInstFuncs",_="_isDynProxy",A="_dynClass",E="_dynInstChk",F=E,B="_dfOpts",O="_unknown_",U="__proto__",z="useBaseInst",j="setInstFuncs",K=Object,q=K.getPrototypeOf,V=0;function W(e,n){return e&&K[b].hasOwnProperty.call(e,n)}function G(e){return e&&(e===K[b]||e===Array[b])}function H(e){return G(e)||e===Function[b]}function X(e){if(e){if(q)return q(e);e=e[U]||e[b]||(e[T]?e[T][b]:null);if(e)return e}return null}function Y(e,n){var t=[],r=K.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&W(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function J(e,n,t){return n!==T&&typeof e[n]===w&&(t||W(e,n))}function Z(e){throw new TypeError("DynamicProto: "+e)}function Q(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function $(e,n){return W(e,b)?e.name||n||O:((e||{})[T]||{}).name||n||O}function ee(e,r,n,t){W(e,b)||Z("theClass is an invalid class definition.");var c,i,o,a,f,d,s=e[b],u=(function(e){if(q)for(var n=[],t=X(r);t&&!H(t)&&!Q(n,t);){if(t===e)return 1;n.push(t),t=X(t)}}(s)||Z("["+$(e)+"] is not in class hierarchy of ["+$(r)+"]"),null),e=(W(s,A)?u=s[A]:(u="_dynCls$"+$(e,"_")+"$"+V,V++,s[A]=u),ee[B]),l=!!e[z],g=(l&&t&&t[z]!==undefined&&(l=!!t[z]),i={},Y(c=r,function(e){!i[e]&&J(c,e,!1)&&(i[e]=c[e])}),i),l=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[_]&&o&&!1!==(r=e[N]||{})[F]&&(i=(r[n[A]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(Y(t,function(e){i[e]=r(n,t,e)}),X(e)),s=[];a&&!H(a)&&!Q(s,a);)Y(a,function(e){!i[e]&&J(a,e,!q)&&(i[e]=r(n,a,e))}),s.push(a),a=X(a);return i}(s,r,g,l)),!!q&&!!e[j]);o=s,n=u,a=r,f=g,e=!1!==(l=l&&t?!!t[j]:l),G(o)||(s=a[N]=a[N]||{},d=s[n]=s[n]||{},!1!==s[F]&&(s[F]=!!e),Y(a,function(e){var t,r,i;J(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],W(o,e)&&(!o[e]||o[e][_])||(o[e]=(t=o,r=e,(i=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&W(t,A)){var i=e[N]||{};if((r=(i[t[A]]||{})[n])||Z("Missing ["+n+"] "+w),!r[E]&&!1!==i[F]){for(var o=!W(e,n),a=X(e),s=[];o&&a&&!H(a)&&!Q(s,a);){var u=a[n];if(u){o=u===c;break}s.push(a),a=X(a)}try{o&&(e[n]=r),r[E]=1}catch(l){i[F]=!1}}}return r}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?X(t)[e]:n)!==w&&Z("["+e+"] is not a "+w),n)).apply(this,arguments)})[_]=1,i)))}))}ee[B]={setInstFuncs:!0,useBaseInst:!0},(se=M=M||{})[se.CRITICAL=1]="CRITICAL",se[se.WARNING=2]="WARNING";var M,k={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},ne="attachEvent",te="addEventListener",re="toISOString",ie="endsWith",oe="indexOf",ae="trim",se="toString",ue="constructor",le=m,m=r.freeze,ce=(r.seal,r.keys),n=String[o],fe=n[ae],de=n[ie],ge=(n.startsWith,Date[o][re]),n=Array.isArray,pe=u[se],he=v[se],me=he.call(r),ve=Object.getPrototypeOf;function ye(e){return e===undefined||typeof e===i}function P(e){return null===e||ye(e)}function Ie(e){return!P(e)}function Ce(e){return!(!e||typeof e!==g)}function p(e){return!(!e||typeof e!==a)}function Se(e,n,t,r){void 0===r&&(r=!1);var i=!1;if(!P(e))try{P(e[te])?P(e[ne])||(e[ne]("on"+n,t),i=!0):(e[te](n,t,r),i=!0)}catch(o){}return i}function xe(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function Te(e,n){return!(!e||!n||!~e.indexOf(n))}var be=n||function(e){return!(!e||"[object Array]"!==pe.call(e))};function we(e){return!(!e||"[object Error]"!==pe.call(e))}function Ne(e){return"string"==typeof e}function _e(e){return"number"==typeof e}function Ae(e){return"boolean"==typeof e}function Re(e){return e&&"object"==typeof e&&(!(e=(ve||function(e){if(e){if(ve)return ve(e);e=e.__proto__||e[o]||e[ue];if(e)return e}return null})(e))||typeof(e=e[ue]&&v.call(e,ue)?e[ue]:e)===a&&he.call(e)===me)}function Le(e){if(e){if(ge)return e[re]();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}}function D(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function Ee(e,n,t){if(e){if(e[oe])return e[oe](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function Fe(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}}return o}function Me(e){return e&&(fe&&e[ae]?e[ae]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var ke=!{toString:null}.propertyIsEnumerable("toString"),Pe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function De(e){var n=typeof e;if(n===a||n===g&&null!==e||C("objKeys called on non-object"),!ke&&ce)return ce(e);var t,r=[];for(t in e)e&&v.call(e,t)&&r.push(t);if(ke)for(var i=Pe.length,o=0;o<i;o++)e&&v.call(e,Pe[o])&&r.push(Pe[o]);return r}function Be(e,n,t,r){if(le)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),le(e,n,i),!0}catch(o){}return!1}var Oe=m||function(e){return e};function Ue(){var e=Date;return e.now?e.now():(new e).getTime()}function ze(e){return we(e)?e.name:""}function je(e,n,t,r,i){var o=t;return e&&((o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)),o}function Ke(e){return!e}function qe(e){return!!e}function Ve(e){throw Error(e)}function We(e){return e&&l?r(l({},e)):e}var Ge="window",He="navigator",Xe="location",Ye="console",Je="JSON",Ze="crypto",Qe="msCrypto",$e="msie",en="trident/",nn="XMLHttpRequest",tn=null,rn=null,on=null,an=null;function sn(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!ye((new e)[n])}catch(i){}}return r}function un(e){var n=I();return n&&n[e]?n[e]:e===Ge&&ln()?window:null}function ln(){return typeof window===g&&window}function cn(){return ln()?window:un(Ge)}function fn(){return typeof document===g&&document?document:un("document")}function dn(){return!(typeof navigator!==g||!navigator)}function gn(){return dn()?navigator:un(He)}function pn(){return typeof JSON===g&&JSON||null!==un(Je)}function hn(){return pn()?JSON||un(Je):null}function mn(){var e=gn();return!e||e.userAgent===rn&&null!==tn||(e=((rn=e.userAgent)||"").toLowerCase(),tn=Te(e,$e)||Te(e,en)),tn}function vn(e){var n=Object[o].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":pn()&&(t=hn().stringify(e)),n+t}function yn(){return an=null===an?dn()&&!!gn().sendBeacon:an}function In(e){var n=!1;try{var n=!!un("fetch"),t=un("Request");n&&e&&t&&(n=sn(t,"keepalive"))}catch(r){}return n}function Cn(){return on=null===on&&(on=typeof XDomainRequest!==i)&&Sn()?on&&!sn(un(nn),"withCredentials"):on}function Sn(){var e=!1;try{e=!!un(nn)}catch(n){}return e}var xn,Tn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],bn=null;function wn(e){var n=bn;return(n=n||!0===e.disableDbgExt?n:bn||(e=un("Microsoft"),bn=e?e.ApplicationInsights:bn))?n.ChromeDbgExt:null}function Nn(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function _n(e,n){var t,r=typeof console!==i?console:un(Ye);r&&(t="log",p(r[t=r[e]?e:t])&&r[t](n))}Rn.dataType="MessageData";var An=Rn;function Rn(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",pn()&&(t=hn().stringify(r)),e=(n?" message:"+Nn(n):"")+(r?" props:"+Nn(t):"");this.message+=e}function Ln(e,n){return(e||{}).logger||new En(n)}var En=function fo(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,s={};ee(fo,this,function(o){function e(e,n){e=r[e];return P(e)?n:e}function a(e,n){var t=wn(r);t&&t.diagLog&&t.diagLog(e,n)}P(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new An(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=e===M.CRITICAL?"errorToConsole":"warnToConsole";ye(n.message)?a("throw"+(e===M.CRITICAL?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!s[i]&&e<=r&&(o[t](n.message),s[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){_n("warn",e),a("warning",e)},o.errorToConsole=function(e){_n("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,s={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,s[t]?r=!1:s[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(e===M.CRITICAL?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new An(k.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),e===M.CRITICAL?o.errorToConsole(t):o.warnToConsole(t))))}})},Fn=(Mn.ParentContextKey="parent",Mn.ChildrenContextKey="childEvts",Mn);function Mn(e,i,n){var t,o=this,a=!1;o.start=Ue(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},p(i)&&(a=Be(o,"payload",function(){return!t&&p(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===Mn.ParentContextKey||e===Mn.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===Mn.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===Mn.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(Mn.ChildrenContextKey);if(be(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=Ue()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&p(i)&&(o.payload=i())}}var kn=function go(n){this.ctx={},ee(go,this,function(t){t.create=function(e,n,t){return new Fn(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&p(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},Pn="CoreUtils.doPerf";function Dn(e,n,t,r,i){if(e)if(e=p(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(Pn);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(Fn.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(Fn.ChildrenContextKey))||(o=[],s.setCtx(Fn.ChildrenContextKey,o)),o.push(a))),e.setCtx(Pn,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(Pn,s)}}return t()}var Bn="TelemetryPluginChain",On="_hasRun",Un="_getTelCtx",zn=0;function jn(e,a,t,n){var r=null,i=null,r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Kn([r],n,t)}(e,a,t,n):e,o={core:function(){return t},diagLog:function(){return Ln(t,a)},getCfg:function(){return a},getExtCfg:s,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=s(e,null);return e&&!P(e[n])?r=e[n]:a&&!P(a[n])&&(r=a[n]),P(r)?t:r},hasNext:function(){return null!=r},getNext:function(){return r},setNext:function(e){r=e},processNext:function(n){u(function(e){e.processTelemetry(n,o)})},iterate:function(n){for(;r;)u(function(e){e=e.getPlugin();e&&n(e)})},createNew:function(e,n){return jn((e=be(e=void 0===e?null:e)?Kn(e,a,t,n):e)||r,a,t,n)},onComplete:function(e){i=e}};function s(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),!a||(i=a.extensionConfig)&&e&&(r=i[e]),r?Ce(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,i=1;for(0<t&&Ae(n)&&(r=n,n=e[i]||{},i++),Ce(n)||(n={});i<t;i++){var o,a,s,u,l=e[i],c=be(l),f=Ce(l);for(o in l)(c&&o in l||f&&v.call(l,o))&&(a=l[o],s=void 0,r&&a&&((s=be(a))||Re(a))&&(u=n[o],s?be(u)||(u=[]):Re(u)||(u={}),a=d(r,u,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&xe(n,function(e){var n;P(o[e])&&(P(n=a[e])||(o[e]=n))})):r=n,r}function u(e){var n=r;n?(r=n.getNext(),e(n)):i&&(i(),i=null)}return o}function Kn(e,n,t,r){var i,o=null,a=!r;return be(e)&&0<e.length&&(i=null,D(e,function(e){(a=!a&&r===e||a)&&e&&p(e.processTelemetry)&&(e=qn(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Kn([r],n,t):o}function qn(u,l,c){var f=null,t=p(u.processTelemetry),r=p(u.setNextPlugin),d=u?u.identifier+"-"+u.priority+"-"+zn++:"Unknown-0-"+zn++,g={getPlugin:function(){return u},getNext:function(){return f},processTelemetry:function(n,e){i(e,function(e){return!!t&&(r&&u.setNextPlugin(f),u.processTelemetry(n,e),!0)},function(e){f.processTelemetry(n,e)},"processTelemetry",function(){return{item:n}},!n.sync)},_id:d,_setNext:function(e){f=e}};function i(r,i,o,a,e,n){r=(r=r||(u&&p(u[Un])?u[Un]():r))||jn(g,l,c);var t=u?u.identifier:Bn,s=(s=r[On])||(r[On]={});Dn(r.core(),function(){return t+":"+a},function(){var e=!(s[d]=!0);if(r.setNext(f),u)try{var n=f?f._id:"";n&&(s[n]=!1),e=i(r)}catch(t){n=!f||s[f._id];n&&(e=!0),f&&n||r.diagLog().throwInternal(M.CRITICAL,k.PluginException,"Plugin ["+u.identifier+"] failed during "+a+" - "+vn(t)+", run flags: "+vn(s))}f&&!e&&o(r)},e,n)}return Oe(g)}var Vn="processTelemetry",Wn="priority",Gn="setNextPlugin",Hn="isInitialized";function Xn(n,t){for(var e=[],r=null,i=n.getNext();i;){var o=i.getPlugin();o&&(r&&p(r[Gn])&&p(o[Vn])&&r[Gn](o),p(o[Hn])&&o[Hn]()||e.push(o),r=o,i=i.getNext())}D(e,function(e){e.initialize(n.getCfg(),n.core(),t,n.getNext())})}function Yn(e){return e.sort(function(e,n){var t=0,r=p(n[Vn]);return p(e[Vn])?t=r?e[Wn]-n[Wn]:1:r&&(t=-1),t})}var Jn="toGMTString",Zn="toUTCString",Qn="cookie",$n="expires",et="enabled",nt="isCookieUseDisabled",tt="disableCookiesUsage",rt="_ckMgr",it="",ot=null,at=null,st=null,ut=fn(),lt={},ct={};function ft(e){return!e||e.isEnabled()}function dt(e,i){je(t=(e=e||ct).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Ie,P),je(t,"path",e.cookiePath||"/",null,P),P(t[et])&&(n=void 0,ye(e[nt])||(n=!e[nt]),ye(e[tt])||(n=!e[tt]),t[et]=n);var n,t,l=t,c=l.path||"/",f=l.domain,r=!1!==l[et],d={isEnabled:function(){var e=r&&gt(i),n=ct[rt];return e&&n&&d!==n?ft(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return ft(d)&&(o={},-1!=(s=(a=Me(n||it)).indexOf(";"))&&(a=Me(n.substring(0,s)),o=pt(n.substring(1+s))),je(o,"domain",r||f,qe,ye),P(t)||(s=mn(),!ye(o[$n])||0<(n=Ue()+1e3*t)&&((r=new Date).setTime(n),je(o,$n,ht(r,s?Jn:Zn)||ht(r,s?Jn:Zn)||it,qe)),s||je(o,"max-age",it+t,null,ye)),(n=typeof location===g&&location?location:un(Xe))&&"https:"===n.protocol&&(je(o,"secure",null,null,ye),(at=null===at?!(Ne(r=(gn()||{}).userAgent)&&(Te(r,"CPU iPhone OS 12")||Te(r,"iPad; CPU OS 12")||Te(r,"Macintosh; Intel Mac OS X 10_14")&&Te(r,"Version/")&&Te(r,"Safari")||Te(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(de)return e[ie](n);var r=e,i=n,t=!1,e=r?r.length:0;if(e&&40<=e&&!(t=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}t=!0}return t}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Te(r,"Chrome/5")||Te(r,"Chrome/6")||Te(r,"UnrealEngine")&&!Te(r,"Chrome")||Te(r,"UCBrowser/12")||Te(r,"UCBrowser/11"))):at)&&je(o,"SameSite","None",null,ye)),je(o,"path",i||c,null,ye),(l.setCookie||vt)(e,mt(a,o)),u=!0),u},get:function(e){var n=it;return ft(d)?(l.getCookie||function(e){var n,t=it;return ut&&(n=ut[Qn]||it,st!==n&&(lt=pt(n),st=n),t=Me(lt[e]||it)),t})(e):n},del:function(e,n){return!!ft(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return gt(i)&&((t={}).path=n||"/",t[$n]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,mn()||(n["max-age"]="0"),(l.delCookie||vt)(e,mt(it,n)),r=!0),r}};return d[rt]=d}function gt(e){if(null===ot){ot=!1;try{ot=(ut||{})[Qn]!==undefined}catch(n){e&&e.throwInternal(M.WARNING,k.CannotAccessCookie,"Cannot access document.cookie - "+ze(n),{exception:vn(n)})}}return ot}function pt(e){var t={};return e&&e.length&&D(Me(e).split(";"),function(e){var n;(e=Me(e||it))&&(-1==(n=e.indexOf("="))?t[e]=null:t[Me(e.substring(0,n))]=Me(e.substring(1+n)))}),t}function ht(e,n){return p(e[n])?e[n]():null}function mt(e,n){var t=e||it;return xe(n,function(e,n){t+="; "+e+(P(n)?it:"="+n)}),t}function vt(e,n){ut&&(ut[Qn]=e+"="+n)}var yt="extensionConfig",It=500,Ct="Channel has invalid priority - ";function St(e,n,t,r){n&&be(n)&&0<n.length&&(D(n=n.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<It&&Ve(Ct+e.identifier)}),e.push({queue:Oe(n),chain:Kn(n,t,r)}))}var xt,Tt="getPlugin",se=function po(){var o,a,s,n,u=this;function t(e){var n,e=e=void 0===e?null:e;return e||(n=a||jn(null,{},u.core),e=s&&s[Tt]?n.createNew(null,s[Tt]):n.createNew(null,s)),e}o=!1,u.core=null,s=a=null,n=[],ee(po,u,function(e){e.initialize=function(e,n,t,r){e&&je(e,yt,[],null,P),!r&&n&&(r=n.getProcessTelContext().getNext());var i=s;s&&s[Tt]&&(i=s[Tt]()),u.core=n,a=jn(r,e,n,i),o=!0},e._addHook=function(e){e&&(be(e)?n=n.concat(e):n.push(e))}}),u.diagLog=function(e){return t(e).diagLog()},u.isInitialized=function(){return o},u.setInitialized=function(e){o=e},u.setNextPlugin=function(e){s=e},u.processNext=function(e,n){n?n.processNext(e):s&&p(s.processTelemetry)&&s.processTelemetry(e,null)},u._getTelCtx=t},bt=(e(wt,xt=se),wt);function wt(){var n,u,e=xt.call(this)||this;function r(){n=0,u=[]}return e.identifier="TelemetryInitializerPlugin",e.priority=199,r(),ee(wt,e,function(s,t){s.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return u.push(t),{remove:function(){D(u,function(e,n){if(e.id===t.id)return u.splice(n,1),-1})}}},s.processTelemetry=function(e,n){for(var t=!1,r=u.length,i=0;i<r;++i){var o=u[i];if(o)try{if(!1===o.fn.call(null,e)){t=!0;break}}catch(a){n.diagLog().throwInternal(M.CRITICAL,k.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+ze(a),{exception:vn(a)},!0)}}t||s.processNext(e,n)},s.unload=function(e,n){t.unload(e,n),r()}}),e}var Nt="_notificationManager";function _t(e,n){return new kn(n)}var At="eventsSent",Rt="eventsDiscarded",Lt="eventsSendRequest",Et="perfEvent";function Ft(e,t,r,i){D(e,function(e){if(e&&e[t])if(r)setTimeout(function(){return i(e)},0);else try{i(e)}catch(n){}})}var Mt,kt=function ho(e){this.listeners=[];var t=!!(e||{}).perfEvtsSendAll;ee(ho,this,function(r){r.addNotificationListener=function(e){r.listeners.push(e)},r.removeNotificationListener=function(e){for(var n=Ee(r.listeners,e);-1<n;)r.listeners.splice(n,1),n=Ee(r.listeners,e)},r.eventsSent=function(n){Ft(r.listeners,At,!0,function(e){e[At](n)})},r.eventsDiscarded=function(n,t){Ft(r.listeners,Rt,!0,function(e){e[Rt](n,t)})},r.eventsSendRequest=function(n,t){Ft(r.listeners,Lt,t,function(e){e[Lt](n,t)})},r.perfEvent=function(n){n&&(!t&&n.isChildEvt()||Ft(r.listeners,Et,!1,function(e){n.isAsync?setTimeout(function(){return e[Et](n)},0):e[Et](n)}))}})},Pt=(e(Dt,Mt=function mo(){var C,t,S,r,x,u,T,_,b,w,A,l,c,N,i=0;ee(mo,this,function(I){var o,a,e,s;function n(){var e=I.logger?I.logger.queue:[];e&&(D(e,function(e){e={name:c||"InternalMessageId: "+e.messageId,iKey:I.config.instrumentationKey,time:Le(new Date),baseType:An.dataType,baseData:{message:e.message}};I.track(e)}),e.length=0)}C=!1,I.logger=new En({loggingLevelConsole:M.CRITICAL}),I.config=null,I._extensions=[],l=new bt,t=[],c=A=_=b=T=u=x=r=S=null,I.isInitialized=function(){return C},I.initialize=function(e,c,n,t){I.isInitialized()&&Ve("Core should not be initialized more than once"),e&&!P(e.instrumentationKey)||Ve("Please provide instrumentation key"),S=t,I[Nt]=t,I.config=e||{};var r,o,f,d,g,p,h,i,m,v,a,y,s,u=e,u=(!0===u.disableDbgExt&&N&&(S.removeNotificationListener(N),N=null),S&&!N&&!0!==u.disableDbgExt&&(N=function(e){if(!xn){xn={};for(var n=0;n<Tn.length;n++)xn[Tn[n]]=function(n,t){return function(){var e=wn(t);!e||(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(Tn[n],e)}return xn}(u),S.addNotificationListener(N)),e);function l(n,t,r){var i;o&&0<o.length?(i=o.length,D(o,function(e){e&&0<e.queue.length?(e=e.chain,(e=(n||jn(null,f.config,f,null)).createNew(e)).onComplete(function(){0==--i&&(r&&r(),r=null)}),t(e)):i--}),0===i&&r&&r()):r&&r()}!u.enablePerfMgr&&x&&(x=null),u.enablePerfMgr&&je(I.config,"createPerfMgr",_t),e.extensions=P(e.extensions)?[]:e.extensions,e?!(r=e[yt])&&P(r)&&(r=ye(a)?{}:a,e[yt]=r):r=ye(a)?{}:a,r.NotificationManager=t,n&&(I.logger=n),(_=[]).push.apply(_,L(L([],c),e.extensions)),w=(e||{}).channels,u=e,m=I.logger,v=It,y=[],s={},D(a=_,function(e){(P(e)||P(e.initialize))&&Ve("Plugins must provide initialize method");var n=e.priority,t=e.identifier;e&&n&&(P(s[n])?s[n]=t:m.warnToConsole("Two extensions have same priority #"+n+" - "+s[n]+", "+t)),(!n||n<v)&&y.push(e)}),b=(r={all:a,core:y}).core,T=null,A=Oe((n=t=r.all,g=u,p=I,i=[],w&&D(w,function(e){return St(i,e,g,p)}),n&&(h=[],D(n,function(e){e.priority>It&&h.push(e)}),St(i,h,g,p)),i)),o=A,f=I,d=!1,w={identifier:"ChannelControllerPlugin",priority:It,initialize:function(n,t,r,e){d=!0,D(o,function(e){e&&0<e.queue.length&&Xn(jn(e.chain,n,t),r)})},isInitialized:function(){return d},processTelemetry:function(n,e){l(e,function(e){e.processNext(n)},function(){e.processNext(n)})},pause:function(){l(null,function(e){e.iterate(function(e){e.pause&&e.pause()})})},resume:function(){l(null,function(e){e.iterate(function(e){e.resume&&e.resume()})})},teardown:function(){l(null,function(e){e.iterate(function(e){e.teardown&&e.teardown()})})},flush:function(n,t,r,i){var e=!1,o=0,a=null;function s(){e&&0===o&&(a&&(clearTimeout(a),a=null),t&&t(e),t=null)}i=i||5e3,o=1,l(null,function(e){e.iterate(function(e){e.flush&&(o++,e.flush(n,function(){o--,s()},r)||null==a&&(a=setTimeout(function(){a=null,t&&t(!1),t=null},i)))})},function(){o--,e=!0,s()})}},t.push(w),b.push(w),I._extensions=Yn(t),w.initialize(u,I,t),Xn(I.getProcessTelContext(),t),I._extensions=Oe(Yn(b||[])).slice(),0===I.getTransmissionControls().length&&Ve("No channels available"),C=!0,I.releaseQueue()},I.getTransmissionControls=function(){var n=[];return D(A,function(e){n.push(e.queue)}),Oe(n)},I.track=function(e){je(e,"iKey",I.config.instrumentationKey,null,Ke),je(e,"time",Le(new Date),null,Ke),je(e,"ver","4.0",null,P),I.isInitialized()?I.getProcessTelContext().processNext(e):t.push(e)},I.getProcessTelContext=function(){return jn((T||((e=(b||[]).slice()).push(l),T=Kn(Yn(e),I.config,I)),T),I.config,I);var e},I.getNotifyMgr=function(){return S||(S=R({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,n){},eventsSendRequest:function(e,n){}}),I[Nt]=S),S},I.addNotificationListener=function(e){S&&S.addNotificationListener(e)},I.removeNotificationListener=function(e){S&&S.removeNotificationListener(e)},I.getCookieMgr=function(){return u=u||dt(I.config,I.logger)},I.setCookieMgr=function(e){u=e},I.getPerfMgr=function(){return r||x||I.config&&I.config.enablePerfMgr&&p(I.config.createPerfMgr)&&(x=I.config.createPerfMgr(I,I.getNotifyMgr())),r||x||null},I.setPerfMgr=function(e){r=e},I.eventCnt=function(){return t.length},I.releaseQueue=function(){var e;C&&0<t.length&&(e=t,t=[],D(e,function(e){I.getProcessTelContext().processNext(e)}))},I.pollInternalLogs=function(e){c=e;e=I.config.diagnosticLogInterval;return e&&0<e||(e=1e4),i&&clearInterval(i),i=setInterval(function(){n()},e)},I.stopPollingInternalLogs=function(){i&&(clearInterval(i),i=0,n())},a=function(){return l},e=["addTelemetryInitializer"],void 0===s&&(s=!0),(o=I)&&a&&Ce(o)&&be(e)&&D(e,function(e){var n,t,r,i;Ne(e)&&(void 0===(n=s)&&(n=!0),o&&e&&a&&(n||ye(o[e]))&&(o[e]=(t=e,i=r=null,p(n=a)?r=n:i=n,function(){var e=arguments;if(i=r?r():i)return i[t].apply(i,e)})))}),I.getPlugin=function(n){var t=null;return D(I._extensions,function(e){if(e.identifier===n)return t=e,-1}),t?{plugin:t}:null}})}),Dt);function Dt(){var e=Mt.call(this)||this;return ee(Dt,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new En(e),r||new kt(e))},t.track=function(e){Dn(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),Ve("Invalid telemetry item")),P(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)}}),e}var Bt=4294967296,Ot=4294967295,Ut=!1,zt=123456789,jt=987654321;function Kt(e){e<0&&(e>>>=0),zt=123456789+e&Ot,jt=987654321-e&Ot,Ut=!0}function qt(){try{var e=2147483647&Ue();Kt((Math.random()*Bt^e)+e)}catch(n){}}function Vt(e){return 0<e?Math.floor(Wt()/Ot*(e+1))>>>0:0}function Wt(e){var n=0,t=un(Ze)||un(Qe);return 0===(n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&Ot:n)&&mn()&&(Ut||qt(),n=Gt()&Ot),0===n&&(n=Math.floor(Bt*Math.random()|0)),e||(n>>>=0),n}function Gt(e){var n=((jt=36969*(65535&jt)+(jt>>16)&Ot)<<16)+(65535&(zt=18e3*(65535&zt)+(zt>>16)&Ot))>>>0&Ot|0;return e||(n>>>=0),n}var Ht,Xt=null,Yt={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:ye,isNullOrUndefined:P,hasOwnProperty:function(e,n){return!(!e||!v.call(e,n))},isFunction:p,isObject:Ce,isDate:function(e){return!(!e||"[object Date]"!==pe.call(e))},isArray:be,isError:we,isString:Ne,isNumber:_e,isBoolean:Ae,toISOString:Le,arrForEach:D,arrIndexOf:Ee,arrMap:Fe,arrReduce:function(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r},strTrim:Me,objCreate:R,objKeys:De,objDefineAccessors:Be,addEventHandler:function(e,n){var t=!1,r=cn(),r=(r&&(t=Se(r,e,n),t=Se(r.body,e,n)||t),fn());return r&&Se(r,e,n)||t},dateNow:Ue,isIE:mn,disableCookies:function(){var e,n;(e=dt[rt]||ct[rt])||(e=dt[rt]=dt(void 0,void 0),ct[rt]=e),e=e,n=Yt._canUseCookies,null===Xt&&(Xt=[],Ht=n,Be(Yt,"_canUseCookies",function(){return Ht},function(n){Ht=n,D(Xt,function(e){e.setEnabled(n)})})),-1===Ee(Xt,e)&&Xt.push(e),Ae(n)&&e.setEnabled(n),Ae(Ht)&&e.setEnabled(Ht),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Jt,function(e){var n=0|Vt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=un("performance");return e&&e.now?e.now():Ue()},newId:function(e){void 0===e&&(e=22);for(var n=Wt()>>>0,t=0,r="";r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Wt()<<2&4294967295|3&n)>>>0,t=0);return r},randomValue:Vt,random32:Wt,mwcRandomSeed:function(e){e?Kt(e):qt()},mwcRandom32:Gt,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t="",r=0;r<4;r++)t+=n[15&(e=Wt())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&Wt())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Jt=/[xy]/g;function Zt(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=Me(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(M.WARNING,k.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));a=u}return a}function Qt(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=Me(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(M.WARNING,k.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function $t(e,n){return rr(e,n,2048,k.UrlTooLong)}function er(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(M.WARNING,k.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function nr(r,e){var i;return e&&(i={},xe(e,function(e,n){if(Ce(n)&&pn())try{n=hn().stringify(n)}catch(t){r&&r.throwInternal(M.WARNING,k.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=Qt(r,n,8192),e=Zt(r,e,i),i[e]=n}),e=i),e}function tr(t,e){var r;return e&&(r={},xe(e,function(e,n){e=Zt(t,e,r),r[e]=n}),e=r),e}function rr(e,n,t,r){var i;return n&&(n=Me(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(M.WARNING,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}function ir(e){var n=""+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=""+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t;return(0<i?i+".":"")+(r=r.length<2?"0"+r:r)+":"+t+":"+n+"."+e}var or,ar="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",sr="sampleRate",ur="ProcessLegacy",lr="http.method",cr="not_specified",fr=((n=or=or||{})[n.LocalStorage=0]="LocalStorage",n[n.SessionStorage=1]="SessionStorage",undefined);function dr(e){try{if(P(I()))return null;var n=new Date,t=un(e===or.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function gr(){return pr()?dr(or.SessionStorage):null}function pr(){return fr=fr===undefined?!!dr(or.SessionStorage):fr}function hr(e,n){var t=gr();if(null!==t)try{return t.getItem(n)}catch(r){fr=!1,e.throwInternal(M.WARNING,k.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+ze(r),{exception:vn(r)})}return null}function mr(e,n,t){var r=gr();if(null!==r)try{return r.setItem(n,t),1}catch(i){fr=!1,e.throwInternal(M.WARNING,k.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+ze(i),{exception:vn(i)})}}var vr=fn()||{},yr=0,Ir=[null,null,null,null,null];var Cr=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Sr(e){return~Cr.indexOf(e.toLowerCase())}e(Tr,xr=function(){});var xr,m=Tr;function Tr(){return xr.call(this)||this}e(Nr,br=function(){this.ver=1,this.sampleRate=100,this.tags={}});var br,wr=Nr;function Nr(e,n,t){var r=br.call(this)||this;return r.name=Qt(e,t)||cr,r.data=n,r.time=Le(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var _r,n=function(){this.ver=2,this.properties={},this.measurements={}},Ar=(e(Rr,_r=n),Rr.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Rr.dataType="EventData",Rr);function Rr(e,n,t,r){var i=_r.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=Qt(e,n)||cr,i.properties=nr(e,t),i.measurements=tr(e,r),i}var Lr="error",Er="stack",Fr="stackDetails",Mr="errorSrc",kr="message",Pr="description";function Dr(e,n){var t=e;return t&&!Ne(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=p(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function Br(e,n){var t=e;return e&&((t=t&&!Ne(t)&&(e[kr]||e[Pr])||t)&&!Ne(t)&&(t=Dr(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function Or(e){return e&&e.src&&Ne(e.src)&&e.obj&&be(e.obj)}function Ur(e){var e=e||"",n=(e=Ne(e)?e:Ne(e[Er])?e[Er]:""+e).split("\n");return{src:e,obj:n}}function zr(e){var n,t=null;if(e)try{e[Er]?t=Ur(e[Er]):e[Lr]&&e[Lr][Er]?t=Ur(e[Lr][Er]):e.exception&&e.exception[Er]?t=Ur(e.exception[Er]):Or(e)?t=e:Or(e[Fr])?t=e[Fr]:window&&window.opera&&e[kr]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):Ne(e)?t=Ur(e):(n=e[kr]||e[Pr]||"",Ne(e[Mr])&&(n&&(n+="\n"),n+=" from "+e[Mr]),n&&(t=Ur(n)))}catch(r){t=Ur(r)}return t||{src:"",obj:null}}function jr(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function Kr(e){if(e)try{var n,t;if(!Ne(e))return n=jr(e),(t=Dr(e,!1))&&"{}"!==t||(e[Lr]&&(n=jr(e=e[Lr])),t=Dr(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}e(Wr,qr=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),Wr.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=jr(i||o||e);return{message:Br(e,u),url:n,lineNumber:t,columnNumber:r,error:Kr(i||o||e),evt:Kr(o||e),typeName:u,stackDetails:zr(a||i||o),errorSrc:s}},Wr.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&Fe(e.exceptions,function(e){return Hr.CreateFromInterface(n,e)});return new Wr(n,S(S({},e),{exceptions:i}),t,r)},Wr.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&Fe(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},Wr.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},Wr.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Wr.dataType="ExceptionData",Wr.formatError=Kr;var qr,Vr=Wr;function Wr(e,n,t,r,i,o){var a=qr.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(Ce(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,P(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new Hr(e,n,t=t||{})],a.properties=nr(e,t),a.measurements=tr(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}e(Xr,Gr=function(){this.hasFullStack=!0,this.parsedStack=[]}),Xr.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Fe(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[Er],parsedStack:e||undefined}},Xr.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&Fe(n.parsedStack,function(e){return Zr.CreateFromInterface(e)})||n.parsedStack;return new Xr(e,S(S({},n),{parsedStack:t}))};var Gr,Hr=Xr;function Xr(e,n,t){var l,r,i,o,a,s=Gr.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(Ce(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[Er]=n[Er],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,we(o)||(o=o[Lr]||r||o),s.typeName=Qt(e,jr(o))||cr,s.message=er(e,Br(n||o,s.typeName))||cr,l=n[Fr]||zr(n),s.parsedStack=function(){var e=l.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(D(e,function(e){var e=e.toString();Zr.regex.test(e)&&(e=new Zr(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),s[Er]=(r=e,a="",(o=l)&&(o.obj?D(o.obj,function(e){a+=e+"\n"}):a=o.src||""),!(n=a)||32768<(e=""+n).length&&(i=e.substring(0,32768),r&&r.throwInternal(M.WARNING,k.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),i||n),s.hasFullStack=be(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}e(Qr,Yr=function(){}),Qr.CreateFromInterface=function(e){return new Qr(e,null)},Qr.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Qr.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Qr.baseSize=58;var Yr,Jr,Zr=Qr;function Qr(e,n){var t,r=Yr.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=Me(t),r.fileName="",r.line=0,(n=t.match(Qr.regex))&&5<=n.length&&(r.method=Me(n[2])||r.method,r.fileName=Me(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+=Qr.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}Jr=0,e(ni,$r=function(){this.kind=Jr});var $r,ei=ni;function ni(){var e=null!==$r&&$r.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}e(ii,ti=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),ii.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",ii.dataType="MetricData";var ti,ri=ii;function ii(e,n,t,r,i,o,a,s,c){var u=ti.call(this)||this,l=(u.aiDataContract={ver:1,metrics:1,properties:0},new ei);return l.count=0<r?r:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(i)||null===i?undefined:i,l.name=Qt(e,n)||cr,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,u.metrics=[l],u.properties=nr(e,s),u.measurements=tr(e,c),u}e(ai,oi=n);var oi,n=ai;function ai(){var e=oi.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}e(li,si=n),li.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",li.dataType="PageviewData";var si,ui=li;function li(e,n,t,r,i,o,a){var s=si.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&rr(e,a,128,k.IdTooLong).toString(),s.url=$t(e,t),s.name=Qt(e,n)||cr,isNaN(r)||(s.duration=ir(r)),s.properties=nr(e,i),s.measurements=tr(e,o),s}e(di,ci=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),di.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",di.dataType="RemoteDependencyData";var ci,fi=di;function di(e,n,t,c,r,f,i,o,a,d,g,p){void 0===a&&(a="Ajax");var h,s,u,l=ci.call(this)||this,t=(l.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},l.id=n,l.duration=ir(r),l.success=f,l.resultCode=i+"",l.type=Qt(e,a),n=e,r=o,a=i=f=c,i=(o=t)&&0<o.length?(h=o,u=(t=Ir)[s=yr],vr.createElement?t[s]||(u=t[s]=vr.createElement("a")):u={host:function(){e=null,!h||null!=(t=h.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&Ne(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&Ne(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},u.href=h,++s>=t.length&&(s=0),yr=s,s=(t=u).host,i||(null!=t.pathname?("/"!=((u=0===t.pathname.length?"/":t.pathname)[0]||"")&&(u="/"+u),a=t.pathname,Qt(n,r?r+" "+u:u)):Qt(n,o))):s=f,{target:s,name:i,data:a});return l.data=$t(e,c)||t.data,l.target=Qt(e,t.target),d&&(l.target="".concat(l.target," | ").concat(d)),l.name=Qt(e,t.name),l.properties=nr(e,g),l.measurements=tr(e,p),l}e(mi,gi=function(){this.ver=2,this.properties={},this.measurements={}}),mi.envelopeType="Microsoft.ApplicationInsights.{0}.Message",mi.dataType="MessageData";var gi,pi,hi=mi;function mi(e,n,t,r,i){var o=gi.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=er(e,n=n||cr),o.properties=nr(e,r),o.measurements=tr(e,i),t&&(o.severityLevel=t),o}function vi(){var e=pi.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}e(vi,pi=n),e(Ci,yi=vi),Ci.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",Ci.dataType="PageviewPerformanceData";var yi,Ii=Ci;function Ci(e,n,t,r,i,o,a){var s=yi.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=$t(e,t),s.name=Qt(e,n)||cr,s.properties=nr(e,i),s.measurements=tr(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}e(Ti,Si=m);var Si,xi=Ti;function Ti(e,n){var t=Si.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function bi(e){var n="ai."+e+".";return function(e){return n+e}}t.SeverityLevel=void 0,(n=t.SeverityLevel||(t.SeverityLevel={}))[n.Verbose=0]="Verbose",n[n.Information=1]="Information",n[n.Warning=2]="Warning",n[n.Error=3]="Error",n[n.Critical=4]="Critical";var wi,Ni,m=bi("application"),n=bi("device"),_i=bi("location"),Ai=bi("operation"),Ri=bi("session"),Li=bi("user"),Ei=bi("cloud"),Fi=bi("internal"),Mi=(Ni={applicationVersion:m("ver"),applicationBuild:m("build"),applicationTypeId:m("typeId"),applicationId:m("applicationId"),applicationLayer:m("layer"),deviceId:n("id"),deviceIp:n("ip"),deviceLanguage:n("language"),deviceLocale:n("locale"),deviceModel:n("model"),deviceFriendlyName:n("friendlyName"),deviceNetwork:n("network"),deviceNetworkName:n("networkName"),deviceOEMName:n("oemName"),deviceOS:n("os"),deviceOSVersion:n("osVersion"),deviceRoleInstance:n("roleInstance"),deviceRoleName:n("roleName"),deviceScreenResolution:n("screenResolution"),deviceType:n("type"),deviceMachineName:n("machineName"),deviceVMName:n("vmName"),deviceBrowser:n("browser"),deviceBrowserVersion:n("browserVersion"),locationIp:_i("ip"),locationCountry:_i("country"),locationProvince:_i("province"),locationCity:_i("city"),operationId:Ai("id"),operationName:Ai("name"),operationParentId:Ai("parentId"),operationRootId:Ai("rootId"),operationSyntheticSource:Ai("syntheticSource"),operationCorrelationVector:Ai("correlationVector"),sessionId:Ri("id"),sessionIsFirst:Ri("isFirst"),sessionIsNew:Ri("isNew"),userAccountAcquisitionDate:Li("accountAcquisitionDate"),userAccountId:Li("accountId"),userAgent:Li("userAgent"),userId:Li("id"),userStoreRegion:Li("storeRegion"),userAuthUserId:Li("authUserId"),userAnonymousUserAcquisitionDate:Li("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Li("authUserAcquisitionDate"),cloudName:Ei("name"),cloudRole:Ei("role"),cloudRoleVer:Ei("roleVer"),cloudRoleInstance:Ei("roleInstance"),cloudEnvironment:Ei("environment"),cloudLocation:Ei("location"),cloudDeploymentUnit:Ei("deploymentUnit"),internalNodeName:Fi("nodeName"),internalSdkVersion:Fi("sdkVersion"),internalAgentVersion:Fi("agentVersion"),internalSnippet:Fi("snippet"),internalSdkSrc:Fi("sdkSrc")},e(ki,wi=function(){var t=this;xe(Ni,function(e,n){t[e]=n})}),ki);function ki(){return wi.call(this)||this}var Pi,Di=new Mi,m=function vo(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},ee(vo,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(M.WARNING,k.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},Bi=(e(Oi,Pi=m),Oi);function Oi(e,n){e=Pi.call(this,e,n)||this;return ee(Oi,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}e(c,Ui=m),c.BUFFER_KEY="AI_buffer",c.SENT_BUFFER_KEY="AI_sentBuffer",c.MAX_BUFFER_SIZE=2e3;var Ui,zi=c;function c(s,u){var e=Ui.call(this,s,u)||this,l=!1;return ee(c,e,function(t,n){var e=o(c.BUFFER_KEY),r=o(c.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return D(e,function(e){p(e)||-1!==Ee(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=hr(s,e);if(n){var t=hn().parse(n);if((t=Ne(t)?hn().parse(t):t)&&be(t))return t}}catch(r){s.throwInternal(M.CRITICAL,k.FailedToRestoreStorageBuffer," storage key: "+e+", "+ze(r),{exception:vn(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);mr(s,e,t)}catch(r){mr(s,e,JSON.stringify([])),s.throwInternal(M.WARNING,k.FailedToSetStorageBuffer," storage key: "+e+", "+ze(r)+". Buffer cleared",{exception:vn(r)})}}r.length>c.MAX_BUFFER_SIZE&&(r.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,[]),a(c.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=c.MAX_BUFFER_SIZE?l||(s.throwInternal(M.WARNING,k.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),l=!0):(n.enqueue(e),a(c.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(c.BUFFER_KEY,t._get()),a(c.SENT_BUFFER_KEY,[]),l=!1},t.markAsSent=function(e){a(c.BUFFER_KEY,t._set(i(e,t._get())));var n=o(c.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>c.MAX_BUFFER_SIZE&&(s.throwInternal(M.CRITICAL,k.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=c.MAX_BUFFER_SIZE),a(c.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(c.SENT_BUFFER_KEY));a(c.SENT_BUFFER_KEY,e)}}),e}var ji="baseType",f="baseData",Ki="properties",qi="true";function d(e,n,t){return je(e,n,t,qe)}function Vi(e,t,r){P(e)||xe(e,function(e,n){_e(n)?r[e]=n:Ne(n)?t[e]=n:pn()&&(t[e]=hn().stringify(n))})}function Wi(t,r){P(t)||xe(t,function(e,n){t[e]=n||r})}function Gi(e,n,t,r){for(var r=new wr(e,r,n),n=(d(r,"sampleRate",t[sr]),(t[f]||{}).startTime&&(r.time=Le(t[f].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},s=e.tags=e.tags||[],u=a.user,u=(u&&(d(o,Di.userAuthUserId,u.authId),d(o,Di.userId,u.id||u.localId)),a.app),u=(u&&d(o,Di.sessionId,u.sesId),a.device),u=(u&&(d(o,Di.deviceId,u.id||u.localId),d(o,Di.deviceType,u.deviceClass),d(o,Di.deviceIp,u.ip),d(o,Di.deviceModel,u.model),d(o,Di.deviceType,u.deviceType)),e.ext.web),e=(u&&(d(o,Di.deviceLanguage,u.browserLang),d(o,Di.deviceBrowserVersion,u.browserVer),d(o,Di.deviceBrowser,u.browser),d(e=(e=(e=i.data=i.data||{})[f]=e[f]||{})[Ki]=e[Ki]||{},"domain",u.domain),d(e,"isManual",u.isManual?qi:null),d(e,"screenRes",u.screenRes),d(e,"userConsent",u.userConsent?qi:null)),a.os),u=(e&&d(o,Di.deviceOS,e.name),a.trace),c=(u&&(d(o,Di.operationParentId,u.parentID),d(o,Di.operationName,Qt(n,u.name)),d(o,Di.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)xe(s[l],function(e,n){c[e]=n}),s.splice(l,1);xe(s,function(e,n){c[e]=n});e=S(S({},o),c);return e[Di.internalSdkVersion]||(e[Di.internalSdkVersion]="javascript:".concat(Xi.Version)),i.tags=We(e),t.tags=t.tags||[],We(r)}function Hi(e,n){P(n[f])&&e.throwInternal(M.CRITICAL,k.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Xi={Version:"2.8.0-beta.2202-06"};function Yi(e,n,t){Hi(e,n);var r={},i={},t=(n[ji]!==Ar.dataType&&(r.baseTypeSource=n[ji]),n[ji]===Ar.dataType?(r=n[f][Ki]||{},i=n[f].measurements||{}):n[f]&&Vi(n[f],r,i),Vi(n.data,r,i),P(t)||Wi(r,t),n[f].name),t=new Ar(e,t,r,i),r=new xi(Ar.dataType,t);return Gi(e,Ar.envelopeType,n,r)}var Ji=function yo(f){ee(yo,this,function(e){function l(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(M.CRITICAL,k.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(M.WARNING,k.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,xe(a.aiDataContract,function(e,n){var t=p(n)?1&n():1&n,r=p(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=Ce(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?c:l)(a[e],e):a[e])!==undefined&&(u[e]=t):f.throwInternal(M.CRITICAL,k.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(be(a))u=c(a,s);else{f.throwInternal(M.WARNING,k.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{hn().stringify(a),u=a}catch(n){f.throwInternal(M.CRITICAL,k.CannotSerializeObject,n&&p(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function c(e,n){if(e)if(be(e))for(var t=[],r=0;r<e.length;r++){var i=l(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(M.CRITICAL,k.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},xe(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(M.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=l(e,"root");try{return hn().stringify(e)}catch(n){f.throwInternal(M.CRITICAL,k.CannotSerializeObject,n&&p(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function Zi(){var a=cn(),s=fn(),u=!1,l=!0;ee(Zi,this,function(e){try{var n,t;a&&Se(a,"online",r)&&(Se(a,"offline",i),u=!0),s&&(ye((n=s.body||s).ononline)||(n.ononline=r,n.onoffline=i,u=!0)),!u||(t=gn())&&!P(t.onLine)&&(l=t.onLine)}catch(o){u=!1}function r(){l=!0}function i(){l=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=gn();return u?e=l:n&&!P(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Qi=Zi.Offline=new Zi,$i=(eo.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/eo.INT_MAX_VALUE*100},eo.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},eo.INT_MAX_VALUE=2147483647,eo);function eo(){}var no=function(){var n=new $i,t=new Mi;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},to=(ro.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===ri.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},ro);function ro(e,n){this.INT_MAX_VALUE=2147483647;n=n||Ln(null);(100<e||e<0)&&(n.throwInternal(M.WARNING,k.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new no}function io(e){try{return e.responseText}catch(n){}return null}function oo(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(n={})[Ar.dataType]=Yi,n[hi.dataType]=function(e,n,t){Hi(e,n);var r=n[f].message,i=n[f].severityLevel,o=n[f][Ki]||{},a=n[f].measurements||{},t=(Vi(n.data,o,a),P(t)||Wi(o,t),new hi(e,r,i,o,a)),r=new xi(hi.dataType,t);return Gi(e,hi.envelopeType,n,r)},n[ui.dataType]=function(e,n,t){Hi(e,n);var r,i="duration",o=n[f],i=(P(o)||P(o[Ki])||P(o[Ki][i])?P(n.data)||P(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[Ki][i],delete o[Ki][i]),n[f]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[Ki]||{},l=i.measurements||{},i=(P(i.refUri)||(u.refUri=i.refUri),P(i.pageType)||(u.pageType=i.pageType),P(i.isLoggedIn)||(u.isLoggedIn=i.isLoggedIn.toString()),P(i[Ki])||xe(i[Ki],function(e,n){u[e]=n}),Vi(n.data,u,l),P(t)||Wi(u,t),new ui(e,a,s,r,u,l,o)),t=new xi(ui.dataType,i);return Gi(e,ui.envelopeType,n,t)},n[Ii.dataType]=function(e,n,t){Hi(e,n);var r=n[f],i=r.name,o=r.uri||r.url,a=r[Ki]||{},s=r.measurements||{},t=(Vi(n.data,a,s),P(t)||Wi(a,t),new Ii(e,i,o,undefined,a,s,r)),i=new xi(Ii.dataType,t);return Gi(e,Ii.envelopeType,n,i)},n[Vr.dataType]=function(e,n,t){Hi(e,n);var r=n[f].measurements||{},i=n[f][Ki]||{},t=(Vi(n.data,i,r),P(t)||Wi(i,t),n[f]),t=Vr.CreateFromInterface(e,t,i,r),i=new xi(Vr.dataType,t);return Gi(e,Vr.envelopeType,n,i)},n[ri.dataType]=function(e,n,t){Hi(e,n);var r=n[f],i=r[Ki]||{},o=r.measurements||{},t=(Vi(n.data,i,o),P(t)||Wi(i,t),new ri(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new xi(ri.dataType,t);return Gi(e,ri.envelopeType,n,r)},n[fi.dataType]=function(e,n,t){Hi(e,n);var r=n[f].measurements||{},i=n[f][Ki]||{},t=(Vi(n.data,i,r),P(t)||Wi(i,t),n[f]);if(P(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[Ki]&&t[Ki][lr]?t[Ki][lr]:"GET",o=new fi(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new xi(fi.dataType,o);return Gi(e,fi.envelopeType,n,t)};var ao,so=n,uo=(e(lo,ao=se),lo.constructEnvelope=function(e,n,t,r){e=n===e.iKey||P(n)?e:S(S({},e),{iKey:n});return(so[e.baseType]||Yi)(t,e,r)},lo);function lo(){var T,b,t,F,w,N,_,A=ao.call(this)||this,R=(A.priority=1001,!(A.identifier="AppInsightsChannelPlugin")),L={},E=0;return A._senderConfig=oo(),ee(lo,A,function(l,m){function c(e,n,t,r,i,o){var a=null;l._appId||(a=f(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!l._senderConfig.isRetryDisabled()&&I(e)?(d(n),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):l._onError(n,i):Qi.isOffline()?l._senderConfig.isRetryDisabled()||(d(n,10),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(Qi.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||f(o))&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,a):l._onError(n,i):(T=0,l._onSuccess(n,r)))}function s(e){return!(10<=w)&&!P(e)&&""!==e&&e!==l._senderConfig.endpointUrl()&&(l._senderConfig.endpointUrl=function(){return e},++w,1)}function n(e,n){_?_(e,!1):a(e)}function o(e){var n=gn(),t=l._buffer,r=l._senderConfig.endpointUrl(),i=l._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),l._onSuccess(e,e.length)),r}function a(e,n){if(be(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(N(t,!0),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function u(n,e){var t=new XMLHttpRequest,r=l._senderConfig.endpointUrl();try{t[ar]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),Sr(r)&&t.setRequestHeader("Sdk-Context","appId"),D(De(L),function(e){t.setRequestHeader(e,L[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return l._onError(n,h(t),e)};e=l._buffer.batchPayloads(n);t.send(e),l._buffer.markAsSent(n)}function v(e,n){if(be(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;E+t<=65e3?i(e,!1):yn()?a(e):(N&&N(e,!0),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function y(e,n){i(e,!0)}function i(t,r){var e=l._senderConfig.endpointUrl(),n=l._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,s=!1,e=(Sr(e)&&o.append("Sdk-Context","appId"),D(De(L),function(e){o.append(e,L[e])}),(i={method:"POST",headers:o,body:i})[ar]=!0,r||(n=i.keepalive=!0,E+=a),new Request(e,i));try{e[ar]=!0}catch(u){}l._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(E-=a,a=0),s||(s=!0,n.ok?n.text().then(function(e){c(n.status,t,n.url,t.length,n.statusText,e)}):l._onError(t,n.statusText))})["catch"](function(e){r||(E-=a,a=0),s||(s=!0,l._onError(t,e.message))})}catch(u){s||l._onError(t,vn(u))}n&&!s&&(s=!0,l._onSuccess(t,t.length))}function f(e){try{if(e&&""!==e){var n=hn().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){l.diagLog().throwInternal(M.CRITICAL,k.InvalidBackendResponse,"Cannot parse the response. "+ze(t),{response:e})}return null}function d(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=l._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=T<=1?10:(e=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=Ue()+1e3*n;b=e,g()}}function g(){var e;t||R||(e=b?Math.max(0,b-Ue()):0,e=Math.max(l._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,l.triggerSend(!0,null,1)},e))}function p(){clearTimeout(t),b=t=null}function I(e){return 408===e||429===e||500===e||503===e}function h(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+io(e)||e.response||"":n}function C(n,e){var t=l._buffer,r=cn(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l._onError(n,S(i),e)},r&&r.location&&r.location.protocol||"");if(l._senderConfig.endpointUrl().lastIndexOf(r,0))return l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=l._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+io(e)||"":n}function x(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){l.diagLog().throwInternal(M.CRITICAL,k.NotificationException,"send request notification failed: "+ze(r),{exception:vn(r)})}}l.pause=function(){p(),R=!0},l.resume=function(){R&&(R=!1,b=null,l._buffer.size()>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),g())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!R){p();try{l.triggerSend(e,null,t||1)}catch(r){l.diagLog().throwInternal(M.CRITICAL,k.FlushFailed,"flush failed, telemetry will not be collected: "+ze(r),{exception:vn(r)})}}},l.onunloadFlush=function(){if(!R)if(!1!==l._senderConfig.onunloadDisableBeacon()&&!1!==l._senderConfig.isBeaconApiDisabled()||!yn())l.flush();else try{l.triggerSend(!0,n,2)}catch(e){l.diagLog().throwInternal(M.CRITICAL,k.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ze(e),{exception:vn(e)})}},l.teardown=function(){Ve("Method not implemented.")},l.addHeader=function(e,n){L[e]=n},l.initialize=function(e,n,t,r){m.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(F=new Ji(n.logger),b=null,T=0,l._sender=null,w=0,l.diagLog()),r=(xe(oo(),function(e,n){l._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l._senderConfig.enableSessionStorageBuffer()&&pr()?zi:Bi)(t,l._senderConfig),l._sample=new to(l._senderConfig.samplingPercentage(),t),!P(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||t.throwInternal(M.CRITICAL,k.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!Sr(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders().length&&D(l._senderConfig.customHeaders(),function(e){A.addHeader(e.header,e.value)}),l._senderConfig),n=null;!r.disableXhr()&&Cn()?n=C:!r.disableXhr()&&Sn()&&(n=u),!n&&In()&&(n=y),N=n||u,!r.isBeaconApiDisabled()&&yn()&&(n=a),l._sender=n||u,_=!r.onunloadDisableFetch()&&In(!0)?v:yn()?a:!r.disableXhr()&&Cn()?C:!r.disableXhr()&&Sn()?u:N},l.processTelemetry=function(e,t){t=l._getTelCtx(t);try{if(l._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(M.CRITICAL,k.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(M.CRITICAL,k.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!l._sender)return void t.diagLog().throwInternal(M.CRITICAL,k.SenderNotInitialized,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void t.diagLog().throwInternal(M.WARNING,k.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:l._sample.sampleRate});e[sr]=l._sample.sampleRate;var n=l._senderConfig.convertUndefined()||undefined,r=e.iKey||l._senderConfig.instrumentationKey(),i=lo.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(M.CRITICAL,k.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[ur]&&(D(e.tags[ur],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(M.CRITICAL,k.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+ze(n),{exception:vn(n)},!0)}}),delete e.tags[ur]),o)return;var a=F.serialize(i),s=l._buffer;s.size()+a.length>l._senderConfig.maxBatchSizeInBytes()&&l.triggerSend(!0,null,10),s.enqueue(a),g()}catch(u){t.diagLog().throwInternal(M.WARNING,k.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ze(u),{exception:vn(u)})}l.processNext(e,t)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&c(e.status,n,e.responseURL,t,h(e),io(e)||e.response)},l.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!R)try{var r,i=l._buffer;l._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),x(t||0,e),n?n.call(A,r,e):l._sender(r,e)),p()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=gn()||{})?(n.userAgent||"").toLowerCase():"")||"").toLowerCase();if(Te(n,$e))return e=fn()||{},Math.max(parseInt(n.split($e)[1]),e.documentMode||0);if(Te(n,en)){e=parseInt(n.split(en)[1]);if(e)return e+4}return null}();(!i||9<i)&&l.diagLog().throwInternal(M.CRITICAL,k.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+ze(o),{exception:vn(o)})}},l._onError=function(e,n,t){l.diagLog().throwInternal(M.WARNING,k.OnError,"Failed to send telemetry.",{message:n}),l._buffer.clearSent(e)},l._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(I(a.statusCode)?r:t).push(s)}0<e.length&&l._onSuccess(e,n.itemsAccepted),0<t.length&&l._onError(t,h(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(d(r),l.diagLog().throwInternal(M.WARNING,k.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},l._onSuccess=function(e,n){l._buffer.clearSent(e)},l._xdrOnLoad=function(e,n){var t=io(e);!e||t+""!="200"&&""!==t?(t=f(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!l._senderConfig.isRetryDisabled()?l._onPartialSuccess(n,t):l._onError(n,S(e)):(T=0,l._onSuccess(n,0))}}),A}co.prototype.initialize=function(){this.core=new Pt;var e=[],n=new uo;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},co.prototype.track=function(e){this.core.track(e)},co.prototype.flush=function(n){void 0===n&&(n=!0),D(this.core.getTransmissionControls(),function(e){D(e,function(e){n?e.flush():e.triggerSend(n,null,1)})})},co.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},co.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},co.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4};_i=co;function co(e){(P(e)||P(e.instrumentationKey))&&Ve("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}t.AppInsightsCore=Pt,t.ApplicationInsights=_i,t.CoreUtils=Yt,t.Sender=uo;Ai=t,Ri="__esModule",Li={value:!0},Ei=Object.defineProperty;if(Ei)try{return void Ei(Ai,Ri,Li)}catch(Io){}typeof Li.value!==undefined&&(Ai[Ri]=Li.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(T){"use strict";var b="function",w="object",_="undefined",o="prototype",N="hasOwnProperty",t=Object,A=t[o],E=t.assign,R=t.create,e=t.defineProperty,L=A[N],W=null;function G(e){return void 0===e&&(e=!0),W&&e||(typeof globalThis!==_&&globalThis&&(W=globalThis),typeof self!==_&&self&&(W=self),typeof window!==_&&window&&(W=window),typeof global!==_&&global&&(W=global)),W}function H(e){throw new TypeError(e)}function X(e){if(R)return R(e);if(null==e)return{};var n=typeof e;function t(){}return n!==w&&n!==b&&H("Object prototype may only be an Object:"+e),t[o]=e,new t}(G()||{}).Symbol,(G()||{}).Reflect;var Y=E||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])A[N].call(n,i)&&(e[i]=n[i]);return e},J=function(e,n){return(J=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[N](t)&&(e[t]=n[t])})(e,n)};function n(e,n){function t(){this.constructor=e}typeof n!==b&&null!==n&&H("Class extends value "+n+" is not a constructor or null"),J(e,n),e[o]=null===n?X(n):(t[o]=n[o],new t)}function Z(e,n){for(var t=0,r=n.length,i=e.length;t<r;t++,i++)e[i]=n[t];return e}var $="constructor",p="prototype",Q="function",ee="_dynInstFuncs",ne="_isDynProxy",te="_dynClass",re="_dynInstChk",ie=re,oe="_dfOpts",ae="_unknown_",se="__proto__",ue="useBaseInst",ce="setInstFuncs",le=Object,fe=le.getPrototypeOf,de=0;function ge(e,n){return e&&le[p].hasOwnProperty.call(e,n)}function pe(e){return e&&(e===le[p]||e===Array[p])}function he(e){return pe(e)||e===Function[p]}function me(e){if(e){if(fe)return fe(e);e=e[se]||e[p]||(e[$]?e[$][p]:null);if(e)return e}return null}function ve(e,n){var t=[],r=le.getOwnPropertyNames;if(r)t=r(e);else for(var i in e)"string"==typeof i&&ge(e,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)n(t[o])}function ye(e,n,t){return n!==$&&typeof e[n]===Q&&(t||ge(e,n))}function Ie(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 Se(e,n){return ge(e,p)?e.name||n||ae:((e||{})[$]||{}).name||n||ae}function h(e,r,n,t){ge(e,p)||Ie("theClass is an invalid class definition.");var i,o,a,s,u,c,l=e[p],f=(function(e){if(fe)for(var n=[],t=me(r);t&&!he(t)&&!Ce(n,t);){if(t===e)return 1;n.push(t),t=me(t)}}(l)||Ie("["+Se(e)+"] is not in class hierarchy of ["+Se(r)+"]"),null),e=(ge(l,te)?f=l[te]:(f="_dynCls$"+Se(e,"_")+"$"+de,de++,l[te]=f),h[oe]),d=!!e[ue],g=(d&&t&&t[ue]!==undefined&&(d=!!t[ue]),o={},ve(i=r,function(e){!o[e]&&ye(i,e,!1)&&(o[e]=i[e])}),o),d=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[ne]&&o&&!1!==(r=e[ee]||{})[ie]&&(i=(r[n[te]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(ve(t,function(e){i[e]=r(n,t,e)}),me(e)),s=[];a&&!he(a)&&!Ce(s,a);)ve(a,function(e){!i[e]&&ye(a,e,!fe)&&(i[e]=r(n,a,e))}),s.push(a),a=me(a);return i}(l,r,g,d)),!!fe&&!!e[ce]);a=l,n=f,s=r,u=g,e=!1!==(d=d&&t?!!t[ce]:d),pe(a)||(l=s[ee]=s[ee]||{},c=l[n]=l[n]||{},!1!==l[ie]&&(l[ie]=!!e),ve(s,function(e){var t,r,i;ye(s,e,!1)&&s[e]!==u[e]&&(c[e]=s[e],delete s[e],ge(a,e)&&(!a[e]||a[e][ne])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&ge(t,te)){var o=e[ee]||{};if((i=(o[t[te]]||{})[n])||Ie("Missing ["+n+"] "+Q),!i[re]&&!1!==o[ie]){for(var a=!ge(e,n),s=me(e),u=[];a&&s&&!he(s)&&!Ce(u,s);){var c=s[n];if(c){a=c===r;break}u.push(s),s=me(s)}try{a&&(e[n]=i),i[re]=1}catch(l){o[ie]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?me(t)[e]:n)!==Q&&Ie("["+e+"] is not a "+Q),n)).apply(this,arguments)})[ne]=1,i)))}))}h[oe]={setInstFuncs:!0,useBaseInst:!0};var M="",xe="processTelemetry",Te="priority",be="setNextPlugin",we="isInitialized",_e="teardown",Ne="core",Ae="disabled",Ee="_doTeardown",Re="processNext",Le="resume",Fe="pause",Me="NotificationListener",ke="add"+Me,De="remove"+Me,Pe="eventsSent",Be="eventsDiscarded",Oe="eventsSendRequest",Ue="perfEvent",ze="toISOString",je="endsWith",Ke="indexOf",qe="trim",Me="toString",Ve="constructor",We=e,r=t.freeze,Ge=(t.seal,t.keys),i=String[o],He=i[qe],Xe=i[je],Ye=(i.startsWith,Date[o][ze]),i=Array.isArray,Je=A[Me],Ze=L[Me],$e=Ze.call(t),Qe=/-([a-z])/g,en=/([^\w\d_$])/g,nn=/^(\d+[\w\d_$])/,tn=Object.getPrototypeOf;function F(e){return e===undefined||typeof e===_}function k(e){return null===e||F(e)}function rn(e){return!k(e)}function g(e){return!(!e||typeof e!==w)}function d(e){return!(!e||typeof e!==b)}function on(e){var n=e;return e&&m(e)?(n=(n=e.replace(Qe,function(e,n){return n.toUpperCase()})).replace(en,"_")).replace(nn,function(e,n){return"_"+n}):n}function D(e,n){if(e)for(var t in e)L.call(e,t)&&n.call(e,t,e[t])}function P(e,n){return!(!e||!n||!~e.indexOf(n))}var B=i||function(e){return!(!e||"[object Array]"!==Je.call(e))};function an(e){return!(!e||"[object Error]"!==Je.call(e))}function m(e){return"string"==typeof e}function sn(e){return"number"==typeof e}function un(e){return"boolean"==typeof e}function cn(e){return e&&"object"==typeof e&&(!(e=(tn||function(e){if(e){if(tn)return tn(e);e=e.__proto__||e[o]||e[Ve];if(e)return e}return null})(e))||typeof(e=e[Ve]&&L.call(e,Ve)?e[Ve]:e)===b&&Ze.call(e)===$e)}function ln(e){if(e){if(Ye)return e[ze]();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}}function O(e,n,t){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}catch(o){}}function fn(e,n,t){if(e){if(e[Ke])return e[Ke](n,t);var r=e.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in e&&e[i]===n)return i}catch(o){}}return-1}function dn(e,n,t){if(e){if(e.map)return e.map(n,t);var r=e.length,i=t||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=n.call(i,e[a],e))}catch(s){}}return o}function v(e){return e&&(He&&e[qe]?e[qe]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var gn=!{toString:null}.propertyIsEnumerable("toString"),pn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function hn(e){var n=typeof e;if(n===b||n===w&&null!==e||H("objKeys called on non-object"),!gn&&Ge)return Ge(e);var t,r=[];for(t in e)e&&L.call(e,t)&&r.push(t);if(gn)for(var i=pn.length,o=0;o<i;o++)e&&L.call(e,pn[o])&&r.push(pn[o]);return r}function mn(e,n,t,r){if(We)try{var i={enumerable:!0,configurable:!0};return t&&(i.get=t),r&&(i.set=r),We(e,n,i),!0}catch(o){}return!1}var vn=r||function(e){return e};function yn(){var e=Date;return e.now?e.now():(new e).getTime()}function U(e){return an(e)?e.name:M}function z(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function In(e){return!e}function Cn(e){return!!e}function j(e){throw Error(e)}function Sn(e){var t={};return D(e,function(e,n){t[e]=n,F(t[n])||j("Value: ["+n+"] already exists for "+e),t[n]=e}),vn(t)}function xn(e){return e&&E?t(E({},e)):e}var Tn="window",bn="navigator",wn="location",_n="console",Nn="JSON",An="crypto",En="msCrypto",Rn="msie",Ln="trident/",Fn="XMLHttpRequest",Mn=null,kn=null,Dn=null,Pn=null;function Bn(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[o])&&(r=n in t)}catch(i){}if(!r)try{r=!F((new e)[n])}catch(i){}}return r}function y(e){var n=G();return n&&n[e]?n[e]:e===Tn&&On()?window:null}function On(){return typeof window===w&&window}function Un(){return On()?window:y(Tn)}function zn(){return typeof document===w&&document?document:y("document")}function jn(){return!(typeof navigator!==w||!navigator)}function Kn(){return jn()?navigator:y(bn)}function qn(){return typeof JSON===w&&JSON||null!==y(Nn)}function Vn(){return qn()?JSON||y(Nn):null}function Wn(){var e=Kn();return!e||e.userAgent===kn&&null!==Mn||(e=((kn=e.userAgent)||M).toLowerCase(),Mn=P(e,Rn)||P(e,Ln)),Mn}function K(e){var n=Object[o].toString.call(e),t=M;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":qn()&&(t=Vn().stringify(e)),n+t}function Gn(){return Pn=null===Pn?jn()&&!!Kn().sendBeacon:Pn}function Hn(e){var n=!1;try{var n=!!y("fetch"),t=y("Request");n&&e&&t&&(n=Bn(t,"keepalive"))}catch(r){}return n}function Xn(){return Dn=null===Dn&&(Dn=typeof XDomainRequest!==_)&&Yn()?Dn&&!Bn(y(Fn),"withCredentials"):Dn}function Yn(){var e=!1;try{e=!!y(Fn)}catch(n){}return e}var Jn,Zn=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],$n=null;function Qn(e){var n=$n;return(n=n||!0===e.disableDbgExt?n:$n||(e=y("Microsoft"),$n=e?e.ApplicationInsights:$n))?n.ChromeDbgExt:null}function et(e){return e?'"'+e.replace(/\"/g,M)+'"':M}function nt(e,n){var t,r=typeof console!==_?console:y(_n);r&&(t="log",d(r[t=r[e]?e:t])&&r[t](n))}rt.dataType="MessageData";var tt=rt;function rt(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=M,qn()&&(t=Vn().stringify(r)),e=(n?" message:"+et(n):M)+(r?" props:"+et(t):M);this.message+=e}function it(e,n){return(e||{}).logger||new ot(n)}var ot=function Wo(r){this.identifier="DiagnosticLogger",this.queue=[];var i=0,s={};h(Wo,this,function(o){function e(e,n){e=r[e];return k(e)?n:e}function a(e,n){var t=Qn(r);t&&t.diagLog&&t.diagLog(e,n)}k(r)&&(r={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,n,t,r,i){n=new tt(n,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";F(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(r=o.consoleLoggingLevel(),i?(i=+n.messageId,!s[i]&&e<=r&&(o[t](n.message),s[i]=!0)):e<=r&&o[t](n.message),o.logInternalMessage(e,n))},o.warnToConsole=function(e){nt("warn",e),a("warning",e)},o.errorToConsole=function(e){nt("error",e),a("error",e)},o.resetInternalMessageCount=function(){i=0,s={}},o.logInternalMessage=function(e,n){var t,r;i>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,s[t]?r=!1:s[t]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(n),i++,a(1===e?"error":"warn",n)),i===o.maxInternalMessageLimit()&&(r=new tt(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===e?o.errorToConsole(t):o.warnToConsole(t))))}})},at=(st.ParentContextKey="parent",st.ChildrenContextKey="childEvts",st);function st(e,i,n){var t,o=this,a=!1;o.start=yn(),o.name=e,o.isAsync=n,o.isChildEvt=function(){return!1},d(i)&&(a=mn(o,"payload",function(){return!t&&d(i)&&(t=i(),i=null),t})),o.getCtx=function(e){return e?(e===st.ParentContextKey||e===st.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,n){e&&(e===st.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===st.ChildrenContextKey?o[e]=n:(o.ctx=o.ctx||{})[e]=n)},o.complete=function(){var e=0,n=o.getCtx(st.ChildrenContextKey);if(B(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}o.time=yn()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&d(i)&&(o.payload=i())}}var ut=function Go(n){this.ctx={},h(Go,this,function(t){t.create=function(e,n,t){return new at(e,n,t)},t.fire=function(e){e&&(e.complete(),n&&d(n.perfEvent)&&n.perfEvent(e))},t.setCtx=function(e,n){e&&((t.ctx=t.ctx||{})[e]=n)},t.getCtx=function(e){return(t.ctx||{})[e]}})},ct="CoreUtils.doPerf";function lt(e,n,t,r,i){if(e)if(e=d(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,s=e.getCtx(ct);try{if(a=e.create(n(),r,i))return s&&a.setCtx&&(a.setCtx(at.ParentContextKey,s),s.getCtx&&s.setCtx&&((o=s.getCtx(at.ChildrenContextKey))||(o=[],s.setCtx(at.ChildrenContextKey,o)),o.push(a))),e.setCtx(ct,a),t(a)}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&e.fire(a),e.setCtx(ct,s)}}t()}var ft=4294967296,dt=4294967295,gt=!1,pt=123456789,ht=987654321;function mt(e){e<0&&(e>>>=0),pt=123456789+e&dt,ht=987654321-e&dt,gt=!0}function vt(){try{var e=2147483647&yn();mt((Math.random()*ft^e)+e)}catch(n){}}function yt(e){return 0<e?Math.floor(It()/dt*(e+1))>>>0:0}function It(e){var n=0,t=y(An)||y(En);return 0===(n=t&&t.getRandomValues?t.getRandomValues(new Uint32Array(1))[0]&dt:n)&&Wn()&&(gt||vt(),n=Ct()&dt),0===n&&(n=Math.floor(ft*Math.random()|0)),e||(n>>>=0),n}function Ct(e){var n=((ht=36969*(65535&ht)+(ht>>16)&dt)<<16)+(65535&(pt=18e3*(65535&pt)+(pt>>16)&dt))>>>0&dt|0;return e||(n>>>=0),n}function St(e){void 0===e&&(e=22);for(var n=It()>>>0,t=0,r=M;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(It()<<2&4294967295|3&n)>>>0,t=0);return r}var xt=e,Tt="2.7.3",bt="."+St(6),wt=0;function _t(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Nt(e,n){return on(e+wt+++((n=void 0!==n&&n)?"."+Tt:"")+bt)}function At(e){var o={id:Nt("_aiData-"+(e||"")+"."+Tt),accept:_t,get:function(e,n,t,r){var i=e[o.id];return i?i[on(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{_t(n)&&!function(e,n,t){if(xt)try{return xt(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(o,e))[on(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var Et=At("plugin");function Rt(e){return Et.get(e,"state",{},!0)}function Lt(t,r){for(var i,e=[],n=null,o=t.getNext();o;){var a=o.getPlugin();a&&(n&&d(n[be])&&d(a[xe])&&n[be](a),(d(a[we])?a[we]():(i=Rt(a))[we])||e.push(a),n=a,o=o.getNext())}O(e,function(e){var n=t.core();e.initialize(t.getCfg(),n,r,t.getNext()),i=Rt(e),e[Ne]||i[Ne]||(i[Ne]=n),i[we]=!0,delete i[_e]})}function Ft(e){return e.sort(function(e,n){var t=0,r=d(n[xe]);return d(e[xe])?t=r?e[Te]-n[Te]:1:r&&(t=-1),t})}var Mt="TelemetryPluginChain",kt="_hasRun",Dt="_getTelCtx",Pt=0;function Bt(e,a,t,n){var r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Ut([r],n,t)}(e,a,t,n):e,i=[],o={_next:function(){var e,n=r;return r=n?n.getNext():null,n||(e=i)&&0<e.length&&(O(e,function(e){try{e.func.call(e.self,e.args)}catch(n){t.logger.throwInternal(2,73,"Unexpected Exception during onComplete - "+K(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return it(t,a)},getCfg:function(){return a},getExtCfg:s,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=s(e,null);return e&&!k(e[n])?r=e[n]:a&&!k(a[n])&&(r=a[n]),k(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=o._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i.push({func:e,self:F(n)?o.ctx:n,args:t})}}};function s(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(i=a.extensionConfig)&&e?i[e]:r)?g(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,i=1;for(0<t&&un(n)&&(r=n,n=e[i]||{},i++),g(n)||(n={});i<t;i++){var o,a,s,u,c=e[i],l=B(c),f=g(c);for(o in c)(l&&o in c||f&&L.call(c,o))&&(a=c[o],s=void 0,r&&a&&((s=B(a))||cn(a))&&(u=n[o],s?B(u)||(u=[]):cn(u)||(u={}),a=d(r,u,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&D(n,function(e){var n;k(o[e])&&!k(n=a[e])&&(o[e]=n)})):r=n,r}return o}function Ot(e,t,r,n){var i=Bt(e,t,r,n),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.processTelemetry(e,o),!n},o.createNew=function(e,n){return Ot((e=B(e=void 0===e?null:e)?Ut(e,t,r,n):e)||o.getNext(),t,r,n)},o}function Ut(e,n,t,r){var i,o=null,a=!r;return B(e)&&0<e.length&&(i=null,O(e,function(e){(a=!a&&r===e||a)&&e&&d(e.processTelemetry)&&(e=zt(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Ut([r],n,t):o}function zt(u,r,i){var c=null,o=d(u.processTelemetry),a=d(u.setNextPlugin),l=u?u.identifier+"-"+u.priority+"-"+Pt++:"Unknown-0-"+Pt++,s={getPlugin:function(){return u},getNext:function(){return c},processTelemetry:function(t,e){var n;f(e=e||(n=(n=u&&d(u[Dt])?u[Dt]():n)||Ot(s,r,i)),function(e){if(!u||!o)return!1;var n=Rt(u);return!n[_e]&&!n[Ae]&&(a&&u.setNextPlugin(c),u.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(r,i){f(r,function(){var e,n,t=!1;return u&&(e=Rt(u),n=u[Ne]||e.core,!u||n&&n!==r[Ne]()||e[_e]||(e[Ne]=null,e[_e]=!0,e[we]=!1,u[_e]&&!0===u[_e](r,i)&&(t=!0))),t},"unload",function(){},i.isAsync)||r.processNext(i)},_id:l,_setNext:function(e){c=e}};function f(t,r,i,e,n){var o=!1,a=u?u.identifier:Mt,s=(s=t[kt])||(t[kt]={});return t.setNext(c),u&&lt(t[Ne](),function(){return a+":"+i},function(){s[l]=!0;try{var e=c?c._id:M;e&&(s[e]=!1),o=r(t)}catch(n){e=!c||s[c._id];e&&(o=!0),c&&e||t.diagLog().throwInternal(1,73,"Plugin ["+u.identifier+"] failed during "+i+" - "+K(n)+", run flags: "+K(s))}},e,n),o}return vn(s)}var jt="toGMTString",Kt="toUTCString",qt="cookie",Vt="expires",Wt="enabled",Gt="isCookieUseDisabled",Ht="disableCookiesUsage",Xt="_ckMgr",Yt=null,Jt=null,Zt=null,$t=zn(),Qt={},er={};function nr(e){return!e||e.isEnabled()}function tr(e,i){z(t=(e=e||er).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,rn,k),z(t,"path",e.cookiePath||"/",null,k),k(t[Wt])&&(n=void 0,F(e[Gt])||(n=!e[Gt]),F(e[Ht])||(n=!e[Ht]),t[Wt]=n);var n,t,c=t,l=c.path||"/",f=c.domain,r=!1!==c[Wt],d={isEnabled:function(){var e=r&&rr(i),n=er[Xt];return e&&n&&d!==n?nr(n):e},setEnabled:function(e){r=!1!==e},set:function(e,n,t,r,i){var o,a,s,u=!1;return nr(d)&&(o={},-1!=(s=(a=v(n||M)).indexOf(";"))&&(a=v(n.substring(0,s)),o=ir(n.substring(1+s))),z(o,"domain",r||f,Cn,F),k(t)||(s=Wn(),F(o[Vt])&&0<(n=yn()+1e3*t)&&((r=new Date).setTime(n),z(o,Vt,or(r,s?jt:Kt)||or(r,s?jt:Kt)||M,Cn)),s||z(o,"max-age",M+t,null,F)),(n=typeof location===w&&location?location:y(wn))&&"https:"===n.protocol&&(z(o,"secure",null,null,F),(Jt=null===Jt?!(m(r=(Kn()||{}).userAgent)&&(P(r,"CPU iPhone OS 12")||P(r,"iPad; CPU OS 12")||P(r,"Macintosh; Intel Mac OS X 10_14")&&P(r,"Version/")&&P(r,"Safari")||P(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,n){var t=!1;if(!e||(t=e===n))return t;if(Xe)return e[je](n);var r=e,i=n,t=!1,e=r?r.length:0;if(e&&40<=e&&!(t=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}t=!0}return t}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||P(r,"Chrome/5")||P(r,"Chrome/6")||P(r,"UnrealEngine")&&!P(r,"Chrome")||P(r,"UCBrowser/12")||P(r,"UCBrowser/11"))):Jt)&&z(o,"SameSite","None",null,F)),z(o,"path",i||l,null,F),(c.setCookie||sr)(e,ar(a,o)),u=!0),u},get:function(e){var n=M;return nr(d)?(c.getCookie||function(e){var n,t=M;return $t&&(n=$t[qt]||M,Zt!==n&&(Qt=ir(n),Zt=n),t=v(Qt[e]||M)),t})(e):n},del:function(e,n){return!!nr(d)&&d.purge(e,n)},purge:function(e,n){var t,r=!1;return rr(i)&&((t={}).path=n||"/",t[Vt]="Thu, 01 Jan 1970 00:00:01 GMT",n=t,Wn()||(n["max-age"]="0"),(c.delCookie||sr)(e,ar(M,n)),r=!0),r}};return d[Xt]=d}function rr(e){if(null===Yt){Yt=!1;try{Yt=($t||{})[qt]!==undefined}catch(n){e&&e.throwInternal(2,68,"Cannot access document.cookie - "+U(n),{exception:K(n)})}}return Yt}function ir(e){var t={};return e&&e.length&&O(v(e).split(";"),function(e){var n;(e=v(e||M))&&(-1==(n=e.indexOf("="))?t[e]=null:t[v(e.substring(0,n))]=v(e.substring(1+n)))}),t}function or(e,n){return d(e[n])?e[n]():null}function ar(e,n){var t=e||M;return D(n,function(e,n){t+="; "+e+(k(n)?M:"="+n)}),t}function sr(e,n){$t&&($t[qt]=e+"="+n)}var ur="extensionConfig",cr=500,lr="Channel has invalid priority - ";function fr(e,n,t,r){n&&B(n)&&0<n.length&&(O(n=n.sort(function(e,n){return e.priority-n.priority}),function(e){e.priority<cr&&j(lr+e.identifier)}),e.push({queue:vn(n),chain:Ut(n,t,r)}))}var dr,gr="getPlugin",Me=function Ho(){var o,a,c,l,s=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=a||Ot(null,{},s.core),e=c&&c[gr]?n.createNew(null,c[gr]):n.createNew(null,c)),e}function f(){o=!1,s.core=null,c=a=null,l=[]}f(),h(Ho,s,function(u){u.initialize=function(e,n,t,r){e&&z(e,ur,[],null,k),!r&&n&&(r=n.getProcessTelContext().getNext());var i=c;c&&c[gr]&&(i=c[gr]()),s.core=n,a=Ot(r,e,n,i),o=!0},u.teardown=function(e,n){var t,r,i,o;if(u.core&&(!e||u.core===e.core()))return r=!1,i=e||function s(e,t,r,n){var i=Bt(e,t,r,n),o=i.ctx;return o.processNext=function(e){var n=i._next();return n&&n.unload(o,e),!n},o.createNew=function(e,n){return s((e=B(e=void 0===e?null:e)?Ut(e,t,r,n):e)||o.getNext(),t,r,n)},o}(null,{},u.core,c&&c[gr]?c[gr]():c),o=n||{reason:0,isAsync:!1},u[Ee]&&!0===u[Ee](i,o,a)?t=!0:a(),t;function a(){r||(r=!0,O(l,function(e){e.rm()}),l=[],!0===t&&i.processNext(o),f())}},u._addHook=function(e){e&&(B(e)?l=l.concat(e):l.push(e))}}),s.diagLog=function(e){return n(e).diagLog()},s[we]=function(){return o},s.setInitialized=function(e){o=e},s[be]=function(e){c=e},s.processNext=function(e,n){n?n.processNext(e):c&&d(c.processTelemetry)&&c.processTelemetry(e,null)},s._getTelCtx=n},pr=(n(hr,dr=Me),hr);function hr(){var n,u,e=dr.call(this)||this;function t(){n=0,u=[]}return e.identifier="TelemetryInitializerPlugin",e.priority=199,t(),h(hr,e,function(s,e){s.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return u.push(t),{remove:function(){O(u,function(e,n){if(e.id===t.id)return u.splice(n,1),-1})}}},s.processTelemetry=function(e,n){for(var t=!1,r=u.length,i=0;i<r;++i){var o=u[i];if(o)try{if(!1===o.fn.call(null,e)){t=!0;break}}catch(a){n.diagLog().throwInternal(1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+U(a),{exception:K(a)},!0)}}t||s.processNext(e,n)},s[Ee]=function(){t()}}),e}var mr="_notificationManager";function vr(e,n){return new ut(n)}function yr(e,t,r,i){O(e,function(e){if(e&&e[t])if(r)setTimeout(function(){return i(e)},0);else try{i(e)}catch(n){}})}var Ir,Cr=function Xo(e){this.listeners=[];var t=!!(e||{}).perfEvtsSendAll;h(Xo,this,function(r){r[ke]=function(e){r.listeners.push(e)},r[De]=function(e){for(var n=fn(r.listeners,e);-1<n;)r.listeners.splice(n,1),n=fn(r.listeners,e)},r[Pe]=function(n){yr(r.listeners,Pe,!0,function(e){e[Pe](n)})},r[Be]=function(n,t){yr(r.listeners,Be,!0,function(e){e[Be](n,t)})},r[Oe]=function(n,t){yr(r.listeners,Oe,t,function(e){e[Oe](n,t)})},r[Ue]=function(n){!n||!t&&n.isChildEvt()||yr(r.listeners,Ue,!1,function(e){n.isAsync?setTimeout(function(){return e[Ue](n)},0):e[Ue](n)})}})},Sr=(n(xr,Ir=function Yo(){var x,t,T,r,b,i,w,_,N,A,E,R,u,c,l,L,f=0;h(Yo,this,function(C){var o,a,e,s;function S(){return Ot((w||(~(e=(N||[]).slice()).indexOf(u)||e.push(u),w=Ut(Ft(e),C.config,C)),w),C.config,C);var e}function n(){var e=C.logger?C.logger.queue:[];e&&(O(e,function(e){e={name:c||"InternalMessageId: "+e.messageId,iKey:C.config.instrumentationKey,time:ln(new Date),baseType:tt.dataType,baseData:{message:e.message}};C.track(e)}),e.length=0)}x=!1,C.logger=new ot({loggingLevelConsole:1}),C.config=null,C._extensions=[],u=new pr,t=[],c=R=A=_=N=w=i=b=r=T=null,l=Nt("AIBaseCore",!0),C.isInitialized=function(){return x},C.initialize=function(e,n,t,r){C.isInitialized()&&j("Core should not be initialized more than once"),e&&!k(e.instrumentationKey)||j("Please provide instrumentation key"),T=r,C[mr]=r,C.config=e||{};var i,o,a,s,u,c,l,f,d,g,p,h,m=e,m=(!0===m.disableDbgExt&&L&&(T[De](L),L=null),T&&!L&&!0!==m.disableDbgExt&&(L=function(e){if(!Jn){Jn={};for(var n=0;n<Zn.length;n++)Jn[Zn[n]]=function(n,t){return function(){var e=Qn(t);e&&(e=e.listener)&&e[n]&&e[n].apply(e,arguments)}}(Zn[n],e)}return Jn}(m),T[ke](L)),e),m=(!m.enablePerfMgr&&b&&(b=null),m.enablePerfMgr&&z(C.config,"createPerfMgr",vr),e.extensions=k(e.extensions)?[]:e.extensions,e?!(v=e[ur])&&k(v)&&(v=F(a)?{}:a,e[ur]=v):v=F(a)?{}:a,v.NotificationManager=r,t&&(C.logger=t),(_=[]).push.apply(_,Z(Z([],n),e.extensions)),E=(e||{}).channels,e),v=(i=C.logger,o=cr,s=[],u={},O(a=_,function(e){(k(e)||k(e.initialize))&&j("Plugins must provide initialize method");var n=e.priority,t=e.identifier;e&&n&&(k(u[n])?u[n]=t:i.warnToConsole("Two extensions have same priority #"+n+" - "+u[n]+", "+t)),(!n||n<o)&&s.push(e)}),{all:a,core:s}),r=(N=v.core,w=null,v.all);function y(){return Ot(null,l.config,l,null)}function I(e,n,t,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null)}0<i&&O(e,function(e){e&&0<e.queue.length?(e=e.chain,(e=n.createNew(e)).onComplete(o),t(e)):i--}),o()}R=vn((t=r,d=m,g=C,h=[],E&&O(E,function(e){return fr(h,e,d,g)}),t&&(p=[],O(t,function(e){e.priority>cr&&p.push(e)}),fr(h,p,d,g)),h)),A?(-1!=(n=r.indexOf(A))&&r.splice(n,1),-1!=(n=N.indexOf(A))&&N.splice(n,1),A._setQueue(R)):(c=R,l=C,f=!1,(e={identifier:"ChannelControllerPlugin",priority:cr,initialize:function(n,t,r,e){f=!0,O(c,function(e){e&&0<e.queue.length&&Lt(Ot(e.chain,n,t),r)})},isInitialized:function(){return f},processTelemetry:function(n,e){I(c,e||y(),function(e){e[Re](n)},function(){e[Re](n)})}})[Fe]=function(){I(c,y(),function(e){e.iterate(function(e){e[Fe]&&e[Fe]()})},null)},e[Le]=function(){I(c,y(),function(e){e.iterate(function(e){e[Le]&&e[Le]()})},null)},e[_e]=function(e,n){var t=n||{reason:0,isAsync:!1};return I(c,e,function(e){e[Re](t)},function(){e[Re](t),f=!1}),!0},e.getChannel=function(n){var t=null;return c&&0<c.length&&O(c,function(e){if(e&&0<e.queue.length&&(O(e.queue,function(e){if(e.identifier===n)return t=e,-1}),t))return-1}),t},e.flush=function(t,e,r,i){var o=1,n=!1,a=null;function s(){o--,n&&0===o&&(a&&(clearTimeout(a),a=null),e&&e(n),e=null)}i=i||5e3,I(c,y(),function(e){e.iterate(function(e){var n;e.flush&&(o++,n=!1,e.flush(t,function(){n=!0,s()},r)||n||(t&&null==a?a=setTimeout(function(){a=null,s()},i):s()))})},function(){n=!0,s()})},e._setQueue=function(e){c=e},A=e),r.push(A),N.push(A),C._extensions=Ft(r),A.initialize(m,C,r),Lt(S(),r),C._extensions=vn(Ft(N||[])).slice(),0===C.getTransmissionControls().length&&j("No channels available"),x=!0,C.releaseQueue()},C.getTransmissionControls=function(){var n=[];return O(R,function(e){n.push(e.queue)}),vn(n)},C.track=function(e){z(e,"iKey",C.config.instrumentationKey,null,In),z(e,"time",ln(new Date),null,In),z(e,"ver","4.0",null,k),C.isInitialized()?S().processNext(e):t.push(e)},C.getProcessTelContext=S,C.getNotifyMgr=function(){var e;return T||(T=X(((e={})[ke]=function(e){},e[De]=function(e){},e[Pe]=function(e){},e[Be]=function(e,n){},e[Oe]=function(e,n){},e)),C[mr]=T),T},C.addNotificationListener=function(e){T&&T.addNotificationListener(e)},C.removeNotificationListener=function(e){T&&T.removeNotificationListener(e)},C.getCookieMgr=function(){return i=i||tr(C.config,C.logger)},C.setCookieMgr=function(e){i=e},C.getPerfMgr=function(){return r||b||C.config&&C.config.enablePerfMgr&&d(C.config.createPerfMgr)&&(b=C.config.createPerfMgr(C,C.getNotifyMgr())),r||b||null},C.setPerfMgr=function(e){r=e},C.eventCnt=function(){return t.length},C.releaseQueue=function(){var e;x&&0<t.length&&(e=t,t=[],O(e,function(e){S().processNext(e)}))},C.pollInternalLogs=function(e){c=e;e=C.config.diagnosticLogInterval;return e&&0<e||(e=1e4),f&&clearInterval(f),f=setInterval(function(){n()},e)},C.stopPollingInternalLogs=function(){f&&(clearInterval(f),f=0,n())},a=function(){return u},e=["addTelemetryInitializer"],void 0===s&&(s=!0),(o=C)&&a&&g(o)&&B(e)&&O(e,function(e){var n,t,r,i;m(e)&&(void 0===(n=s)&&(n=!0),o&&e&&a&&(n||F(o[e]))&&(o[e]=(t=e,i=r=null,d(n=a)?r=n:i=n,function(){var e=arguments;if(i=r?r():i)return i[t].apply(i,e)})))}),C.getPlugin=function(n){var t=null;return O(C._extensions,function(e){if(e.identifier===n&&e!==A&&e!==u)return t=e,-1}),(t=!t&&A?A.getChannel(n):t)?{plugin:t,setEnabled:function(e){Rt(t)[Ae]=!e},isEnabled:function(){var e=Rt(t);return!e[_e]&&!e[Ae]}}:null},C.evtNamespace=function(){return l}})}),xr);function xr(){var e=Ir.call(this)||this;return h(xr,e,function(t,i){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],2)}t.initialize=function(e,n,t,r){i.initialize(e,n,t||new ot(e),r||new Cr(e))},t.track=function(e){lt(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===e&&(n(e),j("Invalid telemetry item")),k(e.name))throw n(e),Error("telemetry name required");i.track(e)},function(){return{item:e}},!e.sync)}}),e}var Tr="on",br="attachEvent",wr="addEventListener",_r="events",Nr=(Nt("aiEvtPageHide"),Nt("aiEvtPageShow"),1),Ar=At("events"),Er=/^([^.]*)(?:\.(.+)|)/;function Rr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Lr(e,n,t,r,i){void 0===i&&(i=!1);var o,a,s,u,c,l,f,d,g=!1;if(e)try{c=n,(l=r)&&(f="",B(l)?(f="",O(l,function(e){(e=Rr(e))&&("."!==e[0]&&(e="."+e),f+=e)})):f=Rr(l),f&&(c=(c||"")+(f="."!==f[0]?"."+f:f)));var p,h={type:(d=Er.exec(c)||[])[1],ns:(d[2]||"").split(".").sort().join(".")},m=h,v=t,y=i,I=!1;(u=e)&&m&&m.type&&v&&(u[wr]?(u[wr](m.type,v,y),I=!0):u[br]&&(u[br](Tr+m.type,v),I=!0)),(g=I)&&Ar.accept(e)&&(p={guid:Nr++,evtName:h,handler:t,capture:i},o=h.type,((s=Ar.get(e,_r,{},a=void 0===a||a))[o]||(s[o]=[])).push(p))}catch(C){}return g}function Fr(e,n,t,r){return Lr(e,n,t,null,r=void 0!==r&&r)}var Mr,kr=null,Dr={_canUseCookies:undefined,isTypeof:function(e,n){return typeof e===n},isUndefined:F,isNullOrUndefined:k,hasOwnProperty:function(e,n){return!(!e||!L.call(e,n))},isFunction:d,isObject:g,isDate:function(e){return!(!e||"[object Date]"!==Je.call(e))},isArray:B,isError:an,isString:m,isNumber:sn,isBoolean:un,toISOString:ln,arrForEach:O,arrIndexOf:fn,arrMap:dn,arrReduce:function(e,n,t){var r;if(e){if(e.reduce)return e.reduce(n,t);var i=e.length,o=0;if(3<=arguments.length)r=t;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=n(r,e[o],o,e)),o++}return r},strTrim:v,objCreate:X,objKeys:hn,objDefineAccessors:mn,addEventHandler:function(e,n,t){var r=!1,i=Un(),i=(i&&(r=Lr(i,e,n,t),r=Lr(i.body,e,n,t)||r),zn());return i&&Lr(i,e,n,t)||r},dateNow:yn,isIE:Wn,disableCookies:function(){var e,n;(e=tr[Xt]||er[Xt])||(e=tr[Xt]=tr(void 0,void 0),er[Xt]=e),e=e,n=Dr._canUseCookies,null===kr&&(kr=[],Mr=n,mn(Dr,"_canUseCookies",function(){return Mr},function(n){Mr=n,O(kr,function(e){e.setEnabled(n)})})),-1===fn(kr,e)&&kr.push(e),un(n)&&e.setEnabled(n),un(Mr)&&e.setEnabled(Mr),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Pr,function(e){var n=0|yt(15);return("x"===e?n:3&n|8).toString(16)})},perfNow:function(){var e=y("performance");return e&&e.now?e.now():yn()},newId:St,randomValue:yt,random32:It,mwcRandomSeed:function(e){e?mt(e):vt()},mwcRandom32:Ct,generateW3CId:function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=M,r=0;r<4;r++)t+=n[15&(e=It())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var i=n[8+(3&It())|0];return t.substr(0,8)+t.substr(9,4)+"4"+t.substr(13,3)+i+t.substr(16,3)+t.substr(19,12)}},Pr=/[xy]/g,q=Sn({CRITICAL:1,WARNING:2}),V=Sn({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});function Br(e,n,t){var r,i,o=n.length,a=(e=e,(n=n)&&150<(n=v(n.toString())).length&&(i=n.substring(0,150),e&&e.throwInternal(2,V.NameTooLong,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a.length!==o){for(var s=0,u=a;t[u]!==undefined;)s++,u=a.substring(0,147)+(r=void 0,(r="00"+s).substr(r.length-3));a=u}return a}function I(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=v(n)).toString().length>t&&(r=n.toString().substring(0,t),e&&e.throwInternal(2,V.StringValueTooLong,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Or(e,n){return Kr(e,n,2048,V.UrlTooLong)}function Ur(e,n){var t;return n&&32768<n.length&&(t=n.substring(0,32768),e&&e.throwInternal(2,V.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function zr(r,e){var i;return e&&(i={},D(e,function(e,n){if(g(n)&&qn())try{n=Vn().stringify(n)}catch(t){r&&r.throwInternal(2,V.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}n=I(r,n,8192),e=Br(r,e,i),i[e]=n}),e=i),e}function jr(t,e){var r;return e&&(r={},D(e,function(e,n){e=Br(t,e,r),r[e]=n}),e=r),e}function Kr(e,n,t,r){var i;return n&&(n=v(n)).length>t&&(i=n.substring(0,t),e&&e.throwInternal(2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var qr="";function Vr(e){var n=qr+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=qr+Math.floor(e/6e4)%60,r=qr+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=qr+e%1e3).length?"00"+e:2===e.length?"0"+e:e,n=n.length<2?"0"+n:n,t=t.length<2?"0"+t:t,r=r.length<2?"0"+r:r;return(0<i?i+".":qr)+r+":"+t+":"+n+"."+e}var Wr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Gr="sampleRate",Hr="ProcessLegacy",Xr="http.method",Yr="not_specified",Jr=Sn({LocalStorage:0,SessionStorage:1}),Zr=(Sn({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function $r(e){try{if(k(G()))return null;var n=new Date,t=y(e===Jr.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n.toString(),n.toString()),t.getItem(n.toString())!==n.toString());if(t.removeItem(n.toString()),!r)return t}catch(i){}return null}function Qr(){return ei()?$r(Jr.SessionStorage):null}function ei(){return Zr=Zr===undefined?!!$r(Jr.SessionStorage):Zr}function ni(e,n){var t=Qr();if(null!==t)try{return t.getItem(n)}catch(r){Zr=!1,e.throwInternal(2,V.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+U(r),{exception:K(r)})}return null}function ti(e,n,t){var r=Qr();if(null!==r)try{r.setItem(n,t)}catch(i){Zr=!1,e.throwInternal(2,V.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+U(i),{exception:K(i)})}}var ri=zn()||{},ii=0,oi=[null,null,null,null,null];var ai=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function si(e){return~ai.indexOf(e.toLowerCase())}n(ci,ui=function(){});var ui,i=ci;function ci(){return ui.call(this)||this}n(di,li=function(){this.ver=1,this.sampleRate=100,this.tags={}});var li,fi=di;function di(e,n,t){var r=li.call(this)||this;return r.name=I(e,t)||Yr,r.data=n,r.time=ln(new Date),r.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1},r}var gi,r=function(){this.ver=2,this.properties={},this.measurements={}},pi=(n(hi,gi=r),hi.envelopeType="Microsoft.ApplicationInsights.{0}.Event",hi.dataType="EventData",hi);function hi(e,n,t,r){var i=gi.call(this)||this;return i.aiDataContract={ver:1,name:1,properties:0,measurements:0},i.name=I(e,n)||Yr,i.properties=zr(e,t),i.measurements=jr(e,r),i}var mi="error",u="stack",vi="stackDetails",yi="errorSrc",Ii="message",Ci="description";function Si(e,n){var t=e;return t&&!m(t)&&(JSON&&JSON.stringify?(t=JSON.stringify(e),!n||t&&"{}"!==t||(t=d(e.toString)?e.toString():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function xi(e,n){var t=e;return e&&((t=t&&!m(t)&&(e[Ii]||e[Ci])||t)&&!m(t)&&(t=Si(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&!~(t||"").indexOf(n)?n+": "+t:t)||""}function Ti(e){return e&&e.src&&m(e.src)&&e.obj&&B(e.obj)}function bi(e){var e=e||"",n=(e=m(e)?e:m(e[u])?e[u]:""+e).split("\n");return{src:e,obj:n}}function wi(e){var n,t=null;if(e)try{e[u]?t=bi(e[u]):e[mi]&&e[mi][u]?t=bi(e[mi][u]):e.exception&&e.exception[u]?t=bi(e.exception[u]):Ti(e)?t=e:Ti(e[vi])?t=e[vi]:window&&window.opera&&e[Ii]?t=function(e){for(var n=[],t=e.split("\n"),r=0;r<t.length;r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e.message):m(e)?t=bi(e):(n=e[Ii]||e[Ci]||"",m(e[yi])&&(n&&(n+="\n"),n+=" from "+e[yi]),n&&(t=bi(n)))}catch(r){t=bi(r)}return t||{src:"",obj:null}}function _i(e){var n="";if(e&&!(n=e.typeName||e.name||""))try{var t=/function (.{1,200})\(/.exec(e.constructor.toString()),n=t&&1<t.length?t[1]:""}catch(r){}return n}function Ni(e){if(e)try{var n,t;if(!m(e))return n=_i(e),(t=Si(e,!1))&&"{}"!==t||(e[mi]&&(n=_i(e=e[mi])),t=Si(e,!0)),t.indexOf(n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}n(a,Ai=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}),a.CreateAutoException=function(e,n,t,r,i,o,a,s){var u=_i(i||o||e);return{message:xi(e,u),url:n,lineNumber:t,columnNumber:r,error:Ni(i||o||e),evt:Ni(o||e),typeName:u,stackDetails:wi(a||i||o),errorSrc:s}},a.CreateFromInterface=function(n,e,t,r){var i=e.exceptions&&dn(e.exceptions,function(e){return Li.CreateFromInterface(n,e)});return new a(n,Y(Y({},e),{exceptions:i}),t,r)},a.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual;return{ver:"4.0",exceptions:n instanceof Array&&dn(n,function(e){return e.toInterface()})||undefined,severityLevel:i,properties:t,measurements:r,problemGroup:o,id:a,isManual:e}},a.CreateSimpleException=function(e,n,t,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:n}]}},a.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",a.dataType="ExceptionData",a.formatError=Ni;var Ai,Ei=a;function a(e,n,t,r,i,o){var a=Ai.call(this)||this;return a.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){try{if(g(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a.exceptions=n.exceptions,a.properties=n.properties,a.measurements=n.measurements,n.severityLevel&&(a.severityLevel=n.severityLevel),n.id&&(a.id=n.id),n.problemGroup&&(a.problemGroup=n.problemGroup),a.ver=2,k(n.isManual)||(a.isManual=n.isManual)):(a.exceptions=[new Li(e,n,t=t||{})],a.properties=zr(e,t),a.measurements=jr(e,r),i&&(a.severityLevel=i),o&&(a.id=o)),a}n(Fi,Ri=function(){this.hasFullStack=!0,this.parsedStack=[]}),Fi.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&dn(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[u],parsedStack:e||undefined}},Fi.CreateFromInterface=function(e,n){var t=n.parsedStack instanceof Array&&dn(n.parsedStack,function(e){return Di.CreateFromInterface(e)})||n.parsedStack;return new Fi(e,Y(Y({},n),{parsedStack:t}))};var Ri,Li=Fi;function Fi(e,n,t){var c,r,i,o,a,s=Ri.call(this)||this;return s.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){try{if(g(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(s.typeName=n.typeName,s.message=n.message,s[u]=n[u],s.parsedStack=n.parsedStack,s.hasFullStack=n.hasFullStack):(r=(o=n)&&o.evt,an(o)||(o=o[mi]||r||o),s.typeName=I(e,_i(o))||Yr,s.message=Ur(e,xi(n||o,s.typeName))||Yr,c=n[vi]||wi(n),s.parsedStack=function(){var e=c.obj;if(e&&0<e.length){var n=[],t=0,r=0;if(O(e,function(e){var e=e.toString();Di.regex.test(e)&&(e=new Di(e,t++),r+=e.sizeInBytes,n.push(e))}),32768<r)for(var i=0,o=n.length-1,a=0,s=i,u=o;i<o;){if(32768<(a+=n[i].sizeInBytes+n[o].sizeInBytes)){n.splice(s,u-s+1);break}s=i,u=o,i++,o--}}return n}(),s[u]=(r=e,a="",(o=c)&&(o.obj?O(o.obj,function(e){a+=e+"\n"}):a=o.src||""),(n=a)&&32768<(e=""+n).length&&(i=e.substring(0,32768),r&&r.throwInternal(2,V.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0)),i||n),s.hasFullStack=B(s.parsedStack)&&0<s.parsedStack.length,t&&(t.typeName=t.typeName||s.typeName)),s}n(Pi,Mi=function(){}),Pi.CreateFromInterface=function(e){return new Pi(e,null)},Pi.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},Pi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Pi.baseSize=58;var Mi,ki,Di=Pi;function Pi(e,n){var t,r=Mi.call(this)||this;return r.sizeInBytes=0,r.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof e?(t=e,r.level=n,r.method="<no_method>",r.assembly=v(t),r.fileName="",r.line=0,(n=t.match(Pi.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+=Pi.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}ki=0,n(Ui,Bi=function(){this.kind=ki});var Bi,Oi=Ui;function Ui(){var e=null!==Bi&&Bi.apply(this,arguments)||this;return e.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},e}n(Ki,zi=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}),Ki.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",Ki.dataType="MetricData";var zi,ji=Ki;function Ki(e,n,t,r,i,o,a,s,u){var c=zi.call(this)||this,l=(c.aiDataContract={ver:1,metrics:1,properties:0},new Oi);return l.count=0<r?r:undefined,l.max=isNaN(o)||null===o?undefined:o,l.min=isNaN(i)||null===i?undefined:i,l.name=I(e,n)||Yr,l.value=t,l.stdDev=isNaN(a)||null===a?undefined:a,c.metrics=[l],c.properties=zr(e,s),c.measurements=jr(e,u),c}n(Vi,qi=r);var qi,e=Vi;function Vi(){var e=qi.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(Hi,Wi=e),Hi.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Hi.dataType="PageviewData";var Wi,Gi=Hi;function Hi(e,n,t,r,i,o,a){var s=Wi.call(this)||this;return s.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},s.id=a&&Kr(e,a,128,V.IdTooLong).toString(),s.url=Or(e,t),s.name=I(e,n)||Yr,isNaN(r)||(s.duration=Vr(r)),s.properties=zr(e,i),s.measurements=jr(e,o),s}n(Ji,Xi=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}),Ji.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Ji.dataType="RemoteDependencyData";var Xi,Yi=Ji;function Ji(e,n,t,r,i,o,a,s,u,c,l,f){void 0===u&&(u="Ajax");var d,g,p,h=Xi.call(this)||this,t=(h.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},h.id=n,h.duration=Vr(i),h.success=o,h.resultCode=a+"",h.type=I(e,u),n=e,i=s,u=a=o=r,a=(s=t)&&0<s.length?(d=s,p=(t=oi)[g=ii],ri.createElement?t[g]||(p=t[g]=ri.createElement("a")):p={host:function(){e=null,d&&null!=(t=d.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t.length&&m(t[2])&&0<t[2].length&&(e=t[2]||"",2<t.length&&(n=(t[1]||"").toLowerCase(),t=t[3]||"",e+=t="http"==n&&":80"===t||"https"==n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t.length&&m(t[2])&&0<t[2].length)return t[2]+(t[3]||"")}return n}()},p.href=d,++g>=t.length&&(g=0),ii=g,g=(t=p).host,a||(null!=t.pathname?("/"!=((p=0===t.pathname.length?"/":t.pathname)[0]||"")&&(p="/"+p),u=t.pathname,I(n,i?i+" "+p:p)):I(n,s))):g=o,{target:g,name:a,data:u});return h.data=Or(e,r)||t.data,h.target=I(e,t.target),c&&(h.target="".concat(h.target," | ").concat(c)),h.name=I(e,t.name),h.properties=zr(e,l),h.measurements=jr(e,f),h}n(eo,Zi=function(){this.ver=2,this.properties={},this.measurements={}}),eo.envelopeType="Microsoft.ApplicationInsights.{0}.Message",eo.dataType="MessageData";var Zi,$i,Qi=eo;function eo(e,n,t,r,i){var o=Zi.call(this)||this;return o.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},o.message=Ur(e,n=n||Yr),o.properties=zr(e,r),o.measurements=jr(e,i),t&&(o.severityLevel=t),o}function no(){var e=$i.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}n(no,$i=e),n(io,to=no),io.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",io.dataType="PageviewPerformanceData";var to,ro=io;function io(e,n,t,r,i,o,a){var s=to.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=Or(e,t),s.name=I(e,n)||Yr,s.properties=zr(e,i),s.measurements=jr(e,o),a&&(s.domProcessing=a.domProcessing,s.duration=a.duration,s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest),s}n(so,oo=i);var oo,ao=so;function so(e,n){var t=oo.call(this)||this;return t.aiDataContract={baseType:1,baseData:1},t.baseType=e,t.baseData=n,t}function uo(e){var n="ai."+e+".";return function(e){return n+e}}T.SeverityLevel=void 0,(r=T.SeverityLevel||(T.SeverityLevel={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical";var co,lo,e=uo("application"),i=uo("device"),r=uo("location"),fo=uo("operation"),go=uo("session"),s=uo("user"),c=uo("cloud"),po=uo("internal"),ho=(lo={applicationVersion:e("ver"),applicationBuild:e("build"),applicationTypeId:e("typeId"),applicationId:e("applicationId"),applicationLayer:e("layer"),deviceId:i("id"),deviceIp:i("ip"),deviceLanguage:i("language"),deviceLocale:i("locale"),deviceModel:i("model"),deviceFriendlyName:i("friendlyName"),deviceNetwork:i("network"),deviceNetworkName:i("networkName"),deviceOEMName:i("oemName"),deviceOS:i("os"),deviceOSVersion:i("osVersion"),deviceRoleInstance:i("roleInstance"),deviceRoleName:i("roleName"),deviceScreenResolution:i("screenResolution"),deviceType:i("type"),deviceMachineName:i("machineName"),deviceVMName:i("vmName"),deviceBrowser:i("browser"),deviceBrowserVersion:i("browserVersion"),locationIp:r("ip"),locationCountry:r("country"),locationProvince:r("province"),locationCity:r("city"),operationId:fo("id"),operationName:fo("name"),operationParentId:fo("parentId"),operationRootId:fo("rootId"),operationSyntheticSource:fo("syntheticSource"),operationCorrelationVector:fo("correlationVector"),sessionId:go("id"),sessionIsFirst:go("isFirst"),sessionIsNew:go("isNew"),userAccountAcquisitionDate:s("accountAcquisitionDate"),userAccountId:s("accountId"),userAgent:s("userAgent"),userId:s("id"),userStoreRegion:s("storeRegion"),userAuthUserId:s("authUserId"),userAnonymousUserAcquisitionDate:s("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:s("authUserAcquisitionDate"),cloudName:c("name"),cloudRole:c("role"),cloudRoleVer:c("roleVer"),cloudRoleInstance:c("roleInstance"),cloudEnvironment:c("environment"),cloudLocation:c("location"),cloudDeploymentUnit:c("deploymentUnit"),internalNodeName:po("nodeName"),internalSdkVersion:po("sdkVersion"),internalAgentVersion:po("agentVersion"),internalSnippet:po("snippet"),internalSdkSrc:po("sdkSrc")},n(mo,co=function(){var t=this;D(lo,function(e,n){t[e]=n})}),mo);function mo(){return co.call(this)||this}var vo,f=new ho,e=function Jo(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(Jo,this,function(n){n.enqueue=function(e){n.count()>=r.eventsLimitInMem()?o||(t.throwInternal(q.WARNING,V.InMemoryStorageBufferFull,"Maximum in-memory buffer size reached: "+n.count(),!0),o=!0):i.push(e)},n.count=function(){return i.length},n.size=function(){for(var e=i.length,n=0;n<i.length;n++)e+=i[n].length;return r.emitLineDelimitedJson()||(e+=2),e},n.clear=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n.batchPayloads=function(e){return e&&0<e.length?r.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null}})},yo=(n(Io,vo=e),Io);function Io(e,n){e=vo.call(this,e,n)||this;return h(Io,e,function(e,n){e.markAsSent=function(e){n.clear()},e.clearSent=function(e){}}),e}n(l,Co=e),l.BUFFER_KEY="AI_buffer",l.SENT_BUFFER_KEY="AI_sentBuffer",l.MAX_BUFFER_SIZE=2e3;var Co,So=l;function l(s,u){var e=Co.call(this,s,u)||this,c=!1;return h(l,e,function(t,n){var e=o(l.BUFFER_KEY),r=o(l.SENT_BUFFER_KEY),r=t._set(e.concat(r));function i(n,e){var t=[];return O(e,function(e){d(e)||-1!==fn(n,e)||t.push(e)}),t}function o(e){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,n=ni(s,e);if(n){var t=Vn().parse(n);if((t=m(t)?Vn().parse(t):t)&&B(t))return t}}catch(r){s.throwInternal(q.CRITICAL,V.FailedToRestoreStorageBuffer," storage key: "+e+", "+U(r),{exception:K(r)})}return[]}function a(e,n){try{var e=u.namePrefix&&u.namePrefix()?u.namePrefix()+"_"+e:e,t=JSON.stringify(n);ti(s,e,t)}catch(r){ti(s,e,JSON.stringify([])),s.throwInternal(q.WARNING,V.FailedToSetStorageBuffer," storage key: "+e+", "+U(r)+". Buffer cleared",{exception:K(r)})}}r.length>l.MAX_BUFFER_SIZE&&(r.length=l.MAX_BUFFER_SIZE),a(l.SENT_BUFFER_KEY,[]),a(l.BUFFER_KEY,r),t.enqueue=function(e){t.count()>=l.MAX_BUFFER_SIZE?c||(s.throwInternal(q.WARNING,V.SessionStorageBufferFull,"Maximum buffer size reached: "+t.count(),!0),c=!0):(n.enqueue(e),a(l.BUFFER_KEY,t._get()))},t.clear=function(){n.clear(),a(l.BUFFER_KEY,t._get()),a(l.SENT_BUFFER_KEY,[]),c=!1},t.markAsSent=function(e){a(l.BUFFER_KEY,t._set(i(e,t._get())));var n=o(l.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>l.MAX_BUFFER_SIZE&&(s.throwInternal(q.CRITICAL,V.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+n.length,!0),n.length=l.MAX_BUFFER_SIZE),a(l.SENT_BUFFER_KEY,n))},t.clearSent=function(e){e=i(e,o(l.SENT_BUFFER_KEY));a(l.SENT_BUFFER_KEY,e)}}),e}var xo="baseType",C="baseData",S="properties",To="true";function x(e,n,t){z(e,n,t,Cn)}function bo(e,t,r){k(e)||D(e,function(e,n){sn(n)?r[e]=n:m(n)?t[e]=n:qn()&&(t[e]=Vn().stringify(n))})}function wo(t,r){k(t)||D(t,function(e,n){t[e]=n||r})}function _o(e,n,t,r){for(var r=new fi(e,r,n),n=(x(r,"sampleRate",t[Gr]),(t[C]||{}).startTime&&(r.time=ln(t[C].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r.name=r.name.replace("{0}",n),e),e=t,i=r,o=i.tags=i.tags||{},a=e.ext=e.ext||{},s=e.tags=e.tags||[],u=a.user,u=(u&&(x(o,f.userAuthUserId,u.authId),x(o,f.userId,u.id||u.localId)),a.app),u=(u&&x(o,f.sessionId,u.sesId),a.device),u=(u&&(x(o,f.deviceId,u.id||u.localId),x(o,f.deviceType,u.deviceClass),x(o,f.deviceIp,u.ip),x(o,f.deviceModel,u.model),x(o,f.deviceType,u.deviceType)),e.ext.web),e=(u&&(x(o,f.deviceLanguage,u.browserLang),x(o,f.deviceBrowserVersion,u.browserVer),x(o,f.deviceBrowser,u.browser),x(e=(e=(e=i.data=i.data||{})[C]=e[C]||{})[S]=e[S]||{},"domain",u.domain),x(e,"isManual",u.isManual?To:null),x(e,"screenRes",u.screenRes),x(e,"userConsent",u.userConsent?To:null)),a.os),u=(e&&x(o,f.deviceOS,e.name),a.trace),c=(u&&(x(o,f.operationParentId,u.parentID),x(o,f.operationName,I(n,u.name)),x(o,f.operationId,u.traceID)),{}),l=s.length-1;0<=l;l--)D(s[l],function(e,n){c[e]=n}),s.splice(l,1);D(s,function(e,n){c[e]=n});e=Y(Y({},o),c);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(Ao.Version)),i.tags=xn(e),t.tags=t.tags||[],xn(r)}function No(e,n){k(n[C])&&e.throwInternal(q.CRITICAL,V.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")}var Ao={Version:"2.8.0-beta.2203-02"};function Eo(e,n,t){No(e,n);var r={},i={},t=(n[xo]!==pi.dataType&&(r.baseTypeSource=n[xo]),n[xo]===pi.dataType?(r=n[C][S]||{},i=n[C].measurements||{}):n[C]&&bo(n[C],r,i),bo(n.data,r,i),k(t)||wo(r,t),n[C].name),t=new pi(e,t,r,i),r=new ao(pi.dataType,t);return _o(e,pi.envelopeType,n,r)}var Ro=function Zo(f){h(Zo,this,function(e){function c(a,s){var e="__aiCircularRefCheck",u={};if(!a)return f.throwInternal(q.CRITICAL,V.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[e])return f.throwInternal(q.WARNING,V.CircularReferenceDetected,"Circular reference detected while serializing object",{name:s},!0),u;if(a.aiDataContract)return a[e]=!0,D(a.aiDataContract,function(e,n){var t=d(n)?1&n():1&n,r=d(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=g(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?l:c)(a[e],e):a[e])!==undefined&&(u[e]=t):f.throwInternal(q.CRITICAL,V.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:e,name:s})}),delete a[e],u;if("measurements"===s)u=t(a,"number",s);else if("properties"===s)u=t(a,"string",s);else if("tags"===s)u=t(a,"string",s);else if(B(a))u=l(a,s);else{f.throwInternal(q.WARNING,V.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Vn().stringify(a),u=a}catch(n){f.throwInternal(q.CRITICAL,V.CannotSerializeObject,n&&d(n.toString)?n.toString():"Error serializing object",null,!0)}}return u}function l(e,n){if(e)if(B(e))for(var t=[],r=0;r<e.length;r++){var i=c(e[r],n+"["+r+"]");t.push(i)}else f.throwInternal(q.CRITICAL,V.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},D(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n.toString?i[e]=n.toString():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",f.throwInternal(q.CRITICAL,i[e],null,!0))})),i}e.serialize=function(e){e=c(e,"root");try{return Vn().stringify(e)}catch(n){f.throwInternal(q.CRITICAL,V.CannotSerializeObject,n&&d(n.toString)?n.toString():"Error serializing object",null,!0)}}})};function Lo(){var a=Un(),s=zn(),u=!1,c=!0;h(Lo,this,function(e){try{var n,t;a&&Fr(a,"online",r)&&(Fr(a,"offline",i),u=!0),s&&!F((n=s.body||s).ononline)&&(n.ononline=r,n.onoffline=i,u=!0),u&&(t=Kn())&&!k(t.onLine)&&(c=t.onLine)}catch(o){u=!1}function r(){c=!0}function i(){c=!1}e.isListening=u,e.isOnline=function(){var e=!0,n=Kn();return u?e=c:n&&!k(n.onLine)&&(e=n.onLine),e},e.isOffline=function(){return!e.isOnline()}})}var Fo=Lo.Offline=new Lo,Mo=(ko.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/ko.INT_MAX_VALUE*100},ko.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var n=5381,t=0;t<e.length;++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},ko.INT_MAX_VALUE=2147483647,ko);function ko(){}var Do=function(){var n=new Mo,t=new ho;this.getSamplingScore=function(e){return e.tags&&e.tags[t.userId]?n.getHashCodeScore(e.tags[t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[t.operationId]?n.getHashCodeScore(e.tags[t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?n.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()}},Po=(Bo.prototype.isSampledIn=function(e){var n=this.sampleRate;return null===n||n===undefined||100<=n||e.baseType===ji.dataType||this.samplingScoreGenerator.getSamplingScore(e)<n},Bo);function Bo(e,n){this.INT_MAX_VALUE=2147483647;n=n||it(null);(100<e||e<0)&&(n.throwInternal(q.WARNING,V.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new Do}function Oo(e){try{return e.responseText}catch(n){}return null}function Uo(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},disableXhr:function(){return!1},onunloadDisableFetch:function(){return!1},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){return undefined},namePrefix:function(){return undefined},samplingPercentage:function(){return 100},customHeaders:function(){return undefined},convertUndefined:function(){return undefined},eventsLimitInMem:function(){return 1e4}}}(i={})[pi.dataType]=Eo,i[Qi.dataType]=function(e,n,t){No(e,n);var r=n[C].message,i=n[C].severityLevel,o=n[C][S]||{},a=n[C].measurements||{},t=(bo(n.data,o,a),k(t)||wo(o,t),new Qi(e,r,i,o,a)),r=new ao(Qi.dataType,t);return _o(e,Qi.envelopeType,n,r)},i[Gi.dataType]=function(e,n,t){No(e,n);var r,i="duration",o=n[C],i=(k(o)||k(o[S])||k(o[S][i])?k(n.data)||k(n.data[i])||(r=n.data[i],delete n.data[i]):(r=o[S][i],delete o[S][i]),n[C]),o=(((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID),i.id||a),a=i.name,s=i.uri,u=i[S]||{},c=i.measurements||{},i=(k(i.refUri)||(u.refUri=i.refUri),k(i.pageType)||(u.pageType=i.pageType),k(i.isLoggedIn)||(u.isLoggedIn=i.isLoggedIn.toString()),k(i[S])||D(i[S],function(e,n){u[e]=n}),bo(n.data,u,c),k(t)||wo(u,t),new Gi(e,a,s,r,u,c,o)),t=new ao(Gi.dataType,i);return _o(e,Gi.envelopeType,n,t)},i[ro.dataType]=function(e,n,t){No(e,n);var r=n[C],i=r.name,o=r.uri||r.url,a=r[S]||{},s=r.measurements||{},t=(bo(n.data,a,s),k(t)||wo(a,t),new ro(e,i,o,undefined,a,s,r)),i=new ao(ro.dataType,t);return _o(e,ro.envelopeType,n,i)},i[Ei.dataType]=function(e,n,t){No(e,n);var r=n[C].measurements||{},i=n[C][S]||{},t=(bo(n.data,i,r),k(t)||wo(i,t),n[C]),t=Ei.CreateFromInterface(e,t,i,r),i=new ao(Ei.dataType,t);return _o(e,Ei.envelopeType,n,i)},i[ji.dataType]=function(e,n,t){No(e,n);var r=n[C],i=r[S]||{},o=r.measurements||{},t=(bo(n.data,i,o),k(t)||wo(i,t),new ji(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new ao(ji.dataType,t);return _o(e,ji.envelopeType,n,r)},i[Yi.dataType]=function(e,n,t){No(e,n);var r=n[C].measurements||{},i=n[C][S]||{},t=(bo(n.data,i,r),k(t)||wo(i,t),n[C]);if(k(t))return e.warnToConsole("Invalid input for dependency data"),null;var o=t[S]&&t[S][Xr]?t[S][Xr]:"GET",o=new Yi(e,t.id,t.target,t.name,t.duration,t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new ao(Yi.dataType,o);return _o(e,Yi.envelopeType,n,t)};var zo,jo=i,Ko=(n(qo,zo=Me),qo.constructEnvelope=function(e,n,t,r){e=n===e.iKey||k(n)?e:Y(Y({},e),{iKey:n});return(jo[e.baseType]||Eo)(t,e,r)},qo);function qo(){var T,b,t,w,_,N,A,E=zo.call(this)||this,R=(E.priority=1001,!(E.identifier="AppInsightsChannelPlugin")),L={},F=0;return E._senderConfig=Uo(),h(qo,E,function(c,a){function l(e,n,t,r,i,o){var a=null;c._appId||(a=p(o))&&a.appId&&(c._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||s(t))&&!c._senderConfig.isRetryDisabled()&&y(e)?(h(n),c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,". Response code "+e+". Will retry to send "+n.length+" items.")):c._onError(n,i):Fo.isOffline()?c._senderConfig.isRetryDisabled()||(h(n,10),c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,". Offline - Response Code: ".concat(e,". Offline status: ").concat(Fo.isOffline(),". Will retry to send ").concat(n.length," items."))):(s(t),206===e?(a=a||p(o))&&!c._senderConfig.isRetryDisabled()?c._onPartialSuccess(n,a):c._onError(n,i):(T=0,c._onSuccess(n,r)))}function s(e){return!(10<=_)&&!k(e)&&""!==e&&e!==c._senderConfig.endpointUrl()&&(c._senderConfig.endpointUrl=function(){return e},++_,1)}function n(e,n){A?A(e,!1):u(e)}function o(e){var n=Kn(),t=c._buffer,r=c._senderConfig.endpointUrl(),i=c._buffer.batchPayloads(e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t.markAsSent(e),c._onSuccess(e,e.length)),r}function u(e,n){if(B(e)&&0<e.length&&!o(e)){for(var t=[],r=0;r<e.length;r++){var i=e[r];o([i])||t.push(i)}0<t.length&&(N(t,!0),c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=c._senderConfig.endpointUrl();try{t[Wr]=!0}catch(i){}t.open("POST",r,e),t.setRequestHeader("Content-type","application/json"),si(r)&&t.setRequestHeader("Sdk-Context","appId"),O(hn(L),function(e){t.setRequestHeader(e,L[e])}),t.onreadystatechange=function(){return c._xhrReadyStateChange(t,n,n.length)},t.onerror=function(e){return c._onError(n,I(t),e)};e=c._buffer.batchPayloads(n);t.send(e),c._buffer.markAsSent(n)}function d(e,n){if(B(e)){for(var t=e.length,r=0;r<e.length;r++)t+=e[r].length;F+t<=65e3?i(e,!1):Gn()?u(e):(N&&N(e,!0),c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function g(e,n){i(e,!0)}function i(t,r){var e=c._senderConfig.endpointUrl(),n=c._buffer.batchPayloads(t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n.length,n=!1,s=!1,e=(si(e)&&o.append("Sdk-Context","appId"),O(hn(L),function(e){o.append(e,L[e])}),(i={method:"POST",headers:o,body:i})[Wr]=!0,r||(n=i.keepalive=!0,F+=a),new Request(e,i));try{e[Wr]=!0}catch(u){}c._buffer.markAsSent(t);try{fetch(e).then(function(n){r||(F-=a,a=0),s||(s=!0,n.ok?n.text().then(function(e){l(n.status,t,n.url,t.length,n.statusText,e)}):c._onError(t,n.statusText))})["catch"](function(e){r||(F-=a,a=0),s||(s=!0,c._onError(t,e.message))})}catch(u){s||c._onError(t,K(u))}n&&!s&&(s=!0,c._onSuccess(t,t.length))}function p(e){try{if(e&&""!==e){var n=Vn().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(t){c.diagLog().throwInternal(q.CRITICAL,V.InvalidBackendResponse,"Cannot parse the response. "+U(t),{response:e})}return null}function h(e,n){if(void 0===n&&(n=1),e&&0!==e.length){var t=c._buffer;t.clearSent(e),T++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t.enqueue(o)}n=T<=1?10:(e=1+Math.floor((Math.pow(2,T)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=yn()+1e3*n;b=e,m()}}function m(){var e;t||R||(e=b?Math.max(0,b-yn()):0,e=Math.max(c._senderConfig.maxBatchInterval(),e),t=setTimeout(function(){t=null,c.triggerSend(!0,null,1)},e))}function v(){clearTimeout(t),b=t=null}function y(e){return 408===e||429===e||500===e||503===e}function I(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Oo(e)||e.response||"":n}function C(n,e){var t=c._buffer,r=Un(),i=new XDomainRequest,r=(i.onload=function(){return c._xdrOnLoad(i,n)},i.onerror=function(e){return c._onError(n,S(i),e)},r&&r.location&&r.location.protocol||"");if(c._senderConfig.endpointUrl().lastIndexOf(r,0))return c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t.clear();r=c._senderConfig.endpointUrl().replace(/^(https?:)/,""),i.open("POST",r),r=t.batchPayloads(n);i.send(r),t.markAsSent(n)}function S(e,n){return e?"XDomainRequest,Response:"+Oo(e)||"":n}function x(e,n){var t="getNotifyMgr",t=c.core[t]?c.core[t]():c.core._notificationManager;if(t&&t.eventsSendRequest)try{t.eventsSendRequest(e,n)}catch(r){c.diagLog().throwInternal(q.CRITICAL,V.NotificationException,"send request notification failed: "+U(r),{exception:K(r)})}}c.pause=function(){v(),R=!0},c.resume=function(){R&&(R=!1,b=null,c._buffer.size()>c._senderConfig.maxBatchSizeInBytes()&&c.triggerSend(!0,null,10),m())},c.flush=function(e,n,t){if(void 0===e&&(e=!0),!R){v();try{c.triggerSend(e,null,t||1)}catch(r){c.diagLog().throwInternal(q.CRITICAL,V.FlushFailed,"flush failed, telemetry will not be collected: "+U(r),{exception:K(r)})}}},c.onunloadFlush=function(){if(!R)if(!1!==c._senderConfig.onunloadDisableBeacon()&&!1!==c._senderConfig.isBeaconApiDisabled()||!Gn())c.flush();else try{c.triggerSend(!0,n,2)}catch(e){c.diagLog().throwInternal(q.CRITICAL,V.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+U(e),{exception:K(e)})}},c.teardown=function(){j("Method not implemented.")},c.addHeader=function(e,n){L[e]=n},c.initialize=function(e,n,t,r){a.initialize(e,n,t,r);var i=c._getTelCtx(),o=c.identifier,t=(w=new Ro(n.logger),b=null,T=0,c._sender=null,_=0,c.diagLog()),r=(D(Uo(),function(e,n){c._senderConfig[e]=function(){return i.getConfig(o,e,n())}}),c._buffer=new(c._senderConfig.enableSessionStorageBuffer()&&ei()?So:yo)(t,c._senderConfig),c._sample=new Po(c._senderConfig.samplingPercentage(),t),!k(e.disableInstrumentationKeyValidation)&&e.disableInstrumentationKeyValidation||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e.instrumentationKey)||t.throwInternal(q.CRITICAL,V.InvalidInstrumentationKey,"Invalid Instrumentation key "+e.instrumentationKey),!si(c._senderConfig.endpointUrl())&&c._senderConfig.customHeaders()&&0<c._senderConfig.customHeaders().length&&O(c._senderConfig.customHeaders(),function(e){E.addHeader(e.header,e.value)}),c._senderConfig),n=null;!r.disableXhr()&&Xn()?n=C:!r.disableXhr()&&Yn()&&(n=f),!n&&Hn()&&(n=g),N=n||f,!r.isBeaconApiDisabled()&&Gn()&&(n=u),c._sender=n||f,A=!r.onunloadDisableFetch()&&Hn(!0)?d:Gn()?u:!r.disableXhr()&&Xn()?C:!r.disableXhr()&&Yn()?f:N},c.processTelemetry=function(e,t){t=c._getTelCtx(t);try{if(c._senderConfig.disableTelemetry())return;if(!e)return void t.diagLog().throwInternal(q.CRITICAL,V.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(e.baseData&&!e.baseType)return void t.diagLog().throwInternal(q.CRITICAL,V.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(e.baseType||(e.baseType="EventData"),!c._sender)return void t.diagLog().throwInternal(q.CRITICAL,V.SenderNotInitialized,"Sender was not initialized");if(!c._sample.isSampledIn(e))return void t.diagLog().throwInternal(q.WARNING,V.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:c._sample.sampleRate});e[Gr]=c._sample.sampleRate;var n=c._senderConfig.convertUndefined()||undefined,r=e.iKey||c._senderConfig.instrumentationKey(),i=qo.constructEnvelope(e,r,t.diagLog(),n);if(!i)return void t.diagLog().throwInternal(q.CRITICAL,V.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(e.tags&&e.tags[Hr]&&(O(e.tags[Hr],function(e){try{e&&!1===e(i)&&(o=!0,t.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(n){t.diagLog().throwInternal(q.CRITICAL,V.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+U(n),{exception:K(n)},!0)}}),delete e.tags[Hr]),o)return;var a=w.serialize(i),s=c._buffer;s.size()+a.length>c._senderConfig.maxBatchSizeInBytes()&&c.triggerSend(!0,null,10),s.enqueue(a),m()}catch(u){t.diagLog().throwInternal(q.WARNING,V.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+U(u),{exception:K(u)})}c.processNext(e,t)},c._xhrReadyStateChange=function(e,n,t){4===e.readyState&&l(e.status,n,e.responseURL,t,I(e),Oo(e)||e.response)},c.triggerSend=function(e,n,t){if(void 0===e&&(e=!0),!R)try{var r,i=c._buffer;c._senderConfig.disableTelemetry()?i.clear():0<i.count()&&(r=i.getItems(),x(t||0,e),n?n.call(E,r,e):c._sender(r,e)),v()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Kn()||{})?(n.userAgent||M).toLowerCase():M)||M).toLowerCase();if(P(n,Rn))return e=zn()||{},Math.max(parseInt(n.split(Rn)[1]),e.documentMode||0);if(P(n,Ln)){e=parseInt(n.split(Ln)[1]);if(e)return e+4}return null}();(!i||9<i)&&c.diagLog().throwInternal(q.CRITICAL,V.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+U(o),{exception:K(o)})}},c._onError=function(e,n,t){c.diagLog().throwInternal(q.WARNING,V.OnError,"Failed to send telemetry.",{message:n}),c._buffer.clearSent(e)},c._onPartialSuccess=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],s=e.splice(a.index,1)[0];(y(a.statusCode)?r:t).push(s)}0<e.length&&c._onSuccess(e,n.itemsAccepted),0<t.length&&c._onError(t,I(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),0<r.length&&(h(r),c.diagLog().throwInternal(q.WARNING,V.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+t.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},c._onSuccess=function(e,n){c._buffer.clearSent(e)},c._xdrOnLoad=function(e,n){var t=Oo(e);!e||t+""!="200"&&""!==t?(t=p(t))&&t.itemsReceived&&t.itemsReceived>t.itemsAccepted&&!c._senderConfig.isRetryDisabled()?c._onPartialSuccess(n,t):c._onError(n,S(e)):(T=0,c._onSuccess(n,0))}}),E}Vo.prototype.initialize=function(){this.core=new Sr;var e=[],n=new Ko;e.push(n),this.core.initialize(this.config,e),n.initialize(this.config,this.core,e),this.pollInternalLogs()},Vo.prototype.track=function(e){this.core.track(e)},Vo.prototype.flush=function(n){void 0===n&&(n=!0),O(this.core.getTransmissionControls(),function(e){O(e,function(e){n?e.flush():e.triggerSend(n,null,1)})})},Vo.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},Vo.prototype.stopPollingInternalLogs=function(){this.core.stopPollingInternalLogs()},Vo.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&0<this.config.diagnosticLogInterval?this.config.diagnosticLogInterval:1e4};r=Vo;function Vo(e){(k(e)||k(e.instrumentationKey))&&j("Invalid input configuration"),this.config=e,this.getSKUDefaults(),this.initialize()}T.AppInsightsCore=Sr,T.ApplicationInsights=r,T.CoreUtils=Dr,T.Sender=Ko;fo=T,go="__esModule",s={value:!0},c=Object.defineProperty;if(c)try{return void c(fo,go,s)}catch($o){}typeof s.value!==undefined&&(fo[go]=s.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=aib.2.min.js.map