@microsoft/1ds-post-js 3.1.10 → 3.2.1

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 (57) hide show
  1. package/README.md +124 -6
  2. package/bundle/{ms.post-3.1.10.gbl.js → ms.post-3.2.1.gbl.js} +1502 -725
  3. package/bundle/ms.post-3.2.1.gbl.js.map +1 -0
  4. package/bundle/ms.post-3.2.1.gbl.min.js +7 -0
  5. package/bundle/ms.post-3.2.1.gbl.min.js.map +1 -0
  6. package/bundle/ms.post-3.2.1.integrity.json +46 -0
  7. package/bundle/{ms.post-3.1.10.js → ms.post-3.2.1.js} +1502 -725
  8. package/bundle/ms.post-3.2.1.js.map +1 -0
  9. package/bundle/ms.post-3.2.1.min.js +7 -0
  10. package/bundle/ms.post-3.2.1.min.js.map +1 -0
  11. package/bundle/ms.post.gbl.js +1501 -724
  12. package/bundle/ms.post.gbl.js.map +1 -1
  13. package/bundle/ms.post.gbl.min.js +2 -2
  14. package/bundle/ms.post.gbl.min.js.map +1 -1
  15. package/bundle/ms.post.integrity.json +17 -17
  16. package/bundle/ms.post.js +1501 -724
  17. package/bundle/ms.post.js.map +1 -1
  18. package/bundle/ms.post.min.js +2 -2
  19. package/bundle/ms.post.min.js.map +1 -1
  20. package/dist/ms.post.js +264 -149
  21. package/dist/ms.post.js.map +1 -1
  22. package/dist/ms.post.min.js +2 -2
  23. package/dist/ms.post.min.js.map +1 -1
  24. package/dist-esm/src/BatchNotificationActions.js +1 -1
  25. package/dist-esm/src/ClockSkewManager.js +1 -1
  26. package/dist-esm/src/Constants.d.ts +1 -0
  27. package/dist-esm/src/Constants.js +2 -1
  28. package/dist-esm/src/Constants.js.map +1 -1
  29. package/dist-esm/src/DataModels.d.ts +49 -0
  30. package/dist-esm/src/DataModels.js +1 -1
  31. package/dist-esm/src/EventBatch.js +1 -1
  32. package/dist-esm/src/HttpManager.d.ts +1 -1
  33. package/dist-esm/src/HttpManager.js +102 -58
  34. package/dist-esm/src/HttpManager.js.map +1 -1
  35. package/dist-esm/src/Index.js +1 -1
  36. package/dist-esm/src/KillSwitch.js +1 -1
  37. package/dist-esm/src/PostChannel.d.ts +0 -4
  38. package/dist-esm/src/PostChannel.js +171 -104
  39. package/dist-esm/src/PostChannel.js.map +1 -1
  40. package/dist-esm/src/RetryPolicy.d.ts +20 -25
  41. package/dist-esm/src/RetryPolicy.js +35 -44
  42. package/dist-esm/src/RetryPolicy.js.map +1 -1
  43. package/dist-esm/src/Serializer.js +1 -1
  44. package/dist-esm/src/typings/XDomainRequest.js +1 -1
  45. package/package.json +2 -2
  46. package/src/Constants.ts +1 -0
  47. package/src/DataModels.ts +62 -1
  48. package/src/HttpManager.ts +110 -69
  49. package/src/PostChannel.ts +203 -127
  50. package/src/RetryPolicy.ts +33 -38
  51. package/bundle/ms.post-3.1.10.gbl.js.map +0 -1
  52. package/bundle/ms.post-3.1.10.gbl.min.js +0 -7
  53. package/bundle/ms.post-3.1.10.gbl.min.js.map +0 -1
  54. package/bundle/ms.post-3.1.10.integrity.json +0 -46
  55. package/bundle/ms.post-3.1.10.js.map +0 -1
  56. package/bundle/ms.post-3.1.10.min.js +0 -7
  57. package/bundle/ms.post-3.1.10.min.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 3.1.10
2
+ * 1DS JS SDK POST plugin, 3.2.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
6
- !function(t){"use strict";var a="function",X="object",G="undefined",u="prototype",i="hasOwnProperty",r=Object,s=r[u],o=r.assign,l=(r.create,r.defineProperty),c=s[i],d=null;function g(e){return void 0===e&&(e=!0),d&&e||(typeof globalThis!==G&&globalThis&&(d=globalThis),typeof self!==G&&self&&(d=self),typeof window!==G&&window&&(d=window),typeof global!==G&&global&&(d=global)),d}function h(e){throw new TypeError(e)}(g()||{}).Symbol,(g()||{}).Reflect;var e=o||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])s[i].call(n,o)&&(e[o]=n[o]);return e},p=function(e,n){return(p=r.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)},y="constructor",v="prototype",m="function",C="_dynInstFuncs",T="_isDynProxy",S="_dynClass",b="_dynInstChk",x=b,w="_dfOpts",I="_unknown_",R="__proto__",E="useBaseInst",P="setInstFuncs",_=Object,L=_.getPrototypeOf,M=0;function A(e,n){return e&&_[v].hasOwnProperty.call(e,n)}function F(e){return e&&(e===_[v]||e===Array[v])}function k(e){return F(e)||e===Function[v]}function O(e){if(e){if(L)return L(e);e=e[R]||e[v]||(e[y]?e[y][v]:null);if(e)return e}return null}function B(e,n){var t=[],r=_.getOwnPropertyNames;if(r)t=r(e);else for(var o in e)"string"==typeof o&&A(e,o)&&t.push(o);if(t&&0<t.length)for(var i=0;i<t.length;i++)n(t[i])}function N(e,n,t){return n!==y&&typeof e[n]===m&&(t||A(e,n))}function K(e){throw new TypeError("DynamicProto: "+e)}function H(e,n){for(var t=e.length-1;0<=t;t--)if(e[t]===n)return 1}function D(e,n){return A(e,v)?e.name||n||I:((e||{})[y]||{}).name||n||I}function $(e,r,n,t){A(e,v)||K("theClass is an invalid class definition.");var c,o,i,a,f,d,u=e[v],s=(function(e){if(L)for(var n=[],t=O(r);t&&!k(t)&&!H(n,t);){if(t===e)return 1;n.push(t),t=O(t)}}(u)||K("["+D(e)+"] is not in class hierarchy of ["+D(r)+"]"),null),e=(A(u,S)?s=u[S]:(s="_dynCls$"+D(e,"_")+"$"+M,M++,u[S]=s),$[w]),l=!!e[E],g=(l&&t&&t[E]!==undefined&&(l=!!t[E]),o={},B(c=r,function(e){!o[e]&&N(c,e,!1)&&(o[e]=c[e])}),o),l=(n(r,function(e,n,t,i){function r(e,n,t){var r,o=n[t];return o[T]&&i&&!1!==(r=e[C]||{})[x]&&(o=(r[n[S]]||{})[t]||o),function(){return o.apply(e,arguments)}}for(var o={},a=(B(t,function(e){o[e]=r(n,t,e)}),O(e)),u=[];a&&!k(a)&&!H(u,a);)B(a,function(e){!o[e]&&N(a,e,!L)&&(o[e]=r(n,a,e))}),u.push(a),a=O(a);return o}(u,r,g,l)),!!L&&!!e[P]);i=u,n=s,a=r,f=g,e=!1!==(l=l&&t?!!t[P]:l),F(i)||(u=a[C]=a[C]||{},d=u[n]=u[n]||{},!1!==u[x]&&(u[x]=!!e),B(a,function(e){var t,r,o;N(a,e,!1)&&a[e]!==f[e]&&(d[e]=a[e],delete a[e],A(i,e)&&(!i[e]||i[e][T])||(i[e]=(t=i,r=e,(o=function(){var e,n;return(function(e,n,t,c){var r=null;if(e&&A(t,S)){var o=e[C]||{};if((r=(o[t[S]]||{})[n])||K("Missing ["+n+"] "+m),!r[b]&&!1!==o[x]){for(var i=!A(e,n),a=O(e),u=[];i&&a&&!k(a)&&!H(u,a);){var s=a[n];if(s){i=s===c;break}u.push(a),a=O(a)}try{i&&(e[n]=r),r[b]=1}catch(l){o[x]=!1}}}return r}(this,r,t,o)||(typeof(n=(n=t[e=r])===o?O(t)[e]:n)!==m&&K("["+e+"] is not a "+m),n)).apply(this,arguments)})[T]=1,o)))}))}$[w]={setInstFuncs:!0,useBaseInst:!0};var j={CRITICAL:1,1:"CRITICAL",WARNING:2,2:"WARNING"},q={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},z="attachEvent",Z="addEventListener",Y=l;function ee(e){return e===undefined||typeof e===G}function V(e){return null===e||ee(e)}function ne(e,n){return e&&c.call(e,n)}function te(e){return typeof e===X}function f(e){return typeof e===a}function re(e,n,t,r){void 0===r&&(r=!1);var o=!1;if(!V(e))try{V(e[Z])?V(e[z])||(e[z]("on"+n,t),o=!0):(e[Z](n,t,r),o=!0)}catch(i){}return o}function oe(e,n){if(e)for(var t in e)c.call(e,t)&&n.call(e,t,e[t])}function ie(e,n){var t=!1;if(e&&n){var r=n.length;if(e===n)return!0;if(e.length>=r){for(var o=0;o<r;o++)if(e[o]!==n[o])return!1;t=!0}}return t}function W(e){return"[object Array]"===s.toString.call(e)}function ae(e){return"string"==typeof e}function ue(e){return"number"==typeof e}function U(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){}}function se(e,n,t){var r=e.length,t=t||0;try{for(var o=Math.max(0<=t?t:r-Math.abs(t),0);o<r;o++)if(o in e&&e[o]===n)return o}catch(i){}return-1}function le(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}var ce=!{toString:null}.propertyIsEnumerable("toString"),fe=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function de(e){var n,t=typeof e,r=(t===a||t===X&&null!==e||h("objKeys called on non-object"),[]);for(n in e)e&&c.call(e,n)&&r.push(n);if(ce)for(var o=fe.length,i=0;i<o;i++)e&&c.call(e,fe[i])&&r.push(fe[i]);return r}function ge(){var e=Date;return e.now?e.now():(new e).getTime()}function ve(e){return e&&r(o?o({},e):e)}var he="window",pe="document",ye="navigator",me="location",Ce="JSON",Te="ReactNative",Se=null,be=null;function xe(e,n){var t,r=!1;if(e){try{(r=n in e)||(t=e[u])&&(r=n in t)}catch(o){}if(!r)try{r=!ee((new e)[n])}catch(o){}}return r}function Q(e){var n=g();return n&&n[e]?n[e]:e===he&&we()?window:null}function we(){return typeof window===X&&window}function Ie(){return we()?window:Q(he)}function Re(){return typeof document===X&&document?document:Q(pe)}function Ee(){return!(typeof navigator!==X||!navigator)}function Pe(){return Ee()?navigator:Q(ye)}function _e(){return typeof JSON===X&&JSON||null!==Q(Ce)}function Le(){return _e()?JSON||Q(Ce):null}function Me(){var e=Pe();return e&&e.product&&e.product===Te}function Ae(e){var n=Object[u].toString.call(e),t="";return"[object Error]"===n?t="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":_e()&&(t=Le().stringify(e)),n+t}function Fe(){return be=null===be?Ee()&&!!Pe().sendBeacon:be}function ke(){var e=!1;try{e=!!Q("XMLHttpRequest")}catch(n){}return e}var Oe=null;function Be(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Ne(e,n){var t,r=typeof console!==G?console:Q("console");r&&(t="log",f(r[t=r[e]?e:t])&&r[t](n))}He.dataType="MessageData";var Ke=He;function He(e,n,t,r){void 0===t&&(t=!1),this.messageId=e,this.message=(t?"AI: ":"AI (Internal): ")+e;t="",_e()&&(t=Le().stringify(r)),e=(n?" message:"+Be(n):"")+(r?" props:"+Be(t):"");this.message+=e}var De=function Un(o){this.identifier="DiagnosticLogger",this.queue=[];var u=0,s={};$(Un,this,function(i){function e(e,n){e=o[e];return V(e)?n:e}function a(e,n){var t,r=(t=(t=Oe)||!0===o.disableDbgExt?t:Oe||(r=Q("Microsoft"),Oe=r?r.ApplicationInsights:Oe))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(e,n)}V(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 Ke(n,t,o=void 0!==o&&o,r);if(i.enableDebugExceptions())throw n;t=e===j.CRITICAL?"errorToConsole":"warnToConsole";ee(n.message)?a("throw"+(e===j.CRITICAL?"Critical":"Warning"),n):(r=i.consoleLoggingLevel(),o?(o=+n.messageId,!s[o]&&e<=r&&(i[t](n.message),s[o]=!0)):e<=r&&i[t](n.message),i.logInternalMessage(e,n))},i.warnToConsole=function(e){Ne("warn",e),a("warning",e)},i.errorToConsole=function(e){Ne("error",e),a("error",e)},i.resetInternalMessageCount=function(){u=0,s={}},i.logInternalMessage=function(e,n){var t,r;u>=i.maxInternalMessageLimit()||(r=!0,t="AITR_"+n.messageId,s[t]?r=!1:s[t]=!0,r&&(e<=i.telemetryLoggingLevel()&&(i.queue.push(n),u++,a(e===j.CRITICAL?"error":"warn",n)),u===i.maxInternalMessageLimit()&&(r=new Ke(q.MessageLimitPerPVExceeded,t="Internal events throttle limit per PageView reached for this app.",!1),i.queue.push(r),e===j.CRITICAL?i.errorToConsole(t):i.warnToConsole(t))))}})},qe=(ze.ParentContextKey="parent",ze.ChildrenContextKey="childEvts",ze);function ze(e,o,n){var r,i=this,a=!1;i.start=ge(),i.name=e,i.isAsync=n,i.isChildEvt=function(){return!1},f(o)&&(a=function(e){if(Y)try{var n={enumerable:!0,configurable:!0,get:function(){return!r&&f(o)&&(r=o(),o=null),r}};return Y(e,"payload",n),!0}catch(t){}return!1}(i)),i.getCtx=function(e){return e?(e===ze.ParentContextKey||e===ze.ChildrenContextKey?i:i.ctx||{})[e]:null},i.setCtx=function(e,n){e&&(e===ze.ParentContextKey?(i[e]||(i.isChildEvt=function(){return!0}),i[e]=n):e===ze.ChildrenContextKey?i[e]=n:(i.ctx=i.ctx||{})[e]=n)},i.complete=function(){var e=0,n=i.getCtx(ze.ChildrenContextKey);if(W(n))for(var t=0;t<n.length;t++){var r=n[t];r&&(e+=r.time)}i.time=ge()-i.start,i.exTime=i.time-e,i.complete=function(){},!a&&f(o)&&(i.payload=o())}}var je="CoreUtils.doPerf";function J(e,n,t,r,o){if(e)if(e=f(e.getPerfMgr)?e.getPerfMgr():e){var i,a=void 0,u=e.getCtx(je);try{if(a=e.create(n(),r,o))return u&&a.setCtx&&(a.setCtx(qe.ParentContextKey,u),u.getCtx&&u.setCtx&&((i=u.getCtx(qe.ChildrenContextKey))||(i=[],u.setCtx(qe.ChildrenContextKey,i)),i.push(a))),e.setCtx(je,a),t(a)}catch(s){a&&a.setCtx&&a.setCtx("exception",s)}finally{a&&e.fire(a),e.setCtx(je,u)}}return t()}var Ve=function(o,n){var i=this,a=null,u=f(o.processTelemetry),s=f(o.setNextPlugin);i._hasRun=!1,i.getPlugin=function(){return o},i.getNext=function(){return a},i.setNext=function(e){a=e},i.processTelemetry=function(t,r){r=r||n;var e=o?o.identifier:"TelemetryPluginChain";J(r?r.core():null,function(){return e+":processTelemetry"},function(){if(o&&u){i._hasRun=!0;try{r.setNext(a),s&&o.setNextPlugin(a),a&&(a._hasRun=!1),o.processTelemetry(t,r)}catch(n){var e=a&&a._hasRun;a&&e||r.diagLog().throwInternal(j.CRITICAL,q.PluginException,"Plugin ["+o.identifier+"] failed during processTelemetry - "+Ae(n)),a&&!e&&a.processTelemetry(t,r)}}else a&&(i._hasRun=!0,a.processTelemetry(t,r))},function(){return{item:t}},!t.sync)}};function We(e,n){var t=[];if(e&&0<e.length)for(var r=null,o=0;o<e.length;o++){var i=e[o];i&&f(i.processTelemetry)&&(i=new Ve(i,n),t.push(i),r&&r.setNext(i),r=i)}return 0<t.length?t[0]:null}var Ue=function Qn(e,o,t,n){var r,i,a,u,s=this,l=null;null!==n&&(e&&f(e.getPlugin)?l=function(e,n,t){var r=[],o=!t;if(e)for(;e;){var i=e.getPlugin();!o&&i!==t||(o=!0,r.push(i)),e=e.getNext()}return o||r.push(t),We(r,n)}(e,s,n||e.getPlugin()):n?(r=s,a=e,u=!1,(i=n)&&e&&(a=[],U(e,function(e){!u&&e!==i||(u=!0,a.push(e))})),i&&!u&&(a=a||[]).push(i),l=We(a,r)):ee(n)&&(l=We(e,s))),s.core=function(){return t},s.diagLog=function(){return(t||{}).logger||new De(o)},s.getCfg=function(){return o},s.getExtCfg=function(e,n){var t,r;return void 0===n&&(n={}),!o||(r=o.extensionConfig)&&e&&(t=r[e]),t||n},s.getConfig=function(e,n,t){void 0===t&&(t=!1);var r,e=s.getExtCfg(e,null);return e&&!V(e[n])?r=e[n]:o&&!V(o[n])&&(r=o[n]),V(r)?t:r},s.hasNext=function(){return null!=l},s.getNext=function(){return l},s.setNext=function(e){l=e},s.processNext=function(e){var n=l;n&&(l=n.getNext(),n.processTelemetry(e,s))},s.createNew=function(e,n){return new Qn((e=void 0===e?null:e)||l,o,t,n)}},Qe="getPlugin",l=(Je.prototype.initialize=function(e,n,t,r){this._baseTelInit(e,n,t,r)},Je);function Je(){var u=this,s=!1,l=null,c=null;u.core=null,u.diagLog=function(e){return u._getTelCtx(e).diagLog()},u.isInitialized=function(){return s},u.setInitialized=function(e){s=e},u.setNextPlugin=function(e){c=e},u.processNext=function(e,n){n?n.processNext(e):c&&f(c.processTelemetry)&&c.processTelemetry(e,null)},u._getTelCtx=function(e){var n,e=e=void 0===e?null:e;return e||(n=l||new Ue(null,{},u.core),e=c&&c[Qe]?n.createNew(null,c[Qe]):n.createNew(null,c)),e},u._baseTelInit=function(e,n,t,r){e&&(a="extensionConfig",i=o=[],!e||(i=e[a])!==o&&V(i)&&(e[a]=i=o)),!r&&n&&(r=n.getProcessTelContext().getNext());var o,i,a=c;c&&c[Qe]&&(a=c[Qe]()),u.core=n,l=new Ue(r,e,n,a),s=!0}}var Xe="visibilitychange",Ge="pagehide",$e="pageshow";function Ze(e,n){var t=!1,r=Ie(),r=(r&&(t=re(r,e,n),t=re(r.body,e,n)||t),Re());return r&&re(r,e,n)||t}function Ye(e,n){return function i(e,n,t){var r,o=!1;return n&&e&&W(e)&&(r=[],U(e,function(e){ae(e)&&(t&&-1!==se(t,e)?r.push(e):o=Ze(e,n)||o)}),!o&&0<r.length&&(o=i(r,n))),o}(["beforeunload","unload","pagehide"],e,n)}var en=e(e({},q),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}),nn="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",tn="withCredentials",rn=((e={})[0]=0,e[2]=6,e[1]=1,e[3]=7,e[4098]=6,e[4097]=1,e[4099]=7,e),e=(Re(),!!Ie());function on(e){return""!==e&&!V(e)}function an(e,n,t){var r=-1;return ee(e)||(0<n&&(32===n?r=8192:n<=13&&(r=n<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(n=rn[function o(e){var n,t=0;return null!==e&&e!==undefined&&("string"==(n=typeof e)?t=1:"number"==n?t=2:"boolean"==n?t=3:n===X&&(t=4,W(e)?(t=4096,0<e.length&&(t|=o(e[0]))):ne(e,"value")&&(t=8192|o(e.value)))),t}(e)]||-1,-1!==r&&-1!==n?r|=n:6===n&&(r=n))),r}function un(){var r={},n=!1,e=0,t=arguments.length,o=Object[u],i=arguments;for("[object Boolean]"===o.toString.call(i[0])&&(n=i[0],e++);e<t;e++)oe(i[e],function(t,e){n&&e&&te(e)?W(e)?(r[t]=r[t]||[],U(e,function(e,n){e&&te(e)?r[t][n]=un(!0,r[t][n],e):r[t][n]=e})):r[t]=un(!0,r[t],e):r[t]=e});return r}var sn=function(){var e=Q("performance");return e&&e.now?e.now():ge()};function ln(e,n){e.timings=e.timings||{},e.timings.processTelemetryStart=e.timings.processTelemetryStart||{},e.timings.processTelemetryStart[n]=sn()}var cn="REAL_TIME",fn="POST",dn="drop",n="requeue",gn="application/x-json-stream",vn="cache-control",hn="content-type",pn="kill-duration",yn="time-delta-millis",mn="AuthMsaDeviceTicket",Cn="msfpc";function Tn(e){e=(e.ext||{}).intweb;return e&&on(e[Cn])?e[Cn]:null}function Sn(e){for(var n=null,t=0;null===n&&t<e.length;t++)n=Tn(e[t]);return n}xn.create=function(e,n){return new xn(e,n)};var bn=xn;function xn(r,e){var o=e?[].concat(e):[],e=this,i=Sn(o);e.iKey=function(){return r},e.Msfpc=function(){return i||""},e.count=function(){return o.length},e.events=function(){return o},e.addEvent=function(e){return!!e&&(o.push(e),i=i||Tn(e),!0)},e.split=function(e,n){var t;return e<o.length&&(t=o.length-e,V(n)||(t=n<t?n:t),t=o.splice(e,t),i=Sn(o)),new xn(r,t)}}var wn="metadata",In=/\./,Rn=function Jn(n,e,C,t){var i="baseData",T=!!t,S=e,b={};$(Jn,this,function(y){function m(e,f,d,g,v,h,p){oe(e,function(e,n){if(n||on(n)){var t,r=d,o=e,i=v,a=f;if(T&&!g&&In.test(e)){var u=e.split("."),s=u.length;if(1<s){for(var i=i&&i.slice(),c=0;c<s-1;c++){var l=u[c],a=a[l]=a[l]||{};r+="."+l,i&&i.push(l)}o=u[s-1]}}(e=g&&((t=b[e=r])===undefined&&(7<=e.length&&(t=ie(e,"ext.metadata")||ie(e,"ext.web")),b[e]=t),t)||!S||!S.handleField(r,o)?function(e,n){if(!e&&!on(e)||"string"!=typeof o)return null;var t=typeof e;if("string"==t||"number"==t||"boolean"==t||W(e))e={value:e};else if("object"!=t||e.hasOwnProperty("value")){if(V(e.value)||""===e.value||!ae(e.value)&&!ue(e.value)&&"boolean"!=typeof e.value&&!W(e.value))return null}else e={value:n?JSON.stringify(e):e};if(W(e.value)&&!(0<e.value.length))return null;if(!V(e.kind)){if(W(e.value)||!(0===(t=e.kind)||0<t&&t<=13||32===t))return null;e.value=e.value.toString()}return e}(n,C):S.value(r,o,n,C))&&(t=e.value,a[o]=t,h&&h(i,o,e),p&&"object"==typeof t&&!W(t)&&((e=i)&&(e=i.slice()).push(o),m(n,t,r+"."+o,g,e,h,p)))}})}y.createPayload=function(e,n,t,r,o,i){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:n,isSync:t,isBeacon:r,sendType:i,sendReason:o}},y.appendPayload=function(v,h,p){var e=v&&h&&!v.overflow;return e&&J(n,function(){return"Serializer:appendPayload"},function(){for(var e=h.events(),n=v.payloadBlob,t=v.numEvents,r=!1,o=[],i=[],a=v.isBeacon,c=a?65e3:3984588,f=a?65e3:2e6,u=0,d=0;u<e.length;){var s=e[u];if(s){if(p<=t){v.overflow=h.split(u);break}var l=y.getEventBlob(s);if(l&&l.length<=f){var g=l.length;if(c<n.length+g){v.overflow=h.split(u);break}n&&(n+="\n"),n+=l,20<++d&&(n.substr(0,1),d=0),r=!0,t++}else(l?o:i).push(s),e.splice(u,1),u--}u++}o&&0<o.length&&v.sizeExceed.push(bn.create(h.iKey(),o)),i&&0<i.length&&v.failedEvts.push(bn.create(h.iKey(),i)),r&&(v.batches.push(h),v.payloadBlob=n,v.numEvents=t,a=h.iKey(),-1===se(v.apiKeys,a)&&v.apiKeys.push(a))},function(){return{payload:v,theBatch:{iKey:h.iKey(),evts:h.events()},max:p}}),e},y.getEventBlob=function(o){try{return J(n,function(){return"Serializer.getEventBlob"},function(){var e={},r=(e.name=o.name,e.time=o.time,e.ver=o.ver,e.iKey="o:"+function(e){if(e){var n=e.indexOf("-");if(-1<n)return e.substring(0,n)}return""}(o.iKey),{}),n=o.ext,n=(n&&(e.ext=r,oe(n,function(e,n){m(n,r[e]={},"ext."+e,!0,null,null,!0)})),e.data={}),t=(n.baseType=o.baseType,n[i]={});return m(o.baseData,t,i,!1,[i],function(e,n,t){En(r,e,n,t)},!0),m(o.data,n,"data",!1,[],function(e,n,t){En(r,e,n,t)},!0),JSON.stringify(e)},function(){return{item:o}})}catch(e){return null}}})};function En(e,n,t,r){if(r&&e){var o=an(r.value,r.kind,r.propertyType);if(-1<o){var i=e[wn],a=(a=(i=i||(e[wn]={f:{}})).f)||(i.f={});if(n)for(var u=0;u<n.length;u++)var s=n[u],a=(a[s]||(a[s]={f:{}}),a[s].f||(a[s].f={}));a=a[t]={},W(r.value)?a.a={t:o}:a.t=o}}}function Pn(){}Pn.shouldRetryForStatus=function(e){return!(300<=e&&e<500&&408!=e&&429!=e||501==e||505==e)},Pn.getMillisToBackoffForRetry=function(e){return Math.min(Math.pow(2,e)*(2400+Math.floor(1200*Math.random())),6e5)};var _n=Pn,Ln=function Xn(){var s={};$(Xn,this,function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{i=e.split(","),a=[],i&&U(i,function(e){a.push(le(e))});var t=a;if("this-request-only"===n)return t;for(var r=1e3*parseInt(n,10),o=0;o<t.length;++o)s[t[o]]=ge()+r}catch(u){return[]}var i,a;return[]},e.isTenantKilled=function(e){var n=s,e=le(e);return n[e]!==undefined&&n[e]>ge()||(delete n[e],!1)}})},Mn=function Gn(){var n=!0,t=!0,r=!0,o="use-collector-delta",i=!1;$(Gn,this,function(e){e.allowRequestSending=function(){return n},e.firstRequestSent=function(){r&&(r=!1,i||(n=!1))},e.shouldAddClockSkewHeaders=function(){return t},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){i||(e?(o=e,i=t=!0):t=!1,n=!0)}})},An=((Wn={})[1]=n,Wn[100]=n,Wn[200]="sent",Wn[8004]=dn,Wn[8003]=dn,Wn),Fn={};function kn(e){try{return e.responseText}catch(n){}return""}function On(e,n){var t=!1;if(e&&n){var r=de(e);if(r&&0<r.length)for(var o=n.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&ne(n,a)&&a.toLowerCase()==o){t=!0;break}}}return t}function Bn(e,n,t,r){n&&t&&0<t.length&&(r&&Fn[n]?(e.hdrs[Fn[n]]=t,e.useHdrs=!0):e.url+="&"+n+"="+t)}Fn.AuthMsaDeviceTicket="AuthMsaDeviceTicket";var Nn,Kn,Hn=function $n(F,e,k,c){this._responseHandlers=[];var w,I,R,O,B="?cors=true&content-type="+gn,N=new Ln,p=!1,E=new Mn,K=!1,P=0,H=!0,_=[],D={},L=[],M=null,q=!1,A=!1,z=!1;$($n,this,function(y){var f=!0;function i(e,n){for(var t=0,r=null,o=0;null==r&&o<e.length;)1===(t=e[o])?(Se=null===Se&&(Se="undefined"!=typeof XDomainRequest)&&ke()?Se&&!xe(Q("XMLHttpRequest"),"withCredentials"):Se)?r=a:ke()&&(r=s):2===t&&function(e){var n=!1;try{var n=!!Q("fetch"),t=Q("Request");n&&e&&t&&(n=xe(t,"keepalive"))}catch(r){}return n}(n)?r=u:K&&3===t&&Fe()&&(r=l),o++;return r?{_transport:t,_isSync:n,sendPOST:r}:null}function a(e,n,t){var r=new XDomainRequest;r.open(fn,e.urlString),r.onload=function(){var e=kn(r);m(n,200,{},e),h(e)},r.onerror=function(){m(n,400,{})},r.ontimeout=function(){m(n,500,{})},r.onprogress=function(){},t?r.send(e.data):w._setTimeoutOverride(function(){r.send(e.data)},0)}function u(e,r,n){var t,o=!1,i=!1;(t={body:e.data,method:fn}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0;n&&(t.keepalive=!0,2===e._sendReason&&(o=!0)),f&&(t.credentials="include"),e.headers&&0<de(e.headers).length&&(t.headers=e.headers),fetch(e.urlString,t).then(function(e){var t={},n="";e.headers&&e.headers.forEach(function(e,n){t[n]=e}),e.body&&e.text().then(function(e){n=e}),i||(i=!0,m(r,e.status,t,n),h(n))})["catch"](function(e){i||(i=!0,m(r,0,{}))}),o&&!i&&(i=!0,m(r,200,{}))}function s(e,c,n){function i(e,n,t){return e[t]||!n||!n.getResponseHeader||(n=n.getResponseHeader(t))&&(e[t]=le(n)),e}function t(e,n){var t,r,o;m(c,e.status,(o={},(e=e).getAllResponseHeaders?(t=e.getAllResponseHeaders(),r={},ae(t)&&U(le(t).split(/[\r\n]+/),function(e){var n,t;e&&(-1!=(t=e.indexOf(": "))?(n=le(e.substring(0,t)).toLowerCase(),t=le(e.substring(1+t)),r[n]=t):r[le(e)]=1)}),r):(o=i(o,e,yn),o=i(o,e,pn),i(o,e,"kill-duration-seconds"))),n)}r=fn,o=e.urlString,a=f,void 0===(n=n)&&(n=!1),l(u=new XMLHttpRequest,nn,!0),a&&l(u,tn,a),u.open(r,o,!n),a&&l(u,tn,a);var r,o,a,u,s=u;function l(e,n,t){try{e[n]=t}catch(r){}}oe(e.headers,function(e,n){s.setRequestHeader(e,n)}),s.onload=function(){var e=kn(s);t(s,e),h(e)},s.onerror=function(){t(s)},s.ontimeout=function(){t(s)},s.send(e.data)}function m(e,n,t,r){try{e(n,t,r)}catch(o){w.diagLog().throwInternal(j.WARNING,en.SendPostOnCompleteFailure,Ae(o))}}function l(r,e,n){var t=200,o=r._thePayload;try{var i,a=Pe();a.sendBeacon(r.urlString,r.data)||(o?(i=[],U(o.batches,function(e){if(i&&e&&0<e.count()){for(var n=e.events(),t=0;t<n.length;t++)if(!a.sendBeacon(r.urlString,M.getEventBlob(n[t]))){i.push(e.split(t));break}}else i.push(e.split(0))}),b(i,8003,o.sendType,!0)):t=0)}catch(u){w.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+u),t=0}finally{m(e,t,{},"")}}function C(e){return 2===e||3===e}function r(e){return A&&C(e)?2:e}function o(){return!p&&P<e}function t(){var e=L;return L=[],e}function g(e,n,t){return e&&0<e.length&&!p&&I[n]&&M&&(0!==n||o()&&(0<t||E.allowRequestSending()))}function v(e){var t={};return e&&U(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function T(a,u,s,l,c){if(a&&0!==a.length)if(p)b(a,1,l);else{l=r(l);try{var e=a,f=0!==l;J(R,function(){return"HttpManager:_sendBatches"},function(e){e&&(a=a.slice(0));for(var n=[],t=null,r=sn(),e=I[l]||(f?I[1]:I[0]),o=(A||C(l)||e&&3===e._transport)&&!H&&K&&Fe();g(a,l,u);){var i=a.shift();i&&0<i.count()&&(N.isTenantKilled(i.iKey())?n.push(i):(t=t||M.createPayload(u,s,f,o,c,l),M.appendPayload(t,i,F)?null!==t.overflow&&(a=[t.overflow].concat(a),t.overflow=null,d(t,r,sn(),c),r=sn(),t=null):(d(t,r,sn(),c),r=sn(),a=[i].concat(a),t=null)))}t&&d(t,r,sn(),c),0<a.length&&(L=a.concat(L)),b(n,8004,l)},function(){return{batches:v(e),retryCount:u,isTeardown:s,isSynchronous:f,sendReason:c,useSendBeacon:C(l),sendType:l}},!f)}catch(n){w.diagLog().throwInternal(j.WARNING,en.CannotSerializeObject,"Unexpected Exception sending batch: "+Ae(n))}}}function S(e,n,t){e[n]=e[n]||{},e[n][w.identifier]=t}function d(g,u,s,v){var l,c,f,d,h,p;g&&g.payloadBlob&&0<g.payloadBlob.length&&(l=!!y.sendHook,c=I[g.sendType],!C(g.sendType)&&g.isBeacon&&2===g.sendReason&&(c=I[2]||I[3]||c),d=z,!g.isBeacon&&3!==c._transport||(d=!1),f=function(e,n){var t={url:B,hdrs:{},useHdrs:!1},r=(t.hdrs=un(t.hdrs,D),t.useHdrs=0<de(t.hdrs).length,Bn(t,"client-id","NO_AUTH",n),Bn(t,"client-version","1DS-Web-JS-3.1.10",n),""),e=(U(e.apiKeys,function(e){0<r.length&&(r+=","),r+=e}),Bn(t,"apikey",r,n),Bn(t,"upload-time",ge().toString(),n),function(e){for(var n=0;n<e.batches.length;n++){var t=e.batches[n].Msfpc();if(t)return encodeURIComponent(t)}return""}(e));on(e)&&(t.url+="&ext.intweb.msfpc="+e),E.shouldAddClockSkewHeaders()&&Bn(t,"time-delta-to-apply-millis",E.getClockSkewHeaderValue(),n),!R.getWParam||0<=(e=R.getWParam())&&(t.url+="&w="+e);for(var o=0;o<_.length;o++)t.url+="&"+_[o].name+"="+_[o].value;return t}(g,d),d=d||f.useHdrs,h=sn(),p="sendAttempt",J(R,function(){return"HttpManager:_doPayloadSend"},function(){for(var e=0;e<g.batches.length;e++)for(var n=g.batches[e].events(),t=0;t<n.length;t++){var r,o=n[t];q&&(S(r=o.timings=o.timings||{},"sendEventStart",h),S(r,"serializationStart",u),S(r,"serializationCompleted",s)),0<o[p]?o[p]++:o[p]=1}b(g.batches,1e3+(v||0),g.sendType,!0);var i={data:g.payloadBlob,urlString:f.url,headers:f.hdrs,_thePayload:g,_sendReason:v},a=(d&&(On(i.headers,vn)||(i.headers[vn]="no-cache, no-store"),On(i.headers,hn)||(i.headers[hn]=gn)),null);c&&(a=function(e){E.firstRequestSent();var n=function(e,n){var t,r,o=g,c=v,i=9e3,a=null,f=!1,d=!1;try{var u,s=!0;if(typeof e!==G){if(n&&(E.setClockSkew(n[yn]),l=n[pn]||n["kill-duration-seconds"],U(N.setKillSwitchTenants(n["kill-tokens"],l),function(n){U(o.batches,function(e){e.iKey()===n&&(a=a||[],e=e.split(0),o.numEvents-=e.count(),a.push(e))})})),200==e)return void(i=200);(!_n.shouldRetryForStatus(e)||o.numEvents<=0)&&(s=!1),i=9e3+e%1e3}s&&(i=100,u=o.retryCnt,0===o.sendType&&(u<k?(f=!0,x(function(){0===o.sendType&&P--,T(o.batches,u+1,o.isTeardown,A?2:o.sendType,5)},A,_n.getMillisToBackoffForRetry(u))):d=!0))}finally{if(!f){E.setClockSkew();var n=o,l=i,e=c,s=d;try{s&&w._backOffTransmission(),200===l&&(s||n.isSync||w._clearBackOff(),t=n.batches,q&&(r=sn(),U(t,function(e){var n;e&&0<e.count()&&(e=e.events(),n=r,q&&U(e,function(e){S(e.timings=e.timings||{},"sendEventCompleted",n)}))}))),b(n.batches,l,n.sendType,!0)}finally{0===n.sendType&&(P--,5!==e&&y.sendQueuedRequests(n.sendType,e))}}b(a,8004,o.sendType)}},t=g.isTeardown||g.isSync;try{c.sendPOST(e,n,t),y.sendListener&&y.sendListener(i,e,t,g.isBeacon)}catch(r){w.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+Ae(r)),m(n,0,{})}}),J(R,function(){return"HttpManager:_doPayloadSend.sender"},function(){var n,t;a&&(0===g.sendType&&P++,l&&!g.isBeacon&&3!==c._transport?(n={data:i.data,urlString:i.urlString,headers:un({},i.headers)},t=!1,J(R,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{y.sendHook(n,function(e){t=!0,H||e._thePayload||(e._thePayload=e._thePayload||i._thePayload,e._sendReason=e._sendReason||i._sendReason),a(e)},g.isSync||g.isTeardown)}catch(e){t||a(i)}})):a(i))})},function(){return{thePayload:g,serializationStart:u,serializationCompleted:s,sendReason:v}},g.isSync)),g.sizeExceed&&0<g.sizeExceed.length&&b(g.sizeExceed,8003,g.sendType),g.failedEvts&&0<g.failedEvts.length&&b(g.failedEvts,8002,g.sendType)}function x(e,n,t){n?e():w._setTimeoutOverride(e,t)}function h(e){var n=y._responseHandlers;try{for(var t,r=0;r<n.length;r++)try{n[r](e)}catch(o){w.diagLog().throwInternal(j.CRITICAL,en.PostResponseHandler,"Response handler failed: "+o)}!e||on((t=JSON.parse(e)).webResult)&&on(t.webResult[Cn])&&O.set("MSFPC",t.webResult[Cn],31536e3)}catch(i){}}function b(n,t,r,e){var o,i,a;n&&0<n.length&&c&&(o=c[on(a=An[t])||(a="oth",9e3<=t&&t<=9999?a="rspFail":8e3<=t&&t<=8999?a=dn:1e3<=t&&t<=1999&&(a="send")),a])&&J(R,function(){return"HttpManager:_sendBatchesNotification"},function(){x(function(){try{o.call(c,n,t,i,r)}catch(e){w.diagLog().throwInternal(j.CRITICAL,en.NotificationException,"send request notification failed: "+e)}},e||i,0)},function(){return{batches:v(n),reason:t,isSync:i,sendSync:e,sendType:r}},!(i=0!==r))}y.initialize=function(e,n,t,r,o){B=e+B,z=!ee((o=o||{}).avoidOptions)&&!o.avoidOptions,O=(R=n).getCookieMgr(),q=!R.config.disableEventTimings;var e=!!R.config.enableCompoundKey,n=(w=t,o.valueSanitizer),t=o.stringifyObjects,n=(ee(o.enableCompoundKey)||(e=!!o.enableCompoundKey),K=!Me(),M=new Rn(R,n,t,e),r);r||(H=!1,(t=typeof location===X&&location?location:Q(me))&&t.protocol&&"file:"==t.protocol.toLowerCase()&&(f=!1),e=[],e=Me()?[2,1]:[1,2,3],(t=o.transports)&&(ue(t)?e=[t].concat(e):W(t)&&(e=t.concat(e))),r=i(e,!1),n=i(e,!0),r||w.diagLog().warnToConsole("No available transport to send events")),(o={})[0]=r,o[1]=n||i([1,2,3],!0),o[2]=i([3,2,1],!0)||n,o[3]=i([2,3,1],!0)||n,I=o},y._getDbgPlgTargets=function(){return[I[0],N,M,I]},y.addQueryStringParameter=function(e,n){for(var t=0;t<_.length;t++)if(_[t].name===e)return void(_[t].value=n);_.push({name:e,value:n})},y.addHeader=function(e,n){D[e]=n},y.canSendRequest=function(){return o()&&E.allowRequestSending()},y.sendQueuedRequests=function(e,n){ee(e)&&(e=0),A&&(e=r(e),n=2),g(L,e,0)&&T(t(),0,!1,e,n||0)},y.isCompletelyIdle=function(){return!p&&0===P&&0===L.length},y.setUnloading=function(e){A=e},y.addBatch=function(e){if(e&&0<e.count()){if(N.isTenantKilled(e.iKey()))return!1;L.push(e)}return!0},y.teardown=function(){0<L.length&&T(t(),0,!0,2,2)},y.pause=function(){p=!0},y.resume=function(){p=!1,y.sendQueuedRequests(0,4)},y.sendSynchronousBatch=function(e,n,t){e&&0<e.count()&&(V(n)&&(n=1),A&&(n=r(n),t=2),T([e],0,!1,n,t||0))}})},Dn=e?window:undefined,qn="eventsDiscarded",zn="overrideInstrumentationKey";function jn(){var T,_,S,L,M,A,e=Nn.call(this)||this,F=(e.identifier="PostChannel",e.priority=1011,!(e.version="3.1.10")),k=[],b=null,x=!1,w=0,O=500,I=0,B=1e4,N={},K=cn,t=null,H=null,R=0,D=0,E={},P=-1,q=!0,z=!1;return $(jn,e,function(l,g){function v(e,n){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,q&&(e.ext=ve(e.ext),e.baseData&&(e.baseData=ve(e.baseData)),e.data&&(e.data=ve(e.data))),e.sync)if(R||x)e.latency=3,e.sync=!1;else if(S)return q&&(e=ve(e)),S.sendSynchronousBatch(bn.create(e.iKey,[e]),!0===e.sync?1:e.sync,3),0;var t=e.latency,r=I,o=B,i=(4===t&&(r=w,o=O),!1);r<o?i=!y(e,n):(r=1,o=20,4===t&&(r=4,o=1),i=!0,function(e,n,t,r){for(;t<=n;){var o=h(e,n,!0);if(o&&0<o.count()){var o=o.split(0,r),i=o.count();if(0<i)return 4===t?w-=i:I-=i,d(qn,[o],5),1}t++}return m(),0}(e.iKey,e.latency,r,o)&&(i=!y(e,n))),i&&f(qn,[e],5)}function o(e,n,t){e=u(e,n,t);return S.sendQueuedRequests(n,t),e}function i(){0<=P&&u(P,0,A)&&S.sendQueuedRequests(0,A),!(0<w)||H||x||0<=(e=N[K][2])&&(H=a(function(){H=null,o(4,0,1),i()},e));var e=N[K][1];!t&&!b&&0<=e&&!x&&(0<I?t=a(function(){t=null,o(0===D?3:1,0,1),D++,D%=2,i()},e):D=0)}function a(e,n){0===n&&R&&(n=1);var t=1e3;return R&&(t=_n.getMillisToBackoffForRetry(R-1)),l._setTimeoutOverride(e,n*t)}function r(){null!==t&&(l._clearTimeoutOverride(t),t=null,D=0)}function c(e,n){r(),b&&(l._clearTimeoutOverride(b),b=null),x||o(1,e,n)}function h(e,n,t){var r=E[n],n=(r=r||E[n=1]).iKeyMap[e];return!n&&t&&(n=bn.create(e),r.batches.push(n),r.iKeyMap[e]=n),n}function p(e,n){S.canSendRequest()&&!R&&(n=0<L&&L<I||n)&&null==b&&l.flush(e,null,20)}function y(e,n){var t=(e=q?ve(e):e).latency,r=h(e.iKey,t,!0);return r.addEvent(e)&&(4!==t?(I++,n&&0===e.sendAttempt&&p(!e.sync,0<M&&r.count()>=M)):w++,1)}function m(){for(var t=0,r=0,e=1;e<=4;e++)!function(n){var e=E[n];e&&e.batches&&U(e.batches,function(e){4===n?t+=e.count():r+=e.count()})}(e);I=r,w=t}function u(r,e,n){var o=!1,t=0===e;return!t||S.canSendRequest()?J(l.core,function(){return"PostChannel._queueBatches"},function(){for(var n=[],t=4;r<=t;){var e=E[t];e&&e.batches&&0<e.batches.length&&(U(e.batches,function(e){S.addBatch(e)?o=o||e&&0<e.count():n=n.concat(e.events()),4===t?w-=e.count():I-=e.count()}),e.batches=[],e.iKeyMap={}),t--}0<n.length&&f(qn,n,4),o&&r<=P&&(P=-1,A=0)},function(){return{latency:r,sendType:e,sendReason:n}},!t):(P=0<=P?Math.min(P,r):r,A=Math.max(A,n)),o}function n(){N={REAL_TIME:[2,1,0],NEAR_REAL_TIME:[6,3,0],BEST_EFFORT:[18,9,0]}}function s(e,n){var t=l._notificationManager||{},r=t[e];if(r)try{r.apply(t,n)}catch(o){l.diagLog().throwInternal(j.CRITICAL,en.NotificationException,e+" notification failed: "+o)}}function f(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&0<n.length&&s(e,[n].concat(t))}function d(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&0<e.length&&U(e,function(e){e&&0<e.count()&&s(n,[e.events()].concat(t))})}function C(){M=T&&T.disableAutoBatchFlushLimit?0:Math.max(1500,B/6)}n(),E[4]={batches:[],iKeyMap:{}},E[3]={batches:[],iKeyMap:{}},E[2]={batches:[],iKeyMap:{}},E[1]={batches:[],iKeyMap:{}},C(),S=new Hn(500,2,1,{requeue:function(e,n){var t=[];U(e,function(e){e&&0<e.count()&&U(e.events(),function(e){e&&(e.sync&&(e.latency=4,e.sync=!1),e.sendAttempt<6?(ln(e,l.identifier),v(e,!1)):t.push(e))})}),0<t.length&&f(qn,t,1),z&&c(2,2)},send:function(e,n,t){e&&0<e.length&&s("eventsSendRequest",[1e3<=n&&n<=1999?n-1e3:0,!0!==t])},sent:function(e,n){d("eventsSent",e,n),i()},drop:function(e,n){d(qn,e,8e3<=n&&n<=8999?n-8e3:0)},rspFail:function(e){d(qn,e,1),i()},oth:function(e,n){d(qn,e,0),i()}}),l._getDbgPlgTargets=function(){return[S]},l.initialize=function(a,u,s){J(u,function(){return"PostChannel:initialize"},function(){var e=u,n=(g.initialize(a,u,s),l.setInitialized(!1),l._getTelCtx()),t=(a.extensionConfig[l.identifier]=a.extensionConfig[l.identifier]||{},T=n.getExtCfg(l.identifier),l._setTimeoutOverride=T.setTimeoutOverride||setTimeout.bind(Dn),l._clearTimeoutOverride=T.clearTimeoutOverride||clearTimeout.bind(Dn),q=!T.disableOptimizeObj&&!!Q("chrome"),e.getWParam),n=(e.getWParam=function(){var e=0;return T.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()},0<T.eventsLimitInMem&&(B=T.eventsLimitInMem),0<T.immediateEventLimit&&(O=T.immediateEventLimit),0<T.autoFlushEventsLimit&&(L=T.autoFlushEventsLimit),C(),T.httpXHROverride&&T.httpXHROverride.sendPOST&&(_=T.httpXHROverride),on(a.anonCookieName)&&S.addQueryStringParameter("anoncknm",a.anonCookieName),S.sendHook=T.payloadPreprocessor,S.sendListener=T.payloadListener,T.overrideEndpointUrl||a.endpointUrl);function r(e){"beforeunload"!==(e||Ie().event).type&&(z=!0,S.setUnloading(z)),c(2,2)}l._notificationManager=a.extensionConfig.NotificationManager,S.initialize(n,l.core,l,_,T);e=a.disablePageUnloadEvents||[];Ye(r,e),function o(t,e){var n=!1;return e&&-1!==se(e,Ge)||(n=Ze(Ge,t)),!(n=(!e||-1===se(e,Xe))&&Ze(Xe,function(e){var n=Re();t&&n&&"hidden"===n.visibilityState&&t(e)})||n)&&e?o(t):n}(r,e),function i(t,e){var n=!1;return e&&-1!==se(e,$e)||(n=Ze($e,t)),!(n=(!e||-1===se(e,Xe))&&Ze(Xe,function(e){var n=Re();t&&n&&"visible"===n.visibilityState&&t(e)})||n)&&e?i(t):n}(function(e){z=!1,S.setUnloading(z)},a.disablePageShowEvents),l.setInitialized(!0)},function(){return{coreConfig:a,core:u,extensions:s}})},l.processTelemetry=function(e,n){ln(e,l.identifier);var t=(n=l._getTelCtx(n)).getExtCfg(l.identifier),r=!!T.disableTelemetry;(r=t?r||!!t.disableTelemetry:r)||F||(T[zn]&&(e.iKey=T[zn]),t&&t[zn]&&(e.iKey=t[zn]),v(e,!0),z?c(2,2):i()),l.processNext(e,n)},l.setEventQueueLimits=function(e,n){B=0<e?e:1e4,L=0<n?n:0,C();var t=e<I;if(!t&&0<M)for(var r=1;!t&&r<=3;r++){var o=E[r];o&&o.batches&&U(o.batches,function(e){e&&e.count()>=M&&(t=!0)})}p(!0,t)},l.teardown=function(){c(2,2),F=!0,S.teardown()},l.pause=function(){r(),x=!0,S.pause()},l.resume=function(){x=!1,S.resume(),i()},l.addResponseHandler=function(e){S._responseHandlers.push(e)},l._loadTransmitProfiles=function(e){r(),n(),K=cn,i(),oe(e,function(e,n){var t,r=n.length;2<=r&&(t=2<r?n[2]:0,n.splice(0,r-2),n[1]<0&&(n[0]=-1),0<n[1]&&0<n[0]&&(r=n[0]/n[1],n[0]=Math.ceil(r)*n[1]),0<=t&&0<=n[1]&&t>n[1]&&(t=n[1]),n.push(t),N[e]=n)})},l.flush=function(e,n,t){void 0===e&&(e=!0),x||(r(),t=t||1,e?(u(1,0,t),m(),null==b?b=a(function(){!function r(e,n){o(1,0,n),function t(e){S.isCompletelyIdle()?e():b=a(function(){t(e)},.25)}(function(){e&&e(),0<k.length?b=a(function(){return r(k.shift(),n)},0):(b=null,0<I&&i())})}(n,t)},0):k.push(n)):(o(1,1,t),null!==n&&n!==undefined&&n()))},l.setMsaAuthTicket=function(e){S.addHeader(mn,e)},l.hasEvents=function(){return 0<I},l._setTransmitProfile=function(e){K!==e&&N[e]!==undefined&&(r(),K=e,i())},l._backOffTransmission=function(){R<4&&(R++,r(),i())},l._clearBackOff=function(){R&&(R=0,r(),i())}}),e}function Vn(){this.constructor=Kn}Kn=jn,typeof(n=Nn=l)!==a&&null!==n&&h("Class extends value "+n+" is not a constructor or null"),p(Kn,n),Kn[u]=(Vn[u]=n[u],new Vn);var Wn=jn,e=(t.BE_PROFILE="BEST_EFFORT",t.NRT_PROFILE="NEAR_REAL_TIME",t.PostChannel=Wn,t.RT_PROFILE=cn,t),l="__esModule",n={value:!0},Wn=Object.defineProperty;if(Wn)try{return Wn(e,l,n)}catch(Zn){}typeof n.value!==undefined&&(e[l]=n.value)}(this.oneDS=this.oneDS||{});
6
+ !function(l){"use strict";var f="function",X="object",Q="undefined",a="prototype",x="hasOwnProperty",t=Object,n=t[a],w=t.assign,e=(t.create,t.defineProperty),v=n[x],r=null;function T(n){return void 0===n&&(n=!0),r&&n||(typeof globalThis!==Q&&globalThis&&(r=globalThis),typeof self!==Q&&self&&(r=self),typeof window!==Q&&window&&(r=window),typeof global!==Q&&global&&(r=global)),r}function _(n){throw new TypeError(n)}(T()||{}).Symbol,(T()||{}).Reflect;var S=function(n,e){return(S=t.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e[x](t)&&(n[t]=e[t])})(n,e)},d="",E="isInitialized",P="teardown",g="core",R="update",O="disabled",L="_doTeardown",M="startsWith",N="indexOf",k="trim",K="toString",I="constructor",A=e,B=t.freeze,H=t.keys,i=String[a],q=i[k],U=i[M],i=Array.isArray,z=n[K],D=v[K],F=D.call(t),j=/-([a-z])/g,Z=/([^\w\d_$])/g,ln=/^(\d+[\w\d_$])/,fn=Object.getPrototypeOf;function J(n){return n===undefined||typeof n===Q}function W(n){return null===n||J(n)}function dn(n,e){return n&&v.call(n,e)}function vn(n){return!(!n||typeof n!==X)}function p(n){return!(!n||typeof n!==f)}function gn(n){var e=n;return n&&yn(n)?(e=(e=n.replace(j,function(n,e){return e.toUpperCase()})).replace(Z,"_")).replace(ln,function(n,e){return"_"+e}):e}function nn(n,e){if(n)for(var t in n)v.call(n,t)&&e.call(n,t,n[t])}function pn(n,e){var t=!1;if(n&&e&&!(t=n===e)){if(U)return n[M](e);var r=n,i=e,n=!1,o=i?i.length:0;if(r&&o&&r.length>=o&&!(n=r===i)){for(var a=0;a<o;a++)if(r[a]!==i[a])return!1;n=!0}return n}return t}function hn(n,e){return!(!n||!e||!~n.indexOf(e))}var en=i||function(n){return!(!n||"[object Array]"!==z.call(n))};function yn(n){return"string"==typeof n}function mn(n){return"number"==typeof n}function bn(n){return"boolean"==typeof n}function xn(n){return n&&"object"==typeof n&&(!(n=(fn||function(n){if(n){if(fn)return fn(n);n=n.__proto__||n[a]||n[I];if(n)return n}return null})(n))||typeof(n=n[I]&&v.call(n,I)?n[I]:n)===f&&D.call(n)===F)}function tn(n,e,t){var r=n.length;try{for(var i=0;i<r&&!(i in n&&-1===e.call(t||n,n[i],i,n));i++);}catch(o){}}function wn(n,e,t){if(n){if(n[N])return n[N](e,t);var r=n.length,t=t||0;try{for(var i=Math.max(0<=t?t:r-Math.abs(t),0);i<r;i++)if(i in n&&n[i]===e)return i}catch(o){}}return-1}function $(n){return n&&(q&&n[k]?n[k]():n.replace?n.replace(/^\s+|\s+$/g,""):n)}var Tn=!{toString:null}.propertyIsEnumerable("toString"),Cn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function _n(n){var e=typeof n;if(e===f||e===X&&null!==n||_("objKeys called on non-object"),!Tn&&H)return H(n);var t,r=[];for(t in n)n&&v.call(n,t)&&r.push(t);if(Tn)for(var i=Cn.length,o=0;o<i;o++)n&&v.call(n,Cn[o])&&r.push(Cn[o]);return r}var Sn=B||function(n){return n};function V(){var n=Date;return n.now?n.now():(new n).getTime()}function En(n){return n&&w?t(w({},n)):n}Pn={},nn({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},function(n,e){Pn[n]=e,Pn[e]=n}),n=Pn,B&&nn(n,function(n,e){(en(e)||vn(e))&&B(e)});var Pn,rn=Sn(n),Rn="constructor",h="prototype",On="function",Ln="_dynInstFuncs",Mn="_isDynProxy",Nn="_dynClass",kn="_dynInstChk",Kn=kn,In="_dfOpts",An="_unknown_",Bn="__proto__",Hn="useBaseInst",qn="setInstFuncs",Un=Object,zn=Un.getPrototypeOf,Dn=0;function y(n,e){return n&&Un[h].hasOwnProperty.call(n,e)}function Fn(n){return n&&(n===Un[h]||n===Array[h])}function jn(n){return Fn(n)||n===Function[h]}function m(n){if(n){if(zn)return zn(n);n=n[Bn]||n[h]||(n[Rn]?n[Rn][h]:null);if(n)return n}return null}function Xn(n,e){var t=[],r=Un.getOwnPropertyNames;if(r)t=r(n);else for(var i in n)"string"==typeof i&&y(n,i)&&t.push(i);if(t&&0<t.length)for(var o=0;o<t.length;o++)e(t[o])}function Qn(n,e,t){return e!==Rn&&typeof n[e]===On&&(t||y(n,e))}function Jn(n){throw new TypeError("DynamicProto: "+n)}function Wn(n,e){for(var t=n.length-1;0<=t;t--)if(n[t]===e)return 1}function $n(n,e){return y(n,h)?n.name||e||An:((n||{})[Rn]||{}).name||e||An}function C(n,r,e,t){y(n,h)||Jn("theClass is an invalid class definition.");var i,o,a,u,c,s,l=n[h],f=(function(n){if(zn)for(var e=[],t=m(r);t&&!jn(t)&&!Wn(e,t);){if(t===n)return 1;e.push(t),t=m(t)}}(l)||Jn("["+$n(n)+"] is not in class hierarchy of ["+$n(r)+"]"),null),n=(y(l,Nn)?f=l[Nn]:(f="_dynCls$"+$n(n,"_")+"$"+Dn,Dn++,l[Nn]=f),C[In]),d=!!n[Hn],v=(d&&t&&t[Hn]!==undefined&&(d=!!t[Hn]),o={},Xn(i=r,function(n){!o[n]&&Qn(i,n,!1)&&(o[n]=i[n])}),o),d=(e(r,function(n,e,t,o){function r(n,e,t){var r,i=e[t];return i[Mn]&&o&&!1!==(r=n[Ln]||{})[Kn]&&(i=(r[e[Nn]]||{})[t]||i),function(){return i.apply(n,arguments)}}for(var i={},a=(Xn(t,function(n){i[n]=r(e,t,n)}),m(n)),u=[];a&&!jn(a)&&!Wn(u,a);)Xn(a,function(n){!i[n]&&Qn(a,n,!zn)&&(i[n]=r(e,a,n))}),u.push(a),a=m(a);return i}(l,r,v,d)),!!zn&&!!n[qn]);a=l,e=f,u=r,c=v,n=!1!==(d=d&&t?!!t[qn]:d),Fn(a)||(l=u[Ln]=u[Ln]||{},s=l[e]=l[e]||{},!1!==l[Kn]&&(l[Kn]=!!n),Xn(u,function(n){var t,r,i;Qn(u,n,!1)&&u[n]!==c[n]&&(s[n]=u[n],delete u[n],y(a,n)&&(!a[n]||a[n][Mn])||(a[n]=(t=a,r=n,(i=function(){var n,e;return(function(n,e,t,r){var i=null;if(n&&y(t,Nn)){var o=n[Ln]||{};if((i=(o[t[Nn]]||{})[e])||Jn("Missing ["+e+"] "+On),!i[kn]&&!1!==o[Kn]){for(var a=!y(n,e),u=m(n),c=[];a&&u&&!jn(u)&&!Wn(c,u);){var s=u[e];if(s){a=s===r;break}c.push(u),u=m(u)}try{a&&(n[e]=i),i[kn]=1}catch(l){o[Kn]=!1}}}return i}(this,r,t,i)||(typeof(e=(e=t[n=r])===i?m(t)[n]:e)!==On&&Jn("["+n+"] is not a "+On),e)).apply(this,arguments)})[Mn]=1,i)))}))}var Vn="window",Gn="document",Yn="navigator",Zn="location",ne="JSON",ee="ReactNative",te="XMLHttpRequest",re=null,ie=null,oe=(C[In]={setInstFuncs:!0,useBaseInst:!0},null),ae=null;function ue(n,e){var t,r=!1;if(n){try{(r=e in n)||(t=n[a])&&(r=e in t)}catch(i){}if(!r)try{r=!J((new n)[e])}catch(i){}}return r}function on(n){var e=T();return e&&e[n]?e[n]:n===Vn&&ce()?window:null}function ce(){return typeof window===X&&window}function se(){return ce()?window:on(Vn)}function le(){return typeof document===X&&document?document:on(Gn)}function fe(){return!(typeof navigator!==X||!navigator)}function de(){return fe()?navigator:on(Yn)}function ve(){return typeof JSON===X&&JSON||null!==on(ne)}function ge(){return ve()?JSON||on(ne):null}function pe(){var n=de();return n&&n.product&&n.product===ee}function G(n){var e=Object[a].toString.call(n),t=d;return"[object Error]"===e?t="{ stack: '"+n.stack+"', message: '"+n.message+"', name: '"+n.name+"'":ve()&&(t=ge().stringify(n)),e+t}function he(){return ae=null===ae?fe()&&!!de().sendBeacon:ae}function ye(){var n=!1;try{n=!!on(te)}catch(e){}return n}var me=null;function be(n){return n?'"'+n.replace(/\"/g,d)+'"':d}function xe(n,e){var t,r=typeof console!==Q?console:on("console");r&&(t="log",p(r[t=r[n]?n:t])&&r[t](e))}Te.dataType="MessageData";var we=Te;function Te(n,e,t,r){void 0===t&&(t=!1),this.messageId=n,this.message=(t?"AI: ":"AI (Internal): ")+n;t=d,ve()&&(t=ge().stringify(r)),n=(e?" message:"+be(e):d)+(r?" props:"+be(t):d);this.message+=n}var Ce=function wr(i){this.identifier="DiagnosticLogger",this.queue=[];var u=0,c={};C(wr,this,function(o){function n(n,e){n=i[n];return W(n)?e:n}function a(n,e){var t,r=(t=(t=me)||!0===i.disableDbgExt?t:me||(r=on("Microsoft"),me=r?r.ApplicationInsights:me))?t.ChromeDbgExt:null;r&&r.diagLog&&r.diagLog(n,e)}W(i)&&(i={}),o.consoleLoggingLevel=function(){return n("loggingLevelConsole",0)},o.telemetryLoggingLevel=function(){return n("loggingLevelTelemetry",1)},o.maxInternalMessageLimit=function(){return n("maxMessageLimit",25)},o.enableDebugExceptions=function(){return n("enableDebugExceptions",!1)},o.throwInternal=function(n,e,t,r,i){e=new we(e,t,i=void 0!==i&&i,r);if(o.enableDebugExceptions())throw e;t=1===n?"errorToConsole":"warnToConsole";J(e.message)?a("throw"+(1===n?"Critical":"Warning"),e):(r=o.consoleLoggingLevel(),i?(i=+e.messageId,!c[i]&&n<=r&&(o[t](e.message),c[i]=!0)):n<=r&&o[t](e.message),o.logInternalMessage(n,e))},o.warnToConsole=function(n){xe("warn",n),a("warning",n)},o.errorToConsole=function(n){xe("error",n),a("error",n)},o.resetInternalMessageCount=function(){u=0,c={}},o.logInternalMessage=function(n,e){var t,r;u>=o.maxInternalMessageLimit()||(r=!0,t="AITR_"+e.messageId,c[t]?r=!1:c[t]=!0,r&&(n<=o.telemetryLoggingLevel()&&(o.queue.push(e),u++,a(1===n?"error":"warn",e)),u===o.maxInternalMessageLimit()&&(r=new we(23,t="Internal events throttle limit per PageView reached for this app.",!1),o.queue.push(r),1===n?o.errorToConsole(t):o.warnToConsole(t))))}})};function an(n,e,t,r,i,o){void 0===o&&(o=!1),(n||new Ce).throwInternal(e,t,r,i,o)}u.ParentContextKey="parent",u.ChildrenContextKey="childEvts";var _e=u;function u(n,i,e){var r,o=this,a=!1;o.start=V(),o.name=n,o.isAsync=e,o.isChildEvt=function(){return!1},p(i)&&(a=function(n){if(A)try{var e={enumerable:!0,configurable:!0,get:function(){return!r&&p(i)&&(r=i(),i=null),r}};return A(n,"payload",e),!0}catch(t){}return!1}(o)),o.getCtx=function(n){return n?(n===u.ParentContextKey||n===u.ChildrenContextKey?o:o.ctx||{})[n]:null},o.setCtx=function(n,e){n&&(n===u.ParentContextKey?(o[n]||(o.isChildEvt=function(){return!0}),o[n]=e):n===u.ChildrenContextKey?o[n]=e:(o.ctx=o.ctx||{})[n]=e)},o.complete=function(){var n=0,e=o.getCtx(u.ChildrenContextKey);if(en(e))for(var t=0;t<e.length;t++){var r=e[t];r&&(n+=r.time)}o.time=V()-o.start,o.exTime=o.time-n,o.complete=function(){},!a&&p(i)&&(o.payload=i())}}var Se="CoreUtils.doPerf";function un(n,e,t,r,i){if(n)if(n=p(n.getPerfMgr)?n.getPerfMgr():n){var o,a=void 0,u=n.getCtx(Se);try{if(a=n.create(e(),r,i))return u&&a.setCtx&&(a.setCtx(_e.ParentContextKey,u),u.getCtx&&u.setCtx&&((o=u.getCtx(_e.ChildrenContextKey))||(o=[],u.setCtx(_e.ChildrenContextKey,o)),o.push(a))),n.setCtx(Se,a),t(a)}catch(c){a&&a.setCtx&&a.setCtx("exception",c)}finally{a&&n.fire(a),n.setCtx(Se,u)}}return t()}var Ee=4294967296,c=4294967295,Pe=!1,Re=123456789,Oe=987654321;function Le(n){var e,t=0,r=on("crypto")||on("msCrypto");if(0===(t=r&&r.getRandomValues?r.getRandomValues(new Uint32Array(1))[0]&c:t)&&(!(r=de())||r.userAgent===ie&&null!==re||(r=((ie=r.userAgent)||d).toLowerCase(),re=hn(r,"msie")||hn(r,"trident/")),re)){if(!Pe)try{var i=2147483647&V();(e=(Math.random()*Ee^i)+i)<0&&(e>>>=0),Re=123456789+e&c,Oe=987654321-e&c,Pe=!0}catch(o){}r=((Oe=36969*(65535&Oe)+(Oe>>16)&c)<<16)+(65535&(Re=18e3*(65535&Re)+(Re>>16)&c))>>>0&c|0,t=(r>>>=0)&c}return 0===t&&(t=Math.floor(Ee*Math.random()|0)),n||(t>>>=0),t}var Me=e,Ne="2.8.1",ke="."+function(n){void 0===n&&(n=22);for(var e=Le()>>>0,t=0,r=d;r.length<n;)r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[0|63&e]||"",e>>>=6,5==++t&&(e=(Le()<<2&4294967295|3&e)>>>0,t=0);return r}(6),Ke=0;function Ie(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType}function Ae(n,e){return gn(n+Ke+++((e=void 0!==e&&e)?"."+Ne:"")+ke)}function Be(n){var o={id:Ae("_aiData-"+(n||"")+"."+Ne),accept:Ie,get:function(n,e,t,r){var i=n[o.id];return i?i[gn(e)]:(r&&((i=function(n,e){var t=e[n.id];if(!t){t={};try{Ie(e)&&!function(n,e,t){if(Me)try{return Me(n,e,{value:t,enumerable:!1,configurable:!0}),1}catch(r){}}(e,n.id,t)&&(e[n.id]=t)}catch(r){}}return t}(o,n))[gn(e)]=t),t)},kill:function(n,e){if(n&&n[e])try{delete n[e]}catch(t){}}};return o}var He=Be("plugin");function qe(n){return He.get(n,"state",{},!0)}var Ue="TelemetryPluginChain",ze="_hasRun",De="_getTelCtx",Fe=0;function je(n,a,t,e){var r=null,i=[],o=(null!==e&&(r=e?function(n,e,t){for(;n;){if(n.getPlugin()===t)return n;n=n.getNext()}return Qe([t],e.config||{},e)}(n,t,e):n),{_next:function(){var n,e=r;return r=e?e.getNext():null,e||(n=i)&&0<n.length&&(tn(n,function(n){try{n.func.call(n.self,n.args)}catch(e){an(t.logger,2,73,"Unexpected Exception during onComplete - "+G(e))}}),i=[]),e},ctx:{core:function(){return t},diagLog:function(){return(t||{}).logger||new Ce(a)},getCfg:function(){return a},getExtCfg:u,getConfig:function(n,e,t){void 0===t&&(t=!1);var r,n=u(n,null);return n&&!W(n[e])?r=n[e]:a&&!W(a[e])&&(r=a[e]),W(r)?t:r},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(n){r=n},iterate:function(n){for(;e=o._next();){var e=e.getPlugin();e&&n(e)}},onComplete:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&i.push({func:n,self:J(e)?o.ctx:e,args:t})}}});function u(n,e,t){var r,i,o;return void 0===e&&(e={}),void 0===t&&(t=0),(r=a&&(i=a.extensionConfig)&&n?i[n]:r)?vn(e)&&0!==t&&(o=function d(){var n=arguments,e=n[0]||{},t=n.length,r=!1,i=1;for(0<t&&bn(e)&&(r=e,e=n[i]||{},i++),vn(e)||(e={});i<t;i++){var o,a,u,c,s=n[i],l=en(s),f=vn(s);for(o in s)(l&&o in s||f&&v.call(s,o))&&(a=s[o],u=void 0,r&&a&&((u=en(a))||xn(a))&&(c=e[o],u?en(c)||(c=[]):xn(c)||(c={}),a=d(r,c,a)),a!==undefined&&(e[o]=a))}return e}(!0,e,r),a&&2===t&&nn(e,function(n){var e;W(o[n])&&!W(e=a[n])&&(o[n]=e)}),r=o):r=e,r}return o}function Xe(n,t,r,e){var i=je(n,t,r,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.processTelemetry(n,o),!e},o.createNew=function(n,e){return Xe((n=en(n=void 0===n?null:n)?Qe(n,t,r,e):n)||o.getNext(),t,r,e)},o}function Qe(n,e,t,r){var i,o=null,a=!r;return en(n)&&0<n.length&&(i=null,tn(n,function(n){(a=!a&&r===n||a)&&n&&p(n.processTelemetry)&&(n=Je(n,e,t),o=o||n,i&&i._setNext(n),i=n)})),r&&!o?Qe([r],e,t):o}function Je(c,r,i){var s=null,o=p(c.processTelemetry),a=p(c.setNextPlugin),l=c?c.identifier+"-"+c.priority+"-"+Fe++:"Unknown-0-"+Fe++,u={getPlugin:function(){return c},getNext:function(){return s},processTelemetry:function(t,n){var e;f(n=n||(e=(e=c&&p(c[De])?c[De]():e)||Xe(u,r,i)),function(n){if(!c||!o)return!1;var e=qe(c);return!e.teardown&&!e[O]&&(a&&c.setNextPlugin(s),c.processTelemetry(t,n),!0)},"processTelemetry",function(){return{item:t}},!t.sync)||n.processNext(t)},unload:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=qe(c),e=c[g]||n.core,!c||e&&e!==r[g]()||n[P]||(n[g]=null,n[P]=!0,n[E]=!1,c[P]&&!0===c[P](r,i)&&(t=!0))),t},"unload",function(){},i.isAsync)||r.processNext(i)},update:function(r,i){f(r,function(){var n,e,t=!1;return c&&(n=qe(c),e=c[g]||n.core,!c||e&&e!==r[g]()||n[P]||c[R]&&!0===c[R](r,i)&&(t=!0)),t},"update",function(){},!1)||r.processNext(i)},_id:l,_setNext:function(n){s=n}};function f(t,r,i,n,e){var o=!1,a=c?c.identifier:Ue,u=(u=t[ze])||(t[ze]={});return t.setNext(s),c&&un(t[g](),function(){return a+":"+i},function(){u[l]=!0;try{var n=s?s._id:d;n&&(u[n]=!1),o=r(t)}catch(e){n=!s||u[s._id];n&&(o=!0),s&&n||an(t.diagLog(),1,73,"Plugin ["+a+"] failed during "+i+" - "+G(e)+", run flags: "+G(u))}},n,e),o}return Sn(u)}function We(){var e=[];return{add:function(n){n&&e.push(n)},run:function(t,r){tn(e,function(n){try{n(t,r)}catch(e){an(t.diagLog(),2,73,"Unexpected error calling unload handler - "+G(e))}}),e=[]}}}var b="getPlugin",K=function Tr(){var o,a,l,f,d,u=this;function e(n){var e,n=n=void 0===n?null:n;return n||(e=a||Xe(null,{},u.core),n=l&&l[b]?e.createNew(null,l[b]):e.createNew(null,l)),n}function c(n,e,t){n&&(o="extensionConfig",i=r=[],n&&(i=n[o])!==r&&W(i)&&(n[o]=i=r)),!t&&e&&(t=e.getProcessTelContext().getNext());var r,i,o=l;l&&l[b]&&(o=l[b]()),u.core=e,a=Xe(t,n,e,o)}function v(){o=!1,u.core=null,l=a=null,d=[],f=We()}v(),C(Tr,u,function(s){var n,e,t,r,i;s.initialize=function(n,e,t,r){c(n,e,r),o=!0},s.teardown=function(n,e){var t,r,i,o,a=s.core;if(a&&(!n||a===n.core()))return r=!1,i=n||function c(n,t,e){var r=t.config||{},i=je(n,r,t,e),o=i.ctx;return o.processNext=function(n){var e=i._next();return e&&e.unload(o,n),!e},o.createNew=function(n,e){return c((n=en(n=void 0===n?null:n)?Qe(n,r,t,e):n)||o.getNext(),t,e)},o}(null,a,l&&l[b]?l[b]():l),o=e||{reason:0,isAsync:!1},s[L]&&!0===s[L](i,o,u)?t=!0:u(),t;function u(){r||(r=!0,f.run(i,e),tn(d,function(n){n.rm()}),d=[],!0===t&&i.processNext(o),v())}},s.update=function(n,e){var t,r,i,o=s.core;if(o&&(!n||o===n.core()))return r=!1,i=n||function u(n,t,e){var r=t.config||{},i=je(n,r,t,e).ctx;return i.processNext=function(e){return i.iterate(function(n){p(n.update)&&n.update(i,e)})},i.createNew=function(n,e){return u((n=en(n=void 0===n?null:n)?Qe(n,r,t,e):n)||i.getNext(),t,e)},i}(null,o,l&&l[b]?l[b]():l),s._doUpdate&&!0===s._doUpdate(i,e||{reason:0},a)?t=!0:a(),t;function a(){r||(r=!0,c(i.getCfg(),i.core(),i.getNext()))}},s._addHook=function(n){n&&(en(n)?d=d.concat(n):d.push(n))},t="_addUnloadCb",e=function(){return f},(n=s)&&e&&(n[t]=(i=r=null,p(t=e)?r=t:i=t,function(){var n=arguments;if(i=r?r():i)return i.add.apply(i,n)}))}),u.diagLog=function(n){return e(n).diagLog()},u[E]=function(){return o},u.setInitialized=function(n){o=n},u.setNextPlugin=function(n){l=n},u.processNext=function(n,e){e?e.processNext(n):l&&p(l.processTelemetry)&&l.processTelemetry(n,null)},u._getTelCtx=e},$e="attachEvent",Ve="addEventListener",Ge="detachEvent",Ye="removeEventListener",Ze="events",nt="visibilitychange",et="pagehide",tt="pageshow",rt="beforeunload",it=Ae("aiEvtPageHide"),ot=Ae("aiEvtPageShow"),at=/\.[\.]+/g,ut=/[\.]+$/,ct=1,st=Be("events"),lt=/^([^.]*)(?:\.(.+)|)/;function ft(n){return n&&n.replace?n.replace(/^\s*\.*|\.*\s*$/g,""):n}function dt(n,e){e&&(t="",en(e)?(t="",tn(e,function(n){(n=ft(n))&&("."!==n[0]&&(n="."+n),t+=n)})):t=ft(e),t&&(n=(n||"")+(t="."!==t[0]?"."+t:t)));var t,e=lt.exec(n||"")||[];return{type:e[1],ns:(e[2]||"").replace(at,".").replace(ut,"").split(".").sort().join(".")}}function vt(n,e,t){n=st.get(n,Ze,{},t=void 0===t||t);return n[e]||(n[e]=[])}function gt(n,e,t,r){n&&e&&e.type&&(n[Ye]?n[Ye](e.type,t,r):n[Ge]&&n[Ge]("on"+e.type,t))}function pt(n,e,t,r){for(var i=e.length;i--;){var o=e[i];!o||t.ns&&t.ns!==o.evtName.ns||r&&!r(o)||(gt(n,o.evtName,o.handler,o.capture),e.splice(i,1))}}function ht(n,e){return e?dt("xx",en(e)?[n].concat(e):[n,e]).ns.split("."):n}function yt(n,e,t,r,i){void 0===i&&(i=!1);var o,a=!1;if(n)try{var u,c=dt(e,r),s=c,l=t,f=i,d=!1;(o=n)&&s&&s.type&&l&&(o[Ve]?(o[Ve](s.type,l,f),d=!0):o[$e]&&(o[$e]("on"+s.type,l),d=!0)),(a=d)&&st.accept(n)&&(u={guid:ct++,evtName:c,handler:t,capture:i},vt(n,c.type).push(u))}catch(v){}return a}function mt(n,e,t,r,i){if(void 0===i&&(i=!1),n)try{var o=dt(e,r),a=!1,u=n,c=function(n){return!((!o.ns||t)&&n.handler!==t)&&(a=!0)};(s=o).type?pt(u,vt(u,s.type),s,c):(nn(l=st.get(u,Ze,{}),function(n,e){pt(u,e,s,c)}),0===_n(l).length&&st.kill(u,Ze)),a||gt(n,o,t,i)}catch(f){}var s,l}function bt(n,o,a,u){var c=!1;return o&&n&&0<n.length&&tn(n,function(n){var e,t,r,i;!n||a&&-1!==wn(a,n)||(n=n,e=o,t=u,r=!1,(i=se())&&(r=yt(i,n,e,t),r=yt(i.body,n,e,t)||r),i=le(),c=(r=i&&yt(i,n,e,t)||r)||c)}),c}function xt(n,i,o){n&&en(n)&&tn(n,function(n){var e,t,r;n&&(n=n,e=i,t=o,(r=se())&&(mt(r,n,e,t),mt(r.body,n,e,t)),(r=le())&&mt(r,n,e,t))})}var wt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Tt="withCredentials",Ct="timeout",_t=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),n=(le(),!!se());function cn(n){return""!==n&&!W(n)}function St(n,e,t){var r=-1;return J(n)||(0<e&&(32===e?r=8192:e<=13&&(r=e<<5)),0<=t&&t<=9?(-1===r&&(r=0),r|=t):(e=_t[function i(n){var e,t=0;return null!==n&&n!==undefined&&("string"==(e=typeof n)?t=1:"number"==e?t=2:"boolean"==e?t=3:e===X&&(t=4,en(n)?(t=4096,0<n.length&&(t|=i(n[0]))):dn(n,"value")&&(t=8192|i(n.value)))),t}(n)]||-1,-1!==r&&-1!==e?r|=e:6===e&&(r=e))),r}function Et(){var r={},e=!1,n=0,t=arguments.length,i=Object[a],o=arguments;for("[object Boolean]"===i.toString.call(o[0])&&(e=o[0],n++);n<t;n++)nn(o[n],function(t,n){e&&n&&vn(n)?en(n)?(r[t]=r[t]||[],tn(n,function(n,e){n&&vn(n)?r[t][e]=Et(!0,r[t][e],n):r[t][e]=n})):r[t]=Et(!0,r[t],n):r[t]=n});return r}var Y=function(){var n=on("performance");return n&&n.now?n.now():V()};function Pt(n,e){n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[e]=Y()}var Rt="REAL_TIME",Ot="POST",Lt="drop",e="requeue",Mt="application/x-json-stream",Nt="cache-control",kt="content-type",Kt="kill-duration",It="time-delta-millis",At="client-version",Bt="client-id",Ht="time-delta-to-apply-millis",qt="upload-time",Ut="apikey",zt="AuthMsaDeviceTicket",i="AuthXToken",Dt="msfpc";function Ft(n){n=(n.ext||{}).intweb;return n&&cn(n[Dt])?n[Dt]:null}function jt(n){for(var e=null,t=0;null===e&&t<n.length;t++)e=Ft(n[t]);return e}Qt.create=function(n,e){return new Qt(n,e)};var Xt=Qt;function Qt(r,n){var i=n?[].concat(n):[],n=this,o=jt(i);n.iKey=function(){return r},n.Msfpc=function(){return o||""},n.count=function(){return i.length},n.events=function(){return i},n.addEvent=function(n){return!!n&&(i.push(n),o=o||Ft(n),!0)},n.split=function(n,e){var t;return n<i.length&&(t=i.length-n,W(e)||(t=e<t?e:t),t=i.splice(n,t),o=jt(i)),new Qt(r,t)}}var Jt="metadata",Wt=/\./,$t=function Cr(e,n,b,t){var o="baseData",x=!!t,w=n,T={};C(Cr,this,function(y){function m(n,f,d,v,g,p,h){nn(n,function(n,e){if(e||cn(e)){var t,r=d,i=n,o=g,a=f;if(x&&!v&&Wt.test(n)){var u=n.split("."),c=u.length;if(1<c){for(var o=o&&o.slice(),s=0;s<c-1;s++){var l=u[s],a=a[l]=a[l]||{};r+="."+l,o&&o.push(l)}i=u[c-1]}}(n=v&&((t=T[n=r])===undefined&&(7<=n.length&&(t=pn(n,"ext.metadata")||pn(n,"ext.web")),T[n]=t),t)||!w||!w.handleField(r,i)?function(n,e){if(!n&&!cn(n)||"string"!=typeof i)return null;var t=typeof n;if("string"==t||"number"==t||"boolean"==t||en(n))n={value:n};else if("object"!=t||n.hasOwnProperty("value")){if(W(n.value)||""===n.value||!yn(n.value)&&!mn(n.value)&&!bn(n.value)&&!en(n.value))return null}else n={value:e?JSON.stringify(n):n};if(en(n.value)&&!(0<n.value.length))return null;if(!W(n.kind)){if(en(n.value)||!(0===(t=n.kind)||0<t&&t<=13||32===t))return null;n.value=n.value.toString()}return n}(e,b):w.value(r,i,e,b))&&(t=n.value,a[i]=t,p&&p(o,i,n),h&&"object"==typeof t&&!en(t)&&((n=o)&&(n=o.slice()).push(i),m(e,t,r+"."+i,v,n,p,h)))}})}y.createPayload=function(n,e,t,r,i,o){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:n,isTeardown:e,isSync:t,isBeacon:r,sendType:o,sendReason:i}},y.appendPayload=function(g,p,h){var n=g&&p&&!g.overflow;return n&&un(e,function(){return"Serializer:appendPayload"},function(){for(var n=p.events(),e=g.payloadBlob,t=g.numEvents,r=!1,i=[],o=[],a=g.isBeacon,u=a?65e3:3984588,c=a?65e3:2e6,s=0,l=0;s<n.length;){var f=n[s];if(f){if(h<=t){g.overflow=p.split(s);break}var d=y.getEventBlob(f);if(d&&d.length<=c){var v=d.length;if(u<e.length+v){g.overflow=p.split(s);break}e&&(e+="\n"),e+=d,20<++l&&(e.substr(0,1),l=0),r=!0,t++}else(d?i:o).push(f),n.splice(s,1),s--}s++}i&&0<i.length&&g.sizeExceed.push(Xt.create(p.iKey(),i)),o&&0<o.length&&g.failedEvts.push(Xt.create(p.iKey(),o)),r&&(g.batches.push(p),g.payloadBlob=e,g.numEvents=t,a=p.iKey(),-1===wn(g.apiKeys,a)&&g.apiKeys.push(a))},function(){return{payload:g,theBatch:{iKey:p.iKey(),evts:p.events()},max:h}}),n},y.getEventBlob=function(i){try{return un(e,function(){return"Serializer.getEventBlob"},function(){var n={},r=(n.name=i.name,n.time=i.time,n.ver=i.ver,n.iKey="o:"+function(n){if(n){var e=n.indexOf("-");if(-1<e)return n.substring(0,e)}return""}(i.iKey),{}),e=i.ext,e=(e&&(n.ext=r,nn(e,function(n,e){m(e,r[n]={},"ext."+n,!0,null,null,!0)})),n.data={}),t=(e.baseType=i.baseType,e[o]={});return m(i.baseData,t,o,!1,[o],function(n,e,t){Vt(r,n,e,t)},!0),m(i.data,e,"data",!1,[],function(n,e,t){Vt(r,n,e,t)},!0),JSON.stringify(n)},function(){return{item:i}})}catch(n){return null}}})};function Vt(n,e,t,r){if(r&&n){var i=St(r.value,r.kind,r.propertyType);if(-1<i){var o=n[Jt],a=(a=(o=o||(n[Jt]={f:{}})).f)||(o.f={});if(e)for(var u=0;u<e.length;u++)var c=e[u],a=(a[c]||(a[c]={f:{}}),a[c].f||(a[c].f={}));a=a[t]={},en(r.value)?a.a={t:i}:a.t=i}}}var Gt=.8,Yt=1.2,Zt=3e3,nr=6e5;function er(n){var e=Zt*Gt;return Math.min(Math.pow(2,n)*(Math.floor(Math.random()*(Zt*Yt-e))+e),nr)}var tr=function _r(){var c={};C(_r,this,function(n){n.setKillSwitchTenants=function(n,e){if(n&&e)try{o=n.split(","),a=[],o&&tn(o,function(n){a.push($(n))});var t=a;if("this-request-only"===e)return t;for(var r=1e3*parseInt(e,10),i=0;i<t.length;++i)c[t[i]]=V()+r}catch(u){return[]}var o,a;return[]},n.isTenantKilled=function(n){var e=c,n=$(n);return e[n]!==undefined&&e[n]>V()||(delete e[n],!1)}})},rr=function Sr(){var e=!0,t=!0,r=!0,i="use-collector-delta",o=!1;C(Sr,this,function(n){n.allowRequestSending=function(){return e},n.firstRequestSent=function(){r&&(r=!1,o||(e=!1))},n.shouldAddClockSkewHeaders=function(){return t},n.getClockSkewHeaderValue=function(){return i},n.setClockSkew=function(n){o||(n?(i=n,o=t=!0):t=!1,e=!0)}})},ir="sendAttempt",or="&NoResponseBody=true",ar=((s={})[1]=e,s[100]=e,s[200]="sent",s[8004]=Lt,s[8003]=Lt,s),ur={},cr={};function o(n,e,t){ur[n]=e,!1!==t&&(cr[e]=n)}function sr(n){try{return n.responseText}catch(e){}return""}function lr(n,e){var t=!1;if(n&&e){var r=_n(n);if(r&&0<r.length)for(var i=e.toLowerCase(),o=0;o<r.length;o++){var a=r[o];if(a&&dn(e,a)&&a.toLowerCase()==i){t=!0;break}}}return t}function fr(n,e,t,r){e&&t&&0<t.length&&(r&&ur[e]?(n.hdrs[ur[e]]=t,n.useHdrs=!0):n.url+="&"+e+"="+t)}o(zt,zt,!1),o(At,At),o(Bt,"Client-Id"),o(Ut,Ut),o(Ht,Ht),o(qt,qt),o(i,i);var dr,vr,gr=function Er(_,n,S,l){this._responseHandlers=[];var E,P,R,f,O,L,M="?cors=true&content-type="+Mt,N=new tr,k=!1,K=new rr,I=!1,A=0,B=!0,H=[],q={},U=[],z=null,D=!1,F=!1,j=!1;C(Er,this,function(h){var v=!0;function a(n,e){for(var t=0,r=null,i=0;null==r&&i<n.length;)1===(t=n[i])?(oe=null===oe&&(oe=typeof XDomainRequest!==Q)&&ye()?oe&&!ue(on(te),"withCredentials"):oe)?r=o:ye()&&(r=c):2===t&&function(n){var e=!1;try{var e=!!on("fetch"),t=on("Request");e&&n&&t&&(e=ue(t,"keepalive"))}catch(r){}return e}(e)?r=u:I&&3===t&&he()&&(r=s),i++;return r?{_transport:t,_isSync:e,sendPOST:r}:null}function o(n,e,t){var r=new XDomainRequest;r.open(Ot,n.urlString),n.timeout&&(r.timeout=n.timeout),r.onload=function(){var n=sr(r);y(e,200,{},n),T(n)},r.onerror=function(){y(e,400,{})},r.ontimeout=function(){y(e,500,{})},r.onprogress=function(){},t?r.send(n.data):E._setTimeoutOverride(function(){r.send(n.data)},0)}function u(n,r,e){var t,i=n.urlString,o=!1,a=!1;(t={body:n.data,method:Ot}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0;e&&(t.keepalive=!0,2===n._sendReason&&(o=!0,i+=or)),v&&(t.credentials="include"),n.headers&&0<_n(n.headers).length&&(t.headers=n.headers),fetch(i,t).then(function(n){var t={},e="";n.headers&&n.headers.forEach(function(n,e){t[e]=n}),n.body&&n.text().then(function(n){e=n}),a||(a=!0,y(r,n.status,t,e),T(e))})["catch"](function(n){a||(a=!0,y(r,0,{}))}),o&&!a&&(a=!0,y(r,200,{})),!a&&0<n.timeout&&E._setTimeoutOverride(function(){a||(a=!0,y(r,500,{}))},n.timeout)}function c(n,o,e){var t=n.urlString;function a(n,e,t){return!n[t]&&e&&e.getResponseHeader&&(e=e.getResponseHeader(t))&&(n[t]=$(e)),n}function r(n,e){var t,r,i;y(o,n.status,(i={},(n=n).getAllResponseHeaders?(t=n.getAllResponseHeaders(),r={},yn(t)&&tn($(t).split(/[\r\n]+/),function(n){var e,t;n&&(-1!=(t=n.indexOf(": "))?(e=$(n.substring(0,t)).toLowerCase(),t=$(n.substring(1+t)),r[e]=t):r[$(n)]=1)}),r):(i=a(i,n,It),i=a(i,n,Kt),a(i,n,"kill-duration-seconds"))),e)}e&&n.disableXhrSync&&(e=!1),i=Ot,t=t,u=v,e=e,s=n.timeout,c=!0,void 0===e&&(e=!1),l=new XMLHttpRequest,c&&d(l,wt,c),u&&d(l,Tt,u),l.open(i,t,!e),u&&d(l,Tt,u),!e&&s&&d(l,Ct,s);var i,u,c,s,l,f=l;function d(n,e,t){try{n[e]=t}catch(r){}}nn(n.headers,function(n,e){f.setRequestHeader(n,e)}),f.onload=function(){var n=sr(f);r(f,n),T(n)},f.onerror=function(){r(f)},f.ontimeout=function(){r(f)},f.send(n.data)}function y(n,e,t,r){try{n(e,t,r)}catch(i){an(E.diagLog(),2,518,G(i))}}function s(n,e,t){var r=200,i=n._thePayload,o=n.urlString+or;try{var a,u=de();u.sendBeacon(o,n.data)||(i?(a=[],tn(i.batches,function(n){if(a&&n&&0<n.count()){for(var e=n.events(),t=0;t<e.length;t++)if(!u.sendBeacon(o,z.getEventBlob(e[t]))){a.push(n.split(t));break}}else a.push(n.split(0))}),C(a,8003,i.sendType,!0)):r=0)}catch(c){E.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+G(c)),r=0}finally{y(e,r,{},"")}}function m(n){return 2===n||3===n}function r(n){return F&&m(n)?2:n}function i(){return!k&&A<n}function t(){var n=U;return U=[],n}function d(n,e,t){return n&&0<n.length&&!k&&P[e]&&z&&(0!==e||i()&&(0<t||K.allowRequestSending()))}function g(n){var t={};return n&&tn(n,function(n,e){t[e]={iKey:n.iKey(),evts:n.events()}}),t}function b(a,u,c,s,l){if(a&&0!==a.length)if(k)C(a,1,s);else{s=r(s);try{var n=a,f=0!==s;un(R,function(){return"HttpManager:_sendBatches"},function(n){n&&(a=a.slice(0));for(var e=[],t=null,r=Y(),n=P[s]||(f?P[1]:P[0]),i=(F||m(s)||n&&3===n._transport)&&!B&&I&&he();d(a,s,u);){var o=a.shift();o&&0<o.count()&&(N.isTenantKilled(o.iKey())?e.push(o):(t=t||z.createPayload(u,c,f,i,l,s),z.appendPayload(t,o,_)?null!==t.overflow&&(a=[t.overflow].concat(a),t.overflow=null,p(t,r,Y(),l),r=Y(),t=null):(p(t,r,Y(),l),r=Y(),a=[o].concat(a),t=null)))}t&&p(t,r,Y(),l),0<a.length&&(U=a.concat(U)),C(e,8004,s)},function(){return{batches:g(n),retryCount:u,isTeardown:c,isSynchronous:f,sendReason:l,useSendBeacon:m(s),sendType:s}},!f)}catch(e){an(E.diagLog(),2,48,"Unexpected Exception sending batch: "+G(e))}}}function x(n,e,t){n[e]=n[e]||{},n[e][E.identifier]=t}function p(v,u,c,g){var s,l,f,d,p;v&&v.payloadBlob&&0<v.payloadBlob.length&&(s=!!h.sendHook,l=P[v.sendType],!m(v.sendType)&&v.isBeacon&&2===v.sendReason&&(l=P[2]||P[3]||l),d=j,!v.isBeacon&&3!==l._transport||(d=!1),f=function(n,e){var t={url:M,hdrs:{},useHdrs:!1},r=(e?(t.hdrs=Et(t.hdrs,q),t.useHdrs=0<_n(t.hdrs).length):nn(q,function(n,e){cr[n]?fr(t,cr[n],e,!1):(t.hdrs[n]=e,t.useHdrs=!0)}),fr(t,Bt,"NO_AUTH",e),fr(t,At,"1DS-Web-JS-3.2.1",e),""),n=(tn(n.apiKeys,function(n){0<r.length&&(r+=","),r+=n}),fr(t,Ut,r,e),fr(t,qt,V().toString(),e),function(n){for(var e=0;e<n.batches.length;e++){var t=n.batches[e].Msfpc();if(t)return encodeURIComponent(t)}return""}(n));cn(n)&&(t.url+="&ext.intweb.msfpc="+n),K.shouldAddClockSkewHeaders()&&fr(t,Ht,K.getClockSkewHeaderValue(),e),R.getWParam&&0<=(n=R.getWParam())&&(t.url+="&w="+n);for(var i=0;i<H.length;i++)t.url+="&"+H[i].name+"="+H[i].value;return t}(v,d),d=d||f.useHdrs,p=Y(),un(R,function(){return"HttpManager:_doPayloadSend"},function(){for(var n=0;n<v.batches.length;n++)for(var e=v.batches[n].events(),t=0;t<e.length;t++){var r,i=e[t];D&&(x(r=i.timings=i.timings||{},"sendEventStart",p),x(r,"serializationStart",u),x(r,"serializationCompleted",c)),0<i[ir]?i[ir]++:i[ir]=1}C(v.batches,1e3+(g||0),v.sendType,!0);var o={data:v.payloadBlob,urlString:f.url,headers:f.hdrs,_thePayload:v,_sendReason:g,timeout:O},a=(J(L)||(o.disableXhrSync=!!L),d&&(lr(o.headers,Nt)||(o.headers[Nt]="no-cache, no-store"),lr(o.headers,kt)||(o.headers[kt]=Mt)),null);l&&(a=function(n){K.firstRequestSent();var e=function(n,e){var t,r,i=v,o=g,a=9e3,u=null,c=!1,s=!1;try{var l,f=!0;if(typeof n!==Q){if(e&&(K.setClockSkew(e[It]),d=e[Kt]||e["kill-duration-seconds"],tn(N.setKillSwitchTenants(e["kill-tokens"],d),function(e){tn(i.batches,function(n){n.iKey()===e&&(u=u||[],n=n.split(0),i.numEvents-=n.count(),u.push(n))})})),200==n||204==n)return void(a=200);(300<=n&&n<500&&408!=n&&429!=n||501==n||505==n||i.numEvents<=0)&&(f=!1),a=9e3+n%1e3}f&&(a=100,l=i.retryCnt,0===i.sendType&&(l<S?(c=!0,w(function(){0===i.sendType&&A--,b(i.batches,l+1,i.isTeardown,F?2:i.sendType,5)},F,er(l))):(s=!0,F&&(a=8001))))}finally{if(!c){K.setClockSkew();var e=i,d=a,n=o,f=s;try{f&&E._backOffTransmission(),200===d&&(f||e.isSync||E._clearBackOff(),t=e.batches,D&&(r=Y(),tn(t,function(n){var e;n&&0<n.count()&&(n=n.events(),e=r,D&&tn(n,function(n){x(n.timings=n.timings||{},"sendEventCompleted",e)}))}))),C(e.batches,d,e.sendType,!0)}finally{0===e.sendType&&(A--,5!==n&&h.sendQueuedRequests(e.sendType,n))}}C(u,8004,i.sendType)}},t=v.isTeardown||v.isSync;try{l.sendPOST(n,e,t),h.sendListener&&h.sendListener(o,n,t,v.isBeacon)}catch(r){E.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+G(r)),y(e,0,{})}}),un(R,function(){return"HttpManager:_doPayloadSend.sender"},function(){var e,t;a&&(0===v.sendType&&A++,s&&!v.isBeacon&&3!==l._transport?(e={data:o.data,urlString:o.urlString,headers:Et({},o.headers),timeout:o.timeout,disableXhrSync:o.disableXhrSync},t=!1,un(R,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{h.sendHook(e,function(n){t=!0,B||n._thePayload||(n._thePayload=n._thePayload||o._thePayload,n._sendReason=n._sendReason||o._sendReason),a(n)},v.isSync||v.isTeardown)}catch(n){t||a(o)}})):a(o))})},function(){return{thePayload:v,serializationStart:u,serializationCompleted:c,sendReason:g}},v.isSync)),v.sizeExceed&&0<v.sizeExceed.length&&C(v.sizeExceed,8003,v.sendType),v.failedEvts&&0<v.failedEvts.length&&C(v.failedEvts,8002,v.sendType)}function w(n,e,t){e?n():E._setTimeoutOverride(n,t)}function T(n){var e=h._responseHandlers;try{for(var t,r=0;r<e.length;r++)try{e[r](n)}catch(i){an(E.diagLog(),1,519,"Response handler failed: "+i)}n&&cn((t=JSON.parse(n)).webResult)&&cn(t.webResult[Dt])&&f.set("MSFPC",t.webResult[Dt],31536e3)}catch(o){}}function C(e,t,r,n){var i,o,a;e&&0<e.length&&l&&(i=l[cn(a=ar[t])||(a="oth",9e3<=t&&t<=9999?a="rspFail":8e3<=t&&t<=8999?a=Lt:1e3<=t&&t<=1999&&(a="send")),a])&&un(R,function(){return"HttpManager:_sendBatchesNotification"},function(){w(function(){try{i.call(l,e,t,o,r)}catch(n){an(E.diagLog(),1,74,"send request notification failed: "+n)}},n||o,0)},function(){return{batches:g(e),reason:t,isSync:o,sendSync:n,sendType:r}},!(o=0!==r))}h.initialize=function(n,e,t,r,i){M=n+M,j=!!J((i=i||{}).avoidOptions)||!i.avoidOptions,f=(R=e).getCookieMgr(),D=!R.config.disableEventTimings;var o,n=!!R.config.enableCompoundKey,e=(E=t,i.valueSanitizer),t=i.stringifyObjects,e=(J(i.enableCompoundKey)||(n=!!i.enableCompoundKey),O=i.xhrTimeout,L=i.disableXhrSync,I=!pe(),z=new $t(R,e,t,n),r),t=i.alwaysUseXhrOverride?r:null,n=i.alwaysUseXhrOverride?r:null;r||(B=!1,(o=typeof location===X&&location?location:on(Zn))&&o.protocol&&"file:"==o.protocol.toLowerCase()&&(v=!1),o=[],o=pe()?[2,1]:[1,2,3],(i=i.transports)&&(mn(i)?o=[i].concat(o):en(i)&&(o=i.concat(o))),r=a(o,!1),e=a(o,!0),r||E.diagLog().warnToConsole("No available transport to send events")),(i={})[0]=r,i[1]=e||a([1,2,3],!0),i[2]=t||a([3,2],!0)||e||a([1],!0),i[3]=n||a([2,3],!0)||e||a([1],!0),P=i},h._getDbgPlgTargets=function(){return[P[0],N,z,P]},h.addQueryStringParameter=function(n,e){for(var t=0;t<H.length;t++)if(H[t].name===n)return void(H[t].value=e);H.push({name:n,value:e})},h.addHeader=function(n,e){q[n]=e},h.canSendRequest=function(){return i()&&K.allowRequestSending()},h.sendQueuedRequests=function(n,e){J(n)&&(n=0),F&&(n=r(n),e=2),d(U,n,0)&&b(t(),0,!1,n,e||0)},h.isCompletelyIdle=function(){return!k&&0===A&&0===U.length},h.setUnloading=function(n){F=n},h.addBatch=function(n){if(n&&0<n.count()){if(N.isTenantKilled(n.iKey()))return!1;U.push(n)}return!0},h.teardown=function(){0<U.length&&b(t(),0,!0,2,2)},h.pause=function(){k=!0},h.resume=function(){k=!1,h.sendQueuedRequests(0,4)},h.sendSynchronousBatch=function(n,e,t){n&&0<n.count()&&(W(e)&&(e=1),F&&(e=r(e),t=2),b([n],0,!1,e,t||0))}})},pr=n?window:undefined,sn="eventsDiscarded",hr="overrideInstrumentationKey",yr="maxEventRetryAttempts",mr="maxUnloadEventRetryAttempts";function br(){var P,R,O,L,M,N,k,n=dr.call(this)||this,K=(n.identifier="PostChannel",n.priority=1011,!(n.version="3.2.1")),I=[],A=null,B=!1,H=0,q=500,U=0,z=1e4,D={},F=Rt,j=null,X=null,Q=0,J=0,W={},$=-1,V=!0,G=!1,Y=6,Z=2;return C(br,n,function(p,h){function y(n){"beforeunload"!==(n||se().event).type&&(G=!0,O.setUnloading(G)),s(2,2)}function m(n){G=!1,O.setUnloading(G)}function i(n,e){if(n.sendAttempt||(n.sendAttempt=0),n.latency||(n.latency=1),n.ext&&n.ext.trace&&delete n.ext.trace,n.ext&&n.ext.user&&n.ext.user.id&&delete n.ext.user.id,V&&(n.ext=En(n.ext),n.baseData&&(n.baseData=En(n.baseData)),n.data&&(n.data=En(n.data))),n.sync)if(Q||B)n.latency=3,n.sync=!1;else if(O)return V&&(n=En(n)),O.sendSynchronousBatch(Xt.create(n.iKey,[n]),!0===n.sync?1:n.sync,3);var t=n.latency,r=U,i=z,o=(4===t&&(r=H,i=q),!1);r<i?o=!d(n,e):(r=1,i=20,4===t&&(r=4,i=1),o=!0,function(n,e,t,r){for(;t<=e;){var i=l(n,e,!0);if(i&&0<i.count()){var i=i.split(0,r),o=i.count();if(0<o)return 4===t?H-=o:U-=o,w(sn,[i],rn.QueueFull),1}t++}return v(),0}(n.iKey,n.latency,r,i)&&(o=!d(n,e))),o&&x(sn,[n],rn.QueueFull)}function o(n,e,t){g(n,e,t),O.sendQueuedRequests(e,t)}function a(){0<=$&&g($,0,N)&&O.sendQueuedRequests(0,N),0<H&&!X&&!B&&0<=(n=D[F][2])&&(X=u(function(){X=null,o(4,0,1),a()},n));var n=D[F][1];!j&&!A&&0<=n&&!B&&(0<U?j=u(function(){j=null,o(0===J?3:1,0,1),J++,J%=2,a()},n):J=0)}function r(){K=!1,B=!(I=[]),q=500,z=1e4,D={},F=Rt,J=Q=U=H=0,R=X=j=A=P=null,W={},L=undefined,M=0,$=-1,G=!(V=!(N=null)),Y=6,k=null,O=new gr(500,Z=2,1,{requeue:n,send:t,sent:T,drop:C,rspFail:_,oth:S}),e(),W[4]={batches:[],iKeyMap:{}},W[3]={batches:[],iKeyMap:{}},W[2]={batches:[],iKeyMap:{}},W[1]={batches:[],iKeyMap:{}},E()}function u(n,e){0===e&&Q&&(e=1);var t=1e3;return Q&&(t=er(Q-1)),p._setTimeoutOverride(n,e*t)}function c(){null!==j&&(p._clearTimeoutOverride(j),j=null,J=0)}function s(n,e){c(),A&&(p._clearTimeoutOverride(A),A=null),B||o(1,n,e)}function l(n,e,t){var r=W[e],e=(r=r||W[e=1]).iKeyMap[n];return!e&&t&&(e=Xt.create(n),r.batches.push(e),r.iKeyMap[n]=e),e}function f(n,e){O.canSendRequest()&&!Q&&(e=0<L&&L<U||e)&&null==A&&p.flush(n,null,20)}function d(n,e){var t=(n=V?En(n):n).latency,r=l(n.iKey,t,!0);return r.addEvent(n)&&(4!==t?(U++,e&&0===n.sendAttempt&&f(!n.sync,0<M&&r.count()>=M)):H++,1)}function v(){for(var t=0,r=0,n=1;n<=4;n++)!function(e){var n=W[e];n&&n.batches&&tn(n.batches,function(n){4===e?t+=n.count():r+=n.count()})}(n);U=r,H=t}function g(r,n,e){var i=!1,t=0===n;return!t||O.canSendRequest()?un(p.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],t=4;r<=t;){var n=W[t];n&&n.batches&&0<n.batches.length&&(tn(n.batches,function(n){O.addBatch(n)?i=i||n&&0<n.count():e=e.concat(n.events()),4===t?H-=n.count():U-=n.count()}),n.batches=[],n.iKeyMap={}),t--}0<e.length&&x(sn,e,rn.KillSwitch),i&&r<=$&&($=-1,N=0)},function(){return{latency:r,sendType:n,sendReason:e}},!t):($=0<=$?Math.min($,r):r,N=Math.max(N,e)),i}function e(){D={REAL_TIME:[2,1,0],NEAR_REAL_TIME:[6,3,0],BEST_EFFORT:[18,9,0]}}function n(n,e){var t=[],r=G?Z:Y;tn(n,function(n){n&&0<n.count()&&tn(n.events(),function(n){n&&(n.sync&&(n.latency=4,n.sync=!1),n.sendAttempt<r?(Pt(n,p.identifier),i(n,!1)):t.push(n))})}),0<t.length&&x(sn,t,rn.NonRetryableStatus),G&&s(2,2)}function b(n,e){var t=p._notificationManager||{},r=t[n];if(r)try{r.apply(t,e)}catch(i){an(p.diagLog(),1,74,n+" notification failed: "+i)}}function x(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];e&&0<e.length&&b(n,[e].concat(t))}function w(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];n&&0<n.length&&tn(n,function(n){n&&0<n.count()&&b(e,[n.events()].concat(t))})}function t(n,e,t){n&&0<n.length&&b("eventsSendRequest",[1e3<=e&&e<=1999?e-1e3:0,!0!==t])}function T(n,e){w("eventsSent",n,e),a()}function C(n,e){w(sn,n,8e3<=e&&e<=8999?e-8e3:rn.Unknown)}function _(n){w(sn,n,rn.NonRetryableStatus),a()}function S(n,e){w(sn,n,rn.Unknown),a()}function E(){M=P&&P.disableAutoBatchFlushLimit?0:Math.max(1500,z/6)}r(),p._getDbgPlgTargets=function(){return[O]},p.initialize=function(d,v,g){un(v,function(){return"PostChannel:initialize"},function(){var e,n=v;h.initialize(d,v,g);try{v.addUnloadCb,k=ht(Ae(p.identifier),v.evtNamespace&&v.evtNamespace());var t,r=p._getTelCtx(),i=(d.extensionConfig[p.identifier]=d.extensionConfig[p.identifier]||{},P=r.getExtCfg(p.identifier),p._setTimeoutOverride=P.setTimeoutOverride||setTimeout.bind(pr),p._clearTimeoutOverride=P.clearTimeoutOverride||clearTimeout.bind(pr),V=!P.disableOptimizeObj&&!!on("chrome"),e=n.getWParam,n.getWParam=function(){var n=0;return P.ignoreMc1Ms0CookieProcessing&&(n|=2),n|e()},0<P.eventsLimitInMem&&(z=P.eventsLimitInMem),0<P.immediateEventLimit&&(q=P.immediateEventLimit),0<P.autoFlushEventsLimit&&(L=P.autoFlushEventsLimit),P.disableXhrSync,mn(P[yr])&&(Y=P[yr]),mn(P[mr])&&(Z=P[mr]),E(),P.httpXHROverride&&P.httpXHROverride.sendPOST&&(R=P.httpXHROverride),cn(d.anonCookieName)&&O.addQueryStringParameter("anoncknm",d.anonCookieName),O.sendHook=P.payloadPreprocessor,O.sendListener=P.payloadListener,P.overrideEndpointUrl||d.endpointUrl),o=(p._notificationManager=d.extensionConfig.NotificationManager,O.initialize(i,p.core,p,R,P),d.disablePageUnloadEvents||[]),a=o,u=k,c=y;en(t=[rt,"unload",et])&&!bt(t,c,a,u)&&a&&0<a.length&&bt(t,c,null,u),function s(t,n,e){var r=ht(it,e),i=bt([et],t,n,r);return!(i=(!n||-1===wn(n,nt))&&bt([nt],function(n){var e=le();t&&e&&"hidden"===e.visibilityState&&t(n)},n,r)||i)&&n?s(t,null,e):i}(y,o,k),function l(t,n,e){var r=ht(ot,e),i=bt([tt],t,n,r);return!(i=bt([nt],function(n){var e=le();t&&e&&"visible"===e.visibilityState&&t(n)},n,r)||i)&&n?l(t,null,e):i}(m,d.disablePageShowEvents,k)}catch(f){throw p.setInitialized(!1),f}},function(){return{coreConfig:d,core:v,extensions:g}})},p.processTelemetry=function(n,e){Pt(n,p.identifier);var t=(e=p._getTelCtx(e)).getExtCfg(p.identifier),r=!!P.disableTelemetry;(r=t?r||!!t.disableTelemetry:r)||K||(P[hr]&&(n.iKey=P[hr]),t&&t[hr]&&(n.iKey=t[hr]),i(n,!0),G?s(2,2):a()),p.processNext(n,e)},p._doTeardown=function(n,e){var t;s(2,2),K=!0,O.teardown(),xt([rt,"unload",et],null,k),t=ht(it,k),xt([et],null,t),xt([nt],null,t),t=ht(ot,k),xt([tt],null,t),xt([nt],null,t),r()},p.setEventQueueLimits=function(n,e){z=0<n?n:1e4,L=0<e?e:0,E();var t=n<U;if(!t&&0<M)for(var r=1;!t&&r<=3;r++){var i=W[r];i&&i.batches&&tn(i.batches,function(n){n&&n.count()>=M&&(t=!0)})}f(!0,t)},p.pause=function(){c(),B=!0,O.pause()},p.resume=function(){B=!1,O.resume(),a()},p.addResponseHandler=function(n){O._responseHandlers.push(n)},p._loadTransmitProfiles=function(n){c(),e(),F=Rt,a(),nn(n,function(n,e){var t,r=e.length;2<=r&&(t=2<r?e[2]:0,e.splice(0,r-2),e[1]<0&&(e[0]=-1),0<e[1]&&0<e[0]&&(r=e[0]/e[1],e[0]=Math.ceil(r)*e[1]),0<=t&&0<=e[1]&&t>e[1]&&(t=e[1]),e.push(t),D[n]=e)})},p.flush=function(n,e,t){void 0===n&&(n=!0),B||(c(),t=t||1,n?(g(1,0,t),v(),null==A?A=u(function(){!function r(n,e){o(1,0,e),function t(n){O.isCompletelyIdle()?n():A=u(function(){t(n)},.25)}(function(){n&&n(),0<I.length?A=u(function(){return r(I.shift(),e)},0):(A=null,0<U&&a())})}(e,t)},0):I.push(e)):(o(1,1,t),null!==e&&e!==undefined&&e()))},p.setMsaAuthTicket=function(n){O.addHeader(zt,n)},p.hasEvents=function(){return 0<U},p._setTransmitProfile=function(n){F!==n&&D[n]!==undefined&&(c(),F=n,a())},p._backOffTransmission=function(){Q<4&&(Q++,c(),a())},p._clearBackOff=function(){Q&&(Q=0,c(),a())}}),n}function xr(){this.constructor=vr}vr=br,typeof(e=dr=K)!==f&&null!==e&&_("Class extends value "+e+" is not a constructor or null"),S(vr,e),vr[a]=(xr[a]=e[a],new xr);var s=br,i=(l.BE_PROFILE="BEST_EFFORT",l.NRT_PROFILE="NEAR_REAL_TIME",l.PostChannel=s,l.RT_PROFILE=Rt,l),n="__esModule",K={value:!0},e=Object.defineProperty;if(e)try{return e(i,n,K)}catch(Pr){}typeof K.value!==undefined&&(i[n]=K.value)}(this.oneDS=this.oneDS||{});
7
7
  //# sourceMappingURL=ms.post.gbl.min.js.map