@microsoft/applicationinsights-react-js 19.3.9-nightly.2512-02 → 19.3.9-nightly.2512-03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-react-js.js +1 -1
- package/browser/applicationinsights-react-js.js.map +1 -1
- package/browser/applicationinsights-react-js.min.js +1 -1
- package/browser/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.d.ts +1 -1
- package/dist/applicationinsights-react-js.js +1 -1
- package/dist/applicationinsights-react-js.js.map +1 -1
- package/dist/applicationinsights-react-js.min.js +1 -1
- package/dist/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.rollup.d.ts +1 -1
- package/dist-esm/AppInsightsContext.js +1 -1
- package/dist-esm/AppInsightsErrorBoundary.js +1 -1
- package/dist-esm/Interfaces/IReactExtensionConfig.js +1 -1
- package/dist-esm/ReactPlugin.js +1 -1
- package/dist-esm/applicationinsights-react-js.js +1 -1
- package/dist-esm/useTrackEvent.js +1 -1
- package/dist-esm/useTrackMetric.js +1 -1
- package/dist-esm/withAITracking.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Plugin, 19.3.9-nightly.2512-
|
|
2
|
+
* Application Insights JavaScript SDK - React Plugin, 19.3.9-nightly.2512-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
var n=this,t=function(n,c){"use strict";function V(n){return n&&"object"==typeof n&&"default"in n?n:{"default":n}}function R(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(n){var t;"default"!==n&&Object.defineProperty(e,n,(t=Object.getOwnPropertyDescriptor(r,n)).get?t:{enumerable:!0,get:function(){return r[n]}})}),e["default"]=r,e}var z=R(c),L=V(c),j="object",$="undefined",W="prototype",J=Object,K=J[W];function t(n,t){return n||t}var y=undefined,_=null,B="",F="function",q="object",h="prototype",H="__proto__",G="undefined",X="constructor",Q="Symbol",o="length",Y="name",T="call",Z="toString",nn="getOwnPropertyDescriptor",tn="getOwnPropertyNames",rn="getOwnPropertySymbols",u=t(Object),en=u[h],r=t(String),e=r[h],i=t(Math),on=t(Array),a=on[h],un=a.slice,cn=t(Number),an="_polyfill",fn="__nw21$polytype__";function b(n,t){try{return{v:n.apply(this,t)}}catch(r){return{e:r}}}function ln(t){return function(n){return typeof n===t}}function sn(n){var t="[object "+n+"]";return function(n){return!(!n||en[Z].call(n)!==t)}}function m(n){return typeof n===G||n===G}function C(n){return n===_||m(n)}function vn(n){return n===_||n===y}function dn(n){return!!n||n!==y}var pn=ln("string"),k=ln(F);function gn(n){return(n||!C(n))&&n&&typeof n===q}var w=on.isArray,mn=ln("number"),hn=sn("RegExp"),yn=sn("Error");function _n(n){return!(!n||(t=!n,(r=b(function(){return!(n&&0+n)},void 0)).e?t:r.v));var t,r}function Tn(){}function bn(){return[]}function Cn(){return!1}var f=t(r),kn="[object Error]";function x(n,t){var r=B,e=en[Z][T](n);e===kn&&(n={stack:f(n.stack),message:f(n.message),name:f(n.name)});try{r=((r=JSON.stringify(n,_,t?"number"==typeof t?t:4:y))?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):_)||f(n)}catch(i){r=" - "+x(i,t)}return e+": "+r}function wn(n){throw new TypeError(n)}function xn(n){throw new RangeError(n)}function An(n){vn(n)&&wn("Cannot convert undefined or null to object")}function In(n){pn(n)||wn("'"+x(n)+"' is not a string")}function p(n,t){return!!n&&en.hasOwnProperty[T](n,t)}var Pn=t(u[nn],Tn),Sn=t(u.hasOwn,En);function En(n,t){return An(n),p(n,t)||!!Pn(n,t)}function d(n,t,r){if(n&&(gn(n)||k(n)))for(var e in n)if(Sn(n,e)&&-1===t[T](r||n,e,n[e]))break}function A(n,t,r){if(n)for(var e=n[o]>>>0,i=0;i<e&&!(i in n&&-1===t[T](r||n,n[i],i,n));i++);}r=l;function l(e,n,i){var o=n?n[e]:_;return function(n){var t,r=(n?n[e]:_)||o;if(r||i)return t=arguments,(r||i).apply(n,r?un[T](t,1):t);wn('"'+f(e)+'" not defined for '+x(n))}}l("propertyIsEnumerable",_,function(t,r){var n,e=u.getOwnPropertyDescriptor;return(n=(n=!vn(t)&&e?b(e,[t,r]).v||_:n)||b(function(){for(var n in t)if(n===r)return{enumerable:!0}}).v)&&n.enumerable||!1});var On=t(u[nn],Tn),Dn=(t(u[rn],bn),{e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"});function Mn(t){var n,r={};return r[Dn.c]=!0,r[Dn.e]=!0,t.l&&(r.get=function(){return t.l.v},(n=On(t.l,"v"))&&n.set&&(r.set=function(n){t.l.v=n})),d(t,function(n,t){r[Dn[n]]=t===y?r[Dn[n]]:t}),r}var Nn=u.defineProperty,Un=u.defineProperties;function I(n,t,r){return Nn(n,t,Mn(r))}function Vn(n,r,e,t){var i={};return d(n,function(n,t){Rn(i,n,r?t:n),Rn(i,t,e?t:n)}),t?t(i):i}function Rn(n,t,r){Nn(n,t,{value:r,enumerable:!0,writable:!1})}function zn(n,r){var e=[];return d(n,function(n,t){e.push(r(n,t))}),e}var Ln=t(u.isFrozen,Cn),jn=(t(u.isSealed,Cn),u.freeze);function $n(n){return n}var Wn=u.assign,Jn=u.keys,Kn=jn||$n,Bn=(t(u.seal,$n),t(u.getPrototypeOf,function(n){return An(n),n[H]||_}));t(u.entries,function(n){return zn(n,function(n,t){return[n,t]})}),t(u.values,function(n){return zn(n,function(n,t){return t})}),t(u.is,function(n,t){return n!=n?t!=t:0===n&&0===t?1/n==1/t:n===t});var Fn,qn=Vn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12},0,0,Kn),Hn="__tsUtils$gblCfg";function Gn(){var n;return(n=(n=(n=typeof globalThis!==G?globalThis:n)||typeof self===G?n:self)||typeof window===G?n:window)||typeof global===G?n:global}function Xn(){var n;return Fn||(n=b(Gn).v||{},Fn=n[Hn]=n[Hn]||{}),Fn}i.min;var Qn=i.max,Yn=r("slice",e),Zn=r("substring",e);function nt(n,t){return Zn(n,0,t)}l("substr",e,function(n,t,r){return An(n),r<0?B:((t=t||0)<0&&(t=Qn(t+n[o],0)),m(r)?Yn(n,t):Yn(n,t,t+r))});var s,P=t(u.create,function(n,t){function r(){}var e=vn(n)?{}:((e=typeof n)!==q&&e!=F&&wn("Prototype must be an Object or function: "+x(n)),r[h]=n,b(function(){r[H]=n}),new r);return t&&b(Un,[e,t]),e});function S(){return(Date.now||tt)()}function tt(){return(new Date).getTime()}function rt(n,t,r){return n.apply(t,r)}function et(){s=Xn()}function it(t,r){var e={};return s||et(),e.b=s.lzy,Nn(e,"v",{configurable:!0,get:function(){var n=rt(t,null,r);return s.lzy||Nn(e,"v",{value:n}),e.b=s.lzy,n}}),e}var ot,ut,ct=i.random,at=it(function(){for(var n=S().toString(36).slice(2);n.length<16;)n+=ct().toString(36).slice(2);return n.substring(0,16)}),ft="$nw21sym",lt=0;function st(n){var t="_"+lt+++"_"+at.v,r=Q+"("+n+")";function e(n,t){I(o,n,{v:t,e:!1,w:!1})}var i,o=P(null);return e("description",f(n)),e(Z,function(){return r+ft+t}),e("valueOf",function(){return o}),e("v",r),e("_uid",t),(i=o)&&(b(function(){i[an]=!0,i[fn]="symbol"}),b(I,[i,an,{v:!0,w:!1,e:!1}]),b(I,[i,fn,{v:"symbol",w:!1,e:!1}])),i}function vt(n){return Nn({toJSON:function(){return n}},"v",{value:n})}var dt,pt="window";function gt(n,t){var r;return function(){return s||et(),(r=r&&!s.lzy?r:vt(b(n,t).v)).v}}function mt(n){return s||et(),(dt=dt&&!1!==n&&!s.lzy?dt:vt(b(Gn).v||_)).v}function E(n,t){t=dt&&!1!==t?dt.v:mt(t);if(t&&t[n])return t[n];if(n===pt)try{return window}catch(r){}return _}var ht,yt,_t,Tt=gt(E,["document"]),bt=gt(E,[pt]),Ct=gt(E,["navigator"]);function kt(){return ht=vt(b(E,[Q]).v)}function wt(n){var t=(s.lzy?0:ht)||kt();return t.v?t.v[n]:y}function xt(n,t){var r=qn[n],e=(s||et(),(s.lzy?0:ht)||kt());return e.v?e.v[r||n]:t?y:(ut=ut||{},(r=qn[n])?ut[r]=ut[r]||st(Q+"."+r):void 0)}function At(n,t){s||et();var r=(s.lzy?0:ht)||kt();return r.v?r.v(n):t?_:st(n)}function It(n){return s||et(),((yt=(s.lzy?0:yt)||vt(b(wt,["for"]).v)).v||function(n){ot||(e=Xn(),ot=e.gblSym=e.gblSym||{k:{},s:{}});var t,r,e=ot;return Sn(e.k,n)||(t=st(n),r=Jn(e.s).length,t._urid=function(){return r+"_"+t[Z]()},e.k[n]=t,e.s[t._urid()]=f(n)),e.k[n]})(n)}function Pt(n){return n&&k(n.next)}function St(n){return!vn(n)&&k(n[xt(3)])}function Et(n,t,r){if(n&&(Pt(n)||(n=n[(_t=_t||vt(xt(3))).v]?n[_t.v]():_),Pt(n))){var e=y,i=y;try{for(var o=0;!(i=n.next()).done&&-1!==t[T](r||n,i.value,o,n);)o++}catch(u){e={e:u},n["throw"]&&(i=_,n["throw"](e))}finally{try{i&&!i.done&&n["return"]&&n["return"](i)}finally{if(e)throw e.e}}}}r("every",a),r("filter",a);var Ot,Dt=r("indexOf",a),Mt=(r("lastIndexOf",a),r("map",a));function Nt(r,e,i){var o=-1;return A(r,function(n,t){if(e[T](i|r,n,t,r))return o=t,-1}),o}function Ut(n,t,r){for(var e=-1,i=(n[o]>>>0)-1;0<=i;i--)if(i in n&&t[T](r|n,n[i],i,n)){e=i;break}return e}l("find",a,function(n,t,r){t=Nt(n,t,r);return-1!==t?n[t]:void 0}),l("findIndex",a,Nt),l("findLast",a,function(n,t,r){t=Ut(n,t,r);return-1!==t?n[t]:void 0}),l("findLastIndex",a,Ut),t(on.from,function(n,r,e){var t;if(w(n))return t=function(n){return((n?n.slice:_)||un).apply(n,un[T](arguments,1))}(n),r?Mt(t,r,e):t;var i=[];return Et(n,function(n,t){return i.push(r?r[T](e,n,t):n)}),i}),l("includes",a,function(n,t,r){return-1!==Dt(n,t,r)}),r("reduce",a),r("some",a);var Vt=t(u.setPrototypeOf,function(r,n){var t;return(Ot=Ot||vt(((t={})[H]=[],t instanceof Array))).v?r[H]=n:d(n,function(n,t){return r[n]=t}),r});function Rt(n,t){t&&(n[Y]=t)}function zt(t){return function(n){return An(n),n&&n.replace?n.replace(t,B):n}}var on=zt(/^\s+|(?=\s)\s+$/g),a=zt(/^\s+/g),Lt=zt(/(?=\s)\s+$/g),jt=l("trim",e,on),$t=(l("trimStart",e,a),l("trimEnd",e,Lt),r("toUpperCase",e),r("toLowerCase",e),i.floor),Wt=i.ceil,Jt=t(i.trunc,function(n){n=+n;return(0<n?$t:Wt)(n)});function Kt(n,t){var r=+n;return!t||r!==Infinity&&r!=Infinity||xn("invalid value ["+x(n)+"]"),r!=r||0==r?0:Jt(r)}var Bt,Ft,qt,Ht,Gt,Xt=l("repeat",e,function(n,t){An(n),(t=Kt(t,!0))<0&&xn("invalid count must be >= 0 && < Infinity");for(var r=pn(n)?n:f(n),e=B;0<t;(t>>>=1)&&(r+=r))1&t&&(e+=r);return e});function Qt(n,t,r){var e=B,n=(t=Kt(t,!0),n[o]);return n<(t>>=0)&&(e=(t-=n)>(e=C(r)?" ":f(r))[o]?Xt(e,Wt(t/e[o])):e)[o]>t?Zn(e,0,t):e}function Yt(n){if(!n||typeof n!==q)return!1;var t=!1;if(n!==(qt=qt||!bt()||bt())){Ft||(Bt=Function[h][Z],Ft=Bt[T](u));try{var r=Bn(n),t=(t=!r)||!(!(r=p(r,X)?r[X]:r)||typeof r!=F||Bt[T](r)!==Ft)}catch(e){}}return t}l("padStart",e,function(n,t,r){return Qt(n,t,r)+n}),l("padEnd",e,function(n,t,r){return n+Qt(n,t,r)}),r("split",e),l("split",e,function(n,t,r){t=t?t[xt(9)]:y;return t?t(n,r):[n]}),t(cn.isInteger,function(n){return mn(n)&&!isNaN(n)&&isFinite(n)&&$t(n)===n}),i.abs,i.exp,i.log,i.asin,i.acos,i.atan,i.atan2,i.pow,i.sqrt,i.round,i.sin,i.cos,i.tan;var Zt=t(u[tn],bn),nr=t(u[nn],Tn),tr=t(u[nn],Tn),rr=(t(u.getOwnPropertyDescriptors,function(r){var e={};if(An(r),!Ht)try{Ht=!0,A(Zt(r),function(n){var t=nr(r,n);t!==undefined&&(e[n]=t)}),A(function(n){var t=[],r=u.hasOwn||En;if(!Gt)try{Gt=!0;for(var e=0;e<=12;){var i=xt(e);i&&r(n,i)&&t.push(i),e++}}finally{Gt=!1}return t}(r),function(n){var t=nr(r,n);t!==undefined&&(e[n]=t)})}finally{Ht=!1}return e}),t(u[tn],bn),t(u[rn],bn),t(u.fromEntries,function(n){var t={};function r(n){w(n)&&2<=n.length&&(t[n[0]]=n[1])}return w(n)?A(n,r):St(n)&&Et(n,r),t}),t(u.preventExtensions,$n),t(u.isExtensible,Cn),l("endsWith",e,function(n,t,r){In(n);t=pn(t)?t:f(t),r=!m(r)&&r<n[o]?r:n[o];return Zn(n,r-t[o],r)===t})),er=r("indexOf",e),ir=(r("lastIndexOf",e),l("includes",e,function(n,t,r){return hn(t)&&wn("'searchString' must not be a regular expression"+x(t)),-1!==er(n,f(t),r)}),l("startsWith",e,function(n,t,r){In(n);t=pn(t)?t:f(t),r=0<r?r:0;return Zn(n,r,r+t[o])===t}),"unref");(mt()||{}).Symbol,(mt()||{}).Reflect;var or="hasOwnProperty",ur=Wn||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])K[or].call(t,i)&&(n[i]=t[i]);return n},cr=function(n,t){return(cr=J.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t[or](r)&&(n[r]=t[r])})(n,t)};function ar(n,t){function r(){this.constructor=n}"function"!=typeof t&&null!==t&&wn("Class extends value "+t+" is not a constructor or null"),cr(n,t),n[W]=null===t?P(t):(r[W]=t[W],new r)}var fr="constructor",g="prototype",lr="function",sr="_dynInstFuncs",vr="_isDynProxy",dr="_dynClass",pr="_dynInstChk",gr=pr,mr="_dfOpts",hr="_unknown_",yr="__proto__",_r="_dyn"+yr,on="__dynProto$Gbl",Tr="_dynInstProto",br="useBaseInst",Cr="setInstFuncs",kr=Object,wr=kr.getPrototypeOf,xr=kr.getOwnPropertyNames,a=mt(),Ar=a[on]||(a[on]={o:((Lt={})[Cr]=!0,Lt[br]=!0,Lt),n:1e3});function Ir(n){return n&&(n===kr[g]||n===Array[g])}function Pr(n){return Ir(n)||n===Function[g]}function Sr(n){if(n){if(wr)return wr(n);var t=n[yr]||n[g]||(n[fr]?n[fr][g]:null),r=n[_r]||t;p(n,_r)||(delete n[Tr],r=n[_r]=n[Tr]||n[_r],n[Tr]=t)}return r}function Er(n,t){var r=[];if(xr)r=xr(n);else for(var e in n)"string"==typeof e&&p(n,e)&&r.push(e);if(r&&0<r.length)for(var i=0;i<r.length;i++)t(r[i])}function Or(n,t,r){return t!==fr&&typeof n[t]===lr&&(r||p(n,t))&&t!==yr&&t!==g}function Dr(n){wn("DynamicProto: "+n)}function Mr(n,t){for(var r=n.length-1;0<=r;r--)if(n[r]===t)return 1}function Nr(n,t){return p(n,g)?n.name||t||hr:((n||{})[fr]||{}).name||t||hr}function Ur(n,e,t,r){p(n,g)||Dr("theClass is an invalid class definition.");var i,o,u,c,a,f,l=n[g],s=(function(n){if(!wr)return 1;for(var t=[],r=Sr(e);r&&!Pr(r)&&!Mr(t,r);){if(r===n)return 1;t.push(r),r=Sr(r)}}(l)||Dr("["+Nr(n)+"] not in hierarchy of ["+Nr(e)+"]"),null),n=(p(l,dr)?s=l[dr]:(s="_dynCls$"+Nr(n,"_")+"$"+Ar.n,Ar.n++,l[dr]=s),Ur[mr]),v=!!n[br],d=(v&&r&&r[br]!==undefined&&(v=!!r[br]),i=e,o=P(null),Er(i,function(n){!o[n]&&Or(i,n,!1)&&(o[n]=i[n])}),o),v=(t(e,function(n,t,r,o){function e(n,t,r){var e,i=t[r];return i[vr]&&o&&!1!==(e=n[sr]||{})[gr]&&(i=(e[t[dr]]||{})[r]||i),function(){return i.apply(n,arguments)}}for(var i=P(null),u=(Er(r,function(n){i[n]=e(t,r,n)}),Sr(n)),c=[];u&&!Pr(u)&&!Mr(c,u);)Er(u,function(n){!i[n]&&Or(u,n,!wr)&&(i[n]=e(t,u,n))}),c.push(u),u=Sr(u);return i}(l,e,d,v)),!!wr&&!!n[Cr]);u=l,t=s,c=e,a=d,n=!1!==(v=v&&r?!!r[Cr]:v),Ir(u)||Ir(l=c[sr]=c[sr]||P(null))||(f=l[t]=l[t]||P(null),!1!==l[gr]&&(l[gr]=!!n),Ir(f)||Er(c,function(n){var r,e,i;Or(c,n,!1)&&c[n]!==a[n]&&(f[n]=c[n],delete c[n],p(u,n)&&(!u[n]||u[n][vr])||(u[n]=(r=u,e=n,(i=function(){var n,t;return(function(n,t,r,e){var i=null;if(n&&p(r,dr)){var o=n[sr]||P(null);if((i=(o[r[dr]]||P(null))[t])||Dr("Missing ["+t+"] "+lr),!i[pr]&&!1!==o[gr]){for(var u=!p(n,t),c=Sr(n),a=[];u&&c&&!Pr(c)&&!Mr(a,c);){var f=c[t];if(f){u=f===e;break}a.push(c),c=Sr(c)}try{u&&(n[t]=i),i[pr]=1}catch(l){o[gr]=!1}}}return i}(this,e,r,i)||(typeof(t=(t=r[n=e])===i?Sr(r)[n]:t)!==lr&&Dr("["+n+"] is not a "+lr),t)).apply(this,arguments)})[vr]=1,i)))}))}Ur[mr]=Ar.o;var Vr,Rr="toLowerCase",O="length",zr="warnToConsole",Lr="throwInternal",jr="watch",$r="apply",D="push",Wr="splice",Jr="logger",Kr="identifier",Br="isInitialized",Fr="getPlugin",qr="processNext",Hr="enabled",Gr="createNew",Xr="teardown",Qr="messageId",Yr="message",Zr="diagLog",ne="_doTeardown",te="update",re="getNext",ee="setNextPlugin",ie="userAgent",oe="split",ue="replace",ce="isChildEvt",ae="getCtx",fe="setCtx",le=undefined,M="",N="core",se="disabled",ve="extensionConfig",de="processTelemetry",pe="priority",ge="getPerfMgr",me="domain",he="path",ye="Not dynamic - ",_e=/-([a-z])/g,Te=/([^\w\d_$])/g,be=/^(\d+[\w\d_$])/;function Ce(n){return!C(n)}function ke(n){return n&&pn(n)?(n=(n=n[ue](_e,function(n,t){return t.toUpperCase()}))[ue](Te,"_"))[ue](be,function(n,t){return"_"+t}):n}function U(n,t){return!(!n||!t)&&-1!==er(n,t)}function we(n,t,r,e,i){var o=r;!n||(o=n[t])===r||i&&!i(o)||e&&!e(r)||(n[t]=o=r)}function xe(n,t,r,e,i){var o,u,c;n&&t&&r&&(!1===i&&!m(n[t])||(n[t]=(o=e,c=u=null,k(i=r)?u=i:c=i,function(){var n=arguments;if(c=u?u():c)return c[o][$r](c,n)})))}var Ae="location",Ie="console",Pe="JSON",Se="msie",Ee="trident/",Oe=null,De=null;function Me(){return typeof JSON===j&&JSON||null!==E(Pe)}function Ne(){var n=Ct();return!n||n[ie]===De&&null!==Oe||(n=((De=n[ie])||M)[Rr](),Oe=U(n,Se)||U(n,Ee)),Oe}var Ue=4294967296,Ve=4294967295,Re=123456789,ze=987654321,Le=!1,je=Re,$e=ze;function We(n){var t,r=0,e=E("crypto")||E("msCrypto");if(0===(r=e&&e.getRandomValues?e.getRandomValues(new Uint32Array(1))[0]&Ve:r)&&Ne()){if(!Le)try{var i=2147483647&S();(t=(Math.random()*Ue^i)+i)<0&&(t>>>=0),je=Re+t&Ve,$e=ze-t&Ve,Le=!0}catch(o){}e=(($e=36969*(65535&$e)+($e>>16)&Ve)<<16)+(65535&(je=18e3*(65535&je)+(je>>16)&Ve))>>>0&Ve|0,r=(e>>>=0)&Ve}return 0===r&&(r=$t(Ue*Math.random()|0)),n||(r>>>=0),r}var Je="3.3.11-nightly3.2511-09",Ke="."+function(n){void 0===n&&(n=22);for(var t=We()>>>0,r=0,e=M;e[O]<n;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++r&&(t=(We()<<2&4294967295|3&t)>>>0,r=0);return e}(6),Be=0;function Fe(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function qe(n,t){return ke(n+Be+++((t=void 0!==t&&t)?"."+Je:M)+Ke)}function He(n){return n&&gn(n)&&!w(n)&&(n.isVal||n.fb||Sn(n,"v")||Sn(n,"mrg")||Sn(n,"ref")||n.set)}function Ge(n,t,r){var e,i=r.dfVal||dn;if(t&&r.fb){var o=r.fb;w(o)||(o=[o]);for(var u=0;u<o[O];u++){var c=o[u],a=t[c];if(i(a)?e=a:n&&(i(a=n.cfg[c])&&(e=a),n.set(n.cfg,f(c),a)),i(e))break}}return!i(e)&&i(r.v)?r.v:e}function Xe(r,n,t,e){var i,o,u,c,a,f,l=e,l=He(l)?(i=l.isVal,o=l.set,a=l.rdOnly,s=l.blkVal,u=l.mrg,!(c=l.ref)&&m(c)&&(c=!!u),Ge(r,n,l)):e,e=(s&&r.blkVal(n,t),!0),s=n[t];!s&&C(s)||(f=s,e=!1,i&&f!==l&&!i(f)&&(f=l,e=!0),o&&(e=(f=o(f,l,n))===l)),e?f=l&&function v(r,e,n){var i,t=n;return(t=n&&He(n)?Ge(r,e,n):t)&&(He(t)&&(t=v(r,e,t)),w(t)?(i=[])[O]=t[O]:Yt(t)&&(i={}),i&&(d(t,function(n,t){t&&He(t)&&(t=v(r,e,t)),i[n]=t}),t=i)),t}(r,n,l):(Yt(f)||w(l))&&u&&l&&(Yt(l)||w(l))&&d(l,function(n,t){Xe(r,f,n,t)}),r.set(n,t,f),c&&r.ref(n,t),a&&r.rdOnly(n,t)}var Qe=It("[[ai_dynCfg_1]]"),Ye=It("[[ai_blkDynCfg_1]]"),Ze=It("[[ai_frcDynCfg_1]]");function ni(n,t,r){var e=!1;return!r||n[t.blkVal]||(e=r[Ze])||r[Ye]?e:Yt(r)||w(r)}function ti(n){wn("InvalidAccess:"+n)}var ri=["push","pop","shift","unshift","splice"],ei=function(n,t,r,e){n&&n[Lr](3,108,"".concat(r," [").concat(t,"] failed - ")+x(e))};function ii(n,t){n=tr(n,t);return n&&n.get}function oi(i,o,u,c){var a={n:u,h:[],trk:function(n){n&&n.fn&&(-1===Dt(a.h,n)&&a.h[D](n),i.trk(n,a))},clr:function(n){n=Dt(a.h,n);-1!==n&&a.h[Wr](n,1)}},f=!0,l=!1;function s(){f&&(l=l||ni(s,i,c),c&&!c[Qe]&&l&&(c=ai(i,c,u,"Converting")),f=!1);var n=i.act;return n&&a.trk(n),c}s[i.prop]={chng:function(){i.add(a)}},I(o,a.n,{g:s,s:function(t){if(c!==t){s[i.ro]&&!i.upd&&ti("["+u+"] is read-only:"+x(o)),f&&(l=l||ni(s,i,c),f=!1);var n,r=l&&s[i.rf];if(l)if(r){d(c,function(n){c[n]=t?t[n]:le});try{d(t,function(n,t){ui(i,c,n,t)}),t=c}catch(e){ei((i.hdlr||{})[Jr],u,"Assigning",e),l=!1}}else c&&c[Qe]&&d(c,function(n){var n=ii(c,n);n&&(n=n[i.prop])&&n.chng()});t!==c&&(n=t&&ni(s,i,t),!r&&n&&(t=ai(i,t,u,"Converting")),c=t,l=n),i.add(a)}}})}function ui(n,t,r,e){var i;return t&&((i=ii(t,r))&&i[n.prop]?t[r]=e:oi(n,t,r,e)),t}function ci(n,t,r,e){if(t){var i=ii(t,r),o=i&&!!i[n.prop],u=e&&e[0],c=e&&e[1],e=e&&e[2];if(!o){if(e)try{var a=t;if(a&&(Yt(a)||w(a)))try{a[Ye]=!0}catch(f){}}catch(l){ei((n.hdlr||{})[Jr],r,"Blocking",l)}try{ui(n,t,r,t[r]),i=ii(t,r)}catch(l){ei((n.hdlr||{})[Jr],r,"State",l)}}u&&(i[n.rf]=u),c&&(i[n.ro]=c),e&&(i[n.blkVal]=!0)}return t}function ai(r,e,n,t){try{d(e,function(n,t){ui(r,e,n,t)}),e[Qe]||(Nn(e,Qe,{get:function(){return r.hdlr}}),i=r,u=n,w(o=e)&&A(ri,function(n){var e=o[n];o[n]=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=e[$r](this,n);return ai(i,o,u,"Patching"),r}}))}catch(c){ei((r.hdlr||{})[Jr],n,t,c)}var i,o,u;return e}var fi="[[ai_",li="]]";function si(o){var u,n=At(fi+"get"+o.uid+li),t=At(fi+"ro"+o.uid+li),r=At(fi+"rf"+o.uid+li),e=At(fi+"blkVal"+o.uid+li),v=At(fi+"dtl"+o.uid+li),d=null,p=null;function g(t,n){var r=u.act;try{(u.act=t)&&t[v]&&(A(t[v],function(n){n.clr(t)}),t[v]=[]),n({cfg:o.cfg,set:o.set.bind(o),setDf:o.setDf.bind(o),ref:o.ref.bind(o),rdOnly:o.rdOnly.bind(o)})}catch(i){var e=o[Jr];throw e&&e[Lr](1,107,x(i)),i}finally{u.act=r||null}}function m(){if(d){var r,n=d,e=(d=null,p&&p.cancel(),p=null,[]);if(A(n,function(t){if(t&&(t[v]&&(A(t[v],function(n){n.clr(t)}),t[v]=null),t.fn))try{g(t,t.fn)}catch(n){e[D](n)}}),d)try{m()}catch(s){e[D](s)}if(0<e[O])throw n=e,Vr=Vr||(a=(c=Error)[h][Y],f=Error.captureStackTrace,l=c,b(I,[u=function(){var n=this,t=arguments;try{b(Rt,[c,i]);var r,e=rt(c,n,un[T](t))||n;return e!==n&&(r=Bn(n))!==Bn(e)&&Vt(e,r),f&&f(e,n[X]),o(e,t),e}finally{b(Rt,[c,a])}},Y,{v:i="AggregationError",c:!0,e:!(o=function(n,t){1<t[O]&&(n.errors=t[1])})}]),(u=Vt(u,l))[h]=l===_?P(l):(t[h]=l[h],new t),u),r="Watcher error(s): ",A(n,function(n,t){r+="\n".concat(t," > ").concat(x(n))}),new Vr(r,n||[])}function t(){this[X]=u,b(I,[this,Y,{v:"AggregationError",c:!0,e:!1}])}var i,o,u,c,a,f,l}return u={prop:n,ro:t,rf:r,blkVal:e,hdlr:o,add:function(n){if(n&&0<n.h[O]){d=d||[],p=p||function(){return e=!0,i=y,o=un[T](arguments),v=w(i),d=v?i.length:0,v=0<d?i[0]:v?y:i,(v=k(v)?v:void 0)||(u=Xn().tmOut||[],w(u)&&0<u.length&&k(u[0])&&(v=u[0])),p=v||setTimeout,u=1<d?i[1]:y,(v=k(u)?u:void 0)||(d=Xn().tmOut||[],w(d)&&1<d.length&&k(d[1])&&(v=d[1])),g=v||clearTimeout,m=o[0],o[0]=function(){h.dn(),rt(m,y,un[T](arguments))},c=function(n){if(n){if(n.refresh)return n.refresh(),n;rt(g,y,[n])}return rt(p,y,o)},a=function(n){rt(g,y,[n])},l=!0,s=e?c(_):_,(f={cancel:t,refresh:r,hasRef:function(){return s&&s.hasRef?s.hasRef():l},ref:function(){return l=!0,s&&s.ref&&s.ref(),f}})[ir]=n,(h={h:f=Nn(f,"enabled",{get:function(){return!!s},set:function(n){!n&&s&&t(),n&&!s&&r()}}),dn:function(){s=_}}).h;function n(){return l=!1,s&&s[ir]&&s[ir](),f}function t(){s&&a(s),s=_}function r(){return s=c(s),l||n(),f}var e,i,o,u,c,a,f,l,s,v,d,p,g,m,h}(function(){p=null,m()},0);for(var t=0;t<n.h[O];t++){var r=n.h[t];r&&-1===Dt(d,r)&&d[D](r)}}},notify:m,use:g,trk:function(n,t){n&&(n=n[v]=n[v]||[],-1===Dt(n,t)&&n[D](t))}}}function vi(i,t,n){var r=function(){if(t){var n=t[Qe]||t;if(n.cfg&&(n.cfg===t||n.cfg[Qe]===n))return n}return null}();if(r)return r;var o,r=qe("dyncfg",!0),n=t&&!1!==n?t:function u(n){var r;return n&&(w(n)?(r=[])[O]=n[O]:Yt(n)&&(r={}),r)?(d(n,function(n,t){r[n]=u(t)}),r):n}(t),e={uid:null,cfg:n,logger:i,notify:function(){o.notify()},set:function(n,t,r){try{n=ui(o,n,t,r)}catch(e){ei(i,t,"Setting value",e)}return n[t]},setDf:function(r,n){return n&&d(n,function(n,t){Xe(e,r,n,t)}),r},watch:function(n){return t=o,I(e={fn:r=n,rm:function(){e.fn=null,r=t=null}},"toJSON",{v:function(){return"WatcherHandler"+(e.fn?"":"[X]")}}),t.use(e,r),e;var t,r,e},ref:function(n,t){return ci(o,n,t,((n={})[0]=!0,n))[t]},rdOnly:function(n,t){return ci(o,n,t,((n={})[1]=!0,n))[t]},blkVal:function(n,t){return ci(o,n,t,((n={})[2]=!0,n))[t]},_block:function(r,e){o.use(null,function(n){var t=o.upd;try{m(e)||(o.upd=e),r(n)}finally{o.upd=t}})}};return I(e,"uid",{c:!1,e:!1,w:!1,v:r}),ai(o=si(e),n,"config","Creating"),e}function di(n,t,r,e){r=vi(r,n||{},e);return t&&r.setDf(r.cfg,t),r}function pi(n,t,r){var e,i,o=n[Qe]||n;return!o.cfg||o.cfg!==n&&o.cfg[Qe]!==o?(e=r,i=ye+x(n),e?(e[zr](i),e[Lr](2,108,i)):ti(i),di(n,null,r)[jr](t)):o[jr](t)}var gi=null,mi="warnToConsole",hi={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},yi=((cn={})[0]=null,cn[1]="errorToConsole",cn[2]=mi,cn[3]="debugToConsole",cn);function _i(n){return n?'"'+n[ue](/\"/g,M)+'"':M}function Ti(n,t){var r,e=typeof console!==$?console:E(Ie);e&&(r="log",e[n]&&(r=n),k(e[r])&&e[r](t))}Ci.dataType="MessageData";var bi=Ci;function Ci(n,t,r,e){void 0===r&&(r=!1),this[Qr]=n,this[Yr]=(r?"AI: ":"AI (Internal): ")+n;r=M,Me()&&(r=(Me()?JSON||E(Pe):null).stringify(e)),n=(t?" message:"+_i(t):M)+(e?" props:"+_i(r):M);this[Yr]+=n}function ki(n,t){return(n||{})[Jr]||new wi(t)}xi.__ieDyn=1;var wi=xi;function xi(i){this.identifier="DiagnosticLogger",this.queue=[];var a,f,l,s,t,v=0,d={};Ur(xi,this,function(o){function u(n,t){var r,e;l<=v||(e=!0,r="AITR_"+t[Qr],d[r]?e=!1:d[r]=!0,e&&(n<=f&&(o.queue[D](t),v++,c(1===n?"error":"warn",t)),v===l&&(e=new bi(23,r="Internal events throttle limit per PageView reached for this app.",!1),o.queue[D](e),1===n?o.errorToConsole(r):o[zr](r))))}function c(n,t){var r,e=(r=(r=gi)||!0===(i||{}).disableDbgExt?r:gi||(e=E("Microsoft"),gi=e?e.ApplicationInsights:gi))?r.ChromeDbgExt:null;e&&e[Zr]&&e[Zr](n,t)}t=pi(di(i||{},hi,o).cfg,function(n){n=n.cfg;a=n.loggingLevelConsole,f=n.loggingLevelTelemetry,l=n.maxMessageLimit,s=n.enableDebug}),o.consoleLoggingLevel=function(){return a},o[Lr]=function(n,t,r,e,i){t=new bi(t,r,i=void 0!==i&&i,e);if(s)throw x(t);r=yi[n]||mi;m(t[Yr])?c("throw"+(1===n?"Critical":"Warning"),t):(i?(e=+t[Qr],!d[e]&&n<=a&&(o[r](t[Yr]),d[e]=!0)):n<=a&&o[r](t[Yr]),u(n,t))},o.debugToConsole=function(n){Ti("debug",n),c("warning",n)},o[zr]=function(n){Ti("warn",n),c("warning",n)},o.errorToConsole=function(n){Ti("error",n),c("error",n)},o.resetInternalMessageCount=function(){v=0,d={}},o.logInternalMessage=u,o.unload=function(n){t&&t.rm(),t=null}})}function Ai(n,t,r,e,i,o){void 0===o&&(o=!1),(n||new wi)[Lr](t,r,e,i,o)}var v,Ii="toGMTString",Pi="toUTCString",Si="cookie",Ei="expires",Oi="isCookieUseDisabled",Di="disableCookiesUsage",Mi="_ckMgr",Ni=null,Ui=null,Vi=null,Ri={},zi={},Li=((nn={cookieCfg:{mrg:!0,v:((i={})[me]={fb:"cookieDomain",dfVal:Ce},i.path={fb:"cookiePath",dfVal:Ce},i.enabled=le,i.ignoreCookies=le,i.blockedCookies=le,i.disableCookieDefer=!1,i)},cookieDomain:le,cookiePath:le})[Di]=le,nn);function ji(){v=v||it(function(){return Tt()})}function $i(n){return!n||n.isEnabled()}function Wi(n,t){return t&&n&&w(n.ignoreCookies)&&-1!==Dt(n.ignoreCookies,t)}function Ji(n,t){return t&&n&&w(n.blockedCookies)&&-1!==Dt(n.blockedCookies,t)||Wi(n,t)}function Ki(n,t){var r,t=t[Hr];return C(t)&&(r=void 0,m(n[Oi])||(r=!n[Oi]),t=r=m(n[Di])?r:!n[Di]),t}function Bi(r,e){var f,l,s,i,o,v,u,d=[];function c(n){(t={})[he]=n||"/",t[Ei]="Thu, 01 Jan 1970 00:00:01 GMT";var t,n=t;return Ne()||(n["max-age"]="0"),Gi(M,n)}function p(n){if(d)for(var t=d[O]-1;0<=t;t--)d[t].n===n&&d[Wr](t,1)}var t=pi(r=di(r||zi,null,e).cfg,function(n){n.setDf(n.cfg,Li),f=n.ref(n.cfg,"cookieCfg"),l=f[he]||"/",s=f[me],f.disableCookieDefer?d=null:null===d&&(d=[]);n=i;i=!1!==Ki(r,f),o=f.getCookie||Xi,v=f.setCookie||Qi,u=f.delCookie||Qi,!n&&i&&d&&Fi(e)&&d&&(A(d,function(n){Ji(f,n.n)||(0===n.o?v(n.n,n.v):1===n.o&&u(n.n,n.v))}),d=[])},e),g={isEnabled:function(){var n=!1!==Ki(r,f)&&i&&Fi(e),t=zi[Mi];return n&&t&&g!==t?$i(t):n},setEnabled:function(n){f[Hr]=n,m(r[Di])||(r[Di]=!n)},set:function(n,t,r,e,i){var o,u,c,a=!1;return Ji(f,n)||(r=r,e=e,i=i,o={},u=jt((t=t)||M),-1!==(c=er(u,";"))&&(u=jt(nt(t,c)),o=qi(Zn(t,c+1))),we(o,me,e||s,_n,m),C(r)||(t=Ne(),m(o[Ei])&&0<(c=S()+1e3*r)&&((e=new Date).setTime(c),we(o,Ei,Hi(e,t?Ii:Pi)||Hi(e,t?Ii:Pi)||M,_n)),t||we(o,"max-age",M+r,null,m)),(c=typeof location===j&&location?location:E(Ae))&&"https:"===c.protocol&&(we(o,"secure",null,null,m),(Ui=null===Ui?(e=(Ct()||{})[ie],!(pn(e)&&(U(e,"CPU iPhone OS 12")||U(e,"iPad; CPU OS 12")||U(e,"Macintosh; Intel Mac OS X 10_14")&&U(e,"Version/")&&U(e,"Safari")||U(e,"Macintosh; Intel Mac OS X 10_14")&&rr(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||U(e,"Chrome/5")||U(e,"Chrome/6")||U(e,"UnrealEngine")&&!U(e,"Chrome")||U(e,"UCBrowser/12")||U(e,"UCBrowser/11")))):Ui)&&we(o,"SameSite","None",null,m)),we(o,he,i||l,null,m),t=Gi(u,o),$i(g)?(v(n,t),a=!0):d&&(p(n),d[D]({n:n,o:0,v:t}),a=!0)),a},get:function(n){var t=M;if(!Wi(f,n))if($i(g))t=o(n);else if(d)for(var r=d[O]-1;0<=r;r--){var e,i=d[r];if(i.n===n){0===i.o&&(i=i.v,e=er(i,";"),t=jt(-1!==e?nt(i,e):i));break}}return t},del:function(n,t){var r=!1;return $i(g)?r=g.purge(n,t):d&&(p(n),d[D]({n:n,o:1,v:c(t)}),r=!0),r},purge:function(n,t){var r=!1;return Fi(e)&&(u(n,c(t)),r=!0),r},unload:function(n){t&&t.rm(),d=t=null}};return g[Mi]=g}function Fi(n){if(null===Ni){Ni=!1,v||ji();try{var t=v.v||{};Ni=t[Si]!==undefined}catch(r){Ai(n,2,68,"Cannot access document.cookie - "+(yn(t=r)?t.name:M),{exception:x(r)})}}return Ni}function qi(n){var r={};return n&&n[O]&&A(jt(n)[oe](";"),function(n){var t;(n=jt(n||M))&&(-1===(t=er(n,"="))?r[n]=null:r[jt(nt(n,t))]=jt(Zn(n,t+1)))}),r}function Hi(n,t){return k(n[t])?n[t]():null}function Gi(n,t){var r=n||M;return d(t,function(n,t){r+="; "+n+(C(t)?M:"="+t)}),r}function Xi(n){var t,r=M;return v||ji(),v.v&&(t=v.v[Si]||M,Vi!==t&&(Ri=qi(t),Vi=t),r=jt(Ri[n]||M)),r}function Qi(n,t){v||ji(),v.v&&(v.v[Si]=n+"="+t)}var Yi="ParentContextKey",Zi="ChildrenContextKey",no=(to.ParentContextKey="parent",to.ChildrenContextKey="childEvts",to);function to(n,t,r){var e,i=this;i.start=S(),i.name=n,i.isAsync=r,i[ce]=function(){return!1},k(t)&&I(i,"payload",{g:function(){return!e&&k(t)&&(e=t(),t=null),e}}),i[ae]=function(n){return n?(n===to[Yi]||n===to[Zi]?i:i.ctx||{})[n]:null},i[fe]=function(n,t){n&&(n===to[Yi]?(i[n]||(i[ce]=function(){return!0}),i[n]=t):n===to[Zi]?i[n]=t:(i.ctx=i.ctx||{})[n]=t)},i.complete=function(){var n=0,t=i[ae](to[Zi]);if(w(t))for(var r=0;r<t[O];r++){var e=t[r];e&&(n+=e.time)}i.time=S()-i.start,i.exTime=i.time-n,i.complete=function(){}}}var ro="CoreUtils.doPerf";function eo(n,t,r,e,i){if(n)if(n=n[ge]?n[ge]():n){var o,u=void 0,c=n[ae](ro);try{if(u=n.create(t(),e,i))return c&&u[fe]&&(u[fe](no[Yi],c),c[ae]&&c[fe]&&((o=c[ae](no[Zi]))||(o=[],c[fe](no[Zi],o)),o[D](u))),n[fe](ro,u),r(u)}catch(a){u&&u[fe]&&u[fe]("exception",a)}finally{u&&n.fire(u),n[fe](ro,c)}}r()}var io,oo=io={id:qe("_aiData-plugin."+Je),accept:Fe,get:function(n,t,r,e){var i=n[io.id];return i?i[ke(t)]:(e&&((i=function(n,t){var r=t[n.id];if(!r){r={};try{Fe(t)&&I(t,n.id,{e:!1,v:r})}catch(e){}}return r}(io,n))[ke(t)]=r),r)},kill:function(n,t){if(n&&n[t])try{delete n[t]}catch(r){}}};function uo(n){return oo.get(n,"state",{},!0)}var co="TelemetryPluginChain",ao="_hasRun",fo="_getTelCtx",lo=0;function so(n,o,r,t){var e=null,i=[],u=(o=o||di({},null,r[Jr]),null!==t&&(e=t?function(n,t,r){for(;n;){if(n[Fr]()===r)return n;n=n[re]()}return po([r],t.config||{},t)}(n,r,t):n),{_next:function(){var n,t=e;return e=t?t[re]():null,t||(n=i)&&0<n[O]&&(A(n,function(n){try{n.func.call(n.self,n.args)}catch(t){Ai(r[Jr],2,73,"Unexpected Exception during onComplete - "+x(t))}}),i=[]),t},ctx:{core:function(){return r},diagLog:function(){return ki(r,o.cfg)},getCfg:function(){return o.cfg},getExtCfg:function(n,t){var e=c(n,!0);return t&&d(t,function(n,t){var r;!C(e[n])||!(r=o.cfg[n])&&C(r)||(e[n]=r),Xe(o,e,n,t)}),o.setDf(e,t)},getConfig:function(n,t,r){void 0===r&&(r=!1);var e,n=c(n,!1),i=o.cfg;return!n||!n[t]&&C(n[t])?!i[t]&&C(i[t])||(e=i[t]):e=n[t],e||!C(e)?e:r},hasNext:function(){return!!e},getNext:function(){return e},setNext:function(n){e=n},iterate:function(n){for(;t=u._next();){var t=t[Fr]();t&&n(t)}},onComplete:function(n,t){for(var r=[],e=2;e<arguments.length;e++)r[e-2]=arguments[e];n&&i[D]({func:n,self:m(t)?u.ctx:t,args:r})}}});function c(n,t){var r,e=null,i=o.cfg;return i&&n&&(r=i[ve],i[ve]=r=!r&&t?{}:r,(r=o.ref(i,ve))&&(e=r[n],r[n]=e=!e&&t?{}:e,e=o.ref(r,n))),e}return u}function vo(n,t,r,e){var i=di(t),o=so(n,i,r,e),u=o.ctx;return u[qr]=function(n){var t=o._next();return t&&t[de](n,u),!t},u[Gr]=function(n,t){return vo((n=w(n=void 0===n?null:n)?po(n,i.cfg,r,t):n)||u[re](),i.cfg,r,t)},u}function po(n,t,r,e){var i,o=null,u=!e;return w(n)&&0<n[O]&&(i=null,A(n,function(n){(u=!u&&e===n||u)&&n&&k(n[de])&&(n=go(n,t,r),o=o||n,i&&i._setNext(n),i=n)})),e&&!o?po([e],t,r):o}function go(a,e,i){var f=null,o=k(a[de]),u=k(a[ee]),l=a?a[Kr]+"-"+a[pe]+"-"+lo++:"Unknown-0-"+lo++,c={getPlugin:function(){return a},getNext:function(){return f},processTelemetry:function(r,n){var t;s(n=n||(t=(t=a&&k(a[fo])?a[fo]():t)||vo(c,e,i)),function(n){if(!a||!o)return!1;var t=uo(a);return!t[Xr]&&!t[se]&&(u&&a[ee](f),a[de](r,n),!0)},"processTelemetry",function(){return{item:r}},!r.sync)||n[qr](r)},unload:function(e,i){s(e,function(){var n,t,r=!1;return a&&(n=uo(a),t=a[N]||n[N],!a||t&&t!==e.core()||n[Xr]||(n[N]=null,n[Xr]=!0,n[Br]=!1,a[Xr]&&!0===a[Xr](e,i)&&(r=!0))),r},"unload",function(){},i.isAsync)||e[qr](i)},update:function(e,i){s(e,function(){var n,t,r=!1;return a&&(n=uo(a),t=a[N]||n[N],!a||t&&t!==e.core()||n[Xr]||a[te]&&!0===a[te](e,i)&&(r=!0)),r},"update",function(){},!1)||e[qr](i)},_id:l,_setNext:function(n){f=n}};function s(r,e,i,n,t){var o=!1,u=a?a[Kr]:co,c=(c=r[ao])||(r[ao]={});return r.setNext(f),a&&eo(r[N](),function(){return u+":"+i},function(){c[l]=!0;try{var n=f?f._id:M;n&&(c[n]=!1),o=e(r)}catch(t){n=!f||c[f._id];n&&(o=!0),f&&n||Ai(r[Zr](),1,73,"Plugin ["+u+"] failed during "+i+" - "+x(t)+", run flags: "+x(c))}},n,t),o}return Kn(c)}function mo(){var t=[];return{add:function(n){n&&t[D](n)},run:function(r,e){A(t,function(n){try{n(r,e)}catch(t){Ai(r[Zr](),2,73,"Unexpected error calling unload handler - "+x(t))}}),t=[]}}}function ho(){var e=[];return{run:function(r){var n=e;e=[],A(n,function(n){try{(n.rm||n.remove).call(n)}catch(t){Ai(r,2,73,"Unloading:"+x(t))}})},add:function(n){var t;n&&(t=e,!m(n=n)&&t&&(w(n)?rt(t.push,t,n):Pt(n)||St(n)?Et(n,function(n){t.push(n)}):t.push(n)))}}}var yo="getPlugin",_o=((tn={})[ve]={isVal:Ce,v:{}},tn),rn=(To.__ieDyn=1,To);function To(){var i,o,l,s,v,u=this;function t(n){var t,n=n=void 0===n?null:n;return n||(t=o||vo(null,{},u[N]),n=l&&l[yo]?t[Gr](null,l[yo]):t[Gr](null,l)),n}function a(n,t,r){di(n,_o,ki(t)),!r&&t&&(r=t.getProcessTelContext()[re]());var e=l;l&&l[yo]&&(e=l[yo]()),u[N]=t,o=vo(r,n,t,e)}function d(){i=!1,u[N]=null,l=o=null,v=ho(),s=mo()}d(),Ur(To,u,function(f){f.initialize=function(n,t,r,e){a(n,t,e),i=!0},f[Xr]=function(n,t){var r,e,i,o,u=f[N];if(u&&(!n||u===n[N]()))return e=!1,i=n||function a(n,r,t){var e=di(r.config),i=so(n,e,r,t),o=i.ctx;return o[qr]=function(n){var t=i._next();return t&&t.unload(o,n),!t},o[Gr]=function(n,t){return a((n=w(n=void 0===n?null:n)?po(n,e.cfg,r,t):n)||o[re](),r,t)},o}(null,u,l&&l[yo]?l[yo]():l),o=t||{reason:0,isAsync:!1},f[ne]&&!0===f[ne](i,o,c)?r=!0:c(),r;function c(){e||(e=!0,s.run(i,t),v.run(i[Zr]()),!0===r&&i[qr](o),d())}},f[te]=function(n,t){var r,e,i,o=f[N];if(o&&(!n||o===n[N]()))return e=!1,i=n||function c(n,r,t){var e=di(r.config),i=so(n,e,r,t).ctx;return i[qr]=function(t){return i.iterate(function(n){k(n[te])&&n[te](i,t)})},i[Gr]=function(n,t){return c((n=w(n=void 0===n?null:n)?po(n,e.cfg,r,t):n)||i[re](),r,t)},i}(null,o,l&&l[yo]?l[yo]():l),f._doUpdate&&!0===f._doUpdate(i,t||{reason:0},u)?r=!0:u(),r;function u(){e||(e=!0,a(i.getCfg(),i.core(),i[re]()))}},xe(f,"_addUnloadCb",function(){return s},"add"),xe(f,"_addHook",function(){return v},"add"),I(f,"_unloadHooks",{g:function(){return v}})}),u[Zr]=function(n){return t(n)[Zr]()},u[Br]=function(){return i},u.setInitialized=function(n){i=n},u[ee]=function(n){l=n},u[qr]=function(n,t){t?t[qr](n):l&&k(l[de])&&l[de](n,null)},u._getTelCtx=t}var bo,Co=Vn({Verbose:0,Information:1,Warning:2,Error:3,Critical:4},1,0,Kn),ko=(r={history:{blkVal:!0,v:undefined}},jn?function Oo(n,r){if((w(n)||gn(n)||k(n))&&!Ln(n)){for(var t=0;t<r.length;t++)if(r[t]===n)return n;r.push(n),d(n,function(n,t){Oo(t,r)}),Kn(n)}return n}(r,[]):r);function wo(){var c,a,f,l,s,v,d=bo.call(this)||this;return d.priority=185,d.identifier="ReactPlugin",Ur(wo,d,function(i,n){var t,r,e;function o(){s=!1,v=l=f=a=c=null}function u(){return c||Ai(i.diagLog(),1,64,"Analytics plugin is not available, React plugin telemetry will not be sent: "),c}o(),i.initialize=function(n,r,t,e){bo.prototype.initialize.call(d,n,r,t,e);t=r.getPlugin("AppInsightsPropertiesPlugin");t&&(v=t.plugin),I(i,"context",{g:function(){return v?v.context:null}}),i._addHook(pi(n,function(n){var t=i._getTelCtx();a=t.getExtCfg(d.identifier,ko),c=null==(t=r.getPlugin("ApplicationInsightsAnalytics"))?void 0:t.plugin,k(f)&&(f(),f=null),a.history&&(t=a.history,f=t.listen(function(n){var t="location"in n?n.location:n;l=setTimeout(function(){l=null;var n={uri:t.pathname};i.trackPageView(n)},500)}),s||(t={uri:a.history.location.pathname},i.trackPageView(t),s=!0))}))},i.getCookieMgr=function(){return(t=(r=i.core)?r.getCookieMgr():t)||(r=(r||{})[Jr],(e=Bi[Mi]||zi[Mi])||(e=Bi[Mi]=Bi(n,r),zi[Mi]=e),t=e),t;var n,t,r,e},i.getAppInsights=u,i.processTelemetry=function(n,t){i.processNext(n,t)},i._doTeardown=function(n,t,r){k(f)&&f(),l&&clearTimeout(l),o()},r=u,e=["trackMetric","trackPageView","trackEvent","trackException","trackTrace"],(t=i)&&r&&gn(t)&&w(e)&&A(e,function(n){pn(n)&&xe(t,n,r,n,void 0)}),Nn(i,"_extensionConfig",Mn({e:void 0,c:void 0,g:function(){return a}}))}),d}ar(wo,bo=rn),wo.__ieDyn=1;var xo,Ao,e=wo,Io=(ar(Po,xo=z.Component),Po.prototype.componentDidMount=function(){var n=this;this._mountTimestamp=S(),this._firstActiveTimestamp=0,this._totalIdleTime=0,this._lastActiveTimestamp=0,this._idleStartTimestamp=0,this._idleCount=0,this._intervalId=setInterval(function(){0<n._lastActiveTimestamp&&0===n._idleStartTimestamp&&S()-n._lastActiveTimestamp>=n._idleTimeout&&(n._idleStartTimestamp=S(),n._idleCount++)},100)},Po.prototype.componentWillUnmount=function(){if(0===this._mountTimestamp)throw Error("withAITracking:componentWillUnmount: mountTimestamp is not initialized.");var n,t;this._intervalId&&clearInterval(this._intervalId),0!==this._firstActiveTimestamp&&(n=this.getEngagementTimeSeconds(),t={"Component Name":this._componentName},this._reactPlugin.trackMetric({average:n,name:"React Component Engaged Time (seconds)",sampleCount:1},t))},Po.prototype.getEngagementTimeSeconds=function(){return(S()-this._firstActiveTimestamp-this._totalIdleTime-this._idleCount*this._idleTimeout)/1e3},Po);function Po(n,t,r){var e=xo.call(this,n)||this;return e._mountTimestamp=0,e._firstActiveTimestamp=0,e._idleStartTimestamp=0,e._lastActiveTimestamp=0,e._totalIdleTime=0,e._idleCount=0,e._idleTimeout=5e3,e.trackActivity=function(n){var t;0===e._firstActiveTimestamp?(e._firstActiveTimestamp=S(),e._lastActiveTimestamp=e._firstActiveTimestamp):e._lastActiveTimestamp=S(),0<e._idleStartTimestamp&&(t=e._lastActiveTimestamp-e._idleStartTimestamp,e._totalIdleTime+=t,e._idleStartTimestamp=0)},e._reactPlugin=t,e._componentName=r,e}function So(){var n=null!==Ao&&Ao.apply(this,arguments)||this;return n.state={hasError:!1},n}ar(So,Ao=L["default"].Component),So.prototype.componentDidCatch=function(n,t){this.setState({hasError:!0}),this.props.appInsights.trackException({error:n,exception:n,severityLevel:Co.Error,properties:t})},So.prototype.render=function(){var n;return this.state.hasError?(n=this.props.onError,L["default"].createElement(n)):this.props.children};var Wn=So,Eo=c.createContext(undefined);n.AITrackedComponentBase=Io,n.AppInsightsContext=Eo,n.AppInsightsErrorBoundary=Wn,n.ReactPlugin=e,n.useAppInsightsContext=function(){return c.useContext(Eo)},n.useTrackEvent=function(n,t,r,e){void 0===e&&(e=!0);var r=c.useState(r),i=r[0],r=r[1],o=c.useRef(e),u=c.useRef(e);return c.useEffect(function(){o.current?o.current=!1:n.trackEvent({name:t},i)},[n,i,t]),c.useEffect(function(){return function(){o.current=u.current}},[]),r},n.useTrackMetric=function(e,i,o){var u=c.useRef({hookTimestamp:S(),firstActiveTimestamp:0,totalIdleTime:0,lastActiveTimestamp:0,idleStartTimestamp:0,idleCount:0,idleTimeout:5e3}),n=c.useRef(null);return n.current=function(){var n=u.current;0<n.lastActiveTimestamp&&0===n.idleStartTimestamp&&S()-n.lastActiveTimestamp>=n.idleTimeout&&(n.idleStartTimestamp=S(),n.idleCount++)},c.useEffect(function(){var r=setInterval(n.current,100);return function(){clearInterval(r);var n,t=u.current;if(0===t.hookTimestamp)throw Error("useAppInsights:unload hook: hookTimestamp is not initialized.");0!==t.firstActiveTimestamp&&(t=t,t={average:(S()-t.firstActiveTimestamp-t.totalIdleTime-t.idleCount*t.idleTimeout)/1e3,name:"React Component Engaged Time (seconds)",sampleCount:1},n=ur({"Component Name":i},o),e.trackMetric(t,n))}},[]),function(){var n,t=u.current;0===t.firstActiveTimestamp?(t.firstActiveTimestamp=S(),t.lastActiveTimestamp=t.firstActiveTimestamp):t.lastActiveTimestamp=S(),0<t.idleStartTimestamp&&(n=t.lastActiveTimestamp-t.idleStartTimestamp,t.totalIdleTime+=n,t.idleStartTimestamp=0)}},n.withAITracking=function(t,n,r,e){return r!==undefined&&null!==r&&"string"==typeof r||(r=n.prototype&&n.prototype.constructor&&n.prototype.constructor.name||"Unknown"),e!==undefined&&null!==e&&"string"==typeof e||(e=""),ar(i,o=Io),i.prototype.render=function(){return z.createElement("div",{onKeyDown:this.trackActivity,onMouseMove:this.trackActivity,onScroll:this.trackActivity,onMouseDown:this.trackActivity,onTouchStart:this.trackActivity,onTouchMove:this.trackActivity,className:e},z.createElement(n,ur({},this.props)))},i;function i(n){return o.call(this,n,t,r)||this}var o},Object.defineProperty(n,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((n="undefined"!=typeof globalThis?globalThis:n||self).Microsoft=n.Microsoft||{},n.Microsoft.ApplicationInsights=n.Microsoft.ApplicationInsights||{}),n.React);
|