@microsoft/applicationinsights-react-js 3.3.0-beta.2203-13 → 3.3.0-beta.2203-16
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 +2 -2
- package/browser/applicationinsights-react-js.js.map +1 -1
- package/browser/applicationinsights-react-js.min.js +2 -2
- 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 +2 -2
- package/dist/applicationinsights-react-js.js.map +1 -1
- package/dist/applicationinsights-react-js.min.js +2 -2
- 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 +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,t=function(e,u){"use strict";function j(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function U(o){if(o&&o.__esModule)return o;var e,a=(e=Object.create)?e(null):{};return o&&Object.keys(o).forEach(function(e){if("default"!==e){var t=(t=Object.getOwnPropertyDescriptor)?t(o,e):undefined,n=a,r=e,t=t.get?t:{enumerable:!0,get:function(){return o[e]}},i=Object.defineProperty;if(i)try{return void i(n,r,t)}catch(o){}t&&typeof t.value!==undefined&&(n[r]=t.value)}var t}),a["default"]=o,a}var R=U(u),D=j(u),a="function",p="object",i="undefined",r="prototype",B="hasOwnProperty",n=Object,V=n[r],t=n.assign,K=n.create,z=n.defineProperty,g=V[B],o=null;function W(e){return void 0===e&&(e=!0),o&&e||(typeof globalThis!==i&&globalThis&&(o=globalThis),typeof self!==i&&self&&(o=self),typeof window!==i&&window&&(o=window),typeof global!==i&&global&&(o=global)),o}function H(e){throw new TypeError(e)}function q(e){if(K)return K(e);if(null==e)return{};var t=typeof e;function n(){}return t!==p&&t!==a&&H("Object prototype may only be an Object:"+e),n[r]=e,new n}(W()||{}).Symbol,(W()||{}).Reflect;var G=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])V[B].call(t,i)&&(e[i]=t[i]);return e},$=function(e,t){return($=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[B](n)&&(e[n]=t[n])})(e,t)};function J(e,t){function n(){this.constructor=e}typeof t!==a&&null!==t&&H("Class extends value "+t+" is not a constructor or null"),$(e,t),e[r]=null===t?q(t):(n[r]=t[r],new n)}var X="constructor",v="prototype",Y="function",Z="_dynInstFuncs",Q="_isDynProxy",m="_dynClass",ee="_dynInstChk",h=ee,te="_dfOpts",ne="_unknown_",re="__proto__",ie="useBaseInst",oe="setInstFuncs",ae=Object,y=ae.getPrototypeOf,ue=0;function x(e,t){return e&&ae[v].hasOwnProperty.call(e,t)}function ce(e){return e&&(e===ae[v]||e===Array[v])}function le(e){return ce(e)||e===Function[v]}function T(e){if(e){if(y)return y(e);e=e[re]||e[v]||(e[X]?e[X][v]:null);if(e)return e}return null}function se(e,t){var n=[],r=ae.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&x(e,i)&&n.push(i);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function fe(e,t,n){return t!==X&&typeof e[t]===Y&&(n||x(e,t))}function de(e){throw new TypeError("DynamicProto: "+e)}function pe(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function ge(e,t){return x(e,v)?e.name||t||ne:((e||{})[X]||{}).name||t||ne}function ve(e,r,t,n){x(e,v)||de("theClass is an invalid class definition.");var i,o,a,u,c,l,s=e[v],f=(function(e){if(y)for(var t=[],n=T(r);n&&!le(n)&&!pe(t,n);){if(n===e)return 1;t.push(n),n=T(n)}}(s)||de("["+ge(e)+"] is not in class hierarchy of ["+ge(r)+"]"),null),e=(x(s,m)?f=s[m]:(f="_dynCls$"+ge(e,"_")+"$"+ue,ue++,s[m]=f),ve[te]),d=!!e[ie],p=(d&&n&&n[ie]!==undefined&&(d=!!n[ie]),o={},se(i=r,function(e){!o[e]&&fe(i,e,!1)&&(o[e]=i[e])}),o),d=(t(r,function(e,t,n,o){function r(e,t,n){var r,i=t[n];return i[Q]&&o&&!1!==(r=e[Z]||{})[h]&&(i=(r[t[m]]||{})[n]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(se(n,function(e){i[e]=r(t,n,e)}),T(e)),u=[];a&&!le(a)&&!pe(u,a);)se(a,function(e){!i[e]&&fe(a,e,!y)&&(i[e]=r(t,a,e))}),u.push(a),a=T(a);return i}(s,r,p,d)),!!y&&!!e[oe]);a=s,t=f,u=r,c=p,e=!1!==(d=d&&n?!!n[oe]:d),ce(a)||(s=u[Z]=u[Z]||{},l=s[t]=s[t]||{},!1!==s[h]&&(s[h]=!!e),se(u,function(e){var n,r,i;fe(u,e,!1)&&u[e]!==c[e]&&(l[e]=u[e],delete u[e],x(a,e)&&(!a[e]||a[e][Q])||(a[e]=(n=a,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&x(n,m)){var o=e[Z]||{};if((i=(o[n[m]]||{})[t])||de("Missing ["+t+"] "+Y),!i[ee]&&!1!==o[h]){for(var a=!x(e,t),u=T(e),c=[];a&&u&&!le(u)&&!pe(c,u);){var l=u[t];if(l){a=l===r;break}c.push(u),u=T(u)}try{a&&(e[t]=i),i[ee]=1}catch(s){o[h]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?T(n)[e]:t)!==Y&&de("["+e+"] is not a "+Y),t)).apply(this,arguments)})[Q]=1,i)))}))}ve[te]={setInstFuncs:!0,useBaseInst:!0};var C="",me="isInitialized",d="teardown",w="core",he="update",ye="disabled",xe="_doTeardown",Te="toISOString",Ce="endsWith",we="indexOf",_e="trim",t="toString",Se="constructor",Ae=z,be=n.freeze,Ie=n.keys,c=String[r],Ee=c[_e],ke=c[Ce],Ne=Date[r][Te],c=Array.isArray,Me=V[t],Pe=g[t],Fe=Pe.call(n),Oe=/-([a-z])/g,Le=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/,Ue=Object.getPrototypeOf;function _(e){return e===undefined||typeof e===i}function S(e){return null===e||_(e)}function Re(e){return!S(e)}function De(e){return!(!e||typeof e!==p)}function A(e){return!(!e||typeof e!==a)}function Be(e){var t=e;return e&&ze(e)?(t=(t=e.replace(Oe,function(e,t){return t.toUpperCase()})).replace(Le,"_")).replace(je,function(e,t){return"_"+t}):t}function Ve(e,t){if(e)for(var n in e)g.call(e,n)&&t.call(e,n,e[n])}function b(e,t){return!(!e||!t||!~e.indexOf(t))}var I=c||function(e){return!(!e||"[object Array]"!==Me.call(e))};function Ke(e){return!(!e||"[object Error]"!==Me.call(e))}function ze(e){return"string"==typeof e}function We(e){return"boolean"==typeof e}function He(e){return e&&"object"==typeof e&&(!(e=(Ue||function(e){if(e){if(Ue)return Ue(e);e=e.__proto__||e[r]||e[Se];if(e)return e}return null})(e))||typeof(e=e[Se]&&g.call(e,Se)?e[Se]:e)===a&&Pe.call(e)===Fe)}function E(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(o){}}function qe(e,t,n){if(e){if(e[we])return e[we](t,n);var r=e.length,n=n||0;try{for(var i=Math.max(0<=n?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i}catch(o){}}return-1}function k(e){return e&&(Ee&&e[_e]?e[_e]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ge=!{toString:null}.propertyIsEnumerable("toString"),$e=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Je(e,t,n,r){if(Ae)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Ae(e,t,i),!0}catch(o){}return!1}var Xe=be||function(e){return e};function N(){var e=Date;return e.now?e.now():(new e).getTime()}function M(e,t,n,r,i){var o=n;!e||(o=e[t])===n||i&&!i(o)||r&&!r(n)||(e[t]=o=n)}function Ye(e){return!!e}function Ze(e,t,n,r,i){var o,a,u;void 0===i&&(i=!0),e&&t&&n&&(i||_(e[t]))&&(e[t]=(o=r,u=a=null,A(i=n)?a=i:u=i,function(){var e=arguments;if(u=a?a():u)return u[o].apply(u,e)}))}function Qe(e){var n={};return Ve(e,function(e,t){if(n[e]=t,!_(n[t]))throw Error("["+t+"] exists for "+e);n[t]=e}),Xe(n)}var et="window",tt="navigator",nt="location",rt="console",it="JSON",ot="crypto",at="msCrypto",ut="msie",ct="trident/",lt=null,st=null;function P(e){var t=W();return t&&t[e]?t[e]:e===et&&ft()?window:null}function ft(){return typeof window===p&&window}function dt(){return typeof document===p&&document?document:P("document")}function pt(){return typeof navigator===p&&navigator?navigator:P(tt)}function gt(){return typeof JSON===p&&JSON||null!==P(it)}function vt(){return gt()?JSON||P(it):null}function mt(){var e=pt();return!e||e.userAgent===st&&null!==lt||(e=((st=e.userAgent)||C).toLowerCase(),lt=b(e,ut)||b(e,ct)),lt}function ht(e){var t=Object[r].toString.call(e),n=C;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":gt()&&(n=vt().stringify(e)),t+n}var yt=null;function xt(e){return e?'"'+e.replace(/\"/g,C)+'"':C}function Tt(e,t){var n,r=typeof console!==i?console:P(rt);r&&(n="log",A(r[n=r[e]?e:n])&&r[n](t))}wt.dataType="MessageData";var Ct=wt;function wt(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n=C,gt()&&(n=vt().stringify(r)),e=(t?" message:"+xt(t):C)+(r?" props:"+xt(n):C);this.message+=e}var _t=function zn(i){this.identifier="DiagnosticLogger",this.queue=[];var u=0,c={};ve(zn,this,function(o){function e(e,t){e=i[e];return S(e)?t:e}function a(e,t){var n,r=(n=(n=yt)||!0===i.disableDbgExt?n:yt||(r=P("Microsoft"),yt=r?r.ApplicationInsights:yt))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}S(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){t=new Ct(t,n,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw t;n=1===e?"errorToConsole":"warnToConsole";_(t.message)?a("throw"+(1===e?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!c[i]&&e<=r&&(o[n](t.message),c[i]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Tt("warn",e),a("warning",e)},o.errorToConsole=function(e){Tt("error",e),a("error",e)},o.resetInternalMessageCount=function(){u=0,c={}},o.logInternalMessage=function(e,t){var n,r;u>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,c[n]?r=!1:c[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),u++,a(1===e?"error":"warn",t)),u===o.maxInternalMessageLimit()&&(r=new Ct(23,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===e?o.errorToConsole(n):o.warnToConsole(n))))}})};function St(e,t,n,r,i,o){void 0===o&&(o=!1),(e||new _t).throwInternal(t,n,r,i,o)}l.ParentContextKey="parent",l.ChildrenContextKey="childEvts";var At=l;function l(e,i,t){var n,o=this,a=!1;o.start=N(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},A(i)&&(a=Je(o,"payload",function(){return!n&&A(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===l.ParentContextKey||e===l.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===l.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===l.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(l.ChildrenContextKey);if(I(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=N()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&A(i)&&(o.payload=i())}}var bt="CoreUtils.doPerf";function It(e,t,n,r,i){if(e)if(e=A(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(bt);try{if(a=e.create(t(),r,i))return u&&a.setCtx&&(a.setCtx(At.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(At.ChildrenContextKey))||(o=[],u.setCtx(At.ChildrenContextKey,o)),o.push(a))),e.setCtx(bt,a),n(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(bt,u)}}n()}var Et=4294967296,s=4294967295,kt=!1,Nt=123456789,Mt=987654321;function Pt(e){e<0&&(e>>>=0),Nt=123456789+e&s,Mt=987654321-e&s,kt=!0}function Ft(){try{var e=2147483647&N();Pt((Math.random()*Et^e)+e)}catch(t){}}function Ot(e){return 0<e?Math.floor(f()/s*(e+1))>>>0:0}function f(e){var t=0,n=P(ot)||P(at);return 0===(t=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&s:t)&&mt()&&(kt||Ft(),t=Lt()&s),0===t&&(t=Math.floor(Et*Math.random()|0)),e||(t>>>=0),t}function Lt(e){var t=((Mt=36969*(65535&Mt)+(Mt>>16)&s)<<16)+(65535&(Nt=18e3*(65535&Nt)+(Nt>>16)&s))>>>0&s|0;return e||(t>>>=0),t}function jt(e){void 0===e&&(e=22);for(var t=f()>>>0,n=0,r=C;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(f()<<2&4294967295|3&t)>>>0,n=0);return r}var Ut=z,Rt="2.8.0-beta.2203-13",Dt="."+jt(6),Bt=0;function Vt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Kt(e,t){return Be(e+Bt+++((t=void 0!==t&&t)?"."+Rt:"")+Dt)}function zt(e){var o={id:Kt("_aiData-"+(e||"")+"."+Rt),accept:Vt,get:function(e,t,n,r){var i=e[o.id];return i?i[Be(t)]:(r&&((i=function(e,t){var n=t[e.id];if(!n){n={};try{Vt(t)&&!function(e,t,n){if(Ut)try{return Ut(e,t,{value:n,enumerable:!1,configurable:!0}),1}catch(r){}}(t,e.id,n)&&(t[e.id]=n)}catch(r){}}return n}(o,e))[Be(t)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return o}var Wt=zt("plugin");function Ht(e){return Wt.get(e,"state",{},!0)}var qt="TelemetryPluginChain",Gt="_hasRun",$t="_getTelCtx",Jt=0;function Xt(e,a,n,t){var r=null,i=[],o=(null!==t&&(r=t?function(e,t,n,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Zt([r],t,n)}(e,a,n,t):e),{_next:function(){var e,t=r;return r=t?t.getNext():null,t||(e=i)&&0<e.length&&(E(e,function(e){try{e.func.call(e.self,e.args)}catch(t){St(n.logger,2,73,"Unexpected Exception during onComplete - "+ht(t))}}),i=[]),t},ctx:{core:function(){return n},diagLog:function(){return(n||{}).logger||new _t(a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,t,n){void 0===n&&(n=!1);var r,e=u(e,null);return e&&!S(e[t])?r=e[t]:a&&!S(a[t])&&(r=a[t]),S(r)?n:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;t=o._next();){var t=t.getPlugin();t&&e(t)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&i.push({func:e,self:_(t)?o.ctx:t,args:n})}}});function u(e,t,n){var r,i,o;return void 0===t&&(t={}),void 0===n&&(n=0),(r=a&&(i=a.extensionConfig)&&e?i[e]:r)?De(t)&&0!==n&&(o=function d(){var e=arguments,t=e[0]||{},n=e.length,r=!1,i=1;for(0<n&&We(t)&&(r=t,t=e[i]||{},i++),De(t)||(t={});i<n;i++){var o,a,u,c,l=e[i],s=I(l),f=De(l);for(o in l)(s&&o in l||f&&g.call(l,o))&&(a=l[o],u=void 0,r&&a&&((u=I(a))||He(a))&&(c=t[o],u?I(c)||(c=[]):He(c)||(c={}),a=d(r,c,a)),a!==undefined&&(t[o]=a))}return t}(!0,t,r),a&&2===n&&Ve(t,function(e){var t;S(o[e])&&!S(t=a[e])&&(o[e]=t)})):r=t,r}return o}function Yt(e,n,r,t){var i=Xt(e,n,r,t),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,t){return Yt((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||o.getNext(),n,r,t)},o}function Zt(e,t,n,r){var i,o=null,a=!r;return I(e)&&0<e.length&&(i=null,E(e,function(e){(a=!a&&r===e||a)&&e&&A(e.processTelemetry)&&(e=Qt(e,t,n),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Zt([r],t,n):o}function Qt(c,r,i){var l=null,o=A(c.processTelemetry),a=A(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+Jt++:"Unknown-0-"+Jt++,u={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(n,e){var t;f(e=e||(t=(t=c&&A(c[$t])?c[$t]():t)||Yt(u,r,i)),function(e){if(!c||!o)return!1;var t=Ht(c);return!t[d]&&!t[ye]&&(a&&c.setNextPlugin(l),c.processTelemetry(n,e),!0)},"processTelemetry",function(){return{item:n}},!n.sync)||e.processNext(n)},unload:function(r,i){f(r,function(){var e,t,n=!1;return c&&(e=Ht(c),t=c[w]||e.core,!c||t&&t!==r[w]()||e[d]||(e[w]=null,e[d]=!0,e[me]=!1,c[d]&&!0===c[d](r,i)&&(n=!0))),n},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var e,t,n=!1;return c&&(e=Ht(c),t=c[w]||e.core,!c||t&&t!==r[w]()||e[d]||c[he]&&!0===c[he](r,i)&&(n=!0)),n},"update",function(){},!1)||r.processNext(i)},_id:s,_setNext:function(e){l=e}};function f(n,r,i,e,t){var o=!1,a=c?c.identifier:qt,u=(u=n[Gt])||(n[Gt]={});return n.setNext(l),c&&It(n[w](),function(){return a+":"+i},function(){u[s]=!0;try{var e=l?l._id:C;e&&(u[e]=!1),o=r(n)}catch(t){e=!l||u[l._id];e&&(o=!0),l&&e||St(n.diagLog(),1,73,"Plugin ["+c.identifier+"] failed during "+i+" - "+ht(t)+", run flags: "+ht(u))}},e,t),o}return Xe(u)}var en="toGMTString",tn="toUTCString",nn="cookie",rn="expires",on="enabled",an="isCookieUseDisabled",un="disableCookiesUsage",F="_ckMgr",cn=null,ln=null,sn=null,fn=dt(),dn={},pn={};function gn(e,t){var n=mn[F]||pn[F];return n||(n=mn[F]=mn(e,t),pn[F]=n),n}function vn(e){return!e||e.isEnabled()}function mn(e,i){M(n=(e=e||pn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Re,S),M(n,"path",e.cookiePath||"/",null,S),S(n[on])&&(t=void 0,_(e[an])||(t=!e[an]),_(e[un])||(t=!e[un]),n[on]=t);var t,n,l=n,s=l.path||"/",f=l.domain,r=!1!==l[on],d={isEnabled:function(){var e=r&&hn(i),t=pn[F];return e&&t&&d!==t?vn(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var o,a,u,c=!1;return vn(d)&&(o={},-1!=(u=(a=k(t||C)).indexOf(";"))&&(a=k(t.substring(0,u)),o=yn(t.substring(1+u))),M(o,"domain",r||f,Ye,_),S(n)||(u=mt(),_(o[rn])&&0<(t=N()+1e3*n)&&((r=new Date).setTime(t),M(o,rn,xn(r,u?en:tn)||xn(r,u?en:tn)||C,Ye)),u||M(o,"max-age",C+n,null,_)),(t=typeof location===p&&location?location:P(nt))&&"https:"===t.protocol&&(M(o,"secure",null,null,_),(ln=null===ln?!(ze(r=(pt()||{}).userAgent)&&(b(r,"CPU iPhone OS 12")||b(r,"iPad; CPU OS 12")||b(r,"Macintosh; Intel Mac OS X 10_14")&&b(r,"Version/")&&b(r,"Safari")||b(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){var n=!1;if(!e||(n=e===t))return n;if(ke)return e[Ce](t);var r=e,i=t,n=!1,e=r?r.length:0;if(e&&40<=e&&!(n=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}n=!0}return n}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||b(r,"Chrome/5")||b(r,"Chrome/6")||b(r,"UnrealEngine")&&!b(r,"Chrome")||b(r,"UCBrowser/12")||b(r,"UCBrowser/11"))):ln)&&M(o,"SameSite","None",null,_)),M(o,"path",i||s,null,_),(l.setCookie||Cn)(e,Tn(a,o)),c=!0),c},get:function(e){var t=C;return vn(d)?(l.getCookie||function(e){var t,n=C;return fn&&(t=fn[nn]||C,sn!==t&&(dn=yn(t),sn=t),n=k(dn[e]||C)),n})(e):t},del:function(e,t){return!!vn(d)&&d.purge(e,t)},purge:function(e,t){var n,r=!1;return hn(i)&&((n={}).path=t||"/",n[rn]="Thu, 01 Jan 1970 00:00:01 GMT",t=n,mt()||(t["max-age"]="0"),(l.delCookie||Cn)(e,Tn(C,t)),r=!0),r}};return d[F]=d}function hn(e){if(null===cn){cn=!1;try{cn=(fn||{})[nn]!==undefined}catch(t){St(e,2,68,"Cannot access document.cookie - "+(Ke(e=t)?e.name:C),{exception:ht(t)})}}return cn}function yn(e){var n={};return e&&e.length&&E(k(e).split(";"),function(e){var t;(e=k(e||C))&&(-1==(t=e.indexOf("="))?n[e]=null:n[k(e.substring(0,t))]=k(e.substring(1+t)))}),n}function xn(e,t){return A(e[t])?e[t]():null}function Tn(e,t){var n=e||C;return Ve(t,function(e,t){n+="; "+e+(S(t)?C:"="+t)}),n}function Cn(e,t){fn&&(fn[nn]=e+"="+t)}function wn(){var t=[];return{add:function(e){e&&t.push(e)},run:function(n,r){E(t,function(e){try{e(n,r)}catch(t){St(n.diagLog(),2,73,"Unexpected error calling unload handler - "+ht(t))}}),t=[]}}}var O="getPlugin",t=function Wn(){var i,o,l,s,f,a=this;function t(e){var t,e=e=void 0===e?null:e;return e||(t=o||Yt(null,{},a.core),e=l&&l[O]?t.createNew(null,l[O]):t.createNew(null,l)),e}function u(e,t,n){e&&M(e,"extensionConfig",[],null,S),!n&&t&&(n=t.getProcessTelContext().getNext());var r=l;l&&l[O]&&(r=l[O]()),a.core=t,o=Yt(n,e,t,r)}function d(){i=!1,a.core=null,l=o=null,f=[],s=wn()}d(),ve(Wn,a,function(c){c.initialize=function(e,t,n,r){u(e,t,r),i=!0},c.teardown=function(e,t){var n,r,i,o;if(c.core&&(!e||c.core===e.core()))return r=!1,i=e||function u(e,n,r,t){var i=Xt(e,n,r,t),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,t){return u((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||o.getNext(),n,r,t)},o}(null,{},c.core,l&&l[O]?l[O]():l),o=t||{reason:0,isAsync:!1},c[xe]&&!0===c[xe](i,o,a)?n=!0:a(),n;function a(){r||(r=!0,s.run(i,t),E(f,function(e){e.rm()}),f=[],!0===n&&i.processNext(o),d())}},c.update=function(e,t){var n,r,i;if(c.core&&(!e||c.core===e.core()))return r=!1,i=e||function a(e,n,r,t){var i=Xt(e,n,r,t).ctx;return i.processNext=function(t){return i.iterate(function(e){A(e[he])&&e[he](i,t)})},i.createNew=function(e,t){return a((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||i.getNext(),n,r,t)},i}(null,{},c.core,l&&l[O]?l[O]():l),c._doUpdate&&!0===c._doUpdate(i,t||{reason:0},o)?n=!0:o(),n;function o(){r||(r=!0,u(i.getCfg(),i.core(),i.getNext()))}},c._addHook=function(e){e&&(I(e)?f=f.concat(e):f.push(e))},Ze(c,"_addUnloadCb",function(){return s},"add")}),a.diagLog=function(e){return t(e).diagLog()},a[me]=function(){return i},a.setInitialized=function(e){i=e},a.setNextPlugin=function(e){l=e},a.processNext=function(e,t){t?t.processNext(e):l&&A(l.processTelemetry)&&l.processTelemetry(e,null)},a._getTelCtx=t},_n="attachEvent",Sn="addEventListener",An=(Kt("aiEvtPageHide"),Kt("aiEvtPageShow"),/\.[\.]+/g),bn=/[\.]+$/,In=1,En=zt("events"),kn=/^([^.]*)(?:\.(.+)|)/;function Nn(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Mn(e,t,n,r,i){void 0===i&&(i=!1);var o,a,u,c,l,s,f,d,p=!1;if(e)try{l=t,(s=r)&&(f="",I(s)?(f="",E(s,function(e){(e=Nn(e))&&("."!==e[0]&&(e="."+e),f+=e)})):f=Nn(s),f&&(l=(l||"")+(f="."!==f[0]?"."+f:f)));var g,v={type:(d=kn.exec(l||"")||[])[1],ns:(d[2]||"").replace(An,".").replace(bn,"").split(".").sort().join(".")},m=v,h=n,y=i,x=!1;(c=e)&&m&&m.type&&h&&(c[Sn]?(c[Sn](m.type,h,y),x=!0):c[_n]&&(c[_n]("on"+m.type,h),x=!0)),(p=x)&&En.accept(e)&&(g={guid:In++,evtName:v,handler:n,capture:i},o=v.type,((u=En.get(e,"events",{},a=void 0===a||a))[o]||(u[o]=[])).push(g))}catch(T){}return p}var Pn,Fn,On=null,L={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:_,isNullOrUndefined:S,hasOwnProperty:function(e,t){return!(!e||!g.call(e,t))},isFunction:A,isObject:De,isDate:function(e){return!(!e||"[object Date]"!==Me.call(e))},isArray:I,isError:Ke,isString:ze,isNumber:function(e){return"number"==typeof e},isBoolean:We,toISOString:function(e){if(e){if(Ne)return e[Te]();var t;return e&&e.getUTCFullYear?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}},arrForEach:E,arrIndexOf:qe,arrMap:function(e,t,n){if(e){if(e.map)return e.map(t,n);var r=e.length,i=n||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e))}catch(u){}}return o},arrReduce:function(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r},strTrim:k,objCreate:q,objKeys:function(e){var t=typeof e;if(t===a||t===p&&null!==e||H("objKeys called on non-object"),!Ge&&Ie)return Ie(e);var n,r=[];for(n in e)e&&g.call(e,n)&&r.push(n);if(Ge)for(var i=$e.length,o=0;o<i;o++)e&&g.call(e,$e[o])&&r.push($e[o]);return r},objDefineAccessors:Je,addEventHandler:function(e,t,n){var r=!1,i=ft()?window:P(et),i=(i&&(r=Mn(i,e,t,n),r=Mn(i.body,e,t,n)||r),dt());return i&&Mn(i,e,t,n)||r},dateNow:N,isIE:mt,disableCookies:function(){var e=gn(void 0,void 0),t=L._canUseCookies;null===On&&(On=[],Pn=t,Je(L,"_canUseCookies",function(){return Pn},function(t){Pn=t,E(On,function(e){e.setEnabled(t)})})),-1===qe(On,e)&&On.push(e),We(t)&&e.setEnabled(t),We(Pn)&&e.setEnabled(Pn),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ln,function(e){var t=0|Ot(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=P("performance");return e&&e.now?e.now():N()},newId:jt,randomValue:Ot,random32:f,mwcRandomSeed:function(e){e?Pt(e):Ft()},mwcRandom32:Lt,generateW3CId:function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=C,r=0;r<4;r++)n+=t[15&(e=f())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&f())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}},Ln=/[xy]/g,jn=Qe({CRITICAL:1,WARNING:2}),Un=Qe({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105});function Rn(){var c,l,s,f,d=Fn.call(this)||this;return d.priority=185,d.identifier="ReactPlugin",ve(Rn,d,function(i,e){var t,n,r,o;function a(){f=s=l=c=null}function u(){return c||i.diagLog().throwInternal(jn.CRITICAL,Un.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: "),c}a(),i.initialize=function(e,t,n,r){Fn.prototype.initialize.call(d,e,t,n,r),l=e.extensionConfig&&e.extensionConfig[i.identifier]?e.extensionConfig[i.identifier]:{history:null},E(n,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(c=e)}),l.history&&(t=l.history,s=t.listen(function(e){var t="location"in e?e.location:e;f=setTimeout(function(){f=null;var e={uri:t.pathname};i.trackPageView(e)},500)}),r={uri:l.history.location.pathname},i.trackPageView(r))},i.getCookieMgr=function(){return(t=(e=i.core)?e.getCookieMgr():t)||gn(void 0,(e||{}).logger);var e,t},i.getAppInsights=u,i.processTelemetry=function(e,t){i.processNext(e,t)},i._doTeardown=function(e,t,n){A(s)&&s(),f&&clearTimeout(f),a()},n=u,r=["trackMetric","trackPageView","trackEvent","trackException","trackTrace"],void 0===o&&(o=!0),(t=i)&&n&&De(t)&&I(r)&&E(r,function(e){ze(e)&&Ze(t,e,n,e,o)}),Je(i,"_extensionConfig",function(){return l})}),d}J(Rn,Fn=t);var Dn,Bn,c=Rn;function Vn(){var e=null!==Dn&&Dn.apply(this,arguments)||this;return e.state={hasError:!1},e}Bn=3,J(Vn,Dn=D["default"].Component),Vn.prototype.componentDidCatch=function(e,t){this.setState({hasError:!0}),this.props.appInsights.trackException({error:e,exception:e,severityLevel:Bn,properties:t})},Vn.prototype.render=function(){var e;return this.state.hasError?(e=this.props.onError,D["default"].createElement(e)):this.props.children};var be=Vn,Kn=u.createContext(undefined),z=(e.AppInsightsContext=Kn,e.AppInsightsErrorBoundary=be,e.ReactPlugin=c,e.useAppInsightsContext=function(){return u.useContext(Kn)},e.useTrackEvent=function(e,t,n,r){void 0===r&&(r=!0);var n=u.useState(n),i=n[0],n=n[1],o=u.useRef(r);return u.useEffect(function(){o.current?o.current=!1:e.trackEvent({name:t},i)},[e,i,t]),n},e.useTrackMetric=function(r,i,o){var a=u.useRef({hookTimestamp:N(),firstActiveTimestamp:0,totalIdleTime:0,lastActiveTimestamp:0,idleStartTimestamp:0,idleCount:0,idleTimeout:5e3}),e=u.useRef();return e.current=function(){var e=a.current;0<e.lastActiveTimestamp&&0===e.idleStartTimestamp&&N()-e.lastActiveTimestamp>=e.idleTimeout&&(e.idleStartTimestamp=N(),e.idleCount++)},u.useEffect(function(){var n=setInterval(e.current,100);return function(){clearInterval(n);var e,t=a.current;if(0===t.hookTimestamp)throw Error("useAppInsights:unload hook: hookTimestamp is not initialized.");0!==t.firstActiveTimestamp&&(t=t,t={average:(N()-t.firstActiveTimestamp-t.totalIdleTime-t.idleCount*t.idleTimeout)/1e3,name:"React Component Engaged Time (seconds)",sampleCount:1},e=G({"Component Name":i},o),r.trackMetric(t,e))}},[]),function(){var e,t=a.current;0===t.firstActiveTimestamp?(t.firstActiveTimestamp=N(),t.lastActiveTimestamp=t.firstActiveTimestamp):t.lastActiveTimestamp=N(),0<t.idleStartTimestamp&&(e=t.lastActiveTimestamp-t.idleStartTimestamp,t.totalIdleTime+=e,t.idleStartTimestamp=0)}},e.withAITracking=function(n,e,r,t){return r!==undefined&&null!==r&&"string"==typeof r||(r=e.prototype&&e.prototype.constructor&&e.prototype.constructor.name||"Unknown"),t!==undefined&&null!==t&&"string"==typeof t||(t=""),J(i,o=R.Component),i.prototype.componentDidMount=function(){var e=this;this._mountTimestamp=L.dateNow(),this._firstActiveTimestamp=0,this._totalIdleTime=0,this._lastActiveTimestamp=0,this._idleStartTimestamp=0,this._idleCount=0,this._intervalId=setInterval(function(){0<e._lastActiveTimestamp&&0===e._idleStartTimestamp&&L.dateNow()-e._lastActiveTimestamp>=e._idleTimeout&&(e._idleStartTimestamp=L.dateNow(),e._idleCount++)},100)},i.prototype.componentWillUnmount=function(){if(0===this._mountTimestamp)throw Error("withAITracking:componentWillUnmount: mountTimestamp is not initialized.");var e,t;this._intervalId&&clearInterval(this._intervalId),0!==this._firstActiveTimestamp&&(e=this.getEngagementTimeSeconds(),t={"Component Name":r},n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},t))},i.prototype.render=function(){return R.createElement("div",{onKeyDown:this.trackActivity,onMouseMove:this.trackActivity,onScroll:this.trackActivity,onMouseDown:this.trackActivity,onTouchStart:this.trackActivity,onTouchMove:this.trackActivity,className:t},R.createElement(e,G({},this.props)))},i.prototype.getEngagementTimeSeconds=function(){return(L.dateNow()-this._firstActiveTimestamp-this._totalIdleTime-this._idleCount*this._idleTimeout)/1e3},i;function i(){var n=null!==o&&o.apply(this,arguments)||this;return n._mountTimestamp=0,n._firstActiveTimestamp=0,n._idleStartTimestamp=0,n._lastActiveTimestamp=0,n._totalIdleTime=0,n._idleCount=0,n._idleTimeout=5e3,n.trackActivity=function(e){var t;0===n._firstActiveTimestamp?(n._firstActiveTimestamp=L.dateNow(),n._lastActiveTimestamp=n._firstActiveTimestamp):n._lastActiveTimestamp=L.dateNow(),0<n._idleStartTimestamp&&(t=n._lastActiveTimestamp-n._idleStartTimestamp,n._totalIdleTime+=t,n._idleStartTimestamp=0)},n}var o},e),t="__esModule",be={value:!0},c=Object.defineProperty;if(c)try{return void c(z,t,be)}catch(Hn){}typeof be.value!==undefined&&(z[t]=be.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.React);
|
|
5
|
+
var e=this,t=function(e,u){"use strict";function j(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function U(o){if(o&&o.__esModule)return o;var e,a=(e=Object.create)?e(null):{};return o&&Object.keys(o).forEach(function(e){if("default"!==e){var t=(t=Object.getOwnPropertyDescriptor)?t(o,e):undefined,n=a,r=e,t=t.get?t:{enumerable:!0,get:function(){return o[e]}},i=Object.defineProperty;if(i)try{return void i(n,r,t)}catch(o){}t&&typeof t.value!==undefined&&(n[r]=t.value)}var t}),a["default"]=o,a}var R=U(u),D=j(u),a="function",p="object",i="undefined",r="prototype",B="hasOwnProperty",n=Object,V=n[r],t=n.assign,K=n.create,z=n.defineProperty,g=V[B],o=null;function W(e){return void 0===e&&(e=!0),o&&e||(typeof globalThis!==i&&globalThis&&(o=globalThis),typeof self!==i&&self&&(o=self),typeof window!==i&&window&&(o=window),typeof global!==i&&global&&(o=global)),o}function H(e){throw new TypeError(e)}function q(e){if(K)return K(e);if(null==e)return{};var t=typeof e;function n(){}return t!==p&&t!==a&&H("Object prototype may only be an Object:"+e),n[r]=e,new n}(W()||{}).Symbol,(W()||{}).Reflect;var G=t||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])V[B].call(t,i)&&(e[i]=t[i]);return e},$=function(e,t){return($=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[B](n)&&(e[n]=t[n])})(e,t)};function J(e,t){function n(){this.constructor=e}typeof t!==a&&null!==t&&H("Class extends value "+t+" is not a constructor or null"),$(e,t),e[r]=null===t?q(t):(n[r]=t[r],new n)}var X="constructor",v="prototype",Y="function",Z="_dynInstFuncs",Q="_isDynProxy",m="_dynClass",ee="_dynInstChk",h=ee,te="_dfOpts",ne="_unknown_",re="__proto__",ie="useBaseInst",oe="setInstFuncs",ae=Object,y=ae.getPrototypeOf,ue=0;function x(e,t){return e&&ae[v].hasOwnProperty.call(e,t)}function ce(e){return e&&(e===ae[v]||e===Array[v])}function le(e){return ce(e)||e===Function[v]}function T(e){if(e){if(y)return y(e);e=e[re]||e[v]||(e[X]?e[X][v]:null);if(e)return e}return null}function se(e,t){var n=[],r=ae.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&x(e,i)&&n.push(i);if(n&&0<n.length)for(var o=0;o<n.length;o++)t(n[o])}function fe(e,t,n){return t!==X&&typeof e[t]===Y&&(n||x(e,t))}function de(e){throw new TypeError("DynamicProto: "+e)}function pe(e,t){for(var n=e.length-1;0<=n;n--)if(e[n]===t)return 1}function ge(e,t){return x(e,v)?e.name||t||ne:((e||{})[X]||{}).name||t||ne}function ve(e,r,t,n){x(e,v)||de("theClass is an invalid class definition.");var i,o,a,u,c,l,s=e[v],f=(function(e){if(y)for(var t=[],n=T(r);n&&!le(n)&&!pe(t,n);){if(n===e)return 1;t.push(n),n=T(n)}}(s)||de("["+ge(e)+"] is not in class hierarchy of ["+ge(r)+"]"),null),e=(x(s,m)?f=s[m]:(f="_dynCls$"+ge(e,"_")+"$"+ue,ue++,s[m]=f),ve[te]),d=!!e[ie],p=(d&&n&&n[ie]!==undefined&&(d=!!n[ie]),o={},se(i=r,function(e){!o[e]&&fe(i,e,!1)&&(o[e]=i[e])}),o),d=(t(r,function(e,t,n,o){function r(e,t,n){var r,i=t[n];return i[Q]&&o&&!1!==(r=e[Z]||{})[h]&&(i=(r[t[m]]||{})[n]||i),function(){return i.apply(e,arguments)}}for(var i={},a=(se(n,function(e){i[e]=r(t,n,e)}),T(e)),u=[];a&&!le(a)&&!pe(u,a);)se(a,function(e){!i[e]&&fe(a,e,!y)&&(i[e]=r(t,a,e))}),u.push(a),a=T(a);return i}(s,r,p,d)),!!y&&!!e[oe]);a=s,t=f,u=r,c=p,e=!1!==(d=d&&n?!!n[oe]:d),ce(a)||(s=u[Z]=u[Z]||{},l=s[t]=s[t]||{},!1!==s[h]&&(s[h]=!!e),se(u,function(e){var n,r,i;fe(u,e,!1)&&u[e]!==c[e]&&(l[e]=u[e],delete u[e],x(a,e)&&(!a[e]||a[e][Q])||(a[e]=(n=a,r=e,(i=function(){var e,t;return(function(e,t,n,r){var i=null;if(e&&x(n,m)){var o=e[Z]||{};if((i=(o[n[m]]||{})[t])||de("Missing ["+t+"] "+Y),!i[ee]&&!1!==o[h]){for(var a=!x(e,t),u=T(e),c=[];a&&u&&!le(u)&&!pe(c,u);){var l=u[t];if(l){a=l===r;break}c.push(u),u=T(u)}try{a&&(e[t]=i),i[ee]=1}catch(s){o[h]=!1}}}return i}(this,r,n,i)||(typeof(t=(t=n[e=r])===i?T(n)[e]:t)!==Y&&de("["+e+"] is not a "+Y),t)).apply(this,arguments)})[Q]=1,i)))}))}ve[te]={setInstFuncs:!0,useBaseInst:!0};var C="",me="isInitialized",d="teardown",w="core",he="update",ye="disabled",xe="_doTeardown",Te="toISOString",Ce="endsWith",we="indexOf",_e="trim",t="toString",Se="constructor",Ae=z,be=n.freeze,Ie=n.keys,c=String[r],Ee=c[_e],ke=c[Ce],Ne=Date[r][Te],c=Array.isArray,Me=V[t],Pe=g[t],Fe=Pe.call(n),Oe=/-([a-z])/g,Le=/([^\w\d_$])/g,je=/^(\d+[\w\d_$])/,Ue=Object.getPrototypeOf;function _(e){return e===undefined||typeof e===i}function S(e){return null===e||_(e)}function Re(e){return!S(e)}function De(e){return!(!e||typeof e!==p)}function A(e){return!(!e||typeof e!==a)}function Be(e){var t=e;return e&&ze(e)?(t=(t=e.replace(Oe,function(e,t){return t.toUpperCase()})).replace(Le,"_")).replace(je,function(e,t){return"_"+t}):t}function Ve(e,t){if(e)for(var n in e)g.call(e,n)&&t.call(e,n,e[n])}function b(e,t){return!(!e||!t||!~e.indexOf(t))}var I=c||function(e){return!(!e||"[object Array]"!==Me.call(e))};function Ke(e){return!(!e||"[object Error]"!==Me.call(e))}function ze(e){return"string"==typeof e}function We(e){return"boolean"==typeof e}function He(e){return e&&"object"==typeof e&&(!(e=(Ue||function(e){if(e){if(Ue)return Ue(e);e=e.__proto__||e[r]||e[Se];if(e)return e}return null})(e))||typeof(e=e[Se]&&g.call(e,Se)?e[Se]:e)===a&&Pe.call(e)===Fe)}function E(e,t,n){var r=e.length;try{for(var i=0;i<r&&!(i in e&&-1===t.call(n||e,e[i],i,e));i++);}catch(o){}}function qe(e,t,n){if(e){if(e[we])return e[we](t,n);var r=e.length,n=n||0;try{for(var i=Math.max(0<=n?n:r-Math.abs(n),0);i<r;i++)if(i in e&&e[i]===t)return i}catch(o){}}return-1}function k(e){return e&&(Ee&&e[_e]?e[_e]():e.replace?e.replace(/^\s+|\s+$/g,""):e)}var Ge=!{toString:null}.propertyIsEnumerable("toString"),$e=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Je(e,t,n,r){if(Ae)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Ae(e,t,i),!0}catch(o){}return!1}var Xe=be||function(e){return e};function N(){var e=Date;return e.now?e.now():(new e).getTime()}function M(e,t,n,r,i){var o=n;!e||(o=e[t])===n||i&&!i(o)||r&&!r(n)||(e[t]=o=n)}function Ye(e){return!!e}function Ze(e,t,n,r,i){var o,a,u;void 0===i&&(i=!0),e&&t&&n&&(i||_(e[t]))&&(e[t]=(o=r,u=a=null,A(i=n)?a=i:u=i,function(){var e=arguments;if(u=a?a():u)return u[o].apply(u,e)}))}function Qe(e){var n={};return Ve(e,function(e,t){if(n[e]=t,!_(n[t]))throw Error("["+t+"] exists for "+e);n[t]=e}),Xe(n)}var et="window",tt="navigator",nt="location",rt="console",it="JSON",ot="crypto",at="msCrypto",ut="msie",ct="trident/",lt=null,st=null;function P(e){var t=W();return t&&t[e]?t[e]:e===et&&ft()?window:null}function ft(){return typeof window===p&&window}function dt(){return typeof document===p&&document?document:P("document")}function pt(){return typeof navigator===p&&navigator?navigator:P(tt)}function gt(){return typeof JSON===p&&JSON||null!==P(it)}function vt(){return gt()?JSON||P(it):null}function mt(){var e=pt();return!e||e.userAgent===st&&null!==lt||(e=((st=e.userAgent)||C).toLowerCase(),lt=b(e,ut)||b(e,ct)),lt}function ht(e){var t=Object[r].toString.call(e),n=C;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":gt()&&(n=vt().stringify(e)),t+n}var yt=null;function xt(e){return e?'"'+e.replace(/\"/g,C)+'"':C}function Tt(e,t){var n,r=typeof console!==i?console:P(rt);r&&(n="log",A(r[n=r[e]?e:n])&&r[n](t))}wt.dataType="MessageData";var Ct=wt;function wt(e,t,n,r){void 0===n&&(n=!1),this.messageId=e,this.message=(n?"AI: ":"AI (Internal): ")+e;n=C,gt()&&(n=vt().stringify(r)),e=(t?" message:"+xt(t):C)+(r?" props:"+xt(n):C);this.message+=e}var _t=function zn(i){this.identifier="DiagnosticLogger",this.queue=[];var u=0,c={};ve(zn,this,function(o){function e(e,t){e=i[e];return S(e)?t:e}function a(e,t){var n,r=(n=(n=yt)||!0===i.disableDbgExt?n:yt||(r=P("Microsoft"),yt=r?r.ApplicationInsights:yt))?n.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,t)}S(i)&&(i={}),o.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},o.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},o.throwInternal=function(e,t,n,r,i){t=new Ct(t,n,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw t;n=1===e?"errorToConsole":"warnToConsole";_(t.message)?a("throw"+(1===e?"Critical":"Warning"),t):(r=o.consoleLoggingLevel(),i?(i=+t.messageId,!c[i]&&e<=r&&(o[n](t.message),c[i]=!0)):e<=r&&o[n](t.message),o.logInternalMessage(e,t))},o.warnToConsole=function(e){Tt("warn",e),a("warning",e)},o.errorToConsole=function(e){Tt("error",e),a("error",e)},o.resetInternalMessageCount=function(){u=0,c={}},o.logInternalMessage=function(e,t){var n,r;u>=o.maxInternalMessageLimit()||(r=!0,n="AITR_"+t.messageId,c[n]?r=!1:c[n]=!0,r&&(e<=o.telemetryLoggingLevel()&&(o.queue.push(t),u++,a(1===e?"error":"warn",t)),u===o.maxInternalMessageLimit()&&(r=new Ct(23,n="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===e?o.errorToConsole(n):o.warnToConsole(n))))}})};function St(e,t,n,r,i,o){void 0===o&&(o=!1),(e||new _t).throwInternal(t,n,r,i,o)}l.ParentContextKey="parent",l.ChildrenContextKey="childEvts";var At=l;function l(e,i,t){var n,o=this,a=!1;o.start=N(),o.name=e,o.isAsync=t,o.isChildEvt=function(){return!1},A(i)&&(a=Je(o,"payload",function(){return!n&&A(i)&&(n=i(),i=null),n})),o.getCtx=function(e){return e?(e===l.ParentContextKey||e===l.ChildrenContextKey?o:o.ctx||{})[e]:null},o.setCtx=function(e,t){e&&(e===l.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=t):e===l.ChildrenContextKey?o[e]=t:(o.ctx=o.ctx||{})[e]=t)},o.complete=function(){var e=0,t=o.getCtx(l.ChildrenContextKey);if(I(t))for(var n=0;n<t.length;n++){var r=t[n];r&&(e+=r.time)}o.time=N()-o.start,o.exTime=o.time-e,o.complete=function(){},!a&&A(i)&&(o.payload=i())}}var bt="CoreUtils.doPerf";function It(e,t,n,r,i){if(e)if(e=A(e.getPerfMgr)?e.getPerfMgr():e){var o,a=void 0,u=e.getCtx(bt);try{if(a=e.create(t(),r,i))return u&&a.setCtx&&(a.setCtx(At.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(At.ChildrenContextKey))||(o=[],u.setCtx(At.ChildrenContextKey,o)),o.push(a))),e.setCtx(bt,a),n(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(bt,u)}}n()}var Et=4294967296,s=4294967295,kt=!1,Nt=123456789,Mt=987654321;function Pt(e){e<0&&(e>>>=0),Nt=123456789+e&s,Mt=987654321-e&s,kt=!0}function Ft(){try{var e=2147483647&N();Pt((Math.random()*Et^e)+e)}catch(t){}}function Ot(e){return 0<e?Math.floor(f()/s*(e+1))>>>0:0}function f(e){var t=0,n=P(ot)||P(at);return 0===(t=n&&n.getRandomValues?n.getRandomValues(new Uint32Array(1))[0]&s:t)&&mt()&&(kt||Ft(),t=Lt()&s),0===t&&(t=Math.floor(Et*Math.random()|0)),e||(t>>>=0),t}function Lt(e){var t=((Mt=36969*(65535&Mt)+(Mt>>16)&s)<<16)+(65535&(Nt=18e3*(65535&Nt)+(Nt>>16)&s))>>>0&s|0;return e||(t>>>=0),t}function jt(e){void 0===e&&(e=22);for(var t=f()>>>0,n=0,r=C;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&t]||"",t>>>=6,5==++n&&(t=(f()<<2&4294967295|3&t)>>>0,n=0);return r}var Ut=z,Rt="2.8.0-beta.2203-16",Dt="."+jt(6),Bt=0;function Vt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Kt(e,t){return Be(e+Bt+++((t=void 0!==t&&t)?"."+Rt:"")+Dt)}function zt(e){var o={id:Kt("_aiData-"+(e||"")+"."+Rt),accept:Vt,get:function(e,t,n,r){var i=e[o.id];return i?i[Be(t)]:(r&&((i=function(e,t){var n=t[e.id];if(!n){n={};try{Vt(t)&&!function(e,t,n){if(Ut)try{return Ut(e,t,{value:n,enumerable:!1,configurable:!0}),1}catch(r){}}(t,e.id,n)&&(t[e.id]=n)}catch(r){}}return n}(o,e))[Be(t)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return o}var Wt=zt("plugin");function Ht(e){return Wt.get(e,"state",{},!0)}var qt="TelemetryPluginChain",Gt="_hasRun",$t="_getTelCtx",Jt=0;function Xt(e,a,n,t){var r=null,i=[],o=(null!==t&&(r=t?function(e,t,n,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return Zt([r],t,n)}(e,a,n,t):e),{_next:function(){var e,t=r;return r=t?t.getNext():null,t||(e=i)&&0<e.length&&(E(e,function(e){try{e.func.call(e.self,e.args)}catch(t){St(n.logger,2,73,"Unexpected Exception during onComplete - "+ht(t))}}),i=[]),t},ctx:{core:function(){return n},diagLog:function(){return(n||{}).logger||new _t(a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(e,t,n){void 0===n&&(n=!1);var r,e=u(e,null);return e&&!S(e[t])?r=e[t]:a&&!S(a[t])&&(r=a[t]),S(r)?n:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;t=o._next();){var t=t.getPlugin();t&&e(t)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&i.push({func:e,self:_(t)?o.ctx:t,args:n})}}});function u(e,t,n){var r,i,o;return void 0===t&&(t={}),void 0===n&&(n=0),(r=a&&(i=a.extensionConfig)&&e?i[e]:r)?De(t)&&0!==n&&(o=function d(){var e=arguments,t=e[0]||{},n=e.length,r=!1,i=1;for(0<n&&We(t)&&(r=t,t=e[i]||{},i++),De(t)||(t={});i<n;i++){var o,a,u,c,l=e[i],s=I(l),f=De(l);for(o in l)(s&&o in l||f&&g.call(l,o))&&(a=l[o],u=void 0,r&&a&&((u=I(a))||He(a))&&(c=t[o],u?I(c)||(c=[]):He(c)||(c={}),a=d(r,c,a)),a!==undefined&&(t[o]=a))}return t}(!0,t,r),a&&2===n&&Ve(t,function(e){var t;S(o[e])&&!S(t=a[e])&&(o[e]=t)})):r=t,r}return o}function Yt(e,n,r,t){var i=Xt(e,n,r,t),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,t){return Yt((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||o.getNext(),n,r,t)},o}function Zt(e,t,n,r){var i,o=null,a=!r;return I(e)&&0<e.length&&(i=null,E(e,function(e){(a=!a&&r===e||a)&&e&&A(e.processTelemetry)&&(e=Qt(e,t,n),o=o||e,i&&i._setNext(e),i=e)})),r&&!o?Zt([r],t,n):o}function Qt(c,r,i){var l=null,o=A(c.processTelemetry),a=A(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+Jt++:"Unknown-0-"+Jt++,u={getPlugin:function(){return c},getNext:function(){return l},processTelemetry:function(n,e){var t;f(e=e||(t=(t=c&&A(c[$t])?c[$t]():t)||Yt(u,r,i)),function(e){if(!c||!o)return!1;var t=Ht(c);return!t[d]&&!t[ye]&&(a&&c.setNextPlugin(l),c.processTelemetry(n,e),!0)},"processTelemetry",function(){return{item:n}},!n.sync)||e.processNext(n)},unload:function(r,i){f(r,function(){var e,t,n=!1;return c&&(e=Ht(c),t=c[w]||e.core,!c||t&&t!==r[w]()||e[d]||(e[w]=null,e[d]=!0,e[me]=!1,c[d]&&!0===c[d](r,i)&&(n=!0))),n},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var e,t,n=!1;return c&&(e=Ht(c),t=c[w]||e.core,!c||t&&t!==r[w]()||e[d]||c[he]&&!0===c[he](r,i)&&(n=!0)),n},"update",function(){},!1)||r.processNext(i)},_id:s,_setNext:function(e){l=e}};function f(n,r,i,e,t){var o=!1,a=c?c.identifier:qt,u=(u=n[Gt])||(n[Gt]={});return n.setNext(l),c&&It(n[w](),function(){return a+":"+i},function(){u[s]=!0;try{var e=l?l._id:C;e&&(u[e]=!1),o=r(n)}catch(t){e=!l||u[l._id];e&&(o=!0),l&&e||St(n.diagLog(),1,73,"Plugin ["+c.identifier+"] failed during "+i+" - "+ht(t)+", run flags: "+ht(u))}},e,t),o}return Xe(u)}var en="toGMTString",tn="toUTCString",nn="cookie",rn="expires",on="enabled",an="isCookieUseDisabled",un="disableCookiesUsage",F="_ckMgr",cn=null,ln=null,sn=null,fn=dt(),dn={},pn={};function gn(e,t){var n=mn[F]||pn[F];return n||(n=mn[F]=mn(e,t),pn[F]=n),n}function vn(e){return!e||e.isEnabled()}function mn(e,i){M(n=(e=e||pn).cookieCfg=e.cookieCfg||{},"domain",e.cookieDomain,Re,S),M(n,"path",e.cookiePath||"/",null,S),S(n[on])&&(t=void 0,_(e[an])||(t=!e[an]),_(e[un])||(t=!e[un]),n[on]=t);var t,n,l=n,s=l.path||"/",f=l.domain,r=!1!==l[on],d={isEnabled:function(){var e=r&&hn(i),t=pn[F];return e&&t&&d!==t?vn(t):e},setEnabled:function(e){r=!1!==e},set:function(e,t,n,r,i){var o,a,u,c=!1;return vn(d)&&(o={},-1!=(u=(a=k(t||C)).indexOf(";"))&&(a=k(t.substring(0,u)),o=yn(t.substring(1+u))),M(o,"domain",r||f,Ye,_),S(n)||(u=mt(),_(o[rn])&&0<(t=N()+1e3*n)&&((r=new Date).setTime(t),M(o,rn,xn(r,u?en:tn)||xn(r,u?en:tn)||C,Ye)),u||M(o,"max-age",C+n,null,_)),(t=typeof location===p&&location?location:P(nt))&&"https:"===t.protocol&&(M(o,"secure",null,null,_),(ln=null===ln?!(ze(r=(pt()||{}).userAgent)&&(b(r,"CPU iPhone OS 12")||b(r,"iPad; CPU OS 12")||b(r,"Macintosh; Intel Mac OS X 10_14")&&b(r,"Version/")&&b(r,"Safari")||b(r,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){var n=!1;if(!e||(n=e===t))return n;if(ke)return e[Ce](t);var r=e,i=t,n=!1,e=r?r.length:0;if(e&&40<=e&&!(n=r===i)){for(var o=e-1,a=39;0<=a;a--){if(r[o]!=i[a])return;o--}n=!0}return n}(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||b(r,"Chrome/5")||b(r,"Chrome/6")||b(r,"UnrealEngine")&&!b(r,"Chrome")||b(r,"UCBrowser/12")||b(r,"UCBrowser/11"))):ln)&&M(o,"SameSite","None",null,_)),M(o,"path",i||s,null,_),(l.setCookie||Cn)(e,Tn(a,o)),c=!0),c},get:function(e){var t=C;return vn(d)?(l.getCookie||function(e){var t,n=C;return fn&&(t=fn[nn]||C,sn!==t&&(dn=yn(t),sn=t),n=k(dn[e]||C)),n})(e):t},del:function(e,t){return!!vn(d)&&d.purge(e,t)},purge:function(e,t){var n,r=!1;return hn(i)&&((n={}).path=t||"/",n[rn]="Thu, 01 Jan 1970 00:00:01 GMT",t=n,mt()||(t["max-age"]="0"),(l.delCookie||Cn)(e,Tn(C,t)),r=!0),r}};return d[F]=d}function hn(e){if(null===cn){cn=!1;try{cn=(fn||{})[nn]!==undefined}catch(t){St(e,2,68,"Cannot access document.cookie - "+(Ke(e=t)?e.name:C),{exception:ht(t)})}}return cn}function yn(e){var n={};return e&&e.length&&E(k(e).split(";"),function(e){var t;(e=k(e||C))&&(-1==(t=e.indexOf("="))?n[e]=null:n[k(e.substring(0,t))]=k(e.substring(1+t)))}),n}function xn(e,t){return A(e[t])?e[t]():null}function Tn(e,t){var n=e||C;return Ve(t,function(e,t){n+="; "+e+(S(t)?C:"="+t)}),n}function Cn(e,t){fn&&(fn[nn]=e+"="+t)}function wn(){var t=[];return{add:function(e){e&&t.push(e)},run:function(n,r){E(t,function(e){try{e(n,r)}catch(t){St(n.diagLog(),2,73,"Unexpected error calling unload handler - "+ht(t))}}),t=[]}}}var O="getPlugin",t=function Wn(){var i,o,l,s,f,a=this;function t(e){var t,e=e=void 0===e?null:e;return e||(t=o||Yt(null,{},a.core),e=l&&l[O]?t.createNew(null,l[O]):t.createNew(null,l)),e}function u(e,t,n){e&&M(e,"extensionConfig",[],null,S),!n&&t&&(n=t.getProcessTelContext().getNext());var r=l;l&&l[O]&&(r=l[O]()),a.core=t,o=Yt(n,e,t,r)}function d(){i=!1,a.core=null,l=o=null,f=[],s=wn()}d(),ve(Wn,a,function(c){c.initialize=function(e,t,n,r){u(e,t,r),i=!0},c.teardown=function(e,t){var n,r,i,o;if(c.core&&(!e||c.core===e.core()))return r=!1,i=e||function u(e,n,r,t){var i=Xt(e,n,r,t),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,t){return u((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||o.getNext(),n,r,t)},o}(null,{},c.core,l&&l[O]?l[O]():l),o=t||{reason:0,isAsync:!1},c[xe]&&!0===c[xe](i,o,a)?n=!0:a(),n;function a(){r||(r=!0,s.run(i,t),E(f,function(e){e.rm()}),f=[],!0===n&&i.processNext(o),d())}},c.update=function(e,t){var n,r,i;if(c.core&&(!e||c.core===e.core()))return r=!1,i=e||function a(e,n,r,t){var i=Xt(e,n,r,t).ctx;return i.processNext=function(t){return i.iterate(function(e){A(e[he])&&e[he](i,t)})},i.createNew=function(e,t){return a((e=I(e=void 0===e?null:e)?Zt(e,n,r,t):e)||i.getNext(),n,r,t)},i}(null,{},c.core,l&&l[O]?l[O]():l),c._doUpdate&&!0===c._doUpdate(i,t||{reason:0},o)?n=!0:o(),n;function o(){r||(r=!0,u(i.getCfg(),i.core(),i.getNext()))}},c._addHook=function(e){e&&(I(e)?f=f.concat(e):f.push(e))},Ze(c,"_addUnloadCb",function(){return s},"add")}),a.diagLog=function(e){return t(e).diagLog()},a[me]=function(){return i},a.setInitialized=function(e){i=e},a.setNextPlugin=function(e){l=e},a.processNext=function(e,t){t?t.processNext(e):l&&A(l.processTelemetry)&&l.processTelemetry(e,null)},a._getTelCtx=t},_n="attachEvent",Sn="addEventListener",An=(Kt("aiEvtPageHide"),Kt("aiEvtPageShow"),/\.[\.]+/g),bn=/[\.]+$/,In=1,En=zt("events"),kn=/^([^.]*)(?:\.(.+)|)/;function Nn(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Mn(e,t,n,r,i){void 0===i&&(i=!1);var o,a,u,c,l,s,f,d,p=!1;if(e)try{l=t,(s=r)&&(f="",I(s)?(f="",E(s,function(e){(e=Nn(e))&&("."!==e[0]&&(e="."+e),f+=e)})):f=Nn(s),f&&(l=(l||"")+(f="."!==f[0]?"."+f:f)));var g,v={type:(d=kn.exec(l||"")||[])[1],ns:(d[2]||"").replace(An,".").replace(bn,"").split(".").sort().join(".")},m=v,h=n,y=i,x=!1;(c=e)&&m&&m.type&&h&&(c[Sn]?(c[Sn](m.type,h,y),x=!0):c[_n]&&(c[_n]("on"+m.type,h),x=!0)),(p=x)&&En.accept(e)&&(g={guid:In++,evtName:v,handler:n,capture:i},o=v.type,((u=En.get(e,"events",{},a=void 0===a||a))[o]||(u[o]=[])).push(g))}catch(T){}return p}var Pn,Fn,On=null,L={_canUseCookies:undefined,isTypeof:function(e,t){return typeof e===t},isUndefined:_,isNullOrUndefined:S,hasOwnProperty:function(e,t){return!(!e||!g.call(e,t))},isFunction:A,isObject:De,isDate:function(e){return!(!e||"[object Date]"!==Me.call(e))},isArray:I,isError:Ke,isString:ze,isNumber:function(e){return"number"==typeof e},isBoolean:We,toISOString:function(e){if(e){if(Ne)return e[Te]();var t;return e&&e.getUTCFullYear?(t=function(e){e=""+e;return 1===e.length?"0"+e:e},e.getUTCFullYear()+"-"+t(1+e.getUTCMonth())+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"):void 0}},arrForEach:E,arrIndexOf:qe,arrMap:function(e,t,n){if(e){if(e.map)return e.map(t,n);var r=e.length,i=n||e,o=Array(r);try{for(var a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e))}catch(u){}}return o},arrReduce:function(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(3<=arguments.length)r=n;else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r},strTrim:k,objCreate:q,objKeys:function(e){var t=typeof e;if(t===a||t===p&&null!==e||H("objKeys called on non-object"),!Ge&&Ie)return Ie(e);var n,r=[];for(n in e)e&&g.call(e,n)&&r.push(n);if(Ge)for(var i=$e.length,o=0;o<i;o++)e&&g.call(e,$e[o])&&r.push($e[o]);return r},objDefineAccessors:Je,addEventHandler:function(e,t,n){var r=!1,i=ft()?window:P(et),i=(i&&(r=Mn(i,e,t,n),r=Mn(i.body,e,t,n)||r),dt());return i&&Mn(i,e,t,n)||r},dateNow:N,isIE:mt,disableCookies:function(){var e=gn(void 0,void 0),t=L._canUseCookies;null===On&&(On=[],Pn=t,Je(L,"_canUseCookies",function(){return Pn},function(t){Pn=t,E(On,function(e){e.setEnabled(t)})})),-1===qe(On,e)&&On.push(e),We(t)&&e.setEnabled(t),We(Pn)&&e.setEnabled(Pn),e.setEnabled(!1)},newGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ln,function(e){var t=0|Ot(15);return("x"===e?t:3&t|8).toString(16)})},perfNow:function(){var e=P("performance");return e&&e.now?e.now():N()},newId:jt,randomValue:Ot,random32:f,mwcRandomSeed:function(e){e?Pt(e):Ft()},mwcRandom32:Lt,generateW3CId:function(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=C,r=0;r<4;r++)n+=t[15&(e=f())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&f())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}},Ln=/[xy]/g,jn=Qe({CRITICAL:1,WARNING:2}),Un=Qe({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105});function Rn(){var c,l,s,f,d=Fn.call(this)||this;return d.priority=185,d.identifier="ReactPlugin",ve(Rn,d,function(i,e){var t,n,r,o;function a(){f=s=l=c=null}function u(){return c||i.diagLog().throwInternal(jn.CRITICAL,Un.TelemetryInitializerFailed,"Analytics plugin is not available, React plugin telemetry will not be sent: "),c}a(),i.initialize=function(e,t,n,r){Fn.prototype.initialize.call(d,e,t,n,r),l=e.extensionConfig&&e.extensionConfig[i.identifier]?e.extensionConfig[i.identifier]:{history:null},E(n,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(c=e)}),l.history&&(t=l.history,s=t.listen(function(e){var t="location"in e?e.location:e;f=setTimeout(function(){f=null;var e={uri:t.pathname};i.trackPageView(e)},500)}),r={uri:l.history.location.pathname},i.trackPageView(r))},i.getCookieMgr=function(){return(t=(e=i.core)?e.getCookieMgr():t)||gn(void 0,(e||{}).logger);var e,t},i.getAppInsights=u,i.processTelemetry=function(e,t){i.processNext(e,t)},i._doTeardown=function(e,t,n){A(s)&&s(),f&&clearTimeout(f),a()},n=u,r=["trackMetric","trackPageView","trackEvent","trackException","trackTrace"],void 0===o&&(o=!0),(t=i)&&n&&De(t)&&I(r)&&E(r,function(e){ze(e)&&Ze(t,e,n,e,o)}),Je(i,"_extensionConfig",function(){return l})}),d}J(Rn,Fn=t);var Dn,Bn,c=Rn;function Vn(){var e=null!==Dn&&Dn.apply(this,arguments)||this;return e.state={hasError:!1},e}Bn=3,J(Vn,Dn=D["default"].Component),Vn.prototype.componentDidCatch=function(e,t){this.setState({hasError:!0}),this.props.appInsights.trackException({error:e,exception:e,severityLevel:Bn,properties:t})},Vn.prototype.render=function(){var e;return this.state.hasError?(e=this.props.onError,D["default"].createElement(e)):this.props.children};var be=Vn,Kn=u.createContext(undefined),z=(e.AppInsightsContext=Kn,e.AppInsightsErrorBoundary=be,e.ReactPlugin=c,e.useAppInsightsContext=function(){return u.useContext(Kn)},e.useTrackEvent=function(e,t,n,r){void 0===r&&(r=!0);var n=u.useState(n),i=n[0],n=n[1],o=u.useRef(r);return u.useEffect(function(){o.current?o.current=!1:e.trackEvent({name:t},i)},[e,i,t]),n},e.useTrackMetric=function(r,i,o){var a=u.useRef({hookTimestamp:N(),firstActiveTimestamp:0,totalIdleTime:0,lastActiveTimestamp:0,idleStartTimestamp:0,idleCount:0,idleTimeout:5e3}),e=u.useRef();return e.current=function(){var e=a.current;0<e.lastActiveTimestamp&&0===e.idleStartTimestamp&&N()-e.lastActiveTimestamp>=e.idleTimeout&&(e.idleStartTimestamp=N(),e.idleCount++)},u.useEffect(function(){var n=setInterval(e.current,100);return function(){clearInterval(n);var e,t=a.current;if(0===t.hookTimestamp)throw Error("useAppInsights:unload hook: hookTimestamp is not initialized.");0!==t.firstActiveTimestamp&&(t=t,t={average:(N()-t.firstActiveTimestamp-t.totalIdleTime-t.idleCount*t.idleTimeout)/1e3,name:"React Component Engaged Time (seconds)",sampleCount:1},e=G({"Component Name":i},o),r.trackMetric(t,e))}},[]),function(){var e,t=a.current;0===t.firstActiveTimestamp?(t.firstActiveTimestamp=N(),t.lastActiveTimestamp=t.firstActiveTimestamp):t.lastActiveTimestamp=N(),0<t.idleStartTimestamp&&(e=t.lastActiveTimestamp-t.idleStartTimestamp,t.totalIdleTime+=e,t.idleStartTimestamp=0)}},e.withAITracking=function(n,e,r,t){return r!==undefined&&null!==r&&"string"==typeof r||(r=e.prototype&&e.prototype.constructor&&e.prototype.constructor.name||"Unknown"),t!==undefined&&null!==t&&"string"==typeof t||(t=""),J(i,o=R.Component),i.prototype.componentDidMount=function(){var e=this;this._mountTimestamp=L.dateNow(),this._firstActiveTimestamp=0,this._totalIdleTime=0,this._lastActiveTimestamp=0,this._idleStartTimestamp=0,this._idleCount=0,this._intervalId=setInterval(function(){0<e._lastActiveTimestamp&&0===e._idleStartTimestamp&&L.dateNow()-e._lastActiveTimestamp>=e._idleTimeout&&(e._idleStartTimestamp=L.dateNow(),e._idleCount++)},100)},i.prototype.componentWillUnmount=function(){if(0===this._mountTimestamp)throw Error("withAITracking:componentWillUnmount: mountTimestamp is not initialized.");var e,t;this._intervalId&&clearInterval(this._intervalId),0!==this._firstActiveTimestamp&&(e=this.getEngagementTimeSeconds(),t={"Component Name":r},n.trackMetric({average:e,name:"React Component Engaged Time (seconds)",sampleCount:1},t))},i.prototype.render=function(){return R.createElement("div",{onKeyDown:this.trackActivity,onMouseMove:this.trackActivity,onScroll:this.trackActivity,onMouseDown:this.trackActivity,onTouchStart:this.trackActivity,onTouchMove:this.trackActivity,className:t},R.createElement(e,G({},this.props)))},i.prototype.getEngagementTimeSeconds=function(){return(L.dateNow()-this._firstActiveTimestamp-this._totalIdleTime-this._idleCount*this._idleTimeout)/1e3},i;function i(){var n=null!==o&&o.apply(this,arguments)||this;return n._mountTimestamp=0,n._firstActiveTimestamp=0,n._idleStartTimestamp=0,n._lastActiveTimestamp=0,n._totalIdleTime=0,n._idleCount=0,n._idleTimeout=5e3,n.trackActivity=function(e){var t;0===n._firstActiveTimestamp?(n._firstActiveTimestamp=L.dateNow(),n._lastActiveTimestamp=n._firstActiveTimestamp):n._lastActiveTimestamp=L.dateNow(),0<n._idleStartTimestamp&&(t=n._lastActiveTimestamp-n._idleStartTimestamp,n._totalIdleTime+=t,n._idleStartTimestamp=0)},n}var o},e),t="__esModule",be={value:!0},c=Object.defineProperty;if(c)try{return void c(z,t,be)}catch(Hn){}typeof be.value!==undefined&&(z[t]=be.value)};"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.React);
|
|
6
6
|
//# sourceMappingURL=applicationinsights-react-js.min.js.map
|