@microsoft/applicationinsights-clickanalytics-js 2.8.0-beta.2202-07 → 2.8.0-beta.2203-01

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.
Files changed (49) hide show
  1. package/browser/{ai.clck.2.8.0-beta.2202-07.cjs.js → ai.clck.2.8.0-beta.2203-01.cjs.js} +3 -3
  2. package/browser/{ai.clck.2.8.0-beta.2202-07.cjs.js.map → ai.clck.2.8.0-beta.2203-01.cjs.js.map} +1 -1
  3. package/browser/ai.clck.2.8.0-beta.2203-01.cjs.min.js +6 -0
  4. package/browser/{ai.clck.2.8.0-beta.2202-07.gbl.min.js.map → ai.clck.2.8.0-beta.2203-01.cjs.min.js.map} +1 -1
  5. package/browser/{ai.clck.2.8.0-beta.2202-07.gbl.js → ai.clck.2.8.0-beta.2203-01.gbl.js} +3 -3
  6. package/browser/{ai.clck.2.8.0-beta.2202-07.gbl.js.map → ai.clck.2.8.0-beta.2203-01.gbl.js.map} +1 -1
  7. package/browser/ai.clck.2.8.0-beta.2203-01.gbl.min.js +6 -0
  8. package/browser/{ai.clck.2.8.0-beta.2202-07.cjs.min.js.map → ai.clck.2.8.0-beta.2203-01.gbl.min.js.map} +1 -1
  9. package/browser/ai.clck.2.8.0-beta.2203-01.integrity.json +66 -0
  10. package/browser/{ai.clck.2.8.0-beta.2202-07.js → ai.clck.2.8.0-beta.2203-01.js} +3 -3
  11. package/browser/{ai.clck.2.8.0-beta.2202-07.js.map → ai.clck.2.8.0-beta.2203-01.js.map} +1 -1
  12. package/browser/ai.clck.2.8.0-beta.2203-01.min.js +6 -0
  13. package/browser/{ai.clck.2.8.0-beta.2202-07.min.js.map → ai.clck.2.8.0-beta.2203-01.min.js.map} +1 -1
  14. package/browser/ai.clck.2.cjs.js +2 -2
  15. package/browser/ai.clck.2.cjs.js.map +1 -1
  16. package/browser/ai.clck.2.cjs.min.js +2 -2
  17. package/browser/ai.clck.2.cjs.min.js.map +1 -1
  18. package/browser/ai.clck.2.gbl.js +2 -2
  19. package/browser/ai.clck.2.gbl.js.map +1 -1
  20. package/browser/ai.clck.2.gbl.min.js +2 -2
  21. package/browser/ai.clck.2.gbl.min.js.map +1 -1
  22. package/browser/ai.clck.2.js +2 -2
  23. package/browser/ai.clck.2.js.map +1 -1
  24. package/browser/ai.clck.2.min.js +2 -2
  25. package/browser/ai.clck.2.min.js.map +1 -1
  26. package/dist/applicationinsights-clickanalytics-js.d.ts +1 -1
  27. package/dist/applicationinsights-clickanalytics-js.js +2 -2
  28. package/dist/applicationinsights-clickanalytics-js.js.map +1 -1
  29. package/dist/applicationinsights-clickanalytics-js.min.js +2 -2
  30. package/dist/applicationinsights-clickanalytics-js.min.js.map +1 -1
  31. package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +1 -1
  32. package/dist-esm/Behaviours.js +1 -1
  33. package/dist-esm/ClickAnalyticsPlugin.js +2 -2
  34. package/dist-esm/ClickAnalyticsPlugin.js.map +1 -1
  35. package/dist-esm/DataCollector.js +1 -1
  36. package/dist-esm/Enums.js +1 -1
  37. package/dist-esm/Interfaces/Datamodel.js +1 -1
  38. package/dist-esm/applicationinsights-clickanalytics-js.js +1 -1
  39. package/dist-esm/common/Utils.js +1 -1
  40. package/dist-esm/events/PageAction.js +1 -1
  41. package/dist-esm/events/WebEvent.js +1 -1
  42. package/dist-esm/handlers/AutoCaptureHandler.js +1 -1
  43. package/dist-esm/handlers/DomContentHandler.js +1 -1
  44. package/package.json +4 -4
  45. package/src/ClickAnalyticsPlugin.ts +1 -1
  46. package/browser/ai.clck.2.8.0-beta.2202-07.cjs.min.js +0 -6
  47. package/browser/ai.clck.2.8.0-beta.2202-07.gbl.min.js +0 -6
  48. package/browser/ai.clck.2.8.0-beta.2202-07.integrity.json +0 -66
  49. package/browser/ai.clck.2.8.0-beta.2202-07.min.js +0 -6
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Click Analytics, 2.8.0-beta.2202-07
2
+ * Application Insights JavaScript SDK - Click Analytics, 2.8.0-beta.2203-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var t=this,e=function(e){"use strict";var a="function",i="object",r="undefined",o="prototype",s="hasOwnProperty",n=Object,f=n[o],T=n.assign,C=n.create,y=n.defineProperty,_=f[s],b=null;function I(t){return void 0===t&&(t=!0),b&&t||(typeof globalThis!==r&&globalThis&&(b=globalThis),typeof self!==r&&self&&(b=self),typeof window!==r&&window&&(b=window),typeof global!==r&&global&&(b=global)),b}function x(t){throw new TypeError(t)}(I()||{}).Symbol,(I()||{}).Reflect;var T=T||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])f[s].call(e,i)&&(t[i]=e[i]);return t},A=function(t,e){return(A=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[s](n)&&(t[n]=e[n])})(t,e)};function P(t,e){function n(){this.constructor=t}typeof e!==a&&null!==e&&x("Class extends value "+e+" is not a constructor or null"),A(t,e),t[o]=null===e?function(t){if(C)return C(t);if(null==t)return{};var e=typeof t;function n(){}return e!==i&&e!==a&&x("Object prototype may only be an Object:"+t),n[o]=t,new n}(e):(n[o]=e[o],new n)}var N="constructor",d="prototype",D="function",k="_dynInstFuncs",E="_isDynProxy",w="_dynClass",S="_dynInstChk",M=S,L="_dfOpts",O="_unknown_",F="__proto__",B="useBaseInst",R="setInstFuncs",U=Object,j=U.getPrototypeOf,V=0;function h(t,e){return t&&U[d].hasOwnProperty.call(t,e)}function H(t){return t&&(t===U[d]||t===Array[d])}function K(t){return H(t)||t===Function[d]}function z(t){if(t){if(j)return j(t);t=t[F]||t[d]||(t[N]?t[N][d]:null);if(t)return t}return null}function q(t,e){var n=[],a=U.getOwnPropertyNames;if(a)n=a(t);else for(var i in t)"string"==typeof i&&h(t,i)&&n.push(i);if(n&&0<n.length)for(var r=0;r<n.length;r++)e(n[r])}function W(t,e,n){return e!==N&&typeof t[e]===D&&(n||h(t,e))}function G(t){throw new TypeError("DynamicProto: "+t)}function J(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function X(t,e){return h(t,d)?t.name||e||O:((t||{})[N]||{}).name||e||O}function Y(t,a,e,n){h(t,d)||G("theClass is an invalid class definition.");var u,i,r,o,f,g,c=t[d],s=(function(t){if(j)for(var e=[],n=z(a);n&&!K(n)&&!J(e,n);){if(n===t)return 1;e.push(n),n=z(n)}}(c)||G("["+X(t)+"] is not in class hierarchy of ["+X(a)+"]"),null),t=(h(c,w)?s=c[w]:(s="_dynCls$"+X(t,"_")+"$"+V,V++,c[w]=s),Y[L]),l=!!t[B],p=(l&&n&&n[B]!==undefined&&(l=!!n[B]),i={},q(u=a,function(t){!i[t]&&W(u,t,!1)&&(i[t]=u[t])}),i),l=(e(a,function(t,e,n,r){function a(t,e,n){var a,i=e[n];return i[E]&&r&&!1!==(a=t[k]||{})[M]&&(i=(a[e[w]]||{})[n]||i),function(){return i.apply(t,arguments)}}for(var i={},o=(q(n,function(t){i[t]=a(e,n,t)}),z(t)),c=[];o&&!K(o)&&!J(c,o);)q(o,function(t){!i[t]&&W(o,t,!j)&&(i[t]=a(e,o,t))}),c.push(o),o=z(o);return i}(c,a,p,l)),!!j&&!!t[R]);r=c,e=s,o=a,f=p,t=!1!==(l=l&&n?!!n[R]:l),H(r)||(c=o[k]=o[k]||{},g=c[e]=c[e]||{},!1!==c[M]&&(c[M]=!!t),q(o,function(t){var n,a,i;W(o,t,!1)&&o[t]!==f[t]&&(g[t]=o[t],delete o[t],h(r,t)&&(!r[t]||r[t][E])||(r[t]=(n=r,a=t,(i=function(){var t,e;return(function(t,e,n,u){var a=null;if(t&&h(n,w)){var i=t[k]||{};if((a=(i[n[w]]||{})[e])||G("Missing ["+e+"] "+D),!a[S]&&!1!==i[M]){for(var r=!h(t,e),o=z(t),c=[];r&&o&&!K(o)&&!J(c,o);){var s=o[e];if(s){r=s===u;break}c.push(o),o=z(o)}try{r&&(t[e]=a),a[S]=1}catch(l){i[M]=!1}}}return a}(this,a,n,i)||(typeof(e=(e=n[t=a])===i?z(n)[t]:e)!==D&&G("["+t+"] is not a "+D),e)).apply(this,arguments)})[E]=1,i)))}))}Y[L]={setInstFuncs:!0,useBaseInst:!0};var v={CRITICAL:1,1:"CRITICAL",WARNING:2,2:"WARNING"},$={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},Q="attachEvent",Z="addEventListener",tt="toString",et="constructor",nt=y,y=n.freeze,at=Array.isArray,it=f[tt],rt=_[tt],ot=rt.call(n),ct=Object.getPrototypeOf;function st(t){return t===undefined||typeof t===r}function p(t){return null===t||st(t)}function lt(t){return!(!t||typeof t!==i)}function m(t){return!(!t||typeof t!==a)}function ut(t,e,n,a){void 0===a&&(a=!1);var i=!1;if(!p(t))try{p(t[Z])?p(t[Q])||(t[Q]("on"+e,n),i=!0):(t[Z](e,n,a),i=!0)}catch(r){}return i}function ft(t,e){if(t)for(var n in t)_.call(t,n)&&e.call(t,n,t[n])}var gt=at||function(t){return!(!t||"[object Array]"!==it.call(t))};function pt(t){return t&&"object"==typeof t&&(!(t=(ct||function(t){if(t){if(ct)return ct(t);t=t.__proto__||t[o]||t[et];if(t)return t}return null})(t))||typeof(t=t[et]&&_.call(t,et)?t[et]:t)===a&&rt.call(t)===ot)}function dt(t,e,n){var a=t.length;try{for(var i=0;i<a&&!(i in t&&-1===e.call(n||t,t[i],i,t));i++);}catch(r){}}var ht=y||function(t){return t};function vt(){var t=Date;return t.now?t.now():(new t).getTime()}var mt="window",Tt="JSON";function l(t){var e=I();return e&&e[t]?e[t]:t===mt&&Ct()?window:null}function Ct(){return!(typeof window!==i||!window)}function yt(){return Ct()?window:l(mt)}function _t(){return typeof document===i&&document?document:l("document")}function bt(){return typeof location===i&&location?location:l("location")}function It(){return typeof JSON===i&&JSON||null!==l(Tt)}function xt(){return It()?JSON||l(Tt):null}function At(t){var e=Object[o].toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":It()&&(n=xt().stringify(t)),e+n}var Pt=null;function Nt(t){return t?'"'+t.replace(/\"/g,"")+'"':""}function Dt(t,e){var n,a=typeof console!==r?console:l("console");a&&(n="log",m(a[n=a[t]?t:n])&&a[n](e))}Et.dataType="MessageData";var kt=Et;function Et(t,e,n,a){void 0===n&&(n=!1),this.messageId=t,this.message=(n?"AI: ":"AI (Internal): ")+t;n="",It()&&(n=xt().stringify(a)),t=(e?" message:"+Nt(e):"")+(a?" props:"+Nt(n):"");this.message+=t}var wt=function oe(i){this.identifier="DiagnosticLogger",this.queue=[];var c=0,s={};Y(oe,this,function(r){function t(t,e){t=i[t];return p(t)?e:t}function o(t,e){var n,a=(n=(n=Pt)||!0===i.disableDbgExt?n:Pt||(a=l("Microsoft"),Pt=a?a.ApplicationInsights:Pt))?n.ChromeDbgExt:null;a&&a.diagLog&&a.diagLog(t,e)}p(i)&&(i={}),r.consoleLoggingLevel=function(){return t("loggingLevelConsole",0)},r.telemetryLoggingLevel=function(){return t("loggingLevelTelemetry",1)},r.maxInternalMessageLimit=function(){return t("maxMessageLimit",25)},r.enableDebugExceptions=function(){return t("enableDebugExceptions",!1)},r.throwInternal=function(t,e,n,a,i){e=new kt(e,n,i=void 0!==i&&i,a);if(r.enableDebugExceptions())throw e;n=t===v.CRITICAL?"errorToConsole":"warnToConsole";st(e.message)?o("throw"+(t===v.CRITICAL?"Critical":"Warning"),e):(a=r.consoleLoggingLevel(),i?(i=+e.messageId,!s[i]&&t<=a&&(r[n](e.message),s[i]=!0)):t<=a&&r[n](e.message),r.logInternalMessage(t,e))},r.warnToConsole=function(t){Dt("warn",t),o("warning",t)},r.errorToConsole=function(t){Dt("error",t),o("error",t)},r.resetInternalMessageCount=function(){c=0,s={}},r.logInternalMessage=function(t,e){var n,a;c>=r.maxInternalMessageLimit()||(a=!0,n="AITR_"+e.messageId,s[n]?a=!1:s[n]=!0,a&&(t<=r.telemetryLoggingLevel()&&(r.queue.push(e),c++,o(t===v.CRITICAL?"error":"warn",e)),c===r.maxInternalMessageLimit()&&(a=new kt($.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),r.queue.push(a),t===v.CRITICAL?r.errorToConsole(n):r.warnToConsole(n))))}})},St=(c.ParentContextKey="parent",c.ChildrenContextKey="childEvts",c);function c(t,i,e){var a,r=this,o=!1;r.start=vt(),r.name=t,r.isAsync=e,r.isChildEvt=function(){return!1},m(i)&&(o=function(t){if(nt)try{var e={enumerable:!0,configurable:!0,get:function(){return!a&&m(i)&&(a=i(),i=null),a}};return nt(t,"payload",e),!0}catch(n){}return!1}(r)),r.getCtx=function(t){return t?(t===c.ParentContextKey||t===c.ChildrenContextKey?r:r.ctx||{})[t]:null},r.setCtx=function(t,e){t&&(t===c.ParentContextKey?(r[t]||(r.isChildEvt=function(){return!0}),r[t]=e):t===c.ChildrenContextKey?r[t]=e:(r.ctx=r.ctx||{})[t]=e)},r.complete=function(){var t=0,e=r.getCtx(c.ChildrenContextKey);if(gt(e))for(var n=0;n<e.length;n++){var a=e[n];a&&(t+=a.time)}r.time=vt()-r.start,r.exTime=r.time-t,r.complete=function(){},!o&&m(i)&&(r.payload=i())}}var Mt="CoreUtils.doPerf";function Lt(t,e,n,a,i){if(t)if(t=m(t.getPerfMgr)?t.getPerfMgr():t){var r,o=void 0,c=t.getCtx(Mt);try{if(o=t.create(e(),a,i))return c&&o.setCtx&&(o.setCtx(St.ParentContextKey,c),c.getCtx&&c.setCtx&&((r=c.getCtx(St.ChildrenContextKey))||(r=[],c.setCtx(St.ChildrenContextKey,r)),r.push(o))),t.setCtx(Mt,o),n(o)}catch(s){o&&o.setCtx&&o.setCtx("exception",s)}finally{o&&t.fire(o),t.setCtx(Mt,c)}}return n()}var Ot="TelemetryPluginChain",Ft="_hasRun",Bt="_getTelCtx",Rt=0;function Ut(t,o,n,e){var a=null,i=null,a=e?function(t,e,n,a){for(;t;){if(t.getPlugin()===a)return t;t=t.getNext()}return jt([a],e,n)}(t,o,n,e):t,r={core:function(){return n},diagLog:function(){return(n||{}).logger||new wt(o)},getCfg:function(){return o},getExtCfg:c,getConfig:function(t,e,n){void 0===n&&(n=!1);var a,t=c(t,null);return t&&!p(t[e])?a=t[e]:o&&!p(o[e])&&(a=o[e]),p(a)?n:a},hasNext:function(){return null!=a},getNext:function(){return a},setNext:function(t){a=t},processNext:function(e){s(function(t){t.processTelemetry(e,r)})},iterate:function(e){for(;a;)s(function(t){t=t.getPlugin();t&&e(t)})},createNew:function(t,e){return Ut((t=gt(t=void 0===t?null:t)?jt(t,o,n,e):t)||a,o,n,e)},onComplete:function(t){i=t}};function c(t,e,n){var a,i,r;return void 0===e&&(e={}),void 0===n&&(n=0),!o||(i=o.extensionConfig)&&t&&(a=i[t]),a?lt(e)&&0!==n&&(r=function g(){var t=arguments,e=t[0]||{},n=t.length,a=!1,i=1;for(0<n&&"boolean"==typeof e&&(a=e,e=t[i]||{},i++),lt(e)||(e={});i<n;i++){var r,o,c,s,l=t[i],u=gt(l),f=lt(l);for(r in l)(u&&r in l||f&&_.call(l,r))&&(o=l[r],c=void 0,a&&o&&((c=gt(o))||pt(o))&&(s=e[r],c?gt(s)||(s=[]):pt(s)||(s={}),o=g(a,s,o)),o!==undefined&&(e[r]=o))}return e}(!0,e,a),o&&2===n&&ft(e,function(t){var e;p(r[t])&&(p(e=o[t])||(r[t]=e))})):a=e,a}function s(t){var e=a;e?(a=e.getNext(),t(e)):i&&(i(),i=null)}return r}function jt(t,e,n,a){var i,r=null,o=!a;return gt(t)&&0<t.length&&(i=null,dt(t,function(t){(o=!o&&a===t||o)&&t&&m(t.processTelemetry)&&(t=Vt(t,e,n),r=r||t,i&&i._setNext(t),i=t)})),a&&!r?jt([a],e,n):r}function Vt(s,l,u){var f=null,n=m(s.processTelemetry),a=m(s.setNextPlugin),g=s?s.identifier+"-"+s.priority+"-"+Rt++:"Unknown-0-"+Rt++,p={getPlugin:function(){return s},getNext:function(){return f},processTelemetry:function(e,t){i(t,function(t){return!!n&&(a&&s.setNextPlugin(f),s.processTelemetry(e,t),!0)},function(t){f.processTelemetry(e,t)},"processTelemetry",function(){return{item:e}},!e.sync)},_id:g,_setNext:function(t){f=t}};function i(a,i,r,o,t,e){a=(a=a||(s&&m(s[Bt])?s[Bt]():a))||Ut(p,l,u);var n=s?s.identifier:Ot,c=(c=a[Ft])||(a[Ft]={});Lt(a.core(),function(){return n+":"+o},function(){var t=!(c[g]=!0);if(a.setNext(f),s)try{var e=f?f._id:"";e&&(c[e]=!1),t=i(a)}catch(n){e=!f||c[f._id];e&&(t=!0),f&&e||a.diagLog().throwInternal(v.CRITICAL,$.PluginException,"Plugin ["+s.identifier+"] failed during "+o+" - "+At(n)+", run flags: "+At(c))}f&&!t&&r(a)},t,e)}return ht(p)}var Ht="getPlugin",tt=function ce(){var c,s,l,e,u=this;function n(t){var e,t=t=void 0===t?null:t;return t||(e=s||Ut(null,{},u.core),t=l&&l[Ht]?e.createNew(null,l[Ht]):e.createNew(null,l)),t}c=!1,u.core=null,l=s=null,e=[],Y(ce,u,function(t){t.initialize=function(t,e,n,a){t&&(o="extensionConfig",r=i=[],!t||(r=t[o])!==i&&p(r)&&(t[o]=r=i)),!a&&e&&(a=e.getProcessTelContext().getNext());var i,r,o=l;l&&l[Ht]&&(o=l[Ht]()),u.core=e,s=Ut(a,t,e,o),c=!0},t._addHook=function(t){t&&(gt(t)?e=e.concat(t):e.push(t))}}),u.diagLog=function(t){return n(t).diagLog()},u.isInitialized=function(){return c},u.setInitialized=function(t){c=t},u.setNextPlugin=function(t){l=t},u.processNext=function(t,e){e?e.processNext(t):l&&m(l.processTelemetry)&&l.processTelemetry(t,null)},u._getTelCtx=n},Kt="not_specified",zt=T(T({},$),{CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103});function qt(t){for(var e in t)g(t[e])&&("{}"!==JSON.stringify(t[e])||"callback"===e)||delete t[e]}function g(t){return!(p(t)||""===t)}function Wt(t,e){return g(t.getAttribute(e))}function Gt(t,e,n){var a=t;if(a){for(;!e(a,n);)if(!(a=a.parentNode)||!a.getAttribute)return null;return a}}function Jt(t){return"A"===t.nodeName}function u(){var t={},e=!1,n=0,l=arguments.length,a=Object.prototype,i=arguments;for("[object Boolean]"===a.toString.call(i[0])&&(e=i[0],n++);n<l;n++){r=void 0;var r,o,c,s=i[n];for(r in s)c=r,(o=s)&&_.call(o,c)&&(e&&"[object Object]"===a.toString.call(s[r])?t[r]=u(!0,t[r],s[r]):t[r]=s[r])}return t}var Xt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function Yt(t,e,n,a,i,r){this._clickAnalyticsPlugin=t,this._config=e,this._contentHandler=n,this._pageTagsCallback=a,this._metaTags=i,this._traceLogger=r,this._pageTags={}}Yt.prototype.setBasicProperties=function(t,e){var n;g(t.name)||(t.pageName=(n=this._config,e&&e.pageName?e.pageName:n.callback&&m(n.callback.pageName)?n.callback.pageName():n.coreData&&n.coreData.pageName?n.coreData.pageName:(e=_t())&&e.title||"")),!g(t.uri)&&Ct&&(t.uri=(n=this._config,e=bt(),n.coreData&&n.coreData.requestUri&&""!==n.coreData.requestUri?n.coreData.requestUri:e?e.protocol+"//"+(e.hostname||e.host)+(g(e.port)?":"+e.port:"")+e.pathname:null))},Yt.prototype.setCommonProperties=function(t,e){this.setBasicProperties(t,e),this._setPageTags(t,e),this._pageTypeMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"pageType"),this._behaviorMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"behavior"),g(e.pageType)&&(t.pageType=e.pageType),g(this._pageTypeMetaTag)&&!g(t.pageType)&&(t.pageType=this._pageTypeMetaTag)},Yt.prototype._setPageTags=function(t,e){if(this._pageTagsCallback&&(this._pageTags=u(!0,this._pageTags,this._pageTagsCallback())),g(e.pageTags)&&(this._pageTags=u(!0,this._pageTags,e.pageTags)),this._metaTags)for(var n in this._pageTags.metaTags={},this._metaTags)"behavior"!=n&&"market"!=n&&"pageType"!=n&&(this._pageTags.metaTags[n]=this._metaTags[n]);t.properties=t.properties||{},t.properties.pageTags=this._pageTags},Yt.prototype._getBehavior=function(t){var e;return t&&g(t.behavior)?e=t.behavior:g(this._behaviorMetaTag)&&(e=this._behaviorMetaTag),this._getValidBehavior(e)},Yt.prototype._getValidBehavior=function(t){return this._config.behaviorValidator(t)},Yt.prototype._getMetaData=function(t,e,n){return e&&e[n]?e[n]:t?t[n]:""},P(Zt,$t=Yt),Zt.prototype.trackPageAction=function(t,e){var n=this,a={name:"Microsoft.ApplicationInsights.{0}.Event",baseType:"EventData",ext:{web:{}},data:{},baseData:{}};this._populateEventDataIfPresent(a.baseData,"name",t.name),this._populateEventDataIfPresent(a.data,"baseTypeSource","ClickEvent"),this._populateEventDataIfPresent(a.data,"uri",t.uri),this._populateEventDataIfPresent(a.data,"pageType",t.pageType),this._populateEventDataIfPresent(a.data,"properties",t.properties),this._populateEventDataIfPresent(a.data,"actionType",t.actionType),this._populateEventDataIfPresent(a.data,"behavior",t.behavior),this._populateEventDataIfPresent(a.data,"clickCoordinates",t.clickCoordinates),this._populateEventDataIfPresent(a.data,"content",t.content),this._populateEventDataIfPresent(a.data,"targetUri",t.targetUri),this._populateEventDataIfPresent(a.data,"timeToAction",t.timeToAction),this._populateEventDataIfPresent(a.data,"refUri",t.refUri),this._populateEventDataIfPresent(a.data,"pageName",t.pageName),this._populateEventDataIfPresent(a.data,"parentId",t.parentId),e&&ft(e,function(t,e){a.data[t]||n._populateEventDataIfPresent(a.data,t,e)}),this._clickAnalyticsPlugin.core.track(a)},Zt.prototype.capturePageAction=function(t,e,n,a){e=g(e)?e:{};var i,r={name:""},n=g(n)?n:{},o=(this.setCommonProperties(r,e),r.behavior=this._getBehavior(e),{});a&&(r.behavior=this._config.defaultRightClickBhvr),t&&(r.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(){if(e){var t=Gt(e,Jt);if(1===t.length){t=t[0];if(t.href)return t.href;if(t.src)return t.src}}return""}();break;case"INPUT":var n=e.type;n&&Xt[n.toUpperCase()]&&(n=bt()||{},t=e.form?e.form.action||n.pathname||"":n.pathname||"")}return t}(t),(o=this._contentHandler.getElementContent(t)).bhvr&&!g(e.behavior)&&(a="bhvr",(t=o)&&t[a]&&(i=t[a],delete t[a]),a=i,r.behavior=this._getValidBehavior(a)),g(o.id)||g(o.contentName)||this._traceLogger.throwInternal(v.WARNING,zt.InvalidContentBlob,"Missing attributes id or contentName in click event. Click event information will still be collected!")),r.name=o.id||o.contentName||Kt,r.parentId=o.parentid||o.parentName||Kt,g(e.actionType)&&(r.actionType=e.actionType),g(e.clickCoordinateX)&&g(e.clickCoordinateY)&&(r.clickCoordinates=e.clickCoordinateX+"X"+e.clickCoordinateY),this._sanitizePageActionEventContent(o),r.content="["+JSON.stringify(u(o,e&&e.contentTags?e.contentTags:{}))+"]",r.timeToAction=this._getTimeToClick(),r.refUri=g(e.refUri)?e.refUri:this._config.coreData.referrerUri,this._isUndefinedEvent(r)||this.trackPageAction(r,n)},Zt.prototype._getTimeToClick=function(){var t=l("performance");if(t&&t.timing){t=t.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},Zt.prototype._populateEventDataIfPresent=function(t,e,n){g(n)&&(t[e]=n)},Zt.prototype._sanitizePageActionEventContent=function(t){t&&(delete t.id,delete t.parentid,delete t.parentname,this._config&&this._config.dataTags&&g(this._config.dataTags.parentDataTag)&&delete t[this._config.dataTags.parentDataTag])},Zt.prototype._isUndefinedEvent=function(t){return!(!this._config.dropInvalidEvents||t.name!==Kt||t.parentId!==Kt||"[{}]"!==t.content)};var $t,Qt=Zt;function Zt(){return null!==$t&&$t.apply(this,arguments)||this}var te={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},ee=(ne.prototype.click=function(){var e=this,t=yt(),n=_t();t?(ut(t,~navigator.appVersion.indexOf("MSIE")?"click":"mousedown",function(t){e._processClick(t)}),ut(t,"keyup",function(t){e._processClick(t)})):n&&(ut(n,"click",function(t){e._processClick(t)}),ut(n,"keyup",function(t){e._processClick(t)}))},ne.prototype.capturePageAction=function(t,e,n,a){g(Gt(t,Wt,this._config.dataTags.customDataPrefix+this._config.dataTags.dntDataTag))||this._pageAction.capturePageAction(t,e,n,a)},ne.prototype._processClick=function(t){var e={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=yt();if(t=p(t)&&n?n.event:t){var a=t.srcElement||t.target,i={clickCoordinateX:t.pageX,clickCoordinateY:t.pageY},r=function(t){try{if("which"in t)return 3===t.which;if("button"in t)return 2===t.button}catch(e){}}(t);if(r)i.actionType="CR";else if(function(t){try{if("which"in t)return 1===t.which;if("button"in t)return 1===t.button}catch(e){}}(t))i.actionType="CL";else if(function(t){try{if("keyCode"in t)return 13===t.keyCode}catch(e){}}(t))i.actionType="KE";else if(function(t){try{if("keyCode"in t)return 32===t.keyCode}catch(e){}}(t))i.actionType="KS";else{if(!function(t){try{if("which"in t)return 2===t.which;if("button"in t)return 4===t.button}catch(e){}}(t))return;i.actionType="CM"}for(;a&&a.tagName;){var o=(a=a.control&&e[a.control.tagName.toUpperCase()]?a.control:a).tagName.toUpperCase();if(e[o]){"INPUT"==o&&!te[a.type.toUpperCase()]||this.capturePageAction(a,i,{},r);break}a=a.parentElement||a.parentNode}}},ne);function ne(t,e,n,a){this._analyticsPlugin=t,this._config=e,this._pageAction=n,this._traceLogger=a}t.prototype.getMetadata=function(){return g(this._config.dataTags.metaDataPrefix)?this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,this._config.dataTags.metaDataPrefix,!1):this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,"",!1)},t.prototype.getElementContent=function(t){if(!t)return{};var e,n,a={},i=this._config.dataTags.customDataPrefix,r=i+this._config.dataTags.aiBlobAttributeTag;if(g(this._config.dataTags.parentDataTag)&&(n=i+this._config.dataTags.parentDataTag),this._isTracked(t,i,r))a=u(a,this._populateElementContentwithDataTag(t,i,n,r));else if(e=t.getAttribute(r))try{a=JSON.parse(e)}catch(o){this._traceLogger.throwInternal(v.CRITICAL,zt.CannotParseAiBlobValue,"Can not parse "+e)}else a=u(a,this._populateElementContent(t,i,n,r));return qt(a),n?u(a,this._getParentDetails(t,a,i,r)):a},t.prototype._captureElementContentWithDataTag=function(t,e,n){for(var a,i=0;i<t.attributes.length;i++)(a=t.attributes[i]).name.indexOf(n)||(e[a.name.replace(n,"")]=a.value)},t.prototype._walkUpDomChainCaptureData=function(t,e,n,u,f){for(var a=t,i=!1,r=!1;!p(a)&&!p(a.attributes);){for(var o=a.attributes,c=0;c<o.length;c++){var s,l=o[c];l.name.indexOf(n)||(l.name.indexOf(u)||(i=!0),l.name.indexOf(f)&&(s=l.name.replace(n,""),r&&"id"===s||g(e[s])||(e[s]=l.value)))}if(i)break;r=!0,a=a.parentNode}},t.prototype._populateElementContent=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t),i={id:r.id||"",contentName:r.contentName||""};return g(n)&&this._walkUpDomChainCaptureData(t,i,e,n,a),i.id||i.contentName||this._traceLogger.throwInternal(v.WARNING,zt.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},t.prototype._populateElementContentwithDataTag=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t);return g(n)?this._walkUpDomChainCaptureData(t,i,e,n,a):this._captureElementContentWithDataTag(t,i,e),this._config.dataTags.useDefaultContentNameOrId&&(g(i.id)||(i.id=r.id||""),i.contentName=r.contentName||""),i.id||i.contentName||this._traceLogger.throwInternal(v.WARNING,zt.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},t.prototype._getMetaDataFromDOM=function(t,e,n){for(var a={},i=document.querySelectorAll("meta"),r=0;r<i.length;r++){var o=i[r];o.name&&(!t&&o.name.indexOf(e)||(a[n?o.name.replace(e,""):o.name]=o.content))}return a},t.prototype._getDefaultContentName=function(t,e){if(!1===e||!t.tagName)return"";var n,a=_t()||{};switch(t.tagName){case"A":n=a.all?t.innerText||t.innerHTML:t.text||t.innerHTML;break;case"IMG":case"AREA":n=t.alt;break;default:n=t.value||t.name||t.alt||t.innerText||t.id}return n.substring(0,200)},t.prototype._isTracked=function(t,e,n){for(var a=t.attributes,i=!1,r=0;r<a.length;r++){var o=a[r].name;if(o===n)return!1;o.indexOf(e)||(i=!0)}return i},t.prototype._getHtmlIdAndContentName=function(t){var e,n,a={};return t&&this._config.dataTags.useDefaultContentNameOrId&&(e=this._config.callback.contentName?this._config.callback.contentName(t,this._config.dataTags.useDefaultContentNameOrId):"",n=this._getDefaultContentName(t,this._config.dataTags.useDefaultContentNameOrId),a={id:t.id,contentName:e||n||t.getAttribute("alt")}),a},t.prototype._getParentDetails=function(t,e,n,a){var i=e.parentid,e=e.parentname;return i||e||!t?{}:this._populateParentInfo(t,n,a)},t.prototype._populateParentInfo=function(t,e,n){var a,i={},r=Gt(t.parentElement,this._isTracked,e);if(r){var n=r.getAttribute(n)||t[n];if(n){try{var o=JSON.parse(n)}catch(c){this._traceLogger.throwInternal(v.CRITICAL,zt.CannotParseAiBlobValue,"Can not parse "+n)}o&&(a=o.id)}else a=r.getAttribute(e+"id")}return a?i.parentid=a:(n=this._getHtmlIdAndContentName(t.parentElement),i.parentid=n.id,i.parentname=n.contentName),i};var ae=t;function t(t,e){this._config=t,this._traceLogger=e}P(re,ie=tt),re.prototype.initialize=function(t,e,n,a){if(p(e))throw Error("Error initializing");t.extensionConfig=t.extensionConfig||[],t.extensionConfig[this.identifier]=t.extensionConfig[this.identifier]||{},this._config=function(t){var e,n,a={autoCapture:!0,callback:{pageActionPageTags:null},pageTags:{},coreData:{referrerUri:document.referrer,requestUri:"",pageName:"",pageType:""},dataTags:{useDefaultContentNameOrId:!1,aiBlobAttributeTag:"ai-blob",customDataPrefix:"data-",captureAllMetaDataContent:!1,dntDataTag:"ai-dnt"},behaviorValidator:function(t){return t||""},defaultRightClickBhvr:"",dropInvalidEvents:!1},i=[];for(e in a)"object"==typeof a[e]&&i.push(e);if(t){var r,o,c=t,s=i;for(r in qt(c),s)s.hasOwnProperty(r)&&("object"==typeof c[o=s[r]]?qt(c[o]):delete c[o]);return g(t.dataTags)&&(t.dataTags.customDataPrefix=g((n=t).dataTags.customDataPrefix)&&!n.dataTags.customDataPrefix.indexOf("data-")?t.dataTags.customDataPrefix:"data-"),u(!0,a,t)}}(t.extensionConfig[this.identifier]),ie.prototype.initialize.call(this,t,e,n,a),this._contentHandler=this._contentHandler||new ae(this._config,this.diagLog());var i,t=this._contentHandler.getMetadata();this.pageAction=new Qt(this,this._config,this._contentHandler,this._config.callback.pageActionPageTags,t,this.diagLog()),this._autoCaptureHandler=this._autoCaptureHandler||new ee(this,this._config,this.pageAction,this.diagLog()),this._config.autoCapture&&this._autoCaptureHandler.click(),dt(n,function(t){"AppInsightsPropertiesPlugin"===t.identifier&&(i=t)}),i&&i.context&&i.context.internal&&i.context.internal.sdkVersion&&(i.context.internal.sdkVersion+="_ClickPlugin"+re.Version)},re.prototype.processTelemetry=function(t,e){this.processNext(t,e)},re.prototype.trackPageAction=function(t,e){try{this.pageAction.trackPageAction(t,e)}catch(n){this.diagLog().throwInternal(v.CRITICAL,zt.TrackPageActionEventFailed,"trackPageAction failed, page action event will not be collected: "+((t=n)&&"[object Error]"===it.call(t)?t.name:""),{exception:At(n)})}},re.Version="2.8.0-beta.2202-07";var ie,at=re;function re(){var t=null!==ie&&ie.apply(this,arguments)||this;return t.identifier="ClickAnalyticsPlugin",t.priority=181,t}e.BehaviorEnumValidator=function(e){return function(t){return e[t]||""}},e.BehaviorMapValidator=function(e){return function(t){return e[t]||""}},e.BehaviorValueValidator=function(t){return function(e){var n;return dt(t,function(t){if(t===e)return n=t,-1}),n||""}},e.ClickAnalyticsPlugin=at;y=e,T="__esModule",tt={value:!0},at=Object.defineProperty;if(at)try{return void at(y,T,tt)}catch(se){}typeof tt.value!==undefined&&(y[T]=tt.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
5
+ var t=this,e=function(t){"use strict";var a="function",i="object",r="undefined",o="prototype",F="hasOwnProperty",n=Object,B=n[o],e=n.assign,R=n.create,c=n.defineProperty,p=B[F],s=null;function U(t){return void 0===t&&(t=!0),s&&t||(typeof globalThis!==r&&globalThis&&(s=globalThis),typeof self!==r&&self&&(s=self),typeof window!==r&&window&&(s=window),typeof global!==r&&global&&(s=global)),s}function j(t){throw new TypeError(t)}(U()||{}).Symbol,(U()||{}).Reflect;var e=e||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])B[F].call(e,i)&&(t[i]=e[i]);return t},V=function(t,e){return(V=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[F](n)&&(t[n]=e[n])})(t,e)};function H(t,e){function n(){this.constructor=t}typeof e!==a&&null!==e&&j("Class extends value "+e+" is not a constructor or null"),V(t,e),t[o]=null===e?function(t){if(R)return R(t);if(null==t)return{};var e=typeof t;function n(){}return e!==i&&e!==a&&j("Object prototype may only be an Object:"+t),n[o]=t,new n}(e):(n[o]=e[o],new n)}var l="constructor",d="prototype",h="function",v="_dynInstFuncs",K="_isDynProxy",m="_dynClass",z="_dynInstChk",T=z,q="_dfOpts",W="_unknown_",G="__proto__",J="useBaseInst",X="setInstFuncs",u=Object,C=u.getPrototypeOf,Y=0;function y(t,e){return t&&u[d].hasOwnProperty.call(t,e)}function $(t){return t&&(t===u[d]||t===Array[d])}function Q(t){return $(t)||t===Function[d]}function _(t){if(t){if(C)return C(t);t=t[G]||t[d]||(t[l]?t[l][d]:null);if(t)return t}return null}function b(t,e){var n=[],a=u.getOwnPropertyNames;if(a)n=a(t);else for(var i in t)"string"==typeof i&&y(t,i)&&n.push(i);if(n&&0<n.length)for(var r=0;r<n.length;r++)e(n[r])}function Z(t,e,n){return e!==l&&typeof t[e]===h&&(n||y(t,e))}function tt(t){throw new TypeError("DynamicProto: "+t)}function et(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function nt(t,e){return y(t,d)?t.name||e||W:((t||{})[l]||{}).name||e||W}function at(t,a,e,n){y(t,d)||tt("theClass is an invalid class definition.");var i,r,o,c,s,l,u=t[d],f=(function(t){if(C)for(var e=[],n=_(a);n&&!Q(n)&&!et(e,n);){if(n===t)return 1;e.push(n),n=_(n)}}(u)||tt("["+nt(t)+"] is not in class hierarchy of ["+nt(a)+"]"),null),t=(y(u,m)?f=u[m]:(f="_dynCls$"+nt(t,"_")+"$"+Y,Y++,u[m]=f),at[q]),g=!!t[J],p=(g&&n&&n[J]!==undefined&&(g=!!n[J]),r={},b(i=a,function(t){!r[t]&&Z(i,t,!1)&&(r[t]=i[t])}),r),g=(e(a,function(t,e,n,r){function a(t,e,n){var a,i=e[n];return i[K]&&r&&!1!==(a=t[v]||{})[T]&&(i=(a[e[m]]||{})[n]||i),function(){return i.apply(t,arguments)}}for(var i={},o=(b(n,function(t){i[t]=a(e,n,t)}),_(t)),c=[];o&&!Q(o)&&!et(c,o);)b(o,function(t){!i[t]&&Z(o,t,!C)&&(i[t]=a(e,o,t))}),c.push(o),o=_(o);return i}(u,a,p,g)),!!C&&!!t[X]);o=u,e=f,c=a,s=p,t=!1!==(g=g&&n?!!n[X]:g),$(o)||(u=c[v]=c[v]||{},l=u[e]=u[e]||{},!1!==u[T]&&(u[T]=!!t),b(c,function(t){var n,a,i;Z(c,t,!1)&&c[t]!==s[t]&&(l[t]=c[t],delete c[t],y(o,t)&&(!o[t]||o[t][K])||(o[t]=(n=o,a=t,(i=function(){var t,e;return(function(t,e,n,a){var i=null;if(t&&y(n,m)){var r=t[v]||{};if((i=(r[n[m]]||{})[e])||tt("Missing ["+e+"] "+h),!i[z]&&!1!==r[T]){for(var o=!y(t,e),c=_(t),s=[];o&&c&&!Q(c)&&!et(s,c);){var l=c[e];if(l){o=l===a;break}s.push(c),c=_(c)}try{o&&(t[e]=i),i[z]=1}catch(u){r[T]=!1}}}return i}(this,a,n,i)||(typeof(e=(e=n[t=a])===i?_(n)[t]:e)!==h&&tt("["+t+"] is not a "+h),e)).apply(this,arguments)})[K]=1,i)))}))}at[q]={setInstFuncs:!0,useBaseInst:!0};var I={CRITICAL:1,1:"CRITICAL",WARNING:2,2:"WARNING"},it={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},rt="attachEvent",ot="addEventListener",f="toString",ct="constructor",st=c,c=n.freeze,g=Array.isArray,lt=B[f],ut=p[f],ft=ut.call(n),gt=Object.getPrototypeOf;function pt(t){return t===undefined||typeof t===r}function x(t){return null===t||pt(t)}function dt(t){return!(!t||typeof t!==i)}function A(t){return!(!t||typeof t!==a)}function ht(t,e,n,a){if(void 0===a&&(a=!1),!x(t))try{x(t[ot])?x(t[rt])||t[rt]("on"+e,n):t[ot](e,n,a)}catch(i){}}function vt(t,e){if(t)for(var n in t)p.call(t,n)&&e.call(t,n,t[n])}var P=g||function(t){return!(!t||"[object Array]"!==lt.call(t))};function mt(t){return t&&"object"==typeof t&&(!(t=(gt||function(t){if(t){if(gt)return gt(t);t=t.__proto__||t[o]||t[ct];if(t)return t}return null})(t))||typeof(t=t[ct]&&p.call(t,ct)?t[ct]:t)===a&&ut.call(t)===ft)}function Tt(t,e,n){var a=t.length;try{for(var i=0;i<a&&!(i in t&&-1===e.call(n||t,t[i],i,t));i++);}catch(r){}}var Ct=c||function(t){return t};function yt(){var t=Date;return t.now?t.now():(new t).getTime()}var _t="window",bt="JSON";function N(t){var e=U();return e&&e[t]?e[t]:t===_t&&It()?window:null}function It(){return!(typeof window!==i||!window)}function xt(){return It()?window:N(_t)}function At(){return typeof document===i&&document?document:N("document")}function Pt(){return typeof location===i&&location?location:N("location")}function Nt(){return typeof JSON===i&&JSON||null!==N(bt)}function Dt(){return Nt()?JSON||N(bt):null}function kt(t){var e=Object[o].toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":Nt()&&(n=Dt().stringify(t)),e+n}var Et=null;function wt(t){return t?'"'+t.replace(/\"/g,"")+'"':""}function St(t,e){var n,a=typeof console!==r?console:N("console");a&&(n="log",A(a[n=a[t]?t:n])&&a[n](e))}Lt.dataType="MessageData";var Mt=Lt;function Lt(t,e,n,a){void 0===n&&(n=!1),this.messageId=t,this.message=(n?"AI: ":"AI (Internal): ")+t;n="",Nt()&&(n=Dt().stringify(a)),t=(e?" message:"+wt(e):"")+(a?" props:"+wt(n):"");this.message+=t}var Ot=function oe(i){this.identifier="DiagnosticLogger",this.queue=[];var c=0,s={};at(oe,this,function(r){function t(t,e){t=i[t];return x(t)?e:t}function o(t,e){var n,a=(n=(n=Et)||!0===i.disableDbgExt?n:Et||(a=N("Microsoft"),Et=a?a.ApplicationInsights:Et))?n.ChromeDbgExt:null;a&&a.diagLog&&a.diagLog(t,e)}x(i)&&(i={}),r.consoleLoggingLevel=function(){return t("loggingLevelConsole",0)},r.telemetryLoggingLevel=function(){return t("loggingLevelTelemetry",1)},r.maxInternalMessageLimit=function(){return t("maxMessageLimit",25)},r.enableDebugExceptions=function(){return t("enableDebugExceptions",!1)},r.throwInternal=function(t,e,n,a,i){e=new Mt(e,n,i=void 0!==i&&i,a);if(r.enableDebugExceptions())throw e;n=t===I.CRITICAL?"errorToConsole":"warnToConsole";pt(e.message)?o("throw"+(t===I.CRITICAL?"Critical":"Warning"),e):(a=r.consoleLoggingLevel(),i?(i=+e.messageId,!s[i]&&t<=a&&(r[n](e.message),s[i]=!0)):t<=a&&r[n](e.message),r.logInternalMessage(t,e))},r.warnToConsole=function(t){St("warn",t),o("warning",t)},r.errorToConsole=function(t){St("error",t),o("error",t)},r.resetInternalMessageCount=function(){c=0,s={}},r.logInternalMessage=function(t,e){var n,a;c>=r.maxInternalMessageLimit()||(a=!0,n="AITR_"+e.messageId,s[n]?a=!1:s[n]=!0,a&&(t<=r.telemetryLoggingLevel()&&(r.queue.push(e),c++,o(t===I.CRITICAL?"error":"warn",e)),c===r.maxInternalMessageLimit()&&(a=new Mt(it.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),r.queue.push(a),t===I.CRITICAL?r.errorToConsole(n):r.warnToConsole(n))))}})},Ft=(D.ParentContextKey="parent",D.ChildrenContextKey="childEvts",D);function D(t,i,e){var a,r=this,o=!1;r.start=yt(),r.name=t,r.isAsync=e,r.isChildEvt=function(){return!1},A(i)&&(o=function(t){if(st)try{var e={enumerable:!0,configurable:!0,get:function(){return!a&&A(i)&&(a=i(),i=null),a}};return st(t,"payload",e),!0}catch(n){}return!1}(r)),r.getCtx=function(t){return t?(t===D.ParentContextKey||t===D.ChildrenContextKey?r:r.ctx||{})[t]:null},r.setCtx=function(t,e){t&&(t===D.ParentContextKey?(r[t]||(r.isChildEvt=function(){return!0}),r[t]=e):t===D.ChildrenContextKey?r[t]=e:(r.ctx=r.ctx||{})[t]=e)},r.complete=function(){var t=0,e=r.getCtx(D.ChildrenContextKey);if(P(e))for(var n=0;n<e.length;n++){var a=e[n];a&&(t+=a.time)}r.time=yt()-r.start,r.exTime=r.time-t,r.complete=function(){},!o&&A(i)&&(r.payload=i())}}var Bt="CoreUtils.doPerf";function Rt(t,e,n,a,i){if(t)if(t=A(t.getPerfMgr)?t.getPerfMgr():t){var r,o=void 0,c=t.getCtx(Bt);try{if(o=t.create(e(),a,i))return c&&o.setCtx&&(o.setCtx(Ft.ParentContextKey,c),c.getCtx&&c.setCtx&&((r=c.getCtx(Ft.ChildrenContextKey))||(r=[],c.setCtx(Ft.ChildrenContextKey,r)),r.push(o))),t.setCtx(Bt,o),n(o)}catch(s){o&&o.setCtx&&o.setCtx("exception",s)}finally{o&&t.fire(o),t.setCtx(Bt,c)}}n()}var Ut="TelemetryPluginChain",jt="_hasRun",Vt="_getTelCtx",Ht=0;function Kt(t,o,n,e){var a=null,i=null,a=e?function(t,e,n,a){for(;t;){if(t.getPlugin()===a)return t;t=t.getNext()}return zt([a],e,n)}(t,o,n,e):t,r={core:function(){return n},diagLog:function(){return(n||{}).logger||new Ot(o)},getCfg:function(){return o},getExtCfg:c,getConfig:function(t,e,n){void 0===n&&(n=!1);var a,t=c(t,null);return t&&!x(t[e])?a=t[e]:o&&!x(o[e])&&(a=o[e]),x(a)?n:a},hasNext:function(){return null!=a},getNext:function(){return a},setNext:function(t){a=t},processNext:function(e){s(function(t){t.processTelemetry(e,r)})},iterate:function(e){for(;a;)s(function(t){t=t.getPlugin();t&&e(t)})},createNew:function(t,e){return Kt((t=P(t=void 0===t?null:t)?zt(t,o,n,e):t)||a,o,n,e)},onComplete:function(t){i=t}};function c(t,e,n){var a,i,r;return void 0===e&&(e={}),void 0===n&&(n=0),(a=o&&(i=o.extensionConfig)&&t?i[t]:a)?dt(e)&&0!==n&&(r=function g(){var t=arguments,e=t[0]||{},n=t.length,a=!1,i=1;for(0<n&&"boolean"==typeof e&&(a=e,e=t[i]||{},i++),dt(e)||(e={});i<n;i++){var r,o,c,s,l=t[i],u=P(l),f=dt(l);for(r in l)(u&&r in l||f&&p.call(l,r))&&(o=l[r],c=void 0,a&&o&&((c=P(o))||mt(o))&&(s=e[r],c?P(s)||(s=[]):mt(s)||(s={}),o=g(a,s,o)),o!==undefined&&(e[r]=o))}return e}(!0,e,a),o&&2===n&&vt(e,function(t){var e;x(r[t])&&!x(e=o[t])&&(r[t]=e)})):a=e,a}function s(t){var e=a;e?(a=e.getNext(),t(e)):i&&(i(),i=null)}return r}function zt(t,e,n,a){var i,r=null,o=!a;return P(t)&&0<t.length&&(i=null,Tt(t,function(t){(o=!o&&a===t||o)&&t&&A(t.processTelemetry)&&(t=qt(t,e,n),r=r||t,i&&i._setNext(t),i=t)})),a&&!r?zt([a],e,n):r}function qt(s,l,u){var f=null,n=A(s.processTelemetry),a=A(s.setNextPlugin),g=s?s.identifier+"-"+s.priority+"-"+Ht++:"Unknown-0-"+Ht++,p={getPlugin:function(){return s},getNext:function(){return f},processTelemetry:function(e,t){i(t,function(t){return!!n&&(a&&s.setNextPlugin(f),s.processTelemetry(e,t),!0)},function(t){f.processTelemetry(e,t)},"processTelemetry",function(){return{item:e}},!e.sync)},_id:g,_setNext:function(t){f=t}};function i(a,i,r,o,t,e){a=(a=a||(s&&A(s[Vt])?s[Vt]():a))||Kt(p,l,u);var n=s?s.identifier:Ut,c=(c=a[jt])||(a[jt]={});Rt(a.core(),function(){return n+":"+o},function(){var t=!(c[g]=!0);if(a.setNext(f),s)try{var e=f?f._id:"";e&&(c[e]=!1),t=i(a)}catch(n){e=!f||c[f._id];e&&(t=!0),f&&e||a.diagLog().throwInternal(I.CRITICAL,it.PluginException,"Plugin ["+s.identifier+"] failed during "+o+" - "+kt(n)+", run flags: "+kt(c))}f&&!t&&r(a)},t,e)}return Ct(p)}var Wt="getPlugin",f=function ce(){var c,s,l,e,u=this;function n(t){var e,t=t=void 0===t?null:t;return t||(e=s||Kt(null,{},u.core),t=l&&l[Wt]?e.createNew(null,l[Wt]):e.createNew(null,l)),t}c=!1,u.core=null,l=s=null,e=[],at(ce,u,function(t){t.initialize=function(t,e,n,a){t&&(o="extensionConfig",r=i=[],t&&(r=t[o])!==i&&x(r)&&(t[o]=r=i)),!a&&e&&(a=e.getProcessTelContext().getNext());var i,r,o=l;l&&l[Wt]&&(o=l[Wt]()),u.core=e,s=Kt(a,t,e,o),c=!0},t._addHook=function(t){t&&(P(t)?e=e.concat(t):e.push(t))}}),u.diagLog=function(t){return n(t).diagLog()},u.isInitialized=function(){return c},u.setInitialized=function(t){c=t},u.setNextPlugin=function(t){l=t},u.processNext=function(t,e){e?e.processNext(t):l&&A(l.processTelemetry)&&l.processTelemetry(t,null)},u._getTelCtx=n},Gt="not_specified",k=e(e({},it),{CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103});function Jt(t){for(var e in t)E(t[e])&&("{}"!==JSON.stringify(t[e])||"callback"===e)||delete t[e]}function E(t){return!(x(t)||""===t)}function Xt(t,e){return E(t.getAttribute(e))}function Yt(t,e,n){var a=t;if(a){for(;!e(a,n);)if(!(a=a.parentNode)||!a.getAttribute)return null;return a}}function $t(t){return"A"===t.nodeName}function w(){var t={},e=!1,n=0,a=arguments.length,i=Object.prototype,r=arguments;for("[object Boolean]"===i.toString.call(r[0])&&(e=r[0],n++);n<a;n++){o=void 0;var o,c,s,l=r[n];for(o in l)s=o,(c=l)&&p.call(c,s)&&(e&&"[object Object]"===i.toString.call(l[o])?t[o]=w(!0,t[o],l[o]):t[o]=l[o])}return t}var Qt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function S(t,e,n,a,i,r){this._clickAnalyticsPlugin=t,this._config=e,this._contentHandler=n,this._pageTagsCallback=a,this._metaTags=i,this._traceLogger=r,this._pageTags={}}S.prototype.setBasicProperties=function(t,e){var n;E(t.name)||(t.pageName=(n=this._config,e&&e.pageName?e.pageName:n.callback&&A(n.callback.pageName)?n.callback.pageName():n.coreData&&n.coreData.pageName?n.coreData.pageName:(e=At())&&e.title||"")),!E(t.uri)&&It&&(t.uri=(n=this._config,e=Pt(),n.coreData&&n.coreData.requestUri&&""!==n.coreData.requestUri?n.coreData.requestUri:e?e.protocol+"//"+(e.hostname||e.host)+(E(e.port)?":"+e.port:"")+e.pathname:null))},S.prototype.setCommonProperties=function(t,e){this.setBasicProperties(t,e),this._setPageTags(t,e),this._pageTypeMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"pageType"),this._behaviorMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"behavior"),E(e.pageType)&&(t.pageType=e.pageType),E(this._pageTypeMetaTag)&&!E(t.pageType)&&(t.pageType=this._pageTypeMetaTag)},S.prototype._setPageTags=function(t,e){if(this._pageTagsCallback&&(this._pageTags=w(!0,this._pageTags,this._pageTagsCallback())),E(e.pageTags)&&(this._pageTags=w(!0,this._pageTags,e.pageTags)),this._metaTags)for(var n in this._pageTags.metaTags={},this._metaTags)"behavior"!=n&&"market"!=n&&"pageType"!=n&&(this._pageTags.metaTags[n]=this._metaTags[n]);t.properties=t.properties||{},t.properties.pageTags=this._pageTags},S.prototype._getBehavior=function(t){var e;return t&&E(t.behavior)?e=t.behavior:E(this._behaviorMetaTag)&&(e=this._behaviorMetaTag),this._getValidBehavior(e)},S.prototype._getValidBehavior=function(t){return this._config.behaviorValidator(t)},S.prototype._getMetaData=function(t,e,n){return e&&e[n]?e[n]:t?t[n]:""},H(M,Zt=S),M.prototype.trackPageAction=function(t,e){var n=this,a={name:"Microsoft.ApplicationInsights.{0}.Event",baseType:"EventData",ext:{web:{}},data:{},baseData:{}};this._populateEventDataIfPresent(a.baseData,"name",t.name),this._populateEventDataIfPresent(a.data,"baseTypeSource","ClickEvent"),this._populateEventDataIfPresent(a.data,"uri",t.uri),this._populateEventDataIfPresent(a.data,"pageType",t.pageType),this._populateEventDataIfPresent(a.data,"properties",t.properties),this._populateEventDataIfPresent(a.data,"actionType",t.actionType),this._populateEventDataIfPresent(a.data,"behavior",t.behavior),this._populateEventDataIfPresent(a.data,"clickCoordinates",t.clickCoordinates),this._populateEventDataIfPresent(a.data,"content",t.content),this._populateEventDataIfPresent(a.data,"targetUri",t.targetUri),this._populateEventDataIfPresent(a.data,"timeToAction",t.timeToAction),this._populateEventDataIfPresent(a.data,"refUri",t.refUri),this._populateEventDataIfPresent(a.data,"pageName",t.pageName),this._populateEventDataIfPresent(a.data,"parentId",t.parentId),e&&vt(e,function(t,e){a.data[t]||n._populateEventDataIfPresent(a.data,t,e)}),this._clickAnalyticsPlugin.core.track(a)},M.prototype.capturePageAction=function(t,e,n,a){e=E(e)?e:{};var i,r={name:""},n=E(n)?n:{},o=(this.setCommonProperties(r,e),r.behavior=this._getBehavior(e),{});a&&(r.behavior=this._config.defaultRightClickBhvr),t&&(r.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(){if(e){var t=Yt(e,$t);if(1===t.length){t=t[0];if(t.href)return t.href;if(t.src)return t.src}}return""}();break;case"INPUT":var n=e.type;n&&Qt[n.toUpperCase()]&&(n=Pt()||{},t=e.form?e.form.action||n.pathname||"":n.pathname||"")}return t}(t),(o=this._contentHandler.getElementContent(t)).bhvr&&!E(e.behavior)&&(a="bhvr",(t=o)&&t[a]&&(i=t[a],delete t[a]),a=i,r.behavior=this._getValidBehavior(a)),E(o.id)||E(o.contentName)||this._traceLogger.throwInternal(I.WARNING,k.InvalidContentBlob,"Missing attributes id or contentName in click event. Click event information will still be collected!")),r.name=o.id||o.contentName||Gt,r.parentId=o.parentid||o.parentName||Gt,E(e.actionType)&&(r.actionType=e.actionType),E(e.clickCoordinateX)&&E(e.clickCoordinateY)&&(r.clickCoordinates=e.clickCoordinateX+"X"+e.clickCoordinateY),this._sanitizePageActionEventContent(o),r.content="["+JSON.stringify(w(o,e&&e.contentTags?e.contentTags:{}))+"]",r.timeToAction=this._getTimeToClick(),r.refUri=E(e.refUri)?e.refUri:this._config.coreData.referrerUri,this._isUndefinedEvent(r)||this.trackPageAction(r,n)},M.prototype._getTimeToClick=function(){var t=N("performance");if(t&&t.timing){t=t.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},M.prototype._populateEventDataIfPresent=function(t,e,n){E(n)&&(t[e]=n)},M.prototype._sanitizePageActionEventContent=function(t){t&&(delete t.id,delete t.parentid,delete t.parentname,this._config&&this._config.dataTags&&E(this._config.dataTags.parentDataTag)&&delete t[this._config.dataTags.parentDataTag])},M.prototype._isUndefinedEvent=function(t){return!(!this._config.dropInvalidEvents||t.name!==Gt||t.parentId!==Gt||"[{}]"!==t.content)};var Zt,te=M;function M(){return null!==Zt&&Zt.apply(this,arguments)||this}var ee={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},ne=(ae.prototype.click=function(){var e=this,t=xt(),n=At();t?(ht(t,~navigator.appVersion.indexOf("MSIE")?"click":"mousedown",function(t){e._processClick(t)}),ht(t,"keyup",function(t){e._processClick(t)})):n&&(ht(n,"click",function(t){e._processClick(t)}),ht(n,"keyup",function(t){e._processClick(t)}))},ae.prototype.capturePageAction=function(t,e,n,a){E(Yt(t,Xt,this._config.dataTags.customDataPrefix+this._config.dataTags.dntDataTag))||this._pageAction.capturePageAction(t,e,n,a)},ae.prototype._processClick=function(t){var e={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=xt();if(t=x(t)&&n?n.event:t){var a=t.srcElement||t.target,i={clickCoordinateX:t.pageX,clickCoordinateY:t.pageY},r=function(t){try{if("which"in t)return 3===t.which;if("button"in t)return 2===t.button}catch(e){}}(t);if(r)i.actionType="CR";else if(function(t){try{if("which"in t)return 1===t.which;if("button"in t)return 1===t.button}catch(e){}}(t))i.actionType="CL";else if(function(t){try{if("keyCode"in t)return 13===t.keyCode}catch(e){}}(t))i.actionType="KE";else if(function(t){try{if("keyCode"in t)return 32===t.keyCode}catch(e){}}(t))i.actionType="KS";else{if(!function(t){try{if("which"in t)return 2===t.which;if("button"in t)return 4===t.button}catch(e){}}(t))return;i.actionType="CM"}for(;a&&a.tagName;){var o=(a=a.control&&e[a.control.tagName.toUpperCase()]?a.control:a).tagName.toUpperCase();if(e[o]){"INPUT"==o&&!ee[a.type.toUpperCase()]||this.capturePageAction(a,i,{},r);break}a=a.parentElement||a.parentNode}}},ae);function ae(t,e,n,a){this._analyticsPlugin=t,this._config=e,this._pageAction=n,this._traceLogger=a}L.prototype.getMetadata=function(){return E(this._config.dataTags.metaDataPrefix)?this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,this._config.dataTags.metaDataPrefix,!1):this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,"",!1)},L.prototype.getElementContent=function(t){if(!t)return{};var e,n,a={},i=this._config.dataTags.customDataPrefix,r=i+this._config.dataTags.aiBlobAttributeTag;if(E(this._config.dataTags.parentDataTag)&&(n=i+this._config.dataTags.parentDataTag),this._isTracked(t,i,r))a=w(a,this._populateElementContentwithDataTag(t,i,n,r));else if(e=t.getAttribute(r))try{a=JSON.parse(e)}catch(o){this._traceLogger.throwInternal(I.CRITICAL,k.CannotParseAiBlobValue,"Can not parse "+e)}else a=w(a,this._populateElementContent(t,i,n,r));return Jt(a),n?w(a,this._getParentDetails(t,a,i,r)):a},L.prototype._captureElementContentWithDataTag=function(t,e,n){for(var a,i=0;i<t.attributes.length;i++)(a=t.attributes[i]).name.indexOf(n)||(e[a.name.replace(n,"")]=a.value)},L.prototype._walkUpDomChainCaptureData=function(t,e,n,a,i){for(var r=t,o=!1,c=!1;!x(r)&&!x(r.attributes);){for(var s=r.attributes,l=0;l<s.length;l++){var u,f=s[l];f.name.indexOf(n)||(f.name.indexOf(a)||(o=!0),f.name.indexOf(i)&&(u=f.name.replace(n,""),c&&"id"===u||E(e[u])||(e[u]=f.value)))}if(o)break;c=!0,r=r.parentNode}},L.prototype._populateElementContent=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t),i={id:r.id||"",contentName:r.contentName||""};return E(n)&&this._walkUpDomChainCaptureData(t,i,e,n,a),i.id||i.contentName||this._traceLogger.throwInternal(I.WARNING,k.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._populateElementContentwithDataTag=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t);return E(n)?this._walkUpDomChainCaptureData(t,i,e,n,a):this._captureElementContentWithDataTag(t,i,e),this._config.dataTags.useDefaultContentNameOrId&&(E(i.id)||(i.id=r.id||""),i.contentName=r.contentName||""),i.id||i.contentName||this._traceLogger.throwInternal(I.WARNING,k.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._getMetaDataFromDOM=function(t,e,n){for(var a={},i=document.querySelectorAll("meta"),r=0;r<i.length;r++){var o=i[r];!o.name||!t&&o.name.indexOf(e)||(a[n?o.name.replace(e,""):o.name]=o.content)}return a},L.prototype._getDefaultContentName=function(t,e){if(!1===e||!t.tagName)return"";var n,a=At()||{};switch(t.tagName){case"A":n=a.all?t.innerText||t.innerHTML:t.text||t.innerHTML;break;case"IMG":case"AREA":n=t.alt;break;default:n=t.value||t.name||t.alt||t.innerText||t.id}return n.substring(0,200)},L.prototype._isTracked=function(t,e,n){for(var a=t.attributes,i=!1,r=0;r<a.length;r++){var o=a[r].name;if(o===n)return!1;o.indexOf(e)||(i=!0)}return i},L.prototype._getHtmlIdAndContentName=function(t){var e,n,a={};return t&&this._config.dataTags.useDefaultContentNameOrId&&(e=this._config.callback.contentName?this._config.callback.contentName(t,this._config.dataTags.useDefaultContentNameOrId):"",n=this._getDefaultContentName(t,this._config.dataTags.useDefaultContentNameOrId),a={id:t.id,contentName:e||n||t.getAttribute("alt")}),a},L.prototype._getParentDetails=function(t,e,n,a){var i=e.parentid,e=e.parentname;return i||e||!t?{}:this._populateParentInfo(t,n,a)},L.prototype._populateParentInfo=function(t,e,n){var a,i={},r=Yt(t.parentElement,this._isTracked,e);if(r){var n=r.getAttribute(n)||t[n];if(n){try{var o=JSON.parse(n)}catch(c){this._traceLogger.throwInternal(I.CRITICAL,k.CannotParseAiBlobValue,"Can not parse "+n)}o&&(a=o.id)}else a=r.getAttribute(e+"id")}return a?i.parentid=a:(n=this._getHtmlIdAndContentName(t.parentElement),i.parentid=n.id,i.parentname=n.contentName),i};var ie=L;function L(t,e){this._config=t,this._traceLogger=e}H(O,re=f),O.prototype.initialize=function(t,e,n,a){if(x(e))throw Error("Error initializing");t.extensionConfig=t.extensionConfig||[],t.extensionConfig[this.identifier]=t.extensionConfig[this.identifier]||{},this._config=function(t){var e,n,a={autoCapture:!0,callback:{pageActionPageTags:null},pageTags:{},coreData:{referrerUri:document.referrer,requestUri:"",pageName:"",pageType:""},dataTags:{useDefaultContentNameOrId:!1,aiBlobAttributeTag:"ai-blob",customDataPrefix:"data-",captureAllMetaDataContent:!1,dntDataTag:"ai-dnt"},behaviorValidator:function(t){return t||""},defaultRightClickBhvr:"",dropInvalidEvents:!1},i=[];for(e in a)"object"==typeof a[e]&&i.push(e);if(t){var r,o,c=t,s=i;for(r in Jt(c),s)s.hasOwnProperty(r)&&("object"==typeof c[o=s[r]]?Jt(c[o]):delete c[o]);return E(t.dataTags)&&(t.dataTags.customDataPrefix=E((n=t).dataTags.customDataPrefix)&&!n.dataTags.customDataPrefix.indexOf("data-")?t.dataTags.customDataPrefix:"data-"),w(!0,a,t)}}(t.extensionConfig[this.identifier]),re.prototype.initialize.call(this,t,e,n,a),this._contentHandler=this._contentHandler||new ie(this._config,this.diagLog());var i,t=this._contentHandler.getMetadata();this.pageAction=new te(this,this._config,this._contentHandler,this._config.callback.pageActionPageTags,t,this.diagLog()),this._autoCaptureHandler=this._autoCaptureHandler||new ne(this,this._config,this.pageAction,this.diagLog()),this._config.autoCapture&&this._autoCaptureHandler.click(),Tt(n,function(t){"AppInsightsPropertiesPlugin"===t.identifier&&(i=t)}),i&&i.context&&i.context.internal&&i.context.internal.sdkVersion&&(i.context.internal.sdkVersion+="_ClickPlugin"+O.Version)},O.prototype.processTelemetry=function(t,e){this.processNext(t,e)},O.prototype.trackPageAction=function(t,e){try{this.pageAction.trackPageAction(t,e)}catch(n){this.diagLog().throwInternal(I.CRITICAL,k.TrackPageActionEventFailed,"trackPageAction failed, page action event will not be collected: "+((t=n)&&"[object Error]"===lt.call(t)?t.name:""),{exception:kt(n)})}},O.Version="2.8.0-beta.2203-01";var re,g=O;function O(){var t=null!==re&&re.apply(this,arguments)||this;return t.identifier="ClickAnalyticsPlugin",t.priority=181,t}t.BehaviorEnumValidator=function(e){return function(t){return e[t]||""}},t.BehaviorMapValidator=function(e){return function(t){return e[t]||""}},t.BehaviorValueValidator=function(t){return function(e){var n;return Tt(t,function(t){if(t===e)return n=t,-1}),n||""}},t.ClickAnalyticsPlugin=g;c=t,e="__esModule",f={value:!0},g=Object.defineProperty;if(g)try{return void g(c,e,f)}catch(se){}typeof f.value!==undefined&&(c[e]=f.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
6
6
  //# sourceMappingURL=applicationinsights-clickanalytics-js.min.js.map