@microsoft/applicationinsights-react-native 2.5.0-beta.2203-02 → 2.5.0-beta.2203-03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-react-native.js +61 -3
- package/browser/applicationinsights-react-native.js.map +1 -1
- package/browser/applicationinsights-react-native.min.js +2 -2
- package/browser/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.d.ts +1 -1
- package/dist/applicationinsights-react-native.js +61 -3
- package/dist/applicationinsights-react-native.js.map +1 -1
- package/dist/applicationinsights-react-native.min.js +2 -2
- package/dist/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.rollup.d.ts +1 -1
- package/dist-esm/Interfaces/INativeDevice.js +1 -1
- package/dist-esm/Interfaces/IReactNativePluginConfig.js +1 -1
- package/dist-esm/Interfaces/index.js +1 -1
- package/dist-esm/ReactNativePlugin.js +1 -1
- package/dist-esm/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Native Plugin, 2.5.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - React Native Plugin, 2.5.0-beta.2203-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var e=this,n=function(R,e){"use strict";function k(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}var j=k(e),B="function",a="object",i="undefined",r="prototype",V="hasOwnProperty",t=Object,e=t[r],z=(t.create,t.defineProperty),v=e[V],n=null;function l(e){return void 0===e&&(e=!0),n&&e||(typeof globalThis!==i&&globalThis&&(n=globalThis),typeof self!==i&&self&&(n=self),typeof window!==i&&window&&(n=window),typeof global!==i&&global&&(n=global)),n}function U(e){throw new TypeError(e)}(l()||{}).Symbol,(l()||{}).Reflect;var K=function(e,n){return(K=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[V](t)&&(e[t]=n[t])})(e,n)},o="constructor",p="prototype",y="function",x="_dynInstFuncs",H="_isDynProxy",C="_dynClass",q="_dynInstChk",m=q,W="_dfOpts",G="_unknown_",J="__proto__",$="useBaseInst",Q="setInstFuncs",c=Object,h=c.getPrototypeOf,Z=0;function T(e,n){return e&&c[p].hasOwnProperty.call(e,n)}function X(e){return e&&(e===c[p]||e===Array[p])}function Y(e){return X(e)||e===Function[p]}function w(e){if(e){if(h)return h(e);e=e[J]||e[p]||(e[o]?e[o][p]:null);if(e)return e}return null}function I(e,n){var t=[],r=c.getOwnPropertyNames;if(r)t=r(e);else for(var o in e)"string"==typeof o&&T(e,o)&&t.push(o);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function ee(e,n,t){return n!==o&&typeof e[n]===y&&(t||T(e,n))}function b(e){throw new TypeError("DynamicProto: "+e)}function ne(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function te(e,n){return T(e,p)?e.name||n||G:((e||{})[o]||{}).name||n||G}function S(e,r,n,t){T(e,p)||b("theClass is an invalid class definition.");var o,i,a,l,c,u,s=e[p],f=(function(e){if(h)for(var n=[],t=w(r);t&&!Y(t)&&!ne(n,t);){if(t===e)return 1;n.push(t),t=w(t)}}(s)||b("["+te(e)+"] is not in class hierarchy of ["+te(r)+"]"),null),e=(T(s,C)?f=s[C]:(f="_dynCls$"+te(e,"_")+"$"+Z,Z++,s[C]=f),S[W]),d=!!e[$],g=(d&&t&&t[$]!==undefined&&(d=!!t[$]),i={},I(o=r,function(e){!i[e]&&ee(o,e,!1)&&(i[e]=o[e])}),i),d=(n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[H]&&i&&!1!==(r=e[x]||{})[m]&&(o=(r[n[C]]||{})[t]||o),function(){return o.apply(e,arguments)}}for(var o={},a=(I(t,function(e){o[e]=r(n,t,e)}),w(e)),l=[];a&&!Y(a)&&!ne(l,a);)I(a,function(e){!o[e]&&ee(a,e,!h)&&(o[e]=r(n,a,e))}),l.push(a),a=w(a);return o}(s,r,g,d)),!!h&&!!e[Q]);a=s,n=f,l=r,c=g,e=!1!==(d=d&&t?!!t[Q]:d),X(a)||(s=l[x]=l[x]||{},u=s[n]=s[n]||{},!1!==s[m]&&(s[m]=!!e),I(l,function(e){var t,r,o;ee(l,e,!1)&&l[e]!==c[e]&&(u[e]=l[e],delete l[e],T(a,e)&&(!a[e]||a[e][H])||(a[e]=(t=a,r=e,(o=function(){var e,n;return(function(e,n,t,r){var o=null;if(e&&T(t,C)){var i=e[x]||{};if((o=(i[t[C]]||{})[n])||b("Missing ["+n+"] "+y),!o[q]&&!1!==i[m]){for(var a=!T(e,n),l=w(e),c=[];a&&l&&!Y(l)&&!ne(c,l);){var u=l[n];if(u){a=u===r;break}c.push(l),l=w(l)}try{a&&(e[n]=o),o[q]=1}catch(s){i[m]=!1}}}return o}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?w(t)[e]:n)!==y&&b("["+e+"] is not a "+y),n)).apply(this,arguments)})[H]=1,o)))}))}S[W]={setInstFuncs:!0,useBaseInst:!0};var _="",re="isInitialized",d="teardown",g="core",oe="disabled",ie="_doTeardown",ae="toString",u="constructor",le=z,s=t.freeze,f=Array.isArray,ce=e[ae],ue=v[ae],se=ue.call(t),fe=/-([a-z])/g,de=/([^\w\d_$])/g,ge=/^(\d+[\w\d_$])/,ve=Object.getPrototypeOf;function E(e){return e===undefined||typeof e===i}function F(e){return null===e||E(e)}function N(e){return!(!e||typeof e!==a)}function A(e){return!(!e||typeof e!==B)}function pe(e){var n=e;return e&&"string"==typeof e?(n=(n=e.replace(fe,function(e,n){return n.toUpperCase()})).replace(de,"_")).replace(ge,function(e,n){return"_"+n}):n}function ye(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function xe(e,n){return!(!e||!n||!~e.indexOf(n))}var P=f||function(e){return!(!e||"[object Array]"!==ce.call(e))};function Ce(e){return e&&"object"==typeof e&&(!(e=(ve||function(e){if(e){if(ve)return ve(e);e=e.__proto__||e[r]||e[u];if(e)return e}return null})(e))||typeof(e=e[u]&&v.call(e,u)?e[u]:e)===B&&ue.call(e)===se)}function me(e,n,t){var r=e.length;try{for(var o=0;o<r&&!(o in e&&-1===n.call(t||e,e[o],o,e));o++);}catch(i){}}var he=s||function(e){return e};function Te(){var e=Date;return e.now?e.now():(new e).getTime()}function we(e){var t={};return ye(e,function(e,n){if(t[e]=n,!E(t[n]))throw Error("Value: ["+n+"] already exists for "+e);t[n]=e}),he(t)}var Ie="window",be="JSON",Se=null,_e=null;function L(e){var n=l();return n&&n[e]?n[e]:e===Ie&&typeof window===a&&window?window:null}function Ee(){return typeof JSON===a&&JSON||null!==L(be)}function Fe(){return Ee()?JSON||L(be):null}function Ne(e){var n=Object[r].toString.call(e),t=_;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Ee()&&(t=Fe().stringify(e)),n+t}var Ae=null;function Pe(e){return e?'"'+e.replace(/\"/g,_)+'"':_}function Le(e,n){var t,r=typeof console!==i?console:L("console");r&&(t="log",A(r[t=r[e]?e:t])&&r[t](n))}De.dataType="MessageData";var Me=De;function De(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=_,Ee()&&(t=Fe().stringify(r)),e=(n?" message:"+Pe(n):_)+(r?" props:"+Pe(t):_);this.message+=e}var Oe=function vn(o){this.identifier="DiagnosticLogger",this.queue=[];var l=0,c={};S(vn,this,function(i){function e(e,n){e=o[e];return F(e)?n:e}function a(e,n){var t,r=(t=(t=Ae)||!0===o.disableDbgExt?t:Ae||(r=L("Microsoft"),Ae=r?r.ApplicationInsights:Ae))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,n)}F(o)&&(o={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,r,o){n=new Me(n,t,o=void 0!==o&&o,r);if(i.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";E(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(r=i.consoleLoggingLevel(),o?(o=+n.messageId,!c[o]&&e<=r&&(i[t](n.message),c[o]=!0)):e<=r&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){Le("warn",e),a("warning",e)},i.errorToConsole=function(e){Le("error",e),a("error",e)},i.resetInternalMessageCount=function(){l=0,c={}},i.logInternalMessage=function(e,n){var t,r;l>=i.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,c[t]?r=!1:c[t]=!0,r&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),l++,a(1===e?"error":"warn",n)),l===i.maxInternalMessageLimit()&&(r=new Me(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(r),1===e?i.errorToConsole(t):i.warnToConsole(t))))}})},Re=(M.ParentContextKey="parent",M.ChildrenContextKey="childEvts",M);function M(e,o,n){var r,i=this,a=!1;i.start=Te(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},A(o)&&(a=function(e){if(le)try{var n={enumerable:!0,configurable:!0,get:function(){return!r&&A(o)&&(r=o(),o=null),r}};return le(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===M.ParentContextKey||e===M.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===M.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===M.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(M.ChildrenContextKey);if(P(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}i.time=Te()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&A(o)&&(i.payload=o())}}var ke="CoreUtils.doPerf";function je(e,n,t,r,o){if(e)if(e=A(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,l=e.getCtx(ke);try{if(a=e.create(n(),r,o))return l&&a.setCtx&&(a.setCtx(Re.ParentContextKey,l),l.getCtx&&l.setCtx&&((i=l.getCtx(Re.ChildrenContextKey))||(i=[],l.setCtx(Re.ChildrenContextKey,i)),i.push(a))),e.setCtx(ke,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(ke,l)}}t()}var Be=4294967296,D=4294967295,Ve=!1,ze=123456789,Ue=987654321;function Ke(e){var n,t=0,r=L("crypto")||L("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&D:t)&&(!(r=typeof navigator===a&&navigator?navigator:L("navigator"))||r.userAgent===_e&&null!==Se||(r=((_e=r.userAgent)||_).toLowerCase(),Se=xe(r,"msie")||xe(r,"trident/")),Se)){if(!Ve)try{var o=2147483647&Te();(n=(Math.random()*Be^o)+o)<0&&(n>>>=0),ze=123456789+n&D,Ue=987654321-n&D,Ve=!0}catch(i){}r=((Ue=36969*(65535&Ue)+(Ue>>16)&D)<<16)+(65535&(ze=18e3*(65535&ze)+(ze>>16)&D))>>>0&D|0,t=(r>>>=0)&D}return 0===t&&(t=Math.floor(Be*Math.random()|0)),e||(t>>>=0),t}var He=z,e="."+function(e){void 0===e&&(e=22);for(var n=Ke()>>>0,t=0,r=_;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Ke()<<2&4294967295|3&n)>>>0,t=0);return r}(6);function qe(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var We,Ge,Je=Ge={id:pe("_aiData-plugin.2.7.30"+((We=void 0!==We&&We)?".2.7.3":"")+e),accept:qe,get:function(e,n,t,r){var o=e[Ge.id];return o?o[pe(n)]:(r&&((o=function(e,n){var t=n[e.id];if(!t){t={};try{qe(n)&&!function(e,n,t){if(He)try{return He(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(Ge,e))[pe(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function $e(e){return Je.get(e,"state",{},!0)}var Qe="TelemetryPluginChain",Ze="_hasRun",Xe="_getTelCtx",Ye=0;function en(e,a,t,n){var r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return tn([r],n,t)}(e,a,t,n):e,o=[],i={_next:function(){var e,n=r;return r=n?n.getNext():null,n||(e=o)&&0<e.length&&(me(e,function(e){try{e.func.call(e.self,e.args)}catch(n){t.logger.throwInternal(2,73,"Unexpected Exception during onComplete - "+Ne(n))}}),o=[]),n},ctx:{core:function(){return t},diagLog:function(){return(t||{}).logger||new Oe(a)},getCfg:function(){return a},getExtCfg:l,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=l(e,null);return e&&!F(e[n])?r=e[n]:a&&!F(a[n])&&(r=a[n]),F(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=i._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&o.push({func:e,self:E(n)?i.ctx:n,args:t})}}};function l(e,n,t){var r,o,i;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(o=a.extensionConfig)&&e?o[e]:r)?N(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,o=1;for(0<t&&"boolean"==typeof n&&(r=n,n=e[o]||{},o++),N(n)||(n={});o<t;o++){var i,a,l,c,u=e[o],s=P(u),f=N(u);for(i in u)(s&&i in u||f&&v.call(u,i))&&(a=u[i],l=void 0,r&&a&&((l=P(a))||Ce(a))&&(c=n[i],l?P(c)||(c=[]):Ce(c)||(c={}),a=d(r,c,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,r),a&&2===t&&ye(n,function(e){var n;F(i[e])&&!F(n=a[e])&&(i[e]=n)})):r=n,r}return i}function nn(e,t,r,n){var o=en(e,t,r,n),i=o.ctx;return i.processNext=function(e){var n=o._next();return n&&n.processTelemetry(e,i),!n},i.createNew=function(e,n){return nn((e=P(e=void 0===e?null:e)?tn(e,t,r,n):e)||i.getNext(),t,r,n)},i}function tn(e,n,t,r){var o,i=null,a=!r;return P(e)&&0<e.length&&(o=null,me(e,function(e){(a=!a&&r===e||a)&&e&&A(e.processTelemetry)&&(e=rn(e,n,t),i=i||e,o&&o._setNext(e),o=e)})),r&&!i?tn([r],n,t):i}function rn(c,r,o){var u=null,i=A(c.processTelemetry),a=A(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+Ye++:"Unknown-0-"+Ye++,l={getPlugin:function(){return c},getNext:function(){return u},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&A(c[Xe])?c[Xe]():n)||nn(l,r,o)),function(e){if(!c||!i)return!1;var n=$e(c);return!n[d]&&!n[oe]&&(a&&c.setNextPlugin(u),c.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(r,o){f(r,function(){var e,n,t=!1;return c&&(e=$e(c),n=c[g]||e.core,!c||n&&n!==r[g]()||e[d]||(e[g]=null,e[d]=!0,e[re]=!1,c[d]&&!0===c[d](r,o)&&(t=!0))),t},"unload",function(){},o.isAsync)||r.processNext(o)},_id:s,_setNext:function(e){u=e}};function f(t,r,o,e,n){var i=!1,a=c?c.identifier:Qe,l=(l=t[Ze])||(t[Ze]={});return t.setNext(u),c&&je(t[g](),function(){return a+":"+o},function(){l[s]=!0;try{var e=u?u._id:_;e&&(l[e]=!1),i=r(t)}catch(n){e=!u||l[u._id];e&&(i=!0),u&&e||t.diagLog().throwInternal(1,73,"Plugin ["+c.identifier+"] failed during "+o+" - "+Ne(n)+", run flags: "+Ne(l))}},e,n),i}return he(l)}var on,an,ln,O="getPlugin",ae=function pn(){var l,u,s,f,d=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=u||nn(null,{},d.core),e=s&&s[O]?n.createNew(null,s[O]):n.createNew(null,s)),e}function g(){l=!1,d.core=null,s=u=null,f=[]}g(),S(pn,d,function(c){c.initialize=function(e,n,t,r){e&&(a="extensionConfig",i=o=[],e&&(i=e[a])!==o&&F(i)&&(e[a]=i=o)),!r&&n&&(r=n.getProcessTelContext().getNext());var o,i,a=s;s&&s[O]&&(a=s[O]()),d.core=n,u=nn(r,e,n,a),l=!0},c.teardown=function(e,n){var t,r,o,i;if(c.core&&(!e||c.core===e.core()))return r=!1,o=e||function l(e,t,r,n){var o=en(e,t,r,n),i=o.ctx;return i.processNext=function(e){var n=o._next();return n&&n.unload(i,e),!n},i.createNew=function(e,n){return l((e=P(e=void 0===e?null:e)?tn(e,t,r,n):e)||i.getNext(),t,r,n)},i}(null,{},c.core,s&&s[O]?s[O]():s),i=n||{reason:0,isAsync:!1},c[ie]&&!0===c[ie](o,i,a)?t=!0:a(),t;function a(){r||(r=!0,me(f,function(e){e.rm()}),f=[],!0===t&&o.processNext(i),g())}},c._addHook=function(e){e&&(P(e)?f=f.concat(e):f.push(e))}}),d.diagLog=function(e){return n(e).diagLog()},d[re]=function(){return l},d.setInitialized=function(e){l=e},d.setNextPlugin=function(e){s=e},d.processNext=function(e,n){n?n.processNext(e):s&&A(s.processTelemetry)&&s.processTelemetry(e,null)},d._getTelCtx=n},cn=we({CRITICAL:1,WARNING:2}),un=we({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}),sn=((f=on={})[f.Verbose=0]="Verbose",f[f.Information=1]="Information",f[f.Warning=2]="Warning",f[f.Error=3]="Error",f[f.Critical=4]="Critical",fn.getConfig=function(e,n,t,r){return void 0===r&&(r=!1),t=(t&&e.extensionConfig&&e.extensionConfig[t]&&!F(e.extensionConfig[t][n])?e.extensionConfig[t]:e)[n],F(t)?r:t},fn);function fn(){}function dn(){this.constructor=an}function gn(e){var f,r,n=ln.call(this)||this,o=(n.identifier="AppInsightsReactNativePlugin",n.priority=140,{}),d=e||g();function g(){return{disableDeviceCollection:!1,disableExceptionCollection:!1}}return S(gn,n,function(u,s){u.initialize=function(e,n,t){var r,o;if(!u.isInitialized()){s.initialize(e,n,t);var i=e||{},a=g(),l=function(e,n){d[e]=sn.getConfig(i,e,u.identifier,E(d[e])?n:d[e])};if(N(a))for(var c in a)o=c,(r=a)&&v.call(r,o)&&l(c,a[c]);d.disableDeviceCollection||u._collectDeviceInfo(),t&&me(t,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(f=e)}),d.disableExceptionCollection||u._setExceptionHandler()}},u.processTelemetry=function(e,n){var t=e;o&&(t.ext=t.ext||{},t.ext.device=t.ext.device||{},"string"==typeof o.id&&(t.ext.device.localId=o.id),"string"==typeof o.model&&(t.ext.device.model=o.model),"string"==typeof o.deviceClass&&(t.ext.device.deviceClass=o.deviceClass)),u.processNext(e,n)},u.setDeviceId=function(e){o.id=e},u.setDeviceModel=function(e){o.model=e},u.setDeviceType=function(e){o.deviceClass=e},u._collectDeviceInfo=function(){try{o.deviceClass=j["default"].getDeviceType(),o.id=j["default"].getUniqueId(),o.model=j["default"].getModel()}catch(n){u.diagLog().warnToConsole("Failed to get DeviceInfo: "+((e=n)&&"[object Error]"===ce.call(e)?e.name:_)+" - "+Ne(n))}var e},u._setExceptionHandler=function(){var e=typeof global!==i&&global?global:l();e&&e.ErrorUtils&&(r="function"==typeof e.ErrorUtils.getGlobalHandler&&e.ErrorUtils.getGlobalHandler()||e.ErrorUtils._globalHandler,e.ErrorUtils.setGlobalHandler((function(e,n){var t={exception:e,severityLevel:on.Error};f?f.trackException(t):u.diagLog().throwInternal(cn.CRITICAL,un.TelemetryInitializerFailed,"Analytics plugin is not available, ReactNative plugin telemetry will not be sent: "),r&&r.call(global,e,n)}).bind(n)))},u._config=d,u._getDbgPlgTargets=function(){return[o]}}),n}an=gn,typeof(s=ln=ae)!==B&&null!==s&&U("Class extends value "+s+" is not a constructor or null"),K(an,s),an[r]=(dn[r]=s[r],new dn),R.ReactNativePlugin=gn,Object.defineProperty(R,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react-native-device-info")):"function"==typeof define&&define.amd?define(["exports","react-native-device-info"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.DeviceInfo);
|
|
5
|
+
var e=this,n=function(R,e){"use strict";function k(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}var j=k(e),B="function",a="object",i="undefined",r="prototype",U="hasOwnProperty",t=Object,e=t[r],z=(t.create,t.defineProperty),v=e[U],n=null;function l(e){return void 0===e&&(e=!0),n&&e||(typeof globalThis!==i&&globalThis&&(n=globalThis),typeof self!==i&&self&&(n=self),typeof window!==i&&window&&(n=window),typeof global!==i&&global&&(n=global)),n}function V(e){throw new TypeError(e)}(l()||{}).Symbol,(l()||{}).Reflect;var K=function(e,n){return(K=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[U](t)&&(e[t]=n[t])})(e,n)},o="constructor",p="prototype",y="function",x="_dynInstFuncs",H="_isDynProxy",C="_dynClass",q="_dynInstChk",h=q,W="_dfOpts",G="_unknown_",J="__proto__",$="useBaseInst",Q="setInstFuncs",c=Object,m=c.getPrototypeOf,Z=0;function T(e,n){return e&&c[p].hasOwnProperty.call(e,n)}function X(e){return e&&(e===c[p]||e===Array[p])}function Y(e){return X(e)||e===Function[p]}function w(e){if(e){if(m)return m(e);e=e[J]||e[p]||(e[o]?e[o][p]:null);if(e)return e}return null}function I(e,n){var t=[],r=c.getOwnPropertyNames;if(r)t=r(e);else for(var o in e)"string"==typeof o&&T(e,o)&&t.push(o);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function ee(e,n,t){return n!==o&&typeof e[n]===y&&(t||T(e,n))}function b(e){throw new TypeError("DynamicProto: "+e)}function ne(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function te(e,n){return T(e,p)?e.name||n||G:((e||{})[o]||{}).name||n||G}function S(e,r,n,t){T(e,p)||b("theClass is an invalid class definition.");var o,i,a,l,c,u,s=e[p],f=(function(e){if(m)for(var n=[],t=w(r);t&&!Y(t)&&!ne(n,t);){if(t===e)return 1;n.push(t),t=w(t)}}(s)||b("["+te(e)+"] is not in class hierarchy of ["+te(r)+"]"),null),e=(T(s,C)?f=s[C]:(f="_dynCls$"+te(e,"_")+"$"+Z,Z++,s[C]=f),S[W]),d=!!e[$],g=(d&&t&&t[$]!==undefined&&(d=!!t[$]),i={},I(o=r,function(e){!i[e]&&ee(o,e,!1)&&(i[e]=o[e])}),i),d=(n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[H]&&i&&!1!==(r=e[x]||{})[h]&&(o=(r[n[C]]||{})[t]||o),function(){return o.apply(e,arguments)}}for(var o={},a=(I(t,function(e){o[e]=r(n,t,e)}),w(e)),l=[];a&&!Y(a)&&!ne(l,a);)I(a,function(e){!o[e]&&ee(a,e,!m)&&(o[e]=r(n,a,e))}),l.push(a),a=w(a);return o}(s,r,g,d)),!!m&&!!e[Q]);a=s,n=f,l=r,c=g,e=!1!==(d=d&&t?!!t[Q]:d),X(a)||(s=l[x]=l[x]||{},u=s[n]=s[n]||{},!1!==s[h]&&(s[h]=!!e),I(l,function(e){var t,r,o;ee(l,e,!1)&&l[e]!==c[e]&&(u[e]=l[e],delete l[e],T(a,e)&&(!a[e]||a[e][H])||(a[e]=(t=a,r=e,(o=function(){var e,n;return(function(e,n,t,r){var o=null;if(e&&T(t,C)){var i=e[x]||{};if((o=(i[t[C]]||{})[n])||b("Missing ["+n+"] "+y),!o[q]&&!1!==i[h]){for(var a=!T(e,n),l=w(e),c=[];a&&l&&!Y(l)&&!ne(c,l);){var u=l[n];if(u){a=u===r;break}c.push(l),l=w(l)}try{a&&(e[n]=o),o[q]=1}catch(s){i[h]=!1}}}return o}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?w(t)[e]:n)!==y&&b("["+e+"] is not a "+y),n)).apply(this,arguments)})[H]=1,o)))}))}S[W]={setInstFuncs:!0,useBaseInst:!0};var _="",re="isInitialized",d="teardown",g="core",oe="disabled",ie="_doTeardown",ae="toString",le="constructor",ce=z,u=t.freeze,s=Array.isArray,ue=e[ae],se=v[ae],fe=se.call(t),de=/-([a-z])/g,ge=/([^\w\d_$])/g,ve=/^(\d+[\w\d_$])/,pe=Object.getPrototypeOf;function E(e){return e===undefined||typeof e===i}function F(e){return null===e||E(e)}function ye(e){return!(!e||typeof e!==a)}function N(e){return!(!e||typeof e!==B)}function xe(e){var n=e;return e&&"string"==typeof e?(n=(n=e.replace(de,function(e,n){return n.toUpperCase()})).replace(ge,"_")).replace(ve,function(e,n){return"_"+n}):n}function Ce(e,n){if(e)for(var t in e)v.call(e,t)&&n.call(e,t,e[t])}function he(e,n){return!(!e||!n||!~e.indexOf(n))}var A=s||function(e){return!(!e||"[object Array]"!==ue.call(e))};function me(e){return e&&"object"==typeof e&&(!(e=(pe||function(e){if(e){if(pe)return pe(e);e=e.__proto__||e[r]||e[le];if(e)return e}return null})(e))||typeof(e=e[le]&&v.call(e,le)?e[le]:e)===B&&se.call(e)===fe)}function P(e,n,t){var r=e.length;try{for(var o=0;o<r&&!(o in e&&-1===n.call(t||e,e[o],o,e));o++);}catch(i){}}var Te=u||function(e){return e};function we(){var e=Date;return e.now?e.now():(new e).getTime()}function Ie(e){var t={};return Ce(e,function(e,n){if(t[e]=n,!E(t[n]))throw Error("["+n+"] exists for "+e);t[n]=e}),Te(t)}var be="window",Se="JSON",_e=null,Ee=null;function f(e){var n=l();return n&&n[e]?n[e]:e===be&&typeof window===a&&window?window:null}function Fe(){return typeof JSON===a&&JSON||null!==f(Se)}function Ne(){return Fe()?JSON||f(Se):null}function L(e){var n=Object[r].toString.call(e),t=_;return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Fe()&&(t=Ne().stringify(e)),n+t}var Ae=null;function Pe(e){return e?'"'+e.replace(/\"/g,_)+'"':_}function Le(e,n){var t,r=typeof console!==i?console:f("console");r&&(t="log",N(r[t=r[e]?e:t])&&r[t](n))}De.dataType="MessageData";var Me=De;function De(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t=_,Fe()&&(t=Ne().stringify(r)),e=(n?" message:"+Pe(n):_)+(r?" props:"+Pe(t):_);this.message+=e}var Oe=function pn(o){this.identifier="DiagnosticLogger",this.queue=[];var l=0,c={};S(pn,this,function(i){function e(e,n){e=o[e];return F(e)?n:e}function a(e,n){var t,r=(t=(t=Ae)||!0===o.disableDbgExt?t:Ae||(r=f("Microsoft"),Ae=r?r.ApplicationInsights:Ae))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,n)}F(o)&&(o={}),i.consoleLoggingLevel=function(){return e("loggingLevelConsole",0)},i.telemetryLoggingLevel=function(){return e("loggingLevelTelemetry",1)},i.maxInternalMessageLimit=function(){return e("maxMessageLimit",25)},i.enableDebugExceptions=function(){return e("enableDebugExceptions",!1)},i.throwInternal=function(e,n,t,r,o){n=new Me(n,t,o=void 0!==o&&o,r);if(i.enableDebugExceptions())throw n;t=1===e?"errorToConsole":"warnToConsole";E(n.message)?a("throw"+(1===e?"Critical":"Warning"),n):(r=i.consoleLoggingLevel(),o?(o=+n.messageId,!c[o]&&e<=r&&(i[t](n.message),c[o]=!0)):e<=r&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){Le("warn",e),a("warning",e)},i.errorToConsole=function(e){Le("error",e),a("error",e)},i.resetInternalMessageCount=function(){l=0,c={}},i.logInternalMessage=function(e,n){var t,r;l>=i.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,c[t]?r=!1:c[t]=!0,r&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),l++,a(1===e?"error":"warn",n)),l===i.maxInternalMessageLimit()&&(r=new Me(23,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(r),1===e?i.errorToConsole(t):i.warnToConsole(t))))}})},Re=(M.ParentContextKey="parent",M.ChildrenContextKey="childEvts",M);function M(e,o,n){var r,i=this,a=!1;i.start=we(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},N(o)&&(a=function(e){if(ce)try{var n={enumerable:!0,configurable:!0,get:function(){return!r&&N(o)&&(r=o(),o=null),r}};return ce(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===M.ParentContextKey||e===M.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===M.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===M.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(M.ChildrenContextKey);if(A(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}i.time=we()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&N(o)&&(i.payload=o())}}var ke="CoreUtils.doPerf";function je(e,n,t,r,o){if(e)if(e=N(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,l=e.getCtx(ke);try{if(a=e.create(n(),r,o))return l&&a.setCtx&&(a.setCtx(Re.ParentContextKey,l),l.getCtx&&l.setCtx&&((i=l.getCtx(Re.ChildrenContextKey))||(i=[],l.setCtx(Re.ChildrenContextKey,i)),i.push(a))),e.setCtx(ke,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&e.fire(a),e.setCtx(ke,l)}}t()}var Be=4294967296,D=4294967295,Ue=!1,ze=123456789,Ve=987654321;function Ke(e){var n,t=0,r=f("crypto")||f("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&D:t)&&(!(r=typeof navigator===a&&navigator?navigator:f("navigator"))||r.userAgent===Ee&&null!==_e||(r=((Ee=r.userAgent)||_).toLowerCase(),_e=he(r,"msie")||he(r,"trident/")),_e)){if(!Ue)try{var o=2147483647&we();(n=(Math.random()*Be^o)+o)<0&&(n>>>=0),ze=123456789+n&D,Ve=987654321-n&D,Ue=!0}catch(i){}r=((Ve=36969*(65535&Ve)+(Ve>>16)&D)<<16)+(65535&(ze=18e3*(65535&ze)+(ze>>16)&D))>>>0&D|0,t=(r>>>=0)&D}return 0===t&&(t=Math.floor(Be*Math.random()|0)),e||(t>>>=0),t}var He=z,e="."+function(e){void 0===e&&(e=22);for(var n=Ke()>>>0,t=0,r=_;r.length<e;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&n]||"",n>>>=6,5==++t&&(n=(Ke()<<2&4294967295|3&n)>>>0,t=0);return r}(6);function qe(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}var We,Ge,Je=Ge={id:xe("_aiData-plugin.2.7.30"+((We=void 0!==We&&We)?".2.7.3":"")+e),accept:qe,get:function(e,n,t,r){var o=e[Ge.id];return o?o[xe(n)]:(r&&((o=function(e,n){var t=n[e.id];if(!t){t={};try{qe(n)&&!function(e,n,t){if(He)try{return He(e,n,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(n,e.id,t)&&(n[e.id]=t)}catch(r){}}return t}(Ge,e))[xe(n)]=t),t)},kill:function(e,n){if(e&&e[n])try{delete e[n]}catch(t){}}};function $e(e){return Je.get(e,"state",{},!0)}var Qe="TelemetryPluginChain",Ze="_hasRun",Xe="_getTelCtx",Ye=0;function en(e,a,t,n){var r=null,o=[],i=(null!==n&&(r=n?function(e,n,t,r){for(;e;){if(e.getPlugin()===r)return e;e=e.getNext()}return tn([r],n,t)}(e,a,t,n):e),{_next:function(){var e,n=r;return r=n?n.getNext():null,n||(e=o)&&0<e.length&&(P(e,function(e){try{e.func.call(e.self,e.args)}catch(n){t.logger.throwInternal(2,73,"Unexpected Exception during onComplete - "+L(n))}}),o=[]),n},ctx:{core:function(){return t},diagLog:function(){return(t||{}).logger||new Oe(a)},getCfg:function(){return a},getExtCfg:l,getConfig:function(e,n,t){void 0===t&&(t=!1);var r,e=l(e,null);return e&&!F(e[n])?r=e[n]:a&&!F(a[n])&&(r=a[n]),F(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(;n=i._next();){var n=n.getPlugin();n&&e(n)}},onComplete:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&o.push({func:e,self:E(n)?i.ctx:n,args:t})}}});function l(e,n,t){var r,o,i;return void 0===n&&(n={}),void 0===t&&(t=0),(r=a&&(o=a.extensionConfig)&&e?o[e]:r)?ye(n)&&0!==t&&(i=function d(){var e=arguments,n=e[0]||{},t=e.length,r=!1,o=1;for(0<t&&"boolean"==typeof n&&(r=n,n=e[o]||{},o++),ye(n)||(n={});o<t;o++){var i,a,l,c,u=e[o],s=A(u),f=ye(u);for(i in u)(s&&i in u||f&&v.call(u,i))&&(a=u[i],l=void 0,r&&a&&((l=A(a))||me(a))&&(c=n[i],l?A(c)||(c=[]):me(c)||(c={}),a=d(r,c,a)),a!==undefined&&(n[i]=a))}return n}(!0,n,r),a&&2===t&&Ce(n,function(e){var n;F(i[e])&&!F(n=a[e])&&(i[e]=n)})):r=n,r}return i}function nn(e,t,r,n){var o=en(e,t,r,n),i=o.ctx;return i.processNext=function(e){var n=o._next();return n&&n.processTelemetry(e,i),!n},i.createNew=function(e,n){return nn((e=A(e=void 0===e?null:e)?tn(e,t,r,n):e)||i.getNext(),t,r,n)},i}function tn(e,n,t,r){var o,i=null,a=!r;return A(e)&&0<e.length&&(o=null,P(e,function(e){(a=!a&&r===e||a)&&e&&N(e.processTelemetry)&&(e=rn(e,n,t),i=i||e,o&&o._setNext(e),o=e)})),r&&!i?tn([r],n,t):i}function rn(c,r,o){var u=null,i=N(c.processTelemetry),a=N(c.setNextPlugin),s=c?c.identifier+"-"+c.priority+"-"+Ye++:"Unknown-0-"+Ye++,l={getPlugin:function(){return c},getNext:function(){return u},processTelemetry:function(t,e){var n;f(e=e||(n=(n=c&&N(c[Xe])?c[Xe]():n)||nn(l,r,o)),function(e){if(!c||!i)return!1;var n=$e(c);return!n[d]&&!n[oe]&&(a&&c.setNextPlugin(u),c.processTelemetry(t,e),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||e.processNext(t)},unload:function(r,o){f(r,function(){var e,n,t=!1;return c&&(e=$e(c),n=c[g]||e.core,!c||n&&n!==r[g]()||e[d]||(e[g]=null,e[d]=!0,e[re]=!1,c[d]&&!0===c[d](r,o)&&(t=!0))),t},"unload",function(){},o.isAsync)||r.processNext(o)},_id:s,_setNext:function(e){u=e}};function f(t,r,o,e,n){var i=!1,a=c?c.identifier:Qe,l=(l=t[Ze])||(t[Ze]={});return t.setNext(u),c&&je(t[g](),function(){return a+":"+o},function(){l[s]=!0;try{var e=u?u._id:_;e&&(l[e]=!1),i=r(t)}catch(n){e=!u||l[u._id];e&&(i=!0),u&&e||t.diagLog().throwInternal(1,73,"Plugin ["+c.identifier+"] failed during "+o+" - "+L(n)+", run flags: "+L(l))}},e,n),i}return Te(l)}function on(){var n=[];return{add:function(e){e&&n.push(e)},run:function(t,r){P(n,function(e){try{e(t,r)}catch(n){t.diagLog().throwInternal(2,73,"Unexpected error calling unload handler - "+L(n))}}),n=[]}}}var an,ln,cn,O="getPlugin",ae=function yn(){var l,u,s,f,d,g=this;function n(e){var n,e=e=void 0===e?null:e;return e||(n=u||nn(null,{},g.core),e=s&&s[O]?n.createNew(null,s[O]):n.createNew(null,s)),e}function v(){l=!1,g.core=null,s=u=null,d=[],f=on()}v(),S(yn,g,function(c){var e,n,t,r,o;c.initialize=function(e,n,t,r){e&&(a="extensionConfig",i=o=[],e&&(i=e[a])!==o&&F(i)&&(e[a]=i=o)),!r&&n&&(r=n.getProcessTelContext().getNext());var o,i,a=s;s&&s[O]&&(a=s[O]()),g.core=n,u=nn(r,e,n,a),l=!0},c.teardown=function(e,n){var t,r,o,i;if(c.core&&(!e||c.core===e.core()))return r=!1,o=e||function l(e,t,r,n){var o=en(e,t,r,n),i=o.ctx;return i.processNext=function(e){var n=o._next();return n&&n.unload(i,e),!n},i.createNew=function(e,n){return l((e=A(e=void 0===e?null:e)?tn(e,t,r,n):e)||i.getNext(),t,r,n)},i}(null,{},c.core,s&&s[O]?s[O]():s),i=n||{reason:0,isAsync:!1},c[ie]&&!0===c[ie](o,i,a)?t=!0:a(),t;function a(){r||(r=!0,f.run(o,n),P(d,function(e){e.rm()}),d=[],!0===t&&o.processNext(i),v())}},c._addHook=function(e){e&&(A(e)?d=d.concat(e):d.push(e))},e="_addUnloadCb",n=function(){return f},void 0===t&&(t=!0),c&&n&&(t||E(c[e]))&&(c[e]=(o=r=null,N(t=n)?r=t:o=t,function(){var e=arguments;if(o=r?r():o)return o.add.apply(o,e)}))}),g.diagLog=function(e){return n(e).diagLog()},g[re]=function(){return l},g.setInitialized=function(e){l=e},g.setNextPlugin=function(e){s=e},g.processNext=function(e,n){n?n.processNext(e):s&&N(s.processTelemetry)&&s.processTelemetry(e,null)},g._getTelCtx=n},un=Ie({CRITICAL:1,WARNING:2}),sn=Ie({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}),fn=((s=an={})[s.Verbose=0]="Verbose",s[s.Information=1]="Information",s[s.Warning=2]="Warning",s[s.Error=3]="Error",s[s.Critical=4]="Critical",dn.getConfig=function(e,n,t,r){return void 0===r&&(r=!1),t=(t&&e.extensionConfig&&e.extensionConfig[t]&&!F(e.extensionConfig[t][n])?e.extensionConfig[t]:e)[n],F(t)?r:t},dn);function dn(){}function gn(){this.constructor=ln}function vn(e){var f,r,n=cn.call(this)||this,o=(n.identifier="AppInsightsReactNativePlugin",n.priority=140,{}),d=e||g();function g(){return{disableDeviceCollection:!1,disableExceptionCollection:!1}}return S(vn,n,function(u,s){u.initialize=function(e,n,t){var r,o;if(!u.isInitialized()){s.initialize(e,n,t);var i=e||{},a=g(),l=function(e,n){d[e]=fn.getConfig(i,e,u.identifier,E(d[e])?n:d[e])};if(ye(a))for(var c in a)o=c,(r=a)&&v.call(r,o)&&l(c,a[c]);d.disableDeviceCollection||u._collectDeviceInfo(),t&&P(t,function(e){"ApplicationInsightsAnalytics"===e.identifier&&(f=e)}),d.disableExceptionCollection||u._setExceptionHandler()}},u.processTelemetry=function(e,n){var t=e;o&&(t.ext=t.ext||{},t.ext.device=t.ext.device||{},"string"==typeof o.id&&(t.ext.device.localId=o.id),"string"==typeof o.model&&(t.ext.device.model=o.model),"string"==typeof o.deviceClass&&(t.ext.device.deviceClass=o.deviceClass)),u.processNext(e,n)},u.setDeviceId=function(e){o.id=e},u.setDeviceModel=function(e){o.model=e},u.setDeviceType=function(e){o.deviceClass=e},u._collectDeviceInfo=function(){try{o.deviceClass=j["default"].getDeviceType(),o.id=j["default"].getUniqueId(),o.model=j["default"].getModel()}catch(n){u.diagLog().warnToConsole("Failed to get DeviceInfo: "+((e=n)&&"[object Error]"===ue.call(e)?e.name:_)+" - "+L(n))}var e},u._setExceptionHandler=function(){var e=typeof global!==i&&global?global:l();e&&e.ErrorUtils&&(r="function"==typeof e.ErrorUtils.getGlobalHandler&&e.ErrorUtils.getGlobalHandler()||e.ErrorUtils._globalHandler,e.ErrorUtils.setGlobalHandler((function(e,n){var t={exception:e,severityLevel:an.Error};f?f.trackException(t):u.diagLog().throwInternal(un.CRITICAL,sn.TelemetryInitializerFailed,"Analytics plugin is not available, ReactNative plugin telemetry will not be sent: "),r&&r.call(global,e,n)}).bind(n)))},u._config=d,u._getDbgPlgTargets=function(){return[o]}}),n}ln=vn,typeof(u=cn=ae)!==B&&null!==u&&V("Class extends value "+u+" is not a constructor or null"),K(ln,u),ln[r]=(gn[r]=u[r],new gn),R.ReactNativePlugin=vn,Object.defineProperty(R,"__esModule",{value:!0})};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react-native-device-info")):"function"==typeof define&&define.amd?define(["exports","react-native-device-info"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{}),e.DeviceInfo);
|
|
6
6
|
//# sourceMappingURL=applicationinsights-react-native.min.js.map
|