New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/1ds-post-js

Package Overview
Dependencies
Maintainers
4
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/1ds-post-js - npm Package Compare versions

Comparing version 3.2.5 to 3.2.6

bundle/ms.post-3.2.6.gbl.js

4

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

@@ -8,7 +8,7 @@ "@gbl.js": {

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-HVRVkWA+YpsINv4L4JB/dkfCDZJzLPHHutczCfSG5W8= sha384-Fs2Gmf82VSOkZKnQDoidQfccsYJ03GZCgtW7BX9L6woYXJNjpP3ojE2Qijmwf9lg sha512-xX1jouHcgKVBpv/Fq2mXd2uu5cm6YJEe2O6XA9tvEK9EzVVUlZ9eSuchCED8guAoeVZgBM8Z9a324geZ8cBAfw==",
"integrity": "sha256-dx0B0jCkyhXcM6e1bhq7POwPqKfn8RNo3esZTWyGEjo= sha384-0tV5mzwgcsPDMaExkEz8gsK0tVTbRitBNmEtDiCpdUt2W30rH7gSz9vyC/NaSpY6 sha512-XJcwjEETyZf7KmHC7uBZnr9M/ApY/DBjQeeXuC1He76+CN069A6LmtMlDytv1h+DeXUZrzxZhx6gHJ2zvSBaIA==",
"hashes": {
"sha256": "HVRVkWA+YpsINv4L4JB/dkfCDZJzLPHHutczCfSG5W8=",
"sha384": "Fs2Gmf82VSOkZKnQDoidQfccsYJ03GZCgtW7BX9L6woYXJNjpP3ojE2Qijmwf9lg",
"sha512": "xX1jouHcgKVBpv/Fq2mXd2uu5cm6YJEe2O6XA9tvEK9EzVVUlZ9eSuchCED8guAoeVZgBM8Z9a324geZ8cBAfw=="
"sha256": "dx0B0jCkyhXcM6e1bhq7POwPqKfn8RNo3esZTWyGEjo=",
"sha384": "0tV5mzwgcsPDMaExkEz8gsK0tVTbRitBNmEtDiCpdUt2W30rH7gSz9vyC/NaSpY6",
"sha512": "XJcwjEETyZf7KmHC7uBZnr9M/ApY/DBjQeeXuC1He76+CN069A6LmtMlDytv1h+DeXUZrzxZhx6gHJ2zvSBaIA=="
}

@@ -19,7 +19,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-cXOePMemvr6rx5hmXPvqVdh6wYxKpssG8lyKs2RWPxA= sha384-CSG3tfwIsV5C/L2WUs8AnLtCd1Jja4/gAwr4LbmrjOHIlbZ5tMXN0UdVVXpSw044 sha512-R/BQQ5hyiJ7iK7WXMyaQhJVieSOLdFYLI95hMDpcOHvTkM+Q+9Sc///FiVTGO1Z2mKf6ZmmqgFzADcMFpwoVTA==",
"integrity": "sha256-rHFAVTtEntkiuB0+Qa/ROn3k3MYAryqrLUfQxS8ySN4= sha384-nQsdQNRvX84pcZHhyDroQHPQyki2gvzLe1qvrrLUXOwOzw63GnT/9C498E63LUeB sha512-ftc04jOFXzm8pySgYj9GjsIBDSnCghHb6xOQpMbUpAF76qEY77fRTFxitnl48OieTADu6HTA5ZfQmGLvpeHfeQ==",
"hashes": {
"sha256": "cXOePMemvr6rx5hmXPvqVdh6wYxKpssG8lyKs2RWPxA=",
"sha384": "CSG3tfwIsV5C/L2WUs8AnLtCd1Jja4/gAwr4LbmrjOHIlbZ5tMXN0UdVVXpSw044",
"sha512": "R/BQQ5hyiJ7iK7WXMyaQhJVieSOLdFYLI95hMDpcOHvTkM+Q+9Sc///FiVTGO1Z2mKf6ZmmqgFzADcMFpwoVTA=="
"sha256": "rHFAVTtEntkiuB0+Qa/ROn3k3MYAryqrLUfQxS8ySN4=",
"sha384": "nQsdQNRvX84pcZHhyDroQHPQyki2gvzLe1qvrrLUXOwOzw63GnT/9C498E63LUeB",
"sha512": "ftc04jOFXzm8pySgYj9GjsIBDSnCghHb6xOQpMbUpAF76qEY77fRTFxitnl48OieTADu6HTA5ZfQmGLvpeHfeQ=="
}

@@ -30,7 +30,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-rLSkWTe617x2XSIDb7C4SdUGEfVKFKzmhIjiOCMRx0A= sha384-fVPcmgMVEHbsvHUHyUe6qO5o30Nx7mfSI9sBQt107eglmlaWyk5/UWKDWOijwKqq sha512-KLpfgAm4785dynTmy0Z00Jv7h4cEBijiPrZfgcT0CcGML+H0lcrcfxNnBVXM42OlCC401TJvXpn/puAzgvjRMQ==",
"integrity": "sha256-oF+StiR9SY0I9p7NMrysddVjdepfklIzZ5tgoqTZhUw= sha384-kteaP9iAq2VX10Gibr2brFa3K9wwV5/RXpegBiIHVwWCyMU3d2ssbFg1kPz1wlsT sha512-7sUqLDrMQqXvEoUVdS6e7LkFZyIzqecz87pZDIg0Guj8u3wvZboPHAO0i6bNNuj6tj2X2sBqzGU633n/7FNciw==",
"hashes": {
"sha256": "rLSkWTe617x2XSIDb7C4SdUGEfVKFKzmhIjiOCMRx0A=",
"sha384": "fVPcmgMVEHbsvHUHyUe6qO5o30Nx7mfSI9sBQt107eglmlaWyk5/UWKDWOijwKqq",
"sha512": "KLpfgAm4785dynTmy0Z00Jv7h4cEBijiPrZfgcT0CcGML+H0lcrcfxNnBVXM42OlCC401TJvXpn/puAzgvjRMQ=="
"sha256": "oF+StiR9SY0I9p7NMrysddVjdepfklIzZ5tgoqTZhUw=",
"sha384": "kteaP9iAq2VX10Gibr2brFa3K9wwV5/RXpegBiIHVwWCyMU3d2ssbFg1kPz1wlsT",
"sha512": "7sUqLDrMQqXvEoUVdS6e7LkFZyIzqecz87pZDIg0Guj8u3wvZboPHAO0i6bNNuj6tj2X2sBqzGU633n/7FNciw=="
}

@@ -41,7 +41,7 @@ },

"type": "text/javascript; charset=utf-8",
"integrity": "sha256-CGbtVff9XJ6FeZ4eQuUJvkNQ+Dm5ym9Fi9VzS5uKhC8= sha384-3IZ9/xLFZh2ory/OsIlk4q8jBx2fpIn0/kP6PB5kOGFFZBT60STOQ4f0iSAimbFS sha512-RHC7AONJdIVbo0l/iigp4qBB9slCzGiK9G9quLtmxq7GUG28OjqueA8vz7KOU3ukNnulEpmhkvGi94ZWT4BMHQ==",
"integrity": "sha256-EMrD5EO1oCGDi9kiWco7B+lC3fM108KvOkJV4b4OSNU= sha384-ZnAzR94CJ2PXAEyqFL0LBRfJzfT9DXeMq25KfAe4EndcWpEG13uqSsVPAEQwBwJ9 sha512-3oNTCETbfmDwat93v1OSRHCGNLdVBS+Jps0fUPlRnzSqKV9BGHF8GrMXKlLn00FQsaQU/8l4zz+PhVJwy7joXw==",
"hashes": {
"sha256": "CGbtVff9XJ6FeZ4eQuUJvkNQ+Dm5ym9Fi9VzS5uKhC8=",
"sha384": "3IZ9/xLFZh2ory/OsIlk4q8jBx2fpIn0/kP6PB5kOGFFZBT60STOQ4f0iSAimbFS",
"sha512": "RHC7AONJdIVbo0l/iigp4qBB9slCzGiK9G9quLtmxq7GUG28OjqueA8vz7KOU3ukNnulEpmhkvGi94ZWT4BMHQ=="
"sha256": "EMrD5EO1oCGDi9kiWco7B+lC3fM108KvOkJV4b4OSNU=",
"sha384": "ZnAzR94CJ2PXAEyqFL0LBRfJzfT9DXeMq25KfAe4EndcWpEG13uqSsVPAEQwBwJ9",
"sha512": "3oNTCETbfmDwat93v1OSRHCGNLdVBS+Jps0fUPlRnzSqKV9BGHF8GrMXKlLn00FQsaQU/8l4zz+PhVJwy7joXw=="
}

@@ -48,0 +48,0 @@ }

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

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -43,3 +43,3 @@ * (Microsoft Internal Only)

_this.priority = 1011;
_this.version = '3.2.5';
_this.version = '3.2.6';
var _config;

@@ -46,0 +46,0 @@ var _isTeardownCalled = false;

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.

@@ -4,0 +4,0 @@ * (Microsoft Internal Only)

/*!
* 1DS JS SDK POST plugin, 3.2.5
* 1DS JS SDK POST plugin, 3.2.6
* Copyright (c) Microsoft and contributors. All rights reserved.
* (Microsoft Internal Only)
*/
var e=this,n=function(e,n,t,ne){"use strict";function y(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=y(t),te="REAL_TIME",V="POST",W="drop",t="requeue",J="application/x-json-stream",G="cache-control",he="content-type",ve="kill-duration",pe="time-delta-millis",Y="client-version",ye="client-id",Z="time-delta-to-apply-millis",$="upload-time",ee="apikey",ie="AuthMsaDeviceTicket",i="AuthXToken",re="msfpc",me="trace",ae="user";function m(e){e=(e.ext||{}).intweb;return e&&ne.isValueAssigned(e[re])?e[re]:null}function g(e){for(var n=null,t=0;null===n&&t<e.length;t++)n=m(e[t]);return n}s.create=function(e,n){return new s(e,n)};var oe=s;function s(i,e){var r=e?[].concat(e):[],e=this,a=g(r);e.iKey=function(){return i},e.Msfpc=function(){return a||""},e.count=function(){return r.length},e.events=function(){return r},e.addEvent=function(e){return!!e&&(r.push(e),a=a||m(e),!0)},e.split=function(e,n){var t;return e<r.length&&(t=r.length-e,ne.isNullOrUndefined(n)||(t=n<t?n:t),t=r.splice(e,t),a=g(r)),new s(i,t)}}u.__ieDyn=1;var b=u;function u(){var n=!0,t=!0,i=!0,r="use-collector-delta",a=!1;o(u,this,function(e){e.allowRequestSending=function(){return n},e.firstRequestSent=function(){i&&(i=!1,a||(n=!1))},e.shouldAddClockSkewHeaders=function(){return t},e.getClockSkewHeaderValue=function(){return r},e.setClockSkew=function(e){a||(e?(r=e,a=t=!0):t=!1,n=!0)}})}r.__ieDyn=1;var T=r;function r(){var u={};o(r,this,function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{a=e.split(","),o=[],a&&ne.arrForEach(a,function(e){o.push(ne.strTrim(e))});var t=o;if("this-request-only"===n)return t;for(var i=1e3*parseInt(n,10),r=0;r<t.length;++r)u[t[r]]=ne.dateNow()+i}catch(s){}var a,o;return[]},e.isTenantKilled=function(e){var n=u,e=ne.strTrim(e);return n[e]!==undefined&&n[e]>ne.dateNow()||(delete n[e],!1)}})}var E=.8,S=1.2,_=3e3,w=6e5;function ge(e){var n=_*E;return Math.min(Math.pow(2,e)*(Math.floor(Math.random()*(_*S-n))+n),w)}var R="metadata",c="f",P=/\./,be=(l.__ieDyn=1,l);function l(n,e,b,t){var a="baseData",T=!!t,E=e,S={};o(l,this,function(m){function g(e,d,f,h,v,p,y){ne.objForEachKey(e,function(e,n){if(n||ne.isValueAssigned(n)){var t,i=f,r=e,a=v,o=d;if(T&&!h&&P.test(e)){var s=e.split("."),u=s.length;if(1<u){for(var a=a&&a.slice(),c=0;c<u-1;c++){var l=s[c],o=o[l]=o[l]||{};i+="."+l,a&&a.push(l)}r=s[u-1]}}(e=h&&((t=S[e=i])===undefined&&(7<=e.length&&(t=ne.strStartsWith(e,"ext.metadata")||ne.strStartsWith(e,"ext.web")),S[e]=t),t)||!E||!E.handleField(i,r)?ne.sanitizeProperty(r,n,b):E.value(i,r,n,b))&&(t=e.value,o[r]=t,p&&p(a,r,e),y&&"object"==typeof t&&!ne.isArray(t)&&((e=a)&&(e=a.slice()).push(r),g(n,t,i+"."+r,h,e,p,y)))}})}m.createPayload=function(e,n,t,i,r,a){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:n,isSync:t,isBeacon:i,sendType:a,sendReason:r}},m.appendPayload=function(v,p,y){var e=v&&p&&!v.overflow;return e&&ne.doPerf(n,function(){return"Serializer:appendPayload"},function(){for(var e=p.events(),n=v.payloadBlob,t=v.numEvents,i=!1,r=[],a=[],o=v.isBeacon,s=o?65e3:3984588,u=o?65e3:2e6,c=0,l=0;c<e.length;){var d=e[c];if(d){if(y<=t){v.overflow=p.split(c);break}var f=m.getEventBlob(d);if(f&&f.length<=u){var h=f.length;if(s<n.length+h){v.overflow=p.split(c);break}n&&(n+="\n"),n+=f,20<++l&&(n.substr(0,1),l=0),i=!0,t++}else(f?r:a).push(d),e.splice(c,1),c--}c++}r&&0<r.length&&v.sizeExceed.push(oe.create(p.iKey(),r)),a&&0<a.length&&v.failedEvts.push(oe.create(p.iKey(),a)),i&&(v.batches.push(p),v.payloadBlob=n,v.numEvents=t,o=p.iKey(),-1===ne.arrIndexOf(v.apiKeys,o)&&v.apiKeys.push(o))},function(){return{payload:v,theBatch:{iKey:p.iKey(),evts:p.events()},max:y}}),e},m.getEventBlob=function(r){try{return ne.doPerf(n,function(){return"Serializer.getEventBlob"},function(){var e={},i=(e.name=r.name,e.time=r.time,e.ver=r.ver,e.iKey="o:"+ne.getTenantId(r.iKey),{}),n=r.ext,n=(n&&(e.ext=i,ne.objForEachKey(n,function(e,n){g(n,i[e]={},"ext."+e,!0,null,null,!0)})),e.data={}),t=(n.baseType=r.baseType,n[a]={});return g(r.baseData,t,a,!1,[a],function(e,n,t){x(i,e,n,t)},!0),g(r.data,n,"data",!1,[],function(e,n,t){x(i,e,n,t)},!0),JSON.stringify(e)},function(){return{item:r}})}catch(e){return null}}})}function x(e,n,t,i){if(i&&e){var r=ne.getCommonSchemaMetaData(i.value,i.kind,i.propertyType);if(-1<r){var a=e[R],o=(o=(a=a||(e[R]={f:{}}))[c])||(a[c]={});if(n)for(var s=0;s<n.length;s++)var u=n[s],o=(o[u]||(o[u]={f:{}}),o[u][c]||(o[u][c]={}));o=o[t]={},ne.isArray(i.value)?o.a={t:r}:o.t=r}}}var se="sendAttempt",Te="&NoResponseBody=true",Ee=((p={})[1]=t,p[100]=t,p[200]="sent",p[8004]=W,p[8003]=W,p),a={},ue={};function d(e,n,t){a[e]=n,!1!==t&&(ue[n]=e)}function Se(e){try{return e.responseText}catch(n){}return""}function _e(e,n){var t=!1;if(e&&n){var i=ne.objKeys(e);if(i&&0<i.length)for(var r=n.toLowerCase(),a=0;a<i.length;a++){var o=i[a];if(o&&ne.hasOwnProperty(n,o)&&o.toLowerCase()==r){t=!0;break}}}return t}function ce(e,n,t,i){n&&t&&0<t.length&&(i&&a[n]?(e.hdrs[a[n]]=t,e.useHdrs=!0):e.url+="&"+n+"="+t)}d(ie,ie,!1),d(Y,Y),d(ye,"Client-Id"),d(ee,ee),d(Z,Z),d($,$),d(i,i),f.__ieDyn=1;var we=f;function f(p,e,_,w,R){this._responseHandlers=[];var P,x,C,K,O,k,F,M="?cors=true&content-type="+J,B=new T,A=!1,H=new b,L=!1,j=0,N=!0,D=[],q={},I=[],U=null,z=!1,X=!1,Q=!1;o(f,this,function(y){var s=!0;function o(e,n){for(var t=0,i=null,r=0;null==i&&r<e.length;)1===(t=e[r])?ne.useXDomainRequest()?i=a:ne.isXhrSupported()&&(i=c):2===t&&ne.isFetchSupported(n)?i=u:L&&3===t&&ne.isBeaconsSupported()&&(i=l),r++;return i?{_transport:t,_isSync:n,sendPOST:i}:null}function a(e,n,t){var i=new XDomainRequest;i.open(V,e.urlString),e.timeout&&(i.timeout=e.timeout),i.onload=function(){var e=Se(i);m(n,200,{},e),d(e)},i.onerror=function(){m(n,400,{})},i.ontimeout=function(){m(n,500,{})},i.onprogress=function(){},t?i.send(e.data):R.set(function(){i.send(e.data)},0)}function u(e,r,n){var t,i=e.urlString,a=!1,o=!1;(t={body:e.data,method:V}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0;n&&(t.keepalive=!0,2===e._sendReason&&(a=!0,i+=Te)),s&&(t.credentials="include"),e.headers&&0<ne.objKeys(e.headers).length&&(t.headers=e.headers),fetch(i,t).then(function(e){var t={},n="",i=e.headers;i&&i.forEach(function(e,n){t[n]=e}),e.body&&e.text().then(function(e){n=e}),o||(o=!0,m(r,e.status,t,n),d(n))})["catch"](function(e){o||(o=!0,m(r,0,{}))}),a&&!o&&(o=!0,m(r,200,{})),!o&&0<e.timeout&&R.set(function(){o||(o=!0,m(r,500,{}))},e.timeout)}function c(e,a,n){var t=e.urlString;function o(e,n,t){return!e[t]&&n&&n.getResponseHeader&&(n=n.getResponseHeader(t))&&(e[t]=ne.strTrim(n)),e}function i(e,n){var t,i,r;m(a,e.status,(r={},(e=e).getAllResponseHeaders?(t=e.getAllResponseHeaders(),i={},ne.isString(t)&&(t=ne.strTrim(t).split(/[\r\n]+/),ne.arrForEach(t,function(e){var n,t;e&&(-1!=(t=e.indexOf(": "))?(n=ne.strTrim(e.substring(0,t)).toLowerCase(),t=ne.strTrim(e.substring(1+t)),i[n]=t):i[ne.strTrim(e)]=1)})),i):(r=o(r,e,pe),r=o(r,e,ve),o(r,e,"kill-duration-seconds"))),n)}n&&e.disableXhrSync&&(n=!1);var r=ne.openXhr(V,t,s,!0,n,e.timeout);ne.objForEachKey(e.headers,function(e,n){r.setRequestHeader(e,n)}),r.onload=function(){var e=Se(r);i(r,e),d(e)},r.onerror=function(){i(r)},r.ontimeout=function(){i(r)},r.send(e.data)}function m(e,n,t,i){try{e(n,t,i)}catch(r){ne._throwInternal(x,2,518,ne.dumpObj(r))}}function l(e,n,t){var i=200,r=e._thePayload,a=e.urlString+Te;try{var o,s=ne.getNavigator();s.sendBeacon(a,e.data)||(r?(o=[],ne.arrForEach(r.batches,function(e){if(o&&e&&0<e.count()){for(var n=e.events(),t=0;t<n.length;t++)if(!s.sendBeacon(a,U.getEventBlob(n[t]))){o.push(e.split(t));break}}else o.push(e.split(0))}),S(o,8003,r.sendType,!0)):i=0)}catch(u){ne._warnToConsole(x,"Failed to send telemetry using sendBeacon API. Ex:"+ne.dumpObj(u)),i=0}finally{m(n,i,{},"")}}function g(e){return 2===e||3===e}function i(e){return X&&g(e)?2:e}function r(){return!A&&j<e}function t(){var e=I;return I=[],e}function f(e,n,t){return e&&0<e.length&&!A&&C[n]&&U&&(0!==n||r()&&(0<t||H.allowRequestSending()))}function h(e){var t={};return e&&ne.arrForEach(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function b(o,s,u,c,l){if(o&&0!==o.length)if(A)S(o,1,c);else{c=i(c);try{var e=o,d=0!==c;ne.doPerf(K,function(){return"HttpManager:_sendBatches"},function(e){e&&(o=o.slice(0));for(var n=[],t=null,i=ne.getTime(),e=C[c]||(d?C[1]:C[0]),r=(X||g(c)||e&&3===e._transport)&&!N&&L&&ne.isBeaconsSupported();f(o,c,s);){var a=o.shift();a&&0<a.count()&&(B.isTenantKilled(a.iKey())?n.push(a):(t=t||U.createPayload(s,u,d,r,l,c),U.appendPayload(t,a,p)?null!==t.overflow&&(o=[t.overflow].concat(o),t.overflow=null,v(t,i,ne.getTime(),l),i=ne.getTime(),t=null):(v(t,i,ne.getTime(),l),i=ne.getTime(),o=[a].concat(o),t=null)))}t&&v(t,i,ne.getTime(),l),0<o.length&&(I=o.concat(I)),S(n,8004,c)},function(){return{batches:h(e),retryCount:s,isTeardown:u,isSynchronous:d,sendReason:l,useSendBeacon:g(c),sendType:c}},!d)}catch(n){ne._throwInternal(x,2,48,"Unexpected Exception sending batch: "+ne.dumpObj(n))}}}function T(e,n,t){e[n]=e[n]||{},e[n][P.identifier]=t}function v(h,s,u,v){var c,l,d,f,p;h&&h.payloadBlob&&0<h.payloadBlob.length&&(c=!!y.sendHook,l=C[h.sendType],!g(h.sendType)&&h.isBeacon&&2===h.sendReason&&(l=C[2]||C[3]||l),f=Q,!h.isBeacon&&3!==l._transport||(f=!1),d=function(e,n){var t={url:M,hdrs:{},useHdrs:!1},i=(n?(t.hdrs=ne.extend(t.hdrs,q),t.useHdrs=0<ne.objKeys(t.hdrs).length):ne.objForEachKey(q,function(e,n){ue[e]?ce(t,ue[e],n,!1):(t.hdrs[e]=n,t.useHdrs=!0)}),ce(t,ye,"NO_AUTH",n),ce(t,Y,ne.FullVersionString,n),""),e=(ne.arrForEach(e.apiKeys,function(e){0<i.length&&(i+=","),i+=e}),ce(t,ee,i,n),ce(t,$,ne.dateNow().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));ne.isValueAssigned(e)&&(t.url+="&ext.intweb.msfpc="+e),H.shouldAddClockSkewHeaders()&&ce(t,Z,H.getClockSkewHeaderValue(),n),K.getWParam&&0<=(e=K.getWParam())&&(t.url+="&w="+e);for(var r=0;r<D.length;r++)t.url+="&"+D[r].name+"="+D[r].value;return t}(h,f),f=f||d.useHdrs,p=ne.getTime(),ne.doPerf(K,function(){return"HttpManager:_doPayloadSend"},function(){for(var e=0;e<h.batches.length;e++)for(var n=h.batches[e].events(),t=0;t<n.length;t++){var i,r=n[t];z&&(T(i=r.timings=r.timings||{},"sendEventStart",p),T(i,"serializationStart",s),T(i,"serializationCompleted",u)),0<r[se]?r[se]++:r[se]=1}S(h.batches,1e3+(v||0),h.sendType,!0);var a={data:h.payloadBlob,urlString:d.url,headers:d.hdrs,_thePayload:h,_sendReason:v,timeout:k},o=(ne.isUndefined(F)||(a.disableXhrSync=!!F),f&&(_e(a.headers,G)||(a.headers[G]="no-cache, no-store"),_e(a.headers,he)||(a.headers[he]=J)),null);l&&(o=function(e){H.firstRequestSent();var n=function(e,n){var t,i,r=h,a=v,o=9e3,s=null,u=!1,c=!1;try{var l,d=!0;if(typeof e!==ne.strUndefined){if(n&&(H.setClockSkew(n[pe]),f=n[ve]||n["kill-duration-seconds"],ne.arrForEach(B.setKillSwitchTenants(n["kill-tokens"],f),function(n){ne.arrForEach(r.batches,function(e){e.iKey()===n&&(s=s||[],e=e.split(0),r.numEvents-=e.count(),s.push(e))})})),200==e||204==e)return void(o=200);(300<=e&&e<500&&408!=e&&429!=e||501==e||505==e||r.numEvents<=0)&&(d=!1),o=9e3+e%1e3}d&&(o=100,l=r.retryCnt,0===r.sendType&&(l<_?(u=!0,E(function(){0===r.sendType&&j--,b(r.batches,l+1,r.isTeardown,X?2:r.sendType,5)},X,ge(l))):(c=!0,X&&(o=8001))))}finally{if(!u){H.setClockSkew();var n=r,f=o,e=a,d=c;try{d&&P._backOffTransmission(),200===f&&(d||n.isSync||P._clearBackOff(),t=n.batches,z&&(i=ne.getTime(),ne.arrForEach(t,function(e){var n;e&&0<e.count()&&(e=e.events(),n=i,z&&ne.arrForEach(e,function(e){T(e.timings=e.timings||{},"sendEventCompleted",n)}))}))),S(n.batches,f,n.sendType,!0)}finally{0===n.sendType&&(j--,5!==e&&y.sendQueuedRequests(n.sendType,e))}}S(s,8004,r.sendType)}},t=h.isTeardown||h.isSync;try{l.sendPOST(e,n,t),y.sendListener&&y.sendListener(a,e,t,h.isBeacon)}catch(i){ne._warnToConsole(x,"Unexpected exception sending payload. Ex:"+ne.dumpObj(i)),m(n,0,{})}}),ne.doPerf(K,function(){return"HttpManager:_doPayloadSend.sender"},function(){var n,t;o&&(0===h.sendType&&j++,c&&!h.isBeacon&&3!==l._transport?(n={data:a.data,urlString:a.urlString,headers:ne.extend({},a.headers),timeout:a.timeout,disableXhrSync:a.disableXhrSync},t=!1,ne.doPerf(K,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{y.sendHook(n,function(e){t=!0,N||e._thePayload||(e._thePayload=e._thePayload||a._thePayload,e._sendReason=e._sendReason||a._sendReason),o(e)},h.isSync||h.isTeardown)}catch(e){t||o(a)}})):o(a))})},function(){return{thePayload:h,serializationStart:s,serializationCompleted:u,sendReason:v}},h.isSync)),h.sizeExceed&&0<h.sizeExceed.length&&S(h.sizeExceed,8003,h.sendType),h.failedEvts&&0<h.failedEvts.length&&S(h.failedEvts,8002,h.sendType)}function E(e,n,t){n?e():R.set(e,t)}function d(e){var n=y._responseHandlers;try{for(var t,i=0;i<n.length;i++)try{n[i](e)}catch(r){ne._throwInternal(x,1,519,"Response handler failed: "+r)}e&&(t=JSON.parse(e),ne.isValueAssigned(t.webResult)&&ne.isValueAssigned(t.webResult[re])&&O.set("MSFPC",t.webResult[re],31536e3))}catch(a){}}function S(n,t,i,e){var r,a,o,s;n&&0<n.length&&w&&(r=w[s=Ee[o=t],ne.isValueAssigned(s)||(s="oth",9e3<=o&&o<=9999?s="rspFail":8e3<=o&&o<=8999?s=W:1e3<=o&&o<=1999&&(s="send")),s])&&ne.doPerf(K,function(){return"HttpManager:_sendBatchesNotification"},function(){E(function(){try{r.call(w,n,t,a,i)}catch(e){ne._throwInternal(x,1,74,"send request notification failed: "+e)}},e||a,0)},function(){return{batches:h(n),reason:t,isSync:a,sendSync:e,sendType:i}},!(a=0!==i))}y.initialize=function(e,n,t,i,r){M=e+M,Q=!!ne.isUndefined((r=r||{}).avoidOptions)||!r.avoidOptions,O=(K=n).getCookieMgr(),z=!K.config.disableEventTimings;var a,e=!!K.config.enableCompoundKey,n=(x=(P=t).diagLog(),r.valueSanitizer),t=r.stringifyObjects,n=(ne.isUndefined(r.enableCompoundKey)||(e=!!r.enableCompoundKey),k=r.xhrTimeout,F=r.disableXhrSync,L=!ne.isReactNative(),U=new be(K,n,t,e),i),t=r.alwaysUseXhrOverride?i:null,e=r.alwaysUseXhrOverride?i:null;i||(N=!1,(a=ne.getLocation())&&a.protocol&&"file:"==a.protocol.toLowerCase()&&(s=!1),a=[],a=ne.isReactNative()?[2,1]:[1,2,3],(r=r.transports)&&(ne.isNumber(r)?a=[r].concat(a):ne.isArray(r)&&(a=r.concat(a))),i=o(a,!1),n=o(a,!0),i||ne._warnToConsole(x,"No available transport to send events")),(r={})[0]=i,r[1]=n||o([1,2,3],!0),r[2]=t||o([3,2],!0)||n||o([1],!0),r[3]=e||o([2,3],!0)||n||o([1],!0),C=r},y._getDbgPlgTargets=function(){return[C[0],B,U,C]},y.addQueryStringParameter=function(e,n){for(var t=0;t<D.length;t++)if(D[t].name===e)return void(D[t].value=n);D.push({name:e,value:n})},y.addHeader=function(e,n){q[e]=n},y.canSendRequest=function(){return r()&&H.allowRequestSending()},y.sendQueuedRequests=function(e,n){ne.isUndefined(e)&&(e=0),X&&(e=i(e),n=2),f(I,e,0)&&b(t(),0,!1,e,n||0)},y.isCompletelyIdle=function(){return!A&&0===j&&0===I.length},y.setUnloading=function(e){X=e},y.addBatch=function(e){if(e&&0<e.count()){if(B.isTenantKilled(e.iKey()))return!1;I.push(e)}return!0},y.teardown=function(){0<I.length&&b(t(),0,!0,2,2)},y.pause=function(){A=!0},y.resume=function(){A=!1,y.sendQueuedRequests(0,4)},y.sendSynchronousBatch=function(e,n,t){e&&0<e.count()&&(ne.isNullOrUndefined(n)&&(n=1),X&&(n=i(n),t=2),b([e],0,!1,n,t||0))}})}function C(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout(e,n,t)}function K(e){clearTimeout(e)}function le(e,n){return{set:e||C,clear:n||K}}var h,de="eventsDiscarded",fe="overrideInstrumentationKey",Re="maxEventRetryAttempts",Pe="maxUnloadEventRetryAttempts",t=(h=ne.BaseTelemetryPlugin,n.__extendsFn(v,h),v.__ieDyn=1,v);function v(){var x,C,K,O,k,F,M,B,e=h.call(this)||this,A=(e.identifier="PostChannel",e.priority=1011,!(e.version="3.2.5")),H=[],L=null,j=!1,N=0,D=500,q=0,I=1e4,U={},z=te,X=null,Q=null,V=0,W=0,J={},G=-1,Y=!0,Z=!1,$=6,ee=2;return o(v,e,function(c,l){function d(e){"beforeunload"!==(e||ne.getWindow().event).type&&(Z=!0,K.setUnloading(Z)),u(2,2)}function f(e){Z=!1,K.setUnloading(Z)}function r(e,n){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext[me]&&delete e.ext[me],e.ext&&e.ext[ae]&&e.ext[ae].id&&delete e.ext[ae].id,Y&&(e.ext=ne.optimizeObject(e.ext),e.baseData&&(e.baseData=ne.optimizeObject(e.baseData)),e.data&&(e.data=ne.optimizeObject(e.data))),e.sync)if(V||j)e.latency=3,e.sync=!1;else if(K)return Y&&(e=ne.optimizeObject(e)),K.sendSynchronousBatch(oe.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var t=e.latency,i=q,r=I,a=(4===t&&(i=N,r=D),!1);i<r?a=!p(e,n):(i=1,r=20,4===t&&(i=4,r=1),a=!0,function(e,n,t,i){for(;t<=n;){var r=h(e,n,!0);if(r&&0<r.count()){var r=r.split(0,i),a=r.count();if(0<a)return 4===t?N-=a:q-=a,T(de,[r],ne.EventsDiscardedReason.QueueFull),1}t++}return y(),0}(e.iKey,e.latency,i,r)&&(a=!p(e,n))),a&&b(de,[e],ne.EventsDiscardedReason.QueueFull)}function a(e,n,t){m(e,n,t),K.sendQueuedRequests(n,t)}function o(){0<=G&&m(G,0,F)&&K.sendQueuedRequests(0,F),0<N&&!Q&&!j&&0<=(e=U[z][2])&&(Q=s(function(){Q=null,a(4,0,1),o()},e));var e=U[z][1];!X&&!L&&0<=e&&!j&&(0<q?X=s(function(){X=null,a(0===W?3:1,0,1),W++,W%=2,o()},e):W=0)}function t(){A=!1,j=!(H=[]),D=500,I=1e4,U={},z=te,W=V=q=N=0,C=Q=X=L=x=null,J={},O=undefined,k=0,G=-1,Z=!(Y=!(F=null)),$=6,M=null,B=le(),K=new we(500,ee=2,1,{requeue:e,send:E,sent:S,drop:_,rspFail:w,oth:R},B),n(),J[4]={batches:[],iKeyMap:{}},J[3]={batches:[],iKeyMap:{}},J[2]={batches:[],iKeyMap:{}},J[1]={batches:[],iKeyMap:{}},P()}function s(e,n){0===n&&V&&(n=1);var t=1e3;return V&&(t=ge(V-1)),B.set(e,n*t)}function i(){return null!==X&&(B.clear(X),X=null,!(W=0))}function u(e,n){i(),L&&(B.clear(L),L=null),j||a(1,e,n)}function h(e,n,t){var i=J[n],n=(i=i||J[n=1]).iKeyMap[e];return!n&&t&&(n=oe.create(e),i.batches.push(n),i.iKeyMap[e]=n),n}function v(e,n){K.canSendRequest()&&!V&&(n=0<O&&O<q||n)&&null==L&&c.flush(e,null,20)}function p(e,n){var t=(e=Y?ne.optimizeObject(e):e).latency,i=h(e.iKey,t,!0);return i.addEvent(e)&&(4!==t?(q++,n&&0===e.sendAttempt&&v(!e.sync,0<k&&i.count()>=k)):N++,1)}function y(){for(var t=0,i=0,e=1;e<=4;e++)!function(n){var e=J[n];e&&e.batches&&ne.arrForEach(e.batches,function(e){4===n?t+=e.count():i+=e.count()})}(e);q=i,N=t}function m(i,e,n){var r=!1,t=0===e;return!t||K.canSendRequest()?ne.doPerf(c.core,function(){return"PostChannel._queueBatches"},function(){for(var n=[],t=4;i<=t;){var e=J[t];e&&e.batches&&0<e.batches.length&&(ne.arrForEach(e.batches,function(e){K.addBatch(e)?r=r||e&&0<e.count():n=n.concat(e.events()),4===t?N-=e.count():q-=e.count()}),e.batches=[],e.iKeyMap={}),t--}0<n.length&&b(de,n,ne.EventsDiscardedReason.KillSwitch),r&&i<=G&&(G=-1,F=0)},function(){return{latency:i,sendType:e,sendReason:n}},!t):(G=0<=G?Math.min(G,i):i,F=Math.max(F,n)),r}function n(){U={REAL_TIME:[2,1,0],NEAR_REAL_TIME:[6,3,0],BEST_EFFORT:[18,9,0]}}function e(e,n){var t=[],i=Z?ee:$;ne.arrForEach(e,function(e){e&&0<e.count()&&ne.arrForEach(e.events(),function(e){e&&(e.sync&&(e.latency=4,e.sync=!1),e.sendAttempt<i?(ne.setProcessTelemetryTimings(e,c.identifier),r(e,!1)):t.push(e))})}),0<t.length&&b(de,t,ne.EventsDiscardedReason.NonRetryableStatus),Z&&u(2,2)}function g(e,n){var t=c._notificationManager||{},i=t[e];if(i)try{i.apply(t,n)}catch(r){ne._throwInternal(c.diagLog(),1,74,e+" notification failed: "+r)}}function b(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];n&&0<n.length&&g(e,[n].concat(t))}function T(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];e&&0<e.length&&ne.arrForEach(e,function(e){e&&0<e.count()&&g(n,[e.events()].concat(t))})}function E(e,n,t){e&&0<e.length&&g("eventsSendRequest",[1e3<=n&&n<=1999?n-1e3:0,!0!==t])}function S(e,n){T("eventsSent",e,n),o()}function _(e,n){T(de,e,8e3<=n&&n<=8999?n-8e3:ne.EventsDiscardedReason.Unknown)}function w(e){T(de,e,ne.EventsDiscardedReason.NonRetryableStatus),o()}function R(e,n){T(de,e,ne.EventsDiscardedReason.Unknown),o()}function P(){k=x&&x.disableAutoBatchFlushLimit?0:Math.max(1500,I/6)}t(),c._getDbgPlgTargets=function(){return[K]},c.initialize=function(o,s,u){ne.doPerf(s,function(){return"PostChannel:initialize"},function(){var n,e=s;l.initialize(o,s,u);try{s.addUnloadCb,M=ne.mergeEvtNamespace(ne.createUniqueNamespace(c.identifier),s.evtNamespace&&s.evtNamespace());var t=c._getTelCtx(),i=(o.extensionConfig[c.identifier]=o.extensionConfig[c.identifier]||{},x=t.getExtCfg(c.identifier),B=le(x.setTimeoutOverride,x.clearTimeoutOverride),Y=!x.disableOptimizeObj&&ne.isChromium(),n=e.getWParam,e.getWParam=function(){var e=0;return x.ignoreMc1Ms0CookieProcessing&&(e|=2),e|n()},0<x.eventsLimitInMem&&(I=x.eventsLimitInMem),0<x.immediateEventLimit&&(D=x.immediateEventLimit),0<x.autoFlushEventsLimit&&(O=x.autoFlushEventsLimit),ne.isNumber(x[Re])&&($=x[Re]),ne.isNumber(x[Pe])&&(ee=x[Pe]),P(),x.httpXHROverride&&x.httpXHROverride.sendPOST&&(C=x.httpXHROverride),ne.isValueAssigned(o.anonCookieName)&&K.addQueryStringParameter("anoncknm",o.anonCookieName),K.sendHook=x.payloadPreprocessor,K.sendListener=x.payloadListener,x.overrideEndpointUrl||o.endpointUrl),r=(c._notificationManager=o.extensionConfig.NotificationManager,K.initialize(i,c.core,c,C,x),o.disablePageUnloadEvents||[]);ne.addPageUnloadEventListener(d,r,M),ne.addPageHideEventListener(d,r,M),ne.addPageShowEventListener(f,o.disablePageShowEvents,M)}catch(a){throw c.setInitialized(!1),a}},function(){return{coreConfig:o,core:s,extensions:u}})},c.processTelemetry=function(e,n){ne.setProcessTelemetryTimings(e,c.identifier);var t=(n=c._getTelCtx(n)).getExtCfg(c.identifier),i=!!x.disableTelemetry;(i=t?i||!!t.disableTelemetry:i)||A||(x[fe]&&(e.iKey=x[fe]),t&&t[fe]&&(e.iKey=t[fe]),r(e,!0),Z?u(2,2):o()),c.processNext(e,n)},c._doTeardown=function(e,n){u(2,2),A=!0,K.teardown(),ne.removePageUnloadEventListener(null,M),ne.removePageHideEventListener(null,M),ne.removePageShowEventListener(null,M),t()},c.setEventQueueLimits=function(e,n){I=0<e?e:1e4,O=0<n?n:0,P();var t=e<q;if(!t&&0<k)for(var i=1;!t&&i<=3;i++){var r=J[i];r&&r.batches&&ne.arrForEach(r.batches,function(e){e&&e.count()>=k&&(t=!0)})}v(!0,t)},c.pause=function(){i(),j=!0,K.pause()},c.resume=function(){j=!1,K.resume(),o()},c.addResponseHandler=function(e){K._responseHandlers.push(e)},c._loadTransmitProfiles=function(e){i(),n(),z=te,o(),ne.objForEachKey(e,function(e,n){var t,i=n.length;2<=i&&(t=2<i?n[2]:0,n.splice(0,i-2),n[1]<0&&(n[0]=-1),0<n[1]&&0<n[0]&&(i=n[0]/n[1],n[0]=Math.ceil(i)*n[1]),0<=t&&0<=n[1]&&t>n[1]&&(t=n[1]),n.push(t),U[e]=n)})},c.flush=function(e,n,t){void 0===e&&(e=!0),j||(t=t||1,e?null==L?(i(),m(1,0,t),L=s(function(){L=null,function i(e,n){a(1,0,n),y(),function t(e){K.isCompletelyIdle()?e():L=s(function(){L=null,t(e)},.25)}(function(){e&&e(),0<H.length?L=s(function(){L=null,i(H.shift(),n)},0):(L=null,o())})}(n,t)},0)):H.push(n):(e=i(),a(1,1,t),null!==n&&n!==undefined&&n(),e&&o()))},c.setMsaAuthTicket=function(e){K.addHeader(ie,e)},c.hasEvents=function(){return 0<q},c._setTransmitProfile=function(e){z!==e&&U[e]!==undefined&&(i(),z=e,o())},c._backOffTransmission=function(){V<4&&(V++,i(),o())},c._clearBackOff=function(){V&&(V=0,i(),o())},ne.objDefineAccessors(c,"_setTimeoutOverride",function(){return B.set},function(e){B=le(e,B.clear)}),ne.objDefineAccessors(c,"_clearTimeoutOverride",function(){return B.clear},function(e){B=le(B.set,e)})}),e}e.BE_PROFILE="BEST_EFFORT",e.NRT_PROFILE="NEAR_REAL_TIME",e.PostChannel=t,e.RT_PROFILE=te;var p=e,i="__esModule",n={value:!0},t=Object.defineProperty;if(t)try{return void t(p,i,n)}catch(O){}typeof n.value!==undefined&&(p[i]=n.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/dynamicproto-js"),require("@microsoft/1ds-core-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/dynamicproto-js","@microsoft/1ds-core-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.dynamicProto,e._1dsCoreJs);
var e=this,n=function(e,n,t,ee){"use strict";function y(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}var o=y(t),ne="REAL_TIME",V="POST",W="drop",t="requeue",J="application/x-json-stream",G="cache-control",he="content-type",ve="kill-duration",pe="time-delta-millis",Y="client-version",ye="client-id",Z="time-delta-to-apply-millis",$="upload-time",te="apikey",ie="AuthMsaDeviceTicket",i="AuthXToken",re="msfpc",me="trace",ae="user";function m(e){e=(e.ext||{}).intweb;return e&&ee.isValueAssigned(e[re])?e[re]:null}function g(e){for(var n=null,t=0;null===n&&t<e.length;t++)n=m(e[t]);return n}s.create=function(e,n){return new s(e,n)};var oe=s;function s(i,e){var r=e?[].concat(e):[],e=this,a=g(r);e.iKey=function(){return i},e.Msfpc=function(){return a||""},e.count=function(){return r.length},e.events=function(){return r},e.addEvent=function(e){return!!e&&(r.push(e),a=a||m(e),!0)},e.split=function(e,n){var t;return e<r.length&&(t=r.length-e,ee.isNullOrUndefined(n)||(t=n<t?n:t),t=r.splice(e,t),a=g(r)),new s(i,t)}}u.__ieDyn=1;var b=u;function u(){var n=!0,t=!0,i=!0,r="use-collector-delta",a=!1;o(u,this,function(e){e.allowRequestSending=function(){return n},e.firstRequestSent=function(){i&&(i=!1,a||(n=!1))},e.shouldAddClockSkewHeaders=function(){return t},e.getClockSkewHeaderValue=function(){return r},e.setClockSkew=function(e){a||(e?(r=e,a=t=!0):t=!1,n=!0)}})}r.__ieDyn=1;var T=r;function r(){var u={};o(r,this,function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{a=e.split(","),o=[],a&&ee.arrForEach(a,function(e){o.push(ee.strTrim(e))});var t=o;if("this-request-only"===n)return t;for(var i=1e3*parseInt(n,10),r=0;r<t.length;++r)u[t[r]]=ee.dateNow()+i}catch(s){}var a,o;return[]},e.isTenantKilled=function(e){var n=u,e=ee.strTrim(e);return n[e]!==undefined&&n[e]>ee.dateNow()||(delete n[e],!1)}})}var E=.8,S=1.2,_=3e3,w=6e5;function ge(e){var n=_*E;return Math.min(Math.pow(2,e)*(Math.floor(Math.random()*(_*S-n))+n),w)}var R="metadata",c="f",P=/\./,be=(l.__ieDyn=1,l);function l(n,e,b,t){var a="baseData",T=!!t,E=e,S={};o(l,this,function(m){function g(e,d,f,h,v,p,y){ee.objForEachKey(e,function(e,n){if(n||ee.isValueAssigned(n)){var t,i=f,r=e,a=v,o=d;if(T&&!h&&P.test(e)){var s=e.split("."),u=s.length;if(1<u){for(var a=a&&a.slice(),c=0;c<u-1;c++){var l=s[c],o=o[l]=o[l]||{};i+="."+l,a&&a.push(l)}r=s[u-1]}}(e=h&&((t=S[e=i])===undefined&&(7<=e.length&&(t=ee.strStartsWith(e,"ext.metadata")||ee.strStartsWith(e,"ext.web")),S[e]=t),t)||!E||!E.handleField(i,r)?ee.sanitizeProperty(r,n,b):E.value(i,r,n,b))&&(t=e.value,o[r]=t,p&&p(a,r,e),y&&"object"==typeof t&&!ee.isArray(t)&&((e=a)&&(e=a.slice()).push(r),g(n,t,i+"."+r,h,e,p,y)))}})}m.createPayload=function(e,n,t,i,r,a){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:n,isSync:t,isBeacon:i,sendType:a,sendReason:r}},m.appendPayload=function(v,p,y){var e=v&&p&&!v.overflow;return e&&ee.doPerf(n,function(){return"Serializer:appendPayload"},function(){for(var e=p.events(),n=v.payloadBlob,t=v.numEvents,i=!1,r=[],a=[],o=v.isBeacon,s=o?65e3:3984588,u=o?65e3:2e6,c=0,l=0;c<e.length;){var d=e[c];if(d){if(y<=t){v.overflow=p.split(c);break}var f=m.getEventBlob(d);if(f&&f.length<=u){var h=f.length;if(s<n.length+h){v.overflow=p.split(c);break}n&&(n+="\n"),n+=f,20<++l&&(n.substr(0,1),l=0),i=!0,t++}else(f?r:a).push(d),e.splice(c,1),c--}c++}r&&0<r.length&&v.sizeExceed.push(oe.create(p.iKey(),r)),a&&0<a.length&&v.failedEvts.push(oe.create(p.iKey(),a)),i&&(v.batches.push(p),v.payloadBlob=n,v.numEvents=t,o=p.iKey(),-1===ee.arrIndexOf(v.apiKeys,o)&&v.apiKeys.push(o))},function(){return{payload:v,theBatch:{iKey:p.iKey(),evts:p.events()},max:y}}),e},m.getEventBlob=function(r){try{return ee.doPerf(n,function(){return"Serializer.getEventBlob"},function(){var e={},i=(e.name=r.name,e.time=r.time,e.ver=r.ver,e.iKey="o:"+ee.getTenantId(r.iKey),{}),n=r.ext,n=(n&&(e.ext=i,ee.objForEachKey(n,function(e,n){g(n,i[e]={},"ext."+e,!0,null,null,!0)})),e.data={}),t=(n.baseType=r.baseType,n[a]={});return g(r.baseData,t,a,!1,[a],function(e,n,t){x(i,e,n,t)},!0),g(r.data,n,"data",!1,[],function(e,n,t){x(i,e,n,t)},!0),JSON.stringify(e)},function(){return{item:r}})}catch(e){return null}}})}function x(e,n,t,i){if(i&&e){var r=ee.getCommonSchemaMetaData(i.value,i.kind,i.propertyType);if(-1<r){var a=e[R],o=(o=(a=a||(e[R]={f:{}}))[c])||(a[c]={});if(n)for(var s=0;s<n.length;s++)var u=n[s],o=(o[u]||(o[u]={f:{}}),o[u][c]||(o[u][c]={}));o=o[t]={},ee.isArray(i.value)?o.a={t:r}:o.t=r}}}var se="sendAttempt",Te="&NoResponseBody=true",Ee=((p={})[1]=t,p[100]=t,p[200]="sent",p[8004]=W,p[8003]=W,p),a={},ue={};function d(e,n,t){a[e]=n,!1!==t&&(ue[n]=e)}function Se(e){try{return e.responseText}catch(n){}return""}function _e(e,n){var t=!1;if(e&&n){var i=ee.objKeys(e);if(i&&0<i.length)for(var r=n.toLowerCase(),a=0;a<i.length;a++){var o=i[a];if(o&&ee.hasOwnProperty(n,o)&&o.toLowerCase()==r){t=!0;break}}}return t}function ce(e,n,t,i){n&&t&&0<t.length&&(i&&a[n]?(e.hdrs[a[n]]=t,e.useHdrs=!0):e.url+="&"+n+"="+t)}d(ie,ie,!1),d(Y,Y),d(ye,"Client-Id"),d(te,te),d(Z,Z),d($,$),d(i,i),f.__ieDyn=1;var we=f;function f(p,e,_,w,R){this._responseHandlers=[];var P,x,C,K,O,k,F,M="?cors=true&content-type="+J,B=new T,A=!1,H=new b,L=!1,j=0,N=!0,D=[],q={},I=[],U=null,z=!1,X=!1,Q=!1;o(f,this,function(y){var s=!0;function o(e,n){for(var t=0,i=null,r=0;null==i&&r<e.length;)1===(t=e[r])?ee.useXDomainRequest()?i=a:ee.isXhrSupported()&&(i=c):2===t&&ee.isFetchSupported(n)?i=u:L&&3===t&&ee.isBeaconsSupported()&&(i=l),r++;return i?{_transport:t,_isSync:n,sendPOST:i}:null}function a(e,n,t){var i=new XDomainRequest;i.open(V,e.urlString),e.timeout&&(i.timeout=e.timeout),i.onload=function(){var e=Se(i);m(n,200,{},e),d(e)},i.onerror=function(){m(n,400,{})},i.ontimeout=function(){m(n,500,{})},i.onprogress=function(){},t?i.send(e.data):R.set(function(){i.send(e.data)},0)}function u(e,r,n){var t,i=e.urlString,a=!1,o=!1;(t={body:e.data,method:V}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0;n&&(t.keepalive=!0,2===e._sendReason&&(a=!0,i+=Te)),s&&(t.credentials="include"),e.headers&&0<ee.objKeys(e.headers).length&&(t.headers=e.headers),fetch(i,t).then(function(e){var t={},n="",i=e.headers;i&&i.forEach(function(e,n){t[n]=e}),e.body&&e.text().then(function(e){n=e}),o||(o=!0,m(r,e.status,t,n),d(n))})["catch"](function(e){o||(o=!0,m(r,0,{}))}),a&&!o&&(o=!0,m(r,200,{})),!o&&0<e.timeout&&R.set(function(){o||(o=!0,m(r,500,{}))},e.timeout)}function c(e,a,n){var t=e.urlString;function o(e,n,t){return!e[t]&&n&&n.getResponseHeader&&(n=n.getResponseHeader(t))&&(e[t]=ee.strTrim(n)),e}function i(e,n){var t,i,r;m(a,e.status,(r={},(e=e).getAllResponseHeaders?(t=e.getAllResponseHeaders(),i={},ee.isString(t)&&(t=ee.strTrim(t).split(/[\r\n]+/),ee.arrForEach(t,function(e){var n,t;e&&(-1!=(t=e.indexOf(": "))?(n=ee.strTrim(e.substring(0,t)).toLowerCase(),t=ee.strTrim(e.substring(1+t)),i[n]=t):i[ee.strTrim(e)]=1)})),i):(r=o(r,e,pe),r=o(r,e,ve),o(r,e,"kill-duration-seconds"))),n)}n&&e.disableXhrSync&&(n=!1);var r=ee.openXhr(V,t,s,!0,n,e.timeout);ee.objForEachKey(e.headers,function(e,n){r.setRequestHeader(e,n)}),r.onload=function(){var e=Se(r);i(r,e),d(e)},r.onerror=function(){i(r)},r.ontimeout=function(){i(r)},r.send(e.data)}function m(e,n,t,i){try{e(n,t,i)}catch(r){ee._throwInternal(x,2,518,ee.dumpObj(r))}}function l(e,n,t){var i=200,r=e._thePayload,a=e.urlString+Te;try{var o,s=ee.getNavigator();s.sendBeacon(a,e.data)||(r?(o=[],ee.arrForEach(r.batches,function(e){if(o&&e&&0<e.count()){for(var n=e.events(),t=0;t<n.length;t++)if(!s.sendBeacon(a,U.getEventBlob(n[t]))){o.push(e.split(t));break}}else o.push(e.split(0))}),S(o,8003,r.sendType,!0)):i=0)}catch(u){ee._warnToConsole(x,"Failed to send telemetry using sendBeacon API. Ex:"+ee.dumpObj(u)),i=0}finally{m(n,i,{},"")}}function g(e){return 2===e||3===e}function i(e){return X&&g(e)?2:e}function r(){return!A&&j<e}function t(){var e=I;return I=[],e}function f(e,n,t){return e&&0<e.length&&!A&&C[n]&&U&&(0!==n||r()&&(0<t||H.allowRequestSending()))}function h(e){var t={};return e&&ee.arrForEach(e,function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}}),t}function b(o,s,u,c,l){if(o&&0!==o.length)if(A)S(o,1,c);else{c=i(c);try{var e=o,d=0!==c;ee.doPerf(K,function(){return"HttpManager:_sendBatches"},function(e){e&&(o=o.slice(0));for(var n=[],t=null,i=ee.getTime(),e=C[c]||(d?C[1]:C[0]),r=(X||g(c)||e&&3===e._transport)&&!N&&L&&ee.isBeaconsSupported();f(o,c,s);){var a=o.shift();a&&0<a.count()&&(B.isTenantKilled(a.iKey())?n.push(a):(t=t||U.createPayload(s,u,d,r,l,c),U.appendPayload(t,a,p)?null!==t.overflow&&(o=[t.overflow].concat(o),t.overflow=null,v(t,i,ee.getTime(),l),i=ee.getTime(),t=null):(v(t,i,ee.getTime(),l),i=ee.getTime(),o=[a].concat(o),t=null)))}t&&v(t,i,ee.getTime(),l),0<o.length&&(I=o.concat(I)),S(n,8004,c)},function(){return{batches:h(e),retryCount:s,isTeardown:u,isSynchronous:d,sendReason:l,useSendBeacon:g(c),sendType:c}},!d)}catch(n){ee._throwInternal(x,2,48,"Unexpected Exception sending batch: "+ee.dumpObj(n))}}}function T(e,n,t){e[n]=e[n]||{},e[n][P.identifier]=t}function v(h,s,u,v){var c,l,d,f,p;h&&h.payloadBlob&&0<h.payloadBlob.length&&(c=!!y.sendHook,l=C[h.sendType],!g(h.sendType)&&h.isBeacon&&2===h.sendReason&&(l=C[2]||C[3]||l),f=Q,!h.isBeacon&&3!==l._transport||(f=!1),d=function(e,n){var t={url:M,hdrs:{},useHdrs:!1},i=(n?(t.hdrs=ee.extend(t.hdrs,q),t.useHdrs=0<ee.objKeys(t.hdrs).length):ee.objForEachKey(q,function(e,n){ue[e]?ce(t,ue[e],n,!1):(t.hdrs[e]=n,t.useHdrs=!0)}),ce(t,ye,"NO_AUTH",n),ce(t,Y,ee.FullVersionString,n),""),e=(ee.arrForEach(e.apiKeys,function(e){0<i.length&&(i+=","),i+=e}),ce(t,te,i,n),ce(t,$,ee.dateNow().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));ee.isValueAssigned(e)&&(t.url+="&ext.intweb.msfpc="+e),H.shouldAddClockSkewHeaders()&&ce(t,Z,H.getClockSkewHeaderValue(),n),K.getWParam&&0<=(e=K.getWParam())&&(t.url+="&w="+e);for(var r=0;r<D.length;r++)t.url+="&"+D[r].name+"="+D[r].value;return t}(h,f),f=f||d.useHdrs,p=ee.getTime(),ee.doPerf(K,function(){return"HttpManager:_doPayloadSend"},function(){for(var e=0;e<h.batches.length;e++)for(var n=h.batches[e].events(),t=0;t<n.length;t++){var i,r=n[t];z&&(T(i=r.timings=r.timings||{},"sendEventStart",p),T(i,"serializationStart",s),T(i,"serializationCompleted",u)),0<r[se]?r[se]++:r[se]=1}S(h.batches,1e3+(v||0),h.sendType,!0);var a={data:h.payloadBlob,urlString:d.url,headers:d.hdrs,_thePayload:h,_sendReason:v,timeout:k},o=(ee.isUndefined(F)||(a.disableXhrSync=!!F),f&&(_e(a.headers,G)||(a.headers[G]="no-cache, no-store"),_e(a.headers,he)||(a.headers[he]=J)),null);l&&(o=function(e){H.firstRequestSent();var n=function(e,n){var t,i,r=h,a=v,o=9e3,s=null,u=!1,c=!1;try{var l,d=!0;if(typeof e!==ee.strUndefined){if(n&&(H.setClockSkew(n[pe]),f=n[ve]||n["kill-duration-seconds"],ee.arrForEach(B.setKillSwitchTenants(n["kill-tokens"],f),function(n){ee.arrForEach(r.batches,function(e){e.iKey()===n&&(s=s||[],e=e.split(0),r.numEvents-=e.count(),s.push(e))})})),200==e||204==e)return void(o=200);(300<=e&&e<500&&408!=e&&429!=e||501==e||505==e||r.numEvents<=0)&&(d=!1),o=9e3+e%1e3}d&&(o=100,l=r.retryCnt,0===r.sendType&&(l<_?(u=!0,E(function(){0===r.sendType&&j--,b(r.batches,l+1,r.isTeardown,X?2:r.sendType,5)},X,ge(l))):(c=!0,X&&(o=8001))))}finally{if(!u){H.setClockSkew();var n=r,f=o,e=a,d=c;try{d&&P._backOffTransmission(),200===f&&(d||n.isSync||P._clearBackOff(),t=n.batches,z&&(i=ee.getTime(),ee.arrForEach(t,function(e){var n;e&&0<e.count()&&(e=e.events(),n=i,z&&ee.arrForEach(e,function(e){T(e.timings=e.timings||{},"sendEventCompleted",n)}))}))),S(n.batches,f,n.sendType,!0)}finally{0===n.sendType&&(j--,5!==e&&y.sendQueuedRequests(n.sendType,e))}}S(s,8004,r.sendType)}},t=h.isTeardown||h.isSync;try{l.sendPOST(e,n,t),y.sendListener&&y.sendListener(a,e,t,h.isBeacon)}catch(i){ee._warnToConsole(x,"Unexpected exception sending payload. Ex:"+ee.dumpObj(i)),m(n,0,{})}}),ee.doPerf(K,function(){return"HttpManager:_doPayloadSend.sender"},function(){var n,t;o&&(0===h.sendType&&j++,c&&!h.isBeacon&&3!==l._transport?(n={data:a.data,urlString:a.urlString,headers:ee.extend({},a.headers),timeout:a.timeout,disableXhrSync:a.disableXhrSync},t=!1,ee.doPerf(K,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{y.sendHook(n,function(e){t=!0,N||e._thePayload||(e._thePayload=e._thePayload||a._thePayload,e._sendReason=e._sendReason||a._sendReason),o(e)},h.isSync||h.isTeardown)}catch(e){t||o(a)}})):o(a))})},function(){return{thePayload:h,serializationStart:s,serializationCompleted:u,sendReason:v}},h.isSync)),h.sizeExceed&&0<h.sizeExceed.length&&S(h.sizeExceed,8003,h.sendType),h.failedEvts&&0<h.failedEvts.length&&S(h.failedEvts,8002,h.sendType)}function E(e,n,t){n?e():R.set(e,t)}function d(e){var n=y._responseHandlers;try{for(var t,i=0;i<n.length;i++)try{n[i](e)}catch(r){ee._throwInternal(x,1,519,"Response handler failed: "+r)}e&&(t=JSON.parse(e),ee.isValueAssigned(t.webResult)&&ee.isValueAssigned(t.webResult[re])&&O.set("MSFPC",t.webResult[re],31536e3))}catch(a){}}function S(n,t,i,e){var r,a,o,s;n&&0<n.length&&w&&(r=w[s=Ee[o=t],ee.isValueAssigned(s)||(s="oth",9e3<=o&&o<=9999?s="rspFail":8e3<=o&&o<=8999?s=W:1e3<=o&&o<=1999&&(s="send")),s])&&ee.doPerf(K,function(){return"HttpManager:_sendBatchesNotification"},function(){E(function(){try{r.call(w,n,t,a,i)}catch(e){ee._throwInternal(x,1,74,"send request notification failed: "+e)}},e||a,0)},function(){return{batches:h(n),reason:t,isSync:a,sendSync:e,sendType:i}},!(a=0!==i))}y.initialize=function(e,n,t,i,r){M=e+M,Q=!!ee.isUndefined((r=r||{}).avoidOptions)||!r.avoidOptions,O=(K=n).getCookieMgr(),z=!K.config.disableEventTimings;var a,e=!!K.config.enableCompoundKey,n=(x=(P=t).diagLog(),r.valueSanitizer),t=r.stringifyObjects,n=(ee.isUndefined(r.enableCompoundKey)||(e=!!r.enableCompoundKey),k=r.xhrTimeout,F=r.disableXhrSync,L=!ee.isReactNative(),U=new be(K,n,t,e),i),t=r.alwaysUseXhrOverride?i:null,e=r.alwaysUseXhrOverride?i:null;i||(N=!1,(a=ee.getLocation())&&a.protocol&&"file:"==a.protocol.toLowerCase()&&(s=!1),a=[],a=ee.isReactNative()?[2,1]:[1,2,3],(r=r.transports)&&(ee.isNumber(r)?a=[r].concat(a):ee.isArray(r)&&(a=r.concat(a))),i=o(a,!1),n=o(a,!0),i||ee._warnToConsole(x,"No available transport to send events")),(r={})[0]=i,r[1]=n||o([1,2,3],!0),r[2]=t||o([3,2],!0)||n||o([1],!0),r[3]=e||o([2,3],!0)||n||o([1],!0),C=r},y._getDbgPlgTargets=function(){return[C[0],B,U,C]},y.addQueryStringParameter=function(e,n){for(var t=0;t<D.length;t++)if(D[t].name===e)return void(D[t].value=n);D.push({name:e,value:n})},y.addHeader=function(e,n){q[e]=n},y.canSendRequest=function(){return r()&&H.allowRequestSending()},y.sendQueuedRequests=function(e,n){ee.isUndefined(e)&&(e=0),X&&(e=i(e),n=2),f(I,e,0)&&b(t(),0,!1,e,n||0)},y.isCompletelyIdle=function(){return!A&&0===j&&0===I.length},y.setUnloading=function(e){X=e},y.addBatch=function(e){if(e&&0<e.count()){if(B.isTenantKilled(e.iKey()))return!1;I.push(e)}return!0},y.teardown=function(){0<I.length&&b(t(),0,!0,2,2)},y.pause=function(){A=!0},y.resume=function(){A=!1,y.sendQueuedRequests(0,4)},y.sendSynchronousBatch=function(e,n,t){e&&0<e.count()&&(ee.isNullOrUndefined(n)&&(n=1),X&&(n=i(n),t=2),b([e],0,!1,n,t||0))}})}function C(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return setTimeout(e,n,t)}function K(e){clearTimeout(e)}function le(e,n){return{set:e||C,clear:n||K}}var h,de="eventsDiscarded",fe="overrideInstrumentationKey",Re="maxEventRetryAttempts",Pe="maxUnloadEventRetryAttempts",t=(h=ee.BaseTelemetryPlugin,n.__extendsFn(v,h),v.__ieDyn=1,v);function v(){var P,x,C,K,O,k,F,M,e=h.call(this)||this,B=(e.identifier="PostChannel",e.priority=1011,!(e.version="3.2.6")),A=[],H=null,L=!1,j=0,N=500,D=0,q=1e4,I={},U=ne,z=null,X=null,Q=0,V=0,W={},J=-1,G=!0,Y=!1,Z=6,$=2;return o(v,e,function(c,l){function d(e){"beforeunload"!==(e||ee.getWindow().event).type&&(Y=!0,C.setUnloading(Y)),u(2,2)}function f(e){Y=!1,C.setUnloading(Y)}function r(e,n){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext[me]&&delete e.ext[me],e.ext&&e.ext[ae]&&e.ext[ae].id&&delete e.ext[ae].id,G&&(e.ext=ee.optimizeObject(e.ext),e.baseData&&(e.baseData=ee.optimizeObject(e.baseData)),e.data&&(e.data=ee.optimizeObject(e.data))),e.sync)if(Q||L)e.latency=3,e.sync=!1;else if(C)return G&&(e=ee.optimizeObject(e)),C.sendSynchronousBatch(oe.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var t=e.latency,i=D,r=q,a=(4===t&&(i=j,r=N),!1);(a=i<r||(i=1,r=20,4===t&&(i=4,r=1),a=!0,function(e,n,t,i){for(;t<=n;){var r=h(e,n,!0);if(r&&0<r.count()){var r=r.split(0,i),a=r.count();if(0<a)return 4===t?j-=a:D-=a,b(de,[r],ee.EventsDiscardedReason.QueueFull),1}t++}return p(),0}(e.iKey,e.latency,i,r))?(t=e,i=n,r=(t=G?ee.optimizeObject(t):t).latency,!((n=h(t.iKey,r,!0)).addEvent(t)&&(4!==r?(D++,i&&0===t.sendAttempt&&v(!t.sync,0<O&&n.count()>=O)):j++,1))):a)&&g(de,[e],ee.EventsDiscardedReason.QueueFull)}function a(e,n,t){y(e,n,t),C.sendQueuedRequests(n,t)}function o(){0<=J&&y(J,0,k)&&C.sendQueuedRequests(0,k),0<j&&!X&&!L&&0<=(e=I[U][2])&&(X=s(function(){X=null,a(4,0,1),o()},e));var e=I[U][1];!z&&!H&&0<=e&&!L&&(0<D?z=s(function(){z=null,a(0===V?3:1,0,1),V++,V%=2,o()},e):V=0)}function t(){B=!1,L=!(A=[]),N=500,q=1e4,I={},U=ne,V=Q=D=j=0,x=X=z=H=P=null,W={},K=undefined,O=0,J=-1,Y=!(G=!(k=null)),Z=6,F=null,M=le(),C=new we(500,$=2,1,{requeue:e,send:T,sent:E,drop:S,rspFail:_,oth:w},M),n(),W[4]={batches:[],iKeyMap:{}},W[3]={batches:[],iKeyMap:{}},W[2]={batches:[],iKeyMap:{}},W[1]={batches:[],iKeyMap:{}},R()}function s(e,n){0===n&&Q&&(n=1);var t=1e3;return Q&&(t=ge(Q-1)),M.set(e,n*t)}function i(){return null!==z&&(M.clear(z),z=null,!(V=0))}function u(e,n){i(),H&&(M.clear(H),H=null),L||a(1,e,n)}function h(e,n,t){var i=W[n],n=(i=i||W[n=1]).iKeyMap[e];return!n&&t&&(n=oe.create(e),i.batches.push(n),i.iKeyMap[e]=n),n}function v(e,n){C.canSendRequest()&&!Q&&(n=0<K&&K<D||n)&&null==H&&c.flush(e,null,20)}function p(){for(var t=0,i=0,e=1;e<=4;e++)!function(n){var e=W[n];e&&e.batches&&ee.arrForEach(e.batches,function(e){4===n?t+=e.count():i+=e.count()})}(e);D=i,j=t}function y(i,e,n){var r=!1,t=0===e;return!t||C.canSendRequest()?ee.doPerf(c.core,function(){return"PostChannel._queueBatches"},function(){for(var n=[],t=4;i<=t;){var e=W[t];e&&e.batches&&0<e.batches.length&&(ee.arrForEach(e.batches,function(e){C.addBatch(e)?r=r||e&&0<e.count():n=n.concat(e.events()),4===t?j-=e.count():D-=e.count()}),e.batches=[],e.iKeyMap={}),t--}0<n.length&&g(de,n,ee.EventsDiscardedReason.KillSwitch),r&&i<=J&&(J=-1,k=0)},function(){return{latency:i,sendType:e,sendReason:n}},!t):(J=0<=J?Math.min(J,i):i,k=Math.max(k,n)),r}function n(){I={REAL_TIME:[2,1,0],NEAR_REAL_TIME:[6,3,0],BEST_EFFORT:[18,9,0]}}function e(e,n){var t=[],i=Y?$:Z;ee.arrForEach(e,function(e){e&&0<e.count()&&ee.arrForEach(e.events(),function(e){e&&(e.sync&&(e.latency=4,e.sync=!1),e.sendAttempt<i?(ee.setProcessTelemetryTimings(e,c.identifier),r(e,!1)):t.push(e))})}),0<t.length&&g(de,t,ee.EventsDiscardedReason.NonRetryableStatus),Y&&u(2,2)}function m(e,n){var t=c._notificationManager||{},i=t[e];if(i)try{i.apply(t,n)}catch(r){ee._throwInternal(c.diagLog(),1,74,e+" notification failed: "+r)}}function g(e,n){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];n&&0<n.length&&m(e,[n].concat(t))}function b(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];e&&0<e.length&&ee.arrForEach(e,function(e){e&&0<e.count()&&m(n,[e.events()].concat(t))})}function T(e,n,t){e&&0<e.length&&m("eventsSendRequest",[1e3<=n&&n<=1999?n-1e3:0,!0!==t])}function E(e,n){b("eventsSent",e,n),o()}function S(e,n){b(de,e,8e3<=n&&n<=8999?n-8e3:ee.EventsDiscardedReason.Unknown)}function _(e){b(de,e,ee.EventsDiscardedReason.NonRetryableStatus),o()}function w(e,n){b(de,e,ee.EventsDiscardedReason.Unknown),o()}function R(){O=P&&P.disableAutoBatchFlushLimit?0:Math.max(1500,q/6)}t(),c._getDbgPlgTargets=function(){return[C]},c.initialize=function(o,s,u){ee.doPerf(s,function(){return"PostChannel:initialize"},function(){var n,e=s;l.initialize(o,s,u);try{s.addUnloadCb,F=ee.mergeEvtNamespace(ee.createUniqueNamespace(c.identifier),s.evtNamespace&&s.evtNamespace());var t=c._getTelCtx(),i=(o.extensionConfig[c.identifier]=o.extensionConfig[c.identifier]||{},P=t.getExtCfg(c.identifier),M=le(P.setTimeoutOverride,P.clearTimeoutOverride),G=!P.disableOptimizeObj&&ee.isChromium(),n=e.getWParam,e.getWParam=function(){var e=0;return P.ignoreMc1Ms0CookieProcessing&&(e|=2),e|n()},0<P.eventsLimitInMem&&(q=P.eventsLimitInMem),0<P.immediateEventLimit&&(N=P.immediateEventLimit),0<P.autoFlushEventsLimit&&(K=P.autoFlushEventsLimit),ee.isNumber(P[Re])&&(Z=P[Re]),ee.isNumber(P[Pe])&&($=P[Pe]),R(),P.httpXHROverride&&P.httpXHROverride.sendPOST&&(x=P.httpXHROverride),ee.isValueAssigned(o.anonCookieName)&&C.addQueryStringParameter("anoncknm",o.anonCookieName),C.sendHook=P.payloadPreprocessor,C.sendListener=P.payloadListener,P.overrideEndpointUrl||o.endpointUrl),r=(c._notificationManager=o.extensionConfig.NotificationManager,C.initialize(i,c.core,c,x,P),o.disablePageUnloadEvents||[]);ee.addPageUnloadEventListener(d,r,F),ee.addPageHideEventListener(d,r,F),ee.addPageShowEventListener(f,o.disablePageShowEvents,F)}catch(a){throw c.setInitialized(!1),a}},function(){return{coreConfig:o,core:s,extensions:u}})},c.processTelemetry=function(e,n){ee.setProcessTelemetryTimings(e,c.identifier);var t=(n=c._getTelCtx(n)).getExtCfg(c.identifier),i=!!P.disableTelemetry;(i=t?i||!!t.disableTelemetry:i)||B||(P[fe]&&(e.iKey=P[fe]),t&&t[fe]&&(e.iKey=t[fe]),r(e,!0),Y?u(2,2):o()),c.processNext(e,n)},c._doTeardown=function(e,n){u(2,2),B=!0,C.teardown(),ee.removePageUnloadEventListener(null,F),ee.removePageHideEventListener(null,F),ee.removePageShowEventListener(null,F),t()},c.setEventQueueLimits=function(e,n){q=0<e?e:1e4,K=0<n?n:0,R();var t=e<D;if(!t&&0<O)for(var i=1;!t&&i<=3;i++){var r=W[i];r&&r.batches&&ee.arrForEach(r.batches,function(e){e&&e.count()>=O&&(t=!0)})}v(!0,t)},c.pause=function(){i(),L=!0,C.pause()},c.resume=function(){L=!1,C.resume(),o()},c.addResponseHandler=function(e){C._responseHandlers.push(e)},c._loadTransmitProfiles=function(e){i(),n(),U=ne,o(),ee.objForEachKey(e,function(e,n){var t,i=n.length;2<=i&&(t=2<i?n[2]:0,n.splice(0,i-2),n[1]<0&&(n[0]=-1),0<n[1]&&0<n[0]&&(i=n[0]/n[1],n[0]=Math.ceil(i)*n[1]),0<=t&&0<=n[1]&&t>n[1]&&(t=n[1]),n.push(t),I[e]=n)})},c.flush=function(e,n,t){void 0===e&&(e=!0),L||(t=t||1,e?null==H?(i(),y(1,0,t),H=s(function(){H=null,function i(e,n){a(1,0,n),p(),function t(e){C.isCompletelyIdle()?e():H=s(function(){H=null,t(e)},.25)}(function(){e&&e(),0<A.length?H=s(function(){H=null,i(A.shift(),n)},0):(H=null,o())})}(n,t)},0)):A.push(n):(e=i(),a(1,1,t),null!==n&&n!==undefined&&n(),e&&o()))},c.setMsaAuthTicket=function(e){C.addHeader(ie,e)},c.hasEvents=function(){return 0<D},c._setTransmitProfile=function(e){U!==e&&I[e]!==undefined&&(i(),U=e,o())},c._backOffTransmission=function(){Q<4&&(Q++,i(),o())},c._clearBackOff=function(){Q&&(Q=0,i(),o())},ee.objDefineAccessors(c,"_setTimeoutOverride",function(){return M.set},function(e){M=le(e,M.clear)}),ee.objDefineAccessors(c,"_clearTimeoutOverride",function(){return M.clear},function(e){M=le(M.set,e)})}),e}e.BE_PROFILE="BEST_EFFORT",e.NRT_PROFILE="NEAR_REAL_TIME",e.PostChannel=t,e.RT_PROFILE=ne;var p=e,i="__esModule",n={value:!0},t=Object.defineProperty;if(t)try{return void t(p,i,n)}catch(O){}typeof n.value!==undefined&&(p[i]=n.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@microsoft/applicationinsights-shims"),require("@microsoft/dynamicproto-js"),require("@microsoft/1ds-core-js")):"function"==typeof define&&define.amd?define(["exports","@microsoft/applicationinsights-shims","@microsoft/dynamicproto-js","@microsoft/1ds-core-js"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).oneDS=e.oneDS||{},e.applicationinsightsShims,e.dynamicProto,e._1dsCoreJs);
//# sourceMappingURL=ms.post.min.js.map
{
"name": "@microsoft/1ds-post-js",
"version": "3.2.5",
"version": "3.2.6",
"description": "Microsoft Application Insights JavaScript SDK - 1ds-post-js extensions",

@@ -21,3 +21,3 @@ "author": "Microsoft Application Insights Team",

"@microsoft/dynamicproto-js": "^1.1.6",
"@microsoft/1ds-core-js": "3.2.5"
"@microsoft/1ds-core-js": "3.2.6"
},

@@ -24,0 +24,0 @@ "devDependencies": {

@@ -18,3 +18,3 @@ ---

Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/3.2.5).
Packages available [here](https://msasg.visualstudio.com/Shared%20Data/_artifacts/feed/1DS-SDK/Npm/%40microsoft%2F1ds-post-js/overview/3.2.6).

@@ -21,0 +21,0 @@ ## Basic Usage

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc