@microsoft/applicationinsights-channel-js 3.0.0-beta.2208-18 → 3.0.0-beta.2208-19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-channel-js.integrity.json +9 -9
- package/browser/applicationinsights-channel-js.js +10 -4
- package/browser/applicationinsights-channel-js.js.map +1 -1
- package/browser/applicationinsights-channel-js.min.js +2 -2
- package/browser/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.d.ts +1 -1
- package/dist/applicationinsights-channel-js.js +10 -4
- package/dist/applicationinsights-channel-js.js.map +1 -1
- package/dist/applicationinsights-channel-js.min.js +2 -2
- package/dist/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
- package/dist-esm/EnvelopeCreator.js +2 -2
- package/dist-esm/EnvelopeCreator.js.map +1 -1
- package/dist-esm/Interfaces.js +1 -1
- package/dist-esm/InternalConstants.js +1 -1
- package/dist-esm/Offline.js +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +10 -2
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-channel-js.js +1 -1
- package/package.json +3 -3
- package/src/Sender.ts +9 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 3.0.0-beta.2208-
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 3.0.0-beta.2208-19
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(t){"use strict";var r="function",i="object",o="undefined",a="prototype",u="hasOwnProperty",s=Object,M=s[a],R=s.assign,k=s.create,E=s.defineProperty,P=M[u],$=null;function G(e){return void 0===e&&(e=!0),$&&e||(typeof globalThis!==o&&globalThis&&($=globalThis),typeof self!==o&&self&&($=self),typeof window!==o&&window&&($=window),typeof global!==o&&global&&($=global)),$}function W(e){throw new TypeError(e)}(G()||{}).Symbol,(G()||{}).Reflect;var Y=R||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])M[u].call(n,i)&&(e[i]=n[i]);return e},Z=function(e,n){return(Z=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[u](t)&&(e[t]=n[t])})(e,n)};function Q(e,n){function t(){this.constructor=e}typeof n!=r&&null!==n&&W("Class extends value "+n+" is not a constructor or null"),Z(e,n),e[a]=null===n?function(e){if(k)return k(e);if(null==e)return{};var n=typeof e;function t(){}return n!==i&&n!=r&&W("Object prototype may only be an Object:"+e),t[a]=e,new t}(n):(t[a]=n[a],new t)}var ee="constructor",v="prototype",ne="function",te="_dynInstFuncs",re="_isDynProxy",ie="_dynClass",oe="_dynInstChk",ae=oe,ue="_dfOpts",ce="_unknown_",se="__proto__",le="_dyn"+se,fe="_dynInstProto",de="useBaseInst",pe="setInstFuncs",ve=Object,me=ve.getPrototypeOf,he=ve.getOwnPropertyNames,ye=0;function m(e,n){return e&&ve[v].hasOwnProperty.call(e,n)}function ge(e){return e&&(e===ve[v]||e===Array[v])}function we(e){return ge(e)||e===Function[v]}function be(e){if(e){if(me)return me(e);var n=e[se]||e[v]||(e[ee]?e[ee][v]:null),t=e[le]||n;m(e,le)||(delete e[fe],t=e[le]=e[fe]||e[le],e[fe]=n)}return t}function Ie(e,n){var t=[];if(he)t=he(e);else for(var r in e)"string"==typeof r&&m(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function _e(e,n,t){return n!==ee&&typeof e[n]===ne&&(t||m(e,n))}function xe(e){throw new TypeError("DynamicProto: "+e)}function Ce(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Se(e,n){return m(e,v)?e.name||n||ce:((e||{})[ee]||{}).name||n||ce}function h(e,r,n,t){m(e,v)||xe("theClass is an invalid class definition.");var i,o,a,u,c,s,l=e[v],f=(function(e){if(!me)return 1;for(var n=[],t=be(r);t&&!we(t)&&!Ce(n,t);){if(t===e)return 1;n.push(t),t=be(t)}}(l)||xe("["+Se(e)+"] is not in class hierarchy of ["+Se(r)+"]"),null),e=(m(l,ie)?f=l[ie]:(f="_dynCls$"+Se(e,"_")+"$"+ye,ye++,l[ie]=f),h[ue]),d=!!e[de],p=(d&&t&&t[de]!==undefined&&(d=!!t[de]),o={},Ie(i=r,function(e){!o[e]&&_e(i,e,!1)&&(o[e]=i[e])}),o),d=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[re]&&o&&!1!==(r=e[te]||{})[ae]&&(i=(r[n[ie]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(Ie(t,function(e){i[e]=r(n,t,e)}),be(e)),u=[];a&&!we(a)&&!Ce(u,a);)Ie(a,function(e){!i[e]&&_e(a,e,!me)&&(i[e]=r(n,a,e))}),u.push(a),a=be(a);return i}(l,r,p,d)),!!me&&!!e[pe]);a=l,n=f,u=r,c=p,e=!1!==(d=d&&t?!!t[pe]:d),ge(a)||(l=u[te]=u[te]||{},s=l[n]=l[n]||{},!1!==l[ae]&&(l[ae]=!!e),Ie(u,function(e){var t,r,i;_e(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],m(a,e)&&(!a[e]||a[e][re])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&m(t,ie)){var o=e[te]||{};if((i=(o[t[ie]]||{})[n])||xe("Missing ["+n+"] "+ne),!i[oe]&&!1!==o[ae]){for(var a=!m(e,n),u=be(e),c=[];a&&u&&!we(u)&&!Ce(c,u);){var s=u[n];if(s){a=s===r;break}c.push(u),u=be(u)}try{a&&(e[n]=i),i[oe]=1}catch(l){o[ae]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?be(t)[e]:n)!==ne&&xe("["+e+"] is not a "+ne),n)).apply(this,arguments)})[re]=1,i)))}))}h[ue]={setInstFuncs:!0,useBaseInst:!0};var Te=undefined,Ne="object",De="prototype",Ae="undefined",Me="hasOwnProperty",Re="indexOf",ke="length",Ee=Object,Pe=Ee[De],Le=String[De];function Oe(e,n){try{n=e()}catch(t){}return n}function Ue(n){return function(e){return typeof e===n}}function Fe(e){return Pe.toString.call(e)}function je(e){return typeof e===Ae||e===Ae}function L(e){return null===e||je(e)}function qe(e){return!!e||e!==Te}var y=Ue("string"),g=Ue("function");function p(e){return!L(e)&&!!e&&typeof e===Ne}var Be,O=Array.isArray,ze=Ue("number"),Ve=Ue("boolean"),He=function(e){return!(!e||Fe(e)!==Be)};function Ke(e){return!(!e||Oe(function(){return!(e&&0+e)},!e))}var Je="navigator",Xe="window",$e=null,Ge=Oe(function(){return qe(window)},!(Be="[object Error]")),We=Oe(function(){return qe(document)},!1),Ye=Oe(function(){return qe(navigator)},!1);function w(e,n){(n=!1===n?null:$e)||((n=(n=(n=typeof globalThis!==Ae?globalThis:n)||typeof self===Ae?n:self)||typeof window===Ae?n:window)||typeof global===Ae||(n=global),$e=n);return n&&n[e]?n[e]:e===Xe&&Ge?window:null}function Ze(){return We?document:w("document")}function Qe(){return Ge?window:w(Xe)}function en(){return Ye?navigator:w(Je)}function U(e,n,t){if(e&&p(e))for(var r in e)if(o=r,(i=e)&&Pe[Me].call(i,o)&&-1===n.call(t||e,r,e[r]))break;var i,o}function F(e,n,t){if(e)for(var r=e[ke],i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function nn(e){throw new TypeError(e)}Oe(function(){return qe(history)},!1),Oe(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1),Oe(function(){return!(!process||!(process.versions||{}).node)},!1);var tn=Ee.freeze;function rn(e){return p(e)&&null!==e||nn("objKeys called on non-object"),Ee.keys(e)}function on(e){return tn&&U(e,function(e,n){(O(n)||p(n))&&tn(n)}),an(e)}var an=tn||function(e){return e};function j(e,n){var t=Fe(e);return t+": "+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":n?ze(n)?JSON.stringify(e,null,n):JSON.stringify(e,null,n?4:0):JSON.stringify(e))}function un(r){return function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if((e||""===e)&&e[r])return e[r].apply(e,n);nn("'"+r+"' not defined for "+j(e))}}var cn,sn=un(Re),ln=un("map");function fn(e){var n,t,r;throw new(cn=cn||(t=function(){var e=this;return n.apply(e,arguments)||e},r=n=Error,(Ee.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(t,e){U(e,function(e,n){t[e]=n})})(t,r),(i[De]=r[De]).name="UnsupportedError",t[De]=new i,t))(e);function i(){this.constructor=t}}var dn=Ee.defineProperty,pn=un(Re),vn=/^\s+|(?=\s)\s+$/g,mn=Le.trim?un("trim"):function(e){return L(e)&&nn("strTrim called ["+j(e)+"]"),e&&e.replace?e.replace(vn,""):e},Re=function(e){var t={};return U(e,function(e,n){t[e]=n,t[n]=e}),on(t)},hn="name",yn="identifier",gn="push",wn="isInitialized",bn="config",In="logger",_n="length",xn="time",b="processNext",Cn="getPlugin",Sn="teardown",Tn="messageId",Nn="message",Dn="isAsync",An="_doTeardown",Mn="update",Rn="getNext",kn="diagLog",En="setNextPlugin",Pn="createNew",Ln="userAgent",On="split",Un="nodeType",Fn="replace",jn="enableDebugExceptions",qn="toLowerCase",I="type",Bn="handler",zn="call",Vn="isChildEvt",Hn="getCtx",l="setCtx",Kn="complete",q="",_="core",Jn="disabled",Xn="extensionConfig",$n="processTelemetry",Gn="priority",Wn="errorToConsole",Yn="warnToConsole",Zn="getPerfMgr",Qn=null,Le="toISOString",e="toString",n="getPrototypeOf",et="constructor",nt=Date[a][Le]||ut(0,Le),tt=P[e]||ut(0,e),rt=tt[zn](s),it=/-([a-z])/g,ot=/([^\w\d_$])/g,at=/^(\d+[\w\d_$])/;function ut(e,n){return function(){fn("Polyfill required for ["+n+"]")}}var ct=Object[n]||ut(0,n);function st(e){return e&&y(e)?(e=(e=e[Fn](it,function(e,n){return n.toUpperCase()}))[Fn](ot,"_"))[Fn](at,function(e,n){return"_"+n}):e}function lt(e,n){return!(!e||!n)&&-1!==pn(e,n)}function ft(e){return e&&"object"==typeof e&&(!(e=ct(e))||typeof(e=e[et]&&P[zn](e,et)?e[et]:e)==r&&tt[zn](e)===rt)}function dt(e){return nt[zn](e)}function pt(){var e=Date;return e.now?e.now():(new e).getTime()}function B(e){return He(e)?e[hn]:q}function vt(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function mt(e,n){return L(e)?n:e}function ht(e){return e&&R?s(R({},e)):e}var yt="console",gt="JSON",wt="msie",bt="trident/",It="XMLHttpRequest",_t=null,xt=null,Ct=null,St=null;function Tt(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[a])&&(r=n in t)}catch(i){}if(!r)try{r=!je((new e)[n])}catch(i){}}return r}function Nt(){return typeof JSON===i&&JSON||null!==w(gt)}function Dt(){return Nt()?JSON||w(gt):null}function At(){return St=null===St?!!en()&&!!en().sendBeacon:St}function Mt(e){var n=!1;try{var n=!!w("fetch"),t=w("Request");n&&e&&t&&(n=Tt(t,"keepalive"))}catch(r){}return n}function Rt(){return Ct=null===Ct&&(Ct=typeof XDomainRequest!==o)&&kt()?Ct&&!Tt(w(It),"withCredentials"):Ct}function kt(){var e=!1;try{e=!!w(It)}catch(n){}return e}function Et(e){return e?'"'+e[Fn](/\"/g,q)+'"':q}function Pt(e,n){var t,r=typeof console!==o?console:w(yt);r&&(t="log",r[e]&&(t=e),g(r[t])&&r[t](n))}Ot.dataType="MessageData";var Lt=Ot;function Ot(e,n,t,r){void 0===t&&(t=!1),this[Tn]=e,this[Nn]=(t?"AI: ":"AI (Internal): ")+e;t=q,Nt()&&(t=Dt().stringify(r)),e=(n?" message:"+Et(n):q)+(r?" props:"+Et(t):q);this[Nn]+=e}function Ut(e,n){return(e||{})[In]||new Ft(n)}jt.__ieDyn=1;var Ft=jt;function jt(i){this.identifier="DiagnosticLogger",this.queue=[];var c,s,l,f,d=0,p={};h(jt,this,function(o){var e;function a(e,n){var t,r;l<=d||(r=!0,t="AITR_"+n[Tn],p[t]?r=!1:p[t]=!0,r&&(e<=s&&(o.queue[gn](n),d++,u(1===e?"error":"warn",n)),d===l&&(r=new Lt(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue[gn](r),1===e?o[Wn](t):o[Yn](t))))}function u(e,n){var t,r=(t=(t=Qn)||!0===(i||{}).disableDbgExt?t:Qn||(r=w("Microsoft"),Qn=r?r.ApplicationInsights:Qn))?t.ChromeDbgExt:null;r&&r[kn]&&r[kn](e,n)}c=mt((e=i||{}).loggingLevelConsole,0),s=mt(e.loggingLevelTelemetry,1),l=mt(e.maxMessageLimit,25),f=mt(e[jn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return s},o.maxInternalMessageLimit=function(){return l},o[jn]=function(){return f},o.throwInternal=function(e,n,t,r,i){n=new Lt(n,t,i=void 0!==i&&i,r);if(f)throw j(n);t=1===e?Wn:Yn;je(n[Nn])?u("throw"+(1===e?"Critical":"Warning"),n):(i?(r=+n[Tn],!p[r]&&e<=c&&(o[t](n[Nn]),p[r]=!0)):e<=c&&o[t](n[Nn]),a(e,n))},o[Yn]=function(e){Pt("warn",e),u("warning",e)},o[Wn]=function(e){Pt("error",e),u("error",e)},o.resetInternalMessageCount=function(){d=0,p={}},o.logInternalMessage=a})}function qt(e){return e||new Ft}function z(e,n,t,r,i,o){void 0===o&&(o=!1),qt(e).throwInternal(n,t,r,i,o)}function Bt(e,n){qt(e)[Yn](n)}var zt="ParentContextKey",Vt="ChildrenContextKey",Ht=(Kt.ParentContextKey="parent",Kt.ChildrenContextKey="childEvts",Kt);function Kt(e,n,t){var r,i,o,a=this;if(a.start=pt(),a[hn]=e,a[Dn]=t,a[Vn]=function(){return!1},g(n)){var e=a,t="payload",u=function(){return!r&&g(n)&&(r=n(),n=null),r};if(dn)try{var c={enumerable:!0,configurable:!!je(void 0)||void 0};c.get=u,i=e,o=t,dn?dn(i,o,c):fn("Unable to define property ["+Fe(o)+"] on "+j(i))}catch(s){fn("Unable to define accessors for ["+Fe(t)+"] on "+j(e))}}a[Hn]=function(e){return e?(e===Kt[zt]||e===Kt[Vt]?a:a.ctx||{})[e]:null},a[l]=function(e,n){e&&(e===Kt[zt]?(a[e]||(a[Vn]=function(){return!0}),a[e]=n):e===Kt[Vt]?a[e]=n:(a.ctx=a.ctx||{})[e]=n)},a[Kn]=function(){var e=0,n=a[Hn](Kt[Vt]);if(O(n))for(var t=0;t<n[_n];t++){var r=n[t];r&&(e+=r[xn])}a[xn]=pt()-a.start,a.exTime=a[xn]-e,a[Kn]=function(){}}}var Jt="CoreUtils.doPerf";function Xt(e,n,t,r,i){if(e)if(e=e[Zn]?e[Zn]():e){var o,a=void 0,u=e[Hn](Jt);try{if(a=e.create(n(),r,i))return u&&a[l]&&(a[l](Ht[zt],u),u[Hn]&&u[l]&&((o=u[Hn](Ht[Vt]))||(o=[],u[l](Ht[Vt],o)),o[gn](a))),e[l](Jt,a),t(a)}catch(c){a&&a[l]&&a[l]("exception",c)}finally{a&&e.fire(a),e[l](Jt,u)}}t()}var $t=4294967296,Gt=4294967295,Wt=!1,Yt=123456789,Zt=987654321;function Qt(e){var n,t=0,r=w("crypto")||w("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&Gt:t)&&(!(r=en())||r[Ln]===xt&&null!==_t||(r=((xt=r[Ln])||q)[qn](),_t=lt(r,wt)||lt(r,bt)),_t)){if(!Wt)try{var i=2147483647&pt();(n=(Math.random()*$t^i)+i)<0&&(n>>>=0),Yt=123456789+n&Gt,Zt=987654321-n&Gt,Wt=!0}catch(o){}r=((Zt=36969*(65535&Zt)+(Zt>>16)&Gt)<<16)+(65535&(Yt=18e3*(65535&Yt)+(Yt>>16)&Gt))>>>0&Gt|0,t=(r>>>=0)&Gt}return 0===t&&(t=Math.floor($t*Math.random()|0)),e||(t>>>=0),t}var er=E,nr="3.0.0-beta.2208-18",tr="."+function(e){void 0===e&&(e=22);for(var n=Qt()>>>0,t=0,r=q;r[_n]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Qt()<<2&4294967295|3&n)>>>0,t=0);return r}(6),rr=0;function ir(e){return 1===e[Un]||9===e[Un]||!+e[Un]}function or(e,n){return st(e+rr+++((n=void 0!==n&&n)?"."+nr:q)+tr)}function ar(e){var o={id:or("_aiData-"+(e||q)+"."+nr),accept:ir,get:function(e,n,t,r){var i=e[o.id];return i?i[st(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{ir(n)&&!function(e,n,t){if(er)try{return er(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(o,e))[st(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var ur=ar("plugin");function cr(e){return ur.get(e,"state",{},!0)}var sr="TelemetryPluginChain",lr="_hasRun",fr="_getTelCtx",dr=0;function pr(e,a,t,n){var r=null,i=[],o=(null!==n&&(r=n?function(e,n,t){for(;e;){if(e[Cn]()===t)return e;e=e[Rn]()}return mr([t],n[bn]||{},n)}(e,t,n):e),{_next:function(){var e,n=r;return r=n?n[Rn]():null,n||(e=i)&&0<e[_n]&&(F(e,function(e){try{e.func[zn](e.self,e.args)}catch(n){z(t[In],2,73,"Unexpected Exception during onComplete - "+j(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return Ut(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=u(e,null);return e&&!L(e[n])?r=e[n]:a&&!L(a[n])&&(r=a[n]),L(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=o._next();){var n=n[Cn]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i[gn]({func:e,self:je(n)?o.ctx:n,args:t})}}});function u(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(i=a[Xn])&&e?i[e]:r)?p(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e[_n],r=!1,i=1;for(0<t&&Ve(n)&&(r=n,n=e[i]||{},i++),p(n)||(n={});i<t;i++){var o,a,u,c,s=e[i],l=O(s),f=p(s);for(o in s)(l&&o in s||f&&P[zn](s,o))&&(a=s[o],u=void 0,r&&a&&((u=O(a))||ft(a))&&(c=n[o],u?O(c)||(c=[]):ft(c)||(c={}),a=d(r,c,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&U(n,function(e){var n;L(o[e])&&!L(n=a[e])&&(o[e]=n)}),r=o):r=n,r}return o}function vr(e,t,r,n){var i=pr(e,t,r,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n[$n](e,o),!n},o[Pn]=function(e,n){return vr((e=O(e=void 0===e?null:e)?mr(e,t,r,n):e)||o[Rn](),t,r,n)},o}function mr(e,n,t,r){var i,o=null,a=!r;return O(e)&&0<e[_n]&&(i=null,F(e,function(e){(a=!a&&r===e||a)&&e&&g(e[$n])&&(e=hr(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?mr([r],n,t):o}function hr(c,r,i){var s=null,o=g(c[$n]),a=g(c[En]),l=c?c[yn]+"-"+c[Gn]+"-"+dr++:"Unknown-0-"+dr++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&g(c[fr])?c[fr]():n)||vr(u,r,i)),function(e){if(!c||!o)return!1;var n=cr(c);return!n[Sn]&&!n[Jn]&&(a&&c[En](s),c[$n](t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e[b](t)},unload:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=cr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Sn]||(e[_]=null,e[Sn]=!0,e[wn]=!1,c[Sn]&&!0===c[Sn](r,i)&&(t=!0))),t},"unload",function(){},i[Dn])||r[b](i)},update:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=cr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Sn]||c[Mn]&&!0===c[Mn](r,i)&&(t=!0)),t},"update",function(){},!1)||r[b](i)},_id:l,_setNext:function(e){s=e}};function f(t,r,i,e,n){var o=!1,a=c?c[yn]:sr,u=(u=t[lr])||(t[lr]={});return t.setNext(s),c&&Xt(t[_](),function(){return a+":"+i},function(){u[l]=!0;try{var e=s?s._id:q;e&&(u[e]=!1),o=r(t)}catch(n){e=!s||u[s._id];e&&(o=!0),s&&e||z(t[kn](),1,73,"Plugin ["+a+"] failed during "+i+" - "+j(n)+", run flags: "+j(u))}},e,n),o}return an(u)}function yr(){var n=[];return{add:function(e){e&&n[gn](e)},run:function(t,r){F(n,function(e){try{e(t,r)}catch(n){z(t[kn](),2,73,"Unexpected error calling unload handler - "+j(n))}}),n=[]}}}var gr="getPlugin",Le=(wr.__ieDyn=1,wr);function wr(){var o,i,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=i||vr(null,{},a[_]),e=l&&l[gr]?n[Pn](null,l[gr]):n[Pn](null,l)),e}function c(e,n,t){e&&vt(e,Xn,[],null,L),!t&&n&&(t=n.getProcessTelContext()[Rn]());var r=l;l&&l[gr]&&(r=l[gr]()),a[_]=n,i=vr(t,e,n,r)}function p(){o=!1,a[_]=null,l=i=null,d=[],f=yr()}p(),h(wr,a,function(s){var e,n,t,r,i;s.initialize=function(e,n,t,r){c(e,n,r),o=!0},s[Sn]=function(e,n){var t,r,i,o,a=s[_];if(a&&(!e||a===e[_]()))return r=!1,i=e||function c(e,t,n){var r=t[bn]||{},i=pr(e,r,t,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n.unload(o,e),!n},o[Pn]=function(e,n){return c((e=O(e=void 0===e?null:e)?mr(e,r,t,n):e)||o[Rn](),t,n)},o}(null,a,l&&l[gr]?l[gr]():l),o=n||((e={reason:0})[Dn]=!1,e),s[An]&&!0===s[An](i,o,u)?t=!0:u(),t;function u(){var e;r||(r=!0,f.run(i,n),e=d,d=[],F(e,function(e){e.rm()}),!0===t&&i[b](o),p())}},s[Mn]=function(e,n){var t,r,i,o=s[_];if(o&&(!e||o===e[_]()))return r=!1,i=e||function u(e,t,n){var r=t[bn]||{},i=pr(e,r,t,n).ctx;return i[b]=function(n){return i.iterate(function(e){g(e[Mn])&&e[Mn](i,n)})},i[Pn]=function(e,n){return u((e=O(e=void 0===e?null:e)?mr(e,r,t,n):e)||i[Rn](),t,n)},i}(null,o,l&&l[gr]?l[gr]():l),s._doUpdate&&!0===s._doUpdate(i,n||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,c(i.getCfg(),i.core(),i[Rn]()))}},s._addHook=function(e){e&&(O(e)?d=d.concat(e):d[gn](e))},t="_addUnloadCb",n=function(){return f},(e=s)&&n&&(e[t]=(i=r=null,g(t=n)?r=t:i=t,function(){var e=arguments;if(i=r?r():i)return i.add.apply(i,e)}))}),a[kn]=function(e){return n(e)[kn]()},a[wn]=function(){return o},a.setInitialized=function(e){o=e},a[En]=function(e){l=e},a[b]=function(e,n){n?n[b](e):l&&g(l[$n])&&l[$n](e,null)},a._getTelCtx=n}var br="attachEvent",Ir="addEventListener",_r="detachEvent",xr="removeEventListener",Cr="events",Sr=(or("aiEvtPageHide"),or("aiEvtPageShow"),/\.[\.]+/g),Tr=/[\.]+$/,Nr=1,Dr=ar("events"),Ar=/^([^.]*)(?:\.(.+)|)/;function Mr(e){return e&&e[Fn]?e.replace(/^\s*\.*|\.*\s*$/g,q):e}function Rr(e,n){n&&(t=q,O(n)?(t=q,F(n,function(e){(e=Mr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=Mr(n),t&&("."!==t[0]&&(t="."+t),e=(e||q)+t));var t,n=Ar.exec(e||q)||[],e={};return e[I]=n[1],e.ns=(n[2]||q).replace(Sr,".").replace(Tr,q)[On](".").sort().join("."),e}function kr(e,n,t){e=Dr.get(e,Cr,{},t=void 0===t||t);return e[n]||(e[n]=[])}function Er(e,n,t,r){e&&n&&n[I]&&(e[xr]?e[xr](n[I],t,r):e[_r]&&e[_r]("on"+n[I],t))}function Pr(e,n,t,r){for(var i=n[_n];i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Er(e,o.evtName,o[Bn],o.capture),n.splice(i,1))}}function Lr(e,n){return n?Rr("xx",O(n)?[e].concat(n):[e,n]).ns[On]("."):e}function Or(e,n,t,r,i){void 0===i&&(i=!1);var o,a,u=!1;if(e)try{var c,s=Rr(n,r),l=s,f=t,d=i,p=!1;(a=e)&&l&&l[I]&&f&&(a[Ir]?(a[Ir](l[I],f,d),p=!0):a[br]&&(a[br]("on"+l[I],f),p=!0)),(u=p)&&Dr.accept(e)&&((o={guid:Nr++,evtName:s})[Bn]=t,o.capture=i,c=o,kr(e,s.type)[gn](c))}catch(v){}return u}var Ur,Fr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",jr="sampleRate",qr="ProcessLegacy",Br="http.method",zr="https://dc.services.visualstudio.com",Vr="/v2/track",Hr="not_specified",Kr=(Ur={},U({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]},function(e,n){Ur[e]=n[1],Ur[n[0]]=n[1]}),on(Ur)),Jr="split",x="length",Xr="toLowerCase",$r="toString",Gr="removeItem",Wr="name",Yr="pathname",Zr="indexOf",Qr="exceptions",ei="parsedStack",ni="properties",ti="measurements",ri="stringify",ii="message",oi="sizeInBytes",ai="typeName",ui="severityLevel",ci="problemGroup",si="isManual",li="CreateFromInterface",fi="hasFullStack",di="level",pi="method",vi="assembly",mi="fileName",hi="line",yi="duration",gi="receivedResponse",wi="substring";function bi(e,n,t){var r,i,o=n[x],a=(e=e,(n=n)&&150<(n=mn(n[$r]()))[x]&&(i=n[wi](0,150),z(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a[x]!==o){for(var u=0,c=a;t[c]!==undefined;)u++,c=a[wi](0,147)+(r=void 0,(r="00"+u).substr(r[x]-3));a=c}return a}function C(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=mn(n[$r]()))[x]>t&&(r=n[wi](0,t),z(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Ii(e,n){return Si(e,n,2048,66)}function _i(e,n){var t;return n&&32768<n[x]&&(t=n[wi](0,32768),z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function xi(r,e){var i;return e&&(i={},U(e,function(e,n){if(p(n)&&Nt())try{n=Dt()[ri](n)}catch(t){z(r,2,49,"custom property is not valid",{exception:t},!0)}n=C(r,n,8192),e=bi(r,e,i),i[e]=n}),e=i),e}function Ci(t,e){var r;return e&&(r={},U(e,function(e,n){e=bi(t,e,r),r[e]=n}),e=r),e}function Si(e,n,t,r){var i;return n&&(n=mn(n[$r]()))[x]>t&&(i=n[wi](0,t),z(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var Ti=Ze()||{},Ni=0,Di=[null,null,null,null,null];var Ai=[zr+Vr,"https://breeze.aimon.applicationinsights.io"+Vr,"https://dc-int.services.visualstudio.com"+Vr];function Mi(e){return-1!==sn(Ai,e[Xr]())}var Ri=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Wr]=C(e,t)||Hr,i.data=n,i.time=dt(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},ki=(Ei.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Ei.dataType="EventData",Ei);function Ei(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[Wr]=C(e,n)||Hr,this[ni]=xi(e,t),this[ti]=Ci(e,r)}var Pi="error",c="stack",Li="stackDetails",Oi="errorSrc",Ui="message",Fi="description";function ji(e,n){var t=e;return t&&!y(t)&&(JSON&&JSON[ri]?(t=JSON[ri](e),!n||t&&"{}"!==t||(t=g(e[$r])?e[$r]():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function qi(e,n){var t=e;return e&&((t=t&&!y(t)&&(e[Ui]||e[Fi])||t)&&!y(t)&&(t=ji(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&-1===(t||"")[Zr](n)?n+": "+t:t)||""}function Bi(e){return e&&e.src&&y(e.src)&&e.obj&&O(e.obj)}function zi(e){var e=e||"",n=(e=y(e)?e:y(e[c])?e[c]:""+e)[Jr]("\n");return{src:e,obj:n}}function Vi(e){var n,t=null;if(e)try{e[c]?t=zi(e[c]):e[Pi]&&e[Pi][c]?t=zi(e[Pi][c]):e.exception&&e.exception[c]?t=zi(e.exception[c]):Bi(e)?t=e:Bi(e[Li])?t=e[Li]:window&&window.opera&&e[Ui]?t=function(e){for(var n=[],t=e[Jr]("\n"),r=0;r<t[x];r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e[ii]):y(e)?t=zi(e):(n=e[Ui]||e[Fi]||"",y(e[Oi])&&(n&&(n+="\n"),n+=" from "+e[Oi]),n&&(t=zi(n)))}catch(r){t=zi(r)}return t||{src:"",obj:null}}function Hi(e){var n="";if(e&&!(n=e.typeName||e[Wr]||""))try{var t=/function (.{1,200})\(/.exec(e.constructor[$r]()),n=t&&1<t[x]?t[1]:""}catch(r){}return n}function Ki(e){if(e)try{var n,t;if(!y(e))return n=Hi(e),(t=ji(e,!1))&&"{}"!==t||(e[Pi]&&(n=Hi(e=e[Pi])),t=ji(e,!0)),0!==t[Zr](n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}Xi.CreateAutoException=function(e,n,t,r,i,o,a,u){var c=Hi(i||o||e),s={};return s[ii]=qi(e,c),s.url=n,s.lineNumber=t,s.columnNumber=r,s.error=Ki(i||o||e),s.evt=Ki(o||e),s[ai]=c,s.stackDetails=Vi(a||i||o),s.errorSrc=u,s},Xi.CreateFromInterface=function(n,e,t,r){var i=e[Qr]&&ln(e[Qr],function(e){return $i[li](n,e)});return new Xi(n,Y(Y({},e),{exceptions:i}),t,r)},Xi.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual,n=n instanceof Array&&ln(n,function(e){return e.toInterface()})||undefined,u={ver:"4.0"};return u[Qr]=n,u.severityLevel=i,u.properties=t,u.measurements=r,u.problemGroup=o,u.id=a,u.isManual=e,u},Xi.CreateSimpleException=function(e,n,t,r,i,o){var a;return{exceptions:[((a={})[fi]=!0,a.message=e,a.stack=i,a.typeName=n,a)]}},Xi.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Xi.dataType="ExceptionData",Xi.formatError=Ki;var Ji=Xi;function Xi(e,n,t,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,function(e){try{if(p(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a[Qr]=n[Qr]||[],a[ni]=n[ni],a[ti]=n[ti],n[ui]&&(a[ui]=n[ui]),n.id&&(a.id=n.id),n[ci]&&(a[ci]=n[ci]),L(n[si])||(a[si]=n[si])):(a[Qr]=[new $i(e,n,t=t||{})],a[ni]=xi(e,t),a[ti]=Ci(e,r),i&&(a[ui]=i),o&&(a.id=o))}Gi.prototype.toInterface=function(){var e=this,n=e[ei]instanceof Array&&ln(e[ei],function(e){return e.toInterface()});return(e={id:e.id,outerId:e.outerId,typeName:e[ai],message:e[ii],hasFullStack:e[fi],stack:e[c]})[ei]=n||undefined,e},Gi.CreateFromInterface=function(e,n){var t=n[ei]instanceof Array&&ln(n[ei],function(e){return Wi[li](e)})||n[ei];return new Gi(e,Y(Y({},n),{parsedStack:t}))};var $i=Gi;function Gi(e,n,t){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var s,r,i,o,a,u=this;!function(e){try{if(p(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(r=(o=n)&&o.evt,He(o)||(o=o[Pi]||r||o),u[ai]=C(e,Hi(o))||Hr,u[ii]=_i(e,qi(n||o,u[ai]))||Hr,s=n[Li]||Vi(n),u[ei]=function(){var e=s.obj;if(e&&0<e[x]){var n=[],t=0,r=0;if(F(e,function(e){var e=e[$r]();Wi.regex.test(e)&&(e=new Wi(e,t++),r+=e[oi],n.push(e))}),32768<r)for(var i=0,o=n[x]-1,a=0,u=i,c=o;i<o;){if(32768<(a+=n[i][oi]+n[o][oi])){n.splice(u,c-u+1);break}u=i,c=o,i++,o--}}return n}(),u[c]=(r=e,a="",(o=s)&&(o.obj?F(o.obj,function(e){a+=e+"\n"}):a=o.src||""),(e=a)&&32768<(o=""+e)[x]&&(i=o[wi](0,32768),z(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),i||e),u.hasFullStack=O(u.parsedStack)&&0<u.parsedStack[x],t&&(t[ai]=t[ai]||u[ai])):(u[ai]=n[ai],u[ii]=n[ii],u[c]=n[c],u[ei]=n[ei]||[],u[fi]=n[fi])}Yi.CreateFromInterface=function(e){return new Yi(e,null)},Yi.prototype.toInterface=function(){var e=this;return{level:e[di],method:e[pi],assembly:e[vi],fileName:e[mi],line:e[hi]}},Yi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Yi.baseSize=58;var Wi=Yi;function Yi(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r[oi]=0,"string"==typeof e?(t=e,r[di]=n,r[pi]="<no_method>",r[vi]=mn(t),r[mi]="",r[hi]=0,(n=t.match(Yi.regex))&&5<=n[x]&&(r[pi]=mn(n[2])||r[pi],r[mi]=mn(n[4]),r[hi]=parseInt(n[5])||0)):(r[di]=e[di],r[pi]=e[pi],r[vi]=e[vi],r[mi]=e[mi],r[hi]=e[hi],r[oi]=0),r.sizeInBytes+=r.method[x],r.sizeInBytes+=r.fileName[x],r.sizeInBytes+=r.assembly[x],r[oi]+=Yi.baseSize,r.sizeInBytes+=r.level.toString()[x],r.sizeInBytes+=r.line.toString()[x]}var Zi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Qi=(eo.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",eo.dataType="MetricData",eo);function eo(e,n,t,r,i,o,a,u,c){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var s=new Zi;s.count=0<r?r:undefined,s.max=isNaN(o)||null===o?undefined:o,s.min=isNaN(i)||null===i?undefined:i,s[Wr]=C(e,n)||Hr,s.value=t,s.stdDev=isNaN(a)||null===a?undefined:a,this.metrics=[s],this[ni]=xi(e,u),this[ti]=Ci(e,c)}var no="";function to(e){var n=no+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=no+Math.floor(e/6e4)%60,r=no+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=no+e%1e3)[x]?"00"+e:2===e[x]?"0"+e:e,n=n[x]<2?"0"+n:n,t=t[x]<2?"0"+t:t,r=r[x]<2?"0"+r:r;return(0<i?i+".":no)+r+":"+t+":"+n+"."+e}io.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",io.dataType="PageviewData";var ro=io;function io(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=a&&Si(e,a,128,69)[$r](),u.url=Ii(e,t),u[Wr]=C(e,n)||Hr,isNaN(r)||(u[yi]=to(r)),u[ni]=xi(e,i),u[ti]=Ci(e,o)}ao.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ao.dataType="RemoteDependencyData";var oo=ao;function ao(e,n,t,r,i,o,a,u,c,s,l,f){void 0===c&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var d,p,v,m=this,t=(m.ver=2,m.id=n,m[yi]=to(i),m.success=o,m.resultCode=a+"",m.type=C(e,c),n=e,i=u,c=a=o=r,a=(u=t)&&0<u[x]?(d=u,v=(t=Di)[p=Ni],Ti.createElement?t[p]||(v=t[p]=Ti.createElement("a")):v={host:function(){e=null,d&&null!=(t=d.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t[x]&&y(t[2])&&0<t[2][x]&&(e=t[2]||"",2<t[x]&&(n=(t[1]||"")[Xr](),t=t[3]||"",e+=t="http"===n&&":80"===t||"https"===n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t[x]&&y(t[2])&&0<t[2][x])return t[2]+(t[3]||"")}return n}()},v.href=d,++p>=t[x]&&(p=0),Ni=p,p=(t=v).host,a||(null!=t[Yr]?("/"!=((v=0===t.pathname[x]?"/":t[Yr])[0]||"")&&(v="/"+v),c=t[Yr],C(n,i?i+" "+v:v)):C(n,u))):p=o,{target:p,name:a,data:c});m.data=Ii(e,r)||t.data,m.target=C(e,t.target),s&&(m.target="".concat(m.target," | ").concat(s)),m[Wr]=C(e,t[Wr]),m[ni]=xi(e,l),m[ti]=Ci(e,f)}co.envelopeType="Microsoft.ApplicationInsights.{0}.Message",co.dataType="MessageData";var uo=co;function co(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o[ii]=_i(e,n=n||Hr),o[ni]=xi(e,r),o[ti]=Ci(e,i),t&&(o[ui]=t)}lo.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",lo.dataType="PageviewPerformanceData";var so=lo;function lo(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=Ii(e,t),u[Wr]=C(e,n)||Hr,u[ni]=xi(e,i),u[ti]=Ci(e,o),a&&(u.domProcessing=a.domProcessing,u[yi]=a[yi],u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u[gi]=a[gi],u.sentRequest=a.sentRequest)}var fo=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};function po(e){var n="ai."+e+".";return function(e){return n+e}}var vo,mo,e=po("application"),n=po("device"),E=po("location"),ho=po("operation"),yo=po("session"),go=po("user"),wo=po("cloud"),bo=po("internal"),Io=(mo={applicationVersion:e("ver"),applicationBuild:e("build"),applicationTypeId:e("typeId"),applicationId:e("applicationId"),applicationLayer:e("layer"),deviceId:n("id"),deviceIp:n("ip"),deviceLanguage:n("language"),deviceLocale:n("locale"),deviceModel:n("model"),deviceFriendlyName:n("friendlyName"),deviceNetwork:n("network"),deviceNetworkName:n("networkName"),deviceOEMName:n("oemName"),deviceOS:n("os"),deviceOSVersion:n("osVersion"),deviceRoleInstance:n("roleInstance"),deviceRoleName:n("roleName"),deviceScreenResolution:n("screenResolution"),deviceType:n("type"),deviceMachineName:n("machineName"),deviceVMName:n("vmName"),deviceBrowser:n("browser"),deviceBrowserVersion:n("browserVersion"),locationIp:E("ip"),locationCountry:E("country"),locationProvince:E("province"),locationCity:E("city"),operationId:ho("id"),operationName:ho("name"),operationParentId:ho("parentId"),operationRootId:ho("rootId"),operationSyntheticSource:ho("syntheticSource"),operationCorrelationVector:ho("correlationVector"),sessionId:yo("id"),sessionIsFirst:yo("isFirst"),sessionIsNew:yo("isNew"),userAccountAcquisitionDate:go("accountAcquisitionDate"),userAccountId:go("accountId"),userAgent:go("userAgent"),userId:go("id"),userStoreRegion:go("storeRegion"),userAuthUserId:go("authUserId"),userAnonymousUserAcquisitionDate:go("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:go("authUserAcquisitionDate"),cloudName:wo("name"),cloudRole:wo("role"),cloudRoleVer:wo("roleVer"),cloudRoleInstance:wo("roleInstance"),cloudEnvironment:wo("environment"),cloudLocation:wo("location"),cloudDeploymentUnit:wo("deploymentUnit"),internalNodeName:bo("nodeName"),internalSdkVersion:bo("sdkVersion"),internalAgentVersion:bo("agentVersion"),internalSnippet:bo("snippet"),internalSdkSrc:bo("sdkSrc")},Q(_o,vo=function(){var t=this;U(mo,function(e,n){t[e]=n})}),_o);function _o(){return vo.call(this)||this}var f=new Io,xo=Re({LocalStorage:0,SessionStorage:1}),Co=(Re({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function So(e){try{if(L(G()))return null;var n=(new Date)[$r](),t=w(e===xo.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n,n),t.getItem(n)!==n);if(t[Gr](n),!r)return t}catch(i){}return null}function To(){return No()?So(xo.SessionStorage):null}function No(e){return Co=e||Co===undefined?!!So(xo.SessionStorage):Co}function Do(e,n){var t=To();if(null!==t)try{return t.getItem(n)}catch(r){Co=!1,z(e,2,2,"Browser failed read of session storage. "+B(r),{exception:j(r)})}return null}function Ao(e,n,t){var r=To();if(null!==r)try{r.setItem(n,t)}catch(i){Co=!1,z(e,2,4,"Browser failed write to session storage. "+B(i),{exception:j(i)})}}var Mo="duration",V="tags",Ro="deviceType",d="data",ko="name",Eo="traceID",H="length",Po="stringify",Lo="measurements",S="dataType",Oo="envelopeType",Uo="toString",Fo="onLine",jo="enqueue",qo="count",Bo="push",zo="emitLineDelimitedJson",Vo="clear",Ho="batchPayloads",Ko="markAsSent",Jo="clearSent",Xo="BUFFER_KEY",$o="SENT_BUFFER_KEY",Go="MAX_BUFFER_SIZE",Wo="namePrefix",Yo="maxBatchSizeInBytes",Zo="triggerSend",K="diagLog",Qo="onunloadDisableBeacon",ea="isBeaconApiDisabled",na="_sender",J="_senderConfig",ta="_buffer",ra="enableSessionStorageBuffer",ia="samplingPercentage",oa="instrumentationKey",aa="endpointUrl",ua="customHeaders",ca="disableXhr",sa="onunloadDisableFetch",la="disableTelemetry",fa="baseType",da="sampleRate",pa="convertUndefined",X="_onError",va="_onPartialSuccess",ma="_onSuccess",ha="itemsAccepted",ya="isRetryDisabled",ga="setRequestHeader",wa="maxBatchInterval",ba="eventsSendRequest",Ia="disableInstrumentationKeyValidation",_a="getSamplingScore",xa="baseType",T="baseData",N="properties",Ca="true";function D(e,n,t){vt(e,n,t,Ke)}function Sa(e,t,r){L(e)||U(e,function(e,n){ze(n)?r[e]=n:y(n)?t[e]=n:Nt()&&(t[e]=Dt()[Po](n))})}function Ta(t,r){L(t)||U(t,function(e,n){t[e]=n||r})}function Na(e,n,t,r){for(var r=new Ri(e,r,n),n=(D(r,"sampleRate",t[jr]),(t[T]||{}).startTime&&(r.time=dt(t[T].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r[ko]=r[ko].replace("{0}",n),e),e=t,i=r,o=i[V]=i[V]||{},a=e.ext=e.ext||{},u=e[V]=e[V]||[],c=a.user,c=(c&&(D(o,f.userAuthUserId,c.authId),D(o,f.userId,c.id||c.localId)),a.app),c=(c&&D(o,f.sessionId,c.sesId),a.device),c=(c&&(D(o,f.deviceId,c.id||c.localId),D(o,f[Ro],c.deviceClass),D(o,f.deviceIp,c.ip),D(o,f.deviceModel,c.model),D(o,f[Ro],c[Ro])),e.ext.web),e=(c&&(D(o,f.deviceLanguage,c.browserLang),D(o,f.deviceBrowserVersion,c.browserVer),D(o,f.deviceBrowser,c.browser),D(e=(e=(e=i[d]=i[d]||{})[T]=e[T]||{})[N]=e[N]||{},"domain",c.domain),D(e,"isManual",c.isManual?Ca:null),D(e,"screenRes",c.screenRes),D(e,"userConsent",c.userConsent?Ca:null)),a.os),c=(e&&D(o,f.deviceOS,e[ko]),a.trace),s=(c&&(D(o,f.operationParentId,c.parentID),D(o,f.operationName,C(n,c[ko])),D(o,f.operationId,c[Eo])),{}),l=u[H]-1;0<=l;l--)U(u[l],function(e,n){s[e]=n}),u.splice(l,1);U(u,function(e,n){s[e]=n});e=Y(Y({},o),s);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(Aa.Version)),i[V]=ht(e),t[V]=t[V]||[],ht(r)}function Da(e,n){L(n[T])&&z(e,1,46,"telemetryItem.baseData cannot be null.")}var Aa={Version:"3.0.0-beta.2208-18"};function Ma(e,n,t){Da(e,n);var r={},i={},t=(n[xa]!==ki[S]&&(r.baseTypeSource=n[xa]),n[xa]===ki[S]?(r=n[T][N]||{},i=n[T][Lo]||{}):n[T]&&Sa(n[T],r,i),Sa(n[d],r,i),L(t)||Ta(r,t),n[T][ko]),t=new ki(e,t,r,i),r=new fo(ki[S],t);return Na(e,ki[Oo],n,r)}function Ra(e,n){var t,r,i=void 0;if(void 0===i&&(i=!1),e)try{var o=Rr(null,n),a=!1,u=e,c=function(e){return!(!o.ns&&null!==e[Bn])&&(a=!0)};(t=o)[I]?Pr(u,kr(u,t[I]),t,c):(U(r=Dr.get(u,Cr,{}),function(e,n){Pr(u,n,t,c)}),0===rn(r)[_n]&&Dr.kill(u,Cr)),a||Er(e,o,null,i)}catch(s){}}ka.__ieDyn=1;e=ka;function ka(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(ka,this,function(n){n[jo]=function(e){n[qo]()>=r.eventsLimitInMem()?o||(z(t,2,105,"Maximum in-memory buffer size reached: "+n[qo](),!0),o=!0):i[Bo](e)},n[qo]=function(){return i[H]},n.size=function(){for(var e=i[H],n=0;n<i[H];n++)e+=i[n][H];return r[zo]()||(e+=2),e},n[Vo]=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n[Ho]=function(e){return e&&0<e[H]?r[zo]()?e.join("\n"):"["+e.join(",")+"]":null}})}Q(La,Ea=e),La.__ieDyn=1;var Ea,Pa=La;function La(e,n){e=Ea.call(this,e,n)||this;return h(La,e,function(e,n){e[Ko]=function(e){n[Vo]()},e[Jo]=function(e){}}),e}Q(A,Oa=e),A.BUFFER_KEY="AI_buffer",A.SENT_BUFFER_KEY="AI_sentBuffer",A.MAX_BUFFER_SIZE=2e3;var Oa,Ua=A;function A(u,c){var e=Oa.call(this,u,c)||this,s=!1;return h(A,e,function(t,n){var e=o(A[Xo]),r=o(A[$o]),r=t._set(e.concat(r));function i(n,e){var t=[];return F(e,function(e){g(e)||-1!==sn(n,e)||t[Bo](e)}),t}function o(e){try{var e=c[Wo]&&c[Wo]()?c[Wo]()+"_"+e:e,n=Do(u,e);if(n){var t=Dt().parse(n);if((t=y(t)?Dt().parse(t):t)&&O(t))return t}}catch(r){z(u,1,42," storage key: "+e+", "+B(r),{exception:j(r)})}return[]}function a(e,n){try{var e=c[Wo]&&c[Wo]()?c[Wo]()+"_"+e:e,t=JSON[Po](n);Ao(u,e,t)}catch(r){Ao(u,e,JSON[Po]([])),z(u,2,41," storage key: "+e+", "+B(r)+". Buffer cleared",{exception:j(r)})}}r[H]>A[Go]&&(r[H]=A[Go]),a(A[$o],[]),a(A[Xo],r),t[jo]=function(e){t[qo]()>=A[Go]?s||(z(u,2,67,"Maximum buffer size reached: "+t[qo](),!0),s=!0):(n[jo](e),a(A[Xo],t._get()))},t[Vo]=function(){n[Vo](),a(A[Xo],t._get()),a(A[$o],[]),s=!1},t[Ko]=function(e){a(A[Xo],t._set(i(e,t._get())));var n=o(A[$o]);n instanceof Array&&e instanceof Array&&((n=n.concat(e))[H]>A[Go]&&(z(u,1,67,"Sent buffer reached its maximum size: "+n[H],!0),n[H]=A[Go]),a(A[$o],n))},t[Jo]=function(e){e=i(e,o(A[$o]));a(A[$o],e)}}),e}ja.__ieDyn=1;var Fa=ja;function ja(f){h(ja,this,function(e){function s(a,u){var e="__aiCircularRefCheck",c={};if(!a)return z(f,1,48,"cannot serialize object because it is null or undefined",{name:u},!0),c;if(a[e])return z(f,2,50,"Circular reference detected while serializing object",{name:u},!0),c;if(a.aiDataContract)return a[e]=!0,U(a.aiDataContract,function(e,n){var t=g(n)?1&n():1&n,r=g(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=p(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?l:s)(a[e],e):a[e])!==undefined&&(c[e]=t):z(f,1,24,"Missing required field specification. The field is required but not present on source",{field:e,name:u})}),delete a[e],c;if("measurements"===u)c=t(a,"number",u);else if("properties"===u)c=t(a,"string",u);else if("tags"===u)c=t(a,"string",u);else if(O(a))c=l(a,u);else{z(f,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{Dt()[Po](a),c=a}catch(n){z(f,1,48,n&&g(n[Uo])?n[Uo]():"Error serializing object",null,!0)}}return c}function l(e,n){if(e)if(O(e))for(var t=[],r=0;r<e[H];r++){var i=s(e[r],n+"["+r+"]");t[Bo](i)}else z(f,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},U(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n[Uo]?i[e]=n[Uo]():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",z(f,1,i[e],null,!0))})),i}e.serialize=function(e){e=s(e,"root");try{return Dt()[Po](e)}catch(n){z(f,1,48,n&&g(n[Uo])?n[Uo]():"Error serializing object",null,!0)}}})}Ba.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Ba.INT_MAX_VALUE*100},Ba.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[H]<8;)e=e.concat(e);for(var n=5381,t=0;t<e[H];++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Ba.INT_MAX_VALUE=2147483647;var qa=Ba;function Ba(){}var za=function(){var n=new qa,t=new Io;this[_a]=function(e){return e[V]&&e[V][t.userId]?n.getHashCodeScore(e[V][t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e[V]&&e[V][t.operationId]?n.getHashCodeScore(e[V][t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace[Eo]?n.getHashCodeScore(e.ext.telemetryTrace[Eo]):100*Math.random()}},Va=(Ha.prototype.isSampledIn=function(e){var n=this[da];return null===n||n===undefined||100<=n||e.baseType===Qi[S]||this.samplingScoreGenerator[_a](e)<n},Ha);function Ha(e,n){this.INT_MAX_VALUE=2147483647;n=n||Ut(null);(100<e||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[da]=e,this.samplingScoreGenerator=new za}function Ka(e){try{return e.responseText}catch(n){}return null}function Ja(){var e,n={endpointUrl:function(){return zr+Vr}};return n[zo]=function(){return!1},n[wa]=function(){return 15e3},n[Yo]=function(){return 102400},n[la]=function(){return!1},n[ra]=function(){return!0},n[ya]=function(){return!1},n[ea]=function(){return!0},n[ca]=function(){return!1},n[sa]=function(){return!1},n[Qo]=function(){return!1},n[oa]=function(){return e},n[Wo]=function(){return e},n[ia]=function(){return 100},n[ua]=function(){},n[pa]=function(){return e},n.eventsLimitInMem=function(){return 1e4},n}(n={})[ki.dataType]=Ma,n[uo.dataType]=function(e,n,t){Da(e,n);var r=n[T].message,i=n[T].severityLevel,o=n[T][N]||{},a=n[T][Lo]||{},t=(Sa(n[d],o,a),L(t)||Ta(o,t),new uo(e,r,i,o,a)),r=new fo(uo[S],t);return Na(e,uo[Oo],n,r)},n[ro.dataType]=function(e,n,t){Da(e,n);var r,i=n[T],i=(L(i)||L(i[N])||L(i[N][Mo])?L(n[d])||L(n[d][Mo])||(r=n[d][Mo],delete n[d][Mo]):(r=i[N][Mo],delete i[N][Mo]),n[T]),o=(((n.ext||{}).trace||{})[Eo]&&(o=n.ext.trace[Eo]),i.id||o),a=i[ko],u=i.uri,c=i[N]||{},s=i[Lo]||{},i=(L(i.refUri)||(c.refUri=i.refUri),L(i.pageType)||(c.pageType=i.pageType),L(i.isLoggedIn)||(c.isLoggedIn=i.isLoggedIn[Uo]()),L(i[N])||U(i[N],function(e,n){c[e]=n}),Sa(n[d],c,s),L(t)||Ta(c,t),new ro(e,a,u,r,c,s,o)),t=new fo(ro[S],i);return Na(e,ro[Oo],n,t)},n[so.dataType]=function(e,n,t){Da(e,n);var r=n[T],i=r[ko],o=r.uri||r.url,a=r[N]||{},u=r[Lo]||{},t=(Sa(n[d],a,u),L(t)||Ta(a,t),new so(e,i,o,undefined,a,u,r)),i=new fo(so[S],t);return Na(e,so[Oo],n,i)},n[Ji.dataType]=function(e,n,t){Da(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Sa(n[d],i,r),L(t)||Ta(i,t),n[T]),t=Ji.CreateFromInterface(e,t,i,r),i=new fo(Ji[S],t);return Na(e,Ji[Oo],n,i)},n[Qi.dataType]=function(e,n,t){Da(e,n);var r=n[T],i=r[N]||{},o=r[Lo]||{},t=(Sa(n[d],i,o),L(t)||Ta(i,t),new Qi(e,r[ko],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new fo(Qi[S],t);return Na(e,Qi[Oo],n,r)},n[oo.dataType]=function(e,n,t){Da(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Sa(n[d],i,r),L(t)||Ta(i,t),n[T]);if(L(t))return Bt(e,"Invalid input for dependency data"),null;var o=t[N]&&t[N][Br]?t[N][Br]:"GET",o=new oo(e,t.id,t.target,t[ko],t[Mo],t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new fo(oo[S],o);return Na(e,oo[Oo],n,t)};var Xa,$a=n,E=(Q(Ga,Xa=Le),Ga.constructEnvelope=function(e,n,t,r){e=n===e.iKey||L(n)?e:Y(Y({},e),{iKey:n});return($a[e.baseType]||Ma)(t,e,r)},Ga);function Ga(){var x,C,S,r,T,N,D,A,M,R,k,E=Xa.call(this)||this,P=(E.priority=1001,E.identifier="AppInsightsChannelPlugin",E._senderConfig=Ja(),0);return h(Ga,E,function(l,a){function s(e,n,t,r,i,o){var a=null;l._appId||(a=v(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||u(t))&&!l[J][ya]()&&g(e)?(m(n),z(l[K](),2,40,". Response code "+e+". Will retry to send "+n[H]+" items.")):l[X](n,i):R&&!R.isOnline()?l[J][ya]()||(m(n,10),z(l[K](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!R.isOnline(),". Will retry to send ").concat(n.length," items."))):(u(t),206===e?(a=a||v(o))&&!l[J][ya]()?l[va](n,a):l[X](n,i):(x=0,l[ma](n,r)))}function u(e){return!(10<=N)&&!L(e)&&""!==e&&e!==l[J][aa]()&&(l[J][aa]=function(){return e},++N,1)}function n(e,n){M?M(e,!1):c(e)}function o(e){var n=en(),t=l[ta],r=l[J][aa](),i=l._buffer[Ho](e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t[Ko](e),l._onSuccess(e,e[H])),r}function c(e,n){if(O(e)&&0<e[H]&&!o(e)){for(var t=[],r=0;r<e[H];r++){var i=e[r];o([i])||t[Bo](i)}0<t[H]&&(A&&A(t,!0),z(l[K](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=l[J][aa]();try{t[Fr]=!0}catch(i){}t.open("POST",r,e),t[ga]("Content-type","application/json"),Mi(r)&&t[ga](Kr[6],Kr[7]),F(rn(D),function(e){t[ga](e,D[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n[H])},t.onerror=function(e){return l[X](n,w(t),e)};e=l._buffer[Ho](n);t.send(e),l._buffer[Ko](n)}function d(e,n){if(O(e)){for(var t=e[H],r=0;r<e[H];r++)t+=e[r][H];P+t<=65e3?i(e,!1):At()?c(e):(A&&A(e,!0),z(l[K](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function p(e,n){i(e,!0)}function i(t,r){var e=l[J][aa](),n=l._buffer[Ho](t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n[H],n=!1,u=!1,e=(Mi(e)&&o.append(Kr[6],Kr[7]),F(rn(D),function(e){o.append(e,D[e])}),(i={method:"POST",headers:o,body:i})[Fr]=!0,r||(n=i.keepalive=!0,P+=a),new Request(e,i));try{e[Fr]=!0}catch(c){}l._buffer[Ko](t);try{fetch(e).then(function(n){r||(P-=a,a=0),u||(u=!0,n.ok?n.text().then(function(e){s(n.status,t,n.url,t[H],n.statusText,e)}):l[X](t,n.statusText))})["catch"](function(e){r||(P-=a,a=0),u||(u=!0,l[X](t,e.message))})}catch(c){u||l[X](t,j(c))}n&&!u&&(u=!0,l._onSuccess(t,t[H]))}function v(e){try{if(e&&""!==e){var n=Dt().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n[ha]&&n.itemsReceived-n.itemsAccepted===n.errors[H])return n}}catch(t){z(l[K](),1,43,"Cannot parse the response. "+B(t),{response:e})}return null}function m(e,n){if(void 0===n&&(n=1),e&&0!==e[H]){var t=l[ta];t[Jo](e),x++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t[jo](o)}n=x<=1?10:(e=1+Math.floor((Math.pow(2,x)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=pt()+1e3*n;C=e,h()}}function h(){var e;r||S||(e=C?Math.max(0,C-pt()):0,e=Math.max(l[J][wa](),e),r=setTimeout(function(){r=null,l[Zo](!0,null,1)},e))}function y(){clearTimeout(r),C=r=null}function g(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function w(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Ka(e)||e.response||"":n}function b(n,e){var t=l[ta],r=Qe(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l[X](n,I(i),e)},r&&r.location&&r.location.protocol||"");if(l[J][aa]().lastIndexOf(r,0))return z(l[K](),2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t[Vo]();r=l[J][aa]().replace(/^(https?:)/,""),i.open("POST",r),r=t[Ho](n);i.send(r),t[Ko](n)}function I(e,n){return e?"XDomainRequest,Response:"+Ka(e)||"":n}function _(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t[ba])try{t[ba](e,n)}catch(r){z(l[K](),1,74,"send request notification failed: "+B(r),{exception:j(r)})}}function t(){l[na]=null,l[ta]=null,l._appId=null,l._sample=null,S=!(D={}),P=N=x=0,k=M=A=T=r=C=R=null}t(),l.pause=function(){y(),S=!0},l.resume=function(){S&&(S=!1,C=null,l._buffer.size()>l._senderConfig[Yo]()&&l[Zo](!0,null,10),h())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!S){y();try{l[Zo](e,null,t||1)}catch(r){z(l[K](),1,22,"flush failed, telemetry will not be collected: "+B(r),{exception:j(r)})}}},l.onunloadFlush=function(){if(!S)if(!1!==l._senderConfig[Qo]()&&!1!==l[J][ea]()||!At())l.flush();else try{l[Zo](!0,n,2)}catch(e){z(l[K](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+B(e),{exception:j(e)})}},l.addHeader=function(e,n){D[e]=n},l.initialize=function(e,n,t,r){l.isInitialized()&&z(l[K](),1,28,"Sender is already initialized"),a.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(T=new Fa(n.logger),C=null,x=0,l[na]=null,N=0,l[K]()),r=(k=Lr(or("Sender"),n.evtNamespace&&n.evtNamespace()),R=function(e){var n,t=Ze(),r=en(),i=!1,o=!0,a=Lr(or("OfflineListener"),e);try{u(Qe())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!L(r[Fo])&&(o=r[Fo])}catch(l){i=!1}function u(e){var n=!1;return e&&(n=Or(e,"online",c,a))&&Or(e,"offline",s,a),n}function c(){o=!0}function s(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!L(r[Fo])&&(e=r[Fo]),e},isListening:function(){return i},unload:function(){var e=Qe();e&&i&&(Ra(e,a),t&&!je((e=t.body||t).ononline)&&Ra(e,a),i=!1)}}}(k),U(Ja(),function(e,n){l[J][e]=function(){return i.getConfig(o,e,n())}}),l._buffer=new(l[J][ra]()&&No()?Ua:Pa)(t,l[J]),l._sample=new Va(l[J][ia](),t),!L(e[Ia])&&e[Ia]||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e[oa])||z(t,1,100,"Invalid Instrumentation key "+e[oa]),!Mi(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders()[H]&&F(l[J][ua](),function(e){E.addHeader(e.header,e.value)}),l[J]),n=null;!r[ca]()&&Rt()?n=b:!r[ca]()&&kt()&&(n=f),!n&&Mt()&&(n=p),A=n||f,!r[ea]()&&At()&&(n=c),l[na]=n||f,M=!r[sa]()&&Mt(!0)?d:At()?c:!r[ca]()&&Rt()?b:!r[ca]()&&kt()?f:A},l.processTelemetry=function(e,n){var t=(n=l._getTelCtx(n))[K]();try{if(l[J][la]())return;if(!e)return void z(t,1,7,"Cannot send empty telemetry");if(e.baseData&&!e[fa])return void z(t,1,70,"Cannot send telemetry without baseData and baseType");if(e[fa]||(e[fa]="EventData"),!l[na])return void z(t,1,28,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void z(t,2,33,"Telemetry item was sampled out and not sent",{SampleRate:l._sample[da]});e[jr]=l._sample[da];var r=l[J][pa]()||undefined,i=e.iKey||l[J][oa](),o=Ga.constructEnvelope(e,i,t,r);if(!o)return void z(t,1,47,"Unable to create an AppInsights envelope");var a=!1;if(e[V]&&e[V][qr]&&(F(e[V][qr],function(e){try{e&&!1===e(o)&&(a=!0,Bt(t,"Telemetry processor check returns false"))}catch(n){z(t,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+B(n),{exception:j(n)},!0)}}),delete e[V][qr]),a)return;var u=T.serialize(o),c=l[ta];c.size()+u[H]>l[J][Yo]()&&l[Zo](!0,null,10),c[jo](u),h()}catch(s){z(t,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+B(s),{exception:j(s)})}l.processNext(e,n)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&s(e.status,n,e.responseURL,t,w(e),Ka(e)||e.response)},l[Zo]=function(e,n,t){if(void 0===e&&(e=!0),!S)try{var r,i=l[ta];l[J][la]()?i[Vo]():0<i[qo]()&&(r=i.getItems(),_(t||0,e),n?n.call(E,r,e):l[na](r,e)),y()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=en()||{})?(n[Ln]||q)[qn]():q)||q)[qn]();if(lt(n,wt))return e=Ze()||{},Math.max(parseInt(n[On](wt)[1]),e.documentMode||0);if(lt(n,bt)){e=parseInt(n[On](bt)[1]);if(e)return e+4}return null}();(!i||9<i)&&z(l[K](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+B(o),{exception:j(o)})}},l._doTeardown=function(e,n){l.onunloadFlush(),R.unload(),t()},l[X]=function(e,n,t){z(l[K](),2,26,"Failed to send telemetry.",{message:n}),l._buffer[Jo](e)},l[va]=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],u=e.splice(a.index,1)[0];(g(a.statusCode)?r:t)[Bo](u)}0<e[H]&&l[ma](e,n[ha]),0<t[H]&&l[X](t,w(null,["partial success",n[ha],"of",n.itemsReceived].join(" "))),0<r[H]&&(m(r),z(l[K](),2,40,"Partial success. Delivered: "+e[H]+", Failed: "+t[H]+". Will retry to send "+r[H]+" our of "+n.itemsReceived+" items"))},l[ma]=function(e,n){l._buffer[Jo](e)},l._xdrOnLoad=function(e,n){var t=Ka(e);!e||t+""!="200"&&""!==t?(t=v(t))&&t.itemsReceived&&t.itemsReceived>t[ha]&&!l[J][ya]()?l[va](n,t):l[X](n,I(e)):(x=0,l[ma](n,0))}}),E}t.Sender=E,Object.defineProperty(t,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var e=this,n=function(t){"use strict";var r="function",i="object",o="undefined",a="prototype",u="hasOwnProperty",s=Object,M=s[a],R=s.assign,k=s.create,E=s.defineProperty,P=M[u],$=null;function G(e){return void 0===e&&(e=!0),$&&e||(typeof globalThis!==o&&globalThis&&($=globalThis),typeof self!==o&&self&&($=self),typeof window!==o&&window&&($=window),typeof global!==o&&global&&($=global)),$}function W(e){throw new TypeError(e)}(G()||{}).Symbol,(G()||{}).Reflect;var Y=R||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var i in n=arguments[t])M[u].call(n,i)&&(e[i]=n[i]);return e},Z=function(e,n){return(Z=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[u](t)&&(e[t]=n[t])})(e,n)};function Q(e,n){function t(){this.constructor=e}typeof n!=r&&null!==n&&W("Class extends value "+n+" is not a constructor or null"),Z(e,n),e[a]=null===n?function(e){if(k)return k(e);if(null==e)return{};var n=typeof e;function t(){}return n!==i&&n!=r&&W("Object prototype may only be an Object:"+e),t[a]=e,new t}(n):(t[a]=n[a],new t)}var ee="constructor",v="prototype",ne="function",te="_dynInstFuncs",re="_isDynProxy",ie="_dynClass",oe="_dynInstChk",ae=oe,ue="_dfOpts",ce="_unknown_",se="__proto__",le="_dyn"+se,fe="_dynInstProto",de="useBaseInst",pe="setInstFuncs",ve=Object,me=ve.getPrototypeOf,he=ve.getOwnPropertyNames,ye=0;function m(e,n){return e&&ve[v].hasOwnProperty.call(e,n)}function ge(e){return e&&(e===ve[v]||e===Array[v])}function we(e){return ge(e)||e===Function[v]}function be(e){if(e){if(me)return me(e);var n=e[se]||e[v]||(e[ee]?e[ee][v]:null),t=e[le]||n;m(e,le)||(delete e[fe],t=e[le]=e[fe]||e[le],e[fe]=n)}return t}function Ie(e,n){var t=[];if(he)t=he(e);else for(var r in e)"string"==typeof r&&m(e,r)&&t.push(r);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function _e(e,n,t){return n!==ee&&typeof e[n]===ne&&(t||m(e,n))}function xe(e){throw new TypeError("DynamicProto: "+e)}function Ce(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function Se(e,n){return m(e,v)?e.name||n||ce:((e||{})[ee]||{}).name||n||ce}function h(e,r,n,t){m(e,v)||xe("theClass is an invalid class definition.");var i,o,a,u,c,s,l=e[v],f=(function(e){if(!me)return 1;for(var n=[],t=be(r);t&&!we(t)&&!Ce(n,t);){if(t===e)return 1;n.push(t),t=be(t)}}(l)||xe("["+Se(e)+"] is not in class hierarchy of ["+Se(r)+"]"),null),e=(m(l,ie)?f=l[ie]:(f="_dynCls$"+Se(e,"_")+"$"+ye,ye++,l[ie]=f),h[ue]),d=!!e[de],p=(d&&t&&t[de]!==undefined&&(d=!!t[de]),o={},Ie(i=r,function(e){!o[e]&&_e(i,e,!1)&&(o[e]=i[e])}),o),d=(n(r,function(e,n,t,o){function r(e,n,t){var r,i=n[t];return i[re]&&o&&!1!==(r=e[te]||{})[ae]&&(i=(r[n[ie]]||{})[t]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(Ie(t,function(e){i[e]=r(n,t,e)}),be(e)),u=[];a&&!we(a)&&!Ce(u,a);)Ie(a,function(e){!i[e]&&_e(a,e,!me)&&(i[e]=r(n,a,e))}),u.push(a),a=be(a);return i}(l,r,p,d)),!!me&&!!e[pe]);a=l,n=f,u=r,c=p,e=!1!==(d=d&&t?!!t[pe]:d),ge(a)||(l=u[te]=u[te]||{},s=l[n]=l[n]||{},!1!==l[ae]&&(l[ae]=!!e),Ie(u,function(e){var t,r,i;_e(u,e,!1)&&u[e]!==c[e]&&(s[e]=u[e],delete u[e],m(a,e)&&(!a[e]||a[e][re])||(a[e]=(t=a,r=e,(i=function(){var e,n;return(function(e,n,t,r){var i=null;if(e&&m(t,ie)){var o=e[te]||{};if((i=(o[t[ie]]||{})[n])||xe("Missing ["+n+"] "+ne),!i[oe]&&!1!==o[ae]){for(var a=!m(e,n),u=be(e),c=[];a&&u&&!we(u)&&!Ce(c,u);){var s=u[n];if(s){a=s===r;break}c.push(u),u=be(u)}try{a&&(e[n]=i),i[oe]=1}catch(l){o[ae]=!1}}}return i}(this,r,t,i)||(typeof(n=(n=t[e=r])===i?be(t)[e]:n)!==ne&&xe("["+e+"] is not a "+ne),n)).apply(this,arguments)})[re]=1,i)))}))}h[ue]={setInstFuncs:!0,useBaseInst:!0};var Te=undefined,Ne="object",De="prototype",Ae="undefined",Me="hasOwnProperty",Re="indexOf",ke="length",Ee=Object,Pe=Ee[De],Le=String[De];function Oe(e,n){try{n=e()}catch(t){}return n}function Ue(n){return function(e){return typeof e===n}}function Fe(e){return Pe.toString.call(e)}function je(e){return typeof e===Ae||e===Ae}function L(e){return null===e||je(e)}function qe(e){return!!e||e!==Te}var y=Ue("string"),g=Ue("function");function p(e){return!L(e)&&!!e&&typeof e===Ne}var Be,O=Array.isArray,ze=Ue("number"),Ve=Ue("boolean"),He=function(e){return!(!e||Fe(e)!==Be)};function Ke(e){return!(!e||Oe(function(){return!(e&&0+e)},!e))}var Je="navigator",Xe="window",$e=null,Ge=Oe(function(){return qe(window)},!(Be="[object Error]")),We=Oe(function(){return qe(document)},!1),Ye=Oe(function(){return qe(navigator)},!1);function w(e,n){(n=!1===n?null:$e)||((n=(n=(n=typeof globalThis!==Ae?globalThis:n)||typeof self===Ae?n:self)||typeof window===Ae?n:window)||typeof global===Ae||(n=global),$e=n);return n&&n[e]?n[e]:e===Xe&&Ge?window:null}function Ze(){return We?document:w("document")}function Qe(){return Ge?window:w(Xe)}function en(){return Ye?navigator:w(Je)}function U(e,n,t){if(e&&p(e))for(var r in e)if(o=r,(i=e)&&Pe[Me].call(i,o)&&-1===n.call(t||e,r,e[r]))break;var i,o}function F(e,n,t){if(e)for(var r=e[ke],i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function nn(e){throw new TypeError(e)}Oe(function(){return qe(history)},!1),Oe(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1),Oe(function(){return!(!process||!(process.versions||{}).node)},!1);var tn=Ee.freeze;function rn(e){return p(e)&&null!==e||nn("objKeys called on non-object"),Ee.keys(e)}function on(e){return tn&&U(e,function(e,n){(O(n)||p(n))&&tn(n)}),an(e)}var an=tn||function(e){return e};function j(e,n){var t=Fe(e);return t+": "+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":n?ze(n)?JSON.stringify(e,null,n):JSON.stringify(e,null,n?4:0):JSON.stringify(e))}function un(r){return function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if((e||""===e)&&e[r])return e[r].apply(e,n);nn("'"+r+"' not defined for "+j(e))}}var cn,sn=un(Re),ln=un("map");function fn(e){var n,t,r;throw new(cn=cn||(t=function(){var e=this;return n.apply(e,arguments)||e},r=n=Error,(Ee.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(t,e){U(e,function(e,n){t[e]=n})})(t,r),(i[De]=r[De]).name="UnsupportedError",t[De]=new i,t))(e);function i(){this.constructor=t}}var dn=Ee.defineProperty,pn=un(Re),vn=/^\s+|(?=\s)\s+$/g,mn=Le.trim?un("trim"):function(e){return L(e)&&nn("strTrim called ["+j(e)+"]"),e&&e.replace?e.replace(vn,""):e},Re=function(e){var t={};return U(e,function(e,n){t[e]=n,t[n]=e}),on(t)},hn="name",yn="identifier",gn="push",wn="isInitialized",bn="config",In="logger",_n="length",xn="time",b="processNext",Cn="getPlugin",Sn="teardown",Tn="messageId",Nn="message",Dn="isAsync",An="_doTeardown",Mn="update",Rn="getNext",kn="diagLog",En="setNextPlugin",Pn="createNew",Ln="userAgent",On="split",Un="nodeType",Fn="replace",jn="enableDebugExceptions",qn="toLowerCase",I="type",Bn="handler",zn="call",Vn="isChildEvt",Hn="getCtx",l="setCtx",Kn="complete",q="",_="core",Jn="disabled",Xn="extensionConfig",$n="processTelemetry",Gn="priority",Wn="errorToConsole",Yn="warnToConsole",Zn="getPerfMgr",Qn=null,Le="toISOString",e="toString",n="getPrototypeOf",et="constructor",nt=Date[a][Le]||ut(0,Le),tt=P[e]||ut(0,e),rt=tt[zn](s),it=/-([a-z])/g,ot=/([^\w\d_$])/g,at=/^(\d+[\w\d_$])/;function ut(e,n){return function(){fn("Polyfill required for ["+n+"]")}}var ct=Object[n]||ut(0,n);function st(e){return e&&y(e)?(e=(e=e[Fn](it,function(e,n){return n.toUpperCase()}))[Fn](ot,"_"))[Fn](at,function(e,n){return"_"+n}):e}function lt(e,n){return!(!e||!n)&&-1!==pn(e,n)}function ft(e){return e&&"object"==typeof e&&(!(e=ct(e))||typeof(e=e[et]&&P[zn](e,et)?e[et]:e)==r&&tt[zn](e)===rt)}function dt(e){return nt[zn](e)}function pt(){var e=Date;return e.now?e.now():(new e).getTime()}function B(e){return He(e)?e[hn]:q}function vt(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function mt(e,n){return L(e)?n:e}function ht(e){return e&&R?s(R({},e)):e}var yt="console",gt="JSON",wt="msie",bt="trident/",It="XMLHttpRequest",_t=null,xt=null,Ct=null,St=null;function Tt(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[a])&&(r=n in t)}catch(i){}if(!r)try{r=!je((new e)[n])}catch(i){}}return r}function Nt(){return typeof JSON===i&&JSON||null!==w(gt)}function Dt(){return Nt()?JSON||w(gt):null}function At(){return St=null===St?!!en()&&!!en().sendBeacon:St}function Mt(e){var n=!1;try{var n=!!w("fetch"),t=w("Request");n&&e&&t&&(n=Tt(t,"keepalive"))}catch(r){}return n}function Rt(){return Ct=null===Ct&&(Ct=typeof XDomainRequest!==o)&&kt()?Ct&&!Tt(w(It),"withCredentials"):Ct}function kt(){var e=!1;try{e=!!w(It)}catch(n){}return e}function Et(e){return e?'"'+e[Fn](/\"/g,q)+'"':q}function Pt(e,n){var t,r=typeof console!==o?console:w(yt);r&&(t="log",r[e]&&(t=e),g(r[t])&&r[t](n))}Ot.dataType="MessageData";var Lt=Ot;function Ot(e,n,t,r){void 0===t&&(t=!1),this[Tn]=e,this[Nn]=(t?"AI: ":"AI (Internal): ")+e;t=q,Nt()&&(t=Dt().stringify(r)),e=(n?" message:"+Et(n):q)+(r?" props:"+Et(t):q);this[Nn]+=e}function Ut(e,n){return(e||{})[In]||new Ft(n)}jt.__ieDyn=1;var Ft=jt;function jt(i){this.identifier="DiagnosticLogger",this.queue=[];var c,s,l,f,d=0,p={};h(jt,this,function(o){var e;function a(e,n){var t,r;l<=d||(r=!0,t="AITR_"+n[Tn],p[t]?r=!1:p[t]=!0,r&&(e<=s&&(o.queue[gn](n),d++,u(1===e?"error":"warn",n)),d===l&&(r=new Lt(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue[gn](r),1===e?o[Wn](t):o[Yn](t))))}function u(e,n){var t,r=(t=(t=Qn)||!0===(i||{}).disableDbgExt?t:Qn||(r=w("Microsoft"),Qn=r?r.ApplicationInsights:Qn))?t.ChromeDbgExt:null;r&&r[kn]&&r[kn](e,n)}c=mt((e=i||{}).loggingLevelConsole,0),s=mt(e.loggingLevelTelemetry,1),l=mt(e.maxMessageLimit,25),f=mt(e[jn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return s},o.maxInternalMessageLimit=function(){return l},o[jn]=function(){return f},o.throwInternal=function(e,n,t,r,i){n=new Lt(n,t,i=void 0!==i&&i,r);if(f)throw j(n);t=1===e?Wn:Yn;je(n[Nn])?u("throw"+(1===e?"Critical":"Warning"),n):(i?(r=+n[Tn],!p[r]&&e<=c&&(o[t](n[Nn]),p[r]=!0)):e<=c&&o[t](n[Nn]),a(e,n))},o[Yn]=function(e){Pt("warn",e),u("warning",e)},o[Wn]=function(e){Pt("error",e),u("error",e)},o.resetInternalMessageCount=function(){d=0,p={}},o.logInternalMessage=a})}function qt(e){return e||new Ft}function z(e,n,t,r,i,o){void 0===o&&(o=!1),qt(e).throwInternal(n,t,r,i,o)}function Bt(e,n){qt(e)[Yn](n)}var zt="ParentContextKey",Vt="ChildrenContextKey",Ht=(Kt.ParentContextKey="parent",Kt.ChildrenContextKey="childEvts",Kt);function Kt(e,n,t){var r,i,o,a=this;if(a.start=pt(),a[hn]=e,a[Dn]=t,a[Vn]=function(){return!1},g(n)){var e=a,t="payload",u=function(){return!r&&g(n)&&(r=n(),n=null),r};if(dn)try{var c={enumerable:!0,configurable:!!je(void 0)||void 0};c.get=u,i=e,o=t,dn?dn(i,o,c):fn("Unable to define property ["+Fe(o)+"] on "+j(i))}catch(s){fn("Unable to define accessors for ["+Fe(t)+"] on "+j(e))}}a[Hn]=function(e){return e?(e===Kt[zt]||e===Kt[Vt]?a:a.ctx||{})[e]:null},a[l]=function(e,n){e&&(e===Kt[zt]?(a[e]||(a[Vn]=function(){return!0}),a[e]=n):e===Kt[Vt]?a[e]=n:(a.ctx=a.ctx||{})[e]=n)},a[Kn]=function(){var e=0,n=a[Hn](Kt[Vt]);if(O(n))for(var t=0;t<n[_n];t++){var r=n[t];r&&(e+=r[xn])}a[xn]=pt()-a.start,a.exTime=a[xn]-e,a[Kn]=function(){}}}var Jt="CoreUtils.doPerf";function Xt(e,n,t,r,i){if(e)if(e=e[Zn]?e[Zn]():e){var o,a=void 0,u=e[Hn](Jt);try{if(a=e.create(n(),r,i))return u&&a[l]&&(a[l](Ht[zt],u),u[Hn]&&u[l]&&((o=u[Hn](Ht[Vt]))||(o=[],u[l](Ht[Vt],o)),o[gn](a))),e[l](Jt,a),t(a)}catch(c){a&&a[l]&&a[l]("exception",c)}finally{a&&e.fire(a),e[l](Jt,u)}}t()}var $t=4294967296,Gt=4294967295,Wt=!1,Yt=123456789,Zt=987654321;function Qt(e){var n,t=0,r=w("crypto")||w("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&Gt:t)&&(!(r=en())||r[Ln]===xt&&null!==_t||(r=((xt=r[Ln])||q)[qn](),_t=lt(r,wt)||lt(r,bt)),_t)){if(!Wt)try{var i=2147483647&pt();(n=(Math.random()*$t^i)+i)<0&&(n>>>=0),Yt=123456789+n&Gt,Zt=987654321-n&Gt,Wt=!0}catch(o){}r=((Zt=36969*(65535&Zt)+(Zt>>16)&Gt)<<16)+(65535&(Yt=18e3*(65535&Yt)+(Yt>>16)&Gt))>>>0&Gt|0,t=(r>>>=0)&Gt}return 0===t&&(t=Math.floor($t*Math.random()|0)),e||(t>>>=0),t}var er=E,nr="3.0.0-beta.2208-19",tr="."+function(e){void 0===e&&(e=22);for(var n=Qt()>>>0,t=0,r=q;r[_n]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Qt()<<2&4294967295|3&n)>>>0,t=0);return r}(6),rr=0;function ir(e){return 1===e[Un]||9===e[Un]||!+e[Un]}function or(e,n){return st(e+rr+++((n=void 0!==n&&n)?"."+nr:q)+tr)}function ar(e){var o={id:or("_aiData-"+(e||q)+"."+nr),accept:ir,get:function(e,n,t,r){var i=e[o.id];return i?i[st(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{ir(n)&&!function(e,n,t){if(er)try{return er(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(o,e))[st(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var ur=ar("plugin");function cr(e){return ur.get(e,"state",{},!0)}var sr="TelemetryPluginChain",lr="_hasRun",fr="_getTelCtx",dr=0;function pr(e,a,t,n){var r=null,i=[],o=(null!==n&&(r=n?function(e,n,t){for(;e;){if(e[Cn]()===t)return e;e=e[Rn]()}return mr([t],n[bn]||{},n)}(e,t,n):e),{_next:function(){var e,n=r;return r=n?n[Rn]():null,n||(e=i)&&0<e[_n]&&(F(e,function(e){try{e.func[zn](e.self,e.args)}catch(n){z(t[In],2,73,"Unexpected Exception during onComplete - "+j(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return Ut(t,a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=u(e,null);return e&&!L(e[n])?r=e[n]:a&&!L(a[n])&&(r=a[n]),L(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=o._next();){var n=n[Cn]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i[gn]({func:e,self:je(n)?o.ctx:n,args:t})}}});function u(e,n,t){var r,i,o;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(i=a[Xn])&&e?i[e]:r)?p(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e[_n],r=!1,i=1;for(0<t&&Ve(n)&&(r=n,n=e[i]||{},i++),p(n)||(n={});i<t;i++){var o,a,u,c,s=e[i],l=O(s),f=p(s);for(o in s)(l&&o in s||f&&P[zn](s,o))&&(a=s[o],u=void 0,r&&a&&((u=O(a))||ft(a))&&(c=n[o],u?O(c)||(c=[]):ft(c)||(c={}),a=d(r,c,a)),a!==undefined&&(n[o]=a))}return n}(!0,n,r),a&&2===t&&U(n,function(e){var n;L(o[e])&&!L(n=a[e])&&(o[e]=n)}),r=o):r=n,r}return o}function vr(e,t,r,n){var i=pr(e,t,r,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n[$n](e,o),!n},o[Pn]=function(e,n){return vr((e=O(e=void 0===e?null:e)?mr(e,t,r,n):e)||o[Rn](),t,r,n)},o}function mr(e,n,t,r){var i,o=null,a=!r;return O(e)&&0<e[_n]&&(i=null,F(e,function(e){(a=!a&&r===e||a)&&e&&g(e[$n])&&(e=hr(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?mr([r],n,t):o}function hr(c,r,i){var s=null,o=g(c[$n]),a=g(c[En]),l=c?c[yn]+"-"+c[Gn]+"-"+dr++:"Unknown-0-"+dr++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&g(c[fr])?c[fr]():n)||vr(u,r,i)),function(e){if(!c||!o)return!1;var n=cr(c);return!n[Sn]&&!n[Jn]&&(a&&c[En](s),c[$n](t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e[b](t)},unload:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=cr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Sn]||(e[_]=null,e[Sn]=!0,e[wn]=!1,c[Sn]&&!0===c[Sn](r,i)&&(t=!0))),t},"unload",function(){},i[Dn])||r[b](i)},update:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=cr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Sn]||c[Mn]&&!0===c[Mn](r,i)&&(t=!0)),t},"update",function(){},!1)||r[b](i)},_id:l,_setNext:function(e){s=e}};function f(t,r,i,e,n){var o=!1,a=c?c[yn]:sr,u=(u=t[lr])||(t[lr]={});return t.setNext(s),c&&Xt(t[_](),function(){return a+":"+i},function(){u[l]=!0;try{var e=s?s._id:q;e&&(u[e]=!1),o=r(t)}catch(n){e=!s||u[s._id];e&&(o=!0),s&&e||z(t[kn](),1,73,"Plugin ["+a+"] failed during "+i+" - "+j(n)+", run flags: "+j(u))}},e,n),o}return an(u)}function yr(){var n=[];return{add:function(e){e&&n[gn](e)},run:function(t,r){F(n,function(e){try{e(t,r)}catch(n){z(t[kn](),2,73,"Unexpected error calling unload handler - "+j(n))}}),n=[]}}}var gr="getPlugin",Le=(wr.__ieDyn=1,wr);function wr(){var o,i,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=i||vr(null,{},a[_]),e=l&&l[gr]?n[Pn](null,l[gr]):n[Pn](null,l)),e}function c(e,n,t){e&&vt(e,Xn,[],null,L),!t&&n&&(t=n.getProcessTelContext()[Rn]());var r=l;l&&l[gr]&&(r=l[gr]()),a[_]=n,i=vr(t,e,n,r)}function p(){o=!1,a[_]=null,l=i=null,d=[],f=yr()}p(),h(wr,a,function(s){var e,n,t,r,i;s.initialize=function(e,n,t,r){c(e,n,r),o=!0},s[Sn]=function(e,n){var t,r,i,o,a=s[_];if(a&&(!e||a===e[_]()))return r=!1,i=e||function c(e,t,n){var r=t[bn]||{},i=pr(e,r,t,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n.unload(o,e),!n},o[Pn]=function(e,n){return c((e=O(e=void 0===e?null:e)?mr(e,r,t,n):e)||o[Rn](),t,n)},o}(null,a,l&&l[gr]?l[gr]():l),o=n||((e={reason:0})[Dn]=!1,e),s[An]&&!0===s[An](i,o,u)?t=!0:u(),t;function u(){var e;r||(r=!0,f.run(i,n),e=d,d=[],F(e,function(e){e.rm()}),!0===t&&i[b](o),p())}},s[Mn]=function(e,n){var t,r,i,o=s[_];if(o&&(!e||o===e[_]()))return r=!1,i=e||function u(e,t,n){var r=t[bn]||{},i=pr(e,r,t,n).ctx;return i[b]=function(n){return i.iterate(function(e){g(e[Mn])&&e[Mn](i,n)})},i[Pn]=function(e,n){return u((e=O(e=void 0===e?null:e)?mr(e,r,t,n):e)||i[Rn](),t,n)},i}(null,o,l&&l[gr]?l[gr]():l),s._doUpdate&&!0===s._doUpdate(i,n||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,c(i.getCfg(),i.core(),i[Rn]()))}},s._addHook=function(e){e&&(O(e)?d=d.concat(e):d[gn](e))},t="_addUnloadCb",n=function(){return f},(e=s)&&n&&(e[t]=(i=r=null,g(t=n)?r=t:i=t,function(){var e=arguments;if(i=r?r():i)return i.add.apply(i,e)}))}),a[kn]=function(e){return n(e)[kn]()},a[wn]=function(){return o},a.setInitialized=function(e){o=e},a[En]=function(e){l=e},a[b]=function(e,n){n?n[b](e):l&&g(l[$n])&&l[$n](e,null)},a._getTelCtx=n}var br="attachEvent",Ir="addEventListener",_r="detachEvent",xr="removeEventListener",Cr="events",Sr=(or("aiEvtPageHide"),or("aiEvtPageShow"),/\.[\.]+/g),Tr=/[\.]+$/,Nr=1,Dr=ar("events"),Ar=/^([^.]*)(?:\.(.+)|)/;function Mr(e){return e&&e[Fn]?e.replace(/^\s*\.*|\.*\s*$/g,q):e}function Rr(e,n){n&&(t=q,O(n)?(t=q,F(n,function(e){(e=Mr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=Mr(n),t&&("."!==t[0]&&(t="."+t),e=(e||q)+t));var t,n=Ar.exec(e||q)||[],e={};return e[I]=n[1],e.ns=(n[2]||q).replace(Sr,".").replace(Tr,q)[On](".").sort().join("."),e}function kr(e,n,t){e=Dr.get(e,Cr,{},t=void 0===t||t);return e[n]||(e[n]=[])}function Er(e,n,t,r){e&&n&&n[I]&&(e[xr]?e[xr](n[I],t,r):e[_r]&&e[_r]("on"+n[I],t))}function Pr(e,n,t,r){for(var i=n[_n];i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Er(e,o.evtName,o[Bn],o.capture),n.splice(i,1))}}function Lr(e,n){return n?Rr("xx",O(n)?[e].concat(n):[e,n]).ns[On]("."):e}function Or(e,n,t,r,i){void 0===i&&(i=!1);var o,a,u=!1;if(e)try{var c,s=Rr(n,r),l=s,f=t,d=i,p=!1;(a=e)&&l&&l[I]&&f&&(a[Ir]?(a[Ir](l[I],f,d),p=!0):a[br]&&(a[br]("on"+l[I],f),p=!0)),(u=p)&&Dr.accept(e)&&((o={guid:Nr++,evtName:s})[Bn]=t,o.capture=i,c=o,kr(e,s.type)[gn](c))}catch(v){}return u}var Ur,Fr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",jr="sampleRate",qr="ProcessLegacy",Br="http.method",zr="https://dc.services.visualstudio.com",Vr="/v2/track",Hr="not_specified",Kr=(Ur={},U({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]},function(e,n){Ur[e]=n[1],Ur[n[0]]=n[1]}),on(Ur)),Jr="split",x="length",Xr="toLowerCase",$r="toString",Gr="removeItem",Wr="name",Yr="pathname",Zr="indexOf",Qr="exceptions",ei="parsedStack",ni="properties",ti="measurements",ri="stringify",ii="message",oi="sizeInBytes",ai="typeName",ui="severityLevel",ci="problemGroup",si="isManual",li="CreateFromInterface",fi="hasFullStack",di="level",pi="method",vi="assembly",mi="fileName",hi="line",yi="duration",gi="receivedResponse",wi="substring";function bi(e,n,t){var r,i,o=n[x],a=(e=e,(n=n)&&150<(n=mn(n[$r]()))[x]&&(i=n[wi](0,150),z(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0)),i||n);if(a[x]!==o){for(var u=0,c=a;t[c]!==undefined;)u++,c=a[wi](0,147)+(r=void 0,(r="00"+u).substr(r[x]-3));a=c}return a}function C(e,n,t){var r;return void 0===t&&(t=1024),n&&(t=t||1024,(n=mn(n[$r]()))[x]>t&&(r=n[wi](0,t),z(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function Ii(e,n){return Si(e,n,2048,66)}function _i(e,n){var t;return n&&32768<n[x]&&(t=n[wi](0,32768),z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function xi(r,e){var i;return e&&(i={},U(e,function(e,n){if(p(n)&&Nt())try{n=Dt()[ri](n)}catch(t){z(r,2,49,"custom property is not valid",{exception:t},!0)}n=C(r,n,8192),e=bi(r,e,i),i[e]=n}),e=i),e}function Ci(t,e){var r;return e&&(r={},U(e,function(e,n){e=bi(t,e,r),r[e]=n}),e=r),e}function Si(e,n,t,r){var i;return n&&(n=mn(n[$r]()))[x]>t&&(i=n[wi](0,t),z(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var Ti=Ze()||{},Ni=0,Di=[null,null,null,null,null];var Ai=[zr+Vr,"https://breeze.aimon.applicationinsights.io"+Vr,"https://dc-int.services.visualstudio.com"+Vr];function Mi(e){return-1!==sn(Ai,e[Xr]())}var Ri=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Wr]=C(e,t)||Hr,i.data=n,i.time=dt(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},ki=(Ei.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Ei.dataType="EventData",Ei);function Ei(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[Wr]=C(e,n)||Hr,this[ni]=xi(e,t),this[ti]=Ci(e,r)}var Pi="error",c="stack",Li="stackDetails",Oi="errorSrc",Ui="message",Fi="description";function ji(e,n){var t=e;return t&&!y(t)&&(JSON&&JSON[ri]?(t=JSON[ri](e),!n||t&&"{}"!==t||(t=g(e[$r])?e[$r]():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function qi(e,n){var t=e;return e&&((t=t&&!y(t)&&(e[Ui]||e[Fi])||t)&&!y(t)&&(t=ji(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&-1===(t||"")[Zr](n)?n+": "+t:t)||""}function Bi(e){return e&&e.src&&y(e.src)&&e.obj&&O(e.obj)}function zi(e){var e=e||"",n=(e=y(e)?e:y(e[c])?e[c]:""+e)[Jr]("\n");return{src:e,obj:n}}function Vi(e){var n,t=null;if(e)try{e[c]?t=zi(e[c]):e[Pi]&&e[Pi][c]?t=zi(e[Pi][c]):e.exception&&e.exception[c]?t=zi(e.exception[c]):Bi(e)?t=e:Bi(e[Li])?t=e[Li]:window&&window.opera&&e[Ui]?t=function(e){for(var n=[],t=e[Jr]("\n"),r=0;r<t[x];r++){var i=t[r];t[r+1]&&(i+="@"+t[r+1],r++),n.push(i)}return{src:e,obj:n}}(e[ii]):y(e)?t=zi(e):(n=e[Ui]||e[Fi]||"",y(e[Oi])&&(n&&(n+="\n"),n+=" from "+e[Oi]),n&&(t=zi(n)))}catch(r){t=zi(r)}return t||{src:"",obj:null}}function Hi(e){var n="";if(e&&!(n=e.typeName||e[Wr]||""))try{var t=/function (.{1,200})\(/.exec(e.constructor[$r]()),n=t&&1<t[x]?t[1]:""}catch(r){}return n}function Ki(e){if(e)try{var n,t;if(!y(e))return n=Hi(e),(t=ji(e,!1))&&"{}"!==t||(e[Pi]&&(n=Hi(e=e[Pi])),t=ji(e,!0)),0!==t[Zr](n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}Xi.CreateAutoException=function(e,n,t,r,i,o,a,u){var c=Hi(i||o||e),s={};return s[ii]=qi(e,c),s.url=n,s.lineNumber=t,s.columnNumber=r,s.error=Ki(i||o||e),s.evt=Ki(o||e),s[ai]=c,s.stackDetails=Vi(a||i||o),s.errorSrc=u,s},Xi.CreateFromInterface=function(n,e,t,r){var i=e[Qr]&&ln(e[Qr],function(e){return $i[li](n,e)});return new Xi(n,Y(Y({},e),{exceptions:i}),t,r)},Xi.prototype.toInterface=function(){var e=this,n=e.exceptions,t=e.properties,r=e.measurements,i=e.severityLevel,o=e.problemGroup,a=e.id,e=e.isManual,n=n instanceof Array&&ln(n,function(e){return e.toInterface()})||undefined,u={ver:"4.0"};return u[Qr]=n,u.severityLevel=i,u.properties=t,u.measurements=r,u.problemGroup=o,u.id=a,u.isManual=e,u},Xi.CreateSimpleException=function(e,n,t,r,i,o){var a;return{exceptions:[((a={})[fi]=!0,a.message=e,a.stack=i,a.typeName=n,a)]}},Xi.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",Xi.dataType="ExceptionData",Xi.formatError=Ki;var Ji=Xi;function Xi(e,n,t,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,function(e){try{if(p(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(n){}}(n)?(a[Qr]=n[Qr]||[],a[ni]=n[ni],a[ti]=n[ti],n[ui]&&(a[ui]=n[ui]),n.id&&(a.id=n.id),n[ci]&&(a[ci]=n[ci]),L(n[si])||(a[si]=n[si])):(a[Qr]=[new $i(e,n,t=t||{})],a[ni]=xi(e,t),a[ti]=Ci(e,r),i&&(a[ui]=i),o&&(a.id=o))}Gi.prototype.toInterface=function(){var e=this,n=e[ei]instanceof Array&&ln(e[ei],function(e){return e.toInterface()});return(e={id:e.id,outerId:e.outerId,typeName:e[ai],message:e[ii],hasFullStack:e[fi],stack:e[c]})[ei]=n||undefined,e},Gi.CreateFromInterface=function(e,n){var t=n[ei]instanceof Array&&ln(n[ei],function(e){return Wi[li](e)})||n[ei];return new Gi(e,Y(Y({},n),{parsedStack:t}))};var $i=Gi;function Gi(e,n,t){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var s,r,i,o,a,u=this;!function(e){try{if(p(e))return"hasFullStack"in e&&"typeName"in e}catch(n){}}(n)?(r=(o=n)&&o.evt,He(o)||(o=o[Pi]||r||o),u[ai]=C(e,Hi(o))||Hr,u[ii]=_i(e,qi(n||o,u[ai]))||Hr,s=n[Li]||Vi(n),u[ei]=function(){var e=s.obj;if(e&&0<e[x]){var n=[],t=0,r=0;if(F(e,function(e){var e=e[$r]();Wi.regex.test(e)&&(e=new Wi(e,t++),r+=e[oi],n.push(e))}),32768<r)for(var i=0,o=n[x]-1,a=0,u=i,c=o;i<o;){if(32768<(a+=n[i][oi]+n[o][oi])){n.splice(u,c-u+1);break}u=i,c=o,i++,o--}}return n}(),u[c]=(r=e,a="",(o=s)&&(o.obj?F(o.obj,function(e){a+=e+"\n"}):a=o.src||""),(e=a)&&32768<(o=""+e)[x]&&(i=o[wi](0,32768),z(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),i||e),u.hasFullStack=O(u.parsedStack)&&0<u.parsedStack[x],t&&(t[ai]=t[ai]||u[ai])):(u[ai]=n[ai],u[ii]=n[ii],u[c]=n[c],u[ei]=n[ei]||[],u[fi]=n[fi])}Yi.CreateFromInterface=function(e){return new Yi(e,null)},Yi.prototype.toInterface=function(){var e=this;return{level:e[di],method:e[pi],assembly:e[vi],fileName:e[mi],line:e[hi]}},Yi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Yi.baseSize=58;var Wi=Yi;function Yi(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r[oi]=0,"string"==typeof e?(t=e,r[di]=n,r[pi]="<no_method>",r[vi]=mn(t),r[mi]="",r[hi]=0,(n=t.match(Yi.regex))&&5<=n[x]&&(r[pi]=mn(n[2])||r[pi],r[mi]=mn(n[4]),r[hi]=parseInt(n[5])||0)):(r[di]=e[di],r[pi]=e[pi],r[vi]=e[vi],r[mi]=e[mi],r[hi]=e[hi],r[oi]=0),r.sizeInBytes+=r.method[x],r.sizeInBytes+=r.fileName[x],r.sizeInBytes+=r.assembly[x],r[oi]+=Yi.baseSize,r.sizeInBytes+=r.level.toString()[x],r.sizeInBytes+=r.line.toString()[x]}var Zi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},Qi=(eo.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",eo.dataType="MetricData",eo);function eo(e,n,t,r,i,o,a,u,c){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var s=new Zi;s.count=0<r?r:undefined,s.max=isNaN(o)||null===o?undefined:o,s.min=isNaN(i)||null===i?undefined:i,s[Wr]=C(e,n)||Hr,s.value=t,s.stdDev=isNaN(a)||null===a?undefined:a,this.metrics=[s],this[ni]=xi(e,u),this[ti]=Ci(e,c)}var no="";function to(e){var n=no+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=no+Math.floor(e/6e4)%60,r=no+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=no+e%1e3)[x]?"00"+e:2===e[x]?"0"+e:e,n=n[x]<2?"0"+n:n,t=t[x]<2?"0"+t:t,r=r[x]<2?"0"+r:r;return(0<i?i+".":no)+r+":"+t+":"+n+"."+e}io.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",io.dataType="PageviewData";var ro=io;function io(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=a&&Si(e,a,128,69)[$r](),u.url=Ii(e,t),u[Wr]=C(e,n)||Hr,isNaN(r)||(u[yi]=to(r)),u[ni]=xi(e,i),u[ti]=Ci(e,o)}ao.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",ao.dataType="RemoteDependencyData";var oo=ao;function ao(e,n,t,r,i,o,a,u,c,s,l,f){void 0===c&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var d,p,v,m=this,t=(m.ver=2,m.id=n,m[yi]=to(i),m.success=o,m.resultCode=a+"",m.type=C(e,c),n=e,i=u,c=a=o=r,a=(u=t)&&0<u[x]?(d=u,v=(t=Di)[p=Ni],Ti.createElement?t[p]||(v=t[p]=Ti.createElement("a")):v={host:function(){e=null,d&&null!=(t=d.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i))&&2<t[x]&&y(t[2])&&0<t[2][x]&&(e=t[2]||"",2<t[x]&&(n=(t[1]||"")[Xr](),t=t[3]||"",e+=t="http"===n&&":80"===t||"https"===n&&":443"===t?"":t));var e,n=e||"";if(n){var t=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=t&&3<t[x]&&y(t[2])&&0<t[2][x])return t[2]+(t[3]||"")}return n}()},v.href=d,++p>=t[x]&&(p=0),Ni=p,p=(t=v).host,a||(null!=t[Yr]?("/"!=((v=0===t.pathname[x]?"/":t[Yr])[0]||"")&&(v="/"+v),c=t[Yr],C(n,i?i+" "+v:v)):C(n,u))):p=o,{target:p,name:a,data:c});m.data=Ii(e,r)||t.data,m.target=C(e,t.target),s&&(m.target="".concat(m.target," | ").concat(s)),m[Wr]=C(e,t[Wr]),m[ni]=xi(e,l),m[ti]=Ci(e,f)}co.envelopeType="Microsoft.ApplicationInsights.{0}.Message",co.dataType="MessageData";var uo=co;function co(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o[ii]=_i(e,n=n||Hr),o[ni]=xi(e,r),o[ti]=Ci(e,i),t&&(o[ui]=t)}lo.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",lo.dataType="PageviewPerformanceData";var so=lo;function lo(e,n,t,r,i,o,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=Ii(e,t),u[Wr]=C(e,n)||Hr,u[ni]=xi(e,i),u[ti]=Ci(e,o),a&&(u.domProcessing=a.domProcessing,u[yi]=a[yi],u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u[gi]=a[gi],u.sentRequest=a.sentRequest)}var fo=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};function po(e){var n="ai."+e+".";return function(e){return n+e}}var vo,mo,e=po("application"),n=po("device"),E=po("location"),ho=po("operation"),yo=po("session"),go=po("user"),wo=po("cloud"),bo=po("internal"),Io=(mo={applicationVersion:e("ver"),applicationBuild:e("build"),applicationTypeId:e("typeId"),applicationId:e("applicationId"),applicationLayer:e("layer"),deviceId:n("id"),deviceIp:n("ip"),deviceLanguage:n("language"),deviceLocale:n("locale"),deviceModel:n("model"),deviceFriendlyName:n("friendlyName"),deviceNetwork:n("network"),deviceNetworkName:n("networkName"),deviceOEMName:n("oemName"),deviceOS:n("os"),deviceOSVersion:n("osVersion"),deviceRoleInstance:n("roleInstance"),deviceRoleName:n("roleName"),deviceScreenResolution:n("screenResolution"),deviceType:n("type"),deviceMachineName:n("machineName"),deviceVMName:n("vmName"),deviceBrowser:n("browser"),deviceBrowserVersion:n("browserVersion"),locationIp:E("ip"),locationCountry:E("country"),locationProvince:E("province"),locationCity:E("city"),operationId:ho("id"),operationName:ho("name"),operationParentId:ho("parentId"),operationRootId:ho("rootId"),operationSyntheticSource:ho("syntheticSource"),operationCorrelationVector:ho("correlationVector"),sessionId:yo("id"),sessionIsFirst:yo("isFirst"),sessionIsNew:yo("isNew"),userAccountAcquisitionDate:go("accountAcquisitionDate"),userAccountId:go("accountId"),userAgent:go("userAgent"),userId:go("id"),userStoreRegion:go("storeRegion"),userAuthUserId:go("authUserId"),userAnonymousUserAcquisitionDate:go("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:go("authUserAcquisitionDate"),cloudName:wo("name"),cloudRole:wo("role"),cloudRoleVer:wo("roleVer"),cloudRoleInstance:wo("roleInstance"),cloudEnvironment:wo("environment"),cloudLocation:wo("location"),cloudDeploymentUnit:wo("deploymentUnit"),internalNodeName:bo("nodeName"),internalSdkVersion:bo("sdkVersion"),internalAgentVersion:bo("agentVersion"),internalSnippet:bo("snippet"),internalSdkSrc:bo("sdkSrc")},Q(_o,vo=function(){var t=this;U(mo,function(e,n){t[e]=n})}),_o);function _o(){return vo.call(this)||this}var f=new Io,xo=Re({LocalStorage:0,SessionStorage:1}),Co=(Re({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function So(e){try{if(L(G()))return null;var n=(new Date)[$r](),t=w(e===xo.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n,n),t.getItem(n)!==n);if(t[Gr](n),!r)return t}catch(i){}return null}function To(){return No()?So(xo.SessionStorage):null}function No(e){return Co=e||Co===undefined?!!So(xo.SessionStorage):Co}function Do(e,n){var t=To();if(null!==t)try{return t.getItem(n)}catch(r){Co=!1,z(e,2,2,"Browser failed read of session storage. "+B(r),{exception:j(r)})}return null}function Ao(e,n,t){var r=To();if(null!==r)try{r.setItem(n,t)}catch(i){Co=!1,z(e,2,4,"Browser failed write to session storage. "+B(i),{exception:j(i)})}}var Mo="duration",V="tags",Ro="deviceType",d="data",ko="name",Eo="traceID",H="length",Po="stringify",Lo="measurements",S="dataType",Oo="envelopeType",Uo="toString",Fo="onLine",jo="enqueue",qo="count",Bo="push",zo="emitLineDelimitedJson",Vo="clear",Ho="batchPayloads",Ko="markAsSent",Jo="clearSent",Xo="BUFFER_KEY",$o="SENT_BUFFER_KEY",Go="MAX_BUFFER_SIZE",Wo="namePrefix",Yo="maxBatchSizeInBytes",Zo="triggerSend",K="diagLog",Qo="onunloadDisableBeacon",ea="isBeaconApiDisabled",na="_sender",J="_senderConfig",ta="_buffer",ra="enableSessionStorageBuffer",ia="samplingPercentage",oa="instrumentationKey",aa="endpointUrl",ua="customHeaders",ca="disableXhr",sa="onunloadDisableFetch",la="disableTelemetry",fa="baseType",da="sampleRate",pa="convertUndefined",X="_onError",va="_onPartialSuccess",ma="_onSuccess",ha="itemsAccepted",ya="isRetryDisabled",ga="setRequestHeader",wa="maxBatchInterval",ba="eventsSendRequest",Ia="disableInstrumentationKeyValidation",_a="getSamplingScore",xa="baseType",T="baseData",N="properties",Ca="true";function D(e,n,t){vt(e,n,t,Ke)}function Sa(e,t,r){L(e)||U(e,function(e,n){ze(n)?r[e]=n:y(n)?t[e]=n:Nt()&&(t[e]=Dt()[Po](n))})}function Ta(t,r){L(t)||U(t,function(e,n){t[e]=n||r})}function Na(e,n,t,r){for(var r=new Ri(e,r,n),n=(D(r,"sampleRate",t[jr]),(t[T]||{}).startTime&&(r.time=dt(t[T].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r[ko]=r[ko].replace("{0}",n),e),e=t,i=r,o=i[V]=i[V]||{},a=e.ext=e.ext||{},u=e[V]=e[V]||[],c=a.user,c=(c&&(D(o,f.userAuthUserId,c.authId),D(o,f.userId,c.id||c.localId)),a.app),c=(c&&D(o,f.sessionId,c.sesId),a.device),c=(c&&(D(o,f.deviceId,c.id||c.localId),D(o,f[Ro],c.deviceClass),D(o,f.deviceIp,c.ip),D(o,f.deviceModel,c.model),D(o,f[Ro],c[Ro])),e.ext.web),e=(c&&(D(o,f.deviceLanguage,c.browserLang),D(o,f.deviceBrowserVersion,c.browserVer),D(o,f.deviceBrowser,c.browser),D(e=(e=(e=i[d]=i[d]||{})[T]=e[T]||{})[N]=e[N]||{},"domain",c.domain),D(e,"isManual",c.isManual?Ca:null),D(e,"screenRes",c.screenRes),D(e,"userConsent",c.userConsent?Ca:null)),a.os),c=(e&&D(o,f.deviceOS,e[ko]),a.trace),s=(c&&(D(o,f.operationParentId,c.parentID),D(o,f.operationName,C(n,c[ko])),D(o,f.operationId,c[Eo])),{}),l=u[H]-1;0<=l;l--)U(u[l],function(e,n){s[e]=n}),u.splice(l,1);U(u,function(e,n){s[e]=n});e=Y(Y({},o),s);return e[f.internalSdkVersion]||(e[f.internalSdkVersion]="javascript:".concat(Aa.Version)),i[V]=ht(e),t[V]=t[V]||[],ht(r)}function Da(e,n){L(n[T])&&z(e,1,46,"telemetryItem.baseData cannot be null.")}var Aa={Version:"3.0.0-beta.2208-19"};function Ma(e,n,t){Da(e,n);var r={},i={},t=(n[xa]!==ki[S]&&(r.baseTypeSource=n[xa]),n[xa]===ki[S]?(r=n[T][N]||{},i=n[T][Lo]||{}):n[T]&&Sa(n[T],r,i),Sa(n[d],r,i),L(t)||Ta(r,t),n[T][ko]),t=new ki(e,t,r,i),r=new fo(ki[S],t);return Na(e,ki[Oo],n,r)}function Ra(e,n){var t,r,i=void 0;if(void 0===i&&(i=!1),e)try{var o=Rr(null,n),a=!1,u=e,c=function(e){return!(!o.ns&&null!==e[Bn])&&(a=!0)};(t=o)[I]?Pr(u,kr(u,t[I]),t,c):(U(r=Dr.get(u,Cr,{}),function(e,n){Pr(u,n,t,c)}),0===rn(r)[_n]&&Dr.kill(u,Cr)),a||Er(e,o,null,i)}catch(s){}}ka.__ieDyn=1;e=ka;function ka(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(ka,this,function(n){n[jo]=function(e){n[qo]()>=r.eventsLimitInMem()?o||(z(t,2,105,"Maximum in-memory buffer size reached: "+n[qo](),!0),o=!0):i[Bo](e)},n[qo]=function(){return i[H]},n.size=function(){for(var e=i[H],n=0;n<i[H];n++)e+=i[n][H];return r[zo]()||(e+=2),e},n[Vo]=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n[Ho]=function(e){return e&&0<e[H]?r[zo]()?e.join("\n"):"["+e.join(",")+"]":null}})}Q(La,Ea=e),La.__ieDyn=1;var Ea,Pa=La;function La(e,n){e=Ea.call(this,e,n)||this;return h(La,e,function(e,n){e[Ko]=function(e){n[Vo]()},e[Jo]=function(e){}}),e}Q(A,Oa=e),A.BUFFER_KEY="AI_buffer",A.SENT_BUFFER_KEY="AI_sentBuffer",A.MAX_BUFFER_SIZE=2e3;var Oa,Ua=A;function A(u,c){var e=Oa.call(this,u,c)||this,s=!1;return h(A,e,function(t,n){var e=o(A[Xo]),r=o(A[$o]),r=t._set(e.concat(r));function i(n,e){var t=[];return F(e,function(e){g(e)||-1!==sn(n,e)||t[Bo](e)}),t}function o(e){try{var e=c[Wo]&&c[Wo]()?c[Wo]()+"_"+e:e,n=Do(u,e);if(n){var t=Dt().parse(n);if((t=y(t)?Dt().parse(t):t)&&O(t))return t}}catch(r){z(u,1,42," storage key: "+e+", "+B(r),{exception:j(r)})}return[]}function a(e,n){try{var e=c[Wo]&&c[Wo]()?c[Wo]()+"_"+e:e,t=JSON[Po](n);Ao(u,e,t)}catch(r){Ao(u,e,JSON[Po]([])),z(u,2,41," storage key: "+e+", "+B(r)+". Buffer cleared",{exception:j(r)})}}r[H]>A[Go]&&(r[H]=A[Go]),a(A[$o],[]),a(A[Xo],r),t[jo]=function(e){t[qo]()>=A[Go]?s||(z(u,2,67,"Maximum buffer size reached: "+t[qo](),!0),s=!0):(n[jo](e),a(A[Xo],t._get()))},t[Vo]=function(){n[Vo](),a(A[Xo],t._get()),a(A[$o],[]),s=!1},t[Ko]=function(e){a(A[Xo],t._set(i(e,t._get())));var n=o(A[$o]);n instanceof Array&&e instanceof Array&&((n=n.concat(e))[H]>A[Go]&&(z(u,1,67,"Sent buffer reached its maximum size: "+n[H],!0),n[H]=A[Go]),a(A[$o],n))},t[Jo]=function(e){e=i(e,o(A[$o]));a(A[$o],e)}}),e}ja.__ieDyn=1;var Fa=ja;function ja(f){h(ja,this,function(e){function s(a,u){var e="__aiCircularRefCheck",c={};if(!a)return z(f,1,48,"cannot serialize object because it is null or undefined",{name:u},!0),c;if(a[e])return z(f,2,50,"Circular reference detected while serializing object",{name:u},!0),c;if(a.aiDataContract)return a[e]=!0,U(a.aiDataContract,function(e,n){var t=g(n)?1&n():1&n,r=g(n)?4&n():4&n,n=2&n,i=a[e]!==undefined,o=p(a[e])&&null!==a[e];!t||i||n?r||(t=o?(n?l:s)(a[e],e):a[e])!==undefined&&(c[e]=t):z(f,1,24,"Missing required field specification. The field is required but not present on source",{field:e,name:u})}),delete a[e],c;if("measurements"===u)c=t(a,"number",u);else if("properties"===u)c=t(a,"string",u);else if("tags"===u)c=t(a,"string",u);else if(O(a))c=l(a,u);else{z(f,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{Dt()[Po](a),c=a}catch(n){z(f,1,48,n&&g(n[Uo])?n[Uo]():"Error serializing object",null,!0)}}return c}function l(e,n){if(e)if(O(e))for(var t=[],r=0;r<e[H];r++){var i=s(e[r],n+"["+r+"]");t[Bo](i)}else z(f,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return t}function t(e,t,r){var i;return e&&(i={},U(e,function(e,n){"string"===t?n===undefined?i[e]="undefined":null===n?i[e]="null":n[Uo]?i[e]=n[Uo]():i[e]="invalid field: toString() is not defined.":"number"===t?n===undefined?i[e]="undefined":i[e]=null===n?"null":isNaN(n=parseFloat(n))?"NaN":n:(i[e]="invalid field: "+r+" is of unknown type.",z(f,1,i[e],null,!0))})),i}e.serialize=function(e){e=s(e,"root");try{return Dt()[Po](e)}catch(n){z(f,1,48,n&&g(n[Uo])?n[Uo]():"Error serializing object",null,!0)}}})}Ba.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/Ba.INT_MAX_VALUE*100},Ba.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[H]<8;)e=e.concat(e);for(var n=5381,t=0;t<e[H];++t)n=(n<<5)+n+e.charCodeAt(t),n&=n;return Math.abs(n)},Ba.INT_MAX_VALUE=2147483647;var qa=Ba;function Ba(){}var za=function(){var n=new qa,t=new Io;this[_a]=function(e){return e[V]&&e[V][t.userId]?n.getHashCodeScore(e[V][t.userId]):e.ext&&e.ext.user&&e.ext.user.id?n.getHashCodeScore(e.ext.user.id):e[V]&&e[V][t.operationId]?n.getHashCodeScore(e[V][t.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace[Eo]?n.getHashCodeScore(e.ext.telemetryTrace[Eo]):100*Math.random()}},Va=(Ha.prototype.isSampledIn=function(e){var n=this[da];return null===n||n===undefined||100<=n||e.baseType===Qi[S]||this.samplingScoreGenerator[_a](e)<n},Ha);function Ha(e,n){this.INT_MAX_VALUE=2147483647;n=n||Ut(null);(100<e||e<0)&&(n.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[da]=e,this.samplingScoreGenerator=new za}function Ka(e){try{return e.responseText}catch(n){}return null}function Ja(){var e,n={endpointUrl:function(){return zr+Vr}};return n[zo]=function(){return!1},n[wa]=function(){return 15e3},n[Yo]=function(){return 102400},n[la]=function(){return!1},n[ra]=function(){return!0},n[ya]=function(){return!1},n[ea]=function(){return!0},n[ca]=function(){return!1},n[sa]=function(){return!1},n[Qo]=function(){return!1},n[oa]=function(){return e},n[Wo]=function(){return e},n[ia]=function(){return 100},n[ua]=function(){},n[pa]=function(){return e},n.eventsLimitInMem=function(){return 1e4},n}(n={})[ki.dataType]=Ma,n[uo.dataType]=function(e,n,t){Da(e,n);var r=n[T].message,i=n[T].severityLevel,o=n[T][N]||{},a=n[T][Lo]||{},t=(Sa(n[d],o,a),L(t)||Ta(o,t),new uo(e,r,i,o,a)),r=new fo(uo[S],t);return Na(e,uo[Oo],n,r)},n[ro.dataType]=function(e,n,t){Da(e,n);var r,i=n[T],i=(L(i)||L(i[N])||L(i[N][Mo])?L(n[d])||L(n[d][Mo])||(r=n[d][Mo],delete n[d][Mo]):(r=i[N][Mo],delete i[N][Mo]),n[T]),o=(((n.ext||{}).trace||{})[Eo]&&(o=n.ext.trace[Eo]),i.id||o),a=i[ko],u=i.uri,c=i[N]||{},s=i[Lo]||{},i=(L(i.refUri)||(c.refUri=i.refUri),L(i.pageType)||(c.pageType=i.pageType),L(i.isLoggedIn)||(c.isLoggedIn=i.isLoggedIn[Uo]()),L(i[N])||U(i[N],function(e,n){c[e]=n}),Sa(n[d],c,s),L(t)||Ta(c,t),new ro(e,a,u,r,c,s,o)),t=new fo(ro[S],i);return Na(e,ro[Oo],n,t)},n[so.dataType]=function(e,n,t){Da(e,n);var r=n[T],i=r[ko],o=r.uri||r.url,a=r[N]||{},u=r[Lo]||{},t=(Sa(n[d],a,u),L(t)||Ta(a,t),new so(e,i,o,undefined,a,u,r)),i=new fo(so[S],t);return Na(e,so[Oo],n,i)},n[Ji.dataType]=function(e,n,t){Da(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Sa(n[d],i,r),L(t)||Ta(i,t),n[T]),t=Ji.CreateFromInterface(e,t,i,r),i=new fo(Ji[S],t);return Na(e,Ji[Oo],n,i)},n[Qi.dataType]=function(e,n,t){Da(e,n);var r=n[T],i=r[N]||{},o=r[Lo]||{},t=(Sa(n[d],i,o),L(t)||Ta(i,t),new Qi(e,r[ko],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new fo(Qi[S],t);return Na(e,Qi[Oo],n,r)},n[oo.dataType]=function(e,n,t){Da(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Sa(n[d],i,r),L(t)||Ta(i,t),n[T]);if(L(t))return Bt(e,"Invalid input for dependency data"),null;var o=t[N]&&t[N][Br]?t[N][Br]:"GET",o=new oo(e,t.id,t.target,t[ko],t[Mo],t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new fo(oo[S],o);return Na(e,oo[Oo],n,t)};var Xa,$a=n,E=(Q(Ga,Xa=Le),Ga.constructEnvelope=function(e,n,t,r){e=n===e.iKey||L(n)?e:Y(Y({},e),{iKey:n});return($a[e.baseType]||Ma)(t,e,r)},Ga);function Ga(){var x,C,S,r,T,N,D,A,M,R,k,E=Xa.call(this)||this,P=(E.priority=1001,E.identifier="AppInsightsChannelPlugin",E._senderConfig=Ja(),0);return h(Ga,E,function(l,a){function s(e,n,t,r,i,o){var a=null;l._appId||(a=v(o))&&a.appId&&(l._appId=a.appId),(e<200||300<=e)&&0!==e?(301!==e&&307!==e&&308!==e||u(t))&&!l[J][ya]()&&g(e)?(m(n),z(l[K](),2,40,". Response code "+e+". Will retry to send "+n[H]+" items.")):l[X](n,i):R&&!R.isOnline()?l[J][ya]()||(m(n,10),z(l[K](),2,40,". Offline - Response Code: ".concat(e,". Offline status: ").concat(!R.isOnline(),". Will retry to send ").concat(n.length," items."))):(u(t),206===e?(a=a||v(o))&&!l[J][ya]()?l[va](n,a):l[X](n,i):(x=0,l[ma](n,r)))}function u(e){return!(10<=N)&&!L(e)&&""!==e&&e!==l[J][aa]()&&(l[J][aa]=function(){return e},++N,1)}function n(e,n){M?M(e,!1):c(e)}function o(e){var n=en(),t=l[ta],r=l[J][aa](),i=l._buffer[Ho](e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t[Ko](e),l._onSuccess(e,e[H])),r}function c(e,n){if(O(e)&&0<e[H]&&!o(e)){for(var t=[],r=0;r<e[H];r++){var i=e[r];o([i])||t[Bo](i)}0<t[H]&&(A&&A(t,!0),z(l[K](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function f(n,e){var t=new XMLHttpRequest,r=l[J][aa]();try{t[Fr]=!0}catch(i){}t.open("POST",r,e),t[ga]("Content-type","application/json"),Mi(r)&&t[ga](Kr[6],Kr[7]),F(rn(D),function(e){t[ga](e,D[e])}),t.onreadystatechange=function(){return l._xhrReadyStateChange(t,n,n[H])},t.onerror=function(e){return l[X](n,w(t),e)};e=l._buffer[Ho](n);t.send(e),l._buffer[Ko](n)}function d(e,n){if(O(e)){for(var t=e[H],r=0;r<e[H];r++)t+=e[r][H];P+t<=65e3?i(e,!1):At()?c(e):(A&&A(e,!0),z(l[K](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function p(e,n){i(e,!0)}function i(t,r){var e=l[J][aa](),n=l._buffer[Ho](t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n[H],n=!1,u=!1,e=(Mi(e)&&o.append(Kr[6],Kr[7]),F(rn(D),function(e){o.append(e,D[e])}),(i={method:"POST",headers:o,body:i})[Fr]=!0,r||(n=i.keepalive=!0,P+=a),new Request(e,i));try{e[Fr]=!0}catch(c){}l._buffer[Ko](t);try{fetch(e).then(function(n){r||(P-=a,a=0),u||(u=!0,n.ok?n.text().then(function(e){s(n.status,t,n.url,t[H],n.statusText,e)}):l[X](t,n.statusText))})["catch"](function(e){r||(P-=a,a=0),u||(u=!0,l[X](t,e.message))})}catch(c){u||l[X](t,j(c))}n&&!u&&(u=!0,l._onSuccess(t,t[H]))}function v(e){try{if(e&&""!==e){var n=Dt().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n[ha]&&n.itemsReceived-n.itemsAccepted===n.errors[H])return n}}catch(t){z(l[K](),1,43,"Cannot parse the response. "+B(t),{response:e})}return null}function m(e,n){if(void 0===n&&(n=1),e&&0!==e[H]){var t=l[ta];t[Jo](e),x++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t[jo](o)}n=x<=1?10:(e=1+Math.floor((Math.pow(2,x)-1)/2*Math.random()*10),Math.max(Math.min(e*=n,3600),10)),e=pt()+1e3*n;C=e,h()}}function h(){var e;r||S||(e=C?Math.max(0,C-pt()):0,e=Math.max(l[J][wa](),e),r=setTimeout(function(){r=null,l[Zo](!0,null,1)},e))}function y(){clearTimeout(r),C=r=null}function g(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function w(e,n){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+Ka(e)||e.response||"":n}function b(n,e){var t=l[ta],r=Qe(),i=new XDomainRequest,r=(i.onload=function(){return l._xdrOnLoad(i,n)},i.onerror=function(e){return l[X](n,I(i),e)},r&&r.location&&r.location.protocol||"");if(l[J][aa]().lastIndexOf(r,0))return z(l[K](),2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void t[Vo]();r=l[J][aa]().replace(/^(https?:)/,""),i.open("POST",r),r=t[Ho](n);i.send(r),t[Ko](n)}function I(e,n){return e?"XDomainRequest,Response:"+Ka(e)||"":n}function _(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t[ba])try{t[ba](e,n)}catch(r){z(l[K](),1,74,"send request notification failed: "+B(r),{exception:j(r)})}}function t(){l[na]=null,l[ta]=null,l._appId=null,l._sample=null,S=!(D={}),P=N=x=0,k=M=A=T=r=C=R=null}t(),l.pause=function(){y(),S=!0},l.resume=function(){S&&(S=!1,C=null,l._buffer.size()>l._senderConfig[Yo]()&&l[Zo](!0,null,10),h())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!S){y();try{l[Zo](e,null,t||1)}catch(r){z(l[K](),1,22,"flush failed, telemetry will not be collected: "+B(r),{exception:j(r)})}}},l.onunloadFlush=function(){if(!S)if(!1!==l._senderConfig[Qo]()&&!1!==l[J][ea]()||!At())l.flush();else try{l[Zo](!0,n,2)}catch(e){z(l[K](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+B(e),{exception:j(e)})}},l.addHeader=function(e,n){D[e]=n},l.initialize=function(e,n,t,r){l.isInitialized()&&z(l[K](),1,28,"Sender is already initialized"),a.initialize(e,n,t,r);var i=l._getTelCtx(),o=l.identifier,t=(T=new Fa(n.logger),C=null,x=0,l[na]=null,N=0,l[K]()),r=(k=Lr(or("Sender"),n.evtNamespace&&n.evtNamespace()),R=function(e){var n,t=Ze(),r=en(),i=!1,o=!0,a=Lr(or("OfflineListener"),e);try{u(Qe())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!L(r[Fo])&&(o=r[Fo])}catch(l){i=!1}function u(e){var n=!1;return e&&(n=Or(e,"online",c,a))&&Or(e,"offline",s,a),n}function c(){o=!0}function s(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!L(r[Fo])&&(e=r[Fo]),e},isListening:function(){return i},unload:function(){var e=Qe();e&&i&&(Ra(e,a),t&&!je((e=t.body||t).ononline)&&Ra(e,a),i=!1)}}}(k),U(Ja(),function(n,t){l[J][n]=function(){var e=i.getConfig(o,n,t());return e||"endpointUrl"!==n?e:t()}}),l._buffer=new(l[J][ra]()&&No()?Ua:Pa)(t,l[J]),l._sample=new Va(l[J][ia](),t),!L(e[Ia])&&e[Ia]||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e[oa])||z(t,1,100,"Invalid Instrumentation key "+e[oa]),!Mi(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders()[H]&&F(l[J][ua](),function(e){E.addHeader(e.header,e.value)}),l[J]),n=null;!r[ca]()&&Rt()?n=b:!r[ca]()&&kt()&&(n=f),!n&&Mt()&&(n=p),A=n||f,!r[ea]()&&At()&&(n=c),l[na]=n||f,M=!r[sa]()&&Mt(!0)?d:At()?c:!r[ca]()&&Rt()?b:!r[ca]()&&kt()?f:A},l.processTelemetry=function(e,n){var t=(n=l._getTelCtx(n))[K]();try{if(l[J][la]())return;if(!e)return void z(t,1,7,"Cannot send empty telemetry");if(e.baseData&&!e[fa])return void z(t,1,70,"Cannot send telemetry without baseData and baseType");if(e[fa]||(e[fa]="EventData"),!l[na])return void z(t,1,28,"Sender was not initialized");if(!l._sample.isSampledIn(e))return void z(t,2,33,"Telemetry item was sampled out and not sent",{SampleRate:l._sample[da]});e[jr]=l._sample[da];var r=l[J][pa]()||undefined,i=e.iKey||l[J][oa](),o=Ga.constructEnvelope(e,i,t,r);if(!o)return void z(t,1,47,"Unable to create an AppInsights envelope");var a=!1;if(e[V]&&e[V][qr]&&(F(e[V][qr],function(e){try{e&&!1===e(o)&&(a=!0,Bt(t,"Telemetry processor check returns false"))}catch(n){z(t,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+B(n),{exception:j(n)},!0)}}),delete e[V][qr]),a)return;var u=T.serialize(o),c=l[ta];c.size()+u[H]>l[J][Yo]()&&l[Zo](!0,null,10),c[jo](u),h()}catch(s){z(t,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+B(s),{exception:j(s)})}l.processNext(e,n)},l._xhrReadyStateChange=function(e,n,t){4===e.readyState&&s(e.status,n,e.responseURL,t,w(e),Ka(e)||e.response)},l[Zo]=function(e,n,t){if(void 0===e&&(e=!0),!S)try{var r,i=l[ta];l[J][la]()?i[Vo]():0<i[qo]()&&(r=i.getItems(),_(t||0,e),n?n.call(E,r,e):l[na](r,e)),y()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=en()||{})?(n[Ln]||q)[qn]():q)||q)[qn]();if(lt(n,wt))return e=Ze()||{},Math.max(parseInt(n[On](wt)[1]),e.documentMode||0);if(lt(n,bt)){e=parseInt(n[On](bt)[1]);if(e)return e+4}return null}();(!i||9<i)&&z(l[K](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+B(o),{exception:j(o)})}},l._doTeardown=function(e,n){l.onunloadFlush(),R.unload(),t()},l[X]=function(e,n,t){z(l[K](),2,26,"Failed to send telemetry.",{message:n}),l._buffer[Jo](e)},l[va]=function(e,n){for(var t=[],r=[],i=0,o=n.errors.reverse();i<o.length;i++){var a=o[i],u=e.splice(a.index,1)[0];(g(a.statusCode)?r:t)[Bo](u)}0<e[H]&&l[ma](e,n[ha]),0<t[H]&&l[X](t,w(null,["partial success",n[ha],"of",n.itemsReceived].join(" "))),0<r[H]&&(m(r),z(l[K](),2,40,"Partial success. Delivered: "+e[H]+", Failed: "+t[H]+". Will retry to send "+r[H]+" our of "+n.itemsReceived+" items"))},l[ma]=function(e,n){l._buffer[Jo](e)},l._xdrOnLoad=function(e,n){var t=Ka(e);!e||t+""!="200"&&""!==t?(t=v(t))&&t.itemsReceived&&t.itemsReceived>t[ha]&&!l[J][ya]()?l[va](n,t):l[X](n,I(e)):(x=0,l[ma](n,0))}}),E}t.Sender=E,Object.defineProperty(t,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=applicationinsights-channel-js.min.js.map
|