New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/applicationinsights-properties-js

Package Overview
Dependencies
Maintainers
5
Versions
606
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/applicationinsights-properties-js - npm Package Compare versions

Comparing version 2.5.3 to 2.5.4

4

browser/applicationinsights-properties-js.min.js
/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.5.3
* Application Insights JavaScript SDK - Properties Plugin, 2.5.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!=n&&"function"!=n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n=2,o="undefined",a="object",s="prototype",c="window",u="location",l="JSON";function f(){return typeof globalThis!==o&&globalThis?globalThis:typeof self!==o&&self?self:typeof window!==o&&window?window:typeof global!==o&&global?global:null}function p(e){var t=f();return t&&t[e]?t[e]:e===c&&h()?window:null}function h(){return Boolean(typeof window===a&&window)}function g(){return h()?window:p(c)}function d(){return function e(){return Boolean(typeof document===a&&document)}()?document:p("document")}function m(){return function e(){return Boolean(typeof navigator===a&&navigator)}()?navigator:p("navigator")}function v(){return typeof location===a&&location?location:p(u)}function y(){return Boolean(typeof JSON===a&&JSON||null!==p(l))}function x(){return y()?JSON||p(l):null}var S="attachEvent",I="addEventListener",N="detachEvent",C="removeEventListener";function w(e,t){return typeof e===t}function _(e){return w(e,o)||e===undefined}function D(e){return _(e)||null===e}function E(e,t){return e&&Object[s].hasOwnProperty.call(e,t)}function b(e){return w(e,a)}function T(e){return w(e,"function")}function A(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!D(e))try{D(e[I])?D(e[S])||(e[S]("on"+t,n),r=!0):(e[I](t,n,i),r=!0)}catch(o){}return r}function M(e,t,n,i){if(void 0===i&&(i=!1),!D(e))try{D(e[C])?D(e[N])||e[N]("on"+t,n):e[C](t,n,i)}catch(r){}}var k=(U.isDate=function(e){return"[object Date]"===Object[s].toString.call(e)},U.isString=function(e){return w(e,"string")},U.isNumber=function(e){return w(e,"number")},U.isBoolean=function(e){return w(e,"boolean")},U.disableCookies=function(){U._canUseCookies=!1},U.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(R,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},U.toISOString=function(e){if(U.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},U.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},U.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},U.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},U.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},U.objCreate=function(e){if(null==e)return{};if(!b(e)&&!T(e))throw new TypeError("Object prototype may only be an Object: "+e);function t(){}return t[s]=e,new t},U.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(T(e)||b(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)E(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)E(e,r[a])&&n.push(r[a]);return n},U.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},U.addEventHandler=function(e,t){var n=!1,i=g();i&&(n=A(i,e,t),n=A(i.body,e,t)||n);var r=d();return r&&(n=z.Attach(r,e,t)||n),n},U.isTypeof=w,U.isUndefined=_,U.isNullOrUndefined=D,U.hasOwnProperty=E,U.isFunction=T,U.isObject=b,U);function U(){}var L,O,R=/[xy]/g,z=(P.Attach=A,P.AttachEvent=A,P.Detach=M,P.DetachEvent=M,P);function P(){}(O=L=L||{})[O.CRITICAL=1]="CRITICAL",O[O.WARNING=2]="WARNING";var j=0,q=1,G=2,W=3,B=4,F=5,V=6,H=9,X=23,K=27,Q=49,J=52,Y=56,$=57,Z=60,ee=61,te=66,ne=68,ie=69,re=72,oe=73,ae=(se.sanitizeDiagnosticText=function(e){return e?'"'+e.replace(/\"/g,"")+'"':""},se.dataType="MessageData",se.AiNonUserActionablePrefix="AI (Internal): ",se.AiUserActionablePrefix="AI: ",se);function se(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?se.AiUserActionablePrefix:se.AiNonUserActionablePrefix)+e;var r="";y()&&(r=x().stringify(i));var o=(t?" message:"+se.sanitizeDiagnosticText(t):"")+(i?" props:"+se.sanitizeDiagnosticText(r):"");this.message+=o}var ce=(ue.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ae(t,n,r,i),a=this;if(a.enableDebugExceptions())throw o;if(!k.isUndefined(o)&&o&&!k.isUndefined(o.message)){if(r){var s=+o.messageId;!a._messageLogged[s]&&a.consoleLoggingLevel()>=L.WARNING&&(a.warnToConsole(o.message),a._messageLogged[s]=!0)}else a.consoleLoggingLevel()>=L.WARNING&&a.warnToConsole(o.message);a.logInternalMessage(e,o)}},ue.prototype.warnToConsole=function(e){!k.isUndefined(console)&&console&&(k.isFunction(console.warn)?console.warn(e):k.isFunction(console.log)&&console.log(e))},ue.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ue.prototype.logInternalMessage=function(e,t){var n=this;if(!n._areInternalMessagesThrottled()){var i=!0,r=n.AIInternalMessagePrefix+t.messageId;if(n._messageLogged[r]?i=!1:n._messageLogged[r]=!0,i&&(e<=n.telemetryLoggingLevel()&&(n.queue.push(t),n._messageCount++),n._messageCount===n.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new ae(X,o,!1);n.queue.push(a),n.warnToConsole(o)}}},ue.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ue);function ue(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},k.isNullOrUndefined(e)||(k.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),k.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),k.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),k.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var le=k.isFunction,fe=function kn(r,o){var a=this,s=null,c=le(r.processTelemetry),u=le(r.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return r},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processTelemetry=function(e,t){if(t=t||o,r&&c){a._hasRun=!0;try{t.setNext(s),u&&r.setNextPlugin(s),s&&(s._hasRun=!1),r.processTelemetry(e,t)}catch(i){var n=s&&s._hasRun;s&&n||t.diagLog().throwInternal(L.CRITICAL,oe,"Plugin ["+r.identifier+"] failed during processTelemetry - "+i),s&&!n&&s.processTelemetry(e,t)}}else s&&(a._hasRun=!0,s.processTelemetry(e,t))}},pe=k.isNullOrUndefined;function he(e,t){var n=[];if(e&&0<e.length)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&k.isFunction(o.processTelemetry)){var a=new fe(o,t);n.push(a),i&&i.setNext(a),i=a}}return 0<n.length?n[0]:null}var ge=function Un(e,o,n,t){var a=this,i=null;null!==t&&(e&&k.isFunction(e.getPlugin)?i=function s(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();!r&&o!==n||(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),he(i,t)}(e,a,t||e.getPlugin()):t?i=function c(e,t,n){var i=e,r=!1;return n&&e&&(i=[],k.arrForEach(e,function(e){!r&&e!==n||(r=!0,i.push(e))})),n&&!r&&(i=i||[]).push(n),he(i,t)}(e,a,t):k.isUndefined(t)&&(i=he(e,a))),a.core=function(){return n},a.diagLog=function(){var e=(n||{}).logger;return e=e||new ce(o||{})},a.getCfg=function(){return o},a.getExtCfg=function(e,t){var n;if(void 0===t&&(t={}),o){var i=o.extensionConfig;i&&e&&(n=i[e])}return n||t},a.getConfig=function(e,t,n){var i;void 0===n&&(n=!1);var r=a.getExtCfg(e,null);return r&&!pe(r[t])?i=r[t]:o&&!pe(o[t])&&(i=o[t]),pe(i)?n:i},a.hasNext=function(){return null!=i},a.getNext=function(){return i},a.setNext=function(e){i=e},a.processNext=function(e){var t=i;t&&(i=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(e,t){return void 0===e&&(e=null),new Un(e||i,o,n,t)}},de=k.isFunction,me="getPlugin",ve=(ye.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},ye);function ye(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&de(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;if(!t){var n=s||new ge(null,{},o.core);t=c&&c[me]?n.createNew(null,c[me]):n.createNew(null,c)}return t},o._baseTelInit=function(e,t,n,i){e&&(e.extensionConfig=e.extensionConfig||[]),!i&&t&&(i=t.getProcessTelContext().getNext());var r=c;c&&c[me]&&(r=c[me]()),o.core=t,s=new ge(i,e,t,r),a=!0}}var xe=k.isFunction,Se="processTelemetry",Ie="priority",Ne="setNextPlugin",Ce="isInitialized";function we(t,n){for(var e=[],i=null,r=t.getNext();r;){var o=r.getPlugin();o&&(i&&xe(i[Ne])&&xe(o[Se])&&i[Ne](o),xe(o[Ce])&&o[Ce]()||e.push(o),i=o,r=r.getNext())}k.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function _e(e){return e.sort(function(e,t){var n=0,i=xe(t[Se]);return xe(e[Se])?n=i?e[Ie]-t[Ie]:1:i&&(n=-1),n})}var De=500,Ee="Channel has invalid priority",be=k.arrForEach,Te=k.objDefineAccessors;function Ae(e,t){t&&0<t.length&&(function n(e){be(e,function(e){if(e.priority<De)throw Error(Ee+e.identifier)})}(t=t.sort(function(e,t){return e.priority-t.priority})),e.push(t))}var Me,ke=(t(Ue,Me=ve),Ue.prototype.processTelemetry=function(t,n){var i=this;this._channelQueue&&be(this._channelQueue,function(e){0<e.length&&i._getTelCtx(n).createNew(e).processNext(t)})},Ue.prototype.getChannelControls=function(){return this._channelQueue},Ue.prototype.initialize=function(t,n,i){if(!this.isInitialized()){Me.prototype.initialize.call(this,t,n,i),t.isCookieUseDisabled&&k.disableCookies();var e=this._channelQueue=function r(e,t){var n=[];if(e&&be(e,function(e){return Ae(n,e)}),t){var i=[];be(t,function(e){e.priority>De&&i.push(e)}),Ae(n,i)}return n}((t||{}).channels,i);be(e,function(e){return we(new ge(e,t,n),i)})}},Ue._staticInit=(Te(Ue.prototype,"ChannelControls",Ue.prototype.getChannelControls),void Te(Ue.prototype,"channelQueue",Ue.prototype.getChannelControls)),Ue);function Ue(){var e=null!==Me&&Me.apply(this,arguments)||this;return e.identifier="ChannelControllerPlugin",e.priority=De,e}var Le=k.arrForEach,Oe=k.isNullOrUndefined,Re=(ze.prototype.initialize=function(e,t,i,n){var r=this;if(r.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Oe(e.instrumentationKey))throw Error("Please provide instrumentation key");r.config=e;var o=r._channelController;n=n||k.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}}),r._notificationManager=n,e.extensions=Oe(e.extensions)?[]:e.extensions,(e.extensionConfig=Oe(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,i=i||k.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),r.logger=i;var a=[];a.push.apply(a,t.concat(e.extensions)),a=_e(a);var s=[],c={};if(Le(a,function(e){if(Oe(e)||Oe(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Oe(c[t])?c[t]=n:i.warnToConsole("Two extensions have same priority #"+t+" - "+c[t]+", "+n)),(!t||t<o.priority)&&s.push(e)}),a.push(o),s.push(o),a=_e(a),r._extensions=a,we(new ge([o],e,r),a),we(new ge(s,e,r),a),r._extensions=s,0===r.getTransmissionControls().length)throw new Error("No channels available");r._setInit(!0)},ze.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},ze.prototype.track=function(e){var t=this;e.iKey||(e.iKey=t.config.instrumentationKey),e.time||(e.time=k.toISOString(new Date)),Oe(e.ver)&&(e.ver="4.0"),t.isInitialized()?(0<t._eventQueue.length&&(Le(t._eventQueue,function(e){t.getProcessTelContext().processNext(e)}),t._eventQueue=[]),t.getProcessTelContext().processNext(e)):t._eventQueue.push(e)},ze.prototype.getProcessTelContext=function(){var e=this._extensions,t=e;return e&&0!==e.length||(t=[this._channelController]),new ge(t,this.config,this)},ze);function ze(){var t=!1,e=this;e._extensions=new Array,e._channelController=new ke,e.isInitialized=function(){return t},e._setInit=function(e){t=e},e._eventQueue=[]}var Pe=(je.prototype.addNotificationListener=function(e){this.listeners.push(e)},je.prototype.removeNotificationListener=function(e){for(var t=k.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=k.arrIndexOf(this.listeners,e)},je.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},je.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},je);function je(){this.listeners=[]}var qe,Ge,We,Be,Fe,Ve,He;t(Xe,qe=Re),Xe.prototype.initialize=function(e,t){var n=this;n._notificationManager=new Pe,n.logger=new ce(e),n.config=e,qe.prototype.initialize.call(this,e,t,n.logger,n._notificationManager)},Xe.prototype.getTransmissionControls=function(){return qe.prototype.getTransmissionControls.call(this)},Xe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),qe.prototype.track.call(this,e)},Xe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},Xe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},Xe.prototype.pollInternalLogs=function(i){var t=this,e=this.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var n=t,e=n.logger?n.logger.queue:[];k.arrForEach(e,function(e){var t={name:i||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:k.toISOString(new Date),baseType:ae.dataType,baseData:{message:e.message}};n.track(t)}),e.length=0},e)},Xe.prototype._validateTelemetryItem=function(e){if(k.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},Xe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],n)};function Xe(){return qe.call(this)||this}(We=Ge=Ge||{})[We.LocalStorage=0]="LocalStorage",We[We.SessionStorage=1]="SessionStorage",(Fe=Be=Be||{})[Fe.Default=0]="Default",Fe[Fe.Required=1]="Required",Fe[Fe.Array=2]="Array",Fe[Fe.Hidden=4]="Hidden",(He=Ve=Ve||{})[He.AI=0]="AI",He[He.AI_AND_W3C=1]="AI_AND_W3C",He[He.W3C=2]="W3C";var Ke=(Qe.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=Qe.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,Qe.MAX_NAME_LENGTH-3)+Qe.padNumber(o);r=a}return r},Qe.sanitizeKey=function(e,t){var n;return t&&(t=Qe.trim(t.toString())).length>Qe.MAX_NAME_LENGTH&&(n=t.substring(0,Qe.MAX_NAME_LENGTH),e.throwInternal(L.WARNING,$,"name is too long. It has been truncated to "+Qe.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},Qe.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=Qe.MAX_STRING_LENGTH),t&&(n=n||Qe.MAX_STRING_LENGTH,(t=Qe.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(L.WARNING,ee,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},Qe.sanitizeUrl=function(e,t){return Qe.sanitizeInput(e,t,Qe.MAX_URL_LENGTH,te)},Qe.sanitizeMessage=function(e,t){var n;return t&&t.length>Qe.MAX_MESSAGE_LENGTH&&(n=t.substring(0,Qe.MAX_MESSAGE_LENGTH),e.throwInternal(L.WARNING,Y,"message is too long, it has been truncated to "+Qe.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},Qe.sanitizeException=function(e,t){var n;return t&&t.length>Qe.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,Qe.MAX_EXCEPTION_LENGTH),e.throwInternal(L.WARNING,J,"exception is too long, it has been truncated to "+Qe.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},Qe.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if(k.isObject(r)&&y())try{r=x().stringify(r)}catch(o){e.throwInternal(L.WARNING,Q,"custom property is not valid",{exception:o},!0)}r=Qe.sanitizeString(e,r,Qe.MAX_PROPERTY_LENGTH),n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeId=function(e,t){return t?Qe.sanitizeInput(e,t,Qe.MAX_ID_LENGTH,ie).toString():t},Qe.sanitizeInput=function(e,t,n,i){var r;return t&&(t=Qe.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(L.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},Qe.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},Qe.trim=function(e){return k.isString(e)?e.replace(/^\s+|\s+$/g,""):e},Qe.MAX_NAME_LENGTH=150,Qe.MAX_ID_LENGTH=128,Qe.MAX_PROPERTY_LENGTH=8192,Qe.MAX_STRING_LENGTH=1024,Qe.MAX_URL_LENGTH=2048,Qe.MAX_MESSAGE_LENGTH=32768,Qe.MAX_EXCEPTION_LENGTH=32768,Qe);function Qe(){}var Je=m(),Ye=k.isString,$e=null;var Ze=(et.createDomEvent=function(e){var t=null;if(k.isFunction(Event))t=new Event(e);else{var n=d();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},et.disableStorage=function(){et._canUseLocalStorage=!1,et._canUseSessionStorage=!1},et._getLocalStorageObject=function(){return et.canUseLocalStorage()?et._getVerifiedStorageObject(Ge.LocalStorage):null},et._getVerifiedStorageObject=function(e){var t,n,i=null;try{if(k.isNullOrUndefined(f()))return null;n=new Date,(i=e===Ge.LocalStorage?p("localStorage"):p("sessionStorage")).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},et.isInternalApplicationInsightsEndpoint=function(e){return-1!==et._internalEndpoints.indexOf(e.toLowerCase())},et.canUseLocalStorage=function(){return et._canUseLocalStorage===undefined&&(et._canUseLocalStorage=!!et._getVerifiedStorageObject(Ge.LocalStorage)),et._canUseLocalStorage},et.getStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,q,"Browser failed read of local storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setStorage=function(e,t,n){var i=et._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,W,"Browser failed write to local storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,F,"Browser failed removal of local storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et._getSessionStorageObject=function(){return et.canUseSessionStorage()?et._getVerifiedStorageObject(Ge.SessionStorage):null},et.canUseSessionStorage=function(){return et._canUseSessionStorage===undefined&&(et._canUseSessionStorage=!!et._getVerifiedStorageObject(Ge.SessionStorage)),et._canUseSessionStorage},et.getSessionStorageKeys=function(){var e=[];if(et.canUseSessionStorage())for(var t in p("sessionStorage"))e.push(t);return e},et.getSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,G,"Browser failed read of session storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setSessionStorage=function(e,t,n){var i=et._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,B,"Browser failed write to session storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,V,"Browser failed removal of session storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et.disableCookies=function(){k.disableCookies()},et.canUseCookies=function(e){if(k._canUseCookies===undefined){k._canUseCookies=!1;try{k._canUseCookies=et.document.cookie!==undefined}catch(t){e.throwInternal(L.WARNING,ne,"Cannot access document.cookie - "+et.getExceptionName(t),{exception:et.dump(t)})}}return k._canUseCookies},et.disallowsSameSiteNone=function(e){return!!Ye(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function r(e,t){var n=e.length,i=n-t.length;return e.substring(0<=i?i:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))},et.setCookie=function(e,t,n,i){if(et.canUseCookies(e)){var r="",o="";i&&(r=";domain="+i);var a=v();a&&"https:"===a.protocol&&(o=";secure",null===$e&&($e=et.disallowsSameSiteNone((m()||{}).userAgent)),$e||(n+=";SameSite=None")),et.document.cookie=t+"="+n+r+";path=/"+o}},et.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},et.getCookie=function(e,t){if(et.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=et.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=et.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},et.deleteCookie=function(e,t){et.canUseCookies(e)&&(et.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},et.trim=function(e){return Ye(e)?e.replace(/^\s+|\s+$/g,""):e},et.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},et.random32=function(){return 4294967296*Math.random()|0},et.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=et.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},et.isArray=function(e){return"[object Array]"===Object[s].toString.call(e)},et.isError=function(e){return"[object Error]"===Object[s].toString.call(e)},et.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():Je?(Je.userAgent||"").toLowerCase():"";return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},et.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},et.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},et.dump=function(e){var t=Object[s].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":y()&&(n=x().stringify(e)),t+n},et.getExceptionName=function(e){return"[object Error]"===Object[s].toString.call(e)?e.name:""},et.addEventHandler=function(e,t){return z.Attach(g(),e,t)},et.IsBeaconApiSupported=function(){return"sendBeacon"in Je&&Je.sendBeacon},et.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},et.document=d()||{},et._canUseLocalStorage=undefined,et._canUseSessionStorage=undefined,et._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],et.NotSpecified="not_specified",et.isDate=k.isDate,et.toISOStringForIE8=k.toISOString,et);function et(){}var tt=(nt.parseUrl=function(e){return nt.htmlAnchorElement||(nt.htmlAnchorElement=nt.document.createElement?nt.document.createElement("a"):{host:nt.parseHost(e)}),nt.htmlAnchorElement.href=e,nt.htmlAnchorElement},nt.getAbsoluteUrl=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.href),t},nt.getPathName=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.pathname),t},nt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},nt.parseHost=function(e){if(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&2<t.length&&Ye(t[2])&&0<t[2].length)return t[2]}return null},nt.document=d()||{},nt);function nt(){}var it=(rt.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=tt.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Ke.sanitizeString(e,n?n+" "+c:c)}else o=Ke.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},rt);function rt(){}var ot=(at.Now=function(){var e=function t(){return p("performance")}();return e&&e.now&&e.timing?e.now()+e.timing.navigationStart:(new Date).getTime()},at.GetDuration=function(e,t){var n=null;return 0===e||0===t||k.isNullOrUndefined(e)||k.isNullOrUndefined(t)||(n=t-e),n},at);function at(){}var st,ct=(t(ut,st=function Ln(){}),ut);function ut(){return st.call(this)||this}var lt;t(ft,lt=function On(){this.ver=1,this.sampleRate=100,this.tags={}});function ft(e,t,n){var i=lt.call(this)||this;return i.name=Ke.sanitizeString(e,n)||Ze.NotSpecified,i.data=t,i.time=k.toISOString(new Date),i.aiDataContract={time:Be.Required,iKey:Be.Required,name:Be.Required,sampleRate:function(){return 100===i.sampleRate?Be.Hidden:Be.Required},tags:Be.Required,data:Be.Required},i}var pt,ht=function Rn(){},gt=(t(dt,pt=ht),dt);function dt(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt;t(vt,mt=gt),vt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",vt.dataType="EventData";function vt(e,t,n,i){var r=mt.call(this)||this;return r.aiDataContract={ver:Be.Required,name:Be.Required,properties:Be.Default,measurements:Be.Default},r.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,r.properties=Ke.sanitizeProperties(e,n),r.measurements=Ke.sanitizeMeasurements(e,i),r}var yt,xt=function zn(){},St=(t(It,yt=ht),It);function It(){var e=yt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Nt,Ct=function Pn(){this.hasFullStack=!0,this.parsedStack=[]};t(wt,Nt=St),wt.CreateFromInterface=function(t,e){var n=e.exceptions&&k.arrMap(e.exceptions,function(e){return Dt.CreateFromInterface(t,e)});return new wt(t,r({},e,{exceptions:n}))},wt.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&k.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},wt.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},wt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",wt.dataType="ExceptionData";function wt(e,t,n,i,r,o){var a=Nt.call(this)||this;return a.aiDataContract={ver:Be.Required,exceptions:Be.Required,severityLevel:Be.Default,properties:Be.Default,measurements:Be.Default},t instanceof Error?(a.exceptions=[new Dt(e,t)],a.properties=Ke.sanitizeProperties(e,n),a.measurements=Ke.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,k.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var _t,Dt=(t(Et,_t=Ct),Et.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&k.arrMap(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.stack,parsedStack:e||undefined}},Et.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&k.arrMap(t.parsedStack,function(e){return Tt.CreateFromInterface(e)})||t.parsedStack;return new Et(e,r({},t,{parsedStack:n}))},Et.parseStack=function(e){var t;if(k.isString(e)){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Tt.regex.test(a)){var s=new Tt(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,u=t.length-1,l=0,f=c,p=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var h=p-f+1;t.splice(f,h);break}f=c,p=u,c++,u--}}return t},Et);function Et(e,t){var n=_t.call(this)||this;if(n.aiDataContract={id:Be.Default,outerId:Be.Default,typeName:Be.Required,message:Be.Required,hasFullStack:Be.Default,stack:Be.Default,parsedStack:Be.Array},t instanceof Error){n.typeName=Ke.sanitizeString(e,t.name)||Ze.NotSpecified,n.message=Ke.sanitizeMessage(e,t.message)||Ze.NotSpecified;var i=t.stack;n.parsedStack=Et.parseStack(i),n.stack=Ke.sanitizeException(e,i),n.hasFullStack=Ze.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var bt,Tt=(t(At,bt=xt),At.CreateFromInterface=function(e){return new At(e,null)},At.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},At.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,At.baseSize=58,At);function At(e,t){var n=bt.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:Be.Required,method:Be.Required,assembly:Be.Default,fileName:Be.Default,line:Be.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=Ze.trim(i),n.fileName="",n.line=0;var r=i.match(At.regex);r&&5<=r.length&&(n.method=Ze.trim(r[2])||n.method,n.fileName=Ze.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=At.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Mt,kt,Ut,Lt=(t(Ot,Mt=ht),Ot);function Ot(){var e=Mt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Ut=kt=kt||{})[Ut.Measurement=0]="Measurement",Ut[Ut.Aggregation=1]="Aggregation";var Rt,zt=(t(Pt,Rt=function jn(){this.kind=kt.Measurement}),Pt);function Pt(){var e=null!==Rt&&Rt.apply(this,arguments)||this;return e.aiDataContract={name:Be.Required,kind:Be.Default,value:Be.Required,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default},e}var jt;t(qt,jt=Lt),qt.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",qt.dataType="MetricData";function qt(e,t,n,i,r,o,a,s){var c=jt.call(this)||this;c.aiDataContract={ver:Be.Required,metrics:Be.Required,properties:Be.Default};var u=new zt;return u.count=0<i?i:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(r)||null===r?undefined:r,u.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,u.value=n,c.metrics=[u],c.properties=Ke.sanitizeProperties(e,a),c.measurements=Ke.sanitizeMeasurements(e,s),c}var Gt,Wt=(t(Bt,Gt=gt),Bt);function Bt(){var e=Gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ft,Vt=(t(Ht,Ft=Wt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ht.dataType="PageviewData",Ht);function Ht(e,t,n,i,r,o,a){var s=Ft.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,properties:Be.Default,measurements:Be.Default,id:Be.Default},s.id=Ke.sanitizeId(e,a),s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,isNaN(i)||(s.duration=Ze.msToTimeSpan(i)),s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(e,o),s}var Xt,Kt=(t(Qt,Xt=ht),Qt);function Qt(){var e=Xt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Jt;t(Yt,Jt=Kt),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Yt.dataType="RemoteDependencyData";function Yt(e,t,n,i,r,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var p=Jt.call(this)||this;p.aiDataContract={id:Be.Required,ver:Be.Required,name:Be.Default,resultCode:Be.Default,duration:Be.Default,success:Be.Default,data:Be.Default,target:Be.Default,type:Be.Default,properties:Be.Default,measurements:Be.Default,kind:Be.Default,value:Be.Default,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default,dependencyKind:Be.Default,dependencySource:Be.Default,commandName:Be.Default,dependencyTypeName:Be.Default},p.id=t,p.duration=Ze.msToTimeSpan(r),p.success=o,p.resultCode=a+"",p.type=Ke.sanitizeString(e,c);var h=it.ParseDependencyPath(e,n,s,i);return p.data=Ke.sanitizeUrl(e,i)||h.data,p.target=Ke.sanitizeString(e,h.target),u&&(p.target=p.target+" | "+u),p.name=Ke.sanitizeString(e,h.name),p.properties=Ke.sanitizeProperties(e,l),p.measurements=Ke.sanitizeMeasurements(e,f),p}var $t,Zt=(t(en,$t=ht),en);function en(){var e=$t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tn;t(nn,tn=Zt),nn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",nn.dataType="MessageData";function nn(e,t,n,i,r){var o=tn.call(this)||this;return o.aiDataContract={ver:Be.Required,message:Be.Required,severityLevel:Be.Default,properties:Be.Default},t=t||Ze.NotSpecified,o.message=Ke.sanitizeMessage(e,t),o.properties=Ke.sanitizeProperties(e,i),o.measurements=Ke.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var rn,on=(t(an,rn=Wt),an);function an(){var e=rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var sn;t(cn,sn=on),cn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",cn.dataType="PageviewPerformanceData";function cn(e,t,n,i,r,o,a){var s=sn.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,perfTotal:Be.Default,networkConnect:Be.Default,sentRequest:Be.Default,receivedResponse:Be.Default,domProcessing:Be.Default,properties:Be.Default,measurements:Be.Default},s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(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}var un,ln,fn;t(pn,un=ct);function pn(e,t){var n=un.call(this)||this;return n.aiDataContract={baseType:Be.Required,baseData:Be.Required},n.baseType=e,n.baseData=t,n}(fn=ln=ln||{})[fn.Verbose=0]="Verbose",fn[fn.Information=1]="Information",fn[fn.Warning=2]="Warning",fn[fn.Error=3]="Error",fn[fn.Critical=4]="Critical";var hn=function qn(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},gn=(dn.UserExt="user",dn.DeviceExt="device",dn.TraceExt="trace",dn.WebExt="web",dn.AppExt="app",dn.OSExt="os",dn.SessionExt="ses",dn.SDKExt="sdk",dn);function dn(){}var mn=new hn,vn=function Gn(){},yn=(xn.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=ot.Now(),t=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),n=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||n?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>xn.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},xn.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},xn.prototype.initializeAutomaticSession=function(){var e=Ze.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=Ze.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},xn.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var i=+t[2];this.automaticSession.renewalDate=+new Date(i),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(r){this._logger.throwInternal(L.CRITICAL,H,"Error parsing ai_session cookie, session will be reset: "+Ze.getExceptionName(r),{exception:Ze.dump(r)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(L.WARNING,K,"AI session renewal date is 0, session will be reset.")},xn.prototype.renew=function(){var e=ot.Now();this.automaticSession.id=Ze.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Ze.canUseLocalStorage()||this._logger.throwInternal(L.WARNING,j,"Browser does not support local storage. Session durations will be inaccurate.")},xn.prototype.setCookie=function(e,t,n){var i=t+this.config.sessionExpirationMs(),r=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];i<r?o.setTime(i):o.setTime(r);var s=this.config.cookieDomain?this.config.cookieDomain():null,c=0===this.config.sessionExpirationMs()?"0":o.toUTCString();Ze.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+c,s),this.cookieUpdatedTimestamp=ot.Now()},xn.prototype.setStorage=function(e,t,n){Ze.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))},xn.acquisitionSpan=864e5,xn.renewalSpan=18e5,xn.cookieUpdateInterval=6e4,xn.cookieNameConst="ai_session",xn);function xn(e,t){var n=this;k.isNullOrUndefined(t)?this._logger=new ce:this._logger=t,"function"!=typeof(e=e||{}).sessionExpirationMs&&(e.sessionExpirationMs=function(){return xn.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return xn.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return n.config.namePrefix&&n.config.namePrefix()?xn.cookieNameConst+n.config.namePrefix():xn.cookieNameConst},this.automaticSession=new vn}var Sn=function Wn(){},In=function Bn(){this.id="browser",this.deviceClass="Browser"},Nn=function Fn(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.5.3"},Cn=(wn.prototype.setAuthenticatedUserContext=function(e,t,n){if(void 0===n&&(n=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(L.WARNING,Z,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var i=this.authenticatedId;t&&(this.accountId=t,i=[this.authenticatedId,this.accountId].join(wn.cookieSeparator)),n&&Ze.setCookie(this._logger,wn.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},wn.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Ze.deleteCookie(this._logger,wn.authUserCookieName)},wn.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},wn.cookieSeparator="|",wn.userCookieName="ai_user",wn.authUserCookieName="ai_authUser",wn);function wn(e,t){this.isNewUser=!1,this._logger=t;var n=Ze.getCookie(this._logger,wn.userCookieName);if(n){this.isNewUser=!1;var i=n.split(wn.cookieSeparator);0<i.length&&(this.id=i[0])}if(this.config=e,!this.id){this.id=Ze.newId();var r=new Date,o=k.toISOString(r);this.accountAcquisitionDate=o,this.isNewUser=!0,r.setTime(r.getTime()+31536e6);var a=[this.id,o],s=this.config.cookieDomain?this.config.cookieDomain():undefined;Ze.setCookie(this._logger,wn.userCookieName,a.join(wn.cookieSeparator)+";expires="+r.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";Ze.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():undefined;var u=Ze.getCookie(this._logger,wn.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(wn.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var _n=function Vn(){},Dn=function Hn(e,t,n,i){this.traceID=e||Ze.generateW3CId(),this.parentID=t,this.name=n;var r=v();!n&&r&&r.pathname&&(this.name=r.pathname),this.name=Ke.sanitizeString(i,this.name)},En=(bn.prototype.applySessionContext=function(e,t){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(e.ext.app.sesId=n.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},bn.prototype.applyOperatingSystemContxt=function(e,t){this.os&&this.os.name&&(e.ext.os=this.os)},bn.prototype.applyApplicationContext=function(e,t){this.application&&("string"==typeof this.application.ver&&(e.tags[mn.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[mn.applicationBuild]=this.application.build))},bn.prototype.applyDeviceContext=function(e,t){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},bn.prototype.applyInternalContext=function(e,t){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[mn.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[mn.internalSdkVersion]=this.internal.sdkVersion))},bn.prototype.applyLocationContext=function(e,t){this.location&&"string"==typeof this.location.ip&&(e.tags[mn.locationIp]=this.location.ip)},bn.prototype.applyOperationContext=function(e,t){if(this.telemetryTrace){var n=e.ext.trace||{traceID:undefined,parentID:undefined};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),e.ext.trace=n}},bn.prototype.applyWebContext=function(e,t){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},bn.prototype.applyUserContext=function(e,t){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[mn.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},bn.prototype.cleanUp=function(e,t){e.ext[gn.DeviceExt]&&0===k.objKeys(e.ext[gn.DeviceExt]).length&&delete e.ext[gn.DeviceExt],e.ext[gn.UserExt]&&0===k.objKeys(e.ext[gn.UserExt]).length&&delete e.ext[gn.UserExt],e.ext[gn.WebExt]&&0===k.objKeys(e.ext[gn.WebExt]).length&&delete e.ext[gn.WebExt],e.ext[gn.OSExt]&&0===k.objKeys(e.ext[gn.OSExt]).length&&delete e.ext[gn.OSExt],e.ext[gn.AppExt]&&0===k.objKeys(e.ext[gn.AppExt]).length&&delete e.ext[gn.AppExt],e.ext[gn.TraceExt]&&0===k.objKeys(e.ext[gn.TraceExt]).length&&delete e.ext[gn.TraceExt]},bn);function bn(e,t){h()&&(this.sessionManager=new yn(t,e),this.application=new Sn,this.device=new In,this.internal=new Nn(t),this.location=new _n,this.user=new Cn(t,e),this.telemetryTrace=new Dn(undefined,undefined,undefined,e),this.session=new vn),this.appId=function(){return null}}var Tn,An=(t(Mn,Tn=ve),Mn.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){return undefined}}},Mn.prototype.initialize=function(e,t,n,i){var r=this;Tn.prototype.initialize.call(this,e,t,n,i);var o=this._getTelCtx(),a=this.identifier,s=Mn.getDefaultConfig();this._extensionConfig=this._extensionConfig||Mn.getDefaultConfig();var c=function(e){u._extensionConfig[e]=function(){return o.getConfig(a,e,s[e]())}},u=this;for(var l in s)c(l);this.context=new En(t.logger,this._extensionConfig),this._breezeChannel=Ze.getExtension(n,"AppInsightsChannelPlugin"),this.context.appId=function(){return r._breezeChannel?r._breezeChannel._appId:null}},Mn.prototype.processTelemetry=function(e,t){if(!k.isNullOrUndefined(e)){if(t=this._getTelCtx(t),e.name===Vt.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new ae(re,(m()||{}).userAgent||"");t.diagLog().logInternalMessage(L.CRITICAL,n)}this.processNext(e,t)}},Mn.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[gn.DeviceExt]=n[gn.DeviceExt]||{},n[gn.WebExt]=n[gn.WebExt]||{},n[gn.UserExt]=n[gn.UserExt]||{},n[gn.OSExt]=n[gn.OSExt]||{},n[gn.AppExt]=n[gn.AppExt]||{},n[gn.TraceExt]=n[gn.TraceExt]||{};var i=this.context;i.applySessionContext(e,t),i.applyApplicationContext(e,t),i.applyDeviceContext(e,t),i.applyOperationContext(e,t),i.applyUserContext(e,t),i.applyOperatingSystemContxt(e,t),i.applyWebContext(e,t),i.applyLocationContext(e,t),i.applyInternalContext(e,t),i.cleanUp(e,t)},Mn);function Mn(){var e=null!==Tn&&Tn.apply(this,arguments)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",e}e.PropertiesPlugin=An,e.TelemetryTrace=Dn,e.TelemetryContext=En,e.Session=vn,e.SessionManager=yn,function(e,t,n){var i=Object.defineProperty;if(i)try{return i(e,t,n)}catch(r){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!=n&&"function"!=n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n=2,o="undefined",a="object",s="prototype",c="window",u="location",l="JSON";function f(){return typeof globalThis!==o&&globalThis?globalThis:typeof self!==o&&self?self:typeof window!==o&&window?window:typeof global!==o&&global?global:null}function p(e){var t=f();return t&&t[e]?t[e]:e===c&&h()?window:null}function h(){return Boolean(typeof window===a&&window)}function g(){return h()?window:p(c)}function d(){return function e(){return Boolean(typeof document===a&&document)}()?document:p("document")}function m(){return function e(){return Boolean(typeof navigator===a&&navigator)}()?navigator:p("navigator")}function v(){return typeof location===a&&location?location:p(u)}function y(){return Boolean(typeof JSON===a&&JSON||null!==p(l))}function x(){return y()?JSON||p(l):null}var S="attachEvent",I="addEventListener",N="detachEvent",C="removeEventListener";function w(e,t){return typeof e===t}function _(e){return w(e,o)||e===undefined}function D(e){return _(e)||null===e}function E(e,t){return e&&Object[s].hasOwnProperty.call(e,t)}function b(e){return w(e,a)}function T(e){return w(e,"function")}function A(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!D(e))try{D(e[I])?D(e[S])||(e[S]("on"+t,n),r=!0):(e[I](t,n,i),r=!0)}catch(o){}return r}function M(e,t,n,i){if(void 0===i&&(i=!1),!D(e))try{D(e[C])?D(e[N])||e[N]("on"+t,n):e[C](t,n,i)}catch(r){}}var k=(U.isDate=function(e){return"[object Date]"===Object[s].toString.call(e)},U.isString=function(e){return w(e,"string")},U.isNumber=function(e){return w(e,"number")},U.isBoolean=function(e){return w(e,"boolean")},U.disableCookies=function(){U._canUseCookies=!1},U.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(R,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},U.toISOString=function(e){if(U.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},U.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},U.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},U.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},U.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},U.objCreate=function(e){if(null==e)return{};if(!b(e)&&!T(e))throw new TypeError("Object prototype may only be an Object: "+e);function t(){}return t[s]=e,new t},U.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(T(e)||b(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)E(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)E(e,r[a])&&n.push(r[a]);return n},U.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},U.addEventHandler=function(e,t){var n=!1,i=g();i&&(n=A(i,e,t),n=A(i.body,e,t)||n);var r=d();return r&&(n=z.Attach(r,e,t)||n),n},U.isTypeof=w,U.isUndefined=_,U.isNullOrUndefined=D,U.hasOwnProperty=E,U.isFunction=T,U.isObject=b,U);function U(){}var L,O,R=/[xy]/g,z=(P.Attach=A,P.AttachEvent=A,P.Detach=M,P.DetachEvent=M,P);function P(){}(O=L=L||{})[O.CRITICAL=1]="CRITICAL",O[O.WARNING=2]="WARNING";var j=0,q=1,G=2,W=3,B=4,F=5,V=6,H=9,X=23,K=27,Q=49,J=52,Y=56,$=57,Z=60,ee=61,te=66,ne=68,ie=69,re=72,oe=73,ae=(se.sanitizeDiagnosticText=function(e){return e?'"'+e.replace(/\"/g,"")+'"':""},se.dataType="MessageData",se.AiNonUserActionablePrefix="AI (Internal): ",se.AiUserActionablePrefix="AI: ",se);function se(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?se.AiUserActionablePrefix:se.AiNonUserActionablePrefix)+e;var r="";y()&&(r=x().stringify(i));var o=(t?" message:"+se.sanitizeDiagnosticText(t):"")+(i?" props:"+se.sanitizeDiagnosticText(r):"");this.message+=o}var ce=(ue.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ae(t,n,r,i),a=this;if(a.enableDebugExceptions())throw o;if(!k.isUndefined(o)&&o&&!k.isUndefined(o.message)){if(r){var s=+o.messageId;!a._messageLogged[s]&&a.consoleLoggingLevel()>=L.WARNING&&(a.warnToConsole(o.message),a._messageLogged[s]=!0)}else a.consoleLoggingLevel()>=L.WARNING&&a.warnToConsole(o.message);a.logInternalMessage(e,o)}},ue.prototype.warnToConsole=function(e){!k.isUndefined(console)&&console&&(k.isFunction(console.warn)?console.warn(e):k.isFunction(console.log)&&console.log(e))},ue.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ue.prototype.logInternalMessage=function(e,t){var n=this;if(!n._areInternalMessagesThrottled()){var i=!0,r=n.AIInternalMessagePrefix+t.messageId;if(n._messageLogged[r]?i=!1:n._messageLogged[r]=!0,i&&(e<=n.telemetryLoggingLevel()&&(n.queue.push(t),n._messageCount++),n._messageCount===n.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new ae(X,o,!1);n.queue.push(a),n.warnToConsole(o)}}},ue.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ue);function ue(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},k.isNullOrUndefined(e)||(k.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),k.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),k.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),k.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var le=k.isFunction,fe=function kn(r,o){var a=this,s=null,c=le(r.processTelemetry),u=le(r.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return r},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processTelemetry=function(e,t){if(t=t||o,r&&c){a._hasRun=!0;try{t.setNext(s),u&&r.setNextPlugin(s),s&&(s._hasRun=!1),r.processTelemetry(e,t)}catch(i){var n=s&&s._hasRun;s&&n||t.diagLog().throwInternal(L.CRITICAL,oe,"Plugin ["+r.identifier+"] failed during processTelemetry - "+i),s&&!n&&s.processTelemetry(e,t)}}else s&&(a._hasRun=!0,s.processTelemetry(e,t))}},pe=k.isNullOrUndefined;function he(e,t){var n=[];if(e&&0<e.length)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&k.isFunction(o.processTelemetry)){var a=new fe(o,t);n.push(a),i&&i.setNext(a),i=a}}return 0<n.length?n[0]:null}var ge=function Un(e,o,n,t){var a=this,i=null;null!==t&&(e&&k.isFunction(e.getPlugin)?i=function s(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();!r&&o!==n||(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),he(i,t)}(e,a,t||e.getPlugin()):t?i=function c(e,t,n){var i=e,r=!1;return n&&e&&(i=[],k.arrForEach(e,function(e){!r&&e!==n||(r=!0,i.push(e))})),n&&!r&&(i=i||[]).push(n),he(i,t)}(e,a,t):k.isUndefined(t)&&(i=he(e,a))),a.core=function(){return n},a.diagLog=function(){var e=(n||{}).logger;return e=e||new ce(o||{})},a.getCfg=function(){return o},a.getExtCfg=function(e,t){var n;if(void 0===t&&(t={}),o){var i=o.extensionConfig;i&&e&&(n=i[e])}return n||t},a.getConfig=function(e,t,n){var i;void 0===n&&(n=!1);var r=a.getExtCfg(e,null);return r&&!pe(r[t])?i=r[t]:o&&!pe(o[t])&&(i=o[t]),pe(i)?n:i},a.hasNext=function(){return null!=i},a.getNext=function(){return i},a.setNext=function(e){i=e},a.processNext=function(e){var t=i;t&&(i=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(e,t){return void 0===e&&(e=null),new Un(e||i,o,n,t)}},de=k.isFunction,me="getPlugin",ve=(ye.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},ye);function ye(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&de(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;if(!t){var n=s||new ge(null,{},o.core);t=c&&c[me]?n.createNew(null,c[me]):n.createNew(null,c)}return t},o._baseTelInit=function(e,t,n,i){e&&(e.extensionConfig=e.extensionConfig||[]),!i&&t&&(i=t.getProcessTelContext().getNext());var r=c;c&&c[me]&&(r=c[me]()),o.core=t,s=new ge(i,e,t,r),a=!0}}var xe=k.isFunction,Se="processTelemetry",Ie="priority",Ne="setNextPlugin",Ce="isInitialized";function we(t,n){for(var e=[],i=null,r=t.getNext();r;){var o=r.getPlugin();o&&(i&&xe(i[Ne])&&xe(o[Se])&&i[Ne](o),xe(o[Ce])&&o[Ce]()||e.push(o),i=o,r=r.getNext())}k.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function _e(e){return e.sort(function(e,t){var n=0,i=xe(t[Se]);return xe(e[Se])?n=i?e[Ie]-t[Ie]:1:i&&(n=-1),n})}var De=500,Ee="Channel has invalid priority",be=k.arrForEach,Te=k.objDefineAccessors;function Ae(e,t){t&&0<t.length&&(function n(e){be(e,function(e){if(e.priority<De)throw Error(Ee+e.identifier)})}(t=t.sort(function(e,t){return e.priority-t.priority})),e.push(t))}var Me,ke=(t(Ue,Me=ve),Ue.prototype.processTelemetry=function(t,n){var i=this;this._channelQueue&&be(this._channelQueue,function(e){0<e.length&&i._getTelCtx(n).createNew(e).processNext(t)})},Ue.prototype.getChannelControls=function(){return this._channelQueue},Ue.prototype.initialize=function(t,n,i){if(!this.isInitialized()){Me.prototype.initialize.call(this,t,n,i),t.isCookieUseDisabled&&k.disableCookies();var e=this._channelQueue=function r(e,t){var n=[];if(e&&be(e,function(e){return Ae(n,e)}),t){var i=[];be(t,function(e){e.priority>De&&i.push(e)}),Ae(n,i)}return n}((t||{}).channels,i);be(e,function(e){return we(new ge(e,t,n),i)})}},Ue._staticInit=(Te(Ue.prototype,"ChannelControls",Ue.prototype.getChannelControls),void Te(Ue.prototype,"channelQueue",Ue.prototype.getChannelControls)),Ue);function Ue(){var e=null!==Me&&Me.apply(this,arguments)||this;return e.identifier="ChannelControllerPlugin",e.priority=De,e}var Le=k.arrForEach,Oe=k.isNullOrUndefined,Re=(ze.prototype.initialize=function(e,t,i,n){var r=this;if(r.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Oe(e.instrumentationKey))throw Error("Please provide instrumentation key");r.config=e;var o=r._channelController;n=n||k.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}}),r._notificationManager=n,e.extensions=Oe(e.extensions)?[]:e.extensions,(e.extensionConfig=Oe(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,i=i||k.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),r.logger=i;var a=[];a.push.apply(a,t.concat(e.extensions)),a=_e(a);var s=[],c={};if(Le(a,function(e){if(Oe(e)||Oe(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Oe(c[t])?c[t]=n:i.warnToConsole("Two extensions have same priority #"+t+" - "+c[t]+", "+n)),(!t||t<o.priority)&&s.push(e)}),a.push(o),s.push(o),a=_e(a),r._extensions=a,we(new ge([o],e,r),a),we(new ge(s,e,r),a),r._extensions=s,0===r.getTransmissionControls().length)throw new Error("No channels available");r._setInit(!0)},ze.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},ze.prototype.track=function(e){var t=this;e.iKey||(e.iKey=t.config.instrumentationKey),e.time||(e.time=k.toISOString(new Date)),Oe(e.ver)&&(e.ver="4.0"),t.isInitialized()?(0<t._eventQueue.length&&(Le(t._eventQueue,function(e){t.getProcessTelContext().processNext(e)}),t._eventQueue=[]),t.getProcessTelContext().processNext(e)):t._eventQueue.push(e)},ze.prototype.getProcessTelContext=function(){var e=this._extensions,t=e;return e&&0!==e.length||(t=[this._channelController]),new ge(t,this.config,this)},ze);function ze(){var t=!1,e=this;e._extensions=new Array,e._channelController=new ke,e.isInitialized=function(){return t},e._setInit=function(e){t=e},e._eventQueue=[]}var Pe=(je.prototype.addNotificationListener=function(e){this.listeners.push(e)},je.prototype.removeNotificationListener=function(e){for(var t=k.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=k.arrIndexOf(this.listeners,e)},je.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},je.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},je);function je(){this.listeners=[]}var qe,Ge,We,Be,Fe,Ve,He;t(Xe,qe=Re),Xe.prototype.initialize=function(e,t){var n=this;n._notificationManager=new Pe,n.logger=new ce(e),n.config=e,qe.prototype.initialize.call(this,e,t,n.logger,n._notificationManager)},Xe.prototype.getTransmissionControls=function(){return qe.prototype.getTransmissionControls.call(this)},Xe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),qe.prototype.track.call(this,e)},Xe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},Xe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},Xe.prototype.pollInternalLogs=function(i){var t=this,e=this.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var n=t,e=n.logger?n.logger.queue:[];k.arrForEach(e,function(e){var t={name:i||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:k.toISOString(new Date),baseType:ae.dataType,baseData:{message:e.message}};n.track(t)}),e.length=0},e)},Xe.prototype._validateTelemetryItem=function(e){if(k.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},Xe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],n)};function Xe(){return qe.call(this)||this}(We=Ge=Ge||{})[We.LocalStorage=0]="LocalStorage",We[We.SessionStorage=1]="SessionStorage",(Fe=Be=Be||{})[Fe.Default=0]="Default",Fe[Fe.Required=1]="Required",Fe[Fe.Array=2]="Array",Fe[Fe.Hidden=4]="Hidden",(He=Ve=Ve||{})[He.AI=0]="AI",He[He.AI_AND_W3C=1]="AI_AND_W3C",He[He.W3C=2]="W3C";var Ke=(Qe.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=Qe.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,Qe.MAX_NAME_LENGTH-3)+Qe.padNumber(o);r=a}return r},Qe.sanitizeKey=function(e,t){var n;return t&&(t=Qe.trim(t.toString())).length>Qe.MAX_NAME_LENGTH&&(n=t.substring(0,Qe.MAX_NAME_LENGTH),e.throwInternal(L.WARNING,$,"name is too long. It has been truncated to "+Qe.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},Qe.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=Qe.MAX_STRING_LENGTH),t&&(n=n||Qe.MAX_STRING_LENGTH,(t=Qe.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(L.WARNING,ee,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},Qe.sanitizeUrl=function(e,t){return Qe.sanitizeInput(e,t,Qe.MAX_URL_LENGTH,te)},Qe.sanitizeMessage=function(e,t){var n;return t&&t.length>Qe.MAX_MESSAGE_LENGTH&&(n=t.substring(0,Qe.MAX_MESSAGE_LENGTH),e.throwInternal(L.WARNING,Y,"message is too long, it has been truncated to "+Qe.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},Qe.sanitizeException=function(e,t){var n;return t&&t.length>Qe.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,Qe.MAX_EXCEPTION_LENGTH),e.throwInternal(L.WARNING,J,"exception is too long, it has been truncated to "+Qe.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},Qe.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if(k.isObject(r)&&y())try{r=x().stringify(r)}catch(o){e.throwInternal(L.WARNING,Q,"custom property is not valid",{exception:o},!0)}r=Qe.sanitizeString(e,r,Qe.MAX_PROPERTY_LENGTH),n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeId=function(e,t){return t?Qe.sanitizeInput(e,t,Qe.MAX_ID_LENGTH,ie).toString():t},Qe.sanitizeInput=function(e,t,n,i){var r;return t&&(t=Qe.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(L.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},Qe.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},Qe.trim=function(e){return k.isString(e)?e.replace(/^\s+|\s+$/g,""):e},Qe.MAX_NAME_LENGTH=150,Qe.MAX_ID_LENGTH=128,Qe.MAX_PROPERTY_LENGTH=8192,Qe.MAX_STRING_LENGTH=1024,Qe.MAX_URL_LENGTH=2048,Qe.MAX_MESSAGE_LENGTH=32768,Qe.MAX_EXCEPTION_LENGTH=32768,Qe);function Qe(){}var Je=m(),Ye=k.isString,$e=null;var Ze=(et.createDomEvent=function(e){var t=null;if(k.isFunction(Event))t=new Event(e);else{var n=d();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},et.disableStorage=function(){et._canUseLocalStorage=!1,et._canUseSessionStorage=!1},et._getLocalStorageObject=function(){return et.canUseLocalStorage()?et._getVerifiedStorageObject(Ge.LocalStorage):null},et._getVerifiedStorageObject=function(e){var t,n,i=null;try{if(k.isNullOrUndefined(f()))return null;n=new Date,(i=e===Ge.LocalStorage?p("localStorage"):p("sessionStorage")).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},et.isInternalApplicationInsightsEndpoint=function(e){return-1!==et._internalEndpoints.indexOf(e.toLowerCase())},et.canUseLocalStorage=function(){return et._canUseLocalStorage===undefined&&(et._canUseLocalStorage=!!et._getVerifiedStorageObject(Ge.LocalStorage)),et._canUseLocalStorage},et.getStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,q,"Browser failed read of local storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setStorage=function(e,t,n){var i=et._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,W,"Browser failed write to local storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,F,"Browser failed removal of local storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et._getSessionStorageObject=function(){return et.canUseSessionStorage()?et._getVerifiedStorageObject(Ge.SessionStorage):null},et.canUseSessionStorage=function(){return et._canUseSessionStorage===undefined&&(et._canUseSessionStorage=!!et._getVerifiedStorageObject(Ge.SessionStorage)),et._canUseSessionStorage},et.getSessionStorageKeys=function(){var e=[];if(et.canUseSessionStorage())for(var t in p("sessionStorage"))e.push(t);return e},et.getSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,G,"Browser failed read of session storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setSessionStorage=function(e,t,n){var i=et._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,B,"Browser failed write to session storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,V,"Browser failed removal of session storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et.disableCookies=function(){k.disableCookies()},et.canUseCookies=function(e){if(k._canUseCookies===undefined){k._canUseCookies=!1;try{k._canUseCookies=et.document.cookie!==undefined}catch(t){e.throwInternal(L.WARNING,ne,"Cannot access document.cookie - "+et.getExceptionName(t),{exception:et.dump(t)})}}return k._canUseCookies},et.disallowsSameSiteNone=function(e){return!!Ye(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function r(e,t){var n=e.length,i=n-t.length;return e.substring(0<=i?i:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))},et.setCookie=function(e,t,n,i){if(et.canUseCookies(e)){var r="",o="";i&&(r=";domain="+i);var a=v();a&&"https:"===a.protocol&&(o=";secure",null===$e&&($e=et.disallowsSameSiteNone((m()||{}).userAgent)),$e||(n+=";SameSite=None")),et.document.cookie=t+"="+n+r+";path=/"+o}},et.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},et.getCookie=function(e,t){if(et.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=et.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=et.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},et.deleteCookie=function(e,t){et.canUseCookies(e)&&(et.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},et.trim=function(e){return Ye(e)?e.replace(/^\s+|\s+$/g,""):e},et.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},et.random32=function(){return 4294967296*Math.random()|0},et.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=et.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},et.isArray=function(e){return"[object Array]"===Object[s].toString.call(e)},et.isError=function(e){return"[object Error]"===Object[s].toString.call(e)},et.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():Je?(Je.userAgent||"").toLowerCase():"";return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},et.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},et.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},et.dump=function(e){var t=Object[s].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":y()&&(n=x().stringify(e)),t+n},et.getExceptionName=function(e){return"[object Error]"===Object[s].toString.call(e)?e.name:""},et.addEventHandler=function(e,t){return z.Attach(g(),e,t)},et.IsBeaconApiSupported=function(){return"sendBeacon"in Je&&Je.sendBeacon},et.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},et.document=d()||{},et._canUseLocalStorage=undefined,et._canUseSessionStorage=undefined,et._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],et.NotSpecified="not_specified",et.isDate=k.isDate,et.toISOStringForIE8=k.toISOString,et);function et(){}var tt=(nt.parseUrl=function(e){return nt.htmlAnchorElement||(nt.htmlAnchorElement=nt.document.createElement?nt.document.createElement("a"):{host:nt.parseHost(e)}),nt.htmlAnchorElement.href=e,nt.htmlAnchorElement},nt.getAbsoluteUrl=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.href),t},nt.getPathName=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.pathname),t},nt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},nt.parseHost=function(e){if(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&2<t.length&&Ye(t[2])&&0<t[2].length)return t[2]}return null},nt.document=d()||{},nt);function nt(){}var it=(rt.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=tt.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Ke.sanitizeString(e,n?n+" "+c:c)}else o=Ke.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},rt);function rt(){}var ot=(at.Now=function(){var e=function t(){return p("performance")}();return e&&e.now&&e.timing?e.now()+e.timing.navigationStart:(new Date).getTime()},at.GetDuration=function(e,t){var n=null;return 0===e||0===t||k.isNullOrUndefined(e)||k.isNullOrUndefined(t)||(n=t-e),n},at);function at(){}var st,ct=(t(ut,st=function Ln(){}),ut);function ut(){return st.call(this)||this}var lt;t(ft,lt=function On(){this.ver=1,this.sampleRate=100,this.tags={}});function ft(e,t,n){var i=lt.call(this)||this;return i.name=Ke.sanitizeString(e,n)||Ze.NotSpecified,i.data=t,i.time=k.toISOString(new Date),i.aiDataContract={time:Be.Required,iKey:Be.Required,name:Be.Required,sampleRate:function(){return 100===i.sampleRate?Be.Hidden:Be.Required},tags:Be.Required,data:Be.Required},i}var pt,ht=function Rn(){},gt=(t(dt,pt=ht),dt);function dt(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt;t(vt,mt=gt),vt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",vt.dataType="EventData";function vt(e,t,n,i){var r=mt.call(this)||this;return r.aiDataContract={ver:Be.Required,name:Be.Required,properties:Be.Default,measurements:Be.Default},r.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,r.properties=Ke.sanitizeProperties(e,n),r.measurements=Ke.sanitizeMeasurements(e,i),r}var yt,xt=function zn(){},St=(t(It,yt=ht),It);function It(){var e=yt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Nt,Ct=function Pn(){this.hasFullStack=!0,this.parsedStack=[]};t(wt,Nt=St),wt.CreateFromInterface=function(t,e){var n=e.exceptions&&k.arrMap(e.exceptions,function(e){return Dt.CreateFromInterface(t,e)});return new wt(t,r({},e,{exceptions:n}))},wt.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&k.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},wt.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},wt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",wt.dataType="ExceptionData";function wt(e,t,n,i,r,o){var a=Nt.call(this)||this;return a.aiDataContract={ver:Be.Required,exceptions:Be.Required,severityLevel:Be.Default,properties:Be.Default,measurements:Be.Default},t instanceof Error?(a.exceptions=[new Dt(e,t)],a.properties=Ke.sanitizeProperties(e,n),a.measurements=Ke.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,k.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var _t,Dt=(t(Et,_t=Ct),Et.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&k.arrMap(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.stack,parsedStack:e||undefined}},Et.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&k.arrMap(t.parsedStack,function(e){return Tt.CreateFromInterface(e)})||t.parsedStack;return new Et(e,r({},t,{parsedStack:n}))},Et.parseStack=function(e){var t;if(k.isString(e)){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Tt.regex.test(a)){var s=new Tt(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,u=t.length-1,l=0,f=c,p=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var h=p-f+1;t.splice(f,h);break}f=c,p=u,c++,u--}}return t},Et);function Et(e,t){var n=_t.call(this)||this;if(n.aiDataContract={id:Be.Default,outerId:Be.Default,typeName:Be.Required,message:Be.Required,hasFullStack:Be.Default,stack:Be.Default,parsedStack:Be.Array},t instanceof Error){n.typeName=Ke.sanitizeString(e,t.name)||Ze.NotSpecified,n.message=Ke.sanitizeMessage(e,t.message)||Ze.NotSpecified;var i=t.stack;n.parsedStack=Et.parseStack(i),n.stack=Ke.sanitizeException(e,i),n.hasFullStack=Ze.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var bt,Tt=(t(At,bt=xt),At.CreateFromInterface=function(e){return new At(e,null)},At.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},At.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,At.baseSize=58,At);function At(e,t){var n=bt.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:Be.Required,method:Be.Required,assembly:Be.Default,fileName:Be.Default,line:Be.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=Ze.trim(i),n.fileName="",n.line=0;var r=i.match(At.regex);r&&5<=r.length&&(n.method=Ze.trim(r[2])||n.method,n.fileName=Ze.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=At.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Mt,kt,Ut,Lt=(t(Ot,Mt=ht),Ot);function Ot(){var e=Mt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Ut=kt=kt||{})[Ut.Measurement=0]="Measurement",Ut[Ut.Aggregation=1]="Aggregation";var Rt,zt=(t(Pt,Rt=function jn(){this.kind=kt.Measurement}),Pt);function Pt(){var e=null!==Rt&&Rt.apply(this,arguments)||this;return e.aiDataContract={name:Be.Required,kind:Be.Default,value:Be.Required,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default},e}var jt;t(qt,jt=Lt),qt.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",qt.dataType="MetricData";function qt(e,t,n,i,r,o,a,s){var c=jt.call(this)||this;c.aiDataContract={ver:Be.Required,metrics:Be.Required,properties:Be.Default};var u=new zt;return u.count=0<i?i:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(r)||null===r?undefined:r,u.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,u.value=n,c.metrics=[u],c.properties=Ke.sanitizeProperties(e,a),c.measurements=Ke.sanitizeMeasurements(e,s),c}var Gt,Wt=(t(Bt,Gt=gt),Bt);function Bt(){var e=Gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ft,Vt=(t(Ht,Ft=Wt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ht.dataType="PageviewData",Ht);function Ht(e,t,n,i,r,o,a){var s=Ft.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,properties:Be.Default,measurements:Be.Default,id:Be.Default},s.id=Ke.sanitizeId(e,a),s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,isNaN(i)||(s.duration=Ze.msToTimeSpan(i)),s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(e,o),s}var Xt,Kt=(t(Qt,Xt=ht),Qt);function Qt(){var e=Xt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Jt;t(Yt,Jt=Kt),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Yt.dataType="RemoteDependencyData";function Yt(e,t,n,i,r,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var p=Jt.call(this)||this;p.aiDataContract={id:Be.Required,ver:Be.Required,name:Be.Default,resultCode:Be.Default,duration:Be.Default,success:Be.Default,data:Be.Default,target:Be.Default,type:Be.Default,properties:Be.Default,measurements:Be.Default,kind:Be.Default,value:Be.Default,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default,dependencyKind:Be.Default,dependencySource:Be.Default,commandName:Be.Default,dependencyTypeName:Be.Default},p.id=t,p.duration=Ze.msToTimeSpan(r),p.success=o,p.resultCode=a+"",p.type=Ke.sanitizeString(e,c);var h=it.ParseDependencyPath(e,n,s,i);return p.data=Ke.sanitizeUrl(e,i)||h.data,p.target=Ke.sanitizeString(e,h.target),u&&(p.target=p.target+" | "+u),p.name=Ke.sanitizeString(e,h.name),p.properties=Ke.sanitizeProperties(e,l),p.measurements=Ke.sanitizeMeasurements(e,f),p}var $t,Zt=(t(en,$t=ht),en);function en(){var e=$t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tn;t(nn,tn=Zt),nn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",nn.dataType="MessageData";function nn(e,t,n,i,r){var o=tn.call(this)||this;return o.aiDataContract={ver:Be.Required,message:Be.Required,severityLevel:Be.Default,properties:Be.Default},t=t||Ze.NotSpecified,o.message=Ke.sanitizeMessage(e,t),o.properties=Ke.sanitizeProperties(e,i),o.measurements=Ke.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var rn,on=(t(an,rn=Wt),an);function an(){var e=rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var sn;t(cn,sn=on),cn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",cn.dataType="PageviewPerformanceData";function cn(e,t,n,i,r,o,a){var s=sn.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,perfTotal:Be.Default,networkConnect:Be.Default,sentRequest:Be.Default,receivedResponse:Be.Default,domProcessing:Be.Default,properties:Be.Default,measurements:Be.Default},s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(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}var un,ln,fn;t(pn,un=ct);function pn(e,t){var n=un.call(this)||this;return n.aiDataContract={baseType:Be.Required,baseData:Be.Required},n.baseType=e,n.baseData=t,n}(fn=ln=ln||{})[fn.Verbose=0]="Verbose",fn[fn.Information=1]="Information",fn[fn.Warning=2]="Warning",fn[fn.Error=3]="Error",fn[fn.Critical=4]="Critical";var hn=function qn(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},gn=(dn.UserExt="user",dn.DeviceExt="device",dn.TraceExt="trace",dn.WebExt="web",dn.AppExt="app",dn.OSExt="os",dn.SessionExt="ses",dn.SDKExt="sdk",dn);function dn(){}var mn=new hn,vn=function Gn(){},yn=(xn.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=ot.Now(),t=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),n=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||n?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>xn.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},xn.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},xn.prototype.initializeAutomaticSession=function(){var e=Ze.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=Ze.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},xn.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var i=+t[2];this.automaticSession.renewalDate=+new Date(i),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(r){this._logger.throwInternal(L.CRITICAL,H,"Error parsing ai_session cookie, session will be reset: "+Ze.getExceptionName(r),{exception:Ze.dump(r)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(L.WARNING,K,"AI session renewal date is 0, session will be reset.")},xn.prototype.renew=function(){var e=ot.Now();this.automaticSession.id=Ze.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Ze.canUseLocalStorage()||this._logger.throwInternal(L.WARNING,j,"Browser does not support local storage. Session durations will be inaccurate.")},xn.prototype.setCookie=function(e,t,n){var i=t+this.config.sessionExpirationMs(),r=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];i<r?o.setTime(i):o.setTime(r);var s=this.config.cookieDomain?this.config.cookieDomain():null,c=0===this.config.sessionExpirationMs()?"0":o.toUTCString();Ze.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+c,s),this.cookieUpdatedTimestamp=ot.Now()},xn.prototype.setStorage=function(e,t,n){Ze.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))},xn.acquisitionSpan=864e5,xn.renewalSpan=18e5,xn.cookieUpdateInterval=6e4,xn.cookieNameConst="ai_session",xn);function xn(e,t){var n=this;k.isNullOrUndefined(t)?this._logger=new ce:this._logger=t,"function"!=typeof(e=e||{}).sessionExpirationMs&&(e.sessionExpirationMs=function(){return xn.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return xn.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return n.config.namePrefix&&n.config.namePrefix()?xn.cookieNameConst+n.config.namePrefix():xn.cookieNameConst},this.automaticSession=new vn}var Sn=function Wn(){},In=function Bn(){this.id="browser",this.deviceClass="Browser"},Nn=function Fn(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.5.4"},Cn=(wn.prototype.setAuthenticatedUserContext=function(e,t,n){if(void 0===n&&(n=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(L.WARNING,Z,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var i=this.authenticatedId;t&&(this.accountId=t,i=[this.authenticatedId,this.accountId].join(wn.cookieSeparator)),n&&Ze.setCookie(this._logger,wn.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},wn.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Ze.deleteCookie(this._logger,wn.authUserCookieName)},wn.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},wn.cookieSeparator="|",wn.userCookieName="ai_user",wn.authUserCookieName="ai_authUser",wn);function wn(e,t){this.isNewUser=!1,this._logger=t;var n=Ze.getCookie(this._logger,wn.userCookieName);if(n){this.isNewUser=!1;var i=n.split(wn.cookieSeparator);0<i.length&&(this.id=i[0])}if(this.config=e,!this.id){this.id=Ze.newId();var r=new Date,o=k.toISOString(r);this.accountAcquisitionDate=o,this.isNewUser=!0,r.setTime(r.getTime()+31536e6);var a=[this.id,o],s=this.config.cookieDomain?this.config.cookieDomain():undefined;Ze.setCookie(this._logger,wn.userCookieName,a.join(wn.cookieSeparator)+";expires="+r.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";Ze.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():undefined;var u=Ze.getCookie(this._logger,wn.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(wn.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var _n=function Vn(){},Dn=function Hn(e,t,n,i){this.traceID=e||Ze.generateW3CId(),this.parentID=t,this.name=n;var r=v();!n&&r&&r.pathname&&(this.name=r.pathname),this.name=Ke.sanitizeString(i,this.name)},En=(bn.prototype.applySessionContext=function(e,t){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(e.ext.app.sesId=n.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},bn.prototype.applyOperatingSystemContxt=function(e,t){this.os&&this.os.name&&(e.ext.os=this.os)},bn.prototype.applyApplicationContext=function(e,t){this.application&&("string"==typeof this.application.ver&&(e.tags[mn.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[mn.applicationBuild]=this.application.build))},bn.prototype.applyDeviceContext=function(e,t){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},bn.prototype.applyInternalContext=function(e,t){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[mn.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[mn.internalSdkVersion]=this.internal.sdkVersion))},bn.prototype.applyLocationContext=function(e,t){this.location&&"string"==typeof this.location.ip&&(e.tags[mn.locationIp]=this.location.ip)},bn.prototype.applyOperationContext=function(e,t){if(this.telemetryTrace){var n=e.ext.trace||{traceID:undefined,parentID:undefined};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),e.ext.trace=n}},bn.prototype.applyWebContext=function(e,t){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},bn.prototype.applyUserContext=function(e,t){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[mn.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},bn.prototype.cleanUp=function(e,t){e.ext[gn.DeviceExt]&&0===k.objKeys(e.ext[gn.DeviceExt]).length&&delete e.ext[gn.DeviceExt],e.ext[gn.UserExt]&&0===k.objKeys(e.ext[gn.UserExt]).length&&delete e.ext[gn.UserExt],e.ext[gn.WebExt]&&0===k.objKeys(e.ext[gn.WebExt]).length&&delete e.ext[gn.WebExt],e.ext[gn.OSExt]&&0===k.objKeys(e.ext[gn.OSExt]).length&&delete e.ext[gn.OSExt],e.ext[gn.AppExt]&&0===k.objKeys(e.ext[gn.AppExt]).length&&delete e.ext[gn.AppExt],e.ext[gn.TraceExt]&&0===k.objKeys(e.ext[gn.TraceExt]).length&&delete e.ext[gn.TraceExt]},bn);function bn(e,t){h()&&(this.sessionManager=new yn(t,e),this.application=new Sn,this.device=new In,this.internal=new Nn(t),this.location=new _n,this.user=new Cn(t,e),this.telemetryTrace=new Dn(undefined,undefined,undefined,e),this.session=new vn),this.appId=function(){return null}}var Tn,An=(t(Mn,Tn=ve),Mn.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){return undefined}}},Mn.prototype.initialize=function(e,t,n,i){var r=this;Tn.prototype.initialize.call(this,e,t,n,i);var o=this._getTelCtx(),a=this.identifier,s=Mn.getDefaultConfig();this._extensionConfig=this._extensionConfig||Mn.getDefaultConfig();var c=function(e){u._extensionConfig[e]=function(){return o.getConfig(a,e,s[e]())}},u=this;for(var l in s)c(l);this.context=new En(t.logger,this._extensionConfig),this._breezeChannel=Ze.getExtension(n,"AppInsightsChannelPlugin"),this.context.appId=function(){return r._breezeChannel?r._breezeChannel._appId:null}},Mn.prototype.processTelemetry=function(e,t){if(!k.isNullOrUndefined(e)){if(t=this._getTelCtx(t),e.name===Vt.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new ae(re,(m()||{}).userAgent||"");t.diagLog().logInternalMessage(L.CRITICAL,n)}this.processNext(e,t)}},Mn.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[gn.DeviceExt]=n[gn.DeviceExt]||{},n[gn.WebExt]=n[gn.WebExt]||{},n[gn.UserExt]=n[gn.UserExt]||{},n[gn.OSExt]=n[gn.OSExt]||{},n[gn.AppExt]=n[gn.AppExt]||{},n[gn.TraceExt]=n[gn.TraceExt]||{};var i=this.context;i.applySessionContext(e,t),i.applyApplicationContext(e,t),i.applyDeviceContext(e,t),i.applyOperationContext(e,t),i.applyUserContext(e,t),i.applyOperatingSystemContxt(e,t),i.applyWebContext(e,t),i.applyLocationContext(e,t),i.applyInternalContext(e,t),i.cleanUp(e,t)},Mn);function Mn(){var e=null!==Tn&&Tn.apply(this,arguments)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",e}e.PropertiesPlugin=An,e.TelemetryTrace=Dn,e.TelemetryContext=En,e.Session=vn,e.SessionManager=yn,function(e,t,n){var i=Object.defineProperty;if(i)try{return i(e,t,n)}catch(r){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
var Version = "2.5.3";
var Version = "2.5.4";
var Internal = /** @class */ (function () {

@@ -5,0 +5,0 @@ /**

/*!
* Application Insights JavaScript SDK - Properties Plugin, 2.5.3
* Application Insights JavaScript SDK - Properties Plugin, 2.5.4
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!=n&&"function"!=n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n=2,o="undefined",a="object",s="prototype",c="window",u="location",l="JSON";function f(){return typeof globalThis!==o&&globalThis?globalThis:typeof self!==o&&self?self:typeof window!==o&&window?window:typeof global!==o&&global?global:null}function p(e){var t=f();return t&&t[e]?t[e]:e===c&&h()?window:null}function h(){return Boolean(typeof window===a&&window)}function g(){return h()?window:p(c)}function d(){return function e(){return Boolean(typeof document===a&&document)}()?document:p("document")}function m(){return function e(){return Boolean(typeof navigator===a&&navigator)}()?navigator:p("navigator")}function v(){return typeof location===a&&location?location:p(u)}function y(){return Boolean(typeof JSON===a&&JSON||null!==p(l))}function x(){return y()?JSON||p(l):null}var S="attachEvent",I="addEventListener",N="detachEvent",C="removeEventListener";function w(e,t){return typeof e===t}function _(e){return w(e,o)||e===undefined}function D(e){return _(e)||null===e}function E(e,t){return e&&Object[s].hasOwnProperty.call(e,t)}function b(e){return w(e,a)}function T(e){return w(e,"function")}function A(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!D(e))try{D(e[I])?D(e[S])||(e[S]("on"+t,n),r=!0):(e[I](t,n,i),r=!0)}catch(o){}return r}function M(e,t,n,i){if(void 0===i&&(i=!1),!D(e))try{D(e[C])?D(e[N])||e[N]("on"+t,n):e[C](t,n,i)}catch(r){}}var k=(U.isDate=function(e){return"[object Date]"===Object[s].toString.call(e)},U.isString=function(e){return w(e,"string")},U.isNumber=function(e){return w(e,"number")},U.isBoolean=function(e){return w(e,"boolean")},U.disableCookies=function(){U._canUseCookies=!1},U.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(R,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},U.toISOString=function(e){if(U.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},U.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},U.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},U.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},U.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},U.objCreate=function(e){if(null==e)return{};if(!b(e)&&!T(e))throw new TypeError("Object prototype may only be an Object: "+e);function t(){}return t[s]=e,new t},U.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(T(e)||b(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)E(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)E(e,r[a])&&n.push(r[a]);return n},U.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},U.addEventHandler=function(e,t){var n=!1,i=g();i&&(n=A(i,e,t),n=A(i.body,e,t)||n);var r=d();return r&&(n=z.Attach(r,e,t)||n),n},U.isTypeof=w,U.isUndefined=_,U.isNullOrUndefined=D,U.hasOwnProperty=E,U.isFunction=T,U.isObject=b,U);function U(){}var L,O,R=/[xy]/g,z=(P.Attach=A,P.AttachEvent=A,P.Detach=M,P.DetachEvent=M,P);function P(){}(O=L=L||{})[O.CRITICAL=1]="CRITICAL",O[O.WARNING=2]="WARNING";var j=0,q=1,G=2,W=3,B=4,F=5,V=6,H=9,X=23,K=27,Q=49,J=52,Y=56,$=57,Z=60,ee=61,te=66,ne=68,ie=69,re=72,oe=73,ae=(se.sanitizeDiagnosticText=function(e){return e?'"'+e.replace(/\"/g,"")+'"':""},se.dataType="MessageData",se.AiNonUserActionablePrefix="AI (Internal): ",se.AiUserActionablePrefix="AI: ",se);function se(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?se.AiUserActionablePrefix:se.AiNonUserActionablePrefix)+e;var r="";y()&&(r=x().stringify(i));var o=(t?" message:"+se.sanitizeDiagnosticText(t):"")+(i?" props:"+se.sanitizeDiagnosticText(r):"");this.message+=o}var ce=(ue.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ae(t,n,r,i),a=this;if(a.enableDebugExceptions())throw o;if(!k.isUndefined(o)&&o&&!k.isUndefined(o.message)){if(r){var s=+o.messageId;!a._messageLogged[s]&&a.consoleLoggingLevel()>=L.WARNING&&(a.warnToConsole(o.message),a._messageLogged[s]=!0)}else a.consoleLoggingLevel()>=L.WARNING&&a.warnToConsole(o.message);a.logInternalMessage(e,o)}},ue.prototype.warnToConsole=function(e){!k.isUndefined(console)&&console&&(k.isFunction(console.warn)?console.warn(e):k.isFunction(console.log)&&console.log(e))},ue.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ue.prototype.logInternalMessage=function(e,t){var n=this;if(!n._areInternalMessagesThrottled()){var i=!0,r=n.AIInternalMessagePrefix+t.messageId;if(n._messageLogged[r]?i=!1:n._messageLogged[r]=!0,i&&(e<=n.telemetryLoggingLevel()&&(n.queue.push(t),n._messageCount++),n._messageCount===n.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new ae(X,o,!1);n.queue.push(a),n.warnToConsole(o)}}},ue.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ue);function ue(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},k.isNullOrUndefined(e)||(k.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),k.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),k.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),k.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var le=k.isFunction,fe=function kn(r,o){var a=this,s=null,c=le(r.processTelemetry),u=le(r.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return r},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processTelemetry=function(e,t){if(t=t||o,r&&c){a._hasRun=!0;try{t.setNext(s),u&&r.setNextPlugin(s),s&&(s._hasRun=!1),r.processTelemetry(e,t)}catch(i){var n=s&&s._hasRun;s&&n||t.diagLog().throwInternal(L.CRITICAL,oe,"Plugin ["+r.identifier+"] failed during processTelemetry - "+i),s&&!n&&s.processTelemetry(e,t)}}else s&&(a._hasRun=!0,s.processTelemetry(e,t))}},pe=k.isNullOrUndefined;function he(e,t){var n=[];if(e&&0<e.length)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&k.isFunction(o.processTelemetry)){var a=new fe(o,t);n.push(a),i&&i.setNext(a),i=a}}return 0<n.length?n[0]:null}var ge=function Un(e,o,n,t){var a=this,i=null;null!==t&&(e&&k.isFunction(e.getPlugin)?i=function s(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();!r&&o!==n||(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),he(i,t)}(e,a,t||e.getPlugin()):t?i=function c(e,t,n){var i=e,r=!1;return n&&e&&(i=[],k.arrForEach(e,function(e){!r&&e!==n||(r=!0,i.push(e))})),n&&!r&&(i=i||[]).push(n),he(i,t)}(e,a,t):k.isUndefined(t)&&(i=he(e,a))),a.core=function(){return n},a.diagLog=function(){var e=(n||{}).logger;return e=e||new ce(o||{})},a.getCfg=function(){return o},a.getExtCfg=function(e,t){var n;if(void 0===t&&(t={}),o){var i=o.extensionConfig;i&&e&&(n=i[e])}return n||t},a.getConfig=function(e,t,n){var i;void 0===n&&(n=!1);var r=a.getExtCfg(e,null);return r&&!pe(r[t])?i=r[t]:o&&!pe(o[t])&&(i=o[t]),pe(i)?n:i},a.hasNext=function(){return null!=i},a.getNext=function(){return i},a.setNext=function(e){i=e},a.processNext=function(e){var t=i;t&&(i=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(e,t){return void 0===e&&(e=null),new Un(e||i,o,n,t)}},de=k.isFunction,me="getPlugin",ve=(ye.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},ye);function ye(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&de(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;if(!t){var n=s||new ge(null,{},o.core);t=c&&c[me]?n.createNew(null,c[me]):n.createNew(null,c)}return t},o._baseTelInit=function(e,t,n,i){e&&(e.extensionConfig=e.extensionConfig||[]),!i&&t&&(i=t.getProcessTelContext().getNext());var r=c;c&&c[me]&&(r=c[me]()),o.core=t,s=new ge(i,e,t,r),a=!0}}var xe=k.isFunction,Se="processTelemetry",Ie="priority",Ne="setNextPlugin",Ce="isInitialized";function we(t,n){for(var e=[],i=null,r=t.getNext();r;){var o=r.getPlugin();o&&(i&&xe(i[Ne])&&xe(o[Se])&&i[Ne](o),xe(o[Ce])&&o[Ce]()||e.push(o),i=o,r=r.getNext())}k.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function _e(e){return e.sort(function(e,t){var n=0,i=xe(t[Se]);return xe(e[Se])?n=i?e[Ie]-t[Ie]:1:i&&(n=-1),n})}var De=500,Ee="Channel has invalid priority",be=k.arrForEach,Te=k.objDefineAccessors;function Ae(e,t){t&&0<t.length&&(function n(e){be(e,function(e){if(e.priority<De)throw Error(Ee+e.identifier)})}(t=t.sort(function(e,t){return e.priority-t.priority})),e.push(t))}var Me,ke=(t(Ue,Me=ve),Ue.prototype.processTelemetry=function(t,n){var i=this;this._channelQueue&&be(this._channelQueue,function(e){0<e.length&&i._getTelCtx(n).createNew(e).processNext(t)})},Ue.prototype.getChannelControls=function(){return this._channelQueue},Ue.prototype.initialize=function(t,n,i){if(!this.isInitialized()){Me.prototype.initialize.call(this,t,n,i),t.isCookieUseDisabled&&k.disableCookies();var e=this._channelQueue=function r(e,t){var n=[];if(e&&be(e,function(e){return Ae(n,e)}),t){var i=[];be(t,function(e){e.priority>De&&i.push(e)}),Ae(n,i)}return n}((t||{}).channels,i);be(e,function(e){return we(new ge(e,t,n),i)})}},Ue._staticInit=(Te(Ue.prototype,"ChannelControls",Ue.prototype.getChannelControls),void Te(Ue.prototype,"channelQueue",Ue.prototype.getChannelControls)),Ue);function Ue(){var e=null!==Me&&Me.apply(this,arguments)||this;return e.identifier="ChannelControllerPlugin",e.priority=De,e}var Le=k.arrForEach,Oe=k.isNullOrUndefined,Re=(ze.prototype.initialize=function(e,t,i,n){var r=this;if(r.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Oe(e.instrumentationKey))throw Error("Please provide instrumentation key");r.config=e;var o=r._channelController;n=n||k.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}}),r._notificationManager=n,e.extensions=Oe(e.extensions)?[]:e.extensions,(e.extensionConfig=Oe(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,i=i||k.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),r.logger=i;var a=[];a.push.apply(a,t.concat(e.extensions)),a=_e(a);var s=[],c={};if(Le(a,function(e){if(Oe(e)||Oe(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Oe(c[t])?c[t]=n:i.warnToConsole("Two extensions have same priority #"+t+" - "+c[t]+", "+n)),(!t||t<o.priority)&&s.push(e)}),a.push(o),s.push(o),a=_e(a),r._extensions=a,we(new ge([o],e,r),a),we(new ge(s,e,r),a),r._extensions=s,0===r.getTransmissionControls().length)throw new Error("No channels available");r._setInit(!0)},ze.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},ze.prototype.track=function(e){var t=this;e.iKey||(e.iKey=t.config.instrumentationKey),e.time||(e.time=k.toISOString(new Date)),Oe(e.ver)&&(e.ver="4.0"),t.isInitialized()?(0<t._eventQueue.length&&(Le(t._eventQueue,function(e){t.getProcessTelContext().processNext(e)}),t._eventQueue=[]),t.getProcessTelContext().processNext(e)):t._eventQueue.push(e)},ze.prototype.getProcessTelContext=function(){var e=this._extensions,t=e;return e&&0!==e.length||(t=[this._channelController]),new ge(t,this.config,this)},ze);function ze(){var t=!1,e=this;e._extensions=new Array,e._channelController=new ke,e.isInitialized=function(){return t},e._setInit=function(e){t=e},e._eventQueue=[]}var Pe=(je.prototype.addNotificationListener=function(e){this.listeners.push(e)},je.prototype.removeNotificationListener=function(e){for(var t=k.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=k.arrIndexOf(this.listeners,e)},je.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},je.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},je);function je(){this.listeners=[]}var qe,Ge,We,Be,Fe,Ve,He;t(Xe,qe=Re),Xe.prototype.initialize=function(e,t){var n=this;n._notificationManager=new Pe,n.logger=new ce(e),n.config=e,qe.prototype.initialize.call(this,e,t,n.logger,n._notificationManager)},Xe.prototype.getTransmissionControls=function(){return qe.prototype.getTransmissionControls.call(this)},Xe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),qe.prototype.track.call(this,e)},Xe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},Xe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},Xe.prototype.pollInternalLogs=function(i){var t=this,e=this.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var n=t,e=n.logger?n.logger.queue:[];k.arrForEach(e,function(e){var t={name:i||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:k.toISOString(new Date),baseType:ae.dataType,baseData:{message:e.message}};n.track(t)}),e.length=0},e)},Xe.prototype._validateTelemetryItem=function(e){if(k.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},Xe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],n)};function Xe(){return qe.call(this)||this}(We=Ge=Ge||{})[We.LocalStorage=0]="LocalStorage",We[We.SessionStorage=1]="SessionStorage",(Fe=Be=Be||{})[Fe.Default=0]="Default",Fe[Fe.Required=1]="Required",Fe[Fe.Array=2]="Array",Fe[Fe.Hidden=4]="Hidden",(He=Ve=Ve||{})[He.AI=0]="AI",He[He.AI_AND_W3C=1]="AI_AND_W3C",He[He.W3C=2]="W3C";var Ke=(Qe.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=Qe.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,Qe.MAX_NAME_LENGTH-3)+Qe.padNumber(o);r=a}return r},Qe.sanitizeKey=function(e,t){var n;return t&&(t=Qe.trim(t.toString())).length>Qe.MAX_NAME_LENGTH&&(n=t.substring(0,Qe.MAX_NAME_LENGTH),e.throwInternal(L.WARNING,$,"name is too long. It has been truncated to "+Qe.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},Qe.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=Qe.MAX_STRING_LENGTH),t&&(n=n||Qe.MAX_STRING_LENGTH,(t=Qe.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(L.WARNING,ee,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},Qe.sanitizeUrl=function(e,t){return Qe.sanitizeInput(e,t,Qe.MAX_URL_LENGTH,te)},Qe.sanitizeMessage=function(e,t){var n;return t&&t.length>Qe.MAX_MESSAGE_LENGTH&&(n=t.substring(0,Qe.MAX_MESSAGE_LENGTH),e.throwInternal(L.WARNING,Y,"message is too long, it has been truncated to "+Qe.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},Qe.sanitizeException=function(e,t){var n;return t&&t.length>Qe.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,Qe.MAX_EXCEPTION_LENGTH),e.throwInternal(L.WARNING,J,"exception is too long, it has been truncated to "+Qe.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},Qe.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if(k.isObject(r)&&y())try{r=x().stringify(r)}catch(o){e.throwInternal(L.WARNING,Q,"custom property is not valid",{exception:o},!0)}r=Qe.sanitizeString(e,r,Qe.MAX_PROPERTY_LENGTH),n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeId=function(e,t){return t?Qe.sanitizeInput(e,t,Qe.MAX_ID_LENGTH,ie).toString():t},Qe.sanitizeInput=function(e,t,n,i){var r;return t&&(t=Qe.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(L.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},Qe.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},Qe.trim=function(e){return k.isString(e)?e.replace(/^\s+|\s+$/g,""):e},Qe.MAX_NAME_LENGTH=150,Qe.MAX_ID_LENGTH=128,Qe.MAX_PROPERTY_LENGTH=8192,Qe.MAX_STRING_LENGTH=1024,Qe.MAX_URL_LENGTH=2048,Qe.MAX_MESSAGE_LENGTH=32768,Qe.MAX_EXCEPTION_LENGTH=32768,Qe);function Qe(){}var Je=m(),Ye=k.isString,$e=null;var Ze=(et.createDomEvent=function(e){var t=null;if(k.isFunction(Event))t=new Event(e);else{var n=d();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},et.disableStorage=function(){et._canUseLocalStorage=!1,et._canUseSessionStorage=!1},et._getLocalStorageObject=function(){return et.canUseLocalStorage()?et._getVerifiedStorageObject(Ge.LocalStorage):null},et._getVerifiedStorageObject=function(e){var t,n,i=null;try{if(k.isNullOrUndefined(f()))return null;n=new Date,(i=e===Ge.LocalStorage?p("localStorage"):p("sessionStorage")).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},et.isInternalApplicationInsightsEndpoint=function(e){return-1!==et._internalEndpoints.indexOf(e.toLowerCase())},et.canUseLocalStorage=function(){return et._canUseLocalStorage===undefined&&(et._canUseLocalStorage=!!et._getVerifiedStorageObject(Ge.LocalStorage)),et._canUseLocalStorage},et.getStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,q,"Browser failed read of local storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setStorage=function(e,t,n){var i=et._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,W,"Browser failed write to local storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,F,"Browser failed removal of local storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et._getSessionStorageObject=function(){return et.canUseSessionStorage()?et._getVerifiedStorageObject(Ge.SessionStorage):null},et.canUseSessionStorage=function(){return et._canUseSessionStorage===undefined&&(et._canUseSessionStorage=!!et._getVerifiedStorageObject(Ge.SessionStorage)),et._canUseSessionStorage},et.getSessionStorageKeys=function(){var e=[];if(et.canUseSessionStorage())for(var t in p("sessionStorage"))e.push(t);return e},et.getSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,G,"Browser failed read of session storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setSessionStorage=function(e,t,n){var i=et._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,B,"Browser failed write to session storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,V,"Browser failed removal of session storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et.disableCookies=function(){k.disableCookies()},et.canUseCookies=function(e){if(k._canUseCookies===undefined){k._canUseCookies=!1;try{k._canUseCookies=et.document.cookie!==undefined}catch(t){e.throwInternal(L.WARNING,ne,"Cannot access document.cookie - "+et.getExceptionName(t),{exception:et.dump(t)})}}return k._canUseCookies},et.disallowsSameSiteNone=function(e){return!!Ye(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function r(e,t){var n=e.length,i=n-t.length;return e.substring(0<=i?i:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))},et.setCookie=function(e,t,n,i){if(et.canUseCookies(e)){var r="",o="";i&&(r=";domain="+i);var a=v();a&&"https:"===a.protocol&&(o=";secure",null===$e&&($e=et.disallowsSameSiteNone((m()||{}).userAgent)),$e||(n+=";SameSite=None")),et.document.cookie=t+"="+n+r+";path=/"+o}},et.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},et.getCookie=function(e,t){if(et.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=et.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=et.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},et.deleteCookie=function(e,t){et.canUseCookies(e)&&(et.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},et.trim=function(e){return Ye(e)?e.replace(/^\s+|\s+$/g,""):e},et.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},et.random32=function(){return 4294967296*Math.random()|0},et.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=et.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},et.isArray=function(e){return"[object Array]"===Object[s].toString.call(e)},et.isError=function(e){return"[object Error]"===Object[s].toString.call(e)},et.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():Je?(Je.userAgent||"").toLowerCase():"";return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},et.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},et.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},et.dump=function(e){var t=Object[s].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":y()&&(n=x().stringify(e)),t+n},et.getExceptionName=function(e){return"[object Error]"===Object[s].toString.call(e)?e.name:""},et.addEventHandler=function(e,t){return z.Attach(g(),e,t)},et.IsBeaconApiSupported=function(){return"sendBeacon"in Je&&Je.sendBeacon},et.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},et.document=d()||{},et._canUseLocalStorage=undefined,et._canUseSessionStorage=undefined,et._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],et.NotSpecified="not_specified",et.isDate=k.isDate,et.toISOStringForIE8=k.toISOString,et);function et(){}var tt=(nt.parseUrl=function(e){return nt.htmlAnchorElement||(nt.htmlAnchorElement=nt.document.createElement?nt.document.createElement("a"):{host:nt.parseHost(e)}),nt.htmlAnchorElement.href=e,nt.htmlAnchorElement},nt.getAbsoluteUrl=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.href),t},nt.getPathName=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.pathname),t},nt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},nt.parseHost=function(e){if(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&2<t.length&&Ye(t[2])&&0<t[2].length)return t[2]}return null},nt.document=d()||{},nt);function nt(){}var it=(rt.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=tt.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Ke.sanitizeString(e,n?n+" "+c:c)}else o=Ke.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},rt);function rt(){}var ot=(at.Now=function(){var e=function t(){return p("performance")}();return e&&e.now&&e.timing?e.now()+e.timing.navigationStart:(new Date).getTime()},at.GetDuration=function(e,t){var n=null;return 0===e||0===t||k.isNullOrUndefined(e)||k.isNullOrUndefined(t)||(n=t-e),n},at);function at(){}var st,ct=(t(ut,st=function Ln(){}),ut);function ut(){return st.call(this)||this}var lt;t(ft,lt=function On(){this.ver=1,this.sampleRate=100,this.tags={}});function ft(e,t,n){var i=lt.call(this)||this;return i.name=Ke.sanitizeString(e,n)||Ze.NotSpecified,i.data=t,i.time=k.toISOString(new Date),i.aiDataContract={time:Be.Required,iKey:Be.Required,name:Be.Required,sampleRate:function(){return 100===i.sampleRate?Be.Hidden:Be.Required},tags:Be.Required,data:Be.Required},i}var pt,ht=function Rn(){},gt=(t(dt,pt=ht),dt);function dt(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt;t(vt,mt=gt),vt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",vt.dataType="EventData";function vt(e,t,n,i){var r=mt.call(this)||this;return r.aiDataContract={ver:Be.Required,name:Be.Required,properties:Be.Default,measurements:Be.Default},r.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,r.properties=Ke.sanitizeProperties(e,n),r.measurements=Ke.sanitizeMeasurements(e,i),r}var yt,xt=function zn(){},St=(t(It,yt=ht),It);function It(){var e=yt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Nt,Ct=function Pn(){this.hasFullStack=!0,this.parsedStack=[]};t(wt,Nt=St),wt.CreateFromInterface=function(t,e){var n=e.exceptions&&k.arrMap(e.exceptions,function(e){return Dt.CreateFromInterface(t,e)});return new wt(t,r({},e,{exceptions:n}))},wt.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&k.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},wt.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},wt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",wt.dataType="ExceptionData";function wt(e,t,n,i,r,o){var a=Nt.call(this)||this;return a.aiDataContract={ver:Be.Required,exceptions:Be.Required,severityLevel:Be.Default,properties:Be.Default,measurements:Be.Default},t instanceof Error?(a.exceptions=[new Dt(e,t)],a.properties=Ke.sanitizeProperties(e,n),a.measurements=Ke.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,k.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var _t,Dt=(t(Et,_t=Ct),Et.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&k.arrMap(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.stack,parsedStack:e||undefined}},Et.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&k.arrMap(t.parsedStack,function(e){return Tt.CreateFromInterface(e)})||t.parsedStack;return new Et(e,r({},t,{parsedStack:n}))},Et.parseStack=function(e){var t;if(k.isString(e)){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Tt.regex.test(a)){var s=new Tt(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,u=t.length-1,l=0,f=c,p=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var h=p-f+1;t.splice(f,h);break}f=c,p=u,c++,u--}}return t},Et);function Et(e,t){var n=_t.call(this)||this;if(n.aiDataContract={id:Be.Default,outerId:Be.Default,typeName:Be.Required,message:Be.Required,hasFullStack:Be.Default,stack:Be.Default,parsedStack:Be.Array},t instanceof Error){n.typeName=Ke.sanitizeString(e,t.name)||Ze.NotSpecified,n.message=Ke.sanitizeMessage(e,t.message)||Ze.NotSpecified;var i=t.stack;n.parsedStack=Et.parseStack(i),n.stack=Ke.sanitizeException(e,i),n.hasFullStack=Ze.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var bt,Tt=(t(At,bt=xt),At.CreateFromInterface=function(e){return new At(e,null)},At.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},At.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,At.baseSize=58,At);function At(e,t){var n=bt.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:Be.Required,method:Be.Required,assembly:Be.Default,fileName:Be.Default,line:Be.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=Ze.trim(i),n.fileName="",n.line=0;var r=i.match(At.regex);r&&5<=r.length&&(n.method=Ze.trim(r[2])||n.method,n.fileName=Ze.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=At.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Mt,kt,Ut,Lt=(t(Ot,Mt=ht),Ot);function Ot(){var e=Mt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Ut=kt=kt||{})[Ut.Measurement=0]="Measurement",Ut[Ut.Aggregation=1]="Aggregation";var Rt,zt=(t(Pt,Rt=function jn(){this.kind=kt.Measurement}),Pt);function Pt(){var e=null!==Rt&&Rt.apply(this,arguments)||this;return e.aiDataContract={name:Be.Required,kind:Be.Default,value:Be.Required,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default},e}var jt;t(qt,jt=Lt),qt.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",qt.dataType="MetricData";function qt(e,t,n,i,r,o,a,s){var c=jt.call(this)||this;c.aiDataContract={ver:Be.Required,metrics:Be.Required,properties:Be.Default};var u=new zt;return u.count=0<i?i:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(r)||null===r?undefined:r,u.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,u.value=n,c.metrics=[u],c.properties=Ke.sanitizeProperties(e,a),c.measurements=Ke.sanitizeMeasurements(e,s),c}var Gt,Wt=(t(Bt,Gt=gt),Bt);function Bt(){var e=Gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ft,Vt=(t(Ht,Ft=Wt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ht.dataType="PageviewData",Ht);function Ht(e,t,n,i,r,o,a){var s=Ft.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,properties:Be.Default,measurements:Be.Default,id:Be.Default},s.id=Ke.sanitizeId(e,a),s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,isNaN(i)||(s.duration=Ze.msToTimeSpan(i)),s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(e,o),s}var Xt,Kt=(t(Qt,Xt=ht),Qt);function Qt(){var e=Xt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Jt;t(Yt,Jt=Kt),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Yt.dataType="RemoteDependencyData";function Yt(e,t,n,i,r,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var p=Jt.call(this)||this;p.aiDataContract={id:Be.Required,ver:Be.Required,name:Be.Default,resultCode:Be.Default,duration:Be.Default,success:Be.Default,data:Be.Default,target:Be.Default,type:Be.Default,properties:Be.Default,measurements:Be.Default,kind:Be.Default,value:Be.Default,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default,dependencyKind:Be.Default,dependencySource:Be.Default,commandName:Be.Default,dependencyTypeName:Be.Default},p.id=t,p.duration=Ze.msToTimeSpan(r),p.success=o,p.resultCode=a+"",p.type=Ke.sanitizeString(e,c);var h=it.ParseDependencyPath(e,n,s,i);return p.data=Ke.sanitizeUrl(e,i)||h.data,p.target=Ke.sanitizeString(e,h.target),u&&(p.target=p.target+" | "+u),p.name=Ke.sanitizeString(e,h.name),p.properties=Ke.sanitizeProperties(e,l),p.measurements=Ke.sanitizeMeasurements(e,f),p}var $t,Zt=(t(en,$t=ht),en);function en(){var e=$t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tn;t(nn,tn=Zt),nn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",nn.dataType="MessageData";function nn(e,t,n,i,r){var o=tn.call(this)||this;return o.aiDataContract={ver:Be.Required,message:Be.Required,severityLevel:Be.Default,properties:Be.Default},t=t||Ze.NotSpecified,o.message=Ke.sanitizeMessage(e,t),o.properties=Ke.sanitizeProperties(e,i),o.measurements=Ke.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var rn,on=(t(an,rn=Wt),an);function an(){var e=rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var sn;t(cn,sn=on),cn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",cn.dataType="PageviewPerformanceData";function cn(e,t,n,i,r,o,a){var s=sn.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,perfTotal:Be.Default,networkConnect:Be.Default,sentRequest:Be.Default,receivedResponse:Be.Default,domProcessing:Be.Default,properties:Be.Default,measurements:Be.Default},s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(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}var un,ln,fn;t(pn,un=ct);function pn(e,t){var n=un.call(this)||this;return n.aiDataContract={baseType:Be.Required,baseData:Be.Required},n.baseType=e,n.baseData=t,n}(fn=ln=ln||{})[fn.Verbose=0]="Verbose",fn[fn.Information=1]="Information",fn[fn.Warning=2]="Warning",fn[fn.Error=3]="Error",fn[fn.Critical=4]="Critical";var hn=function qn(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},gn=(dn.UserExt="user",dn.DeviceExt="device",dn.TraceExt="trace",dn.WebExt="web",dn.AppExt="app",dn.OSExt="os",dn.SessionExt="ses",dn.SDKExt="sdk",dn);function dn(){}var mn=new hn,vn=function Gn(){},yn=(xn.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=ot.Now(),t=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),n=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||n?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>xn.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},xn.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},xn.prototype.initializeAutomaticSession=function(){var e=Ze.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=Ze.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},xn.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var i=+t[2];this.automaticSession.renewalDate=+new Date(i),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(r){this._logger.throwInternal(L.CRITICAL,H,"Error parsing ai_session cookie, session will be reset: "+Ze.getExceptionName(r),{exception:Ze.dump(r)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(L.WARNING,K,"AI session renewal date is 0, session will be reset.")},xn.prototype.renew=function(){var e=ot.Now();this.automaticSession.id=Ze.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Ze.canUseLocalStorage()||this._logger.throwInternal(L.WARNING,j,"Browser does not support local storage. Session durations will be inaccurate.")},xn.prototype.setCookie=function(e,t,n){var i=t+this.config.sessionExpirationMs(),r=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];i<r?o.setTime(i):o.setTime(r);var s=this.config.cookieDomain?this.config.cookieDomain():null,c=0===this.config.sessionExpirationMs()?"0":o.toUTCString();Ze.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+c,s),this.cookieUpdatedTimestamp=ot.Now()},xn.prototype.setStorage=function(e,t,n){Ze.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))},xn.acquisitionSpan=864e5,xn.renewalSpan=18e5,xn.cookieUpdateInterval=6e4,xn.cookieNameConst="ai_session",xn);function xn(e,t){var n=this;k.isNullOrUndefined(t)?this._logger=new ce:this._logger=t,"function"!=typeof(e=e||{}).sessionExpirationMs&&(e.sessionExpirationMs=function(){return xn.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return xn.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return n.config.namePrefix&&n.config.namePrefix()?xn.cookieNameConst+n.config.namePrefix():xn.cookieNameConst},this.automaticSession=new vn}var Sn=function Wn(){},In=function Bn(){this.id="browser",this.deviceClass="Browser"},Nn=function Fn(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.5.3"},Cn=(wn.prototype.setAuthenticatedUserContext=function(e,t,n){if(void 0===n&&(n=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(L.WARNING,Z,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var i=this.authenticatedId;t&&(this.accountId=t,i=[this.authenticatedId,this.accountId].join(wn.cookieSeparator)),n&&Ze.setCookie(this._logger,wn.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},wn.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Ze.deleteCookie(this._logger,wn.authUserCookieName)},wn.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},wn.cookieSeparator="|",wn.userCookieName="ai_user",wn.authUserCookieName="ai_authUser",wn);function wn(e,t){this.isNewUser=!1,this._logger=t;var n=Ze.getCookie(this._logger,wn.userCookieName);if(n){this.isNewUser=!1;var i=n.split(wn.cookieSeparator);0<i.length&&(this.id=i[0])}if(this.config=e,!this.id){this.id=Ze.newId();var r=new Date,o=k.toISOString(r);this.accountAcquisitionDate=o,this.isNewUser=!0,r.setTime(r.getTime()+31536e6);var a=[this.id,o],s=this.config.cookieDomain?this.config.cookieDomain():undefined;Ze.setCookie(this._logger,wn.userCookieName,a.join(wn.cookieSeparator)+";expires="+r.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";Ze.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():undefined;var u=Ze.getCookie(this._logger,wn.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(wn.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var _n=function Vn(){},Dn=function Hn(e,t,n,i){this.traceID=e||Ze.generateW3CId(),this.parentID=t,this.name=n;var r=v();!n&&r&&r.pathname&&(this.name=r.pathname),this.name=Ke.sanitizeString(i,this.name)},En=(bn.prototype.applySessionContext=function(e,t){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(e.ext.app.sesId=n.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},bn.prototype.applyOperatingSystemContxt=function(e,t){this.os&&this.os.name&&(e.ext.os=this.os)},bn.prototype.applyApplicationContext=function(e,t){this.application&&("string"==typeof this.application.ver&&(e.tags[mn.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[mn.applicationBuild]=this.application.build))},bn.prototype.applyDeviceContext=function(e,t){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},bn.prototype.applyInternalContext=function(e,t){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[mn.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[mn.internalSdkVersion]=this.internal.sdkVersion))},bn.prototype.applyLocationContext=function(e,t){this.location&&"string"==typeof this.location.ip&&(e.tags[mn.locationIp]=this.location.ip)},bn.prototype.applyOperationContext=function(e,t){if(this.telemetryTrace){var n=e.ext.trace||{traceID:undefined,parentID:undefined};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),e.ext.trace=n}},bn.prototype.applyWebContext=function(e,t){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},bn.prototype.applyUserContext=function(e,t){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[mn.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},bn.prototype.cleanUp=function(e,t){e.ext[gn.DeviceExt]&&0===k.objKeys(e.ext[gn.DeviceExt]).length&&delete e.ext[gn.DeviceExt],e.ext[gn.UserExt]&&0===k.objKeys(e.ext[gn.UserExt]).length&&delete e.ext[gn.UserExt],e.ext[gn.WebExt]&&0===k.objKeys(e.ext[gn.WebExt]).length&&delete e.ext[gn.WebExt],e.ext[gn.OSExt]&&0===k.objKeys(e.ext[gn.OSExt]).length&&delete e.ext[gn.OSExt],e.ext[gn.AppExt]&&0===k.objKeys(e.ext[gn.AppExt]).length&&delete e.ext[gn.AppExt],e.ext[gn.TraceExt]&&0===k.objKeys(e.ext[gn.TraceExt]).length&&delete e.ext[gn.TraceExt]},bn);function bn(e,t){h()&&(this.sessionManager=new yn(t,e),this.application=new Sn,this.device=new In,this.internal=new Nn(t),this.location=new _n,this.user=new Cn(t,e),this.telemetryTrace=new Dn(undefined,undefined,undefined,e),this.session=new vn),this.appId=function(){return null}}var Tn,An=(t(Mn,Tn=ve),Mn.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){return undefined}}},Mn.prototype.initialize=function(e,t,n,i){var r=this;Tn.prototype.initialize.call(this,e,t,n,i);var o=this._getTelCtx(),a=this.identifier,s=Mn.getDefaultConfig();this._extensionConfig=this._extensionConfig||Mn.getDefaultConfig();var c=function(e){u._extensionConfig[e]=function(){return o.getConfig(a,e,s[e]())}},u=this;for(var l in s)c(l);this.context=new En(t.logger,this._extensionConfig),this._breezeChannel=Ze.getExtension(n,"AppInsightsChannelPlugin"),this.context.appId=function(){return r._breezeChannel?r._breezeChannel._appId:null}},Mn.prototype.processTelemetry=function(e,t){if(!k.isNullOrUndefined(e)){if(t=this._getTelCtx(t),e.name===Vt.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new ae(re,(m()||{}).userAgent||"");t.diagLog().logInternalMessage(L.CRITICAL,n)}this.processNext(e,t)}},Mn.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[gn.DeviceExt]=n[gn.DeviceExt]||{},n[gn.WebExt]=n[gn.WebExt]||{},n[gn.UserExt]=n[gn.UserExt]||{},n[gn.OSExt]=n[gn.OSExt]||{},n[gn.AppExt]=n[gn.AppExt]||{},n[gn.TraceExt]=n[gn.TraceExt]||{};var i=this.context;i.applySessionContext(e,t),i.applyApplicationContext(e,t),i.applyDeviceContext(e,t),i.applyOperationContext(e,t),i.applyUserContext(e,t),i.applyOperatingSystemContxt(e,t),i.applyWebContext(e,t),i.applyLocationContext(e,t),i.applyInternalContext(e,t),i.cleanUp(e,t)},Mn);function Mn(){var e=null!==Tn&&Tn.apply(this,arguments)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",e}e.PropertiesPlugin=An,e.TelemetryTrace=Dn,e.TelemetryContext=En,e.Session=vn,e.SessionManager=yn,function(e,t,n){var i=Object.defineProperty;if(i)try{return i(e,t,n)}catch(r){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights={}))}(this,function(e){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function t(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!=n&&"function"!=n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},n=2,o="undefined",a="object",s="prototype",c="window",u="location",l="JSON";function f(){return typeof globalThis!==o&&globalThis?globalThis:typeof self!==o&&self?self:typeof window!==o&&window?window:typeof global!==o&&global?global:null}function p(e){var t=f();return t&&t[e]?t[e]:e===c&&h()?window:null}function h(){return Boolean(typeof window===a&&window)}function g(){return h()?window:p(c)}function d(){return function e(){return Boolean(typeof document===a&&document)}()?document:p("document")}function m(){return function e(){return Boolean(typeof navigator===a&&navigator)}()?navigator:p("navigator")}function v(){return typeof location===a&&location?location:p(u)}function y(){return Boolean(typeof JSON===a&&JSON||null!==p(l))}function x(){return y()?JSON||p(l):null}var S="attachEvent",I="addEventListener",N="detachEvent",C="removeEventListener";function w(e,t){return typeof e===t}function _(e){return w(e,o)||e===undefined}function D(e){return _(e)||null===e}function E(e,t){return e&&Object[s].hasOwnProperty.call(e,t)}function b(e){return w(e,a)}function T(e){return w(e,"function")}function A(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!D(e))try{D(e[I])?D(e[S])||(e[S]("on"+t,n),r=!0):(e[I](t,n,i),r=!0)}catch(o){}return r}function M(e,t,n,i){if(void 0===i&&(i=!1),!D(e))try{D(e[C])?D(e[N])||e[N]("on"+t,n):e[C](t,n,i)}catch(r){}}var k=(U.isDate=function(e){return"[object Date]"===Object[s].toString.call(e)},U.isString=function(e){return w(e,"string")},U.isNumber=function(e){return w(e,"number")},U.isBoolean=function(e){return w(e,"boolean")},U.disableCookies=function(){U._canUseCookies=!1},U.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(R,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},U.toISOString=function(e){if(U.isDate(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},U.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;++r)r in e&&t.call(n||e,e[r],r,e)},U.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(0<=r?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},U.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},U.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(3<=arguments.length)i=n;else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},U.objCreate=function(e){if(null==e)return{};if(!b(e)&&!T(e))throw new TypeError("Object prototype may only be an Object: "+e);function t(){}return t[s]=e,new t},U.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!(T(e)||b(e)&&null!==e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)E(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)E(e,r[a])&&n.push(r[a]);return n},U.objDefineAccessors=function(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1},U.addEventHandler=function(e,t){var n=!1,i=g();i&&(n=A(i,e,t),n=A(i.body,e,t)||n);var r=d();return r&&(n=z.Attach(r,e,t)||n),n},U.isTypeof=w,U.isUndefined=_,U.isNullOrUndefined=D,U.hasOwnProperty=E,U.isFunction=T,U.isObject=b,U);function U(){}var L,O,R=/[xy]/g,z=(P.Attach=A,P.AttachEvent=A,P.Detach=M,P.DetachEvent=M,P);function P(){}(O=L=L||{})[O.CRITICAL=1]="CRITICAL",O[O.WARNING=2]="WARNING";var j=0,q=1,G=2,W=3,B=4,F=5,V=6,H=9,X=23,K=27,Q=49,J=52,Y=56,$=57,Z=60,ee=61,te=66,ne=68,ie=69,re=72,oe=73,ae=(se.sanitizeDiagnosticText=function(e){return e?'"'+e.replace(/\"/g,"")+'"':""},se.dataType="MessageData",se.AiNonUserActionablePrefix="AI (Internal): ",se.AiUserActionablePrefix="AI: ",se);function se(e,t,n,i){void 0===n&&(n=!1),this.messageId=e,this.message=(n?se.AiUserActionablePrefix:se.AiNonUserActionablePrefix)+e;var r="";y()&&(r=x().stringify(i));var o=(t?" message:"+se.sanitizeDiagnosticText(t):"")+(i?" props:"+se.sanitizeDiagnosticText(r):"");this.message+=o}var ce=(ue.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1);var o=new ae(t,n,r,i),a=this;if(a.enableDebugExceptions())throw o;if(!k.isUndefined(o)&&o&&!k.isUndefined(o.message)){if(r){var s=+o.messageId;!a._messageLogged[s]&&a.consoleLoggingLevel()>=L.WARNING&&(a.warnToConsole(o.message),a._messageLogged[s]=!0)}else a.consoleLoggingLevel()>=L.WARNING&&a.warnToConsole(o.message);a.logInternalMessage(e,o)}},ue.prototype.warnToConsole=function(e){!k.isUndefined(console)&&console&&(k.isFunction(console.warn)?console.warn(e):k.isFunction(console.log)&&console.log(e))},ue.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},ue.prototype.logInternalMessage=function(e,t){var n=this;if(!n._areInternalMessagesThrottled()){var i=!0,r=n.AIInternalMessagePrefix+t.messageId;if(n._messageLogged[r]?i=!1:n._messageLogged[r]=!0,i&&(e<=n.telemetryLoggingLevel()&&(n.queue.push(t),n._messageCount++),n._messageCount===n.maxInternalMessageLimit())){var o="Internal events throttle limit per PageView reached for this app.",a=new ae(X,o,!1);n.queue.push(a),n.warnToConsole(o)}}},ue.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},ue);function ue(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},k.isNullOrUndefined(e)||(k.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),k.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),k.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),k.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}var le=k.isFunction,fe=function kn(r,o){var a=this,s=null,c=le(r.processTelemetry),u=le(r.setNextPlugin);a._hasRun=!1,a.getPlugin=function(){return r},a.getNext=function(){return s},a.setNext=function(e){s=e},a.processTelemetry=function(e,t){if(t=t||o,r&&c){a._hasRun=!0;try{t.setNext(s),u&&r.setNextPlugin(s),s&&(s._hasRun=!1),r.processTelemetry(e,t)}catch(i){var n=s&&s._hasRun;s&&n||t.diagLog().throwInternal(L.CRITICAL,oe,"Plugin ["+r.identifier+"] failed during processTelemetry - "+i),s&&!n&&s.processTelemetry(e,t)}}else s&&(a._hasRun=!0,s.processTelemetry(e,t))}},pe=k.isNullOrUndefined;function he(e,t){var n=[];if(e&&0<e.length)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&k.isFunction(o.processTelemetry)){var a=new fe(o,t);n.push(a),i&&i.setNext(a),i=a}}return 0<n.length?n[0]:null}var ge=function Un(e,o,n,t){var a=this,i=null;null!==t&&(e&&k.isFunction(e.getPlugin)?i=function s(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();!r&&o!==n||(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),he(i,t)}(e,a,t||e.getPlugin()):t?i=function c(e,t,n){var i=e,r=!1;return n&&e&&(i=[],k.arrForEach(e,function(e){!r&&e!==n||(r=!0,i.push(e))})),n&&!r&&(i=i||[]).push(n),he(i,t)}(e,a,t):k.isUndefined(t)&&(i=he(e,a))),a.core=function(){return n},a.diagLog=function(){var e=(n||{}).logger;return e=e||new ce(o||{})},a.getCfg=function(){return o},a.getExtCfg=function(e,t){var n;if(void 0===t&&(t={}),o){var i=o.extensionConfig;i&&e&&(n=i[e])}return n||t},a.getConfig=function(e,t,n){var i;void 0===n&&(n=!1);var r=a.getExtCfg(e,null);return r&&!pe(r[t])?i=r[t]:o&&!pe(o[t])&&(i=o[t]),pe(i)?n:i},a.hasNext=function(){return null!=i},a.getNext=function(){return i},a.setNext=function(e){i=e},a.processNext=function(e){var t=i;t&&(i=t.getNext(),t.processTelemetry(e,a))},a.createNew=function(e,t){return void 0===e&&(e=null),new Un(e||i,o,n,t)}},de=k.isFunction,me="getPlugin",ve=(ye.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},ye);function ye(){var o=this,a=!1,s=null,c=null;o.core=null,o.diagLog=function(e){return o._getTelCtx(e).diagLog()},o.isInitialized=function(){return a},o.setInitialized=function(e){a=e},o.setNextPlugin=function(e){c=e},o.processNext=function(e,t){t?t.processNext(e):c&&de(c.processTelemetry)&&c.processTelemetry(e,null)},o._getTelCtx=function(e){void 0===e&&(e=null);var t=e;if(!t){var n=s||new ge(null,{},o.core);t=c&&c[me]?n.createNew(null,c[me]):n.createNew(null,c)}return t},o._baseTelInit=function(e,t,n,i){e&&(e.extensionConfig=e.extensionConfig||[]),!i&&t&&(i=t.getProcessTelContext().getNext());var r=c;c&&c[me]&&(r=c[me]()),o.core=t,s=new ge(i,e,t,r),a=!0}}var xe=k.isFunction,Se="processTelemetry",Ie="priority",Ne="setNextPlugin",Ce="isInitialized";function we(t,n){for(var e=[],i=null,r=t.getNext();r;){var o=r.getPlugin();o&&(i&&xe(i[Ne])&&xe(o[Se])&&i[Ne](o),xe(o[Ce])&&o[Ce]()||e.push(o),i=o,r=r.getNext())}k.arrForEach(e,function(e){e.initialize(t.getCfg(),t.core(),n,t.getNext())})}function _e(e){return e.sort(function(e,t){var n=0,i=xe(t[Se]);return xe(e[Se])?n=i?e[Ie]-t[Ie]:1:i&&(n=-1),n})}var De=500,Ee="Channel has invalid priority",be=k.arrForEach,Te=k.objDefineAccessors;function Ae(e,t){t&&0<t.length&&(function n(e){be(e,function(e){if(e.priority<De)throw Error(Ee+e.identifier)})}(t=t.sort(function(e,t){return e.priority-t.priority})),e.push(t))}var Me,ke=(t(Ue,Me=ve),Ue.prototype.processTelemetry=function(t,n){var i=this;this._channelQueue&&be(this._channelQueue,function(e){0<e.length&&i._getTelCtx(n).createNew(e).processNext(t)})},Ue.prototype.getChannelControls=function(){return this._channelQueue},Ue.prototype.initialize=function(t,n,i){if(!this.isInitialized()){Me.prototype.initialize.call(this,t,n,i),t.isCookieUseDisabled&&k.disableCookies();var e=this._channelQueue=function r(e,t){var n=[];if(e&&be(e,function(e){return Ae(n,e)}),t){var i=[];be(t,function(e){e.priority>De&&i.push(e)}),Ae(n,i)}return n}((t||{}).channels,i);be(e,function(e){return we(new ge(e,t,n),i)})}},Ue._staticInit=(Te(Ue.prototype,"ChannelControls",Ue.prototype.getChannelControls),void Te(Ue.prototype,"channelQueue",Ue.prototype.getChannelControls)),Ue);function Ue(){var e=null!==Me&&Me.apply(this,arguments)||this;return e.identifier="ChannelControllerPlugin",e.priority=De,e}var Le=k.arrForEach,Oe=k.isNullOrUndefined,Re=(ze.prototype.initialize=function(e,t,i,n){var r=this;if(r.isInitialized())throw Error("Core should not be initialized more than once");if(!e||Oe(e.instrumentationKey))throw Error("Please provide instrumentation key");r.config=e;var o=r._channelController;n=n||k.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}}),r._notificationManager=n,e.extensions=Oe(e.extensions)?[]:e.extensions,(e.extensionConfig=Oe(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=n,i=i||k.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),r.logger=i;var a=[];a.push.apply(a,t.concat(e.extensions)),a=_e(a);var s=[],c={};if(Le(a,function(e){if(Oe(e)||Oe(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,n=e.identifier;e&&t&&(Oe(c[t])?c[t]=n:i.warnToConsole("Two extensions have same priority #"+t+" - "+c[t]+", "+n)),(!t||t<o.priority)&&s.push(e)}),a.push(o),s.push(o),a=_e(a),r._extensions=a,we(new ge([o],e,r),a),we(new ge(s,e,r),a),r._extensions=s,0===r.getTransmissionControls().length)throw new Error("No channels available");r._setInit(!0)},ze.prototype.getTransmissionControls=function(){return this._channelController.getChannelControls()},ze.prototype.track=function(e){var t=this;e.iKey||(e.iKey=t.config.instrumentationKey),e.time||(e.time=k.toISOString(new Date)),Oe(e.ver)&&(e.ver="4.0"),t.isInitialized()?(0<t._eventQueue.length&&(Le(t._eventQueue,function(e){t.getProcessTelContext().processNext(e)}),t._eventQueue=[]),t.getProcessTelContext().processNext(e)):t._eventQueue.push(e)},ze.prototype.getProcessTelContext=function(){var e=this._extensions,t=e;return e&&0!==e.length||(t=[this._channelController]),new ge(t,this.config,this)},ze);function ze(){var t=!1,e=this;e._extensions=new Array,e._channelController=new ke,e.isInitialized=function(){return t},e._setInit=function(e){t=e},e._eventQueue=[]}var Pe=(je.prototype.addNotificationListener=function(e){this.listeners.push(e)},je.prototype.removeNotificationListener=function(e){for(var t=k.arrIndexOf(this.listeners,e);-1<t;)this.listeners.splice(t,1),t=k.arrIndexOf(this.listeners,e)},je.prototype.eventsSent=function(t){for(var n=this,e=function(e){i.listeners[e].eventsSent&&setTimeout(function(){return n.listeners[e].eventsSent(t)},0)},i=this,r=0;r<this.listeners.length;++r)e(r)},je.prototype.eventsDiscarded=function(t,n){for(var i=this,e=function(e){r.listeners[e].eventsDiscarded&&setTimeout(function(){return i.listeners[e].eventsDiscarded(t,n)},0)},r=this,o=0;o<this.listeners.length;++o)e(o)},je);function je(){this.listeners=[]}var qe,Ge,We,Be,Fe,Ve,He;t(Xe,qe=Re),Xe.prototype.initialize=function(e,t){var n=this;n._notificationManager=new Pe,n.logger=new ce(e),n.config=e,qe.prototype.initialize.call(this,e,t,n.logger,n._notificationManager)},Xe.prototype.getTransmissionControls=function(){return qe.prototype.getTransmissionControls.call(this)},Xe.prototype.track=function(e){if(null===e)throw this._notifyInvalidEvent(e),Error("Invalid telemetry item");this._validateTelemetryItem(e),qe.prototype.track.call(this,e)},Xe.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},Xe.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},Xe.prototype.pollInternalLogs=function(i){var t=this,e=this.config.diagnosticLogInterval;return e&&0<e||(e=1e4),setInterval(function(){var n=t,e=n.logger?n.logger.queue:[];k.arrForEach(e,function(e){var t={name:i||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:k.toISOString(new Date),baseType:ae.dataType,baseData:{message:e.message}};n.track(t)}),e.length=0},e)},Xe.prototype._validateTelemetryItem=function(e){if(k.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},Xe.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],n)};function Xe(){return qe.call(this)||this}(We=Ge=Ge||{})[We.LocalStorage=0]="LocalStorage",We[We.SessionStorage=1]="SessionStorage",(Fe=Be=Be||{})[Fe.Default=0]="Default",Fe[Fe.Required=1]="Required",Fe[Fe.Array=2]="Array",Fe[Fe.Hidden=4]="Hidden",(He=Ve=Ve||{})[He.AI=0]="AI",He[He.AI_AND_W3C=1]="AI_AND_W3C",He[He.W3C=2]="W3C";var Ke=(Qe.sanitizeKeyAndAddUniqueness=function(e,t,n){var i=t.length,r=Qe.sanitizeKey(e,t);if(r.length!==i){for(var o=0,a=r;n[a]!==undefined;)o++,a=r.substring(0,Qe.MAX_NAME_LENGTH-3)+Qe.padNumber(o);r=a}return r},Qe.sanitizeKey=function(e,t){var n;return t&&(t=Qe.trim(t.toString())).length>Qe.MAX_NAME_LENGTH&&(n=t.substring(0,Qe.MAX_NAME_LENGTH),e.throwInternal(L.WARNING,$,"name is too long. It has been truncated to "+Qe.MAX_NAME_LENGTH+" characters.",{name:t},!0)),n||t},Qe.sanitizeString=function(e,t,n){var i;return void 0===n&&(n=Qe.MAX_STRING_LENGTH),t&&(n=n||Qe.MAX_STRING_LENGTH,(t=Qe.trim(t)).toString().length>n&&(i=t.toString().substring(0,n),e.throwInternal(L.WARNING,ee,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t},Qe.sanitizeUrl=function(e,t){return Qe.sanitizeInput(e,t,Qe.MAX_URL_LENGTH,te)},Qe.sanitizeMessage=function(e,t){var n;return t&&t.length>Qe.MAX_MESSAGE_LENGTH&&(n=t.substring(0,Qe.MAX_MESSAGE_LENGTH),e.throwInternal(L.WARNING,Y,"message is too long, it has been truncated to "+Qe.MAX_MESSAGE_LENGTH+" characters.",{message:t},!0)),n||t},Qe.sanitizeException=function(e,t){var n;return t&&t.length>Qe.MAX_EXCEPTION_LENGTH&&(n=t.substring(0,Qe.MAX_EXCEPTION_LENGTH),e.throwInternal(L.WARNING,J,"exception is too long, it has been truncated to "+Qe.MAX_EXCEPTION_LENGTH+" characters.",{exception:t},!0)),n||t},Qe.sanitizeProperties=function(e,t){if(t){var n={};for(var i in t){var r=t[i];if(k.isObject(r)&&y())try{r=x().stringify(r)}catch(o){e.throwInternal(L.WARNING,Q,"custom property is not valid",{exception:o},!0)}r=Qe.sanitizeString(e,r,Qe.MAX_PROPERTY_LENGTH),n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeMeasurements=function(e,t){if(t){var n={};for(var i in t){var r=t[i];n[i=Qe.sanitizeKeyAndAddUniqueness(e,i,n)]=r}t=n}return t},Qe.sanitizeId=function(e,t){return t?Qe.sanitizeInput(e,t,Qe.MAX_ID_LENGTH,ie).toString():t},Qe.sanitizeInput=function(e,t,n,i){var r;return t&&(t=Qe.trim(t)).length>n&&(r=t.substring(0,n),e.throwInternal(L.WARNING,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t},Qe.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},Qe.trim=function(e){return k.isString(e)?e.replace(/^\s+|\s+$/g,""):e},Qe.MAX_NAME_LENGTH=150,Qe.MAX_ID_LENGTH=128,Qe.MAX_PROPERTY_LENGTH=8192,Qe.MAX_STRING_LENGTH=1024,Qe.MAX_URL_LENGTH=2048,Qe.MAX_MESSAGE_LENGTH=32768,Qe.MAX_EXCEPTION_LENGTH=32768,Qe);function Qe(){}var Je=m(),Ye=k.isString,$e=null;var Ze=(et.createDomEvent=function(e){var t=null;if(k.isFunction(Event))t=new Event(e);else{var n=d();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},et.disableStorage=function(){et._canUseLocalStorage=!1,et._canUseSessionStorage=!1},et._getLocalStorageObject=function(){return et.canUseLocalStorage()?et._getVerifiedStorageObject(Ge.LocalStorage):null},et._getVerifiedStorageObject=function(e){var t,n,i=null;try{if(k.isNullOrUndefined(f()))return null;n=new Date,(i=e===Ge.LocalStorage?p("localStorage"):p("sessionStorage")).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},et.isInternalApplicationInsightsEndpoint=function(e){return-1!==et._internalEndpoints.indexOf(e.toLowerCase())},et.canUseLocalStorage=function(){return et._canUseLocalStorage===undefined&&(et._canUseLocalStorage=!!et._getVerifiedStorageObject(Ge.LocalStorage)),et._canUseLocalStorage},et.getStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,q,"Browser failed read of local storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setStorage=function(e,t,n){var i=et._getLocalStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,W,"Browser failed write to local storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeStorage=function(e,t){var n=et._getLocalStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseLocalStorage=!1,e.throwInternal(L.WARNING,F,"Browser failed removal of local storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et._getSessionStorageObject=function(){return et.canUseSessionStorage()?et._getVerifiedStorageObject(Ge.SessionStorage):null},et.canUseSessionStorage=function(){return et._canUseSessionStorage===undefined&&(et._canUseSessionStorage=!!et._getVerifiedStorageObject(Ge.SessionStorage)),et._canUseSessionStorage},et.getSessionStorageKeys=function(){var e=[];if(et.canUseSessionStorage())for(var t in p("sessionStorage"))e.push(t);return e},et.getSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.getItem(t)}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,G,"Browser failed read of session storage. "+et.getExceptionName(i),{exception:et.dump(i)})}return null},et.setSessionStorage=function(e,t,n){var i=et._getSessionStorageObject();if(null!==i)try{return i.setItem(t,n),!0}catch(r){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,B,"Browser failed write to session storage. "+et.getExceptionName(r),{exception:et.dump(r)})}return!1},et.removeSessionStorage=function(e,t){var n=et._getSessionStorageObject();if(null!==n)try{return n.removeItem(t),!0}catch(i){et._canUseSessionStorage=!1,e.throwInternal(L.WARNING,V,"Browser failed removal of session storage item. "+et.getExceptionName(i),{exception:et.dump(i)})}return!1},et.disableCookies=function(){k.disableCookies()},et.canUseCookies=function(e){if(k._canUseCookies===undefined){k._canUseCookies=!1;try{k._canUseCookies=et.document.cookie!==undefined}catch(t){e.throwInternal(L.WARNING,ne,"Cannot access document.cookie - "+et.getExceptionName(t),{exception:et.dump(t)})}}return k._canUseCookies},et.disallowsSameSiteNone=function(e){return!!Ye(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function r(e,t){var n=e.length,i=n-t.length;return e.substring(0<=i?i:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"))},et.setCookie=function(e,t,n,i){if(et.canUseCookies(e)){var r="",o="";i&&(r=";domain="+i);var a=v();a&&"https:"===a.protocol&&(o=";secure",null===$e&&($e=et.disallowsSameSiteNone((m()||{}).userAgent)),$e||(n+=";SameSite=None")),et.document.cookie=t+"="+n+r+";path=/"+o}},et.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),e===undefined||null===e?t:"true"===e.toString().toLowerCase()},et.getCookie=function(e,t){if(et.canUseCookies(e)){var n="";if(t&&t.length)for(var i=t+"=",r=et.document.cookie.split(";"),o=0;o<r.length;o++){var a=r[o];if((a=et.trim(a))&&0===a.indexOf(i)){n=a.substring(i.length,r[o].length);break}}return n}},et.deleteCookie=function(e,t){et.canUseCookies(e)&&(et.document.cookie=t+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},et.trim=function(e){return Ye(e)?e.replace(/^\s+|\s+$/g,""):e},et.newId=function(){for(var e="",t=1073741824*Math.random();0<t;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},et.random32=function(){return 4294967296*Math.random()|0},et.generateW3CId=function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",i=0;i<4;i++)n+=t[15&(e=et.random32())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+4*Math.random()|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+r+n.substr(16,3)+n.substr(19,12)},et.isArray=function(e){return"[object Array]"===Object[s].toString.call(e)},et.isError=function(e){return"[object Error]"===Object[s].toString.call(e)},et.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():Je?(Je.userAgent||"").toLowerCase():"";return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},et.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(0<o?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},et.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},et.dump=function(e){var t=Object[s].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":y()&&(n=x().stringify(e)),t+n},et.getExceptionName=function(e){return"[object Error]"===Object[s].toString.call(e)?e.name:""},et.addEventHandler=function(e,t){return z.Attach(g(),e,t)},et.IsBeaconApiSupported=function(){return"sendBeacon"in Je&&Je.sendBeacon},et.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},et.document=d()||{},et._canUseLocalStorage=undefined,et._canUseSessionStorage=undefined,et._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],et.NotSpecified="not_specified",et.isDate=k.isDate,et.toISOStringForIE8=k.toISOString,et);function et(){}var tt=(nt.parseUrl=function(e){return nt.htmlAnchorElement||(nt.htmlAnchorElement=nt.document.createElement?nt.document.createElement("a"):{host:nt.parseHost(e)}),nt.htmlAnchorElement.href=e,nt.htmlAnchorElement},nt.getAbsoluteUrl=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.href),t},nt.getPathName=function(e){var t,n=nt.parseUrl(e);return n&&(t=n.pathname),t},nt.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},nt.parseHost=function(e){if(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);if(null!=t&&2<t.length&&Ye(t[2])&&0<t[2].length)return t[2]}return null},nt.document=d()||{},nt);function nt(){}var it=(rt.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&0<t.length){var s=tt.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Ke.sanitizeString(e,n?n+" "+c:c)}else o=Ke.sanitizeString(e,t)}else o=r=i;return{target:r,name:o,data:a}},rt);function rt(){}var ot=(at.Now=function(){var e=function t(){return p("performance")}();return e&&e.now&&e.timing?e.now()+e.timing.navigationStart:(new Date).getTime()},at.GetDuration=function(e,t){var n=null;return 0===e||0===t||k.isNullOrUndefined(e)||k.isNullOrUndefined(t)||(n=t-e),n},at);function at(){}var st,ct=(t(ut,st=function Ln(){}),ut);function ut(){return st.call(this)||this}var lt;t(ft,lt=function On(){this.ver=1,this.sampleRate=100,this.tags={}});function ft(e,t,n){var i=lt.call(this)||this;return i.name=Ke.sanitizeString(e,n)||Ze.NotSpecified,i.data=t,i.time=k.toISOString(new Date),i.aiDataContract={time:Be.Required,iKey:Be.Required,name:Be.Required,sampleRate:function(){return 100===i.sampleRate?Be.Hidden:Be.Required},tags:Be.Required,data:Be.Required},i}var pt,ht=function Rn(){},gt=(t(dt,pt=ht),dt);function dt(){var e=pt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var mt;t(vt,mt=gt),vt.envelopeType="Microsoft.ApplicationInsights.{0}.Event",vt.dataType="EventData";function vt(e,t,n,i){var r=mt.call(this)||this;return r.aiDataContract={ver:Be.Required,name:Be.Required,properties:Be.Default,measurements:Be.Default},r.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,r.properties=Ke.sanitizeProperties(e,n),r.measurements=Ke.sanitizeMeasurements(e,i),r}var yt,xt=function zn(){},St=(t(It,yt=ht),It);function It(){var e=yt.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}var Nt,Ct=function Pn(){this.hasFullStack=!0,this.parsedStack=[]};t(wt,Nt=St),wt.CreateFromInterface=function(t,e){var n=e.exceptions&&k.arrMap(e.exceptions,function(e){return Dt.CreateFromInterface(t,e)});return new wt(t,r({},e,{exceptions:n}))},wt.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&k.arrMap(t,function(e){return e.toInterface()})||undefined,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},wt.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},wt.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",wt.dataType="ExceptionData";function wt(e,t,n,i,r,o){var a=Nt.call(this)||this;return a.aiDataContract={ver:Be.Required,exceptions:Be.Required,severityLevel:Be.Default,properties:Be.Default,measurements:Be.Default},t instanceof Error?(a.exceptions=[new Dt(e,t)],a.properties=Ke.sanitizeProperties(e,n),a.measurements=Ke.sanitizeMeasurements(e,i),r&&(a.severityLevel=r),o&&(a.id=o)):(a.exceptions=t.exceptions,a.properties=t.properties,a.measurements=t.measurements,t.severityLevel&&(a.severityLevel=t.severityLevel),t.id&&(a.id=t.id),t.problemGroup&&(a.problemGroup=t.problemGroup),a.ver=2,k.isNullOrUndefined(t.isManual)||(a.isManual=t.isManual)),a}var _t,Dt=(t(Et,_t=Ct),Et.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&k.arrMap(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.stack,parsedStack:e||undefined}},Et.CreateFromInterface=function(e,t){var n=t.parsedStack instanceof Array&&k.arrMap(t.parsedStack,function(e){return Tt.CreateFromInterface(e)})||t.parsedStack;return new Et(e,r({},t,{parsedStack:n}))},Et.parseStack=function(e){var t;if(k.isString(e)){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(Tt.regex.test(a)){var s=new Tt(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(32768<r)for(var c=0,u=t.length-1,l=0,f=c,p=u;c<u;){if(32768<(l+=t[c].sizeInBytes+t[u].sizeInBytes)){var h=p-f+1;t.splice(f,h);break}f=c,p=u,c++,u--}}return t},Et);function Et(e,t){var n=_t.call(this)||this;if(n.aiDataContract={id:Be.Default,outerId:Be.Default,typeName:Be.Required,message:Be.Required,hasFullStack:Be.Default,stack:Be.Default,parsedStack:Be.Array},t instanceof Error){n.typeName=Ke.sanitizeString(e,t.name)||Ze.NotSpecified,n.message=Ke.sanitizeMessage(e,t.message)||Ze.NotSpecified;var i=t.stack;n.parsedStack=Et.parseStack(i),n.stack=Ke.sanitizeException(e,i),n.hasFullStack=Ze.isArray(n.parsedStack)&&0<n.parsedStack.length}else n.typeName=t.typeName,n.message=t.message,n.stack=t.stack,n.parsedStack=t.parsedStack,n.hasFullStack=t.hasFullStack;return n}var bt,Tt=(t(At,bt=xt),At.CreateFromInterface=function(e){return new At(e,null)},At.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},At.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,At.baseSize=58,At);function At(e,t){var n=bt.call(this)||this;if(n.sizeInBytes=0,n.aiDataContract={level:Be.Required,method:Be.Required,assembly:Be.Default,fileName:Be.Default,line:Be.Default},"string"==typeof e){var i=e;n.level=t,n.method="<no_method>",n.assembly=Ze.trim(i),n.fileName="",n.line=0;var r=i.match(At.regex);r&&5<=r.length&&(n.method=Ze.trim(r[2])||n.method,n.fileName=Ze.trim(r[4]),n.line=parseInt(r[5])||0)}else n.level=e.level,n.method=e.method,n.assembly=e.assembly,n.fileName=e.fileName,n.line=e.line,n.sizeInBytes=0;return n.sizeInBytes+=n.method.length,n.sizeInBytes+=n.fileName.length,n.sizeInBytes+=n.assembly.length,n.sizeInBytes+=At.baseSize,n.sizeInBytes+=n.level.toString().length,n.sizeInBytes+=n.line.toString().length,n}var Mt,kt,Ut,Lt=(t(Ot,Mt=ht),Ot);function Ot(){var e=Mt.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}(Ut=kt=kt||{})[Ut.Measurement=0]="Measurement",Ut[Ut.Aggregation=1]="Aggregation";var Rt,zt=(t(Pt,Rt=function jn(){this.kind=kt.Measurement}),Pt);function Pt(){var e=null!==Rt&&Rt.apply(this,arguments)||this;return e.aiDataContract={name:Be.Required,kind:Be.Default,value:Be.Required,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default},e}var jt;t(qt,jt=Lt),qt.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",qt.dataType="MetricData";function qt(e,t,n,i,r,o,a,s){var c=jt.call(this)||this;c.aiDataContract={ver:Be.Required,metrics:Be.Required,properties:Be.Default};var u=new zt;return u.count=0<i?i:undefined,u.max=isNaN(o)||null===o?undefined:o,u.min=isNaN(r)||null===r?undefined:r,u.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,u.value=n,c.metrics=[u],c.properties=Ke.sanitizeProperties(e,a),c.measurements=Ke.sanitizeMeasurements(e,s),c}var Gt,Wt=(t(Bt,Gt=gt),Bt);function Bt(){var e=Gt.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var Ft,Vt=(t(Ht,Ft=Wt),Ht.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",Ht.dataType="PageviewData",Ht);function Ht(e,t,n,i,r,o,a){var s=Ft.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,properties:Be.Default,measurements:Be.Default,id:Be.Default},s.id=Ke.sanitizeId(e,a),s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,isNaN(i)||(s.duration=Ze.msToTimeSpan(i)),s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(e,o),s}var Xt,Kt=(t(Qt,Xt=ht),Qt);function Qt(){var e=Xt.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}var Jt;t(Yt,Jt=Kt),Yt.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",Yt.dataType="RemoteDependencyData";function Yt(e,t,n,i,r,o,a,s,c,u,l,f){void 0===c&&(c="Ajax");var p=Jt.call(this)||this;p.aiDataContract={id:Be.Required,ver:Be.Required,name:Be.Default,resultCode:Be.Default,duration:Be.Default,success:Be.Default,data:Be.Default,target:Be.Default,type:Be.Default,properties:Be.Default,measurements:Be.Default,kind:Be.Default,value:Be.Default,count:Be.Default,min:Be.Default,max:Be.Default,stdDev:Be.Default,dependencyKind:Be.Default,dependencySource:Be.Default,commandName:Be.Default,dependencyTypeName:Be.Default},p.id=t,p.duration=Ze.msToTimeSpan(r),p.success=o,p.resultCode=a+"",p.type=Ke.sanitizeString(e,c);var h=it.ParseDependencyPath(e,n,s,i);return p.data=Ke.sanitizeUrl(e,i)||h.data,p.target=Ke.sanitizeString(e,h.target),u&&(p.target=p.target+" | "+u),p.name=Ke.sanitizeString(e,h.name),p.properties=Ke.sanitizeProperties(e,l),p.measurements=Ke.sanitizeMeasurements(e,f),p}var $t,Zt=(t(en,$t=ht),en);function en(){var e=$t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var tn;t(nn,tn=Zt),nn.envelopeType="Microsoft.ApplicationInsights.{0}.Message",nn.dataType="MessageData";function nn(e,t,n,i,r){var o=tn.call(this)||this;return o.aiDataContract={ver:Be.Required,message:Be.Required,severityLevel:Be.Default,properties:Be.Default},t=t||Ze.NotSpecified,o.message=Ke.sanitizeMessage(e,t),o.properties=Ke.sanitizeProperties(e,i),o.measurements=Ke.sanitizeMeasurements(e,r),n&&(o.severityLevel=n),o}var rn,on=(t(an,rn=Wt),an);function an(){var e=rn.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}var sn;t(cn,sn=on),cn.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",cn.dataType="PageviewPerformanceData";function cn(e,t,n,i,r,o,a){var s=sn.call(this)||this;return s.aiDataContract={ver:Be.Required,name:Be.Default,url:Be.Default,duration:Be.Default,perfTotal:Be.Default,networkConnect:Be.Default,sentRequest:Be.Default,receivedResponse:Be.Default,domProcessing:Be.Default,properties:Be.Default,measurements:Be.Default},s.url=Ke.sanitizeUrl(e,n),s.name=Ke.sanitizeString(e,t)||Ze.NotSpecified,s.properties=Ke.sanitizeProperties(e,r),s.measurements=Ke.sanitizeMeasurements(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}var un,ln,fn;t(pn,un=ct);function pn(e,t){var n=un.call(this)||this;return n.aiDataContract={baseType:Be.Required,baseData:Be.Required},n.baseType=e,n.baseData=t,n}(fn=ln=ln||{})[fn.Verbose=0]="Verbose",fn[fn.Information=1]="Information",fn[fn.Warning=2]="Warning",fn[fn.Error=3]="Error",fn[fn.Critical=4]="Critical";var hn=function qn(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},gn=(dn.UserExt="user",dn.DeviceExt="device",dn.TraceExt="trace",dn.WebExt="web",dn.AppExt="app",dn.OSExt="os",dn.SessionExt="ses",dn.SDKExt="sdk",dn);function dn(){}var mn=new hn,vn=function Gn(){},yn=(xn.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=ot.Now(),t=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),n=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();t||n?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>xn.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},xn.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},xn.prototype.initializeAutomaticSession=function(){var e=Ze.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=Ze.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},xn.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");0<t.length&&(this.automaticSession.id=t[0]);try{if(1<t.length){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n),this.automaticSession.acquisitionDate=0<this.automaticSession.acquisitionDate?this.automaticSession.acquisitionDate:0}if(2<t.length){var i=+t[2];this.automaticSession.renewalDate=+new Date(i),this.automaticSession.renewalDate=0<this.automaticSession.renewalDate?this.automaticSession.renewalDate:0}}catch(r){this._logger.throwInternal(L.CRITICAL,H,"Error parsing ai_session cookie, session will be reset: "+Ze.getExceptionName(r),{exception:Ze.dump(r)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(L.WARNING,K,"AI session renewal date is 0, session will be reset.")},xn.prototype.renew=function(){var e=ot.Now();this.automaticSession.id=Ze.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Ze.canUseLocalStorage()||this._logger.throwInternal(L.WARNING,j,"Browser does not support local storage. Session durations will be inaccurate.")},xn.prototype.setCookie=function(e,t,n){var i=t+this.config.sessionExpirationMs(),r=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];i<r?o.setTime(i):o.setTime(r);var s=this.config.cookieDomain?this.config.cookieDomain():null,c=0===this.config.sessionExpirationMs()?"0":o.toUTCString();Ze.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+c,s),this.cookieUpdatedTimestamp=ot.Now()},xn.prototype.setStorage=function(e,t,n){Ze.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))},xn.acquisitionSpan=864e5,xn.renewalSpan=18e5,xn.cookieUpdateInterval=6e4,xn.cookieNameConst="ai_session",xn);function xn(e,t){var n=this;k.isNullOrUndefined(t)?this._logger=new ce:this._logger=t,"function"!=typeof(e=e||{}).sessionExpirationMs&&(e.sessionExpirationMs=function(){return xn.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return xn.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return n.config.namePrefix&&n.config.namePrefix()?xn.cookieNameConst+n.config.namePrefix():xn.cookieNameConst},this.automaticSession=new vn}var Sn=function Wn(){},In=function Bn(){this.id="browser",this.deviceClass="Browser"},Nn=function Fn(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.5.4"},Cn=(wn.prototype.setAuthenticatedUserContext=function(e,t,n){if(void 0===n&&(n=!1),!this.validateUserInput(e)||t&&!this.validateUserInput(t))this._logger.throwInternal(L.WARNING,Z,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var i=this.authenticatedId;t&&(this.accountId=t,i=[this.authenticatedId,this.accountId].join(wn.cookieSeparator)),n&&Ze.setCookie(this._logger,wn.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},wn.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Ze.deleteCookie(this._logger,wn.authUserCookieName)},wn.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},wn.cookieSeparator="|",wn.userCookieName="ai_user",wn.authUserCookieName="ai_authUser",wn);function wn(e,t){this.isNewUser=!1,this._logger=t;var n=Ze.getCookie(this._logger,wn.userCookieName);if(n){this.isNewUser=!1;var i=n.split(wn.cookieSeparator);0<i.length&&(this.id=i[0])}if(this.config=e,!this.id){this.id=Ze.newId();var r=new Date,o=k.toISOString(r);this.accountAcquisitionDate=o,this.isNewUser=!0,r.setTime(r.getTime()+31536e6);var a=[this.id,o],s=this.config.cookieDomain?this.config.cookieDomain():undefined;Ze.setCookie(this._logger,wn.userCookieName,a.join(wn.cookieSeparator)+";expires="+r.toUTCString(),s);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";Ze.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():undefined;var u=Ze.getCookie(this._logger,wn.authUserCookieName);if(u){var l=(u=decodeURI(u)).split(wn.cookieSeparator);l[0]&&(this.authenticatedId=l[0]),1<l.length&&l[1]&&(this.accountId=l[1])}}var _n=function Vn(){},Dn=function Hn(e,t,n,i){this.traceID=e||Ze.generateW3CId(),this.parentID=t,this.name=n;var r=v();!n&&r&&r.pathname&&(this.name=r.pathname),this.name=Ke.sanitizeString(i,this.name)},En=(bn.prototype.applySessionContext=function(e,t){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(e.ext.app.sesId=n.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},bn.prototype.applyOperatingSystemContxt=function(e,t){this.os&&this.os.name&&(e.ext.os=this.os)},bn.prototype.applyApplicationContext=function(e,t){this.application&&("string"==typeof this.application.ver&&(e.tags[mn.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[mn.applicationBuild]=this.application.build))},bn.prototype.applyDeviceContext=function(e,t){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},bn.prototype.applyInternalContext=function(e,t){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[mn.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[mn.internalSdkVersion]=this.internal.sdkVersion))},bn.prototype.applyLocationContext=function(e,t){this.location&&"string"==typeof this.location.ip&&(e.tags[mn.locationIp]=this.location.ip)},bn.prototype.applyOperationContext=function(e,t){if(this.telemetryTrace){var n=e.ext.trace||{traceID:undefined,parentID:undefined};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),e.ext.trace=n}},bn.prototype.applyWebContext=function(e,t){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},bn.prototype.applyUserContext=function(e,t){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[mn.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},bn.prototype.cleanUp=function(e,t){e.ext[gn.DeviceExt]&&0===k.objKeys(e.ext[gn.DeviceExt]).length&&delete e.ext[gn.DeviceExt],e.ext[gn.UserExt]&&0===k.objKeys(e.ext[gn.UserExt]).length&&delete e.ext[gn.UserExt],e.ext[gn.WebExt]&&0===k.objKeys(e.ext[gn.WebExt]).length&&delete e.ext[gn.WebExt],e.ext[gn.OSExt]&&0===k.objKeys(e.ext[gn.OSExt]).length&&delete e.ext[gn.OSExt],e.ext[gn.AppExt]&&0===k.objKeys(e.ext[gn.AppExt]).length&&delete e.ext[gn.AppExt],e.ext[gn.TraceExt]&&0===k.objKeys(e.ext[gn.TraceExt]).length&&delete e.ext[gn.TraceExt]},bn);function bn(e,t){h()&&(this.sessionManager=new yn(t,e),this.application=new Sn,this.device=new In,this.internal=new Nn(t),this.location=new _n,this.user=new Cn(t,e),this.telemetryTrace=new Dn(undefined,undefined,undefined,e),this.session=new vn),this.appId=function(){return null}}var Tn,An=(t(Mn,Tn=ve),Mn.getDefaultConfig=function(){return{instrumentationKey:function(){return undefined},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){return undefined}}},Mn.prototype.initialize=function(e,t,n,i){var r=this;Tn.prototype.initialize.call(this,e,t,n,i);var o=this._getTelCtx(),a=this.identifier,s=Mn.getDefaultConfig();this._extensionConfig=this._extensionConfig||Mn.getDefaultConfig();var c=function(e){u._extensionConfig[e]=function(){return o.getConfig(a,e,s[e]())}},u=this;for(var l in s)c(l);this.context=new En(t.logger,this._extensionConfig),this._breezeChannel=Ze.getExtension(n,"AppInsightsChannelPlugin"),this.context.appId=function(){return r._breezeChannel?r._breezeChannel._appId:null}},Mn.prototype.processTelemetry=function(e,t){if(!k.isNullOrUndefined(e)){if(t=this._getTelCtx(t),e.name===Vt.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new ae(re,(m()||{}).userAgent||"");t.diagLog().logInternalMessage(L.CRITICAL,n)}this.processNext(e,t)}},Mn.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[gn.DeviceExt]=n[gn.DeviceExt]||{},n[gn.WebExt]=n[gn.WebExt]||{},n[gn.UserExt]=n[gn.UserExt]||{},n[gn.OSExt]=n[gn.OSExt]||{},n[gn.AppExt]=n[gn.AppExt]||{},n[gn.TraceExt]=n[gn.TraceExt]||{};var i=this.context;i.applySessionContext(e,t),i.applyApplicationContext(e,t),i.applyDeviceContext(e,t),i.applyOperationContext(e,t),i.applyUserContext(e,t),i.applyOperatingSystemContxt(e,t),i.applyWebContext(e,t),i.applyLocationContext(e,t),i.applyInternalContext(e,t),i.cleanUp(e,t)},Mn);function Mn(){var e=null!==Tn&&Tn.apply(this,arguments)||this;return e.priority=110,e.identifier="AppInsightsPropertiesPlugin",e}e.PropertiesPlugin=An,e.TelemetryTrace=Dn,e.TelemetryContext=En,e.Session=vn,e.SessionManager=yn,function(e,t,n){var i=Object.defineProperty;if(i)try{return i(e,t,n)}catch(r){}typeof n.value!==undefined&&(e[t]=n.value)}(e,"__esModule",{value:!0})});
//# sourceMappingURL=applicationinsights-properties-js.min.js.map
{
"name": "@microsoft/applicationinsights-properties-js",
"version": "2.5.3",
"version": "2.5.4",
"description": "Microsoft Application Insights properties (Part A) plugin",

@@ -35,7 +35,7 @@ "main": "dist/applicationinsights-properties-js.js",

"dependencies": {
"@microsoft/applicationinsights-core-js": "2.5.3",
"@microsoft/applicationinsights-common": "2.5.3",
"tslib": "1.10.0"
"@microsoft/applicationinsights-core-js": "2.5.4",
"@microsoft/applicationinsights-common": "2.5.4",
"tslib": "^1.11.1"
},
"license": "MIT"
}

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

const Version = "2.5.3";
const Version = "2.5.4";

@@ -10,0 +10,0 @@ export class Internal implements IInternal {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc