@codingame/monaco-vscode-github-authentication-default-extension 37.6.1 → 38.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- "use strict";var jT=Object.create;var tf=Object.defineProperty;var zT=Object.getOwnPropertyDescriptor;var KT=Object.getOwnPropertyNames;var WT=Object.getPrototypeOf,$T=Object.prototype.hasOwnProperty;var Y=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var rt=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},nf=(r,e)=>{for(var t in e)tf(r,t,{get:e[t],enumerable:!0})},IE=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of KT(e))!$T.call(r,i)&&i!==t&&tf(r,i,{get:()=>e[i],enumerable:!(n=zT(e,i))||n.enumerable});return r};var tn=(r,e,t)=>(t=r!=null?jT(WT(r)):{},IE(e||!r||!r.__esModule?tf(t,"default",{value:r,enumerable:!0}):t,r)),qT=r=>IE(tf({},"__esModule",{value:!0}),r);var v=Y(()=>{});var qa,ni,yn,nn,Xa,_u,E_=Y(()=>{"use strict";v();qa="function",ni="object",yn="undefined",nn="prototype",Xa=Object,_u=Xa[nn]});function sr(r,e){return r||e}function Be(r,e){return r?.[e]}function Ee(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function cD(r,e,t){var n=Ee(r,t);return n.e?e:n.v}function vf(r){return function(e){return typeof e===r}}function LE(r){var e="[object "+r+"]";return function(t){return!!(t&&_f(t)===e)}}function _f(r){return hu[gu].call(r)}function L_(r,e){return typeof r===e}function Te(r){return typeof r===wo||r===wo}function fD(r){return r===Vr}function B(r){return r===rr||Te(r)}function on(r){return r===rr||r===Vr}function FE(r){return!!r||r!==Vr}function lD(r){return!g_&&(g_=["string","number","boolean",wo,"symbol","bigint"]),r!==Eu&&g_.indexOf(r)!==-1}function tr(r){return!r&&B(r)?!1:!!r&&typeof r===Eu}function lt(r){return!!(r&&r.then&&se(r.then))}function F_(r){return!r||!an(r)}function an(r){return!(!r||cD(function(){return!(r&&0+r)},!r))}function U_(){}function vD(){return[]}function _D(){return!1}function te(r,e){var t=O_,n=hu[gu][dr](r);n===dD&&(r={stack:_r(r.stack),message:_r(r.message),name:_r(r.name)});try{t=JSON.stringify(r,rr,e?typeof e=="number"?e:4:Vr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):rr)||_r(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function hr(r){throw new Error(r)}function tt(r){throw new TypeError(r)}function pf(r){on(r)&&tt("Cannot convert undefined or null to object")}function UE(r){Ne(r)||tt("'"+te(r)+"' is not a string")}function Ar(r,e){return!!r&&hu.hasOwnProperty[dr](r,e)}function mD(r,e){return pf(r),Ar(r,e)||!!pD(r,e)}function ED(r){return r===pu||r===mu||r===jr}function ae(r,e,t){if(r&&(tr(r)||se(r))){for(var n in r)if(zt(r,n)&&e[dr](on(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Lo]>>>0,i=0;i<n&&!(i in r&&e[dr](on(t)?r:t,r[i],i,r)===-1);i++);}function Za(r,e,t){var n=e?e[r]:rr;return function(i){var o=(i?i[r]:rr)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?xn[dr](a,1):a)}tt('"'+_r(r)+'" not defined for '+te(i))}}function gD(r,e,t){var n=e?e[r]:rr;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?xn[dr](a,1):a)}tt('"'+_r(r)+'" not defined for '+te(i))}}function hD(r){return function(e){return e[r]}}function SD(r,e){var t,n=Lr.getOwnPropertyDescriptor;return!on(r)&&n&&(t=Ee(n,[r,e]).v||rr),!t&&!on(r)&&(t=Ee(function(){for(var i in r)if(i==e)return{enumerable:Ar(r,i)}}).v),t&&t.enumerable||!1}function ME(r){var e={};if(e[of.c]=!0,e[of.e]=!0,r.l){e.get=function(){return r.l.v};var t=TD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[of[n]]=fD(i)?e[of[n]]:i}),e}function H_(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),St(r,e,ME(a))}function Ye(r,e,t){return St(r,e,ME(t))}function HE(r,e,t,n,i){var o={};return ae(r,function(a,s){cf(o,a,e?s:a),cf(o,s,t?s:a)}),n?n(o):o}function cf(r,e,t,n){St(r,e,{value:t,enumerable:!0,writable:!1})}function GE(r){return r}function ID(r){return pf(r),r[pu]||rr}function BE(r,e){if((Q(r)||tr(r)||se(r))&&!DD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){BE(i,e)}),Kt(r)}return r}function Pn(r){return kE?BE(r,[]):r}function VE(r){return HE(r,1,0,Kt)}function yD(r){return HE(r,0,0,Kt)}function xD(r){var e={};return ae(r,function(t,n){cf(e,t,n[1]),cf(e,n[0],n[1])}),Kt(e)}function jE(r){return xD(r)}function KE(){var r;return typeof globalThis!==wo&&(r=globalThis),!r&&typeof self!==wo&&(r=self),!r&&typeof window!==wo&&(r=window),!r&&typeof global!==wo&&(r=global),r}function mf(){if(!h_){var r=Ee(KE).v||{};h_=r[AE]=r[AE]||{}}return h_}function PD(r,e,t){return pf(r),t<0?O_:(e=e||0,e<0&&(e=AD(e+r[Lo],0)),Te(t)?PE(r,e):PE(r,e,e+t))}function Mo(r,e){return Pr(r,0,e)}function CD(r,e){return r&&(Ee(function(){r[yE]=!0,r[xE]=e}),Ee(Ye,[r,yE,{v:!0,w:!1,e:!1}]),Ee(Ye,[r,xE,{v:e,w:!1,e:!1}])),r}function bD(r,e){var t=null;function n(){}if(on(r))t={};else{var i=typeof r;i!==Eu&&i!==lf&&tt("Prototype must be an Object or function: "+te(r)),n[jr]=r,Ee(function(){n[pu]=r}),t=new n}return e&&Ee(M_,[t,e]),t}function ur(){return(Date.now||RD)()}function RD(){return new Date().getTime()}function Yo(r,e,t){return r.apply(e,t)}function ki(){gr=mf()}function G_(r,e){var t={};return!gr&&ki(),t.b=gr.lzy,St(t,"v",{configurable:!0,get:function(){var n=Yo(r,null,e);return gr.lzy||St(t,"v",{value:n}),t.b=gr.lzy,n}}),t}function FD(){if(!S_){var r=mf();S_=r.gblSym=r.gblSym||{k:{},s:{}}}return S_}function B_(r){var e="_"+LD+++"_"+wD.v,t=w_+"("+r+")";function n(o,a){Ye(i,o,{v:a,e:!1,w:!1})}var i=sn(null);return n("description",_r(r)),n(gu,function(){return t+YD+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),CD(i,"symbol")}function UD(r){var e=FD();if(!zt(e.k,r)){var t=B_(r),n=Kr(e.s).length;t[CE]=function(){return n+"_"+t[gu]()},e.k[r]=t,e.s[t[CE]()]=_r(r)}return e.k[r]}function MD(r){!af&&(af={});var e,t=zE[r];return t&&(e=af[t]=af[t]||B_(w_+"."+t)),e}function Nt(r){return St({toJSON:function(){return r}},"v",{value:r})}function Su(r,e){var t;return function(){return!gr&&ki(),(!t||gr.lzy)&&(t=Nt(Ee(r,e).v)),t.v}}function vt(r){return!gr&&ki(),(!du||r===!1||gr.lzy)&&(du=Nt(Ee(KE).v||rr)),du.v}function le(r,e){var t;if(!du||e===!1?t=vt(e):t=du.v,t&&t[r])return t[r];if(r===WE)try{return window}catch{}return rr}function Ho(){return!!Sr()}function rs(){return!!Nr()}function Nu(){return!!Cr()}function V_(){return!!Ef()}function gf(){return Ja=Nt(Ee(le,[w_]).v),Ja}function HD(r){var e=(gr.lzy?0:Ja)||gf();return e.v?e.v[r]:Vr}function qE(){return!!kD()}function kD(){return!gr&&ki(),((gr.lzy?0:Ja)||gf()).v}function Tu(r,e){var t=zE[r];!gr&&ki();var n=(gr.lzy?0:Ja)||gf();return n.v?n.v[t||r]:e?Vr:MD(r)}function ts(r,e){!gr&&ki();var t=(gr.lzy?0:Ja)||gf();return t.v?t.v(r):e?rr:B_(r)}function hf(r){return!gr&&ki(),N_=(gr.lzy?0:N_)||Nt(Ee(HD,["for"]).v),(N_.v||UD)(r)}function ff(r){return!!r&&se(r.next)}function j_(r){return!on(r)&&se(r[Tu(3)])}function Sf(r,e,t){if(r&&(ff(r)||(!sf&&(sf=Nt(Tu(3))),r=r[sf.v]?r[sf.v]():rr),ff(r))){var n=Vr,i=Vr;try{for(var o=0;!(i=r.next()).done&&e[dr](on(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=rr,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function un(r,e){return!Te(e)&&r&&(Q(e)?Yo(r.push,r,e):ff(e)||j_(e)?Sf(e,function(t){r.push(t)}):r.push(e)),r}function ns(r,e,t){return((r?r.slice:rr)||xn).apply(r,xn[dr](arguments,1))}function GD(r,e,t){return Fe(r,e,t)!==-1}function BD(r,e){var t;return!T_&&(T_=Nt((t={},t[pu]=[],t instanceof Array))),T_.v?r[pu]=e:ae(e,function(n,i){return r[n]=i}),r}function VD(r,e,t){Ee(Ye,[e,uf,{v:r,c:!0,e:!1}]),e=XE(e,t);function n(){this[mu]=e,Ee(Ye,[this,uf,{v:r,c:!0,e:!1}])}return e[jr]=t===rr?sn(t):(n[jr]=t[jr],new n),e}function bE(r,e){e&&(r[uf]=e)}function K_(r,e,t,n){var i=t||Error,o=i[jr][uf],a=Error.captureStackTrace;return VD(r,function(){var s=this,u=arguments;try{Ee(bE,[i,r]);var c=Yo(i,s,n?n(u):xn[dr](u))||s;if(c!==s){var l=R_(s);l!==R_(c)&&XE(c,l)}return a&&a(c,s[mu]),e&&e(c,u),c}finally{Ee(bE,[i,o])}},i)}function zD(r){return function(t){return pf(t),t=_r(t),t&&(t=jD(t,r,O_)),t}}function $D(r,e,t){if(r!==rr&&r!==Vr){for(var n in r)if(zt(r,n)&&e[dr](on(t)?r:t,n,r[n])===-1)return;R(WD(r),function(i){if(ND(r,i)&&e[dr](on(t)?r:t,i,r[i])===-1)return-1})}}function qD(r,e,t){$D(r,function(n,i){if(!ED(n))return e[dr](on(t)?r:t,n,i)},t)}function Wr(r){if(!r||typeof r!==Eu)return!1;y_||(y_=rs()?Nr():!0);var e=!1;if(r!==y_){I_||(D_=Function[jr][gu],I_=D_[dr](Lr));try{var t=R_(r);e=!t,e||(Ar(t,mu)&&(t=t[mu]),e=!!(t&&typeof t===lf&&D_[dr](t)===I_))}catch{}}return e}function XD(r,e){e&&r.push(e)}function ar(r,e){e&&e[jr]}function JD(){var r=[hu,ii,Qa,QT,eD,tD,iD,aD,uD];return Ee(le,["Map"]).v,Ee(le,["Set"]).v,Ee(le,["WeakMap"]).v,Ee(le,["WeakSet"]).v,Ee(le,["Promise"]).v,Ee(le,["Symbol"]).v,Ee(le,["ArrayBuffer"]).v,Ee(le,["SharedArrayBuffer"]).v,Ee(le,["DataView"]).v,Ee(le,["Int8Array"]).v,Ee(le,["Uint8Array"]).v,Ee(le,["Uint8ClampedArray"]).v,Ee(le,["Int16Array"]).v,Ee(le,["Uint16Array"]).v,Ee(le,["Int32Array"]).v,Ee(le,["Uint32Array"]).v,Ee(le,["Float32Array"]).v,Ee(le,["Float64Array"]).v,Ee(le,["BigInt64Array"]).v,Ee(le,["BigUint64Array"]).v,Ee(le,["WeakRef"]).v,Ee(le,["FinalizationRegistry"]).v,r}function QD(r){return x_||(x_=Nt(JD())),Fe(x_.v,r)>=0}function ZD(r){return r.value&&ZE(r),!0}function eI(r,e,t,n){var i;return R(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function W_(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},s=typeof e,u=!1,c=e===rr;c||(e&&s===Eu?u=Wr(e):c=lD(s));var l={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(_,d){return W_(r,_,d?a:t,d)},copyTo:function(_,d){return QE(r,_,d,a)}};return l.isPrim?i&&i[dr](t,l)?l.result:e:eI(r,e,o,function(_){Ye(l,"result",{g:function(){return _.v},s:function(m){_.v=m}});for(var d=0,E=i;!(E||(d<RE.length?RE[d++]:ZD))[dr](t,l);)E=rr})}function QE(r,e,t,n){return QD(t)||qD(t,function(i,o){e[i]=W_(r,o,n,i)}),e}function rI(r,e,t){var n={handler:t,src:e,path:[]};return QE([],r,e,n)}function tI(r,e){var t={handler:e,src:r};return W_([],r,t)}function nI(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function iI(r){var e=r.value;return df(e)?(r.result=new Date(e.getTime()),!0):!1}function oI(r){return r.type===lf}function ZE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function aI(r,e){return R(e,function(t){rI(r,t)}),r}function $_(r,e,t,n,i,o,a){return aI(tI(r)||{},xn[dr](arguments))}function ko(){return!gr&&ki(),(!A_||gr.lzy)&&(A_=Nt(Ee(le,["performance"]).v)),A_.v}function Iu(){var r=ko();return r&&r.now?r.now():ur()}function sI(r,e,t){UE(r);var n=Ne(e)?e:_r(e),i=!Te(t)&&t<r[Lo]?t:r[Lo];return Pr(r,i-n[Lo],i)===n}function uI(r,e,t){UE(r);var n=Ne(e)?e:_r(e),i=t>0?t:0;return Pr(r,i,i+n[Lo])===n}function fI(r,e,t){var n=!0,i=r?e(rr):rr,o;function a(){return n=!1,i&&i[C_]&&i[C_](),o}function s(){i&&t(i),i=rr}function u(){return i=e(i),n||a(),o}function c(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[b_]=function(){return i&&i[b_]?i[b_]():n},o[P_]=function(){return n=!0,i&&i[P_]&&i[P_](),o},o[C_]=a,o=St(o,cI,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=rr}}}function _I(r){var e=se(r)?r:lI;if(!e){var t=mf().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function dI(r){var e=se(r)?r:vI;if(!e){var t=mf().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function q_(r,e,t){var n=Q(e),i=n?e.length:0,o=_I(i>0?e[0]:n?Vr:e),a=dI(i>1?e[1]:Vr),s=t[0];t[0]=function(){u.dn(),Yo(s,Vr,xn[dr](arguments))};var u=fI(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Yo(a,Vr,[c])}return Yo(o,Vr,t)},function(c){Yo(a,Vr,[c])});return u.h}function Yt(r,e){return q_(!0,Vr,xn[dr](arguments))}function eg(r,e,t){return q_(!0,r,xn[dr](arguments,1))}function rg(r,e){return q_(!1,Vr,xn[dr](arguments))}var Vr,rr,O_,lf,Eu,jr,pu,wo,mu,w_,Lo,uf,dr,gu,Y_,XT,Lr,hu,OE,ii,wE,YE,Qa,xn,JT,QT,ZT,eD,rD,tD,nD,iD,oD,aD,sD,uD,yE,xE,g_,Ne,se,Q,df,zr,An,Fo,_r,dD,pD,zt,Uo,ND,TD,of,St,M_,DD,kE,es,Kr,Kt,k_,R_,zE,AE,h_,AD,PE,Pr,Cn,sn,gr,OD,wD,CE,YD,S_,LD,af,WE,du,Sr,Nr,Cr,Ef,$E,Ja,N_,sf,Fe,oi,z_,is,Du,T_,XE,jD,KD,Me,JE,WD,D_,I_,y_,x_,RE,A_,cn,Go,os,P_,C_,b_,cI,lI,vI,he=Y(()=>{"use strict";v();Vr=void 0,rr=null,O_="",lf="function",Eu="object",jr="prototype",pu="__proto__",wo="undefined",mu="constructor",w_="Symbol",Lo="length",uf="name",dr="call",gu="toString",Y_="getOwnPropertyDescriptor",XT="getOwnPropertySymbols",Lr=sr(Object),hu=Be(Lr,jr),OE=sr(String),ii=Be(OE,jr),wE=sr(Math),YE=sr(Array),Qa=Be(YE,jr),xn=Be(Qa,"slice"),JT=sr(Number),QT=Be(JT,jr),ZT=sr(Function),eD=Be(ZT,jr),rD=sr(Date),tD=Be(rD,jr),nD=sr(RegExp),iD=Be(nD,jr),oD=sr(Boolean),aD=Be(oD,jr),sD=sr(Error),uD=Be(sD,jr),yE="_polyfill",xE="__nw21$polytype__";Ne=vf("string"),se=vf(lf);Q=Be(YE,"isArray"),df=LE("Date"),zr=vf("number"),An=vf("boolean"),Fo=LE("Error");_r=sr(OE),dD="[object Error]";pD=sr(Be(Lr,Y_),U_),zt=sr(Be(Lr,"hasOwn"),mD);Uo=Za;ND=gD("propertyIsEnumerable",hu,SD),TD=sr(Be(Lr,Y_),U_),of={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};St=Be(Lr,"defineProperty"),M_=Be(Lr,"defineProperties");DD=sr(Be(Lr,"isFrozen"),_D),kE=Be(Lr,"freeze");es=Be(Lr,"assign"),Kr=Be(Lr,"keys");Kt=sr(kE,GE),k_=sr(Be(Lr,"seal"),GE),R_=sr(Be(Lr,"getPrototypeOf"),ID);zE=yD({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),AE="__tsUtils$gblCfg";AD=Be(wE,"max"),PE=Uo("slice",ii),Pr=Uo("substring",ii),Cn=Za("substr",ii,PD);sn=sr(Be(Lr,"create"),bD);OD=Be(wE,"random"),wD=G_(function(){for(var r=ur().toString(36).slice(2);r.length<16;)r+=OD().toString(36).slice(2);return r=r.substring(0,16),r}),CE="_urid",YD="$nw21sym",LD=0;WE="window";Sr=Su(le,["document"]);Nr=Su(le,[WE]);Cr=Su(le,["navigator"]);Ef=Su(le,["history"]),$E=Su(function(){return!!Ee(function(){return process&&(process.versions||{}).node}).v});Fe=Uo("indexOf",Qa),oi=Uo("map",Qa);z_=Za("includes",Qa,GD),is=hD(Lo),Du=Uo("reduce",Qa),XE=sr(Be(Lr,"setPrototypeOf"),BD);jD=Uo("replace",ii);KD=zD(/^\s+|(?=\s)\s+$/g),Me=Za("trim",ii,KD),JE=sr(Be(Lr,Y_),U_),WD=sr(Be(Lr,XT),vD);RE=[nI,ZE,oI,iI];cn=Uo("indexOf",ii),Go=Za("endsWith",ii,sI);os=Za("startsWith",ii,uI);P_="ref",C_="unref",b_="hasRef",cI="enabled"});function Tt(r,e){typeof e!==qa&&e!==null&&tt("Class extends value "+String(e)+" is not a constructor or null"),X_(r,e);function t(){this.constructor=r}r[nn]=e===null?sn(e):(t[nn]=e[nn],new t)}function Nf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var HA,kA,tg,mI,Wt,X_,ng=Y(()=>{"use strict";v();he();E_();HA=(vt()||{}).Symbol,kA=(vt()||{}).Reflect,tg="hasOwnProperty",mI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)_u[tg].call(e,i)&&(r[i]=e[i])}return r},Wt=es||mI,X_=function(r,e){return X_=Xa.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[tg](i)&&(t[i]=n[i])},X_(r,e)}});var ig=Y(()=>{"use strict";v()});var Dt=Y(()=>{"use strict";v();E_();ng();ig();he()});function yf(r){return r&&(r===id[ai]||r===Array[ai])}function od(r){return yf(r)||r===Function[ai]}function Bo(r){var e;if(r){if(xu)return xu(r);var t=r[nd]||r[ai]||(r[xf]?r[xf][ai]:null);e=r[Df]||t,Ar(r,Df)||(delete r[J_],e=r[Df]=r[J_]||r[Df],r[J_]=t)}return e}function Cf(r,e){var t=[];if(sg)t=sg(r);else for(var n in r)typeof n=="string"&&Ar(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function ad(r,e,t){return e!==xf&&typeof r[e]===Af&&(t||Ar(r,e))&&e!==nd&&e!==ai}function bf(r){tt("DynamicProto: "+r)}function gI(r){var e=sn(null);return Cf(r,function(t){!e[t]&&ad(r,t,!1)&&(e[t]=r[t])}),e}function sd(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function hI(r,e,t,n){function i(u,c,l){var _=c[l];if(_[Z_]&&n){var d=u[Pf]||{};d[yu]!==!1&&(_=(d[c[as]]||{})[l]||_)}return function(){return _.apply(u,arguments)}}var o=sn(null);Cf(t,function(u){o[u]=i(e,t,u)});for(var a=Bo(r),s=[];a&&!od(a)&&!sd(s,a);)Cf(a,function(u){!o[u]&&ad(a,u,!xu)&&(o[u]=i(e,a,u))}),s.push(a),a=Bo(a);return o}function SI(r,e,t,n){var i=null;if(r&&Ar(t,as)){var o=r[Pf]||sn(null);if(i=(o[t[as]]||sn(null))[e],i||bf("Missing ["+e+"] "+Af),!i[ed]&&o[yu]!==!1){for(var a=!Ar(r,e),s=Bo(r),u=[];a&&s&&!od(s)&&!sd(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=Bo(s)}try{a&&(r[e]=i),i[ed]=1}catch{o[yu]=!1}}}return i}function NI(r,e,t){var n=e[r];return n===t&&(n=Bo(e)[r]),typeof n!==Af&&bf("["+r+"] is not a "+Af),n}function TI(r,e,t,n,i){function o(u,c){var l=function(){var _=SI(this,c,u,l)||NI(c,u,l);return _.apply(this,arguments)};return l[Z_]=1,l}if(!yf(r)){var a=t[Pf]=t[Pf]||sn(null);if(!yf(a)){var s=a[e]=a[e]||sn(null);a[yu]!==!1&&(a[yu]=!!i),yf(s)||Cf(t,function(u){ad(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!Ar(r,u)||r[u]&&!r[u][Z_])&&(r[u]=o(r,u)))})}}}function DI(r,e){if(xu){for(var t=[],n=Bo(e);n&&!od(n)&&!sd(t,n);){if(n===r)return!0;t.push(n),n=Bo(n)}return!1}return!0}function Q_(r,e){return Ar(r,ai)?r.name||e||og:((r||{})[xf]||{}).name||e||og}function Ce(r,e,t,n){Ar(r,ai)||bf("theClass is an invalid class definition.");var i=r[ai];DI(i,e)||bf("["+Q_(r)+"] not in hierarchy of ["+Q_(e)+"]");var o=null;Ar(i,as)?o=i[as]:(o=EI+Q_(r,"_")+"$"+td.n,td.n++,i[as]=o);var a=Ce[cg],s=!!a[If];s&&n&&n[If]!==void 0&&(s=!!n[If]);var u=gI(e),c=hI(i,e,u,s);t(e,c);var l=!!xu&&!!a[rd];l&&n&&(l=!!n[rd]),TI(i,o,e,u,l!==!1)}var Tf,xf,ai,Af,Pf,Z_,as,EI,ed,yu,cg,og,nd,Df,ag,J_,If,rd,id,xu,sg,ug,td,Fr=Y(()=>{"use strict";v();he();xf="constructor",ai="prototype",Af="function",Pf="_dynInstFuncs",Z_="_isDynProxy",as="_dynClass",EI="_dynCls$",ed="_dynInstChk",yu=ed,cg="_dfOpts",og="_unknown_",nd="__proto__",Df="_dyn"+nd,ag="__dynProto$Gbl",J_="_dynInstProto",If="useBaseInst",rd="setInstFuncs",id=Object,xu=id.getPrototypeOf,sg=id.getOwnPropertyNames,ug=vt(),td=ug[ag]||(ug[ag]={o:(Tf={},Tf[rd]=!0,Tf[If]=!0,Tf),n:1e3});Ce[cg]=td.o});var ud,fg=Y(()=>{"use strict";v();ud=100});var cr,cd,Au=Y(()=>{"use strict";v();he();cr=VE,cd=jE});var fn,II,lg=Y(()=>{"use strict";v();Au();fn=cr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),II=cr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Lt,fd=Y(()=>{"use strict";v();Au();Lt=cr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var It,Gi,q,Vo,jo,ss,si,ln,vn,Ve,Bi,xe,bn,Rf,ui,ci,Rn,us,cs,yt,ld,Of,zo,Pu,Vi,Ur,fs,ji,br,wf,vd,zi,_d,xt,Cu,Ko,Yf,On,Ft,ls,wn,_n,At,Ki,Wo,Ut,Wi,Lf,bu,$t,Ff,dn,dd,Pt,Ru,$o,pd,md,Ou,$i,qo,pn,Uf,Ed,vs,gd,Mf,Xo,hd,_s,ds,qi,ke=Y(()=>{"use strict";v();It="toLowerCase",Gi="blkVal",q="length",Vo="rdOnly",jo="notify",ss="warnToConsole",si="throwInternal",ln="setDf",vn="watch",Ve="logger",Bi="apply",xe="push",bn="splice",Rf="hdlr",ui="cancel",ci="initialize",Rn="identifier",us="removeNotificationListener",cs="addNotificationListener",yt="isInitialized",ld="instrumentationKey",Of="INACTIVE",zo="value",Pu="getNotifyMgr",Vi="getPlugin",Ur="name",fs="iKey",ji="time",br="processNext",wf="getProcessTelContext",vd="pollInternalLogs",zi="enabled",_d="stopPollingInternalLogs",xt="unload",Cu="onComplete",Ko="version",Yf="loggingLevelConsole",On="createNew",Ft="teardown",ls="messageId",wn="message",_n="isAsync",At="diagLog",Ki="_doTeardown",Wo="update",Ut="getNext",Wi="setNextPlugin",Lf="protocol",bu="userAgent",$t="split",Ff="nodeType",dn="replace",dd="logInternalMessage",Pt="type",Ru="handler",$o="status",pd="getResponseHeader",md="getAllResponseHeaders",Ou="isChildEvt",$i="data",qo="getCtx",pn="setCtx",Uf="complete",Ed="itemsReceived",vs="urlString",gd="sendPOST",Mf="headers",Xo="timeout",hd="setRequestHeader",_s="traceId",ds="spanId",qi="traceFlags"});function vg(r,e){Sd||(Sd=K_("AggregationError",function(n,i){i[q]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
2
- `.concat(i," > ").concat(te(n))}),new Sd(t,e||[])}var Sd,_g=Y(()=>{"use strict";v();he();ke()});function Mt(r,e){return Eg(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:Pd,rejected:!0,reason:t}):t})}function Eg(r,e,t,n){var i=r;try{if(lt(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(t)i=t(o);else throw o}}finally{n&&yI(i,n)}return i}function yI(r,e){var t=r;return e&&(lt(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function xI(r,e,t,n){Nd=Nd||{toString:function(){return"[[PromiseState]]"}},Td=Td||{toString:function(){return"[[PromiseResult]]"}},Dd=Dd||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[Nd]={get:e},i[Td]={get:t},i[Dd]={get:n},M_(r,i)}function AI(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function PI(r,e,t,n){var i=Sr();!Hf&&(Hf=Nt(!!Ee(AI,[i]).v));var o=Hf.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),Hf.v&&o.initEvent(e,!1,!0),o&&r[pg])r[pg](o);else{var a=r["on"+e];if(a)a(o);else{var s=le("console");s&&(s.error||s.log)(e,te(o))}}}function mg(r){return se(r)?r.toString():te(r)}function Sg(r,e,t){var n=ns(arguments,3),i=0,o=!1,a,s=[],u=bI++,c=wu.length>0?wu[wu.length-1]:void 0,l=!1,_=null,d;function E(F,V){try{wu.push(u),l=!0,_&&_.cancel(),_=null;var W=r(function(ne,z){s.push(function(){try{var G=i===2?F:V,Z=Te(G)?a:se(G)?G(a):G;lt(Z)?Z.then(ne,z):G?ne(Z):i===3?z(Z):ne(Z)}catch(fe){z(fe)}}),o&&A()},n);return W}finally{wu.pop()}}function m(F){return E(void 0,F)}function N(F){var V=F,W=F;return se(F)&&(V=function(ne){return F&&F(),ne},W=function(ne){throw F&&F(),ne}),E(V,W)}function g(){return gg[i]}function A(){if(s.length>0){var F=s.slice();s=[],l=!0,_&&_.cancel(),_=null,e(F)}}function T(F,V){return function(W){if(i===V){if(F===2&&lt(W)){i=1,W.then(T(2,1),T(3,1));return}i=F,o=!0,a=W,A(),!l&&F===3&&!_&&(_=Yt(I,RI))}}}function I(){if(!l)if(l=!0,$E())process.emit(hg,a,d);else{var F=Nr()||vt();!Id&&(Id=Nt(Ee(le,[kf+"RejectionEvent"]).v)),PI(F,CI,function(V){return Ye(V,"promise",{g:function(){return d}}),V.reason=a,V},!!Id.v)}}d={then:E,catch:m,finally:N},St(d,"state",{get:g}),dg&&xI(d,g,function(){return _f(a)},function(){return l}),qE()&&(d[Tu(11)]="IPromise");function O(){return"IPromise"+(dg?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+g()+(o?" - "+mg(a):"")}return d.toString=O,(function(){se(t)||tt(kf+": executor is not a function - "+mg(t));var V=T(3,0);try{t.call(d,T(2,0),V)}catch(W){V(W)}})(),d}function OI(r){return function(e){var t=ns(arguments,1);return r(function(n,i){try{var o=[],a=1;Sf(e,function(s,u){s&&(a++,Eg(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function wI(r){return Nt(function(e){var t=ns(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Mt(u,function(l){l.rejected?o[c]={status:Pd,reason:l.reason}:o[c]={status:"fulfilled",value:l.value},--a===0&&n(o)})}try{Q(e)?R(e,s):j_(e)?Sf(e,s):tt("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function Ng(r){R(r,function(e){try{e()}catch{}})}function YI(r){var e=zr(r)?r:0;return function(t){Yt(function(){Ng(t)},e)}}function Tg(r,e){return Sg(Tg,YI(e),r,e)}function LI(r,e){!yd&&(yd=Nt(Ee(le,[kf]).v||null));var t=yd.v;if(!t)return Tg(r);se(r)||tt(kf+": executor is not a function - "+te(r));var n=0;function i(){return gg[n]}var o=new t(function(a,s){function u(l){n=2,a(l)}function c(l){n=3,s(l)}r(u,c)});return St(o,"state",{get:i}),o}function Yu(r){return Sg(Yu,Ng,r)}function Dg(r,e){return!xd&&(xd=wI(Yu)),xd.v(r,e)}function qt(r,e){return!Ad&&(Ad=Nt(LI)),Ad.v.call(this,r,e)}var kf,Pd,Nd,Td,Dd,dg,gg,pg,Hf,hg,CI,wu,bI,RI,Id,yd,xd,Ad,Ig,w0,Jo=Y(()=>{"use strict";v();he();kf="Promise",Pd="rejected";dg=!1;gg=["pending","resolving","resolved",Pd],pg="dispatchEvent";hg="unhandledRejection",CI=hg.toLowerCase(),wu=[],bI=0,RI=10;Ig=OI(qt),w0=Tu(11)});var Ht,me,Xi,nr,Gf,Lu,fi,Qo,Ct,Zo,ps,Ji,ms,Yn,Bf,Vf,jf,Es,zf,Kf,yg,Tr=Y(()=>{"use strict";v();Ht=void 0,me="",Xi="channels",nr="core",Gf="createPerfMgr",Lu="disabled",fi="extensionConfig",Qo="extensions",Ct="processTelemetry",Zo="priority",ps="eventsSent",Ji="eventsDiscarded",ms="eventsSendRequest",Yn="perfEvent",Bf="offlineEventsStored",Vf="offlineBatchSent",jf="offlineBatchDrop",Es="getPerfMgr",zf="domain",Kf="path",yg="Not dynamic - "});function Qi(r){return!B(r)}function ea(r){var e=r;return e&&Ne(e)&&(e=e[dn](UI,function(t,n){return n.toUpperCase()}),e=e[dn](MI,"_"),e=e[dn](HI,function(t,n){return"_"+n})),e}function pr(r,e){return r&&e?cn(r,e)!==-1:!1}function mn(r){return r&&r.toISOString()||""}function ir(r){return Fo(r)?r[Ur]:me}function Xt(r,e,t,n,i){var o=t;return r&&(o=r[e],o!==t&&(!i||i(o))&&(!n||n(t))&&(o=t,r[e]=o)),o}function Fu(r,e,t){var n;return r?(n=r[e],!n&&B(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function Ag(r,e){var t=null,n=null;return se(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][Bi](n,i)}}function Cd(r,e,t){if(r&&e&&tr(r)&&tr(e)){var n=function(o){if(Ne(o)){var a=e[o];se(a)?(!t||t(o,!0,e,r))&&(r[o]=Ag(e,o)):(!t||t(o,!1,e,r))&&(zt(r,o)&&delete r[o],Ye(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function li(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=Ag(t,n))}function kt(r,e,t,n){return r&&e&&tr(r)&&Q(t)&&R(t,function(i){Ne(i)&&li(r,i,e,i,n)}),r}function bd(r){return(function(){function e(){var t=this;r&&ae(r,function(n,i){t[n]=i})}return e})()}function bt(r){return r&&es&&(r=Xa(es({},r))),r}function Wf(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[q],c=!1,l=1;for(u>0&&An(s)&&(c=s,s=a[l]||{},l++),tr(s)||(s={});l<u;l++){var _=a[l],d=Q(_),E=tr(_);for(var m in _){var N=d&&m in _||E&&zt(_,m);if(N){var g=_[m],A=void 0;if(c&&g&&((A=Q(g))||Wr(g))){var T=s[m];A?Q(T)||(T=[]):Wr(T)||(T={}),g=Wf(c,T,g)}g!==void 0&&(s[m]=g)}}}return s}function En(r){try{return r.responseText}catch{}return null}function ra(r,e){return r?"XDomainRequest,Response:"+En(r)||"":e}function vi(r,e){return r?"XMLHttpRequest,Status:"+r[$o]+",Response:"+En(r)||r.response||"":e}function _i(r,e){return e&&(zr(e)?r=[e].concat(r):Q(e)&&(r=e.concat(r))),r}function Rd(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,kI,n),t&&a(s,xg,t),s.open(r,e,!i),t&&a(s,xg,t),!i&&o&&a(s,GI,o),s}function $f(r){var e={};if(Ne(r)){var t=Me(r)[$t](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=Me(n.substring(0,i))[It](),a=Me(n.substring(i+1));e[o]=a}else e[Me(n)]=1}})}return e}function gs(r,e,t){if(!r[t]&&e&&e[pd]){var n=e[pd](t);n&&(r[t]=Me(n))}return r}function di(r,e){var t={};return r[md]?t=$f(r[md]()):e&&(t=gs(t,r,jI),t=gs(t,r,BI),t=gs(t,r,VI)),t}var FI,UI,MI,HI,B0,kI,xg,GI,BI,VI,jI,Ln=Y(()=>{"use strict";v();Dt();he();ke();Tr();FI="getPrototypeOf",UI=/-([a-z])/g,MI=/([^\w\d_$])/g,HI=/^(\d+[\w\d_$])/,B0=Object[FI];kI="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",xg="withCredentials",GI="timeout";BI="kill-duration",VI="kill-duration-seconds",jI="time-delta-millis"});function Rg(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[nn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function Ud(r){bg=r}function ta(r){if(r&&bg){var e=le("__mockLocation");if(e)return e}return typeof location===ni&&location?location:le(KI)}function Uu(){return typeof console!==yn?console:le(WI)}function Fn(){return!!(typeof JSON===ni&&JSON||le(Pg)!==null)}function $r(){return Fn()?JSON||le(Pg):null}function Mu(){return le($I)}function Hu(){return le(qI)}function Zi(){var r=Cr();return r&&r.product?r.product===XI:!1}function eo(){var r=Cr();if(r&&(r[bu]!==wd||Od===null)){wd=r[bu];var e=(wd||me)[It]();Od=pr(e,Ld)||pr(e,Fd)}return Od}function ku(r){if(r===void 0&&(r=null),!r){var e=Cr()||{};r=e?(e.userAgent||me)[It]():me}var t=(r||me)[It]();if(pr(t,Ld)){var n=Sr()||{};return Math.max(parseInt(t[$t](Ld)[1]),n[zI]||0)}else if(pr(t,Fd)){var i=parseInt(t[$t](Fd)[1]);if(i)return i+4}return null}function Jt(r){return(Yd===null||r===!1)&&(Yd=Nu()&&!!Cr().sendBeacon),Yd}function pi(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=Rg(t,"keepalive"))}catch{}return e}function Gu(){return hs===null&&(hs=typeof XDomainRequest!==yn,hs&&Ss()&&(hs=hs&&!Rg(le(Cg),"withCredentials"))),hs}function Ss(){var r=!1;try{var e=le(Cg);r=!!e}catch{}return r}function Og(r,e){if(r)for(var t=0;t<r[q];t++){var n=r[t];if(n[Ur]&&n[Ur]===e)return n}return{}}function Md(r){var e=Sr();return e&&r?Og(e.querySelectorAll("meta"),r).content:null}function Hd(r){var e,t=ko();if(t){var n=t.getEntriesByType("navigation")||[];e=Og((n[q]>0?n[0]:{}).serverTiming,r).description}return e}var zI,KI,WI,Pg,$I,qI,XI,Ld,Fd,Cg,Od,wd,bg,hs,Yd,ro=Y(()=>{"use strict";v();Dt();he();ke();Ln();Tr();zI="documentMode",KI="location",WI="console",Pg="JSON",$I="crypto",qI="msCrypto",XI="ReactNative",Ld="msie",Fd="trident/",Cg="XMLHttpRequest",Od=null,wd=null,bg=!1,hs=null,Yd=null});function JI(r){r<0&&(r>>>=0),Bu=Yg+r&to,Vu=Lg-r&to,Fg=!0}function QI(){try{var r=ur()&2147483647;JI((Math.random()*wg^r)+r)}catch{}}function kd(r){return r>0?Math.floor(mi()/to*(r+1))>>>0:0}function mi(r){var e=0,t=Mu()||Hu();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&to),e===0&&eo()&&(Fg||QI(),e=Ug()&to),e===0&&(e=Math.floor(wg*Math.random()|0)),r||(e>>>=0),e}function Ug(r){Vu=36969*(Vu&65535)+(Vu>>16)&to,Bu=18e3*(Bu&65535)+(Bu>>16)&to;var e=(Vu<<16)+(Bu&65535)>>>0&to|0;return r||(e>>>=0),e}function ju(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=mi()>>>0,n=0,i=me;i[q]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(mi()<<2&4294967295|t&3)>>>0,n=0);return i}var wg,to,Yg,Lg,Fg,Bu,Vu,qf=Y(()=>{"use strict";v();he();ke();ro();Tr();wg=4294967296,to=4294967295,Yg=123456789,Lg=987654321,Fg=!1,Bu=Yg,Vu=Lg});function Hg(r){return r[Ff]===1||r[Ff]===9||!+r[Ff]}function ry(r,e){var t=e[r.id];if(!t){t={};try{Hg(e)&&Ye(e,r.id,{e:!1,v:t})}catch{}}return t}function qr(r,e){return e===void 0&&(e=!1),ea(r+ey+++(e?"."+Mg:me)+ZI)}function Xf(r){var e={id:qr("_aiData-"+(r||me)+"."+Mg),accept:function(t){return Hg(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ea(n)]:(o&&(a=ry(e,t),a[ea(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var Mg,ZI,ey,Ns=Y(()=>{"use strict";v();he();ke();Ln();Tr();qf();Mg="3.3.4",ZI="."+ju(6),ey=0});function Jf(r){return r&&tr(r)&&(r.isVal||r.fb||zt(r,"v")||zt(r,"mrg")||zt(r,"ref")||r.set)}function kg(r,e,t){var n,i=t.dfVal||FE;if(e&&t.fb){var o=t.fb;Q(o)||(o=[o]);for(var a=0;a<o[q];a++){var s=o[a],u=e[s];if(i(u)?n=u:r&&(u=r.cfg[s],i(u)&&(n=u),r.set(r.cfg,_r(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function Gd(r,e,t){var n=t;if(t&&Jf(t)&&(n=kg(r,e,t)),n){Jf(n)&&(n=Gd(r,e,n));var i;Q(n)?(i=[],i[q]=n[q]):Wr(n)&&(i={}),i&&(ae(n,function(o,a){a&&Jf(a)&&(a=Gd(r,e,a)),i[o]=a}),n=i)}return n}function zu(r,e,t,n){var i,o,a,s=n,u,c,l,_;Jf(s)?(i=s.isVal,o=s.set,l=s[Vo],_=s[Gi],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=kg(r,e,s)):a=n,_&&r[Gi](e,t);var d,E=!0,m=e[t];(m||!B(m))&&(d=m,E=!1,i&&d!==a&&!i(d)&&(d=a,E=!0),o&&(d=o(d,a,e),E=d===a)),E?a?d=Gd(r,e,a):d=a:(Wr(d)||Q(a))&&u&&a&&(Wr(a)||Q(a))&&ae(a,function(N,g){zu(r,d,N,g)}),r.set(e,t,d),c&&r.ref(e,t),l&&r[Vo](e,t)}var Bd=Y(()=>{"use strict";v();he();ke()});function Vd(r){if(r){var e;if(Q(r)?(e=[],e[q]=r[q]):Wr(r)&&(e={}),e)return ae(r,function(t,n){e[t]=Vd(n)}),e}return r}function Ku(r){if(r){var e=r[Un]||r;if(e.cfg&&(e.cfg===r||e.cfg[Un]===e))return e}return null}function Wu(r){if(r&&(Wr(r)||Q(r)))try{r[Gg]=!0}catch{}return r}function jd(r){if(r)try{r[Bg]=!0}catch{}return r}function Qf(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[Bg],!n&&!t[Gg]&&(n=Wr(t)||Q(t))),n}function Zf(r){tt("InvalidAccess:"+r)}var Un,Gg,Bg,el=Y(()=>{"use strict";v();he();ke();Un=hf("[[ai_dynCfg_1]]"),Gg=hf("[[ai_blkDynCfg_1]]"),Bg=hf("[[ai_frcDynCfg_1]]")});function ny(r,e,t){Q(e)&&R(ty,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=i[Bi](this,o);return $u(r,e,t,"Patching"),s}})}function rl(r,e){var t=JE(r,e);return t&&t.get}function iy(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Fe(i.h,c)===-1&&i.h[xe](c),r.trk(c,i))},clr:function(c){var l=Fe(i.h,c);l!==-1&&i.h[bn](l,1)}},o=!0,a=!1;function s(){o&&(a=a||Qf(s,r,n),n&&!n[Un]&&a&&(n=$u(r,n,t,"Converting")),o=!1);var c=r.act;return c&&i.trk(c),n}s[r.prop]={chng:function(){r.add(i)}};function u(c){if(n!==c){s[r.ro]&&!r.upd&&Zf("["+t+"] is read-only:"+te(e)),o&&(a=a||Qf(s,r,n),o=!1);var l=a&&s[r.rf];if(a)if(l){ae(n,function(d){n[d]=c?c[d]:Ht});try{ae(c,function(d,E){qu(r,n,d,E)}),c=n}catch(d){Ts((r.hdlr||{})[Ve],t,"Assigning",d),a=!1}}else n&&n[Un]&&ae(n,function(d){var E=rl(n,d);if(E){var m=E[r.prop];m&&m.chng()}});if(c!==n){var _=c&&Qf(s,r,c);!l&&_&&(c=$u(r,c,t,"Converting")),n=c,a=_}r.add(i)}}Ye(e,i.n,{g:s,s:u})}function qu(r,e,t,n){if(e){var i=rl(e,t),o=i&&!!i[r.prop];o?e[t]=n:iy(r,e,t,n)}return e}function tl(r,e,t,n){if(e){var i=rl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{Wu(e)}catch(c){Ts((r.hdlr||{})[Ve],t,"Blocking",c)}try{qu(r,e,t,e[t]),i=rl(e,t)}catch(c){Ts((r.hdlr||{})[Ve],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function $u(r,e,t,n){try{ae(e,function(i,o){qu(r,e,i,o)}),e[Un]||(St(e,Un,{get:function(){return r[Rf]}}),ny(r,e,t))}catch(i){Ts((r.hdlr||{})[Ve],t,n,i)}return e}var ty,Ts,Vg=Y(()=>{"use strict";v();he();Tr();ke();el();ty=["push","pop","shift","unshift","splice"],Ts=function(r,e,t,n){r&&r[si](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function jg(r){var e,t=ts(Xu+"get"+r.uid+Ju),n=ts(Xu+"ro"+r.uid+Ju),i=ts(Xu+"rf"+r.uid+Ju),o=ts(Xu+"blkVal"+r.uid+Ju),a=ts(Xu+"dtl"+r.uid+Ju),s=null,u=null,c;function l(m,N){var g=c.act;try{c.act=m,m&&m[a]&&(R(m[a],function(T){T.clr(m)}),m[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[ln].bind(r),ref:r.ref.bind(r),rdOnly:r[Vo].bind(r)})}catch(T){var A=r[Ve];throw A&&A[si](1,107,te(T)),T}finally{c.act=g||null}}function _(){if(s){var m=s;s=null,u&&u[ui](),u=null;var N=[];if(R(m,function(g){if(g&&(g[a]&&(R(g[a],function(A){A.clr(g)}),g[a]=null),g.fn))try{l(g,g.fn)}catch(A){N[xe](A)}}),s)try{_()}catch(g){N[xe](g)}N[q]>0&&vg("Watcher error(s): ",N)}}function d(m){if(m&&m.h[q]>0){s||(s=[]),u||(u=Yt(function(){u=null,_()},0));for(var N=0;N<m.h[q];N++){var g=m.h[N];g&&Fe(s,g)===-1&&s[xe](g)}}}function E(m,N){if(m){var g=m[a]=m[a]||[];Fe(g,N)===-1&&g[xe](N)}}return c=(e={prop:t,ro:n,rf:i},e[Gi]=o,e[Rf]=r,e.add=d,e[jo]=_,e.use=l,e.trk=E,e),c}var Xu,Ju,zg=Y(()=>{"use strict";v();he();_g();ke();Xu="[[ai_",Ju="]]"});function oy(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return Ye(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function ay(r,e,t){var n,i=Ku(e);if(i)return i;var o=qr("dyncfg",!0),a=e&&t!==!1?e:Vd(e),s;function u(){s[jo]()}function c(A,T,I){try{A=qu(s,A,T,I)}catch(O){Ts(r,T,"Setting value",O)}return A[T]}function l(A){return oy(s,A)}function _(A,T){s.use(null,function(I){var O=s.upd;try{Te(T)||(s.upd=T),A(I)}finally{s.upd=O}})}function d(A,T){var I;return tl(s,A,T,(I={},I[0]=!0,I))[T]}function E(A,T){var I;return tl(s,A,T,(I={},I[1]=!0,I))[T]}function m(A,T){var I;return tl(s,A,T,(I={},I[2]=!0,I))[T]}function N(A,T){return T&&ae(T,function(I,O){zu(g,A,I,O)}),A}var g=(n={uid:null,cfg:a},n[Ve]=r,n[jo]=u,n.set=c,n[ln]=N,n[vn]=l,n.ref=d,n[Vo]=E,n[Gi]=m,n._block=_,n);return Ye(g,"uid",{c:!1,e:!1,w:!1,v:o}),s=jg(g),$u(s,a,"config","Creating"),g}function sy(r,e){r?(r[ss](e),r[si](2,108,e)):Zf(e)}function Qe(r,e,t,n){var i=ay(t,r||{},n);return e&&i[ln](i.cfg,e),i}function Mr(r,e,t){var n=r[Un]||r;return n.cfg&&(n.cfg===r||n.cfg[Un]===n)?n[vn](e):(sy(t,yg+te(r)),Qe(r,null,t)[vn](e))}var no=Y(()=>{"use strict";v();he();Ns();Tr();ke();Bd();Vg();zg();el()});function Ei(r,e){if(r&&r[xt])return r[xt](e)}function nl(r,e,t){var n;return t||(n=qt(function(i){t=i})),r&&is(r)>0?Mt(Ei(r[0],e),function(){nl(ns(r,1),e,t)}):t(),n}var zd=Y(()=>{"use strict";v();Jo();he();ke()});var Kg,Kd,Wd=Y(()=>{"use strict";v();Kg=500,Kd="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function uy(r,e,t){return!r&&B(r)?e:An(r)?r:_r(r)[It]()==="true"}function $d(r){return{mrg:!0,v:r}}function Ds(r,e,t){return{fb:t,isVal:r,v:e}}function Qt(r,e){return{fb:e,set:uy,v:!!r}}var qd=Y(()=>{"use strict";v();he();ke()});function cy(r,e){return function(){var t=arguments,n=Jd(e);if(n){var i=n.listener;i&&i[r]&&i[r][Bi](i,t)}}}function fy(){var r=le("Microsoft");return r&&(ol=r.ApplicationInsights),ol}function Jd(r){var e=ol;return!e&&r.disableDbgExt!==!0&&(e=ol||fy()),e?e.ChromeDbgExt:null}function Wg(r){if(!il){il={};for(var e=0;e<Xd[q];e++)il[Xd[e]]=cy(Xd[e],r)}return il}var Xd,ol,il,Qd=Y(()=>{"use strict";v();he();ke();Tr();Xd=[ps,Ji,ms,Yn],ol=null});function $g(r){return r?'"'+r[dn](/\"/g,me)+'"':me}function Zd(r,e){var t=Uu();if(t){var n="log";t[r]&&(n=r),se(t[n])&&t[n](e)}}function gi(r,e){return(r||{})[Ve]||new io(e)}function ep(r){return r||new io}function k(r,e,t,n,i,o){o===void 0&&(o=!1),ep(r)[si](e,t,n,i,o)}function _t(r,e){ep(r)[ss](e)}function rp(r,e,t){ep(r)[dd](e,t)}var Is,qg,ly,vy,_y,dy,py,na,io,gn=Y(()=>{"use strict";v();Fr();he();no();ke();Qd();ro();Tr();qg="warnToConsole",ly="AI (Internal): ",vy="AI: ",_y="AITR_",dy={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},py=(Is={},Is[0]=null,Is[1]="errorToConsole",Is[2]=qg,Is[3]="debugToConsole",Is);na=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[ls]=e,o[wn]=(n?vy:ly)+e;var a=me;Fn()&&(a=$r().stringify(i));var s=(t?" message:"+$g(t):me)+(i?" props:"+$g(a):me);o[wn]+=s}return r.dataType="MessageData",r})();io=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;Ce(r,this,function(c){u=_(e||{}),c.consoleLoggingLevel=function(){return i},c[si]=function(m,N,g,A,T){T===void 0&&(T=!1);var I=new na(N,g,T,A);if(s)throw te(I);var O=py[m]||qg;if(Te(I[wn]))E("throw"+(m===1?"Critical":"Warning"),I);else{if(T){var F=+I[ls];!n[F]&&i>=m&&(c[O](I[wn]),n[F]=!0)}else i>=m&&c[O](I[wn]);l(m,I)}},c.debugToConsole=function(m){Zd("debug",m),E("warning",m)},c[ss]=function(m){Zd("warn",m),E("warning",m)},c.errorToConsole=function(m){Zd("error",m),E("error",m)},c.resetInternalMessageCount=function(){t=0,n={}},c[dd]=l,c[xt]=function(m){u&&u.rm(),u=null};function l(m,N){if(!d()){var g=!0,A=_y+N[ls];if(n[A]?g=!1:n[A]=!0,g&&(m<=o&&(c.queue[xe](N),t++,E(m===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new na(23,T,!1);c.queue[xe](I),m===1?c.errorToConsole(T):c[ss](T)}}}function _(m){return Mr(Qe(m,dy,c).cfg,function(N){var g=N.cfg;i=g[Yf],o=g.loggingLevelTelemetry,a=g.maxMessageLimit,s=g.enableDebug})}function d(){return t>=a}function E(m,N){var g=Jd(e||{});g&&g[At]&&g[At](m,N)}})}return r.__ieDyn=1,r})()});function sp(){!Mn&&(Mn=G_(function(){return Sr()}))}function Ey(r,e){var t=hi[oo]||ul[oo];return t||(t=hi[oo]=hi(r,e),ul[oo]=t),t}function sl(r){return r?r.isEnabled():!0}function oh(r,e){return e&&r&&Q(r.ignoreCookies)?Fe(r.ignoreCookies,e)!==-1:!1}function gy(r,e){return e&&r&&Q(r.blockedCookies)&&Fe(r.blockedCookies,e)!==-1?!0:oh(r,e)}function rh(r,e){var t=e[zi];if(B(t)){var n=void 0;Te(r[Qg])||(n=!r[Qg]),Te(r[op])||(n=!r[op]),t=n}return t}function up(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[oo]?t=n[oo]:t=hi(e)}return t||(t=Ey(e,(r||{})[Ve])),t}function hi(r,e){var t,n,i,o,a,s,u,c,l;r=Qe(r||ul,null,e).cfg,a=Mr(r,function(d){d[ln](d.cfg,my),n=d.ref(d.cfg,"cookieCfg"),i=n[Kf]||"/",o=n[zf],s=rh(r,n)!==!1,u=n.getCookie||hy,c=n.setCookie||ih,l=n.delCookie||ih},e);var _=(t={isEnabled:function(){var d=rh(r,n)!==!1&&s&&ys(e),E=ul[oo];return d&&E&&_!==E&&(d=sl(E)),d},setEnabled:function(d){s=d!==!1,n[zi]=d},set:function(d,E,m,N,g){var A=!1;if(sl(_)&&!gy(n,d)){var T={},I=Me(E||me),O=cn(I,";");if(O!==-1&&(I=Me(Mo(E,O)),T=ah(Pr(E,O+1))),Xt(T,zf,N||o,an,Te),!B(m)){var F=eo();if(Te(T[np])){var V=ur(),W=V+m*1e3;if(W>0){var ne=new Date;ne.setTime(W),Xt(T,np,th(ne,F?Xg:Jg)||th(ne,F?Xg:Jg)||me,an)}}F||Xt(T,"max-age",me+m,null,Te)}var z=ta();z&&z[Lf]==="https:"&&(Xt(T,"secure",null,null,Te),ip===null&&(ip=!cl((Cr()||{})[bu])),ip&&Xt(T,"SameSite","None",null,Te)),Xt(T,Kf,g||i,null,Te),c(d,nh(I,T)),A=!0}return A},get:function(d){var E=me;return sl(_)&&!oh(n,d)&&(E=u(d)),E},del:function(d,E){var m=!1;return sl(_)&&(m=_.purge(d,E)),m},purge:function(d,E){var m,N=!1;if(ys(e)){var g=(m={},m[Kf]=E||"/",m[np]="Thu, 01 Jan 1970 00:00:01 GMT",m);eo()||(g["max-age"]="0"),l(d,nh(me,g)),N=!0}return N}},t[xt]=function(d){a&&a.rm(),a=null},t);return _[oo]=_,_}function ys(r){if(al===null){al=!1,!Mn&&sp();try{var e=Mn.v||{};al=e[ap]!==void 0}catch(t){k(r,2,68,"Cannot access document.cookie - "+ir(t),{exception:te(t)})}}return al}function ah(r){var e={};if(r&&r[q]){var t=Me(r)[$t](";");R(t,function(n){if(n=Me(n||me),n){var i=cn(n,"=");i===-1?e[n]=null:e[Me(Mo(n,i))]=Me(Pr(n,i+1))}})}return e}function th(r,e){return se(r[e])?r[e]():null}function nh(r,e){var t=r||me;return ae(e,function(n,i){t+="; "+n+(B(i)?me:"="+i)}),t}function hy(r){var e=me;if(!Mn&&sp(),Mn.v){var t=Mn.v[ap]||me;Zg!==t&&(eh=ah(t),Zg=t),e=Me(eh[r]||me)}return e}function ih(r,e){!Mn&&sp(),Mn.v&&(Mn.v[ap]=r+"="+e)}function cl(r){return Ne(r)?!!(pr(r,"CPU iPhone OS 12")||pr(r,"iPad; CPU OS 12")||pr(r,"Macintosh; Intel Mac OS X 10_14")&&pr(r,"Version/")&&pr(r,"Safari")||pr(r,"Macintosh; Intel Mac OS X 10_14")&&Go(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||pr(r,"Chrome/5")||pr(r,"Chrome/6")||pr(r,"UnrealEngine")&&!pr(r,"Chrome")||pr(r,"UCBrowser/12")||pr(r,"UCBrowser/11")):!1}var tp,ia,Xg,Jg,ap,np,Qg,op,oo,al,ip,Zg,Mn,eh,ul,my,cp=Y(()=>{"use strict";v();he();qd();no();ke();gn();ro();Ln();Tr();Xg="toGMTString",Jg="toUTCString",ap="cookie",np="expires",Qg="isCookieUseDisabled",op="disableCookiesUsage",oo="_ckMgr",al=null,ip=null,Zg=null,eh={},ul={},my=(tp={cookieCfg:$d((ia={},ia[zf]={fb:"cookieDomain",dfVal:Qi},ia.path={fb:"cookiePath",dfVal:Qi},ia.enabled=Ht,ia.ignoreCookies=Ht,ia.blockedCookies=Ht,ia)),cookieDomain:Ht,cookiePath:Ht},tp[op]=Ht,tp)});function Ny(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){Ee(t.fn,[t.arg])})}function ao(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[xe]({fn:n,arg:i}),t.h=t.h||Yt(Ny,0,t)):Ee(n,[i]))})}var Sy,Qu,fp=Y(()=>{"use strict";v();Fr();Jo();he();no();ke();Tr();Sy={perfEvtsSendAll:!1};Qu=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Qe(e,Sy);n=a[vn](function(s){t=!!s.cfg.perfEvtsSendAll}),Ce(r,this,function(s){Ye(s,"listeners",{g:function(){return i}}),s[cs]=function(u){i[xe](u)},s[us]=function(u){for(var c=Fe(i,u);c>-1;)i[bn](c,1),c=Fe(i,u)},s[ps]=function(u){ao(i,ps,o,function(c){c[ps](u)})},s[Ji]=function(u,c){ao(i,Ji,o,function(l){l[Ji](u,c)})},s[ms]=function(u,c){ao(i,ms,c?o:null,function(l){l[ms](u,c)})},s[Yn]=function(u){u&&(t||!u[Ou]())&&ao(i,Yn,null,function(c){u[_n]?Yt(function(){return c[Yn](u)},0):c[Yn](u)})},s[Bf]=function(u){u&&u[q]&&ao(i,Bf,o,function(c){c[Bf](u)})},s[Vf]=function(u){u&&u[$i]&&ao(i,Vf,o,function(c){c[Vf](u)})},s[jf]=function(u,c){if(u>0){var l=c||0;ao(i,jf,o,function(_){_[jf](u,l)})}},s[xt]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[ui](),o.h=null,o.cb=[]},l;if(ao(i,"unload",null,function(_){var d=_[xt](u);d&&(l||(l=[]),l[xe](d))}),l)return qt(function(_){return Mt(Ig(l),function(){c(),_()})});c()}})}return r.__ieDyn=1,r})()});function fr(r,e,t,n,i){if(r){var o=r;if(o[Es]&&(o=o[Es]()),o){var a=void 0,s=o[qo](lp);try{if(a=o.create(e(),n,i),a){if(s&&a[pn]&&(a[pn](oa[vp],s),s[qo]&&s[pn])){var u=s[qo](oa[Zu]);u||(u=[],s[pn](oa[Zu],u)),u[xe](a)}return o[pn](lp,a),t(a)}}catch(c){a&&a[pn]&&a[pn]("exception",c)}finally{a&&o.fire(a),o[pn](lp,s)}}}return t()}function _p(){return Ty}var xs,vp,Zu,Ty,oa,ec,lp,fl=Y(()=>{"use strict";v();Fr();he();ke();Tr();xs="ctx",vp="ParentContextKey",Zu="ChildrenContextKey",Ty=null,oa=(function(){function r(e,t,n){var i=this;if(i.start=ur(),i[Ur]=e,i[_n]=n,i[Ou]=function(){return!1},se(t)){var o;Ye(i,"payload",{g:function(){return!o&&se(t)&&(o=t(),t=null),o}})}i[qo]=function(a){return a?a===r[vp]||a===r[Zu]?i[a]:(i[xs]||{})[a]:null},i[pn]=function(a,s){if(a)if(a===r[vp])i[a]||(i[Ou]=function(){return!0}),i[a]=s;else if(a===r[Zu])i[a]=s;else{var u=i[xs]=i[xs]||{};u[a]=s}},i[Uf]=function(){var a=0,s=i[qo](r[Zu]);if(Q(s))for(var u=0;u<s[q];u++){var c=s[u];c&&(a+=c[ji])}i[ji]=ur()-i.start,i.exTime=i[ji]-a,i[Uf]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),ec=(function(){function r(e){this.ctx={},Ce(r,this,function(t){t.create=function(n,i,o){return new oa(n,i,o)},t.fire=function(n){n&&(n[Uf](),e&&se(e[Yn])&&e[Yn](n))},t[pn]=function(n,i){if(n){var o=t[xs]=t[xs]||{};o[n]=i}},t[qo]=function(n){return(t[xs]||{})[n]}})}return r.__ieDyn=1,r})(),lp="CoreUtils.doPerf"});function rc(){var r=aa();return Pr(r,0,8)+"-"+Pr(r,8,12)+"-"+Pr(r,12,16)+"-"+Pr(r,16,20)+"-"+Pr(r,20)}function aa(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=me,t,n=0;n<4;n++)t=mi(),e+=r[t&15]+r[t>>4&15]+r[t>>8&15]+r[t>>12&15]+r[t>>16&15]+r[t>>20&15]+r[t>>24&15]+r[t>>28&15];var i=r[8+(mi()&3)|0];return Cn(e,0,8)+Cn(e,9,4)+"4"+Cn(e,13,3)+i+Cn(e,16,3)+Cn(e,19,12)}var dp=Y(()=>{"use strict";v();he();Tr();qf()});function Si(r,e,t){return r&&r[q]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function uh(r,e,t){return Si(r,e)?r:t}function ch(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[q]<2;)e="0"+e;return e}function Ep(r,e,t,n){var i;return i={},i[Ko]=Si(n,2,mp)?n:pp,i[_s]=sa(r)?r:aa(),i[ds]=ua(e)?e:Mo(aa(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function tc(r,e){var t;if(!r||(Q(r)&&(r=r[0]||""),!r||!Ne(r)||r[q]>8192))return null;if(r.indexOf(",")!==-1){var n=r[$t](",");r=n[e>0&&n[q]>e?e:0]}var i=Dy.exec(Me(r));return!i||i[1]===mp||i[2]===ll||i[3]===vl?null:(t={version:(i[1]||me)[It](),traceId:(i[2]||me)[It](),spanId:(i[3]||me)[It]()},t[qi]=parseInt(i[4],16),t)}function sa(r){return Si(r,32,ll)}function ua(r){return Si(r,16,vl)}function _l(r){return!(!r||!Si(r[Ko],2,mp)||!Si(r[_s],32,ll)||!Si(r[ds],16,vl)||!Si(ch(r[qi]),2))}function gp(r){return _l(r)?(r[qi]&sh)===sh:!1}function hp(r){if(r){var e=ch(r[qi]);Si(e,2)||(e="01");var t=r[Ko]||pp;return t!=="00"&&t!=="ff"&&(t=pp),"".concat(t.toLowerCase(),"-").concat(uh(r.traceId,32,ll).toLowerCase(),"-").concat(uh(r.spanId,16,vl).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Sp(r){var e="traceparent",t=tc(Md(e),r);return t||(t=tc(Hd(e),r)),t}var Dy,pp,mp,ll,vl,sh,Np=Y(()=>{"use strict";v();he();ke();dp();ro();Tr();Dy=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,pp="00",mp="ff",ll="00000000000000000000000000000000",vl="0000000000000000",sh=1});function Ni(r){return Iy.get(r,"state",{},!0)}function Tp(r,e){for(var t=[],n=null,i=r[Ut](),o;i;){var a=i[Vi]();if(a){n&&n[Wi]&&a[Ct]&&n[Wi](a),o=Ni(a);var s=!!o[yt];a[yt]&&(s=a[yt]()),s||t[xe](a),n=a,i=i[Ut]()}}R(t,function(u){var c=r[nr]();u[ci](r.getCfg(),c,e,r[Ut]()),o=Ni(u),!u[nr]&&!o[nr]&&(o[nr]=c),o[yt]=!0,delete o[Ft]})}function dl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[Ct];e[Ct]?n=i?e[Zo]-t[Zo]:1:i&&(n=-1)}else n=e?1:-1;return n})}function fh(r){var e={};return{getName:function(){return e[Ur]},setName:function(t){r&&r.setName(t),e[Ur]=t},getTraceId:function(){return e[_s]},setTraceId:function(t){r&&r.setTraceId(t),sa(t)&&(e[_s]=t)},getSpanId:function(){return e[ds]},setSpanId:function(t){r&&r.setSpanId(t),ua(t)&&(e[ds]=t)},getTraceFlags:function(){return e[qi]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[qi]=t}}}var Iy,Dp=Y(()=>{"use strict";v();he();ke();Ns();Tr();Np();Iy=Xf("plugin")});function xy(r,e,t){for(;r;){if(r[Vi]()===t)return r;r=r[Ut]()}return so([t],e.config||{},e)}function Ip(r,e,t,n){var i=null,o=[];e||(e=Qe({},null,t[Ve])),n!==null&&(i=n?xy(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return gi(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:l,getConfig:_,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(E){i=E},iterate:d,onComplete:s}};function s(E,m){for(var N=[],g=2;g<arguments.length;g++)N[g-2]=arguments[g];E&&o[xe]({func:E,self:Te(m)?a.ctx:m,args:N})}function u(){var E=i;if(i=E?E[Ut]():null,!E){var m=o;m&&m[q]>0&&(R(m,function(N){try{N.func.call(N.self,N.args)}catch(g){k(t[Ve],2,73,"Unexpected Exception during onComplete - "+te(g))}}),o=[])}return E}function c(E,m){var N=null,g=e.cfg;if(g&&E){var A=g[fi];!A&&m&&(A={}),g[fi]=A,A=e.ref(g,fi),A&&(N=A[E],!N&&m&&(N={}),A[E]=N,N=e.ref(A,E))}return N}function l(E,m){var N=c(E,!0);return m&&ae(m,function(g,A){if(B(N[g])){var T=e.cfg[g];(T||!B(T))&&(N[g]=T)}zu(e,N,g,A)}),e[ln](N,m)}function _(E,m,N){N===void 0&&(N=!1);var g,A=c(E,!1),T=e.cfg;return A&&(A[m]||!B(A[m]))?g=A[m]:(T[m]||!B(T[m]))&&(g=T[m]),g||!B(g)?g:N}function d(E){for(var m;m=a._next();){var N=m[Vi]();N&&E(N)}}return a}function dt(r,e,t,n){var i=Qe(e),o=Ip(r,i,t,n),a=o.ctx;function s(c){var l=o._next();return l&&l[Ct](c,a),!l}function u(c,l){return c===void 0&&(c=null),Q(c)&&(c=so(c,i.cfg,t,l)),dt(c||a[Ut](),i.cfg,t,l)}return a[br]=s,a[On]=u,a}function As(r,e,t){var n=Qe(e.config),i=Ip(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[xt](o,u),!c}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=so(u,n.cfg,e,c)),As(u||o[Ut](),e,c)}return o[br]=a,o[On]=s,o}function nc(r,e,t){var n=Qe(e.config),i=Ip(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){se(c[Wo])&&c[Wo](o,u)})}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=so(u,n.cfg,e,c)),nc(u||o[Ut](),e,c)}return o[br]=a,o[On]=s,o}function so(r,e,t,n){var i=null,o=!n;if(Q(r)&&r[q]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&se(s[Ct])){var u=Ay(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?so([n],e,t):i}function Ay(r,e,t){var n=null,i=se(r[Ct]),o=se(r[Wi]),a;r?a=r[Rn]+"-"+r[Zo]+"-"+_h++:a="Unknown-0-"+_h++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:l,unload:_,update:d,_id:a,_setNext:function(E){n=E}};function u(){var E;return r&&se(r[vh])&&(E=r[vh]()),E||(E=dt(s,e,t)),E}function c(E,m,N,g,A){var T=!1,I=r?r[Rn]:yy,O=E[lh];return O||(O=E[lh]={}),E.setNext(n),r&&fr(E[nr](),function(){return I+":"+N},function(){O[a]=!0;try{var F=n?n._id:me;F&&(O[F]=!1),T=m(E)}catch(W){var V=n?O[n._id]:!0;V&&(T=!0),(!n||!V)&&k(E[At](),1,73,"Plugin ["+I+"] failed during "+N+" - "+te(W)+", run flags: "+te(O))}},g,A),T}function l(E,m){m=m||u();function N(g){if(!r||!i)return!1;var A=Ni(r);return A[Ft]||A[Lu]?!1:(o&&r[Wi](n),r[Ct](E,g),!0)}c(m,N,"processTelemetry",function(){return{item:E}},!E.sync)||m[br](E)}function _(E,m){function N(){var g=!1;if(r){var A=Ni(r),T=r[nr]||A[nr];r&&(!T||T===E.core())&&!A[Ft]&&(A[nr]=null,A[Ft]=!0,A[yt]=!1,r[Ft]&&r[Ft](E,m)===!0&&(g=!0))}return g}c(E,N,"unload",function(){},m[_n])||E[br](m)}function d(E,m){function N(){var g=!1;if(r){var A=Ni(r),T=r[nr]||A[nr];r&&(!T||T===E.core())&&!A[Ft]&&r[Wo]&&r[Wo](E,m)===!0&&(g=!0)}return g}c(E,N,"update",function(){},!1)||E[br](m)}return Kt(s)}var yy,lh,vh,_h,yp,pl=Y(()=>{"use strict";v();he();Bd();no();ke();gn();Ln();Tr();fl();Dp();yy="TelemetryPluginChain",lh="_hasRun",vh="_getTelCtx",_h=0;yp=(function(){function r(e,t,n,i){var o=this,a=dt(e,t,n,i);kt(o,a,Kr(a))}return r})()});function ca(){var r=[];function e(n){n&&r[xe](n)}function t(n,i){R(r,function(o){try{o(n,i)}catch(a){k(n[At](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var ml=Y(()=>{"use strict";v();he();ke();gn()});function xp(r,e){ic=r,oc=e}function ac(){var r=[];function e(n){var i=r;r=[],R(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){k(n,2,73,"Unloading:"+te(a))}}),ic&&i[q]>ic&&(oc?oc("doUnload",i):k(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(un(r,n),ic&&r[q]>ic&&(oc?oc("Add",r):k(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var ic,oc,El=Y(()=>{"use strict";v();he();ke();gn()});var Ap,uo,Py,Ti,Pp=Y(()=>{"use strict";v();Fr();he();no();ke();gn();Ln();Tr();pl();ml();El();uo="getPlugin",Py=(Ap={},Ap[fi]={isVal:Qi,v:{}},Ap),Ti=(function(){function r(){var e=this,t,n,i,o,a;c(),Ce(r,e,function(l){l[ci]=function(_,d,E,m){u(_,d,m),t=!0},l[Ft]=function(_,d){var E,m=l[nr];if(!m||_&&m!==_[nr]())return;var N,g=!1,A=_||As(null,m,i&&i[uo]?i[uo]():i),T=d||(E={reason:0},E[_n]=!1,E);function I(){g||(g=!0,o.run(A,d),a.run(A[At]()),N===!0&&A[br](T),c())}return!l[Ki]||l[Ki](A,T,I)!==!0?I():N=!0,N},l[Wo]=function(_,d){var E=l[nr];if(!E||_&&E!==_[nr]())return;var m,N=!1,g=_||nc(null,E,i&&i[uo]?i[uo]():i),A=d||{reason:0};function T(){N||(N=!0,u(g.getCfg(),g.core(),g[Ut]()))}return!l._doUpdate||l._doUpdate(g,A,T)!==!0?T():m=!0,m},li(l,"_addUnloadCb",function(){return o},"add"),li(l,"_addHook",function(){return a},"add"),Ye(l,"_unloadHooks",{g:function(){return a}})}),e[At]=function(l){return s(l)[At]()},e[yt]=function(){return t},e.setInitialized=function(l){t=l},e[Wi]=function(l){i=l},e[br]=function(l,_){_?_[br](l):i&&se(i[Ct])&&i[Ct](l,null)},e._getTelCtx=s;function s(l){l===void 0&&(l=null);var _=l;if(!_){var d=n||dt(null,{},e[nr]);i&&i[uo]?_=d[On](null,i[uo]):_=d[On](null,i)}return _}function u(l,_,d){Qe(l,Py,gi(_)),!d&&_&&(d=_[wf]()[Ut]());var E=i;i&&i[uo]&&(E=i[uo]()),e[nr]=_,n=dt(d,l,_,E)}function c(){t=!1,e[nr]=null,n=null,i=null,a=ac(),o=ca()}}return r.__ieDyn=1,r})()});function Cy(r,e,t){var n={id:e,fn:t};un(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[bn](a,1),-1})}};return i}function by(r,e,t){for(var n=!1,i=r[q],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[Bi](null,[e])===!1){n=!0;break}}catch(s){k(t,2,64,"Telemetry initializer failed: "+ir(s),{exception:te(s)},!0)}}return!n}var dh,ph=Y(()=>{"use strict";v();Dt();Fr();he();ke();Pp();gn();Ln();Tr();dh=(function(r){Tt(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),Ce(e,t,function(a,s){a.addTelemetryInitializer=function(u){return Cy(i,n++,u)},a[Ct]=function(u,c){by(i,u,c?c[At]():a[At]())&&a[br](u,c)},a[Ki]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(Ti)});function Ly(r,e){return new ec(e)}function Fy(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(B(s)||B(s[ci]))&&hr(hh);var u=s[Zo],c=s[Rn];s&&u&&(B(a[u])?a[u]=c:_t(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[xe](s):o[xe](s)}),n={},n[nr]=i,n[Xi]=o,n}function Eh(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function bp(r,e,t,n){t&&ae(t,function(i,o){n&&Wr(o)&&Wr(e[i])&&bp(r,e[i],o,n),n&&Wr(o)&&Wr(e[i])?bp(r,e[i],o,n):r.set(e,i,o)})}function gh(r,e){var t=null,n=-1;return R(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function Uy(r,e){var t=gh(r,e).l;return t||(t={w:e,rm:function(){var n=gh(r,e);n.i!==-1&&r[bn](n.i,1)}},r[xe](t)),t}function My(r,e,t){R(e,function(n){var i=Mr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function Hy(r,e,t,n){return e.add(r[vn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[us](n),n=null),t&&!n&&o!==!0&&(n=Wg(i.cfg),t[cs](n))})),n}function ky(r){return Ye({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var co,hh,Ry,mh,Oy,wy,Yy,Cp,Di,Sh=Y(()=>{"use strict";v();Dt();Fr();Jo();he();no();fd();ke();zd();Wd();cp();Ns();Qd();gn();Ln();Tr();fp();fl();pl();Dp();ph();ml();El();hh="Plugins must provide initialize method",Ry="_notificationManager",mh="SDK is still unloading...",Oy="SDK is not initialized",wy=100,Yy=5e4,Cp=Pn((co={cookieCfg:{}},co[Qo]={rdOnly:!0,ref:!0,v:[]},co[Xi]={rdOnly:!0,ref:!0,v:[]},co[fi]={ref:!0,v:{}},co[Gf]=Ht,co.loggingLevelConsole=0,co.diagnosticLogInterval=Ht,co));Di=(function(){function r(){var e,t,n,i,o,a,s,u,c,l,_,d,E,m,N,g,A,T,I,O,F,V,W,ne,z,G,Z,fe,Se,M,H,_e,ue;Ce(r,this,function(x){C(),x._getDbgPlgTargets=function(){return[W,i]},x[yt]=function(){return t},x.activeStatus=function(){return G},x._setPendingStatus=function(){G=3},x[ci]=function(P,K,ie,X){E&&hr(mh),x[yt]()&&hr("Core cannot be initialized more than once"),e=Qe(P,Cp,ie||x[Ve],!1),P=e.cfg,je(e[vn](function(be){var Ue=be.cfg,Je=G===3;if(!Je){fe=Ue.initInMemoMaxSize||wy;var or=Ue[ld],Zr=Ue.endpointUrl;if(B(or)){F=null,G=Lt[Of];var et="Please provide instrumentation key";t?(k(n,1,100,et),re()):hr(et);return}var jt=[];if(lt(or)?(jt[xe](or),F=null):F=or,lt(Zr)?(jt[xe](Zr),Z=null):Z=Zr,jt[q]){Se=!1,G=3;var Yr=Qi(Ue.initTimeOut)?Ue.initTimeOut:Yy,ri=Dg(jt);M=Yt(function(){M=null,Se||de()},Yr),Mt(ri,function(w){try{if(Se)return;if(!w.rejected){var U=w[zo];if(U&&U[q]){var J=U[0];if(F=J&&J[zo],U[q]>1){var ve=U[1];Z=ve&&ve[zo]}}F&&(P[ld]=F,P.endpointUrl=Z)}de()}catch{Se||de()}})}else de();var h=be.ref(be.cfg,fi);ae(h,function(w){be.ref(h,w)})}})),o=X,I=Hy(e,T,o&&x[Pu](),I),ft(),x[Ve]=ie;var oe=P[Qo];if(l=[],l[xe].apply(l,Nf(Nf([],K,!1),oe,!1)),_=P[Xi],Ke(null),(!d||d[q]===0)&&hr("No "+Xi+" available"),_&&_[q]>1){var Oe=x[Vi]("TeeChannelController");(!Oe||!Oe.plugin)&&k(n,1,28,"TeeChannel required")}My(P,V,n),V=null,t=!0,G===Lt.ACTIVE&&re()},x.getChannels=function(){var P=[];return d&&R(d,function(K){P[xe](K)}),Kt(P)},x.track=function(P){fr(x[Es](),function(){return"AppInsightsCore:track"},function(){P===null&&(Xe(P),hr("Invalid telemetry item")),!P[Ur]&&B(P[Ur])&&(Xe(P),hr("telemetry name required")),P[fs]=P[fs]||F,P[ji]=P[ji]||mn(new Date),P.ver=P.ver||"4.0",!E&&x[yt]()&&G===Lt.ACTIVE?we()[br](P):G!==Lt[Of]&&i[q]<=fe&&i[xe](P)},function(){return{item:P}},!P.sync)},x[wf]=we,x[Pu]=function(){return o||(o=new Qu(e.cfg),x[Ry]=o),o},x[cs]=function(P){x.getNotifyMgr()[cs](P)},x[us]=function(P){o&&o[us](P)},x.getCookieMgr=function(){return u||(u=hi(e.cfg,x[Ve])),u},x.setCookieMgr=function(P){u!==P&&(Ei(u,!1),u=P)},x[Es]=function(){return a||s||_p()},x.setPerfMgr=function(P){a=P},x.eventCnt=function(){return i[q]},x.releaseQueue=function(){if(t&&i[q]>0){var P=i;i=[],G===2?R(P,function(K){K[fs]=K[fs]||F,we()[br](K)}):k(n,2,20,"core init status is not active")}},x[vd]=function(P){return N=P||null,ue=!1,H&&H[ui](),Ie(!0)};function de(){Se=!0,B(F)?(G=Lt[Of],k(n,1,112,"ikey can't be resolved from promises")):G=Lt.ACTIVE,re()}function re(){t&&(x.releaseQueue(),x[vd]())}function Ie(P){if((!H||!H[zi])&&!ue){var K=P||n&&n.queue[q]>0;K&&(_e||(_e=!0,je(e[vn](function(ie){var X=ie.cfg.diagnosticLogInterval;(!X||!(X>0))&&(X=1e4);var oe=!1;H&&(oe=H[zi],H[ui]()),H=rg(Gr,X),H.unref(),H[zi]=oe}))),H[zi]=!0)}return H}x[_d]=function(){ue=!0,H&&H[ui](),Gr()},kt(x,function(){return m},["addTelemetryInitializer"]),x[xt]=function(P,K,ie){var X;P===void 0&&(P=!0),t||hr(Oy),E&&hr(mh);var oe=(X={reason:50},X[_n]=P,X.flushComplete=!1,X),Oe;P&&!K&&(Oe=qt(function(Je){K=Je}));var be=As(vr(),x);be[Cu](function(){T.run(x[Ve]),nl([u,o,n],P,function(){C(),K&&K(oe)})},x);function Ue(Je){oe.flushComplete=Je,E=!0,A.run(be,oe),x[_d](),be[br](oe)}return Gr(),xr(P,Ue,6,ie)||Ue(!1),Oe},x[Vi]=ct,x.addPlugin=function(P,K,ie,X){if(!P){X&&X(!1),Le(hh);return}var oe=ct(P[Rn]);if(oe&&!K){X&&X(!1),Le("Plugin ["+P[Rn]+"] is already loaded!");return}var Oe={reason:16};function be(or){l[xe](P),Oe.added=[P],Ke(Oe),X&&X(!0)}if(oe){var Ue=[oe.plugin],Je={reason:2,isAsync:!!ie};Vt(Ue,Je,function(or){or?(Oe.removed=Ue,Oe.reason|=32,be(!0)):X&&X(!1)})}else be(!1)},x.updateCfg=function(P,K){K===void 0&&(K=!0);var ie;if(x[yt]()){ie={reason:1,cfg:e.cfg,oldCfg:$_({},e.cfg),newConfig:$_({},P),merge:K},P=ie.newConfig;var X=e.cfg;P[Qo]=X[Qo],P[Xi]=X[Xi]}e._block(function(oe){var Oe=oe.cfg;bp(oe,Oe,P,K),K||ae(Oe,function(be){zt(P,be)||oe.set(Oe,be,Ht)}),oe[ln](Oe,Cp)},!0),e[jo](),ie&&Ge(ie)},x.evtNamespace=function(){return g},x.flush=xr,x.getTraceCtx=function(P){return O||(O=fh()),O},x.setTraceCtx=function(P){O=P||null},x.addUnloadHook=je,li(x,"addUnloadCb",function(){return A},"add"),x.onCfgChange=function(P){var K;return t?K=Mr(e.cfg,P,x[Ve]):K=Uy(V,P),ky(K)},x.getWParam=function(){return Ho()||e.cfg.enableWParam?0:-1};function $(){var P={};ne=[];var K=function(ie){ie&&R(ie,function(X){if(X[Rn]&&X[Ko]&&!P[X.identifier]){var oe=X[Rn]+"="+X[Ko];ne[xe](oe),P[X.identifier]=X}})};K(d),_&&R(_,function(ie){K(ie)}),K(l)}function C(){t=!1,e=Qe({},Cp,x[Ve]),e.cfg[Yf]=1,Ye(x,"config",{g:function(){return e.cfg},s:function(K){x.updateCfg(K,!1)}}),Ye(x,"pluginVersionStringArr",{g:function(){return ne||$(),ne}}),Ye(x,"pluginVersionString",{g:function(){return z||(ne||$(),z=ne.join(";")),z||me}}),Ye(x,"logger",{g:function(){return n||(n=new io(e.cfg),e[Ve]=n),n},s:function(K){e[Ve]=K,n!==K&&(Ei(n,!1),n=K)}}),x[Ve]=new io(e.cfg),W=[];var P=x.config[Qo]||[];P.splice(0,P[q]),un(P,W),m=new dh,i=[],Ei(o,!1),o=null,a=null,s=null,Ei(u,!1),u=null,c=null,l=[],_=null,d=null,E=!1,N=null,g=qr("AIBaseCore",!0),A=ca(),O=null,F=null,T=ac(),V=[],z=null,ne=null,ue=!1,H=null,_e=!1,G=0,Z=null,fe=null,Se=!1,M=null}function we(){var P=dt(vr(),e.cfg,x);return P[Cu](Ie),P}function Ke(P){var K=Fy(x[Ve],Kg,l);c=null,z=null,ne=null,d=(_||[])[0]||[],d=dl(un(d,K[Xi]));var ie=un(dl(K[nr]),d);W=Kt(ie);var X=x.config[Qo]||[];X.splice(0,X[q]),un(X,W);var oe=we();d&&d[q]>0&&Tp(oe[On](d),ie),Tp(oe,ie),P&&Ge(P)}function ct(P){var K=null,ie=null,X=[];return R(W,function(oe){if(oe[Rn]===P&&oe!==m)return ie=oe,-1;oe.getChannel&&X[xe](oe)}),!ie&&X[q]>0&&R(X,function(oe){if(ie=oe.getChannel(P),!ie)return-1}),ie&&(K={plugin:ie,setEnabled:function(oe){Ni(ie)[Lu]=!oe},isEnabled:function(){var oe=Ni(ie);return!oe[Ft]&&!oe[Lu]},remove:function(oe,Oe){var be;oe===void 0&&(oe=!0);var Ue=[ie],Je=(be={reason:1},be[_n]=oe,be);Vt(Ue,Je,function(or){or&&Ke({reason:32,removed:Ue}),Oe&&Oe(or)})}}),K}function vr(){if(!c){var P=(W||[]).slice();Fe(P,m)===-1&&P[xe](m),c=so(dl(P),e.cfg,x)}return c}function Vt(P,K,ie){if(P&&P[q]>0){var X=so(P,e.cfg,x),oe=As(X,x);oe[Cu](function(){var Oe=!1,be=[];R(l,function(Je,or){Eh(Je,P)?Oe=!0:be[xe](Je)}),l=be,z=null,ne=null;var Ue=[];_&&(R(_,function(Je,or){var Zr=[];R(Je,function(et){Eh(et,P)?Oe=!0:Zr[xe](et)}),Ue[xe](Zr)}),_=Ue),ie&&ie(Oe),Ie()}),oe[br](K)}else ie(!1)}function Gr(){if(n&&n.queue){var P=n.queue.slice(0);n.queue[q]=0,R(P,function(K){var ie,X=(ie={},ie[Ur]=N||"InternalMessageId: "+K[ls],ie[fs]=F,ie[ji]=mn(new Date),ie.baseType=na.dataType,ie.baseData={message:K[wn]},ie);x.track(X)})}}function xr(P,K,ie,X){var oe=1,Oe=!1,be=null;X=X||5e3;function Ue(){oe--,Oe&&oe===0&&(be&&be[ui](),be=null,K&&K(Oe),K=null)}if(d&&d[q]>0){var Je=we()[On](d);Je.iterate(function(or){if(or.flush){oe++;var Zr=!1;or.flush(P,function(){Zr=!0,Ue()},ie)||Zr||(P&&be==null?be=Yt(function(){be=null,Ue()},X):Ue())}})}return Oe=!0,Ue(),!0}function ft(){var P;je(e[vn](function(K){var ie=K.cfg.enablePerfMgr;if(ie){var X=K.cfg[Gf];(P!==X||!P)&&(X||(X=Ly),Fu(K.cfg,Gf,X),P=X,s=null),!a&&!s&&se(X)&&(s=X(x,x[Pu]()))}else s=null,P=null}))}function Ge(P){var K=nc(vr(),x);K[Cu](Ie),(!x._updateHook||x._updateHook(K,P)!==!0)&&K[br](P)}function Le(P){var K=x[Ve];K?(k(K,2,73,P),Ie()):hr(P)}function Xe(P){var K=x[Pu]();K&&K[Ji]([P],2)}function je(P){T.add(P)}})}return r.__ieDyn=1,r})()});function fa(r,e){try{if(r&&r!==""){var t=$r().parse(r);if(t&&t[Ed]&&t[Ed]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[q])return t}}catch(n){k(e,1,43,"Cannot parse the response. "+(n[Ur]||te(n)),{response:r})}return null}var Nh=Y(()=>{"use strict";v();he();ke();gn();ro()});var Hn,Gy,Th,Rp,la,Dh=Y(()=>{"use strict";v();Fr();Jo();he();ke();Wd();gn();ro();Ln();Hn="",Gy="NoResponseBody",Th="&"+Gy+"=true",Rp="POST",la=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,l,_,d,E,m,N;Ce(r,this,function(g,A){var T=!0;Se(),g[ci]=function(M,H){i=H,n&&k(i,1,28,"Sender is already initialized"),g.SetConfig(M),n=!0},g._getDbgPlgTargets=function(){return[n,o,s,t]},g.SetConfig=function(M){try{if(a=M.senderOnCompleteCallBack||{},s=!!M.disableCredentials,u=M.fetchCredentials,o=!!M.isOneDs,t=!!M.enableSendPromise,l=!!M.disableXhr,_=!!M.disableBeacon,d=!!M.disableBeaconSync,N=M.timeWrapper,m=!!M.addNoResponse,E=!!M.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var H=ta();H&&H.protocol&&H.protocol[It]()==="file:"&&(T=!1)}return!0}catch{}return!1},g.getSyncFetchPayload=function(){return e},g.getSenderInst=function(M,H){return M&&M[q]?V(M,H):null},g.getFallbackInst=function(){return c},g[Ki]=function(M,H){Se()};function I(M,H){W(H,200,{},M)}function O(M,H){k(i,2,26,"Failed to send telemetry.",{message:M}),W(H,400,{})}function F(M){O("No endpoint url is provided for the batch",M)}function V(M,H){for(var _e,ue=0,x=null,de=0;x==null&&de<M[q];)ue=M[de],!l&&ue===1?Gu()?x=fe:Ss()&&(x=G):ue===2&&pi(H)&&(!H||!E)?x=Z:ue===3&&Jt()&&(H?!d:!_)&&(x=z),de++;return x?(_e={_transport:ue,_isSync:H},_e[gd]=x,_e):null}function W(M,H,_e,ue){try{M&&M(H,_e,ue)}catch{}}function ne(M,H){var _e=Cr(),ue=M[vs];if(!ue)return F(H),!0;ue=M[vs]+(m?Th:Hn);var x=M[$i],de=o?x:new Blob([x],{type:"text/plain;charset=UTF-8"}),re=_e.sendBeacon(ue,de);return re}function z(M,H,_e){var ue=M[$i];try{if(ue)if(ne(M,H))I(Hn,H);else{var x=a&&a.beaconOnRetry;x&&se(x)?x(M,H,ne):(c&&c[gd](M,H,!0),k(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(de){o&&_t(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(de)),W(H,o?0:400,{},Hn)}}function G(M,H,_e){var ue,x,de,re=M[Mf]||{};!_e&&t&&(ue=qt(function(we,Ke){x=we,de=Ke})),o&&_e&&M.disableXhrSync&&(_e=!1);var Ie=M[vs];if(!Ie){F(H),x&&x(!1);return}var $=Rd(Rp,Ie,T,!0,_e,M[Xo]);o||$[hd]("Content-type","application/json"),R(Kr(re),function(we){$[hd](we,re[we])}),$.onreadystatechange=function(){o||(C($),$.readyState===4&&x&&x(!0))},$.onload=function(){o&&C($)};function C(we){var Ke=a&&a.xhrOnComplete,ct=Ke&&se(Ke);if(ct)Ke(we,H,M);else{var vr=En(we);W(H,we[$o],di(we,o),vr)}}return $.onerror=function(we){W(H,o?$[$o]:400,di($,o),o?Hn:vi($)),de&&de(we)},$.ontimeout=function(){W(H,o?$[$o]:500,di($,o),o?Hn:vi($)),x&&x(!1)},$.send(M[$i]),ue}function Z(M,H,_e){var ue,x=M[vs],de=M[$i],re=o?de:new Blob([de],{type:"application/json"}),Ie,$,C,we=new Headers,Ke=de[q],ct=!1,vr=!1,Vt=M[Mf]||{},Gr=(ue={method:Rp,body:re},ue[Kd]=!0,ue);M.headers&&Kr(M.headers)[q]>0&&(R(Kr(Vt),function(Le){we.append(Le,Vt[Le])}),Gr[Mf]=we),u?Gr.credentials=u:T&&o&&(Gr.credentials="include"),_e&&(Gr.keepalive=!0,e+=Ke,o?M._sendReason===2&&(ct=!0,m&&(x+=Th)):ct=!0);var xr=new Request(x,Gr);try{xr[Kd]=!0}catch{}if(!_e&&t&&(Ie=qt(function(Le,Xe){$=Le,C=Xe})),!x){F(H),$&&$(!1);return}function ft(Le){W(H,o?0:400,{},o?Hn:Le)}function Ge(Le,Xe,je){var P=Le[$o],K=a.fetchOnComplete;K&&se(K)?K(Le,H,je||Hn,Xe):W(H,P,{},je||Hn)}try{Mt(fetch(o?x:xr,o?Gr:null),function(Le){if(_e&&(e-=Ke,Ke=0),!vr)if(vr=!0,Le.rejected)ft(Le.reason&&Le.reason[wn]),C&&C(Le.reason);else{var Xe=Le[zo];try{!o&&!Xe.ok?(ft(Xe.statusText),$&&$(!1)):o&&!Xe.body?(Ge(Xe,null,Hn),$&&$(!0)):Mt(Xe.text(),function(je){Ge(Xe,M,je[zo]),$&&$(!0)})}catch(je){ft(te(je)),C&&C(je)}}})}catch(Le){vr||(ft(te(Le)),C&&C(Le))}return ct&&!vr&&(vr=!0,W(H,200,{}),$&&$(!0)),o&&!vr&&M[Xo]>0&&N&&N.set(function(){vr||(vr=!0,W(H,500,{}),$&&$(!0))},M[Xo]),Ie}function fe(M,H,_e){var ue=Nr(),x=new XDomainRequest,de=M[$i];x.onload=function(){var we=En(x),Ke=a&&a.xdrOnComplete;Ke&&se(Ke)?Ke(x,H,M):W(H,200,{},we)},x.onerror=function(){W(H,400,{},o?Hn:ra(x))},x.ontimeout=function(){W(H,500,{})},x.onprogress=function(){};var re=ue&&ue.location&&ue.location[Lf]||"",Ie=M[vs];if(!Ie){F(H);return}if(!o&&Ie.lastIndexOf(re,0)!==0){var $="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";k(i,2,40,". "+$),O($,H);return}var C=o?Ie:Ie[dn](/^(https?:)/,"");x.open(Rp,C),M[Xo]&&(x[Xo]=M[Xo]),x.send(de),o&&_e?N&&N.set(function(){x.send(de)},0):x.send(de)}function Se(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,l=!1,_=!1,d=!1,E=!1,m=!1,N=null}})}return r.__ieDyn=1,r})()});function Ph(r){return r&&r[dn]?r[dn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,me):r}function Sl(r,e){var t;if(e){var n=me;Q(e)?(n=me,R(e,function(o){o=Ph(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=Ph(e),n&&(n[0]!=="."&&(n="."+n),r=(r||me)+n)}var i=zy.exec(r||me)||[];return t={},t[Pt]=i[1],t.ns=(i[2]||me).replace(By,".").replace(Vy,me)[$t](".").sort().join("."),t}function Op(r,e,t){var n=[],i=uc.get(r,gl,{},!1),o=Sl(e,t);return ae(i,function(a,s){R(s,function(u){var c;(!o[Pt]||o[Pt]===u.evtName[Pt])&&(!o.ns||o.ns===o.ns)&&n[xe]((c={},c[Ur]=u.evtName[Pt]+(u.evtName.ns?"."+u.evtName.ns:me),c.handler=u[Ru],c))})}),n}function Fh(r,e,t){t===void 0&&(t=!0);var n=uc.get(r,gl,{},t),i=n[e];return i||(i=n[e]=[]),i}function Uh(r,e,t,n){r&&e&&e[Pt]&&(r[Ah]?r[Ah](e[Pt],t,n):r[xh]&&r[xh](bh+e[Pt],t))}function Ky(r,e,t,n){var i=!1;return r&&e&&e[Pt]&&t&&(r[yh]?(r[yh](e[Pt],t,n),i=!0):r[Ih]&&(r[Ih](bh+e[Pt],t),i=!0)),i}function Ch(r,e,t,n){for(var i=e[q];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&(Uh(r,o.evtName,o[Ru],o.capture),e[bn](i,1))}}function Wy(r,e,t){if(e[Pt])Ch(r,Fh(r,e[Pt]),e,t);else{var n=uc.get(r,gl,{});ae(n,function(i,o){Ch(r,o,e,t)}),Kr(n)[q]===0&&uc.kill(r,gl)}}function Gt(r,e){var t;return e?(Q(e)?t=[r].concat(e):t=[r,e],t=Sl("xx",t).ns[$t](".")):t=r,t}function kn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=Sl(e,n);if(a=Ky(r,s,t,i),a&&uc.accept(r)){var u=(o={guid:jy++,evtName:s},o[Ru]=t,o.capture=i,o);Fh(r,s.type)[xe](u)}}catch{}return a}function Ii(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=Sl(e,n),a=!1;Wy(r,o,function(s){return o.ns&&!t||s[Ru]===t?(a=!0,!0):!1}),a||Uh(r,o,t,i)}catch{}}function wp(r,e,t,n){return n===void 0&&(n=!1),kn(r,e,t,null,n)}function Yp(r,e,t,n){n===void 0&&(n=!1),Ii(r,e,t,null,n)}function Nl(r,e,t){var n=!1,i=Nr();i&&(n=kn(i,r,e,t),n=kn(i.body,r,e,t)||n);var o=Sr();return o&&(n=kn(o,r,e,t)||n),n}function Tl(r,e,t){var n=Nr();n&&(Ii(n,r,e,t),Ii(n.body,r,e,t));var i=Sr();i&&Ii(i,r,e,t)}function Ps(r,e,t,n){var i=!1;return e&&r&&r[q]>0&&R(r,function(o){o&&(!t||Fe(t,o)===-1)&&(i=Nl(o,e,n)||i)}),i}function Dl(r,e,t,n){var i=!1;return e&&r&&Q(r)&&(i=Ps(r,e,t,n),!i&&t&&t[q]>0&&(i=Ps(r,e,null,n))),i}function fo(r,e,t){r&&Q(r)&&R(r,function(n){n&&Tl(n,e,t)})}function cc(r,e,t){return Dl([wh,Oh,hl],r,e,t)}function fc(r,e){fo([wh,Oh,hl],r,e)}function Cs(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=Gt(Yh,t),o=Ps([hl],r,e,i);return(!e||Fe(e,sc)===-1)&&(o=Ps([sc],n,e,i)||o),!o&&e&&(o=Cs(r,null,t)),o}function lc(r,e){var t=Gt(Yh,e);fo([hl],r,t),fo([sc],null,t)}function bs(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=Gt(Lh,t),o=Ps([Rh],r,e,i);return o=Ps([sc],n,e,i)||o,!o&&e&&(o=bs(r,null,t)),o}function vc(r,e){var t=Gt(Lh,e);fo([Rh],r,t),fo([sc],null,t)}var bh,Ih,yh,xh,Ah,gl,sc,hl,Rh,Oh,wh,Yh,Lh,By,Vy,jy,uc,zy,Mh=Y(()=>{"use strict";v();he();ke();Ns();Tr();bh="on",Ih="attachEvent",yh="addEventListener",xh="detachEvent",Ah="removeEventListener",gl="events",sc="visibilitychange",hl="pagehide",Rh="pageshow",Oh="unload",wh="beforeunload",Yh=qr("aiEvtPageHide"),Lh=qr("aiEvtPageShow"),By=/\.[\.]+/g,Vy=/[\.]+$/,jy=1,uc=Xf("events"),zy=/^([^.]*)(?:\.(.+)|)/});var Lp,Hh=Y(()=>{"use strict";v();Au();Lp=cr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var We=Y(()=>{"use strict";v();fg();lg();fd();Sh();Pp();qf();dp();zd();Ln();Nh();Dh();he();Au();Mh();ro();Dt();fp();fl();gn();pl();Hh();cp();Ns();ml();El();Np();no();el();qd()});var Gn,kh,Fp,Il,yl=Y(()=>{"use strict";v();Gn="",kh="https://browser.events.data.microsoft.com/OneCollector/1.0/",Fp="version",Il="properties"});var Up,Mp,Rs,Bn,Hp,Ze,va,yi,xl,Al,Pl,Cl,_c,bl=Y(()=>{"use strict";v();Up="initialize",Mp="logger",Rs="indexOf",Bn="timings",Hp="pollInternalLogs",Ze="value",va="kind",yi="length",xl="processTelemetryStart",Al="handleField",Pl="rmSanitizer",Cl="rmFieldSanitizer",_c="canHandle"});function Hr(r){return!(r===Gn||B(r))}function Rl(r){if(r){var e=cn(r,"-");if(e>-1)return Mo(r,e)}return Gn}function zh(){return kp===null&&(kp=!Te(Uint8Array)&&!Qy()&&!Zi()),kp}function Ol(r){return!!(r&&zr(r)&&r>=1&&r<=4)}function wl(r,e,t){if(!e&&!Hr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||Q(e))e={value:e};else if(n==="object"&&!Bh.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(B(e[Ze])||e[Ze]===Gn||!Ne(e[Ze])&&!zr(e[Ze])&&!An(e[Ze])&&!Q(e[Ze]))return null;if(Q(e[Ze])&&!Bp(e[Ze]))return null;if(!B(e[va])){if(Q(e[Ze])||!dc(e[va]))return null;e[Ze]=e[Ze].toString()}return e}function ws(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),Jy(t))n===-1&&(n=0),n|=t;else{var i=Xy[Vn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function Kh(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||Gn}function Wh(r){r===void 0&&(r="D");var e=rc();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,Gn)),e}function _a(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[yi],c=arguments;for(An(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];ae(r,function(_,d){a&&d&&tr(d)?Q(d)?(o[_]=o[_]||[],R(d,function(E,m){E&&tr(E)?o[_][m]=_a(!0,o[_][m],E):o[_][m]=E})):o[_]=_a(!0,o[_],d):o[_]=d})}return o}function dc(r){return r===0||r>0&&r<=13||r===32}function Jy(r){return r>=0&&r<=9}function Qy(){var r=Cr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Rs]("safari")>=0||e[Rs]("firefox")>=0)&&e[Rs]("chrome")<0)return!0}return!1}function Bp(r){return r[yi]>0}function pc(r,e){var t=r;t[Bn]=t[Bn]||{},t[Bn][xl]=t[Bn][xl]||{},t[Bn][xl][e]=Rt()}function Vn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===ni&&(e=4,Q(r)?(e=4096,r[yi]>0&&(e|=Vn(r[0]))):Bh.call(r,"value")&&(e=8192|Vn(r[Ze])))}return e}function Yl(){return!!le("chrome")}function $h(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,$y,n),t&&a(s,Gh,t),s.open(r,e,!i),t&&a(s,Gh,t),!i&&o&&a(s,qy,o),s}function lo(r){return r>0}var xi,Gp,Os,Bh,$y,Gh,qy,Xy,kp,Vh,jh,Rt,Ll=Y(()=>{"use strict";v();We();Dt();he();yl();bl();Gp="4.3.4",Os="1DS-Web-JS-"+Gp,Bh=_u.hasOwnProperty,$y="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Gh="withCredentials",qy="timeout",Xy=(xi={},xi[0]=0,xi[2]=6,xi[1]=1,xi[3]=7,xi[4098]=6,xi[4097]=1,xi[4099]=7,xi),kp=null,Vh=Ho(),jh=rs();Rt=Iu});function ex(r){return r&&(!r.getProperty||!r.setProperty)&&hr("Invalid property storage override passed."),!0}var Zy,qh,Xh=Y(()=>{"use strict";v();Dt();Fr();We();he();yl();Ll();bl();Zy=Pn({endpointUrl:kh,propertyStorageOverride:{isVal:ex}});qh=(function(r){Tt(e,r);function e(){var t=r.call(this)||this;return Ce(e,t,function(n,i){n[Up]=function(o,a,s,u){fr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Up](Qe(o,Zy,s||n[Mp],!1).cfg,a,s,u)}catch(_){var c=n[Mp],l=te(_);l[Rs]("channels")!==-1&&(l+=`
3
- - Channels must be provided through config.channels only!`),k(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){fr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[Bn]=a[Bn]||{},a[Bn].trackStart=Rt(),Ol(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Os;var u=a.baseData=a.baseData||{};u[Il]=u[Il]||{};var c=u[Il];c[Fp]=c[Fp]||n.pluginVersionString||Gn}i.track(a)},function(){return{item:o}},!o.sync)},n[Hp]=function(o){return i[Hp](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(Di)});var Jh,Qh,Zh,eS,rS,tS=Y(()=>{"use strict";v();We();Jh=cr({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),Qh=cr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),Zh=cr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),eS=cr({Normal:1,Critical:2}),rS=cr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var nS,iS=Y(()=>{"use strict";v();We();he();yl();Ll();bl();nS=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(l,_){var d,E=n[l];if(E&&(d=E[_]),!d&&d!==null){if(Ne(l)&&Ne(_))if(o[yi]>0){for(var m=0;m<o[yi];m++)if(o[m][Al](l,_)){d={canHandle:!0,fieldHandler:o[m]};break}}else i[yi]===0&&(d={canHandle:!0});if(!d&&d!==null){d=null;for(var m=0;m<i[yi];m++)if(i[m][Al](l,_)){d={canHandle:!0,handler:i[m],fieldHandler:null};break}}E||(E=n[l]={}),E[_]=d}return d}t.clearCache=function(){n={}},t.addSanitizer=function(l){l&&(z_(i,l)||i.push(l),n={})},t.addFieldSanitizer=function(l){l&&(z_(o,l)||o.push(l),n={})},t[Pl]=function(l){if(l){var _=Fe(i,l);_!==-1&&(i.splice(_,1),n={}),R(i,function(d){d&&d[Pl]&&d[Pl](l)})}},t[Cl]=function(l){if(l){var _=Fe(o,l);_!==-1&&(o.splice(_,1),n={}),R(i,function(d){d&&d[Cl]&&d[Cl](l)})}},t.isEmpty=function(){return is(i)+is(o)===0},t[Al]=function(l,_){var d=a(l,_);return d?d[_c]:!1},t[Ze]=function(l,_,d,E){var m=a(l,_);if(m&&m[_c]){if(!m||!m[_c])return null;if(m.handler)return m.handler[Ze](l,_,d,E);if(!Ne(_)||B(d)||d===Gn)return null;var N=null,g=Vn(d);if((g&8192)===8192){var A=g&-8193;if(N=d,!Hr(N[Ze])||A!==1&&A!==2&&A!==3&&(A&4096)!==4096)return null}else g===1||g===2||g===3||(g&4096)===4096?N=u(l,_,d):g===4&&(N=u(l,_,E?JSON.stringify(d):d));if(N)return s(m,l,_,g,N,E)}return null},t.property=function(l,_,d,E){var m=a(l,_);if(!m||!m[_c]||!Ne(_)||B(d)||!Hr(d[Ze]))return null;var N=Vn(d[Ze]);return N===0?null:s(m,l,_,N,d,E)};function s(l,_,d,E,m,N){if(l.handler)return l.handler.property(_,d,m,N);if(!B(m[va])){if((E&4096)===4096||!dc(m[va]))return null;m[Ze]=m[Ze].toString()}return c(l.fieldHandler,_,d,E,m)}function u(l,_,d){return Hr(d)?{value:d}:null}function c(l,_,d,E,m){if(m&&l){var N=l.getSanitizer(_,d,E,m[va],m.propertyType);if(N)if(E===4){var g={},A=m[Ze];ae(A,function(I,O){var F=_+"."+d;if(Hr(O)){var V=u(F,I,O);V=c(l,F,I,Vn(O),V),V&&(g[I]=V[Ze])}}),m[Ze]=g}else{var T={path:_,name:d,type:E,prop:m,sanitizer:t};m=N.call(t,T)}}return m}}return r.getFieldType=Vn,r})()});var oS={};nf(oS,{ActiveStatus:()=>Lt,AppInsightsCore:()=>qh,BaseTelemetryPlugin:()=>Ti,DiagnosticLogger:()=>io,EventLatency:()=>Qh,EventPersistence:()=>eS,EventPropertyType:()=>Zh,EventsDiscardedReason:()=>fn,FullVersionString:()=>Os,InternalAppInsightsCore:()=>Di,LoggingSeverity:()=>Lp,MinChannelPriorty:()=>ud,NotificationManager:()=>Qu,PerfEvent:()=>oa,PerfManager:()=>ec,ProcessTelemetryContext:()=>yp,SenderPostManager:()=>la,TraceLevel:()=>rS,Undefined:()=>yn,ValueKind:()=>Jh,ValueSanitizer:()=>nS,Version:()=>Gp,_InternalLogMessage:()=>na,__getRegisteredEvents:()=>Op,_appendHeader:()=>gs,_getAllResponseHeaders:()=>di,_logInternalMessage:()=>rp,_testHookMaxUnloadHooksCb:()=>xp,_throwInternal:()=>k,_warnToConsole:()=>_t,addEventHandler:()=>Nl,addEventListeners:()=>Dl,addPageHideEventListener:()=>Cs,addPageShowEventListener:()=>bs,addPageUnloadEventListener:()=>cc,areCookiesSupported:()=>ys,arrForEach:()=>R,arrIndexOf:()=>Fe,arrMap:()=>oi,arrReduce:()=>Du,attachEvent:()=>wp,blockDynamicConversion:()=>Wu,convertAllHeadersToMap:()=>$f,cookieAvailable:()=>ys,createCookieMgr:()=>hi,createDynamicConfig:()=>Qe,createEnumStyle:()=>cr,createGuid:()=>Wh,createProcessTelemetryContext:()=>dt,createTraceParent:()=>Ep,createUniqueNamespace:()=>qr,createUnloadHandlerContainer:()=>ca,dateNow:()=>ur,detachEvent:()=>Yp,disallowsSameSiteNone:()=>cl,doPerf:()=>fr,dumpObj:()=>te,eventOff:()=>Ii,eventOn:()=>kn,extend:()=>_a,findW3cTraceParent:()=>Sp,forceDynamicConversion:()=>jd,formatErrorMessageXdr:()=>ra,formatErrorMessageXhr:()=>vi,formatTraceParent:()=>hp,generateW3CId:()=>aa,getCommonSchemaMetaData:()=>ws,getConsole:()=>Uu,getCookieValue:()=>Kh,getCrypto:()=>Mu,getDocument:()=>Sr,getDynamicConfigHandler:()=>Ku,getExceptionName:()=>ir,getFieldValueType:()=>Vn,getGlobal:()=>vt,getGlobalInst:()=>le,getHistory:()=>Ef,getIEVersion:()=>ku,getISOString:()=>mn,getJSON:()=>$r,getLocation:()=>ta,getMsCrypto:()=>Hu,getNavigator:()=>Cr,getPerformance:()=>ko,getResponseText:()=>En,getSetValue:()=>Fu,getTenantId:()=>Rl,getTime:()=>Rt,getWindow:()=>Nr,hasDocument:()=>Ho,hasHistory:()=>V_,hasJSON:()=>Fn,hasNavigator:()=>Nu,hasOwnProperty:()=>Ar,hasWindow:()=>rs,isArray:()=>Q,isArrayValid:()=>Bp,isBeaconsSupported:()=>Jt,isBoolean:()=>An,isChromium:()=>Yl,isDate:()=>df,isDocumentObjectAvailable:()=>Vh,isError:()=>Fo,isFetchSupported:()=>pi,isFunction:()=>se,isGreaterThanZero:()=>lo,isIE:()=>eo,isLatency:()=>Ol,isNotTruthy:()=>F_,isNullOrUndefined:()=>B,isNumber:()=>zr,isObject:()=>tr,isReactNative:()=>Zi,isSampledFlag:()=>gp,isString:()=>Ne,isTruthy:()=>an,isTypeof:()=>L_,isUint8ArrayAvailable:()=>zh,isUndefined:()=>Te,isValidSpanId:()=>ua,isValidTraceId:()=>sa,isValidTraceParent:()=>_l,isValueAssigned:()=>Hr,isValueKind:()=>dc,isWindowObjectAvailable:()=>jh,isXhrSupported:()=>Ss,mergeEvtNamespace:()=>Gt,newGuid:()=>rc,newId:()=>ju,normalizeJsName:()=>ea,objDefineAccessors:()=>H_,objForEachKey:()=>ae,objFreeze:()=>Kt,objKeys:()=>Kr,objSeal:()=>k_,onConfigChange:()=>Mr,openXhr:()=>$h,optimizeObject:()=>bt,parseResponse:()=>fa,parseTraceParent:()=>tc,perfNow:()=>Iu,prependTransports:()=>_i,proxyAssign:()=>Cd,proxyFunctionAs:()=>li,proxyFunctions:()=>kt,random32:()=>mi,randomValue:()=>kd,removeEventHandler:()=>Tl,removeEventListeners:()=>fo,removePageHideEventListener:()=>lc,removePageShowEventListener:()=>vc,removePageUnloadEventListener:()=>fc,safeGetCookieMgr:()=>up,safeGetLogger:()=>gi,sanitizeProperty:()=>wl,setEnableEnvMocks:()=>Ud,setProcessTelemetryTimings:()=>pc,setValue:()=>Xt,strContains:()=>pr,strEndsWith:()=>Go,strFunction:()=>qa,strObject:()=>ni,strPrototype:()=>nn,strStartsWith:()=>os,strTrim:()=>Me,strUndefined:()=>yn,throwError:()=>hr,toISOString:()=>mn,useXDomainRequest:()=>Gu});var da=Y(()=>{"use strict";v();Xh();tS();iS();We();Ll()});var pa,Fl,Ul,Vp=Y(()=>{"use strict";v();pa="REAL_TIME",Fl="NEAR_REAL_TIME",Ul="BEST_EFFORT"});var hn,Ml,aS,jp,sS,uS,zp,Hl,mc,Ys,cS,fS,lS,kl,Kp,Gl,Bl,Vl,Ec,Wp,$p,vS,Ls,qp,jl,gc=Y(()=>{"use strict";v();hn="",Ml="drop",aS="send",jp="requeue",sS="rspFail",uS="oth",zp="no-cache, no-store",Hl="application/x-json-stream",mc="cache-control",Ys="content-type",cS="kill-tokens",fS="kill-duration",lS="time-delta-millis",kl="client-version",Kp="client-id",Gl="time-delta-to-apply-millis",Bl="upload-time",Vl="apikey",Ec="AuthMsaDeviceTicket",Wp="WebAuthToken",$p="AuthXToken",vS="NoResponseBody",Ls="msfpc",qp="trace",jl="user"});var hc,zl,Kl,Wl,Sc,Ae,jn,Bt,lr,zn,Rr,Kn,ma,$l,Ea,ql,ga,Xl,Jl,_S,Xp,Jp,dS,pS,Ql,Qp,Zp,mS,ES,em,rm,tm,gS,Zl,ev,rv,Nc,nm,Sn,Fs,im,nt,Ot,Tc,Dc,Us,tv,Ic,hS,Ms,nv,iv,Hs,om,yc,ov,av,ks,SS,sv,uv,cv,xc,NS,TS,am,sm,DS,IS,yS,fv,Ac,vo,ha,Gs=Y(()=>{"use strict";v();hc="allowRequestSending",zl="firstRequestSent",Kl="shouldAddClockSkewHeaders",Wl="getClockSkewHeaderValue",Sc="setClockSkew",Ae="length",jn="concat",Bt="iKey",lr="count",zn="events",Rr="push",Kn="split",ma="splice",$l="toLowerCase",Ea="hdrs",ql="useHdrs",ga="initialize",Xl="setTimeoutOverride",Jl="clearTimeoutOverride",_S="payloadPreprocessor",Xp="overrideEndpointUrl",Jp="avoidOptions",dS="disableEventTimings",pS="stringifyObjects",Ql="enableCompoundKey",Qp="disableXhrSync",Zp="disableFetchKeepAlive",mS="addNoResponse",ES="excludeCsMetaData",em="useSendBeacon",rm="fetchCredentials",tm="alwaysUseXhrOverride",gS="unloadTransports",Zl="serializeOfflineEvt",ev="getOfflineRequestDetails",rv="createPayload",Nc="createOneDSPayload",nm="payloadBlob",Sn="headers",Fs="_thePayload",im="urlString",nt="batches",Ot="sendType",Tc="addHeader",Dc="canSendRequest",Us="sendQueuedRequests",tv="isCompletelyIdle",Ic="setUnloading",hS="isTenantKilled",Ms="resume",nv="sendSynchronousBatch",iv="_transport",Hs="getWParam",om="isBeacon",yc="timings",ov="isTeardown",av="isSync",ks="data",SS="timeout",sv="_sendReason",uv="setKillSwitchTenants",cv="_backOffTransmission",xc="identifier",NS="disableOptimizeObj",TS="ignoreMc1Ms0CookieProcessing",am="eventsLimitInMem",sm="autoFlushEventsLimit",DS="disableAutoBatchFlushLimit",IS="overrideInstrumentationKey",yS="disableTelemetry",fv="baseData",Ac="sendAttempt",vo="latency",ha="sync"});function AS(r){var e=(r.ext||{}).intweb;return e&&Hr(e[Ls])?e[Ls]:null}function xS(r){for(var e=null,t=0;e===null&&t<r[Ae];t++)e=AS(r[t]);return e}var _o,lv=Y(()=>{"use strict";v();da();gc();Gs();_o=(function(){function r(e,t){var n=t?[][jn](t):[],i=this,o=xS(n);i[Bt]=function(){return e},i.Msfpc=function(){return o||hn},i[lr]=function(){return n[Ae]},i[zn]=function(){return n},i.addEvent=function(a){return a?(n[Rr](a),o||(o=AS(a)),!0):!1},i[Kn]=function(a,s){var u;if(a<n[Ae]){var c=n[Ae]-a;B(s)||(c=s<c?s:c),u=n[ma](a,c),o=xS(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var PS,CS=Y(()=>{"use strict";v();Fr();Gs();PS=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;Ce(r,this,function(a){a[hc]=function(){return e},a[zl]=function(){n&&(n=!1,o||(e=!1))},a[Kl]=function(){return t},a[Wl]=function(){return i},a[Sc]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var rx,bS,RS=Y(()=>{"use strict";v();Fr();da();Gs();rx=1e3,bS=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[Rr](Me(o))}),i}Ce(r,this,function(n){n[uv]=function(i,o){if(i&&o)try{var a=t(i[Kn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*rx,u=0;u<a[Ae];++u)e[a[u]]=ur()+s}catch{return[]}return[]},n[hS]=function(i){var o=e,a=Me(i);return o[a]!==void 0&&o[a]>ur()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function wS(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function vv(r){var e=0,t=OS*tx,n=OS*nx,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,ix)}var tx,nx,OS,ix,um=Y(()=>{"use strict";v();tx=.8,nx=1.2,OS=3e3,ix=6e5});function cx(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[YS];a||(a=e[YS]={f:{}});var s=a[_v];if(s||(s=a[_v]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var l=s[c][_v];l||(l=s[c][_v]={}),s=l}s=s[n]={},Q(i.value)?s.a={t:o}:s.t=o}}}var ox,ax,LS,FS,sx,YS,_v,ux,US,MS=Y(()=>{"use strict";v();Fr();da();lv();gc();he();ox=20,ax=3984588,LS=65e3,FS=2e6,sx=Math.min(FS,LS),YS="metadata",_v="f",ux=/\./,US=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",l=!!i,_=!0,d=t,E={},m=!!a,N=o||ws;Ce(r,this,function(g){g.createPayload=function(I,O,F,V,W,ne){return{apiKeys:[],payloadBlob:hn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:O,isSync:F,isBeacon:V,sendType:ne,sendReason:W}},g.appendPayload=function(I,O,F){var V=I&&O&&!I.overflow;return V&&fr(e,function(){return"Serializer:appendPayload"},function(){for(var W=O.events(),ne=I.payloadBlob,z=I.numEvents,G=!1,Z=[],fe=[],Se=I.isBeacon,M=Se?LS:ax,H=Se?sx:FS,_e=0,ue=0;_e<W.length;){var x=W[_e];if(x){if(z>=F){I.overflow=O.split(_e);break}var de=g.getEventBlob(x);if(de&&de.length<=H){var re=de.length,Ie=ne.length;if(Ie+re>M){I.overflow=O.split(_e);break}ne&&(ne+=`
4
- `),ne+=de,ue++,ue>ox&&(Cn(ne,0,1),ue=0),G=!0,z++}else de?Z.push(x):fe.push(x),W.splice(_e,1),_e--}_e++}if(Z.length>0&&I.sizeExceed.push(_o.create(O.iKey(),Z)),fe.length>0&&I.failedEvts.push(_o.create(O.iKey(),fe)),G){I.batches.push(O),I.payloadBlob=ne,I.numEvents=z;var $=O.iKey();Fe(I.apiKeys,$)===-1&&I.apiKeys.push($)}},function(){return{payload:I,theBatch:{iKey:O.iKey(),evts:O.events()},max:F}}),V},g.getEventBlob=function(I){try{return fr(e,function(){return"Serializer.getEventBlob"},function(){var O={};O.name=I.name,O.time=I.time,O.ver=I.ver,O.iKey="o:"+Rl(I.iKey);var F={},V;m||(V=function(G,Z,fe){cx(N,F,G,Z,fe)});var W=I[c];W&&(O[c]=F,ae(W,function(G,Z){var fe=F[G]={};T(Z,fe,"ext."+G,!0,null,null,!0)}));var ne=O[s]={};ne.baseType=I.baseType;var z=ne[u]={};return T(I.baseData,z,u,!1,[u],V,_),T(I.data,ne,s,!1,[],V,_),JSON.stringify(O)},function(){return{item:I}})}catch{return null}};function A(I,O){var F=E[I];return F===void 0&&(I.length>=7&&(F=os(I,"ext.metadata")||os(I,"ext.web")),E[I]=F),F}function T(I,O,F,V,W,ne,z){ae(I,function(G,Z){var fe=null;if(Z||Hr(Z)){var Se=F,M=G,H=W,_e=O;if(l&&!V&&ux.test(G)){var ue=G.split("."),x=ue.length;if(x>1){H&&(H=H.slice());for(var de=0;de<x-1;de++){var re=ue[de];_e=_e[re]=_e[re]||{},Se+="."+re,H&&H.push(re)}M=ue[x-1]}}var Ie=V&&A(Se,M);if(!Ie&&d&&d.handleField(Se,M)?fe=d.value(Se,M,Z,n):fe=wl(M,Z,n),fe){var $=fe.value;if(_e[M]=$,ne&&ne(H,M,fe),z&&typeof $=="object"&&!Q($)){var C=H;C&&(C=C.slice(),C.push(M)),T(Z,$,Se+"."+M,V,C,ne,z)}}}})}})}return r.__ieDyn=1,r})()});function Bs(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return eg([r,e],t,n,i)}}}var cm=Y(()=>{"use strict";v();he()});function Na(r,e,t){lm[r]=e,t!==!1&&(vm[e]=r)}function dv(r,e){var t=!1;if(r&&e){var n=Kr(r);if(n&&n[Ae]>0)for(var i=e[$l](),o=0;o<n[Ae];o++){var a=n[o];if(a&&Ar(e,a)&&a[$l]()===i){t=!0;break}}}return t}function Vs(r,e,t,n){e&&t&&t[Ae]>0&&(n&&lm[e]?(r[Ea][lm[e]]=t,r[ql]=!0):r.url+="&"+e+"="+t)}function _x(r,e,t){for(var n=0;n<r[Ae];n++)if(r[n].name===e){r[n].value=t;return}r[Rr]({name:e,value:t})}function dx(r,e){for(var t=0;t<r[Ae];t++)if(r[t].name===e){r[ma](t,1);return}}var Sa,fm,fx,lx,vx,lm,vm,HS,kS=Y(()=>{"use strict";v();Fr();da();he();CS();lv();gc();RS();um();MS();cm();Gs();fm="sendAttempt",fx="&"+vS+"=true",lx="?cors=true&"+Ys[$l]()+"="+Hl,vx=(Sa={},Sa[1]=jp,Sa[100]=jp,Sa[200]="sent",Sa[8004]=Ml,Sa[8003]=Ml,Sa),lm={},vm={};Na(Ec,Ec,!1);Na(kl,kl);Na(Kp,"Client-Id");Na(Vl,Vl);Na(Gl,Gl);Na(Bl,Bl);Na($p,$p);HS=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,l,_,d,E,m,N,g,A,T,I,O,F,V,W,ne,z,G,Z,fe,Se,M,H,_e,ue,x,de,re,Ie;Ce(r,this,function($){vr();var C=!0;$[ga]=function(h,w,U){ue||(m=w,F=w.getCookieMgr(),_=U,d=_.diagLog(),un(Se,Mr(h,function(J){var ve,ye=J.cfg,ee=J.cfg.extensionConfig[U.identifier];x=Bs(ee[Xl],ee[Jl]),Hr(ye.anonCookieName)?_x(g,"anoncknm",ye.anonCookieName):dx(g,"anoncknm"),M=ee[_S],H=ee.payloadListener;var f=ee.httpXHROverride,p=ee[Xp]?ee[Xp]:ye.endpointUrl;o=p+lx,W=Te(ee[Jp])?!0:!ee[Jp],O=!ee[dS];var S=ee.valueSanitizer,D=ee[pS],b=!!ye[Ql];Te(ee[Ql])||(b=!!ee[Ql]),ne=ee.xhrTimeout,z=!!ee[Qp],G=!!ee[Zp],fe=ee[mS]!==!1,de=!!ee[ES],w.getPlugin("LocalStorage")&&(G=!0),c=!Zi(),I=new US(m,S,D,b,ws,de),B(ee[em])||(c=!!ee[em]),ee[rm]&&(Ie=ee[rm]);var L=Ke();re?re.SetConfig(L):(re=new la,re[ga](L,d));var j=f,pe=ee[tm]?f:null,Re=ee[tm]?f:null,ce=[3,2];if(!f){N=!1;var gt=[];Zi()?(gt=[2,1],ce=[2,1,3]):gt=[1,2,3],gt=_i(gt,ee.transports),f=we(gt,!1),f||_t(d,"No available transport to send events"),j=we(gt,!0)}pe||(ce=_i(ce,ee[gS]),pe=we(ce,!0)),Z=!N&&(c&&Jt()||!G&&pi(!0)),E=(ve={},ve[0]=f,ve[1]=j||we([1,2,3],!0),ve[2]=pe||j||we([1],!0),ve[3]=Re||we([2,3],!0)||j||we([1],!0),ve)})),ue=!0)},$.addResponseHandler=function(h){return _e[Rr](h),{rm:function(){var w=_e.indexOf(h);w>=0&&_e[ma](w,1)}}},$[Zl]=function(h){try{if(I)return I.getEventBlob(h)}catch{}return hn},$[ev]=function(){try{var h=I&&I[rv](0,!1,!1,!1,1,0);return X(h,W)}catch{}return null},$[Nc]=function(h,w){try{var U=[];R(h,function(f){w&&(f=bt(f));var p=_o.create(f[Bt],[f]);U[Rr](p)});for(var J=null;U[Ae]>0&&I;){var ve=U.shift();ve&&ve[lr]()>0&&(J=J||I[rv](0,!1,!1,!1,1,0),I.appendPayload(J,ve,e))}var ye=X(J,W),ee={data:J[nm],urlString:ye.url,headers:ye[Ea],timeout:ne,disableXhrSync:z,disableFetchKeepAlive:G};return W&&(dv(ee[Sn],mc)||(ee[Sn][mc]=zp),dv(ee[Sn],Ys)||(ee[Sn][Ys]=Hl)),ee}catch{}return null};function we(h,w){try{return re&&re.getSenderInst(h,w)}catch{}return null}$._getDbgPlgTargets=function(){return[E[0],a,I,E,Ke(),o]};function Ke(){try{var h={xdrOnComplete:ct,fetchOnComplete:Vt,xhrOnComplete:Gr,beaconOnRetry:ft},w={enableSendPromise:!1,isOneDs:!0,disableCredentials:!C,fetchCredentials:Ie,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:x,addNoResponse:fe,senderOnCompleteCallBack:h};return w}catch{}return null}function ct(h,w,U){var J=En(h);xr(w,200,{},J),jt(J)}function vr(){var h;o=null,a=new bS,s=!1,u=new PS,c=!1,l=0,_=null,d=null,E=null,m=null,N=!0,g=[],A={},T=[],I=null,O=!1,F=null,V=!1,W=!1,ne=h,z=h,G=h,Z=h,fe=h,Se=[],M=h,H=h,_e=[],ue=!1,x=Bs(),de=!1,re=null}function Vt(h,w,U,J){var ve=function(f,p,S){xr(w,f,p,S),jt(S)},ye={},ee=h[Sn];ee&&ee.forEach(function(f,p){ye[p]=f}),ve(h.status,ye,U||hn)}function Gr(h,w,U){var J=En(h);xr(w,h.status,di(h,!0),J),jt(J)}function xr(h,w,U,J){try{h(w,U,J)}catch(ve){k(d,2,518,te(ve))}}function ft(h,w,U){var J=h,ve=200,ye=J[Fs],ee=h[im]+(fe?fx:hn);try{var f=Cr();if(ye){var p=!!m.getPlugin("LocalStorage"),S=[],D=[];R(ye[nt],function(b){if(S&&b&&b[lr]()>0)for(var L=b[zn](),j=0;j<L[Ae];j++)if(f.sendBeacon(ee,I.getEventBlob(L[j])))D[Rr](b[j]);else{S[Rr](b[Kn](j));break}else S[Rr](b[Kn](0))}),D[Ae]>0&&(ye.sentEvts=D),p||Yr(S,8003,ye[Ot],!0)}else ve=0}catch(b){_t(d,"Failed to send telemetry using sendBeacon API. Ex:"+te(b)),ve=0}finally{xr(w,ve,{},hn)}}function Ge(h){return h===2||h===3}function Le(h){return V&&Ge(h)&&(h=2),h}$[Tc]=function(h,w){A[h]=w},$.removeHeader=function(h){delete A[h]},$[Dc]=function(){return Xe()&&u[hc]()},$[Us]=function(h,w){Te(h)&&(h=0),V&&(h=Le(h),w=2),P(T,h,0)&&ie(je(),0,!1,h,w||0)},$[tv]=function(){return!s&&l===0&&T[Ae]===0},$[Ic]=function(h){V=h},$.addBatch=function(h){if(h&&h[lr]()>0){if(a.isTenantKilled(h[Bt]()))return!1;T[Rr](h)}return!0},$.teardown=function(){T[Ae]>0&&ie(je(),0,!0,2,2),R(Se,function(h){h&&h.rm&&h.rm()}),Se=[]},$.pause=function(){s=!0},$[Ms]=function(){s=!1,$[Us](0,4)},$[nv]=function(h,w,U){h&&h[lr]()>0&&(B(w)&&(w=1),V&&(w=Le(w),U=2),ie([h],0,!1,w,U||0))};function Xe(){return!s&&l<t}function je(){var h=T;return T=[],h}function P(h,w,U){var J=!1;return h&&h[Ae]>0&&!s&&E[w]&&I&&(J=w!==0||Xe()&&(U>0||u[hc]())),J}function K(h){var w={};return h&&R(h,function(U,J){w[J]={iKey:U[Bt](),evts:U[zn]()}}),w}function ie(h,w,U,J,ve){if(!(!h||h[Ae]===0)){if(s){Yr(h,1,J);return}J=Le(J);try{var ye=h,ee=J!==0;fr(m,function(){return"HttpManager:_sendBatches"},function(f){f&&(h=h.slice(0));for(var p=[],S=null,D=Rt(),b=E[J]||(ee?E[1]:E[0]),L=b&&b[iv],j=Z&&(V||Ge(J)||L===3||b._isSync&&L===2);P(h,J,w);){var pe=h.shift();pe&&pe[lr]()>0&&(a.isTenantKilled(pe[Bt]())?p[Rr](pe):(S=S||I[rv](w,U,ee,j,ve,J),I.appendPayload(S,pe,e)?S.overflow!==null&&(h=[S.overflow][jn](h),S.overflow=null,Oe(S,D,Rt(),ve),D=Rt(),S=null):(Oe(S,D,Rt(),ve),D=Rt(),h=[pe][jn](h),S=null)))}S&&Oe(S,D,Rt(),ve),h[Ae]>0&&(T=h[jn](T)),Yr(p,8004,J)},function(){return{batches:K(ye),retryCount:w,isTeardown:U,isSynchronous:ee,sendReason:ve,useSendBeacon:Ge(J),sendType:J}},!ee)}catch(f){k(d,2,48,"Unexpected Exception sending batch: "+te(f))}}}function X(h,w){var U={url:o,hdrs:{},useHdrs:!1};w?(U[Ea]=_a(U[Ea],A),U.useHdrs=Kr(U.hdrs)[Ae]>0):ae(A,function(f,p){vm[f]?Vs(U,vm[f],p,!1):(U[Ea][f]=p,U[ql]=!0)}),Vs(U,Kp,"NO_AUTH",w),Vs(U,kl,Os,w);var J=hn;R(h.apiKeys,function(f){J[Ae]>0&&(J+=","),J+=f}),Vs(U,Vl,J,w),Vs(U,Bl,ur().toString(),w);var ve=et(h);if(Hr(ve)&&(U.url+="&ext.intweb.msfpc="+ve),u[Kl]()&&Vs(U,Gl,u[Wl](),w),m[Hs]){var ye=m[Hs]();ye>=0&&(U.url+="&w="+ye)}for(var ee=0;ee<g[Ae];ee++)U.url+="&"+g[ee].name+"="+g[ee].value;return U}function oe(h,w,U){h[w]=h[w]||{},h[w][_.identifier]=U}function Oe(h,w,U,J){if(h&&h.payloadBlob&&h.payloadBlob[Ae]>0){var ve=!!M,ye=E[h.sendType];!Ge(h[Ot])&&h[om]&&h.sendReason===2&&(ye=E[2]||E[3]||ye);var ee=W;(h.isBeacon||ye[iv]===3)&&(ee=!1);var f=X(h,ee);ee=ee||f[ql];var p=Rt();fr(m,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<h.batches[Ae];S++)for(var D=h[nt][S],b=D[zn](),L=0;L<b[Ae];L++){var j=b[L];if(O){var pe=j[yc]=j[yc]||{};oe(pe,"sendEventStart",p),oe(pe,"serializationStart",w),oe(pe,"serializationCompleted",U)}j[fm]>0?j[fm]++:j[fm]=1}Yr(h[nt],1e3+(J||0),h[Ot],!0);var Re={data:h[nm],urlString:f.url,headers:f[Ea],_thePayload:h,_sendReason:J,timeout:ne,disableXhrSync:z,disableFetchKeepAlive:G};ee&&(dv(Re[Sn],mc)||(Re[Sn][mc]=zp),dv(Re[Sn],Ys)||(Re[Sn][Ys]=Hl));var ce=null;ye&&(ce=function(gt){u[zl]();var ti=function(In,Zc){Ue(In,Zc,h,J)},ht=h[ov]||h[av];try{ye.sendPOST(gt,ti,ht),H&&H(Re,gt,ht,h[om])}catch(In){_t(d,"Unexpected exception sending payload. Ex:"+te(In)),xr(ti,0,{})}}),fr(m,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(ce)if(h[Ot]===0&&l++,ve&&!h.isBeacon&&ye[iv]!==3){var gt={data:Re[ks],urlString:Re[im],headers:_a({},Re[Sn]),timeout:Re[SS],disableXhrSync:Re[Qp],disableFetchKeepAlive:Re[Zp]},ti=!1;fr(m,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{M(gt,function(ht){ti=!0,!N&&!ht[Fs]&&(ht[Fs]=ht[Fs]||Re[Fs],ht[sv]=ht[sv]||Re[sv]),ce(ht)},h.isSync||h[ov])}catch{ti||ce(Re)}})}else ce(Re)})},function(){return{thePayload:h,serializationStart:w,serializationCompleted:U,sendReason:J}},h[av])}h.sizeExceed&&h.sizeExceed[Ae]>0&&Yr(h.sizeExceed,8003,h[Ot]),h.failedEvts&&h.failedEvts[Ae]>0&&Yr(h.failedEvts,8002,h[Ot])}function be(h,w){O&&R(h,function(U){var J=U[yc]=U[yc]||{};oe(J,"sendEventCompleted",w)})}function Ue(h,w,U,J){var ve=9e3,ye=null,ee=!1,f=!1;try{var p=!0;if(typeof h!==yn){if(w){u[Sc](w[lS]);var S=w[fS]||w["kill-duration-seconds"];R(a[uv](w[cS],S),function(b){R(U[nt],function(L){if(L[Bt]()===b){ye=ye||[];var j=L[Kn](0);U.numEvents-=j[lr](),ye[Rr](j)}})})}if(h==200||h==204){ve=200;return}(!wS(h)||U.numEvents<=0)&&(p=!1),ve=9e3+h%1e3}if(p){ve=100;var D=U.retryCnt;U[Ot]===0&&(D<n?(ee=!0,Zr(function(){U[Ot]===0&&l--,ie(U[nt],D+1,U[ov],V?2:U[Ot],5)},V,vv(D))):(f=!0,V&&(ve=8001)))}}finally{ee||(u[Sc](),Je(U,ve,J,f)),Yr(ye,8004,U[Ot])}}function Je(h,w,U,J){try{J&&_[cv]();var ve=h[nt];w===200&&(ve=h.sentEvts||h[nt],!J&&!h[av]&&_._clearBackOff(),or(ve)),Yr(ve,w,h[Ot],!0)}finally{h[Ot]===0&&(l--,U!==5&&$.sendQueuedRequests(h[Ot],U))}}function or(h){if(O){var w=Rt();R(h,function(U){U&&U[lr]()>0&&be(U[zn](),w)})}}function Zr(h,w,U){w?h():x.set(h,U)}function et(h){for(var w=0;w<h.batches[Ae];w++){var U=h[nt][w].Msfpc();if(U)return encodeURIComponent(U)}return hn}function jt(h){var w=_e;try{for(var U=0;U<w[Ae];U++)try{w[U](h)}catch(ve){k(d,1,519,"Response handler failed: "+ve)}if(h){var J=JSON.parse(h);Hr(J.webResult)&&Hr(J.webResult[Ls])&&F.set("MSFPC",J.webResult[Ls],365*86400)}}catch{}}function Yr(h,w,U,J){if(h&&h[Ae]>0&&i){var ve=i[ri(w)];if(ve){var ye=U!==0;fr(m,function(){return"HttpManager:_sendBatchesNotification"},function(){Zr(function(){try{ve.call(i,h,w,ye,U)}catch(ee){k(d,1,74,"send request notification failed: "+ee)}},J||ye,0)},function(){return{batches:K(h),reason:w,isSync:ye,sendSync:J,sendType:U}},!ye)}}}function ri(h){var w=vx[h];return Hr(w)||(w=uS,h>=9e3&&h<=9999?w=sS:h>=8e3&&h<=8999?w=Ml:h>=1e3&&h<=1999&&(w=aS)),w}})}return r.__ieDyn=1,r})()});function Sx(r){return r&&r.sendPOST}var px,GS,mx,jS,zS,Ex,BS,gx,_m,Ta,VS,Dr,hx,KS,WS=Y(()=>{"use strict";v();Dt();Fr();da();Jo();he();Vp();lv();kS();gc();um();cm();Gs();px=.25,GS=500,mx=20,jS=6,zS=2,Ex=4,BS=2,gx=1,_m=1e4,Ta="eventsDiscarded",VS="",Dr=void 0,hx=Pn({eventsLimitInMem:{isVal:lo,v:_m},immediateEventLimit:{isVal:lo,v:500},autoFlushEventsLimit:{isVal:lo,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:Sx,v:Dr},overrideInstrumentationKey:Dr,overrideEndpointUrl:Dr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Dr,clearTimeoutOverride:Dr,payloadPreprocessor:Dr,payloadListener:Dr,disableEventTimings:Dr,valueSanitizer:Dr,stringifyObjects:Dr,enableCompoundKey:Dr,disableOptimizeObj:!1,fetchCredentials:Dr,transports:Dr,unloadTransports:Dr,useSendBeacon:Dr,disableFetchKeepAlive:Dr,avoidOptions:!1,xhrTimeout:Dr,disableXhrSync:Dr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:zr,v:jS},maxUnloadEventRetryAttempts:{isVal:zr,v:zS},addNoResponse:Dr,excludeCsMetaData:Dr});KS=(function(r){Tt(e,r);function e(){var t=r.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="4.3.4";var n,i=!1,o=[],a,s=!1,u=0,c,l=0,_,d={},E=pa,m,N,g,A,T,I,O,F,V,W,ne,z,G,Z,fe,Se,M,H,_e,ue,x,de;return Ce(e,t,function(re,Ie){Le(),re._getDbgPlgTargets=function(){return[T,n]},re[ga]=function(f,p,S){fr(p,function(){return"PostChannel:initialize"},function(){Ie[ga](f,p,S),_e=p.getNotifyMgr();try{fe=Gt(qr(re[xc]),p.evtNamespace&&p.evtNamespace()),re._addHook(Mr(f,function(D){var b=D.cfg,L=dt(null,b,p);n=L.getExtCfg(re[xc],hx),Se=Bs(n[Xl],n[Jl]),ne=!n[NS]&&Yl(),M=n[TS],C(p),_=n[am],c=n.immediateEventLimit,O=n[sm],G=n.maxEventRetryAttempts,Z=n.maxUnloadEventRetryAttempts,H=n[DS],lt(b.endpointUrl)?re.pause():s&&re[Ms](),ee(),x=n[IS],de=!!n[yS],ue&&$();var j=b.disablePageUnloadEvents||[];ue=cc(ct,j,fe),ue=Cs(ct,j,fe)||ue,ue=bs(vr,b.disablePageShowEvents,fe)||ue})),T[ga](f,re.core,re)}catch(D){throw re.setInitialized(!1),D}},function(){return{theConfig:f,core:p,extensions:S}})},re.processTelemetry=function(f,p){pc(f,re[xc]),p=p||re._getTelCtx(p);var S=f;!de&&!i&&(x&&(S[Bt]=x),Gr(S,!0),z?P(2,2):Ge()),re.processNext(S,p)},re.getOfflineSupport=function(){try{var f=T&&T[ev]();if(T)return{getUrl:function(){return f?f.url:null},serialize:Ke,batch:we,shouldProcess:function(p){return!de},createPayload:function(p){return null},createOneDSPayload:function(p){if(T[Nc])return T[Nc](p,ne)}}}catch{}return null},re._doTeardown=function(f,p){P(2,2),i=!0,T.teardown(),$(),Le()};function $(){fc(null,fe),lc(null,fe),vc(null,fe)}function C(f){var p=f[Hs];f[Hs]=function(){var S=0;return M&&(S=S|2),S|p.call(f)}}function we(f){var p=VS;return f&&f[Ae]&&R(f,function(S){p&&(p+=`
5
- `),p+=S}),p}function Ke(f){var p=VS;try{Vt(f),p=T[Zl](f)}catch{}return p}function ct(f){var p=f||Nr().event;p.type!=="beforeunload"&&(z=!0,T[Ic](z)),P(2,2)}function vr(f){z=!1,T[Ic](z)}function Vt(f){f.ext&&f.ext[qp]&&delete f.ext[qp],f.ext&&f.ext[jl]&&f.ext[jl].id&&delete f.ext[jl].id,ne&&(f.ext=bt(f.ext),f[fv]&&(f[fv]=bt(f[fv])),f[ks]&&(f[ks]=bt(f[ks])))}function Gr(f,p){if(f[Ac]||(f[Ac]=0),f[vo]||(f[vo]=1),Vt(f),f[ha]){if(g||s)f[vo]=3,f[ha]=!1;else if(T){ne&&(f=bt(f)),T[nv](_o.create(f[Bt],[f]),f[ha]===!0?1:f[ha],3);return}}var S=f[vo],D=l,b=_;S===4&&(D=u,b=c);var L=!1;if(D<b)L=!oe(f,p);else{var j=1,pe=mx;S===4&&(j=4,pe=1),L=!0,Oe(f[Bt],f[vo],j,pe)&&(L=!oe(f,p))}L&&ri(Ta,[f],fn.QueueFull)}re.setEventQueueLimits=function(f,p){n[am]=_=lo(f)?f:_m,n[sm]=O=lo(p)?p:0,ee();var S=l>f;if(!S&&F>0)for(var D=1;!S&&D<=3;D++){var b=I[D];b&&b[nt]&&R(b[nt],function(L){L&&L[lr]()>=F&&(S=!0)})}X(!0,S)},re.pause=function(){je(),s=!0,T&&T.pause()},re[Ms]=function(){s=!1,T&&T[Ms](),Ge()},re._loadTransmitProfiles=function(f){Zr(),ae(f,function(p,S){var D=S[Ae];if(D>=2){var b=D>2?S[2]:0;if(S[ma](0,D-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var L=S[0]/S[1];S[0]=Math.ceil(L)*S[1]}b>=0&&S[1]>=0&&b>S[1]&&(b=S[1]),S[Rr](b),d[p]=S}})},re.flush=function(f,p,S){f===void 0&&(f=!0);var D;if(!s)if(S=S||1,f)p||(D=qt(function(L){p=L})),a==null?(je(),Ue(1,0,S),a=Xe(function(){a=null,Je(p,S)},0)):o[Rr](p);else{var b=je();xr(1,1,S),p&&p(),b&&Ge()}return D},re.setMsaAuthTicket=function(f){T[Tc](Ec,f)},re.setAuthPluginHeader=function(f){T[Tc](Wp,f)},re.removeAuthPluginHeader=function(){T.removeHeader(Wp)},re.hasEvents=ft,re._setTransmitProfile=function(f){E!==f&&d[f]!==void 0&&(je(),E=f,Ge())},kt(re,function(){return T},["addResponseHandler"]);function xr(f,p,S){var D=Ue(f,p,S);return T[Us](p,S),D}function ft(){return l>0}function Ge(){if(V>=0&&Ue(V,0,W)&&T[Us](0,W),u>0&&!N&&!s){var f=d[E][2];f>=0&&(N=Xe(function(){N=null,xr(4,0,1),Ge()},f))}var p=d[E][1];!m&&!a&&p>=0&&!s&&(ft()?m=Xe(function(){m=null,xr(A===0?3:1,0,1),A++,A%=2,Ge()},p):A=0)}re[cv]=function(){g<Ex&&(g++,je(),Ge())},re._clearBackOff=function(){g&&(g=0,je(),Ge())};function Le(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,l=0,_=_m,d={},E=pa,m=null,N=null,g=0,A=0,I={},O=0,ue=!1,F=0,V=-1,W=null,ne=!0,z=!1,G=jS,Z=zS,fe=null,x=null,de=!1,Se=Bs(),T=new HS(GS,BS,gx,{requeue:jt,send:w,sent:U,drop:J,rspFail:ve,oth:ye}),et(),K(),ee()}function Xe(f,p){p===0&&g&&(p=1);var S=1e3;return g&&(S=vv(g-1)),Se.set(f,p*S)}function je(){return m!==null?(m.cancel(),m=null,A=0,!0):!1}function P(f,p){je(),a&&(a.cancel(),a=null),s||xr(1,f,p)}function K(){I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}}}function ie(f,p,S){var D=I[p];D||(p=1,D=I[p]);var b=D.iKeyMap[f];return!b&&S&&(b=_o.create(f),D.batches[Rr](b),D.iKeyMap[f]=b),b}function X(f,p){T[Dc]()&&!g&&(O>0&&l>O&&(p=!0),p&&a==null&&re.flush(f,function(){},20))}function oe(f,p){ne&&(f=bt(f));var S=f[vo],D=ie(f[Bt],S,!0);return D.addEvent(f)?(S!==4?(l++,p&&f[Ac]===0&&X(!f.sync,F>0&&D[lr]()>=F)):u++,!0):!1}function Oe(f,p,S,D){for(;S<=p;){var b=ie(f,p,!0);if(b&&b[lr]()>0){var L=b[Kn](0,D),j=L[lr]();if(j>0)return S===4?u-=j:l-=j,h(Ta,[L],fn.QueueFull),!0}S++}return be(),!1}function be(){for(var f=0,p=0,S=function(b){var L=I[b];L&&L[nt]&&R(L[nt],function(j){b===4?f+=j[lr]():p+=j[lr]()})},D=1;D<=4;D++)S(D);l=p,u=f}function Ue(f,p,S){var D=!1,b=p===0;return!b||T[Dc]()?fr(re.core,function(){return"PostChannel._queueBatches"},function(){for(var L=[],j=4;j>=f;){var pe=I[j];pe&&pe.batches&&pe.batches[Ae]>0&&(R(pe[nt],function(Re){T.addBatch(Re)?D=D||Re&&Re[lr]()>0:L=L[jn](Re[zn]()),j===4?u-=Re[lr]():l-=Re[lr]()}),pe[nt]=[],pe.iKeyMap={}),j--}L[Ae]>0&&ri(Ta,L,fn.KillSwitch),D&&V>=f&&(V=-1,W=0)},function(){return{latency:f,sendType:p,sendReason:S}},!b):(V=V>=0?Math.min(V,f):f,W=Math.max(W,S)),D}function Je(f,p){xr(1,0,p),be(),or(function(){f&&f(),o[Ae]>0?a=Xe(function(){a=null,Je(o.shift(),p)},0):(a=null,Ge())})}function or(f){T[tv]()?f():a=Xe(function(){a=null,or(f)},px)}function Zr(){je(),et(),E=pa,Ge()}function et(){d={},d[pa]=[2,1,0],d[Fl]=[6,3,0],d[Ul]=[18,9,0]}function jt(f,p){var S=[],D=G;z&&(D=Z),R(f,function(b){b&&b[lr]()>0&&R(b[zn](),function(L){L&&(L[ha]&&(L[vo]=4,L[ha]=!1),L[Ac]<D?(pc(L,re[xc]),Gr(L,!1)):S[Rr](L))})}),S[Ae]>0&&ri(Ta,S,fn.NonRetryableStatus),z&&P(2,2)}function Yr(f,p){var S=_e||{},D=S[f];if(D)try{D.apply(S,p)}catch(b){k(re.diagLog(),1,74,f+" notification failed: "+b)}}function ri(f,p){for(var S=[],D=2;D<arguments.length;D++)S[D-2]=arguments[D];p&&p[Ae]>0&&Yr(f,[p][jn](S))}function h(f,p){for(var S=[],D=2;D<arguments.length;D++)S[D-2]=arguments[D];p&&p[Ae]>0&&R(p,function(b){b&&b[lr]()>0&&Yr(f,[b.events()][jn](S))})}function w(f,p,S){f&&f[Ae]>0&&Yr("eventsSendRequest",[p>=1e3&&p<=1999?p-1e3:0,S!==!0])}function U(f,p){h("eventsSent",f,p),Ge()}function J(f,p){h(Ta,f,p>=8e3&&p<=8999?p-8e3:fn.Unknown)}function ve(f){h(Ta,f,fn.NonRetryableStatus),Ge()}function ye(f,p){h(Ta,f,fn.Unknown),Ge()}function ee(){H?F=0:F=Math.max(GS*(BS+1),_/6)}}),t}return e.__ieDyn=1,e})(Ti)});var $S={};nf($S,{BE_PROFILE:()=>Ul,NRT_PROFILE:()=>Fl,PostChannel:()=>KS,RT_PROFILE:()=>pa});var qS=Y(()=>{"use strict";v();Vp();WS()});var Pc,Cc,pv,Da,Wn,it,Nn=Y(()=>{"use strict";v();Pc="sampleRate",Cc="ProcessLegacy",pv="http.method",Da="https://dc.services.visualstudio.com",Wn="/v2/track",it="not_specified"});var mv,JS=Y(()=>{"use strict";v();We();mv=cd({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]})});var Ia,Pe,ya,po,Ai,js,dm,ot,Pi,QS,bc,Rc,xa,Zt,Xr,at,Aa,$n,Pa,Ev,gv,pm,Ca,mo,Oc,wc,ba,zs,Ra,mm,st=Y(()=>{"use strict";v();Ia="split",Pe="length",ya="toLowerCase",po="ingestionendpoint",Ai="toString",js="push",dm="removeItem",ot="name",Pi="message",QS="count",bc="stringify",Rc="pathname",xa="exceptions",Zt="parsedStack",Xr="properties",at="measurements",Aa="sizeInBytes",$n="typeName",Pa="severityLevel",Ev="problemGroup",gv="isManual",pm="CreateFromInterface",Ca="assembly",mo="fileName",Oc="hasFullStack",wc="level",ba="method",zs="line",Ra="duration",mm="receivedResponse"});function Em(r,e,t){var n=e[Pe],i=ZS(r,e);if(i[Pe]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Pr(i,0,147)+eN(o);i=a}return i}function ZS(r,e){var t;return e&&(e=Me(_r(e)),e[Pe]>150&&(t=Pr(e,0,150),k(r,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function ze(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=Me(_r(e)),e[Pe]>t&&(n=Pr(e,0,t),k(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function Oa(r,e){return Sm(r,e,2048,66)}function Yc(r,e){var t;return e&&e[Pe]>32768&&(t=Pr(e,0,32768),k(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function gm(r,e){var t;if(e){var n=""+e;n[Pe]>32768&&(t=Pr(n,0,32768),k(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function pt(r,e){if(e){var t={};ae(e,function(n,i){if(tr(i)&&Fn())try{i=$r()[bc](i)}catch(o){k(r,2,49,"custom property is not valid",{exception:o},!0)}i=ze(r,i,8192),n=Em(r,n,t),t[n]=i}),e=t}return e}function mt(r,e){if(e){var t={};ae(e,function(n,i){n=Em(r,n,t),t[n]=i}),e=t}return e}function hm(r,e){return e&&Sm(r,e,128,69)[Ai]()}function Sm(r,e,t,n){var i;return e&&(e=Me(_r(e)),e[Pe]>t&&(i=Pr(e,0,t),k(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function eN(r){var e="00"+r;return Cn(e,e[Pe]-3)}var Tn=Y(()=>{"use strict";v();We();he();st()});function nN(r){var e=tN,t=Tx,n=t[e];return rN.createElement?t[e]||(n=t[e]=rN.createElement("a")):n={host:Dx(r,!0)},n.href=r,e++,e>=t[Pe]&&(e=0),tN=e,n}function Dx(r,e){var t=iN(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[Pe]>3&&Ne(n[2])&&n[2][Pe]>0)return n[2]+(n[3]||"")}return t}function iN(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[Pe]>2&&Ne(n[2])&&n[2][Pe]>0&&(t=n[2]||"",e&&n[Pe]>2)){var i=(n[1]||"")[ya](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var rN,tN,Tx,oN=Y(()=>{"use strict";v();We();st();rN=Sr()||{},tN=0,Tx=[null,null,null,null,null]});function hv(r){return Fe(Ix,r[ya]())!==-1}function aN(r,e,t,n){var i,o=n,a=n;if(e&&e[Pe]>0){var s=nN(e);if(i=s.host,!o)if(s[Rc]!=null){var u=s.pathname[Pe]===0?"/":s[Rc];u.charAt(0)!=="/"&&(u="/"+u),a=s[Rc],o=ze(r,t?t+" "+u:u)}else o=ze(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}var Ix,Nm=Y(()=>{"use strict";v();We();Nn();Tn();oN();st();Ix=[Da+Wn,"https://breeze.aimon.applicationinsights.io"+Wn,"https://dc-int.services.visualstudio.com"+Wn]});var Sv,$Y,qY,sN=Y(()=>{"use strict";v();We();Sv=cr({LocalStorage:0,SessionStorage:1}),$Y=cr({AI:0,AI_AND_W3C:1,W3C:2}),qY=cr({Normal:1,Critical:2})});function cN(r){try{if(B(vt()))return null;var e=new Date()[Ai](),t=le(r===Sv.LocalStorage?"localStorage":"sessionStorage"),n=uN+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[dm](n),!i)return t}catch{}return null}function Tm(){return Nv()?cN(Sv.SessionStorage):null}function Dm(r){uN=r||""}function Nv(r){return(r||Ks===void 0)&&(Ks=!!cN(Sv.SessionStorage)),Ks}function Im(r,e){var t=Tm();if(t!==null)try{return t.getItem(e)}catch(n){Ks=!1,k(r,2,2,"Browser failed read of session storage. "+ir(n),{exception:te(n)})}return null}function ym(r,e,t){var n=Tm();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Ks=!1,k(r,2,4,"Browser failed write to session storage. "+ir(i),{exception:te(i)})}return!1}function xm(r,e){var t=Tm();if(t!==null)try{return t[dm](e),!0}catch(n){Ks=!1,k(r,2,6,"Browser failed removal of session storage item. "+ir(n),{exception:te(n)})}return!1}var Ks,uN,fN=Y(()=>{"use strict";v();We();sN();st();Ks=void 0,uN=""});function Lc(r){if(!r)return{};var e=r[Ia](yx),t=Du(e,function(i,o){var a=o[Ia](xx);if(a[Pe]===2){var s=a[0][ya](),u=a[1];i[s]=u}return i},{});if(Kr(t)[Pe]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[po]=t[po]||"https://"+n+"dc."+t.endpointsuffix}t[po]=t[po]||Da,Go(t[po],"/")&&(t[po]=t[po].slice(0,-1))}return t}var yx,xx,lN=Y(()=>{"use strict";v();We();Nn();st();yx=";",xx="="});var Am,vN=Y(()=>{"use strict";v();We();Nn();st();Tn();Am=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[ot]=ze(e,n)||it,o.data=t,o.time=mn(new Date),o.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return r})()});var Ci,_N=Y(()=>{"use strict";v();Nn();st();Tn();Ci=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[ot]=ze(e,t)||it,o[Xr]=pt(e,n),o[at]=mt(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function Rm(r,e){var t=r;return t&&!Ne(t)&&(JSON&&JSON[bc]?(t=JSON[bc](r),e&&(!t||t==="{}")&&(se(r[Ai])?t=r[Ai]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function gN(r,e){var t=r;return r&&(t&&!Ne(t)&&(t=r[bm]||r[EN]||t),t&&!Ne(t)&&(t=Rm(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&cn(t||"",e)===-1&&(t=e+": "+t),t||""}function Px(r){try{if(tr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function Cx(r){try{if(tr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function pN(r){return r&&r.src&&Ne(r.src)&&r.obj&&Q(r.obj)}function wa(r){var e=r||"";Ne(e)||(Ne(e[wt])?e=e[wt]:e=""+e);var t=e[Ia](`
6
- `);return{src:e,obj:t}}function bx(r){for(var e=[],t=r[Ia](`
7
- `),n=0;n<t[Pe];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[js](i)}return{src:r,obj:e}}function hN(r){var e=null;if(r)try{if(r[wt])e=wa(r[wt]);else if(r[Ws]&&r[Ws][wt])e=wa(r[Ws][wt]);else if(r.exception&&r.exception[wt])e=wa(r.exception[wt]);else if(pN(r))e=r;else if(pN(r[Cm]))e=r[Cm];else if(Nr()&&Nr().opera&&r[bm])e=bx(r[Pi]);else if(r.reason&&r.reason[wt])e=wa(r.reason[wt]);else if(Ne(r))e=wa(r);else{var t=r[bm]||r[EN]||"";Ne(r[dN])&&(t&&(t+=`
8
- `),t+=" from "+r[dN]),t&&(e=wa(t))}}catch(n){e=wa(n)}return e||{src:"",obj:null}}function Rx(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
9
- `}):e=r.src||""),e}function Ox(r){var e,t=r.obj;if(t&&t[Pe]>0){e=[];var n=0,i=0;R(t,function(m){var N=m[Ai]();if(Om.regex.test(N)){var g=new Om(N,n++);i+=g[Aa],e[js](g)}});var o=32*1024;if(i>o)for(var a=0,s=e[Pe]-1,u=0,c=a,l=s;a<s;){var _=e[a][Aa],d=e[s][Aa];if(u+=_+d,u>o){var E=l-c+1;e.splice(c,E);break}c=a,l=s,a++,s--}}return e}function Tv(r){var e="";if(r&&(e=r.typeName||r[ot]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Ai]());e=n&&n[Pe]>1?n[1]:""}catch{}return e}function Pm(r){if(r)try{if(!Ne(r)){var e=Tv(r),t=Rm(r,!1);return(!t||t==="{}")&&(r[Ws]&&(r=r[Ws],e=Tv(r)),t=Rm(r,!0)),cn(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var Ax,Ws,wt,Cm,dN,bm,EN,Ya,mN,Om,SN=Y(()=>{"use strict";v();Dt();We();he();Nn();st();Tn();Ax="<no_method>",Ws="error",wt="stack",Cm="stackDetails",dN="errorSrc",bm="message",EN="description";Ya=(function(){function r(e,t,n,i,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,Cx(t)?(s[xa]=t[xa]||[],s[Xr]=t[Xr],s[at]=t[at],t[Pa]&&(s[Pa]=t[Pa]),t.id&&(s.id=t.id,t[Xr].id=t.id),t[Ev]&&(s[Ev]=t[Ev]),B(t[gv])||(s[gv]=t[gv])):(n||(n={}),a&&(n.id=a),s[xa]=[new mN(e,t,n)],s[Xr]=pt(e,n),s[at]=mt(e,i),o&&(s[Pa]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,l=Tv(o||a||e);return c={},c[Pi]=gN(e,l),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=Pm(o||a||e),c.evt=Pm(a||e),c[$n]=l,c.stackDetails=hN(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[xa]&&oi(t[xa],function(s){return mN[pm](e,s)}),a=new r(e,Wt(Wt({},t),{exceptions:o}),n,i);return a},r.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,o=t.measurements,a=t.severityLevel,s=t.problemGroup,u=t.id,c=t.isManual,l=n instanceof Array&&oi(n,function(_){return _.toInterface()})||void 0;return e={ver:"4.0"},e[xa]=l,e.severityLevel=a,e.properties=i,e.measurements=o,e.problemGroup=s,e.id=u,e.isManual=c,e},r.CreateSimpleException=function(e,t,n,i,o,a){var s;return{exceptions:[(s={},s[Oc]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=Pm,r})(),mN=(function(){function r(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(Px(t))i[$n]=t[$n],i[Pi]=t[Pi],i[wt]=t[wt],i[Zt]=t[Zt]||[],i[Oc]=t[Oc];else{var o=t,a=o&&o.evt;Fo(o)||(o=o[Ws]||a||o),i[$n]=ze(e,Tv(o))||it,i[Pi]=Yc(e,gN(t||o,i[$n]))||it;var s=t[Cm]||hN(t);i[Zt]=Ox(s),Q(i[Zt])&&oi(i[Zt],function(u){u[Ca]=ze(e,u[Ca]),u[mo]=ze(e,u[mo])}),i[wt]=gm(e,Rx(s)),i.hasFullStack=Q(i.parsedStack)&&i.parsedStack[Pe]>0,n&&(n[$n]=n[$n]||i[$n])}}return r.prototype.toInterface=function(){var e,t=this,n=t[Zt]instanceof Array&&oi(t[Zt],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[$n],message:t[Pi],hasFullStack:t[Oc],stack:t[wt]},e[Zt]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[Zt]instanceof Array&&oi(t[Zt],function(o){return Om[pm](o)})||t[Zt],i=new r(e,Wt(Wt({},t),{parsedStack:n}));return i},r})(),Om=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Aa]=0,typeof e=="string"){var i=e;n[wc]=t,n[ba]=Ax,n[Ca]=Me(i),n[mo]="",n[zs]=0;var o=i.match(r.regex);o&&o[Pe]>=5&&(n[ba]=Me(o[2])||n[ba],n[mo]=Me(o[4]),n[zs]=parseInt(o[5])||0)}else n[wc]=e[wc],n[ba]=e[ba],n[Ca]=e[Ca],n[mo]=e[mo],n[zs]=e[zs],n[Aa]=0;n.sizeInBytes+=n.method[Pe],n.sizeInBytes+=n.fileName[Pe],n.sizeInBytes+=n.assembly[Pe],n[Aa]+=r.baseSize,n.sizeInBytes+=n.level.toString()[Pe],n.sizeInBytes+=n.line.toString()[Pe]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[wc],method:e[ba],assembly:e[Ca],fileName:e[mo],line:e[zs]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var NN,TN=Y(()=>{"use strict";v();NN=(function(){function r(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return r})()});var bi,DN=Y(()=>{"use strict";v();Nn();st();TN();Tn();bi=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var _=new NN;_[QS]=i>0?i:void 0,_.max=isNaN(a)||a===null?void 0:a,_.min=isNaN(o)||o===null?void 0:o,_[ot]=ze(e,t)||it,_.value=n,_.stdDev=isNaN(s)||s===null?void 0:s,l.metrics=[_],l[Xr]=pt(e,u),l[at]=mt(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function Dv(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=Fc+r%1e3,t=Fc+Math.floor(r/1e3)%60,n=Fc+Math.floor(r/(1e3*60))%60,i=Fc+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[Pe]===1?"00"+e:e[Pe]===2?"0"+e:e,t=t[Pe]<2?"0"+t:t,n=n[Pe]<2?"0"+n:n,i=i[Pe]<2?"0"+i:i,(o>0?o+".":Fc)+i+":"+n+":"+t+"."+e}var Fc,wm=Y(()=>{"use strict";v();st();Fc=""});var La,IN=Y(()=>{"use strict";v();Nn();wm();st();Tn();La=(function(){function r(e,t,n,i,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=hm(e,s),u.url=Oa(e,n),u[ot]=ze(e,t)||it,isNaN(i)||(u[Ra]=Dv(i)),u[Xr]=pt(e,o),u[at]=mt(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var Fa,yN=Y(()=>{"use strict";v();wm();Nm();st();Tn();Fa=(function(){function r(e,t,n,i,o,a,s,u,c,l,_,d){c===void 0&&(c="Ajax"),this.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};var E=this;E.ver=2,E.id=t,E[Ra]=Dv(o),E.success=a,E.resultCode=s+"",E.type=ze(e,c);var m=aN(e,n,u,i);E.data=Oa(e,i)||m.data,E.target=ze(e,m.target),l&&(E.target="".concat(E.target," | ").concat(l)),E[ot]=ze(e,m[ot]),E[Xr]=pt(e,_),E[at]=mt(e,d)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var Ua,xN=Y(()=>{"use strict";v();Nn();st();Tn();Ua=(function(){function r(e,t,n,i,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||it,a[Pi]=Yc(e,t),a[Xr]=pt(e,i),a[at]=mt(e,o),n&&(a[Pa]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Ma,AN=Y(()=>{"use strict";v();Nn();st();Tn();Ma=(function(){function r(e,t,n,i,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=Oa(e,n),u[ot]=ze(e,t)||it,u[Xr]=pt(e,o),u[at]=mt(e,a),s&&(u.domProcessing=s.domProcessing,u[Ra]=s[Ra],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[mm]=s[mm],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var Ri,PN=Y(()=>{"use strict";v();Ri=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var Ym,CN=Y(()=>{"use strict";v();We();Ym=cr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});function go(r){var e="ai."+r+".";return function(t){return e+t}}var Uc,Or,Iv,$s,Lm,Eo,Ha,Mc,Hc,Fm=Y(()=>{"use strict";v();Dt();We();Uc=go("application"),Or=go("device"),Iv=go("location"),$s=go("operation"),Lm=go("session"),Eo=go("user"),Ha=go("cloud"),Mc=go("internal"),Hc=(function(r){Tt(e,r);function e(){return r.call(this)||this}return e})(bd({applicationVersion:Uc("ver"),applicationBuild:Uc("build"),applicationTypeId:Uc("typeId"),applicationId:Uc("applicationId"),applicationLayer:Uc("layer"),deviceId:Or("id"),deviceIp:Or("ip"),deviceLanguage:Or("language"),deviceLocale:Or("locale"),deviceModel:Or("model"),deviceFriendlyName:Or("friendlyName"),deviceNetwork:Or("network"),deviceNetworkName:Or("networkName"),deviceOEMName:Or("oemName"),deviceOS:Or("os"),deviceOSVersion:Or("osVersion"),deviceRoleInstance:Or("roleInstance"),deviceRoleName:Or("roleName"),deviceScreenResolution:Or("screenResolution"),deviceType:Or("type"),deviceMachineName:Or("machineName"),deviceVMName:Or("vmName"),deviceBrowser:Or("browser"),deviceBrowserVersion:Or("browserVersion"),locationIp:Iv("ip"),locationCountry:Iv("country"),locationProvince:Iv("province"),locationCity:Iv("city"),operationId:$s("id"),operationName:$s("name"),operationParentId:$s("parentId"),operationRootId:$s("rootId"),operationSyntheticSource:$s("syntheticSource"),operationCorrelationVector:$s("correlationVector"),sessionId:Lm("id"),sessionIsFirst:Lm("isFirst"),sessionIsNew:Lm("isNew"),userAccountAcquisitionDate:Eo("accountAcquisitionDate"),userAccountId:Eo("accountId"),userAgent:Eo("userAgent"),userId:Eo("id"),userStoreRegion:Eo("storeRegion"),userAuthUserId:Eo("authUserId"),userAnonymousUserAcquisitionDate:Eo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Eo("authUserAcquisitionDate"),cloudName:Ha("name"),cloudRole:Ha("role"),cloudRoleVer:Ha("roleVer"),cloudRoleInstance:Ha("roleInstance"),cloudEnvironment:Ha("environment"),cloudLocation:Ha("location"),cloudDeploymentUnit:Ha("deploymentUnit"),internalNodeName:Mc("nodeName"),internalSdkVersion:Mc("sdkVersion"),internalAgentVersion:Mc("agentVersion"),internalSnippet:Mc("snippet"),internalSdkSrc:Mc("sdkSrc")}))});var Ir,bN=Y(()=>{"use strict";v();Fm();Ir=new Hc});function RN(r,e){Ii(r,null,null,e)}function Um(r){var e=Sr(),t=Cr(),n=!1,i=[],o=1;t&&!B(t.onLine)&&!t.onLine&&(o=2);var a=0,s=d(),u=Gt(qr("OfflineListener"),r);try{if(l(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&l(c)&&(n=!0)}}catch{n=!1}function l(I){var O=!1;return I&&(O=kn(I,"online",N,u),O&&kn(I,"offline",g,u)),O}function _(){return s}function d(){return!(a===2||o===2)}function E(){var I=d();s!==I&&(s=I,R(i,function(O){var F={isOnline:s,rState:o,uState:a};try{O(F)}catch{}}))}function m(I){a=I,E()}function N(){o=1,E()}function g(){o=2,E()}function A(){var I=Nr();if(I&&n){if(RN(I,u),e){var O=e.body||e;Te(O.ononline)||RN(O,u)}n=!1}}function T(I){return i[js](I),{rm:function(){var O=i.indexOf(I);if(O>-1)return i.splice(O,1)}}}return{isOnline:_,isListening:function(){return n},unload:A,addListener:T,setOnlineState:m}}var ON=Y(()=>{"use strict";v();We();st()});var yv,Oi=Y(()=>{"use strict";v();Nm();lN();JS();Nn();vN();_N();SN();DN();IN();yN();xN();AN();PN();CN();Fm();Tn();bN();fN();ON();yv="AppInsightsChannelPlugin"});var ho,wN=Y(()=>{"use strict";v();ho="duration"});var yr,xv,Jr,qn,Ga,De,So,No,en,To,wi,qs,Yi,Li,Av,rn,Xs,kc,Do,Gc,Js,Ba,Bc,Pv,Fi,Io,Qs,Zs,Qr,Cv,eu,ru,tu,bv,Mm,Rv,Ov,Hm,wv,km,Ui,Gm,Bm,Vm,Vc,jm,zm,Km,nu,yo,Yv,jc,Lv,Fv,Uv,Mv,iu,Wm,Hv,YN,xo=Y(()=>{"use strict";v();yr="tags",xv="deviceType",Jr="data",qn="name",Ga="traceID",De="length",So="stringify",No="measurements",en="dataType",To="envelopeType",wi="toString",qs="_get",Yi="enqueue",Li="count",Av="eventsLimitInMem",rn="push",Xs="item",kc="emitLineDelimitedJson",Do="clear",Gc="createNew",Js="markAsSent",Ba="clearSent",Bc="bufferOverride",Pv="BUFFER_KEY",Fi="SENT_BUFFER_KEY",Io="concat",Qs="MAX_BUFFER_SIZE",Zs="triggerSend",Qr="diagLog",Cv="initialize",eu="_sender",ru="endpointUrl",tu="instrumentationKey",bv="customHeaders",Mm="maxBatchSizeInBytes",Rv="onunloadDisableBeacon",Ov="isBeaconApiDisabled",Hm="alwaysUseXhrOverride",wv="disableXhr",km="enableSessionStorageBuffer",Ui="_buffer",Gm="onunloadDisableFetch",Bm="disableSendBeaconSplit",Vm="enableSendPromise",Vc="getSenderInst",jm="unloadTransports",zm="convertUndefined",Km="maxBatchInterval",nu="serialize",yo="_onError",Yv="_onPartialSuccess",jc="_onSuccess",Lv="itemsReceived",Fv="itemsAccepted",Uv="oriPayload",Mv="baseType",iu="sampleRate",Wm="eventsSendRequest",Hv="getSamplingScore",YN="getHashCodeScore"});function mr(r,e,t){return Xt(r,e,t,an)}function wx(r,e,t){var n=t[yr]=t[yr]||{},i=e.ext=e.ext||{},o=e[yr]=e[yr]||[],a=i.user;a&&(mr(n,Ir.userAuthUserId,a.authId),mr(n,Ir.userId,a.id||a.localId));var s=i.app;s&&mr(n,Ir.sessionId,s.sesId);var u=i.device;u&&(mr(n,Ir.deviceId,u.id||u.localId),mr(n,Ir[xv],u.deviceClass),mr(n,Ir.deviceIp,u.ip),mr(n,Ir.deviceModel,u.model),mr(n,Ir[xv],u[xv]));var c=e.ext.web;if(c){mr(n,Ir.deviceLanguage,c.browserLang),mr(n,Ir.deviceBrowserVersion,c.browserVer),mr(n,Ir.deviceBrowser,c.browser);var l=t[Jr]=t[Jr]||{},_=l[er]=l[er]||{},d=_[kr]=_[kr]||{};mr(d,"domain",c.domain),mr(d,"isManual",c.isManual?LN:null),mr(d,"screenRes",c.screenRes),mr(d,"userConsent",c.userConsent?LN:null)}var E=i.os;E&&(mr(n,Ir.deviceOS,E[qn]),mr(n,Ir.deviceOSVersion,E.osVer));var m=i.trace;m&&(mr(n,Ir.operationParentId,m.parentID),mr(n,Ir.operationName,ze(r,m[qn])),mr(n,Ir.operationId,m[Ga]));for(var N={},g=o[De]-1;g>=0;g--){var A=o[g];ae(A,function(I,O){N[I]=O}),o.splice(g,1)}ae(o,function(I,O){N[I]=O});var T=Wt(Wt({},n),N);T[Ir.internalSdkVersion]||(T[Ir.internalSdkVersion]=ze(r,"javascript:".concat(Yx.Version),64)),t[yr]=bt(T)}function Ao(r,e,t){B(r)||ae(r,function(n,i){zr(i)?t[n]=i:Ne(i)?e[n]=i:Fn()&&(e[n]=$r()[So](i))})}function Va(r,e){B(r)||ae(r,function(t,n){r[t]=n||e})}function ja(r,e,t,n){var i=new Am(r,n,e);mr(i,"sampleRate",t[Pc]),(t[er]||{}).startTime&&(i.time=mn(t[er].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[qn]=i[qn].replace("{0}",o),wx(r,t,i),t[yr]=t[yr]||[],bt(i)}function za(r,e){B(e[er])&&k(r,1,46,"telemetryItem.baseData cannot be null.")}function FN(r,e,t){za(r,e);var n=e[er][No]||{},i=e[er][kr]||{};Ao(e[Jr],i,n),B(t)||Va(i,t);var o=e[er];if(B(o))return _t(r,"Invalid input for dependency data"),null;var a=o[kr]&&o[kr][pv]?o[kr][pv]:"GET",s=new Fa(r,o.id,o.target,o[qn],o[ho],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new Ri(Fa[en],s);return ja(r,Fa[To],e,u)}function qm(r,e,t){za(r,e);var n={},i={};e[$m]!==Ci[en]&&(n.baseTypeSource=e[$m]),e[$m]===Ci[en]?(n=e[er][kr]||{},i=e[er][No]||{}):e[er]&&Ao(e[er],n,i),Ao(e[Jr],n,i),B(t)||Va(n,t);var o=e[er][qn],a=new Ci(r,o,n,i),s=new Ri(Ci[en],a);return ja(r,Ci[To],e,s)}function UN(r,e,t){za(r,e);var n=e[er][No]||{},i=e[er][kr]||{};Ao(e[Jr],i,n),B(t)||Va(i,t);var o=e[er],a=Ya.CreateFromInterface(r,o,i,n),s=new Ri(Ya[en],a);return ja(r,Ya[To],e,s)}function MN(r,e,t){za(r,e);var n=e[er],i=n[kr]||{},o=n[No]||{};Ao(e[Jr],i,o),B(t)||Va(i,t);var a=new bi(r,n[qn],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new Ri(bi[en],a);return ja(r,bi[To],e,s)}function HN(r,e,t){za(r,e);var n,i=e[er];!B(i)&&!B(i[kr])&&!B(i[kr][ho])?(n=i[kr][ho],delete i[kr][ho]):!B(e[Jr])&&!B(e[Jr][ho])&&(n=e[Jr][ho],delete e[Jr][ho]);var o=e[er],a;((e.ext||{}).trace||{})[Ga]&&(a=e.ext.trace[Ga]);var s=o.id||a,u=o[qn],c=o.uri,l=o[kr]||{},_=o[No]||{};if(B(o.refUri)||(l.refUri=o.refUri),B(o.pageType)||(l.pageType=o.pageType),B(o.isLoggedIn)||(l.isLoggedIn=o.isLoggedIn[wi]()),!B(o[kr])){var d=o[kr];ae(d,function(N,g){l[N]=g})}Ao(e[Jr],l,_),B(t)||Va(l,t);var E=new La(r,u,c,n,l,_,s),m=new Ri(La[en],E);return ja(r,La[To],e,m)}function kN(r,e,t){za(r,e);var n=e[er],i=n[qn],o=n.uri||n.url,a=n[kr]||{},s=n[No]||{};Ao(e[Jr],a,s),B(t)||Va(a,t);var u=new Ma(r,i,o,void 0,a,s,n),c=new Ri(Ma[en],u);return ja(r,Ma[To],e,c)}function GN(r,e,t){za(r,e);var n=e[er].message,i=e[er].severityLevel,o=e[er][kr]||{},a=e[er][No]||{};Ao(e[Jr],o,a),B(t)||Va(o,t);var s=new Ua(r,n,i,o,a),u=new Ri(Ua[en],s);return ja(r,Ua[To],e,u)}var $m,er,kr,LN,Yx,BN=Y(()=>{"use strict";v();Dt();Oi();We();wN();xo();$m="baseType",er="baseData",kr="properties",LN="true";Yx={Version:"3.3.4"}});var VN,kv,Lx,Xm,jN=Y(()=>{"use strict";v();Dt();Fr();Oi();We();xo();VN=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[qs]=function(){return n},this._set=function(a){return n=a,n},Ce(r,this,function(a){a[Yi]=function(s){if(a[Li]()>=t[Av]){i||(k(e,2,105,"Maximum in-memory buffer size reached: "+a[Li](),!0),i=!0);return}s.cnt=s.cnt||0,!(!B(o)&&s.cnt>o)&&n[rn](s)},a[Li]=function(){return n[De]},a.size=function(){for(var s=n[De],u=0;u<n[De];u++)s+=n[u].item[De];return t[kc]||(s+=2),s},a[Do]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[De]>0){var u=[];R(s,function(l){u[rn](l[Xs])});var c=t[kc]?u.join(`
10
- `):"["+u.join(",")+"]";return c}return null},a[Gc]=function(s,u,c){var l=n.slice(0);s=s||e,u=u||{};var _=c?new Xm(s,u):new kv(s,u);return R(l,function(d){_[Yi](d)}),_}})}return r.__ieDyn=1,r})(),kv=(function(r){Tt(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Ce(e,i,function(o,a){o[Js]=function(s){a[Do]()},o[Ba]=function(s){}}),i}return e.__ieDyn=1,e})(VN),Lx=["AI_buffer","AI_sentBuffer"],Xm=(function(r){Tt(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[Bc]||{getItem:Im,setItem:ym},c=u.getItem,l=u.setItem,_=i.maxRetryCnt;return Ce(e,o,function(d,E){var m=O(e[Pv]),N=O(e[Fi]),g=W(),A=N[Io](g),T=d._set(m[Io](A));T[De]>e[Qs]&&(T[De]=e[Qs]),V(e[Fi],[]),V(e[Pv],T),d[Yi]=function(z){if(d[Li]()>=e[Qs]){a||(k(n,2,67,"Maximum buffer size reached: "+d[Li](),!0),a=!0);return}z.cnt=z.cnt||0,!(!B(_)&&z.cnt>_)&&(E[Yi](z),V(e.BUFFER_KEY,d[qs]()))},d[Do]=function(){E[Do](),V(e.BUFFER_KEY,d[qs]()),V(e[Fi],[]),a=!1},d[Js]=function(z){V(e[Pv],d._set(I(z,d[qs]())));var G=O(e[Fi]);G instanceof Array&&z instanceof Array&&(G=G[Io](z),G[De]>e[Qs]&&(k(n,1,67,"Sent buffer reached its maximum size: "+G[De],!0),G[De]=e[Qs]),V(e[Fi],G))},d[Ba]=function(z){var G=O(e[Fi]);G=I(z,G),V(e[Fi],G)},d[Gc]=function(z,G,Z){Z=!!Z;var fe=d[qs]().slice(0),Se=O(e[Fi]).slice(0);z=z||n,G=G||{},d[Do]();var M=Z?new e(z,G):new kv(z,G);return R(fe,function(H){M[Yi](H)}),Z&&M[Js](Se),M};function I(z,G){var Z=[],fe=[];return R(z,function(Se){fe[rn](Se[Xs])}),R(G,function(Se){!se(Se)&&Fe(fe,Se[Xs])===-1&&Z[rn](Se)}),Z}function O(z){var G=z;return G=s?s+"_"+G:G,F(G)}function F(z){try{var G=c(n,z);if(G){var Z=$r().parse(G);if(Ne(Z)&&(Z=$r().parse(Z)),Z&&Q(Z))return Z}}catch(fe){k(n,1,42," storage key: "+z+", "+ir(fe),{exception:te(fe)})}return[]}function V(z,G){var Z=z;try{Z=s?s+"_"+Z:Z;var fe=JSON[So](G);l(n,Z,fe)}catch(Se){l(n,Z,JSON[So]([])),k(n,2,41," storage key: "+Z+", "+ir(Se)+". Buffer cleared",{exception:te(Se)})}}function W(){var z=[];try{return R(Lx,function(G){var Z=ne(G);if(z=z[Io](Z),s){var fe=s+"_"+G,Se=ne(fe);z=z[Io](Se)}}),z}catch(G){k(n,2,41,"Transfer events from previous buffers: "+ir(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ne(z){try{var G=F(z),Z=[];return R(G,function(fe){var Se={item:fe,cnt:0};Z[rn](Se)}),xm(n,z),Z}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(VN)});var zN,KN=Y(()=>{"use strict";v();Fr();We();xo();zN=(function(){function r(e){Ce(r,this,function(t){t[nu]=function(a){var s=n(a,"root");try{return $r()[So](s)}catch(u){k(e,1,48,u&&se(u[wi])?u[wi]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",c={};if(!a)return k(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),c;if(a[u])return k(e,2,50,"Circular reference detected while serializing object",{name:s},!0),c;if(!a.aiDataContract){if(s==="measurements")c=o(a,"number",s);else if(s==="properties")c=o(a,"string",s);else if(s==="tags")c=o(a,"string",s);else if(Q(a))c=i(a,s);else{k(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{$r()[So](a),c=a}catch(l){k(e,1,48,l&&se(l[wi])?l[wi]():"Error serializing object",null,!0)}}return c}return a[u]=!0,ae(a.aiDataContract,function(l,_){var d=se(_)?_()&1:_&1,E=se(_)?_()&4:_&4,m=_&2,N=a[l]!==void 0,g=tr(a[l])&&a[l]!==null;if(d&&!N&&!m)k(e,1,24,"Missing required field specification. The field is required but not present on source",{field:l,name:s});else if(!E){var A=void 0;g?m?A=i(a[l],l):A=n(a[l],l):A=a[l],A!==void 0&&(c[l]=A)}}),delete a[u],c}function i(a,s){var u;if(a)if(!Q(a))k(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
11
- `,{name:s},!0);else{u=[];for(var c=0;c<a[De];c++){var l=a[c],_=n(l,s+"["+c+"]");u[rn](_)}}return u}function o(a,s,u){var c;return a&&(c={},ae(a,function(l,_){if(s==="string")_===void 0?c[l]="undefined":_===null?c[l]="null":_[wi]?c[l]=_[wi]():c[l]="invalid field: toString() is not defined.";else if(s==="number")if(_===void 0)c[l]="undefined";else if(_===null)c[l]="null";else{var d=parseFloat(_);c[l]=d}else c[l]="invalid field: "+u+" is of unknown type.",k(e,1,c[l],null,!0)})),c}})}return r.__ieDyn=1,r})()});var Fx,WN,$N=Y(()=>{"use strict";v();xo();Fx=8,WN=(function(){function r(){}return r.prototype.getHashCodeScore=function(e){var t=this.getHashCode(e)/r.INT_MAX_VALUE;return t*100},r.prototype.getHashCode=function(e){if(e==="")return 0;for(;e[De]<Fx;)e=e[Io](e);for(var t=5381,n=0;n<e[De];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var qN,XN=Y(()=>{"use strict";v();Oi();xo();$N();qN=(function(){function r(){var e=this,t=new WN,n=new Hc;e[Hv]=function(i){var o=0;return i[yr]&&i[yr][n.userId]?o=t.getHashCodeScore(i[yr][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[YN](i.ext.user.id):i[yr]&&i[yr][n.operationId]?o=t.getHashCodeScore(i[yr][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Ga]?o=t.getHashCodeScore(i.ext.telemetryTrace[Ga]):o=Math.random()*100,o}}return r})()});var JN,QN=Y(()=>{"use strict";v();Oi();We();xo();XN();JN=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||gi(null);(e>100||e<0)&&(n.throwInternal(2,58,"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[iu]=e,this.samplingScoreGenerator=new qN}return r.prototype.isSampledIn=function(e){var t=this[iu],n=!1;return t==null||t>=100||e.baseType===bi[en]?!0:(n=this.samplingScoreGenerator[Hv](e)<t,n)},r})()});function eT(r){try{return r.responseText}catch{}return null}function Mx(r){return r&&r.sendPOST}function Hx(r){return!isNaN(r)&&r>0&&r<=100}var $e,Mi,Xn,ZN,Ux,rT,kx,zc,tT=Y(()=>{"use strict";v();Dt();Fr();Oi();We();he();BN();jN();KN();QN();xo();Xn=void 0,ZN="",Ux=65e3;rT=Pn(($e={endpointUrl:Ds(an,Da+Wn)},$e[kc]=Qt(),$e[Km]=15e3,$e[Mm]=102400,$e.disableTelemetry=Qt(),$e[km]=Qt(!0),$e.isRetryDisabled=Qt(),$e[Ov]=Qt(!0),$e[Bm]=Qt(!0),$e[wv]=Qt(),$e[Gm]=Qt(),$e[Rv]=Qt(),$e[tu]=Xn,$e.namePrefix=Xn,$e.samplingPercentage=Ds(Hx,100),$e[bv]=Xn,$e[zm]=Xn,$e[Av]=1e4,$e[Bc]=!1,$e.httpXHROverride={isVal:Mx,v:Xn},$e[Hm]=Qt(),$e.transports=Xn,$e.retryCodes=Xn,$e.maxRetryCnt={isVal:zr,v:10},$e));kx=(Mi={},Mi[Ci.dataType]=qm,Mi[Ua.dataType]=GN,Mi[La.dataType]=HN,Mi[Ma.dataType]=kN,Mi[Ya.dataType]=UN,Mi[bi.dataType]=MN,Mi[Fa.dataType]=FN,Mi),zc=(function(r){Tt(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=yv;var n,i,o,a,s,u,c,l,_=0,d,E,m,N,g,A,T,I,O,F,V,W,ne,z,G,Z,fe,Se,M,H,_e,ue,x,de,re,Ie,$;return Ce(e,t,function(C,we){ee(),C.pause=function(){w(),a=!0},C.resume=function(){a&&(a=!1,i=null,be(),h())},C.flush=function(f,p,S){if(f===void 0&&(f=!0),!a){w();try{return C[Zs](f,null,S||1)}catch(D){k(C[Qr](),1,22,"flush failed, telemetry will not be collected: "+ir(D),{exception:te(D)})}}},C.onunloadFlush=function(){if(!a)if(T||H)try{return C[Zs](!0,or,2)}catch(f){k(C[Qr](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+ir(f),{exception:te(f)})}else C.flush(!1)},C.addHeader=function(f,p){l[f]=p},C[Cv]=function(f,p,S,D){C.isInitialized()&&k(C[Qr](),1,28,"Sender is already initialized"),we[Cv](f,p,S,D);var b=C.identifier;u=new zN(p.logger),n=0,i=null,o=0,C[eu]=null,c=0;var L=C[Qr]();m=Gt(qr("Sender"),p.evtNamespace&&p.evtNamespace()),E=Um(m),C._addHook(Mr(f,function(j){var pe=j.cfg;pe.storagePrefix&&Dm(pe.storagePrefix);var Re=dt(null,pe,p),ce=Re.getExtCfg(b,rT),gt=ce[ru];if(N&&gt===N){var ti=pe[ru];ti&&ti!==gt&&(ce[ru]=ti)}lt(ce[tu])&&(ce[tu]=pe[tu]),Ye(C,"_senderConfig",{g:function(){return ce}}),g!==ce[ru]&&(N=g=ce[ru]),p.activeStatus()===Lt.PENDING?C.pause():p.activeStatus()===Lt.ACTIVE&&C.resume(),F&&F!==ce[bv]&&R(F,function(Br){delete l[Br.header]}),A=ce[Mm],T=(ce[Rv]===!1||ce[Ov]===!1)&&Jt(),I=ce[Rv]===!1&&Jt(),O=ce[Ov]===!1&&Jt(),H=ce[Hm],_e=!!ce[wv],$=ce.retryCodes;var ht=ce[Bc],In=!!ce[km]&&(!!ht||Nv()),Zc=ce.namePrefix,BT=In!==Z||In&&Se!==Zc||In&&fe!==ht;if(C[Ui]){if(BT)try{C._buffer=C._buffer[Gc](L,ce,In)}catch(Br){k(C[Qr](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+ir(Br),{exception:te(Br)})}be()}else C[Ui]=In?new Xm(L,ce):new kv(L,ce);Se=Zc,Z=In,fe=ht,ue=!ce[Gm]&&pi(!0),re=!!ce[Bm],C._sample=new JN(ce.samplingPercentage,L),W=ce[tu],!lt(W)&&!ye(W,pe)&&k(L,1,100,"Invalid Instrumentation key "+W),F=ce[bv],Ne(N)&&!hv(N)&&F&&F[De]>0?R(F,function(Br){t.addHeader(Br.header,Br.value)}):F=null,M=ce[Vm];var DE=ct();Ie?Ie.SetConfig(DE):(Ie=new la,Ie[Cv](DE,L));var ef=ce.httpXHROverride,rf=null,vu=null,VT=_i([3,1,2],ce.transports);rf=Ie&&Ie[Vc](VT,!1);var p_=Ie&&Ie.getFallbackInst();x=function(Br,Oo){return X(p_,Br,Oo)},de=function(Br,Oo){return X(p_,Br,Oo,!1)},rf=H?ef:rf||ef||p_,C[eu]=function(Br,Oo){return X(rf,Br,Oo)},ue&&(d=jt);var m_=_i([3,1],ce[jm]);ue||(m_=m_.filter(function(Br){return Br!==2})),vu=Ie&&Ie[Vc](m_,!0),vu=H?ef:vu||ef,(H||ce[jm]||!d)&&vu&&(d=function(Br,Oo){return X(vu,Br,Oo)}),d||(d=x),V=ce.disableTelemetry,ne=ce[zm]||Xn,z=ce.isRetryDisabled,G=ce[Km]}))},C.processTelemetry=function(f,p){var S;p=C._getTelCtx(p);var D=p[Qr]();try{var b=Ge(f,D);if(!b)return;var L=Le(f,D);if(!L)return;var j=u[nu](L),pe=C[Ui];be(j);var Re=(S={},S[Xs]=j,S.cnt=0,S);pe[Yi](Re),h()}catch(ce){k(D,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ir(ce),{exception:te(ce)})}C.processNext(f,p)},C.isCompletelyIdle=function(){return!a&&_===0&&C._buffer[Li]()===0},C.getOfflineListener=function(){return E},C._xhrReadyStateChange=function(f,p,S){if(!et(p))return vr(f,p,S)},C[Zs]=function(f,p,S){f===void 0&&(f=!0);var D;if(!a)try{var b=C[Ui];if(V)b[Do]();else{if(b[Li]()>0){var L=b.getItems();ve(S||0,f),p?D=p.call(C,L,f):D=C[eu](L,f)}o=+new Date}w()}catch(pe){var j=ku();(!j||j>9)&&k(C[Qr](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+ir(pe),{exception:te(pe)})}return D},C.getOfflineSupport=function(){var f;return f={getUrl:function(){return N},createPayload:P},f[nu]=Xe,f.batch=je,f.shouldProcess=function(p){return!!Ge(p)},f},C._doTeardown=function(f,p){C.onunloadFlush(),Ei(E,!1),ee()},C[yo]=function(f,p,S){if(!et(f))return Vt(f,p,S)},C[Yv]=function(f,p){if(!et(f))return Gr(f,p)},C[jc]=function(f,p){if(!et(f))return xr(f,p)},C._xdrOnLoad=function(f,p){if(!et(p))return Ke(f,p)};function Ke(f,p){var S=eT(f);if(f&&(S+""=="200"||S===""))n=0,C[jc](p,0);else{var D=fa(S);D&&D[Lv]&&D[Lv]>D[Fv]&&!z?C[Yv](p,D):C[yo](p,ra(f))}}function ct(){var f;try{var p={xdrOnComplete:function(D,b,L){var j=ft(L);if(j)return Ke(D,j)},fetchOnComplete:function(D,b,L,j){var pe=ft(j);if(pe)return Ue(D.status,pe,D.url,pe[De],D.statusText,L||"")},xhrOnComplete:function(D,b,L){var j=ft(L);if(j)return vr(D,j,j[De])},beaconOnRetry:function(D,b,L){return Zr(D,b,L)}},S=(f={},f[Vm]=M,f.isOneDs=!1,f.disableCredentials=!1,f[wv]=_e,f.disableBeacon=!O,f.disableBeaconSync=!I,f.senderOnCompleteCallBack=p,f);return S}catch{}return null}function vr(f,p,S){f.readyState===4&&Ue(f.status,p,f.responseURL,S,vi(f),eT(f)||f.response)}function Vt(f,p,S){k(C[Qr](),2,26,"Failed to send telemetry.",{message:p}),C._buffer&&C._buffer[Ba](f)}function Gr(f,p){for(var S=[],D=[],b=p.errors.reverse(),L=0,j=b;L<j.length;L++){var pe=j[L],Re=f.splice(pe.index,1)[0];U(pe.statusCode)?D[rn](Re):S[rn](Re)}f[De]>0&&C[jc](f,p[Fv]),S[De]>0&&C[yo](S,vi(null,["partial success",p[Fv],"of",p.itemsReceived].join(" "))),D[De]>0&&(Yr(D),k(C[Qr](),2,40,"Partial success. Delivered: "+f[De]+", Failed: "+S[De]+". Will retry to send "+D[De]+" our of "+p[Lv]+" items"))}function xr(f,p){C._buffer&&C._buffer[Ba](f)}function ft(f){try{if(f){var p=f,S=p[Uv];return S&&S[De]?S:null}}catch{}return null}function Ge(f,p){if(V)return!1;if(!f)return p&&k(p,1,7,"Cannot send empty telemetry"),!1;if(f.baseData&&!f[Mv])return p&&k(p,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(f[Mv]||(f[Mv]="EventData"),!C[eu])return p&&k(p,1,28,"Sender was not initialized"),!1;if(K(f))f[Pc]=C._sample[iu];else return p&&k(p,2,33,"Telemetry item was sampled out and not sent",{SampleRate:C._sample[iu]}),!1;return!0}function Le(f,p){var S=f.iKey||W,D=e.constructEnvelope(f,S,p,ne);if(!D){k(p,1,47,"Unable to create an AppInsights envelope");return}var b=!1;if(f[yr]&&f[yr][Cc]&&(R(f[yr][Cc],function(L){try{L&&L(D)===!1&&(b=!0,_t(p,"Telemetry processor check returns false"))}catch(j){k(p,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+ir(j),{exception:te(j)},!0)}}),delete f[yr][Cc]),!b)return D}function Xe(f){var p=ZN,S=C[Qr]();try{var D=Ge(f,S),b=null;D&&(b=Le(f,S)),b&&(p=u[nu](b))}catch{}return p}function je(f){var p=ZN;return f&&f[De]&&(p="["+f.join(",")+"]"),p}function P(f){var p,S=Oe();return p={urlString:N},p[Jr]=f,p.headers=S,p}function K(f){return C._sample.isSampledIn(f)}function ie(f,p,S,D){p===200&&f?C._onSuccess(f,f[De]):D&&C[yo](f,D)}function X(f,p,S,D){D===void 0&&(D=!0);var b=function(pe,Re,ce){return ie(p,pe,Re,ce)},L=oe(p),j=f&&f.sendPOST;return j&&L?(D&&C._buffer[Js](p),j(L,b,!S)):null}function oe(f){var p;if(Q(f)&&f[De]>0){var S=C[Ui].batchPayloads(f),D=Oe(),b=(p={},p[Jr]=S,p.urlString=N,p.headers=D,p.disableXhrSync=_e,p.disableFetchKeepAlive=!ue,p[Uv]=f,p);return b}return null}function Oe(){try{var f=l||{};return hv(N)&&(f[mv[6]]=mv[7]),f}catch{}return null}function be(f){var p=f?f[De]:0;return C[Ui].size()+p>A?((!E||E.isOnline())&&C[Zs](!0,null,10),!0):!1}function Ue(f,p,S,D,b,L){var j=null;if(C._appId||(j=fa(L),j&&j.appId&&(C._appId=j.appId)),(f<200||f>=300)&&f!==0){if((f===301||f===307||f===308)&&!Je(S)){C[yo](p,b);return}if(E&&!E.isOnline()){if(!z){var pe=10;Yr(p,pe),k(C[Qr](),2,40,". Offline - Response Code: ".concat(f,". Offline status: ").concat(!E.isOnline(),". Will retry to send ").concat(p.length," items."))}return}!z&&U(f)?(Yr(p),k(C[Qr](),2,40,". Response code "+f+". Will retry to send "+p[De]+" items.")):C[yo](p,b)}else Je(S),f===206?(j||(j=fa(L)),j&&!z?C[Yv](p,j):C[yo](p,b)):(n=0,C[jc](p,D))}function Je(f){return c>=10?!1:!B(f)&&f!==""&&f!==N?(N=f,++c,!0):!1}function or(f,p){if(d)d(f,!1);else{var S=Ie&&Ie[Vc]([3],!0);return X(S,f,p)}}function Zr(f,p,S){var D=f,b=D&&D[Uv];if(re)de&&de(b,!0),k(C[Qr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var L=[],j=0;j<b[De];j++){var pe=b[j],Re=[pe],ce=oe(Re);S(ce,p)?C._onSuccess(Re,Re[De]):L[rn](pe)}L[De]>0&&(de&&de(L,!0),k(C[Qr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function et(f){try{if(f&&f[De])return Ne(f[0])}catch{}return null}function jt(f,p){var S=null;if(Q(f)){for(var D=f[De],b=0;b<f[De];b++)D+=f[b].item[De];var L=Ie.getSyncFetchPayload();L+D<=Ux?S=2:Jt()?S=3:(S=1,k(C[Qr](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var j=Ie&&Ie[Vc]([S],!0);return X(j,f,p)}return null}function Yr(f,p){if(p===void 0&&(p=1),!(!f||f[De]===0)){var S=C[Ui];S[Ba](f),n++;for(var D=0,b=f;D<b.length;D++){var L=b[D];L.cnt=L.cnt||0,L.cnt++,S[Yi](L)}ri(p),h()}}function ri(f){var p=10,S;if(n<=1)S=p;else{var D=(Math.pow(2,n)-1)/2,b=Math.floor(Math.random()*D*p)+1;b=f*b,S=Math.max(Math.min(b,3600),p)}var L=ur()+S*1e3;i=L}function h(){if(!s&&!a){var f=i?Math.max(0,i-ur()):0,p=Math.max(G,f);s=Yt(function(){s=null,C[Zs](!0,null,1)},p)}}function w(){s&&s.cancel(),s=null,i=null}function U(f){return B($)?f===401||f===408||f===429||f===500||f===502||f===503||f===504:$[De]&&$.indexOf(f)>-1}function J(){var f="getNotifyMgr";return C.core[f]?C.core[f]():C.core._notificationManager}function ve(f,p){var S=J();if(S&&S[Wm])try{S[Wm](f,p)}catch(D){k(C[Qr](),1,74,"send request notification failed: "+ir(D),{exception:te(D)})}}function ye(f,p){var S=p.disableInstrumentationKeyValidation,D=B(S)?!1:S;if(D)return!0;var b="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",L=new RegExp(b);return L.test(f)}function ee(){C[eu]=null,C[Ui]=null,C._appId=null,C._sample=null,l={},E=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,_=0,d=null,m=null,N=null,g=null,A=0,T=!1,F=null,V=!1,W=null,ne=Xn,z=!1,Z=null,Se=Xn,_e=!1,ue=!1,re=!1,x=null,de=null,Ie=null,Ye(C,"_senderConfig",{g:function(){return Wf({},rT)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!B(n)?a=Wt(Wt({},t),{iKey:n}):a=t;var s=kx[a.baseType]||qm;return s(i,a,o)},e})(Ti)});var Jm=Y(()=>{"use strict";v();tT()});var Ka,Kc,Qm,Wa,Zm,ou,nT=Y(()=>{"use strict";v();Ka="instrumentationKey",Kc="connectionString",Qm="instrumentationkey",Wa="endpointUrl",Zm="ingestionendpoint",ou="userOverrideEndpointUrl"});var iT={};nf(iT,{AppInsightsCore:()=>Di,ApplicationInsights:()=>Vx,Sender:()=>zc,SeverityLevel:()=>Ym,arrForEach:()=>R,isNullOrUndefined:()=>B,proxyFunctions:()=>kt,throwError:()=>hr});function Bx(r){return r&&r>0}var au,eE,Gx,Vx,oT=Y(()=>{"use strict";v();Fr();Jm();Oi();We();Jo();he();nT();We();Oi();Jm();eE=void 0,Gx=(au={diagnosticLogInterval:Ds(Bx,1e4)},au[Kc]=eE,au[Wa]=eE,au[Ka]=eE,au.extensionConfig={},au);Vx=(function(){function r(e){var t=new Di,n;(B(e)||B(e[Ka])&&B(e[Kc]))&&hr("Invalid input configuration"),Ce(r,this,function(o){Ye(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,kt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Qe(e||{},Gx);n=s.cfg,t.addUnloadHook(Mr(s,function(){var u=n[Kc];if(lt(u)){var c=Yu(function(E,m){Mt(u,function(N){var g=N.value,A=n[Ka];if(!N.rejected&&g){n[Kc]=g;var T=Lc(g);A=T[Qm]||A}E(A)})}),l=Yu(function(E,m){Mt(u,function(N){var g=N.value,A=n[Wa];if(!N.rejected&&g){var T=Lc(g),I=T[Zm];A=I?I+Wn:A}E(A)})});n[Ka]=c,n[Wa]=n[ou]||l}if(Ne(u)){var _=Lc(u),d=_[Zm];n[Wa]=n[ou]?n[ou]:d+Wn,n[Ka]=_[Qm]||n[Ka]}n[Wa]=n[ou]?n[ou]:n[Wa]})),t.initialize(n,[new zc])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var lT=rt((QM,fT)=>{"use strict";v();function Zn(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function cT(r,e){for(var t="",n=0,i=-1,o=0,a,s=0;s<=r.length;++s){if(s<r.length)a=r.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,o=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return t}function Kx(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n}var uu={resolve:function(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=process.cwd()),o=n),Zn(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=cT(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(Zn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=cT(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return Zn(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];Zn(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":uu.normalize(e)},relative:function(e,t){if(Zn(e),Zn(t),e===t||(e=uu.resolve(e),t=uu.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,o=i-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var s=t.length,u=s-a,c=o<u?o:u,l=-1,_=0;_<=c;++_){if(_===c){if(u>c){if(t.charCodeAt(a+_)===47)return t.slice(a+_+1);if(_===0)return t.slice(a+_)}else o>c&&(e.charCodeAt(n+_)===47?l=_:_===0&&(l=0));break}var d=e.charCodeAt(n+_),E=t.charCodeAt(a+_);if(d!==E)break;d===47&&(l=_)}var m="";for(_=n+l+1;_<=i;++_)(_===i||e.charCodeAt(_)===47)&&(m.length===0?m+="..":m+="/..");return m.length>0?m+t.slice(a+l):(a+=l,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(Zn(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zn(e);var n=0,i=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":e.slice(n,i)}},extname:function(e){Zn(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Kx("/",e)},parse:function(e){Zn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,o;i?(t.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,_=0;l>=o;--l){if(n=e.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?a===-1?a=l:_!==1&&(_=1):a!==-1&&(_=-1)}return a===-1||u===-1||_===0||_===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};uu.posix=uu;fT.exports=uu});var uE=rt(Po=>{"use strict";v();Object.defineProperty(Po,"__esModule",{value:!0});Po.TargetPopulation=Po.Filters=Po.VSCodeFilterProvider=void 0;var Jv=require("vscode"),sE=class r{constructor(e,t,n){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=n}static trimVersionSuffix(e){let t=/\-[a-zA-Z0-9]+$/;return e.split(t)[0]}getFilterValue(e){switch(e){case ei.ApplicationVersion:return r.trimVersionSuffix(Jv.version);case ei.Build:return Jv.env.appName;case ei.ClientId:return Jv.env.machineId;case ei.ExtensionName:return this.extensionName;case ei.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case ei.Language:return Jv.env.language;case ei.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(ei);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Po.VSCodeFilterProvider=sE;var ei;(function(r){r.Market="X-MSEdge-Market",r.CorpNet="X-FD-Corpnet",r.ApplicationVersion="X-VSCode-AppVersion",r.Build="X-VSCode-Build",r.ClientId="X-MSEdge-ClientId",r.ExtensionName="X-VSCode-ExtensionName",r.ExtensionVersion="X-VSCode-ExtensionVersion",r.Language="X-VSCode-Language",r.TargetPopulation="X-VSCode-TargetPopulation"})(ei||(Po.Filters=ei={}));var NT;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(NT||(Po.TargetPopulation=NT={}))});var TT=rt(Qv=>{"use strict";v();Object.defineProperty(Qv,"__esModule",{value:!0});Qv.BaseFeatureProvider=void 0;var cE=class{constructor(e){this.telemetry=e,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let e=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,e}};Qv.BaseFeatureProvider=cE});var DT=rt(Zv=>{"use strict";v();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.FilteredFeatureProvider=void 0;var tA=TT(),fE=class extends tA.BaseFeatureProvider{constructor(e,t){super(e),this.telemetry=e,this.filterProviders=t,this.cachedTelemetryEvents=[]}getFilters(){let e=new Map;for(let t of this.filterProviders){let n=t.getFilters();for(let i of n.keys()){let o=n.get(i);e.set(i,o)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;let t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}};Zv.FilteredFeatureProvider=fE});var IT=rt(Co=>{"use strict";v();Object.defineProperty(Co,"__esModule",{value:!0});Co.TasApiFeatureProvider=Co.TASAPI_FETCHERROR_EVENTNAME=void 0;var nA=DT();Co.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var lE="ErrorType",vE=class extends nA.FilteredFeatureProvider{constructor(e,t,n){super(t,n),this.httpClient=e,this.telemetry=t,this.filterProviders=n}async fetch(){let e=this.getFilters(),t={};for(let s of e.keys()){let u=e.get(s);t[s]=u}let n;try{n=await this.httpClient.get({headers:t})}catch(s){let u=s,c=new Map;u.responseReceived&&!u.responseOk?c.set(lE,"ServerError"):u.responseReceived===!1?c.set(lE,"NoResponse"):c.set(lE,"GenericError"),this.telemetry.postEvent(Co.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Co.TASAPI_FETCHERROR_EVENTNAME);e.keys.length>0&&this.PostEventToTelemetry(t);let i=n.data,o=i.Configs,a=[];for(let s of o)if(s.Parameters)for(let u of Object.keys(s.Parameters)){let c=u+(s.Parameters[u]?"":"cf");a.includes(c)||a.push(c)}return{features:a,assignmentContext:i.AssignmentContext,configs:o}}};Co.TasApiFeatureProvider=vE});var yT=rt(fu=>{"use strict";v();Object.defineProperty(fu,"__esModule",{value:!0});fu.HttpClient=fu.FetchError=void 0;var cu=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};fu.FetchError=cu;var _E=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new cu("No response received",!1);if(!t.ok)throw new cu("Response not ok",!0,!1);let n=await t.json();if(!n)throw new cu("No data received",!1);return{data:n}}};fu.HttpClient=_E});var xT=rt(e_=>{"use strict";v();Object.defineProperty(e_,"__esModule",{value:!0});e_.MemoryKeyValueStorage=void 0;var dE=class{constructor(){this.storage=new Map}async getValue(e,t){return this.storage.has(e)?await Promise.resolve(this.storage.get(e)):await Promise.resolve(t||void 0)}setValue(e,t){this.storage.set(e,t)}};e_.MemoryKeyValueStorage=dE});var AT=rt(r_=>{"use strict";v();Object.defineProperty(r_,"__esModule",{value:!0});r_.ExperimentationServiceBase=void 0;var iA=xT(),pE=class{get features(){return this._features}set features(e){this._features=e,this.telemetry&&this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext)}constructor(e,t,n,i,o){this.telemetry=e,this.assignmentContextTelemetryPropertyName=t,this.telemetryEventName=n,this.storageKey=i,this.storage=o,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(o=new iA.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise((a,s)=>{this.resolveInitialFetchPromise=a})}async getFeaturesAsync(e=!1){if(this.fetchPromise!=null){try{await this.fetchPromise}catch{}return this.features}if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});try{this.fetchPromise=Promise.all(this.featureProviders.map(async n=>await n.getFeatures()));let t=await this.fetchPromise;this.updateFeatures(t,e)}catch{}return this.fetchPromise=void 0,this.resolveInitialFetchPromise&&(this.resolveInitialFetchPromise(),this.resolveInitialFetchPromise=void 0),this.features}updateFeatures(e,t=!1){let n={features:[],assignmentContext:"",configs:[]};for(let i of e){for(let o of i.features)n.features.includes(o)||n.features.push(o);for(let o of i.configs){let a=n.configs.find(s=>s.Id===o.Id);a?a.Parameters=Object.assign(Object.assign({},a.Parameters),o.Parameters):n.configs.push(o)}n.assignmentContext+=i.assignmentContext}(t||!this.featuresConsumed)&&(this.features=n),this.storage&&this.storage.setValue(this.storageKey,n)}async loadCachedFeatureData(){let e;this.storage&&(e=await this.storage.getValue(this.storageKey),e!==void 0&&e.configs===void 0&&(e.configs=[])),this.features.features.length===0&&(this.features=e||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(e){return this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isCachedFlightEnabled(e){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isFlightEnabledAsync(e){let t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`);let n=this.features.configs.find(i=>i.Id===e);return n?.Parameters[t]}async getTreatmentVariableAsync(e,t,n){if(n){let i=this.featuresConsumed,o=this.getTreatmentVariable(e,t);if(o===void 0)this.featuresConsumed=i;else return o}return await this.getFeaturesAsync(!0),this.getTreatmentVariable(e,t)}PostEventToTelemetry(e){this.cachedTelemetryEvents.includes(e)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",e]])),this.cachedTelemetryEvents.push(e))}invokeInit(){this.init()}addFeatureProvider(...e){if(!(e==null||this.featureProviders==null))for(let t of e)this.featureProviders.push(t)}};r_.ExperimentationServiceBase=pE});var PT=rt(t_=>{"use strict";v();Object.defineProperty(t_,"__esModule",{value:!0});t_.PollingService=void 0;var mE=class{constructor(e){this.fetchInterval=e}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(e){this.onTick=e}StartPolling(e=!1){this.intervalHandle&&this.StopPolling(),this.onTick!=null&&(e&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}};t_.PollingService=mE});var CT=rt(n_=>{"use strict";v();Object.defineProperty(n_,"__esModule",{value:!0});n_.ExperimentationServiceAutoPolling=void 0;var oA=AT(),aA=PT(),EE=class extends oA.ExperimentationServiceBase{constructor(e,t,n,i,o,a,s){if(super(e,i,o,a,s),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=n,this.assignmentContextTelemetryPropertyName=i,this.telemetryEventName=o,this.storageKey=a,this.storage=s,n<1e3&&n!==0)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");n>0&&(this.pollingService=new aA.PollingService(n),this.pollingService.OnPollTick(async()=>{await super.getFeaturesAsync()}))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(e=!1){if(this.pollingService){this.pollingService.StopPolling();let t=await super.getFeaturesAsync(e);return this.pollingService.StartPolling(),t}else return await super.getFeaturesAsync(e)}};n_.ExperimentationServiceAutoPolling=EE});var bT=rt(o_=>{"use strict";v();Object.defineProperty(o_,"__esModule",{value:!0});o_.ExperimentationService=void 0;var sA=IT(),uA=yT(),cA=CT(),i_=class extends cA.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],e.refetchInterval!=null?e.refetchInterval:0,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new sA.TasApiFeatureProvider(new uA.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};o_.ExperimentationService=i_;i_.REFRESH_RATE_IN_MINUTES=30});var RT=rt(a_=>{"use strict";v();Object.defineProperty(a_,"__esModule",{value:!0});a_.ExperimentationService=void 0;var fA=bT();Object.defineProperty(a_,"ExperimentationService",{enumerable:!0,get:function(){return fA.ExperimentationService}})});var OT=rt(s_=>{"use strict";v();Object.defineProperty(s_,"__esModule",{value:!0});s_.MementoKeyValueStorage=void 0;var gE=class{constructor(e){this.mementoGlobalStorage=e}async getValue(e,t){return await this.mementoGlobalStorage.get(e)||t}setValue(e,t){this.mementoGlobalStorage.update(e,t)}};s_.MementoKeyValueStorage=gE});var wT=rt(SE=>{"use strict";v();Object.defineProperty(SE,"__esModule",{value:!0});var hE=class{constructor(){this.initializePromise=Promise.resolve(),this.initialFetch=Promise.resolve()}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}};SE.default=hE});var LT=rt(lu=>{"use strict";v();Object.defineProperty(lu,"__esModule",{value:!0});lu.getExperimentationServiceAsync=lu.getExperimentationService=void 0;var lA=uE(),vA=RT(),NE=require("vscode"),_A=OT(),dA=wT(),pA="https://default.exp-tas.com/vscode/ab",mA="query-expfeature",EA="abexp.assignmentcontext",gA="VSCode.ABExp.FeatureData",hA=1e3*60*30;function YT(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=NE.workspace.getConfiguration("telemetry");if(!(NE.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):NE.env.isTelemetryEnabled))return new dA.default;let c=[new lA.VSCodeFilterProvider(r,e,t),...o],l=new _A.MementoKeyValueStorage(i);return new vA.ExperimentationService({filterProviders:c,telemetry:n,storageKey:gA,keyValueStorage:l,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:EA,telemetryEventName:mA,endpoint:pA,refetchInterval:hA})}lu.getExperimentationService=YT;async function SA(r,e,t,n,i,...o){let a=YT(r,e,t,n,i,...o);return await a.initializePromise,a}lu.getExperimentationServiceAsync=SA});var UT=rt(bo=>{"use strict";v();Object.defineProperty(bo,"__esModule",{value:!0});bo.TargetPopulation=bo.getExperimentationServiceAsync=bo.getExperimentationService=void 0;var FT=LT();Object.defineProperty(bo,"getExperimentationService",{enumerable:!0,get:function(){return FT.getExperimentationService}});Object.defineProperty(bo,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return FT.getExperimentationServiceAsync}});var NA=uE();Object.defineProperty(bo,"TargetPopulation",{enumerable:!0,get:function(){return NA.TargetPopulation}})});var CA={};nf(CA,{activate:()=>PA});module.exports=qT(CA);v();var qe=tn(require("vscode"));v();var Er=tn(require("vscode"));v();var Wc=tn(require("vscode"));v();var Nx=async(r,e,t)=>{let n=await Promise.resolve().then(()=>(da(),oS)),i=await Promise.resolve().then(()=>(qS(),$S)),o=new n.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:r,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(t){s.extensionConfig={};let l={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=l}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(l=>{l.ext=l.ext??{},l.ext.web=l.ext.web??{},l.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(l.ext.utc=l.ext.utc??{},l.ext.utc.flags=8462029)}),o},XS=async(r,e,t)=>{let n=await Nx(r,e,t);return{logEvent:(a,s)=>{try{n?.track({name:a,baseData:{name:a,properties:s?.properties,measurements:s?.measurements}})}catch(u){throw new Error(`Failed to log event to app insights!
1
+ "use strict";var iD=Object.create;var lf=Object.defineProperty;var oD=Object.getOwnPropertyDescriptor;var aD=Object.getOwnPropertyNames;var sD=Object.getPrototypeOf,uD=Object.prototype.hasOwnProperty;var Y=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var nt=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},df=(r,e)=>{for(var t in e)lf(r,t,{get:e[t],enumerable:!0})},Lg=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of aD(e))!uD.call(r,i)&&i!==t&&lf(r,i,{get:()=>e[i],enumerable:!(n=oD(e,i))||n.enumerable});return r};var Tt=(r,e,t)=>(t=r!=null?iD(sD(r)):{},Lg(e||!r||!r.__esModule?lf(t,"default",{value:r,enumerable:!0}):t,r)),cD=r=>Lg(lf({},"__esModule",{value:!0}),r);var d=Y(()=>{});var es,oi,bn,sn,rs,Eu,Av=Y(()=>{"use strict";d();es="function",oi="object",bn="undefined",sn="prototype",rs=Object,Eu=rs[sn]});function ur(r,e){return r||e}function je(r,e){return r?.[e]}function ge(r,e){try{return{v:r.apply(this,e)}}catch(t){return{e:t}}}function DD(r,e,t){var n=ge(r,t);return n.e?e:n.v}function Sf(r){return function(e){return typeof e===r}}function Kg(r){var e="[object "+r+"]";return function(t){return!!(t&&Nf(t)===e)}}function Nf(r){return yu[Du].call(r)}function Vv(r,e){return typeof r===e}function Te(r){return typeof r===Lo||r===Lo}function yD(r){return r===Vr}function B(r){return r===tr||Te(r)}function un(r){return r===tr||r===Vr}function Wg(r){return!!r||r!==Vr}function ID(r){return!bv&&(bv=["string","number","boolean",Lo,"symbol","bigint"]),r!==Tu&&bv.indexOf(r)!==-1}function nr(r){return!r&&B(r)?!1:!!r&&typeof r===Tu}function vt(r){return!!(r&&r.then&&se(r.then))}function Kv(r){return!r||!cn(r)}function cn(r){return!(!r||DD(function(){return!(r&&0+r)},!r))}function Wv(){}function xD(){return[]}function AD(){return!1}function te(r,e){var t=Bv,n=yu[Du][pr](r);n===bD&&(r={stack:_r(r.stack),message:_r(r.message),name:_r(r.name)});try{t=JSON.stringify(r,tr,e?typeof e=="number"?e:4:Vr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):tr)||_r(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function hr(r){throw new Error(r)}function it(r){throw new TypeError(r)}function Df(r){un(r)&&it("Cannot convert undefined or null to object")}function $g(r){Ne(r)||it("'"+te(r)+"' is not a string")}function br(r,e){return!!r&&yu.hasOwnProperty[pr](r,e)}function PD(r,e){return Df(r),br(r,e)||!!CD(r,e)}function RD(r){return r===Su||r===Nu||r===Kr}function ae(r,e,t){if(r&&(nr(r)||se(r))){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Mo]>>>0,i=0;i<n&&!(i in r&&e[pr](un(t)?r:t,r[i],i,r)===-1);i++);}function is(r,e,t){var n=e?e[r]:tr;return function(i){var o=(i?i[r]:tr)||n;if(o||t){var a=arguments;return(o||t).apply(i,o?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function wD(r,e,t){var n=e?e[r]:tr;return function(i){var o=n;if(o||t){var a=arguments;return(o||t).apply(i,o?Cn[pr](a,1):a)}it('"'+_r(r)+'" not defined for '+te(i))}}function OD(r){return function(e){return e[r]}}function YD(r,e){var t,n=Lr.getOwnPropertyDescriptor;return!un(r)&&n&&(t=ge(n,[r,e]).v||tr),!t&&!un(r)&&(t=ge(function(){for(var i in r)if(i==e)return{enumerable:br(r,i)}}).v),t&&t.enumerable||!1}function qg(r){var e={};if(e[vf.c]=!0,e[vf.e]=!0,r.l){e.get=function(){return r.l.v};var t=UD(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return ae(r,function(n,i){e[vf[n]]=yD(i)?e[vf[n]]:i}),e}function qv(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Dt(r,e,qg(a))}function Ye(r,e,t){return Dt(r,e,qg(t))}function Xg(r,e,t,n,i){var o={};return ae(r,function(a,s){gf(o,a,e?s:a),gf(o,s,t?s:a)}),n?n(o):o}function gf(r,e,t,n){Dt(r,e,{value:t,enumerable:!0,writable:!1})}function Qg(r){return r}function FD(r){return Df(r),r[Su]||tr}function Zg(r,e){if((Q(r)||nr(r)||se(r))&&!MD(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),ae(r,function(n,i){Zg(i,e)}),qt(r)}return r}function Rn(r){return Jg?Zg(r,[]):r}function eE(r){return Xg(r,1,0,qt)}function kD(r){return Xg(r,0,0,qt)}function HD(r){var e={};return ae(r,function(t,n){gf(e,t,n[1]),gf(e,n[0],n[1])}),qt(e)}function rE(r){return HD(r)}function nE(){var r;return typeof globalThis!==Lo&&(r=globalThis),!r&&typeof self!==Lo&&(r=self),!r&&typeof window!==Lo&&(r=window),!r&&typeof global!==Lo&&(r=global),r}function yf(){if(!Cv){var r=ge(nE).v||{};Cv=r[Fg]=r[Fg]||{}}return Cv}function BD(r,e,t){return Df(r),t<0?Bv:(e=e||0,e<0&&(e=GD(e+r[Mo],0)),Te(t)?kg(r,e):kg(r,e,e+t))}function Ho(r,e){return Cr(r,0,e)}function jD(r,e){return r&&(ge(function(){r[Ug]=!0,r[Mg]=e}),ge(Ye,[r,Ug,{v:!0,w:!1,e:!1}]),ge(Ye,[r,Mg,{v:e,w:!1,e:!1}])),r}function zD(r,e){var t=null;function n(){}if(un(r))t={};else{var i=typeof r;i!==Tu&&i!==hf&&it("Prototype must be an Object or function: "+te(r)),n[Kr]=r,ge(function(){n[Su]=r}),t=new n}return e&&ge($v,[t,e]),t}function cr(){return(Date.now||VD)()}function VD(){return new Date().getTime()}function Uo(r,e,t){return r.apply(e,t)}function Bi(){Er=yf()}function Jv(r,e){var t={};return!Er&&Bi(),t.b=Er.lzy,Dt(t,"v",{configurable:!0,get:function(){var n=Uo(r,null,e);return Er.lzy||Dt(t,"v",{value:n}),t.b=Er.lzy,n}}),t}function XD(){if(!Pv){var r=yf();Pv=r.gblSym=r.gblSym||{k:{},s:{}}}return Pv}function Qv(r){var e="_"+qD+++"_"+WD.v,t=jv+"("+r+")";function n(o,a){Ye(i,o,{v:a,e:!1,w:!1})}var i=fn(null);return n("description",_r(r)),n(Du,function(){return t+$D+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),jD(i,"symbol")}function JD(r){var e=XD();if(!$t(e.k,r)){var t=Qv(r),n=$r(e.s).length;t[Hg]=function(){return n+"_"+t[Du]()},e.k[r]=t,e.s[t[Hg]()]=_r(r)}return e.k[r]}function QD(r){!_f&&(_f={});var e,t=tE[r];return t&&(e=_f[t]=_f[t]||Qv(jv+"."+t)),e}function yt(r){return Dt({toJSON:function(){return r}},"v",{value:r})}function Iu(r,e){var t;return function(){return!Er&&Bi(),(!t||Er.lzy)&&(t=yt(ge(r,e).v)),t.v}}function _t(r){return!Er&&Bi(),(!hu||r===!1||Er.lzy)&&(hu=yt(ge(nE).v||tr)),hu.v}function le(r,e){var t;if(!hu||e===!1?t=_t(e):t=hu.v,t&&t[r])return t[r];if(r===iE)try{return window}catch{}return tr}function Go(){return!!Sr()}function as(){return!!Nr()}function xu(){return!!Pr()}function Zv(){return!!If()}function xf(){return ts=yt(ge(le,[jv]).v),ts}function ZD(r){var e=(Er.lzy?0:ts)||xf();return e.v?e.v[r]:Vr}function aE(){return!!ey()}function ey(){return!Er&&Bi(),((Er.lzy?0:ts)||xf()).v}function Au(r,e){var t=tE[r];!Er&&Bi();var n=(Er.lzy?0:ts)||xf();return n.v?n.v[t||r]:e?Vr:QD(r)}function ss(r,e){!Er&&Bi();var t=(Er.lzy?0:ts)||xf();return t.v?t.v(r):e?tr:Qv(r)}function Af(r){return!Er&&Bi(),Rv=(Er.lzy?0:Rv)||yt(ge(ZD,["for"]).v),(Rv.v||JD)(r)}function Ef(r){return!!r&&se(r.next)}function e_(r){return!un(r)&&se(r[Au(3)])}function bf(r,e,t){if(r&&(Ef(r)||(!pf&&(pf=yt(Au(3))),r=r[pf.v]?r[pf.v]():tr),Ef(r))){var n=Vr,i=Vr;try{for(var o=0;!(i=r.next()).done&&e[pr](un(t)?r:t,i.value,o,r)!==-1;)o++}catch(a){n={e:a},r.throw&&(i=tr,r.throw(n))}finally{try{i&&!i.done&&r.return&&r.return(i)}finally{if(n)throw n.e}}}}function ln(r,e){return!Te(e)&&r&&(Q(e)?Uo(r.push,r,e):Ef(e)||e_(e)?bf(e,function(t){r.push(t)}):r.push(e)),r}function us(r,e,t){return((r?r.slice:tr)||Cn).apply(r,Cn[pr](arguments,1))}function ry(r,e,t){return Me(r,e,t)!==-1}function ty(r,e){var t;return!wv&&(wv=yt((t={},t[Su]=[],t instanceof Array))),wv.v?r[Su]=e:ae(e,function(n,i){return r[n]=i}),r}function ny(r,e,t){ge(Ye,[e,mf,{v:r,c:!0,e:!1}]),e=sE(e,t);function n(){this[Nu]=e,ge(Ye,[this,mf,{v:r,c:!0,e:!1}])}return e[Kr]=t===tr?fn(t):(n[Kr]=t[Kr],new n),e}function Gg(r,e){e&&(r[mf]=e)}function t_(r,e,t,n){var i=t||Error,o=i[Kr][mf],a=Error.captureStackTrace;return ny(r,function(){var s=this,u=arguments;try{ge(Gg,[i,r]);var c=Uo(i,s,n?n(u):Cn[pr](u))||s;if(c!==s){var l=Gv(s);l!==Gv(c)&&sE(c,l)}return a&&a(c,s[Nu]),e&&e(c,u),c}finally{ge(Gg,[i,o])}},i)}function oy(r){return function(t){return Df(t),t=_r(t),t&&(t=iy(t,r,Bv)),t}}function uy(r,e,t){if(r!==tr&&r!==Vr){for(var n in r)if($t(r,n)&&e[pr](un(t)?r:t,n,r[n])===-1)return;R(sy(r),function(i){if(LD(r,i)&&e[pr](un(t)?r:t,i,r[i])===-1)return-1})}}function cy(r,e,t){uy(r,function(n,i){if(!RD(n))return e[pr](un(t)?r:t,n,i)},t)}function qr(r){if(!r||typeof r!==Tu)return!1;Lv||(Lv=as()?Nr():!0);var e=!1;if(r!==Lv){Yv||(Ov=Function[Kr][Du],Yv=Ov[pr](Lr));try{var t=Gv(r);e=!t,e||(br(t,Nu)&&(t=t[Nu]),e=!!(t&&typeof t===hf&&Ov[pr](t)===Yv))}catch{}}return e}function fy(r,e){e&&r.push(e)}function sr(r,e){e&&e[Kr]}function ly(){var r=[yu,ai,ns,dD,_D,mD,ED,SD,TD];return ge(le,["Map"]).v,ge(le,["Set"]).v,ge(le,["WeakMap"]).v,ge(le,["WeakSet"]).v,ge(le,["Promise"]).v,ge(le,["Symbol"]).v,ge(le,["ArrayBuffer"]).v,ge(le,["SharedArrayBuffer"]).v,ge(le,["DataView"]).v,ge(le,["Int8Array"]).v,ge(le,["Uint8Array"]).v,ge(le,["Uint8ClampedArray"]).v,ge(le,["Int16Array"]).v,ge(le,["Uint16Array"]).v,ge(le,["Int32Array"]).v,ge(le,["Uint32Array"]).v,ge(le,["Float32Array"]).v,ge(le,["Float64Array"]).v,ge(le,["BigInt64Array"]).v,ge(le,["BigUint64Array"]).v,ge(le,["WeakRef"]).v,ge(le,["FinalizationRegistry"]).v,r}function dy(r){return Uv||(Uv=yt(ly())),Me(Uv.v,r)>=0}function vy(r){return r.value&&fE(r),!0}function _y(r,e,t,n){var i;return R(r,function(o){if(o.k===e)return i=o,-1}),i||(i={k:e,v:e},r.push(i),n(i)),i.v}function n_(r,e,t,n){var i=t.handler,o=t.path?n?t.path.concat(n):t.path:[],a={handler:t.handler,src:t.src,path:o},s=typeof e,u=!1,c=e===tr;c||(e&&s===Tu?u=qr(e):c=ID(s));var l={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(v,_){return n_(r,v,_?a:t,_)},copyTo:function(v,_){return cE(r,v,_,a)}};return l.isPrim?i&&i[pr](t,l)?l.result:e:_y(r,e,o,function(v){Ye(l,"result",{g:function(){return v.v},s:function(p){v.v=p}});for(var _=0,g=i;!(g||(_<Bg.length?Bg[_++]:vy))[pr](t,l);)g=tr})}function cE(r,e,t,n){return dy(t)||cy(t,function(i,o){e[i]=n_(r,o,n,i)}),e}function py(r,e,t){var n={handler:t,src:e,path:[]};return cE([],r,e,n)}function my(r,e){var t={handler:e,src:r};return n_([],r,t)}function gy(r){var e=r.value;if(Q(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function Ey(r){var e=r.value;return Tf(e)?(r.result=new Date(e.getTime()),!0):!1}function hy(r){return r.type===hf}function fE(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function Sy(r,e){return R(e,function(t){py(r,t)}),r}function i_(r,e,t,n,i,o,a){return Sy(my(r)||{},Cn[pr](arguments))}function Bo(){return!Er&&Bi(),(!Mv||Er.lzy)&&(Mv=yt(ge(le,["performance"]).v)),Mv.v}function Cu(){var r=Bo();return r&&r.now?r.now():cr()}function Ny(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=!Te(t)&&t<r[Mo]?t:r[Mo];return Cr(r,i-n[Mo],i)===n}function Ty(r,e,t){$g(r);var n=Ne(e)?e:_r(e),i=t>0?t:0;return Cr(r,i,i+n[Mo])===n}function yy(r,e,t){var n=!0,i=r?e(tr):tr,o;function a(){return n=!1,i&&i[kv]&&i[kv](),o}function s(){i&&t(i),i=tr}function u(){return i=e(i),n||a(),o}function c(l){!l&&i&&s(),l&&!i&&u()}return o={cancel:s,refresh:u},o[Hv]=function(){return i&&i[Hv]?i[Hv]():n},o[Fv]=function(){return n=!0,i&&i[Fv]&&i[Fv](),o},o[kv]=a,o=Dt(o,Dy,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=tr}}}function Ay(r){var e=se(r)?r:Iy;if(!e){var t=yf().tmOut||[];Q(t)&&t.length>0&&se(t[0])&&(e=t[0])}return e||setTimeout}function by(r){var e=se(r)?r:xy;if(!e){var t=yf().tmOut||[];Q(t)&&t.length>1&&se(t[1])&&(e=t[1])}return e||clearTimeout}function o_(r,e,t){var n=Q(e),i=n?e.length:0,o=Ay(i>0?e[0]:n?Vr:e),a=by(i>1?e[1]:Vr),s=t[0];t[0]=function(){u.dn(),Uo(s,Vr,Cn[pr](arguments))};var u=yy(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Uo(a,Vr,[c])}return Uo(o,Vr,t)},function(c){Uo(a,Vr,[c])});return u.h}function Mt(r,e){return o_(!0,Vr,Cn[pr](arguments))}function lE(r,e,t){return o_(!0,r,Cn[pr](arguments,1))}function dE(r,e){return o_(!1,Vr,Cn[pr](arguments))}var Vr,tr,Bv,hf,Tu,Kr,Su,Lo,Nu,jv,Mo,mf,pr,Du,zv,fD,Lr,yu,jg,ai,zg,Vg,ns,Cn,lD,dD,vD,_D,pD,mD,gD,ED,hD,SD,ND,TD,Ug,Mg,bv,Ne,se,Q,Tf,Wr,Pn,Fo,_r,bD,CD,$t,ko,LD,UD,vf,Dt,$v,MD,Jg,os,$r,qt,Xv,Gv,tE,Fg,Cv,GD,kg,Cr,wn,fn,Er,KD,WD,Hg,$D,Pv,qD,_f,iE,hu,Sr,Nr,Pr,If,oE,ts,Rv,pf,Me,si,r_,cs,bu,wv,sE,iy,ay,ke,uE,sy,Ov,Yv,Lv,Uv,Bg,Mv,dn,jo,fs,Fv,kv,Hv,Dy,Iy,xy,he=Y(()=>{"use strict";d();Vr=void 0,tr=null,Bv="",hf="function",Tu="object",Kr="prototype",Su="__proto__",Lo="undefined",Nu="constructor",jv="Symbol",Mo="length",mf="name",pr="call",Du="toString",zv="getOwnPropertyDescriptor",fD="getOwnPropertySymbols",Lr=ur(Object),yu=je(Lr,Kr),jg=ur(String),ai=je(jg,Kr),zg=ur(Math),Vg=ur(Array),ns=je(Vg,Kr),Cn=je(ns,"slice"),lD=ur(Number),dD=je(lD,Kr),vD=ur(Function),_D=je(vD,Kr),pD=ur(Date),mD=je(pD,Kr),gD=ur(RegExp),ED=je(gD,Kr),hD=ur(Boolean),SD=je(hD,Kr),ND=ur(Error),TD=je(ND,Kr),Ug="_polyfill",Mg="__nw21$polytype__";Ne=Sf("string"),se=Sf(hf);Q=je(Vg,"isArray"),Tf=Kg("Date"),Wr=Sf("number"),Pn=Sf("boolean"),Fo=Kg("Error");_r=ur(jg),bD="[object Error]";CD=ur(je(Lr,zv),Wv),$t=ur(je(Lr,"hasOwn"),PD);ko=is;LD=wD("propertyIsEnumerable",yu,YD),UD=ur(je(Lr,zv),Wv),vf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Dt=je(Lr,"defineProperty"),$v=je(Lr,"defineProperties");MD=ur(je(Lr,"isFrozen"),AD),Jg=je(Lr,"freeze");os=je(Lr,"assign"),$r=je(Lr,"keys");qt=ur(Jg,Qg),Xv=ur(je(Lr,"seal"),Qg),Gv=ur(je(Lr,"getPrototypeOf"),FD);tE=kD({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Fg="__tsUtils$gblCfg";GD=je(zg,"max"),kg=ko("slice",ai),Cr=ko("substring",ai),wn=is("substr",ai,BD);fn=ur(je(Lr,"create"),zD);KD=je(zg,"random"),WD=Jv(function(){for(var r=cr().toString(36).slice(2);r.length<16;)r+=KD().toString(36).slice(2);return r=r.substring(0,16),r}),Hg="_urid",$D="$nw21sym",qD=0;iE="window";Sr=Iu(le,["document"]);Nr=Iu(le,[iE]);Pr=Iu(le,["navigator"]);If=Iu(le,["history"]),oE=Iu(function(){return!!ge(function(){return process&&(process.versions||{}).node}).v});Me=ko("indexOf",ns),si=ko("map",ns);r_=is("includes",ns,ry),cs=OD(Mo),bu=ko("reduce",ns),sE=ur(je(Lr,"setPrototypeOf"),ty);iy=ko("replace",ai);ay=oy(/^\s+|(?=\s)\s+$/g),ke=is("trim",ai,ay),uE=ur(je(Lr,zv),Wv),sy=ur(je(Lr,fD),xD);Bg=[gy,fE,hy,Ey];dn=ko("indexOf",ai),jo=is("endsWith",ai,Ny);fs=is("startsWith",ai,Ty);Fv="ref",kv="unref",Hv="hasRef",Dy="enabled"});function It(r,e){typeof e!==es&&e!==null&&it("Class extends value "+String(e)+" is not a constructor or null"),a_(r,e);function t(){this.constructor=r}r[sn]=e===null?fn(e):(t[sn]=e[sn],new t)}function Cf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var tb,nb,vE,Py,Xt,a_,_E=Y(()=>{"use strict";d();he();Av();tb=(_t()||{}).Symbol,nb=(_t()||{}).Reflect,vE="hasOwnProperty",Py=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Eu[vE].call(e,i)&&(r[i]=e[i])}return r},Xt=os||Py,a_=function(r,e){return a_=rs.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[vE](i)&&(t[i]=n[i])},a_(r,e)}});var pE=Y(()=>{"use strict";d()});var xt=Y(()=>{"use strict";d();Av();_E();pE();he()});function Of(r){return r&&(r===__[ui]||r===Array[ui])}function p_(r){return Of(r)||r===Function[ui]}function zo(r){var e;if(r){if(Ru)return Ru(r);var t=r[v_]||r[ui]||(r[Yf]?r[Yf][ui]:null);e=r[Rf]||t,br(r,Rf)||(delete r[s_],e=r[Rf]=r[s_]||r[Rf],r[s_]=t)}return e}function Mf(r,e){var t=[];if(EE)t=EE(r);else for(var n in r)typeof n=="string"&&br(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function m_(r,e,t){return e!==Yf&&typeof r[e]===Lf&&(t||br(r,e))&&e!==v_&&e!==ui}function Ff(r){it("DynamicProto: "+r)}function wy(r){var e=fn(null);return Mf(r,function(t){!e[t]&&m_(r,t,!1)&&(e[t]=r[t])}),e}function g_(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function Oy(r,e,t,n){function i(u,c,l){var v=c[l];if(v[c_]&&n){var _=u[Uf]||{};_[Pu]!==!1&&(v=(_[c[ls]]||{})[l]||v)}return function(){return v.apply(u,arguments)}}var o=fn(null);Mf(t,function(u){o[u]=i(e,t,u)});for(var a=zo(r),s=[];a&&!p_(a)&&!g_(s,a);)Mf(a,function(u){!o[u]&&m_(a,u,!Ru)&&(o[u]=i(e,a,u))}),s.push(a),a=zo(a);return o}function Yy(r,e,t,n){var i=null;if(r&&br(t,ls)){var o=r[Uf]||fn(null);if(i=(o[t[ls]]||fn(null))[e],i||Ff("Missing ["+e+"] "+Lf),!i[f_]&&o[Pu]!==!1){for(var a=!br(r,e),s=zo(r),u=[];a&&s&&!p_(s)&&!g_(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=zo(s)}try{a&&(r[e]=i),i[f_]=1}catch{o[Pu]=!1}}}return i}function Ly(r,e,t){var n=e[r];return n===t&&(n=zo(e)[r]),typeof n!==Lf&&Ff("["+r+"] is not a "+Lf),n}function Uy(r,e,t,n,i){function o(u,c){var l=function(){var v=Yy(this,c,u,l)||Ly(c,u,l);return v.apply(this,arguments)};return l[c_]=1,l}if(!Of(r)){var a=t[Uf]=t[Uf]||fn(null);if(!Of(a)){var s=a[e]=a[e]||fn(null);a[Pu]!==!1&&(a[Pu]=!!i),Of(s)||Mf(t,function(u){m_(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!br(r,u)||r[u]&&!r[u][c_])&&(r[u]=o(r,u)))})}}}function My(r,e){if(Ru){for(var t=[],n=zo(e);n&&!p_(n)&&!g_(t,n);){if(n===r)return!0;t.push(n),n=zo(n)}return!1}return!0}function u_(r,e){return br(r,ui)?r.name||e||mE:((r||{})[Yf]||{}).name||e||mE}function Ce(r,e,t,n){br(r,ui)||Ff("theClass is an invalid class definition.");var i=r[ui];My(i,e)||Ff("["+u_(r)+"] not in hierarchy of ["+u_(e)+"]");var o=null;br(i,ls)?o=i[ls]:(o=Ry+u_(r,"_")+"$"+d_.n,d_.n++,i[ls]=o);var a=Ce[SE],s=!!a[wf];s&&n&&n[wf]!==void 0&&(s=!!n[wf]);var u=wy(e),c=Oy(i,e,u,s);t(e,c);var l=!!Ru&&!!a[l_];l&&n&&(l=!!n[l_]),Uy(i,o,e,u,l!==!1)}var Pf,Yf,ui,Lf,Uf,c_,ls,Ry,f_,Pu,SE,mE,v_,Rf,gE,s_,wf,l_,__,Ru,EE,hE,d_,Ur=Y(()=>{"use strict";d();he();Yf="constructor",ui="prototype",Lf="function",Uf="_dynInstFuncs",c_="_isDynProxy",ls="_dynClass",Ry="_dynCls$",f_="_dynInstChk",Pu=f_,SE="_dfOpts",mE="_unknown_",v_="__proto__",Rf="_dyn"+v_,gE="__dynProto$Gbl",s_="_dynInstProto",wf="useBaseInst",l_="setInstFuncs",__=Object,Ru=__.getPrototypeOf,EE=__.getOwnPropertyNames,hE=_t(),d_=hE[gE]||(hE[gE]={o:(Pf={},Pf[l_]=!0,Pf[wf]=!0,Pf),n:1e3});Ce[SE]=d_.o});var E_,NE=Y(()=>{"use strict";d();E_=100});var fr,h_,wu=Y(()=>{"use strict";d();he();fr=eE,h_=rE});var vn,Fy,TE=Y(()=>{"use strict";d();wu();vn=fr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),Fy=fr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ft,S_=Y(()=>{"use strict";d();wu();Ft=fr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var At,ji,q,Vo,Ko,ds,ci,_n,pn,ze,zi,xe,On,kf,fi,li,Yn,vs,_s,bt,N_,Hf,Wo,Ou,Vi,Mr,ps,Ki,Rr,Gf,T_,Wi,D_,Ct,Yu,$o,Bf,Ln,kt,ms,Un,mn,Pt,$i,qo,Ht,qi,jf,Lu,Jt,zf,gn,y_,Rt,Uu,Xo,I_,x_,Mu,Xi,Jo,En,Vf,A_,gs,b_,Kf,Qo,C_,Es,hs,Ji,Ge=Y(()=>{"use strict";d();At="toLowerCase",ji="blkVal",q="length",Vo="rdOnly",Ko="notify",ds="warnToConsole",ci="throwInternal",_n="setDf",pn="watch",ze="logger",zi="apply",xe="push",On="splice",kf="hdlr",fi="cancel",li="initialize",Yn="identifier",vs="removeNotificationListener",_s="addNotificationListener",bt="isInitialized",N_="instrumentationKey",Hf="INACTIVE",Wo="value",Ou="getNotifyMgr",Vi="getPlugin",Mr="name",ps="iKey",Ki="time",Rr="processNext",Gf="getProcessTelContext",T_="pollInternalLogs",Wi="enabled",D_="stopPollingInternalLogs",Ct="unload",Yu="onComplete",$o="version",Bf="loggingLevelConsole",Ln="createNew",kt="teardown",ms="messageId",Un="message",mn="isAsync",Pt="diagLog",$i="_doTeardown",qo="update",Ht="getNext",qi="setNextPlugin",jf="protocol",Lu="userAgent",Jt="split",zf="nodeType",gn="replace",y_="logInternalMessage",Rt="type",Uu="handler",Xo="status",I_="getResponseHeader",x_="getAllResponseHeaders",Mu="isChildEvt",Xi="data",Jo="getCtx",En="setCtx",Vf="complete",A_="itemsReceived",gs="urlString",b_="sendPOST",Kf="headers",Qo="timeout",C_="setRequestHeader",Es="traceId",hs="spanId",Ji="traceFlags"});function DE(r,e){P_||(P_=t_("AggregationError",function(n,i){i[q]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
2
+ `.concat(i," > ").concat(te(n))}),new P_(t,e||[])}var P_,yE=Y(()=>{"use strict";d();he();Ge()});function Gt(r,e){return bE(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:F_,rejected:!0,reason:t}):t})}function bE(r,e,t,n){var i=r;try{if(vt(r))(e||t)&&(i=r.then(e,t));else try{e&&(i=e(r))}catch(o){if(t)i=t(o);else throw o}}finally{n&&ky(i,n)}return i}function ky(r,e){var t=r;return e&&(vt(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function Hy(r,e,t,n){R_=R_||{toString:function(){return"[[PromiseState]]"}},w_=w_||{toString:function(){return"[[PromiseResult]]"}},O_=O_||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[R_]={get:e},i[w_]={get:t},i[O_]={get:n},$v(r,i)}function Gy(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function By(r,e,t,n){var i=Sr();!Wf&&(Wf=yt(!!ge(Gy,[i]).v));var o=Wf.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),Wf.v&&o.initEvent(e,!1,!0),o&&r[xE])r[xE](o);else{var a=r["on"+e];if(a)a(o);else{var s=le("console");s&&(s.error||s.log)(e,te(o))}}}function AE(r){return se(r)?r.toString():te(r)}function RE(r,e,t){var n=us(arguments,3),i=0,o=!1,a,s=[],u=zy++,c=Fu.length>0?Fu[Fu.length-1]:void 0,l=!1,v=null,_;function g(U,j){try{Fu.push(u),l=!0,v&&v.cancel(),v=null;var W=r(function(ne,V){s.push(function(){try{var G=i===2?U:j,Z=Te(G)?a:se(G)?G(a):G;vt(Z)?Z.then(ne,V):G?ne(Z):i===3?V(Z):ne(Z)}catch(fe){V(fe)}}),o&&x()},n);return W}finally{Fu.pop()}}function p(U){return g(void 0,U)}function N(U){var j=U,W=U;return se(U)&&(j=function(ne){return U&&U(),ne},W=function(ne){throw U&&U(),ne}),g(j,W)}function E(){return CE[i]}function x(){if(s.length>0){var U=s.slice();s=[],l=!0,v&&v.cancel(),v=null,e(U)}}function T(U,j){return function(W){if(i===j){if(U===2&&vt(W)){i=1,W.then(T(2,1),T(3,1));return}i=U,o=!0,a=W,x(),!l&&U===3&&!v&&(v=Mt(I,Vy))}}}function I(){if(!l)if(l=!0,oE())process.emit(PE,a,_);else{var U=Nr()||_t();!Y_&&(Y_=yt(ge(le,[$f+"RejectionEvent"]).v)),By(U,jy,function(j){return Ye(j,"promise",{g:function(){return _}}),j.reason=a,j},!!Y_.v)}}_={then:g,catch:p,finally:N},Dt(_,"state",{get:E}),IE&&Hy(_,E,function(){return Nf(a)},function(){return l}),aE()&&(_[Au(11)]="IPromise");function w(){return"IPromise"+(IE?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+E()+(o?" - "+AE(a):"")}return _.toString=w,(function(){se(t)||it($f+": executor is not a function - "+AE(t));var j=T(3,0);try{t.call(_,T(2,0),j)}catch(W){j(W)}})(),_}function Ky(r){return function(e){var t=us(arguments,1);return r(function(n,i){try{var o=[],a=1;bf(e,function(s,u){s&&(a++,bE(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function Wy(r){return yt(function(e){var t=us(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Gt(u,function(l){l.rejected?o[c]={status:F_,reason:l.reason}:o[c]={status:"fulfilled",value:l.value},--a===0&&n(o)})}try{Q(e)?R(e,s):e_(e)?bf(e,s):it("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function wE(r){R(r,function(e){try{e()}catch{}})}function $y(r){var e=Wr(r)?r:0;return function(t){Mt(function(){wE(t)},e)}}function OE(r,e){return RE(OE,$y(e),r,e)}function qy(r,e){!L_&&(L_=yt(ge(le,[$f]).v||null));var t=L_.v;if(!t)return OE(r);se(r)||it($f+": executor is not a function - "+te(r));var n=0;function i(){return CE[n]}var o=new t(function(a,s){function u(l){n=2,a(l)}function c(l){n=3,s(l)}r(u,c)});return Dt(o,"state",{get:i}),o}function ku(r){return RE(ku,wE,r)}function YE(r,e){return!U_&&(U_=Wy(ku)),U_.v(r,e)}function Qt(r,e){return!M_&&(M_=yt(qy)),M_.v.call(this,r,e)}var $f,F_,R_,w_,O_,IE,CE,xE,Wf,PE,jy,Fu,zy,Vy,Y_,L_,U_,M_,LE,Xb,Zo=Y(()=>{"use strict";d();he();$f="Promise",F_="rejected";IE=!1;CE=["pending","resolving","resolved",F_],xE="dispatchEvent";PE="unhandledRejection",jy=PE.toLowerCase(),Fu=[],zy=0,Vy=10;LE=Ky(Qt),Xb=Au(11)});var Bt,me,Qi,ir,qf,Hu,di,ea,wt,ra,Ss,Zi,Ns,Mn,Xf,Jf,Qf,Ts,Zf,el,UE,Tr=Y(()=>{"use strict";d();Bt=void 0,me="",Qi="channels",ir="core",qf="createPerfMgr",Hu="disabled",di="extensionConfig",ea="extensions",wt="processTelemetry",ra="priority",Ss="eventsSent",Zi="eventsDiscarded",Ns="eventsSendRequest",Mn="perfEvent",Xf="offlineEventsStored",Jf="offlineBatchSent",Qf="offlineBatchDrop",Ts="getPerfMgr",Zf="domain",el="path",UE="Not dynamic - "});function eo(r){return!B(r)}function ta(r){var e=r;return e&&Ne(e)&&(e=e[gn](Jy,function(t,n){return n.toUpperCase()}),e=e[gn](Qy,"_"),e=e[gn](Zy,function(t,n){return"_"+n})),e}function mr(r,e){return r&&e?dn(r,e)!==-1:!1}function hn(r){return r&&r.toISOString()||""}function or(r){return Fo(r)?r[Mr]:me}function Zt(r,e,t,n,i){var o=t;return r&&(o=r[e],o!==t&&(!i||i(o))&&(!n||n(t))&&(o=t,r[e]=o)),o}function Gu(r,e,t){var n;return r?(n=r[e],!n&&B(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function FE(r,e){var t=null,n=null;return se(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][zi](n,i)}}function k_(r,e,t){if(r&&e&&nr(r)&&nr(e)){var n=function(o){if(Ne(o)){var a=e[o];se(a)?(!t||t(o,!0,e,r))&&(r[o]=FE(e,o)):(!t||t(o,!1,e,r))&&($t(r,o)&&delete r[o],Ye(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function vi(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=FE(t,n))}function jt(r,e,t,n){return r&&e&&nr(r)&&Q(t)&&R(t,function(i){Ne(i)&&vi(r,i,e,i,n)}),r}function H_(r){return(function(){function e(){var t=this;r&&ae(r,function(n,i){t[n]=i})}return e})()}function Ot(r){return r&&os&&(r=rs(os({},r))),r}function rl(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[q],c=!1,l=1;for(u>0&&Pn(s)&&(c=s,s=a[l]||{},l++),nr(s)||(s={});l<u;l++){var v=a[l],_=Q(v),g=nr(v);for(var p in v){var N=_&&p in v||g&&$t(v,p);if(N){var E=v[p],x=void 0;if(c&&E&&((x=Q(E))||qr(E))){var T=s[p];x?Q(T)||(T=[]):qr(T)||(T={}),E=rl(c,T,E)}E!==void 0&&(s[p]=E)}}}return s}function Sn(r){try{return r.responseText}catch{}return null}function na(r,e){return r?"XDomainRequest,Response:"+Sn(r)||"":e}function _i(r,e){return r?"XMLHttpRequest,Status:"+r[Xo]+",Response:"+Sn(r)||r.response||"":e}function pi(r,e){return e&&(Wr(e)?r=[e].concat(r):Q(e)&&(r=e.concat(r))),r}function G_(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,eI,n),t&&a(s,ME,t),s.open(r,e,!i),t&&a(s,ME,t),!i&&o&&a(s,rI,o),s}function tl(r){var e={};if(Ne(r)){var t=ke(r)[Jt](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=ke(n.substring(0,i))[At](),a=ke(n.substring(i+1));e[o]=a}else e[ke(n)]=1}})}return e}function Ds(r,e,t){if(!r[t]&&e&&e[I_]){var n=e[I_](t);n&&(r[t]=ke(n))}return r}function mi(r,e){var t={};return r[x_]?t=tl(r[x_]()):e&&(t=Ds(t,r,iI),t=Ds(t,r,tI),t=Ds(t,r,nI)),t}var Xy,Jy,Qy,Zy,o0,eI,ME,rI,tI,nI,iI,Fn=Y(()=>{"use strict";d();xt();he();Ge();Tr();Xy="getPrototypeOf",Jy=/-([a-z])/g,Qy=/([^\w\d_$])/g,Zy=/^(\d+[\w\d_$])/,o0=Object[Xy];eI="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ME="withCredentials",rI="timeout";tI="kill-duration",nI="kill-duration-seconds",iI="time-delta-millis"});function BE(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[sn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function W_(r){GE=r}function ia(r){if(r&&GE){var e=le("__mockLocation");if(e)return e}return typeof location===oi&&location?location:le(aI)}function Bu(){return typeof console!==bn?console:le(sI)}function kn(){return!!(typeof JSON===oi&&JSON||le(kE)!==null)}function Xr(){return kn()?JSON||le(kE):null}function ju(){return le(uI)}function zu(){return le(cI)}function ro(){var r=Pr();return r&&r.product?r.product===fI:!1}function to(){var r=Pr();if(r&&(r[Lu]!==j_||B_===null)){j_=r[Lu];var e=(j_||me)[At]();B_=mr(e,V_)||mr(e,K_)}return B_}function Vu(r){if(r===void 0&&(r=null),!r){var e=Pr()||{};r=e?(e.userAgent||me)[At]():me}var t=(r||me)[At]();if(mr(t,V_)){var n=Sr()||{};return Math.max(parseInt(t[Jt](V_)[1]),n[oI]||0)}else if(mr(t,K_)){var i=parseInt(t[Jt](K_)[1]);if(i)return i+4}return null}function en(r){return(z_===null||r===!1)&&(z_=xu()&&!!Pr().sendBeacon),z_}function gi(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=BE(t,"keepalive"))}catch{}return e}function Ku(){return ys===null&&(ys=typeof XDomainRequest!==bn,ys&&Is()&&(ys=ys&&!BE(le(HE),"withCredentials"))),ys}function Is(){var r=!1;try{var e=le(HE);r=!!e}catch{}return r}function jE(r,e){if(r)for(var t=0;t<r[q];t++){var n=r[t];if(n[Mr]&&n[Mr]===e)return n}return{}}function $_(r){var e=Sr();return e&&r?jE(e.querySelectorAll("meta"),r).content:null}function q_(r){var e,t=Bo();if(t){var n=t.getEntriesByType("navigation")||[];e=jE((n[q]>0?n[0]:{}).serverTiming,r).description}return e}var oI,aI,sI,kE,uI,cI,fI,V_,K_,HE,B_,j_,GE,ys,z_,no=Y(()=>{"use strict";d();xt();he();Ge();Fn();Tr();oI="documentMode",aI="location",sI="console",kE="JSON",uI="crypto",cI="msCrypto",fI="ReactNative",V_="msie",K_="trident/",HE="XMLHttpRequest",B_=null,j_=null,GE=!1,ys=null,z_=null});function lI(r){r<0&&(r>>>=0),Wu=VE+r&io,$u=KE-r&io,WE=!0}function dI(){try{var r=cr()&2147483647;lI((Math.random()*zE^r)+r)}catch{}}function X_(r){return r>0?Math.floor(Ei()/io*(r+1))>>>0:0}function Ei(r){var e=0,t=ju()||zu();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&io),e===0&&to()&&(WE||dI(),e=$E()&io),e===0&&(e=Math.floor(zE*Math.random()|0)),r||(e>>>=0),e}function $E(r){$u=36969*($u&65535)+($u>>16)&io,Wu=18e3*(Wu&65535)+(Wu>>16)&io;var e=($u<<16)+(Wu&65535)>>>0&io|0;return r||(e>>>=0),e}function qu(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=Ei()>>>0,n=0,i=me;i[q]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(Ei()<<2&4294967295|t&3)>>>0,n=0);return i}var zE,io,VE,KE,WE,Wu,$u,nl=Y(()=>{"use strict";d();he();Ge();no();Tr();zE=4294967296,io=4294967295,VE=123456789,KE=987654321,WE=!1,Wu=VE,$u=KE});function XE(r){return r[zf]===1||r[zf]===9||!+r[zf]}function pI(r,e){var t=e[r.id];if(!t){t={};try{XE(e)&&Ye(e,r.id,{e:!1,v:t})}catch{}}return t}function Jr(r,e){return e===void 0&&(e=!1),ta(r+_I+++(e?"."+qE:me)+vI)}function il(r){var e={id:Jr("_aiData-"+(r||me)+"."+qE),accept:function(t){return XE(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ta(n)]:(o&&(a=pI(e,t),a[ta(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var qE,vI,_I,xs=Y(()=>{"use strict";d();he();Ge();Fn();Tr();nl();qE="3.3.4",vI="."+qu(6),_I=0});function ol(r){return r&&nr(r)&&(r.isVal||r.fb||$t(r,"v")||$t(r,"mrg")||$t(r,"ref")||r.set)}function JE(r,e,t){var n,i=t.dfVal||Wg;if(e&&t.fb){var o=t.fb;Q(o)||(o=[o]);for(var a=0;a<o[q];a++){var s=o[a],u=e[s];if(i(u)?n=u:r&&(u=r.cfg[s],i(u)&&(n=u),r.set(r.cfg,_r(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function J_(r,e,t){var n=t;if(t&&ol(t)&&(n=JE(r,e,t)),n){ol(n)&&(n=J_(r,e,n));var i;Q(n)?(i=[],i[q]=n[q]):qr(n)&&(i={}),i&&(ae(n,function(o,a){a&&ol(a)&&(a=J_(r,e,a)),i[o]=a}),n=i)}return n}function Xu(r,e,t,n){var i,o,a,s=n,u,c,l,v;ol(s)?(i=s.isVal,o=s.set,l=s[Vo],v=s[ji],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=JE(r,e,s)):a=n,v&&r[ji](e,t);var _,g=!0,p=e[t];(p||!B(p))&&(_=p,g=!1,i&&_!==a&&!i(_)&&(_=a,g=!0),o&&(_=o(_,a,e),g=_===a)),g?a?_=J_(r,e,a):_=a:(qr(_)||Q(a))&&u&&a&&(qr(a)||Q(a))&&ae(a,function(N,E){Xu(r,_,N,E)}),r.set(e,t,_),c&&r.ref(e,t),l&&r[Vo](e,t)}var Q_=Y(()=>{"use strict";d();he();Ge()});function Z_(r){if(r){var e;if(Q(r)?(e=[],e[q]=r[q]):qr(r)&&(e={}),e)return ae(r,function(t,n){e[t]=Z_(n)}),e}return r}function Ju(r){if(r){var e=r[Hn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Hn]===e))return e}return null}function Qu(r){if(r&&(qr(r)||Q(r)))try{r[QE]=!0}catch{}return r}function ep(r){if(r)try{r[ZE]=!0}catch{}return r}function al(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[ZE],!n&&!t[QE]&&(n=qr(t)||Q(t))),n}function sl(r){it("InvalidAccess:"+r)}var Hn,QE,ZE,ul=Y(()=>{"use strict";d();he();Ge();Hn=Af("[[ai_dynCfg_1]]"),QE=Af("[[ai_blkDynCfg_1]]"),ZE=Af("[[ai_frcDynCfg_1]]")});function gI(r,e,t){Q(e)&&R(mI,function(n){var i=e[n];e[n]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=i[zi](this,o);return Zu(r,e,t,"Patching"),s}})}function cl(r,e){var t=uE(r,e);return t&&t.get}function EI(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Me(i.h,c)===-1&&i.h[xe](c),r.trk(c,i))},clr:function(c){var l=Me(i.h,c);l!==-1&&i.h[On](l,1)}},o=!0,a=!1;function s(){o&&(a=a||al(s,r,n),n&&!n[Hn]&&a&&(n=Zu(r,n,t,"Converting")),o=!1);var c=r.act;return c&&i.trk(c),n}s[r.prop]={chng:function(){r.add(i)}};function u(c){if(n!==c){s[r.ro]&&!r.upd&&sl("["+t+"] is read-only:"+te(e)),o&&(a=a||al(s,r,n),o=!1);var l=a&&s[r.rf];if(a)if(l){ae(n,function(_){n[_]=c?c[_]:Bt});try{ae(c,function(_,g){ec(r,n,_,g)}),c=n}catch(_){As((r.hdlr||{})[ze],t,"Assigning",_),a=!1}}else n&&n[Hn]&&ae(n,function(_){var g=cl(n,_);if(g){var p=g[r.prop];p&&p.chng()}});if(c!==n){var v=c&&al(s,r,c);!l&&v&&(c=Zu(r,c,t,"Converting")),n=c,a=v}r.add(i)}}Ye(e,i.n,{g:s,s:u})}function ec(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop];o?e[t]=n:EI(r,e,t,n)}return e}function fl(r,e,t,n){if(e){var i=cl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{Qu(e)}catch(c){As((r.hdlr||{})[ze],t,"Blocking",c)}try{ec(r,e,t,e[t]),i=cl(e,t)}catch(c){As((r.hdlr||{})[ze],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function Zu(r,e,t,n){try{ae(e,function(i,o){ec(r,e,i,o)}),e[Hn]||(Dt(e,Hn,{get:function(){return r[kf]}}),gI(r,e,t))}catch(i){As((r.hdlr||{})[ze],t,n,i)}return e}var mI,As,eh=Y(()=>{"use strict";d();he();Tr();Ge();ul();mI=["push","pop","shift","unshift","splice"],As=function(r,e,t,n){r&&r[ci](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function rh(r){var e,t=ss(rc+"get"+r.uid+tc),n=ss(rc+"ro"+r.uid+tc),i=ss(rc+"rf"+r.uid+tc),o=ss(rc+"blkVal"+r.uid+tc),a=ss(rc+"dtl"+r.uid+tc),s=null,u=null,c;function l(p,N){var E=c.act;try{c.act=p,p&&p[a]&&(R(p[a],function(T){T.clr(p)}),p[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[_n].bind(r),ref:r.ref.bind(r),rdOnly:r[Vo].bind(r)})}catch(T){var x=r[ze];throw x&&x[ci](1,107,te(T)),T}finally{c.act=E||null}}function v(){if(s){var p=s;s=null,u&&u[fi](),u=null;var N=[];if(R(p,function(E){if(E&&(E[a]&&(R(E[a],function(x){x.clr(E)}),E[a]=null),E.fn))try{l(E,E.fn)}catch(x){N[xe](x)}}),s)try{v()}catch(E){N[xe](E)}N[q]>0&&DE("Watcher error(s): ",N)}}function _(p){if(p&&p.h[q]>0){s||(s=[]),u||(u=Mt(function(){u=null,v()},0));for(var N=0;N<p.h[q];N++){var E=p.h[N];E&&Me(s,E)===-1&&s[xe](E)}}}function g(p,N){if(p){var E=p[a]=p[a]||[];Me(E,N)===-1&&E[xe](N)}}return c=(e={prop:t,ro:n,rf:i},e[ji]=o,e[kf]=r,e.add=_,e[Ko]=v,e.use=l,e.trk=g,e),c}var rc,tc,th=Y(()=>{"use strict";d();he();yE();Ge();rc="[[ai_",tc="]]"});function hI(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return Ye(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function SI(r,e,t){var n,i=Ju(e);if(i)return i;var o=Jr("dyncfg",!0),a=e&&t!==!1?e:Z_(e),s;function u(){s[Ko]()}function c(x,T,I){try{x=ec(s,x,T,I)}catch(w){As(r,T,"Setting value",w)}return x[T]}function l(x){return hI(s,x)}function v(x,T){s.use(null,function(I){var w=s.upd;try{Te(T)||(s.upd=T),x(I)}finally{s.upd=w}})}function _(x,T){var I;return fl(s,x,T,(I={},I[0]=!0,I))[T]}function g(x,T){var I;return fl(s,x,T,(I={},I[1]=!0,I))[T]}function p(x,T){var I;return fl(s,x,T,(I={},I[2]=!0,I))[T]}function N(x,T){return T&&ae(T,function(I,w){Xu(E,x,I,w)}),x}var E=(n={uid:null,cfg:a},n[ze]=r,n[Ko]=u,n.set=c,n[_n]=N,n[pn]=l,n.ref=_,n[Vo]=g,n[ji]=p,n._block=v,n);return Ye(E,"uid",{c:!1,e:!1,w:!1,v:o}),s=rh(E),Zu(s,a,"config","Creating"),E}function NI(r,e){r?(r[ds](e),r[ci](2,108,e)):sl(e)}function Qe(r,e,t,n){var i=SI(t,r||{},n);return e&&i[_n](i.cfg,e),i}function Fr(r,e,t){var n=r[Hn]||r;return n.cfg&&(n.cfg===r||n.cfg[Hn]===n)?n[pn](e):(NI(t,UE+te(r)),Qe(r,null,t)[pn](e))}var oo=Y(()=>{"use strict";d();he();xs();Tr();Ge();Q_();eh();th();ul()});function hi(r,e){if(r&&r[Ct])return r[Ct](e)}function ll(r,e,t){var n;return t||(n=Qt(function(i){t=i})),r&&cs(r)>0?Gt(hi(r[0],e),function(){ll(us(r,1),e,t)}):t(),n}var rp=Y(()=>{"use strict";d();Zo();he();Ge()});var nh,tp,np=Y(()=>{"use strict";d();nh=500,tp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function TI(r,e,t){return!r&&B(r)?e:Pn(r)?r:_r(r)[At]()==="true"}function ip(r){return{mrg:!0,v:r}}function bs(r,e,t){return{fb:t,isVal:r,v:e}}function rn(r,e){return{fb:e,set:TI,v:!!r}}var op=Y(()=>{"use strict";d();he();Ge()});function DI(r,e){return function(){var t=arguments,n=sp(e);if(n){var i=n.listener;i&&i[r]&&i[r][zi](i,t)}}}function yI(){var r=le("Microsoft");return r&&(vl=r.ApplicationInsights),vl}function sp(r){var e=vl;return!e&&r.disableDbgExt!==!0&&(e=vl||yI()),e?e.ChromeDbgExt:null}function ih(r){if(!dl){dl={};for(var e=0;e<ap[q];e++)dl[ap[e]]=DI(ap[e],r)}return dl}var ap,vl,dl,up=Y(()=>{"use strict";d();he();Ge();Tr();ap=[Ss,Zi,Ns,Mn],vl=null});function oh(r){return r?'"'+r[gn](/\"/g,me)+'"':me}function cp(r,e){var t=Bu();if(t){var n="log";t[r]&&(n=r),se(t[n])&&t[n](e)}}function Si(r,e){return(r||{})[ze]||new ao(e)}function fp(r){return r||new ao}function H(r,e,t,n,i,o){o===void 0&&(o=!1),fp(r)[ci](e,t,n,i,o)}function pt(r,e){fp(r)[ds](e)}function lp(r,e,t){fp(r)[y_](e,t)}var Cs,ah,II,xI,AI,bI,CI,oa,ao,Nn=Y(()=>{"use strict";d();Ur();he();oo();Ge();up();no();Tr();ah="warnToConsole",II="AI (Internal): ",xI="AI: ",AI="AITR_",bI={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},CI=(Cs={},Cs[0]=null,Cs[1]="errorToConsole",Cs[2]=ah,Cs[3]="debugToConsole",Cs);oa=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[ms]=e,o[Un]=(n?xI:II)+e;var a=me;kn()&&(a=Xr().stringify(i));var s=(t?" message:"+oh(t):me)+(i?" props:"+oh(a):me);o[Un]+=s}return r.dataType="MessageData",r})();ao=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;Ce(r,this,function(c){u=v(e||{}),c.consoleLoggingLevel=function(){return i},c[ci]=function(p,N,E,x,T){T===void 0&&(T=!1);var I=new oa(N,E,T,x);if(s)throw te(I);var w=CI[p]||ah;if(Te(I[Un]))g("throw"+(p===1?"Critical":"Warning"),I);else{if(T){var U=+I[ms];!n[U]&&i>=p&&(c[w](I[Un]),n[U]=!0)}else i>=p&&c[w](I[Un]);l(p,I)}},c.debugToConsole=function(p){cp("debug",p),g("warning",p)},c[ds]=function(p){cp("warn",p),g("warning",p)},c.errorToConsole=function(p){cp("error",p),g("error",p)},c.resetInternalMessageCount=function(){t=0,n={}},c[y_]=l,c[Ct]=function(p){u&&u.rm(),u=null};function l(p,N){if(!_()){var E=!0,x=AI+N[ms];if(n[x]?E=!1:n[x]=!0,E&&(p<=o&&(c.queue[xe](N),t++,g(p===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new oa(23,T,!1);c.queue[xe](I),p===1?c.errorToConsole(T):c[ds](T)}}}function v(p){return Fr(Qe(p,bI,c).cfg,function(N){var E=N.cfg;i=E[Bf],o=E.loggingLevelTelemetry,a=E.maxMessageLimit,s=E.enableDebug})}function _(){return t>=a}function g(p,N){var E=sp(e||{});E&&E[Pt]&&E[Pt](p,N)}})}return r.__ieDyn=1,r})()});function gp(){!Gn&&(Gn=Jv(function(){return Sr()}))}function RI(r,e){var t=Ni[so]||ml[so];return t||(t=Ni[so]=Ni(r,e),ml[so]=t),t}function pl(r){return r?r.isEnabled():!0}function mh(r,e){return e&&r&&Q(r.ignoreCookies)?Me(r.ignoreCookies,e)!==-1:!1}function wI(r,e){return e&&r&&Q(r.blockedCookies)&&Me(r.blockedCookies,e)!==-1?!0:mh(r,e)}function dh(r,e){var t=e[Wi];if(B(t)){var n=void 0;Te(r[ch])||(n=!r[ch]),Te(r[pp])||(n=!r[pp]),t=n}return t}function Ep(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[so]?t=n[so]:t=Ni(e)}return t||(t=RI(e,(r||{})[ze])),t}function Ni(r,e){var t,n,i,o,a,s,u,c,l;r=Qe(r||ml,null,e).cfg,a=Fr(r,function(_){_[_n](_.cfg,PI),n=_.ref(_.cfg,"cookieCfg"),i=n[el]||"/",o=n[Zf],s=dh(r,n)!==!1,u=n.getCookie||OI,c=n.setCookie||ph,l=n.delCookie||ph},e);var v=(t={isEnabled:function(){var _=dh(r,n)!==!1&&s&&Ps(e),g=ml[so];return _&&g&&v!==g&&(_=pl(g)),_},setEnabled:function(_){s=_!==!1,n[Wi]=_},set:function(_,g,p,N,E){var x=!1;if(pl(v)&&!wI(n,_)){var T={},I=ke(g||me),w=dn(I,";");if(w!==-1&&(I=ke(Ho(g,w)),T=gh(Cr(g,w+1))),Zt(T,Zf,N||o,cn,Te),!B(p)){var U=to();if(Te(T[vp])){var j=cr(),W=j+p*1e3;if(W>0){var ne=new Date;ne.setTime(W),Zt(T,vp,vh(ne,U?sh:uh)||vh(ne,U?sh:uh)||me,cn)}}U||Zt(T,"max-age",me+p,null,Te)}var V=ia();V&&V[jf]==="https:"&&(Zt(T,"secure",null,null,Te),_p===null&&(_p=!gl((Pr()||{})[Lu])),_p&&Zt(T,"SameSite","None",null,Te)),Zt(T,el,E||i,null,Te),c(_,_h(I,T)),x=!0}return x},get:function(_){var g=me;return pl(v)&&!mh(n,_)&&(g=u(_)),g},del:function(_,g){var p=!1;return pl(v)&&(p=v.purge(_,g)),p},purge:function(_,g){var p,N=!1;if(Ps(e)){var E=(p={},p[el]=g||"/",p[vp]="Thu, 01 Jan 1970 00:00:01 GMT",p);to()||(E["max-age"]="0"),l(_,_h(me,E)),N=!0}return N}},t[Ct]=function(_){a&&a.rm(),a=null},t);return v[so]=v,v}function Ps(r){if(_l===null){_l=!1,!Gn&&gp();try{var e=Gn.v||{};_l=e[mp]!==void 0}catch(t){H(r,2,68,"Cannot access document.cookie - "+or(t),{exception:te(t)})}}return _l}function gh(r){var e={};if(r&&r[q]){var t=ke(r)[Jt](";");R(t,function(n){if(n=ke(n||me),n){var i=dn(n,"=");i===-1?e[n]=null:e[ke(Ho(n,i))]=ke(Cr(n,i+1))}})}return e}function vh(r,e){return se(r[e])?r[e]():null}function _h(r,e){var t=r||me;return ae(e,function(n,i){t+="; "+n+(B(i)?me:"="+i)}),t}function OI(r){var e=me;if(!Gn&&gp(),Gn.v){var t=Gn.v[mp]||me;fh!==t&&(lh=gh(t),fh=t),e=ke(lh[r]||me)}return e}function ph(r,e){!Gn&&gp(),Gn.v&&(Gn.v[mp]=r+"="+e)}function gl(r){return Ne(r)?!!(mr(r,"CPU iPhone OS 12")||mr(r,"iPad; CPU OS 12")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&mr(r,"Version/")&&mr(r,"Safari")||mr(r,"Macintosh; Intel Mac OS X 10_14")&&jo(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||mr(r,"Chrome/5")||mr(r,"Chrome/6")||mr(r,"UnrealEngine")&&!mr(r,"Chrome")||mr(r,"UCBrowser/12")||mr(r,"UCBrowser/11")):!1}var dp,aa,sh,uh,mp,vp,ch,pp,so,_l,_p,fh,Gn,lh,ml,PI,hp=Y(()=>{"use strict";d();he();op();oo();Ge();Nn();no();Fn();Tr();sh="toGMTString",uh="toUTCString",mp="cookie",vp="expires",ch="isCookieUseDisabled",pp="disableCookiesUsage",so="_ckMgr",_l=null,_p=null,fh=null,lh={},ml={},PI=(dp={cookieCfg:ip((aa={},aa[Zf]={fb:"cookieDomain",dfVal:eo},aa.path={fb:"cookiePath",dfVal:eo},aa.enabled=Bt,aa.ignoreCookies=Bt,aa.blockedCookies=Bt,aa)),cookieDomain:Bt,cookiePath:Bt},dp[pp]=Bt,dp)});function LI(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){ge(t.fn,[t.arg])})}function uo(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[xe]({fn:n,arg:i}),t.h=t.h||Mt(LI,0,t)):ge(n,[i]))})}var YI,nc,Sp=Y(()=>{"use strict";d();Ur();Zo();he();oo();Ge();Tr();YI={perfEvtsSendAll:!1};nc=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Qe(e,YI);n=a[pn](function(s){t=!!s.cfg.perfEvtsSendAll}),Ce(r,this,function(s){Ye(s,"listeners",{g:function(){return i}}),s[_s]=function(u){i[xe](u)},s[vs]=function(u){for(var c=Me(i,u);c>-1;)i[On](c,1),c=Me(i,u)},s[Ss]=function(u){uo(i,Ss,o,function(c){c[Ss](u)})},s[Zi]=function(u,c){uo(i,Zi,o,function(l){l[Zi](u,c)})},s[Ns]=function(u,c){uo(i,Ns,c?o:null,function(l){l[Ns](u,c)})},s[Mn]=function(u){u&&(t||!u[Mu]())&&uo(i,Mn,null,function(c){u[mn]?Mt(function(){return c[Mn](u)},0):c[Mn](u)})},s[Xf]=function(u){u&&u[q]&&uo(i,Xf,o,function(c){c[Xf](u)})},s[Jf]=function(u){u&&u[Xi]&&uo(i,Jf,o,function(c){c[Jf](u)})},s[Qf]=function(u,c){if(u>0){var l=c||0;uo(i,Qf,o,function(v){v[Qf](u,l)})}},s[Ct]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[fi](),o.h=null,o.cb=[]},l;if(uo(i,"unload",null,function(v){var _=v[Ct](u);_&&(l||(l=[]),l[xe](_))}),l)return Qt(function(v){return Gt(LE(l),function(){c(),v()})});c()}})}return r.__ieDyn=1,r})()});function lr(r,e,t,n,i){if(r){var o=r;if(o[Ts]&&(o=o[Ts]()),o){var a=void 0,s=o[Jo](Np);try{if(a=o.create(e(),n,i),a){if(s&&a[En]&&(a[En](sa[Tp],s),s[Jo]&&s[En])){var u=s[Jo](sa[ic]);u||(u=[],s[En](sa[ic],u)),u[xe](a)}return o[En](Np,a),t(a)}}catch(c){a&&a[En]&&a[En]("exception",c)}finally{a&&o.fire(a),o[En](Np,s)}}}return t()}function Dp(){return UI}var Rs,Tp,ic,UI,sa,oc,Np,El=Y(()=>{"use strict";d();Ur();he();Ge();Tr();Rs="ctx",Tp="ParentContextKey",ic="ChildrenContextKey",UI=null,sa=(function(){function r(e,t,n){var i=this;if(i.start=cr(),i[Mr]=e,i[mn]=n,i[Mu]=function(){return!1},se(t)){var o;Ye(i,"payload",{g:function(){return!o&&se(t)&&(o=t(),t=null),o}})}i[Jo]=function(a){return a?a===r[Tp]||a===r[ic]?i[a]:(i[Rs]||{})[a]:null},i[En]=function(a,s){if(a)if(a===r[Tp])i[a]||(i[Mu]=function(){return!0}),i[a]=s;else if(a===r[ic])i[a]=s;else{var u=i[Rs]=i[Rs]||{};u[a]=s}},i[Vf]=function(){var a=0,s=i[Jo](r[ic]);if(Q(s))for(var u=0;u<s[q];u++){var c=s[u];c&&(a+=c[Ki])}i[Ki]=cr()-i.start,i.exTime=i[Ki]-a,i[Vf]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),oc=(function(){function r(e){this.ctx={},Ce(r,this,function(t){t.create=function(n,i,o){return new sa(n,i,o)},t.fire=function(n){n&&(n[Vf](),e&&se(e[Mn])&&e[Mn](n))},t[En]=function(n,i){if(n){var o=t[Rs]=t[Rs]||{};o[n]=i}},t[Jo]=function(n){return(t[Rs]||{})[n]}})}return r.__ieDyn=1,r})(),Np="CoreUtils.doPerf"});function ac(){var r=ua();return Cr(r,0,8)+"-"+Cr(r,8,12)+"-"+Cr(r,12,16)+"-"+Cr(r,16,20)+"-"+Cr(r,20)}function ua(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=me,t,n=0;n<4;n++)t=Ei(),e+=r[t&15]+r[t>>4&15]+r[t>>8&15]+r[t>>12&15]+r[t>>16&15]+r[t>>20&15]+r[t>>24&15]+r[t>>28&15];var i=r[8+(Ei()&3)|0];return wn(e,0,8)+wn(e,9,4)+"4"+wn(e,13,3)+i+wn(e,16,3)+wn(e,19,12)}var yp=Y(()=>{"use strict";d();he();Tr();nl()});function Ti(r,e,t){return r&&r[q]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function hh(r,e,t){return Ti(r,e)?r:t}function Sh(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[q]<2;)e="0"+e;return e}function Ap(r,e,t,n){var i;return i={},i[$o]=Ti(n,2,xp)?n:Ip,i[Es]=ca(r)?r:ua(),i[hs]=fa(e)?e:Ho(ua(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function sc(r,e){var t;if(!r||(Q(r)&&(r=r[0]||""),!r||!Ne(r)||r[q]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Jt](",");r=n[e>0&&n[q]>e?e:0]}var i=MI.exec(ke(r));return!i||i[1]===xp||i[2]===hl||i[3]===Sl?null:(t={version:(i[1]||me)[At](),traceId:(i[2]||me)[At](),spanId:(i[3]||me)[At]()},t[Ji]=parseInt(i[4],16),t)}function ca(r){return Ti(r,32,hl)}function fa(r){return Ti(r,16,Sl)}function Nl(r){return!(!r||!Ti(r[$o],2,xp)||!Ti(r[Es],32,hl)||!Ti(r[hs],16,Sl)||!Ti(Sh(r[Ji]),2))}function bp(r){return Nl(r)?(r[Ji]&Eh)===Eh:!1}function Cp(r){if(r){var e=Sh(r[Ji]);Ti(e,2)||(e="01");var t=r[$o]||Ip;return t!=="00"&&t!=="ff"&&(t=Ip),"".concat(t.toLowerCase(),"-").concat(hh(r.traceId,32,hl).toLowerCase(),"-").concat(hh(r.spanId,16,Sl).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Pp(r){var e="traceparent",t=sc($_(e),r);return t||(t=sc(q_(e),r)),t}var MI,Ip,xp,hl,Sl,Eh,Rp=Y(()=>{"use strict";d();he();Ge();yp();no();Tr();MI=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,Ip="00",xp="ff",hl="00000000000000000000000000000000",Sl="0000000000000000",Eh=1});function Di(r){return FI.get(r,"state",{},!0)}function wp(r,e){for(var t=[],n=null,i=r[Ht](),o;i;){var a=i[Vi]();if(a){n&&n[qi]&&a[wt]&&n[qi](a),o=Di(a);var s=!!o[bt];a[bt]&&(s=a[bt]()),s||t[xe](a),n=a,i=i[Ht]()}}R(t,function(u){var c=r[ir]();u[li](r.getCfg(),c,e,r[Ht]()),o=Di(u),!u[ir]&&!o[ir]&&(o[ir]=c),o[bt]=!0,delete o[kt]})}function Tl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[wt];e[wt]?n=i?e[ra]-t[ra]:1:i&&(n=-1)}else n=e?1:-1;return n})}function Nh(r){var e={};return{getName:function(){return e[Mr]},setName:function(t){r&&r.setName(t),e[Mr]=t},getTraceId:function(){return e[Es]},setTraceId:function(t){r&&r.setTraceId(t),ca(t)&&(e[Es]=t)},getSpanId:function(){return e[hs]},setSpanId:function(t){r&&r.setSpanId(t),fa(t)&&(e[hs]=t)},getTraceFlags:function(){return e[Ji]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[Ji]=t}}}var FI,Op=Y(()=>{"use strict";d();he();Ge();xs();Tr();Rp();FI=il("plugin")});function HI(r,e,t){for(;r;){if(r[Vi]()===t)return r;r=r[Ht]()}return co([t],e.config||{},e)}function Yp(r,e,t,n){var i=null,o=[];e||(e=Qe({},null,t[ze])),n!==null&&(i=n?HI(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return Si(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:l,getConfig:v,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(g){i=g},iterate:_,onComplete:s}};function s(g,p){for(var N=[],E=2;E<arguments.length;E++)N[E-2]=arguments[E];g&&o[xe]({func:g,self:Te(p)?a.ctx:p,args:N})}function u(){var g=i;if(i=g?g[Ht]():null,!g){var p=o;p&&p[q]>0&&(R(p,function(N){try{N.func.call(N.self,N.args)}catch(E){H(t[ze],2,73,"Unexpected Exception during onComplete - "+te(E))}}),o=[])}return g}function c(g,p){var N=null,E=e.cfg;if(E&&g){var x=E[di];!x&&p&&(x={}),E[di]=x,x=e.ref(E,di),x&&(N=x[g],!N&&p&&(N={}),x[g]=N,N=e.ref(x,g))}return N}function l(g,p){var N=c(g,!0);return p&&ae(p,function(E,x){if(B(N[E])){var T=e.cfg[E];(T||!B(T))&&(N[E]=T)}Xu(e,N,E,x)}),e[_n](N,p)}function v(g,p,N){N===void 0&&(N=!1);var E,x=c(g,!1),T=e.cfg;return x&&(x[p]||!B(x[p]))?E=x[p]:(T[p]||!B(T[p]))&&(E=T[p]),E||!B(E)?E:N}function _(g){for(var p;p=a._next();){var N=p[Vi]();N&&g(N)}}return a}function mt(r,e,t,n){var i=Qe(e),o=Yp(r,i,t,n),a=o.ctx;function s(c){var l=o._next();return l&&l[wt](c,a),!l}function u(c,l){return c===void 0&&(c=null),Q(c)&&(c=co(c,i.cfg,t,l)),mt(c||a[Ht](),i.cfg,t,l)}return a[Rr]=s,a[Ln]=u,a}function ws(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[Ct](o,u),!c}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),ws(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function uc(r,e,t){var n=Qe(e.config),i=Yp(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){se(c[qo])&&c[qo](o,u)})}function s(u,c){return u===void 0&&(u=null),Q(u)&&(u=co(u,n.cfg,e,c)),uc(u||o[Ht](),e,c)}return o[Rr]=a,o[Ln]=s,o}function co(r,e,t,n){var i=null,o=!n;if(Q(r)&&r[q]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&se(s[wt])){var u=GI(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?co([n],e,t):i}function GI(r,e,t){var n=null,i=se(r[wt]),o=se(r[qi]),a;r?a=r[Yn]+"-"+r[ra]+"-"+yh++:a="Unknown-0-"+yh++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:l,unload:v,update:_,_id:a,_setNext:function(g){n=g}};function u(){var g;return r&&se(r[Dh])&&(g=r[Dh]()),g||(g=mt(s,e,t)),g}function c(g,p,N,E,x){var T=!1,I=r?r[Yn]:kI,w=g[Th];return w||(w=g[Th]={}),g.setNext(n),r&&lr(g[ir](),function(){return I+":"+N},function(){w[a]=!0;try{var U=n?n._id:me;U&&(w[U]=!1),T=p(g)}catch(W){var j=n?w[n._id]:!0;j&&(T=!0),(!n||!j)&&H(g[Pt](),1,73,"Plugin ["+I+"] failed during "+N+" - "+te(W)+", run flags: "+te(w))}},E,x),T}function l(g,p){p=p||u();function N(E){if(!r||!i)return!1;var x=Di(r);return x[kt]||x[Hu]?!1:(o&&r[qi](n),r[wt](g,E),!0)}c(p,N,"processTelemetry",function(){return{item:g}},!g.sync)||p[Rr](g)}function v(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&(x[ir]=null,x[kt]=!0,x[bt]=!1,r[kt]&&r[kt](g,p)===!0&&(E=!0))}return E}c(g,N,"unload",function(){},p[mn])||g[Rr](p)}function _(g,p){function N(){var E=!1;if(r){var x=Di(r),T=r[ir]||x[ir];r&&(!T||T===g.core())&&!x[kt]&&r[qo]&&r[qo](g,p)===!0&&(E=!0)}return E}c(g,N,"update",function(){},!1)||g[Rr](p)}return qt(s)}var kI,Th,Dh,yh,Lp,Dl=Y(()=>{"use strict";d();he();Q_();oo();Ge();Nn();Fn();Tr();El();Op();kI="TelemetryPluginChain",Th="_hasRun",Dh="_getTelCtx",yh=0;Lp=(function(){function r(e,t,n,i){var o=this,a=mt(e,t,n,i);jt(o,a,$r(a))}return r})()});function la(){var r=[];function e(n){n&&r[xe](n)}function t(n,i){R(r,function(o){try{o(n,i)}catch(a){H(n[Pt](),2,73,"Unexpected error calling unload handler - "+te(a))}}),r=[]}return{add:e,run:t}}var yl=Y(()=>{"use strict";d();he();Ge();Nn()});function Up(r,e){cc=r,fc=e}function lc(){var r=[];function e(n){var i=r;r=[],R(i,function(o){try{(o.rm||o.remove).call(o)}catch(a){H(n,2,73,"Unloading:"+te(a))}}),cc&&i[q]>cc&&(fc?fc("doUnload",i):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(ln(r,n),cc&&r[q]>cc&&(fc?fc("Add",r):H(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:e,add:t}}var cc,fc,Il=Y(()=>{"use strict";d();he();Ge();Nn()});var Mp,fo,BI,yi,Fp=Y(()=>{"use strict";d();Ur();he();oo();Ge();Nn();Fn();Tr();Dl();yl();Il();fo="getPlugin",BI=(Mp={},Mp[di]={isVal:eo,v:{}},Mp),yi=(function(){function r(){var e=this,t,n,i,o,a;c(),Ce(r,e,function(l){l[li]=function(v,_,g,p){u(v,_,p),t=!0},l[kt]=function(v,_){var g,p=l[ir];if(!p||v&&p!==v[ir]())return;var N,E=!1,x=v||ws(null,p,i&&i[fo]?i[fo]():i),T=_||(g={reason:0},g[mn]=!1,g);function I(){E||(E=!0,o.run(x,_),a.run(x[Pt]()),N===!0&&x[Rr](T),c())}return!l[$i]||l[$i](x,T,I)!==!0?I():N=!0,N},l[qo]=function(v,_){var g=l[ir];if(!g||v&&g!==v[ir]())return;var p,N=!1,E=v||uc(null,g,i&&i[fo]?i[fo]():i),x=_||{reason:0};function T(){N||(N=!0,u(E.getCfg(),E.core(),E[Ht]()))}return!l._doUpdate||l._doUpdate(E,x,T)!==!0?T():p=!0,p},vi(l,"_addUnloadCb",function(){return o},"add"),vi(l,"_addHook",function(){return a},"add"),Ye(l,"_unloadHooks",{g:function(){return a}})}),e[Pt]=function(l){return s(l)[Pt]()},e[bt]=function(){return t},e.setInitialized=function(l){t=l},e[qi]=function(l){i=l},e[Rr]=function(l,v){v?v[Rr](l):i&&se(i[wt])&&i[wt](l,null)},e._getTelCtx=s;function s(l){l===void 0&&(l=null);var v=l;if(!v){var _=n||mt(null,{},e[ir]);i&&i[fo]?v=_[Ln](null,i[fo]):v=_[Ln](null,i)}return v}function u(l,v,_){Qe(l,BI,Si(v)),!_&&v&&(_=v[Gf]()[Ht]());var g=i;i&&i[fo]&&(g=i[fo]()),e[ir]=v,n=mt(_,l,v,g)}function c(){t=!1,e[ir]=null,n=null,i=null,a=lc(),o=la()}}return r.__ieDyn=1,r})()});function jI(r,e,t){var n={id:e,fn:t};ln(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[On](a,1),-1})}};return i}function zI(r,e,t){for(var n=!1,i=r[q],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[zi](null,[e])===!1){n=!0;break}}catch(s){H(t,2,64,"Telemetry initializer failed: "+or(s),{exception:te(s)},!0)}}return!n}var Ih,xh=Y(()=>{"use strict";d();xt();Ur();he();Ge();Fp();Nn();Fn();Tr();Ih=(function(r){It(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),Ce(e,t,function(a,s){a.addTelemetryInitializer=function(u){return jI(i,n++,u)},a[wt]=function(u,c){zI(i,u,c?c[Pt]():a[Pt]())&&a[Rr](u,c)},a[$i]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(yi)});function qI(r,e){return new oc(e)}function XI(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(B(s)||B(s[li]))&&hr(Ph);var u=s[ra],c=s[Yn];s&&u&&(B(a[u])?a[u]=c:pt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[xe](s):o[xe](s)}),n={},n[ir]=i,n[Qi]=o,n}function bh(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function Hp(r,e,t,n){t&&ae(t,function(i,o){n&&qr(o)&&qr(e[i])&&Hp(r,e[i],o,n),n&&qr(o)&&qr(e[i])?Hp(r,e[i],o,n):r.set(e,i,o)})}function Ch(r,e){var t=null,n=-1;return R(r,function(i,o){if(i.w===e)return t=i,n=o,-1}),{i:n,l:t}}function JI(r,e){var t=Ch(r,e).l;return t||(t={w:e,rm:function(){var n=Ch(r,e);n.i!==-1&&r[On](n.i,1)}},r[xe](t)),t}function QI(r,e,t){R(e,function(n){var i=Fr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function ZI(r,e,t,n){return e.add(r[pn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[vs](n),n=null),t&&!n&&o!==!0&&(n=ih(i.cfg),t[_s](n))})),n}function ex(r){return Ye({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var lo,Ph,VI,Ah,KI,WI,$I,kp,Ii,Rh=Y(()=>{"use strict";d();xt();Ur();Zo();he();oo();S_();Ge();rp();np();hp();xs();up();Nn();Fn();Tr();Sp();El();Dl();Op();xh();yl();Il();Ph="Plugins must provide initialize method",VI="_notificationManager",Ah="SDK is still unloading...",KI="SDK is not initialized",WI=100,$I=5e4,kp=Rn((lo={cookieCfg:{}},lo[ea]={rdOnly:!0,ref:!0,v:[]},lo[Qi]={rdOnly:!0,ref:!0,v:[]},lo[di]={ref:!0,v:{}},lo[qf]=Bt,lo.loggingLevelConsole=0,lo.diagnosticLogInterval=Bt,lo));Ii=(function(){function r(){var e,t,n,i,o,a,s,u,c,l,v,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue;Ce(r,this,function(A){C(),A._getDbgPlgTargets=function(){return[W,i]},A[bt]=function(){return t},A.activeStatus=function(){return G},A._setPendingStatus=function(){G=3},A[li]=function(b,K,ie,X){g&&hr(Ah),A[bt]()&&hr("Core cannot be initialized more than once"),e=Qe(b,kp,ie||A[ze],!1),b=e.cfg,Ve(e[pn](function(Pe){var Fe=Pe.cfg,Je=G===3;if(!Je){fe=Fe.initInMemoMaxSize||WI;var ar=Fe[N_],rt=Fe.endpointUrl;if(B(ar)){U=null,G=Ft[Hf];var tt="Please provide instrumentation key";t?(H(n,1,100,tt),re()):hr(tt);return}var Wt=[];if(vt(ar)?(Wt[xe](ar),U=null):U=ar,vt(rt)?(Wt[xe](rt),Z=null):Z=rt,Wt[q]){Se=!1,G=3;var Yr=eo(Fe.initTimeOut)?Fe.initTimeOut:$I,ni=YE(Wt);F=Mt(function(){F=null,Se||_e()},Yr),Gt(ni,function(O){try{if(Se)return;if(!O.rejected){var M=O[Wo];if(M&&M[q]){var J=M[0];if(U=J&&J[Wo],M[q]>1){var de=M[1];Z=de&&de[Wo]}}U&&(b[N_]=U,b.endpointUrl=Z)}_e()}catch{Se||_e()}})}else _e();var h=Pe.ref(Pe.cfg,di);ae(h,function(O){Pe.ref(h,O)})}})),o=X,I=ZI(e,T,o&&A[Ou](),I),dt(),A[ze]=ie;var oe=b[ea];if(l=[],l[xe].apply(l,Cf(Cf([],K,!1),oe,!1)),v=b[Qi],We(null),(!_||_[q]===0)&&hr("No "+Qi+" available"),v&&v[q]>1){var we=A[Vi]("TeeChannelController");(!we||!we.plugin)&&H(n,1,28,"TeeChannel required")}QI(b,j,n),j=null,t=!0,G===Ft.ACTIVE&&re()},A.getChannels=function(){var b=[];return _&&R(_,function(K){b[xe](K)}),qt(b)},A.track=function(b){lr(A[Ts](),function(){return"AppInsightsCore:track"},function(){b===null&&(Xe(b),hr("Invalid telemetry item")),!b[Mr]&&B(b[Mr])&&(Xe(b),hr("telemetry name required")),b[ps]=b[ps]||U,b[Ki]=b[Ki]||hn(new Date),b.ver=b.ver||"4.0",!g&&A[bt]()&&G===Ft.ACTIVE?Oe()[Rr](b):G!==Ft[Hf]&&i[q]<=fe&&i[xe](b)},function(){return{item:b}},!b.sync)},A[Gf]=Oe,A[Ou]=function(){return o||(o=new nc(e.cfg),A[VI]=o),o},A[_s]=function(b){A.getNotifyMgr()[_s](b)},A[vs]=function(b){o&&o[vs](b)},A.getCookieMgr=function(){return u||(u=Ni(e.cfg,A[ze])),u},A.setCookieMgr=function(b){u!==b&&(hi(u,!1),u=b)},A[Ts]=function(){return a||s||Dp()},A.setPerfMgr=function(b){a=b},A.eventCnt=function(){return i[q]},A.releaseQueue=function(){if(t&&i[q]>0){var b=i;i=[],G===2?R(b,function(K){K[ps]=K[ps]||U,Oe()[Rr](K)}):H(n,2,20,"core init status is not active")}},A[T_]=function(b){return N=b||null,ue=!1,k&&k[fi](),ye(!0)};function _e(){Se=!0,B(U)?(G=Ft[Hf],H(n,1,112,"ikey can't be resolved from promises")):G=Ft.ACTIVE,re()}function re(){t&&(A.releaseQueue(),A[T_]())}function ye(b){if((!k||!k[Wi])&&!ue){var K=b||n&&n.queue[q]>0;K&&(ve||(ve=!0,Ve(e[pn](function(ie){var X=ie.cfg.diagnosticLogInterval;(!X||!(X>0))&&(X=1e4);var oe=!1;k&&(oe=k[Wi],k[fi]()),k=dE(jr,X),k.unref(),k[Wi]=oe}))),k[Wi]=!0)}return k}A[D_]=function(){ue=!0,k&&k[fi](),jr()},jt(A,function(){return p},["addTelemetryInitializer"]),A[Ct]=function(b,K,ie){var X;b===void 0&&(b=!0),t||hr(KI),g&&hr(Ah);var oe=(X={reason:50},X[mn]=b,X.flushComplete=!1,X),we;b&&!K&&(we=Qt(function(Je){K=Je}));var Pe=ws(vr(),A);Pe[Yu](function(){T.run(A[ze]),ll([u,o,n],b,function(){C(),K&&K(oe)})},A);function Fe(Je){oe.flushComplete=Je,g=!0,x.run(Pe,oe),A[D_](),Pe[Rr](oe)}return jr(),Ar(b,Fe,6,ie)||Fe(!1),we},A[Vi]=lt,A.addPlugin=function(b,K,ie,X){if(!b){X&&X(!1),Ue(Ph);return}var oe=lt(b[Yn]);if(oe&&!K){X&&X(!1),Ue("Plugin ["+b[Yn]+"] is already loaded!");return}var we={reason:16};function Pe(ar){l[xe](b),we.added=[b],We(we),X&&X(!0)}if(oe){var Fe=[oe.plugin],Je={reason:2,isAsync:!!ie};Kt(Fe,Je,function(ar){ar?(we.removed=Fe,we.reason|=32,Pe(!0)):X&&X(!1)})}else Pe(!1)},A.updateCfg=function(b,K){K===void 0&&(K=!0);var ie;if(A[bt]()){ie={reason:1,cfg:e.cfg,oldCfg:i_({},e.cfg),newConfig:i_({},b),merge:K},b=ie.newConfig;var X=e.cfg;b[ea]=X[ea],b[Qi]=X[Qi]}e._block(function(oe){var we=oe.cfg;Hp(oe,we,b,K),K||ae(we,function(Pe){$t(b,Pe)||oe.set(we,Pe,Bt)}),oe[_n](we,kp)},!0),e[Ko](),ie&&Be(ie)},A.evtNamespace=function(){return E},A.flush=Ar,A.getTraceCtx=function(b){return w||(w=Nh()),w},A.setTraceCtx=function(b){w=b||null},A.addUnloadHook=Ve,vi(A,"addUnloadCb",function(){return x},"add"),A.onCfgChange=function(b){var K;return t?K=Fr(e.cfg,b,A[ze]):K=JI(j,b),ex(K)},A.getWParam=function(){return Go()||e.cfg.enableWParam?0:-1};function $(){var b={};ne=[];var K=function(ie){ie&&R(ie,function(X){if(X[Yn]&&X[$o]&&!b[X.identifier]){var oe=X[Yn]+"="+X[$o];ne[xe](oe),b[X.identifier]=X}})};K(_),v&&R(v,function(ie){K(ie)}),K(l)}function C(){t=!1,e=Qe({},kp,A[ze]),e.cfg[Bf]=1,Ye(A,"config",{g:function(){return e.cfg},s:function(K){A.updateCfg(K,!1)}}),Ye(A,"pluginVersionStringArr",{g:function(){return ne||$(),ne}}),Ye(A,"pluginVersionString",{g:function(){return V||(ne||$(),V=ne.join(";")),V||me}}),Ye(A,"logger",{g:function(){return n||(n=new ao(e.cfg),e[ze]=n),n},s:function(K){e[ze]=K,n!==K&&(hi(n,!1),n=K)}}),A[ze]=new ao(e.cfg),W=[];var b=A.config[ea]||[];b.splice(0,b[q]),ln(b,W),p=new Ih,i=[],hi(o,!1),o=null,a=null,s=null,hi(u,!1),u=null,c=null,l=[],v=null,_=null,g=!1,N=null,E=Jr("AIBaseCore",!0),x=la(),w=null,U=null,T=lc(),j=[],V=null,ne=null,ue=!1,k=null,ve=!1,G=0,Z=null,fe=null,Se=!1,F=null}function Oe(){var b=mt(vr(),e.cfg,A);return b[Yu](ye),b}function We(b){var K=XI(A[ze],nh,l);c=null,V=null,ne=null,_=(v||[])[0]||[],_=Tl(ln(_,K[Qi]));var ie=ln(Tl(K[ir]),_);W=qt(ie);var X=A.config[ea]||[];X.splice(0,X[q]),ln(X,W);var oe=Oe();_&&_[q]>0&&wp(oe[Ln](_),ie),wp(oe,ie),b&&Be(b)}function lt(b){var K=null,ie=null,X=[];return R(W,function(oe){if(oe[Yn]===b&&oe!==p)return ie=oe,-1;oe.getChannel&&X[xe](oe)}),!ie&&X[q]>0&&R(X,function(oe){if(ie=oe.getChannel(b),!ie)return-1}),ie&&(K={plugin:ie,setEnabled:function(oe){Di(ie)[Hu]=!oe},isEnabled:function(){var oe=Di(ie);return!oe[kt]&&!oe[Hu]},remove:function(oe,we){var Pe;oe===void 0&&(oe=!0);var Fe=[ie],Je=(Pe={reason:1},Pe[mn]=oe,Pe);Kt(Fe,Je,function(ar){ar&&We({reason:32,removed:Fe}),we&&we(ar)})}}),K}function vr(){if(!c){var b=(W||[]).slice();Me(b,p)===-1&&b[xe](p),c=co(Tl(b),e.cfg,A)}return c}function Kt(b,K,ie){if(b&&b[q]>0){var X=co(b,e.cfg,A),oe=ws(X,A);oe[Yu](function(){var we=!1,Pe=[];R(l,function(Je,ar){bh(Je,b)?we=!0:Pe[xe](Je)}),l=Pe,V=null,ne=null;var Fe=[];v&&(R(v,function(Je,ar){var rt=[];R(Je,function(tt){bh(tt,b)?we=!0:rt[xe](tt)}),Fe[xe](rt)}),v=Fe),ie&&ie(we),ye()}),oe[Rr](K)}else ie(!1)}function jr(){if(n&&n.queue){var b=n.queue.slice(0);n.queue[q]=0,R(b,function(K){var ie,X=(ie={},ie[Mr]=N||"InternalMessageId: "+K[ms],ie[ps]=U,ie[Ki]=hn(new Date),ie.baseType=oa.dataType,ie.baseData={message:K[Un]},ie);A.track(X)})}}function Ar(b,K,ie,X){var oe=1,we=!1,Pe=null;X=X||5e3;function Fe(){oe--,we&&oe===0&&(Pe&&Pe[fi](),Pe=null,K&&K(we),K=null)}if(_&&_[q]>0){var Je=Oe()[Ln](_);Je.iterate(function(ar){if(ar.flush){oe++;var rt=!1;ar.flush(b,function(){rt=!0,Fe()},ie)||rt||(b&&Pe==null?Pe=Mt(function(){Pe=null,Fe()},X):Fe())}})}return we=!0,Fe(),!0}function dt(){var b;Ve(e[pn](function(K){var ie=K.cfg.enablePerfMgr;if(ie){var X=K.cfg[qf];(b!==X||!b)&&(X||(X=qI),Gu(K.cfg,qf,X),b=X,s=null),!a&&!s&&se(X)&&(s=X(A,A[Ou]()))}else s=null,b=null}))}function Be(b){var K=uc(vr(),A);K[Yu](ye),(!A._updateHook||A._updateHook(K,b)!==!0)&&K[Rr](b)}function Ue(b){var K=A[ze];K?(H(K,2,73,b),ye()):hr(b)}function Xe(b){var K=A[Ou]();K&&K[Zi]([b],2)}function Ve(b){T.add(b)}})}return r.__ieDyn=1,r})()});function da(r,e){try{if(r&&r!==""){var t=Xr().parse(r);if(t&&t[A_]&&t[A_]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[q])return t}}catch(n){H(e,1,43,"Cannot parse the response. "+(n[Mr]||te(n)),{response:r})}return null}var wh=Y(()=>{"use strict";d();he();Ge();Nn();no()});var Bn,rx,Oh,Gp,va,Yh=Y(()=>{"use strict";d();Ur();Zo();he();Ge();np();Nn();no();Fn();Bn="",rx="NoResponseBody",Oh="&"+rx+"=true",Gp="POST",va=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,l,v,_,g,p,N;Ce(r,this,function(E,x){var T=!0;Se(),E[li]=function(F,k){i=k,n&&H(i,1,28,"Sender is already initialized"),E.SetConfig(F),n=!0},E._getDbgPlgTargets=function(){return[n,o,s,t]},E.SetConfig=function(F){try{if(a=F.senderOnCompleteCallBack||{},s=!!F.disableCredentials,u=F.fetchCredentials,o=!!F.isOneDs,t=!!F.enableSendPromise,l=!!F.disableXhr,v=!!F.disableBeacon,_=!!F.disableBeaconSync,N=F.timeWrapper,p=!!F.addNoResponse,g=!!F.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var k=ia();k&&k.protocol&&k.protocol[At]()==="file:"&&(T=!1)}return!0}catch{}return!1},E.getSyncFetchPayload=function(){return e},E.getSenderInst=function(F,k){return F&&F[q]?j(F,k):null},E.getFallbackInst=function(){return c},E[$i]=function(F,k){Se()};function I(F,k){W(k,200,{},F)}function w(F,k){H(i,2,26,"Failed to send telemetry.",{message:F}),W(k,400,{})}function U(F){w("No endpoint url is provided for the batch",F)}function j(F,k){for(var ve,ue=0,A=null,_e=0;A==null&&_e<F[q];)ue=F[_e],!l&&ue===1?Ku()?A=fe:Is()&&(A=G):ue===2&&gi(k)&&(!k||!g)?A=Z:ue===3&&en()&&(k?!_:!v)&&(A=V),_e++;return A?(ve={_transport:ue,_isSync:k},ve[b_]=A,ve):null}function W(F,k,ve,ue){try{F&&F(k,ve,ue)}catch{}}function ne(F,k){var ve=Pr(),ue=F[gs];if(!ue)return U(k),!0;ue=F[gs]+(p?Oh:Bn);var A=F[Xi],_e=o?A:new Blob([A],{type:"text/plain;charset=UTF-8"}),re=ve.sendBeacon(ue,_e);return re}function V(F,k,ve){var ue=F[Xi];try{if(ue)if(ne(F,k))I(Bn,k);else{var A=a&&a.beaconOnRetry;A&&se(A)?A(F,k,ne):(c&&c[b_](F,k,!0),H(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(_e){o&&pt(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(_e)),W(k,o?0:400,{},Bn)}}function G(F,k,ve){var ue,A,_e,re=F[Kf]||{};!ve&&t&&(ue=Qt(function(Oe,We){A=Oe,_e=We})),o&&ve&&F.disableXhrSync&&(ve=!1);var ye=F[gs];if(!ye){U(k),A&&A(!1);return}var $=G_(Gp,ye,T,!0,ve,F[Qo]);o||$[C_]("Content-type","application/json"),R($r(re),function(Oe){$[C_](Oe,re[Oe])}),$.onreadystatechange=function(){o||(C($),$.readyState===4&&A&&A(!0))},$.onload=function(){o&&C($)};function C(Oe){var We=a&&a.xhrOnComplete,lt=We&&se(We);if(lt)We(Oe,k,F);else{var vr=Sn(Oe);W(k,Oe[Xo],mi(Oe,o),vr)}}return $.onerror=function(Oe){W(k,o?$[Xo]:400,mi($,o),o?Bn:_i($)),_e&&_e(Oe)},$.ontimeout=function(){W(k,o?$[Xo]:500,mi($,o),o?Bn:_i($)),A&&A(!1)},$.send(F[Xi]),ue}function Z(F,k,ve){var ue,A=F[gs],_e=F[Xi],re=o?_e:new Blob([_e],{type:"application/json"}),ye,$,C,Oe=new Headers,We=_e[q],lt=!1,vr=!1,Kt=F[Kf]||{},jr=(ue={method:Gp,body:re},ue[tp]=!0,ue);F.headers&&$r(F.headers)[q]>0&&(R($r(Kt),function(Ue){Oe.append(Ue,Kt[Ue])}),jr[Kf]=Oe),u?jr.credentials=u:T&&o&&(jr.credentials="include"),ve&&(jr.keepalive=!0,e+=We,o?F._sendReason===2&&(lt=!0,p&&(A+=Oh)):lt=!0);var Ar=new Request(A,jr);try{Ar[tp]=!0}catch{}if(!ve&&t&&(ye=Qt(function(Ue,Xe){$=Ue,C=Xe})),!A){U(k),$&&$(!1);return}function dt(Ue){W(k,o?0:400,{},o?Bn:Ue)}function Be(Ue,Xe,Ve){var b=Ue[Xo],K=a.fetchOnComplete;K&&se(K)?K(Ue,k,Ve||Bn,Xe):W(k,b,{},Ve||Bn)}try{Gt(fetch(o?A:Ar,o?jr:null),function(Ue){if(ve&&(e-=We,We=0),!vr)if(vr=!0,Ue.rejected)dt(Ue.reason&&Ue.reason[Un]),C&&C(Ue.reason);else{var Xe=Ue[Wo];try{!o&&!Xe.ok?(dt(Xe.statusText),$&&$(!1)):o&&!Xe.body?(Be(Xe,null,Bn),$&&$(!0)):Gt(Xe.text(),function(Ve){Be(Xe,F,Ve[Wo]),$&&$(!0)})}catch(Ve){dt(te(Ve)),C&&C(Ve)}}})}catch(Ue){vr||(dt(te(Ue)),C&&C(Ue))}return lt&&!vr&&(vr=!0,W(k,200,{}),$&&$(!0)),o&&!vr&&F[Qo]>0&&N&&N.set(function(){vr||(vr=!0,W(k,500,{}),$&&$(!0))},F[Qo]),ye}function fe(F,k,ve){var ue=Nr(),A=new XDomainRequest,_e=F[Xi];A.onload=function(){var Oe=Sn(A),We=a&&a.xdrOnComplete;We&&se(We)?We(A,k,F):W(k,200,{},Oe)},A.onerror=function(){W(k,400,{},o?Bn:na(A))},A.ontimeout=function(){W(k,500,{})},A.onprogress=function(){};var re=ue&&ue.location&&ue.location[jf]||"",ye=F[gs];if(!ye){U(k);return}if(!o&&ye.lastIndexOf(re,0)!==0){var $="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";H(i,2,40,". "+$),w($,k);return}var C=o?ye:ye[gn](/^(https?:)/,"");A.open(Gp,C),F[Qo]&&(A[Qo]=F[Qo]),A.send(_e),o&&ve?N&&N.set(function(){A.send(_e)},0):A.send(_e)}function Se(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,l=!1,v=!1,_=!1,g=!1,p=!1,N=null}})}return r.__ieDyn=1,r})()});function kh(r){return r&&r[gn]?r[gn](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,me):r}function bl(r,e){var t;if(e){var n=me;Q(e)?(n=me,R(e,function(o){o=kh(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=kh(e),n&&(n[0]!=="."&&(n="."+n),r=(r||me)+n)}var i=ox.exec(r||me)||[];return t={},t[Rt]=i[1],t.ns=(i[2]||me).replace(tx,".").replace(nx,me)[Jt](".").sort().join("."),t}function Bp(r,e,t){var n=[],i=vc.get(r,xl,{},!1),o=bl(e,t);return ae(i,function(a,s){R(s,function(u){var c;(!o[Rt]||o[Rt]===u.evtName[Rt])&&(!o.ns||o.ns===o.ns)&&n[xe]((c={},c[Mr]=u.evtName[Rt]+(u.evtName.ns?"."+u.evtName.ns:me),c.handler=u[Uu],c))})}),n}function Wh(r,e,t){t===void 0&&(t=!0);var n=vc.get(r,xl,{},t),i=n[e];return i||(i=n[e]=[]),i}function $h(r,e,t,n){r&&e&&e[Rt]&&(r[Fh]?r[Fh](e[Rt],t,n):r[Mh]&&r[Mh](Gh+e[Rt],t))}function ax(r,e,t,n){var i=!1;return r&&e&&e[Rt]&&t&&(r[Uh]?(r[Uh](e[Rt],t,n),i=!0):r[Lh]&&(r[Lh](Gh+e[Rt],t),i=!0)),i}function Hh(r,e,t,n){for(var i=e[q];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&($h(r,o.evtName,o[Uu],o.capture),e[On](i,1))}}function sx(r,e,t){if(e[Rt])Hh(r,Wh(r,e[Rt]),e,t);else{var n=vc.get(r,xl,{});ae(n,function(i,o){Hh(r,o,e,t)}),$r(n)[q]===0&&vc.kill(r,xl)}}function zt(r,e){var t;return e?(Q(e)?t=[r].concat(e):t=[r,e],t=bl("xx",t).ns[Jt](".")):t=r,t}function jn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=bl(e,n);if(a=ax(r,s,t,i),a&&vc.accept(r)){var u=(o={guid:ix++,evtName:s},o[Uu]=t,o.capture=i,o);Wh(r,s.type)[xe](u)}}catch{}return a}function xi(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=bl(e,n),a=!1;sx(r,o,function(s){return o.ns&&!t||s[Uu]===t?(a=!0,!0):!1}),a||$h(r,o,t,i)}catch{}}function jp(r,e,t,n){return n===void 0&&(n=!1),jn(r,e,t,null,n)}function zp(r,e,t,n){n===void 0&&(n=!1),xi(r,e,t,null,n)}function Cl(r,e,t){var n=!1,i=Nr();i&&(n=jn(i,r,e,t),n=jn(i.body,r,e,t)||n);var o=Sr();return o&&(n=jn(o,r,e,t)||n),n}function Pl(r,e,t){var n=Nr();n&&(xi(n,r,e,t),xi(n.body,r,e,t));var i=Sr();i&&xi(i,r,e,t)}function Os(r,e,t,n){var i=!1;return e&&r&&r[q]>0&&R(r,function(o){o&&(!t||Me(t,o)===-1)&&(i=Cl(o,e,n)||i)}),i}function Rl(r,e,t,n){var i=!1;return e&&r&&Q(r)&&(i=Os(r,e,t,n),!i&&t&&t[q]>0&&(i=Os(r,e,null,n))),i}function vo(r,e,t){r&&Q(r)&&R(r,function(n){n&&Pl(n,e,t)})}function _c(r,e,t){return Rl([zh,jh,Al],r,e,t)}function pc(r,e){vo([zh,jh,Al],r,e)}function Ys(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=zt(Vh,t),o=Os([Al],r,e,i);return(!e||Me(e,dc)===-1)&&(o=Os([dc],n,e,i)||o),!o&&e&&(o=Ys(r,null,t)),o}function mc(r,e){var t=zt(Vh,e);vo([Al],r,t),vo([dc],null,t)}function Ls(r,e,t){function n(a){var s=Sr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=zt(Kh,t),o=Os([Bh],r,e,i);return o=Os([dc],n,e,i)||o,!o&&e&&(o=Ls(r,null,t)),o}function gc(r,e){var t=zt(Kh,e);vo([Bh],r,t),vo([dc],null,t)}var Gh,Lh,Uh,Mh,Fh,xl,dc,Al,Bh,jh,zh,Vh,Kh,tx,nx,ix,vc,ox,qh=Y(()=>{"use strict";d();he();Ge();xs();Tr();Gh="on",Lh="attachEvent",Uh="addEventListener",Mh="detachEvent",Fh="removeEventListener",xl="events",dc="visibilitychange",Al="pagehide",Bh="pageshow",jh="unload",zh="beforeunload",Vh=Jr("aiEvtPageHide"),Kh=Jr("aiEvtPageShow"),tx=/\.[\.]+/g,nx=/[\.]+$/,ix=1,vc=il("events"),ox=/^([^.]*)(?:\.(.+)|)/});var Vp,Xh=Y(()=>{"use strict";d();wu();Vp=fr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var $e=Y(()=>{"use strict";d();NE();TE();S_();Rh();Fp();nl();yp();rp();Fn();wh();Yh();he();wu();qh();no();xt();Sp();El();Nn();Dl();Xh();hp();xs();yl();Il();Rp();oo();ul();op()});var zn,Jh,Kp,wl,Ol=Y(()=>{"use strict";d();zn="",Jh="https://browser.events.data.microsoft.com/OneCollector/1.0/",Kp="version",wl="properties"});var Wp,$p,Us,Vn,qp,Ze,_a,Ai,Yl,Ll,Ul,Ml,Ec,Fl=Y(()=>{"use strict";d();Wp="initialize",$p="logger",Us="indexOf",Vn="timings",qp="pollInternalLogs",Ze="value",_a="kind",Ai="length",Yl="processTelemetryStart",Ll="handleField",Ul="rmSanitizer",Ml="rmFieldSanitizer",Ec="canHandle"});function kr(r){return!(r===zn||B(r))}function kl(r){if(r){var e=dn(r,"-");if(e>-1)return Ho(r,e)}return zn}function tS(){return Xp===null&&(Xp=!Te(Uint8Array)&&!dx()&&!ro()),Xp}function Hl(r){return!!(r&&Wr(r)&&r>=1&&r<=4)}function Gl(r,e,t){if(!e&&!kr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||Q(e))e={value:e};else if(n==="object"&&!Zh.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(B(e[Ze])||e[Ze]===zn||!Ne(e[Ze])&&!Wr(e[Ze])&&!Pn(e[Ze])&&!Q(e[Ze]))return null;if(Q(e[Ze])&&!Qp(e[Ze]))return null;if(!B(e[_a])){if(Q(e[Ze])||!hc(e[_a]))return null;e[Ze]=e[Ze].toString()}return e}function Fs(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),lx(t))n===-1&&(n=0),n|=t;else{var i=fx[Kn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function nS(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||zn}function iS(r){r===void 0&&(r="D");var e=ac();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,zn)),e}function pa(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[Ai],c=arguments;for(Pn(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];ae(r,function(v,_){a&&_&&nr(_)?Q(_)?(o[v]=o[v]||[],R(_,function(g,p){g&&nr(g)?o[v][p]=pa(!0,o[v][p],g):o[v][p]=g})):o[v]=pa(!0,o[v],_):o[v]=_})}return o}function hc(r){return r===0||r>0&&r<=13||r===32}function lx(r){return r>=0&&r<=9}function dx(){var r=Pr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Us]("safari")>=0||e[Us]("firefox")>=0)&&e[Us]("chrome")<0)return!0}return!1}function Qp(r){return r[Ai]>0}function Sc(r,e){var t=r;t[Vn]=t[Vn]||{},t[Vn][Yl]=t[Vn][Yl]||{},t[Vn][Yl][e]=Yt()}function Kn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===oi&&(e=4,Q(r)?(e=4096,r[Ai]>0&&(e|=Kn(r[0]))):Zh.call(r,"value")&&(e=8192|Kn(r[Ze])))}return e}function Bl(){return!!le("chrome")}function oS(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,l){try{u[c]=l}catch{}}var s=new XMLHttpRequest;return n&&a(s,ux,n),t&&a(s,Qh,t),s.open(r,e,!i),t&&a(s,Qh,t),!i&&o&&a(s,cx,o),s}function _o(r){return r>0}var bi,Jp,Ms,Zh,ux,Qh,cx,fx,Xp,eS,rS,Yt,jl=Y(()=>{"use strict";d();$e();xt();he();Ol();Fl();Jp="4.3.4",Ms="1DS-Web-JS-"+Jp,Zh=Eu.hasOwnProperty,ux="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Qh="withCredentials",cx="timeout",fx=(bi={},bi[0]=0,bi[2]=6,bi[1]=1,bi[3]=7,bi[4098]=6,bi[4097]=1,bi[4099]=7,bi),Xp=null,eS=Go(),rS=as();Yt=Cu});function _x(r){return r&&(!r.getProperty||!r.setProperty)&&hr("Invalid property storage override passed."),!0}var vx,aS,sS=Y(()=>{"use strict";d();xt();Ur();$e();he();Ol();jl();Fl();vx=Rn({endpointUrl:Jh,propertyStorageOverride:{isVal:_x}});aS=(function(r){It(e,r);function e(){var t=r.call(this)||this;return Ce(e,t,function(n,i){n[Wp]=function(o,a,s,u){lr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Wp](Qe(o,vx,s||n[$p],!1).cfg,a,s,u)}catch(v){var c=n[$p],l=te(v);l[Us]("channels")!==-1&&(l+=`
3
+ - Channels must be provided through config.channels only!`),H(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){lr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[Vn]=a[Vn]||{},a[Vn].trackStart=Yt(),Hl(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Ms;var u=a.baseData=a.baseData||{};u[wl]=u[wl]||{};var c=u[wl];c[Kp]=c[Kp]||n.pluginVersionString||zn}i.track(a)},function(){return{item:o}},!o.sync)},n[qp]=function(o){return i[qp](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(Ii)});var uS,cS,fS,lS,dS,vS=Y(()=>{"use strict";d();$e();uS=fr({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),cS=fr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),fS=fr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),lS=fr({Normal:1,Critical:2}),dS=fr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var _S,pS=Y(()=>{"use strict";d();$e();he();Ol();jl();Fl();_S=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(l,v){var _,g=n[l];if(g&&(_=g[v]),!_&&_!==null){if(Ne(l)&&Ne(v))if(o[Ai]>0){for(var p=0;p<o[Ai];p++)if(o[p][Ll](l,v)){_={canHandle:!0,fieldHandler:o[p]};break}}else i[Ai]===0&&(_={canHandle:!0});if(!_&&_!==null){_=null;for(var p=0;p<i[Ai];p++)if(i[p][Ll](l,v)){_={canHandle:!0,handler:i[p],fieldHandler:null};break}}g||(g=n[l]={}),g[v]=_}return _}t.clearCache=function(){n={}},t.addSanitizer=function(l){l&&(r_(i,l)||i.push(l),n={})},t.addFieldSanitizer=function(l){l&&(r_(o,l)||o.push(l),n={})},t[Ul]=function(l){if(l){var v=Me(i,l);v!==-1&&(i.splice(v,1),n={}),R(i,function(_){_&&_[Ul]&&_[Ul](l)})}},t[Ml]=function(l){if(l){var v=Me(o,l);v!==-1&&(o.splice(v,1),n={}),R(i,function(_){_&&_[Ml]&&_[Ml](l)})}},t.isEmpty=function(){return cs(i)+cs(o)===0},t[Ll]=function(l,v){var _=a(l,v);return _?_[Ec]:!1},t[Ze]=function(l,v,_,g){var p=a(l,v);if(p&&p[Ec]){if(!p||!p[Ec])return null;if(p.handler)return p.handler[Ze](l,v,_,g);if(!Ne(v)||B(_)||_===zn)return null;var N=null,E=Kn(_);if((E&8192)===8192){var x=E&-8193;if(N=_,!kr(N[Ze])||x!==1&&x!==2&&x!==3&&(x&4096)!==4096)return null}else E===1||E===2||E===3||(E&4096)===4096?N=u(l,v,_):E===4&&(N=u(l,v,g?JSON.stringify(_):_));if(N)return s(p,l,v,E,N,g)}return null},t.property=function(l,v,_,g){var p=a(l,v);if(!p||!p[Ec]||!Ne(v)||B(_)||!kr(_[Ze]))return null;var N=Kn(_[Ze]);return N===0?null:s(p,l,v,N,_,g)};function s(l,v,_,g,p,N){if(l.handler)return l.handler.property(v,_,p,N);if(!B(p[_a])){if((g&4096)===4096||!hc(p[_a]))return null;p[Ze]=p[Ze].toString()}return c(l.fieldHandler,v,_,g,p)}function u(l,v,_){return kr(_)?{value:_}:null}function c(l,v,_,g,p){if(p&&l){var N=l.getSanitizer(v,_,g,p[_a],p.propertyType);if(N)if(g===4){var E={},x=p[Ze];ae(x,function(I,w){var U=v+"."+_;if(kr(w)){var j=u(U,I,w);j=c(l,U,I,Kn(w),j),j&&(E[I]=j[Ze])}}),p[Ze]=E}else{var T={path:v,name:_,type:g,prop:p,sanitizer:t};p=N.call(t,T)}}return p}}return r.getFieldType=Kn,r})()});var mS={};df(mS,{ActiveStatus:()=>Ft,AppInsightsCore:()=>aS,BaseTelemetryPlugin:()=>yi,DiagnosticLogger:()=>ao,EventLatency:()=>cS,EventPersistence:()=>lS,EventPropertyType:()=>fS,EventsDiscardedReason:()=>vn,FullVersionString:()=>Ms,InternalAppInsightsCore:()=>Ii,LoggingSeverity:()=>Vp,MinChannelPriorty:()=>E_,NotificationManager:()=>nc,PerfEvent:()=>sa,PerfManager:()=>oc,ProcessTelemetryContext:()=>Lp,SenderPostManager:()=>va,TraceLevel:()=>dS,Undefined:()=>bn,ValueKind:()=>uS,ValueSanitizer:()=>_S,Version:()=>Jp,_InternalLogMessage:()=>oa,__getRegisteredEvents:()=>Bp,_appendHeader:()=>Ds,_getAllResponseHeaders:()=>mi,_logInternalMessage:()=>lp,_testHookMaxUnloadHooksCb:()=>Up,_throwInternal:()=>H,_warnToConsole:()=>pt,addEventHandler:()=>Cl,addEventListeners:()=>Rl,addPageHideEventListener:()=>Ys,addPageShowEventListener:()=>Ls,addPageUnloadEventListener:()=>_c,areCookiesSupported:()=>Ps,arrForEach:()=>R,arrIndexOf:()=>Me,arrMap:()=>si,arrReduce:()=>bu,attachEvent:()=>jp,blockDynamicConversion:()=>Qu,convertAllHeadersToMap:()=>tl,cookieAvailable:()=>Ps,createCookieMgr:()=>Ni,createDynamicConfig:()=>Qe,createEnumStyle:()=>fr,createGuid:()=>iS,createProcessTelemetryContext:()=>mt,createTraceParent:()=>Ap,createUniqueNamespace:()=>Jr,createUnloadHandlerContainer:()=>la,dateNow:()=>cr,detachEvent:()=>zp,disallowsSameSiteNone:()=>gl,doPerf:()=>lr,dumpObj:()=>te,eventOff:()=>xi,eventOn:()=>jn,extend:()=>pa,findW3cTraceParent:()=>Pp,forceDynamicConversion:()=>ep,formatErrorMessageXdr:()=>na,formatErrorMessageXhr:()=>_i,formatTraceParent:()=>Cp,generateW3CId:()=>ua,getCommonSchemaMetaData:()=>Fs,getConsole:()=>Bu,getCookieValue:()=>nS,getCrypto:()=>ju,getDocument:()=>Sr,getDynamicConfigHandler:()=>Ju,getExceptionName:()=>or,getFieldValueType:()=>Kn,getGlobal:()=>_t,getGlobalInst:()=>le,getHistory:()=>If,getIEVersion:()=>Vu,getISOString:()=>hn,getJSON:()=>Xr,getLocation:()=>ia,getMsCrypto:()=>zu,getNavigator:()=>Pr,getPerformance:()=>Bo,getResponseText:()=>Sn,getSetValue:()=>Gu,getTenantId:()=>kl,getTime:()=>Yt,getWindow:()=>Nr,hasDocument:()=>Go,hasHistory:()=>Zv,hasJSON:()=>kn,hasNavigator:()=>xu,hasOwnProperty:()=>br,hasWindow:()=>as,isArray:()=>Q,isArrayValid:()=>Qp,isBeaconsSupported:()=>en,isBoolean:()=>Pn,isChromium:()=>Bl,isDate:()=>Tf,isDocumentObjectAvailable:()=>eS,isError:()=>Fo,isFetchSupported:()=>gi,isFunction:()=>se,isGreaterThanZero:()=>_o,isIE:()=>to,isLatency:()=>Hl,isNotTruthy:()=>Kv,isNullOrUndefined:()=>B,isNumber:()=>Wr,isObject:()=>nr,isReactNative:()=>ro,isSampledFlag:()=>bp,isString:()=>Ne,isTruthy:()=>cn,isTypeof:()=>Vv,isUint8ArrayAvailable:()=>tS,isUndefined:()=>Te,isValidSpanId:()=>fa,isValidTraceId:()=>ca,isValidTraceParent:()=>Nl,isValueAssigned:()=>kr,isValueKind:()=>hc,isWindowObjectAvailable:()=>rS,isXhrSupported:()=>Is,mergeEvtNamespace:()=>zt,newGuid:()=>ac,newId:()=>qu,normalizeJsName:()=>ta,objDefineAccessors:()=>qv,objForEachKey:()=>ae,objFreeze:()=>qt,objKeys:()=>$r,objSeal:()=>Xv,onConfigChange:()=>Fr,openXhr:()=>oS,optimizeObject:()=>Ot,parseResponse:()=>da,parseTraceParent:()=>sc,perfNow:()=>Cu,prependTransports:()=>pi,proxyAssign:()=>k_,proxyFunctionAs:()=>vi,proxyFunctions:()=>jt,random32:()=>Ei,randomValue:()=>X_,removeEventHandler:()=>Pl,removeEventListeners:()=>vo,removePageHideEventListener:()=>mc,removePageShowEventListener:()=>gc,removePageUnloadEventListener:()=>pc,safeGetCookieMgr:()=>Ep,safeGetLogger:()=>Si,sanitizeProperty:()=>Gl,setEnableEnvMocks:()=>W_,setProcessTelemetryTimings:()=>Sc,setValue:()=>Zt,strContains:()=>mr,strEndsWith:()=>jo,strFunction:()=>es,strObject:()=>oi,strPrototype:()=>sn,strStartsWith:()=>fs,strTrim:()=>ke,strUndefined:()=>bn,throwError:()=>hr,toISOString:()=>hn,useXDomainRequest:()=>Ku});var ma=Y(()=>{"use strict";d();sS();vS();pS();$e();jl()});var ga,zl,Vl,Zp=Y(()=>{"use strict";d();ga="REAL_TIME",zl="NEAR_REAL_TIME",Vl="BEST_EFFORT"});var Tn,Kl,gS,em,ES,hS,rm,Wl,Nc,ks,SS,NS,TS,$l,tm,ql,Xl,Jl,Tc,nm,im,DS,Hs,om,Ql,Dc=Y(()=>{"use strict";d();Tn="",Kl="drop",gS="send",em="requeue",ES="rspFail",hS="oth",rm="no-cache, no-store",Wl="application/x-json-stream",Nc="cache-control",ks="content-type",SS="kill-tokens",NS="kill-duration",TS="time-delta-millis",$l="client-version",tm="client-id",ql="time-delta-to-apply-millis",Xl="upload-time",Jl="apikey",Tc="AuthMsaDeviceTicket",nm="WebAuthToken",im="AuthXToken",DS="NoResponseBody",Hs="msfpc",om="trace",Ql="user"});var yc,Zl,ed,rd,Ic,Ae,Wn,Vt,dr,$n,wr,qn,Ea,td,ha,nd,Sa,id,od,yS,am,sm,IS,xS,ad,um,cm,AS,bS,fm,lm,dm,CS,sd,ud,cd,xc,vm,Dn,Gs,_m,ot,Lt,Ac,bc,Bs,fd,Cc,PS,js,ld,dd,zs,pm,Pc,vd,_d,Vs,RS,pd,md,gd,Rc,wS,OS,mm,gm,YS,LS,US,Ed,wc,po,Na,Ks=Y(()=>{"use strict";d();yc="allowRequestSending",Zl="firstRequestSent",ed="shouldAddClockSkewHeaders",rd="getClockSkewHeaderValue",Ic="setClockSkew",Ae="length",Wn="concat",Vt="iKey",dr="count",$n="events",wr="push",qn="split",Ea="splice",td="toLowerCase",ha="hdrs",nd="useHdrs",Sa="initialize",id="setTimeoutOverride",od="clearTimeoutOverride",yS="payloadPreprocessor",am="overrideEndpointUrl",sm="avoidOptions",IS="disableEventTimings",xS="stringifyObjects",ad="enableCompoundKey",um="disableXhrSync",cm="disableFetchKeepAlive",AS="addNoResponse",bS="excludeCsMetaData",fm="useSendBeacon",lm="fetchCredentials",dm="alwaysUseXhrOverride",CS="unloadTransports",sd="serializeOfflineEvt",ud="getOfflineRequestDetails",cd="createPayload",xc="createOneDSPayload",vm="payloadBlob",Dn="headers",Gs="_thePayload",_m="urlString",ot="batches",Lt="sendType",Ac="addHeader",bc="canSendRequest",Bs="sendQueuedRequests",fd="isCompletelyIdle",Cc="setUnloading",PS="isTenantKilled",js="resume",ld="sendSynchronousBatch",dd="_transport",zs="getWParam",pm="isBeacon",Pc="timings",vd="isTeardown",_d="isSync",Vs="data",RS="timeout",pd="_sendReason",md="setKillSwitchTenants",gd="_backOffTransmission",Rc="identifier",wS="disableOptimizeObj",OS="ignoreMc1Ms0CookieProcessing",mm="eventsLimitInMem",gm="autoFlushEventsLimit",YS="disableAutoBatchFlushLimit",LS="overrideInstrumentationKey",US="disableTelemetry",Ed="baseData",wc="sendAttempt",po="latency",Na="sync"});function FS(r){var e=(r.ext||{}).intweb;return e&&kr(e[Hs])?e[Hs]:null}function MS(r){for(var e=null,t=0;e===null&&t<r[Ae];t++)e=FS(r[t]);return e}var mo,hd=Y(()=>{"use strict";d();ma();Dc();Ks();mo=(function(){function r(e,t){var n=t?[][Wn](t):[],i=this,o=MS(n);i[Vt]=function(){return e},i.Msfpc=function(){return o||Tn},i[dr]=function(){return n[Ae]},i[$n]=function(){return n},i.addEvent=function(a){return a?(n[wr](a),o||(o=FS(a)),!0):!1},i[qn]=function(a,s){var u;if(a<n[Ae]){var c=n[Ae]-a;B(s)||(c=s<c?s:c),u=n[Ea](a,c),o=MS(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var kS,HS=Y(()=>{"use strict";d();Ur();Ks();kS=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;Ce(r,this,function(a){a[yc]=function(){return e},a[Zl]=function(){n&&(n=!1,o||(e=!1))},a[ed]=function(){return t},a[rd]=function(){return i},a[Ic]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var px,GS,BS=Y(()=>{"use strict";d();Ur();ma();Ks();px=1e3,GS=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[wr](ke(o))}),i}Ce(r,this,function(n){n[md]=function(i,o){if(i&&o)try{var a=t(i[qn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*px,u=0;u<a[Ae];++u)e[a[u]]=cr()+s}catch{return[]}return[]},n[PS]=function(i){var o=e,a=ke(i);return o[a]!==void 0&&o[a]>cr()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function zS(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function Sd(r){var e=0,t=jS*mx,n=jS*gx,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,Ex)}var mx,gx,jS,Ex,Em=Y(()=>{"use strict";d();mx=.8,gx=1.2,jS=3e3,Ex=6e5});function Dx(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[VS];a||(a=e[VS]={f:{}});var s=a[Nd];if(s||(s=a[Nd]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var l=s[c][Nd];l||(l=s[c][Nd]={}),s=l}s=s[n]={},Q(i.value)?s.a={t:o}:s.t=o}}}var hx,Sx,KS,WS,Nx,VS,Nd,Tx,$S,qS=Y(()=>{"use strict";d();Ur();ma();hd();Dc();he();hx=20,Sx=3984588,KS=65e3,WS=2e6,Nx=Math.min(WS,KS),VS="metadata",Nd="f",Tx=/\./,$S=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",l=!!i,v=!0,_=t,g={},p=!!a,N=o||Fs;Ce(r,this,function(E){E.createPayload=function(I,w,U,j,W,ne){return{apiKeys:[],payloadBlob:Tn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:w,isSync:U,isBeacon:j,sendType:ne,sendReason:W}},E.appendPayload=function(I,w,U){var j=I&&w&&!I.overflow;return j&&lr(e,function(){return"Serializer:appendPayload"},function(){for(var W=w.events(),ne=I.payloadBlob,V=I.numEvents,G=!1,Z=[],fe=[],Se=I.isBeacon,F=Se?KS:Sx,k=Se?Nx:WS,ve=0,ue=0;ve<W.length;){var A=W[ve];if(A){if(V>=U){I.overflow=w.split(ve);break}var _e=E.getEventBlob(A);if(_e&&_e.length<=k){var re=_e.length,ye=ne.length;if(ye+re>F){I.overflow=w.split(ve);break}ne&&(ne+=`
4
+ `),ne+=_e,ue++,ue>hx&&(wn(ne,0,1),ue=0),G=!0,V++}else _e?Z.push(A):fe.push(A),W.splice(ve,1),ve--}ve++}if(Z.length>0&&I.sizeExceed.push(mo.create(w.iKey(),Z)),fe.length>0&&I.failedEvts.push(mo.create(w.iKey(),fe)),G){I.batches.push(w),I.payloadBlob=ne,I.numEvents=V;var $=w.iKey();Me(I.apiKeys,$)===-1&&I.apiKeys.push($)}},function(){return{payload:I,theBatch:{iKey:w.iKey(),evts:w.events()},max:U}}),j},E.getEventBlob=function(I){try{return lr(e,function(){return"Serializer.getEventBlob"},function(){var w={};w.name=I.name,w.time=I.time,w.ver=I.ver,w.iKey="o:"+kl(I.iKey);var U={},j;p||(j=function(G,Z,fe){Dx(N,U,G,Z,fe)});var W=I[c];W&&(w[c]=U,ae(W,function(G,Z){var fe=U[G]={};T(Z,fe,"ext."+G,!0,null,null,!0)}));var ne=w[s]={};ne.baseType=I.baseType;var V=ne[u]={};return T(I.baseData,V,u,!1,[u],j,v),T(I.data,ne,s,!1,[],j,v),JSON.stringify(w)},function(){return{item:I}})}catch{return null}};function x(I,w){var U=g[I];return U===void 0&&(I.length>=7&&(U=fs(I,"ext.metadata")||fs(I,"ext.web")),g[I]=U),U}function T(I,w,U,j,W,ne,V){ae(I,function(G,Z){var fe=null;if(Z||kr(Z)){var Se=U,F=G,k=W,ve=w;if(l&&!j&&Tx.test(G)){var ue=G.split("."),A=ue.length;if(A>1){k&&(k=k.slice());for(var _e=0;_e<A-1;_e++){var re=ue[_e];ve=ve[re]=ve[re]||{},Se+="."+re,k&&k.push(re)}F=ue[A-1]}}var ye=j&&x(Se,F);if(!ye&&_&&_.handleField(Se,F)?fe=_.value(Se,F,Z,n):fe=Gl(F,Z,n),fe){var $=fe.value;if(ve[F]=$,ne&&ne(k,F,fe),V&&typeof $=="object"&&!Q($)){var C=k;C&&(C=C.slice(),C.push(F)),T(Z,$,Se+"."+F,j,C,ne,V)}}}})}})}return r.__ieDyn=1,r})()});function Ws(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return lE([r,e],t,n,i)}}}var hm=Y(()=>{"use strict";d();he()});function Da(r,e,t){Nm[r]=e,t!==!1&&(Tm[e]=r)}function Td(r,e){var t=!1;if(r&&e){var n=$r(r);if(n&&n[Ae]>0)for(var i=e[td](),o=0;o<n[Ae];o++){var a=n[o];if(a&&br(e,a)&&a[td]()===i){t=!0;break}}}return t}function $s(r,e,t,n){e&&t&&t[Ae]>0&&(n&&Nm[e]?(r[ha][Nm[e]]=t,r[nd]=!0):r.url+="&"+e+"="+t)}function Ax(r,e,t){for(var n=0;n<r[Ae];n++)if(r[n].name===e){r[n].value=t;return}r[wr]({name:e,value:t})}function bx(r,e){for(var t=0;t<r[Ae];t++)if(r[t].name===e){r[Ea](t,1);return}}var Ta,Sm,yx,Ix,xx,Nm,Tm,XS,JS=Y(()=>{"use strict";d();Ur();ma();he();HS();hd();Dc();BS();Em();qS();hm();Ks();Sm="sendAttempt",yx="&"+DS+"=true",Ix="?cors=true&"+ks[td]()+"="+Wl,xx=(Ta={},Ta[1]=em,Ta[100]=em,Ta[200]="sent",Ta[8004]=Kl,Ta[8003]=Kl,Ta),Nm={},Tm={};Da(Tc,Tc,!1);Da($l,$l);Da(tm,"Client-Id");Da(Jl,Jl);Da(ql,ql);Da(Xl,Xl);Da(im,im);XS=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,l,v,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,ye;Ce(r,this,function($){vr();var C=!0;$[Sa]=function(h,O,M){ue||(p=O,U=O.getCookieMgr(),v=M,_=v.diagLog(),ln(Se,Fr(h,function(J){var de,Ie=J.cfg,ee=J.cfg.extensionConfig[M.identifier];A=Ws(ee[id],ee[od]),kr(Ie.anonCookieName)?Ax(E,"anoncknm",Ie.anonCookieName):bx(E,"anoncknm"),F=ee[yS],k=ee.payloadListener;var f=ee.httpXHROverride,m=ee[am]?ee[am]:Ie.endpointUrl;o=m+Ix,W=Te(ee[sm])?!0:!ee[sm],w=!ee[IS];var S=ee.valueSanitizer,y=ee[xS],P=!!Ie[ad];Te(ee[ad])||(P=!!ee[ad]),ne=ee.xhrTimeout,V=!!ee[um],G=!!ee[cm],fe=ee[AS]!==!1,_e=!!ee[bS],O.getPlugin("LocalStorage")&&(G=!0),c=!ro(),I=new $S(p,S,y,P,Fs,_e),B(ee[fm])||(c=!!ee[fm]),ee[lm]&&(ye=ee[lm]);var L=We();re?re.SetConfig(L):(re=new va,re[Sa](L,_));var z=f,pe=ee[dm]?f:null,Re=ee[dm]?f:null,ce=[3,2];if(!f){N=!1;var St=[];ro()?(St=[2,1],ce=[2,1,3]):St=[1,2,3],St=pi(St,ee.transports),f=Oe(St,!1),f||pt(_,"No available transport to send events"),z=Oe(St,!0)}pe||(ce=pi(ce,ee[CS]),pe=Oe(ce,!0)),Z=!N&&(c&&en()||!G&&gi(!0)),g=(de={},de[0]=f,de[1]=z||Oe([1,2,3],!0),de[2]=pe||z||Oe([1],!0),de[3]=Re||Oe([2,3],!0)||z||Oe([1],!0),de)})),ue=!0)},$.addResponseHandler=function(h){return ve[wr](h),{rm:function(){var O=ve.indexOf(h);O>=0&&ve[Ea](O,1)}}},$[sd]=function(h){try{if(I)return I.getEventBlob(h)}catch{}return Tn},$[ud]=function(){try{var h=I&&I[cd](0,!1,!1,!1,1,0);return X(h,W)}catch{}return null},$[xc]=function(h,O){try{var M=[];R(h,function(f){O&&(f=Ot(f));var m=mo.create(f[Vt],[f]);M[wr](m)});for(var J=null;M[Ae]>0&&I;){var de=M.shift();de&&de[dr]()>0&&(J=J||I[cd](0,!1,!1,!1,1,0),I.appendPayload(J,de,e))}var Ie=X(J,W),ee={data:J[vm],urlString:Ie.url,headers:Ie[ha],timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};return W&&(Td(ee[Dn],Nc)||(ee[Dn][Nc]=rm),Td(ee[Dn],ks)||(ee[Dn][ks]=Wl)),ee}catch{}return null};function Oe(h,O){try{return re&&re.getSenderInst(h,O)}catch{}return null}$._getDbgPlgTargets=function(){return[g[0],a,I,g,We(),o]};function We(){try{var h={xdrOnComplete:lt,fetchOnComplete:Kt,xhrOnComplete:jr,beaconOnRetry:dt},O={enableSendPromise:!1,isOneDs:!0,disableCredentials:!C,fetchCredentials:ye,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:A,addNoResponse:fe,senderOnCompleteCallBack:h};return O}catch{}return null}function lt(h,O,M){var J=Sn(h);Ar(O,200,{},J),Wt(J)}function vr(){var h;o=null,a=new GS,s=!1,u=new kS,c=!1,l=0,v=null,_=null,g=null,p=null,N=!0,E=[],x={},T=[],I=null,w=!1,U=null,j=!1,W=!1,ne=h,V=h,G=h,Z=h,fe=h,Se=[],F=h,k=h,ve=[],ue=!1,A=Ws(),_e=!1,re=null}function Kt(h,O,M,J){var de=function(f,m,S){Ar(O,f,m,S),Wt(S)},Ie={},ee=h[Dn];ee&&ee.forEach(function(f,m){Ie[m]=f}),de(h.status,Ie,M||Tn)}function jr(h,O,M){var J=Sn(h);Ar(O,h.status,mi(h,!0),J),Wt(J)}function Ar(h,O,M,J){try{h(O,M,J)}catch(de){H(_,2,518,te(de))}}function dt(h,O,M){var J=h,de=200,Ie=J[Gs],ee=h[_m]+(fe?yx:Tn);try{var f=Pr();if(Ie){var m=!!p.getPlugin("LocalStorage"),S=[],y=[];R(Ie[ot],function(P){if(S&&P&&P[dr]()>0)for(var L=P[$n](),z=0;z<L[Ae];z++)if(f.sendBeacon(ee,I.getEventBlob(L[z])))y[wr](P[z]);else{S[wr](P[qn](z));break}else S[wr](P[qn](0))}),y[Ae]>0&&(Ie.sentEvts=y),m||Yr(S,8003,Ie[Lt],!0)}else de=0}catch(P){pt(_,"Failed to send telemetry using sendBeacon API. Ex:"+te(P)),de=0}finally{Ar(O,de,{},Tn)}}function Be(h){return h===2||h===3}function Ue(h){return j&&Be(h)&&(h=2),h}$[Ac]=function(h,O){x[h]=O},$.removeHeader=function(h){delete x[h]},$[bc]=function(){return Xe()&&u[yc]()},$[Bs]=function(h,O){Te(h)&&(h=0),j&&(h=Ue(h),O=2),b(T,h,0)&&ie(Ve(),0,!1,h,O||0)},$[fd]=function(){return!s&&l===0&&T[Ae]===0},$[Cc]=function(h){j=h},$.addBatch=function(h){if(h&&h[dr]()>0){if(a.isTenantKilled(h[Vt]()))return!1;T[wr](h)}return!0},$.teardown=function(){T[Ae]>0&&ie(Ve(),0,!0,2,2),R(Se,function(h){h&&h.rm&&h.rm()}),Se=[]},$.pause=function(){s=!0},$[js]=function(){s=!1,$[Bs](0,4)},$[ld]=function(h,O,M){h&&h[dr]()>0&&(B(O)&&(O=1),j&&(O=Ue(O),M=2),ie([h],0,!1,O,M||0))};function Xe(){return!s&&l<t}function Ve(){var h=T;return T=[],h}function b(h,O,M){var J=!1;return h&&h[Ae]>0&&!s&&g[O]&&I&&(J=O!==0||Xe()&&(M>0||u[yc]())),J}function K(h){var O={};return h&&R(h,function(M,J){O[J]={iKey:M[Vt](),evts:M[$n]()}}),O}function ie(h,O,M,J,de){if(!(!h||h[Ae]===0)){if(s){Yr(h,1,J);return}J=Ue(J);try{var Ie=h,ee=J!==0;lr(p,function(){return"HttpManager:_sendBatches"},function(f){f&&(h=h.slice(0));for(var m=[],S=null,y=Yt(),P=g[J]||(ee?g[1]:g[0]),L=P&&P[dd],z=Z&&(j||Be(J)||L===3||P._isSync&&L===2);b(h,J,O);){var pe=h.shift();pe&&pe[dr]()>0&&(a.isTenantKilled(pe[Vt]())?m[wr](pe):(S=S||I[cd](O,M,ee,z,de,J),I.appendPayload(S,pe,e)?S.overflow!==null&&(h=[S.overflow][Wn](h),S.overflow=null,we(S,y,Yt(),de),y=Yt(),S=null):(we(S,y,Yt(),de),y=Yt(),h=[pe][Wn](h),S=null)))}S&&we(S,y,Yt(),de),h[Ae]>0&&(T=h[Wn](T)),Yr(m,8004,J)},function(){return{batches:K(Ie),retryCount:O,isTeardown:M,isSynchronous:ee,sendReason:de,useSendBeacon:Be(J),sendType:J}},!ee)}catch(f){H(_,2,48,"Unexpected Exception sending batch: "+te(f))}}}function X(h,O){var M={url:o,hdrs:{},useHdrs:!1};O?(M[ha]=pa(M[ha],x),M.useHdrs=$r(M.hdrs)[Ae]>0):ae(x,function(f,m){Tm[f]?$s(M,Tm[f],m,!1):(M[ha][f]=m,M[nd]=!0)}),$s(M,tm,"NO_AUTH",O),$s(M,$l,Ms,O);var J=Tn;R(h.apiKeys,function(f){J[Ae]>0&&(J+=","),J+=f}),$s(M,Jl,J,O),$s(M,Xl,cr().toString(),O);var de=tt(h);if(kr(de)&&(M.url+="&ext.intweb.msfpc="+de),u[ed]()&&$s(M,ql,u[rd](),O),p[zs]){var Ie=p[zs]();Ie>=0&&(M.url+="&w="+Ie)}for(var ee=0;ee<E[Ae];ee++)M.url+="&"+E[ee].name+"="+E[ee].value;return M}function oe(h,O,M){h[O]=h[O]||{},h[O][v.identifier]=M}function we(h,O,M,J){if(h&&h.payloadBlob&&h.payloadBlob[Ae]>0){var de=!!F,Ie=g[h.sendType];!Be(h[Lt])&&h[pm]&&h.sendReason===2&&(Ie=g[2]||g[3]||Ie);var ee=W;(h.isBeacon||Ie[dd]===3)&&(ee=!1);var f=X(h,ee);ee=ee||f[nd];var m=Yt();lr(p,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<h.batches[Ae];S++)for(var y=h[ot][S],P=y[$n](),L=0;L<P[Ae];L++){var z=P[L];if(w){var pe=z[Pc]=z[Pc]||{};oe(pe,"sendEventStart",m),oe(pe,"serializationStart",O),oe(pe,"serializationCompleted",M)}z[Sm]>0?z[Sm]++:z[Sm]=1}Yr(h[ot],1e3+(J||0),h[Lt],!0);var Re={data:h[vm],urlString:f.url,headers:f[ha],_thePayload:h,_sendReason:J,timeout:ne,disableXhrSync:V,disableFetchKeepAlive:G};ee&&(Td(Re[Dn],Nc)||(Re[Dn][Nc]=rm),Td(Re[Dn],ks)||(Re[Dn][ks]=Wl));var ce=null;Ie&&(ce=function(St){u[Zl]();var ii=function(An,uf){Fe(An,uf,h,J)},Nt=h[vd]||h[_d];try{Ie.sendPOST(St,ii,Nt),k&&k(Re,St,Nt,h[pm])}catch(An){pt(_,"Unexpected exception sending payload. Ex:"+te(An)),Ar(ii,0,{})}}),lr(p,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(ce)if(h[Lt]===0&&l++,de&&!h.isBeacon&&Ie[dd]!==3){var St={data:Re[Vs],urlString:Re[_m],headers:pa({},Re[Dn]),timeout:Re[RS],disableXhrSync:Re[um],disableFetchKeepAlive:Re[cm]},ii=!1;lr(p,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{F(St,function(Nt){ii=!0,!N&&!Nt[Gs]&&(Nt[Gs]=Nt[Gs]||Re[Gs],Nt[pd]=Nt[pd]||Re[pd]),ce(Nt)},h.isSync||h[vd])}catch{ii||ce(Re)}})}else ce(Re)})},function(){return{thePayload:h,serializationStart:O,serializationCompleted:M,sendReason:J}},h[_d])}h.sizeExceed&&h.sizeExceed[Ae]>0&&Yr(h.sizeExceed,8003,h[Lt]),h.failedEvts&&h.failedEvts[Ae]>0&&Yr(h.failedEvts,8002,h[Lt])}function Pe(h,O){w&&R(h,function(M){var J=M[Pc]=M[Pc]||{};oe(J,"sendEventCompleted",O)})}function Fe(h,O,M,J){var de=9e3,Ie=null,ee=!1,f=!1;try{var m=!0;if(typeof h!==bn){if(O){u[Ic](O[TS]);var S=O[NS]||O["kill-duration-seconds"];R(a[md](O[SS],S),function(P){R(M[ot],function(L){if(L[Vt]()===P){Ie=Ie||[];var z=L[qn](0);M.numEvents-=z[dr](),Ie[wr](z)}})})}if(h==200||h==204){de=200;return}(!zS(h)||M.numEvents<=0)&&(m=!1),de=9e3+h%1e3}if(m){de=100;var y=M.retryCnt;M[Lt]===0&&(y<n?(ee=!0,rt(function(){M[Lt]===0&&l--,ie(M[ot],y+1,M[vd],j?2:M[Lt],5)},j,Sd(y))):(f=!0,j&&(de=8001)))}}finally{ee||(u[Ic](),Je(M,de,J,f)),Yr(Ie,8004,M[Lt])}}function Je(h,O,M,J){try{J&&v[gd]();var de=h[ot];O===200&&(de=h.sentEvts||h[ot],!J&&!h[_d]&&v._clearBackOff(),ar(de)),Yr(de,O,h[Lt],!0)}finally{h[Lt]===0&&(l--,M!==5&&$.sendQueuedRequests(h[Lt],M))}}function ar(h){if(w){var O=Yt();R(h,function(M){M&&M[dr]()>0&&Pe(M[$n](),O)})}}function rt(h,O,M){O?h():A.set(h,M)}function tt(h){for(var O=0;O<h.batches[Ae];O++){var M=h[ot][O].Msfpc();if(M)return encodeURIComponent(M)}return Tn}function Wt(h){var O=ve;try{for(var M=0;M<O[Ae];M++)try{O[M](h)}catch(de){H(_,1,519,"Response handler failed: "+de)}if(h){var J=JSON.parse(h);kr(J.webResult)&&kr(J.webResult[Hs])&&U.set("MSFPC",J.webResult[Hs],365*86400)}}catch{}}function Yr(h,O,M,J){if(h&&h[Ae]>0&&i){var de=i[ni(O)];if(de){var Ie=M!==0;lr(p,function(){return"HttpManager:_sendBatchesNotification"},function(){rt(function(){try{de.call(i,h,O,Ie,M)}catch(ee){H(_,1,74,"send request notification failed: "+ee)}},J||Ie,0)},function(){return{batches:K(h),reason:O,isSync:Ie,sendSync:J,sendType:M}},!Ie)}}}function ni(h){var O=xx[h];return kr(O)||(O=hS,h>=9e3&&h<=9999?O=ES:h>=8e3&&h<=8999?O=Kl:h>=1e3&&h<=1999&&(O=gS)),O}})}return r.__ieDyn=1,r})()});function Yx(r){return r&&r.sendPOST}var Cx,QS,Px,rN,tN,Rx,ZS,wx,Dm,ya,eN,Dr,Ox,nN,iN=Y(()=>{"use strict";d();xt();Ur();ma();Zo();he();Zp();hd();JS();Dc();Em();hm();Ks();Cx=.25,QS=500,Px=20,rN=6,tN=2,Rx=4,ZS=2,wx=1,Dm=1e4,ya="eventsDiscarded",eN="",Dr=void 0,Ox=Rn({eventsLimitInMem:{isVal:_o,v:Dm},immediateEventLimit:{isVal:_o,v:500},autoFlushEventsLimit:{isVal:_o,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:Yx,v:Dr},overrideInstrumentationKey:Dr,overrideEndpointUrl:Dr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Dr,clearTimeoutOverride:Dr,payloadPreprocessor:Dr,payloadListener:Dr,disableEventTimings:Dr,valueSanitizer:Dr,stringifyObjects:Dr,enableCompoundKey:Dr,disableOptimizeObj:!1,fetchCredentials:Dr,transports:Dr,unloadTransports:Dr,useSendBeacon:Dr,disableFetchKeepAlive:Dr,avoidOptions:!1,xhrTimeout:Dr,disableXhrSync:Dr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Wr,v:rN},maxUnloadEventRetryAttempts:{isVal:Wr,v:tN},addNoResponse:Dr,excludeCsMetaData:Dr});nN=(function(r){It(e,r);function e(){var t=r.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="4.3.4";var n,i=!1,o=[],a,s=!1,u=0,c,l=0,v,_={},g=ga,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e;return Ce(e,t,function(re,ye){Ue(),re._getDbgPlgTargets=function(){return[T,n]},re[Sa]=function(f,m,S){lr(m,function(){return"PostChannel:initialize"},function(){ye[Sa](f,m,S),ve=m.getNotifyMgr();try{fe=zt(Jr(re[Rc]),m.evtNamespace&&m.evtNamespace()),re._addHook(Fr(f,function(y){var P=y.cfg,L=mt(null,P,m);n=L.getExtCfg(re[Rc],Ox),Se=Ws(n[id],n[od]),ne=!n[wS]&&Bl(),F=n[OS],C(m),v=n[mm],c=n.immediateEventLimit,w=n[gm],G=n.maxEventRetryAttempts,Z=n.maxUnloadEventRetryAttempts,k=n[YS],vt(P.endpointUrl)?re.pause():s&&re[js](),ee(),A=n[LS],_e=!!n[US],ue&&$();var z=P.disablePageUnloadEvents||[];ue=_c(lt,z,fe),ue=Ys(lt,z,fe)||ue,ue=Ls(vr,P.disablePageShowEvents,fe)||ue})),T[Sa](f,re.core,re)}catch(y){throw re.setInitialized(!1),y}},function(){return{theConfig:f,core:m,extensions:S}})},re.processTelemetry=function(f,m){Sc(f,re[Rc]),m=m||re._getTelCtx(m);var S=f;!_e&&!i&&(A&&(S[Vt]=A),jr(S,!0),V?b(2,2):Be()),re.processNext(S,m)},re.getOfflineSupport=function(){try{var f=T&&T[ud]();if(T)return{getUrl:function(){return f?f.url:null},serialize:We,batch:Oe,shouldProcess:function(m){return!_e},createPayload:function(m){return null},createOneDSPayload:function(m){if(T[xc])return T[xc](m,ne)}}}catch{}return null},re._doTeardown=function(f,m){b(2,2),i=!0,T.teardown(),$(),Ue()};function $(){pc(null,fe),mc(null,fe),gc(null,fe)}function C(f){var m=f[zs];f[zs]=function(){var S=0;return F&&(S=S|2),S|m.call(f)}}function Oe(f){var m=eN;return f&&f[Ae]&&R(f,function(S){m&&(m+=`
5
+ `),m+=S}),m}function We(f){var m=eN;try{Kt(f),m=T[sd](f)}catch{}return m}function lt(f){var m=f||Nr().event;m.type!=="beforeunload"&&(V=!0,T[Cc](V)),b(2,2)}function vr(f){V=!1,T[Cc](V)}function Kt(f){f.ext&&f.ext[om]&&delete f.ext[om],f.ext&&f.ext[Ql]&&f.ext[Ql].id&&delete f.ext[Ql].id,ne&&(f.ext=Ot(f.ext),f[Ed]&&(f[Ed]=Ot(f[Ed])),f[Vs]&&(f[Vs]=Ot(f[Vs])))}function jr(f,m){if(f[wc]||(f[wc]=0),f[po]||(f[po]=1),Kt(f),f[Na]){if(E||s)f[po]=3,f[Na]=!1;else if(T){ne&&(f=Ot(f)),T[ld](mo.create(f[Vt],[f]),f[Na]===!0?1:f[Na],3);return}}var S=f[po],y=l,P=v;S===4&&(y=u,P=c);var L=!1;if(y<P)L=!oe(f,m);else{var z=1,pe=Px;S===4&&(z=4,pe=1),L=!0,we(f[Vt],f[po],z,pe)&&(L=!oe(f,m))}L&&ni(ya,[f],vn.QueueFull)}re.setEventQueueLimits=function(f,m){n[mm]=v=_o(f)?f:Dm,n[gm]=w=_o(m)?m:0,ee();var S=l>f;if(!S&&U>0)for(var y=1;!S&&y<=3;y++){var P=I[y];P&&P[ot]&&R(P[ot],function(L){L&&L[dr]()>=U&&(S=!0)})}X(!0,S)},re.pause=function(){Ve(),s=!0,T&&T.pause()},re[js]=function(){s=!1,T&&T[js](),Be()},re._loadTransmitProfiles=function(f){rt(),ae(f,function(m,S){var y=S[Ae];if(y>=2){var P=y>2?S[2]:0;if(S[Ea](0,y-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var L=S[0]/S[1];S[0]=Math.ceil(L)*S[1]}P>=0&&S[1]>=0&&P>S[1]&&(P=S[1]),S[wr](P),_[m]=S}})},re.flush=function(f,m,S){f===void 0&&(f=!0);var y;if(!s)if(S=S||1,f)m||(y=Qt(function(L){m=L})),a==null?(Ve(),Fe(1,0,S),a=Xe(function(){a=null,Je(m,S)},0)):o[wr](m);else{var P=Ve();Ar(1,1,S),m&&m(),P&&Be()}return y},re.setMsaAuthTicket=function(f){T[Ac](Tc,f)},re.setAuthPluginHeader=function(f){T[Ac](nm,f)},re.removeAuthPluginHeader=function(){T.removeHeader(nm)},re.hasEvents=dt,re._setTransmitProfile=function(f){g!==f&&_[f]!==void 0&&(Ve(),g=f,Be())},jt(re,function(){return T},["addResponseHandler"]);function Ar(f,m,S){var y=Fe(f,m,S);return T[Bs](m,S),y}function dt(){return l>0}function Be(){if(j>=0&&Fe(j,0,W)&&T[Bs](0,W),u>0&&!N&&!s){var f=_[g][2];f>=0&&(N=Xe(function(){N=null,Ar(4,0,1),Be()},f))}var m=_[g][1];!p&&!a&&m>=0&&!s&&(dt()?p=Xe(function(){p=null,Ar(x===0?3:1,0,1),x++,x%=2,Be()},m):x=0)}re[gd]=function(){E<Rx&&(E++,Ve(),Be())},re._clearBackOff=function(){E&&(E=0,Ve(),Be())};function Ue(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,l=0,v=Dm,_={},g=ga,p=null,N=null,E=0,x=0,I={},w=0,ue=!1,U=0,j=-1,W=null,ne=!0,V=!1,G=rN,Z=tN,fe=null,A=null,_e=!1,Se=Ws(),T=new XS(QS,ZS,wx,{requeue:Wt,send:O,sent:M,drop:J,rspFail:de,oth:Ie}),tt(),K(),ee()}function Xe(f,m){m===0&&E&&(m=1);var S=1e3;return E&&(S=Sd(E-1)),Se.set(f,m*S)}function Ve(){return p!==null?(p.cancel(),p=null,x=0,!0):!1}function b(f,m){Ve(),a&&(a.cancel(),a=null),s||Ar(1,f,m)}function K(){I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}}}function ie(f,m,S){var y=I[m];y||(m=1,y=I[m]);var P=y.iKeyMap[f];return!P&&S&&(P=mo.create(f),y.batches[wr](P),y.iKeyMap[f]=P),P}function X(f,m){T[bc]()&&!E&&(w>0&&l>w&&(m=!0),m&&a==null&&re.flush(f,function(){},20))}function oe(f,m){ne&&(f=Ot(f));var S=f[po],y=ie(f[Vt],S,!0);return y.addEvent(f)?(S!==4?(l++,m&&f[wc]===0&&X(!f.sync,U>0&&y[dr]()>=U)):u++,!0):!1}function we(f,m,S,y){for(;S<=m;){var P=ie(f,m,!0);if(P&&P[dr]()>0){var L=P[qn](0,y),z=L[dr]();if(z>0)return S===4?u-=z:l-=z,h(ya,[L],vn.QueueFull),!0}S++}return Pe(),!1}function Pe(){for(var f=0,m=0,S=function(P){var L=I[P];L&&L[ot]&&R(L[ot],function(z){P===4?f+=z[dr]():m+=z[dr]()})},y=1;y<=4;y++)S(y);l=m,u=f}function Fe(f,m,S){var y=!1,P=m===0;return!P||T[bc]()?lr(re.core,function(){return"PostChannel._queueBatches"},function(){for(var L=[],z=4;z>=f;){var pe=I[z];pe&&pe.batches&&pe.batches[Ae]>0&&(R(pe[ot],function(Re){T.addBatch(Re)?y=y||Re&&Re[dr]()>0:L=L[Wn](Re[$n]()),z===4?u-=Re[dr]():l-=Re[dr]()}),pe[ot]=[],pe.iKeyMap={}),z--}L[Ae]>0&&ni(ya,L,vn.KillSwitch),y&&j>=f&&(j=-1,W=0)},function(){return{latency:f,sendType:m,sendReason:S}},!P):(j=j>=0?Math.min(j,f):f,W=Math.max(W,S)),y}function Je(f,m){Ar(1,0,m),Pe(),ar(function(){f&&f(),o[Ae]>0?a=Xe(function(){a=null,Je(o.shift(),m)},0):(a=null,Be())})}function ar(f){T[fd]()?f():a=Xe(function(){a=null,ar(f)},Cx)}function rt(){Ve(),tt(),g=ga,Be()}function tt(){_={},_[ga]=[2,1,0],_[zl]=[6,3,0],_[Vl]=[18,9,0]}function Wt(f,m){var S=[],y=G;V&&(y=Z),R(f,function(P){P&&P[dr]()>0&&R(P[$n](),function(L){L&&(L[Na]&&(L[po]=4,L[Na]=!1),L[wc]<y?(Sc(L,re[Rc]),jr(L,!1)):S[wr](L))})}),S[Ae]>0&&ni(ya,S,vn.NonRetryableStatus),V&&b(2,2)}function Yr(f,m){var S=ve||{},y=S[f];if(y)try{y.apply(S,m)}catch(P){H(re.diagLog(),1,74,f+" notification failed: "+P)}}function ni(f,m){for(var S=[],y=2;y<arguments.length;y++)S[y-2]=arguments[y];m&&m[Ae]>0&&Yr(f,[m][Wn](S))}function h(f,m){for(var S=[],y=2;y<arguments.length;y++)S[y-2]=arguments[y];m&&m[Ae]>0&&R(m,function(P){P&&P[dr]()>0&&Yr(f,[P.events()][Wn](S))})}function O(f,m,S){f&&f[Ae]>0&&Yr("eventsSendRequest",[m>=1e3&&m<=1999?m-1e3:0,S!==!0])}function M(f,m){h("eventsSent",f,m),Be()}function J(f,m){h(ya,f,m>=8e3&&m<=8999?m-8e3:vn.Unknown)}function de(f){h(ya,f,vn.NonRetryableStatus),Be()}function Ie(f,m){h(ya,f,vn.Unknown),Be()}function ee(){k?U=0:U=Math.max(QS*(ZS+1),v/6)}}),t}return e.__ieDyn=1,e})(yi)});var oN={};df(oN,{BE_PROFILE:()=>Vl,NRT_PROFILE:()=>zl,PostChannel:()=>nN,RT_PROFILE:()=>ga});var aN=Y(()=>{"use strict";d();Zp();iN()});var Oc,Yc,Dd,Ia,Xn,at,yn=Y(()=>{"use strict";d();Oc="sampleRate",Yc="ProcessLegacy",Dd="http.method",Ia="https://dc.services.visualstudio.com",Xn="/v2/track",at="not_specified"});var yd,uN=Y(()=>{"use strict";d();$e();yd=h_({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]})});var xa,be,Aa,go,Ci,qs,ym,st,Pi,cN,Lc,Uc,ba,tn,Qr,ut,Ca,Jn,Pa,Id,xd,Im,Ra,Eo,Mc,Fc,wa,Xs,Oa,xm,ct=Y(()=>{"use strict";d();xa="split",be="length",Aa="toLowerCase",go="ingestionendpoint",Ci="toString",qs="push",ym="removeItem",st="name",Pi="message",cN="count",Lc="stringify",Uc="pathname",ba="exceptions",tn="parsedStack",Qr="properties",ut="measurements",Ca="sizeInBytes",Jn="typeName",Pa="severityLevel",Id="problemGroup",xd="isManual",Im="CreateFromInterface",Ra="assembly",Eo="fileName",Mc="hasFullStack",Fc="level",wa="method",Xs="line",Oa="duration",xm="receivedResponse"});function Am(r,e,t){var n=e[be],i=fN(r,e);if(i[be]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Cr(i,0,147)+lN(o);i=a}return i}function fN(r,e){var t;return e&&(e=ke(_r(e)),e[be]>150&&(t=Cr(e,0,150),H(r,2,57,"name is too long. It has been truncated to 150 characters.",{name:e},!0))),t||e}function Ke(r,e,t){t===void 0&&(t=1024);var n;return e&&(t=t||1024,e=ke(_r(e)),e[be]>t&&(n=Cr(e,0,t),H(r,2,61,"string value is too long. It has been truncated to "+t+" characters.",{value:e},!0))),n||e}function Ya(r,e){return Pm(r,e,2048,66)}function kc(r,e){var t;return e&&e[be]>32768&&(t=Cr(e,0,32768),H(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function bm(r,e){var t;if(e){var n=""+e;n[be]>32768&&(t=Cr(n,0,32768),H(r,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:e},!0))}return t||e}function gt(r,e){if(e){var t={};ae(e,function(n,i){if(nr(i)&&kn())try{i=Xr()[Lc](i)}catch(o){H(r,2,49,"custom property is not valid",{exception:o},!0)}i=Ke(r,i,8192),n=Am(r,n,t),t[n]=i}),e=t}return e}function Et(r,e){if(e){var t={};ae(e,function(n,i){n=Am(r,n,t),t[n]=i}),e=t}return e}function Cm(r,e){return e&&Pm(r,e,128,69)[Ci]()}function Pm(r,e,t,n){var i;return e&&(e=ke(_r(e)),e[be]>t&&(i=Cr(e,0,t),H(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function lN(r){var e="00"+r;return wn(e,e[be]-3)}var In=Y(()=>{"use strict";d();$e();he();ct()});function _N(r){var e=vN,t=Ux,n=t[e];return dN.createElement?t[e]||(n=t[e]=dN.createElement("a")):n={host:Mx(r,!0)},n.href=r,e++,e>=t[be]&&(e=0),vN=e,n}function Mx(r,e){var t=pN(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>3&&Ne(n[2])&&n[2][be]>0)return n[2]+(n[3]||"")}return t}function pN(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[be]>2&&Ne(n[2])&&n[2][be]>0&&(t=n[2]||"",e&&n[be]>2)){var i=(n[1]||"")[Aa](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var dN,vN,Ux,mN=Y(()=>{"use strict";d();$e();ct();dN=Sr()||{},vN=0,Ux=[null,null,null,null,null]});function Ad(r){return Me(Fx,r[Aa]())!==-1}function gN(r,e,t,n){var i,o=n,a=n;if(e&&e[be]>0){var s=_N(e);if(i=s.host,!o)if(s[Uc]!=null){var u=s.pathname[be]===0?"/":s[Uc];u.charAt(0)!=="/"&&(u="/"+u),a=s[Uc],o=Ke(r,t?t+" "+u:u)}else o=Ke(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}var Fx,Rm=Y(()=>{"use strict";d();$e();yn();In();mN();ct();Fx=[Ia+Xn,"https://breeze.aimon.applicationinsights.io"+Xn,"https://dc-int.services.visualstudio.com"+Xn]});var bd,lL,dL,EN=Y(()=>{"use strict";d();$e();bd=fr({LocalStorage:0,SessionStorage:1}),lL=fr({AI:0,AI_AND_W3C:1,W3C:2}),dL=fr({Normal:1,Critical:2})});function SN(r){try{if(B(_t()))return null;var e=new Date()[Ci](),t=le(r===bd.LocalStorage?"localStorage":"sessionStorage"),n=hN+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[ym](n),!i)return t}catch{}return null}function wm(){return Cd()?SN(bd.SessionStorage):null}function Om(r){hN=r||""}function Cd(r){return(r||Js===void 0)&&(Js=!!SN(bd.SessionStorage)),Js}function Ym(r,e){var t=wm();if(t!==null)try{return t.getItem(e)}catch(n){Js=!1,H(r,2,2,"Browser failed read of session storage. "+or(n),{exception:te(n)})}return null}function Lm(r,e,t){var n=wm();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Js=!1,H(r,2,4,"Browser failed write to session storage. "+or(i),{exception:te(i)})}return!1}function Um(r,e){var t=wm();if(t!==null)try{return t[ym](e),!0}catch(n){Js=!1,H(r,2,6,"Browser failed removal of session storage item. "+or(n),{exception:te(n)})}return!1}var Js,hN,NN=Y(()=>{"use strict";d();$e();EN();ct();Js=void 0,hN=""});function Hc(r){if(!r)return{};var e=r[xa](kx),t=bu(e,function(i,o){var a=o[xa](Hx);if(a[be]===2){var s=a[0][Aa](),u=a[1];i[s]=u}return i},{});if($r(t)[be]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[go]=t[go]||"https://"+n+"dc."+t.endpointsuffix}t[go]=t[go]||Ia,jo(t[go],"/")&&(t[go]=t[go].slice(0,-1))}return t}var kx,Hx,TN=Y(()=>{"use strict";d();$e();yn();ct();kx=";",Hx="="});var Mm,DN=Y(()=>{"use strict";d();$e();yn();ct();In();Mm=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[st]=Ke(e,n)||at,o.data=t,o.time=hn(new Date),o.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return i.sampleRate===100?4:1},tags:1,data:1}}return r})()});var Ri,yN=Y(()=>{"use strict";d();yn();ct();In();Ri=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[st]=Ke(e,t)||at,o[Qr]=gt(e,n),o[ut]=Et(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function Gm(r,e){var t=r;return t&&!Ne(t)&&(JSON&&JSON[Lc]?(t=JSON[Lc](r),e&&(!t||t==="{}")&&(se(r[Ci])?t=r[Ci]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function CN(r,e){var t=r;return r&&(t&&!Ne(t)&&(t=r[Hm]||r[bN]||t),t&&!Ne(t)&&(t=Gm(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&dn(t||"",e)===-1&&(t=e+": "+t),t||""}function Bx(r){try{if(nr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function jx(r){try{if(nr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function xN(r){return r&&r.src&&Ne(r.src)&&r.obj&&Q(r.obj)}function La(r){var e=r||"";Ne(e)||(Ne(e[Ut])?e=e[Ut]:e=""+e);var t=e[xa](`
6
+ `);return{src:e,obj:t}}function zx(r){for(var e=[],t=r[xa](`
7
+ `),n=0;n<t[be];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[qs](i)}return{src:r,obj:e}}function PN(r){var e=null;if(r)try{if(r[Ut])e=La(r[Ut]);else if(r[Qs]&&r[Qs][Ut])e=La(r[Qs][Ut]);else if(r.exception&&r.exception[Ut])e=La(r.exception[Ut]);else if(xN(r))e=r;else if(xN(r[km]))e=r[km];else if(Nr()&&Nr().opera&&r[Hm])e=zx(r[Pi]);else if(r.reason&&r.reason[Ut])e=La(r.reason[Ut]);else if(Ne(r))e=La(r);else{var t=r[Hm]||r[bN]||"";Ne(r[IN])&&(t&&(t+=`
8
+ `),t+=" from "+r[IN]),t&&(e=La(t))}}catch(n){e=La(n)}return e||{src:"",obj:null}}function Vx(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
9
+ `}):e=r.src||""),e}function Kx(r){var e,t=r.obj;if(t&&t[be]>0){e=[];var n=0,i=0;R(t,function(p){var N=p[Ci]();if(Bm.regex.test(N)){var E=new Bm(N,n++);i+=E[Ca],e[qs](E)}});var o=32*1024;if(i>o)for(var a=0,s=e[be]-1,u=0,c=a,l=s;a<s;){var v=e[a][Ca],_=e[s][Ca];if(u+=v+_,u>o){var g=l-c+1;e.splice(c,g);break}c=a,l=s,a++,s--}}return e}function Pd(r){var e="";if(r&&(e=r.typeName||r[st]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Ci]());e=n&&n[be]>1?n[1]:""}catch{}return e}function Fm(r){if(r)try{if(!Ne(r)){var e=Pd(r),t=Gm(r,!1);return(!t||t==="{}")&&(r[Qs]&&(r=r[Qs],e=Pd(r)),t=Gm(r,!0)),dn(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var Gx,Qs,Ut,km,IN,Hm,bN,Ua,AN,Bm,RN=Y(()=>{"use strict";d();xt();$e();he();yn();ct();In();Gx="<no_method>",Qs="error",Ut="stack",km="stackDetails",IN="errorSrc",Hm="message",bN="description";Ua=(function(){function r(e,t,n,i,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,jx(t)?(s[ba]=t[ba]||[],s[Qr]=t[Qr],s[ut]=t[ut],t[Pa]&&(s[Pa]=t[Pa]),t.id&&(s.id=t.id,t[Qr].id=t.id),t[Id]&&(s[Id]=t[Id]),B(t[xd])||(s[xd]=t[xd])):(n||(n={}),a&&(n.id=a),s[ba]=[new AN(e,t,n)],s[Qr]=gt(e,n),s[ut]=Et(e,i),o&&(s[Pa]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,l=Pd(o||a||e);return c={},c[Pi]=CN(e,l),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=Fm(o||a||e),c.evt=Fm(a||e),c[Jn]=l,c.stackDetails=PN(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[ba]&&si(t[ba],function(s){return AN[Im](e,s)}),a=new r(e,Xt(Xt({},t),{exceptions:o}),n,i);return a},r.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,o=t.measurements,a=t.severityLevel,s=t.problemGroup,u=t.id,c=t.isManual,l=n instanceof Array&&si(n,function(v){return v.toInterface()})||void 0;return e={ver:"4.0"},e[ba]=l,e.severityLevel=a,e.properties=i,e.measurements=o,e.problemGroup=s,e.id=u,e.isManual=c,e},r.CreateSimpleException=function(e,t,n,i,o,a){var s;return{exceptions:[(s={},s[Mc]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=Fm,r})(),AN=(function(){function r(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(Bx(t))i[Jn]=t[Jn],i[Pi]=t[Pi],i[Ut]=t[Ut],i[tn]=t[tn]||[],i[Mc]=t[Mc];else{var o=t,a=o&&o.evt;Fo(o)||(o=o[Qs]||a||o),i[Jn]=Ke(e,Pd(o))||at,i[Pi]=kc(e,CN(t||o,i[Jn]))||at;var s=t[km]||PN(t);i[tn]=Kx(s),Q(i[tn])&&si(i[tn],function(u){u[Ra]=Ke(e,u[Ra]),u[Eo]=Ke(e,u[Eo])}),i[Ut]=bm(e,Vx(s)),i.hasFullStack=Q(i.parsedStack)&&i.parsedStack[be]>0,n&&(n[Jn]=n[Jn]||i[Jn])}}return r.prototype.toInterface=function(){var e,t=this,n=t[tn]instanceof Array&&si(t[tn],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[Jn],message:t[Pi],hasFullStack:t[Mc],stack:t[Ut]},e[tn]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[tn]instanceof Array&&si(t[tn],function(o){return Bm[Im](o)})||t[tn],i=new r(e,Xt(Xt({},t),{parsedStack:n}));return i},r})(),Bm=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Ca]=0,typeof e=="string"){var i=e;n[Fc]=t,n[wa]=Gx,n[Ra]=ke(i),n[Eo]="",n[Xs]=0;var o=i.match(r.regex);o&&o[be]>=5&&(n[wa]=ke(o[2])||n[wa],n[Eo]=ke(o[4]),n[Xs]=parseInt(o[5])||0)}else n[Fc]=e[Fc],n[wa]=e[wa],n[Ra]=e[Ra],n[Eo]=e[Eo],n[Xs]=e[Xs],n[Ca]=0;n.sizeInBytes+=n.method[be],n.sizeInBytes+=n.fileName[be],n.sizeInBytes+=n.assembly[be],n[Ca]+=r.baseSize,n.sizeInBytes+=n.level.toString()[be],n.sizeInBytes+=n.line.toString()[be]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[Fc],method:e[wa],assembly:e[Ra],fileName:e[Eo],line:e[Xs]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var wN,ON=Y(()=>{"use strict";d();wN=(function(){function r(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return r})()});var wi,YN=Y(()=>{"use strict";d();yn();ct();ON();In();wi=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var v=new wN;v[cN]=i>0?i:void 0,v.max=isNaN(a)||a===null?void 0:a,v.min=isNaN(o)||o===null?void 0:o,v[st]=Ke(e,t)||at,v.value=n,v.stdDev=isNaN(s)||s===null?void 0:s,l.metrics=[v],l[Qr]=gt(e,u),l[ut]=Et(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function Rd(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=Gc+r%1e3,t=Gc+Math.floor(r/1e3)%60,n=Gc+Math.floor(r/(1e3*60))%60,i=Gc+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[be]===1?"00"+e:e[be]===2?"0"+e:e,t=t[be]<2?"0"+t:t,n=n[be]<2?"0"+n:n,i=i[be]<2?"0"+i:i,(o>0?o+".":Gc)+i+":"+n+":"+t+"."+e}var Gc,jm=Y(()=>{"use strict";d();ct();Gc=""});var Ma,LN=Y(()=>{"use strict";d();yn();jm();ct();In();Ma=(function(){function r(e,t,n,i,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=Cm(e,s),u.url=Ya(e,n),u[st]=Ke(e,t)||at,isNaN(i)||(u[Oa]=Rd(i)),u[Qr]=gt(e,o),u[ut]=Et(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var Fa,UN=Y(()=>{"use strict";d();jm();Rm();ct();In();Fa=(function(){function r(e,t,n,i,o,a,s,u,c,l,v,_){c===void 0&&(c="Ajax"),this.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};var g=this;g.ver=2,g.id=t,g[Oa]=Rd(o),g.success=a,g.resultCode=s+"",g.type=Ke(e,c);var p=gN(e,n,u,i);g.data=Ya(e,i)||p.data,g.target=Ke(e,p.target),l&&(g.target="".concat(g.target," | ").concat(l)),g[st]=Ke(e,p[st]),g[Qr]=gt(e,v),g[ut]=Et(e,_)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var ka,MN=Y(()=>{"use strict";d();yn();ct();In();ka=(function(){function r(e,t,n,i,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||at,a[Pi]=kc(e,t),a[Qr]=gt(e,i),a[ut]=Et(e,o),n&&(a[Pa]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Ha,FN=Y(()=>{"use strict";d();yn();ct();In();Ha=(function(){function r(e,t,n,i,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var u=this;u.ver=2,u.url=Ya(e,n),u[st]=Ke(e,t)||at,u[Qr]=gt(e,o),u[ut]=Et(e,a),s&&(u.domProcessing=s.domProcessing,u[Oa]=s[Oa],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[xm]=s[xm],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var Oi,kN=Y(()=>{"use strict";d();Oi=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var zm,HN=Y(()=>{"use strict";d();$e();zm=fr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});function So(r){var e="ai."+r+".";return function(t){return e+t}}var Bc,Or,wd,Zs,Vm,ho,Ga,jc,zc,Km=Y(()=>{"use strict";d();xt();$e();Bc=So("application"),Or=So("device"),wd=So("location"),Zs=So("operation"),Vm=So("session"),ho=So("user"),Ga=So("cloud"),jc=So("internal"),zc=(function(r){It(e,r);function e(){return r.call(this)||this}return e})(H_({applicationVersion:Bc("ver"),applicationBuild:Bc("build"),applicationTypeId:Bc("typeId"),applicationId:Bc("applicationId"),applicationLayer:Bc("layer"),deviceId:Or("id"),deviceIp:Or("ip"),deviceLanguage:Or("language"),deviceLocale:Or("locale"),deviceModel:Or("model"),deviceFriendlyName:Or("friendlyName"),deviceNetwork:Or("network"),deviceNetworkName:Or("networkName"),deviceOEMName:Or("oemName"),deviceOS:Or("os"),deviceOSVersion:Or("osVersion"),deviceRoleInstance:Or("roleInstance"),deviceRoleName:Or("roleName"),deviceScreenResolution:Or("screenResolution"),deviceType:Or("type"),deviceMachineName:Or("machineName"),deviceVMName:Or("vmName"),deviceBrowser:Or("browser"),deviceBrowserVersion:Or("browserVersion"),locationIp:wd("ip"),locationCountry:wd("country"),locationProvince:wd("province"),locationCity:wd("city"),operationId:Zs("id"),operationName:Zs("name"),operationParentId:Zs("parentId"),operationRootId:Zs("rootId"),operationSyntheticSource:Zs("syntheticSource"),operationCorrelationVector:Zs("correlationVector"),sessionId:Vm("id"),sessionIsFirst:Vm("isFirst"),sessionIsNew:Vm("isNew"),userAccountAcquisitionDate:ho("accountAcquisitionDate"),userAccountId:ho("accountId"),userAgent:ho("userAgent"),userId:ho("id"),userStoreRegion:ho("storeRegion"),userAuthUserId:ho("authUserId"),userAnonymousUserAcquisitionDate:ho("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ho("authUserAcquisitionDate"),cloudName:Ga("name"),cloudRole:Ga("role"),cloudRoleVer:Ga("roleVer"),cloudRoleInstance:Ga("roleInstance"),cloudEnvironment:Ga("environment"),cloudLocation:Ga("location"),cloudDeploymentUnit:Ga("deploymentUnit"),internalNodeName:jc("nodeName"),internalSdkVersion:jc("sdkVersion"),internalAgentVersion:jc("agentVersion"),internalSnippet:jc("snippet"),internalSdkSrc:jc("sdkSrc")}))});var yr,GN=Y(()=>{"use strict";d();Km();yr=new zc});function BN(r,e){xi(r,null,null,e)}function Wm(r){var e=Sr(),t=Pr(),n=!1,i=[],o=1;t&&!B(t.onLine)&&!t.onLine&&(o=2);var a=0,s=_(),u=zt(Jr("OfflineListener"),r);try{if(l(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&l(c)&&(n=!0)}}catch{n=!1}function l(I){var w=!1;return I&&(w=jn(I,"online",N,u),w&&jn(I,"offline",E,u)),w}function v(){return s}function _(){return!(a===2||o===2)}function g(){var I=_();s!==I&&(s=I,R(i,function(w){var U={isOnline:s,rState:o,uState:a};try{w(U)}catch{}}))}function p(I){a=I,g()}function N(){o=1,g()}function E(){o=2,g()}function x(){var I=Nr();if(I&&n){if(BN(I,u),e){var w=e.body||e;Te(w.ononline)||BN(w,u)}n=!1}}function T(I){return i[qs](I),{rm:function(){var w=i.indexOf(I);if(w>-1)return i.splice(w,1)}}}return{isOnline:v,isListening:function(){return n},unload:x,addListener:T,setOnlineState:p}}var jN=Y(()=>{"use strict";d();$e();ct()});var Od,Yi=Y(()=>{"use strict";d();Rm();TN();uN();yn();DN();yN();RN();YN();LN();UN();MN();FN();kN();HN();Km();In();GN();NN();jN();Od="AppInsightsChannelPlugin"});var No,zN=Y(()=>{"use strict";d();No="duration"});var Ir,Yd,Zr,Qn,ja,De,To,Do,nn,yo,Li,eu,Ui,Mi,Ld,on,ru,Vc,Io,Kc,tu,za,Wc,Ud,Fi,xo,nu,iu,et,Md,ou,au,su,Fd,$m,kd,Hd,qm,Gd,Xm,ki,Jm,Qm,Zm,$c,eg,rg,tg,uu,Ao,Bd,qc,jd,zd,Vd,Kd,cu,ng,Wd,VN,bo=Y(()=>{"use strict";d();Ir="tags",Yd="deviceType",Zr="data",Qn="name",ja="traceID",De="length",To="stringify",Do="measurements",nn="dataType",yo="envelopeType",Li="toString",eu="_get",Ui="enqueue",Mi="count",Ld="eventsLimitInMem",on="push",ru="item",Vc="emitLineDelimitedJson",Io="clear",Kc="createNew",tu="markAsSent",za="clearSent",Wc="bufferOverride",Ud="BUFFER_KEY",Fi="SENT_BUFFER_KEY",xo="concat",nu="MAX_BUFFER_SIZE",iu="triggerSend",et="diagLog",Md="initialize",ou="_sender",au="endpointUrl",su="instrumentationKey",Fd="customHeaders",$m="maxBatchSizeInBytes",kd="onunloadDisableBeacon",Hd="isBeaconApiDisabled",qm="alwaysUseXhrOverride",Gd="disableXhr",Xm="enableSessionStorageBuffer",ki="_buffer",Jm="onunloadDisableFetch",Qm="disableSendBeaconSplit",Zm="enableSendPromise",$c="getSenderInst",eg="unloadTransports",rg="convertUndefined",tg="maxBatchInterval",uu="serialize",Ao="_onError",Bd="_onPartialSuccess",qc="_onSuccess",jd="itemsReceived",zd="itemsAccepted",Vd="oriPayload",Kd="baseType",cu="sampleRate",ng="eventsSendRequest",Wd="getSamplingScore",VN="getHashCodeScore"});function gr(r,e,t){return Zt(r,e,t,cn)}function Wx(r,e,t){var n=t[Ir]=t[Ir]||{},i=e.ext=e.ext||{},o=e[Ir]=e[Ir]||[],a=i.user;a&&(gr(n,yr.userAuthUserId,a.authId),gr(n,yr.userId,a.id||a.localId));var s=i.app;s&&gr(n,yr.sessionId,s.sesId);var u=i.device;u&&(gr(n,yr.deviceId,u.id||u.localId),gr(n,yr[Yd],u.deviceClass),gr(n,yr.deviceIp,u.ip),gr(n,yr.deviceModel,u.model),gr(n,yr[Yd],u[Yd]));var c=e.ext.web;if(c){gr(n,yr.deviceLanguage,c.browserLang),gr(n,yr.deviceBrowserVersion,c.browserVer),gr(n,yr.deviceBrowser,c.browser);var l=t[Zr]=t[Zr]||{},v=l[er]=l[er]||{},_=v[Hr]=v[Hr]||{};gr(_,"domain",c.domain),gr(_,"isManual",c.isManual?KN:null),gr(_,"screenRes",c.screenRes),gr(_,"userConsent",c.userConsent?KN:null)}var g=i.os;g&&(gr(n,yr.deviceOS,g[Qn]),gr(n,yr.deviceOSVersion,g.osVer));var p=i.trace;p&&(gr(n,yr.operationParentId,p.parentID),gr(n,yr.operationName,Ke(r,p[Qn])),gr(n,yr.operationId,p[ja]));for(var N={},E=o[De]-1;E>=0;E--){var x=o[E];ae(x,function(I,w){N[I]=w}),o.splice(E,1)}ae(o,function(I,w){N[I]=w});var T=Xt(Xt({},n),N);T[yr.internalSdkVersion]||(T[yr.internalSdkVersion]=Ke(r,"javascript:".concat($x.Version),64)),t[Ir]=Ot(T)}function Co(r,e,t){B(r)||ae(r,function(n,i){Wr(i)?t[n]=i:Ne(i)?e[n]=i:kn()&&(e[n]=Xr()[To](i))})}function Va(r,e){B(r)||ae(r,function(t,n){r[t]=n||e})}function Ka(r,e,t,n){var i=new Mm(r,n,e);gr(i,"sampleRate",t[Oc]),(t[er]||{}).startTime&&(i.time=hn(t[er].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[Qn]=i[Qn].replace("{0}",o),Wx(r,t,i),t[Ir]=t[Ir]||[],Ot(i)}function Wa(r,e){B(e[er])&&H(r,1,46,"telemetryItem.baseData cannot be null.")}function WN(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er];if(B(o))return pt(r,"Invalid input for dependency data"),null;var a=o[Hr]&&o[Hr][Dd]?o[Hr][Dd]:"GET",s=new Fa(r,o.id,o.target,o[Qn],o[No],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new Oi(Fa[nn],s);return Ka(r,Fa[yo],e,u)}function og(r,e,t){Wa(r,e);var n={},i={};e[ig]!==Ri[nn]&&(n.baseTypeSource=e[ig]),e[ig]===Ri[nn]?(n=e[er][Hr]||{},i=e[er][Do]||{}):e[er]&&Co(e[er],n,i),Co(e[Zr],n,i),B(t)||Va(n,t);var o=e[er][Qn],a=new Ri(r,o,n,i),s=new Oi(Ri[nn],a);return Ka(r,Ri[yo],e,s)}function $N(r,e,t){Wa(r,e);var n=e[er][Do]||{},i=e[er][Hr]||{};Co(e[Zr],i,n),B(t)||Va(i,t);var o=e[er],a=Ua.CreateFromInterface(r,o,i,n),s=new Oi(Ua[nn],a);return Ka(r,Ua[yo],e,s)}function qN(r,e,t){Wa(r,e);var n=e[er],i=n[Hr]||{},o=n[Do]||{};Co(e[Zr],i,o),B(t)||Va(i,t);var a=new wi(r,n[Qn],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new Oi(wi[nn],a);return Ka(r,wi[yo],e,s)}function XN(r,e,t){Wa(r,e);var n,i=e[er];!B(i)&&!B(i[Hr])&&!B(i[Hr][No])?(n=i[Hr][No],delete i[Hr][No]):!B(e[Zr])&&!B(e[Zr][No])&&(n=e[Zr][No],delete e[Zr][No]);var o=e[er],a;((e.ext||{}).trace||{})[ja]&&(a=e.ext.trace[ja]);var s=o.id||a,u=o[Qn],c=o.uri,l=o[Hr]||{},v=o[Do]||{};if(B(o.refUri)||(l.refUri=o.refUri),B(o.pageType)||(l.pageType=o.pageType),B(o.isLoggedIn)||(l.isLoggedIn=o.isLoggedIn[Li]()),!B(o[Hr])){var _=o[Hr];ae(_,function(N,E){l[N]=E})}Co(e[Zr],l,v),B(t)||Va(l,t);var g=new Ma(r,u,c,n,l,v,s),p=new Oi(Ma[nn],g);return Ka(r,Ma[yo],e,p)}function JN(r,e,t){Wa(r,e);var n=e[er],i=n[Qn],o=n.uri||n.url,a=n[Hr]||{},s=n[Do]||{};Co(e[Zr],a,s),B(t)||Va(a,t);var u=new Ha(r,i,o,void 0,a,s,n),c=new Oi(Ha[nn],u);return Ka(r,Ha[yo],e,c)}function QN(r,e,t){Wa(r,e);var n=e[er].message,i=e[er].severityLevel,o=e[er][Hr]||{},a=e[er][Do]||{};Co(e[Zr],o,a),B(t)||Va(o,t);var s=new ka(r,n,i,o,a),u=new Oi(ka[nn],s);return Ka(r,ka[yo],e,u)}var ig,er,Hr,KN,$x,ZN=Y(()=>{"use strict";d();xt();Yi();$e();zN();bo();ig="baseType",er="baseData",Hr="properties",KN="true";$x={Version:"3.3.4"}});var eT,$d,qx,ag,rT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();bo();eT=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[eu]=function(){return n},this._set=function(a){return n=a,n},Ce(r,this,function(a){a[Ui]=function(s){if(a[Mi]()>=t[Ld]){i||(H(e,2,105,"Maximum in-memory buffer size reached: "+a[Mi](),!0),i=!0);return}s.cnt=s.cnt||0,!(!B(o)&&s.cnt>o)&&n[on](s)},a[Mi]=function(){return n[De]},a.size=function(){for(var s=n[De],u=0;u<n[De];u++)s+=n[u].item[De];return t[Vc]||(s+=2),s},a[Io]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[De]>0){var u=[];R(s,function(l){u[on](l[ru])});var c=t[Vc]?u.join(`
10
+ `):"["+u.join(",")+"]";return c}return null},a[Kc]=function(s,u,c){var l=n.slice(0);s=s||e,u=u||{};var v=c?new ag(s,u):new $d(s,u);return R(l,function(_){v[Ui](_)}),v}})}return r.__ieDyn=1,r})(),$d=(function(r){It(e,r);function e(t,n){var i=r.call(this,t,n)||this;return Ce(e,i,function(o,a){o[tu]=function(s){a[Io]()},o[za]=function(s){}}),i}return e.__ieDyn=1,e})(eT),qx=["AI_buffer","AI_sentBuffer"],ag=(function(r){It(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[Wc]||{getItem:Ym,setItem:Lm},c=u.getItem,l=u.setItem,v=i.maxRetryCnt;return Ce(e,o,function(_,g){var p=w(e[Ud]),N=w(e[Fi]),E=W(),x=N[xo](E),T=_._set(p[xo](x));T[De]>e[nu]&&(T[De]=e[nu]),j(e[Fi],[]),j(e[Ud],T),_[Ui]=function(V){if(_[Mi]()>=e[nu]){a||(H(n,2,67,"Maximum buffer size reached: "+_[Mi](),!0),a=!0);return}V.cnt=V.cnt||0,!(!B(v)&&V.cnt>v)&&(g[Ui](V),j(e.BUFFER_KEY,_[eu]()))},_[Io]=function(){g[Io](),j(e.BUFFER_KEY,_[eu]()),j(e[Fi],[]),a=!1},_[tu]=function(V){j(e[Ud],_._set(I(V,_[eu]())));var G=w(e[Fi]);G instanceof Array&&V instanceof Array&&(G=G[xo](V),G[De]>e[nu]&&(H(n,1,67,"Sent buffer reached its maximum size: "+G[De],!0),G[De]=e[nu]),j(e[Fi],G))},_[za]=function(V){var G=w(e[Fi]);G=I(V,G),j(e[Fi],G)},_[Kc]=function(V,G,Z){Z=!!Z;var fe=_[eu]().slice(0),Se=w(e[Fi]).slice(0);V=V||n,G=G||{},_[Io]();var F=Z?new e(V,G):new $d(V,G);return R(fe,function(k){F[Ui](k)}),Z&&F[tu](Se),F};function I(V,G){var Z=[],fe=[];return R(V,function(Se){fe[on](Se[ru])}),R(G,function(Se){!se(Se)&&Me(fe,Se[ru])===-1&&Z[on](Se)}),Z}function w(V){var G=V;return G=s?s+"_"+G:G,U(G)}function U(V){try{var G=c(n,V);if(G){var Z=Xr().parse(G);if(Ne(Z)&&(Z=Xr().parse(Z)),Z&&Q(Z))return Z}}catch(fe){H(n,1,42," storage key: "+V+", "+or(fe),{exception:te(fe)})}return[]}function j(V,G){var Z=V;try{Z=s?s+"_"+Z:Z;var fe=JSON[To](G);l(n,Z,fe)}catch(Se){l(n,Z,JSON[To]([])),H(n,2,41," storage key: "+Z+", "+or(Se)+". Buffer cleared",{exception:te(Se)})}}function W(){var V=[];try{return R(qx,function(G){var Z=ne(G);if(V=V[xo](Z),s){var fe=s+"_"+G,Se=ne(fe);V=V[xo](Se)}}),V}catch(G){H(n,2,41,"Transfer events from previous buffers: "+or(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ne(V){try{var G=U(V),Z=[];return R(G,function(fe){var Se={item:fe,cnt:0};Z[on](Se)}),Um(n,V),Z}catch{}return[]}}),o}var t;return t=e,e.VERSION="_1",e.BUFFER_KEY="AI_buffer"+t.VERSION,e.SENT_BUFFER_KEY="AI_sentBuffer"+t.VERSION,e.MAX_BUFFER_SIZE=2e3,e})(eT)});var tT,nT=Y(()=>{"use strict";d();Ur();$e();bo();tT=(function(){function r(e){Ce(r,this,function(t){t[uu]=function(a){var s=n(a,"root");try{return Xr()[To](s)}catch(u){H(e,1,48,u&&se(u[Li])?u[Li]():"Error serializing object",null,!0)}};function n(a,s){var u="__aiCircularRefCheck",c={};if(!a)return H(e,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),c;if(a[u])return H(e,2,50,"Circular reference detected while serializing object",{name:s},!0),c;if(!a.aiDataContract){if(s==="measurements")c=o(a,"number",s);else if(s==="properties")c=o(a,"string",s);else if(s==="tags")c=o(a,"string",s);else if(Q(a))c=i(a,s);else{H(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{Xr()[To](a),c=a}catch(l){H(e,1,48,l&&se(l[Li])?l[Li]():"Error serializing object",null,!0)}}return c}return a[u]=!0,ae(a.aiDataContract,function(l,v){var _=se(v)?v()&1:v&1,g=se(v)?v()&4:v&4,p=v&2,N=a[l]!==void 0,E=nr(a[l])&&a[l]!==null;if(_&&!N&&!p)H(e,1,24,"Missing required field specification. The field is required but not present on source",{field:l,name:s});else if(!g){var x=void 0;E?p?x=i(a[l],l):x=n(a[l],l):x=a[l],x!==void 0&&(c[l]=x)}}),delete a[u],c}function i(a,s){var u;if(a)if(!Q(a))H(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
11
+ `,{name:s},!0);else{u=[];for(var c=0;c<a[De];c++){var l=a[c],v=n(l,s+"["+c+"]");u[on](v)}}return u}function o(a,s,u){var c;return a&&(c={},ae(a,function(l,v){if(s==="string")v===void 0?c[l]="undefined":v===null?c[l]="null":v[Li]?c[l]=v[Li]():c[l]="invalid field: toString() is not defined.";else if(s==="number")if(v===void 0)c[l]="undefined";else if(v===null)c[l]="null";else{var _=parseFloat(v);c[l]=_}else c[l]="invalid field: "+u+" is of unknown type.",H(e,1,c[l],null,!0)})),c}})}return r.__ieDyn=1,r})()});var Xx,iT,oT=Y(()=>{"use strict";d();bo();Xx=8,iT=(function(){function r(){}return r.prototype.getHashCodeScore=function(e){var t=this.getHashCode(e)/r.INT_MAX_VALUE;return t*100},r.prototype.getHashCode=function(e){if(e==="")return 0;for(;e[De]<Xx;)e=e[xo](e);for(var t=5381,n=0;n<e[De];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var aT,sT=Y(()=>{"use strict";d();Yi();bo();oT();aT=(function(){function r(){var e=this,t=new iT,n=new zc;e[Wd]=function(i){var o=0;return i[Ir]&&i[Ir][n.userId]?o=t.getHashCodeScore(i[Ir][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[VN](i.ext.user.id):i[Ir]&&i[Ir][n.operationId]?o=t.getHashCodeScore(i[Ir][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[ja]?o=t.getHashCodeScore(i.ext.telemetryTrace[ja]):o=Math.random()*100,o}}return r})()});var uT,cT=Y(()=>{"use strict";d();Yi();$e();bo();sT();uT=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Si(null);(e>100||e<0)&&(n.throwInternal(2,58,"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[cu]=e,this.samplingScoreGenerator=new aT}return r.prototype.isSampledIn=function(e){var t=this[cu],n=!1;return t==null||t>=100||e.baseType===wi[nn]?!0:(n=this.samplingScoreGenerator[Wd](e)<t,n)},r})()});function lT(r){try{return r.responseText}catch{}return null}function Qx(r){return r&&r.sendPOST}function Zx(r){return!isNaN(r)&&r>0&&r<=100}var qe,Hi,Zn,fT,Jx,dT,eA,Xc,vT=Y(()=>{"use strict";d();xt();Ur();Yi();$e();he();ZN();rT();nT();cT();bo();Zn=void 0,fT="",Jx=65e3;dT=Rn((qe={endpointUrl:bs(cn,Ia+Xn)},qe[Vc]=rn(),qe[tg]=15e3,qe[$m]=102400,qe.disableTelemetry=rn(),qe[Xm]=rn(!0),qe.isRetryDisabled=rn(),qe[Hd]=rn(!0),qe[Qm]=rn(!0),qe[Gd]=rn(),qe[Jm]=rn(),qe[kd]=rn(),qe[su]=Zn,qe.namePrefix=Zn,qe.samplingPercentage=bs(Zx,100),qe[Fd]=Zn,qe[rg]=Zn,qe[Ld]=1e4,qe[Wc]=!1,qe.httpXHROverride={isVal:Qx,v:Zn},qe[qm]=rn(),qe.transports=Zn,qe.retryCodes=Zn,qe.maxRetryCnt={isVal:Wr,v:10},qe));eA=(Hi={},Hi[Ri.dataType]=og,Hi[ka.dataType]=QN,Hi[Ma.dataType]=XN,Hi[Ha.dataType]=JN,Hi[Ua.dataType]=$N,Hi[wi.dataType]=qN,Hi[Fa.dataType]=WN,Hi),Xc=(function(r){It(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=Od;var n,i,o,a,s,u,c,l,v=0,_,g,p,N,E,x,T,I,w,U,j,W,ne,V,G,Z,fe,Se,F,k,ve,ue,A,_e,re,ye,$;return Ce(e,t,function(C,Oe){ee(),C.pause=function(){O(),a=!0},C.resume=function(){a&&(a=!1,i=null,Pe(),h())},C.flush=function(f,m,S){if(f===void 0&&(f=!0),!a){O();try{return C[iu](f,null,S||1)}catch(y){H(C[et](),1,22,"flush failed, telemetry will not be collected: "+or(y),{exception:te(y)})}}},C.onunloadFlush=function(){if(!a)if(T||k)try{return C[iu](!0,ar,2)}catch(f){H(C[et](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+or(f),{exception:te(f)})}else C.flush(!1)},C.addHeader=function(f,m){l[f]=m},C[Md]=function(f,m,S,y){C.isInitialized()&&H(C[et](),1,28,"Sender is already initialized"),Oe[Md](f,m,S,y);var P=C.identifier;u=new tT(m.logger),n=0,i=null,o=0,C[ou]=null,c=0;var L=C[et]();p=zt(Jr("Sender"),m.evtNamespace&&m.evtNamespace()),g=Wm(p),C._addHook(Fr(f,function(z){var pe=z.cfg;pe.storagePrefix&&Om(pe.storagePrefix);var Re=mt(null,pe,m),ce=Re.getExtCfg(P,dT),St=ce[au];if(N&&St===N){var ii=pe[au];ii&&ii!==St&&(ce[au]=ii)}vt(ce[su])&&(ce[su]=pe[su]),Ye(C,"_senderConfig",{g:function(){return ce}}),E!==ce[au]&&(N=E=ce[au]),m.activeStatus()===Ft.PENDING?C.pause():m.activeStatus()===Ft.ACTIVE&&C.resume(),U&&U!==ce[Fd]&&R(U,function(zr){delete l[zr.header]}),x=ce[$m],T=(ce[kd]===!1||ce[Hd]===!1)&&en(),I=ce[kd]===!1&&en(),w=ce[Hd]===!1&&en(),k=ce[qm],ve=!!ce[Gd],$=ce.retryCodes;var Nt=ce[Wc],An=!!ce[Xm]&&(!!Nt||Cd()),uf=ce.namePrefix,tD=An!==Z||An&&Se!==uf||An&&fe!==Nt;if(C[ki]){if(tD)try{C._buffer=C._buffer[Kc](L,ce,An)}catch(zr){H(C[et](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+or(zr),{exception:te(zr)})}Pe()}else C[ki]=An?new ag(L,ce):new $d(L,ce);Se=uf,Z=An,fe=Nt,ue=!ce[Jm]&&gi(!0),re=!!ce[Qm],C._sample=new uT(ce.samplingPercentage,L),W=ce[su],!vt(W)&&!Ie(W,pe)&&H(L,1,100,"Invalid Instrumentation key "+W),U=ce[Fd],Ne(N)&&!Ad(N)&&U&&U[De]>0?R(U,function(zr){t.addHeader(zr.header,zr.value)}):U=null,F=ce[Zm];var Yg=lt();ye?ye.SetConfig(Yg):(ye=new va,ye[Md](Yg,L));var cf=ce.httpXHROverride,ff=null,gu=null,nD=pi([3,1,2],ce.transports);ff=ye&&ye[$c](nD,!1);var Iv=ye&&ye.getFallbackInst();A=function(zr,Yo){return X(Iv,zr,Yo)},_e=function(zr,Yo){return X(Iv,zr,Yo,!1)},ff=k?cf:ff||cf||Iv,C[ou]=function(zr,Yo){return X(ff,zr,Yo)},ue&&(_=Wt);var xv=pi([3,1],ce[eg]);ue||(xv=xv.filter(function(zr){return zr!==2})),gu=ye&&ye[$c](xv,!0),gu=k?cf:gu||cf,(k||ce[eg]||!_)&&gu&&(_=function(zr,Yo){return X(gu,zr,Yo)}),_||(_=A),j=ce.disableTelemetry,ne=ce[rg]||Zn,V=ce.isRetryDisabled,G=ce[tg]}))},C.processTelemetry=function(f,m){var S;m=C._getTelCtx(m);var y=m[et]();try{var P=Be(f,y);if(!P)return;var L=Ue(f,y);if(!L)return;var z=u[uu](L),pe=C[ki];Pe(z);var Re=(S={},S[ru]=z,S.cnt=0,S);pe[Ui](Re),h()}catch(ce){H(y,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+or(ce),{exception:te(ce)})}C.processNext(f,m)},C.isCompletelyIdle=function(){return!a&&v===0&&C._buffer[Mi]()===0},C.getOfflineListener=function(){return g},C._xhrReadyStateChange=function(f,m,S){if(!tt(m))return vr(f,m,S)},C[iu]=function(f,m,S){f===void 0&&(f=!0);var y;if(!a)try{var P=C[ki];if(j)P[Io]();else{if(P[Mi]()>0){var L=P.getItems();de(S||0,f),m?y=m.call(C,L,f):y=C[ou](L,f)}o=+new Date}O()}catch(pe){var z=Vu();(!z||z>9)&&H(C[et](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+or(pe),{exception:te(pe)})}return y},C.getOfflineSupport=function(){var f;return f={getUrl:function(){return N},createPayload:b},f[uu]=Xe,f.batch=Ve,f.shouldProcess=function(m){return!!Be(m)},f},C._doTeardown=function(f,m){C.onunloadFlush(),hi(g,!1),ee()},C[Ao]=function(f,m,S){if(!tt(f))return Kt(f,m,S)},C[Bd]=function(f,m){if(!tt(f))return jr(f,m)},C[qc]=function(f,m){if(!tt(f))return Ar(f,m)},C._xdrOnLoad=function(f,m){if(!tt(m))return We(f,m)};function We(f,m){var S=lT(f);if(f&&(S+""=="200"||S===""))n=0,C[qc](m,0);else{var y=da(S);y&&y[jd]&&y[jd]>y[zd]&&!V?C[Bd](m,y):C[Ao](m,na(f))}}function lt(){var f;try{var m={xdrOnComplete:function(y,P,L){var z=dt(L);if(z)return We(y,z)},fetchOnComplete:function(y,P,L,z){var pe=dt(z);if(pe)return Fe(y.status,pe,y.url,pe[De],y.statusText,L||"")},xhrOnComplete:function(y,P,L){var z=dt(L);if(z)return vr(y,z,z[De])},beaconOnRetry:function(y,P,L){return rt(y,P,L)}},S=(f={},f[Zm]=F,f.isOneDs=!1,f.disableCredentials=!1,f[Gd]=ve,f.disableBeacon=!w,f.disableBeaconSync=!I,f.senderOnCompleteCallBack=m,f);return S}catch{}return null}function vr(f,m,S){f.readyState===4&&Fe(f.status,m,f.responseURL,S,_i(f),lT(f)||f.response)}function Kt(f,m,S){H(C[et](),2,26,"Failed to send telemetry.",{message:m}),C._buffer&&C._buffer[za](f)}function jr(f,m){for(var S=[],y=[],P=m.errors.reverse(),L=0,z=P;L<z.length;L++){var pe=z[L],Re=f.splice(pe.index,1)[0];M(pe.statusCode)?y[on](Re):S[on](Re)}f[De]>0&&C[qc](f,m[zd]),S[De]>0&&C[Ao](S,_i(null,["partial success",m[zd],"of",m.itemsReceived].join(" "))),y[De]>0&&(Yr(y),H(C[et](),2,40,"Partial success. Delivered: "+f[De]+", Failed: "+S[De]+". Will retry to send "+y[De]+" our of "+m[jd]+" items"))}function Ar(f,m){C._buffer&&C._buffer[za](f)}function dt(f){try{if(f){var m=f,S=m[Vd];return S&&S[De]?S:null}}catch{}return null}function Be(f,m){if(j)return!1;if(!f)return m&&H(m,1,7,"Cannot send empty telemetry"),!1;if(f.baseData&&!f[Kd])return m&&H(m,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(f[Kd]||(f[Kd]="EventData"),!C[ou])return m&&H(m,1,28,"Sender was not initialized"),!1;if(K(f))f[Oc]=C._sample[cu];else return m&&H(m,2,33,"Telemetry item was sampled out and not sent",{SampleRate:C._sample[cu]}),!1;return!0}function Ue(f,m){var S=f.iKey||W,y=e.constructEnvelope(f,S,m,ne);if(!y){H(m,1,47,"Unable to create an AppInsights envelope");return}var P=!1;if(f[Ir]&&f[Ir][Yc]&&(R(f[Ir][Yc],function(L){try{L&&L(y)===!1&&(P=!0,pt(m,"Telemetry processor check returns false"))}catch(z){H(m,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+or(z),{exception:te(z)},!0)}}),delete f[Ir][Yc]),!P)return y}function Xe(f){var m=fT,S=C[et]();try{var y=Be(f,S),P=null;y&&(P=Ue(f,S)),P&&(m=u[uu](P))}catch{}return m}function Ve(f){var m=fT;return f&&f[De]&&(m="["+f.join(",")+"]"),m}function b(f){var m,S=we();return m={urlString:N},m[Zr]=f,m.headers=S,m}function K(f){return C._sample.isSampledIn(f)}function ie(f,m,S,y){m===200&&f?C._onSuccess(f,f[De]):y&&C[Ao](f,y)}function X(f,m,S,y){y===void 0&&(y=!0);var P=function(pe,Re,ce){return ie(m,pe,Re,ce)},L=oe(m),z=f&&f.sendPOST;return z&&L?(y&&C._buffer[tu](m),z(L,P,!S)):null}function oe(f){var m;if(Q(f)&&f[De]>0){var S=C[ki].batchPayloads(f),y=we(),P=(m={},m[Zr]=S,m.urlString=N,m.headers=y,m.disableXhrSync=ve,m.disableFetchKeepAlive=!ue,m[Vd]=f,m);return P}return null}function we(){try{var f=l||{};return Ad(N)&&(f[yd[6]]=yd[7]),f}catch{}return null}function Pe(f){var m=f?f[De]:0;return C[ki].size()+m>x?((!g||g.isOnline())&&C[iu](!0,null,10),!0):!1}function Fe(f,m,S,y,P,L){var z=null;if(C._appId||(z=da(L),z&&z.appId&&(C._appId=z.appId)),(f<200||f>=300)&&f!==0){if((f===301||f===307||f===308)&&!Je(S)){C[Ao](m,P);return}if(g&&!g.isOnline()){if(!V){var pe=10;Yr(m,pe),H(C[et](),2,40,". Offline - Response Code: ".concat(f,". Offline status: ").concat(!g.isOnline(),". Will retry to send ").concat(m.length," items."))}return}!V&&M(f)?(Yr(m),H(C[et](),2,40,". Response code "+f+". Will retry to send "+m[De]+" items.")):C[Ao](m,P)}else Je(S),f===206?(z||(z=da(L)),z&&!V?C[Bd](m,z):C[Ao](m,P)):(n=0,C[qc](m,y))}function Je(f){return c>=10?!1:!B(f)&&f!==""&&f!==N?(N=f,++c,!0):!1}function ar(f,m){if(_)_(f,!1);else{var S=ye&&ye[$c]([3],!0);return X(S,f,m)}}function rt(f,m,S){var y=f,P=y&&y[Vd];if(re)_e&&_e(P,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var L=[],z=0;z<P[De];z++){var pe=P[z],Re=[pe],ce=oe(Re);S(ce,m)?C._onSuccess(Re,Re[De]):L[on](pe)}L[De]>0&&(_e&&_e(L,!0),H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function tt(f){try{if(f&&f[De])return Ne(f[0])}catch{}return null}function Wt(f,m){var S=null;if(Q(f)){for(var y=f[De],P=0;P<f[De];P++)y+=f[P].item[De];var L=ye.getSyncFetchPayload();L+y<=Jx?S=2:en()?S=3:(S=1,H(C[et](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var z=ye&&ye[$c]([S],!0);return X(z,f,m)}return null}function Yr(f,m){if(m===void 0&&(m=1),!(!f||f[De]===0)){var S=C[ki];S[za](f),n++;for(var y=0,P=f;y<P.length;y++){var L=P[y];L.cnt=L.cnt||0,L.cnt++,S[Ui](L)}ni(m),h()}}function ni(f){var m=10,S;if(n<=1)S=m;else{var y=(Math.pow(2,n)-1)/2,P=Math.floor(Math.random()*y*m)+1;P=f*P,S=Math.max(Math.min(P,3600),m)}var L=cr()+S*1e3;i=L}function h(){if(!s&&!a){var f=i?Math.max(0,i-cr()):0,m=Math.max(G,f);s=Mt(function(){s=null,C[iu](!0,null,1)},m)}}function O(){s&&s.cancel(),s=null,i=null}function M(f){return B($)?f===401||f===408||f===429||f===500||f===502||f===503||f===504:$[De]&&$.indexOf(f)>-1}function J(){var f="getNotifyMgr";return C.core[f]?C.core[f]():C.core._notificationManager}function de(f,m){var S=J();if(S&&S[ng])try{S[ng](f,m)}catch(y){H(C[et](),1,74,"send request notification failed: "+or(y),{exception:te(y)})}}function Ie(f,m){var S=m.disableInstrumentationKeyValidation,y=B(S)?!1:S;if(y)return!0;var P="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",L=new RegExp(P);return L.test(f)}function ee(){C[ou]=null,C[ki]=null,C._appId=null,C._sample=null,l={},g=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,v=0,_=null,p=null,N=null,E=null,x=0,T=!1,U=null,j=!1,W=null,ne=Zn,V=!1,Z=null,Se=Zn,ve=!1,ue=!1,re=!1,A=null,_e=null,ye=null,Ye(C,"_senderConfig",{g:function(){return rl({},dT)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!B(n)?a=Xt(Xt({},t),{iKey:n}):a=t;var s=eA[a.baseType]||og;return s(i,a,o)},e})(yi)});var sg=Y(()=>{"use strict";d();vT()});var $a,Jc,ug,qa,cg,fu,_T=Y(()=>{"use strict";d();$a="instrumentationKey",Jc="connectionString",ug="instrumentationkey",qa="endpointUrl",cg="ingestionendpoint",fu="userOverrideEndpointUrl"});var pT={};df(pT,{AppInsightsCore:()=>Ii,ApplicationInsights:()=>nA,Sender:()=>Xc,SeverityLevel:()=>zm,arrForEach:()=>R,isNullOrUndefined:()=>B,proxyFunctions:()=>jt,throwError:()=>hr});function tA(r){return r&&r>0}var lu,fg,rA,nA,mT=Y(()=>{"use strict";d();Ur();sg();Yi();$e();Zo();he();_T();$e();Yi();sg();fg=void 0,rA=(lu={diagnosticLogInterval:bs(tA,1e4)},lu[Jc]=fg,lu[qa]=fg,lu[$a]=fg,lu.extensionConfig={},lu);nA=(function(){function r(e){var t=new Ii,n;(B(e)||B(e[$a])&&B(e[Jc]))&&hr("Invalid input configuration"),Ce(r,this,function(o){Ye(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,jt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Qe(e||{},rA);n=s.cfg,t.addUnloadHook(Fr(s,function(){var u=n[Jc];if(vt(u)){var c=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[$a];if(!N.rejected&&E){n[Jc]=E;var T=Hc(E);x=T[ug]||x}g(x)})}),l=ku(function(g,p){Gt(u,function(N){var E=N.value,x=n[qa];if(!N.rejected&&E){var T=Hc(E),I=T[cg];x=I?I+Xn:x}g(x)})});n[$a]=c,n[qa]=n[fu]||l}if(Ne(u)){var v=Hc(u),_=v[cg];n[qa]=n[fu]?n[fu]:_+Xn,n[$a]=v[ug]||n[$a]}n[qa]=n[fu]?n[fu]:n[qa]})),t.initialize(n,[new Xc])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var TT=nt((pk,NT)=>{"use strict";d();function ri(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function ST(r,e){for(var t="",n=0,i=-1,o=0,a,s=0;s<=r.length;++s){if(s<r.length)a=r.charCodeAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,o=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o!==-1?++o:o=-1}return t}function aA(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n}var du={resolve:function(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var o;i>=0?o=arguments[i]:(n===void 0&&(n=process.cwd()),o=n),ri(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=ST(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ri(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=ST(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ri(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];ri(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":du.normalize(e)},relative:function(e,t){if(ri(e),ri(t),e===t||(e=du.resolve(e),t=du.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,o=i-n,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var s=t.length,u=s-a,c=o<u?o:u,l=-1,v=0;v<=c;++v){if(v===c){if(u>c){if(t.charCodeAt(a+v)===47)return t.slice(a+v+1);if(v===0)return t.slice(a+v)}else o>c&&(e.charCodeAt(n+v)===47?l=v:v===0&&(l=0));break}var _=e.charCodeAt(n+v),g=t.charCodeAt(a+v);if(_!==g)break;_===47&&(l=v)}var p="";for(v=n+l+1;v<=i;++v)(v===i||e.charCodeAt(v)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+t.slice(a+l):(a+=l,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(ri(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){i=a;break}}else o=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ri(e);var n=0,i=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(c===47){if(!o){n=a+1;break}}else u===-1&&(o=!1,u=a+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(i=a):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){n=a+1;break}}else i===-1&&(o=!1,i=a+1);return i===-1?"":e.slice(n,i)}},extname:function(e){ri(e);for(var t=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!o){n=s+1;break}continue}i===-1&&(o=!1,i=s+1),u===46?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return aA("/",e)},parse:function(e){ri(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,o;i?(t.root="/",o=1):o=0;for(var a=-1,s=0,u=-1,c=!0,l=e.length-1,v=0;l>=o;--l){if(n=e.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?a===-1?a=l:v!==1&&(v=1):a!==-1&&(v=-1)}return a===-1||u===-1||v===0||v===1&&a===u-1&&a===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,u)):(t.name=e.slice(s,a),t.base=e.slice(s,u)),t.ext=e.slice(a,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};du.posix=du;NT.exports=du});var Eg=nt(Po=>{"use strict";d();Object.defineProperty(Po,"__esModule",{value:!0});Po.TargetPopulation=Po.Filters=Po.VSCodeFilterProvider=void 0;var ov=require("vscode"),gg=class r{constructor(e,t,n){this.extensionName=e,this.extensionVersion=t,this.targetPopulation=n}static trimVersionSuffix(e){let t=/\-[a-zA-Z0-9]+$/;return e.split(t)[0]}getFilterValue(e){switch(e){case ti.ApplicationVersion:return r.trimVersionSuffix(ov.version);case ti.Build:return ov.env.appName;case ti.ClientId:return ov.env.machineId;case ti.ExtensionName:return this.extensionName;case ti.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case ti.Language:return ov.env.language;case ti.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(ti);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Po.VSCodeFilterProvider=gg;var ti;(function(r){r.Market="X-MSEdge-Market",r.CorpNet="X-FD-Corpnet",r.ApplicationVersion="X-VSCode-AppVersion",r.Build="X-VSCode-Build",r.ClientId="X-MSEdge-ClientId",r.ExtensionName="X-VSCode-ExtensionName",r.ExtensionVersion="X-VSCode-ExtensionVersion",r.Language="X-VSCode-Language",r.TargetPopulation="X-VSCode-TargetPopulation"})(ti||(Po.Filters=ti={}));var OT;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(OT||(Po.TargetPopulation=OT={}))});var YT=nt(av=>{"use strict";d();Object.defineProperty(av,"__esModule",{value:!0});av.BaseFeatureProvider=void 0;var hg=class{constructor(e){this.telemetry=e,this.isFetching=!1}async getFeatures(){if(this.isFetching&&this.fetchPromise)return this.fetchPromise;this.fetchPromise=this.fetch();let e=await this.fetchPromise;return this.isFetching=!1,this.fetchPromise=void 0,e}};av.BaseFeatureProvider=hg});var LT=nt(sv=>{"use strict";d();Object.defineProperty(sv,"__esModule",{value:!0});sv.FilteredFeatureProvider=void 0;var pA=YT(),Sg=class extends pA.BaseFeatureProvider{constructor(e,t){super(e),this.telemetry=e,this.filterProviders=t,this.cachedTelemetryEvents=[]}getFilters(){let e=new Map;for(let t of this.filterProviders){let n=t.getFilters();for(let i of n.keys()){let o=n.get(i);e.set(i,o)}}return e}PostEventToTelemetry(e){if(this.cachedTelemetryEvents.includes(e))return;let t=JSON.stringify(e);this.telemetry.postEvent("report-headers",new Map([["ABExp.headers",t]])),this.cachedTelemetryEvents.push(e)}};sv.FilteredFeatureProvider=Sg});var UT=nt(Ro=>{"use strict";d();Object.defineProperty(Ro,"__esModule",{value:!0});Ro.TasApiFeatureProvider=Ro.TASAPI_FETCHERROR_EVENTNAME=void 0;var mA=LT();Ro.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var Ng="ErrorType",Tg=class extends mA.FilteredFeatureProvider{constructor(e,t,n){super(t,n),this.httpClient=e,this.telemetry=t,this.filterProviders=n}async fetch(){let e=this.getFilters(),t={};for(let s of e.keys()){let u=e.get(s);t[s]=u}let n;try{n=await this.httpClient.get({headers:t})}catch(s){let u=s,c=new Map;u.responseReceived&&!u.responseOk?c.set(Ng,"ServerError"):u.responseReceived===!1?c.set(Ng,"NoResponse"):c.set(Ng,"GenericError"),this.telemetry.postEvent(Ro.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Ro.TASAPI_FETCHERROR_EVENTNAME);e.keys.length>0&&this.PostEventToTelemetry(t);let i=n.data,o=i.Configs,a=[];for(let s of o)if(s.Parameters)for(let u of Object.keys(s.Parameters)){let c=u+(s.Parameters[u]?"":"cf");a.includes(c)||a.push(c)}return{features:a,assignmentContext:i.AssignmentContext,configs:o}}};Ro.TasApiFeatureProvider=Tg});var MT=nt(_u=>{"use strict";d();Object.defineProperty(_u,"__esModule",{value:!0});_u.HttpClient=_u.FetchError=void 0;var vu=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};_u.FetchError=vu;var Dg=class{constructor(e){this.endpoint=e}async get(e){let t=await fetch(this.endpoint,{method:"GET",headers:e?.headers});if(!t)throw new vu("No response received",!1);if(!t.ok)throw new vu("Response not ok",!0,!1);let n=await t.json();if(!n)throw new vu("No data received",!1);return{data:n}}};_u.HttpClient=Dg});var FT=nt(uv=>{"use strict";d();Object.defineProperty(uv,"__esModule",{value:!0});uv.MemoryKeyValueStorage=void 0;var yg=class{constructor(){this.storage=new Map}async getValue(e,t){return this.storage.has(e)?await Promise.resolve(this.storage.get(e)):await Promise.resolve(t||void 0)}setValue(e,t){this.storage.set(e,t)}};uv.MemoryKeyValueStorage=yg});var kT=nt(cv=>{"use strict";d();Object.defineProperty(cv,"__esModule",{value:!0});cv.ExperimentationServiceBase=void 0;var gA=FT(),Ig=class{get features(){return this._features}set features(e){this._features=e,this.telemetry&&this.telemetry.setSharedProperty(this.assignmentContextTelemetryPropertyName,this.features.assignmentContext)}constructor(e,t,n,i,o){this.telemetry=e,this.assignmentContextTelemetryPropertyName=t,this.telemetryEventName=n,this.storageKey=i,this.storage=o,this.featuresConsumed=!1,this.cachedTelemetryEvents=[],this._features={features:[],assignmentContext:"",configs:[]},this.storageKey||(this.storageKey="ABExp.Features"),this.storage||(o=new gA.MemoryKeyValueStorage),this.loadCachePromise=this.loadCachedFeatureData(),this.initializePromise=this.loadCachePromise,this.initialFetch=new Promise((a,s)=>{this.resolveInitialFetchPromise=a})}async getFeaturesAsync(e=!1){if(this.fetchPromise!=null){try{await this.fetchPromise}catch{}return this.features}if(!this.featureProviders||this.featureProviders.length===0)return Promise.resolve({features:[],assignmentContext:"",configs:[]});try{this.fetchPromise=Promise.all(this.featureProviders.map(async n=>await n.getFeatures()));let t=await this.fetchPromise;this.updateFeatures(t,e)}catch{}return this.fetchPromise=void 0,this.resolveInitialFetchPromise&&(this.resolveInitialFetchPromise(),this.resolveInitialFetchPromise=void 0),this.features}updateFeatures(e,t=!1){let n={features:[],assignmentContext:"",configs:[]};for(let i of e){for(let o of i.features)n.features.includes(o)||n.features.push(o);for(let o of i.configs){let a=n.configs.find(s=>s.Id===o.Id);a?a.Parameters=Object.assign(Object.assign({},a.Parameters),o.Parameters):n.configs.push(o)}n.assignmentContext+=i.assignmentContext}(t||!this.featuresConsumed)&&(this.features=n),this.storage&&this.storage.setValue(this.storageKey,n)}async loadCachedFeatureData(){let e;this.storage&&(e=await this.storage.getValue(this.storageKey),e!==void 0&&e.configs===void 0&&(e.configs=[])),this.features.features.length===0&&(this.features=e||{features:[],assignmentContext:"",configs:[]})}isFlightEnabled(e){return this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isCachedFlightEnabled(e){return await this.loadCachePromise,this.featuresConsumed=!0,this.PostEventToTelemetry(e),this.features.features.includes(e)}async isFlightEnabledAsync(e){let t=await this.getFeaturesAsync(!0);return this.featuresConsumed=!0,this.PostEventToTelemetry(e),t.features.includes(e)}getTreatmentVariable(e,t){this.featuresConsumed=!0,this.PostEventToTelemetry(`${e}.${t}`);let n=this.features.configs.find(i=>i.Id===e);return n?.Parameters[t]}async getTreatmentVariableAsync(e,t,n){if(n){let i=this.featuresConsumed,o=this.getTreatmentVariable(e,t);if(o===void 0)this.featuresConsumed=i;else return o}return await this.getFeaturesAsync(!0),this.getTreatmentVariable(e,t)}PostEventToTelemetry(e){this.cachedTelemetryEvents.includes(e)||(this.telemetry.postEvent(this.telemetryEventName,new Map([["ABExp.queriedFeature",e]])),this.cachedTelemetryEvents.push(e))}invokeInit(){this.init()}addFeatureProvider(...e){if(!(e==null||this.featureProviders==null))for(let t of e)this.featureProviders.push(t)}};cv.ExperimentationServiceBase=Ig});var HT=nt(fv=>{"use strict";d();Object.defineProperty(fv,"__esModule",{value:!0});fv.PollingService=void 0;var xg=class{constructor(e){this.fetchInterval=e}StopPolling(){clearInterval(this.intervalHandle),this.intervalHandle=void 0}OnPollTick(e){this.onTick=e}StartPolling(e=!1){this.intervalHandle&&this.StopPolling(),this.onTick!=null&&(e&&this.onTick().then(()=>{}).catch(()=>{}),this.intervalHandle=setInterval(async()=>{await this.onTick()},this.fetchInterval),this.intervalHandle.unref&&this.intervalHandle.unref())}};fv.PollingService=xg});var GT=nt(lv=>{"use strict";d();Object.defineProperty(lv,"__esModule",{value:!0});lv.ExperimentationServiceAutoPolling=void 0;var EA=kT(),hA=HT(),Ag=class extends EA.ExperimentationServiceBase{constructor(e,t,n,i,o,a,s){if(super(e,i,o,a,s),this.telemetry=e,this.filterProviders=t,this.refreshRateMs=n,this.assignmentContextTelemetryPropertyName=i,this.telemetryEventName=o,this.storageKey=a,this.storage=s,n<1e3&&n!==0)throw new Error("The minimum refresh rate for polling is 1000 ms (1 second). If you wish to deactivate this auto-polling use value of 0.");n>0&&(this.pollingService=new hA.PollingService(n),this.pollingService.OnPollTick(async()=>{await super.getFeaturesAsync()}))}init(){this.pollingService?this.pollingService.StartPolling(!0):super.getFeaturesAsync()}async getFeaturesAsync(e=!1){if(this.pollingService){this.pollingService.StopPolling();let t=await super.getFeaturesAsync(e);return this.pollingService.StartPolling(),t}else return await super.getFeaturesAsync(e)}};lv.ExperimentationServiceAutoPolling=Ag});var BT=nt(vv=>{"use strict";d();Object.defineProperty(vv,"__esModule",{value:!0});vv.ExperimentationService=void 0;var SA=UT(),NA=MT(),TA=GT(),dv=class extends TA.ExperimentationServiceAutoPolling{constructor(e){super(e.telemetry,e.filterProviders||[],e.refetchInterval!=null?e.refetchInterval:0,e.assignmentContextTelemetryPropertyName,e.telemetryEventName,e.storageKey,e.keyValueStorage),this.options=e,this.invokeInit()}init(){this.featureProviders=[],this.addFeatureProvider(new SA.TasApiFeatureProvider(new NA.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};vv.ExperimentationService=dv;dv.REFRESH_RATE_IN_MINUTES=30});var jT=nt(_v=>{"use strict";d();Object.defineProperty(_v,"__esModule",{value:!0});_v.ExperimentationService=void 0;var DA=BT();Object.defineProperty(_v,"ExperimentationService",{enumerable:!0,get:function(){return DA.ExperimentationService}})});var zT=nt(pv=>{"use strict";d();Object.defineProperty(pv,"__esModule",{value:!0});pv.MementoKeyValueStorage=void 0;var bg=class{constructor(e){this.mementoGlobalStorage=e}async getValue(e,t){return await this.mementoGlobalStorage.get(e)||t}setValue(e,t){this.mementoGlobalStorage.update(e,t)}};pv.MementoKeyValueStorage=bg});var VT=nt(Pg=>{"use strict";d();Object.defineProperty(Pg,"__esModule",{value:!0});var Cg=class{constructor(){this.initializePromise=Promise.resolve(),this.initialFetch=Promise.resolve()}isFlightEnabled(e){return!1}isCachedFlightEnabled(e){return Promise.resolve(!1)}isFlightEnabledAsync(e){return Promise.resolve(!1)}getTreatmentVariable(e,t){}getTreatmentVariableAsync(e,t){return Promise.resolve(void 0)}};Pg.default=Cg});var WT=nt(pu=>{"use strict";d();Object.defineProperty(pu,"__esModule",{value:!0});pu.getExperimentationServiceAsync=pu.getExperimentationService=void 0;var yA=Eg(),IA=jT(),Rg=require("vscode"),xA=zT(),AA=VT(),bA="https://default.exp-tas.com/vscode/ab",CA="query-expfeature",PA="abexp.assignmentcontext",RA="VSCode.ABExp.FeatureData",wA=1e3*60*30;function KT(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=Rg.workspace.getConfiguration("telemetry");if(!(Rg.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):Rg.env.isTelemetryEnabled))return new AA.default;let c=[new yA.VSCodeFilterProvider(r,e,t),...o],l=new xA.MementoKeyValueStorage(i);return new IA.ExperimentationService({filterProviders:c,telemetry:n,storageKey:RA,keyValueStorage:l,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:PA,telemetryEventName:CA,endpoint:bA,refetchInterval:wA})}pu.getExperimentationService=KT;async function OA(r,e,t,n,i,...o){let a=KT(r,e,t,n,i,...o);return await a.initializePromise,a}pu.getExperimentationServiceAsync=OA});var qT=nt(wo=>{"use strict";d();Object.defineProperty(wo,"__esModule",{value:!0});wo.TargetPopulation=wo.getExperimentationServiceAsync=wo.getExperimentationService=void 0;var $T=WT();Object.defineProperty(wo,"getExperimentationService",{enumerable:!0,get:function(){return $T.getExperimentationService}});Object.defineProperty(wo,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return $T.getExperimentationServiceAsync}});var YA=Eg();Object.defineProperty(wo,"TargetPopulation",{enumerable:!0,get:function(){return YA.TargetPopulation}})});var KA={};df(KA,{activate:()=>VA});module.exports=cD(KA);d();var He=Tt(require("vscode"));d();var xr=Tt(require("vscode"));d();var Qc=Tt(require("vscode"));d();var Lx=async(r,e,t)=>{let n=await Promise.resolve().then(()=>(ma(),mS)),i=await Promise.resolve().then(()=>(aN(),oN)),o=new n.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:r,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(t){s.extensionConfig={};let l={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=l}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(l=>{l.ext=l.ext??{},l.ext.web=l.ext.web??{},l.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(l.ext.utc=l.ext.utc??{},l.ext.utc.flags=8462029)}),o},sN=async(r,e,t)=>{let n=await Lx(r,e,t);return{logEvent:(a,s)=>{try{n?.track({name:a,baseData:{name:a,properties:s?.properties,measurements:s?.measurements}})}catch(u){throw new Error(`Failed to log event to app insights!
12
12
  `+u.message)}},flush:async()=>{try{return new Promise((s,u)=>{if(!n){s();return}n.flush(!0,c=>{if(!c){u("Failed to flush app 1DS!");return}})})}catch(a){throw new Error(`Failed to flush 1DS!
13
- `+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};v();Oi();v();var ka=class r{static applyReplacements(e,t){for(let n of Object.keys(e))for(let i of t)i.lookup.test(n)&&(i.replacementString!==void 0?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return e.length===74&&e[32]==="-"&&e[41]==="-"&&e[46]==="-"&&e[51]==="-"&&e[56]==="-"&&e[69]==="-"}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.8"}}static getInstance(){return r._instance||(r._instance=new r),r._instance}};var aT=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(oT(),iT)),u={};if(n){let _={alwaysUseXhrOverride:!0,httpXHROverride:n};u[yv]=_}let c;r.startsWith("InstrumentationKey=")||(c=r);let l=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...l,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,extensionConfig:u})}catch(s){return Promise.reject(s)}return{logEvent:(s,u)=>{let c={...u?.properties,...u?.measurements};i?.length&&ka.applyReplacements(c,i),o?.track({name:s,data:c,baseType:"EventData",ext:{user:{id:e,authId:e},app:{sesId:t}},baseData:{name:s,properties:u?.properties,measurements:u?.measurements}})},flush:async()=>{o?.flush(!1)},dispose:async()=>new Promise(u=>{o?.unload(!0,()=>{u(),o=void 0},1e3)})}};v();var Gv=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){let i={...t};for(let o of Object.keys(i??{})){let a=i[o];typeof o=="string"&&a!==void 0&&(i[o]=new this.vscodeAPI.TelemetryTrustedValue(typeof a=="string"?a:a.value))}this.sendTelemetryEvent(e,i,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map(e=>e.dispose()))}};v();var Hi;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Hi||(Hi={}));var Bv=class{constructor(e,t){this._instantiationStatus=Hi.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Hi.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Hi.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});return}let n={stack:e.stack,message:e.message,name:e.name};if(t){let i=t.properties||t;t.properties={...i,...n}}else t={properties:n};this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:e,data:t})=>this.sendEventData(e,t)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:e,data:t})=>this.sendErrorData(e,t)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===Hi.NOT_INSTANTIATED&&(this._instantiationStatus=Hi.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Hi.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Hi.INSTANTIATED}))}};function jx(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var $c=class extends Gv{constructor(e,t){let n=a=>aT(a,Wc.env.machineId,Wc.env.sessionId,void 0,t);ka.shouldUseOneDataSystemSDK(e)&&(n=a=>XS(a,Wc));let i={release:jx(navigator),platform:"web",architecture:"web"},o=new Bv(e,n);if(e&&e.indexOf("AIF")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(o,Wc,{additionalCommonProperties:ka.getAdditionalCommonProperties(i)})}};v();var Vv=class{constructor(e,t,n){this.context=e;this.serviceId=t;this.Logger=n}context;serviceId;Logger;async setToken(e){try{return await this.context.secrets.store(this.serviceId,e)}catch(t){this.Logger.error(`Setting token failed: ${t}`)}}async getToken(){try{let e=await this.context.secrets.get(this.serviceId);return e&&e!=="[]"&&this.Logger.trace("Token acquired from secret storage."),e}catch(e){return this.Logger.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(this.serviceId)}catch(e){return this.Logger.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}};v();var He=tn(require("vscode"));v();var zx=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function sT(r){return zx.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function su(r,e){return r==="github"||rE(e)}function rE(r){return/\.ghe\.com$/.test(r.authority)}v();var tE=tn(require("vscode"));v();var qc="Timed out",Jn="User Cancelled",jv="network error",Qn="Cancelled";async function zv(r,e,t,n){let i;try{n.info("Getting user info..."),i=await r.send({url:e,method:"GET",retryFallbacks:!0,headers:{Authorization:`token ${t}`,"User-Agent":`${tE.env.appName} (${tE.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(jv)}if(i.ok)try{let a=await i.json();return n.info("Got account info!"),{id:`${a.id}`,accountName:a.login,avatarUrl:a.avatar_url}}catch(a){throw n.error(`Unexpected error parsing response from GitHub: ${a.message??a}`),a}let o=i.statusText;try{let a=await i.json();a.message&&(o=a.message)}catch{}throw n.error(`Getting account info failed: ${o}`),new Error(o)}v();v();var Dn=fetch;var Kv=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await Dn(e,{logger:this._logger,retryFallbacks:o,expectJSON:!0,method:t,headers:n,body:i});return{ok:a.ok,status:a.status,statusText:a.statusText,json:()=>a.json()}}};v();var $a=globalThis.crypto;v();var _T=tn(lT()),ge=require("vscode");v();var ut={gitHubClientId:"01ab8ac9400c4e429b23"};v();var Wv=class{constructor(...e){throw new Error("Not implemented")}};v();var vT=require("vscode");var Wx=(r,e)=>e(r);function Xc(r,e=Wx){let t,n=new vT.EventEmitter;return{promise:new Promise((i,o)=>{n.event(a=>o("Cancelled")),t=r(a=>{try{Promise.resolve(e(a,i,o)).catch(o)}catch(s){o(s)}})}).then(i=>(t.dispose(),i),i=>{throw t.dispose(),i}),cancel:n}}function nE(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}function dT(r){let e=new Uint8Array(r);return $a.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function pT(r){let t=new TextEncoder().encode(r),n=await $a.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function mT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=ut.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",ut.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await Dn(e.toString(!0),{logger:r,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(u.ok){let c=await u.json();return r.info("Token exchange success!"),c.access_token}else{let c=await u.text(),l=new Error(c);throw l.name="GitHubTokenExchangeError",l}}var iE=class{label=ge.l10n.t("url handler");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!1};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,nonce:a,signInProvider:s,extraAuthorizeParameters:u,uriHandler:c,existingLogin:l,logger:_}){return _.info(`Trying without local server... (${e})`),await ge.window.withProgress({location:ge.ProgressLocation.Notification,title:ge.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(d,E)=>{let m=dT(64),N=await pT(m),g=c.waitForCode(_,e,a,E),A=new URLSearchParams([["client_id",ut.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(l?A.append("login",l):A.append("prompt","select_account"),s&&A.append("provider",s),u)for(let[W,ne]of Object.entries(u))A.append(W,ne);let T=ge.Uri.parse(t.with({path:"/login/oauth/authorize",query:A.toString()}).toString(!0));await ge.env.openExternal(T);let I=await g,O=await ge.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),F=O?.github?ge.Uri.parse(`${O.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await mT(_,F,n,I,m,o)})}},oE=class{label=ge.l10n.t("local server");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!1,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,signInProvider:a,extraAuthorizeParameters:s,existingLogin:u,logger:c}){return c.info(`Trying with local server... (${e})`),await ge.window.withProgress({location:ge.ProgressLocation.Notification,title:ge.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,_)=>{let d=dT(64),E=await pT(d),m=new URLSearchParams([["client_id",ut.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",E],["code_challenge_method","S256"]]);if(u?m.append("login",u):m.append("prompt","select_account"),a&&m.append("provider",a),s)for(let[O,F]of Object.entries(s))m.append(O,F);let N=t.with({path:"/login/oauth/authorize",query:m.toString()}),g=new Wv(_T.join(__dirname,"../media"),N.toString(!0),i.toString(!0),ge.env.isAppPortable),A=await g.start(),T;try{ge.env.openExternal(ge.Uri.parse(`http://127.0.0.1:${A}/signin?nonce=${encodeURIComponent(g.nonce)}`));let{code:O}=await Promise.race([g.waitForOAuthResponse(),new Promise((F,V)=>setTimeout(()=>V(qc),3e5)),Xc(_.onCancellationRequested,(F,V,W)=>{W(Jn)}).promise]);T=O}finally{setTimeout(()=>{g.stop()},5e3)}return await mT(c,t.with({path:"/login/oauth/access_token"}),n,T,d,o)})}},Jc=class{label=ge.l10n.t("device code");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!0,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,signInProvider:n,extraAuthorizeParameters:i,logger:o}){o.info(`Trying device code flow... (${e})`);let a=t.with({path:"/login/device/code",query:`client_id=${ut.gitHubClientId}&scope=${e}`}),s=await Dn(a.toString(!0),{logger:o,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`Failed to get one-time code: ${await s.text()}`);let u=await s.json(),c=ge.l10n.t("Copy & Continue to Browser");if(await ge.window.showInformationMessage(ge.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:ge.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(Jn);await ge.env.clipboard.writeText(u.user_code);let _=ge.Uri.parse(u.verification_uri),d=new URLSearchParams(_.query);if(n&&d.set("provider",n),i)for(let[m,N]of Object.entries(i))d.set(m,N);(n||i)&&(_=_.with({query:d.toString()}));let E=await ge.env.asExternalUri(_);return await ge.env.openExternal(E),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await ge.window.withProgress({location:ge.ProgressLocation.Notification,cancellable:!0,title:ge.l10n.t({message:"Open [{0}]({0}) in a new tab and paste your one-time code: {1}",args:[n.verification_uri,n.user_code],comment:["The [{0}]({0}) will be a url and the {1} will be a code, e.g. 123-456",'{Locked="[{0}]({0})"}']})},async(i,o)=>{let a=t.with({path:"/login/oauth/access_token",query:`client_id=${ut.gitHubClientId}&device_code=${n.device_code}&grant_type=urn:ietf:params:oauth:grant-type:device_code`}),s=120/n.interval;for(let u=0;u<s;u++){if(await new Promise(_=>setTimeout(_,n.interval*1e3)),o.isCancellationRequested)throw new Error(Jn);let c;try{c=await Dn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let l=await c.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(qc)})}},aE=class{label=ge.l10n.t("personal access token");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!0,supportsSupportedClients:!1,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,logger:n,enterpriseUri:i}){n.info(`Trying to retrieve PAT... (${e})`);let o=ge.l10n.t("Continue to GitHub");if(await ge.window.showInformationMessage(ge.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:ge.l10n.t("To finish authenticating, navigate to GitHub to create a PAT then paste the PAT into the input box.")},o)!==o)throw new Error(Jn);let s=`${ge.env.appName} (${e})`,u=await ge.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await ge.env.openExternal(u);let c=await ge.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(Jn);let l=!i||rE(i)?ge.Uri.parse(`${t.scheme}://api.${t.authority}`):ge.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),_=await this.getScopes(c,l,n);if(!e.split(" ").every(E=>{let m=_.includes(E);return m||!E.includes(":")?m:E.split(":").some(N=>_.includes(N))}))throw new Error(`The provided token does not match the requested scopes: ${e}`);return c}async getScopes(e,t,n){try{n.info("Getting token scopes...");let i=await Dn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${ge.env.appName} (${ge.env.appHost})`}});if(i.ok){let o=i.headers.get("X-OAuth-Scopes");return o?o.split(",").map(a=>a.trim()):[]}else throw n.error(`Getting scopes failed: ${i.statusText}`),new Error(i.statusText)}catch(i){throw n.error(i.message),new Error(jv)}}},$x=[new oE,new iE,new Jc,new aE];function ET(r){let e=$x.filter(n=>{let i=!0;switch(r.target){case 0:i&&=n.options.supportsGitHubDotCom;break;case 1:i&&=n.options.supportsGitHubEnterpriseServer;break;case 2:i&&=n.options.supportsHostedGitHubEnterprise;break}switch(r.extensionHost){case 1:i&&=n.options.supportsRemoteExtensionHost;break;case 0:i&&=n.options.supportsWebWorkerExtensionHost;break}return ut.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return ge.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof Jc),...e.filter(n=>!(n instanceof Jc))]:e}function gT(r){return r==="google"||r==="apple"||r==="microsoft"}v();function hT(r){return btoa(r)}v();var wr=tn(require("vscode"));var qx="urn:ietf:params:oauth:grant-type:token-exchange",ST="urn:ietf:params:oauth:token-type:access_token",Xx=["read:user"];var Et=class extends Error{constructor(t,n){super(n);this.failure=t}failure},$v=class{async show(e,...t){return await wr.window.showInformationMessage(e,{modal:!0},...t)}},qv=class{constructor(e,t,n,i,o,a){this._logger=e;this._endpoints=t;this._microsoft=n;this._accountLinks=i;this._http=o;this._confirmation=a}_logger;_endpoints;_microsoft;_accountLinks;_http;_confirmation;async login(e,t){let n=this.resolveEndpoint(),i=t?.microsoftAccount,o=!1;for(;;){let a=await this.getMicrosoftToken(o,i),s=await this.exchange(n,a.token,Xx),u=await this.discoverAccount(s.token),c=await this.confirmAccount(u);if(c===1){i=void 0,o=!0;continue}if(c===2)throw this._logger.info("User cancelled the Microsoft sign in at the account confirmation."),new Error(Qn);let l=await this.exchange(n,a.token,e),_=await this.verifyAccount(l.token,u.id);return await this.linkAccounts(a.account.label,_),{token:l.token,expiresAfter:l.expiresAfter,account:_}}}async renew({scopes:e,gitHubAccountId:t,microsoftAccount:n}){let i=this.resolveEndpoint(),o=await this._microsoft.getToken({silent:!0,account:n});if(!o)throw this._logger.info("No Microsoft token was available without asking the user, so the session cannot renew itself."),new Et("microsoftSignIn",wr.l10n.t("Signing in to Microsoft again is required."));let a=await this.exchange(i,o.token,e),s=await this.verifyAccount(a.token,t);return{token:a.token,expiresAfter:a.expiresAfter,account:s,scopes:e??a.grantedScopes??[]}}async verifyAccount(e,t){let n=await this.discoverAccount(e);if(n.id!==t)throw this._logger.error("The GitHub token is for a different account than the one that was asked for. Discarding it."),new Et("accountMismatch",wr.l10n.t("Your Microsoft account is now linked to a different GitHub account."));return n}resolveEndpoint(){let e=this._endpoints.tokenExchange;if(!e)throw this._logger.error("This GitHub host does not accept a Microsoft token exchange."),new Et("configuration",wr.l10n.t("This GitHub host does not support signing in with Microsoft."));let t=ut.gitHubClientSecret;if(!t)throw this._logger.error("No client secret is configured, so the Microsoft token cannot be exchanged."),new Et("configuration",wr.l10n.t("This build of {0} is not configured to sign in to GitHub with Microsoft.",wr.env.appName));return{url:e,clientSecret:t}}async getMicrosoftToken(e,t){let n;try{n=await this._microsoft.getToken({forceNewSession:e,account:t})}catch(i){throw Zx(i)?new Error(Qn):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new Et("microsoftSignIn",wr.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(Qn);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await zv(this._http,this._endpoints.userInfo,e,this._logger)}catch(t){throw this._logger.error(`Could not resolve the GitHub account for the Microsoft sign in: ${t?.message??t}`),new Et("identity",wr.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=wr.l10n.t("Sign in with SSO"),i=wr.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(wr.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
13
+ `+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};d();Yi();d();var Ba=class r{static applyReplacements(e,t){for(let n of Object.keys(e))for(let i of t)i.lookup.test(n)&&(i.replacementString!==void 0?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return e.length===74&&e[32]==="-"&&e[41]==="-"&&e[46]==="-"&&e[51]==="-"&&e[56]==="-"&&e[69]==="-"}static getAdditionalCommonProperties(e){return{"common.os":e.platform,"common.nodeArch":e.architecture,"common.platformversion":(e.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),"common.telemetryclientversion":"0.9.8"}}static getInstance(){return r._instance||(r._instance=new r),r._instance}};var gT=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>(mT(),pT)),u={};if(n){let v={alwaysUseXhrOverride:!0,httpXHROverride:n};u[Od]=v}let c;r.startsWith("InstrumentationKey=")||(c=r);let l=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...l,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0,extensionConfig:u})}catch(s){return Promise.reject(s)}return{logEvent:(s,u)=>{let c={...u?.properties,...u?.measurements};i?.length&&Ba.applyReplacements(c,i),o?.track({name:s,data:c,baseType:"EventData",ext:{user:{id:e,authId:e},app:{sesId:t}},baseData:{name:s,properties:u?.properties,measurements:u?.measurements}})},flush:async()=>{o?.flush(!1)},dispose:async()=>new Promise(u=>{o?.unload(!0,()=>{u(),o=void 0},1e3)})}};d();var qd=class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates(()=>{this.updateUserOptIn()})}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel)}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?"all":this.errorOptIn?"error":"off"}internalSendTelemetryEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n})}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1)}sendRawTelemetryEvent(e,t,n){let i={...t};for(let o of Object.keys(i??{})){let a=i[o];typeof o=="string"&&a!==void 0&&(i[o]=new this.vscodeAPI.TelemetryTrustedValue(typeof a=="string"?a:a.value))}this.sendTelemetryEvent(e,i,n)}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0)}internalSendTelemetryErrorEvent(e,t,n,i){i?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n})}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1)}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0)}async dispose(){return await this.telemetrySender.dispose(),this.telemetryLogger.dispose(),Promise.all(this.disposables.map(e=>e.dispose()))}};d();var Gi;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Gi||(Gi={}));var Xd=class{constructor(e,t){this._instantiationStatus=Gi.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Gi.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});return}let n={stack:e.stack,message:e.message,name:e.name};if(t){let i=t.properties||t;t.properties={...i,...n}}else t={properties:n};this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){this._telemetryClient&&(await this._telemetryClient.dispose(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach(({eventName:e,data:t})=>this.sendEventData(e,t)),this._eventQueue=[],this._exceptionQueue.forEach(({exception:e,data:t})=>this.sendErrorData(e,t)),this._exceptionQueue=[]}instantiateSender(){this._instantiationStatus===Gi.NOT_INSTANTIATED&&(this._instantiationStatus=Gi.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Gi.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Gi.INSTANTIATED}))}};function iA(r){if(r.userAgentData){let e=r.userAgentData.brands[r.userAgentData.brands.length-1];return`${r.userAgentData.platform} - ${e?.brand} v${e?.version}}`}else return r.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g,"$1")}var Zc=class extends qd{constructor(e,t){let n=a=>gT(a,Qc.env.machineId,Qc.env.sessionId,void 0,t);Ba.shouldUseOneDataSystemSDK(e)&&(n=a=>sN(a,Qc));let i={release:iA(navigator),platform:"web",architecture:"web"},o=new Xd(e,n);if(e&&e.indexOf("AIF")===0)throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(o,Qc,{additionalCommonProperties:Ba.getAdditionalCommonProperties(i)})}};d();var Jd=class{constructor(e,t,n){this.context=e;this.serviceId=t;this.Logger=n}context;serviceId;Logger;async setToken(e){try{return await this.context.secrets.store(this.serviceId,e)}catch(t){this.Logger.error(`Setting token failed: ${t}`)}}async getToken(){try{let e=await this.context.secrets.get(this.serviceId);return e&&e!=="[]"&&this.Logger.trace("Token acquired from secret storage."),e}catch(e){return this.Logger.error(`Getting token failed: ${e}`),Promise.resolve(void 0)}}async deleteToken(){try{return await this.context.secrets.delete(this.serviceId)}catch(e){return this.Logger.error(`Deleting token failed: ${e}`),Promise.resolve(void 0)}}};d();var Le=Tt(require("vscode"));d();var oA=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function ET(r){return oA.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function Xa(r,e){return r==="github"||lg(e)}function lg(r){return/\.ghe\.com$/.test(r.authority)}d();var dg=Tt(require("vscode"));d();var ef="Timed out",ei="User Cancelled",Qd="network error",an="Cancelled";async function Zd(r,e,t,n){let i;try{n.info("Getting user info..."),i=await r.send({url:e,method:"GET",retryFallbacks:!0,headers:{Authorization:`token ${t}`,"User-Agent":`${dg.env.appName} (${dg.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(Qd)}if(i.ok)try{let a=await i.json();return n.info("Got account info!"),{id:`${a.id}`,accountName:a.login,avatarUrl:a.avatar_url}}catch(a){throw n.error(`Unexpected error parsing response from GitHub: ${a.message??a}`),a}let o=i.statusText;try{let a=await i.json();a.message&&(o=a.message)}catch{}throw n.error(`Getting account info failed: ${o}`),new Error(o)}d();d();var xn=fetch;var ev=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await xn(e,{logger:this._logger,retryFallbacks:o,expectJSON:!0,method:t,headers:n,body:i});return{ok:a.ok,status:a.status,statusText:a.statusText,json:()=>a.json()}}};d();var Ja=globalThis.crypto;d();var yT=Tt(TT()),Ee=require("vscode");d();var Gr={gitHubClientId:"01ab8ac9400c4e429b23"};d();var rv=class{constructor(...e){throw new Error("Not implemented")}};d();var DT=require("vscode");var sA=(r,e)=>e(r);function rf(r,e=sA){let t,n=new DT.EventEmitter;return{promise:new Promise((i,o)=>{n.event(a=>o("Cancelled")),t=r(a=>{try{Promise.resolve(e(a,i,o)).catch(o)}catch(s){o(s)}})}).then(i=>(t.dispose(),i),i=>{throw t.dispose(),i}),cancel:n}}function vg(r,e,t=(n,i)=>n===i){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,i=r.length;n<i;n++)if(!t(r[n],e[n]))return!1;return!0}function IT(r){let e=new Uint8Array(r);return Ja.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function xT(r){let t=new TextEncoder().encode(r),n=await Ja.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function AT(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=Gr.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",Gr.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await xn(e.toString(!0),{logger:r,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:s.toString()});if(u.ok){let c=await u.json();return r.info("Token exchange success!"),c.access_token}else{let c=await u.text(),l=new Error(c);throw l.name="GitHubTokenExchangeError",l}}var _g=class{label=Ee.l10n.t("url handler");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!1};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,nonce:a,signInProvider:s,extraAuthorizeParameters:u,uriHandler:c,existingLogin:l,logger:v}){return v.info(`Trying without local server... (${e})`),await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(_,g)=>{let p=IT(64),N=await xT(p),E=c.waitForCode(v,e,a,g,t),x=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(l?x.append("login",l):x.append("prompt","select_account"),s&&x.append("provider",s),u)for(let[W,ne]of Object.entries(u))x.append(W,ne);let T=Ee.Uri.parse(t.with({path:"/login/oauth/authorize",query:x.toString()}).toString(!0));await Ee.env.openExternal(T);let I=await E,w=await Ee.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),U=w?.github?Ee.Uri.parse(`${w.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await AT(v,U,n,I,p,o)})}},pg=class{label=Ee.l10n.t("local server");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!1,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!1,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!1,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,redirectUri:n,callbackUri:i,enterpriseUri:o,signInProvider:a,extraAuthorizeParameters:s,existingLogin:u,logger:c}){return c.info(`Trying with local server... (${e})`),await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,title:Ee.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(l,v)=>{let _=IT(64),g=await xT(_),p=new URLSearchParams([["client_id",Gr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",g],["code_challenge_method","S256"]]);if(u?p.append("login",u):p.append("prompt","select_account"),a&&p.append("provider",a),s)for(let[w,U]of Object.entries(s))p.append(w,U);let N=t.with({path:"/login/oauth/authorize",query:p.toString()}),E=new rv(yT.join(__dirname,"../media"),N.toString(!0),i.toString(!0),Ee.env.isAppPortable),x=await E.start(),T;try{Ee.env.openExternal(Ee.Uri.parse(`http://127.0.0.1:${x}/signin?nonce=${encodeURIComponent(E.nonce)}`));let{code:w}=await Promise.race([E.waitForOAuthResponse(),new Promise((U,j)=>setTimeout(()=>j(ef),3e5)),rf(v.onCancellationRequested,(U,j,W)=>{W(ei)}).promise]);T=w}finally{setTimeout(()=>{E.stop()},5e3)}return await AT(c,t.with({path:"/login/oauth/access_token"}),n,T,_,o)})}},tf=class{label=Ee.l10n.t("device code");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!1,supportsNoClientSecret:!0,supportsSupportedClients:!0,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,signInProvider:n,extraAuthorizeParameters:i,logger:o}){o.info(`Trying device code flow... (${e})`);let a=t.with({path:"/login/device/code",query:`client_id=${Gr.gitHubClientId}&scope=${e}`}),s=await xn(a.toString(!0),{logger:o,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}});if(!s.ok)throw new Error(`Failed to get one-time code: ${await s.text()}`);let u=await s.json(),c=Ee.l10n.t("Copy & Continue to Browser");if(await Ee.window.showInformationMessage(Ee.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Ee.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(ei);await Ee.env.clipboard.writeText(u.user_code);let v=Ee.Uri.parse(u.verification_uri),_=new URLSearchParams(v.query);if(n&&_.set("provider",n),i)for(let[p,N]of Object.entries(i))_.set(p,N);(n||i)&&(v=v.with({query:_.toString()}));let g=await Ee.env.asExternalUri(v);return await Ee.env.openExternal(g),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Ee.window.withProgress({location:Ee.ProgressLocation.Notification,cancellable:!0,title:Ee.l10n.t({message:"Open [{0}]({0}) in a new tab and paste your one-time code: {1}",args:[n.verification_uri,n.user_code],comment:["The [{0}]({0}) will be a url and the {1} will be a code, e.g. 123-456",'{Locked="[{0}]({0})"}']})},async(i,o)=>{let a=t.with({path:"/login/oauth/access_token",query:`client_id=${Gr.gitHubClientId}&device_code=${n.device_code}&grant_type=urn:ietf:params:oauth:grant-type:device_code`}),s=120/n.interval;for(let u=0;u<s;u++){if(await new Promise(v=>setTimeout(v,n.interval*1e3)),o.isCancellationRequested)throw new Error(ei);let c;try{c=await xn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let l=await c.json();if(l.error!=="authorization_pending"){if(l.error)throw new Error(l.error_description);return l.access_token}}throw new Error(ef)})}},mg=class{label=Ee.l10n.t("personal access token");options={supportsGitHubDotCom:!0,supportsGitHubEnterpriseServer:!0,supportsHostedGitHubEnterprise:!0,supportsRemoteExtensionHost:!0,supportsWebWorkerExtensionHost:!0,supportsNoClientSecret:!0,supportsSupportedClients:!1,supportsUnsupportedClients:!0};async trigger({scopes:e,baseUri:t,logger:n,enterpriseUri:i}){n.info(`Trying to retrieve PAT... (${e})`);let o=Ee.l10n.t("Continue to GitHub");if(await Ee.window.showInformationMessage(Ee.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Ee.l10n.t("To finish authenticating, navigate to GitHub to create a PAT then paste the PAT into the input box.")},o)!==o)throw new Error(ei);let s=`${Ee.env.appName} (${e})`,u=await Ee.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Ee.env.openExternal(u);let c=await Ee.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(ei);let l=!i||lg(i)?Ee.Uri.parse(`${t.scheme}://api.${t.authority}`):Ee.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),v=await this.getScopes(c,l,n);if(!e.split(" ").every(g=>{let p=v.includes(g);return p||!g.includes(":")?p:g.split(":").some(N=>v.includes(N))}))throw new Error(`The provided token does not match the requested scopes: ${e}`);return c}async getScopes(e,t,n){try{n.info("Getting token scopes...");let i=await xn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Ee.env.appName} (${Ee.env.appHost})`}});if(i.ok){let o=i.headers.get("X-OAuth-Scopes");return o?o.split(",").map(a=>a.trim()):[]}else throw n.error(`Getting scopes failed: ${i.statusText}`),new Error(i.statusText)}catch(i){throw n.error(i.message),new Error(Qd)}}},uA=[new pg,new _g,new tf,new mg];function bT(r){let e=uA.filter(n=>{let i=!0;switch(r.target){case 0:i&&=n.options.supportsGitHubDotCom;break;case 1:i&&=n.options.supportsGitHubEnterpriseServer;break;case 2:i&&=n.options.supportsHostedGitHubEnterprise;break}switch(r.extensionHost){case 1:i&&=n.options.supportsRemoteExtensionHost;break;case 0:i&&=n.options.supportsWebWorkerExtensionHost;break}return Gr.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Ee.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof tf),...e.filter(n=>!(n instanceof tf))]:e}function CT(r){return r==="google"||r==="apple"||r==="microsoft"}d();function PT(r){return btoa(r)}d();var ft=Tt(require("vscode"));var cA="urn:ietf:params:oauth:grant-type:token-exchange",RT="urn:ietf:params:oauth:token-type:access_token",wT=["read:user"];var ht=class extends Error{constructor(t,n){super(n);this.failure=t}failure},tv=class{async show(e,...t){return await ft.window.showInformationMessage(e,{modal:!0},...t)}},nv=class{constructor(e,t,n,i,o,a){this._logger=e;this._endpoints=t;this._microsoft=n;this._accountLinks=i;this._http=o;this._confirmation=a}_logger;_endpoints;_microsoft;_accountLinks;_http;_confirmation;async login(e,t){let n=this.resolveEndpoint(),i=t?.microsoftAccount,o=!1;for(;;){let a=await this.getMicrosoftToken(o,i),s=await this.exchange(n,a.token,wT),u=await this.discoverAccount(s.token),c=await this.confirmAccount(u);if(c===1){i=void 0,o=!0;continue}if(c===2)throw this._logger.info("User cancelled the Microsoft sign in at the account confirmation."),new Error(an);let l=await this.exchange(n,a.token,e),v=await this.verifyAccount(l.token,u.id);return await this.linkAccounts(a.account.label,v),{token:l.token,expiresAfter:l.expiresAfter,account:v}}}async renew({scopes:e,gitHubAccountId:t,microsoftAccount:n}){let i=this.resolveEndpoint(),o=await this._microsoft.getToken({silent:!0,account:n});if(!o)throw this._logger.info("No Microsoft token was available without asking the user, so the session cannot renew itself."),new ht("microsoftSignIn",ft.l10n.t("Signing in to Microsoft again is required."));let a=await this.exchange(i,o.token,e),s=await this.verifyAccount(a.token,t);return{token:a.token,expiresAfter:a.expiresAfter,account:s,scopes:e??a.grantedScopes??[]}}async probe(e){let t;try{let n=this.resolveEndpoint();return t=(await this.exchange(n,e,wT)).token,await this.discoverAccount(t)}catch(n){let i=n instanceof ht?n.failure:n?.message??n;this._logger.info(`No GitHub account is linked to the probed Microsoft identity: ${i}`);return}finally{t&&this.revoke(t)}}async revoke(e){let t=this._endpoints.tokenRevocation,n=Gr.gitHubClientSecret;if(!t||!n){this._logger.info("The token minted to check for a Microsoft link cannot be revoked here. It expires on its own.");return}try{let i=await this._http.send({url:t,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:`Basic ${btoa(`${Gr.gitHubClientId}:${n}`)}`,"X-GitHub-Api-Version":"2022-11-28","Content-Type":"application/json"},body:JSON.stringify({access_token:e}),retryFallbacks:!1});i.status!==204&&this._logger.warn(`Could not revoke the token minted to check for a Microsoft link (HTTP ${i.status}). It expires on its own.`)}catch(i){this._logger.warn(`Could not revoke the token minted to check for a Microsoft link: ${i?.message??i}. It expires on its own.`)}}async verifyAccount(e,t){let n=await this.discoverAccount(e);if(n.id!==t)throw this._logger.error("The GitHub token is for a different account than the one that was asked for. Discarding it."),new ht("accountMismatch",ft.l10n.t("Your Microsoft account is now linked to a different GitHub account."));return n}resolveEndpoint(){let e=this._endpoints.tokenExchange;if(!e)throw this._logger.error("This GitHub host does not accept a Microsoft token exchange."),new ht("configuration",ft.l10n.t("This GitHub host does not support signing in with Microsoft."));return e}async getMicrosoftToken(e,t){let n;try{n=await this._microsoft.getToken({forceNewSession:e,account:t})}catch(i){throw dA(i)?new Error(an):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new ht("microsoftSignIn",ft.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(an);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await Zd(this._http,this._endpoints.userInfo,e,this._logger)}catch(t){throw this._logger.error(`Could not resolve the GitHub account for the Microsoft sign in: ${t?.message??t}`),new ht("identity",ft.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=ft.l10n.t("Sign in with SSO"),i=ft.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(ft.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
14
14
 
15
15
  {0}
16
16
 
17
- Sign in to GitHub with this account?`,t),n,i)){case n:return 0;case i:return 1;default:return 2}}async exchange(e,t,n){let i=n&&[...n],o=new URLSearchParams({client_id:ut.gitHubClientId,client_secret:e.clientSecret,grant_type:qx,subject_token:t,subject_token_type:ST,...i&&{scope:i.join(" ")}}).toString();this._logger.debug(`Exchanging a Microsoft token for the GitHub scopes: ${i?i.join(" "):"whichever GitHub grants"}`),this._logger.trace(`The subject token of the exchange describes itself as: ${Qx(t)}`);let a;try{a=await this._http.send({url:e.url,method:"POST",retryFallbacks:!1,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:o})}catch(g){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${g?.message??g}`),new Et("network",wr.l10n.t("Could not reach GitHub to finish signing in with Microsoft. Check your connection and try again."))}let s;try{s=await a.json()}catch{throw this.protocolError(`the response was not JSON (HTTP ${a.status})`)}if(!s||typeof s!="object")throw this.protocolError(`the response was not an object (HTTP ${a.status})`);let u=s;if(typeof u.error=="string")throw this.traceFailure(a.status,u),this.oauthError(u.error);if(!a.ok)throw this.traceFailure(a.status,u),this.protocolError(`HTTP ${a.status} without an error code`);let{access_token:c,issued_token_type:l,token_type:_,expires_in:d,scope:E}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(l!==ST)throw this.protocolError("unexpected issued token type");if(typeof _!="string"||_.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof d!="number"||!isFinite(d)||d<=0)throw this.protocolError("missing or invalid expiry");if(E!==void 0&&typeof E!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${E??"unreported"}`);let m=E?.split(/[\s,]+/).filter(Boolean),N=i?.filter(g=>m&&!m.includes(g));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:d*1e3,grantedScopes:m}}oauthError(e){switch(this._logger.error(`The GitHub token exchange failed with the error code '${e}'.`),e){case"invalid_request":case"invalid_client":case"invalid_scope":case"unsupported_grant_type":return new Et("configuration",wr.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new Et("identity",wr.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new Et("protocol",wr.l10n.t("GitHub rejected the Microsoft sign in ({0}).",e))}}protocolError(e){return this._logger.error(`The GitHub token exchange returned an unexpected response: ${e}.`),new Et("protocol",wr.l10n.t("GitHub returned an unexpected response while signing in with Microsoft."))}traceFailure(e,t){let n=["error_description","error_uri"].filter(i=>typeof t[i]=="string").map(i=>`${i}=${t[i]}`);this._logger.trace(`The GitHub token exchange answered HTTP ${e} ${n.length?n.join(" "):"with no further explanation"}.`)}},Jx=["iss","aud","appid","azp","tid"];function Qx(r){let e=r.split(".");if(e.length!==3)return"not a JWT";let t;try{let o=e[1].replace(/-/g,"+").replace(/_/g,"/");t=JSON.parse(atob(o+"=".repeat((4-o.length%4)%4)))}catch{return"a JWT whose claims could not be read"}if(!t||typeof t!="object")return"a JWT whose claims are not an object";let n=t,i=Jx.filter(o=>n[o]!==void 0).map(o=>`${o}=${String(n[o])}`);return i.length?i.join(" "):"a JWT carrying none of the expected claims"}function Zx(r){if(r===Qn)return!0;let e=r?.message;return e===Qn||e==="User did not consent to login."}var eA="https://vscode.dev/redirect",rA="https://insiders.vscode.dev/redirect",Xv=class{constructor(e,t,n,i,o,a,s){this._logger=e;this._telemetryReporter=t;this._uriHandler=n;this._extensionKind=i;this._ghesUri=s;this._type=s?"github-enterprise":"github",this.friendlyName=this._type==="github"?"GitHub":s?.authority,this._http=new Kv(e);let u=su(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0;this._entraTokenExchange=new qv(e,{tokenExchange:u,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new $v)}_logger;_telemetryReporter;_uriHandler;_extensionKind;_ghesUri;friendlyName;_type;_entraTokenExchange;_http;_redirectEndpoint;get baseUri(){return this._type==="github"?He.Uri.parse("https://github.com/"):this._ghesUri}async loginWithMicrosoft(e,t){return await this._entraTokenExchange.login(e,t)}async renewWithMicrosoft(e){return await this._entraTokenExchange.renew(e)}async getRedirectEndpoint(){if(this._redirectEndpoint)return this._redirectEndpoint;if(this._type==="github"){let e=await He.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints");this._redirectEndpoint=eA,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=rA)}else this._redirectEndpoint="https://vscode.dev/redirect";return this._redirectEndpoint}_isNoCorsEnvironment;async isNoCorsEnvironment(){if(this._isNoCorsEnvironment!==void 0)return this._isNoCorsEnvironment;let e=await He.env.asExternalUri(He.Uri.parse(`${He.env.uriScheme}://vscode.github-authentication/dummy`));return this._isNoCorsEnvironment=e.scheme==="https"&&/^((insiders\.)?vscode|github)\./.test(e.authority)||e.scheme==="http"&&/^localhost/.test(e.authority),this._isNoCorsEnvironment}async login(e,t,n,i){this._logger.info(`Logging in for the following scopes: ${e}`);let o,a=He.l10n.t("Yes"),s=He.l10n.t("No"),u=async N=>{if(o===void 0)return;let g=o?He.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",N):He.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",N);if(await He.window.showWarningMessage(g,a,s)!==a)throw new Error(Qn)},c=$a.getRandomValues(new Uint32Array(2)).reduce((N,g)=>N+=g.toString(16),""),l=await He.env.asExternalUri(He.Uri.parse(`${He.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(c)}`)),_=sT(l),d=su(this._type,this._ghesUri),E=typeof process<"u"&&typeof process?.versions?.node=="string",m=ET({target:this._type==="github"?0:d?2:1,extensionHost:E?this._extensionKind===He.ExtensionKind.UI?2:1:0,isSupportedClient:_});for(let N of m)try{return N!==m[0]&&await u(N.label),await N.trigger({scopes:e,callbackUri:l,nonce:c,signInProvider:t,extraAuthorizeParameters:n,baseUri:this.baseUri,logger:this._logger,uriHandler:this._uriHandler,enterpriseUri:this._ghesUri,redirectUri:He.Uri.parse(await this.getRedirectEndpoint()),existingLogin:i})}catch(g){o=this.processLoginError(g)}throw new Error(o?Qn:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!ut.gitHubClientSecret){this._logger.warn("No client secret configured for GitHub authentication. The token has been deleted with best effort on this system, but we are unable to delete the token on server without the client secret.");return}if(!e.accessToken.startsWith("gho_")){this._logger.warn("The token being deleted is not an OAuth token. It has been deleted locally, but we cannot delete it on server.");return}if(!su(this._type,this._ghesUri)){this._logger.trace("GitHub.com and GitHub hosted GitHub Enterprise are the only options that support deleting tokens on the server. Skipping.");return}let t="Basic "+hT(`${ut.gitHubClientId}:${ut.gitHubClientSecret}`),n=this.getServerUri(`/applications/${ut.gitHubClientId}/token`);try{let i=await Dn(n.toString(!0),{logger:this._logger,retryFallbacks:!0,expectJSON:!1,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:t,"X-GitHub-Api-Version":"2022-11-28","User-Agent":`${He.env.appName} (${He.env.appHost})`},body:JSON.stringify({access_token:e.accessToken})});if(i.status===204){this._logger.trace(`Successfully deleted token from session (${e.id}) from server.`);return}try{let o=await i.text();throw new Error(o)}catch{throw new Error(`${i.status} ${i.statusText}`)}}catch(i){this._logger.warn("Failed to delete token from server."+(i.message??i))}}getServerUri(e=""){let t=this.baseUri;return su(this._type,this._ghesUri)?He.Uri.parse(`${t.scheme}://api.${t.authority}`).with({path:e}):He.Uri.parse(`${t.scheme}://${t.authority}/api/v3${e}`)}async getUserInfo(e){return await zv(this._http,this.getServerUri("/user").toString(),e,this._logger)}async sendAdditionalTelemetryInfo(e){if(!(!He.env.isTelemetryEnabled||await this.isNoCorsEnvironment())){if(this._type==="github")return await this.checkUserDetails(e);await this.checkEnterpriseVersion(e.accessToken)}}async checkUserDetails(e){let t;try{let n=await Dn("https://education.github.com/api/user",{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e.accessToken}`,"faculty-check-preview":"true","User-Agent":`${He.env.appName} (${He.env.appHost})`}});if(n.ok){let i=await n.json();t=i.student?"student":i.faculty?"faculty":"none"}else this._logger.info(`Unable to resolve optional EDU details. Status: ${n.status} ${n.statusText}`),t="unknown"}catch(n){this._logger.info(`Unable to resolve optional EDU details. Error: ${n}`),t="unknown"}this._telemetryReporter.sendTelemetryEvent("session",{isEdu:t,isManaged:e.account.label.includes("_")?"true":"false"})}async checkEnterpriseVersion(e){try{let t;if(su(this._type,this._ghesUri))t="hosted";else{let n=await Dn(this.getServerUri("/meta").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${He.env.appName} (${He.env.appHost})`}});if(!n.ok)return;t=(await n.json()).installed_version}this._telemetryReporter.sendTelemetryEvent("ghe-session",{version:t})}catch{}}processLoginError(e){if(e.message===Qn)throw e;return this._logger.error(e.message??e),e.message===Jn}};v();var MT=tn(require("vscode")),Ro=tn(UT()),u_=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(MT.env.uriScheme){case"vscode":e=Ro.TargetPopulation.Public;break;case"vscode-insiders":e=Ro.TargetPopulation.Insiders;break;case"vscode-exploration":e=Ro.TargetPopulation.Internal;break;case"code-oss":e=Ro.TargetPopulation.Team;break;default:e=Ro.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Ro.getExperimentationService)(t,n,e,this,this.context.globalState);return await i.initialFetch,i}async sendTelemetryEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryEvent(e,{...this.sharedProperties,...t},n)}async sendTelemetryErrorEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){let n={};for(let[i,o]of t)n[i]=o;this.sendTelemetryEvent(e,n)}dispose(){return this.baseReporter.dispose()}};v();var HT=tn(require("vscode"));var c_=class{constructor(e){this.type=e;let t=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=HT.window.createOutputChannel(`${t} Authentication`,{log:!0})}type;output;trace(e){this.output.trace(e)}debug(e){this.output.debug(e)}info(e){this.output.info(e)}error(e){this.output.error(e)}warn(e){this.output.warn(e)}};v();var f_=class{constructor(e,t,n){this.memento=e;this.storageKey=t;this.logger=n}memento;storageKey;logger;_unlinkedButStillStored=new Set;get links(){let e=this.memento.get(this.storageKey,[]);return this._unlinkedButStillStored.size?e.filter(t=>!this._unlinkedButStillStored.has(t.gitHubAccountLabel)):e}linkedAccounts(){return this.links}microsoftAccountFor(e){return this.links.find(t=>t.gitHubAccountLabel===e)?.microsoftAccountLabel}async link(e,t){let n=this.links.filter(i=>i.gitHubAccountLabel!==t.label&&i.microsoftAccountLabel!==e);this._unlinkedButStillStored.delete(t.label),await this.write([...n,{microsoftAccountLabel:e,gitHubAccountLabel:t.label,gitHubAccountId:t.id}])}async unlinkGitHubAccount(e){let t=this.links.filter(n=>n.gitHubAccountLabel!==e);t.length!==this.links.length&&(this._unlinkedButStillStored.add(e),await this.write(t)&&this._unlinkedButStillStored.delete(e))}async write(e){try{return await this.memento.update(this.storageKey,e),!0}catch(t){return this.logger.error(`Could not update the Microsoft account links: ${t}`),!1}}};v();var TE=tn(require("vscode")),l_="microsoft",TA="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",v_=class{async getToken(e){let t=await TE.authentication.getSession(l_,[TA],DA(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await TE.authentication.getAccounts(l_)}};function DA(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}var IA=3600*1e3;function yA(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!gT(e))throw new Error(`Provider is invalid: ${e}`);if(t!==void 0){if(!t||typeof t!="object")throw new Error("Extra parameters must be a record of string keys and string values.");for(let[n,i]of Object.entries(t))if(typeof n!="string"||typeof i!="string")throw new Error("Extra parameters must be a record of string keys and string values.")}return!0}var __=class extends Er.EventEmitter{_pendingNonces=new Map;_codeExchangePromises=new Map;handleUri(e){this.fire(e)}async waitForCode(e,t,n,i){let o=this._pendingNonces.get(t)||[];this._pendingNonces.set(t,[...o,n]);let a=this._codeExchangePromises.get(t);a||(a=Xc(this.event,this.handleEvent(e,t)),this._codeExchangePromises.set(t,a));try{return await Promise.race([a.promise,new Promise((s,u)=>setTimeout(()=>u(qc),3e5)),Xc(i.onCancellationRequested,(s,u,c)=>{c(Jn)}).promise])}finally{this._pendingNonces.delete(t),a?.cancel.fire(),this._codeExchangePromises.delete(t)}}handleEvent=(e,t)=>(n,i,o)=>{let a=new URLSearchParams(n.query),s=a.get("code"),u=a.get("nonce");if(!s){o(new Error("No code"));return}if(!u){o(new Error("No nonce"));return}if(!(this._pendingNonces.get(t)||[]).includes(u)){e.info("Nonce not found in accepted nonces. Skipping this execution...");return}i(s)}};function kT(){return $a.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var Qc=class{constructor(e,t,n){this.context=e;let{aiKey:i}=e.extension.packageJSON;this._telemetryReporter=new u_(e,new $c(i));let o=n?"github-enterprise":"github";this._logger=new c_(o);let a=o==="github"?`${o}.auth`:`${n?.authority}${n?.path}.ghes.auth`;this._keychain=new Vv(this.context,a,this._logger),this._accountLinks=new f_(this.context.globalState,`${a}.microsoftAccountLinks`,this._logger),this._microsoft=new v_,this._githubServer=new Xv(this._logger,this._telemetryReporter,t,e.extension.extensionKind,this._microsoft,this._accountLinks,n),this._persistedSessionsPromise=this.readSessions().then(u=>(setTimeout(()=>u.forEach(c=>this.afterSessionLoad(c)),1e3),u));let s=n?[Er.Uri.joinPath(n,"/login/oauth")]:[Er.Uri.parse("https://github.com/login/oauth")];this._disposable=Er.Disposable.from(this._telemetryReporter,Er.authentication.registerAuthenticationProvider(o,this._githubServer.friendlyName,this,{supportsMultipleAccounts:!0,supportedAuthorizationServers:s}),this.context.secrets.onDidChange(()=>this.checkForUpdates()),Er.authentication.onDidChangeSessions(async u=>{u.provider.id===l_&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new Er.EventEmitter;_logger;_githubServer;_microsoft;_telemetryReporter;_keychain;_accountLinks;_accountsSeen=new Set;_disposable;_persistedSessionsPromise;_transientSessions=new Map;_renewals=new Map;_restores=new Map;_restoresTried=new Set;_microsoftGeneration=0;dispose(){this._transientSessions.clear(),this._disposable?.dispose()}get transientSessions(){let e=Date.now();return[...this._transientSessions.values()].map(t=>({...t.session,expiresAfter:t.expiresAt>e?t.expiresAt-e:void 0}))}get onDidChangeSessions(){return this._sessionChangeEmitter.event}async getSessions(e,t){let n=e?.sort()||[],i=n.length?n.join(","):"all scopes";this._logger.info(`Getting sessions for ${i}...`);let a=[...await this._persistedSessionsPromise,...this.transientSessions].filter(c=>(!t?.account||c.account.label===t.account.label)&&(!n.length||nE([...c.scopes].sort(),n))),s=await this.stillGood(a),u=await this.restore(n,t?.account,s);return this._logger.info(`Got ${s.length+u.length} sessions for ${i}...`),[...s,...u]}async restore(e,t,n){let i=this._accountLinks.linkedAccounts().filter(a=>(!t||a.gitHubAccountLabel===t.label)&&!n.some(s=>s.account.label===a.gitHubAccountLabel)&&!this._restoresTried.has(this.restoreKey(a,e)));if(!i.length)return[];let o=(await Promise.all(i.map(a=>this.restoreOne(a,e)))).filter(a=>!!a);return o.length&&(this._logger.info(`Restored ${o.length} session(s) from a remembered Microsoft account.`),this._sessionChangeEmitter.fire({added:o,removed:[],changed:[]})),o}restoreKey(e,t){return`${e.gitHubAccountLabel}
18
- ${t.join(" ")}`}restoreOne(e,t){let n=this.restoreKey(e,t),i=this._restores.get(n);return i||(i=this.restoreNow(e,t,n).finally(()=>this._restores.delete(n)),this._restores.set(n,i)),i}async restoreNow(e,t,n){let i=this._microsoftGeneration,o=(await this._microsoft.getAccounts()).find(u=>u.label===e.microsoftAccountLabel);if(!o){this._logger.info(`Not restoring the session for ${e.gitHubAccountLabel}: its Microsoft account is not signed in.`),this._restoresTried.add(n);return}let a;try{a=await this._githubServer.renewWithMicrosoft({scopes:t.length?t:void 0,gitHubAccountId:e.gitHubAccountId,microsoftAccount:o})}catch(u){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: ${u?.message??u}`),this._restoresTried.add(n),u instanceof Et&&u.failure==="accountMismatch"&&await this._accountLinks.unlinkGitHubAccount(e.gitHubAccountLabel);return}if(!a.scopes.length){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: GitHub did not say what the token can do.`),this._restoresTried.add(n);return}if(!await this.microsoftAccountStillSignedIn(i,o.label,`the restored session for ${e.gitHubAccountLabel}`))return;let s=this.storeTransientSession(this.sessionFor(a.account,a.token,[...a.scopes]),a.expiresAfter);return this.afterSessionLoad(s),s}async stillGood(e){let t=Date.now(),n=[],i=[];for(let u of e){let c=this._transientSessions.get(u.id);!c||c.expiresAt>t+IA?n.push(u):i.push(u)}if(!i.length)return n;let o=await Promise.all(i.map(u=>this.renew(u))),a=[],s=[];for(let u=0;u<i.length;u++){if(o[u])continue;let c=this._transientSessions.get(i[u].id),l=c?c.expiresAt-Date.now():0;c&&l>0?s.push({...c.session,expiresAfter:l}):a.push(i[u])}return this.evict(a,"their token ran out and could not be renewed"),[...n,...s,...o.filter(u=>!!u)]}evict(e,t){let n=[];for(let i of e)this._transientSessions.delete(i.id)&&n.push(i);n.length&&(this._logger.info(`Dropped ${n.length} session(s): ${t}.`),this._sessionChangeEmitter.fire({added:[],removed:n,changed:[]}))}async evictUnreachable(){let e=new Set((await this._microsoft.getAccounts()).map(n=>n.label)),t=new Map(this._accountLinks.linkedAccounts().map(n=>[n.gitHubAccountLabel,n]));this.evict(this.transientSessions.filter(n=>{let i=t.get(n.account.label)?.microsoftAccountLabel;return!i||!e.has(i)}),"their Microsoft account is no longer signed in")}renew(e){let t=this._renewals.get(e.id);return t||(t=this.renewNow(e).finally(()=>this._renewals.delete(e.id)),this._renewals.set(e.id,t)),t}async renewNow(e){let t=this._microsoftGeneration,n=await this.rememberedMicrosoftAccount(e.account.label);if(!n){this._logger.info(`Session ${e.id} cannot renew: there is no Microsoft account signed in for it.`);return}let i;try{i=await this._githubServer.renewWithMicrosoft({scopes:e.scopes,gitHubAccountId:e.account.id,microsoftAccount:n})}catch(a){this._logger.error(`Could not renew session ${e.id}: ${a?.message??a}`);return}if(!await this.microsoftAccountStillSignedIn(t,n.label,`the renewal of session ${e.id}`))return;let o=this.storeTransientSession({...e,accessToken:i.token},i.expiresAfter);return this._logger.info(`Renewed session ${e.id}.`),this._sessionChangeEmitter.fire({added:[],removed:[],changed:[o]}),o}async microsoftAccountStillSignedIn(e,t,n){return this._microsoftGeneration===e||(await this._microsoft.getAccounts()).some(i=>i.label===t)?!0:(this._logger.info(`Discarding ${n}: its Microsoft account was signed out of while it was in flight.`),!1)}async afterSessionLoad(e){this._accountsSeen.has(e.account.id)||(this._accountsSeen.add(e.account.id),this._githubServer.sendAdditionalTelemetryInfo(e))}logSessionChange(e,t,n,i){let o=t>0&&n>0?"replacement":t>0?"addition":n>0?"removal":"change",a=`Session change: source=${e}, kind=${o}, added=${t}, removed=${n}, changed=${i}.`;o==="replacement"?this._logger.info(a):this._logger.trace(a)}async checkForUpdates(){let e=await this._persistedSessionsPromise;this._persistedSessionsPromise=this.readSessions();let t=await this._persistedSessionsPromise,n=[],i=[];t.forEach(o=>{e.some(s=>s.id===o.id)||(this._logger.info("Adding session found in keychain"),n.push(o))}),e.forEach(o=>{t.some(s=>s.id===o.id)||(this._logger.info("Removing session no longer found in keychain"),i.push(o))}),(n.length||i.length)&&(this.logSessionChange("secret-storage",n.length,i.length,0),this._sessionChangeEmitter.fire({added:n,removed:i,changed:[]}))}async readSessions(){let e;try{this._logger.info("Reading sessions from keychain...");let a=await this._keychain.getToken();if(!a)return[];this._logger.info("Got stored sessions!");try{e=JSON.parse(a)}catch(s){throw await this._keychain.deleteToken(),s}}catch(a){return this._logger.error(`Error reading token: ${a}`),[]}let t=!1,n=new Set,i=e.map(async a=>{let s=[...a.scopes].sort().join(" "),u;if(!a.account)try{u=await this._githubServer.getUserInfo(a.accessToken),this._logger.info(`Verified session with the following scopes: ${s}`)}catch(_){if(_.message==="Unauthorized")return}this._logger.trace(`Read the following session from the keychain with the following scopes: ${s}`),n.add(s);let c;a.account?.id?(typeof a.account.id=="number"&&(t=!0),c=`${a.account.id}`):c=u?.id??"<unknown>";let l=a.account?.icon?Er.Uri.from(a.account.icon):u?.avatarUrl?Er.Uri.parse(u.avatarUrl):void 0;return{id:a.id,account:{label:a.account?a.account.label??a.account.displayName??"<unknown>":u?.accountName??"<unknown>",id:c,icon:l},scopes:a.scopes,accessToken:a.accessToken}}),o=(await Promise.allSettled(i)).filter(a=>a.status==="fulfilled").map(a=>a.value).filter(a=>!!a);return this._logger.info(`Got ${o.length} verified sessions.`),(t||o.length!==e.length)&&await this.storeSessions(o),o}async storeSessions(e){this._logger.info(`Storing ${e.length} sessions...`),this._persistedSessionsPromise=Promise.resolve(e),await this._keychain.setToken(JSON.stringify(e)),this._logger.info(`Stored ${e.length} sessions!`)}async createSession(e,t){try{let n=[...e].sort();if(this._telemetryReporter?.sendTelemetryEvent("login",{scopes:JSON.stringify(e)}),t&&!yA(t))throw new Error("Invalid options");let i=t?.account?.label,o=t?.provider;if(this._logger.info(`Logging in with${o?` ${o}, `:""} '${i||"any"}' account...`),o==="microsoft"){let d=await this.createMicrosoftSession(e,i);return this._logger.info("Login success!"),d}let a=await this._persistedSessionsPromise,s=n.join(" "),u=await this._githubServer.login(s,o,t?.extraAuthorizeParameters,i),c=await this.tokenToSession(u,e);this.afterSessionLoad(c);let l=a.findIndex(d=>d.account.id===c.account.id&&nE([...d.scopes].sort(),n)),_=new Array;return l>-1?_.push(...a.splice(l,1,c)):a.push(c),await this.storeSessions(a),this.logSessionChange("interactive-login",1,_.length,0),this._sessionChangeEmitter.fire({added:[c],removed:_,changed:[]}),this._logger.info("Login success!"),c}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),Er.window.showErrorMessage(Er.l10n.t("Sign in failed: {0}",`${n}`)),this._logger.error(n),n)}}async createMicrosoftSession(e,t){let n=await this._githubServer.loginWithMicrosoft(e,{microsoftAccount:await this.rememberedMicrosoftAccount(t)}),i=this.storeTransientSession(this.sessionFor(n.account,n.token,e),n.expiresAfter);return this.afterSessionLoad(i),this._sessionChangeEmitter.fire({added:[i],removed:[],changed:[]}),i}storeTransientSession(e,t){let n={...e,expiresAfter:t};return this._transientSessions.set(n.id,{session:n,expiresAt:Date.now()+t}),n}sessionFor(e,t,n){return{id:kT(),accessToken:t,account:{label:e.accountName,id:e.id,icon:e.avatarUrl?Er.Uri.parse(e.avatarUrl):void 0},scopes:n}}async rememberedMicrosoftAccount(e){if(!e)return;let t=this._accountLinks.microsoftAccountFor(e);return t?(await this._microsoft.getAccounts()).find(i=>i.label===t):void 0}async forgetAccountLinkIfSignedOut(e){[...await this._persistedSessionsPromise,...this.transientSessions].some(n=>n.account.label===e.label)||await this._accountLinks.unlinkGitHubAccount(e.label)}async tokenToSession(e,t){let n=await this._githubServer.getUserInfo(e);return{id:kT(),accessToken:e,account:{label:n.accountName,id:n.id,icon:n.avatarUrl?Er.Uri.parse(n.avatarUrl):void 0},scopes:t}}async removeSession(e){try{this._telemetryReporter?.sendTelemetryEvent("logout"),this._logger.info(`Logging out of ${e}`);let t=this._transientSessions.get(e);if(t){this._transientSessions.delete(e),await this.forgetAccountLinkIfSignedOut(t.session.account),this._sessionChangeEmitter.fire({added:[],removed:[t.session],changed:[]});return}let n=await this._persistedSessionsPromise,i=n.findIndex(o=>o.id===e);if(i>-1){let o=n[i];n.splice(i,1),await this.storeSessions(n),await this._githubServer.logout(o),await this.forgetAccountLinkIfSignedOut(o.account),this._sessionChangeEmitter.fire({added:[],removed:[o],changed:[]})}else this._logger.error("Session not found")}catch(t){throw this._telemetryReporter?.sendTelemetryEvent("logoutFailed"),Er.window.showErrorMessage(Er.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};var xA='"github-enterprise.uri" not set',AA='"github-enterprise.uri" invalid',d_=class{constructor(e){this._errorMessage=e;this._disposable=qe.authentication.registerAuthenticationProvider("github-enterprise","GitHub Enterprise",this)}_errorMessage;_onDidChangeSessions=new qe.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_disposable;createSession(){throw new Error(this._errorMessage)}getSessions(){return Promise.resolve([])}removeSession(){throw new Error(this._errorMessage)}dispose(){this._onDidChangeSessions.dispose(),this._disposable.dispose()}};function GT(r,e){let t=qe.workspace.getConfiguration().get("github-enterprise.uri");if(!t){let o=new d_(xA);return r.subscriptions.push(o),o}let n;try{n=qe.Uri.parse(t,!0)}catch(o){qe.window.showErrorMessage(qe.l10n.t("GitHub Enterprise Server URI is not a valid URI: {0}",o.message??o));let a=new d_(AA);return r.subscriptions.push(a),a}let i=new Qc(r,e,n);return r.subscriptions.push(i),i}function PA(r){let e=new __;r.subscriptions.push(e),r.subscriptions.push(qe.window.registerUriHandler(e)),r.subscriptions.push(new Qc(r,e));let t=qe.workspace.getConfiguration().get("github-enterprise.uri"),n=GT(r,e);r.subscriptions.push(qe.workspace.onDidChangeConfiguration(o=>{if(o.affectsConfiguration("github-enterprise.uri")){let a=qe.workspace.getConfiguration().get("github-enterprise.uri");t!==a&&(n?.dispose(),t=a,n=GT(r,e))}}));let i=qe.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push(qe.workspace.onDidChangeConfiguration(async o=>{if(o.affectsConfiguration("github-authentication.useElectronFetch")){let a=qe.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);i!==a&&await qe.window.showInformationMessage(qe.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:qe.l10n.t("A reload is required for the fetch setting change to take effect.")},qe.l10n.t("Reload Window"))&&await qe.commands.executeCommand("workbench.action.reloadWindow")}}))}
17
+ Sign in to GitHub with this account?`,t),n,i)){case n:return 0;case i:return 1;default:return 2}}async exchange(e,t,n){let i=n&&[...n],o=new URLSearchParams({client_id:Gr.gitHubClientId,grant_type:cA,subject_token:t,subject_token_type:RT,...i&&{scope:i.join(" ")}}).toString();this._logger.debug(`Exchanging a Microsoft token for the GitHub scopes: ${i?i.join(" "):"whichever GitHub grants"}`),this._logger.trace(`The subject token of the exchange describes itself as: ${lA(t)}`);let a;try{a=await this._http.send({url:e,method:"POST",retryFallbacks:!1,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:o})}catch(E){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${E?.message??E}`),new ht("network",ft.l10n.t("Could not reach GitHub to finish signing in with Microsoft. Check your connection and try again."))}let s;try{s=await a.json()}catch{throw this.protocolError(`the response was not JSON (HTTP ${a.status})`)}if(!s||typeof s!="object")throw this.protocolError(`the response was not an object (HTTP ${a.status})`);let u=s;if(typeof u.error=="string")throw this.traceFailure(a.status,u),this.oauthError(u.error);if(!a.ok)throw this.traceFailure(a.status,u),this.protocolError(`HTTP ${a.status} without an error code`);let{access_token:c,issued_token_type:l,token_type:v,expires_in:_,scope:g}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(l!==RT)throw this.protocolError("unexpected issued token type");if(typeof v!="string"||v.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof _!="number"||!isFinite(_)||_<=0)throw this.protocolError("missing or invalid expiry");if(g!==void 0&&typeof g!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${g??"unreported"}`);let p=g?.split(/[\s,]+/).filter(Boolean),N=i?.filter(E=>p&&!p.includes(E));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:_*1e3,grantedScopes:p}}oauthError(e){switch(this._logger.error(`The GitHub token exchange failed with the error code '${e}'.`),e){case"invalid_request":case"invalid_client":case"invalid_scope":case"unsupported_grant_type":return new ht("configuration",ft.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new ht("identity",ft.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new ht("protocol",ft.l10n.t("GitHub rejected the Microsoft sign in ({0}).",e))}}protocolError(e){return this._logger.error(`The GitHub token exchange returned an unexpected response: ${e}.`),new ht("protocol",ft.l10n.t("GitHub returned an unexpected response while signing in with Microsoft."))}traceFailure(e,t){let n=["error_description","error_uri"].filter(i=>typeof t[i]=="string").map(i=>`${i}=${t[i]}`);this._logger.trace(`The GitHub token exchange answered HTTP ${e} ${n.length?n.join(" "):"with no further explanation"}.`)}},fA=["iss","aud","appid","azp","tid"];function lA(r){let e=r.split(".");if(e.length!==3)return"not a JWT";let t;try{let o=e[1].replace(/-/g,"+").replace(/_/g,"/");t=JSON.parse(atob(o+"=".repeat((4-o.length%4)%4)))}catch{return"a JWT whose claims could not be read"}if(!t||typeof t!="object")return"a JWT whose claims are not an object";let n=t,i=fA.filter(o=>n[o]!==void 0).map(o=>`${o}=${String(n[o])}`);return i.length?i.join(" "):"a JWT carrying none of the expected claims"}function dA(r){if(r===an)return!0;let e=r?.message;return e===an||e==="User did not consent to login."}var vA="https://vscode.dev/redirect",_A="https://insiders.vscode.dev/redirect",iv=class{constructor(e,t,n,i,o,a,s){this._logger=e;this._telemetryReporter=t;this._uriHandler=n;this._extensionKind=i;this._ghesUri=s;this._type=s?"github-enterprise":"github",this.friendlyName=this._type==="github"?"GitHub":s?.authority,this._http=new ev(e);let u=Xa(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0,c=Xa(this._type,s)?this.getServerUri(`/applications/${Gr.gitHubClientId}/token`).toString(!0):void 0;this._entraTokenExchange=new nv(e,{tokenExchange:u,tokenRevocation:c,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new tv)}_logger;_telemetryReporter;_uriHandler;_extensionKind;_ghesUri;friendlyName;_type;_entraTokenExchange;_http;_redirectEndpoint;get baseUri(){return this._type==="github"?Le.Uri.parse("https://github.com/"):this._ghesUri}getFallbackBaseUri(){return this.baseUri}async loginWithMicrosoft(e,t){let n=Le.Uri.joinPath(this.baseUri,"/login/oauth");return{...await this._entraTokenExchange.login(e,t),authorizationServer:n}}async renewWithMicrosoft(e){let t=Le.Uri.joinPath(this.baseUri,"/login/oauth");return{...await this._entraTokenExchange.renew(e),authorizationServer:t}}probeMicrosoftLink(e){return this._entraTokenExchange.probe(e)}async getRedirectEndpoint(){if(this._redirectEndpoint)return this._redirectEndpoint;if(this._type==="github"){let e=await Le.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints");this._redirectEndpoint=vA,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=_A)}else this._redirectEndpoint="https://vscode.dev/redirect";return this._redirectEndpoint}_isNoCorsEnvironment;async isNoCorsEnvironment(){if(this._isNoCorsEnvironment!==void 0)return this._isNoCorsEnvironment;let e=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/dummy`));return this._isNoCorsEnvironment=e.scheme==="https"&&/^((insiders\.)?vscode|github)\./.test(e.authority)||e.scheme==="http"&&/^localhost/.test(e.authority),this._isNoCorsEnvironment}async login(e,t,n,i){this._logger.info(`Logging in for the following scopes: ${e}`);let o=this.baseUri,a,s=Le.l10n.t("Yes"),u=Le.l10n.t("No"),c=async E=>{if(a===void 0)return;let x=a?Le.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",E):Le.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",E);if(await Le.window.showWarningMessage(x,s,u)!==s)throw new Error(an)},l=Ja.getRandomValues(new Uint32Array(2)).reduce((E,x)=>E+=x.toString(16),""),v=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(l)}`)),_=ET(v),g=Xa(this._type,this._ghesUri),p=typeof process<"u"&&typeof process?.versions?.node=="string",N=bT({target:this._type==="github"?0:g?2:1,extensionHost:p?this._extensionKind===Le.ExtensionKind.UI?2:1:0,isSupportedClient:_});for(let E of N)try{return E!==N[0]&&await c(E.label),{token:await E.trigger({scopes:e,callbackUri:v,nonce:l,signInProvider:t,extraAuthorizeParameters:n,baseUri:o,logger:this._logger,uriHandler:this._uriHandler,enterpriseUri:this._ghesUri,redirectUri:Le.Uri.parse(await this.getRedirectEndpoint()),existingLogin:i}),authorizationServer:Le.Uri.joinPath(o,"/login/oauth")}}catch(x){a=this.processLoginError(x)}throw new Error(a?an:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!Gr.gitHubClientSecret){this._logger.warn("No client secret configured for GitHub authentication. The token has been deleted with best effort on this system, but we are unable to delete the token on server without the client secret.");return}if(!e.accessToken.startsWith("gho_")){this._logger.warn("The token being deleted is not an OAuth token. It has been deleted locally, but we cannot delete it on server.");return}if(!Xa(this._type,this._ghesUri)){this._logger.trace("GitHub.com and GitHub hosted GitHub Enterprise are the only options that support deleting tokens on the server. Skipping.");return}let t="Basic "+PT(`${Gr.gitHubClientId}:${Gr.gitHubClientSecret}`),n=this.getServerUri(`/applications/${Gr.gitHubClientId}/token`);try{let i=await xn(n.toString(!0),{logger:this._logger,retryFallbacks:!0,expectJSON:!1,method:"DELETE",headers:{Accept:"application/vnd.github+json",Authorization:t,"X-GitHub-Api-Version":"2022-11-28","User-Agent":`${Le.env.appName} (${Le.env.appHost})`},body:JSON.stringify({access_token:e.accessToken})});if(i.status===204){this._logger.trace(`Successfully deleted token from session (${e.id}) from server.`);return}try{let o=await i.text();throw new Error(o)}catch{throw new Error(`${i.status} ${i.statusText}`)}}catch(i){this._logger.warn("Failed to delete token from server."+(i.message??i))}}getServerUri(e=""){let t=this.baseUri;return Xa(this._type,this._ghesUri)?Le.Uri.parse(`${t.scheme}://api.${t.authority}`).with({path:e}):Le.Uri.parse(`${t.scheme}://${t.authority}/api/v3${e}`)}async getUserInfo(e){return await Zd(this._http,this.getServerUri("/user").toString(),e,this._logger)}async sendAdditionalTelemetryInfo(e){if(!(!Le.env.isTelemetryEnabled||await this.isNoCorsEnvironment())){if(this._type==="github")return await this.checkUserDetails(e);await this.checkEnterpriseVersion(e.accessToken)}}async checkUserDetails(e){let t,n=e.account.label.includes("_");if(n)this._logger.info("Skipping optional EDU details check for a managed account."),t="none";else try{let i=await xn("https://education.github.com/api/user",{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e.accessToken}`,"faculty-check-preview":"true","User-Agent":`${Le.env.appName} (${Le.env.appHost})`}});if(i.ok){let o=await i.json();t=o.student?"student":o.faculty?"faculty":"none"}else this._logger.info(`Unable to resolve optional EDU details. Status: ${i.status} ${i.statusText}`),t="unknown"}catch(i){this._logger.info(`Unable to resolve optional EDU details. Error: ${i}`),t="unknown"}this._telemetryReporter.sendTelemetryEvent("session",{isEdu:t,isManaged:n?"true":"false"})}async checkEnterpriseVersion(e){try{let t;if(Xa(this._type,this._ghesUri))t="hosted";else{let n=await xn(this.getServerUri("/meta").toString(),{logger:this._logger,retryFallbacks:!0,expectJSON:!0,headers:{Authorization:`token ${e}`,"User-Agent":`${Le.env.appName} (${Le.env.appHost})`}});if(!n.ok)return;t=(await n.json()).installed_version}this._telemetryReporter.sendTelemetryEvent("ghe-session",{version:t})}catch{}}processLoginError(e){if(e.message===an)throw e;return this._logger.error(e.message??e),e.message===ei}};d();var XT=Tt(require("vscode")),Oo=Tt(qT()),mv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(XT.env.uriScheme){case"vscode":e=Oo.TargetPopulation.Public;break;case"vscode-insiders":e=Oo.TargetPopulation.Insiders;break;case"vscode-exploration":e=Oo.TargetPopulation.Internal;break;case"code-oss":e=Oo.TargetPopulation.Team;break;default:e=Oo.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,Oo.getExperimentationService)(t,n,e,this,this.context.globalState);return await i.initialFetch,i}async sendTelemetryEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryEvent(e,{...this.sharedProperties,...t},n)}async sendTelemetryErrorEvent(e,t,n){this.experimentationServicePromise||(this.experimentationServicePromise=this.createExperimentationService()),await this.experimentationServicePromise,this.baseReporter.sendTelemetryErrorEvent(e,{...this.sharedProperties,...t})}setSharedProperty(e,t){this.sharedProperties[e]=t}postEvent(e,t){let n={};for(let[i,o]of t)n[i]=o;this.sendTelemetryEvent(e,n)}dispose(){return this.baseReporter.dispose()}};d();var JT=Tt(require("vscode"));var gv=class{constructor(e,t){this.type=e;let n=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=JT.window.createOutputChannel(`${n} Authentication${t?` (${t.toString(!0)})`:""}`,{log:!0})}type;output;trace(e){this.output?.trace(e)}debug(e){this.output?.debug(e)}info(e){this.output?.info(e)}error(e){this.output?.error(e)}warn(e){this.output?.warn(e)}dispose(){this.output?.dispose(),this.output=void 0}};d();var Ev=class{constructor(e,t,n){this.memento=e;this.storageKey=t;this.logger=n}memento;storageKey;logger;_unlinkedButStillStored=new Set;get links(){let e=this.memento.get(this.storageKey,[]);return this._unlinkedButStillStored.size?e.filter(t=>!this._unlinkedButStillStored.has(t.gitHubAccountLabel)):e}linkedAccounts(){return this.links}microsoftAccountFor(e){return this.links.find(t=>t.gitHubAccountLabel===e)?.microsoftAccountLabel}async link(e,t){let n=this.links.filter(i=>i.gitHubAccountLabel!==t.label&&i.microsoftAccountLabel!==e);this._unlinkedButStillStored.delete(t.label),await this.write([...n,{microsoftAccountLabel:e,gitHubAccountLabel:t.label,gitHubAccountId:t.id}])}async unlinkGitHubAccount(e){let t=this.links.filter(n=>n.gitHubAccountLabel!==e);t.length!==this.links.length&&(this._unlinkedButStillStored.add(e),await this.write(t)&&this._unlinkedButStillStored.delete(e))}async write(e){try{return await this.memento.update(this.storageKey,e),!0}catch(t){return this.logger.error(`Could not update the Microsoft account links: ${t}`),!1}}};d();var wg=Tt(require("vscode")),hv="microsoft",LA="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",Sv=class{async getToken(e){let t=await wg.authentication.getSession(hv,[LA],UA(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await wg.authentication.getAccounts(hv)}};function UA(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}d();var of=Tt(require("vscode")),Qa="github-enterprise.uri",Nv=".ghes.auth";function Br(r){return r.with({scheme:r.scheme.toLowerCase(),path:r.path.replace(/\/+$/,"")}).toString()}function Og(r){return`${Br(r)}${Nv}`}var nf=".microsoftAccountLinks";function MA(r,e){if(!r.endsWith(Nv)||r.includes("://"))return;let t=r.slice(0,-Nv.length),n=t.indexOf("/");return of.Uri.from({scheme:e,authority:n<0?t:t.slice(0,n),path:n<0?"":t.slice(n)})}async function QT(r,e){return{key:e,tokens:await r.secrets.get(e),links:r.globalState.get(`${e}${nf}`)}}function ZT(r,e,t){if(r.length<2)return r[0];let n=r.find(i=>i.key===e);if(!n)throw new Error(of.l10n.t("Multiple saved authentication stores match {0}. Set {1} to the previously used URI before migrating its saved sign-in.",t.toString(!0),Qa));return n}async function FA(r,e,t,n,i){let o=t.tokens===void 0?ZT(e.filter(s=>s.tokens!==void 0),n,i):void 0,a=t.links===void 0?ZT(e.filter(s=>s.links!==void 0),n,i):void 0;a?.links!==void 0&&await r.globalState.update(`${t.key}${nf}`,a.links),o?.tokens!==void 0&&await r.secrets.get(t.key)===void 0&&await r.secrets.store(t.key,o.tokens);for(let s of e)s.tokens!==void 0&&(t.tokens!==void 0||s===o)&&await r.secrets.delete(s.key),s.links!==void 0&&(t.links!==void 0||s===a)&&await r.globalState.update(`${s.key}${nf}`,void 0)}async function eD(r,e,t=[e],n){let i=Br(e),o=new Set([...await r.secrets.keys(),...r.globalState.keys().filter(_=>_.endsWith(nf)).map(_=>_.slice(0,-nf.length))]),a=[];for(let _ of o){let g=MA(_,e.scheme);if(g&&Br(g)===i){let p=await QT(r,_);(p.tokens!==void 0||p.links!==void 0)&&a.push(p)}}let s=await QT(r,Og(e));if(!a.length)return;let u=n??(t.length===1?t[0]:void 0),c=u&&Br(u.with({scheme:e.scheme}))===i;if(c&&Br(u)!==i)return;let l=new Set(t.filter(_=>Br(_.with({scheme:e.scheme}))===i).map(Br));if(!c&&l.size>1){let _=s.tokens===void 0&&a.some(p=>p.tokens!==void 0),g=s.links===void 0&&a.some(p=>p.links!==void 0);if(!_&&!g)return;throw new Error(of.l10n.t("Saved authentication for {0} does not identify its URL scheme. Set {1} to the original instance before migrating its saved sign-in.",e.authority,Qa))}let v=c?`${u.authority}${u.path}${Nv}`:void 0;await FA(r,a,s,v,e)}var kA=3600*1e3,HA="_workbenchEntraExchangeProbe";function GA(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!CT(e))throw new Error(`Provider is invalid: ${e}`);if(t!==void 0){if(!t||typeof t!="object")throw new Error("Extra parameters must be a record of string keys and string values.");for(let[n,i]of Object.entries(t))if(typeof n!="string"||typeof i!="string")throw new Error("Extra parameters must be a record of string keys and string values.")}return!0}var Tv=class extends xr.EventEmitter{_pendingNonces=new Map;_codeExchangePromises=new Map;handleUri(e){this.fire(e)}async waitForCode(e,t,n,i,o){let a=`${o.toString()} ${t}`,s=this._pendingNonces.get(a)||[];this._pendingNonces.set(a,[...s,n]);let u=this._codeExchangePromises.get(a);u||(u=rf(this.event,this.handleEvent(e,a)),this._codeExchangePromises.set(a,u));try{return await Promise.race([u.promise,new Promise((c,l)=>setTimeout(()=>l(ef),3e5)),rf(i.onCancellationRequested,(c,l,v)=>{v(ei)}).promise])}finally{this._pendingNonces.delete(a),u?.cancel.fire(),this._codeExchangePromises.delete(a)}}handleEvent=(e,t)=>(n,i,o)=>{let a=new URLSearchParams(n.query),s=a.get("code"),u=a.get("nonce");if(!s){o(new Error("No code"));return}if(!u){o(new Error("No nonce"));return}if(!(this._pendingNonces.get(t)||[]).includes(u)){e.info("Nonce not found in accepted nonces. Skipping this execution...");return}i(s)}};function BA(){return Ja.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var mu=class{constructor(e,t,n,i){this.context=e;let{aiKey:o}=e.extension.packageJSON;this._telemetryReporter=new mv(e,new Zc(o));let a=n?"github-enterprise":"github";this._accountLabelSuffix=n?` - ${n.authority}${n.path.replace(/\/+$/,"")}`:void 0,this._logger=new gv(a,n);let s=i??(a==="github"?`${a}.auth`:`${n?.authority}${n?.path}.ghes.auth`);this._keychain=new Jd(this.context,s,this._logger),this._accountLinks=new Ev(this.context.globalState,`${s}.microsoftAccountLinks`,this._logger),this._microsoft=new Sv,this._githubServer=new iv(this._logger,this._telemetryReporter,t,e.extension.extensionKind,this._microsoft,this._accountLinks,n),this._persistedSessionsPromise=this.readSessions().then(u=>(setTimeout(()=>u.forEach(c=>this.afterSessionLoad(c)),1e3),u)),this._disposable=xr.Disposable.from(this._telemetryReporter,this._sessionChangeEmitter,this._logger,this.context.secrets.onDidChange(()=>this.checkForUpdates()),xr.authentication.onDidChangeSessions(async u=>{u.provider.id===hv&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new xr.EventEmitter;_logger;_githubServer;_microsoft;_telemetryReporter;_keychain;_accountLinks;_accountLabelSuffix;_accountsSeen=new Set;_disposable;_persistedSessionsPromise;_transientSessions=new Map;_renewals=new Map;_restores=new Map;_restoresTried=new Set;_microsoftGeneration=0;dispose(){this._transientSessions.clear(),this._disposable?.dispose()}get transientSessions(){let e=Date.now();return[...this._transientSessions.values()].map(t=>({...t.session,expiresAfter:t.expiresAt>e?t.expiresAt-e:void 0}))}get onDidChangeSessions(){return this._sessionChangeEmitter.event}async getCachedSessions(){return[...await this._persistedSessionsPromise,...this.transientSessions]}accountName(e){let t=this._accountLabelSuffix;return t&&e.endsWith(t)?e.slice(0,-t.length):e}accountLabel(e){return`${e}${this._accountLabelSuffix??""}`}async getSessions(e,t){let n=t?.[HA];if(n!==void 0)return await this.probeMicrosoftLink(n);let i=e?.sort()||[],o=i.length?i.join(","):"all scopes";this._logger.info(`Getting sessions for ${o}...`);let a=[...await this._persistedSessionsPromise,...this.transientSessions],s=v=>!t?.authorizationServer||!!v.authorizationServer&&Br(v.authorizationServer)===Br(t.authorizationServer),u=a.filter(v=>s(v)&&(!t?.account||this.accountName(v.account.label)===this.accountName(t.account.label))&&(!i.length||vg([...v.scopes].sort(),i))),c=await this.stillGood(u),l=await this.restore(i,t?.account,c);return this._logger.info(`Got ${c.length+l.length} sessions for ${o}...`),[...c,...l.filter(s)]}async probeMicrosoftLink(e){let t=e?.subjectTokens;if(!Array.isArray(t)||!t.every(n=>typeof n=="string"&&n))throw new Error("The Microsoft link probe requires a list of subject tokens.");this._logger.info(`Checking whether any of ${t.length} Microsoft identities is linked to a GitHub account...`);for(let n of t){let i=await this._githubServer.probeMicrosoftLink(n);if(i)return[{id:i.id,accessToken:"",account:{id:i.id,label:i.accountName},scopes:[]}]}return[]}async restore(e,t,n){let i=this._accountLinks.linkedAccounts().filter(a=>(!t||a.gitHubAccountLabel===this.accountName(t.label))&&!n.some(s=>this.accountName(s.account.label)===a.gitHubAccountLabel)&&!this._restoresTried.has(this.restoreKey(a,e)));if(!i.length)return[];let o=(await Promise.all(i.map(a=>this.restoreOne(a,e)))).filter(a=>!!a);return o.length&&(this._logger.info(`Restored ${o.length} session(s) from a remembered Microsoft account.`),this._sessionChangeEmitter.fire({added:o,removed:[],changed:[]})),o}restoreKey(e,t){return`${e.gitHubAccountLabel}
18
+ ${t.join(" ")}`}restoreOne(e,t){let n=this.restoreKey(e,t),i=this._restores.get(n);return i||(i=this.restoreNow(e,t,n).finally(()=>this._restores.delete(n)),this._restores.set(n,i)),i}async restoreNow(e,t,n){let i=this._microsoftGeneration,o=(await this._microsoft.getAccounts()).find(u=>u.label===e.microsoftAccountLabel);if(!o){this._logger.info(`Not restoring the session for ${e.gitHubAccountLabel}: its Microsoft account is not signed in.`),this._restoresTried.add(n);return}let a;try{a=await this._githubServer.renewWithMicrosoft({scopes:t.length?t:void 0,gitHubAccountId:e.gitHubAccountId,microsoftAccount:o})}catch(u){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: ${u?.message??u}`),this._restoresTried.add(n),u instanceof ht&&u.failure==="accountMismatch"&&await this._accountLinks.unlinkGitHubAccount(e.gitHubAccountLabel);return}if(!a.scopes.length){this._logger.error(`Could not restore the session for ${e.gitHubAccountLabel}: GitHub did not say what the token can do.`),this._restoresTried.add(n);return}if(!await this.microsoftAccountStillSignedIn(i,o.label,`the restored session for ${e.gitHubAccountLabel}`))return;let s=this.storeTransientSession(this.sessionFor(a.account,a,[...a.scopes]),a.expiresAfter);return this.afterSessionLoad(s),s}async stillGood(e){let t=Date.now(),n=[],i=[];for(let u of e){let c=this._transientSessions.get(u.id);!c||c.expiresAt>t+kA?n.push(u):i.push(u)}if(!i.length)return n;let o=await Promise.all(i.map(u=>this.renew(u))),a=[],s=[];for(let u=0;u<i.length;u++){if(o[u])continue;let c=this._transientSessions.get(i[u].id),l=c?c.expiresAt-Date.now():0;c&&l>0?s.push({...c.session,expiresAfter:l}):a.push(i[u])}return this.evict(a,"their token ran out and could not be renewed"),[...n,...s,...o.filter(u=>!!u)]}evict(e,t){let n=[];for(let i of e)this._transientSessions.delete(i.id)&&n.push(i);n.length&&(this._logger.info(`Dropped ${n.length} session(s): ${t}.`),this._sessionChangeEmitter.fire({added:[],removed:n,changed:[]}))}async evictUnreachable(){let e=new Set((await this._microsoft.getAccounts()).map(n=>n.label)),t=new Map(this._accountLinks.linkedAccounts().map(n=>[n.gitHubAccountLabel,n]));this.evict(this.transientSessions.filter(n=>{let i=t.get(this.accountName(n.account.label))?.microsoftAccountLabel;return!i||!e.has(i)}),"their Microsoft account is no longer signed in")}renew(e){let t=this._renewals.get(e.id);return t||(t=this.renewNow(e).finally(()=>this._renewals.delete(e.id)),this._renewals.set(e.id,t)),t}async renewNow(e){let t=this._microsoftGeneration,n=await this.rememberedMicrosoftAccount(e.account.label);if(!n){this._logger.info(`Session ${e.id} cannot renew: there is no Microsoft account signed in for it.`);return}let i;try{i=await this._githubServer.renewWithMicrosoft({scopes:e.scopes,gitHubAccountId:e.account.id,microsoftAccount:n})}catch(a){this._logger.error(`Could not renew session ${e.id}: ${a?.message??a}`);return}if(!await this.microsoftAccountStillSignedIn(t,n.label,`the renewal of session ${e.id}`))return;let o=this.storeTransientSession({...e,accessToken:i.token,authorizationServer:i.authorizationServer},i.expiresAfter);return this._logger.info(`Renewed session ${e.id}.`),this._sessionChangeEmitter.fire({added:[],removed:[],changed:[o]}),o}async microsoftAccountStillSignedIn(e,t,n){return this._microsoftGeneration===e||(await this._microsoft.getAccounts()).some(i=>i.label===t)?!0:(this._logger.info(`Discarding ${n}: its Microsoft account was signed out of while it was in flight.`),!1)}async afterSessionLoad(e){this._accountsSeen.has(e.account.id)||(this._accountsSeen.add(e.account.id),this._githubServer.sendAdditionalTelemetryInfo(e))}logSessionChange(e,t,n,i){let o=t>0&&n>0?"replacement":t>0?"addition":n>0?"removal":"change",a=`Session change: source=${e}, kind=${o}, added=${t}, removed=${n}, changed=${i}.`;o==="replacement"?this._logger.info(a):this._logger.trace(a)}async checkForUpdates(){let e=await this._persistedSessionsPromise;this._persistedSessionsPromise=this.readSessions();let t=await this._persistedSessionsPromise,n=[],i=[];t.forEach(o=>{e.some(s=>s.id===o.id)||(this._logger.info("Adding session found in keychain"),n.push(o))}),e.forEach(o=>{t.some(s=>s.id===o.id)||(this._logger.info("Removing session no longer found in keychain"),i.push(o))}),(n.length||i.length)&&(this.logSessionChange("secret-storage",n.length,i.length,0),this._sessionChangeEmitter.fire({added:n,removed:i,changed:[]}))}async readSessions(){let e;try{this._logger.info("Reading sessions from keychain...");let a=await this._keychain.getToken();if(!a)return[];this._logger.info("Got stored sessions!");try{e=JSON.parse(a)}catch(s){throw await this._keychain.deleteToken(),s}}catch(a){return this._logger.error(`Error reading token: ${a}`),[]}let t=!1,n=new Set,i=e.map(async a=>{let s=[...a.scopes].sort().join(" "),u;if(!a.account)try{u=await this._githubServer.getUserInfo(a.accessToken),this._logger.info(`Verified session with the following scopes: ${s}`)}catch(v){if(v.message==="Unauthorized")return}this._logger.trace(`Read the following session from the keychain with the following scopes: ${s}`),n.add(s);let c;a.account?.id?(typeof a.account.id=="number"&&(t=!0),c=`${a.account.id}`):c=u?.id??"<unknown>";let l=a.account?.icon?xr.Uri.from(a.account.icon):u?.avatarUrl?xr.Uri.parse(u.avatarUrl):void 0;return{id:a.id,account:{label:this.accountLabel(a.account?a.account.label??a.account.displayName??"<unknown>":u?.accountName??"<unknown>"),id:c,icon:l},scopes:a.scopes,accessToken:a.accessToken,authorizationServer:a.authorizationServer?xr.Uri.from(a.authorizationServer):xr.Uri.joinPath(this._githubServer.getFallbackBaseUri(),"/login/oauth")}}),o=(await Promise.allSettled(i)).filter(a=>a.status==="fulfilled").map(a=>a.value).filter(a=>!!a);return this._logger.info(`Got ${o.length} verified sessions.`),(t||o.length!==e.length)&&await this.storeSessions(o),o}async storeSessions(e){this._logger.info(`Storing ${e.length} sessions...`),this._persistedSessionsPromise=Promise.resolve(e),await this._keychain.setToken(JSON.stringify(e.map(t=>({...t,account:{...t.account,label:this.accountName(t.account.label)}})))),this._logger.info(`Stored ${e.length} sessions!`)}async createSession(e,t){try{let n=[...e].sort();if(this._telemetryReporter?.sendTelemetryEvent("login",{scopes:JSON.stringify(e)}),t&&!GA(t))throw new Error("Invalid options");let i=t?.account&&this.accountName(t.account.label),o=t?.provider;if(this._logger.info(`Logging in with${o?` ${o}, `:""} '${i||"any"}' account...`),o==="microsoft"){let _=await this.createMicrosoftSession(e,i,t?.authorizationServer);return this._logger.info("Login success!"),_}let a=await this._persistedSessionsPromise,s=n.join(" "),u=await this._githubServer.login(s,o,t?.extraAuthorizeParameters,i),c=await this.tokenToSession(u,e,t?.authorizationServer);this.afterSessionLoad(c);let l=a.findIndex(_=>_.account.id===c.account.id&&vg([..._.scopes].sort(),n)),v=new Array;return l>-1?v.push(...a.splice(l,1,c)):a.push(c),await this.storeSessions(a),this.logSessionChange("interactive-login",1,v.length,0),this._sessionChangeEmitter.fire({added:[c],removed:v,changed:[]}),this._logger.info("Login success!"),c}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),xr.window.showErrorMessage(xr.l10n.t("Sign in failed: {0}",`${n}`)),this._logger.error(n),n)}}async createMicrosoftSession(e,t,n){let i=await this._githubServer.loginWithMicrosoft(e,{microsoftAccount:await this.rememberedMicrosoftAccount(t)});this.checkAuthorizationServer(i,n);let o=this.storeTransientSession(this.sessionFor(i.account,i,e),i.expiresAfter);return this.afterSessionLoad(o),this._sessionChangeEmitter.fire({added:[o],removed:[],changed:[]}),o}storeTransientSession(e,t){let n={...e,expiresAfter:t};return this._transientSessions.set(n.id,{session:n,expiresAt:Date.now()+t}),n}sessionFor(e,t,n){return{id:BA(),accessToken:t.token,account:{label:this.accountLabel(e.accountName),id:e.id,icon:e.avatarUrl?xr.Uri.parse(e.avatarUrl):void 0},scopes:n,authorizationServer:t.authorizationServer}}async rememberedMicrosoftAccount(e){if(!e)return;let t=this._accountLinks.microsoftAccountFor(this.accountName(e));return t?(await this._microsoft.getAccounts()).find(i=>i.label===t):void 0}async forgetAccountLinkIfSignedOut(e){let t=[...await this._persistedSessionsPromise,...this.transientSessions],n=this.accountName(e.label);t.some(i=>this.accountName(i.account.label)===n)||await this._accountLinks.unlinkGitHubAccount(n)}checkAuthorizationServer(e,t){if(t&&Br(e.authorizationServer)!==Br(t))throw new Error(xr.l10n.t("The GitHub session does not belong to the requested authorization server."))}async tokenToSession(e,t,n){this.checkAuthorizationServer(e,n);let i=await this._githubServer.getUserInfo(e.token);return this.sessionFor(i,e,t)}async removeSession(e){try{this._telemetryReporter?.sendTelemetryEvent("logout"),this._logger.info(`Logging out of ${e}`);let t=this._transientSessions.get(e);if(t){this._transientSessions.delete(e),await this.forgetAccountLinkIfSignedOut(t.session.account),this._sessionChangeEmitter.fire({added:[],removed:[t.session],changed:[]});return}let n=await this._persistedSessionsPromise,i=n.findIndex(o=>o.id===e);if(i>-1){let o=n[i];n.splice(i,1),await this.storeSessions(n),await this._githubServer.logout(o),await this.forgetAccountLinkIfSignedOut(o.account),this._sessionChangeEmitter.fire({added:[],removed:[o],changed:[]})}else this._logger.error("Session not found")}catch(t){throw this._telemetryReporter?.sendTelemetryEvent("logoutFailed"),xr.window.showErrorMessage(xr.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};d();var rr=Tt(require("vscode"));d();var af=Tt(require("vscode"));var Za="github-enterprise.uris";function rD(r,e){let t=r.inspect(Za),n=t&&(t.globalValue!==void 0||e&&(t.workspaceValue!==void 0||t.workspaceFolderValue!==void 0)),i=r.get(Qa),o=n?r.get(Za):i?[i]:[];if(!Array.isArray(o))throw new Error(af.l10n.t("GitHub Enterprise URIs must be an array of instance URLs."));return o.map(jA)}function jA(r){try{if(typeof r!="string"||!r)throw new Error("Expected a non-empty URI");let e=af.Uri.parse(r,!0),t=new URL(e.toString()),n=t.hostname.replace(/\.$/,""),i=e.path.replace(/\/+$/,"");if(!["http:","https:"].includes(t.protocol)||!e.authority||t.username||t.password||e.query||e.fragment||["github.com","www.github.com","api.github.com"].includes(n)||i.includes("//")||i.split("/").some(o=>o==="."||o===".."))throw new Error("Expected a GitHub Enterprise instance URL");return e}catch{throw new Error(af.l10n.t("Invalid GitHub Enterprise instance URI: {0}",String(r)))}}function sf(r){r.listener.dispose(),r.engine.dispose(),r.initialChanges.clear()}function zA(r,e){let t=new Map(e.map(n=>[n.id,n]));for(let[n,i]of r.initialChanges)i?t.set(n,i):t.delete(n);return r.initialChanges.clear(),[...t.values()]}var Dv=class{constructor(e,t){this._context=e;this._uriHandler=t}_context;_uriHandler;_onDidChangeSessions=new rr.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_hosts=new Map;_disposeCancellation=new rr.CancellationTokenSource;_pendingUpdate=Promise.resolve();_registration;_configurationError=rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za);update(e,t){let n=async()=>{try{await this.applyConfiguration(e,t)}catch(i){throw this.handleUpdateError(i),i}};return this._pendingUpdate=this._pendingUpdate.then(n,n)}handleUpdateError(e){this.throwIfDisposed(),!this._hosts.size&&(this._configurationError=e instanceof Error?e.message:String(e),this._registration||this.registerProvider())}async applyConfiguration(e,t){this.throwIfDisposed();let n=[...new Set(e.map(Br))].sort(),i=n.filter(u=>!this._hosts.has(u)),o=[...this._hosts.values()].filter(u=>!n.includes(u.key));if(this._configurationError=t?.error??rr.l10n.t("Configure {0} before signing in to GitHub Enterprise.",Za),this._registration&&!i.length&&!o.length)return;for(let u of i)await eD(this._context,rr.Uri.parse(u),e,t?.legacyUri),this.throwIfDisposed();let a=this.createHosts(i),s=this._disposeCancellation.token.onCancellationRequested(()=>a.forEach(sf));try{let u=await Promise.all(a.map(v=>v.engine.getSessions(void 0,{authorizationServer:v.authorizationServer})));this.throwIfDisposed();let c=(await Promise.all(o.map(v=>v.engine.getCachedSessions()))).flat();this.throwIfDisposed();let l=a.flatMap((v,_)=>zA(v,u[_]));this.commitHosts(n,a,o,{added:l,removed:c,changed:[]})}catch(u){throw a.forEach(sf),u}finally{s.dispose()}}createHosts(e){let t=[];try{for(let n of e)t.push(this.createHost(n));return t}catch(n){throw t.forEach(sf),n}}createHost(e){let t=rr.Uri.parse(e),n=new mu(this._context,this._uriHandler,t,Og(t)),i=new Map,o={key:e,uri:t,authorizationServer:rr.Uri.joinPath(t,"/login/oauth"),engine:n,initialChanges:i,listener:n.onDidChangeSessions(a=>{if(this._hosts.get(o.key)===o)this._onDidChangeSessions.fire(a);else{a.removed?.forEach(s=>i.set(s.id,void 0));for(let s of[...a.added??[],...a.changed??[]])i.set(s.id,s)}})};return o}commitHosts(e,t,n,i){let o=new Map(t.map(a=>[a.key,a]));this._hosts=new Map(e.map(a=>[a,o.get(a)??this._hosts.get(a)])),this.registerProvider(),n.forEach(sf),(i.added?.length||i.removed?.length)&&this._onDidChangeSessions.fire(i)}registerProvider(){this._registration?.dispose(),this._registration=rr.authentication.registerAuthenticationProvider("github-enterprise","GitHub Enterprise",this,{supportsMultipleAccounts:!0,supportedAuthorizationServers:[...this._hosts.values()].map(e=>e.authorizationServer)})}throwIfDisposed(){if(this._disposeCancellation.token.isCancellationRequested)throw new rr.CancellationError}async getSessions(e,t={}){let n=await this.resolveHost(t),i=n?[n]:[...this._hosts.values()];return(await Promise.all(i.map(async a=>{let s=await a.engine.getSessions(e&&[...e],{...t,authorizationServer:t.authorizationServer??a.authorizationServer});return this._hosts.get(Br(a.uri))!==a?[]:s}))).flat()}async createSession(e,t={}){let n=await this.resolveHost(t);if(!n){let o=[...this._hosts.values()];if(!o.length)throw new Error(this._configurationError);if(o.length===1)n=o[0];else{let a=await rr.window.showQuickPick(o.map(s=>({label:s.uri.toString(!0),host:s})),{title:rr.l10n.t("Sign in to GitHub Enterprise"),placeHolder:rr.l10n.t("Select the GitHub Enterprise instance to sign in to"),ignoreFocusOut:!0});if(!a)throw new Error(an);n=a.host}}this.requireConfiguredHost(n);let i=await n.engine.createSession([...e],{...t,authorizationServer:t.authorizationServer??n.authorizationServer});return this.requireConfiguredHost(n),i}async removeSession(e){let t=[];for(let n of this._hosts.values())(await n.engine.getCachedSessions()).some(i=>i.id===e)&&t.push(n);if(!t.length)throw new Error(rr.l10n.t("The GitHub Enterprise session does not belong to a configured instance."));if(t.length>1)throw new Error(rr.l10n.t("The GitHub Enterprise session ID matches more than one configured instance."));this.requireConfiguredHost(t[0]),await t[0].engine.removeSession(e)}async resolveHost(e){let t;if(e.authorizationServer){let o=Br(e.authorizationServer);if(t=[...this._hosts.values()].find(a=>Br(a.authorizationServer)===o),!t)throw new Error(rr.l10n.t("The requested GitHub Enterprise authorization server is not configured."))}let n=[],i=e.account;if(i)for(let o of this._hosts.values())(await o.engine.getCachedSessions()).some(s=>s.account.id===i.id&&s.account.label===i.label)&&n.push(o);if(t&&n.length&&!n.includes(t))throw new Error(rr.l10n.t("The GitHub Enterprise account and authorization server belong to different instances."));return t??(n.length===1?n[0]:void 0)}requireConfiguredHost(e){if(this._hosts.get(Br(e.uri))!==e)throw new Error(rr.l10n.t("The selected GitHub Enterprise instance is no longer configured."))}dispose(){this._disposeCancellation.cancel(),this._disposeCancellation.dispose(),this._registration?.dispose(),this._hosts.forEach(sf),this._hosts.clear(),this._onDidChangeSessions.dispose()}};d();function yv(r,e){return/\]\(|command:/i.test(r)?e:r}async function VA(r){let e=new Tv;r.subscriptions.push(e),r.subscriptions.push(He.window.registerUriHandler(e));let t=new mu(r,e);r.subscriptions.push(t),r.subscriptions.push(He.authentication.registerAuthenticationProvider("github","GitHub",t,{supportsMultipleAccounts:!0,supportedAuthorizationServers:[He.Uri.parse("https://github.com/login/oauth")]}));let n=new Dv(r,e);r.subscriptions.push(n);let i=async()=>{let s=He.workspace.getConfiguration(),u;try{u=rD(s,He.workspace.isTrusted)}catch(v){let _=yv(v.message,He.l10n.t("Invalid GitHub Enterprise instance URI."));await n.update([],{error:_}),He.window.showErrorMessage(_);return}let c=s.get(Qa),l=typeof c=="string"&&/^https?:\/\//i.test(c)?He.Uri.parse(c):void 0;await n.update(u,{legacyUri:l})},o=async()=>{try{await i()}catch(s){He.window.showErrorMessage(yv(He.l10n.t("Could not update GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)),He.l10n.t("Could not update GitHub Enterprise authentication.")))}};r.subscriptions.push(He.workspace.onDidChangeConfiguration(s=>{(s.affectsConfiguration(Za)||s.affectsConfiguration(Qa))&&o()})),r.subscriptions.push(He.workspace.onDidGrantWorkspaceTrust(o));try{await i()}catch(s){He.window.showErrorMessage(yv(He.l10n.t("Could not initialize GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)),He.l10n.t("Could not initialize GitHub Enterprise authentication.")))}let a=He.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push(He.workspace.onDidChangeConfiguration(async s=>{if(s.affectsConfiguration("github-authentication.useElectronFetch")){let u=He.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);a!==u&&await He.window.showInformationMessage(He.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:He.l10n.t("A reload is required for the fetch setting change to take effect.")},He.l10n.t("Reload Window"))&&await He.commands.executeCommand("workbench.action.reloadWindow")}}))}
19
19
  /*! Bundled license information:
20
20
 
21
21
  @nevware21/ts-utils/dist/es5/mod/ts-utils.js: