text: /*! For license information please see extension.js.LICENSE.txt */
  (()=>{var e={331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Bc});var r,i,o,a,s,c,u,l,f,d,h,p,g=n(549),v=Object.defineProperty,m=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&I(e,n,t[n]);if(m)for(var n of m(t))w.call(t,n)&&I(e,n,t[n]);return e},x=(e,t)=>()=>(e&&(t=e(e=0)),t),b=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())})),T=x((()=>{r={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}})),C=x((()=>{i="function",o="object",a="undefined",s="prototype",c="hasOwnProperty",l=(u=Object)[s],f=u.assign,d=u.create,h=u.defineProperty,p=l[c]}));function S(){return typeof globalThis!==a&&globalThis?globalThis:typeof self!==a&&self?self:typeof window!==a&&window?window:typeof n.g!==a&&n.g?n.g:null}function E(e){throw new TypeError(e)}function k(e){if(d)return d(e);if(null==e)return{};var t=typeof e;function n(){}return t!==o&&t!==i&&E("Object prototype may only be an Object:"+e),n[s]=e,new n}var A=x((()=>{C()}));function P(e,t){function n(){this.constructor=e}typeof t!==i&&null!==t&&E("Class extends value "+String(t)+" is not a constructor or null"),L(e,t),e[s]=null===t?k(t):(n[s]=t[s],new n)}var R,N,L,M=x((()=>{C(),A(),(S()||{}).Symbol,(S()||{}).Reflect,R=function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])l[c].call(t,i)&&(e[i]=t[i]);return e},N=f||R,L=function(e,t){return(L=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[c](n)&&(e[n]=t[n])})(e,t)}})),D=x((()=>{})),U=x((()=>{C(),A(),M(),D()}));function B(e,t){return e&&ue[J].hasOwnProperty.call(e,t)}function F(e){return e&&(e===ue[J]||e===Array[J])}function O(e){return F(e)||e===Function[J]}function q(e){if(e){if(le)return le(e);var t=e[ae]||e[J]||(e[X]?e[X][J]:null);if(t)return t}return null}function j(e,t){var n=[],r=ue.getOwnPropertyNames;if(r)n=r(e);else for(var i in e)"string"==typeof i&&B(e,i)&&n.push(i);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function V(e,t,n){return t!==X&&typeof e[t]===Y&&(n||B(e,t))}function H(e){throw new TypeError("DynamicProto: "+e)}function z(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function W(e,t,n,r){var i=null;if(e&&B(n,ee)){var o=e[Q]||{};if((i=(o[n[ee]]||{})[t])||H("Missing ["+t+"] "+Y),!i[ne]&&!1!==o[re]){for(var a=!B(e,t),s=q(e),c=[];a&&s&&!O(s)&&!z(c,s);){var u=s[t];if(u){a=u===r;break}c.push(s),s=q(s)}try{a&&(e[t]=i),i[ne]=1}catch(e){o[re]=!1}}}return i}function K(e,t,n){var r=t[e];return r===n&&(r=q(t)[e]),typeof r!==Y&&H("["+e+"] is not a "+Y),r}function $(e,t){return B(e,J)?e.name||t||oe:((e||{})[X]||{}).name||t||oe}function G(e,t,n,r){B(e,J)||H("theClass is an invalid class definition.");var i=e[J];(function(e,t){if(le)for(var n=[],r=q(t);r&&!O(r)&&!z(n,r);){if(r===e)return!0;n.push(r),r=q(r)}return!1})(i,t)||H("["+$(e)+"] is not in class hierarchy of ["+$(t)+"]");var o=null;B(i,ee)?o=i[ee]:(o=te+$(e,"_")+"$"+fe,fe++,i[ee]=o);var a=G[ie],s=!!a[se];s&&r&&void 0!==r[se]&&(s=!!r[se]);var c=function(e){var t={};return j(e,(function(n){!t[n]&&V(e,n,!1)&&(t[n]=e[n])})),t}(t);n(t,function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[Z]&&r){var o=e[Q]||{};!1!==o[re]&&(i=(o[t[ee]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};j(n,(function(e){o[e]=i(t,n,e)}));for(var a=q(e),s=[];a&&!O(a)&&!z(s,a);)j(a,(function(e){!o[e]&&V(a,e,!le)&&(o[e]=i(t,a,e))})),s.push(a),a=q(a);return o}(i,t,c,s));var u=!!le&&!!a[ce];u&&r&&(u=!!r[ce]),function(e,t,n,r,i){if(!F(e)){var o=n[Q]=n[Q]||{},a=o[t]=o[t]||{};!1!==o[re]&&(o[re]=!!i),j(n,(function(t){V(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!B(e,t)||e[t]&&!e[t][Z])&&(e[t]=function(e,t){var n=function(){return(W(this,t,e,n)||K(t,e,n)).apply(this,arguments)};return n[Z]=1,n}(e,t)))}))}}(i,o,t,c,!1!==u)}var X,J,Y,Q,Z,ee,te,ne,re,ie,oe,ae,se,ce,ue,le,fe,de,he,pe,ge,ve=x((()=>{X="constructor",J="prototype",Y="function",Q="_dynInstFuncs",Z="_isDynProxy",ee="_dynClass",te="_dynCls$",re=ne="_dynInstChk",ie="_dfOpts",oe="_unknown_",ae="__proto__",se="useBaseInst",ce="setInstFuncs",le=(ue=Object).getPrototypeOf,fe=0,de={setInstFuncs:!0,useBaseInst:!0},G[ie]=de,he=G})),me=x((()=>{var e;(e=pe||(pe={}))[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING",ge={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103}}));function ye(e){return l.toString.call(e)}function we(e,t){return typeof e===t}function Ie(e){return void 0===e||typeof e===a}function _e(e){return null===e||Ie(e)}function xe(e){return!_e(e)}function be(e,t){return e&&p.call(e,t)}function Te(e){return typeof e===o}function Ce(e){return typeof e===i}function Se(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!_e(e))try{_e(e[tt])?_e(e[et])||(e[et](Ze+t,n),i=!0):(e[tt](t,n,r),i=!0)}catch(e){}return i}function Ee(e,t,n,r){if(void 0===r&&(r=!1),!_e(e))try{_e(e[rt])?_e(e[nt])||e[nt](Ze+t,n):e[rt](t,n,r)}catch(e){}}function ke(e,t){if(e)for(var n in e)p.call(e,n)&&t.call(e,n,e[n])}function Ae(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Pe(e){return"[object Date]"===ye(e)}function Re(e){return"[object Array]"===ye(e)}function Ne(e){return"[object Error]"===ye(e)}function Le(e){return"string"==typeof e}function Me(e){return"number"==typeof e}function De(e){return"boolean"==typeof e}function Ue(e){if(Pe(e)){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function Be(e,t,n){for(var r=e.length,i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}function Fe(e,t,n){for(var r=e.length,i=n||0,o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o;return-1}function Oe(e,t,n){for(var r=e.length,i=n||e,o=new Array(r),a=0;a<r;a++)a in e&&(o[a]=t.call(i,e[a],e));return o}function qe(e,t,n){var r,i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;return r}function je(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")}function Ve(e){var t=typeof e;t!==i&&(t!==o||null===e)&&E("objKeys called on non-object");var n=[];for(var r in e)e&&p.call(e,r)&&n.push(r);if(ot)for(var a=at.length,s=0;s<a;s++)e&&p.call(e,at[s])&&n.push(at[s]);return n}function He(e,t,n,r){if(it)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),it(e,t,i),!0}catch(e){}return!1}function ze(){var e=Date;return e.now?e.now():(new e).getTime()}function We(e){return Ne(e)?e.name:""}function Ke(e,t,n,r,i){var o=n;return e&&(o=e[t])!==n&&(!i||i(o))&&(!r||r(n))&&(o=n,e[t]=o),o}function $e(e,t,n){var r;return e?!(r=e[t])&&_e(r)&&(r=Ie(n)?{}:n,e[t]=r):r=Ie(n)?{}:n,r}function Ge(e){return!e}function Xe(e){return!!e}function Je(e){throw new Error(e)}function Ye(e,t,n){if(e&&t&&e!==t&&Te(e)&&Te(t)){var r=function(r){if(Le(r)){var i=t[r];Ce(i)?(!n||n(r,!0,t,e))&&(e[r]=(o=r,function(){var e=arguments;return t[o].apply(t,e)})):(!n||n(r,!1,t,e))&&(be(e,r)&&delete e[r],He(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}var o};for(var i in t)r(i)}return e}function Qe(e){return e&&(e=u(f?f({},e):e)),e}var Ze,et,tt,nt,rt,it,ot,at,st=x((()=>{U(),Ze="on",et="attachEvent",tt="addEventListener",nt="detachEvent",rt="removeEventListener",it=h,u.freeze,u.seal,ot=!{toString:null}.propertyIsEnumerable("toString"),at=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]}));function ct(e){var t=S();return t&&t[e]?t[e]:e===_t&&ut()?window:null}function ut(){return Boolean(typeof window===o&&window)}function lt(){return ut()?window:ct(_t)}function ft(){return Boolean(typeof document===o&&document)}function dt(){return ft()?document:ct(xt)}function ht(){return Boolean(typeof navigator===o&&navigator)?navigator:ct(bt)}function pt(e){if(e&&Ut){var t=ct("__mockLocation");if(t)return t}return typeof location===o&&location?location:ct(Ct)}function gt(){return ct(Et)}function vt(){return Boolean(typeof JSON===o&&JSON||null!==ct(kt))}function mt(){return vt()?JSON||ct(kt):null}function yt(){var e=ht();if(e&&(e.userAgent!==Dt||null===Mt)){var t=((Dt=e.userAgent)||"").toLowerCase();Mt=Ae(t,Nt)||Ae(t,Lt)}return Mt}function wt(e){if(void 0===e&&(e=null),!e){var t=ht()||{};e=t?(t.userAgent||"").toLowerCase():""}var n=(e||"").toLowerCase();if(Ae(n,Nt))return parseInt(n.split(Nt)[1]);if(Ae(n,Lt)){var r=parseInt(n.split(Lt)[1]);if(r)return r+4}return null}function It(e){var t=Object[s].toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":vt()&&(n=mt().stringify(e)),t+n}var _t,xt,bt,Tt,Ct,St,Et,kt,At,Pt,Rt,Nt,Lt,Mt,Dt,Ut,Bt=x((()=>{U(),st(),_t="window",xt="document",bt="navigator",Tt="history",Ct="location",St="console",Et="performance",kt="JSON",At="crypto",Pt="msCrypto",Rt="ReactNative",Nt="msie",Lt="trident/",Mt=null,Dt=null,Ut=!1}));function Ft(e){return e?'"'+e.replace(/\"/g,"")+'"':""}function Ot(e,t){return(e||{}).logger||new jt(t)}var qt,jt,Vt=x((()=>{me(),Bt(),ve(),st(),qt=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?"AI: ":"AI (Internal): ")+e;var o="";vt()&&(o=mt().stringify(r));var a=(t?" message:"+Ft(t):"")+(r?" props:"+Ft(o):"");i.message+=a}return e.dataType="MessageData",e}(),jt=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};he(e,this,(function(e){function i(e,n){var r=t[e];return _e(r)?n:r}_e(t)&&(t={}),e.consoleLoggingLevel=function(){return i("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return i("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return i("maxMessageLimit",25)},e.enableDebugExceptions=function(){return i("enableDebugExceptions",!1)},e.throwInternal=function(t,n,i,o,a){void 0===a&&(a=!1);var s=new qt(n,i,a,o);if(e.enableDebugExceptions())throw s;if(!Ie(s.message)){var c=e.consoleLoggingLevel();if(a){var u=+s.messageId;!r[u]&&c>=pe.WARNING&&(e.warnToConsole(s.message),r[u]=!0)}else c>=pe.WARNING&&e.warnToConsole(s.message);e.logInternalMessage(t,s)}},e.warnToConsole=function(e){var t=typeof console!==a?console:ct(St);if(t){var n="log";t.warn&&(n="warn"),Ce(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,i){if(!(n>=e.maxInternalMessageLimit())){var o=!0,a="AITR_"+i.messageId;if(r[a]?o=!1:r[a]=!0,o&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),n++),n===e.maxInternalMessageLimit())){var s="Internal events throttle limit per PageView reached for this app.",c=new qt(ge.MessageLimitPerPVExceeded,s,!1);e.queue.push(c),e.warnToConsole(s)}}}}))}}));function Ht(e,t,n,r,i){if(e){var o=e;if(Ce(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(Kt);try{if(a=o.create(t(),r,i)){if(s&&a.setCtx&&(a.setCtx(zt.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(zt.ChildrenContextKey);c||(c=[],s.setCtx(zt.ChildrenContextKey,c)),c.push(a)}return o.setCtx(Kt,a),n(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&o.fire(a),o.setCtx(Kt,s)}}}return n()}var zt,Wt,Kt,$t,Gt=x((()=>{ve(),st(),zt=function(){function e(t,n,r){var i,o=this,a=!1;o.start=ze(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return!1},Ce(n)&&(a=He(o,"payload",(function(){return!i&&Ce(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o.ctx=o.ctx||{})[t]=n)},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(Re(r))for(var i=0;i<r.length;i++){var s=r[i];s&&(t+=s.time)}o.time=ze()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&Ce(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Wt=function e(t){this.ctx={},he(e,this,(function(e){e.create=function(e,t,n){return new zt(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))},Kt="CoreUtils.doPerf"})),Xt=x((()=>{Gt(),me(),st(),$t=function(e,t){var n=this,r=null,i=Ce(e.processTelemetry),o=Ce(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return r},n.setNext=function(e){r=e},n.processTelemetry=function(a,s){s||(s=t);var c=e?e.identifier:"TelemetryPluginChain";Ht(s?s.core():null,(function(){return c+":processTelemetry"}),(function(){if(e&&i){n._hasRun=!0;try{s.setNext(r),o&&e.setNextPlugin(r),r&&(r._hasRun=!1),e.processTelemetry(a,s)}catch(n){var t=r&&r._hasRun;(!r||!t)&&s.diagLog().throwInternal(pe.CRITICAL,ge.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+n),r&&!t&&r.processTelemetry(a,s)}}else r&&(n._hasRun=!0,r.processTelemetry(a,s))}),(function(){return{item:a}}),!a.sync)}}}));function Jt(e,t){var n=[];if(e&&e.length>0)for(var r=null,i=0;i<e.length;i++){var o=e[i];if(o&&Ce(o.processTelemetry)){var a=new $t(o,t);n.push(a),r&&r.setNext(a),r=a}}return n.length>0?n[0]:null}var Yt,Qt,Zt,en,tn,nn=x((()=>{Vt(),Xt(),st(),Yt=function e(t,n,r,i){var o=this,a=null;null!==i&&(t&&Ce(t.getPlugin)?a=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();(i||o===n)&&(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),Jt(r,t)}(t,o,i||t.getPlugin()):i?a=function(e,t,n){var r=e,i=!1;return n&&e&&(r=[],Be(e,(function(e){(i||e===n)&&(i=!0,r.push(e))}))),n&&!i&&(r||(r=[]),r.push(n)),Jt(r,t)}(t,o,i):Ie(i)&&(a=Jt(t,o))),o.core=function(){return r},o.diagLog=function(){return Ot(r,n)},o.getCfg=function(){return n},o.getExtCfg=function(e,t){var r;if(void 0===t&&(t={}),n){var i=n.extensionConfig;i&&e&&(r=i[e])}return r||t},o.getConfig=function(e,t,r){void 0===r&&(r=!1);var i,a=o.getExtCfg(e,null);return a&&!_e(a[t])?i=a[t]:n&&!_e(n[t])&&(i=n[t]),_e(i)?r:i},o.hasNext=function(){return null!=a},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processNext=function(e){var t=a;t&&(a=t.getNext(),t.processTelemetry(e,o))},o.createNew=function(t,i){return void 0===t&&(t=null),new e(t||a,n,r,i)}}})),rn=x((()=>{Qt="iKey",Zt="extensionConfig"})),on=x((()=>{nn(),st(),rn(),en="getPlugin",tn=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&Ce(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var i=t;if(!i){var o=n||new Yt(null,{},e.core);i=r&&r[en]?o.createNew(null,r[en]):o.createNew(null,r)}return i},e._baseTelInit=function(i,o,a,s){i&&Ke(i,Zt,[],null,_e),!s&&o&&(s=o.getProcessTelContext().getNext());var c=r;r&&r[en]&&(c=r[en]()),e.core=o,n=new Yt(s,i,o,c),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}()}));function an(e,t){for(var n=[],r=null,i=e.getNext();i;){var o=i.getPlugin();o&&(r&&Ce(r[ln])&&Ce(o[cn])&&r[ln](o),(!Ce(o[fn])||!o[fn]())&&n.push(o),r=o,i=i.getNext())}Be(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function sn(e){return e.sort((function(e,t){var n=0,r=Ce(t[cn]);return Ce(e[cn])?n=r?e[un]-t[un]:1:r&&(n=-1),n}))}var cn,un,ln,fn,dn,hn=x((()=>{st(),cn="processTelemetry",un="priority",ln="setNextPlugin",fn="isInitialized"})),pn=x((()=>{U(),ve(),on(),nn(),hn(),st(),500,dn=function(e){function t(){var n,r=e.call(this)||this;function i(e){e&&e.length>0&&(function(e){Be(e,(function(e){e.priority<500&&Je("Channel has invalid priority"+e.identifier)}))}(e=e.sort((function(e,t){return e.priority-t.priority}))),n.push(e))}return r.identifier="ChannelControllerPlugin",r.priority=500,he(t,r,(function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){n&&Be(n,(function(n){n.length>0&&r._getTelCtx(t).createNew(n).processNext(e)}))},e.getChannelControls=function(){return n},e.initialize=function(r,o,a){e.isInitialized()||(t.initialize(r,o,a),function(e,t){if(n=[],e&&Be(e,(function(e){return i(e)})),t){var r=[];Be(t,(function(e){e.priority>500&&r.push(e)})),i(r)}}((r||{}).channels,a),Be(n,(function(e){return an(new Yt(e,r,o),a)})))}})),r}return P(t,e),t._staticInit=(He(n=t.prototype,"ChannelControls",n.getChannelControls),void He(n,"channelQueue",n.getChannelControls)),t;var n}(tn)}));function gn(e,t){var n=yn[Ln]||qn[Ln];return n||(n=yn[Ln]=yn(e,t),qn[Ln]=n),n}function vn(e){return!e||e.isEnabled()}function mn(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r[Ln]?r[Ln]:yn(t)}return n||(n=gn(t,(e||{}).logger)),n}function yn(e,t){var n=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(Ke(t,"domain",e.cookieDomain,xe,_e),Ke(t,"path",e.cookiePath||"/",null,_e),_e(t[Pn])){var n=void 0;Ie(e[Rn])||(n=!e[Rn]),Ie(e[Nn])||(n=!e[Nn]),t[Pn]=n}return t}(e||qn),r=n.path||"/",i=n.domain,o=!1!==n[Pn],a={isEnabled:function(){var e=o&&wn(t),n=qn[Ln];return e&&n&&a!==n&&(e=vn(n)),e},setEnabled:function(e){o=!1!==e},set:function(e,t,o,s,c){if(vn(a)){var u={},l=je(t||Mn),f=l.indexOf(";");if(-1!==f&&(l=je(t.substring(0,f)),u=In(t.substring(f+1))),Ke(u,"domain",s||i,Xe,Ie),!_e(o)){var d=yt();if(Ie(u[An])){var h=ze()+1e3*o;if(h>0){var p=new Date;p.setTime(h),Ke(u,An,_n(p,d?Sn:En)||_n(p,d?Sn:En)||Mn,Xe)}}d||Ke(u,"max-age",Mn+o,null,Ie)}var g=pt();g&&"https:"===g.protocol&&(Ke(u,"secure",null,null,Ie),null===Un&&(Un=!Cn((ht()||{}).userAgent)),Un&&Ke(u,"SameSite","None",null,Ie)),Ke(u,"path",c||r,null,Ie),(n.setCookie||Tn)(e,xn(l,u))}},get:function(e){var t=Mn;return vn(a)&&(t=(n.getCookie||bn)(e)),t},del:function(e,t){vn(a)&&a.purge(e,t)},purge:function(e,r){if(wn(t)){var i=((o={}).path=r||"/",o[An]="Thu, 01 Jan 1970 00:00:01 GMT",o);yt()||(i["max-age"]="0"),(n.delCookie||Tn)(e,xn(Mn,i))}var o}};return a[Ln]=a,a}function wn(e){if(null===Dn){Dn=!1;try{Dn=void 0!==(Fn||{})[kn]}catch(t){e&&e.throwInternal(pe.WARNING,ge.CannotAccessCookie,"Cannot access document.cookie - "+We(t),{exception:It(t)})}}return Dn}function In(e){var t={};return e&&e.length&&Be(je(e).split(";"),(function(e){if(e=je(e||Mn)){var n=e.indexOf("=");-1===n?t[e]=null:t[je(e.substring(0,n))]=je(e.substring(n+1))}})),t}function _n(e,t){return Ce(e[t])?e[t]():null}function xn(e,t){var n=e||Mn;return ke(t,(function(e,t){n+="; "+e+(_e(t)?Mn:"="+t)})),n}function bn(e){var t=Mn;if(Fn){var n=Fn[kn]||Mn;Bn!==n&&(On=In(n),Bn=n),t=je(On[e]||Mn)}return t}function Tn(e,t){Fn&&(Fn[kn]=e+"="+t)}function Cn(e){return!!Le(e)&&!!(Ae(e,"CPU iPhone OS 12")||Ae(e,"iPad; CPU OS 12")||Ae(e,"Macintosh; Intel Mac OS X 10_14")&&Ae(e,"Version/")&&Ae(e,"Safari")||Ae(e,"Macintosh; Intel Mac OS X 10_14")&&function(e,t){if(e){var n=t.length,r=e.length;if(e===t)return!0;if(r>=n){for(var i=r-1,o=n-1;o>=0;o--){if(e[i]!=t[o])return!1;i--}return!0}}return!1}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Ae(e,"Chrome/5")||Ae(e,"Chrome/6")||Ae(e,"UnrealEngine")&&!Ae(e,"Chrome")||Ae(e,"UCBrowser/12")||Ae(e,"UCBrowser/11"))}var Sn,En,kn,An,Pn,Rn,Nn,Ln,Mn,Dn,Un,Bn,Fn,On,qn,jn,Vn,Hn,zn,Wn=x((()=>{me(),Bt(),st(),Sn="toGMTString",En="toUTCString",kn="cookie",An="expires",Pn="enabled",Rn="isCookieUseDisabled",Nn="disableCookiesUsage",Ln="_ckMgr",Mn="",Dn=null,Un=null,Bn=null,Fn=dt(),On={},qn={}})),Kn=x((()=>{U(),ve(),pn(),nn(),hn(),Gt(),Wn(),st(),rn(),jn="_notificationManager",Vn=function e(){var t,n,r,i,o,a=!1;he(e,this,(function(e){e._extensions=new Array,n=new dn,e.logger=k({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return a},e.initialize=function(t,i,o,s){e.isInitialized()&&Je("Core should not be initialized more than once"),(!t||_e(t.instrumentationKey))&&Je("Please provide instrumentation key"),r=s,e[jn]=s,e.config=t||{},t.extensions=_e(t.extensions)?[]:t.extensions,$e(t,Zt).NotificationManager=s,o&&(e.logger=o);var c=[];c.push.apply(c,i.concat(t.extensions)),c=sn(c);var u=[],l=[],f={};Be(c,(function(e){(_e(e)||_e(e.initialize))&&Je("Extensions must provide callback to initialize");var t=e.priority,r=e.identifier;e&&t&&(_e(f[t])?f[t]=r:o.warnToConsole("Two extensions have same priority #"+t+" - "+f[t]+", "+r)),!t||t<n.priority?u.push(e):l.push(e)})),c.push(n),u.push(n),c=sn(c),e._extensions=c,an(new Yt([n],t,e),c),an(new Yt(u,t,e),c),e._extensions=u,0===e.getTransmissionControls().length&&Je("No channels available"),a=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){Ke(n,Qt,e.config.instrumentationKey,null,Ge),Ke(n,"time",Ue(new Date),null,Ge),Ke(n,"ver","4.0",null,_e),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,r=t;return(!t||0===t.length)&&(r=[n]),new Yt(r,e.config,e)},e.getNotifyMgr=function(){return r||(r=k({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e[jn]=r),r},e.getCookieMgr=function(){return o||(o=yn(e.config,e.logger)),o},e.setCookieMgr=function(e){o=e},e.getPerfMgr=function(){return i||e.config&&e.config.enablePerfMgr&&(i=new Wt(e.getNotifyMgr())),i},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(Be(t,(function(t){e.getProcessTelContext().processNext(t)})),t=[])}}))}})),$n=x((()=>{ve(),st(),Hn=function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;he(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=Fe(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Fe(e.listeners,t)},e.eventsSent=function(t){Be(e.listeners,(function(e){e&&e.eventsSent&&setTimeout((function(){return e.eventsSent(t)}),0)}))},e.eventsDiscarded=function(t,n){Be(e.listeners,(function(e){e&&e.eventsDiscarded&&setTimeout((function(){return e.eventsDiscarded(t,n)}),0)}))},e.eventsSendRequest=function(t,n){Be(e.listeners,(function(e){if(e&&e.eventsSendRequest)if(n)setTimeout((function(){return e.eventsSendRequest(t,n)}),0);else try{e.eventsSendRequest(t,n)}catch(e){}}))},e.perfEvent=function(t){t&&(n||!t.isChildEvt())&&Be(e.listeners,(function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout((function(){return e.perfEvent(t)}),0);else try{e.perfEvent(t)}catch(e){}}))}}))}})),Gn=x((()=>{U(),Kn(),T(),$n(),Gt(),Vt(),ve(),st(),zn=function(e){function t(){var n=e.call(this)||this;return he(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],r.InvalidEvent)}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new jt(e),i||new Hn(e))},e.track=function(r){Ht(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Je("Invalid telemetry item")),function(e){if(_e(e.name))throw n(e),Error("telemetry name required")}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return(!n||!(n>0))&&(n=1e4),setInterval((function(){var n=e.logger?e.logger.queue:[];Be(n,(function(n){var r={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:Ue(new Date),baseType:qt.dataType,baseData:{message:n.message}};e.track(r)})),n.length=0}),n)}})),n}return P(t,e),t}(Vn)}));function Xn(e){e<0&&(e>>>=0),ir=123456789+e&nr,or=987654321-e&nr,rr=!0}function Jn(){try{var e=2147483647&ze();Xn((Math.random()*tr^e)+e)}catch(e){}}function Yn(e){return e>0?Math.floor(Qn()/nr*(e+1))>>>0:0}function Qn(e){var t,n=ct(At)||ct(Pt);return n&&n.getRandomValues?t=n.getRandomValues(new Uint32Array(1))[0]&nr:yt()?(rr||Jn(),t=er()&nr):t=Math.floor(tr*Math.random()|0),e||(t>>>=0),t}function Zn(e){e?Xn(e):Jn()}function er(e){var t=((or=36969*(65535&or)+(or>>16)&nr)<<16)+(65535&(ir=18e3*(65535&ir)+(ir>>16)&nr))>>>0&nr|0;return e||(t>>>=0),t}var tr,nr,rr,ir,or,ar=x((()=>{Bt(),st(),tr=4294967296,nr=4294967295,rr=!1,ir=123456789,or=987654321}));function sr(e,t){var n=!1,r=lt();r&&(n=Se(r,e,t),n=Se(r.body,e,t)||n);var i=dt();return i&&(n=xr.Attach(i,e,t)||n),n}function cr(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(_r,(function(e){var t=0|Yn(15);return("x"===e?t:3&t|8).toString(16)}))}function ur(){var e=gt();return e&&e.now?e.now():ze()}function lr(e){void 0===e&&(e=22);for(var t=Qn()>>>0,n=0,r="";r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Qn()<<2&4294967295|3&t)>>>0,n=0);return r}function fr(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<4;r++)n+=t[15&(e=Qn())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Qn())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}function dr(e,t){var n=gn(e,t),r=Ir._canUseCookies;return null===yr&&(yr=[],wr=r,He(Ir,"_canUseCookies",(function(){return wr}),(function(e){wr=e,Be(yr,(function(t){t.setEnabled(e)}))}))),-1===Fe(yr,n)&&yr.push(n),De(r)&&n.setEnabled(r),De(wr)&&n.setEnabled(wr),n}function hr(){dr().setEnabled(!1)}function pr(e){return dr(null,e).isEnabled()}function gr(e,t){return dr(null,e).get(t)}function vr(e,t,n,r){dr(null,e).set(t,n,null,r)}function mr(e,t){return dr(null,e).del(t)}var yr,wr,Ir,_r,xr,br=x((()=>{U(),Wn(),Bt(),st(),ar(),yr=null,Ir={_canUseCookies:void 0,isTypeof:we,isUndefined:Ie,isNullOrUndefined:_e,hasOwnProperty:be,isFunction:Ce,isObject:Te,isDate:Pe,isArray:Re,isError:Ne,isString:Le,isNumber:Me,isBoolean:De,toISOString:Ue,arrForEach:Be,arrIndexOf:Fe,arrMap:Oe,arrReduce:qe,strTrim:je,objCreate:k,objKeys:Ve,objDefineAccessors:He,addEventHandler:sr,dateNow:ze,isIE:yt,disableCookies:hr,newGuid:cr,perfNow:ur,newId:lr,randomValue:Yn,random32:Qn,mwcRandomSeed:Zn,mwcRandom32:er,generateW3CId:fr},_r=/[xy]/g,xr={Attach:Se,AttachEvent:Se,Detach:Ee,DetachEvent:Ee}}));function Tr(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function Cr(e,t,n,r,i){i>=0&&i<=2&&Tr(e,(function(e,o){var a=e.cbks,s=a[Ar[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s.apply(t.inst,n)}catch(e){var c=t.err;try{var u=a[Ar[2]];u&&(t.err=e,u.apply(t.inst,n))}catch(e){}finally{t.err=c}}}}))}function Sr(e,t,n){var r=null;return e&&(be(e,t)?r=e:n&&(r=Sr(function(e){if(e){if(Nr)return Nr(e);var t=e[Pr]||e[s]||e[Rr];if(t)return t}return null}(e),t,!1))),r}function Er(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var o=Sr(e,t,r);if(o){var a=o[t];if(typeof a===i){var s=a[kr];if(!s){var c=function(e){return function(){var t=this,n=arguments,r=e.h,i={name:e.n,inst:t,ctx:null,set:c},o=[],a=s([i],n);function s(e,t){return Tr(t,(function(t){e.push(t)})),e}function c(e,t){(n=s([],n))[e]=t,a=s([i],n)}Cr(r,i,a,o,0);var u=e.f;try{i.rslt=u.apply(t,n)}catch(e){throw i.err=e,Cr(r,i,a,o,3),e}return Cr(r,i,a,o,1),i.rslt}}(s={i:0,n:t,f:a,h:[]});c[kr]=s,o[t]=c}var u={id:s.i,cbks:n,rm:function(){var e=this.id;Tr(s.h,(function(t,n){if(t.id===e)return s.h.splice(n,1),1}))}};return s.i++,s.h.push(u),u}}}return null}var kr,Ar,Pr,Rr,Nr,Lr,Mr=x((()=>{U(),st(),kr="_aiHooks",Ar=["req","rsp","hkErr","fnErr"],Pr="__proto__",Rr="constructor",Nr=Object.getPrototypeOf})),Dr=x((()=>{Gn(),Kn(),on(),ar(),br(),st(),Bt(),U(),$n(),Gt(),Vt(),me(),Mr(),Wn()})),Ur=x((()=>{Lr={requestContextHeader:"Request-Context",requestContextTargetKey:"appId",requestContextAppIdFormat:"appId=cid-v1:",requestIdHeader:"Request-Id",traceParentHeader:"traceparent",traceStateHeader:"tracestate",sdkContextHeader:"Sdk-Context",sdkContextHeaderAppIdRequest:"appId",requestContextHeaderLowerCase:"request-context"}}));function Br(e,t,n){var r=t.length,i=Fr(e,t);if(i.length!==r){for(var o=0,a=i;void 0!==n[a];)o++,a=i.substring(0,147)+$r(o);i=a}return i}function Fr(e,t){var n;return t&&(t=je(t.toString())).length>150&&(n=t.substring(0,150),e.throwInternal(pe.WARNING,ge.NameTooLong,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function Or(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=je(t)).toString().length>n&&(r=t.toString().substring(0,n),e.throwInternal(pe.WARNING,ge.StringValueTooLong,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function qr(e,t){return Kr(e,t,2048,ge.UrlTooLong)}function jr(e,t){var n;return t&&t.length>32768&&(n=t.substring(0,32768),e.throwInternal(pe.WARNING,ge.MessageTruncated,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Vr(e,t){var n;if(t){var r=""+t;r.length>32768&&(n=r.substring(0,32768),e.throwInternal(pe.WARNING,ge.ExceptionTruncated,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function Hr(e,t){if(t){var n={};ke(t,(function(t,r){if(Te(r)&&vt())try{r=mt().stringify(r)}catch(t){e.throwInternal(pe.WARNING,ge.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:t},!0)}r=Or(e,r,8192),t=Br(e,t,n),n[t]=r})),t=n}return t}function zr(e,t){if(t){var n={};ke(t,(function(t,r){t=Br(e,t,n),n[t]=r})),t=n}return t}function Wr(e,t){return t&&Kr(e,t,128,ge.IdTooLong).toString()}function Kr(e,t,n,r){var i;return t&&(t=je(t)).length>n&&(i=t.substring(0,n),e.throwInternal(pe.WARNING,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function $r(e){var t="00"+e;return t.substr(t.length-3)}var Gr,Xr=x((()=>{Dr(),Gr={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768,sanitizeKeyAndAddUniqueness:Br,sanitizeKey:Fr,sanitizeString:Or,sanitizeUrl:qr,sanitizeMessage:jr,sanitizeException:Vr,sanitizeProperties:Hr,sanitizeMeasurements:zr,sanitizeId:Wr,sanitizeInput:Kr,padNumber:$r,trim:je}}));function Jr(e){var t=null;if(Ce(Event))t=new Event(e);else{var n=dt();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}var Yr=x((()=>{Dr()}));function Qr(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()}function Zr(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r,(o>0?o+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t}function ei(){var e=ht();return"sendBeacon"in e&&e.sendBeacon}function ti(e,t){var n=null;return Be(e,(function(e){if(e.identifier===t)return n=e,-1})),n}function ni(e,t,n,r,i){return!i&&Le(e)&&("Script error."===e||"Script error"===e)}var ri,ii,oi,ai,si,ci,ui,li,fi=x((()=>{Dr()})),di=x((()=>{ri="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ii="sampleRate",oi="ProcessLegacy",ai="http.method",si="https://dc.services.visualstudio.com",ci="not_specified"})),hi=x((()=>{var e;(e=ui||(ui={}))[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage",function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(li||(li={}))}));function pi(){return yi()?gi(ui.LocalStorage):null}function gi(e){try{if(_e(S()))return null;var t=new Date,n=ct(e===ui.LocalStorage?"localStorage":"sessionStorage");n.setItem(t.toString(),t.toString());var r=n.getItem(t.toString())!==t.toString();if(n.removeItem(t.toString()),!r)return n}catch(e){}return null}function vi(){return xi()?gi(ui.SessionStorage):null}function mi(){Ei=!1,ki=!1}function yi(){return void 0===Ei&&(Ei=!!gi(ui.LocalStorage)),Ei}function wi(e,t){var n=pi();if(null!==n)try{return n.getItem(t)}catch(t){Ei=!1,e.throwInternal(pe.WARNING,ge.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+We(t),{exception:It(t)})}return null}function Ii(e,t,n){var r=pi();if(null!==r)try{return r.setItem(t,n),!0}catch(t){Ei=!1,e.throwInternal(pe.WARNING,ge.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+We(t),{exception:It(t)})}return!1}function _i(e,t){var n=pi();if(null!==n)try{return n.removeItem(t),!0}catch(t){Ei=!1,e.throwInternal(pe.WARNING,ge.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+We(t),{exception:It(t)})}return!1}function xi(){return void 0===ki&&(ki=!!gi(ui.SessionStorage)),ki}function bi(){var e=[];return xi()&&ke(ct("sessionStorage"),(function(t){e.push(t)})),e}function Ti(e,t){var n=vi();if(null!==n)try{return n.getItem(t)}catch(t){ki=!1,e.throwInternal(pe.WARNING,ge.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+We(t),{exception:It(t)})}return null}function Ci(e,t,n){var r=vi();if(null!==r)try{return r.setItem(t,n),!0}catch(t){ki=!1,e.throwInternal(pe.WARNING,ge.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+We(t),{exception:It(t)})}return!1}function Si(e,t){var n=vi();if(null!==n)try{return n.removeItem(t),!0}catch(t){ki=!1,e.throwInternal(pe.WARNING,ge.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+We(t),{exception:It(t)})}return!1}var Ei,ki,Ai=x((()=>{Dr(),hi(),Ei=void 0,ki=void 0}));function Pi(e){var t=Bi,n=Fi,r=n[t];return Ui.createElement?n[t]||(r=n[t]=Ui.createElement("a")):r={host:Mi(e,!0)},r.href=e,++t>=n.length&&(t=0),Bi=t,r}function Ri(e){var t,n=Pi(e);return n&&(t=n.href),t}function Ni(e){var t,n=Pi(e);return n&&(t=n.pathname),t}function Li(e,t){return e?e.toUpperCase()+" "+t:t}function Mi(e,t){var n=Di(e,t)||"";if(n){var r=n.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>3&&Le(r[2])&&r[2].length>0)return r[2]+(r[3]||"")}return n}function Di(e,t){var n=null;if(e){var r=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>2&&Le(r[2])&&r[2].length>0&&(n=r[2]||"",t&&r.length>2)){var i=(r[1]||"").toLowerCase(),o=r[3]||"";("http"===i&&":80"===o||"https"===i&&":443"===o)&&(o=""),n+=o}}return n}var Ui,Bi,Fi,Oi=x((()=>{Dr(),Ui=dt()||{},Bi=0,Fi=[null,null,null,null,null]}));function qi(e){return-1!==Hi.indexOf(e.toLowerCase())}function ji(){var e=gt();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return ze()}function Vi(e,t){var n=null;return 0!==e&&0!==t&&!_e(e)&&!_e(t)&&(n=t-e),n}var Hi,zi,Wi,Ki,$i,Gi=x((()=>{Dr(),Ur(),Xr(),Yr(),fi(),di(),Ai(),Oi(),Hi=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],zi={NotSpecified:ci,createDomEvent:Jr,disableStorage:mi,isInternalApplicationInsightsEndpoint:qi,canUseLocalStorage:yi,getStorage:wi,setStorage:Ii,removeStorage:_i,canUseSessionStorage:xi,getSessionStorageKeys:bi,getSessionStorage:Ti,setSessionStorage:Ci,removeSessionStorage:Si,disableCookies:hr,canUseCookies:pr,disallowsSameSiteNone:Cn,setCookie:vr,stringToBoolOrDefault:Qr,getCookie:gr,deleteCookie:mr,trim:je,newId:lr,random32:function(){return Qn(!0)},generateW3CId:fr,isArray:Re,isError:Ne,isDate:Pe,toISOStringForIE8:Ue,getIEVersion:wt,msToTimeSpan:Zr,isCrossOriginError:ni,dump:It,getExceptionName:We,addEventHandler:Se,IsBeaconApiSupported:ei,getExtension:ti},Wi={parseUrl:Pi,getAbsoluteUrl:Ri,getPathName:Ni,getCompleteUrl:Li,parseHost:Mi,parseFullHost:Di},Ki={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var r=0;r<e.correlationHeaderExcludePatterns.length;r++)if(e.correlationHeaderExcludePatterns[r].test(t))return!1;var i=Pi(t).host.toLowerCase();if(i&&(-1!==i.indexOf(":443")||-1!==i.indexOf(":80"))&&(i=(Di(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var o,a=e&&e.correlationHeaderDomains;if(a&&(Be(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));o=o||t.test(i)})),!o))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s.length)return!0;for(r=0;r<s.length;r++)if(new RegExp(s[r].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1;return i&&i.length>0},getCorrelationContext:function(e){if(e){var t=Ki.getCorrelationContextValue(e,Lr.requestContextTargetKey);if(t&&t!==Ki.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var i=n[r].split("=");if(2===i.length&&i[0]===t)return i[1]}}},$i={Now:ji,GetDuration:Vi}}));function Xi(e){if(!e)return{};var t=qe(e.split(Ji),(function(e,t){var n=t.split(Yi);if(2===n.length){var r=n[0].toLowerCase(),i=n[1];e[r]=i}return e}),{});if(Ve(t).length>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t.ingestionendpoint=t.ingestionendpoint||"https://"+n+"dc."+t.endpointsuffix}t.ingestionendpoint=t.ingestionendpoint||si}return t}var Ji,Yi,Qi,Zi,eo,to,no,ro,io,oo,ao,so,co=x((()=>{di(),Dr(),Ji=";",Yi="=",Qi={parse:Xi}})),uo=x((()=>{Zi=function(){}})),lo=x((()=>{U(),uo(),eo=function(e){function t(){return e.call(this)||this}return P(t,e),t}(Zi)})),fo=x((()=>{to=function(){this.ver=1,this.sampleRate=100,this.tags={}}})),ho=x((()=>{U(),fo(),Xr(),Dr(),di(),no=function(e){function t(t,n,r){var i=e.call(this)||this;return i.name=Or(t,r)||ci,i.data=n,i.time=Ue(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===i.sampleRate?4:1},tags:1,data:1},i}return P(t,e),t}(to)})),po=x((()=>{ro=function(){this.ver=2,this.properties={},this.measurements={}}})),go=x((()=>{U(),po(),Xr(),di(),io=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.aiDataContract={ver:1,name:1,properties:0,measurements:0},o.name=Or(t,n)||ci,o.properties=Hr(t,r),o.measurements=zr(t,i),o}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(ro)})),vo=x((()=>{oo=function(){}})),mo=x((()=>{ao=function(){this.ver=2,this.exceptions=[],this.properties={},this.measurements={}}})),yo=x((()=>{so=function(){this.hasFullStack=!0,this.parsedStack=[]}}));function wo(e,t){var n=e;return n&&!Le(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),t&&(!n||"{}"===n)&&(n=Ce(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Io(e,t){var n=e;return e&&((n=e[Po]||e[Ro]||"")&&!Le(n)&&(n=wo(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"").indexOf(t)&&(n=t+": "+n),n||""}function _o(e){return e&&e.src&&Le(e.src)&&e.obj&&Re(e.obj)}function xo(e){var t=e||"";Le(t)||(t=Le(t[Eo])?t[Eo]:""+t);var n=t.split("\n");return{src:t,obj:n}}function bo(e){var t=null;if(e)try{if(e[Eo])t=xo(e[Eo]);else if(e[So]&&e[So][Eo])t=xo(e[So][Eo]);else if(e.exception&&e.exception[Eo])t=xo(e.exception[Eo]);else if(_o(e))t=e;else if(_o(e[ko]))t=e[ko];else if(window.opera&&e[Po])t=function(e){for(var t=[],n=e.split("\n"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message);else if(Le(e))t=xo(e);else{var n=e[Po]||e[Ro]||"";Le(e[Ao])&&(n&&(n+="\n"),n+=" from "+e[Ao]),n&&(t=xo(n))}}catch(e){t=xo(e)}return t||{src:"",obj:null}}function To(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(e){}return t}function Co(e){if(e)try{if(!Le(e)){var t=To(e),n=wo(e,!1);return(!n||"{}"===n)&&(e[So]&&(t=To(e=e[So])),n=wo(e,!0)),0!==n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var So,Eo,ko,Ao,Po,Ro,No,Lo,Mo,Do,Uo,Bo,Fo,Oo,qo,jo,Vo,Ho,zo,Wo,Ko,$o,Go,Xo,Jo,Yo=x((()=>{U(),vo(),mo(),yo(),Xr(),Dr(),di(),So="error",Eo="stack",ko="stackDetails",Ao="errorSrc",Po="message",Ro="description",No=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0},function(e){return!!Te(e)&&"ver"in e&&"exceptions"in e&&"properties"in e}(n)?(s.exceptions=n.exceptions,s.properties=n.properties,s.measurements=n.measurements,n.severityLevel&&(s.severityLevel=n.severityLevel),n.id&&(s.id=n.id),n.problemGroup&&(s.problemGroup=n.problemGroup),s.ver=2,_e(n.isManual)||(s.isManual=n.isManual)):(r||(r={}),s.exceptions=[new Lo(t,n,r)],s.properties=Hr(t,r),s.measurements=zr(t,i),o&&(s.severityLevel=o),a&&(s.id=a)),s}return P(t,e),t.CreateAutoException=function(e,t,n,r,i,o,a,s){var c=To(i||o||e);return{message:Io(e,c),url:t,lineNumber:n,columnNumber:r,error:Co(i||o||e),evt:Co(o||e),typeName:c,stackDetails:bo(a||i||o),errorSrc:s}},t.CreateFromInterface=function(e,n,r,i){var o=n.exceptions&&Oe(n.exceptions,(function(t){return Lo.CreateFromInterface(e,t)}));return new t(e,N({},n,{exceptions:o}),r,i)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&Oe(t,(function(e){return e.toInterface()}))||void 0,severityLevel:i,properties:n,measurements:r,problemGroup:o,id:a,isManual:s}},t.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=Co,t}(ao),Lo=function(e){function t(t,n,r){var i=e.call(this)||this;if(i.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2},function(e){return!!Te(e)&&"hasFullStack"in e&&"typeName"in e}(n))i.typeName=n.typeName,i.message=n.message,i[Eo]=n[Eo],i.parsedStack=n.parsedStack,i.hasFullStack=n.hasFullStack;else{var o=n,a=o&&o.evt;Ne(o)||(o=o[So]||a||o),i.typeName=Or(t,To(o))||ci,i.message=jr(t,Io(n||o,i.typeName))||ci;var s=n[ko]||bo(n);i.parsedStack=function(e){var t,n=e.obj;if(n&&n.length>0){t=[];var r=0,i=0;if(Be(n,(function(e){var n=e.toString();if(Mo.regex.test(n)){var o=new Mo(n,r++);i+=o.sizeInBytes,t.push(o)}})),i>32768)for(var o=0,a=t.length-1,s=0,c=o,u=a;o<a;){if((s+=t[o].sizeInBytes+t[a].sizeInBytes)>32768){var l=u-c+1;t.splice(c,l);break}c=o,u=a,o++,a--}}return t}(s),i[Eo]=Vr(t,function(e){var t="";return e&&(e.obj?Be(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(s)),i.hasFullStack=Re(i.parsedStack)&&i.parsedStack.length>0,r&&(r.typeName=r.typeName||i.typeName)}return i}return P(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&Oe(this.parsedStack,(function(e){return e.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this[Eo],parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&Oe(n.parsedStack,(function(e){return Mo.CreateFromInterface(e)}))||n.parsedStack;return new t(e,N({},n,{parsedStack:r}))},t}(so),Mo=function(e){function t(n,r){var i=e.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0},"string"==typeof n){var o=n;i.level=r,i.method="<no_method>",i.assembly=je(o),i.fileName="",i.line=0;var a=o.match(t.regex);a&&a.length>=5&&(i.method=je(a[2])||i.method,i.fileName=je(a[4]),i.line=parseInt(a[5])||0)}else i.level=n.level,i.method=n.method,i.assembly=n.assembly,i.fileName=n.fileName,i.line=n.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=t.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return P(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(oo)})),Qo=x((()=>{Do=function(){this.ver=2,this.metrics=[],this.properties={},this.measurements={}}})),Zo=x((()=>{var e;(e=Uo||(Uo={}))[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"})),ea=x((()=>{Zo(),Bo=function(){this.kind=Uo.Measurement}})),ta=x((()=>{U(),ea(),Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},t}return P(t,e),t}(Bo)})),na=x((()=>{U(),Qo(),Xr(),ta(),di(),Oo=function(e){function t(t,n,r,i,o,a,s,c){var u=e.call(this)||this;u.aiDataContract={ver:1,metrics:1,properties:0};var l=new Fo;return l.count=i>0?i:void 0,l.max=isNaN(a)||null===a?void 0:a,l.min=isNaN(o)||null===o?void 0:o,l.name=Or(t,n)||ci,l.value=r,u.metrics=[l],u.properties=Hr(t,s),u.measurements=zr(t,c),u}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(Do)})),ra=x((()=>{U(),po(),qo=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return P(t,e),t}(ro)})),ia=x((()=>{U(),ra(),Xr(),fi(),di(),jo=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0},c.id=Wr(t,s),c.url=qr(t,r),c.name=Or(t,n)||ci,isNaN(i)||(c.duration=Zr(i)),c.properties=Hr(t,o),c.measurements=zr(t,a),c}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(qo)})),oa=x((()=>{Vo=function(){this.ver=2,this.success=!0,this.properties={},this.measurements={}}})),aa=x((()=>{U(),Xr(),Gi(),oa(),fi(),Ho=function(e){function t(t,n,r,i,o,a,s,c,u,l,f,d){void 0===u&&(u="Ajax");var h=e.call(this)||this;h.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0},h.id=n,h.duration=Zr(o),h.success=a,h.resultCode=s+"",h.type=Or(t,u);var p=function(e,t,n,r){var i,o=r,a=r;if(t&&t.length>0){var s=Pi(t);if(i=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Or(e,n?n+" "+c:c)}else o=Or(e,t)}else i=r,o=r;return{target:i,name:o,data:a}}(t,r,c,i);return h.data=qr(t,i)||p.data,h.target=Or(t,p.target),l&&(h.target=h.target+" | "+l),h.name=Or(t,p.name),h.properties=Hr(t,f),h.measurements=zr(t,d),h}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(Vo)})),sa=x((()=>{zo=function(){this.ver=2,this.properties={},this.measurements={}}})),ca=x((()=>{U(),sa(),Xr(),di(),Wo=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.aiDataContract={ver:1,message:1,severityLevel:0,properties:0},n=n||ci,a.message=jr(t,n),a.properties=Hr(t,i),a.measurements=zr(t,o),r&&(a.severityLevel=r),a}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(zo)})),ua=x((()=>{U(),ra(),Ko=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return P(t,e),t}(qo)})),la=x((()=>{U(),ua(),Xr(),di(),$o=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0},c.url=qr(t,r),c.name=Or(t,n)||ci,c.properties=Hr(t,o),c.measurements=zr(t,a),s&&(c.domProcessing=s.domProcessing,c.duration=s.duration,c.networkConnect=s.networkConnect,c.perfTotal=s.perfTotal,c.receivedResponse=s.receivedResponse,c.sentRequest=s.sentRequest),c}return P(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(Ko)})),fa=x((()=>{U(),lo(),Go=function(e){function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:1,baseData:1},r.baseType=t,r.baseData=n,r}return P(t,e),t}(eo)})),da=x((()=>{var e;(e=Xo||(Xo={}))[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"})),ha=x((()=>{Dr(),Jo=function(){function e(){}return e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e.extensionConfig&&e.extensionConfig[n]&&!_e(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],_e(i)?r:i},e}()}));function pa(e){var t="ai."+e+".";return function(e){return t+e}}var ga,va,ma,ya,wa,Ia,_a,xa,ba,Ta,Ca,Sa,Ea,ka,Aa,Pa,Ra,Na,La,Ma=x((()=>{var e;U(),Dr(),ga=pa("application"),va=pa("device"),ma=pa("location"),ya=pa("operation"),wa=pa("session"),Ia=pa("user"),_a=pa("cloud"),xa=pa("internal"),ba=function(e){function t(){return e.call(this)||this}return P(t,e),t}((e={applicationVersion:ga("ver"),applicationBuild:ga("build"),applicationTypeId:ga("typeId"),applicationId:ga("applicationId"),applicationLayer:ga("layer"),deviceId:va("id"),deviceIp:va("ip"),deviceLanguage:va("language"),deviceLocale:va("locale"),deviceModel:va("model"),deviceFriendlyName:va("friendlyName"),deviceNetwork:va("network"),deviceNetworkName:va("networkName"),deviceOEMName:va("oemName"),deviceOS:va("os"),deviceOSVersion:va("osVersion"),deviceRoleInstance:va("roleInstance"),deviceRoleName:va("roleName"),deviceScreenResolution:va("screenResolution"),deviceType:va("type"),deviceMachineName:va("machineName"),deviceVMName:va("vmName"),deviceBrowser:va("browser"),deviceBrowserVersion:va("browserVersion"),locationIp:ma("ip"),locationCountry:ma("country"),locationProvince:ma("province"),locationCity:ma("city"),operationId:ya("id"),operationName:ya("name"),operationParentId:ya("parentId"),operationRootId:ya("rootId"),operationSyntheticSource:ya("syntheticSource"),operationCorrelationVector:ya("correlationVector"),sessionId:wa("id"),sessionIsFirst:wa("isFirst"),sessionIsNew:wa("isNew"),userAccountAcquisitionDate:Ia("accountAcquisitionDate"),userAccountId:Ia("accountId"),userAgent:Ia("userAgent"),userId:Ia("id"),userStoreRegion:Ia("storeRegion"),userAuthUserId:Ia("authUserId"),userAnonymousUserAcquisitionDate:Ia("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Ia("authUserAcquisitionDate"),cloudName:_a("name"),cloudRole:_a("role"),cloudRoleVer:_a("roleVer"),cloudRoleInstance:_a("roleInstance"),cloudEnvironment:_a("environment"),cloudLocation:_a("location"),cloudDeploymentUnit:_a("deploymentUnit"),internalNodeName:xa("nodeName"),internalSdkVersion:xa("sdkVersion"),internalAgentVersion:xa("agentVersion"),internalSnippet:xa("snippet"),internalSdkSrc:xa("sdkSrc")},function(){var t=this;e&&ke(e,(function(e,n){t[e]=n}))}))})),Da=x((()=>{Xr(),Dr(),di(),Ta=function(){function e(){}return e.create=function(e,t,n,r,i,o){if(n=Or(r,n)||ci,_e(e)||_e(t)||_e(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:Ue(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return _e(i)||ke(i,(function(e,t){a.data[e]=t})),a},e}()})),Ua=x((()=>{Ma(),Ca={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},Sa=new ba})),Ba=x((()=>{Gi(),co(),Ur(),di(),lo(),uo(),ho(),go(),Yo(),na(),ia(),ra(),aa(),ca(),la(),fa(),da(),ha(),Ma(),Xr(),Da(),Ua(),hi(),fi(),Yr(),Ai(),Oi(),Ea="AppInsightsPropertiesPlugin",ka="AppInsightsChannelPlugin",Aa="ApplicationInsightsAnalytics"})),Fa=x((()=>{Ba(),Dr(),ve(),Pa=function e(t,n,r,i){he(e,this,(function(e){var o,a=null,s=[],c=!1;function u(){r&&Be(r.getTransmissionControls(),(function(e){Be(e,(function(e){return e.flush(!0)}))}))}r&&(o=r.logger),e.trackPageView=function(e,r){var l=e.name;if(_e(l)||"string"!=typeof l){var f=dt();l=e.name=f&&f.title||""}var d=e.uri;if(_e(d)||"string"!=typeof d){var h=pt();d=e.uri=h&&h.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),u(),void o.throwInternal(pe.WARNING,ge.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var p,g,v=!1,m=i.getPerformanceTiming().navigationStart;m>0&&(p=Vi(m,+new Date),i.shouldCollectDuration(p)||(p=void 0)),!_e(r)&&!_e(r.duration)&&(g=r.duration),(n||!isNaN(g))&&(isNaN(g)&&(r||(r={}),r.duration=p),t.sendPageViewInternal(e,r),u(),v=!0),r||(r={}),function(e){s.push(e),a||(a=setInterval((function(){var e=s.slice(0),t=!1;s=[],Be(e,(function(e){e()?t=!0:s.push(e)})),0===s.length&&(clearInterval(a),a=null),t&&u()}),100))}((function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var a={name:l,uri:d};i.populatePageViewPerformanceEvent(a),a.isValid||v?(v||(r.duration=a.durationMs,t.sendPageViewInternal(e,r)),c||(t.sendPageViewPerformanceInternal(a,r),c=!0)):(r.duration=p,t.sendPageViewInternal(e,r))}else m>0&&Vi(m,+new Date)>6e4&&(n=!0,v||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(e){o.throwInternal(pe.CRITICAL,ge.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+We(e),{exception:It(e)})}return n}))}}))}})),Oa=x((()=>{Ba(),Dr(),Ra=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+It(e))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(e){return this._logger.warnToConsole("Call to restart failed: "+It(e)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(xi()){null!=Ti(this._logger,this.prevPageVisitDataKeyName)&&Je("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Na(e,t),r=mt().stringify(n);Ci(this._logger,this.prevPageVisitDataKeyName,r)}}catch(e){this._logger.warnToConsole("Call to start failed: "+It(e))}},e.prototype.stopPageVisitTimer=function(){try{if(xi()){var e=ze(),t=Ti(this._logger,this.prevPageVisitDataKeyName);if(t&&vt()){var n=mt().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Si(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+It(e)),null}},e}(),Na=function(e,t){this.pageVisitStartTime=ze(),this.pageName=e,this.pageUrl=t}})),qa=x((()=>{Ba(),Dr(),La=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming(),r=0,i=0,o=0,a=0,s=0;(t||n)&&(t?(r=t.duration,i=0===t.startTime?t.connectEnd:Vi(t.startTime,t.connectEnd),o=Vi(t.requestStart,t.responseStart),a=Vi(t.responseStart,t.responseEnd),s=Vi(t.responseEnd,t.loadEventEnd)):(r=Vi(n.navigationStart,n.loadEventEnd),i=Vi(n.navigationStart,n.connectEnd),o=Vi(n.requestStart,n.responseStart),a=Vi(n.responseStart,n.responseEnd),s=Vi(n.responseEnd,n.loadEventEnd)),0===r?this._logger.throwInternal(pe.WARNING,ge.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:o,response:a,dom:s}):this.shouldCollectDuration(r,i,o,a,s)?r<Math.floor(i)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(pe.WARNING,ge.ClientPerformanceMathError,"client performance math error.",{total:r,network:i,request:o,response:a,dom:s}):(e.durationMs=r,e.perfTotal=e.duration=Zr(r),e.networkConnect=Zr(i),e.sentRequest=Zr(o),e.receivedResponse=Zr(a),e.domProcessing=Zr(s),e.isValid=!0):this._logger.throwInternal(pe.WARNING,ge.InvalidDurationValue,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:i,request:o,response:a,dom:s}))},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?gt().timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?gt().getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){var e=gt();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){var e=gt();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=gt(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ht()||{},r=["googlebot","adsbot-google","apis-google","mediapartners-google"],i=n.userAgent,o=!1;if(i)for(var a=0;a<r.length;a++)o=o||-1!==i.toLowerCase().indexOf(r[a]);if(o)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}()}));function ja(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var Va,Ha,za,Wa,Ka,$a,Ga=x((()=>{U(),Ba(),Dr(),Fa(),Oa(),qa(),ve(),Va="duration",Ha="event",za=function(e){function t(){var n,r,i,a,s,c=e.call(this)||this;return c.identifier=Aa,c.priority=180,c.autoRoutePVDelay=500,he(t,c,(function(e,u){var l=pt(!0);a=l&&l.href||"",e.getCookieMgr=function(){return mn(e.core)},e.processTelemetry=function(t,n){Ht(e.core,(function(){return e.identifier+":processTelemetry"}),(function(){var r=!1,i=e._telemetryInitializers.length;n=e._getTelCtx(n);for(var o=0;o<i;++o){var a=e._telemetryInitializers[o];if(a)try{if(!1===a.apply(null,[t])){r=!0;break}}catch(e){n.diagLog().throwInternal(pe.CRITICAL,ge.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+We(e),{exception:It(e)},!0)}}r||e.processNext(t,n)}),(function(){return{item:t}}),!t.sync)},e.trackEvent=function(t,n){try{var r=Ta.create(t,io.dataType,io.envelopeType,e.diagLog(),n);e.core.track(r)}catch(t){e.diagLog().throwInternal(pe.WARNING,ge.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+We(t),{exception:It(t)})}},e.startTrackEvent=function(t){try{n.start(t)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.StartTrackEventFailed,"startTrackEvent failed, event will not be collected: "+We(t),{exception:It(t)})}},e.stopTrackEvent=function(t,r,i){try{n.stop(t,void 0,r)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.StopTrackEventFailed,"stopTrackEvent failed, event will not be collected: "+We(t),{exception:It(t)})}},e.trackTrace=function(t,n){try{var r=Ta.create(t,Wo.dataType,Wo.envelopeType,e.diagLog(),n);e.core.track(r)}catch(t){e.diagLog().throwInternal(pe.WARNING,ge.TrackTraceFailed,"trackTrace failed, trace will not be collected: "+We(t),{exception:It(t)})}},e.trackMetric=function(t,n){try{var r=Ta.create(t,Oo.dataType,Oo.envelopeType,e.diagLog(),n);e.core.track(r)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.TrackMetricFailed,"trackMetric failed, metric will not be collected: "+We(t),{exception:It(t)})}},e.trackPageView=function(t,n){try{var r=t||{};e._pageViewManager.trackPageView(r,N({},r.properties,r.measurements,n)),e.config.autoTrackPageVisitTime&&e._pageVisitTimeManager.trackPreviousPageVisit(r.name,r.uri)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.TrackPVFailed,"trackPageView failed, page view will not be collected: "+We(t),{exception:It(t)})}},e.sendPageViewInternal=function(t,n,r){var i=dt();i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri);var o=Ta.create(t,jo.dataType,jo.envelopeType,e.diagLog(),n,r);e.core.track(o)},e.sendPageViewPerformanceInternal=function(t,n,r){var i=Ta.create(t,$o.dataType,$o.envelopeType,e.diagLog(),n,r);e.core.track(i)},e.trackPageViewPerformance=function(t,n){try{e._pageViewPerformanceManager.populatePageViewPerformanceEvent(t),e.sendPageViewPerformanceInternal(t,n)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.TrackPVFailed,"trackPageViewPerformance failed, page view will not be collected: "+We(t),{exception:It(t)})}},e.startTrackPage=function(t){try{if("string"!=typeof t){var n=dt();t=n&&n.title||""}r.start(t)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.StartTrackFailed,"startTrackPage failed, page view may not be collected: "+We(t),{exception:It(t)})}},e.stopTrackPage=function(t,n,i,o){try{if("string"!=typeof t){var a=dt();t=a&&a.title||""}if("string"!=typeof n){var s=pt();n=s&&s.href||""}r.stop(t,n,i,o),e.config.autoTrackPageVisitTime&&e._pageVisitTimeManager.trackPreviousPageVisit(t,n)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.StopTrackFailed,"stopTrackPage failed, page view will not be collected: "+We(t),{exception:It(t)})}},e.sendExceptionInternal=function(t,n,r){var i=t.exception||t.error||new Error(ci),o=new No(e.diagLog(),i,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),a=Ta.create(o,No.dataType,No.envelopeType,e.diagLog(),n,r);e.core.track(a)},e.trackException=function(t,n){try{e.sendExceptionInternal(t,n)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.TrackExceptionFailed,"trackException failed, exception will not be collected: "+We(t),{exception:It(t)})}},e._onerror=function(t){var n=t&&t.error,r=t&&t.evt;try{if(!r){var i=lt();i&&(r=i[Ha])}var o=t&&t.url||(dt()||{}).URL,a=t.errorSrc||"window.onerror@"+o+":"+(t.lineNumber||0)+":"+(t.columnNumber||0),s={errorSrc:a,url:o,lineNumber:t.lineNumber||0,columnNumber:t.columnNumber||0,message:t.message};ni(t.message,t.url,t.lineNumber,t.columnNumber,t.error)?function(t,n){var r=Ta.create(t,No.dataType,No.envelopeType,e.diagLog(),n);e.core.track(r)}(No.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",o,t.lineNumber||0,t.columnNumber||0,n,r,null,a),s):(t.errorSrc||(t.errorSrc=a),e.trackException({exception:t,severityLevel:Xo.Error},s))}catch(t){var c=n?n.name+", "+n.message:"null";e.diagLog().throwInternal(pe.CRITICAL,ge.ExceptionWhileLoggingError,"_onError threw exception while logging error, error will not be collected: "+We(t),{exception:It(t),errorString:c})}},e.addTelemetryInitializer=function(t){e._telemetryInitializers.push(t)},e.initialize=function(l,f,d,h){if(!e.isInitialized()){if(_e(f))throw Error("Error initializing");u.initialize(l,f,d,h),e.setInitialized(!1);var p=e._getTelCtx(),g=e.identifier;e.config=p.getExtCfg(g);var v=t.getDefaultConfig(l);void 0!==v&&ke(v,(function(t,n){e.config[t]=p.getConfig(g,t,n),void 0===e.config[t]&&(e.config[t]=n)})),e.config.isStorageUseDisabled&&mi();var m={instrumentationKey:function(){return l.instrumentationKey},accountId:function(){return e.config.accountId||l.accountId},sessionRenewalMs:function(){return e.config.sessionRenewalMs||l.sessionRenewalMs},sessionExpirationMs:function(){return e.config.sessionExpirationMs||l.sessionExpirationMs},sampleRate:function(){return e.config.samplingPercentage||l.samplingPercentage},sdkExtension:function(){return e.config.sdkExtension||l.sdkExtension},isBrowserLinkTrackingEnabled:function(){return e.config.isBrowserLinkTrackingEnabled||l.isBrowserLinkTrackingEnabled},appId:function(){return e.config.appId||l.appId}};e._pageViewPerformanceManager=new La(e.core),e._pageViewManager=new Pa(c,e.config.overridePageViewDuration,e.core,e._pageViewPerformanceManager),e._pageVisitTimeManager=new Ra(e.diagLog(),(function(t,n,r){return function(t,n,r){var i={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},i)}(t,n,r)})),e._telemetryInitializers=e._telemetryInitializers||[],function(t){if(!t.isBrowserLinkTrackingEnabled()){var n=["/browserLinkSignalR/","/__browserLink/"];e._telemetryInitializers.push((function(e){if(e.baseType===Ho.dataType){var t=e.baseData;if(t)for(var r=0;r<n.length;r++)if(t.target&&t.target.indexOf(n[r])>=0)return!1}return!0}))}}(m),(n=new Wa(e.diagLog(),"trackEvent")).action=function(t,n,r,i){i||(i={}),i[Va]=r.toString(),e.trackEvent({name:t,properties:i})},(r=new Wa(e.diagLog(),"trackPageView")).action=function(t,n,r,i,o){_e(i)&&(i={}),i[Va]=r.toString();var a={name:t,uri:n,properties:i,measurements:o};e.sendPageViewInternal(a,i)};var y=lt(),w=Boolean(typeof history===o&&history)?history:ct(Tt),I=pt(!0),_=c;if(!1===e.config.disableExceptionTracking&&!e.config.autoExceptionInstrumented&&y){var x=y.onerror;y.onerror=function(e,t,n,r,i){var o=y[Ha],a=x&&x(e,t,n,r,i);return!0!==a&&_._onerror(No.CreateAutoException(e,t,n,r,i,o)),a},e.config.autoExceptionInstrumented=!0}if(!1===e.config.disableExceptionTracking&&!0===e.config.enableUnhandledPromiseRejectionTracking&&!e.config.autoUnhandledPromiseInstrumented&&y){var b="onunhandledrejection",T=y[b];y[b]=function(e){var t=y[Ha],n=T&&T.call(y,e);return!0!==n&&_._onerror(No.CreateAutoException(e.reason.toString(),I?I.href:"",0,0,e,t)),n},e.config.autoUnhandledPromiseInstrumented=!0}if(!0===e.config.enableAutoRouteTracking&&w&&Ce(w.pushState)&&Ce(w.replaceState)&&y&&"undefined"!=typeof Event){var C=c;Be(d,(function(e){e.identifier===Ea&&(i=e)})),w.pushState=(S=w.pushState,function(){var e=S.apply(this,arguments);return ja(y,Jr(C.config.namePrefix+"pushState")),ja(y,Jr(C.config.namePrefix+"locationchange")),e}),w.replaceState=function(e){return function(){var t=e.apply(this,arguments);return ja(y,Jr(C.config.namePrefix+"replaceState")),ja(y,Jr(C.config.namePrefix+"locationchange")),t}}(w.replaceState),y.addEventListener&&(y.addEventListener(C.config.namePrefix+"popstate",(function(){ja(y,Jr(C.config.namePrefix+"locationchange"))})),y.addEventListener(C.config.namePrefix+"locationchange",(function(){if(i&&i.context&&i.context.telemetryTrace){i.context.telemetryTrace.traceID=fr();var e="_unknown_";I&&I.pathname&&(e=I.pathname+(I.hash||"")),i.context.telemetryTrace.name=e}s&&(a=s),s=I&&I.href||"",setTimeout(function(e){C.trackPageView({refUri:e,properties:{duration:0}})}.bind(c,a),C.autoRoutePVDelay)})))}e.setInitialized(!0)}var S}})),c}return P(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=Qr(e.disableExceptionTracking),e.autoTrackPageVisitTime=Qr(e.autoTrackPageVisitTime),e.overridePageViewDuration=Qr(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=Qr(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=Qr(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=Qr(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=Qr(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=Qr(e.enableDebug),e.disableFlushOnBeforeUnload=Qr(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=Qr(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e},t.Version="2.6.4",t}(tn),Wa=function(e,t){var n=this,r={};n.start=function(t){void 0!==r[t]&&e.throwInternal(pe.WARNING,ge.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),r[t]=+new Date},n.stop=function(t,i,o,a){var s=r[t];if(isNaN(s))e.throwInternal(pe.WARNING,ge.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var c=Vi(s,+new Date);n.action(t,i,c,o,a)}delete r[t],r[t]=void 0}}})),Xa=x((()=>{Ga()})),Ja=x((()=>{Ba(),Dr(),ve(),Ka=function e(t){var n=[];he(e,this,(function(e){e.enqueue=function(e){n.push(e)},e.count=function(){return n.length},e.clear=function(){n.length=0},e.getItems=function(){return n.slice(0)},e.batchPayloads=function(e){return e&&e.length>0?t.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.markAsSent=function(t){e.clear()},e.clearSent=function(e){}}))},$a=function(){function e(t,n){var r,i=!1;he(e,this,(function(o){var a=u(e.BUFFER_KEY),s=u(e.SENT_BUFFER_KEY);function c(e,t){var n=[];return Be(t,(function(t){!Ce(t)&&-1===Fe(e,t)&&n.push(t)})),n}function u(e){var r=e;try{r=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+r:r;var i=Ti(t,r);if(i){var o=mt().parse(i);if(Le(o)&&(o=mt().parse(o)),o&&Re(o))return o}}catch(e){t.throwInternal(pe.CRITICAL,ge.FailedToRestoreStorageBuffer," storage key: "+r+", "+We(e),{exception:It(e)})}return[]}function l(e,r){var i=e;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var o=JSON.stringify(r);Ci(t,i,o)}catch(e){Ci(t,i,JSON.stringify([])),t.throwInternal(pe.WARNING,ge.FailedToSetStorageBuffer," storage key: "+i+", "+We(e)+". Buffer cleared",{exception:It(e)})}}(r=a.concat(s)).length>e.MAX_BUFFER_SIZE&&(r.length=e.MAX_BUFFER_SIZE),l(e.SENT_BUFFER_KEY,[]),l(e.BUFFER_KEY,r),o.enqueue=function(n){r.length>=e.MAX_BUFFER_SIZE?i||(t.throwInternal(pe.WARNING,ge.SessionStorageBufferFull,"Maximum buffer size reached: "+r.length,!0),i=!0):(r.push(n),l(e.BUFFER_KEY,r))},o.count=function(){return r.length},o.clear=function(){r=[],l(e.BUFFER_KEY,[]),l(e.SENT_BUFFER_KEY,[]),i=!1},o.getItems=function(){return r.slice(0)},o.batchPayloads=function(e){return e&&e.length>0?n.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},o.markAsSent=function(n){r=c(n,r),l(e.BUFFER_KEY,r);var i=u(e.SENT_BUFFER_KEY);i instanceof Array&&n instanceof Array&&((i=i.concat(n)).length>e.MAX_BUFFER_SIZE&&(t.throwInternal(pe.CRITICAL,ge.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+i.length,!0),i.length=e.MAX_BUFFER_SIZE),l(e.SENT_BUFFER_KEY,i))},o.clearSent=function(t){var n=u(e.SENT_BUFFER_KEY);n=c(t,n),l(e.SENT_BUFFER_KEY,n)}}))}return e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}()}));function Ya(e,t,n){return Ke(e,t,n,Xe)}var Qa,Za,es,ts,ns,rs,is,os,as,ss,cs,us,ls,fs,ds,hs,ps,gs,vs=x((()=>{U(),Ba(),Dr(),Qa="baseType",Za="baseData",es="properties",ts="true",ns=function(){function e(){}return e.extractPropsAndMeasurements=function(e,t,n){_e(e)||ke(e,(function(e,r){Me(r)?n[e]=r:Le(r)?t[e]=r:vt()&&(t[e]=mt().stringify(r))}))},e.createEnvelope=function(t,n,r,i){var o=new no(t,i,n);Ya(o,"sampleRate",r[ii]),(r[Za]||{}).startTime&&(o.time=Ue(r[Za].startTime)),o.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return o.name=o.name.replace("{0}",a),e.extractPartAExtensions(r,o),r.tags=r.tags||[],Qe(o)},e.extractPartAExtensions=function(t,n){var r=n.tags=n.tags||{},i=t.ext=t.ext||{},o=t.tags=t.tags||[],a=i.user;a&&(Ya(r,Sa.userAuthUserId,a.authId),Ya(r,Sa.userId,a.id||a.localId));var s=i.app;s&&Ya(r,Sa.sessionId,s.sesId);var c=i.device;c&&(Ya(r,Sa.deviceId,c.id||c.localId),Ya(r,Sa.deviceType,c.deviceClass),Ya(r,Sa.deviceIp,c.ip),Ya(r,Sa.deviceModel,c.model),Ya(r,Sa.deviceType,c.deviceType));var u=t.ext.web;if(u){Ya(r,Sa.deviceLanguage,u.browserLang),Ya(r,Sa.deviceBrowserVersion,u.browserVer),Ya(r,Sa.deviceBrowser,u.browser);var l=n.data=n.data||{},f=l[Za]=l[Za]||{},d=f[es]=f[es]||{};Ya(d,"domain",u.domain),Ya(d,"isManual",u.isManual?ts:null),Ya(d,"screenRes",u.screenRes),Ya(d,"userConsent",u.userConsent?ts:null)}var h=i.os;h&&Ya(r,Sa.deviceOS,h.name);var p=i.trace;p&&(Ya(r,Sa.operationParentId,p.parentID),Ya(r,Sa.operationName,p.name),Ya(r,Sa.operationId,p.traceID));for(var g={},v=o.length-1;v>=0;v--)ke(o[v],(function(e,t){g[e]=t})),o.splice(v,1);ke(o,(function(e,t){g[e]=t}));var m=N({},r,g);m[Sa.internalSdkVersion]||(m[Sa.internalSdkVersion]="javascript:"+e.Version),n.tags=Qe(m)},e.prototype.Init=function(e,t){this._logger=e,_e(t[Za])&&this._logger.throwInternal(pe.CRITICAL,ge.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")},e.Version="2.6.4",e}(),rs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Za].measurements||{},i=n[Za][es]||{};ns.extractPropsAndMeasurements(n.data,i,r);var o=n[Za];if(_e(o))return t.warnToConsole("Invalid input for dependency data"),null;var a=o[es]&&o[es][ai]?o[es][ai]:"GET",s=new Ho(t,o.id,o.target,o.name,o.duration,o.success,o.responseCode,a,o.type,o.correlationContext,i,r),c=new Go(Ho.dataType,s);return ns.createEnvelope(t,Ho.envelopeType,n,c)},t.DependencyEnvelopeCreator=new t,t}(ns),is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r={},i={};n[Qa]!==io.dataType&&(r.baseTypeSource=n[Qa]),n[Qa]===io.dataType?(r=n[Za][es]||{},i=n[Za].measurements||{}):n[Za]&&ns.extractPropsAndMeasurements(n[Za],r,i),ns.extractPropsAndMeasurements(n.data,r,i);var o=n[Za].name,a=new io(t,o,r,i),s=new Go(io.dataType,a);return ns.createEnvelope(t,io.envelopeType,n,s)},t.EventEnvelopeCreator=new t,t}(ns),os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Za].measurements||{},i=n[Za][es]||{};ns.extractPropsAndMeasurements(n.data,i,r);var o=n[Za],a=No.CreateFromInterface(t,o,i,r),s=new Go(No.dataType,a);return ns.createEnvelope(t,No.envelopeType,n,s)},t.ExceptionEnvelopeCreator=new t,t}(ns),as=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Za],i=r[es]||{},o=r.measurements||{};ns.extractPropsAndMeasurements(n.data,i,o);var a=new Oo(t,r.name,r.average,r.sampleCount,r.min,r.max,i,o),s=new Go(Oo.dataType,a);return ns.createEnvelope(t,Oo.envelopeType,n,s)},t.MetricEnvelopeCreator=new t,t}(ns),ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r,i="duration",o=n[Za];_e(o)||_e(o[es])||_e(o[es][i])?!_e(n.data)&&!_e(n.data[i])&&(r=n.data[i],delete n.data[i]):(r=o[es][i],delete o[es][i]);var a,s=n[Za];((n.ext||{}).trace||{}).traceID&&(a=n.ext.trace.traceID);var c=s.id||a,u=s.name,l=s.uri,f=s[es]||{},d=s.measurements||{};_e(s.refUri)||(f.refUri=s.refUri),_e(s.pageType)||(f.pageType=s.pageType),_e(s.isLoggedIn)||(f.isLoggedIn=s.isLoggedIn.toString()),_e(s[es])||ke(s[es],(function(e,t){f[e]=t})),ns.extractPropsAndMeasurements(n.data,f,d);var h=new jo(t,u,l,r,f,d,c),p=new Go(jo.dataType,h);return ns.createEnvelope(t,jo.envelopeType,n,p)},t.PageViewEnvelopeCreator=new t,t}(ns),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Za],i=r.name,o=r.uri||r.url,a=r[es]||{},s=r.measurements||{};ns.extractPropsAndMeasurements(n.data,a,s);var c=new $o(t,i,o,void 0,a,s,r),u=new Go($o.dataType,c);return ns.createEnvelope(t,$o.envelopeType,n,u)},t.PageViewPerformanceEnvelopeCreator=new t,t}(ns),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.Create=function(t,n){e.prototype.Init.call(this,t,n);var r=n[Za].message,i=n[Za].severityLevel,o=n[Za][es]||{},a=n[Za].measurements||{};ns.extractPropsAndMeasurements(n.data,o,a);var s=new Wo(t,r,i,o,a),c=new Go(Wo.dataType,s);return ns.createEnvelope(t,Wo.envelopeType,n,c)},t.TraceEnvelopeCreator=new t,t}(ns)})),ms=x((()=>{Dr(),ve(),ls=function e(t){he(e,this,(function(e){function n(e,o){var a="__aiCircularRefCheck",s={};if(!e)return t.throwInternal(pe.CRITICAL,ge.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:o},!0),s;if(e[a])return t.throwInternal(pe.WARNING,ge.CircularReferenceDetected,"Circular reference detected while serializing object",{name:o},!0),s;if(!e.aiDataContract){if("measurements"===o)s=i(e,"number",o);else if("properties"===o)s=i(e,"string",o);else if("tags"===o)s=i(e,"string",o);else if(Re(e))s=r(e,o);else{t.throwInternal(pe.WARNING,ge.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{mt().stringify(e),s=e}catch(e){t.throwInternal(pe.CRITICAL,ge.CannotSerializeObject,e&&Ce(e.toString)?e.toString():"Error serializing object",null,!0)}}return s}return e[a]=!0,ke(e.aiDataContract,(function(i,a){var c=Ce(a)?1&a():1&a,u=Ce(a)?4&a():4&a,l=2&a,f=void 0!==e[i],d=Te(e[i])&&null!==e[i];if(!c||f||l){if(!u){var h;void 0!==(h=d?l?r(e[i],i):n(e[i],i):e[i])&&(s[i]=h)}}else t.throwInternal(pe.CRITICAL,ge.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:i,name:o})})),delete e[a],s}function r(e,r){var i;if(e)if(Re(e)){i=[];for(var o=0;o<e.length;o++){var a=n(e[o],r+"["+o+"]");i.push(a)}}else t.throwInternal(pe.CRITICAL,ge.ItemNotInArray,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:r},!0);return i}function i(e,n,r){var i;return e&&(i={},ke(e,(function(e,o){if("string"===n)void 0===o?i[e]="undefined":null===o?i[e]="null":o.toString?i[e]=o.toString():i[e]="invalid field: toString() is not defined.";else if("number"===n)if(void 0===o)i[e]="undefined";else if(null===o)i[e]="null";else{var a=parseFloat(o);isNaN(a)?i[e]="NaN":i[e]=a}else i[e]="invalid field: "+r+" is of unknown type.",t.throwInternal(pe.CRITICAL,i[e],null,!0)}))),i}e.serialize=function(e){var r=n(e,"root");try{return mt().stringify(r)}catch(e){t.throwInternal(pe.CRITICAL,ge.CannotSerializeObject,e&&Ce(e.toString)?e.toString():"Error serializing object",null,!0)}}}))}})),ys=x((()=>{Dr(),ve(),fs=function(){function e(){var t=lt(),n=dt(),r=!1,i=!0;he(e,this,(function(e){try{if(t&&xr.Attach(t,"online",s)&&(xr.Attach(t,"offline",c),r=!0),n){var o=n.body||n;Ie(o.ononline)||(o.ononline=s,o.onoffline=c,r=!0)}if(r){var a=ht();a&&!_e(a.onLine)&&(i=a.onLine)}}catch(e){r=!1}function s(){i=!0}function c(){i=!1}e.isListening=r,e.isOnline=function(){var e=!0,t=ht();return r?e=i:t&&!_e(t.onLine)&&(e=t.onLine),e},e.isOffline=function(){return!e.isOnline()}}))}return e.Offline=new e,e}(),ds=fs.Offline})),ws=x((()=>{hs=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(t){if(""===t)return 0;for(;t.length<e.MIN_INPUT_LENGTH;)t=t.concat(t);for(var n=5381,r=0;r<t.length;++r)n=(n<<5)+n+t.charCodeAt(r),n&=n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e.MIN_INPUT_LENGTH=8,e}()})),Is=x((()=>{ws(),Ba(),ps=function(){function e(){this.hashCodeGeneragor=new hs,this.keys=new ba}return e.prototype.getSamplingScore=function(e){return e.tags&&e.tags[this.keys.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.userId]):e.ext&&e.ext.user&&e.ext.user.id?this.hashCodeGeneragor.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[this.keys.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?this.hashCodeGeneragor.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()},e}()})),_s=x((()=>{Is(),Ba(),Dr(),gs=function(){function e(e,t){this.INT_MAX_VALUE=2147483647,this._logger=t||Ot(null),(e>100||e<0)&&(this._logger.throwInternal(pe.WARNING,ge.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new ps}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||e.baseType===Oo.dataType||this.samplingScoreGenerator.getSamplingScore(e)<t},e}()}));function xs(e){try{return e.responseText}catch(e){}return null}var bs,Ts,Cs,Ss,Es,ks,As=x((()=>{U(),Ja(),vs(),ms(),Ba(),Dr(),ys(),_s(),ve(),bs=function(e){function t(){var n=e.call(this)||this;n.priority=1001,n.identifier=ka,n._XMLHttpRequestSupported=!1;var r,i,o,s,c,u={};return he(t,n,(function(e,l){function f(){Je("Method not implemented.")}function d(t,n,i,o,a,s){var c=null;if(e._appId||(c=m(s))&&c.appId&&(e._appId=c.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!h(i))return void e._onError(n,a);!e._senderConfig.isRetryDisabled()&&I(t)?(y(n),e.diagLog().throwInternal(pe.WARNING,ge.TransmissionFailed,". Response code "+t+". Will retry to send "+n.length+" items.")):e._onError(n,a)}else ds.isOffline()?e._senderConfig.isRetryDisabled()||(y(n,10),e.diagLog().throwInternal(pe.WARNING,ge.TransmissionFailed,". Offline - Response Code: "+t+". Offline status: "+ds.isOffline()+". Will retry to send "+n.length+" items.")):(h(i),206===t?(c||(c=m(s)),c&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(n,c):e._onError(n,a)):(r=0,e._onSuccess(n,o)))}function h(t){return!(c>=10||_e(t)||""===t||t===e._senderConfig.endpointUrl()||(e._senderConfig.endpointUrl=function(){return t},++c,0))}function p(t,n){var r=e._senderConfig.endpointUrl(),i=e._buffer.batchPayloads(t),o=new Blob([i],{type:"text/plain;charset=UTF-8"});ht().sendBeacon(r,o)?(e._buffer.markAsSent(t),e._onSuccess(t,t.length)):(g(t,!0),e.diagLog().throwInternal(pe.WARNING,ge.TransmissionFailed,". Failed to send telemetry with Beacon API, retried with xhrSender."))}function g(t,n){var r=new XMLHttpRequest,i=e._senderConfig.endpointUrl();try{r[ri]=!0}catch(e){}r.open("POST",i,n),r.setRequestHeader("Content-type","application/json"),qi(i)&&r.setRequestHeader(Lr.sdkContextHeader,Lr.sdkContextHeaderAppIdRequest),Be(Ve(u),(function(e){r.setRequestHeader(e,u[e])})),r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)},r.onerror=function(n){return e._onError(t,_(r),n)};var o=e._buffer.batchPayloads(t);r.send(o),e._buffer.markAsSent(t)}function v(t,n){var r=e._senderConfig.endpointUrl(),i=e._buffer.batchPayloads(t),o=new Blob([i],{type:"text/plain;charset=UTF-8"}),a=new Headers;qi(r)&&a.append(Lr.sdkContextHeader,Lr.sdkContextHeaderAppIdRequest),Be(Ve(u),(function(e){a.append(e,u[e])}));var s=new Request(r,{method:"POST",headers:a,body:o});fetch(s).then((function(n){if(!n.ok)throw Error(n.statusText);n.text().then((function(e){d(n.status,t,n.url,t.length,n.statusText,e)})),e._buffer.markAsSent(t)})).catch((function(n){e._onError(t,n.message)}))}function m(t){try{if(t&&""!==t){var n=mt().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(n){e.diagLog().throwInternal(pe.CRITICAL,ge.InvalidBackendResponse,"Cannot parse the response. "+We(n),{response:t})}return null}function y(t,n){if(void 0===n&&(n=1),t&&0!==t.length){e._buffer.clearSent(t),r++;for(var o=0,a=t;o<a.length;o++){var s=a[o];e._buffer.enqueue(s)}(function(e){var t;if(r<=1)t=10;else{var n=(Math.pow(2,r)-1)/2,o=Math.floor(Math.random()*n*10)+1;o*=e,t=Math.max(Math.min(o,3600),10)}var a=ze()+1e3*t;i=a})(n),w()}}function w(){if(!o){var t=i?Math.max(0,i-ze()):0,n=Math.max(e._senderConfig.maxBatchInterval(),t);o=setTimeout((function(){e.triggerSend(!0,null,1)}),n)}}function I(e){return 408===e||429===e||500===e||503===e}function _(e,t){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+xs(e)||0:t}function x(t,n){var r=lt(),i=new XDomainRequest;i.onload=function(){return e._xdrOnLoad(i,t)},i.onerror=function(n){return e._onError(t,b(i),n)};var o=r&&r.location&&r.location.protocol||"";if(0!==e._senderConfig.endpointUrl().lastIndexOf(o,0))return e.diagLog().throwInternal(pe.WARNING,ge.TransmissionFailed,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void e._buffer.clear();var a=e._senderConfig.endpointUrl().replace(/^(https?:)/,"");i.open("POST",a);var s=e._buffer.batchPayloads(t);i.send(s),e._buffer.markAsSent(t)}function b(e,t){return e?"XDomainRequest,Response:"+xs(e)||0:t}e.pause=f,e.resume=f,e.flush=function(){try{e.triggerSend(!0,null,1)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.FlushFailed,"flush failed, telemetry will not be collected: "+We(t),{exception:It(t)})}},e.onunloadFlush=function(){if(!1!==e._senderConfig.onunloadDisableBeacon()&&!1!==e._senderConfig.isBeaconApiDisabled()||!ei())e.flush();else try{e.triggerSend(!0,p,2)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.FailedToSendQueuedTelemetry,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+We(t),{exception:It(t)})}},e.teardown=f,e.addHeader=function(e,t){u[e]=t},e.initialize=function(o,u,f,d){l.initialize(o,u,f,d);var h=e._getTelCtx(),m=e.identifier;s=new ls(u.logger),r=0,i=null,e._sender=null,c=0;var y=t._getDefaultAppInsightsChannelConfig();if(e._senderConfig=t._getEmptyAppInsightsChannelConfig(),ke(y,(function(t,n){e._senderConfig[t]=function(){return h.getConfig(m,t,n())}})),e._buffer=e._senderConfig.enableSessionStorageBuffer()&&xi()?new $a(e.diagLog(),e._senderConfig):new Ka(e._senderConfig),e._sample=new gs(e._senderConfig.samplingPercentage(),e.diagLog()),function(e){return!(_e(e.disableInstrumentationKeyValidation)||!e.disableInstrumentationKeyValidation)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e.instrumentationKey)}(o)||e.diagLog().throwInternal(pe.CRITICAL,ge.InvalidInstrumentationKey,"Invalid Instrumentation key "+o.instrumentationKey),!qi(e._senderConfig.endpointUrl())&&e._senderConfig.customHeaders()&&e._senderConfig.customHeaders().length>0&&Be(e._senderConfig.customHeaders(),(function(e){n.addHeader(e.header,e.value)})),!e._senderConfig.isBeaconApiDisabled()&&ei())e._sender=p;else{var w=ct("XMLHttpRequest");w?"withCredentials"in new w?(e._sender=g,e._XMLHttpRequestSupported=!0):typeof XDomainRequest!==a&&(e._sender=x):ct("fetch")&&(e._sender=v)}},e.processTelemetry=function(n,r){r=e._getTelCtx(r);try{if(e._senderConfig.disableTelemetry())return;if(!n)return void r.diagLog().throwInternal(pe.CRITICAL,ge.CannotSendEmptyTelemetry,"Cannot send empty telemetry");if(n.baseData&&!n.baseType)return void r.diagLog().throwInternal(pe.CRITICAL,ge.InvalidEvent,"Cannot send telemetry without baseData and baseType");if(n.baseType||(n.baseType="EventData"),!e._sender)return void r.diagLog().throwInternal(pe.CRITICAL,ge.SenderNotInitialized,"Sender was not initialized");if(!function(t){return e._sample.isSampledIn(t)}(n))return void r.diagLog().throwInternal(pe.WARNING,ge.TelemetrySampledAndNotSent,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});n[ii]=e._sample.sampleRate;var i=t.constructEnvelope(n,e._senderConfig.instrumentationKey(),r.diagLog());if(!i)return void r.diagLog().throwInternal(pe.CRITICAL,ge.CreateEnvelopeError,"Unable to create an AppInsights envelope");var o=!1;if(n.tags&&n.tags[oi]&&(Be(n.tags[oi],(function(e){try{e&&!1===e(i)&&(o=!0,r.diagLog().warnToConsole("Telemetry processor check returns false"))}catch(e){r.diagLog().throwInternal(pe.CRITICAL,ge.TelemetryInitializerFailed,"One of telemetry initializers failed, telemetry item will not be sent: "+We(e),{exception:It(e)},!0)}})),delete n.tags[oi]),o)return;var a=s.serialize(i),c=e._buffer.getItems(),u=e._buffer.batchPayloads(c);u&&u.length+a.length>e._senderConfig.maxBatchSizeInBytes()&&e.triggerSend(!0,null,10),e._buffer.enqueue(a),w()}catch(e){r.diagLog().throwInternal(pe.WARNING,ge.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+We(e),{exception:It(e)})}e.processNext(n,r)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&d(e.status,t,e.responseURL,n,_(e),xs(e)||e.response)},e.triggerSend=function(t,r,a){void 0===t&&(t=!0);try{if(e._senderConfig.disableTelemetry())e._buffer.clear();else{if(e._buffer.count()>0){var s=e._buffer.getItems();(function(t,n){var r=function(){var t="getNotifyMgr";return e.core[t]?e.core[t]():e.core._notificationManager}();if(r&&r.eventsSendRequest)try{r.eventsSendRequest(t,n)}catch(t){e.diagLog().throwInternal(pe.CRITICAL,ge.NotificationException,"send request notification failed: "+We(t),{exception:It(t)})}})(a||0,t),r?r.call(n,s,t):e._sender(s,t)}new Date}clearTimeout(o),o=null,i=null}catch(t){var c=wt();(!c||c>9)&&e.diagLog().throwInternal(pe.CRITICAL,ge.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+We(t),{exception:It(t)})}},e._onError=function(t,n,r){e.diagLog().throwInternal(pe.WARNING,ge.OnError,"Failed to send telemetry.",{message:n}),e._buffer.clearSent(t)},e._onPartialSuccess=function(t,n){for(var r=[],i=[],o=0,a=n.errors.reverse();o<a.length;o++){var s=a[o],c=t.splice(s.index,1)[0];I(s.statusCode)?i.push(c):r.push(c)}t.length>0&&e._onSuccess(t,n.itemsAccepted),r.length>0&&e._onError(r,_(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),i.length>0&&(y(i),e.diagLog().throwInternal(pe.WARNING,ge.TransmissionFailed,"Partial success. Delivered: "+t.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items"))},e._onSuccess=function(t,n){e._buffer.clearSent(t)},e._xdrOnLoad=function(t,n){var i=xs(t);if(!t||i+""!="200"&&""!==i){var o=m(i);o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(n,o):e._onError(n,b(t))}else r=0,e._onSuccess(n,0)}})),n}return P(t,e),t.constructEnvelope=function(e,t,n){var r;switch((r=t===e.iKey||_e(t)?e:N({},e,{iKey:t})).baseType){case io.dataType:return is.EventEnvelopeCreator.Create(n,r);case Wo.dataType:return us.TraceEnvelopeCreator.Create(n,r);case jo.dataType:return ss.PageViewEnvelopeCreator.Create(n,r);case $o.dataType:return cs.PageViewPerformanceEnvelopeCreator.Create(n,r);case No.dataType:return os.ExceptionEnvelopeCreator.Create(n,r);case Oo.dataType:return as.MetricEnvelopeCreator.Create(n,r);case Ho.dataType:return rs.DependencyEnvelopeCreator.Create(n,r);default:return is.EventEnvelopeCreator.Create(n,r)}},t._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100},customHeaders:function(){}}},t._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:void 0,emitLineDelimitedJson:void 0,maxBatchInterval:void 0,maxBatchSizeInBytes:void 0,disableTelemetry:void 0,enableSessionStorageBuffer:void 0,isRetryDisabled:void 0,isBeaconApiDisabled:void 0,onunloadDisableBeacon:void 0,instrumentationKey:void 0,namePrefix:void 0,samplingPercentage:void 0,customHeaders:void 0}},t}(tn)})),Ps=x((()=>{As()})),Rs=x((()=>{ve(),Ba(),Dr(),Ts=function(){},Cs=function(){function e(t,n){var r,i,o=Ot(n),a=mn(n);he(e,this,(function(n){t||(t={}),Ce(t.sessionExpirationMs)||(t.sessionExpirationMs=function(){return e.acquisitionSpan}),Ce(t.sessionRenewalMs)||(t.sessionRenewalMs=function(){return e.renewalSpan}),n.config=t;var s=n.config.sessionCookiePostfix&&n.config.sessionCookiePostfix()?n.config.sessionCookiePostfix():n.config.namePrefix&&n.config.namePrefix()?n.config.namePrefix():"";function c(e,t){var n=!1,r=", session will be reset",i=t.split("|");if(i.length>=2)try{var a=+i[1]||0,s=+i[2]||0;isNaN(a)||a<=0?o.throwInternal(pe.WARNING,ge.SessionRenewalDateIsZero,"AI session acquisition date is 0"+r):isNaN(s)||s<=0?o.throwInternal(pe.WARNING,ge.SessionRenewalDateIsZero,"AI session renewal date is 0"+r):i[0]&&(e.id=i[0],e.acquisitionDate=a,e.renewalDate=s,n=!0)}catch(e){o.throwInternal(pe.CRITICAL,ge.ErrorParsingAISessionCookie,"Error parsing ai_session value ["+(t||"")+"]"+r+" - "+We(e),{exception:It(e)})}return n}function u(e,t){var o=e.acquisitionDate;e.renewalDate=t;var s,c=n.config,u=c.sessionRenewalMs(),l=o+c.sessionExpirationMs()-t,f=[e.id,o,t];s=l<u?l/1e3:u/1e3;var d=c.cookieDomain?c.cookieDomain():null;a.set(r(),f.join("|"),c.sessionExpirationMs()>0?s:null,d),i=t}r=function(){return"ai_session"+s},n.automaticSession=new Ts,n.update=function(){var t=ze(),s=!1,l=n.automaticSession;l.id||(s=!function(e,t){var n=!1,i=a.get(r());if(i&&Ce(i.split))n=c(e,i);else{var s=wi(o,r());s&&(n=c(e,s))}return n||!!e.id}(l));var f=n.config.sessionExpirationMs();if(!s&&f>0){var d=n.config.sessionRenewalMs(),h=t-l.acquisitionDate,p=t-l.renewalDate;s=(s=(s=h<0||p<0)||h>f)||p>d}s?function(e){var t=n.config||{},r=(t.getNewId?t.getNewId():null)||lr;n.automaticSession.id=r(t.idLength?t.idLength():22),n.automaticSession.acquisitionDate=e,u(n.automaticSession,e),yi()||o.throwInternal(pe.WARNING,ge.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}(t):(!i||t-i>e.cookieUpdateInterval)&&u(l,t)},n.backup=function(){var e=n.automaticSession;!function(e,t,n){Ii(o,r(),[e,t,n].join("|"))}(e.id,e.acquisitionDate,e.renewalDate)}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}()})),Ns=x((()=>{Ss=function(){}})),Ls=x((()=>{Es=function(){this.id="browser",this.deviceClass="Browser"}})),Ms=x((()=>{ks=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.6.4"}}));function Ds(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var Us,Bs,Fs,Os=x((()=>{ve(),Ba(),Dr(),Us=function(){function e(t,n){this.isNewUser=!1;var r,i=Ot(n),o=mn(n);he(e,this,(function(n){n.config=t;var a=n.config.userCookiePostfix&&n.config.userCookiePostfix()?n.config.userCookiePostfix():"";r=function(){return e.userCookieName+a};var s=o.get(r());if(s){n.isNewUser=!1;var c=s.split(e.cookieSeparator);c.length>0&&(n.id=c[0])}if(!n.id){var u=t||{},l=(u.getNewId?u.getNewId():null)||lr;n.id=l(u.idLength?t.idLength():22);var f=Ue(new Date);n.accountAcquisitionDate=f,n.isNewUser=!0;var d=[n.id,f];o.set(r(),d.join(e.cookieSeparator),31536e3);var h=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";_i(i,h)}n.accountId=t.accountId?t.accountId():void 0;var p=o.get(e.authUserCookieName);if(p){var g=(p=decodeURI(p)).split(e.cookieSeparator);g[0]&&(n.authenticatedId=g[0]),g.length>1&&g[1]&&(n.accountId=g[1])}n.setAuthenticatedUserContext=function(t,r,a){if(void 0===a&&(a=!1),!Ds(t)||r&&!Ds(r))i.throwInternal(pe.WARNING,ge.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{n.authenticatedId=t;var s=n.authenticatedId;r&&(n.accountId=r,s=[n.authenticatedId,n.accountId].join(e.cookieSeparator)),a&&o.set(e.authUserCookieName,encodeURI(s))}},n.clearAuthenticatedUserContext=function(){n.authenticatedId=null,n.accountId=null,o.del(e.authUserCookieName)}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}()})),qs=x((()=>{Bs=function(){}})),js=x((()=>{Ba(),Dr(),Fs=function(e,t,n,r){var i=this;i.traceID=e||fr(),i.parentID=t,i.name=n;var o=pt();!n&&o&&o.pathname&&(i.name=o.pathname),i.name=Or(r,i.name)}}));function Vs(e,t){e&&e[t]&&0===Ve(e[t]).length&&delete e[t]}var Hs,zs,Ws,Ks,$s,Gs=x((()=>{ve(),Dr(),Rs(),Ba(),Ns(),Ls(),Ms(),Os(),qs(),js(),Hs="ext",zs="tags",Ws=function e(t,n){var r=this,i=t.logger;this.appId=function(){return null},he(e,this,(function(e){e.application=new Ss,e.internal=new ks(n),ut()&&(e.sessionManager=new Cs(n,t),e.device=new Es,e.location=new Bs,e.user=new Us(n,t),e.telemetryTrace=new Fs(void 0,void 0,void 0,i),e.session=new Ts),e.applySessionContext=function(t,n){var r=e.session,i=e.sessionManager;r&&Le(r.id)?Ke($e(t.ext,Ca.AppExt),"sesId",r.id):i&&i.automaticSession&&Ke($e(t.ext,Ca.AppExt),"sesId",i.automaticSession.id,Le)},e.applyOperatingSystemContxt=function(t,n){Ke(t.ext,Ca.OSExt,e.os)},e.applyApplicationContext=function(t,n){var r=e.application;if(r){var i=$e(t,zs);Ke(i,Sa.applicationVersion,r.ver,Le),Ke(i,Sa.applicationBuild,r.build,Le)}},e.applyDeviceContext=function(t,n){var r=e.device;if(r){var i=$e($e(t,Hs),Ca.DeviceExt);Ke(i,"localId",r.id,Le),Ke(i,"ip",r.ip,Le),Ke(i,"model",r.model,Le),Ke(i,"deviceClass",r.deviceClass,Le)}},e.applyInternalContext=function(t,n){var r=e.internal;if(r){var i=$e(t,zs);Ke(i,Sa.internalAgentVersion,r.agentVersion,Le),Ke(i,Sa.internalSdkVersion,r.sdkVersion,Le),(t.baseType===qt.dataType||t.baseType===jo.dataType)&&(Ke(i,Sa.internalSnippet,r.snippetVer,Le),Ke(i,Sa.internalSdkSrc,r.sdkSrc,Le))}},e.applyLocationContext=function(e,t){var n=r.location;n&&Ke($e(e,zs,[]),Sa.locationIp,n.ip,Le)},e.applyOperationContext=function(t,n){var r=e.telemetryTrace;if(r){var i=$e($e(t,Hs),Ca.TraceExt,{traceID:void 0,parentID:void 0});Ke(i,"traceID",r.traceID,Le),Ke(i,"name",r.name,Le),Ke(i,"parentID",r.parentID,Le)}},e.applyWebContext=function(e,t){var n=r.web;n&&Ke($e(e,Hs),Ca.WebExt,n)},e.applyUserContext=function(t,n){var r=e.user;if(r){Ke($e(t,zs,[]),Sa.userAccountId,r.accountId,Le);var i=$e($e(t,Hs),Ca.UserExt);Ke(i,"id",r.id,Le),Ke(i,"authId",r.authenticatedId,Le)}},e.cleanUp=function(e,t){var n=e.ext;n&&(Vs(n,Ca.DeviceExt),Vs(n,Ca.UserExt),Vs(n,Ca.WebExt),Vs(n,Ca.OSExt),Vs(n,Ca.AppExt),Vs(n,Ca.TraceExt))}}))}})),Xs=x((()=>{U(),ve(),Dr(),Gs(),Ba(),Ks=function(e){function t(){var n,r,i=e.call(this)||this;return i.priority=110,i.identifier=Ea,he(t,i,(function(e,i){e.initialize=function(o,a,s,c){i.initialize(o,a,s,c);var u=e._getTelCtx(),l=e.identifier,f=t.getDefaultConfig();r=r||{},ke(f,(function(e,t){r[e]=function(){return u.getConfig(l,e,t())}})),e.context=new Ws(a,r),n=ti(s,ka),e.context.appId=function(){return n?n._appId:null},e._extConfig=r},e.processTelemetry=function(t,n){if(!_e(t)){n=e._getTelCtx(n),t.name===jo.envelopeType&&n.diagLog().resetInternalMessageCount();var r=e.context||{};if(r.session&&"string"!=typeof e.context.session.id&&r.sessionManager&&r.sessionManager.update(),function(t,n){$e(t,"tags",[]),$e(t,"ext",{});var r=e.context;r.applySessionContext(t,n),r.applyApplicationContext(t,n),r.applyDeviceContext(t,n),r.applyOperationContext(t,n),r.applyUserContext(t,n),r.applyOperatingSystemContxt(t,n),r.applyWebContext(t,n),r.applyLocationContext(t,n),r.applyInternalContext(t,n),r.cleanUp(t,n)}(t,n),r.user&&r.user.isNewUser){r.user.isNewUser=!1;var i=new qt(ge.SendBrowserInfoOnUserInit,(ht()||{}).userAgent||"");n.diagLog().logInternalMessage(pe.CRITICAL,i)}e.processNext(t,n)}}})),i}return P(t,e),t.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){},sessionCookiePostfix:function(){},userCookiePostfix:function(){},idLength:function(){return 22},getNewId:function(){return null}}},t}(tn),$s=Ks})),Js=x((()=>{Xs()}));function Ys(e,t,n){var r=0,i=e[t],o=e[n];return i&&o&&(r=Vi(i,o)),r}function Qs(e,t,n,r,i){var o=0,a=Ys(n,r,i);return a&&(o=Zs(e,t,Zr(a))),o}function Zs(e,t,n){var r="ajaxPerf",i=0;return e&&t&&n&&((e[r]=e[r]||{})[t]=n,i=1),i}var ec,tc,nc,rc,ic=x((()=>{Ba(),Dr(),ve(),ec="properties",tc=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},nc=function e(t,n,r){var i=this,o=r,a="responseText";i.perfMark=null,i.completed=!1,i.requestHeadersSize=null,i.requestHeaders=null,i.responseReceivingDuration=null,i.callbackDuration=null,i.ajaxTotalDuration=null,i.aborted=0,i.pageUrl=null,i.requestUrl=null,i.requestSize=0,i.method=null,i.status=null,i.requestSentTime=null,i.responseStartedTime=null,i.responseFinishedTime=null,i.callbackFinishedTime=null,i.endTime=null,i.xhrMonitoringState=new tc,i.clientFailure=0,i.traceID=t,i.spanID=n,he(e,i,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?Ri(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?qr(o,Li(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){if(e.ajaxTotalDuration=Math.round(1e3*Vi(e.requestSentTime,e.responseFinishedTime))/1e3,e.ajaxTotalDuration<0)return null;var i,o=((i={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,startTime:null,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method})[ec]={HttpMethod:e.method},i);if(e.requestSentTime&&(o.startTime=new Date,o.startTime.setTime(e.requestSentTime)),function(e,t){var n=e.perfTiming,r=t[ec]||{},i=0,o="name",a="Start",s="End",c="connect",u="redirect",l="request",f="response",d="duration",h="startTime",p=c+s,g=l+a,v=f+s,m=u+a,y=u=s,w="transferSize",I="encodedBodySize",_="decodedBodySize",x="serverTiming";if(n){i|=Qs(r,u,n,m,y),i|=Qs(r,"domainLookup",n,"domainLookupStart","domainLookupEnd"),i|=Qs(r,c,n,"connectStart",p),i|=Qs(r,l,n,g,"requestEnd"),i|=Qs(r,f,n,"responseStart",v),i|=Qs(r,"networkConnect",n,h,p),i|=Qs(r,"sentRequest",n,g,v);var b=n[d];b||(b=Ys(n,h,v)||0),i|=Zs(r,d,b),i|=Zs(r,"perfTotal",b);var T=n[x];if(T){var C={};Be(T,(function(e,t){var n=function(e){var t=e,n=/([^\w\d_$])/g;return n.test(e)&&(t=e.replace(n,"_")),t}(e[o]||""+t),r=C[n]||{};ke(e,(function(e,t){(e!==o&&Le(t)||Me(t))&&(r[e]&&(t=r[e]+";"+t),(t||!Le(t))&&(r[e]=t))})),C[n]=r})),i|=Zs(r,x,C)}i|=Zs(r,w,n[w]),i|=Zs(r,I,n[I]),i|=Zs(r,_,n[_])}else e.perfMark&&(i|=Zs(r,"missing",e.perfAttempts));i&&(t[ec]=r)}(e,o),n&&Ve(e.requestHeaders).length>0&&(o[ec]=o[ec]||{},o[ec].requestHeaders=e.requestHeaders),r){var s=r();if(s){var c=s.correlationContext;if(c&&(o.correlationContext=c),s.headerMap&&Ve(s.headerMap).length>0&&(o[ec]=o[ec]||{},o[ec].responseHeaders=s.headerMap),e.status>=400){var u=s.type;o[ec]=o[ec]||{},(""===u||"text"===u)&&(o[ec][a]=s[a]?s.statusText+" - "+s[a]:s.statusText),"json"===u&&(o[ec][a]=s.response?s.statusText+" - "+JSON.stringify(s.response):s.statusText)}}}return o}}))}})),oc=x((()=>{Dr(),Dr(),function(){function e(){}e.GetLength=function(e){var t=0;if(!_e(e)){var n="";try{n=e.toString()}catch(e){}t=n.length,t=isNaN(t)?0:t}return t}}()})),ac=x((()=>{Dr(),rc=function(){function e(t,n){var r=this;r.traceFlag=e.DEFAULT_TRACE_FLAG,r.version=e.DEFAULT_VERSION,t&&e.isValidTraceId(t)?r.traceId=t:r.traceId=fr(),n&&e.isValidSpanId(n)?r.spanId=n:r.spanId=fr().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.prototype.toString=function(){var e=this;return e.version+"-"+e.traceId+"-"+e.spanId+"-"+e.traceFlag},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}()}));function sc(e){var t="";try{!_e(e)&&!_e(e[pc])&&!_e(e[pc].requestUrl)&&(t+="(url: '"+e[pc].requestUrl+"')")}catch(e){}return t}function cc(e,t,n,r,i){e[hc]()[gc](pe.CRITICAL,t,n,r,i)}function uc(e,t,n,r,i){e[hc]()[gc](pe.WARNING,t,n,r,i)}function lc(e,t,n){return function(r){cc(e,t,n,{ajaxDiagnosticsMessage:sc(r.inst),exception:It(r.err)})}}function fc(e,t){return e&&t?e.indexOf(t):-1}var dc,hc,pc,gc,vc,mc,yc,wc,Ic,_c,xc,bc,Tc,Cc,Sc=x((()=>{U(),Ba(),Dr(),ic(),oc(),ac(),ve(),dc="ai.ajxmn.",hc="diagLog",pc="ajaxData",gc="throwInternal",vc="fetch",mc=0,yc=function(e){function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,o,c,u,l="trackDependencyDataInternal",f=pt(),d=!1,h=!1,p=f&&f.host&&f.host.toLowerCase(),g=t.getEmptyConfig(),v=!1,m=0,y=!1,w=0,I=!1,_=[],x={};return he(t,n,(function(e,n){function f(e){var t=!0;return(e||g.ignoreHeaders)&&Be(g.ignoreHeaders,(function(n){if(n.toLowerCase()===e.toLowerCase())return t=!1,-1})),t}function b(e,t,n){_.push(function(e,t,n){return e?Er(e[s],t,n,!1):null}(e,t,n))}function T(e,t,n){var r=!1,i=((Le(t)?t:(t||{}).url||"")||"").toLowerCase();if(Be(u,(function(e){var t=e;Le(e)&&(t=new RegExp(e)),r||(r=t.test(i))})),r)return r;var o=fc(i,"?"),a=fc(i,"#");return(-1===o||-1!==a&&a<o)&&(o=a),-1!==o&&(i=i.substring(0,o)),_e(e)?_e(t)||(r="object"==typeof t&&!0===t[ri]||!!n&&!0===n[ri]):r=!0===e[ri]||!0===i[ri],r?x[i]||(x[i]=1):x[i]&&(r=!0),r}function C(e,t){var n=!0,r=h;return _e(e)||(n=!0===t||!_e(e[pc])),r&&n}function E(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(e){}return null}function k(t){try{var n=t.getAllResponseHeaders();if(null!==n&&-1!==fc(n.toLowerCase(),Lr.requestContextHeaderLowerCase)){var r=t.getResponseHeader(Lr.requestContextHeader);return Ki.getCorrelationContext(r)}}catch(n){uc(e,ge.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:sc(t),exception:It(n)})}}function A(e,t){if(t.requestUrl&&c&&y){var n=gt();if(n&&Ce(n.mark)){mc++;var r=c+e+"#"+mc;n.mark(r);var i=n.getEntriesByName(r);i&&1===i.length&&(t.perfMark=i[0])}}}function P(e,t,n,r){var i=t.perfMark,o=gt(),a=g.maxAjaxPerfLookupAttempts,s=g.ajaxPerfLookupDelay,c=t.requestUrl,u=0;!function l(){try{if(o&&i){u++;for(var f=null,d=o.getEntries(),h=d.length-1;h>=0;h--){var p=d[h];if(p){if("resource"===p.entryType)p.initiatorType===e&&(-1!==fc(p.name,c)||-1!==fc(c,p.name))&&(f=p);else if("mark"===p.entryType&&p.name===i.name){t.perfTiming=f;break}if(p.startTime<i.startTime-1e3)break}}}!i||t.perfTiming||u>=a||!1===t.async?(i&&Ce(o.clearMarks)&&o.clearMarks(i.name),t.perfAttempts=u,n()):setTimeout(l,s)}catch(e){r(e)}}()}function R(t){var n="";try{_e(t)||(n+="string"==typeof t?"(url: '"+t+"')":"(url: '"+t.url+"')")}catch(t){cc(e,ge.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:It(t)})}return n}function N(t,n,r,i,o,a){function s(t,n,i){var o=i||{};o.fetchDiagnosticsMessage=R(r),n&&(o.exception=It(n)),uc(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",o)}i&&(i.responseFinishedTime=ji(),i.status=n,P("fetch",i,(function(){var t=i.CreateTrackItem("Fetch",v,o);t?e[l](t):s(ge.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})}),(function(e){s(ge.FailedMonitorAjaxGetCorrelationHeader,e,null)})))}function L(t){if(t&&t.headers)try{var n=t.headers.get(Lr.requestContextHeader);return Ki.getCorrelationContext(n)}catch(n){uc(e,ge.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:R(t),exception:It(n)})}}e.initialize=function(p,m,x,R){if(!e.isInitialized()){n.initialize(p,m,x,R);var M=e._getTelCtx();ke(t.getDefaultConfig(),(function(e,n){g[e]=M.getConfig(t.identifier,e,n)}));var D=g.distributedTracingMode;if(v=g.enableRequestHeaderTracking,y=g.enableAjaxPerfTracking,w=g.maxAjaxCallsPerView,I=g.enableResponseHeaderTracking,u=g.excludeRequestFromAutoTrackingPatterns,o=D===li.AI||D===li.AI_AND_W3C,i=D===li.AI_AND_W3C||D===li.W3C,y){var U=p.instrumentationKey||"unkwn";c=U.length>5?dc+U.substring(U.length-5)+".":dc+U+"."}if(!1===g.disableAjaxTracking&&function(e){var t=!1;if(typeof XMLHttpRequest!==a&&!_e(XMLHttpRequest)){var n=XMLHttpRequest[s];t=!(_e(n)||_e(n.open)||_e(n.send)||_e(n.abort))}var r=wt();if(r&&r<9&&(t=!1),t)try{(new XMLHttpRequest)[pc]={};var i=XMLHttpRequest[s].open;XMLHttpRequest[s].open=i}catch(n){t=!1,cc(e,ge.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:It(n)})}return t}(e)&&!h&&(b(XMLHttpRequest,"open",{req:function(t,n,i,o){var a=t.inst,s=a[pc];!T(a,i)&&C(a,!0)&&(!s||!s.xhrMonitoringState.openDone)&&function(t,n,i,o){var a=r&&r.telemetryTrace&&r.telemetryTrace.traceID||fr(),s=fr().substr(0,16),c=new nc(a,s,e[hc]());c.method=n,c.requestUrl=i,c.xhrMonitoringState.openDone=!0,c.requestHeaders={},c.async=o,t[pc]=c,function(t){t[pc].xhrMonitoringState.stateChangeAttached=xr.Attach(t,"readystatechange",(function(){try{t&&4===t.readyState&&C(t)&&function(t){var n=t[pc];function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=sc(t),n&&(i.exception=It(n)),uc(e,ge.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}n.responseFinishedTime=ji(),n.status=t.status,P("xmlhttprequest",n,(function(){try{var i=n.CreateTrackItem("Ajax",v,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:k(t),type:t.responseType,responseText:E(t),response:t.response};if(I){var n=t.getAllResponseHeaders();if(n){var r=je(n).split(/[\r\n]+/),i={};Be(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");f(n)&&(i[n]=r)})),e.headerMap=i}}return e}));i?e[l](i):r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{t[pc]=null}catch(e){}}}),(function(e){r(e,null)}))}(t)}catch(r){var n=It(r);(!n||-1===fc(n.toLowerCase(),"c00c023f"))&&cc(e,ge.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:sc(t),exception:n})}}))}(t)}(a,n,i,o)},hkErr:lc(e,ge.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),b(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst,i=r[pc];C(r)&&!i.xhrMonitoringState.sendDone&&(A("xhr",i),i.requestSentTime=ji(),e.includeCorrelationHeaders(i,void 0,void 0,r),i.xhrMonitoringState.sendDone=!0)},hkErr:lc(e,ge.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),b(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,n=t[pc];C(t)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)},hkErr:lc(e,ge.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),v&&b(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;C(r)&&f(t)&&(r[pc].requestHeaders[t]=n)},hkErr:lc(e,ge.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),h=!0),function(){var t=function(){var e=S();return!e||_e(e.Request)||_e(e.Request[s])||_e(e[vc])?null:e[vc]}();if(t){var n=S(),i=t.polyfill;!1===g.disableFetchTracking?(_.push(Er(n,vc,{req:function(t,n,o){var a;if(d&&!T(null,n,o)&&(!i||!h)){var s=t.ctx();a=function(t,n){var i=r&&r.telemetryTrace&&r.telemetryTrace.traceID||fr(),o=fr().substr(0,16),a=new nc(i,o,e[hc]());a.requestSentTime=ji(),t instanceof Request?a.requestUrl=t?t.url:"":a.requestUrl=t;var s="GET";n&&n.method?s=n.method:t&&t instanceof Request&&(s=t.method),a.method=s;var c={};return v&&new Headers((n?n.headers:0)||t instanceof Request&&t.headers||{}).forEach((function(e,t){f(t)&&(c[t]=e)})),a.requestHeaders=c,A("fetch",a),a}(n,o);var c=e.includeCorrelationHeaders(a,n,o);c!==o&&t.set(1,c),s.data=a}},rsp:function(e,t){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(e){return N(0,(e||{}).status,e,n,(function(){var t={statusText:e.statusText,headerMap:null,correlationContext:L(e)};if(I){var n={};e.headers.forEach((function(e,t){f(t)&&(n[t]=e)})),t.headerMap=n}return t})),e})).catch((function(e){throw N(0,0,t,n,null,e.message),e})))},hkErr:lc(e,ge.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),d=!0):i&&_.push(Er(n,vc,{req:function(e,t,n){T(null,t,n)}})),i&&(n[vc].polyfill=i)}}(),x.length>0&&x){for(var B=void 0,F=0;!B&&F<x.length;)x[F]&&x[F].identifier===Ea&&(B=x[F]),F++;B&&(r=B.context)}}},e.teardown=function(){Be(_,(function(e){e.rm()})),_=[],d=!1,h=!1,e.setInitialized(!1)},e.trackDependencyData=function(t,n){e[l](t,n)},e.includeCorrelationHeaders=function(t,n,a,s){var c=e._currentWindowHost||p;if(n){if(Ki.canIncludeCorrelationHeader(g,t.getAbsoluteUrl(),c)){if(a||(a={}),a.headers=new Headers(a.headers||n instanceof Request&&n.headers||{}),o){var u="|"+t.traceID+"."+t.spanID;a.headers.set(Lr.requestIdHeader,u),v&&(t.requestHeaders[Lr.requestIdHeader]=u)}if((f=g.appId||r&&r.appId())&&(a.headers.set(Lr.requestContextHeader,Lr.requestContextAppIdFormat+f),v&&(t.requestHeaders[Lr.requestContextHeader]=Lr.requestContextAppIdFormat+f)),i){var l=new rc(t.traceID,t.spanID);a.headers.set(Lr.traceParentHeader,l.toString()),v&&(t.requestHeaders[Lr.traceParentHeader]=l.toString())}}return a}if(s){var f;if(Ki.canIncludeCorrelationHeader(g,t.getAbsoluteUrl(),c))o&&(u="|"+t.traceID+"."+t.spanID,s.setRequestHeader(Lr.requestIdHeader,u),v&&(t.requestHeaders[Lr.requestIdHeader]=u)),(f=g.appId||r&&r.appId())&&(s.setRequestHeader(Lr.requestContextHeader,Lr.requestContextAppIdFormat+f),v&&(t.requestHeaders[Lr.requestContextHeader]=Lr.requestContextAppIdFormat+f)),i&&(l=new rc(t.traceID,t.spanID),s.setRequestHeader(Lr.traceParentHeader,l.toString()),v&&(t.requestHeaders[Lr.traceParentHeader]=l.toString()));return s}},e[l]=function(t,n,r){if(-1===w||m<w){(g.distributedTracingMode===li.W3C||g.distributedTracingMode===li.AI_AND_W3C)&&"string"==typeof t.id&&"."!==t.id[t.id.length-1]&&(t.id+="."),_e(t.startTime)&&(t.startTime=new Date);var i=Ta.create(t,Ho.dataType,Ho.envelopeType,e[hc](),n,r);e.core.track(i)}else m===w&&cc(e,ge.MaxAjaxPerPVExceeded,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++m}})),n}return P(t,e),t.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:li.AI_AND_W3C,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"]}},t.getEmptyConfig=function(){var e=this.getDefaultConfig();return ke(e,(function(t){e[t]=void 0})),e},t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.identifier="AjaxDependencyPlugin",t}(tn)})),Ec=x((()=>{Sc()})),kc=x((()=>{Dr(),Xa(),Ps(),Js(),Ec(),Ba(),Ic=["snippet","dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],_c={__proto__:null,PropertiesPluginIdentifier:Ea,BreezeChannelIdentifier:ka,AnalyticsPluginIdentifier:Aa,Util:zi,CorrelationIdHelper:Ki,UrlHelper:Wi,DateTimeUtils:$i,ConnectionStringParser:Qi,FieldType:{Default:0,Required:1,Array:2,Hidden:4},RequestHeaders:Lr,DisabledPropertyName:ri,ProcessLegacy:oi,SampleRate:ii,HttpMethod:ai,DEFAULT_BREEZE_ENDPOINT:si,AIData:eo,AIBase:Zi,Envelope:no,Event:io,Exception:No,Metric:Oo,PageView:jo,PageViewData:qo,RemoteDependencyData:Ho,Trace:Wo,PageViewPerformance:$o,Data:Go,SeverityLevel:Xo,ConfigurationManager:Jo,ContextTagKeys:ba,DataSanitizer:Gr,TelemetryItemCreator:Ta,CtxTagKeys:Sa,Extensions:Ca,DistributedTracingModes:li},xc=function(){function e(e){var t=this;t._snippetVersion=""+(e.sv||e.version||""),e.queue=e.queue||[],e.version=e.version||2;var n=e.config||{};if(n.connectionString){var r=Xi(n.connectionString),i=r.ingestionendpoint;n.endpointUrl=i?i+"/v2/track":n.endpointUrl,n.instrumentationKey=r.instrumentationkey||n.instrumentationKey}t.appInsights=new za,t.properties=new $s,t.dependencies=new yc,t.core=new zn,t._sender=new bs,t.snippet=e,t.config=n,t.getSKUDefaults()}return e.prototype.getCookieMgr=function(){return this.appInsights.getCookieMgr()},e.prototype.trackEvent=function(e,t){this.appInsights.trackEvent(e,t)},e.prototype.trackPageView=function(e){var t=e||{};this.appInsights.trackPageView(t)},e.prototype.trackPageViewPerformance=function(e){var t=e||{};this.appInsights.trackPageViewPerformance(t)},e.prototype.trackException=function(e){e&&!e.exception&&e.error&&(e.exception=e.error),this.appInsights.trackException(e)},e.prototype._onerror=function(e){this.appInsights._onerror(e)},e.prototype.trackTrace=function(e,t){this.appInsights.trackTrace(e,t)},e.prototype.trackMetric=function(e,t){this.appInsights.trackMetric(e,t)},e.prototype.startTrackPage=function(e){this.appInsights.startTrackPage(e)},e.prototype.stopTrackPage=function(e,t,n,r){this.appInsights.stopTrackPage(e,t,n,r)},e.prototype.startTrackEvent=function(e){this.appInsights.startTrackEvent(e)},e.prototype.stopTrackEvent=function(e,t,n){this.appInsights.stopTrackEvent(e,t,n)},e.prototype.addTelemetryInitializer=function(e){return this.appInsights.addTelemetryInitializer(e)},e.prototype.setAuthenticatedUserContext=function(e,t,n){void 0===n&&(n=!1),this.properties.context.user.setAuthenticatedUserContext(e,t,n)},e.prototype.clearAuthenticatedUserContext=function(){this.properties.context.user.clearAuthenticatedUserContext()},e.prototype.trackDependencyData=function(e){this.dependencies.trackDependencyData(e)},e.prototype.flush=function(e){var t=this;void 0===e&&(e=!0),Ht(this.core,(function(){return"AISKU.flush"}),(function(){Be(t.core.getTransmissionControls(),(function(t){Be(t,(function(t){t.flush(e)}))}))}),null,e)},e.prototype.onunloadFlush=function(e){void 0===e&&(e=!0),Be(this.core.getTransmissionControls(),(function(t){Be(t,(function(t){t.onunloadFlush?t.onunloadFlush():t.flush(e)}))}))},e.prototype.loadAppInsights=function(e,t,n){var r=this;void 0===e&&(e=!1);var i=this;return e&&i.config.extensions&&i.config.extensions.length>0&&Je("Extensions not allowed in legacy mode"),Ht(i.core,(function(){return"AISKU.loadAppInsights"}),(function(){var o=[];o.push(i._sender),o.push(i.properties),o.push(i.dependencies),o.push(i.appInsights),i.core.initialize(i.config,o,t,n),i.context=i.properties.context,wc&&i.context&&(i.context.internal.sdkSrc=wc),function(t){if(t){var n="";_e(i._snippetVersion)||(n+=i._snippetVersion),e&&(n+=".lg"),i.context&&i.context.internal&&(i.context.internal.snippetVer=n||"-"),ke(i,(function(e,n){Le(e)&&!Ce(n)&&e&&"_"!==e[0]&&-1===Ic.indexOf(e)&&(t[e]=n)}))}}(i.snippet),i.emptyQueue(),i.pollInternalLogs(),i.addHousekeepingBeforeUnload(r)})),i},e.prototype.updateSnippetDefinitions=function(e){Ye(e,this,(function(e){return e&&-1===Ic.indexOf(e)}))},e.prototype.emptyQueue=function(){var e=this;try{if(Re(e.snippet.queue)){for(var t=e.snippet.queue.length,n=0;n<t;n++)(0,e.snippet.queue[n])();e.snippet.queue=void 0,delete e.snippet.queue}}catch(e){e&&Ce(e.toString)&&e.toString()}},e.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},e.prototype.addHousekeepingBeforeUnload=function(e){if(ut()||ft()){var t=function(){e.onunloadFlush(!1),Be(e.appInsights.core._extensions,(function(e){if(e.identifier===Ea)return e&&e.context&&e.context._sessionManager&&e.context._sessionManager.backup(),-1}))};if(!e.appInsights.config.disableFlushOnBeforeUnload){var n=sr("beforeunload",t);n=sr("unload",t)||n,n=sr("pagehide",t)||n,!(n=sr("visibilitychange",t)||n)&&!function(){var e=ht();return!(!e||!e.product)&&e.product===Rt}()&&e.appInsights.core.logger.throwInternal(pe.CRITICAL,ge.FailedToAddHandlerForOnBeforeUnload,"Could not add handler for beforeunload and pagehide")}e.appInsights.config.disableFlushOnUnload||(sr("pagehide",t),sr("visibilitychange",t))}},e.prototype.getSender=function(){return this._sender},e.prototype.getSKUDefaults=function(){var e=this;e.config.diagnosticLogInterval=e.config.diagnosticLogInterval&&e.config.diagnosticLogInterval>0?e.config.diagnosticLogInterval:1e4},e}(),function(){var e=null,t=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(e=n.src)}catch(e){}if(e)try{var r=e.toLowerCase();if(r)for(var i="",o=0;o<t.length;o++)if(-1!==r.indexOf(t[o])){i="cdn"+(o+1),-1===r.indexOf("/scripts/")&&(-1!==r.indexOf("/next/")?i+="-next":-1!==r.indexOf("/beta/")&&(i+="-beta")),wc=i+"";break}}catch(e){}}()})),Ac=x((()=>{Ba(),Dr(),bc=["snippet","getDefaultConfig","_hasLegacyInitializers","_queue","_processLegacyInitializers"],Tc=function(){function e(t,n){this._hasLegacyInitializers=!1,this._queue=[],this.config=e.getDefaultConfig(t.config),this.appInsightsNew=n,this.context={addTelemetryInitializer:this.addTelemetryInitializers.bind(this)}}return e.getDefaultConfig=function(e){return e||(e={}),e.endpointUrl=e.endpointUrl||"https://dc.services.visualstudio.com/v2/track",e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.maxBatchSizeInBytes=e.maxBatchSizeInBytes>0?e.maxBatchSizeInBytes:102400,e.maxBatchInterval=isNaN(e.maxBatchInterval)?15e3:e.maxBatchInterval,e.enableDebug=Qr(e.enableDebug),e.disableExceptionTracking=Qr(e.disableExceptionTracking),e.disableTelemetry=Qr(e.disableTelemetry),e.verboseLogging=Qr(e.verboseLogging),e.emitLineDelimitedJson=Qr(e.emitLineDelimitedJson),e.diagnosticLogInterval=e.diagnosticLogInterval||1e4,e.autoTrackPageVisitTime=Qr(e.autoTrackPageVisitTime),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.disableAjaxTracking=Qr(e.disableAjaxTracking),e.maxAjaxCallsPerView=isNaN(e.maxAjaxCallsPerView)?500:e.maxAjaxCallsPerView,e.isBeaconApiDisabled=Qr(e.isBeaconApiDisabled,!0),e.disableCorrelationHeaders=Qr(e.disableCorrelationHeaders),e.correlationHeaderExcludedDomains=e.correlationHeaderExcludedDomains||["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],e.disableFlushOnBeforeUnload=Qr(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=Qr(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e.enableSessionStorageBuffer=Qr(e.enableSessionStorageBuffer,!0),e.isRetryDisabled=Qr(e.isRetryDisabled),e.isCookieUseDisabled=Qr(e.isCookieUseDisabled),e.isStorageUseDisabled=Qr(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=Qr(e.isBrowserLinkTrackingEnabled),e.enableCorsCorrelation=Qr(e.enableCorsCorrelation),e},e.prototype.addTelemetryInitializers=function(e){var t=this;this._hasLegacyInitializers||(this.appInsightsNew.addTelemetryInitializer((function(e){t._processLegacyInitializers(e)})),this._hasLegacyInitializers=!0),this._queue.push(e)},e.prototype.getCookieMgr=function(){return this.appInsightsNew.getCookieMgr()},e.prototype.startTrackPage=function(e){this.appInsightsNew.startTrackPage(e)},e.prototype.stopTrackPage=function(e,t,n,r){this.appInsightsNew.stopTrackPage(e,t,n)},e.prototype.trackPageView=function(e,t,n,r,i){var o={name:e,uri:t,properties:n,measurements:r};this.appInsightsNew.trackPageView(o)},e.prototype.trackEvent=function(e,t,n){this.appInsightsNew.trackEvent({name:e})},e.prototype.trackDependency=function(e,t,n,r,i,o,a){this.appInsightsNew.trackDependencyData({id:e,target:n,type:r,duration:i,properties:{HttpMethod:t},success:o,responseCode:a})},e.prototype.trackException=function(e,t,n,r,i){this.appInsightsNew.trackException({exception:e})},e.prototype.trackMetric=function(e,t,n,r,i,o){this.appInsightsNew.trackMetric({name:e,average:t,sampleCount:n,min:r,max:i})},e.prototype.trackTrace=function(e,t,n){this.appInsightsNew.trackTrace({message:e,severityLevel:n})},e.prototype.flush=function(e){this.appInsightsNew.flush(e)},e.prototype.setAuthenticatedUserContext=function(e,t,n){this.appInsightsNew.context.user.setAuthenticatedUserContext(e,t,n)},e.prototype.clearAuthenticatedUserContext=function(){this.appInsightsNew.context.user.clearAuthenticatedUserContext()},e.prototype._onerror=function(e,t,n,r,i){this.appInsightsNew._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i})},e.prototype.startTrackEvent=function(e){this.appInsightsNew.startTrackEvent(e)},e.prototype.stopTrackEvent=function(e,t,n){this.appInsightsNew.stopTrackEvent(e,t,n)},e.prototype.downloadAndSetup=function(e){Je("downloadAndSetup not implemented in web SKU")},e.prototype.updateSnippetDefinitions=function(e){Ye(e,this,(function(e){return e&&-1===bc.indexOf(e)}))},e.prototype.loadAppInsights=function(){var e=this;if(this.config.iKey){var t=this.trackPageView;this.trackPageView=function(n,r,i){t.apply(e,[null,n,r,i])}}var n="logPageView";"function"==typeof this.snippet[n]&&(this[n]=function(t,n,r){e.trackPageView(null,t,n,r)});var r="logEvent";return"function"==typeof this.snippet[r]&&(this[r]=function(t,n,r){e.trackEvent(t,n,r)}),this},e.prototype._processLegacyInitializers=function(e){return e.tags[oi]=this._queue,e},e}()})),Pc=x((()=>{Ac(),kc(),Dr(),Cc=function(){function e(){}return e.getAppInsights=function(e,t){var n=new xc(e),r=2!==t;if(dr(),2===t)return n.updateSnippetDefinitions(e),n.loadAppInsights(r),n;var i=new Tc(e,n);return i.updateSnippetDefinitions(e),n.loadAppInsights(r),i},e}()})),Rc={};((e,t)=>{for(var n in(e=>{v(e,"__esModule",{value:!0})})(e),t)v(e,n,{get:t[n],enumerable:!0})})(Rc,{AppInsightsCore:()=>zn,ApplicationAnalytics:()=>za,ApplicationInsights:()=>xc,ApplicationInsightsContainer:()=>Cc,BaseCore:()=>Vn,BaseTelemetryPlugin:()=>tn,CoreUtils:()=>Ir,DependenciesPlugin:()=>yc,DistributedTracingModes:()=>li,Event:()=>io,Exception:()=>No,LoggingSeverity:()=>pe,Metric:()=>Oo,NotificationManager:()=>Hn,PageView:()=>jo,PageViewPerformance:()=>$o,PerfEvent:()=>zt,PerfManager:()=>Wt,PropertiesPlugin:()=>$s,RemoteDependencyData:()=>Ho,Sender:()=>bs,SeverityLevel:()=>Xo,Telemetry:()=>_c,Trace:()=>Wo,Util:()=>zi,_InternalMessageId:()=>ge,doPerf:()=>Ht});var Nc,Lc,Mc=x((()=>{kc(),Pc(),Dr(),Ba(),Ps(),Xa(),Js(),Ec()}));function Dc(){return void 0!==g.env.isTelemetryEnabled?g.env.isTelemetryEnabled?Nc.ON:Nc.OFF:g.workspace.getConfiguration("telemetry").get("enableTelemetry")?Nc.ON:Nc.OFF}(Lc=Nc||(Nc={})).ON="on",Lc.OFF="off";var Uc=e=>b(void 0,null,(function*(){let t;try{let n,r=yield Promise.resolve().then((()=>(Mc(),Rc)));e&&0===e.indexOf("AIF-")&&(n="https://vortex.data.microsoft.com/collect/v1"),t=new r.ApplicationInsights({config:{instrumentationKey:e,endpointUrl:n,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!0,disableInstrumentationKeyValidation:!0}}),t.loadAppInsights();let i=Dc();n&&i===Nc.ON&&fetch(n).catch((()=>t=void 0))}catch(e){return Promise.reject(e)}return{logEvent:(e,n)=>{null==t||t.trackEvent({name:e},_(_({},null==n?void 0:n.properties),null==n?void 0:n.measurements))},logException:(e,n)=>{null==t||t.trackException({exception:e,properties:_(_({},null==n?void 0:n.properties),null==n?void 0:n.measurements)})},flush:()=>b(void 0,null,(function*(){null==t||t.flush()}))}})),Bc=class extends class{constructor(e,t,n,r,i){this.extensionId=e,this.extensionVersion=t,this.telemetryAppender=n,this.osShim=r,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!i,this.updateUserOptStatus(),void 0!==g.env.onDidChangeTelemetryEnabled?(this.disposables.push(g.env.onDidChangeTelemetryEnabled((()=>this.updateUserOptStatus()))),this.disposables.push(g.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))):this.disposables.push(g.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))}updateUserOptStatus(){let e=Dc();this.userOptIn=e===Nc.ON,this.errorOptIn=e===Nc.ON,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(e){if(!e)return"none";let t="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach((n=>{0===e.indexOf(`${n}`)&&(t=n)})),t}get extension(){return void 0===this._extension&&(this._extension=g.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(e,t){if(null===e||"object"!=typeof e||"function"!=typeof t)return e;let n={};for(let r in e)n[r]=t(r,e[r]);return n}shouldSendErrorTelemetry(){return!(!1===this.errorOptIn||this.firstParty&&"other"===this.cleanRemoteName(g.env.remoteName)&&(void 0===this.extension||this.extension.extensionKind===g.ExtensionKind.Workspace||g.env.uiKind===g.UIKind.Web))}getCommonProperties(){let e=Object.create(null);if(e["common.os"]=this.osShim.platform,e["common.nodeArch"]=this.osShim.architecture,e["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),e["common.extname"]=this.extensionId,e["common.extversion"]=this.extensionVersion,g&&g.env){switch(e["common.vscodemachineid"]=g.env.machineId,e["common.vscodesessionid"]=g.env.sessionId,e["common.vscodeversion"]=g.version,e["common.isnewappinstall"]=g.env.isNewAppInstall?g.env.isNewAppInstall.toString():"false",e["common.product"]=g.env.appHost,g.env.uiKind){case g.UIKind.Web:e["common.uikind"]="web";break;case g.UIKind.Desktop:e["common.uikind"]="desktop";break;default:e["common.uikind"]="unknown"}e["common.remotename"]=this.cleanRemoteName(g.env.remoteName)}return e}anonymizeFilePaths(e,t){let n;if(null==e)return"";let r=[];""!==g.env.appRoot&&r.push(new RegExp(g.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&r.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let i=e;if(t){let t=[];for(let i of r)for(;(n=i.exec(e))&&n;)t.push([n.index,i.lastIndex]);let o=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,a=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,s=0;for(i="";(n=a.exec(e))&&n;)n[0]&&!o.test(n[0])&&t.every((([e,t])=>n.index<e||n.index>=t))&&(i+=e.substring(s,n.index)+"<REDACTED: user-file-path>",s=a.lastIndex);s<e.length&&(i+=e.substr(s))}for(let e of r)i=i.replace(e,"");return i}removePropertiesWithPossibleUserInfo(e){if("object"!=typeof e)return;let t=Object.create(null);for(let n of Object.keys(e)){let r=e[n];if(!r)continue;let i=/@[a-zA-Z0-9-.]+/,o=/xox[pbaors]-[a-zA-Z0-9]+-[a-zA-Z0-9-]+?/;/(key|token|sig|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/.test(r.toLowerCase())?t[n]="<REDACTED: secret>":i.test(r)?t[n]="<REDACTED: email>":o.test(r)?t[n]="<REDACTED: token>":t[n]=r}return t}sendTelemetryEvent(e,t,n){if(this.userOptIn&&""!==e){t=_(_({},t),this.getCommonProperties());let r=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));this.telemetryAppender.logEvent(`${this.extensionId}/${e}`,{properties:this.removePropertiesWithPossibleUserInfo(r),measurements:n})}}sendRawTelemetryEvent(e,t,n){this.userOptIn&&""!==e&&(t=_(_({},t),this.getCommonProperties()),this.telemetryAppender.logEvent(`${this.extensionId}/${e}`,{properties:t,measurements:n}))}sendTelemetryErrorEvent(e,t,n,r){if(this.errorOptIn&&""!==e){t=_(_({},t),this.getCommonProperties());let i=this.cloneAndChange(t,((e,t)=>this.shouldSendErrorTelemetry()?this.anonymizeFilePaths(t,this.firstParty):void 0===r||-1!==r.indexOf(e)?"REDACTED":this.anonymizeFilePaths(t,this.firstParty)));this.telemetryAppender.logEvent(`${this.extensionId}/${e}`,{properties:this.removePropertiesWithPossibleUserInfo(i),measurements:n})}}sendTelemetryException(e,t,n){if(this.shouldSendErrorTelemetry()&&this.errorOptIn&&e){t=_(_({},t),this.getCommonProperties());let r=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));e.stack&&(e.stack=this.anonymizeFilePaths(e.stack,this.firstParty)),this.telemetryAppender.logException(e,{properties:this.removePropertiesWithPossibleUserInfo(r),measurements:n})}}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map((e=>e.dispose())))}}{constructor(e,t,n,r){let i=new class{constructor(e,t){this._isInstantiated=!1,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e,Dc()!==Nc.OFF&&this.instantiateAppender()}logEvent(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):!this._isInstantiated&&Dc()===Nc.ON&&this._eventQueue.push({eventName:e,data:t})}logException(e,t){this._telemetryClient?this._telemetryClient.logException(e,t):!this._isInstantiated&&Dc()!==Nc.OFF&&this._exceptionQueue.push({exception:e,data:t})}flush(){return b(this,null,(function*(){this._telemetryClient&&(yield this._telemetryClient.flush(),this._telemetryClient=void 0)}))}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.logEvent(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.logException(e,t))),this._exceptionQueue=[]}instantiateAppender(){this._isInstantiated||this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._isInstantiated=!0,this._flushQueues()})).catch((e=>{console.error(e)}))}}(n,Uc);n&&0===n.indexOf("AIF-")&&(r=!0),super(e,t,i,{release:navigator.appVersion,platform:"web",architecture:"web"},r)}}},742:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=c(e),a=o[0],s=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},764:(e,t,n)=>{"use strict";var r=n(742),i=n(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);var i=function(e){if(c.isBuffer(e)){var t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||H(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return l(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=s(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return r?-1:O(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function I(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(H(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return j(O(t,e.length-n),e,n,r)}function x(e,t,n,r){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function b(e,t,n,r){return x(e,t,n,r)}function T(e,t,n,r){return j(q(t),e,n,r)}function C(e,t,n,r){return j(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(V(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(V(o,Uint8Array)&&(o=c.from(o)),!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(V(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(u[f]!==l[f]){o=u[f],a=l[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=z[e[o]];return i}function N(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function O(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}var z=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},645:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},300:(e,t)=>{"use strict";var n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n)return n;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},798:(e,t,n)=>{"use strict";var r=65536,i=n(91).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>r)for(var a=0;a<e;a+=r)o.getRandomValues(n.slice(a,a+r));else o.getRandomValues(n);return"function"==typeof t?process.nextTick((function(){t(null,n)})):n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},91:(e,t,n)=>{var r=n(764),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},509:(e,t,n)=>{var r=n(764),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},66:(e,t,n)=>{var r=n(509).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%i,u=Math.min(o-s,i-c),l=0;l<u;l++)n[c+l]=e[s+l];s+=u,(a+=u)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},72:(e,t,n)=>{var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(448),r.sha1=n(336),r.sha224=n(432),r.sha256=n(499),r.sha384=n(686),r.sha512=n(816)},448:(e,t,n)=>{var r=n(717),i=n(66),o=n(509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=r)<<5|t>>>27)+l(h,i,o,s)+c+n[d]+a[h];c=s,s=o,o=u(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},336:(e,t,n)=>{var r=n(717),i=n(66),o=n(509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(r)+f(p,i,o,s)+c+n[h]+a[p]|0;c=s,s=o,o=l(i),i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},432:(e,t,n)=>{var r=n(717),i=n(499),o=n(66),a=n(509).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},499:(e,t,n)=>{var r=n(717),i=n(66),o=n(509).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,v=0|this._h,m=0;m<16;++m)n[m]=e.readInt32BE(4*m);for(;m<64;++m)n[m]=0|(((t=n[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[m-7]+h(n[m-15])+n[m-16];for(var y=0;y<64;++y){var w=v+d(c)+u(c,p,g)+a[y]+n[y]|0,I=f(r)+l(r,i,o)|0;v=g,g=p,p=c,c=s+w|0,s=o,o=i,i=r,r=w+I|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=v+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},686:(e,t,n)=>{var r=n(717),i=n(816),o=n(66),a=n(509).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},816:(e,t,n)=>{var r=n(717),i=n(66),o=n(509).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function l(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,w=0|this._hh,I=0|this._al,_=0|this._bl,x=0|this._cl,b=0|this._dl,T=0|this._el,C=0|this._fl,S=0|this._gl,E=0|this._hl,k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){var A=t[k-30],P=t[k-30+1],R=h(A,P),N=p(P,A),L=g(A=t[k-4],P=t[k-4+1]),M=v(P,A),D=t[k-14],U=t[k-14+1],B=t[k-32],F=t[k-32+1],O=N+U|0,q=R+D+m(O,N)|0;q=(q=q+L+m(O=O+M|0,M)|0)+B+m(O=O+F|0,F)|0,t[k]=q,t[k+1]=O}for(var j=0;j<160;j+=2){q=t[j],O=t[j+1];var V=l(n,r,i),H=l(I,_,x),z=f(n,I),W=f(I,n),K=d(s,T),$=d(T,s),G=a[j],X=a[j+1],J=u(s,c,y),Y=u(T,C,S),Q=E+$|0,Z=w+K+m(Q,E)|0;Z=(Z=(Z=Z+J+m(Q=Q+Y|0,Y)|0)+G+m(Q=Q+X|0,X)|0)+q+m(Q=Q+O|0,O)|0;var ee=W+H|0,te=z+V+m(ee,W)|0;w=y,E=S,y=c,S=C,c=s,C=T,s=o+Z+m(T=b+Q|0,b)|0,o=i,b=x,i=r,x=_,r=n,_=I,n=Z+te+m(I=Q+ee|0,Q)|0}this._al=this._al+I|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+b|0,this._el=this._el+T|0,this._fl=this._fl+C|0,this._gl=this._gl+S|0,this._hl=this._hl+E|0,this._ah=this._ah+n+m(this._al,I)|0,this._bh=this._bh+r+m(this._bl,_)|0,this._ch=this._ch+i+m(this._cl,x)|0,this._dh=this._dh+o+m(this._dl,b)|0,this._eh=this._eh+s+m(this._el,T)|0,this._fh=this._fh+c+m(this._fl,C)|0,this._gh=this._gh+y+m(this._gl,S)|0,this._hh=this._hh+w+m(this._hl,E)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{v1:()=>h,v3:()=>x,v4:()=>b,v5:()=>S});var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=[],s=0;s<256;++s)a.push((s+256).toString(16).substr(1));const c=function(e,t){var n=t||0;return(a[e[n+0]]+a[e[n+1]]+a[e[n+2]]+a[e[n+3]]+"-"+a[e[n+4]]+a[e[n+5]]+"-"+a[e[n+6]]+a[e[n+7]]+"-"+a[e[n+8]]+a[e[n+9]]+"-"+a[e[n+10]]+a[e[n+11]]+a[e[n+12]]+a[e[n+13]]+a[e[n+14]]+a[e[n+15]]).toLowerCase()};var u,l,f=0,d=0;const h=function(e,t,n){var r=t&&n||0,i=t||new Array(16),a=(e=e||{}).node||u,s=void 0!==e.clockseq?e.clockseq:l;if(null==a||null==s){var h=e.random||(e.rng||o)();null==a&&(a=u=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==s&&(s=l=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),g=void 0!==e.nsecs?e.nsecs:d+1,v=p-f+(g-d)/1e4;if(v<0&&void 0===e.clockseq&&(s=s+1&16383),(v<0||p>f)&&void 0===e.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=p,d=g,l=s;var m=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;i[r++]=m>>>24&255,i[r++]=m>>>16&255,i[r++]=m>>>8&255,i[r++]=255&m;var y=p/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var w=0;w<6;++w)i[r+w]=a[w];return t||c(i)};function p(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(r)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(r)||16!==r.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var a=n(r.concat(e));if(a[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return c(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function g(e){return 14+(e+64>>>9<<4)+1}function v(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function m(e,t,n,r,i,o){return v((a=v(v(t,e),v(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function y(e,t,n,r,i,o,a){return m(t&n|~t&r,e,t,i,o,a)}function w(e,t,n,r,i,o,a){return m(t&r|n&~r,e,t,i,o,a)}function I(e,t,n,r,i,o,a){return m(t^n^r,e,t,i,o,a)}function _(e,t,n,r,i,o,a){return m(n^(t|~r),e,t,i,o,a)}const x=p("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,u=i,l=o;n=y(n,r,i,o,e[a],7,-680876936),o=y(o,n,r,i,e[a+1],12,-389564586),i=y(i,o,n,r,e[a+2],17,606105819),r=y(r,i,o,n,e[a+3],22,-1044525330),n=y(n,r,i,o,e[a+4],7,-176418897),o=y(o,n,r,i,e[a+5],12,1200080426),i=y(i,o,n,r,e[a+6],17,-1473231341),r=y(r,i,o,n,e[a+7],22,-45705983),n=y(n,r,i,o,e[a+8],7,1770035416),o=y(o,n,r,i,e[a+9],12,-1958414417),i=y(i,o,n,r,e[a+10],17,-42063),r=y(r,i,o,n,e[a+11],22,-1990404162),n=y(n,r,i,o,e[a+12],7,1804603682),o=y(o,n,r,i,e[a+13],12,-40341101),i=y(i,o,n,r,e[a+14],17,-1502002290),n=w(n,r=y(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=w(o,n,r,i,e[a+6],9,-1069501632),i=w(i,o,n,r,e[a+11],14,643717713),r=w(r,i,o,n,e[a],20,-373897302),n=w(n,r,i,o,e[a+5],5,-701558691),o=w(o,n,r,i,e[a+10],9,38016083),i=w(i,o,n,r,e[a+15],14,-660478335),r=w(r,i,o,n,e[a+4],20,-405537848),n=w(n,r,i,o,e[a+9],5,568446438),o=w(o,n,r,i,e[a+14],9,-1019803690),i=w(i,o,n,r,e[a+3],14,-187363961),r=w(r,i,o,n,e[a+8],20,1163531501),n=w(n,r,i,o,e[a+13],5,-1444681467),o=w(o,n,r,i,e[a+2],9,-51403784),i=w(i,o,n,r,e[a+7],14,1735328473),n=I(n,r=w(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=I(o,n,r,i,e[a+8],11,-2022574463),i=I(i,o,n,r,e[a+11],16,1839030562),r=I(r,i,o,n,e[a+14],23,-35309556),n=I(n,r,i,o,e[a+1],4,-1530992060),o=I(o,n,r,i,e[a+4],11,1272893353),i=I(i,o,n,r,e[a+7],16,-155497632),r=I(r,i,o,n,e[a+10],23,-1094730640),n=I(n,r,i,o,e[a+13],4,681279174),o=I(o,n,r,i,e[a],11,-358537222),i=I(i,o,n,r,e[a+3],16,-722521979),r=I(r,i,o,n,e[a+6],23,76029189),n=I(n,r,i,o,e[a+9],4,-640364487),o=I(o,n,r,i,e[a+12],11,-421815835),i=I(i,o,n,r,e[a+15],16,530742520),n=_(n,r=I(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=_(o,n,r,i,e[a+7],10,1126891415),i=_(i,o,n,r,e[a+14],15,-1416354905),r=_(r,i,o,n,e[a+5],21,-57434055),n=_(n,r,i,o,e[a+12],6,1700485571),o=_(o,n,r,i,e[a+3],10,-1894986606),i=_(i,o,n,r,e[a+10],15,-1051523),r=_(r,i,o,n,e[a+1],21,-2054922799),n=_(n,r,i,o,e[a+8],6,1873313359),o=_(o,n,r,i,e[a+15],10,-30611744),i=_(i,o,n,r,e[a+6],15,-1560198380),r=_(r,i,o,n,e[a+13],21,1309151649),n=_(n,r,i,o,e[a+4],6,-145523070),o=_(o,n,r,i,e[a+11],10,-1120210379),i=_(i,o,n,r,e[a+2],15,718787259),r=_(r,i,o,n,e[a+9],21,-343485551),n=v(n,s),r=v(r,c),i=v(i,u),o=v(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(g(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),b=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return c(r)};function T(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function C(e,t){return e<<t|e>>>32-t}const S=p("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];s[c]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=s[f][h];for(var p=16;p<80;++p)d[p]=C(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var g=n[0],v=n[1],m=n[2],y=n[3],w=n[4],I=0;I<80;++I){var _=Math.floor(I/20),x=C(g,5)+T(_,v,m,y)+w+t[_]+d[I]>>>0;w=y,y=m,m=C(v,30)>>>0,v=g,g=x}n[0]=n[0]+g>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},189:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=void 0;var i=n(926),o=n(800),a=n(800);function s(e){return function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if("number"==typeof e)throw new Error("Browser implementation does currently not support externalized strings.");return o.localize.apply(void 0,r([e,t],n))}}function c(e){return o.setPseudo("pseudo"===(null==e?void 0:e.locale.toLowerCase())),s}Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}}),t.loadMessageBundle=s,t.config=c,i.default.install(Object.freeze({loadMessageBundle:s,config:c}))},800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var r,i,o,a=n(926);function s(e){return void 0!==e}function c(e,n){return t.isPseudo&&(e="［"+e.replace(/[aouei]/g,"$&$&")+"］"),0===n.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var r=t[0],i=n[r],o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}))}(o=t.MessageFormat||(t.MessageFormat={})).file="file",o.bundle="bundle",o.both="both",(i=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",i.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&s(t.key)&&s(t.comment)}}(r||(r={})),t.isDefined=s,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return c(t,n)},t.loadMessageBundle=function(e){return a.default().loadMessageBundle(e)},t.config=function(e){return a.default().config(e)}},926:(e,t)=>{"use strict";var n;function r(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(r||(r={})),t.default=r},23:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(r=a+"/"+r,i=47===a.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var c=n.length-s,u=a<c?a:c,l=-1,f=0;f<=u;++f){if(f===u){if(c>u){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else a>u&&(47===e.charCodeAt(i+f)?l=f:0===f&&(l=0));break}var d=e.charCodeAt(i+f);if(d!==n.charCodeAt(s+f))break;47===d&&(l=f)}var h="";for(f=i+l+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+l):(s+=l,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===o&&(a=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1);else if(!o){r=s+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var a=-1,s=0,c=-1,u=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(n.base=n.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(n.name=e.slice(1,a),n.base=e.slice(1,c)):(n.name=e.slice(s,a),n.base=e.slice(s,c)),n.ext=e.slice(a,c)),s>0?n.dir=e.slice(0,s-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},808:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var l,f,d,h,p=e[u].replace(a,"%20"),g=p.indexOf(r);g>=0?(l=p.substr(0,g),f=p.substr(g+1)):(l=p,f=""),d=decodeURIComponent(l),h=decodeURIComponent(f),t(o,d)?Array.isArray(o[d])?o[d].push(h):o[d]=[o[d],h]:o[d]=h}return o}},368:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},642:(e,t,n)=>{"use strict";t.decode=t.parse=n(808),t.encode=t.stringify=n(368)},727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureActiveDirectoryService=t.REFRESH_NETWORK_FAILURE=t.onDidChangeSessions=void 0;const r=n(798),i=n(642),o=n(764),a=n(549),s=n(189),c=n(234),u=n(300),l=n(64),f=n(255),d=n(147),h=n(654),p=n(137),g=n(151),v=n(23),m=s.loadMessageBundle(),y="https://vscode-redirect.azurewebsites.net/",w="https://login.microsoftonline.com/";t.onDidChangeSessions=new a.EventEmitter,t.REFRESH_NETWORK_FAILURE="Network failure";class I extends a.EventEmitter{handleUri(e){this.fire(e)}}class _{constructor(e){this._context=e,this._tokens=[],this._refreshTimeouts=new Map,this._pendingStates=new Map,this._codeExchangePromises=new Map,this._codeVerfifiers=new Map,this._tokenStorage=new p.BetterTokenStorage("microsoft.login.keylist",e),this._uriHandler=new I,e.subscriptions.push(a.window.registerUriHandler(this._uriHandler)),e.subscriptions.push(this._tokenStorage.onDidChangeInOtherWindow((e=>this.checkForUpdates(e))))}async initialize(){f.default.info("Reading sessions from secret storage...");let e=await this._tokenStorage.getAll();f.default.info(`Got ${e.length} stored sessions`),e.length||(e=await this.migrate());const n=e.map((async e=>{f.default.trace(`Read the following stored session with scopes: ${e.scope}`);const n=e.scope.split(" "),r={scopes:n,scopeStr:e.scope,scopesToSend:n.filter((e=>!e.startsWith("VSCODE_"))).join(" "),clientId:this.getClientId(n),tenant:this.getTenantId(n)};try{await this.refreshToken(e.refreshToken,r,e.id)}catch(n){n.message===t.REFRESH_NETWORK_FAILURE?this._tokens.push({accessToken:void 0,refreshToken:e.refreshToken,account:{label:e.account.label??e.account.displayName,id:e.account.id},scope:e.scope,sessionId:e.id}):(f.default.error(n),await this.removeSession(e.id))}})),r=await Promise.allSettled(n);for(const e of r)"rejected"===e.status&&(f.default.error(`Failed to initialize stored data: ${e.reason}`),this.clearSessions())}async getSessions(e){if(!e){f.default.info("Getting sessions for all scopes...");const e=this._tokens.map((e=>this.convertToSessionSync(e)));return f.default.info(`Got ${e.length} sessions for all scopes...`),e}const t=[...e];t.includes("openid")||t.push("openid"),t.includes("email")||t.push("email"),t.includes("profile")||t.push("profile");let n=t.sort().join(" ");if(f.default.info(`Getting sessions for the following scopes: ${n}`),this._refreshingPromise){f.default.info("Refreshing in progress. Waiting for completion before continuing.");try{await this._refreshingPromise}catch(e){}}let r=this._tokens.filter((e=>e.scope===n));return r.length||(n=e.sort().join(" "),f.default.trace(`No session found with idtoken scopes... Using fallback scope list of: ${n}`),r=this._tokens.filter((e=>e.scope===n))),f.default.info(`Got ${r.length} sessions for scopes: ${n}`),Promise.all(r.map((e=>this.convertToSession(e))))}createSession(e){e.includes("openid")||e.push("openid"),e.includes("email")||e.push("email"),e.includes("profile")||e.push("profile");const t={scopes:e=e.sort(),scopeStr:e.join(" "),scopesToSend:e.filter((e=>!e.startsWith("VSCODE_"))).join(" "),clientId:this.getClientId(e),tenant:this.getTenantId(e)};f.default.info(`Logging in for the following scopes: ${t.scopeStr}`),t.scopes.includes("offline_access")||f.default.info("Warning: The 'offline_access' scope was not included, so the generated token will not be able to be refreshed.");const n=void 0!==a.env.remoteName,r=void 0===a.env.remoteName&&a.env.uiKind===a.UIKind.Web;if(n||r)return this.createSessionWithoutLocalServer(t);try{return this.createSessionWithLocalServer(t)}catch(e){if(f.default.error(`Error creating session for scopes: ${t.scopeStr} Error: ${e}`),"Error listening to server"===e.message||"Closed"===e.message||"Timeout waiting for port"===e.message)return this.createSessionWithoutLocalServer(t);throw e}}async createSessionWithLocalServer(e){const t=(0,d.toBase64UrlEncoding)(r(32).toString("base64")),n=(0,d.toBase64UrlEncoding)(await(0,h.sha256)(t)),o=i.stringify({response_type:"code",response_mode:"query",client_id:e.clientId,redirect_uri:y,scope:e.scopesToSend,prompt:"select_account",code_challenge_method:"S256",code_challenge:n}),s=`${w}${e.tenant}/oauth2/v2.0/authorize?${o}`,c=new g.LoopbackAuthServer(v.join(__dirname,"../media"),s);let u;await c.start(),c.state=`${c.port},${encodeURIComponent(c.nonce)}`;try{a.env.openExternal(a.Uri.parse(`http://127.0.0.1:${c.port}/signin?nonce=${encodeURIComponent(c.nonce)}`));const{code:e}=await c.waitForOAuthResponse();u=e}finally{setTimeout((()=>{c.stop()}),5e3)}const l=await this.exchangeCodeForToken(u,t,e);return l.expiresIn&&this.setSessionTimeout(l.sessionId,l.refreshToken,e,l.expiresIn*_.REFRESH_TIMEOUT_MODIFIER),await this.setToken(l,e),f.default.info(`Login successful for scopes: ${e.scopeStr}`),await this.convertToSession(l)}async createSessionWithoutLocalServer(e){const t=await a.env.asExternalUri(a.Uri.parse(`${a.env.uriScheme}://vscode.microsoft-authentication`)),n=r(16).toString("base64"),i=(t.authority.match(/:([0-9]*)$/)||[])[1]||("https"===t.scheme?443:80),o=`${_.getCallbackEnvironment(t)},${i},${encodeURIComponent(n)},${encodeURIComponent(t.query)}`,s=`${w}${e.tenant}/oauth2/v2.0/authorize`;let c=a.Uri.parse(s);const u=(0,d.toBase64UrlEncoding)(r(32).toString("base64")),l=(0,d.toBase64UrlEncoding)(await(0,h.sha256)(u));c=c.with({query:`response_type=code&client_id=${encodeURIComponent(e.clientId)}&response_mode=query&redirect_uri=${y}&state=${o}&scope=${e.scopesToSend}&prompt=select_account&code_challenge_method=S256&code_challenge=${l}`}),a.env.openExternal(c);const f=new Promise(((e,t)=>{const n=setTimeout((()=>{clearTimeout(n),t("Login timed out.")}),3e5)})),p=this._pendingStates.get(e.scopeStr)||[];this._pendingStates.set(e.scopeStr,[...p,o]);let g=this._codeExchangePromises.get(e.scopeStr);return g||(g=this.handleCodeResponse(e),this._codeExchangePromises.set(e.scopeStr,g)),this._codeVerfifiers.set(o,u),Promise.race([g,f]).finally((()=>{this._pendingStates.delete(e.scopeStr),this._codeExchangePromises.delete(e.scopeStr),this._codeVerfifiers.delete(o)}))}async removeSession(e,n=!0){f.default.info(`Logging out of session '${e}'`);const r=this._tokens.findIndex((t=>t.sessionId===e));if(-1===r)return void f.default.info(`Session not found '${e}'`);const i=this._tokens[r];this._tokens.splice(r,1),this.removeSessionTimeout(e),n&&await this._tokenStorage.delete(e);const o=this.convertToSessionSync(i);return f.default.info(`Sending change event for session that was removed with scopes: ${i.scope}`),t.onDidChangeSessions.fire({added:[],removed:[o],changed:[]}),f.default.info(`Logged out of session '${e}' with scopes: ${i.scope}`),o}async clearSessions(){f.default.info("Logging out of all sessions"),this._tokens=[],await this._tokenStorage.deleteAll(),this._refreshTimeouts.forEach((e=>{clearTimeout(e)})),this._refreshTimeouts.clear()}setSessionTimeout(e,n,r,i){this.removeSessionTimeout(e),this._refreshTimeouts.set(e,setTimeout((async()=>{try{const i=await this.refreshToken(n,r,e);f.default.info("Triggering change session event..."),t.onDidChangeSessions.fire({added:[],removed:[],changed:[this.convertToSessionSync(i)]})}catch(n){n.message!==t.REFRESH_NETWORK_FAILURE&&await this.removeSession(e)}}),i))}removeSessionTimeout(e){const t=this._refreshTimeouts.get(e);t&&(clearTimeout(t),this._refreshTimeouts.delete(e))}convertToTokenSync(e,t,n){let r,i;try{e.id_token?r=JSON.parse(o.Buffer.from(e.id_token.split(".")[1],"base64").toString()):(f.default.info("Attempting to parse access_token instead since no id_token was included in the response."),r=JSON.parse(o.Buffer.from(e.access_token.split(".")[1],"base64").toString()))}catch(e){throw e}i=r.name&&r.email?`${r.name} - ${r.email}`:r.email??r.unique_name??r.preferred_username??"user@example.com";const a=`${r.tid}/${r.oid??r.altsecid??""+r.ipd??""}`;return{expiresIn:e.expires_in,expiresAt:e.expires_in?Date.now()+1e3*e.expires_in:void 0,accessToken:e.access_token,idToken:e.id_token,refreshToken:e.refresh_token,scope:t.scopeStr,sessionId:n||`${a}/${(0,c.v4)()}`,account:{label:i,id:a}}}convertToSessionSync(e){return{id:e.sessionId,accessToken:e.accessToken,idToken:e.idToken,account:e.account,scopes:e.scope.split(" ")}}async convertToSession(e){if(e.accessToken&&(!e.expiresAt||e.expiresAt>Date.now()))return e.expiresAt?f.default.info(`Token available from cache (for scopes ${e.scope}), expires in ${e.expiresAt-Date.now()} milliseconds`):f.default.info("Token available from cache (for scopes ${token.scope})"),{id:e.sessionId,accessToken:e.accessToken,idToken:e.idToken,account:e.account,scopes:e.scope.split(" ")};try{f.default.info(`Token expired or unavailable (for scopes ${e.scope}), trying refresh`);const t=e.scope.split(" "),n={scopes:t,scopeStr:e.scope,scopesToSend:t.filter((e=>!e.startsWith("VSCODE_"))).join(" "),clientId:this.getClientId(t),tenant:this.getTenantId(t)},r=await this.refreshToken(e.refreshToken,n,e.sessionId);if(r.accessToken)return{id:e.sessionId,accessToken:r.accessToken,idToken:r.idToken,account:e.account,scopes:e.scope.split(" ")};throw new Error}catch(e){throw new Error("Unavailable due to network problems")}}async refreshToken(e,t,n){this._refreshingPromise=this.doRefreshToken(e,t,n);try{return await this._refreshingPromise}finally{this._refreshingPromise=void 0}}async doRefreshToken(e,n,r){f.default.info(`Refreshing token for scopes: ${n.scopeStr}`);const o=i.stringify({refresh_token:e,client_id:n.clientId,grant_type:"refresh_token",scope:n.scopesToSend}),s=`${(await a.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"))?.microsoft||w}${n.tenant}/oauth2/v2.0/token`;try{const e=await this.fetchTokenResponse(s,o,n),t=this.convertToTokenSync(e,n,r);return t.expiresIn&&this.setSessionTimeout(t.sessionId,t.refreshToken,n,t.expiresIn*_.REFRESH_TIMEOUT_MODIFIER),await this.setToken(t,n),f.default.info(`Token refresh success for scopes: ${t.scope}`),t}catch(i){if(i.message===t.REFRESH_NETWORK_FAILURE)throw this.setSessionTimeout(r,e,n,_.POLLING_CONSTANT),i;throw a.window.showErrorMessage(m("signOut","You have been signed out because reading stored authentication information failed.")),f.default.error(`Refreshing token failed (for scopes: ${n.scopeStr}): ${i.message}`),new Error("Refreshing token failed")}}getClientId(e){return e.reduce(((e,t)=>t.startsWith("VSCODE_CLIENT_ID:")?t.split("VSCODE_CLIENT_ID:")[1]:e),void 0)??"aebc6443-996d-45c2-90f0-388ff96faa56"}getTenantId(e){return e.reduce(((e,t)=>t.startsWith("VSCODE_TENANT:")?t.split("VSCODE_TENANT:")[1]:e),void 0)??"organizations"}async handleCodeResponse(e){let t;return new Promise(((n,r)=>{t=this._uriHandler.event((async t=>{try{const r=function(e){return e.query.split("&").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{})}(t),i=r.code,o=this._pendingStates.get(e.scopeStr)||[];if(!o.includes(r.state)&&!o.includes(decodeURIComponent(r.state)))throw new Error("State does not match.");const a=this._codeVerfifiers.get(r.state)??this._codeVerfifiers.get(decodeURIComponent(r.state));if(!a)throw new Error("No available code verifier");const s=await this.exchangeCodeForToken(i,a,e);s.expiresIn&&this.setSessionTimeout(s.sessionId,s.refreshToken,e,s.expiresIn*_.REFRESH_TIMEOUT_MODIFIER),await this.setToken(s,e);const c=await this.convertToSession(s);n(c)}catch(e){r(e)}}))})).then((e=>(t.dispose(),e))).catch((e=>{throw t.dispose(),e}))}async exchangeCodeForToken(e,t,n){f.default.info(`Exchanging login code for token for scopes: ${n.scopeStr}`);try{const r=i.stringify({grant_type:"authorization_code",code:e,client_id:n.clientId,scope:n.scopesToSend,code_verifier:t,redirect_uri:y}),o=`${(await a.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"))?.microsoft||w}${n.tenant}/oauth2/v2.0/token`,s=await this.fetchTokenResponse(o,r,n);return f.default.info(`Exchanging login code for token (for scopes: ${n.scopeStr}) succeeded!`),this.convertToTokenSync(s,n)}catch(e){throw f.default.error(`Error exchanging code for token (for scopes ${n.scopeStr}): ${e}`),e}}async fetchTokenResponse(e,n,r){let i=0;for(;i<=3;){let t,o;i++;try{t=await(0,u.default)(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":n.length.toString()},body:n})}catch(e){o=e.message??e}if(t&&!(t.status>499)){if(!t.ok)throw new Error(await t.text());return await t.json()}if(i>3){f.default.error(`Fetching token failed for scopes (${r.scopeStr}): ${t?await t.text():o}`);break}await new Promise((e=>setTimeout(e,5*i*i*1e3)))}throw new Error(t.REFRESH_NETWORK_FAILURE)}async setToken(e,t){f.default.info(`Setting token for scopes: ${t.scopeStr}`);const n=this._tokens.findIndex((t=>t.sessionId===e.sessionId));n>-1?this._tokens.splice(n,1,e):this._tokens.push(e),await this._tokenStorage.store(e.sessionId,{id:e.sessionId,refreshToken:e.refreshToken,scope:e.scope,account:e.account})}async checkForUpdates(e){const n=[];for(const n of e.added){const r=await this._tokenStorage.get(n);if(!r)return void f.default.error("session not found that was apparently just added");if(!this._tokens.some((e=>e.scope===r.scope&&e.sessionId===r.id))&&r.refreshToken)try{const e=r.scope.split(" "),n={scopes:e,scopeStr:r.scope,scopesToSend:e.filter((e=>!e.startsWith("VSCODE_"))).join(" "),clientId:this.getClientId(e),tenant:this.getTenantId(e)};f.default.info(`Session added in another window with scopes: ${r.scope}`);const i=await this.refreshToken(r.refreshToken,n,r.id);return f.default.info(`Sending change event for session that was added with scopes: ${n.scopeStr}`),void t.onDidChangeSessions.fire({added:[this.convertToSessionSync(i)],removed:[],changed:[]})}catch(e){return void(e.message!==t.REFRESH_NETWORK_FAILURE&&await this.removeSession(r.id))}}for(const{value:t}of e.removed){f.default.info(`Session removed in another window with scopes: ${t.scope}`);const e=await this.removeSession(t.id,!1);e&&n.push(e)}}async migrate(){if(f.default.info("Attempting to migrate stored sessions."),this._context.globalState.get("microsoft-better-storage-layout-migrated")?.migrated)return[];await this._context.globalState.update("microsoft-better-storage-layout-migrated",{migrated:!0});const e=new l.Keychain(this._context),t=await e.getToken();if(!t)return f.default.info("No stored sessions found."),[];try{const n=JSON.parse(t);return f.default.info(`Migrated ${n.length} stored sessions.`),n}catch(e){return f.default.info("Failed to parse stored sessions. Migrating no sessions."),[]}finally{await e.deleteToken()}}static getCallbackEnvironment(e){if("https"!==e.scheme&&"http"!==e.scheme)return e.scheme;switch(e.authority){case"online.visualstudio.com":return"vso";case"online-ppe.core.vsengsaas.visualstudio.com":return"vsoppe";case"online.dev.core.vsengsaas.visualstudio.com":return"vsodev";default:return e.authority}}}t.AzureActiveDirectoryService=_,_.REFRESH_TIMEOUT_MODIFIER=2e3/3,_.POLLING_CONSTANT=18e5},137:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BetterTokenStorage=void 0;const r=n(255),i=n(549);t.BetterTokenStorage=class{constructor(e,t){this.keylistKey=e,this._operationInProgress=!1,this._tokensPromise=Promise.resolve(new Map),this._didChangeInOtherWindow=new i.EventEmitter,this.onDidChangeInOtherWindow=this._didChangeInOtherWindow.event,this._secretStorage=t.secrets,t.subscriptions.push(t.secrets.onDidChange((e=>this.handleSecretChange(e)))),this.initialize()}initialize(){this._operationInProgress=!0,this._tokensPromise=new Promise(((e,t)=>{this._secretStorage.get(this.keylistKey).then((t=>{if(!t)return void e(new Map);const n=JSON.parse(t).map((e=>new Promise(((t,n)=>{this._secretStorage.get(e).then((n=>{t({key:e,value:n})}),n)}))));Promise.allSettled(n).then((t=>{const n=new Map;t.forEach((e=>{if("fulfilled"===e.status&&e.value.value){const t=this.parseSecret(e.value.value);n.set(e.value.key,t)}else"rejected"===e.status?r.default.error(e.reason):r.default.error("Key was not found in SecretStorage.")})),e(n)}))}),(t=>{r.default.error(t),e(new Map)}))})),this._operationInProgress=!1}async get(e){return(await this.getTokens()).get(e)}async getAll(){const e=await this.getTokens(),t=new Array;for(const[n,r]of e)t.push(r);return t}async store(e,t){const n=await this.getTokens(),i=!n.has(e);n.set(e,t);const o=this.serializeSecret(t);this._operationInProgress=!0,this._tokensPromise=new Promise(((t,a)=>{const s=[this._secretStorage.store(e,o)];i&&s.push(this.updateKeyList(n)),Promise.allSettled(s).then((e=>{e.forEach((e=>{"rejected"===e.status&&r.default.error(e.reason)})),t(n)}))})),this._operationInProgress=!1}async delete(e){const t=await this.getTokens();t.has(e)&&(t.delete(e),this._operationInProgress=!0,this._tokensPromise=new Promise(((n,i)=>{Promise.allSettled([this._secretStorage.delete(e),this.updateKeyList(t)]).then((e=>{e.forEach((e=>{"rejected"===e.status&&r.default.error(e.reason)})),n(t)}))})),this._operationInProgress=!1)}async deleteAll(){const e=await this.getTokens(),t=[];for(const[n]of e)t.push(this.delete(n));await Promise.all(t)}async updateKeyList(e){const t=[];for(const[n]of e)t.push(n);const n=JSON.stringify(t);await this._secretStorage.store(this.keylistKey,n)}parseSecret(e){return JSON.parse(e)}serializeSecret(e){return JSON.stringify(e)}async getTokens(){let e;do{e=await this._tokensPromise}while(this._operationInProgress);return e}async handleSecretChange(e){const t=e.key;if(t===this.keylistKey)return;const n=await this.getTokens();this._operationInProgress=!0,this._tokensPromise=new Promise(((e,i)=>{this._secretStorage.get(t).then((e=>{if(!e){if(n.has(t)){const e=n.get(t);n.delete(t),this._didChangeInOtherWindow.fire({added:[],updated:[],removed:[{key:t,value:e}]})}return n}const r=this.parseSecret(e),i=n.get(t);return i?(e!==this.serializeSecret(i)&&(n.set(t,r),this._didChangeInOtherWindow.fire({added:[],updated:[t],removed:[]})),n):(n.set(t,r),this._didChangeInOtherWindow.fire({added:[t],updated:[],removed:[]}),n)}),(t=>{r.default.error(t),e(n)})).then(e,(t=>{r.default.error(t),e(n)}))})),this._operationInProgress=!1}}},151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServer=t.startServer=void 0,t.startServer=function(e){throw new Error("Not implemented")},t.createServer=function(e){throw new Error("Not implemented")}},654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0,t.sha256=async function(e){return n(72)("sha256").update(e).digest("base64")}},64:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Keychain=void 0;const r=n(549),i=n(255),o=n(189).loadMessageBundle(),a="microsoft.login";t.Keychain=class{constructor(e){this.context=e}async setToken(e){try{return await this.context.secrets.store(a,e)}catch(e){if(i.default.error(`Setting token failed: ${e}`),"The specified item already exists in the keychain."===e.message)return;const t=o("troubleshooting","Troubleshooting Guide");await r.window.showErrorMessage(o("keychainWriteError","Writing login information to the keychain failed with error '{0}'.",e.message),t)===t&&r.env.openExternal(r.Uri.parse("https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues"))}}async getToken(){try{return await this.context.secrets.get(a)}catch(e){return i.default.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(a)}catch(e){return i.default.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}}},255:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(549);function i(e,t,n=" "){return n.repeat(Math.max(0,t-e.length))+e}const o=new class{constructor(){this.output=r.window.createOutputChannel("Microsoft Authentication")}data2String(e){return e instanceof Error?e.stack||e.message:!1===e.success&&e.message?e.message:e.toString()}trace(e,t){this.logLevel("Trace",e,t)}info(e,t){this.logLevel("Info",e,t)}error(e,t){this.logLevel("Error",e,t)}logLevel(e,t,n){this.output.appendLine(`[${e}  - ${this.now()}] ${t}`),n&&this.output.appendLine(this.data2String(n))}now(){const e=new Date;return i(e.getUTCHours()+"",2,"0")+":"+i(e.getMinutes()+"",2,"0")+":"+i(e.getUTCSeconds()+"",2,"0")+"."+e.getMilliseconds()}};t.default=o},147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBase64UrlEncoding=void 0,t.toBase64UrlEncoding=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}},549:e=>{"use strict";e.exports=require("vscode")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const t=n(549),i=n(727),o=n(331);e.activate=async function(e){const{name:n,version:r,aiKey:a}=e.extension.packageJSON,s=new o.default(n,r,a),c=new i.AzureActiveDirectoryService(e);await c.initialize(),e.subscriptions.push(t.authentication.registerAuthenticationProvider("microsoft","Microsoft",{onDidChangeSessions:i.onDidChangeSessions.event,getSessions:e=>c.getSessions(e),createSession:async e=>{try{s.sendTelemetryEvent("login",{scopes:JSON.stringify(e.map((e=>e.replace(/[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}/i,"{guid}"))))});const t=await c.createSession(e.sort());return i.onDidChangeSessions.fire({added:[t],removed:[],changed:[]}),t}catch(e){throw s.sendTelemetryEvent("loginFailed"),e}},removeSession:async e=>{try{s.sendTelemetryEvent("logout");const t=await c.removeSession(e);t&&i.onDidChangeSessions.fire({added:[],removed:[t],changed:[]})}catch(e){s.sendTelemetryEvent("logoutFailed")}}},{supportsMultipleAccounts:!0}))},e.deactivate=function(){}})();var i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
  //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/b7730c807c1e0fdacdcc91a854bb963715b2a89b/extensions/microsoft-authentication/dist/browser/extension.js.map