@microsoft/applicationinsights-channel-js 3.0.0-beta.2209-03 → 3.0.0-beta.2210-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-channel-js.integrity.json +9 -9
- package/browser/applicationinsights-channel-js.js +3 -3
- 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.api.json +1 -1
- package/dist/applicationinsights-channel-js.d.ts +1 -1
- package/dist/applicationinsights-channel-js.js +3 -3
- 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 +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/types/tsdoc-metadata.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 3.0.0-beta.2210-01
|
|
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="indexOf",Re="length",ke=Object,Ee=ke[De],Pe=String[De];function Oe(e,n){try{n=e()}catch(t){}return n}function Le(n){return function(e){return typeof e===n}}function Ue(e){return Ee.toString.call(e)}function Fe(e){return typeof e===Ae||e===Ae}function O(e){return null===e||Fe(e)}function je(e){return!!e||e!==Te}var y=Le("string"),g=Le("function");function p(e){return!O(e)&&!!e&&typeof e===Ne}var qe,L=Array.isArray,Be=Le("number"),ze=Le("boolean"),Ve=function(e){return!(!e||Ue(e)!==qe)};function He(e){return!(!e||Oe(function(){return!(e&&0+e)},!e))}var Ke="navigator",Je="window",Xe=null,$e=Oe(function(){return je(window)},!(qe="[object Error]")),Ge=Oe(function(){return je(document)},!1),We=Oe(function(){return je(navigator)},!1);function w(e,n){(n=!1===n?null:Xe)||((n=(n=(n=typeof globalThis!==Ae?globalThis:n)||typeof self===Ae?n:self)||typeof window===Ae?n:window)||typeof global===Ae||(n=global),Xe=n);return n&&n[e]?n[e]:e===Je&&$e?window:null}function Ye(){return Ge?document:w("document")}function Ze(){return $e?window:w(Je)}function Qe(){return We?navigator:w(Ke)}Oe(function(){return je(history)},!1),Oe(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1),Oe(function(){return!(!process||!(process.versions||{}).node)},!1);var en=ke.getOwnPropertyDescriptor,nn=ke.hasOwn||function(e,n){return e&&Ee.hasOwnProperty.call(e,n)||!!en(e,n)};function U(e,n,t){if(e&&p(e))for(var r in e)if(nn(e,r)&&-1===n.call(t||e,r,e[r]))break}function F(e,n,t){if(e)for(var r=e[Re],i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function tn(e){throw new TypeError(e)}var rn=ke.freeze;function on(e){return p(e)&&null!==e||tn("objKeys called on non-object"),ke.keys(e)}function an(e){return rn&&U(e,function(e,n){(L(n)||p(n))&&rn(n)}),un(e)}var un=rn||function(e){return e};function j(e,n){var t=Ue(e);return t+": "+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":n?Be(n)?JSON.stringify(e,null,n):JSON.stringify(e,null,n?4:0):JSON.stringify(e))}function cn(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);tn("'"+r+"' not defined for "+j(e))}}var sn,ln=cn(Me),fn=cn("map");function dn(e){var n,t,r;throw new(sn=sn||(t=function(){var e=this;return n.apply(e,arguments)||e},r=n=Error,(ke.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 pn=ke.defineProperty,vn=cn(Me),mn=/^\s+|(?=\s)\s+$/g,hn=Pe.trim?cn("trim"):function(e){return O(e)&&tn("strTrim called ["+j(e)+"]"),e&&e.replace?e.replace(mn,""):e},Me=function(e){var t={};return U(e,function(e,n){t[e]=n,t[n]=e}),an(t)},yn="name",gn="identifier",wn="push",bn="isInitialized",In="config",_n="logger",xn="length",Cn="time",b="processNext",Sn="getPlugin",Tn="teardown",Nn="messageId",Dn="message",An="isAsync",Mn="_doTeardown",Rn="update",kn="getNext",En="diagLog",Pn="setNextPlugin",On="createNew",Ln="userAgent",Un="split",Fn="nodeType",jn="replace",qn="enableDebugExceptions",Bn="toLowerCase",I="type",zn="handler",Vn="call",Hn="isChildEvt",Kn="getCtx",l="setCtx",Jn="complete",q="",_="core",Xn="disabled",$n="extensionConfig",Gn="processTelemetry",Wn="priority",Yn="errorToConsole",Zn="warnToConsole",Qn="getPerfMgr",et=null,Pe="toISOString",e="toString",n="getPrototypeOf",nt="constructor",tt=Date[a][Pe]||ct(0,Pe),rt=P[e]||ct(0,e),it=rt[Vn](s),ot=/-([a-z])/g,at=/([^\w\d_$])/g,ut=/^(\d+[\w\d_$])/;function ct(e,n){return function(){dn("Polyfill required for ["+n+"]")}}var st=Object[n]||ct(0,n);function lt(e){return e&&y(e)?(e=(e=e[jn](ot,function(e,n){return n.toUpperCase()}))[jn](at,"_"))[jn](ut,function(e,n){return"_"+n}):e}function ft(e,n){return!(!e||!n)&&-1!==vn(e,n)}function dt(e){return e&&"object"==typeof e&&(!(e=st(e))||typeof(e=e[nt]&&P[Vn](e,nt)?e[nt]:e)==r&&rt[Vn](e)===it)}function pt(e){return tt[Vn](e)}function vt(){var e=Date;return e.now?e.now():(new e).getTime()}function B(e){return Ve(e)?e[yn]:q}function mt(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function ht(e,n){return O(e)?n:e}function yt(e){return e&&R?s(R({},e)):e}var gt="console",wt="JSON",bt="msie",It="trident/",_t="XMLHttpRequest",xt=null,Ct=null,St=null,Tt=null;function Nt(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=!Fe((new e)[n])}catch(i){}}return r}function Dt(){return typeof JSON===i&&JSON||null!==w(wt)}function At(){return Dt()?JSON||w(wt):null}function Mt(){return Tt=null===Tt?!!Qe()&&!!Qe().sendBeacon:Tt}function Rt(e){var n=!1;try{var n=!!w("fetch"),t=w("Request");n&&e&&t&&(n=Nt(t,"keepalive"))}catch(r){}return n}function kt(){return St=null===St&&(St=typeof XDomainRequest!==o)&&Et()?St&&!Nt(w(_t),"withCredentials"):St}function Et(){var e=!1;try{e=!!w(_t)}catch(n){}return e}function Pt(e){return e?'"'+e[jn](/\"/g,q)+'"':q}function Ot(e,n){var t,r=typeof console!==o?console:w(gt);r&&(t="log",r[e]&&(t=e),g(r[t])&&r[t](n))}Ut.dataType="MessageData";var Lt=Ut;function Ut(e,n,t,r){void 0===t&&(t=!1),this[Nn]=e,this[Dn]=(t?"AI: ":"AI (Internal): ")+e;t=q,Dt()&&(t=At().stringify(r)),e=(n?" message:"+Pt(n):q)+(r?" props:"+Pt(t):q);this[Dn]+=e}function Ft(e,n){return(e||{})[_n]||new jt(n)}qt.__ieDyn=1;var jt=qt;function qt(i){this.identifier="DiagnosticLogger",this.queue=[];var c,s,l,f,d=0,p={};h(qt,this,function(o){var e;function a(e,n){var t,r;l<=d||(r=!0,t="AITR_"+n[Nn],p[t]?r=!1:p[t]=!0,r&&(e<=s&&(o.queue[wn](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[wn](r),1===e?o[Yn](t):o[Zn](t))))}function u(e,n){var t,r=(t=(t=et)||!0===(i||{}).disableDbgExt?t:et||(r=w("Microsoft"),et=r?r.ApplicationInsights:et))?t.ChromeDbgExt:null;r&&r[En]&&r[En](e,n)}c=ht((e=i||{}).loggingLevelConsole,0),s=ht(e.loggingLevelTelemetry,1),l=ht(e.maxMessageLimit,25),f=ht(e[qn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return s},o.maxInternalMessageLimit=function(){return l},o[qn]=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?Yn:Zn;Fe(n[Dn])?u("throw"+(1===e?"Critical":"Warning"),n):(i?(r=+n[Nn],!p[r]&&e<=c&&(o[t](n[Dn]),p[r]=!0)):e<=c&&o[t](n[Dn]),a(e,n))},o[Zn]=function(e){Ot("warn",e),u("warning",e)},o[Yn]=function(e){Ot("error",e),u("error",e)},o.resetInternalMessageCount=function(){d=0,p={}},o.logInternalMessage=a})}function Bt(e){return e||new jt}function z(e,n,t,r,i,o){void 0===o&&(o=!1),Bt(e).throwInternal(n,t,r,i,o)}function zt(e,n){Bt(e)[Zn](n)}var Vt="ParentContextKey",Ht="ChildrenContextKey",Kt=(Jt.ParentContextKey="parent",Jt.ChildrenContextKey="childEvts",Jt);function Jt(e,n,t){var r,i,o,a=this;if(a.start=vt(),a[yn]=e,a[An]=t,a[Hn]=function(){return!1},g(n)){var e=a,t="payload",u=function(){return!r&&g(n)&&(r=n(),n=null),r};if(pn)try{var c={enumerable:!0,configurable:!!Fe(void 0)||void 0};c.get=u,i=e,o=t,pn?pn(i,o,c):dn("Unable to define property ["+Ue(o)+"] on "+j(i))}catch(s){dn("Unable to define accessors for ["+Ue(t)+"] on "+j(e))}}a[Kn]=function(e){return e?(e===Jt[Vt]||e===Jt[Ht]?a:a.ctx||{})[e]:null},a[l]=function(e,n){e&&(e===Jt[Vt]?(a[e]||(a[Hn]=function(){return!0}),a[e]=n):e===Jt[Ht]?a[e]=n:(a.ctx=a.ctx||{})[e]=n)},a[Jn]=function(){var e=0,n=a[Kn](Jt[Ht]);if(L(n))for(var t=0;t<n[xn];t++){var r=n[t];r&&(e+=r[Cn])}a[Cn]=vt()-a.start,a.exTime=a[Cn]-e,a[Jn]=function(){}}}var Xt="CoreUtils.doPerf";function $t(e,n,t,r,i){if(e)if(e=e[Qn]?e[Qn]():e){var o,a=void 0,u=e[Kn](Xt);try{if(a=e.create(n(),r,i))return u&&a[l]&&(a[l](Kt[Vt],u),u[Kn]&&u[l]&&((o=u[Kn](Kt[Ht]))||(o=[],u[l](Kt[Ht],o)),o[wn](a))),e[l](Xt,a),t(a)}catch(c){a&&a[l]&&a[l]("exception",c)}finally{a&&e.fire(a),e[l](Xt,u)}}t()}var Gt=4294967296,Wt=4294967295,Yt=!1,Zt=123456789,Qt=987654321;function er(e){var n,t=0,r=w("crypto")||w("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&Wt:t)&&(!(r=Qe())||r[Ln]===Ct&&null!==xt||(r=((Ct=r[Ln])||q)[Bn](),xt=ft(r,bt)||ft(r,It)),xt)){if(!Yt)try{var i=2147483647&vt();(n=(Math.random()*Gt^i)+i)<0&&(n>>>=0),Zt=123456789+n&Wt,Qt=987654321-n&Wt,Yt=!0}catch(o){}r=((Qt=36969*(65535&Qt)+(Qt>>16)&Wt)<<16)+(65535&(Zt=18e3*(65535&Zt)+(Zt>>16)&Wt))>>>0&Wt|0,t=(r>>>=0)&Wt}return 0===t&&(t=Math.floor(Gt*Math.random()|0)),e||(t>>>=0),t}var nr=E,tr="3.0.0-beta.2209-03",rr="."+function(e){void 0===e&&(e=22);for(var n=er()>>>0,t=0,r=q;r[xn]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(er()<<2&4294967295|3&n)>>>0,t=0);return r}(6),ir=0;function or(e){return 1===e[Fn]||9===e[Fn]||!+e[Fn]}function ar(e,n){return lt(e+ir+++((n=void 0!==n&&n)?"."+tr:q)+rr)}function ur(e){var o={id:ar("_aiData-"+(e||q)+"."+tr),accept:or,get:function(e,n,t,r){var i=e[o.id];return i?i[lt(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{or(n)&&!function(e,n,t){if(nr)try{return nr(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))[lt(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var cr=ur("plugin");function sr(e){return cr.get(e,"state",{},!0)}var lr="TelemetryPluginChain",fr="_hasRun",dr="_getTelCtx",pr=0;function vr(e,a,t,n){var r=null,i=[],o=(null!==n&&(r=n?function(e,n,t){for(;e;){if(e[Sn]()===t)return e;e=e[kn]()}return hr([t],n[In]||{},n)}(e,t,n):e),{_next:function(){var e,n=r;return r=n?n[kn]():null,n||(e=i)&&0<e[xn]&&(F(e,function(e){try{e.func[Vn](e.self,e.args)}catch(n){z(t[_n],2,73,"Unexpected Exception during onComplete - "+j(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return Ft(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&&!O(e[n])?r=e[n]:a&&!O(a[n])&&(r=a[n]),O(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[Sn]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i[wn]({func:e,self:Fe(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[$n])&&e?i[e]:r)?p(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e[xn],r=!1,i=1;for(0<t&&ze(n)&&(r=n,n=e[i]||{},i++),p(n)||(n={});i<t;i++){var o,a,u,c,s=e[i],l=L(s),f=p(s);for(o in s)(l&&o in s||f&&P[Vn](s,o))&&(a=s[o],u=void 0,r&&a&&((u=L(a))||dt(a))&&(c=n[o],u?L(c)||(c=[]):dt(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;O(o[e])&&!O(n=a[e])&&(o[e]=n)}),r=o):r=n,r}return o}function mr(e,t,r,n){var i=vr(e,t,r,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n[Gn](e,o),!n},o[On]=function(e,n){return mr((e=L(e=void 0===e?null:e)?hr(e,t,r,n):e)||o[kn](),t,r,n)},o}function hr(e,n,t,r){var i,o=null,a=!r;return L(e)&&0<e[xn]&&(i=null,F(e,function(e){(a=!a&&r===e||a)&&e&&g(e[Gn])&&(e=yr(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?hr([r],n,t):o}function yr(c,r,i){var s=null,o=g(c[Gn]),a=g(c[Pn]),l=c?c[gn]+"-"+c[Wn]+"-"+pr++:"Unknown-0-"+pr++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&g(c[dr])?c[dr]():n)||mr(u,r,i)),function(e){if(!c||!o)return!1;var n=sr(c);return!n[Tn]&&!n[Xn]&&(a&&c[Pn](s),c[Gn](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=sr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Tn]||(e[_]=null,e[Tn]=!0,e[bn]=!1,c[Tn]&&!0===c[Tn](r,i)&&(t=!0))),t},"unload",function(){},i[An])||r[b](i)},update:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=sr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Tn]||c[Rn]&&!0===c[Rn](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[gn]:lr,u=(u=t[fr])||(t[fr]={});return t.setNext(s),c&&$t(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[En](),1,73,"Plugin ["+a+"] failed during "+i+" - "+j(n)+", run flags: "+j(u))}},e,n),o}return un(u)}function gr(){var n=[];return{add:function(e){e&&n[wn](e)},run:function(t,r){F(n,function(e){try{e(t,r)}catch(n){z(t[En](),2,73,"Unexpected error calling unload handler - "+j(n))}}),n=[]}}}var wr="getPlugin",Pe=(br.__ieDyn=1,br);function br(){var o,i,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=i||mr(null,{},a[_]),e=l&&l[wr]?n[On](null,l[wr]):n[On](null,l)),e}function c(e,n,t){e&&mt(e,$n,[],null,O),!t&&n&&(t=n.getProcessTelContext()[kn]());var r=l;l&&l[wr]&&(r=l[wr]()),a[_]=n,i=mr(t,e,n,r)}function p(){o=!1,a[_]=null,l=i=null,d=[],f=gr()}p(),h(br,a,function(s){var e,n,t,r,i;s.initialize=function(e,n,t,r){c(e,n,r),o=!0},s[Tn]=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[In]||{},i=vr(e,r,t,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n.unload(o,e),!n},o[On]=function(e,n){return c((e=L(e=void 0===e?null:e)?hr(e,r,t,n):e)||o[kn](),t,n)},o}(null,a,l&&l[wr]?l[wr]():l),o=n||((e={reason:0})[An]=!1,e),s[Mn]&&!0===s[Mn](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[Rn]=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[In]||{},i=vr(e,r,t,n).ctx;return i[b]=function(n){return i.iterate(function(e){g(e[Rn])&&e[Rn](i,n)})},i[On]=function(e,n){return u((e=L(e=void 0===e?null:e)?hr(e,r,t,n):e)||i[kn](),t,n)},i}(null,o,l&&l[wr]?l[wr]():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[kn]()))}},s._addHook=function(e){e&&(L(e)?d=d.concat(e):d[wn](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[En]=function(e){return n(e)[En]()},a[bn]=function(){return o},a.setInitialized=function(e){o=e},a[Pn]=function(e){l=e},a[b]=function(e,n){n?n[b](e):l&&g(l[Gn])&&l[Gn](e,null)},a._getTelCtx=n}var Ir="attachEvent",_r="addEventListener",xr="detachEvent",Cr="removeEventListener",Sr="events",Tr=(ar("aiEvtPageHide"),ar("aiEvtPageShow"),/\.[\.]+/g),Nr=/[\.]+$/,Dr=1,Ar=ur("events"),Mr=/^([^.]*)(?:\.(.+)|)/;function Rr(e){return e&&e[jn]?e.replace(/^\s*\.*|\.*\s*$/g,q):e}function kr(e,n){n&&(t=q,L(n)?(t=q,F(n,function(e){(e=Rr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=Rr(n),t&&("."!==t[0]&&(t="."+t),e=(e||q)+t));var t,n=Mr.exec(e||q)||[],e={};return e[I]=n[1],e.ns=(n[2]||q).replace(Tr,".").replace(Nr,q)[Un](".").sort().join("."),e}function Er(e,n,t){e=Ar.get(e,Sr,{},t=void 0===t||t);return e[n]||(e[n]=[])}function Pr(e,n,t,r){e&&n&&n[I]&&(e[Cr]?e[Cr](n[I],t,r):e[xr]&&e[xr]("on"+n[I],t))}function Or(e,n,t,r){for(var i=n[xn];i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Pr(e,o.evtName,o[zn],o.capture),n.splice(i,1))}}function Lr(e,n){return n?kr("xx",L(n)?[e].concat(n):[e,n]).ns[Un]("."):e}function Ur(e,n,t,r,i){void 0===i&&(i=!1);var o,a,u=!1;if(e)try{var c,s=kr(n,r),l=s,f=t,d=i,p=!1;(a=e)&&l&&l[I]&&f&&(a[_r]?(a[_r](l[I],f,d),p=!0):a[Ir]&&(a[Ir]("on"+l[I],f),p=!0)),(u=p)&&Ar.accept(e)&&((o={guid:Dr++,evtName:s})[zn]=t,o.capture=i,c=o,Er(e,s.type)[wn](c))}catch(v){}return u}var Fr,jr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",qr="sampleRate",Br="ProcessLegacy",zr="http.method",Vr="https://dc.services.visualstudio.com",Hr="/v2/track",Kr="not_specified",Jr=(Fr={},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){Fr[e]=n[1],Fr[n[0]]=n[1]}),an(Fr)),Xr="split",x="length",$r="toLowerCase",Gr="toString",Wr="removeItem",Yr="name",Zr="pathname",Qr="indexOf",ei="exceptions",ni="parsedStack",ti="properties",ri="measurements",ii="stringify",oi="message",ai="sizeInBytes",ui="typeName",ci="severityLevel",si="problemGroup",li="isManual",fi="CreateFromInterface",di="hasFullStack",pi="level",vi="method",mi="assembly",hi="fileName",yi="line",gi="duration",wi="receivedResponse",bi="substring";function Ii(e,n,t){var r,i,o=n[x],a=(e=e,(n=n)&&150<(n=hn(n[Gr]()))[x]&&(i=n[bi](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[bi](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=hn(n[Gr]()))[x]>t&&(r=n[bi](0,t),z(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function _i(e,n){return Ti(e,n,2048,66)}function xi(e,n){var t;return n&&32768<n[x]&&(t=n[bi](0,32768),z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function Ci(r,e){var i;return e&&(i={},U(e,function(e,n){if(p(n)&&Dt())try{n=At()[ii](n)}catch(t){z(r,2,49,"custom property is not valid",{exception:t},!0)}n=C(r,n,8192),e=Ii(r,e,i),i[e]=n}),e=i),e}function Si(t,e){var r;return e&&(r={},U(e,function(e,n){e=Ii(t,e,r),r[e]=n}),e=r),e}function Ti(e,n,t,r){var i;return n&&(n=hn(n[Gr]()))[x]>t&&(i=n[bi](0,t),z(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var Ni=Ye()||{},Di=0,Ai=[null,null,null,null,null];var Mi=[Vr+Hr,"https://breeze.aimon.applicationinsights.io"+Hr,"https://dc-int.services.visualstudio.com"+Hr];function Ri(e){return-1!==ln(Mi,e[$r]())}var ki=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Yr]=C(e,t)||Kr,i.data=n,i.time=pt(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},Ei=(Pi.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Pi.dataType="EventData",Pi);function Pi(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[Yr]=C(e,n)||Kr,this[ti]=Ci(e,t),this[ri]=Si(e,r)}var Oi="error",c="stack",Li="stackDetails",Ui="errorSrc",Fi="message",ji="description";function qi(e,n){var t=e;return t&&!y(t)&&(JSON&&JSON[ii]?(t=JSON[ii](e),!n||t&&"{}"!==t||(t=g(e[Gr])?e[Gr]():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function Bi(e,n){var t=e;return e&&((t=t&&!y(t)&&(e[Fi]||e[ji])||t)&&!y(t)&&(t=qi(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&-1===(t||"")[Qr](n)?n+": "+t:t)||""}function zi(e){return e&&e.src&&y(e.src)&&e.obj&&L(e.obj)}function Vi(e){var e=e||"",n=(e=y(e)?e:y(e[c])?e[c]:""+e)[Xr]("\n");return{src:e,obj:n}}function Hi(e){var n,t=null;if(e)try{e[c]?t=Vi(e[c]):e[Oi]&&e[Oi][c]?t=Vi(e[Oi][c]):e.exception&&e.exception[c]?t=Vi(e.exception[c]):zi(e)?t=e:zi(e[Li])?t=e[Li]:window&&window.opera&&e[Fi]?t=function(e){for(var n=[],t=e[Xr]("\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[oi]):e.reason&&e.reason[c]?t=Vi(e.reason[c]):y(e)?t=Vi(e):(n=e[Fi]||e[ji]||"",y(e[Ui])&&(n&&(n+="\n"),n+=" from "+e[Ui]),n&&(t=Vi(n)))}catch(r){t=Vi(r)}return t||{src:"",obj:null}}function Ki(e){var n="";if(e&&!(n=e.typeName||e[Yr]||""))try{var t=/function (.{1,200})\(/.exec(e.constructor[Gr]()),n=t&&1<t[x]?t[1]:""}catch(r){}return n}function Ji(e){if(e)try{var n,t;if(!y(e))return n=Ki(e),(t=qi(e,!1))&&"{}"!==t||(e[Oi]&&(n=Ki(e=e[Oi])),t=qi(e,!0)),0!==t[Qr](n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}$i.CreateAutoException=function(e,n,t,r,i,o,a,u){var c=Ki(i||o||e),s={};return s[oi]=Bi(e,c),s.url=n,s.lineNumber=t,s.columnNumber=r,s.error=Ji(i||o||e),s.evt=Ji(o||e),s[ui]=c,s.stackDetails=Hi(a||i||o),s.errorSrc=u,s},$i.CreateFromInterface=function(n,e,t,r){var i=e[ei]&&fn(e[ei],function(e){return Gi[fi](n,e)});return new $i(n,Y(Y({},e),{exceptions:i}),t,r)},$i.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&&fn(n,function(e){return e.toInterface()})||undefined,u={ver:"4.0"};return u[ei]=n,u.severityLevel=i,u.properties=t,u.measurements=r,u.problemGroup=o,u.id=a,u.isManual=e,u},$i.CreateSimpleException=function(e,n,t,r,i,o){var a;return{exceptions:[((a={})[di]=!0,a.message=e,a.stack=i,a.typeName=n,a)]}},$i.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",$i.dataType="ExceptionData",$i.formatError=Ji;var Xi=$i;function $i(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[ei]=n[ei]||[],a[ti]=n[ti],a[ri]=n[ri],n[ci]&&(a[ci]=n[ci]),n.id&&(a.id=n.id),n[si]&&(a[si]=n[si]),O(n[li])||(a[li]=n[li])):(a[ei]=[new Gi(e,n,t=t||{})],a[ti]=Ci(e,t),a[ri]=Si(e,r),i&&(a[ci]=i),o&&(a.id=o))}Wi.prototype.toInterface=function(){var e=this,n=e[ni]instanceof Array&&fn(e[ni],function(e){return e.toInterface()});return(e={id:e.id,outerId:e.outerId,typeName:e[ui],message:e[oi],hasFullStack:e[di],stack:e[c]})[ni]=n||undefined,e},Wi.CreateFromInterface=function(e,n){var t=n[ni]instanceof Array&&fn(n[ni],function(e){return Yi[fi](e)})||n[ni];return new Wi(e,Y(Y({},n),{parsedStack:t}))};var Gi=Wi;function Wi(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,Ve(o)||(o=o[Oi]||r||o),u[ui]=C(e,Ki(o))||Kr,u[oi]=xi(e,Bi(n||o,u[ui]))||Kr,s=n[Li]||Hi(n),u[ni]=function(){var e=s.obj;if(e&&0<e[x]){var n=[],t=0,r=0;if(F(e,function(e){var e=e[Gr]();Yi.regex.test(e)&&(e=new Yi(e,t++),r+=e[ai],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][ai]+n[o][ai])){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[bi](0,32768),z(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),i||e),u.hasFullStack=L(u.parsedStack)&&0<u.parsedStack[x],t&&(t[ui]=t[ui]||u[ui])):(u[ui]=n[ui],u[oi]=n[oi],u[c]=n[c],u[ni]=n[ni]||[],u[di]=n[di])}Zi.CreateFromInterface=function(e){return new Zi(e,null)},Zi.prototype.toInterface=function(){var e=this;return{level:e[pi],method:e[vi],assembly:e[mi],fileName:e[hi],line:e[yi]}},Zi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Zi.baseSize=58;var Yi=Zi;function Zi(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r[ai]=0,"string"==typeof e?(t=e,r[pi]=n,r[vi]="<no_method>",r[mi]=hn(t),r[hi]="",r[yi]=0,(n=t.match(Zi.regex))&&5<=n[x]&&(r[vi]=hn(n[2])||r[vi],r[hi]=hn(n[4]),r[yi]=parseInt(n[5])||0)):(r[pi]=e[pi],r[vi]=e[vi],r[mi]=e[mi],r[hi]=e[hi],r[yi]=e[yi],r[ai]=0),r.sizeInBytes+=r.method[x],r.sizeInBytes+=r.fileName[x],r.sizeInBytes+=r.assembly[x],r[ai]+=Zi.baseSize,r.sizeInBytes+=r.level.toString()[x],r.sizeInBytes+=r.line.toString()[x]}var Qi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},eo=(no.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",no.dataType="MetricData",no);function no(e,n,t,r,i,o,a,u,c){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var s=new Qi;s.count=0<r?r:undefined,s.max=isNaN(o)||null===o?undefined:o,s.min=isNaN(i)||null===i?undefined:i,s[Yr]=C(e,n)||Kr,s.value=t,s.stdDev=isNaN(a)||null===a?undefined:a,this.metrics=[s],this[ti]=Ci(e,u),this[ri]=Si(e,c)}var to="";function ro(e){var n=to+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=to+Math.floor(e/6e4)%60,r=to+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=to+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+".":to)+r+":"+t+":"+n+"."+e}oo.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",oo.dataType="PageviewData";var io=oo;function oo(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&&Ti(e,a,128,69)[Gr](),u.url=_i(e,t),u[Yr]=C(e,n)||Kr,isNaN(r)||(u[gi]=ro(r)),u[ti]=Ci(e,i),u[ri]=Si(e,o)}uo.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",uo.dataType="RemoteDependencyData";var ao=uo;function uo(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[gi]=ro(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=Ai)[p=Di],Ni.createElement?t[p]||(v=t[p]=Ni.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]||"")[$r](),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),Di=p,p=(t=v).host,a||(null!=t[Zr]?("/"!=((v=0===t.pathname[x]?"/":t[Zr])[0]||"")&&(v="/"+v),c=t[Zr],C(n,i?i+" "+v:v)):C(n,u))):p=o,{target:p,name:a,data:c});m.data=_i(e,r)||t.data,m.target=C(e,t.target),s&&(m.target="".concat(m.target," | ").concat(s)),m[Yr]=C(e,t[Yr]),m[ti]=Ci(e,l),m[ri]=Si(e,f)}so.envelopeType="Microsoft.ApplicationInsights.{0}.Message",so.dataType="MessageData";var co=so;function so(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o[oi]=xi(e,n=n||Kr),o[ti]=Ci(e,r),o[ri]=Si(e,i),t&&(o[ci]=t)}fo.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",fo.dataType="PageviewPerformanceData";var lo=fo;function fo(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=_i(e,t),u[Yr]=C(e,n)||Kr,u[ti]=Ci(e,i),u[ri]=Si(e,o),a&&(u.domProcessing=a.domProcessing,u[gi]=a[gi],u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u[wi]=a[wi],u.sentRequest=a.sentRequest)}var po=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};function vo(e){var n="ai."+e+".";return function(e){return n+e}}var mo,ho,e=vo("application"),n=vo("device"),E=vo("location"),yo=vo("operation"),go=vo("session"),wo=vo("user"),bo=vo("cloud"),Io=vo("internal"),_o=(ho={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:yo("id"),operationName:yo("name"),operationParentId:yo("parentId"),operationRootId:yo("rootId"),operationSyntheticSource:yo("syntheticSource"),operationCorrelationVector:yo("correlationVector"),sessionId:go("id"),sessionIsFirst:go("isFirst"),sessionIsNew:go("isNew"),userAccountAcquisitionDate:wo("accountAcquisitionDate"),userAccountId:wo("accountId"),userAgent:wo("userAgent"),userId:wo("id"),userStoreRegion:wo("storeRegion"),userAuthUserId:wo("authUserId"),userAnonymousUserAcquisitionDate:wo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:wo("authUserAcquisitionDate"),cloudName:bo("name"),cloudRole:bo("role"),cloudRoleVer:bo("roleVer"),cloudRoleInstance:bo("roleInstance"),cloudEnvironment:bo("environment"),cloudLocation:bo("location"),cloudDeploymentUnit:bo("deploymentUnit"),internalNodeName:Io("nodeName"),internalSdkVersion:Io("sdkVersion"),internalAgentVersion:Io("agentVersion"),internalSnippet:Io("snippet"),internalSdkSrc:Io("sdkSrc")},Q(xo,mo=function(){var t=this;U(ho,function(e,n){t[e]=n})}),xo);function xo(){return mo.call(this)||this}var f=new _o,Co=Me({LocalStorage:0,SessionStorage:1}),So=(Me({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function To(e){try{if(O(G()))return null;var n=(new Date)[Gr](),t=w(e===Co.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n,n),t.getItem(n)!==n);if(t[Wr](n),!r)return t}catch(i){}return null}function No(){return Do()?To(Co.SessionStorage):null}function Do(e){return So=e||So===undefined?!!To(Co.SessionStorage):So}function Ao(e,n){var t=No();if(null!==t)try{return t.getItem(n)}catch(r){So=!1,z(e,2,2,"Browser failed read of session storage. "+B(r),{exception:j(r)})}return null}function Mo(e,n,t){var r=No();if(null!==r)try{r.setItem(n,t)}catch(i){So=!1,z(e,2,4,"Browser failed write to session storage. "+B(i),{exception:j(i)})}}var Ro="duration",V="tags",ko="deviceType",d="data",Eo="name",Po="traceID",H="length",Oo="stringify",Lo="measurements",S="dataType",Uo="envelopeType",Fo="toString",jo="onLine",qo="enqueue",Bo="count",zo="push",Vo="emitLineDelimitedJson",Ho="clear",Ko="batchPayloads",Jo="markAsSent",Xo="clearSent",$o="BUFFER_KEY",Go="SENT_BUFFER_KEY",Wo="MAX_BUFFER_SIZE",Yo="namePrefix",Zo="maxBatchSizeInBytes",Qo="triggerSend",K="diagLog",ea="onunloadDisableBeacon",na="isBeaconApiDisabled",ta="_sender",J="_senderConfig",ra="_buffer",ia="enableSessionStorageBuffer",oa="samplingPercentage",aa="instrumentationKey",ua="endpointUrl",ca="customHeaders",sa="disableXhr",la="onunloadDisableFetch",fa="disableTelemetry",da="baseType",pa="sampleRate",va="convertUndefined",X="_onError",ma="_onPartialSuccess",ha="_onSuccess",ya="itemsAccepted",ga="isRetryDisabled",wa="setRequestHeader",ba="maxBatchInterval",Ia="eventsSendRequest",_a="disableInstrumentationKeyValidation",xa="getSamplingScore",Ca="baseType",T="baseData",N="properties",Sa="true";function D(e,n,t){mt(e,n,t,He)}function Ta(e,t,r){O(e)||U(e,function(e,n){Be(n)?r[e]=n:y(n)?t[e]=n:Dt()&&(t[e]=At()[Oo](n))})}function Na(t,r){O(t)||U(t,function(e,n){t[e]=n||r})}function Da(e,n,t,r){for(var r=new ki(e,r,n),n=(D(r,"sampleRate",t[qr]),(t[T]||{}).startTime&&(r.time=pt(t[T].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r[Eo]=r[Eo].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[ko],c.deviceClass),D(o,f.deviceIp,c.ip),D(o,f.deviceModel,c.model),D(o,f[ko],c[ko])),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?Sa:null),D(e,"screenRes",c.screenRes),D(e,"userConsent",c.userConsent?Sa:null)),a.os),c=(e&&D(o,f.deviceOS,e[Eo]),a.trace),s=(c&&(D(o,f.operationParentId,c.parentID),D(o,f.operationName,C(n,c[Eo])),D(o,f.operationId,c[Po])),{}),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(Ma.Version)),i[V]=yt(e),t[V]=t[V]||[],yt(r)}function Aa(e,n){O(n[T])&&z(e,1,46,"telemetryItem.baseData cannot be null.")}var Ma={Version:"3.0.0-beta.2209-03"};function Ra(e,n,t){Aa(e,n);var r={},i={},t=(n[Ca]!==Ei[S]&&(r.baseTypeSource=n[Ca]),n[Ca]===Ei[S]?(r=n[T][N]||{},i=n[T][Lo]||{}):n[T]&&Ta(n[T],r,i),Ta(n[d],r,i),O(t)||Na(r,t),n[T][Eo]),t=new Ei(e,t,r,i),r=new po(Ei[S],t);return Da(e,Ei[Uo],n,r)}function ka(e,n){var t,r,i=void 0;if(void 0===i&&(i=!1),e)try{var o=kr(null,n),a=!1,u=e,c=function(e){return!(!o.ns&&null!==e[zn])&&(a=!0)};(t=o)[I]?Or(u,Er(u,t[I]),t,c):(U(r=Ar.get(u,Sr,{}),function(e,n){Or(u,n,t,c)}),0===on(r)[xn]&&Ar.kill(u,Sr)),a||Pr(e,o,null,i)}catch(s){}}Ea.__ieDyn=1;e=Ea;function Ea(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(Ea,this,function(n){n[qo]=function(e){n[Bo]()>=r.eventsLimitInMem()?o||(z(t,2,105,"Maximum in-memory buffer size reached: "+n[Bo](),!0),o=!0):i[zo](e)},n[Bo]=function(){return i[H]},n.size=function(){for(var e=i[H],n=0;n<i[H];n++)e+=i[n][H];return r[Vo]()||(e+=2),e},n[Ho]=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n[Ko]=function(e){return e&&0<e[H]?r[Vo]()?e.join("\n"):"["+e.join(",")+"]":null}})}Q(La,Pa=e),La.__ieDyn=1;var Pa,Oa=La;function La(e,n){e=Pa.call(this,e,n)||this;return h(La,e,function(e,n){e[Jo]=function(e){n[Ho]()},e[Xo]=function(e){}}),e}Q(A,Ua=e),A.BUFFER_KEY="AI_buffer",A.SENT_BUFFER_KEY="AI_sentBuffer",A.MAX_BUFFER_SIZE=2e3;var Ua,Fa=A;function A(u,c){var e=Ua.call(this,u,c)||this,s=!1;return h(A,e,function(t,n){var e=o(A[$o]),r=o(A[Go]),r=t._set(e.concat(r));function i(n,e){var t=[];return F(e,function(e){g(e)||-1!==ln(n,e)||t[zo](e)}),t}function o(e){try{var e=c[Yo]&&c[Yo]()?c[Yo]()+"_"+e:e,n=Ao(u,e);if(n){var t=At().parse(n);if((t=y(t)?At().parse(t):t)&&L(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[Yo]&&c[Yo]()?c[Yo]()+"_"+e:e,t=JSON[Oo](n);Mo(u,e,t)}catch(r){Mo(u,e,JSON[Oo]([])),z(u,2,41," storage key: "+e+", "+B(r)+". Buffer cleared",{exception:j(r)})}}r[H]>A[Wo]&&(r[H]=A[Wo]),a(A[Go],[]),a(A[$o],r),t[qo]=function(e){t[Bo]()>=A[Wo]?s||(z(u,2,67,"Maximum buffer size reached: "+t[Bo](),!0),s=!0):(n[qo](e),a(A[$o],t._get()))},t[Ho]=function(){n[Ho](),a(A[$o],t._get()),a(A[Go],[]),s=!1},t[Jo]=function(e){a(A[$o],t._set(i(e,t._get())));var n=o(A[Go]);n instanceof Array&&e instanceof Array&&((n=n.concat(e))[H]>A[Wo]&&(z(u,1,67,"Sent buffer reached its maximum size: "+n[H],!0),n[H]=A[Wo]),a(A[Go],n))},t[Xo]=function(e){e=i(e,o(A[Go]));a(A[Go],e)}}),e}qa.__ieDyn=1;var ja=qa;function qa(f){h(qa,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(L(a))c=l(a,u);else{z(f,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{At()[Oo](a),c=a}catch(n){z(f,1,48,n&&g(n[Fo])?n[Fo]():"Error serializing object",null,!0)}}return c}function l(e,n){if(e)if(L(e))for(var t=[],r=0;r<e[H];r++){var i=s(e[r],n+"["+r+"]");t[zo](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[Fo]?i[e]=n[Fo]():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 At()[Oo](e)}catch(n){z(f,1,48,n&&g(n[Fo])?n[Fo]():"Error serializing object",null,!0)}}})}za.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/za.INT_MAX_VALUE*100},za.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)},za.INT_MAX_VALUE=2147483647;var Ba=za;function za(){}var Va=function(){var n=new Ba,t=new _o;this[xa]=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[Po]?n.getHashCodeScore(e.ext.telemetryTrace[Po]):100*Math.random()}},Ha=(Ka.prototype.isSampledIn=function(e){var n=this[pa];return null===n||n===undefined||100<=n||e.baseType===eo[S]||this.samplingScoreGenerator[xa](e)<n},Ka);function Ka(e,n){this.INT_MAX_VALUE=2147483647;n=n||Ft(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[pa]=e,this.samplingScoreGenerator=new Va}function Ja(e){try{return e.responseText}catch(n){}return null}function Xa(){var e,n={endpointUrl:function(){return Vr+Hr}};return n[Vo]=function(){return!1},n[ba]=function(){return 15e3},n[Zo]=function(){return 102400},n[fa]=function(){return!1},n[ia]=function(){return!0},n[ga]=function(){return!1},n[na]=function(){return!0},n[sa]=function(){return!1},n[la]=function(){return!1},n[ea]=function(){return!1},n[aa]=function(){return e},n[Yo]=function(){return e},n[oa]=function(){return 100},n[ca]=function(){},n[va]=function(){return e},n.eventsLimitInMem=function(){return 1e4},n}(n={})[Ei.dataType]=Ra,n[co.dataType]=function(e,n,t){Aa(e,n);var r=n[T].message,i=n[T].severityLevel,o=n[T][N]||{},a=n[T][Lo]||{},t=(Ta(n[d],o,a),O(t)||Na(o,t),new co(e,r,i,o,a)),r=new po(co[S],t);return Da(e,co[Uo],n,r)},n[io.dataType]=function(e,n,t){Aa(e,n);var r,i=n[T],i=(O(i)||O(i[N])||O(i[N][Ro])?O(n[d])||O(n[d][Ro])||(r=n[d][Ro],delete n[d][Ro]):(r=i[N][Ro],delete i[N][Ro]),n[T]),o=(((n.ext||{}).trace||{})[Po]&&(o=n.ext.trace[Po]),i.id||o),a=i[Eo],u=i.uri,c=i[N]||{},s=i[Lo]||{},i=(O(i.refUri)||(c.refUri=i.refUri),O(i.pageType)||(c.pageType=i.pageType),O(i.isLoggedIn)||(c.isLoggedIn=i.isLoggedIn[Fo]()),O(i[N])||U(i[N],function(e,n){c[e]=n}),Ta(n[d],c,s),O(t)||Na(c,t),new io(e,a,u,r,c,s,o)),t=new po(io[S],i);return Da(e,io[Uo],n,t)},n[lo.dataType]=function(e,n,t){Aa(e,n);var r=n[T],i=r[Eo],o=r.uri||r.url,a=r[N]||{},u=r[Lo]||{},t=(Ta(n[d],a,u),O(t)||Na(a,t),new lo(e,i,o,undefined,a,u,r)),i=new po(lo[S],t);return Da(e,lo[Uo],n,i)},n[Xi.dataType]=function(e,n,t){Aa(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Ta(n[d],i,r),O(t)||Na(i,t),n[T]),t=Xi.CreateFromInterface(e,t,i,r),i=new po(Xi[S],t);return Da(e,Xi[Uo],n,i)},n[eo.dataType]=function(e,n,t){Aa(e,n);var r=n[T],i=r[N]||{},o=r[Lo]||{},t=(Ta(n[d],i,o),O(t)||Na(i,t),new eo(e,r[Eo],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new po(eo[S],t);return Da(e,eo[Uo],n,r)},n[ao.dataType]=function(e,n,t){Aa(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Ta(n[d],i,r),O(t)||Na(i,t),n[T]);if(O(t))return zt(e,"Invalid input for dependency data"),null;var o=t[N]&&t[N][zr]?t[N][zr]:"GET",o=new ao(e,t.id,t.target,t[Eo],t[Ro],t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new po(ao[S],o);return Da(e,ao[Uo],n,t)};var $a,Ga=n,E=(Q(Wa,$a=Pe),Wa.constructEnvelope=function(e,n,t,r){e=n===e.iKey||O(n)?e:Y(Y({},e),{iKey:n});return(Ga[e.baseType]||Ra)(t,e,r)},Wa);function Wa(){var x,C,S,r,T,N,D,A,M,R,k,E=$a.call(this)||this,P=(E.priority=1001,E.identifier="AppInsightsChannelPlugin",E._senderConfig=Xa(),0);return h(Wa,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][ga]()&&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][ga]()||(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][ga]()?l[ma](n,a):l[X](n,i):(x=0,l[ha](n,r)))}function u(e){return!(10<=N)&&!O(e)&&""!==e&&e!==l[J][ua]()&&(l[J][ua]=function(){return e},++N,1)}function n(e,n){M?M(e,!1):c(e)}function o(e){var n=Qe(),t=l[ra],r=l[J][ua](),i=l._buffer[Ko](e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t[Jo](e),l._onSuccess(e,e[H])),r}function c(e,n){if(L(e)&&0<e[H]&&!o(e)){for(var t=[],r=0;r<e[H];r++){var i=e[r];o([i])||t[zo](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][ua]();try{t[jr]=!0}catch(i){}t.open("POST",r,e),t[wa]("Content-type","application/json"),Ri(r)&&t[wa](Jr[6],Jr[7]),F(on(D),function(e){t[wa](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[Ko](n);t.send(e),l._buffer[Jo](n)}function d(e,n){if(L(e)){for(var t=e[H],r=0;r<e[H];r++)t+=e[r][H];P+t<=65e3?i(e,!1):Mt()?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][ua](),n=l._buffer[Ko](t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n[H],n=!1,u=!1,e=(Ri(e)&&o.append(Jr[6],Jr[7]),F(on(D),function(e){o.append(e,D[e])}),(i={method:"POST",headers:o,body:i})[jr]=!0,r||(n=i.keepalive=!0,P+=a),new Request(e,i));try{e[jr]=!0}catch(c){}l._buffer[Jo](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=At().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n[ya]&&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[ra];t[Xo](e),x++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t[qo](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=vt()+1e3*n;C=e,h()}}function h(){var e;r||S||(e=C?Math.max(0,C-vt()):0,e=Math.max(l[J][ba](),e),r=setTimeout(function(){r=null,l[Qo](!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:"+Ja(e)||e.response||"":n}function b(n,e){var t=l[ra],r=Ze(),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][ua]().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[Ho]();r=l[J][ua]().replace(/^(https?:)/,""),i.open("POST",r),r=t[Ko](n);i.send(r),t[Jo](n)}function I(e,n){return e?"XDomainRequest,Response:"+Ja(e)||"":n}function _(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t[Ia])try{t[Ia](e,n)}catch(r){z(l[K](),1,74,"send request notification failed: "+B(r),{exception:j(r)})}}function t(){l[ta]=null,l[ra]=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[Zo]()&&l[Qo](!0,null,10),h())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!S){y();try{l[Qo](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[ea]()&&!1!==l[J][na]()||!Mt())l.flush();else try{l[Qo](!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 ja(n.logger),C=null,x=0,l[ta]=null,N=0,l[K]()),r=(k=Lr(ar("Sender"),n.evtNamespace&&n.evtNamespace()),R=function(e){var n,t=Ye(),r=Qe(),i=!1,o=!0,a=Lr(ar("OfflineListener"),e);try{u(Ze())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!O(r[jo])&&(o=r[jo])}catch(l){i=!1}function u(e){var n=!1;return e&&(n=Ur(e,"online",c,a))&&Ur(e,"offline",s,a),n}function c(){o=!0}function s(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!O(r[jo])&&(e=r[jo]),e},isListening:function(){return i},unload:function(){var e=Ze();e&&i&&(ka(e,a),t&&!Fe((e=t.body||t).ononline)&&ka(e,a),i=!1)}}}(k),U(Xa(),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][ia]()&&Do()?Fa:Oa)(t,l[J]),l._sample=new Ha(l[J][oa](),t),!O(e[_a])&&e[_a]||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e[aa])||z(t,1,100,"Invalid Instrumentation key "+e[aa]),!Ri(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders()[H]&&F(l[J][ca](),function(e){E.addHeader(e.header,e.value)}),l[J]),n=null;!r[sa]()&&kt()?n=b:!r[sa]()&&Et()&&(n=f),!n&&Rt()&&(n=p),A=n||f,!r[na]()&&Mt()&&(n=c),l[ta]=n||f,M=!r[la]()&&Rt(!0)?d:Mt()?c:!r[sa]()&&kt()?b:!r[sa]()&&Et()?f:A},l.processTelemetry=function(e,n){var t=(n=l._getTelCtx(n))[K]();try{if(l[J][fa]())return;if(!e)return void z(t,1,7,"Cannot send empty telemetry");if(e.baseData&&!e[da])return void z(t,1,70,"Cannot send telemetry without baseData and baseType");if(e[da]||(e[da]="EventData"),!l[ta])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[pa]});e[qr]=l._sample[pa];var r=l[J][va]()||undefined,i=e.iKey||l[J][aa](),o=Wa.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][Br]&&(F(e[V][Br],function(e){try{e&&!1===e(o)&&(a=!0,zt(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][Br]),a)return;var u=T.serialize(o),c=l[ra];c.size()+u[H]>l[J][Zo]()&&l[Qo](!0,null,10),c[qo](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),Ja(e)||e.response)},l[Qo]=function(e,n,t){if(void 0===e&&(e=!0),!S)try{var r,i=l[ra];l[J][fa]()?i[Ho]():0<i[Bo]()&&(r=i.getItems(),_(t||0,e),n?n.call(E,r,e):l[ta](r,e)),y()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Qe()||{})?(n[Ln]||q)[Bn]():q)||q)[Bn]();if(ft(n,bt))return e=Ye()||{},Math.max(parseInt(n[Un](bt)[1]),e.documentMode||0);if(ft(n,It)){e=parseInt(n[Un](It)[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[Xo](e)},l[ma]=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)[zo](u)}0<e[H]&&l[ha](e,n[ya]),0<t[H]&&l[X](t,w(null,["partial success",n[ya],"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[ha]=function(e,n){l._buffer[Xo](e)},l._xdrOnLoad=function(e,n){var t=Ja(e);!e||t+""!="200"&&""!==t?(t=v(t))&&t.itemsReceived&&t.itemsReceived>t[ya]&&!l[J][ga]()?l[ma](n,t):l[X](n,I(e)):(x=0,l[ha](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="indexOf",Re="length",ke=Object,Ee=ke[De],Pe=String[De];function Oe(e,n){try{n=e()}catch(t){}return n}function Le(n){return function(e){return typeof e===n}}function Ue(e){return Ee.toString.call(e)}function Fe(e){return typeof e===Ae||e===Ae}function O(e){return null===e||Fe(e)}function je(e){return!!e||e!==Te}var y=Le("string"),g=Le("function");function p(e){return!O(e)&&!!e&&typeof e===Ne}var qe,L=Array.isArray,Be=Le("number"),ze=Le("boolean"),Ve=function(e){return!(!e||Ue(e)!==qe)};function He(e){return!(!e||Oe(function(){return!(e&&0+e)},!e))}var Ke="navigator",Je="window",Xe=null,$e=Oe(function(){return je(window)},!(qe="[object Error]")),Ge=Oe(function(){return je(document)},!1),We=Oe(function(){return je(navigator)},!1);function w(e,n){(n=!1===n?null:Xe)||((n=(n=(n=typeof globalThis!==Ae?globalThis:n)||typeof self===Ae?n:self)||typeof window===Ae?n:window)||typeof global===Ae||(n=global),Xe=n);return n&&n[e]?n[e]:e===Je&&$e?window:null}function Ye(){return Ge?document:w("document")}function Ze(){return $e?window:w(Je)}function Qe(){return We?navigator:w(Ke)}Oe(function(){return je(history)},!1),Oe(function(){return!!(self&&self instanceof WorkerGlobalScope)},!1),Oe(function(){return!(!process||!(process.versions||{}).node)},!1);var en=ke.getOwnPropertyDescriptor,nn=ke.hasOwn||function(e,n){return e&&Ee.hasOwnProperty.call(e,n)||!!en(e,n)};function U(e,n,t){if(e&&p(e))for(var r in e)if(nn(e,r)&&-1===n.call(t||e,r,e[r]))break}function F(e,n,t){if(e)for(var r=e[Re],i=0;i<r&&!(i in e&&-1===n.call(t||e,e[i],i,e));i++);}function tn(e){throw new TypeError(e)}var rn=ke.freeze;function on(e){return p(e)&&null!==e||tn("objKeys called on non-object"),ke.keys(e)}function an(e){return rn&&U(e,function(e,n){(L(n)||p(n))&&rn(n)}),un(e)}var un=rn||function(e){return e};function j(e,n){var t=Ue(e);return t+": "+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":n?Be(n)?JSON.stringify(e,null,n):JSON.stringify(e,null,n?4:0):JSON.stringify(e))}function cn(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);tn("'"+r+"' not defined for "+j(e))}}var sn,ln=cn(Me),fn=cn("map");function dn(e){var n,t,r;throw new(sn=sn||(t=function(){var e=this;return n.apply(e,arguments)||e},r=n=Error,(ke.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 pn=ke.defineProperty,vn=cn(Me),mn=/^\s+|(?=\s)\s+$/g,hn=Pe.trim?cn("trim"):function(e){return O(e)&&tn("strTrim called ["+j(e)+"]"),e&&e.replace?e.replace(mn,""):e},Me=function(e){var t={};return U(e,function(e,n){t[e]=n,t[n]=e}),an(t)},yn="name",gn="identifier",wn="push",bn="isInitialized",In="config",_n="logger",xn="length",Cn="time",b="processNext",Sn="getPlugin",Tn="teardown",Nn="messageId",Dn="message",An="isAsync",Mn="_doTeardown",Rn="update",kn="getNext",En="diagLog",Pn="setNextPlugin",On="createNew",Ln="userAgent",Un="split",Fn="nodeType",jn="replace",qn="enableDebugExceptions",Bn="toLowerCase",I="type",zn="handler",Vn="call",Hn="isChildEvt",Kn="getCtx",l="setCtx",Jn="complete",q="",_="core",Xn="disabled",$n="extensionConfig",Gn="processTelemetry",Wn="priority",Yn="errorToConsole",Zn="warnToConsole",Qn="getPerfMgr",et=null,Pe="toISOString",e="toString",n="getPrototypeOf",nt="constructor",tt=Date[a][Pe]||ct(0,Pe),rt=P[e]||ct(0,e),it=rt[Vn](s),ot=/-([a-z])/g,at=/([^\w\d_$])/g,ut=/^(\d+[\w\d_$])/;function ct(e,n){return function(){dn("Polyfill required for ["+n+"]")}}var st=Object[n]||ct(0,n);function lt(e){return e&&y(e)?(e=(e=e[jn](ot,function(e,n){return n.toUpperCase()}))[jn](at,"_"))[jn](ut,function(e,n){return"_"+n}):e}function ft(e,n){return!(!e||!n)&&-1!==vn(e,n)}function dt(e){return e&&"object"==typeof e&&(!(e=st(e))||typeof(e=e[nt]&&P[Vn](e,nt)?e[nt]:e)==r&&rt[Vn](e)===it)}function pt(e){return tt[Vn](e)}function vt(){var e=Date;return e.now?e.now():(new e).getTime()}function B(e){return Ve(e)?e[yn]:q}function mt(e,n,t,r,i){var o=t;!e||(o=e[n])===t||i&&!i(o)||r&&!r(t)||(e[n]=o=t)}function ht(e,n){return O(e)?n:e}function yt(e){return e&&R?s(R({},e)):e}var gt="console",wt="JSON",bt="msie",It="trident/",_t="XMLHttpRequest",xt=null,Ct=null,St=null,Tt=null;function Nt(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=!Fe((new e)[n])}catch(i){}}return r}function Dt(){return typeof JSON===i&&JSON||null!==w(wt)}function At(){return Dt()?JSON||w(wt):null}function Mt(){return Tt=null===Tt?!!Qe()&&!!Qe().sendBeacon:Tt}function Rt(e){var n=!1;try{var n=!!w("fetch"),t=w("Request");n&&e&&t&&(n=Nt(t,"keepalive"))}catch(r){}return n}function kt(){return St=null===St&&(St=typeof XDomainRequest!==o)&&Et()?St&&!Nt(w(_t),"withCredentials"):St}function Et(){var e=!1;try{e=!!w(_t)}catch(n){}return e}function Pt(e){return e?'"'+e[jn](/\"/g,q)+'"':q}function Ot(e,n){var t,r=typeof console!==o?console:w(gt);r&&(t="log",r[e]&&(t=e),g(r[t])&&r[t](n))}Ut.dataType="MessageData";var Lt=Ut;function Ut(e,n,t,r){void 0===t&&(t=!1),this[Nn]=e,this[Dn]=(t?"AI: ":"AI (Internal): ")+e;t=q,Dt()&&(t=At().stringify(r)),e=(n?" message:"+Pt(n):q)+(r?" props:"+Pt(t):q);this[Dn]+=e}function Ft(e,n){return(e||{})[_n]||new jt(n)}qt.__ieDyn=1;var jt=qt;function qt(i){this.identifier="DiagnosticLogger",this.queue=[];var c,s,l,f,d=0,p={};h(qt,this,function(o){var e;function a(e,n){var t,r;l<=d||(r=!0,t="AITR_"+n[Nn],p[t]?r=!1:p[t]=!0,r&&(e<=s&&(o.queue[wn](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[wn](r),1===e?o[Yn](t):o[Zn](t))))}function u(e,n){var t,r=(t=(t=et)||!0===(i||{}).disableDbgExt?t:et||(r=w("Microsoft"),et=r?r.ApplicationInsights:et))?t.ChromeDbgExt:null;r&&r[En]&&r[En](e,n)}c=ht((e=i||{}).loggingLevelConsole,0),s=ht(e.loggingLevelTelemetry,1),l=ht(e.maxMessageLimit,25),f=ht(e[qn],!1),o.consoleLoggingLevel=function(){return c},o.telemetryLoggingLevel=function(){return s},o.maxInternalMessageLimit=function(){return l},o[qn]=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?Yn:Zn;Fe(n[Dn])?u("throw"+(1===e?"Critical":"Warning"),n):(i?(r=+n[Nn],!p[r]&&e<=c&&(o[t](n[Dn]),p[r]=!0)):e<=c&&o[t](n[Dn]),a(e,n))},o[Zn]=function(e){Ot("warn",e),u("warning",e)},o[Yn]=function(e){Ot("error",e),u("error",e)},o.resetInternalMessageCount=function(){d=0,p={}},o.logInternalMessage=a})}function Bt(e){return e||new jt}function z(e,n,t,r,i,o){void 0===o&&(o=!1),Bt(e).throwInternal(n,t,r,i,o)}function zt(e,n){Bt(e)[Zn](n)}var Vt="ParentContextKey",Ht="ChildrenContextKey",Kt=(Jt.ParentContextKey="parent",Jt.ChildrenContextKey="childEvts",Jt);function Jt(e,n,t){var r,i,o,a=this;if(a.start=vt(),a[yn]=e,a[An]=t,a[Hn]=function(){return!1},g(n)){var e=a,t="payload",u=function(){return!r&&g(n)&&(r=n(),n=null),r};if(pn)try{var c={enumerable:!0,configurable:!!Fe(void 0)||void 0};c.get=u,i=e,o=t,pn?pn(i,o,c):dn("Unable to define property ["+Ue(o)+"] on "+j(i))}catch(s){dn("Unable to define accessors for ["+Ue(t)+"] on "+j(e))}}a[Kn]=function(e){return e?(e===Jt[Vt]||e===Jt[Ht]?a:a.ctx||{})[e]:null},a[l]=function(e,n){e&&(e===Jt[Vt]?(a[e]||(a[Hn]=function(){return!0}),a[e]=n):e===Jt[Ht]?a[e]=n:(a.ctx=a.ctx||{})[e]=n)},a[Jn]=function(){var e=0,n=a[Kn](Jt[Ht]);if(L(n))for(var t=0;t<n[xn];t++){var r=n[t];r&&(e+=r[Cn])}a[Cn]=vt()-a.start,a.exTime=a[Cn]-e,a[Jn]=function(){}}}var Xt="CoreUtils.doPerf";function $t(e,n,t,r,i){if(e)if(e=e[Qn]?e[Qn]():e){var o,a=void 0,u=e[Kn](Xt);try{if(a=e.create(n(),r,i))return u&&a[l]&&(a[l](Kt[Vt],u),u[Kn]&&u[l]&&((o=u[Kn](Kt[Ht]))||(o=[],u[l](Kt[Ht],o)),o[wn](a))),e[l](Xt,a),t(a)}catch(c){a&&a[l]&&a[l]("exception",c)}finally{a&&e.fire(a),e[l](Xt,u)}}t()}var Gt=4294967296,Wt=4294967295,Yt=!1,Zt=123456789,Qt=987654321;function er(e){var n,t=0,r=w("crypto")||w("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&Wt:t)&&(!(r=Qe())||r[Ln]===Ct&&null!==xt||(r=((Ct=r[Ln])||q)[Bn](),xt=ft(r,bt)||ft(r,It)),xt)){if(!Yt)try{var i=2147483647&vt();(n=(Math.random()*Gt^i)+i)<0&&(n>>>=0),Zt=123456789+n&Wt,Qt=987654321-n&Wt,Yt=!0}catch(o){}r=((Qt=36969*(65535&Qt)+(Qt>>16)&Wt)<<16)+(65535&(Zt=18e3*(65535&Zt)+(Zt>>16)&Wt))>>>0&Wt|0,t=(r>>>=0)&Wt}return 0===t&&(t=Math.floor(Gt*Math.random()|0)),e||(t>>>=0),t}var nr=E,tr="3.0.0-beta.2210-01",rr="."+function(e){void 0===e&&(e=22);for(var n=er()>>>0,t=0,r=q;r[xn]<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(er()<<2&4294967295|3&n)>>>0,t=0);return r}(6),ir=0;function or(e){return 1===e[Fn]||9===e[Fn]||!+e[Fn]}function ar(e,n){return lt(e+ir+++((n=void 0!==n&&n)?"."+tr:q)+rr)}function ur(e){var o={id:ar("_aiData-"+(e||q)+"."+tr),accept:or,get:function(e,n,t,r){var i=e[o.id];return i?i[lt(n)]:(r&&((i=function(e,n){var t=n[e.id];if(!t){t={};try{or(n)&&!function(e,n,t){if(nr)try{return nr(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))[lt(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};return o}var cr=ur("plugin");function sr(e){return cr.get(e,"state",{},!0)}var lr="TelemetryPluginChain",fr="_hasRun",dr="_getTelCtx",pr=0;function vr(e,a,t,n){var r=null,i=[],o=(null!==n&&(r=n?function(e,n,t){for(;e;){if(e[Sn]()===t)return e;e=e[kn]()}return hr([t],n[In]||{},n)}(e,t,n):e),{_next:function(){var e,n=r;return r=n?n[kn]():null,n||(e=i)&&0<e[xn]&&(F(e,function(e){try{e.func[Vn](e.self,e.args)}catch(n){z(t[_n],2,73,"Unexpected Exception during onComplete - "+j(n))}}),i=[]),n},ctx:{core:function(){return t},diagLog:function(){return Ft(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&&!O(e[n])?r=e[n]:a&&!O(a[n])&&(r=a[n]),O(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[Sn]();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&i[wn]({func:e,self:Fe(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[$n])&&e?i[e]:r)?p(n)&&0!==t&&(o=function d(){var e=arguments,n=e[0]||{},t=e[xn],r=!1,i=1;for(0<t&&ze(n)&&(r=n,n=e[i]||{},i++),p(n)||(n={});i<t;i++){var o,a,u,c,s=e[i],l=L(s),f=p(s);for(o in s)(l&&o in s||f&&P[Vn](s,o))&&(a=s[o],u=void 0,r&&a&&((u=L(a))||dt(a))&&(c=n[o],u?L(c)||(c=[]):dt(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;O(o[e])&&!O(n=a[e])&&(o[e]=n)}),r=o):r=n,r}return o}function mr(e,t,r,n){var i=vr(e,t,r,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n[Gn](e,o),!n},o[On]=function(e,n){return mr((e=L(e=void 0===e?null:e)?hr(e,t,r,n):e)||o[kn](),t,r,n)},o}function hr(e,n,t,r){var i,o=null,a=!r;return L(e)&&0<e[xn]&&(i=null,F(e,function(e){(a=!a&&r===e||a)&&e&&g(e[Gn])&&(e=yr(e,n,t),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?hr([r],n,t):o}function yr(c,r,i){var s=null,o=g(c[Gn]),a=g(c[Pn]),l=c?c[gn]+"-"+c[Wn]+"-"+pr++:"Unknown-0-"+pr++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&g(c[dr])?c[dr]():n)||mr(u,r,i)),function(e){if(!c||!o)return!1;var n=sr(c);return!n[Tn]&&!n[Xn]&&(a&&c[Pn](s),c[Gn](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=sr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Tn]||(e[_]=null,e[Tn]=!0,e[bn]=!1,c[Tn]&&!0===c[Tn](r,i)&&(t=!0))),t},"unload",function(){},i[An])||r[b](i)},update:function(r,i){f(r,function(){var e,n,t=!1;return c&&(e=sr(c),n=c[_]||e[_],!c||n&&n!==r.core()||e[Tn]||c[Rn]&&!0===c[Rn](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[gn]:lr,u=(u=t[fr])||(t[fr]={});return t.setNext(s),c&&$t(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[En](),1,73,"Plugin ["+a+"] failed during "+i+" - "+j(n)+", run flags: "+j(u))}},e,n),o}return un(u)}function gr(){var n=[];return{add:function(e){e&&n[wn](e)},run:function(t,r){F(n,function(e){try{e(t,r)}catch(n){z(t[En](),2,73,"Unexpected error calling unload handler - "+j(n))}}),n=[]}}}var wr="getPlugin",Pe=(br.__ieDyn=1,br);function br(){var o,i,l,f,d,a=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=i||mr(null,{},a[_]),e=l&&l[wr]?n[On](null,l[wr]):n[On](null,l)),e}function c(e,n,t){e&&mt(e,$n,[],null,O),!t&&n&&(t=n.getProcessTelContext()[kn]());var r=l;l&&l[wr]&&(r=l[wr]()),a[_]=n,i=mr(t,e,n,r)}function p(){o=!1,a[_]=null,l=i=null,d=[],f=gr()}p(),h(br,a,function(s){var e,n,t,r,i;s.initialize=function(e,n,t,r){c(e,n,r),o=!0},s[Tn]=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[In]||{},i=vr(e,r,t,n),o=i.ctx;return o[b]=function(e){var n=i._next();return n&&n.unload(o,e),!n},o[On]=function(e,n){return c((e=L(e=void 0===e?null:e)?hr(e,r,t,n):e)||o[kn](),t,n)},o}(null,a,l&&l[wr]?l[wr]():l),o=n||((e={reason:0})[An]=!1,e),s[Mn]&&!0===s[Mn](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[Rn]=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[In]||{},i=vr(e,r,t,n).ctx;return i[b]=function(n){return i.iterate(function(e){g(e[Rn])&&e[Rn](i,n)})},i[On]=function(e,n){return u((e=L(e=void 0===e?null:e)?hr(e,r,t,n):e)||i[kn](),t,n)},i}(null,o,l&&l[wr]?l[wr]():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[kn]()))}},s._addHook=function(e){e&&(L(e)?d=d.concat(e):d[wn](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[En]=function(e){return n(e)[En]()},a[bn]=function(){return o},a.setInitialized=function(e){o=e},a[Pn]=function(e){l=e},a[b]=function(e,n){n?n[b](e):l&&g(l[Gn])&&l[Gn](e,null)},a._getTelCtx=n}var Ir="attachEvent",_r="addEventListener",xr="detachEvent",Cr="removeEventListener",Sr="events",Tr=(ar("aiEvtPageHide"),ar("aiEvtPageShow"),/\.[\.]+/g),Nr=/[\.]+$/,Dr=1,Ar=ur("events"),Mr=/^([^.]*)(?:\.(.+)|)/;function Rr(e){return e&&e[jn]?e.replace(/^\s*\.*|\.*\s*$/g,q):e}function kr(e,n){n&&(t=q,L(n)?(t=q,F(n,function(e){(e=Rr(e))&&("."!==e[0]&&(e="."+e),t+=e)})):t=Rr(n),t&&("."!==t[0]&&(t="."+t),e=(e||q)+t));var t,n=Mr.exec(e||q)||[],e={};return e[I]=n[1],e.ns=(n[2]||q).replace(Tr,".").replace(Nr,q)[Un](".").sort().join("."),e}function Er(e,n,t){e=Ar.get(e,Sr,{},t=void 0===t||t);return e[n]||(e[n]=[])}function Pr(e,n,t,r){e&&n&&n[I]&&(e[Cr]?e[Cr](n[I],t,r):e[xr]&&e[xr]("on"+n[I],t))}function Or(e,n,t,r){for(var i=n[xn];i--;){var o=n[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(Pr(e,o.evtName,o[zn],o.capture),n.splice(i,1))}}function Lr(e,n){return n?kr("xx",L(n)?[e].concat(n):[e,n]).ns[Un]("."):e}function Ur(e,n,t,r,i){void 0===i&&(i=!1);var o,a,u=!1;if(e)try{var c,s=kr(n,r),l=s,f=t,d=i,p=!1;(a=e)&&l&&l[I]&&f&&(a[_r]?(a[_r](l[I],f,d),p=!0):a[Ir]&&(a[Ir]("on"+l[I],f),p=!0)),(u=p)&&Ar.accept(e)&&((o={guid:Dr++,evtName:s})[zn]=t,o.capture=i,c=o,Er(e,s.type)[wn](c))}catch(v){}return u}var Fr,jr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",qr="sampleRate",Br="ProcessLegacy",zr="http.method",Vr="https://dc.services.visualstudio.com",Hr="/v2/track",Kr="not_specified",Jr=(Fr={},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){Fr[e]=n[1],Fr[n[0]]=n[1]}),an(Fr)),Xr="split",x="length",$r="toLowerCase",Gr="toString",Wr="removeItem",Yr="name",Zr="pathname",Qr="indexOf",ei="exceptions",ni="parsedStack",ti="properties",ri="measurements",ii="stringify",oi="message",ai="sizeInBytes",ui="typeName",ci="severityLevel",si="problemGroup",li="isManual",fi="CreateFromInterface",di="hasFullStack",pi="level",vi="method",mi="assembly",hi="fileName",yi="line",gi="duration",wi="receivedResponse",bi="substring";function Ii(e,n,t){var r,i,o=n[x],a=(e=e,(n=n)&&150<(n=hn(n[Gr]()))[x]&&(i=n[bi](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[bi](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=hn(n[Gr]()))[x]>t&&(r=n[bi](0,t),z(e,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:n},!0))),r||n}function _i(e,n){return Ti(e,n,2048,66)}function xi(e,n){var t;return n&&32768<n[x]&&(t=n[bi](0,32768),z(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),t||n}function Ci(r,e){var i;return e&&(i={},U(e,function(e,n){if(p(n)&&Dt())try{n=At()[ii](n)}catch(t){z(r,2,49,"custom property is not valid",{exception:t},!0)}n=C(r,n,8192),e=Ii(r,e,i),i[e]=n}),e=i),e}function Si(t,e){var r;return e&&(r={},U(e,function(e,n){e=Ii(t,e,r),r[e]=n}),e=r),e}function Ti(e,n,t,r){var i;return n&&(n=hn(n[Gr]()))[x]>t&&(i=n[bi](0,t),z(e,2,r,"input is too long, it has been truncated to "+t+" characters.",{data:n},!0)),i||n}var Ni=Ye()||{},Di=0,Ai=[null,null,null,null,null];var Mi=[Vr+Hr,"https://breeze.aimon.applicationinsights.io"+Hr,"https://dc-int.services.visualstudio.com"+Hr];function Ri(e){return-1!==ln(Mi,e[$r]())}var ki=function(e,n,t){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i[Yr]=C(e,t)||Kr,i.data=n,i.time=pt(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},Ei=(Pi.envelopeType="Microsoft.ApplicationInsights.{0}.Event",Pi.dataType="EventData",Pi);function Pi(e,n,t,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0},this.ver=2,this[Yr]=C(e,n)||Kr,this[ti]=Ci(e,t),this[ri]=Si(e,r)}var Oi="error",c="stack",Li="stackDetails",Ui="errorSrc",Fi="message",ji="description";function qi(e,n){var t=e;return t&&!y(t)&&(JSON&&JSON[ii]?(t=JSON[ii](e),!n||t&&"{}"!==t||(t=g(e[Gr])?e[Gr]():""+e)):t=e+" - (Missing JSON.stringify)"),t||""}function Bi(e,n){var t=e;return e&&((t=t&&!y(t)&&(e[Fi]||e[ji])||t)&&!y(t)&&(t=qi(t,!0)),e.filename&&(t=t+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),(n&&"String"!==n&&"Object"!==n&&"Error"!==n&&-1===(t||"")[Qr](n)?n+": "+t:t)||""}function zi(e){return e&&e.src&&y(e.src)&&e.obj&&L(e.obj)}function Vi(e){var e=e||"",n=(e=y(e)?e:y(e[c])?e[c]:""+e)[Xr]("\n");return{src:e,obj:n}}function Hi(e){var n,t=null;if(e)try{e[c]?t=Vi(e[c]):e[Oi]&&e[Oi][c]?t=Vi(e[Oi][c]):e.exception&&e.exception[c]?t=Vi(e.exception[c]):zi(e)?t=e:zi(e[Li])?t=e[Li]:window&&window.opera&&e[Fi]?t=function(e){for(var n=[],t=e[Xr]("\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[oi]):e.reason&&e.reason[c]?t=Vi(e.reason[c]):y(e)?t=Vi(e):(n=e[Fi]||e[ji]||"",y(e[Ui])&&(n&&(n+="\n"),n+=" from "+e[Ui]),n&&(t=Vi(n)))}catch(r){t=Vi(r)}return t||{src:"",obj:null}}function Ki(e){var n="";if(e&&!(n=e.typeName||e[Yr]||""))try{var t=/function (.{1,200})\(/.exec(e.constructor[Gr]()),n=t&&1<t[x]?t[1]:""}catch(r){}return n}function Ji(e){if(e)try{var n,t;if(!y(e))return n=Ki(e),(t=qi(e,!1))&&"{}"!==t||(e[Oi]&&(n=Ki(e=e[Oi])),t=qi(e,!0)),0!==t[Qr](n)&&"String"!==n?n+":"+t:t}catch(r){}return""+(e||"")}$i.CreateAutoException=function(e,n,t,r,i,o,a,u){var c=Ki(i||o||e),s={};return s[oi]=Bi(e,c),s.url=n,s.lineNumber=t,s.columnNumber=r,s.error=Ji(i||o||e),s.evt=Ji(o||e),s[ui]=c,s.stackDetails=Hi(a||i||o),s.errorSrc=u,s},$i.CreateFromInterface=function(n,e,t,r){var i=e[ei]&&fn(e[ei],function(e){return Gi[fi](n,e)});return new $i(n,Y(Y({},e),{exceptions:i}),t,r)},$i.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&&fn(n,function(e){return e.toInterface()})||undefined,u={ver:"4.0"};return u[ei]=n,u.severityLevel=i,u.properties=t,u.measurements=r,u.problemGroup=o,u.id=a,u.isManual=e,u},$i.CreateSimpleException=function(e,n,t,r,i,o){var a;return{exceptions:[((a={})[di]=!0,a.message=e,a.stack=i,a.typeName=n,a)]}},$i.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",$i.dataType="ExceptionData",$i.formatError=Ji;var Xi=$i;function $i(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[ei]=n[ei]||[],a[ti]=n[ti],a[ri]=n[ri],n[ci]&&(a[ci]=n[ci]),n.id&&(a.id=n.id),n[si]&&(a[si]=n[si]),O(n[li])||(a[li]=n[li])):(a[ei]=[new Gi(e,n,t=t||{})],a[ti]=Ci(e,t),a[ri]=Si(e,r),i&&(a[ci]=i),o&&(a.id=o))}Wi.prototype.toInterface=function(){var e=this,n=e[ni]instanceof Array&&fn(e[ni],function(e){return e.toInterface()});return(e={id:e.id,outerId:e.outerId,typeName:e[ui],message:e[oi],hasFullStack:e[di],stack:e[c]})[ni]=n||undefined,e},Wi.CreateFromInterface=function(e,n){var t=n[ni]instanceof Array&&fn(n[ni],function(e){return Yi[fi](e)})||n[ni];return new Wi(e,Y(Y({},n),{parsedStack:t}))};var Gi=Wi;function Wi(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,Ve(o)||(o=o[Oi]||r||o),u[ui]=C(e,Ki(o))||Kr,u[oi]=xi(e,Bi(n||o,u[ui]))||Kr,s=n[Li]||Hi(n),u[ni]=function(){var e=s.obj;if(e&&0<e[x]){var n=[],t=0,r=0;if(F(e,function(e){var e=e[Gr]();Yi.regex.test(e)&&(e=new Yi(e,t++),r+=e[ai],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][ai]+n[o][ai])){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[bi](0,32768),z(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0)),i||e),u.hasFullStack=L(u.parsedStack)&&0<u.parsedStack[x],t&&(t[ui]=t[ui]||u[ui])):(u[ui]=n[ui],u[oi]=n[oi],u[c]=n[c],u[ni]=n[ni]||[],u[di]=n[di])}Zi.CreateFromInterface=function(e){return new Zi(e,null)},Zi.prototype.toInterface=function(){var e=this;return{level:e[pi],method:e[vi],assembly:e[mi],fileName:e[hi],line:e[yi]}},Zi.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,Zi.baseSize=58;var Yi=Zi;function Zi(e,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var t,r=this;r[ai]=0,"string"==typeof e?(t=e,r[pi]=n,r[vi]="<no_method>",r[mi]=hn(t),r[hi]="",r[yi]=0,(n=t.match(Zi.regex))&&5<=n[x]&&(r[vi]=hn(n[2])||r[vi],r[hi]=hn(n[4]),r[yi]=parseInt(n[5])||0)):(r[pi]=e[pi],r[vi]=e[vi],r[mi]=e[mi],r[hi]=e[hi],r[yi]=e[yi],r[ai]=0),r.sizeInBytes+=r.method[x],r.sizeInBytes+=r.fileName[x],r.sizeInBytes+=r.assembly[x],r[ai]+=Zi.baseSize,r.sizeInBytes+=r.level.toString()[x],r.sizeInBytes+=r.line.toString()[x]}var Qi=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},eo=(no.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",no.dataType="MetricData",no);function no(e,n,t,r,i,o,a,u,c){this.aiDataContract={ver:1,metrics:1,properties:0},this.ver=2;var s=new Qi;s.count=0<r?r:undefined,s.max=isNaN(o)||null===o?undefined:o,s.min=isNaN(i)||null===i?undefined:i,s[Yr]=C(e,n)||Kr,s.value=t,s.stdDev=isNaN(a)||null===a?undefined:a,this.metrics=[s],this[ti]=Ci(e,u),this[ri]=Si(e,c)}var to="";function ro(e){var n=to+Math.floor((e=Math.round(e=isNaN(e)||e<0?0:e))/1e3)%60,t=to+Math.floor(e/6e4)%60,r=to+Math.floor(e/36e5)%24,i=Math.floor(e/864e5),e=1===(e=to+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+".":to)+r+":"+t+":"+n+"."+e}oo.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",oo.dataType="PageviewData";var io=oo;function oo(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&&Ti(e,a,128,69)[Gr](),u.url=_i(e,t),u[Yr]=C(e,n)||Kr,isNaN(r)||(u[gi]=ro(r)),u[ti]=Ci(e,i),u[ri]=Si(e,o)}uo.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",uo.dataType="RemoteDependencyData";var ao=uo;function uo(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[gi]=ro(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=Ai)[p=Di],Ni.createElement?t[p]||(v=t[p]=Ni.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]||"")[$r](),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),Di=p,p=(t=v).host,a||(null!=t[Zr]?("/"!=((v=0===t.pathname[x]?"/":t[Zr])[0]||"")&&(v="/"+v),c=t[Zr],C(n,i?i+" "+v:v)):C(n,u))):p=o,{target:p,name:a,data:c});m.data=_i(e,r)||t.data,m.target=C(e,t.target),s&&(m.target="".concat(m.target," | ").concat(s)),m[Yr]=C(e,t[Yr]),m[ti]=Ci(e,l),m[ri]=Si(e,f)}so.envelopeType="Microsoft.ApplicationInsights.{0}.Message",so.dataType="MessageData";var co=so;function so(e,n,t,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,o[oi]=xi(e,n=n||Kr),o[ti]=Ci(e,r),o[ri]=Si(e,i),t&&(o[ci]=t)}fo.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",fo.dataType="PageviewPerformanceData";var lo=fo;function fo(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=_i(e,t),u[Yr]=C(e,n)||Kr,u[ti]=Ci(e,i),u[ri]=Si(e,o),a&&(u.domProcessing=a.domProcessing,u[gi]=a[gi],u.networkConnect=a.networkConnect,u.perfTotal=a.perfTotal,u[wi]=a[wi],u.sentRequest=a.sentRequest)}var po=function(e,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=n};function vo(e){var n="ai."+e+".";return function(e){return n+e}}var mo,ho,e=vo("application"),n=vo("device"),E=vo("location"),yo=vo("operation"),go=vo("session"),wo=vo("user"),bo=vo("cloud"),Io=vo("internal"),_o=(ho={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:yo("id"),operationName:yo("name"),operationParentId:yo("parentId"),operationRootId:yo("rootId"),operationSyntheticSource:yo("syntheticSource"),operationCorrelationVector:yo("correlationVector"),sessionId:go("id"),sessionIsFirst:go("isFirst"),sessionIsNew:go("isNew"),userAccountAcquisitionDate:wo("accountAcquisitionDate"),userAccountId:wo("accountId"),userAgent:wo("userAgent"),userId:wo("id"),userStoreRegion:wo("storeRegion"),userAuthUserId:wo("authUserId"),userAnonymousUserAcquisitionDate:wo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:wo("authUserAcquisitionDate"),cloudName:bo("name"),cloudRole:bo("role"),cloudRoleVer:bo("roleVer"),cloudRoleInstance:bo("roleInstance"),cloudEnvironment:bo("environment"),cloudLocation:bo("location"),cloudDeploymentUnit:bo("deploymentUnit"),internalNodeName:Io("nodeName"),internalSdkVersion:Io("sdkVersion"),internalAgentVersion:Io("agentVersion"),internalSnippet:Io("snippet"),internalSdkSrc:Io("sdkSrc")},Q(xo,mo=function(){var t=this;U(ho,function(e,n){t[e]=n})}),xo);function xo(){return mo.call(this)||this}var f=new _o,Co=Me({LocalStorage:0,SessionStorage:1}),So=(Me({AI:0,AI_AND_W3C:1,W3C:2}),undefined);function To(e){try{if(O(G()))return null;var n=(new Date)[Gr](),t=w(e===Co.LocalStorage?"localStorage":"sessionStorage"),r=(t.setItem(n,n),t.getItem(n)!==n);if(t[Wr](n),!r)return t}catch(i){}return null}function No(){return Do()?To(Co.SessionStorage):null}function Do(e){return So=e||So===undefined?!!To(Co.SessionStorage):So}function Ao(e,n){var t=No();if(null!==t)try{return t.getItem(n)}catch(r){So=!1,z(e,2,2,"Browser failed read of session storage. "+B(r),{exception:j(r)})}return null}function Mo(e,n,t){var r=No();if(null!==r)try{r.setItem(n,t)}catch(i){So=!1,z(e,2,4,"Browser failed write to session storage. "+B(i),{exception:j(i)})}}var Ro="duration",V="tags",ko="deviceType",d="data",Eo="name",Po="traceID",H="length",Oo="stringify",Lo="measurements",S="dataType",Uo="envelopeType",Fo="toString",jo="onLine",qo="enqueue",Bo="count",zo="push",Vo="emitLineDelimitedJson",Ho="clear",Ko="batchPayloads",Jo="markAsSent",Xo="clearSent",$o="BUFFER_KEY",Go="SENT_BUFFER_KEY",Wo="MAX_BUFFER_SIZE",Yo="namePrefix",Zo="maxBatchSizeInBytes",Qo="triggerSend",K="diagLog",ea="onunloadDisableBeacon",na="isBeaconApiDisabled",ta="_sender",J="_senderConfig",ra="_buffer",ia="enableSessionStorageBuffer",oa="samplingPercentage",aa="instrumentationKey",ua="endpointUrl",ca="customHeaders",sa="disableXhr",la="onunloadDisableFetch",fa="disableTelemetry",da="baseType",pa="sampleRate",va="convertUndefined",X="_onError",ma="_onPartialSuccess",ha="_onSuccess",ya="itemsAccepted",ga="isRetryDisabled",wa="setRequestHeader",ba="maxBatchInterval",Ia="eventsSendRequest",_a="disableInstrumentationKeyValidation",xa="getSamplingScore",Ca="baseType",T="baseData",N="properties",Sa="true";function D(e,n,t){mt(e,n,t,He)}function Ta(e,t,r){O(e)||U(e,function(e,n){Be(n)?r[e]=n:y(n)?t[e]=n:Dt()&&(t[e]=At()[Oo](n))})}function Na(t,r){O(t)||U(t,function(e,n){t[e]=n||r})}function Da(e,n,t,r){for(var r=new ki(e,r,n),n=(D(r,"sampleRate",t[qr]),(t[T]||{}).startTime&&(r.time=pt(t[T].startTime)),r.iKey=t.iKey,t.iKey.replace(/-/g,"")),n=(r[Eo]=r[Eo].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[ko],c.deviceClass),D(o,f.deviceIp,c.ip),D(o,f.deviceModel,c.model),D(o,f[ko],c[ko])),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?Sa:null),D(e,"screenRes",c.screenRes),D(e,"userConsent",c.userConsent?Sa:null)),a.os),c=(e&&D(o,f.deviceOS,e[Eo]),a.trace),s=(c&&(D(o,f.operationParentId,c.parentID),D(o,f.operationName,C(n,c[Eo])),D(o,f.operationId,c[Po])),{}),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(Ma.Version)),i[V]=yt(e),t[V]=t[V]||[],yt(r)}function Aa(e,n){O(n[T])&&z(e,1,46,"telemetryItem.baseData cannot be null.")}var Ma={Version:"3.0.0-beta.2210-01"};function Ra(e,n,t){Aa(e,n);var r={},i={},t=(n[Ca]!==Ei[S]&&(r.baseTypeSource=n[Ca]),n[Ca]===Ei[S]?(r=n[T][N]||{},i=n[T][Lo]||{}):n[T]&&Ta(n[T],r,i),Ta(n[d],r,i),O(t)||Na(r,t),n[T][Eo]),t=new Ei(e,t,r,i),r=new po(Ei[S],t);return Da(e,Ei[Uo],n,r)}function ka(e,n){var t,r,i=void 0;if(void 0===i&&(i=!1),e)try{var o=kr(null,n),a=!1,u=e,c=function(e){return!(!o.ns&&null!==e[zn])&&(a=!0)};(t=o)[I]?Or(u,Er(u,t[I]),t,c):(U(r=Ar.get(u,Sr,{}),function(e,n){Or(u,n,t,c)}),0===on(r)[xn]&&Ar.kill(u,Sr)),a||Pr(e,o,null,i)}catch(s){}}Ea.__ieDyn=1;e=Ea;function Ea(t,r){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},h(Ea,this,function(n){n[qo]=function(e){n[Bo]()>=r.eventsLimitInMem()?o||(z(t,2,105,"Maximum in-memory buffer size reached: "+n[Bo](),!0),o=!0):i[zo](e)},n[Bo]=function(){return i[H]},n.size=function(){for(var e=i[H],n=0;n<i[H];n++)e+=i[n][H];return r[Vo]()||(e+=2),e},n[Ho]=function(){o=!(i=[])},n.getItems=function(){return i.slice(0)},n[Ko]=function(e){return e&&0<e[H]?r[Vo]()?e.join("\n"):"["+e.join(",")+"]":null}})}Q(La,Pa=e),La.__ieDyn=1;var Pa,Oa=La;function La(e,n){e=Pa.call(this,e,n)||this;return h(La,e,function(e,n){e[Jo]=function(e){n[Ho]()},e[Xo]=function(e){}}),e}Q(A,Ua=e),A.BUFFER_KEY="AI_buffer",A.SENT_BUFFER_KEY="AI_sentBuffer",A.MAX_BUFFER_SIZE=2e3;var Ua,Fa=A;function A(u,c){var e=Ua.call(this,u,c)||this,s=!1;return h(A,e,function(t,n){var e=o(A[$o]),r=o(A[Go]),r=t._set(e.concat(r));function i(n,e){var t=[];return F(e,function(e){g(e)||-1!==ln(n,e)||t[zo](e)}),t}function o(e){try{var e=c[Yo]&&c[Yo]()?c[Yo]()+"_"+e:e,n=Ao(u,e);if(n){var t=At().parse(n);if((t=y(t)?At().parse(t):t)&&L(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[Yo]&&c[Yo]()?c[Yo]()+"_"+e:e,t=JSON[Oo](n);Mo(u,e,t)}catch(r){Mo(u,e,JSON[Oo]([])),z(u,2,41," storage key: "+e+", "+B(r)+". Buffer cleared",{exception:j(r)})}}r[H]>A[Wo]&&(r[H]=A[Wo]),a(A[Go],[]),a(A[$o],r),t[qo]=function(e){t[Bo]()>=A[Wo]?s||(z(u,2,67,"Maximum buffer size reached: "+t[Bo](),!0),s=!0):(n[qo](e),a(A[$o],t._get()))},t[Ho]=function(){n[Ho](),a(A[$o],t._get()),a(A[Go],[]),s=!1},t[Jo]=function(e){a(A[$o],t._set(i(e,t._get())));var n=o(A[Go]);n instanceof Array&&e instanceof Array&&((n=n.concat(e))[H]>A[Wo]&&(z(u,1,67,"Sent buffer reached its maximum size: "+n[H],!0),n[H]=A[Wo]),a(A[Go],n))},t[Xo]=function(e){e=i(e,o(A[Go]));a(A[Go],e)}}),e}qa.__ieDyn=1;var ja=qa;function qa(f){h(qa,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(L(a))c=l(a,u);else{z(f,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:u},!0);try{At()[Oo](a),c=a}catch(n){z(f,1,48,n&&g(n[Fo])?n[Fo]():"Error serializing object",null,!0)}}return c}function l(e,n){if(e)if(L(e))for(var t=[],r=0;r<e[H];r++){var i=s(e[r],n+"["+r+"]");t[zo](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[Fo]?i[e]=n[Fo]():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 At()[Oo](e)}catch(n){z(f,1,48,n&&g(n[Fo])?n[Fo]():"Error serializing object",null,!0)}}})}za.prototype.getHashCodeScore=function(e){return this.getHashCode(e)/za.INT_MAX_VALUE*100},za.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)},za.INT_MAX_VALUE=2147483647;var Ba=za;function za(){}var Va=function(){var n=new Ba,t=new _o;this[xa]=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[Po]?n.getHashCodeScore(e.ext.telemetryTrace[Po]):100*Math.random()}},Ha=(Ka.prototype.isSampledIn=function(e){var n=this[pa];return null===n||n===undefined||100<=n||e.baseType===eo[S]||this.samplingScoreGenerator[xa](e)<n},Ka);function Ka(e,n){this.INT_MAX_VALUE=2147483647;n=n||Ft(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[pa]=e,this.samplingScoreGenerator=new Va}function Ja(e){try{return e.responseText}catch(n){}return null}function Xa(){var e,n={endpointUrl:function(){return Vr+Hr}};return n[Vo]=function(){return!1},n[ba]=function(){return 15e3},n[Zo]=function(){return 102400},n[fa]=function(){return!1},n[ia]=function(){return!0},n[ga]=function(){return!1},n[na]=function(){return!0},n[sa]=function(){return!1},n[la]=function(){return!1},n[ea]=function(){return!1},n[aa]=function(){return e},n[Yo]=function(){return e},n[oa]=function(){return 100},n[ca]=function(){},n[va]=function(){return e},n.eventsLimitInMem=function(){return 1e4},n}(n={})[Ei.dataType]=Ra,n[co.dataType]=function(e,n,t){Aa(e,n);var r=n[T].message,i=n[T].severityLevel,o=n[T][N]||{},a=n[T][Lo]||{},t=(Ta(n[d],o,a),O(t)||Na(o,t),new co(e,r,i,o,a)),r=new po(co[S],t);return Da(e,co[Uo],n,r)},n[io.dataType]=function(e,n,t){Aa(e,n);var r,i=n[T],i=(O(i)||O(i[N])||O(i[N][Ro])?O(n[d])||O(n[d][Ro])||(r=n[d][Ro],delete n[d][Ro]):(r=i[N][Ro],delete i[N][Ro]),n[T]),o=(((n.ext||{}).trace||{})[Po]&&(o=n.ext.trace[Po]),i.id||o),a=i[Eo],u=i.uri,c=i[N]||{},s=i[Lo]||{},i=(O(i.refUri)||(c.refUri=i.refUri),O(i.pageType)||(c.pageType=i.pageType),O(i.isLoggedIn)||(c.isLoggedIn=i.isLoggedIn[Fo]()),O(i[N])||U(i[N],function(e,n){c[e]=n}),Ta(n[d],c,s),O(t)||Na(c,t),new io(e,a,u,r,c,s,o)),t=new po(io[S],i);return Da(e,io[Uo],n,t)},n[lo.dataType]=function(e,n,t){Aa(e,n);var r=n[T],i=r[Eo],o=r.uri||r.url,a=r[N]||{},u=r[Lo]||{},t=(Ta(n[d],a,u),O(t)||Na(a,t),new lo(e,i,o,undefined,a,u,r)),i=new po(lo[S],t);return Da(e,lo[Uo],n,i)},n[Xi.dataType]=function(e,n,t){Aa(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Ta(n[d],i,r),O(t)||Na(i,t),n[T]),t=Xi.CreateFromInterface(e,t,i,r),i=new po(Xi[S],t);return Da(e,Xi[Uo],n,i)},n[eo.dataType]=function(e,n,t){Aa(e,n);var r=n[T],i=r[N]||{},o=r[Lo]||{},t=(Ta(n[d],i,o),O(t)||Na(i,t),new eo(e,r[Eo],r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o)),r=new po(eo[S],t);return Da(e,eo[Uo],n,r)},n[ao.dataType]=function(e,n,t){Aa(e,n);var r=n[T][Lo]||{},i=n[T][N]||{},t=(Ta(n[d],i,r),O(t)||Na(i,t),n[T]);if(O(t))return zt(e,"Invalid input for dependency data"),null;var o=t[N]&&t[N][zr]?t[N][zr]:"GET",o=new ao(e,t.id,t.target,t[Eo],t[Ro],t.success,t.responseCode,o,t.type,t.correlationContext,i,r),t=new po(ao[S],o);return Da(e,ao[Uo],n,t)};var $a,Ga=n,E=(Q(Wa,$a=Pe),Wa.constructEnvelope=function(e,n,t,r){e=n===e.iKey||O(n)?e:Y(Y({},e),{iKey:n});return(Ga[e.baseType]||Ra)(t,e,r)},Wa);function Wa(){var x,C,S,r,T,N,D,A,M,R,k,E=$a.call(this)||this,P=(E.priority=1001,E.identifier="AppInsightsChannelPlugin",E._senderConfig=Xa(),0);return h(Wa,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][ga]()&&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][ga]()||(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][ga]()?l[ma](n,a):l[X](n,i):(x=0,l[ha](n,r)))}function u(e){return!(10<=N)&&!O(e)&&""!==e&&e!==l[J][ua]()&&(l[J][ua]=function(){return e},++N,1)}function n(e,n){M?M(e,!1):c(e)}function o(e){var n=Qe(),t=l[ra],r=l[J][ua](),i=l._buffer[Ko](e),i=new Blob([i],{type:"text/plain;charset=UTF-8"}),r=n.sendBeacon(r,i);return r&&(t[Jo](e),l._onSuccess(e,e[H])),r}function c(e,n){if(L(e)&&0<e[H]&&!o(e)){for(var t=[],r=0;r<e[H];r++){var i=e[r];o([i])||t[zo](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][ua]();try{t[jr]=!0}catch(i){}t.open("POST",r,e),t[wa]("Content-type","application/json"),Ri(r)&&t[wa](Jr[6],Jr[7]),F(on(D),function(e){t[wa](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[Ko](n);t.send(e),l._buffer[Jo](n)}function d(e,n){if(L(e)){for(var t=e[H],r=0;r<e[H];r++)t+=e[r][H];P+t<=65e3?i(e,!1):Mt()?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][ua](),n=l._buffer[Ko](t),i=new Blob([n],{type:"application/json"}),o=new Headers,a=n[H],n=!1,u=!1,e=(Ri(e)&&o.append(Jr[6],Jr[7]),F(on(D),function(e){o.append(e,D[e])}),(i={method:"POST",headers:o,body:i})[jr]=!0,r||(n=i.keepalive=!0,P+=a),new Request(e,i));try{e[jr]=!0}catch(c){}l._buffer[Jo](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=At().parse(e);if(n&&n.itemsReceived&&n.itemsReceived>=n[ya]&&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[ra];t[Xo](e),x++;for(var r=0,i=e;r<i.length;r++){var o=i[r];t[qo](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=vt()+1e3*n;C=e,h()}}function h(){var e;r||S||(e=C?Math.max(0,C-vt()):0,e=Math.max(l[J][ba](),e),r=setTimeout(function(){r=null,l[Qo](!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:"+Ja(e)||e.response||"":n}function b(n,e){var t=l[ra],r=Ze(),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][ua]().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[Ho]();r=l[J][ua]().replace(/^(https?:)/,""),i.open("POST",r),r=t[Ko](n);i.send(r),t[Jo](n)}function I(e,n){return e?"XDomainRequest,Response:"+Ja(e)||"":n}function _(e,n){var t="getNotifyMgr",t=l.core[t]?l.core[t]():l.core._notificationManager;if(t&&t[Ia])try{t[Ia](e,n)}catch(r){z(l[K](),1,74,"send request notification failed: "+B(r),{exception:j(r)})}}function t(){l[ta]=null,l[ra]=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[Zo]()&&l[Qo](!0,null,10),h())},l.flush=function(e,n,t){if(void 0===e&&(e=!0),!S){y();try{l[Qo](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[ea]()&&!1!==l[J][na]()||!Mt())l.flush();else try{l[Qo](!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 ja(n.logger),C=null,x=0,l[ta]=null,N=0,l[K]()),r=(k=Lr(ar("Sender"),n.evtNamespace&&n.evtNamespace()),R=function(e){var n,t=Ye(),r=Qe(),i=!1,o=!0,a=Lr(ar("OfflineListener"),e);try{u(Ze())&&(i=!0),(i=!!(t&&(n=t.body||t).ononline&&u(n))||i)&&r&&!O(r[jo])&&(o=r[jo])}catch(l){i=!1}function u(e){var n=!1;return e&&(n=Ur(e,"online",c,a))&&Ur(e,"offline",s,a),n}function c(){o=!0}function s(){o=!1}return{isOnline:function(){var e=!0;return i?e=o:r&&!O(r[jo])&&(e=r[jo]),e},isListening:function(){return i},unload:function(){var e=Ze();e&&i&&(ka(e,a),t&&!Fe((e=t.body||t).ononline)&&ka(e,a),i=!1)}}}(k),U(Xa(),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][ia]()&&Do()?Fa:Oa)(t,l[J]),l._sample=new Ha(l[J][oa](),t),!O(e[_a])&&e[_a]||/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e[aa])||z(t,1,100,"Invalid Instrumentation key "+e[aa]),!Ri(l._senderConfig.endpointUrl())&&l._senderConfig.customHeaders()&&0<l._senderConfig.customHeaders()[H]&&F(l[J][ca](),function(e){E.addHeader(e.header,e.value)}),l[J]),n=null;!r[sa]()&&kt()?n=b:!r[sa]()&&Et()&&(n=f),!n&&Rt()&&(n=p),A=n||f,!r[na]()&&Mt()&&(n=c),l[ta]=n||f,M=!r[la]()&&Rt(!0)?d:Mt()?c:!r[sa]()&&kt()?b:!r[sa]()&&Et()?f:A},l.processTelemetry=function(e,n){var t=(n=l._getTelCtx(n))[K]();try{if(l[J][fa]())return;if(!e)return void z(t,1,7,"Cannot send empty telemetry");if(e.baseData&&!e[da])return void z(t,1,70,"Cannot send telemetry without baseData and baseType");if(e[da]||(e[da]="EventData"),!l[ta])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[pa]});e[qr]=l._sample[pa];var r=l[J][va]()||undefined,i=e.iKey||l[J][aa](),o=Wa.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][Br]&&(F(e[V][Br],function(e){try{e&&!1===e(o)&&(a=!0,zt(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][Br]),a)return;var u=T.serialize(o),c=l[ra];c.size()+u[H]>l[J][Zo]()&&l[Qo](!0,null,10),c[qo](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),Ja(e)||e.response)},l[Qo]=function(e,n,t){if(void 0===e&&(e=!0),!S)try{var r,i=l[ra];l[J][fa]()?i[Ho]():0<i[Bo]()&&(r=i.getItems(),_(t||0,e),n?n.call(E,r,e):l[ta](r,e)),y()}catch(o){i=function(e){var n=((e=(e=void 0===e?null:e)?e:(n=Qe()||{})?(n[Ln]||q)[Bn]():q)||q)[Bn]();if(ft(n,bt))return e=Ye()||{},Math.max(parseInt(n[Un](bt)[1]),e.documentMode||0);if(ft(n,It)){e=parseInt(n[Un](It)[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[Xo](e)},l[ma]=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)[zo](u)}0<e[H]&&l[ha](e,n[ya]),0<t[H]&&l[X](t,w(null,["partial success",n[ya],"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[ha]=function(e,n){l._buffer[Xo](e)},l._xdrOnLoad=function(e,n){var t=Ja(e);!e||t+""!="200"&&""!==t?(t=v(t))&&t.itemsReceived&&t.itemsReceived>t[ya]&&!l[J][ga]()?l[ma](n,t):l[X](n,I(e)):(x=0,l[ha](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
|