@microsoft/applicationinsights-channel-js 3.0.0-beta.2301-14 → 3.0.0-beta.2301-17

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