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